From 6ed55302a8294128e9142745d02420a665a9e4ae Mon Sep 17 00:00:00 2001 From: Sivaranjani Rajasekaran Date: Mon, 4 May 2026 18:01:38 +0530 Subject: [PATCH 1/2] Documentation(1023562): Update sample --- RemoteSaveAdaptor/ClientApp/angular.json | 11 ++-- RemoteSaveAdaptor/ClientApp/package.json | 55 ++++++++----------- .../ClientApp/src/app/app.component.ts | 15 +++++ .../ClientApp/src/app/app.module.ts | 7 +-- RemoteSaveAdaptor/ClientApp/src/index.html | 1 + RemoteSaveAdaptor/ClientApp/src/main.ts | 30 ++++------ RemoteSaveAdaptor/ClientApp/src/styles.css | 20 +++---- 7 files changed, 64 insertions(+), 75 deletions(-) diff --git a/RemoteSaveAdaptor/ClientApp/angular.json b/RemoteSaveAdaptor/ClientApp/angular.json index 4ad8e34..35bacab 100644 --- a/RemoteSaveAdaptor/ClientApp/angular.json +++ b/RemoteSaveAdaptor/ClientApp/angular.json @@ -3,7 +3,7 @@ "version": 1, "newProjectRoot": "projects", "projects": { - "UrlAdaptor": { + "ClientApp": { "projectType": "application", "schematics": { "@schematics/angular:application": { @@ -30,7 +30,6 @@ "src/assets" ], "styles": [ - "node_modules/bootstrap/dist/css/bootstrap.min.css", "src/styles.css" ], "scripts": [] @@ -72,10 +71,10 @@ "builder": "@angular-devkit/build-angular:dev-server", "configurations": { "production": { - "browserTarget": "UrlAdaptor:build:production" + "buildTarget": "ClientApp:build:production" }, "development": { - "browserTarget": "UrlAdaptor:build:development", + "buildTarget": "ClientApp:build:development", "proxyConfig": "proxy.conf.js" } }, @@ -84,7 +83,7 @@ "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", "options": { - "browserTarget": "UrlAdaptor:build" + "buildTarget": "ClientApp:build" } }, "test": { @@ -132,7 +131,7 @@ } } }, - "defaultProject": "UrlAdaptor", + "defaultProject": "ClientApp", "cli": { "analytics": "71fc2fe0-4676-40bd-a865-1f8b7970ddb4" } diff --git a/RemoteSaveAdaptor/ClientApp/package.json b/RemoteSaveAdaptor/ClientApp/package.json index 5adc3bd..2e92b57 100644 --- a/RemoteSaveAdaptor/ClientApp/package.json +++ b/RemoteSaveAdaptor/ClientApp/package.json @@ -4,7 +4,7 @@ "scripts": { "ng": "ng", "prestart": "node aspnetcore-https", - "start": "run-script-os", + "start": "ng serve", "start:windows": "ng serve --port 44421 --ssl --ssl-cert \"%APPDATA%\\ASP.NET\\https\\%npm_package_name%.pem\" --ssl-key \"%APPDATA%\\ASP.NET\\https\\%npm_package_name%.key\"", "start:default": "ng serve --port 44421 --ssl --ssl-cert \"$HOME/.aspnet/https/${npm_package_name}.pem\" --ssl-key \"$HOME/.aspnet/https/${npm_package_name}.key\"", "build": "ng build", @@ -14,43 +14,32 @@ }, "private": true, "dependencies": { - "@angular/animations": "^15.2.8", - "@angular/common": "^15.2.8", - "@angular/compiler": "^15.2.8", - "@angular/core": "^15.2.8", - "@angular/forms": "^15.2.8", - "@angular/platform-browser": "^15.2.8", - "@angular/platform-browser-dynamic": "^15.2.8", - "@angular/platform-server": "^15.2.8", - "@angular/router": "^15.2.8", - "@syncfusion/ej2-angular-grids": "24.2.3", - "@syncfusion/ej2-angular-treegrid": "24.2.3", - "bootstrap": "^5.2.3", + "@angular/animations": "^20.0.0", + "@angular/common": "^20.0.0", + "@angular/compiler": "^20.0.0", + "@angular/core": "^20.0.0", + "@angular/forms": "^20.0.0", + "@angular/platform-browser": "^20.0.0", + "@angular/platform-browser-dynamic": "^20.0.0", + "@angular/platform-server": "^20.0.0", + "@angular/router": "^20.0.0", + "@syncfusion/ej2-angular-grids": "*", + "@syncfusion/ej2-angular-treegrid": "*", "jquery": "^3.6.4", - "oidc-client": "^1.11.5", - "popper.js": "^1.16.0", - "run-script-os": "^1.1.6", - "rxjs": "~7.8.1", - "tslib": "^2.5.0", - "zone.js": "~0.13.0" + "rxjs": "~7.8.0", + "zone.js": "~0.15.0" }, "devDependencies": { - "@angular-devkit/build-angular": "^15.2.7", - "@angular/cli": "^15.2.7", - "@angular/compiler-cli": "^15.2.8", - "@types/jasmine": "~4.3.1", - "@types/jasminewd2": "~2.0.10", - "@types/node": "^18.16.3", - "jasmine-core": "~4.6.0", - "karma": "~6.4.2", + "@angular-devkit/build-angular": "^20.3.24", + "@angular/cli": "^20.0.0", + "@angular/compiler-cli": "^20.0.0", + "@types/jasmine": "~5.1.0", + "jasmine-core": "~5.1.0", + "karma": "~6.4.0", "karma-chrome-launcher": "~3.2.0", "karma-coverage": "~2.2.0", "karma-jasmine": "~5.1.0", - "karma-jasmine-html-reporter": "^2.0.0", - "typescript": "~4.9.5" - }, - "overrides": { - "autoprefixer": "10.4.5", - "webpack": "5.81.0" + "karma-jasmine-html-reporter": "~2.1.0", + "typescript": "~5.8.2" } } diff --git a/RemoteSaveAdaptor/ClientApp/src/app/app.component.ts b/RemoteSaveAdaptor/ClientApp/src/app/app.component.ts index d16b404..f16f763 100644 --- a/RemoteSaveAdaptor/ClientApp/src/app/app.component.ts +++ b/RemoteSaveAdaptor/ClientApp/src/app/app.component.ts @@ -2,10 +2,25 @@ import { Component, ViewChild } from '@angular/core'; import { TreeGridComponent, ToolbarItems, EditSettingsModel } from '@syncfusion/ej2-angular-treegrid'; import { DataManager, RemoteSaveAdaptor } from '@syncfusion/ej2-data'; import { HttpClient } from '@angular/common/http'; + +import { HttpClientModule } from '@angular/common/http'; +import { BrowserModule } from '@angular/platform-browser'; + +import { FormsModule } from '@angular/forms'; import { Ajax } from '@syncfusion/ej2-base'; +import { FilterService, GridAllModule, SortService, GroupService } from '@syncfusion/ej2-angular-grids'; + +import { RowDDService, ToolbarService, TreeGridAllModule, EditService, PageService } from '@syncfusion/ej2-angular-treegrid'; + @Component({ selector: 'app-root', + providers: [EditService, SortService, ToolbarService, RowDDService, FilterService, PageService], + standalone:true, + imports: [ + FormsModule, + GridAllModule, TreeGridAllModule, + ], templateUrl: './app.component.html' }) export class AppComponent { diff --git a/RemoteSaveAdaptor/ClientApp/src/app/app.module.ts b/RemoteSaveAdaptor/ClientApp/src/app/app.module.ts index f1e2c22..c27e3ae 100644 --- a/RemoteSaveAdaptor/ClientApp/src/app/app.module.ts +++ b/RemoteSaveAdaptor/ClientApp/src/app/app.module.ts @@ -1,13 +1,8 @@ -import { BrowserModule } from '@angular/platform-browser'; + import { NgModule } from '@angular/core'; -import { FormsModule } from '@angular/forms'; -import { HttpClientModule } from '@angular/common/http'; import { RouterModule } from '@angular/router'; import { AppComponent } from './app.component'; -import { FilterService, GridAllModule, SortService, GroupService } from '@syncfusion/ej2-angular-grids'; - -import { RowDDService, ToolbarService, TreeGridAllModule, EditService, PageService } from '@syncfusion/ej2-angular-treegrid'; @NgModule({ declarations: [ diff --git a/RemoteSaveAdaptor/ClientApp/src/index.html b/RemoteSaveAdaptor/ClientApp/src/index.html index 0c644b9..eef9713 100644 --- a/RemoteSaveAdaptor/ClientApp/src/index.html +++ b/RemoteSaveAdaptor/ClientApp/src/index.html @@ -7,6 +7,7 @@ + diff --git a/RemoteSaveAdaptor/ClientApp/src/main.ts b/RemoteSaveAdaptor/ClientApp/src/main.ts index a2f708c..bf9bd37 100644 --- a/RemoteSaveAdaptor/ClientApp/src/main.ts +++ b/RemoteSaveAdaptor/ClientApp/src/main.ts @@ -1,20 +1,10 @@ -import { enableProdMode } from '@angular/core'; -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; - -import { AppModule } from './app/app.module'; -import { environment } from './environments/environment'; - -export function getBaseUrl() { - return document.getElementsByTagName('base')[0].href; -} - -const providers = [ - { provide: 'BASE_URL', useFactory: getBaseUrl, deps: [] } -]; - -if (environment.production) { - enableProdMode(); -} - -platformBrowserDynamic(providers).bootstrapModule(AppModule) - .catch(err => console.log(err)); +import { bootstrapApplication } from '@angular/platform-browser'; +import { importProvidersFrom } from '@angular/core'; +import { AppComponent } from './app/app.component'; +import { HttpClientModule } from '@angular/common/http'; +import 'zone.js'; + +bootstrapApplication(AppComponent, { + providers: [importProvidersFrom(HttpClientModule)] +}) + .catch((err) => console.error(err)); \ No newline at end of file diff --git a/RemoteSaveAdaptor/ClientApp/src/styles.css b/RemoteSaveAdaptor/ClientApp/src/styles.css index de39047..cbed7fc 100644 --- a/RemoteSaveAdaptor/ClientApp/src/styles.css +++ b/RemoteSaveAdaptor/ClientApp/src/styles.css @@ -1,10 +1,10 @@ -@import '../node_modules/@syncfusion/ej2-base/styles/material.css'; -@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css'; -@import '../node_modules/@syncfusion/ej2-calendars/styles/material.css'; -@import '../node_modules/@syncfusion/ej2-dropdowns/styles/material.css'; -@import '../node_modules/@syncfusion/ej2-inputs/styles/material.css'; -@import '../node_modules/@syncfusion/ej2-navigations/styles/material.css'; -@import '../node_modules/@syncfusion/ej2-popups/styles/material.css'; -@import '../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css'; -@import '../node_modules/@syncfusion/ej2-angular-grids/styles/material.css'; -@import '../node_modules/@syncfusion/ej2-angular-treegrid/styles/material.css'; +@import '../node_modules/@syncfusion/ej2-base/styles/material3.css'; +@import '../node_modules/@syncfusion/ej2-buttons/styles/material3.css'; +@import '../node_modules/@syncfusion/ej2-calendars/styles/material3.css'; +@import '../node_modules/@syncfusion/ej2-dropdowns/styles/material3.css'; +@import '../node_modules/@syncfusion/ej2-inputs/styles/material3.css'; +@import '../node_modules/@syncfusion/ej2-navigations/styles/material3.css'; +@import '../node_modules/@syncfusion/ej2-popups/styles/material3.css'; +@import '../node_modules/@syncfusion/ej2-splitbuttons/styles/material3.css'; +@import '../node_modules/@syncfusion/ej2-angular-grids/styles/material3.css'; +@import '../node_modules/@syncfusion/ej2-angular-treegrid/styles/material3.css'; From 8c8e88e2890679ba86bed0c561da28859f75a5ae Mon Sep 17 00:00:00 2001 From: Sivaranjani Rajasekaran Date: Mon, 4 May 2026 18:51:49 +0530 Subject: [PATCH 2/2] Updated the version --- RemoteSaveAdaptor/URLAdaptor.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RemoteSaveAdaptor/URLAdaptor.csproj b/RemoteSaveAdaptor/URLAdaptor.csproj index 62024b8..56c6d24 100644 --- a/RemoteSaveAdaptor/URLAdaptor.csproj +++ b/RemoteSaveAdaptor/URLAdaptor.csproj @@ -14,7 +14,7 @@ - +