From 731144436309bd3406b07c37a7b9f2bed6722449 Mon Sep 17 00:00:00 2001 From: CRoberto1926 <3205022+CRoberto1926@users.noreply.github.com> Date: Wed, 20 Nov 2024 16:59:02 +0100 Subject: [PATCH] Closes #203 - Update to Angular 19 --- web/package.json | 28 +- .../access-items-management.component.spec.ts | 11 +- .../access-items-management.component.ts | 3 +- .../administration-overview.component.ts | 3 +- .../classification-details.component.html | 10 +- .../classification-details.component.spec.ts | 6 +- .../classification-details.component.ts | 3 +- .../classification-list.component.spec.ts | 8 +- .../classification-list.component.ts | 3 +- .../classification-overview.component.spec.ts | 5 +- .../classification-overview.component.ts | 3 +- ...classification-types-selector.component.ts | 3 +- .../import-export/import-export.component.ts | 3 +- .../components/tree/tree.component.ts | 3 +- .../type-icon/icon-type.component.spec.ts | 4 +- .../type-icon/icon-type.component.ts | 3 +- .../workbasket-access-items.component.html | 16 +- .../workbasket-access-items.component.spec.ts | 3 +- .../workbasket-access-items.component.ts | 3 +- .../workbasket-details.component.spec.ts | 10 +- .../workbasket-details.component.ts | 3 +- ...istribution-targets-list.component.spec.ts | 9 +- ...ket-distribution-targets-list.component.ts | 3 +- ...ket-distribution-targets.component.spec.ts | 3 +- ...rkbasket-distribution-targets.component.ts | 3 +- .../workbasket-information.component.html | 8 +- .../workbasket-information.component.spec.ts | 9 +- .../workbasket-information.component.ts | 3 +- .../workbasket-list-toolbar.component.spec.ts | 5 +- .../workbasket-list-toolbar.component.ts | 3 +- .../workbasket-list.component.spec.ts | 6 +- .../workbasket-list.component.ts | 3 +- .../workbasket-overview.component.spec.ts | 15 +- .../workbasket-overview.component.ts | 3 +- web/src/app/app.component.ts | 3 +- .../task-history-query.component.ts | 3 +- .../classification-report.component.ts | 1 - .../components/monitor/monitor.component.ts | 1 - .../report-table/report-table.component.ts | 1 - .../task-priority-report-filter.component.ts | 1 - .../task-priority-report.component.spec.ts | 5 +- .../task-priority-report.component.ts | 1 - .../task-report/task-report.component.ts | 1 - .../timestamp-report.component.ts | 1 - .../workbasket-report-due-date.component.ts | 1 - ...orkbasket-report-planned-date.component.ts | 1 - .../workbasket-report.component.ts | 1 - .../components/Settings/settings.component.ts | 3 +- .../field-error-display.component.ts | 3 +- .../master-and-detail.component.ts | 3 +- .../nav-bar/nav-bar.component.spec.ts | 3 +- .../components/nav-bar/nav-bar.component.ts | 3 +- .../no-access/no-access.component.ts | 3 +- .../pagination/pagination.component.ts | 3 +- .../popup/dialog-pop-up.component.ts | 3 +- .../progress-spinner.component.ts | 3 +- .../sidenav-list/sidenav-list.component.ts | 3 +- .../shared/components/sort/sort.component.ts | 3 +- .../components/spinner/spinner.component.ts | 3 +- .../task-filter/task-filter.component.ts | 3 +- .../type-ahead/type-ahead.component.ts | 3 +- .../user-information.component.spec.ts | 3 +- .../user-information.component.ts | 3 +- .../workbasket-filter.component.ts | 3 +- .../directives/drag-and-drop.directive.ts | 3 +- .../resizable-width.directive.spec.ts | 3 +- .../directives/resizable-width.directive.ts | 3 +- .../app/shared/pipes/date-time-zone.pipe.ts | 3 +- .../app/shared/pipes/map-to-iterable.pipe.ts | 3 +- web/src/app/shared/pipes/map-values.pipe.ts | 5 +- .../app/shared/pipes/number-to-array.pipe.ts | 5 +- web/src/app/shared/pipes/order-by.pipe.ts | 5 +- .../shared/pipes/remove-empty-type.pipe.ts | 5 +- .../app/shared/pipes/spread-number.pipe.ts | 5 +- .../services/domain/domain.service.spec.ts | 4 +- .../routing-upload.component.ts | 3 +- .../task-overview.component.spec.ts | 2 +- .../task-attribute-value.component.ts | 3 +- .../task-custom-fields.component.ts | 3 +- .../task-details/task-details.component.ts | 3 +- .../task-information.component.html | 16 +- .../task-information.component.ts | 3 +- .../task-list-toolbar.component.html | 6 +- .../task-list-toolbar.component.ts | 3 +- .../task-list/task-list.component.spec.ts | 4 +- .../task-list/task-list.component.ts | 3 +- .../task-master/task-master.component.ts | 3 +- .../task-processing.component.ts | 3 +- .../task-status-details.component.ts | 3 +- web/src/test.ts | 4 +- web/src/theme/custom-theme-material.scss | 3 +- web/yarn.lock | 2985 +++++++++++------ 92 files changed, 2213 insertions(+), 1160 deletions(-) diff --git a/web/package.json b/web/package.json index c7d8248f4..983a90b4d 100644 --- a/web/package.json +++ b/web/package.json @@ -23,16 +23,16 @@ "private": true, "dependencies": { "@ali-hm/angular-tree-component": "18.0.5", - "@angular-devkit/build-angular": "18.2.12", - "@angular/animations": "18.2.12", - "@angular/cdk": "18.2.13", - "@angular/common": "18.2.12", - "@angular/core": "18.2.12", - "@angular/forms": "18.2.12", - "@angular/material": "18.2.13", - "@angular/platform-browser": "18.2.12", - "@angular/platform-browser-dynamic": "18.2.12", - "@angular/router": "18.2.12", + "@angular-devkit/build-angular": "19.0.0", + "@angular/animations": "19.0.0", + "@angular/cdk": "19.0.0", + "@angular/common": "19.0.0", + "@angular/core": "19.0.0", + "@angular/forms": "19.0.0", + "@angular/material": "19.0.0", + "@angular/platform-browser": "19.0.0", + "@angular/platform-browser-dynamic": "19.0.0", + "@angular/router": "19.0.0", "@ngneat/hot-toast": "7.0.0", "@ngneat/overview": "6.1.1", "@ngxs/router-plugin": "18.1.5", @@ -53,10 +53,10 @@ }, "devDependencies": { "@angular-builders/custom-webpack": "18.0.0", - "@angular/build": "^18.2.12", - "@angular/cli": "18.2.12", - "@angular/compiler": "18.2.12", - "@angular/compiler-cli": "18.2.12", + "@angular/build": "^19.0.0", + "@angular/cli": "19.0.0", + "@angular/compiler": "19.0.0", + "@angular/compiler-cli": "19.0.0", "@ngxs/devtools-plugin": "18.1.5", "@types/jest": "29.5.14", "@types/lodash": "4.17.13", diff --git a/web/src/app/administration/components/access-items-management/access-items-management.component.spec.ts b/web/src/app/administration/components/access-items-management/access-items-management.component.spec.ts index f08e86d67..451dc76fb 100644 --- a/web/src/app/administration/components/access-items-management/access-items-management.component.spec.ts +++ b/web/src/app/administration/components/access-items-management/access-items-management.component.spec.ts @@ -111,13 +111,7 @@ describe('AccessItemsManagementComponent', () => { MatExpansionModule, MatTableModule ], - declarations: [ - AccessItemsManagementComponent, - TypeAheadComponent, - KadaiSharedSortStub, - KadaiSharedSpinnerStub, - SvgIconStub - ], + declarations: [AccessItemsManagementComponent, TypeAheadComponent], providers: [ { provide: FormsValidatorService, @@ -132,6 +126,9 @@ describe('AccessItemsManagementComponent', () => { StartupService, KadaiEngineService, WindowRefService, + KadaiSharedSortStub, + KadaiSharedSpinnerStub, + SvgIconStub, provideHttpClient(withInterceptorsFromDi()), provideHttpClientTesting() ] diff --git a/web/src/app/administration/components/access-items-management/access-items-management.component.ts b/web/src/app/administration/components/access-items-management/access-items-management.component.ts index 9284a7e96..9f740dfb8 100644 --- a/web/src/app/administration/components/access-items-management/access-items-management.component.ts +++ b/web/src/app/administration/components/access-items-management/access-items-management.component.ts @@ -48,7 +48,8 @@ import { RequestInProgressService } from '../../../shared/services/request-in-pr @Component({ selector: 'kadai-administration-access-items-management', templateUrl: './access-items-management.component.html', - styleUrls: ['./access-items-management.component.scss'] + styleUrls: ['./access-items-management.component.scss'], + standalone: false }) export class AccessItemsManagementComponent implements OnInit { accessIdPrevious: string; diff --git a/web/src/app/administration/components/administration-overview/administration-overview.component.ts b/web/src/app/administration/components/administration-overview/administration-overview.component.ts index f67148099..be7fc0c9f 100644 --- a/web/src/app/administration/components/administration-overview/administration-overview.component.ts +++ b/web/src/app/administration/components/administration-overview/administration-overview.component.ts @@ -26,7 +26,8 @@ import { KadaiEngineService } from '../../../shared/services/kadai-engine/kadai- @Component({ selector: 'kadai-administration-overview', templateUrl: './administration-overview.component.html', - styleUrls: ['./administration-overview.component.scss'] + styleUrls: ['./administration-overview.component.scss'], + standalone: false }) export class AdministrationOverviewComponent implements OnInit { @Input() selectedTab = ''; diff --git a/web/src/app/administration/components/classification-details/classification-details.component.html b/web/src/app/administration/components/classification-details/classification-details.component.html index d5f487f60..5cd96a704 100644 --- a/web/src/app/administration/components/classification-details/classification-details.component.html +++ b/web/src/app/administration/components/classification-details/classification-details.component.html @@ -61,7 +61,7 @@

content_copy Copy - -