@acorex/components 21.0.1-next.7 → 21.0.1-next.71

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 (337) hide show
  1. package/conversation2/README.md +71 -31
  2. package/fab/README.md +3 -0
  3. package/fesm2022/acorex-components-accordion.mjs +18 -16
  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 +9 -9
  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 +8 -8
  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 +11 -11
  16. package/fesm2022/acorex-components-avatar.mjs.map +1 -1
  17. package/fesm2022/acorex-components-badge.mjs +8 -8
  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 +35 -24
  24. package/fesm2022/acorex-components-button-group.mjs.map +1 -1
  25. package/fesm2022/acorex-components-button.mjs +17 -17
  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 +9 -9
  30. package/fesm2022/acorex-components-check-box.mjs.map +1 -1
  31. package/fesm2022/acorex-components-chips.mjs +8 -8
  32. package/fesm2022/acorex-components-chips.mjs.map +1 -1
  33. package/fesm2022/acorex-components-circular-progress.mjs +8 -8
  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 +10 -10
  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 +50 -50
  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 +111 -42
  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 +32 -32
  66. package/fesm2022/acorex-components-decorators.mjs.map +1 -1
  67. package/fesm2022/acorex-components-dialog.mjs +76 -56
  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 +14 -14
  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 +25 -56
  76. package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
  77. package/fesm2022/acorex-components-editor.mjs +9 -9
  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 +36 -38
  86. package/fesm2022/acorex-components-form.mjs.map +1 -1
  87. package/fesm2022/acorex-components-grid-layout-builder.mjs +42 -20
  88. package/fesm2022/acorex-components-grid-layout-builder.mjs.map +1 -1
  89. package/fesm2022/acorex-components-image-editor.mjs +42 -42
  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 +15 -30
  96. package/fesm2022/acorex-components-kanban.mjs.map +1 -1
  97. package/fesm2022/acorex-components-kbd.mjs +9 -9
  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 +91 -51
  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 +77 -36
  112. package/fesm2022/acorex-components-menu.mjs.map +1 -1
  113. package/fesm2022/{acorex-components-modal-acorex-components-modal-BnUdtPke.mjs → acorex-components-modal-acorex-components-modal-Bjw8EpLk.mjs} +48 -24
  114. package/fesm2022/acorex-components-modal-acorex-components-modal-Bjw8EpLk.mjs.map +1 -0
  115. package/fesm2022/{acorex-components-modal-modal-content.component-Cgq-wx_m.mjs → acorex-components-modal-modal-content.component-A2h_OC6e.mjs} +8 -8
  116. package/fesm2022/acorex-components-modal-modal-content.component-A2h_OC6e.mjs.map +1 -0
  117. package/fesm2022/acorex-components-modal.mjs +1 -1
  118. package/fesm2022/acorex-components-navbar.mjs +8 -8
  119. package/fesm2022/acorex-components-navbar.mjs.map +1 -1
  120. package/fesm2022/acorex-components-notification.mjs +383 -255
  121. package/fesm2022/acorex-components-notification.mjs.map +1 -1
  122. package/fesm2022/acorex-components-number-box-legacy.mjs +7 -7
  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 +49 -28
  131. package/fesm2022/acorex-components-paint.mjs.map +1 -1
  132. package/fesm2022/acorex-components-password-box.mjs +11 -11
  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 +8 -8
  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 +14 -14
  153. package/fesm2022/acorex-components-rail-navigation.mjs.map +1 -1
  154. package/fesm2022/acorex-components-range-slider.mjs +9 -9
  155. package/fesm2022/acorex-components-range-slider.mjs.map +1 -1
  156. package/fesm2022/acorex-components-rate-picker.mjs +9 -9
  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 +54 -54
  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 +7 -7
  173. package/fesm2022/acorex-components-search-box.mjs.map +1 -1
  174. package/fesm2022/acorex-components-select-box.mjs +9 -9
  175. package/fesm2022/acorex-components-select-box.mjs.map +1 -1
  176. package/fesm2022/acorex-components-selection-list-2.mjs +9 -9
  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 +28 -20
  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 +7 -7
  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 +12 -12
  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 +8 -8
  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 +241 -133
  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 +76 -64
  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 +7 -7
  219. package/fesm2022/acorex-components-video-player.mjs.map +1 -1
  220. package/fesm2022/acorex-components-wysiwyg.mjs +39 -39
  221. package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
  222. package/package.json +150 -155
  223. package/{accordion/index.d.ts → types/acorex-components-accordion.d.ts} +7 -3
  224. package/types/acorex-components-action-sheet.d.ts +256 -0
  225. package/{button-group/index.d.ts → types/acorex-components-button-group.d.ts} +12 -12
  226. package/{button/index.d.ts → types/acorex-components-button.d.ts} +3 -3
  227. package/{calendar/index.d.ts → types/acorex-components-calendar.d.ts} +1 -1
  228. package/{check-box/index.d.ts → types/acorex-components-check-box.d.ts} +1 -1
  229. package/{code-editor/index.d.ts → types/acorex-components-code-editor.d.ts} +1 -1
  230. package/{color-palette/index.d.ts → types/acorex-components-color-palette.d.ts} +1 -2
  231. package/{command/index.d.ts → types/acorex-components-command.d.ts} +35 -13
  232. package/{comment/index.d.ts → types/acorex-components-comment.d.ts} +23 -22
  233. package/{conversation/index.d.ts → types/acorex-components-conversation.d.ts} +1 -1
  234. package/{conversation2/index.d.ts → types/acorex-components-conversation2.d.ts} +3356 -3032
  235. package/{data-pager/index.d.ts → types/acorex-components-data-pager.d.ts} +1 -1
  236. package/{data-table/index.d.ts → types/acorex-components-data-table.d.ts} +23 -4
  237. package/{datetime-input/index.d.ts → types/acorex-components-datetime-input.d.ts} +1 -1
  238. package/{dialog/index.d.ts → types/acorex-components-dialog.d.ts} +19 -15
  239. package/{dropdown-button/index.d.ts → types/acorex-components-dropdown-button.d.ts} +4 -2
  240. package/{dropdown/index.d.ts → types/acorex-components-dropdown.d.ts} +5 -14
  241. package/types/acorex-components-fab.d.ts +50 -0
  242. package/{form/index.d.ts → types/acorex-components-form.d.ts} +3 -2
  243. package/{grid-layout-builder/index.d.ts → types/acorex-components-grid-layout-builder.d.ts} +15 -0
  244. package/{kanban/index.d.ts → types/acorex-components-kanban.d.ts} +2 -1
  245. package/{list/index.d.ts → types/acorex-components-list.d.ts} +24 -2
  246. package/{loading-dialog/index.d.ts → types/acorex-components-loading-dialog.d.ts} +31 -15
  247. package/{loading/index.d.ts → types/acorex-components-loading.d.ts} +3 -1
  248. package/types/acorex-components-media-viewer.d.ts +184 -0
  249. package/{menu/index.d.ts → types/acorex-components-menu.d.ts} +13 -7
  250. package/{modal/index.d.ts → types/acorex-components-modal.d.ts} +7 -0
  251. package/{notification/index.d.ts → types/acorex-components-notification.d.ts} +47 -30
  252. package/{number-box/index.d.ts → types/acorex-components-number-box.d.ts} +3 -0
  253. package/{paint/index.d.ts → types/acorex-components-paint.d.ts} +6 -0
  254. package/{phone-box/index.d.ts → types/acorex-components-phone-box.d.ts} +13 -3
  255. package/{popover/index.d.ts → types/acorex-components-popover.d.ts} +46 -36
  256. package/types/acorex-components-popup.d.ts +193 -0
  257. package/{radio/index.d.ts → types/acorex-components-radio.d.ts} +1 -1
  258. package/{scheduler-picker/index.d.ts → types/acorex-components-scheduler-picker.d.ts} +82 -81
  259. package/{scheduler/index.d.ts → types/acorex-components-scheduler.d.ts} +46 -23
  260. package/{select-box/index.d.ts → types/acorex-components-select-box.d.ts} +7 -7
  261. package/{side-menu/index.d.ts → types/acorex-components-side-menu.d.ts} +1 -1
  262. package/{tabs/index.d.ts → types/acorex-components-tabs.d.ts} +1 -1
  263. package/{tag/index.d.ts → types/acorex-components-tag.d.ts} +3 -3
  264. package/types/acorex-components-text-box.d.ts +79 -0
  265. package/{time-duration/index.d.ts → types/acorex-components-time-duration.d.ts} +6 -4
  266. package/{toast/index.d.ts → types/acorex-components-toast.d.ts} +24 -18
  267. package/{tooltip/index.d.ts → types/acorex-components-tooltip.d.ts} +6 -8
  268. package/{tree-view-legacy/index.d.ts → types/acorex-components-tree-view-legacy.d.ts} +1 -0
  269. package/{tree-view/index.d.ts → types/acorex-components-tree-view.d.ts} +17 -0
  270. package/action-sheet/index.d.ts +0 -174
  271. package/fesm2022/acorex-components-modal-acorex-components-modal-BnUdtPke.mjs.map +0 -1
  272. package/fesm2022/acorex-components-modal-modal-content.component-Cgq-wx_m.mjs.map +0 -1
  273. package/media-viewer/index.d.ts +0 -145
  274. package/popup/index.d.ts +0 -120
  275. package/text-box/index.d.ts +0 -95
  276. /package/{alert/index.d.ts → types/acorex-components-alert.d.ts} +0 -0
  277. /package/{aspect-ratio/index.d.ts → types/acorex-components-aspect-ratio.d.ts} +0 -0
  278. /package/{audio-wave/index.d.ts → types/acorex-components-audio-wave.d.ts} +0 -0
  279. /package/{autocomplete/index.d.ts → types/acorex-components-autocomplete.d.ts} +0 -0
  280. /package/{avatar/index.d.ts → types/acorex-components-avatar.d.ts} +0 -0
  281. /package/{badge/index.d.ts → types/acorex-components-badge.d.ts} +0 -0
  282. /package/{bottom-navigation/index.d.ts → types/acorex-components-bottom-navigation.d.ts} +0 -0
  283. /package/{breadcrumbs/index.d.ts → types/acorex-components-breadcrumbs.d.ts} +0 -0
  284. /package/{chips/index.d.ts → types/acorex-components-chips.d.ts} +0 -0
  285. /package/{circular-progress/index.d.ts → types/acorex-components-circular-progress.d.ts} +0 -0
  286. /package/{collapse/index.d.ts → types/acorex-components-collapse.d.ts} +0 -0
  287. /package/{color-box/index.d.ts → types/acorex-components-color-box.d.ts} +0 -0
  288. /package/{cron-job/index.d.ts → types/acorex-components-cron-job.d.ts} +0 -0
  289. /package/{data-list/index.d.ts → types/acorex-components-data-list.d.ts} +0 -0
  290. /package/{datetime-box/index.d.ts → types/acorex-components-datetime-box.d.ts} +0 -0
  291. /package/{datetime-picker/index.d.ts → types/acorex-components-datetime-picker.d.ts} +0 -0
  292. /package/{decorators/index.d.ts → types/acorex-components-decorators.d.ts} +0 -0
  293. /package/{drawer-legacy/index.d.ts → types/acorex-components-drawer-legacy.d.ts} +0 -0
  294. /package/{drawer/index.d.ts → types/acorex-components-drawer.d.ts} +0 -0
  295. /package/{editor/index.d.ts → types/acorex-components-editor.d.ts} +0 -0
  296. /package/{file-explorer/index.d.ts → types/acorex-components-file-explorer.d.ts} +0 -0
  297. /package/{flow-chart/index.d.ts → types/acorex-components-flow-chart.d.ts} +0 -0
  298. /package/{image-editor/index.d.ts → types/acorex-components-image-editor.d.ts} +0 -0
  299. /package/{image/index.d.ts → types/acorex-components-image.d.ts} +0 -0
  300. /package/{json-viewer/index.d.ts → types/acorex-components-json-viewer.d.ts} +0 -0
  301. /package/{kbd/index.d.ts → types/acorex-components-kbd.d.ts} +0 -0
  302. /package/{label/index.d.ts → types/acorex-components-label.d.ts} +0 -0
  303. /package/{map/index.d.ts → types/acorex-components-map.d.ts} +0 -0
  304. /package/{navbar/index.d.ts → types/acorex-components-navbar.d.ts} +0 -0
  305. /package/{number-box-legacy/index.d.ts → types/acorex-components-number-box-legacy.d.ts} +0 -0
  306. /package/{otp/index.d.ts → types/acorex-components-otp.d.ts} +0 -0
  307. /package/{page/index.d.ts → types/acorex-components-page.d.ts} +0 -0
  308. /package/{password-box/index.d.ts → types/acorex-components-password-box.d.ts} +0 -0
  309. /package/{pdf-reader/index.d.ts → types/acorex-components-pdf-reader.d.ts} +0 -0
  310. /package/{picker/index.d.ts → types/acorex-components-picker.d.ts} +0 -0
  311. /package/{progress-bar/index.d.ts → types/acorex-components-progress-bar.d.ts} +0 -0
  312. /package/{qrcode/index.d.ts → types/acorex-components-qrcode.d.ts} +0 -0
  313. /package/{query-builder/index.d.ts → types/acorex-components-query-builder.d.ts} +0 -0
  314. /package/{rail-navigation/index.d.ts → types/acorex-components-rail-navigation.d.ts} +0 -0
  315. /package/{range-slider/index.d.ts → types/acorex-components-range-slider.d.ts} +0 -0
  316. /package/{rate-picker/index.d.ts → types/acorex-components-rate-picker.d.ts} +0 -0
  317. /package/{rest-api-generator/index.d.ts → types/acorex-components-rest-api-generator.d.ts} +0 -0
  318. /package/{result/index.d.ts → types/acorex-components-result.d.ts} +0 -0
  319. /package/{routing-progress/index.d.ts → types/acorex-components-routing-progress.d.ts} +0 -0
  320. /package/{rrule/index.d.ts → types/acorex-components-rrule.d.ts} +0 -0
  321. /package/{scss/index.d.ts → types/acorex-components-scss.d.ts} +0 -0
  322. /package/{search-box/index.d.ts → types/acorex-components-search-box.d.ts} +0 -0
  323. /package/{selection-list-2/index.d.ts → types/acorex-components-selection-list-2.d.ts} +0 -0
  324. /package/{selection-list/index.d.ts → types/acorex-components-selection-list.d.ts} +0 -0
  325. /package/{skeleton/index.d.ts → types/acorex-components-skeleton.d.ts} +0 -0
  326. /package/{slider/index.d.ts → types/acorex-components-slider.d.ts} +0 -0
  327. /package/{sliding-item/index.d.ts → types/acorex-components-sliding-item.d.ts} +0 -0
  328. /package/{step-wizard/index.d.ts → types/acorex-components-step-wizard.d.ts} +0 -0
  329. /package/{switch/index.d.ts → types/acorex-components-switch.d.ts} +0 -0
  330. /package/{tag-box/index.d.ts → types/acorex-components-tag-box.d.ts} +0 -0
  331. /package/{text-area/index.d.ts → types/acorex-components-text-area.d.ts} +0 -0
  332. /package/{time-line/index.d.ts → types/acorex-components-time-line.d.ts} +0 -0
  333. /package/{toolbar/index.d.ts → types/acorex-components-toolbar.d.ts} +0 -0
  334. /package/{uploader/index.d.ts → types/acorex-components-uploader.d.ts} +0 -0
  335. /package/{video-player/index.d.ts → types/acorex-components-video-player.d.ts} +0 -0
  336. /package/{wysiwyg/index.d.ts → types/acorex-components-wysiwyg.d.ts} +0 -0
  337. /package/{index.d.ts → types/acorex-components.d.ts} +0 -0
