chore(angular-15): update to angular 15 (#6005)

* fix(package-lock): update version in package-lock

* fix(package-lock): update version in package-lock

* chore(angular-15): update to angular 15

* chore(nebular-11): update to angular/cdk to 15, update nebular

* chore(eslint): update @angular-eslint to v15
This commit is contained in:
Denis Strigo 2023-10-29 14:50:21 +01:00 committed by GitHub
parent e06d9bd02d
commit aa91634dab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 3039 additions and 2628 deletions

View file

@ -180,6 +180,12 @@
}, },
"@schematics/angular:directive": { "@schematics/angular:directive": {
"prefix": "ngx" "prefix": "ngx"
},
"@angular-eslint/schematics:application": {
"setParserOptionsProject": true
},
"@angular-eslint/schematics:library": {
"setParserOptionsProject": true
} }
} }
} }

5593
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -30,21 +30,21 @@
"postinstall": "ngcc --properties es2015 es5 browser module main --first-only --create-ivy-entry-points --tsconfig \"./src/tsconfig.app.json\"" "postinstall": "ngcc --properties es2015 es5 browser module main --first-only --create-ivy-entry-points --tsconfig \"./src/tsconfig.app.json\""
}, },
"dependencies": { "dependencies": {
"@angular/animations": "^14.2.12", "@angular/animations": "^15.2.10",
"@angular/cdk": "12.1.0", "@angular/cdk": "^15.2.9",
"@angular/common": "^14.2.12", "@angular/common": "^15.2.10",
"@angular/compiler": "^14.2.12", "@angular/compiler": "^15.2.10",
"@angular/core": "^14.2.12", "@angular/core": "^15.2.10",
"@angular/forms": "^14.2.12", "@angular/forms": "^15.2.10",
"@angular/google-maps": "^12.2.13", "@angular/google-maps": "^12.2.13",
"@angular/platform-browser": "^14.2.12", "@angular/platform-browser": "^15.2.10",
"@angular/platform-browser-dynamic": "^14.2.12", "@angular/platform-browser-dynamic": "^15.2.10",
"@angular/router": "^14.2.12", "@angular/router": "^15.2.10",
"@asymmetrik/ngx-leaflet": "3.0.1", "@asymmetrik/ngx-leaflet": "3.0.1",
"@nebular/auth": "10.0.0", "@nebular/auth": "11.0.1",
"@nebular/eva-icons": "10.0.0", "@nebular/eva-icons": "11.0.1",
"@nebular/security": "10.0.0", "@nebular/security": "11.0.1",
"@nebular/theme": "10.0.0", "@nebular/theme": "11.0.1",
"@swimlane/ngx-charts": "^14.0.0", "@swimlane/ngx-charts": "^14.0.0",
"angular2-chartjs": "0.4.1", "angular2-chartjs": "0.4.1",
"bootstrap": "4.3.1", "bootstrap": "4.3.1",
@ -77,15 +77,15 @@
"zone.js": "~0.11.4" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "^14.2.10", "@angular-devkit/build-angular": "^15.2.10",
"@angular-eslint/builder": "14.4.0", "@angular-eslint/builder": "15.2.1",
"@angular-eslint/eslint-plugin": "14.4.0", "@angular-eslint/eslint-plugin": "15.2.1",
"@angular-eslint/eslint-plugin-template": "14.4.0", "@angular-eslint/eslint-plugin-template": "15.2.1",
"@angular-eslint/schematics": "14.4.0", "@angular-eslint/schematics": "15.2.1",
"@angular-eslint/template-parser": "14.4.0", "@angular-eslint/template-parser": "15.2.1",
"@angular/cli": "^14.2.10", "@angular/cli": "^15.2.10",
"@angular/compiler-cli": "^14.2.12", "@angular/compiler-cli": "^15.2.10",
"@angular/language-service": "14.2.12", "@angular/language-service": "15.2.10",
"@compodoc/compodoc": "1.0.1", "@compodoc/compodoc": "1.0.1",
"@fortawesome/fontawesome-free": "^5.2.0", "@fortawesome/fontawesome-free": "^5.2.0",
"@types/d3-color": "1.0.5", "@types/d3-color": "1.0.5",
@ -93,11 +93,11 @@
"@types/jasminewd2": "2.0.3", "@types/jasminewd2": "2.0.3",
"@types/leaflet": "1.2.3", "@types/leaflet": "1.2.3",
"@types/node": "^12.12.70", "@types/node": "^12.12.70",
"@typescript-eslint/eslint-plugin": "^5.36.2", "@typescript-eslint/eslint-plugin": "^5.43.0",
"@typescript-eslint/parser": "^5.36.2", "@typescript-eslint/parser": "^5.43.0",
"codelyzer": "^6.0.2", "codelyzer": "^6.0.2",
"conventional-changelog-cli": "1.3.4", "conventional-changelog-cli": "1.3.4",
"eslint": "^8.23.0", "eslint": "^8.28.0",
"husky": "0.13.3", "husky": "0.13.3",
"jasmine-core": "~3.6.0", "jasmine-core": "~3.6.0",
"jasmine-spec-reporter": "~5.0.0", "jasmine-spec-reporter": "~5.0.0",
@ -114,6 +114,6 @@
"ts-node": "3.2.2", "ts-node": "3.2.2",
"tslint": "~6.1.0", "tslint": "~6.1.0",
"tslint-language-service": "^0.9.9", "tslint-language-service": "^0.9.9",
"typescript": "~4.6.4" "typescript": "~4.9.5"
} }
} }

View file

@ -41,7 +41,7 @@ export class CountryOrdersChartComponent implements OnDestroy, OnChanges {
} }
ngOnChanges(changes: SimpleChanges): void { ngOnChanges(changes: SimpleChanges): void {
if (changes.data && !changes.data.isFirstChange()) { if (changes.data && !changes.data.isFirstChange() && this.echartsInstance) {
this.echartsInstance.setOption({ this.echartsInstance.setOption({
series: [ series: [
{ {

View file

@ -20,7 +20,6 @@ import {
// Unfortunately there's no typing for the `__karma__` variable. Just declare it as any. // Unfortunately there's no typing for the `__karma__` variable. Just declare it as any.
declare const __karma__: any; declare const __karma__: any;
declare const require: any;
// Prevent Karma from running prematurely. // Prevent Karma from running prematurely.
__karma__.loaded = function () {}; __karma__.loaded = function () {};
@ -32,9 +31,5 @@ getTestBed().initTestEnvironment(
teardown: { destroyAfterEach: false }, teardown: { destroyAfterEach: false },
}, },
); );
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);
// Finally, start Karma to run the tests. // Finally, start Karma to run the tests.
__karma__.start(); __karma__.start();

View file

@ -8,7 +8,7 @@
"declaration": false, "declaration": false,
"moduleResolution": "node", "moduleResolution": "node",
"experimentalDecorators": true, "experimentalDecorators": true,
"target": "es2020", "target": "ES2022",
"typeRoots": [ "typeRoots": [
"node_modules/@types" "node_modules/@types"
], ],
@ -17,7 +17,10 @@
"dom" "dom"
], ],
"plugins": [ "plugins": [
{ "name": "tslint-language-service"} {
] "name": "tslint-language-service"
}
],
"useDefineForClassFields": false
} }
} }