igniteui-angular 14.2.36 → 14.2.37
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.
|
@@ -39824,16 +39824,16 @@ class IgxDatePickerComponent extends PickerBaseDirective {
|
|
|
39824
39824
|
}
|
|
39825
39825
|
setCalendarViewDate() {
|
|
39826
39826
|
const { minValue, maxValue } = this.getMinMaxDates();
|
|
39827
|
-
this.
|
|
39828
|
-
if (minValue && DateTimeUtil.lessThanMinValue(
|
|
39827
|
+
const dateValue = DateTimeUtil.isValidDate(this.dateValue) ? this.dateValue : new Date();
|
|
39828
|
+
if (minValue && DateTimeUtil.lessThanMinValue(dateValue, minValue)) {
|
|
39829
39829
|
this._calendar.viewDate = this._targetViewDate = minValue;
|
|
39830
39830
|
return;
|
|
39831
39831
|
}
|
|
39832
|
-
if (maxValue && DateTimeUtil.greaterThanMaxValue(
|
|
39832
|
+
if (maxValue && DateTimeUtil.greaterThanMaxValue(dateValue, maxValue)) {
|
|
39833
39833
|
this._calendar.viewDate = this._targetViewDate = maxValue;
|
|
39834
39834
|
return;
|
|
39835
39835
|
}
|
|
39836
|
-
this._calendar.viewDate = this._targetViewDate =
|
|
39836
|
+
this._calendar.viewDate = this._targetViewDate = dateValue;
|
|
39837
39837
|
}
|
|
39838
39838
|
}
|
|
39839
39839
|
IgxDatePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: IgxDatePickerComponent, deps: [{ token: i0.ElementRef }, { token: LOCALE_ID }, { token: IgxOverlayService }, { token: i0.NgModuleRef }, { token: i0.Injector }, { token: i0.Renderer2 }, { token: PlatformUtil }, { token: i0.ChangeDetectorRef }, { token: DisplayDensityToken, optional: true }, { token: IGX_INPUT_GROUP_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|