@@ -2,137 +2,11 @@ import { MXBaseComponent, AXClosableComponent, AXComponent } from '@acorex/cdk/c
2
2
  import { AXButtonComponent } from '@acorex/components/button';
3
3
  import { AXDecoratorCloseButtonComponent } from '@acorex/components/decorators';
4
4
  import { AXLoadingComponent } from '@acorex/components/loading';
5
- import { AXTranslatorPipe, AXTranslationService } from '@acorex/core/translation';
6
- import { DIALOG_DATA, DialogRef, Dialog } from '@angular/cdk/dialog';
7
- import { TemplatePortal, ComponentPortal, CdkPortalOutlet } from '@angular/cdk/portal';
8
- import { AsyncPipe } from '@angular/common';
5
+ import { AXTranslationService, AXTranslatorPipe } from '@acorex/core/translation';
6
+ import { NgTemplateOutlet, NgComponentOutlet, AsyncPipe } from '@angular/common';
9
7
  import * as i0 from '@angular/core';
10
- import { inject, signal, TemplateRef, ViewEncapsulation, ChangeDetectionStrategy, Component, InjectionToken, NgModule, Injectable } from '@angular/core';
11
- import { GlobalPositionStrategy } from '@angular/cdk/overlay';
12
-
13
- /**
14
- * The Button is a component which detects user interaction and triggers a corresponding event
15
- *
16
- * @category Components
17
- */
18
- class AXNotificationComponent extends MXBaseComponent {
19
- constructor() {
20
- super(...arguments);
21
- this.config = inject(DIALOG_DATA);
22
- this.dialogRef = inject(DialogRef);
23
- this.isPaused = signal(false, ...(ngDevMode ? [{ debugName: "isPaused" }] : []));
24
- this.remainingTime = signal(0, ...(ngDevMode ? [{ debugName: "remainingTime" }] : []));
25
- this.transitionDuration = signal(150, ...(ngDevMode ? [{ debugName: "transitionDuration" }] : []));
26
- }
27
- ngOnInit() {
28
- super.ngOnInit();
29
- this._initContent();
30
- this._initIcon();
31
- this.remainingTime.set(this.config.timeOut);
32
- this._handleTimeOut();
33
- this.getHostElement().addEventListener('pointerenter', () => {
34
- if (!this.config.pauseOnHover)
35
- return;
36
- if (this.isPaused())
37
- return;
38
- // Only pause if not already paused
39
- this.isPaused.set(true);
40
- this.pauseAnimation();
41
- });
42
- this.getHostElement().addEventListener('pointerleave', () => {
43
- if (!this.config.pauseOnHover)
44
- return;
45
- if (!this.isPaused())
46
- return;
47
- // Only resume if paused
48
- this.isPaused.set(false);
49
- this._handleTimeOut();
50
- });
51
- }
52
- pauseAnimation() {
53
- clearInterval(this.intervalId);
54
- }
55
- _handleTimeOut() {
56
- if (this.config.timeOut) {
57
- this.intervalId = setInterval(() => {
58
- this.remainingTime.update((prev) => prev - this.transitionDuration());
59
- if (this.remainingTime() <= 0) {
60
- clearInterval(this.intervalId);
61
- this.close();
62
- }
63
- }, this.transitionDuration());
64
- }
65
- }
66
- /** @ignore */
67
- _initContent() {
68
- if (this.config.content instanceof TemplateRef) {
69
- this._selectedPortal = new TemplatePortal(this.config.content, this.getViewContainer());
70
- }
71
- else if (typeof this.config.content === 'function') {
72
- this._selectedPortal = new ComponentPortal(this.config.content);
73
- }
74
- }
75
- /** @ignore */
76
- _initIcon() {
77
- if (!this.config.icon) {
78
- switch (this.config.color) {
79
- case 'success':
80
- this._icon = 'ax-icon ax-icon-check-circle';
81
- break;
82
- case 'danger':
83
- this._icon = 'ax-icon ax-icon-error';
84
- break;
85
- case 'warning':
86
- this._icon = 'ax-icon ax-icon-warning';
87
- break;
88
- default:
89
- this._icon = this.config.icon || 'ax-icon ax-icon-info';
90
- break;
91
- }
92
- }
93
- else {
94
- this._icon = this.config.icon;
95
- }
96
- }
97
- /** @ignore */
98
- get _stringContent() {
99
- return typeof this.config.content === 'string' ? this.config.content : '';
100
- }
101
- /** @ignore */
102
- _handleButtonClick(button) {
103
- if (button.onClick) {
104
- button.onClick({ source: button });
105
- }
106
- }
107
- /**
108
- * Closes the dialog and provides the component and HTML element for reference.
109
- */
110
- close() {
111
- this.dialogRef.close({
112
- component: this,
113
- htmlElement: this.getHostElement(),
114
- });
115
- }
116
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXNotificationComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
117
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: AXNotificationComponent, isStandalone: true, selector: "ax-notification", providers: [
118
- { provide: AXClosableComponent, useExisting: AXNotificationComponent },
119
- { provide: AXComponent, useExisting: AXNotificationComponent },
120
- ], usesInheritance: true, ngImport: i0, template: "<span class=\"ax-notification-icon ax-icon-solid {{ _icon }} ax-{{ this.config.color }}\"></span>\n<div class=\"ax-notification-content\">\n <div class=\"ax-notification-title\">{{ config.title | translate | async }}</div>\n @if (_selectedPortal) {\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\"></ng-template>\n } @else {\n <div>{{ _stringContent | translate | async }}</div>\n }\n\n @if (config.buttons?.length) {\n <div class=\"ax-notification-buttons\">\n @for (button of config.buttons; track $index) {\n <ax-button\n class=\"ax-xs\"\n [text]=\"button.text | translate | async\"\n [color]=\"'ax-' + button.color\"\n [look]=\"'ax-' + button.look\"\n [disabled]=\"button.disabled\"\n (onClick)=\"_handleButtonClick(button)\"\n >\n @if (button.loading) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n }\n </div>\n }\n</div>\n@if (config.closeButton) {\n <ax-close-button></ax-close-button>\n}\n@if (config.timeOutProgress && config.timeOut && remainingTime()) {\n <div\n [class]=\"'ax-notification-progress ax-' + this.config.color\"\n [style.transition-duration]=\"transitionDuration()\"\n [style.width]=\"(remainingTime() * 100) / config.timeOut + '%'\"\n ></div>\n}\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-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;--tw-font-weight:initial;--tw-leading:initial;--tw-duration:initial;--tw-ease:initial}}}@layer components{ax-notification{border-radius:var(--radius-lg,.5rem);border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-border-lightest,rgba(var(--ax-sys-color-border-lightest-surface)));background-color:var(--color-lightest,rgba(var(--ax-sys-color-lightest-surface)));width:98vw;padding:calc(var(--spacing,.25rem)*4);font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25/.875)));--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px 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);display:flex;position:relative;overflow:hidden}ax-notification:where(.dark,.dark *){background-color:var(--color-darkest,rgba(var(--ax-sys-color-darkest-surface)))}@media (min-width:768px){ax-notification{width:calc(var(--spacing,.25rem)*96)}}ax-notification .ax-notification-icon{color:var(--ax-comp-bg);padding-inline-end:calc(var(--spacing,.25rem)*3)}ax-notification .ax-notification-content{--tw-font-weight:var(--font-weight-normal,400);font-weight:var(--font-weight-normal,400);color:var(--color-on-surface,rgba(var(--ax-sys-color-on-surface)));flex-direction:column;flex:1;justify-content:center;display:flex}ax-notification .ax-notification-content .ax-notification-title{--tw-leading:calc(var(--spacing,.25rem)*5);line-height:calc(var(--spacing,.25rem)*5);--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500)}ax-notification .ax-notification-content .ax-notification-buttons{margin-top:calc(var(--spacing,.25rem)*3);gap:calc(var(--spacing,.25rem)*3);display:flex}ax-notification .ax-notification-progress{inset-inline-start:calc(var(--spacing,.25rem)*0);inset-inline-end:calc(var(--spacing,.25rem)*0);bottom:calc(var(--spacing,.25rem)*0);height:calc(var(--spacing,.25rem)*1);background-color:var(--ax-comp-bg);width:100%;transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));--tw-duration:.3s;--tw-ease:linear;transition-duration:.3s;transition-timing-function:linear;position:absolute}ax-notification .ax-notification-icon,ax-notification .ax-icon-close{max-width:fit-content;font-size:var(--text-xl,1.25rem)!important;line-height:var(--tw-leading,var(--text-xl--line-height,calc(1.75/1.25)))!important;align-items:flex-start!important}}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@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}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-duration{syntax:\"*\";inherits:false}@property --tw-ease{syntax:\"*\";inherits:false}\n/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "directive", type: CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "component", type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "component", type: AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { 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 }); }
121
- }
122
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXNotificationComponent, decorators: [{
123
- type: Component,
124
- args: [{ selector: 'ax-notification', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [
125
- { provide: AXClosableComponent, useExisting: AXNotificationComponent },
126
- { provide: AXComponent, useExisting: AXNotificationComponent },
127
- ], imports: [
128
- CdkPortalOutlet,
129
- AXButtonComponent,
130
- AXLoadingComponent,
131
- AXDecoratorCloseButtonComponent,
132
- AsyncPipe,
133
- AXTranslatorPipe,
134
- ], template: "<span class=\"ax-notification-icon ax-icon-solid {{ _icon }} ax-{{ this.config.color }}\"></span>\n<div class=\"ax-notification-content\">\n <div class=\"ax-notification-title\">{{ config.title | translate | async }}</div>\n @if (_selectedPortal) {\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\"></ng-template>\n } @else {\n <div>{{ _stringContent | translate | async }}</div>\n }\n\n @if (config.buttons?.length) {\n <div class=\"ax-notification-buttons\">\n @for (button of config.buttons; track $index) {\n <ax-button\n class=\"ax-xs\"\n [text]=\"button.text | translate | async\"\n [color]=\"'ax-' + button.color\"\n [look]=\"'ax-' + button.look\"\n [disabled]=\"button.disabled\"\n (onClick)=\"_handleButtonClick(button)\"\n >\n @if (button.loading) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n }\n </div>\n }\n</div>\n@if (config.closeButton) {\n <ax-close-button></ax-close-button>\n}\n@if (config.timeOutProgress && config.timeOut && remainingTime()) {\n <div\n [class]=\"'ax-notification-progress ax-' + this.config.color\"\n [style.transition-duration]=\"transitionDuration()\"\n [style.width]=\"(remainingTime() * 100) / config.timeOut + '%'\"\n ></div>\n}\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-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;--tw-font-weight:initial;--tw-leading:initial;--tw-duration:initial;--tw-ease:initial}}}@layer components{ax-notification{border-radius:var(--radius-lg,.5rem);border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-border-lightest,rgba(var(--ax-sys-color-border-lightest-surface)));background-color:var(--color-lightest,rgba(var(--ax-sys-color-lightest-surface)));width:98vw;padding:calc(var(--spacing,.25rem)*4);font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25/.875)));--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px 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);display:flex;position:relative;overflow:hidden}ax-notification:where(.dark,.dark *){background-color:var(--color-darkest,rgba(var(--ax-sys-color-darkest-surface)))}@media (min-width:768px){ax-notification{width:calc(var(--spacing,.25rem)*96)}}ax-notification .ax-notification-icon{color:var(--ax-comp-bg);padding-inline-end:calc(var(--spacing,.25rem)*3)}ax-notification .ax-notification-content{--tw-font-weight:var(--font-weight-normal,400);font-weight:var(--font-weight-normal,400);color:var(--color-on-surface,rgba(var(--ax-sys-color-on-surface)));flex-direction:column;flex:1;justify-content:center;display:flex}ax-notification .ax-notification-content .ax-notification-title{--tw-leading:calc(var(--spacing,.25rem)*5);line-height:calc(var(--spacing,.25rem)*5);--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500)}ax-notification .ax-notification-content .ax-notification-buttons{margin-top:calc(var(--spacing,.25rem)*3);gap:calc(var(--spacing,.25rem)*3);display:flex}ax-notification .ax-notification-progress{inset-inline-start:calc(var(--spacing,.25rem)*0);inset-inline-end:calc(var(--spacing,.25rem)*0);bottom:calc(var(--spacing,.25rem)*0);height:calc(var(--spacing,.25rem)*1);background-color:var(--ax-comp-bg);width:100%;transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));--tw-duration:.3s;--tw-ease:linear;transition-duration:.3s;transition-timing-function:linear;position:absolute}ax-notification .ax-notification-icon,ax-notification .ax-icon-close{max-width:fit-content;font-size:var(--text-xl,1.25rem)!important;line-height:var(--tw-leading,var(--text-xl--line-height,calc(1.75/1.25)))!important;align-items:flex-start!important}}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@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}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-duration{syntax:\"*\";inherits:false}@property --tw-ease{syntax:\"*\";inherits:false}\n/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */\n"] }]
135
- }] });
8
+ import { InjectionToken, inject, signal, Injectable, input, computed, TemplateRef, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
9
+ import { AXOverlayService } from '@acorex/cdk/overlay';
136
10
 
137
11
  const AX_NOTIFICATION_CONFIG = new InjectionToken('AX_NOTIFICATION_CONFIG', {
138
12
  providedIn: 'root',
@@ -155,42 +29,30 @@ function notificationConfig(config = {}) {
155
29
  return result;
156
30
  }
157
31
 
158
- class AXNotificationModule {
159
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXNotificationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
160
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: AXNotificationModule, imports: [AXNotificationComponent], exports: [AXNotificationComponent] }); }
161
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXNotificationModule, imports: [AXNotificationComponent] }); }
162
- }
163
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXNotificationModule, decorators: [{
164
- type: NgModule,
165
- args: [{
166
- imports: [AXNotificationComponent],
167
- exports: [AXNotificationComponent],
168
- }]
169
- }] });
170
-
32
+ let notificationIdCounter = 0;
171
33
  class AXNotificationService {
172
34
  constructor() {
173
- this.dialog = inject(Dialog);
35
+ this.overlayService = inject(AXOverlayService);
174
36
  this.translationService = inject(AXTranslationService);
175
37
  this.defaultConfig = inject(AX_NOTIFICATION_CONFIG);
176
- this.activeNotifications = [];
177
- this.reservedNotifications = [];
178
- this.notificationCounterElement = null;
179
- this.moreNotificationsColor = 'primary';
180
- this.moreNotificationsLocation = 'bottom-center';
181
- this.reserveCounter = 0;
38
+ this.activeNotifications = signal([], ...(ngDevMode ? [{ debugName: "activeNotifications" }] : []));
39
+ this.reservedNotifications = signal([], ...(ngDevMode ? [{ debugName: "reservedNotifications" }] : []));
40
+ this.notificationCounterRef = signal(null, ...(ngDevMode ? [{ debugName: "notificationCounterRef" }] : []));
41
+ this.moreNotificationsColor = signal('primary', ...(ngDevMode ? [{ debugName: "moreNotificationsColor" }] : []));
42
+ this.moreNotificationsLocation = signal('bottom-center', ...(ngDevMode ? [{ debugName: "moreNotificationsLocation" }] : []));
43
+ this.reserveCounter = signal(0, ...(ngDevMode ? [{ debugName: "reserveCounter" }] : []));
182
44
  }
183
45
  show(config) {
184
46
  config = { ...this.defaultConfig, ...config };
185
- this.moreNotificationsColor = config.color;
186
- this.moreNotificationsLocation = config.location;
187
- if (this.defaultConfig.limit > 0 && this.activeNotifications.length >= this.defaultConfig.limit) {
47
+ this.moreNotificationsColor.set(config.color);
48
+ this.moreNotificationsLocation.set(config.location);
49
+ if (this.defaultConfig.limit > 0 && this.activeNotifications().length >= this.defaultConfig.limit) {
188
50
  const reservedRef = {
189
51
  close: () => {
190
52
  console.warn('Reserved notification cannot be closed until it is displayed.');
191
53
  },
192
54
  };
193
- this.reservedNotifications.push({ config, reservedRef });
55
+ this.reservedNotifications.update((prev) => [...prev, { config, reservedRef }]);
194
56
  this.handleReservedNotificationCounter();
195
57
  return reservedRef;
196
58
  }
@@ -198,164 +60,430 @@ class AXNotificationService {
198
60
  }
199
61
  displayNotification(config) {
200
62
  const gap = this.defaultConfig.gap;
201
- const pos = this.getPosition(config.location) + gap + 'px';
202
- const positionStrategy = this.getPositionStrategy(new GlobalPositionStrategy(), config.location, pos, gap);
203
- const dialogRef = this.dialog.open(AXNotificationComponent, {
204
- data: config,
205
- autoFocus: '__no_element__',
206
- restoreFocus: false,
207
- role: 'dialog',
208
- ariaModal: true,
209
- closeOnNavigation: true,
210
- closeOnDestroy: true,
211
- hasBackdrop: false,
212
- panelClass: ['animate-fadeIn', 'animate-faster'],
213
- positionStrategy,
214
- });
215
- this.activeNotifications.push(dialogRef.id);
216
- this.handleReservedNotificationCounter();
217
- const notificationRef = dialogRef.componentInstance;
218
- dialogRef.closed.subscribe(() => {
219
- this.activeNotifications = this.activeNotifications.filter((id) => id !== dialogRef.id);
220
- this.handleShowReservedNotification();
63
+ const notificationData = {
64
+ buttons: config.buttons,
65
+ icon: config.icon,
66
+ title: config.title,
67
+ content: config.content,
68
+ location: config.location,
69
+ closeButton: config.closeButton ?? true,
70
+ color: config.color,
71
+ timeOut: config.timeOut,
72
+ timeOutProgress: config.timeOutProgress ?? true,
73
+ pauseOnHover: config.pauseOnHover,
74
+ };
75
+ const notificationId = `notification-${++notificationIdCounter}`;
76
+ let internalRef;
77
+ const closeNotification = () => {
78
+ if (internalRef) {
79
+ internalRef.overlayRef.dispose();
80
+ this.activeNotifications.set(this.activeNotifications().filter((n) => n.id !== internalRef.id));
81
+ this.handleShowReservedNotification();
82
+ this.handleReservedNotificationCounter();
83
+ setTimeout(() => {
84
+ this.reposition(config.location, gap);
85
+ });
86
+ }
87
+ };
88
+ this.overlayService
89
+ .create(AXNotificationComponent, {
90
+ inputs: {
91
+ config: notificationData,
92
+ onClose: closeNotification,
93
+ },
94
+ centered: false,
95
+ panelClass: ['ax-animate-animated', 'ax-animate-fadeIn', 'ax-animate-faster'],
96
+ onDispose: () => {
97
+ // Clean up when disposed externally
98
+ const currentNotifications = this.activeNotifications();
99
+ if (internalRef && currentNotifications.find((n) => n.id === internalRef.id)) {
100
+ this.activeNotifications.set(currentNotifications.filter((n) => n.id !== internalRef.id));
101
+ this.handleShowReservedNotification();
102
+ this.handleReservedNotificationCounter();
103
+ }
104
+ },
105
+ })
106
+ .then((overlayRef) => {
107
+ internalRef = {
108
+ id: notificationId,
109
+ overlayRef,
110
+ config: notificationData,
111
+ close: closeNotification,
112
+ };
113
+ // Position the notification BEFORE adding to activeNotifications
114
+ this.positionNotification(overlayRef.overlayElement, config.location, gap);
115
+ this.activeNotifications.update((prev) => [...prev, internalRef]);
221
116
  this.handleReservedNotificationCounter();
222
- setTimeout(() => {
223
- this.reposition(config.location, gap);
224
- }, 0);
225
117
  });
226
118
  return {
227
119
  close: () => {
228
- notificationRef.close();
120
+ closeNotification();
229
121
  },
230
122
  };
231
123
  }
232
124
  hideAll() {
233
- this.dialog.closeAll();
234
- this.reserveCounter = 0;
235
- this.reservedNotifications = [];
236
- this.activeNotifications = [];
125
+ this.reserveCounter.set(0);
126
+ this.reservedNotifications.set([]);
127
+ // Close all active notifications
128
+ this.activeNotifications().forEach((notification) => {
129
+ notification.overlayRef.dispose();
130
+ });
131
+ this.activeNotifications.set([]);
132
+ // Close counter notification if exists
133
+ const counterRef = this.notificationCounterRef();
134
+ if (counterRef) {
135
+ counterRef.overlayRef.dispose();
136
+ this.notificationCounterRef.set(null);
137
+ }
237
138
  this.handleReservedNotificationCounter();
238
139
  }
239
140
  handleShowReservedNotification() {
240
- if (this.activeNotifications.length > this.defaultConfig.limit - 1)
141
+ if (this.activeNotifications().length > this.defaultConfig.limit - 1)
241
142
  return;
242
- if (!this.reservedNotifications.length)
143
+ if (!this.reservedNotifications().length)
243
144
  return;
244
- const { config, reservedRef } = this.reservedNotifications.shift();
245
- const displayedRef = this.displayNotification(config);
145
+ const reserved = this.reservedNotifications()[0];
146
+ this.reservedNotifications.update((prev) => prev.slice(1));
147
+ const displayedRef = this.displayNotification(reserved.config);
246
148
  this.handleReservedNotificationCounter();
247
- reservedRef.close = displayedRef.close;
149
+ reserved.reservedRef.close = displayedRef.close;
248
150
  }
249
151
  handleReservedNotificationCounter() {
250
- const reservedCount = this.reservedNotifications.length;
251
- if (reservedCount === this.reserveCounter)
152
+ const reservedCount = this.reservedNotifications().length;
153
+ if (reservedCount === this.reserveCounter())
252
154
  return;
253
- this.reserveCounter = reservedCount;
254
- if (reservedCount === 0 && this.notificationCounterElement !== null) {
255
- this.notificationCounterElement.close();
155
+ this.reserveCounter.set(reservedCount);
156
+ if (reservedCount === 0 && this.notificationCounterRef() !== null) {
157
+ this.notificationCounterRef().close();
158
+ this.notificationCounterRef.set(null);
256
159
  return;
257
160
  }
258
161
  if (reservedCount > 0) {
259
- if (this.notificationCounterElement !== null) {
260
- this.notificationCounterElement.close();
162
+ if (this.notificationCounterRef() !== null) {
163
+ this.notificationCounterRef().close();
164
+ this.notificationCounterRef.set(null);
261
165
  }
262
- this.createReservedCounternotification();
166
+ this.createReservedCounterNotification();
263
167
  }
264
168
  }
265
- async createReservedCounternotification() {
169
+ async createReservedCounterNotification() {
170
+ const gap = this.defaultConfig.gap;
266
171
  const opt = {
267
172
  closeButton: false,
268
- color: this.moreNotificationsColor,
269
- location: this.moreNotificationsLocation,
173
+ color: this.moreNotificationsColor(),
174
+ location: this.moreNotificationsLocation(),
270
175
  title: await this.translationService.translateAsync('@acorex:common.notifications.more', {
271
- params: { number: this.reserveCounter },
176
+ params: { number: this.reserveCounter() },
272
177
  }),
273
178
  timeOutProgress: false,
274
179
  };
275
- const gap = this.defaultConfig.gap;
276
- const pos = this.getPosition(opt.location) + gap + 'px';
277
- const positionStrategy = this.getPositionStrategy(new GlobalPositionStrategy(), opt.location, pos, gap);
278
- const dialogRef = this.dialog.open(AXNotificationComponent, {
279
- data: opt,
280
- autoFocus: '__no_element__',
281
- restoreFocus: true,
282
- role: 'dialog',
283
- ariaModal: true,
284
- closeOnNavigation: true,
285
- closeOnDestroy: true,
286
- hasBackdrop: false,
287
- panelClass: ['animate-fadeIn', 'animate-faster'],
288
- positionStrategy,
289
- });
290
- this.notificationCounterElement = dialogRef.componentInstance;
291
- }
292
- reposition(notificationLocation, gap) {
293
- const list = this.dialog.openDialogs
294
- .map((c) => c.componentInstance)
295
- .filter((c) => c.config?.location == notificationLocation);
296
- list.forEach((element, index) => {
297
- const pos = this.getRepositionPosition(index, gap, list, notificationLocation);
298
- this.getPositionStrategy(element.dialogRef.config.positionStrategy, notificationLocation, pos, gap).apply();
180
+ const notificationId = `notification-counter-${++notificationIdCounter}`;
181
+ const overlayRef = await this.overlayService.create(AXNotificationComponent, {
182
+ inputs: {
183
+ config: opt,
184
+ onClose: () => {
185
+ const currentCounterRef = this.notificationCounterRef();
186
+ if (currentCounterRef) {
187
+ currentCounterRef.overlayRef.dispose();
188
+ if (currentCounterRef.id === notificationId) {
189
+ this.notificationCounterRef.set(null);
190
+ }
191
+ }
192
+ },
193
+ },
194
+ centered: false,
195
+ panelClass: ['ax-animate-animated', 'ax-animate-fadeIn', 'ax-animate-faster'],
299
196
  });
197
+ const counterInternalRef = {
198
+ id: notificationId,
199
+ overlayRef,
200
+ config: opt,
201
+ close: () => {
202
+ counterInternalRef.overlayRef.dispose();
203
+ if (this.notificationCounterRef()?.id === counterInternalRef.id) {
204
+ this.notificationCounterRef.set(null);
205
+ }
206
+ },
207
+ };
208
+ this.notificationCounterRef.set(counterInternalRef);
209
+ // Position the counter notification
210
+ this.positionNotification(overlayRef.overlayElement, opt.location, gap);
300
211
  }
301
- getRepositionPosition(index, gap, list, notificationLocation) {
302
- if (index === 0)
303
- return gap + 'px';
304
- const previouseElement = list[index - 1];
305
- if (notificationLocation.split('-')[0] == 'bottom') {
306
- return window.innerHeight - previouseElement.getHostElement().offsetTop + gap + 'px';
307
- }
308
- return previouseElement.getHostElement().offsetTop + previouseElement.getHostElement().offsetHeight + gap + 'px';
309
- }
310
- getPosition(location) {
311
- const list = this.dialog.openDialogs
312
- .map((c) => c.componentInstance)
313
- .filter((c) => c.config.location == location);
314
- if (list.length == 0)
315
- return 0;
316
- if (location.split('-')[0] == 'bottom') {
317
- return window.innerHeight - list[list.length - 1].getHostElement().offsetTop;
318
- }
319
- return list[list.length - 1].getHostElement().offsetTop + list[list.length - 1].getHostElement().offsetHeight;
320
- }
321
- getPositionStrategy(positionStrategy, location, pos, gap) {
212
+ positionNotification(element, location, gap) {
213
+ if (!element)
214
+ return;
215
+ const pos = this.getPosition(location) + gap;
216
+ // Override the centered overlay container styles for notification positioning
217
+ element.style.width = 'max-content';
218
+ element.style.height = 'auto';
219
+ element.style.display = 'block';
220
+ element.style.alignItems = '';
221
+ element.style.justifyContent = '';
222
+ // Reset all positioning styles
223
+ element.style.top = '';
224
+ element.style.bottom = '';
225
+ element.style.left = '';
226
+ element.style.right = '';
227
+ element.style.transform = '';
228
+ // Apply position based on location
322
229
  switch (location) {
323
230
  case 'bottom-center':
324
- return positionStrategy.bottom(pos).centerHorizontally();
231
+ element.style.bottom = pos + 'px';
232
+ element.style.left = '50%';
233
+ element.style.transform = 'translateX(-50%)';
325
234
  break;
326
235
  case 'bottom-end':
327
- return positionStrategy.bottom(pos).right(gap + 'px');
236
+ element.style.bottom = pos + 'px';
237
+ element.style.right = gap + 'px';
328
238
  break;
329
239
  case 'bottom-start':
330
- return positionStrategy.bottom(pos).left(gap + 'px');
240
+ element.style.bottom = pos + 'px';
241
+ element.style.left = gap + 'px';
331
242
  break;
332
243
  case 'top-center':
333
- return positionStrategy.top(pos).centerHorizontally();
244
+ element.style.top = pos + 'px';
245
+ element.style.left = '50%';
246
+ element.style.transform = 'translateX(-50%)';
334
247
  break;
335
248
  case 'top-end':
336
- return positionStrategy.top(pos).right(gap + 'px');
249
+ element.style.top = pos + 'px';
250
+ element.style.right = gap + 'px';
337
251
  break;
338
252
  case 'top-start':
339
- return positionStrategy.top(pos).left(gap + 'px');
253
+ element.style.top = pos + 'px';
254
+ element.style.left = gap + 'px';
340
255
  break;
341
256
  case 'center-start':
342
- return positionStrategy.centerVertically().left(gap + 'px');
257
+ element.style.top = '50%';
258
+ element.style.left = gap + 'px';
259
+ element.style.transform = 'translateY(-50%)';
343
260
  break;
344
261
  case 'center-end':
345
- return positionStrategy.centerVertically().right(gap + 'px');
262
+ element.style.top = '50%';
263
+ element.style.right = gap + 'px';
264
+ element.style.transform = 'translateY(-50%)';
346
265
  break;
347
266
  }
348
267
  }
349
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXNotificationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
350
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXNotificationService, providedIn: 'root' }); }
268
+ reposition(notificationLocation, gap) {
269
+ const list = this.activeNotifications().filter((n) => n.config?.location === notificationLocation);
270
+ list.forEach((notification, index) => {
271
+ const element = notification.overlayRef.overlayElement;
272
+ if (!element)
273
+ return;
274
+ const pos = this.getRepositionPosition(index, gap, list, notificationLocation);
275
+ this.applyRepositionPosition(element, notificationLocation, pos, gap);
276
+ });
277
+ }
278
+ getRepositionPosition(index, gap, list, notificationLocation) {
279
+ if (index === 0)
280
+ return gap;
281
+ const previousNotification = list[index - 1];
282
+ const previousElement = previousNotification.overlayRef.overlayElement;
283
+ if (!previousElement)
284
+ return gap;
285
+ if (notificationLocation.split('-')[0] === 'bottom') {
286
+ return window.innerHeight - previousElement.offsetTop + gap;
287
+ }
288
+ return previousElement.offsetTop + previousElement.offsetHeight + gap;
289
+ }
290
+ applyRepositionPosition(element, location, pos, gap) {
291
+ // Reset transform if needed, then apply position
292
+ const isVerticalCenter = location === 'center-start' || location === 'center-end';
293
+ const isHorizontalCenter = location === 'bottom-center' || location === 'top-center';
294
+ if (location.startsWith('bottom')) {
295
+ element.style.bottom = pos + 'px';
296
+ element.style.top = '';
297
+ if (isHorizontalCenter) {
298
+ element.style.transform = 'translateX(-50%)';
299
+ }
300
+ }
301
+ else if (location.startsWith('top')) {
302
+ element.style.top = pos + 'px';
303
+ element.style.bottom = '';
304
+ if (isHorizontalCenter) {
305
+ element.style.transform = 'translateX(-50%)';
306
+ }
307
+ }
308
+ else if (isVerticalCenter) {
309
+ element.style.top = pos + 'px';
310
+ element.style.bottom = '';
311
+ element.style.transform = '';
312
+ }
313
+ }
314
+ getPosition(location) {
315
+ const list = this.activeNotifications().filter((n) => n.config?.location === location);
316
+ if (list.length === 0)
317
+ return 0;
318
+ const lastNotification = list[list.length - 1];
319
+ const element = lastNotification.overlayRef.overlayElement;
320
+ if (!element)
321
+ return 0;
322
+ if (location.split('-')[0] === 'bottom') {
323
+ return window.innerHeight - element.offsetTop;
324
+ }
325
+ return element.offsetTop + element.offsetHeight;
326
+ }
327
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXNotificationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
328
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXNotificationService, providedIn: 'root' }); }
351
329
  }
352
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXNotificationService, decorators: [{
330
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXNotificationService, decorators: [{
353
331
  type: Injectable,
354
332
  args: [{
355
333
  providedIn: 'root',
356
334
  }]
357
335
  }] });
358
336
 
337
+ /**
338
+ * The Button is a component which detects user interaction and triggers a corresponding event
339
+ *
340
+ * @category Components
341
+ */
342
+ class AXNotificationComponent extends MXBaseComponent {
343
+ constructor() {
344
+ super(...arguments);
345
+ /** Notification configuration data */
346
+ this.config = input.required(...(ngDevMode ? [{ debugName: "config" }] : []));
347
+ /** @internal Callback function to close the notification */
348
+ this.onClose = input(...(ngDevMode ? [undefined, { debugName: "onClose" }] : []));
349
+ this.notificationService = inject(AXNotificationService);
350
+ this.isPaused = signal(false, ...(ngDevMode ? [{ debugName: "isPaused" }] : []));
351
+ this.remainingTime = signal(0, ...(ngDevMode ? [{ debugName: "remainingTime" }] : []));
352
+ this.transitionDuration = signal(150, ...(ngDevMode ? [{ debugName: "transitionDuration" }] : []));
353
+ /** Template content if config.content is a TemplateRef */
354
+ this.templateContent = computed(() => {
355
+ const content = this.config().content;
356
+ return content instanceof TemplateRef ? content : null;
357
+ }, ...(ngDevMode ? [{ debugName: "templateContent" }] : []));
358
+ /** Component content if config.content is a component Type */
359
+ this.componentContent = computed(() => {
360
+ const content = this.config().content;
361
+ return typeof content === 'function' ? content : null;
362
+ }, ...(ngDevMode ? [{ debugName: "componentContent" }] : []));
363
+ /** String content if config.content is a string */
364
+ this.stringContent = computed(() => {
365
+ const content = this.config().content;
366
+ return typeof content === 'string' ? content : '';
367
+ }, ...(ngDevMode ? [{ debugName: "stringContent" }] : []));
368
+ }
369
+ ngOnInit() {
370
+ super.ngOnInit();
371
+ this._initIcon();
372
+ this.remainingTime.set(this.config().timeOut);
373
+ this._handleTimeOut();
374
+ this.getHostElement().addEventListener('pointerenter', () => {
375
+ if (!this.config().pauseOnHover)
376
+ return;
377
+ if (this.isPaused())
378
+ return;
379
+ // Only pause if not already paused
380
+ this.isPaused.set(true);
381
+ this.pauseAnimation();
382
+ });
383
+ this.getHostElement().addEventListener('pointerleave', () => {
384
+ if (!this.config().pauseOnHover)
385
+ return;
386
+ if (!this.isPaused())
387
+ return;
388
+ // Only resume if paused
389
+ this.isPaused.set(false);
390
+ this._handleTimeOut();
391
+ });
392
+ }
393
+ pauseAnimation() {
394
+ clearInterval(this.intervalId);
395
+ }
396
+ _handleTimeOut() {
397
+ if (this.config().timeOut) {
398
+ this.intervalId = setInterval(() => {
399
+ this.remainingTime.update((prev) => prev - this.transitionDuration());
400
+ if (this.remainingTime() <= 0) {
401
+ clearInterval(this.intervalId);
402
+ this.close();
403
+ }
404
+ }, this.transitionDuration());
405
+ }
406
+ }
407
+ /** @ignore */
408
+ _initIcon() {
409
+ if (!this.config().icon) {
410
+ switch (this.config().color) {
411
+ case 'success':
412
+ this._icon = 'ax-icon ax-icon-check-circle';
413
+ break;
414
+ case 'danger':
415
+ this._icon = 'ax-icon ax-icon-error';
416
+ break;
417
+ case 'warning':
418
+ this._icon = 'ax-icon ax-icon-warning';
419
+ break;
420
+ default:
421
+ this._icon = this.config().icon || 'ax-icon ax-icon-info';
422
+ break;
423
+ }
424
+ }
425
+ else {
426
+ this._icon = this.config().icon;
427
+ }
428
+ }
429
+ /** @ignore */
430
+ _handleButtonClick(button) {
431
+ if (button.onClick) {
432
+ button.onClick({ source: button });
433
+ }
434
+ }
435
+ /**
436
+ * Closes the notification.
437
+ */
438
+ close() {
439
+ const closeCallback = this.onClose();
440
+ if (closeCallback) {
441
+ closeCallback();
442
+ }
443
+ }
444
+ /**
445
+ * Closes all notifications.
446
+ */
447
+ closeAll() {
448
+ this.notificationService.hideAll();
449
+ }
450
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXNotificationComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
451
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.3", type: AXNotificationComponent, isStandalone: true, selector: "ax-notification", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null }, onClose: { classPropertyName: "onClose", publicName: "onClose", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "\"ax-\" + config().color" } }, providers: [
452
+ { provide: AXClosableComponent, useExisting: AXNotificationComponent },
453
+ { provide: AXComponent, useExisting: AXNotificationComponent },
454
+ ], usesInheritance: true, ngImport: i0, template: "<span class=\"ax-notification-icon ax-icon-solid {{ _icon }} ax-{{ this.config().color }}\"></span>\n<div class=\"ax-notification-content\">\n <div class=\"ax-notification-title\">{{ config().title | translate | async }}</div>\n @if (templateContent()) {\n <ng-container *ngTemplateOutlet=\"templateContent()\"></ng-container>\n } @else if (componentContent()) {\n <ng-container *ngComponentOutlet=\"componentContent()\"></ng-container>\n } @else {\n <div>{{ stringContent() | translate | async }}</div>\n }\n\n @if (config().buttons?.length) {\n <div class=\"ax-notification-buttons\">\n @for (button of config().buttons; track $index) {\n <ax-button\n class=\"ax-xs\"\n [text]=\"button.text | translate | async\"\n [color]=\"'ax-' + button.color\"\n [look]=\"'ax-' + button.look\"\n [disabled]=\"button.disabled\"\n (onClick)=\"_handleButtonClick(button)\"\n >\n @if (button.loading) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n }\n </div>\n }\n</div>\n@if (config().closeButton) {\n <ax-close-button></ax-close-button>\n}\n@if (config().timeOutProgress && config().timeOut && remainingTime()) {\n <div\n [class]=\"'ax-notification-progress ax-' + this.config().color\"\n [style.transition-duration]=\"transitionDuration()\"\n [style.width]=\"(remainingTime() * 100) / config().timeOut + '%'\"\n ></div>\n}\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-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;--tw-font-weight:initial;--tw-leading:initial;--tw-duration:initial;--tw-ease:initial}}}@layer components{ax-notification{border-radius:var(--radius-lg,.5rem);border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-border-lightest,rgba(var(--ax-sys-color-border-lightest-surface)));background-color:var(--color-lightest,rgba(var(--ax-sys-color-lightest-surface)));width:98vw;padding:calc(var(--spacing,.25rem) * 4);font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25 / .875)));--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px 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);display:flex;position:relative;overflow:hidden}ax-notification:where(.dark,.dark *){background-color:var(--color-darkest,rgba(var(--ax-sys-color-darkest-surface)))}@media(min-width:768px){ax-notification{width:calc(var(--spacing,.25rem) * 96)}}ax-notification .ax-notification-icon{color:var(--ax-comp-bg);padding-inline-end:calc(var(--spacing,.25rem) * 3)}ax-notification .ax-notification-content{--tw-font-weight:var(--font-weight-normal,400);font-weight:var(--font-weight-normal,400);color:var(--color-on-surface,rgba(var(--ax-sys-color-on-surface)));flex-direction:column;flex:1;justify-content:center;display:flex}ax-notification .ax-notification-content .ax-notification-title{--tw-leading:calc(var(--spacing,.25rem) * 5);line-height:calc(var(--spacing,.25rem) * 5);--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500)}ax-notification .ax-notification-content .ax-notification-buttons{margin-top:calc(var(--spacing,.25rem) * 3);gap:calc(var(--spacing,.25rem) * 3);display:flex}ax-notification .ax-notification-progress{inset-inline-start:calc(var(--spacing,.25rem) * 0);inset-inline-end:calc(var(--spacing,.25rem) * 0);bottom:calc(var(--spacing,.25rem) * 0);height:calc(var(--spacing,.25rem) * 1);background-color:var(--ax-comp-bg);width:100%;transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));--tw-duration:.3s;--tw-ease:linear;transition-duration:.3s;transition-timing-function:linear;position:absolute}ax-notification .ax-notification-icon,ax-notification .ax-icon-close{max-width:fit-content;font-size:var(--text-xl,1.25rem)!important;line-height:var(--tw-leading,var(--text-xl--line-height,calc(1.75 / 1.25)))!important;align-items:flex-start!important}}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@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}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-duration{syntax:\"*\";inherits:false}@property --tw-ease{syntax:\"*\";inherits:false}\n/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "component", type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "component", type: AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { 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 }); }
455
+ }
456
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXNotificationComponent, decorators: [{
457
+ type: Component,
458
+ args: [{ selector: 'ax-notification', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
459
+ '[class]': '"ax-" + config().color',
460
+ }, providers: [
461
+ { provide: AXClosableComponent, useExisting: AXNotificationComponent },
462
+ { provide: AXComponent, useExisting: AXNotificationComponent },
463
+ ], imports: [
464
+ NgTemplateOutlet,
465
+ NgComponentOutlet,
466
+ AXButtonComponent,
467
+ AXLoadingComponent,
468
+ AXDecoratorCloseButtonComponent,
469
+ AsyncPipe,
470
+ AXTranslatorPipe,
471
+ ], template: "<span class=\"ax-notification-icon ax-icon-solid {{ _icon }} ax-{{ this.config().color }}\"></span>\n<div class=\"ax-notification-content\">\n <div class=\"ax-notification-title\">{{ config().title | translate | async }}</div>\n @if (templateContent()) {\n <ng-container *ngTemplateOutlet=\"templateContent()\"></ng-container>\n } @else if (componentContent()) {\n <ng-container *ngComponentOutlet=\"componentContent()\"></ng-container>\n } @else {\n <div>{{ stringContent() | translate | async }}</div>\n }\n\n @if (config().buttons?.length) {\n <div class=\"ax-notification-buttons\">\n @for (button of config().buttons; track $index) {\n <ax-button\n class=\"ax-xs\"\n [text]=\"button.text | translate | async\"\n [color]=\"'ax-' + button.color\"\n [look]=\"'ax-' + button.look\"\n [disabled]=\"button.disabled\"\n (onClick)=\"_handleButtonClick(button)\"\n >\n @if (button.loading) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n }\n </div>\n }\n</div>\n@if (config().closeButton) {\n <ax-close-button></ax-close-button>\n}\n@if (config().timeOutProgress && config().timeOut && remainingTime()) {\n <div\n [class]=\"'ax-notification-progress ax-' + this.config().color\"\n [style.transition-duration]=\"transitionDuration()\"\n [style.width]=\"(remainingTime() * 100) / config().timeOut + '%'\"\n ></div>\n}\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-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;--tw-font-weight:initial;--tw-leading:initial;--tw-duration:initial;--tw-ease:initial}}}@layer components{ax-notification{border-radius:var(--radius-lg,.5rem);border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-border-lightest,rgba(var(--ax-sys-color-border-lightest-surface)));background-color:var(--color-lightest,rgba(var(--ax-sys-color-lightest-surface)));width:98vw;padding:calc(var(--spacing,.25rem) * 4);font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25 / .875)));--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px 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);display:flex;position:relative;overflow:hidden}ax-notification:where(.dark,.dark *){background-color:var(--color-darkest,rgba(var(--ax-sys-color-darkest-surface)))}@media(min-width:768px){ax-notification{width:calc(var(--spacing,.25rem) * 96)}}ax-notification .ax-notification-icon{color:var(--ax-comp-bg);padding-inline-end:calc(var(--spacing,.25rem) * 3)}ax-notification .ax-notification-content{--tw-font-weight:var(--font-weight-normal,400);font-weight:var(--font-weight-normal,400);color:var(--color-on-surface,rgba(var(--ax-sys-color-on-surface)));flex-direction:column;flex:1;justify-content:center;display:flex}ax-notification .ax-notification-content .ax-notification-title{--tw-leading:calc(var(--spacing,.25rem) * 5);line-height:calc(var(--spacing,.25rem) * 5);--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500)}ax-notification .ax-notification-content .ax-notification-buttons{margin-top:calc(var(--spacing,.25rem) * 3);gap:calc(var(--spacing,.25rem) * 3);display:flex}ax-notification .ax-notification-progress{inset-inline-start:calc(var(--spacing,.25rem) * 0);inset-inline-end:calc(var(--spacing,.25rem) * 0);bottom:calc(var(--spacing,.25rem) * 0);height:calc(var(--spacing,.25rem) * 1);background-color:var(--ax-comp-bg);width:100%;transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));--tw-duration:.3s;--tw-ease:linear;transition-duration:.3s;transition-timing-function:linear;position:absolute}ax-notification .ax-notification-icon,ax-notification .ax-icon-close{max-width:fit-content;font-size:var(--text-xl,1.25rem)!important;line-height:var(--tw-leading,var(--text-xl--line-height,calc(1.75 / 1.25)))!important;align-items:flex-start!important}}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@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}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-duration{syntax:\"*\";inherits:false}@property --tw-ease{syntax:\"*\";inherits:false}\n/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */\n"] }]
472
+ }], propDecorators: { config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: true }] }], onClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "onClose", required: false }] }] } });
473
+
474
+ class AXNotificationModule {
475
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXNotificationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
476
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.1.3", ngImport: i0, type: AXNotificationModule, imports: [AXNotificationComponent], exports: [AXNotificationComponent] }); }
477
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXNotificationModule, imports: [AXNotificationComponent] }); }
478
+ }
479
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AXNotificationModule, decorators: [{
480
+ type: NgModule,
481
+ args: [{
482
+ imports: [AXNotificationComponent],
483
+ exports: [AXNotificationComponent],
484
+ }]
485
+ }] });
486
+
359
487
  /**
360
488
  * Generated bundle index. Do not edit.
361
489
  */