@acorex/components 21.0.2-next.37 → 21.0.2-next.38

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 (339) hide show
  1. package/{types/acorex-components-accordion.d.ts → accordion/index.d.ts} +1 -0
  2. package/{types/acorex-components-button.d.ts → button/index.d.ts} +3 -3
  3. package/{types/acorex-components-button-group.d.ts → button-group/index.d.ts} +12 -20
  4. package/{types/acorex-components-check-box.d.ts → check-box/index.d.ts} +1 -1
  5. package/{types/acorex-components-chips.d.ts → chips/index.d.ts} +8 -3
  6. package/collapse/README.md +3 -0
  7. package/collapse/index.d.ts +174 -0
  8. package/{types/acorex-components-color-palette.d.ts → color-palette/index.d.ts} +0 -2
  9. package/{types/acorex-components-conversation2.d.ts → conversation2/index.d.ts} +667 -667
  10. package/{types/acorex-components-data-table.d.ts → data-table/index.d.ts} +262 -4
  11. package/{types/acorex-components-datetime-box.d.ts → datetime-box/index.d.ts} +4 -5
  12. package/drawer-legacy/README.md +3 -0
  13. package/drawer-legacy/index.d.ts +86 -0
  14. package/{types/acorex-components-dropdown-button.d.ts → dropdown-button/index.d.ts} +2 -4
  15. package/fesm2022/acorex-components-accordion.mjs +37 -32
  16. package/fesm2022/acorex-components-accordion.mjs.map +1 -1
  17. package/fesm2022/acorex-components-action-sheet.mjs +32 -32
  18. package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
  19. package/fesm2022/acorex-components-alert.mjs +21 -21
  20. package/fesm2022/acorex-components-alert.mjs.map +1 -1
  21. package/fesm2022/acorex-components-aspect-ratio.mjs +6 -6
  22. package/fesm2022/acorex-components-aspect-ratio.mjs.map +1 -1
  23. package/fesm2022/acorex-components-audio-wave.mjs +14 -15
  24. package/fesm2022/acorex-components-audio-wave.mjs.map +1 -1
  25. package/fesm2022/acorex-components-autocomplete.mjs +16 -16
  26. package/fesm2022/acorex-components-autocomplete.mjs.map +1 -1
  27. package/fesm2022/acorex-components-avatar.mjs +17 -17
  28. package/fesm2022/acorex-components-avatar.mjs.map +1 -1
  29. package/fesm2022/acorex-components-badge.mjs +11 -11
  30. package/fesm2022/acorex-components-badge.mjs.map +1 -1
  31. package/fesm2022/acorex-components-bottom-navigation.mjs +15 -15
  32. package/fesm2022/acorex-components-bottom-navigation.mjs.map +1 -1
  33. package/fesm2022/acorex-components-breadcrumbs.mjs +14 -14
  34. package/fesm2022/acorex-components-breadcrumbs.mjs.map +1 -1
  35. package/fesm2022/acorex-components-button-group.mjs +28 -63
  36. package/fesm2022/acorex-components-button-group.mjs.map +1 -1
  37. package/fesm2022/acorex-components-button.mjs +31 -31
  38. package/fesm2022/acorex-components-button.mjs.map +1 -1
  39. package/fesm2022/acorex-components-calendar.mjs +27 -27
  40. package/fesm2022/acorex-components-calendar.mjs.map +1 -1
  41. package/fesm2022/acorex-components-check-box.mjs +12 -12
  42. package/fesm2022/acorex-components-check-box.mjs.map +1 -1
  43. package/fesm2022/acorex-components-chips.mjs +15 -13
  44. package/fesm2022/acorex-components-chips.mjs.map +1 -1
  45. package/fesm2022/acorex-components-circular-progress.mjs +16 -18
  46. package/fesm2022/acorex-components-circular-progress.mjs.map +1 -1
  47. package/fesm2022/acorex-components-code-editor.mjs +30 -30
  48. package/fesm2022/acorex-components-code-editor.mjs.map +1 -1
  49. package/fesm2022/acorex-components-collapse.mjs +366 -0
  50. package/fesm2022/acorex-components-collapse.mjs.map +1 -0
  51. package/fesm2022/acorex-components-color-box.mjs +16 -16
  52. package/fesm2022/acorex-components-color-box.mjs.map +1 -1
  53. package/fesm2022/acorex-components-color-palette.mjs +44 -85
  54. package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
  55. package/fesm2022/acorex-components-command.mjs +20 -20
  56. package/fesm2022/acorex-components-command.mjs.map +1 -1
  57. package/fesm2022/acorex-components-comment.mjs +37 -37
  58. package/fesm2022/acorex-components-comment.mjs.map +1 -1
  59. package/fesm2022/acorex-components-conversation.mjs +119 -119
  60. package/fesm2022/acorex-components-conversation.mjs.map +1 -1
  61. package/fesm2022/acorex-components-conversation2.mjs +708 -720
  62. package/fesm2022/acorex-components-conversation2.mjs.map +1 -1
  63. package/fesm2022/acorex-components-cron-job.mjs +60 -60
  64. package/fesm2022/acorex-components-cron-job.mjs.map +1 -1
  65. package/fesm2022/acorex-components-data-list.mjs +34 -34
  66. package/fesm2022/acorex-components-data-list.mjs.map +1 -1
  67. package/fesm2022/acorex-components-data-pager.mjs +42 -42
  68. package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
  69. package/fesm2022/acorex-components-data-table.mjs +516 -69
  70. package/fesm2022/acorex-components-data-table.mjs.map +1 -1
  71. package/fesm2022/acorex-components-datetime-box.mjs +26 -26
  72. package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
  73. package/fesm2022/acorex-components-datetime-input.mjs +24 -24
  74. package/fesm2022/acorex-components-datetime-input.mjs.map +1 -1
  75. package/fesm2022/acorex-components-datetime-picker.mjs +30 -30
  76. package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
  77. package/fesm2022/acorex-components-decorators.mjs +49 -56
  78. package/fesm2022/acorex-components-decorators.mjs.map +1 -1
  79. package/fesm2022/acorex-components-dialog.mjs +16 -16
  80. package/fesm2022/acorex-components-dialog.mjs.map +1 -1
  81. package/fesm2022/acorex-components-drawer-legacy.mjs +218 -0
  82. package/fesm2022/acorex-components-drawer-legacy.mjs.map +1 -0
  83. package/fesm2022/acorex-components-drawer.mjs +26 -25
  84. package/fesm2022/acorex-components-drawer.mjs.map +1 -1
  85. package/fesm2022/acorex-components-dropdown-button.mjs +11 -19
  86. package/fesm2022/acorex-components-dropdown-button.mjs.map +1 -1
  87. package/fesm2022/acorex-components-dropdown.mjs +22 -22
  88. package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
  89. package/fesm2022/acorex-components-editor.mjs +15 -15
  90. package/fesm2022/acorex-components-editor.mjs.map +1 -1
  91. package/fesm2022/acorex-components-fab.mjs +18 -18
  92. package/fesm2022/acorex-components-fab.mjs.map +1 -1
  93. package/fesm2022/acorex-components-file-explorer.mjs +307 -0
  94. package/fesm2022/acorex-components-file-explorer.mjs.map +1 -0
  95. package/fesm2022/acorex-components-flow-chart.mjs +63 -80
  96. package/fesm2022/acorex-components-flow-chart.mjs.map +1 -1
  97. package/fesm2022/acorex-components-form.mjs +39 -47
  98. package/fesm2022/acorex-components-form.mjs.map +1 -1
  99. package/fesm2022/acorex-components-grid-layout-builder.mjs +19 -18
  100. package/fesm2022/acorex-components-grid-layout-builder.mjs.map +1 -1
  101. package/fesm2022/acorex-components-image-editor.mjs +93 -93
  102. package/fesm2022/acorex-components-image-editor.mjs.map +1 -1
  103. package/fesm2022/acorex-components-image.mjs +12 -12
  104. package/fesm2022/acorex-components-image.mjs.map +1 -1
  105. package/fesm2022/acorex-components-json-viewer.mjs +13 -13
  106. package/fesm2022/acorex-components-json-viewer.mjs.map +1 -1
  107. package/fesm2022/acorex-components-kanban.mjs +26 -28
  108. package/fesm2022/acorex-components-kanban.mjs.map +1 -1
  109. package/fesm2022/acorex-components-kbd.mjs +17 -17
  110. package/fesm2022/acorex-components-kbd.mjs.map +1 -1
  111. package/fesm2022/acorex-components-label.mjs +9 -9
  112. package/fesm2022/acorex-components-label.mjs.map +1 -1
  113. package/fesm2022/acorex-components-list.mjs +16 -16
  114. package/fesm2022/acorex-components-list.mjs.map +1 -1
  115. package/fesm2022/acorex-components-loading-dialog.mjs +20 -20
  116. package/fesm2022/acorex-components-loading-dialog.mjs.map +1 -1
  117. package/fesm2022/acorex-components-loading.mjs +23 -23
  118. package/fesm2022/acorex-components-loading.mjs.map +1 -1
  119. package/fesm2022/acorex-components-map.mjs +47 -47
  120. package/fesm2022/acorex-components-map.mjs.map +1 -1
  121. package/fesm2022/acorex-components-media-viewer.mjs +85 -85
  122. package/fesm2022/acorex-components-media-viewer.mjs.map +1 -1
  123. package/fesm2022/acorex-components-menu.mjs +49 -49
  124. package/fesm2022/acorex-components-menu.mjs.map +1 -1
  125. package/fesm2022/{acorex-components-modal-acorex-components-modal-JpPBSiVh.mjs → acorex-components-modal-acorex-components-modal-DwBY73dZ.mjs} +29 -29
  126. package/fesm2022/acorex-components-modal-acorex-components-modal-DwBY73dZ.mjs.map +1 -0
  127. package/fesm2022/acorex-components-modal-modal-content.component-DPMt_zaI.mjs +212 -0
  128. package/fesm2022/acorex-components-modal-modal-content.component-DPMt_zaI.mjs.map +1 -0
  129. package/fesm2022/acorex-components-modal.mjs +1 -1
  130. package/fesm2022/acorex-components-navbar.mjs +9 -9
  131. package/fesm2022/acorex-components-navbar.mjs.map +1 -1
  132. package/fesm2022/acorex-components-notification.mjs +29 -29
  133. package/fesm2022/acorex-components-notification.mjs.map +1 -1
  134. package/fesm2022/acorex-components-number-box-legacy.mjs +430 -0
  135. package/fesm2022/acorex-components-number-box-legacy.mjs.map +1 -0
  136. package/fesm2022/acorex-components-number-box.mjs +21 -21
  137. package/fesm2022/acorex-components-number-box.mjs.map +1 -1
  138. package/fesm2022/acorex-components-otp.mjs +13 -13
  139. package/fesm2022/acorex-components-otp.mjs.map +1 -1
  140. package/fesm2022/acorex-components-page.mjs +10 -10
  141. package/fesm2022/acorex-components-page.mjs.map +1 -1
  142. package/fesm2022/acorex-components-paint.mjs +65 -60
  143. package/fesm2022/acorex-components-paint.mjs.map +1 -1
  144. package/fesm2022/acorex-components-password-box.mjs +39 -31
  145. package/fesm2022/acorex-components-password-box.mjs.map +1 -1
  146. package/fesm2022/acorex-components-pdf-reader.mjs +10 -10
  147. package/fesm2022/acorex-components-pdf-reader.mjs.map +1 -1
  148. package/fesm2022/acorex-components-phone-box.mjs +20 -20
  149. package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
  150. package/fesm2022/acorex-components-picker.mjs +33 -33
  151. package/fesm2022/acorex-components-picker.mjs.map +1 -1
  152. package/fesm2022/acorex-components-popover.mjs +11 -11
  153. package/fesm2022/acorex-components-popover.mjs.map +1 -1
  154. package/fesm2022/acorex-components-popup.mjs +25 -25
  155. package/fesm2022/acorex-components-popup.mjs.map +1 -1
  156. package/fesm2022/acorex-components-progress-bar.mjs +9 -11
  157. package/fesm2022/acorex-components-progress-bar.mjs.map +1 -1
  158. package/fesm2022/acorex-components-qrcode.mjs +21 -38
  159. package/fesm2022/acorex-components-qrcode.mjs.map +1 -1
  160. package/fesm2022/acorex-components-query-builder.mjs +15 -16
  161. package/fesm2022/acorex-components-query-builder.mjs.map +1 -1
  162. package/fesm2022/acorex-components-radio.mjs +9 -10
  163. package/fesm2022/acorex-components-radio.mjs.map +1 -1
  164. package/fesm2022/acorex-components-rail-navigation.mjs +51 -53
  165. package/fesm2022/acorex-components-rail-navigation.mjs.map +1 -1
  166. package/fesm2022/acorex-components-range-slider.mjs +36 -36
  167. package/fesm2022/acorex-components-range-slider.mjs.map +1 -1
  168. package/fesm2022/acorex-components-rate-picker.mjs +42 -27
  169. package/fesm2022/acorex-components-rate-picker.mjs.map +1 -1
  170. package/fesm2022/acorex-components-rest-api-generator.mjs +39 -39
  171. package/fesm2022/acorex-components-rest-api-generator.mjs.map +1 -1
  172. package/fesm2022/acorex-components-result.mjs +8 -8
  173. package/fesm2022/acorex-components-result.mjs.map +1 -1
  174. package/fesm2022/acorex-components-routing-progress.mjs +8 -8
  175. package/fesm2022/acorex-components-routing-progress.mjs.map +1 -1
  176. package/fesm2022/acorex-components-rrule.mjs +38 -38
  177. package/fesm2022/acorex-components-rrule.mjs.map +1 -1
  178. package/fesm2022/acorex-components-scheduler-picker.mjs +234 -228
  179. package/fesm2022/acorex-components-scheduler-picker.mjs.map +1 -1
  180. package/fesm2022/acorex-components-scheduler.mjs +302 -292
  181. package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
  182. package/fesm2022/acorex-components-scss.mjs +22 -0
  183. package/fesm2022/acorex-components-scss.mjs.map +1 -0
  184. package/fesm2022/acorex-components-search-box.mjs +13 -19
  185. package/fesm2022/acorex-components-search-box.mjs.map +1 -1
  186. package/fesm2022/acorex-components-select-box.mjs +25 -27
  187. package/fesm2022/acorex-components-select-box.mjs.map +1 -1
  188. package/fesm2022/acorex-components-selection-list-2.mjs +15 -15
  189. package/fesm2022/acorex-components-selection-list-2.mjs.map +1 -1
  190. package/fesm2022/acorex-components-selection-list.mjs +12 -12
  191. package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
  192. package/fesm2022/acorex-components-side-menu.mjs +44 -44
  193. package/fesm2022/acorex-components-side-menu.mjs.map +1 -1
  194. package/fesm2022/acorex-components-skeleton.mjs +8 -8
  195. package/fesm2022/acorex-components-skeleton.mjs.map +1 -1
  196. package/fesm2022/acorex-components-slider.mjs +13 -13
  197. package/fesm2022/acorex-components-slider.mjs.map +1 -1
  198. package/fesm2022/acorex-components-sliding-item.mjs +28 -28
  199. package/fesm2022/acorex-components-sliding-item.mjs.map +1 -1
  200. package/fesm2022/acorex-components-step-wizard.mjs +41 -41
  201. package/fesm2022/acorex-components-step-wizard.mjs.map +1 -1
  202. package/fesm2022/acorex-components-switch.mjs +14 -14
  203. package/fesm2022/acorex-components-switch.mjs.map +1 -1
  204. package/fesm2022/acorex-components-tabs.mjs +22 -22
  205. package/fesm2022/acorex-components-tabs.mjs.map +1 -1
  206. package/fesm2022/acorex-components-tag-box.mjs +20 -20
  207. package/fesm2022/acorex-components-tag-box.mjs.map +1 -1
  208. package/fesm2022/acorex-components-tag.mjs +10 -10
  209. package/fesm2022/acorex-components-tag.mjs.map +1 -1
  210. package/fesm2022/acorex-components-text-area.mjs +9 -9
  211. package/fesm2022/acorex-components-text-area.mjs.map +1 -1
  212. package/fesm2022/acorex-components-text-box.mjs +14 -14
  213. package/fesm2022/acorex-components-text-box.mjs.map +1 -1
  214. package/fesm2022/acorex-components-time-duration.mjs +31 -29
  215. package/fesm2022/acorex-components-time-duration.mjs.map +1 -1
  216. package/fesm2022/acorex-components-time-line.mjs +21 -21
  217. package/fesm2022/acorex-components-time-line.mjs.map +1 -1
  218. package/fesm2022/acorex-components-toast.mjs +27 -27
  219. package/fesm2022/acorex-components-toast.mjs.map +1 -1
  220. package/fesm2022/acorex-components-toolbar.mjs +14 -14
  221. package/fesm2022/acorex-components-toolbar.mjs.map +1 -1
  222. package/fesm2022/acorex-components-tooltip.mjs +17 -17
  223. package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
  224. package/fesm2022/acorex-components-tree-view-legacy.mjs +511 -0
  225. package/fesm2022/acorex-components-tree-view-legacy.mjs.map +1 -0
  226. package/fesm2022/acorex-components-tree-view.mjs +328 -69
  227. package/fesm2022/acorex-components-tree-view.mjs.map +1 -1
  228. package/fesm2022/acorex-components-uploader.mjs +18 -18
  229. package/fesm2022/acorex-components-uploader.mjs.map +1 -1
  230. package/fesm2022/acorex-components-video-player.mjs +10 -10
  231. package/fesm2022/acorex-components-video-player.mjs.map +1 -1
  232. package/fesm2022/acorex-components-wysiwyg.mjs +58 -58
  233. package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
  234. package/fesm2022/acorex-components.mjs.map +1 -1
  235. package/file-explorer/README.md +3 -0
  236. package/file-explorer/index.d.ts +103 -0
  237. package/{types/acorex-components-flow-chart.d.ts → flow-chart/index.d.ts} +0 -4
  238. package/{types/acorex-components-form.d.ts → form/index.d.ts} +24 -24
  239. package/{types/acorex-components-grid-layout-builder.d.ts → grid-layout-builder/index.d.ts} +1 -0
  240. package/{types/acorex-components-loading.d.ts → loading/index.d.ts} +1 -1
  241. package/{types/acorex-components-menu.d.ts → menu/index.d.ts} +6 -6
  242. package/number-box-legacy/README.md +3 -0
  243. package/number-box-legacy/index.d.ts +191 -0
  244. package/package.json +141 -118
  245. package/{types/acorex-components-paint.d.ts → paint/index.d.ts} +6 -1
  246. package/{types/acorex-components-qrcode.d.ts → qrcode/index.d.ts} +0 -1
  247. package/{types/acorex-components-radio.d.ts → radio/index.d.ts} +1 -1
  248. package/{types/acorex-components-rate-picker.d.ts → rate-picker/index.d.ts} +15 -5
  249. package/{types/acorex-components-scheduler-picker.d.ts → scheduler-picker/index.d.ts} +81 -82
  250. package/scss/README.md +3 -0
  251. package/scss/index.d.ts +10 -0
  252. package/{types/acorex-components-select-box.d.ts → select-box/index.d.ts} +1 -2
  253. package/{types/acorex-components-slider.d.ts → slider/index.d.ts} +2 -2
  254. package/{types/acorex-components-tabs.d.ts → tabs/index.d.ts} +1 -1
  255. package/{types/acorex-components-tag.d.ts → tag/index.d.ts} +3 -3
  256. package/{types/acorex-components-tree-view.d.ts → tree-view/index.d.ts} +43 -2
  257. package/tree-view-legacy/README.md +3 -0
  258. package/tree-view-legacy/index.d.ts +184 -0
  259. package/fesm2022/acorex-components-modal-acorex-components-modal-JpPBSiVh.mjs.map +0 -1
  260. package/fesm2022/acorex-components-modal-modal-content.component-DKweXQfl.mjs +0 -214
  261. package/fesm2022/acorex-components-modal-modal-content.component-DKweXQfl.mjs.map +0 -1
  262. package/{types/acorex-components-action-sheet.d.ts → action-sheet/index.d.ts} +0 -0
  263. package/{types/acorex-components-alert.d.ts → alert/index.d.ts} +0 -0
  264. package/{types/acorex-components-aspect-ratio.d.ts → aspect-ratio/index.d.ts} +0 -0
  265. package/{types/acorex-components-audio-wave.d.ts → audio-wave/index.d.ts} +0 -0
  266. package/{types/acorex-components-autocomplete.d.ts → autocomplete/index.d.ts} +0 -0
  267. package/{types/acorex-components-avatar.d.ts → avatar/index.d.ts} +0 -0
  268. package/{types/acorex-components-badge.d.ts → badge/index.d.ts} +0 -0
  269. package/{types/acorex-components-bottom-navigation.d.ts → bottom-navigation/index.d.ts} +0 -0
  270. package/{types/acorex-components-breadcrumbs.d.ts → breadcrumbs/index.d.ts} +0 -0
  271. package/{types/acorex-components-calendar.d.ts → calendar/index.d.ts} +0 -0
  272. package/{types/acorex-components-circular-progress.d.ts → circular-progress/index.d.ts} +0 -0
  273. package/{types/acorex-components-code-editor.d.ts → code-editor/index.d.ts} +0 -0
  274. package/{types/acorex-components-color-box.d.ts → color-box/index.d.ts} +0 -0
  275. package/{types/acorex-components-command.d.ts → command/index.d.ts} +0 -0
  276. package/{types/acorex-components-comment.d.ts → comment/index.d.ts} +0 -0
  277. package/{types/acorex-components-conversation.d.ts → conversation/index.d.ts} +0 -0
  278. package/{types/acorex-components-cron-job.d.ts → cron-job/index.d.ts} +0 -0
  279. package/{types/acorex-components-data-list.d.ts → data-list/index.d.ts} +0 -0
  280. package/{types/acorex-components-data-pager.d.ts → data-pager/index.d.ts} +0 -0
  281. package/{types/acorex-components-datetime-input.d.ts → datetime-input/index.d.ts} +0 -0
  282. package/{types/acorex-components-datetime-picker.d.ts → datetime-picker/index.d.ts} +0 -0
  283. package/{types/acorex-components-decorators.d.ts → decorators/index.d.ts} +0 -0
  284. package/{types/acorex-components-dialog.d.ts → dialog/index.d.ts} +0 -0
  285. package/{types/acorex-components-drawer.d.ts → drawer/index.d.ts} +0 -0
  286. package/{types/acorex-components-dropdown.d.ts → dropdown/index.d.ts} +0 -0
  287. package/{types/acorex-components-editor.d.ts → editor/index.d.ts} +0 -0
  288. package/{types/acorex-components-fab.d.ts → fab/index.d.ts} +0 -0
  289. package/{types/acorex-components-image.d.ts → image/index.d.ts} +0 -0
  290. package/{types/acorex-components-image-editor.d.ts → image-editor/index.d.ts} +0 -0
  291. package/{types/acorex-components.d.ts → index.d.ts} +0 -0
  292. package/{types/acorex-components-json-viewer.d.ts → json-viewer/index.d.ts} +0 -0
  293. package/{types/acorex-components-kanban.d.ts → kanban/index.d.ts} +0 -0
  294. package/{types/acorex-components-kbd.d.ts → kbd/index.d.ts} +0 -0
  295. package/{types/acorex-components-label.d.ts → label/index.d.ts} +0 -0
  296. package/{types/acorex-components-list.d.ts → list/index.d.ts} +0 -0
  297. package/{types/acorex-components-loading-dialog.d.ts → loading-dialog/index.d.ts} +0 -0
  298. package/{types/acorex-components-map.d.ts → map/index.d.ts} +0 -0
  299. package/{types/acorex-components-media-viewer.d.ts → media-viewer/index.d.ts} +0 -0
  300. package/{types/acorex-components-modal.d.ts → modal/index.d.ts} +0 -0
  301. package/{types/acorex-components-navbar.d.ts → navbar/index.d.ts} +0 -0
  302. package/{types/acorex-components-notification.d.ts → notification/index.d.ts} +0 -0
  303. package/{types/acorex-components-number-box.d.ts → number-box/index.d.ts} +0 -0
  304. package/{types/acorex-components-otp.d.ts → otp/index.d.ts} +0 -0
  305. package/{types/acorex-components-page.d.ts → page/index.d.ts} +0 -0
  306. package/{types/acorex-components-password-box.d.ts → password-box/index.d.ts} +0 -0
  307. package/{types/acorex-components-pdf-reader.d.ts → pdf-reader/index.d.ts} +0 -0
  308. package/{types/acorex-components-phone-box.d.ts → phone-box/index.d.ts} +0 -0
  309. package/{types/acorex-components-picker.d.ts → picker/index.d.ts} +0 -0
  310. package/{types/acorex-components-popover.d.ts → popover/index.d.ts} +0 -0
  311. package/{types/acorex-components-popup.d.ts → popup/index.d.ts} +0 -0
  312. package/{types/acorex-components-progress-bar.d.ts → progress-bar/index.d.ts} +0 -0
  313. package/{types/acorex-components-query-builder.d.ts → query-builder/index.d.ts} +1 -1
  314. /package/{types/acorex-components-rail-navigation.d.ts → rail-navigation/index.d.ts} +0 -0
  315. /package/{types/acorex-components-range-slider.d.ts → range-slider/index.d.ts} +0 -0
  316. /package/{types/acorex-components-rest-api-generator.d.ts → rest-api-generator/index.d.ts} +0 -0
  317. /package/{types/acorex-components-result.d.ts → result/index.d.ts} +0 -0
  318. /package/{types/acorex-components-routing-progress.d.ts → routing-progress/index.d.ts} +0 -0
  319. /package/{types/acorex-components-rrule.d.ts → rrule/index.d.ts} +0 -0
  320. /package/{types/acorex-components-scheduler.d.ts → scheduler/index.d.ts} +0 -0
  321. /package/{types/acorex-components-search-box.d.ts → search-box/index.d.ts} +0 -0
  322. /package/{types/acorex-components-selection-list.d.ts → selection-list/index.d.ts} +0 -0
  323. /package/{types/acorex-components-selection-list-2.d.ts → selection-list-2/index.d.ts} +0 -0
  324. /package/{types/acorex-components-side-menu.d.ts → side-menu/index.d.ts} +0 -0
  325. /package/{types/acorex-components-skeleton.d.ts → skeleton/index.d.ts} +0 -0
  326. /package/{types/acorex-components-sliding-item.d.ts → sliding-item/index.d.ts} +0 -0
  327. /package/{types/acorex-components-step-wizard.d.ts → step-wizard/index.d.ts} +0 -0
  328. /package/{types/acorex-components-switch.d.ts → switch/index.d.ts} +0 -0
  329. /package/{types/acorex-components-tag-box.d.ts → tag-box/index.d.ts} +0 -0
  330. /package/{types/acorex-components-text-area.d.ts → text-area/index.d.ts} +0 -0
  331. /package/{types/acorex-components-text-box.d.ts → text-box/index.d.ts} +0 -0
  332. /package/{types/acorex-components-time-duration.d.ts → time-duration/index.d.ts} +0 -0
  333. /package/{types/acorex-components-time-line.d.ts → time-line/index.d.ts} +0 -0
  334. /package/{types/acorex-components-toast.d.ts → toast/index.d.ts} +0 -0
  335. /package/{types/acorex-components-toolbar.d.ts → toolbar/index.d.ts} +0 -0
  336. /package/{types/acorex-components-tooltip.d.ts → tooltip/index.d.ts} +0 -0
  337. /package/{types/acorex-components-uploader.d.ts → uploader/index.d.ts} +0 -0
  338. /package/{types/acorex-components-video-player.d.ts → video-player/index.d.ts} +0 -0
  339. /package/{types/acorex-components-wysiwyg.d.ts → wysiwyg/index.d.ts} +0 -0
