Skip to content

Commit a584f55

Browse files
authored
Merge pull request #38 from SyncfusionExamples/1023562-PackageUpdate
Documentation(1023562): Update Package
2 parents e2ce8a8 + 2e2a2f6 commit a584f55

9 files changed

Lines changed: 71 additions & 53 deletions

File tree

‎angular.json‎

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
"src/assets"
2424
],
2525
"styles": [
26-
"src/styles.css",
27-
"./node_modules/@syncfusion/ej2-material-theme/styles/material.css"
26+
"src/styles.css"
2827
],
2928
"scripts": []
3029
},
@@ -58,18 +57,18 @@
5857
"serve": {
5958
"builder": "@angular-devkit/build-angular:dev-server",
6059
"options": {
61-
"browserTarget": "editing:build"
60+
"buildTarget": "editing:build"
6261
},
6362
"configurations": {
6463
"production": {
65-
"browserTarget": "editing:build:production"
64+
"buildTarget": "editing:build:production"
6665
}
6766
}
6867
},
6968
"extract-i18n": {
7069
"builder": "@angular-devkit/build-angular:extract-i18n",
7170
"options": {
72-
"browserTarget": "editing:build"
71+
"buildTarget": "editing:build"
7372
}
7473
},
7574
"test": {
@@ -80,8 +79,7 @@
8079
"tsConfig": "src/tsconfig.spec.json",
8180
"karmaConfig": "src/karma.conf.js",
8281
"styles": [
83-
"src/styles.css",
84-
"./node_modules/@syncfusion/ej2-material-theme/styles/material.css"
82+
"src/styles.css"
8583
],
8684
"scripts": [],
8785
"assets": [
@@ -133,5 +131,8 @@
133131
}
134132
}
135133
},
136-
"defaultProject": "editing"
134+
"defaultProject": "editing",
135+
"cli": {
136+
"analytics": "034de265-f285-424f-bfa4-c8c195d2e03f"
137+
}
137138
}

‎package.json‎

Lines changed: 24 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -11,40 +11,32 @@
1111
},
1212
"private": true,
1313
"dependencies": {
14-
"@angular/animations": "~10.2.5",
15-
"@angular/common": "~10.2.5",
16-
"@angular/compiler": "~10.2.5",
17-
"@angular/core": "~10.2.5",
18-
"@angular/forms": "~10.2.5",
19-
"@angular/platform-browser": "~10.2.5",
20-
"@angular/platform-browser-dynamic": "~10.2.5",
21-
"@angular/router": "~10.2.5",
22-
"@syncfusion/ej2-angular-treegrid": "^17.3.27",
23-
"@syncfusion/ej2-material-theme": "~17.2.48",
24-
"core-js": "^2.6.10",
14+
"@angular/animations": "^20.0.0",
15+
"@angular/common": "^20.0.0",
16+
"@angular/compiler": "^20.0.0",
17+
"@angular/core": "^20.0.0",
18+
"@angular/forms": "^20.0.0",
19+
"@angular/platform-browser": "^20.0.0",
20+
"@angular/platform-browser-dynamic": "^20.0.0",
21+
"@angular/router": "^20.0.0",
22+
"@syncfusion/ej2-angular-treegrid": "^33.2.3",
23+
"@syncfusion/ej2-material-theme": "*",
24+
"core-js": "^3.6.5",
2525
"rxjs": "^6.6.7",
26-
"zone.js": "~0.10.3"
26+
"zone.js": "^0.15.1"
2727
},
2828
"devDependencies": {
29-
"@angular-devkit/build-angular": "~0.1002.3",
30-
"@angular/cli": "~10.2.3",
31-
"@angular/compiler-cli": "~10.2.5",
32-
"@angular/language-service": "~10.2.5",
33-
"@types/jasmine": "~3.10.3",
34-
"@types/jasminewd2": "^2.0.8",
35-
"@types/node": "^12.11.1",
36-
"angular-in-memory-web-api": "^0.11.0",
37-
"codelyzer": "^6.0.0",
38-
"jasmine-core": "~3.10.1",
39-
"jasmine-spec-reporter": "~5.0.0",
40-
"karma": "^6.4.4",
41-
"karma-chrome-launcher": "^3.2.0",
42-
"karma-coverage-istanbul-reporter": "^3.0.3",
43-
"karma-jasmine": "^4.0.2",
44-
"karma-jasmine-html-reporter": "^1.7.0",
45-
"protractor": "~7.0.0",
46-
"ts-node": "~8.3.0",
47-
"tslint": "~6.1.0",
48-
"typescript": "~3.9.7"
29+
"@angular-devkit/build-angular": "^20.3.24",
30+
"@angular/cli": "^20.0.0",
31+
"@angular/compiler-cli": "^20.0.0",
32+
"@types/jasmine": "~5.1.0",
33+
"angular-in-memory-web-api": "^0.20.0",
34+
"jasmine-core": "~5.1.0",
35+
"karma": "~6.4.0",
36+
"karma-chrome-launcher": "~3.2.0",
37+
"karma-coverage": "~2.2.0",
38+
"karma-jasmine": "~5.1.0",
39+
"karma-jasmine-html-reporter": "~2.1.0",
40+
"typescript": "~5.8.2"
4941
}
5042
}

