update angular core & cli to v19

This commit is contained in:
Marcel Arndt 2025-04-11 12:04:04 +02:00
parent dde00abe54
commit d8a2930247
53 changed files with 4137 additions and 3574 deletions

File diff suppressed because it is too large Load Diff

View File

@ -10,17 +10,17 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "^18.1.0", "@angular/animations": "^19.2.6",
"@angular/cdk": "^18.1.1", "@angular/cdk": "^18.1.1",
"@angular/common": "^18.1.0", "@angular/common": "^19.2.6",
"@angular/compiler": "^18.1.0", "@angular/compiler": "^19.2.6",
"@angular/core": "^18.1.0", "@angular/core": "^19.2.6",
"@angular/forms": "^18.1.0", "@angular/forms": "^19.2.6",
"@angular/material": "^18.1.1", "@angular/material": "^18.1.1",
"@angular/material-date-fns-adapter": "^18.1.1", "@angular/material-date-fns-adapter": "^18.1.1",
"@angular/platform-browser": "^18.1.0", "@angular/platform-browser": "^19.2.6",
"@angular/platform-browser-dynamic": "^18.1.0", "@angular/platform-browser-dynamic": "^19.2.6",
"@angular/router": "^18.1.0", "@angular/router": "^19.2.6",
"@apollo/client": "^3.0.0", "@apollo/client": "^3.0.0",
"@azure/msal-angular": "^3.0.22", "@azure/msal-angular": "^3.0.22",
"@azure/msal-browser": "^3.19.1", "@azure/msal-browser": "^3.19.1",
@ -46,13 +46,13 @@
"graphql-ws": "^5.16.0", "graphql-ws": "^5.16.0",
"rxjs": "~7.8.0", "rxjs": "~7.8.0",
"tslib": "^2.3.0", "tslib": "^2.3.0",
"zone.js": "~0.14.3" "zone.js": "~0.15.0"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "^18.1.1", "@angular-devkit/build-angular": "^19.2.7",
"@angular/cli": "^18.1.1", "@angular/cli": "^19.2.7",
"@angular/compiler-cli": "^18.1.0", "@angular/compiler-cli": "^19.2.6",
"@angular/localize": "^18.1.1", "@angular/localize": "^19.2.6",
"@types/jasmine": "~5.1.0", "@types/jasmine": "~5.1.0",
"autoprefixer": "^10.4.19", "autoprefixer": "^10.4.19",
"jasmine-core": "~5.1.0", "jasmine-core": "~5.1.0",

View File

