mis-crystal-design-system 18.2.13 → 18.2.16-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.
Files changed (34) hide show
  1. package/datepicker_v2/tz-dp-container/tz-dp-container.component.d.ts +1 -0
  2. package/daterangepicker_v2/daterangepicker-constants.d.ts +4 -0
  3. package/daterangepicker_v2/daterangepicker.module.d.ts +9 -8
  4. package/daterangepicker_v2/models/drp-config.model.d.ts +14 -0
  5. package/daterangepicker_v2/public_api.d.ts +3 -1
  6. package/daterangepicker_v2/tz-daterangepicker.directive.d.ts +2 -1
  7. package/daterangepicker_v2/tz-drp-container/tz-drp-container.component.d.ts +24 -1
  8. package/daterangepicker_v2/tz-drp-mobile-container/tz-drp-mobile-container.component.d.ts +13 -0
  9. package/esm2022/datepicker_v2/tz-dp-container/tz-dp-container.component.mjs +49 -33
  10. package/esm2022/daterangepicker_v2/daterangepicker-constants.mjs +12 -1
  11. package/esm2022/daterangepicker_v2/daterangepicker.module.mjs +5 -4
  12. package/esm2022/daterangepicker_v2/models/drp-config.model.mjs +1 -1
  13. package/esm2022/daterangepicker_v2/public_api.mjs +3 -1
  14. package/esm2022/daterangepicker_v2/tz-daterangepicker.directive.mjs +8 -3
  15. package/esm2022/daterangepicker_v2/tz-drp-container/tz-drp-container.component.mjs +177 -50
  16. package/esm2022/daterangepicker_v2/tz-drp-mobile-container/tz-drp-mobile-container.component.mjs +267 -0
  17. package/esm2022/specificdatepicker/models/sdp-config.model.mjs +1 -1
  18. package/esm2022/specificdatepicker/specificdatepicker.module.mjs +4 -5
  19. package/esm2022/specificdatepicker/tz-sdp-container/tz-sdp-container.component.mjs +277 -225
  20. package/esm2022/specificdatepicker/tz-specificdatepicker.directive.mjs +33 -31
  21. package/esm2022/table/table.component.mjs +62 -63
  22. package/fesm2022/mis-crystal-design-system-datepicker_v2.mjs +48 -32
  23. package/fesm2022/mis-crystal-design-system-datepicker_v2.mjs.map +1 -1
  24. package/fesm2022/mis-crystal-design-system-daterangepicker_v2.mjs +464 -61
  25. package/fesm2022/mis-crystal-design-system-daterangepicker_v2.mjs.map +1 -1
  26. package/fesm2022/mis-crystal-design-system-specificdatepicker.mjs +311 -257
  27. package/fesm2022/mis-crystal-design-system-specificdatepicker.mjs.map +1 -1
  28. package/fesm2022/mis-crystal-design-system-table.mjs +61 -62
  29. package/fesm2022/mis-crystal-design-system-table.mjs.map +1 -1
  30. package/package.json +7 -7
  31. package/specificdatepicker/models/sdp-config.model.d.ts +1 -0
  32. package/specificdatepicker/specificdatepicker.module.d.ts +2 -3
  33. package/specificdatepicker/tz-sdp-container/tz-sdp-container.component.d.ts +10 -9
  34. package/specificdatepicker/tz-specificdatepicker.directive.d.ts +4 -2
@@ -1,9 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, signal, computed, effect, Component, Inject, ViewChild, input, output, Injector, Directive, Optional, HostListener, NgModule } from '@angular/core';
2
+ import { InjectionToken, signal, computed, Component, Inject, input, output, effect, Injector, Directive, Optional, HostListener, NgModule } from '@angular/core';
3
3
  import * as i2$1 from '@angular/forms';
4
4
  import { UntypedFormControl } from '@angular/forms';
5
- import * as i5 from 'mis-crystal-design-system/datepicker_v2';
6
- import { TzDatepickerDirective, DatepickerModuleV2 } from 'mis-crystal-design-system/datepicker_v2';
7
5
  import dayjs from 'dayjs';
8
6
  import timezone from 'dayjs/plugin/timezone';
9
7
  import utc from 'dayjs/plugin/utc';
@@ -19,13 +17,12 @@ import * as i3 from 'mis-crystal-design-system/button';
19
17
  import { ButtonModule } from 'mis-crystal-design-system/button';
20
18
  import * as i4 from 'mis-crystal-design-system/radio-button';
21
19
  import { RadioButtonModule } from 'mis-crystal-design-system/radio-button';
22
- import * as i6 from '@angular/cdk/a11y';
20
+ import * as i5 from '@angular/cdk/a11y';
23
21
  import { A11yModule } from '@angular/cdk/a11y';
24
22
  import * as i1$1 from '@angular/cdk/overlay';
25
- import { OverlayConfig, OverlayModule } from '@angular/cdk/overlay';
23
+ import { ConnectionPositionPair, OverlayConfig, OverlayModule } from '@angular/cdk/overlay';
26
24
  import { ComponentPortal } from '@angular/cdk/portal';
27
25
  import { take } from 'rxjs/operators';
28
- import { genPositionPairs } from 'mis-crystal-design-system/utils';
29
26
 
30
27
  /** @format */
31
28
  const CONTAINER_DATA = new InjectionToken("CONTAINER_DATA");
@@ -76,20 +73,17 @@ const getMonth = (index) => {
76
73
  return month;
77
74
  };
78
75
 
79
- const _c0 = ["singleDatePickerElement"];
80
- const _c1 = a0 => ({ "display": a0 });
81
- const _c2 = a0 => ({ "disabled-month": a0 });
82
- const _c3 = () => ({ display: "inline-block", "margin-left": "10px" });
83
- const _c4 = a0 => ({ "current-day": a0 });
84
- const _c5 = (a0, a1, a2, a3, a4, a5) => ({ "selected-day": a0, "disabled-day": a1, "selected-start-day": a2, "selected-end-day": a3, "in-range-day": a4, "is-valid-date": a5 });
85
- const _c6 = (a0, a1, a2, a3, a4) => ({ "margin-right": a0, "width": a1, "justify-content": a2, "padding-top": a3, "height": a4 });
86
- const _c7 = (a0, a1) => ({ "circular-dot": a0, "noShow": a1 });
87
- const _c8 = (a0, a1) => ({ "current-day": a0, "holiday-text": a1 });
76
+ const _c0 = a0 => ({ "disabled-month": a0 });
77
+ const _c1 = () => ({ display: "inline-block", "margin-left": "10px" });
78
+ const _c2 = a0 => ({ "current-day": a0 });
79
+ const _c3 = (a0, a1, a2, a3, a4, a5) => ({ "selected-day": a0, "disabled-day": a1, "selected-start-day": a2, "selected-end-day": a3, "in-range-day": a4, "is-valid-date": a5 });
80
+ const _c4 = (a0, a1) => ({ "circular-dot": a0, "noShow": a1 });
81
+ const _c5 = (a0, a1) => ({ "current-day": a0, "holiday-text": a1 });
88
82
  function TzDrpContainerComponent_div_3_Template(rf, ctx) { if (rf & 1) {
89
83
  const _r2 = i0.ɵɵgetCurrentView();
90
- i0.ɵɵelementStart(0, "div", 31);
84
+ i0.ɵɵelementStart(0, "div", 28);
91
85
  i0.ɵɵlistener("keydown.enter", function TzDrpContainerComponent_div_3_Template_div_keydown_enter_0_listener() { const picker_r3 = i0.ɵɵrestoreView(_r2).$implicit; const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.changePicker(picker_r3)); });
92
- i0.ɵɵelementStart(1, "mis-radio", 32);
86
+ i0.ɵɵelementStart(1, "mis-radio", 29);
93
87
  i0.ɵɵlistener("valueChange", function TzDrpContainerComponent_div_3_Template_mis_radio_valueChange_1_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.changePicker($event)); });
94
88
  i0.ɵɵelementEnd();
95
89
  i0.ɵɵelementStart(2, "span");
@@ -104,110 +98,168 @@ function TzDrpContainerComponent_div_3_Template(rf, ctx) { if (rf & 1) {
104
98
  i0.ɵɵadvance(2);
105
99
  i0.ɵɵtextInterpolate(picker_r3);
106
100
  } }
101
+ function TzDrpContainerComponent_ng_container_9_Template(rf, ctx) { if (rf & 1) {
102
+ i0.ɵɵelementContainer(0);
103
+ } }
104
+ function TzDrpContainerComponent_Conditional_12_ng_container_1_Template(rf, ctx) { if (rf & 1) {
105
+ i0.ɵɵelementContainer(0);
106
+ } }
107
+ function TzDrpContainerComponent_Conditional_12_Template(rf, ctx) { if (rf & 1) {
108
+ const _r5 = i0.ɵɵgetCurrentView();
109
+ i0.ɵɵelementStart(0, "div", 30);
110
+ i0.ɵɵlistener("click", function TzDrpContainerComponent_Conditional_12_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(!ctx_r3.isNextMonthDisabled() && ctx_r3.navigateMonth("NEXT")); })("keydown.enter", function TzDrpContainerComponent_Conditional_12_Template_div_keydown_enter_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(!ctx_r3.isNextMonthDisabled() && ctx_r3.navigateMonth("NEXT")); });
111
+ i0.ɵɵtemplate(1, TzDrpContainerComponent_Conditional_12_ng_container_1_Template, 1, 0, "ng-container", 12);
112
+ i0.ɵɵelementEnd();
113
+ } if (rf & 2) {
114
+ const ctx_r3 = i0.ɵɵnextContext();
115
+ const arrowSvg_r6 = i0.ɵɵreference(38);
116
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0, ctx_r3.isNextMonthDisabled()));
117
+ i0.ɵɵattribute("tabindex", ctx_r3.isNextMonthDisabled() ? -1 : 0)("aria-disabled", ctx_r3.isNextMonthDisabled());
118
+ i0.ɵɵadvance();
119
+ i0.ɵɵproperty("ngTemplateOutlet", arrowSvg_r6);
120
+ } }
121
+ function TzDrpContainerComponent_Conditional_13_Template(rf, ctx) { if (rf & 1) {
122
+ i0.ɵɵelement(0, "div");
123
+ } }
107
124
  function TzDrpContainerComponent_div_16_Template(rf, ctx) { if (rf & 1) {
108
- i0.ɵɵelementStart(0, "div", 33)(1, "span", 34);
125
+ i0.ɵɵelementStart(0, "div", 31)(1, "span", 32);
109
126
  i0.ɵɵtext(2);
110
127
  i0.ɵɵelementEnd()();
111
128
  } if (rf & 2) {
112
- const weekDay_r5 = ctx.$implicit;
129
+ const weekDay_r7 = ctx.$implicit;
113
130
  const ctx_r3 = i0.ɵɵnextContext();
114
131
  i0.ɵɵadvance();
115
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c4, weekDay_r5.isCurrentDay && ctx_r3.currentMonthNumber() === ctx_r3.todayMonthNumber()));
132
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c2, weekDay_r7.isCurrentDay && ctx_r3.currentMonthNumber() === ctx_r3.todayMonthNumber()));
116
133
  i0.ɵɵadvance();
117
- i0.ɵɵtextInterpolate(weekDay_r5.label);
134
+ i0.ɵɵtextInterpolate(weekDay_r7.label);
118
135
  } }
119
136
  function TzDrpContainerComponent_div_18_span_2_Template(rf, ctx) { if (rf & 1) {
120
- i0.ɵɵelementStart(0, "span", 34);
137
+ i0.ɵɵelementStart(0, "span", 32);
121
138
  i0.ɵɵtext(1);
122
139
  i0.ɵɵelementEnd();
123
140
  } if (rf & 2) {
124
- const day_r7 = i0.ɵɵnextContext().$implicit;
125
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(2, _c8, day_r7.isCurrentDay, day_r7.isHoliday || day_r7.isNoShow || day_r7.isWeekOff));
141
+ const day_r9 = i0.ɵɵnextContext().$implicit;
142
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(2, _c5, day_r9.isCurrentDay, day_r9.isHoliday || day_r9.isNoShow || day_r9.isWeekOff));
126
143
  i0.ɵɵadvance();
127
- i0.ɵɵtextInterpolate1(" ", day_r7.date, " ");
144
+ i0.ɵɵtextInterpolate1(" ", day_r9.date, " ");
128
145
  } }
129
146
  function TzDrpContainerComponent_div_18_Template(rf, ctx) { if (rf & 1) {
130
- const _r6 = i0.ɵɵgetCurrentView();
131
- i0.ɵɵelementStart(0, "div", 35);
132
- i0.ɵɵlistener("click", function TzDrpContainerComponent_div_18_Template_div_click_0_listener() { const day_r7 = i0.ɵɵrestoreView(_r6).$implicit; const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.selectDay("LEFT", day_r7)); })("keydown", function TzDrpContainerComponent_div_18_Template_div_keydown_0_listener($event) { const day_r7 = i0.ɵɵrestoreView(_r6).$implicit; const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.handleDayKeydown($event, "LEFT", day_r7)); });
133
- i0.ɵɵelement(1, "div", 36);
134
- i0.ɵɵtemplate(2, TzDrpContainerComponent_div_18_span_2_Template, 2, 5, "span", 37);
147
+ const _r8 = i0.ɵɵgetCurrentView();
148
+ i0.ɵɵelementStart(0, "div", 33);
149
+ i0.ɵɵlistener("click", function TzDrpContainerComponent_div_18_Template_div_click_0_listener() { const day_r9 = i0.ɵɵrestoreView(_r8).$implicit; const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.selectDay("LEFT", day_r9)); })("keydown", function TzDrpContainerComponent_div_18_Template_div_keydown_0_listener($event) { const day_r9 = i0.ɵɵrestoreView(_r8).$implicit; const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.handleDayKeydown($event, "LEFT", day_r9)); });
150
+ i0.ɵɵelement(1, "div", 34);
151
+ i0.ɵɵtemplate(2, TzDrpContainerComponent_div_18_span_2_Template, 2, 5, "span", 35);
135
152
  i0.ɵɵelementEnd();
