@acorex/components 18.5.15 → 18.5.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (227) hide show
  1. package/action-sheet/lib/action-sheet.component.d.ts +26 -0
  2. package/alert/lib/alert.component.d.ts +50 -2
  3. package/audio-wave/lib/audio-wave.component.d.ts +48 -0
  4. package/avatar/lib/avatar.component.d.ts +20 -1
  5. package/badge/lib/badge.component.d.ts +8 -0
  6. package/bottom-navigation/lib/bottom-navigation.component.d.ts +16 -0
  7. package/breadcrumbs/lib/breadcrumbs-item.component.d.ts +11 -0
  8. package/breadcrumbs/lib/breadcrumbs.component.d.ts +11 -0
  9. package/button/lib/button-item-list.component.d.ts +34 -0
  10. package/button/lib/button-item.component.d.ts +47 -0
  11. package/button/lib/button.component.d.ts +36 -0
  12. package/button-group/lib/button-group.component.d.ts +53 -0
  13. package/calendar/lib/calendar-range.component.d.ts +48 -0
  14. package/calendar/lib/calendar.component.d.ts +114 -0
  15. package/check-box/lib/check-box.component.d.ts +36 -0
  16. package/chips/lib/chips.component.d.ts +13 -0
  17. package/circular-progress/lib/circular-progress.component.d.ts +67 -1
  18. package/collapse/lib/collapse-group.component.d.ts +38 -0
  19. package/collapse/lib/collapse.component.d.ts +55 -0
  20. package/color-box/lib/color-box.component.d.ts +28 -1
  21. package/color-palette/lib/color-palette-input.component.d.ts +35 -0
  22. package/color-palette/lib/color-palette-picker.component.d.ts +53 -0
  23. package/color-palette/lib/color-palette-preview.component.d.ts +17 -0
  24. package/color-palette/lib/color-palette-swatches.component.d.ts +30 -0
  25. package/color-palette/lib/color-palette.component.d.ts +8 -0
  26. package/comment/lib/comment-container/comment-container.component.d.ts +5 -0
  27. package/comment/lib/comment-item/comment-item.component.d.ts +16 -2
  28. package/comment/lib/comment-like/comment-like.component.d.ts +8 -0
  29. package/comment/lib/comment-reply/comment-reply.component.d.ts +4 -0
  30. package/comment/lib/comment-view/comment-view.component.d.ts +4 -0
  31. package/common/lib/components/base-component.class.d.ts +8 -0
  32. package/common/lib/components/button-base-component.class.d.ts +21 -0
  33. package/common/lib/components/interactive-component.class.d.ts +15 -0
  34. package/conversation/lib/conversation-container/conversation-container.component.d.ts +4 -0
  35. package/conversation/lib/conversation-input/conversation-input.component.d.ts +79 -2
  36. package/conversation/lib/conversation-message/conversation-message.component.d.ts +41 -0
  37. package/conversation/lib/conversation-messages/conversation-message-audio/conversation-message-audio.component.d.ts +62 -0
  38. package/conversation/lib/conversation-messages/conversation-message-file/conversation-message-file.component.d.ts +34 -0
  39. package/conversation/lib/conversation-messages/conversation-message-image/conversation-message-image.component.d.ts +21 -0
  40. package/conversation/lib/conversation-messages/conversation-message-image-popup/conversation-message-image-popup.component.d.ts +11 -0
  41. package/conversation/lib/conversation-messages/conversation-message-text/conversation-message-text.component.d.ts +29 -0
  42. package/conversation/lib/conversation-messages/conversation-message-video/conversation-message-video.component.d.ts +11 -0
  43. package/conversation/lib/conversation-messages/conversation-message-voice/conversation-message-voice.component.d.ts +72 -0
  44. package/conversation/lib/conversation-view/conversation-view.component.d.ts +22 -0
  45. package/data-pager/lib/data-pager-base.component.d.ts +9 -0
  46. package/data-pager/lib/data-pager-info.component.d.ts +14 -0
  47. package/data-pager/lib/data-pager-input-selector.component.d.ts +17 -0
  48. package/data-pager/lib/data-pager-next-buttons.components.d.ts +20 -0
  49. package/data-pager/lib/data-pager-numeric-selector.component.d.ts +14 -0
  50. package/esm2022/action-sheet/lib/action-sheet.component.mjs +21 -1
  51. package/esm2022/alert/lib/alert.component.mjs +48 -3
  52. package/esm2022/audio-wave/lib/audio-wave.component.mjs +43 -1
  53. package/esm2022/avatar/lib/avatar.component.mjs +21 -2
  54. package/esm2022/badge/lib/badge.component.mjs +9 -1
  55. package/esm2022/bottom-navigation/lib/bottom-navigation.component.mjs +14 -1
  56. package/esm2022/breadcrumbs/lib/breadcrumbs-item.component.mjs +9 -1
  57. package/esm2022/breadcrumbs/lib/breadcrumbs.component.mjs +6 -1
  58. package/esm2022/button/lib/button-item-list.component.mjs +35 -1
  59. package/esm2022/button/lib/button-item.component.mjs +36 -1
  60. package/esm2022/button/lib/button.component.mjs +39 -3
  61. package/esm2022/button-group/lib/button-group.component.mjs +48 -1
  62. package/esm2022/calendar/lib/calendar-range.component.mjs +46 -1
  63. package/esm2022/calendar/lib/calendar.component.mjs +112 -1
  64. package/esm2022/check-box/lib/check-box.component.mjs +34 -1
  65. package/esm2022/chips/lib/chips.component.mjs +14 -1
  66. package/esm2022/circular-progress/lib/circular-progress.component.mjs +69 -1
  67. package/esm2022/collapse/lib/collapse-group.component.mjs +39 -1
  68. package/esm2022/collapse/lib/collapse.component.mjs +53 -1
  69. package/esm2022/color-box/lib/color-box.component.mjs +23 -2
  70. package/esm2022/color-palette/lib/color-palette-input.component.mjs +36 -1
  71. package/esm2022/color-palette/lib/color-palette-picker.component.mjs +54 -1
  72. package/esm2022/color-palette/lib/color-palette-preview.component.mjs +18 -1
  73. package/esm2022/color-palette/lib/color-palette-swatches.component.mjs +28 -1
  74. package/esm2022/color-palette/lib/color-palette.component.mjs +9 -1
  75. package/esm2022/comment/lib/comment-container/comment-container.component.mjs +6 -1
  76. package/esm2022/comment/lib/comment-item/comment-item.component.mjs +15 -1
  77. package/esm2022/comment/lib/comment-like/comment-like.component.mjs +9 -1
  78. package/esm2022/comment/lib/comment-reply/comment-reply.component.mjs +5 -1
  79. package/esm2022/comment/lib/comment-view/comment-view.component.mjs +5 -1
  80. package/esm2022/common/lib/components/base-component.class.mjs +9 -1
  81. package/esm2022/common/lib/components/button-base-component.class.mjs +22 -1
  82. package/esm2022/common/lib/components/interactive-component.class.mjs +16 -1
  83. package/esm2022/conversation/lib/conversation-container/conversation-container.component.mjs +5 -1
  84. package/esm2022/conversation/lib/conversation-input/conversation-input.component.mjs +75 -1
  85. package/esm2022/conversation/lib/conversation-message/conversation-message.component.mjs +39 -1
  86. package/esm2022/conversation/lib/conversation-messages/conversation-message-audio/conversation-message-audio.component.mjs +63 -1
  87. package/esm2022/conversation/lib/conversation-messages/conversation-message-file/conversation-message-file.component.mjs +35 -1
  88. package/esm2022/conversation/lib/conversation-messages/conversation-message-image/conversation-message-image.component.mjs +22 -1
  89. package/esm2022/conversation/lib/conversation-messages/conversation-message-image-popup/conversation-message-image-popup.component.mjs +9 -1
  90. package/esm2022/conversation/lib/conversation-messages/conversation-message-text/conversation-message-text.component.mjs +30 -1
  91. package/esm2022/conversation/lib/conversation-messages/conversation-message-video/conversation-message-video.component.mjs +12 -1
  92. package/esm2022/conversation/lib/conversation-messages/conversation-message-voice/conversation-message-voice.component.mjs +70 -1
  93. package/esm2022/conversation/lib/conversation-view/conversation-view.component.mjs +23 -1
  94. package/esm2022/data-pager/lib/data-pager-base.component.mjs +7 -1
  95. package/esm2022/data-pager/lib/data-pager-info.component.mjs +9 -1
  96. package/esm2022/data-pager/lib/data-pager-input-selector.component.mjs +18 -1
  97. package/esm2022/data-pager/lib/data-pager-next-buttons.components.mjs +18 -1
  98. package/esm2022/data-pager/lib/data-pager-numeric-selector.component.mjs +15 -1
  99. package/esm2022/scheduler/lib/scheduler-month-view.component.mjs +20 -1
  100. package/esm2022/scheduler/lib/scheduler-week-view.component.mjs +5 -1
  101. package/esm2022/scheduler/lib/scheduler.component.mjs +10 -1
  102. package/esm2022/search-box/lib/search-box.component.mjs +19 -2
  103. package/esm2022/select-box/lib/select-box.component.mjs +50 -2
  104. package/esm2022/selection-list/lib/selection-list.component.mjs +51 -1
  105. package/esm2022/side-menu/lib/side-menu.component.mjs +5 -1
  106. package/esm2022/skeleton/lib/skeleton.component.mjs +11 -1
  107. package/esm2022/slider/lib/slider.component.mjs +52 -2
  108. package/esm2022/step-wizard/lib/step-wizard.component.mjs +23 -1
  109. package/esm2022/switch/lib/switch-content.component.mjs +5 -1
  110. package/esm2022/switch/lib/switch.component.mjs +11 -1
  111. package/esm2022/tabs/lib/tab-item.component.mjs +24 -1
  112. package/esm2022/tabs/lib/tabs.component.mjs +36 -1
  113. package/esm2022/tag/lib/tag.component.mjs +2 -1
  114. package/esm2022/text-area/lib/text-area.component.mjs +8 -1
  115. package/esm2022/text-box/lib/text-box.component.mjs +13 -1
  116. package/esm2022/toast/lib/toast.component.mjs +6 -1
  117. package/esm2022/tooltip/lib/tooltip.component.mjs +5 -1
  118. package/esm2022/uploader/lib/uploader-dialog-container.component.mjs +16 -1
  119. package/esm2022/uploader/lib/uploader-drop-zone.component.mjs +5 -1
  120. package/esm2022/uploader/lib/uploader-list.component.mjs +8 -3
  121. package/esm2022/uploader/lib/uploader.models.mjs +14 -1
  122. package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-container/wysiwyg-container.component.mjs +18 -1
  123. package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-toolbar/wysiwyg-toolbar.component.mjs +106 -36
  124. package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-view/wysiwyg-view.component.mjs +9 -1
  125. package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg.service.mjs +4 -1
  126. package/fesm2022/acorex-components-action-sheet.mjs +20 -0
  127. package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
  128. package/fesm2022/acorex-components-alert.mjs +47 -2
  129. package/fesm2022/acorex-components-alert.mjs.map +1 -1
  130. package/fesm2022/acorex-components-audio-wave.mjs +42 -0
  131. package/fesm2022/acorex-components-audio-wave.mjs.map +1 -1
  132. package/fesm2022/acorex-components-avatar.mjs +20 -1
  133. package/fesm2022/acorex-components-avatar.mjs.map +1 -1
  134. package/fesm2022/acorex-components-badge.mjs +8 -0
  135. package/fesm2022/acorex-components-badge.mjs.map +1 -1
  136. package/fesm2022/acorex-components-bottom-navigation.mjs +13 -0
  137. package/fesm2022/acorex-components-bottom-navigation.mjs.map +1 -1
  138. package/fesm2022/acorex-components-breadcrumbs.mjs +13 -0
  139. package/fesm2022/acorex-components-breadcrumbs.mjs.map +1 -1
  140. package/fesm2022/acorex-components-button-group.mjs +47 -0
  141. package/fesm2022/acorex-components-button-group.mjs.map +1 -1
  142. package/fesm2022/acorex-components-button.mjs +107 -2
  143. package/fesm2022/acorex-components-button.mjs.map +1 -1
  144. package/fesm2022/acorex-components-calendar.mjs +156 -0
  145. package/fesm2022/acorex-components-calendar.mjs.map +1 -1
  146. package/fesm2022/acorex-components-check-box.mjs +33 -0
  147. package/fesm2022/acorex-components-check-box.mjs.map +1 -1
  148. package/fesm2022/acorex-components-chips.mjs +13 -0
  149. package/fesm2022/acorex-components-chips.mjs.map +1 -1
  150. package/fesm2022/acorex-components-circular-progress.mjs +68 -0
  151. package/fesm2022/acorex-components-circular-progress.mjs.map +1 -1
  152. package/fesm2022/acorex-components-collapse.mjs +90 -0
  153. package/fesm2022/acorex-components-collapse.mjs.map +1 -1
  154. package/fesm2022/acorex-components-color-box.mjs +22 -1
  155. package/fesm2022/acorex-components-color-box.mjs.map +1 -1
  156. package/fesm2022/acorex-components-color-palette.mjs +140 -0
  157. package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
  158. package/fesm2022/acorex-components-comment.mjs +35 -0
  159. package/fesm2022/acorex-components-comment.mjs.map +1 -1
  160. package/fesm2022/acorex-components-common.mjs +44 -0
  161. package/fesm2022/acorex-components-common.mjs.map +1 -1
  162. package/fesm2022/acorex-components-conversation.mjs +372 -0
  163. package/fesm2022/acorex-components-conversation.mjs.map +1 -1
  164. package/fesm2022/acorex-components-data-pager.mjs +62 -0
  165. package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
  166. package/fesm2022/acorex-components-scheduler.mjs +32 -0
  167. package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
  168. package/fesm2022/acorex-components-search-box.mjs +18 -1
  169. package/fesm2022/acorex-components-search-box.mjs.map +1 -1
  170. package/fesm2022/acorex-components-select-box.mjs +49 -1
  171. package/fesm2022/acorex-components-select-box.mjs.map +1 -1
  172. package/fesm2022/acorex-components-selection-list.mjs +50 -0
  173. package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
  174. package/fesm2022/acorex-components-side-menu.mjs +4 -0
  175. package/fesm2022/acorex-components-side-menu.mjs.map +1 -1
  176. package/fesm2022/acorex-components-skeleton.mjs +10 -0
  177. package/fesm2022/acorex-components-skeleton.mjs.map +1 -1
  178. package/fesm2022/acorex-components-slider.mjs +51 -1
  179. package/fesm2022/acorex-components-slider.mjs.map +1 -1
  180. package/fesm2022/acorex-components-step-wizard.mjs +22 -0
  181. package/fesm2022/acorex-components-step-wizard.mjs.map +1 -1
  182. package/fesm2022/acorex-components-switch.mjs +14 -0
  183. package/fesm2022/acorex-components-switch.mjs.map +1 -1
  184. package/fesm2022/acorex-components-tabs.mjs +58 -0
  185. package/fesm2022/acorex-components-tabs.mjs.map +1 -1
  186. package/fesm2022/acorex-components-tag.mjs +1 -0
  187. package/fesm2022/acorex-components-tag.mjs.map +1 -1
  188. package/fesm2022/acorex-components-text-area.mjs +7 -0
  189. package/fesm2022/acorex-components-text-area.mjs.map +1 -1
  190. package/fesm2022/acorex-components-text-box.mjs +12 -0
  191. package/fesm2022/acorex-components-text-box.mjs.map +1 -1
  192. package/fesm2022/acorex-components-toast.mjs +5 -0
  193. package/fesm2022/acorex-components-toast.mjs.map +1 -1
  194. package/fesm2022/acorex-components-tooltip.mjs +4 -0
  195. package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
  196. package/fesm2022/acorex-components-uploader.mjs +39 -2
  197. package/fesm2022/acorex-components-uploader.mjs.map +1 -1
  198. package/fesm2022/acorex-components-wysiwyg.mjs +134 -35
  199. package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
  200. package/package.json +71 -71
  201. package/scheduler/lib/scheduler-month-view.component.d.ts +20 -0
  202. package/scheduler/lib/scheduler-week-view.component.d.ts +4 -0
  203. package/scheduler/lib/scheduler.component.d.ts +10 -0
  204. package/search-box/lib/search-box.component.d.ts +19 -1
  205. package/select-box/lib/select-box.component.d.ts +78 -1
  206. package/selection-list/lib/selection-list.component.d.ts +55 -0
  207. package/side-menu/lib/side-menu.component.d.ts +4 -0
  208. package/skeleton/lib/skeleton.component.d.ts +10 -0
  209. package/slider/lib/slider.component.d.ts +51 -1
  210. package/step-wizard/lib/step-wizard.component.d.ts +23 -0
  211. package/switch/lib/switch-content.component.d.ts +4 -0
  212. package/switch/lib/switch.component.d.ts +14 -0
  213. package/tabs/lib/tab-item.component.d.ts +32 -0
  214. package/tabs/lib/tabs.component.d.ts +42 -0
  215. package/tag/lib/tag.component.d.ts +4 -0
  216. package/text-area/lib/text-area.component.d.ts +13 -0
  217. package/text-box/lib/text-box.component.d.ts +27 -0
  218. package/toast/lib/toast.component.d.ts +6 -0
  219. package/tooltip/lib/tooltip.component.d.ts +13 -0
  220. package/uploader/lib/uploader-dialog-container.component.d.ts +15 -0
  221. package/uploader/lib/uploader-drop-zone.component.d.ts +4 -0
  222. package/uploader/lib/uploader-list.component.d.ts +5 -0
  223. package/uploader/lib/uploader.models.d.ts +4 -0
  224. package/wysiwyg/lib/wysiwyg/wysiwyg-container/wysiwyg-container.component.d.ts +19 -3
  225. package/wysiwyg/lib/wysiwyg/wysiwyg-toolbar/wysiwyg-toolbar.component.d.ts +61 -20
  226. package/wysiwyg/lib/wysiwyg/wysiwyg-view/wysiwyg-view.component.d.ts +4 -0
  227. package/wysiwyg/lib/wysiwyg/wysiwyg.service.d.ts +3 -0
