@acorex/components 21.0.1-next.4 → 21.0.1-next.40

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 (250) hide show
  1. package/accordion/index.d.ts +0 -1
  2. package/action-sheet/index.d.ts +91 -31
  3. package/button-group/index.d.ts +6 -4
  4. package/chips/index.d.ts +3 -8
  5. package/collapse/index.d.ts +4 -6
  6. package/color-palette/index.d.ts +1 -2
  7. package/command/index.d.ts +8 -1
  8. package/conversation2/README.md +71 -31
  9. package/conversation2/index.d.ts +36 -35
  10. package/data-table/index.d.ts +4 -253
  11. package/dropdown/index.d.ts +2 -5
  12. package/fesm2022/acorex-components-accordion.mjs +16 -21
  13. package/fesm2022/acorex-components-accordion.mjs.map +1 -1
  14. package/fesm2022/acorex-components-action-sheet.mjs +170 -52
  15. package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
  16. package/fesm2022/acorex-components-alert.mjs +13 -13
  17. package/fesm2022/acorex-components-alert.mjs.map +1 -1
  18. package/fesm2022/acorex-components-aspect-ratio.mjs +3 -3
  19. package/fesm2022/acorex-components-aspect-ratio.mjs.map +1 -1
  20. package/fesm2022/acorex-components-audio-wave.mjs +11 -10
  21. package/fesm2022/acorex-components-audio-wave.mjs.map +1 -1
  22. package/fesm2022/acorex-components-autocomplete.mjs +7 -7
  23. package/fesm2022/acorex-components-autocomplete.mjs.map +1 -1
  24. package/fesm2022/acorex-components-avatar.mjs +12 -12
  25. package/fesm2022/acorex-components-avatar.mjs.map +1 -1
  26. package/fesm2022/acorex-components-badge.mjs +9 -9
  27. package/fesm2022/acorex-components-badge.mjs.map +1 -1
  28. package/fesm2022/acorex-components-bottom-navigation.mjs +11 -11
  29. package/fesm2022/acorex-components-bottom-navigation.mjs.map +1 -1
  30. package/fesm2022/acorex-components-breadcrumbs.mjs +11 -11
  31. package/fesm2022/acorex-components-breadcrumbs.mjs.map +1 -1
  32. package/fesm2022/acorex-components-button-group.mjs +23 -19
  33. package/fesm2022/acorex-components-button-group.mjs.map +1 -1
  34. package/fesm2022/acorex-components-button.mjs +18 -18
  35. package/fesm2022/acorex-components-button.mjs.map +1 -1
  36. package/fesm2022/acorex-components-calendar.mjs +17 -17
  37. package/fesm2022/acorex-components-calendar.mjs.map +1 -1
  38. package/fesm2022/acorex-components-check-box.mjs +10 -10
  39. package/fesm2022/acorex-components-check-box.mjs.map +1 -1
  40. package/fesm2022/acorex-components-chips.mjs +12 -14
  41. package/fesm2022/acorex-components-chips.mjs.map +1 -1
  42. package/fesm2022/acorex-components-circular-progress.mjs +12 -10
  43. package/fesm2022/acorex-components-circular-progress.mjs.map +1 -1
  44. package/fesm2022/acorex-components-code-editor.mjs +10 -10
  45. package/fesm2022/acorex-components-code-editor.mjs.map +1 -1
  46. package/fesm2022/acorex-components-collapse.mjs +22 -19
  47. package/fesm2022/acorex-components-collapse.mjs.map +1 -1
  48. package/fesm2022/acorex-components-color-box.mjs +9 -9
  49. package/fesm2022/acorex-components-color-box.mjs.map +1 -1
  50. package/fesm2022/acorex-components-color-palette.mjs +33 -38
  51. package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
  52. package/fesm2022/acorex-components-command.mjs +17 -11
  53. package/fesm2022/acorex-components-command.mjs.map +1 -1
  54. package/fesm2022/acorex-components-comment.mjs +32 -32
  55. package/fesm2022/acorex-components-comment.mjs.map +1 -1
  56. package/fesm2022/acorex-components-conversation.mjs +51 -51
  57. package/fesm2022/acorex-components-conversation.mjs.map +1 -1
  58. package/fesm2022/acorex-components-conversation2.mjs +314 -308
  59. package/fesm2022/acorex-components-conversation2.mjs.map +1 -1
  60. package/fesm2022/acorex-components-cron-job.mjs +46 -46
  61. package/fesm2022/acorex-components-cron-job.mjs.map +1 -1
  62. package/fesm2022/acorex-components-data-list.mjs +3 -3
  63. package/fesm2022/acorex-components-data-list.mjs.map +1 -1
  64. package/fesm2022/acorex-components-data-pager.mjs +33 -33
  65. package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
  66. package/fesm2022/acorex-components-data-table.mjs +50 -486
  67. package/fesm2022/acorex-components-data-table.mjs.map +1 -1
  68. package/fesm2022/acorex-components-datetime-box.mjs +9 -10
  69. package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
  70. package/fesm2022/acorex-components-datetime-input.mjs +9 -9
  71. package/fesm2022/acorex-components-datetime-input.mjs.map +1 -1
  72. package/fesm2022/acorex-components-datetime-picker.mjs +19 -17
  73. package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
  74. package/fesm2022/acorex-components-decorators.mjs +43 -36
  75. package/fesm2022/acorex-components-decorators.mjs.map +1 -1
  76. package/fesm2022/acorex-components-dialog.mjs +12 -12
  77. package/fesm2022/acorex-components-dialog.mjs.map +1 -1
  78. package/fesm2022/acorex-components-drawer-legacy.mjs +13 -13
  79. package/fesm2022/acorex-components-drawer-legacy.mjs.map +1 -1
  80. package/fesm2022/acorex-components-drawer.mjs +15 -16
  81. package/fesm2022/acorex-components-drawer.mjs.map +1 -1
  82. package/fesm2022/acorex-components-dropdown-button.mjs +9 -9
  83. package/fesm2022/acorex-components-dropdown-button.mjs.map +1 -1
  84. package/fesm2022/acorex-components-dropdown.mjs +28 -26
  85. package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
  86. package/fesm2022/acorex-components-editor.mjs +11 -11
  87. package/fesm2022/acorex-components-editor.mjs.map +1 -1
  88. package/fesm2022/acorex-components-file-explorer.mjs +25 -25
  89. package/fesm2022/acorex-components-file-explorer.mjs.map +1 -1
  90. package/fesm2022/acorex-components-flow-chart.mjs +16 -16
  91. package/fesm2022/acorex-components-flow-chart.mjs.map +1 -1
  92. package/fesm2022/acorex-components-form.mjs +48 -42
  93. package/fesm2022/acorex-components-form.mjs.map +1 -1
  94. package/fesm2022/acorex-components-grid-layout-builder.mjs +12 -13
  95. package/fesm2022/acorex-components-grid-layout-builder.mjs.map +1 -1
  96. package/fesm2022/acorex-components-image-editor.mjs +44 -44
  97. package/fesm2022/acorex-components-image-editor.mjs.map +1 -1
  98. package/fesm2022/acorex-components-image.mjs +9 -9
  99. package/fesm2022/acorex-components-image.mjs.map +1 -1
  100. package/fesm2022/acorex-components-json-viewer.mjs +8 -8
  101. package/fesm2022/acorex-components-json-viewer.mjs.map +1 -1
  102. package/fesm2022/acorex-components-kanban.mjs +140 -13
  103. package/fesm2022/acorex-components-kanban.mjs.map +1 -1
  104. package/fesm2022/acorex-components-kbd.mjs +29 -11
  105. package/fesm2022/acorex-components-kbd.mjs.map +1 -1
  106. package/fesm2022/acorex-components-label.mjs +9 -9
  107. package/fesm2022/acorex-components-label.mjs.map +1 -1
  108. package/fesm2022/acorex-components-list.mjs +9 -9
  109. package/fesm2022/acorex-components-list.mjs.map +1 -1
  110. package/fesm2022/acorex-components-loading-dialog.mjs +11 -11
  111. package/fesm2022/acorex-components-loading-dialog.mjs.map +1 -1
  112. package/fesm2022/acorex-components-loading.mjs +23 -23
  113. package/fesm2022/acorex-components-loading.mjs.map +1 -1
  114. package/fesm2022/acorex-components-map.mjs +14 -14
  115. package/fesm2022/acorex-components-map.mjs.map +1 -1
  116. package/fesm2022/acorex-components-media-viewer.mjs +221 -90
  117. package/fesm2022/acorex-components-media-viewer.mjs.map +1 -1
  118. package/fesm2022/acorex-components-menu.mjs +21 -21
  119. package/fesm2022/acorex-components-menu.mjs.map +1 -1
  120. package/fesm2022/{acorex-components-modal-acorex-components-modal-Bmoz9DL5.mjs → acorex-components-modal-acorex-components-modal-BajlPo_n.mjs} +22 -22
  121. package/fesm2022/acorex-components-modal-acorex-components-modal-BajlPo_n.mjs.map +1 -0
  122. package/fesm2022/{acorex-components-modal-modal-content.component-CSJU1vRi.mjs → acorex-components-modal-modal-content.component-BVrBX4Qf.mjs} +9 -7
  123. package/fesm2022/acorex-components-modal-modal-content.component-BVrBX4Qf.mjs.map +1 -0
  124. package/fesm2022/acorex-components-modal.mjs +1 -1
  125. package/fesm2022/acorex-components-navbar.mjs +9 -9
  126. package/fesm2022/acorex-components-navbar.mjs.map +1 -1
  127. package/fesm2022/acorex-components-notification.mjs +28 -24
  128. package/fesm2022/acorex-components-notification.mjs.map +1 -1
  129. package/fesm2022/acorex-components-number-box-legacy.mjs +9 -9
  130. package/fesm2022/acorex-components-number-box-legacy.mjs.map +1 -1
  131. package/fesm2022/acorex-components-number-box.mjs +9 -9
  132. package/fesm2022/acorex-components-number-box.mjs.map +1 -1
  133. package/fesm2022/acorex-components-otp.mjs +9 -9
  134. package/fesm2022/acorex-components-otp.mjs.map +1 -1
  135. package/fesm2022/acorex-components-page.mjs +10 -10
  136. package/fesm2022/acorex-components-page.mjs.map +1 -1
  137. package/fesm2022/acorex-components-paint.mjs +34 -39
  138. package/fesm2022/acorex-components-paint.mjs.map +1 -1
  139. package/fesm2022/acorex-components-password-box.mjs +13 -13
  140. package/fesm2022/acorex-components-password-box.mjs.map +1 -1
  141. package/fesm2022/acorex-components-pdf-reader.mjs +8 -8
  142. package/fesm2022/acorex-components-pdf-reader.mjs.map +1 -1
  143. package/fesm2022/acorex-components-phone-box.mjs +96 -54
  144. package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
  145. package/fesm2022/acorex-components-picker.mjs +19 -18
  146. package/fesm2022/acorex-components-picker.mjs.map +1 -1
  147. package/fesm2022/acorex-components-popover.mjs +132 -33
  148. package/fesm2022/acorex-components-popover.mjs.map +1 -1
  149. package/fesm2022/acorex-components-popup.mjs +93 -101
  150. package/fesm2022/acorex-components-popup.mjs.map +1 -1
  151. package/fesm2022/acorex-components-progress-bar.mjs +11 -9
  152. package/fesm2022/acorex-components-progress-bar.mjs.map +1 -1
  153. package/fesm2022/acorex-components-qrcode.mjs +9 -9
  154. package/fesm2022/acorex-components-qrcode.mjs.map +1 -1
  155. package/fesm2022/acorex-components-query-builder.mjs +8 -8
  156. package/fesm2022/acorex-components-query-builder.mjs.map +1 -1
  157. package/fesm2022/acorex-components-radio.mjs +9 -9
  158. package/fesm2022/acorex-components-radio.mjs.map +1 -1
  159. package/fesm2022/acorex-components-rail-navigation.mjs +38 -36
  160. package/fesm2022/acorex-components-rail-navigation.mjs.map +1 -1
  161. package/fesm2022/acorex-components-range-slider.mjs +10 -10
  162. package/fesm2022/acorex-components-range-slider.mjs.map +1 -1
  163. package/fesm2022/acorex-components-rate-picker.mjs +20 -35
  164. package/fesm2022/acorex-components-rate-picker.mjs.map +1 -1
  165. package/fesm2022/acorex-components-rest-api-generator.mjs +22 -22
  166. package/fesm2022/acorex-components-rest-api-generator.mjs.map +1 -1
  167. package/fesm2022/acorex-components-result.mjs +8 -8
  168. package/fesm2022/acorex-components-result.mjs.map +1 -1
  169. package/fesm2022/acorex-components-routing-progress.mjs +8 -8
  170. package/fesm2022/acorex-components-routing-progress.mjs.map +1 -1
  171. package/fesm2022/acorex-components-rrule.mjs +9 -9
  172. package/fesm2022/acorex-components-rrule.mjs.map +1 -1
  173. package/fesm2022/acorex-components-scheduler-picker.mjs +56 -56
  174. package/fesm2022/acorex-components-scheduler-picker.mjs.map +1 -1
  175. package/fesm2022/acorex-components-scheduler.mjs +43 -43
  176. package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
  177. package/fesm2022/acorex-components-scss.mjs +4 -4
  178. package/fesm2022/acorex-components-scss.mjs.map +1 -1
  179. package/fesm2022/acorex-components-search-box.mjs +16 -10
  180. package/fesm2022/acorex-components-search-box.mjs.map +1 -1
  181. package/fesm2022/acorex-components-select-box.mjs +11 -9
  182. package/fesm2022/acorex-components-select-box.mjs.map +1 -1
  183. package/fesm2022/acorex-components-selection-list-2.mjs +11 -11
  184. package/fesm2022/acorex-components-selection-list-2.mjs.map +1 -1
  185. package/fesm2022/acorex-components-selection-list.mjs +9 -9
  186. package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
  187. package/fesm2022/acorex-components-side-menu.mjs +74 -25
  188. package/fesm2022/acorex-components-side-menu.mjs.map +1 -1
  189. package/fesm2022/acorex-components-skeleton.mjs +8 -8
  190. package/fesm2022/acorex-components-skeleton.mjs.map +1 -1
  191. package/fesm2022/acorex-components-slider.mjs +12 -12
  192. package/fesm2022/acorex-components-slider.mjs.map +1 -1
  193. package/fesm2022/acorex-components-sliding-item.mjs +14 -14
  194. package/fesm2022/acorex-components-sliding-item.mjs.map +1 -1
  195. package/fesm2022/acorex-components-step-wizard.mjs +14 -14
  196. package/fesm2022/acorex-components-step-wizard.mjs.map +1 -1
  197. package/fesm2022/acorex-components-switch.mjs +14 -14
  198. package/fesm2022/acorex-components-switch.mjs.map +1 -1
  199. package/fesm2022/acorex-components-tabs.mjs +15 -15
  200. package/fesm2022/acorex-components-tabs.mjs.map +1 -1
  201. package/fesm2022/acorex-components-tag-box.mjs +9 -9
  202. package/fesm2022/acorex-components-tag-box.mjs.map +1 -1
  203. package/fesm2022/acorex-components-tag.mjs +9 -9
  204. package/fesm2022/acorex-components-tag.mjs.map +1 -1
  205. package/fesm2022/acorex-components-text-area.mjs +9 -9
  206. package/fesm2022/acorex-components-text-area.mjs.map +1 -1
  207. package/fesm2022/acorex-components-text-box.mjs +37 -131
  208. package/fesm2022/acorex-components-text-box.mjs.map +1 -1
  209. package/fesm2022/acorex-components-time-duration.mjs +22 -24
  210. package/fesm2022/acorex-components-time-duration.mjs.map +1 -1
  211. package/fesm2022/acorex-components-time-line.mjs +12 -12
  212. package/fesm2022/acorex-components-time-line.mjs.map +1 -1
  213. package/fesm2022/acorex-components-toast.mjs +12 -12
  214. package/fesm2022/acorex-components-toast.mjs.map +1 -1
  215. package/fesm2022/acorex-components-toolbar.mjs +8 -8
  216. package/fesm2022/acorex-components-toolbar.mjs.map +1 -1
  217. package/fesm2022/acorex-components-tooltip.mjs +66 -65
  218. package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
  219. package/fesm2022/acorex-components-tree-view-legacy.mjs +16 -12
  220. package/fesm2022/acorex-components-tree-view-legacy.mjs.map +1 -1
  221. package/fesm2022/acorex-components-tree-view.mjs +32 -11
  222. package/fesm2022/acorex-components-tree-view.mjs.map +1 -1
  223. package/fesm2022/acorex-components-uploader.mjs +16 -16
  224. package/fesm2022/acorex-components-uploader.mjs.map +1 -1
  225. package/fesm2022/acorex-components-video-player.mjs +8 -8
  226. package/fesm2022/acorex-components-video-player.mjs.map +1 -1
  227. package/fesm2022/acorex-components-wysiwyg.mjs +43 -43
  228. package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
  229. package/fesm2022/acorex-components.mjs.map +1 -1
  230. package/form/index.d.ts +2 -1
  231. package/grid-layout-builder/index.d.ts +1 -2
  232. package/kanban/index.d.ts +62 -4
  233. package/kbd/index.d.ts +13 -7
  234. package/loading/index.d.ts +1 -1
  235. package/media-viewer/index.d.ts +38 -12
  236. package/package.json +3 -4
  237. package/paint/index.d.ts +1 -6
  238. package/phone-box/index.d.ts +12 -7
  239. package/popover/index.d.ts +28 -6
  240. package/popup/index.d.ts +39 -42
  241. package/rate-picker/index.d.ts +5 -15
  242. package/side-menu/index.d.ts +9 -2
  243. package/slider/index.d.ts +2 -2
  244. package/text-box/index.d.ts +29 -48
  245. package/time-duration/index.d.ts +2 -2
  246. package/tooltip/index.d.ts +3 -7
  247. package/tree-view/index.d.ts +17 -0
  248. package/tree-view-legacy/index.d.ts +1 -0
  249. package/fesm2022/acorex-components-modal-acorex-components-modal-Bmoz9DL5.mjs.map +0 -1
  250. package/fesm2022/acorex-components-modal-modal-content.component-CSJU1vRi.mjs.map +0 -1
