@acorex/components 20.2.0-next.0 → 20.2.0-next.10

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.
Files changed (156) hide show
  1. package/action-sheet/index.d.ts +56 -0
  2. package/alert/index.d.ts +1 -1
  3. package/autocomplete/index.d.ts +1 -0
  4. package/avatar/index.d.ts +11 -4
  5. package/breadcrumbs/index.d.ts +15 -1
  6. package/calendar/index.d.ts +23 -9
  7. package/check-box/index.d.ts +1 -1
  8. package/circular-progress/index.d.ts +23 -18
  9. package/collapse/index.d.ts +6 -3
  10. package/color-box/index.d.ts +1 -0
  11. package/color-palette/index.d.ts +1 -1
  12. package/comment/index.d.ts +3 -3
  13. package/conversation/index.d.ts +1 -0
  14. package/cron-job/index.d.ts +5 -4
  15. package/data-pager/index.d.ts +10 -5
  16. package/data-table/index.d.ts +16 -2
  17. package/datetime-box/index.d.ts +2 -0
  18. package/datetime-input/index.d.ts +1 -0
  19. package/datetime-picker/index.d.ts +8 -0
  20. package/dropdown/index.d.ts +41 -0
  21. package/fesm2022/acorex-components-action-sheet.mjs +56 -0
  22. package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
  23. package/fesm2022/acorex-components-alert.mjs +1 -1
  24. package/fesm2022/acorex-components-alert.mjs.map +1 -1
  25. package/fesm2022/acorex-components-autocomplete.mjs +9 -3
  26. package/fesm2022/acorex-components-autocomplete.mjs.map +1 -1
  27. package/fesm2022/acorex-components-avatar.mjs +11 -4
  28. package/fesm2022/acorex-components-avatar.mjs.map +1 -1
  29. package/fesm2022/acorex-components-breadcrumbs.mjs +15 -1
  30. package/fesm2022/acorex-components-breadcrumbs.mjs.map +1 -1
  31. package/fesm2022/acorex-components-button.mjs +11 -8
  32. package/fesm2022/acorex-components-button.mjs.map +1 -1
  33. package/fesm2022/acorex-components-calendar.mjs +89 -30
  34. package/fesm2022/acorex-components-calendar.mjs.map +1 -1
  35. package/fesm2022/acorex-components-check-box.mjs +2 -2
  36. package/fesm2022/acorex-components-check-box.mjs.map +1 -1
  37. package/fesm2022/acorex-components-circular-progress.mjs +23 -18
  38. package/fesm2022/acorex-components-circular-progress.mjs.map +1 -1
  39. package/fesm2022/acorex-components-collapse.mjs +6 -3
  40. package/fesm2022/acorex-components-collapse.mjs.map +1 -1
  41. package/fesm2022/acorex-components-color-box.mjs +9 -3
  42. package/fesm2022/acorex-components-color-box.mjs.map +1 -1
  43. package/fesm2022/acorex-components-color-palette.mjs +3 -3
  44. package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
  45. package/fesm2022/acorex-components-comment.mjs +5 -5
  46. package/fesm2022/acorex-components-comment.mjs.map +1 -1
  47. package/fesm2022/acorex-components-conversation.mjs +10 -4
  48. package/fesm2022/acorex-components-conversation.mjs.map +1 -1
  49. package/fesm2022/acorex-components-cron-job.mjs +15 -9
  50. package/fesm2022/acorex-components-cron-job.mjs.map +1 -1
  51. package/fesm2022/acorex-components-data-pager.mjs +45 -48
  52. package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
  53. package/fesm2022/acorex-components-data-table.mjs +30 -13
  54. package/fesm2022/acorex-components-data-table.mjs.map +1 -1
  55. package/fesm2022/acorex-components-datetime-box.mjs +23 -4
  56. package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
  57. package/fesm2022/acorex-components-datetime-input.mjs +8 -2
  58. package/fesm2022/acorex-components-datetime-input.mjs.map +1 -1
  59. package/fesm2022/acorex-components-datetime-picker.mjs +82 -8
  60. package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
  61. package/fesm2022/acorex-components-dropdown.mjs +46 -2
  62. package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
  63. package/fesm2022/acorex-components-image-editor.mjs +12 -6
  64. package/fesm2022/acorex-components-image-editor.mjs.map +1 -1
  65. package/fesm2022/acorex-components-json-viewer.mjs +2 -2
  66. package/fesm2022/acorex-components-json-viewer.mjs.map +1 -1
  67. package/fesm2022/acorex-components-kanban.mjs +9 -5
  68. package/fesm2022/acorex-components-kanban.mjs.map +1 -1
  69. package/fesm2022/acorex-components-kbd.mjs +6 -0
  70. package/fesm2022/acorex-components-kbd.mjs.map +1 -1
  71. package/fesm2022/acorex-components-list.mjs +24 -8
  72. package/fesm2022/acorex-components-list.mjs.map +1 -1
  73. package/fesm2022/acorex-components-loading-dialog.mjs +29 -11
  74. package/fesm2022/acorex-components-loading-dialog.mjs.map +1 -1
  75. package/fesm2022/acorex-components-loading.mjs +58 -0
  76. package/fesm2022/acorex-components-loading.mjs.map +1 -1
  77. package/fesm2022/acorex-components-map.mjs +64 -16
  78. package/fesm2022/acorex-components-map.mjs.map +1 -1
  79. package/fesm2022/acorex-components-number-box-2.mjs +11 -5
  80. package/fesm2022/acorex-components-number-box-2.mjs.map +1 -1
  81. package/fesm2022/acorex-components-number-box.mjs +10 -4
  82. package/fesm2022/acorex-components-number-box.mjs.map +1 -1
  83. package/fesm2022/acorex-components-paint.mjs +8 -2
  84. package/fesm2022/acorex-components-paint.mjs.map +1 -1
  85. package/fesm2022/acorex-components-password-box.mjs +10 -4
  86. package/fesm2022/acorex-components-password-box.mjs.map +1 -1
  87. package/fesm2022/acorex-components-phone-box.mjs +9 -3
  88. package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
  89. package/fesm2022/acorex-components-picker.mjs +14 -4
  90. package/fesm2022/acorex-components-picker.mjs.map +1 -1
  91. package/fesm2022/acorex-components-popover.mjs +31 -7
  92. package/fesm2022/acorex-components-popover.mjs.map +1 -1
  93. package/fesm2022/acorex-components-popup.mjs +2 -2
  94. package/fesm2022/acorex-components-popup.mjs.map +1 -1
  95. package/fesm2022/acorex-components-query-builder.mjs +1 -1
  96. package/fesm2022/acorex-components-query-builder.mjs.map +1 -1
  97. package/fesm2022/acorex-components-radio.mjs +2 -2
  98. package/fesm2022/acorex-components-radio.mjs.map +1 -1
  99. package/fesm2022/acorex-components-rate-picker.mjs.map +1 -1
  100. package/fesm2022/acorex-components-rest-api-generator.mjs +1 -1
  101. package/fesm2022/acorex-components-rest-api-generator.mjs.map +1 -1
  102. package/fesm2022/acorex-components-rrule.mjs +293 -0
  103. package/fesm2022/acorex-components-rrule.mjs.map +1 -0
  104. package/fesm2022/acorex-components-scheduler.mjs +48 -22
  105. package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
  106. package/fesm2022/acorex-components-search-box.mjs +7 -1
  107. package/fesm2022/acorex-components-search-box.mjs.map +1 -1
  108. package/fesm2022/acorex-components-select-box.mjs +60 -22
  109. package/fesm2022/acorex-components-select-box.mjs.map +1 -1
  110. package/fesm2022/acorex-components-side-menu.mjs +1 -1
  111. package/fesm2022/acorex-components-side-menu.mjs.map +1 -1
  112. package/fesm2022/acorex-components-tabs.mjs +7 -5
  113. package/fesm2022/acorex-components-tabs.mjs.map +1 -1
  114. package/fesm2022/acorex-components-tag-box.mjs +11 -5
  115. package/fesm2022/acorex-components-tag-box.mjs.map +1 -1
  116. package/fesm2022/acorex-components-text-area.mjs +10 -4
  117. package/fesm2022/acorex-components-text-area.mjs.map +1 -1
  118. package/fesm2022/acorex-components-text-box.mjs +10 -4
  119. package/fesm2022/acorex-components-text-box.mjs.map +1 -1
  120. package/fesm2022/acorex-components-time-duration.mjs +35 -59
  121. package/fesm2022/acorex-components-time-duration.mjs.map +1 -1
  122. package/fesm2022/acorex-components-tooltip.mjs +3 -3
  123. package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
  124. package/fesm2022/acorex-components-tree-view.mjs +2 -2
  125. package/fesm2022/acorex-components-tree-view.mjs.map +1 -1
  126. package/fesm2022/acorex-components-wysiwyg.mjs +11 -5
  127. package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
  128. package/image-editor/index.d.ts +1 -0
  129. package/json-viewer/index.d.ts +3 -3
  130. package/kanban/index.d.ts +7 -3
  131. package/kbd/index.d.ts +6 -0
  132. package/list/index.d.ts +15 -2
  133. package/loading/index.d.ts +58 -1
  134. package/loading-dialog/index.d.ts +29 -11
  135. package/map/index.d.ts +27 -6
  136. package/number-box/index.d.ts +1 -0
  137. package/number-box-2/index.d.ts +1 -0
  138. package/package.json +10 -2
  139. package/paint/index.d.ts +1 -0
  140. package/password-box/index.d.ts +1 -0
  141. package/phone-box/index.d.ts +1 -0
  142. package/picker/index.d.ts +10 -8
  143. package/popover/index.d.ts +11 -3
  144. package/radio/index.d.ts +1 -1
  145. package/rate-picker/index.d.ts +1 -1
  146. package/rrule/README.md +3 -0
  147. package/rrule/index.d.ts +80 -0
  148. package/scheduler/index.d.ts +5 -1
  149. package/search-box/index.d.ts +1 -0
  150. package/select-box/index.d.ts +23 -8
  151. package/tag-box/index.d.ts +1 -0
  152. package/text-area/index.d.ts +1 -0
  153. package/text-box/index.d.ts +1 -0
  154. package/time-duration/index.d.ts +3 -1
  155. package/tooltip/index.d.ts +2 -2
  156. package/wysiwyg/index.d.ts +1 -0
