@acorex/components 21.0.1-next.9 → 21.0.1-next.91

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 (343) hide show
  1. package/fab/README.md +3 -0
  2. package/fesm2022/acorex-components-accordion.mjs +19 -22
  3. package/fesm2022/acorex-components-accordion.mjs.map +1 -1
  4. package/fesm2022/acorex-components-action-sheet.mjs +170 -52
  5. package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
  6. package/fesm2022/acorex-components-alert.mjs +13 -13
  7. package/fesm2022/acorex-components-alert.mjs.map +1 -1
  8. package/fesm2022/acorex-components-aspect-ratio.mjs +3 -3
  9. package/fesm2022/acorex-components-aspect-ratio.mjs.map +1 -1
  10. package/fesm2022/acorex-components-audio-wave.mjs +11 -10
  11. package/fesm2022/acorex-components-audio-wave.mjs.map +1 -1
  12. package/fesm2022/acorex-components-autocomplete.mjs +9 -9
  13. package/fesm2022/acorex-components-autocomplete.mjs.map +1 -1
  14. package/fesm2022/acorex-components-avatar.mjs +12 -12
  15. package/fesm2022/acorex-components-avatar.mjs.map +1 -1
  16. package/fesm2022/acorex-components-badge.mjs +9 -9
  17. package/fesm2022/acorex-components-badge.mjs.map +1 -1
  18. package/fesm2022/acorex-components-bottom-navigation.mjs +11 -11
  19. package/fesm2022/acorex-components-bottom-navigation.mjs.map +1 -1
  20. package/fesm2022/acorex-components-breadcrumbs.mjs +11 -11
  21. package/fesm2022/acorex-components-breadcrumbs.mjs.map +1 -1
  22. package/fesm2022/acorex-components-button-group.mjs +39 -24
  23. package/fesm2022/acorex-components-button-group.mjs.map +1 -1
  24. package/fesm2022/acorex-components-button.mjs +20 -20
  25. package/fesm2022/acorex-components-button.mjs.map +1 -1
  26. package/fesm2022/acorex-components-calendar.mjs +17 -17
  27. package/fesm2022/acorex-components-calendar.mjs.map +1 -1
  28. package/fesm2022/acorex-components-check-box.mjs +10 -10
  29. package/fesm2022/acorex-components-check-box.mjs.map +1 -1
  30. package/fesm2022/acorex-components-chips.mjs +12 -14
  31. package/fesm2022/acorex-components-chips.mjs.map +1 -1
  32. package/fesm2022/acorex-components-circular-progress.mjs +12 -10
  33. package/fesm2022/acorex-components-circular-progress.mjs.map +1 -1
  34. package/fesm2022/acorex-components-code-editor.mjs +13 -13
  35. package/fesm2022/acorex-components-code-editor.mjs.map +1 -1
  36. package/fesm2022/acorex-components-color-box.mjs +9 -9
  37. package/fesm2022/acorex-components-color-box.mjs.map +1 -1
  38. package/fesm2022/acorex-components-color-palette.mjs +33 -38
  39. package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
  40. package/fesm2022/acorex-components-command.mjs +31 -14
  41. package/fesm2022/acorex-components-command.mjs.map +1 -1
  42. package/fesm2022/acorex-components-comment.mjs +94 -91
  43. package/fesm2022/acorex-components-comment.mjs.map +1 -1
  44. package/fesm2022/acorex-components-conversation.mjs +59 -59
  45. package/fesm2022/acorex-components-conversation.mjs.map +1 -1
  46. package/fesm2022/acorex-components-conversation2.mjs +5860 -4756
  47. package/fesm2022/acorex-components-conversation2.mjs.map +1 -1
  48. package/fesm2022/acorex-components-cron-job.mjs +48 -48
  49. package/fesm2022/acorex-components-cron-job.mjs.map +1 -1
  50. package/fesm2022/acorex-components-data-list.mjs +4 -4
  51. package/fesm2022/acorex-components-data-list.mjs.map +1 -1
  52. package/fesm2022/acorex-components-data-pager.mjs +33 -33
  53. package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
  54. package/fesm2022/acorex-components-data-table.mjs +211 -531
  55. package/fesm2022/acorex-components-data-table.mjs.map +1 -1
  56. package/fesm2022/acorex-components-datetime-box.mjs +9 -10
  57. package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
  58. package/fesm2022/acorex-components-datetime-input.mjs +12 -12
  59. package/fesm2022/acorex-components-datetime-input.mjs.map +1 -1
  60. package/fesm2022/acorex-components-datetime-picker.mjs +9 -9
  61. package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
  62. package/fesm2022/acorex-components-decorators.mjs +44 -37
  63. package/fesm2022/acorex-components-decorators.mjs.map +1 -1
  64. package/fesm2022/acorex-components-dialog.mjs +12 -12
  65. package/fesm2022/acorex-components-dialog.mjs.map +1 -1
  66. package/fesm2022/acorex-components-drawer.mjs +15 -16
  67. package/fesm2022/acorex-components-drawer.mjs.map +1 -1
  68. package/fesm2022/acorex-components-dropdown-button.mjs +19 -11
  69. package/fesm2022/acorex-components-dropdown-button.mjs.map +1 -1
  70. package/fesm2022/acorex-components-dropdown.mjs +21 -51
  71. package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
  72. package/fesm2022/acorex-components-editor.mjs +11 -11
  73. package/fesm2022/acorex-components-editor.mjs.map +1 -1
  74. package/fesm2022/acorex-components-fab.mjs +114 -0
  75. package/fesm2022/acorex-components-fab.mjs.map +1 -0
  76. package/fesm2022/acorex-components-flow-chart.mjs +20 -20
  77. package/fesm2022/acorex-components-flow-chart.mjs.map +1 -1
  78. package/fesm2022/acorex-components-form.mjs +49 -43
  79. package/fesm2022/acorex-components-form.mjs.map +1 -1
  80. package/fesm2022/acorex-components-grid-layout-builder.mjs +44 -23
  81. package/fesm2022/acorex-components-grid-layout-builder.mjs.map +1 -1
  82. package/fesm2022/acorex-components-image-editor.mjs +44 -44
  83. package/fesm2022/acorex-components-image-editor.mjs.map +1 -1
  84. package/fesm2022/acorex-components-image.mjs +9 -9
  85. package/fesm2022/acorex-components-image.mjs.map +1 -1
  86. package/fesm2022/acorex-components-json-viewer.mjs +8 -8
  87. package/fesm2022/acorex-components-json-viewer.mjs.map +1 -1
  88. package/fesm2022/acorex-components-kanban.mjs +19 -32
  89. package/fesm2022/acorex-components-kanban.mjs.map +1 -1
  90. package/fesm2022/acorex-components-kbd.mjs +29 -11
  91. package/fesm2022/acorex-components-kbd.mjs.map +1 -1
  92. package/fesm2022/acorex-components-label.mjs +9 -9
  93. package/fesm2022/acorex-components-label.mjs.map +1 -1
  94. package/fesm2022/acorex-components-list.mjs +69 -21
  95. package/fesm2022/acorex-components-list.mjs.map +1 -1
  96. package/fesm2022/acorex-components-loading-dialog.mjs +11 -11
  97. package/fesm2022/acorex-components-loading-dialog.mjs.map +1 -1
  98. package/fesm2022/acorex-components-loading.mjs +92 -52
  99. package/fesm2022/acorex-components-loading.mjs.map +1 -1
  100. package/fesm2022/acorex-components-map.mjs +14 -14
  101. package/fesm2022/acorex-components-map.mjs.map +1 -1
  102. package/fesm2022/acorex-components-media-viewer.mjs +294 -92
  103. package/fesm2022/acorex-components-media-viewer.mjs.map +1 -1
  104. package/fesm2022/acorex-components-menu.mjs +56 -36
  105. package/fesm2022/acorex-components-menu.mjs.map +1 -1
  106. package/fesm2022/{acorex-components-modal-acorex-components-modal-Bmoz9DL5.mjs → acorex-components-modal-acorex-components-modal-DWNqU6or.mjs} +23 -23
  107. package/fesm2022/acorex-components-modal-acorex-components-modal-DWNqU6or.mjs.map +1 -0
  108. package/fesm2022/acorex-components-modal-modal-content.component-DplJbJyk.mjs +214 -0
  109. package/fesm2022/acorex-components-modal-modal-content.component-DplJbJyk.mjs.map +1 -0
  110. package/fesm2022/acorex-components-modal.mjs +1 -1
  111. package/fesm2022/acorex-components-navbar.mjs +9 -9
  112. package/fesm2022/acorex-components-navbar.mjs.map +1 -1
  113. package/fesm2022/acorex-components-notification.mjs +28 -24
  114. package/fesm2022/acorex-components-notification.mjs.map +1 -1
  115. package/fesm2022/acorex-components-number-box.mjs +45 -26
  116. package/fesm2022/acorex-components-number-box.mjs.map +1 -1
  117. package/fesm2022/acorex-components-otp.mjs +10 -10
  118. package/fesm2022/acorex-components-otp.mjs.map +1 -1
  119. package/fesm2022/acorex-components-page.mjs +10 -10
  120. package/fesm2022/acorex-components-page.mjs.map +1 -1
  121. package/fesm2022/acorex-components-paint.mjs +55 -39
  122. package/fesm2022/acorex-components-paint.mjs.map +1 -1
  123. package/fesm2022/acorex-components-password-box.mjs +19 -15
  124. package/fesm2022/acorex-components-password-box.mjs.map +1 -1
  125. package/fesm2022/acorex-components-pdf-reader.mjs +8 -8
  126. package/fesm2022/acorex-components-pdf-reader.mjs.map +1 -1
  127. package/fesm2022/acorex-components-phone-box.mjs +88 -41
  128. package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
  129. package/fesm2022/acorex-components-picker.mjs +24 -23
  130. package/fesm2022/acorex-components-picker.mjs.map +1 -1
  131. package/fesm2022/acorex-components-popover.mjs +132 -40
  132. package/fesm2022/acorex-components-popover.mjs.map +1 -1
  133. package/fesm2022/acorex-components-popup.mjs +94 -101
  134. package/fesm2022/acorex-components-popup.mjs.map +1 -1
  135. package/fesm2022/acorex-components-progress-bar.mjs +11 -9
  136. package/fesm2022/acorex-components-progress-bar.mjs.map +1 -1
  137. package/fesm2022/acorex-components-qrcode.mjs +9 -9
  138. package/fesm2022/acorex-components-qrcode.mjs.map +1 -1
  139. package/fesm2022/acorex-components-query-builder.mjs +8 -8
  140. package/fesm2022/acorex-components-query-builder.mjs.map +1 -1
  141. package/fesm2022/acorex-components-radio.mjs +10 -9
  142. package/fesm2022/acorex-components-radio.mjs.map +1 -1
  143. package/fesm2022/acorex-components-rail-navigation.mjs +38 -36
  144. package/fesm2022/acorex-components-rail-navigation.mjs.map +1 -1
  145. package/fesm2022/acorex-components-range-slider.mjs +10 -10
  146. package/fesm2022/acorex-components-range-slider.mjs.map +1 -1
  147. package/fesm2022/acorex-components-rate-picker.mjs +20 -35
  148. package/fesm2022/acorex-components-rate-picker.mjs.map +1 -1
  149. package/fesm2022/acorex-components-rest-api-generator.mjs +27 -27
  150. package/fesm2022/acorex-components-rest-api-generator.mjs.map +1 -1
  151. package/fesm2022/acorex-components-result.mjs +8 -8
  152. package/fesm2022/acorex-components-result.mjs.map +1 -1
  153. package/fesm2022/acorex-components-routing-progress.mjs +8 -8
  154. package/fesm2022/acorex-components-routing-progress.mjs.map +1 -1
  155. package/fesm2022/acorex-components-rrule.mjs +9 -9
  156. package/fesm2022/acorex-components-rrule.mjs.map +1 -1
  157. package/fesm2022/acorex-components-scheduler-picker.mjs +158 -164
  158. package/fesm2022/acorex-components-scheduler-picker.mjs.map +1 -1
  159. package/fesm2022/acorex-components-scheduler.mjs +159 -83
  160. package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
  161. package/fesm2022/acorex-components-search-box.mjs +16 -10
  162. package/fesm2022/acorex-components-search-box.mjs.map +1 -1
  163. package/fesm2022/acorex-components-select-box.mjs +28 -9
  164. package/fesm2022/acorex-components-select-box.mjs.map +1 -1
  165. package/fesm2022/acorex-components-selection-list-2.mjs +11 -11
  166. package/fesm2022/acorex-components-selection-list-2.mjs.map +1 -1
  167. package/fesm2022/acorex-components-selection-list.mjs +9 -9
  168. package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
  169. package/fesm2022/acorex-components-side-menu.mjs +81 -24
  170. package/fesm2022/acorex-components-side-menu.mjs.map +1 -1
  171. package/fesm2022/acorex-components-skeleton.mjs +8 -8
  172. package/fesm2022/acorex-components-skeleton.mjs.map +1 -1
  173. package/fesm2022/acorex-components-slider.mjs +12 -12
  174. package/fesm2022/acorex-components-slider.mjs.map +1 -1
  175. package/fesm2022/acorex-components-sliding-item.mjs +16 -16
  176. package/fesm2022/acorex-components-sliding-item.mjs.map +1 -1
  177. package/fesm2022/acorex-components-step-wizard.mjs +14 -14
  178. package/fesm2022/acorex-components-step-wizard.mjs.map +1 -1
  179. package/fesm2022/acorex-components-switch.mjs +14 -14
  180. package/fesm2022/acorex-components-switch.mjs.map +1 -1
  181. package/fesm2022/acorex-components-tabs.mjs +15 -15
  182. package/fesm2022/acorex-components-tabs.mjs.map +1 -1
  183. package/fesm2022/acorex-components-tag-box.mjs +9 -9
  184. package/fesm2022/acorex-components-tag-box.mjs.map +1 -1
  185. package/fesm2022/acorex-components-tag.mjs +9 -9
  186. package/fesm2022/acorex-components-tag.mjs.map +1 -1
  187. package/fesm2022/acorex-components-text-area.mjs +9 -9
  188. package/fesm2022/acorex-components-text-area.mjs.map +1 -1
  189. package/fesm2022/acorex-components-text-box.mjs +51 -129
  190. package/fesm2022/acorex-components-text-box.mjs.map +1 -1
  191. package/fesm2022/acorex-components-time-duration.mjs +40 -25
  192. package/fesm2022/acorex-components-time-duration.mjs.map +1 -1
  193. package/fesm2022/acorex-components-time-line.mjs +12 -12
  194. package/fesm2022/acorex-components-time-line.mjs.map +1 -1
  195. package/fesm2022/acorex-components-toast.mjs +12 -12
  196. package/fesm2022/acorex-components-toast.mjs.map +1 -1
  197. package/fesm2022/acorex-components-toolbar.mjs +9 -9
  198. package/fesm2022/acorex-components-toolbar.mjs.map +1 -1
  199. package/fesm2022/acorex-components-tooltip.mjs +76 -64
  200. package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
  201. package/fesm2022/acorex-components-tree-view.mjs +32 -11
  202. package/fesm2022/acorex-components-tree-view.mjs.map +1 -1
  203. package/fesm2022/acorex-components-uploader.mjs +16 -16
  204. package/fesm2022/acorex-components-uploader.mjs.map +1 -1
  205. package/fesm2022/acorex-components-video-player.mjs +8 -8
  206. package/fesm2022/acorex-components-video-player.mjs.map +1 -1
  207. package/fesm2022/acorex-components-wysiwyg.mjs +43 -43
  208. package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
  209. package/fesm2022/acorex-components.mjs.map +1 -1
  210. package/package.json +146 -175
  211. package/{accordion/index.d.ts → types/acorex-components-accordion.d.ts} +7 -4
  212. package/{action-sheet/index.d.ts → types/acorex-components-action-sheet.d.ts} +91 -31
  213. package/{button-group/index.d.ts → types/acorex-components-button-group.d.ts} +14 -12
  214. package/{button/index.d.ts → types/acorex-components-button.d.ts} +3 -3
  215. package/{calendar/index.d.ts → types/acorex-components-calendar.d.ts} +1 -1
  216. package/{check-box/index.d.ts → types/acorex-components-check-box.d.ts} +1 -1
  217. package/{chips/index.d.ts → types/acorex-components-chips.d.ts} +3 -8
  218. package/{code-editor/index.d.ts → types/acorex-components-code-editor.d.ts} +1 -1
  219. package/{color-palette/index.d.ts → types/acorex-components-color-palette.d.ts} +1 -2
  220. package/{command/index.d.ts → types/acorex-components-command.d.ts} +35 -13
  221. package/{comment/index.d.ts → types/acorex-components-comment.d.ts} +23 -22
  222. package/{conversation/index.d.ts → types/acorex-components-conversation.d.ts} +1 -1
  223. package/{conversation2/index.d.ts → types/acorex-components-conversation2.d.ts} +3183 -3079
  224. package/{data-pager/index.d.ts → types/acorex-components-data-pager.d.ts} +1 -1
  225. package/{data-table/index.d.ts → types/acorex-components-data-table.d.ts} +48 -258
  226. package/{datetime-input/index.d.ts → types/acorex-components-datetime-input.d.ts} +1 -1
  227. package/{dropdown-button/index.d.ts → types/acorex-components-dropdown-button.d.ts} +4 -2
  228. package/{dropdown/index.d.ts → types/acorex-components-dropdown.d.ts} +2 -10
  229. package/types/acorex-components-fab.d.ts +50 -0
  230. package/{form/index.d.ts → types/acorex-components-form.d.ts} +25 -24
  231. package/{grid-layout-builder/index.d.ts → types/acorex-components-grid-layout-builder.d.ts} +16 -2
  232. package/{kanban/index.d.ts → types/acorex-components-kanban.d.ts} +2 -1
  233. package/types/acorex-components-kbd.d.ts +29 -0
  234. package/{list/index.d.ts → types/acorex-components-list.d.ts} +24 -2
  235. package/{loading/index.d.ts → types/acorex-components-loading.d.ts} +4 -2
  236. package/types/acorex-components-media-viewer.d.ts +184 -0
  237. package/{menu/index.d.ts → types/acorex-components-menu.d.ts} +9 -7
  238. package/{number-box/index.d.ts → types/acorex-components-number-box.d.ts} +3 -0
  239. package/{otp/index.d.ts → types/acorex-components-otp.d.ts} +1 -1
  240. package/{paint/index.d.ts → types/acorex-components-paint.d.ts} +7 -6
  241. package/{password-box/index.d.ts → types/acorex-components-password-box.d.ts} +2 -1
  242. package/{phone-box/index.d.ts → types/acorex-components-phone-box.d.ts} +13 -3
  243. package/{popover/index.d.ts → types/acorex-components-popover.d.ts} +28 -11
  244. package/{popup/index.d.ts → types/acorex-components-popup.d.ts} +39 -42
  245. package/{radio/index.d.ts → types/acorex-components-radio.d.ts} +1 -1
  246. package/{rate-picker/index.d.ts → types/acorex-components-rate-picker.d.ts} +5 -15
  247. package/{scheduler-picker/index.d.ts → types/acorex-components-scheduler-picker.d.ts} +82 -81
  248. package/{scheduler/index.d.ts → types/acorex-components-scheduler.d.ts} +46 -23
  249. package/{select-box/index.d.ts → types/acorex-components-select-box.d.ts} +8 -7
  250. package/{side-menu/index.d.ts → types/acorex-components-side-menu.d.ts} +10 -3
  251. package/{slider/index.d.ts → types/acorex-components-slider.d.ts} +2 -2
  252. package/{tabs/index.d.ts → types/acorex-components-tabs.d.ts} +1 -1
  253. package/{tag/index.d.ts → types/acorex-components-tag.d.ts} +3 -3
  254. package/types/acorex-components-text-box.d.ts +79 -0
  255. package/{time-duration/index.d.ts → types/acorex-components-time-duration.d.ts} +7 -5
  256. package/{tooltip/index.d.ts → types/acorex-components-tooltip.d.ts} +5 -7
  257. package/{tree-view/index.d.ts → types/acorex-components-tree-view.d.ts} +17 -0
  258. package/collapse/README.md +0 -3
  259. package/collapse/index.d.ts +0 -174
  260. package/drawer-legacy/README.md +0 -3
  261. package/drawer-legacy/index.d.ts +0 -86
  262. package/fesm2022/acorex-components-collapse.mjs +0 -366
  263. package/fesm2022/acorex-components-collapse.mjs.map +0 -1
  264. package/fesm2022/acorex-components-drawer-legacy.mjs +0 -218
  265. package/fesm2022/acorex-components-drawer-legacy.mjs.map +0 -1
  266. package/fesm2022/acorex-components-file-explorer.mjs +0 -307
  267. package/fesm2022/acorex-components-file-explorer.mjs.map +0 -1
  268. package/fesm2022/acorex-components-modal-acorex-components-modal-Bmoz9DL5.mjs.map +0 -1
  269. package/fesm2022/acorex-components-modal-modal-content.component-CSJU1vRi.mjs +0 -212
  270. package/fesm2022/acorex-components-modal-modal-content.component-CSJU1vRi.mjs.map +0 -1
  271. package/fesm2022/acorex-components-number-box-legacy.mjs +0 -412
  272. package/fesm2022/acorex-components-number-box-legacy.mjs.map +0 -1
  273. package/fesm2022/acorex-components-scss.mjs +0 -22
  274. package/fesm2022/acorex-components-scss.mjs.map +0 -1
  275. package/fesm2022/acorex-components-tree-view-legacy.mjs +0 -511
  276. package/fesm2022/acorex-components-tree-view-legacy.mjs.map +0 -1
  277. package/file-explorer/README.md +0 -3
  278. package/file-explorer/index.d.ts +0 -103
  279. package/kbd/index.d.ts +0 -23
  280. package/media-viewer/index.d.ts +0 -145
  281. package/number-box-legacy/README.md +0 -3
  282. package/number-box-legacy/index.d.ts +0 -191
  283. package/scss/README.md +0 -3
  284. package/scss/index.d.ts +0 -10
  285. package/text-box/index.d.ts +0 -95
  286. package/tree-view-legacy/README.md +0 -3
  287. package/tree-view-legacy/index.d.ts +0 -184
  288. /package/{alert/index.d.ts → types/acorex-components-alert.d.ts} +0 -0
  289. /package/{aspect-ratio/index.d.ts → types/acorex-components-aspect-ratio.d.ts} +0 -0
  290. /package/{audio-wave/index.d.ts → types/acorex-components-audio-wave.d.ts} +0 -0
  291. /package/{autocomplete/index.d.ts → types/acorex-components-autocomplete.d.ts} +0 -0
  292. /package/{avatar/index.d.ts → types/acorex-components-avatar.d.ts} +0 -0
  293. /package/{badge/index.d.ts → types/acorex-components-badge.d.ts} +0 -0
  294. /package/{bottom-navigation/index.d.ts → types/acorex-components-bottom-navigation.d.ts} +0 -0
  295. /package/{breadcrumbs/index.d.ts → types/acorex-components-breadcrumbs.d.ts} +0 -0
  296. /package/{circular-progress/index.d.ts → types/acorex-components-circular-progress.d.ts} +0 -0
  297. /package/{color-box/index.d.ts → types/acorex-components-color-box.d.ts} +0 -0
  298. /package/{cron-job/index.d.ts → types/acorex-components-cron-job.d.ts} +0 -0
  299. /package/{data-list/index.d.ts → types/acorex-components-data-list.d.ts} +0 -0
  300. /package/{datetime-box/index.d.ts → types/acorex-components-datetime-box.d.ts} +0 -0
  301. /package/{datetime-picker/index.d.ts → types/acorex-components-datetime-picker.d.ts} +0 -0
  302. /package/{decorators/index.d.ts → types/acorex-components-decorators.d.ts} +0 -0
  303. /package/{dialog/index.d.ts → types/acorex-components-dialog.d.ts} +0 -0
  304. /package/{drawer/index.d.ts → types/acorex-components-drawer.d.ts} +0 -0
  305. /package/{editor/index.d.ts → types/acorex-components-editor.d.ts} +0 -0
  306. /package/{flow-chart/index.d.ts → types/acorex-components-flow-chart.d.ts} +0 -0
  307. /package/{image-editor/index.d.ts → types/acorex-components-image-editor.d.ts} +0 -0
  308. /package/{image/index.d.ts → types/acorex-components-image.d.ts} +0 -0
  309. /package/{json-viewer/index.d.ts → types/acorex-components-json-viewer.d.ts} +0 -0
  310. /package/{label/index.d.ts → types/acorex-components-label.d.ts} +0 -0
  311. /package/{loading-dialog/index.d.ts → types/acorex-components-loading-dialog.d.ts} +0 -0
  312. /package/{map/index.d.ts → types/acorex-components-map.d.ts} +0 -0
  313. /package/{modal/index.d.ts → types/acorex-components-modal.d.ts} +0 -0
  314. /package/{navbar/index.d.ts → types/acorex-components-navbar.d.ts} +0 -0
  315. /package/{notification/index.d.ts → types/acorex-components-notification.d.ts} +0 -0
  316. /package/{page/index.d.ts → types/acorex-components-page.d.ts} +0 -0
  317. /package/{pdf-reader/index.d.ts → types/acorex-components-pdf-reader.d.ts} +0 -0
  318. /package/{picker/index.d.ts → types/acorex-components-picker.d.ts} +0 -0
  319. /package/{progress-bar/index.d.ts → types/acorex-components-progress-bar.d.ts} +0 -0
  320. /package/{qrcode/index.d.ts → types/acorex-components-qrcode.d.ts} +0 -0
  321. /package/{query-builder/index.d.ts → types/acorex-components-query-builder.d.ts} +0 -0
  322. /package/{rail-navigation/index.d.ts → types/acorex-components-rail-navigation.d.ts} +0 -0
  323. /package/{range-slider/index.d.ts → types/acorex-components-range-slider.d.ts} +0 -0
  324. /package/{rest-api-generator/index.d.ts → types/acorex-components-rest-api-generator.d.ts} +0 -0
  325. /package/{result/index.d.ts → types/acorex-components-result.d.ts} +0 -0
  326. /package/{routing-progress/index.d.ts → types/acorex-components-routing-progress.d.ts} +0 -0
  327. /package/{rrule/index.d.ts → types/acorex-components-rrule.d.ts} +0 -0
  328. /package/{search-box/index.d.ts → types/acorex-components-search-box.d.ts} +0 -0
  329. /package/{selection-list-2/index.d.ts → types/acorex-components-selection-list-2.d.ts} +0 -0
  330. /package/{selection-list/index.d.ts → types/acorex-components-selection-list.d.ts} +0 -0
  331. /package/{skeleton/index.d.ts → types/acorex-components-skeleton.d.ts} +0 -0
  332. /package/{sliding-item/index.d.ts → types/acorex-components-sliding-item.d.ts} +0 -0
  333. /package/{step-wizard/index.d.ts → types/acorex-components-step-wizard.d.ts} +0 -0
  334. /package/{switch/index.d.ts → types/acorex-components-switch.d.ts} +0 -0
  335. /package/{tag-box/index.d.ts → types/acorex-components-tag-box.d.ts} +0 -0
  336. /package/{text-area/index.d.ts → types/acorex-components-text-area.d.ts} +0 -0
  337. /package/{time-line/index.d.ts → types/acorex-components-time-line.d.ts} +0 -0
  338. /package/{toast/index.d.ts → types/acorex-components-toast.d.ts} +0 -0
  339. /package/{toolbar/index.d.ts → types/acorex-components-toolbar.d.ts} +0 -0
  340. /package/{uploader/index.d.ts → types/acorex-components-uploader.d.ts} +0 -0
  341. /package/{video-player/index.d.ts → types/acorex-components-video-player.d.ts} +0 -0
  342. /package/{wysiwyg/index.d.ts → types/acorex-components-wysiwyg.d.ts} +0 -0
  343. /package/{index.d.ts → types/acorex-components.d.ts} +0 -0
