fix: update Angular CLI version and refactor dialog component template

- Updated @angular/cli from version ~20.0.3 to ~20.3.6 in package.json.
- Refactored dialog.component.html to remove optional chaining from ngModel bindings for event properties.
This commit is contained in:
Marek Lesko
2025-10-19 16:33:28 +00:00
parent f21ba09a6f
commit 9deee01ba3
3 changed files with 965 additions and 487 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -46,7 +46,7 @@
}, },
"devDependencies": { "devDependencies": {
"@angular/build": "^20.0.3", "@angular/build": "^20.0.3",
"@angular/cli": "~20.0.3", "@angular/cli": "~20.3.6",
"@angular/compiler-cli": "^20.0.4", "@angular/compiler-cli": "^20.0.4",
"@types/chance": "^1.1.6", "@types/chance": "^1.1.6",
"@types/date-fns": "^2.6.3", "@types/date-fns": "^2.6.3",

View File

@@ -23,7 +23,7 @@
<input <input
matInput matInput
placeholder="Edit Title" placeholder="Edit Title"
[(ngModel)]="data?.event.title" [(ngModel)]="data.event.title"
/> />
</mat-form-field> </mat-form-field>
</div> </div>
@@ -34,7 +34,7 @@
matInput matInput
placeholder="Change Color" placeholder="Change Color"
type="color" type="color"
[(ngModel)]="data?.event.color.primary" [(ngModel)]="data.event.color.primary"
/> />
</mat-form-field> </mat-form-field>
</div> </div>
@@ -46,7 +46,7 @@
[matDatepicker]="startDateDP" [matDatepicker]="startDateDP"
placeholder="Start Date" placeholder="Start Date"
name="startDate" name="startDate"
[(ngModel)]="data?.event.start" [(ngModel)]="data.event.start"
/> />
<mat-datepicker-toggle <mat-datepicker-toggle
matSuffix matSuffix
@@ -63,7 +63,7 @@
[matDatepicker]="endDateDP" [matDatepicker]="endDateDP"
placeholder="End Date" placeholder="End Date"
name="endDate" name="endDate"
[(ngModel)]="data?.event.end" [(ngModel)]="data.event.end"
/> />
<mat-datepicker-toggle <mat-datepicker-toggle
matSuffix matSuffix