@@ -92,25 +92,49 @@ class MXCalendarBaseComponent extends MXBaseComponent {
92
92
  return this._minValue;
93
93
  }
94
94
  set minValue(v) {
95
- this.setOption({
96
- name: 'minValue',
97
- value: v,
98
- afterCallback: () => {
99
- this.render();
100
- },
101
- });
95
+ if (this.calendarService.isValidDate(v)) {
96
+ const value = this.calendarService.create(v).date;
97
+ this.setOption({
98
+ name: 'minValue',
99
+ value,
100
+ afterCallback: () => {
101
+ this.render();
102
+ },
103
+ });
104
+ }
105
+ else {
106
+ this.setOption({
107
+ name: 'minValue',
108
+ value: undefined,
109
+ afterCallback: () => {
110
+ this.render();
111
+ },
112
+ });
113
+ }
102
114
  }
103
115
  get maxValue() {
104
116
  return this._maxValue;
105
117
  }
106
118
  set maxValue(v) {
107
- this.setOption({
108
- name: 'maxValue',
109
- value: v,
110
- afterCallback: () => {
111
- this.render();
112
- },
113
- });
119
+ if (this.calendarService.isValidDate(v)) {
120
+ const value = this.calendarService.create(v).date;
121
+ this.setOption({
122
+ name: 'maxValue',
123
+ value,
124
+ afterCallback: () => {
125
+ this.render();
126
+ },
127
+ });
128
+ }
129
+ else {
130
+ this.setOption({
131
+ name: 'maxValue',
132
+ value: undefined,
133
+ afterCallback: () => {
134
+ this.render();
135
+ },
136
+ });
137
+ }
114
138
  }