@@ -1,14 +1,15 @@
1
- import { AXOverlayService } from '@acorex/cdk/overlay';
2
- import * as i0 from '@angular/core';
3
- import { inject, NgZone, DOCUMENT, input, signal, TemplateRef, ViewContainerRef, HostListener, ViewChild, ViewEncapsulation, ChangeDetectionStrategy, Component, ComponentRef, Injectable, Directive, NgModule } from '@angular/core';
4
- import { Subject } from 'rxjs';
5
1
  import { AXPlatform } from '@acorex/core/platform';
2
+ import * as i0 from '@angular/core';
3
+ import { inject, NgZone, input, signal, TemplateRef, ViewContainerRef, HostListener, ViewChild, ViewEncapsulation, ChangeDetectionStrategy, Component, Directive, ComponentRef, Injectable, NgModule } from '@angular/core';
6
4
  import { MXBaseComponent, AXClosableComponent, AXComponent, AXComponentClosedPromise, AXCommonModule } from '@acorex/cdk/common';
5
+ import { AXFocusTrapDirective } from '@acorex/cdk/focus-trap';
7
6
  import { AXDecoratorCloseButtonComponent, AXDecoratorModule } from '@acorex/components/decorators';
8
7
  import { AXLoadingService } from '@acorex/components/loading';