package/kanban/index.d.ts CHANGED
@@ -21,6 +21,7 @@ declare class AXKanbanComponent extends NXComponent {
21
21
  footerTemplate: _angular_core.InputSignal<TemplateRef<unknown>>;
22
22
  contentFooterTemplate: _angular_core.InputSignal<TemplateRef<unknown>>;
23
23
  tooltipTemplate: _angular_core.InputSignal<string | TemplateRef<unknown>>;
24
+ onBeforeDrop: _angular_core.OutputEmitterRef<AXKanbanBeforeDropEvent>;
24
25
  onSortChanged: _angular_core.OutputEmitterRef<AXKanbanSortEvent>;
25
26
  onItemClick: _angular_core.OutputEmitterRef<AXKanbanMouseEvent>;
26
27
  onActionClick: _angular_core.OutputEmitterRef<AXKanbanMouseEvent>;
@@ -35,9 +36,57 @@ declare class AXKanbanComponent extends NXComponent {
35
36
  * the updated data source.
36
37
  *
37
38
  * @param event AXDropListDroppedEvent - The drag-and-drop event including indices and container information.
38
- * @returns void
39
+ * @returns Promise<void>
39
40
  */
40
- drop(event: AXDropListDroppedEvent): void;
41
+ drop(event: AXDropListDroppedEvent): Promise<void>;
42
+ /**
43
+ * Programmatically move an item to a different status or reorder within the same status.
44
+ * @param itemId The ID of the item to move (using keyField)
45
+ * @param targetStatusKey The target status key to move the item to
46
+ * @param targetIndex Optional target index within the target status. If not provided, item will be appended to the end.
47
+ * @returns Promise<boolean> - true if the move was successful, false otherwise
48
+ */
49
+ moveItem(itemId: any, targetStatusKey: any, targetIndex?: number): Promise<boolean>;
50
+ /**
51
+ * Programmatically reorder an item within the same status.
52
+ * @param itemId The ID of the item to reorder (using keyField)
53
+ * @param newIndex The new index position within the same status
54
+ * @returns Promise<boolean> - true if the reorder was successful, false otherwise
55
+ */
56
+ reorderItem(itemId: any, newIndex: number): Promise<boolean>;
57
+ /**
58
+ * Programmatically move an item to a different status.
59
+ * @param itemId The ID of the item to move (using keyField)
60
+ * @param targetStatusKey The target status key to move the item to
61
+ * @param targetIndex Optional target index within the target status. If not provided, item will be appended to the end.
62
+ * @returns Promise<boolean> - true if the move was successful, false otherwise
63
+ */
64
+ moveItemToStatus(itemId: any, targetStatusKey: any, targetIndex?: number): Promise<boolean>;
65
+ /**
66
+ * Core method that performs the move operation, handles re-indexing, and emits events.
67
+ * This is used by both drag-and-drop operations and programmatic moves.
68
+ *
69
+ * @param originalItem The original item from dataSource that is being moved
70
+ * @param previousStatusKey The status key the item is moving from
71
+ * @param currentStatusKey The status key the item is moving to
72
+ * @param previousIndex The index the item is moving from
73
+ * @param currentIndex The index the item is moving to
74
+ * @param nativeEvent The native mouse event (null for programmatic moves)
75
+ * @returns Promise<boolean> - true if the move was successful, false otherwise
76
+ */
77
+ private performMove;
78
+ /**
79
+ * Emit beforeDrop event and return whether to continue with the drop operation.
80
+ * Supports both synchronous and asynchronous event handlers via the `wait()` method.
81
+ * @param item The original item from dataSource that is being moved
82
+ * @param previousStatusKey The status key the item is moving from
83
+ * @param currentStatusKey The status key the item is moving to
84
+ * @param previousIndex The index the item is moving from
85
+ * @param currentIndex The index the item is moving to
86
+ * @param nativeEvent The native mouse event (null for programmatic moves)
87
+ * @returns Promise<boolean> - true if the drop should proceed, false if it should be canceled
88
+ */
89
+ private emitBeforeDropEvent;
41
90
  protected getItemsById(key: any): AXKanbanItem[];
42
91
  protected getOriginalItemsById(key: any): any[];
43
92
  protected stringify(value: any): string;
@@ -46,7 +95,7 @@ declare class AXKanbanComponent extends NXComponent {
46
95
  protected handleDblClick(event: MouseEvent, item: AXKanbanItem): void;
47
96
  protected handleRightClick(event: MouseEvent, item: AXKanbanItem): void;
48
97
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXKanbanComponent, never>;
49
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXKanbanComponent, "ax-kanban", never, { "hasActions": { "alias": "hasActions"; "required": false; "isSignal": true; }; "dragStartDelay": { "alias": "dragStartDelay"; "required": false; "isSignal": true; }; "statuses": { "alias": "statuses"; "required": false; "isSignal": true; }; "itemTemplate": { "alias": "itemTemplate"; "required": false; "isSignal": true; }; "dataSource": { "alias": "dataSource"; "required": false; "isSignal": true; }; "keyField": { "alias": "keyField"; "required": false; "isSignal": true; }; "indexField": { "alias": "indexField"; "required": false; "isSignal": true; }; "titleField": { "alias": "titleField"; "required": false; "isSignal": true; }; "cssClassField": { "alias": "cssClassField"; "required": false; "isSignal": true; }; "priorityField": { "alias": "priorityField"; "required": false; "isSignal": true; }; "statusKeyField": { "alias": "statusKeyField"; "required": false; "isSignal": true; }; "descriptionField": { "alias": "descriptionField"; "required": false; "isSignal": true; }; "emptyTemplate": { "alias": "emptyTemplate"; "required": false; "isSignal": true; }; "headerTemplate": { "alias": "headerTemplate"; "required": false; "isSignal": true; }; "footerTemplate": { "alias": "footerTemplate"; "required": false; "isSignal": true; }; "contentFooterTemplate": { "alias": "contentFooterTemplate"; "required": false; "isSignal": true; }; "tooltipTemplate": { "alias": "tooltipTemplate"; "required": false; "isSignal": true; }; }, { "onSortChanged": "onSortChanged"; "onItemClick": "onItemClick"; "onActionClick": "onActionClick"; "onItemDblClick": "onItemDblClick"; "onItemRightClick": "onItemRightClick"; }, never, never, true, never>;
98
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXKanbanComponent, "ax-kanban", never, { "hasActions": { "alias": "hasActions"; "required": false; "isSignal": true; }; "dragStartDelay": { "alias": "dragStartDelay"; "required": false; "isSignal": true; }; "statuses": { "alias": "statuses"; "required": false; "isSignal": true; }; "itemTemplate": { "alias": "itemTemplate"; "required": false; "isSignal": true; }; "dataSource": { "alias": "dataSource"; "required": false; "isSignal": true; }; "keyField": { "alias": "keyField"; "required": false; "isSignal": true; }; "indexField": { "alias": "indexField"; "required": false; "isSignal": true; }; "titleField": { "alias": "titleField"; "required": false; "isSignal": true; }; "cssClassField": { "alias": "cssClassField"; "required": false; "isSignal": true; }; "priorityField": { "alias": "priorityField"; "required": false; "isSignal": true; }; "statusKeyField": { "alias": "statusKeyField"; "required": false; "isSignal": true; }; "descriptionField": { "alias": "descriptionField"; "required": false; "isSignal": true; }; "emptyTemplate": { "alias": "emptyTemplate"; "required": false; "isSignal": true; }; "headerTemplate": { "alias": "headerTemplate"; "required": false; "isSignal": true; }; "footerTemplate": { "alias": "footerTemplate"; "required": false; "isSignal": true; }; "contentFooterTemplate": { "alias": "contentFooterTemplate"; "required": false; "isSignal": true; }; "tooltipTemplate": { "alias": "tooltipTemplate"; "required": false; "isSignal": true; }; }, { "onBeforeDrop": "onBeforeDrop"; "onSortChanged": "onSortChanged"; "onItemClick": "onItemClick"; "onActionClick": "onActionClick"; "onItemDblClick": "onItemDblClick"; "onItemRightClick": "onItemRightClick"; }, never, never, true, never>;
50
99
  }
51
100
 
52
101
  type AXKanbanItem = {
@@ -75,6 +124,15 @@ interface AXKanbanSortEvent extends NXNativeEvent<AXKanbanComponent, MouseEvent>
75
124
  interface AXKanbanMouseEvent extends NXNativeEvent<AXKanbanComponent, MouseEvent> {
76
125
  item: any;
77
126
  }
127
+ interface AXKanbanBeforeDropEvent extends NXNativeEvent<AXKanbanComponent, MouseEvent> {
128
+ item: any;
129
+ previousStatusKey: any;
130
+ currentStatusKey: any;
131
+ previousIndex: number;
132
+ currentIndex: number;
133
+ canceled: boolean;
134
+ wait: (promise: Promise<any>) => void;
135
+ }
78
136
 
79
137
  export { AXKanbanComponent };
80
- export type { AXKanbanItem, AXKanbanMouseEvent, AXKanbanSortEvent, AXKanbanStatus };
138
+ export type { AXKanbanBeforeDropEvent, AXKanbanItem, AXKanbanMouseEvent, AXKanbanSortEvent, AXKanbanStatus };
package/kbd/index.d.ts CHANGED
@@ -1,9 +1,12 @@
1
- import * as i0 from '@angular/core';
1
+ import * as _angular_core from '@angular/core';
2
2
  import { NXComponent } from '@acorex/cdk/common';
3
3
 
4
4
  declare class AXKBDItemComponent extends NXComponent {
5
- keys: i0.InputSignal<string | string[]>;
6
- modifierKeys: i0.WritableSignal<string[]>;
5
+ keys: _angular_core.InputSignal<string | string[]>;
6
+ modifierKeys: _angular_core.WritableSignal<string[]>;
7
+ join: _angular_core.InputSignal<"split" | "joined">;
8
+ look: _angular_core.ModelSignal<"fill" | "solid">;
9
+ lookClass: _angular_core.Signal<string>;
7
10
  /**
8
11
  * Capitalizes the first letter of the provided text.
9
12
  *
@@ -11,13 +14,16 @@ declare class AXKBDItemComponent extends NXComponent {
11
14
  * @returns The text with its first character uppercased
12
15
  */
13
16
  protected capitalizeFirstLetter(text: string): string;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<AXKBDItemComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<AXKBDItemComponent, "ax-kbd-item", never, { "keys": { "alias": "keys"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
17
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXKBDItemComponent, never>;
18
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXKBDItemComponent, "ax-kbd-item", never, { "keys": { "alias": "keys"; "required": false; "isSignal": true; }; "join": { "alias": "join"; "required": false; "isSignal": true; }; "look": { "alias": "look"; "required": false; "isSignal": true; }; }, { "look": "lookChange"; }, never, never, true, never>;
16
19
  }
17
20
 
18
21
  declare class AXKBDComponent extends NXComponent {
19
- static ɵfac: i0.ɵɵFactoryDeclaration<AXKBDComponent, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<AXKBDComponent, "ax-kbd", never, {}, {}, never, ["ax-kbd-item"], true, never>;
22
+ #private;
23
+ private kbdItem;
24
+ look: _angular_core.InputSignal<"fill" | "solid">;
25
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXKBDComponent, never>;
26
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXKBDComponent, "ax-kbd", never, { "look": { "alias": "look"; "required": false; "isSignal": true; }; }, {}, ["kbdItem"], ["ax-kbd-item"], true, never>;
21
27
  }
22
28
 
23
29
  export { AXKBDComponent, AXKBDItemComponent };
@@ -81,7 +81,7 @@ declare class AXLoadingComponent extends MXBaseComponent implements OnInit {
81
81
  /**
82
82
  * @ignore
83
83
  */
84
- protected _handleAttched(ref: CdkPortalOutletAttachedRef): void;
84
+ protected _handleAttached(ref: CdkPortalOutletAttachedRef): void;
85
85
  static ɵfac: i0.ɵɵFactoryDeclaration<AXLoadingComponent, never>;
86
86
  static ɵcmp: i0.ɵɵComponentDeclaration<AXLoadingComponent, "ax-loading", never, { "visible": { "alias": "visible"; "required": false; }; "type": { "alias": "type"; "required": false; }; "context": { "alias": "context"; "required": false; }; }, { "visibleChange": "visibleChange"; }, never, never, true, never>;
87
87
  }
@@ -23,12 +23,15 @@ type AXMediaViewerData = {
23
23
  name?: string;
24
24
  size?: string;
25
25
  type: 'image' | 'audio' | 'pdf' | 'video';
26
- url: string;
27
- thumbnailUrl?: string;
26
+ url: string | (() => Promise<string>);
27
+ thumbnailUrl?: string | (() => Promise<string>);
28
28
  tooltip?: string;
29
29
  };
30
30
  declare class AXMediaViewerBaseComponent {
31
- message: AXMediaViewerData;
31
+ message: {
32
+ data: AXMediaViewerData;
33
+ index: number;
34
+ };
32
35
  static ɵfac: i0.ɵɵFactoryDeclaration<AXMediaViewerBaseComponent, never>;
33
36
  static ɵprov: i0.ɵɵInjectableDeclaration<AXMediaViewerBaseComponent>;
34
37
  }
@@ -36,12 +39,13 @@ declare class AXMediaViewerBaseComponent {
36
39
  declare class AXMediaViewerService {
37
40
  dataArray: i0.WritableSignal<AXMediaViewerData[]>;
38
41
  selectedIndex: i0.WritableSignal<number>;
42
+ dirtyItems: Map<any, any>;
39
43
  static ɵfac: i0.ɵɵFactoryDeclaration<AXMediaViewerService, never>;
40
44
  static ɵprov: i0.ɵɵInjectableDeclaration<AXMediaViewerService>;
41
45
  }
42
46
 
43
47
  type Thumbnail = {
44
- tubmnailImage: string;
48
+ thumbnailImage: string | (() => Promise<string>);
45
49
  svg: string;
46
50
  type: string;
47
51
  id: string;
@@ -69,8 +73,9 @@ declare class AXMediaViewerContainerComponent implements OnDestroy {
69
73
  ngOnDestroy(): void;
70
74
  next(): void;
71
75
  prev(): void;
72
- interVal: any;
76
+ private interVal?;
73
77
  goToIndex(index: number, speed?: number): void;
78
+ private init;
74
79
  static ɵfac: i0.ɵɵFactoryDeclaration<AXMediaViewerContainerComponent, never>;
75
80
  static ɵcmp: i0.ɵɵComponentDeclaration<AXMediaViewerContainerComponent, "ax-media-viewer-container", never, { "dataArray": { "alias": "dataArray"; "required": false; "isSignal": true; }; "thumbnail": { "alias": "thumbnail"; "required": false; "isSignal": true; }; "pagination": { "alias": "pagination"; "required": false; "isSignal": true; }; }, {}, ["fullScreenButton"], ["ax-header", "ax-suffix", "ax-prefix"], true, never>;
76
81
  }
@@ -87,6 +92,7 @@ declare class AXMediaViewerSliderComponent {
87
92
  #private;
88
93
  protected service: AXMediaViewerService;
89
94
  dataObject: i0.InputSignal<AXMediaViewerData>;
95
+ index: i0.InputSignal<unknown>;
90
96
  /** @ignore */
91
97
  protected portal: i0.WritableSignal<ComponentPortal<any>>;
92
98
  /** @ignore */
@@ -94,12 +100,13 @@ declare class AXMediaViewerSliderComponent {
94
100
  /** @ignore */
95
101
  protected _handleAttached(ref: CdkPortalOutletAttachedRef): void;
96
102
  static ɵfac: i0.ɵɵFactoryDeclaration<AXMediaViewerSliderComponent, never>;
97
- static ɵcmp: i0.ɵɵComponentDeclaration<AXMediaViewerSliderComponent, "ax-media-viewer-slider", never, { "dataObject": { "alias": "dataObject"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
103
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXMediaViewerSliderComponent, "ax-media-viewer-slider", never, { "dataObject": { "alias": "dataObject"; "required": false; "isSignal": true; }; "index": { "alias": "index"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
98
104
  }
99
105
 
100
106
  declare class AXAudioPlayerComponent extends AXMediaViewerBaseComponent {
101
- dataObject: i0.WritableSignal<AXMediaViewerData>;
102
- constructor();
107
+ #private;
108
+ protected src: i0.WritableSignal<any>;
109
+ protected service: AXMediaViewerService;
103
110
  static ɵfac: i0.ɵɵFactoryDeclaration<AXAudioPlayerComponent, never>;
104
111
  static ɵcmp: i0.ɵɵComponentDeclaration<AXAudioPlayerComponent, "ax-audio-player", never, {}, {}, never, never, true, never>;
105
112
  }
@@ -112,19 +119,38 @@ declare class AXFileInfoComponent {
112
119
  }
113
120
 
114
121
  declare class AXImageViewerComponent extends AXMediaViewerBaseComponent {
122
+ #private;
123
+ protected hasError: i0.WritableSignal<boolean>;
124
+ protected src: i0.WritableSignal<any>;
125
+ protected service: AXMediaViewerService;
126
+ protected handleImageError(): void;
115
127
  static ɵfac: i0.ɵɵFactoryDeclaration<AXImageViewerComponent, never>;
116
128
  static ɵcmp: i0.ɵɵComponentDeclaration<AXImageViewerComponent, "ax-image-viewer", never, {}, {}, never, never, true, never>;
117
129
  }
118
130
 
119
131
  declare class PdfComponent extends AXMediaViewerBaseComponent {
132
+ #private;
120
133
  sanitizer: DomSanitizer;
134
+ protected src: i0.WritableSignal<any>;
135
+ protected service: AXMediaViewerService;
121
136
  static ɵfac: i0.ɵɵFactoryDeclaration<PdfComponent, never>;
122
137
  static ɵcmp: i0.ɵɵComponentDeclaration<PdfComponent, "ax-pdf", never, {}, {}, never, never, true, never>;
123
138
  }
124
139
 
140
+ declare class AXThumbnailViewerComponent extends AXMediaViewerBaseComponent {
141
+ #private;
142
+ protected hasError: i0.WritableSignal<boolean>;
143
+ protected src: i0.WritableSignal<any>;
144
+ item: i0.InputSignal<string | (() => Promise<string>)>;
145
+ protected handleImageError(): void;
146
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXThumbnailViewerComponent, never>;
147
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXThumbnailViewerComponent, "ax-thumbnail-viewer", never, { "item": { "alias": "item"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
148
+ }
149
+
125
150
  declare class VideoPlayerComponent extends AXMediaViewerBaseComponent {
126
- dataObject: i0.WritableSignal<AXMediaViewerData>;
127
- constructor();
151
+ #private;
152
+ protected src: i0.WritableSignal<any>;
153
+ protected service: AXMediaViewerService;
128
154
  static ɵfac: i0.ɵɵFactoryDeclaration<VideoPlayerComponent, never>;
129
155
  static ɵcmp: i0.ɵɵComponentDeclaration<VideoPlayerComponent, "ax-video", never, {}, {}, never, never, true, never>;
130
156
  }
@@ -137,9 +163,9 @@ declare class AXMediaViewerModule {
137
163
  static forRoot(config?: AXMediaViewerModuleConfig): ModuleWithProviders<AXMediaViewerModule>;
138
164
  static forChild(config?: AXMediaViewerModuleConfig): ModuleWithProviders<AXMediaViewerModule>;
139
165
  static ɵfac: i0.ɵɵFactoryDeclaration<AXMediaViewerModule, never>;
140
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXMediaViewerModule, never, [typeof i1.CommonModule, typeof i2.AXButtonModule, typeof i3.AXDecoratorModule, typeof i4.CdkPortalOutlet, typeof i5.FormsModule, typeof i6.AXImageModule, typeof i7.AXLoadingModule, typeof i8.AXCarouselDirective, typeof i9.AXPdfReaderModule, typeof i10.AXVideoPlayerModule, typeof AXMediaViewerContainerComponent, typeof AXMediaViewerSliderComponent, typeof AXAudioPlayerComponent, typeof AXImageViewerComponent, typeof PdfComponent, typeof VideoPlayerComponent, typeof AXFileInfoComponent], [typeof AXMediaViewerContainerComponent, typeof AXMediaViewerSliderComponent, typeof AXAudioPlayerComponent, typeof AXImageViewerComponent, typeof PdfComponent, typeof VideoPlayerComponent, typeof AXFileInfoComponent]>;
166
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXMediaViewerModule, never, [typeof i1.CommonModule, typeof i2.AXButtonModule, typeof i3.AXDecoratorModule, typeof i4.CdkPortalOutlet, typeof i5.FormsModule, typeof i6.AXImageModule, typeof i7.AXLoadingModule, typeof i8.AXCarouselDirective, typeof i9.AXPdfReaderModule, typeof i10.AXVideoPlayerModule, typeof AXMediaViewerContainerComponent, typeof AXMediaViewerSliderComponent, typeof AXAudioPlayerComponent, typeof AXImageViewerComponent, typeof PdfComponent, typeof VideoPlayerComponent, typeof AXFileInfoComponent, typeof AXThumbnailViewerComponent], [typeof AXMediaViewerContainerComponent, typeof AXMediaViewerSliderComponent, typeof AXAudioPlayerComponent, typeof AXImageViewerComponent, typeof PdfComponent, typeof VideoPlayerComponent, typeof AXFileInfoComponent, typeof AXThumbnailViewerComponent]>;
141
167
  static ɵinj: i0.ɵɵInjectorDeclaration<AXMediaViewerModule>;
142
168
  }
143
169
 
144
- export { AXAudioPlayerComponent, AXFileInfoComponent, AXImageViewerComponent, AXMediaViewerBaseComponent, AXMediaViewerContainerComponent, AXMediaViewerModule, AXMediaViewerSliderComponent, PdfComponent, VideoPlayerComponent };
170
+ export { AXAudioPlayerComponent, AXFileInfoComponent, AXImageViewerComponent, AXMediaViewerBaseComponent, AXMediaViewerContainerComponent, AXMediaViewerModule, AXMediaViewerSliderComponent, AXThumbnailViewerComponent, PdfComponent, VideoPlayerComponent };
145
171
  export type { AXMediaViewerData, AXMediaViewerModuleConfig, AXMediaViewerType };
package/package.json CHANGED
@@ -1,14 +1,13 @@
1
1
  {
2
2
  "name": "@acorex/components",
3
- "version": "21.0.1-next.4",
3
+ "version": "21.0.1-next.40",
4
4
  "peerDependencies": {
5
- "@acorex/core": "21.0.1-next.4",
6
- "@acorex/cdk": "21.0.1-next.4",
5
+ "@acorex/core": "21.0.1-next.40",
6
+ "@acorex/cdk": "21.0.1-next.40",
7
7
  "@angular/common": "^20.0.0",
8
8
  "@angular/core": "^20.0.0",
9
9
  "@angular/cdk": "^20.0.0",
10
10
  "polytype": ">=0.17.0",
11
- "imask": ">=7.6.1",
12
11
  "angular-imask": ">=7.6.1",
13
12
  "gridstack": "^11.1.2",
14
13
  "rrule": "^2.8.1",
package/paint/index.d.ts CHANGED
@@ -98,11 +98,6 @@ declare class AXPaintViewComponent implements OnDestroy {
98
98
  protected hostElem: ElementRef<any>;
99
99
  /** @ignore */
100
100
  private resizeEvent;
101
- /**
102
- * Specifies the class that pass to component.
103
- *
104
- */
105
- readonly customClass: _angular_core.InputSignal<string>;
106
101
  readonly paintBackgroundColor: _angular_core.InputSignal<"black" | "white">;
107
102
  /** @ignore */
108
103
  protected canvasElem: _angular_core.Signal<ElementRef<HTMLCanvasElement>>;
@@ -134,7 +129,7 @@ declare class AXPaintViewComponent implements OnDestroy {
134
129
  getOutPut(e: 'image/webp' | 'image/png' | 'image/jpeg'): void;
135
130
  get __hostClass(): string[];
136
131
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPaintViewComponent, never>;
137
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPaintViewComponent, "ax-paint-view", never, { "customClass": { "alias": "class"; "required": false; "isSignal": true; }; "paintBackgroundColor": { "alias": "paintBackgroundColor"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
132
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPaintViewComponent, "ax-paint-view", never, { "paintBackgroundColor": { "alias": "paintBackgroundColor"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
138
133
  }
139
134
 
140
135
  declare class AXPaintToolsSelectorComponent {
@@ -1,6 +1,6 @@
1
1
  import * as polytype from 'polytype';
2
2
  import * as _angular_core from '@angular/core';
3
- import { MXInputBaseValueComponent, MXLookComponent, AXDataSource, AXValueChangedEvent } from '@acorex/cdk/common';
3
+ import { MXInputBaseValueComponent, MXLookComponent, AXValueChangedEvent, AXDataSource } from '@acorex/cdk/common';
4
4
  import { CountryItem } from '@acorex/core/constants';
5
5
  import * as i1 from '@angular/common';
6
6
  import * as i2 from '@angular/forms';
@@ -56,7 +56,8 @@ declare class AXPhoneBoxComponent extends AXPhoneBoxComponent_base {
56
56
  /** @ignore */
57
57
  protected selectedCountry: _angular_core.WritableSignal<CountryItem>;
58
58
  /** @ignore */
59
- protected _handleModelChange(value: string | null): void;
59
+ protected _handleModelChange(e: AXValueChangedEvent<any>): void;
60
+ protected internalValueChanged(value: any): void;
60
61
  /** @ignore */
61
62
  protected dataSource: AXDataSource<CountryItem>;
62
63
  /** @ignore */
@@ -74,16 +75,20 @@ declare class AXPhoneBoxComponent extends AXPhoneBoxComponent_base {
74
75
  * @returns void - No return value. Updates the internal countries list.
75
76
  */
76
77
  setCountries(): void;
78
+ protected handleKeyDown(e: KeyboardEvent): void;
79
+ private parsePhoneNumber;
77
80
  /**
78
- * Sets the default selected country based on the provided country code or the first country in the list.
81
+ * Formats a national phone number according to the country's format pattern.
82
+ * The format pattern uses '0' as digit placeholders and preserves other characters (like spaces).
79
83
  *
80
- * @returns void - No return value. Updates the selected country.
84
+ * @param number - The raw national number (digits only)
85
+ * @param format - The country's phone number format pattern (e.g., '000 000 0000')
86
+ * @returns The formatted national number with spaces according to the format
81
87
  */
82
- setDefaultValue(): void;
83
- protected handleKeyDown(e: KeyboardEvent): void;
84
- private parsePhoneNumber;
88
+ private formatNationalNumber;
85
89
  /** @ignore */
86
90
  _handleCountryValueChanged(event: AXValueChangedEvent): void;
91
+ private removeValidation;
87
92
  private get __hostName();
88
93
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPhoneBoxComponent, never>;
89
94
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPhoneBoxComponent, "ax-phone-box", never, { "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "value": { "alias": "value"; "required": false; }; "state": { "alias": "state"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "allowNull": { "alias": "allowNull"; "required": false; }; "type": { "alias": "type"; "required": false; }; "autoComplete": { "alias": "autoComplete"; "required": false; }; "look": { "alias": "look"; "required": false; }; "classNames": { "alias": "class"; "required": false; }; "precode": { "alias": "precode"; "required": false; "isSignal": true; }; "country": { "alias": "country"; "required": false; "isSignal": true; }; "included": { "alias": "included"; "required": false; "isSignal": true; }; "excluded": { "alias": "excluded"; "required": false; "isSignal": true; }; }, { "onBlur": "onBlur"; "onFocus": "onFocus"; "valueChange": "valueChange"; "stateChange": "stateChange"; "onValueChanged": "onValueChanged"; "readonlyChange": "readonlyChange"; "disabledChange": "disabledChange"; "onKeyDown": "onKeyDown"; "onKeyUp": "onKeyUp"; "onKeyPress": "onKeyPress"; "country": "countryChange"; }, never, ["ax-validation-rule", "ax-clear-button "], true, never>;
@@ -11,6 +11,7 @@ type AXPopoverCloseTrigger = 'manual' | 'clickOut' | 'leave';
11
11
  * A popover component with custom encapsulation and change detection settings.
12
12
  */
13
13
  declare class AXPopoverComponent extends MXBaseComponent implements OnDestroy {
14
+ #private;
14
15
  private platform;
15
16
  private document;
16
17
  private platformID;
@@ -25,12 +26,18 @@ declare class AXPopoverComponent extends MXBaseComponent implements OnDestroy {
25
26
  /** @ignore */
26
27
  private _outsideClickHandler;
27
28
  /** @ignore */
29
+ private _scrollHandler;
30
+ /** @ignore */
31
+ private _scrollListenerActive;
32
+ /** @ignore */
28
33
  private resizeObserver;
29
34
  /** @ignore */
30
35
  private resize$;
31
36
  /** @ignore */
32
37
  private _disabled;
33
38
  readonly width: i0.InputSignal<string>;
39
+ readonly forceDisableActionSheetStyle: i0.InputSignal<boolean>;
40
+ private translateService;
34
41
  /**
35
42
  * Gets or sets whether the popover is disabled.
36
43
  * When disabled, the popover will not open and will close if already open.
@@ -68,8 +75,6 @@ declare class AXPopoverComponent extends MXBaseComponent implements OnDestroy {
68
75
  */
69
76
  set target(v: Element | ElementRef | MXBaseComponent);
70
77
  /** @ignore */
71
- private _defaultPlacements;
72
- /** @ignore */
73
78
  private _placements;
74
79
  /** @ignore */
75
80
  private _placement;
@@ -124,11 +129,19 @@ declare class AXPopoverComponent extends MXBaseComponent implements OnDestroy {
124
129
  /**
125
130
  * Delay in milliseconds before the popover opens after a trigger event.
126
131
  */
127
- openAfter: number;
132
+ private _openAfter;
133
+ get openAfter(): number;
134
+ set openAfter(value: number);
128
135
  /**
129
136
  * Delay in milliseconds before the popover closes after a trigger event.
130
137
  */
131
- closeAfter: number;
138
+ private _closeAfter;
139
+ get closeAfter(): number;
140
+ set closeAfter(value: number);
141
+ /**
142
+ * Whether to update the popover position when scrolling.
143
+ */
144
+ repositionOnScroll: boolean;
132
145
  /**
133
146
  * CSS class to apply to the backdrop element.
134
147
  */
@@ -164,6 +177,16 @@ declare class AXPopoverComponent extends MXBaseComponent implements OnDestroy {
164
177
  /** @ignore */
165
178
  private removeOverlayEvents;
166
179
  /** @ignore */
180
+ private setupScrollListener;
181
+ /** @ignore */
182
+ private removeScrollListener;
183
+ /**
184
+ * Checks if the clicked element is inside a child overlay (e.g., selectbox dropdown).
185
+ * Child overlays are identified by having a higher z-index than this popover's overlay.
186
+ * @ignore
187
+ */
188
+ private isClickInsideChildOverlay;
189
+ /** @ignore */
167
190
  private handleOverlayDisposed;
168
191
  /**
169
192
  * Toggles the component's open state.
@@ -215,11 +238,10 @@ declare class AXPopoverComponent extends MXBaseComponent implements OnDestroy {
215
238
  private initializeResizeObserver;
216
239
  /** @ignore */
217
240
  private disconnectResizeObserver;
218
- protected ngOnInit(): void;
219
241
  /** @ignore */
220
242
  ngOnDestroy(): void;
221
243
  static ɵfac: i0.ɵɵFactoryDeclaration<AXPopoverComponent, never>;
222
- static ɵcmp: i0.ɵɵComponentDeclaration<AXPopoverComponent, "ax-popover", never, { "width": { "alias": "width"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; }; "offsetX": { "alias": "offsetX"; "required": false; }; "offsetY": { "alias": "offsetY"; "required": false; }; "target": { "alias": "target"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "content": { "alias": "content"; "required": false; }; "openOn": { "alias": "openOn"; "required": false; }; "closeOn": { "alias": "closeOn"; "required": false; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; }; "openAfter": { "alias": "openAfter"; "required": false; }; "closeAfter": { "alias": "closeAfter"; "required": false; }; "backdropClass": { "alias": "backdropClass"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "adaptivityEnabled": { "alias": "adaptivityEnabled"; "required": false; }; }, { "onOpened": "onOpened"; "onClosed": "onClosed"; }, never, ["*"], true, never>;
244
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXPopoverComponent, "ax-popover", never, { "width": { "alias": "width"; "required": false; "isSignal": true; }; "forceDisableActionSheetStyle": { "alias": "forceDisableActionSheetStyle"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; }; "offsetX": { "alias": "offsetX"; "required": false; }; "offsetY": { "alias": "offsetY"; "required": false; }; "target": { "alias": "target"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "content": { "alias": "content"; "required": false; }; "openOn": { "alias": "openOn"; "required": false; }; "closeOn": { "alias": "closeOn"; "required": false; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; }; "openAfter": { "alias": "openAfter"; "required": false; }; "closeAfter": { "alias": "closeAfter"; "required": false; }; "repositionOnScroll": { "alias": "repositionOnScroll"; "required": false; }; "backdropClass": { "alias": "backdropClass"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "adaptivityEnabled": { "alias": "adaptivityEnabled"; "required": false; }; }, { "onOpened": "onOpened"; "onClosed": "onClosed"; }, never, ["*"], true, never>;
223
245
  }
224
246
 
225
247
  declare class AXPopoverModule {
package/popup/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { AXComponentType, AXComponentInputs } from '@acorex/core/components';
2
1
  import * as i0 from '@angular/core';
3
2
  import { TemplateRef, ViewContainerRef, StaticProvider, OnInit, OnDestroy } from '@angular/core';
4
- import { Subject } from 'rxjs';
5
3
  import * as i2 from '@acorex/cdk/common';
6
4
  import { MXBaseComponent, AXComponentClosedPromise } from '@acorex/cdk/common';
5
+ import { AXComponentType, AXComponentInputs } from '@acorex/core/components';
6
+ import { Subject } from 'rxjs';
7
7
  import * as i1 from '@angular/common';
8
8
  import * as i3 from '@acorex/components/decorators';
9
9
  import * as i4 from '@acorex/core/translation';
@@ -16,7 +16,9 @@ interface AXPopupConfig {
16
16
  header?: boolean;
17
17
  maximizable?: boolean;
18
18
  size?: AXPopupSizeType;
19
+ /** @deprecated Use `inputs` instead to pass data to the popup component. */
19
20
  data?: unknown;
21
+ inputs?: unknown;
20
22
  draggable?: boolean;
21
23
  hasBackdrop?: boolean;
22
24
  backdropClass?: string;
@@ -43,6 +45,8 @@ interface AXPopupRef<TResult = any> {
43
45
  /** Brings this popup to the front of all other overlays */
44
46
  bringToFront: () => void;
45
47
  onClose: Subject<TResult>;
48
+ /** The component instance rendered inside the popup (available after content is rendered) */
49
+ componentInstance?: unknown;
46
50
  }
47
51
  declare abstract class AXPopupComponentBase {
48
52
  __popup__: i0.InputSignal<AXPopupRef<any>>;
@@ -53,43 +57,6 @@ declare abstract class AXPopupComponentBase {
53
57
  static ɵdir: i0.ɵɵDirectiveDeclaration<AXPopupComponentBase, never, never, { "__popup__": { "alias": "__popup__"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
54
58
  }
55
59
 
56
- declare class AXPopupStateService {
57
- private popupList;
58
- private overlayService;
59
- /**
60
- * Opens a popup with the specified content and configuration.
61
- * @param content - Component or template to display
62
- * @param config - Configuration options for the popup
63
- * @returns Promise<AXPopupRef> - Reference to the opened popup
64
- */
65
- open<TResult = any>(content: AXPopupContentType, config: AXPopupConfig): Promise<AXPopupRef<TResult>>;
66
- /**
67
- * Closes a popup by its ID.
68
- * @param id - The popup ID to close
69
- * @param data - Optional data to pass to the close event
70
- */
71
- close<TResult = any>(id: number, data?: TResult): Promise<void>;
72
- /**
73
- * Sets input values for a popup by its ID.
74
- * @param id - The popup ID
75
- * @param values - Object containing input values to set
76
- */
77
- setInputs(id: number, values: AXComponentInputs): Promise<void>;
78
- /**
79
- * Sets the title for a popup by its ID.
80
- * @param id - The popup ID
81
- * @param title - The new title
82
- */
83
- setTitle(id: number, title: string): Promise<void>;
84
- /**
85
- * Brings a popup to the front of all other overlays.
86
- * @param id - The popup ID to bring to front
87
- */
88
- bringToFront(id: number): void;
89
- static ɵfac: i0.ɵɵFactoryDeclaration<AXPopupStateService, never>;
90
- static ɵprov: i0.ɵɵInjectableDeclaration<AXPopupStateService>;
91
- }
92
-
93
60
  /**
94
61
  * The Popup is a component which displays content in a dialog overlay
95
62
  *
@@ -97,7 +64,6 @@ declare class AXPopupStateService {
97
64
  */
98
65
  declare class AXPopupComponent extends MXBaseComponent implements OnInit, OnDestroy {
99
66
  private _zone;
100
- private _document;
101
67
  private loadingService;
102
68
  private _platform;
103
69
  private componentService;
@@ -179,7 +145,8 @@ declare class AXPopupModule {
179
145
  * @category Components
180
146
  */
181
147
  declare class AXPopupService {
182
- private stateService;
148
+ private popupList;
149
+ private overlayService;
183
150
  /**
184
151
  * Open popup 1
185
152
  */
@@ -188,9 +155,39 @@ declare class AXPopupService {
188
155
  * Open popup 2
189
156
  */
190
157
  open(content: AXPopupContentType, config?: AXPopupConfig): AXComponentClosedPromise;
158
+ /**
159
+ * Opens a popup with the specified content and configuration.
160
+ * @param content - Component or template to display
161
+ * @param config - Configuration options for the popup
162
+ * @returns Promise<AXPopupRef> - Reference to the opened popup
163
+ */
164
+ private openInternal;
165
+ /**
166
+ * Closes a popup by its ID.
167
+ * @param id - The popup ID to close
168
+ * @param data - Optional data to pass to the close event
169
+ */
170
+ close<TResult = any>(id: number, data?: TResult): void;
171
+ /**
172
+ * Sets input values for a popup by its ID.
173
+ * @param id - The popup ID
174
+ * @param values - Object containing input values to set
175
+ */
176
+ setInputs(id: number, values: AXComponentInputs): void;
177
+ /**
178
+ * Sets the title for a popup by its ID.
179
+ * @param id - The popup ID
180
+ * @param title - The new title
181
+ */
182
+ setTitle(id: number, title: string): void;
183
+ /**
184
+ * Brings a popup to the front of all other overlays.
185
+ * @param id - The popup ID to bring to front
186
+ */
187
+ bringToFront(id: number): void;
191
188
  static ɵfac: i0.ɵɵFactoryDeclaration<AXPopupService, never>;
192
189
  static ɵprov: i0.ɵɵInjectableDeclaration<AXPopupService>;
193
190
  }
194
191
 
195
- export { AXPopupComponent, AXPopupComponentBase, AXPopupModule, AXPopupService, AXPopupStateService };
192
+ export { AXPopupComponent, AXPopupComponentBase, AXPopupModule, AXPopupService };
196
193
  export type { AXPopupConfig, AXPopupContentType, AXPopupData, AXPopupRef, AXPopupSizeType };
@@ -1,6 +1,6 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
  import { ElementRef, Renderer2 } from '@angular/core';
3
- import { MXValueComponent } from '@acorex/cdk/common';
3
+ import { MXValueComponent, AXStyleColorType } from '@acorex/cdk/common';
4
4
  import * as i1 from '@angular/common';
5
5
 
6
6
  /**
@@ -19,6 +19,7 @@ declare class AXRatePickerComponent extends MXValueComponent<number> {
19
19
  * @default 'fa-star'
20
20
  */
21
21
  readonly iconName: _angular_core.InputSignal<string>;
22
+ readonly color: _angular_core.InputSignal<AXStyleColorType>;
22
23
  /**
23
24
  * @description
24
25
  * Maximum value for the rating.
@@ -114,22 +115,11 @@ declare class AXRatePickerComponent extends MXValueComponent<number> {
114
115
  private onEnd;
115
116
  private countDecimals;
116
117
  /**
117
- * @description
118
- * Determines if the component is active (i.e., not readonly or disabled).
119
- */
120
- get isActive(): boolean;
121
- /**
122
- * @description
123
- * Determines if the component is in readonly mode.
124
- */
125
- get isReadonly(): boolean;
126
- /**
127
- * @description
128
- * Determines if the component is disabled.
118
+ * @ignore
129
119
  */
130
- get isDisabled(): boolean;
120
+ private get __hostClass();
131
121
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXRatePickerComponent, never>;
132
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXRatePickerComponent, "ax-rate-picker", never, { "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "iconName": { "alias": "iconName"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "hasTransition": { "alias": "hasTransition"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
122
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXRatePickerComponent, "ax-rate-picker", never, { "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "iconName": { "alias": "iconName"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "hasTransition": { "alias": "hasTransition"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
133
123
  }
134
124
 
135
125
  declare class AXRatePickerModule {