@acorex/components 21.0.1-next.8 → 21.0.1-next.81

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 (340) hide show
  1. package/conversation2/README.md +71 -31
  2. package/fab/README.md +3 -0
  3. package/fesm2022/acorex-components-accordion.mjs +19 -22
  4. package/fesm2022/acorex-components-accordion.mjs.map +1 -1
  5. package/fesm2022/acorex-components-action-sheet.mjs +284 -118
  6. package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
  7. package/fesm2022/acorex-components-alert.mjs +13 -13
  8. package/fesm2022/acorex-components-alert.mjs.map +1 -1
  9. package/fesm2022/acorex-components-aspect-ratio.mjs +3 -3
  10. package/fesm2022/acorex-components-aspect-ratio.mjs.map +1 -1
  11. package/fesm2022/acorex-components-audio-wave.mjs +11 -10
  12. package/fesm2022/acorex-components-audio-wave.mjs.map +1 -1
  13. package/fesm2022/acorex-components-autocomplete.mjs +7 -7
  14. package/fesm2022/acorex-components-autocomplete.mjs.map +1 -1
  15. package/fesm2022/acorex-components-avatar.mjs +12 -12
  16. package/fesm2022/acorex-components-avatar.mjs.map +1 -1
  17. package/fesm2022/acorex-components-badge.mjs +9 -9
  18. package/fesm2022/acorex-components-badge.mjs.map +1 -1
  19. package/fesm2022/acorex-components-bottom-navigation.mjs +11 -11
  20. package/fesm2022/acorex-components-bottom-navigation.mjs.map +1 -1
  21. package/fesm2022/acorex-components-breadcrumbs.mjs +11 -11
  22. package/fesm2022/acorex-components-breadcrumbs.mjs.map +1 -1
  23. package/fesm2022/acorex-components-button-group.mjs +39 -24
  24. package/fesm2022/acorex-components-button-group.mjs.map +1 -1
  25. package/fesm2022/acorex-components-button.mjs +18 -18
  26. package/fesm2022/acorex-components-button.mjs.map +1 -1
  27. package/fesm2022/acorex-components-calendar.mjs +17 -17
  28. package/fesm2022/acorex-components-calendar.mjs.map +1 -1
  29. package/fesm2022/acorex-components-check-box.mjs +10 -10
  30. package/fesm2022/acorex-components-check-box.mjs.map +1 -1
  31. package/fesm2022/acorex-components-chips.mjs +12 -14
  32. package/fesm2022/acorex-components-chips.mjs.map +1 -1
  33. package/fesm2022/acorex-components-circular-progress.mjs +12 -10
  34. package/fesm2022/acorex-components-circular-progress.mjs.map +1 -1
  35. package/fesm2022/acorex-components-code-editor.mjs +13 -13
  36. package/fesm2022/acorex-components-code-editor.mjs.map +1 -1
  37. package/fesm2022/acorex-components-collapse.mjs +22 -19
  38. package/fesm2022/acorex-components-collapse.mjs.map +1 -1
  39. package/fesm2022/acorex-components-color-box.mjs +9 -9
  40. package/fesm2022/acorex-components-color-box.mjs.map +1 -1
  41. package/fesm2022/acorex-components-color-palette.mjs +33 -38
  42. package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
  43. package/fesm2022/acorex-components-command.mjs +31 -14
  44. package/fesm2022/acorex-components-command.mjs.map +1 -1
  45. package/fesm2022/acorex-components-comment.mjs +94 -91
  46. package/fesm2022/acorex-components-comment.mjs.map +1 -1
  47. package/fesm2022/acorex-components-conversation.mjs +52 -52
  48. package/fesm2022/acorex-components-conversation.mjs.map +1 -1
  49. package/fesm2022/acorex-components-conversation2.mjs +5147 -3762
  50. package/fesm2022/acorex-components-conversation2.mjs.map +1 -1
  51. package/fesm2022/acorex-components-cron-job.mjs +46 -46
  52. package/fesm2022/acorex-components-cron-job.mjs.map +1 -1
  53. package/fesm2022/acorex-components-data-list.mjs +4 -4
  54. package/fesm2022/acorex-components-data-list.mjs.map +1 -1
  55. package/fesm2022/acorex-components-data-pager.mjs +33 -33
  56. package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
  57. package/fesm2022/acorex-components-data-table.mjs +125 -492
  58. package/fesm2022/acorex-components-data-table.mjs.map +1 -1
  59. package/fesm2022/acorex-components-datetime-box.mjs +9 -10
  60. package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
  61. package/fesm2022/acorex-components-datetime-input.mjs +12 -12
  62. package/fesm2022/acorex-components-datetime-input.mjs.map +1 -1
  63. package/fesm2022/acorex-components-datetime-picker.mjs +19 -17
  64. package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
  65. package/fesm2022/acorex-components-decorators.mjs +44 -37
  66. package/fesm2022/acorex-components-decorators.mjs.map +1 -1
  67. package/fesm2022/acorex-components-dialog.mjs +75 -54
  68. package/fesm2022/acorex-components-dialog.mjs.map +1 -1
  69. package/fesm2022/acorex-components-drawer-legacy.mjs +13 -13
  70. package/fesm2022/acorex-components-drawer-legacy.mjs.map +1 -1
  71. package/fesm2022/acorex-components-drawer.mjs +15 -16
  72. package/fesm2022/acorex-components-drawer.mjs.map +1 -1
  73. package/fesm2022/acorex-components-dropdown-button.mjs +19 -11
  74. package/fesm2022/acorex-components-dropdown-button.mjs.map +1 -1
  75. package/fesm2022/acorex-components-dropdown.mjs +28 -57
  76. package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
  77. package/fesm2022/acorex-components-editor.mjs +11 -11
  78. package/fesm2022/acorex-components-editor.mjs.map +1 -1
  79. package/fesm2022/acorex-components-fab.mjs +114 -0
  80. package/fesm2022/acorex-components-fab.mjs.map +1 -0
  81. package/fesm2022/acorex-components-file-explorer.mjs +25 -25
  82. package/fesm2022/acorex-components-file-explorer.mjs.map +1 -1
  83. package/fesm2022/acorex-components-flow-chart.mjs +16 -16
  84. package/fesm2022/acorex-components-flow-chart.mjs.map +1 -1
  85. package/fesm2022/acorex-components-form.mjs +49 -43
  86. package/fesm2022/acorex-components-form.mjs.map +1 -1
  87. package/fesm2022/acorex-components-grid-layout-builder.mjs +44 -23
  88. package/fesm2022/acorex-components-grid-layout-builder.mjs.map +1 -1
  89. package/fesm2022/acorex-components-image-editor.mjs +44 -44
  90. package/fesm2022/acorex-components-image-editor.mjs.map +1 -1
  91. package/fesm2022/acorex-components-image.mjs +9 -9
  92. package/fesm2022/acorex-components-image.mjs.map +1 -1
  93. package/fesm2022/acorex-components-json-viewer.mjs +8 -8
  94. package/fesm2022/acorex-components-json-viewer.mjs.map +1 -1
  95. package/fesm2022/acorex-components-kanban.mjs +16 -12
  96. package/fesm2022/acorex-components-kanban.mjs.map +1 -1
  97. package/fesm2022/acorex-components-kbd.mjs +29 -11
  98. package/fesm2022/acorex-components-kbd.mjs.map +1 -1
  99. package/fesm2022/acorex-components-label.mjs +9 -9
  100. package/fesm2022/acorex-components-label.mjs.map +1 -1
  101. package/fesm2022/acorex-components-list.mjs +69 -21
  102. package/fesm2022/acorex-components-list.mjs.map +1 -1
  103. package/fesm2022/acorex-components-loading-dialog.mjs +82 -45
  104. package/fesm2022/acorex-components-loading-dialog.mjs.map +1 -1
  105. package/fesm2022/acorex-components-loading.mjs +92 -52
  106. package/fesm2022/acorex-components-loading.mjs.map +1 -1
  107. package/fesm2022/acorex-components-map.mjs +14 -14
  108. package/fesm2022/acorex-components-map.mjs.map +1 -1
  109. package/fesm2022/acorex-components-media-viewer.mjs +294 -92
  110. package/fesm2022/acorex-components-media-viewer.mjs.map +1 -1
  111. package/fesm2022/acorex-components-menu.mjs +78 -37
  112. package/fesm2022/acorex-components-menu.mjs.map +1 -1
  113. package/fesm2022/{acorex-components-modal-acorex-components-modal-CXXcFToK.mjs → acorex-components-modal-acorex-components-modal-DWNqU6or.mjs} +48 -24
  114. package/fesm2022/acorex-components-modal-acorex-components-modal-DWNqU6or.mjs.map +1 -0
  115. package/fesm2022/acorex-components-modal-modal-content.component-DplJbJyk.mjs +214 -0
  116. package/fesm2022/acorex-components-modal-modal-content.component-DplJbJyk.mjs.map +1 -0
  117. package/fesm2022/acorex-components-modal.mjs +1 -1
  118. package/fesm2022/acorex-components-navbar.mjs +9 -9
  119. package/fesm2022/acorex-components-navbar.mjs.map +1 -1
  120. package/fesm2022/acorex-components-notification.mjs +381 -260
  121. package/fesm2022/acorex-components-notification.mjs.map +1 -1
  122. package/fesm2022/acorex-components-number-box-legacy.mjs +9 -9
  123. package/fesm2022/acorex-components-number-box-legacy.mjs.map +1 -1
  124. package/fesm2022/acorex-components-number-box.mjs +45 -26
  125. package/fesm2022/acorex-components-number-box.mjs.map +1 -1
  126. package/fesm2022/acorex-components-otp.mjs +9 -9
  127. package/fesm2022/acorex-components-otp.mjs.map +1 -1
  128. package/fesm2022/acorex-components-page.mjs +10 -10
  129. package/fesm2022/acorex-components-page.mjs.map +1 -1
  130. package/fesm2022/acorex-components-paint.mjs +55 -39
  131. package/fesm2022/acorex-components-paint.mjs.map +1 -1
  132. package/fesm2022/acorex-components-password-box.mjs +13 -13
  133. package/fesm2022/acorex-components-password-box.mjs.map +1 -1
  134. package/fesm2022/acorex-components-pdf-reader.mjs +8 -8
  135. package/fesm2022/acorex-components-pdf-reader.mjs.map +1 -1
  136. package/fesm2022/acorex-components-phone-box.mjs +88 -41
  137. package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
  138. package/fesm2022/acorex-components-picker.mjs +24 -23
  139. package/fesm2022/acorex-components-picker.mjs.map +1 -1
  140. package/fesm2022/acorex-components-popover.mjs +255 -202
  141. package/fesm2022/acorex-components-popover.mjs.map +1 -1
  142. package/fesm2022/acorex-components-popup.mjs +309 -113
  143. package/fesm2022/acorex-components-popup.mjs.map +1 -1
  144. package/fesm2022/acorex-components-progress-bar.mjs +11 -9
  145. package/fesm2022/acorex-components-progress-bar.mjs.map +1 -1
  146. package/fesm2022/acorex-components-qrcode.mjs +9 -9
  147. package/fesm2022/acorex-components-qrcode.mjs.map +1 -1
  148. package/fesm2022/acorex-components-query-builder.mjs +8 -8
  149. package/fesm2022/acorex-components-query-builder.mjs.map +1 -1
  150. package/fesm2022/acorex-components-radio.mjs +10 -9
  151. package/fesm2022/acorex-components-radio.mjs.map +1 -1
  152. package/fesm2022/acorex-components-rail-navigation.mjs +38 -36
  153. package/fesm2022/acorex-components-rail-navigation.mjs.map +1 -1
  154. package/fesm2022/acorex-components-range-slider.mjs +10 -10
  155. package/fesm2022/acorex-components-range-slider.mjs.map +1 -1
  156. package/fesm2022/acorex-components-rate-picker.mjs +20 -35
  157. package/fesm2022/acorex-components-rate-picker.mjs.map +1 -1
  158. package/fesm2022/acorex-components-rest-api-generator.mjs +23 -23
  159. package/fesm2022/acorex-components-rest-api-generator.mjs.map +1 -1
  160. package/fesm2022/acorex-components-result.mjs +8 -8
  161. package/fesm2022/acorex-components-result.mjs.map +1 -1
  162. package/fesm2022/acorex-components-routing-progress.mjs +8 -8
  163. package/fesm2022/acorex-components-routing-progress.mjs.map +1 -1
  164. package/fesm2022/acorex-components-rrule.mjs +9 -9
  165. package/fesm2022/acorex-components-rrule.mjs.map +1 -1
  166. package/fesm2022/acorex-components-scheduler-picker.mjs +56 -56
  167. package/fesm2022/acorex-components-scheduler-picker.mjs.map +1 -1
  168. package/fesm2022/acorex-components-scheduler.mjs +159 -83
  169. package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
  170. package/fesm2022/acorex-components-scss.mjs +4 -4
  171. package/fesm2022/acorex-components-scss.mjs.map +1 -1
  172. package/fesm2022/acorex-components-search-box.mjs +16 -10
  173. package/fesm2022/acorex-components-search-box.mjs.map +1 -1
  174. package/fesm2022/acorex-components-select-box.mjs +11 -9
  175. package/fesm2022/acorex-components-select-box.mjs.map +1 -1
  176. package/fesm2022/acorex-components-selection-list-2.mjs +11 -11
  177. package/fesm2022/acorex-components-selection-list-2.mjs.map +1 -1
  178. package/fesm2022/acorex-components-selection-list.mjs +9 -9
  179. package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
  180. package/fesm2022/acorex-components-side-menu.mjs +81 -24
  181. package/fesm2022/acorex-components-side-menu.mjs.map +1 -1
  182. package/fesm2022/acorex-components-skeleton.mjs +8 -8
  183. package/fesm2022/acorex-components-skeleton.mjs.map +1 -1
  184. package/fesm2022/acorex-components-slider.mjs +12 -12
  185. package/fesm2022/acorex-components-slider.mjs.map +1 -1
  186. package/fesm2022/acorex-components-sliding-item.mjs +16 -16
  187. package/fesm2022/acorex-components-sliding-item.mjs.map +1 -1
  188. package/fesm2022/acorex-components-step-wizard.mjs +14 -14
  189. package/fesm2022/acorex-components-step-wizard.mjs.map +1 -1
  190. package/fesm2022/acorex-components-switch.mjs +14 -14
  191. package/fesm2022/acorex-components-switch.mjs.map +1 -1
  192. package/fesm2022/acorex-components-tabs.mjs +15 -15
  193. package/fesm2022/acorex-components-tabs.mjs.map +1 -1
  194. package/fesm2022/acorex-components-tag-box.mjs +9 -9
  195. package/fesm2022/acorex-components-tag-box.mjs.map +1 -1
  196. package/fesm2022/acorex-components-tag.mjs +9 -9
  197. package/fesm2022/acorex-components-tag.mjs.map +1 -1
  198. package/fesm2022/acorex-components-text-area.mjs +9 -9
  199. package/fesm2022/acorex-components-text-area.mjs.map +1 -1
  200. package/fesm2022/acorex-components-text-box.mjs +51 -129
  201. package/fesm2022/acorex-components-text-box.mjs.map +1 -1
  202. package/fesm2022/acorex-components-time-duration.mjs +39 -24
  203. package/fesm2022/acorex-components-time-duration.mjs.map +1 -1
  204. package/fesm2022/acorex-components-time-line.mjs +12 -12
  205. package/fesm2022/acorex-components-time-line.mjs.map +1 -1
  206. package/fesm2022/acorex-components-toast.mjs +239 -131
  207. package/fesm2022/acorex-components-toast.mjs.map +1 -1
  208. package/fesm2022/acorex-components-toolbar.mjs +9 -9
  209. package/fesm2022/acorex-components-toolbar.mjs.map +1 -1
  210. package/fesm2022/acorex-components-tooltip.mjs +77 -66
  211. package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
  212. package/fesm2022/acorex-components-tree-view-legacy.mjs +16 -12
  213. package/fesm2022/acorex-components-tree-view-legacy.mjs.map +1 -1
  214. package/fesm2022/acorex-components-tree-view.mjs +32 -11
  215. package/fesm2022/acorex-components-tree-view.mjs.map +1 -1
  216. package/fesm2022/acorex-components-uploader.mjs +16 -16
  217. package/fesm2022/acorex-components-uploader.mjs.map +1 -1
  218. package/fesm2022/acorex-components-video-player.mjs +8 -8
  219. package/fesm2022/acorex-components-video-player.mjs.map +1 -1
  220. package/fesm2022/acorex-components-wysiwyg.mjs +43 -43
  221. package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
  222. package/fesm2022/acorex-components.mjs.map +1 -1
  223. package/package.json +150 -155
  224. package/{accordion/index.d.ts → types/acorex-components-accordion.d.ts} +7 -4
  225. package/types/acorex-components-action-sheet.d.ts +256 -0
  226. package/{button-group/index.d.ts → types/acorex-components-button-group.d.ts} +14 -12
  227. package/{button/index.d.ts → types/acorex-components-button.d.ts} +3 -3
  228. package/{calendar/index.d.ts → types/acorex-components-calendar.d.ts} +1 -1
  229. package/{check-box/index.d.ts → types/acorex-components-check-box.d.ts} +1 -1
  230. package/{chips/index.d.ts → types/acorex-components-chips.d.ts} +3 -8
  231. package/{code-editor/index.d.ts → types/acorex-components-code-editor.d.ts} +1 -1
  232. package/{collapse/index.d.ts → types/acorex-components-collapse.d.ts} +4 -6
  233. package/{color-palette/index.d.ts → types/acorex-components-color-palette.d.ts} +1 -2
  234. package/{command/index.d.ts → types/acorex-components-command.d.ts} +35 -13
  235. package/{comment/index.d.ts → types/acorex-components-comment.d.ts} +23 -22
  236. package/{conversation/index.d.ts → types/acorex-components-conversation.d.ts} +1 -1
  237. package/{conversation2/index.d.ts → types/acorex-components-conversation2.d.ts} +3356 -3032
  238. package/{data-pager/index.d.ts → types/acorex-components-data-pager.d.ts} +1 -1
  239. package/{data-table/index.d.ts → types/acorex-components-data-table.d.ts} +26 -256
  240. package/{datetime-input/index.d.ts → types/acorex-components-datetime-input.d.ts} +1 -1
  241. package/{dialog/index.d.ts → types/acorex-components-dialog.d.ts} +18 -14
  242. package/{dropdown-button/index.d.ts → types/acorex-components-dropdown-button.d.ts} +4 -2
  243. package/{dropdown/index.d.ts → types/acorex-components-dropdown.d.ts} +5 -14
  244. package/types/acorex-components-fab.d.ts +50 -0
  245. package/{form/index.d.ts → types/acorex-components-form.d.ts} +3 -2
  246. package/{grid-layout-builder/index.d.ts → types/acorex-components-grid-layout-builder.d.ts} +16 -2
  247. package/{kanban/index.d.ts → types/acorex-components-kanban.d.ts} +1 -6
  248. package/types/acorex-components-kbd.d.ts +29 -0
  249. package/{list/index.d.ts → types/acorex-components-list.d.ts} +24 -2
  250. package/{loading-dialog/index.d.ts → types/acorex-components-loading-dialog.d.ts} +31 -15
  251. package/{loading/index.d.ts → types/acorex-components-loading.d.ts} +4 -2
  252. package/types/acorex-components-media-viewer.d.ts +184 -0
  253. package/{menu/index.d.ts → types/acorex-components-menu.d.ts} +13 -7
  254. package/{modal/index.d.ts → types/acorex-components-modal.d.ts} +7 -0
  255. package/{notification/index.d.ts → types/acorex-components-notification.d.ts} +47 -32
  256. package/{number-box/index.d.ts → types/acorex-components-number-box.d.ts} +3 -0
  257. package/{paint/index.d.ts → types/acorex-components-paint.d.ts} +7 -6
  258. package/{phone-box/index.d.ts → types/acorex-components-phone-box.d.ts} +13 -3
  259. package/{popover/index.d.ts → types/acorex-components-popover.d.ts} +46 -36
  260. package/types/acorex-components-popup.d.ts +193 -0
  261. package/{radio/index.d.ts → types/acorex-components-radio.d.ts} +1 -1
  262. package/{rate-picker/index.d.ts → types/acorex-components-rate-picker.d.ts} +5 -15
  263. package/{scheduler-picker/index.d.ts → types/acorex-components-scheduler-picker.d.ts} +82 -81
  264. package/{scheduler/index.d.ts → types/acorex-components-scheduler.d.ts} +46 -23
  265. package/{select-box/index.d.ts → types/acorex-components-select-box.d.ts} +7 -7
  266. package/{side-menu/index.d.ts → types/acorex-components-side-menu.d.ts} +10 -3
  267. package/{slider/index.d.ts → types/acorex-components-slider.d.ts} +2 -2
  268. package/{tabs/index.d.ts → types/acorex-components-tabs.d.ts} +1 -1
  269. package/{tag/index.d.ts → types/acorex-components-tag.d.ts} +3 -3
  270. package/types/acorex-components-text-box.d.ts +79 -0
  271. package/{time-duration/index.d.ts → types/acorex-components-time-duration.d.ts} +6 -4
  272. package/{toast/index.d.ts → types/acorex-components-toast.d.ts} +24 -18
  273. package/{tooltip/index.d.ts → types/acorex-components-tooltip.d.ts} +6 -9
  274. package/{tree-view-legacy/index.d.ts → types/acorex-components-tree-view-legacy.d.ts} +1 -0
  275. package/{tree-view/index.d.ts → types/acorex-components-tree-view.d.ts} +17 -0
  276. package/action-sheet/index.d.ts +0 -174
  277. package/fesm2022/acorex-components-modal-acorex-components-modal-CXXcFToK.mjs.map +0 -1
  278. package/fesm2022/acorex-components-modal-modal-content.component-B4rhHeEz.mjs +0 -212
  279. package/fesm2022/acorex-components-modal-modal-content.component-B4rhHeEz.mjs.map +0 -1
  280. package/kbd/index.d.ts +0 -23
  281. package/media-viewer/index.d.ts +0 -145
  282. package/popup/index.d.ts +0 -120
  283. package/text-box/index.d.ts +0 -95
  284. /package/{alert/index.d.ts → types/acorex-components-alert.d.ts} +0 -0
  285. /package/{aspect-ratio/index.d.ts → types/acorex-components-aspect-ratio.d.ts} +0 -0
  286. /package/{audio-wave/index.d.ts → types/acorex-components-audio-wave.d.ts} +0 -0
  287. /package/{autocomplete/index.d.ts → types/acorex-components-autocomplete.d.ts} +0 -0
  288. /package/{avatar/index.d.ts → types/acorex-components-avatar.d.ts} +0 -0
  289. /package/{badge/index.d.ts → types/acorex-components-badge.d.ts} +0 -0
  290. /package/{bottom-navigation/index.d.ts → types/acorex-components-bottom-navigation.d.ts} +0 -0
  291. /package/{breadcrumbs/index.d.ts → types/acorex-components-breadcrumbs.d.ts} +0 -0
  292. /package/{circular-progress/index.d.ts → types/acorex-components-circular-progress.d.ts} +0 -0
  293. /package/{color-box/index.d.ts → types/acorex-components-color-box.d.ts} +0 -0
  294. /package/{cron-job/index.d.ts → types/acorex-components-cron-job.d.ts} +0 -0
  295. /package/{data-list/index.d.ts → types/acorex-components-data-list.d.ts} +0 -0
  296. /package/{datetime-box/index.d.ts → types/acorex-components-datetime-box.d.ts} +0 -0
  297. /package/{datetime-picker/index.d.ts → types/acorex-components-datetime-picker.d.ts} +0 -0
  298. /package/{decorators/index.d.ts → types/acorex-components-decorators.d.ts} +0 -0
  299. /package/{drawer-legacy/index.d.ts → types/acorex-components-drawer-legacy.d.ts} +0 -0
  300. /package/{drawer/index.d.ts → types/acorex-components-drawer.d.ts} +0 -0
  301. /package/{editor/index.d.ts → types/acorex-components-editor.d.ts} +0 -0
  302. /package/{file-explorer/index.d.ts → types/acorex-components-file-explorer.d.ts} +0 -0
  303. /package/{flow-chart/index.d.ts → types/acorex-components-flow-chart.d.ts} +0 -0
  304. /package/{image-editor/index.d.ts → types/acorex-components-image-editor.d.ts} +0 -0
  305. /package/{image/index.d.ts → types/acorex-components-image.d.ts} +0 -0
  306. /package/{json-viewer/index.d.ts → types/acorex-components-json-viewer.d.ts} +0 -0
  307. /package/{label/index.d.ts → types/acorex-components-label.d.ts} +0 -0
  308. /package/{map/index.d.ts → types/acorex-components-map.d.ts} +0 -0
  309. /package/{navbar/index.d.ts → types/acorex-components-navbar.d.ts} +0 -0
  310. /package/{number-box-legacy/index.d.ts → types/acorex-components-number-box-legacy.d.ts} +0 -0
  311. /package/{otp/index.d.ts → types/acorex-components-otp.d.ts} +0 -0
  312. /package/{page/index.d.ts → types/acorex-components-page.d.ts} +0 -0
  313. /package/{password-box/index.d.ts → types/acorex-components-password-box.d.ts} +0 -0
  314. /package/{pdf-reader/index.d.ts → types/acorex-components-pdf-reader.d.ts} +0 -0
  315. /package/{picker/index.d.ts → types/acorex-components-picker.d.ts} +0 -0
  316. /package/{progress-bar/index.d.ts → types/acorex-components-progress-bar.d.ts} +0 -0
  317. /package/{qrcode/index.d.ts → types/acorex-components-qrcode.d.ts} +0 -0
  318. /package/{query-builder/index.d.ts → types/acorex-components-query-builder.d.ts} +0 -0
  319. /package/{rail-navigation/index.d.ts → types/acorex-components-rail-navigation.d.ts} +0 -0
  320. /package/{range-slider/index.d.ts → types/acorex-components-range-slider.d.ts} +0 -0
  321. /package/{rest-api-generator/index.d.ts → types/acorex-components-rest-api-generator.d.ts} +0 -0
  322. /package/{result/index.d.ts → types/acorex-components-result.d.ts} +0 -0
  323. /package/{routing-progress/index.d.ts → types/acorex-components-routing-progress.d.ts} +0 -0
  324. /package/{rrule/index.d.ts → types/acorex-components-rrule.d.ts} +0 -0
  325. /package/{scss/index.d.ts → types/acorex-components-scss.d.ts} +0 -0
  326. /package/{search-box/index.d.ts → types/acorex-components-search-box.d.ts} +0 -0
  327. /package/{selection-list-2/index.d.ts → types/acorex-components-selection-list-2.d.ts} +0 -0
  328. /package/{selection-list/index.d.ts → types/acorex-components-selection-list.d.ts} +0 -0
  329. /package/{skeleton/index.d.ts → types/acorex-components-skeleton.d.ts} +0 -0
  330. /package/{sliding-item/index.d.ts → types/acorex-components-sliding-item.d.ts} +0 -0
  331. /package/{step-wizard/index.d.ts → types/acorex-components-step-wizard.d.ts} +0 -0
  332. /package/{switch/index.d.ts → types/acorex-components-switch.d.ts} +0 -0
  333. /package/{tag-box/index.d.ts → types/acorex-components-tag-box.d.ts} +0 -0
  334. /package/{text-area/index.d.ts → types/acorex-components-text-area.d.ts} +0 -0
  335. /package/{time-line/index.d.ts → types/acorex-components-time-line.d.ts} +0 -0
  336. /package/{toolbar/index.d.ts → types/acorex-components-toolbar.d.ts} +0 -0
  337. /package/{uploader/index.d.ts → types/acorex-components-uploader.d.ts} +0 -0
  338. /package/{video-player/index.d.ts → types/acorex-components-video-player.d.ts} +0 -0
  339. /package/{wysiwyg/index.d.ts → types/acorex-components-wysiwyg.d.ts} +0 -0
  340. /package/{index.d.ts → types/acorex-components.d.ts} +0 -0
