@acorex/components 21.0.0-next.5 → 21.0.0-next.51

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 (282) hide show
  1. package/accordion/index.d.ts +0 -1
  2. package/autocomplete/index.d.ts +23 -9
  3. package/button/index.d.ts +38 -17
  4. package/button-group/index.d.ts +6 -4
  5. package/calendar/index.d.ts +4 -0
  6. package/chips/index.d.ts +3 -8
  7. package/code-editor/README.md +291 -1
  8. package/code-editor/index.d.ts +262 -20
  9. package/collapse/index.d.ts +4 -6
  10. package/command/index.d.ts +1 -0
  11. package/conversation2/README.md +426 -0
  12. package/conversation2/index.d.ts +6139 -0
  13. package/data-table/index.d.ts +97 -261
  14. package/dialog/index.d.ts +1 -1
  15. package/drawer/README.md +2 -2
  16. package/drawer/index.d.ts +33 -57
  17. package/drawer-legacy/README.md +3 -0
  18. package/drawer-legacy/index.d.ts +86 -0
  19. package/editor/README.md +3 -0
  20. package/editor/index.d.ts +79 -0
  21. package/fesm2022/acorex-components-accordion.mjs +19 -24
  22. package/fesm2022/acorex-components-accordion.mjs.map +1 -1
  23. package/fesm2022/acorex-components-action-sheet.mjs +12 -12
  24. package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
  25. package/fesm2022/acorex-components-alert.mjs +14 -14
  26. package/fesm2022/acorex-components-alert.mjs.map +1 -1
  27. package/fesm2022/acorex-components-aspect-ratio.mjs +4 -4
  28. package/fesm2022/acorex-components-aspect-ratio.mjs.map +1 -1
  29. package/fesm2022/acorex-components-audio-wave.mjs +12 -11
  30. package/fesm2022/acorex-components-audio-wave.mjs.map +1 -1
  31. package/fesm2022/acorex-components-autocomplete.mjs +30 -13
  32. package/fesm2022/acorex-components-autocomplete.mjs.map +1 -1
  33. package/fesm2022/acorex-components-avatar.mjs +13 -13
  34. package/fesm2022/acorex-components-avatar.mjs.map +1 -1
  35. package/fesm2022/acorex-components-badge.mjs +10 -10
  36. package/fesm2022/acorex-components-badge.mjs.map +1 -1
  37. package/fesm2022/acorex-components-bottom-navigation.mjs +12 -12
  38. package/fesm2022/acorex-components-bottom-navigation.mjs.map +1 -1
  39. package/fesm2022/acorex-components-breadcrumbs.mjs +12 -12
  40. package/fesm2022/acorex-components-breadcrumbs.mjs.map +1 -1
  41. package/fesm2022/acorex-components-button-group.mjs +25 -21
  42. package/fesm2022/acorex-components-button-group.mjs.map +1 -1
  43. package/fesm2022/acorex-components-button.mjs +68 -28
  44. package/fesm2022/acorex-components-button.mjs.map +1 -1
  45. package/fesm2022/acorex-components-calendar.mjs +39 -18
  46. package/fesm2022/acorex-components-calendar.mjs.map +1 -1
  47. package/fesm2022/acorex-components-check-box.mjs +11 -11
  48. package/fesm2022/acorex-components-check-box.mjs.map +1 -1
  49. package/fesm2022/acorex-components-chips.mjs +12 -14
  50. package/fesm2022/acorex-components-chips.mjs.map +1 -1
  51. package/fesm2022/acorex-components-circular-progress.mjs +13 -11
  52. package/fesm2022/acorex-components-circular-progress.mjs.map +1 -1
  53. package/fesm2022/acorex-components-code-editor.mjs +532 -200
  54. package/fesm2022/acorex-components-code-editor.mjs.map +1 -1
  55. package/fesm2022/acorex-components-collapse.mjs +22 -34
  56. package/fesm2022/acorex-components-collapse.mjs.map +1 -1
  57. package/fesm2022/acorex-components-color-box.mjs +11 -11
  58. package/fesm2022/acorex-components-color-box.mjs.map +1 -1
  59. package/fesm2022/acorex-components-color-palette.mjs +32 -32
  60. package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
  61. package/fesm2022/acorex-components-command.mjs +18 -11
  62. package/fesm2022/acorex-components-command.mjs.map +1 -1
  63. package/fesm2022/acorex-components-comment.mjs +34 -34
  64. package/fesm2022/acorex-components-comment.mjs.map +1 -1
  65. package/fesm2022/acorex-components-conversation.mjs +56 -65
  66. package/fesm2022/acorex-components-conversation.mjs.map +1 -1
  67. package/fesm2022/acorex-components-conversation2.mjs +17641 -0
  68. package/fesm2022/acorex-components-conversation2.mjs.map +1 -0
  69. package/fesm2022/acorex-components-cron-job.mjs +53 -53
  70. package/fesm2022/acorex-components-cron-job.mjs.map +1 -1
  71. package/fesm2022/acorex-components-data-list.mjs +5 -5
  72. package/fesm2022/acorex-components-data-list.mjs.map +1 -1
  73. package/fesm2022/acorex-components-data-pager.mjs +63 -47
  74. package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
  75. package/fesm2022/acorex-components-data-table.mjs +509 -551
  76. package/fesm2022/acorex-components-data-table.mjs.map +1 -1
  77. package/fesm2022/acorex-components-datetime-box.mjs +10 -10
  78. package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
  79. package/fesm2022/acorex-components-datetime-input.mjs +10 -10
  80. package/fesm2022/acorex-components-datetime-input.mjs.map +1 -1
  81. package/fesm2022/acorex-components-datetime-picker.mjs +11 -11
  82. package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
  83. package/fesm2022/acorex-components-decorators.mjs +96 -54
  84. package/fesm2022/acorex-components-decorators.mjs.map +1 -1
  85. package/fesm2022/acorex-components-dialog.mjs +26 -16
  86. package/fesm2022/acorex-components-dialog.mjs.map +1 -1
  87. package/fesm2022/acorex-components-drawer-legacy.mjs +218 -0
  88. package/fesm2022/acorex-components-drawer-legacy.mjs.map +1 -0
  89. package/fesm2022/acorex-components-drawer.mjs +66 -150
  90. package/fesm2022/acorex-components-drawer.mjs.map +1 -1
  91. package/fesm2022/acorex-components-dropdown-button.mjs +9 -9
  92. package/fesm2022/acorex-components-dropdown-button.mjs.map +1 -1
  93. package/fesm2022/acorex-components-dropdown.mjs +20 -18
  94. package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
  95. package/fesm2022/acorex-components-editor.mjs +195 -0
  96. package/fesm2022/acorex-components-editor.mjs.map +1 -0
  97. package/fesm2022/acorex-components-file-explorer.mjs +34 -34
  98. package/fesm2022/acorex-components-file-explorer.mjs.map +1 -1
  99. package/fesm2022/acorex-components-flow-chart.mjs +18 -18
  100. package/fesm2022/acorex-components-flow-chart.mjs.map +1 -1
  101. package/fesm2022/acorex-components-form.mjs +62 -37
  102. package/fesm2022/acorex-components-form.mjs.map +1 -1
  103. package/fesm2022/acorex-components-grid-layout-builder.mjs +14 -15
  104. package/fesm2022/acorex-components-grid-layout-builder.mjs.map +1 -1
  105. package/fesm2022/acorex-components-image-editor.mjs +206 -156
  106. package/fesm2022/acorex-components-image-editor.mjs.map +1 -1
  107. package/fesm2022/acorex-components-image.mjs +10 -10
  108. package/fesm2022/acorex-components-image.mjs.map +1 -1
  109. package/fesm2022/acorex-components-json-viewer.mjs +9 -9
  110. package/fesm2022/acorex-components-json-viewer.mjs.map +1 -1
  111. package/fesm2022/acorex-components-kanban.mjs +9 -7
  112. package/fesm2022/acorex-components-kanban.mjs.map +1 -1
  113. package/fesm2022/acorex-components-kbd.mjs +29 -11
  114. package/fesm2022/acorex-components-kbd.mjs.map +1 -1
  115. package/fesm2022/acorex-components-label.mjs +9 -9
  116. package/fesm2022/acorex-components-label.mjs.map +1 -1
  117. package/fesm2022/acorex-components-list.mjs +10 -10
  118. package/fesm2022/acorex-components-list.mjs.map +1 -1
  119. package/fesm2022/acorex-components-loading-dialog.mjs +23 -14
  120. package/fesm2022/acorex-components-loading-dialog.mjs.map +1 -1
  121. package/fesm2022/acorex-components-loading.mjs +23 -23
  122. package/fesm2022/acorex-components-loading.mjs.map +1 -1
  123. package/fesm2022/acorex-components-map.mjs +290 -31
  124. package/fesm2022/acorex-components-map.mjs.map +1 -1
  125. package/fesm2022/acorex-components-media-viewer.mjs +95 -99
  126. package/fesm2022/acorex-components-media-viewer.mjs.map +1 -1
  127. package/fesm2022/acorex-components-menu.mjs +24 -24
  128. package/fesm2022/acorex-components-menu.mjs.map +1 -1
  129. package/fesm2022/{acorex-components-modal-acorex-components-modal-h5Y-qcbh.mjs → acorex-components-modal-acorex-components-modal-BnUdtPke.mjs} +24 -24
  130. package/fesm2022/acorex-components-modal-acorex-components-modal-BnUdtPke.mjs.map +1 -0
  131. package/fesm2022/acorex-components-modal-modal-content.component-Cgq-wx_m.mjs +214 -0
  132. package/fesm2022/acorex-components-modal-modal-content.component-Cgq-wx_m.mjs.map +1 -0
  133. package/fesm2022/acorex-components-modal.mjs +1 -1
  134. package/fesm2022/acorex-components-navbar.mjs +9 -9
  135. package/fesm2022/acorex-components-navbar.mjs.map +1 -1
  136. package/fesm2022/acorex-components-notification.mjs +16 -23
  137. package/fesm2022/acorex-components-notification.mjs.map +1 -1
  138. package/fesm2022/acorex-components-number-box-legacy.mjs +412 -0
  139. package/fesm2022/acorex-components-number-box-legacy.mjs.map +1 -0
  140. package/fesm2022/acorex-components-number-box.mjs +113 -331
  141. package/fesm2022/acorex-components-number-box.mjs.map +1 -1
  142. package/fesm2022/acorex-components-otp.mjs +10 -10
  143. package/fesm2022/acorex-components-otp.mjs.map +1 -1
  144. package/fesm2022/acorex-components-page.mjs +10 -10
  145. package/fesm2022/acorex-components-page.mjs.map +1 -1
  146. package/fesm2022/acorex-components-paint.mjs +35 -40
  147. package/fesm2022/acorex-components-paint.mjs.map +1 -1
  148. package/fesm2022/acorex-components-password-box.mjs +14 -14
  149. package/fesm2022/acorex-components-password-box.mjs.map +1 -1
  150. package/fesm2022/acorex-components-pdf-reader.mjs +9 -9
  151. package/fesm2022/acorex-components-pdf-reader.mjs.map +1 -1
  152. package/fesm2022/acorex-components-phone-box.mjs +47 -10
  153. package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
  154. package/fesm2022/acorex-components-picker.mjs +19 -19
  155. package/fesm2022/acorex-components-picker.mjs.map +1 -1
  156. package/fesm2022/acorex-components-popover.mjs +12 -12
  157. package/fesm2022/acorex-components-popover.mjs.map +1 -1
  158. package/fesm2022/acorex-components-popup.mjs +13 -13
  159. package/fesm2022/acorex-components-popup.mjs.map +1 -1
  160. package/fesm2022/acorex-components-progress-bar.mjs +11 -9
  161. package/fesm2022/acorex-components-progress-bar.mjs.map +1 -1
  162. package/fesm2022/acorex-components-qrcode.mjs +10 -10
  163. package/fesm2022/acorex-components-qrcode.mjs.map +1 -1
  164. package/fesm2022/acorex-components-query-builder.mjs +9 -9
  165. package/fesm2022/acorex-components-query-builder.mjs.map +1 -1
  166. package/fesm2022/acorex-components-radio.mjs +9 -9
  167. package/fesm2022/acorex-components-radio.mjs.map +1 -1
  168. package/fesm2022/acorex-components-rail-navigation.mjs +40 -38
  169. package/fesm2022/acorex-components-rail-navigation.mjs.map +1 -1
  170. package/fesm2022/acorex-components-range-slider.mjs +11 -11
  171. package/fesm2022/acorex-components-range-slider.mjs.map +1 -1
  172. package/fesm2022/acorex-components-rate-picker.mjs +20 -35
  173. package/fesm2022/acorex-components-rate-picker.mjs.map +1 -1
  174. package/fesm2022/acorex-components-rest-api-generator.mjs +23 -23
  175. package/fesm2022/acorex-components-rest-api-generator.mjs.map +1 -1
  176. package/fesm2022/acorex-components-result.mjs +8 -8
  177. package/fesm2022/acorex-components-result.mjs.map +1 -1
  178. package/fesm2022/acorex-components-routing-progress.mjs +8 -8
  179. package/fesm2022/acorex-components-routing-progress.mjs.map +1 -1
  180. package/fesm2022/acorex-components-rrule.mjs +111 -16
  181. package/fesm2022/acorex-components-rrule.mjs.map +1 -1
  182. package/fesm2022/acorex-components-scheduler-picker.mjs +2339 -0
  183. package/fesm2022/acorex-components-scheduler-picker.mjs.map +1 -0
  184. package/fesm2022/acorex-components-scheduler.mjs +52 -52
  185. package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
  186. package/fesm2022/acorex-components-scss.mjs +4 -4
  187. package/fesm2022/acorex-components-scss.mjs.map +1 -1
  188. package/fesm2022/acorex-components-search-box.mjs +23 -12
  189. package/fesm2022/acorex-components-search-box.mjs.map +1 -1
  190. package/fesm2022/acorex-components-select-box.mjs +36 -17
  191. package/fesm2022/acorex-components-select-box.mjs.map +1 -1
  192. package/fesm2022/acorex-components-selection-list-2.mjs +12 -12
  193. package/fesm2022/acorex-components-selection-list-2.mjs.map +1 -1
  194. package/fesm2022/acorex-components-selection-list.mjs +10 -10
  195. package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
  196. package/fesm2022/acorex-components-side-menu.mjs +31 -38
  197. package/fesm2022/acorex-components-side-menu.mjs.map +1 -1
  198. package/fesm2022/acorex-components-skeleton.mjs +8 -8
  199. package/fesm2022/acorex-components-skeleton.mjs.map +1 -1
  200. package/fesm2022/acorex-components-slider.mjs +13 -13
  201. package/fesm2022/acorex-components-slider.mjs.map +1 -1
  202. package/fesm2022/acorex-components-sliding-item.mjs +17 -17
  203. package/fesm2022/acorex-components-sliding-item.mjs.map +1 -1
  204. package/fesm2022/acorex-components-step-wizard.mjs +16 -16
  205. package/fesm2022/acorex-components-step-wizard.mjs.map +1 -1
  206. package/fesm2022/acorex-components-switch.mjs +14 -14
  207. package/fesm2022/acorex-components-switch.mjs.map +1 -1
  208. package/fesm2022/acorex-components-tabs.mjs +28 -20
  209. package/fesm2022/acorex-components-tabs.mjs.map +1 -1
  210. package/fesm2022/acorex-components-tag-box.mjs +51 -21
  211. package/fesm2022/acorex-components-tag-box.mjs.map +1 -1
  212. package/fesm2022/acorex-components-tag.mjs +47 -11
  213. package/fesm2022/acorex-components-tag.mjs.map +1 -1
  214. package/fesm2022/acorex-components-text-area.mjs +9 -9
  215. package/fesm2022/acorex-components-text-area.mjs.map +1 -1
  216. package/fesm2022/acorex-components-text-box.mjs +13 -13
  217. package/fesm2022/acorex-components-text-box.mjs.map +1 -1
  218. package/fesm2022/acorex-components-time-duration.mjs +54 -14
  219. package/fesm2022/acorex-components-time-duration.mjs.map +1 -1
  220. package/fesm2022/acorex-components-time-line.mjs +14 -29
  221. package/fesm2022/acorex-components-time-line.mjs.map +1 -1
  222. package/fesm2022/acorex-components-toast.mjs +14 -14
  223. package/fesm2022/acorex-components-toast.mjs.map +1 -1
  224. package/fesm2022/acorex-components-toolbar.mjs +9 -9
  225. package/fesm2022/acorex-components-toolbar.mjs.map +1 -1
  226. package/fesm2022/acorex-components-tooltip.mjs +15 -20
  227. package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
  228. package/fesm2022/acorex-components-tree-view-legacy.mjs +511 -0
  229. package/fesm2022/acorex-components-tree-view-legacy.mjs.map +1 -0
  230. package/fesm2022/acorex-components-tree-view.mjs +2223 -437
  231. package/fesm2022/acorex-components-tree-view.mjs.map +1 -1
  232. package/fesm2022/acorex-components-uploader.mjs +28 -641
  233. package/fesm2022/acorex-components-uploader.mjs.map +1 -1
  234. package/fesm2022/acorex-components-video-player.mjs +8 -8
  235. package/fesm2022/acorex-components-video-player.mjs.map +1 -1
  236. package/fesm2022/acorex-components-wysiwyg.mjs +229 -473
  237. package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
  238. package/fesm2022/acorex-components.mjs.map +1 -1
  239. package/file-explorer/index.d.ts +6 -6
  240. package/form/index.d.ts +3 -3
  241. package/grid-layout-builder/index.d.ts +1 -2
  242. package/image-editor/index.d.ts +11 -13
  243. package/kbd/index.d.ts +13 -7
  244. package/loading/index.d.ts +1 -1
  245. package/map/index.d.ts +28 -1
  246. package/media-viewer/index.d.ts +7 -3
  247. package/notification/index.d.ts +0 -2
  248. package/number-box/README.md +2 -2
  249. package/number-box/index.d.ts +32 -171
  250. package/number-box-legacy/README.md +3 -0
  251. package/number-box-legacy/index.d.ts +191 -0
  252. package/package.json +42 -14
  253. package/paint/index.d.ts +1 -6
  254. package/phone-box/index.d.ts +5 -4
  255. package/rate-picker/index.d.ts +5 -15
  256. package/rrule/index.d.ts +96 -1
  257. package/scheduler-picker/README.md +15 -0
  258. package/scheduler-picker/index.d.ts +1360 -0
  259. package/search-box/index.d.ts +6 -1
  260. package/select-box/index.d.ts +15 -10
  261. package/side-menu/index.d.ts +3 -2
  262. package/slider/index.d.ts +2 -2
  263. package/tag/index.d.ts +8 -2
  264. package/tag-box/index.d.ts +12 -3
  265. package/time-duration/index.d.ts +19 -3
  266. package/tooltip/index.d.ts +0 -1
  267. package/tree-view/index.d.ts +941 -168
  268. package/tree-view-legacy/README.md +3 -0
  269. package/tree-view-legacy/index.d.ts +184 -0
  270. package/uploader/index.d.ts +4 -331
  271. package/wysiwyg/index.d.ts +57 -159
  272. package/drawer-2/README.md +0 -3
  273. package/drawer-2/index.d.ts +0 -62
  274. package/fesm2022/acorex-components-drawer-2.mjs +0 -134
  275. package/fesm2022/acorex-components-drawer-2.mjs.map +0 -1
  276. package/fesm2022/acorex-components-modal-acorex-components-modal-h5Y-qcbh.mjs.map +0 -1
  277. package/fesm2022/acorex-components-modal-modal-content.component-B6tyMLdU.mjs +0 -235
  278. package/fesm2022/acorex-components-modal-modal-content.component-B6tyMLdU.mjs.map +0 -1
  279. package/fesm2022/acorex-components-number-box-2.mjs +0 -183
  280. package/fesm2022/acorex-components-number-box-2.mjs.map +0 -1
  281. package/number-box-2/README.md +0 -3
  282. package/number-box-2/index.d.ts +0 -41