@@ -97,6 +97,14 @@ interface AXTreeViewNodeToggleEvent extends AXHtmlEvent {
97
97
  }
98
98
  interface AXTreeViewNodeSelectEvent extends AXHtmlEvent {
99
99
  node: AXTreeViewNode;
100
+ /** When false, the selection change was applied programmatically (controlled sync, selectNode, etc.). */
101
+ isUserInteraction?: boolean;
102
+ }
103
+ type AXTreeViewSelectionSource = 'user' | 'programmatic';
104
+ /** Options for {@link AXTreeViewComponent.selectAndReveal}. */
105
+ interface AXTreeViewSelectAndRevealOptions {
106
+ /** Ancestor node ids from root to parent for each target id (parallel to nodeIds). */
107
+ ancestorPaths?: string[][];
100
108
  }
101
109
  interface AXTreeViewNodeDoubleClickEvent extends AXHtmlEvent {
102
110
  node: AXTreeViewNode;
@@ -106,6 +114,8 @@ interface AXTreeViewNodeClickEvent extends AXHtmlEvent {
106
114
  }
107
115
  interface AXTreeViewSelectionChangeEvent extends AXEvent {
108
116
  selectedNodes: AXTreeViewNode[];
117
+ selectedIds: string[];
118
+ source: AXTreeViewSelectionSource;
109
119
  }
110
120
  interface AXTreeViewDropEvent extends AXEvent {
111
121
  node: AXTreeViewNode;
@@ -260,6 +270,13 @@ declare class AXTreeViewComponent {
260
270
  readonly doubleClickDuration: _angular_core.InputSignal<number>;
261
271
  /** Duration in milliseconds for detecting double-clicks. Default: `50`. */
262
272
  readonly tooltipDelay: _angular_core.InputSignal<number>;
273
+ /**
274
+ * When true, {@link selectedIds} is the source of truth: the tree applies it on load/reload
275
+ * and emits updates on user interaction. Default: `false` (existing imperative API unchanged).
276
+ */
277
+ readonly controlledSelection: _angular_core.InputSignal<boolean>;
278
+ /** Selected node ids (two-way). Used when {@link controlledSelection} is true. */
279
+ readonly selectedIds: _angular_core.ModelSignal<string[]>;
263
280
  /** Emitted before a drop operation - set canceled to true to prevent drop */
264
281
  readonly onBeforeDrop: _angular_core.OutputEmitterRef<AXTreeViewBeforeDropEvent>;
265
282
  /** Emitted when a node is toggled (expanded/collapsed) */
@@ -297,6 +314,11 @@ declare class AXTreeViewComponent {
297
314
  protected readonly directionCollapsedIcon: _angular_core.Signal<string>;
298
315
  /** Flag to prevent infinite loops when syncing datasource */
299
316
  private isUpdatingFromDatasource;
317
+ /** Bumped when controlled selection changes so stale async sync is ignored. */
318
+ private selectionSyncRevision;
319
+ private pendingApplySelectedIdsTimeout?;
320
+ /** Prevents selectedIds effect from re-applying when the model was updated from the tree. */
321
+ private isUpdatingSelectedIdsModel;
300
322
  /** Computed to check if datasource is a function */
301
323
  private readonly isLazyDataSource;
302
324
  /** Computed: Returns true when selection is restricted to leaf nodes only */
@@ -423,6 +445,15 @@ declare class AXTreeViewComponent {
423
445
  * Get all selected nodes
424
446
  */
425
447
  getSelectedNodes(): AXTreeViewNode[];
448
+ /**
449
+ * Returns selected node ids (from {@link selectedIds} when controlled, otherwise from tree state).
450
+ */
451
+ getSelectedIds(): string[];
452
+ /**
453
+ * Expands ancestor paths (when provided) and applies selection.
454
+ * Intended for lazy trees with {@link controlledSelection}.
455
+ */
456
+ selectAndReveal(nodeIds: string[], options?: AXTreeViewSelectAndRevealOptions): Promise<void>;
426
457
  /**
427
458
  * Delete selected nodes from the tree
428
459
  */
@@ -659,6 +690,16 @@ declare class AXTreeViewComponent {
659
690
  * Emit selection change event with all selected nodes
660
691
  */
661
692
  private emitSelectionChange;
693
+ private bumpSelectionSyncRevision;
694
+ private isSelectionSyncCurrent;
695
+ private normalizeSelectedIdsForMode;
696
+ private areSelectedIdsEqual;
697
+ private setSelectedIdsModel;
698
+ private syncSelectedIdsModelFromTree;
699
+ private scheduleApplySelectedIdsToTree;
700
+ private applySelectedIdsToTree;
701
+ private applySelectedIdsToTreeWithRetry;
702
+ private expandAncestorPaths;
662
703
  /**
663
704
  * Handle node double click
664
705
  */
@@ -797,7 +838,7 @@ declare class AXTreeViewComponent {
797
838
  */
798
839
  private handleError;
799
840
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXTreeViewComponent, never>;
800
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXTreeViewComponent, "ax-tree-view", never, { "datasource": { "alias": "datasource"; "required": true; "isSignal": true; }; "selectMode": { "alias": "selectMode"; "required": false; "isSignal": true; }; "selectionBehavior": { "alias": "selectionBehavior"; "required": false; "isSignal": true; }; "dragArea": { "alias": "dragArea"; "required": false; "isSignal": true; }; "dragBehavior": { "alias": "dragBehavior"; "required": false; "isSignal": true; }; "showIcons": { "alias": "showIcons"; "required": false; "isSignal": true; }; "showChildrenBadge": { "alias": "showChildrenBadge"; "required": false; "isSignal": true; }; "expandedIcon": { "alias": "expandedIcon"; "required": false; "isSignal": true; }; "collapsedIcon": { "alias": "collapsedIcon"; "required": false; "isSignal": true; }; "indentSize": { "alias": "indentSize"; "required": false; "isSignal": true; }; "look": { "alias": "look"; "required": false; "isSignal": true; }; "nodeTemplate": { "alias": "nodeTemplate"; "required": false; "isSignal": true; }; "idField": { "alias": "idField"; "required": false; "isSignal": true; }; "titleField": { "alias": "titleField"; "required": false; "isSignal": true; }; "tooltipField": { "alias": "tooltipField"; "required": false; "isSignal": true; }; "iconField": { "alias": "iconField"; "required": false; "isSignal": true; }; "expandedField": { "alias": "expandedField"; "required": false; "isSignal": true; }; "selectedField": { "alias": "selectedField"; "required": false; "isSignal": true; }; "indeterminateField": { "alias": "indeterminateField"; "required": false; "isSignal": true; }; "disabledField": { "alias": "disabledField"; "required": false; "isSignal": true; }; "hiddenField": { "alias": "hiddenField"; "required": false; "isSignal": true; }; "childrenField": { "alias": "childrenField"; "required": false; "isSignal": true; }; "childrenCountField": { "alias": "childrenCountField"; "required": false; "isSignal": true; }; "dataField": { "alias": "dataField"; "required": false; "isSignal": true; }; "inheritDisabled": { "alias": "inheritDisabled"; "required": false; "isSignal": true; }; "expandOnDoubleClick": { "alias": "expandOnDoubleClick"; "required": false; "isSignal": true; }; "doubleClickDuration": { "alias": "doubleClickDuration"; "required": false; "isSignal": true; }; "tooltipDelay": { "alias": "tooltipDelay"; "required": false; "isSignal": true; }; }, { "datasource": "datasourceChange"; "onBeforeDrop": "onBeforeDrop"; "onNodeToggle": "onNodeToggle"; "onNodeSelect": "onNodeSelect"; "onNodeDoubleClick": "onNodeDoubleClick"; "onNodeClick": "onNodeClick"; "onSelectionChange": "onSelectionChange"; "onOrderChange": "onOrderChange"; "onMoveChange": "onMoveChange"; "onItemsChange": "onItemsChange"; }, never, never, true, never>;
841
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXTreeViewComponent, "ax-tree-view", never, { "datasource": { "alias": "datasource"; "required": true; "isSignal": true; }; "selectMode": { "alias": "selectMode"; "required": false; "isSignal": true; }; "selectionBehavior": { "alias": "selectionBehavior"; "required": false; "isSignal": true; }; "dragArea": { "alias": "dragArea"; "required": false; "isSignal": true; }; "dragBehavior": { "alias": "dragBehavior"; "required": false; "isSignal": true; }; "showIcons": { "alias": "showIcons"; "required": false; "isSignal": true; }; "showChildrenBadge": { "alias": "showChildrenBadge"; "required": false; "isSignal": true; }; "expandedIcon": { "alias": "expandedIcon"; "required": false; "isSignal": true; }; "collapsedIcon": { "alias": "collapsedIcon"; "required": false; "isSignal": true; }; "indentSize": { "alias": "indentSize"; "required": false; "isSignal": true; }; "look": { "alias": "look"; "required": false; "isSignal": true; }; "nodeTemplate": { "alias": "nodeTemplate"; "required": false; "isSignal": true; }; "idField": { "alias": "idField"; "required": false; "isSignal": true; }; "titleField": { "alias": "titleField"; "required": false; "isSignal": true; }; "tooltipField": { "alias": "tooltipField"; "required": false; "isSignal": true; }; "iconField": { "alias": "iconField"; "required": false; "isSignal": true; }; "expandedField": { "alias": "expandedField"; "required": false; "isSignal": true; }; "selectedField": { "alias": "selectedField"; "required": false; "isSignal": true; }; "indeterminateField": { "alias": "indeterminateField"; "required": false; "isSignal": true; }; "disabledField": { "alias": "disabledField"; "required": false; "isSignal": true; }; "hiddenField": { "alias": "hiddenField"; "required": false; "isSignal": true; }; "childrenField": { "alias": "childrenField"; "required": false; "isSignal": true; }; "childrenCountField": { "alias": "childrenCountField"; "required": false; "isSignal": true; }; "dataField": { "alias": "dataField"; "required": false; "isSignal": true; }; "inheritDisabled": { "alias": "inheritDisabled"; "required": false; "isSignal": true; }; "expandOnDoubleClick": { "alias": "expandOnDoubleClick"; "required": false; "isSignal": true; }; "doubleClickDuration": { "alias": "doubleClickDuration"; "required": false; "isSignal": true; }; "tooltipDelay": { "alias": "tooltipDelay"; "required": false; "isSignal": true; }; "controlledSelection": { "alias": "controlledSelection"; "required": false; "isSignal": true; }; "selectedIds": { "alias": "selectedIds"; "required": false; "isSignal": true; }; }, { "datasource": "datasourceChange"; "selectedIds": "selectedIdsChange"; "onBeforeDrop": "onBeforeDrop"; "onNodeToggle": "onNodeToggle"; "onNodeSelect": "onNodeSelect"; "onNodeDoubleClick": "onNodeDoubleClick"; "onNodeClick": "onNodeClick"; "onSelectionChange": "onSelectionChange"; "onOrderChange": "onOrderChange"; "onMoveChange": "onMoveChange"; "onItemsChange": "onItemsChange"; }, never, never, true, never>;
801
842
  }
802
843
 
803
844
  declare class AXTreeViewModule {
@@ -993,4 +1034,4 @@ declare class AXTreeViewService {
993
1034
  }
994
1035
 
995
1036
  export { AXTreeViewComponent, AXTreeViewModule, AXTreeViewService };
996
- export type { AXTreeViewBeforeDropEvent, AXTreeViewCallback, AXTreeViewChildrenSelectionState, AXTreeViewDataSource, AXTreeViewDragArea, AXTreeViewDragBehavior, AXTreeViewDropEvent, AXTreeViewFlatNode, AXTreeViewItemTemplateContext, AXTreeViewNode, AXTreeViewNodeClickEvent, AXTreeViewNodeDoubleClickEvent, AXTreeViewNodeSelectEvent, AXTreeViewNodeToggleEvent, AXTreeViewSelectMode, AXTreeViewSelectionBehavior, AXTreeViewSelectionChangeEvent, AXTreeViewViewLook };
1037
+ export type { AXTreeViewBeforeDropEvent, AXTreeViewCallback, AXTreeViewChildrenSelectionState, AXTreeViewDataSource, AXTreeViewDragArea, AXTreeViewDragBehavior, AXTreeViewDropEvent, AXTreeViewFlatNode, AXTreeViewItemTemplateContext, AXTreeViewNode, AXTreeViewNodeClickEvent, AXTreeViewNodeDoubleClickEvent, AXTreeViewNodeSelectEvent, AXTreeViewNodeToggleEvent, AXTreeViewSelectAndRevealOptions, AXTreeViewSelectMode, AXTreeViewSelectionBehavior, AXTreeViewSelectionChangeEvent, AXTreeViewSelectionSource, AXTreeViewViewLook };
@@ -0,0 +1,3 @@
1
+ # @acorex/components/tree-view-legacy
2
+
3
+ Secondary entry point of `@acorex/components`. It can be used by importing from `@acorex/components/tree-view-legacy`.
@@ -0,0 +1,184 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { EventEmitter, TemplateRef } from '@angular/core';
3
+ import * as i4 from '@acorex/cdk/common';
4
+ import { AXClickEvent, NXComponent, AXExpandToggleIcons, AXValueChangedEvent } from '@acorex/cdk/common';
5
+ import { AXPlatform } from '@acorex/core/platform';
6
+ import * as i3 from '@angular/common';
7
+ import * as i5 from '@acorex/components/decorators';
8
+ import * as i6 from '@acorex/components/check-box';
9
+ import * as i7 from '@acorex/components/form';
10
+ import * as i8 from '@angular/forms';
11
+ import * as i9 from '@acorex/components/tooltip';
12
+ import * as i10 from '@acorex/components/loading';
13
+
14
+ declare class AXTreeItemClickBaseEventLegacy extends AXClickEvent {
15
+ nativeElement: any;
16
+ }
17
+ type AXTreeViewSelectionBehaviorLegacy = 'autoExpand' | 'cascade' | 'indeterminate';
18
+ type AXTreeViewExpandBehaviorLegacy = 'click' | 'dbClick' | 'defult';
19
+ type AXTreeViewOperationMethodLegacy = 'expand' | 'active' | 'visible' | 'disabled';
20
+ type AXTreeViewLookLegacy = 'with-line' | 'defult';
21
+ type AXTreeViewSelectionScopeLegacy = 'all' | 'parent' | 'children';
22
+ declare abstract class AXTreeViewBaseLegacy {
23
+ abstract getChildren(item: unknown): unknown[];
24
+ abstract hasChildren(item: unknown): boolean;
25
+ abstract itemTemplate: any;
26
+ abstract disableField(): string;
27
+ abstract childrenField(): string;
28
+ abstract valueField(): string;
29
+ abstract activeField(): string;
30
+ abstract hasChildField(): string;
31
+ abstract tooltipField(): string;
32
+ abstract showEmptyNodeMassage(): boolean;
33
+ abstract expandOn(): AXTreeViewExpandBehaviorLegacy;
34
+ abstract focusNodeEnabled(): boolean;
35
+ abstract toggleIcons(): {
36
+ expanded: string;
37
+ collapsed: string;
38
+ } | null;
39
+ abstract itemsPromise: boolean;
40
+ abstract itemsSignal(): unknown[];
41
+ abstract fetchData(item: unknown): void;
42
+ abstract setNodeLoading(value: unknown, loading: boolean): void;
43
+ abstract handleUnActiveNode(items: unknown[]): void;
44
+ abstract onCollapsedChanged: EventEmitter<{
45
+ component: any;
46
+ data: unknown;
47
+ nativeElement: any;
48
+ }>;
49
+ abstract onNodeClick: EventEmitter<{
50
+ component: any;
51
+ data: unknown;
52
+ nativeElement: any;
53
+ }>;
54
+ abstract onNodedbClick: EventEmitter<{
55
+ component: any;
56
+ data: unknown;
57
+ nativeElement: any;
58
+ }>;
59
+ }
60
+
61
+ declare class AXTreeViewItemLegacyComponent extends NXComponent {
62
+ constructor();
63
+ treeView: AXTreeViewBaseLegacy;
64
+ item: _angular_core.InputSignal<unknown>;
65
+ isExpanded: _angular_core.ModelSignal<boolean>;
66
+ isActive: _angular_core.ModelSignal<boolean>;
67
+ isLoading: _angular_core.InputSignal<boolean>;
68
+ executorChanges: _angular_core.InputSignal<AXTreeViewOperationMethodLegacy>;
69
+ protected platformService: AXPlatform;
70
+ protected arrowIcon: _angular_core.Signal<string>;
71
+ protected handleArrowNodeClick(): void;
72
+ protected handleTextClick(): void;
73
+ protected handleTextDbClick(): void;
74
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXTreeViewItemLegacyComponent, never>;
75
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXTreeViewItemLegacyComponent, "ax-tree-view-item-legacy", never, { "item": { "alias": "item"; "required": false; "isSignal": true; }; "isExpanded": { "alias": "isExpanded"; "required": false; "isSignal": true; }; "isActive": { "alias": "isActive"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "executorChanges": { "alias": "executorChanges"; "required": false; "isSignal": true; }; }, { "isExpanded": "isExpandedChange"; "isActive": "isActiveChange"; }, never, ["ax-check-box", "ax-prefix", "ax-text", "ax-suffix", "*"], true, never>;
76
+ }
77
+
78
+ declare class AXTreeViewLegacyComponent extends NXComponent {
79
+ #private;
80
+ /** @ignore */
81
+ private get __hostClass();
82
+ itemsSignal: _angular_core.WritableSignal<unknown[]>;
83
+ itemsPromise: any;
84
+ items: _angular_core.InputSignal<unknown[] | ((selectedItemId?: string | number) => unknown[] | Promise<unknown[]>)>;
85
+ protected get resolvedItems(): unknown[];
86
+ showCheckbox: _angular_core.InputSignal<boolean>;
87
+ hasCheckboxField: _angular_core.InputSignal<string>;
88
+ selectionMode: _angular_core.InputSignal<"single" | "multiple">;
89
+ selectionBehavior: _angular_core.InputSignal<AXTreeViewSelectionBehaviorLegacy>;
90
+ selectionScope: _angular_core.InputSignal<AXTreeViewSelectionScopeLegacy>;
91
+ focusNodeEnabled: _angular_core.InputSignal<boolean>;
92
+ valueField: _angular_core.InputSignal<string>;
93
+ textField: _angular_core.InputSignal<string>;
94
+ visibleField: _angular_core.InputSignal<string>;
95
+ disableField: _angular_core.InputSignal<string>;
96
+ hasChildField: _angular_core.InputSignal<string>;
97
+ selectedField: _angular_core.InputSignal<string>;
98
+ expandedField: _angular_core.InputSignal<string>;
99
+ tooltipField: _angular_core.InputSignal<string>;
100
+ childrenField: _angular_core.InputSignal<string>;
101
+ activeField: _angular_core.InputSignal<string>;
102
+ indeterminateField: _angular_core.InputSignal<string>;
103
+ parentField: _angular_core.InputSignal<string>;
104
+ iconField: _angular_core.InputSignal<string>;
105
+ toggleIcons: _angular_core.InputSignal<AXExpandToggleIcons>;
106
+ look: _angular_core.InputSignal<AXTreeViewLookLegacy>;
107
+ showEmptyNodeMassage: _angular_core.InputSignal<boolean>;
108
+ onSelectionChanged: _angular_core.OutputEmitterRef<AXTreeItemClickBaseEventLegacy>;
109
+ onItemSelectedChanged: _angular_core.OutputEmitterRef<AXTreeItemClickBaseEventLegacy>;
110
+ onNodeClick: _angular_core.OutputEmitterRef<AXTreeItemClickBaseEventLegacy>;
111
+ onCollapsedChanged: _angular_core.OutputEmitterRef<AXTreeItemClickBaseEventLegacy>;
112
+ onNodedbClick: _angular_core.OutputEmitterRef<AXTreeItemClickBaseEventLegacy>;
113
+ executorChanges: _angular_core.WritableSignal<AXTreeViewOperationMethodLegacy>;
114
+ itemTemplate?: TemplateRef<unknown>;
115
+ emptyTemplate?: TemplateRef<unknown>;
116
+ protected platformService: AXPlatform;
117
+ expandOn: _angular_core.InputSignal<AXTreeViewExpandBehaviorLegacy>;
118
+ protected handleNodeSelectionClick(event: AXValueChangedEvent, item: unknown): void;
119
+ /**
120
+ *
121
+ * auto expand
122
+ *
123
+ */
124
+ private toggleExpand;
125
+ /**
126
+ *
127
+ * expand and change value parent change
128
+ *
129
+ */
130
+ private expandAndToggleSelection;
131
+ private applySelectionToChildren;
132
+ /**
133
+ *
134
+ * indeterminate logic
135
+ *
136
+ */
137
+ private updateParentSelection;
138
+ private findParent;
139
+ /**
140
+ *
141
+ * find node selected true for emit Selections
142
+ *
143
+ */
144
+ private findSelectedNodes;
145
+ /**
146
+ *
147
+ * find for emit Selections single mode
148
+ *
149
+ */
150
+ private handleUnSelectNode;
151
+ /**
152
+ *
153
+ * lazy load logic
154
+ *
155
+ */
156
+ fetchData(selectedNode?: unknown): void;
157
+ private findNode;
158
+ /**
159
+ *
160
+ * emit when arrow click
161
+ *
162
+ */
163
+ protected handleNodeExpandClick(node: AXTreeItemClickBaseEventLegacy): void;
164
+ handleUnActiveNode(unActiveSource: unknown[]): void;
165
+ private loadingState;
166
+ protected isNodeLoading(nodeId: string | number): boolean;
167
+ setNodeLoading(nodeId: string | number, isLoading: boolean): void;
168
+ executeOnTreeNode(node: unknown, operation: AXTreeViewOperationMethodLegacy, value: boolean): void;
169
+ refresh(): void;
170
+ setNodeExpandAndChildren(valueFields: (number | string)[], value: boolean): Promise<void>;
171
+ private findNodesByValueField;
172
+ private expandNodeAndAllChildren;
173
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXTreeViewLegacyComponent, never>;
174
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXTreeViewLegacyComponent, "ax-tree-view-legacy", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "showCheckbox": { "alias": "showCheckbox"; "required": false; "isSignal": true; }; "hasCheckboxField": { "alias": "hasCheckboxField"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "selectionBehavior": { "alias": "selectionBehavior"; "required": false; "isSignal": true; }; "selectionScope": { "alias": "selectionScope"; "required": false; "isSignal": true; }; "focusNodeEnabled": { "alias": "focusNodeEnabled"; "required": false; "isSignal": true; }; "valueField": { "alias": "valueField"; "required": false; "isSignal": true; }; "textField": { "alias": "textField"; "required": false; "isSignal": true; }; "visibleField": { "alias": "visibleField"; "required": false; "isSignal": true; }; "disableField": { "alias": "disableField"; "required": false; "isSignal": true; }; "hasChildField": { "alias": "hasChildField"; "required": false; "isSignal": true; }; "selectedField": { "alias": "selectedField"; "required": false; "isSignal": true; }; "expandedField": { "alias": "expandedField"; "required": false; "isSignal": true; }; "tooltipField": { "alias": "tooltipField"; "required": false; "isSignal": true; }; "childrenField": { "alias": "childrenField"; "required": false; "isSignal": true; }; "activeField": { "alias": "activeField"; "required": false; "isSignal": true; }; "indeterminateField": { "alias": "indeterminateField"; "required": false; "isSignal": true; }; "parentField": { "alias": "parentField"; "required": false; "isSignal": true; }; "iconField": { "alias": "iconField"; "required": false; "isSignal": true; }; "toggleIcons": { "alias": "toggleIcons"; "required": false; "isSignal": true; }; "look": { "alias": "look"; "required": false; "isSignal": true; }; "showEmptyNodeMassage": { "alias": "showEmptyNodeMassage"; "required": false; "isSignal": true; }; "itemTemplate": { "alias": "itemTemplate"; "required": false; }; "emptyTemplate": { "alias": "emptyTemplate"; "required": false; }; "expandOn": { "alias": "expandOn"; "required": false; "isSignal": true; }; }, { "onSelectionChanged": "onSelectionChanged"; "onItemSelectedChanged": "onItemSelectedChanged"; "onNodeClick": "onNodeClick"; "onCollapsedChanged": "onCollapsedChanged"; "onNodedbClick": "onNodedbClick"; }, never, never, true, never>;
175
+ }
176
+
177
+ declare class AXTreeViewLegacyModule {
178
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXTreeViewLegacyModule, never>;
179
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<AXTreeViewLegacyModule, never, [typeof AXTreeViewLegacyComponent, typeof AXTreeViewItemLegacyComponent, typeof i3.CommonModule, typeof i4.AXCommonModule, typeof i5.AXDecoratorModule, typeof i6.AXCheckBoxModule, typeof i7.AXFormModule, typeof i8.FormsModule, typeof i9.AXTooltipModule, typeof i10.AXLoadingModule], [typeof AXTreeViewLegacyComponent, typeof AXTreeViewItemLegacyComponent]>;
180
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXTreeViewLegacyModule>;
181
+ }
182
+
183
+ export { AXTreeItemClickBaseEventLegacy, AXTreeViewBaseLegacy, AXTreeViewItemLegacyComponent, AXTreeViewLegacyComponent, AXTreeViewLegacyModule };
184
+ export type { AXTreeViewExpandBehaviorLegacy, AXTreeViewLookLegacy, AXTreeViewOperationMethodLegacy, AXTreeViewSelectionBehaviorLegacy, AXTreeViewSelectionScopeLegacy };
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-components-modal-acorex-components-modal-JpPBSiVh.mjs","sources":["../../../../packages/components/modal/src/lib/modal-footer/modal-footer.component.ts","../../../../packages/components/modal/src/lib/modal-footer/modal-footer.component.html","../../../../packages/components/modal/src/lib/modal-state.service.ts","../../../../packages/components/modal/src/lib/modal.component.ts","../../../../packages/components/modal/src/lib/modal.module.ts","../../../../packages/components/modal/src/lib/modal.service.ts","../../../../packages/components/modal/src/lib/modal.types.ts","../../../../packages/components/modal/src/acorex-components-modal.ts"],"sourcesContent":["import { AXComponent } from '@acorex/cdk/common';\nimport { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'ax-modal-footer',\n templateUrl: './modal-footer.component.html',\n styleUrl: './modal-footer.component.compiled.css',\n imports: [],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: AXComponent, useExisting: AXModalFooterComponent }],\n})\nexport class AXModalFooterComponent {}\n","<ng-content select=\"ax-modal-footer\">\n <ng-content select=\"ax-prefix\"></ng-content>\n <ng-content select=\"ax-suffix\"></ng-content>\n</ng-content>\n","import { AXOverlayRef, AXOverlayService } from '@acorex/cdk/overlay';\nimport { AXComponentContent, AXComponentInputs } from '@acorex/core/components';\nimport { ComponentRef, inject, Injectable, signal } from '@angular/core';\nimport { cloneDeep, set } from 'lodash-es';\nimport { Subject } from 'rxjs';\nimport { AXModalContentComponent } from './modal-content/modal-content.component';\nimport { AXModalOptions, AXModalRef } from './modal.types';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AXModalStateService {\n private modalList = new Map<number, { overlay: AXOverlayRef<AXModalContentComponent>; modal: AXModalRef }>();\n private overlayService = inject(AXOverlayService);\n modalOption = signal<AXModalOptions>(null);\n\n /**\n * Opens a modal with the specified content and options.\n * @param content - Component, template, or HTML element to display\n * @param options - Configuration options for the modal\n * @returns Promise<AXModalRef> - Reference to the opened modal\n */\n async open<TResult = any>(\n content: AXComponentContent | HTMLElement,\n options?: AXModalOptions,\n ): Promise<AXModalRef<TResult>> {\n this.modalOption.set(options);\n const randomId = Math.floor(Math.random() * 100000000000);\n const modalContentComp = (await import('./modal-content/modal-content.component')).AXModalContentComponent;\n const onClose = new Subject<TResult>();\n\n const returnRef: AXModalRef = {\n close: (data) => {\n this.close(randomId, data);\n },\n setInputs: (values: AXComponentInputs) => {\n this.setInputs(randomId, values);\n },\n minimize: () => {\n this.minimize(randomId);\n },\n maximize: () => {\n this.maximize(randomId);\n },\n restore: () => {\n this.restore(randomId);\n },\n bringToFront: () => {\n this.bringToFront(randomId);\n },\n onClose,\n };\n\n const finalInputs = { ...(cloneDeep(options?.inputs) ?? {}), ...{ __modal__: returnRef } };\n const finalOptions = set(cloneDeep(options) ?? {}, 'inputs', finalInputs);\n\n const ref = await this.overlayService.create(modalContentComp, {\n position: options?.position,\n backdrop: options?.backdrop,\n inputs: {\n __content__: content,\n inputs: {\n ...finalOptions?.inputs,\n },\n id: randomId,\n },\n });\n\n this.modalList.set(randomId, { overlay: ref, modal: returnRef });\n\n return returnRef;\n }\n\n /**\n * Closes a modal by its ID.\n * @param id - The modal ID to close\n * @param data - Optional data to pass to the close event\n */\n async close<TResult = any>(id: number, data?: TResult) {\n const ref = this.modalList.get(id);\n if (!ref) return;\n ref.modal.onClose.next(data);\n ref.overlay.dispose();\n this.modalList.delete(id);\n }\n\n /**\n * Sets input values for a modal by its ID.\n * @param id - The modal ID\n * @param values - Object containing input values to set\n */\n async setInputs(id: number, values: AXComponentInputs) {\n const ref = this.modalList.get(id).overlay.instance;\n if (!ref) return;\n if (ref instanceof ComponentRef) {\n const comRef = ref as ComponentRef<any>;\n Object.entries(values).forEach((v) => {\n comRef.setInput(v[0], v[1]);\n });\n } else {\n ref.context.inputs.set(values);\n }\n }\n\n /**\n * Minimizes a modal by its ID.\n * @param id - The modal ID to minimize\n */\n async minimize(id: number) {\n const ref = this.modalList.get(id).overlay.instance;\n if (!ref) return;\n if (ref instanceof ComponentRef) {\n ref.instance.minimize();\n } else {\n ref.context.minimize();\n }\n }\n\n /**\n * Maximizes a modal by its ID.\n * @param id - The modal ID to maximize\n */\n async maximize(id: number) {\n const ref = this.modalList.get(id).overlay.instance;\n if (!ref) return;\n if (ref instanceof ComponentRef) {\n ref.instance.maximize();\n } else {\n ref.context.maximize();\n }\n }\n\n /**\n * Restores a modal by its ID.\n * @param id - The modal ID to restore\n */\n async restore(id: number) {\n const ref = this.modalList.get(id).overlay.instance;\n if (!ref) return;\n if (ref instanceof ComponentRef) {\n ref.instance.restore();\n } else {\n ref.context.restore();\n }\n }\n\n /**\n * Gets the index of a modal in the minimized stack.\n * @param targetKey - The modal ID to find\n * @returns number - The index position in the stack\n */\n getMapIndexOf(targetKey: any) {\n let index = 0;\n for (const key of this.modalList.keys()) {\n if (key === targetKey) {\n return index;\n }\n index++;\n }\n return -1;\n }\n\n /**\n * Brings a modal to the front of all other overlays.\n * @param id - The modal ID to bring to front\n */\n bringToFront(id: number) {\n const ref = this.modalList.get(id);\n if (!ref) return;\n ref.overlay.bringToFront();\n }\n}\n","import { AXComponent, NXComponent } from '@acorex/cdk/common';\nimport { AXComponentInputs } from '@acorex/core/components';\nimport {\n ChangeDetectionStrategy,\n Component,\n inject,\n signal,\n TemplateRef,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { AXModalStateService } from './modal-state.service';\nimport { AXModalOptions, AXModalRef } from './modal.types';\n\n@Component({\n selector: 'ax-modal',\n template: `\n <ng-template #contentTemplate>\n <ng-content></ng-content>\n </ng-template>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: AXComponent, useExisting: AXModalComponent }],\n})\nexport class AXModalComponent extends NXComponent {\n private service = inject(AXModalStateService);\n protected template = viewChild(TemplateRef);\n private ref = signal<AXModalRef<any>>(null);\n\n /**\n * Opens the modal with the specified options.\n * @param options - Configuration options for the modal\n * @returns Promise<AXModalRef> - Reference to the opened modal\n */\n async open(options?: AXModalOptions) {\n const ref = await this.service.open(this.template(), options);\n this.ref.set(ref);\n return ref;\n }\n\n /**\n * Closes the currently open modal.\n */\n async close() {\n if (this.ref()) return;\n this.ref().close();\n }\n\n /**\n * Sets input values for the modal content component.\n * @param values - Object containing input values to set\n */\n async setInputs(values: AXComponentInputs) {\n if (!this.ref()) return;\n const transform = { inputs: values };\n this.ref().setInputs(transform);\n }\n\n /**\n * Minimizes the modal to the bottom bar.\n */\n async minimize() {\n if (!this.ref()) return;\n this.ref().minimize();\n }\n\n /**\n * Maximizes the modal to fullscreen.\n */\n async maximize() {\n if (!this.ref()) return;\n this.ref().maximize();\n }\n\n /**\n * Restores the modal from minimized or maximized state.\n */\n async restore() {\n if (!this.ref()) return;\n this.ref().restore();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { AXModalFooterComponent } from './modal-footer/modal-footer.component';\nimport { AXModalComponent } from './modal.component';\n\n@NgModule({\n imports: [AXModalComponent, AXModalFooterComponent],\n exports: [AXModalComponent, AXModalFooterComponent],\n})\nexport class AXModalModule {}\n","import { AXComponentContent, AXComponentInputs } from '@acorex/core/components';\nimport { inject, Injectable, signal } from '@angular/core';\nimport { AXModalStateService } from './modal-state.service';\nimport { AXModalOptions, AXModalRef } from './modal.types';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AXModalService {\n private stateService = inject(AXModalStateService);\n private ref = signal<AXModalRef<any>>(null);\n\n /**\n * Opens a modal with the specified content and options.\n * @param content - Component, template, or HTML element to display\n * @param options - Configuration options for the modal\n * @returns Promise<AXModalRef> - Reference to the opened modal\n */\n async open(content: AXComponentContent | HTMLElement, options?: AXModalOptions): Promise<AXModalRef> {\n const ref = await this.stateService.open(content, options);\n this.ref.set(ref);\n return ref;\n }\n\n /**\n * Closes the currently open modal.\n */\n async close() {\n if (!this.ref()) return;\n this.ref().close();\n }\n\n /**\n * Sets input values for the modal content component.\n * @param values - Object containing input values to set\n */\n async setInputs(values: AXComponentInputs) {\n if (!this.ref()) return;\n const transform = { inputs: values };\n this.ref().setInputs(transform);\n }\n\n /**\n * Minimizes the modal to the bottom bar.\n */\n async minimize() {\n if (!this.ref()) return;\n this.ref().minimize();\n }\n\n /**\n * Maximizes the modal to fullscreen.\n */\n async maximize() {\n if (!this.ref()) return;\n this.ref().maximize();\n }\n\n /**\n * Restores the modal from minimized or maximized state.\n */\n async restore() {\n if (!this.ref()) return;\n this.ref().restore();\n }\n\n /**\n * Brings the modal to the front of all other overlays.\n */\n bringToFront() {\n if (!this.ref()) return;\n this.ref().bringToFront();\n }\n}\n","import { AXOverlayOptions } from '@acorex/cdk/overlay';\nimport { AXComponentInputs } from '@acorex/core/components';\nimport { Directive, input } from '@angular/core';\nimport { Subject } from 'rxjs';\n\nexport interface AXModalOptions extends AXOverlayOptions {\n title?: string;\n buttons?: {\n minimize?: {\n enable: boolean;\n position: 'bottom-right' | 'bottom-left';\n };\n maximize?: boolean;\n close?: boolean;\n };\n draggable?: boolean;\n size?: 'sm' | 'md' | 'lg' | 'full' | 'fit';\n header?: boolean;\n footer?: boolean;\n panelClass?: string;\n closeOnEscape?: boolean;\n}\n\nexport interface AXModalRef<TResult = any> {\n minimize: () => void;\n maximize: () => void;\n restore: () => void;\n close: (data?: TResult) => void;\n setInputs: (values: AXComponentInputs) => void;\n /** Brings this modal to the front of all other overlays */\n bringToFront: () => void;\n onClose: Subject<TResult>;\n}\n\n@Directive()\nexport abstract class AXModalComponentBase {\n __modal__ = input<AXModalRef>();\n\n public close(data: any = null) {\n this.__modal__().close(data);\n }\n\n public minimize() {\n this.__modal__().minimize();\n }\n\n public restore() {\n this.__modal__().restore();\n }\n\n public maximize() {\n this.__modal__().maximize();\n }\n\n public bringToFront() {\n this.__modal__().bringToFront();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAYa,sBAAsB,CAAA;8GAAtB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,sBAAsB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,SAAA,EAFtB,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,sBAAsB,EAAE,CAAC,0BCV5E,8JAIA,EAAA,MAAA,EAAA,CAAA,4MAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FDQa,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBATlC,SAAS;+BACE,iBAAiB,EAAA,OAAA,EAGlB,EAAE,EAAA,aAAA,EACI,iBAAiB,CAAC,IAAI,EAAA,eAAA,EACpB,uBAAuB,CAAC,MAAM,aACpC,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAA,sBAAwB,EAAE,CAAC,EAAA,QAAA,EAAA,8JAAA,EAAA,MAAA,EAAA,CAAA,4MAAA,CAAA,EAAA;;;MEC/D,mBAAmB,CAAA;AAHhC,IAAA,WAAA,GAAA;AAIU,QAAA,IAAA,CAAA,SAAS,GAAG,IAAI,GAAG,EAAiF;AACp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AAU,EAAE,MAAM;AACnB,iBAAA;;;MC4BqB,oBAAoB,CAAA;AAD1C,IAAA,WAAA,GAAA;QAEE,IAAA,CAAA,SAAS,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,WAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAc;AAqBhC,IAAA;IAnBQ,KAAK,CAAC,OAAY,IAAI,EAAA;QAC3B,IAAI,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC;IAC9B;IAEO,QAAQ,GAAA;AACb,QAAA,IAAI,CAAC,SAAS,EAAE,CAAC,QAAQ,EAAE;IAC7B;IAEO,OAAO,GAAA;AACZ,QAAA,IAAI,CAAC,SAAS,EAAE,CAAC,OAAO,EAAE;IAC5B;IAEO,QAAQ,GAAA;AACb,QAAA,IAAI,CAAC,SAAS,EAAE,CAAC,QAAQ,EAAE;IAC7B;IAEO,YAAY,GAAA;AACjB,QAAA,IAAI,CAAC,SAAS,EAAE,CAAC,YAAY,EAAE;IACjC;8GArBoB,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAApB,oBAAoB,EAAA,YAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBADzC;;;AClCD;;AAEG;;;;"}
@@ -1,214 +0,0 @@
1
- import { NXComponent, AXComponent } from '@acorex/cdk/common';
2
- import * as i1 from '@acorex/cdk/focus-trap';
3
- import { AXFocusTrapDirective } from '@acorex/cdk/focus-trap';
4
- import { AXButtonComponent } from '@acorex/components/button';
5
- import * as i3 from '@acorex/components/decorators';
6
- import { AXDecoratorModule } from '@acorex/components/decorators';
7
- import * as i2 from '@angular/common';
8
- import { CommonModule } from '@angular/common';
9
- import * as i0 from '@angular/core';
10
- import { input, model, inject, viewChild, computed, TemplateRef, signal, afterNextRender, effect, HostListener, HostBinding, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
11
- import { DomSanitizer } from '@angular/platform-browser';
12
- import { A as AXModalStateService, a as AXModalFooterComponent } from './acorex-components-modal-acorex-components-modal-JpPBSiVh.mjs';
13
-
14
- class AXModalContentComponent extends NXComponent {
15
- constructor() {
16
- super(...arguments);
17
- this.__content__ = input.required(...(ngDevMode ? [{ debugName: "__content__" }] : /* istanbul ignore next */ []));
18
- this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
19
- this.inputs = model(...(ngDevMode ? [undefined, { debugName: "inputs" }] : /* istanbul ignore next */ []));
20
- this.serviceState = inject(AXModalStateService);
21
- this.sanitizer = inject(DomSanitizer);
22
- this.modalContainer = viewChild('c', ...(ngDevMode ? [{ debugName: "modalContainer" }] : /* istanbul ignore next */ []));
23
- this.footer = viewChild(AXModalFooterComponent, ...(ngDevMode ? [{ debugName: "footer" }] : /* istanbul ignore next */ []));
24
- this.isTemplate = computed(() => this.__content__() instanceof TemplateRef, ...(ngDevMode ? [{ debugName: "isTemplate" }] : /* istanbul ignore next */ []));
25
- this.isHtmlElement = computed(() => this.__content__() instanceof HTMLElement, ...(ngDevMode ? [{ debugName: "isHtmlElement" }] : /* istanbul ignore next */ []));
26
- this.component = computed(() => this.__content__(), ...(ngDevMode ? [{ debugName: "component" }] : /* istanbul ignore next */ []));
27
- this.template = computed(() => this.__content__(), ...(ngDevMode ? [{ debugName: "template" }] : /* istanbul ignore next */ []));
28
- this.element = computed(() => this.__content__(), ...(ngDevMode ? [{ debugName: "element" }] : /* istanbul ignore next */ []));
29
- this.modalSizeState = signal('normal', ...(ngDevMode ? [{ debugName: "modalSizeState" }] : /* istanbul ignore next */ []));
30
- this.fullScreenState = signal(false, ...(ngDevMode ? [{ debugName: "fullScreenState" }] : /* istanbul ignore next */ []));
31
- this.isMouseDown = signal(false, ...(ngDevMode ? [{ debugName: "isMouseDown" }] : /* istanbul ignore next */ []));
32
- this.offsetX = signal(0, ...(ngDevMode ? [{ debugName: "offsetX" }] : /* istanbul ignore next */ []));
33
- this.offsetY = signal(0, ...(ngDevMode ? [{ debugName: "offsetY" }] : /* istanbul ignore next */ []));
34
- this.prevLeft = signal('', ...(ngDevMode ? [{ debugName: "prevLeft" }] : /* istanbul ignore next */ []));
35
- this.prevTop = signal('', ...(ngDevMode ? [{ debugName: "prevTop" }] : /* istanbul ignore next */ []));
36
- this.backdropState = computed(() => this.serviceState.modalOption()?.backdrop?.enabled ?? true, ...(ngDevMode ? [{ debugName: "backdropState" }] : /* istanbul ignore next */ []));
37
- this.closeOnEscape = computed(() => this.serviceState.modalOption()?.closeOnEscape ?? true, ...(ngDevMode ? [{ debugName: "closeOnEscape" }] : /* istanbul ignore next */ []));
38
- this.panelClass = computed(() => this.serviceState.modalOption()?.panelClass ?? '', ...(ngDevMode ? [{ debugName: "panelClass" }] : /* istanbul ignore next */ []));
39
- this.headerState = computed(() => this.serviceState.modalOption()?.header ?? false, ...(ngDevMode ? [{ debugName: "headerState" }] : /* istanbul ignore next */ []));
40
- this.footerState = computed(() => this.serviceState.modalOption()?.footer ?? false, ...(ngDevMode ? [{ debugName: "footerState" }] : /* istanbul ignore next */ []));
41
- this.closeHeaderButton = computed(() => this.serviceState.modalOption()?.buttons?.close ?? true, ...(ngDevMode ? [{ debugName: "closeHeaderButton" }] : /* istanbul ignore next */ []));
42
- this.backdropBackground = computed(() => this.serviceState.modalOption()?.backdrop?.background ?? true, ...(ngDevMode ? [{ debugName: "backdropBackground" }] : /* istanbul ignore next */ []));
43
- this.backdropClass = computed(() => this.serviceState.modalOption()?.backdrop?.backdropClass ?? '', ...(ngDevMode ? [{ debugName: "backdropClass" }] : /* istanbul ignore next */ []));
44
- this.backdropCloseOnClick = computed(() => this.serviceState.modalOption()?.backdrop?.closeOnClick ?? true, ...(ngDevMode ? [{ debugName: "backdropCloseOnClick" }] : /* istanbul ignore next */ []));
45
- this.minimizePosition = computed(() => this.serviceState.modalOption()?.buttons?.minimize?.position ?? 'bottom-right', ...(ngDevMode ? [{ debugName: "minimizePosition" }] : /* istanbul ignore next */ []));
46
- this.minimizeState = computed(() => this.serviceState.modalOption()?.buttons?.minimize?.enable ?? false, ...(ngDevMode ? [{ debugName: "minimizeState" }] : /* istanbul ignore next */ []));
47
- this.maximizeState = computed(() => this.serviceState.modalOption()?.buttons?.maximize ?? false, ...(ngDevMode ? [{ debugName: "maximizeState" }] : /* istanbul ignore next */ []));
48
- this.modalSize = computed(() => this.serviceState.modalOption()?.size ?? 'lg', ...(ngDevMode ? [{ debugName: "modalSize" }] : /* istanbul ignore next */ []));
49
- this.headerTitle = computed(() => this.serviceState.modalOption()?.title ?? '', ...(ngDevMode ? [{ debugName: "headerTitle" }] : /* istanbul ignore next */ []));
50
- this.draggable = computed(() => this.serviceState.modalOption()?.draggable ?? true, ...(ngDevMode ? [{ debugName: "draggable" }] : /* istanbul ignore next */ []));
51
- this.#init = afterNextRender(() => {
52
- this.nativeElement.focus();
53
- const popFooter = this.nativeElement.querySelector('.ax-modal-footer');
54
- const footer = this.nativeElement.querySelector('.ax-modal-content ax-modal-footer');
55
- if (footer) {
56
- setTimeout(() => {
57
- popFooter?.append(footer);
58
- });
59
- }
60
- });
61
- this.#eff = effect(() => {
62
- const host = this.nativeElement;
63
- if (this.draggable())
64
- host.classList.add('ax-draggable');
65
- if (!this.backdropState())
66
- return;
67
- this.addBackdrop();
68
- if (!this.backdropBackground())
69
- return;
70
- }, ...(ngDevMode ? [{ debugName: "#eff" }] : /* istanbul ignore next */ []));
71
- }
72
- #init;
73
- close() {
74
- this.serviceState.close(this.id());
75
- }
76
- minimize() {
77
- if (this.fullScreenState())
78
- document.exitFullscreen();
79
- this.modalContainer().nativeElement.style.transition = 'all 200ms ease-out';
80
- this.modalContainer().nativeElement.style.top = `auto`;
81
- this.modalContainer().nativeElement.style.bottom = `0`;
82
- if (this.backdropState())
83
- this.removeBackdrop();
84
- this.modalContainer().nativeElement.classList.remove('ax-normal-modal');
85
- this.modalContainer().nativeElement.classList.add('ax-minimize-modal');
86
- requestAnimationFrame(() => {
87
- const width = this.modalContainer().nativeElement.offsetWidth;
88
- const index = this.serviceState.getMapIndexOf(this.id());
89
- if (this.minimizePosition() === 'bottom-right') {
90
- this.modalContainer().nativeElement.style.left = `auto`;
91
- this.modalContainer().nativeElement.style.right = `${index * (width + 10)}px`;
92
- }
93
- else {
94
- this.modalContainer().nativeElement.style.right = `auto`;
95
- this.modalContainer().nativeElement.style.left = `${index * (width + 10)}px`;
96
- }
97
- });
98
- this.modalSizeState.set('minimize');
99
- }
100
- maximize() {
101
- this.modalContainer().nativeElement.style.transition = 'none';
102
- if (this.modalSizeState() === 'minimize')
103
- this.restore();
104
- if (!document.fullscreenElement) {
105
- this.modalContainer().nativeElement.requestFullscreen();
106
- this.fullScreenState.set(true);
107
- }
108
- else {
109
- document.exitFullscreen();
110
- }
111
- document.addEventListener('fullscreenchange', () => {
112
- if (!document.fullscreenElement) {
113
- this.fullScreenState.set(false);
114
- }
115
- });
116
- }
117
- restore() {
118
- setTimeout(() => {
119
- this.modalContainer().nativeElement.style.transition = 'none';
120
- }, 200);
121
- if (this.fullScreenState()) {
122
- document.exitFullscreen();
123
- return;
124
- }
125
- this.modalContainer().nativeElement.style.bottom = `auto`;
126
- this.modalContainer().nativeElement.style.right = `auto`;
127
- this.modalContainer().nativeElement.style.left = this.prevLeft();
128
- this.modalContainer().nativeElement.style.top = this.prevTop();
129
- if (this.backdropState())
130
- this.addBackdrop();
131
- this.modalContainer().nativeElement.classList.remove(`ax-minimize-modal`);
132
- this.modalContainer().nativeElement.classList.add('ax-normal-modal');
133
- this.modalSizeState.set('normal');
134
- }
135
- pointerDownHandler(e) {
136
- if (!this.draggable() || this.modalSizeState() === 'minimize' || this.fullScreenState())
137
- return;
138
- this.isMouseDown.set(true);
139
- this.offsetX.set(e.clientX - this.modalContainer().nativeElement.offsetLeft);
140
- this.offsetY.set(e.clientY - this.modalContainer().nativeElement.offsetTop);
141
- }
142
- addBackdrop() {
143
- const backdropElem = document.createElement('div');
144
- backdropElem.classList.add('ax-modal-drawer-backdrop');
145
- if (this.backdropClass()) {
146
- backdropElem.classList.add(...this.backdropClass().split(' '));
147
- }
148
- else {
149
- backdropElem.classList.add('ax-default-backdrop');
150
- }
151
- backdropElem.addEventListener('pointerdown', (e) => {
152
- if (!this.backdropCloseOnClick())
153
- return;
154
- if (e.target === e.currentTarget) {
155
- this.close();
156
- }
157
- });
158
- this.nativeElement.appendChild(backdropElem);
159
- }
160
- removeBackdrop() {
161
- const backdropElem = this.nativeElement.querySelector('.ax-modal-drawer-backdrop');
162
- if (backdropElem) {
163
- backdropElem.remove();
164
- }
165
- }
166
- pointerMoveHandler(e) {
167
- if (!this.draggable() || this.modalSizeState() === 'minimize' || this.fullScreenState())
168
- return;
169
- if (!this.isMouseDown())
170
- return;
171
- this.modalContainer().nativeElement.style.left = `${e.clientX - this.offsetX()}px`;
172
- this.modalContainer().nativeElement.style.top = `${e.clientY - this.offsetY()}px`;
173
- this.prevLeft.set(`${e.clientX - this.offsetX()}px`);
174
- this.prevTop.set(`${e.clientY - this.offsetY()}px`);
175
- }
176
- pointerUpHandler() {
177
- if (!this.draggable() || this.modalSizeState() === 'minimize' || this.fullScreenState())
178
- return;
179
- this.isMouseDown.set(false);
180
- }
181
- get role() {
182
- return '0';
183
- }
184
- escapeHandler(e) {
185
- if (e.key === 'Escape' && this.closeOnEscape()) {
186
- this.close();
187
- }
188
- }
189
- #eff;
190
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXModalContentComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
191
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: AXModalContentComponent, isStandalone: true, selector: "ax-modal-content", inputs: { __content__: { classPropertyName: "__content__", publicName: "__content__", isSignal: true, isRequired: true, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, inputs: { classPropertyName: "inputs", publicName: "inputs", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { inputs: "inputsChange" }, host: { listeners: { "pointermove": "pointerMoveHandler($event)", "pointerup": "pointerUpHandler()", "pointerleave": "pointerUpHandler()", "keydown": "escapeHandler($event)" }, properties: { "attr.tabindex": "this.role" } }, providers: [{ provide: AXComponent, useExisting: AXModalContentComponent }], viewQueries: [{ propertyName: "modalContainer", first: true, predicate: ["c"], descendants: true, isSignal: true }, { propertyName: "footer", first: true, predicate: AXModalFooterComponent, descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.AXFocusTrapDirective }], ngImport: i0, template: "<div\n #c\n class=\"ax-modal-container ax-{{ modalSizeState() }}-modal ax-modal-{{ modalSize() }} {{ panelClass() }}\"\n animate.enter=\"ax-fade-slide-in\"\n>\n @if (headerState()) {\n <div (pointerdown)=\"pointerDownHandler($event)\" class=\"ax-modal-header\">\n <ax-text>{{ headerTitle() }}</ax-text>\n\n <div class=\"flex\">\n @if (minimizeState()) {\n <ax-button class=\"ax-sm\" (onClick)=\"minimize()\" look=\"blank\" color=\"default\">\n <ax-icon class=\"ax-icon ax-icon-minimize\"> </ax-icon>\n </ax-button>\n }\n\n @if (modalSizeState() !== 'normal' || fullScreenState()) {\n <ax-button class=\"ax-sm\" (onClick)=\"restore()\" look=\"blank\" color=\"default\">\n <ax-icon class=\"ax-icon ax-icon-maximize\"> </ax-icon>\n </ax-button>\n }\n\n @if (maximizeState()) {\n <ax-button class=\"ax-sm\" (onClick)=\"maximize()\" look=\"blank\" color=\"default\">\n <ax-icon class=\"ax-icon ax-icon-full-screen\"> </ax-icon>\n </ax-button>\n }\n\n @if (closeHeaderButton()) {\n <ax-button class=\"ax-sm\" look=\"blank\" (onClick)=\"close()\" color=\"default\">\n <ax-icon class=\"ax-icon ax-icon-close\"> </ax-icon>\n </ax-button>\n }\n </div>\n </div>\n }\n\n <div class=\"ax-modal-content\">\n @if (isTemplate()) {\n <ng-container [ngTemplateOutlet]=\"this.template()\" [ngTemplateOutletContext]=\"inputs()\"></ng-container>\n } @else if (isHtmlElement()) {\n <div [innerHTML]=\"sanitizer.bypassSecurityTrustHtml(this.element().outerHTML)\"></div>\n } @else {\n <ng-container [ngComponentOutlet]=\"this.component()\" [ngComponentOutletInputs]=\"inputs()\"></ng-container>\n }\n </div>\n\n @if (footerState()) {\n <div class=\"ax-modal-footer\"></div>\n }\n</div>\n", styles: ["@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid}}}@layer components{ax-modal-content{touch-action:none;-webkit-user-select:none;user-select:none}ax-modal-content .ax-modal-drawer-backdrop{z-index:50;width:100vw;height:100vh;position:fixed;top:0;left:0}ax-modal-content .ax-modal-drawer-backdrop.ax-default-backdrop{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){ax-modal-content .ax-modal-drawer-backdrop.ax-default-backdrop{background-color:color-mix(in oklab,var(--color-black,#000) 50%,transparent)}}ax-modal-content.ax-draggable .ax-modal-header:hover{cursor:move}ax-modal-content .ax-modal-container{z-index:55;border-radius:var(--radius-lg,.5rem);border-style:var(--tw-border-style);border-width:1px;border-color:rgba(var(--ax-sys-color-border-lightest-surface));background-color:rgba(var(--ax-sys-color-lightest-surface));flex-direction:column;justify-content:space-between;max-width:100vw;max-height:90vh;display:flex;position:fixed;overflow:hidden}ax-modal-content .ax-modal-container.ax-modal-full{width:100%;height:100%;max-height:100vh!important}ax-modal-content .ax-modal-container.ax-modal-fit{width:fit-content}ax-modal-content .ax-modal-container.ax-modal-sm,ax-modal-content .ax-modal-container.ax-modal-md,ax-modal-content .ax-modal-container.ax-modal-lg,ax-modal-content .ax-modal-container.ax-modal-fit{width:93vw}@media(min-width:640px){ax-modal-content .ax-modal-container.ax-modal-sm{width:55vw}ax-modal-content .ax-modal-container.ax-modal-md{width:65vw}ax-modal-content .ax-modal-container.ax-modal-lg{width:75vw}}@media(min-max-width:768px){ax-modal-content .ax-modal-container.ax-modal-sm{width:30vw}ax-modal-content .ax-modal-container.ax-modal-md{width:50vw}ax-modal-content .ax-modal-container.ax-modal-lg{width:85vw}}@media(min-width:1024px){ax-modal-content .ax-modal-container.ax-modal-sm{width:25vw}ax-modal-content .ax-modal-container.ax-modal-md{width:40vw}ax-modal-content .ax-modal-container.ax-modal-lg{width:65vw}}ax-modal-content .ax-modal-container.ax-normal-modal{top:50%;left:50%;transform:translate(-50%,-50%)}ax-modal-content .ax-modal-container.ax-normal-modal .ax-modal-content,ax-modal-content .ax-modal-container.ax-normal-modal .ax-modal-footer{display:block}ax-modal-content .ax-modal-container.ax-minimize-modal{width:fit-content}ax-modal-content .ax-modal-container.ax-minimize-modal .ax-modal-content,ax-modal-content .ax-modal-container.ax-minimize-modal .ax-modal-footer{display:none}ax-modal-content .ax-modal-container .ax-modal-header,ax-modal-content .ax-modal-container .ax-modal-footer{padding:calc(var(--spacing,.25rem) * 2);height:fit-content}ax-modal-content .ax-modal-container .ax-modal-content{flex-grow:1;overflow:auto}ax-modal-content .ax-modal-container .ax-modal-header{justify-content:space-between;align-items:center;gap:calc(var(--spacing,.25rem) * 2);border-style:var(--tw-border-style);border-width:1px;border-color:rgba(var(--ax-sys-color-border-lightest-surface));display:flex}ax-modal-content .ax-modal-container .ax-modal-footer{border-top-style:var(--tw-border-style);border-top-width:1px;border-color:rgba(var(--ax-sys-color-border-lightest-surface))}.ax-fade-slide-in{transform-origin:0 0;animation:.3s fadeSlideIn}@keyframes fadeSlideIn{0%{opacity:0;scale:.8}to{opacity:1;scale:1}}}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}\n/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
192
- }
193
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXModalContentComponent, decorators: [{
194
- type: Component,
195
- args: [{ selector: 'ax-modal-content', imports: [CommonModule, AXButtonComponent, AXDecoratorModule], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [AXFocusTrapDirective], providers: [{ provide: AXComponent, useExisting: AXModalContentComponent }], template: "<div\n #c\n class=\"ax-modal-container ax-{{ modalSizeState() }}-modal ax-modal-{{ modalSize() }} {{ panelClass() }}\"\n animate.enter=\"ax-fade-slide-in\"\n>\n @if (headerState()) {\n <div (pointerdown)=\"pointerDownHandler($event)\" class=\"ax-modal-header\">\n <ax-text>{{ headerTitle() }}</ax-text>\n\n <div class=\"flex\">\n @if (minimizeState()) {\n <ax-button class=\"ax-sm\" (onClick)=\"minimize()\" look=\"blank\" color=\"default\">\n <ax-icon class=\"ax-icon ax-icon-minimize\"> </ax-icon>\n </ax-button>\n }\n\n @if (modalSizeState() !== 'normal' || fullScreenState()) {\n <ax-button class=\"ax-sm\" (onClick)=\"restore()\" look=\"blank\" color=\"default\">\n <ax-icon class=\"ax-icon ax-icon-maximize\"> </ax-icon>\n </ax-button>\n }\n\n @if (maximizeState()) {\n <ax-button class=\"ax-sm\" (onClick)=\"maximize()\" look=\"blank\" color=\"default\">\n <ax-icon class=\"ax-icon ax-icon-full-screen\"> </ax-icon>\n </ax-button>\n }\n\n @if (closeHeaderButton()) {\n <ax-button class=\"ax-sm\" look=\"blank\" (onClick)=\"close()\" color=\"default\">\n <ax-icon class=\"ax-icon ax-icon-close\"> </ax-icon>\n </ax-button>\n }\n </div>\n </div>\n }\n\n <div class=\"ax-modal-content\">\n @if (isTemplate()) {\n <ng-container [ngTemplateOutlet]=\"this.template()\" [ngTemplateOutletContext]=\"inputs()\"></ng-container>\n } @else if (isHtmlElement()) {\n <div [innerHTML]=\"sanitizer.bypassSecurityTrustHtml(this.element().outerHTML)\"></div>\n } @else {\n <ng-container [ngComponentOutlet]=\"this.component()\" [ngComponentOutletInputs]=\"inputs()\"></ng-container>\n }\n </div>\n\n @if (footerState()) {\n <div class=\"ax-modal-footer\"></div>\n }\n</div>\n", styles: ["@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid}}}@layer components{ax-modal-content{touch-action:none;-webkit-user-select:none;user-select:none}ax-modal-content .ax-modal-drawer-backdrop{z-index:50;width:100vw;height:100vh;position:fixed;top:0;left:0}ax-modal-content .ax-modal-drawer-backdrop.ax-default-backdrop{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){ax-modal-content .ax-modal-drawer-backdrop.ax-default-backdrop{background-color:color-mix(in oklab,var(--color-black,#000) 50%,transparent)}}ax-modal-content.ax-draggable .ax-modal-header:hover{cursor:move}ax-modal-content .ax-modal-container{z-index:55;border-radius:var(--radius-lg,.5rem);border-style:var(--tw-border-style);border-width:1px;border-color:rgba(var(--ax-sys-color-border-lightest-surface));background-color:rgba(var(--ax-sys-color-lightest-surface));flex-direction:column;justify-content:space-between;max-width:100vw;max-height:90vh;display:flex;position:fixed;overflow:hidden}ax-modal-content .ax-modal-container.ax-modal-full{width:100%;height:100%;max-height:100vh!important}ax-modal-content .ax-modal-container.ax-modal-fit{width:fit-content}ax-modal-content .ax-modal-container.ax-modal-sm,ax-modal-content .ax-modal-container.ax-modal-md,ax-modal-content .ax-modal-container.ax-modal-lg,ax-modal-content .ax-modal-container.ax-modal-fit{width:93vw}@media(min-width:640px){ax-modal-content .ax-modal-container.ax-modal-sm{width:55vw}ax-modal-content .ax-modal-container.ax-modal-md{width:65vw}ax-modal-content .ax-modal-container.ax-modal-lg{width:75vw}}@media(min-max-width:768px){ax-modal-content .ax-modal-container.ax-modal-sm{width:30vw}ax-modal-content .ax-modal-container.ax-modal-md{width:50vw}ax-modal-content .ax-modal-container.ax-modal-lg{width:85vw}}@media(min-width:1024px){ax-modal-content .ax-modal-container.ax-modal-sm{width:25vw}ax-modal-content .ax-modal-container.ax-modal-md{width:40vw}ax-modal-content .ax-modal-container.ax-modal-lg{width:65vw}}ax-modal-content .ax-modal-container.ax-normal-modal{top:50%;left:50%;transform:translate(-50%,-50%)}ax-modal-content .ax-modal-container.ax-normal-modal .ax-modal-content,ax-modal-content .ax-modal-container.ax-normal-modal .ax-modal-footer{display:block}ax-modal-content .ax-modal-container.ax-minimize-modal{width:fit-content}ax-modal-content .ax-modal-container.ax-minimize-modal .ax-modal-content,ax-modal-content .ax-modal-container.ax-minimize-modal .ax-modal-footer{display:none}ax-modal-content .ax-modal-container .ax-modal-header,ax-modal-content .ax-modal-container .ax-modal-footer{padding:calc(var(--spacing,.25rem) * 2);height:fit-content}ax-modal-content .ax-modal-container .ax-modal-content{flex-grow:1;overflow:auto}ax-modal-content .ax-modal-container .ax-modal-header{justify-content:space-between;align-items:center;gap:calc(var(--spacing,.25rem) * 2);border-style:var(--tw-border-style);border-width:1px;border-color:rgba(var(--ax-sys-color-border-lightest-surface));display:flex}ax-modal-content .ax-modal-container .ax-modal-footer{border-top-style:var(--tw-border-style);border-top-width:1px;border-color:rgba(var(--ax-sys-color-border-lightest-surface))}.ax-fade-slide-in{transform-origin:0 0;animation:.3s fadeSlideIn}@keyframes fadeSlideIn{0%{opacity:0;scale:.8}to{opacity:1;scale:1}}}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}\n/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */\n"] }]
196
- }], propDecorators: { __content__: [{ type: i0.Input, args: [{ isSignal: true, alias: "__content__", required: true }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], inputs: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputs", required: false }] }, { type: i0.Output, args: ["inputsChange"] }], modalContainer: [{ type: i0.ViewChild, args: ['c', { isSignal: true }] }], footer: [{ type: i0.ViewChild, args: [i0.forwardRef(() => AXModalFooterComponent), { isSignal: true }] }], pointerMoveHandler: [{
197
- type: HostListener,
198
- args: ['pointermove', ['$event']]
199
- }], pointerUpHandler: [{
200
- type: HostListener,
201
- args: ['pointerup']
202
- }, {
203
- type: HostListener,
204
- args: ['pointerleave']
205
- }], role: [{
206
- type: HostBinding,
207
- args: ['attr.tabindex']
208
- }], escapeHandler: [{
209
- type: HostListener,
210
- args: ['keydown', ['$event']]
211
- }] } });
212
-
213
- export { AXModalContentComponent };
214
- //# sourceMappingURL=acorex-components-modal-modal-content.component-DKweXQfl.mjs.map