115
139
  get disabledDates() {
116
140
  return this._disabledDates;
@@ -258,6 +282,12 @@ class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveCompo
258
282
  this.typeChange.pipe(unsubscriber.takeUntilDestroy).subscribe((value) => {
259
283
  this.calendar.set(value);
260
284
  });
285
+ this.minValueChange.subscribe((e) => {
286
+ if (this._viewStartDate.isBefore(e)) {
287
+ this._viewStartDate = this.calendarService.create(e, this.calendar());
288
+ this.render();
289
+ }
290
+ });
261
291
  }
262
292
  /**
263
293
  * @ignore
@@ -271,7 +301,13 @@ class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveCompo
271
301
  */
272
302
  ngAfterViewInit() {
273
303
  if (!this.value) {
274
- this.goToday();
304
+ if (this.minValue && this._viewStartDate.isBefore(this.minValue)) {
305
+ this._viewStartDate = this.calendarService.create(this.minValue, this.calendar());
306
+ this.render();
307
+ }
308
+ else {
309
+ this.goToday();
310
+ }
275
311
  }
276
312
  }
277
313
  /**
@@ -549,14 +585,20 @@ class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveCompo
549
585
  * @ignore
550
586
  */
551
587
  internalSetValue(value) {
552
- if (!value)
588
+ if (!value || !this.calendarService.isValidDate(value)) {
553
589
  return null;
554
- const v = this.calendarService.convert(value);
555
- const isDisabled = this.isDisabled(v);
556
- if (isDisabled)
590
+ }
591
+ const v = this.calendarService.convert(value, this.calendar());
592
+ if (this.isDisabled(v)) {
557
593
  return null;
558
- else
559
- return v.date;
594
+ }
595
+ if (this.maxValue && this.calendarService.isValidDate(this.maxValue) && v.isAfter(this.maxValue)) {
596
+ return this.maxValue;
597
+ }
598
+ if (this.minValue && this.calendarService.isValidDate(this.minValue) && v.isBefore(this.minValue)) {
599
+ return this.minValue;
600
+ }
601
+ return v.date;
560
602
  }
