@acorex/components 7.0.41 → 7.1.0

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 (759) hide show
  1. package/action-sheet/src/action-sheet.interface.d.ts +1 -1
  2. package/alert/src/alert.component.d.ts +3 -3
  3. package/avatar/src/avatar.component.d.ts +1 -1
  4. package/badge/src/badge.component.d.ts +3 -3
  5. package/breadcrumbs/src/breadcrumbs-item.component.d.ts +7 -7
  6. package/button/src/button-group.component.d.ts +7 -7
  7. package/button/src/button-item.class.d.ts +1 -1
  8. package/button/src/button-item.component.d.ts +7 -7
  9. package/button/src/button.component.d.ts +1 -1
  10. package/calendar/public-api.d.ts +1 -0
  11. package/calendar/src/calendar-range.component.d.ts +29 -0
  12. package/calendar/src/calendar.class.d.ts +55 -6
  13. package/calendar/src/calendar.component.d.ts +17 -24
  14. package/calendar/src/calendar.module.d.ts +4 -3
  15. package/checkbox/src/checkbox.component.d.ts +1 -1
  16. package/chips/src/chips.component.d.ts +7 -7
  17. package/collapse/src/collapse-group.component.d.ts +1 -1
  18. package/collapse/src/collapse.component.d.ts +1 -1
  19. package/color-palette/src/color-palette-swatches.component.d.ts +1 -1
  20. package/color-palette/src/color-palette.class.d.ts +1 -1
  21. package/color-palette/src/color-palette.component.d.ts +1 -1
  22. package/color-picker/src/color-picker.component.d.ts +20 -17
  23. package/common/public-api.d.ts +1 -0
  24. package/common/src/classes/data.class.d.ts +4 -0
  25. package/common/src/classes/events.class.d.ts +9 -0
  26. package/common/src/classes/styles.class.d.ts +5 -5
  27. package/common/src/components/base-component.class.d.ts +6 -9
  28. package/common/src/components/index.d.ts +1 -0
  29. package/common/src/components/value-component.class.d.ts +45 -0
  30. package/common/src/constant/positions.d.ts +1 -1
  31. package/common/src/directives/auto-focus.directive.d.ts +1 -1
  32. package/common/src/directives/debounce-time.directive.d.ts +1 -1
  33. package/common/src/directives/hotkey.directive.d.ts +2 -2
  34. package/common/src/directives/infinite-scroll.directive.d.ts +1 -1
  35. package/common/src/services/hotkey.service.d.ts +1 -1
  36. package/context-menu/src/context-menu.component.d.ts +1 -1
  37. package/data-pager/src/data-pager-base.component.d.ts +1 -1
  38. package/data-pager/src/data-pager-info.component.d.ts +1 -1
  39. package/data-pager/src/data-pager-pagesize-dropdown.component.d.ts +1 -1
  40. package/data-pager/src/data-pager.component.d.ts +1 -1
  41. package/data-table/src/data-column.directive.d.ts +1 -1
  42. package/data-table/src/data-table.component.d.ts +1 -1
  43. package/date-picker/src/datepicker.component.d.ts +15 -15
  44. package/decorators/src/close-button.component.d.ts +1 -1
  45. package/decorators/src/icon.component.d.ts +1 -1
  46. package/decorators/src/overlay.component.d.ts +1 -1
  47. package/decorators/src/sub-title.component.d.ts +1 -1
  48. package/decorators/src/text.component.d.ts +1 -1
  49. package/drawer/src/drawer.component.d.ts +3 -3
  50. package/dropdown/src/dropdown-panel.component.d.ts +1 -1
  51. package/esm2022/action-sheet/src/action-sheet.component.mjs +80 -0
  52. package/{esm2020 → esm2022}/action-sheet/src/action-sheet.module.mjs +5 -5
  53. package/esm2022/action-sheet/src/action-sheet.service.mjs +93 -0
  54. package/esm2022/alert/src/alert.component.mjs +188 -0
  55. package/{esm2020 → esm2022}/alert/src/alert.module.mjs +5 -5
  56. package/{esm2020 → esm2022}/avatar/src/avatar-group.component.mjs +4 -4
  57. package/esm2022/avatar/src/avatar.component.mjs +43 -0
  58. package/{esm2020 → esm2022}/avatar/src/avatar.module.mjs +5 -5
  59. package/esm2022/badge/src/badge.component.mjs +28 -0
  60. package/{esm2020 → esm2022}/badge/src/badge.module.mjs +5 -5
  61. package/esm2022/breadcrumbs/src/breadcrumbs-item.component.mjs +50 -0
  62. package/esm2022/breadcrumbs/src/breadcrumbs.component.mjs +27 -0
  63. package/{esm2020 → esm2022}/breadcrumbs/src/breadcrumbs.module.mjs +5 -5
  64. package/esm2022/button/src/button-group.component.mjs +91 -0
  65. package/esm2022/button/src/button-item.component.mjs +79 -0
  66. package/esm2022/button/src/button.component.mjs +78 -0
  67. package/{esm2020 → esm2022}/button/src/button.module.mjs +9 -9
  68. package/{esm2020 → esm2022}/calendar/public-api.mjs +2 -1
  69. package/esm2022/calendar/src/calendar-range.component.mjs +174 -0
  70. package/esm2022/calendar/src/calendar.class.mjs +280 -0
  71. package/esm2022/calendar/src/calendar.component.mjs +372 -0
  72. package/esm2022/calendar/src/calendar.module.mjs +23 -0
  73. package/esm2022/card/src/card.component.mjs +18 -0
  74. package/{esm2020 → esm2022}/card/src/card.module.mjs +5 -5
  75. package/esm2022/checkbox/src/checkbox.component.mjs +42 -0
  76. package/{esm2020 → esm2022}/checkbox/src/checkbox.module.mjs +5 -5
  77. package/{esm2020 → esm2022}/chips/src/chips.component.mjs +7 -7
  78. package/{esm2020 → esm2022}/chips/src/chips.module.mjs +5 -5
  79. package/esm2022/collapse/src/collapse-group.component.mjs +52 -0
  80. package/esm2022/collapse/src/collapse.component.mjs +47 -0
  81. package/{esm2020 → esm2022}/collapse/src/collapse.module.mjs +5 -5
  82. package/esm2022/color-palette/src/color-palette-input.component.mjs +130 -0
  83. package/esm2022/color-palette/src/color-palette-picker.component.mjs +159 -0
  84. package/esm2022/color-palette/src/color-palette-preview.component.mjs +62 -0
  85. package/esm2022/color-palette/src/color-palette-swatches.component.mjs +304 -0
  86. package/{esm2020 → esm2022}/color-palette/src/color-palette.class.mjs +7 -7
  87. package/esm2022/color-palette/src/color-palette.component.mjs +75 -0
  88. package/{esm2020 → esm2022}/color-palette/src/color-palette.module.mjs +19 -19
  89. package/esm2022/color-picker/src/color-picker.component.mjs +119 -0
  90. package/{esm2020 → esm2022}/color-picker/src/color-picker.module.mjs +25 -25
  91. package/esm2022/common/public-api.mjs +17 -0
  92. package/esm2022/common/src/classes/components.class.mjs +72 -0
  93. package/esm2022/common/src/classes/data.class.mjs +2 -0
  94. package/esm2022/common/src/classes/events.class.mjs +96 -0
  95. package/{esm2020 → esm2022}/common/src/common.module.mjs +13 -13
  96. package/esm2022/common/src/components/base-component.class.mjs +57 -0
  97. package/esm2022/common/src/components/button-base-component.class.mjs +69 -0
  98. package/esm2022/common/src/components/color-component.class.mjs +27 -0
  99. package/{esm2020 → esm2022}/common/src/components/index.mjs +2 -1
  100. package/esm2022/common/src/components/interactive-component.class.mjs +63 -0
  101. package/{esm2020 → esm2022}/common/src/components/look-component.class.mjs +3 -3
  102. package/esm2022/common/src/components/value-component.class.mjs +206 -0
  103. package/esm2022/common/src/directives/auto-focus.directive.mjs +57 -0
  104. package/esm2022/common/src/directives/debounce-time.directive.mjs +49 -0
  105. package/esm2022/common/src/directives/hotkey.directive.mjs +82 -0
  106. package/esm2022/common/src/directives/infinite-scroll.directive.mjs +69 -0
  107. package/esm2022/common/src/directives/responsive.directive.mjs +35 -0
  108. package/esm2022/common/src/services/custom-cdk-overlay.service.mjs +50 -0
  109. package/esm2022/common/src/services/hotkey.service.mjs +40 -0
  110. package/esm2022/common/src/services/overlay.service.mjs +115 -0
  111. package/esm2022/context-menu/src/context-menu.component.mjs +270 -0
  112. package/{esm2020 → esm2022}/context-menu/src/context-menu.module.mjs +9 -9
  113. package/esm2022/data-pager/src/data-pager-base.component.mjs +35 -0
  114. package/esm2022/data-pager/src/data-pager-info.component.mjs +61 -0
  115. package/esm2022/data-pager/src/data-pager-input-selector.component.mjs +53 -0
  116. package/esm2022/data-pager/src/data-pager-next-buttons.components.mjs +66 -0
  117. package/esm2022/data-pager/src/data-pager-numeric-selector.component.mjs +100 -0
  118. package/esm2022/data-pager/src/data-pager-pagesize-dropdown.component.mjs +88 -0
  119. package/esm2022/data-pager/src/data-pager-prev-buttons.component.mjs +61 -0
  120. package/esm2022/data-pager/src/data-pager.component.mjs +146 -0
  121. package/{esm2020 → esm2022}/data-pager/src/data-pager.module.mjs +17 -17
  122. package/esm2022/data-table/src/data-column-cell-template.directive.mjs +18 -0
  123. package/esm2022/data-table/src/data-column.directive.mjs +50 -0
  124. package/esm2022/data-table/src/data-table.component.mjs +139 -0
  125. package/{esm2020 → esm2022}/data-table/src/data-table.module.mjs +5 -5
  126. package/esm2022/date-picker/src/datepicker.component.mjs +240 -0
  127. package/{esm2020 → esm2022}/date-picker/src/datepicker.module.mjs +12 -12
  128. package/esm2022/decorators/src/close-button.component.mjs +51 -0
  129. package/{esm2020 → esm2022}/decorators/src/content.component.mjs +4 -4
  130. package/{esm2020 → esm2022}/decorators/src/decorators.module.mjs +29 -29
  131. package/{esm2020 → esm2022}/decorators/src/footer.component.mjs +5 -5
  132. package/{esm2020 → esm2022}/decorators/src/form-hint.component.mjs +4 -4
  133. package/{esm2020 → esm2022}/decorators/src/header.component.mjs +5 -5
  134. package/esm2022/decorators/src/icon.component.mjs +30 -0
  135. package/esm2022/decorators/src/overlay.component.mjs +20 -0
  136. package/{esm2020 → esm2022}/decorators/src/placeholder.component.mjs +4 -4
  137. package/{esm2020 → esm2022}/decorators/src/prefix.component.mjs +4 -4
  138. package/esm2022/decorators/src/sub-title.component.mjs +27 -0
  139. package/{esm2020 → esm2022}/decorators/src/suffix.component.mjs +4 -4
  140. package/esm2022/decorators/src/text.component.mjs +22 -0
  141. package/{esm2020 → esm2022}/decorators/src/title.component.mjs +4 -4
  142. package/{esm2020 → esm2022}/dialog/src/dialog.component.mjs +7 -4
  143. package/{esm2020 → esm2022}/dialog/src/dialog.module.mjs +5 -5
  144. package/esm2022/dialog/src/dialog.service.mjs +154 -0
  145. package/esm2022/drawer/src/drawer-container.component.mjs +38 -0
  146. package/esm2022/drawer/src/drawer.component.mjs +144 -0
  147. package/{esm2020 → esm2022}/drawer/src/drawer.module.mjs +5 -5
  148. package/esm2022/dropdown/src/dropdown-panel.component.mjs +105 -0
  149. package/{esm2020 → esm2022}/dropdown/src/dropdown.module.mjs +5 -5
  150. package/{esm2020 → esm2022}/form/src/form-field.component.mjs +4 -4
  151. package/esm2022/form/src/form.component.mjs +163 -0
  152. package/{esm2020 → esm2022}/form/src/form.module.mjs +11 -11
  153. package/esm2022/form/src/validation-rule.widget.mjs +113 -0
  154. package/esm2022/form/src/validation-summary.component.mjs +109 -0
  155. package/esm2022/image/src/image.component.mjs +79 -0
  156. package/{esm2020 → esm2022}/image/src/image.module.mjs +5 -5
  157. package/esm2022/label/src/label.component.mjs +48 -0
  158. package/{esm2020 → esm2022}/label/src/label.module.mjs +5 -5
  159. package/{esm2020 → esm2022}/loading/src/loading-spinner.component.mjs +6 -5
  160. package/esm2022/loading/src/loading.component.mjs +67 -0
  161. package/esm2022/loading/src/loading.directive.mjs +76 -0
  162. package/{esm2020 → esm2022}/loading/src/loading.module.mjs +5 -5
  163. package/esm2022/loading/src/loading.service.mjs +158 -0
  164. package/esm2022/menu/src/menu.component.mjs +346 -0
  165. package/{esm2020 → esm2022}/menu/src/menu.module.mjs +8 -8
  166. package/esm2022/mixin/src/base-components.class.mjs +110 -0
  167. package/esm2022/mixin/src/base-menu-mixin.class.mjs +134 -0
  168. package/esm2022/mixin/src/button-mixin.class.mjs +71 -0
  169. package/esm2022/mixin/src/clickable-mixin.class.mjs +24 -0
  170. package/esm2022/mixin/src/color-look-mixing.class.mjs +48 -0
  171. package/esm2022/mixin/src/datalist-component.class.mjs +151 -0
  172. package/esm2022/mixin/src/dropdown-mixin.class.mjs +99 -0
  173. package/esm2022/mixin/src/interactive-mixin.class.mjs +81 -0
  174. package/esm2022/mixin/src/loading-mixin.class.mjs +26 -0
  175. package/esm2022/mixin/src/selection-component.class.mjs +183 -0
  176. package/esm2022/mixin/src/sizable-mixin.class.mjs +22 -0
  177. package/esm2022/mixin/src/textbox-mixin.class.mjs +66 -0
  178. package/esm2022/mixin/src/value-mixin.class.mjs +220 -0
  179. package/esm2022/notification/src/notification.component.mjs +92 -0
  180. package/{esm2020 → esm2022}/notification/src/notification.module.mjs +5 -5
  181. package/esm2022/notification/src/notification.service.mjs +109 -0
  182. package/esm2022/number-box/src/number-box.component.mjs +268 -0
  183. package/{esm2020 → esm2022}/number-box/src/number-box.module.mjs +9 -9
  184. package/esm2022/page/src/base-page.class.mjs +63 -0
  185. package/esm2022/page/src/page.component.mjs +46 -0
  186. package/{esm2020 → esm2022}/page/src/page.module.mjs +5 -5
  187. package/esm2022/password-box/src/password-box.component.mjs +63 -0
  188. package/{esm2020 → esm2022}/password-box/src/password-box.module.mjs +8 -8
  189. package/esm2022/picker/src/picker-column.component.mjs +20 -0
  190. package/{esm2020 → esm2022}/picker/src/picker.component.mjs +4 -4
  191. package/{esm2020 → esm2022}/picker/src/picker.module.mjs +9 -9
  192. package/esm2022/popover/src/popover.component.mjs +262 -0
  193. package/{esm2020 → esm2022}/popover/src/popover.module.mjs +5 -5
  194. package/esm2022/popup/src/popup.component.mjs +145 -0
  195. package/{esm2020 → esm2022}/popup/src/popup.module.mjs +5 -5
  196. package/esm2022/popup/src/popup.service.mjs +116 -0
  197. package/{esm2020 → esm2022}/progress-bar/src/progress-bar.component.mjs +5 -5
  198. package/{esm2020 → esm2022}/progress-bar/src/progress-bar.module.mjs +5 -5
  199. package/{esm2020 → esm2022}/radio/src/radio.component.mjs +4 -4
  200. package/{esm2020 → esm2022}/radio/src/radio.module.mjs +5 -5
  201. package/esm2022/range-slider/src/range-slider.component.mjs +117 -0
  202. package/{esm2020 → esm2022}/range-slider/src/range-slider.module.mjs +5 -5
  203. package/esm2022/rating/src/rating.component.mjs +41 -0
  204. package/{esm2020 → esm2022}/rating/src/rating.component.module.mjs +5 -5
  205. package/esm2022/result/src/result.component.mjs +26 -0
  206. package/{esm2020 → esm2022}/result/src/result.module.mjs +5 -5
  207. package/esm2022/search-box/src/search-box.component.mjs +54 -0
  208. package/{esm2020 → esm2022}/search-box/src/search-box.module.mjs +5 -5
  209. package/esm2022/select-box/src/selectbox.component.mjs +391 -0
  210. package/{esm2020 → esm2022}/select-box/src/selectbox.module.mjs +27 -27
  211. package/{esm2020 → esm2022}/selection-list/src/selection-list.component.mjs +8 -8
  212. package/{esm2020 → esm2022}/selection-list/src/selection-list.module.mjs +5 -5
  213. package/{esm2020 → esm2022}/switch/src/switch-content.component.mjs +4 -4
  214. package/{esm2020 → esm2022}/switch/src/switch.component.mjs +7 -4
  215. package/{esm2020 → esm2022}/switch/src/switch.module.mjs +5 -5
  216. package/esm2022/tabs/src/tab-content.directive.mjs +31 -0
  217. package/esm2022/tabs/src/tab-item.component.mjs +140 -0
  218. package/esm2022/tabs/src/tabs.class.mjs +6 -0
  219. package/{esm2020 → esm2022}/tabs/src/tabs.component.mjs +14 -11
  220. package/{esm2020 → esm2022}/tabs/src/tabs.module.mjs +5 -5
  221. package/{esm2020 → esm2022}/tag/src/tag.component.mjs +6 -6
  222. package/{esm2020 → esm2022}/tag/src/tag.module.mjs +5 -5
  223. package/esm2022/textarea/src/textarea.component.mjs +29 -0
  224. package/{esm2020 → esm2022}/textarea/src/textarea.module.mjs +5 -5
  225. package/esm2022/textbox/src/mask-options.directive.mjs +19 -0
  226. package/esm2022/textbox/src/textbox.component.mjs +95 -0
  227. package/{esm2020 → esm2022}/textbox/src/textbox.module.mjs +13 -13
  228. package/esm2022/time-box/src/time-box.component.mjs +305 -0
  229. package/{esm2020 → esm2022}/time-box/src/time-box.module.mjs +8 -8
  230. package/esm2022/toast/src/toast.component.mjs +67 -0
  231. package/{esm2020 → esm2022}/toast/src/toast.module.mjs +5 -5
  232. package/esm2022/toast/src/toast.service.mjs +136 -0
  233. package/esm2022/tooltip/src/tooltip.component.mjs +21 -0
  234. package/esm2022/tooltip/src/tooltip.directive.mjs +163 -0
  235. package/{esm2020 → esm2022}/tooltip/src/tooltip.module.mjs +5 -5
  236. package/esm2022/tree-view/src/tree-view.component.mjs +107 -0
  237. package/{esm2020 → esm2022}/tree-view/src/tree-view.module.mjs +5 -5
  238. package/esm2022/uploader/src/uploader.component.mjs +101 -0
  239. package/{esm2020 → esm2022}/uploader/src/uploader.module.mjs +5 -5
  240. package/{fesm2020 → fesm2022}/acorex-components-action-sheet.mjs +21 -16
  241. package/{fesm2020 → fesm2022}/acorex-components-action-sheet.mjs.map +1 -1
  242. package/{fesm2020 → fesm2022}/acorex-components-alert.mjs +41 -32
  243. package/{fesm2020 → fesm2022}/acorex-components-alert.mjs.map +1 -1
  244. package/{fesm2020 → fesm2022}/acorex-components-avatar.mjs +12 -11
  245. package/{fesm2020 → fesm2022}/acorex-components-avatar.mjs.map +1 -1
  246. package/{fesm2015 → fesm2022}/acorex-components-badge.mjs +9 -9
  247. package/{fesm2015 → fesm2022}/acorex-components-badge.mjs.map +1 -1
  248. package/{fesm2020 → fesm2022}/acorex-components-breadcrumbs.mjs +16 -11
  249. package/{fesm2020 → fesm2022}/acorex-components-breadcrumbs.mjs.map +1 -1
  250. package/{fesm2020 → fesm2022}/acorex-components-button.mjs +45 -48
  251. package/fesm2022/acorex-components-button.mjs.map +1 -0
  252. package/fesm2022/acorex-components-calendar.mjs +837 -0
  253. package/fesm2022/acorex-components-calendar.mjs.map +1 -0
  254. package/fesm2022/acorex-components-card.mjs +41 -0
  255. package/{fesm2015 → fesm2022}/acorex-components-card.mjs.map +1 -1
  256. package/{fesm2020 → fesm2022}/acorex-components-checkbox.mjs +8 -8
  257. package/{fesm2015 → fesm2022}/acorex-components-checkbox.mjs.map +1 -1
  258. package/{fesm2015 → fesm2022}/acorex-components-chips.mjs +10 -11
  259. package/{fesm2020 → fesm2022}/acorex-components-chips.mjs.map +1 -1
  260. package/{fesm2015 → fesm2022}/acorex-components-collapse.mjs +21 -18
  261. package/{fesm2020 → fesm2022}/acorex-components-collapse.mjs.map +1 -1
  262. package/{fesm2020 → fesm2022}/acorex-components-color-palette.mjs +337 -331
  263. package/{fesm2020 → fesm2022}/acorex-components-color-palette.mjs.map +1 -1
  264. package/fesm2022/acorex-components-color-picker.mjs +182 -0
  265. package/fesm2022/acorex-components-color-picker.mjs.map +1 -0
  266. package/{fesm2020 → fesm2022}/acorex-components-common.mjs +405 -140
  267. package/fesm2022/acorex-components-common.mjs.map +1 -0
  268. package/{fesm2020 → fesm2022}/acorex-components-context-menu.mjs +29 -20
  269. package/{fesm2015 → fesm2022}/acorex-components-context-menu.mjs.map +1 -1
  270. package/{fesm2020 → fesm2022}/acorex-components-data-pager.mjs +95 -80
  271. package/{fesm2020 → fesm2022}/acorex-components-data-pager.mjs.map +1 -1
  272. package/{fesm2020 → fesm2022}/acorex-components-data-table.mjs +40 -31
  273. package/{fesm2020 → fesm2022}/acorex-components-data-table.mjs.map +1 -1
  274. package/fesm2022/acorex-components-date-picker.mjs +285 -0
  275. package/fesm2022/acorex-components-date-picker.mjs.map +1 -0
  276. package/{fesm2020 → fesm2022}/acorex-components-decorators.mjs +80 -80
  277. package/{fesm2015 → fesm2022}/acorex-components-decorators.mjs.map +1 -1
  278. package/{fesm2020 → fesm2022}/acorex-components-dialog.mjs +16 -11
  279. package/{fesm2015 → fesm2022}/acorex-components-dialog.mjs.map +1 -1
  280. package/{fesm2020 → fesm2022}/acorex-components-drawer.mjs +25 -21
  281. package/{fesm2020 → fesm2022}/acorex-components-drawer.mjs.map +1 -1
  282. package/{fesm2020 → fesm2022}/acorex-components-dropdown.mjs +19 -16
  283. package/fesm2022/acorex-components-dropdown.mjs.map +1 -0
  284. package/{fesm2020 → fesm2022}/acorex-components-form.mjs +65 -61
  285. package/fesm2022/acorex-components-form.mjs.map +1 -0
  286. package/{fesm2015 → fesm2022}/acorex-components-image.mjs +17 -15
  287. package/{fesm2015 → fesm2022}/acorex-components-image.mjs.map +1 -1
  288. package/{fesm2015 → fesm2022}/acorex-components-label.mjs +12 -10
  289. package/fesm2022/acorex-components-label.mjs.map +1 -0
  290. package/{fesm2020 → fesm2022}/acorex-components-loading.mjs +42 -29
  291. package/{fesm2020 → fesm2022}/acorex-components-loading.mjs.map +1 -1
  292. package/{fesm2020 → fesm2022}/acorex-components-menu.mjs +26 -19
  293. package/{fesm2020 → fesm2022}/acorex-components-menu.mjs.map +1 -1
  294. package/{fesm2015 → fesm2022}/acorex-components-mixin.mjs +276 -284
  295. package/{fesm2020 → fesm2022}/acorex-components-mixin.mjs.map +1 -1
  296. package/{fesm2020 → fesm2022}/acorex-components-notification.mjs +24 -18
  297. package/{fesm2020 → fesm2022}/acorex-components-notification.mjs.map +1 -1
  298. package/{fesm2020 → fesm2022}/acorex-components-number-box.mjs +42 -35
  299. package/{fesm2015 → fesm2022}/acorex-components-number-box.mjs.map +1 -1
  300. package/{fesm2020 → fesm2022}/acorex-components-page.mjs +20 -17
  301. package/{fesm2020 → fesm2022}/acorex-components-page.mjs.map +1 -1
  302. package/fesm2022/acorex-components-password-box.mjs +99 -0
  303. package/{fesm2015 → fesm2022}/acorex-components-password-box.mjs.map +1 -1
  304. package/{fesm2020 → fesm2022}/acorex-components-picker.mjs +15 -18
  305. package/{fesm2015 → fesm2022}/acorex-components-picker.mjs.map +1 -1
  306. package/{fesm2020 → fesm2022}/acorex-components-popover.mjs +50 -37
  307. package/{fesm2015 → fesm2022}/acorex-components-popover.mjs.map +1 -1
  308. package/{fesm2020 → fesm2022}/acorex-components-popup.mjs +30 -19
  309. package/{fesm2020 → fesm2022}/acorex-components-popup.mjs.map +1 -1
  310. package/{fesm2020 → fesm2022}/acorex-components-progress-bar.mjs +8 -9
  311. package/{fesm2015 → fesm2022}/acorex-components-progress-bar.mjs.map +1 -1
  312. package/fesm2022/acorex-components-radio.mjs +65 -0
  313. package/{fesm2015 → fesm2022}/acorex-components-radio.mjs.map +1 -1
  314. package/{fesm2020 → fesm2022}/acorex-components-range-slider.mjs +16 -16
  315. package/fesm2022/acorex-components-range-slider.mjs.map +1 -0
  316. package/fesm2022/acorex-components-rating.mjs +64 -0
  317. package/{fesm2015 → fesm2022}/acorex-components-rating.mjs.map +1 -1
  318. package/{fesm2020 → fesm2022}/acorex-components-result.mjs +10 -10
  319. package/{fesm2020 → fesm2022}/acorex-components-result.mjs.map +1 -1
  320. package/{fesm2020 → fesm2022}/acorex-components-search-box.mjs +12 -11
  321. package/{fesm2020 → fesm2022}/acorex-components-search-box.mjs.map +1 -1
  322. package/{fesm2020 → fesm2022}/acorex-components-select-box.mjs +56 -46
  323. package/{fesm2020 → fesm2022}/acorex-components-select-box.mjs.map +1 -1
  324. package/{fesm2020 → fesm2022}/acorex-components-selection-list.mjs +11 -12
  325. package/{fesm2015 → fesm2022}/acorex-components-selection-list.mjs.map +1 -1
  326. package/{fesm2020 → fesm2022}/acorex-components-switch.mjs +13 -11
  327. package/{fesm2015 → fesm2022}/acorex-components-switch.mjs.map +1 -1
  328. package/{fesm2020 → fesm2022}/acorex-components-tabs.mjs +36 -26
  329. package/{fesm2015 → fesm2022}/acorex-components-tabs.mjs.map +1 -1
  330. package/{fesm2020 → fesm2022}/acorex-components-tag.mjs +9 -10
  331. package/{fesm2020 → fesm2022}/acorex-components-tag.mjs.map +1 -1
  332. package/fesm2022/acorex-components-textarea.mjs +52 -0
  333. package/{fesm2020 → fesm2022}/acorex-components-textarea.mjs.map +1 -1
  334. package/{fesm2020 → fesm2022}/acorex-components-textbox.mjs +34 -30
  335. package/{fesm2020 → fesm2022}/acorex-components-textbox.mjs.map +1 -1
  336. package/{fesm2020 → fesm2022}/acorex-components-time-box.mjs +30 -22
  337. package/{fesm2020 → fesm2022}/acorex-components-time-box.mjs.map +1 -1
  338. package/{fesm2020 → fesm2022}/acorex-components-toast.mjs +22 -18
  339. package/{fesm2020 → fesm2022}/acorex-components-toast.mjs.map +1 -1
  340. package/{fesm2020 → fesm2022}/acorex-components-tooltip.mjs +20 -14
  341. package/{fesm2020 → fesm2022}/acorex-components-tooltip.mjs.map +1 -1
  342. package/fesm2022/acorex-components-tree-view.mjs +131 -0
  343. package/{fesm2015 → fesm2022}/acorex-components-tree-view.mjs.map +1 -1
  344. package/{fesm2020 → fesm2022}/acorex-components-uploader.mjs +15 -13
  345. package/{fesm2020 → fesm2022}/acorex-components-uploader.mjs.map +1 -1
  346. package/{fesm2015 → fesm2022}/acorex-components.mjs +0 -1
  347. package/form/src/form.component.d.ts +2 -2
  348. package/form/src/validation-rule.widget.d.ts +1 -1
  349. package/form/src/validation-summary.component.d.ts +2 -2
  350. package/form/src/validation.class.d.ts +1 -1
  351. package/image/src/image.component.d.ts +1 -1
  352. package/label/src/label.component.d.ts +1 -1
  353. package/loading/src/loading.component.d.ts +1 -1
  354. package/loading/src/loading.directive.d.ts +1 -1
  355. package/loading/src/loading.service.d.ts +2 -2
  356. package/menu/src/menu.component.d.ts +1 -1
  357. package/mixin/src/base-components.class.d.ts +7 -7
  358. package/mixin/src/base-menu-mixin.class.d.ts +5 -5
  359. package/mixin/src/button-mixin.class.d.ts +2 -2
  360. package/mixin/src/clickable-mixin.class.d.ts +2 -2
  361. package/mixin/src/color-look-mixing.class.d.ts +2 -2
  362. package/mixin/src/constratctor.d.ts +2 -2
  363. package/mixin/src/datalist-component.class.d.ts +10 -10
  364. package/mixin/src/datalist.class.d.ts +2 -2
  365. package/mixin/src/dropdown-mixin.class.d.ts +2 -2
  366. package/mixin/src/interactive-mixin.class.d.ts +4 -4
  367. package/mixin/src/loading-mixin.class.d.ts +2 -2
  368. package/mixin/src/mixin.class.d.ts +61 -61
  369. package/mixin/src/page-component.class.d.ts +2 -2
  370. package/mixin/src/selection-component.class.d.ts +2 -2
  371. package/mixin/src/sizable-mixin.class.d.ts +2 -2
  372. package/mixin/src/textbox-mixin.class.d.ts +2 -2
  373. package/mixin/src/value-mixin.class.d.ts +8 -8
  374. package/notification/src/notification.class.d.ts +1 -1
  375. package/number-box/src/number-box.component.d.ts +1 -1
  376. package/package.json +172 -284
  377. package/password-box/src/password-box.component.d.ts +1 -1
  378. package/picker/src/picker-column.component.d.ts +1 -1
  379. package/popover/src/popover.component.d.ts +1 -1
  380. package/popup/src/popup.service.d.ts +2 -2
  381. package/progress-bar/src/progress-bar.component.d.ts +1 -1
  382. package/radio/src/radio.component.d.ts +1 -1
  383. package/range-slider/src/range-slider.component.d.ts +1 -1
  384. package/result/src/result.component.d.ts +1 -1
  385. package/search-box/src/search-box.component.d.ts +1 -1
  386. package/select-box/src/selectbox.component.d.ts +1 -1
  387. package/selection-list/src/selection-list.component.d.ts +1 -1
  388. package/switch/src/switch.component.d.ts +1 -1
  389. package/tabs/src/tab-content.directive.d.ts +1 -1
  390. package/tabs/src/tab-item.component.d.ts +3 -3
  391. package/tabs/src/tabs.class.d.ts +1 -1
  392. package/tabs/src/tabs.component.d.ts +1 -1
  393. package/tag/src/tag.component.d.ts +1 -1
  394. package/textarea/src/textarea.component.d.ts +1 -1
  395. package/textbox/src/mask-options.directive.d.ts +2 -2
  396. package/textbox/src/textbox.component.d.ts +1 -1
  397. package/time-box/src/time-box.component.d.ts +2 -2
  398. package/tooltip/src/tooltip.component.d.ts +1 -1
  399. package/tooltip/src/tooltip.directive.d.ts +1 -1
  400. package/tree-view/src/tree-view.component.d.ts +1 -1
  401. package/uploader/src/uploader.component.d.ts +1 -1
  402. package/esm2020/action-sheet/src/action-sheet.component.mjs +0 -76
  403. package/esm2020/action-sheet/src/action-sheet.service.mjs +0 -91
  404. package/esm2020/alert/src/alert.component.mjs +0 -178
  405. package/esm2020/avatar/src/avatar.component.mjs +0 -41
  406. package/esm2020/badge/src/badge.component.mjs +0 -27
  407. package/esm2020/breadcrumbs/src/breadcrumbs-item.component.mjs +0 -46
  408. package/esm2020/breadcrumbs/src/breadcrumbs.component.mjs +0 -25
  409. package/esm2020/button/src/button-group.component.mjs +0 -88
  410. package/esm2020/button/src/button-item.component.mjs +0 -77
  411. package/esm2020/button/src/button.component.mjs +0 -85
  412. package/esm2020/calendar/src/calendar.class.mjs +0 -127
  413. package/esm2020/calendar/src/calendar.component.mjs +0 -382
  414. package/esm2020/calendar/src/calendar.module.mjs +0 -22
  415. package/esm2020/card/src/card.component.mjs +0 -17
  416. package/esm2020/checkbox/src/checkbox.component.mjs +0 -41
  417. package/esm2020/collapse/src/collapse-group.component.mjs +0 -50
  418. package/esm2020/collapse/src/collapse.component.mjs +0 -45
  419. package/esm2020/color-palette/src/color-palette-input.component.mjs +0 -129
  420. package/esm2020/color-palette/src/color-palette-picker.component.mjs +0 -158
  421. package/esm2020/color-palette/src/color-palette-preview.component.mjs +0 -60
  422. package/esm2020/color-palette/src/color-palette-swatches.component.mjs +0 -302
  423. package/esm2020/color-palette/src/color-palette.component.mjs +0 -74
  424. package/esm2020/color-picker/src/color-picker.component.mjs +0 -105
  425. package/esm2020/common/public-api.mjs +0 -16
  426. package/esm2020/common/src/classes/components.class.mjs +0 -69
  427. package/esm2020/common/src/classes/events.class.mjs +0 -58
  428. package/esm2020/common/src/components/base-component.class.mjs +0 -57
  429. package/esm2020/common/src/components/button-base-component.class.mjs +0 -68
  430. package/esm2020/common/src/components/color-component.class.mjs +0 -27
  431. package/esm2020/common/src/components/interactive-component.class.mjs +0 -62
  432. package/esm2020/common/src/directives/auto-focus.directive.mjs +0 -55
  433. package/esm2020/common/src/directives/debounce-time.directive.mjs +0 -47
  434. package/esm2020/common/src/directives/hotkey.directive.mjs +0 -79
  435. package/esm2020/common/src/directives/infinite-scroll.directive.mjs +0 -63
  436. package/esm2020/common/src/directives/responsive.directive.mjs +0 -34
  437. package/esm2020/common/src/services/custom-cdk-overlay.service.mjs +0 -48
  438. package/esm2020/common/src/services/hotkey.service.mjs +0 -38
  439. package/esm2020/common/src/services/overlay.service.mjs +0 -111
  440. package/esm2020/context-menu/src/context-menu.component.mjs +0 -260
  441. package/esm2020/data-pager/src/data-pager-base.component.mjs +0 -38
  442. package/esm2020/data-pager/src/data-pager-info.component.mjs +0 -57
  443. package/esm2020/data-pager/src/data-pager-input-selector.component.mjs +0 -51
  444. package/esm2020/data-pager/src/data-pager-next-buttons.components.mjs +0 -63
  445. package/esm2020/data-pager/src/data-pager-numeric-selector.component.mjs +0 -98
  446. package/esm2020/data-pager/src/data-pager-pagesize-dropdown.component.mjs +0 -85
  447. package/esm2020/data-pager/src/data-pager-prev-buttons.component.mjs +0 -59
  448. package/esm2020/data-pager/src/data-pager.component.mjs +0 -143
  449. package/esm2020/data-table/src/data-column-cell-template.directive.mjs +0 -17
  450. package/esm2020/data-table/src/data-column.directive.mjs +0 -43
  451. package/esm2020/data-table/src/data-table.component.mjs +0 -137
  452. package/esm2020/date-picker/src/datepicker.component.mjs +0 -249
  453. package/esm2020/decorators/src/close-button.component.mjs +0 -50
  454. package/esm2020/decorators/src/icon.component.mjs +0 -29
  455. package/esm2020/decorators/src/overlay.component.mjs +0 -22
  456. package/esm2020/decorators/src/sub-title.component.mjs +0 -27
  457. package/esm2020/decorators/src/text.component.mjs +0 -21
  458. package/esm2020/dialog/src/dialog.service.mjs +0 -151
  459. package/esm2020/drawer/src/drawer-container.component.mjs +0 -37
  460. package/esm2020/drawer/src/drawer.component.mjs +0 -140
  461. package/esm2020/dropdown/src/dropdown-panel.component.mjs +0 -101
  462. package/esm2020/form/src/form.component.mjs +0 -160
  463. package/esm2020/form/src/validation-rule.widget.mjs +0 -115
  464. package/esm2020/form/src/validation-summary.component.mjs +0 -105
  465. package/esm2020/image/src/image.component.mjs +0 -76
  466. package/esm2020/label/src/label.component.mjs +0 -45
  467. package/esm2020/loading/src/loading.component.mjs +0 -64
  468. package/esm2020/loading/src/loading.directive.mjs +0 -68
  469. package/esm2020/loading/src/loading.service.mjs +0 -156
  470. package/esm2020/menu/src/menu.component.mjs +0 -338
  471. package/esm2020/mixin/src/base-components.class.mjs +0 -110
  472. package/esm2020/mixin/src/base-menu-mixin.class.mjs +0 -138
  473. package/esm2020/mixin/src/button-mixin.class.mjs +0 -70
  474. package/esm2020/mixin/src/clickable-mixin.class.mjs +0 -24
  475. package/esm2020/mixin/src/color-look-mixing.class.mjs +0 -48
  476. package/esm2020/mixin/src/datalist-component.class.mjs +0 -163
  477. package/esm2020/mixin/src/dropdown-mixin.class.mjs +0 -99
  478. package/esm2020/mixin/src/interactive-mixin.class.mjs +0 -84
  479. package/esm2020/mixin/src/loading-mixin.class.mjs +0 -18
  480. package/esm2020/mixin/src/selection-component.class.mjs +0 -180
  481. package/esm2020/mixin/src/sizable-mixin.class.mjs +0 -18
  482. package/esm2020/mixin/src/textbox-mixin.class.mjs +0 -58
  483. package/esm2020/mixin/src/value-mixin.class.mjs +0 -230
  484. package/esm2020/notification/src/notification.component.mjs +0 -87
  485. package/esm2020/notification/src/notification.service.mjs +0 -107
  486. package/esm2020/number-box/src/number-box.component.mjs +0 -260
  487. package/esm2020/page/src/base-page.class.mjs +0 -61
  488. package/esm2020/page/src/page.component.mjs +0 -44
  489. package/esm2020/password-box/src/password-box.component.mjs +0 -62
  490. package/esm2020/picker/src/picker-column.component.mjs +0 -22
  491. package/esm2020/popover/src/popover.component.mjs +0 -248
  492. package/esm2020/popup/src/popup.component.mjs +0 -135
  493. package/esm2020/popup/src/popup.service.mjs +0 -114
  494. package/esm2020/range-slider/src/range-slider.component.mjs +0 -116
  495. package/esm2020/rating/src/rating.component.mjs +0 -41
  496. package/esm2020/result/src/result.component.mjs +0 -25
  497. package/esm2020/search-box/src/search-box.component.mjs +0 -52
  498. package/esm2020/select-box/src/selectbox.component.mjs +0 -380
  499. package/esm2020/tabs/src/tab-content.directive.mjs +0 -29
  500. package/esm2020/tabs/src/tab-item.component.mjs +0 -136
  501. package/esm2020/tabs/src/tabs.class.mjs +0 -4
  502. package/esm2020/textarea/src/textarea.component.mjs +0 -28
  503. package/esm2020/textbox/src/mask-options.directive.mjs +0 -17
  504. package/esm2020/textbox/src/textbox.component.mjs +0 -92
  505. package/esm2020/time-box/src/time-box.component.mjs +0 -296
  506. package/esm2020/toast/src/toast.component.mjs +0 -64
  507. package/esm2020/toast/src/toast.service.mjs +0 -134
  508. package/esm2020/tooltip/src/tooltip.component.mjs +0 -20
  509. package/esm2020/tooltip/src/tooltip.directive.mjs +0 -157
  510. package/esm2020/tree-view/src/tree-view.component.mjs +0 -108
  511. package/esm2020/uploader/src/uploader.component.mjs +0 -98
  512. package/fesm2015/acorex-components-action-sheet.mjs +0 -193
  513. package/fesm2015/acorex-components-action-sheet.mjs.map +0 -1
  514. package/fesm2015/acorex-components-alert.mjs +0 -208
  515. package/fesm2015/acorex-components-alert.mjs.map +0 -1
  516. package/fesm2015/acorex-components-avatar.mjs +0 -81
  517. package/fesm2015/acorex-components-avatar.mjs.map +0 -1
  518. package/fesm2015/acorex-components-breadcrumbs.mjs +0 -91
  519. package/fesm2015/acorex-components-breadcrumbs.mjs.map +0 -1
  520. package/fesm2015/acorex-components-button.mjs +0 -281
  521. package/fesm2015/acorex-components-button.mjs.map +0 -1
  522. package/fesm2015/acorex-components-calendar.mjs +0 -531
  523. package/fesm2015/acorex-components-calendar.mjs.map +0 -1
  524. package/fesm2015/acorex-components-card.mjs +0 -41
  525. package/fesm2015/acorex-components-checkbox.mjs +0 -67
  526. package/fesm2015/acorex-components-chips.mjs.map +0 -1
  527. package/fesm2015/acorex-components-collapse.mjs.map +0 -1
  528. package/fesm2015/acorex-components-color-palette.mjs +0 -772
  529. package/fesm2015/acorex-components-color-palette.mjs.map +0 -1
  530. package/fesm2015/acorex-components-color-picker.mjs +0 -172
  531. package/fesm2015/acorex-components-color-picker.mjs.map +0 -1
  532. package/fesm2015/acorex-components-common.mjs +0 -955
  533. package/fesm2015/acorex-components-common.mjs.map +0 -1
  534. package/fesm2015/acorex-components-context-menu.mjs +0 -301
  535. package/fesm2015/acorex-components-data-pager.mjs +0 -615
  536. package/fesm2015/acorex-components-data-pager.mjs.map +0 -1
  537. package/fesm2015/acorex-components-data-table.mjs +0 -224
  538. package/fesm2015/acorex-components-data-table.mjs.map +0 -1
  539. package/fesm2015/acorex-components-date-picker.mjs +0 -297
  540. package/fesm2015/acorex-components-date-picker.mjs.map +0 -1
  541. package/fesm2015/acorex-components-decorators.mjs +0 -356
  542. package/fesm2015/acorex-components-dialog.mjs +0 -233
  543. package/fesm2015/acorex-components-drawer.mjs +0 -202
  544. package/fesm2015/acorex-components-drawer.mjs.map +0 -1
  545. package/fesm2015/acorex-components-dropdown.mjs +0 -135
  546. package/fesm2015/acorex-components-dropdown.mjs.map +0 -1
  547. package/fesm2015/acorex-components-form.mjs +0 -450
  548. package/fesm2015/acorex-components-form.mjs.map +0 -1
  549. package/fesm2015/acorex-components-label.mjs.map +0 -1
  550. package/fesm2015/acorex-components-loading.mjs +0 -385
  551. package/fesm2015/acorex-components-loading.mjs.map +0 -1
  552. package/fesm2015/acorex-components-menu.mjs +0 -381
  553. package/fesm2015/acorex-components-menu.mjs.map +0 -1
  554. package/fesm2015/acorex-components-mixin.mjs.map +0 -1
  555. package/fesm2015/acorex-components-notification.mjs +0 -217
  556. package/fesm2015/acorex-components-notification.mjs.map +0 -1
  557. package/fesm2015/acorex-components-number-box.mjs +0 -300
  558. package/fesm2015/acorex-components-page.mjs +0 -127
  559. package/fesm2015/acorex-components-page.mjs.map +0 -1
  560. package/fesm2015/acorex-components-password-box.mjs +0 -99
  561. package/fesm2015/acorex-components-picker.mjs +0 -77
  562. package/fesm2015/acorex-components-popover.mjs +0 -278
  563. package/fesm2015/acorex-components-popup.mjs +0 -275
  564. package/fesm2015/acorex-components-popup.mjs.map +0 -1
  565. package/fesm2015/acorex-components-progress-bar.mjs +0 -57
  566. package/fesm2015/acorex-components-radio.mjs +0 -66
  567. package/fesm2015/acorex-components-range-slider.mjs +0 -148
  568. package/fesm2015/acorex-components-range-slider.mjs.map +0 -1
  569. package/fesm2015/acorex-components-rating.mjs +0 -65
  570. package/fesm2015/acorex-components-result.mjs +0 -49
  571. package/fesm2015/acorex-components-result.mjs.map +0 -1
  572. package/fesm2015/acorex-components-search-box.mjs +0 -84
  573. package/fesm2015/acorex-components-search-box.mjs.map +0 -1
  574. package/fesm2015/acorex-components-select-box.mjs +0 -453
  575. package/fesm2015/acorex-components-select-box.mjs.map +0 -1
  576. package/fesm2015/acorex-components-selection-list.mjs +0 -89
  577. package/fesm2015/acorex-components-switch.mjs +0 -91
  578. package/fesm2015/acorex-components-tabs.mjs +0 -299
  579. package/fesm2015/acorex-components-tag.mjs +0 -53
  580. package/fesm2015/acorex-components-tag.mjs.map +0 -1
  581. package/fesm2015/acorex-components-textarea.mjs +0 -52
  582. package/fesm2015/acorex-components-textarea.mjs.map +0 -1
  583. package/fesm2015/acorex-components-textbox.mjs +0 -149
  584. package/fesm2015/acorex-components-textbox.mjs.map +0 -1
  585. package/fesm2015/acorex-components-time-box.mjs +0 -336
  586. package/fesm2015/acorex-components-time-box.mjs.map +0 -1
  587. package/fesm2015/acorex-components-toast.mjs +0 -222
  588. package/fesm2015/acorex-components-toast.mjs.map +0 -1
  589. package/fesm2015/acorex-components-tooltip.mjs +0 -164
  590. package/fesm2015/acorex-components-tooltip.mjs.map +0 -1
  591. package/fesm2015/acorex-components-tree-view.mjs +0 -133
  592. package/fesm2015/acorex-components-uploader.mjs +0 -129
  593. package/fesm2015/acorex-components-uploader.mjs.map +0 -1
  594. package/fesm2020/acorex-components-badge.mjs +0 -53
  595. package/fesm2020/acorex-components-badge.mjs.map +0 -1
  596. package/fesm2020/acorex-components-button.mjs.map +0 -1
  597. package/fesm2020/acorex-components-calendar.mjs +0 -530
  598. package/fesm2020/acorex-components-calendar.mjs.map +0 -1
  599. package/fesm2020/acorex-components-card.mjs +0 -41
  600. package/fesm2020/acorex-components-card.mjs.map +0 -1
  601. package/fesm2020/acorex-components-checkbox.mjs.map +0 -1
  602. package/fesm2020/acorex-components-chips.mjs +0 -57
  603. package/fesm2020/acorex-components-collapse.mjs +0 -115
  604. package/fesm2020/acorex-components-color-picker.mjs +0 -169
  605. package/fesm2020/acorex-components-color-picker.mjs.map +0 -1
  606. package/fesm2020/acorex-components-common.mjs.map +0 -1
  607. package/fesm2020/acorex-components-context-menu.mjs.map +0 -1
  608. package/fesm2020/acorex-components-date-picker.mjs +0 -295
  609. package/fesm2020/acorex-components-date-picker.mjs.map +0 -1
  610. package/fesm2020/acorex-components-decorators.mjs.map +0 -1
  611. package/fesm2020/acorex-components-dialog.mjs.map +0 -1
  612. package/fesm2020/acorex-components-dropdown.mjs.map +0 -1
  613. package/fesm2020/acorex-components-form.mjs.map +0 -1
  614. package/fesm2020/acorex-components-image.mjs +0 -100
  615. package/fesm2020/acorex-components-image.mjs.map +0 -1
  616. package/fesm2020/acorex-components-label.mjs +0 -71
  617. package/fesm2020/acorex-components-label.mjs.map +0 -1
  618. package/fesm2020/acorex-components-mixin.mjs +0 -1259
  619. package/fesm2020/acorex-components-number-box.mjs.map +0 -1
  620. package/fesm2020/acorex-components-password-box.mjs +0 -99
  621. package/fesm2020/acorex-components-password-box.mjs.map +0 -1
  622. package/fesm2020/acorex-components-picker.mjs.map +0 -1
  623. package/fesm2020/acorex-components-popover.mjs.map +0 -1
  624. package/fesm2020/acorex-components-progress-bar.mjs.map +0 -1
  625. package/fesm2020/acorex-components-radio.mjs +0 -66
  626. package/fesm2020/acorex-components-radio.mjs.map +0 -1
  627. package/fesm2020/acorex-components-range-slider.mjs.map +0 -1
  628. package/fesm2020/acorex-components-rating.mjs +0 -65
  629. package/fesm2020/acorex-components-rating.mjs.map +0 -1
  630. package/fesm2020/acorex-components-selection-list.mjs.map +0 -1
  631. package/fesm2020/acorex-components-switch.mjs.map +0 -1
  632. package/fesm2020/acorex-components-tabs.mjs.map +0 -1
  633. package/fesm2020/acorex-components-textarea.mjs +0 -52
  634. package/fesm2020/acorex-components-tree-view.mjs +0 -133
  635. package/fesm2020/acorex-components-tree-view.mjs.map +0 -1
  636. package/fesm2020/acorex-components.mjs +0 -12
  637. package/fesm2020/acorex-components.mjs.map +0 -1
  638. /package/{esm2020 → esm2022}/acorex-components.mjs +0 -0
  639. /package/{esm2020 → esm2022}/action-sheet/acorex-components-action-sheet.mjs +0 -0
  640. /package/{esm2020 → esm2022}/action-sheet/public-api.mjs +0 -0
  641. /package/{esm2020 → esm2022}/action-sheet/src/action-sheet.interface.mjs +0 -0
  642. /package/{esm2020 → esm2022}/alert/acorex-components-alert.mjs +0 -0
  643. /package/{esm2020 → esm2022}/alert/public-api.mjs +0 -0
  644. /package/{esm2020 → esm2022}/avatar/acorex-components-avatar.mjs +0 -0
  645. /package/{esm2020 → esm2022}/avatar/public-api.mjs +0 -0
  646. /package/{esm2020 → esm2022}/badge/acorex-components-badge.mjs +0 -0
  647. /package/{esm2020 → esm2022}/badge/public-api.mjs +0 -0
  648. /package/{esm2020 → esm2022}/breadcrumbs/acorex-components-breadcrumbs.mjs +0 -0
  649. /package/{esm2020 → esm2022}/breadcrumbs/public-api.mjs +0 -0
  650. /package/{esm2020 → esm2022}/breadcrumbs/src/breadcrumbs-item.class.mjs +0 -0
  651. /package/{esm2020 → esm2022}/button/acorex-components-button.mjs +0 -0
  652. /package/{esm2020 → esm2022}/button/public-api.mjs +0 -0
  653. /package/{esm2020 → esm2022}/button/src/button-item.class.mjs +0 -0
  654. /package/{esm2020 → esm2022}/calendar/acorex-components-calendar.mjs +0 -0
  655. /package/{esm2020 → esm2022}/card/acorex-components-card.mjs +0 -0
  656. /package/{esm2020 → esm2022}/card/public-api.mjs +0 -0
  657. /package/{esm2020 → esm2022}/checkbox/acorex-components-checkbox.mjs +0 -0
  658. /package/{esm2020 → esm2022}/checkbox/public-api.mjs +0 -0
  659. /package/{esm2020 → esm2022}/chips/acorex-components-chips.mjs +0 -0
  660. /package/{esm2020 → esm2022}/chips/public-api.mjs +0 -0
  661. /package/{esm2020 → esm2022}/collapse/acorex-components-collapse.mjs +0 -0
  662. /package/{esm2020 → esm2022}/collapse/public-api.mjs +0 -0
  663. /package/{esm2020 → esm2022}/color-palette/acorex-components-color-palette.mjs +0 -0
  664. /package/{esm2020 → esm2022}/color-palette/public-api.mjs +0 -0
  665. /package/{esm2020 → esm2022}/color-picker/acorex-components-color-picker.mjs +0 -0
  666. /package/{esm2020 → esm2022}/color-picker/public-api.mjs +0 -0
  667. /package/{esm2020 → esm2022}/common/acorex-components-common.mjs +0 -0
  668. /package/{esm2020 → esm2022}/common/src/classes/drawing.class.mjs +0 -0
  669. /package/{esm2020 → esm2022}/common/src/classes/styles.class.mjs +0 -0
  670. /package/{esm2020 → esm2022}/common/src/components/colorlook-component.class.mjs +0 -0
  671. /package/{esm2020 → esm2022}/common/src/constant/positions.mjs +0 -0
  672. /package/{esm2020 → esm2022}/context-menu/acorex-components-context-menu.mjs +0 -0
  673. /package/{esm2020 → esm2022}/context-menu/public-api.mjs +0 -0
  674. /package/{esm2020 → esm2022}/data-pager/acorex-components-data-pager.mjs +0 -0
  675. /package/{esm2020 → esm2022}/data-pager/public-api.mjs +0 -0
  676. /package/{esm2020 → esm2022}/data-table/acorex-components-data-table.mjs +0 -0
  677. /package/{esm2020 → esm2022}/data-table/public-api.mjs +0 -0
  678. /package/{esm2020 → esm2022}/date-picker/acorex-components-date-picker.mjs +0 -0
  679. /package/{esm2020 → esm2022}/date-picker/public-api.mjs +0 -0
  680. /package/{esm2020 → esm2022}/decorators/acorex-components-decorators.mjs +0 -0
  681. /package/{esm2020 → esm2022}/decorators/public-api.mjs +0 -0
  682. /package/{esm2020 → esm2022}/dialog/acorex-components-dialog.mjs +0 -0
  683. /package/{esm2020 → esm2022}/dialog/public-api.mjs +0 -0
  684. /package/{esm2020 → esm2022}/dialog/src/dialog.class.mjs +0 -0
  685. /package/{esm2020 → esm2022}/drawer/acorex-components-drawer.mjs +0 -0
  686. /package/{esm2020 → esm2022}/drawer/public-api.mjs +0 -0
  687. /package/{esm2020 → esm2022}/dropdown/acorex-components-dropdown.mjs +0 -0
  688. /package/{esm2020 → esm2022}/dropdown/public-api.mjs +0 -0
  689. /package/{esm2020 → esm2022}/form/acorex-components-form.mjs +0 -0
  690. /package/{esm2020 → esm2022}/form/public-api.mjs +0 -0
  691. /package/{esm2020 → esm2022}/form/src/validation.class.mjs +0 -0
  692. /package/{esm2020 → esm2022}/image/acorex-components-image.mjs +0 -0
  693. /package/{esm2020 → esm2022}/image/public-api.mjs +0 -0
  694. /package/{esm2020 → esm2022}/label/acorex-components-label.mjs +0 -0
  695. /package/{esm2020 → esm2022}/label/public-api.mjs +0 -0
  696. /package/{esm2020 → esm2022}/loading/acorex-components-loading.mjs +0 -0
  697. /package/{esm2020 → esm2022}/loading/public-api.mjs +0 -0
  698. /package/{esm2020 → esm2022}/menu/acorex-components-menu.mjs +0 -0
  699. /package/{esm2020 → esm2022}/menu/public-api.mjs +0 -0
  700. /package/{esm2020 → esm2022}/mixin/acorex-components-mixin.mjs +0 -0
  701. /package/{esm2020 → esm2022}/mixin/public-api.mjs +0 -0
  702. /package/{esm2020 → esm2022}/mixin/src/constratctor.mjs +0 -0
  703. /package/{esm2020 → esm2022}/mixin/src/datalist.class.mjs +0 -0
  704. /package/{esm2020 → esm2022}/mixin/src/mixin.class.mjs +0 -0
  705. /package/{esm2020 → esm2022}/mixin/src/page-component.class.mjs +0 -0
  706. /package/{esm2020 → esm2022}/notification/acorex-components-notification.mjs +0 -0
  707. /package/{esm2020 → esm2022}/notification/public-api.mjs +0 -0
  708. /package/{esm2020 → esm2022}/notification/src/notification.class.mjs +0 -0
  709. /package/{esm2020 → esm2022}/number-box/acorex-components-number-box.mjs +0 -0
  710. /package/{esm2020 → esm2022}/number-box/public-api.mjs +0 -0
  711. /package/{esm2020 → esm2022}/page/acorex-components-page.mjs +0 -0
  712. /package/{esm2020 → esm2022}/page/public-api.mjs +0 -0
  713. /package/{esm2020 → esm2022}/password-box/acorex-components-password-box.mjs +0 -0
  714. /package/{esm2020 → esm2022}/password-box/public-api.mjs +0 -0
  715. /package/{esm2020 → esm2022}/picker/acorex-components-picker.mjs +0 -0
  716. /package/{esm2020 → esm2022}/picker/public-api.mjs +0 -0
  717. /package/{esm2020 → esm2022}/popover/acorex-components-popover.mjs +0 -0
  718. /package/{esm2020 → esm2022}/popover/public-api.mjs +0 -0
  719. /package/{esm2020 → esm2022}/popup/acorex-components-popup.mjs +0 -0
  720. /package/{esm2020 → esm2022}/popup/public-api.mjs +0 -0
  721. /package/{esm2020 → esm2022}/progress-bar/acorex-components-progress-bar.mjs +0 -0
  722. /package/{esm2020 → esm2022}/progress-bar/public-api.mjs +0 -0
  723. /package/{esm2020 → esm2022}/public-api.mjs +0 -0
  724. /package/{esm2020 → esm2022}/radio/acorex-components-radio.mjs +0 -0
  725. /package/{esm2020 → esm2022}/radio/public-api.mjs +0 -0
  726. /package/{esm2020 → esm2022}/range-slider/acorex-components-range-slider.mjs +0 -0
  727. /package/{esm2020 → esm2022}/range-slider/public-api.mjs +0 -0
  728. /package/{esm2020 → esm2022}/rating/acorex-components-rating.mjs +0 -0
  729. /package/{esm2020 → esm2022}/rating/public-api.mjs +0 -0
  730. /package/{esm2020 → esm2022}/result/acorex-components-result.mjs +0 -0
  731. /package/{esm2020 → esm2022}/result/public-api.mjs +0 -0
  732. /package/{esm2020 → esm2022}/search-box/acorex-components-search-box.mjs +0 -0
  733. /package/{esm2020 → esm2022}/search-box/public-api.mjs +0 -0
  734. /package/{esm2020 → esm2022}/select-box/acorex-components-select-box.mjs +0 -0
  735. /package/{esm2020 → esm2022}/select-box/public-api.mjs +0 -0
  736. /package/{esm2020 → esm2022}/selection-list/acorex-components-selection-list.mjs +0 -0
  737. /package/{esm2020 → esm2022}/selection-list/public-api.mjs +0 -0
  738. /package/{esm2020 → esm2022}/switch/acorex-components-switch.mjs +0 -0
  739. /package/{esm2020 → esm2022}/switch/public-api.mjs +0 -0
  740. /package/{esm2020 → esm2022}/tabs/acorex-components-tabs.mjs +0 -0
  741. /package/{esm2020 → esm2022}/tabs/public-api.mjs +0 -0
  742. /package/{esm2020 → esm2022}/tag/acorex-components-tag.mjs +0 -0
  743. /package/{esm2020 → esm2022}/tag/public-api.mjs +0 -0
  744. /package/{esm2020 → esm2022}/textarea/acorex-components-textarea.mjs +0 -0
  745. /package/{esm2020 → esm2022}/textarea/public-api.mjs +0 -0
  746. /package/{esm2020 → esm2022}/textbox/acorex-components-textbox.mjs +0 -0
  747. /package/{esm2020 → esm2022}/textbox/public-api.mjs +0 -0
  748. /package/{esm2020 → esm2022}/time-box/acorex-components-time-box.mjs +0 -0
  749. /package/{esm2020 → esm2022}/time-box/public-api.mjs +0 -0
  750. /package/{esm2020 → esm2022}/toast/acorex-components-toast.mjs +0 -0
  751. /package/{esm2020 → esm2022}/toast/public-api.mjs +0 -0
  752. /package/{esm2020 → esm2022}/toast/src/toast.class.mjs +0 -0
  753. /package/{esm2020 → esm2022}/tooltip/acorex-components-tooltip.mjs +0 -0
  754. /package/{esm2020 → esm2022}/tooltip/public-api.mjs +0 -0
  755. /package/{esm2020 → esm2022}/tree-view/acorex-components-tree-view.mjs +0 -0
  756. /package/{esm2020 → esm2022}/tree-view/public-api.mjs +0 -0
  757. /package/{esm2020 → esm2022}/uploader/acorex-components-uploader.mjs +0 -0
  758. /package/{esm2020 → esm2022}/uploader/public-api.mjs +0 -0
  759. /package/{fesm2015 → fesm2022}/acorex-components.mjs.map +0 -0