@@ -1,19 +1,18 @@
1
1
  import { AXPlatform } from '@acorex/core/platform';
2
- import { TemplatePortal, ComponentPortal, CdkPortalOutlet, PortalModule } from '@angular/cdk/portal';
3
2
  import * as i0 from '@angular/core';
4
- import { inject, NgZone, ViewContainerRef, TemplateRef, HostListener, ViewEncapsulation, ChangeDetectionStrategy, Component, Injectable, NgModule } from '@angular/core';
3
+ import { inject, NgZone, input, signal, TemplateRef, ViewContainerRef, HostListener, ViewChild, ViewEncapsulation, ChangeDetectionStrategy, Component, Directive, ComponentRef, Injectable, NgModule } from '@angular/core';
5
4
  import { MXBaseComponent, AXClosableComponent, AXComponent, AXComponentClosedPromise, AXCommonModule } from '@acorex/cdk/common';
5
+ import { AXFocusTrapDirective } from '@acorex/cdk/focus-trap';
6
6
  import { AXDecoratorCloseButtonComponent, AXDecoratorModule } from '@acorex/components/decorators';
7
7
  import { AXLoadingService } from '@acorex/components/loading';
8
+ import { AXComponentService } from '@acorex/core/components';
8
9
  import { AXTranslatorPipe, AXTranslationModule } from '@acorex/core/translation';