561
603
  /**
562
604
  * @ignore
@@ -567,6 +609,9 @@ class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveCompo
567
609
  val.compare(this.displayRange.startTime, this.activeView) == -1 ||
568
610
  val.compare(this.displayRange.endTime, this.activeView) == 1) {
569
611
  this._viewStartDate = this.calendarService.create(value, this.calendar());
612
+ if (this.minValue && this._viewStartDate.isBefore(this.minValue)) {
613
+ this._viewStartDate = this.calendarService.create(this.minValue, this.calendar());
614
+ }
570
615
  }
571
616
  this._footPrint.year = val.year;
572
617
  this._footPrint.month = val.monthOfYear;
@@ -603,22 +648,35 @@ class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveCompo
603
648
  this._navUserInteraction = false;
604
649
  }
605
650
  /**
606
- * Navigates to the next item.
607
- * @ignore
651
+ * Navigates forward in the calendar based on the current active view and the configured count.
652
+ *
653
+ * Behavior by view:
654
+ * - day view: advances by count months
655
+ * - month view: advances by count years
656
+ * - year view: advances by 10 × count years
657
+ *
658
+ * @returns void
608
659
  */
609
660
  next() {
610
661
  this._navNextPrev(false);
611
662
  }
612
663
  /**
613
- * Navigates to the previous item.
614
- * @ignore
664
+ * Navigates backward in the calendar based on the current active view and the configured count.
665
+ *
666
+ * Behavior by view:
667
+ * - day view: goes back by count months
668
+ * - month view: goes back by count years
669
+ * - year view: goes back by 10 × count years
670
+ *
671
+ * @returns void
615
672
  */
616
673
  prev() {
617
674
  this._navNextPrev(true);
618
675
  }
619
676
  /**
620
677
  * Sets focus to the currently selected calendar slot or the first available slot.
621
- * @ignore
678
+ *
679
+ * @returns void
622
680
  */
623
681
  focus() {
624
682
  const func = (s) => this.getHostElement().querySelector(s);
@@ -638,8 +696,9 @@ class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveCompo
638
696
  this.navTo(this._viewStartDate.add('year', sign * 10 * this.count));
639
697
  }
640
698
  /**
641
- * Navigates to the current date.
642
- * @ignore
699
+ * Navigates to the current date and emits the navigation event.
700
+ *
701
+ * @returns void
643
702
  */
644
703
  goToday() {
645
704
  this.navTo(this._today);
@@ -647,8 +706,8 @@ class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveCompo
647
706
  /**
648
707
  * Navigates to a specified date and updates the view.
649
708
  *
650
- * @param date - The date to navigate to, which can be a `Date` object or an `AXDateTime` instance.
651
- * @ignore
709
+ * @param date The date to navigate to, which can be a Date object or an AXDateTime instance.
710
+ * @returns void
652
711
  */
653
712
  navTo(date) {
654
713
  const val = this.calendarService.convert(date, this.calendar());