@@ -171,10 +171,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
171
171
  const CALENDAR_INPUTS = ['depth', 'activeView', 'min', 'max', 'disabledDates', 'type', 'holidayDates'];
172
172
  const CALENDAR_OUTPUTS = ['depthChange', 'typeChange', 'disabledDatesChange', 'holidayDatesChange', 'onNavigate'];
173
173
 
174
+ /**
175
+ * A calendar component that provides a customizable calendar view with various options for selection, navigation, and styling.
176
+ *
177
+ * @category Components
178
+ */
174
179
  class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveComponent, MXCalendarBaseComponent) {
175
180
  get displayRange() {
176
181
  return new AXDateTimeRange(this.views[0].range.startTime, this.views[this.views.length - 1].range.endTime);
177
182
  }
183
+ /**
184
+ * @ignore
185
+ */
178
186
  _setDisplayRange(current) {
179
187
  switch (this.activeView) {
180
188
  case 'year': {
@@ -197,24 +205,48 @@ class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveCompo
197
205
  return new AXDateTimeRange(current.startOf('month'), current.endOf('month'));
198
206
  }
199
207
  }
208
+ /**
209
+ * @ignore
210
+ */
200
211
  _initValues() {
201
212
  this._today = this.calendarService.create(new Date(), this.type);
202
213
  this._weekdays = this._today.calendar.weekdays;
203
214
  }
215
+ /**
216
+ * @ignore
217
+ */
204
218
  _refresh() {
205
219
  this._initValues();
206
220
  this.navTo(this.value || this._today);
207
221
  }
222
+ /**
223
+ * @ignore
224
+ */
208
225
  constructor(unsubscriber) {
209
226
  super();
227
+ /**
228
+ * @ignore
229
+ */
210
230
  this._today = this.calendarService.create(new Date(), this.type);
231
+ /**
232
+ * @ignore
233
+ */
211
234
  this._navUserInteraction = false;
235
+ /**
236
+ * @ignore
237
+ */
212
238
  this._footPrint = {
213
239
  year: null,
214
240
  month: null,
215
241
  day: null,
216
242
  };
243
+ /**
244
+ * @ignore
245
+ */
217
246
  this.views = [];
247
+ /**
248
+ * @ignore
249
+ */
218
250
  this._weekdays = [];
219
251
  this.calendarService.onHolidaysChanged.pipe(unsubscriber.takeUntilDestroy).subscribe(() => {
220
252
  this.render();
@@ -223,15 +255,24 @@ class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveCompo
223
255
  this._refresh();
224
256
  });
225
257
  }
258
+ /**
259
+ * @ignore
260
+ */
226
261
  ngOnInit() {
227
262
  super.ngOnInit();
228
263
  this._initValues();
229
264
  }
265
+ /**
266
+ * @ignore
267
+ */
230
268
  ngAfterViewInit() {
231
269
  if (!this.value) {
232
270
  this.goToday();
233
271
  }
234
272
  }
273
+ /**
274
+ * @ignore
275
+ */
235
276
  ngOnDestroy() { }
236
277
  render() {
237
278
  if (!this._viewStartDate)
@@ -383,16 +424,25 @@ class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveCompo
383
424
  }
384
425
  this.cdr.markForCheck();
385
426
  }
427
+ /**
428
+ * @ignore
429
+ */
386
430
  _handlePrevClick() {
387
431
  this._navUserInteraction = true;
388
432
  this.prev();
389
433
  this._navUserInteraction = false;
390
434
  }
435
+ /**
436
+ * @ignore
437
+ */
391
438
  _handleNextClick() {
392
439
  this._navUserInteraction = true;
393
440
  this.next();
394
441
  this._navUserInteraction = false;
395
442
  }
443
+ /**
444
+ * @ignore
445
+ */
396
446
  _handleSlotClick(e, slot) {
397
447
  if (slot.disabled || this.disabled)
398
448
  return;
@@ -425,6 +475,9 @@ class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveCompo
425
475
  this._setDate(slot.date.date);
426
476
  }
427
477
  }
