@acorex/components 21.0.0-next.38 → 21.0.0-next.39

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.
@@ -113,6 +113,10 @@ declare class AXCalendarRangeComponent extends AXCalendarRangeComponent_base imp
113
113
  private _c1;
114
114
  private _c2;
115
115
  _navText: string;
116
+ /**
117
+ * @ignore
118
+ */
119
+ private _navUserInteraction;
116
120
  /**
117
121
  * @ignore
118
122
  */
@@ -916,6 +916,10 @@ class AXCalendarRangeComponent extends classes((MXValueComponent), MXInteractive
916
916
  */
917
917
  this._calendarService = inject(AXCalendarService);
918
918
  this._navText = '';
919
+ /**
920
+ * @ignore
921
+ */
922
+ this._navUserInteraction = false;
919
923
  /** w
920
924
  * @ignore
921
925
  */
@@ -993,6 +997,7 @@ class AXCalendarRangeComponent extends classes((MXValueComponent), MXInteractive
993
997
  * @ignore
994
998
  */
995
999
  handlePrevClick() {
1000
+ this._navUserInteraction = true;
996
1001
  const view = this._c1.activeView;
997
1002
  const d1 = this._c1.displayRange.startTime;
998
1003
  if (view == 'day' || view == 'month') {
@@ -1001,11 +1006,13 @@ class AXCalendarRangeComponent extends classes((MXValueComponent), MXInteractive
1001
1006
  else if (view == 'year') {
1002
1007
  this._c1.navTo(d1.add('year', -20));
1003
1008
  }
1009
+ this._navUserInteraction = false;
1004
1010
  }
1005
1011
  /**
1006
1012
  * @ignore
1007
1013
  */
1008
1014
  handleNextClick() {
1015
+ this._navUserInteraction = true;
1009
1016
  const view = this._c1.activeView;
1010
1017
  const d1 = this._c1.displayRange.startTime;
1011
1018
  if (view == 'day' || view == 'month') {
@@ -1014,6 +1021,7 @@ class AXCalendarRangeComponent extends classes((MXValueComponent), MXInteractive
1014
1021
  else if (view == 'year') {
1015
1022
  this._c1.navTo(d1.add('year', 20));
1016
1023
  }
1024
+ this._navUserInteraction = false;
1017
1025
  }
1018
1026
  /**
1019
1027
  * @ignore
@@ -1041,6 +1049,13 @@ class AXCalendarRangeComponent extends classes((MXValueComponent), MXInteractive
1041
1049
  */
1042
1050
  handleNavigate() {
1043
1051
  this._syncNav1();
1052
+ this.onNavigate.emit({
1053
+ component: this,
1054
+ isUserInteraction: this._navUserInteraction,
1055
+ start: this._c1.displayRange.startTime?.date,
1056
+ end: this._c2.displayRange.endTime?.date,
1057
+ htmlElement: this.getHostElement(),
1058
+ });
1044
1059
  }
1045
1060
  /**
1046
1061
  * @ignore