136
153
  } if (rf & 2) {
137
- const day_r7 = ctx.$implicit;
154
+ const day_r9 = ctx.$implicit;
138
155
  const ctx_r3 = i0.ɵɵnextContext();
139
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction6(8, _c5, day_r7.isSelectedDay && ctx_r3.isSpecificPickerSelected(), day_r7.isDisabledDay, day_r7.isSelectedStartDay && !ctx_r3.isSpecificPickerSelected(), day_r7.isSelectedEndDay && !ctx_r3.isSpecificPickerSelected(), day_r7.inRangeDay && !ctx_r3.isSpecificPickerSelected(), day_r7.date > 0 && !ctx_r3.isSpecificPickerSelected() && !(day_r7.isSelectedStartDay && day_r7.isSelectedEndDay)))("ngStyle", i0.ɵɵpureFunction5(15, _c6, !ctx_r3.isSpecificPickerSelected() ? "0px" : "1px", !ctx_r3.isSpecificPickerSelected() ? "36px" : "35px", day_r7.isHoliday || day_r7.isNoShow ? "flex-start" : "center", day_r7.isHoliday || day_r7.isNoShow ? "2.8px" : "0px", day_r7.isHoliday || day_r7.isNoShow ? "33px" : "36px"));
140
- i0.ɵɵattribute("data-sdp-cell", ctx_r3.getDayCellId(day_r7, "LEFT"))("tabindex", ctx_r3.getDayTabIndex(day_r7, "LEFT"))("aria-label", day_r7.date > 0 ? day_r7.date + " " + ctx_r3.currentMonth() + " " + ctx_r3.currentYearNumber() + (day_r7.isDisabledDay ? ", disabled" : "") : null)("aria-disabled", day_r7.isDisabledDay);
156
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction6(8, _c3, day_r9.isSelectedDay && !ctx_r3.dateRangeSelected(), day_r9.isDisabledDay, day_r9.isSelectedStartDay && ctx_r3.dateRangeSelected(), day_r9.isSelectedEndDay && ctx_r3.dateRangeSelected(), day_r9.inRangeDay && ctx_r3.dateRangeSelected(), day_r9.date > 0 && ctx_r3.dateRangeSelected() && !(day_r9.isSelectedStartDay && day_r9.isSelectedEndDay)))("ngStyle", ctx_r3.getDayCellStyle(day_r9));
157
+ i0.ɵɵattribute("data-sdp-cell", ctx_r3.getDayCellId(day_r9, "LEFT"))("tabindex", ctx_r3.getDayTabIndex(day_r9, "LEFT"))("aria-label", day_r9.date > 0 ? day_r9.date + " " + ctx_r3.currentMonth() + " " + ctx_r3.currentYearNumber() + (day_r9.isDisabledDay ? ", disabled" : "") : null)("aria-disabled", day_r9.isDisabledDay);
141
158
  i0.ɵɵadvance();
142
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(21, _c7, day_r7.isHoliday || day_r7.isNoShow, day_r7.isNoShow));
159
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(15, _c4, day_r9.isHoliday || day_r9.isNoShow, day_r9.isNoShow));
143
160
  i0.ɵɵadvance();
144
- i0.ɵɵproperty("ngIf", day_r7.date > 0);
161
+ i0.ɵɵproperty("ngIf", day_r9.date > 0);
162
+ } }
163
+ function TzDrpContainerComponent_Conditional_19_ng_container_6_Template(rf, ctx) { if (rf & 1) {
164
+ i0.ɵɵelementContainer(0);
145
165
  } }
146
- function TzDrpContainerComponent_div_29_Template(rf, ctx) { if (rf & 1) {
147
- i0.ɵɵelementStart(0, "div", 33)(1, "span");
166
+ function TzDrpContainerComponent_Conditional_19_div_9_Template(rf, ctx) { if (rf & 1) {
167
+ i0.ɵɵelementStart(0, "div", 31)(1, "span");
148
168
  i0.ɵɵtext(2);
149
169
  i0.ɵɵelementEnd()();
150
170
  } if (rf & 2) {
151
- const weekDay_r8 = ctx.$implicit;
171
+ const weekDay_r11 = ctx.$implicit;
152
172
  i0.ɵɵadvance(2);
153
- i0.ɵɵtextInterpolate(weekDay_r8.label);
173
+ i0.ɵɵtextInterpolate(weekDay_r11.label);
154
174
  } }
155
- function TzDrpContainerComponent_div_31_span_2_Template(rf, ctx) { if (rf & 1) {
156
- i0.ɵɵelementStart(0, "span", 34);
175
+ function TzDrpContainerComponent_Conditional_19_div_11_span_2_Template(rf, ctx) { if (rf & 1) {
176
+ i0.ɵɵelementStart(0, "span", 32);
157
177
  i0.ɵɵtext(1);
158
178
  i0.ɵɵelementEnd();
159
179
  } if (rf & 2) {
160
- const day_r10 = i0.ɵɵnextContext().$implicit;
161
- const ctx_r3 = i0.ɵɵnextContext();
162
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(2, _c8, day_r10.isCurrentDay && ctx_r3.currentMonthNumber() === ctx_r3.todayMonthNumber(), day_r10.isHoliday || day_r10.isNoShow || day_r10.isWeekOff));
180
+ const day_r13 = i0.ɵɵnextContext().$implicit;
181
+ const ctx_r3 = i0.ɵɵnextContext(2);
182
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(2, _c5, day_r13.isCurrentDay && ctx_r3.currentMonthNumber() === ctx_r3.todayMonthNumber(), day_r13.isHoliday || day_r13.isNoShow || day_r13.isWeekOff));
183
+ i0.ɵɵadvance();
184
+ i0.ɵɵtextInterpolate1(" ", day_r13.date, " ");
185
+ } }
186
+ function TzDrpContainerComponent_Conditional_19_div_11_Template(rf, ctx) { if (rf & 1) {
187
+ const _r12 = i0.ɵɵgetCurrentView();
188
+ i0.ɵɵelementStart(0, "div", 33);
189
+ i0.ɵɵlistener("click", function TzDrpContainerComponent_Conditional_19_div_11_Template_div_click_0_listener() { const day_r13 = i0.ɵɵrestoreView(_r12).$implicit; const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.selectDay("RIGHT", day_r13)); })("keydown", function TzDrpContainerComponent_Conditional_19_div_11_Template_div_keydown_0_listener($event) { const day_r13 = i0.ɵɵrestoreView(_r12).$implicit; const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.handleDayKeydown($event, "RIGHT", day_r13)); });
190
+ i0.ɵɵelement(1, "div", 34);
191
+ i0.ɵɵtemplate(2, TzDrpContainerComponent_Conditional_19_div_11_span_2_Template, 2, 5, "span", 35);
192
+ i0.ɵɵelementEnd();
193
+ } if (rf & 2) {
194
+ const day_r13 = ctx.$implicit;
195
+ const ctx_r3 = i0.ɵɵnextContext(2);
196
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction6(8, _c3, day_r13.isSelectedDay && !ctx_r3.dateRangeSelected(), day_r13.isDisabledDay, day_r13.isSelectedStartDay && ctx_r3.dateRangeSelected(), day_r13.isSelectedEndDay && ctx_r3.dateRangeSelected(), day_r13.inRangeDay && ctx_r3.dateRangeSelected(), day_r13.date > 0 && ctx_r3.dateRangeSelected() && !(day_r13.isSelectedStartDay && day_r13.isSelectedEndDay)))("ngStyle", ctx_r3.getDayCellStyle(day_r13));
197
+ i0.ɵɵattribute("data-sdp-cell", ctx_r3.getDayCellId(day_r13, "RIGHT"))("tabindex", ctx_r3.getDayTabIndex(day_r13, "RIGHT"))("aria-label", day_r13.date > 0 ? day_r13.date + " " + ctx_r3.nextMonth() + " " + ctx_r3.nextYearNumber() + (day_r13.isDisabledDay ? ", disabled" : "") : null)("aria-disabled", day_r13.isDisabledDay);
198
+ i0.ɵɵadvance();
199
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(15, _c4, day_r13.isHoliday || day_r13.isNoShow, day_r13.isNoShow));
163
200
  i0.ɵɵadvance();
164
- i0.ɵɵtextInterpolate1(" ", day_r10.date, " ");
201
+ i0.ɵɵproperty("ngIf", day_r13.date > 0);
165
202
  } }
166
- function TzDrpContainerComponent_div_31_Template(rf, ctx) { if (rf & 1) {
167
- const _r9 = i0.ɵɵgetCurrentView();
168
- i0.ɵɵelementStart(0, "div", 35);
169
- i0.ɵɵlistener("click", function TzDrpContainerComponent_div_31_Template_div_click_0_listener() { const day_r10 = i0.ɵɵrestoreView(_r9).$implicit; const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.selectDay("RIGHT", day_r10)); })("keydown", function TzDrpContainerComponent_div_31_Template_div_keydown_0_listener($event) { const day_r10 = i0.ɵɵrestoreView(_r9).$implicit; const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.handleDayKeydown($event, "RIGHT", day_r10)); });
170
- i0.ɵɵelement(1, "div", 36);
171
- i0.ɵɵtemplate(2, TzDrpContainerComponent_div_31_span_2_Template, 2, 5, "span", 37);
203
+ function TzDrpContainerComponent_Conditional_19_Template(rf, ctx) { if (rf & 1) {
204
+ const _r10 = i0.ɵɵgetCurrentView();
205
+ i0.ɵɵelementStart(0, "div", 19)(1, "div", 10);
206
+ i0.ɵɵelement(2, "div");
207
+ i0.ɵɵelementStart(3, "span");
208
+ i0.ɵɵtext(4);
172
209
  i0.ɵɵelementEnd();
210
+ i0.ɵɵelementStart(5, "div", 30);
211
+ i0.ɵɵlistener("click", function TzDrpContainerComponent_Conditional_19_Template_div_click_5_listener() { i0.ɵɵrestoreView(_r10); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(!ctx_r3.isNextMonthDisabled() && ctx_r3.navigateMonth("NEXT")); })("keydown.enter", function TzDrpContainerComponent_Conditional_19_Template_div_keydown_enter_5_listener() { i0.ɵɵrestoreView(_r10); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(!ctx_r3.isNextMonthDisabled() && ctx_r3.navigateMonth("NEXT")); });
212
+ i0.ɵɵtemplate(6, TzDrpContainerComponent_Conditional_19_ng_container_6_Template, 1, 0, "ng-container", 12);
213
+ i0.ɵɵelementEnd()();
214
+ i0.ɵɵelementStart(7, "div", 14)(8, "div", 15);
215
+ i0.ɵɵtemplate(9, TzDrpContainerComponent_Conditional_19_div_9_Template, 3, 1, "div", 16);
216
+ i0.ɵɵelementEnd();
217
+ i0.ɵɵelementStart(10, "div", 17);
218
+ i0.ɵɵtemplate(11, TzDrpContainerComponent_Conditional_19_div_11_Template, 3, 18, "div", 18);
219
+ i0.ɵɵelementEnd()()();
173
220
  } if (rf & 2) {
174
- const day_r10 = ctx.$implicit;
175
221
  const ctx_r3 = i0.ɵɵnextContext();
176
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction6(8, _c5, day_r10.isSelectedDay && ctx_r3.isSpecificPickerSelected(), day_r10.isDisabledDay, day_r10.isSelectedStartDay && !ctx_r3.isSpecificPickerSelected(), day_r10.isSelectedEndDay && !ctx_r3.isSpecificPickerSelected(), day_r10.inRangeDay && !ctx_r3.isSpecificPickerSelected(), day_r10.date > 0 && !ctx_r3.isSpecificPickerSelected() && !(day_r10.isSelectedStartDay && day_r10.isSelectedEndDay)))("ngStyle", i0.ɵɵpureFunction5(15, _c6, !ctx_r3.data().isSPickerSelected ? "0px" : "1px", !ctx_r3.data().isSPickerSelected ? "36px" : "35px", day_r10.isHoliday || day_r10.isNoShow ? "flex-start" : "center", day_r10.isHoliday || day_r10.isNoShow ? "3px" : "0px", day_r10.isHoliday || day_r10.isNoShow ? "33px" : "36px"));
177
- i0.ɵɵattribute("data-sdp-cell", ctx_r3.getDayCellId(day_r10, "RIGHT"))("tabindex", ctx_r3.getDayTabIndex(day_r10, "RIGHT"))("aria-label", day_r10.date > 0 ? day_r10.date + " " + ctx_r3.nextMonth() + " " + ctx_r3.nextYearNumber() + (day_r10.isDisabledDay ? ", disabled" : "") : null)("aria-disabled", day_r10.isDisabledDay);
222
+ const arrowSvg_r6 = i0.ɵɵreference(38);
223
+ i0.ɵɵadvance(4);
224
+ i0.ɵɵtextInterpolate2(" ", ctx_r3.nextMonth(), " ", ctx_r3.nextYearNumber(), " ");
178
225
  i0.ɵɵadvance();
179
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(21, _c7, day_r10.isHoliday || day_r10.isNoShow, day_r10.isNoShow));
226
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0, ctx_r3.isNextMonthDisabled()));
227
+ i0.ɵɵattribute("tabindex", ctx_r3.isNextMonthDisabled() ? -1 : 0)("aria-disabled", ctx_r3.isNextMonthDisabled());
180
228
  i0.ɵɵadvance();
181
- i0.ɵɵproperty("ngIf", day_r10.date > 0);
229
+ i0.ɵɵproperty("ngTemplateOutlet", arrowSvg_r6);
230
+ i0.ɵɵadvance(3);
231
+ i0.ɵɵproperty("ngForOf", ctx_r3.weekDays());
232
+ i0.ɵɵadvance(2);
233
+ i0.ɵɵproperty("ngForOf", ctx_r3.nextMonthDates());
182
234
  } }
