mis-crystal-design-system 18.0.22 → 18.0.24
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/datepicker_v2/datepicker-constants.d.ts +6 -0
- package/datepicker_v2/datepicker.module.d.ts +6 -5
- package/datepicker_v2/models/dp-config.model.d.ts +3 -0
- package/datepicker_v2/tz-dp-container/tz-dp-container.component.d.ts +12 -1
- package/daterangepicker_v2/daterangepicker.module.d.ts +6 -5
- package/daterangepicker_v2/models/drp-config.model.d.ts +2 -0
- package/daterangepicker_v2/tz-drp-container/tz-drp-container.component.d.ts +20 -0
- package/esm2022/datepicker_v2/datepicker-constants.mjs +7 -1
- package/esm2022/datepicker_v2/datepicker.module.mjs +5 -4
- package/esm2022/datepicker_v2/models/dp-config.model.mjs +1 -1
- package/esm2022/datepicker_v2/tz-dp-container/tz-dp-container.component.mjs +499 -94
- package/esm2022/daterangepicker_v2/daterangepicker.module.mjs +5 -4
- package/esm2022/daterangepicker_v2/models/drp-config.model.mjs +1 -1
- package/esm2022/daterangepicker_v2/tz-drp-container/tz-drp-container.component.mjs +480 -53
- package/esm2022/table/actions-cell/actions-cell.component.mjs +2 -2
- package/esm2022/table/table.component.mjs +97 -80
- package/fesm2022/mis-crystal-design-system-datepicker_v2.mjs +511 -100
- package/fesm2022/mis-crystal-design-system-datepicker_v2.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-daterangepicker_v2.mjs +485 -58
- package/fesm2022/mis-crystal-design-system-daterangepicker_v2.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-table.mjs +98 -81
- package/fesm2022/mis-crystal-design-system-table.mjs.map +1 -1
- package/package.json +17 -17
- package/table/table.component.d.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { InjectionToken, Component, Inject, HostListener, EventEmitter, Injector, Directive, Self, Optional, Input, Output, NgModule } from '@angular/core';
|
|
3
|
-
import dayjs
|
|
3
|
+
import dayjs from 'dayjs';
|
|
4
4
|
import timezone from 'dayjs/plugin/timezone';
|
|
5
5
|
import utc from 'dayjs/plugin/utc';
|
|
6
6
|
import isSameOrAfter from 'dayjs/plugin/isSameOrAfter';
|
|
@@ -10,20 +10,27 @@ import * as i1 from 'mis-crystal-design-system/toast';
|
|
|
10
10
|
import { ToastModule } from 'mis-crystal-design-system/toast';
|
|
11
11
|
import * as i2 from '@angular/common';
|
|
12
12
|
import { CommonModule } from '@angular/common';
|
|
13
|
-
import * as i3 from '
|
|
13
|
+
import * as i3 from '@angular/forms';
|
|
14
|
+
import { FormsModule } from '@angular/forms';
|
|
15
|
+
import * as i4 from 'mis-crystal-design-system/button';
|
|
14
16
|
import { ButtonModule } from 'mis-crystal-design-system/button';
|
|
15
|
-
import * as
|
|
17
|
+
import * as i5 from '@angular/cdk/a11y';
|
|
16
18
|
import { A11yModule } from '@angular/cdk/a11y';
|
|
17
19
|
import * as i2$1 from '@angular/cdk/overlay';
|
|
18
20
|
import { OverlayConfig, OverlayModule } from '@angular/cdk/overlay';
|
|
19
21
|
import { ComponentPortal } from '@angular/cdk/portal';
|
|
20
22
|
import { take } from 'rxjs/operators';
|
|
21
23
|
import { genPositionPairs } from 'mis-crystal-design-system/utils';
|
|
22
|
-
import * as i1$1 from '@angular/forms';
|
|
23
24
|
|
|
24
25
|
/** @format */
|
|
25
26
|
const CONTAINER_DATA = new InjectionToken("CONTAINER_DATA");
|
|
26
27
|
const DATE_FORMAT = "DD-MM-YYYY";
|
|
28
|
+
const TIME_FORMAT_12 = "hh:mm A";
|
|
29
|
+
const TIME_FORMAT_24 = "HH:mm";
|
|
30
|
+
const DATETIME_FORMAT_12 = "DD-MM-YYYY hh:mm A";
|
|
31
|
+
const DATETIME_FORMAT_24 = "DD-MM-YYYY HH:mm";
|
|
32
|
+
const FORMAT_12 = "12";
|
|
33
|
+
const FORMAT_24 = "24";
|
|
27
34
|
|
|
28
35
|
const getMonth = (index) => {
|
|
29
36
|
let month;
|
|
@@ -78,7 +85,7 @@ const _c4 = (a0, a1, a2) => ({ "selected-day": a0, "disabled-day": a1, "is-valid
|
|
|
78
85
|
const _c5 = (a0, a1, a2) => ({ "current-day": a0, "selected-day": a1, "disabled-day": a2 });
|
|
79
86
|
function TzDpContainerComponent_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
80
87
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
81
|
-
i0.ɵɵelementStart(0, "div",
|
|
88
|
+
i0.ɵɵelementStart(0, "div", 16);
|
|
82
89
|
i0.ɵɵlistener("click", function TzDpContainerComponent_div_6_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.toggleMonthSelector()); });
|
|
83
90
|
i0.ɵɵtext(1);
|
|
84
91
|
i0.ɵɵelementEnd();
|
|
@@ -89,7 +96,7 @@ function TzDpContainerComponent_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
89
96
|
} }
|
|
90
97
|
function TzDpContainerComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
91
98
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
92
|
-
i0.ɵɵelementStart(0, "div",
|
|
99
|
+
i0.ɵɵelementStart(0, "div", 17);
|
|
93
100
|
i0.ɵɵlistener("click", function TzDpContainerComponent_div_7_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.toggleYearSelector()); });
|
|
94
101
|
i0.ɵɵtext(1);
|
|
95
102
|
i0.ɵɵelementEnd();
|
|
@@ -100,7 +107,7 @@ function TzDpContainerComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
100
107
|
} }
|
|
101
108
|
function TzDpContainerComponent_div_12_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
102
109
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
103
|
-
i0.ɵɵelementStart(0, "div",
|
|
110
|
+
i0.ɵɵelementStart(0, "div", 21);
|
|
104
111
|
i0.ɵɵlistener("click", function TzDpContainerComponent_div_12_div_2_Template_div_click_0_listener() { const ctx_r4 = i0.ɵɵrestoreView(_r4); const month_r6 = ctx_r4.$implicit; const i_r7 = ctx_r4.index; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(!ctx_r1.disabledMonths[i_r7] && ctx_r1.selectMonth(month_r6)); });
|
|
105
112
|
i0.ɵɵtext(1);
|
|
106
113
|
i0.ɵɵelementEnd();
|
|
@@ -113,8 +120,8 @@ function TzDpContainerComponent_div_12_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
113
120
|
i0.ɵɵtextInterpolate1(" ", month_r6, " ");
|
|
114
121
|
} }
|
|
115
122
|
function TzDpContainerComponent_div_12_Template(rf, ctx) { if (rf & 1) {
|
|
116
|
-
i0.ɵɵelementStart(0, "div",
|
|
117
|
-
i0.ɵɵtemplate(2, TzDpContainerComponent_div_12_div_2_Template, 2, 5, "div",
|
|
123
|
+
i0.ɵɵelementStart(0, "div", 18)(1, "div", 19);
|
|
124
|
+
i0.ɵɵtemplate(2, TzDpContainerComponent_div_12_div_2_Template, 2, 5, "div", 20);
|
|
118
125
|
i0.ɵɵelementEnd()();
|
|
119
126
|
} if (rf & 2) {
|
|
120
127
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -123,7 +130,7 @@ function TzDpContainerComponent_div_12_Template(rf, ctx) { if (rf & 1) {
|
|
|
123
130
|
} }
|
|
124
131
|
function TzDpContainerComponent_div_13_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
125
132
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
126
|
-
i0.ɵɵelementStart(0, "div",
|
|
133
|
+
i0.ɵɵelementStart(0, "div", 24);
|
|
127
134
|
i0.ɵɵlistener("click", function TzDpContainerComponent_div_13_div_2_Template_div_click_0_listener() { const ctx_r8 = i0.ɵɵrestoreView(_r8); const year_r10 = ctx_r8.$implicit; const i_r11 = ctx_r8.index; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(!ctx_r1.disabledYears[i_r11] && ctx_r1.selectYear(year_r10)); });
|
|
128
135
|
i0.ɵɵtext(1);
|
|
129
136
|
i0.ɵɵelementEnd();
|
|
@@ -136,8 +143,8 @@ function TzDpContainerComponent_div_13_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
136
143
|
i0.ɵɵtextInterpolate1(" ", year_r10, " ");
|
|
137
144
|
} }
|
|
138
145
|
function TzDpContainerComponent_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
139
|
-
i0.ɵɵelementStart(0, "div",
|
|
140
|
-
i0.ɵɵtemplate(2, TzDpContainerComponent_div_13_div_2_Template, 2, 5, "div",
|
|
146
|
+
i0.ɵɵelementStart(0, "div", 22)(1, "div", 19);
|
|
147
|
+
i0.ɵɵtemplate(2, TzDpContainerComponent_div_13_div_2_Template, 2, 5, "div", 23);
|
|
141
148
|
i0.ɵɵelementEnd()();
|
|
142
149
|
} if (rf & 2) {
|
|
143
150
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -145,7 +152,7 @@ function TzDpContainerComponent_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
|
145
152
|
i0.ɵɵproperty("ngForOf", ctx_r1.availableYears);
|
|
146
153
|
} }
|
|
147
154
|
function TzDpContainerComponent_div_14_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
148
|
-
i0.ɵɵelementStart(0, "div",
|
|
155
|
+
i0.ɵɵelementStart(0, "div", 27)(1, "span", 28);
|
|
149
156
|
i0.ɵɵtext(2);
|
|
150
157
|
i0.ɵɵelementEnd()();
|
|
151
158
|
} if (rf & 2) {
|
|
@@ -156,8 +163,8 @@ function TzDpContainerComponent_div_14_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
156
163
|
i0.ɵɵtextInterpolate(weekDay_r12.label);
|
|
157
164
|
} }
|
|
158
165
|
function TzDpContainerComponent_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
159
|
-
i0.ɵɵelementStart(0, "div",
|
|
160
|
-
i0.ɵɵtemplate(1, TzDpContainerComponent_div_14_div_1_Template, 3, 4, "div",
|
|
166
|
+
i0.ɵɵelementStart(0, "div", 25);
|
|
167
|
+
i0.ɵɵtemplate(1, TzDpContainerComponent_div_14_div_1_Template, 3, 4, "div", 26);
|
|
161
168
|
i0.ɵɵelementEnd();
|
|
162
169
|
} if (rf & 2) {
|
|
163
170
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -165,47 +172,100 @@ function TzDpContainerComponent_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
|
165
172
|
i0.ɵɵproperty("ngForOf", ctx_r1.weekDays);
|
|
166
173
|
} }
|
|
167
174
|
function TzDpContainerComponent_div_15_div_1_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
168
|
-
i0.ɵɵelementStart(0, "span",
|
|
175
|
+
i0.ɵɵelementStart(0, "span", 33);
|
|
169
176
|
i0.ɵɵtext(1);
|
|
170
177
|
i0.ɵɵelementEnd();
|
|
171
178
|
} if (rf & 2) {
|
|
172
179
|
const day_r14 = i0.ɵɵnextContext().$implicit;
|
|
173
180
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
174
|
-
i0.ɵɵproperty("tabindex", day_r14.isDisabledDay ? -1 : 0)("ngClass", i0.ɵɵpureFunction3(4, _c5, day_r14.isCurrentDay,
|
|
181
|
+
i0.ɵɵproperty("tabindex", day_r14.isDisabledDay ? -1 : 0)("ngClass", i0.ɵɵpureFunction3(4, _c5, day_r14.isCurrentDay, day_r14.isSelectedDay, day_r14.isDisabledDay));
|
|
175
182
|
i0.ɵɵattribute("aria-label", ctx_r1.retractDayMonth(day_r14.date, ctx_r1.currentMonth, ctx_r1.currentYearNumber));
|
|
176
183
|
i0.ɵɵadvance();
|
|
177
184
|
i0.ɵɵtextInterpolate1(" ", day_r14.date, " ");
|
|
178
185
|
} }
|
|
179
186
|
function TzDpContainerComponent_div_15_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
180
187
|
const _r13 = i0.ɵɵgetCurrentView();
|
|
181
|
-
i0.ɵɵelementStart(0, "div",
|
|
188
|
+
i0.ɵɵelementStart(0, "div", 31);
|
|
182
189
|
i0.ɵɵlistener("click", function TzDpContainerComponent_div_15_div_1_Template_div_click_0_listener() { const day_r14 = i0.ɵɵrestoreView(_r13).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.selectDay(day_r14)); })("keyup.enter", function TzDpContainerComponent_div_15_div_1_Template_div_keyup_enter_0_listener() { const day_r14 = i0.ɵɵrestoreView(_r13).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.selectDay(day_r14)); });
|
|
183
|
-
i0.ɵɵtemplate(1, TzDpContainerComponent_div_15_div_1_span_1_Template, 2, 8, "span",
|
|
190
|
+
i0.ɵɵtemplate(1, TzDpContainerComponent_div_15_div_1_span_1_Template, 2, 8, "span", 32);
|
|
184
191
|
i0.ɵɵelementEnd();
|
|
185
192
|
} if (rf & 2) {
|
|
186
193
|
const day_r14 = ctx.$implicit;
|
|
187
|
-
|
|
188
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(2, _c4, !ctx_r1.localSelectedDate ? day_r14.isSelectedDay : day_r14 === ctx_r1.localSelectedDate, day_r14.isDisabledDay, day_r14.date > 0 && !day_r14.isSelectedDay));
|
|
194
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(2, _c4, day_r14.isSelectedDay, day_r14.isDisabledDay, day_r14.date > 0 && !day_r14.isSelectedDay));
|
|
189
195
|
i0.ɵɵadvance();
|
|
190
196
|
i0.ɵɵproperty("ngIf", day_r14.date > 0);
|
|
191
197
|
} }
|
|
192
198
|
function TzDpContainerComponent_div_15_Template(rf, ctx) { if (rf & 1) {
|
|
193
|
-
i0.ɵɵelementStart(0, "div",
|
|
194
|
-
i0.ɵɵtemplate(1, TzDpContainerComponent_div_15_div_1_Template, 2, 6, "div",
|
|
199
|
+
i0.ɵɵelementStart(0, "div", 29);
|
|
200
|
+
i0.ɵɵtemplate(1, TzDpContainerComponent_div_15_div_1_Template, 2, 6, "div", 30);
|
|
195
201
|
i0.ɵɵelementEnd();
|
|
196
202
|
} if (rf & 2) {
|
|
197
203
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
198
204
|
i0.ɵɵadvance();
|
|
199
205
|
i0.ɵɵproperty("ngForOf", ctx_r1.currentMonthDates);
|
|
200
206
|
} }
|
|
207
|
+
function TzDpContainerComponent_div_16_div_15_Template(rf, ctx) { if (rf & 1) {
|
|
208
|
+
const _r16 = i0.ɵɵgetCurrentView();
|
|
209
|
+
i0.ɵɵelementStart(0, "div", 44)(1, "label", 45);
|
|
210
|
+
i0.ɵɵtext(2, "AM/PM");
|
|
211
|
+
i0.ɵɵelementEnd();
|
|
212
|
+
i0.ɵɵelementStart(3, "select", 46);
|
|
213
|
+
i0.ɵɵtwoWayListener("ngModelChange", function TzDpContainerComponent_div_16_div_15_Template_select_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r16); const ctx_r1 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r1.selectedAmPm, $event) || (ctx_r1.selectedAmPm = $event); return i0.ɵɵresetView($event); });
|
|
214
|
+
i0.ɵɵelementStart(4, "option", 47);
|
|
215
|
+
i0.ɵɵtext(5, "AM");
|
|
216
|
+
i0.ɵɵelementEnd();
|
|
217
|
+
i0.ɵɵelementStart(6, "option", 48);
|
|
218
|
+
i0.ɵɵtext(7, "PM");
|
|
219
|
+
i0.ɵɵelementEnd()()();
|
|
220
|
+
} if (rf & 2) {
|
|
221
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
222
|
+
i0.ɵɵadvance(3);
|
|
223
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.selectedAmPm);
|
|
224
|
+
} }
|
|
201
225
|
function TzDpContainerComponent_div_16_Template(rf, ctx) { if (rf & 1) {
|
|
202
226
|
const _r15 = i0.ɵɵgetCurrentView();
|
|
203
|
-
i0.ɵɵelementStart(0, "div",
|
|
204
|
-
i0.ɵɵ
|
|
227
|
+
i0.ɵɵelementStart(0, "div", 34)(1, "div", 35)(2, "span");
|
|
228
|
+
i0.ɵɵtext(3, "Time");
|
|
229
|
+
i0.ɵɵelementEnd()();
|
|
230
|
+
i0.ɵɵelementStart(4, "div", 36)(5, "div", 37)(6, "label", 38);
|
|
231
|
+
i0.ɵɵtext(7, "Hour");
|
|
232
|
+
i0.ɵɵelementEnd();
|
|
233
|
+
i0.ɵɵelementStart(8, "input", 39);
|
|
234
|
+
i0.ɵɵtwoWayListener("ngModelChange", function TzDpContainerComponent_div_16_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r15); const ctx_r1 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r1.selectedHour, $event) || (ctx_r1.selectedHour = $event); return i0.ɵɵresetView($event); });
|
|
235
|
+
i0.ɵɵlistener("input", function TzDpContainerComponent_div_16_Template_input_input_8_listener($event) { i0.ɵɵrestoreView(_r15); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onHourInput($event)); })("blur", function TzDpContainerComponent_div_16_Template_input_blur_8_listener() { i0.ɵɵrestoreView(_r15); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.validateHourInput()); });
|
|
236
|
+
i0.ɵɵelementEnd()();
|
|
237
|
+
i0.ɵɵelementStart(9, "div", 40);
|
|
238
|
+
i0.ɵɵtext(10, ":");
|
|
239
|
+
i0.ɵɵelementEnd();
|
|
240
|
+
i0.ɵɵelementStart(11, "div", 37)(12, "label", 41);
|
|
241
|
+
i0.ɵɵtext(13, "Minute");
|
|
242
|
+
i0.ɵɵelementEnd();
|
|
243
|
+
i0.ɵɵelementStart(14, "input", 42);
|
|
244
|
+
i0.ɵɵtwoWayListener("ngModelChange", function TzDpContainerComponent_div_16_Template_input_ngModelChange_14_listener($event) { i0.ɵɵrestoreView(_r15); const ctx_r1 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r1.selectedMinute, $event) || (ctx_r1.selectedMinute = $event); return i0.ɵɵresetView($event); });
|
|
245
|
+
i0.ɵɵlistener("input", function TzDpContainerComponent_div_16_Template_input_input_14_listener($event) { i0.ɵɵrestoreView(_r15); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onMinuteInput($event)); })("blur", function TzDpContainerComponent_div_16_Template_input_blur_14_listener() { i0.ɵɵrestoreView(_r15); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.validateMinuteInput()); });
|
|
246
|
+
i0.ɵɵelementEnd()();
|
|
247
|
+
i0.ɵɵtemplate(15, TzDpContainerComponent_div_16_div_15_Template, 8, 1, "div", 43);
|
|
248
|
+
i0.ɵɵelementEnd()();
|
|
249
|
+
} if (rf & 2) {
|
|
250
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
251
|
+
i0.ɵɵadvance(8);
|
|
252
|
+
i0.ɵɵproperty("min", ctx_r1.is12HourFormat() ? 1 : 0)("max", ctx_r1.is12HourFormat() ? 12 : 23)("step", 1);
|
|
253
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.selectedHour);
|
|
254
|
+
i0.ɵɵproperty("title", ctx_r1.is12HourFormat() ? "Enter hour (1-12)" : "Enter hour (0-23)");
|
|
255
|
+
i0.ɵɵadvance(6);
|
|
256
|
+
i0.ɵɵproperty("step", 1);
|
|
257
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.selectedMinute);
|
|
258
|
+
i0.ɵɵadvance();
|
|
259
|
+
i0.ɵɵproperty("ngIf", ctx_r1.is12HourFormat());
|
|
260
|
+
} }
|
|
261
|
+
function TzDpContainerComponent_div_17_Template(rf, ctx) { if (rf & 1) {
|
|
262
|
+
const _r17 = i0.ɵɵgetCurrentView();
|
|
263
|
+
i0.ɵɵelementStart(0, "div", 49)(1, "button", 50);
|
|
264
|
+
i0.ɵɵlistener("click", function TzDpContainerComponent_div_17_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r17); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.cancelDatePicker()); });
|
|
205
265
|
i0.ɵɵtext(2, "Cancel");
|
|
206
266
|
i0.ɵɵelementEnd();
|
|
207
|
-
i0.ɵɵelementStart(3, "button",
|
|
208
|
-
i0.ɵɵlistener("click", function
|
|
267
|
+
i0.ɵɵelementStart(3, "button", 51);
|
|
268
|
+
i0.ɵɵlistener("click", function TzDpContainerComponent_div_17_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r17); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.applyDate()); });
|
|
209
269
|
i0.ɵɵtext(4, "Apply");
|
|
210
270
|
i0.ɵɵelementEnd()();
|
|
211
271
|
} if (rf & 2) {
|
|
@@ -230,6 +290,10 @@ class TzDpContainerComponent {
|
|
|
230
290
|
this.isPreviousMonthDisabled = false;
|
|
231
291
|
this.isNextMonthDisabled = false;
|
|
232
292
|
this.allowBookingOnDisabledDay = false;
|
|
293
|
+
// Time functionality - only what's needed
|
|
294
|
+
this.selectedHour = 0;
|
|
295
|
+
this.selectedMinute = 0;
|
|
296
|
+
this.selectedAmPm = 'AM';
|
|
233
297
|
this.isSelectingMonth = false;
|
|
234
298
|
this.isSelectingYear = false;
|
|
235
299
|
this.availableYears = [];
|
|
@@ -238,11 +302,22 @@ class TzDpContainerComponent {
|
|
|
238
302
|
this.disabledYears = [];
|
|
239
303
|
this.isYearSelectionFlow = false;
|
|
240
304
|
this.data = data;
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
305
|
+
// Initialize parseZoneInstance with better error handling
|
|
306
|
+
this.parseZoneInstance = (...args) => {
|
|
307
|
+
try {
|
|
308
|
+
if (this.data?.dpConfig?.timezone) {
|
|
309
|
+
return dayjs.tz(args[0], args[1] || 'DD/MM/YYYY', this.data.dpConfig.timezone);
|
|
310
|
+
}
|
|
311
|
+
else {
|
|
312
|
+
return dayjs(...args);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
catch (error) {
|
|
316
|
+
// Silently handle timezone parsing error, fallback to local time
|
|
317
|
+
return dayjs(...args);
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
// Set default values safely
|
|
246
321
|
this.currentMonthNumber = this.parseZoneInstance().month();
|
|
247
322
|
this.currentMonth = getMonth(this.currentMonthNumber);
|
|
248
323
|
this.currentYearNumber = this.parseZoneInstance().year();
|
|
@@ -262,6 +337,59 @@ class TzDpContainerComponent {
|
|
|
262
337
|
this.availableMonths = Array.from({ length: 12 }, (_, i) => dayjs().month(i).format('MMMM'));
|
|
263
338
|
this.availableYears = Array.from({ length: 12 }, (_, index) => this.currentYearNumber - 6 + index);
|
|
264
339
|
}
|
|
340
|
+
onHourInput(event) {
|
|
341
|
+
if (this.data.dpConfig.enableTime !== true)
|
|
342
|
+
return;
|
|
343
|
+
const value = parseInt(event.target.value);
|
|
344
|
+
if (!isNaN(value)) {
|
|
345
|
+
if (this.is12HourFormat()) {
|
|
346
|
+
if (value >= 1 && value <= 12) {
|
|
347
|
+
this.selectedHour = value;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
else {
|
|
351
|
+
if (value >= 0 && value <= 23) {
|
|
352
|
+
this.selectedHour = value;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
onMinuteInput(event) {
|
|
358
|
+
if (this.data.dpConfig.enableTime !== true)
|
|
359
|
+
return;
|
|
360
|
+
const value = parseInt(event.target.value);
|
|
361
|
+
if (!isNaN(value) && value >= 0 && value <= 59) {
|
|
362
|
+
this.selectedMinute = value;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
validateHourInput() {
|
|
366
|
+
if (this.data.dpConfig.enableTime !== true)
|
|
367
|
+
return;
|
|
368
|
+
if (this.is12HourFormat()) {
|
|
369
|
+
if (this.selectedHour < 1)
|
|
370
|
+
this.selectedHour = 1;
|
|
371
|
+
if (this.selectedHour > 12)
|
|
372
|
+
this.selectedHour = 12;
|
|
373
|
+
}
|
|
374
|
+
else {
|
|
375
|
+
if (this.selectedHour < 0)
|
|
376
|
+
this.selectedHour = 0;
|
|
377
|
+
if (this.selectedHour > 23)
|
|
378
|
+
this.selectedHour = 23;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
validateMinuteInput() {
|
|
382
|
+
if (this.data.dpConfig.enableTime !== true)
|
|
383
|
+
return;
|
|
384
|
+
if (this.selectedMinute < 0)
|
|
385
|
+
this.selectedMinute = 0;
|
|
386
|
+
if (this.selectedMinute > 59)
|
|
387
|
+
this.selectedMinute = 59;
|
|
388
|
+
}
|
|
389
|
+
is12HourFormat() {
|
|
390
|
+
return this.data.dpConfig.enableTime === true &&
|
|
391
|
+
(this.data.dpConfig.format.includes('A') || this.data.dpConfig.format.includes('a'));
|
|
392
|
+
}
|
|
265
393
|
retractDayMonth(day, month, year) {
|
|
266
394
|
return `${day} ${month} ${year}`;
|
|
267
395
|
}
|
|
@@ -269,25 +397,133 @@ class TzDpContainerComponent {
|
|
|
269
397
|
this.currentDateInstance();
|
|
270
398
|
this.calculateMinMaxDays();
|
|
271
399
|
this.calculateDisabledMonthsAndYears();
|
|
400
|
+
this.generateDates(this.currentMonthNumber, this.currentYearNumber);
|
|
401
|
+
// Initialize time if enabled
|
|
402
|
+
if (this.data.dpConfig.enableTime === true) {
|
|
403
|
+
this.initializeTimeValues();
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
get yearRange() {
|
|
407
|
+
return `${this.selectedYear - 6} - ${this.selectedYear + 5}`;
|
|
408
|
+
}
|
|
409
|
+
initializeTimeValues() {
|
|
410
|
+
if (this.data.dpConfig.enableTime === true) {
|
|
411
|
+
if (this.data.date) {
|
|
412
|
+
// Try to parse existing date for time values
|
|
413
|
+
try {
|
|
414
|
+
const currentDate = this.parseZoneInstance(this.data.date, this.data.dpConfig.format);
|
|
415
|
+
if (currentDate.isValid()) {
|
|
416
|
+
let hour = currentDate.hour();
|
|
417
|
+
this.selectedMinute = currentDate.minute();
|
|
418
|
+
if (this.is12HourFormat()) {
|
|
419
|
+
if (hour === 0) {
|
|
420
|
+
hour = 12;
|
|
421
|
+
this.selectedAmPm = 'AM';
|
|
422
|
+
}
|
|
423
|
+
else if (hour > 12) {
|
|
424
|
+
hour = hour - 12;
|
|
425
|
+
this.selectedAmPm = 'PM';
|
|
426
|
+
}
|
|
427
|
+
else if (hour === 12) {
|
|
428
|
+
this.selectedAmPm = 'PM';
|
|
429
|
+
}
|
|
430
|
+
else {
|
|
431
|
+
this.selectedAmPm = 'AM';
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
this.selectedHour = hour;
|
|
435
|
+
}
|
|
436
|
+
else {
|
|
437
|
+
// Invalid date, use defaults
|
|
438
|
+
this.setDefaultTimeValues();
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
catch (error) {
|
|
442
|
+
// Parsing error, use defaults
|
|
443
|
+
this.setDefaultTimeValues();
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
else {
|
|
448
|
+
// No existing date, use defaults
|
|
449
|
+
this.setDefaultTimeValues();
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
setDefaultTimeValues() {
|
|
453
|
+
// Use current time as default instead of 12:00 PM
|
|
454
|
+
const now = dayjs();
|
|
455
|
+
const currentHour = now.hour();
|
|
456
|
+
const currentMinute = now.minute();
|
|
457
|
+
if (this.is12HourFormat()) {
|
|
458
|
+
// Convert current time to 12-hour format
|
|
459
|
+
let hour12 = currentHour;
|
|
460
|
+
let amPm = 'AM';
|
|
461
|
+
if (currentHour === 0) {
|
|
462
|
+
hour12 = 12;
|
|
463
|
+
amPm = 'AM';
|
|
464
|
+
}
|
|
465
|
+
else if (currentHour === 12) {
|
|
466
|
+
hour12 = 12;
|
|
467
|
+
amPm = 'PM';
|
|
468
|
+
}
|
|
469
|
+
else if (currentHour > 12) {
|
|
470
|
+
hour12 = currentHour - 12;
|
|
471
|
+
amPm = 'PM';
|
|
472
|
+
}
|
|
473
|
+
else {
|
|
474
|
+
amPm = 'AM';
|
|
475
|
+
}
|
|
476
|
+
this.selectedHour = hour12;
|
|
477
|
+
this.selectedMinute = currentMinute;
|
|
478
|
+
this.selectedAmPm = amPm;
|
|
479
|
+
}
|
|
480
|
+
else {
|
|
481
|
+
// Use current time directly for 24-hour format
|
|
482
|
+
this.selectedHour = currentHour;
|
|
483
|
+
this.selectedMinute = currentMinute;
|
|
484
|
+
this.selectedAmPm = 'AM'; // Not used in 24-hour format but keep consistent
|
|
485
|
+
}
|
|
272
486
|
}
|
|
273
487
|
currentDateInstance() {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
488
|
+
try {
|
|
489
|
+
if (this.data.date) {
|
|
490
|
+
const selectedDate = dayjs(this.data.date, this.data.dpConfig.format);
|
|
491
|
+
if (selectedDate.isValid()) {
|
|
492
|
+
this.selectedYear = this.currentYearNumber = selectedDate.year();
|
|
493
|
+
this.currentMonthNumber = selectedDate.month();
|
|
494
|
+
this.currentMonth = getMonth(this.currentMonthNumber);
|
|
495
|
+
if (!this.localSelectedDate) {
|
|
496
|
+
this.localSelectedDate = {
|
|
497
|
+
date: selectedDate.date(),
|
|
498
|
+
weekDay: selectedDate.day(),
|
|
499
|
+
month: selectedDate.month(),
|
|
500
|
+
year: selectedDate.year(),
|
|
501
|
+
isSelectedDay: true
|
|
502
|
+
};
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
catch (error) {
|
|
508
|
+
this.currentYearNumber = this.parseZoneInstance().year();
|
|
509
|
+
this.currentMonthNumber = this.parseZoneInstance().month();
|
|
278
510
|
this.currentMonth = getMonth(this.currentMonthNumber);
|
|
279
511
|
}
|
|
280
512
|
this.currentMonthDates = this.generateDates(this.currentMonthNumber, this.currentYearNumber);
|
|
281
513
|
}
|
|
282
514
|
calculateMinMaxDays() {
|
|
283
515
|
const currentInstance = this.parseZoneInstance().year(this.currentYearNumber).month(this.currentMonthNumber);
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
516
|
+
if (this.data.dpConfig.minDate) {
|
|
517
|
+
const minDate = this.parseZoneInstance(this.data.dpConfig.minDate, this.data.dpConfig.format);
|
|
518
|
+
if (minDate?.isValid()) {
|
|
519
|
+
this.isPreviousMonthDisabled = minDate.isSameOrAfter(currentInstance, "month");
|
|
520
|
+
}
|
|
287
521
|
}
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
522
|
+
if (this.data.dpConfig.maxDate) {
|
|
523
|
+
const maxDate = this.parseZoneInstance(this.data.dpConfig.maxDate, this.data.dpConfig.format);
|
|
524
|
+
if (maxDate?.isValid()) {
|
|
525
|
+
this.isNextMonthDisabled = maxDate.isSameOrBefore(currentInstance, "month");
|
|
526
|
+
}
|
|
291
527
|
}
|
|
292
528
|
}
|
|
293
529
|
calculateDisabledMonthsAndYears() {
|
|
@@ -308,9 +544,6 @@ class TzDpContainerComponent {
|
|
|
308
544
|
this.isNextMonthDisabled = maxDate.isValid() && ((this.selectedYear + 5) >= maxDate.year());
|
|
309
545
|
}
|
|
310
546
|
}
|
|
311
|
-
get yearRange() {
|
|
312
|
-
return `${this.selectedYear - 6} - ${this.selectedYear + 5}`;
|
|
313
|
-
}
|
|
314
547
|
navigateView(direction) {
|
|
315
548
|
if ((direction === 'NEXT' && (this.isNextMonthDisabled || this.isSelectingMonth)) ||
|
|
316
549
|
(direction === 'PREVIOUS' && (this.isPreviousMonthDisabled || this.isSelectingMonth))) {
|
|
@@ -321,7 +554,7 @@ class TzDpContainerComponent {
|
|
|
321
554
|
this.availableYears = Array.from({ length: 12 }, (_, index) => this.selectedYear - 6 + index);
|
|
322
555
|
}
|
|
323
556
|
else {
|
|
324
|
-
let thisMonth =
|
|
557
|
+
let thisMonth = this.parseZoneInstance().year(this.currentYearNumber).month(this.currentMonthNumber);
|
|
325
558
|
thisMonth = direction === "NEXT" ? thisMonth.add(1, "month") : thisMonth.subtract(1, "month");
|
|
326
559
|
this.currentMonthNumber = thisMonth.month();
|
|
327
560
|
this.currentMonth = getMonth(this.currentMonthNumber);
|
|
@@ -331,63 +564,239 @@ class TzDpContainerComponent {
|
|
|
331
564
|
this.calculateMinMaxDays();
|
|
332
565
|
this.calculateDisabledMonthsAndYears();
|
|
333
566
|
}
|
|
567
|
+
navigateMonth(direction) {
|
|
568
|
+
try {
|
|
569
|
+
let thisMonth = dayjs().year(this.currentYearNumber).month(this.currentMonthNumber);
|
|
570
|
+
if (direction === "NEXT") {
|
|
571
|
+
thisMonth = thisMonth.add(1, "month");
|
|
572
|
+
}
|
|
573
|
+
else if (direction === "PREVIOUS") {
|
|
574
|
+
thisMonth = thisMonth.subtract(1, "month");
|
|
575
|
+
}
|
|
576
|
+
this.currentMonthNumber = thisMonth.month();
|
|
577
|
+
this.currentMonth = getMonth(this.currentMonthNumber);
|
|
578
|
+
this.currentYearNumber = thisMonth.year();
|
|
579
|
+
this.currentMonthDates = this.generateDates(this.currentMonthNumber, this.currentYearNumber);
|
|
580
|
+
this.calculateMinMaxDays();
|
|
581
|
+
}
|
|
582
|
+
catch (error) {
|
|
583
|
+
// Silently handle navigateMonth error
|
|
584
|
+
}
|
|
585
|
+
}
|
|
334
586
|
generateDates(month, currentYearNumber) {
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
587
|
+
const dates = [];
|
|
588
|
+
try {
|
|
589
|
+
const daysInMonth = dayjs().year(currentYearNumber).month(month).daysInMonth();
|
|
590
|
+
let minDate = null;
|
|
591
|
+
let maxDate = null;
|
|
592
|
+
if (this.data.dpConfig.minDate) {
|
|
593
|
+
try {
|
|
594
|
+
minDate = this.parseZoneInstance(this.data.dpConfig.minDate, this.data.dpConfig.format);
|
|
595
|
+
}
|
|
596
|
+
catch (error) {
|
|
597
|
+
// Silently handle min date parsing error
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
if (this.data.dpConfig.maxDate) {
|
|
601
|
+
try {
|
|
602
|
+
maxDate = this.parseZoneInstance(this.data.dpConfig.maxDate, this.data.dpConfig.format);
|
|
603
|
+
}
|
|
604
|
+
catch (error) {
|
|
605
|
+
// Silently handle max date parsing error
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
for (let currentDate = 1; currentDate <= daysInMonth; currentDate++) {
|
|
609
|
+
try {
|
|
610
|
+
const date = this.parseZoneInstance().year(currentYearNumber).month(month).date(currentDate);
|
|
611
|
+
const dateString = date.format(this.data.dpConfig.format);
|
|
612
|
+
let isDisabledDay = this.data.datesDisabled?.some(d => d === dateString) || false;
|
|
613
|
+
if (!isDisabledDay && minDate?.isValid() && this.data.dpConfig.minDate) {
|
|
614
|
+
isDisabledDay = minDate.isAfter(date, "day");
|
|
615
|
+
}
|
|
616
|
+
if (!isDisabledDay && maxDate?.isValid() && this.data.dpConfig.maxDate) {
|
|
617
|
+
isDisabledDay = maxDate.isBefore(date, "day");
|
|
618
|
+
}
|
|
619
|
+
const currentDateInstance = this.parseZoneInstance().year(currentYearNumber).month(month).date(currentDate);
|
|
620
|
+
const isCurrentDay = currentDateInstance.format(this.data.dpConfig.format) === dayjs().format(this.data.dpConfig.format);
|
|
621
|
+
let isSelectedDay = false;
|
|
622
|
+
// Prioritize current selection over previously applied date
|
|
623
|
+
if (this.localSelectedDate &&
|
|
624
|
+
this.localSelectedDate.date === currentDate &&
|
|
625
|
+
this.localSelectedDate.month === month &&
|
|
626
|
+
this.localSelectedDate.year === currentYearNumber) {
|
|
627
|
+
isSelectedDay = true;
|
|
628
|
+
}
|
|
629
|
+
else if (this.data.date && !this.localSelectedDate) {
|
|
630
|
+
// Only check previously applied date if no current selection
|
|
631
|
+
try {
|
|
632
|
+
if (this.data.dpConfig.enableTime) {
|
|
633
|
+
const selectedDate = this.parseZoneInstance(this.data.date, this.data.dpConfig.format);
|
|
634
|
+
if (selectedDate.isValid()) {
|
|
635
|
+
isSelectedDay = selectedDate.isSame(currentDateInstance, 'day');
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
else {
|
|
639
|
+
// For date-only format, compare the date parts only
|
|
640
|
+
const selectedDate = this.parseZoneInstance(this.data.date, this.data.dpConfig.format);
|
|
641
|
+
if (selectedDate.isValid()) {
|
|
642
|
+
isSelectedDay = selectedDate.isSame(currentDateInstance, 'day');
|
|
643
|
+
}
|
|
644
|
+
else {
|
|
645
|
+
// Fallback to string comparison if parsing fails
|
|
646
|
+
isSelectedDay = dateString === this.data.date;
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
catch (error) {
|
|
651
|
+
// Silently handle date comparison error
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
dates.push({
|
|
655
|
+
date: currentDate,
|
|
656
|
+
weekDay: date.day(),
|
|
657
|
+
month: month,
|
|
658
|
+
year: currentYearNumber,
|
|
659
|
+
isCurrentDay,
|
|
660
|
+
isSelectedDay,
|
|
661
|
+
toastMessage: this.data.messages?.find(q => dateString === q.date)?.message || "",
|
|
662
|
+
isDisabledDay
|
|
663
|
+
});
|
|
664
|
+
}
|
|
665
|
+
catch (error) {
|
|
666
|
+
// Silently handle date processing error
|
|
667
|
+
dates.push({
|
|
668
|
+
date: currentDate,
|
|
669
|
+
weekDay: this.parseZoneInstance().year(currentYearNumber).month(month).date(currentDate).day(),
|
|
670
|
+
month: month,
|
|
671
|
+
year: currentYearNumber,
|
|
672
|
+
isDisabledDay: true
|
|
673
|
+
});
|
|
674
|
+
}
|
|
344
675
|
}
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
676
|
+
if (dates.length > 0) {
|
|
677
|
+
for (let i = dates[0].weekDay; i > 0; i--) {
|
|
678
|
+
dates.unshift({
|
|
679
|
+
date: 0,
|
|
680
|
+
weekDay: i - 1,
|
|
681
|
+
month: month,
|
|
682
|
+
year: currentYearNumber
|
|
683
|
+
});
|
|
684
|
+
}
|
|
348
685
|
}
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
isCurrentDay: this.parseZoneInstance().year(currentYearNumber).month(month).date(currentDate).format(this.data.dpConfig.format) ===
|
|
353
|
-
this.parseZoneInstance().format(this.data.dpConfig.format),
|
|
354
|
-
isSelectedDay: !isDisabledDay && date.format(this.data.dpConfig.format) === this.data.date,
|
|
355
|
-
toastMessage: this.data.messages.find(q => date.format(this.data.dpConfig.format) === q.date)?.message || "",
|
|
356
|
-
isDisabledDay
|
|
357
|
-
});
|
|
358
|
-
}
|
|
359
|
-
for (let i = dates[0].weekDay; i > 0; i--) {
|
|
360
|
-
dates.unshift({ date: 0, weekDay: i - 1 });
|
|
686
|
+
}
|
|
687
|
+
catch (error) {
|
|
688
|
+
// Silently handle generateDates error
|
|
361
689
|
}
|
|
362
690
|
return dates;
|
|
363
691
|
}
|
|
364
692
|
selectDay(day) {
|
|
365
|
-
this.currentSelection = this.parseZoneInstance().year(this.currentYearNumber).month(this.currentMonthNumber).date(day.date);
|
|
366
|
-
const maxDate = !!this.data.dpConfig.maxDate ? this.parseZoneInstance(this.data.dpConfig.maxDate, this.data.dpConfig.format).endOf("day") : dayjs('invalid');
|
|
367
|
-
const minDate = !!this.data.dpConfig.maxDate ? this.parseZoneInstance(this.data.dpConfig.minDate, this.data.dpConfig.format).startOf("day") : dayjs('invalid');
|
|
368
|
-
this.allowBookingOnDisabledDay = this.data.allowBookingOnDisabledDay;
|
|
369
693
|
if (day.date <= 0)
|
|
370
694
|
return;
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
695
|
+
try {
|
|
696
|
+
// Create the base date selection without time
|
|
697
|
+
this.currentSelection = this.parseZoneInstance().year(this.currentYearNumber).month(this.currentMonthNumber).date(day.date).hour(0).minute(0).second(0).millisecond(0);
|
|
698
|
+
// Apply the current time values to the selection
|
|
699
|
+
if (this.data.dpConfig.enableTime === true) {
|
|
700
|
+
let hour = this.selectedHour;
|
|
701
|
+
if (this.is12HourFormat()) {
|
|
702
|
+
if (this.selectedAmPm === 'PM' && hour !== 12) {
|
|
703
|
+
hour += 12;
|
|
704
|
+
}
|
|
705
|
+
else if (this.selectedAmPm === 'AM' && hour === 12) {
|
|
706
|
+
hour = 0;
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
this.currentSelection = this.currentSelection
|
|
710
|
+
.hour(hour)
|
|
711
|
+
.minute(this.selectedMinute);
|
|
712
|
+
}
|
|
713
|
+
let maxDate = null;
|
|
714
|
+
let minDate = null;
|
|
715
|
+
if (this.data.dpConfig.maxDate) {
|
|
716
|
+
try {
|
|
717
|
+
maxDate = this.parseZoneInstance(this.data.dpConfig.maxDate, this.data.dpConfig.format).endOf("day");
|
|
718
|
+
}
|
|
719
|
+
catch (error) {
|
|
720
|
+
// Silently handle max date parsing error
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
if (this.data.dpConfig.minDate) {
|
|
724
|
+
try {
|
|
725
|
+
minDate = this.parseZoneInstance(this.data.dpConfig.minDate, this.data.dpConfig.format).startOf("day");
|
|
726
|
+
}
|
|
727
|
+
catch (error) {
|
|
728
|
+
// Silently handle min date parsing error
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
this.allowBookingOnDisabledDay = this.data.allowBookingOnDisabledDay;
|
|
732
|
+
if (((!minDate || this.currentSelection.isSameOrAfter(minDate)) && (!maxDate || this.currentSelection.isSameOrBefore(maxDate)) && this.allowBookingOnDisabledDay) || (!day.isDisabledDay && !this.allowBookingOnDisabledDay)) {
|
|
733
|
+
this.localSelectedDate = {
|
|
734
|
+
...day,
|
|
735
|
+
month: this.currentMonthNumber,
|
|
736
|
+
year: this.currentYearNumber
|
|
737
|
+
};
|
|
738
|
+
// Force calendar re-render to show highlighting
|
|
739
|
+
this.currentMonthDates = this.generateDates(this.currentMonthNumber, this.currentYearNumber);
|
|
740
|
+
// Automatically show apply button when time is enabled, otherwise apply immediately
|
|
741
|
+
if (!this.data.dpConfig.enableTime) {
|
|
742
|
+
this.applyDate(day);
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
if (day.toastMessage || (this.allowBookingOnDisabledDay && day.toastMessage)) {
|
|
746
|
+
this.toast.displayMsg(day.toastMessage, 4000);
|
|
375
747
|
}
|
|
376
748
|
}
|
|
377
|
-
|
|
378
|
-
|
|
749
|
+
catch (error) {
|
|
750
|
+
// Silently handle selectDay error
|
|
379
751
|
}
|
|
380
752
|
}
|
|
381
753
|
applyDate(day) {
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
754
|
+
let date;
|
|
755
|
+
try {
|
|
756
|
+
if (this.data.dpConfig.enableTime === true) {
|
|
757
|
+
// Always use time input values when time is enabled, regardless of currentSelection
|
|
758
|
+
let hour = this.selectedHour;
|
|
759
|
+
if (this.is12HourFormat()) {
|
|
760
|
+
if (this.selectedAmPm === 'PM' && hour !== 12) {
|
|
761
|
+
hour += 12;
|
|
762
|
+
}
|
|
763
|
+
else if (this.selectedAmPm === 'AM' && hour === 12) {
|
|
764
|
+
hour = 0;
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
// Create a new date instance with the selected time
|
|
768
|
+
const finalSelection = dayjs()
|
|
769
|
+
.year(this.currentYearNumber)
|
|
770
|
+
.month(this.currentMonthNumber)
|
|
771
|
+
.date(this.localSelectedDate?.date || day?.date || dayjs().date())
|
|
772
|
+
.hour(hour)
|
|
773
|
+
.minute(this.selectedMinute)
|
|
774
|
+
.second(0)
|
|
775
|
+
.millisecond(0);
|
|
776
|
+
date = finalSelection.format(this.data.dpConfig.format);
|
|
777
|
+
}
|
|
778
|
+
else {
|
|
779
|
+
// Date-only format - no time
|
|
780
|
+
date = dayjs()
|
|
781
|
+
.year(this.currentYearNumber)
|
|
782
|
+
.month(this.currentMonthNumber)
|
|
783
|
+
.date(day ? day.date : this.localSelectedDate?.date || dayjs().date())
|
|
784
|
+
.hour(0)
|
|
785
|
+
.minute(0)
|
|
786
|
+
.second(0)
|
|
787
|
+
.millisecond(0)
|
|
788
|
+
.format(this.data.dpConfig.format);
|
|
789
|
+
}
|
|
790
|
+
if (day || this.localSelectedDate || (this.data.dpConfig.enableTime === true)) {
|
|
791
|
+
this.data.dateChange(date);
|
|
792
|
+
}
|
|
793
|
+
else {
|
|
794
|
+
this.cancelDatePicker();
|
|
795
|
+
}
|
|
388
796
|
}
|
|
389
|
-
|
|
390
|
-
|
|
797
|
+
catch (error) {
|
|
798
|
+
// Silently handle applyDate error
|
|
799
|
+
this.data.dateChange("");
|
|
391
800
|
}
|
|
392
801
|
}
|
|
393
802
|
closeOnEsc() {
|
|
@@ -441,7 +850,7 @@ class TzDpContainerComponent {
|
|
|
441
850
|
static { this.ɵfac = function TzDpContainerComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TzDpContainerComponent)(i0.ɵɵdirectiveInject(CONTAINER_DATA), i0.ɵɵdirectiveInject(i1.ToastService)); }; }
|
|
442
851
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TzDpContainerComponent, selectors: [["mis-tz-dp"]], hostBindings: function TzDpContainerComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
443
852
|
i0.ɵɵlistener("keydown.esc", function TzDpContainerComponent_keydown_esc_HostBindingHandler() { return ctx.closeOnEsc(); });
|
|
444
|
-
} }, decls:
|
|
853
|
+
} }, decls: 18, vars: 16, consts: [["aria-label", "date picker", "cdkTrapFocus", "", 1, "datepicker-container", 3, "ngClass", "cdkTrapFocusAutoCapture"], ["tabindex", "-1", "cdkFocusInitial", ""], [1, "datepicker-container__header"], ["tabindex", "0", "aria-label", "Previous Month", 1, "datepicker-container__arrow__icon", 3, "click", "keyup.enter", "ngClass"], ["width", "20", "height", "16", "viewBox", "0 0 20 16", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M19.7071 8.70711C20.0976 8.31658 20.0976 7.68342 19.7071 7.29289L13.3431 0.928933C12.9526 0.538409 12.3195 0.538409 11.9289 0.928933C11.5384 1.31946 11.5384 1.95262 11.9289 2.34315L17.5858 8L11.9289 13.6569C11.5384 14.0474 11.5384 14.6805 11.9289 15.0711C12.3195 15.4616 12.9526 15.4616 13.3431 15.0711L19.7071 8.70711ZM-8.74228e-08 9L19 9L19 7L8.74228e-08 7L-8.74228e-08 9Z", "fill", "#181F33"], ["class", "month-header", 3, "click", 4, "ngIf"], ["class", "year-header", 3, "click", 4, "ngIf"], ["tabindex", "0", "aria-label", "Next Month", 1, "datepicker-container__arrow__icon", 3, "click", "keyup.enter", "ngClass"], [1, "datepicker-container__body"], ["class", "month-selector", 4, "ngIf"], ["class", "year-selector", 4, "ngIf"], ["class", "datepicker-container__weekdays", 4, "ngIf"], ["class", "datepicker-container__days", 4, "ngIf"], ["class", "datepicker-container__time", 4, "ngIf"], ["class", "datepicker-container__footer", 4, "ngIf"], [1, "month-header", 3, "click"], [1, "year-header", 3, "click"], [1, "month-selector"], [1, "row"], ["class", "month", 3, "ngClass", "click", 4, "ngFor", "ngForOf"], [1, "month", 3, "click", "ngClass"], [1, "year-selector"], ["class", "year", 3, "ngClass", "click", 4, "ngFor", "ngForOf"], [1, "year", 3, "click", "ngClass"], [1, "datepicker-container__weekdays"], ["class", "datepicker-container__weekday", 4, "ngFor", "ngForOf"], [1, "datepicker-container__weekday"], [3, "ngClass"], [1, "datepicker-container__days"], ["class", "datepicker-container__day", 3, "ngClass", "click", "keyup.enter", 4, "ngFor", "ngForOf"], [1, "datepicker-container__day", 3, "click", "keyup.enter", "ngClass"], [3, "tabindex", "ngClass", 4, "ngIf"], [3, "tabindex", "ngClass"], [1, "datepicker-container__time"], [1, "time-picker-header"], [1, "time-picker-controls"], [1, "time-input-group"], ["for", "hourInput"], ["id", "hourInput", "type", "number", 1, "time-input", 3, "ngModelChange", "input", "blur", "min", "max", "step", "ngModel", "title"], [1, "time-separator"], ["for", "minuteInput"], ["id", "minuteInput", "type", "number", "min", "0", "max", "59", "title", "Enter minute (0-59)", 1, "time-input", 3, "ngModelChange", "input", "blur", "step", "ngModel"], ["class", "am-pm-selector", 4, "ngIf"], [1, "am-pm-selector"], ["for", "amPmSelect"], ["id", "amPmSelect", 1, "am-pm-select", 3, "ngModelChange", "ngModel"], ["value", "AM"], ["value", "PM"], [1, "datepicker-container__footer"], ["mis-button", "", "size", "md", "type", "'none'", 3, "click"], ["mis-button", "", "size", "md", "type", "primary", 3, "click", "disabled"]], template: function TzDpContainerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
445
854
|
i0.ɵɵelementStart(0, "div", 0);
|
|
446
855
|
i0.ɵɵelement(1, "div", 1);
|
|
447
856
|
i0.ɵɵelementStart(2, "div", 2)(3, "div", 3);
|
|
@@ -462,18 +871,18 @@ class TzDpContainerComponent {
|
|
|
462
871
|
i0.ɵɵelementStart(11, "div", 9);
|
|
463
872
|
i0.ɵɵtemplate(12, TzDpContainerComponent_div_12_Template, 3, 1, "div", 10)(13, TzDpContainerComponent_div_13_Template, 3, 1, "div", 11)(14, TzDpContainerComponent_div_14_Template, 2, 1, "div", 12)(15, TzDpContainerComponent_div_15_Template, 2, 1, "div", 13);
|
|
464
873
|
i0.ɵɵelementEnd();
|
|
465
|
-
i0.ɵɵtemplate(16, TzDpContainerComponent_div_16_Template, 5, 1, "div",
|
|
874
|
+
i0.ɵɵtemplate(16, TzDpContainerComponent_div_16_Template, 16, 8, "div", 14)(17, TzDpContainerComponent_div_17_Template, 5, 1, "div", 15);
|
|
466
875
|
i0.ɵɵelementEnd();
|
|
467
876
|
} if (rf & 2) {
|
|
468
877
|
i0.ɵɵproperty("ngClass", ctx.data.disableBoxShadow ? "remove-box-shadow" : "")("cdkTrapFocusAutoCapture", true);
|
|
469
878
|
i0.ɵɵadvance(3);
|
|
470
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
879
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c0, ctx.isPreviousMonthDisabled || ctx.isSelectingMonth));
|
|
471
880
|
i0.ɵɵadvance(3);
|
|
472
881
|
i0.ɵɵproperty("ngIf", !ctx.isSelectingYear);
|
|
473
882
|
i0.ɵɵadvance();
|
|
474
883
|
i0.ɵɵproperty("ngIf", !ctx.isSelectingMonth);
|
|
475
884
|
i0.ɵɵadvance();
|
|
476
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
885
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(14, _c0, ctx.isNextMonthDisabled || ctx.isSelectingMonth));
|
|
477
886
|
i0.ɵɵadvance(4);
|
|
478
887
|
i0.ɵɵproperty("ngIf", ctx.isSelectingMonth && !ctx.isSelectingYear);
|
|
479
888
|
i0.ɵɵadvance();
|
|
@@ -483,12 +892,14 @@ class TzDpContainerComponent {
|
|
|
483
892
|
i0.ɵɵadvance();
|
|
484
893
|
i0.ɵɵproperty("ngIf", !ctx.isSelectingMonth && !ctx.isSelectingYear);
|
|
485
894
|
i0.ɵɵadvance();
|
|
486
|
-
i0.ɵɵproperty("ngIf", ctx.data.dpConfig.
|
|
487
|
-
} }, dependencies: [i2.NgClass, i2.NgForOf, i2.NgIf, i3.ButtonDirective, i4.CdkTrapFocus], styles: [".h1[_ngcontent-%COMP%]{font-size:40px;font-weight:400;letter-spacing:0px;line-height:48px}.h2[_ngcontent-%COMP%]{font-size:32px;font-weight:400;letter-spacing:0px;line-height:40px}.h3[_ngcontent-%COMP%]{font-size:28px;font-weight:400;letter-spacing:0px;line-height:36px}.h4[_ngcontent-%COMP%]{font-size:24px;font-weight:400;letter-spacing:0px;line-height:32px}.h5-b[_ngcontent-%COMP%]{font-size:20px;font-weight:700;letter-spacing:.25px;line-height:28px}.h5[_ngcontent-%COMP%]{font-size:20px;font-weight:400;letter-spacing:.15px;line-height:28px}.h6-b[_ngcontent-%COMP%]{font-size:16px;font-weight:700;letter-spacing:0px;line-height:24px}.h6[_ngcontent-%COMP%]{font-size:16px;font-weight:400;letter-spacing:0px;line-height:24px}.p[_ngcontent-%COMP%]{font-size:16px;font-weight:400;letter-spacing:0px;line-height:180%}.h7-b[_ngcontent-%COMP%]{font-size:14px;font-weight:700;letter-spacing:.25px;line-height:20px}.h7[_ngcontent-%COMP%], .datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .month[_ngcontent-%COMP%], .datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .year[_ngcontent-%COMP%]{font-size:14px;font-weight:400;letter-spacing:.2px;line-height:20px}.h8-b[_ngcontent-%COMP%]{font-size:12px;font-weight:700;letter-spacing:.25px;line-height:18px}.h8[_ngcontent-%COMP%]{font-size:12px;font-weight:400;letter-spacing:.2px;line-height:18px}.h9[_ngcontent-%COMP%]{font-size:10px;font-weight:400;letter-spacing:0px;line-height:15px}.btn-lg-b[_ngcontent-%COMP%]{font-size:16px;font-weight:700;letter-spacing:.5px;line-height:24px}.btn-lg[_ngcontent-%COMP%]{font-size:16px;font-weight:400;letter-spacing:.2px;line-height:24px}.btn-sm[_ngcontent-%COMP%]{font-size:14px;font-weight:400;letter-spacing:.25px;line-height:20px}.btn-link[_ngcontent-%COMP%]{font-size:16px;font-weight:400;letter-spacing:0px;line-height:24px}.display-1[_ngcontent-%COMP%]{font-size:48px;font-weight:400;letter-spacing:0px;line-height:56px}.display-2[_ngcontent-%COMP%]{font-size:14px;font-weight:400;letter-spacing:.5px;line-height:20px}[_ngcontent-%COMP%]:root{--pmry-200: #99BAF7;--pmry-100: #CBDDFB;--pmry-500: #0937B2;--pmry-400: #3C68D0;--pmry-600: #062A99;--pmry-700: #041F80;--pmry-300: #638FE7;--pmry-800: #021567;--pmry-900: #010F55;--sec-d-purple: #40447F;--sec-maroon: #6B034E;--sec-mud-red: #B23600;--sec-orange: #ED711C;--sec-purple: #815FD5;--sec-teal: #10ADAE;--sec-yellow: #D4900C;--sec-green: #547F40;--sec-bright-green: #27D22E;--sec-dark-teal: #035F6B;--sec-chocolate: #7C2F33;--sec-rube-pink: #C13D6D;--sec-cerulean: #0087B2;--sem-error: #B00020;--sem-info: #0091FF;--sem-warning: #FF9D00;--sem-success: #38AF49;--grey-bg-1: #FAFAFA;--grey-bg: #F5F5F5;--grey-seperators: #E0E0E0;--grey-disabled: #C8CDD3;--grey-hover: #F5F7FC;--grey-pressed: #E6EBF7;--grey-row: #F5F7FC;--dec-light-yellow: #F4E7C3;--dec-light-purple: #DACFF9;--dec-light-green: #E4F5E9;--dec-light-green2: #F1FFF3;--dec-light-pink: #FAE1EA;--dec-: #F4CBC1;--dec-lt-orange: #FAEFED;--dec-light-blue: #CFECF9;--dec-row-selection: #F1FDF8;--dec-row-selection2: #F2FBFF;--dec-row-lines: #D3E1E9;--text-white: #FFFFFF;--text-disabled: #929DAB;--text-muted: #6A737D;--text-black: #181F33;--MR-solid-blue2:#C8D5F6;--MR-solid-purple:#C9C3FB;--MR-solid-orange:#EEAC9F;--MR-solid-green:#ACDADA;--MR-solid-brown:#E8C8AF;--MR-solid-yellow:#FFEFC7;--MR-solid-blue:#BBE6FF;--MR-solid-pink:#FFC6F2;--tr-hover:#F0F3FA;--tr-pressed:#DAE1F3}.datepicker-container[_ngcontent-%COMP%]{background:#fff;border:1px solid #e0e0e0;box-shadow:0 12px 24px #0000001f,0 4px 8px #0000001f;border-radius:12px;display:flex;flex-direction:column;font-family:Lato;-webkit-user-select:none;user-select:none;box-sizing:border-box;width:290px}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__header[_ngcontent-%COMP%]{display:flex;height:32px;margin:16px;justify-content:space-between;align-items:center;width:258px}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__header[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:16px;font-style:normal;font-weight:700;line-height:24px;letter-spacing:.2px;text-align:center}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__header[_ngcontent-%COMP%] .month-header[_ngcontent-%COMP%], .datepicker-container[_ngcontent-%COMP%] .datepicker-container__header[_ngcontent-%COMP%] .year-header[_ngcontent-%COMP%]{padding:8px;border-radius:10px}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__header[_ngcontent-%COMP%] .month-header[_ngcontent-%COMP%]:hover, .datepicker-container[_ngcontent-%COMP%] .datepicker-container__header[_ngcontent-%COMP%] .year-header[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#e6ebf7}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__header[_ngcontent-%COMP%] .datepicker-container__arrow__icon[_ngcontent-%COMP%]{height:20px;width:20px;display:flex;align-items:center;justify-content:center;border-radius:4px;padding:4px}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__header[_ngcontent-%COMP%] .datepicker-container__arrow__icon.disabled-month[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__header[_ngcontent-%COMP%] .datepicker-container__arrow__icon[_ngcontent-%COMP%]:not(.disabled-month):hover{cursor:pointer;background-color:#cbddfb}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__header[_ngcontent-%COMP%] .datepicker-container__arrow__icon[_ngcontent-%COMP%]:nth-child(1){transform:rotate(180deg)}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%]{width:258px;height:100%;margin:0 16px 16px}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:10px}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .month[_ngcontent-%COMP%], .datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .year[_ngcontent-%COMP%]{padding:10px 6px;cursor:pointer;border-radius:5px;text-align:center;background-color:#fff}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .month[_ngcontent-%COMP%]:hover, .datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .year[_ngcontent-%COMP%]:hover{background-color:#cbddfb}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .disable-month[_ngcontent-%COMP%], .datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .disable-year[_ngcontent-%COMP%]{cursor:default;color:#c8cdd3}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .disable-month[_ngcontent-%COMP%]:hover, .datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .disable-year[_ngcontent-%COMP%]:hover{background-color:transparent}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .select-month[_ngcontent-%COMP%], .datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .select-year[_ngcontent-%COMP%]{background-color:#0937b2;color:#fff}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .select-month[_ngcontent-%COMP%]:hover, .datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .select-year[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#cbddfb}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .datepicker-container__weekdays[_ngcontent-%COMP%]{width:100%;display:flex;padding-bottom:10px}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .datepicker-container__weekdays[_ngcontent-%COMP%] .datepicker-container__weekday[_ngcontent-%COMP%]{width:36px;height:18px;text-align:center}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .datepicker-container__weekdays[_ngcontent-%COMP%] .datepicker-container__weekday[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:12px;font-style:normal;font-weight:400;line-height:18px;letter-spacing:.2px;text-align:center;color:#c7c7c7}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .datepicker-container__weekdays[_ngcontent-%COMP%] .datepicker-container__weekday[_ngcontent-%COMP%] span.current-day[_ngcontent-%COMP%]{font-weight:700;letter-spacing:.25px;color:#181f33}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .datepicker-container__days[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:2px}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .datepicker-container__days[_ngcontent-%COMP%] .datepicker-container__day[_ngcontent-%COMP%]{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:4px}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .datepicker-container__days[_ngcontent-%COMP%] .datepicker-container__day.selected-day[_ngcontent-%COMP%]{background-color:#0937b2;cursor:pointer}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .datepicker-container__days[_ngcontent-%COMP%] .datepicker-container__day.disabled-day[_ngcontent-%COMP%]{cursor:default}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .datepicker-container__days[_ngcontent-%COMP%] .datepicker-container__day.disabled-day[_ngcontent-%COMP%]:hover{background-color:transparent}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .datepicker-container__days[_ngcontent-%COMP%] .datepicker-container__day.is-valid-date[_ngcontent-%COMP%]:not(.disabled-day):not(.selected-day):hover{background-color:#cbddfb;cursor:pointer}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .datepicker-container__days[_ngcontent-%COMP%] .datepicker-container__day.is-valid-date[_ngcontent-%COMP%]:not(.disabled-day):not(.selected-day):hover span.selected-day[_ngcontent-%COMP%]{color:#181f33!important}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .datepicker-container__days[_ngcontent-%COMP%] .datepicker-container__day[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px;font-style:normal;font-weight:400;line-height:20px;letter-spacing:.2px;text-align:center;color:#181f33}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .datepicker-container__days[_ngcontent-%COMP%] .datepicker-container__day[_ngcontent-%COMP%] span.current-day[_ngcontent-%COMP%]{font-weight:700;letter-spacing:.25px}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .datepicker-container__days[_ngcontent-%COMP%] .datepicker-container__day[_ngcontent-%COMP%] span.selected-day[_ngcontent-%COMP%]{color:#fff}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .datepicker-container__days[_ngcontent-%COMP%] .datepicker-container__day[_ngcontent-%COMP%] span.disabled-day[_ngcontent-%COMP%]{color:#c7c7c7}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:8px;bottom:0;align-items:center;position:sticky;padding:16px;border-top:1px solid #e0e0e0}.remove-box-shadow[_ngcontent-%COMP%]{box-shadow:none!important;border:none!important;border-radius:0!important}"] }); }
|
|
895
|
+
i0.ɵɵproperty("ngIf", ctx.data.dpConfig.enableTime === true);
|
|
896
|
+
i0.ɵɵadvance();
|
|
897
|
+
i0.ɵɵproperty("ngIf", ctx.data.dpConfig.showApplyButton || ctx.data.dpConfig.enableTime);
|
|
898
|
+
} }, dependencies: [i2.NgClass, i2.NgForOf, i2.NgIf, i3.NgSelectOption, i3.ɵNgSelectMultipleOption, i3.DefaultValueAccessor, i3.NumberValueAccessor, i3.SelectControlValueAccessor, i3.NgControlStatus, i3.MinValidator, i3.MaxValidator, i3.NgModel, i4.ButtonDirective, i5.CdkTrapFocus], styles: [".h1[_ngcontent-%COMP%]{font-size:40px;font-weight:400;letter-spacing:0px;line-height:48px}.h2[_ngcontent-%COMP%]{font-size:32px;font-weight:400;letter-spacing:0px;line-height:40px}.h3[_ngcontent-%COMP%]{font-size:28px;font-weight:400;letter-spacing:0px;line-height:36px}.h4[_ngcontent-%COMP%]{font-size:24px;font-weight:400;letter-spacing:0px;line-height:32px}.h5-b[_ngcontent-%COMP%]{font-size:20px;font-weight:700;letter-spacing:.25px;line-height:28px}.h5[_ngcontent-%COMP%]{font-size:20px;font-weight:400;letter-spacing:.15px;line-height:28px}.h6-b[_ngcontent-%COMP%]{font-size:16px;font-weight:700;letter-spacing:0px;line-height:24px}.h6[_ngcontent-%COMP%]{font-size:16px;font-weight:400;letter-spacing:0px;line-height:24px}.p[_ngcontent-%COMP%]{font-size:16px;font-weight:400;letter-spacing:0px;line-height:180%}.h7-b[_ngcontent-%COMP%]{font-size:14px;font-weight:700;letter-spacing:.25px;line-height:20px}.h7[_ngcontent-%COMP%], .datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .month[_ngcontent-%COMP%], .datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .year[_ngcontent-%COMP%]{font-size:14px;font-weight:400;letter-spacing:.2px;line-height:20px}.h8-b[_ngcontent-%COMP%]{font-size:12px;font-weight:700;letter-spacing:.25px;line-height:18px}.h8[_ngcontent-%COMP%]{font-size:12px;font-weight:400;letter-spacing:.2px;line-height:18px}.h9[_ngcontent-%COMP%]{font-size:10px;font-weight:400;letter-spacing:0px;line-height:15px}.btn-lg-b[_ngcontent-%COMP%]{font-size:16px;font-weight:700;letter-spacing:.5px;line-height:24px}.btn-lg[_ngcontent-%COMP%]{font-size:16px;font-weight:400;letter-spacing:.2px;line-height:24px}.btn-sm[_ngcontent-%COMP%]{font-size:14px;font-weight:400;letter-spacing:.25px;line-height:20px}.btn-link[_ngcontent-%COMP%]{font-size:16px;font-weight:400;letter-spacing:0px;line-height:24px}.display-1[_ngcontent-%COMP%]{font-size:48px;font-weight:400;letter-spacing:0px;line-height:56px}.display-2[_ngcontent-%COMP%]{font-size:14px;font-weight:400;letter-spacing:.5px;line-height:20px}[_ngcontent-%COMP%]:root{--pmry-200: #99BAF7;--pmry-100: #CBDDFB;--pmry-500: #0937B2;--pmry-400: #3C68D0;--pmry-600: #062A99;--pmry-700: #041F80;--pmry-300: #638FE7;--pmry-800: #021567;--pmry-900: #010F55;--sec-d-purple: #40447F;--sec-maroon: #6B034E;--sec-mud-red: #B23600;--sec-orange: #ED711C;--sec-purple: #815FD5;--sec-teal: #10ADAE;--sec-yellow: #D4900C;--sec-green: #547F40;--sec-bright-green: #27D22E;--sec-dark-teal: #035F6B;--sec-chocolate: #7C2F33;--sec-rube-pink: #C13D6D;--sec-cerulean: #0087B2;--sem-error: #B00020;--sem-info: #0091FF;--sem-warning: #FF9D00;--sem-success: #38AF49;--grey-bg-1: #FAFAFA;--grey-bg: #F5F5F5;--grey-seperators: #E0E0E0;--grey-disabled: #C8CDD3;--grey-hover: #F5F7FC;--grey-pressed: #E6EBF7;--grey-row: #F5F7FC;--dec-light-yellow: #F4E7C3;--dec-light-purple: #DACFF9;--dec-light-green: #E4F5E9;--dec-light-green2: #F1FFF3;--dec-light-pink: #FAE1EA;--dec-: #F4CBC1;--dec-lt-orange: #FAEFED;--dec-light-blue: #CFECF9;--dec-row-selection: #F1FDF8;--dec-row-selection2: #F2FBFF;--dec-row-lines: #D3E1E9;--text-white: #FFFFFF;--text-disabled: #929DAB;--text-muted: #6A737D;--text-black: #181F33;--MR-solid-blue2:#C8D5F6;--MR-solid-purple:#C9C3FB;--MR-solid-orange:#EEAC9F;--MR-solid-green:#ACDADA;--MR-solid-brown:#E8C8AF;--MR-solid-yellow:#FFEFC7;--MR-solid-blue:#BBE6FF;--MR-solid-pink:#FFC6F2;--tr-hover:#F0F3FA;--tr-pressed:#DAE1F3}.datepicker-container[_ngcontent-%COMP%]{background:#fff;border:1px solid #e0e0e0;box-shadow:0 12px 24px #0000001f,0 4px 8px #0000001f;border-radius:12px;display:flex;flex-direction:column;font-family:Lato;-webkit-user-select:none;user-select:none;box-sizing:border-box;width:290px}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__header[_ngcontent-%COMP%]{display:flex;height:32px;margin:16px;justify-content:space-between;align-items:center;width:258px}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__header[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:16px;font-style:normal;font-weight:700;line-height:24px;letter-spacing:.2px;text-align:center}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__header[_ngcontent-%COMP%] .month-header[_ngcontent-%COMP%], .datepicker-container[_ngcontent-%COMP%] .datepicker-container__header[_ngcontent-%COMP%] .year-header[_ngcontent-%COMP%]{padding:8px;border-radius:10px}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__header[_ngcontent-%COMP%] .month-header[_ngcontent-%COMP%]:hover, .datepicker-container[_ngcontent-%COMP%] .datepicker-container__header[_ngcontent-%COMP%] .year-header[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#e6ebf7}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__header[_ngcontent-%COMP%] .datepicker-container__arrow__icon[_ngcontent-%COMP%]{height:20px;width:20px;display:flex;align-items:center;justify-content:center;border-radius:4px;padding:4px}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__header[_ngcontent-%COMP%] .datepicker-container__arrow__icon.disabled-month[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__header[_ngcontent-%COMP%] .datepicker-container__arrow__icon[_ngcontent-%COMP%]:not(.disabled-month):hover{cursor:pointer;background-color:#cbddfb}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__header[_ngcontent-%COMP%] .datepicker-container__arrow__icon[_ngcontent-%COMP%]:nth-child(1){transform:rotate(180deg)}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%]{width:258px;height:100%;margin:0 16px 16px}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:10px}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .month[_ngcontent-%COMP%], .datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .year[_ngcontent-%COMP%]{padding:10px 6px;cursor:pointer;border-radius:5px;text-align:center;background-color:#fff}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .month[_ngcontent-%COMP%]:hover, .datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .year[_ngcontent-%COMP%]:hover{background-color:#cbddfb}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .disable-month[_ngcontent-%COMP%], .datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .disable-year[_ngcontent-%COMP%]{cursor:default;color:#c8cdd3}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .disable-month[_ngcontent-%COMP%]:hover, .datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .disable-year[_ngcontent-%COMP%]:hover{background-color:transparent}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .select-month[_ngcontent-%COMP%], .datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .select-year[_ngcontent-%COMP%]{background-color:#0937b2;color:#fff}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .select-month[_ngcontent-%COMP%]:hover, .datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .select-year[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#cbddfb}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .datepicker-container__weekdays[_ngcontent-%COMP%]{width:100%;display:flex;padding-bottom:10px}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .datepicker-container__weekdays[_ngcontent-%COMP%] .datepicker-container__weekday[_ngcontent-%COMP%]{width:36px;height:18px;text-align:center}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .datepicker-container__weekdays[_ngcontent-%COMP%] .datepicker-container__weekday[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:12px;font-style:normal;font-weight:400;line-height:18px;letter-spacing:.2px;text-align:center;color:#c7c7c7}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .datepicker-container__weekdays[_ngcontent-%COMP%] .datepicker-container__weekday[_ngcontent-%COMP%] span.current-day[_ngcontent-%COMP%]{font-weight:700;letter-spacing:.25px;color:#181f33}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .datepicker-container__days[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:2px}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .datepicker-container__days[_ngcontent-%COMP%] .datepicker-container__day[_ngcontent-%COMP%]{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:4px}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .datepicker-container__days[_ngcontent-%COMP%] .datepicker-container__day.selected-day[_ngcontent-%COMP%]{background-color:#0937b2;cursor:pointer}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .datepicker-container__days[_ngcontent-%COMP%] .datepicker-container__day.disabled-day[_ngcontent-%COMP%]{cursor:default}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .datepicker-container__days[_ngcontent-%COMP%] .datepicker-container__day.disabled-day[_ngcontent-%COMP%]:hover{background-color:transparent}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .datepicker-container__days[_ngcontent-%COMP%] .datepicker-container__day.is-valid-date[_ngcontent-%COMP%]:not(.disabled-day):not(.selected-day):hover{background-color:#cbddfb;cursor:pointer}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .datepicker-container__days[_ngcontent-%COMP%] .datepicker-container__day.is-valid-date[_ngcontent-%COMP%]:not(.disabled-day):not(.selected-day):hover span.selected-day[_ngcontent-%COMP%]{color:#181f33!important}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .datepicker-container__days[_ngcontent-%COMP%] .datepicker-container__day[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px;font-style:normal;font-weight:400;line-height:20px;letter-spacing:.2px;text-align:center;color:#181f33}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .datepicker-container__days[_ngcontent-%COMP%] .datepicker-container__day[_ngcontent-%COMP%] span.current-day[_ngcontent-%COMP%]{font-weight:700;letter-spacing:.25px}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .datepicker-container__days[_ngcontent-%COMP%] .datepicker-container__day[_ngcontent-%COMP%] span.selected-day[_ngcontent-%COMP%]{color:#fff}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__body[_ngcontent-%COMP%] .datepicker-container__days[_ngcontent-%COMP%] .datepicker-container__day[_ngcontent-%COMP%] span.disabled-day[_ngcontent-%COMP%]{color:#c7c7c7}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__time[_ngcontent-%COMP%]{border-top:1px solid #e0e0e0;padding:16px;margin:0 16px}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__time[_ngcontent-%COMP%] .time-picker-header[_ngcontent-%COMP%]{margin-bottom:12px}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__time[_ngcontent-%COMP%] .time-picker-header[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:#181f33}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__time[_ngcontent-%COMP%] .time-picker-controls[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__time[_ngcontent-%COMP%] .time-picker-controls[_ngcontent-%COMP%] .time-input-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__time[_ngcontent-%COMP%] .time-picker-controls[_ngcontent-%COMP%] .time-input-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:12px;font-weight:500;color:#6a737d}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__time[_ngcontent-%COMP%] .time-picker-controls[_ngcontent-%COMP%] .time-input-group[_ngcontent-%COMP%] .time-input[_ngcontent-%COMP%]{width:50px;height:32px;padding:4px 8px;border:1px solid #e0e0e0;border-radius:4px;font-size:14px;text-align:center}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__time[_ngcontent-%COMP%] .time-picker-controls[_ngcontent-%COMP%] .time-input-group[_ngcontent-%COMP%] .time-input[_ngcontent-%COMP%]:focus{outline:none;border-color:#0937b2;box-shadow:0 0 0 2px #0937b21a}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__time[_ngcontent-%COMP%] .time-picker-controls[_ngcontent-%COMP%] .time-input-group[_ngcontent-%COMP%] .time-input[_ngcontent-%COMP%]:invalid{border-color:#dc3545;background-color:#fff5f5}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__time[_ngcontent-%COMP%] .time-picker-controls[_ngcontent-%COMP%] .time-input-group[_ngcontent-%COMP%] .time-input[_ngcontent-%COMP%]::-webkit-inner-spin-button, .datepicker-container[_ngcontent-%COMP%] .datepicker-container__time[_ngcontent-%COMP%] .time-picker-controls[_ngcontent-%COMP%] .time-input-group[_ngcontent-%COMP%] .time-input[_ngcontent-%COMP%]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__time[_ngcontent-%COMP%] .time-picker-controls[_ngcontent-%COMP%] .time-input-group[_ngcontent-%COMP%] .time-input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__time[_ngcontent-%COMP%] .time-picker-controls[_ngcontent-%COMP%] .time-separator[_ngcontent-%COMP%]{font-size:18px;font-weight:600;color:#181f33;margin-top:20px}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__time[_ngcontent-%COMP%] .time-picker-controls[_ngcontent-%COMP%] .am-pm-selector[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__time[_ngcontent-%COMP%] .time-picker-controls[_ngcontent-%COMP%] .am-pm-selector[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:12px;font-weight:500;color:#6a737d}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__time[_ngcontent-%COMP%] .time-picker-controls[_ngcontent-%COMP%] .am-pm-selector[_ngcontent-%COMP%] .am-pm-select[_ngcontent-%COMP%]{width:60px;height:42px;padding:4px 8px;border:1px solid #e0e0e0;border-radius:4px;font-size:14px;background-color:#fff}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__time[_ngcontent-%COMP%] .time-picker-controls[_ngcontent-%COMP%] .am-pm-selector[_ngcontent-%COMP%] .am-pm-select[_ngcontent-%COMP%]:focus{outline:none;border-color:#0937b2;box-shadow:0 0 0 2px #0937b21a}.datepicker-container[_ngcontent-%COMP%] .datepicker-container__footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:8px;bottom:0;align-items:center;position:sticky;padding:16px;border-top:1px solid #e0e0e0}.remove-box-shadow[_ngcontent-%COMP%]{box-shadow:none!important;border:none!important;border-radius:0!important}"] }); }
|
|
488
899
|
}
|
|
489
900
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TzDpContainerComponent, [{
|
|
490
901
|
type: Component,
|
|
491
|
-
args: [{ selector: "mis-tz-dp", template: "<div class=\"datepicker-container\" [ngClass]=\"data.disableBoxShadow?'remove-box-shadow':''\" aria-label=\"date picker\" cdkTrapFocus [cdkTrapFocusAutoCapture]=\"true\">\n <div tabindex=\"-1\" cdkFocusInitial></div>\n <div class=\"datepicker-container__header\">\n <div\n class=\"datepicker-container__arrow__icon\"\n (click)=\"navigateView('PREVIOUS')\"\n tabindex=\"0\"\n aria-label=\"Previous Month\"\n (keyup.enter)=\"navigateView('PREVIOUS')\"\n [ngClass]=\"{\n 'disabled-month': isPreviousMonthDisabled || isSelectingMonth\n }\"\n >\n <svg width=\"20\" height=\"16\" viewBox=\"0 0 20 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M19.7071 8.70711C20.0976 8.31658 20.0976 7.68342 19.7071 7.29289L13.3431 0.928933C12.9526 0.538409 12.3195 0.538409 11.9289 0.928933C11.5384 1.31946 11.5384 1.95262 11.9289 2.34315L17.5858 8L11.9289 13.6569C11.5384 14.0474 11.5384 14.6805 11.9289 15.0711C12.3195 15.4616 12.9526 15.4616 13.3431 15.0711L19.7071 8.70711ZM-8.74228e-08 9L19 9L19 7L8.74228e-08 7L-8.74228e-08 9Z\"\n fill=\"#181F33\"\n ></path>\n </svg>\n </div>\n\n <div *ngIf=\"!isSelectingYear\" (click)=\"toggleMonthSelector()\" class=\"month-header\">\n {{ isYearSelectionFlow ? selectedYear : availableMonths[currentMonthNumber] }}\n </div>\n <div *ngIf=\"!isSelectingMonth\" (click)=\"toggleYearSelector()\" class=\"year-header\">\n {{ isSelectingYear ? yearRange : currentYearNumber }}\n </div>\n\n\n <div\n class=\"datepicker-container__arrow__icon\"\n (click)=\"navigateView('NEXT')\"\n tabindex=\"0\"\n aria-label=\"Next Month\"\n (keyup.enter)=\"navigateView('NEXT')\"\n [ngClass]=\"{\n 'disabled-month': isNextMonthDisabled || isSelectingMonth\n }\"\n >\n <svg width=\"20\" height=\"16\" viewBox=\"0 0 20 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M19.7071 8.70711C20.0976 8.31658 20.0976 7.68342 19.7071 7.29289L13.3431 0.928933C12.9526 0.538409 12.3195 0.538409 11.9289 0.928933C11.5384 1.31946 11.5384 1.95262 11.9289 2.34315L17.5858 8L11.9289 13.6569C11.5384 14.0474 11.5384 14.6805 11.9289 15.0711C12.3195 15.4616 12.9526 15.4616 13.3431 15.0711L19.7071 8.70711ZM-8.74228e-08 9L19 9L19 7L8.74228e-08 7L-8.74228e-08 9Z\"\n fill=\"#181F33\"\n ></path>\n </svg>\n </div>\n </div>\n <div class=\"datepicker-container__body\">\n\n <div *ngIf=\"isSelectingMonth && !isSelectingYear\" class=\"month-selector\">\n <div class=\"row\">\n <div *ngFor=\"let month of availableMonths; let i = index\" \n class=\"month\" \n (click)=\"!disabledMonths[i] && selectMonth(month)\" \n [ngClass]=\"{\n 'disable-month': disabledMonths[i],\n 'select-month': !disabledMonths[currentMonthNumber] && month === availableMonths[currentMonthNumber]\n }\">\n {{ month }}\n </div>\n </div>\n </div>\n \n <div *ngIf=\"isSelectingYear && !isSelectingMonth\" class=\"year-selector\">\n <div class=\"row\">\n <div *ngFor=\"let year of availableYears; let i = index\" \n class=\"year\" \n (click)=\"!disabledYears[i] && selectYear(year)\" \n [ngClass]=\"{\n 'disable-year': disabledYears[i],\n 'select-year': year === currentYearNumber\n }\">\n {{ year }}\n </div>\n </div>\n </div>\n\n <div *ngIf=\"!isSelectingMonth && !isSelectingYear\" class=\"datepicker-container__weekdays\">\n <div class=\"datepicker-container__weekday\" *ngFor=\"let weekDay of weekDays\">\n <span [ngClass]=\"{ 'current-day': weekDay.isCurrentDay }\">{{ weekDay.label }}</span>\n </div>\n </div>\n <div *ngIf=\"!isSelectingMonth && !isSelectingYear\" class=\"datepicker-container__days\">\n <div\n class=\"datepicker-container__day\"\n [ngClass]=\"{\n 'selected-day': !localSelectedDate ? day.isSelectedDay : day === localSelectedDate,\n 'disabled-day': day.isDisabledDay,\n 'is-valid-date': day.date > 0 && !day.isSelectedDay\n }\"\n *ngFor=\"let day of currentMonthDates\"\n (click)=\"selectDay(day)\"\n (keyup.enter)=\"selectDay(day)\"\n >\n <span\n *ngIf=\"day.date > 0\"\n [tabindex]=\"day.isDisabledDay ? -1 : 0\"\n [ngClass]=\"{\n 'current-day': day.isCurrentDay,\n 'selected-day': !localSelectedDate ? day.isSelectedDay : day === localSelectedDate,\n 'disabled-day': day.isDisabledDay\n }\"\n [attr.aria-label]=\"retractDayMonth(day.date, currentMonth, currentYearNumber)\"\n >\n {{ day.date }}\n </span>\n </div>\n </div>\n </div>\n <div class=\"datepicker-container__footer\" *ngIf=\"data.dpConfig.showApplyButton\">\n <button mis-button size=\"md\" type=\"'none'\" (click)=\"cancelDatePicker()\">Cancel</button>\n <button mis-button size=\"md\" type=\"primary\" (click)=\"applyDate()\" [disabled]=\"!(data.date || localSelectedDate.date)\">Apply</button>\n </div>\n</div>\n", styles: [".h1{font-size:40px;font-weight:400;letter-spacing:0px;line-height:48px}.h2{font-size:32px;font-weight:400;letter-spacing:0px;line-height:40px}.h3{font-size:28px;font-weight:400;letter-spacing:0px;line-height:36px}.h4{font-size:24px;font-weight:400;letter-spacing:0px;line-height:32px}.h5-b{font-size:20px;font-weight:700;letter-spacing:.25px;line-height:28px}.h5{font-size:20px;font-weight:400;letter-spacing:.15px;line-height:28px}.h6-b{font-size:16px;font-weight:700;letter-spacing:0px;line-height:24px}.h6{font-size:16px;font-weight:400;letter-spacing:0px;line-height:24px}.p{font-size:16px;font-weight:400;letter-spacing:0px;line-height:180%}.h7-b{font-size:14px;font-weight:700;letter-spacing:.25px;line-height:20px}.h7,.datepicker-container .datepicker-container__body .month,.datepicker-container .datepicker-container__body .year{font-size:14px;font-weight:400;letter-spacing:.2px;line-height:20px}.h8-b{font-size:12px;font-weight:700;letter-spacing:.25px;line-height:18px}.h8{font-size:12px;font-weight:400;letter-spacing:.2px;line-height:18px}.h9{font-size:10px;font-weight:400;letter-spacing:0px;line-height:15px}.btn-lg-b{font-size:16px;font-weight:700;letter-spacing:.5px;line-height:24px}.btn-lg{font-size:16px;font-weight:400;letter-spacing:.2px;line-height:24px}.btn-sm{font-size:14px;font-weight:400;letter-spacing:.25px;line-height:20px}.btn-link{font-size:16px;font-weight:400;letter-spacing:0px;line-height:24px}.display-1{font-size:48px;font-weight:400;letter-spacing:0px;line-height:56px}.display-2{font-size:14px;font-weight:400;letter-spacing:.5px;line-height:20px}:root{--pmry-200: #99BAF7;--pmry-100: #CBDDFB;--pmry-500: #0937B2;--pmry-400: #3C68D0;--pmry-600: #062A99;--pmry-700: #041F80;--pmry-300: #638FE7;--pmry-800: #021567;--pmry-900: #010F55;--sec-d-purple: #40447F;--sec-maroon: #6B034E;--sec-mud-red: #B23600;--sec-orange: #ED711C;--sec-purple: #815FD5;--sec-teal: #10ADAE;--sec-yellow: #D4900C;--sec-green: #547F40;--sec-bright-green: #27D22E;--sec-dark-teal: #035F6B;--sec-chocolate: #7C2F33;--sec-rube-pink: #C13D6D;--sec-cerulean: #0087B2;--sem-error: #B00020;--sem-info: #0091FF;--sem-warning: #FF9D00;--sem-success: #38AF49;--grey-bg-1: #FAFAFA;--grey-bg: #F5F5F5;--grey-seperators: #E0E0E0;--grey-disabled: #C8CDD3;--grey-hover: #F5F7FC;--grey-pressed: #E6EBF7;--grey-row: #F5F7FC;--dec-light-yellow: #F4E7C3;--dec-light-purple: #DACFF9;--dec-light-green: #E4F5E9;--dec-light-green2: #F1FFF3;--dec-light-pink: #FAE1EA;--dec-: #F4CBC1;--dec-lt-orange: #FAEFED;--dec-light-blue: #CFECF9;--dec-row-selection: #F1FDF8;--dec-row-selection2: #F2FBFF;--dec-row-lines: #D3E1E9;--text-white: #FFFFFF;--text-disabled: #929DAB;--text-muted: #6A737D;--text-black: #181F33;--MR-solid-blue2:#C8D5F6;--MR-solid-purple:#C9C3FB;--MR-solid-orange:#EEAC9F;--MR-solid-green:#ACDADA;--MR-solid-brown:#E8C8AF;--MR-solid-yellow:#FFEFC7;--MR-solid-blue:#BBE6FF;--MR-solid-pink:#FFC6F2;--tr-hover:#F0F3FA;--tr-pressed:#DAE1F3}.datepicker-container{background:#fff;border:1px solid #e0e0e0;box-shadow:0 12px 24px #0000001f,0 4px 8px #0000001f;border-radius:12px;display:flex;flex-direction:column;font-family:Lato;-webkit-user-select:none;user-select:none;box-sizing:border-box;width:290px}.datepicker-container .datepicker-container__header{display:flex;height:32px;margin:16px;justify-content:space-between;align-items:center;width:258px}.datepicker-container .datepicker-container__header span{font-size:16px;font-style:normal;font-weight:700;line-height:24px;letter-spacing:.2px;text-align:center}.datepicker-container .datepicker-container__header .month-header,.datepicker-container .datepicker-container__header .year-header{padding:8px;border-radius:10px}.datepicker-container .datepicker-container__header .month-header:hover,.datepicker-container .datepicker-container__header .year-header:hover{cursor:pointer;background-color:#e6ebf7}.datepicker-container .datepicker-container__header .datepicker-container__arrow__icon{height:20px;width:20px;display:flex;align-items:center;justify-content:center;border-radius:4px;padding:4px}.datepicker-container .datepicker-container__header .datepicker-container__arrow__icon.disabled-month{opacity:.5;cursor:not-allowed}.datepicker-container .datepicker-container__header .datepicker-container__arrow__icon:not(.disabled-month):hover{cursor:pointer;background-color:#cbddfb}.datepicker-container .datepicker-container__header .datepicker-container__arrow__icon:nth-child(1){transform:rotate(180deg)}.datepicker-container .datepicker-container__body{width:258px;height:100%;margin:0 16px 16px}.datepicker-container .datepicker-container__body .row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:10px}.datepicker-container .datepicker-container__body .month,.datepicker-container .datepicker-container__body .year{padding:10px 6px;cursor:pointer;border-radius:5px;text-align:center;background-color:#fff}.datepicker-container .datepicker-container__body .month:hover,.datepicker-container .datepicker-container__body .year:hover{background-color:#cbddfb}.datepicker-container .datepicker-container__body .disable-month,.datepicker-container .datepicker-container__body .disable-year{cursor:default;color:#c8cdd3}.datepicker-container .datepicker-container__body .disable-month:hover,.datepicker-container .datepicker-container__body .disable-year:hover{background-color:transparent}.datepicker-container .datepicker-container__body .select-month,.datepicker-container .datepicker-container__body .select-year{background-color:#0937b2;color:#fff}.datepicker-container .datepicker-container__body .select-month:hover,.datepicker-container .datepicker-container__body .select-year:hover{cursor:pointer;background-color:#cbddfb}.datepicker-container .datepicker-container__body .datepicker-container__weekdays{width:100%;display:flex;padding-bottom:10px}.datepicker-container .datepicker-container__body .datepicker-container__weekdays .datepicker-container__weekday{width:36px;height:18px;text-align:center}.datepicker-container .datepicker-container__body .datepicker-container__weekdays .datepicker-container__weekday span{font-size:12px;font-style:normal;font-weight:400;line-height:18px;letter-spacing:.2px;text-align:center;color:#c7c7c7}.datepicker-container .datepicker-container__body .datepicker-container__weekdays .datepicker-container__weekday span.current-day{font-weight:700;letter-spacing:.25px;color:#181f33}.datepicker-container .datepicker-container__body .datepicker-container__days{display:flex;flex-wrap:wrap;gap:2px}.datepicker-container .datepicker-container__body .datepicker-container__days .datepicker-container__day{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:4px}.datepicker-container .datepicker-container__body .datepicker-container__days .datepicker-container__day.selected-day{background-color:#0937b2;cursor:pointer}.datepicker-container .datepicker-container__body .datepicker-container__days .datepicker-container__day.disabled-day{cursor:default}.datepicker-container .datepicker-container__body .datepicker-container__days .datepicker-container__day.disabled-day:hover{background-color:transparent}.datepicker-container .datepicker-container__body .datepicker-container__days .datepicker-container__day.is-valid-date:not(.disabled-day):not(.selected-day):hover{background-color:#cbddfb;cursor:pointer}.datepicker-container .datepicker-container__body .datepicker-container__days .datepicker-container__day.is-valid-date:not(.disabled-day):not(.selected-day):hover span.selected-day{color:#181f33!important}.datepicker-container .datepicker-container__body .datepicker-container__days .datepicker-container__day span{font-size:14px;font-style:normal;font-weight:400;line-height:20px;letter-spacing:.2px;text-align:center;color:#181f33}.datepicker-container .datepicker-container__body .datepicker-container__days .datepicker-container__day span.current-day{font-weight:700;letter-spacing:.25px}.datepicker-container .datepicker-container__body .datepicker-container__days .datepicker-container__day span.selected-day{color:#fff}.datepicker-container .datepicker-container__body .datepicker-container__days .datepicker-container__day span.disabled-day{color:#c7c7c7}.datepicker-container .datepicker-container__footer{display:flex;justify-content:flex-end;gap:8px;bottom:0;align-items:center;position:sticky;padding:16px;border-top:1px solid #e0e0e0}.remove-box-shadow{box-shadow:none!important;border:none!important;border-radius:0!important}\n"] }]
|
|
902
|
+
args: [{ selector: "mis-tz-dp", template: "<div class=\"datepicker-container\" [ngClass]=\"data.disableBoxShadow?'remove-box-shadow':''\" aria-label=\"date picker\" cdkTrapFocus [cdkTrapFocusAutoCapture]=\"true\">\n <div tabindex=\"-1\" cdkFocusInitial></div>\n <div class=\"datepicker-container__header\">\n <div\n class=\"datepicker-container__arrow__icon\"\n (click)=\"navigateView('PREVIOUS')\"\n tabindex=\"0\"\n aria-label=\"Previous Month\"\n (keyup.enter)=\"navigateView('PREVIOUS')\"\n [ngClass]=\"{\n 'disabled-month': isPreviousMonthDisabled || isSelectingMonth\n }\"\n >\n <svg width=\"20\" height=\"16\" viewBox=\"0 0 20 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M19.7071 8.70711C20.0976 8.31658 20.0976 7.68342 19.7071 7.29289L13.3431 0.928933C12.9526 0.538409 12.3195 0.538409 11.9289 0.928933C11.5384 1.31946 11.5384 1.95262 11.9289 2.34315L17.5858 8L11.9289 13.6569C11.5384 14.0474 11.5384 14.6805 11.9289 15.0711C12.3195 15.4616 12.9526 15.4616 13.3431 15.0711L19.7071 8.70711ZM-8.74228e-08 9L19 9L19 7L8.74228e-08 7L-8.74228e-08 9Z\"\n fill=\"#181F33\"\n ></path>\n </svg>\n </div>\n\n <div *ngIf=\"!isSelectingYear\" (click)=\"toggleMonthSelector()\" class=\"month-header\">\n {{ isYearSelectionFlow ? selectedYear : availableMonths[currentMonthNumber] }}\n </div>\n <div *ngIf=\"!isSelectingMonth\" (click)=\"toggleYearSelector()\" class=\"year-header\">\n {{ isSelectingYear ? yearRange : currentYearNumber }}\n </div>\n\n\n <div\n class=\"datepicker-container__arrow__icon\"\n (click)=\"navigateView('NEXT')\"\n tabindex=\"0\"\n aria-label=\"Next Month\"\n (keyup.enter)=\"navigateView('NEXT')\"\n [ngClass]=\"{\n 'disabled-month': isNextMonthDisabled || isSelectingMonth\n }\"\n >\n <svg width=\"20\" height=\"16\" viewBox=\"0 0 20 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M19.7071 8.70711C20.0976 8.31658 20.0976 7.68342 19.7071 7.29289L13.3431 0.928933C12.9526 0.538409 12.3195 0.538409 11.9289 0.928933C11.5384 1.31946 11.5384 1.95262 11.9289 2.34315L17.5858 8L11.9289 13.6569C11.5384 14.0474 11.5384 14.6805 11.9289 15.0711C12.3195 15.4616 12.9526 15.4616 13.3431 15.0711L19.7071 8.70711ZM-8.74228e-08 9L19 9L19 7L8.74228e-08 7L-8.74228e-08 9Z\"\n fill=\"#181F33\"\n ></path>\n </svg>\n </div>\n </div>\n <div class=\"datepicker-container__body\">\n\n <div *ngIf=\"isSelectingMonth && !isSelectingYear\" class=\"month-selector\">\n <div class=\"row\">\n <div *ngFor=\"let month of availableMonths; let i = index\" \n class=\"month\" \n (click)=\"!disabledMonths[i] && selectMonth(month)\" \n [ngClass]=\"{\n 'disable-month': disabledMonths[i],\n 'select-month': !disabledMonths[currentMonthNumber] && month === availableMonths[currentMonthNumber]\n }\">\n {{ month }}\n </div>\n </div>\n </div>\n \n <div *ngIf=\"isSelectingYear && !isSelectingMonth\" class=\"year-selector\">\n <div class=\"row\">\n <div *ngFor=\"let year of availableYears; let i = index\" \n class=\"year\" \n (click)=\"!disabledYears[i] && selectYear(year)\" \n [ngClass]=\"{\n 'disable-year': disabledYears[i],\n 'select-year': year === currentYearNumber\n }\">\n {{ year }}\n </div>\n </div>\n </div>\n\n <div *ngIf=\"!isSelectingMonth && !isSelectingYear\" class=\"datepicker-container__weekdays\">\n <div class=\"datepicker-container__weekday\" *ngFor=\"let weekDay of weekDays\">\n <span [ngClass]=\"{ 'current-day': weekDay.isCurrentDay }\">{{ weekDay.label }}</span>\n </div>\n </div>\n <div *ngIf=\"!isSelectingMonth && !isSelectingYear\" class=\"datepicker-container__days\">\n <div\n class=\"datepicker-container__day\"\n [ngClass]=\"{\n 'selected-day': day.isSelectedDay,\n 'disabled-day': day.isDisabledDay,\n 'is-valid-date': day.date > 0 && !day.isSelectedDay\n }\"\n *ngFor=\"let day of currentMonthDates\"\n (click)=\"selectDay(day)\"\n (keyup.enter)=\"selectDay(day)\"\n >\n <span\n *ngIf=\"day.date > 0\"\n [tabindex]=\"day.isDisabledDay ? -1 : 0\"\n [ngClass]=\"{\n 'current-day': day.isCurrentDay,\n 'selected-day': day.isSelectedDay,\n 'disabled-day': day.isDisabledDay\n }\"\n [attr.aria-label]=\"retractDayMonth(day.date, currentMonth, currentYearNumber)\"\n >\n {{ day.date }}\n </span>\n </div>\n </div>\n </div>\n\n <!-- Time Picker Section -->\n <div class=\"datepicker-container__time\" *ngIf=\"data.dpConfig.enableTime === true\">\n <div class=\"time-picker-header\">\n <span>Time</span>\n </div>\n <div class=\"time-picker-controls\">\n <div class=\"time-input-group\">\n <label for=\"hourInput\">Hour</label>\n <input \n id=\"hourInput\"\n type=\"number\" \n [min]=\"is12HourFormat() ? 1 : 0\"\n [max]=\"is12HourFormat() ? 12 : 23\"\n [step]=\"1\"\n [(ngModel)]=\"selectedHour\"\n (input)=\"onHourInput($event)\"\n (blur)=\"validateHourInput()\"\n class=\"time-input\"\n [title]=\"is12HourFormat() ? 'Enter hour (1-12)' : 'Enter hour (0-23)'\">\n </div>\n <div class=\"time-separator\">:</div>\n <div class=\"time-input-group\">\n <label for=\"minuteInput\">Minute</label>\n <input \n id=\"minuteInput\"\n type=\"number\" \n min=\"0\" \n max=\"59\"\n [step]=\"1\"\n [(ngModel)]=\"selectedMinute\"\n (input)=\"onMinuteInput($event)\"\n (blur)=\"validateMinuteInput()\"\n class=\"time-input\"\n title=\"Enter minute (0-59)\">\n </div>\n <div class=\"am-pm-selector\" *ngIf=\"is12HourFormat()\">\n <label for=\"amPmSelect\">AM/PM</label>\n <select \n id=\"amPmSelect\"\n [(ngModel)]=\"selectedAmPm\"\n class=\"am-pm-select\">\n <option value=\"AM\">AM</option>\n <option value=\"PM\">PM</option>\n </select>\n </div>\n </div>\n </div>\n\n <div class=\"datepicker-container__footer\" *ngIf=\"data.dpConfig.showApplyButton || data.dpConfig.enableTime\">\n <button mis-button size=\"md\" type=\"'none'\" (click)=\"cancelDatePicker()\">Cancel</button>\n <button mis-button size=\"md\" type=\"primary\" (click)=\"applyDate()\" [disabled]=\"!(data.date || localSelectedDate.date)\">Apply</button>\n </div>\n</div>\n", styles: [".h1{font-size:40px;font-weight:400;letter-spacing:0px;line-height:48px}.h2{font-size:32px;font-weight:400;letter-spacing:0px;line-height:40px}.h3{font-size:28px;font-weight:400;letter-spacing:0px;line-height:36px}.h4{font-size:24px;font-weight:400;letter-spacing:0px;line-height:32px}.h5-b{font-size:20px;font-weight:700;letter-spacing:.25px;line-height:28px}.h5{font-size:20px;font-weight:400;letter-spacing:.15px;line-height:28px}.h6-b{font-size:16px;font-weight:700;letter-spacing:0px;line-height:24px}.h6{font-size:16px;font-weight:400;letter-spacing:0px;line-height:24px}.p{font-size:16px;font-weight:400;letter-spacing:0px;line-height:180%}.h7-b{font-size:14px;font-weight:700;letter-spacing:.25px;line-height:20px}.h7,.datepicker-container .datepicker-container__body .month,.datepicker-container .datepicker-container__body .year{font-size:14px;font-weight:400;letter-spacing:.2px;line-height:20px}.h8-b{font-size:12px;font-weight:700;letter-spacing:.25px;line-height:18px}.h8{font-size:12px;font-weight:400;letter-spacing:.2px;line-height:18px}.h9{font-size:10px;font-weight:400;letter-spacing:0px;line-height:15px}.btn-lg-b{font-size:16px;font-weight:700;letter-spacing:.5px;line-height:24px}.btn-lg{font-size:16px;font-weight:400;letter-spacing:.2px;line-height:24px}.btn-sm{font-size:14px;font-weight:400;letter-spacing:.25px;line-height:20px}.btn-link{font-size:16px;font-weight:400;letter-spacing:0px;line-height:24px}.display-1{font-size:48px;font-weight:400;letter-spacing:0px;line-height:56px}.display-2{font-size:14px;font-weight:400;letter-spacing:.5px;line-height:20px}:root{--pmry-200: #99BAF7;--pmry-100: #CBDDFB;--pmry-500: #0937B2;--pmry-400: #3C68D0;--pmry-600: #062A99;--pmry-700: #041F80;--pmry-300: #638FE7;--pmry-800: #021567;--pmry-900: #010F55;--sec-d-purple: #40447F;--sec-maroon: #6B034E;--sec-mud-red: #B23600;--sec-orange: #ED711C;--sec-purple: #815FD5;--sec-teal: #10ADAE;--sec-yellow: #D4900C;--sec-green: #547F40;--sec-bright-green: #27D22E;--sec-dark-teal: #035F6B;--sec-chocolate: #7C2F33;--sec-rube-pink: #C13D6D;--sec-cerulean: #0087B2;--sem-error: #B00020;--sem-info: #0091FF;--sem-warning: #FF9D00;--sem-success: #38AF49;--grey-bg-1: #FAFAFA;--grey-bg: #F5F5F5;--grey-seperators: #E0E0E0;--grey-disabled: #C8CDD3;--grey-hover: #F5F7FC;--grey-pressed: #E6EBF7;--grey-row: #F5F7FC;--dec-light-yellow: #F4E7C3;--dec-light-purple: #DACFF9;--dec-light-green: #E4F5E9;--dec-light-green2: #F1FFF3;--dec-light-pink: #FAE1EA;--dec-: #F4CBC1;--dec-lt-orange: #FAEFED;--dec-light-blue: #CFECF9;--dec-row-selection: #F1FDF8;--dec-row-selection2: #F2FBFF;--dec-row-lines: #D3E1E9;--text-white: #FFFFFF;--text-disabled: #929DAB;--text-muted: #6A737D;--text-black: #181F33;--MR-solid-blue2:#C8D5F6;--MR-solid-purple:#C9C3FB;--MR-solid-orange:#EEAC9F;--MR-solid-green:#ACDADA;--MR-solid-brown:#E8C8AF;--MR-solid-yellow:#FFEFC7;--MR-solid-blue:#BBE6FF;--MR-solid-pink:#FFC6F2;--tr-hover:#F0F3FA;--tr-pressed:#DAE1F3}.datepicker-container{background:#fff;border:1px solid #e0e0e0;box-shadow:0 12px 24px #0000001f,0 4px 8px #0000001f;border-radius:12px;display:flex;flex-direction:column;font-family:Lato;-webkit-user-select:none;user-select:none;box-sizing:border-box;width:290px}.datepicker-container .datepicker-container__header{display:flex;height:32px;margin:16px;justify-content:space-between;align-items:center;width:258px}.datepicker-container .datepicker-container__header span{font-size:16px;font-style:normal;font-weight:700;line-height:24px;letter-spacing:.2px;text-align:center}.datepicker-container .datepicker-container__header .month-header,.datepicker-container .datepicker-container__header .year-header{padding:8px;border-radius:10px}.datepicker-container .datepicker-container__header .month-header:hover,.datepicker-container .datepicker-container__header .year-header:hover{cursor:pointer;background-color:#e6ebf7}.datepicker-container .datepicker-container__header .datepicker-container__arrow__icon{height:20px;width:20px;display:flex;align-items:center;justify-content:center;border-radius:4px;padding:4px}.datepicker-container .datepicker-container__header .datepicker-container__arrow__icon.disabled-month{opacity:.5;cursor:not-allowed}.datepicker-container .datepicker-container__header .datepicker-container__arrow__icon:not(.disabled-month):hover{cursor:pointer;background-color:#cbddfb}.datepicker-container .datepicker-container__header .datepicker-container__arrow__icon:nth-child(1){transform:rotate(180deg)}.datepicker-container .datepicker-container__body{width:258px;height:100%;margin:0 16px 16px}.datepicker-container .datepicker-container__body .row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:10px}.datepicker-container .datepicker-container__body .month,.datepicker-container .datepicker-container__body .year{padding:10px 6px;cursor:pointer;border-radius:5px;text-align:center;background-color:#fff}.datepicker-container .datepicker-container__body .month:hover,.datepicker-container .datepicker-container__body .year:hover{background-color:#cbddfb}.datepicker-container .datepicker-container__body .disable-month,.datepicker-container .datepicker-container__body .disable-year{cursor:default;color:#c8cdd3}.datepicker-container .datepicker-container__body .disable-month:hover,.datepicker-container .datepicker-container__body .disable-year:hover{background-color:transparent}.datepicker-container .datepicker-container__body .select-month,.datepicker-container .datepicker-container__body .select-year{background-color:#0937b2;color:#fff}.datepicker-container .datepicker-container__body .select-month:hover,.datepicker-container .datepicker-container__body .select-year:hover{cursor:pointer;background-color:#cbddfb}.datepicker-container .datepicker-container__body .datepicker-container__weekdays{width:100%;display:flex;padding-bottom:10px}.datepicker-container .datepicker-container__body .datepicker-container__weekdays .datepicker-container__weekday{width:36px;height:18px;text-align:center}.datepicker-container .datepicker-container__body .datepicker-container__weekdays .datepicker-container__weekday span{font-size:12px;font-style:normal;font-weight:400;line-height:18px;letter-spacing:.2px;text-align:center;color:#c7c7c7}.datepicker-container .datepicker-container__body .datepicker-container__weekdays .datepicker-container__weekday span.current-day{font-weight:700;letter-spacing:.25px;color:#181f33}.datepicker-container .datepicker-container__body .datepicker-container__days{display:flex;flex-wrap:wrap;gap:2px}.datepicker-container .datepicker-container__body .datepicker-container__days .datepicker-container__day{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:4px}.datepicker-container .datepicker-container__body .datepicker-container__days .datepicker-container__day.selected-day{background-color:#0937b2;cursor:pointer}.datepicker-container .datepicker-container__body .datepicker-container__days .datepicker-container__day.disabled-day{cursor:default}.datepicker-container .datepicker-container__body .datepicker-container__days .datepicker-container__day.disabled-day:hover{background-color:transparent}.datepicker-container .datepicker-container__body .datepicker-container__days .datepicker-container__day.is-valid-date:not(.disabled-day):not(.selected-day):hover{background-color:#cbddfb;cursor:pointer}.datepicker-container .datepicker-container__body .datepicker-container__days .datepicker-container__day.is-valid-date:not(.disabled-day):not(.selected-day):hover span.selected-day{color:#181f33!important}.datepicker-container .datepicker-container__body .datepicker-container__days .datepicker-container__day span{font-size:14px;font-style:normal;font-weight:400;line-height:20px;letter-spacing:.2px;text-align:center;color:#181f33}.datepicker-container .datepicker-container__body .datepicker-container__days .datepicker-container__day span.current-day{font-weight:700;letter-spacing:.25px}.datepicker-container .datepicker-container__body .datepicker-container__days .datepicker-container__day span.selected-day{color:#fff}.datepicker-container .datepicker-container__body .datepicker-container__days .datepicker-container__day span.disabled-day{color:#c7c7c7}.datepicker-container .datepicker-container__time{border-top:1px solid #e0e0e0;padding:16px;margin:0 16px}.datepicker-container .datepicker-container__time .time-picker-header{margin-bottom:12px}.datepicker-container .datepicker-container__time .time-picker-header span{font-size:14px;font-weight:600;color:#181f33}.datepicker-container .datepicker-container__time .time-picker-controls{display:flex;align-items:center;gap:8px}.datepicker-container .datepicker-container__time .time-picker-controls .time-input-group{display:flex;flex-direction:column;gap:4px}.datepicker-container .datepicker-container__time .time-picker-controls .time-input-group label{font-size:12px;font-weight:500;color:#6a737d}.datepicker-container .datepicker-container__time .time-picker-controls .time-input-group .time-input{width:50px;height:32px;padding:4px 8px;border:1px solid #e0e0e0;border-radius:4px;font-size:14px;text-align:center}.datepicker-container .datepicker-container__time .time-picker-controls .time-input-group .time-input:focus{outline:none;border-color:#0937b2;box-shadow:0 0 0 2px #0937b21a}.datepicker-container .datepicker-container__time .time-picker-controls .time-input-group .time-input:invalid{border-color:#dc3545;background-color:#fff5f5}.datepicker-container .datepicker-container__time .time-picker-controls .time-input-group .time-input::-webkit-inner-spin-button,.datepicker-container .datepicker-container__time .time-picker-controls .time-input-group .time-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.datepicker-container .datepicker-container__time .time-picker-controls .time-input-group .time-input[type=number]{-moz-appearance:textfield}.datepicker-container .datepicker-container__time .time-picker-controls .time-separator{font-size:18px;font-weight:600;color:#181f33;margin-top:20px}.datepicker-container .datepicker-container__time .time-picker-controls .am-pm-selector{display:flex;flex-direction:column;gap:4px}.datepicker-container .datepicker-container__time .time-picker-controls .am-pm-selector label{font-size:12px;font-weight:500;color:#6a737d}.datepicker-container .datepicker-container__time .time-picker-controls .am-pm-selector .am-pm-select{width:60px;height:42px;padding:4px 8px;border:1px solid #e0e0e0;border-radius:4px;font-size:14px;background-color:#fff}.datepicker-container .datepicker-container__time .time-picker-controls .am-pm-selector .am-pm-select:focus{outline:none;border-color:#0937b2;box-shadow:0 0 0 2px #0937b21a}.datepicker-container .datepicker-container__footer{display:flex;justify-content:flex-end;gap:8px;bottom:0;align-items:center;position:sticky;padding:16px;border-top:1px solid #e0e0e0}.remove-box-shadow{box-shadow:none!important;border:none!important;border-radius:0!important}\n"] }]
|
|
492
903
|
}], () => [{ type: undefined, decorators: [{
|
|
493
904
|
type: Inject,
|
|
494
905
|
args: [CONTAINER_DATA]
|
|
@@ -620,7 +1031,7 @@ class TzDatepickerDirective {
|
|
|
620
1031
|
this.overlayRef?.detach();
|
|
621
1032
|
this.overlayRef?.dispose();
|
|
622
1033
|
}
|
|
623
|
-
static { this.ɵfac = function TzDatepickerDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TzDatepickerDirective)(i0.ɵɵdirectiveInject(
|
|
1034
|
+
static { this.ɵfac = function TzDatepickerDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TzDatepickerDirective)(i0.ɵɵdirectiveInject(i3.NgControl, 10), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i2$1.Overlay), i0.ɵɵdirectiveInject(i0.ViewContainerRef)); }; }
|
|
624
1035
|
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TzDatepickerDirective, selectors: [["input", "misTzDp", ""]], hostBindings: function TzDatepickerDirective_HostBindings(rf, ctx) { if (rf & 1) {
|
|
625
1036
|
i0.ɵɵlistener("click", function TzDatepickerDirective_click_HostBindingHandler() { return ctx.toggleDatePicker(); })("keydown.enter", function TzDatepickerDirective_keydown_enter_HostBindingHandler() { return ctx.toggleDatePickerOnEnter(); })("keydown.esc", function TzDatepickerDirective_keydown_esc_HostBindingHandler() { return ctx.closeOnEsc(); });
|
|
626
1037
|
} }, inputs: { dpConfig: "dpConfig", selectedDate: "selectedDate", datesDisabled: "datesDisabled", dateMessages: "dateMessages", positionX: "positionX", positionY: "positionY", offsetX: "offsetX", offsetY: "offsetY", allowBookingOnDisabledDay: "allowBookingOnDisabledDay", disableBoxShadow: "disableBoxShadow", disableOverLay: "disableOverLay", openElement: "openElement" }, outputs: { dateChange: "dateChange" }, features: [i0.ɵɵNgOnChangesFeature] }); }
|
|
@@ -630,7 +1041,7 @@ class TzDatepickerDirective {
|
|
|
630
1041
|
args: [{
|
|
631
1042
|
selector: "input[misTzDp]"
|
|
632
1043
|
}]
|
|
633
|
-
}], () => [{ type:
|
|
1044
|
+
}], () => [{ type: i3.NgControl, decorators: [{
|
|
634
1045
|
type: Self
|
|
635
1046
|
}, {
|
|
636
1047
|
type: Optional
|
|
@@ -674,17 +1085,17 @@ class TzDatepickerDirective {
|
|
|
674
1085
|
class DatepickerModuleV2 {
|
|
675
1086
|
static { this.ɵfac = function DatepickerModuleV2_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DatepickerModuleV2)(); }; }
|
|
676
1087
|
static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: DatepickerModuleV2 }); }
|
|
677
|
-
static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule, OverlayModule, ToastModule.forRoot(), ButtonModule, A11yModule] }); }
|
|
1088
|
+
static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule, FormsModule, OverlayModule, ToastModule.forRoot(), ButtonModule, A11yModule] }); }
|
|
678
1089
|
}
|
|
679
1090
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DatepickerModuleV2, [{
|
|
680
1091
|
type: NgModule,
|
|
681
1092
|
args: [{
|
|
682
1093
|
declarations: [TzDpContainerComponent, TzDatepickerDirective],
|
|
683
|
-
imports: [CommonModule, OverlayModule, ToastModule.forRoot(), ButtonModule, A11yModule],
|
|
1094
|
+
imports: [CommonModule, FormsModule, OverlayModule, ToastModule.forRoot(), ButtonModule, A11yModule],
|
|
684
1095
|
exports: [TzDpContainerComponent, TzDatepickerDirective]
|
|
685
1096
|
}]
|
|
686
1097
|
}], null, null); })();
|
|
687
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DatepickerModuleV2, { declarations: [TzDpContainerComponent, TzDatepickerDirective], imports: [CommonModule, OverlayModule, i1.ToastModule, ButtonModule, A11yModule], exports: [TzDpContainerComponent, TzDatepickerDirective] }); })();
|
|
1098
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DatepickerModuleV2, { declarations: [TzDpContainerComponent, TzDatepickerDirective], imports: [CommonModule, FormsModule, OverlayModule, i1.ToastModule, ButtonModule, A11yModule], exports: [TzDpContainerComponent, TzDatepickerDirective] }); })();
|
|
688
1099
|
|
|
689
1100
|
/**
|
|
690
1101
|
* Generated bundle index. Do not edit.
|