@everymatrix/stage-dm-range-date-picker 1.0.23 → 1.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/component-lib.js +9 -14
- package/main.js +9 -14
- package/main.js.map +1 -1
- package/package-stage.json +1 -1
- package/package.json +1 -1
package/component-lib.js
CHANGED
|
@@ -67098,7 +67098,7 @@ function DmRangeDatePickerLibComponent_For_20_Template(rf, ctx) {
|
|
|
67098
67098
|
}
|
|
67099
67099
|
var endDateRequired = (control) => {
|
|
67100
67100
|
const dates = control.value;
|
|
67101
|
-
if (dates && dates.length && !dates[1]) {
|
|
67101
|
+
if (Array.isArray(dates) && dates.length && !dates[1] || dates && typeof dates === "object" && "end" in dates && dates.start && !dates.end) {
|
|
67102
67102
|
return { endDateRequired: true };
|
|
67103
67103
|
}
|
|
67104
67104
|
return null;
|
|
@@ -67276,6 +67276,7 @@ var DmRangeDatePickerLibComponent = class _DmRangeDatePickerLibComponent {
|
|
|
67276
67276
|
this.dateControl.valueChanges.subscribe((dates) => {
|
|
67277
67277
|
if (this.manualDateChange) {
|
|
67278
67278
|
this.currentAlias = TimePeriod.Custom;
|
|
67279
|
+
this.manualDateChange = false;
|
|
67279
67280
|
}
|
|
67280
67281
|
const rangeValue = {
|
|
67281
67282
|
alias: this.currentAlias ?? "custom",
|
|
@@ -67473,7 +67474,7 @@ var DmRangeDatePickerLibComponent = class _DmRangeDatePickerLibComponent {
|
|
|
67473
67474
|
useExisting: forwardRef(() => _DmRangeDatePickerLibComponent),
|
|
67474
67475
|
multi: true
|
|
67475
67476
|
}
|
|
67476
|
-
]), \u0275\u0275InputTransformsFeature, \u0275\u0275NgOnChangesFeature], decls: 23, vars:
|
|
67477
|
+
]), \u0275\u0275InputTransformsFeature, \u0275\u0275NgOnChangesFeature], decls: 23, vars: 22, consts: [["tooltipWrapper", ""], ["datePickerWrapper", ""], ["op", ""], [1, "form-control-container", 3, "ngStyle"], ["for", "inputRangePicker", 1, "form-control-label"], ["positionLeft", "53", "positionTop", "-5", "tooltipPosition", "top", 3, "ngStyle", "pTooltip", "appendTo"], [1, "datepicker-wrapper"], ["id", "inputRangePicker", "pInputText", "", 1, "form-control-field", 3, "ngModelChange", "click", "ngClass", "placeholder", "ngModel", "readonly"], ["width", "14", "height", "14", "viewBox", "0 0 14 14", "fill", "none", "xmlns", "http://www.w3.org/2000/svg", "aria-hidden", "true", 1, "datepicker-icon"], ["d", "M10.7838 1.51351H9.83783V0.567568C9.83783 0.417039 9.77804 0.272676 9.6716 0.166237C9.56516 0.0597971 9.42079 0 9.27027 0C9.11974 0 8.97538 0.0597971 8.86894 0.166237C8.7625 0.272676 8.7027 0.417039 8.7027 0.567568V1.51351H5.29729V0.567568C5.29729 0.417039 5.2375 0.272676 5.13106 0.166237C5.02462 0.0597971 4.88025 0 4.72973 0C4.5792 0 4.43484 0.0597971 4.3284 0.166237C4.22196 0.272676 4.16216 0.417039 4.16216 0.567568V1.51351H3.21621C2.66428 1.51351 2.13494 1.73277 1.74467 2.12305C1.35439 2.51333 1.13513 3.04266 1.13513 3.59459V11.9189C1.13513 12.4709 1.35439 13.0002 1.74467 13.3905C2.13494 13.7807 2.66428 14 3.21621 14H10.7838C11.3357 14 11.865 13.7807 12.2553 13.3905C12.6456 13.0002 12.8649 12.4709 12.8649 11.9189V3.59459C12.8649 3.04266 12.6456 2.51333 12.2553 2.12305C11.865 1.73277 11.3357 1.51351 10.7838 1.51351ZM3.21621 2.64865H4.16216V3.59459C4.16216 3.74512 4.22196 3.88949 4.3284 3.99593C4.43484 4.10237 4.5792 4.16216 4.72973 4.16216C4.88025 4.16216 5.02462 4.10237 5.13106 3.99593C5.2375 3.88949 5.29729 3.74512 5.29729 3.59459V2.64865H8.7027V3.59459C8.7027 3.74512 8.7625 3.88949 8.86894 3.99593C8.97538 4.10237 9.11974 4.16216 9.27027 4.16216C9.42079 4.16216 9.56516 4.10237 9.6716 3.99593C9.77804 3.88949 9.83783 3.74512 9.83783 3.59459V2.64865H10.7838C11.0347 2.64865 11.2753 2.74831 11.4527 2.92571C11.6301 3.10311 11.7297 3.34371 11.7297 3.59459V5.67568H2.27027V3.59459C2.27027 3.34371 2.36993 3.10311 2.54733 2.92571C2.72473 2.74831 2.96533 2.64865 3.21621 2.64865ZM10.7838 12.8649H3.21621C2.96533 12.8649 2.72473 12.7652 2.54733 12.5878C2.36993 12.4104 2.27027 12.1698 2.27027 11.9189V6.81081H11.7297V11.9189C11.7297 12.1698 11.6301 12.4104 11.4527 12.5878C11.2753 12.7652 11.0347 12.8649 10.7838 12.8649Z", "fill", "currentColor"], ["width", "14", "height", "14", "viewBox", "0 0 14 14", "fill", "none", "xmlns", "http://www.w3.org/2000/svg", "aria-hidden", "true", 1, "clear-icon"], [1, "form-control-error-message"], [2, "position", "relative"], [3, "onShow", "onHide", "appendTo", "dismissable"], [1, "popover-content"], [1, "popover-left-content"], [1, "period-list"], [3, "ngClass"], [1, "popover-right-content"], ["selectionMode", "range", 3, "onSelect", "firstDayOfWeek", "formControl", "inline", "minDate", "maxDate", "showTime", "required"], ["xmlns", "http://www.w3.org/2000/svg", "width", "12", "height", "12", "viewBox", "0 0 12 12", "fill", "none"], ["clip-path", "url(#clip0_592_3470)"], ["fill-rule", "evenodd", "clip-rule", "evenodd", "d", "M6 1.5C3.51472 1.5 1.5 3.51472 1.5 6C1.5 8.48528 3.51472 10.5 6 10.5C8.48528 10.5 10.5 8.48528 10.5 6C10.5 3.51472 8.48528 1.5 6 1.5ZM0.5 6C0.5 2.96243 2.96243 0.5 6 0.5C9.03757 0.5 11.5 2.96243 11.5 6C11.5 9.03757 9.03757 11.5 6 11.5C2.96243 11.5 0.5 9.03757 0.5 6ZM6.12906 4.01216C5.8963 3.97223 5.65692 4.01597 5.45332 4.13563C5.24972 4.25529 5.09504 4.44314 5.01667 4.66592C4.92503 4.92642 4.63957 5.0633 4.37908 4.97167C4.11858 4.88003 3.9817 4.59457 4.07333 4.33408C4.23007 3.88852 4.53943 3.51282 4.94664 3.2735C5.35384 3.03418 5.8326 2.9467 6.29812 3.02655C6.76364 3.1064 7.18588 3.34843 7.49005 3.70976C7.79416 4.07103 7.96064 4.52824 7.96 5.00046C7.95977 5.76563 7.39247 6.27095 6.98735 6.54103C6.76953 6.68624 6.55528 6.79301 6.39744 6.86316C6.31782 6.89855 6.25077 6.9254 6.20245 6.94381C6.17825 6.95303 6.15863 6.96017 6.14435 6.96525L6.12699 6.97133L6.12145 6.97322L6.11951 6.97388L6.11874 6.97413C6.11859 6.97418 6.11811 6.97434 5.96 6.5L6.11811 6.97434C5.85614 7.06167 5.57298 6.92009 5.48566 6.65811C5.39836 6.39623 5.53982 6.11317 5.80162 6.02575L5.80934 6.02303C5.81703 6.0203 5.82964 6.01572 5.84646 6.00932C5.88017 5.99647 5.93031 5.97645 5.99131 5.94934C6.11472 5.89449 6.27547 5.81376 6.43265 5.70897C6.77745 5.47911 6.96 5.23457 6.96 5L6.96 4.99926C6.96035 4.7631 6.87711 4.53443 6.72503 4.35376C6.57294 4.1731 6.36182 4.05208 6.12906 4.01216ZM5.5 8.5C5.5 8.22386 5.72386 8 6 8H6.005C6.28114 8 6.505 8.22386 6.505 8.5C6.505 8.77614 6.28114 9 6.005 9H6C5.72386 9 5.5 8.77614 5.5 8.5Z", "fill", "#5D6983"], ["id", "clip0_592_3470"], ["width", "12", "height", "12", "fill", "white"], ["width", "14", "height", "14", "viewBox", "0 0 14 14", "fill", "none", "xmlns", "http://www.w3.org/2000/svg", "aria-hidden", "true", 1, "clear-icon", 3, "click"], ["d", "M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z", "fill", "#5D6983"], [3, "click", "ngClass"]], template: function DmRangeDatePickerLibComponent_Template(rf, ctx) {
|
|
67477
67478
|
if (rf & 1) {
|
|
67478
67479
|
const _r1 = \u0275\u0275getCurrentView();
|
|
67479
67480
|
\u0275\u0275elementStart(0, "div", 3)(1, "label", 4, 0)(3, "span");
|
|
@@ -67522,13 +67523,13 @@ var DmRangeDatePickerLibComponent = class _DmRangeDatePickerLibComponent {
|
|
|
67522
67523
|
}
|
|
67523
67524
|
if (rf & 2) {
|
|
67524
67525
|
const datePickerWrapper_r8 = \u0275\u0275reference(13);
|
|
67525
|
-
\u0275\u0275property("ngStyle", \u0275\u0275pureFunction1(
|
|
67526
|
+
\u0275\u0275property("ngStyle", \u0275\u0275pureFunction1(18, _c113, !ctx.attachedToShadowDom() ? "hidden" : "visible"));
|
|
67526
67527
|
\u0275\u0275advance(4);
|
|
67527
67528
|
\u0275\u0275textInterpolate(ctx.isRequired ? ctx.label + " *" : ctx.label);
|
|
67528
67529
|
\u0275\u0275advance();
|
|
67529
67530
|
\u0275\u0275conditional(ctx.infoIcon ? 5 : -1);
|
|
67530
67531
|
\u0275\u0275advance(2);
|
|
67531
|
-
\u0275\u0275property("ngClass", \u0275\u0275pureFunction1(
|
|
67532
|
+
\u0275\u0275property("ngClass", \u0275\u0275pureFunction1(20, _c28, (ctx.dateControl.hasError("endDateRequired") || ctx.dateControl.hasError("required")) && !ctx.popoverOpened))("placeholder", ctx.placeholder);
|
|
67532
67533
|
\u0275\u0275twoWayProperty("ngModel", ctx.inputValue);
|
|
67533
67534
|
\u0275\u0275property("readonly", true);
|
|
67534
67535
|
\u0275\u0275advance(3);
|
|
@@ -67540,7 +67541,7 @@ var DmRangeDatePickerLibComponent = class _DmRangeDatePickerLibComponent {
|
|
|
67540
67541
|
\u0275\u0275advance(5);
|
|
67541
67542
|
\u0275\u0275repeater(ctx.listOptions);
|
|
67542
67543
|
\u0275\u0275advance(3);
|
|
67543
|
-
\u0275\u0275property("firstDayOfWeek", 1)("formControl", ctx.dateControl)("inline", true)("minDate", ctx.minDate)("maxDate", ctx.maxDate)("showTime", ctx.showTimePicker);
|
|
67544
|
+
\u0275\u0275property("firstDayOfWeek", 1)("formControl", ctx.dateControl)("inline", true)("minDate", ctx.minDate)("maxDate", ctx.maxDate)("showTime", ctx.showTimePicker)("required", ctx.isRequired);
|
|
67544
67545
|
}
|
|
67545
67546
|
}, dependencies: [
|
|
67546
67547
|
CalendarModule,
|
|
@@ -67549,6 +67550,7 @@ var DmRangeDatePickerLibComponent = class _DmRangeDatePickerLibComponent {
|
|
|
67549
67550
|
ReactiveFormsModule,
|
|
67550
67551
|
DefaultValueAccessor,
|
|
67551
67552
|
NgControlStatus,
|
|
67553
|
+
RequiredValidator,
|
|
67552
67554
|
FormControlDirective,
|
|
67553
67555
|
PopoverModule,
|
|
67554
67556
|
Popover,
|
|
@@ -67629,7 +67631,7 @@ var DmRangeDatePickerLibComponent = class _DmRangeDatePickerLibComponent {
|
|
|
67629
67631
|
id="inputRangePicker"
|
|
67630
67632
|
[ngClass]="{
|
|
67631
67633
|
'invalid-state':
|
|
67632
|
-
dateControl.hasError('endDateRequired') && !popoverOpened
|
|
67634
|
+
(dateControl.hasError('endDateRequired') || dateControl.hasError('required')) && !popoverOpened
|
|
67633
67635
|
}"
|
|
67634
67636
|
[placeholder]="placeholder"
|
|
67635
67637
|
[(ngModel)]="inputValue"
|
|
@@ -67685,14 +67687,6 @@ var DmRangeDatePickerLibComponent = class _DmRangeDatePickerLibComponent {
|
|
|
67685
67687
|
<div class="popover-left-content">
|
|
67686
67688
|
<ul class="period-list">
|
|
67687
67689
|
@for (item of listOptions; track item.key) {
|
|
67688
|
-
<!-- <li-->
|
|
67689
|
-
<!-- [ngClass]="{-->
|
|
67690
|
-
<!-- 'selected-item': currentAlias === item.key-->
|
|
67691
|
-
<!-- }"-->
|
|
67692
|
-
<!-- (click)="onListSelect(item.key)"-->
|
|
67693
|
-
<!-- >-->
|
|
67694
|
-
<!-- <span>{{ item.value }}</span>-->
|
|
67695
|
-
<!-- </li>-->
|
|
67696
67690
|
<li
|
|
67697
67691
|
[ngClass]="{
|
|
67698
67692
|
'selected-item':
|
|
@@ -67715,6 +67709,7 @@ var DmRangeDatePickerLibComponent = class _DmRangeDatePickerLibComponent {
|
|
|
67715
67709
|
[maxDate]="$any(maxDate)"
|
|
67716
67710
|
[showTime]="showTimePicker"
|
|
67717
67711
|
(onSelect)="dateSelection()"
|
|
67712
|
+
[required]="isRequired"
|
|
67718
67713
|
></p-datepicker>
|
|
67719
67714
|
</div>
|
|
67720
67715
|
</div>
|
package/main.js
CHANGED
|
@@ -64714,7 +64714,7 @@ function DmRangeDatePickerLibComponent_For_20_Template(rf, ctx) {
|
|
|
64714
64714
|
}
|
|
64715
64715
|
var endDateRequired = (control) => {
|
|
64716
64716
|
const dates = control.value;
|
|
64717
|
-
if (dates && dates.length && !dates[1]) {
|
|
64717
|
+
if (Array.isArray(dates) && dates.length && !dates[1] || dates && typeof dates === "object" && "end" in dates && dates.start && !dates.end) {
|
|
64718
64718
|
return { endDateRequired: true };
|
|
64719
64719
|
}
|
|
64720
64720
|
return null;
|
|
@@ -64892,6 +64892,7 @@ var DmRangeDatePickerLibComponent = class _DmRangeDatePickerLibComponent {
|
|
|
64892
64892
|
this.dateControl.valueChanges.subscribe((dates) => {
|
|
64893
64893
|
if (this.manualDateChange) {
|
|
64894
64894
|
this.currentAlias = TimePeriod.Custom;
|
|
64895
|
+
this.manualDateChange = false;
|
|
64895
64896
|
}
|
|
64896
64897
|
const rangeValue = {
|
|
64897
64898
|
alias: this.currentAlias ?? "custom",
|
|
@@ -65089,7 +65090,7 @@ var DmRangeDatePickerLibComponent = class _DmRangeDatePickerLibComponent {
|
|
|
65089
65090
|
useExisting: forwardRef(() => _DmRangeDatePickerLibComponent),
|
|
65090
65091
|
multi: true
|
|
65091
65092
|
}
|
|
65092
|
-
]), \u0275\u0275InputTransformsFeature, \u0275\u0275NgOnChangesFeature], decls: 23, vars:
|
|
65093
|
+
]), \u0275\u0275InputTransformsFeature, \u0275\u0275NgOnChangesFeature], decls: 23, vars: 22, consts: [["tooltipWrapper", ""], ["datePickerWrapper", ""], ["op", ""], [1, "form-control-container", 3, "ngStyle"], ["for", "inputRangePicker", 1, "form-control-label"], ["positionLeft", "53", "positionTop", "-5", "tooltipPosition", "top", 3, "ngStyle", "pTooltip", "appendTo"], [1, "datepicker-wrapper"], ["id", "inputRangePicker", "pInputText", "", 1, "form-control-field", 3, "ngModelChange", "click", "ngClass", "placeholder", "ngModel", "readonly"], ["width", "14", "height", "14", "viewBox", "0 0 14 14", "fill", "none", "xmlns", "http://www.w3.org/2000/svg", "aria-hidden", "true", 1, "datepicker-icon"], ["d", "M10.7838 1.51351H9.83783V0.567568C9.83783 0.417039 9.77804 0.272676 9.6716 0.166237C9.56516 0.0597971 9.42079 0 9.27027 0C9.11974 0 8.97538 0.0597971 8.86894 0.166237C8.7625 0.272676 8.7027 0.417039 8.7027 0.567568V1.51351H5.29729V0.567568C5.29729 0.417039 5.2375 0.272676 5.13106 0.166237C5.02462 0.0597971 4.88025 0 4.72973 0C4.5792 0 4.43484 0.0597971 4.3284 0.166237C4.22196 0.272676 4.16216 0.417039 4.16216 0.567568V1.51351H3.21621C2.66428 1.51351 2.13494 1.73277 1.74467 2.12305C1.35439 2.51333 1.13513 3.04266 1.13513 3.59459V11.9189C1.13513 12.4709 1.35439 13.0002 1.74467 13.3905C2.13494 13.7807 2.66428 14 3.21621 14H10.7838C11.3357 14 11.865 13.7807 12.2553 13.3905C12.6456 13.0002 12.8649 12.4709 12.8649 11.9189V3.59459C12.8649 3.04266 12.6456 2.51333 12.2553 2.12305C11.865 1.73277 11.3357 1.51351 10.7838 1.51351ZM3.21621 2.64865H4.16216V3.59459C4.16216 3.74512 4.22196 3.88949 4.3284 3.99593C4.43484 4.10237 4.5792 4.16216 4.72973 4.16216C4.88025 4.16216 5.02462 4.10237 5.13106 3.99593C5.2375 3.88949 5.29729 3.74512 5.29729 3.59459V2.64865H8.7027V3.59459C8.7027 3.74512 8.7625 3.88949 8.86894 3.99593C8.97538 4.10237 9.11974 4.16216 9.27027 4.16216C9.42079 4.16216 9.56516 4.10237 9.6716 3.99593C9.77804 3.88949 9.83783 3.74512 9.83783 3.59459V2.64865H10.7838C11.0347 2.64865 11.2753 2.74831 11.4527 2.92571C11.6301 3.10311 11.7297 3.34371 11.7297 3.59459V5.67568H2.27027V3.59459C2.27027 3.34371 2.36993 3.10311 2.54733 2.92571C2.72473 2.74831 2.96533 2.64865 3.21621 2.64865ZM10.7838 12.8649H3.21621C2.96533 12.8649 2.72473 12.7652 2.54733 12.5878C2.36993 12.4104 2.27027 12.1698 2.27027 11.9189V6.81081H11.7297V11.9189C11.7297 12.1698 11.6301 12.4104 11.4527 12.5878C11.2753 12.7652 11.0347 12.8649 10.7838 12.8649Z", "fill", "currentColor"], ["width", "14", "height", "14", "viewBox", "0 0 14 14", "fill", "none", "xmlns", "http://www.w3.org/2000/svg", "aria-hidden", "true", 1, "clear-icon"], [1, "form-control-error-message"], [2, "position", "relative"], [3, "onShow", "onHide", "appendTo", "dismissable"], [1, "popover-content"], [1, "popover-left-content"], [1, "period-list"], [3, "ngClass"], [1, "popover-right-content"], ["selectionMode", "range", 3, "onSelect", "firstDayOfWeek", "formControl", "inline", "minDate", "maxDate", "showTime", "required"], ["xmlns", "http://www.w3.org/2000/svg", "width", "12", "height", "12", "viewBox", "0 0 12 12", "fill", "none"], ["clip-path", "url(#clip0_592_3470)"], ["fill-rule", "evenodd", "clip-rule", "evenodd", "d", "M6 1.5C3.51472 1.5 1.5 3.51472 1.5 6C1.5 8.48528 3.51472 10.5 6 10.5C8.48528 10.5 10.5 8.48528 10.5 6C10.5 3.51472 8.48528 1.5 6 1.5ZM0.5 6C0.5 2.96243 2.96243 0.5 6 0.5C9.03757 0.5 11.5 2.96243 11.5 6C11.5 9.03757 9.03757 11.5 6 11.5C2.96243 11.5 0.5 9.03757 0.5 6ZM6.12906 4.01216C5.8963 3.97223 5.65692 4.01597 5.45332 4.13563C5.24972 4.25529 5.09504 4.44314 5.01667 4.66592C4.92503 4.92642 4.63957 5.0633 4.37908 4.97167C4.11858 4.88003 3.9817 4.59457 4.07333 4.33408C4.23007 3.88852 4.53943 3.51282 4.94664 3.2735C5.35384 3.03418 5.8326 2.9467 6.29812 3.02655C6.76364 3.1064 7.18588 3.34843 7.49005 3.70976C7.79416 4.07103 7.96064 4.52824 7.96 5.00046C7.95977 5.76563 7.39247 6.27095 6.98735 6.54103C6.76953 6.68624 6.55528 6.79301 6.39744 6.86316C6.31782 6.89855 6.25077 6.9254 6.20245 6.94381C6.17825 6.95303 6.15863 6.96017 6.14435 6.96525L6.12699 6.97133L6.12145 6.97322L6.11951 6.97388L6.11874 6.97413C6.11859 6.97418 6.11811 6.97434 5.96 6.5L6.11811 6.97434C5.85614 7.06167 5.57298 6.92009 5.48566 6.65811C5.39836 6.39623 5.53982 6.11317 5.80162 6.02575L5.80934 6.02303C5.81703 6.0203 5.82964 6.01572 5.84646 6.00932C5.88017 5.99647 5.93031 5.97645 5.99131 5.94934C6.11472 5.89449 6.27547 5.81376 6.43265 5.70897C6.77745 5.47911 6.96 5.23457 6.96 5L6.96 4.99926C6.96035 4.7631 6.87711 4.53443 6.72503 4.35376C6.57294 4.1731 6.36182 4.05208 6.12906 4.01216ZM5.5 8.5C5.5 8.22386 5.72386 8 6 8H6.005C6.28114 8 6.505 8.22386 6.505 8.5C6.505 8.77614 6.28114 9 6.005 9H6C5.72386 9 5.5 8.77614 5.5 8.5Z", "fill", "#5D6983"], ["id", "clip0_592_3470"], ["width", "12", "height", "12", "fill", "white"], ["width", "14", "height", "14", "viewBox", "0 0 14 14", "fill", "none", "xmlns", "http://www.w3.org/2000/svg", "aria-hidden", "true", 1, "clear-icon", 3, "click"], ["d", "M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z", "fill", "#5D6983"], [3, "click", "ngClass"]], template: function DmRangeDatePickerLibComponent_Template(rf, ctx) {
|
|
65093
65094
|
if (rf & 1) {
|
|
65094
65095
|
const _r1 = \u0275\u0275getCurrentView();
|
|
65095
65096
|
\u0275\u0275elementStart(0, "div", 3)(1, "label", 4, 0)(3, "span");
|
|
@@ -65138,13 +65139,13 @@ var DmRangeDatePickerLibComponent = class _DmRangeDatePickerLibComponent {
|
|
|
65138
65139
|
}
|
|
65139
65140
|
if (rf & 2) {
|
|
65140
65141
|
const datePickerWrapper_r8 = \u0275\u0275reference(13);
|
|
65141
|
-
\u0275\u0275property("ngStyle", \u0275\u0275pureFunction1(
|
|
65142
|
+
\u0275\u0275property("ngStyle", \u0275\u0275pureFunction1(18, _c113, !ctx.attachedToShadowDom() ? "hidden" : "visible"));
|
|
65142
65143
|
\u0275\u0275advance(4);
|
|
65143
65144
|
\u0275\u0275textInterpolate(ctx.isRequired ? ctx.label + " *" : ctx.label);
|
|
65144
65145
|
\u0275\u0275advance();
|
|
65145
65146
|
\u0275\u0275conditional(ctx.infoIcon ? 5 : -1);
|
|
65146
65147
|
\u0275\u0275advance(2);
|
|
65147
|
-
\u0275\u0275property("ngClass", \u0275\u0275pureFunction1(
|
|
65148
|
+
\u0275\u0275property("ngClass", \u0275\u0275pureFunction1(20, _c28, (ctx.dateControl.hasError("endDateRequired") || ctx.dateControl.hasError("required")) && !ctx.popoverOpened))("placeholder", ctx.placeholder);
|
|
65148
65149
|
\u0275\u0275twoWayProperty("ngModel", ctx.inputValue);
|
|
65149
65150
|
\u0275\u0275property("readonly", true);
|
|
65150
65151
|
\u0275\u0275advance(3);
|
|
@@ -65156,7 +65157,7 @@ var DmRangeDatePickerLibComponent = class _DmRangeDatePickerLibComponent {
|
|
|
65156
65157
|
\u0275\u0275advance(5);
|
|
65157
65158
|
\u0275\u0275repeater(ctx.listOptions);
|
|
65158
65159
|
\u0275\u0275advance(3);
|
|
65159
|
-
\u0275\u0275property("firstDayOfWeek", 1)("formControl", ctx.dateControl)("inline", true)("minDate", ctx.minDate)("maxDate", ctx.maxDate)("showTime", ctx.showTimePicker);
|
|
65160
|
+
\u0275\u0275property("firstDayOfWeek", 1)("formControl", ctx.dateControl)("inline", true)("minDate", ctx.minDate)("maxDate", ctx.maxDate)("showTime", ctx.showTimePicker)("required", ctx.isRequired);
|
|
65160
65161
|
}
|
|
65161
65162
|
}, dependencies: [
|
|
65162
65163
|
CalendarModule,
|
|
@@ -65165,6 +65166,7 @@ var DmRangeDatePickerLibComponent = class _DmRangeDatePickerLibComponent {
|
|
|
65165
65166
|
ReactiveFormsModule,
|
|
65166
65167
|
DefaultValueAccessor,
|
|
65167
65168
|
NgControlStatus,
|
|
65169
|
+
RequiredValidator,
|
|
65168
65170
|
FormControlDirective,
|
|
65169
65171
|
PopoverModule,
|
|
65170
65172
|
Popover,
|
|
@@ -65245,7 +65247,7 @@ var DmRangeDatePickerLibComponent = class _DmRangeDatePickerLibComponent {
|
|
|
65245
65247
|
id="inputRangePicker"
|
|
65246
65248
|
[ngClass]="{
|
|
65247
65249
|
'invalid-state':
|
|
65248
|
-
dateControl.hasError('endDateRequired') && !popoverOpened
|
|
65250
|
+
(dateControl.hasError('endDateRequired') || dateControl.hasError('required')) && !popoverOpened
|
|
65249
65251
|
}"
|
|
65250
65252
|
[placeholder]="placeholder"
|
|
65251
65253
|
[(ngModel)]="inputValue"
|
|
@@ -65301,14 +65303,6 @@ var DmRangeDatePickerLibComponent = class _DmRangeDatePickerLibComponent {
|
|
|
65301
65303
|
<div class="popover-left-content">
|
|
65302
65304
|
<ul class="period-list">
|
|
65303
65305
|
@for (item of listOptions; track item.key) {
|
|
65304
|
-
<!-- <li-->
|
|
65305
|
-
<!-- [ngClass]="{-->
|
|
65306
|
-
<!-- 'selected-item': currentAlias === item.key-->
|
|
65307
|
-
<!-- }"-->
|
|
65308
|
-
<!-- (click)="onListSelect(item.key)"-->
|
|
65309
|
-
<!-- >-->
|
|
65310
|
-
<!-- <span>{{ item.value }}</span>-->
|
|
65311
|
-
<!-- </li>-->
|
|
65312
65306
|
<li
|
|
65313
65307
|
[ngClass]="{
|
|
65314
65308
|
'selected-item':
|
|
@@ -65331,6 +65325,7 @@ var DmRangeDatePickerLibComponent = class _DmRangeDatePickerLibComponent {
|
|
|
65331
65325
|
[maxDate]="$any(maxDate)"
|
|
65332
65326
|
[showTime]="showTimePicker"
|
|
65333
65327
|
(onSelect)="dateSelection()"
|
|
65328
|
+
[required]="isRequired"
|
|
65334
65329
|
></p-datepicker>
|
|
65335
65330
|
</div>
|
|
65336
65331
|
</div>
|