183
- function TzDrpContainerComponent_span_35_span_2_Template(rf, ctx) { if (rf & 1) {
235
+ function TzDrpContainerComponent_span_23_span_2_Template(rf, ctx) { if (rf & 1) {
184
236
  i0.ɵɵelementStart(0, "span");
185
237
  i0.ɵɵtext(1, ",");
186
238
  i0.ɵɵelementEnd();
187
239
  } }
188
- function TzDrpContainerComponent_span_35_Template(rf, ctx) { if (rf & 1) {
240
+ function TzDrpContainerComponent_span_23_Template(rf, ctx) { if (rf & 1) {
189
241
  i0.ɵɵelementStart(0, "span");
190
242
  i0.ɵɵtext(1);
191
- i0.ɵɵtemplate(2, TzDrpContainerComponent_span_35_span_2_Template, 2, 0, "span", 25);
243
+ i0.ɵɵtemplate(2, TzDrpContainerComponent_span_23_span_2_Template, 2, 0, "span", 24);
192
244
  i0.ɵɵelementEnd();
193
245
  } if (rf & 2) {
194
- const weekOff_r11 = ctx.$implicit;
195
- const last_r12 = ctx.last;
246
+ const weekOff_r14 = ctx.$implicit;
247
+ const last_r15 = ctx.last;
196
248
  i0.ɵɵadvance();
197
- i0.ɵɵtextInterpolate1("", weekOff_r11, " ");
249
+ i0.ɵɵtextInterpolate1("", weekOff_r14, " ");
198
250
  i0.ɵɵadvance();
199
- i0.ɵɵproperty("ngIf", !last_r12);
251
+ i0.ɵɵproperty("ngIf", !last_r15);
200
252
  } }
201
- function TzDrpContainerComponent_Conditional_39_Template(rf, ctx) { if (rf & 1) {
253
+ function TzDrpContainerComponent_Conditional_27_Template(rf, ctx) { if (rf & 1) {
202
254
  i0.ɵɵelementStart(0, "span");
203
255
  i0.ɵɵtext(1, "No-Show Enforcement Window");
204
- i0.ɵɵelement(2, "span", 38);
256
+ i0.ɵɵelement(2, "span", 36);
205
257
  i0.ɵɵelementEnd();
206
258
  } if (rf & 2) {
207
259
  i0.ɵɵadvance(2);
208
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction0(1, _c3));
260
+ i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction0(1, _c1));
209
261
  } }
210
- function TzDrpContainerComponent_span_41_Template(rf, ctx) { if (rf & 1) {
262
+ function TzDrpContainerComponent_span_29_Template(rf, ctx) { if (rf & 1) {
211
263
  i0.ɵɵelementStart(0, "span")(1, "span");
212
264
  i0.ɵɵtext(2);
213
265
  i0.ɵɵelementEnd();
@@ -218,7 +270,7 @@ function TzDrpContainerComponent_span_41_Template(rf, ctx) { if (rf & 1) {
218
270
  i0.ɵɵadvance(2);
219
271
  i0.ɵɵtextInterpolate(ctx_r3.localSelectedDates().length);
220
272
  } }
221
- function TzDrpContainerComponent_span_42_Template(rf, ctx) { if (rf & 1) {
273
+ function TzDrpContainerComponent_span_30_Template(rf, ctx) { if (rf & 1) {
222
274
  i0.ɵɵelementStart(0, "span")(1, "span");
223
275
  i0.ɵɵtext(2);
224
276
  i0.ɵɵelementEnd();
@@ -229,38 +281,50 @@ function TzDrpContainerComponent_span_42_Template(rf, ctx) { if (rf & 1) {
229
281
  i0.ɵɵadvance(2);
230
282
  i0.ɵɵtextInterpolate1("", ctx_r3.dateRangeLength() > 0 ? ctx_r3.dateRangeLength() : 0, " ");
231
283
  } }
232
- function TzDrpContainerComponent_button_47_Template(rf, ctx) { if (rf & 1) {
233
- const _r13 = i0.ɵɵgetCurrentView();
234
- i0.ɵɵelementStart(0, "button", 39);
235
- i0.ɵɵlistener("click", function TzDrpContainerComponent_button_47_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r13); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.applyDates()); });
284
+ function TzDrpContainerComponent_button_35_Template(rf, ctx) { if (rf & 1) {
285
+ const _r16 = i0.ɵɵgetCurrentView();
286
+ i0.ɵɵelementStart(0, "button", 37);
287
+ i0.ɵɵlistener("click", function TzDrpContainerComponent_button_35_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r16); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.applyDates()); });
236
288
  i0.ɵɵtext(1, "Apply");
237
289
  i0.ɵɵelementEnd();
238
290
  } if (rf & 2) {
239
291
  const ctx_r3 = i0.ɵɵnextContext();
240
292
  i0.ɵɵproperty("disabled", !ctx_r3.isDatesValid());
241
293
  } }
242
- function TzDrpContainerComponent_button_48_Template(rf, ctx) { if (rf & 1) {
243
- const _r14 = i0.ɵɵgetCurrentView();
244
- i0.ɵɵelementStart(0, "button", 39, 2);
245
- i0.ɵɵlistener("click", function TzDrpContainerComponent_button_48_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r14); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.applyDatesRange()); });
294
+ function TzDrpContainerComponent_button_36_Template(rf, ctx) { if (rf & 1) {
295
+ const _r17 = i0.ɵɵgetCurrentView();
296
+ i0.ɵɵelementStart(0, "button", 37, 2);
297
+ i0.ɵɵlistener("click", function TzDrpContainerComponent_button_36_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r17); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.applyDatesRange()); });
246
298
  i0.ɵɵtext(2, "Apply");
247
299
  i0.ɵɵelementEnd();
248
300
  } if (rf & 2) {
249
301
  const ctx_r3 = i0.ɵɵnextContext();
250
302
  i0.ɵɵproperty("disabled", !ctx_r3.isDatesValid() || ctx_r3.dateRangeLength() === 0);
251
303
  } }
304
+ function TzDrpContainerComponent_ng_template_37_Template(rf, ctx) { if (rf & 1) {
305
+ i0.ɵɵnamespaceSVG();
306
+ i0.ɵɵelementStart(0, "svg", 38);
307
+ i0.ɵɵelement(1, "path", 39);
308
+ i0.ɵɵelementEnd();
309
+ } }
252
310
  dayjs.extend(isBetween);
253
311
  dayjs.extend(utc);
254
312
  dayjs.extend(timezone);
255
313
  dayjs.extend(customParseFormat);
256
314
  dayjs.extend(isSameOrAfter);
257
315
  dayjs.extend(isSameOrBefore);
316
+ const MODE_LABELS = {
317
+ SINGLE: "Single Date",
318
+ SPECIFIC: "Specific Date(s)",
319
+ RANGE: "Date Range"
320
+ };
258
321
  class TzDrpContainerComponent {
259
322
  constructor(injectedData, toast, elementRef) {
260
323
  this.injectedData = injectedData;
261
324
  this.toast = toast;
262
325
  this.elementRef = elementRef;
263
326
  this.data = signal(this.injectedData);
327
+ this.isMobile = computed(() => !!this.data().isMobileView);
264
328
  this.dayjsInstance = computed(() => {
265
329
  const config = this.data().dpConfig;
266
330
  if (config?.timezone) {
@@ -274,22 +338,19 @@ class TzDrpContainerComponent {
274
338
  this.localSelectedDates = signal([]);
275
339
  this.localSelectedDatesRange = signal({ startDate: null, endDate: null });
276
340
  this.isDatesValid = computed(() => {
277
- if (this.isSpecificPickerSelected()) {
278
- // Valid if at least one specific date is selected
279
- return this.localSelectedDates().length > 0;
341
+ if (this.dateRangeSelected()) {
342
+ const range = this.localSelectedDatesRange();
343
+ return !!(range?.startDate && range?.endDate);
280
344
  }
281
- // Valid if both start and end date of the range are set
282
- const range = this.localSelectedDatesRange();
283
- return !!(range?.startDate && range?.endDate);
345
+ return this.localSelectedDates().length > 0;
284
346
  });
285
- this.dateRangeSelected = signal(false);
286
- this.singleDatePickerSelected = signal(false);
287
- this.openElement = signal(false);
288
- this.singleDateSelectedValue = signal('');
347
+ this.mode = signal("SPECIFIC");
348
+ this.isSpecificPickerSelected = computed(() => this.mode() === "SPECIFIC");
349
+ this.singleDatePickerSelected = computed(() => this.mode() === "SINGLE");
350
+ this.dateRangeSelected = computed(() => this.mode() === "RANGE");
289
351
  this.selectionStarted = signal(false);
290
- this.isSpecificPickerSelected = signal(false);
291
- this.formControl = new UntypedFormControl('Specific Date(s)');
292
- this.datePickerValue = signal(['Specific Date(s)', 'Date Range']);
352
+ this.formControl = new UntypedFormControl(MODE_LABELS.SPECIFIC);
353
+ this.datePickerValue = signal([MODE_LABELS.SPECIFIC, MODE_LABELS.RANGE]);
293
354
  this.currentMonthNumber = signal(this.injectedData.dpConfig?.timezone ? dayjs().tz(this.injectedData.dpConfig.timezone).month() : dayjs().month());
294
355
  this.currentYearNumber = signal(this.injectedData.dpConfig?.timezone ? dayjs().tz(this.injectedData.dpConfig.timezone).year() : dayjs().year());
295
356
  this.nextMonthNumber = signal(this.injectedData.dpConfig?.timezone ? dayjs().tz(this.injectedData.dpConfig.timezone).add(1, "month").month() : dayjs().add(1, "month").month());
@@ -330,38 +391,18 @@ class TzDrpContainerComponent {
330
391
  this.nextMonthDates = computed(() => {
331
392
  return this.generateDates(this.nextMonthNumber(), this.nextYearNumber());
332
393
  });
394
+ this.showSecondMonth = computed(() => !this.isMobile() && !this.singleDatePickerSelected());
333
395
  this.localSelectedDates.set(this.data().dates);
334
396
  this.localSelectedDatesRange.set(this.injectedData.datesRange || { startDate: null, endDate: null });
335
- this.isSpecificPickerSelected.set(this.data().isSPickerSelected);
336
- this.dateRangeSelected.set(!this.isSpecificPickerSelected());
337
- this.singleDatePickerSelected.set(this.data().isSingleDatePickerEnable);
338
- effect(() => {
339
- let selectedStartDate;
340
- if (!this.isSpecificPickerSelected()) {
341
- selectedStartDate = this.dayjsInstance()(this.localSelectedDatesRange()?.startDate, this.data().dpConfig.format);
342
- }
343
- else {
344
- selectedStartDate = this.dayjsInstance()(this.localSelectedDates()?.[0]?.selectedDate, this.data().dpConfig.format);
345
- }
346
- if (selectedStartDate.isValid()) {
347
- this.currentYearNumber.set(selectedStartDate.year());
348
- this.nextYearNumber.set(selectedStartDate.add(1, "month").year());
349
- this.currentMonthNumber.set(selectedStartDate.get("month"));
350
- this.nextMonthNumber.set(selectedStartDate.add(1, "month").month());
351
- }
352
- }, { allowSignalWrites: true });
353
- effect(() => {
354
- if (this.data().isSingleDatePickerEnable) {
355
- const pickerValue = 'Single Date';
356
- if (!this.datePickerValue().includes(pickerValue)) {
357
- this.datePickerValue.update(currentValue => [pickerValue, ...currentValue]);
358
- }
359
- this.formControl.setValue(pickerValue);
360
- this.singleDatePickerSelected.set(true);
361
- this.openElement.set(true);
362
- this.singleDateSelectedValue.set(this.data().dates[0]?.selectedDate || '');
397
+ if (this.data().isSingleDatePickerEnable) {
398
+ if (!this.datePickerValue().includes(MODE_LABELS.SINGLE)) {
399
+ this.datePickerValue.update(currentValue => [MODE_LABELS.SINGLE, ...currentValue]);
363
400
  }
364
- }, { allowSignalWrites: true });
401
+ this.setMode("SINGLE");
402
+ }
403
+ else {
404
+ this.setMode(this.data().isSPickerSelected ? "SPECIFIC" : "RANGE");
405
+ }
365
406
  }
366
407
  ngOnInit() {
367
408
  if (!this.data()?.dpConfig?.format) {
@@ -370,6 +411,27 @@ class TzDrpContainerComponent {
370
411
  format: DATE_FORMAT
371
412
  };
372
413
  }
414
+ this.positionToSelection();
415
+ }
416
+ setMode(mode) {
417
+ this.mode.set(mode);
418
+ this.formControl.setValue(MODE_LABELS[mode], { emitEvent: false });
419
+ if (mode === "SINGLE" && this.localSelectedDates().length > 1) {
420
+ this.localSelectedDates.update(dates => dates.slice(0, 1));
421
+ }
422
+ }
423
+ positionToSelection() {
424
+ const format = this.data().dpConfig.format;
425
+ const selectedStartDate = this.dateRangeSelected()
426
+ ? this.dayjsInstance()(this.localSelectedDatesRange()?.startDate, format)
427
+ : this.dayjsInstance()(this.localSelectedDates()?.[0]?.selectedDate, format);
428
+ if (!selectedStartDate.isValid()) {
429
+ return;
430
+ }
431
+ this.currentYearNumber.set(selectedStartDate.year());
432
+ this.nextYearNumber.set(selectedStartDate.add(1, "month").year());
433
+ this.currentMonthNumber.set(selectedStartDate.get("month"));
434
+ this.nextMonthNumber.set(selectedStartDate.add(1, "month").month());
373
435
  }
374
436
  generateDates(month, currentYearNumber) {
375
437
  const dates = [];
@@ -429,21 +491,25 @@ class TzDrpContainerComponent {
429
491
  this.toast.displayMsg(day.toastMessage, 4000);
430
492
  return;
431
493
  }
432
- if (this.isSpecificPickerSelected()) {
433
- this.localSelectedDates.update(current => {
434
- const currentSelection = this.dayjsInstance()()
435
- .year(from === "LEFT" ? this.currentYearNumber() : this.nextYearNumber())
436
- .month(from === "LEFT" ? this.currentMonthNumber() : this.nextMonthNumber())
437
- .date(day.date).format(this.data().dpConfig.format);
438
- const existingIndex = current.findIndex(d => d.selectedDate === currentSelection);
439
- if (existingIndex !== -1) {
440
- return current.filter((_, index) => index !== existingIndex);
441
- }
442
- else if (!day.isDisabledDay) {
494
+ if (!this.dateRangeSelected()) {
495
+ const currentSelection = this.dayjsInstance()()
496
+ .year(from === "LEFT" ? this.currentYearNumber() : this.nextYearNumber())
497
+ .month(from === "LEFT" ? this.currentMonthNumber() : this.nextMonthNumber())
498
+ .date(day.date).format(this.data().dpConfig.format);
499
+ if (this.singleDatePickerSelected()) {
500
+ this.localSelectedDates.set([{ selectedDate: currentSelection }]);
501
+ this.applyDates();
502
+ return;
503
+ }
504
+ else {
505
+ this.localSelectedDates.update(current => {
506
+ const existingIndex = current.findIndex(d => d.selectedDate === currentSelection);
507
+ if (existingIndex !== -1) {
508
+ return current.filter((_, index) => index !== existingIndex);
509
+ }
443
510
  return [...current, { selectedDate: currentSelection }];
444
- }
445
- return current;
446
- });
511
+ });
512
+ }
447
513
  }
448
514
  else {
449
515
  const dayjsDay = this.dayjsInstance()()
@@ -473,22 +539,26 @@ class TzDrpContainerComponent {
473
539
  applyDatesRange() {
474
540
  this.data().dateChangeRange(this.localSelectedDatesRange());
475
541
  }
476
- onSingleDateChange(event) {
477
- const selectedData = { selectedDate: event };
478
- this.singleDateSelectedValue.set(event);
479
- this.data().dateChange([selectedData]);
480
- }
481
542
  cancelDatePicker() {
482
543
  this.data().close();
483
544
  }
484
545
  changePicker(event) {
485
- this.singleDatePickerSelected.set(event === "Single Date");
486
- this.openElement.set(event === "Single Date");
487
- this.dateRangeSelected.set(event === "Date Range");
488
- this.isSpecificPickerSelected.set(event === "Specific Date(s)");
489
546
  // As discussed, state is retained when switching modes.
490
547
  // The view will simply update to reflect the active mode.
491
- this.formControl.setValue(event, { emitEvent: false });
548
+ const mode = Object.keys(MODE_LABELS).find(key => MODE_LABELS[key] === event);
549
+ if (mode) {
550
+ this.setMode(mode);
551
+ }
552
+ }
553
+ getDayCellStyle(day) {
554
+ const hasMarker = !!(day.isHoliday || day.isNoShow);
555
+ return {
556
+ "justify-content": hasMarker ? "flex-start" : "center",
557
+ "padding-top": hasMarker ? "2.8px" : "0px",
558
+ "margin-right": this.dateRangeSelected() ? "0px" : "1px",
559
+ width: this.dateRangeSelected() ? "36px" : "35px",
560
+ height: hasMarker ? "33px" : "36px"
561
+ };
492
562
  }
493
563
  getDayTabIndex(day, panel) {
494
564
  const dates = panel === "LEFT" ? this.currentMonthDates() : this.nextMonthDates();
@@ -547,6 +617,24 @@ class TzDrpContainerComponent {
547
617
  }
548
618
  return next >= 0 && next < len && dates[next].date > 0 && !dates[next].isDisabledDay ? next : -1;
549
619
  }
620
+ moveFocusToAdjacentMonth(key) {
621
+ const goForward = key === "ArrowRight" || key === "ArrowDown";
622
+ if (goForward) {
623
+ if (this.isNextMonthDisabled())
624
+ return;
625
+ this.navigateMonth("NEXT");
626
+ }
627
+ else {
628
+ if (this.isPreviousMonthDisabled())
629
+ return;
630
+ this.navigateMonth("PREVIOUS");
631
+ }
632
+ const selectable = this.currentMonthDates().filter(d => d.date > 0 && !d.isDisabledDay);
633
+ const target = goForward ? selectable[0] : selectable[selectable.length - 1];
634
+ if (target) {
635
+ this.scheduleFocusCell(this.getDayCellId(target, "LEFT"));
636
+ }
637
+ }
550
638
  handleDayKeydown(event, panel, day) {
551
639
  const arrowKeys = ["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown"];
552
640
  if (arrowKeys.includes(event.key)) {
@@ -559,6 +647,10 @@ class TzDrpContainerComponent {
559
647
  const dates = panel === "LEFT" ? this.currentMonthDates() : this.nextMonthDates();
560
648
  const nextDay = dates[nextIndex];
561
649
  this.scheduleFocusCell(this.getDayCellId(nextDay, panel));
650
+ return;
651
+ }
652
+ if (!this.showSecondMonth()) {
653
+ this.moveFocusToAdjacentMonth(event.key);
562
654
  }
563
655
  return;
564
656
  }
@@ -569,18 +661,8 @@ class TzDrpContainerComponent {
569
661
  this.selectDay(panel, day);
570
662
  }
571
663
  }
572
- ngOnDestroy() {
573
- if (this.singleDatePickerElement) {
574
- this.singleDatePickerElement.close();
575
- }
576
- }
577
664
  static { this.ɵfac = function TzDrpContainerComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TzDrpContainerComponent)(i0.ɵɵdirectiveInject(CONTAINER_DATA), i0.ɵɵdirectiveInject(i1.ToastService), i0.ɵɵdirectiveInject(i0.ElementRef)); }; }
578
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TzDrpContainerComponent, selectors: [["mis-tz-sdp"]], viewQuery: function TzDrpContainerComponent_Query(rf, ctx) { if (rf & 1) {
579
- i0.ɵɵviewQuery(_c0, 7, TzDatepickerDirective);
580
- } if (rf & 2) {
581
- let _t;
582
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.singleDatePickerElement = _t.first);
583
- } }, decls: 52, vars: 42, consts: [["cancelBtn", ""], ["singleDatePickerElement", ""], ["applyRangeBtn", ""], ["aria-label", "Choose date or date range", "cdkTrapFocus", "", 1, "daterangepicker-container", 3, "ngClass", "cdkTrapFocusAutoCapture"], ["tabindex", "-1", "cdkFocusInitial", ""], [1, "radio-container"], ["class", "label", "tabindex", "0", 3, "keydown.enter", 4, "ngFor", "ngForOf"], [1, "specific-datepicker-container", 3, "ngStyle"], [1, "daterangepicker-container__view"], [1, "datepicker__left"], [1, "daterangepicker-container__header__prabu"], ["role", "button", "aria-label", "Previous month", 1, "daterangepicker-container__arrow__icon", 3, "click", "keydown.enter", "ngClass"], ["width", "20", "height", "16", "viewBox", "0 0 20 16", "fill", "none", "xmlns", "http://www.w3.org/2000/svg", "aria-hidden", "true"], ["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", "keydown", 4, "ngFor", "ngForOf"], [1, "datepicker__right"], ["role", "button", "aria-label", "Next month", 1, "daterangepicker-container__arrow__icon", 3, "click", "keydown.enter", "ngClass"], ["tabindex", "0", 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", "tabindex", "0", 3, "click"], ["mis-button", "", "size", "md", "type", "primary", "tabindex", "0", 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"], ["tabindex", "0", 1, "label", 3, "keydown.enter"], ["ngDefaultControl", "", 1, "input", 3, "valueChange", "name", "value", "formControl"], [1, "daterangepicker-container__weekday"], [3, "ngClass"], [1, "daterangepicker-container__day", 3, "click", "keydown", "ngClass", "ngStyle"], ["aria-hidden", "true", 3, "ngClass"], [3, "ngClass", 4, "ngIf"], [1, "circular-dot", "noShow", 3, "ngStyle"], ["mis-button", "", "size", "md", "type", "primary", "tabindex", "0", 3, "click", "disabled"]], template: function TzDrpContainerComponent_Template(rf, ctx) { if (rf & 1) {
665
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TzDrpContainerComponent, selectors: [["mis-tz-sdp"]], decls: 39, vars: 27, consts: [["cancelBtn", ""], ["arrowSvg", ""], ["applyRangeBtn", ""], ["aria-label", "Choose date or date range", "cdkTrapFocus", "", 1, "daterangepicker-container", 3, "cdkTrapFocusAutoCapture"], ["tabindex", "-1", "cdkFocusInitial", ""], [1, "radio-container"], ["class", "label", "tabindex", "0", 3, "keydown.enter", 4, "ngFor", "ngForOf"], [1, "specific-datepicker-container"], [1, "daterangepicker-container__view"], [1, "datepicker__left"], [1, "daterangepicker-container__header__prabu"], ["role", "button", "aria-label", "Previous month", 1, "daterangepicker-container__arrow__icon", 3, "click", "keydown.enter", "ngClass"], [4, "ngTemplateOutlet"], ["role", "button", "aria-label", "Next month", 1, "daterangepicker-container__arrow__icon", 3, "ngClass"], [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", "keydown", 4, "ngFor", "ngForOf"], [1, "datepicker__right"], ["tabindex", "0", 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", "tabindex", "0", 3, "click"], ["mis-button", "", "size", "md", "type", "primary", "tabindex", "0", 3, "disabled", "click", 4, "ngIf"], ["tabindex", "0", 1, "label", 3, "keydown.enter"], ["ngDefaultControl", "", 1, "input", 3, "valueChange", "name", "value", "formControl"], ["role", "button", "aria-label", "Next month", 1, "daterangepicker-container__arrow__icon", 3, "click", "keydown.enter", "ngClass"], [1, "daterangepicker-container__weekday"], [3, "ngClass"], [1, "daterangepicker-container__day", 3, "click", "keydown", "ngClass", "ngStyle"], ["aria-hidden", "true", 3, "ngClass"], [3, "ngClass", 4, "ngIf"], [1, "circular-dot", "noShow", 3, "ngStyle"], ["mis-button", "", "size", "md", "type", "primary", "tabindex", "0", 3, "click", "disabled"], ["width", "20", "height", "16", "viewBox", "0 0 20 16", "fill", "none", "xmlns", "http://www.w3.org/2000/svg", "aria-hidden", "true"], ["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"]], template: function TzDrpContainerComponent_Template(rf, ctx) { if (rf & 1) {
584
666
  const _r1 = i0.ɵɵgetCurrentView();
585
667
  i0.ɵɵelementStart(0, "div", 3);
586
668
  i0.ɵɵelement(1, "div", 4);
@@ -589,119 +671,88 @@ class TzDrpContainerComponent {
589
671
  i0.ɵɵelementEnd();
590
672
  i0.ɵɵelementStart(4, "div", 7)(5, "div", 8)(6, "div", 9)(7, "div", 10)(8, "div", 11);
591
673
  i0.ɵɵlistener("click", function TzDrpContainerComponent_Template_div_click_8_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(!ctx.isPreviousMonthDisabled() && ctx.navigateMonth("PREVIOUS")); })("keydown.enter", function TzDrpContainerComponent_Template_div_keydown_enter_8_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(!ctx.isPreviousMonthDisabled() && ctx.navigateMonth("PREVIOUS")); });
592
- i0.ɵɵnamespaceSVG();
593
- i0.ɵɵelementStart(9, "svg", 12);
594
- i0.ɵɵelement(10, "path", 13);
595
- i0.ɵɵelementEnd()();
596
- i0.ɵɵnamespaceHTML();
597
- i0.ɵɵelementStart(11, "span");
598
- i0.ɵɵtext(12);
674
+ i0.ɵɵtemplate(9, TzDrpContainerComponent_ng_container_9_Template, 1, 0, "ng-container", 12);
675
+ i0.ɵɵelementEnd();
676
+ i0.ɵɵelementStart(10, "span");
677
+ i0.ɵɵtext(11);
599
678
  i0.ɵɵelementEnd();
600
- i0.ɵɵelement(13, "div");
679
+ i0.ɵɵtemplate(12, TzDrpContainerComponent_Conditional_12_Template, 2, 6, "div", 13)(13, TzDrpContainerComponent_Conditional_13_Template, 1, 0, "div");
601
680
  i0.ɵɵelementEnd();
602
681
  i0.ɵɵelementStart(14, "div", 14)(15, "div", 15);
603
682
  i0.ɵɵtemplate(16, TzDrpContainerComponent_div_16_Template, 3, 4, "div", 16);
604
683
  i0.ɵɵelementEnd();
605
684
  i0.ɵɵelementStart(17, "div", 17);
606
- i0.ɵɵtemplate(18, TzDrpContainerComponent_div_18_Template, 3, 24, "div", 18);
685
+ i0.ɵɵtemplate(18, TzDrpContainerComponent_div_18_Template, 3, 18, "div", 18);
607
686
  i0.ɵɵelementEnd()()();
608
- i0.ɵɵelementStart(19, "div", 19)(20, "div", 10);
609
- i0.ɵɵelement(21, "div");
610
- i0.ɵɵelementStart(22, "span");
611
- i0.ɵɵtext(23);
687
+ i0.ɵɵtemplate(19, TzDrpContainerComponent_Conditional_19_Template, 12, 10, "div", 19);
612
688
  i0.ɵɵelementEnd();
613
- i0.ɵɵelementStart(24, "div", 20);
614
- i0.ɵɵlistener("click", function TzDrpContainerComponent_Template_div_click_24_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(!ctx.isNextMonthDisabled() && ctx.navigateMonth("NEXT")); })("keydown.enter", function TzDrpContainerComponent_Template_div_keydown_enter_24_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(!ctx.isNextMonthDisabled() && ctx.navigateMonth("NEXT")); });
615
- i0.ɵɵnamespaceSVG();
616
- i0.ɵɵelementStart(25, "svg", 12);
617
- i0.ɵɵelement(26, "path", 13);
618
- i0.ɵɵelementEnd()()();
619
- i0.ɵɵnamespaceHTML();
620
- i0.ɵɵelementStart(27, "div", 14)(28, "div", 15);
621
- i0.ɵɵtemplate(29, TzDrpContainerComponent_div_29_Template, 3, 1, "div", 16);
622
- i0.ɵɵelementEnd();
623
- i0.ɵɵelementStart(30, "div", 17);
624
- i0.ɵɵtemplate(31, TzDrpContainerComponent_div_31_Template, 3, 24, "div", 18);
625
- i0.ɵɵelementEnd()()()();
626
- i0.ɵɵelementStart(32, "div", 21)(33, "span");
627
- i0.ɵɵtext(34, "Weekly offs: ");
628
- i0.ɵɵtemplate(35, TzDrpContainerComponent_span_35_Template, 3, 2, "span", 22);
689
+ i0.ɵɵelementStart(20, "div", 20)(21, "span");
690
+ i0.ɵɵtext(22, "Weekly offs: ");
691
+ i0.ɵɵtemplate(23, TzDrpContainerComponent_span_23_Template, 3, 2, "span", 21);
629
692
  i0.ɵɵelementEnd();
630
- i0.ɵɵelementStart(36, "span");
631
- i0.ɵɵtext(37, "Holidays ");
632
- i0.ɵɵelement(38, "span", 23);
693
+ i0.ɵɵelementStart(24, "span");
694
+ i0.ɵɵtext(25, "Holidays ");
695
+ i0.ɵɵelement(26, "span", 22);
633
696
  i0.ɵɵelementEnd();
634
- i0.ɵɵtemplate(39, TzDrpContainerComponent_Conditional_39_Template, 3, 2, "span");
697
+ i0.ɵɵtemplate(27, TzDrpContainerComponent_Conditional_27_Template, 3, 2, "span");
635
698
  i0.ɵɵelementEnd();
636
- i0.ɵɵelementStart(40, "div", 24);
637
- i0.ɵɵtemplate(41, TzDrpContainerComponent_span_41_Template, 4, 1, "span", 25)(42, TzDrpContainerComponent_span_42_Template, 4, 1, "span", 25);
638
- i0.ɵɵelementStart(43, "div", 26)(44, "button", 27, 0);
639
- i0.ɵɵlistener("click", function TzDrpContainerComponent_Template_button_click_44_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.cancelDatePicker()); });
640
- i0.ɵɵtext(46, "Cancel");
699
+ i0.ɵɵelementStart(28, "div", 23);
700
+ i0.ɵɵtemplate(29, TzDrpContainerComponent_span_29_Template, 4, 1, "span", 24)(30, TzDrpContainerComponent_span_30_Template, 4, 1, "span", 24);
701
+ i0.ɵɵelementStart(31, "div", 25)(32, "button", 26, 0);
702
+ i0.ɵɵlistener("click", function TzDrpContainerComponent_Template_button_click_32_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.cancelDatePicker()); });
703
+ i0.ɵɵtext(34, "Cancel");
641
704
  i0.ɵɵelementEnd();
642
- i0.ɵɵtemplate(47, TzDrpContainerComponent_button_47_Template, 2, 1, "button", 28)(48, TzDrpContainerComponent_button_48_Template, 3, 1, "button", 28);
643
- i0.ɵɵelementEnd()()();
644
- i0.ɵɵelementStart(49, "div", 29)(50, "input", 30, 1);
645
- i0.ɵɵlistener("dateChange", function TzDrpContainerComponent_Template_input_dateChange_50_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onSingleDateChange($event)); });
646
- i0.ɵɵelementEnd()()();
705
+ i0.ɵɵtemplate(35, TzDrpContainerComponent_button_35_Template, 2, 1, "button", 27)(36, TzDrpContainerComponent_button_36_Template, 3, 1, "button", 27);
706
+ i0.ɵɵelementEnd()()()();
707
+ i0.ɵɵtemplate(37, TzDrpContainerComponent_ng_template_37_Template, 2, 0, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
647
708
  } if (rf & 2) {
709
+ let tmp_15_0;
648
710
  let tmp_18_0;
649
- let tmp_21_0;
650
- i0.ɵɵproperty("ngClass", ctx.data().isSingleDatePickerEnable ? "single-date-picker-enabled" : "")("cdkTrapFocusAutoCapture", true);
711
+ const arrowSvg_r6 = i0.ɵɵreference(38);
712
+ i0.ɵɵclassProp("mobile-view", ctx.isMobile())("single-date-picker-enabled", ctx.data().isSingleDatePickerEnable);
713
+ i0.ɵɵproperty("cdkTrapFocusAutoCapture", true);
651
714
  i0.ɵɵadvance(3);
652
715
  i0.ɵɵproperty("ngForOf", ctx.datePickerValue());
653
- i0.ɵɵadvance();
654
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(33, _c1, ctx.singleDatePickerSelected() ? "none" : ""));
655
- i0.ɵɵadvance(4);
656
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(35, _c2, ctx.isPreviousMonthDisabled()));
716
+ i0.ɵɵadvance(5);
717
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(24, _c0, ctx.isPreviousMonthDisabled()));
657
718
  i0.ɵɵattribute("tabindex", ctx.isPreviousMonthDisabled() ? -1 : 0)("aria-disabled", ctx.isPreviousMonthDisabled());
658
- i0.ɵɵadvance(4);
719
+ i0.ɵɵadvance();
720
+ i0.ɵɵproperty("ngTemplateOutlet", arrowSvg_r6);
721
+ i0.ɵɵadvance(2);
659
722
  i0.ɵɵtextInterpolate2(" ", ctx.currentMonth(), " ", ctx.currentYearNumber(), " ");
723
+ i0.ɵɵadvance();
724
+ i0.ɵɵconditional(!ctx.showSecondMonth() ? 12 : 13);
660
725
  i0.ɵɵadvance(4);
661
726
  i0.ɵɵproperty("ngForOf", ctx.weekDays());
662
727
  i0.ɵɵadvance(2);
663
728
  i0.ɵɵproperty("ngForOf", ctx.currentMonthDates());
664
- i0.ɵɵadvance(5);
665
- i0.ɵɵtextInterpolate2(" ", ctx.nextMonth(), " ", ctx.nextYearNumber(), " ");
666
729
  i0.ɵɵadvance();
667
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(37, _c2, ctx.isNextMonthDisabled()));
668
- i0.ɵɵattribute("tabindex", ctx.isNextMonthDisabled() ? -1 : 0)("aria-disabled", ctx.isNextMonthDisabled());
669
- i0.ɵɵadvance(5);
670
- i0.ɵɵproperty("ngForOf", ctx.weekDays());
671
- i0.ɵɵadvance(2);
672
- i0.ɵɵproperty("ngForOf", ctx.nextMonthDates());
730
+ i0.ɵɵconditional(ctx.showSecondMonth() ? 19 : -1);
673
731
  i0.ɵɵadvance();
674
- i0.ɵɵattribute("aria-label", "Weekly offs: " + (((tmp_18_0 = ctx.data().weekOffs) == null ? null : tmp_18_0.length) ? ctx.data().weekOffs.join(", ") : "None") + ". Holidays marked with a dot on the calendar.");
732
+ i0.ɵɵattribute("aria-label", "Weekly offs: " + (((tmp_15_0 = ctx.data().weekOffs) == null ? null : tmp_15_0.length) ? ctx.data().weekOffs.join(", ") : "None") + ". Holidays marked with a dot on the calendar.");
675
733
  i0.ɵɵadvance(3);
676
734
  i0.ɵɵproperty("ngForOf", ctx.data().weekOffs);
677
735
  i0.ɵɵadvance(3);
678
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction0(39, _c3));
736
+ i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction0(26, _c1));
679
737
  i0.ɵɵadvance();
680
- i0.ɵɵconditional(((tmp_21_0 = ctx.data().noShow) == null ? null : tmp_21_0.length) ? 39 : -1);
738
+ i0.ɵɵconditional(((tmp_18_0 = ctx.data().noShow) == null ? null : tmp_18_0.length) ? 27 : -1);
681
739
  i0.ɵɵadvance(2);
682
740
  i0.ɵɵproperty("ngIf", ctx.isSpecificPickerSelected());
683
741
  i0.ɵɵadvance();
684
- i0.ɵɵproperty("ngIf", !ctx.isSpecificPickerSelected());
742
+ i0.ɵɵproperty("ngIf", ctx.dateRangeSelected());
685
743
  i0.ɵɵadvance(5);
686
744
  i0.ɵɵproperty("ngIf", ctx.isSpecificPickerSelected());
687
745
  i0.ɵɵadvance();
688
- i0.ɵɵproperty("ngIf", !ctx.isSpecificPickerSelected());
689
- i0.ɵɵadvance();
690
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(40, _c1, !ctx.singleDatePickerSelected() ? "none" : "block"));
691
- i0.ɵɵadvance();
692
- i0.ɵɵproperty("dpConfig", ctx.data().dpConfig)("selectedDate", ctx.singleDateSelectedValue())("value", ctx.singleDateSelectedValue())("disableBoxShadow", true)("disableOverLay", true)("openElement", ctx.openElement());
693
- } }, dependencies: [i2.NgClass, i2.NgForOf, i2.NgIf, i2.NgStyle, i3.ButtonDirective, i4.RadioButtonComponent, i5.TzDatepickerDirective, i6.CdkTrapFocus], styles: ["[_ngcontent-%COMP%]:root{--pmry-200: #99BAF7;--pmry-100: #CBDDFB;--pmry-500: #0937B2;--pmry-400: #3C68D0;--pmry-600: #062A99;--pmry-700: #041F80;--pmry-300: #638FE7;--pmry-800: #021567;--pmry-900: #010F55;--sec-d-purple: #40447F;--sec-maroon: #6B034E;--sec-mud-red: #B23600;--sec-orange: #ED711C;--sec-purple: #815FD5;--sec-teal: #10ADAE;--sec-yellow: #D4900C;--sec-green: #547F40;--sec-bright-green: #27D22E;--sec-dark-teal: #035F6B;--sec-chocolate: #7C2F33;--sec-rube-pink: #C13D6D;--sec-cerulean: #0087B2;--sem-error: #B00020;--sem-info: #0091FF;--sem-warning: #FF9D00;--sem-success: #38AF49;--grey-bg-1: #FAFAFA;--grey-bg: #F5F5F5;--grey-seperators: #E0E0E0;--grey-disabled: #C8CDD3;--grey-hover: #F5F7FC;--grey-pressed: #E6EBF7;--grey-row: #F5F7FC;--dec-light-yellow: #F4E7C3;--dec-light-purple: #DACFF9;--dec-light-green: #E4F5E9;--dec-light-green2: #F1FFF3;--dec-light-pink: #FAE1EA;--dec-: #F4CBC1;--dec-lt-orange: #FAEFED;--dec-light-blue: #CFECF9;--dec-row-selection: #F1FDF8;--dec-row-selection2: #F2FBFF;--dec-row-lines: #D3E1E9;--text-white: #FFFFFF;--text-muted: #6A737D;--text-black: #181F33;--MR-solid-blue2:#C8D5F6;--MR-solid-purple:#C9C3FB;--MR-solid-orange:#EEAC9F;--MR-solid-green:#ACDADA;--MR-solid-brown:#E8C8AF;--MR-solid-yellow:#FFEFC7;--MR-solid-blue:#BBE6FF;--MR-solid-pink:#FFC6F2;--tr-hover:#F0F3FA;--tr-pressed:#DAE1F3;--brand-primary: #0937B2;--brand-primary-light: #3C68D0;--brand-primary-dark: #062A99;--brand-primary-darker: #041F80;--brand-primary-lighter: #638FE7;--brand-primary-lightest: #CBDDFB;--brand-primary-hover: #F0F3FA;--brand-primary-active: #DAE1F3;--brand-secondary: #ED711C;--brand-secondary-light: #F09E65;--brand-secondary-dark: #B23600;--brand-secondary-lighter: #FFC6F2;--brand-accent: #10ADAE;--brand-accent-light: #16CBBC;--brand-accent-dark: #035F6B;--brand-accent-lighter: #ACDADA;--brand-success: #38AF49;--brand-success-light: #4CAF50;--brand-success-dark: #216531;--brand-success-lighter: #E4F5E9;--brand-success-lightest: #F1FFF3;--brand-error: #B00020;--brand-error-light: #F04E4E;--brand-error-dark: #A60060;--brand-error-lighter: #FAE1EA;--brand-error-lightest: #FDF2F2;--brand-warning: #FF9D00;--brand-warning-light: #D4900C;--brand-warning-dark: #624000;--brand-warning-lighter: #F4E7C3;--brand-warning-lightest: #FAEFED;--brand-info: #0091FF;--brand-info-light: #35A1FF;--brand-info-dark: #0087B2;--brand-info-lighter: #CFECF9;--text-primary: #181F33;--text-secondary: #6A737D;--text-tertiary: #929DAB;--text-disabled: #929DAB;--text-muted-secondary: #E5E5E5;--text-primary-87: rgba(24, 31, 51, .87);--text-primary-60: rgba(24, 31, 51, .6);--text-primary-38: rgba(24, 31, 51, .38);--text-primary-12: rgba(24, 31, 51, .12);--bg-primary: #FFFFFF;--bg-secondary: #FAFAFA;--bg-tertiary: #F5F5F5;--bg-overlay: rgba(0, 0, 0, .32);--bg-overlay-light: rgba(0, 0, 0, .12);--bg-overlay-lighter: rgba(0, 0, 0, .08);--bg-overlay-lightest: rgba(0, 0, 0, .04);--border-primary: #E0E0E0;--border-secondary: #D6DCE2;--border-tertiary: #C8CDD3;--border-light: #F1F4F8;--border-primary-12: rgba(0, 0, 0, .12);--border-primary-08: rgba(0, 0, 0, .08);--border-primary-06: rgba(0, 0, 0, .06);--shadow-primary: rgba(0, 0, 0, .12);--shadow-secondary: rgba(0, 0, 0, .08);--shadow-tertiary: rgba(0, 0, 0, .04);--shadow-light: rgba(0, 0, 0, .06);--status-available: #929DAB;--status-unavailable: #CCD3DA;--status-hotseat: #857BFF;--status-multiteam: #10ADAE;--status-selected: #10ADAE;--status-upcoming: #D4900C;--status-room: #38AF49;--status-room-booked: #B23600;--status-room-unavailable: #181F33;--team-color-1: #F8C52E;--team-color-2: #FA8E20;--team-color-3: #987CDD;--team-color-4: #16CBBC;--team-color-5: #E65010;--team-color-6: #A60060;--team-color-7: #ED323B;--team-color-8: #35A1FF;--team-color-9: #80D348}.daterangepicker-container[_ngcontent-%COMP%]{background:var(--bg-primary, #FFFFFF);border:1px solid var(--border-primary, #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;max-height:95vh;overflow-y:auto}.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(--border-primary, #E0E0E0);background:var(--bg-primary, #FFFFFF)}.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 var(--border-primary, #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 var(--border-primary, #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:var(--brand-primary-lightest, #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:var(--text-secondary, #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:var(--text-primary, #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:var(--text-secondary, #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:var(--brand-primary-lightest, #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:var(--text-primary, #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:var(--brand-primary, #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:var(--bg-primary, #FFFFFF)}.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:var(--text-secondary, #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:var(--brand-primary, #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:var(--bg-primary, #FFFFFF)!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:var(--brand-primary, #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:var(--bg-primary, #FFFFFF)!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:var(--brand-primary-lightest, #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:var(--brand-primary, #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:var(--bg-primary, #FFFFFF)!important}.daterangepicker-container[_ngcontent-%COMP%] .weekOffs_holidays_container[_ngcontent-%COMP%]{font-size:12px;color:var(--text-secondary, #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:var(--text-primary, #181F33)}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker__footer[_ngcontent-%COMP%]{display:flex;justify-content:space-between;border-top:1px solid var(--border-primary, #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:var(--brand-warning, #FF9D00);border-radius:50%}.circular-dot.noShow[_ngcontent-%COMP%]{background-color:#8a2be2}.holiday-text[_ngcontent-%COMP%]{color:var(--text-secondary, #6A737D)!important}.display-none[_ngcontent-%COMP%]{display:none!important}.single-datepicker-container[_ngcontent-%COMP%]{width:291px}"] }); }
746
+ i0.ɵɵproperty("ngIf", ctx.dateRangeSelected());
747
+ } }, dependencies: [i2.NgClass, i2.NgForOf, i2.NgIf, i2.NgTemplateOutlet, i2.NgStyle, i3.ButtonDirective, i4.RadioButtonComponent, i5.CdkTrapFocus], styles: ["[_ngcontent-%COMP%]:root{--pmry-200: #99BAF7;--pmry-100: #CBDDFB;--pmry-500: #0937B2;--pmry-400: #3C68D0;--pmry-600: #062A99;--pmry-700: #041F80;--pmry-300: #638FE7;--pmry-800: #021567;--pmry-900: #010F55;--sec-d-purple: #40447F;--sec-maroon: #6B034E;--sec-mud-red: #B23600;--sec-orange: #ED711C;--sec-purple: #815FD5;--sec-teal: #10ADAE;--sec-yellow: #D4900C;--sec-green: #547F40;--sec-bright-green: #27D22E;--sec-dark-teal: #035F6B;--sec-chocolate: #7C2F33;--sec-rube-pink: #C13D6D;--sec-cerulean: #0087B2;--sem-error: #B00020;--sem-info: #0091FF;--sem-warning: #FF9D00;--sem-success: #38AF49;--grey-bg-1: #FAFAFA;--grey-bg: #F5F5F5;--grey-seperators: #E0E0E0;--grey-disabled: #C8CDD3;--grey-hover: #F5F7FC;--grey-pressed: #E6EBF7;--grey-row: #F5F7FC;--dec-light-yellow: #F4E7C3;--dec-light-purple: #DACFF9;--dec-light-green: #E4F5E9;--dec-light-green2: #F1FFF3;--dec-light-pink: #FAE1EA;--dec-: #F4CBC1;--dec-lt-orange: #FAEFED;--dec-light-blue: #CFECF9;--dec-row-selection: #F1FDF8;--dec-row-selection2: #F2FBFF;--dec-row-lines: #D3E1E9;--text-white: #FFFFFF;--text-muted: #6A737D;--text-black: #181F33;--MR-solid-blue2:#C8D5F6;--MR-solid-purple:#C9C3FB;--MR-solid-orange:#EEAC9F;--MR-solid-green:#ACDADA;--MR-solid-brown:#E8C8AF;--MR-solid-yellow:#FFEFC7;--MR-solid-blue:#BBE6FF;--MR-solid-pink:#FFC6F2;--tr-hover:#F0F3FA;--tr-pressed:#DAE1F3;--brand-primary: #0937B2;--brand-primary-light: #3C68D0;--brand-primary-dark: #062A99;--brand-primary-darker: #041F80;--brand-primary-lighter: #638FE7;--brand-primary-lightest: #CBDDFB;--brand-primary-hover: #F0F3FA;--brand-primary-active: #DAE1F3;--brand-secondary: #ED711C;--brand-secondary-light: #F09E65;--brand-secondary-dark: #B23600;--brand-secondary-lighter: #FFC6F2;--brand-accent: #10ADAE;--brand-accent-light: #16CBBC;--brand-accent-dark: #035F6B;--brand-accent-lighter: #ACDADA;--brand-success: #38AF49;--brand-success-light: #4CAF50;--brand-success-dark: #216531;--brand-success-lighter: #E4F5E9;--brand-success-lightest: #F1FFF3;--brand-error: #B00020;--brand-error-light: #F04E4E;--brand-error-dark: #A60060;--brand-error-lighter: #FAE1EA;--brand-error-lightest: #FDF2F2;--brand-warning: #FF9D00;--brand-warning-light: #D4900C;--brand-warning-dark: #624000;--brand-warning-lighter: #F4E7C3;--brand-warning-lightest: #FAEFED;--brand-info: #0091FF;--brand-info-light: #35A1FF;--brand-info-dark: #0087B2;--brand-info-lighter: #CFECF9;--text-primary: #181F33;--text-secondary: #6A737D;--text-tertiary: #929DAB;--text-disabled: #929DAB;--text-muted-secondary: #E5E5E5;--text-primary-87: rgba(24, 31, 51, .87);--text-primary-60: rgba(24, 31, 51, .6);--text-primary-38: rgba(24, 31, 51, .38);--text-primary-12: rgba(24, 31, 51, .12);--bg-primary: #FFFFFF;--bg-secondary: #FAFAFA;--bg-tertiary: #F5F5F5;--bg-overlay: rgba(0, 0, 0, .32);--bg-overlay-light: rgba(0, 0, 0, .12);--bg-overlay-lighter: rgba(0, 0, 0, .08);--bg-overlay-lightest: rgba(0, 0, 0, .04);--border-primary: #E0E0E0;--border-secondary: #D6DCE2;--border-tertiary: #C8CDD3;--border-light: #F1F4F8;--border-primary-12: rgba(0, 0, 0, .12);--border-primary-08: rgba(0, 0, 0, .08);--border-primary-06: rgba(0, 0, 0, .06);--shadow-primary: rgba(0, 0, 0, .12);--shadow-secondary: rgba(0, 0, 0, .08);--shadow-tertiary: rgba(0, 0, 0, .04);--shadow-light: rgba(0, 0, 0, .06);--status-available: #929DAB;--status-unavailable: #CCD3DA;--status-hotseat: #857BFF;--status-multiteam: #10ADAE;--status-selected: #10ADAE;--status-upcoming: #D4900C;--status-room: #38AF49;--status-room-booked: #B23600;--status-room-unavailable: #181F33;--team-color-1: #F8C52E;--team-color-2: #FA8E20;--team-color-3: #987CDD;--team-color-4: #16CBBC;--team-color-5: #E65010;--team-color-6: #A60060;--team-color-7: #ED323B;--team-color-8: #35A1FF;--team-color-9: #80D348}.daterangepicker-container[_ngcontent-%COMP%]{background:var(--bg-primary, #FFFFFF);border:1px solid var(--border-primary, #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;max-height:95vh;overflow-y:auto}.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(--border-primary, #E0E0E0);background:var(--bg-primary, #FFFFFF)}.daterangepicker-container[_ngcontent-%COMP%] .radio-container[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0 16px}.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%]:not(:last-child){border-right:1px solid var(--border-primary, #E0E0E0)}.daterangepicker-container.single-date-picker-enabled[_ngcontent-%COMP%]:not(.mobile-view){flex-direction:row}.daterangepicker-container.single-date-picker-enabled[_ngcontent-%COMP%]:not(.mobile-view) .radio-container[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:16px;height:auto;padding:20px 16px;border-bottom:0;border-right:1px solid var(--border-primary, #E0E0E0);border-radius:12px 0 0 12px;flex-shrink:0}.daterangepicker-container.single-date-picker-enabled[_ngcontent-%COMP%]:not(.mobile-view) .radio-container[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{padding:0}.daterangepicker-container.single-date-picker-enabled[_ngcontent-%COMP%]:not(.mobile-view) .radio-container[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]:not(:last-child){border-right:0}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%]{display:flex;gap:24px;padding:16px;justify-content:center}.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:var(--brand-primary-lightest, #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:var(--text-secondary, #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:var(--text-primary, #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:var(--text-secondary, #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:var(--brand-primary-lightest, #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:var(--text-primary, #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:var(--brand-primary, #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:var(--bg-primary, #FFFFFF)}.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:var(--text-secondary, #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:var(--brand-primary, #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:var(--bg-primary, #FFFFFF)!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:var(--brand-primary, #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:var(--bg-primary, #FFFFFF)!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:var(--brand-primary-lightest, #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:var(--brand-primary, #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:var(--bg-primary, #FFFFFF)!important}.daterangepicker-container.mobile-view[_ngcontent-%COMP%]{width:min(100vw - 16px,300px);max-width:100vw}.daterangepicker-container.mobile-view[_ngcontent-%COMP%] .radio-container[_ngcontent-%COMP%]{height:auto;min-height:48px;flex-wrap:wrap;row-gap:4px;padding:8px 12px}.daterangepicker-container.mobile-view[_ngcontent-%COMP%] .radio-container[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{padding:0 8px}.daterangepicker-container.mobile-view[_ngcontent-%COMP%] .radio-container[_ngcontent-%COMP%] .label[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:13px}.daterangepicker-container.mobile-view[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%]{gap:0;padding:12px}.daterangepicker-container.mobile-view[_ngcontent-%COMP%] .daterangepicker-container__view[_ngcontent-%COMP%] .daterangepicker-container__header__prabu[_ngcontent-%COMP%]{padding-bottom:12px}.daterangepicker-container.mobile-view[_ngcontent-%COMP%] .weekOffs_holidays_container[_ngcontent-%COMP%]{padding:8px 12px 12px}.daterangepicker-container.mobile-view[_ngcontent-%COMP%] .daterangepicker__footer[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch;gap:12px;padding:12px}.daterangepicker-container.mobile-view[_ngcontent-%COMP%] .daterangepicker__footer[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{align-self:flex-start}.daterangepicker-container.mobile-view[_ngcontent-%COMP%] .daterangepicker__footer[_ngcontent-%COMP%] .footer_action_btn[_ngcontent-%COMP%]{gap:12px}.daterangepicker-container.mobile-view[_ngcontent-%COMP%] .daterangepicker__footer[_ngcontent-%COMP%] .footer_action_btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex:1;width:auto;margin-left:0}.daterangepicker-container[_ngcontent-%COMP%] .weekOffs_holidays_container[_ngcontent-%COMP%]{font-size:12px;color:var(--text-secondary, #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:var(--text-primary, #181F33)}.daterangepicker-container[_ngcontent-%COMP%] .daterangepicker__footer[_ngcontent-%COMP%]{display:flex;justify-content:space-between;border-top:1px solid var(--border-primary, #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;margin-left:auto}.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:var(--brand-warning, #FF9D00);border-radius:50%}.circular-dot.noShow[_ngcontent-%COMP%]{background-color:#8a2be2}.holiday-text[_ngcontent-%COMP%]{color:var(--text-secondary, #6A737D)!important}.display-none[_ngcontent-%COMP%]{display:none!important}"] }); }
694
748
  }
