diff --git a/src/app/child-dev-project/attendance/add-day-attendance/add-day-attendance.component.html b/src/app/child-dev-project/attendance/add-day-attendance/add-day-attendance.component.html index 9f5b9d6ecd..41f16909f5 100644 --- a/src/app/child-dev-project/attendance/add-day-attendance/add-day-attendance.component.html +++ b/src/app/child-dev-project/attendance/add-day-attendance/add-day-attendance.component.html @@ -22,7 +22,9 @@

{{stages[currentStage]}}

- + + +
diff --git a/src/app/child-dev-project/attendance/add-day-attendance/add-day-attendance.component.spec.ts b/src/app/child-dev-project/attendance/add-day-attendance/add-day-attendance.component.spec.ts index 6462674dba..61fd6bc49d 100644 --- a/src/app/child-dev-project/attendance/add-day-attendance/add-day-attendance.component.spec.ts +++ b/src/app/child-dev-project/attendance/add-day-attendance/add-day-attendance.component.spec.ts @@ -16,6 +16,8 @@ import { Database } from '../../../core/database/database'; import { MockDatabase } from '../../../core/database/mock-database'; import { EntityModule } from '../../../core/entity/entity.module'; import { NoopAnimationsModule } from '@angular/platform-browser/animations'; +import { MatDatepickerModule } from '@angular/material/datepicker'; +import { MatNativeDateModule } from '@angular/material/core'; describe('AddDayAttendanceComponent', () => { let component: AddDayAttendanceComponent; @@ -25,7 +27,7 @@ describe('AddDayAttendanceComponent', () => { TestBed.configureTestingModule({ declarations: [ AddDayAttendanceComponent, SchoolBlockComponent, ChildBlockComponent ], imports: [FormsModule, MatFormFieldModule, MatInputModule, MatSelectModule, MatButtonModule, MatButtonToggleModule, - MatIconModule, MatProgressBarModule, NoopAnimationsModule, + MatIconModule, MatProgressBarModule, MatDatepickerModule, MatNativeDateModule, NoopAnimationsModule, EntityModule], providers: [ {provide: ChildrenService, useClass: ChildrenService}, diff --git a/src/app/child-dev-project/attendance/attendance-manager/attendance-manager.component.html b/src/app/child-dev-project/attendance/attendance-manager/attendance-manager.component.html index ed1a5942d0..f1e8ad522b 100644 --- a/src/app/child-dev-project/attendance/attendance-manager/attendance-manager.component.html +++ b/src/app/child-dev-project/attendance/attendance-manager/attendance-manager.component.html @@ -14,10 +14,14 @@

Attendance Register

- + + + - + + +
diff --git a/src/app/child-dev-project/attendance/attendance-manager/attendance-manager.component.spec.ts b/src/app/child-dev-project/attendance/attendance-manager/attendance-manager.component.spec.ts index 46ae6a14ba..9629d76b07 100644 --- a/src/app/child-dev-project/attendance/attendance-manager/attendance-manager.component.spec.ts +++ b/src/app/child-dev-project/attendance/attendance-manager/attendance-manager.component.spec.ts @@ -23,6 +23,8 @@ import { Database } from '../../../core/database/database'; import { MockDatabase } from '../../../core/database/mock-database'; import { EntityModule } from '../../../core/entity/entity.module'; import { NoopAnimationsModule } from '@angular/platform-browser/animations'; +import { MatDatepickerModule } from '@angular/material/datepicker'; +import { MatNativeDateModule } from '@angular/material/core'; describe('AttendanceManagerComponent', () => { let component: AttendanceManagerComponent; @@ -33,8 +35,8 @@ describe('AttendanceManagerComponent', () => { declarations: [ AttendanceManagerComponent, ChildBlockComponent, AttendanceBlockComponent, AttendanceDayBlockComponent, AttendanceDaysComponent, SchoolBlockComponent ], imports: [ MatFormFieldModule, MatInputModule, MatButtonToggleModule, MatExpansionModule, MatButtonModule, MatTableModule, - MatProgressBarModule, MatTooltipModule, MatSelectModule, MatIconModule, FormsModule, NoopAnimationsModule, - UiHelperModule, EntityModule], + MatProgressBarModule, MatTooltipModule, MatSelectModule, MatIconModule, MatDatepickerModule, MatNativeDateModule, + FormsModule, NoopAnimationsModule, UiHelperModule, EntityModule], providers: [ {provide: ChildrenService, useClass: ChildrenService}, {provide: Database, useClass: MockDatabase}, diff --git a/src/app/child-dev-project/children/child-details/child-details.component.html b/src/app/child-dev-project/children/child-details/child-details.component.html index 81edf7cc53..878274d7f9 100644 --- a/src/app/child-dev-project/children/child-details/child-details.component.html +++ b/src/app/child-dev-project/children/child-details/child-details.component.html @@ -293,22 +293,32 @@

Coaching Attendance

- + + + - + + + - + + + - + + + - + + +
@@ -339,7 +349,9 @@

Height & Weight Tracking

- + + + diff --git a/src/app/child-dev-project/children/child-details/child-details.component.spec.ts b/src/app/child-dev-project/children/child-details/child-details.component.spec.ts index f95dff317a..59ccb9e2fb 100644 --- a/src/app/child-dev-project/children/child-details/child-details.component.spec.ts +++ b/src/app/child-dev-project/children/child-details/child-details.component.spec.ts @@ -87,6 +87,7 @@ describe('ChildDetailsComponent', () => { MatInputModule, FormsModule, MatAutocompleteModule, + MatDatepickerModule, BrowserAnimationsModule, ], providers: [ diff --git a/src/app/child-dev-project/health-checkup/health-checkup-component/health-checkup.component.spec.ts b/src/app/child-dev-project/health-checkup/health-checkup-component/health-checkup.component.spec.ts index 50a3109ca7..a29f9934d5 100644 --- a/src/app/child-dev-project/health-checkup/health-checkup-component/health-checkup.component.spec.ts +++ b/src/app/child-dev-project/health-checkup/health-checkup-component/health-checkup.component.spec.ts @@ -18,6 +18,7 @@ import { MatSnackBar } from '@angular/material/snack-bar'; import { MatTableModule } from '@angular/material/table'; import { NoopAnimationsModule } from '@angular/platform-browser/animations'; import { ConfirmationDialogService } from 'app/core/ui-helper/confirmation-dialog/confirmation-dialog.service'; +import { MatDatepickerModule } from '@angular/material/datepicker'; describe('HealthCheckupComponent', () => { let component: HealthCheckupComponent; @@ -40,7 +41,7 @@ describe('HealthCheckupComponent', () => { TestBed.configureTestingModule({ declarations: [ HealthCheckupComponent, EntitySubrecordComponent], imports: [CommonModule, MatTableModule, MatSelectModule, MatOptionModule, MatAutocompleteModule, MatFormFieldModule, - MatIconModule, NoopAnimationsModule, MatDialogModule], + MatIconModule, NoopAnimationsModule, MatDialogModule, MatDatepickerModule], providers: [ DatePipe, MatSnackBar, diff --git a/src/app/child-dev-project/notes/note-details/note-details.component.html b/src/app/child-dev-project/notes/note-details/note-details.component.html index 29af7c6217..f486e413a4 100644 --- a/src/app/child-dev-project/notes/note-details/note-details.component.html +++ b/src/app/child-dev-project/notes/note-details/note-details.component.html @@ -26,8 +26,10 @@

{{note.date.toLocaleDateString()}}: {{note.subject}}

- + + +
diff --git a/src/app/child-dev-project/notes/note-details/note-details.component.spec.ts b/src/app/child-dev-project/notes/note-details/note-details.component.spec.ts index fe27dd565d..bd71fe8314 100644 --- a/src/app/child-dev-project/notes/note-details/note-details.component.spec.ts +++ b/src/app/child-dev-project/notes/note-details/note-details.component.spec.ts @@ -19,6 +19,8 @@ import { ChildrenService } from '../../children/children.service'; import { WarningLevel } from '../../warning-level'; import { NoopAnimationsModule } from '@angular/platform-browser/animations'; import { SchoolBlockComponent } from '../../schools/school-block/school-block.component'; +import { MatDatepickerModule } from '@angular/material/datepicker'; +import { MatNativeDateModule } from '@angular/material/core'; describe('NoteDetailsComponent', () => { let component: NoteDetailsComponent; @@ -38,7 +40,7 @@ describe('NoteDetailsComponent', () => { TestBed.configureTestingModule({ declarations: [ NoteDetailsComponent, ChildSelectComponent, ChildBlockComponent, SchoolBlockComponent ], imports: [MatDialogModule, MatAutocompleteModule, MatFormFieldModule, MatInputModule, MatSelectModule, - FormsModule, NoopAnimationsModule, MatIconModule, + FormsModule, NoopAnimationsModule, MatIconModule, MatDatepickerModule, MatNativeDateModule, UiHelperModule, EntityModule], providers: [ {provide: Database, useClass: MockDatabase}, diff --git a/src/app/core/ui-helper/entity-subrecord/entity-subrecord.component.html b/src/app/core/ui-helper/entity-subrecord/entity-subrecord.component.html index fc64ed4242..ed53b8d836 100644 --- a/src/app/core/ui-helper/entity-subrecord/entity-subrecord.component.html +++ b/src/app/core/ui-helper/entity-subrecord/entity-subrecord.component.html @@ -32,7 +32,9 @@ matInput type="number" min="0" [title]="col.label" [value]="rec[col.name]" (change)="rec[col.name]=$event.target.valueAsNumber"> + matInput [title]="col.label" [value]="rec[col.name]" (dateChange)="rec[col.name]=$event.target.value" [matDatepicker]="subrecordDatepicker"> + + diff --git a/src/app/core/ui-helper/entity-subrecord/entity-subrecord.component.spec.ts b/src/app/core/ui-helper/entity-subrecord/entity-subrecord.component.spec.ts index e4ecbe63db..7015b7b534 100644 --- a/src/app/core/ui-helper/entity-subrecord/entity-subrecord.component.spec.ts +++ b/src/app/core/ui-helper/entity-subrecord/entity-subrecord.component.spec.ts @@ -14,6 +14,7 @@ import { ConfirmationDialogService } from '../confirmation-dialog/confirmation-d import { CommonModule } from '@angular/common'; import { Database } from '../../database/database'; import { EntitySchemaService } from '../../entity/schema/entity-schema.service'; +import { MatDatepickerModule } from '@angular/material/datepicker'; describe('EntitySubrecordComponent', () => { let component: EntitySubrecordComponent; @@ -23,7 +24,7 @@ describe('EntitySubrecordComponent', () => { TestBed.configureTestingModule({ declarations: [ EntitySubrecordComponent ], imports: [MatTableModule, MatFormFieldModule, MatIconModule, - MatSnackBarModule, MatSelectModule, MatDialogModule, MatAutocompleteModule, CommonModule], + MatSnackBarModule, MatSelectModule, MatDialogModule, MatAutocompleteModule, MatDatepickerModule, CommonModule], providers: [ EntityMapperService, EntitySchemaService, diff --git a/src/app/core/ui-helper/ui-helper.module.ts b/src/app/core/ui-helper/ui-helper.module.ts index 141b5f709b..12ce73b130 100644 --- a/src/app/core/ui-helper/ui-helper.module.ts +++ b/src/app/core/ui-helper/ui-helper.module.ts @@ -13,6 +13,7 @@ import { MatTableModule } from '@angular/material/table'; import { ConfirmationDialogService } from './confirmation-dialog/confirmation-dialog.service'; import { EntitySubrecordComponent } from './entity-subrecord/entity-subrecord.component'; import { KeysPipe } from './keys-pipe/keys.pipe'; +import { MatDatepickerModule } from '@angular/material/datepicker'; @NgModule({ imports: [ @@ -26,6 +27,7 @@ import { KeysPipe } from './keys-pipe/keys.pipe'; MatSnackBarModule, MatSortModule, MatAutocompleteModule, + MatDatepickerModule, ], declarations: [ConfirmationDialogComponent, EntitySubrecordComponent, KeysPipe], exports: [EntitySubrecordComponent, KeysPipe],