478
+ /**
479
+ * @ignore
480
+ */
428
481
  _handleNavClick(e, view) {
429
482
  this._navUserInteraction = true;
430
483
  this.activeView = view;
@@ -436,6 +489,9 @@ class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveCompo
436
489
  else if (this.activeView == 'month')
437
490
  this.activeView = 'year';
438
491
  }
492
+ /**
493
+ * @ignore
494
+ */
439
495
  internalOptionChanged(e) {
440
496
  if (e.name == 'depth' || e.name == 'activeView' || e.name == 'disabledDates' || e.name == 'holidayDates') {
441
497
  this.render();
@@ -444,6 +500,9 @@ class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveCompo
444
500
  this._refresh();
445
501
  }
446
502
  }
503
+ /**
504
+ * @ignore
505
+ */
447
506
  internalSetValue(value) {
448
507
  if (!value)
449
508
  return null;
@@ -454,6 +513,9 @@ class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveCompo
454
513
  else
455
514
  return v.date;
456
515
  }
516
+ /**
517
+ * @ignore
518
+ */
457
519
  internalValueChanged(value) {
458
520
  const val = this.calendarService.create(value, this.type);
459
521
  if (!this._viewStartDate ||
@@ -466,23 +528,41 @@ class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveCompo
466
528
  this._footPrint.day = val.dayOfMonth;
467
529
  this.render();
468
530
  }
531
+ /**
532
+ * @ignore
533
+ */
469
534
  _handleGoToday() {
470
535
  this._navUserInteraction = true;
471
536
  this._setDate(this._today.date);
472
537
  this.goToday();
473
538
  this._navUserInteraction = false;
474
539
  }
540
+ /**
541
+ * Navigates to the next item.
542
+ * @ignore
543
+ */
475
544
  next() {
476
545
  this._navNextPrev(false);
477
546
  }
547
+ /**
548
+ * Navigates to the previous item.
549
+ * @ignore
550
+ */
478
551
  prev() {
479
552
  this._navNextPrev(true);
480
553
  }
554
+ /**
555
+ * Sets focus to the currently selected calendar slot or the first available slot.
556
+ * @ignore
557
+ */
481
558
  focus() {
482
559
  const func = (s) => this.getHostElement().querySelector(s);
483
560
  const div = func('.ax-calendar-slots>div.ax-state-selected') || func('.ax-calendar-slots>div');
484
561
  div?.focus();
485
562
  }
563
+ /**
564
+ * @ignore
565
+ */
486
566
  _navNextPrev(prev) {
487
567
  const sign = prev ? -1 : 1;
488
568
  if (this.activeView == 'day')
@@ -492,9 +572,19 @@ class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveCompo
492
572
  else
493
573
  this.navTo(this._viewStartDate.add('year', sign * 10 * this.count));
494
574
  }
575
+ /**
576
+ * Navigates to the current date.
577
+ * @ignore
578
+ */
495
579
  goToday() {
496
580
  this.navTo(this._today);
497
581
  }
582
+ /**
583
+ * Navigates to a specified date and updates the view.
584
+ *
585
+ * @param date - The date to navigate to, which can be a `Date` object or an `AXDateTime` instance.
586
+ * @ignore
587
+ */
498
588
  navTo(date) {
499
589
  const val = this.calendarService.convert(date, this.type);
500
590
  this._viewStartDate = val.startOf();
@@ -511,6 +601,9 @@ class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveCompo
511
601
  });