695
749
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TzDrpContainerComponent, [{
696
750
  type: Component,
697
- args: [{ selector: "mis-tz-sdp", template: "<div class=\"daterangepicker-container\" [ngClass]=\"data().isSingleDatePickerEnable?'single-date-picker-enabled':''\" aria-label=\"Choose date or date range\" cdkTrapFocus [cdkTrapFocusAutoCapture]=\"true\">\n <div tabindex=\"-1\" cdkFocusInitial></div>\n <div class=\"radio-container\">\n<div\n class=\"label\"\n tabindex=\"0\"\n (keydown.enter)=\"changePicker(picker)\"\n [attr.aria-label]=\"(formControl?.value === picker) ? (picker + ', selected') : (picker + ', click to select')\"\n *ngFor=\"let picker of datePickerValue(); let i = index\"\n>\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 role=\"button\"\n [attr.tabindex]=\"isPreviousMonthDisabled() ? -1 : 0\"\n [attr.aria-disabled]=\"isPreviousMonthDisabled()\"\n aria-label=\"Previous month\"\n (click)=\"!isPreviousMonthDisabled() && navigateMonth('PREVIOUS')\"\n (keydown.enter)=\"!isPreviousMonthDisabled() && navigateMonth('PREVIOUS')\"\n [ngClass]=\"{ 'disabled-month': isPreviousMonthDisabled() }\"\n >\n <svg width=\"20\" height=\"16\" viewBox=\"0 0 20 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\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 [attr.data-sdp-cell]=\"getDayCellId(day, 'LEFT')\"\n [attr.tabindex]=\"getDayTabIndex(day, 'LEFT')\"\n [attr.aria-label]=\"day.date > 0 ? (day.date + ' ' + currentMonth() + ' ' + currentYearNumber() + (day.isDisabledDay ? ', disabled' : '')) : null\"\n [attr.aria-disabled]=\"day.isDisabledDay\"\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 || day.isNoShow) ? 'flex-start' : 'center','padding-top': (day.isHoliday || day.isNoShow) ? '2.8px' : '0px','height': (day.isHoliday || day.isNoShow) ? '33px' : '36px'}\"\n *ngFor=\"let day of currentMonthDates()\"\n (click)=\"selectDay('LEFT',day)\"\n (keydown)=\"handleDayKeydown($event, 'LEFT', day)\"\n >\n <div [ngClass]=\"{ 'circular-dot': day.isHoliday || day.isNoShow,\n 'noShow': day.isNoShow }\" aria-hidden=\"true\"></div>\n <span *ngIf=\"day.date > 0\" [ngClass]=\"{ 'current-day': day.isCurrentDay, 'holiday-text': day.isHoliday || day.isNoShow || day.isWeekOff }\">\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 role=\"button\"\n [attr.tabindex]=\"isNextMonthDisabled() ? -1 : 0\"\n [attr.aria-disabled]=\"isNextMonthDisabled()\"\n aria-label=\"Next month\"\n (click)=\"!isNextMonthDisabled() && navigateMonth('NEXT')\"\n (keydown.enter)=\"!isNextMonthDisabled() && navigateMonth('NEXT')\"\n [ngClass]=\"{ 'disabled-month': isNextMonthDisabled() }\"\n >\n <svg width=\"20\" height=\"16\" viewBox=\"0 0 20 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\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 [attr.data-sdp-cell]=\"getDayCellId(day, 'RIGHT')\"\n [attr.tabindex]=\"getDayTabIndex(day, 'RIGHT')\"\n [attr.aria-label]=\"day.date > 0 ? (day.date + ' ' + nextMonth() + ' ' + nextYearNumber() + (day.isDisabledDay ? ', disabled' : '')) : null\"\n [attr.aria-disabled]=\"day.isDisabledDay\"\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': !data().isSPickerSelected ? '0px' : '1px','width': !data().isSPickerSelected ? '36px' : '35px','justify-content': (day.isHoliday || day.isNoShow) ? 'flex-start' : 'center','padding-top': (day.isHoliday || day.isNoShow) ? '3px' : '0px','height': (day.isHoliday || day.isNoShow) ? '33px' : '36px'}\"\n *ngFor=\"let day of nextMonthDates()\"\n (click)=\"selectDay('RIGHT',day)\"\n (keydown)=\"handleDayKeydown($event, 'RIGHT', day)\"\n >\n <div [ngClass]=\"{ 'circular-dot': day.isHoliday || day.isNoShow,\n 'noShow': day.isNoShow }\" aria-hidden=\"true\"></div>\n <span *ngIf=\"day.date > 0\" [ngClass]=\"{ 'current-day': day.isCurrentDay && (currentMonthNumber() === todayMonthNumber()), 'holiday-text': day.isHoliday || day.isNoShow || day.isWeekOff }\">\n {{ day.date }}\n </span>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"weekOffs_holidays_container\" tabindex=\"0\" [attr.aria-label]=\"'Weekly offs: ' + (data().weekOffs?.length ? data().weekOffs.join(', ') : 'None') + '. Holidays marked with a dot on the calendar.'\">\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 @if(data().noShow?.length){\n <span>No-Show Enforcement Window<span class=\"circular-dot noShow\" [ngStyle]=\"{ display: 'inline-block', 'margin-left': '10px' }\"></span></span>\n }\n </div>\n <div class=\"daterangepicker__footer\">\n <span *ngIf=\"isSpecificPickerSelected()\">\n <span>{{localSelectedDates().length}}</span> day(s) selected\n </span>\n <span *ngIf=\"!isSpecificPickerSelected()\"><span>{{dateRangeLength() > 0 ? dateRangeLength() : 0 }} </span>day(s) selected</span>\n <div class=\"footer_action_btn\">\n <button #cancelBtn mis-button size=\"md\" type=\"none\" tabindex=\"0\" (click)=\"cancelDatePicker()\">Cancel</button>\n <button *ngIf=\"isSpecificPickerSelected()\" mis-button size=\"md\" type=\"primary\" tabindex=\"0\" (click)=\"applyDates()\" [disabled]=\"!isDatesValid()\">Apply</button>\n <button *ngIf=\"!isSpecificPickerSelected()\" #applyRangeBtn mis-button size=\"md\" type=\"primary\" tabindex=\"0\" (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: [":root{--pmry-200: #99BAF7;--pmry-100: #CBDDFB;--pmry-500: #0937B2;--pmry-400: #3C68D0;--pmry-600: #062A99;--pmry-700: #041F80;--pmry-300: #638FE7;--pmry-800: #021567;--pmry-900: #010F55;--sec-d-purple: #40447F;--sec-maroon: #6B034E;--sec-mud-red: #B23600;--sec-orange: #ED711C;--sec-purple: #815FD5;--sec-teal: #10ADAE;--sec-yellow: #D4900C;--sec-green: #547F40;--sec-bright-green: #27D22E;--sec-dark-teal: #035F6B;--sec-chocolate: #7C2F33;--sec-rube-pink: #C13D6D;--sec-cerulean: #0087B2;--sem-error: #B00020;--sem-info: #0091FF;--sem-warning: #FF9D00;--sem-success: #38AF49;--grey-bg-1: #FAFAFA;--grey-bg: #F5F5F5;--grey-seperators: #E0E0E0;--grey-disabled: #C8CDD3;--grey-hover: #F5F7FC;--grey-pressed: #E6EBF7;--grey-row: #F5F7FC;--dec-light-yellow: #F4E7C3;--dec-light-purple: #DACFF9;--dec-light-green: #E4F5E9;--dec-light-green2: #F1FFF3;--dec-light-pink: #FAE1EA;--dec-: #F4CBC1;--dec-lt-orange: #FAEFED;--dec-light-blue: #CFECF9;--dec-row-selection: #F1FDF8;--dec-row-selection2: #F2FBFF;--dec-row-lines: #D3E1E9;--text-white: #FFFFFF;--text-muted: #6A737D;--text-black: #181F33;--MR-solid-blue2:#C8D5F6;--MR-solid-purple:#C9C3FB;--MR-solid-orange:#EEAC9F;--MR-solid-green:#ACDADA;--MR-solid-brown:#E8C8AF;--MR-solid-yellow:#FFEFC7;--MR-solid-blue:#BBE6FF;--MR-solid-pink:#FFC6F2;--tr-hover:#F0F3FA;--tr-pressed:#DAE1F3;--brand-primary: #0937B2;--brand-primary-light: #3C68D0;--brand-primary-dark: #062A99;--brand-primary-darker: #041F80;--brand-primary-lighter: #638FE7;--brand-primary-lightest: #CBDDFB;--brand-primary-hover: #F0F3FA;--brand-primary-active: #DAE1F3;--brand-secondary: #ED711C;--brand-secondary-light: #F09E65;--brand-secondary-dark: #B23600;--brand-secondary-lighter: #FFC6F2;--brand-accent: #10ADAE;--brand-accent-light: #16CBBC;--brand-accent-dark: #035F6B;--brand-accent-lighter: #ACDADA;--brand-success: #38AF49;--brand-success-light: #4CAF50;--brand-success-dark: #216531;--brand-success-lighter: #E4F5E9;--brand-success-lightest: #F1FFF3;--brand-error: #B00020;--brand-error-light: #F04E4E;--brand-error-dark: #A60060;--brand-error-lighter: #FAE1EA;--brand-error-lightest: #FDF2F2;--brand-warning: #FF9D00;--brand-warning-light: #D4900C;--brand-warning-dark: #624000;--brand-warning-lighter: #F4E7C3;--brand-warning-lightest: #FAEFED;--brand-info: #0091FF;--brand-info-light: #35A1FF;--brand-info-dark: #0087B2;--brand-info-lighter: #CFECF9;--text-primary: #181F33;--text-secondary: #6A737D;--text-tertiary: #929DAB;--text-disabled: #929DAB;--text-muted-secondary: #E5E5E5;--text-primary-87: rgba(24, 31, 51, .87);--text-primary-60: rgba(24, 31, 51, .6);--text-primary-38: rgba(24, 31, 51, .38);--text-primary-12: rgba(24, 31, 51, .12);--bg-primary: #FFFFFF;--bg-secondary: #FAFAFA;--bg-tertiary: #F5F5F5;--bg-overlay: rgba(0, 0, 0, .32);--bg-overlay-light: rgba(0, 0, 0, .12);--bg-overlay-lighter: rgba(0, 0, 0, .08);--bg-overlay-lightest: rgba(0, 0, 0, .04);--border-primary: #E0E0E0;--border-secondary: #D6DCE2;--border-tertiary: #C8CDD3;--border-light: #F1F4F8;--border-primary-12: rgba(0, 0, 0, .12);--border-primary-08: rgba(0, 0, 0, .08);--border-primary-06: rgba(0, 0, 0, .06);--shadow-primary: rgba(0, 0, 0, .12);--shadow-secondary: rgba(0, 0, 0, .08);--shadow-tertiary: rgba(0, 0, 0, .04);--shadow-light: rgba(0, 0, 0, .06);--status-available: #929DAB;--status-unavailable: #CCD3DA;--status-hotseat: #857BFF;--status-multiteam: #10ADAE;--status-selected: #10ADAE;--status-upcoming: #D4900C;--status-room: #38AF49;--status-room-booked: #B23600;--status-room-unavailable: #181F33;--team-color-1: #F8C52E;--team-color-2: #FA8E20;--team-color-3: #987CDD;--team-color-4: #16CBBC;--team-color-5: #E65010;--team-color-6: #A60060;--team-color-7: #ED323B;--team-color-8: #35A1FF;--team-color-9: #80D348}.daterangepicker-container{background:var(--bg-primary, #FFFFFF);border:1px solid var(--border-primary, #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;max-height:95vh;overflow-y:auto}.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(--border-primary, #E0E0E0);background:var(--bg-primary, #FFFFFF)}.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 var(--border-primary, #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 var(--border-primary, #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:var(--brand-primary-lightest, #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:var(--text-secondary, #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:var(--text-primary, #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:var(--text-secondary, #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:var(--brand-primary-lightest, #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:var(--text-primary, #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:var(--brand-primary, #0937B2)}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day span.selected-day{color:var(--bg-primary, #FFFFFF)}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day span.disabled-day{color:var(--text-secondary, #6A737D)}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .selected-start-day{background-color:var(--brand-primary, #0937B2);border-radius:20px 4px 4px 20px}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .selected-start-day>span{color:var(--bg-primary, #FFFFFF)!important}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .selected-end-day{background-color:var(--brand-primary, #0937B2);border-radius:0 20px 20px 0}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .selected-end-day>span{color:var(--bg-primary, #FFFFFF)!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:var(--brand-primary-lightest, #CBDDFB)}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .selected-day{background-color:var(--brand-primary, #0937B2);border-radius:4px}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .selected-day>span{color:var(--bg-primary, #FFFFFF)!important}.daterangepicker-container .weekOffs_holidays_container{font-size:12px;color:var(--text-secondary, #6A737D);padding:8px 24px 12px}.daterangepicker-container .weekOffs_holidays_container>span{margin-right:16px}.daterangepicker-container .weekOffs_holidays_container>span>span{color:var(--text-primary, #181F33)}.daterangepicker-container .daterangepicker__footer{display:flex;justify-content:space-between;border-top:1px solid var(--border-primary, #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:var(--brand-warning, #FF9D00);border-radius:50%}.circular-dot.noShow{background-color:#8a2be2}.holiday-text{color:var(--text-secondary, #6A737D)!important}.display-none{display:none!important}.single-datepicker-container{width:291px}\n"] }]
751
+ args: [{ selector: "mis-tz-sdp", template: "<div class=\"daterangepicker-container\" [class.mobile-view]=\"isMobile()\" [class.single-date-picker-enabled]=\"data().isSingleDatePickerEnable\" aria-label=\"Choose date or date range\" cdkTrapFocus [cdkTrapFocusAutoCapture]=\"true\">\n <div tabindex=\"-1\" cdkFocusInitial></div>\n <div class=\"radio-container\">\n<div\n class=\"label\"\n tabindex=\"0\"\n (keydown.enter)=\"changePicker(picker)\"\n [attr.aria-label]=\"(formControl?.value === picker) ? (picker + ', selected') : (picker + ', click to select')\"\n *ngFor=\"let picker of datePickerValue(); let i = index\"\n>\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\">\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 role=\"button\"\n [attr.tabindex]=\"isPreviousMonthDisabled() ? -1 : 0\"\n [attr.aria-disabled]=\"isPreviousMonthDisabled()\"\n aria-label=\"Previous month\"\n (click)=\"!isPreviousMonthDisabled() && navigateMonth('PREVIOUS')\"\n (keydown.enter)=\"!isPreviousMonthDisabled() && navigateMonth('PREVIOUS')\"\n [ngClass]=\"{ 'disabled-month': isPreviousMonthDisabled() }\"\n >\n <ng-container *ngTemplateOutlet=\"arrowSvg\"></ng-container>\n </div>\n <span> {{ currentMonth() }} {{ currentYearNumber() }} </span>\n @if (!showSecondMonth()) {\n <div\n class=\"daterangepicker-container__arrow__icon\"\n role=\"button\"\n [attr.tabindex]=\"isNextMonthDisabled() ? -1 : 0\"\n [attr.aria-disabled]=\"isNextMonthDisabled()\"\n aria-label=\"Next month\"\n (click)=\"!isNextMonthDisabled() && navigateMonth('NEXT')\"\n (keydown.enter)=\"!isNextMonthDisabled() && navigateMonth('NEXT')\"\n [ngClass]=\"{ 'disabled-month': isNextMonthDisabled() }\"\n >\n <ng-container *ngTemplateOutlet=\"arrowSvg\"></ng-container>\n </div>\n } @else {\n <div></div>\n }\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 [attr.data-sdp-cell]=\"getDayCellId(day, 'LEFT')\"\n [attr.tabindex]=\"getDayTabIndex(day, 'LEFT')\"\n [attr.aria-label]=\"day.date > 0 ? (day.date + ' ' + currentMonth() + ' ' + currentYearNumber() + (day.isDisabledDay ? ', disabled' : '')) : null\"\n [attr.aria-disabled]=\"day.isDisabledDay\"\n [ngClass]=\"{\n 'selected-day': day.isSelectedDay && !dateRangeSelected(),\n 'disabled-day': day.isDisabledDay,\n 'selected-start-day': day.isSelectedStartDay && dateRangeSelected(),\n 'selected-end-day': day.isSelectedEndDay && dateRangeSelected(),\n 'in-range-day': day.inRangeDay && dateRangeSelected(),\n 'is-valid-date': day.date > 0 && dateRangeSelected() && !(day.isSelectedStartDay && day.isSelectedEndDay)\n }\"\n [ngStyle]=\"getDayCellStyle(day)\"\n *ngFor=\"let day of currentMonthDates()\"\n (click)=\"selectDay('LEFT',day)\"\n (keydown)=\"handleDayKeydown($event, 'LEFT', day)\"\n >\n <div [ngClass]=\"{ 'circular-dot': day.isHoliday || day.isNoShow,\n 'noShow': day.isNoShow }\" aria-hidden=\"true\"></div>\n <span *ngIf=\"day.date > 0\" [ngClass]=\"{ 'current-day': day.isCurrentDay, 'holiday-text': day.isHoliday || day.isNoShow || day.isWeekOff }\">\n {{ day.date }}\n </span>\n </div>\n </div>\n </div>\n </div>\n @if (showSecondMonth()) {\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 role=\"button\"\n [attr.tabindex]=\"isNextMonthDisabled() ? -1 : 0\"\n [attr.aria-disabled]=\"isNextMonthDisabled()\"\n aria-label=\"Next month\"\n (click)=\"!isNextMonthDisabled() && navigateMonth('NEXT')\"\n (keydown.enter)=\"!isNextMonthDisabled() && navigateMonth('NEXT')\"\n [ngClass]=\"{ 'disabled-month': isNextMonthDisabled() }\"\n >\n <ng-container *ngTemplateOutlet=\"arrowSvg\"></ng-container>\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 [attr.data-sdp-cell]=\"getDayCellId(day, 'RIGHT')\"\n [attr.tabindex]=\"getDayTabIndex(day, 'RIGHT')\"\n [attr.aria-label]=\"day.date > 0 ? (day.date + ' ' + nextMonth() + ' ' + nextYearNumber() + (day.isDisabledDay ? ', disabled' : '')) : null\"\n [attr.aria-disabled]=\"day.isDisabledDay\"\n [ngClass]=\"{\n 'selected-day': day.isSelectedDay && !dateRangeSelected(),\n 'disabled-day': day.isDisabledDay,\n 'selected-start-day': day.isSelectedStartDay && dateRangeSelected(),\n 'selected-end-day': day.isSelectedEndDay && dateRangeSelected(),\n 'in-range-day': day.inRangeDay && dateRangeSelected(),\n 'is-valid-date': day.date > 0 && dateRangeSelected() && !(day.isSelectedStartDay && day.isSelectedEndDay)\n }\"\n [ngStyle]=\"getDayCellStyle(day)\"\n *ngFor=\"let day of nextMonthDates()\"\n (click)=\"selectDay('RIGHT',day)\"\n (keydown)=\"handleDayKeydown($event, 'RIGHT', day)\"\n >\n <div [ngClass]=\"{ 'circular-dot': day.isHoliday || day.isNoShow,\n 'noShow': day.isNoShow }\" aria-hidden=\"true\"></div>\n <span *ngIf=\"day.date > 0\" [ngClass]=\"{ 'current-day': day.isCurrentDay && (currentMonthNumber() === todayMonthNumber()), 'holiday-text': day.isHoliday || day.isNoShow || day.isWeekOff }\">\n {{ day.date }}\n </span>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n <div class=\"weekOffs_holidays_container\" tabindex=\"0\" [attr.aria-label]=\"'Weekly offs: ' + (data().weekOffs?.length ? data().weekOffs.join(', ') : 'None') + '. Holidays marked with a dot on the calendar.'\">\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 @if(data().noShow?.length){\n <span>No-Show Enforcement Window<span class=\"circular-dot noShow\" [ngStyle]=\"{ display: 'inline-block', 'margin-left': '10px' }\"></span></span>\n }\n </div>\n <div class=\"daterangepicker__footer\">\n <span *ngIf=\"isSpecificPickerSelected()\">\n <span>{{localSelectedDates().length}}</span> day(s) selected\n </span>\n <span *ngIf=\"dateRangeSelected()\"><span>{{dateRangeLength() > 0 ? dateRangeLength() : 0 }} </span>day(s) selected</span>\n <div class=\"footer_action_btn\">\n <button #cancelBtn mis-button size=\"md\" type=\"none\" tabindex=\"0\" (click)=\"cancelDatePicker()\">Cancel</button>\n <button *ngIf=\"isSpecificPickerSelected()\" mis-button size=\"md\" type=\"primary\" tabindex=\"0\" (click)=\"applyDates()\" [disabled]=\"!isDatesValid()\">Apply</button>\n <button *ngIf=\"dateRangeSelected()\" #applyRangeBtn mis-button size=\"md\" type=\"primary\" tabindex=\"0\" (click)=\"applyDatesRange()\" [disabled]=\"!isDatesValid() || (dateRangeLength() === 0)\">Apply</button>\n </div>\n </div>\n </div>\n\n</div>\n\n<ng-template #arrowSvg>\n <svg width=\"20\" height=\"16\" viewBox=\"0 0 20 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\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</ng-template>\n\n\n", styles: [":root{--pmry-200: #99BAF7;--pmry-100: #CBDDFB;--pmry-500: #0937B2;--pmry-400: #3C68D0;--pmry-600: #062A99;--pmry-700: #041F80;--pmry-300: #638FE7;--pmry-800: #021567;--pmry-900: #010F55;--sec-d-purple: #40447F;--sec-maroon: #6B034E;--sec-mud-red: #B23600;--sec-orange: #ED711C;--sec-purple: #815FD5;--sec-teal: #10ADAE;--sec-yellow: #D4900C;--sec-green: #547F40;--sec-bright-green: #27D22E;--sec-dark-teal: #035F6B;--sec-chocolate: #7C2F33;--sec-rube-pink: #C13D6D;--sec-cerulean: #0087B2;--sem-error: #B00020;--sem-info: #0091FF;--sem-warning: #FF9D00;--sem-success: #38AF49;--grey-bg-1: #FAFAFA;--grey-bg: #F5F5F5;--grey-seperators: #E0E0E0;--grey-disabled: #C8CDD3;--grey-hover: #F5F7FC;--grey-pressed: #E6EBF7;--grey-row: #F5F7FC;--dec-light-yellow: #F4E7C3;--dec-light-purple: #DACFF9;--dec-light-green: #E4F5E9;--dec-light-green2: #F1FFF3;--dec-light-pink: #FAE1EA;--dec-: #F4CBC1;--dec-lt-orange: #FAEFED;--dec-light-blue: #CFECF9;--dec-row-selection: #F1FDF8;--dec-row-selection2: #F2FBFF;--dec-row-lines: #D3E1E9;--text-white: #FFFFFF;--text-muted: #6A737D;--text-black: #181F33;--MR-solid-blue2:#C8D5F6;--MR-solid-purple:#C9C3FB;--MR-solid-orange:#EEAC9F;--MR-solid-green:#ACDADA;--MR-solid-brown:#E8C8AF;--MR-solid-yellow:#FFEFC7;--MR-solid-blue:#BBE6FF;--MR-solid-pink:#FFC6F2;--tr-hover:#F0F3FA;--tr-pressed:#DAE1F3;--brand-primary: #0937B2;--brand-primary-light: #3C68D0;--brand-primary-dark: #062A99;--brand-primary-darker: #041F80;--brand-primary-lighter: #638FE7;--brand-primary-lightest: #CBDDFB;--brand-primary-hover: #F0F3FA;--brand-primary-active: #DAE1F3;--brand-secondary: #ED711C;--brand-secondary-light: #F09E65;--brand-secondary-dark: #B23600;--brand-secondary-lighter: #FFC6F2;--brand-accent: #10ADAE;--brand-accent-light: #16CBBC;--brand-accent-dark: #035F6B;--brand-accent-lighter: #ACDADA;--brand-success: #38AF49;--brand-success-light: #4CAF50;--brand-success-dark: #216531;--brand-success-lighter: #E4F5E9;--brand-success-lightest: #F1FFF3;--brand-error: #B00020;--brand-error-light: #F04E4E;--brand-error-dark: #A60060;--brand-error-lighter: #FAE1EA;--brand-error-lightest: #FDF2F2;--brand-warning: #FF9D00;--brand-warning-light: #D4900C;--brand-warning-dark: #624000;--brand-warning-lighter: #F4E7C3;--brand-warning-lightest: #FAEFED;--brand-info: #0091FF;--brand-info-light: #35A1FF;--brand-info-dark: #0087B2;--brand-info-lighter: #CFECF9;--text-primary: #181F33;--text-secondary: #6A737D;--text-tertiary: #929DAB;--text-disabled: #929DAB;--text-muted-secondary: #E5E5E5;--text-primary-87: rgba(24, 31, 51, .87);--text-primary-60: rgba(24, 31, 51, .6);--text-primary-38: rgba(24, 31, 51, .38);--text-primary-12: rgba(24, 31, 51, .12);--bg-primary: #FFFFFF;--bg-secondary: #FAFAFA;--bg-tertiary: #F5F5F5;--bg-overlay: rgba(0, 0, 0, .32);--bg-overlay-light: rgba(0, 0, 0, .12);--bg-overlay-lighter: rgba(0, 0, 0, .08);--bg-overlay-lightest: rgba(0, 0, 0, .04);--border-primary: #E0E0E0;--border-secondary: #D6DCE2;--border-tertiary: #C8CDD3;--border-light: #F1F4F8;--border-primary-12: rgba(0, 0, 0, .12);--border-primary-08: rgba(0, 0, 0, .08);--border-primary-06: rgba(0, 0, 0, .06);--shadow-primary: rgba(0, 0, 0, .12);--shadow-secondary: rgba(0, 0, 0, .08);--shadow-tertiary: rgba(0, 0, 0, .04);--shadow-light: rgba(0, 0, 0, .06);--status-available: #929DAB;--status-unavailable: #CCD3DA;--status-hotseat: #857BFF;--status-multiteam: #10ADAE;--status-selected: #10ADAE;--status-upcoming: #D4900C;--status-room: #38AF49;--status-room-booked: #B23600;--status-room-unavailable: #181F33;--team-color-1: #F8C52E;--team-color-2: #FA8E20;--team-color-3: #987CDD;--team-color-4: #16CBBC;--team-color-5: #E65010;--team-color-6: #A60060;--team-color-7: #ED323B;--team-color-8: #35A1FF;--team-color-9: #80D348}.daterangepicker-container{background:var(--bg-primary, #FFFFFF);border:1px solid var(--border-primary, #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;max-height:95vh;overflow-y:auto}.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(--border-primary, #E0E0E0);background:var(--bg-primary, #FFFFFF)}.daterangepicker-container .radio-container .label{display:flex;align-items:center;padding:0 16px}.daterangepicker-container .radio-container .label .input{margin-right:8px;width:20px;height:20px}.daterangepicker-container .radio-container .label:not(:last-child){border-right:1px solid var(--border-primary, #E0E0E0)}.daterangepicker-container.single-date-picker-enabled:not(.mobile-view){flex-direction:row}.daterangepicker-container.single-date-picker-enabled:not(.mobile-view) .radio-container{flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:16px;height:auto;padding:20px 16px;border-bottom:0;border-right:1px solid var(--border-primary, #E0E0E0);border-radius:12px 0 0 12px;flex-shrink:0}.daterangepicker-container.single-date-picker-enabled:not(.mobile-view) .radio-container .label{padding:0}.daterangepicker-container.single-date-picker-enabled:not(.mobile-view) .radio-container .label:not(:last-child){border-right:0}.daterangepicker-container .daterangepicker-container__view{display:flex;gap:24px;padding:16px;justify-content:center}.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:var(--brand-primary-lightest, #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:var(--text-secondary, #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:var(--text-primary, #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:var(--text-secondary, #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:var(--brand-primary-lightest, #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:var(--text-primary, #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:var(--brand-primary, #0937B2)}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day span.selected-day{color:var(--bg-primary, #FFFFFF)}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .daterangepicker-container__day span.disabled-day{color:var(--text-secondary, #6A737D)}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .selected-start-day{background-color:var(--brand-primary, #0937B2);border-radius:20px 4px 4px 20px}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .selected-start-day>span{color:var(--bg-primary, #FFFFFF)!important}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .selected-end-day{background-color:var(--brand-primary, #0937B2);border-radius:0 20px 20px 0}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .selected-end-day>span{color:var(--bg-primary, #FFFFFF)!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:var(--brand-primary-lightest, #CBDDFB)}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .selected-day{background-color:var(--brand-primary, #0937B2);border-radius:4px}.daterangepicker-container .daterangepicker-container__view .daterangepicker-container__body .daterangepicker-container__days .selected-day>span{color:var(--bg-primary, #FFFFFF)!important}.daterangepicker-container.mobile-view{width:min(100vw - 16px,300px);max-width:100vw}.daterangepicker-container.mobile-view .radio-container{height:auto;min-height:48px;flex-wrap:wrap;row-gap:4px;padding:8px 12px}.daterangepicker-container.mobile-view .radio-container .label{padding:0 8px}.daterangepicker-container.mobile-view .radio-container .label span{font-size:13px}.daterangepicker-container.mobile-view .daterangepicker-container__view{gap:0;padding:12px}.daterangepicker-container.mobile-view .daterangepicker-container__view .daterangepicker-container__header__prabu{padding-bottom:12px}.daterangepicker-container.mobile-view .weekOffs_holidays_container{padding:8px 12px 12px}.daterangepicker-container.mobile-view .daterangepicker__footer{flex-direction:column;align-items:stretch;gap:12px;padding:12px}.daterangepicker-container.mobile-view .daterangepicker__footer span{align-self:flex-start}.daterangepicker-container.mobile-view .daterangepicker__footer .footer_action_btn{gap:12px}.daterangepicker-container.mobile-view .daterangepicker__footer .footer_action_btn button{flex:1;width:auto;margin-left:0}.daterangepicker-container .weekOffs_holidays_container{font-size:12px;color:var(--text-secondary, #6A737D);padding:8px 24px 12px}.daterangepicker-container .weekOffs_holidays_container>span{margin-right:16px}.daterangepicker-container .weekOffs_holidays_container>span>span{color:var(--text-primary, #181F33)}.daterangepicker-container .daterangepicker__footer{display:flex;justify-content:space-between;border-top:1px solid var(--border-primary, #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;margin-left:auto}.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:var(--brand-warning, #FF9D00);border-radius:50%}.circular-dot.noShow{background-color:#8a2be2}.holiday-text{color:var(--text-secondary, #6A737D)!important}.display-none{display:none!important}\n"] }]
698
752
  }], () => [{ type: undefined, decorators: [{
699
753
  type: Inject,
700
754
  args: [CONTAINER_DATA]
701
- }] }, { type: i1.ToastService }, { type: i0.ElementRef }], { singleDatePickerElement: [{
702
- type: ViewChild,
703
- args: ['singleDatePickerElement', { static: true, read: TzDatepickerDirective }]
704
- }] }); })();
755
+ }] }, { type: i1.ToastService }, { type: i0.ElementRef }], null); })();
705
756
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TzDrpContainerComponent, { className: "TzDrpContainerComponent" }); })();
706
757
 