@@ -0,0 +1,101 @@
1
+ import { AXBaseComponentMixin } from '@acorex/components/mixin';
2
+ import { Component, EventEmitter, HostBinding, HostListener, Input, Output, ViewChild, ViewEncapsulation, } from '@angular/core';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@acorex/core/file";
5
+ import * as i2 from "@angular/common";
6
+ export class AXUploaderComponent extends AXBaseComponentMixin {
7
+ _fileService;
8
+ onValueChanged = new EventEmitter();
9
+ firstInit = true;
10
+ _showText = true;
11
+ constructor(elementRef, cdr, _fileService) {
12
+ super(elementRef, cdr);
13
+ this._fileService = _fileService;
14
+ }
15
+ _placeholder;
16
+ multiple = false;
17
+ accept = '*/*';
18
+ _dropArea;
19
+ async _handleClick(e) {
20
+ const files = await this._fileService.choose({
21
+ accept: this.accept,
22
+ multiple: this.multiple,
23
+ });
24
+ this._handleFiles(files);
25
+ }
26
+ async _handleDrop(e) {
27
+ let dt = e.dataTransfer;
28
+ let files = dt.files;
29
+ this._handleFiles(Array.from(files));
30
+ e.preventDefault();
31
+ }
32
+ _handleFiles(files) {
33
+ this.onValueChanged.emit({
34
+ component: this,
35
+ isUserInteraction: true,
36
+ value: files,
37
+ htmlElement: this._getHostElement(),
38
+ });
39
+ }
40
+ onInit() {
41
+ this._dropArea = this._getHostElement();
42
+ ['dragenter', 'dragover', 'dragleave', 'drop'].forEach((eventName) => {
43
+ this._dropArea.addEventListener(eventName, this.preventDefaults, false);
44
+ });
45
+ ['dragenter', 'dragover'].forEach((eventName) => {
46
+ this._dropArea.addEventListener(eventName, this._handleHighlight.bind(this), false);
47
+ });
48
+ ['dragleave', 'drop'].forEach((eventName) => {
49
+ this._dropArea.addEventListener(eventName, this._handleUnhighlight.bind(this), false);
50
+ });
51
+ }
52
+ ngDoCheck() {
53
+ this.checkIsBoxHasMinWidth();
54
+ }
55
+ checkIsBoxHasMinWidth() {
56
+ this.firstInit = false;
57
+ let boxWidth = this._getHostElement().getBoundingClientRect().width;
58
+ console.log(boxWidth);
59
+ if (boxWidth <= 176 && this.firstInit === false) {
60
+ this._showText = false;
61
+ }
62
+ }
63
+ preventDefaults(e) {
64
+ e.preventDefault();
65
+ e.stopPropagation();
66
+ }
67
+ _handleHighlight(e) {
68
+ this._dropArea.classList.add('ax-state-hover');
69
+ }
70
+ _handleUnhighlight(e) {
71
+ this._dropArea.classList.remove('ax-state-hover');
72
+ }
73
+ get __defaultClass() {
74
+ return !this._placeholder?.nativeElement.childNodes.length;
75
+ }
76
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXUploaderComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1.AXFileService }], target: i0.ɵɵFactoryTarget.Component });
77
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: AXUploaderComponent, selector: "ax-uploader", inputs: { multiple: "multiple", accept: "accept" }, outputs: { onValueChanged: "onValueChanged" }, host: { listeners: { "click": "_handleClick($event)", "drop": "_handleDrop($event)" }, properties: { "class.ax-look-default": "this.__defaultClass" } }, viewQueries: [{ propertyName: "_placeholder", first: true, predicate: ["contentRef"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-container>\r\n <div #contentRef><ng-content></ng-content></div>\r\n</ng-container>\r\n<ng-container *ngIf=\"contentRef.childNodes.length == 0\">\r\n <i class=\"ax-icon ax-icon-upload upload-icon\"></i>\r\n <div class=\"ax-uploader-hint\" *ngIf=\"_showText\">Drag your file here or, <span class=\"ax-text-primary-500\">click to\r\n browse</span></div>\r\n</ng-container>", styles: ["ax-uploader.ax-look-default{position:relative;width:100%;color:rgba(var(--ax-color-text-default));border-radius:var(--ax-rounded-border-default);border-width:2px;border-style:dashed;border-color:rgba(var(--ax-color-border-default));display:flex;align-items:center;justify-content:center;cursor:pointer;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;background-position:center;background-size:cover}ax-uploader.ax-look-default:hover,ax-uploader.ax-look-default.ax-state-hover{border-color:rgba(var(--ax-color-primary-500));color:rgba(var(--ax-color-primary-500))}ax-uploader.ax-look-default:before{content:\"\";padding-bottom:100%}ax-uploader.ax-look-default .upload-icon{font-size:3rem}ax-uploader.ax-look-default .ax-uploader-hint{padding:1rem;text-align:center}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
78
+ }
79
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXUploaderComponent, decorators: [{
80
+ type: Component,
81
+ args: [{ selector: 'ax-uploader', encapsulation: ViewEncapsulation.None, template: "<ng-container>\r\n <div #contentRef><ng-content></ng-content></div>\r\n</ng-container>\r\n<ng-container *ngIf=\"contentRef.childNodes.length == 0\">\r\n <i class=\"ax-icon ax-icon-upload upload-icon\"></i>\r\n <div class=\"ax-uploader-hint\" *ngIf=\"_showText\">Drag your file here or, <span class=\"ax-text-primary-500\">click to\r\n browse</span></div>\r\n</ng-container>", styles: ["ax-uploader.ax-look-default{position:relative;width:100%;color:rgba(var(--ax-color-text-default));border-radius:var(--ax-rounded-border-default);border-width:2px;border-style:dashed;border-color:rgba(var(--ax-color-border-default));display:flex;align-items:center;justify-content:center;cursor:pointer;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;background-position:center;background-size:cover}ax-uploader.ax-look-default:hover,ax-uploader.ax-look-default.ax-state-hover{border-color:rgba(var(--ax-color-primary-500));color:rgba(var(--ax-color-primary-500))}ax-uploader.ax-look-default:before{content:\"\";padding-bottom:100%}ax-uploader.ax-look-default .upload-icon{font-size:3rem}ax-uploader.ax-look-default .ax-uploader-hint{padding:1rem;text-align:center}\n"] }]
82
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.AXFileService }]; }, propDecorators: { onValueChanged: [{
83
+ type: Output
84
+ }], _placeholder: [{
85
+ type: ViewChild,
86
+ args: ['contentRef', { static: true }]
87
+ }], multiple: [{
88
+ type: Input
89
+ }], accept: [{
90
+ type: Input
91
+ }], _handleClick: [{
92
+ type: HostListener,
93
+ args: ['click', ['$event']]
94
+ }], _handleDrop: [{
95
+ type: HostListener,
96
+ args: ['drop', ['$event']]
97
+ }], __defaultClass: [{
98
+ type: HostBinding,
99
+ args: ['class.ax-look-default']
100
+ }] } });
101
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBsb2FkZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWNvcmV4L2NvbXBvbmVudHMvdXBsb2FkZXIvc3JjL3VwbG9hZGVyLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fjb3JleC9jb21wb25lbnRzL3VwbG9hZGVyL3NyYy91cGxvYWRlci5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUVoRSxPQUFPLEVBRUwsU0FBUyxFQUVULFlBQVksRUFDWixXQUFXLEVBQ1gsWUFBWSxFQUNaLEtBQUssRUFDTCxNQUFNLEVBQ04sU0FBUyxFQUNULGlCQUFpQixHQUNsQixNQUFNLGVBQWUsQ0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yB5b3VyIGZpbGUgaGVyZSBvciwgPHNwYW4gY2xhc3M9XCJheC10ZXh0LXByaW1hcnktNTAwXCI+Y2xpY2sgdG9cclxuICAgICAgICAgICAgYnJvd3NlPC9zcGFuPjwvZGl2PlxyXG48L25nLWNvbnRhaW5lcj4iXX0=
@@ -4,11 +4,11 @@ import { AXUploaderComponent } from './uploader.component';
4
4
  import { AXDecoratorModule } from '@acorex/components/decorators';
