diff --git a/angular.json b/angular.json index 5831f4e..8837d8c 100644 --- a/angular.json +++ b/angular.json @@ -11,21 +11,20 @@ "prefix": "app", "architect": { "build": { - "builder": "@angular-devkit/build-angular:browser", + "builder": "@angular-devkit/build-angular:application", "options": { "outputPath": "dist/getting-started", "index": "src/index.html", - "main": "src/main.ts", - "polyfills": "src/polyfills.ts", + "browser": "src/main.ts", + "polyfills": ["zone.js"], "tsConfig": "tsconfig.app.json", - "aot": false, "assets": [ "src/favicon.ico", "src/assets" ], "styles": [ "src/styles.css", - "./node_modules/@syncfusion/ej2-material-theme/styles/material.css" + "@syncfusion/ej2-base/styles/material.css" ], "scripts": [] }, @@ -40,12 +39,8 @@ "optimization": true, "outputHashing": "all", "sourceMap": false, - "extractCss": true, "namedChunks": false, - "aot": true, "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true, "budgets": [ { "type": "initial", @@ -58,71 +53,50 @@ "maximumError": "10kb" } ] + }, + "development": { + "optimization": false, + "extractLicenses": false, + "sourceMap": true } - } + }, + "defaultConfiguration": "production" }, "serve": { "builder": "@angular-devkit/build-angular:dev-server", - "options": { - "browserTarget": "getting-started:build" - }, "configurations": { "production": { - "browserTarget": "getting-started:build:production" + "buildTarget": "getting-started:build:production" + }, + "development": { + "buildTarget": "getting-started:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", "options": { - "browserTarget": "getting-started:build" + "buildTarget": "getting-started:build" } }, "test": { "builder": "@angular-devkit/build-angular:karma", "options": { - "main": "src/test.ts", - "polyfills": "src/polyfills.ts", + "polyfills": ["zone.js", "zone.js/testing"], "tsConfig": "tsconfig.spec.json", - "karmaConfig": "karma.conf.js", "assets": [ "src/favicon.ico", "src/assets" ], "styles": [ "src/styles.css", - "./node_modules/@syncfusion/ej2-material-theme/styles/material.css" + "@syncfusion/ej2-base/styles/material.css" ], "scripts": [] } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "tsconfig.app.json", - "tsconfig.spec.json", - "e2e/tsconfig.json" - ], - "exclude": [ - "**/node_modules/**" - ] - } - }, - "e2e": { - "builder": "@angular-devkit/build-angular:protractor", - "options": { - "protractorConfig": "e2e/protractor.conf.js", - "devServerTarget": "getting-started:serve" - }, - "configurations": { - "production": { - "devServerTarget": "getting-started:serve:production" - } - } } } } - }, - "defaultProject": "getting-started" + } } \ No newline at end of file diff --git a/package.json b/package.json index 495c915..4243a58 100644 --- a/package.json +++ b/package.json @@ -11,40 +11,35 @@ }, "private": true, "dependencies": { - "@angular/animations": "~10.2.5", - "@angular/common": "~10.2.5", - "@angular/compiler": "~10.2.5", - "@angular/core": "~10.2.5", - "@angular/forms": "~10.2.5", - "@angular/platform-browser": "~10.2.5", - "@angular/platform-browser-dynamic": "~10.2.5", - "@angular/router": "~10.2.5", - "@syncfusion/ej2-angular-grids": "^18.4.30", - "@syncfusion/ej2-angular-schedule": "^18.4.30", - "core-js": "^3.6.5", - "rxjs": "~6.6.0", - "tslib": "^2.0.0", - "zone.js": "~0.10.3" + "@angular/animations": "^19.0.0", + "@angular/common": "^19.0.0", + "@angular/compiler": "^19.0.0", + "@angular/core": "^19.0.0", + "@angular/forms": "^19.0.0", + "@angular/platform-browser": "^19.0.0", + "@angular/platform-browser-dynamic": "^19.0.0", + "@angular/router": "^19.0.0", + "@syncfusion/ej2-angular-treegrid": "^33.1.0", + "rxjs": "~7.8.0", + "tslib": "^2.6.0", + "zone.js": "~0.15.0" }, "devDependencies": { - "@angular-devkit/build-angular": "~0.1002.4", - "@angular/cli": "~10.2.4", - "@angular/compiler-cli": "~10.2.5", - "@angular/language-service": "~10.2.5", - "@types/jasmine": "~3.5.0", - "@types/jasminewd2": "~2.0.3", - "@types/node": "^12.11.1", - "codelyzer": "^6.0.0", - "jasmine-core": "~3.5.0", - "jasmine-spec-reporter": "~5.0.0", - "karma": "~6.3.16", - "karma-chrome-launcher": "~3.1.0", - "karma-coverage-istanbul-reporter": "~3.0.2", - "karma-jasmine": "~4.0.0", - "karma-jasmine-html-reporter": "^1.4.0", - "protractor": "~7.0.0", - "ts-node": "~8.3.0", - "tslint": "~6.1.0", - "typescript": "4.0.8" + "@angular-devkit/build-angular": "^19.0.0", + "@angular/cli": "^19.0.0", + "@angular/compiler-cli": "^19.0.0", + "@types/jasmine": "~5.1.0", + "@types/node": "^18.0.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.1.0", + "typescript": "~5.6.0" + }, + "overrides": { + "serialize-javascript": "7.0.5", + "tar": "7.5.14" } } diff --git a/src/app/app.component.css b/src/app/app.component.css index 6f1e618..4494afc 100644 --- a/src/app/app.component.css +++ b/src/app/app.component.css @@ -1,4 +1,4 @@ -@import 'https://cdn.syncfusion.com/ej2/17.3.27/material.css'; +@import 'https://cdn.syncfusion.com/ej2/33.2.3/material.css'; .border { border: 1px solid #e0e0e0; border-width: 1px 0px 0px 0px; diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 8e0368a..8736ff6 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -5,6 +5,7 @@ import { Internationalization } from '@syncfusion/ej2-base'; var I18n: Internationalization = new Internationalization(); @Component({ + standalone: false, selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] diff --git a/src/main.ts b/src/main.ts index 22d822d..d8b3729 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,12 +1,6 @@ -import { enableProdMode } from '@angular/core'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { AppModule } from './app/app.module'; -import { environment } from './environments/environment'; - -if (environment.production) { - enableProdMode(); -} platformBrowserDynamic().bootstrapModule(AppModule) .catch(err => console.error(err)); diff --git a/src/styles.css b/src/styles.css index 8779f06..99aaf83 100644 --- a/src/styles.css +++ b/src/styles.css @@ -1,2 +1,2 @@ -@import '../node_modules/@syncfusion/ej2-material-theme/styles/material.css'; +@import '@syncfusion/ej2-base/styles/material.css'; /* You can add global styles to this file, and also import other style files */ diff --git a/tsconfig.app.json b/tsconfig.app.json index 1ddeb99..ec3dde1 100644 --- a/tsconfig.app.json +++ b/tsconfig.app.json @@ -5,8 +5,7 @@ "types": [] }, "files": [ - "src/main.ts", - "src/polyfills.ts" + "src/main.ts" ], "include": [ "src/**/*.ts" diff --git a/tsconfig.json b/tsconfig.json index e01adf2..845c9ee 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,20 +7,24 @@ "declaration": false, "downlevelIteration": true, "experimentalDecorators": true, - "module": "esnext", - "moduleResolution": "node", + "module": "ES2022", + "moduleResolution": "bundler", "importHelpers": true, - "target": "es2015", + "target": "ES2022", + "useDefineForClassFields": false, "typeRoots": [ "node_modules/@types" ], "lib": [ - "es2018", - "dom" + "ES2022", + "dom", + "dom.iterable" ] }, "angularCompilerOptions": { - "fullTemplateTypeCheck": true, - "strictInjectionParameters": true + "enableI18nLegacyMessageIdFormat": false, + "strictInjectionParameters": true, + "strictInputAccessModifiers": true, + "strictTemplates": true } }