707
758
  class TzSpecificDatepickerDirective {
@@ -730,6 +781,7 @@ class TzSpecificDatepickerDirective {
730
781
  this.offsetY = input(0);
731
782
  this.isSPickerSelected = input(false);
732
783
  this.isSingleDatePickerEnable = input(false);
784
+ this.isMobileView = input(false);
733
785
  // Outputs are now defined using `output()`
734
786
  this.dateChange = output();
735
787
  this.dateChangeRange = output();
@@ -737,10 +789,35 @@ class TzSpecificDatepickerDirective {
737
789
  this.overlayRef = null;
738
790
  // Effect to handle the overlay position update reactively
739
791
  effect(() => {
740
- // Triggered by changes in any position-related input signals
741
- this.updateOverlayPosition();
792
+ const positions = this.buildPositions();
793
+ if (!this.overlayRef) {
794
+ return;
795
+ }
796
+ this.overlayRef.updatePositionStrategy(this.buildPositionStrategy(positions));
742
797
  });
743
798
  }
799
+ buildPositions() {
800
+ const x = this.positionX();
801
+ const y = this.positionY();
802
+ const offsetX = this.offsetX();
803
+ const offsetY = this.offsetY();
804
+ const oppositeY = y === "top" ? "bottom" : y === "bottom" ? "top" : "center";
805
+ const otherX = ["start", "center", "end"].filter(pos => pos !== x);
806
+ const pair = (originX, originY, overlayY) => new ConnectionPositionPair({ originX, originY }, { overlayX: originX, overlayY }, offsetX, offsetY);
807
+ return [
808
+ pair(x, y, oppositeY),
809
+ pair(x, oppositeY, y),
810
+ ...otherX.map(pos => pair(pos, y, oppositeY)),
811
+ ...otherX.map(pos => pair(pos, oppositeY, y))
812
+ ];
813
+ }
814
+ buildPositionStrategy(positions) {
815
+ return this.overlay
816
+ .position()
817
+ .flexibleConnectedTo(this.element)
818
+ .withPositions(positions)
819
+ .withPush(true);
820
+ }
744
821
  toggleDatePicker() {
745
822
  if (this.isOpen()) {
746
823
  this.close();
@@ -764,16 +841,7 @@ class TzSpecificDatepickerDirective {
764
841
  }
765
842
  open() {
766
843
  this.isOpen.set(true);
767
- const positionStrategy = this.overlay
768
- .position()
769
- .flexibleConnectedTo(this.element)
770
- .withPositions(genPositionPairs({
771
- positionX: this.positionX(),
772
- positionY: this.positionY(),
773
- offsetX: this.offsetX(),
774
- offsetY: this.offsetY(),
775
- }, true))
776
- .withPush(true);
844
+ const positionStrategy = this.buildPositionStrategy(this.buildPositions());
777
845
  const config = new OverlayConfig({
778
846
  hasBackdrop: true,
779
847
  positionStrategy,
@@ -799,6 +867,7 @@ class TzSpecificDatepickerDirective {
799
867
  noShow: this.noShows(),
800
868
  isSPickerSelected: this.isSPickerSelected(),
801
869
  isSingleDatePickerEnable: this.isSingleDatePickerEnable(),
870
+ isMobileView: this.isMobileView(),
802
871
  }
803
872
  }
804
873
  ]
@@ -811,21 +880,6 @@ class TzSpecificDatepickerDirective {
811
880
  this.close();
812
881
  });
813
882
  }
814
- updateOverlayPosition() {
815
- if (this.overlayRef) {
816
- const positionStrategy = this.overlay
817
- .position()
818
- .flexibleConnectedTo(this.element)
819
- .withPositions(genPositionPairs({
820
- positionX: this.positionX(),
821
- positionY: this.positionY(),
822
- offsetX: this.offsetX(),
823
- offsetY: this.offsetY(),
824
- }, true))
825
- .withPush(true);
826
- this.overlayRef.updatePositionStrategy(positionStrategy);
827
- }
828
- }
829
883
  applyDate(dates) {
830
884
  this.dateChange.emit(dates);
831
885
  this.control?.control.patchValue(dates);
@@ -851,7 +905,7 @@ class TzSpecificDatepickerDirective {
851
905
  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)); }; }
852
906
  static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TzSpecificDatepickerDirective, selectors: [["input", "misTzSdp", ""]], hostBindings: function TzSpecificDatepickerDirective_HostBindings(rf, ctx) { if (rf & 1) {
853
907
  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(); });
854
- } }, inputs: { dpConfig: [1, "dpConfig"], selectedDates: [1, "selectedDates"], selectedDatesRange: [1, "selectedDatesRange"], datesDisabled: [1, "datesDisabled"], holidaysDates: [1, "holidaysDates"], weekOffsSelection: [1, "weekOffsSelection"], noShows: [1, "noShows"], 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" } }); }
908
+ } }, inputs: { dpConfig: [1, "dpConfig"], selectedDates: [1, "selectedDates"], selectedDatesRange: [1, "selectedDatesRange"], datesDisabled: [1, "datesDisabled"], holidaysDates: [1, "holidaysDates"], weekOffsSelection: [1, "weekOffsSelection"], noShows: [1, "noShows"], dateMessages: [1, "dateMessages"], positionX: [1, "positionX"], positionY: [1, "positionY"], offsetX: [1, "offsetX"], offsetY: [1, "offsetY"], isSPickerSelected: [1, "isSPickerSelected"], isSingleDatePickerEnable: [1, "isSingleDatePickerEnable"], isMobileView: [1, "isMobileView"] }, outputs: { dateChange: "dateChange", dateChangeRange: "dateChangeRange" } }); }
855
909
  }