9
8
  import { AXComponentService } from '@acorex/core/components';
10
9
  import { AXTranslatorPipe, AXTranslationModule } from '@acorex/core/translation';
11
10
  import { AsyncPipe, CommonModule } from '@angular/common';
11
+ import { AXOverlayService } from '@acorex/cdk/overlay';
12
+ import { Subject } from 'rxjs';
12
13
 
13
14
  /**
14
15
  * The Popup is a component which displays content in a dialog overlay
@@ -19,7 +20,6 @@ class AXPopupComponent extends MXBaseComponent {
19
20
  constructor() {
20
21
  super(...arguments);
21
22
  this._zone = inject(NgZone);
22
- this._document = inject(DOCUMENT);
23
23
  this.loadingService = inject(AXLoadingService);
24
24
  this._platform = inject(AXPlatform);
25
25
  this.componentService = inject(AXComponentService);
@@ -80,21 +80,27 @@ class AXPopupComponent extends MXBaseComponent {
80
80
  }
81
81
  else if (typeof content === 'function') {
82
82
  // Render component
83
- const componentRef = await this.componentService.createFromComponent(content);
83
+ const componentRef = this.componentService.createFromComponent(content);
84
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
+ }
85
90
  // Get component input definitions to check before setting inputs
86
91
  const inputDefs = componentRef.componentType?.ɵcmp
87
92
  ?.inputs;
88
93
  // Set data inputs (only if the component has the input defined)
89
94
  if (config?.data && typeof config.data === 'object') {
90
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]) => {
91
101
  if (inputDefs && key in inputDefs) {
92
102
  componentRef.setInput(key, value);
93
103
  }
94
- else {
95
- // Fallback: set as property directly on the instance
96
- componentRef.instance[key] = value;
97
- }
98
104
  });
99
105
  }
100
106
  // Set popup reference (only if the component has this input)
@@ -119,10 +125,8 @@ class AXPopupComponent extends MXBaseComponent {
119
125
  this._zone.runOutsideAngular(() => {
120
126
  setTimeout(() => {
121
127
  const body = this.getHostElement().querySelector('.ax-popup-body-container');
122
- if (!body)
123
- return;
124
128
  const content = body.children[0];
125
- if (!content)
129
+ if (!content || !body)
126
130
  return;
127
131
  const popHeader = this.getHostElement().querySelector('.ax-popup-header-container');
128
132
  const popFooter = this.getHostElement().querySelector('.ax-popup-footer-container');
@@ -245,18 +249,18 @@ class AXPopupComponent extends MXBaseComponent {
245
249
  onDragEnd() {
246
250
  this.isDragging.set(false);
247
251
  }
248
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPopupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
249
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", 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: [
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: [
250
254
  { provide: AXClosableComponent, useExisting: AXPopupComponent },
251
255
  { provide: AXComponent, useExisting: AXPopupComponent },
252
- ], 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\">\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: [":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-wrapper{display:contents}.ax-popup-header-container.ax-popup-draggable{cursor:move}.ax-popup.ax-popup-dragging{-webkit-user-select:none;user-select:none}.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: "component", type: AXDecoratorCloseButtonComponent, selector: "ax-close-button", inputs: ["closeAll", "icon"] }, { 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 }); }
253
257
  }
254
- 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: [{
255
259
  type: Component,
256
260
  args: [{ selector: 'ax-popup', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [
257
261
  { provide: AXClosableComponent, useExisting: AXPopupComponent },
258
262
  { provide: AXComponent, useExisting: AXPopupComponent },
259
- ], imports: [AXDecoratorCloseButtonComponent, AsyncPipe, AXTranslatorPipe], template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\">\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: [":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-wrapper{display:contents}.ax-popup-header-container.ax-popup-draggable{cursor:move}.ax-popup.ax-popup-dragging{-webkit-user-select:none;user-select:none}.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"] }]
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"] }]
260
264
  }], propDecorators: { contentContainerRef: [{
261
265
  type: ViewChild,
262
266
  args: ['contentContainer', { read: ViewContainerRef, static: true }]
@@ -274,18 +278,77 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
274
278
  args: ['document:mouseup']
275
279
  }] } });
276
280
 
277
- class AXPopupStateService {
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
+
301
+ /**
302
+ * This is a service which you can create popup with it
303
+ *
304
+ * @category Components
305
+ */
306
+ class AXPopupService {
278
307
  constructor() {
279
308
  this.popupList = new Map();
280
309
  this.overlayService = inject(AXOverlayService);
281
310
  }
311
+ /**
312
+ * @ignore
313
+ */
314
+ open(arg1, arg2) {
315
+ let config = {
316
+ closeButton: true,
317
+ header: true,
318
+ size: 'md',
319
+ maximizable: false,
320
+ draggable: true,
321
+ hasBackdrop: true,
322
+ closeOnBackdropClick: false,
323
+ data: {},
324
+ };
325
+ if (typeof arg2 === 'string') {
326
+ config.title = arg2;
327
+ }
328
+ else {
329
+ config = Object.assign(config, arg2);
330
+ }
331
+ const promise = new AXComponentClosedPromise((resolve) => {
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
+ });
341
+ });
342
+ });
343
+ return promise;
344
+ }
282
345
  /**
283
346
  * Opens a popup with the specified content and configuration.
284
347
  * @param content - Component or template to display
285
348
  * @param config - Configuration options for the popup
286
349
  * @returns Promise<AXPopupRef> - Reference to the opened popup
287
350
  */