512
602
  }
513
603
  }
604
+ /**
605
+ * @ignore
606
+ */
514
607
  get __hostClass() {
515
608
  const _classes = {
516
609
  'ax-state-disabled': this.disabled,
@@ -521,11 +614,17 @@ class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveCompo
521
614
  .map((c) => c[0])
522
615
  .join(' ');
523
616
  }
617
+ /**
618
+ * @ignore
619
+ */
524
620
  _setDate(value) {
525
621
  if (this.readonly || this.disabled)
526
622
  return;
527
623
  this.commitValue(this.calendarService.convert(value, this.type).startOf().date, true);
528
624
  }
625
+ /**
626
+ * @ignore
627
+ */
529
628
  isDisabled(date) {
530
629
  if (Array.isArray(this.disabledDates) && this.disabledDates.length != 0) {
531
630
  return this.disabledDates.some((d) => date.equal(d, 'day'));
@@ -535,6 +634,9 @@ class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveCompo
535
634
  }
536
635
  return false;
537
636
  }
637
+ /**
638
+ * @ignore
639
+ */
538
640
  isHoliday(date) {
539
641
  const gh = this.calendarService.holidays.some((d) => date.equal(d.date, 'day'));
540
642
  let dh = this.calendarService.holidays.some((d) => date.equal(d.date, 'day'));
@@ -546,10 +648,16 @@ class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveCompo
546
648
  }
547
649
  return gh || dh;
548
650
  }