5
5
  import * as i0 from "@angular/core";
6
6
  export class AXUploaderModule {
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXUploaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
8
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: AXUploaderModule, declarations: [AXUploaderComponent], imports: [CommonModule, AXDecoratorModule], exports: [AXUploaderComponent] });
9
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXUploaderModule, imports: [CommonModule, AXDecoratorModule] });
7
10
  }
8
- AXUploaderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXUploaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
9
- AXUploaderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.4", ngImport: i0, type: AXUploaderModule, declarations: [AXUploaderComponent], imports: [CommonModule, AXDecoratorModule], exports: [AXUploaderComponent] });
10
- AXUploaderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXUploaderModule, imports: [CommonModule, AXDecoratorModule] });
11
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXUploaderModule, decorators: [{
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXUploaderModule, decorators: [{
12
12
  type: NgModule,
13
13
  args: [{
14
14
  declarations: [AXUploaderComponent],
@@ -17,4 +17,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
17
17
  providers: [],
18
18
  }]
19
19
  }] });
20
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBsb2FkZXIubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWNvcmV4L2NvbXBvbmVudHMvdXBsb2FkZXIvc3JjL3VwbG9hZGVyLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUMzRCxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQzs7QUFRbEUsTUFBTSxPQUFPLGdCQUFnQjs7NkdBQWhCLGdCQUFnQjs4R0FBaEIsZ0JBQWdCLGlCQUxaLG1CQUFtQixhQUN4QixZQUFZLEVBQUMsaUJBQWlCLGFBQzlCLG1CQUFtQjs4R0FHbEIsZ0JBQWdCLFlBSmpCLFlBQVksRUFBQyxpQkFBaUI7MkZBSTdCLGdCQUFnQjtrQkFONUIsUUFBUTttQkFBQztvQkFDUixZQUFZLEVBQUUsQ0FBQyxtQkFBbUIsQ0FBQztvQkFDbkMsT0FBTyxFQUFFLENBQUMsWUFBWSxFQUFDLGlCQUFpQixDQUFDO29CQUN6QyxPQUFPLEVBQUUsQ0FBQyxtQkFBbUIsQ0FBQztvQkFDOUIsU0FBUyxF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9kdWxlIHsgfVxyXG4iXX0=
@@ -16,14 +16,18 @@ import { AXTranslator } from '@acorex/core/translation';
16
16
  import * as i1$1 from '@angular/cdk/overlay';