‎src/app/app.component.ts‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
import { Component, OnInit } from "@angular/core";
22
import {
33
EditSettingsModel,
4-
DataStateChangeEventArgs
4+
DataStateChangeEventArgs,
5+
TreeGridModule
56
} from "@syncfusion/ej2-angular-treegrid";
67
import { Observable } from "rxjs";
78
import { TaskStoreService } from "./task-store.service";
89
import { DataSourceChangedEventArgs } from "@syncfusion/ej2-grids";
10+
import { AsyncPipe } from "@angular/common";
11+
import { HttpClientModule } from "@angular/common/http";
912

1013
@Component({
1114
selector: "app-root",
1215
templateUrl: "./app.component.html",
13-
styleUrls: ["./app.component.css"]
16+
styleUrls: ["./app.component.css"],
17+
standalone: true,
18+
imports: [TreeGridModule, AsyncPipe, HttpClientModule]
1419
})
1520
export class AppComponent implements OnInit {
1621
public editSettings: EditSettingsModel;

‎src/app/app.module.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,12 @@ import { TaskDataService } from "./task-data.service";
1212
import { HttpClientModule } from "@angular/common/http";
1313

1414
@NgModule({
15-
declarations: [AppComponent],
1615
imports: [
1716
BrowserModule,
1817
TreeGridModule,
1918
InMemoryWebApiModule.forRoot(TaskDataService),
2019
HttpClientModule
2120
],
22-
providers: [EditService, ToolbarService],
23-
bootstrap: [AppComponent]
21+
providers: [EditService, ToolbarService]
2422
})
2523
export class AppModule {}

‎src/index.html‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
<meta name="viewport" content="width=device-width, initial-scale=1">
99
<link rel="icon" type="image/x-icon" href="favicon.ico">
10+
<script src="https://cdn.syncfusion.com/ej2/syncfusion-helper.js" type ="text/javascript"></script>
1011
</head>
1112
<body>
1213
<app-root></app-root>

‎src/main.ts‎

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
11
import { enableProdMode } from '@angular/core';
2-
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
2+
import { bootstrapApplication } from '@angular/platform-browser';
3+
import 'zone.js';
34

4-
import { AppModule } from './app/app.module';
5+
import { AppComponent } from './app/app.component';
56
import { environment } from './environments/environment';
7+
import { importProvidersFrom } from '@angular/core';
8+
import { InMemoryWebApiModule } from 'angular-in-memory-web-api';
9+
import { TaskDataService } from './app/task-data.service';
10+
import { EditService, ToolbarService } from '@syncfusion/ej2-angular-treegrid';
11+
import { HttpClientModule } from '@angular/common/http';
612

713
if (environment.production) {
814
enableProdMode();
915
}
1016

11-
platformBrowserDynamic().bootstrapModule(AppModule)
12-
.catch(err => console.error(err));
17+
bootstrapApplication(AppComponent, {
18+
providers: [
19+
importProvidersFrom(HttpClientModule),
20+
importProvidersFrom(InMemoryWebApiModule.forRoot(TaskDataService)),
21+
EditService,
22+
ToolbarService
23+
]
24+
}).catch(err => console.error(err));

‎src/polyfills.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
/***************************************************************************************************
7373
* Zone JS is required by default for Angular itself.
7474
*/
75-
import 'zone.js/dist/zone'; // Included with Angular CLI.
75+
import 'zone.js'; // Included with Angular CLI.
7676

7777

7878
/***************************************************************************************************

‎src/styles.css‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
1-
@import '../node_modules/@syncfusion/ej2-material-theme/styles/material.css';
21
/* You can add global styles to this file, and also import other style files */
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-grids/styles/material3.css';
11+
@import '../node_modules/@syncfusion/ej2-treegrid/styles/material3.css';

‎tsconfig.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
"sourceMap": true,
77
"declaration": false,
88
"module": "es2015",
9-
"moduleResolution": "node",
9+
"moduleResolution": "bundler",
1010
"emitDecoratorMetadata": true,
1111
"experimentalDecorators": true,
12-
"target": "es5",
12+
"target": "es2022",
1313
"typeRoots": ["node_modules/@types"],
1414
"lib": ["es2018", "dom"]
1515
}

0 commit comments

Comments
 (0)