@@ -1,7 +1,7 @@
1
1
  import * as i2 from '@acorex/cdk/common';
2
- import { AXEvent, MXBaseComponent, AXDataSource, AXSortOrder, AXButtonClickEvent, AXItemClickEvent, AXValueChangedEvent, AXListDataSource } from '@acorex/cdk/common';
2
+ import { AXEvent, MXBaseComponent, AXDataSource, AXSortOrder, AXStyleLookType, AXButtonClickEvent, AXItemClickEvent, AXClickEvent, AXValueChangedEvent } from '@acorex/cdk/common';
3
3
  import * as i0 from '@angular/core';
4
- import { EventEmitter, TemplateRef, ChangeDetectorRef, OnInit, DoCheck, QueryList, WritableSignal, ElementRef, AfterViewInit, Signal } from '@angular/core';
4
+ import { TemplateRef, EventEmitter, ChangeDetectorRef, OnInit, AfterViewInit, WritableSignal, Signal, QueryList } from '@angular/core';
5
5
  import * as i11 from '@acorex/core/format';
6
6
  import { AXFormatOptions } from '@acorex/core/format';
7
7
  import * as i8 from '@acorex/components/button';
@@ -41,7 +41,11 @@ declare abstract class AXBaseDataTable extends MXBaseComponent {
41
41
  *
42
42
  * @defaultValue `parentId`
43
43
  */
44
- parentField: string;
44
+ parentField: string | undefined;
45
+ /**
46
+ * Template for expanded custom row content.
47
+ */
48
+ rowDetailsTemplate?: TemplateRef<unknown>;
45
49
  selectedRowsChange: EventEmitter<unknown[]>;
46
50
  /**
47
51
  * Gets the data source key field name.
@@ -86,7 +90,15 @@ declare abstract class AXBaseDataTable extends MXBaseComponent {
86
90
 
87
91
  declare abstract class AXDataTableColumnComponent {
88
92
  caption: string;
89
- width: string | number;
93
+ /**
94
+ * Width of the column.
95
+ * - string: e.g., '180px', '20%'
96
+ * - number: e.g., 180 (treated as pixels)
97
+ * - 'auto': automatically fits to content after data load
98
+ *
99
+ * @defaultValue 'auto'
100
+ */
101
+ width: string | number | 'auto';
90
102
  fixed: 'start' | 'end' | undefined;
91
103
  allowSorting: boolean;
92
104
  allowResizing: boolean;
@@ -245,14 +257,24 @@ declare class AXDataTableTextColumnComponent extends AXDataTableColumnComponent
245
257
  static ɵcmp: i0.ɵɵComponentDeclaration<AXDataTableTextColumnComponent, "ax-text-column", never, { "width": { "alias": "width"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "allowSorting": { "alias": "allowSorting"; "required": false; }; "allowResizing": { "alias": "allowResizing"; "required": false; }; "fixed": { "alias": "fixed"; "required": false; }; "customExpandIcon": { "alias": "customExpandIcon"; "required": false; }; "customCollapseIcon": { "alias": "customCollapseIcon"; "required": false; }; "dataField": { "alias": "dataField"; "required": false; }; "expandHandler": { "alias": "expandHandler"; "required": false; }; "wrapText": { "alias": "wrapText"; "required": false; }; "cellTemplate": { "alias": "cellTemplate"; "required": false; }; "footerTemplate": { "alias": "footerTemplate"; "required": false; }; "headerTemplate": { "alias": "headerTemplate"; "required": false; }; "format": { "alias": "format"; "required": false; }; "formatOptions": { "alias": "formatOptions"; "required": false; }; }, {}, never, never, true, never>;
246
258
  }
247
259
 
248
- type AXRowCommandItem = AXButtonItemListItem;
249
- type AXRowCommandItemClickEvent = AXButtonClickEvent;
260
+ type AXRowCommandItem = AXButtonItemListItem & {
261
+ commandId?: string;
262
+ look?: AXStyleLookType;
263
+ };
264
+ interface AXRowCommandItemClickEvent extends AXButtonClickEvent {
265
+ setLoading?: (loading: boolean) => void;
266
+ }
250
267
  declare abstract class AXBaseRowCommandColumnComponent extends AXDataTableColumnComponent {
251
268
  protected grid: AXBaseDataTable;
252
269
  protected cdr: ChangeDetectorRef;
270
+ protected commandLoading: i0.WritableSignal<string>;
271
+ private rowIdentityMap;
272
+ private rowIdentitySeq;
253
273
  allowSorting: boolean;
254
274
  get loadingEnabled(): boolean;
255
275
  get cssClass(): string;
276
+ protected resolveCommandId(rowData: unknown, commandName: string): string;
277
+ protected setCommandLoadingState(commandId: string, loading: boolean): void;
256
278
  onItemClick: EventEmitter<AXRowCommandItemClickEvent>;
257
279
  }
258
280
  /**
@@ -280,6 +302,10 @@ declare class AXRowDropdownCommandColumnComponent extends AXBaseRowCommandColumn
280
302
  */
281
303
  get renderHeaderTemplate(): TemplateRef<unknown>;
282
304
  footerTemplate: TemplateRef<unknown>;
305
+ emptyStateTemplate?: TemplateRef<unknown>;
306
+ emptyStateText: string;
307
+ protected itemsLoading: i0.WritableSignal<boolean>;
308
+ protected itemsFetched: i0.WritableSignal<boolean>;
283
309
  /**
284
310
  * @ignore
285
311
  */
@@ -298,6 +324,7 @@ declare class AXRowDropdownCommandColumnComponent extends AXBaseRowCommandColumn
298
324
  */
299
325
  protected _items: AXRowCommandItem[];
300
326
  items: AXRowCommandItem[] | ((rowData: unknown) => AXRowCommandItem[] | Promise<AXRowCommandItem[]>);
327
+ private dropdownLoadingEffect;
301
328
  /**
302
329
  * @ignore
303
330
  */
@@ -306,12 +333,14 @@ declare class AXRowDropdownCommandColumnComponent extends AXBaseRowCommandColumn
306
333
  * @ignore
307
334
  */
308
335
  protected handleOnClosed(): void;
336
+ private decorateItems;
337
+ private applyLoadingState;
309
338
  /**
310
339
  * @ignore
311
340
  */
312
341
  protected handleOnItemClick(e: AXItemClickEvent<AXButtonItemComponent>, data: unknown): void;
313
342
  static ɵfac: i0.ɵɵFactoryDeclaration<AXRowDropdownCommandColumnComponent, never>;
314
- static ɵcmp: i0.ɵɵComponentDeclaration<AXRowDropdownCommandColumnComponent, "ax-dropdown-command-column", never, { "width": { "alias": "width"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "fixed": { "alias": "fixed"; "required": false; }; "footerTemplate": { "alias": "footerTemplate"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, { "onItemClick": "onItemClick"; }, never, never, true, never>;
343
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXRowDropdownCommandColumnComponent, "ax-dropdown-command-column", never, { "width": { "alias": "width"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "fixed": { "alias": "fixed"; "required": false; }; "footerTemplate": { "alias": "footerTemplate"; "required": false; }; "emptyStateTemplate": { "alias": "emptyStateTemplate"; "required": false; }; "emptyStateText": { "alias": "emptyStateText"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, { "onItemClick": "onItemClick"; }, never, never, true, never>;
315
344
  }
316
345
  /**
317
346
  * A column for displaying command buttons in a data table.
@@ -363,10 +392,15 @@ declare class AXRowCommandColumnComponent extends AXBaseRowCommandColumnComponen
363
392
  * @ignore
364
393
  */
365
394
  protected getItems(rowData: unknown): AXRowCommandItem[];
395
+ protected getItemsWithIds(rowData: unknown): Array<{
396
+ item: AXRowCommandItem;
397
+ commandId: string;
398
+ }>;
366
399
  /**
367
400
  * @ignore
368
401
  */
369
- protected handleOnItemClick(e: MouseEvent, item: AXRowCommandItem, data: unknown): void;
402
+ protected getCommandId(rowData: unknown, item: AXRowCommandItem): string;
403
+ protected handleOnItemClick(e: AXClickEvent, item: AXRowCommandItem, data: unknown): void;
370
404
  static ɵfac: i0.ɵɵFactoryDeclaration<AXRowCommandColumnComponent, never>;
371
405
  static ɵcmp: i0.ɵɵComponentDeclaration<AXRowCommandColumnComponent, "ax-command-column", never, { "width": { "alias": "width"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "fixed": { "alias": "fixed"; "required": false; }; "footerTemplate": { "alias": "footerTemplate"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, { "onItemClick": "onItemClick"; }, never, never, true, never>;
372
406
  }
@@ -558,255 +592,6 @@ declare class AXRowSelectColumnComponent extends AXDataTableColumnComponent {
558
592
  static ɵcmp: i0.ɵɵComponentDeclaration<AXRowSelectColumnComponent, "ax-select-column", never, { "width": { "alias": "width"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "fixed": { "alias": "fixed"; "required": false; }; }, {}, never, never, true, never>;
559
593
  }
560
594
 
561
- /**
562
- * Component for a data table with infinite scrolling capabilities.
563
- *
564
- * @category Components
565
- */
566
- declare class AXInfiniteScrollDataTableComponent extends AXBaseDataTable implements OnInit, DoCheck {
567
- private document;
568
- private platformID;
569
- private ngZone;
570
- /**
571
- * @ignore
572
- */
573
- protected columns: QueryList<AXDataTableColumnComponent>;
574
- /**
575
- * @ignore
576
- */
577
- protected startFixedColumn(): AXDataTableColumnComponent[];
578
- /**
579
- * @ignore
580
- */
581
- protected endFixedColumn(): AXDataTableColumnComponent[];
582
- /**
583
- * @ignore
584
- */
585
- protected notFixedColumn(): AXDataTableColumnComponent[];
586
- /**
587
- * @ignore
588
- */
589
- protected notFixedColumnCount(): number;
590
- /**
591
- * @ignore
592
- */
593
- protected fixedColumnCount(): number;
594
- /**
595
- * Emits an event when the page changes.
596
- *
597
- * @event
598
- */
599
- onPageChanged: EventEmitter<AXValueChangedEvent<number>>;
600
- /**
601
- * @ignore
602
- */
603
- private clickSubject;
604
- /**
605
- * Emits an event when a row is clicked.
606
- *
607
- * @event
608
- */
609
- onRowClick: EventEmitter<AXDataTableRowClick>;
610
- /**
611
- * Emits an event when a row is double-clicked.
612
- *
613
- * @event
614
- */
615
- onRowDbClick: EventEmitter<AXDataTableRowDbClick>;
616
- /**
617
- * Template for rendering rows in the data table.
618
- */
619
- rowTemplate?: TemplateRef<unknown>;
620
- /**
621
- * Template to display when the data table is empty.
622
- */
623
- emptyTemplate?: TemplateRef<unknown>;
624
- /**
625
- * Controls the visibility of the table header.
626
- *
627
- * @defaultValue true
628
- */
629
- showHeader: boolean;
630
- /**
631
- * Defines the mode for fetching data.
632
- *
633
- * @defaultValue 'auto'
634
- */
635
- fetchDataMode: 'auto' | 'manual';
636
- /**
637
- * Configuration for the loading state of the data table.
638
- *
639
- * @defaultValue { enabled: true, animation: true }
640
- */
641
- loading: {
642
- enabled: boolean;
643
- animation: boolean;
644
- loadingTemplate?: TemplateRef<unknown>;
645
- };
646
- /**
647
- * @ignore
648
- */
649
- protected listDataSource: AXListDataSource<unknown>;
650
- /**
651
- * @ignore
652
- */
653
- protected isLoading: WritableSignal<boolean>;
654
- /**
655
- * @ignore
656
- */
657
- protected hasItems: boolean;
658
- /**
659
- * @ignore
660
- */
661
- protected totalRows: number;
662
- /**
663
- * @ignore
664
- */
665
- protected currentPage: number;
666
- /**
667
- * @ignore
668
- */
669
- protected totalPages: number;
670
- /**
671
- * @ignore
672
- */
673
- protected startRowIndex: number;
674
- /**
675
- * @ignore
676
- */
677
- private lastIndex;
678
- /**
679
- * Event emitted when the focused row changes.
680
- *
681
- * @event
682
- */
683
- focusedRowChange: EventEmitter<unknown>;
684
- /**
685
- * @ignore
686
- */
687
- private _focusedRow;
688
- /**
689
- * Retrieves the currently focused row.
690
- */
691
- get focusedRow(): unknown;
692
- /**
693
- * Sets the currently focused row and emits a change event.
694
- *
695
- * @param v - The row data to be set as focused.
696
- */
697
- set focusedRow(v: unknown);
698
- /**
699
- * Defines the height of each item in the table.
700
- *
701
- * @default 40
702
- */
703
- itemHeight: number | 'auto';
704
- /**
705
- * @ignore
706
- */
707
- protected width: string;
708
- /**
709
- * @ignore
710
- */
711
- protected height: string;
712
- /**
713
- * @ignore
714
- */
715
- private viewport;
716
- /**
717
- * Emitted when the scroll index changes in the table.
718
- *
719
- * @event
720
- */
721
- onScrolledIndexChanged: EventEmitter<AXDataTableScrollIndexChanged>;
722
- trackByIdx(i: any): any;
723
- /**
724
- * @ignore
725
- */
726
- ngOnInit(): void;
727
- /**
728
- * @ignore
729
- */
730
- headerContainer: ElementRef<HTMLDivElement>;
731
- /**
732
- * @ignore
733
- */
734
- footerContainer: ElementRef;
735
- /**
736
- * @ignore
737
- */
738
- scrollableContainer: ElementRef<HTMLDivElement>;
739
- /**
740
- * @ignore
741
- */
742
- protected _handleOnscrolledIndexChange(e: number): void;
743
- /**
744
- * @ignore
745
- */
746
- ngDoCheck(): void;
747
- /**
748
- * @ignore
749
- */
750
- private updateTotalCount;
751
- /**
752
- * @ignore
753
- */
754
- private updateHeight;
755
- /**
756
- * @ignore
757
- */
758
- private updateWidth;
759
- /**
760
- * @ignore
761
- */
762
- private updateHScroll;
763
- /**
764
- * @ignore
765
- */
766
- private copyFixedColumns;
767
- /**
768
- * Updates the viewport by checking its size and scrolling to the last index.
769
- * Marks the component for change detection.
770
- * @ignore
771
- */
772
- render(): void;
773
- /**
774
- * Resets the index to zero and refreshes the data source.
775
- * @ignore
776
- */
777
- refresh(): void;
778
- /**
779
- * @ignore
780
- */
781
- protected handleRowClick(event: MouseEvent, item: unknown): void;
782
- /**
783
- * @ignore
784
- */
785
- private handleRowSingleClick;
786
- /**
787
- * @ignore
788
- */
789
- protected handleRowDoubleClick(e: MouseEvent, item: unknown): void;
790
- /**
791
- * Handles column header clicks to toggle sorting on the column.
792
- *
793
- * @param e - The mouse event triggered by the click.
794
- * @param column - The column that was clicked.
795
- * @ignore
796
- */
797
- handleColumnClick(e: MouseEvent, column: AXDataTableColumnComponent): void;
798
- /**
799
- * @ignore
800
- */
801
- protected getSort(column: AXDataTableColumnComponent): string | undefined;
802
- /**
803
- * @ignore
804
- */
805
- protected _handleOnScroll(): void;
806
- static ɵfac: i0.ɵɵFactoryDeclaration<AXInfiniteScrollDataTableComponent, never>;
807
- static ɵcmp: i0.ɵɵComponentDeclaration<AXInfiniteScrollDataTableComponent, "ax-infinite-scroll-data-table", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "rowTemplate": { "alias": "rowTemplate"; "required": false; }; "emptyTemplate": { "alias": "emptyTemplate"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "fetchDataMode": { "alias": "fetchDataMode"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "focusedRow": { "alias": "focusedRow"; "required": false; }; "itemHeight": { "alias": "itemHeight"; "required": false; }; }, { "selectedRowsChange": "selectedRowsChange"; "onPageChanged": "onPageChanged"; "onRowClick": "onRowClick"; "onRowDbClick": "onRowDbClick"; "focusedRowChange": "focusedRowChange"; "onScrolledIndexChanged": "onScrolledIndexChanged"; }, ["columns"], ["ax-header", "ax-footer"], true, never>;
808
- }
809
-
810
595
  /**
811
596
  * Component for displaying and managing a data table with advanced features.
812
597
  *
@@ -1025,7 +810,7 @@ declare class AXDataTableComponent extends AXBaseDataTable implements OnInit, Af
1025
810
  /**
1026
811
  * @ignore
1027
812
  */
1028
- private hasLoadedData;
813
+ private isRefreshCalled;
1029
814
  /**
1030
815
  * Returns true if in manual mode and no data has been loaded yet.
1031
816
  */
@@ -1042,6 +827,15 @@ declare class AXDataTableComponent extends AXBaseDataTable implements OnInit, Af
1042
827
  * @ignore
1043
828
  */
1044
829
  ngAfterViewInit(): void;
830
+ /**
831
+ * Toggles the expanded state of a row without managing children.
832
+ * Used for row details template without nested hierarchy.
833
+ *
834
+ * @param rows - The array of rows to search in
835
+ * @param expandedItem - The item to toggle
836
+ * @returns Updated rows array with toggled state
837
+ */
838
+ protected toggleExpandedState(rows: any[], expandedItem: any): any[];
1045
839
  protected toggleExpanded(rows: any[], expandedItem: any, children: any[]): any[];
1046
840
  protected refreshExpandedItem(id: string | number): Promise<void>;
1047
841
  private updateChildren;
@@ -1096,6 +890,14 @@ declare class AXDataTableComponent extends AXBaseDataTable implements OnInit, Af
1096
890
  * @ignore
1097
891
  */
1098
892
  protected calculateRowIndex(index: number): number;
893
+ /**
894
+ * Handles double-click on resize handle to auto-fit column width.
895
+ *
896
+ * @param event - The mouse event from the double-click
897
+ * @param columnIndex - The index of the column to auto-fit
898
+ * @ignore
899
+ */
900
+ protected onResizeHandlerDoubleClick(event: MouseEvent, columnIndex: number): void;
1099
901
  /**
1100
902
  * @ignore
1101
903
  */
@@ -1116,15 +918,49 @@ declare class AXDataTableComponent extends AXBaseDataTable implements OnInit, Af
1116
918
  * @ignore
1117
919
  */
1118
920
  private calculateStickyColumnsPositions;
921
+ /**
922
+ * Auto-fits columns that have width='auto'.
923
+ * Called automatically after data load.
924
+ *
925
+ * @ignore
926
+ */
927
+ private autoFitColumnsWithAutoWidth;
928
+ /**
929
+ * Auto-fits all columns width based on their content.
930
+ *
931
+ * @param options - Configuration options
932
+ * @param options.skipFixed - If true, skips fixed columns (default: true)
933
+ * @param options.skipLoading - If true, skips if data is loading (default: true)
934
+ * @param options.maxWidth - Maximum width for any column in pixels (default: 500)
935
+ * @returns void
936
+ */
937
+ autoFitAllColumns(options?: {
938
+ skipFixed?: boolean;
939
+ skipLoading?: boolean;
940
+ maxWidth?: number;
941
+ }): void;
942
+ /**
943
+ * Auto-fits a column width based on its content.
944
+ * Similar to Excel's "AutoFit Column Width" feature.
945
+ * Uses an invisible helper table to measure actual content width without affecting the main table.
946
+ *
947
+ * @param columnIndex - The index of the column to auto-fit (0-based, based on columns QueryList)
948
+ * @param options - Configuration options
949
+ * @param options.maxWidth - Maximum width for the column in pixels (default: none)
950
+ * @returns void
951
+ */
952
+ autoFitColumn(columnIndex: number, options?: {
953
+ maxWidth?: number;
954
+ }): void;
1119
955
  static ɵfac: i0.ɵɵFactoryDeclaration<AXDataTableComponent, never>;
1120
- static ɵcmp: i0.ɵɵComponentDeclaration<AXDataTableComponent, "ax-data-table", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "selectedRows": { "alias": "selectedRows"; "required": false; }; "parentField": { "alias": "parentField"; "required": false; }; "rowTemplate": { "alias": "rowTemplate"; "required": false; }; "emptyTemplate": { "alias": "emptyTemplate"; "required": false; }; "noDataTemplate": { "alias": "noDataTemplate"; "required": false; }; "alternative": { "alias": "alternative"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "fixedHeader": { "alias": "fixedHeader"; "required": false; }; "showFooter": { "alias": "showFooter"; "required": false; }; "fixedFooter": { "alias": "fixedFooter"; "required": false; }; "itemHeight": { "alias": "itemHeight"; "required": false; }; "allowReordering": { "alias": "allowReordering"; "required": false; }; "paging": { "alias": "paging"; "required": false; }; "fetchDataMode": { "alias": "fetchDataMode"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "focusedRow": { "alias": "focusedRow"; "required": false; }; }, { "selectedRowsChange": "selectedRowsChange"; "focusedRowChange": "focusedRowChange"; "onRowClick": "onRowClick"; "onRowDbClick": "onRowDbClick"; "onColumnsOrderChanged": "onColumnsOrderChanged"; "onColumnSizeChanged": "onColumnSizeChanged"; "onPageChanged": "onPageChanged"; }, ["customDataPager", "columns"], ["ax-header", "ax-data-pager", "ax-footer"], true, never>;
956
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXDataTableComponent, "ax-data-table", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "selectedRows": { "alias": "selectedRows"; "required": false; }; "parentField": { "alias": "parentField"; "required": false; }; "rowDetailsTemplate": { "alias": "rowDetailsTemplate"; "required": false; }; "rowTemplate": { "alias": "rowTemplate"; "required": false; }; "emptyTemplate": { "alias": "emptyTemplate"; "required": false; }; "noDataTemplate": { "alias": "noDataTemplate"; "required": false; }; "alternative": { "alias": "alternative"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "fixedHeader": { "alias": "fixedHeader"; "required": false; }; "showFooter": { "alias": "showFooter"; "required": false; }; "fixedFooter": { "alias": "fixedFooter"; "required": false; }; "itemHeight": { "alias": "itemHeight"; "required": false; }; "allowReordering": { "alias": "allowReordering"; "required": false; }; "paging": { "alias": "paging"; "required": false; }; "fetchDataMode": { "alias": "fetchDataMode"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "focusedRow": { "alias": "focusedRow"; "required": false; }; }, { "selectedRowsChange": "selectedRowsChange"; "focusedRowChange": "focusedRowChange"; "onRowClick": "onRowClick"; "onRowDbClick": "onRowDbClick"; "onColumnsOrderChanged": "onColumnsOrderChanged"; "onColumnSizeChanged": "onColumnSizeChanged"; "onPageChanged": "onPageChanged"; }, ["customDataPager", "columns"], ["ax-header", "ax-data-pager", "ax-footer"], true, never>;
1121
957
  }
1122
958
 
1123
959
  declare class AXDataTableModule {
1124
960
  static ɵfac: i0.ɵɵFactoryDeclaration<AXDataTableModule, never>;
1125
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXDataTableModule, never, [typeof i1.CommonModule, typeof i2.AXCommonModule, typeof i3.ScrollingModule, typeof i4.AXTranslationModule, typeof i5.AXResultModule, typeof i6.AXLoadingModule, typeof i7.AXSkeletonModule, typeof i8.AXButtonModule, typeof i9.AXDecoratorModule, typeof i10.AXDropdownModule, typeof i11.AXFormatModule, typeof i2.AXRippleDirective, typeof i12.AXDataPagerModule, typeof i13.CdkDropList, typeof i13.CdkDrag, typeof i13.CdkDragPlaceholder, typeof i13.CdkDragHandle, typeof AXInfiniteScrollDataTableComponent, typeof AXDataTableComponent, typeof AXDataTableTextColumnComponent, typeof AXRowIndexColumnComponent, typeof AXRowSelectColumnComponent, typeof AXRowExpandColumnComponent, typeof AXRowCommandColumnComponent, typeof AXRowDropdownCommandColumnComponent, typeof AXDataTableColumnResizableDirective], [typeof AXInfiniteScrollDataTableComponent, typeof AXDataTableComponent, typeof AXDataTableTextColumnComponent, typeof AXRowIndexColumnComponent, typeof AXRowSelectColumnComponent, typeof AXRowExpandColumnComponent, typeof AXRowCommandColumnComponent, typeof AXRowDropdownCommandColumnComponent, typeof AXDataTableColumnResizableDirective]>;
961
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXDataTableModule, never, [typeof i1.CommonModule, typeof i2.AXCommonModule, typeof i3.ScrollingModule, typeof i4.AXTranslationModule, typeof i5.AXResultModule, typeof i6.AXLoadingModule, typeof i7.AXSkeletonModule, typeof i8.AXButtonModule, typeof i9.AXDecoratorModule, typeof i10.AXDropdownModule, typeof i11.AXFormatModule, typeof i2.AXRippleDirective, typeof i12.AXDataPagerModule, typeof i13.CdkDropList, typeof i13.CdkDrag, typeof i13.CdkDragPlaceholder, typeof i13.CdkDragHandle, typeof AXDataTableComponent, typeof AXDataTableTextColumnComponent, typeof AXRowIndexColumnComponent, typeof AXRowSelectColumnComponent, typeof AXRowExpandColumnComponent, typeof AXRowCommandColumnComponent, typeof AXRowDropdownCommandColumnComponent, typeof AXDataTableColumnResizableDirective], [typeof AXDataTableComponent, typeof AXDataTableTextColumnComponent, typeof AXRowIndexColumnComponent, typeof AXRowSelectColumnComponent, typeof AXRowExpandColumnComponent, typeof AXRowCommandColumnComponent, typeof AXRowDropdownCommandColumnComponent, typeof AXDataTableColumnResizableDirective]>;
1126
962
  static ɵinj: i0.ɵɵInjectorDeclaration<AXDataTableModule>;
1127
963
  }
1128
964
 
1129
- export { AXBaseDataTable, AXBaseRowCommandColumnComponent, AXDataTableColumnComponent, AXDataTableColumnResizableDirective, AXDataTableComponent, AXDataTableModule, AXDataTableTextColumnComponent, AXInfiniteScrollDataTableComponent, AXRowCommandColumnComponent, AXRowDropdownCommandColumnComponent, AXRowExpandColumnComponent, AXRowIndexColumnComponent, AXRowSelectColumnComponent };
965
+ export { AXBaseDataTable, AXBaseRowCommandColumnComponent, AXDataTableColumnComponent, AXDataTableColumnResizableDirective, AXDataTableComponent, AXDataTableModule, AXDataTableTextColumnComponent, AXRowCommandColumnComponent, AXRowDropdownCommandColumnComponent, AXRowExpandColumnComponent, AXRowIndexColumnComponent, AXRowSelectColumnComponent };
1130
966
  export type { AXColumnsOrderChangedEvent, AXDataTableRowClick, AXDataTableRowDbClick, AXDataTableScrollIndexChanged, AXRowCommandItem, AXRowCommandItemClickEvent, onColumnSizeChangedEvent };
package/dialog/index.d.ts CHANGED
@@ -109,7 +109,7 @@ declare class AXDialogService {
109
109
  * @param draggable - Whether the dialog can be dragged.
110
110
  * @returns Promise<void> - Promise that resolves when the dialog is closed.
111
111
  */
112
- alert(title: string, content: string, type?: AXStyleColorType, orientation?: 'horizontal' | 'vertical', draggable?: boolean): Promise<void>;
112
+ alert(title: string, content: string, type?: AXStyleColorType, orientation?: 'horizontal' | 'vertical', draggable?: boolean, buttonLook?: AXStyleLookType): Promise<void>;
113
113
  /**
114
114
  * Show a confirm box with 'Okay' & 'Cancel' buttons.
115
115
  *
package/drawer/README.md CHANGED
@@ -1,3 +1,3 @@
1
- # @acorex/components/drawer
1
+ # @acorex/components/drawer-2
2
2
 
3
- Secondary entry point of `@acorex/components`. It can be used by importing from `@acorex/components/drawer`.
3
+ Secondary entry point of `@acorex/components`. It can be used by importing from `@acorex/components/drawer-2`.
package/drawer/index.d.ts CHANGED
@@ -1,86 +1,62 @@
1
- import { MXBaseComponent } from '@acorex/cdk/common';
2
- import * as i0 from '@angular/core';
3
- import { AfterContentInit, DoCheck } from '@angular/core';
4
- import * as i1 from '@angular/common';
1
+ import { MXBaseComponent, AXClickEvent } from '@acorex/cdk/common';
2
+ import * as _angular_core from '@angular/core';
3
+ import * as i1 from '@acorex/cdk/drawer';
4
+ import { AXDrawerLocation, AXDrawerMode } from '@acorex/cdk/drawer';
5
5
 
6
6
  /**
7
7
  * A container component that organizes and positions drawer components.
8
8
  * @category component
9
9
  */
10
10
  declare class AXDrawerContainerComponent extends MXBaseComponent {
11
- private service;
12
- constructor();
13
- static ɵfac: i0.ɵɵFactoryDeclaration<AXDrawerContainerComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<AXDrawerContainerComponent, "ax-drawer-container", never, {}, {}, never, ["ax-drawer", "ax-content"], true, never>;
11
+ #private;
12
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXDrawerContainerComponent, never>;
13
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXDrawerContainerComponent, "ax-drawer-container", never, {}, {}, never, ["ax-drawer", "ax-content"], true, [{ directive: typeof i1.AXDrawerContainerDirective; inputs: {}; outputs: {}; }]>;
15
14
  }
16
15
 
17
- type AXDrawerMode = 'push' | 'overlay';
18
- type AXDrawerLocation = 'start' | 'end';
19
16
  /**
20
17
  * A component that represents a drawer with header and content sections.
21
18
  *
22
19
  * @category Components
23
20
  */
24
- declare class AXDrawerComponent extends MXBaseComponent implements AfterContentInit, DoCheck {
21
+ declare class AXDrawerComponent extends MXBaseComponent {
25
22
  #private;
26
- location: i0.ModelSignal<AXDrawerLocation>;
27
- showBackdrop: i0.InputSignal<boolean>;
28
- mode: i0.ModelSignal<AXDrawerMode>;
29
- closeOthers: i0.InputSignal<boolean>;
30
- collapsed: i0.ModelSignal<boolean>;
31
- private backdropElement;
32
- protected loaded: i0.WritableSignal<boolean>;
33
- private service;
34
- private _zone;
35
- private document;
36
- private platformID;
37
- /**
23
+ readonly location: _angular_core.InputSignal<AXDrawerLocation>;
24
+ readonly showBackdrop: _angular_core.InputSignal<boolean>;
25
+ readonly mode: _angular_core.InputSignal<AXDrawerMode>;
26
+ readonly transition: _angular_core.InputSignal<number>;
27
+ readonly closeOnBackdropClick: _angular_core.InputSignal<boolean>;
28
+ readonly backdropClass: _angular_core.InputSignal<string>;
29
+ readonly collapsed: _angular_core.InputSignal<boolean>;
30
+ readonly singleOpenMode: _angular_core.InputSignal<boolean>;
31
+ onBackdropClick: _angular_core.OutputEmitterRef<AXClickEvent>;
32
+ collapsedStateChanged: _angular_core.OutputEmitterRef<boolean>;
33
+ private drawerItem;
34
+ /**
35
+ * Toggles the drawer state between open and closed.
38
36
  *
39
- * @ignore
40
- */
41
- ngAfterContentInit(): void;
42
- /**
43
- * @ignore
44
- */
45
- ngDoCheck(): void;
46
- /**
47
- * @ignore
48
- */
49
- private _detectBoundingSize;
50
- /**
51
- * Toggles the collapsed state of the drawer.
37
+ * @returns void - No return value. The drawer state is toggled.
52
38
  */
53
39
  toggle(): void;
54
40
  /**
55
- * Collapses the drawer.
56
- * @ignore
41
+ * Closes the drawer.
42
+ *
43
+ * @returns void - No return value. The drawer is collapsed.
57
44
  */
58
45
  close(): void;
59
46
  /**
60
- * Expands the drawer.
47
+ * Opens the drawer.
48
+ *
49
+ * @returns void - No return value. The drawer is expanded.
61
50
  */
62
51
  open(): void;
63
- /**
64
- * @ignore
65
- */
66
- private _addBackdrop;
67
- /**
68
- * @ignore
69
- */
70
- private _removeBackdrop;
71
- /**
72
- * @ignore
73
- */
74
- private get __hostClass();
75
- static ɵfac: i0.ɵɵFactoryDeclaration<AXDrawerComponent, never>;
76
- static ɵcmp: i0.ɵɵComponentDeclaration<AXDrawerComponent, "ax-drawer", never, { "location": { "alias": "location"; "required": false; "isSignal": true; }; "showBackdrop": { "alias": "showBackdrop"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "closeOthers": { "alias": "closeOthers"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; }, { "location": "locationChange"; "mode": "modeChange"; "collapsed": "collapsedChange"; }, never, ["ax-header", "ax-content"], true, never>;
52
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXDrawerComponent, never>;
53
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXDrawerComponent, "ax-drawer", never, { "location": { "alias": "location"; "required": false; "isSignal": true; }; "showBackdrop": { "alias": "showBackdrop"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "transition": { "alias": "transition"; "required": false; "isSignal": true; }; "closeOnBackdropClick": { "alias": "closeOnBackdropClick"; "required": false; "isSignal": true; }; "backdropClass": { "alias": "backdropClass"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "singleOpenMode": { "alias": "singleOpenMode"; "required": false; "isSignal": true; }; }, { "onBackdropClick": "onBackdropClick"; "collapsedStateChanged": "collapsedStateChanged"; }, never, ["ax-header", "ax-content"], true, [{ directive: typeof i1.AXDrawerItemDirective; inputs: {}; outputs: {}; }]>;
77
54
  }
78
55
 
79
56
  declare class AXDrawerModule {
80
- static ɵfac: i0.ɵɵFactoryDeclaration<AXDrawerModule, never>;
81
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXDrawerModule, never, [typeof i1.CommonModule, typeof AXDrawerComponent, typeof AXDrawerContainerComponent], [typeof AXDrawerComponent, typeof AXDrawerContainerComponent]>;
82
- static ɵinj: i0.ɵɵInjectorDeclaration<AXDrawerModule>;
57
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXDrawerModule, never>;
58
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<AXDrawerModule, never, [typeof AXDrawerComponent, typeof AXDrawerContainerComponent], [typeof AXDrawerComponent, typeof AXDrawerContainerComponent]>;
59
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXDrawerModule>;
83
60
  }
84
61
 
85
62
  export { AXDrawerComponent, AXDrawerContainerComponent, AXDrawerModule };
86
- export type { AXDrawerLocation, AXDrawerMode };
@@ -0,0 +1,3 @@
1
+ # @acorex/components/drawer
2
+
3
+ Secondary entry point of `@acorex/components`. It can be used by importing from `@acorex/components/drawer`.