17
17
 
18
18
  class AXActionSheetComponent extends AXBaseComponent {
19
+ _viewContainerRef;
20
+ _selectedPortal;
21
+ title;
22
+ items = [];
23
+ content;
24
+ showCloseButton = true;
25
+ showHeader = true;
26
+ data = {};
27
+ onClosed = new EventEmitter();
19
28
  constructor(elementRef, cdr, _viewContainerRef) {
20
29
  super(elementRef, cdr);
21
30
  this._viewContainerRef = _viewContainerRef;
22
- this.items = [];
23
- this.showCloseButton = true;
24
- this.showHeader = true;
25
- this.data = {};
26
- this.onClosed = new EventEmitter();
27
31
  }
28
32
  close() {
29
33
  this.onClosed.emit({
@@ -72,10 +76,10 @@ class AXActionSheetComponent extends AXBaseComponent {
72
76
  _handleCloseClick() {
73
77
  this.close();
74
78
  }
79
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXActionSheetComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
80
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: AXActionSheetComponent, selector: "ax-action-sheet", host: { listeners: { "keydown.escape": "onKeydownHandler($event)" } }, usesInheritance: true, ngImport: i0, template: "<ax-header>\r\n <ax-title>{{ title }}</ax-title>\r\n <ax-close-button (click)=\"_handleCloseClick()\" tabindex=\"1\"></ax-close-button>\r\n</ax-header>\r\n<ng-template *ngIf=\"_selectedPortal\">\r\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\r\n</ng-template>\r\n<!-- TODO: Are you sure we need this? if remove this content not showing -->\r\n<ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\r\n<div class=\"ax-action-sheet-items\">\r\n <ng-container *ngFor=\"let item of items\">\r\n <div class=\"ax-action-sheet-item ax-{{ item.color }}\" [class.ax-state-disabled]=\"item.disabled\" (click)=\"item.onClick()\">\r\n <span class=\"item-icon\" *ngIf=\"item.icon\" [class]=\"item.icon\"></span>\r\n <span class=\"item-text\">{{ item.text }}</span>\r\n </div>\r\n </ng-container>\r\n</div>\r\n", styles: ["@media (max-width: 599px){ax-action-sheet{width:100vw}}@media (min-width: 600px){ax-action-sheet{width:75vw}}@media (min-width: 1200px){ax-action-sheet{width:30vw}}@media (min-width: 1800px){ax-action-sheet{width:25vw}}ax-action-sheet ax-header{padding:.75rem}ax-action-sheet .ax-action-sheet-items{padding:.5rem 0}ax-action-sheet .ax-action-sheet-items .ax-action-sheet-item{-webkit-user-select:none;user-select:none;cursor:pointer;padding:.75rem 1rem;display:flex}ax-action-sheet .ax-action-sheet-items .ax-action-sheet-item:hover{background-color:rgba(var(--ax-color-on-surface))}ax-action-sheet .ax-action-sheet-items .ax-action-sheet-item .item-icon{font-size:1.5rem;margin-inline-end:.75rem}ax-action-sheet .ax-action-sheet-items .ax-action-sheet-item.ax-primary{color:rgba(var(--ax-color-primary-500))}ax-action-sheet .ax-action-sheet-items .ax-action-sheet-item.ax-secondary{color:rgba(var(--ax-color-secondary-500))}ax-action-sheet .ax-action-sheet-items .ax-action-sheet-item.ax-success{color:rgba(var(--ax-color-success-500))}ax-action-sheet .ax-action-sheet-items .ax-action-sheet-item.ax-warning{color:rgba(var(--ax-color-warning-500))}ax-action-sheet .ax-action-sheet-items .ax-action-sheet-item.ax-danger{color:rgba(var(--ax-color-danger-500))}ax-action-sheet .ax-action-sheet-items .ax-action-sheet-item.ax-info{color:rgba(var(--ax-color-info-500))}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "component", type: i3.AXDecoratorHeaderComponent, selector: "ax-header" }, { kind: "component", type: i3.AXDecoratorTitleComponent, selector: "ax-title" }, { kind: "component", type: i3.AXDecoratorCloseButtonComponent, selector: "ax-close-button", inputs: ["icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
75
81
  }
76
- AXActionSheetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXActionSheetComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
77
- AXActionSheetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: AXActionSheetComponent, selector: "ax-action-sheet", host: { listeners: { "keydown.escape": "onKeydownHandler($event)" } }, usesInheritance: true, ngImport: i0, template: "<ax-header>\r\n <ax-title>{{ title }}</ax-title>\r\n <ax-close-button (click)=\"_handleCloseClick()\" tabindex=\"1\"></ax-close-button>\r\n</ax-header>\r\n<ng-template *ngIf=\"_selectedPortal\">\r\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\r\n</ng-template>\r\n<!-- TODO: Are you sure we need this? if remove this content not showing -->\r\n<ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\r\n<div class=\"ax-action-sheet-items\">\r\n <ng-container *ngFor=\"let item of items\">\r\n <div class=\"ax-action-sheet-item ax-{{ item.color }}\" [class.ax-state-disabled]=\"item.disabled\" (click)=\"item.onClick()\">\r\n <span class=\"item-icon\" *ngIf=\"item.icon\" [class]=\"item.icon\"></span>\r\n <span class=\"item-text\">{{ item.text }}</span>\r\n </div>\r\n </ng-container>\r\n</div>\r\n", styles: ["@media (max-width: 599px){ax-action-sheet{width:100vw}}@media (min-width: 600px){ax-action-sheet{width:75vw}}@media (min-width: 1200px){ax-action-sheet{width:30vw}}@media (min-width: 1800px){ax-action-sheet{width:25vw}}ax-action-sheet ax-header{padding:.75rem}ax-action-sheet .ax-action-sheet-items{padding:.5rem 0}ax-action-sheet .ax-action-sheet-items .ax-action-sheet-item{-webkit-user-select:none;user-select:none;cursor:pointer;padding:.75rem 1rem;display:flex}ax-action-sheet .ax-action-sheet-items .ax-action-sheet-item:hover{background-color:rgba(var(--ax-color-on-surface))}ax-action-sheet .ax-action-sheet-items .ax-action-sheet-item .item-icon{font-size:1.5rem;margin-inline-end:.75rem}ax-action-sheet .ax-action-sheet-items .ax-action-sheet-item.ax-primary{color:rgba(var(--ax-color-primary-500))}ax-action-sheet .ax-action-sheet-items .ax-action-sheet-item.ax-secondary{color:rgba(var(--ax-color-secondary-500))}ax-action-sheet .ax-action-sheet-items .ax-action-sheet-item.ax-success{color:rgba(var(--ax-color-success-500))}ax-action-sheet .ax-action-sheet-items .ax-action-sheet-item.ax-warning{color:rgba(var(--ax-color-warning-500))}ax-action-sheet .ax-action-sheet-items .ax-action-sheet-item.ax-danger{color:rgba(var(--ax-color-danger-500))}ax-action-sheet .ax-action-sheet-items .ax-action-sheet-item.ax-info{color:rgba(var(--ax-color-info-500))}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "component", type: i3.AXDecoratorHeaderComponent, selector: "ax-header" }, { kind: "component", type: i3.AXDecoratorTitleComponent, selector: "ax-title" }, { kind: "component", type: i3.AXDecoratorCloseButtonComponent, selector: "ax-close-button", inputs: ["icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
78
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXActionSheetComponent, decorators: [{
82
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXActionSheetComponent, decorators: [{
79
83
  type: Component,
80
84
  args: [{ selector: 'ax-action-sheet', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ax-header>\r\n <ax-title>{{ title }}</ax-title>\r\n <ax-close-button (click)=\"_handleCloseClick()\" tabindex=\"1\"></ax-close-button>\r\n</ax-header>\r\n<ng-template *ngIf=\"_selectedPortal\">\r\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\r\n</ng-template>\r\n<!-- TODO: Are you sure we need this? if remove this content not showing -->\r\n<ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\r\n<div class=\"ax-action-sheet-items\">\r\n <ng-container *ngFor=\"let item of items\">\r\n <div class=\"ax-action-sheet-item ax-{{ item.color }}\" [class.ax-state-disabled]=\"item.disabled\" (click)=\"item.onClick()\">\r\n <span class=\"item-icon\" *ngIf=\"item.icon\" [class]=\"item.icon\"></span>\r\n <span class=\"item-text\">{{ item.text }}</span>\r\n </div>\r\n </ng-container>\r\n</div>\r\n", styles: ["@media (max-width: 599px){ax-action-sheet{width:100vw}}@media (min-width: 600px){ax-action-sheet{width:75vw}}@media (min-width: 1200px){ax-action-sheet{width:30vw}}@media (min-width: 1800px){ax-action-sheet{width:25vw}}ax-action-sheet ax-header{padding:.75rem}ax-action-sheet .ax-action-sheet-items{padding:.5rem 0}ax-action-sheet .ax-action-sheet-items .ax-action-sheet-item{-webkit-user-select:none;user-select:none;cursor:pointer;padding:.75rem 1rem;display:flex}ax-action-sheet .ax-action-sheet-items .ax-action-sheet-item:hover{background-color:rgba(var(--ax-color-on-surface))}ax-action-sheet .ax-action-sheet-items .ax-action-sheet-item .item-icon{font-size:1.5rem;margin-inline-end:.75rem}ax-action-sheet .ax-action-sheet-items .ax-action-sheet-item.ax-primary{color:rgba(var(--ax-color-primary-500))}ax-action-sheet .ax-action-sheet-items .ax-action-sheet-item.ax-secondary{color:rgba(var(--ax-color-secondary-500))}ax-action-sheet .ax-action-sheet-items .ax-action-sheet-item.ax-success{color:rgba(var(--ax-color-success-500))}ax-action-sheet .ax-action-sheet-items .ax-action-sheet-item.ax-warning{color:rgba(var(--ax-color-warning-500))}ax-action-sheet .ax-action-sheet-items .ax-action-sheet-item.ax-danger{color:rgba(var(--ax-color-danger-500))}ax-action-sheet .ax-action-sheet-items .ax-action-sheet-item.ax-info{color:rgba(var(--ax-color-info-500))}\n"] }]
81
85
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.ViewContainerRef }]; }, propDecorators: { onKeydownHandler: [{
@@ -85,11 +89,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
85
89
 
86
90
  const MODULES = [CommonModule, AXCommonModule, DragDropModule, A11yModule, AXButtonModule, PortalModule, AXDecoratorModule];
87
91
  class AXActionSheetModule {
92
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXActionSheetModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
93
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: AXActionSheetModule, declarations: [AXActionSheetComponent], imports: [CommonModule, AXCommonModule, DragDropModule, A11yModule, AXButtonModule, PortalModule, AXDecoratorModule], exports: [AXActionSheetComponent] });
94
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXActionSheetModule, imports: [MODULES] });
88
95
  }
89
- AXActionSheetModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXActionSheetModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
90
- AXActionSheetModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.4", ngImport: i0, type: AXActionSheetModule, declarations: [AXActionSheetComponent], imports: [CommonModule, AXCommonModule, DragDropModule, A11yModule, AXButtonModule, PortalModule, AXDecoratorModule], exports: [AXActionSheetComponent] });
91
- AXActionSheetModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXActionSheetModule, imports: [MODULES] });
92
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXActionSheetModule, decorators: [{
96
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXActionSheetModule, decorators: [{
93
97
  type: NgModule,
94
98
  args: [{
95
99
  declarations: [AXActionSheetComponent],
@@ -100,6 +104,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
100
104
  }] });
101
105
 
102
106
  class AXActionSheetService {
107
+ _overlay;
108
+ overlayService;
103
109
  // _overlayRef: OverlayRef;
104
110
  // _templatePortal!: ComponentPortal<any>;
105
111
  constructor(_overlay, overlayService) {
@@ -175,10 +181,10 @@ class AXActionSheetService {
175
181
  closeFunc(result);
176
182
  }
177
183
  }
184
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXActionSheetService, deps: [{ token: i1$1.Overlay }, { token: i2$1.AXOverlayService }], target: i0.ɵɵFactoryTarget.Injectable });
185
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXActionSheetService, providedIn: 'root' });
178
186
  }
179
- AXActionSheetService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXActionSheetService, deps: [{ token: i1$1.Overlay }, { token: i2$1.AXOverlayService }], target: i0.ɵɵFactoryTarget.Injectable });
180
- AXActionSheetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXActionSheetService, providedIn: 'root' });
181
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXActionSheetService, decorators: [{
187
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXActionSheetService, decorators: [{
182
188
  type: Injectable,
183
189
  args: [{ providedIn: 'root' }]
184
190
  }], ctorParameters: function () { return [{ type: i1$1.Overlay }, { type: i2$1.AXOverlayService }]; } });