9
- import { CdkTrapFocus, A11yModule } from '@angular/cdk/a11y';
10
- import { DIALOG_DATA, DialogRef, Dialog, DialogModule } from '@angular/cdk/dialog';
11
- import { CdkDrag, CdkDragHandle, DragDropModule } from '@angular/cdk/drag-drop';
12
10
  import { AsyncPipe, CommonModule } from '@angular/common';
13
- import { AXHtmlUtil } from '@acorex/core/utils';
11
+ import { AXOverlayService } from '@acorex/cdk/overlay';
12
+ import { Subject } from 'rxjs';
14
13
 
15
14
  /**
16
- * The Button is a component which detects user interaction and triggers a corresponding event
15
+ * The Popup is a component which displays content in a dialog overlay
17
16
  *
18
17
  * @category Components
19
18
  */
@@ -21,69 +20,122 @@ class AXPopupComponent extends MXBaseComponent {
21
20
  constructor() {
22
21
  super(...arguments);
23
22
  this._zone = inject(NgZone);
24
- this._viewContainerRef = inject(ViewContainerRef);
25
23
  this.loadingService = inject(AXLoadingService);
26
24
  this._platform = inject(AXPlatform);
27
- this.data = inject(DIALOG_DATA);
28
- this.dialogRef = inject(DialogRef);
25
+ this.componentService = inject(AXComponentService);
26
+ // Inputs from overlay service
27
+ this.__content__ = input(...(ngDevMode ? [undefined, { debugName: "__content__" }] : []));
28
+ this.__config__ = input(...(ngDevMode ? [undefined, { debugName: "__config__" }] : []));
29
+ this.__popupRef__ = input(...(ngDevMode ? [undefined, { debugName: "__popupRef__" }] : []));
30
+ this.__id__ = input(...(ngDevMode ? [undefined, { debugName: "__id__" }] : []));
29
31
  /**
30
32
  * Indicates whether the component is loading.
31
33
  * @defaultValue true
32
34
  */
33
35
  this.isLoading = true;
36
+ /** @ignore */
37
+ this._componentRef = null;
38
+ /** Current title */
39
+ this.title = signal('', ...(ngDevMode ? [{ debugName: "title" }] : []));
40
+ /** @ignore */
41
+ this.isDragging = signal(false, ...(ngDevMode ? [{ debugName: "isDragging" }] : []));
42
+ /** @ignore */
43
+ this.dragOffset = signal({ x: 0, y: 0 }, ...(ngDevMode ? [{ debugName: "dragOffset" }] : []));
44
+ /** @ignore */
45
+ this.dragStartPos = { x: 0, y: 0 };
46
+ /** @ignore */
47
+ this.elementStartPos = { x: 0, y: 0 };
34
48
  }
35
49
  /** @ignore */
36
50
  ngOnInit() {
37
51
  super.ngOnInit();
52
+ const config = this.__config__();
38
53
  if (this._platform.is('SM')) {
39
- this.data.draggable = false;
54
+ // Disable dragging on small screens
55
+ if (config) {
56
+ config.draggable = false;
57
+ }
40
58
  }
59
+ this.title.set(config?.title ?? '');
41
60
  this._loadingId = this.loadingService.show({
42
61
  location: this.getHostElement(),
43
62
  });
44
- //
45
- if (this.data.content instanceof TemplateRef) {
46
- this._selectedPortal = new TemplatePortal(this.data.content, this._viewContainerRef, {
47
- $implicit: this.data,
48
- ref: this,
49
- });
50
- this.cdr.markForCheck();
51
- }
52
- else if (typeof this.data.content === 'function') {
53
- this._selectedPortal = new ComponentPortal(this.data.content);
54
- this.cdr.markForCheck();
55
- }
63
+ this.renderContent();
56
64
  }
57
65
  /** @ignore */
58
- _handleAttched(ref) {
59
- ref = ref;
60
- if (ref.instance) {
61
- this._componentRef = ref.instance;
62
- Object.assign(this._componentRef, this.data.data);
63
- Object.assign(this._componentRef, { _isPopup: true });
64
- Object.assign(this._componentRef, {
65
- setTitle: (title) => {
66
- this.data.title = title;
67
- },
66
+ async renderContent() {
67
+ const content = this.__content__();
68
+ const config = this.__config__();
69
+ if (!content) {
70
+ this.loadingService.hide(this._loadingId);
71
+ return;
72
+ }
73
+ if (content instanceof TemplateRef) {
74
+ // Render template using ViewContainerRef (supports context)
75
+ this.contentContainerRef.createEmbeddedView(content, {
76
+ $implicit: config?.data,
77
+ ref: this,
68
78
  });
69
- if (ref.instance.onClosed) {
70
- ref.instance.onClosed.subscribe((e) => {
79
+ this.handleContentRendered();
80
+ }
81
+ else if (typeof content === 'function') {
82
+ // Render component
83
+ const componentRef = this.componentService.createFromComponent(content);
84
+ this._componentRef = componentRef;
85
+ // Expose component instance to the popup ref
86
+ const popupRef = this.__popupRef__();
87
+ if (popupRef) {
88
+ popupRef.componentInstance = componentRef.instance;
89
+ }
90
+ // Get component input definitions to check before setting inputs
91
+ const inputDefs = componentRef.componentType?.ɵcmp
92
+ ?.inputs;
93
+ // Set data inputs (only if the component has the input defined)
94
+ if (config?.data && typeof config.data === 'object') {
95
+ Object.entries(config.data).forEach(([key, value]) => {
96
+ componentRef.instance[key] = value;
97
+ });
98
+ }
99
+ if (config?.inputs && typeof config.inputs === 'object') {
100
+ Object.entries(config.inputs).forEach(([key, value]) => {
101
+ if (inputDefs && key in inputDefs) {
102
+ componentRef.setInput(key, value);
103
+ }
104
+ });
105
+ }
106
+ // Set popup reference (only if the component has this input)
107
+ if (inputDefs && '__popup__' in inputDefs) {
108
+ componentRef.setInput('__popup__', this.__popupRef__());
109
+ }
110
+ // Move component to container
111
+ const hostElement = componentRef.location.nativeElement;
112
+ this.contentContainerEl.nativeElement.appendChild(hostElement);
113
+ // Subscribe to close event if available
114
+ const instance = componentRef.instance;
115
+ if (instance.onClosed) {
116
+ instance.onClosed.subscribe((e) => {
71
117
  this.close(e.data);
72
118
  });
73
119
  }
120
+ this.handleContentRendered();
74
121
  }
122
+ }
123
+ /** @ignore */
124
+ handleContentRendered() {
75
125
  this._zone.runOutsideAngular(() => {
76
126
  setTimeout(() => {
77
127
  const body = this.getHostElement().querySelector('.ax-popup-body-container');
78
128
  const content = body.children[0];
129
+ if (!content || !body)
130
+ return;
79
131
  const popHeader = this.getHostElement().querySelector('.ax-popup-header-container');
80
132
  const popFooter = this.getHostElement().querySelector('.ax-popup-footer-container');
81
133
  const footer = content.querySelector(':scope > ax-footer');
82
134
  const header = content.querySelector(':scope > ax-header');
83
- if (footer) {
84
- popFooter?.append(footer);
135
+ if (footer && popFooter) {
136
+ popFooter.append(footer);
85
137
  }
86
- if (header) {
138
+ if (header && popHeader) {
87
139
  popHeader.innerHTML = '';
88
140
  popHeader.append(header);
89
141
  }
@@ -94,9 +146,9 @@ class AXPopupComponent extends MXBaseComponent {
94
146
  this.cdr.markForCheck();
95
147
  }
96
148
  /** @ignore */
97
- onKeydownHandler(event) {
149
+ onKeydownHandler() {
98
150
  const focusedOrHasFocused = this.getHostElement().matches(':focus-within');
99
- if (this.data.closeButton && focusedOrHasFocused) {
151
+ if (this.__config__()?.closeButton && focusedOrHasFocused) {
100
152
  this.close();
101
153
  }
102
154
  }
@@ -107,6 +159,10 @@ class AXPopupComponent extends MXBaseComponent {
107
159
  /** @ignore */
108
160
  ngOnDestroy() {
109
161
  this.loadingService.hide(this._loadingId);
162
+ if (this._componentRef) {
163
+ this._componentRef.destroy();
164
+ this._componentRef = null;
165
+ }
110
166
  }
111
167
  /**
112
168
  * Sets focus on the `.ax-popup` element within the host element after a short delay.
@@ -115,23 +171,20 @@ class AXPopupComponent extends MXBaseComponent {
115
171
  setTimeout(() => this.getHostElement().querySelector('.ax-popup')?.focus());
116
172
  }
117
173
  /**
118
- * Closes the dialog, emitting component reference, host element, and optional data.
174
+ * Closes the popup, emitting component reference, host element, and optional data.
119
175
  * @param {unknown} [data]
120
176
  */
121
177
  close(data) {
122
178
  const closeFn = () => {
123
- this.dialogRef.close({
124
- component: this._componentRef,
125
- htmlElement: this.getHostElement(),
126
- data: data,
127
- });
179
+ this.__popupRef__()?.close(data);
128
180
  };
129
- if (typeof this._componentRef?.onClosing === 'function') {
181
+ const componentInstance = this._componentRef?.instance;
182
+ if (typeof componentInstance?.onClosing === 'function') {
130
183
  const ee = {
131
184
  cancel: false,
132
185
  data,
133
186
  };
134
- const closingResult = this._componentRef?.onClosing(ee);
187
+ const closingResult = componentInstance.onClosing(ee);
135
188
  if (closingResult instanceof Promise) {
136
189
  closingResult.then(() => {
137
190
  if (!ee.cancel) {
@@ -149,31 +202,102 @@ class AXPopupComponent extends MXBaseComponent {
149
202
  closeFn();
150
203
  }
151
204
  }
152
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPopupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
153
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: AXPopupComponent, isStandalone: true, selector: "ax-popup", host: { listeners: { "keydown.escape": "onKeydownHandler($event)" } }, providers: [
205
+ /**
206
+ * Sets inputs on the content component.
207
+ * @param values - Object containing input values to set
208
+ */
209
+ setContentInputs(values) {
210
+ const componentRef = this._componentRef;
211
+ if (componentRef) {
212
+ Object.entries(values).forEach(([key, value]) => {
213
+ componentRef.setInput(key, value);
214
+ });
215
+ }
216
+ }
217
+ /**
218
+ * Sets the popup title.
219
+ * @param title - The new title
220
+ */
221
+ setTitle(title) {
222
+ this.title.set(title);
223
+ this.cdr.markForCheck();
224
+ }
225
+ // Drag functionality
226
+ onDragStart(event) {
227
+ const config = this.__config__();
228
+ if (!config?.draggable)
229
+ return;
230
+ this.isDragging.set(true);
231
+ this.dragStartPos = { x: event.clientX, y: event.clientY };
232
+ const popup = this.getHostElement().querySelector('.ax-popup');
233
+ if (popup) {
234
+ const rect = popup.getBoundingClientRect();
235
+ this.elementStartPos = { x: rect.left, y: rect.top };
236
+ }
237
+ event.preventDefault();
238
+ }
239
+ onDragMove(event) {
240
+ if (!this.isDragging())
241
+ return;
242
+ const deltaX = event.clientX - this.dragStartPos.x;
243
+ const deltaY = event.clientY - this.dragStartPos.y;
244
+ this.dragOffset.set({
245
+ x: this.elementStartPos.x + deltaX,
246
+ y: this.elementStartPos.y + deltaY,
247
+ });
248
+ }
249
+ onDragEnd() {
250
+ this.isDragging.set(false);
251
+ }
252
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXPopupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
253
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.3", type: AXPopupComponent, isStandalone: true, selector: "ax-popup", inputs: { __content__: { classPropertyName: "__content__", publicName: "__content__", isSignal: true, isRequired: false, transformFunction: null }, __config__: { classPropertyName: "__config__", publicName: "__config__", isSignal: true, isRequired: false, transformFunction: null }, __popupRef__: { classPropertyName: "__popupRef__", publicName: "__popupRef__", isSignal: true, isRequired: false, transformFunction: null }, __id__: { classPropertyName: "__id__", publicName: "__id__", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "keydown.escape": "onKeydownHandler()", "document:mousemove": "onDragMove($event)", "document:mouseup": "onDragEnd()" } }, providers: [
154
254
  { provide: AXClosableComponent, useExisting: AXPopupComponent },
155
255
  { provide: AXComponent, useExisting: AXPopupComponent },
156
- ], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" [cdkTrapFocus]=\"true\">\n <div class=\"ax-popup ax-popup-{{ data.size }}\" tabindex=\"0\" cdkDrag [cdkDragDisabled]=\"!data.draggable\">\n <div cdkDragHandle class=\"ax-popup-header-container\">\n @if (data.header) {\n <div class=\"ax-popup-header\">\n <span class=\"ax-popup-title\">{{ data.title | translate | async }}</span>\n @if (data.closeButton) {\n <ax-close-button tabindex=\"1\"></ax-close-button>\n }\n </div>\n }\n </div>\n <div class=\"ax-popup-main-container ax-loading-container\">\n <div class=\"ax-popup-body-container\">\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\n </div>\n <div class=\"ax-popup-footer-container\"></div>\n </div>\n </div>\n</div>\n", styles: [":root{--ax-comp-popup-border-radius: var(--ax-sys-border-radius);--ax-comp-popup-border-color: var(--ax-sys-color-border-lightest-surface);--ax-comp-popup-body-bg-color: var(--ax-sys-color-lightest-surface);--ax-comp-popup-body-text-color: var(--ax-sys-color-on-lightest-surface);--ax-comp-popup-header-bg-color: var(--ax-sys-color-lighter-surface);--ax-comp-popup-header-border-color: var(--ax-sys-color-border-lighter-surface);--ax-comp-popup-footer-bg-color: var(--ax-sys-color-lighter-surface);--ax-comp-popup-footer-border-color: var(--ax-sys-color-border-lighter-surface)}.ax-popup{max-height:calc(var(--ax-overlay-full-width) * var(--ax-vh));margin-left:auto;margin-right:auto;display:flex;width:auto;flex-direction:column;overflow:hidden;border-radius:var(--ax-comp-popup-border-radius);border-width:1px;border-color:rgba(var(--ax-comp-popup-border-color));background-color:rgba(var(--ax-comp-popup-body-bg-color));padding:0;--ax-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--ax-shadow-colored: 0 10px 15px -3px var(--ax-shadow-color), 0 4px 6px -4px var(--ax-shadow-color);box-shadow:var(--ax-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--ax-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--ax-shadow);outline:2px solid transparent;outline-offset:2px;color:rgba(var(--ax-comp-popup-body-text-color))}.ax-popup .ax-popup-header-container{background-color:rgba(var(--ax-comp-popup-header-bg-color))}.ax-popup .ax-popup-header-container .ax-popup-header{display:flex;align-items:center;justify-content:space-between;border-bottom-width:1px;border-color:rgba(var(--ax-comp-popup-header-border-color));padding:.75rem}.ax-popup .ax-popup-header-container .ax-popup-header .ax-popup-title{font-size:1rem;font-weight:500}@media (min-width: 768px){.ax-popup .ax-popup-header-container .ax-popup-header .ax-popup-title{font-size:1.125rem;line-height:1.75rem}}.ax-popup ax-footer{box-shadow:0 2px 10px #0000004d;display:flex;align-items:center;justify-content:space-between;border-top-width:1px;border-color:rgba(var(--ax-comp-popup-footer-border-color));background-color:rgba(var(--ax-comp-popup-footer-bg-color));padding:.75rem}.ax-popup:focus{outline:2px solid transparent;outline-offset:2px}.ax-popup:focus-visible{border-color:rgba(var(--ax-sys-color-primary-surface))}.ax-popup .ax-popup-main-container{display:flex;flex:1 1 0%;flex-direction:column;overflow:hidden}.ax-popup .ax-popup-main-container .ax-popup-body-container{flex:1 1 0%;overflow:auto;background-color:rgba(var(--ax-comp-popup-body-bg-color))}.ax-popup .ax-popup-main-container .ax-popup-footer-container{background-color:rgba(var(--ax-comp-popup-footer-bg-color))}.ax-popup.ax-popup-full{width:100vw;max-height:calc(100 * var(--ax-vh));height:calc(100 * var(--ax-vh));border-radius:0!important}.ax-popup.ax-fit{width:fit-content!important}.ax-popup.ax-fit .ax-popup-body-container{max-height:100vh}.ax-popup.ax-fit .ax-popup-body-container>ng-component>div{width:fit-content!important}@media (min-width: 320px) and (max-width: 640px){.ax-popup.ax-popup-sm,.ax-popup.ax-popup-md,.ax-popup.ax-popup-lg{width:93vw!important;height:fit-content;max-height:calc(var(--ax-overlay-full-width) * var(--ax-vh))!important}.ax-popup.ax-popup-sm .ax-popup-body-container>ng-component>div,.ax-popup.ax-popup-md .ax-popup-body-container>ng-component>div,.ax-popup.ax-popup-lg .ax-popup-body-container>ng-component>div{width:100%}}@media (min-width: 768px){.ax-popup.ax-popup-sm{width:55vw!important}.ax-popup.ax-popup-md{width:65vw!important}.ax-popup.ax-popup-lg{width:75vw!important}}@media (min-width: 1280px){.ax-popup.ax-popup-sm{width:30vw!important}.ax-popup.ax-popup-md{width:50vw!important}.ax-popup.ax-popup-lg{width:85vw!important}}@media (min-width: 1536px){.ax-popup.ax-popup-sm{width:25vw!important}.ax-popup.ax-popup-md{width:40vw!important}.ax-popup.ax-popup-lg{width:65vw!important}}.ax-dark .ax-popup{--ax-comp-popup-border-color: var(--ax-sys-color-border-darkest-surface);--ax-comp-popup-body-bg-color: var(--ax-sys-color-darker-surface);--ax-comp-popup-body-text-color: var(--ax-sys-color-on-darker-surface);--ax-comp-popup-header-bg-color: var(--ax-sys-color-dark-surface);--ax-comp-popup-header-border-color: var(--ax-sys-color-border-dark-surface);--ax-comp-popup-footer-bg-color: var(--ax-sys-color-dark-surface);--ax-comp-popup-footer-border-color: var(--ax-sys-color-border-dark-surface)}\n"], dependencies: [{ kind: "directive", type: CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "component", type: AXDecoratorCloseButtonComponent, selector: "ax-close-button", inputs: ["closeAll", "icon"] }, { kind: "directive", type: CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
256
+ ], viewQueries: [{ propertyName: "contentContainerRef", first: true, predicate: ["contentContainer"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "contentContainerEl", first: true, predicate: ["contentContainer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" axFocusTrap>\n <div\n class=\"ax-popup ax-popup-{{ __config__()?.size || 'md' }}\"\n tabindex=\"0\"\n [class.ax-popup-dragging]=\"isDragging()\"\n [style.position]=\"dragOffset().x || dragOffset().y ? 'fixed' : null\"\n [style.left.px]=\"dragOffset().x || null\"\n [style.top.px]=\"dragOffset().y || null\"\n [style.transform]=\"dragOffset().x || dragOffset().y ? 'none' : null\"\n >\n <div\n class=\"ax-popup-header-container\"\n [class.ax-popup-draggable]=\"__config__()?.draggable\"\n (mousedown)=\"onDragStart($event)\"\n >\n @if (__config__()?.header) {\n <div class=\"ax-popup-header\">\n <span class=\"ax-popup-title\">{{ title() | translate | async }}</span>\n @if (__config__()?.closeButton) {\n <ax-close-button tabindex=\"1\" (click)=\"_handleCloseClick()\"></ax-close-button>\n }\n </div>\n }\n </div>\n <div class=\"ax-popup-main-container ax-loading-container\">\n <div class=\"ax-popup-body-container\" #contentContainer></div>\n <div class=\"ax-popup-footer-container\"></div>\n </div>\n </div>\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;--tw-outline-style:solid;--tw-font-weight:initial;--tw-leading:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer components{.ax-popup{border-style:var(--tw-border-style);background-color:var(--color-lightest);width:auto;color:var(--color-on-lightest);border-width:1px;border-color:var(--color-border-lightest);padding:calc(var(--spacing,.25rem) * 0);outline-style:var(--tw-outline-style);outline-offset:2px;outline-width:2px;outline-color:#0000;flex-direction:column;margin-inline:auto;display:flex;overflow:hidden;border-radius:var(--ax-sys-border-radius)!important}.ax-popup:where(.ax-dark,.ax-dark *){background-color:var(--color-darkest);color:var(--color-on-darkest);border-color:var(--color-border-darkest)}.ax-popup{max-height:calc(var(--ax-overlay-full-width) * var(--ax-vh));--ax-shadow:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;--ax-shadow-colored:0 10px 15px -3px var(--ax-shadow-color), 0 4px 6px -4px var(--ax-shadow-color);box-shadow:var(--ax-ring-offset-shadow,0 0 #0000),var(--ax-ring-shadow,0 0 #0000),var(--ax-shadow)}.ax-popup .ax-popup-header-container{background-color:rgba(var(--ax-sys-color-lighter-surface))}.ax-popup .ax-popup-header-container:where(.ax-dark,.ax-dark *){background-color:rgba(var(--ax-sys-color-dark-surface))}.ax-popup .ax-popup-header-container .ax-popup-header{border-bottom-style:var(--tw-border-style);border-bottom-width:1px;border-color:rgba(var(--ax-sys-color-border-lighter-surface));padding:calc(var(--spacing,.25rem) * 3);justify-content:space-between;align-items:center;display:flex}.ax-popup .ax-popup-header-container .ax-popup-header:where(.ax-dark,.ax-dark *){border-color:rgba(var(--ax-sys-color-border-dark-surface))}.ax-popup .ax-popup-header-container .ax-popup-header .ax-popup-title{font-size:var(--text-base,1rem);line-height:var(--tw-leading,var(--text-base--line-height, 1.5 ));--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500)}@media(min-width:48rem){.ax-popup .ax-popup-header-container .ax-popup-header .ax-popup-title{font-size:var(--text-lg,1.125rem);line-height:var(--tw-leading,var(--text-lg--line-height,calc(1.75 / 1.125)));--tw-leading:calc(var(--spacing,.25rem) * 7);line-height:calc(var(--spacing,.25rem) * 7)}}.ax-popup .ax-popup-wrapper{display:contents}.ax-popup .ax-popup-header-container.ax-popup-draggable{cursor:move}.ax-popup .ax-popup.ax-popup-dragging{-webkit-user-select:none;user-select:none}.ax-popup ax-footer{border-top-style:var(--tw-border-style);border-top-width:1px;border-color:rgba(var(--ax-sys-color-border-lighter-surface));background-color:rgba(var(--ax-sys-color-lighter-surface));padding:calc(var(--spacing,.25rem) * 3);--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);justify-content:space-between;align-items:center;display:flex}.ax-popup ax-footer:where(.ax-dark,.ax-dark *){border-color:rgba(var(--ax-sys-color-border-dark-surface));background-color:rgba(var(--ax-sys-color-dark-surface))}.ax-popup:focus{outline-style:var(--tw-outline-style);outline-offset:2px;outline-width:2px;outline-color:#0000}.ax-popup:focus-visible{border-color:rgba(var(--ax-sys-color-primary-surface))}.ax-popup .ax-popup-main-container{flex-direction:column;flex:1;display:flex;overflow:hidden}.ax-popup .ax-popup-main-container .ax-popup-body-container{background-color:rgba(var(--ax-sys-color-lightest-surface));flex:1;overflow:auto}.ax-popup .ax-popup-main-container .ax-popup-body-container:where(.ax-dark,.ax-dark *){background-color:rgba(var(--ax-sys-color-darkest-surface))}.ax-popup .ax-popup-main-container .ax-popup-footer-container{background-color:rgba(var(--ax-sys-color-lighter-surface))}.ax-popup .ax-popup-main-container .ax-popup-footer-container:where(.ax-dark,.ax-dark *){background-color:rgba(var(--ax-sys-color-dark-surface))}.ax-popup.ax-popup-full{width:100vw;max-height:calc(100 * var(--ax-vh));height:calc(100 * var(--ax-vh));border-radius:0!important}.ax-popup.ax-fit{width:fit-content!important}.ax-popup.ax-fit .ax-popup-body-container{max-height:100vh}.ax-popup.ax-fit .ax-popup-body-container>ng-component>div{width:fit-content!important}@media(min-width:320px)and (max-width:640px){.ax-popup.ax-popup-sm,.ax-popup.ax-popup-md,.ax-popup.ax-popup-lg{height:fit-content;width:93vw!important;max-height:calc(var(--ax-overlay-full-width) * var(--ax-vh))!important}:is(.ax-popup.ax-popup-sm,.ax-popup.ax-popup-md,.ax-popup.ax-popup-lg) .ax-popup-body-container>ng-component>div{width:100%}}@media(min-width:768px){.ax-popup.ax-popup-sm{width:55vw!important}.ax-popup.ax-popup-md{width:65vw!important}.ax-popup.ax-popup-lg{width:75vw!important}}@media(min-width:1280px){.ax-popup.ax-popup-sm{width:30vw!important}.ax-popup.ax-popup-md{width:50vw!important}.ax-popup.ax-popup-lg{width:85vw!important}}@media(min-width:1536px){.ax-popup.ax-popup-sm{width:25vw!important}.ax-popup.ax-popup-md{width:40vw!important}.ax-popup.ax-popup-lg{width:65vw!important}}}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-outline-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}\n/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "component", type: AXDecoratorCloseButtonComponent, selector: "ax-close-button", inputs: ["closeAll", "icon"] }, { kind: "directive", type: AXFocusTrapDirective, selector: "[axFocusTrap]" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
157
257
  }
158
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPopupComponent, decorators: [{
258
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXPopupComponent, decorators: [{
159
259
  type: Component,
160
260
  args: [{ selector: 'ax-popup', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [
161
261
  { provide: AXClosableComponent, useExisting: AXPopupComponent },
162
262
  { provide: AXComponent, useExisting: AXPopupComponent },
163
- ], imports: [
164
- CdkTrapFocus,
165
- CdkDrag,
166
- CdkDragHandle,
167
- AXDecoratorCloseButtonComponent,
168
- CdkPortalOutlet,
169
- AsyncPipe,
170
- AXTranslatorPipe,
171
- ], template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" [cdkTrapFocus]=\"true\">\n <div class=\"ax-popup ax-popup-{{ data.size }}\" tabindex=\"0\" cdkDrag [cdkDragDisabled]=\"!data.draggable\">\n <div cdkDragHandle class=\"ax-popup-header-container\">\n @if (data.header) {\n <div class=\"ax-popup-header\">\n <span class=\"ax-popup-title\">{{ data.title | translate | async }}</span>\n @if (data.closeButton) {\n <ax-close-button tabindex=\"1\"></ax-close-button>\n }\n </div>\n }\n </div>\n <div class=\"ax-popup-main-container ax-loading-container\">\n <div class=\"ax-popup-body-container\">\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\n </div>\n <div class=\"ax-popup-footer-container\"></div>\n </div>\n </div>\n</div>\n", styles: [":root{--ax-comp-popup-border-radius: var(--ax-sys-border-radius);--ax-comp-popup-border-color: var(--ax-sys-color-border-lightest-surface);--ax-comp-popup-body-bg-color: var(--ax-sys-color-lightest-surface);--ax-comp-popup-body-text-color: var(--ax-sys-color-on-lightest-surface);--ax-comp-popup-header-bg-color: var(--ax-sys-color-lighter-surface);--ax-comp-popup-header-border-color: var(--ax-sys-color-border-lighter-surface);--ax-comp-popup-footer-bg-color: var(--ax-sys-color-lighter-surface);--ax-comp-popup-footer-border-color: var(--ax-sys-color-border-lighter-surface)}.ax-popup{max-height:calc(var(--ax-overlay-full-width) * var(--ax-vh));margin-left:auto;margin-right:auto;display:flex;width:auto;flex-direction:column;overflow:hidden;border-radius:var(--ax-comp-popup-border-radius);border-width:1px;border-color:rgba(var(--ax-comp-popup-border-color));background-color:rgba(var(--ax-comp-popup-body-bg-color));padding:0;--ax-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--ax-shadow-colored: 0 10px 15px -3px var(--ax-shadow-color), 0 4px 6px -4px var(--ax-shadow-color);box-shadow:var(--ax-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--ax-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--ax-shadow);outline:2px solid transparent;outline-offset:2px;color:rgba(var(--ax-comp-popup-body-text-color))}.ax-popup .ax-popup-header-container{background-color:rgba(var(--ax-comp-popup-header-bg-color))}.ax-popup .ax-popup-header-container .ax-popup-header{display:flex;align-items:center;justify-content:space-between;border-bottom-width:1px;border-color:rgba(var(--ax-comp-popup-header-border-color));padding:.75rem}.ax-popup .ax-popup-header-container .ax-popup-header .ax-popup-title{font-size:1rem;font-weight:500}@media (min-width: 768px){.ax-popup .ax-popup-header-container .ax-popup-header .ax-popup-title{font-size:1.125rem;line-height:1.75rem}}.ax-popup ax-footer{box-shadow:0 2px 10px #0000004d;display:flex;align-items:center;justify-content:space-between;border-top-width:1px;border-color:rgba(var(--ax-comp-popup-footer-border-color));background-color:rgba(var(--ax-comp-popup-footer-bg-color));padding:.75rem}.ax-popup:focus{outline:2px solid transparent;outline-offset:2px}.ax-popup:focus-visible{border-color:rgba(var(--ax-sys-color-primary-surface))}.ax-popup .ax-popup-main-container{display:flex;flex:1 1 0%;flex-direction:column;overflow:hidden}.ax-popup .ax-popup-main-container .ax-popup-body-container{flex:1 1 0%;overflow:auto;background-color:rgba(var(--ax-comp-popup-body-bg-color))}.ax-popup .ax-popup-main-container .ax-popup-footer-container{background-color:rgba(var(--ax-comp-popup-footer-bg-color))}.ax-popup.ax-popup-full{width:100vw;max-height:calc(100 * var(--ax-vh));height:calc(100 * var(--ax-vh));border-radius:0!important}.ax-popup.ax-fit{width:fit-content!important}.ax-popup.ax-fit .ax-popup-body-container{max-height:100vh}.ax-popup.ax-fit .ax-popup-body-container>ng-component>div{width:fit-content!important}@media (min-width: 320px) and (max-width: 640px){.ax-popup.ax-popup-sm,.ax-popup.ax-popup-md,.ax-popup.ax-popup-lg{width:93vw!important;height:fit-content;max-height:calc(var(--ax-overlay-full-width) * var(--ax-vh))!important}.ax-popup.ax-popup-sm .ax-popup-body-container>ng-component>div,.ax-popup.ax-popup-md .ax-popup-body-container>ng-component>div,.ax-popup.ax-popup-lg .ax-popup-body-container>ng-component>div{width:100%}}@media (min-width: 768px){.ax-popup.ax-popup-sm{width:55vw!important}.ax-popup.ax-popup-md{width:65vw!important}.ax-popup.ax-popup-lg{width:75vw!important}}@media (min-width: 1280px){.ax-popup.ax-popup-sm{width:30vw!important}.ax-popup.ax-popup-md{width:50vw!important}.ax-popup.ax-popup-lg{width:85vw!important}}@media (min-width: 1536px){.ax-popup.ax-popup-sm{width:25vw!important}.ax-popup.ax-popup-md{width:40vw!important}.ax-popup.ax-popup-lg{width:65vw!important}}.ax-dark .ax-popup{--ax-comp-popup-border-color: var(--ax-sys-color-border-darkest-surface);--ax-comp-popup-body-bg-color: var(--ax-sys-color-darker-surface);--ax-comp-popup-body-text-color: var(--ax-sys-color-on-darker-surface);--ax-comp-popup-header-bg-color: var(--ax-sys-color-dark-surface);--ax-comp-popup-header-border-color: var(--ax-sys-color-border-dark-surface);--ax-comp-popup-footer-bg-color: var(--ax-sys-color-dark-surface);--ax-comp-popup-footer-border-color: var(--ax-sys-color-border-dark-surface)}\n"] }]
172
- }], propDecorators: { onKeydownHandler: [{
263
+ ], imports: [AXDecoratorCloseButtonComponent, AsyncPipe, AXTranslatorPipe, AXFocusTrapDirective], template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" axFocusTrap>\n <div\n class=\"ax-popup ax-popup-{{ __config__()?.size || 'md' }}\"\n tabindex=\"0\"\n [class.ax-popup-dragging]=\"isDragging()\"\n [style.position]=\"dragOffset().x || dragOffset().y ? 'fixed' : null\"\n [style.left.px]=\"dragOffset().x || null\"\n [style.top.px]=\"dragOffset().y || null\"\n [style.transform]=\"dragOffset().x || dragOffset().y ? 'none' : null\"\n >\n <div\n class=\"ax-popup-header-container\"\n [class.ax-popup-draggable]=\"__config__()?.draggable\"\n (mousedown)=\"onDragStart($event)\"\n >\n @if (__config__()?.header) {\n <div class=\"ax-popup-header\">\n <span class=\"ax-popup-title\">{{ title() | translate | async }}</span>\n @if (__config__()?.closeButton) {\n <ax-close-button tabindex=\"1\" (click)=\"_handleCloseClick()\"></ax-close-button>\n }\n </div>\n }\n </div>\n <div class=\"ax-popup-main-container ax-loading-container\">\n <div class=\"ax-popup-body-container\" #contentContainer></div>\n <div class=\"ax-popup-footer-container\"></div>\n </div>\n </div>\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;--tw-outline-style:solid;--tw-font-weight:initial;--tw-leading:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer components{.ax-popup{border-style:var(--tw-border-style);background-color:var(--color-lightest);width:auto;color:var(--color-on-lightest);border-width:1px;border-color:var(--color-border-lightest);padding:calc(var(--spacing,.25rem) * 0);outline-style:var(--tw-outline-style);outline-offset:2px;outline-width:2px;outline-color:#0000;flex-direction:column;margin-inline:auto;display:flex;overflow:hidden;border-radius:var(--ax-sys-border-radius)!important}.ax-popup:where(.ax-dark,.ax-dark *){background-color:var(--color-darkest);color:var(--color-on-darkest);border-color:var(--color-border-darkest)}.ax-popup{max-height:calc(var(--ax-overlay-full-width) * var(--ax-vh));--ax-shadow:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;--ax-shadow-colored:0 10px 15px -3px var(--ax-shadow-color), 0 4px 6px -4px var(--ax-shadow-color);box-shadow:var(--ax-ring-offset-shadow,0 0 #0000),var(--ax-ring-shadow,0 0 #0000),var(--ax-shadow)}.ax-popup .ax-popup-header-container{background-color:rgba(var(--ax-sys-color-lighter-surface))}.ax-popup .ax-popup-header-container:where(.ax-dark,.ax-dark *){background-color:rgba(var(--ax-sys-color-dark-surface))}.ax-popup .ax-popup-header-container .ax-popup-header{border-bottom-style:var(--tw-border-style);border-bottom-width:1px;border-color:rgba(var(--ax-sys-color-border-lighter-surface));padding:calc(var(--spacing,.25rem) * 3);justify-content:space-between;align-items:center;display:flex}.ax-popup .ax-popup-header-container .ax-popup-header:where(.ax-dark,.ax-dark *){border-color:rgba(var(--ax-sys-color-border-dark-surface))}.ax-popup .ax-popup-header-container .ax-popup-header .ax-popup-title{font-size:var(--text-base,1rem);line-height:var(--tw-leading,var(--text-base--line-height, 1.5 ));--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500)}@media(min-width:48rem){.ax-popup .ax-popup-header-container .ax-popup-header .ax-popup-title{font-size:var(--text-lg,1.125rem);line-height:var(--tw-leading,var(--text-lg--line-height,calc(1.75 / 1.125)));--tw-leading:calc(var(--spacing,.25rem) * 7);line-height:calc(var(--spacing,.25rem) * 7)}}.ax-popup .ax-popup-wrapper{display:contents}.ax-popup .ax-popup-header-container.ax-popup-draggable{cursor:move}.ax-popup .ax-popup.ax-popup-dragging{-webkit-user-select:none;user-select:none}.ax-popup ax-footer{border-top-style:var(--tw-border-style);border-top-width:1px;border-color:rgba(var(--ax-sys-color-border-lighter-surface));background-color:rgba(var(--ax-sys-color-lighter-surface));padding:calc(var(--spacing,.25rem) * 3);--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);justify-content:space-between;align-items:center;display:flex}.ax-popup ax-footer:where(.ax-dark,.ax-dark *){border-color:rgba(var(--ax-sys-color-border-dark-surface));background-color:rgba(var(--ax-sys-color-dark-surface))}.ax-popup:focus{outline-style:var(--tw-outline-style);outline-offset:2px;outline-width:2px;outline-color:#0000}.ax-popup:focus-visible{border-color:rgba(var(--ax-sys-color-primary-surface))}.ax-popup .ax-popup-main-container{flex-direction:column;flex:1;display:flex;overflow:hidden}.ax-popup .ax-popup-main-container .ax-popup-body-container{background-color:rgba(var(--ax-sys-color-lightest-surface));flex:1;overflow:auto}.ax-popup .ax-popup-main-container .ax-popup-body-container:where(.ax-dark,.ax-dark *){background-color:rgba(var(--ax-sys-color-darkest-surface))}.ax-popup .ax-popup-main-container .ax-popup-footer-container{background-color:rgba(var(--ax-sys-color-lighter-surface))}.ax-popup .ax-popup-main-container .ax-popup-footer-container:where(.ax-dark,.ax-dark *){background-color:rgba(var(--ax-sys-color-dark-surface))}.ax-popup.ax-popup-full{width:100vw;max-height:calc(100 * var(--ax-vh));height:calc(100 * var(--ax-vh));border-radius:0!important}.ax-popup.ax-fit{width:fit-content!important}.ax-popup.ax-fit .ax-popup-body-container{max-height:100vh}.ax-popup.ax-fit .ax-popup-body-container>ng-component>div{width:fit-content!important}@media(min-width:320px)and (max-width:640px){.ax-popup.ax-popup-sm,.ax-popup.ax-popup-md,.ax-popup.ax-popup-lg{height:fit-content;width:93vw!important;max-height:calc(var(--ax-overlay-full-width) * var(--ax-vh))!important}:is(.ax-popup.ax-popup-sm,.ax-popup.ax-popup-md,.ax-popup.ax-popup-lg) .ax-popup-body-container>ng-component>div{width:100%}}@media(min-width:768px){.ax-popup.ax-popup-sm{width:55vw!important}.ax-popup.ax-popup-md{width:65vw!important}.ax-popup.ax-popup-lg{width:75vw!important}}@media(min-width:1280px){.ax-popup.ax-popup-sm{width:30vw!important}.ax-popup.ax-popup-md{width:50vw!important}.ax-popup.ax-popup-lg{width:85vw!important}}@media(min-width:1536px){.ax-popup.ax-popup-sm{width:25vw!important}.ax-popup.ax-popup-md{width:40vw!important}.ax-popup.ax-popup-lg{width:65vw!important}}}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-outline-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}\n/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */\n"] }]
264
+ }], propDecorators: { contentContainerRef: [{
265
+ type: ViewChild,
266
+ args: ['contentContainer', { read: ViewContainerRef, static: true }]
267
+ }], contentContainerEl: [{
268
+ type: ViewChild,
269
+ args: ['contentContainer', { static: true }]
270
+ }], __content__: [{ type: i0.Input, args: [{ isSignal: true, alias: "__content__", required: false }] }], __config__: [{ type: i0.Input, args: [{ isSignal: true, alias: "__config__", required: false }] }], __popupRef__: [{ type: i0.Input, args: [{ isSignal: true, alias: "__popupRef__", required: false }] }], __id__: [{ type: i0.Input, args: [{ isSignal: true, alias: "__id__", required: false }] }], onKeydownHandler: [{
271
+ type: HostListener,
272
+ args: ['keydown.escape']
273
+ }], onDragMove: [{
173
274
  type: HostListener,
174
- args: ['keydown.escape', ['$event']]
275
+ args: ['document:mousemove', ['$event']]
276
+ }], onDragEnd: [{
277
+ type: HostListener,
278
+ args: ['document:mouseup']
175
279
  }] } });
176
280
 
281
+ class AXPopupComponentBase {
282
+ constructor() {
283
+ this.__popup__ = input(...(ngDevMode ? [undefined, { debugName: "__popup__" }] : []));
284
+ }
285
+ close(data = null) {
286
+ this.__popup__().close(data);
287
+ }
288
+ setTitle(title) {
289
+ this.__popup__().setTitle(title);
290
+ }
291
+ bringToFront() {
292
+ this.__popup__().bringToFront();
293
+ }
294
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXPopupComponentBase, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
295
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.3", type: AXPopupComponentBase, isStandalone: true, inputs: { __popup__: { classPropertyName: "__popup__", publicName: "__popup__", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
296
+ }
297
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXPopupComponentBase, decorators: [{
298
+ type: Directive
299
+ }], propDecorators: { __popup__: [{ type: i0.Input, args: [{ isSignal: true, alias: "__popup__", required: false }] }] } });
300
+
177
301
  /**
178
302
  * This is a service which you can create popup with it
179
303
  *
@@ -181,10 +305,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
181
305
  */
182
306
  class AXPopupService {
183
307
  constructor() {
184
- this.dialog = inject(Dialog);
185
- this.#platform = inject(AXPlatform);
308
+ this.popupList = new Map();
309
+ this.overlayService = inject(AXOverlayService);
186
310
  }
187
- #platform;
188
311
  /**
189
312
  * @ignore
190
313
  */
@@ -205,63 +328,136 @@ class AXPopupService {
205
328
  else {
206
329
  config = Object.assign(config, arg2);
207
330
  }
208
- const dialogRef = this.dialog.open(AXPopupComponent, {
209
- data: Object.assign(config, { content: arg1 }),
210
- autoFocus: true,
211
- restoreFocus: true,
212
- closeOnNavigation: true,
213
- closeOnDestroy: true,
214
- hasBackdrop: config.hasBackdrop,
215
- backdropClass: config.backdropClass,
216
- disableClose: config.closeOnBackdropClick ? false : true,
217
- viewContainerRef: config.viewContainerRef,
218
- providers: config.providers,
219
- panelClass: config.panelClass ? config.panelClass : [this.#platform.isDark() ? 'ax-dark' : ''],
220
- direction: config.direction ? config.direction : AXHtmlUtil.isRtl() ? 'rtl' : 'ltr',
221
- });
222
331
  const promise = new AXComponentClosedPromise((resolve) => {
223
- dialogRef.closed.subscribe((d) => {
224
- if (resolve) {
225
- resolve({
226
- sender: d?.component,
227
- data: d?.data,
228
- });
229
- }
332
+ this.openInternal(arg1, config).then((ref) => {
333
+ ref.onClose.subscribe((data) => {
334
+ if (resolve) {
335
+ resolve({
336
+ sender: ref.componentInstance,
337
+ data: data,
338
+ });
339
+ }
340
+ });
230
341
  });
231
342
  });
232
343
  return promise;
233
344
  }
234
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPopupService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
235
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPopupService }); }
345
+ /**
346
+ * Opens a popup with the specified content and configuration.
347
+ * @param content - Component or template to display
348
+ * @param config - Configuration options for the popup
349
+ * @returns Promise<AXPopupRef> - Reference to the opened popup
350
+ */
351
+ async openInternal(content, config) {
352
+ const randomId = Math.floor(Math.random() * 100000000000);
353
+ const onClose = new Subject();
354
+ const returnRef = {
355
+ close: (data) => {
356
+ this.close(randomId, data);
357
+ },
358
+ setInputs: (values) => {
359
+ this.setInputs(randomId, values);
360
+ },
361
+ setTitle: (title) => {
362
+ this.setTitle(randomId, title);
363
+ },
364
+ bringToFront: () => {
365
+ this.bringToFront(randomId);
366
+ },
367
+ onClose,
368
+ };
369
+ // Build panel classes
370
+ const panelClasses = ['ax-popup-overlay'];
371
+ if (config.panelClass) {
372
+ panelClasses.push(...config.panelClass);
373
+ }
374
+ const ref = await this.overlayService.create(AXPopupComponent, {
375
+ backdrop: {
376
+ enabled: config.hasBackdrop ?? true,
377
+ background: true,
378
+ closeOnClick: config.closeOnBackdropClick ?? false,
379
+ },
380
+ panelClass: panelClasses,
381
+ inputs: {
382
+ __content__: content,
383
+ __config__: config,
384
+ __popupRef__: returnRef,
385
+ __id__: randomId,
386
+ },
387
+ });
388
+ this.popupList.set(randomId, { overlay: ref, popup: returnRef });
389
+ return returnRef;
390
+ }
391
+ /**
392
+ * Closes a popup by its ID.
393
+ * @param id - The popup ID to close
394
+ * @param data - Optional data to pass to the close event
395
+ */
396
+ close(id, data) {
397
+ const ref = this.popupList.get(id);
398
+ if (!ref)
399
+ return;
400
+ ref.popup.onClose.next(data);
401
+ ref.popup.onClose.complete();
402
+ ref.overlay.dispose();
403
+ this.popupList.delete(id);
404
+ }
405
+ /**
406
+ * Sets input values for a popup by its ID.
407
+ * @param id - The popup ID
408
+ * @param values - Object containing input values to set
409
+ */
410
+ setInputs(id, values) {
411
+ const ref = this.popupList.get(id)?.overlay.instance;
412
+ if (!ref)
413
+ return;
414
+ if (ref instanceof ComponentRef) {
415
+ const componentInstance = ref.instance;
416
+ componentInstance.setContentInputs(values);
417
+ }
418
+ }
419
+ /**
420
+ * Sets the title for a popup by its ID.
421
+ * @param id - The popup ID
422
+ * @param title - The new title
423
+ */
424
+ setTitle(id, title) {
425
+ const ref = this.popupList.get(id)?.overlay.instance;
426
+ if (!ref)
427
+ return;
428
+ if (ref instanceof ComponentRef) {
429
+ const componentInstance = ref.instance;
430
+ componentInstance.setTitle(title);
431
+ }
432
+ }
433
+ /**
434
+ * Brings a popup to the front of all other overlays.
435
+ * @param id - The popup ID to bring to front
436
+ */
437
+ bringToFront(id) {
438
+ const ref = this.popupList.get(id);
439
+ if (!ref)
440
+ return;
441
+ ref.overlay.bringToFront();
442
+ }
443
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXPopupService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
444
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXPopupService, providedIn: 'root' }); }
236
445
  }
237
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPopupService, decorators: [{
238
- type: Injectable
446
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXPopupService, decorators: [{
447
+ type: Injectable,
448
+ args: [{
449
+ providedIn: 'root',
450
+ }]
239
451
  }] });
240
452
 
241
453
  const COMPONENT = [AXPopupComponent];
242
- const MODULES = [
243
- CommonModule,
244
- AXCommonModule,
245
- DragDropModule,
246
- A11yModule,
247
- PortalModule,
248
- AXDecoratorModule,
249
- DialogModule,
250
- AXTranslationModule,
251
- ];
454
+ const MODULES = [CommonModule, AXCommonModule, AXDecoratorModule, AXTranslationModule];
252
455
  class AXPopupModule {
253
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPopupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
254
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: AXPopupModule, imports: [CommonModule,
255
- AXCommonModule,
256
- DragDropModule,
257
- A11yModule,
258
- PortalModule,
259
- AXDecoratorModule,
260
- DialogModule,
261
- AXTranslationModule, AXPopupComponent], exports: [AXPopupComponent] }); }
262
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPopupModule, providers: [AXPopupService], imports: [MODULES, COMPONENT] }); }
456
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXPopupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
457
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.1.3", ngImport: i0, type: AXPopupModule, imports: [CommonModule, AXCommonModule, AXDecoratorModule, AXTranslationModule, AXPopupComponent], exports: [AXPopupComponent] }); }
458
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXPopupModule, providers: [AXPopupService], imports: [MODULES, COMPONENT] }); }
263
459
  }
264
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPopupModule, decorators: [{
460
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXPopupModule, decorators: [{
265
461
  type: NgModule,
266
462
  args: [{
267
463
  imports: [...MODULES, ...COMPONENT],
@@ -274,5 +470,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
274
470
  * Generated bundle index. Do not edit.
275
471
  */
276
472
 
277
- export { AXPopupComponent, AXPopupModule, AXPopupService };
473
+ export { AXPopupComponent, AXPopupComponentBase, AXPopupModule, AXPopupService };
278
474
  //# sourceMappingURL=acorex-components-popup.mjs.map