@acorex/components 20.2.0-next.1 → 20.2.0-next.2
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/datetime-box/index.d.ts +1 -0
- package/fesm2022/acorex-components-calendar.mjs +16 -1
- package/fesm2022/acorex-components-calendar.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-box.mjs +15 -2
- package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
- package/fesm2022/acorex-components-popover.mjs +30 -1
- package/fesm2022/acorex-components-popover.mjs.map +1 -1
- package/fesm2022/acorex-components-popup.mjs +2 -2
- package/fesm2022/acorex-components-popup.mjs.map +1 -1
- package/fesm2022/acorex-components-scheduler.mjs +44 -18
- package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
- package/fesm2022/acorex-components-select-box.mjs +4 -3
- package/fesm2022/acorex-components-select-box.mjs.map +1 -1
- package/fesm2022/acorex-components-time-duration.mjs +1 -1
- package/fesm2022/acorex-components-time-duration.mjs.map +1 -1
- package/package.json +5 -5
- package/popover/index.d.ts +10 -2
- package/scheduler/index.d.ts +5 -1
- package/select-box/index.d.ts +1 -1
package/datetime-box/index.d.ts
CHANGED
@@ -54,6 +54,7 @@ declare class AXDateTimeBoxComponent extends AXDateTimeBoxComponent_base {
|
|
54
54
|
* @description The calendar type to use for the datetime input.
|
55
55
|
*/
|
56
56
|
calendar: _angular_core.InputSignal<string>;
|
57
|
+
protected _editingDateObj: _angular_core.WritableSignal<Date>;
|
57
58
|
protected _calendarSystem: _angular_core.WritableSignal<string>;
|
58
59
|
private _format;
|
59
60
|
picker: _angular_core.InputSignal<AXDateTimePickerType>;
|
@@ -258,6 +258,12 @@ class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveCompo
|
|
258
258
|
this.typeChange.pipe(unsubscriber.takeUntilDestroy).subscribe((value) => {
|
259
259
|
this.calendar.set(value);
|
260
260
|
});
|
261
|
+
this.minValueChange.subscribe((e) => {
|
262
|
+
if (this._viewStartDate.isBefore(e)) {
|
263
|
+
this._viewStartDate = this.calendarService.create(e, this.calendar());
|
264
|
+
this.render();
|
265
|
+
}
|
266
|
+
});
|
261
267
|
}
|
262
268
|
/**
|
263
269
|
* @ignore
|
@@ -271,7 +277,13 @@ class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveCompo
|
|
271
277
|
*/
|
272
278
|
ngAfterViewInit() {
|
273
279
|
if (!this.value) {
|
274
|
-
this.
|
280
|
+
if (this.minValue && this._viewStartDate.isBefore(this.minValue)) {
|
281
|
+
this._viewStartDate = this.calendarService.create(this.minValue, this.calendar());
|
282
|
+
this.render();
|
283
|
+
}
|
284
|
+
else {
|
285
|
+
this.goToday();
|
286
|
+
}
|
275
287
|
}
|
276
288
|
}
|
277
289
|
/**
|
@@ -567,6 +579,9 @@ class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveCompo
|
|
567
579
|
val.compare(this.displayRange.startTime, this.activeView) == -1 ||
|
568
580
|
val.compare(this.displayRange.endTime, this.activeView) == 1) {
|
569
581
|
this._viewStartDate = this.calendarService.create(value, this.calendar());
|
582
|
+
if (this.minValue && this._viewStartDate.isBefore(this.minValue)) {
|
583
|
+
this._viewStartDate = this.calendarService.create(this.minValue, this.calendar());
|
584
|
+
}
|
570
585
|
}
|
571
586
|
this._footPrint.year = val.year;
|
572
587
|
this._footPrint.month = val.monthOfYear;
|