@enigmatry/entry-components 16.1.1-preview.3 → 17.0.0-preview
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/common/common.module.d.ts +3 -1
- package/common/date-time/entry-date-time-adapter.d.ts +12 -7
- package/common/date-time/entry-date-time-formats.d.ts +25 -0
- package/common/date-time/entry-time-adapter.d.ts +9 -0
- package/common/date-time/index.d.ts +4 -2
- package/common/date-time/native-time-adapter.d.ts +13 -0
- package/common/directives/index.d.ts +2 -0
- package/common/directives/ng-control-accessor.directive.d.ts +12 -0
- package/common/directives/noop-control-value-accessor.d.ts +10 -0
- package/date-time-picker/README.md +69 -0
- package/date-time-picker/date-time-picker.component.d.ts +35 -0
- package/date-time-picker/date-time-picker.module.d.ts +16 -0
- package/date-time-picker/index.d.ts +5 -0
- package/date-time-picker/public-api.d.ts +2 -0
- package/date-time-picker/time-picker.component.d.ts +26 -0
- package/esm2022/button/entry-button.directive.mjs +6 -6
- package/esm2022/button/entry-button.module.mjs +5 -5
- package/esm2022/common/common.module.mjs +15 -7
- package/esm2022/common/date-time/entry-date-time-adapter.mjs +33 -15
- package/esm2022/common/date-time/entry-date-time-formats.mjs +14 -0
- package/esm2022/common/date-time/entry-time-adapter.mjs +10 -0
- package/esm2022/common/date-time/index.mjs +5 -3
- package/esm2022/common/date-time/native-time-adapter.mjs +31 -0
- package/esm2022/common/directives/auto-disable-button.directive.mjs +5 -5
- package/esm2022/common/directives/index.mjs +3 -1
- package/esm2022/common/directives/ng-control-accessor.directive.mjs +46 -0
- package/esm2022/common/directives/noop-control-value-accessor.mjs +32 -0
- package/esm2022/common/directives/scroll-to-invalid-control.directive.mjs +6 -6
- package/esm2022/common/event-plugins/debounce.plugin.mjs +4 -4
- package/esm2022/common/event-plugins/throttle.plugin.mjs +4 -4
- package/esm2022/common/interceptors/accept-language.interceptor.mjs +4 -4
- package/esm2022/date-time-picker/date-time-picker.component.mjs +126 -0
- package/esm2022/date-time-picker/date-time-picker.module.mjs +58 -0
- package/esm2022/date-time-picker/enigmatry-entry-components-date-time-picker.mjs +5 -0
- package/esm2022/date-time-picker/public-api.mjs +3 -0
- package/esm2022/date-time-picker/time-picker.component.mjs +80 -0
- package/esm2022/dialog/dialogs/alert/entry-alert-dialog.component.mjs +6 -6
- package/esm2022/dialog/dialogs/confirm/entry-confirm-dialog.component.mjs +6 -6
- package/esm2022/dialog/dialogs/entry-dialog.component.mjs +6 -6
- package/esm2022/dialog/dialogs/error/entry-error-dialog.component.mjs +6 -6
- package/esm2022/dialog/entry-dialog.module.mjs +5 -5
- package/esm2022/dialog/entry-dialog.service.mjs +6 -6
- package/esm2022/file-input/entry-file-input.component.mjs +5 -5
- package/esm2022/file-input/entry-file-input.module.mjs +5 -5
- package/esm2022/modules/entry-components.module.mjs +5 -5
- package/esm2022/permissions/permission.directive.mjs +4 -4
- package/esm2022/permissions/permission.guard.mjs +1 -1
- package/esm2022/permissions/permission.module.mjs +5 -5
- package/esm2022/permissions/permission.pipe.mjs +5 -5
- package/esm2022/search-filter/autocomplete/autocomplete-search-filter.component.mjs +5 -5
- package/esm2022/search-filter/date/date-search-filter.component.mjs +4 -4
- package/esm2022/search-filter/date-time/date-time-search-filter.component.mjs +7 -7
- package/esm2022/search-filter/entry-search-filter.component.mjs +6 -6
- package/esm2022/search-filter/entry-search-filter.module.mjs +5 -5
- package/esm2022/search-filter/search-filter-base.model.mjs +1 -1
- package/esm2022/search-filter/select/select-search-filter.component.mjs +6 -6
- package/esm2022/search-filter/text/text-search-filter.component.mjs +4 -4
- package/esm2022/spinner/entry-spinner/spinner.component.mjs +5 -5
- package/esm2022/spinner/spinner-overlay-container.mjs +6 -6
- package/esm2022/spinner/spinner.module.mjs +5 -5
- package/esm2022/table/components/entry-cell/entry-cell.component.mjs +4 -4
- package/esm2022/table/components/entry-cell-context-menu/entry-cell-context-menu.component.mjs +4 -4
- package/esm2022/table/components/entry-cell-formatted-value/entry-cell-formatted-value.component.mjs +6 -6
- package/esm2022/table/components/entry-table/entry-table.component.mjs +6 -6
- package/esm2022/table/entry-table.module.mjs +5 -5
- package/esm2022/table/interfaces/paged-query.mjs +1 -1
- package/esm2022/validation/entry-display-control-validation.directive.mjs +6 -6
- package/esm2022/validation/entry-form-errors.component.mjs +4 -4
- package/esm2022/validation/entry-validation.mjs +1 -1
- package/esm2022/validation/entry-validation.module.mjs +5 -5
- package/fesm2022/enigmatry-entry-components-button.mjs +9 -9
- package/fesm2022/enigmatry-entry-components-button.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-common.mjs +183 -41
- package/fesm2022/enigmatry-entry-components-common.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-date-time-picker.mjs +258 -0
- package/fesm2022/enigmatry-entry-components-date-time-picker.mjs.map +1 -0
- package/fesm2022/enigmatry-entry-components-dialog.mjs +29 -29
- package/fesm2022/enigmatry-entry-components-dialog.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-file-input.mjs +8 -8
- package/fesm2022/enigmatry-entry-components-file-input.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-permissions.mjs +11 -11
- package/fesm2022/enigmatry-entry-components-permissions.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-search-filter.mjs +30 -30
- package/fesm2022/enigmatry-entry-components-search-filter.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-spinner.mjs +13 -13
- package/fesm2022/enigmatry-entry-components-spinner.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-table.mjs +20 -20
- package/fesm2022/enigmatry-entry-components-table.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-validation.mjs +12 -12
- package/fesm2022/enigmatry-entry-components-validation.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components.mjs +4 -4
- package/fesm2022/enigmatry-entry-components.mjs.map +1 -1
- package/package.json +95 -89
- package/styles/partials/core/components/_index.scss +2 -1
- package/styles/partials/core/components/date-time-picker/_general.scss +65 -0
- package/styles/partials/core/components/forms/_general.scss +0 -4
- package/table/components/entry-table/entry-table.component.d.ts +1 -1
- package/common/date-time/entry-date-time.d.ts +0 -7
- package/esm2022/common/date-time/entry-date-time.mjs +0 -3
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, Component, HostBinding, Input, ChangeDetectionStrategy, Output, ViewChild, NgModule } from '@angular/core';
|
|
3
|
+
import * as i3 from '@angular/forms';
|
|
4
|
+
import { FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
5
|
+
import * as i5 from '@angular/material/core';
|
|
6
|
+
import { DateAdapter, MAT_DATE_FORMATS } from '@angular/material/core';
|
|
7
|
+
import * as i1$1 from '@enigmatry/entry-components/common';
|
|
8
|
+
import { NgControlAccessorDirective, ENTRY_MAT_DATE_TIME_FORMATS, EntryDateTimeAdapter, NoopControlValueAccessorDirective } from '@enigmatry/entry-components/common';
|
|
9
|
+
import * as i1 from '@angular/common';
|
|
10
|
+
import { CommonModule } from '@angular/common';
|
|
11
|
+
import * as i4 from '@angular/material/form-field';
|
|
12
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
13
|
+
import * as i4$1 from '@angular/material/select';
|
|
14
|
+
import { MatSelectModule } from '@angular/material/select';
|
|
15
|
+
import { Subject, takeUntil } from 'rxjs';
|
|
16
|
+
import * as i5$1 from '@angular/material/datepicker';
|
|
17
|
+
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
18
|
+
import * as i6 from '@angular/material/input';
|
|
19
|
+
import { MatInputModule } from '@angular/material/input';
|
|
20
|
+
import * as i7 from '@angular/material/button';
|
|
21
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
22
|
+
import * as i8 from '@angular/material/icon';
|
|
23
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
24
|
+
|
|
25
|
+
class EntryTimePickerComponent {
|
|
26
|
+
constructor() {
|
|
27
|
+
this.class = 'entry-time-picker';
|
|
28
|
+
this.timeAdapter = inject(DateAdapter);
|
|
29
|
+
this.hours = 0;
|
|
30
|
+
this.minutes = 0;
|
|
31
|
+
this.seconds = 0;
|
|
32
|
+
this.meridiem = 'am';
|
|
33
|
+
this.hours12 = Array.from(Array(12), (_, i) => i + 1);
|
|
34
|
+
this.hours24 = Array.from(Array(24), (_, i) => i);
|
|
35
|
+
this.sixty = Array.from(Array(60), (_, i) => i);
|
|
36
|
+
}
|
|
37
|
+
get possibleHours() {
|
|
38
|
+
return this.is12HourClock ? this.hours12 : this.hours24;
|
|
39
|
+
}
|
|
40
|
+
ngOnChanges(_changes) {
|
|
41
|
+
this.update();
|
|
42
|
+
}
|
|
43
|
+
update() {
|
|
44
|
+
const now = this.timeAdapter.today();
|
|
45
|
+
this.hours = this.date
|
|
46
|
+
? this.timeAdapter.getHours(this.date)
|
|
47
|
+
: this.timeAdapter.getHours(this.defaultTime ?? now);
|
|
48
|
+
this.minutes = this.date
|
|
49
|
+
? this.timeAdapter.getMinutes(this.date)
|
|
50
|
+
: this.timeAdapter.getMinutes(this.defaultTime ?? now);
|
|
51
|
+
this.seconds = (this.showSeconds && this.date)
|
|
52
|
+
? this.timeAdapter.getSeconds(this.date)
|
|
53
|
+
: this.timeAdapter.getSeconds(this.defaultTime ?? now);
|
|
54
|
+
this.meridiem = this.hours >= 12 ? 'pm' : 'am';
|
|
55
|
+
if (this.is12HourClock) {
|
|
56
|
+
this.to12HourClock();
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
to12HourClock() {
|
|
60
|
+
if (this.hours > 12) {
|
|
61
|
+
this.hours = this.hours - 12;
|
|
62
|
+
}
|
|
63
|
+
if (this.hours === 0) {
|
|
64
|
+
this.hours = 12;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
to24HourClock() {
|
|
68
|
+
if (!this.is12HourClock) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
if (this.meridiem === "am" && this.hours === 12) {
|
|
72
|
+
this.hours = 0;
|
|
73
|
+
}
|
|
74
|
+
if (this.meridiem == "pm" && this.hours != 12) {
|
|
75
|
+
this.hours = this.hours + 12;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EntryTimePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
79
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.8", type: EntryTimePickerComponent, selector: "entry-time-picker", inputs: { date: "date", showSeconds: "showSeconds", is12HourClock: "is12HourClock", defaultTime: "defaultTime" }, host: { properties: { "class": "this.class" } }, usesOnChanges: true, ngImport: i0, template: "<mat-form-field appearance=\"fill\">\n <mat-select [(ngModel)]=\"hours\" [hideSingleSelectionIndicator]=\"true\" [panelWidth]=\"null\">\n <mat-option *ngFor=\"let hour of possibleHours\" [value]=\"hour\">{{hour | number:'2.0'}}</mat-option>\n </mat-select>\n</mat-form-field>\n<span class=\"time-separator\">:</span>\n<mat-form-field appearance=\"fill\">\n <mat-select [(ngModel)]=\"minutes\" [hideSingleSelectionIndicator]=\"true\" [panelWidth]=\"null\">\n <mat-option *ngFor=\"let minute of sixty\" [value]=\"minute\">{{minute | number:'2.0'}}</mat-option>\n </mat-select>\n</mat-form-field>\n<span *ngIf=\"showSeconds\" class=\"time-separator\">:</span>\n<mat-form-field *ngIf=\"showSeconds\" appearance=\"fill\">\n <mat-select [(ngModel)]=\"seconds\" [hideSingleSelectionIndicator]=\"true\" [panelWidth]=\"null\">\n <mat-option *ngFor=\"let second of sixty\" [value]=\"second\">{{second | number:'2.0'}}</mat-option>\n </mat-select>\n</mat-form-field>\n<mat-form-field *ngIf=\"is12HourClock\" appearance=\"fill\">\n <mat-select [(ngModel)]=\"meridiem\" [hideSingleSelectionIndicator]=\"true\" [panelWidth]=\"null\">\n <mat-option value=\"am\">AM</mat-option>\n <mat-option value=\"pm\">PM</mat-option>\n </mat-select>\n</mat-form-field>", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "component", type: i4$1.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i5.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "pipe", type: i1.DecimalPipe, name: "number" }] }); }
|
|
80
|
+
}
|
|
81
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EntryTimePickerComponent, decorators: [{
|
|
82
|
+
type: Component,
|
|
83
|
+
args: [{ selector: 'entry-time-picker', template: "<mat-form-field appearance=\"fill\">\n <mat-select [(ngModel)]=\"hours\" [hideSingleSelectionIndicator]=\"true\" [panelWidth]=\"null\">\n <mat-option *ngFor=\"let hour of possibleHours\" [value]=\"hour\">{{hour | number:'2.0'}}</mat-option>\n </mat-select>\n</mat-form-field>\n<span class=\"time-separator\">:</span>\n<mat-form-field appearance=\"fill\">\n <mat-select [(ngModel)]=\"minutes\" [hideSingleSelectionIndicator]=\"true\" [panelWidth]=\"null\">\n <mat-option *ngFor=\"let minute of sixty\" [value]=\"minute\">{{minute | number:'2.0'}}</mat-option>\n </mat-select>\n</mat-form-field>\n<span *ngIf=\"showSeconds\" class=\"time-separator\">:</span>\n<mat-form-field *ngIf=\"showSeconds\" appearance=\"fill\">\n <mat-select [(ngModel)]=\"seconds\" [hideSingleSelectionIndicator]=\"true\" [panelWidth]=\"null\">\n <mat-option *ngFor=\"let second of sixty\" [value]=\"second\">{{second | number:'2.0'}}</mat-option>\n </mat-select>\n</mat-form-field>\n<mat-form-field *ngIf=\"is12HourClock\" appearance=\"fill\">\n <mat-select [(ngModel)]=\"meridiem\" [hideSingleSelectionIndicator]=\"true\" [panelWidth]=\"null\">\n <mat-option value=\"am\">AM</mat-option>\n <mat-option value=\"pm\">PM</mat-option>\n </mat-select>\n</mat-form-field>" }]
|
|
84
|
+
}], propDecorators: { class: [{
|
|
85
|
+
type: HostBinding,
|
|
86
|
+
args: ['class']
|
|
87
|
+
}], date: [{
|
|
88
|
+
type: Input
|
|
89
|
+
}], showSeconds: [{
|
|
90
|
+
type: Input
|
|
91
|
+
}], is12HourClock: [{
|
|
92
|
+
type: Input
|
|
93
|
+
}], defaultTime: [{
|
|
94
|
+
type: Input
|
|
95
|
+
}] } });
|
|
96
|
+
|
|
97
|
+
class EntryDateTimePickerComponent {
|
|
98
|
+
constructor() {
|
|
99
|
+
this.class = 'entry-date-time-picker';
|
|
100
|
+
this.dateTimeChanged = new Subject();
|
|
101
|
+
this.ngControlAccessor = inject(NgControlAccessorDirective);
|
|
102
|
+
this.dateTimeAdapter = inject(DateAdapter);
|
|
103
|
+
this.format = inject(ENTRY_MAT_DATE_TIME_FORMATS);
|
|
104
|
+
// Control that is connected to calendar
|
|
105
|
+
this.calendarControl = new FormControl(undefined);
|
|
106
|
+
this.is12HourClock = this.dateTimeAdapter.is12HoursClock(this.format.display.dateInput);
|
|
107
|
+
this.$destroy = new Subject();
|
|
108
|
+
}
|
|
109
|
+
// Control bound to component using FormsApi (ngModel, formControl, formControlName)
|
|
110
|
+
get formControl() {
|
|
111
|
+
return this.ngControlAccessor.control;
|
|
112
|
+
}
|
|
113
|
+
get minDate() {
|
|
114
|
+
if (!this.min) {
|
|
115
|
+
return undefined;
|
|
116
|
+
}
|
|
117
|
+
const result = this.dateTimeAdapter.clone(this.min);
|
|
118
|
+
this.dateTimeAdapter.setTime(result, 0, 0, 0);
|
|
119
|
+
return result;
|
|
120
|
+
}
|
|
121
|
+
get maxDate() {
|
|
122
|
+
if (!this.max) {
|
|
123
|
+
return undefined;
|
|
124
|
+
}
|
|
125
|
+
const result = this.dateTimeAdapter.clone(this.max);
|
|
126
|
+
this.dateTimeAdapter.setTime(result, 0, 0, 0);
|
|
127
|
+
return result;
|
|
128
|
+
}
|
|
129
|
+
ngOnInit() {
|
|
130
|
+
this.calendarControl.setValue(this.formControl.value, { emitEvent: false });
|
|
131
|
+
this.formControl.statusChanges
|
|
132
|
+
.pipe(takeUntil(this.$destroy))
|
|
133
|
+
.subscribe(status => {
|
|
134
|
+
if (status === 'DISABLED') {
|
|
135
|
+
this.calendarControl.disable({ emitEvent: false });
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
this.calendarControl.enable({ emitEvent: false });
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
this.formControl.valueChanges
|
|
142
|
+
.pipe(takeUntil(this.$destroy))
|
|
143
|
+
.subscribe(value => {
|
|
144
|
+
this.calendarControl.setValue(value, { emitEvent: false });
|
|
145
|
+
this.dateTimeChanged.next(value);
|
|
146
|
+
});
|
|
147
|
+
this.calendarControl.valueChanges
|
|
148
|
+
.pipe(takeUntil(this.$destroy))
|
|
149
|
+
.subscribe(value => {
|
|
150
|
+
this.timePicker.to24HourClock();
|
|
151
|
+
this.dateTimeAdapter.setTime(value, this.timePicker.hours, this.timePicker.minutes, this.timePicker.seconds);
|
|
152
|
+
this.formControl.setValue(value);
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
ngOnChanges(_changes) {
|
|
156
|
+
if (this.disabled) {
|
|
157
|
+
this.formControl.disable();
|
|
158
|
+
this.calendarControl.disable();
|
|
159
|
+
}
|
|
160
|
+
else {
|
|
161
|
+
this.formControl.enable();
|
|
162
|
+
this.calendarControl.enable();
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
ngOnDestroy() {
|
|
166
|
+
this.$destroy.next();
|
|
167
|
+
this.$destroy.complete();
|
|
168
|
+
}
|
|
169
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EntryDateTimePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
170
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.8", type: EntryDateTimePickerComponent, selector: "entry-date-time-picker", inputs: { label: "label", showSeconds: "showSeconds", disabled: "disabled", min: "min", max: "max", placeholder: "placeholder", hint: "hint", defaultTime: "defaultTime" }, outputs: { dateTimeChanged: "dateTimeChanged" }, host: { properties: { "class": "this.class" } }, providers: [
|
|
171
|
+
{ provide: MAT_DATE_FORMATS, useFactory: () => inject(ENTRY_MAT_DATE_TIME_FORMATS) },
|
|
172
|
+
{ provide: DateAdapter, useClass: EntryDateTimeAdapter }
|
|
173
|
+
], viewQueries: [{ propertyName: "timePicker", first: true, predicate: EntryTimePickerComponent, descendants: true, static: true }], usesOnChanges: true, hostDirectives: [{ directive: i1$1.NoopControlValueAccessorDirective }, { directive: i1$1.NgControlAccessorDirective }], ngImport: i0, template: "<mat-form-field>\n <mat-label>{{ label }}</mat-label>\n <input matInput [matDatepicker]=\"hiddenPicker\" [placeholder]=\"placeholder\" [formControl]=\"formControl\">\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-datepicker #hiddenPicker class=\"hidden\"></mat-datepicker>\n <input class=\"hidden\" matInput [min]=\"minDate\" [max]=\"maxDate\" [matDatepicker]=\"picker\"\n [formControl]=\"calendarControl\">\n <mat-datepicker-toggle matSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <mat-datepicker #picker (opened)=\"timePicker.update()\">\n <mat-datepicker-actions>\n <entry-time-picker [date]=\"formControl.value\" [showSeconds]=\"showSeconds\" [is12HourClock]=\"is12HourClock\"\n [defaultTime]=\"defaultTime\"></entry-time-picker>\n <button mat-raised-button color=\"primary\" matDateRangePickerApply class=\"entry-submit-button\">\n <mat-icon aria-hidden=\"false\" aria-label=\"Apply\" fontIcon=\"done\" class=\"icon\"></mat-icon>\n </button>\n </mat-datepicker-actions>\n </mat-datepicker>\n</mat-form-field>", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "component", type: i5$1.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: i5$1.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: i5$1.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "component", type: i5$1.MatDatepickerActions, selector: "mat-datepicker-actions, mat-date-range-picker-actions" }, { kind: "directive", type: i5$1.MatDatepickerApply, selector: "[matDatepickerApply], [matDateRangePickerApply]" }, { kind: "directive", type: i6.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i7.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i8.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: EntryTimePickerComponent, selector: "entry-time-picker", inputs: ["date", "showSeconds", "is12HourClock", "defaultTime"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
174
|
+
}
|
|
175
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EntryDateTimePickerComponent, decorators: [{
|
|
176
|
+
type: Component,
|
|
177
|
+
args: [{ selector: 'entry-date-time-picker', providers: [
|
|
178
|
+
{ provide: MAT_DATE_FORMATS, useFactory: () => inject(ENTRY_MAT_DATE_TIME_FORMATS) },
|
|
179
|
+
{ provide: DateAdapter, useClass: EntryDateTimeAdapter }
|
|
180
|
+
], hostDirectives: [NoopControlValueAccessorDirective, NgControlAccessorDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-form-field>\n <mat-label>{{ label }}</mat-label>\n <input matInput [matDatepicker]=\"hiddenPicker\" [placeholder]=\"placeholder\" [formControl]=\"formControl\">\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-datepicker #hiddenPicker class=\"hidden\"></mat-datepicker>\n <input class=\"hidden\" matInput [min]=\"minDate\" [max]=\"maxDate\" [matDatepicker]=\"picker\"\n [formControl]=\"calendarControl\">\n <mat-datepicker-toggle matSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <mat-datepicker #picker (opened)=\"timePicker.update()\">\n <mat-datepicker-actions>\n <entry-time-picker [date]=\"formControl.value\" [showSeconds]=\"showSeconds\" [is12HourClock]=\"is12HourClock\"\n [defaultTime]=\"defaultTime\"></entry-time-picker>\n <button mat-raised-button color=\"primary\" matDateRangePickerApply class=\"entry-submit-button\">\n <mat-icon aria-hidden=\"false\" aria-label=\"Apply\" fontIcon=\"done\" class=\"icon\"></mat-icon>\n </button>\n </mat-datepicker-actions>\n </mat-datepicker>\n</mat-form-field>" }]
|
|
181
|
+
}], propDecorators: { class: [{
|
|
182
|
+
type: HostBinding,
|
|
183
|
+
args: ['class']
|
|
184
|
+
}], label: [{
|
|
185
|
+
type: Input
|
|
186
|
+
}], showSeconds: [{
|
|
187
|
+
type: Input
|
|
188
|
+
}], disabled: [{
|
|
189
|
+
type: Input
|
|
190
|
+
}], min: [{
|
|
191
|
+
type: Input
|
|
192
|
+
}], max: [{
|
|
193
|
+
type: Input
|
|
194
|
+
}], placeholder: [{
|
|
195
|
+
type: Input
|
|
196
|
+
}], hint: [{
|
|
197
|
+
type: Input
|
|
198
|
+
}], defaultTime: [{
|
|
199
|
+
type: Input
|
|
200
|
+
}], dateTimeChanged: [{
|
|
201
|
+
type: Output
|
|
202
|
+
}], timePicker: [{
|
|
203
|
+
type: ViewChild,
|
|
204
|
+
args: [EntryTimePickerComponent, { static: true }]
|
|
205
|
+
}] } });
|
|
206
|
+
|
|
207
|
+
class EntryDateTimePickerModule {
|
|
208
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EntryDateTimePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
209
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.8", ngImport: i0, type: EntryDateTimePickerModule, declarations: [EntryDateTimePickerComponent,
|
|
210
|
+
EntryTimePickerComponent], imports: [CommonModule,
|
|
211
|
+
FormsModule,
|
|
212
|
+
ReactiveFormsModule,
|
|
213
|
+
MatFormFieldModule,
|
|
214
|
+
MatDatepickerModule,
|
|
215
|
+
MatInputModule,
|
|
216
|
+
MatSelectModule,
|
|
217
|
+
MatButtonModule,
|
|
218
|
+
MatIconModule], exports: [EntryDateTimePickerComponent] }); }
|
|
219
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EntryDateTimePickerModule, imports: [CommonModule,
|
|
220
|
+
FormsModule,
|
|
221
|
+
ReactiveFormsModule,
|
|
222
|
+
MatFormFieldModule,
|
|
223
|
+
MatDatepickerModule,
|
|
224
|
+
MatInputModule,
|
|
225
|
+
MatSelectModule,
|
|
226
|
+
MatButtonModule,
|
|
227
|
+
MatIconModule] }); }
|
|
228
|
+
}
|
|
229
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EntryDateTimePickerModule, decorators: [{
|
|
230
|
+
type: NgModule,
|
|
231
|
+
args: [{
|
|
232
|
+
imports: [
|
|
233
|
+
CommonModule,
|
|
234
|
+
FormsModule,
|
|
235
|
+
ReactiveFormsModule,
|
|
236
|
+
MatFormFieldModule,
|
|
237
|
+
MatDatepickerModule,
|
|
238
|
+
MatInputModule,
|
|
239
|
+
MatSelectModule,
|
|
240
|
+
MatButtonModule,
|
|
241
|
+
MatIconModule
|
|
242
|
+
],
|
|
243
|
+
declarations: [
|
|
244
|
+
EntryDateTimePickerComponent,
|
|
245
|
+
EntryTimePickerComponent
|
|
246
|
+
],
|
|
247
|
+
exports: [
|
|
248
|
+
EntryDateTimePickerComponent
|
|
249
|
+
]
|
|
250
|
+
}]
|
|
251
|
+
}] });
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Generated bundle index. Do not edit.
|
|
255
|
+
*/
|
|
256
|
+
|
|
257
|
+
export { EntryDateTimePickerComponent, EntryDateTimePickerModule };
|
|
258
|
+
//# sourceMappingURL=enigmatry-entry-components-date-time-picker.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enigmatry-entry-components-date-time-picker.mjs","sources":["../../../../libs/entry-components/date-time-picker/time-picker.component.ts","../../../../libs/entry-components/date-time-picker/time-picker.component.html","../../../../libs/entry-components/date-time-picker/date-time-picker.component.ts","../../../../libs/entry-components/date-time-picker/date-time-picker.component.html","../../../../libs/entry-components/date-time-picker/date-time-picker.module.ts","../../../../libs/entry-components/date-time-picker/enigmatry-entry-components-date-time-picker.ts"],"sourcesContent":["import { Component, HostBinding, Input, OnChanges, SimpleChanges, inject } from '@angular/core';\nimport { DateAdapter } from '@angular/material/core';\nimport { EntryDateTimeAdapter } from '@enigmatry/entry-components/common';\n\nexport type meridiem = 'am' | 'pm';\n\n@Component({\n selector: 'entry-time-picker',\n templateUrl: './time-picker.component.html'\n})\nexport class EntryTimePickerComponent<D> implements OnChanges {\n @HostBinding('class') class = 'entry-time-picker';\n\n readonly timeAdapter = inject(DateAdapter) as EntryDateTimeAdapter<D, unknown>;\n\n @Input() date: D | undefined;\n @Input() showSeconds: boolean;\n @Input() is12HourClock: boolean;\n @Input() defaultTime: D | undefined;\n\n hours = 0;\n minutes = 0;\n seconds = 0;\n meridiem: meridiem = 'am';\n\n readonly hours12 = Array.from(Array(12), (_, i) => i + 1);\n readonly hours24 = Array.from(Array(24), (_, i) => i);\n readonly sixty = Array.from(Array(60), (_, i) => i);\n\n get possibleHours() {\n return this.is12HourClock ? this.hours12 : this.hours24;\n }\n\n ngOnChanges(_changes: SimpleChanges): void {\n this.update();\n }\n\n update() {\n const now = this.timeAdapter.today();\n\n this.hours = this.date\n ? this.timeAdapter.getHours(this.date)\n : this.timeAdapter.getHours(this.defaultTime ?? now);\n\n this.minutes = this.date\n ? this.timeAdapter.getMinutes(this.date)\n : this.timeAdapter.getMinutes(this.defaultTime ?? now);\n\n this.seconds = (this.showSeconds && this.date)\n ? this.timeAdapter.getSeconds(this.date)\n : this.timeAdapter.getSeconds(this.defaultTime ?? now);\n\n this.meridiem = this.hours >= 12 ? 'pm' : 'am';\n\n if (this.is12HourClock) {\n this.to12HourClock();\n }\n }\n\n to12HourClock() {\n if (this.hours > 12) {\n this.hours = this.hours - 12;\n }\n if (this.hours === 0) {\n this.hours = 12;\n }\n }\n\n to24HourClock() {\n if (!this.is12HourClock) {\n return;\n }\n if (this.meridiem === \"am\" && this.hours === 12) {\n this.hours = 0;\n }\n if (this.meridiem == \"pm\" && this.hours != 12) {\n this.hours = this.hours + 12;\n }\n }\n}\n","<mat-form-field appearance=\"fill\">\n <mat-select [(ngModel)]=\"hours\" [hideSingleSelectionIndicator]=\"true\" [panelWidth]=\"null\">\n <mat-option *ngFor=\"let hour of possibleHours\" [value]=\"hour\">{{hour | number:'2.0'}}</mat-option>\n </mat-select>\n</mat-form-field>\n<span class=\"time-separator\">:</span>\n<mat-form-field appearance=\"fill\">\n <mat-select [(ngModel)]=\"minutes\" [hideSingleSelectionIndicator]=\"true\" [panelWidth]=\"null\">\n <mat-option *ngFor=\"let minute of sixty\" [value]=\"minute\">{{minute | number:'2.0'}}</mat-option>\n </mat-select>\n</mat-form-field>\n<span *ngIf=\"showSeconds\" class=\"time-separator\">:</span>\n<mat-form-field *ngIf=\"showSeconds\" appearance=\"fill\">\n <mat-select [(ngModel)]=\"seconds\" [hideSingleSelectionIndicator]=\"true\" [panelWidth]=\"null\">\n <mat-option *ngFor=\"let second of sixty\" [value]=\"second\">{{second | number:'2.0'}}</mat-option>\n </mat-select>\n</mat-form-field>\n<mat-form-field *ngIf=\"is12HourClock\" appearance=\"fill\">\n <mat-select [(ngModel)]=\"meridiem\" [hideSingleSelectionIndicator]=\"true\" [panelWidth]=\"null\">\n <mat-option value=\"am\">AM</mat-option>\n <mat-option value=\"pm\">PM</mat-option>\n </mat-select>\n</mat-form-field>","import { ChangeDetectionStrategy, Component, HostBinding, Input, OnChanges, OnDestroy, OnInit, Output, SimpleChanges, ViewChild, inject } from '@angular/core';\nimport { FormControl } from '@angular/forms';\nimport { MAT_DATE_FORMATS, DateAdapter, MatDateFormats } from '@angular/material/core';\nimport { ENTRY_MAT_DATE_TIME_FORMATS, EntryDateTimeAdapter, NgControlAccessorDirective, NoopControlValueAccessorDirective } from '@enigmatry/entry-components/common';\nimport { EntryTimePickerComponent } from './time-picker.component';\nimport { Subject, takeUntil } from 'rxjs';\n\n@Component({\n selector: 'entry-date-time-picker',\n templateUrl: './date-time-picker.component.html',\n providers: [\n { provide: MAT_DATE_FORMATS, useFactory: () => inject(ENTRY_MAT_DATE_TIME_FORMATS) },\n { provide: DateAdapter, useClass: EntryDateTimeAdapter }\n ],\n hostDirectives: [NoopControlValueAccessorDirective, NgControlAccessorDirective],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class EntryDateTimePickerComponent<D> implements OnInit, OnDestroy, OnChanges {\n @HostBinding('class') class = 'entry-date-time-picker';\n\n @Input() label: string;\n @Input() showSeconds: boolean;\n @Input() disabled: boolean;\n @Input() min: D;\n @Input() max: D;\n @Input() placeholder: string | undefined;\n @Input() hint: string | undefined;\n @Input() defaultTime: D | undefined;\n @Output() dateTimeChanged = new Subject<D>();\n\n ngControlAccessor = inject(NgControlAccessorDirective);\n dateTimeAdapter: EntryDateTimeAdapter<D, unknown> = inject(DateAdapter) as EntryDateTimeAdapter<D, unknown>;\n format: MatDateFormats = inject(ENTRY_MAT_DATE_TIME_FORMATS);\n\n // Control bound to component using FormsApi (ngModel, formControl, formControlName)\n get formControl(): FormControl<D> {\n return this.ngControlAccessor.control;\n }\n\n // Control that is connected to calendar\n calendarControl: FormControl<D> = new FormControl<D>(undefined);\n\n is12HourClock = this.dateTimeAdapter.is12HoursClock(this.format.display.dateInput);\n\n @ViewChild(EntryTimePickerComponent, { static: true }) timePicker: EntryTimePickerComponent<D>;\n\n private $destroy = new Subject<void>();\n\n get minDate() {\n if (!this.min) {\n return undefined;\n }\n const result = this.dateTimeAdapter.clone(this.min);\n this.dateTimeAdapter.setTime(result, 0, 0, 0);\n return result;\n }\n\n get maxDate() {\n if (!this.max) {\n return undefined;\n }\n const result = this.dateTimeAdapter.clone(this.max);\n this.dateTimeAdapter.setTime(result, 0, 0, 0);\n return result;\n }\n\n ngOnInit(): void {\n this.calendarControl.setValue(this.formControl.value, { emitEvent: false });\n\n this.formControl.statusChanges\n .pipe(takeUntil(this.$destroy))\n .subscribe(status => {\n if (status === 'DISABLED') {\n this.calendarControl.disable({ emitEvent: false });\n } else {\n this.calendarControl.enable({ emitEvent: false });\n }\n })\n\n this.formControl.valueChanges\n .pipe(takeUntil(this.$destroy))\n .subscribe(value =>\n {\n this.calendarControl.setValue(value, { emitEvent: false });\n this.dateTimeChanged.next(value);\n }\n );\n\n this.calendarControl.valueChanges\n .pipe(takeUntil(this.$destroy))\n .subscribe(value => {\n this.timePicker.to24HourClock();\n this.dateTimeAdapter.setTime(value, this.timePicker.hours, this.timePicker.minutes, this.timePicker.seconds);\n this.formControl.setValue(value);\n });\n }\n\n ngOnChanges(_changes: SimpleChanges): void {\n if (this.disabled) {\n this.formControl.disable();\n this.calendarControl.disable();\n } else {\n this.formControl.enable();\n this.calendarControl.enable();\n }\n }\n\n ngOnDestroy(): void {\n this.$destroy.next();\n this.$destroy.complete();\n }\n}\n","<mat-form-field>\n <mat-label>{{ label }}</mat-label>\n <input matInput [matDatepicker]=\"hiddenPicker\" [placeholder]=\"placeholder\" [formControl]=\"formControl\">\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-datepicker #hiddenPicker class=\"hidden\"></mat-datepicker>\n <input class=\"hidden\" matInput [min]=\"minDate\" [max]=\"maxDate\" [matDatepicker]=\"picker\"\n [formControl]=\"calendarControl\">\n <mat-datepicker-toggle matSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <mat-datepicker #picker (opened)=\"timePicker.update()\">\n <mat-datepicker-actions>\n <entry-time-picker [date]=\"formControl.value\" [showSeconds]=\"showSeconds\" [is12HourClock]=\"is12HourClock\"\n [defaultTime]=\"defaultTime\"></entry-time-picker>\n <button mat-raised-button color=\"primary\" matDateRangePickerApply class=\"entry-submit-button\">\n <mat-icon aria-hidden=\"false\" aria-label=\"Apply\" fontIcon=\"done\" class=\"icon\"></mat-icon>\n </button>\n </mat-datepicker-actions>\n </mat-datepicker>\n</mat-form-field>","import { NgModule } from \"@angular/core\";\nimport { FormsModule, ReactiveFormsModule } from \"@angular/forms\";\nimport { MatDatepickerModule } from \"@angular/material/datepicker\";\nimport { MatFormFieldModule } from \"@angular/material/form-field\";\nimport { EntryDateTimePickerComponent } from \"./date-time-picker.component\";\nimport { CommonModule } from \"@angular/common\";\nimport { MatSelectModule } from \"@angular/material/select\";\nimport { MatButtonModule } from \"@angular/material/button\";\nimport { MatInputModule } from \"@angular/material/input\";\nimport { MatIconModule } from \"@angular/material/icon\";\nimport { EntryTimePickerComponent } from './time-picker.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n MatFormFieldModule,\n MatDatepickerModule,\n MatInputModule,\n MatSelectModule,\n MatButtonModule,\n MatIconModule\n ],\n declarations: [\n EntryDateTimePickerComponent,\n EntryTimePickerComponent\n ],\n exports: [\n EntryDateTimePickerComponent\n ]\n})\nexport class EntryDateTimePickerModule { }","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i2","i3","i4","i5","i9.EntryTimePickerComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;MAUa,wBAAwB,CAAA;AAJrC,IAAA,WAAA,GAAA;QAKwB,IAAK,CAAA,KAAA,GAAG,mBAAmB,CAAC;AAEzC,QAAA,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AA;;2FAUR,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBApBrC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,WAAW;wBACX,mBAAmB;wBACnB,kBAAkB;wBAClB,mBAAmB;wBACnB,cAAc;wBACd,eAAe;wBACf,eAAe;wBACf,aAAa;AAChB,qBAAA;AACD,oBAAA,YAAY,EAAE;wBACV,4BAA4B;wBAC5B,wBAAwB;AAC3B,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACL,4BAA4B;AAC/B,qBAAA;AACJ,iBAAA,CAAA;;;AC/BD;;AAEG;;;;"}
|
|
@@ -81,16 +81,16 @@ class EntryDialogComponent {
|
|
|
81
81
|
});
|
|
82
82
|
this.close = (value = true) => this.mdDialogRef.close(value);
|
|
83
83
|
}
|
|
84
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
85
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
84
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EntryDialogComponent, deps: [{ token: i1.MatDialogRef }, { token: ENTRY_DIALOG_CONFIG }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
85
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.8", type: EntryDialogComponent, selector: "entry-dialog", inputs: { title: "title", buttonsAlignment: "buttonsAlignment", confirmButtonText: "confirmButtonText", cancelButtonText: "cancelButtonText", hideButtons: "hideButtons", hideCancel: "hideCancel", hideClose: "hideClose", disableConfirm: "disableConfirm", buttonsTemplate: "buttonsTemplate", confirm: "confirm", cancel: "cancel" }, ngImport: i0, template: "<div class=\"entry-dialog\">\n <div class=\"dialog-header\">\n <h1 class=\"title\" [ngClass]=\"{'without-close-icon': hideClose === true}\" mat-dialog-title>{{ title }}</h1>\n <button mat-icon-button *ngIf=\"!hideClose\" type=\"button\" class=\"close-button\" (click)=\"cancel()\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n\n <mat-dialog-content class=\"dialog-content\" [ngClass]=\"{'with-actions': !hideButtons}\">\n <ng-content></ng-content>\n </mat-dialog-content>\n\n <mat-dialog-actions class=\"dialog-actions\" [align]=\"buttonsAlignment\" *ngIf=\"!hideButtons\">\n <ng-container *ngIf=\"buttonsTemplate; then buttonsTemplate; else defaultButtonsTemplate\">\n </ng-container>\n </mat-dialog-actions>\n \n <ng-template #defaultButtonsTemplate>\n <button cdkFocusInitial mat-button entry-submit-button (click)=\"onSubmit()\">\n <span>{{confirmButtonText}}</span>\n </button>\n <button *ngIf=\"!hideCancel\" mat-button entry-cancel-button (click)=\"cancel()\">\n <span>{{cancelButtonText}}</span>\n </button>\n </ng-template>\n</div>", styles: [""], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i4.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i4.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "directive", type: i5.EntryButtonDirective, selector: "[mat-button][entry-submit-button],[mat-button][entry-cancel-button]" }] }); }
|
|
86
86
|
}
|
|
87
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
87
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EntryDialogComponent, decorators: [{
|
|
88
88
|
type: Component,
|
|
89
89
|
args: [{ selector: 'entry-dialog', template: "<div class=\"entry-dialog\">\n <div class=\"dialog-header\">\n <h1 class=\"title\" [ngClass]=\"{'without-close-icon': hideClose === true}\" mat-dialog-title>{{ title }}</h1>\n <button mat-icon-button *ngIf=\"!hideClose\" type=\"button\" class=\"close-button\" (click)=\"cancel()\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n\n <mat-dialog-content class=\"dialog-content\" [ngClass]=\"{'with-actions': !hideButtons}\">\n <ng-content></ng-content>\n </mat-dialog-content>\n\n <mat-dialog-actions class=\"dialog-actions\" [align]=\"buttonsAlignment\" *ngIf=\"!hideButtons\">\n <ng-container *ngIf=\"buttonsTemplate; then buttonsTemplate; else defaultButtonsTemplate\">\n </ng-container>\n </mat-dialog-actions>\n \n <ng-template #defaultButtonsTemplate>\n <button cdkFocusInitial mat-button entry-submit-button (click)=\"onSubmit()\">\n <span>{{confirmButtonText}}</span>\n </button>\n <button *ngIf=\"!hideCancel\" mat-button entry-cancel-button (click)=\"cancel()\">\n <span>{{cancelButtonText}}</span>\n </button>\n </ng-template>\n</div>" }]
|
|
90
|
-
}], ctorParameters:
|
|
90
|
+
}], ctorParameters: () => [{ type: i1.MatDialogRef }, { type: EntryDialogConfig, decorators: [{
|
|
91
91
|
type: Inject,
|
|
92
92
|
args: [ENTRY_DIALOG_CONFIG]
|
|
93
|
-
}] }]
|
|
93
|
+
}] }], propDecorators: { title: [{
|
|
94
94
|
type: Input
|
|
95
95
|
}], buttonsAlignment: [{
|
|
96
96
|
type: Input
|
|
@@ -121,19 +121,19 @@ class EntryAlertDialogComponent extends EntryDialogComponent {
|
|
|
121
121
|
this.config = config;
|
|
122
122
|
this.data = data;
|
|
123
123
|
}
|
|
124
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
125
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
124
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EntryAlertDialogComponent, deps: [{ token: i1.MatDialogRef }, { token: ENTRY_DIALOG_CONFIG }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
125
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.8", type: EntryAlertDialogComponent, selector: "entry-alert-dialog", usesInheritance: true, ngImport: i0, template: "<entry-dialog\n [title]=\"data.title\"\n [confirmButtonText]=\"data.confirmText ?? config.confirmButtonText\"\n [buttonsAlignment]=\"data.buttonsAlignment ?? config.buttonsAlignment\"\n [hideClose]=\"data.hideClose ?? config.hideClose\"\n [hideCancel]=\"true\">\n <p>{{data.message}}</p>\n</entry-dialog>", dependencies: [{ kind: "component", type: EntryDialogComponent, selector: "entry-dialog", inputs: ["title", "buttonsAlignment", "confirmButtonText", "cancelButtonText", "hideButtons", "hideCancel", "hideClose", "disableConfirm", "buttonsTemplate", "confirm", "cancel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
126
126
|
}
|
|
127
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EntryAlertDialogComponent, decorators: [{
|
|
128
128
|
type: Component,
|
|
129
129
|
args: [{ selector: 'entry-alert-dialog', changeDetection: ChangeDetectionStrategy.OnPush, template: "<entry-dialog\n [title]=\"data.title\"\n [confirmButtonText]=\"data.confirmText ?? config.confirmButtonText\"\n [buttonsAlignment]=\"data.buttonsAlignment ?? config.buttonsAlignment\"\n [hideClose]=\"data.hideClose ?? config.hideClose\"\n [hideCancel]=\"true\">\n <p>{{data.message}}</p>\n</entry-dialog>" }]
|
|
130
|
-
}], ctorParameters:
|
|
130
|
+
}], ctorParameters: () => [{ type: i1.MatDialogRef }, { type: EntryDialogConfig, decorators: [{
|
|
131
131
|
type: Inject,
|
|
132
132
|
args: [ENTRY_DIALOG_CONFIG]
|
|
133
133
|
}] }, { type: undefined, decorators: [{
|
|
134
134
|
type: Inject,
|
|
135
135
|
args: [MAT_DIALOG_DATA]
|
|
136
|
-
}] }]
|
|
136
|
+
}] }] });
|
|
137
137
|
|
|
138
138
|
class EntryConfirmDialogComponent extends EntryDialogComponent {
|
|
139
139
|
constructor(mdDialogRef, config, data) {
|
|
@@ -142,19 +142,19 @@ class EntryConfirmDialogComponent extends EntryDialogComponent {
|
|
|
142
142
|
this.config = config;
|
|
143
143
|
this.data = data;
|
|
144
144
|
}
|
|
145
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
146
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
145
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EntryConfirmDialogComponent, deps: [{ token: i1.MatDialogRef }, { token: ENTRY_DIALOG_CONFIG }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
146
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.8", type: EntryConfirmDialogComponent, selector: "entry-confirm-dialog", usesInheritance: true, ngImport: i0, template: "<entry-dialog\n [title]=\"data.title\"\n [confirmButtonText]=\"data.confirmText ?? config.confirmButtonText\"\n [cancelButtonText]=\"data.cancelText ?? config.cancelButtonText\"\n [buttonsAlignment]=\"data.buttonsAlignment ?? config.buttonsAlignment\"\n [hideClose]=\"data.hideClose ?? config.hideClose\">\n <p>{{data.message}}</p>\n</entry-dialog>", dependencies: [{ kind: "component", type: EntryDialogComponent, selector: "entry-dialog", inputs: ["title", "buttonsAlignment", "confirmButtonText", "cancelButtonText", "hideButtons", "hideCancel", "hideClose", "disableConfirm", "buttonsTemplate", "confirm", "cancel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
147
147
|
}
|
|
148
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
148
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EntryConfirmDialogComponent, decorators: [{
|
|
149
149
|
type: Component,
|
|
150
150
|
args: [{ selector: 'entry-confirm-dialog', changeDetection: ChangeDetectionStrategy.OnPush, template: "<entry-dialog\n [title]=\"data.title\"\n [confirmButtonText]=\"data.confirmText ?? config.confirmButtonText\"\n [cancelButtonText]=\"data.cancelText ?? config.cancelButtonText\"\n [buttonsAlignment]=\"data.buttonsAlignment ?? config.buttonsAlignment\"\n [hideClose]=\"data.hideClose ?? config.hideClose\">\n <p>{{data.message}}</p>\n</entry-dialog>" }]
|
|
151
|
-
}], ctorParameters:
|
|
151
|
+
}], ctorParameters: () => [{ type: i1.MatDialogRef }, { type: EntryDialogConfig, decorators: [{
|
|
152
152
|
type: Inject,
|
|
153
153
|
args: [ENTRY_DIALOG_CONFIG]
|
|
154
154
|
}] }, { type: undefined, decorators: [{
|
|
155
155
|
type: Inject,
|
|
156
156
|
args: [MAT_DIALOG_DATA]
|
|
157
|
-
}] }]
|
|
157
|
+
}] }] });
|
|
158
158
|
|
|
159
159
|
class EntryErrorDialogComponent extends EntryDialogComponent {
|
|
160
160
|
constructor(mdDialogRef, config, data) {
|
|
@@ -179,19 +179,19 @@ class EntryErrorDialogComponent extends EntryDialogComponent {
|
|
|
179
179
|
this.errors = [this.data.message];
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
183
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
182
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EntryErrorDialogComponent, deps: [{ token: i1.MatDialogRef }, { token: ENTRY_DIALOG_CONFIG }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
183
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.8", type: EntryErrorDialogComponent, selector: "entry-error-dialog", usesInheritance: true, ngImport: i0, template: "<entry-dialog\n [title]=\"data.title\"\n [confirmButtonText]=\"data.confirmText ?? config.confirmButtonText\"\n [buttonsAlignment]=\"data.buttonsAlignment ?? config.buttonsAlignment\"\n [hideClose]=\"data.hideClose ?? config.hideClose\"\n [hideCancel]=\"true\">\n <p *ngFor=\"let error of errors\">{{error}}</p>\n</entry-dialog>", dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: EntryDialogComponent, selector: "entry-dialog", inputs: ["title", "buttonsAlignment", "confirmButtonText", "cancelButtonText", "hideButtons", "hideCancel", "hideClose", "disableConfirm", "buttonsTemplate", "confirm", "cancel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
184
184
|
}
|
|
185
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
185
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EntryErrorDialogComponent, decorators: [{
|
|
186
186
|
type: Component,
|
|
187
187
|
args: [{ selector: 'entry-error-dialog', changeDetection: ChangeDetectionStrategy.OnPush, template: "<entry-dialog\n [title]=\"data.title\"\n [confirmButtonText]=\"data.confirmText ?? config.confirmButtonText\"\n [buttonsAlignment]=\"data.buttonsAlignment ?? config.buttonsAlignment\"\n [hideClose]=\"data.hideClose ?? config.hideClose\"\n [hideCancel]=\"true\">\n <p *ngFor=\"let error of errors\">{{error}}</p>\n</entry-dialog>" }]
|
|
188
|
-
}], ctorParameters:
|
|
188
|
+
}], ctorParameters: () => [{ type: i1.MatDialogRef }, { type: EntryDialogConfig, decorators: [{
|
|
189
189
|
type: Inject,
|
|
190
190
|
args: [ENTRY_DIALOG_CONFIG]
|
|
191
191
|
}] }, { type: undefined, decorators: [{
|
|
192
192
|
type: Inject,
|
|
193
193
|
args: [MAT_DIALOG_DATA]
|
|
194
|
-
}] }]
|
|
194
|
+
}] }] });
|
|
195
195
|
|
|
196
196
|
/**
|
|
197
197
|
* Used to open built-in and custom entry dialogs.
|
|
@@ -259,19 +259,19 @@ class EntryDialogService {
|
|
|
259
259
|
configuration.panelClass = ['dialog-container', cssClass];
|
|
260
260
|
};
|
|
261
261
|
}
|
|
262
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
263
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
262
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EntryDialogService, deps: [{ token: ENTRY_DIALOG_CONFIG }, { token: i1.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
263
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EntryDialogService }); }
|
|
264
264
|
}
|
|
265
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
265
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EntryDialogService, decorators: [{
|
|
266
266
|
type: Injectable
|
|
267
|
-
}], ctorParameters:
|
|
267
|
+
}], ctorParameters: () => [{ type: EntryDialogConfig, decorators: [{
|
|
268
268
|
type: Inject,
|
|
269
269
|
args: [ENTRY_DIALOG_CONFIG]
|
|
270
|
-
}] }, { type: i1.MatDialog }]
|
|
270
|
+
}] }, { type: i1.MatDialog }] });
|
|
271
271
|
|
|
272
272
|
class EntryDialogModule {
|
|
273
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
274
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
273
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EntryDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
274
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.8", ngImport: i0, type: EntryDialogModule, declarations: [EntryDialogComponent,
|
|
275
275
|
EntryAlertDialogComponent,
|
|
276
276
|
EntryConfirmDialogComponent,
|
|
277
277
|
EntryErrorDialogComponent], imports: [CommonModule,
|
|
@@ -282,13 +282,13 @@ class EntryDialogModule {
|
|
|
282
282
|
EntryAlertDialogComponent,
|
|
283
283
|
EntryConfirmDialogComponent,
|
|
284
284
|
EntryErrorDialogComponent] }); }
|
|
285
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
285
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EntryDialogModule, providers: [EntryDialogService], imports: [CommonModule,
|
|
286
286
|
MatDialogModule,
|
|
287
287
|
MatIconModule,
|
|
288
288
|
MatButtonModule,
|
|
289
289
|
EntryButtonModule] }); }
|
|
290
290
|
}
|
|
291
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
291
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EntryDialogModule, decorators: [{
|
|
292
292
|
type: NgModule,
|
|
293
293
|
args: [{
|
|
294
294
|
declarations: [
|