651
+ /**
652
+ * @ignore
653
+ */
549
654
  isWeekend(date) {
550
655
  const weekend = this.calendarService.resolveCalendar(this.type).weekend;
551
656
  return weekend.includes(date.dayOfWeek - 1);
552
657
  }
658
+ /**
659
+ * @ignore
660
+ */
553
661
  _handleOnKeydownEvent(e) {
554
662
  //TODO: complete keyboad navigation
555
663
  const ignore = () => {
@@ -575,6 +683,9 @@ class AXCalendarComponent extends classes((MXValueComponent), MXInteractiveCompo
575
683
  ignore();
576
684
  }
577
685
  }
686
+ /**
687
+ * @ignore
688
+ */
578
689
  getMonthName(date, style) {
579
690
  return `dateTime.months.${date.calendar.name()}.${style}.${date.monthOfYear - 1}`;
580
691
  }
@@ -650,10 +761,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
650
761
  }] } });
651
762
 
652
763
  class AXCalendarRangeComponent extends classes((MXValueComponent), MXInteractiveComponent, MXCalendarBaseComponent) {
764
+ /**
765
+ * @ignore
766
+ */
653
767
  constructor() {
654
768
  super();
769
+ /**
770
+ * @ignore
771
+ */
655
772
  this._calendarService = inject(AXCalendarService);
656
773
  this._navText = '';
774
+ /**
775
+ * @ignore
776
+ */
657
777
  this.getCellClass = (date) => {
658
778
  //const d = this._calendarService.create(date, this.type);
659
779
  const from = this._calendarService.create(this.value.from, this.type);
@@ -669,13 +789,22 @@ class AXCalendarRangeComponent extends classes((MXValueComponent), MXInteractive
669
789
  };
670
790
  this.defaultValue = { from: null, end: null };
671
791
  }
792
+ /**
793
+ * @ignore
794
+ */
672
795
  ngOnInit() {
673
796
  super.ngOnInit();
674
797
  this.rtl = AXHtmlUtil.isRtl(this.getHostElement());
675
798
  }
799
+ /**
800
+ * @ignore
801
+ */
676
802
  ngAfterViewInit() {
677
803
  this._syncNav1();
678
804
  }
805
+ /**
806
+ * @ignore
807
+ */
679
808
  handleSlotClick(e) {
680
809
  if (this._c1.activeView == this.depth) {
681
810
  if (!this.value.from || (this.value.from && this.value.end)) {
@@ -699,6 +828,9 @@ class AXCalendarRangeComponent extends classes((MXValueComponent), MXInteractive
699
828
  this._c1.render();
700
829
  this._c2.render();
701
830
  }
831
+ /**
832
+ * @ignore
833
+ */
702
834
  handlePrevClick() {
703
835
  const view = this._c1.activeView;
704
836
  const d1 = this._c1.displayRange.startTime;
@@ -709,6 +841,9 @@ class AXCalendarRangeComponent extends classes((MXValueComponent), MXInteractive
709
841
  this._c1.navTo(d1.add('year', -20));
710
842
  }
711
843
  }
844
+ /**
845
+ * @ignore
846
+ */
712
847
  handleNextClick() {
713
848
  const view = this._c1.activeView;
714
849
  const d1 = this._c1.displayRange.startTime;
@@ -719,9 +854,15 @@ class AXCalendarRangeComponent extends classes((MXValueComponent), MXInteractive
719
854
  this._c1.navTo(d1.add('year', 20));
720
855
  }
721
856
  }
857
+ /**
858
+ * @ignore
859
+ */
722
860
  handleNavClick() {
723
861
  this._c1.toggleView();
724
862
  }
863
+ /**
864
+ * @ignore
865
+ */
725
866
  _syncNavText() {
726
867
  const view = this._c1.activeView;
727
868
  const d1 = this._c1.displayRange.startTime;
@@ -738,18 +879,30 @@ class AXCalendarRangeComponent extends classes((MXValueComponent), MXInteractive
738
879
  this._navText = `${d1.format('yyyy')} - ${d2.format('yyyy')}`;
739
880
  }
740
881
  }
882
+ /**
883
+ * @ignore
884
+ */
741
885
  handleNavigate() {
742
886
  this._syncNav1();
743
887
  }
888
+ /**
889
+ * @ignore
890
+ */
744
891
  handleActiveViewChange1() {
745
892
  this._c2.activeView = this._c1.activeView;
746
893
  this._syncNav1();
747
894
  }
895
+ /**
896
+ * @ignore
897
+ */
748
898
  handleActiveViewChange2() {
749
899
  if (this._c2.activeView != this._c1.activeView) {
750
900
  this._c1.activeView = this._c2.activeView;
751
901
  }
752
902
  }
903
+ /**
904
+ * @ignore
905
+ */
753
906
  _syncNav1() {
754
907
  const view = (this._c2.activeView = this._c1.activeView);
755
908
  const range = this._c1.displayRange;
@@ -764,6 +917,9 @@ class AXCalendarRangeComponent extends classes((MXValueComponent), MXInteractive
764
917
  }
765
918
  this._syncNavText();
766
919
  }
920
+ /**
921
+ * @ignore
922
+ */
767
923
  _syncNav2(e) {
768
924
  const view = this._c2.activeView;
769
925
  if (view == 'month') {