mis-crystal-design-system 18.0.24 → 18.1.0-signal-test
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/action-list/action-list.component.d.ts +17 -15
- package/async-search-dropdown/async-dropdown.component.d.ts +43 -61
- package/button/button.component.d.ts +35 -13
- package/button/button.directive.d.ts +10 -8
- package/checkbox/checkbox.component.d.ts +15 -12
- package/chip/chip.component.d.ts +9 -11
- package/datepicker_v2/models/dp-config.model.d.ts +1 -0
- package/datepicker_v2/tz-datepicker.directive.d.ts +15 -18
- package/datepicker_v2/tz-dp-container/tz-dp-container.component.d.ts +42 -21
- package/daterangepicker_v2/tz-daterangepicker.directive.d.ts +12 -14
- package/daterangepicker_v2/tz-drp-container/tz-drp-container.component.d.ts +46 -23
- package/drawer/drawer-body/drawer-body.component.d.ts +2 -2
- package/dropdown/calculate-container-height.directive.d.ts +7 -8
- package/dropdown/dropdown.component.d.ts +41 -49
- package/dynamic-form/dynamic-form.component.d.ts +20 -16
- package/esm2022/action-list/action-list.component.mjs +112 -89
- package/esm2022/async-search-dropdown/async-dropdown.component.mjs +256 -326
- package/esm2022/button/button.component.mjs +55 -48
- package/esm2022/button/button.directive.mjs +36 -40
- package/esm2022/checkbox/checkbox.component.mjs +75 -70
- package/esm2022/chip/chip.component.mjs +20 -33
- package/esm2022/datepicker_v2/models/dp-config.model.mjs +1 -1
- package/esm2022/datepicker_v2/tz-datepicker.directive.mjs +42 -71
- package/esm2022/datepicker_v2/tz-dp-container/tz-dp-container.component.mjs +202 -172
- package/esm2022/datepicker_v2/utils/index.mjs +2 -1
- package/esm2022/daterangepicker_v2/tz-daterangepicker.directive.mjs +26 -51
- package/esm2022/daterangepicker_v2/tz-drp-container/tz-drp-container.component.mjs +282 -235
- package/esm2022/drawer/drawer-body/drawer-body.component.mjs +8 -7
- package/esm2022/dropdown/calculate-container-height.directive.mjs +25 -22
- package/esm2022/dropdown/dropdown.component.mjs +162 -186
- package/esm2022/dynamic-form/dynamic-form.component.mjs +118 -72
- package/esm2022/fab/fab.component.mjs +29 -33
- package/esm2022/filter/filter-panel/filter-panel.component.mjs +60 -58
- package/esm2022/input/directives/input/input.directive.mjs +22 -26
- package/esm2022/input/mis-input.component.mjs +41 -45
- package/esm2022/input-stepper/input-stepper/input-stepper.component.mjs +40 -50
- package/esm2022/loader/loader.component.mjs +8 -11
- package/esm2022/mobile-filter/mobile-filter.component.mjs +61 -61
- package/esm2022/modal/module-wrapper/module-wrapper.component.mjs +11 -9
- package/esm2022/multi-select-dropdown/multi-select-dropdown.component.mjs +235 -281
- package/esm2022/nested-multi-select-dropdown/nested-multi-select-dropdown.component.mjs +250 -287
- package/esm2022/phone-input/phone-input.component.mjs +21 -43
- package/esm2022/radio-button/radio-button.component.mjs +15 -27
- package/esm2022/ske-loader/ske-loader.component.mjs +15 -29
- package/esm2022/slider/slider.component.mjs +23 -33
- package/esm2022/slider/slider.module.mjs +4 -11
- package/esm2022/snackbar/snackbar/snackbar.component.mjs +21 -15
- package/esm2022/snackbar/snackbar.service.mjs +3 -2
- package/esm2022/specificdatepicker/tz-sdp-container/tz-sdp-container.component.mjs +230 -343
- package/esm2022/specificdatepicker/tz-specificdatepicker.directive.mjs +77 -105
- package/esm2022/star-rating/star-rating.component.mjs +57 -71
- package/esm2022/switch/switch.component.mjs +34 -36
- package/esm2022/table/actions-cell/actions-cell.component.mjs +55 -54
- package/esm2022/table/custom-table-cell.directive.mjs +22 -18
- package/esm2022/table/filter/filter.component.mjs +60 -42
- package/esm2022/table/sort-icons.directive.mjs +16 -8
- package/esm2022/table/sub-table/sub-table.component.mjs +41 -44
- package/esm2022/table/table.component.mjs +181 -165
- package/esm2022/timepicker/timepicker.component.mjs +244 -159
- package/esm2022/timepicker/timepicker.directive.mjs +3 -2
- package/esm2022/timerangepicker/timerangepicker.component.mjs +200 -159
- package/esm2022/toast/toast.component.mjs +6 -7
- package/esm2022/toast/toast.data.service.mjs +15 -9
- package/esm2022/tooltip/tooltip-container/tooltip.component.mjs +12 -12
- package/esm2022/tooltip/tooltip.directive.mjs +4 -4
- package/esm2022/virtual-scroll/virtual-scroll.component.mjs +57 -59
- package/fab/fab.component.d.ts +12 -8
- package/fesm2022/mis-crystal-design-system-action-list.mjs +111 -88
- package/fesm2022/mis-crystal-design-system-action-list.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-async-search-dropdown.mjs +253 -324
- package/fesm2022/mis-crystal-design-system-async-search-dropdown.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-button.mjs +88 -85
- package/fesm2022/mis-crystal-design-system-button.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-checkbox.mjs +74 -69
- package/fesm2022/mis-crystal-design-system-checkbox.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-chip.mjs +19 -32
- package/fesm2022/mis-crystal-design-system-chip.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-datepicker_v2.mjs +242 -240
- package/fesm2022/mis-crystal-design-system-datepicker_v2.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-daterangepicker_v2.mjs +305 -283
- package/fesm2022/mis-crystal-design-system-daterangepicker_v2.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-drawer.mjs +7 -6
- package/fesm2022/mis-crystal-design-system-drawer.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-dropdown.mjs +183 -204
- package/fesm2022/mis-crystal-design-system-dropdown.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-dynamic-form.mjs +118 -72
- package/fesm2022/mis-crystal-design-system-dynamic-form.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-fab.mjs +28 -32
- package/fesm2022/mis-crystal-design-system-fab.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-filter.mjs +59 -57
- package/fesm2022/mis-crystal-design-system-filter.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-input-stepper.mjs +39 -49
- package/fesm2022/mis-crystal-design-system-input-stepper.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-input.mjs +62 -71
- package/fesm2022/mis-crystal-design-system-input.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-loader.mjs +7 -10
- package/fesm2022/mis-crystal-design-system-loader.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-mobile-filter.mjs +60 -60
- package/fesm2022/mis-crystal-design-system-mobile-filter.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-modal.mjs +10 -8
- package/fesm2022/mis-crystal-design-system-modal.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-multi-select-dropdown.mjs +233 -279
- package/fesm2022/mis-crystal-design-system-multi-select-dropdown.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-nested-multi-select-dropdown.mjs +249 -286
- package/fesm2022/mis-crystal-design-system-nested-multi-select-dropdown.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-phone-input.mjs +20 -42
- package/fesm2022/mis-crystal-design-system-phone-input.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-radio-button.mjs +14 -26
- package/fesm2022/mis-crystal-design-system-radio-button.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-ske-loader.mjs +14 -28
- package/fesm2022/mis-crystal-design-system-ske-loader.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-slider.mjs +25 -42
- package/fesm2022/mis-crystal-design-system-slider.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-snackbar.mjs +22 -15
- package/fesm2022/mis-crystal-design-system-snackbar.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-specificdatepicker.mjs +304 -445
- package/fesm2022/mis-crystal-design-system-specificdatepicker.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-star-rating.mjs +56 -70
- package/fesm2022/mis-crystal-design-system-star-rating.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-switch.mjs +33 -35
- package/fesm2022/mis-crystal-design-system-switch.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-table.mjs +365 -321
- package/fesm2022/mis-crystal-design-system-table.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-timepicker.mjs +245 -159
- package/fesm2022/mis-crystal-design-system-timepicker.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-timerangepicker.mjs +199 -158
- package/fesm2022/mis-crystal-design-system-timerangepicker.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-toast.mjs +18 -13
- package/fesm2022/mis-crystal-design-system-toast.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-tooltip.mjs +14 -14
- package/fesm2022/mis-crystal-design-system-tooltip.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-virtual-scroll.mjs +57 -59
- package/fesm2022/mis-crystal-design-system-virtual-scroll.mjs.map +1 -1
- package/filter/filter-panel/filter-panel.component.d.ts +14 -14
- package/input/directives/input/input.directive.d.ts +6 -10
- package/input/mis-input.component.d.ts +12 -13
- package/input-stepper/input-stepper/input-stepper.component.d.ts +8 -7
- package/loader/loader.component.d.ts +3 -6
- package/mobile-filter/mobile-filter.component.d.ts +15 -15
- package/modal/module-wrapper/module-wrapper.component.d.ts +2 -3
- package/multi-select-dropdown/multi-select-dropdown.component.d.ts +89 -51
- package/nested-multi-select-dropdown/nested-multi-select-dropdown.component.d.ts +99 -56
- package/package.json +17 -17
- package/phone-input/phone-input.component.d.ts +16 -18
- package/radio-button/radio-button.component.d.ts +9 -11
- package/ske-loader/ske-loader.component.d.ts +8 -11
- package/slider/slider.component.d.ts +8 -11
- package/slider/slider.module.d.ts +1 -2
- package/snackbar/snackbar/snackbar.component.d.ts +3 -3
- package/specificdatepicker/tz-sdp-container/tz-sdp-container.component.d.ts +35 -35
- package/specificdatepicker/tz-specificdatepicker.directive.d.ts +24 -28
- package/star-rating/star-rating.component.d.ts +18 -18
- package/switch/switch.component.d.ts +8 -10
- package/table/actions-cell/actions-cell.component.d.ts +14 -14
- package/table/custom-table-cell.directive.d.ts +3 -3
- package/table/filter/filter.component.d.ts +9 -9
- package/table/sub-table/sub-table.component.d.ts +5 -5
- package/table/table.component.d.ts +38 -35
- package/timepicker/timepicker.component.d.ts +29 -28
- package/timerangepicker/timerangepicker.component.d.ts +36 -33
- package/toast/toast.data.service.d.ts +1 -1
- package/tooltip/tooltip-container/tooltip.component.d.ts +4 -4
- package/virtual-scroll/virtual-scroll.component.d.ts +8 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, Component, Inject, HostListener,
|
|
2
|
+
import { InjectionToken, signal, computed, Component, Inject, HostListener, input, output, Injector, Directive, Self, Optional, NgModule } from '@angular/core';
|
|
3
3
|
import dayjs from 'dayjs';
|
|
4
4
|
import timezone from 'dayjs/plugin/timezone';
|
|
5
5
|
import utc from 'dayjs/plugin/utc';
|
|
@@ -86,7 +86,7 @@ function TzDrpContainerComponent_div_3_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
86
86
|
const item_r3 = ctx.$implicit;
|
|
87
87
|
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
88
88
|
i0.ɵɵadvance();
|
|
89
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c2, ctx_r3.selectedItemLabel === item_r3.label));
|
|
89
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c2, ctx_r3.selectedItemLabel() === item_r3.label));
|
|
90
90
|
i0.ɵɵadvance();
|
|
91
91
|
i0.ɵɵtextInterpolate1(" ", item_r3.label, " ");
|
|
92
92
|
} }
|
|
@@ -104,7 +104,7 @@ function TzDrpContainerComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
104
104
|
i0.ɵɵadvance();
|
|
105
105
|
i0.ɵɵproperty("ngForOf", (tmp_1_0 = ctx_r3.data == null ? null : ctx_r3.data.dpConfig == null ? null : ctx_r3.data.dpConfig.ranges) !== null && tmp_1_0 !== undefined ? tmp_1_0 : i0.ɵɵpureFunction0(2, _c1));
|
|
106
106
|
i0.ɵɵadvance(2);
|
|
107
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c2, ctx_r3.selectedItemLabel === "Custom Range"));
|
|
107
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c2, ctx_r3.selectedItemLabel() === "Custom Range"));
|
|
108
108
|
} }
|
|
109
109
|
function TzDrpContainerComponent_div_17_Template(rf, ctx) { if (rf & 1) {
|
|
110
110
|
i0.ɵɵelementStart(0, "div", 24)(1, "span");
|
|
@@ -123,7 +123,7 @@ function TzDrpContainerComponent_div_19_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
123
123
|
const day_r7 = i0.ɵɵnextContext().$implicit;
|
|
124
124
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
125
125
|
i0.ɵɵproperty("tabindex", day_r7.isDisabledDay ? -1 : 0);
|
|
126
|
-
i0.ɵɵattribute("aria-label", ctx_r3.retractDayMonth(day_r7.date, ctx_r3.currentMonth, ctx_r3.currentYearNumber));
|
|
126
|
+
i0.ɵɵattribute("aria-label", ctx_r3.retractDayMonth(day_r7.date, ctx_r3.currentMonth(), ctx_r3.currentYearNumber()));
|
|
127
127
|
i0.ɵɵadvance();
|
|
128
128
|
i0.ɵɵtextInterpolate1(" ", day_r7.date, " ");
|
|
129
129
|
} }
|
|
@@ -156,7 +156,7 @@ function TzDrpContainerComponent_div_32_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
156
156
|
const day_r10 = i0.ɵɵnextContext().$implicit;
|
|
157
157
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
158
158
|
i0.ɵɵproperty("tabindex", day_r10.isDisabledDay ? -1 : 0);
|
|
159
|
-
i0.ɵɵattribute("aria-label", ctx_r3.retractDayMonth(day_r10.date, ctx_r3.nextMonth, ctx_r3.nextYearNumber));
|
|
159
|
+
i0.ɵɵattribute("aria-label", ctx_r3.retractDayMonth(day_r10.date, ctx_r3.nextMonth(), ctx_r3.nextYearNumber()));
|
|
160
160
|
i0.ɵɵadvance();
|
|
161
161
|
i0.ɵɵtextInterpolate1(" ", day_r10.date, " ");
|
|
162
162
|
} }
|
|
@@ -175,7 +175,7 @@ function TzDrpContainerComponent_div_32_Template(rf, ctx) { if (rf & 1) {
|
|
|
175
175
|
function TzDrpContainerComponent_div_33_select_9_Template(rf, ctx) { if (rf & 1) {
|
|
176
176
|
const _r12 = i0.ɵɵgetCurrentView();
|
|
177
177
|
i0.ɵɵelementStart(0, "select", 35);
|
|
178
|
-
i0.ɵɵ
|
|
178
|
+
i0.ɵɵlistener("ngModelChange", function TzDrpContainerComponent_div_33_select_9_Template_select_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.startAmPmSignal.set($event)); });
|
|
179
179
|
i0.ɵɵelementStart(1, "option", 36);
|
|
180
180
|
i0.ɵɵtext(2, "AM");
|
|
181
181
|
i0.ɵɵelementEnd();
|
|
@@ -184,12 +184,12 @@ function TzDrpContainerComponent_div_33_select_9_Template(rf, ctx) { if (rf & 1)
|
|
|
184
184
|
i0.ɵɵelementEnd()();
|
|
185
185
|
} if (rf & 2) {
|
|
186
186
|
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
187
|
-
i0.ɵɵ
|
|
187
|
+
i0.ɵɵproperty("ngModel", ctx_r3.startAmPm());
|
|
188
188
|
} }
|
|
189
189
|
function TzDrpContainerComponent_div_33_select_18_Template(rf, ctx) { if (rf & 1) {
|
|
190
190
|
const _r13 = i0.ɵɵgetCurrentView();
|
|
191
191
|
i0.ɵɵelementStart(0, "select", 35);
|
|
192
|
-
i0.ɵɵ
|
|
192
|
+
i0.ɵɵlistener("ngModelChange", function TzDrpContainerComponent_div_33_select_18_Template_select_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r13); const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.endAmPmSignal.set($event)); });
|
|
193
193
|
i0.ɵɵelementStart(1, "option", 36);
|
|
194
194
|
i0.ɵɵtext(2, "AM");
|
|
195
195
|
i0.ɵɵelementEnd();
|
|
@@ -198,7 +198,7 @@ function TzDrpContainerComponent_div_33_select_18_Template(rf, ctx) { if (rf & 1
|
|
|
198
198
|
i0.ɵɵelementEnd()();
|
|
199
199
|
} if (rf & 2) {
|
|
200
200
|
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
201
|
-
i0.ɵɵ
|
|
201
|
+
i0.ɵɵproperty("ngModel", ctx_r3.endAmPm());
|
|
202
202
|
} }
|
|
203
203
|
function TzDrpContainerComponent_div_33_Template(rf, ctx) { if (rf & 1) {
|
|
204
204
|
const _r11 = i0.ɵɵgetCurrentView();
|
|
@@ -206,14 +206,13 @@ function TzDrpContainerComponent_div_33_Template(rf, ctx) { if (rf & 1) {
|
|
|
206
206
|
i0.ɵɵtext(3, "From");
|
|
207
207
|
i0.ɵɵelementEnd();
|
|
208
208
|
i0.ɵɵelementStart(4, "div", 30)(5, "input", 31);
|
|
209
|
-
i0.ɵɵlistener("ngModelChange", function TzDrpContainerComponent_div_33_Template_input_ngModelChange_5_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r3 = i0.ɵɵnextContext(); ctx_r3.is12HourFormat() ? ctx_r3.
|
|
209
|
+
i0.ɵɵlistener("ngModelChange", function TzDrpContainerComponent_div_33_Template_input_ngModelChange_5_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r3 = i0.ɵɵnextContext(); ctx_r3.is12HourFormat() ? ctx_r3.startHourSignal.set($event) : ctx_r3.startHour24Signal.set($event); return i0.ɵɵresetView(ctx_r3.onStartHourInput()); });
|
|
210
210
|
i0.ɵɵelementEnd();
|
|
211
211
|
i0.ɵɵelementStart(6, "span", 32);
|
|
212
212
|
i0.ɵɵtext(7, ":");
|
|
213
213
|
i0.ɵɵelementEnd();
|
|
214
214
|
i0.ɵɵelementStart(8, "input", 33);
|
|
215
|
-
i0.ɵɵ
|
|
216
|
-
i0.ɵɵlistener("input", function TzDrpContainerComponent_div_33_Template_input_input_8_listener() { i0.ɵɵrestoreView(_r11); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.onStartMinuteInput()); });
|
|
215
|
+
i0.ɵɵlistener("ngModelChange", function TzDrpContainerComponent_div_33_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.startMinuteSignal.set($event)); })("input", function TzDrpContainerComponent_div_33_Template_input_input_8_listener() { i0.ɵɵrestoreView(_r11); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.onStartMinuteInput()); });
|
|
217
216
|
i0.ɵɵelementEnd();
|
|
218
217
|
i0.ɵɵtemplate(9, TzDrpContainerComponent_div_33_select_9_Template, 5, 1, "select", 34);
|
|
219
218
|
i0.ɵɵelementEnd()();
|
|
@@ -221,29 +220,28 @@ function TzDrpContainerComponent_div_33_Template(rf, ctx) { if (rf & 1) {
|
|
|
221
220
|
i0.ɵɵtext(12, "To");
|
|
222
221
|
i0.ɵɵelementEnd();
|
|
223
222
|
i0.ɵɵelementStart(13, "div", 30)(14, "input", 31);
|
|
224
|
-
i0.ɵɵlistener("ngModelChange", function TzDrpContainerComponent_div_33_Template_input_ngModelChange_14_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r3 = i0.ɵɵnextContext(); ctx_r3.is12HourFormat() ? ctx_r3.
|
|
223
|
+
i0.ɵɵlistener("ngModelChange", function TzDrpContainerComponent_div_33_Template_input_ngModelChange_14_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r3 = i0.ɵɵnextContext(); ctx_r3.is12HourFormat() ? ctx_r3.endHourSignal.set($event) : ctx_r3.endHour24Signal.set($event); return i0.ɵɵresetView(ctx_r3.onEndHourInput()); });
|
|
225
224
|
i0.ɵɵelementEnd();
|
|
226
225
|
i0.ɵɵelementStart(15, "span", 32);
|
|
227
226
|
i0.ɵɵtext(16, ":");
|
|
228
227
|
i0.ɵɵelementEnd();
|
|
229
228
|
i0.ɵɵelementStart(17, "input", 33);
|
|
230
|
-
i0.ɵɵ
|
|
231
|
-
i0.ɵɵlistener("input", function TzDrpContainerComponent_div_33_Template_input_input_17_listener() { i0.ɵɵrestoreView(_r11); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.onEndMinuteInput()); });
|
|
229
|
+
i0.ɵɵlistener("ngModelChange", function TzDrpContainerComponent_div_33_Template_input_ngModelChange_17_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.endMinuteSignal.set($event)); })("input", function TzDrpContainerComponent_div_33_Template_input_input_17_listener() { i0.ɵɵrestoreView(_r11); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.onEndMinuteInput()); });
|
|
232
230
|
i0.ɵɵelementEnd();
|
|
233
231
|
i0.ɵɵtemplate(18, TzDrpContainerComponent_div_33_select_18_Template, 5, 1, "select", 34);
|
|
234
232
|
i0.ɵɵelementEnd()()();
|
|
235
233
|
} if (rf & 2) {
|
|
236
234
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
237
235
|
i0.ɵɵadvance(5);
|
|
238
|
-
i0.ɵɵproperty("ngModel", ctx_r3.is12HourFormat() ? ctx_r3.startHour : ctx_r3.startHour24)("min", ctx_r3.is12HourFormat() ? 1 : 0)("max", ctx_r3.is12HourFormat() ? 12 : 23);
|
|
236
|
+
i0.ɵɵproperty("ngModel", ctx_r3.is12HourFormat() ? ctx_r3.startHour() : ctx_r3.startHour24())("min", ctx_r3.is12HourFormat() ? 1 : 0)("max", ctx_r3.is12HourFormat() ? 12 : 23);
|
|
239
237
|
i0.ɵɵadvance(3);
|
|
240
|
-
i0.ɵɵ
|
|
238
|
+
i0.ɵɵproperty("ngModel", ctx_r3.startMinute());
|
|
241
239
|
i0.ɵɵadvance();
|
|
242
240
|
i0.ɵɵproperty("ngIf", ctx_r3.is12HourFormat());
|
|
243
241
|
i0.ɵɵadvance(5);
|
|
244
|
-
i0.ɵɵproperty("ngModel", ctx_r3.is12HourFormat() ? ctx_r3.endHour : ctx_r3.endHour24)("min", ctx_r3.is12HourFormat() ? 1 : 0)("max", ctx_r3.is12HourFormat() ? 12 : 23);
|
|
242
|
+
i0.ɵɵproperty("ngModel", ctx_r3.is12HourFormat() ? ctx_r3.endHour() : ctx_r3.endHour24())("min", ctx_r3.is12HourFormat() ? 1 : 0)("max", ctx_r3.is12HourFormat() ? 12 : 23);
|
|
245
243
|
i0.ɵɵadvance(3);
|
|
246
|
-
i0.ɵɵ
|
|
244
|
+
i0.ɵɵproperty("ngModel", ctx_r3.endMinute());
|
|
247
245
|
i0.ɵɵadvance();
|
|
248
246
|
i0.ɵɵproperty("ngIf", ctx_r3.is12HourFormat());
|
|
249
247
|
} }
|
|
@@ -261,33 +259,65 @@ class TzDrpContainerComponent {
|
|
|
261
259
|
return dayjs(...args);
|
|
262
260
|
};
|
|
263
261
|
this.rawWeekDays = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"];
|
|
264
|
-
|
|
265
|
-
this.
|
|
266
|
-
this.
|
|
267
|
-
this.
|
|
268
|
-
this.
|
|
269
|
-
this.
|
|
270
|
-
this.
|
|
271
|
-
this.
|
|
272
|
-
|
|
273
|
-
this.
|
|
274
|
-
this.
|
|
275
|
-
this.
|
|
276
|
-
this.
|
|
277
|
-
this.
|
|
278
|
-
this.
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
this.
|
|
262
|
+
// Signal-based state management
|
|
263
|
+
this.weekDaysSignal = signal([]);
|
|
264
|
+
this.currentMonthNumberSignal = signal(0);
|
|
265
|
+
this.currentMonthSignal = signal("January");
|
|
266
|
+
this.currentYearNumberSignal = signal(0);
|
|
267
|
+
this.currentMonthDatesSignal = signal([]);
|
|
268
|
+
this.nextMonthNumberSignal = signal(0);
|
|
269
|
+
this.nextMonthSignal = signal("January");
|
|
270
|
+
this.nextYearNumberSignal = signal(0);
|
|
271
|
+
this.nextMonthDatesSignal = signal([]);
|
|
272
|
+
this.isPreviousMonthDisabledSignal = signal(false);
|
|
273
|
+
this.isNextMonthDisabledSignal = signal(false);
|
|
274
|
+
this.selectionStartedSignal = signal(false);
|
|
275
|
+
this.localSelectedDatesSignal = signal({ startDate: null, endDate: null });
|
|
276
|
+
this.isDatesValidSignal = signal(false);
|
|
277
|
+
this.selectedItemLabelSignal = signal(this.CUSTOM_RANGE_LABEL);
|
|
278
|
+
// Time selection signals
|
|
279
|
+
this.startHourSignal = signal(12);
|
|
280
|
+
this.startMinuteSignal = signal(0);
|
|
281
|
+
this.startAmPmSignal = signal('AM');
|
|
282
|
+
this.endHourSignal = signal(12);
|
|
283
|
+
this.endMinuteSignal = signal(0);
|
|
284
|
+
this.endAmPmSignal = signal('AM');
|
|
285
|
+
this.startHour24Signal = signal(12);
|
|
286
|
+
this.endHour24Signal = signal(12);
|
|
287
|
+
// Computed properties for template access
|
|
288
|
+
this.weekDays = computed(() => this.weekDaysSignal());
|
|
289
|
+
this.currentMonthNumber = computed(() => this.currentMonthNumberSignal());
|
|
290
|
+
this.currentMonth = computed(() => this.currentMonthSignal());
|
|
291
|
+
this.currentYearNumber = computed(() => this.currentYearNumberSignal());
|
|
292
|
+
this.currentMonthDates = computed(() => this.currentMonthDatesSignal());
|
|
293
|
+
this.nextMonthNumber = computed(() => this.nextMonthNumberSignal());
|
|
294
|
+
this.nextMonth = computed(() => this.nextMonthSignal());
|
|
295
|
+
this.nextYearNumber = computed(() => this.nextYearNumberSignal());
|
|
296
|
+
this.nextMonthDates = computed(() => this.nextMonthDatesSignal());
|
|
297
|
+
this.isPreviousMonthDisabled = computed(() => this.isPreviousMonthDisabledSignal());
|
|
298
|
+
this.isNextMonthDisabled = computed(() => this.isNextMonthDisabledSignal());
|
|
299
|
+
this.selectionStarted = computed(() => this.selectionStartedSignal());
|
|
300
|
+
this.localSelectedDates = computed(() => this.localSelectedDatesSignal());
|
|
301
|
+
this.isDatesValid = computed(() => this.isDatesValidSignal());
|
|
302
|
+
this.selectedItemLabel = computed(() => this.selectedItemLabelSignal());
|
|
303
|
+
// Time functionality computed properties
|
|
304
|
+
this.startHour = computed(() => this.startHourSignal());
|
|
305
|
+
this.startMinute = computed(() => this.startMinuteSignal());
|
|
306
|
+
this.startAmPm = computed(() => this.startAmPmSignal());
|
|
307
|
+
this.endHour = computed(() => this.endHourSignal());
|
|
308
|
+
this.endMinute = computed(() => this.endMinuteSignal());
|
|
309
|
+
this.endAmPm = computed(() => this.endAmPmSignal());
|
|
310
|
+
this.startHour24 = computed(() => this.startHour24Signal());
|
|
311
|
+
this.endHour24 = computed(() => this.endHour24Signal());
|
|
282
312
|
this.data = data;
|
|
283
|
-
this.
|
|
284
|
-
this.
|
|
285
|
-
if (this.
|
|
286
|
-
this.
|
|
313
|
+
this.localSelectedDatesSignal.set(this.data.dates);
|
|
314
|
+
this.isDatesValidSignal.set(false);
|
|
315
|
+
if (this.data.dates.startDate && this.data.dates.endDate) {
|
|
316
|
+
this.isDatesValidSignal.set(true);
|
|
287
317
|
}
|
|
288
318
|
// Initialize selectedItemLabel from data.selectedRangeLabel if available
|
|
289
319
|
if (this.data.selectedRangeLabel) {
|
|
290
|
-
this.
|
|
320
|
+
this.selectedItemLabelSignal.set(this.data.selectedRangeLabel);
|
|
291
321
|
}
|
|
292
322
|
// Initialize dayjsInstance with timezone handling
|
|
293
323
|
if (this.data?.dpConfig?.timezone) {
|
|
@@ -301,16 +331,17 @@ class TzDrpContainerComponent {
|
|
|
301
331
|
}
|
|
302
332
|
};
|
|
303
333
|
}
|
|
304
|
-
|
|
305
|
-
this.
|
|
306
|
-
this.
|
|
307
|
-
this.
|
|
308
|
-
this.
|
|
309
|
-
this.
|
|
310
|
-
this.
|
|
334
|
+
// Set default values safely using signals
|
|
335
|
+
this.currentMonthNumberSignal.set(this.dayjsInstance().month());
|
|
336
|
+
this.nextMonthNumberSignal.set(this.dayjsInstance().add(1, "month").month());
|
|
337
|
+
this.currentMonthSignal.set(getMonth(this.currentMonthNumberSignal()));
|
|
338
|
+
this.nextMonthSignal.set(getMonth(this.nextMonthNumberSignal()));
|
|
339
|
+
this.currentYearNumberSignal.set(this.dayjsInstance().year());
|
|
340
|
+
this.nextYearNumberSignal.set(this.dayjsInstance().add(1, "month").year());
|
|
341
|
+
this.weekDaysSignal.set(this.rawWeekDays.map((day, index) => ({
|
|
311
342
|
label: `${day[0]}${day.slice(1).toLowerCase()}`,
|
|
312
343
|
isCurrentDay: this.dayjsInstance().day() === index
|
|
313
|
-
}));
|
|
344
|
+
})));
|
|
314
345
|
if (!this.data?.dpConfig?.format) {
|
|
315
346
|
this.data.dpConfig = {
|
|
316
347
|
...this.data.dpConfig,
|
|
@@ -333,85 +364,85 @@ class TzDrpContainerComponent {
|
|
|
333
364
|
this.cancelDatePicker();
|
|
334
365
|
}
|
|
335
366
|
currentDateInstance() {
|
|
336
|
-
if (!this.
|
|
337
|
-
this.
|
|
338
|
-
this.
|
|
367
|
+
if (!this.localSelectedDatesSignal()?.startDate) {
|
|
368
|
+
this.currentMonthDatesSignal.set(this.generateDates(this.currentMonthNumberSignal(), this.currentYearNumberSignal()));
|
|
369
|
+
this.nextMonthDatesSignal.set(this.generateDates(this.nextMonthNumberSignal(), this.nextYearNumberSignal()));
|
|
339
370
|
return;
|
|
340
371
|
}
|
|
341
372
|
// Extract date part for parsing (handle both date-only and datetime formats)
|
|
342
|
-
const startDateString = this.
|
|
343
|
-
const endDateString = this.
|
|
373
|
+
const startDateString = this.localSelectedDatesSignal()?.startDate?.split(' ')[0] || this.localSelectedDatesSignal()?.startDate;
|
|
374
|
+
const endDateString = this.localSelectedDatesSignal()?.endDate?.split(' ')[0] || this.localSelectedDatesSignal()?.endDate;
|
|
344
375
|
// Validate date strings before parsing
|
|
345
376
|
if (!startDateString || startDateString === 'Invalid Date' || startDateString === 'undefined' || startDateString === 'null') {
|
|
346
|
-
this.
|
|
347
|
-
this.
|
|
377
|
+
this.currentMonthDatesSignal.set(this.generateDates(this.currentMonthNumberSignal(), this.currentYearNumberSignal()));
|
|
378
|
+
this.nextMonthDatesSignal.set(this.generateDates(this.nextMonthNumberSignal(), this.nextYearNumberSignal()));
|
|
348
379
|
return;
|
|
349
380
|
}
|
|
350
381
|
const selectedStartDate = this.dayjsInstance(startDateString, 'DD/MM/YYYY');
|
|
351
382
|
const selectedEndDate = endDateString ? this.dayjsInstance(endDateString, 'DD/MM/YYYY') : null;
|
|
352
383
|
if (selectedStartDate.isValid()) {
|
|
353
|
-
this.
|
|
354
|
-
this.
|
|
355
|
-
this.
|
|
356
|
-
this.
|
|
357
|
-
if (this.
|
|
358
|
-
this.
|
|
384
|
+
this.currentYearNumberSignal.set(selectedStartDate.year());
|
|
385
|
+
this.nextYearNumberSignal.set(selectedStartDate.add(1, "month").year());
|
|
386
|
+
this.currentMonthNumberSignal.set(selectedStartDate.get("month"));
|
|
387
|
+
this.nextMonthNumberSignal.set(selectedStartDate.add(1, "month").month());
|
|
388
|
+
if (this.currentMonthNumberSignal() === -1) {
|
|
389
|
+
this.currentMonthNumberSignal.set(11);
|
|
359
390
|
}
|
|
360
|
-
if (this.
|
|
361
|
-
this.
|
|
391
|
+
if (this.nextMonthNumberSignal() === -1) {
|
|
392
|
+
this.nextMonthNumberSignal.set(11);
|
|
362
393
|
}
|
|
363
|
-
this.
|
|
364
|
-
this.
|
|
394
|
+
this.currentMonthSignal.set(getMonth(this.currentMonthNumberSignal()));
|
|
395
|
+
this.nextMonthSignal.set(getMonth(this.nextMonthNumberSignal()));
|
|
365
396
|
}
|
|
366
397
|
// If we have an end date, use it to determine the next month
|
|
367
398
|
if (selectedEndDate && selectedEndDate.isValid() && selectedEndDate.isAfter(selectedStartDate, 'month')) {
|
|
368
|
-
this.
|
|
369
|
-
this.
|
|
370
|
-
this.
|
|
399
|
+
this.nextMonthNumberSignal.set(selectedEndDate.month());
|
|
400
|
+
this.nextYearNumberSignal.set(selectedEndDate.year());
|
|
401
|
+
this.nextMonthSignal.set(getMonth(this.nextMonthNumberSignal()));
|
|
371
402
|
}
|
|
372
|
-
this.
|
|
373
|
-
this.
|
|
403
|
+
this.currentMonthDatesSignal.set(this.generateDates(this.currentMonthNumberSignal(), this.currentYearNumberSignal()));
|
|
404
|
+
this.nextMonthDatesSignal.set(this.generateDates(this.nextMonthNumberSignal(), this.nextYearNumberSignal()));
|
|
374
405
|
}
|
|
375
406
|
calculateMinMaxDays() {
|
|
376
|
-
const currentInstance = this.dayjsInstance().year(this.
|
|
407
|
+
const currentInstance = this.dayjsInstance().year(this.currentYearNumberSignal()).month(this.currentMonthNumberSignal());
|
|
377
408
|
const minDate = !!this.data.dpConfig.minDate ? this.dayjsInstance(this.data.dpConfig.minDate, this.data.dpConfig.format) : dayjs('invalid');
|
|
378
409
|
if (minDate.isValid()) {
|
|
379
|
-
this.
|
|
410
|
+
this.isPreviousMonthDisabledSignal.set(minDate.isSameOrAfter(currentInstance, "month"));
|
|
380
411
|
}
|
|
381
412
|
const maxDate = !!this.data.dpConfig.maxDate ? this.dayjsInstance(this.data.dpConfig.maxDate, this.data.dpConfig.format) : dayjs('invalid');
|
|
382
413
|
if (maxDate.isValid()) {
|
|
383
|
-
this.
|
|
414
|
+
this.isNextMonthDisabledSignal.set(maxDate.isSameOrBefore(currentInstance, "month"));
|
|
384
415
|
}
|
|
385
416
|
}
|
|
386
417
|
navigateMonth(direction) {
|
|
387
|
-
let thisMonth = dayjs().year(this.
|
|
418
|
+
let thisMonth = dayjs().year(this.currentYearNumberSignal()).month(this.currentMonthNumberSignal());
|
|
388
419
|
if (direction === "NEXT") {
|
|
389
420
|
thisMonth = thisMonth.add(1, "month");
|
|
390
421
|
}
|
|
391
422
|
else if (direction === "PREVIOUS") {
|
|
392
423
|
thisMonth = thisMonth.subtract(1, "month");
|
|
393
424
|
}
|
|
394
|
-
this.
|
|
395
|
-
this.
|
|
396
|
-
this.
|
|
397
|
-
this.
|
|
398
|
-
if (this.
|
|
399
|
-
this.
|
|
425
|
+
this.currentMonthNumberSignal.set(thisMonth.month());
|
|
426
|
+
this.nextMonthNumberSignal.set(thisMonth.clone().add(1, "month").month());
|
|
427
|
+
this.currentMonthSignal.set(getMonth(this.currentMonthNumber()));
|
|
428
|
+
this.nextMonthSignal.set(getMonth(this.nextMonthNumber()));
|
|
429
|
+
if (this.nextMonthNumberSignal() === 0 && direction === "PREVIOUS") {
|
|
430
|
+
this.currentYearNumberSignal.set(this.currentYearNumberSignal() - 1);
|
|
400
431
|
}
|
|
401
|
-
else if (this.
|
|
402
|
-
this.
|
|
432
|
+
else if (this.currentMonthNumberSignal() === 11 && direction === "NEXT") {
|
|
433
|
+
this.nextYearNumberSignal.set(this.nextYearNumberSignal() + 1);
|
|
403
434
|
}
|
|
404
|
-
else if (this.
|
|
405
|
-
this.
|
|
435
|
+
else if (this.currentMonthNumberSignal() === 0 && direction === "NEXT") {
|
|
436
|
+
this.currentYearNumberSignal.set(this.currentYearNumberSignal() + 1);
|
|
406
437
|
}
|
|
407
|
-
else if (this.
|
|
408
|
-
this.
|
|
438
|
+
else if (this.nextMonthNumberSignal() === 11 && direction === "PREVIOUS") {
|
|
439
|
+
this.nextYearNumberSignal.set(this.nextYearNumberSignal() - 1);
|
|
409
440
|
}
|
|
410
441
|
else {
|
|
411
|
-
this.
|
|
442
|
+
this.nextYearNumberSignal.set(this.currentYearNumberSignal());
|
|
412
443
|
}
|
|
413
|
-
this.
|
|
414
|
-
this.
|
|
444
|
+
this.currentMonthDatesSignal.set(this.generateDates(this.currentMonthNumber(), this.currentYearNumber()));
|
|
445
|
+
this.nextMonthDatesSignal.set(this.generateDates(this.nextMonthNumber(), this.nextYearNumber()));
|
|
415
446
|
this.calculateMinMaxDays();
|
|
416
447
|
}
|
|
417
448
|
generateDates(month, currentYearNumber) {
|
|
@@ -457,25 +488,27 @@ class TzDrpContainerComponent {
|
|
|
457
488
|
}
|
|
458
489
|
if (this.data?.dpConfig?.maxAllowedRange > 0 &&
|
|
459
490
|
!isDisabledDay &&
|
|
460
|
-
(this.
|
|
461
|
-
const startDate = dayjs(this.
|
|
491
|
+
(this.localSelectedDatesSignal()?.startDate ?? false) && (!(this.localSelectedDatesSignal().endDate ?? false))) {
|
|
492
|
+
const startDate = dayjs(this.localSelectedDatesSignal().startDate, this.data.dpConfig.format).startOf('day');
|
|
462
493
|
const maxEndDate = startDate.clone().add(this.data.dpConfig.maxAllowedRange - 1, 'days');
|
|
463
494
|
isDisabledDay = date.isAfter(maxEndDate, 'day');
|
|
464
495
|
}
|
|
465
496
|
const isCurrentDay = this.dayjsInstance().year(currentYearNumber).month(month).date(currentDate).format(this.data.dpConfig.format) ===
|
|
466
497
|
this.dayjsInstance().format(this.data.dpConfig.format);
|
|
467
498
|
// Extract date part for comparison (handle both date-only and datetime formats)
|
|
468
|
-
const startDateString = this.
|
|
469
|
-
const endDateString = this.
|
|
499
|
+
const startDateString = this.localSelectedDatesSignal()?.startDate?.split(' ')[0] || this.localSelectedDatesSignal()?.startDate;
|
|
500
|
+
const endDateString = this.localSelectedDatesSignal()?.endDate?.split(' ')[0] || this.localSelectedDatesSignal()?.endDate;
|
|
501
|
+
// Use the custom format for comparison instead of hardcoded DD/MM/YYYY
|
|
502
|
+
const dateFormatted = date.format(this.data.dpConfig.format);
|
|
470
503
|
const isSelectedStartDay = !isDisabledDay &&
|
|
471
504
|
(startDateString ?? false) &&
|
|
472
|
-
|
|
505
|
+
dateFormatted === startDateString;
|
|
473
506
|
const isSelectedEndDay = !isDisabledDay &&
|
|
474
507
|
(endDateString ?? false) &&
|
|
475
|
-
|
|
476
|
-
// For range calculation, parse dates properly
|
|
477
|
-
const startDate = startDateString ? dayjs(startDateString,
|
|
478
|
-
const endDate = endDateString ? dayjs(endDateString,
|
|
508
|
+
dateFormatted === endDateString;
|
|
509
|
+
// For range calculation, parse dates properly using custom format
|
|
510
|
+
const startDate = startDateString ? dayjs(startDateString, this.data.dpConfig.format) : null;
|
|
511
|
+
const endDate = endDateString ? dayjs(endDateString, this.data.dpConfig.format) : null;
|
|
479
512
|
const isAfterSelectedStartDate = startDate ? this.dayjsInstance(date).isAfter(startDate, "day") : false;
|
|
480
513
|
const isBeforeSelectedEndDate = endDate ? this.dayjsInstance(date).isBefore(endDate, "day") : false;
|
|
481
514
|
const inRangeDay = startDate && endDate &&
|
|
@@ -498,53 +531,67 @@ class TzDrpContainerComponent {
|
|
|
498
531
|
return dates;
|
|
499
532
|
}
|
|
500
533
|
selectDay(from, day) {
|
|
501
|
-
if (day.date <= 0)
|
|
534
|
+
if (day.date <= 0) {
|
|
502
535
|
return;
|
|
536
|
+
}
|
|
503
537
|
if (!day.isDisabledDay) {
|
|
504
|
-
this.
|
|
505
|
-
if (this.selectionStarted) {
|
|
538
|
+
this.selectedItemLabelSignal.set(this.CUSTOM_RANGE_LABEL);
|
|
539
|
+
if (this.selectionStarted()) {
|
|
506
540
|
const dayjsDay = dayjs()
|
|
507
|
-
.year(from === "LEFT" ? this.
|
|
508
|
-
.month(from === "LEFT" ? this.
|
|
541
|
+
.year(from === "LEFT" ? this.currentYearNumberSignal() : this.nextYearNumberSignal())
|
|
542
|
+
.month(from === "LEFT" ? this.currentMonthNumberSignal() : this.nextMonthNumberSignal())
|
|
509
543
|
.date(day.date);
|
|
510
544
|
// Extract date part from existing start date for comparison
|
|
511
|
-
const startDateString = this.
|
|
512
|
-
const startDate = startDateString ? dayjs(startDateString,
|
|
545
|
+
const startDateString = this.localSelectedDatesSignal().startDate?.split(' ')[0] || this.localSelectedDatesSignal().startDate;
|
|
546
|
+
const startDate = startDateString ? dayjs(startDateString, this.data.dpConfig.format) : null;
|
|
547
|
+
// If the selected date is the same as the start date, make it a single day selection
|
|
548
|
+
if (startDate && dayjsDay.isSame(startDate, "day")) {
|
|
549
|
+
this.localSelectedDatesSignal.set({
|
|
550
|
+
startDate: dayjsDay.format(this.data.dpConfig.format),
|
|
551
|
+
endDate: dayjsDay.format(this.data.dpConfig.format),
|
|
552
|
+
selectedRangeLabel: this.CUSTOM_RANGE_LABEL
|
|
553
|
+
});
|
|
554
|
+
this.selectionStartedSignal.set(false);
|
|
555
|
+
this.currentMonthDatesSignal.set(this.generateDates(this.currentMonthNumber(), this.currentYearNumber()));
|
|
556
|
+
this.nextMonthDatesSignal.set(this.generateDates(this.nextMonthNumber(), this.nextYearNumber()));
|
|
557
|
+
this.isDatesValidSignal.set(true);
|
|
558
|
+
return;
|
|
559
|
+
}
|
|
513
560
|
// If the selected date is before the start date, make it the new start date
|
|
514
561
|
if (startDate && dayjsDay.isBefore(startDate, "day")) {
|
|
515
|
-
this.
|
|
562
|
+
this.localSelectedDatesSignal.set({
|
|
516
563
|
startDate: dayjsDay.format(this.data.dpConfig.format),
|
|
517
564
|
endDate: null,
|
|
518
565
|
selectedRangeLabel: this.CUSTOM_RANGE_LABEL
|
|
519
|
-
};
|
|
520
|
-
this.
|
|
521
|
-
this.
|
|
566
|
+
});
|
|
567
|
+
this.currentMonthDatesSignal.set(this.generateDates(this.currentMonthNumber(), this.currentYearNumber()));
|
|
568
|
+
this.nextMonthDatesSignal.set(this.generateDates(this.nextMonthNumber(), this.nextYearNumber()));
|
|
522
569
|
return;
|
|
523
570
|
}
|
|
524
|
-
this.
|
|
525
|
-
this.
|
|
526
|
-
...this.
|
|
571
|
+
this.selectionStartedSignal.set(false);
|
|
572
|
+
this.localSelectedDatesSignal.set({
|
|
573
|
+
...this.localSelectedDatesSignal(),
|
|
527
574
|
endDate: dayjsDay.format(this.data.dpConfig.format),
|
|
528
575
|
selectedRangeLabel: this.CUSTOM_RANGE_LABEL
|
|
529
|
-
};
|
|
576
|
+
});
|
|
530
577
|
}
|
|
531
578
|
else {
|
|
532
|
-
this.
|
|
533
|
-
this.
|
|
579
|
+
this.selectionStartedSignal.set(true);
|
|
580
|
+
this.localSelectedDatesSignal.set({
|
|
534
581
|
startDate: dayjs()
|
|
535
|
-
.year(from === "LEFT" ? this.
|
|
536
|
-
.month(from === "LEFT" ? this.
|
|
582
|
+
.year(from === "LEFT" ? this.currentYearNumberSignal() : this.nextYearNumberSignal())
|
|
583
|
+
.month(from === "LEFT" ? this.currentMonthNumberSignal() : this.nextMonthNumberSignal())
|
|
537
584
|
.date(day.date)
|
|
538
585
|
.format(this.data.dpConfig.format),
|
|
539
586
|
endDate: null,
|
|
540
587
|
selectedRangeLabel: this.CUSTOM_RANGE_LABEL
|
|
541
|
-
};
|
|
588
|
+
});
|
|
542
589
|
}
|
|
543
|
-
this.
|
|
544
|
-
this.
|
|
545
|
-
this.
|
|
546
|
-
if (this.
|
|
547
|
-
this.
|
|
590
|
+
this.currentMonthDatesSignal.set(this.generateDates(this.currentMonthNumber(), this.currentYearNumber()));
|
|
591
|
+
this.nextMonthDatesSignal.set(this.generateDates(this.nextMonthNumber(), this.nextYearNumber()));
|
|
592
|
+
this.isDatesValidSignal.set(false);
|
|
593
|
+
if (this.localSelectedDatesSignal().startDate && this.localSelectedDatesSignal().endDate) {
|
|
594
|
+
this.isDatesValidSignal.set(true);
|
|
548
595
|
}
|
|
549
596
|
}
|
|
550
597
|
if (day.toastMessage) {
|
|
@@ -567,39 +614,39 @@ class TzDrpContainerComponent {
|
|
|
567
614
|
this.toast.displayMsg("Selected range contains disabled dates or is out of bounds.", 4000);
|
|
568
615
|
return;
|
|
569
616
|
}
|
|
570
|
-
this.
|
|
571
|
-
this.
|
|
572
|
-
this.
|
|
573
|
-
if (this.
|
|
574
|
-
this.
|
|
575
|
-
this.
|
|
617
|
+
this.selectedItemLabelSignal.set(item.label);
|
|
618
|
+
this.currentMonthNumberSignal.set(startDate.month());
|
|
619
|
+
this.currentYearNumberSignal.set(startDate.year());
|
|
620
|
+
if (this.currentMonthNumberSignal() === 11) {
|
|
621
|
+
this.nextMonthNumberSignal.set(0);
|
|
622
|
+
this.nextYearNumberSignal.set(this.currentYearNumberSignal() + 1);
|
|
576
623
|
}
|
|
577
624
|
else {
|
|
578
|
-
this.
|
|
579
|
-
this.
|
|
625
|
+
this.nextMonthNumberSignal.set(this.currentMonthNumberSignal() + 1);
|
|
626
|
+
this.nextYearNumberSignal.set(this.currentYearNumberSignal());
|
|
580
627
|
}
|
|
581
|
-
this.
|
|
628
|
+
this.localSelectedDatesSignal.set({
|
|
582
629
|
startDate: startDateStr,
|
|
583
630
|
endDate: endDateStr,
|
|
584
631
|
selectedRangeLabel: item.label
|
|
585
|
-
};
|
|
586
|
-
this.
|
|
587
|
-
this.
|
|
588
|
-
this.
|
|
589
|
-
this.
|
|
590
|
-
this.
|
|
632
|
+
});
|
|
633
|
+
this.currentMonthSignal.set(getMonth(this.currentMonthNumber()));
|
|
634
|
+
this.nextMonthSignal.set(getMonth(this.nextMonthNumber()));
|
|
635
|
+
this.currentMonthDatesSignal.set(this.generateDates(this.currentMonthNumber(), this.currentYearNumber()));
|
|
636
|
+
this.nextMonthDatesSignal.set(this.generateDates(this.nextMonthNumber(), this.nextYearNumber()));
|
|
637
|
+
this.isDatesValidSignal.set(!!(this.localSelectedDatesSignal().startDate && this.localSelectedDatesSignal().endDate));
|
|
591
638
|
}
|
|
592
639
|
resetRange() {
|
|
593
|
-
this.
|
|
594
|
-
this.
|
|
640
|
+
this.selectedItemLabelSignal.set(this.CUSTOM_RANGE_LABEL);
|
|
641
|
+
this.localSelectedDatesSignal.set({
|
|
595
642
|
startDate: null,
|
|
596
643
|
endDate: null,
|
|
597
644
|
selectedRangeLabel: this.CUSTOM_RANGE_LABEL
|
|
598
|
-
};
|
|
599
|
-
this.
|
|
600
|
-
this.
|
|
601
|
-
this.
|
|
602
|
-
this.
|
|
645
|
+
});
|
|
646
|
+
this.selectionStartedSignal.set(false);
|
|
647
|
+
this.isDatesValidSignal.set(false);
|
|
648
|
+
this.currentMonthDatesSignal.set(this.generateDates(this.currentMonthNumber(), this.currentYearNumber()));
|
|
649
|
+
this.nextMonthDatesSignal.set(this.generateDates(this.nextMonthNumber(), this.nextYearNumber()));
|
|
603
650
|
}
|
|
604
651
|
applyDates() {
|
|
605
652
|
// If time is enabled, append time to the dates before applying
|
|
@@ -607,16 +654,16 @@ class TzDrpContainerComponent {
|
|
|
607
654
|
let startTime;
|
|
608
655
|
let endTime;
|
|
609
656
|
if (this.is12HourFormat()) {
|
|
610
|
-
startTime = this.formatTime(this.startHour, this.startMinute, this.startAmPm);
|
|
611
|
-
endTime = this.formatTime(this.endHour, this.endMinute, this.endAmPm);
|
|
657
|
+
startTime = this.formatTime(this.startHour(), this.startMinute(), this.startAmPm());
|
|
658
|
+
endTime = this.formatTime(this.endHour(), this.endMinute(), this.endAmPm());
|
|
612
659
|
}
|
|
613
660
|
else {
|
|
614
|
-
startTime = this.formatTime(this.startHour24, this.startMinute, '');
|
|
615
|
-
endTime = this.formatTime(this.endHour24, this.endMinute, '');
|
|
661
|
+
startTime = this.formatTime(this.startHour24(), this.startMinute(), '');
|
|
662
|
+
endTime = this.formatTime(this.endHour24(), this.endMinute(), '');
|
|
616
663
|
}
|
|
617
664
|
// Extract only the date part (before any existing time) and append the selected time
|
|
618
|
-
const startDateOnly = this.
|
|
619
|
-
const endDateOnly = this.
|
|
665
|
+
const startDateOnly = this.localSelectedDatesSignal().startDate?.split(' ')[0] || this.localSelectedDatesSignal().startDate;
|
|
666
|
+
const endDateOnly = this.localSelectedDatesSignal().endDate?.split(' ')[0] || this.localSelectedDatesSignal().endDate;
|
|
620
667
|
const startDateWithTime = startDateOnly + ' ' + startTime;
|
|
621
668
|
const endDateWithTime = endDateOnly + ' ' + endTime;
|
|
622
669
|
this.data.dateChange({
|
|
@@ -625,7 +672,7 @@ class TzDrpContainerComponent {
|
|
|
625
672
|
});
|
|
626
673
|
}
|
|
627
674
|
else {
|
|
628
|
-
this.data.dateChange(this.
|
|
675
|
+
this.data.dateChange(this.localSelectedDatesSignal());
|
|
629
676
|
}
|
|
630
677
|
}
|
|
631
678
|
cancelDatePicker() {
|
|
@@ -634,25 +681,25 @@ class TzDrpContainerComponent {
|
|
|
634
681
|
// Time-related methods
|
|
635
682
|
onStartHourInput() {
|
|
636
683
|
if (this.is12HourFormat()) {
|
|
637
|
-
this.
|
|
684
|
+
this.startHourSignal.set(this.validateHourInput(this.startHour()));
|
|
638
685
|
}
|
|
639
686
|
else {
|
|
640
|
-
this.
|
|
687
|
+
this.startHour24Signal.set(this.validateHourInput24(this.startHour24()));
|
|
641
688
|
}
|
|
642
689
|
}
|
|
643
690
|
onStartMinuteInput() {
|
|
644
|
-
this.
|
|
691
|
+
this.startMinuteSignal.set(this.validateMinuteInput(this.startMinute()));
|
|
645
692
|
}
|
|
646
693
|
onEndHourInput() {
|
|
647
694
|
if (this.is12HourFormat()) {
|
|
648
|
-
this.
|
|
695
|
+
this.endHourSignal.set(this.validateHourInput(this.endHour()));
|
|
649
696
|
}
|
|
650
697
|
else {
|
|
651
|
-
this.
|
|
698
|
+
this.endHour24Signal.set(this.validateHourInput24(this.endHour24()));
|
|
652
699
|
}
|
|
653
700
|
}
|
|
654
701
|
onEndMinuteInput() {
|
|
655
|
-
this.
|
|
702
|
+
this.endMinuteSignal.set(this.validateMinuteInput(this.endMinute()));
|
|
656
703
|
}
|
|
657
704
|
validateHourInput(hour) {
|
|
658
705
|
// Apply bounds based on format
|
|
@@ -703,16 +750,16 @@ class TzDrpContainerComponent {
|
|
|
703
750
|
// Initialize time values from existing selected dates if they contain time
|
|
704
751
|
let startTimeInitialized = false;
|
|
705
752
|
let endTimeInitialized = false;
|
|
706
|
-
if (this.data.dpConfig.enableTime && this.
|
|
707
|
-
const startDateParts = this.
|
|
753
|
+
if (this.data.dpConfig.enableTime && this.localSelectedDatesSignal().startDate) {
|
|
754
|
+
const startDateParts = this.localSelectedDatesSignal().startDate.split(' ');
|
|
708
755
|
if (startDateParts.length > 1) {
|
|
709
756
|
const timePart = startDateParts.slice(1).join(' '); // Handle multiple spaces
|
|
710
757
|
this.parseTimeString(timePart, true);
|
|
711
758
|
startTimeInitialized = true;
|
|
712
759
|
}
|
|
713
760
|
}
|
|
714
|
-
if (this.data.dpConfig.enableTime && this.
|
|
715
|
-
const endDateParts = this.
|
|
761
|
+
if (this.data.dpConfig.enableTime && this.localSelectedDatesSignal().endDate) {
|
|
762
|
+
const endDateParts = this.localSelectedDatesSignal().endDate.split(' ');
|
|
716
763
|
if (endDateParts.length > 1) {
|
|
717
764
|
const timePart = endDateParts.slice(1).join(' '); // Handle multiple spaces
|
|
718
765
|
this.parseTimeString(timePart, false);
|
|
@@ -753,60 +800,60 @@ class TzDrpContainerComponent {
|
|
|
753
800
|
amPm = 'AM';
|
|
754
801
|
}
|
|
755
802
|
if (isStart) {
|
|
756
|
-
this.
|
|
757
|
-
this.
|
|
758
|
-
this.
|
|
759
|
-
this.
|
|
803
|
+
this.startHourSignal.set(hour12);
|
|
804
|
+
this.startMinuteSignal.set(currentMinute);
|
|
805
|
+
this.startAmPmSignal.set(amPm);
|
|
806
|
+
this.startHour24Signal.set(currentHour);
|
|
760
807
|
}
|
|
761
808
|
else {
|
|
762
|
-
this.
|
|
763
|
-
this.
|
|
764
|
-
this.
|
|
765
|
-
this.
|
|
809
|
+
this.endHourSignal.set(hour12);
|
|
810
|
+
this.endMinuteSignal.set(currentMinute);
|
|
811
|
+
this.endAmPmSignal.set(amPm);
|
|
812
|
+
this.endHour24Signal.set(currentHour);
|
|
766
813
|
}
|
|
767
814
|
}
|
|
768
815
|
else {
|
|
769
816
|
// Use current time directly for 24-hour format
|
|
770
817
|
if (isStart) {
|
|
771
|
-
this.
|
|
772
|
-
this.
|
|
818
|
+
this.startHour24Signal.set(currentHour);
|
|
819
|
+
this.startMinuteSignal.set(currentMinute);
|
|
773
820
|
// Also set 12-hour values for consistency
|
|
774
821
|
if (currentHour === 0) {
|
|
775
|
-
this.
|
|
776
|
-
this.
|
|
822
|
+
this.startHourSignal.set(12);
|
|
823
|
+
this.startAmPmSignal.set('AM');
|
|
777
824
|
}
|
|
778
825
|
else if (currentHour === 12) {
|
|
779
|
-
this.
|
|
780
|
-
this.
|
|
826
|
+
this.startHourSignal.set(12);
|
|
827
|
+
this.startAmPmSignal.set('PM');
|
|
781
828
|
}
|
|
782
829
|
else if (currentHour > 12) {
|
|
783
|
-
this.
|
|
784
|
-
this.
|
|
830
|
+
this.startHourSignal.set(currentHour - 12);
|
|
831
|
+
this.startAmPmSignal.set('PM');
|
|
785
832
|
}
|
|
786
833
|
else {
|
|
787
|
-
this.
|
|
788
|
-
this.
|
|
834
|
+
this.startHourSignal.set(currentHour);
|
|
835
|
+
this.startAmPmSignal.set('AM');
|
|
789
836
|
}
|
|
790
837
|
}
|
|
791
838
|
else {
|
|
792
|
-
this.
|
|
793
|
-
this.
|
|
839
|
+
this.endHour24Signal.set(currentHour);
|
|
840
|
+
this.endMinuteSignal.set(currentMinute);
|
|
794
841
|
// Also set 12-hour values for consistency
|
|
795
842
|
if (currentHour === 0) {
|
|
796
|
-
this.
|
|
797
|
-
this.
|
|
843
|
+
this.endHourSignal.set(12);
|
|
844
|
+
this.endAmPmSignal.set('AM');
|
|
798
845
|
}
|
|
799
846
|
else if (currentHour === 12) {
|
|
800
|
-
this.
|
|
801
|
-
this.
|
|
847
|
+
this.endHourSignal.set(12);
|
|
848
|
+
this.endAmPmSignal.set('PM');
|
|
802
849
|
}
|
|
803
850
|
else if (currentHour > 12) {
|
|
804
|
-
this.
|
|
805
|
-
this.
|
|
851
|
+
this.endHourSignal.set(currentHour - 12);
|
|
852
|
+
this.endAmPmSignal.set('PM');
|
|
806
853
|
}
|
|
807
854
|
else {
|
|
808
|
-
this.
|
|
809
|
-
this.
|
|
855
|
+
this.endHourSignal.set(currentHour);
|
|
856
|
+
this.endAmPmSignal.set('AM');
|
|
810
857
|
}
|
|
811
858
|
}
|
|
812
859
|
}
|
|
@@ -820,18 +867,18 @@ class TzDrpContainerComponent {
|
|
|
820
867
|
const minute = parseInt(match[2]);
|
|
821
868
|
const amPm = match[3].toUpperCase();
|
|
822
869
|
if (isStart) {
|
|
823
|
-
this.
|
|
824
|
-
this.
|
|
825
|
-
this.
|
|
870
|
+
this.startHourSignal.set(hour);
|
|
871
|
+
this.startMinuteSignal.set(minute);
|
|
872
|
+
this.startAmPmSignal.set(amPm);
|
|
826
873
|
// Also set 24-hour value for consistency
|
|
827
|
-
this.
|
|
874
|
+
this.startHour24Signal.set(hour === 12 ? (amPm === 'PM' ? 12 : 0) : (amPm === 'PM' ? hour + 12 : hour));
|
|
828
875
|
}
|
|
829
876
|
else {
|
|
830
|
-
this.
|
|
831
|
-
this.
|
|
832
|
-
this.
|
|
877
|
+
this.endHourSignal.set(hour);
|
|
878
|
+
this.endMinuteSignal.set(minute);
|
|
879
|
+
this.endAmPmSignal.set(amPm);
|
|
833
880
|
// Also set 24-hour value for consistency
|
|
834
|
-
this.
|
|
881
|
+
this.endHour24Signal.set(hour === 12 ? (amPm === 'PM' ? 12 : 0) : (amPm === 'PM' ? hour + 12 : hour));
|
|
835
882
|
}
|
|
836
883
|
}
|
|
837
884
|
}
|
|
@@ -843,46 +890,46 @@ class TzDrpContainerComponent {
|
|
|
843
890
|
const minute = parseInt(match[2]);
|
|
844
891
|
if (isStart) {
|
|
845
892
|
// Store directly in 24-hour format
|
|
846
|
-
this.
|
|
847
|
-
this.
|
|
893
|
+
this.startHour24Signal.set(hour24);
|
|
894
|
+
this.startMinuteSignal.set(minute);
|
|
848
895
|
// Also set 12-hour values for consistency (though not used in 24-hour mode)
|
|
849
896
|
if (hour24 === 0) {
|
|
850
|
-
this.
|
|
851
|
-
this.
|
|
897
|
+
this.startHourSignal.set(12);
|
|
898
|
+
this.startAmPmSignal.set('AM');
|
|
852
899
|
}
|
|
853
900
|
else if (hour24 === 12) {
|
|
854
|
-
this.
|
|
855
|
-
this.
|
|
901
|
+
this.startHourSignal.set(12);
|
|
902
|
+
this.startAmPmSignal.set('PM');
|
|
856
903
|
}
|
|
857
904
|
else if (hour24 > 12) {
|
|
858
|
-
this.
|
|
859
|
-
this.
|
|
905
|
+
this.startHourSignal.set(hour24 - 12);
|
|
906
|
+
this.startAmPmSignal.set('PM');
|
|
860
907
|
}
|
|
861
908
|
else {
|
|
862
|
-
this.
|
|
863
|
-
this.
|
|
909
|
+
this.startHourSignal.set(hour24);
|
|
910
|
+
this.startAmPmSignal.set('AM');
|
|
864
911
|
}
|
|
865
912
|
}
|
|
866
913
|
else {
|
|
867
914
|
// Store directly in 24-hour format
|
|
868
|
-
this.
|
|
869
|
-
this.
|
|
915
|
+
this.endHour24Signal.set(hour24);
|
|
916
|
+
this.endMinuteSignal.set(minute);
|
|
870
917
|
// Also set 12-hour values for consistency (though not used in 24-hour mode)
|
|
871
918
|
if (hour24 === 0) {
|
|
872
|
-
this.
|
|
873
|
-
this.
|
|
919
|
+
this.endHourSignal.set(12);
|
|
920
|
+
this.endAmPmSignal.set('AM');
|
|
874
921
|
}
|
|
875
922
|
else if (hour24 === 12) {
|
|
876
|
-
this.
|
|
877
|
-
this.
|
|
923
|
+
this.endHourSignal.set(12);
|
|
924
|
+
this.endAmPmSignal.set('PM');
|
|
878
925
|
}
|
|
879
926
|
else if (hour24 > 12) {
|
|
880
|
-
this.
|
|
881
|
-
this.
|
|
927
|
+
this.endHourSignal.set(hour24 - 12);
|
|
928
|
+
this.endAmPmSignal.set('PM');
|
|
882
929
|
}
|
|
883
930
|
else {
|
|
884
|
-
this.
|
|
885
|
-
this.
|
|
931
|
+
this.endHourSignal.set(hour24);
|
|
932
|
+
this.endAmPmSignal.set('AM');
|
|
886
933
|
}
|
|
887
934
|
}
|
|
888
935
|
}
|
|
@@ -896,7 +943,7 @@ class TzDrpContainerComponent {
|
|
|
896
943
|
i0.ɵɵelement(2, "div", 2);
|
|
897
944
|
i0.ɵɵtemplate(3, TzDrpContainerComponent_div_3_Template, 5, 5, "div", 3);
|
|
898
945
|
i0.ɵɵelementStart(4, "div", 4)(5, "div", 5)(6, "div", 6);
|
|
899
|
-
i0.ɵɵlistener("click", function TzDrpContainerComponent_Template_div_click_6_listener() { return !ctx.isPreviousMonthDisabled && ctx.navigateMonth("PREVIOUS"); })("keyup.enter", function TzDrpContainerComponent_Template_div_keyup_enter_6_listener() { return !ctx.isPreviousMonthDisabled && ctx.navigateMonth("PREVIOUS"); });
|
|
946
|
+
i0.ɵɵlistener("click", function TzDrpContainerComponent_Template_div_click_6_listener() { return !ctx.isPreviousMonthDisabled() && ctx.navigateMonth("PREVIOUS"); })("keyup.enter", function TzDrpContainerComponent_Template_div_keyup_enter_6_listener() { return !ctx.isPreviousMonthDisabled() && ctx.navigateMonth("PREVIOUS"); });
|
|
900
947
|
i0.ɵɵnamespaceSVG();
|
|
901
948
|
i0.ɵɵelementStart(7, "svg", 7);
|
|
902
949
|
i0.ɵɵelement(8, "path", 8);
|
|
@@ -907,7 +954,7 @@ class TzDrpContainerComponent {
|
|
|
907
954
|
i0.ɵɵelementEnd();
|
|
908
955
|
i0.ɵɵelement(11, "div");
|
|
909
956
|
i0.ɵɵelementStart(12, "div", 9);
|
|
910
|
-
i0.ɵɵlistener("click", function TzDrpContainerComponent_Template_div_click_12_listener() { return !ctx.isNextMonthDisabled && ctx.navigateMonth("NEXT"); })("keyup.enter", function TzDrpContainerComponent_Template_div_keyup_enter_12_listener() { return !ctx.isNextMonthDisabled && ctx.navigateMonth("NEXT"); });
|
|
957
|
+
i0.ɵɵlistener("click", function TzDrpContainerComponent_Template_div_click_12_listener() { return !ctx.isNextMonthDisabled() && ctx.navigateMonth("NEXT"); })("keyup.enter", function TzDrpContainerComponent_Template_div_keyup_enter_12_listener() { return !ctx.isNextMonthDisabled() && ctx.navigateMonth("NEXT"); });
|
|
911
958
|
i0.ɵɵnamespaceSVG();
|
|
912
959
|
i0.ɵɵelementStart(13, "svg", 7);
|
|
913
960
|
i0.ɵɵelement(14, "path", 8);
|
|
@@ -925,7 +972,7 @@ class TzDrpContainerComponent {
|
|
|
925
972
|
i0.ɵɵtext(24);
|
|
926
973
|
i0.ɵɵelementEnd();
|
|
927
974
|
i0.ɵɵelementStart(25, "div", 16);
|
|
928
|
-
i0.ɵɵlistener("click", function TzDrpContainerComponent_Template_div_click_25_listener() { return !ctx.isNextMonthDisabled && ctx.navigateMonth("NEXT"); })("keyup.enter", function TzDrpContainerComponent_Template_div_keyup_enter_25_listener() { return !ctx.isNextMonthDisabled && ctx.navigateMonth("NEXT"); });
|
|
975
|
+
i0.ɵɵlistener("click", function TzDrpContainerComponent_Template_div_click_25_listener() { return !ctx.isNextMonthDisabled() && ctx.navigateMonth("NEXT"); })("keyup.enter", function TzDrpContainerComponent_Template_div_keyup_enter_25_listener() { return !ctx.isNextMonthDisabled() && ctx.navigateMonth("NEXT"); });
|
|
929
976
|
i0.ɵɵnamespaceSVG();
|
|
930
977
|
i0.ɵɵelementStart(26, "svg", 7);
|
|
931
978
|
i0.ɵɵelement(27, "path", 8);
|
|
@@ -951,32 +998,32 @@ class TzDrpContainerComponent {
|
|
|
951
998
|
i0.ɵɵadvance(3);
|
|
952
999
|
i0.ɵɵproperty("ngIf", (ctx.data == null ? null : ctx.data.dpConfig == null ? null : ctx.data.dpConfig.ranges == null ? null : ctx.data.dpConfig.ranges.length) > 0);
|
|
953
1000
|
i0.ɵɵadvance(3);
|
|
954
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(15, _c0, ctx.isPreviousMonthDisabled));
|
|
1001
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(15, _c0, ctx.isPreviousMonthDisabled()));
|
|
955
1002
|
i0.ɵɵadvance(4);
|
|
956
|
-
i0.ɵɵtextInterpolate2(" ", ctx.currentMonth, " ", ctx.currentYearNumber, " ");
|
|
1003
|
+
i0.ɵɵtextInterpolate2(" ", ctx.currentMonth(), " ", ctx.currentYearNumber(), " ");
|
|
957
1004
|
i0.ɵɵadvance(2);
|
|
958
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(17, _c0, ctx.isNextMonthDisabled));
|
|
1005
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(17, _c0, ctx.isNextMonthDisabled()));
|
|
959
1006
|
i0.ɵɵadvance(5);
|
|
960
|
-
i0.ɵɵproperty("ngForOf", ctx.weekDays);
|
|
1007
|
+
i0.ɵɵproperty("ngForOf", ctx.weekDays());
|
|
961
1008
|
i0.ɵɵadvance(2);
|
|
962
|
-
i0.ɵɵproperty("ngForOf", ctx.currentMonthDates);
|
|
1009
|
+
i0.ɵɵproperty("ngForOf", ctx.currentMonthDates());
|
|
963
1010
|
i0.ɵɵadvance(5);
|
|
964
|
-
i0.ɵɵtextInterpolate2(" ", ctx.nextMonth, " ", ctx.nextYearNumber, " ");
|
|
1011
|
+
i0.ɵɵtextInterpolate2(" ", ctx.nextMonth(), " ", ctx.nextYearNumber(), " ");
|
|
965
1012
|
i0.ɵɵadvance();
|
|
966
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(19, _c0, ctx.isNextMonthDisabled));
|
|
1013
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(19, _c0, ctx.isNextMonthDisabled()));
|
|
967
1014
|
i0.ɵɵadvance(5);
|
|
968
|
-
i0.ɵɵproperty("ngForOf", ctx.weekDays);
|
|
1015
|
+
i0.ɵɵproperty("ngForOf", ctx.weekDays());
|
|
969
1016
|
i0.ɵɵadvance(2);
|
|
970
|
-
i0.ɵɵproperty("ngForOf", ctx.nextMonthDates);
|
|
1017
|
+
i0.ɵɵproperty("ngForOf", ctx.nextMonthDates());
|
|
971
1018
|
i0.ɵɵadvance();
|
|
972
1019
|
i0.ɵɵproperty("ngIf", ctx.data.dpConfig.enableTime === true);
|
|
973
1020
|
i0.ɵɵadvance(4);
|
|
974
|
-
i0.ɵɵproperty("disabled", !ctx.isDatesValid);
|
|
1021
|
+
i0.ɵɵproperty("disabled", !ctx.isDatesValid());
|
|
975
1022
|
} }, 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: ["[_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}.daterangepicker-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;overflow:hidden;-webkit-user-select:none;user-select:none}@media only screen and (max-width: 900px){.daterangepicker-container[_ngcontent-%COMP%]{max-width:100vw;border:none}}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%]{display:flex;gap:24px;padding:16px}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__ranges[_ngcontent-%COMP%]{display:flex;flex-direction:column}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .mis-btn[_ngcontent-%COMP%]{background:none;outline:none;border:none;cursor:pointer;border-radius:4px;vertical-align:middle;text-align:center;box-sizing:border-box;display:flex;align-items:center;text-decoration:none;justify-content:center;padding:10px 16px;font-size:16px;line-height:24px;background-color:transparent;color:#0937b2}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .active-range[_ngcontent-%COMP%]{background-color:#cadcfb}@media only screen and (max-width: 900px){.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%]{flex-direction:column;align-items:center;position:fixed;bottom:0;left:0;background-color:#fff;width:100%;max-height:68vh;overflow-y:auto;border-radius:30px;gap:24px;padding:10% 0 30%;box-shadow:0 -4px 8px 10000px #0000001f;scrollbar-width:none;-ms-overflow-style:none}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .datepicker__left[_ngcontent-%COMP%], .daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .datepicker__right[_ngcontent-%COMP%]{display:flex;flex-direction:column}@media only screen and (max-width: 900px){.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .datepicker__left[_ngcontent-%COMP%], .daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .datepicker__right[_ngcontent-%COMP%]{width:90%}}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__header__prabu[_ngcontent-%COMP%]{display:flex;height:32px;justify-content:space-between;align-items:center;width:100%;padding-bottom:10%}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__header__prabu[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:16px;font-style:normal;font-weight:700;line-height:24px;letter-spacing:.2px;text-align:center}@media only screen and (max-width: 900px){.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__header__prabu[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin:0 auto;font-size:4vw}}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__header__prabu[_ngcontent-%COMP%] .daterangepicker-container__arrow__icon[_ngcontent-%COMP%]{height:20px;width:20px;display:flex;align-items:center;justify-content:center;border-radius:4px;padding:4px}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__header__prabu[_ngcontent-%COMP%] .daterangepicker-container__arrow__icon.disabled-month[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__header__prabu[_ngcontent-%COMP%] .daterangepicker-container__arrow__icon[_ngcontent-%COMP%]:not(.disabled-month):hover{cursor:pointer;background-color:#cbddfb}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__header__prabu[_ngcontent-%COMP%] .daterangepicker-container__arrow__icon[_ngcontent-%COMP%]:nth-child(1){transform:rotate(180deg)}@media only screen and (max-width: 900px){.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__header__prabu[_ngcontent-%COMP%] .daterangepicker-container__arrow__icon[_ngcontent-%COMP%]{width:7%}}@media only screen and (min-width: 900px){.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__header__prabu[_ngcontent-%COMP%] .mobile_view[_ngcontent-%COMP%]{display:none}}@media only screen and (max-width: 900px){.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__header__prabu[_ngcontent-%COMP%] .pc_view[_ngcontent-%COMP%]{display:none}}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%]{height:100%;width:252px}@media only screen and (max-width: 900px){.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%]{width:100%}}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%] .daterangepicker-container__weekdays[_ngcontent-%COMP%]{width:100%;display:flex;padding-bottom:10px}@media only screen and (max-width: 900px){.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%] .daterangepicker-container__weekdays[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;flex:0 0 14.2857142857%}}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%] .daterangepicker-container__weekdays[_ngcontent-%COMP%] .daterangepicker-container__weekday[_ngcontent-%COMP%]{width:36px;height:18px;text-align:center}@media only screen and (max-width: 900px){.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%] .daterangepicker-container__weekdays[_ngcontent-%COMP%] .daterangepicker-container__weekday[_ngcontent-%COMP%]{margin:0 auto}}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%] .daterangepicker-container__weekdays[_ngcontent-%COMP%] .daterangepicker-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:#6a737d}@media only screen and (max-width: 900px){.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%] .daterangepicker-container__weekdays[_ngcontent-%COMP%] .daterangepicker-container__weekday[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:3vw}}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%] .daterangepicker-container__weekdays[_ngcontent-%COMP%] .daterangepicker-container__weekday[_ngcontent-%COMP%] span.current-day[_ngcontent-%COMP%]{font-weight:700;letter-spacing:.25px;color:#181f33}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%] .daterangepicker-container__days[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}@media only screen and (max-width: 900px){.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%] .daterangepicker-container__days[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;flex:0 0 14.2857142857%}}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%] .daterangepicker-container__days[_ngcontent-%COMP%] .daterangepicker-container__day[_ngcontent-%COMP%]{width:36px;height:36px;display:flex;align-items:center;justify-content:center}@media only screen and (max-width: 900px){.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%] .daterangepicker-container__days[_ngcontent-%COMP%] .daterangepicker-container__day[_ngcontent-%COMP%]{flex:0 0 14.2857142857%;width:14.2857142857%;height:14.2857142857%;aspect-ratio:1}}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%] .daterangepicker-container__days[_ngcontent-%COMP%] .daterangepicker-container__day[_ngcontent-%COMP%]:not(.in-range-day):not(.selected-start-day):not(.selected-end-day){border-radius:4px}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%] .daterangepicker-container__days[_ngcontent-%COMP%] .daterangepicker-container__day.disabled-day[_ngcontent-%COMP%]{cursor:default}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%] .daterangepicker-container__days[_ngcontent-%COMP%] .daterangepicker-container__day.disabled-day[_ngcontent-%COMP%]:hover{background-color:transparent}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%] .daterangepicker-container__days[_ngcontent-%COMP%] .daterangepicker-container__day.disabled-day[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{color:#6a737d}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%] .daterangepicker-container__days[_ngcontent-%COMP%] .daterangepicker-container__day.is-valid-date[_ngcontent-%COMP%]:not(.disabled-day):not(.selected-start-day):not(.selected-end-day) > span[_ngcontent-%COMP%]{color:#181f33}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%] .daterangepicker-container__days[_ngcontent-%COMP%] .daterangepicker-container__day.is-valid-date[_ngcontent-%COMP%]:not(.disabled-day):not(.selected-start-day):not(.selected-end-day):hover{background-color:#cbddfb;cursor:pointer}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%] .daterangepicker-container__days[_ngcontent-%COMP%] .daterangepicker-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}@media only screen and (max-width: 900px){.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%] .daterangepicker-container__days[_ngcontent-%COMP%] .daterangepicker-container__day[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:3.4vw}}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%] .daterangepicker-container__days[_ngcontent-%COMP%] .daterangepicker-container__day[_ngcontent-%COMP%] span.current-day[_ngcontent-%COMP%]{font-weight:700;letter-spacing:.25px}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%] .daterangepicker-container__days[_ngcontent-%COMP%] .daterangepicker-container__day[_ngcontent-%COMP%] span.selected-day[_ngcontent-%COMP%]{color:#fff}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%] .daterangepicker-container__days[_ngcontent-%COMP%] .daterangepicker-container__day[_ngcontent-%COMP%] span.disabled-day[_ngcontent-%COMP%]{color:#6a737d}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%] .daterangepicker-container__days[_ngcontent-%COMP%] .selected-same-day[_ngcontent-%COMP%]{background-color:#0937b2;border-radius:50%!important}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%] .daterangepicker-container__days[_ngcontent-%COMP%] .selected-same-day[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{color:#fff}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%] .daterangepicker-container__days[_ngcontent-%COMP%] .selected-start-day[_ngcontent-%COMP%]{background-color:#0937b2;border-radius:20px 4px 4px 20px}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%] .daterangepicker-container__days[_ngcontent-%COMP%] .selected-start-day[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{color:#fff}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%] .daterangepicker-container__days[_ngcontent-%COMP%] .selected-end-day[_ngcontent-%COMP%]{background-color:#0937b2;border-radius:0 20px 20px 0}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%] .daterangepicker-container__days[_ngcontent-%COMP%] .selected-end-day[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{color:#fff}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%] .daterangepicker-container__days[_ngcontent-%COMP%] .in-range-day[_ngcontent-%COMP%]:not(.disabled-day){background-color:#cbddfb}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__time[_ngcontent-%COMP%]{border-top:1px solid #e0e0e0;padding:16px 24px;background-color:#f8f9fa;display:flex;gap:24px}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__time[_ngcontent-%COMP%] .time-section[_ngcontent-%COMP%]{flex:1}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__time[_ngcontent-%COMP%] .time-section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin:0 0 8px;font-size:14px;font-weight:600;color:#333}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__time[_ngcontent-%COMP%] .time-section[_ngcontent-%COMP%] .time-inputs[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__time[_ngcontent-%COMP%] .time-section[_ngcontent-%COMP%] .time-inputs[_ngcontent-%COMP%] .time-input[_ngcontent-%COMP%]{width:60px;padding:8px;border:1px solid #ddd;border-radius:4px;text-align:center;font-size:14px}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__time[_ngcontent-%COMP%] .time-section[_ngcontent-%COMP%] .time-inputs[_ngcontent-%COMP%] .time-input[_ngcontent-%COMP%]:focus{outline:none;border-color:#0937b2;box-shadow:0 0 0 2px #0937b233}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__time[_ngcontent-%COMP%] .time-section[_ngcontent-%COMP%] .time-inputs[_ngcontent-%COMP%] .time-input.hour-input[_ngcontent-%COMP%], .daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__time[_ngcontent-%COMP%] .time-section[_ngcontent-%COMP%] .time-inputs[_ngcontent-%COMP%] .time-input.minute-input[_ngcontent-%COMP%]{width:50px}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__time[_ngcontent-%COMP%] .time-section[_ngcontent-%COMP%] .time-inputs[_ngcontent-%COMP%] .time-separator[_ngcontent-%COMP%]{font-size:16px;font-weight:600;color:#666}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__time[_ngcontent-%COMP%] .time-section[_ngcontent-%COMP%] .time-inputs[_ngcontent-%COMP%] .am-pm-selector[_ngcontent-%COMP%]{padding:7.1px 12px;border:1px solid #ddd;border-radius:4px;background-color:#fff;font-size:14px;cursor:pointer}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__time[_ngcontent-%COMP%] .time-section[_ngcontent-%COMP%] .time-inputs[_ngcontent-%COMP%] .am-pm-selector[_ngcontent-%COMP%]:focus{outline:none;border-color:#0937b2}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker__footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;border-top:1px solid #e0e0e0;padding:16px 24px;gap:24px}@media only screen and (max-width: 900px){.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker__footer[_ngcontent-%COMP%]{justify-content:space-evenly;padding:2% 0;background-color:#fff;position:fixed;bottom:0;left:0;width:100%;height:8vh;border-top:2px solid #C8CDD3}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker__footer[_ngcontent-%COMP%] #mobile-footer-btn[_ngcontent-%COMP%]{width:36%;font-size:3.8vw}}"] }); }
|
|
976
1023
|
}
|
|
977
1024
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TzDrpContainerComponent, [{
|
|
978
1025
|
type: Component,
|
|
979
|
-
args: [{ selector: "mis-tz-drp", template: "<div class=\"daterangepicker-container\" aria-label=\"date range picker\" cdkTrapFocus [cdkTrapFocusAutoCapture]=\"true\">\n <div class=\"daterangepicker-container__view\">\n <div tabindex=\"-1\" cdkFocusInitial></div>\n <div *ngIf=\"data?.dpConfig?.ranges?.length > 0\" class=\"daterangepicker-container__ranges\">\n <div *ngFor=\"let item of data?.dpConfig?.ranges ?? []\" >\n <button\n [ngClass]=\"{'active-range' : selectedItemLabel === item.label}\"\n (click)=\"selectRange(item)\"\n class=\"mis-btn\"\n >\n {{ item.label }}\n </button>\n </div>\n <div> <button class=\"mis-btn\" [ngClass]=\"{'active-range' : selectedItemLabel === 'Custom Range'}\" (click)=\"resetRange()\">Custom Range</button> </div>\n </div>\n <div class=\"datepicker__left\">\n <div class=\"daterangepicker-container__header__prabu\">\n <div\n class=\"daterangepicker-container__arrow__icon\"\n tabindex=\"0\"\n (click)=\"!isPreviousMonthDisabled && navigateMonth('PREVIOUS')\"\n (keyup.enter)=\"!isPreviousMonthDisabled && navigateMonth('PREVIOUS')\"\n aria-label=\"Previous Month\"\n [ngClass]=\"{\n 'disabled-month': isPreviousMonthDisabled\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 <span> {{ currentMonth }} {{ currentYearNumber }} </span>\n <div></div>\n <!-- Button visible in mobile view -->\n <div\n class=\"daterangepicker-container__arrow__icon mobile_view\"\n tabindex=\"0\"\n (click)=\"!isNextMonthDisabled && navigateMonth('NEXT')\"\n (keyup.enter)=\"!isNextMonthDisabled && navigateMonth('NEXT')\"\n aria-label=\"Next Month\"\n [ngClass]=\"{\n 'disabled-month': isNextMonthDisabled\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=\"daterangepicker-container__body\">\n <div class=\"daterangepicker-container__weekdays\">\n <div class=\"daterangepicker-container__weekday\" *ngFor=\"let weekDay of weekDays\">\n <span>{{ weekDay.label }}</span>\n </div>\n </div>\n <div class=\"daterangepicker-container__days\">\n <div\n class=\"daterangepicker-container__day\" \n [ngClass]=\"{\n 'selected-same-day': day.isSelectedStartDay && day.isSelectedEndDay,\n 'selected-start-day': day.isSelectedStartDay,\n 'selected-end-day': day.isSelectedEndDay,\n 'disabled-day': day.isDisabledDay,\n 'in-range-day': day.inRangeDay,\n 'is-valid-date': day.date > 0 && !(day.isSelectedStartDay && day.isSelectedEndDay)\n }\"\n *ngFor=\"let day of currentMonthDates\"\n (click)=\"selectDay('LEFT', day)\"\n (keyup.enter)=\"selectDay('LEFT', day)\"\n >\n <span *ngIf=\"day.date > 0\"\n [tabindex]=\"day.isDisabledDay ? -1 : 0\"\n [attr.aria-label]=\"retractDayMonth(day.date, currentMonth, currentYearNumber)\">\n {{ day.date }}\n </span>\n </div>\n </div>\n </div>\n </div>\n <div class=\"datepicker__right\">\n <div class=\"daterangepicker-container__header__prabu\">\n <div></div>\n <span> {{ nextMonth }} {{ nextYearNumber }} </span>\n <div\n class=\"daterangepicker-container__arrow__icon pc_view\"\n tabindex=\"0\"\n (click)=\"!isNextMonthDisabled && navigateMonth('NEXT')\"\n (keyup.enter)=\"!isNextMonthDisabled && navigateMonth('NEXT')\"\n [ngClass]=\"{\n 'disabled-month': isNextMonthDisabled\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=\"daterangepicker-container__body\">\n <div class=\"daterangepicker-container__weekdays\">\n <div class=\"daterangepicker-container__weekday\" *ngFor=\"let weekDay of weekDays\">\n <span>{{ weekDay.label }}</span>\n </div>\n </div>\n <div class=\"daterangepicker-container__days\">\n <div\n class=\"daterangepicker-container__day\"\n [ngClass]=\"{\n 'selected-same-day': day.isSelectedStartDay && day.isSelectedEndDay,\n 'selected-start-day': day.isSelectedStartDay,\n 'selected-end-day': day.isSelectedEndDay,\n 'disabled-day': day.isDisabledDay,\n 'in-range-day': day.inRangeDay,\n 'is-valid-date': day.date > 0 && !(day.isSelectedStartDay && day.isSelectedEndDay)\n }\"\n *ngFor=\"let day of nextMonthDates\"\n (click)=\"selectDay('RIGHT', day)\"\n (keyup.enter)=\"selectDay('RIGHT', day)\"\n >\n <span *ngIf=\"day.date > 0\"\n [tabindex]=\"day.isDisabledDay ? -1 : 0\"\n [attr.aria-label]=\"retractDayMonth(day.date, nextMonth, nextYearNumber)\">\n {{ day.date }}\n </span>\n </div>\n </div>\n </div>\n </div>\n </div>\n \n <!-- Time Selection Section -->\n <div class=\"daterangepicker-container__time\" *ngIf=\"data.dpConfig.enableTime === true\">\n <div class=\"time-section\">\n <h4>From</h4>\n <div class=\"time-inputs\">\n <input \n type=\"number\" \n [ngModel]=\"is12HourFormat() ? startHour : startHour24\" \n (ngModelChange)=\"is12HourFormat() ? (startHour = $event) : (startHour24 = $event); onStartHourInput()\"\n [min]=\"is12HourFormat() ? 1 : 0\" \n [max]=\"is12HourFormat() ? 12 : 23\" \n step=\"1\"\n class=\"time-input hour-input\"\n placeholder=\"HH\">\n <span class=\"time-separator\">:</span>\n <input \n type=\"number\" \n [(ngModel)]=\"startMinute\" \n (input)=\"onStartMinuteInput()\"\n min=\"0\" \n max=\"59\" \n step=\"1\"\n class=\"time-input minute-input\"\n placeholder=\"MM\">\n <select \n [(ngModel)]=\"startAmPm\" \n class=\"am-pm-selector\"\n *ngIf=\"is12HourFormat()\">\n <option value=\"AM\">AM</option>\n <option value=\"PM\">PM</option>\n </select>\n </div>\n </div>\n \n <div class=\"time-section\">\n <h4>To</h4>\n <div class=\"time-inputs\">\n <input \n type=\"number\" \n [ngModel]=\"is12HourFormat() ? endHour : endHour24\" \n (ngModelChange)=\"is12HourFormat() ? (endHour = $event) : (endHour24 = $event); onEndHourInput()\"\n [min]=\"is12HourFormat() ? 1 : 0\" \n [max]=\"is12HourFormat() ? 12 : 23\" \n step=\"1\"\n class=\"time-input hour-input\"\n placeholder=\"HH\">\n <span class=\"time-separator\">:</span>\n <input \n type=\"number\" \n [(ngModel)]=\"endMinute\" \n (input)=\"onEndMinuteInput()\"\n min=\"0\" \n max=\"59\" \n step=\"1\"\n class=\"time-input minute-input\"\n placeholder=\"MM\">\n <select \n [(ngModel)]=\"endAmPm\" \n class=\"am-pm-selector\"\n *ngIf=\"is12HourFormat()\">\n <option value=\"AM\">AM</option>\n <option value=\"PM\">PM</option>\n </select>\n </div>\n </div>\n </div>\n \n <div class=\"daterangepicker__footer\">\n <button mis-button type=\"none\" id='mobile-footer-btn' (click)=\"cancelDatePicker()\">Cancel</button>\n <button mis-button type=\"primary\" id=\"mobile-footer-btn\" (click)=\"applyDates()\" [disabled]=\"!isDatesValid\">Apply</button>\n </div>\n</div>", styles: [":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}.daterangepicker-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;overflow:hidden;-webkit-user-select:none;user-select:none}@media only screen and (max-width: 900px){.daterangepicker-container{max-width:100vw;border:none}}.daterangepicker-container .daterangepicker-container__view{display:flex;gap:24px;padding:16px}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__ranges{display:flex;flex-direction:column}.daterangepicker-container .daterangepicker-container__view .mis-btn{background:none;outline:none;border:none;cursor:pointer;border-radius:4px;vertical-align:middle;text-align:center;box-sizing:border-box;display:flex;align-items:center;text-decoration:none;justify-content:center;padding:10px 16px;font-size:16px;line-height:24px;background-color:transparent;color:#0937b2}.daterangepicker-container .daterangepicker-container__view .active-range{background-color:#cadcfb}@media only screen and (max-width: 900px){.daterangepicker-container .daterangepicker-container__view{flex-direction:column;align-items:center;position:fixed;bottom:0;left:0;background-color:#fff;width:100%;max-height:68vh;overflow-y:auto;border-radius:30px;gap:24px;padding:10% 0 30%;box-shadow:0 -4px 8px 10000px #0000001f;scrollbar-width:none;-ms-overflow-style:none}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__view::-webkit-scrollbar{display:none}}.daterangepicker-container .daterangepicker-container__view .datepicker__left,.daterangepicker-container .daterangepicker-container__view .datepicker__right{display:flex;flex-direction:column}@media only screen and (max-width: 900px){.daterangepicker-container .daterangepicker-container__view .datepicker__left,.daterangepicker-container .daterangepicker-container__view .datepicker__right{width:90%}}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__header__prabu{display:flex;height:32px;justify-content:space-between;align-items:center;width:100%;padding-bottom:10%}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__header__prabu span{font-size:16px;font-style:normal;font-weight:700;line-height:24px;letter-spacing:.2px;text-align:center}@media only screen and (max-width: 900px){.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__header__prabu span{margin:0 auto;font-size:4vw}}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__header__prabu .daterangepicker-container__arrow__icon{height:20px;width:20px;display:flex;align-items:center;justify-content:center;border-radius:4px;padding:4px}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__header__prabu .daterangepicker-container__arrow__icon.disabled-month{opacity:.5;cursor:not-allowed}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__header__prabu .daterangepicker-container__arrow__icon:not(.disabled-month):hover{cursor:pointer;background-color:#cbddfb}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__header__prabu .daterangepicker-container__arrow__icon:nth-child(1){transform:rotate(180deg)}@media only screen and (max-width: 900px){.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__header__prabu .daterangepicker-container__arrow__icon{width:7%}}@media only screen and (min-width: 900px){.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__header__prabu .mobile_view{display:none}}@media only screen and (max-width: 900px){.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__header__prabu .pc_view{display:none}}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body{height:100%;width:252px}@media only screen and (max-width: 900px){.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body{width:100%}}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__weekdays{width:100%;display:flex;padding-bottom:10px}@media only screen and (max-width: 900px){.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__weekdays{display:flex;flex-direction:row;flex-wrap:wrap;flex:0 0 14.2857142857%}}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__weekdays .daterangepicker-container__weekday{width:36px;height:18px;text-align:center}@media only screen and (max-width: 900px){.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__weekdays .daterangepicker-container__weekday{margin:0 auto}}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__weekdays .daterangepicker-container__weekday span{font-size:12px;font-style:normal;font-weight:400;line-height:18px;letter-spacing:.2px;text-align:center;color:#6a737d}@media only screen and (max-width: 900px){.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__weekdays .daterangepicker-container__weekday span{font-size:3vw}}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__weekdays .daterangepicker-container__weekday span.current-day{font-weight:700;letter-spacing:.25px;color:#181f33}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days{display:flex;flex-wrap:wrap}@media only screen and (max-width: 900px){.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days{display:flex;flex-direction:row;flex-wrap:wrap;flex:0 0 14.2857142857%}}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day{width:36px;height:36px;display:flex;align-items:center;justify-content:center}@media only screen and (max-width: 900px){.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day{flex:0 0 14.2857142857%;width:14.2857142857%;height:14.2857142857%;aspect-ratio:1}}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day:not(.in-range-day):not(.selected-start-day):not(.selected-end-day){border-radius:4px}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day.disabled-day{cursor:default}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day.disabled-day:hover{background-color:transparent}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day.disabled-day>span{color:#6a737d}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day.is-valid-date:not(.disabled-day):not(.selected-start-day):not(.selected-end-day)>span{color:#181f33}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day.is-valid-date:not(.disabled-day):not(.selected-start-day):not(.selected-end-day):hover{background-color:#cbddfb;cursor:pointer}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day span{font-size:14px;font-style:normal;font-weight:400;line-height:20px;letter-spacing:.2px;text-align:center;color:#181f33}@media only screen and (max-width: 900px){.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day span{font-size:3.4vw}}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day span.current-day{font-weight:700;letter-spacing:.25px}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day span.selected-day{color:#fff}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day span.disabled-day{color:#6a737d}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .selected-same-day{background-color:#0937b2;border-radius:50%!important}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .selected-same-day>span{color:#fff}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .selected-start-day{background-color:#0937b2;border-radius:20px 4px 4px 20px}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .selected-start-day>span{color:#fff}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .selected-end-day{background-color:#0937b2;border-radius:0 20px 20px 0}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .selected-end-day>span{color:#fff}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .in-range-day:not(.disabled-day){background-color:#cbddfb}.daterangepicker-container .daterangepicker-container__time{border-top:1px solid #e0e0e0;padding:16px 24px;background-color:#f8f9fa;display:flex;gap:24px}.daterangepicker-container .daterangepicker-container__time .time-section{flex:1}.daterangepicker-container .daterangepicker-container__time .time-section h4{margin:0 0 8px;font-size:14px;font-weight:600;color:#333}.daterangepicker-container .daterangepicker-container__time .time-section .time-inputs{display:flex;align-items:center;gap:8px}.daterangepicker-container .daterangepicker-container__time .time-section .time-inputs .time-input{width:60px;padding:8px;border:1px solid #ddd;border-radius:4px;text-align:center;font-size:14px}.daterangepicker-container .daterangepicker-container__time .time-section .time-inputs .time-input:focus{outline:none;border-color:#0937b2;box-shadow:0 0 0 2px #0937b233}.daterangepicker-container .daterangepicker-container__time .time-section .time-inputs .time-input.hour-input,.daterangepicker-container .daterangepicker-container__time .time-section .time-inputs .time-input.minute-input{width:50px}.daterangepicker-container .daterangepicker-container__time .time-section .time-inputs .time-separator{font-size:16px;font-weight:600;color:#666}.daterangepicker-container .daterangepicker-container__time .time-section .time-inputs .am-pm-selector{padding:7.1px 12px;border:1px solid #ddd;border-radius:4px;background-color:#fff;font-size:14px;cursor:pointer}.daterangepicker-container .daterangepicker-container__time .time-section .time-inputs .am-pm-selector:focus{outline:none;border-color:#0937b2}.daterangepicker-container .daterangepicker__footer{display:flex;justify-content:flex-end;border-top:1px solid #e0e0e0;padding:16px 24px;gap:24px}@media only screen and (max-width: 900px){.daterangepicker-container .daterangepicker__footer{justify-content:space-evenly;padding:2% 0;background-color:#fff;position:fixed;bottom:0;left:0;width:100%;height:8vh;border-top:2px solid #C8CDD3}.daterangepicker-container .daterangepicker__footer #mobile-footer-btn{width:36%;font-size:3.8vw}}\n"] }]
|
|
1026
|
+
args: [{ selector: "mis-tz-drp", template: "<div class=\"daterangepicker-container\" aria-label=\"date range picker\" cdkTrapFocus [cdkTrapFocusAutoCapture]=\"true\">\n <div class=\"daterangepicker-container__view\">\n <div tabindex=\"-1\" cdkFocusInitial></div>\n <div *ngIf=\"data?.dpConfig?.ranges?.length > 0\" class=\"daterangepicker-container__ranges\">\n <div *ngFor=\"let item of data?.dpConfig?.ranges ?? []\" >\n <button\n [ngClass]=\"{'active-range' : selectedItemLabel() === item.label}\"\n (click)=\"selectRange(item)\"\n class=\"mis-btn\"\n >\n {{ item.label }}\n </button>\n </div>\n <div> <button class=\"mis-btn\" [ngClass]=\"{'active-range' : selectedItemLabel() === 'Custom Range'}\" (click)=\"resetRange()\">Custom Range</button> </div>\n </div>\n <div class=\"datepicker__left\">\n <div class=\"daterangepicker-container__header__prabu\">\n <div\n class=\"daterangepicker-container__arrow__icon\"\n tabindex=\"0\"\n (click)=\"!isPreviousMonthDisabled() && navigateMonth('PREVIOUS')\"\n (keyup.enter)=\"!isPreviousMonthDisabled() && navigateMonth('PREVIOUS')\"\n aria-label=\"Previous Month\"\n [ngClass]=\"{\n 'disabled-month': isPreviousMonthDisabled()\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 <span> {{ currentMonth() }} {{ currentYearNumber() }} </span>\n <div></div>\n <!-- Button visible in mobile view -->\n <div\n class=\"daterangepicker-container__arrow__icon mobile_view\"\n tabindex=\"0\"\n (click)=\"!isNextMonthDisabled() && navigateMonth('NEXT')\"\n (keyup.enter)=\"!isNextMonthDisabled() && navigateMonth('NEXT')\"\n aria-label=\"Next Month\"\n [ngClass]=\"{\n 'disabled-month': isNextMonthDisabled()\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=\"daterangepicker-container__body\">\n <div class=\"daterangepicker-container__weekdays\">\n <div class=\"daterangepicker-container__weekday\" *ngFor=\"let weekDay of weekDays()\">\n <span>{{ weekDay.label }}</span>\n </div>\n </div>\n <div class=\"daterangepicker-container__days\">\n <div\n class=\"daterangepicker-container__day\" \n [ngClass]=\"{\n 'selected-same-day': day.isSelectedStartDay && day.isSelectedEndDay,\n 'selected-start-day': day.isSelectedStartDay,\n 'selected-end-day': day.isSelectedEndDay,\n 'disabled-day': day.isDisabledDay,\n 'in-range-day': day.inRangeDay,\n 'is-valid-date': day.date > 0 && !(day.isSelectedStartDay && day.isSelectedEndDay)\n }\"\n *ngFor=\"let day of currentMonthDates()\"\n (click)=\"selectDay('LEFT', day)\"\n (keyup.enter)=\"selectDay('LEFT', day)\"\n >\n <span *ngIf=\"day.date > 0\"\n [tabindex]=\"day.isDisabledDay ? -1 : 0\"\n [attr.aria-label]=\"retractDayMonth(day.date, currentMonth(), currentYearNumber())\">\n {{ day.date }}\n </span>\n </div>\n </div>\n </div>\n </div>\n <div class=\"datepicker__right\">\n <div class=\"daterangepicker-container__header__prabu\">\n <div></div>\n <span> {{ nextMonth() }} {{ nextYearNumber() }} </span>\n <div\n class=\"daterangepicker-container__arrow__icon pc_view\"\n tabindex=\"0\"\n (click)=\"!isNextMonthDisabled() && navigateMonth('NEXT')\"\n (keyup.enter)=\"!isNextMonthDisabled() && navigateMonth('NEXT')\"\n [ngClass]=\"{\n 'disabled-month': isNextMonthDisabled()\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=\"daterangepicker-container__body\">\n <div class=\"daterangepicker-container__weekdays\">\n <div class=\"daterangepicker-container__weekday\" *ngFor=\"let weekDay of weekDays()\">\n <span>{{ weekDay.label }}</span>\n </div>\n </div>\n <div class=\"daterangepicker-container__days\">\n <div\n class=\"daterangepicker-container__day\"\n [ngClass]=\"{\n 'selected-same-day': day.isSelectedStartDay && day.isSelectedEndDay,\n 'selected-start-day': day.isSelectedStartDay,\n 'selected-end-day': day.isSelectedEndDay,\n 'disabled-day': day.isDisabledDay,\n 'in-range-day': day.inRangeDay,\n 'is-valid-date': day.date > 0 && !(day.isSelectedStartDay && day.isSelectedEndDay)\n }\"\n *ngFor=\"let day of nextMonthDates()\"\n (click)=\"selectDay('RIGHT', day)\"\n (keyup.enter)=\"selectDay('RIGHT', day)\"\n >\n <span *ngIf=\"day.date > 0\"\n [tabindex]=\"day.isDisabledDay ? -1 : 0\"\n [attr.aria-label]=\"retractDayMonth(day.date, nextMonth(), nextYearNumber())\">\n {{ day.date }}\n </span>\n </div>\n </div>\n </div>\n </div>\n </div>\n \n <!-- Time Selection Section -->\n <div class=\"daterangepicker-container__time\" *ngIf=\"data.dpConfig.enableTime === true\">\n <div class=\"time-section\">\n <h4>From</h4>\n <div class=\"time-inputs\">\n <input \n type=\"number\" \n [ngModel]=\"is12HourFormat() ? startHour() : startHour24()\" \n (ngModelChange)=\"is12HourFormat() ? startHourSignal.set($event) : startHour24Signal.set($event); onStartHourInput()\"\n [min]=\"is12HourFormat() ? 1 : 0\" \n [max]=\"is12HourFormat() ? 12 : 23\" \n step=\"1\"\n class=\"time-input hour-input\"\n placeholder=\"HH\">\n <span class=\"time-separator\">:</span>\n <input \n type=\"number\" \n [ngModel]=\"startMinute()\" (ngModelChange)=\"startMinuteSignal.set($event)\" \n (input)=\"onStartMinuteInput()\"\n min=\"0\" \n max=\"59\" \n step=\"1\"\n class=\"time-input minute-input\"\n placeholder=\"MM\">\n <select \n [ngModel]=\"startAmPm()\" (ngModelChange)=\"startAmPmSignal.set($event)\" \n class=\"am-pm-selector\"\n *ngIf=\"is12HourFormat()\">\n <option value=\"AM\">AM</option>\n <option value=\"PM\">PM</option>\n </select>\n </div>\n </div>\n \n <div class=\"time-section\">\n <h4>To</h4>\n <div class=\"time-inputs\">\n <input \n type=\"number\" \n [ngModel]=\"is12HourFormat() ? endHour() : endHour24()\" \n (ngModelChange)=\"is12HourFormat() ? endHourSignal.set($event) : endHour24Signal.set($event); onEndHourInput()\"\n [min]=\"is12HourFormat() ? 1 : 0\" \n [max]=\"is12HourFormat() ? 12 : 23\" \n step=\"1\"\n class=\"time-input hour-input\"\n placeholder=\"HH\">\n <span class=\"time-separator\">:</span>\n <input \n type=\"number\" \n [ngModel]=\"endMinute()\" (ngModelChange)=\"endMinuteSignal.set($event)\" \n (input)=\"onEndMinuteInput()\"\n min=\"0\" \n max=\"59\" \n step=\"1\"\n class=\"time-input minute-input\"\n placeholder=\"MM\">\n <select \n [ngModel]=\"endAmPm()\" (ngModelChange)=\"endAmPmSignal.set($event)\" \n class=\"am-pm-selector\"\n *ngIf=\"is12HourFormat()\">\n <option value=\"AM\">AM</option>\n <option value=\"PM\">PM</option>\n </select>\n </div>\n </div>\n </div>\n \n <div class=\"daterangepicker__footer\">\n <button mis-button type=\"none\" id='mobile-footer-btn' (click)=\"cancelDatePicker()\">Cancel</button>\n <button mis-button type=\"primary\" id=\"mobile-footer-btn\" (click)=\"applyDates()\" [disabled]=\"!isDatesValid()\">Apply</button>\n </div>\n</div>", styles: [":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}.daterangepicker-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;overflow:hidden;-webkit-user-select:none;user-select:none}@media only screen and (max-width: 900px){.daterangepicker-container{max-width:100vw;border:none}}.daterangepicker-container .daterangepicker-container__view{display:flex;gap:24px;padding:16px}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__ranges{display:flex;flex-direction:column}.daterangepicker-container .daterangepicker-container__view .mis-btn{background:none;outline:none;border:none;cursor:pointer;border-radius:4px;vertical-align:middle;text-align:center;box-sizing:border-box;display:flex;align-items:center;text-decoration:none;justify-content:center;padding:10px 16px;font-size:16px;line-height:24px;background-color:transparent;color:#0937b2}.daterangepicker-container .daterangepicker-container__view .active-range{background-color:#cadcfb}@media only screen and (max-width: 900px){.daterangepicker-container .daterangepicker-container__view{flex-direction:column;align-items:center;position:fixed;bottom:0;left:0;background-color:#fff;width:100%;max-height:68vh;overflow-y:auto;border-radius:30px;gap:24px;padding:10% 0 30%;box-shadow:0 -4px 8px 10000px #0000001f;scrollbar-width:none;-ms-overflow-style:none}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__view::-webkit-scrollbar{display:none}}.daterangepicker-container .daterangepicker-container__view .datepicker__left,.daterangepicker-container .daterangepicker-container__view .datepicker__right{display:flex;flex-direction:column}@media only screen and (max-width: 900px){.daterangepicker-container .daterangepicker-container__view .datepicker__left,.daterangepicker-container .daterangepicker-container__view .datepicker__right{width:90%}}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__header__prabu{display:flex;height:32px;justify-content:space-between;align-items:center;width:100%;padding-bottom:10%}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__header__prabu span{font-size:16px;font-style:normal;font-weight:700;line-height:24px;letter-spacing:.2px;text-align:center}@media only screen and (max-width: 900px){.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__header__prabu span{margin:0 auto;font-size:4vw}}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__header__prabu .daterangepicker-container__arrow__icon{height:20px;width:20px;display:flex;align-items:center;justify-content:center;border-radius:4px;padding:4px}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__header__prabu .daterangepicker-container__arrow__icon.disabled-month{opacity:.5;cursor:not-allowed}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__header__prabu .daterangepicker-container__arrow__icon:not(.disabled-month):hover{cursor:pointer;background-color:#cbddfb}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__header__prabu .daterangepicker-container__arrow__icon:nth-child(1){transform:rotate(180deg)}@media only screen and (max-width: 900px){.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__header__prabu .daterangepicker-container__arrow__icon{width:7%}}@media only screen and (min-width: 900px){.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__header__prabu .mobile_view{display:none}}@media only screen and (max-width: 900px){.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__header__prabu .pc_view{display:none}}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body{height:100%;width:252px}@media only screen and (max-width: 900px){.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body{width:100%}}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__weekdays{width:100%;display:flex;padding-bottom:10px}@media only screen and (max-width: 900px){.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__weekdays{display:flex;flex-direction:row;flex-wrap:wrap;flex:0 0 14.2857142857%}}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__weekdays .daterangepicker-container__weekday{width:36px;height:18px;text-align:center}@media only screen and (max-width: 900px){.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__weekdays .daterangepicker-container__weekday{margin:0 auto}}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__weekdays .daterangepicker-container__weekday span{font-size:12px;font-style:normal;font-weight:400;line-height:18px;letter-spacing:.2px;text-align:center;color:#6a737d}@media only screen and (max-width: 900px){.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__weekdays .daterangepicker-container__weekday span{font-size:3vw}}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__weekdays .daterangepicker-container__weekday span.current-day{font-weight:700;letter-spacing:.25px;color:#181f33}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days{display:flex;flex-wrap:wrap}@media only screen and (max-width: 900px){.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days{display:flex;flex-direction:row;flex-wrap:wrap;flex:0 0 14.2857142857%}}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day{width:36px;height:36px;display:flex;align-items:center;justify-content:center}@media only screen and (max-width: 900px){.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day{flex:0 0 14.2857142857%;width:14.2857142857%;height:14.2857142857%;aspect-ratio:1}}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day:not(.in-range-day):not(.selected-start-day):not(.selected-end-day){border-radius:4px}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day.disabled-day{cursor:default}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day.disabled-day:hover{background-color:transparent}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day.disabled-day>span{color:#6a737d}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day.is-valid-date:not(.disabled-day):not(.selected-start-day):not(.selected-end-day)>span{color:#181f33}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day.is-valid-date:not(.disabled-day):not(.selected-start-day):not(.selected-end-day):hover{background-color:#cbddfb;cursor:pointer}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day span{font-size:14px;font-style:normal;font-weight:400;line-height:20px;letter-spacing:.2px;text-align:center;color:#181f33}@media only screen and (max-width: 900px){.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day span{font-size:3.4vw}}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day span.current-day{font-weight:700;letter-spacing:.25px}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day span.selected-day{color:#fff}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day span.disabled-day{color:#6a737d}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .selected-same-day{background-color:#0937b2;border-radius:50%!important}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .selected-same-day>span{color:#fff}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .selected-start-day{background-color:#0937b2;border-radius:20px 4px 4px 20px}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .selected-start-day>span{color:#fff}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .selected-end-day{background-color:#0937b2;border-radius:0 20px 20px 0}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .selected-end-day>span{color:#fff}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .in-range-day:not(.disabled-day){background-color:#cbddfb}.daterangepicker-container .daterangepicker-container__time{border-top:1px solid #e0e0e0;padding:16px 24px;background-color:#f8f9fa;display:flex;gap:24px}.daterangepicker-container .daterangepicker-container__time .time-section{flex:1}.daterangepicker-container .daterangepicker-container__time .time-section h4{margin:0 0 8px;font-size:14px;font-weight:600;color:#333}.daterangepicker-container .daterangepicker-container__time .time-section .time-inputs{display:flex;align-items:center;gap:8px}.daterangepicker-container .daterangepicker-container__time .time-section .time-inputs .time-input{width:60px;padding:8px;border:1px solid #ddd;border-radius:4px;text-align:center;font-size:14px}.daterangepicker-container .daterangepicker-container__time .time-section .time-inputs .time-input:focus{outline:none;border-color:#0937b2;box-shadow:0 0 0 2px #0937b233}.daterangepicker-container .daterangepicker-container__time .time-section .time-inputs .time-input.hour-input,.daterangepicker-container .daterangepicker-container__time .time-section .time-inputs .time-input.minute-input{width:50px}.daterangepicker-container .daterangepicker-container__time .time-section .time-inputs .time-separator{font-size:16px;font-weight:600;color:#666}.daterangepicker-container .daterangepicker-container__time .time-section .time-inputs .am-pm-selector{padding:7.1px 12px;border:1px solid #ddd;border-radius:4px;background-color:#fff;font-size:14px;cursor:pointer}.daterangepicker-container .daterangepicker-container__time .time-section .time-inputs .am-pm-selector:focus{outline:none;border-color:#0937b2}.daterangepicker-container .daterangepicker__footer{display:flex;justify-content:flex-end;border-top:1px solid #e0e0e0;padding:16px 24px;gap:24px}@media only screen and (max-width: 900px){.daterangepicker-container .daterangepicker__footer{justify-content:space-evenly;padding:2% 0;background-color:#fff;position:fixed;bottom:0;left:0;width:100%;height:8vh;border-top:2px solid #C8CDD3}.daterangepicker-container .daterangepicker__footer #mobile-footer-btn{width:36%;font-size:3.8vw}}\n"] }]
|
|
980
1027
|
}], () => [{ type: undefined, decorators: [{
|
|
981
1028
|
type: Inject,
|
|
982
1029
|
args: [CONTAINER_DATA]
|
|
@@ -987,34 +1034,30 @@ class TzDrpContainerComponent {
|
|
|
987
1034
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TzDrpContainerComponent, { className: "TzDrpContainerComponent" }); })();
|
|
988
1035
|
|
|
989
1036
|
class TzDaterangepickerDirective {
|
|
990
|
-
// dd-mm-yyyy 01-12-2022
|
|
991
|
-
set selectedDates(dates) {
|
|
992
|
-
this.dates = { startDate: null, endDate: null, ...dates };
|
|
993
|
-
}
|
|
994
|
-
set datesDisabled(dates) {
|
|
995
|
-
this.dpDisabledDates = dates;
|
|
996
|
-
}
|
|
997
1037
|
constructor(control, element, overlay, viewContainerRef) {
|
|
998
1038
|
this.control = control;
|
|
999
1039
|
this.element = element;
|
|
1000
1040
|
this.overlay = overlay;
|
|
1001
1041
|
this.viewContainerRef = viewContainerRef;
|
|
1002
|
-
|
|
1042
|
+
// Signal-based inputs
|
|
1043
|
+
this.dpConfig = input({
|
|
1003
1044
|
format: DATE_FORMAT,
|
|
1004
1045
|
minDate: "",
|
|
1005
1046
|
maxDate: "",
|
|
1006
1047
|
maxAllowedRange: 0,
|
|
1007
1048
|
ranges: []
|
|
1008
|
-
};
|
|
1009
|
-
this.
|
|
1010
|
-
this.
|
|
1011
|
-
this.
|
|
1012
|
-
this.
|
|
1013
|
-
this.
|
|
1014
|
-
this.
|
|
1015
|
-
this.
|
|
1049
|
+
});
|
|
1050
|
+
this.selectedDates = input({ startDate: null, endDate: null });
|
|
1051
|
+
this.datesDisabled = input([]);
|
|
1052
|
+
this.selectedRangeLabel = input('Custom Range');
|
|
1053
|
+
this.dateMessages = input([]);
|
|
1054
|
+
this.positionX = input("center");
|
|
1055
|
+
this.positionY = input("bottom");
|
|
1056
|
+
this.offsetX = input(0);
|
|
1057
|
+
this.offsetY = input(0);
|
|
1058
|
+
// Signal-based output
|
|
1059
|
+
this.dateChange = output();
|
|
1016
1060
|
this.isOpen = false;
|
|
1017
|
-
this.dpDisabledDates = [];
|
|
1018
1061
|
}
|
|
1019
1062
|
toggleDatePicker() {
|
|
1020
1063
|
if (this.isOpen) {
|
|
@@ -1043,10 +1086,10 @@ class TzDaterangepickerDirective {
|
|
|
1043
1086
|
.position()
|
|
1044
1087
|
.flexibleConnectedTo(this.element)
|
|
1045
1088
|
.withPositions(genPositionPairs({
|
|
1046
|
-
positionX: this.positionX,
|
|
1047
|
-
positionY: this.positionY,
|
|
1048
|
-
offsetX: this.offsetX,
|
|
1049
|
-
offsetY: this.offsetY
|
|
1089
|
+
positionX: this.positionX(),
|
|
1090
|
+
positionY: this.positionY(),
|
|
1091
|
+
offsetX: this.offsetX(),
|
|
1092
|
+
offsetY: this.offsetY()
|
|
1050
1093
|
}, true))
|
|
1051
1094
|
.withPush(true);
|
|
1052
1095
|
const config = new OverlayConfig({
|
|
@@ -1061,11 +1104,11 @@ class TzDaterangepickerDirective {
|
|
|
1061
1104
|
{
|
|
1062
1105
|
provide: CONTAINER_DATA,
|
|
1063
1106
|
useValue: {
|
|
1064
|
-
messages: this.dateMessages,
|
|
1065
|
-
dates: this.control?.control.value || this.
|
|
1066
|
-
dpConfig: this.dpConfig,
|
|
1067
|
-
datesDisabled: this.
|
|
1068
|
-
selectedRangeLabel: this.selectedRangeLabel,
|
|
1107
|
+
messages: this.dateMessages(),
|
|
1108
|
+
dates: this.control?.control.value || this.selectedDates(),
|
|
1109
|
+
dpConfig: this.dpConfig(),
|
|
1110
|
+
datesDisabled: this.datesDisabled(),
|
|
1111
|
+
selectedRangeLabel: this.selectedRangeLabel(),
|
|
1069
1112
|
dateChange: this.applyDate.bind(this),
|
|
1070
1113
|
close: this.close.bind(this)
|
|
1071
1114
|
}
|
|
@@ -1088,7 +1131,6 @@ class TzDaterangepickerDirective {
|
|
|
1088
1131
|
};
|
|
1089
1132
|
this.dateChange.emit(result);
|
|
1090
1133
|
this.control?.control.patchValue(result);
|
|
1091
|
-
this.dates = result;
|
|
1092
1134
|
this.close();
|
|
1093
1135
|
}
|
|
1094
1136
|
close() {
|
|
@@ -1099,7 +1141,7 @@ class TzDaterangepickerDirective {
|
|
|
1099
1141
|
static { this.ɵfac = function TzDaterangepickerDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TzDaterangepickerDirective)(i0.ɵɵdirectiveInject(i3.NgControl, 10), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i2$1.Overlay), i0.ɵɵdirectiveInject(i0.ViewContainerRef)); }; }
|
|
1100
1142
|
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TzDaterangepickerDirective, selectors: [["input", "misTzDrp", ""]], hostBindings: function TzDaterangepickerDirective_HostBindings(rf, ctx) { if (rf & 1) {
|
|
1101
1143
|
i0.ɵɵlistener("click", function TzDaterangepickerDirective_click_HostBindingHandler() { return ctx.toggleDatePicker(); })("keydown.enter", function TzDaterangepickerDirective_keydown_enter_HostBindingHandler() { return ctx.toggleDatePickerOnEnter(); })("keydown.esc", function TzDaterangepickerDirective_keydown_esc_HostBindingHandler() { return ctx.closeOnEsc(); });
|
|
1102
|
-
} }, inputs: { dpConfig: "dpConfig", selectedDates: "selectedDates", datesDisabled: "datesDisabled", selectedRangeLabel: "selectedRangeLabel", dateMessages: "dateMessages", positionX: "positionX", positionY: "positionY", offsetX: "offsetX", offsetY: "offsetY" }, outputs: { dateChange: "dateChange" } }); }
|
|
1144
|
+
} }, inputs: { dpConfig: [1, "dpConfig"], selectedDates: [1, "selectedDates"], datesDisabled: [1, "datesDisabled"], selectedRangeLabel: [1, "selectedRangeLabel"], dateMessages: [1, "dateMessages"], positionX: [1, "positionX"], positionY: [1, "positionY"], offsetX: [1, "offsetX"], offsetY: [1, "offsetY"] }, outputs: { dateChange: "dateChange" } }); }
|
|
1103
1145
|
}
|
|
1104
1146
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TzDaterangepickerDirective, [{
|
|
1105
1147
|
type: Directive,
|
|
@@ -1110,27 +1152,7 @@ class TzDaterangepickerDirective {
|
|
|
1110
1152
|
type: Self
|
|
1111
1153
|
}, {
|
|
1112
1154
|
type: Optional
|
|
1113
|
-
}] }, { type: i0.ElementRef }, { type: i2$1.Overlay }, { type: i0.ViewContainerRef }], {
|
|
1114
|
-
type: Input
|
|
1115
|
-
}], selectedDates: [{
|
|
1116
|
-
type: Input
|
|
1117
|
-
}], datesDisabled: [{
|
|
1118
|
-
type: Input
|
|
1119
|
-
}], selectedRangeLabel: [{
|
|
1120
|
-
type: Input
|
|
1121
|
-
}], dateMessages: [{
|
|
1122
|
-
type: Input
|
|
1123
|
-
}], positionX: [{
|
|
1124
|
-
type: Input
|
|
1125
|
-
}], positionY: [{
|
|
1126
|
-
type: Input
|
|
1127
|
-
}], offsetX: [{
|
|
1128
|
-
type: Input
|
|
1129
|
-
}], offsetY: [{
|
|
1130
|
-
type: Input
|
|
1131
|
-
}], dateChange: [{
|
|
1132
|
-
type: Output
|
|
1133
|
-
}], toggleDatePicker: [{
|
|
1155
|
+
}] }, { type: i0.ElementRef }, { type: i2$1.Overlay }, { type: i0.ViewContainerRef }], { toggleDatePicker: [{
|
|
1134
1156
|
type: HostListener,
|
|
1135
1157
|
args: ["click"]
|
|
1136
1158
|
}], toggleDatePickerOnEnter: [{
|