@ -5,10 +5,9 @@ import { MsalService } from '@azure/msal-angular';
@Component({ @Component({
selector: 'app-root', selector: 'app-root',
standalone: true,
imports: [AppShellComponent, RouterOutlet], imports: [AppShellComponent, RouterOutlet],
templateUrl: './app.component.html', templateUrl: './app.component.html',
styleUrl: './app.component.scss', styleUrl: './app.component.scss'
}) })
export class AppComponent { export class AppComponent {
title = 'dashboard'; title = 'dashboard';

View File

@ -1,9 +1,9 @@
import { import {
APP_INITIALIZER,
ApplicationConfig, ApplicationConfig,
ErrorHandler, ErrorHandler,
importProvidersFrom, importProvidersFrom,
provideZoneChangeDetection, provideZoneChangeDetection,
provideAppInitializer,
} from '@angular/core'; } from '@angular/core';
import { provideRouter } from '@angular/router'; import { provideRouter } from '@angular/router';
@ -19,15 +19,13 @@ import { GlobalErrorHandler } from './core/telemetry/global-error-handler';
export const appConfig: ApplicationConfig = { export const appConfig: ApplicationConfig = {
providers: [ providers: [
{ provideAppInitializer(() => {
provide: APP_INITIALIZER, const initializerFn = faroInitializer();
useFactory: faroInitializer, return initializerFn();
deps: [], }),
multi: true,
},
{ {
provide: ErrorHandler, provide: ErrorHandler,
useClass: GlobalErrorHandler useClass: GlobalErrorHandler,
}, },
provideZoneChangeDetection({ eventCoalescing: true }), provideZoneChangeDetection({ eventCoalescing: true }),
provideRouter(routes), provideRouter(routes),

View File

@ -20,7 +20,6 @@ import { RoleDirective } from '../ms-authentication/role.directive';
@Component({ @Component({
selector: 'app-app-shell', selector: 'app-app-shell',
standalone: true,
imports: [ imports: [
MatButtonModule, MatButtonModule,
MatIconModule, MatIconModule,
@ -35,7 +34,7 @@ import { RoleDirective } from '../ms-authentication/role.directive';
RoleDirective, RoleDirective,
], ],
templateUrl: './app-shell.component.html', templateUrl: './app-shell.component.html',
styleUrl: './app-shell.component.scss', styleUrl: './app-shell.component.scss'
}) })
export class AppShellComponent { export class AppShellComponent {
isHandset$: Observable<boolean>; isHandset$: Observable<boolean>;

View File

@ -5,7 +5,6 @@ import { map } from 'rxjs';
import { AuthService } from '../ms-authentication/auth.service'; import { AuthService } from '../ms-authentication/auth.service';
@Component({ @Component({
standalone: true,
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'dks-avatar', selector: 'dks-avatar',
template: `<div template: `<div
@ -17,7 +16,7 @@ import { AuthService } from '../ms-authentication/auth.service';
<mat-menu #menu="matMenu"> <mat-menu #menu="matMenu">
<button mat-menu-item (click)="logout()">Logout</button> <button mat-menu-item (click)="logout()">Logout</button>
</mat-menu>`, </mat-menu>`,
imports: [AsyncPipe, MatMenuModule], imports: [AsyncPipe, MatMenuModule]
}) })
export class AvatarComponent { export class AvatarComponent {
private authService = inject(AuthService); private authService = inject(AuthService);

View File

@ -16,9 +16,8 @@ export interface ConfirmDialogData {
<button mat-stroked-button color="warn" [dialogClose]="true">Bestätigen</button> <button mat-stroked-button color="warn" [dialogClose]="true">Bestätigen</button>
</div> </div>
</div>`, </div>`,
standalone: true,
imports: [MatButtonModule, DialogCloseDirective], imports: [MatButtonModule, DialogCloseDirective],
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush
}) })
export class ConfirmDialogComponent { export class ConfirmDialogComponent {
ref: DialogRef<ConfirmDialogData> = inject(DialogRef); ref: DialogRef<ConfirmDialogData> = inject(DialogRef);

View File

@ -15,7 +15,8 @@ import * as echarts from 'echarts/core';
import { CanvasRenderer } from 'echarts/renderers'; import { CanvasRenderer } from 'echarts/renderers';
@Directive({ @Directive({
selector: '[dksEcharts]' selector: '[dksEcharts]',
standalone: false
}) })
export class EchartsDirective implements OnInit, OnDestroy, OnChanges { export class EchartsDirective implements OnInit, OnDestroy, OnChanges {
@Input() options?: EChartsOption; @Input() options?: EChartsOption;

View File

@ -15,7 +15,6 @@ import { HotToastService } from '@ngxpert/hot-toast';
import { Tour, Ticket, AccountingState, TicketValidationState } from '../../../core/data-access/graphql/generated/generated'; import { Tour, Ticket, AccountingState, TicketValidationState } from '../../../core/data-access/graphql/generated/generated';
@Component({ @Component({
standalone: true,
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'dks-accounting-item', selector: 'dks-accounting-item',
template: ` <div class="flex justify-between"> template: ` <div class="flex justify-between">
@ -60,7 +59,7 @@ import { Tour, Ticket, AccountingState, TicketValidationState } from '../../../c
NgIf, NgIf,
NgClass, NgClass,
CurrencyPipe, CurrencyPipe,
], ]
}) })
export class AccountingItemComponent implements AfterViewInit { export class AccountingItemComponent implements AfterViewInit {
toast = inject(HotToastService); toast = inject(HotToastService);

View File

@ -3,7 +3,6 @@ import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import { TourStateMeta } from '../../../core/data-access/graphql/generated/generated'; import { TourStateMeta } from '../../../core/data-access/graphql/generated/generated';
@Component({ @Component({
standalone: true,
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'dks-accounting-lane-footer', selector: 'dks-accounting-lane-footer',
template: `<span *ngIf="withTourCount" class="text-left text-xs"> template: `<span *ngIf="withTourCount" class="text-left text-xs">
@ -22,7 +21,7 @@ import { TourStateMeta } from '../../../core/data-access/graphql/generated/gener
} }
`, `,
], ],
imports: [NgIf, AsyncPipe, CurrencyPipe], imports: [NgIf, AsyncPipe, CurrencyPipe]
}) })
export class AccountingLaneFooterComponent { export class AccountingLaneFooterComponent {
@Input() tourStateMeta!: TourStateMeta; @Input() tourStateMeta!: TourStateMeta;

View File

@ -20,7 +20,6 @@ import {
} from '../../../core/data-access/graphql/generated/generated'; } from '../../../core/data-access/graphql/generated/generated';
@Component({ @Component({
standalone: true,
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'dks-accounting-lane-header-filter', selector: 'dks-accounting-lane-header-filter',
template: ` template: `
@ -85,7 +84,7 @@ import {
MatIconModule, MatIconModule,
MatMenuModule, MatMenuModule,
MatCheckboxModule, MatCheckboxModule,
], ]
}) })
export class AccountingLaneHeaderFilterComponent implements AfterViewInit { export class AccountingLaneHeaderFilterComponent implements AfterViewInit {
@Input() state!: AccountingState; @Input() state!: AccountingState;

View File

@ -10,7 +10,6 @@ import { AccountingLaneHeaderFilterComponent } from './accounting-lane-header-fi
import { AccountingFilterArgs, AccountingState } from '../../../core/data-access/graphql/generated/generated'; import { AccountingFilterArgs, AccountingState } from '../../../core/data-access/graphql/generated/generated';
@Component({ @Component({
standalone: true,
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'dks-accounting-lane-header', selector: 'dks-accounting-lane-header',
template: `<div></div> template: `<div></div>
@ -34,7 +33,7 @@ import { AccountingFilterArgs, AccountingState } from '../../../core/data-access
} }
`, `,
], ],
imports: [NgSwitch, NgSwitchCase, AccountingLaneHeaderFilterComponent], imports: [NgSwitch, NgSwitchCase, AccountingLaneHeaderFilterComponent]
}) })
export class AccountingLaneHeaderComponent { export class AccountingLaneHeaderComponent {
@Input() state!: AccountingState; @Input() state!: AccountingState;

View File

@ -37,7 +37,6 @@ import { AccountingLaneHeaderComponent } from './accounting-lane-header.componen
@Component({ @Component({
selector: 'dks-accounting-lane', selector: 'dks-accounting-lane',
standalone: true,
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
templateUrl: './accounting-lane.component.html', templateUrl: './accounting-lane.component.html',
styles: [ styles: [
@ -58,7 +57,7 @@ import { AccountingLaneHeaderComponent } from './accounting-lane-header.componen
AsyncPipe, AsyncPipe,
CurrencyPipe, CurrencyPipe,
ScrollingModule, ScrollingModule,
], ]
}) })
export class AccountingLaneComponent { export class AccountingLaneComponent {
private dialog = inject(DialogService); private dialog = inject(DialogService);

View File

@ -6,7 +6,6 @@ import { MatTabsModule } from '@angular/material/tabs';
import { Tour } from '../../../core/data-access/graphql/generated/generated'; import { Tour } from '../../../core/data-access/graphql/generated/generated';
@Component({ @Component({
standalone: true,
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'dks-accounting-tour-overview', selector: 'dks-accounting-tour-overview',
template: ` template: `
@ -72,7 +71,7 @@ import { Tour } from '../../../core/data-access/graphql/generated/generated';
</div> </div>
`, `,
styles: [], styles: [],
imports: [MatTabsModule, MatIconModule, MatDividerModule, NgIf, DatePipe], imports: [MatTabsModule, MatIconModule, MatDividerModule, NgIf, DatePipe]
}) })
export class AccountingTourOverviewComponent { export class AccountingTourOverviewComponent {
@Input() tour!: Tour; @Input() tour!: Tour;

View File

@ -6,7 +6,6 @@ import { MatListModule } from '@angular/material/list';
import { Ticket, TicketValidationState, Tour } from '../../../core/data-access/graphql/generated/generated'; import { Ticket, TicketValidationState, Tour } from '../../../core/data-access/graphql/generated/generated';
@Component({ @Component({
standalone: true,
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'dks-accounting-tour-ticket', selector: 'dks-accounting-tour-ticket',
template: ` template: `
@ -97,7 +96,7 @@ import { Ticket, TicketValidationState, Tour } from '../../../core/data-access/g
NgSwitch, NgSwitch,
NgSwitchCase, NgSwitchCase,
DatePipe, DatePipe,
], ]
}) })
export class AccountingTourTicketComponent { export class AccountingTourTicketComponent {
@Input() tour!: Tour & { ticket: Ticket }; @Input() tour!: Tour & { ticket: Ticket };

View File

@ -10,7 +10,6 @@ import { AccountingTourOverviewComponent } from './accounting-tour-overview.comp
import { AccountingTourTicketComponent } from './accounting-tour-ticket.component'; import { AccountingTourTicketComponent } from './accounting-tour-ticket.component';
@Component({ @Component({
standalone: true,
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'dks-accounting-tour-view', selector: 'dks-accounting-tour-view',
template: `<h3 class="py-2 px-3 !mb-0"> template: `<h3 class="py-2 px-3 !mb-0">
@ -37,7 +36,7 @@ import { AccountingTourTicketComponent } from './accounting-tour-ticket.componen
MatIconModule, MatIconModule,
AccountingTourOverviewComponent, AccountingTourOverviewComponent,
AccountingTourTicketComponent, AccountingTourTicketComponent,
], ]
}) })
export class AccountingTourViewComponent { export class AccountingTourViewComponent {
ref: DialogRef<Tour & { ticket: Ticket }, undefined | any> = ref: DialogRef<Tour & { ticket: Ticket }, undefined | any> =

View File

@ -4,7 +4,6 @@ import { AccountingState } from '../../core/data-access/graphql/generated/genera
@Component({ @Component({
selector: 'dks-dashboard-accounting', selector: 'dks-dashboard-accounting',
standalone: true,
imports: [AccountingLaneComponent], imports: [AccountingLaneComponent],
template: `<section class="h-full p-6 grid grid-cols-1 md:grid-cols-3 gap-6"> template: `<section class="h-full p-6 grid grid-cols-1 md:grid-cols-3 gap-6">
<div class="col-span-1 md:col-span-5 flex justify-end items-center"> <div class="col-span-1 md:col-span-5 flex justify-end items-center">
@ -29,7 +28,7 @@ import { AccountingState } from '../../core/data-access/graphql/generated/genera
} }
`, `,
], ],
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush
}) })
export class DashboardAccountingComponent { export class DashboardAccountingComponent {
AccountingState = AccountingState; AccountingState = AccountingState;

View File

@ -36,6 +36,7 @@ interface Anomaly {
templateUrl: './anomaly-list-item.component.html', templateUrl: './anomaly-list-item.component.html',
styleUrls: ['./anomaly-list-item.component.css'], styleUrls: ['./anomaly-list-item.component.css'],
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
standalone: false
}) })
export class AnomalyListItemComponent { export class AnomalyListItemComponent {
isHovering = false; isHovering = false;

View File

@ -22,6 +22,7 @@ import { AnomaliesService } from '../anomalies.service';
templateUrl: './anomaly-list.component.html', templateUrl: './anomaly-list.component.html',
styleUrls: ['./anomaly-list.component.css'], styleUrls: ['./anomaly-list.component.css'],
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
standalone: false
}) })
export class AnomalyListComponent implements OnInit, OnDestroy { export class AnomalyListComponent implements OnInit, OnDestroy {
@ViewChild(MatPaginator, { static: true }) private paginator!: MatPaginator; @ViewChild(MatPaginator, { static: true }) private paginator!: MatPaginator;

View File

@ -12,6 +12,7 @@ interface SolutionTarget {
selector: 'dks-anomaly-solution-dialog', selector: 'dks-anomaly-solution-dialog',
templateUrl: './anomaly-solution-dialog.component.html', templateUrl: './anomaly-solution-dialog.component.html',
styleUrls: ['./anomaly-solution-dialog.component.css'], styleUrls: ['./anomaly-solution-dialog.component.css'],
standalone: false
}) })
export class AnomalySolutionDialogComponent { export class AnomalySolutionDialogComponent {
constructor( constructor(

View File

@ -45,6 +45,7 @@ interface AnomalyFlatNode {
templateUrl: './anomaly-tree.component.html', templateUrl: './anomaly-tree.component.html',
styleUrls: ['./anomaly-tree.component.css'], styleUrls: ['./anomaly-tree.component.css'],
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
standalone: false
}) })
export class AnomalyTreeComponent implements OnInit, OnDestroy { export class AnomalyTreeComponent implements OnInit, OnDestroy {
@ViewChild(MatPaginator, { static: true }) private paginator!: MatPaginator; @ViewChild(MatPaginator, { static: true }) private paginator!: MatPaginator;

View File

@ -5,5 +5,6 @@ import { ChangeDetectionStrategy, Component } from '@angular/core';
templateUrl: './control-center-dashboard.component.html', templateUrl: './control-center-dashboard.component.html',
styleUrls: ['./control-center-dashboard.component.scss'], styleUrls: ['./control-center-dashboard.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
standalone: false
}) })
export class ControlCenterDashboardComponent {} export class ControlCenterDashboardComponent {}

View File

@ -16,6 +16,7 @@ import {
templateUrl: './tours-per-time-kpi.component.html', templateUrl: './tours-per-time-kpi.component.html',
styleUrls: ['./tours-per-time-kpi.component.css'], styleUrls: ['./tours-per-time-kpi.component.css'],
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
standalone: false
}) })
export class ToursPerTimeKPIComponent implements OnInit { export class ToursPerTimeKPIComponent implements OnInit {
@Input() ordinanceType!: string; @Input() ordinanceType!: string;

View File

@ -6,6 +6,7 @@ import { Tour } from '../../../../core/data-access/graphql/generated/generated';
selector: 'dks-tour-view-dialog', selector: 'dks-tour-view-dialog',
templateUrl: './tour-view-dialog.component.html', templateUrl: './tour-view-dialog.component.html',
styleUrls: ['./tour-view-dialog.component.css'], styleUrls: ['./tour-view-dialog.component.css'],
standalone: false
}) })
export class TourViewDialogComponent { export class TourViewDialogComponent {
ref = inject<DialogRef<Partial<Tour>>>(DialogRef); ref = inject<DialogRef<Partial<Tour>>>(DialogRef);

View File

@ -11,6 +11,7 @@ import { Tour } from '../../../core/data-access/graphql/generated/generated';
templateUrl: './upcoming-tours.component.html', templateUrl: './upcoming-tours.component.html',
styleUrls: ['./upcoming-tours.component.css'], styleUrls: ['./upcoming-tours.component.css'],
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
standalone: false
}) })
export class UpcomingToursComponent { export class UpcomingToursComponent {
upcomingTours$; upcomingTours$;

View File

@ -14,10 +14,9 @@ import { TimePerTourMetric } from '../../../../core/data-access/graphql/generate
@Component({ @Component({
selector: 'dks-average-revenue-metric', selector: 'dks-average-revenue-metric',
standalone: true,
imports: [CommonModule, UtilNgxEchartsModule], imports: [CommonModule, UtilNgxEchartsModule],
templateUrl: './average-revenue-metric.component.html', templateUrl: './average-revenue-metric.component.html',
styleUrls: ['./average-revenue-metric.component.css'], styleUrls: ['./average-revenue-metric.component.css']
}) })
export class AverageRevenueMetricComponent implements OnChanges { export class AverageRevenueMetricComponent implements OnChanges {
@Input() metrics: TimePerTourMetric[] = []; @Input() metrics: TimePerTourMetric[] = [];

View File

@ -7,10 +7,9 @@ import { summarizeMetrics } from '../../util/summarize-metrics';
@Component({ @Component({
selector: 'dks-average-revenue-summary', selector: 'dks-average-revenue-summary',
standalone: true,
imports: [CommonModule, MatIconModule], imports: [CommonModule, MatIconModule],
templateUrl: './average-revenue-summary.component.html', templateUrl: './average-revenue-summary.component.html',
styleUrls: ['./average-revenue-summary.component.css'], styleUrls: ['./average-revenue-summary.component.css']
}) })
export class AverageRevenueSummaryComponent { export class AverageRevenueSummaryComponent {
@Input() set metrics(value: TimePerTourMetric[]) { @Input() set metrics(value: TimePerTourMetric[]) {

View File

@ -19,10 +19,9 @@ import { MetricTimeScale } from '../../types';
@Component({ @Component({
selector: 'dks-breakeven-metric', selector: 'dks-breakeven-metric',
standalone: true,
imports: [CommonModule, UtilNgxEchartsModule], imports: [CommonModule, UtilNgxEchartsModule],
templateUrl: './breakeven-metric.component.html', templateUrl: './breakeven-metric.component.html',
styleUrls: ['./breakeven-metric.component.css'], styleUrls: ['./breakeven-metric.component.css']
}) })
export class BreakevenMetricComponent implements OnChanges { export class BreakevenMetricComponent implements OnChanges {
@Input() metrics: TimePerTourMetric[] = []; @Input() metrics: TimePerTourMetric[] = [];

View File

@ -7,10 +7,9 @@ import { summarizeMetrics } from '../../util/summarize-metrics';
@Component({ @Component({
selector: 'dks-breakeven-summary', selector: 'dks-breakeven-summary',
standalone: true,
imports: [CommonModule, MatIconModule], imports: [CommonModule, MatIconModule],
templateUrl: './breakeven-summary.component.html', templateUrl: './breakeven-summary.component.html',
styleUrls: ['./breakeven-summary.component.css'], styleUrls: ['./breakeven-summary.component.css']
}) })
export class BreakevenSummaryComponent { export class BreakevenSummaryComponent {
@Input() set metrics(value: TimePerTourMetric[]) { @Input() set metrics(value: TimePerTourMetric[]) {

View File

@ -13,7 +13,6 @@ import { TimePerTourSummaryComponent } from '../time-per-tour-summary/time-per-t
@Component({ @Component({
selector: 'dks-metric-summary', selector: 'dks-metric-summary',
standalone: true,
imports: [ imports: [
CommonModule, CommonModule,
AverageRevenueMetricComponent, AverageRevenueMetricComponent,
@ -25,7 +24,7 @@ import { TimePerTourSummaryComponent } from '../time-per-tour-summary/time-per-t
MatSlideToggleModule, MatSlideToggleModule,
], ],
templateUrl: './metric-summary.component.html', templateUrl: './metric-summary.component.html',
styleUrls: ['./metric-summary.component.css'], styleUrls: ['./metric-summary.component.css']
}) })
export class MetricSummaryComponent { export class MetricSummaryComponent {
@Input() set metrics(metrics: TimePerTourMetric[]) { @Input() set metrics(metrics: TimePerTourMetric[]) {

View File

@ -15,10 +15,9 @@ import { MetricTimeScale } from '../../types';
@Component({ @Component({
selector: 'dks-time-per-tour-metric', selector: 'dks-time-per-tour-metric',
standalone: true,
imports: [CommonModule, UtilNgxEchartsModule], imports: [CommonModule, UtilNgxEchartsModule],
templateUrl: './time-per-tour-metric.component.html', templateUrl: './time-per-tour-metric.component.html',
styleUrls: ['./time-per-tour-metric.component.css'], styleUrls: ['./time-per-tour-metric.component.css']
}) })
export class TimePerTourMetricComponent implements OnChanges { export class TimePerTourMetricComponent implements OnChanges {
@Input() metrics: TimePerTourMetric[] = []; @Input() metrics: TimePerTourMetric[] = [];

View File

@ -7,10 +7,9 @@ import { TimePerTourMetric } from '../../../../core/data-access/graphql/generate
@Component({ @Component({
selector: 'dks-time-per-tour-summary', selector: 'dks-time-per-tour-summary',
standalone: true,
imports: [CommonModule, MatIconModule], imports: [CommonModule, MatIconModule],
templateUrl: './time-per-tour-summary.component.html', templateUrl: './time-per-tour-summary.component.html',
styleUrls: ['./time-per-tour-summary.component.css'], styleUrls: ['./time-per-tour-summary.component.css']
}) })
export class TimePerTourSummaryComponent { export class TimePerTourSummaryComponent {
@Input() set metrics(value: TimePerTourMetric[]) { @Input() set metrics(value: TimePerTourMetric[]) {

View File

@ -15,10 +15,9 @@ import { TimePerTourMetric } from '../../../../core/data-access/graphql/generate
@Component({ @Component({
selector: 'dks-view-type-selector', selector: 'dks-view-type-selector',
standalone: true,
imports: [NgIf, NgSwitch, NgSwitchCase, NgClass, AsyncPipe, CurrencyPipe, MatIconModule], imports: [NgIf, NgSwitch, NgSwitchCase, NgClass, AsyncPipe, CurrencyPipe, MatIconModule],
templateUrl: './view-type-selector.component.html', templateUrl: './view-type-selector.component.html',
styleUrls: ['./view-type-selector.component.css'], styleUrls: ['./view-type-selector.component.css']
}) })
export class ViewTypeSelectorComponent { export class ViewTypeSelectorComponent {
@Input() viewType!: DashboardViewType; @Input() viewType!: DashboardViewType;

View File

@ -23,6 +23,7 @@ import { mergeMetrics } from '../util/merge-metric';
selector: 'dks-dayview', selector: 'dks-dayview',
templateUrl: './dayview.component.html', templateUrl: './dayview.component.html',
styleUrls: ['./dayview.component.css'], styleUrls: ['./dayview.component.css'],
standalone: false
}) })
export class DayviewComponent { export class DayviewComponent {
OrdinanceTypes = OrdinanceTypes; OrdinanceTypes = OrdinanceTypes;

View File

@ -4,6 +4,7 @@ import { Component } from '@angular/core';
selector: 'dks-manager-dashboard', selector: 'dks-manager-dashboard',
templateUrl: './manager-dashboard.component.html', templateUrl: './manager-dashboard.component.html',
styleUrls: ['./manager-dashboard.component.css'], styleUrls: ['./manager-dashboard.component.css'],
standalone: false
}) })
export class ManagerDashboardComponent { export class ManagerDashboardComponent {
tabs: { title: string; route: string }[] = [ tabs: { title: string; route: string }[] = [

View File

@ -24,6 +24,7 @@ import { mergeMetrics } from '../util/merge-metric';
selector: 'dks-monthview', selector: 'dks-monthview',
templateUrl: './monthview.component.html', templateUrl: './monthview.component.html',
styleUrls: ['./monthview.component.css'], styleUrls: ['./monthview.component.css'],
standalone: false
}) })
export class MonthviewComponent { export class MonthviewComponent {
OrdinanceTypes = OrdinanceTypes; OrdinanceTypes = OrdinanceTypes;

View File

@ -8,6 +8,7 @@ import { OrdinanceTypes } from '../types';
selector: 'dks-overview', selector: 'dks-overview',
templateUrl: './overview.component.html', templateUrl: './overview.component.html',
styleUrls: ['./overview.component.css'], styleUrls: ['./overview.component.css'],
standalone: false
}) })
export class OverviewComponent { export class OverviewComponent {
OrdinanceTypes = OrdinanceTypes; OrdinanceTypes = OrdinanceTypes;

View File

@ -15,12 +15,10 @@ import { Component, Input, OnChanges, OnInit } from '@angular/core';
trigger('detailExpand', [ trigger('detailExpand', [
state('collapsed', style({ height: '0px', minHeight: '0' })), state('collapsed', style({ height: '0px', minHeight: '0' })),
state('expanded', style({ height: '*' })), state('expanded', style({ height: '*' })),
transition( transition('expanded <=> collapsed', animate('225ms cubic-bezier(0.4, 0.0, 0.2, 1)')),
'expanded <=> collapsed',
animate('225ms cubic-bezier(0.4, 0.0, 0.2, 1)')
),
]), ]),
], ],
standalone: false
}) })
export class TimePerTourByCarComponent implements OnInit, OnChanges { export class TimePerTourByCarComponent implements OnInit, OnChanges {
@Input() columns: { id: string; title: string }[] = []; @Input() columns: { id: string; title: string }[] = [];

View File

@ -6,6 +6,7 @@ import { interval, map, startWith } from 'rxjs';
selector: 'dks-time-per-tour-kpi', selector: 'dks-time-per-tour-kpi',
templateUrl: './time-per-tour-kpi.component.html', templateUrl: './time-per-tour-kpi.component.html',
styleUrls: ['./time-per-tour-kpi.component.css'], styleUrls: ['./time-per-tour-kpi.component.css'],
standalone: false
}) })
export class TimePerTourKPIComponent { export class TimePerTourKPIComponent {
@Input() text = ''; @Input() text = '';

View File

@ -18,7 +18,6 @@ import {
import CategoryColors from './category-colors'; import CategoryColors from './category-colors';
@Component({ @Component({
standalone: true,
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'dks-ticket-item', selector: 'dks-ticket-item',
templateUrl: './ticket-item.component.html', templateUrl: './ticket-item.component.html',
@ -29,7 +28,7 @@ import CategoryColors from './category-colors';
} }
`, `,
], ],
imports: [MatIconModule, MatBadgeModule, NgIf], imports: [MatIconModule, MatBadgeModule, NgIf]
}) })
export class TicketItemComponent implements OnInit { export class TicketItemComponent implements OnInit {
@Input() ticket!: Ticket & { tours: Tour[] }; @Input() ticket!: Ticket & { tours: Tour[] };

View File

@ -3,7 +3,6 @@ import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import { TicketStateMeta } from '../../../core/data-access/graphql/generated/generated'; import { TicketStateMeta } from '../../../core/data-access/graphql/generated/generated';
@Component({ @Component({
standalone: true,
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'dks-ticket-lane-footer', selector: 'dks-ticket-lane-footer',
template: `<span *ngIf="withTicketCount" class="text-left text-xs"> template: `<span *ngIf="withTicketCount" class="text-left text-xs">
@ -29,7 +28,7 @@ import { TicketStateMeta } from '../../../core/data-access/graphql/generated/gen
} }
`, `,
], ],
imports: [NgIf, AsyncPipe, CurrencyPipe], imports: [NgIf, AsyncPipe, CurrencyPipe]
}) })
export class TicketLaneFooterComponent { export class TicketLaneFooterComponent {
@Input() ticketStateMeta!: TicketStateMeta; @Input() ticketStateMeta!: TicketStateMeta;

View File

@ -21,7 +21,6 @@ import {
} from '../../../core/data-access/graphql/generated/generated'; } from '../../../core/data-access/graphql/generated/generated';
@Component({ @Component({
standalone: true,
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'dks-ticket-lane-header-filter', selector: 'dks-ticket-lane-header-filter',
template: ` template: `
@ -110,7 +109,7 @@ import {
MatIconModule, MatIconModule,
MatMenuModule, MatMenuModule,
MatCheckboxModule, MatCheckboxModule,
], ]
}) })
export class TicketLaneHeaderFilterComponent implements AfterViewInit { export class TicketLaneHeaderFilterComponent implements AfterViewInit {
@Input() state!: TicketValidationState; @Input() state!: TicketValidationState;

View File

@ -13,7 +13,6 @@ import {
import { TicketLaneHeaderFilterComponent } from './ticket-lane-header-filter.component'; import { TicketLaneHeaderFilterComponent } from './ticket-lane-header-filter.component';
@Component({ @Component({
standalone: true,
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'dks-ticket-lane-header', selector: 'dks-ticket-lane-header',
template: `<div></div> template: `<div></div>
@ -41,7 +40,7 @@ import { TicketLaneHeaderFilterComponent } from './ticket-lane-header-filter.com
} }
`, `,
], ],
imports: [NgSwitch, NgSwitchCase, TicketLaneHeaderFilterComponent], imports: [NgSwitch, NgSwitchCase, TicketLaneHeaderFilterComponent]
}) })
export class TicketLaneHeaderComponent { export class TicketLaneHeaderComponent {
@Input() state!: TicketValidationState; @Input() state!: TicketValidationState;

View File

@ -37,7 +37,6 @@ import { TicketLaneFooterComponent } from './ticket-lane-footer.component';
import { TicketLaneHeaderComponent } from './ticket-lane-header.component'; import { TicketLaneHeaderComponent } from './ticket-lane-header.component';
@Component({ @Component({
standalone: true,
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'dks-ticket-lane', selector: 'dks-ticket-lane',
templateUrl: './ticket-lane.component.html', templateUrl: './ticket-lane.component.html',
@ -59,7 +58,7 @@ import { TicketLaneHeaderComponent } from './ticket-lane-header.component';
AsyncPipe, AsyncPipe,
RoleDirective, RoleDirective,
ScrollingModule, ScrollingModule,
], ]
}) })
export class TicketLaneComponent { export class TicketLaneComponent {
private dialog = inject(DialogService); private dialog = inject(DialogService);

View File

@ -20,7 +20,6 @@ import {
} from '../../../core/data-access/graphql/generated/generated'; } from '../../../core/data-access/graphql/generated/generated';
@Component({ @Component({
standalone: true,
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'dks-ticket-documents-missing', selector: 'dks-ticket-documents-missing',
template: `<div class="flex items-center p-3"> template: `<div class="flex items-center p-3">
@ -62,7 +61,7 @@ import {
MatRadioModule, MatRadioModule,
MatCheckboxModule, MatCheckboxModule,
FormsModule, FormsModule,
], ]
}) })
export class TicketDocumentsMissingComponent { export class TicketDocumentsMissingComponent {
@Input() ticket!: Ticket & { tours: Tour[] }; @Input() ticket!: Ticket & { tours: Tour[] };

View File

@ -15,7 +15,6 @@ import {
} from '../../../core/data-access/graphql/generated/generated'; } from '../../../core/data-access/graphql/generated/generated';
@Component({ @Component({
standalone: true,
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'dks-ticket-overview', selector: 'dks-ticket-overview',
template: `<div class="grid grid-cols-4"> template: `<div class="grid grid-cols-4">
@ -92,7 +91,7 @@ import {
NgForOf, NgForOf,
NgSwitch, NgSwitch,
NgSwitchCase, NgSwitchCase,
], ]
}) })
export class TicketOverviewComponent { export class TicketOverviewComponent {
@Input() ticket!: Ticket & { tours: Tour[] }; @Input() ticket!: Ticket & { tours: Tour[] };

View File

@ -19,7 +19,6 @@ import {
} from '../../../core/data-access/graphql/generated/generated'; } from '../../../core/data-access/graphql/generated/generated';
@Component({ @Component({
standalone: true,
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'dks-ticket-td-uncertain', selector: 'dks-ticket-td-uncertain',
template: `<div class="flex flex-col p-3"> template: `<div class="flex flex-col p-3">
@ -59,7 +58,7 @@ import {
MatFormFieldModule, MatFormFieldModule,
MatRadioModule, MatRadioModule,
FormsModule, FormsModule,
], ]
}) })
export class TicketTdUncertainComponent { export class TicketTdUncertainComponent {
@Input() ticket!: Ticket & { tours: Tour[] }; @Input() ticket!: Ticket & { tours: Tour[] };

View File

@ -16,7 +16,6 @@ import {
} from '../../../core/data-access/graphql/generated/generated'; } from '../../../core/data-access/graphql/generated/generated';
@Component({ @Component({
standalone: true,
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'dks-ticket-tours', selector: 'dks-ticket-tours',
template: ` <div class="max-h-96 overflow-y-auto"> template: ` <div class="max-h-96 overflow-y-auto">
@ -87,7 +86,7 @@ import {
MatButtonModule, MatButtonModule,
MatCheckboxModule, MatCheckboxModule,
MatTableModule, MatTableModule,
], ]
}) })
export class TicketToursComponent implements OnInit { export class TicketToursComponent implements OnInit {
@Input() ticket!: Ticket & { tours: Tour[] }; @Input() ticket!: Ticket & { tours: Tour[] };

View File

@ -22,7 +22,6 @@ import {
} from '../../../core/data-access/graphql/generated/generated'; } from '../../../core/data-access/graphql/generated/generated';
@Component({ @Component({
standalone: true,
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'dks-ticket-user-action-required', selector: 'dks-ticket-user-action-required',
template: `<div class="flex flex-col p-3"> template: `<div class="flex flex-col p-3">
@ -108,7 +107,7 @@ import {
MatRadioModule, MatRadioModule,
MatInputModule, MatInputModule,
FormsModule, FormsModule,
], ]
}) })
export class TicketUserActionRequiredComponent implements OnInit { export class TicketUserActionRequiredComponent implements OnInit {
@Input() ticket!: Ticket & { tours: Tour[] }; @Input() ticket!: Ticket & { tours: Tour[] };

View File

@ -19,7 +19,6 @@ import { TicketToursComponent } from './ticket-tours.component';
import { TicketUserActionRequiredComponent } from './ticket-user-action-required.component'; import { TicketUserActionRequiredComponent } from './ticket-user-action-required.component';
@Component({ @Component({
standalone: true,
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'dks-ticket-view', selector: 'dks-ticket-view',
templateUrl: './ticket-view.component.html', templateUrl: './ticket-view.component.html',
@ -34,7 +33,7 @@ import { TicketUserActionRequiredComponent } from './ticket-user-action-required
NgIf, NgIf,
NgSwitch, NgSwitch,
NgSwitchCase, NgSwitchCase,
], ]
}) })
export class TicketViewComponent { export class TicketViewComponent {
private ticketsService = inject(TicketsService); private ticketsService = inject(TicketsService);

View File

@ -8,7 +8,6 @@ import { TicketLaneComponent } from './ticket-lane/ticket-lane.component';
import { TicketsSearchDialogComponent } from './tickets-search-dialog/tickets-search-dialog.component'; import { TicketsSearchDialogComponent } from './tickets-search-dialog/tickets-search-dialog.component';
@Component({ @Component({
standalone: true,
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'dks-tickets-page', selector: 'dks-tickets-page',
template: `<section class="h-full p-6 grid grid-cols-1 md:grid-cols-4 gap-6"> template: `<section class="h-full p-6 grid grid-cols-1 md:grid-cols-4 gap-6">
@ -56,7 +55,7 @@ import { TicketsSearchDialogComponent } from './tickets-search-dialog/tickets-se
MatButtonModule, MatButtonModule,
MatIconModule, MatIconModule,
RoleDirective, RoleDirective,
], ]
}) })
export class TicketsPageComponent { export class TicketsPageComponent {
private dialog = inject(DialogService); private dialog = inject(DialogService);

View File

@ -19,7 +19,6 @@ import { TicketViewComponent } from '../ticket-view/ticket-view.component';
import { TicketsService } from '../tickets.service'; import { TicketsService } from '../tickets.service';
@Component({ @Component({
standalone: true,
template: `<div class="flex flex-col items-center justify-start p-4"> template: `<div class="flex flex-col items-center justify-start p-4">
<div class="text-lg font-bold pb-2">Ticket suchen</div> <div class="text-lg font-bold pb-2">Ticket suchen</div>
<hr /> <hr />
@ -66,7 +65,7 @@ import { TicketsService } from '../tickets.service';
NgFor, NgFor,
NgIf, NgIf,
], ],
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush
}) })
export class TicketsSearchDialogComponent { export class TicketsSearchDialogComponent {
private ticketsService = inject(TicketsService); private ticketsService = inject(TicketsService);

View File

@ -20,8 +20,7 @@
"ES2022", "ES2022",
"dom", "dom",
"esnext.asynciterable" "esnext.asynciterable"
], ]
"allowSyntheticDefaultImports": true
}, },
"angularCompilerOptions": { "angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false, "enableI18nLegacyMessageIdFormat": false,