Skip to content

Commit 9d9677c

Browse files
authored
Merge pull request #2 from SyncfusionExamples/1023562-Updatepackage
Documentation(1023562): Update sample to latest
2 parents 5077b79 + 3cddc8a commit 9d9677c

7 files changed

Lines changed: 53 additions & 58 deletions

File tree

WebApiAdaptor.Client/angular.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"prefix": "app",
2222
"architect": {
2323
"build": {
24-
"builder": "@angular-devkit/build-angular:application",
24+
"builder": "@angular/build:application",
2525
"options": {
2626
"outputPath": "dist/webapiadaptor.client",
2727
"index": "src/index.html",
@@ -64,7 +64,7 @@
6464
"defaultConfiguration": "production"
6565
},
6666
"serve": {
67-
"builder": "@angular-devkit/build-angular:dev-server",
67+
"builder": "@angular/build:dev-server",
6868
"configurations": {
6969
"production": {
7070
"buildTarget": "webapiadaptor.client:build:production"
@@ -79,13 +79,13 @@
7979
}
8080
},
8181
"extract-i18n": {
82-
"builder": "@angular-devkit/build-angular:extract-i18n",
82+
"builder": "@angular/build:extract-i18n",
8383
"options": {
8484
"buildTarget": "webapiadaptor.client:build"
8585
}
8686
},
8787
"test": {
88-
"builder": "@angular-devkit/build-angular:karma",
88+
"builder": "@angular/build:dev-server",
8989
"options": {
9090
"polyfills": [
9191
"zone.js",
@@ -105,5 +105,8 @@
105105
}
106106
}
107107
}
108+
},
109+
"cli": {
110+
"analytics": "ad68dbff-bb62-41ba-934f-bcd1b8e70f47"
108111
}
109112
}

WebApiAdaptor.Client/package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,33 +13,33 @@
1313
},
1414
"private": true,
1515
"dependencies": {
16-
"@angular/animations": "^17.2.0",
17-
"@angular/common": "^17.2.0",
18-
"@angular/compiler": "^17.2.0",
19-
"@angular/core": "^17.2.0",
20-
"@angular/forms": "^17.2.0",
21-
"@angular/platform-browser": "^17.2.0",
22-
"@angular/platform-browser-dynamic": "^17.2.0",
23-
"@angular/router": "^17.2.0",
24-
"@syncfusion/ej2-angular-grids": "^25.1.35",
25-
"@syncfusion/ej2-data": "^25.1.35",
16+
"@angular/animations": "^20.0.0",
17+
"@angular/common": "^20.0.0",
18+
"@angular/compiler": "^20.0.0",
19+
"@angular/core": "^20.0.0",
20+
"@angular/forms": "^20.0.0",
21+
"@angular/platform-browser": "^20.0.0",
22+
"@angular/platform-browser-dynamic": "^20.0.0",
23+
"@angular/router": "^20.0.0",
24+
"@syncfusion/ej2-angular-grids": "*",
25+
"@syncfusion/ej2-data": "*",
2626
"jest-editor-support": "*",
2727
"run-script-os": "*",
2828
"rxjs": "~7.8.0",
2929
"tslib": "^2.3.0",
30-
"zone.js": "~0.14.3"
30+
"zone.js": "~0.15.0"
3131
},
3232
"devDependencies": {
33-
"@angular-devkit/build-angular": "^17.2.3",
34-
"@angular/cli": "^17.2.3",
35-
"@angular/compiler-cli": "^17.2.0",
33+
"@angular/build": "^20.0.0",
34+
"@angular/cli": "^20.0.0",
35+
"@angular/compiler-cli": "^20.0.0",
3636
"@types/jasmine": "~5.1.0",
3737
"jasmine-core": "~5.1.0",
3838
"karma": "~6.4.0",
3939
"karma-chrome-launcher": "~3.2.0",
4040
"karma-coverage": "~2.2.0",
4141
"karma-jasmine": "~5.1.0",
4242
"karma-jasmine-html-reporter": "~2.1.0",
43-
"typescript": "~5.3.2"
43+
"typescript": "~5.8.2"
4444
}
4545
}

