@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.
@@ -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.goToday();
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;