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,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, Component, Inject, ViewChild,
|
|
3
|
-
import * as
|
|
2
|
+
import { InjectionToken, signal, computed, effect, Component, Inject, ViewChild, input, output, Injector, Directive, Optional, HostListener, NgModule } from '@angular/core';
|
|
3
|
+
import * as i2$1 from '@angular/forms';
|
|
4
4
|
import { UntypedFormControl } from '@angular/forms';
|
|
5
5
|
import * as i5 from 'mis-crystal-design-system/datepicker_v2';
|
|
6
6
|
import { TzDatepickerDirective, DatepickerModuleV2 } from 'mis-crystal-design-system/datepicker_v2';
|
|
@@ -10,6 +10,7 @@ import utc from 'dayjs/plugin/utc';
|
|
|
10
10
|
import isSameOrAfter from 'dayjs/plugin/isSameOrAfter';
|
|
11
11
|
import isSameOrBefore from 'dayjs/plugin/isSameOrBefore';
|
|
12
12
|
import customParseFormat from 'dayjs/plugin/customParseFormat';
|
|
13
|
+
import isBetween from 'dayjs/plugin/isBetween';
|
|
13
14
|
import * as i1 from 'mis-crystal-design-system/toast';
|
|
14
15
|
import { ToastModule } from 'mis-crystal-design-system/toast';
|
|
15
16
|
import * as i2 from '@angular/common';
|
|
@@ -18,7 +19,7 @@ import * as i3 from 'mis-crystal-design-system/button';
|
|
|
18
19
|
import { ButtonModule } from 'mis-crystal-design-system/button';
|
|
19
20
|
import * as i4 from 'mis-crystal-design-system/radio-button';
|
|
20
21
|
import { RadioButtonModule } from 'mis-crystal-design-system/radio-button';
|
|
21
|
-
import * as
|
|
22
|
+
import * as i1$1 from '@angular/cdk/overlay';
|
|
22
23
|
import { OverlayConfig, OverlayModule } from '@angular/cdk/overlay';
|
|
23
24
|
import { ComponentPortal } from '@angular/cdk/portal';
|
|
24
25
|
import { take } from 'rxjs/operators';
|
|
@@ -84,7 +85,7 @@ const _c7 = a0 => ({ "circular-dot": a0 });
|
|
|
84
85
|
const _c8 = (a0, a1) => ({ "current-day": a0, "holiday-text": a1 });
|
|
85
86
|
function TzDrpContainerComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
86
87
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
87
|
-
i0.ɵɵelementStart(0, "div",
|
|
88
|
+
i0.ɵɵelementStart(0, "div", 28)(1, "mis-radio", 29);
|
|
88
89
|
i0.ɵɵlistener("valueChange", function TzDrpContainerComponent_div_2_Template_mis_radio_valueChange_1_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.changePicker($event)); });
|
|
89
90
|
i0.ɵɵelementEnd();
|
|
90
91
|
i0.ɵɵelementStart(2, "span");
|
|
@@ -99,19 +100,19 @@ function TzDrpContainerComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
99
100
|
i0.ɵɵtextInterpolate(picker_r4);
|
|
100
101
|
} }
|
|
101
102
|
function TzDrpContainerComponent_div_15_Template(rf, ctx) { if (rf & 1) {
|
|
102
|
-
i0.ɵɵelementStart(0, "div",
|
|
103
|
+
i0.ɵɵelementStart(0, "div", 30)(1, "span", 31);
|
|
103
104
|
i0.ɵɵtext(2);
|
|
104
105
|
i0.ɵɵelementEnd()();
|
|
105
106
|
} if (rf & 2) {
|
|
106
107
|
const weekDay_r5 = ctx.$implicit;
|
|
107
108
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
108
109
|
i0.ɵɵadvance();
|
|
109
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c4, weekDay_r5.isCurrentDay && ctx_r2.currentMonthNumber === ctx_r2.todayMonthNumber));
|
|
110
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c4, weekDay_r5.isCurrentDay && ctx_r2.currentMonthNumber() === ctx_r2.todayMonthNumber()));
|
|
110
111
|
i0.ɵɵadvance();
|
|
111
112
|
i0.ɵɵtextInterpolate(weekDay_r5.label);
|
|
112
113
|
} }
|
|
113
114
|
function TzDrpContainerComponent_div_17_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
114
|
-
i0.ɵɵelementStart(0, "span",
|
|
115
|
+
i0.ɵɵelementStart(0, "span", 31);
|
|
115
116
|
i0.ɵɵtext(1);
|
|
116
117
|
i0.ɵɵelementEnd();
|
|
117
118
|
} if (rf & 2) {
|
|
@@ -122,22 +123,22 @@ function TzDrpContainerComponent_div_17_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
122
123
|
} }
|
|
123
124
|
function TzDrpContainerComponent_div_17_Template(rf, ctx) { if (rf & 1) {
|
|
124
125
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
125
|
-
i0.ɵɵelementStart(0, "div",
|
|
126
|
+
i0.ɵɵelementStart(0, "div", 32);
|
|
126
127
|
i0.ɵɵlistener("click", function TzDrpContainerComponent_div_17_Template_div_click_0_listener() { const day_r7 = i0.ɵɵrestoreView(_r6).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.selectDay("LEFT", day_r7)); });
|
|
127
|
-
i0.ɵɵelement(1, "div",
|
|
128
|
-
i0.ɵɵtemplate(2, TzDrpContainerComponent_div_17_span_2_Template, 2, 5, "span",
|
|
128
|
+
i0.ɵɵelement(1, "div", 31);
|
|
129
|
+
i0.ɵɵtemplate(2, TzDrpContainerComponent_div_17_span_2_Template, 2, 5, "span", 33);
|
|
129
130
|
i0.ɵɵelementEnd();
|
|
130
131
|
} if (rf & 2) {
|
|
131
132
|
const day_r7 = ctx.$implicit;
|
|
132
133
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
133
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction6(4, _c5, day_r7.isSelectedDay && ctx_r2.
|
|
134
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction6(4, _c5, day_r7.isSelectedDay && ctx_r2.isSpecificPickerSelected(), day_r7.isDisabledDay, day_r7.isSelectedStartDay && !ctx_r2.isSpecificPickerSelected(), day_r7.isSelectedEndDay && !ctx_r2.isSpecificPickerSelected(), day_r7.inRangeDay && !ctx_r2.isSpecificPickerSelected(), day_r7.date > 0 && !ctx_r2.isSpecificPickerSelected() && !(day_r7.isSelectedStartDay && day_r7.isSelectedEndDay)))("ngStyle", i0.ɵɵpureFunction5(11, _c6, !ctx_r2.isSpecificPickerSelected() ? "0px" : "1px", !ctx_r2.isSpecificPickerSelected() ? "36px" : "35px", day_r7.isHoliday ? "flex-start" : "center", day_r7.isHoliday ? "2.8px" : "0px", day_r7.isHoliday ? "33px" : "36px"));
|
|
134
135
|
i0.ɵɵadvance();
|
|
135
136
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(17, _c7, day_r7.isHoliday));
|
|
136
137
|
i0.ɵɵadvance();
|
|
137
138
|
i0.ɵɵproperty("ngIf", day_r7.date > 0);
|
|
138
139
|
} }
|
|
139
140
|
function TzDrpContainerComponent_div_28_Template(rf, ctx) { if (rf & 1) {
|
|
140
|
-
i0.ɵɵelementStart(0, "div",
|
|
141
|
+
i0.ɵɵelementStart(0, "div", 30)(1, "span");
|
|
141
142
|
i0.ɵɵtext(2);
|
|
142
143
|
i0.ɵɵelementEnd()();
|
|
143
144
|
} if (rf & 2) {
|
|
@@ -146,29 +147,29 @@ function TzDrpContainerComponent_div_28_Template(rf, ctx) { if (rf & 1) {
|
|
|
146
147
|
i0.ɵɵtextInterpolate(weekDay_r8.label);
|
|
147
148
|
} }
|
|
148
149
|
function TzDrpContainerComponent_div_30_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
149
|
-
i0.ɵɵelementStart(0, "span",
|
|
150
|
+
i0.ɵɵelementStart(0, "span", 31);
|
|
150
151
|
i0.ɵɵtext(1);
|
|
151
152
|
i0.ɵɵelementEnd();
|
|
152
153
|
} if (rf & 2) {
|
|
153
154
|
const day_r10 = i0.ɵɵnextContext().$implicit;
|
|
154
155
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
155
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(2, _c8, day_r10.isCurrentDay && ctx_r2.currentMonthNumber === ctx_r2.todayMonthNumber, day_r10.isHoliday || day_r10.isWeekOff));
|
|
156
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(2, _c8, day_r10.isCurrentDay && ctx_r2.currentMonthNumber() === ctx_r2.todayMonthNumber(), day_r10.isHoliday || day_r10.isWeekOff));
|
|
156
157
|
i0.ɵɵadvance();
|
|
157
158
|
i0.ɵɵtextInterpolate1(" ", day_r10.date, " ");
|
|
158
159
|
} }
|
|
159
160
|
function TzDrpContainerComponent_div_30_Template(rf, ctx) { if (rf & 1) {
|
|
160
161
|
const _r9 = i0.ɵɵgetCurrentView();
|
|
161
|
-
i0.ɵɵelementStart(0, "div",
|
|
162
|
+
i0.ɵɵelementStart(0, "div", 34);
|
|
162
163
|
i0.ɵɵlistener("click", function TzDrpContainerComponent_div_30_Template_div_click_0_listener() { const day_r10 = i0.ɵɵrestoreView(_r9).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.selectDay("RIGHT", day_r10)); });
|
|
163
|
-
i0.ɵɵelement(1, "div",
|
|
164
|
-
i0.ɵɵtemplate(2, TzDrpContainerComponent_div_30_span_2_Template, 2, 5, "span",
|
|
164
|
+
i0.ɵɵelement(1, "div", 31);
|
|
165
|
+
i0.ɵɵtemplate(2, TzDrpContainerComponent_div_30_span_2_Template, 2, 5, "span", 33);
|
|
165
166
|
i0.ɵɵelementEnd();
|
|
166
167
|
} if (rf & 2) {
|
|
167
168
|
const day_r10 = ctx.$implicit;
|
|
168
169
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
169
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction6(
|
|
170
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction6(3, _c5, day_r10.isSelectedDay && ctx_r2.isSpecificPickerSelected(), day_r10.isDisabledDay, day_r10.isSelectedStartDay && !ctx_r2.isSpecificPickerSelected(), day_r10.isSelectedEndDay && !ctx_r2.isSpecificPickerSelected(), day_r10.inRangeDay && !ctx_r2.isSpecificPickerSelected(), day_r10.date > 0 && !ctx_r2.isSpecificPickerSelected() && !(day_r10.isSelectedStartDay && day_r10.isSelectedEndDay)));
|
|
170
171
|
i0.ɵɵadvance();
|
|
171
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
172
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c7, day_r10.isHoliday));
|
|
172
173
|
i0.ɵɵadvance();
|
|
173
174
|
i0.ɵɵproperty("ngIf", day_r10.date > 0);
|
|
174
175
|
} }
|
|
@@ -180,7 +181,7 @@ function TzDrpContainerComponent_span_34_span_2_Template(rf, ctx) { if (rf & 1)
|
|
|
180
181
|
function TzDrpContainerComponent_span_34_Template(rf, ctx) { if (rf & 1) {
|
|
181
182
|
i0.ɵɵelementStart(0, "span");
|
|
182
183
|
i0.ɵɵtext(1);
|
|
183
|
-
i0.ɵɵtemplate(2, TzDrpContainerComponent_span_34_span_2_Template, 2, 0, "span",
|
|
184
|
+
i0.ɵɵtemplate(2, TzDrpContainerComponent_span_34_span_2_Template, 2, 0, "span", 22);
|
|
184
185
|
i0.ɵɵelementEnd();
|
|
185
186
|
} if (rf & 2) {
|
|
186
187
|
const weekOff_r11 = ctx.$implicit;
|
|
@@ -197,9 +198,10 @@ function TzDrpContainerComponent_span_39_Template(rf, ctx) { if (rf & 1) {
|
|
|
197
198
|
i0.ɵɵtext(3, "day(s) selected");
|
|
198
199
|
i0.ɵɵelementEnd();
|
|
199
200
|
} if (rf & 2) {
|
|
201
|
+
let tmp_2_0;
|
|
200
202
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
201
203
|
i0.ɵɵadvance(2);
|
|
202
|
-
i0.ɵɵtextInterpolate1("", ctx_r2.
|
|
204
|
+
i0.ɵɵtextInterpolate1("", ctx_r2.isSpecificPickerSelected() && ((tmp_2_0 = ctx_r2.localSelectedDates()[0]) == null ? null : tmp_2_0.selectedDate) ? ctx_r2.localSelectedDates().length : ctx_r2.localSelectedDates().length - 1 && 0, " ");
|
|
203
205
|
} }
|
|
204
206
|
function TzDrpContainerComponent_span_40_Template(rf, ctx) { if (rf & 1) {
|
|
205
207
|
i0.ɵɵelementStart(0, "span")(1, "span");
|
|
@@ -210,228 +212,162 @@ function TzDrpContainerComponent_span_40_Template(rf, ctx) { if (rf & 1) {
|
|
|
210
212
|
} if (rf & 2) {
|
|
211
213
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
212
214
|
i0.ɵɵadvance(2);
|
|
213
|
-
i0.ɵɵtextInterpolate1("", ctx_r2.dateRangeLength > 0 ? ctx_r2.dateRangeLength : 0, " ");
|
|
215
|
+
i0.ɵɵtextInterpolate1("", ctx_r2.dateRangeLength() > 0 ? ctx_r2.dateRangeLength() : 0, " ");
|
|
214
216
|
} }
|
|
215
217
|
function TzDrpContainerComponent_button_44_Template(rf, ctx) { if (rf & 1) {
|
|
216
218
|
const _r13 = i0.ɵɵgetCurrentView();
|
|
217
|
-
i0.ɵɵelementStart(0, "button",
|
|
219
|
+
i0.ɵɵelementStart(0, "button", 35);
|
|
218
220
|
i0.ɵɵlistener("click", function TzDrpContainerComponent_button_44_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r13); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.applyDates()); });
|
|
219
221
|
i0.ɵɵtext(1, "Apply");
|
|
220
222
|
i0.ɵɵelementEnd();
|
|
221
223
|
} if (rf & 2) {
|
|
222
224
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
223
|
-
i0.ɵɵproperty("disabled", !ctx_r2.isDatesValid);
|
|
225
|
+
i0.ɵɵproperty("disabled", !ctx_r2.isDatesValid());
|
|
224
226
|
} }
|
|
225
227
|
function TzDrpContainerComponent_button_45_Template(rf, ctx) { if (rf & 1) {
|
|
226
228
|
const _r14 = i0.ɵɵgetCurrentView();
|
|
227
|
-
i0.ɵɵelementStart(0, "button",
|
|
229
|
+
i0.ɵɵelementStart(0, "button", 35);
|
|
228
230
|
i0.ɵɵlistener("click", function TzDrpContainerComponent_button_45_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r14); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.applyDatesRange()); });
|
|
229
231
|
i0.ɵɵtext(1, "Apply");
|
|
230
232
|
i0.ɵɵelementEnd();
|
|
231
233
|
} if (rf & 2) {
|
|
232
234
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
233
|
-
i0.ɵɵproperty("disabled", !ctx_r2.isDatesValid || ctx_r2.dateRangeLength === 0);
|
|
235
|
+
i0.ɵɵproperty("disabled", !ctx_r2.isDatesValid() || ctx_r2.dateRangeLength() === 0);
|
|
234
236
|
} }
|
|
237
|
+
dayjs.extend(isBetween);
|
|
235
238
|
dayjs.extend(utc);
|
|
236
239
|
dayjs.extend(timezone);
|
|
237
240
|
dayjs.extend(customParseFormat);
|
|
238
241
|
dayjs.extend(isSameOrAfter);
|
|
239
242
|
dayjs.extend(isSameOrBefore);
|
|
240
243
|
class TzDrpContainerComponent {
|
|
241
|
-
constructor(
|
|
244
|
+
constructor(injectedData, toast) {
|
|
245
|
+
this.injectedData = injectedData;
|
|
242
246
|
this.toast = toast;
|
|
243
|
-
this.
|
|
244
|
-
this.dayjsInstance = (
|
|
245
|
-
return dayjs(...args);
|
|
246
|
-
};
|
|
247
|
+
this.data = signal(this.injectedData);
|
|
248
|
+
this.dayjsInstance = computed(() => {
|
|
249
|
+
return (...args) => dayjs(...args);
|
|
250
|
+
});
|
|
247
251
|
this.rawWeekDays = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"];
|
|
248
|
-
this.
|
|
249
|
-
this.
|
|
250
|
-
this.
|
|
251
|
-
this.
|
|
252
|
-
this.
|
|
253
|
-
this.
|
|
254
|
-
this.
|
|
255
|
-
this.
|
|
256
|
-
this.
|
|
257
|
-
this.dateRangeSelected = false;
|
|
258
|
-
this.dateRangeLength = 0;
|
|
252
|
+
this.localSelectedDates = signal([]);
|
|
253
|
+
this.localSelectedDatesRange = signal({ startDate: null, endDate: null });
|
|
254
|
+
this.isDatesValid = signal(false);
|
|
255
|
+
this.dateRangeSelected = signal(false);
|
|
256
|
+
this.singleDatePickerSelected = signal(false);
|
|
257
|
+
this.openElement = signal(false);
|
|
258
|
+
this.singleDateSelectedValue = signal('');
|
|
259
|
+
this.selectionStarted = signal(false);
|
|
260
|
+
this.isSpecificPickerSelected = signal(false);
|
|
259
261
|
this.formControl = new UntypedFormControl('Specific Date(s)');
|
|
260
|
-
this.datePickerValue = ['Specific Date(s)', 'Date Range'];
|
|
261
|
-
this.
|
|
262
|
-
this.
|
|
263
|
-
this.
|
|
264
|
-
this.
|
|
265
|
-
this.
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
}
|
|
271
|
-
this.
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
this.
|
|
262
|
+
this.datePickerValue = signal(['Specific Date(s)', 'Date Range']);
|
|
263
|
+
this.currentMonthNumber = signal(this.dayjsInstance()().month());
|
|
264
|
+
this.currentYearNumber = signal(this.dayjsInstance()().year());
|
|
265
|
+
this.nextMonthNumber = signal(this.dayjsInstance()().add(1, "month").month());
|
|
266
|
+
this.nextYearNumber = signal(this.dayjsInstance()().add(1, "month").year());
|
|
267
|
+
this.weekDays = computed(() => {
|
|
268
|
+
return this.rawWeekDays.map((day, index) => ({
|
|
269
|
+
label: `${day[0]}${day.slice(1).toLowerCase()}`,
|
|
270
|
+
isCurrentDay: this.dayjsInstance()().day() === index
|
|
271
|
+
}));
|
|
272
|
+
});
|
|
273
|
+
this.currentMonth = computed(() => getMonth(this.currentMonthNumber()));
|
|
274
|
+
this.nextMonth = computed(() => getMonth(this.nextMonthNumber()));
|
|
275
|
+
this.todayMonthNumber = computed(() => this.dayjsInstance()().month());
|
|
276
|
+
this.dateRangeLength = computed(() => {
|
|
277
|
+
const range = this.localSelectedDatesRange();
|
|
278
|
+
if (range?.startDate && range?.endDate) {
|
|
279
|
+
const start = this.dayjsInstance()(range.startDate, this.data().dpConfig.format);
|
|
280
|
+
const end = this.dayjsInstance()(range.endDate, this.data().dpConfig.format);
|
|
281
|
+
if (start.isValid() && end.isValid()) {
|
|
282
|
+
return end.diff(start, 'day') + 1;
|
|
283
|
+
}
|
|
278
284
|
}
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
285
|
+
return 0;
|
|
286
|
+
});
|
|
287
|
+
this.isPreviousMonthDisabled = computed(() => {
|
|
288
|
+
const currentInstance = this.dayjsInstance()().year(this.currentYearNumber()).month(this.currentMonthNumber());
|
|
289
|
+
const minDate = !!this.data().dpConfig.minDate ? this.dayjsInstance()(this.data().dpConfig.minDate, this.data().dpConfig.format) : dayjs('invalid');
|
|
290
|
+
return minDate.isValid() && minDate.isSameOrAfter(currentInstance, "month");
|
|
291
|
+
});
|
|
292
|
+
this.isNextMonthDisabled = computed(() => {
|
|
293
|
+
const currentInstance = this.dayjsInstance()().year(this.currentYearNumber()).month(this.currentMonthNumber());
|
|
294
|
+
const maxDate = !!this.data().dpConfig.maxDate ? this.dayjsInstance()(this.data().dpConfig.maxDate, this.data().dpConfig.format) : dayjs('invalid');
|
|
295
|
+
return maxDate.isValid() && maxDate.isSameOrBefore(currentInstance, "month");
|
|
296
|
+
});
|
|
297
|
+
this.currentMonthDates = computed(() => {
|
|
298
|
+
return this.generateDates(this.currentMonthNumber(), this.currentYearNumber());
|
|
299
|
+
});
|
|
300
|
+
this.nextMonthDates = computed(() => {
|
|
301
|
+
return this.generateDates(this.nextMonthNumber(), this.nextYearNumber());
|
|
302
|
+
});
|
|
303
|
+
this.localSelectedDates.set(this.data().dates);
|
|
304
|
+
this.localSelectedDatesRange.set(this.injectedData.datesRange || { startDate: null, endDate: null });
|
|
305
|
+
this.isSpecificPickerSelected.set(this.data().isSPickerSelected);
|
|
306
|
+
this.isDatesValid.set(this.data().isSPickerSelected ? this.localSelectedDates().length > 0 : !!(this.localSelectedDatesRange()?.startDate && this.localSelectedDatesRange()?.endDate));
|
|
307
|
+
this.dateRangeSelected.set(!this.isSpecificPickerSelected());
|
|
308
|
+
this.singleDatePickerSelected.set(this.data().isSingleDatePickerEnable);
|
|
309
|
+
effect(() => {
|
|
310
|
+
let selectedStartDate;
|
|
311
|
+
if (!this.isSpecificPickerSelected()) {
|
|
312
|
+
selectedStartDate = this.dayjsInstance()(this.localSelectedDatesRange()?.startDate, this.data().dpConfig.format);
|
|
284
313
|
}
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
this.dayjsInstance = (...args) => {
|
|
288
|
-
return dayjs(...args).tz(this.data.dpConfig.timezone);
|
|
289
|
-
};
|
|
290
|
-
}
|
|
291
|
-
this.currentMonthNumber = this.dayjsInstance().month();
|
|
292
|
-
this.nextMonthNumber = this.dayjsInstance().add(1, "month").month();
|
|
293
|
-
this.currentMonth = getMonth(this.currentMonthNumber);
|
|
294
|
-
this.nextMonth = getMonth(this.nextMonthNumber);
|
|
295
|
-
this.currentYearNumber = this.dayjsInstance().year();
|
|
296
|
-
this.nextYearNumber = this.dayjsInstance().add(1, "month").year();
|
|
297
|
-
this.weekDays = this.rawWeekDays.map((day, index) => ({
|
|
298
|
-
label: `${day[0]}${day.slice(1).toLowerCase()}`,
|
|
299
|
-
isCurrentDay: this.dayjsInstance().day() === index
|
|
300
|
-
}));
|
|
301
|
-
if (!this.data?.dpConfig?.format) {
|
|
302
|
-
this.data.dpConfig = {
|
|
303
|
-
...this.data.dpConfig,
|
|
304
|
-
format: DATE_FORMAT
|
|
305
|
-
};
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
ngOnInit() {
|
|
309
|
-
if (this.data.isSingleDatePickerEnable) {
|
|
310
|
-
this.datePickerValue.unshift('Single Date');
|
|
311
|
-
this.formControl.setValue('Single Date');
|
|
312
|
-
this.singleDatePickerSelected = true;
|
|
313
|
-
this.openElement = true;
|
|
314
|
-
this.singleDateSelectedValue = this.data?.dates[0]?.selectedDate;
|
|
315
|
-
}
|
|
316
|
-
this.currentDateInstance();
|
|
317
|
-
this.calculateMinMaxDays();
|
|
318
|
-
}
|
|
319
|
-
currentDateInstance() {
|
|
320
|
-
let selectedStartDate;
|
|
321
|
-
if (!this.data.isSPickerSelected) {
|
|
322
|
-
if (!this.localSelectedDatesRange?.startDate) {
|
|
323
|
-
this.currentMonthDates = this.generateDates(this.currentMonthNumber, this.currentYearNumber);
|
|
324
|
-
this.nextMonthDates = this.generateDates(this.nextMonthNumber, this.nextYearNumber);
|
|
325
|
-
return;
|
|
314
|
+
else {
|
|
315
|
+
selectedStartDate = this.dayjsInstance()(this.localSelectedDates()?.[0]?.selectedDate, this.data().dpConfig.format);
|
|
326
316
|
}
|
|
327
|
-
selectedStartDate
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
if (selectedStartDate.isValid()) {
|
|
333
|
-
this.currentYearNumber = selectedStartDate.year();
|
|
334
|
-
this.nextYearNumber = selectedStartDate.add(1, "month").year();
|
|
335
|
-
this.currentMonthNumber = selectedStartDate.get("month");
|
|
336
|
-
this.nextMonthNumber = selectedStartDate.add(1, "month").month();
|
|
337
|
-
if (this.currentMonthNumber === -1) {
|
|
338
|
-
this.currentMonthNumber = 11;
|
|
317
|
+
if (selectedStartDate.isValid()) {
|
|
318
|
+
this.currentYearNumber.set(selectedStartDate.year());
|
|
319
|
+
this.nextYearNumber.set(selectedStartDate.add(1, "month").year());
|
|
320
|
+
this.currentMonthNumber.set(selectedStartDate.get("month"));
|
|
321
|
+
this.nextMonthNumber.set(selectedStartDate.add(1, "month").month());
|
|
339
322
|
}
|
|
340
|
-
|
|
341
|
-
|
|
323
|
+
}, { allowSignalWrites: true });
|
|
324
|
+
effect(() => {
|
|
325
|
+
if (this.data().isSingleDatePickerEnable) {
|
|
326
|
+
const pickerValue = 'Single Date';
|
|
327
|
+
if (!this.datePickerValue().includes(pickerValue)) {
|
|
328
|
+
this.datePickerValue.update(currentValue => [pickerValue, ...currentValue]);
|
|
329
|
+
}
|
|
330
|
+
this.formControl.setValue(pickerValue);
|
|
331
|
+
this.singleDatePickerSelected.set(true);
|
|
332
|
+
this.openElement.set(true);
|
|
333
|
+
this.singleDateSelectedValue.set(this.data().dates[0]?.selectedDate || '');
|
|
342
334
|
}
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
this.currentMonthDates = this.generateDates(this.currentMonthNumber, this.currentYearNumber);
|
|
347
|
-
this.nextMonthDates = this.generateDates(this.nextMonthNumber, this.nextYearNumber);
|
|
348
|
-
}
|
|
349
|
-
calculateMinMaxDays() {
|
|
350
|
-
const currentInstance = this.dayjsInstance().year(this.currentYearNumber).month(this.currentMonthNumber);
|
|
351
|
-
const minDate = !!this.data.dpConfig.minDate ? this.dayjsInstance(this.data.dpConfig.minDate, this.data.dpConfig.format) : dayjs('invalid');
|
|
352
|
-
if (minDate.isValid()) {
|
|
353
|
-
this.isPreviousMonthDisabled = minDate.isSameOrAfter(currentInstance, "month");
|
|
354
|
-
}
|
|
355
|
-
const maxDate = !!this.data.dpConfig.maxDate ? this.dayjsInstance(this.data.dpConfig.maxDate, this.data.dpConfig.format) : dayjs('invalid');
|
|
356
|
-
if (maxDate.isValid()) {
|
|
357
|
-
this.isNextMonthDisabled = maxDate.isSameOrBefore(currentInstance, "month");
|
|
335
|
+
});
|
|
336
|
+
if (this.data()?.dpConfig?.timezone) {
|
|
337
|
+
this.dayjsInstance = computed(() => (...args) => dayjs(...args).tz(this.data().dpConfig.timezone));
|
|
358
338
|
}
|
|
359
339
|
}
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
thisMonth = thisMonth.subtract(1, "month");
|
|
367
|
-
}
|
|
368
|
-
this.currentMonthNumber = thisMonth.month();
|
|
369
|
-
this.nextMonthNumber = thisMonth.clone().add(1, "month").month();
|
|
370
|
-
this.currentMonth = getMonth(this.currentMonthNumber);
|
|
371
|
-
this.nextMonth = getMonth(this.nextMonthNumber);
|
|
372
|
-
if (this.nextMonthNumber === 0 && direction === "PREVIOUS") {
|
|
373
|
-
this.currentYearNumber--;
|
|
374
|
-
}
|
|
375
|
-
else if (this.currentMonthNumber === 11 && direction === "NEXT") {
|
|
376
|
-
this.nextYearNumber++;
|
|
377
|
-
}
|
|
378
|
-
else if (this.currentMonthNumber === 0 && direction === "NEXT") {
|
|
379
|
-
this.currentYearNumber++;
|
|
380
|
-
}
|
|
381
|
-
else if (this.nextMonthNumber === 11 && direction === "PREVIOUS") {
|
|
382
|
-
this.nextYearNumber--;
|
|
383
|
-
}
|
|
384
|
-
else {
|
|
385
|
-
this.nextYearNumber = this.currentYearNumber;
|
|
340
|
+
ngOnInit() {
|
|
341
|
+
if (!this.data()?.dpConfig?.format) {
|
|
342
|
+
this.data().dpConfig = {
|
|
343
|
+
...this.data().dpConfig,
|
|
344
|
+
format: DATE_FORMAT
|
|
345
|
+
};
|
|
386
346
|
}
|
|
387
|
-
this.currentMonthDates = this.generateDates(this.currentMonthNumber, this.currentYearNumber);
|
|
388
|
-
this.nextMonthDates = this.generateDates(this.nextMonthNumber, this.nextYearNumber);
|
|
389
|
-
this.calculateMinMaxDays();
|
|
390
347
|
}
|
|
391
348
|
generateDates(month, currentYearNumber) {
|
|
392
|
-
|
|
393
|
-
const daysInMonth =
|
|
349
|
+
const dates = [];
|
|
350
|
+
const daysInMonth = this.dayjsInstance()().year(currentYearNumber).month(month).daysInMonth();
|
|
394
351
|
for (let currentDate = 1; currentDate <= daysInMonth; currentDate++) {
|
|
395
|
-
const date = this.dayjsInstance().year(currentYearNumber).month(month).date(currentDate);
|
|
396
|
-
const dateString = date.format(this.data.dpConfig.format);
|
|
397
|
-
let isDisabledDay = this.data.datesDisabled.some(d => d === dateString);
|
|
398
|
-
const minDate = !!this.data.dpConfig.minDate ? this.dayjsInstance(this.data.dpConfig.minDate, this.data.dpConfig.format) : dayjs('invalid');
|
|
352
|
+
const date = this.dayjsInstance()().year(currentYearNumber).month(month).date(currentDate);
|
|
353
|
+
const dateString = date.format(this.data().dpConfig.format);
|
|
354
|
+
let isDisabledDay = this.data().datesDisabled.some(d => d === dateString);
|
|
355
|
+
const minDate = !!this.data().dpConfig.minDate ? this.dayjsInstance()(this.data().dpConfig.minDate, this.data().dpConfig.format) : dayjs('invalid');
|
|
399
356
|
if (!isDisabledDay && minDate.isValid()) {
|
|
400
357
|
isDisabledDay = minDate.isAfter(date, "day");
|
|
401
358
|
}
|
|
402
|
-
const maxDate = !!this.data.dpConfig.maxDate ? this.dayjsInstance(this.data.dpConfig.maxDate, this.data.dpConfig.format) : dayjs('invalid');
|
|
359
|
+
const maxDate = !!this.data().dpConfig.maxDate ? this.dayjsInstance()(this.data().dpConfig.maxDate, this.data().dpConfig.format) : dayjs('invalid');
|
|
403
360
|
if (!isDisabledDay && maxDate.isValid()) {
|
|
404
361
|
isDisabledDay = maxDate.isBefore(date, "day");
|
|
405
362
|
}
|
|
406
|
-
const isCurrentDay = this.dayjsInstance()
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
}
|
|
415
|
-
let isHoliday = false;
|
|
416
|
-
for (const day of this.data.holidays) {
|
|
417
|
-
if (date.format(this.data.dpConfig.format) === day) {
|
|
418
|
-
isHoliday = true;
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
const dayOfWeek = date.format('ddd');
|
|
422
|
-
const isWeekOff = this.data.weekOffs.includes(dayOfWeek);
|
|
423
|
-
const isSelectedStartDay = !isDisabledDay &&
|
|
424
|
-
(this.localSelectedDatesRange?.startDate ?? false) &&
|
|
425
|
-
date.format(this.data.dpConfig.format) === this.localSelectedDatesRange?.startDate;
|
|
426
|
-
const isAfterSelectedStartDate = this.dayjsInstance(date).isAfter(dayjs(this.localSelectedDatesRange?.startDate, this.data.dpConfig.format), "day");
|
|
427
|
-
const isBeforeSelectedEndDate = this.dayjsInstance(date).isBefore(dayjs(this.localSelectedDatesRange?.endDate, this.data.dpConfig.format), "day");
|
|
428
|
-
const inRangeDay = (this.localSelectedDatesRange?.startDate ?? false) &&
|
|
429
|
-
(this.localSelectedDatesRange?.endDate ?? false) &&
|
|
430
|
-
isAfterSelectedStartDate &&
|
|
431
|
-
isBeforeSelectedEndDate;
|
|
432
|
-
const isSelectedEndDay = !isDisabledDay &&
|
|
433
|
-
((this.localSelectedDatesRange?.startDate && this.localSelectedDatesRange?.endDate) ?? false) &&
|
|
434
|
-
date.format(this.data.dpConfig.format) === this.localSelectedDatesRange?.endDate;
|
|
363
|
+
const isCurrentDay = date.isSame(this.dayjsInstance()(), 'day');
|
|
364
|
+
let isSelectedDay = this.localSelectedDates().some(d => d.selectedDate === dateString);
|
|
365
|
+
const isSelectedStartDay = !!this.localSelectedDatesRange()?.startDate && date.format(this.data().dpConfig.format) === this.localSelectedDatesRange()?.startDate;
|
|
366
|
+
const isSelectedEndDay = !!this.localSelectedDatesRange()?.endDate && date.format(this.data().dpConfig.format) === this.localSelectedDatesRange()?.endDate;
|
|
367
|
+
const inRangeDay = !!(this.localSelectedDatesRange()?.startDate && this.localSelectedDatesRange()?.endDate) &&
|
|
368
|
+
date.isBetween(this.dayjsInstance()(this.localSelectedDatesRange()?.startDate, this.data().dpConfig.format), this.dayjsInstance()(this.localSelectedDatesRange()?.endDate, this.data().dpConfig.format), 'day', '()');
|
|
369
|
+
const isHoliday = this.data().holidays.includes(dateString);
|
|
370
|
+
const isWeekOff = this.data().weekOffs.includes(date.format('ddd'));
|
|
435
371
|
dates.push({
|
|
436
372
|
date: currentDate,
|
|
437
373
|
weekDay: date.day(),
|
|
@@ -442,161 +378,112 @@ class TzDrpContainerComponent {
|
|
|
442
378
|
inRangeDay,
|
|
443
379
|
isHoliday,
|
|
444
380
|
isWeekOff,
|
|
445
|
-
toastMessage: this.data.messages.find(q => date.format(this.data.dpConfig.format) === q.date)?.message || "",
|
|
381
|
+
toastMessage: this.data().messages.find(q => date.format(this.data().dpConfig.format) === q.date)?.message || "",
|
|
446
382
|
isDisabledDay
|
|
447
383
|
});
|
|
448
384
|
}
|
|
449
|
-
for (let i = dates[0]
|
|
385
|
+
for (let i = dates[0]?.weekDay || 0; i > 0; i--) {
|
|
450
386
|
dates.unshift({ date: 0, weekDay: i - 1 });
|
|
451
387
|
}
|
|
452
388
|
return dates;
|
|
453
389
|
}
|
|
390
|
+
navigateMonth(direction) {
|
|
391
|
+
let thisMonth = this.dayjsInstance()().year(this.currentYearNumber()).month(this.currentMonthNumber());
|
|
392
|
+
thisMonth = direction === "NEXT" ? thisMonth.add(1, "month") : thisMonth.subtract(1, "month");
|
|
393
|
+
this.currentMonthNumber.set(thisMonth.month());
|
|
394
|
+
this.currentYearNumber.set(thisMonth.year());
|
|
395
|
+
this.nextMonthNumber.set(thisMonth.clone().add(1, "month").month());
|
|
396
|
+
this.nextYearNumber.set(thisMonth.clone().add(1, "month").year());
|
|
397
|
+
}
|
|
454
398
|
selectDay(from, day) {
|
|
455
|
-
if (day.date <= 0)
|
|
399
|
+
if (day.date <= 0 || day.isDisabledDay) {
|
|
400
|
+
if (day.toastMessage)
|
|
401
|
+
this.toast.displayMsg(day.toastMessage, 4000);
|
|
456
402
|
return;
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
};
|
|
469
|
-
this.currentMonthDates = this.generateDates(this.currentMonthNumber, this.currentYearNumber);
|
|
470
|
-
this.nextMonthDates = this.generateDates(this.nextMonthNumber, this.nextYearNumber);
|
|
471
|
-
return;
|
|
472
|
-
}
|
|
473
|
-
this.selectionStarted = false;
|
|
474
|
-
this.localSelectedDatesRange = {
|
|
475
|
-
...this.localSelectedDatesRange,
|
|
476
|
-
endDate: dayjsDay.format(this.data.dpConfig.format)
|
|
477
|
-
};
|
|
478
|
-
}
|
|
479
|
-
else {
|
|
480
|
-
this.selectionStarted = true;
|
|
481
|
-
this.localSelectedDatesRange = {
|
|
482
|
-
startDate: dayjs()
|
|
483
|
-
.year(from === "LEFT" ? this.currentYearNumber : this.nextYearNumber)
|
|
484
|
-
.month(from === "LEFT" ? this.currentMonthNumber : this.nextMonthNumber)
|
|
485
|
-
.date(day.date)
|
|
486
|
-
.format(this.data.dpConfig.format),
|
|
487
|
-
endDate: null
|
|
488
|
-
};
|
|
403
|
+
}
|
|
404
|
+
if (this.isSpecificPickerSelected()) {
|
|
405
|
+
this.localSelectedDates.update(current => {
|
|
406
|
+
const currentSelection = this.dayjsInstance()()
|
|
407
|
+
.year(from === "LEFT" ? this.currentYearNumber() : this.nextYearNumber())
|
|
408
|
+
.month(from === "LEFT" ? this.currentMonthNumber() : this.nextMonthNumber())
|
|
409
|
+
.date(day.date).format(this.data().dpConfig.format);
|
|
410
|
+
const existingIndex = current.findIndex(d => d.selectedDate === currentSelection);
|
|
411
|
+
if (existingIndex !== -1) {
|
|
412
|
+
this.isDatesValid.set(current.length > 1);
|
|
413
|
+
return current.filter((_, index) => index !== existingIndex);
|
|
489
414
|
}
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
if (this.localSelectedDatesRange?.startDate && this.localSelectedDatesRange?.endDate) {
|
|
494
|
-
this.isDatesValid = true;
|
|
415
|
+
else if (!day.isDisabledDay) {
|
|
416
|
+
this.isDatesValid.set(true);
|
|
417
|
+
return [...current, { selectedDate: currentSelection }];
|
|
495
418
|
}
|
|
496
|
-
|
|
497
|
-
|
|
419
|
+
return current;
|
|
420
|
+
});
|
|
498
421
|
}
|
|
499
422
|
else {
|
|
500
|
-
const
|
|
501
|
-
.year(from === "LEFT" ? this.currentYearNumber : this.nextYearNumber)
|
|
502
|
-
.month(from === "LEFT" ? this.currentMonthNumber : this.nextMonthNumber)
|
|
503
|
-
.date(day.date)
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
}
|
|
511
|
-
this.currentMonthDates = this.generateDates(this.currentMonthNumber, this.currentYearNumber);
|
|
512
|
-
this.nextMonthDates = this.generateDates(this.nextMonthNumber, this.nextYearNumber);
|
|
513
|
-
}
|
|
514
|
-
else if (!day.isDisabledDay) {
|
|
515
|
-
this.localSelectedDates = [
|
|
516
|
-
...this.localSelectedDates,
|
|
517
|
-
{
|
|
518
|
-
selectedDate: currentSelection
|
|
423
|
+
const dayjsDay = this.dayjsInstance()()
|
|
424
|
+
.year(from === "LEFT" ? this.currentYearNumber() : this.nextYearNumber())
|
|
425
|
+
.month(from === "LEFT" ? this.currentMonthNumber() : this.nextMonthNumber())
|
|
426
|
+
.date(day.date);
|
|
427
|
+
this.localSelectedDatesRange.update(current => {
|
|
428
|
+
if (this.selectionStarted()) {
|
|
429
|
+
if (dayjsDay.isBefore(this.dayjsInstance()(current.startDate, this.data().dpConfig.format), "day")) {
|
|
430
|
+
this.selectionStarted.set(true);
|
|
431
|
+
this.isDatesValid.set(false);
|
|
432
|
+
return { startDate: dayjsDay.format(this.data().dpConfig.format), endDate: null };
|
|
519
433
|
}
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
this.isDatesValid = true;
|
|
434
|
+
this.selectionStarted.set(false);
|
|
435
|
+
this.isDatesValid.set(true);
|
|
436
|
+
return { ...current, endDate: dayjsDay.format(this.data().dpConfig.format) };
|
|
524
437
|
}
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
if (day.toastMessage) {
|
|
533
|
-
this.toast.displayMsg(day.toastMessage, 4000);
|
|
438
|
+
else {
|
|
439
|
+
this.selectionStarted.set(true);
|
|
440
|
+
this.isDatesValid.set(false);
|
|
441
|
+
return { startDate: dayjsDay.format(this.data().dpConfig.format), endDate: null };
|
|
442
|
+
}
|
|
443
|
+
});
|
|
534
444
|
}
|
|
535
445
|
}
|
|
536
446
|
applyDates() {
|
|
537
|
-
this.data.dateChange(this.localSelectedDates);
|
|
447
|
+
this.data().dateChange(this.localSelectedDates());
|
|
538
448
|
}
|
|
539
449
|
applyDatesRange() {
|
|
540
|
-
this.data.dateChangeRange(this.localSelectedDatesRange);
|
|
450
|
+
this.data().dateChangeRange(this.localSelectedDatesRange());
|
|
541
451
|
}
|
|
542
|
-
onSingleDateChange(
|
|
543
|
-
|
|
544
|
-
this.singleDateSelectedValue
|
|
545
|
-
this.data.dateChange([selectedData]);
|
|
452
|
+
onSingleDateChange(event) {
|
|
453
|
+
const selectedData = { selectedDate: event };
|
|
454
|
+
this.singleDateSelectedValue.set(event);
|
|
455
|
+
this.data().dateChange([selectedData]);
|
|
546
456
|
}
|
|
547
457
|
cancelDatePicker() {
|
|
548
|
-
this.data.close();
|
|
458
|
+
this.data().close();
|
|
549
459
|
}
|
|
550
460
|
changePicker(event) {
|
|
551
|
-
this.
|
|
552
|
-
this.
|
|
553
|
-
this.
|
|
554
|
-
this.
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
this.data.isSPickerSelected = false;
|
|
559
|
-
if (this.localSelectedDatesRange?.startDate && this.localSelectedDatesRange?.endDate) {
|
|
560
|
-
this.isDatesValid = true;
|
|
561
|
-
this.calculateDateRangeLength();
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
else if (event === "Single Date") {
|
|
565
|
-
this.singleDatePickerSelected = true;
|
|
566
|
-
this.openElement = true;
|
|
567
|
-
}
|
|
568
|
-
else {
|
|
569
|
-
this.openElement = false;
|
|
570
|
-
this.data.isSPickerSelected = true;
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
calculateDateRangeLength() {
|
|
574
|
-
if (this.localSelectedDatesRange) {
|
|
575
|
-
const startDate = !!this.localSelectedDatesRange.startDate ? this.dayjsInstance(this.localSelectedDatesRange.startDate, this.data.dpConfig.format) : dayjs('invalid');
|
|
576
|
-
const endDate = !!this.localSelectedDatesRange.endDate ? this.dayjsInstance(this.localSelectedDatesRange.endDate, this.data.dpConfig.format) : dayjs('invalid');
|
|
577
|
-
if (startDate && endDate) {
|
|
578
|
-
this.dateRangeLength = endDate.diff(startDate, 'day') + 1;
|
|
579
|
-
}
|
|
580
|
-
}
|
|
461
|
+
this.singleDatePickerSelected.set(event === "Single Date");
|
|
462
|
+
this.openElement.set(event === "Single Date");
|
|
463
|
+
this.dateRangeSelected.set(event === "Date Range");
|
|
464
|
+
this.isSpecificPickerSelected.set(event === "Specific Date(s)");
|
|
465
|
+
// As discussed, state is retained when switching modes.
|
|
466
|
+
// The view will simply update to reflect the active mode.
|
|
467
|
+
this.formControl.setValue(event, { emitEvent: false });
|
|
581
468
|
}
|
|
582
469
|
ngOnDestroy() {
|
|
583
470
|
if (this.singleDatePickerElement) {
|
|
584
471
|
this.singleDatePickerElement.close();
|
|
585
472
|
}
|
|
586
473
|
}
|
|
587
|
-
static { this.ɵfac = function TzDrpContainerComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TzDrpContainerComponent)(i0.ɵɵdirectiveInject(CONTAINER_DATA), i0.ɵɵdirectiveInject(i1.ToastService)
|
|
474
|
+
static { this.ɵfac = function TzDrpContainerComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TzDrpContainerComponent)(i0.ɵɵdirectiveInject(CONTAINER_DATA), i0.ɵɵdirectiveInject(i1.ToastService)); }; }
|
|
588
475
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TzDrpContainerComponent, selectors: [["mis-tz-sdp"]], viewQuery: function TzDrpContainerComponent_Query(rf, ctx) { if (rf & 1) {
|
|
589
476
|
i0.ɵɵviewQuery(_c0, 7, TzDatepickerDirective);
|
|
590
477
|
} if (rf & 2) {
|
|
591
478
|
let _t;
|
|
592
479
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.singleDatePickerElement = _t.first);
|
|
593
|
-
} }, decls: 49, vars: 35, consts: [["singleDatePickerElement", ""], [1, "daterangepicker-container", 3, "ngClass"], [1, "radio-container"], ["class", "label", 4, "ngFor", "ngForOf"], [1, "specific-datepicker-container", 3, "ngStyle"], [1, "daterangepicker-container__view"], [1, "datepicker__left"], [1, "daterangepicker-container__header__prabu"], [1, "daterangepicker-container__arrow__icon", 3, "click", "ngClass"], ["width", "20", "height", "16", "viewBox", "0 0 20 16", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M19.7071 8.70711C20.0976 8.31658 20.0976 7.68342 19.7071 7.29289L13.3431 0.928933C12.9526 0.538409 12.3195 0.538409 11.9289 0.928933C11.5384 1.31946 11.5384 1.95262 11.9289 2.34315L17.5858 8L11.9289 13.6569C11.5384 14.0474 11.5384 14.6805 11.9289 15.0711C12.3195 15.4616 12.9526 15.4616 13.3431 15.0711L19.7071 8.70711ZM-8.74228e-08 9L19 9L19 7L8.74228e-08 7L-8.74228e-08 9Z", "fill", "#181F33"], [1, "daterangepicker-container__body"], [1, "daterangepicker-container__weekdays"], ["class", "daterangepicker-container__weekday", 4, "ngFor", "ngForOf"], [1, "daterangepicker-container__days"], ["class", "daterangepicker-container__day", 3, "ngClass", "ngStyle", "click", 4, "ngFor", "ngForOf"], [1, "datepicker__right"], [1, "weekOffs_holidays_container"], [4, "ngFor", "ngForOf"], [1, "circular-dot", 3, "ngStyle"], [1, "daterangepicker__footer"], [4, "ngIf"], [1, "footer_action_btn"], ["mis-button", "", "size", "md", "type", "none", 3, "click"], ["mis-button", "", "size", "md", "type", "primary", 3, "disabled", "click", 4, "ngIf"], [1, "single-datepicker-container", 3, "ngStyle"], ["misTzDp", "", "misInput", "", "type", "text", "readonly", "", "placeholder", "Select", "positionX", "center", "positionY", "top", "offsetX", "71", "offsetY", "-1", 1, "date-input", 3, "dateChange", "dpConfig", "selectedDate", "value", "disableBoxShadow", "disableOverLay", "openElement"], [1, "label"], ["ngDefaultControl", "", 1, "input", 3, "valueChange", "name", "value", "formControl"], [1, "daterangepicker-container__weekday"], [3, "ngClass"], [1, "daterangepicker-container__day", 3, "click", "ngClass", "ngStyle"], [3, "ngClass", 4, "ngIf"], ["mis-button", "", "size", "md", "type", "primary", 3, "click", "disabled"]], template: function TzDrpContainerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
480
|
+
} }, decls: 49, vars: 35, consts: [["singleDatePickerElement", ""], [1, "daterangepicker-container", 3, "ngClass"], [1, "radio-container"], ["class", "label", 4, "ngFor", "ngForOf"], [1, "specific-datepicker-container", 3, "ngStyle"], [1, "daterangepicker-container__view"], [1, "datepicker__left"], [1, "daterangepicker-container__header__prabu"], [1, "daterangepicker-container__arrow__icon", 3, "click", "ngClass"], ["width", "20", "height", "16", "viewBox", "0 0 20 16", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M19.7071 8.70711C20.0976 8.31658 20.0976 7.68342 19.7071 7.29289L13.3431 0.928933C12.9526 0.538409 12.3195 0.538409 11.9289 0.928933C11.5384 1.31946 11.5384 1.95262 11.9289 2.34315L17.5858 8L11.9289 13.6569C11.5384 14.0474 11.5384 14.6805 11.9289 15.0711C12.3195 15.4616 12.9526 15.4616 13.3431 15.0711L19.7071 8.70711ZM-8.74228e-08 9L19 9L19 7L8.74228e-08 7L-8.74228e-08 9Z", "fill", "#181F33"], [1, "daterangepicker-container__body"], [1, "daterangepicker-container__weekdays"], ["class", "daterangepicker-container__weekday", 4, "ngFor", "ngForOf"], [1, "daterangepicker-container__days"], ["class", "daterangepicker-container__day", 3, "ngClass", "ngStyle", "click", 4, "ngFor", "ngForOf"], [1, "datepicker__right"], ["class", "daterangepicker-container__day", 3, "ngClass", "click", 4, "ngFor", "ngForOf"], [1, "weekOffs_holidays_container"], [4, "ngFor", "ngForOf"], [1, "circular-dot", 3, "ngStyle"], [1, "daterangepicker__footer"], [4, "ngIf"], [1, "footer_action_btn"], ["mis-button", "", "size", "md", "type", "none", 3, "click"], ["mis-button", "", "size", "md", "type", "primary", 3, "disabled", "click", 4, "ngIf"], [1, "single-datepicker-container", 3, "ngStyle"], ["misTzDp", "", "misInput", "", "type", "text", "readonly", "", "placeholder", "Select", "positionX", "center", "positionY", "top", "offsetX", "71", "offsetY", "-1", 1, "date-input", 3, "dateChange", "dpConfig", "selectedDate", "value", "disableBoxShadow", "disableOverLay", "openElement"], [1, "label"], ["ngDefaultControl", "", 1, "input", 3, "valueChange", "name", "value", "formControl"], [1, "daterangepicker-container__weekday"], [3, "ngClass"], [1, "daterangepicker-container__day", 3, "click", "ngClass", "ngStyle"], [3, "ngClass", 4, "ngIf"], [1, "daterangepicker-container__day", 3, "click", "ngClass"], ["mis-button", "", "size", "md", "type", "primary", 3, "click", "disabled"]], template: function TzDrpContainerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
594
481
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
595
482
|
i0.ɵɵelementStart(0, "div", 1)(1, "div", 2);
|
|
596
483
|
i0.ɵɵtemplate(2, TzDrpContainerComponent_div_2_Template, 4, 4, "div", 3);
|
|
597
484
|
i0.ɵɵelementEnd();
|
|
598
485
|
i0.ɵɵelementStart(3, "div", 4)(4, "div", 5)(5, "div", 6)(6, "div", 7)(7, "div", 8);
|
|
599
|
-
i0.ɵɵlistener("click", function TzDrpContainerComponent_Template_div_click_7_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(!ctx.isPreviousMonthDisabled && ctx.navigateMonth("PREVIOUS")); });
|
|
486
|
+
i0.ɵɵlistener("click", function TzDrpContainerComponent_Template_div_click_7_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(!ctx.isPreviousMonthDisabled() && ctx.navigateMonth("PREVIOUS")); });
|
|
600
487
|
i0.ɵɵnamespaceSVG();
|
|
601
488
|
i0.ɵɵelementStart(8, "svg", 9);
|
|
602
489
|
i0.ɵɵelement(9, "path", 10);
|
|
@@ -619,7 +506,7 @@ class TzDrpContainerComponent {
|
|
|
619
506
|
i0.ɵɵtext(22);
|
|
620
507
|
i0.ɵɵelementEnd();
|
|
621
508
|
i0.ɵɵelementStart(23, "div", 8);
|
|
622
|
-
i0.ɵɵlistener("click", function TzDrpContainerComponent_Template_div_click_23_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(!ctx.isNextMonthDisabled && ctx.navigateMonth("NEXT")); });
|
|
509
|
+
i0.ɵɵlistener("click", function TzDrpContainerComponent_Template_div_click_23_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(!ctx.isNextMonthDisabled() && ctx.navigateMonth("NEXT")); });
|
|
623
510
|
i0.ɵɵnamespaceSVG();
|
|
624
511
|
i0.ɵɵelementStart(24, "svg", 9);
|
|
625
512
|
i0.ɵɵelement(25, "path", 10);
|
|
@@ -629,139 +516,146 @@ class TzDrpContainerComponent {
|
|
|
629
516
|
i0.ɵɵtemplate(28, TzDrpContainerComponent_div_28_Template, 3, 1, "div", 13);
|
|
630
517
|
i0.ɵɵelementEnd();
|
|
631
518
|
i0.ɵɵelementStart(29, "div", 14);
|
|
632
|
-
i0.ɵɵtemplate(30, TzDrpContainerComponent_div_30_Template, 3,
|
|
519
|
+
i0.ɵɵtemplate(30, TzDrpContainerComponent_div_30_Template, 3, 12, "div", 17);
|
|
633
520
|
i0.ɵɵelementEnd()()()();
|
|
634
|
-
i0.ɵɵelementStart(31, "div",
|
|
521
|
+
i0.ɵɵelementStart(31, "div", 18)(32, "span");
|
|
635
522
|
i0.ɵɵtext(33, "Weekly offs: ");
|
|
636
|
-
i0.ɵɵtemplate(34, TzDrpContainerComponent_span_34_Template, 3, 2, "span",
|
|
523
|
+
i0.ɵɵtemplate(34, TzDrpContainerComponent_span_34_Template, 3, 2, "span", 19);
|
|
637
524
|
i0.ɵɵelementEnd();
|
|
638
525
|
i0.ɵɵelementStart(35, "span");
|
|
639
526
|
i0.ɵɵtext(36, "Holidays ");
|
|
640
|
-
i0.ɵɵelement(37, "span",
|
|
527
|
+
i0.ɵɵelement(37, "span", 20);
|
|
641
528
|
i0.ɵɵelementEnd()();
|
|
642
|
-
i0.ɵɵelementStart(38, "div",
|
|
643
|
-
i0.ɵɵtemplate(39, TzDrpContainerComponent_span_39_Template, 4, 1, "span",
|
|
644
|
-
i0.ɵɵelementStart(41, "div",
|
|
529
|
+
i0.ɵɵelementStart(38, "div", 21);
|
|
530
|
+
i0.ɵɵtemplate(39, TzDrpContainerComponent_span_39_Template, 4, 1, "span", 22)(40, TzDrpContainerComponent_span_40_Template, 4, 1, "span", 22);
|
|
531
|
+
i0.ɵɵelementStart(41, "div", 23)(42, "button", 24);
|
|
645
532
|
i0.ɵɵlistener("click", function TzDrpContainerComponent_Template_button_click_42_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.cancelDatePicker()); });
|
|
646
533
|
i0.ɵɵtext(43, "Cancel");
|
|
647
534
|
i0.ɵɵelementEnd();
|
|
648
|
-
i0.ɵɵtemplate(44, TzDrpContainerComponent_button_44_Template, 2, 1, "button",
|
|
535
|
+
i0.ɵɵtemplate(44, TzDrpContainerComponent_button_44_Template, 2, 1, "button", 25)(45, TzDrpContainerComponent_button_45_Template, 2, 1, "button", 25);
|
|
649
536
|
i0.ɵɵelementEnd()()();
|
|
650
|
-
i0.ɵɵelementStart(46, "div",
|
|
537
|
+
i0.ɵɵelementStart(46, "div", 26)(47, "input", 27, 0);
|
|
651
538
|
i0.ɵɵlistener("dateChange", function TzDrpContainerComponent_Template_input_dateChange_47_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onSingleDateChange($event)); });
|
|
652
539
|
i0.ɵɵelementEnd()()();
|
|
653
540
|
} if (rf & 2) {
|
|
654
|
-
i0.ɵɵproperty("ngClass", ctx.data.isSingleDatePickerEnable ? "single-date-picker-enabled" : "");
|
|
541
|
+
i0.ɵɵproperty("ngClass", ctx.data().isSingleDatePickerEnable ? "single-date-picker-enabled" : "");
|
|
655
542
|
i0.ɵɵadvance(2);
|
|
656
|
-
i0.ɵɵproperty("ngForOf", ctx.datePickerValue);
|
|
543
|
+
i0.ɵɵproperty("ngForOf", ctx.datePickerValue());
|
|
657
544
|
i0.ɵɵadvance();
|
|
658
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(26, _c1, ctx.singleDatePickerSelected ? "none" : ""));
|
|
545
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(26, _c1, ctx.singleDatePickerSelected() ? "none" : ""));
|
|
659
546
|
i0.ɵɵadvance(4);
|
|
660
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(28, _c2, ctx.isPreviousMonthDisabled));
|
|
547
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(28, _c2, ctx.isPreviousMonthDisabled()));
|
|
661
548
|
i0.ɵɵadvance(4);
|
|
662
|
-
i0.ɵɵtextInterpolate2(" ", ctx.currentMonth, " ", ctx.currentYearNumber, " ");
|
|
549
|
+
i0.ɵɵtextInterpolate2(" ", ctx.currentMonth(), " ", ctx.currentYearNumber(), " ");
|
|
663
550
|
i0.ɵɵadvance(4);
|
|
664
|
-
i0.ɵɵproperty("ngForOf", ctx.weekDays);
|
|
551
|
+
i0.ɵɵproperty("ngForOf", ctx.weekDays());
|
|
665
552
|
i0.ɵɵadvance(2);
|
|
666
|
-
i0.ɵɵproperty("ngForOf", ctx.currentMonthDates);
|
|
553
|
+
i0.ɵɵproperty("ngForOf", ctx.currentMonthDates());
|
|
667
554
|
i0.ɵɵadvance(5);
|
|
668
|
-
i0.ɵɵtextInterpolate2(" ", ctx.nextMonth, " ", ctx.nextYearNumber, " ");
|
|
555
|
+
i0.ɵɵtextInterpolate2(" ", ctx.nextMonth(), " ", ctx.nextYearNumber(), " ");
|
|
669
556
|
i0.ɵɵadvance();
|
|
670
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(30, _c2, ctx.isNextMonthDisabled));
|
|
557
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(30, _c2, ctx.isNextMonthDisabled()));
|
|
671
558
|
i0.ɵɵadvance(5);
|
|
672
|
-
i0.ɵɵproperty("ngForOf", ctx.weekDays);
|
|
559
|
+
i0.ɵɵproperty("ngForOf", ctx.weekDays());
|
|
673
560
|
i0.ɵɵadvance(2);
|
|
674
|
-
i0.ɵɵproperty("ngForOf", ctx.nextMonthDates);
|
|
561
|
+
i0.ɵɵproperty("ngForOf", ctx.nextMonthDates());
|
|
675
562
|
i0.ɵɵadvance(4);
|
|
676
|
-
i0.ɵɵproperty("ngForOf", ctx.data.weekOffs);
|
|
563
|
+
i0.ɵɵproperty("ngForOf", ctx.data().weekOffs);
|
|
677
564
|
i0.ɵɵadvance(3);
|
|
678
565
|
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction0(32, _c3));
|
|
679
566
|
i0.ɵɵadvance(2);
|
|
680
|
-
i0.ɵɵproperty("ngIf", ctx.
|
|
567
|
+
i0.ɵɵproperty("ngIf", ctx.isSpecificPickerSelected());
|
|
681
568
|
i0.ɵɵadvance();
|
|
682
|
-
i0.ɵɵproperty("ngIf", !ctx.
|
|
569
|
+
i0.ɵɵproperty("ngIf", !ctx.isSpecificPickerSelected());
|
|
683
570
|
i0.ɵɵadvance(4);
|
|
684
|
-
i0.ɵɵproperty("ngIf", ctx.
|
|
571
|
+
i0.ɵɵproperty("ngIf", ctx.isSpecificPickerSelected());
|
|
685
572
|
i0.ɵɵadvance();
|
|
686
|
-
i0.ɵɵproperty("ngIf", !ctx.
|
|
573
|
+
i0.ɵɵproperty("ngIf", !ctx.isSpecificPickerSelected());
|
|
687
574
|
i0.ɵɵadvance();
|
|
688
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(33, _c1, !ctx.singleDatePickerSelected ? "none" : "block"));
|
|
575
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(33, _c1, !ctx.singleDatePickerSelected() ? "none" : "block"));
|
|
689
576
|
i0.ɵɵadvance();
|
|
690
|
-
i0.ɵɵproperty("dpConfig", ctx.data.dpConfig)("selectedDate", ctx.singleDateSelectedValue)("value", ctx.singleDateSelectedValue)("disableBoxShadow", true)("disableOverLay", true)("openElement", ctx.openElement);
|
|
577
|
+
i0.ɵɵproperty("dpConfig", ctx.data().dpConfig)("selectedDate", ctx.singleDateSelectedValue())("value", ctx.singleDateSelectedValue())("disableBoxShadow", true)("disableOverLay", true)("openElement", ctx.openElement());
|
|
691
578
|
} }, dependencies: [i2.NgClass, i2.NgForOf, i2.NgIf, i2.NgStyle, i3.ButtonDirective, i4.RadioButtonComponent, i5.TzDatepickerDirective], styles: [".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}.daterangepicker-container.single-date-picker-enabled[_ngcontent-%COMP%]{flex-direction:row}.daterangepicker-container[_ngcontent-%COMP%] .radio-container[_ngcontent-%COMP%]{display:flex;align-items:center;height:48px;padding:8px 0;justify-content:center;border-radius:12px 12px 0 0;border-bottom:1px solid var(--lt-bg-ntrl-seperators, #e0e0e0);background:var(--lt-text-white, #fff)}.daterangepicker-container[_ngcontent-%COMP%] .radio-container[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{display:flex;align-items:center}.daterangepicker-container[_ngcontent-%COMP%] .radio-container[_ngcontent-%COMP%] .label[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]{margin-right:8px;width:20px;height:20px}.daterangepicker-container[_ngcontent-%COMP%] .radio-container[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]:first-child{padding-right:16px;border-right:1px solid #e0e0e0}.daterangepicker-container[_ngcontent-%COMP%] .radio-container[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]:nth-child(2){padding-left:16px}.daterangepicker-container.single-date-picker-enabled[_ngcontent-%COMP%] .radio-container[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:16px;height:288px;padding:20px;border-right:1px solid #e0e0e0!important;border-radius:0}.daterangepicker-container.single-date-picker-enabled[_ngcontent-%COMP%] .radio-container[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]:first-child{padding-right:0;border-right:0px}.daterangepicker-container.single-date-picker-enabled[_ngcontent-%COMP%] .radio-container[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]:nth-child(2){padding-left:0}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%]{display:flex;gap:24px;padding:16px}.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}.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:16px}.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}.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)}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%]{height:100%;width:252px}.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}.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}.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}.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}.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-direction:column;width:35px;height:36px;display:flex;align-items:center;justify-content:center;margin-bottom:1px}.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):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}.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;color:#0937b2}.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-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!important}.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!important}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%] .daterangepicker-container__days[_ngcontent-%COMP%] .selected-end-day.selected-start-day[_ngcontent-%COMP%]{border-radius:50%!important}.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__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%] .daterangepicker-container__days[_ngcontent-%COMP%] .selected-day[_ngcontent-%COMP%]{background-color:#0937b2;border-radius:4px}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__body[_ngcontent-%COMP%] .daterangepicker-container__days[_ngcontent-%COMP%] .selected-day[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{color:#fff!important}.daterangepicker-container[_ngcontent-%COMP%] .weekOffs_holidays_container[_ngcontent-%COMP%]{font-size:12px;color:var(--lt-text-muted, #6a737d);padding:8px 24px 12px}.daterangepicker-container[_ngcontent-%COMP%] .weekOffs_holidays_container[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{margin-right:16px}.daterangepicker-container[_ngcontent-%COMP%] .weekOffs_holidays_container[_ngcontent-%COMP%] > span[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{color:#181f33}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker__footer[_ngcontent-%COMP%]{display:flex;justify-content:space-between;border-top:1px solid #e0e0e0;padding:16px 24px;word-spacing:4px}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker__footer[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-family:Lato;font-size:15px;font-weight:400;align-self:center}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker__footer[_ngcontent-%COMP%] span[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:700}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker__footer[_ngcontent-%COMP%] .footer_action_btn[_ngcontent-%COMP%]{display:flex}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker__footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:104px;height:44px;border-radius:8px;margin-left:24px;font-weight:700}.circular-dot[_ngcontent-%COMP%]{width:5px;height:5px;background-color:#ed711c;border-radius:50%}.holiday-text[_ngcontent-%COMP%]{color:#6a737d!important}.display-none[_ngcontent-%COMP%]{display:none!important}.single-datepicker-container[_ngcontent-%COMP%]{width:291px}"] }); }
|
|
692
579
|
}
|
|
693
580
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TzDrpContainerComponent, [{
|
|
694
581
|
type: Component,
|
|
695
|
-
args: [{ selector: "mis-tz-sdp", template: "<div class=\"daterangepicker-container\" [ngClass]=\"data.isSingleDatePickerEnable?'single-date-picker-enabled':''\">\n <div class=\"radio-container\">\n <!-- <label>\n <input type=\"radio\" (change)=\"changePicker($event)\" name=\"dateSelection\" value=\"SpecificDate\" [checked]=\"data.isSPickerSelected\"> Specific Date(s)\n</label>\n<label>\n <input type=\"radio\" (change)=\"changePicker($event)\" name=\"dateSelection\" value=\"DateRange\" [checked]=\"!data.isSPickerSelected\" >Date Range\n</label> -->\n<div class=\"label\" *ngFor=\"let picker of datePickerValue\">\n <mis-radio class=\"input\" [name]=\"'dateSelection'\" [value]=\"picker\" (valueChange)=\"changePicker($event)\" ngDefaultControl [formControl]=\"formControl\"></mis-radio>\n <span>{{picker}}</span>\n</div>\n</div>\n<div class=\"specific-datepicker-container\" [ngStyle]=\"{'display': singleDatePickerSelected ? 'none' : ''}\">\n <div class=\"daterangepicker-container__view\">\n <div class=\"datepicker__left\">\n <div class=\"daterangepicker-container__header__prabu\">\n <div\n class=\"daterangepicker-container__arrow__icon\"\n (click)=\"!isPreviousMonthDisabled && navigateMonth('PREVIOUS')\"\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 </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 [ngClass]=\"{\n 'current-day': weekDay.isCurrentDay && (currentMonthNumber === todayMonthNumber)\n }\">{{ weekDay.label }}</span>\n </div>\n </div>\n <div class=\"daterangepicker-container__days\">\n <div\n class=\"daterangepicker-container__day\"\n [ngClass]=\"{\n 'selected-day': day.isSelectedDay && data.isSPickerSelected,\n 'disabled-day': day.isDisabledDay,\n 'selected-start-day': day.isSelectedStartDay && !data.isSPickerSelected,\n 'selected-end-day': day.isSelectedEndDay && !data.isSPickerSelected,\n 'in-range-day': day.inRangeDay && !data.isSPickerSelected,\n 'is-valid-date': day.date > 0 && !data.isSPickerSelected && !(day.isSelectedStartDay && day.isSelectedEndDay)\n }\"\n [ngStyle]=\"{'margin-right': !data.isSPickerSelected ? '0px' : '1px','width': !data.isSPickerSelected ? '36px' : '35px','justify-content': day.isHoliday ? 'flex-start' : 'center','padding-top': day.isHoliday ? '2.8px' : '0px','height': day.isHoliday ? '33px' : '36px'}\"\n *ngFor=\"let day of currentMonthDates\"\n (click)=\"selectDay('LEFT',day)\"\n >\n <div [ngClass]=\"{\n 'circular-dot': day.isHoliday\n }\"></div>\n <span *ngIf=\"day.date > 0\" [ngClass]=\"{\n 'current-day': day.isCurrentDay,\n 'holiday-text': day.isHoliday || day.isWeekOff\n }\" >\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\"\n (click)=\"!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-day': day.isSelectedDay && data.isSPickerSelected,\n 'disabled-day': day.isDisabledDay,\n 'selected-start-day': day.isSelectedStartDay && !data.isSPickerSelected,\n 'selected-end-day': day.isSelectedEndDay && !data.isSPickerSelected,\n 'in-range-day': day.inRangeDay && !data.isSPickerSelected,\n 'is-valid-date': day.date > 0 && !data.isSPickerSelected && !(day.isSelectedStartDay && day.isSelectedEndDay)\n }\"\n [ngStyle]=\"{ 'margin-right': !data.isSPickerSelected ? '0px' : '1px','width': !data.isSPickerSelected ? '36px' : '35px','justify-content': day.isHoliday ? 'flex-start' : 'center','padding-top': day.isHoliday ? '3px' : '0px','height': day.isHoliday ? '33px' : '36px'}\"\n *ngFor=\"let day of nextMonthDates\"\n (click)=\"selectDay('RIGHT',day)\"\n >\n <div [ngClass]=\"{\n 'circular-dot': day.isHoliday\n }\"></div>\n <span *ngIf=\"day.date > 0\" [ngClass]=\"{\n 'current-day': day.isCurrentDay && (currentMonthNumber === todayMonthNumber),\n 'holiday-text': day.isHoliday || day.isWeekOff\n }\" >\n {{ day.date }}\n </span>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"weekOffs_holidays_container\">\n <span>Weekly offs: <span *ngFor=\"let weekOff of data.weekOffs; let last = last\">{{weekOff}} <span *ngIf=\"!last\">,</span></span></span>\n <span >Holidays <span class=\"circular-dot\" [ngStyle]=\"{ display: 'inline-block', 'margin-left': '10px' }\"></span></span>\n </div>\n <div class=\"daterangepicker__footer\">\n <span *ngIf=\"data.isSPickerSelected\"><span>{{data.isSPickerSelected && localSelectedDates[0]?.selectedDate ? localSelectedDates.length : (localSelectedDates.length -1 && 0)}} </span>day(s) selected</span>\n <span *ngIf=\"!data.isSPickerSelected\"><span>{{dateRangeLength > 0 ? dateRangeLength : 0 }} </span>day(s) selected</span>\n <div class=\"footer_action_btn\">\n <button mis-button size=\"md\" type=\"none\" (click)=\"cancelDatePicker()\" >Cancel</button>\n <button *ngIf=\"data.isSPickerSelected\" mis-button size=\"md\" type=\"primary\" (click)=\"applyDates()\" [disabled]=\"!isDatesValid\" >Apply</button>\n <button *ngIf=\"!data.isSPickerSelected\" mis-button size=\"md\" type=\"primary\" (click)=\"applyDatesRange()\" [disabled]=\"!isDatesValid || (dateRangeLength === 0)\" >Apply</button>\n </div>\n </div>\n </div>\n <div class=\"single-datepicker-container\" [ngStyle]=\"{'display': !singleDatePickerSelected ? 'none' : 'block'}\">\n <input\n misTzDp\n misInput\n type=\"text\"\n readonly\n class=\"date-input\"\n [dpConfig]=\"data.dpConfig\"\n placeholder=\"Select\"\n (dateChange)=\"onSingleDateChange($event)\"\n [selectedDate]=\"singleDateSelectedValue\"\n positionX=\"center\"\n positionY=\"top\"\n offsetX = 71\n offsetY = -1\n [value]=\"singleDateSelectedValue\"\n [disableBoxShadow]=\"true\"\n [disableOverLay]=\"true\"\n [openElement]=\"openElement\"\n #singleDatePickerElement\n />\n </div>\n\n</div>\n", styles: [".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}.daterangepicker-container.single-date-picker-enabled{flex-direction:row}.daterangepicker-container .radio-container{display:flex;align-items:center;height:48px;padding:8px 0;justify-content:center;border-radius:12px 12px 0 0;border-bottom:1px solid var(--lt-bg-ntrl-seperators, #e0e0e0);background:var(--lt-text-white, #fff)}.daterangepicker-container .radio-container .label{display:flex;align-items:center}.daterangepicker-container .radio-container .label .input{margin-right:8px;width:20px;height:20px}.daterangepicker-container .radio-container .label:first-child{padding-right:16px;border-right:1px solid #e0e0e0}.daterangepicker-container .radio-container .label:nth-child(2){padding-left:16px}.daterangepicker-container.single-date-picker-enabled .radio-container{flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:16px;height:288px;padding:20px;border-right:1px solid #e0e0e0!important;border-radius:0}.daterangepicker-container.single-date-picker-enabled .radio-container .label:first-child{padding-right:0;border-right:0px}.daterangepicker-container.single-date-picker-enabled .radio-container .label:nth-child(2){padding-left:0}.daterangepicker-container .daterangepicker-container__view{display:flex;gap:24px;padding:16px}.daterangepicker-container .daterangepicker-container__view .datepicker__left,.daterangepicker-container .daterangepicker-container__view .datepicker__right{display:flex;flex-direction:column}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__header__prabu{display:flex;height:32px;justify-content:space-between;align-items:center;width:100%;padding-bottom:16px}.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}.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)}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body{height:100%;width:252px}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__weekdays{width:100%;display:flex;padding-bottom:10px}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__weekdays .daterangepicker-container__weekday{width:36px;height:18px;text-align:center}.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}.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}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day{flex-direction:column;width:35px;height:36px;display:flex;align-items:center;justify-content:center;margin-bottom:1px}.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):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}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day span.current-day{font-weight:700;letter-spacing:.25px;color:#0937b2}.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-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!important}.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!important}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .selected-end-day.selected-start-day{border-radius:50%!important}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .in-range-day:not(.disabled-day){background-color:#cbddfb}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .selected-day{background-color:#0937b2;border-radius:4px}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .selected-day>span{color:#fff!important}.daterangepicker-container .weekOffs_holidays_container{font-size:12px;color:var(--lt-text-muted, #6a737d);padding:8px 24px 12px}.daterangepicker-container .weekOffs_holidays_container>span{margin-right:16px}.daterangepicker-container .weekOffs_holidays_container>span>span{color:#181f33}.daterangepicker-container .daterangepicker__footer{display:flex;justify-content:space-between;border-top:1px solid #e0e0e0;padding:16px 24px;word-spacing:4px}.daterangepicker-container .daterangepicker__footer span{font-family:Lato;font-size:15px;font-weight:400;align-self:center}.daterangepicker-container .daterangepicker__footer span span{font-weight:700}.daterangepicker-container .daterangepicker__footer .footer_action_btn{display:flex}.daterangepicker-container .daterangepicker__footer button{width:104px;height:44px;border-radius:8px;margin-left:24px;font-weight:700}.circular-dot{width:5px;height:5px;background-color:#ed711c;border-radius:50%}.holiday-text{color:#6a737d!important}.display-none{display:none!important}.single-datepicker-container{width:291px}\n"] }]
|
|
582
|
+
args: [{ selector: "mis-tz-sdp", template: "<div class=\"daterangepicker-container\" [ngClass]=\"data().isSingleDatePickerEnable?'single-date-picker-enabled':''\">\n <div class=\"radio-container\">\n <div class=\"label\" *ngFor=\"let picker of datePickerValue()\">\n <mis-radio class=\"input\" [name]=\"'dateSelection'\" [value]=\"picker\" (valueChange)=\"changePicker($event)\" ngDefaultControl [formControl]=\"formControl\"></mis-radio>\n <span>{{picker}}</span>\n </div>\n </div>\n <div class=\"specific-datepicker-container\" [ngStyle]=\"{'display': singleDatePickerSelected() ? 'none' : ''}\">\n <div class=\"daterangepicker-container__view\">\n <div class=\"datepicker__left\">\n <div class=\"daterangepicker-container__header__prabu\">\n <div\n class=\"daterangepicker-container__arrow__icon\"\n (click)=\"!isPreviousMonthDisabled() && navigateMonth('PREVIOUS')\"\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 </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 [ngClass]=\"{\n 'current-day': weekDay.isCurrentDay && (currentMonthNumber() === todayMonthNumber())\n }\">{{ weekDay.label }}</span>\n </div>\n </div>\n <div class=\"daterangepicker-container__days\">\n <div\n class=\"daterangepicker-container__day\"\n [ngClass]=\"{\n 'selected-day': day.isSelectedDay && isSpecificPickerSelected(),\n 'disabled-day': day.isDisabledDay,\n 'selected-start-day': day.isSelectedStartDay && !isSpecificPickerSelected(),\n 'selected-end-day': day.isSelectedEndDay && !isSpecificPickerSelected(),\n 'in-range-day': day.inRangeDay && !isSpecificPickerSelected(),\n 'is-valid-date': day.date > 0 && !isSpecificPickerSelected() && !(day.isSelectedStartDay && day.isSelectedEndDay)\n }\"\n [ngStyle]=\"{ 'margin-right': !isSpecificPickerSelected() ? '0px' : '1px','width': !isSpecificPickerSelected() ? '36px' : '35px','justify-content': day.isHoliday ? 'flex-start' : 'center','padding-top': day.isHoliday ? '2.8px' : '0px','height': day.isHoliday ? '33px' : '36px'}\"\n *ngFor=\"let day of currentMonthDates()\"\n (click)=\"selectDay('LEFT',day)\"\n >\n <div [ngClass]=\"{\n 'circular-dot': day.isHoliday\n }\"></div>\n <span *ngIf=\"day.date > 0\" [ngClass]=\"{\n 'current-day': day.isCurrentDay,\n 'holiday-text': day.isHoliday || day.isWeekOff\n }\" >\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\"\n (click)=\"!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-day': day.isSelectedDay && isSpecificPickerSelected(),\n 'disabled-day': day.isDisabledDay,\n 'selected-start-day': day.isSelectedStartDay && !isSpecificPickerSelected(),\n 'selected-end-day': day.isSelectedEndDay && !isSpecificPickerSelected(),\n 'in-range-day': day.inRangeDay && !isSpecificPickerSelected(),\n 'is-valid-date': day.date > 0 && !isSpecificPickerSelected() && !(day.isSelectedStartDay && day.isSelectedEndDay)\n }\"\n *ngFor=\"let day of nextMonthDates()\"\n (click)=\"selectDay('RIGHT',day)\"\n >\n <div [ngClass]=\"{\n 'circular-dot': day.isHoliday\n }\"></div>\n <span *ngIf=\"day.date > 0\" [ngClass]=\"{\n 'current-day': day.isCurrentDay && (currentMonthNumber() === todayMonthNumber()),\n 'holiday-text': day.isHoliday || day.isWeekOff\n }\" >\n {{ day.date }}\n </span>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"weekOffs_holidays_container\">\n <span>Weekly offs: <span *ngFor=\"let weekOff of data().weekOffs; let last = last\">{{weekOff}} <span *ngIf=\"!last\">,</span></span></span>\n <span >Holidays <span class=\"circular-dot\" [ngStyle]=\"{ display: 'inline-block', 'margin-left': '10px' }\"></span></span>\n </div>\n <div class=\"daterangepicker__footer\">\n <span *ngIf=\"isSpecificPickerSelected()\"><span>{{isSpecificPickerSelected() && localSelectedDates()[0]?.selectedDate ? localSelectedDates().length : (localSelectedDates().length -1 && 0)}} </span>day(s) selected</span>\n <span *ngIf=\"!isSpecificPickerSelected()\"><span>{{dateRangeLength() > 0 ? dateRangeLength() : 0 }} </span>day(s) selected</span>\n <div class=\"footer_action_btn\">\n <button mis-button size=\"md\" type=\"none\" (click)=\"cancelDatePicker()\" >Cancel</button>\n <button *ngIf=\"isSpecificPickerSelected()\" mis-button size=\"md\" type=\"primary\" (click)=\"applyDates()\" [disabled]=\"!isDatesValid()\" >Apply</button>\n <button *ngIf=\"!isSpecificPickerSelected()\" mis-button size=\"md\" type=\"primary\" (click)=\"applyDatesRange()\" [disabled]=\"!isDatesValid() || (dateRangeLength() === 0)\" >Apply</button>\n </div>\n </div>\n </div>\n <div class=\"single-datepicker-container\" [ngStyle]=\"{'display': !singleDatePickerSelected() ? 'none' : 'block'}\">\n <input\n misTzDp\n misInput\n type=\"text\"\n readonly\n class=\"date-input\"\n [dpConfig]=\"data().dpConfig\"\n placeholder=\"Select\"\n (dateChange)=\"onSingleDateChange($event)\"\n [selectedDate]=\"singleDateSelectedValue()\"\n positionX=\"center\"\n positionY=\"top\"\n offsetX = 71\n offsetY = -1\n [value]=\"singleDateSelectedValue()\"\n [disableBoxShadow]=\"true\"\n [disableOverLay]=\"true\"\n [openElement]=\"openElement()\"\n #singleDatePickerElement\n />\n </div>\n\n</div>\n\n\n", styles: [".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}.daterangepicker-container.single-date-picker-enabled{flex-direction:row}.daterangepicker-container .radio-container{display:flex;align-items:center;height:48px;padding:8px 0;justify-content:center;border-radius:12px 12px 0 0;border-bottom:1px solid var(--lt-bg-ntrl-seperators, #e0e0e0);background:var(--lt-text-white, #fff)}.daterangepicker-container .radio-container .label{display:flex;align-items:center}.daterangepicker-container .radio-container .label .input{margin-right:8px;width:20px;height:20px}.daterangepicker-container .radio-container .label:first-child{padding-right:16px;border-right:1px solid #e0e0e0}.daterangepicker-container .radio-container .label:nth-child(2){padding-left:16px}.daterangepicker-container.single-date-picker-enabled .radio-container{flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:16px;height:288px;padding:20px;border-right:1px solid #e0e0e0!important;border-radius:0}.daterangepicker-container.single-date-picker-enabled .radio-container .label:first-child{padding-right:0;border-right:0px}.daterangepicker-container.single-date-picker-enabled .radio-container .label:nth-child(2){padding-left:0}.daterangepicker-container .daterangepicker-container__view{display:flex;gap:24px;padding:16px}.daterangepicker-container .daterangepicker-container__view .datepicker__left,.daterangepicker-container .daterangepicker-container__view .datepicker__right{display:flex;flex-direction:column}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__header__prabu{display:flex;height:32px;justify-content:space-between;align-items:center;width:100%;padding-bottom:16px}.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}.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)}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body{height:100%;width:252px}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__weekdays{width:100%;display:flex;padding-bottom:10px}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__weekdays .daterangepicker-container__weekday{width:36px;height:18px;text-align:center}.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}.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}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day{flex-direction:column;width:35px;height:36px;display:flex;align-items:center;justify-content:center;margin-bottom:1px}.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):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}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day span.current-day{font-weight:700;letter-spacing:.25px;color:#0937b2}.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-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!important}.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!important}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .selected-end-day.selected-start-day{border-radius:50%!important}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .in-range-day:not(.disabled-day){background-color:#cbddfb}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .selected-day{background-color:#0937b2;border-radius:4px}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .selected-day>span{color:#fff!important}.daterangepicker-container .weekOffs_holidays_container{font-size:12px;color:var(--lt-text-muted, #6a737d);padding:8px 24px 12px}.daterangepicker-container .weekOffs_holidays_container>span{margin-right:16px}.daterangepicker-container .weekOffs_holidays_container>span>span{color:#181f33}.daterangepicker-container .daterangepicker__footer{display:flex;justify-content:space-between;border-top:1px solid #e0e0e0;padding:16px 24px;word-spacing:4px}.daterangepicker-container .daterangepicker__footer span{font-family:Lato;font-size:15px;font-weight:400;align-self:center}.daterangepicker-container .daterangepicker__footer span span{font-weight:700}.daterangepicker-container .daterangepicker__footer .footer_action_btn{display:flex}.daterangepicker-container .daterangepicker__footer button{width:104px;height:44px;border-radius:8px;margin-left:24px;font-weight:700}.circular-dot{width:5px;height:5px;background-color:#ed711c;border-radius:50%}.holiday-text{color:#6a737d!important}.display-none{display:none!important}.single-datepicker-container{width:291px}\n"] }]
|
|
696
583
|
}], () => [{ type: undefined, decorators: [{
|
|
697
584
|
type: Inject,
|
|
698
585
|
args: [CONTAINER_DATA]
|
|
699
|
-
}] }, { type: i1.ToastService }
|
|
586
|
+
}] }, { type: i1.ToastService }], { singleDatePickerElement: [{
|
|
700
587
|
type: ViewChild,
|
|
701
588
|
args: ['singleDatePickerElement', { static: true, read: TzDatepickerDirective }]
|
|
702
589
|
}] }); })();
|
|
703
590
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TzDrpContainerComponent, { className: "TzDrpContainerComponent" }); })();
|
|
704
591
|
|
|
705
592
|
class TzSpecificDatepickerDirective {
|
|
706
|
-
|
|
707
|
-
this.dates = dates;
|
|
708
|
-
}
|
|
709
|
-
set selectedDatesRange(dates) {
|
|
710
|
-
this.datesRange = dates;
|
|
711
|
-
}
|
|
712
|
-
set datesDisabled(dates) {
|
|
713
|
-
this.dpDisabledDates = dates;
|
|
714
|
-
}
|
|
715
|
-
set holidaysDates(dates) {
|
|
716
|
-
this.dpHolidays = dates;
|
|
717
|
-
}
|
|
718
|
-
set weekOffsSelection(dates) {
|
|
719
|
-
this.weekOffs = dates;
|
|
720
|
-
}
|
|
721
|
-
constructor(control, element, overlay, viewContainerRef) {
|
|
722
|
-
this.control = control;
|
|
593
|
+
constructor(element, overlay, viewContainerRef, control) {
|
|
723
594
|
this.element = element;
|
|
724
595
|
this.overlay = overlay;
|
|
725
596
|
this.viewContainerRef = viewContainerRef;
|
|
726
|
-
this.
|
|
597
|
+
this.control = control;
|
|
598
|
+
// Inputs are now defined using `input()`
|
|
599
|
+
this.dpConfig = input({
|
|
727
600
|
format: DATE_FORMAT,
|
|
728
601
|
minDate: "",
|
|
729
602
|
maxDate: "",
|
|
730
603
|
timezone: "Asia/Kolkata"
|
|
731
|
-
};
|
|
732
|
-
this.
|
|
733
|
-
this.
|
|
734
|
-
this.
|
|
735
|
-
this.
|
|
736
|
-
this.
|
|
737
|
-
this.
|
|
738
|
-
this.
|
|
739
|
-
this.
|
|
740
|
-
this.
|
|
741
|
-
this.
|
|
742
|
-
this.
|
|
743
|
-
this.
|
|
744
|
-
|
|
745
|
-
this.
|
|
604
|
+
});
|
|
605
|
+
this.selectedDates = input([]);
|
|
606
|
+
this.selectedDatesRange = input({ startDate: null, endDate: null });
|
|
607
|
+
this.datesDisabled = input([]);
|
|
608
|
+
this.holidaysDates = input([]);
|
|
609
|
+
this.weekOffsSelection = input([]);
|
|
610
|
+
this.dateMessages = input([]);
|
|
611
|
+
this.positionX = input("center");
|
|
612
|
+
this.positionY = input("bottom");
|
|
613
|
+
this.offsetX = input(0);
|
|
614
|
+
this.offsetY = input(0);
|
|
615
|
+
this.isSPickerSelected = input(false);
|
|
616
|
+
this.isSingleDatePickerEnable = input(false);
|
|
617
|
+
// Outputs are now defined using `output()`
|
|
618
|
+
this.dateChange = output();
|
|
619
|
+
this.dateChangeRange = output();
|
|
620
|
+
this.isOpen = signal(false);
|
|
621
|
+
this.overlayRef = null;
|
|
622
|
+
// Effect to handle the overlay position update reactively
|
|
623
|
+
effect(() => {
|
|
624
|
+
// Triggered by changes in any position-related input signals
|
|
625
|
+
this.updateOverlayPosition();
|
|
626
|
+
});
|
|
746
627
|
}
|
|
747
628
|
toggleDatePicker() {
|
|
748
|
-
if (this.isOpen) {
|
|
629
|
+
if (this.isOpen()) {
|
|
749
630
|
this.close();
|
|
750
631
|
}
|
|
751
632
|
else {
|
|
752
633
|
this.open();
|
|
753
634
|
}
|
|
754
635
|
}
|
|
636
|
+
toggleDatePickerOnEnter() {
|
|
637
|
+
if (this.isOpen()) {
|
|
638
|
+
this.close();
|
|
639
|
+
}
|
|
640
|
+
else {
|
|
641
|
+
this.open();
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
closeOnEsc() {
|
|
645
|
+
if (this.isOpen()) {
|
|
646
|
+
this.close();
|
|
647
|
+
}
|
|
648
|
+
}
|
|
755
649
|
open() {
|
|
756
|
-
this.isOpen
|
|
650
|
+
this.isOpen.set(true);
|
|
757
651
|
const positionStrategy = this.overlay
|
|
758
652
|
.position()
|
|
759
653
|
.flexibleConnectedTo(this.element)
|
|
760
654
|
.withPositions(genPositionPairs({
|
|
761
|
-
positionX: this.positionX,
|
|
762
|
-
positionY: this.positionY,
|
|
763
|
-
offsetX: this.offsetX,
|
|
764
|
-
offsetY: this.offsetY
|
|
655
|
+
positionX: this.positionX(),
|
|
656
|
+
positionY: this.positionY(),
|
|
657
|
+
offsetX: this.offsetX(),
|
|
658
|
+
offsetY: this.offsetY(),
|
|
765
659
|
}, true))
|
|
766
660
|
.withPush(true);
|
|
767
661
|
const config = new OverlayConfig({
|
|
@@ -776,18 +670,18 @@ class TzSpecificDatepickerDirective {
|
|
|
776
670
|
{
|
|
777
671
|
provide: CONTAINER_DATA,
|
|
778
672
|
useValue: {
|
|
779
|
-
messages: this.dateMessages,
|
|
780
|
-
dates: this.control?.control.value || this.
|
|
781
|
-
datesRange: this.control?.control.value || this.
|
|
782
|
-
dpConfig: this.dpConfig,
|
|
783
|
-
datesDisabled: this.
|
|
673
|
+
messages: this.dateMessages(),
|
|
674
|
+
dates: this.control?.control.value || this.selectedDates(),
|
|
675
|
+
datesRange: this.control?.control.value || this.selectedDatesRange(),
|
|
676
|
+
dpConfig: this.dpConfig(),
|
|
677
|
+
datesDisabled: this.datesDisabled(),
|
|
784
678
|
dateChange: this.applyDate.bind(this),
|
|
785
679
|
dateChangeRange: this.applyDateRange.bind(this),
|
|
786
680
|
close: this.close.bind(this),
|
|
787
|
-
weekOffs: this.
|
|
788
|
-
holidays: this.
|
|
789
|
-
isSPickerSelected: this.isSPickerSelected,
|
|
790
|
-
isSingleDatePickerEnable: this.isSingleDatePickerEnable,
|
|
681
|
+
weekOffs: this.weekOffsSelection(),
|
|
682
|
+
holidays: this.holidaysDates(),
|
|
683
|
+
isSPickerSelected: this.isSPickerSelected(),
|
|
684
|
+
isSingleDatePickerEnable: this.isSingleDatePickerEnable(),
|
|
791
685
|
}
|
|
792
686
|
}
|
|
793
687
|
]
|
|
@@ -806,10 +700,10 @@ class TzSpecificDatepickerDirective {
|
|
|
806
700
|
.position()
|
|
807
701
|
.flexibleConnectedTo(this.element)
|
|
808
702
|
.withPositions(genPositionPairs({
|
|
809
|
-
positionX: this.positionX,
|
|
810
|
-
positionY: this.positionY,
|
|
811
|
-
offsetX: this.offsetX,
|
|
812
|
-
offsetY: this.offsetY,
|
|
703
|
+
positionX: this.positionX(),
|
|
704
|
+
positionY: this.positionY(),
|
|
705
|
+
offsetX: this.offsetX(),
|
|
706
|
+
offsetY: this.offsetY(),
|
|
813
707
|
}, true))
|
|
814
708
|
.withPush(true);
|
|
815
709
|
this.overlayRef.updatePositionStrategy(positionStrategy);
|
|
@@ -818,74 +712,39 @@ class TzSpecificDatepickerDirective {
|
|
|
818
712
|
applyDate(dates) {
|
|
819
713
|
this.dateChange.emit(dates);
|
|
820
714
|
this.control?.control.patchValue(dates);
|
|
821
|
-
this.dates = dates;
|
|
822
715
|
this.close();
|
|
823
716
|
}
|
|
824
717
|
applyDateRange(dates) {
|
|
825
718
|
this.dateChangeRange.emit(dates);
|
|
826
719
|
this.control?.control.patchValue(dates);
|
|
827
|
-
this.datesRange = dates;
|
|
828
720
|
this.close();
|
|
829
721
|
}
|
|
830
722
|
close() {
|
|
831
|
-
this.isOpen
|
|
832
|
-
this.overlayRef
|
|
833
|
-
this.overlayRef
|
|
723
|
+
this.isOpen.set(false);
|
|
724
|
+
this.overlayRef?.detach();
|
|
725
|
+
this.overlayRef?.dispose();
|
|
834
726
|
}
|
|
835
|
-
|
|
836
|
-
if ((changes.offsetX && !changes.offsetX.firstChange) || (changes.offsetY && !changes.offsetY.firstChange) ||
|
|
837
|
-
(changes.positionX && !changes.positionX.firstChange) ||
|
|
838
|
-
(changes.positionY && !changes.positionY.firstChange)) {
|
|
839
|
-
this.updateOverlayPosition();
|
|
840
|
-
}
|
|
841
|
-
}
|
|
842
|
-
static { this.ɵfac = function TzSpecificDatepickerDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TzSpecificDatepickerDirective)(i0.ɵɵdirectiveInject(i1$1.NgControl, 10), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i2$1.Overlay), i0.ɵɵdirectiveInject(i0.ViewContainerRef)); }; }
|
|
727
|
+
static { this.ɵfac = function TzSpecificDatepickerDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TzSpecificDatepickerDirective)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1$1.Overlay), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i2$1.NgControl, 8)); }; }
|
|
843
728
|
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TzSpecificDatepickerDirective, selectors: [["input", "misTzSdp", ""]], hostBindings: function TzSpecificDatepickerDirective_HostBindings(rf, ctx) { if (rf & 1) {
|
|
844
|
-
i0.ɵɵlistener("click", function TzSpecificDatepickerDirective_click_HostBindingHandler() { return ctx.toggleDatePicker(); });
|
|
845
|
-
} }, inputs: { dpConfig: "dpConfig", selectedDates: "selectedDates", selectedDatesRange: "selectedDatesRange", datesDisabled: "datesDisabled", holidaysDates: "holidaysDates", weekOffsSelection: "weekOffsSelection", dateMessages: "dateMessages", positionX: "positionX", positionY: "positionY", offsetX: "offsetX", offsetY: "offsetY", isSPickerSelected: "isSPickerSelected", isSingleDatePickerEnable: "isSingleDatePickerEnable" }, outputs: { dateChange: "dateChange", dateChangeRange: "dateChangeRange" }
|
|
729
|
+
i0.ɵɵlistener("click", function TzSpecificDatepickerDirective_click_HostBindingHandler() { return ctx.toggleDatePicker(); })("keydown.enter", function TzSpecificDatepickerDirective_keydown_enter_HostBindingHandler() { return ctx.toggleDatePickerOnEnter(); })("keydown.esc", function TzSpecificDatepickerDirective_keydown_esc_HostBindingHandler() { return ctx.closeOnEsc(); });
|
|
730
|
+
} }, inputs: { dpConfig: [1, "dpConfig"], selectedDates: [1, "selectedDates"], selectedDatesRange: [1, "selectedDatesRange"], datesDisabled: [1, "datesDisabled"], holidaysDates: [1, "holidaysDates"], weekOffsSelection: [1, "weekOffsSelection"], dateMessages: [1, "dateMessages"], positionX: [1, "positionX"], positionY: [1, "positionY"], offsetX: [1, "offsetX"], offsetY: [1, "offsetY"], isSPickerSelected: [1, "isSPickerSelected"], isSingleDatePickerEnable: [1, "isSingleDatePickerEnable"] }, outputs: { dateChange: "dateChange", dateChangeRange: "dateChangeRange" } }); }
|
|
846
731
|
}
|
|
847
732
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TzSpecificDatepickerDirective, [{
|
|
848
733
|
type: Directive,
|
|
849
734
|
args: [{
|
|
850
735
|
selector: "input[misTzSdp]"
|
|
851
736
|
}]
|
|
852
|
-
}], () => [{ type: i1$1.NgControl, decorators: [{
|
|
853
|
-
type: Self
|
|
854
|
-
}, {
|
|
737
|
+
}], () => [{ type: i0.ElementRef }, { type: i1$1.Overlay }, { type: i0.ViewContainerRef }, { type: i2$1.NgControl, decorators: [{
|
|
855
738
|
type: Optional
|
|
856
|
-
}] }
|
|
857
|
-
type: Input
|
|
858
|
-
}], selectedDates: [{
|
|
859
|
-
type: Input
|
|
860
|
-
}], selectedDatesRange: [{
|
|
861
|
-
type: Input
|
|
862
|
-
}], datesDisabled: [{
|
|
863
|
-
type: Input
|
|
864
|
-
}], holidaysDates: [{
|
|
865
|
-
type: Input
|
|
866
|
-
}], weekOffsSelection: [{
|
|
867
|
-
type: Input
|
|
868
|
-
}], dateMessages: [{
|
|
869
|
-
type: Input
|
|
870
|
-
}], positionX: [{
|
|
871
|
-
type: Input
|
|
872
|
-
}], positionY: [{
|
|
873
|
-
type: Input
|
|
874
|
-
}], offsetX: [{
|
|
875
|
-
type: Input
|
|
876
|
-
}], offsetY: [{
|
|
877
|
-
type: Input
|
|
878
|
-
}], isSPickerSelected: [{
|
|
879
|
-
type: Input
|
|
880
|
-
}], isSingleDatePickerEnable: [{
|
|
881
|
-
type: Input
|
|
882
|
-
}], dateChange: [{
|
|
883
|
-
type: Output
|
|
884
|
-
}], dateChangeRange: [{
|
|
885
|
-
type: Output
|
|
886
|
-
}], toggleDatePicker: [{
|
|
739
|
+
}] }], { toggleDatePicker: [{
|
|
887
740
|
type: HostListener,
|
|
888
741
|
args: ["click"]
|
|
742
|
+
}], toggleDatePickerOnEnter: [{
|
|
743
|
+
type: HostListener,
|
|
744
|
+
args: ["keydown.enter"]
|
|
745
|
+
}], closeOnEsc: [{
|
|
746
|
+
type: HostListener,
|
|
747
|
+
args: ["keydown.esc"]
|
|
889
748
|
}] }); })();
|
|
890
749
|
|
|
891
750
|
class SpecificDatepickerModule {
|