288
- async open(content, config) {
351
+ async openInternal(content, config) {
289
352
  const randomId = Math.floor(Math.random() * 100000000000);
290
353
  const onClose = new Subject();
291
354
  const returnRef = {
@@ -330,7 +393,7 @@ class AXPopupStateService {
330
393
  * @param id - The popup ID to close
331
394
  * @param data - Optional data to pass to the close event
332
395
  */
333
- async close(id, data) {
396
+ close(id, data) {
334
397
  const ref = this.popupList.get(id);
335
398
  if (!ref)
336
399
  return;
@@ -344,7 +407,7 @@ class AXPopupStateService {
344
407
  * @param id - The popup ID
345
408
  * @param values - Object containing input values to set
346
409
  */
347
- async setInputs(id, values) {
410
+ setInputs(id, values) {
348
411
  const ref = this.popupList.get(id)?.overlay.instance;
349
412
  if (!ref)
350
413
  return;
@@ -358,7 +421,7 @@ class AXPopupStateService {
358
421
  * @param id - The popup ID
359
422
  * @param title - The new title
360
423
  */
361
- async setTitle(id, title) {
424
+ setTitle(id, title) {
362
425
  const ref = this.popupList.get(id)?.overlay.instance;
363
426
  if (!ref)
364
427
  return;
@@ -377,94 +440,24 @@ class AXPopupStateService {
377
440
  return;
378
441
  ref.overlay.bringToFront();
379
442
  }
380
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPopupStateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
381
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPopupStateService, providedIn: 'root' }); }
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' }); }
382
445
  }
383
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPopupStateService, decorators: [{
446
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXPopupService, decorators: [{
384
447
  type: Injectable,
385
448
  args: [{
386
449
  providedIn: 'root',
387
450
  }]
388
451
  }] });
389
452
 
390
- class AXPopupComponentBase {
391
- constructor() {
392
- this.__popup__ = input(...(ngDevMode ? [undefined, { debugName: "__popup__" }] : []));
393
- }
394
- close(data = null) {
395
- this.__popup__().close(data);
396
- }
397
- setTitle(title) {
398
- this.__popup__().setTitle(title);
399
- }
400
- bringToFront() {
401
- this.__popup__().bringToFront();
402
- }
403
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPopupComponentBase, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
404
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.15", type: AXPopupComponentBase, isStandalone: true, inputs: { __popup__: { classPropertyName: "__popup__", publicName: "__popup__", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
405
- }
406
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPopupComponentBase, decorators: [{
407
- type: Directive
408
- }], propDecorators: { __popup__: [{ type: i0.Input, args: [{ isSignal: true, alias: "__popup__", required: false }] }] } });
409
-
410
- /**
411
- * This is a service which you can create popup with it
412
- *
413
- * @category Components
414
- */
415
- class AXPopupService {
416
- constructor() {
417
- this.stateService = inject(AXPopupStateService);
418
- }
419
- /**
420
- * @ignore
421
- */
422
- open(arg1, arg2) {
423
- let config = {
424
- closeButton: true,
425
- header: true,
426
- size: 'md',
427
- maximizable: false,
428
- draggable: true,
429
- hasBackdrop: true,
430
- closeOnBackdropClick: false,
431
- data: {},
432
- };
433
- if (typeof arg2 === 'string') {
434
- config.title = arg2;
435
- }
436
- else {
437
- config = Object.assign(config, arg2);
438
- }
439
- const promise = new AXComponentClosedPromise((resolve) => {
440
- this.stateService.open(arg1, config).then((ref) => {
441
- ref.onClose.subscribe((data) => {
442
- if (resolve) {
443
- resolve({
444
- sender: null,
445
- data: data,
446
- });
447
- }
448
- });
449
- });
450
- });
451
- return promise;
452
- }
453
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPopupService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
454
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPopupService }); }
455
- }
456
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPopupService, decorators: [{
457
- type: Injectable
458
- }] });
459
-
460
453
  const COMPONENT = [AXPopupComponent];
461
454
  const MODULES = [CommonModule, AXCommonModule, AXDecoratorModule, AXTranslationModule];
462
455
  class AXPopupModule {
463
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPopupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
464
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: AXPopupModule, imports: [CommonModule, AXCommonModule, AXDecoratorModule, AXTranslationModule, AXPopupComponent], exports: [AXPopupComponent] }); }
465
- 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] }); }
466
459
  }
467
- 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: [{
468
461
  type: NgModule,
469
462
  args: [{
470
463
  imports: [...MODULES, ...COMPONENT],
@@ -477,5 +470,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
477
470
  * Generated bundle index. Do not edit.
478
471
  */
479
472
 
480
- export { AXPopupComponent, AXPopupComponentBase, AXPopupModule, AXPopupService, AXPopupStateService };
473
+ export { AXPopupComponent, AXPopupComponentBase, AXPopupModule, AXPopupService };
481
474
  //# sourceMappingURL=acorex-components-popup.mjs.map