[frontend] Version bump angular/core and angular/cli to 15

This commit is contained in:
ogdbd3h5qze42igcv8wcrqk3 2023-03-18 15:30:46 +01:00
parent 401b4f32b1
commit 038a4bf976
5 changed files with 1324 additions and 1551 deletions

File diff suppressed because it is too large Load diff

View file

@ -12,27 +12,27 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "^14.3.0", "@angular/animations": "^15.2.3",
"@angular/cdk": "^14.2.7", "@angular/cdk": "^14.2.7",
"@angular/common": "^14.3.0", "@angular/common": "^15.2.3",
"@angular/compiler": "^14.3.0", "@angular/compiler": "^15.2.3",
"@angular/core": "^14.3.0", "@angular/core": "^15.2.3",
"@angular/forms": "^14.3.0", "@angular/forms": "^15.2.3",
"@angular/localize": "^14.3.0", "@angular/localize": "^15.2.3",
"@angular/material": "^14.2.7", "@angular/material": "^14.2.7",
"@angular/platform-browser": "^14.3.0", "@angular/platform-browser": "^15.2.3",
"@angular/platform-browser-dynamic": "^14.3.0", "@angular/platform-browser-dynamic": "^15.2.3",
"@angular/router": "^14.3.0", "@angular/router": "^15.2.3",
"ng2-search-filter": "^0.5.1", "ng2-search-filter": "^0.5.1",
"rxjs": "~6.5.4", "rxjs": "~6.5.4",
"tslib": "^2.0.0", "tslib": "^2.0.0",
"zone.js": "~0.11.4" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "^14.2.11", "@angular-devkit/build-angular": "^15.2.4",
"@angular/cli": "^14.2.11", "@angular/cli": "^15.2.4",
"@angular/compiler-cli": "^14.3.0", "@angular/compiler-cli": "^15.2.3",
"@angular/language-service": "^14.3.0", "@angular/language-service": "^15.2.3",
"@openapitools/openapi-generator-cli": "^1.0.18-5.0.0-beta2", "@openapitools/openapi-generator-cli": "^1.0.18-5.0.0-beta2",
"@types/jasmine": "~3.6.0", "@types/jasmine": "~3.6.0",
"@types/jasminewd2": "~2.0.3", "@types/jasminewd2": "~2.0.3",
@ -49,6 +49,6 @@
"protractor": "~7.0.0", "protractor": "~7.0.0",
"ts-node": "~8.3.0", "ts-node": "~8.3.0",
"tslint": "~6.1.0", "tslint": "~6.1.0",
"typescript": "~4.6.4" "typescript": "~4.9.5"
} }
} }

View file

@ -28,7 +28,7 @@ const routes: Routes = [
]; ];
@NgModule({ @NgModule({
imports: [RouterModule.forRoot(routes, { relativeLinkResolution: 'legacy' }), SharedModule], imports: [RouterModule.forRoot(routes, {}), SharedModule],
exports: [RouterModule], exports: [RouterModule],
}) })
export class AppRoutingModule {} export class AppRoutingModule {}

View file

@ -7,13 +7,6 @@ import {
platformBrowserDynamicTesting platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing'; } from '@angular/platform-browser-dynamic/testing';
declare const require: {
context(path: string, deep?: boolean, filter?: RegExp): {
keys(): string[];
<T>(id: string): T;
};
};
// First, initialize the Angular testing environment. // First, initialize the Angular testing environment.
getTestBed().initTestEnvironment( getTestBed().initTestEnvironment(
BrowserDynamicTestingModule, BrowserDynamicTestingModule,
@ -21,7 +14,3 @@ 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);

View file

@ -10,11 +10,12 @@
"module": "es2020", "module": "es2020",
"moduleResolution": "node", "moduleResolution": "node",
"importHelpers": true, "importHelpers": true,
"target": "es2020", "target": "ES2022",
"lib": [ "lib": [
"es2018", "es2018",
"dom" "dom"
] ],
"useDefineForClassFields": false
}, },
"angularCompilerOptions": { "angularCompilerOptions": {
"fullTemplateTypeCheck": true, "fullTemplateTypeCheck": true,