@@ -189,4 +195,3 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
189
195
 
190
196
  export { AXActionSheetComponent, AXActionSheetModule, AXActionSheetService };
191
197
  //# sourceMappingURL=acorex-components-action-sheet.mjs.map
192
- //# sourceMappingURL=acorex-components-action-sheet.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-components-action-sheet.mjs","sources":["../../../../projects/acorex/components/action-sheet/src/action-sheet.component.ts","../../../../projects/acorex/components/action-sheet/src/action-sheet.component.html","../../../../projects/acorex/components/action-sheet/src/action-sheet.module.ts","../../../../projects/acorex/components/action-sheet/src/action-sheet.service.ts","../../../../projects/acorex/components/action-sheet/acorex-components-action-sheet.ts"],"sourcesContent":["import { AXComponentCloseEvent, TAB_META_KEY } from '@acorex/components/common';\r\nimport { AXBaseComponent } from '@acorex/components/mixin';\r\nimport { CdkPortalOutletAttachedRef, ComponentPortal, Portal, TemplatePortal } from '@angular/cdk/portal';\r\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, ComponentRef, ElementRef, EventEmitter, HostListener, Input, TemplateRef, ViewContainerRef, ViewEncapsulation } from '@angular/core';\r\nimport { AXActionSheetItem } from './action-sheet.interface';\r\n\r\n@Component({\r\n selector: 'ax-action-sheet',\r\n templateUrl: './action-sheet.component.html',\r\n styleUrls: ['./action-sheet.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\n\r\nexport class AXActionSheetComponent extends AXBaseComponent {\r\n\r\n _selectedPortal: Portal<any>;\r\n title: string;\r\n items: AXActionSheetItem[] = [];\r\n content: any;\r\n showCloseButton: boolean = true;\r\n showHeader: boolean = true;\r\n data: any = {};\r\n\r\n onClosed: EventEmitter<AXComponentCloseEvent> = new EventEmitter<AXComponentCloseEvent>();\r\n\r\n constructor(elementRef: ElementRef, cdr: ChangeDetectorRef, private _viewContainerRef: ViewContainerRef,) {\r\n super(elementRef, cdr);\r\n }\r\n\r\n close(): void {\r\n this.onClosed.emit({\r\n component: this[TAB_META_KEY].component,\r\n htmlElement: this._getHostElement(),\r\n });\r\n this._cdr.detectChanges();\r\n }\r\n\r\n onInit(): void {\r\n if (this.content) {\r\n if (typeof this.content === 'string') {\r\n // this.rendererService.findLoadedComponentByRoute(this.content, 20).then(route => {\r\n // setTimeout(() => {\r\n // this.loadComponent(route.component);\r\n // }, 300);\r\n // });\r\n } else if (this.content instanceof TemplateRef) {\r\n this._selectedPortal = new TemplatePortal(\r\n this.content,\r\n this._viewContainerRef,\r\n { $implicit: this.data, ref: this }\r\n );\r\n this._cdr.markForCheck();\r\n } else if (typeof this.content === 'function') {\r\n this._selectedPortal = new ComponentPortal(this.content);\r\n this._cdr.markForCheck();\r\n }\r\n }\r\n }\r\n\r\n @HostListener('keydown.escape', ['$event'])\r\n onKeydownHandler(event: KeyboardEvent) {\r\n let focusedOrHasFocused = this._getHostElement().matches(':focus-within');\r\n if (this.showCloseButton && focusedOrHasFocused) {\r\n this.close();\r\n }\r\n }\r\n\r\n _handleAttched(ref: CdkPortalOutletAttachedRef) {\r\n ref = ref as ComponentRef<any>;\r\n if (ref.instance) {\r\n this[TAB_META_KEY].component = ref.instance;\r\n Object.assign(this[TAB_META_KEY].component, this.data);\r\n if (ref.instance.onClosed) {\r\n ref.instance.onClosed.subscribe((e: AXComponentCloseEvent) => {\r\n this.onClosed.emit(e);\r\n });\r\n }\r\n }\r\n }\r\n\r\n _handleCloseClick() {\r\n this.close();\r\n }\r\n}\r\n","<ax-header>\r\n <ax-title>{{ title }}</ax-title>\r\n <ax-close-button (click)=\"_handleCloseClick()\" tabindex=\"1\"></ax-close-button>\r\n</ax-header>\r\n<ng-template *ngIf=\"_selectedPortal\">\r\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\r\n</ng-template>\r\n<!-- TODO: Are you sure we need this? if remove this content not showing -->\r\n<ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\r\n<div class=\"ax-action-sheet-items\">\r\n <ng-container *ngFor=\"let item of items\">\r\n <div class=\"ax-action-sheet-item ax-{{ item.color }}\" [class.ax-state-disabled]=\"item.disabled\" (click)=\"item.onClick()\">\r\n <span class=\"item-icon\" *ngIf=\"item.icon\" [class]=\"item.icon\"></span>\r\n <span class=\"item-text\">{{ item.text }}</span>\r\n </div>\r\n </ng-container>\r\n</div>\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { A11yModule } from '@angular/cdk/a11y';\r\nimport { DragDropModule } from '@angular/cdk/drag-drop';\r\nimport { PortalModule } from '@angular/cdk/portal';\r\nimport { AXButtonModule } from '@acorex/components/button';\r\n\r\nimport { AXDecoratorModule } from '@acorex/components/decorators';\r\nimport { AXCommonModule } from '@acorex/components/common';\r\nimport { AXActionSheetComponent } from './action-sheet.component';\r\n\r\n\r\nconst MODULES = [CommonModule,AXCommonModule, DragDropModule, A11yModule, AXButtonModule, PortalModule, AXDecoratorModule];\r\n\r\n\r\n@NgModule({\r\n declarations: [AXActionSheetComponent],\r\n imports: [...MODULES],\r\n exports: [AXActionSheetComponent],\r\n providers: [],\r\n})\r\nexport class AXActionSheetModule { }\r\n","import {\r\n AXComponentClosedPromise,\r\n AXComponentCloseEvent,\r\n AXOverlayService,\r\n AXOverlayViewRef,\r\n TAB_META_KEY,\r\n} from '@acorex/components/common';\r\nimport { AXTranslator } from '@acorex/core/translation';\r\nimport { Overlay } from '@angular/cdk/overlay';\r\nimport { Injectable } from '@angular/core';\r\nimport { AXActionSheetComponent } from './action-sheet.component';\r\nimport { AXActionSheetOptions } from './action-sheet.interface';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class AXActionSheetService {\r\n // _overlayRef: OverlayRef;\r\n // _templatePortal!: ComponentPortal<any>;\r\n\r\n constructor(private _overlay: Overlay, private overlayService: AXOverlayService) {}\r\n\r\n //open(items: AXActionSheetItem[],options?:AXActionSheetOptions);\r\n //open(content:AXActionSheetContentType, options?: AXActionSheetOptions);\r\n open(options: AXActionSheetOptions): AXComponentClosedPromise {\r\n const opt: any = {\r\n title: AXTranslator.get('action-sheet.title'),\r\n showCloseButton: true,\r\n closeOnBackdrop: true,\r\n showHeader: true,\r\n };\r\n Object.assign(opt, options);\r\n const lastActiveElement = document.activeElement as HTMLElement;\r\n const com = this.overlayService.show(AXActionSheetComponent, opt, {\r\n hasBackdrop: true,\r\n closeOnClickOutside: opt.closeOnBackdrop,\r\n transparentBackdrop: false,\r\n panelClass: ['ax-actionsheet-panel'],\r\n position: this._overlay.position().global().bottom().centerHorizontally(),\r\n scroll: 'block',\r\n });\r\n const actionSheet = com.instance as AXActionSheetComponent;\r\n actionSheet[TAB_META_KEY] = {};\r\n actionSheet.onClosed.subscribe(c => {\r\n this.closePopup(actionSheet, com, c, lastActiveElement);\r\n });\r\n const promise = new AXComponentClosedPromise((resolve, reject) => {\r\n actionSheet[TAB_META_KEY].close = e => {\r\n if (resolve) {\r\n resolve(e);\r\n } else {\r\n reject(e);\r\n }\r\n };\r\n });\r\n promise['closeMethod'] = () => {\r\n actionSheet.close();\r\n };\r\n return promise;\r\n }\r\n\r\n private closePopup(popup: AXActionSheetComponent, com: AXOverlayViewRef, result: AXComponentCloseEvent, lastActiveElement?: HTMLElement) {\r\n const closeFunc = e => {\r\n com.dispose();\r\n delete e.cancel;\r\n popup[TAB_META_KEY].close(e);\r\n if (lastActiveElement?.focus) {\r\n lastActiveElement.focus();\r\n }\r\n };\r\n const e = { cancel: false };\r\n const closingFunc = popup[TAB_META_KEY].component?.onClosing;\r\n if (closingFunc) {\r\n const res = closingFunc(e);\r\n if (res instanceof Promise) {\r\n res.then(() => {\r\n if (e == null || e.cancel !== true) {\r\n closeFunc(result);\r\n }\r\n });\r\n } else {\r\n if (e == null || e.cancel !== true) {\r\n closeFunc(result);\r\n }\r\n }\r\n } else {\r\n closeFunc(result);\r\n }\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1","i2"],"mappings":";;;;;;;;;;;;;;;;;AAcM,MAAO,sBAAuB,SAAQ,eAAe,CAAA;AAYzD,IAAA,WAAA,CAAY,UAAsB,EAAE,GAAsB,EAAU,iBAAmC,EAAA;AACrG,QAAA,KAAK,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;QAD2C,IAAiB,CAAA,iBAAA,GAAjB,iBAAiB,CAAkB;QARvG,IAAK,CAAA,KAAA,GAAwB,EAAE,CAAC;QAEhC,IAAe,CAAA,eAAA,GAAY,IAAI,CAAC;QAChC,IAAU,CAAA,UAAA,GAAY,IAAI,CAAC;QAC3B,IAAI,CAAA,IAAA,GAAQ,EAAE,CAAC;AAEf,QAAA,IAAA,CAAA,QAAQ,GAAwC,IAAI,YAAY,EAAyB,CAAC;KAIzF;IAED,KAAK,GAAA;AACH,QAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;AACjB,YAAA,SAAS,EAAE,IAAI,CAAC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UAAA,EAAA,CAAA,CAAA;AAApB,oBAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,cADP,MAAM,EAAA,CAAA,CAAA;2FACnB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBADhC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAA;;;ACblC;;AAEG;;;;"}
1
+ {"version":3,"file":"acorex-components-action-sheet.mjs","sources":["../../../../projects/acorex/components/action-sheet/src/action-sheet.component.ts","../../../../projects/acorex/components/action-sheet/src/action-sheet.component.html","../../../../projects/acorex/components/action-sheet/src/action-sheet.module.ts","../../../../projects/acorex/components/action-sheet/src/action-sheet.service.ts","../../../../projects/acorex/components/action-sheet/acorex-components-action-sheet.ts"],"sourcesContent":["import { AXComponentCloseEvent, TAB_META_KEY } from '@acorex/components/common';\r\nimport { AXBaseComponent } from '@acorex/components/mixin';\r\nimport { CdkPortalOutletAttachedRef, ComponentPortal, Portal, TemplatePortal } from '@angular/cdk/portal';\r\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, ComponentRef, ElementRef, EventEmitter, HostListener, Input, TemplateRef, ViewContainerRef, ViewEncapsulation } from '@angular/core';\r\nimport { AXActionSheetItem } from './action-sheet.interface';\r\n\r\n@Component({\r\n selector: 'ax-action-sheet',\r\n templateUrl: './action-sheet.component.html',\r\n styleUrls: ['./action-sheet.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\n\r\nexport class AXActionSheetComponent extends AXBaseComponent {\r\n\r\n _selectedPortal: Portal<any>;\r\n title: string;\r\n items: AXActionSheetItem[] = [];\r\n content: any;\r\n showCloseButton: boolean = true;\r\n showHeader: boolean = true;\r\n data: any = {};\r\n\r\n onClosed: EventEmitter<AXComponentCloseEvent> = new EventEmitter<AXComponentCloseEvent>();\r\n\r\n constructor(elementRef: ElementRef, cdr: ChangeDetectorRef, private _viewContainerRef: ViewContainerRef,) {\r\n super(elementRef, cdr);\r\n }\r\n\r\n close(): void {\r\n this.onClosed.emit({\r\n component: this[TAB_META_KEY].component,\r\n htmlElement: this._getHostElement(),\r\n });\r\n this._cdr.detectChanges();\r\n }\r\n\r\n onInit(): void {\r\n if (this.content) {\r\n if (typeof this.content === 'string') {\r\n // this.rendererService.findLoadedComponentByRoute(this.content, 20).then(route => {\r\n // setTimeout(() => {\r\n // this.loadComponent(route.component);\r\n // }, 300);\r\n // });\r\n } else if (this.content instanceof TemplateRef) {\r\n this._selectedPortal = new TemplatePortal(\r\n this.content,\r\n this._viewContainerRef,\r\n { $implicit: this.data, ref: this }\r\n );\r\n this._cdr.markForCheck();\r\n } else if (typeof this.content === 'function') {\r\n this._selectedPortal = new ComponentPortal(this.content);\r\n this._cdr.markForCheck();\r\n }\r\n }\r\n }\r\n\r\n @HostListener('keydown.escape', ['$event'])\r\n onKeydownHandler(event: KeyboardEvent) {\r\n let focusedOrHasFocused = this._getHostElement().matches(':focus-within');\r\n if (this.showCloseButton && focusedOrHasFocused) {\r\n this.close();\r\n }\r\n }\r\n\r\n _handleAttched(ref: CdkPortalOutletAttachedRef) {\r\n ref = ref as ComponentRef<any>;\r\n if (ref.instance) {\r\n this[TAB_META_KEY].component = ref.instance;\r\n Object.assign(this[TAB_META_KEY].component, this.data);\r\n if (ref.instance.onClosed) {\r\n ref.instance.onClosed.subscribe((e: AXComponentCloseEvent) => {\r\n this.onClosed.emit(e);\r\n });\r\n }\r\n }\r\n }\r\n\r\n _handleCloseClick() {\r\n this.close();\r\n }\r\n}\r\n","<ax-header>\r\n <ax-title>{{ title }}</ax-title>\r\n <ax-close-button (click)=\"_handleCloseClick()\" tabindex=\"1\"></ax-close-button>\r\n</ax-header>\r\n<ng-template *ngIf=\"_selectedPortal\">\r\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\r\n</ng-template>\r\n<!-- TODO: Are you sure we need this? if remove this content not showing -->\r\n<ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\r\n<div class=\"ax-action-sheet-items\">\r\n <ng-container *ngFor=\"let item of items\">\r\n <div class=\"ax-action-sheet-item ax-{{ item.color }}\" [class.ax-state-disabled]=\"item.disabled\" (click)=\"item.onClick()\">\r\n <span class=\"item-icon\" *ngIf=\"item.icon\" [class]=\"item.icon\"></span>\r\n <span class=\"item-text\">{{ item.text }}</span>\r\n </div>\r\n </ng-container>\r\n</div>\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { A11yModule } from '@angular/cdk/a11y';\r\nimport { DragDropModule } from '@angular/cdk/drag-drop';\r\nimport { PortalModule } from '@angular/cdk/portal';\r\nimport { AXButtonModule } from '@acorex/components/button';\r\n\r\nimport { AXDecoratorModule } from '@acorex/components/decorators';\r\nimport { AXCommonModule } from '@acorex/components/common';\r\nimport { AXActionSheetComponent } from './action-sheet.component';\r\n\r\n\r\nconst MODULES = [CommonModule,AXCommonModule, DragDropModule, A11yModule, AXButtonModule, PortalModule, AXDecoratorModule];\r\n\r\n\r\n@NgModule({\r\n declarations: [AXActionSheetComponent],\r\n imports: [...MODULES],\r\n exports: [AXActionSheetComponent],\r\n providers: [],\r\n})\r\nexport class AXActionSheetModule { }\r\n","import {\r\n AXComponentClosedPromise,\r\n AXComponentCloseEvent,\r\n AXOverlayService,\r\n AXOverlayViewRef,\r\n TAB_META_KEY,\r\n} from '@acorex/components/common';\r\nimport { AXTranslator } from '@acorex/core/translation';\r\nimport { Overlay } from '@angular/cdk/overlay';\r\nimport { Injectable } from '@angular/core';\r\nimport { AXActionSheetComponent } from './action-sheet.component';\r\nimport { AXActionSheetOptions } from './action-sheet.interface';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class AXActionSheetService {\r\n // _overlayRef: OverlayRef;\r\n // _templatePortal!: ComponentPortal<any>;\r\n\r\n constructor(private _overlay: Overlay, private overlayService: AXOverlayService) {}\r\n\r\n //open(items: AXActionSheetItem[],options?:AXActionSheetOptions);\r\n //open(content:AXActionSheetContentType, options?: AXActionSheetOptions);\r\n open(options: AXActionSheetOptions): AXComponentClosedPromise {\r\n const opt: any = {\r\n title: AXTranslator.get('action-sheet.title'),\r\n showCloseButton: true,\r\n closeOnBackdrop: true,\r\n showHeader: true,\r\n };\r\n Object.assign(opt, options);\r\n const lastActiveElement = document.activeElement as HTMLElement;\r\n const com = this.overlayService.show(AXActionSheetComponent, opt, {\r\n hasBackdrop: true,\r\n closeOnClickOutside: opt.closeOnBackdrop,\r\n transparentBackdrop: false,\r\n panelClass: ['ax-actionsheet-panel'],\r\n position: this._overlay.position().global().bottom().centerHorizontally(),\r\n scroll: 'block',\r\n });\r\n const actionSheet = com.instance as AXActionSheetComponent;\r\n actionSheet[TAB_META_KEY] = {};\r\n actionSheet.onClosed.subscribe(c => {\r\n this.closePopup(actionSheet, com, c, lastActiveElement);\r\n });\r\n const promise = new AXComponentClosedPromise((resolve, reject) => {\r\n actionSheet[TAB_META_KEY].close = e => {\r\n if (resolve) {\r\n resolve(e);\r\n } else {\r\n reject(e);\r\n }\r\n };\r\n });\r\n promise['closeMethod'] = () => {\r\n actionSheet.close();\r\n };\r\n return promise;\r\n }\r\n\r\n private closePopup(popup: AXActionSheetComponent, com: AXOverlayViewRef, result: AXComponentCloseEvent, lastActiveElement?: HTMLElement) {\r\n const closeFunc = e => {\r\n com.dispose();\r\n delete e.cancel;\r\n popup[TAB_META_KEY].close(e);\r\n if (lastActiveElement?.focus) {\r\n lastActiveElement.focus();\r\n }\r\n };\r\n const e = { cancel: false };\r\n const closingFunc = popup[TAB_META_KEY].component?.onClosing;\r\n if (closingFunc) {\r\n const res = closingFunc(e);\r\n if (res instanceof Promise) {\r\n res.then(() => {\r\n if (e == null || e.cancel !== true) {\r\n closeFunc(result);\r\n }\r\n });\r\n } else {\r\n if (e == null || e.cancel !== true) {\r\n closeFunc(result);\r\n }\r\n }\r\n } else {\r\n closeFunc(result);\r\n }\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1","i2"],"mappings":";;;;;;;;;;;;;;;;;AAcM,MAAO,sBAAuB,SAAQ,eAAe,CAAA;AAYW,IAAA,iBAAA,CAAA;AAVpE,IAAA,eAAe,CAAc;AAC7B,IAAA,KAAK,CAAS;IACd,KAAK,GAAwB,EAAE,CAAC;AAChC,IAAA,OAAO,CAAM;IACb,eAAe,GAAY,IAAI,CAAC;IAChC,UAAU,GAAY,IAAI,CAAC;IAC3B,IAAI,GAAQ,EAAE,CAAC;AAEf,IAAA,QAAQ,GAAwC,IAAI,YAAY,EAAyB,CAAC;AAE1F,IAAA,WAAA,CAAY,UAAsB,EAAE,GAAsB,EAAU,iBAAmC,EAAA;AACrG,QAAA,KAAK,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;QAD2C,IAAiB,CAAA,iBAAA,GAAjB,iBAAiB,CAAkB;KAEtG;IAED,KAAK,GAAA;AACH,QAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;AACjB,YAAA,SAAS,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC,SAAS;AACvC,YAAA,WAAW,EAAE,IAAI,CAAC,eAAe,EAAE;AACpC,SAAA,CAAC,CAAC;AACH,QAAA,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;KAC3B;IAED,MAAM,GAAA;QACJ,IAAI,IAAI,CAAC,OAAO,EAAE;AAChB,YAAA,IAAI,OAAO,IAAI,CAAC,OAAO,KAAK,QAAQ,EAAE;;;;;;AAMrC,aAAA;AAAM,iBAAA,IAAI,IAAI,CAAC,OAAO,YAAY,WAAW,EAAE;gBAC9C,IAAI,CAAC,eAAe,GAAG,IAAI,cAAc,CACvC,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,iBAAiB,EACtB,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15
15
  */
16
16
  class AXAlertComponent extends AXBaseAlertMixin {
17
- /**
18
- * @ignore
19
- */
20
- constructor(elementRef, cdr) {
21
- super(elementRef, cdr);
22
- this._showInline = false;
23
- this.onClosed = new EventEmitter();
24
- //
25
- const config = { attributes: false, childList: true, subtree: true };
26
- const callback = (mutationList, observer) => {
27
- for (const mutation of mutationList) {
28
- if (mutation.type === 'childList') {
29
- this._setIcon();
30
- this._applyButtonStyle();
31
- this._showInline = this._content != null || this._footer != null;
32
- this._cdr.markForCheck();
33
- }
34
- }
35
- };
36
- // Create an observer instance linked to the callback function
37
- this._observer = new MutationObserver(callback);
38
- // Start observing the target node for configured mutations
39
- this._observer.observe(this._getHostElement(), config);
40
- }
17
+ _icon;
18
+ _buttons;
19
+ _title;
20
+ _content;
21
+ _footer;
22
+ _showInline = false;
23
+ onClosed = new EventEmitter();
24
+ _customIcon;
25
+ _timeOutRef;
41
26
  /**
42
27
  * @ignore
43
28
  */
@@ -45,6 +30,7 @@ class AXAlertComponent extends AXBaseAlertMixin {
45
30
  const _class = this.look ? `ax-${this.color}-${this.look}` : `ax-${this.color}-default`;
46
31
  return `ax-alert ax-none ${_class}`;
47
32
  }
33
+ _timeOut;
48
34
  get timeOut() {
49
35
  return this._timeOut;
50
36
  }
@@ -59,6 +45,8 @@ class AXAlertComponent extends AXBaseAlertMixin {
59
45
  }
60
46
  }
61
47
  }