WebApiAdaptor.Client/src/app/app.component.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
import { Component, ViewChild } from '@angular/core';
2-
import { GridComponent, ToolbarItems, EditSettingsModel } from '@syncfusion/ej2-angular-grids';
2+
import { GridComponent, ToolbarItems, EditSettingsModel, EditService, ToolbarService} from '@syncfusion/ej2-angular-grids';
33
import { DataManager, WebApiAdaptor } from '@syncfusion/ej2-data';
4+
import { GridModule, } from '@syncfusion/ej2-angular-grids';
45

56
@Component({
67
selector: 'app-root',
7-
templateUrl: './app.component.html'
8+
templateUrl: './app.component.html',
9+
standalone: true,
10+
imports: [GridModule],
11+
providers: [EditService, ToolbarService, ]
12+
813
})
914
export class AppComponent {
1015
@ViewChild('grid')
@@ -15,7 +20,7 @@ export class AppComponent {
1520

1621
ngOnInit(): void {
1722
this.data = new DataManager({
18-
url: 'https://localhost:7041/api/Orders',
23+
url: 'http://localhost:5070/api/Orders',
1924
adaptor: new WebApiAdaptor(),
2025
crossDomain:true
2126
});
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { ApplicationConfig, provideBrowserGlobalErrorListeners, provideZoneChangeDetection } from '@angular/core';
2+
3+
export const appConfig: ApplicationConfig = {
4+
providers: [
5+
provideBrowserGlobalErrorListeners(),
6+
provideZoneChangeDetection({ eventCoalescing: true }),
7+
8+
]
9+
};

WebApiAdaptor.Client/src/app/app.module.ts

Lines changed: 0 additions & 21 deletions
This file was deleted.

WebApiAdaptor.Client/src/main.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
1+
import { bootstrapApplication } from '@angular/platform-browser';
2+
import { appConfig } from './app/app.config';
3+
import { AppComponent } from './app/app.component';
24

3-
import { AppModule } from './app/app.module';
4-
5-
6-
platformBrowserDynamic().bootstrapModule(AppModule)
7-
.catch(err => console.error(err));
5+
bootstrapApplication(AppComponent, appConfig)
6+
.catch((err) => console.error(err));
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/* You can add global styles to this file, and also import other style files */
2-
@import '../node_modules/@syncfusion/ej2-base/styles/material.css';
3-
@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';
4-
@import '../node_modules/@syncfusion/ej2-calendars/styles/material.css';
5-
@import '../node_modules/@syncfusion/ej2-dropdowns/styles/material.css';
6-
@import '../node_modules/@syncfusion/ej2-inputs/styles/material.css';
7-
@import '../node_modules/@syncfusion/ej2-navigations/styles/material.css';
8-
@import '../node_modules/@syncfusion/ej2-popups/styles/material.css';
9-
@import '../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css';
10-
@import '../node_modules/@syncfusion/ej2-angular-grids/styles/material.css';
2+
@import '../node_modules/@syncfusion/ej2-base/styles/material3.css';
3+
@import '../node_modules/@syncfusion/ej2-buttons/styles/material3.css';
4+
@import '../node_modules/@syncfusion/ej2-calendars/styles/material3.css';
5+
@import '../node_modules/@syncfusion/ej2-dropdowns/styles/material3.css';
6+
@import '../node_modules/@syncfusion/ej2-inputs/styles/material3.css';
7+
@import '../node_modules/@syncfusion/ej2-navigations/styles/material3.css';
8+
@import '../node_modules/@syncfusion/ej2-popups/styles/material3.css';
9+
@import '../node_modules/@syncfusion/ej2-splitbuttons/styles/material3.css';
10+
@import '../node_modules/@syncfusion/ej2-angular-grids/styles/material3.css';

0 commit comments

Comments
 (0)