856
910
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TzSpecificDatepickerDirective, [{
857
911
  type: Directive,
@@ -874,17 +928,17 @@ class TzSpecificDatepickerDirective {
874
928
  class SpecificDatepickerModule {
875
929
  static { this.ɵfac = function SpecificDatepickerModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SpecificDatepickerModule)(); }; }
876
930
  static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: SpecificDatepickerModule }); }
877
- static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule, OverlayModule, ToastModule.forRoot(), ButtonModule.forRoot(), RadioButtonModule, DatepickerModuleV2, A11yModule] }); }
931
+ static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule, OverlayModule, ToastModule.forRoot(), ButtonModule.forRoot(), RadioButtonModule, A11yModule] }); }
878
932
  }
879
933
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SpecificDatepickerModule, [{
880
934
  type: NgModule,
881
935
  args: [{
882
936
  declarations: [TzDrpContainerComponent, TzSpecificDatepickerDirective],
883
- imports: [CommonModule, OverlayModule, ToastModule.forRoot(), ButtonModule.forRoot(), RadioButtonModule, DatepickerModuleV2, A11yModule],
937
+ imports: [CommonModule, OverlayModule, ToastModule.forRoot(), ButtonModule.forRoot(), RadioButtonModule, A11yModule],
884
938
  exports: [TzDrpContainerComponent, TzSpecificDatepickerDirective]
885
939
  }]
886
940
  }], null, null); })();
887
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(SpecificDatepickerModule, { declarations: [TzDrpContainerComponent, TzSpecificDatepickerDirective], imports: [CommonModule, OverlayModule, i1.ToastModule, i3.ButtonModule, RadioButtonModule, DatepickerModuleV2, A11yModule], exports: [TzDrpContainerComponent, TzSpecificDatepickerDirective] }); })();
941
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(SpecificDatepickerModule, { declarations: [TzDrpContainerComponent, TzSpecificDatepickerDirective], imports: [CommonModule, OverlayModule, i1.ToastModule, i3.ButtonModule, RadioButtonModule, A11yModule], exports: [TzDrpContainerComponent, TzSpecificDatepickerDirective] }); })();
888
942
 
889
943
  /**
890
944
  * Generated bundle index. Do not edit.