48
+ _observer;
49
+ _visible;
62
50
  /**
63
51
  * set the visibility of the Alert
64
52
  */
@@ -79,6 +67,28 @@ class AXAlertComponent extends AXBaseAlertMixin {
79
67
  }
80
68
  }
81
69
  }
70
+ /**
71
+ * @ignore
72
+ */
73
+ constructor(elementRef, cdr) {
74
+ super(elementRef, cdr);
75
+ //
76
+ const config = { attributes: false, childList: true, subtree: true };
77
+ const callback = (mutationList, observer) => {
78
+ for (const mutation of mutationList) {
79
+ if (mutation.type === 'childList') {
80
+ this._setIcon();
81
+ this._applyButtonStyle();
82
+ this._showInline = this._content != null || this._footer != null;
83
+ this._cdr.markForCheck();
84
+ }
85
+ }
86
+ };
87
+ // Create an observer instance linked to the callback function
88
+ this._observer = new MutationObserver(callback);
89
+ // Start observing the target node for configured mutations
90
+ this._observer.observe(this._getHostElement(), config);
91
+ }
82
92
  onViewInit() {
83
93
  if (this.visible == undefined) {
84
94
  this.visible = true;
@@ -146,10 +156,10 @@ class AXAlertComponent extends AXBaseAlertMixin {
146
156
  onDestroy() {
147
157
  this._observer?.disconnect();
148
158
  }
159
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXAlertComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
160
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: AXAlertComponent, selector: "ax-alert", inputs: { color: "color", timeOut: "timeOut", visible: "visible" }, outputs: { onClosed: "onClosed" }, host: { properties: { "class": "this.__hostClass" } }, providers: [{ provide: AXClosbaleComponent, useExisting: AXAlertComponent }], queries: [{ propertyName: "_icon", first: true, predicate: AXDecoratorIconComponent, descendants: true }, { propertyName: "_title", first: true, predicate: AXDecoratorTitleComponent, descendants: true }, { propertyName: "_content", first: true, predicate: AXDecoratorContentComponent, descendants: true }, { propertyName: "_footer", first: true, predicate: AXDecoratorFooterComponent, descendants: true }, { propertyName: "_buttons", predicate: AXButtonComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-alert-inline-start\" [class.!ax-items-start]=\"_showInline\">\r\n <ng-content select=\"ax-icon\"></ng-content>\r\n</div>\r\n<div class=\"ax-alert-inline-middle\">\r\n <div class=\"ax-alert-middle-block-start\">\r\n <div class=\"ax-alert-title\">\r\n <ng-content select=\"ax-title\"></ng-content>\r\n </div>\r\n </div>\r\n <div\r\n class=\"ax-alert-middle-block-end\"\r\n [class.ax-hidden]=\"!_showInline\"\r\n [class.ax-title-gap]=\"_title\">\r\n <ng-content select=\"ax-content\"> </ng-content>\r\n <ng-content select=\"ax-footer\"> </ng-content>\r\n </div>\r\n</div>\r\n<div class=\"ax-alert-inline-end\" [class.!ax-items-start]=\"_showInline\">\r\n <ng-content select=\"ax-button\"></ng-content>\r\n <ng-content select=\"ax-close-button\"></ng-content>\r\n</div>\r\n<div\r\n class=\"ax-alert-progress\"\r\n [style.animation-duration.ms]=\"timeOut\"\r\n *ngIf=\"timeOut\"></div>\r\n", styles: [".ax-dark ax-alert.ax-primary-default{background-color:rgba(var(--ax-color-primary-600));border-color:rgba(var(--ax-color-primary-600))}.ax-dark ax-alert.ax-primary-default ax-title{color:rgba(var(--ax-color-primary-fore))}.ax-dark ax-alert.ax-primary-default ax-content{color:rgba(var(--ax-color-primary-fore))}.ax-dark ax-alert.ax-primary-default ax-button[class$=blank]{color:rgba(var(--ax-color-primary-fore))}.ax-dark ax-alert.ax-primary-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-primary-fore))}.ax-dark ax-alert.ax-primary-default .ax-alert-progress{background-color:rgba(var(--ax-color-primary-fore))}.ax-dark ax-alert.ax-secondary-default{background-color:rgba(var(--ax-color-secondary-600));border-color:rgba(var(--ax-color-secondary-600))}.ax-dark ax-alert.ax-secondary-default ax-title{color:rgba(var(--ax-color-secondary-fore))}.ax-dark ax-alert.ax-secondary-default ax-content{color:rgba(var(--ax-color-secondary-fore))}.ax-dark ax-alert.ax-secondary-default ax-button[class$=blank]{color:rgba(var(--ax-color-secondary-fore))}.ax-dark ax-alert.ax-secondary-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-secondary-fore))}.ax-dark ax-alert.ax-secondary-default .ax-alert-progress{background-color:rgba(var(--ax-color-secondary-fore))}.ax-dark ax-alert.ax-success-default{background-color:rgba(var(--ax-color-success-600));border-color:rgba(var(--ax-color-success-600))}.ax-dark ax-alert.ax-success-default ax-title{color:rgba(var(--ax-color-success-fore))}.ax-dark ax-alert.ax-success-default ax-content{color:rgba(var(--ax-color-success-fore))}.ax-dark ax-alert.ax-success-default ax-button[class$=blank]{color:rgba(var(--ax-color-success-fore))}.ax-dark ax-alert.ax-success-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-success-fore))}.ax-dark ax-alert.ax-success-default .ax-alert-progress{background-color:rgba(var(--ax-color-success-fore))}.ax-dark ax-alert.ax-warning-default{background-color:rgba(var(--ax-color-warning-600));border-color:rgba(var(--ax-color-warning-600))}.ax-dark ax-alert.ax-warning-default ax-title{color:rgba(var(--ax-color-warning-fore))}.ax-dark ax-alert.ax-warning-default ax-content{color:rgba(var(--ax-color-warning-fore))}.ax-dark ax-alert.ax-warning-default ax-button[class$=blank]{color:rgba(var(--ax-color-warning-fore))}.ax-dark ax-alert.ax-warning-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-warning-fore))}.ax-dark ax-alert.ax-warning-default .ax-alert-progress{background-color:rgba(var(--ax-color-warning-fore))}.ax-dark ax-alert.ax-danger-default{background-color:rgba(var(--ax-color-danger-600));border-color:rgba(var(--ax-color-danger-600))}.ax-dark ax-alert.ax-danger-default ax-title{color:rgba(var(--ax-color-danger-fore))}.ax-dark ax-alert.ax-danger-default ax-content{color:rgba(var(--ax-color-danger-fore))}.ax-dark ax-alert.ax-danger-default ax-button[class$=blank]{color:rgba(var(--ax-color-danger-fore))}.ax-dark ax-alert.ax-danger-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-danger-fore))}.ax-dark ax-alert.ax-danger-default .ax-alert-progress{background-color:rgba(var(--ax-color-danger-fore))}.ax-dark ax-alert.ax-info-default{background-color:rgba(var(--ax-color-info-600));border-color:rgba(var(--ax-color-info-600))}.ax-dark ax-alert.ax-info-default ax-title{color:rgba(var(--ax-color-info-fore))}.ax-dark ax-alert.ax-info-default ax-content{color:rgba(var(--ax-color-info-fore))}.ax-dark ax-alert.ax-info-default ax-button[class$=blank]{color:rgba(var(--ax-color-info-fore))}.ax-dark ax-alert.ax-info-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-info-fore))}.ax-dark ax-alert.ax-info-default .ax-alert-progress{background-color:rgba(var(--ax-color-info-fore))}ax-alert{position:relative;padding:1rem;border-radius:var(--ax-rounded-border-default);font-size:.875rem;display:flex;gap:1rem;overflow:hidden}ax-alert.ax-state-hidden{visibility:hidden;opacity:0}ax-alert.ax-state-visible{visibility:visible;opacity:1}ax-alert .ax-alert-inline-middle{display:flex;flex-direction:column;justify-content:center;flex:1 1 0%}ax-alert .ax-alert-inline-start,ax-alert .ax-alert-inline-end{display:flex}ax-alert .ax-alert-inline-start.ax-items-start,ax-alert .ax-alert-inline-end.ax-items-start{align-items:flex-start!important}ax-alert .ax-alert-inline-start{align-items:center}ax-alert .ax-alert-inline-start>ax-icon{border-radius:99rem;display:grid;place-items:center;font-size:1.25rem;line-height:1.25rem}ax-alert .ax-alert-inline-end{align-items:center}ax-alert .ax-alert-middle-block-start{display:flex;align-items:center;justify-content:center}ax-alert .ax-alert-middle-block-start .ax-alert-title{display:flex;flex-direction:column;flex:1}ax-alert .ax-alert-middle-block-start .ax-alert-title ax-title{font-size:.875rem;line-height:1.25rem;font-weight:500}ax-alert .ax-alert-middle-block-end{display:flex;flex-direction:column;gap:1rem}ax-alert .ax-alert-middle-block-end.ax-title-gap{margin-top:.5rem}ax-alert .ax-alert-middle-block-end.ax-hidden{display:none!important}ax-alert .ax-alert-middle-block-end ax-content{display:block}ax-alert .ax-alert-middle-block-end ax-footer{background-color:transparent}ax-alert .ax-alert-progress{width:0px;height:.25rem;position:absolute;inset-inline-start:0px;bottom:0;animation-duration:4s;animation-timing-function:linear;animation-name:progressBar}@keyframes progressBar{0%{width:100%}to{width:0%}}ax-alert.ax-primary-default{background-color:rgba(var(--ax-color-primary-50));border-color:rgba(var(--ax-color-primary-500))}ax-alert.ax-primary-default ax-title{color:rgba(var(--ax-color-text-default))}ax-alert.ax-primary-default ax-content{color:rgba(var(--ax-color-text-default))}ax-alert.ax-primary-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-primary-500))}ax-alert.ax-primary-default .ax-alert-progress{background-color:rgba(var(--ax-color-primary-900))}ax-alert.ax-secondary-default{background-color:rgba(var(--ax-color-secondary-50));border-color:rgba(var(--ax-color-secondary-500))}ax-alert.ax-secondary-default ax-title{color:rgba(var(--ax-color-text-default))}ax-alert.ax-secondary-default ax-content{color:rgba(var(--ax-color-text-default))}ax-alert.ax-secondary-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-secondary-500))}ax-alert.ax-secondary-default .ax-alert-progress{background-color:rgba(var(--ax-color-secondary-900))}ax-alert.ax-success-default{background-color:rgba(var(--ax-color-success-50));border-color:rgba(var(--ax-color-success-500))}ax-alert.ax-success-default ax-title{color:rgba(var(--ax-color-text-default))}ax-alert.ax-success-default ax-content{color:rgba(var(--ax-color-text-default))}ax-alert.ax-success-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-success-500))}ax-alert.ax-success-default .ax-alert-progress{background-color:rgba(var(--ax-color-success-900))}ax-alert.ax-warning-default{background-color:rgba(var(--ax-color-warning-50));border-color:rgba(var(--ax-color-warning-500))}ax-alert.ax-warning-default ax-title{color:rgba(var(--ax-color-text-default))}ax-alert.ax-warning-default ax-content{color:rgba(var(--ax-color-text-default))}ax-alert.ax-warning-default ax-button[class$=blank]{color:rgba(var(--ax-color-warning-fore))}ax-alert.ax-warning-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-warning-500))}ax-alert.ax-warning-default .ax-alert-progress{background-color:rgba(var(--ax-color-warning-900))}ax-alert.ax-danger-default{background-color:rgba(var(--ax-color-danger-50));border-color:rgba(var(--ax-color-danger-500))}ax-alert.ax-danger-default ax-title{color:rgba(var(--ax-color-text-default))}ax-alert.ax-danger-default ax-content{color:rgba(var(--ax-color-text-default))}ax-alert.ax-danger-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-danger-500))}ax-alert.ax-danger-default .ax-alert-progress{background-color:rgba(var(--ax-color-danger-900))}ax-alert.ax-info-default{background-color:rgba(var(--ax-color-info-50));border-color:rgba(var(--ax-color-info-500))}ax-alert.ax-info-default ax-title{color:rgba(var(--ax-color-text-default))}ax-alert.ax-info-default ax-content{color:rgba(var(--ax-color-text-default))}ax-alert.ax-info-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-info-500))}ax-alert.ax-info-default .ax-alert-progress{background-color:rgba(var(--ax-color-info-900))}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
149
161
  }
150
- AXAlertComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXAlertComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
151
- AXAlertComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: AXAlertComponent, selector: "ax-alert", inputs: { color: "color", timeOut: "timeOut", visible: "visible" }, outputs: { onClosed: "onClosed" }, host: { properties: { "class": "this.__hostClass" } }, providers: [{ provide: AXClosbaleComponent, useExisting: AXAlertComponent }], queries: [{ propertyName: "_icon", first: true, predicate: AXDecoratorIconComponent, descendants: true }, { propertyName: "_title", first: true, predicate: AXDecoratorTitleComponent, descendants: true }, { propertyName: "_content", first: true, predicate: AXDecoratorContentComponent, descendants: true }, { propertyName: "_footer", first: true, predicate: AXDecoratorFooterComponent, descendants: true }, { propertyName: "_buttons", predicate: AXButtonComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-alert-inline-start\" [class.!ax-items-start]=\"_showInline\">\r\n <ng-content select=\"ax-icon\"></ng-content>\r\n</div>\r\n<div class=\"ax-alert-inline-middle\">\r\n <div class=\"ax-alert-middle-block-start\">\r\n <div class=\"ax-alert-title\">\r\n <ng-content select=\"ax-title\"></ng-content>\r\n </div>\r\n </div>\r\n <div\r\n class=\"ax-alert-middle-block-end\"\r\n [class.ax-hidden]=\"!_showInline\"\r\n [class.ax-title-gap]=\"_title\">\r\n <ng-content select=\"ax-content\"> </ng-content>\r\n <ng-content select=\"ax-footer\"> </ng-content>\r\n </div>\r\n</div>\r\n<div class=\"ax-alert-inline-end\" [class.!ax-items-start]=\"_showInline\">\r\n <ng-content select=\"ax-button\"></ng-content>\r\n <ng-content select=\"ax-close-button\"></ng-content>\r\n</div>\r\n<div\r\n class=\"ax-alert-progress\"\r\n [style.animation-duration.ms]=\"timeOut\"\r\n *ngIf=\"timeOut\"></div>\r\n", styles: [".ax-dark ax-alert.ax-primary-default{background-color:rgba(var(--ax-color-primary-600));border-color:rgba(var(--ax-color-primary-600))}.ax-dark ax-alert.ax-primary-default ax-title{color:rgba(var(--ax-color-primary-fore))}.ax-dark ax-alert.ax-primary-default ax-content{color:rgba(var(--ax-color-primary-fore))}.ax-dark ax-alert.ax-primary-default ax-button[class$=blank]{color:rgba(var(--ax-color-primary-fore))}.ax-dark ax-alert.ax-primary-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-primary-fore))}.ax-dark ax-alert.ax-primary-default .ax-alert-progress{background-color:rgba(var(--ax-color-primary-fore))}.ax-dark ax-alert.ax-secondary-default{background-color:rgba(var(--ax-color-secondary-600));border-color:rgba(var(--ax-color-secondary-600))}.ax-dark ax-alert.ax-secondary-default ax-title{color:rgba(var(--ax-color-secondary-fore))}.ax-dark ax-alert.ax-secondary-default ax-content{color:rgba(var(--ax-color-secondary-fore))}.ax-dark ax-alert.ax-secondary-default ax-button[class$=blank]{color:rgba(var(--ax-color-secondary-fore))}.ax-dark ax-alert.ax-secondary-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-secondary-fore))}.ax-dark ax-alert.ax-secondary-default .ax-alert-progress{background-color:rgba(var(--ax-color-secondary-fore))}.ax-dark ax-alert.ax-success-default{background-color:rgba(var(--ax-color-success-600));border-color:rgba(var(--ax-color-success-600))}.ax-dark ax-alert.ax-success-default ax-title{color:rgba(var(--ax-color-success-fore))}.ax-dark ax-alert.ax-success-default ax-content{color:rgba(var(--ax-color-success-fore))}.ax-dark ax-alert.ax-success-default ax-button[class$=blank]{color:rgba(var(--ax-color-success-fore))}.ax-dark ax-alert.ax-success-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-success-fore))}.ax-dark ax-alert.ax-success-default .ax-alert-progress{background-color:rgba(var(--ax-color-success-fore))}.ax-dark ax-alert.ax-warning-default{background-color:rgba(var(--ax-color-warning-600));border-color:rgba(var(--ax-color-warning-600))}.ax-dark ax-alert.ax-warning-default ax-title{color:rgba(var(--ax-color-warning-fore))}.ax-dark ax-alert.ax-warning-default ax-content{color:rgba(var(--ax-color-warning-fore))}.ax-dark ax-alert.ax-warning-default ax-button[class$=blank]{color:rgba(var(--ax-color-warning-fore))}.ax-dark ax-alert.ax-warning-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-warning-fore))}.ax-dark ax-alert.ax-warning-default .ax-alert-progress{background-color:rgba(var(--ax-color-warning-fore))}.ax-dark ax-alert.ax-danger-default{background-color:rgba(var(--ax-color-danger-600));border-color:rgba(var(--ax-color-danger-600))}.ax-dark ax-alert.ax-danger-default ax-title{color:rgba(var(--ax-color-danger-fore))}.ax-dark ax-alert.ax-danger-default ax-content{color:rgba(var(--ax-color-danger-fore))}.ax-dark ax-alert.ax-danger-default ax-button[class$=blank]{color:rgba(var(--ax-color-danger-fore))}.ax-dark ax-alert.ax-danger-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-danger-fore))}.ax-dark ax-alert.ax-danger-default .ax-alert-progress{background-color:rgba(var(--ax-color-danger-fore))}.ax-dark ax-alert.ax-info-default{background-color:rgba(var(--ax-color-info-600));border-color:rgba(var(--ax-color-info-600))}.ax-dark ax-alert.ax-info-default ax-title{color:rgba(var(--ax-color-info-fore))}.ax-dark ax-alert.ax-info-default ax-content{color:rgba(var(--ax-color-info-fore))}.ax-dark ax-alert.ax-info-default ax-button[class$=blank]{color:rgba(var(--ax-color-info-fore))}.ax-dark ax-alert.ax-info-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-info-fore))}.ax-dark ax-alert.ax-info-default .ax-alert-progress{background-color:rgba(var(--ax-color-info-fore))}ax-alert{position:relative;padding:1rem;border-radius:var(--ax-rounded-border-default);font-size:.875rem;display:flex;gap:1rem;overflow:hidden}ax-alert.ax-state-hidden{visibility:hidden;opacity:0}ax-alert.ax-state-visible{visibility:visible;opacity:1}ax-alert .ax-alert-inline-middle{display:flex;flex-direction:column;justify-content:center;flex:1 1 0%}ax-alert .ax-alert-inline-start,ax-alert .ax-alert-inline-end{display:flex}ax-alert .ax-alert-inline-start.ax-items-start,ax-alert .ax-alert-inline-end.ax-items-start{align-items:flex-start!important}ax-alert .ax-alert-inline-start{align-items:center}ax-alert .ax-alert-inline-start>ax-icon{border-radius:99rem;display:grid;place-items:center;font-size:1.25rem;line-height:1.25rem}ax-alert .ax-alert-inline-end{align-items:center}ax-alert .ax-alert-middle-block-start{display:flex;align-items:center;justify-content:center}ax-alert .ax-alert-middle-block-start .ax-alert-title{display:flex;flex-direction:column;flex:1}ax-alert .ax-alert-middle-block-start .ax-alert-title ax-title{font-size:.875rem;line-height:1.25rem;font-weight:500}ax-alert .ax-alert-middle-block-end{display:flex;flex-direction:column;gap:1rem}ax-alert .ax-alert-middle-block-end.ax-title-gap{margin-top:.5rem}ax-alert .ax-alert-middle-block-end.ax-hidden{display:none!important}ax-alert .ax-alert-middle-block-end ax-content{display:block}ax-alert .ax-alert-middle-block-end ax-footer{background-color:transparent}ax-alert .ax-alert-progress{width:0px;height:.25rem;position:absolute;inset-inline-start:0px;bottom:0;animation-duration:4s;animation-timing-function:linear;animation-name:progressBar}@keyframes progressBar{0%{width:100%}to{width:0%}}ax-alert.ax-primary-default{background-color:rgba(var(--ax-color-primary-50));border-color:rgba(var(--ax-color-primary-500))}ax-alert.ax-primary-default ax-title{color:rgba(var(--ax-color-text-default))}ax-alert.ax-primary-default ax-content{color:rgba(var(--ax-color-text-default))}ax-alert.ax-primary-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-primary-500))}ax-alert.ax-primary-default .ax-alert-progress{background-color:rgba(var(--ax-color-primary-900))}ax-alert.ax-secondary-default{background-color:rgba(var(--ax-color-secondary-50));border-color:rgba(var(--ax-color-secondary-500))}ax-alert.ax-secondary-default ax-title{color:rgba(var(--ax-color-text-default))}ax-alert.ax-secondary-default ax-content{color:rgba(var(--ax-color-text-default))}ax-alert.ax-secondary-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-secondary-500))}ax-alert.ax-secondary-default .ax-alert-progress{background-color:rgba(var(--ax-color-secondary-900))}ax-alert.ax-success-default{background-color:rgba(var(--ax-color-success-50));border-color:rgba(var(--ax-color-success-500))}ax-alert.ax-success-default ax-title{color:rgba(var(--ax-color-text-default))}ax-alert.ax-success-default ax-content{color:rgba(var(--ax-color-text-default))}ax-alert.ax-success-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-success-500))}ax-alert.ax-success-default .ax-alert-progress{background-color:rgba(var(--ax-color-success-900))}ax-alert.ax-warning-default{background-color:rgba(var(--ax-color-warning-50));border-color:rgba(var(--ax-color-warning-500))}ax-alert.ax-warning-default ax-title{color:rgba(var(--ax-color-text-default))}ax-alert.ax-warning-default ax-content{color:rgba(var(--ax-color-text-default))}ax-alert.ax-warning-default ax-button[class$=blank]{color:rgba(var(--ax-color-warning-fore))}ax-alert.ax-warning-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-warning-500))}ax-alert.ax-warning-default .ax-alert-progress{background-color:rgba(var(--ax-color-warning-900))}ax-alert.ax-danger-default{background-color:rgba(var(--ax-color-danger-50));border-color:rgba(var(--ax-color-danger-500))}ax-alert.ax-danger-default ax-title{color:rgba(var(--ax-color-text-default))}ax-alert.ax-danger-default ax-content{color:rgba(var(--ax-color-text-default))}ax-alert.ax-danger-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-danger-500))}ax-alert.ax-danger-default .ax-alert-progress{background-color:rgba(var(--ax-color-danger-900))}ax-alert.ax-info-default{background-color:rgba(var(--ax-color-info-50));border-color:rgba(var(--ax-color-info-500))}ax-alert.ax-info-default ax-title{color:rgba(var(--ax-color-text-default))}ax-alert.ax-info-default ax-content{color:rgba(var(--ax-color-text-default))}ax-alert.ax-info-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-info-500))}ax-alert.ax-info-default .ax-alert-progress{background-color:rgba(var(--ax-color-info-900))}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
152
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXAlertComponent, decorators: [{
162
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXAlertComponent, decorators: [{
153
163
  type: Component,
154
164
  args: [{ selector: 'ax-alert', inputs: ['color'], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [{ provide: AXClosbaleComponent, useExisting: AXAlertComponent }], template: "<div class=\"ax-alert-inline-start\" [class.!ax-items-start]=\"_showInline\">\r\n <ng-content select=\"ax-icon\"></ng-content>\r\n</div>\r\n<div class=\"ax-alert-inline-middle\">\r\n <div class=\"ax-alert-middle-block-start\">\r\n <div class=\"ax-alert-title\">\r\n <ng-content select=\"ax-title\"></ng-content>\r\n </div>\r\n </div>\r\n <div\r\n class=\"ax-alert-middle-block-end\"\r\n [class.ax-hidden]=\"!_showInline\"\r\n [class.ax-title-gap]=\"_title\">\r\n <ng-content select=\"ax-content\"> </ng-content>\r\n <ng-content select=\"ax-footer\"> </ng-content>\r\n </div>\r\n</div>\r\n<div class=\"ax-alert-inline-end\" [class.!ax-items-start]=\"_showInline\">\r\n <ng-content select=\"ax-button\"></ng-content>\r\n <ng-content select=\"ax-close-button\"></ng-content>\r\n</div>\r\n<div\r\n class=\"ax-alert-progress\"\r\n [style.animation-duration.ms]=\"timeOut\"\r\n *ngIf=\"timeOut\"></div>\r\n", styles: [".ax-dark ax-alert.ax-primary-default{background-color:rgba(var(--ax-color-primary-600));border-color:rgba(var(--ax-color-primary-600))}.ax-dark ax-alert.ax-primary-default ax-title{color:rgba(var(--ax-color-primary-fore))}.ax-dark ax-alert.ax-primary-default ax-content{color:rgba(var(--ax-color-primary-fore))}.ax-dark ax-alert.ax-primary-default ax-button[class$=blank]{color:rgba(var(--ax-color-primary-fore))}.ax-dark ax-alert.ax-primary-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-primary-fore))}.ax-dark ax-alert.ax-primary-default .ax-alert-progress{background-color:rgba(var(--ax-color-primary-fore))}.ax-dark ax-alert.ax-secondary-default{background-color:rgba(var(--ax-color-secondary-600));border-color:rgba(var(--ax-color-secondary-600))}.ax-dark ax-alert.ax-secondary-default ax-title{color:rgba(var(--ax-color-secondary-fore))}.ax-dark ax-alert.ax-secondary-default ax-content{color:rgba(var(--ax-color-secondary-fore))}.ax-dark ax-alert.ax-secondary-default ax-button[class$=blank]{color:rgba(var(--ax-color-secondary-fore))}.ax-dark ax-alert.ax-secondary-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-secondary-fore))}.ax-dark ax-alert.ax-secondary-default .ax-alert-progress{background-color:rgba(var(--ax-color-secondary-fore))}.ax-dark ax-alert.ax-success-default{background-color:rgba(var(--ax-color-success-600));border-color:rgba(var(--ax-color-success-600))}.ax-dark ax-alert.ax-success-default ax-title{color:rgba(var(--ax-color-success-fore))}.ax-dark ax-alert.ax-success-default ax-content{color:rgba(var(--ax-color-success-fore))}.ax-dark ax-alert.ax-success-default ax-button[class$=blank]{color:rgba(var(--ax-color-success-fore))}.ax-dark ax-alert.ax-success-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-success-fore))}.ax-dark ax-alert.ax-success-default .ax-alert-progress{background-color:rgba(var(--ax-color-success-fore))}.ax-dark ax-alert.ax-warning-default{background-color:rgba(var(--ax-color-warning-600));border-color:rgba(var(--ax-color-warning-600))}.ax-dark ax-alert.ax-warning-default ax-title{color:rgba(var(--ax-color-warning-fore))}.ax-dark ax-alert.ax-warning-default ax-content{color:rgba(var(--ax-color-warning-fore))}.ax-dark ax-alert.ax-warning-default ax-button[class$=blank]{color:rgba(var(--ax-color-warning-fore))}.ax-dark ax-alert.ax-warning-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-warning-fore))}.ax-dark ax-alert.ax-warning-default .ax-alert-progress{background-color:rgba(var(--ax-color-warning-fore))}.ax-dark ax-alert.ax-danger-default{background-color:rgba(var(--ax-color-danger-600));border-color:rgba(var(--ax-color-danger-600))}.ax-dark ax-alert.ax-danger-default ax-title{color:rgba(var(--ax-color-danger-fore))}.ax-dark ax-alert.ax-danger-default ax-content{color:rgba(var(--ax-color-danger-fore))}.ax-dark ax-alert.ax-danger-default ax-button[class$=blank]{color:rgba(var(--ax-color-danger-fore))}.ax-dark ax-alert.ax-danger-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-danger-fore))}.ax-dark ax-alert.ax-danger-default .ax-alert-progress{background-color:rgba(var(--ax-color-danger-fore))}.ax-dark ax-alert.ax-info-default{background-color:rgba(var(--ax-color-info-600));border-color:rgba(var(--ax-color-info-600))}.ax-dark ax-alert.ax-info-default ax-title{color:rgba(var(--ax-color-info-fore))}.ax-dark ax-alert.ax-info-default ax-content{color:rgba(var(--ax-color-info-fore))}.ax-dark ax-alert.ax-info-default ax-button[class$=blank]{color:rgba(var(--ax-color-info-fore))}.ax-dark ax-alert.ax-info-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-info-fore))}.ax-dark ax-alert.ax-info-default .ax-alert-progress{background-color:rgba(var(--ax-color-info-fore))}ax-alert{position:relative;padding:1rem;border-radius:var(--ax-rounded-border-default);font-size:.875rem;display:flex;gap:1rem;overflow:hidden}ax-alert.ax-state-hidden{visibility:hidden;opacity:0}ax-alert.ax-state-visible{visibility:visible;opacity:1}ax-alert .ax-alert-inline-middle{display:flex;flex-direction:column;justify-content:center;flex:1 1 0%}ax-alert .ax-alert-inline-start,ax-alert .ax-alert-inline-end{display:flex}ax-alert .ax-alert-inline-start.ax-items-start,ax-alert .ax-alert-inline-end.ax-items-start{align-items:flex-start!important}ax-alert .ax-alert-inline-start{align-items:center}ax-alert .ax-alert-inline-start>ax-icon{border-radius:99rem;display:grid;place-items:center;font-size:1.25rem;line-height:1.25rem}ax-alert .ax-alert-inline-end{align-items:center}ax-alert .ax-alert-middle-block-start{display:flex;align-items:center;justify-content:center}ax-alert .ax-alert-middle-block-start .ax-alert-title{display:flex;flex-direction:column;flex:1}ax-alert .ax-alert-middle-block-start .ax-alert-title ax-title{font-size:.875rem;line-height:1.25rem;font-weight:500}ax-alert .ax-alert-middle-block-end{display:flex;flex-direction:column;gap:1rem}ax-alert .ax-alert-middle-block-end.ax-title-gap{margin-top:.5rem}ax-alert .ax-alert-middle-block-end.ax-hidden{display:none!important}ax-alert .ax-alert-middle-block-end ax-content{display:block}ax-alert .ax-alert-middle-block-end ax-footer{background-color:transparent}ax-alert .ax-alert-progress{width:0px;height:.25rem;position:absolute;inset-inline-start:0px;bottom:0;animation-duration:4s;animation-timing-function:linear;animation-name:progressBar}@keyframes progressBar{0%{width:100%}to{width:0%}}ax-alert.ax-primary-default{background-color:rgba(var(--ax-color-primary-50));border-color:rgba(var(--ax-color-primary-500))}ax-alert.ax-primary-default ax-title{color:rgba(var(--ax-color-text-default))}ax-alert.ax-primary-default ax-content{color:rgba(var(--ax-color-text-default))}ax-alert.ax-primary-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-primary-500))}ax-alert.ax-primary-default .ax-alert-progress{background-color:rgba(var(--ax-color-primary-900))}ax-alert.ax-secondary-default{background-color:rgba(var(--ax-color-secondary-50));border-color:rgba(var(--ax-color-secondary-500))}ax-alert.ax-secondary-default ax-title{color:rgba(var(--ax-color-text-default))}ax-alert.ax-secondary-default ax-content{color:rgba(var(--ax-color-text-default))}ax-alert.ax-secondary-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-secondary-500))}ax-alert.ax-secondary-default .ax-alert-progress{background-color:rgba(var(--ax-color-secondary-900))}ax-alert.ax-success-default{background-color:rgba(var(--ax-color-success-50));border-color:rgba(var(--ax-color-success-500))}ax-alert.ax-success-default ax-title{color:rgba(var(--ax-color-text-default))}ax-alert.ax-success-default ax-content{color:rgba(var(--ax-color-text-default))}ax-alert.ax-success-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-success-500))}ax-alert.ax-success-default .ax-alert-progress{background-color:rgba(var(--ax-color-success-900))}ax-alert.ax-warning-default{background-color:rgba(var(--ax-color-warning-50));border-color:rgba(var(--ax-color-warning-500))}ax-alert.ax-warning-default ax-title{color:rgba(var(--ax-color-text-default))}ax-alert.ax-warning-default ax-content{color:rgba(var(--ax-color-text-default))}ax-alert.ax-warning-default ax-button[class$=blank]{color:rgba(var(--ax-color-warning-fore))}ax-alert.ax-warning-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-warning-500))}ax-alert.ax-warning-default .ax-alert-progress{background-color:rgba(var(--ax-color-warning-900))}ax-alert.ax-danger-default{background-color:rgba(var(--ax-color-danger-50));border-color:rgba(var(--ax-color-danger-500))}ax-alert.ax-danger-default ax-title{color:rgba(var(--ax-color-text-default))}ax-alert.ax-danger-default ax-content{color:rgba(var(--ax-color-text-default))}ax-alert.ax-danger-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-danger-500))}ax-alert.ax-danger-default .ax-alert-progress{background-color:rgba(var(--ax-color-danger-900))}ax-alert.ax-info-default{background-color:rgba(var(--ax-color-info-50));border-color:rgba(var(--ax-color-info-500))}ax-alert.ax-info-default ax-title{color:rgba(var(--ax-color-text-default))}ax-alert.ax-info-default ax-content{color:rgba(var(--ax-color-text-default))}ax-alert.ax-info-default .ax-alert-inline-start>ax-icon{color:rgba(var(--ax-color-info-500))}ax-alert.ax-info-default .ax-alert-progress{background-color:rgba(var(--ax-color-info-900))}\n"] }]
155
165
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { _icon: [{
@@ -181,11 +191,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
181
191
  const COMPONENT = [AXAlertComponent];
182
192
  const MODULES = [CommonModule, AXDecoratorModule];
183
193
  class AXAlertModule {
194
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
195
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: AXAlertModule, declarations: [AXAlertComponent], imports: [CommonModule, AXDecoratorModule], exports: [AXAlertComponent] });
196
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXAlertModule, imports: [MODULES] });
184
197
  }
185
- AXAlertModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
186
- AXAlertModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.4", ngImport: i0, type: AXAlertModule, declarations: [AXAlertComponent], imports: [CommonModule, AXDecoratorModule], exports: [AXAlertComponent] });
187
- AXAlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXAlertModule, imports: [MODULES] });
188
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXAlertModule, decorators: [{
198
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXAlertModule, decorators: [{
189
199
  type: NgModule,
190
200
  args: [{
191
201
  declarations: [...COMPONENT],
@@ -201,4 +211,3 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
201
211
 
202
212
  export { AXAlertComponent, AXAlertModule, AXBaseAlertMixin };
203
213
  //# sourceMappingURL=acorex-components-alert.mjs.map
204
- //# sourceMappingURL=acorex-components-alert.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-components-alert.mjs","sources":["../../../../projects/acorex/components/alert/src/alert.component.ts","../../../../projects/acorex/components/alert/src/alert.component.html","../../../../projects/acorex/components/alert/src/alert.module.ts","../../../../projects/acorex/components/alert/acorex-components-alert.ts"],"sourcesContent":["import { AXButtonComponent } from '@acorex/components/button';\r\nimport {\r\n AXDecoratorContentComponent,\r\n AXDecoratorFooterComponent,\r\n AXDecoratorIconComponent,\r\n AXDecoratorTitleComponent,\r\n} from '@acorex/components/decorators';\r\nimport {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n Input,\r\n HostBinding,\r\n ContentChild,\r\n EventEmitter,\r\n Output,\r\n QueryList,\r\n ContentChildren,\r\n ViewChild,\r\n} from '@angular/core';\r\nimport { startWith } from 'rxjs/operators';\r\nimport { AXClosbaleComponent, AXEvent } from '@acorex/components/common';\r\nimport { AXBaseComponent, AXComponentOptionChanged, _ColorLookComponentMixin } from '@acorex/components/mixin';\r\n\r\nexport const AXBaseAlertMixin = _ColorLookComponentMixin(AXBaseComponent);\r\n\r\n/**\r\n * Regular description\r\n *\r\n * @category Components\r\n */\r\n@Component({\r\n selector: 'ax-alert',\r\n templateUrl: './alert.component.html',\r\n styleUrls: ['./alert.component.scss'],\r\n inputs: ['color'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n providers: [{ provide: AXClosbaleComponent, useExisting: AXAlertComponent }],\r\n})\r\nexport class AXAlertComponent extends AXBaseAlertMixin {\r\n @ContentChild(AXDecoratorIconComponent)\r\n private _icon!: AXDecoratorIconComponent;\r\n\r\n @ContentChildren(AXButtonComponent, { descendants: true })\r\n private _buttons!: QueryList<AXButtonComponent>;\r\n\r\n @ContentChild(AXDecoratorTitleComponent)\r\n protected _title!: AXButtonComponent;\r\n @ContentChild(AXDecoratorContentComponent)\r\n protected _content!: AXButtonComponent;\r\n\r\n @ContentChild(AXDecoratorFooterComponent)\r\n protected _footer!: AXButtonComponent;\r\n\r\n protected _showInline: boolean = false;\r\n\r\n @Output()\r\n onClosed: EventEmitter<AXEvent> = new EventEmitter<AXEvent>();\r\n\r\n private _customIcon: string;\r\n private _timeOutRef: number;\r\n\r\n /**\r\n * @ignore\r\n */\r\n @HostBinding('class')\r\n get __hostClass(): string {\r\n const _class = this.look ? `ax-${this.color}-${this.look}` : `ax-${this.color}-default`;\r\n return `ax-alert ax-none ${_class}`;\r\n }\r\n\r\n private _timeOut: number;\r\n @Input()\r\n public get timeOut(): number {\r\n return this._timeOut;\r\n }\r\n public set timeOut(v: number) {\r\n if (v != this._timeOut) {\r\n clearTimeout(this._timeOutRef);\r\n this._timeOut = v;\r\n if (v) {\r\n this._timeOutRef = window.setTimeout(() => {\r\n this.close();\r\n }, this.timeOut);\r\n }\r\n }\r\n }\r\n\r\n private _observer: MutationObserver;\r\n\r\n protected _visible: boolean;\r\n /**\r\n * set the visibility of the Alert\r\n */\r\n @Input()\r\n public get visible(): boolean {\r\n return this._visible;\r\n }\r\n public set visible(v: boolean) {\r\n if (this._visible != v) {\r\n this._visible = v;\r\n const host = this._getHostElement();\r\n if (v) {\r\n host.classList.remove('ax-state-hidden');\r\n host.classList.add('ax-state-visible');\r\n } else {\r\n host.classList.add('ax-state-hidden');\r\n host.classList.toggle('ax-state-visible');\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * @ignore\r\n */\r\n constructor(elementRef: ElementRef, cdr: ChangeDetectorRef) {\r\n super(elementRef, cdr);\r\n //\r\n const config = { attributes: false, childList: true, subtree: true };\r\n\r\n const callback = (mutationList, observer) => {\r\n for (const mutation of mutationList) {\r\n if (mutation.type === 'childList') {\r\n this._setIcon();\r\n this._applyButtonStyle();\r\n this._showInline = this._content != null || this._footer != null;\r\n this._cdr.markForCheck();\r\n }\r\n }\r\n };\r\n\r\n // Create an observer instance linked to the callback function\r\n this._observer = new MutationObserver(callback);\r\n\r\n // Start observing the target node for configured mutations\r\n this._observer.observe(this._getHostElement(), config);\r\n }\r\n\r\n onViewInit() {\r\n if (this.visible == undefined) {\r\n this.visible = true;\r\n }\r\n //\r\n this._customIcon = this._icon?.icon;\r\n this._showInline = this._content != null || this._footer != null;\r\n }\r\n\r\n override _onOptionChanged(option: AXComponentOptionChanged) {\r\n this._setIcon();\r\n this._applyButtonStyle();\r\n }\r\n\r\n private _setIcon() {\r\n if (!this._icon || this._icon._getInnerElement()) return;\r\n\r\n switch (this.color) {\r\n case 'success':\r\n this._icon.icon = 'ax-icon ax-icon-check-circle-fill';\r\n break;\r\n case 'danger':\r\n this._icon.icon = 'ax-icon ax-icon-error-fill';\r\n break;\r\n case 'warning':\r\n this._icon.icon = 'ax-icon ax-icon-warning-fill';\r\n break;\r\n default:\r\n this._icon.icon = this._customIcon || 'ax-icon ax-icon-check-circle-fill';\r\n break;\r\n }\r\n }\r\n\r\n private _applyButtonStyle() {\r\n this._buttons?.forEach((c: any) => {\r\n c.color = this.color;\r\n c.getHostElement().classList.add('ax-sm');\r\n c.look = !c.look || c.look == 'default' ? 'default' : 'blank';\r\n });\r\n }\r\n\r\n /**\r\n * Remove the alert from the container\r\n */\r\n close(): void {\r\n const host = this._getHostElement();\r\n this.visible = false;\r\n const func = () => {\r\n host.parentElement?.removeChild(host);\r\n this.onClosed.emit({\r\n component: this,\r\n });\r\n host.removeEventListener('transitionend', func);\r\n };\r\n host.addEventListener('transitionend', func);\r\n }\r\n\r\n /**\r\n * Hide the alert\r\n */\r\n hide(): void {\r\n this.visible = false;\r\n }\r\n\r\n /**\r\n * Show the alert\r\n */\r\n show() {\r\n this.visible = true;\r\n }\r\n\r\n onDestroy(): void {\r\n this._observer?.disconnect();\r\n }\r\n}\r\n","<div class=\"ax-alert-inline-start\" [class.!ax-items-start]=\"_showInline\">\r\n <ng-content select=\"ax-icon\"></ng-content>\r\n</div>\r\n<div class=\"ax-alert-inline-middle\">\r\n <div class=\"ax-alert-middle-block-start\">\r\n <div class=\"ax-alert-title\">\r\n <ng-content select=\"ax-title\"></ng-content>\r\n </div>\r\n </div>\r\n <div\r\n class=\"ax-alert-middle-block-end\"\r\n [class.ax-hidden]=\"!_showInline\"\r\n [class.ax-title-gap]=\"_title\">\r\n <ng-content select=\"ax-content\"> </ng-content>\r\n <ng-content select=\"ax-footer\"> </ng-content>\r\n </div>\r\n</div>\r\n<div class=\"ax-alert-inline-end\" [class.!ax-items-start]=\"_showInline\">\r\n <ng-content select=\"ax-button\"></ng-content>\r\n <ng-content select=\"ax-close-button\"></ng-content>\r\n</div>\r\n<div\r\n class=\"ax-alert-progress\"\r\n [style.animation-duration.ms]=\"timeOut\"\r\n *ngIf=\"timeOut\"></div>\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { AXDecoratorModule } from '@acorex/components/decorators';\r\nimport { AXAlertComponent } from './alert.component';\r\n\r\nconst COMPONENT = [AXAlertComponent];\r\nconst MODULES = [CommonModule, AXDecoratorModule];\r\n\r\n@NgModule({\r\n declarations: [...COMPONENT],\r\n imports: [...MODULES],\r\n exports: [...COMPONENT],\r\n providers: [],\r\n})\r\nexport class AXAlertModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;MA0Ba,gBAAgB,GAAG,wBAAwB,CAAC,eAAe,EAAE;AAE1E;;;;AAIG;AAUG,MAAO,gBAAiB,SAAQ,gB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OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,YAJX,OAAO,CAAA,EAAA,CAAA,CAAA;2FAIT,aAAa,EAAA,UAAA,EAAA,CAAA;kBANzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,GAAG,SAAS,CAAC;AAC5B,oBAAA,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;AACrB,oBAAA,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC;AACvB,oBAAA,SAAS,EAAE,EAAE;AACd,iBAAA,CAAA;;;ACbD;;AAEG;;;;"}
1
+ {"version":3,"file":"acorex-components-alert.mjs","sources":["../../../../projects/acorex/components/alert/src/alert.component.ts","../../../../projects/acorex/components/alert/src/alert.component.html","../../../../projects/acorex/components/alert/src/alert.module.ts","../../../../projects/acorex/components/alert/acorex-components-alert.ts"],"sourcesContent":["import { AXButtonComponent } from '@acorex/components/button';\r\nimport {\r\n AXDecoratorContentComponent,\r\n AXDecoratorFooterComponent,\r\n AXDecoratorIconComponent,\r\n AXDecoratorTitleComponent,\r\n} from '@acorex/components/decorators';\r\nimport {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n Input,\r\n HostBinding,\r\n ContentChild,\r\n EventEmitter,\r\n Output,\r\n QueryList,\r\n ContentChildren,\r\n ViewChild,\r\n} from '@angular/core';\r\nimport { startWith } from 'rxjs/operators';\r\nimport { AXClosbaleComponent, AXEvent } from '@acorex/components/common';\r\nimport { AXBaseComponent, AXComponentOptionChanged, _ColorLookComponentMixin } from '@acorex/components/mixin';\r\n\r\nexport const AXBaseAlertMixin = _ColorLookComponentMixin(AXBaseComponent);\r\n\r\n/**\r\n * Regular description\r\n *\r\n * @category Components\r\n */\r\n@Component({\r\n selector: 'ax-alert',\r\n templateUrl: './alert.component.html',\r\n styleUrls: ['./alert.component.scss'],\r\n inputs: ['color'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n providers: [{ provide: AXClosbaleComponent, useExisting: AXAlertComponent }],\r\n})\r\nexport class AXAlertComponent extends AXBaseAlertMixin {\r\n @ContentChild(AXDecoratorIconComponent)\r\n private _icon!: AXDecoratorIconComponent;\r\n\r\n @ContentChildren(AXButtonComponent, { descendants: true })\r\n private _buttons!: QueryList<AXButtonComponent>;\r\n\r\n @ContentChild(AXDecoratorTitleComponent)\r\n protected _title!: AXButtonComponent;\r\n @ContentChild(AXDecoratorContentComponent)\r\n protected _content!: AXButtonComponent;\r\n\r\n @ContentChild(AXDecoratorFooterComponent)\r\n protected _footer!: AXButtonComponent;\r\n\r\n protected _showInline: boolean = false;\r\n\r\n @Output()\r\n onClosed: EventEmitter<AXEvent> = new EventEmitter<AXEvent>();\r\n\r\n private _customIcon: string;\r\n private _timeOutRef: number;\r\n\r\n /**\r\n * @ignore\r\n */\r\n @HostBinding('class')\r\n get __hostClass(): string {\r\n const _class = this.look ? `ax-${this.color}-${this.look}` : `ax-${this.color}-default`;\r\n return `ax-alert ax-none ${_class}`;\r\n }\r\n\r\n private _timeOut: number;\r\n @Input()\r\n public get timeOut(): number {\r\n return this._timeOut;\r\n }\r\n public set timeOut(v: number) {\r\n if (v != this._timeOut) {\r\n clearTimeout(this._timeOutRef);\r\n this._timeOut = v;\r\n if (v) {\r\n this._timeOutRef = window.setTimeout(() => {\r\n this.close();\r\n }, this.timeOut);\r\n }\r\n }\r\n }\r\n\r\n private _observer: MutationObserver;\r\n\r\n protected _visible: boolean;\r\n /**\r\n * set the visibility of the Alert\r\n */\r\n @Input()\r\n public get visible(): boolean {\r\n return this._visible;\r\n }\r\n public set visible(v: boolean) {\r\n if (this._visible != v) {\r\n this._visible = v;\r\n const host = this._getHostElement();\r\n if (v) {\r\n host.classList.remove('ax-state-hidden');\r\n host.classList.add('ax-state-visible');\r\n } else {\r\n host.classList.add('ax-state-hidden');\r\n host.classList.toggle('ax-state-visible');\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * @ignore\r\n */\r\n constructor(elementRef: ElementRef, cdr: ChangeDetectorRef) {\r\n super(elementRef, cdr);\r\n //\r\n const config = { attributes: false, childList: true, subtree: true };\r\n\r\n const callback = (mutationList, observer) => {\r\n for (const mutation of mutationList) {\r\n if (mutation.type === 'childList') {\r\n this._setIcon();\r\n this._applyButtonStyle();\r\n this._showInline = this._content != null || this._footer != null;\r\n this._cdr.markForCheck();\r\n }\r\n }\r\n };\r\n\r\n // Create an observer instance linked to the callback function\r\n this._observer = new MutationObserver(callback);\r\n\r\n // Start observing the target node for configured mutations\r\n this._observer.observe(this._getHostElement(), config);\r\n }\r\n\r\n onViewInit() {\r\n if (this.visible == undefined) {\r\n this.visible = true;\r\n }\r\n //\r\n this._customIcon = this._icon?.icon;\r\n this._showInline = this._content != null || this._footer != null;\r\n }\r\n\r\n override _onOptionChanged(option: AXComponentOptionChanged) {\r\n this._setIcon();\r\n this._applyButtonStyle();\r\n }\r\n\r\n private _setIcon() {\r\n if (!this._icon || this._icon._getInnerElement()) return;\r\n\r\n switch (this.color) {\r\n case 'success':\r\n this._icon.icon = 'ax-icon ax-icon-check-circle-fill';\r\n break;\r\n case 'danger':\r\n this._icon.icon = 'ax-icon ax-icon-error-fill';\r\n break;\r\n case 'warning':\r\n this._icon.icon = 'ax-icon ax-icon-warning-fill';\r\n break;\r\n default:\r\n this._icon.icon = this._customIcon || 'ax-icon ax-icon-check-circle-fill';\r\n break;\r\n }\r\n }\r\n\r\n private _applyButtonStyle() {\r\n this._buttons?.forEach((c: any) => {\r\n c.color = this.color;\r\n c.getHostElement().classList.add('ax-sm');\r\n c.look = !c.look || c.look == 'default' ? 'default' : 'blank';\r\n });\r\n }\r\n\r\n /**\r\n * Remove the alert from the container\r\n */\r\n close(): void {\r\n const host = this._getHostElement();\r\n this.visible = false;\r\n const func = () => {\r\n host.parentElement?.removeChild(host);\r\n this.onClosed.emit({\r\n component: this,\r\n });\r\n host.removeEventListener('transitionend', func);\r\n };\r\n host.addEventListener('transitionend', func);\r\n }\r\n\r\n /**\r\n * Hide the alert\r\n */\r\n hide(): void {\r\n this.visible = false;\r\n }\r\n\r\n /**\r\n * Show the alert\r\n */\r\n show() {\r\n this.visible = true;\r\n }\r\n\r\n onDestroy(): void {\r\n this._observer?.disconnect();\r\n }\r\n}\r\n","<div class=\"ax-alert-inline-start\" [class.!ax-items-start]=\"_showInline\">\r\n <ng-content select=\"ax-icon\"></ng-content>\r\n</div>\r\n<div class=\"ax-alert-inline-middle\">\r\n <div class=\"ax-alert-middle-block-start\">\r\n <div class=\"ax-alert-title\">\r\n <ng-content select=\"ax-title\"></ng-content>\r\n </div>\r\n </div>\r\n <div\r\n class=\"ax-alert-middle-block-end\"\r\n [class.ax-hidden]=\"!_showInline\"\r\n [class.ax-title-gap]=\"_title\">\r\n <ng-content select=\"ax-content\"> </ng-content>\r\n <ng-content select=\"ax-footer\"> </ng-content>\r\n </div>\r\n</div>\r\n<div class=\"ax-alert-inline-end\" [class.!ax-items-start]=\"_showInline\">\r\n <ng-content select=\"ax-button\"></ng-content>\r\n <ng-content select=\"ax-close-button\"></ng-content>\r\n</div>\r\n<div\r\n class=\"ax-alert-progress\"\r\n [style.animation-duration.ms]=\"timeOut\"\r\n *ngIf=\"timeOut\"></div>\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { AXDecoratorModule } from '@acorex/components/decorators';\r\nimport { AXAlertComponent } from './alert.component';\r\n\r\nconst COMPONENT = [AXAlertComponent];\r\nconst MODULES = [CommonModule, AXDecoratorModule];\r\n\r\n@NgModule({\r\n declarations: [...COMPONENT],\r\n imports: [...MODULES],\r\n exports: [...COMPONENT],\r\n providers: [],\r\n})\r\nexport class AXAlertModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;MA0Ba,gBAAgB,GAAG,wBAAwB,CAAC,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