@acorex/components 7.1.2 → 7.1.3

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 (367) hide show
  1. package/README.md +24 -24
  2. package/breadcrumbs/src/breadcrumbs-item.component.d.ts +3 -1
  3. package/button/src/button-item.component.d.ts +1 -3
  4. package/color-picker/src/color-picker.component.d.ts +5 -0
  5. package/esm2022/action-sheet/public-api.mjs +1 -1
  6. package/esm2022/action-sheet/src/action-sheet.component.mjs +3 -3
  7. package/esm2022/action-sheet/src/action-sheet.interface.mjs +1 -1
  8. package/esm2022/action-sheet/src/action-sheet.module.mjs +1 -1
  9. package/esm2022/action-sheet/src/action-sheet.service.mjs +1 -1
  10. package/esm2022/alert/public-api.mjs +1 -1
  11. package/esm2022/alert/src/alert.component.mjs +3 -3
  12. package/esm2022/alert/src/alert.module.mjs +1 -1
  13. package/esm2022/avatar/public-api.mjs +1 -1
  14. package/esm2022/avatar/src/avatar-group.component.mjs +1 -1
  15. package/esm2022/avatar/src/avatar.component.mjs +3 -3
  16. package/esm2022/avatar/src/avatar.module.mjs +1 -1
  17. package/esm2022/badge/public-api.mjs +1 -1
  18. package/esm2022/badge/src/badge.component.mjs +3 -3
  19. package/esm2022/badge/src/badge.module.mjs +1 -1
  20. package/esm2022/breadcrumbs/public-api.mjs +1 -1
  21. package/esm2022/breadcrumbs/src/breadcrumbs-item.class.mjs +1 -1
  22. package/esm2022/breadcrumbs/src/breadcrumbs-item.component.mjs +3 -3
  23. package/esm2022/breadcrumbs/src/breadcrumbs.component.mjs +3 -3
  24. package/esm2022/breadcrumbs/src/breadcrumbs.module.mjs +1 -1
  25. package/esm2022/button/public-api.mjs +1 -1
  26. package/esm2022/button/src/button-group.component.mjs +1 -1
  27. package/esm2022/button/src/button-item.class.mjs +1 -1
  28. package/esm2022/button/src/button-item.component.mjs +11 -11
  29. package/esm2022/button/src/button.component.mjs +3 -3
  30. package/esm2022/button/src/button.module.mjs +1 -1
  31. package/esm2022/calendar/public-api.mjs +1 -1
  32. package/esm2022/calendar/src/calendar-range.component.mjs +3 -3
  33. package/esm2022/calendar/src/calendar.class.mjs +1 -1
  34. package/esm2022/calendar/src/calendar.component.mjs +3 -3
  35. package/esm2022/calendar/src/calendar.module.mjs +1 -1
  36. package/esm2022/card/public-api.mjs +1 -1
  37. package/esm2022/card/src/card.component.mjs +3 -3
  38. package/esm2022/card/src/card.module.mjs +1 -1
  39. package/esm2022/checkbox/public-api.mjs +1 -1
  40. package/esm2022/checkbox/src/checkbox.component.mjs +3 -3
  41. package/esm2022/checkbox/src/checkbox.module.mjs +1 -1
  42. package/esm2022/chips/public-api.mjs +1 -1
  43. package/esm2022/chips/src/chips.component.mjs +3 -3
  44. package/esm2022/chips/src/chips.module.mjs +1 -1
  45. package/esm2022/collapse/public-api.mjs +1 -1
  46. package/esm2022/collapse/src/collapse-group.component.mjs +1 -1
  47. package/esm2022/collapse/src/collapse.component.mjs +3 -3
  48. package/esm2022/collapse/src/collapse.module.mjs +1 -1
  49. package/esm2022/color-palette/public-api.mjs +1 -1
  50. package/esm2022/color-palette/src/color-palette-input.component.mjs +3 -3
  51. package/esm2022/color-palette/src/color-palette-picker.component.mjs +3 -3
  52. package/esm2022/color-palette/src/color-palette-preview.component.mjs +7 -7
  53. package/esm2022/color-palette/src/color-palette-swatches.component.mjs +11 -11
  54. package/esm2022/color-palette/src/color-palette.class.mjs +1 -1
  55. package/esm2022/color-palette/src/color-palette.component.mjs +3 -3
  56. package/esm2022/color-palette/src/color-palette.module.mjs +1 -1
  57. package/esm2022/color-picker/public-api.mjs +1 -1
  58. package/esm2022/color-picker/src/color-picker.component.mjs +3 -3
  59. package/esm2022/color-picker/src/color-picker.module.mjs +1 -1
  60. package/esm2022/common/public-api.mjs +1 -1
  61. package/esm2022/common/src/classes/components.class.mjs +1 -1
  62. package/esm2022/common/src/classes/data.class.mjs +1 -1
  63. package/esm2022/common/src/classes/drawing.class.mjs +1 -1
  64. package/esm2022/common/src/classes/events.class.mjs +1 -1
  65. package/esm2022/common/src/classes/styles.class.mjs +1 -1
  66. package/esm2022/common/src/common.module.mjs +1 -1
  67. package/esm2022/common/src/components/base-component.class.mjs +1 -1
  68. package/esm2022/common/src/components/button-base-component.class.mjs +1 -1
  69. package/esm2022/common/src/components/color-component.class.mjs +1 -1
  70. package/esm2022/common/src/components/colorlook-component.class.mjs +1 -1
  71. package/esm2022/common/src/components/index.mjs +1 -1
  72. package/esm2022/common/src/components/interactive-component.class.mjs +1 -1
  73. package/esm2022/common/src/components/look-component.class.mjs +1 -1
  74. package/esm2022/common/src/components/value-component.class.mjs +1 -1
  75. package/esm2022/common/src/constant/positions.mjs +1 -1
  76. package/esm2022/common/src/directives/auto-focus.directive.mjs +1 -1
  77. package/esm2022/common/src/directives/debounce-time.directive.mjs +1 -1
  78. package/esm2022/common/src/directives/hotkey.directive.mjs +1 -1
  79. package/esm2022/common/src/directives/infinite-scroll.directive.mjs +1 -1
  80. package/esm2022/common/src/directives/responsive.directive.mjs +1 -1
  81. package/esm2022/common/src/services/custom-cdk-overlay.service.mjs +1 -1
  82. package/esm2022/common/src/services/hotkey.service.mjs +1 -1
  83. package/esm2022/common/src/services/overlay.service.mjs +1 -1
  84. package/esm2022/context-menu/public-api.mjs +1 -1
  85. package/esm2022/context-menu/src/context-menu.component.mjs +3 -3
  86. package/esm2022/context-menu/src/context-menu.module.mjs +1 -1
  87. package/esm2022/data-pager/public-api.mjs +1 -1
  88. package/esm2022/data-pager/src/data-pager-base.component.mjs +1 -1
  89. package/esm2022/data-pager/src/data-pager-info.component.mjs +1 -1
  90. package/esm2022/data-pager/src/data-pager-input-selector.component.mjs +9 -9
  91. package/esm2022/data-pager/src/data-pager-next-buttons.components.mjs +17 -17
  92. package/esm2022/data-pager/src/data-pager-numeric-selector.component.mjs +27 -27
  93. package/esm2022/data-pager/src/data-pager-pagesize-dropdown.component.mjs +23 -23
  94. package/esm2022/data-pager/src/data-pager-prev-buttons.component.mjs +15 -15
  95. package/esm2022/data-pager/src/data-pager.component.mjs +3 -3
  96. package/esm2022/data-pager/src/data-pager.module.mjs +1 -1
  97. package/esm2022/data-table/public-api.mjs +1 -1
  98. package/esm2022/data-table/src/data-column-cell-template.directive.mjs +1 -1
  99. package/esm2022/data-table/src/data-column.directive.mjs +1 -1
  100. package/esm2022/data-table/src/data-table.component.mjs +3 -3
  101. package/esm2022/data-table/src/data-table.module.mjs +1 -1
  102. package/esm2022/date-picker/public-api.mjs +1 -1
  103. package/esm2022/date-picker/src/datepicker.component.mjs +3 -3
  104. package/esm2022/date-picker/src/datepicker.module.mjs +1 -1
  105. package/esm2022/decorators/public-api.mjs +1 -1
  106. package/esm2022/decorators/src/close-button.component.mjs +9 -9
  107. package/esm2022/decorators/src/content.component.mjs +1 -1
  108. package/esm2022/decorators/src/decorators.module.mjs +1 -1
  109. package/esm2022/decorators/src/footer.component.mjs +9 -9
  110. package/esm2022/decorators/src/form-hint.component.mjs +1 -1
  111. package/esm2022/decorators/src/header.component.mjs +9 -9
  112. package/esm2022/decorators/src/icon.component.mjs +1 -1
  113. package/esm2022/decorators/src/overlay.component.mjs +1 -1
  114. package/esm2022/decorators/src/placeholder.component.mjs +1 -1
  115. package/esm2022/decorators/src/prefix.component.mjs +1 -1
  116. package/esm2022/decorators/src/sub-title.component.mjs +3 -3
  117. package/esm2022/decorators/src/suffix.component.mjs +1 -1
  118. package/esm2022/decorators/src/text.component.mjs +1 -1
  119. package/esm2022/decorators/src/title.component.mjs +1 -1
  120. package/esm2022/dialog/public-api.mjs +1 -1
  121. package/esm2022/dialog/src/dialog.class.mjs +1 -1
  122. package/esm2022/dialog/src/dialog.component.mjs +3 -3
  123. package/esm2022/dialog/src/dialog.module.mjs +1 -1
  124. package/esm2022/dialog/src/dialog.service.mjs +1 -1
  125. package/esm2022/drawer/public-api.mjs +1 -1
  126. package/esm2022/drawer/src/drawer-container.component.mjs +9 -9
  127. package/esm2022/drawer/src/drawer.component.mjs +7 -7
  128. package/esm2022/drawer/src/drawer.module.mjs +1 -1
  129. package/esm2022/dropdown/public-api.mjs +1 -1
  130. package/esm2022/dropdown/src/dropdown-panel.component.mjs +3 -3
  131. package/esm2022/dropdown/src/dropdown.module.mjs +1 -1
  132. package/esm2022/form/public-api.mjs +1 -1
  133. package/esm2022/form/src/form-field.component.mjs +1 -1
  134. package/esm2022/form/src/form.component.mjs +1 -1
  135. package/esm2022/form/src/form.module.mjs +1 -1
  136. package/esm2022/form/src/validation-rule.widget.mjs +1 -1
  137. package/esm2022/form/src/validation-summary.component.mjs +29 -29
  138. package/esm2022/form/src/validation.class.mjs +1 -1
  139. package/esm2022/image/public-api.mjs +1 -1
  140. package/esm2022/image/src/image.component.mjs +3 -3
  141. package/esm2022/image/src/image.module.mjs +1 -1
  142. package/esm2022/label/public-api.mjs +1 -1
  143. package/esm2022/label/src/label.component.mjs +3 -3
  144. package/esm2022/label/src/label.module.mjs +1 -1
  145. package/esm2022/loading/public-api.mjs +1 -1
  146. package/esm2022/loading/src/loading-spinner.component.mjs +53 -53
  147. package/esm2022/loading/src/loading.component.mjs +11 -11
  148. package/esm2022/loading/src/loading.directive.mjs +1 -1
  149. package/esm2022/loading/src/loading.module.mjs +1 -1
  150. package/esm2022/loading/src/loading.service.mjs +1 -1
  151. package/esm2022/menu/public-api.mjs +1 -1
  152. package/esm2022/menu/src/menu.component.mjs +3 -3
  153. package/esm2022/menu/src/menu.module.mjs +1 -1
  154. package/esm2022/mixin/public-api.mjs +1 -1
  155. package/esm2022/mixin/src/base-components.class.mjs +1 -1
  156. package/esm2022/mixin/src/base-menu-mixin.class.mjs +1 -1
  157. package/esm2022/mixin/src/button-mixin.class.mjs +1 -1
  158. package/esm2022/mixin/src/clickable-mixin.class.mjs +1 -1
  159. package/esm2022/mixin/src/color-look-mixing.class.mjs +1 -1
  160. package/esm2022/mixin/src/constratctor.mjs +1 -1
  161. package/esm2022/mixin/src/datalist-component.class.mjs +1 -1
  162. package/esm2022/mixin/src/datalist.class.mjs +1 -1
  163. package/esm2022/mixin/src/dropdown-mixin.class.mjs +1 -1
  164. package/esm2022/mixin/src/interactive-mixin.class.mjs +1 -1
  165. package/esm2022/mixin/src/loading-mixin.class.mjs +1 -1
  166. package/esm2022/mixin/src/mixin.class.mjs +1 -1
  167. package/esm2022/mixin/src/page-component.class.mjs +1 -1
  168. package/esm2022/mixin/src/selection-component.class.mjs +1 -1
  169. package/esm2022/mixin/src/sizable-mixin.class.mjs +1 -1
  170. package/esm2022/mixin/src/textbox-mixin.class.mjs +1 -1
  171. package/esm2022/mixin/src/value-mixin.class.mjs +1 -1
  172. package/esm2022/notification/public-api.mjs +1 -1
  173. package/esm2022/notification/src/notification.class.mjs +1 -1
  174. package/esm2022/notification/src/notification.component.mjs +3 -3
  175. package/esm2022/notification/src/notification.module.mjs +1 -1
  176. package/esm2022/notification/src/notification.service.mjs +1 -1
  177. package/esm2022/number-box/public-api.mjs +1 -1
  178. package/esm2022/number-box/src/number-box.component.mjs +3 -3
  179. package/esm2022/number-box/src/number-box.module.mjs +1 -1
  180. package/esm2022/page/public-api.mjs +1 -1
  181. package/esm2022/page/src/base-page.class.mjs +1 -1
  182. package/esm2022/page/src/page.component.mjs +1 -1
  183. package/esm2022/page/src/page.module.mjs +1 -1
  184. package/esm2022/password-box/public-api.mjs +1 -1
  185. package/esm2022/password-box/src/password-box.component.mjs +3 -3
  186. package/esm2022/password-box/src/password-box.module.mjs +1 -1
  187. package/esm2022/picker/public-api.mjs +1 -1
  188. package/esm2022/picker/src/picker-column.component.mjs +3 -3
  189. package/esm2022/picker/src/picker.component.mjs +3 -3
  190. package/esm2022/picker/src/picker.module.mjs +1 -1
  191. package/esm2022/popover/public-api.mjs +1 -1
  192. package/esm2022/popover/src/popover.component.mjs +3 -3
  193. package/esm2022/popover/src/popover.module.mjs +1 -1
  194. package/esm2022/popup/public-api.mjs +1 -1
  195. package/esm2022/popup/src/popup.component.mjs +3 -3
  196. package/esm2022/popup/src/popup.module.mjs +1 -1
  197. package/esm2022/popup/src/popup.service.mjs +1 -1
  198. package/esm2022/progress-bar/public-api.mjs +1 -1
  199. package/esm2022/progress-bar/src/progress-bar.component.mjs +3 -3
  200. package/esm2022/progress-bar/src/progress-bar.module.mjs +1 -1
  201. package/esm2022/public-api.mjs +1 -1
  202. package/esm2022/radio/public-api.mjs +1 -1
  203. package/esm2022/radio/src/radio.component.mjs +3 -3
  204. package/esm2022/radio/src/radio.module.mjs +1 -1
  205. package/esm2022/range-slider/public-api.mjs +1 -1
  206. package/esm2022/range-slider/src/range-slider.component.mjs +1 -1
  207. package/esm2022/range-slider/src/range-slider.module.mjs +1 -1
  208. package/esm2022/rating/public-api.mjs +1 -1
  209. package/esm2022/rating/src/rating.component.mjs +3 -3
  210. package/esm2022/rating/src/rating.component.module.mjs +1 -1
  211. package/esm2022/result/public-api.mjs +1 -1
  212. package/esm2022/result/src/result.component.mjs +3 -3
  213. package/esm2022/result/src/result.module.mjs +1 -1
  214. package/esm2022/search-box/public-api.mjs +1 -1
  215. package/esm2022/search-box/src/search-box.component.mjs +3 -3
  216. package/esm2022/search-box/src/search-box.module.mjs +1 -1
  217. package/esm2022/select-box/public-api.mjs +1 -1
  218. package/esm2022/select-box/src/selectbox.component.mjs +3 -3
  219. package/esm2022/select-box/src/selectbox.module.mjs +1 -1
  220. package/esm2022/selection-list/public-api.mjs +1 -1
  221. package/esm2022/selection-list/src/selection-list.component.mjs +3 -3
  222. package/esm2022/selection-list/src/selection-list.module.mjs +1 -1
  223. package/esm2022/switch/public-api.mjs +1 -1
  224. package/esm2022/switch/src/switch-content.component.mjs +1 -1
  225. package/esm2022/switch/src/switch.component.mjs +3 -3
  226. package/esm2022/switch/src/switch.module.mjs +1 -1
  227. package/esm2022/tabs/public-api.mjs +1 -1
  228. package/esm2022/tabs/src/tab-content.directive.mjs +1 -1
  229. package/esm2022/tabs/src/tab-item.component.mjs +51 -51
  230. package/esm2022/tabs/src/tabs.class.mjs +1 -1
  231. package/esm2022/tabs/src/tabs.component.mjs +9 -9
  232. package/esm2022/tabs/src/tabs.module.mjs +1 -1
  233. package/esm2022/tag/public-api.mjs +1 -1
  234. package/esm2022/tag/src/tag.component.mjs +3 -3
  235. package/esm2022/tag/src/tag.module.mjs +1 -1
  236. package/esm2022/textarea/public-api.mjs +1 -1
  237. package/esm2022/textarea/src/textarea.component.mjs +3 -3
  238. package/esm2022/textarea/src/textarea.module.mjs +1 -1
  239. package/esm2022/textbox/public-api.mjs +1 -1
  240. package/esm2022/textbox/src/mask-options.directive.mjs +1 -1
  241. package/esm2022/textbox/src/textbox.component.mjs +3 -3
  242. package/esm2022/textbox/src/textbox.module.mjs +1 -1
  243. package/esm2022/time-box/public-api.mjs +1 -1
  244. package/esm2022/time-box/src/time-box.component.mjs +3 -3
  245. package/esm2022/time-box/src/time-box.module.mjs +1 -1
  246. package/esm2022/toast/public-api.mjs +1 -1
  247. package/esm2022/toast/src/toast.class.mjs +1 -1
  248. package/esm2022/toast/src/toast.component.mjs +3 -3
  249. package/esm2022/toast/src/toast.module.mjs +1 -1
  250. package/esm2022/toast/src/toast.service.mjs +1 -1
  251. package/esm2022/tooltip/public-api.mjs +1 -1
  252. package/esm2022/tooltip/src/tooltip.component.mjs +3 -3
  253. package/esm2022/tooltip/src/tooltip.directive.mjs +1 -1
  254. package/esm2022/tooltip/src/tooltip.module.mjs +1 -1
  255. package/esm2022/tree-view/public-api.mjs +1 -1
  256. package/esm2022/tree-view/src/tree-view.component.mjs +3 -3
  257. package/esm2022/tree-view/src/tree-view.module.mjs +1 -1
  258. package/esm2022/uploader/public-api.mjs +1 -1
  259. package/esm2022/uploader/src/uploader.component.mjs +3 -3
  260. package/esm2022/uploader/src/uploader.module.mjs +1 -1
  261. package/fesm2022/acorex-components-action-sheet.mjs +2 -2
  262. package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
  263. package/fesm2022/acorex-components-alert.mjs +2 -2
  264. package/fesm2022/acorex-components-alert.mjs.map +1 -1
  265. package/fesm2022/acorex-components-avatar.mjs +2 -2
  266. package/fesm2022/acorex-components-avatar.mjs.map +1 -1
  267. package/fesm2022/acorex-components-badge.mjs +2 -2
  268. package/fesm2022/acorex-components-badge.mjs.map +1 -1
  269. package/fesm2022/acorex-components-breadcrumbs.mjs +4 -4
  270. package/fesm2022/acorex-components-breadcrumbs.mjs.map +1 -1
  271. package/fesm2022/acorex-components-button.mjs +12 -12
  272. package/fesm2022/acorex-components-button.mjs.map +1 -1
  273. package/fesm2022/acorex-components-calendar.mjs +4 -4
  274. package/fesm2022/acorex-components-calendar.mjs.map +1 -1
  275. package/fesm2022/acorex-components-card.mjs +2 -2
  276. package/fesm2022/acorex-components-card.mjs.map +1 -1
  277. package/fesm2022/acorex-components-checkbox.mjs +2 -2
  278. package/fesm2022/acorex-components-checkbox.mjs.map +1 -1
  279. package/fesm2022/acorex-components-chips.mjs +2 -2
  280. package/fesm2022/acorex-components-chips.mjs.map +1 -1
  281. package/fesm2022/acorex-components-collapse.mjs +2 -2
  282. package/fesm2022/acorex-components-collapse.mjs.map +1 -1
  283. package/fesm2022/acorex-components-color-palette.mjs +22 -22
  284. package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
  285. package/fesm2022/acorex-components-color-picker.mjs +2 -2
  286. package/fesm2022/acorex-components-color-picker.mjs.map +1 -1
  287. package/fesm2022/acorex-components-common.mjs.map +1 -1
  288. package/fesm2022/acorex-components-context-menu.mjs +2 -2
  289. package/fesm2022/acorex-components-context-menu.mjs.map +1 -1
  290. package/fesm2022/acorex-components-data-pager.mjs +88 -88
  291. package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
  292. package/fesm2022/acorex-components-data-table.mjs +2 -2
  293. package/fesm2022/acorex-components-data-table.mjs.map +1 -1
  294. package/fesm2022/acorex-components-date-picker.mjs +2 -2
  295. package/fesm2022/acorex-components-date-picker.mjs.map +1 -1
  296. package/fesm2022/acorex-components-decorators.mjs +26 -26
  297. package/fesm2022/acorex-components-decorators.mjs.map +1 -1
  298. package/fesm2022/acorex-components-dialog.mjs +2 -2
  299. package/fesm2022/acorex-components-dialog.mjs.map +1 -1
  300. package/fesm2022/acorex-components-drawer.mjs +14 -14
  301. package/fesm2022/acorex-components-drawer.mjs.map +1 -1
  302. package/fesm2022/acorex-components-dropdown.mjs +2 -2
  303. package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
  304. package/fesm2022/acorex-components-form.mjs +28 -28
  305. package/fesm2022/acorex-components-form.mjs.map +1 -1
  306. package/fesm2022/acorex-components-image.mjs +2 -2
  307. package/fesm2022/acorex-components-image.mjs.map +1 -1
  308. package/fesm2022/acorex-components-label.mjs +2 -2
  309. package/fesm2022/acorex-components-label.mjs.map +1 -1
  310. package/fesm2022/acorex-components-loading.mjs +62 -62
  311. package/fesm2022/acorex-components-loading.mjs.map +1 -1
  312. package/fesm2022/acorex-components-menu.mjs +2 -2
  313. package/fesm2022/acorex-components-menu.mjs.map +1 -1
  314. package/fesm2022/acorex-components-mixin.mjs.map +1 -1
  315. package/fesm2022/acorex-components-notification.mjs +2 -2
  316. package/fesm2022/acorex-components-notification.mjs.map +1 -1
  317. package/fesm2022/acorex-components-number-box.mjs +2 -2
  318. package/fesm2022/acorex-components-number-box.mjs.map +1 -1
  319. package/fesm2022/acorex-components-page.mjs.map +1 -1
  320. package/fesm2022/acorex-components-password-box.mjs +2 -2
  321. package/fesm2022/acorex-components-password-box.mjs.map +1 -1
  322. package/fesm2022/acorex-components-picker.mjs +4 -4
  323. package/fesm2022/acorex-components-picker.mjs.map +1 -1
  324. package/fesm2022/acorex-components-popover.mjs +2 -2
  325. package/fesm2022/acorex-components-popover.mjs.map +1 -1
  326. package/fesm2022/acorex-components-popup.mjs +2 -2
  327. package/fesm2022/acorex-components-popup.mjs.map +1 -1
  328. package/fesm2022/acorex-components-progress-bar.mjs +2 -2
  329. package/fesm2022/acorex-components-progress-bar.mjs.map +1 -1
  330. package/fesm2022/acorex-components-radio.mjs +2 -2
  331. package/fesm2022/acorex-components-radio.mjs.map +1 -1
  332. package/fesm2022/acorex-components-range-slider.mjs.map +1 -1
  333. package/fesm2022/acorex-components-rating.mjs +2 -2
  334. package/fesm2022/acorex-components-rating.mjs.map +1 -1
  335. package/fesm2022/acorex-components-result.mjs +2 -2
  336. package/fesm2022/acorex-components-result.mjs.map +1 -1
  337. package/fesm2022/acorex-components-search-box.mjs +2 -2
  338. package/fesm2022/acorex-components-search-box.mjs.map +1 -1
  339. package/fesm2022/acorex-components-select-box.mjs +2 -2
  340. package/fesm2022/acorex-components-select-box.mjs.map +1 -1
  341. package/fesm2022/acorex-components-selection-list.mjs +2 -2
  342. package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
  343. package/fesm2022/acorex-components-switch.mjs +2 -2
  344. package/fesm2022/acorex-components-switch.mjs.map +1 -1
  345. package/fesm2022/acorex-components-tabs.mjs +58 -58
  346. package/fesm2022/acorex-components-tabs.mjs.map +1 -1
  347. package/fesm2022/acorex-components-tag.mjs +2 -2
  348. package/fesm2022/acorex-components-tag.mjs.map +1 -1
  349. package/fesm2022/acorex-components-textarea.mjs +2 -2
  350. package/fesm2022/acorex-components-textarea.mjs.map +1 -1
  351. package/fesm2022/acorex-components-textbox.mjs +2 -2
  352. package/fesm2022/acorex-components-textbox.mjs.map +1 -1
  353. package/fesm2022/acorex-components-time-box.mjs +2 -2
  354. package/fesm2022/acorex-components-time-box.mjs.map +1 -1
  355. package/fesm2022/acorex-components-toast.mjs +2 -2
  356. package/fesm2022/acorex-components-toast.mjs.map +1 -1
  357. package/fesm2022/acorex-components-tooltip.mjs +2 -2
  358. package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
  359. package/fesm2022/acorex-components-tree-view.mjs +2 -2
  360. package/fesm2022/acorex-components-tree-view.mjs.map +1 -1
  361. package/fesm2022/acorex-components-uploader.mjs +2 -2
  362. package/fesm2022/acorex-components-uploader.mjs.map +1 -1
  363. package/fesm2022/acorex-components.mjs.map +1 -1
  364. package/mixin/src/interactive-mixin.class.d.ts +2 -2
  365. package/mixin/src/textbox-mixin.class.d.ts +3 -5
  366. package/package.json +24 -24
  367. package/scss/index.scss +1 -1
@@ -57,11 +57,11 @@ class AXDialogComponent extends AXBaseComponentMixin {
57
57
  return result;
58
58
  }
59
59
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXDialogComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
60
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: AXDialogComponent, selector: "ax-dialog", usesInheritance: true, ngImport: i0, template: "<div aria-modal=\"true\" [cdkTrapFocus]=\"true\">\r\n <div class=\"ax-dialog ax-{{options.type}}-default ax-orientation-{{options.orientation}}\" cdkDrag role=\"alert\" cdkDragHandle>\r\n <div class=\"ax-dialog-content-wrapper\">\r\n <div class=\"ax-dialog-icon-side\">\r\n <i class=\"ax-dialog-icon {{_icon}}\"></i>\r\n </div>\r\n <div class=\"ax-dialog-content-side\">\r\n <div class=\"ax-dialog-title\">{{options.title}}</div>\r\n <div class=\"ax-dialog-content\">{{options.content}}</div>\r\n </div>\r\n <div class=\"ax-dialog-dismiss-icon\">\r\n <i class=\"ax-icon ax-icon-close\" *ngIf=\"options.dismissible\" (click)=\"close()\"></i>\r\n </div>\r\n </div>\r\n <ax-footer>\r\n <ng-container *ngFor=\"let button of options.buttons;let i=index\">\r\n <ax-button [text]=\"button.text\" [axAutoFocus]=\"_hasAutoFocus(button)\" [hotkey]=\"button.hotkey\"\r\n (onClick)=\"_handleButtonClick(button)\" [class]=\"button.cssClass\" [look]=\"button.look\"\r\n [color]=\"button.color\"></ax-button>\r\n </ng-container>\r\n </ax-footer>\r\n </div>\r\n</div>", styles: [".ax-dark .ax-dialog.ax-primary-default .ax-dialog-icon{background-color:rgba(var(--ax-color-primary-500));color:rgba(var(--ax-color-primary-fore))}.ax-dark .ax-dialog.ax-secondary-default .ax-dialog-icon{background-color:rgba(var(--ax-color-secondary-500));color:rgba(var(--ax-color-secondary-fore))}.ax-dark .ax-dialog.ax-success-default .ax-dialog-icon{background-color:rgba(var(--ax-color-success-500));color:rgba(var(--ax-color-success-fore))}.ax-dark .ax-dialog.ax-warning-default .ax-dialog-icon{background-color:rgba(var(--ax-color-warning-500));color:rgba(var(--ax-color-warning-fore))}.ax-dark .ax-dialog.ax-danger-default .ax-dialog-icon{background-color:rgba(var(--ax-color-danger-500));color:rgba(var(--ax-color-danger-fore))}.ax-dark .ax-dialog.ax-info-default .ax-dialog-icon{background-color:rgba(var(--ax-color-info-500));color:rgba(var(--ax-color-info-fore))}.ax-dialog{display:flex;flex-direction:column;position:relative;background-color:rgba(var(--ax-color-surface));color:rgba(var(--ax-color-surface-fore));width:25vw;border:1px solid;border-color:rgba(var(--ax-color-border-default));border-radius:var(--ax-rounded-border-default);overflow:hidden;outline-color:transparent}@media (max-width: 599px){.ax-dialog{width:93vw}}@media (min-width: 600px){.ax-dialog{min-width:50vw;max-width:85vw}}@media (min-width: 1200px){.ax-dialog{min-width:35vw;max-width:60vw}}@media (min-width: 1800px){.ax-dialog{min-width:25vw;max-width:40vw}}.ax-dialog.ax-orientation-horizontal .ax-dialog-content-wrapper{flex-direction:row}.ax-dialog.ax-orientation-vertical .ax-dialog-content-wrapper{flex-direction:column;align-items:center}.ax-dialog.ax-orientation-vertical .ax-dialog-content-wrapper .ax-dialog-icon-side{margin-bottom:1rem}.ax-dialog.ax-orientation-vertical .ax-dialog-content-wrapper .ax-dialog-content-side{text-align:center;margin:0}.ax-dialog.ax-orientation-vertical ax-footer ax-button{flex:1}.ax-dialog .ax-dialog-content-wrapper{display:flex;gap:.5rem;padding:1.5rem 1.5rem 1rem}@media (max-width: 599px){.ax-dialog .ax-dialog-content-wrapper{padding:1.25rem 1rem 1rem}}.ax-dialog .ax-dialog-content-wrapper .ax-dialog-icon-side .ax-dialog-icon{width:3rem;height:3rem;display:flex;justify-content:center;align-items:center;border-radius:99rem;cursor:move;font-size:1.5rem}.ax-dialog .ax-dialog-content-wrapper .ax-dialog-content-side{margin-inline-start:1rem}.ax-dialog .ax-dialog-content-wrapper .ax-dialog-content-side .ax-dialog-title{font-size:1.125rem;font-weight:500;line-height:1.5rem;margin-bottom:.5rem}.ax-dialog .ax-dialog-content-wrapper .ax-dialog-content-side .ax-dialog-content{font-size:.875rem}.ax-dialog ax-footer{background-color:rgba(var(--ax-color-on-surface));padding:.75rem 1.5rem;justify-content:flex-end}@media (max-width: 599px){.ax-dialog ax-footer{padding:.75rem 1rem}}.ax-dialog.ax-primary-default .ax-dialog-icon{background-color:rgba(var(--ax-color-primary-100));color:rgba(var(--ax-color-primary-600))}.ax-dialog.ax-secondary-default .ax-dialog-icon{background-color:rgba(var(--ax-color-secondary-100));color:rgba(var(--ax-color-secondary-600))}.ax-dialog.ax-success-default .ax-dialog-icon{background-color:rgba(var(--ax-color-success-100));color:rgba(var(--ax-color-success-600))}.ax-dialog.ax-warning-default .ax-dialog-icon{background-color:rgba(var(--ax-color-warning-100));color:rgba(var(--ax-color-warning-600))}.ax-dialog.ax-danger-default .ax-dialog-icon{background-color:rgba(var(--ax-color-danger-100));color:rgba(var(--ax-color-danger-600))}.ax-dialog.ax-info-default .ax-dialog-icon{background-color:rgba(var(--ax-color-info-100));color:rgba(var(--ax-color-info-600))}\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.AXAutoFocusDirective, selector: "[axAutoFocus]", inputs: ["axAutoFocus", "focus-time"] }, { kind: "directive", type: i2.AXHotkeyDirective, selector: "[hotkey]", inputs: ["hotkey"] }, { kind: "directive", type: i3.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i3.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "directive", type: i4.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "component", type: i5.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange"] }, { kind: "component", type: i6.AXDecoratorFooterComponent, selector: "ax-footer" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
60
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: AXDialogComponent, selector: "ax-dialog", usesInheritance: true, ngImport: i0, template: "<div aria-modal=\"true\" [cdkTrapFocus]=\"true\">\n <div class=\"ax-dialog ax-{{options.type}}-default ax-orientation-{{options.orientation}}\" cdkDrag role=\"alert\" cdkDragHandle>\n <div class=\"ax-dialog-content-wrapper\">\n <div class=\"ax-dialog-icon-side\">\n <i class=\"ax-dialog-icon {{_icon}}\"></i>\n </div>\n <div class=\"ax-dialog-content-side\">\n <div class=\"ax-dialog-title\">{{options.title}}</div>\n <div class=\"ax-dialog-content\">{{options.content}}</div>\n </div>\n <div class=\"ax-dialog-dismiss-icon\">\n <i class=\"ax-icon ax-icon-close\" *ngIf=\"options.dismissible\" (click)=\"close()\"></i>\n </div>\n </div>\n <ax-footer>\n <ng-container *ngFor=\"let button of options.buttons;let i=index\">\n <ax-button [text]=\"button.text\" [axAutoFocus]=\"_hasAutoFocus(button)\" [hotkey]=\"button.hotkey\"\n (onClick)=\"_handleButtonClick(button)\" [class]=\"button.cssClass\" [look]=\"button.look\"\n [color]=\"button.color\"></ax-button>\n </ng-container>\n </ax-footer>\n </div>\n</div>", styles: [".ax-dark .ax-dialog.ax-primary-default .ax-dialog-icon{background-color:rgba(var(--ax-color-primary-500));color:rgba(var(--ax-color-primary-fore))}.ax-dark .ax-dialog.ax-secondary-default .ax-dialog-icon{background-color:rgba(var(--ax-color-secondary-500));color:rgba(var(--ax-color-secondary-fore))}.ax-dark .ax-dialog.ax-success-default .ax-dialog-icon{background-color:rgba(var(--ax-color-success-500));color:rgba(var(--ax-color-success-fore))}.ax-dark .ax-dialog.ax-warning-default .ax-dialog-icon{background-color:rgba(var(--ax-color-warning-500));color:rgba(var(--ax-color-warning-fore))}.ax-dark .ax-dialog.ax-danger-default .ax-dialog-icon{background-color:rgba(var(--ax-color-danger-500));color:rgba(var(--ax-color-danger-fore))}.ax-dark .ax-dialog.ax-info-default .ax-dialog-icon{background-color:rgba(var(--ax-color-info-500));color:rgba(var(--ax-color-info-fore))}.ax-dialog{display:flex;flex-direction:column;position:relative;background-color:rgba(var(--ax-color-surface));color:rgba(var(--ax-color-surface-fore));width:25vw;border:1px solid;border-color:rgba(var(--ax-color-border-default));border-radius:var(--ax-rounded-border-default);overflow:hidden;outline-color:transparent}@media (max-width: 599px){.ax-dialog{width:93vw}}@media (min-width: 600px){.ax-dialog{min-width:50vw;max-width:85vw}}@media (min-width: 1200px){.ax-dialog{min-width:35vw;max-width:60vw}}@media (min-width: 1800px){.ax-dialog{min-width:25vw;max-width:40vw}}.ax-dialog.ax-orientation-horizontal .ax-dialog-content-wrapper{flex-direction:row}.ax-dialog.ax-orientation-vertical .ax-dialog-content-wrapper{flex-direction:column;align-items:center}.ax-dialog.ax-orientation-vertical .ax-dialog-content-wrapper .ax-dialog-icon-side{margin-bottom:1rem}.ax-dialog.ax-orientation-vertical .ax-dialog-content-wrapper .ax-dialog-content-side{text-align:center;margin:0}.ax-dialog.ax-orientation-vertical ax-footer ax-button{flex:1}.ax-dialog .ax-dialog-content-wrapper{display:flex;gap:.5rem;padding:1.5rem 1.5rem 1rem}@media (max-width: 599px){.ax-dialog .ax-dialog-content-wrapper{padding:1.25rem 1rem 1rem}}.ax-dialog .ax-dialog-content-wrapper .ax-dialog-icon-side .ax-dialog-icon{width:3rem;height:3rem;display:flex;justify-content:center;align-items:center;border-radius:99rem;cursor:move;font-size:1.5rem}.ax-dialog .ax-dialog-content-wrapper .ax-dialog-content-side{margin-inline-start:1rem}.ax-dialog .ax-dialog-content-wrapper .ax-dialog-content-side .ax-dialog-title{font-size:1.125rem;font-weight:500;line-height:1.5rem;margin-bottom:.5rem}.ax-dialog .ax-dialog-content-wrapper .ax-dialog-content-side .ax-dialog-content{font-size:.875rem}.ax-dialog ax-footer{background-color:rgba(var(--ax-color-on-surface));padding:.75rem 1.5rem;justify-content:flex-end}@media (max-width: 599px){.ax-dialog ax-footer{padding:.75rem 1rem}}.ax-dialog.ax-primary-default .ax-dialog-icon{background-color:rgba(var(--ax-color-primary-100));color:rgba(var(--ax-color-primary-600))}.ax-dialog.ax-secondary-default .ax-dialog-icon{background-color:rgba(var(--ax-color-secondary-100));color:rgba(var(--ax-color-secondary-600))}.ax-dialog.ax-success-default .ax-dialog-icon{background-color:rgba(var(--ax-color-success-100));color:rgba(var(--ax-color-success-600))}.ax-dialog.ax-warning-default .ax-dialog-icon{background-color:rgba(var(--ax-color-warning-100));color:rgba(var(--ax-color-warning-600))}.ax-dialog.ax-danger-default .ax-dialog-icon{background-color:rgba(var(--ax-color-danger-100));color:rgba(var(--ax-color-danger-600))}.ax-dialog.ax-info-default .ax-dialog-icon{background-color:rgba(var(--ax-color-info-100));color:rgba(var(--ax-color-info-600))}\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.AXAutoFocusDirective, selector: "[axAutoFocus]", inputs: ["axAutoFocus", "focus-time"] }, { kind: "directive", type: i2.AXHotkeyDirective, selector: "[hotkey]", inputs: ["hotkey"] }, { kind: "directive", type: i3.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i3.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "directive", type: i4.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "component", type: i5.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange"] }, { kind: "component", type: i6.AXDecoratorFooterComponent, selector: "ax-footer" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
61
61
  }
62
62
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXDialogComponent, decorators: [{
63
63
  type: Component,
64
- args: [{ selector: 'ax-dialog', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div aria-modal=\"true\" [cdkTrapFocus]=\"true\">\r\n <div class=\"ax-dialog ax-{{options.type}}-default ax-orientation-{{options.orientation}}\" cdkDrag role=\"alert\" cdkDragHandle>\r\n <div class=\"ax-dialog-content-wrapper\">\r\n <div class=\"ax-dialog-icon-side\">\r\n <i class=\"ax-dialog-icon {{_icon}}\"></i>\r\n </div>\r\n <div class=\"ax-dialog-content-side\">\r\n <div class=\"ax-dialog-title\">{{options.title}}</div>\r\n <div class=\"ax-dialog-content\">{{options.content}}</div>\r\n </div>\r\n <div class=\"ax-dialog-dismiss-icon\">\r\n <i class=\"ax-icon ax-icon-close\" *ngIf=\"options.dismissible\" (click)=\"close()\"></i>\r\n </div>\r\n </div>\r\n <ax-footer>\r\n <ng-container *ngFor=\"let button of options.buttons;let i=index\">\r\n <ax-button [text]=\"button.text\" [axAutoFocus]=\"_hasAutoFocus(button)\" [hotkey]=\"button.hotkey\"\r\n (onClick)=\"_handleButtonClick(button)\" [class]=\"button.cssClass\" [look]=\"button.look\"\r\n [color]=\"button.color\"></ax-button>\r\n </ng-container>\r\n </ax-footer>\r\n </div>\r\n</div>", styles: [".ax-dark .ax-dialog.ax-primary-default .ax-dialog-icon{background-color:rgba(var(--ax-color-primary-500));color:rgba(var(--ax-color-primary-fore))}.ax-dark .ax-dialog.ax-secondary-default .ax-dialog-icon{background-color:rgba(var(--ax-color-secondary-500));color:rgba(var(--ax-color-secondary-fore))}.ax-dark .ax-dialog.ax-success-default .ax-dialog-icon{background-color:rgba(var(--ax-color-success-500));color:rgba(var(--ax-color-success-fore))}.ax-dark .ax-dialog.ax-warning-default .ax-dialog-icon{background-color:rgba(var(--ax-color-warning-500));color:rgba(var(--ax-color-warning-fore))}.ax-dark .ax-dialog.ax-danger-default .ax-dialog-icon{background-color:rgba(var(--ax-color-danger-500));color:rgba(var(--ax-color-danger-fore))}.ax-dark .ax-dialog.ax-info-default .ax-dialog-icon{background-color:rgba(var(--ax-color-info-500));color:rgba(var(--ax-color-info-fore))}.ax-dialog{display:flex;flex-direction:column;position:relative;background-color:rgba(var(--ax-color-surface));color:rgba(var(--ax-color-surface-fore));width:25vw;border:1px solid;border-color:rgba(var(--ax-color-border-default));border-radius:var(--ax-rounded-border-default);overflow:hidden;outline-color:transparent}@media (max-width: 599px){.ax-dialog{width:93vw}}@media (min-width: 600px){.ax-dialog{min-width:50vw;max-width:85vw}}@media (min-width: 1200px){.ax-dialog{min-width:35vw;max-width:60vw}}@media (min-width: 1800px){.ax-dialog{min-width:25vw;max-width:40vw}}.ax-dialog.ax-orientation-horizontal .ax-dialog-content-wrapper{flex-direction:row}.ax-dialog.ax-orientation-vertical .ax-dialog-content-wrapper{flex-direction:column;align-items:center}.ax-dialog.ax-orientation-vertical .ax-dialog-content-wrapper .ax-dialog-icon-side{margin-bottom:1rem}.ax-dialog.ax-orientation-vertical .ax-dialog-content-wrapper .ax-dialog-content-side{text-align:center;margin:0}.ax-dialog.ax-orientation-vertical ax-footer ax-button{flex:1}.ax-dialog .ax-dialog-content-wrapper{display:flex;gap:.5rem;padding:1.5rem 1.5rem 1rem}@media (max-width: 599px){.ax-dialog .ax-dialog-content-wrapper{padding:1.25rem 1rem 1rem}}.ax-dialog .ax-dialog-content-wrapper .ax-dialog-icon-side .ax-dialog-icon{width:3rem;height:3rem;display:flex;justify-content:center;align-items:center;border-radius:99rem;cursor:move;font-size:1.5rem}.ax-dialog .ax-dialog-content-wrapper .ax-dialog-content-side{margin-inline-start:1rem}.ax-dialog .ax-dialog-content-wrapper .ax-dialog-content-side .ax-dialog-title{font-size:1.125rem;font-weight:500;line-height:1.5rem;margin-bottom:.5rem}.ax-dialog .ax-dialog-content-wrapper .ax-dialog-content-side .ax-dialog-content{font-size:.875rem}.ax-dialog ax-footer{background-color:rgba(var(--ax-color-on-surface));padding:.75rem 1.5rem;justify-content:flex-end}@media (max-width: 599px){.ax-dialog ax-footer{padding:.75rem 1rem}}.ax-dialog.ax-primary-default .ax-dialog-icon{background-color:rgba(var(--ax-color-primary-100));color:rgba(var(--ax-color-primary-600))}.ax-dialog.ax-secondary-default .ax-dialog-icon{background-color:rgba(var(--ax-color-secondary-100));color:rgba(var(--ax-color-secondary-600))}.ax-dialog.ax-success-default .ax-dialog-icon{background-color:rgba(var(--ax-color-success-100));color:rgba(var(--ax-color-success-600))}.ax-dialog.ax-warning-default .ax-dialog-icon{background-color:rgba(var(--ax-color-warning-100));color:rgba(var(--ax-color-warning-600))}.ax-dialog.ax-danger-default .ax-dialog-icon{background-color:rgba(var(--ax-color-danger-100));color:rgba(var(--ax-color-danger-600))}.ax-dialog.ax-info-default .ax-dialog-icon{background-color:rgba(var(--ax-color-info-100));color:rgba(var(--ax-color-info-600))}\n"] }]
64
+ args: [{ selector: 'ax-dialog', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div aria-modal=\"true\" [cdkTrapFocus]=\"true\">\n <div class=\"ax-dialog ax-{{options.type}}-default ax-orientation-{{options.orientation}}\" cdkDrag role=\"alert\" cdkDragHandle>\n <div class=\"ax-dialog-content-wrapper\">\n <div class=\"ax-dialog-icon-side\">\n <i class=\"ax-dialog-icon {{_icon}}\"></i>\n </div>\n <div class=\"ax-dialog-content-side\">\n <div class=\"ax-dialog-title\">{{options.title}}</div>\n <div class=\"ax-dialog-content\">{{options.content}}</div>\n </div>\n <div class=\"ax-dialog-dismiss-icon\">\n <i class=\"ax-icon ax-icon-close\" *ngIf=\"options.dismissible\" (click)=\"close()\"></i>\n </div>\n </div>\n <ax-footer>\n <ng-container *ngFor=\"let button of options.buttons;let i=index\">\n <ax-button [text]=\"button.text\" [axAutoFocus]=\"_hasAutoFocus(button)\" [hotkey]=\"button.hotkey\"\n (onClick)=\"_handleButtonClick(button)\" [class]=\"button.cssClass\" [look]=\"button.look\"\n [color]=\"button.color\"></ax-button>\n </ng-container>\n </ax-footer>\n </div>\n</div>", styles: [".ax-dark .ax-dialog.ax-primary-default .ax-dialog-icon{background-color:rgba(var(--ax-color-primary-500));color:rgba(var(--ax-color-primary-fore))}.ax-dark .ax-dialog.ax-secondary-default .ax-dialog-icon{background-color:rgba(var(--ax-color-secondary-500));color:rgba(var(--ax-color-secondary-fore))}.ax-dark .ax-dialog.ax-success-default .ax-dialog-icon{background-color:rgba(var(--ax-color-success-500));color:rgba(var(--ax-color-success-fore))}.ax-dark .ax-dialog.ax-warning-default .ax-dialog-icon{background-color:rgba(var(--ax-color-warning-500));color:rgba(var(--ax-color-warning-fore))}.ax-dark .ax-dialog.ax-danger-default .ax-dialog-icon{background-color:rgba(var(--ax-color-danger-500));color:rgba(var(--ax-color-danger-fore))}.ax-dark .ax-dialog.ax-info-default .ax-dialog-icon{background-color:rgba(var(--ax-color-info-500));color:rgba(var(--ax-color-info-fore))}.ax-dialog{display:flex;flex-direction:column;position:relative;background-color:rgba(var(--ax-color-surface));color:rgba(var(--ax-color-surface-fore));width:25vw;border:1px solid;border-color:rgba(var(--ax-color-border-default));border-radius:var(--ax-rounded-border-default);overflow:hidden;outline-color:transparent}@media (max-width: 599px){.ax-dialog{width:93vw}}@media (min-width: 600px){.ax-dialog{min-width:50vw;max-width:85vw}}@media (min-width: 1200px){.ax-dialog{min-width:35vw;max-width:60vw}}@media (min-width: 1800px){.ax-dialog{min-width:25vw;max-width:40vw}}.ax-dialog.ax-orientation-horizontal .ax-dialog-content-wrapper{flex-direction:row}.ax-dialog.ax-orientation-vertical .ax-dialog-content-wrapper{flex-direction:column;align-items:center}.ax-dialog.ax-orientation-vertical .ax-dialog-content-wrapper .ax-dialog-icon-side{margin-bottom:1rem}.ax-dialog.ax-orientation-vertical .ax-dialog-content-wrapper .ax-dialog-content-side{text-align:center;margin:0}.ax-dialog.ax-orientation-vertical ax-footer ax-button{flex:1}.ax-dialog .ax-dialog-content-wrapper{display:flex;gap:.5rem;padding:1.5rem 1.5rem 1rem}@media (max-width: 599px){.ax-dialog .ax-dialog-content-wrapper{padding:1.25rem 1rem 1rem}}.ax-dialog .ax-dialog-content-wrapper .ax-dialog-icon-side .ax-dialog-icon{width:3rem;height:3rem;display:flex;justify-content:center;align-items:center;border-radius:99rem;cursor:move;font-size:1.5rem}.ax-dialog .ax-dialog-content-wrapper .ax-dialog-content-side{margin-inline-start:1rem}.ax-dialog .ax-dialog-content-wrapper .ax-dialog-content-side .ax-dialog-title{font-size:1.125rem;font-weight:500;line-height:1.5rem;margin-bottom:.5rem}.ax-dialog .ax-dialog-content-wrapper .ax-dialog-content-side .ax-dialog-content{font-size:.875rem}.ax-dialog ax-footer{background-color:rgba(var(--ax-color-on-surface));padding:.75rem 1.5rem;justify-content:flex-end}@media (max-width: 599px){.ax-dialog ax-footer{padding:.75rem 1rem}}.ax-dialog.ax-primary-default .ax-dialog-icon{background-color:rgba(var(--ax-color-primary-100));color:rgba(var(--ax-color-primary-600))}.ax-dialog.ax-secondary-default .ax-dialog-icon{background-color:rgba(var(--ax-color-secondary-100));color:rgba(var(--ax-color-secondary-600))}.ax-dialog.ax-success-default .ax-dialog-icon{background-color:rgba(var(--ax-color-success-100));color:rgba(var(--ax-color-success-600))}.ax-dialog.ax-warning-default .ax-dialog-icon{background-color:rgba(var(--ax-color-warning-100));color:rgba(var(--ax-color-warning-600))}.ax-dialog.ax-danger-default .ax-dialog-icon{background-color:rgba(var(--ax-color-danger-100));color:rgba(var(--ax-color-danger-600))}.ax-dialog.ax-info-default .ax-dialog-icon{background-color:rgba(var(--ax-color-info-100));color:rgba(var(--ax-color-info-600))}\n"] }]
65
65
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
66
66
 
67
67
  const COMPONENT = [AXDialogComponent];
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-components-dialog.mjs","sources":["../../../../projects/acorex/components/dialog/src/dialog.component.ts","../../../../projects/acorex/components/dialog/src/dialog.component.html","../../../../projects/acorex/components/dialog/src/dialog.module.ts","../../../../projects/acorex/components/dialog/src/dialog.service.ts","../../../../projects/acorex/components/dialog/acorex-components-dialog.ts"],"sourcesContent":["import {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n} from '@angular/core';\r\nimport { AXButtonItem } from '@acorex/components/button';\r\nimport { AXDialogOptions } from './dialog.class';\r\nimport { AXBaseComponentMixin } from '@acorex/components/mixin';\r\n\r\n@Component({\r\n selector: 'ax-dialog',\r\n templateUrl: './dialog.component.html',\r\n styleUrls: ['./dialog.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\nexport class AXDialogComponent extends AXBaseComponentMixin {\r\n constructor(elementRef: ElementRef, cdr: ChangeDetectorRef) {\r\n super(elementRef, cdr);\r\n }\r\n\r\n options: AXDialogOptions | any;\r\n _icon: string;\r\n close: () => void;\r\n\r\n onInit() {\r\n switch (this.options.type) {\r\n case 'success':\r\n this._icon = 'ax-icon ax-icon-done';\r\n break;\r\n case 'danger':\r\n this._icon = 'ax-icon ax-icon-error';\r\n break;\r\n case 'warning':\r\n this._icon = 'ax-icon ax-icon-warning';\r\n break;\r\n default:\r\n this._icon = 'ax-icon ax-icon-done';\r\n break;\r\n }\r\n }\r\n\r\n _handleButtonClick(button: AXButtonItem) {\r\n if (button.onClick) {\r\n button.onClick();\r\n }\r\n }\r\n\r\n _hasAutoFocus(button: AXButtonItem) {\r\n const result =\r\n button.autofocus ||\r\n this.options.buttons.length == 1 ||\r\n ((button.type == 'submit' || button.type == 'cancel') &&\r\n !this.options.buttons.some((c) => c.autofocus));\r\n if (result) {\r\n button.autofocus = true;\r\n }\r\n return result;\r\n }\r\n}\r\n","<div aria-modal=\"true\" [cdkTrapFocus]=\"true\">\r\n <div class=\"ax-dialog ax-{{options.type}}-default ax-orientation-{{options.orientation}}\" cdkDrag role=\"alert\" cdkDragHandle>\r\n <div class=\"ax-dialog-content-wrapper\">\r\n <div class=\"ax-dialog-icon-side\">\r\n <i class=\"ax-dialog-icon {{_icon}}\"></i>\r\n </div>\r\n <div class=\"ax-dialog-content-side\">\r\n <div class=\"ax-dialog-title\">{{options.title}}</div>\r\n <div class=\"ax-dialog-content\">{{options.content}}</div>\r\n </div>\r\n <div class=\"ax-dialog-dismiss-icon\">\r\n <i class=\"ax-icon ax-icon-close\" *ngIf=\"options.dismissible\" (click)=\"close()\"></i>\r\n </div>\r\n </div>\r\n <ax-footer>\r\n <ng-container *ngFor=\"let button of options.buttons;let i=index\">\r\n <ax-button [text]=\"button.text\" [axAutoFocus]=\"_hasAutoFocus(button)\" [hotkey]=\"button.hotkey\"\r\n (onClick)=\"_handleButtonClick(button)\" [class]=\"button.cssClass\" [look]=\"button.look\"\r\n [color]=\"button.color\"></ax-button>\r\n </ng-container>\r\n </ax-footer>\r\n </div>\r\n</div>","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 { AXButtonModule } from '@acorex/components/button';\r\nimport { AXPageModule } from '@acorex/components/page';\r\nimport { AXDecoratorModule } from '@acorex/components/decorators';\r\nimport { AXCommonModule } from '@acorex/components/common';\r\nimport { AXDialogComponent } from './dialog.component';\r\n\r\nconst COMPONENT = [AXDialogComponent];\r\nconst MODULES = [CommonModule,AXCommonModule, DragDropModule, A11yModule, AXButtonModule, AXPageModule, 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 AXDialogModule { }\r\n","import { AXTranslator } from '@acorex/core/translation';\r\nimport { Overlay, ScrollStrategyOptions } from '@angular/cdk/overlay';\r\nimport { ComponentPortal } from '@angular/cdk/portal';\r\nimport { Injectable, Injector } from '@angular/core';\r\nimport { AXStyleColorType } from '@acorex/components/common';\r\nimport { AXDialogOptions, AXDialogRef } from './dialog.class';\r\nimport { AXDialogComponent } from './dialog.component';\r\n\r\n/**\r\n * The Button is a component which detects user interaction and triggers a corresponding event\r\n *\r\n * @category Components\r\n */\r\n@Injectable({ providedIn: 'root' })\r\nexport class AXDialogService {\r\n /**\r\n * @ignore\r\n */\r\n constructor(private overlayService: Overlay, private parentInjector: Injector, private sso: ScrollStrategyOptions) {}\r\n\r\n /**\r\n * Show an alert box with 'Okay' button.\r\n */\r\n alert(title: string, content: string, type: AXStyleColorType = 'primary'): Promise<void> {\r\n return new Promise(resolve => {\r\n const popup = this.open({\r\n title,\r\n type: type,\r\n content,\r\n buttons: [\r\n {\r\n name: 'confirm',\r\n text: AXTranslator.get('common.okay'),\r\n color: type,\r\n onClick: () => {\r\n popup.close();\r\n if (resolve) {\r\n resolve();\r\n }\r\n },\r\n },\r\n ],\r\n });\r\n });\r\n }\r\n\r\n /**\r\n * Show a confirm box with 'Okay' & 'Cancel' buttons.\r\n */\r\n confirm(title: string, content: string, type: AXStyleColorType = 'primary'): Promise<{ result: boolean }> {\r\n return new Promise<{ result: boolean }>(resolve => {\r\n const popup = this.open({\r\n title,\r\n content,\r\n type,\r\n buttons: [\r\n {\r\n name: 'confirm',\r\n text: AXTranslator.get('common.okay'),\r\n color: type,\r\n onClick: () => {\r\n popup.close();\r\n if (resolve) {\r\n resolve({ result: true });\r\n }\r\n },\r\n type: 'submit',\r\n },\r\n {\r\n name: 'cancel',\r\n text: AXTranslator.get('common.cancel'),\r\n color: `ghost`,\r\n onClick: () => {\r\n popup.close();\r\n if (resolve) {\r\n resolve({ result: false });\r\n }\r\n },\r\n hotkey: {\r\n Escape: () => {\r\n popup.close();\r\n if (resolve) {\r\n resolve({ result: false });\r\n }\r\n },\r\n },\r\n type: 'cancel',\r\n },\r\n ],\r\n });\r\n });\r\n }\r\n\r\n /**\r\n * Show a custom dialog box.\r\n */\r\n show(options: AXDialogOptions): Promise<{ name: string }> {\r\n return new Promise(resolve => {\r\n const popup = this.open(options);\r\n options.orientation = options.orientation || 'horizontal';\r\n options.buttons?.forEach(b => {\r\n const orginalClick = b.onClick;\r\n b.onClick = () => {\r\n popup.close();\r\n if (orginalClick) {\r\n orginalClick();\r\n }\r\n if (resolve) {\r\n resolve({ name: b.name! });\r\n }\r\n };\r\n });\r\n });\r\n }\r\n\r\n private open(options: AXDialogOptions): AXDialogRef {\r\n let positionStrategy = this.overlayService.position().global().centerHorizontally().centerVertically();\r\n\r\n const lastActiveElement = document.activeElement as HTMLElement;\r\n const overlayRef = this.overlayService.create({\r\n positionStrategy,\r\n hasBackdrop: true,\r\n scrollStrategy: this.sso.block(),\r\n panelClass: ['ax-animate-bounceIn', 'ax-animate-faster'],\r\n });\r\n const dialogPortal = new ComponentPortal(AXDialogComponent, null, this.parentInjector);\r\n const host = overlayRef.attach(dialogPortal);\r\n if (host.instance) {\r\n Object.assign(host.instance, {\r\n options: options,\r\n close: () => {\r\n overlayRef.dispose();\r\n if (lastActiveElement?.focus) {\r\n lastActiveElement.focus();\r\n }\r\n },\r\n });\r\n setTimeout(() => {\r\n host.changeDetectorRef.detectChanges();\r\n }, 0);\r\n }\r\n\r\n return {\r\n close: () => {\r\n host.instance.close();\r\n },\r\n };\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;;;AAWA,MAOa,iBAAkB,SAAQ,oBAAoB,CAAA;IACzD,WAAY,CAAA,UAAsB,EAAE,GAAsB,EAAA;AACxD,QAAA,KAAK,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;KACxB;AAED,IAAA,OAAO,CAAwB;AAC/B,IAAA,KAAK,CAAS;AACd,IAAA,KAAK,CAAa;IAElB,MAAM,GAAA;AACJ,QAAA,QAAQ,IAAI,CAAC,OAAO,CAAC,IAAI;AACvB,YAAA,KAAK,SAAS;AACZ,gBAAA,IAAI,CAAC,KAAK,GAAG,sBAAsB,CAAC;gBACpC,MAAM;AACR,YAAA,KAAK,QAAQ;AACX,gBAAA,IAAI,CAAC,KAAK,GAAG,uBAAuB,CAAC;gBACrC,MAAM;AACR,YAAA,KAAK,SAAS;AACZ,gBAAA,IAAI,CAAC,KAAK,GAAG,yBAAyB,CAAC;gBACvC,MAAM;AACR,YAAA;AACE,gBAAA,IAAI,CAAC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f,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,cADF,MAAM,EAAA,CAAA,CAAA;;2FACnB,eAAe,EAAA,UAAA,EAAA,CAAA;kBAD3B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAA;;;ACblC;;AAEG;;;;"}
1
+ {"version":3,"file":"acorex-components-dialog.mjs","sources":["../../../../projects/acorex/components/dialog/src/dialog.component.ts","../../../../projects/acorex/components/dialog/src/dialog.component.html","../../../../projects/acorex/components/dialog/src/dialog.module.ts","../../../../projects/acorex/components/dialog/src/dialog.service.ts","../../../../projects/acorex/components/dialog/acorex-components-dialog.ts"],"sourcesContent":["import {\n Component,\n ViewEncapsulation,\n ChangeDetectionStrategy,\n ElementRef,\n ChangeDetectorRef,\n} from '@angular/core';\nimport { AXButtonItem } from '@acorex/components/button';\nimport { AXDialogOptions } from './dialog.class';\nimport { AXBaseComponentMixin } from '@acorex/components/mixin';\n\n@Component({\n selector: 'ax-dialog',\n templateUrl: './dialog.component.html',\n styleUrls: ['./dialog.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXDialogComponent extends AXBaseComponentMixin {\n constructor(elementRef: ElementRef, cdr: ChangeDetectorRef) {\n super(elementRef, cdr);\n }\n\n options: AXDialogOptions | any;\n _icon: string;\n close: () => void;\n\n onInit() {\n switch (this.options.type) {\n case 'success':\n this._icon = 'ax-icon ax-icon-done';\n break;\n case 'danger':\n this._icon = 'ax-icon ax-icon-error';\n break;\n case 'warning':\n this._icon = 'ax-icon ax-icon-warning';\n break;\n default:\n this._icon = 'ax-icon ax-icon-done';\n break;\n }\n }\n\n _handleButtonClick(button: AXButtonItem) {\n if (button.onClick) {\n button.onClick();\n }\n }\n\n _hasAutoFocus(button: AXButtonItem) {\n const result =\n button.autofocus ||\n this.options.buttons.length == 1 ||\n ((button.type == 'submit' || button.type == 'cancel') &&\n !this.options.buttons.some((c) => c.autofocus));\n if (result) {\n button.autofocus = true;\n }\n return result;\n }\n}\n","<div aria-modal=\"true\" [cdkTrapFocus]=\"true\">\n <div class=\"ax-dialog ax-{{options.type}}-default ax-orientation-{{options.orientation}}\" cdkDrag role=\"alert\" cdkDragHandle>\n <div class=\"ax-dialog-content-wrapper\">\n <div class=\"ax-dialog-icon-side\">\n <i class=\"ax-dialog-icon {{_icon}}\"></i>\n </div>\n <div class=\"ax-dialog-content-side\">\n <div class=\"ax-dialog-title\">{{options.title}}</div>\n <div class=\"ax-dialog-content\">{{options.content}}</div>\n </div>\n <div class=\"ax-dialog-dismiss-icon\">\n <i class=\"ax-icon ax-icon-close\" *ngIf=\"options.dismissible\" (click)=\"close()\"></i>\n </div>\n </div>\n <ax-footer>\n <ng-container *ngFor=\"let button of options.buttons;let i=index\">\n <ax-button [text]=\"button.text\" [axAutoFocus]=\"_hasAutoFocus(button)\" [hotkey]=\"button.hotkey\"\n (onClick)=\"_handleButtonClick(button)\" [class]=\"button.cssClass\" [look]=\"button.look\"\n [color]=\"button.color\"></ax-button>\n </ng-container>\n </ax-footer>\n </div>\n</div>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { DragDropModule } from '@angular/cdk/drag-drop';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXPageModule } from '@acorex/components/page';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXCommonModule } from '@acorex/components/common';\nimport { AXDialogComponent } from './dialog.component';\n\nconst COMPONENT = [AXDialogComponent];\nconst MODULES = [CommonModule,AXCommonModule, DragDropModule, A11yModule, AXButtonModule, AXPageModule, AXDecoratorModule];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [...MODULES],\n exports: [...COMPONENT],\n providers: [],\n})\nexport class AXDialogModule { }\n","import { AXTranslator } from '@acorex/core/translation';\nimport { Overlay, ScrollStrategyOptions } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { Injectable, Injector } from '@angular/core';\nimport { AXStyleColorType } from '@acorex/components/common';\nimport { AXDialogOptions, AXDialogRef } from './dialog.class';\nimport { AXDialogComponent } from './dialog.component';\n\n/**\n * The Button is a component which detects user interaction and triggers a corresponding event\n *\n * @category Components\n */\n@Injectable({ providedIn: 'root' })\nexport class AXDialogService {\n /**\n * @ignore\n */\n constructor(private overlayService: Overlay, private parentInjector: Injector, private sso: ScrollStrategyOptions) {}\n\n /**\n * Show an alert box with 'Okay' button.\n */\n alert(title: string, content: string, type: AXStyleColorType = 'primary'): Promise<void> {\n return new Promise(resolve => {\n const popup = this.open({\n title,\n type: type,\n content,\n buttons: [\n {\n name: 'confirm',\n text: AXTranslator.get('common.okay'),\n color: type,\n onClick: () => {\n popup.close();\n if (resolve) {\n resolve();\n }\n },\n },\n ],\n });\n });\n }\n\n /**\n * Show a confirm box with 'Okay' & 'Cancel' buttons.\n */\n confirm(title: string, content: string, type: AXStyleColorType = 'primary'): Promise<{ result: boolean }> {\n return new Promise<{ result: boolean }>(resolve => {\n const popup = this.open({\n title,\n content,\n type,\n buttons: [\n {\n name: 'confirm',\n text: AXTranslator.get('common.okay'),\n color: type,\n onClick: () => {\n popup.close();\n if (resolve) {\n resolve({ result: true });\n }\n },\n type: 'submit',\n },\n {\n name: 'cancel',\n text: AXTranslator.get('common.cancel'),\n color: `ghost`,\n onClick: () => {\n popup.close();\n if (resolve) {\n resolve({ result: false });\n }\n },\n hotkey: {\n Escape: () => {\n popup.close();\n if (resolve) {\n resolve({ result: false });\n }\n },\n },\n type: 'cancel',\n },\n ],\n });\n });\n }\n\n /**\n * Show a custom dialog box.\n */\n show(options: AXDialogOptions): Promise<{ name: string }> {\n return new Promise(resolve => {\n const popup = this.open(options);\n options.orientation = options.orientation || 'horizontal';\n options.buttons?.forEach(b => {\n const orginalClick = b.onClick;\n b.onClick = () => {\n popup.close();\n if (orginalClick) {\n orginalClick();\n }\n if (resolve) {\n resolve({ name: b.name! });\n }\n };\n });\n });\n }\n\n private open(options: AXDialogOptions): AXDialogRef {\n let positionStrategy = this.overlayService.position().global().centerHorizontally().centerVertically();\n\n const lastActiveElement = document.activeElement as HTMLElement;\n const overlayRef = this.overlayService.create({\n positionStrategy,\n hasBackdrop: true,\n scrollStrategy: this.sso.block(),\n panelClass: ['ax-animate-bounceIn', 'ax-animate-faster'],\n });\n const dialogPortal = new ComponentPortal(AXDialogComponent, null, this.parentInjector);\n const host = overlayRef.attach(dialogPortal);\n if (host.instance) {\n Object.assign(host.instance, {\n options: options,\n close: () => {\n overlayRef.dispose();\n if (lastActiveElement?.focus) {\n lastActiveElement.focus();\n }\n },\n });\n setTimeout(() => {\n host.changeDetectorRef.detectChanges();\n }, 0);\n }\n\n return {\n close: () => {\n host.instance.close();\n },\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;;;AAWA,MAOa,iBAAkB,SAAQ,oBAAoB,CAAA;IACzD,WAAY,CAAA,UAAsB,EAAE,GAAsB,EAAA;AACxD,QAAA,KAAK,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;KACxB;AAED,IAAA,OAAO,CAAwB;AAC/B,IAAA,KAAK,CAAS;AACd,IAAA,KAAK,CAAa;IAElB,MAAM,GAAA;AACJ,QAAA,QAAQ,IAAI,CAAC,OAAO,CAAC,IAAI;AACvB,YAAA,KAAK,SAAS;AACZ,gBAAA,IAAI,CAAC,KAAK,GAAG,sBAAsB,CAAC;gBACpC,MAAM;AACR,YAAA,KAAK,QAAQ;AACX,gBAAA,IAAI,CAAC,KAAK,GAAG,uBAAuB,CAAC;gBACrC,MAAM;AACR,YAAA,KAAK,SAAS;AACZ,gBAAA,IAAI,CAAC,KAAK,GAAG,yBAAyB,CAAC;gBACvC,MAAM;AACR,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,UAAA,EAAA,CAAA,CAAA;AAAf,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,cADF,MAAM,EAAA,CAAA,CAAA;;2FACnB,eAAe,EAAA,UAAA,EAAA,CAAA;kBAD3B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAA;;;ACblC;;AAEG;;;;"}
@@ -19,20 +19,20 @@ class AXDrawerContainerComponent extends AXBaseComponentMixin {
19
19
  : host.classList.remove('ax-visible');
20
20
  }
21
21
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXDrawerContainerComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
22
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: AXDrawerContainerComponent, selector: "ax-drawer-container", usesInheritance: true, ngImport: i0, template: `
23
- <ng-content select="ax-drawer[location='start']"> </ng-content>
24
- <ng-content select="ax-content"> </ng-content>
25
- <ng-content select="ax-drawer[location='end']"> </ng-content>
22
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: AXDrawerContainerComponent, selector: "ax-drawer-container", usesInheritance: true, ngImport: i0, template: `
23
+ <ng-content select="ax-drawer[location='start']"> </ng-content>
24
+ <ng-content select="ax-content"> </ng-content>
25
+ <ng-content select="ax-drawer[location='end']"> </ng-content>
26
26
  `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
27
27
  }
28
28
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXDrawerContainerComponent, decorators: [{
29
29
  type: Component,
30
30
  args: [{
31
31
  selector: 'ax-drawer-container',
32
- template: `
33
- <ng-content select="ax-drawer[location='start']"> </ng-content>
34
- <ng-content select="ax-content"> </ng-content>
35
- <ng-content select="ax-drawer[location='end']"> </ng-content>
32
+ template: `
33
+ <ng-content select="ax-drawer[location='start']"> </ng-content>
34
+ <ng-content select="ax-content"> </ng-content>
35
+ <ng-content select="ax-drawer[location='end']"> </ng-content>
36
36
  `,
37
37
  changeDetection: ChangeDetectionStrategy.OnPush,
38
38
  encapsulation: ViewEncapsulation.None,
@@ -148,16 +148,16 @@ class AXDrawerComponent extends AXBaseComponentMixin {
148
148
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: AXDrawerComponent, selector: "ax-drawer", inputs: { location: "location", mode: "mode", collapsed: "collapsed" }, outputs: { locationChange: "locationChange", modeChange: "modeChange", collapsedChange: "collapsedChange" }, host: { properties: { "class": "this.__hostClass" } }, providers: [
149
149
  { provide: AXComponent, useExisting: AXDrawerComponent },
150
150
  { provide: AXClosbaleComponent, useExisting: AXDrawerComponent },
151
- ], usesInheritance: true, ngImport: i0, template: `
152
- <ng-content select="ax-header"></ng-content>
153
- <ng-content select="ax-content"></ng-content>
151
+ ], usesInheritance: true, ngImport: i0, template: `
152
+ <ng-content select="ax-header"></ng-content>
153
+ <ng-content select="ax-content"></ng-content>
154
154
  `, isInline: true, styles: ["ax-drawer-container{display:flex;position:relative;width:100%;height:100%;overflow:hidden}ax-drawer-container.ax-fixed{display:none;inset:0;z-index:1000}ax-drawer-container.ax-fixed.ax-visible{display:flex}ax-drawer-container .ax-backdrop{background-color:#0000004d;position:absolute;width:100%;height:100%;z-index:1;top:0;bottom:0;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}ax-drawer-container ax-drawer{display:flex;flex-direction:column;max-width:95%;height:100%;background-color:rgba(var(--ax-color-surface));animation-duration:.3s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}ax-drawer-container ax-drawer .ax-header,ax-drawer-container ax-drawer .ax-footer{padding:.75rem}ax-drawer-container ax-drawer .ax-footer{border-top-width:1px}ax-drawer-container ax-drawer .ax-header{border-bottom-width:1px}ax-drawer-container ax-drawer.ax-preload{animation-duration:0ms;transition-property:none}ax-drawer-container ax-drawer>.ax-content{overflow:auto;flex:1 1 0%}ax-drawer-container ax-drawer.ax-drawer-overlay{position:absolute}ax-drawer-container ax-drawer.ax-drawer-overlay.ax-expanded{z-index:2}ax-drawer-container ax-drawer.ax-drawer-overlay.ax-collapsed{z-index:0}ax-drawer-container ax-drawer.ax-drawer-overlay.ax-drawer-start.ax-expanded{inset-inline-start:0px}ax-drawer-container ax-drawer.ax-drawer-overlay.ax-drawer-start.ax-collapsed{inset-inline-start:calc(-1 * var(--ax-el-width))}ax-drawer-container ax-drawer.ax-drawer-overlay.ax-drawer-end.ax-expanded{inset-inline-end:0px}ax-drawer-container ax-drawer.ax-drawer-overlay.ax-drawer-end.ax-collapsed{inset-inline-end:calc(-1 * var(--ax-el-width))}ax-drawer-container ax-drawer.ax-drawer-push{flex:0 1 auto}ax-drawer-container ax-drawer.ax-drawer-push.ax-drawer-start{order:-9999}ax-drawer-container ax-drawer.ax-drawer-push.ax-drawer-start.ax-expanded{margin-inline-start:0%}ax-drawer-container ax-drawer.ax-drawer-push.ax-drawer-start.ax-collapsed{margin-inline-start:calc(-1 * var(--ax-el-width))}ax-drawer-container ax-drawer.ax-drawer-push.ax-drawer-end{order:9999}ax-drawer-container ax-drawer.ax-drawer-push.ax-drawer-end.ax-expanded{margin-inline-end:0%}ax-drawer-container ax-drawer.ax-drawer-push.ax-drawer-end.ax-collapsed{margin-inline-end:calc(-1 * var(--ax-el-width))}ax-drawer-container>.ax-content{flex:1 1 0%;height:100%;overflow:auto}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
155
155
  }
156
156
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXDrawerComponent, decorators: [{
157
157
  type: Component,
158
- args: [{ selector: 'ax-drawer', template: `
159
- <ng-content select="ax-header"></ng-content>
160
- <ng-content select="ax-content"></ng-content>
158
+ args: [{ selector: 'ax-drawer', template: `
159
+ <ng-content select="ax-header"></ng-content>
160
+ <ng-content select="ax-content"></ng-content>
161
161
  `, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [
162
162
  { provide: AXComponent, useExisting: AXDrawerComponent },
163
163
  { provide: AXClosbaleComponent, useExisting: AXDrawerComponent },
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-components-drawer.mjs","sources":["../../../../projects/acorex/components/drawer/src/drawer-container.component.ts","../../../../projects/acorex/components/drawer/src/drawer.component.ts","../../../../projects/acorex/components/drawer/src/drawer.module.ts","../../../../projects/acorex/components/drawer/acorex-components-drawer.ts"],"sourcesContent":["import { AXBaseComponentMixin } from '@acorex/components/mixin';\r\nimport {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n NgZone,\r\n} from '@angular/core';\r\nimport { AXDrawerComponent } from './drawer.component';\r\n\r\n@Component({\r\n selector: 'ax-drawer-container',\r\n template: `\r\n <ng-content select=\"ax-drawer[location='start']\"> </ng-content>\r\n <ng-content select=\"ax-content\"> </ng-content>\r\n <ng-content select=\"ax-drawer[location='end']\"> </ng-content>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\nexport class AXDrawerContainerComponent extends AXBaseComponentMixin {\r\n constructor(\r\n elementRef: ElementRef,\r\n cdr: ChangeDetectorRef,\r\n private _zone: NgZone\r\n ) {\r\n super(elementRef, cdr);\r\n }\r\n\r\n ngDoCheck() {\r\n const host = this._getHostElement();\r\n Array.from(host.querySelectorAll('ax-drawer'))\r\n .map((c) => c['__axContext__'] as AXDrawerComponent)\r\n .some((c) => !c?.collapsed)\r\n ? host.classList.add('ax-visible')\r\n : host.classList.remove('ax-visible');\r\n }\r\n}\r\n","import {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n NgZone,\r\n Input,\r\n HostBinding,\r\n Output,\r\n EventEmitter,\r\n} from '@angular/core';\r\nimport { AXClosbaleComponent, AXComponent } from '@acorex/components/common';\r\nimport { AXBaseComponentMixin, AXComponentOptionChanged } from '@acorex/components/mixin';\r\n\r\nexport type AXDrawerMode = 'push' | 'overlay';\r\nexport type AXDrawerLocation = 'start' | 'end';\r\n\r\n@Component({\r\n selector: 'ax-drawer',\r\n template: `\r\n <ng-content select=\"ax-header\"></ng-content>\r\n <ng-content select=\"ax-content\"></ng-content>\r\n `,\r\n styleUrls:['./drawer.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n providers: [\r\n { provide: AXComponent, useExisting: AXDrawerComponent },\r\n { provide: AXClosbaleComponent, useExisting: AXDrawerComponent },\r\n ],\r\n})\r\nexport class AXDrawerComponent extends AXBaseComponentMixin {\r\n constructor(\r\n private _elementRef: ElementRef,\r\n _cdr: ChangeDetectorRef,\r\n private _zone: NgZone\r\n ) {\r\n super(_elementRef, _cdr);\r\n }\r\n\r\n @Output()\r\n public locationChange: EventEmitter<AXDrawerLocation> = new EventEmitter<AXDrawerLocation>();\r\n\r\n private _location: AXDrawerLocation;\r\n @Input()\r\n public get location(): AXDrawerLocation {\r\n return this._location;\r\n }\r\n public set location(v: AXDrawerLocation) {\r\n this._setOption({\r\n name: 'location',\r\n value: v,\r\n });\r\n }\r\n\r\n @Output()\r\n public modeChange: EventEmitter<AXDrawerMode> = new EventEmitter<AXDrawerMode>();\r\n\r\n private _mode: AXDrawerMode = 'overlay';\r\n @Input()\r\n public get mode(): AXDrawerMode {\r\n return this._mode;\r\n }\r\n public set mode(v: AXDrawerMode) {\r\n this._setOption({\r\n name: 'mode',\r\n value: v,\r\n });\r\n }\r\n\r\n @Output()\r\n public collapsedChange: EventEmitter<boolean> = new EventEmitter<boolean>();\r\n\r\n private _collapsed: boolean = true;\r\n @Input()\r\n public get collapsed(): boolean {\r\n return this._collapsed;\r\n }\r\n public set collapsed(v: boolean) {\r\n this._setOption({\r\n name: 'collapsed',\r\n value: v,\r\n });\r\n }\r\n\r\n onViewInit(): void {\r\n // setTimeout(() => {\r\n // this._loaded = true;\r\n // this._checkProps();\r\n // }, 1000);\r\n this._detectBoundingSize();\r\n }\r\n\r\n _onOptionChanged(option: AXComponentOptionChanged): void {\r\n this._checkProps();\r\n }\r\n\r\n ngDoCheck() {\r\n this._detectBoundingSize();\r\n }\r\n\r\n private _detectBoundingSize() {\r\n this._zone.runOutsideAngular(() => {\r\n const host = this._getHostElement();\r\n if (host.clientWidth)\r\n host.style.setProperty('--ax-el-width', `${host.clientWidth}px`);\r\n });\r\n }\r\n\r\n private _checkProps() {\r\n this._detectBoundingSize();\r\n this._removeBackdrop();\r\n if (this.mode == 'overlay') {\r\n if (!this.collapsed) {\r\n this._addBackdrop();\r\n }\r\n }\r\n }\r\n\r\n toggle() {\r\n this.collapsed = !this.collapsed;\r\n }\r\n\r\n close() {\r\n this.collapsed = true;\r\n }\r\n\r\n open() {\r\n this.collapsed = false;\r\n }\r\n\r\n @HostBinding('class')\r\n private get __hostClass(): string {\r\n //return `ax-drawer-${this.mode} ax-drawer-${this.location} ${this.collapsed ? 'ax-collapsed' : 'ax-expanded'} ${!this._loaded ? 'ax-preload' : ''}`;\r\n return `ax-drawer-${this.mode} ax-drawer-${this.location} ${\r\n this.collapsed ? 'ax-collapsed' : 'ax-expanded'\r\n }`;\r\n }\r\n\r\n private _backdropElement: HTMLElement | any;\r\n // private _loaded: boolean = false;\r\n\r\n private _addBackdrop() {\r\n this._zone.runOutsideAngular(() => {\r\n this._backdropElement = document.createElement('div');\r\n this._backdropElement.classList.add('ax-backdrop');\r\n this._backdropElement.onclick = () => {\r\n this._zone.run(() => {\r\n this.close();\r\n });\r\n };\r\n this._getHostElement().parentElement?.appendChild(this._backdropElement);\r\n });\r\n }\r\n private _removeBackdrop() {\r\n this._zone.runOutsideAngular(() => {\r\n if (this._backdropElement) {\r\n this._getHostElement().parentElement?.removeChild(\r\n this._backdropElement\r\n );\r\n this._backdropElement = null;\r\n }\r\n });\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { AXDrawerComponent } from './drawer.component';\r\nimport { AXDrawerContainerComponent } from './drawer-container.component';\r\n\r\nconst COMPONENT = [AXDrawerComponent, AXDrawerContainerComponent];\r\nconst MODULES = [CommonModule];\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 AXDrawerModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAWA,MAUa,0BAA2B,SAAQ,oBAAoB,CAAA;AAIxD,IAAA,KAAA,CAAA;AAHV,IAAA,WAAA,CACE,UAAsB,EACtB,GAAsB,EACd,KAAa,EAAA;AAErB,QAAA,KAAK,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;QAFf,IAAK,CAAA,KAAA,GAAL,KAAK,CAAQ;KAGtB;IAED,SAAS,GAAA;AACP,QAAA,MAAM,IAAI,GAAG,IAAI,CAAC,eAAe,EAAE,CAAC;QACpC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;aAC3C,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,eAAe,CAAsB,CAAC;aACnD,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC;cACzB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,YAAY,CAAC;cAChC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;K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Y,CAAC,CAAC;AAE/B,MAMa,cAAc,CAAA;uGAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;wGAAd,cAAc,EAAA,YAAA,EAAA,CATR,iBAAiB,EAAE,0BAA0B,aAC/C,YAAY,CAAA,EAAA,OAAA,EAAA,CADV,iBAAiB,EAAE,0BAA0B,CAAA,EAAA,CAAA,CAAA;AASnD,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,YAJV,OAAO,CAAA,EAAA,CAAA,CAAA;;2FAIX,cAAc,EAAA,UAAA,EAAA,CAAA;kBAN1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,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;AAChB,iBAAA,CAAA;;;ACbD;;AAEG;;;;"}
1
+ {"version":3,"file":"acorex-components-drawer.mjs","sources":["../../../../projects/acorex/components/drawer/src/drawer-container.component.ts","../../../../projects/acorex/components/drawer/src/drawer.component.ts","../../../../projects/acorex/components/drawer/src/drawer.module.ts","../../../../projects/acorex/components/drawer/acorex-components-drawer.ts"],"sourcesContent":["import { AXBaseComponentMixin } from '@acorex/components/mixin';\nimport {\n Component,\n ViewEncapsulation,\n ChangeDetectionStrategy,\n ElementRef,\n ChangeDetectorRef,\n NgZone,\n} from '@angular/core';\nimport { AXDrawerComponent } from './drawer.component';\n\n@Component({\n selector: 'ax-drawer-container',\n template: `\n <ng-content select=\"ax-drawer[location='start']\"> </ng-content>\n <ng-content select=\"ax-content\"> </ng-content>\n <ng-content select=\"ax-drawer[location='end']\"> </ng-content>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXDrawerContainerComponent extends AXBaseComponentMixin {\n constructor(\n elementRef: ElementRef,\n cdr: ChangeDetectorRef,\n private _zone: NgZone\n ) {\n super(elementRef, cdr);\n }\n\n ngDoCheck() {\n const host = this._getHostElement();\n Array.from(host.querySelectorAll('ax-drawer'))\n .map((c) => c['__axContext__'] as AXDrawerComponent)\n .some((c) => !c?.collapsed)\n ? host.classList.add('ax-visible')\n : host.classList.remove('ax-visible');\n }\n}\n","import {\n Component,\n ViewEncapsulation,\n ChangeDetectionStrategy,\n ElementRef,\n ChangeDetectorRef,\n NgZone,\n Input,\n HostBinding,\n Output,\n EventEmitter,\n} from '@angular/core';\nimport { AXClosbaleComponent, AXComponent } from '@acorex/components/common';\nimport { AXBaseComponentMixin, AXComponentOptionChanged } from '@acorex/components/mixin';\n\nexport type AXDrawerMode = 'push' | 'overlay';\nexport type AXDrawerLocation = 'start' | 'end';\n\n@Component({\n selector: 'ax-drawer',\n template: `\n <ng-content select=\"ax-header\"></ng-content>\n <ng-content select=\"ax-content\"></ng-content>\n `,\n styleUrls:['./drawer.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n { provide: AXComponent, useExisting: AXDrawerComponent },\n { provide: AXClosbaleComponent, useExisting: AXDrawerComponent },\n ],\n})\nexport class AXDrawerComponent extends AXBaseComponentMixin {\n constructor(\n private _elementRef: ElementRef,\n _cdr: ChangeDetectorRef,\n private _zone: NgZone\n ) {\n super(_elementRef, _cdr);\n }\n\n @Output()\n public locationChange: EventEmitter<AXDrawerLocation> = new EventEmitter<AXDrawerLocation>();\n\n private _location: AXDrawerLocation;\n @Input()\n public get location(): AXDrawerLocation {\n return this._location;\n }\n public set location(v: AXDrawerLocation) {\n this._setOption({\n name: 'location',\n value: v,\n });\n }\n\n @Output()\n public modeChange: EventEmitter<AXDrawerMode> = new EventEmitter<AXDrawerMode>();\n\n private _mode: AXDrawerMode = 'overlay';\n @Input()\n public get mode(): AXDrawerMode {\n return this._mode;\n }\n public set mode(v: AXDrawerMode) {\n this._setOption({\n name: 'mode',\n value: v,\n });\n }\n\n @Output()\n public collapsedChange: EventEmitter<boolean> = new EventEmitter<boolean>();\n\n private _collapsed: boolean = true;\n @Input()\n public get collapsed(): boolean {\n return this._collapsed;\n }\n public set collapsed(v: boolean) {\n this._setOption({\n name: 'collapsed',\n value: v,\n });\n }\n\n onViewInit(): void {\n // setTimeout(() => {\n // this._loaded = true;\n // this._checkProps();\n // }, 1000);\n this._detectBoundingSize();\n }\n\n _onOptionChanged(option: AXComponentOptionChanged): void {\n this._checkProps();\n }\n\n ngDoCheck() {\n this._detectBoundingSize();\n }\n\n private _detectBoundingSize() {\n this._zone.runOutsideAngular(() => {\n const host = this._getHostElement();\n if (host.clientWidth)\n host.style.setProperty('--ax-el-width', `${host.clientWidth}px`);\n });\n }\n\n private _checkProps() {\n this._detectBoundingSize();\n this._removeBackdrop();\n if (this.mode == 'overlay') {\n if (!this.collapsed) {\n this._addBackdrop();\n }\n }\n }\n\n toggle() {\n this.collapsed = !this.collapsed;\n }\n\n close() {\n this.collapsed = true;\n }\n\n open() {\n this.collapsed = false;\n }\n\n @HostBinding('class')\n private get __hostClass(): string {\n //return `ax-drawer-${this.mode} ax-drawer-${this.location} ${this.collapsed ? 'ax-collapsed' : 'ax-expanded'} ${!this._loaded ? 'ax-preload' : ''}`;\n return `ax-drawer-${this.mode} ax-drawer-${this.location} ${\n this.collapsed ? 'ax-collapsed' : 'ax-expanded'\n }`;\n }\n\n private _backdropElement: HTMLElement | any;\n // private _loaded: boolean = false;\n\n private _addBackdrop() {\n this._zone.runOutsideAngular(() => {\n this._backdropElement = document.createElement('div');\n this._backdropElement.classList.add('ax-backdrop');\n this._backdropElement.onclick = () => {\n this._zone.run(() => {\n this.close();\n });\n };\n this._getHostElement().parentElement?.appendChild(this._backdropElement);\n });\n }\n private _removeBackdrop() {\n this._zone.runOutsideAngular(() => {\n if (this._backdropElement) {\n this._getHostElement().parentElement?.removeChild(\n this._backdropElement\n );\n this._backdropElement = null;\n }\n });\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { AXDrawerComponent } from './drawer.component';\nimport { AXDrawerContainerComponent } from './drawer-container.component';\n\nconst COMPONENT = [AXDrawerComponent, AXDrawerContainerComponent];\nconst MODULES = [CommonModule];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [...MODULES],\n exports: [...COMPONENT],\n providers: [],\n})\nexport class AXDrawerModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAWA,MAUa,0BAA2B,SAAQ,oBAAoB,CAAA;AAIxD,IAAA,KAAA,CAAA;AAHV,IAAA,WAAA,CACE,UAAsB,EACtB,GAAsB,EACd,KAAa,EAAA;AAErB,QAAA,KAAK,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;QAFf,IAAK,CAAA,KAAA,GAAL,KAAK,CAAQ;KAGtB;IAED,SAAS,GAAA;AACP,QAAA,MAAM,IAAI,GAAG,IAAI,CAAC,eAAe,EAAE,CAAC;QACpC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;aAC3C,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,eAAe,CAAsB,CAAC;aACnD,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC;cACzB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,YAAY,CAAC;cAChC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;KACzC;uGAhBU,0BAA0B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,C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QAAA,EAAA,CAAA,CAAA;wGAAd,cAAc,EAAA,YAAA,EAAA,CATR,iBAAiB,EAAE,0BAA0B,aAC/C,YAAY,CAAA,EAAA,OAAA,EAAA,CADV,iBAAiB,EAAE,0BAA0B,CAAA,EAAA,CAAA,CAAA;AASnD,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,YAJV,OAAO,CAAA,EAAA,CAAA,CAAA;;2FAIX,cAAc,EAAA,UAAA,EAAA,CAAA;kBAN1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,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;AAChB,iBAAA,CAAA;;;ACbD;;AAEG;;;;"}
@@ -90,11 +90,11 @@ class AXDropdownPanelComponent extends AXBaseDropdownMixin {
90
90
  this._emitOnItemClickEvent(e, e.component);
91
91
  }
92
92
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXDropdownPanelComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1.AXButtonComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component });
93
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: { isOpen: "isOpen", fitParent: "fitParent", dropdownWidth: "dropdownWidth", position: "position", target: "target" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", onItemClick: "onItemClick" }, host: { classAttribute: "ax-dropdown-panel" }, queries: [{ propertyName: "_contentButtons", predicate: AXButtonItemComponent }], viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ax-popover [target]=\"target\" [position]=\"position\" [openTrigger]=\"'toggle'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"false\" >\r\n <div class=\"ax-overlay-pane\" [class.ax-dropdown-list]=\"_needBorder\" >\r\n <ng-content select=\"[panel],ax-button-item\">\r\n </ng-content>\r\n </div>\r\n</ax-popover>", styles: [""], dependencies: [{ kind: "component", type: i2.AXPopoverComponent, selector: "ax-popover", inputs: ["target", "position", "openTrigger", "closeTrigger", "hasBackdrop", "backdropClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
93
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: { isOpen: "isOpen", fitParent: "fitParent", dropdownWidth: "dropdownWidth", position: "position", target: "target" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", onItemClick: "onItemClick" }, host: { classAttribute: "ax-dropdown-panel" }, queries: [{ propertyName: "_contentButtons", predicate: AXButtonItemComponent }], viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ax-popover [target]=\"target\" [position]=\"position\" [openTrigger]=\"'toggle'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"false\" >\n <div class=\"ax-overlay-pane\" [class.ax-dropdown-list]=\"_needBorder\" >\n <ng-content select=\"[panel],ax-button-item\">\n </ng-content>\n </div>\n</ax-popover>", styles: [""], dependencies: [{ kind: "component", type: i2.AXPopoverComponent, selector: "ax-popover", inputs: ["target", "position", "openTrigger", "closeTrigger", "hasBackdrop", "backdropClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
94
94
  }
95
95
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXDropdownPanelComponent, decorators: [{
96
96
  type: Component,
97
- args: [{ selector: 'ax-dropdown-panel', inputs: ['isOpen', 'fitParent', 'dropdownWidth', 'position'], outputs: ['onOpened', 'onClosed'], host: { class: 'ax-dropdown-panel' }, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ax-popover [target]=\"target\" [position]=\"position\" [openTrigger]=\"'toggle'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"false\" >\r\n <div class=\"ax-overlay-pane\" [class.ax-dropdown-list]=\"_needBorder\" >\r\n <ng-content select=\"[panel],ax-button-item\">\r\n </ng-content>\r\n </div>\r\n</ax-popover>" }]
97
+ args: [{ selector: 'ax-dropdown-panel', inputs: ['isOpen', 'fitParent', 'dropdownWidth', 'position'], outputs: ['onOpened', 'onClosed'], host: { class: 'ax-dropdown-panel' }, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ax-popover [target]=\"target\" [position]=\"position\" [openTrigger]=\"'toggle'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"false\" >\n <div class=\"ax-overlay-pane\" [class.ax-dropdown-list]=\"_needBorder\" >\n <ng-content select=\"[panel],ax-button-item\">\n </ng-content>\n </div>\n</ax-popover>" }]
98
98
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.AXButtonComponent, decorators: [{
99
99
  type: Optional
100
100
  }] }]; }, propDecorators: { _contentButtons: [{
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-components-dropdown.mjs","sources":["../../../../projects/acorex/components/dropdown/src/dropdown-panel.component.ts","../../../../projects/acorex/components/dropdown/src/dropdown-panel.component.html","../../../../projects/acorex/components/dropdown/src/dropdown.module.ts","../../../../projects/acorex/components/dropdown/acorex-components-dropdown.ts"],"sourcesContent":["import {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n ContentChildren,\r\n QueryList,\r\n EventEmitter,\r\n Output,\r\n ViewChild,\r\n Optional,\r\n Input,\r\n HostListener,\r\n} from '@angular/core';\r\nimport { Subscription } from 'rxjs';\r\n\r\nimport { AXButtonClickEvent, AXClickEvent } from '@acorex/components/common';\r\nimport { AXButtonComponent, AXButtonItemComponent } from '@acorex/components/button';\r\nimport { AXPopoverComponent } from '@acorex/components/popover';\r\nimport { AXBaseDropdownMixin } from '@acorex/components/mixin';\r\n\r\n@Component({\r\n selector: 'ax-dropdown-panel',\r\n templateUrl: './dropdown-panel.component.html',\r\n styleUrls: ['./dropdown-panel.component.scss'],\r\n inputs: ['isOpen', 'fitParent', 'dropdownWidth', 'position'],\r\n outputs: ['onOpened', 'onClosed'],\r\n host: { class: 'ax-dropdown-panel' },\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\nexport class AXDropdownPanelComponent extends AXBaseDropdownMixin {\r\n constructor(\r\n elementRef: ElementRef,\r\n cdr: ChangeDetectorRef,\r\n @Optional()\r\n public _parent?: AXButtonComponent\r\n ) {\r\n super(elementRef, cdr);\r\n this._target = this._parent?.getHostElement();\r\n }\r\n\r\n @ContentChildren(AXButtonItemComponent)\r\n _contentButtons: QueryList<AXButtonItemComponent>;\r\n\r\n @Output()\r\n onItemClick: EventEmitter<AXButtonClickEvent> = new EventEmitter<AXButtonClickEvent>();\r\n\r\n @ViewChild(AXPopoverComponent, { static: true })\r\n popover: AXPopoverComponent = null;\r\n\r\n _needBorder: boolean = false;\r\n _subs: Subscription[] = [];\r\n\r\n private _target: HTMLElement;\r\n @Input()\r\n public get target(): HTMLElement {\r\n return this._target;\r\n }\r\n public set target(v: HTMLElement) {\r\n this._target = v;\r\n }\r\n\r\n onViewInit(): void {\r\n super.onViewInit();\r\n [this.target, this._getHostElement()].forEach(el => {\r\n el.addEventListener('keydown', e => {\r\n if (e.code == 'Escape' && this.isOpen) {\r\n e.stopPropagation();\r\n this.close();\r\n }\r\n });\r\n });\r\n }\r\n\r\n ngAfterContentInit() {\r\n this._initContents();\r\n this._contentButtons.changes.subscribe(() => {\r\n this._initContents();\r\n });\r\n }\r\n\r\n private _initContents() {\r\n this._needBorder = this._contentButtons.length > 0;\r\n this._bindEvents();\r\n this._bindProps();\r\n this._cdr.markForCheck();\r\n }\r\n\r\n private _bindEvents() {\r\n this._contentButtons?.forEach(b => {\r\n if (!b.onClick.length)\r\n b.onClick.subscribe(c => {\r\n this._handleOnItemClick(c);\r\n });\r\n });\r\n }\r\n\r\n private _bindProps() {\r\n this._contentButtons?.forEach(b => {\r\n //b.look = this.look ?? this.look;\r\n b.disabled = b.disabled ?? this.disabled;\r\n //b.toggleable = false;\r\n });\r\n }\r\n\r\n onOptionChanged(options) {\r\n this._bindProps();\r\n }\r\n\r\n onDestroy(): void {\r\n this._subs.forEach(s => {\r\n s?.unsubscribe();\r\n });\r\n }\r\n\r\n _emitOnItemClickEvent(e: AXClickEvent, item: AXButtonItemComponent): void {\r\n this.onItemClick.emit({\r\n component: this,\r\n htmlElement: this._getHostElement(),\r\n nativeEvent: e.nativeEvent,\r\n name: item.name,\r\n data: item.data,\r\n });\r\n }\r\n\r\n private _handleOnItemClick(e: AXClickEvent) {\r\n this.close();\r\n this._emitOnItemClickEvent(e, e.component);\r\n }\r\n}\r\n","<ax-popover [target]=\"target\" [position]=\"position\" [openTrigger]=\"'toggle'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"false\" >\r\n <div class=\"ax-overlay-pane\" [class.ax-dropdown-list]=\"_needBorder\" >\r\n <ng-content select=\"[panel],ax-button-item\">\r\n </ng-content>\r\n </div>\r\n</ax-popover>","import { OverlayModule } from '@angular/cdk/overlay';\r\nimport { CommonModule } from '@angular/common';\r\nimport { NgModule } from '@angular/core';\r\nimport { AXButtonModule } from '@acorex/components/button';\r\nimport { AXDecoratorModule } from '@acorex/components/decorators';\r\nimport { AXPopoverModule } from '@acorex/components/popover';\r\nimport { AXDropdownPanelComponent } from './dropdown-panel.component';\r\nimport { A11yModule } from '@angular/cdk/a11y';\r\nimport { AXCommonModule } from '@acorex/components/common';\r\n\r\n@NgModule({\r\n imports: [CommonModule,AXCommonModule, A11yModule, AXButtonModule, OverlayModule, AXDecoratorModule, AXPopoverModule],\r\n exports: [AXDropdownPanelComponent],\r\n declarations: [AXDropdownPanelComponent],\r\n providers: [],\r\n})\r\nexport class AXDropdownModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAsBA,MAUa,wBAAyB,SAAQ,mBAAmB,CAAA;AAKtD,IAAA,OAAA,CAAA;AAJT,IAAA,WAAA,CACE,UAAsB,EACtB,GAAsB,EAEf,OAA2B,EAAA;AAElC,QAAA,KAAK,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;QAFhB,IAAO,CAAA,OAAA,GAAP,OAAO,CAAoB;QAGlC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,EAAE,cAAc,EAAE,CAAC;KAC/C;AAGD,IAAA,eAAe,CAAmC;AAGlD,IAAA,WAAW,GAAqC,IAAI,YAAY,EAAsB,CAAC;IAGvF,OAAO,GAAuB,IAAI,CAAC;IAEnC,WAAW,GAAY,KAAK,CAAC;IAC7B,KAAK,GAAmB,EAAE,CAAC;AAEnB,IAAA,OAAO,CAAc;AAC7B,IAAA,IACW,MAAM,GAAA;QACf,OAAO,IAAI,CAAC,OAAO,CAAC;KACrB;IACD,IAAW,MAAM,CAAC,CAAc,EAAA;AAC9B,QAAA,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;KAClB;IAED,UAAU,GAAA;QACR,KAAK,CAAC,UAAU,EAAE,CAAC;AACnB,QAAA,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,eAAe,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,CAAC;oBACnC,YAAY,EAAE,CAAC,wBAAwB,CAAC;AACxC,oBAAA,SAAS,EAAE,EAAE;AAChB,iBAAA,CAAA;;;ACfD;;AAEG;;;;"}
1
+ {"version":3,"file":"acorex-components-dropdown.mjs","sources":["../../../../projects/acorex/components/dropdown/src/dropdown-panel.component.ts","../../../../projects/acorex/components/dropdown/src/dropdown-panel.component.html","../../../../projects/acorex/components/dropdown/src/dropdown.module.ts","../../../../projects/acorex/components/dropdown/acorex-components-dropdown.ts"],"sourcesContent":["import {\n Component,\n ViewEncapsulation,\n ChangeDetectionStrategy,\n ElementRef,\n ChangeDetectorRef,\n ContentChildren,\n QueryList,\n EventEmitter,\n Output,\n ViewChild,\n Optional,\n Input,\n HostListener,\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { AXButtonClickEvent, AXClickEvent } from '@acorex/components/common';\nimport { AXButtonComponent, AXButtonItemComponent } from '@acorex/components/button';\nimport { AXPopoverComponent } from '@acorex/components/popover';\nimport { AXBaseDropdownMixin } from '@acorex/components/mixin';\n\n@Component({\n selector: 'ax-dropdown-panel',\n templateUrl: './dropdown-panel.component.html',\n styleUrls: ['./dropdown-panel.component.scss'],\n inputs: ['isOpen', 'fitParent', 'dropdownWidth', 'position'],\n outputs: ['onOpened', 'onClosed'],\n host: { class: 'ax-dropdown-panel' },\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXDropdownPanelComponent extends AXBaseDropdownMixin {\n constructor(\n elementRef: ElementRef,\n cdr: ChangeDetectorRef,\n @Optional()\n public _parent?: AXButtonComponent\n ) {\n super(elementRef, cdr);\n this._target = this._parent?.getHostElement();\n }\n\n @ContentChildren(AXButtonItemComponent)\n _contentButtons: QueryList<AXButtonItemComponent>;\n\n @Output()\n onItemClick: EventEmitter<AXButtonClickEvent> = new EventEmitter<AXButtonClickEvent>();\n\n @ViewChild(AXPopoverComponent, { static: true })\n popover: AXPopoverComponent = null;\n\n _needBorder: boolean = false;\n _subs: Subscription[] = [];\n\n private _target: HTMLElement;\n @Input()\n public get target(): HTMLElement {\n return this._target;\n }\n public set target(v: HTMLElement) {\n this._target = v;\n }\n\n onViewInit(): void {\n super.onViewInit();\n [this.target, this._getHostElement()].forEach(el => {\n el.addEventListener('keydown', e => {\n if (e.code == 'Escape' && this.isOpen) {\n e.stopPropagation();\n this.close();\n }\n });\n });\n }\n\n ngAfterContentInit() {\n this._initContents();\n this._contentButtons.changes.subscribe(() => {\n this._initContents();\n });\n }\n\n private _initContents() {\n this._needBorder = this._contentButtons.length > 0;\n this._bindEvents();\n this._bindProps();\n this._cdr.markForCheck();\n }\n\n private _bindEvents() {\n this._contentButtons?.forEach(b => {\n if (!b.onClick.length)\n b.onClick.subscribe(c => {\n this._handleOnItemClick(c);\n });\n });\n }\n\n private _bindProps() {\n this._contentButtons?.forEach(b => {\n //b.look = this.look ?? this.look;\n b.disabled = b.disabled ?? this.disabled;\n //b.toggleable = false;\n });\n }\n\n onOptionChanged(options) {\n this._bindProps();\n }\n\n onDestroy(): void {\n this._subs.forEach(s => {\n s?.unsubscribe();\n });\n }\n\n _emitOnItemClickEvent(e: AXClickEvent, item: AXButtonItemComponent): void {\n this.onItemClick.emit({\n component: this,\n htmlElement: this._getHostElement(),\n nativeEvent: e.nativeEvent,\n name: item.name,\n data: item.data,\n });\n }\n\n private _handleOnItemClick(e: AXClickEvent) {\n this.close();\n this._emitOnItemClickEvent(e, e.component);\n }\n}\n","<ax-popover [target]=\"target\" [position]=\"position\" [openTrigger]=\"'toggle'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"false\" >\n <div class=\"ax-overlay-pane\" [class.ax-dropdown-list]=\"_needBorder\" >\n <ng-content select=\"[panel],ax-button-item\">\n </ng-content>\n </div>\n</ax-popover>","import { OverlayModule } from '@angular/cdk/overlay';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXPopoverModule } from '@acorex/components/popover';\nimport { AXDropdownPanelComponent } from './dropdown-panel.component';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { AXCommonModule } from '@acorex/components/common';\n\n@NgModule({\n imports: [CommonModule,AXCommonModule, A11yModule, AXButtonModule, OverlayModule, AXDecoratorModule, AXPopoverModule],\n exports: [AXDropdownPanelComponent],\n declarations: [AXDropdownPanelComponent],\n providers: [],\n})\nexport class AXDropdownModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAsBA,MAUa,wBAAyB,SAAQ,mBAAmB,CAAA;AAKtD,IAAA,OAAA,CAAA;AAJT,IAAA,WAAA,CACE,UAAsB,EACtB,GAAsB,EAEf,OAA2B,EAAA;AAElC,QAAA,KAAK,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;QAFhB,IAAO,CAAA,OAAA,GAAP,OAAO,CAAoB;QAGlC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,EAAE,cAAc,EAAE,CAAC;KAC/C;AAGD,IAAA,eAAe,CAAmC;AAGlD,IAAA,WAAW,GAAqC,IAAI,YAAY,EAAsB,CAAC;IAGvF,OAAO,GAAuB,IAAI,CAAC;IAEnC,WAAW,GAAY,KAAK,CAAC;IAC7B,KAAK,GAAmB,EAAE,CAAC;AAEnB,IAAA,OAAO,CAAc;AAC7B,IAAA,IACW,MAAM,GAAA;QACf,OAAO,IAAI,CAAC,OAAO,CAAC;KACrB;IACD,IAAW,MAAM,CAAC,CAAc,EAAA;AAC9B,QAAA,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;KAClB;IAED,UAAU,GAAA;QACR,KAAK,CAAC,UAAU,EAAE,CAAC;AACnB,QAAA,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,eAAe,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,IAAG;AACjD,YAAA,EAAE,CAAC,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EAAE,EAAE;AAChB,iBAAA,CAAA;;;ACfD;;AAEG;;;;"}
@@ -338,40 +338,40 @@ class AXValidationSummaryComponent extends AXBaseComponentMixin {
338
338
  this._content = '';
339
339
  }
340
340
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXValidationSummaryComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1.AXToastService }, { token: AXFormComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component });
341
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: AXValidationSummaryComponent, selector: "ax-validation-summary", inputs: { title: "title", displayMode: "displayMode", timeOut: "timeOut", autoHide: "autoHide" }, usesInheritance: true, ngImport: i0, template: `
342
- <ax-alert color="danger" *ngIf="displayMode=='alert' && _content" [timeOut]="_timeOut" #a (onClosed)="_handleOnDismissed($event)">
343
- <ax-icon></ax-icon>
344
- <ax-title>{{title}}</ax-title>
345
- <ax-content>
346
- <div [innerHTML]="_content">
347
- </div>
348
- </ax-content>
349
- <ax-footer>
350
- <ax-suffix>
351
- <ax-button text="Dismiss" (onClick)="a.close()"></ax-button>
352
- </ax-suffix>
353
- </ax-footer>
354
- </ax-alert>
341
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: AXValidationSummaryComponent, selector: "ax-validation-summary", inputs: { title: "title", displayMode: "displayMode", timeOut: "timeOut", autoHide: "autoHide" }, usesInheritance: true, ngImport: i0, template: `
342
+ <ax-alert color="danger" *ngIf="displayMode=='alert' && _content" [timeOut]="_timeOut" #a (onClosed)="_handleOnDismissed($event)">
343
+ <ax-icon></ax-icon>
344
+ <ax-title>{{title}}</ax-title>
345
+ <ax-content>
346
+ <div [innerHTML]="_content">
347
+ </div>
348
+ </ax-content>
349
+ <ax-footer>
350
+ <ax-suffix>
351
+ <ax-button text="Dismiss" (onClick)="a.close()"></ax-button>
352
+ </ax-suffix>
353
+ </ax-footer>
354
+ </ax-alert>
355
355
  `, isInline: true, dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.AXDecoratorSuffixComponent, selector: "ax-suffix" }, { kind: "component", type: i3.AXDecoratorContentComponent, selector: "ax-content" }, { kind: "component", type: i3.AXDecoratorFooterComponent, selector: "ax-footer" }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorTitleComponent, selector: "ax-title" }, { kind: "component", type: i4.AXAlertComponent, selector: "ax-alert", inputs: ["color", "timeOut", "visible"], outputs: ["onClosed"] }, { kind: "component", type: i5.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
356
356
  }
357
357
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXValidationSummaryComponent, decorators: [{
358
358
  type: Component,
359
359
  args: [{
360
360
  selector: 'ax-validation-summary',
361
- template: `
362
- <ax-alert color="danger" *ngIf="displayMode=='alert' && _content" [timeOut]="_timeOut" #a (onClosed)="_handleOnDismissed($event)">
363
- <ax-icon></ax-icon>
364
- <ax-title>{{title}}</ax-title>
365
- <ax-content>
366
- <div [innerHTML]="_content">
367
- </div>
368
- </ax-content>
369
- <ax-footer>
370
- <ax-suffix>
371
- <ax-button text="Dismiss" (onClick)="a.close()"></ax-button>
372
- </ax-suffix>
373
- </ax-footer>
374
- </ax-alert>
361
+ template: `
362
+ <ax-alert color="danger" *ngIf="displayMode=='alert' && _content" [timeOut]="_timeOut" #a (onClosed)="_handleOnDismissed($event)">
363
+ <ax-icon></ax-icon>
364
+ <ax-title>{{title}}</ax-title>
365
+ <ax-content>
366
+ <div [innerHTML]="_content">
367
+ </div>
368
+ </ax-content>
369
+ <ax-footer>
370
+ <ax-suffix>
371
+ <ax-button text="Dismiss" (onClick)="a.close()"></ax-button>
372
+ </ax-suffix>
373
+ </ax-footer>
374
+ </ax-alert>
375
375
  `,
376
376
  changeDetection: ChangeDetectionStrategy.OnPush,
377
377
  encapsulation: ViewEncapsulation.None
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-components-form.mjs","sources":["../../../../projects/acorex/components/form/src/form-field.component.ts","../../../../projects/acorex/components/form/src/form.component.ts","../../../../projects/acorex/components/form/src/validation-rule.widget.ts","../../../../projects/acorex/components/form/src/validation-summary.component.ts","../../../../projects/acorex/components/form/src/form.module.ts","../../../../projects/acorex/components/form/acorex-components-form.ts"],"sourcesContent":["import { AXValuableComponent } from '@acorex/components/common';\r\nimport { AXBaseComponentMixin } from '@acorex/components/mixin';\r\nimport {\r\n ChangeDetectionStrategy,\r\n ChangeDetectorRef,\r\n Component,\r\n ContentChild,\r\n ElementRef,\r\n ViewChild,\r\n ViewEncapsulation,\r\n} from '@angular/core';\r\n\r\n@Component({\r\n selector: 'ax-form-field',\r\n template: `<ng-content></ng-content>`,\r\n styleUrls: ['./form-field.component.scss'],\r\n host: { class: 'ax-form-field' },\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class AXFormFieldComponent extends AXBaseComponentMixin {\r\n constructor(elementRef: ElementRef, cdr: ChangeDetectorRef) {\r\n super(elementRef, cdr);\r\n }\r\n}\r\n","import {\r\n ChangeDetectionStrategy,\r\n ChangeDetectorRef,\r\n Component,\r\n ElementRef,\r\n EventEmitter,\r\n Input,\r\n Output,\r\n ViewEncapsulation,\r\n} from '@angular/core';\r\nimport { AXEvent } from '@acorex/components/common';\r\nimport { AXFormValidationResult } from './validation.class';\r\nimport { AXBaseComponentMixin } from '@acorex/components/mixin';\r\nimport { Subscription } from 'rxjs';\r\n\r\n/**\r\n * Contains native event\r\n * @category Events\r\n */\r\nexport class AXFormValidationEvent extends AXEvent {\r\n result: AXFormValidationResult;\r\n}\r\n\r\n/**\r\n * Contains native event\r\n * @category Events\r\n */\r\nexport type AXFormUpdateOn = 'change' | 'blur' | 'manual';\r\n\r\n/**\r\n * The Button is a component which detects user interaction and triggers a corresponding event\r\n *\r\n * @category Components\r\n */\r\n@Component({\r\n selector: 'ax-form',\r\n template:\r\n '<form (submit)=\"_handleSubmit($event)\" (reset)=\"_handleReset($event)\" class=\"ax-{{validationMessageMode}}-error\"><ng-content></ng-content></form>',\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class AXFormComponent extends AXBaseComponentMixin {\r\n @Input() validationMessageMode: 'normal' | 'tooltip' = 'normal';\r\n\r\n @Output()\r\n onValidate: EventEmitter<AXFormValidationEvent> =\r\n new EventEmitter<AXFormValidationEvent>();\r\n\r\n @Output()\r\n updateOnChange: EventEmitter<AXFormUpdateOn> =\r\n new EventEmitter<AXFormUpdateOn>();\r\n\r\n private _updateOn: AXFormUpdateOn = 'blur';\r\n @Input()\r\n public get updateOn(): AXFormUpdateOn {\r\n return this._updateOn;\r\n }\r\n public set updateOn(v: AXFormUpdateOn) {\r\n this._setOption({\r\n name: 'updateOn',\r\n value: v,\r\n afterCallback: (oldValue?, newValue?) => {\r\n this._bindEvents();\r\n },\r\n });\r\n }\r\n\r\n @Input()\r\n validateInitValues: boolean = false;\r\n\r\n private _observer: MutationObserver;\r\n private _subs: Subscription[] = [];\r\n\r\n /**\r\n * @ignore\r\n */\r\n constructor(elementRef: ElementRef, private cdr: ChangeDetectorRef) {\r\n super(elementRef, cdr);\r\n }\r\n\r\n _handleSubmit(e: SubmitEvent) {\r\n e.preventDefault();\r\n this.validate();\r\n }\r\n\r\n _handleReset(e: Event) {\r\n this.clear();\r\n }\r\n\r\n private _getComponenets() {\r\n return Array.from(\r\n this._getHostElement().querySelectorAll('[ax-form-input=\"true\"]')\r\n ).map(c => (c as any).__axContext__);\r\n }\r\n\r\n onViewInit(): void {\r\n if (this.validateInitValues) {\r\n this._validateInitValues();\r\n }\r\n this._bindEvents();\r\n\r\n const config = { attributes: false, childList: true, subtree: true };\r\n const callback = (mutationList, observer) => {\r\n this._bindEvents();\r\n };\r\n\r\n // Create an observer instance linked to the callback function\r\n this._observer = new MutationObserver(callback);\r\n this._observer.observe(this._getHostElement(), config);\r\n }\r\n\r\n private _bindEvents() {\r\n this._clearSubs();\r\n const widgets = this._getComponenets();\r\n //\r\n widgets.forEach(w => {\r\n if (this.updateOn == 'change') {\r\n this._subs.push(\r\n w.onValueChanged?.subscribe(v => {\r\n w.validate();\r\n })\r\n );\r\n } else if (this.updateOn == 'blur') {\r\n this._subs.push(\r\n w.onBlur?.subscribe(v => {\r\n w.validate();\r\n })\r\n );\r\n }\r\n });\r\n }\r\n\r\n private _clearSubs() {\r\n this._subs.forEach(c => c.unsubscribe());\r\n this._subs = [];\r\n }\r\n\r\n private _validateInitValues() {\r\n this._getComponenets()\r\n .filter(c => c['value'])\r\n .forEach(c => c.validate());\r\n }\r\n\r\n validate(...args: string[]): Promise<AXFormValidationResult> {\r\n const widgets = this._getComponenets();\r\n if (widgets.length === 0) {\r\n this._emitOnValidateEvent({ result: true });\r\n return Promise.resolve({ result: true });\r\n }\r\n //\r\n return new Promise<AXFormValidationResult>((resolve, reject) => {\r\n Promise.all(\r\n widgets\r\n .filter(\r\n c => args == null || args.length == 0 || args.includes(c.name)\r\n )\r\n .map(c => c.validate())\r\n ).then((rules: any) => {\r\n const failed = rules.filter((c: any) => !c.result);\r\n if (failed.length) {\r\n this._emitOnValidateEvent({\r\n result: false,\r\n items: failed,\r\n });\r\n resolve({\r\n result: false,\r\n items: failed,\r\n });\r\n } else {\r\n this._emitOnValidateEvent({ result: true });\r\n resolve({ result: true });\r\n }\r\n });\r\n });\r\n }\r\n\r\n private _emitOnValidateEvent(e: AXFormValidationResult) {\r\n this.onValidate.emit({\r\n component: this,\r\n result: e,\r\n htmlElement: this._getHostElement(),\r\n });\r\n }\r\n\r\n clear() {\r\n const widgets = this._getComponenets();\r\n widgets.forEach(w => {\r\n w.clear();\r\n });\r\n }\r\n\r\n onDestroy(): void {\r\n this._observer.disconnect();\r\n this._observer = null;\r\n this._clearSubs();\r\n }\r\n}\r\n","import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Input, ViewEncapsulation } from '@angular/core';\r\nimport { AXValidationRuleResult, AXValidationRule, AXValidationRuleTypes } from './validation.class';\r\nimport { AXConfig } from '@acorex/core/config';\r\nimport { AXTranslator } from '@acorex/core/translation';\r\nimport { AXBaseComponentMixin } from '@acorex/components/mixin';\r\n\r\n@Component({\r\n selector: 'ax-validation-rule',\r\n template: '',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\nexport class AXValidationRuleComponent extends AXBaseComponentMixin implements AXValidationRule {\r\n @Input()\r\n rule: AXValidationRuleTypes = 'required';\r\n\r\n @Input()\r\n message: string;\r\n\r\n @Input()\r\n showMessage: boolean = true;\r\n\r\n @Input()\r\n value: any;\r\n\r\n @Input()\r\n enabled: boolean = true;\r\n\r\n constructor(elementRef: ElementRef, cdr: ChangeDetectorRef) {\r\n super(elementRef, cdr);\r\n }\r\n\r\n onInit() {\r\n (this._getHostElement() as any).validate = this.validate.bind(this);\r\n }\r\n\r\n validate(value: any): Promise<AXValidationRuleResult> {\r\n if (this.enabled === false) {\r\n return Promise.resolve({ result: true });\r\n }\r\n if (this.rule == 'custom') {\r\n const regRule = AXConfig.get(`form.validation.rules.${this.value}`);\r\n if (regRule) {\r\n return this._internalValidate(regRule.rule, value, this.message || regRule.message, regRule.value);\r\n }\r\n }\r\n return this._internalValidate(this.rule, value, this.message, this.value);\r\n }\r\n\r\n private _internalValidate(type: string, value?: any, message?: string, ruleValue?: any): Promise<AXValidationRuleResult> {\r\n return new Promise<AXValidationRuleResult>(resolve => {\r\n switch (type) {\r\n case 'required':\r\n resolve({\r\n message: this.showMessage ? message || AXTranslator.get('validation.messages.required') : '',\r\n result: !this._isNullOrEmpty(value),\r\n });\r\n break;\r\n case 'regex':\r\n const ex = new RegExp(ruleValue);\r\n resolve({\r\n message: this.showMessage ? message || AXTranslator.get('validation.messages.regex') : '',\r\n result: ex.test(value),\r\n });\r\n break;\r\n case 'callback':\r\n if (typeof ruleValue === 'function') {\r\n const res: any = {};\r\n res.message = this.showMessage ? message : null;\r\n const val = ruleValue({ value, message });\r\n if (val instanceof Promise) {\r\n val\r\n .then(c => {\r\n res.result = c;\r\n })\r\n .catch(c => {\r\n res.result = false;\r\n })\r\n .finally(() => {\r\n resolve(res);\r\n });\r\n } else {\r\n res.result = val;\r\n resolve(res);\r\n }\r\n } else {\r\n resolve({\r\n message: AXTranslator.get('validation.messages.invalid-rull-fn'),\r\n result: false,\r\n });\r\n }\r\n break;\r\n default:\r\n resolve({\r\n message: AXTranslator.get('validation.messages.invalid-rull-name'),\r\n result: false,\r\n });\r\n }\r\n });\r\n }\r\n\r\n private _isNullOrEmpty(value: any): boolean {\r\n return (\r\n value === undefined ||\r\n value === null ||\r\n Number.isNaN(value) ||\r\n //(typeof value === 'object' && Object.keys(value).length === 0) ||\r\n (Array.isArray(value) && value.length == 0) ||\r\n (typeof value === 'string' && value.trim().length === 0)\r\n );\r\n }\r\n}\r\n","import { AXTranslator } from \"@acorex/core/translation\";\r\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Inject, Input, Optional, ViewEncapsulation } from \"@angular/core\";\r\nimport { AXEvent } from \"@acorex/components/common\";\r\nimport { AXToastService } from \"@acorex/components/toast\";\r\nimport { AXFormComponent } from \"./form.component\";\r\nimport { AXBaseComponentMixin } from \"@acorex/components/mixin\";\r\n\r\n\r\nexport type AXValidationSummaryDisplayMode = 'toast' | 'alert'\r\n\r\n@Component({\r\n selector: 'ax-validation-summary',\r\n template: `\r\n <ax-alert color=\"danger\" *ngIf=\"displayMode=='alert' && _content\" [timeOut]=\"_timeOut\" #a (onClosed)=\"_handleOnDismissed($event)\">\r\n <ax-icon></ax-icon>\r\n <ax-title>{{title}}</ax-title>\r\n <ax-content>\r\n <div [innerHTML]=\"_content\">\r\n </div>\r\n </ax-content>\r\n <ax-footer>\r\n <ax-suffix>\r\n <ax-button text=\"Dismiss\" (onClick)=\"a.close()\"></ax-button>\r\n </ax-suffix>\r\n </ax-footer>\r\n </ax-alert>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None\r\n})\r\nexport class AXValidationSummaryComponent extends AXBaseComponentMixin {\r\n\r\n _content?: string = '';\r\n\r\n private _title: string = AXTranslator.get('validation.messages.title');\r\n\r\n @Input()\r\n public get title(): string {\r\n return this._title;\r\n }\r\n public set title(v: string) {\r\n this._title = v;\r\n }\r\n\r\n\r\n @Input()\r\n displayMode: AXValidationSummaryDisplayMode = 'toast';\r\n\r\n @Input()\r\n timeOut?: number;\r\n\r\n @Input()\r\n autoHide: boolean = false;\r\n\r\n _timeOut: number;\r\n\r\n constructor(\r\n _elementRef: ElementRef,\r\n _cdr: ChangeDetectorRef,\r\n private _tosatService: AXToastService,\r\n @Optional()\r\n @Inject(AXFormComponent)\r\n private _parent: AXFormComponent\r\n ) {\r\n super(_elementRef, _cdr);\r\n //\r\n _parent.onValidate.subscribe((c: any) => {\r\n if (!c.result.result) {\r\n this._content = `<ul>${c.result.items.map(c => `<li>${c.message}</li>`).join('')}</ul>`;\r\n this._timeOut = this.autoHide ? (this.timeOut ?? Math.max(c.result.items.length * 1500, 2000)) : 0;\r\n //\r\n if (this.displayMode == 'toast') {\r\n this._tosatService.show({\r\n color: 'danger',\r\n closeable: true,\r\n timeOut: this._timeOut,\r\n content: this._content,\r\n title: this.title\r\n });\r\n }\r\n }\r\n else {\r\n this._content = '';\r\n }\r\n _cdr.markForCheck();\r\n });\r\n }\r\n\r\n _handleOnDismissed(e: AXEvent) {\r\n this._content = '';\r\n }\r\n}","import { AXAlertModule } from '@acorex/components/alert';\r\nimport { AXButtonModule } from '@acorex/components/button';\r\nimport { AXDecoratorModule } from '@acorex/components/decorators';\r\nimport { AXConfig } from '@acorex/core/config';\r\nimport { AXTranslator } from '@acorex/core/translation';\r\nimport { CommonModule } from '@angular/common';\r\nimport { NgModule } from '@angular/core';\r\n\r\nimport { AXFormFieldComponent } from './form-field.component';\r\nimport { AXFormComponent } from './form.component';\r\nimport { AXValidationRuleComponent } from './validation-rule.widget';\r\nimport { AXValidationSummaryComponent } from './validation-summary.component';\r\n\r\n@NgModule({\r\n declarations: [\r\n AXFormFieldComponent,\r\n AXFormComponent,\r\n AXValidationRuleComponent,\r\n AXValidationSummaryComponent,\r\n ],\r\n imports: [CommonModule, AXDecoratorModule, AXAlertModule, AXButtonModule],\r\n exports: [\r\n AXFormFieldComponent,\r\n AXFormComponent,\r\n AXValidationRuleComponent,\r\n AXValidationSummaryComponent,\r\n ],\r\n providers: [],\r\n})\r\nexport class AXFormModule {\r\n constructor() {\r\n AXConfig.set({\r\n form: {\r\n validation: {\r\n rules: {\r\n email: {\r\n rule: 'regex',\r\n value:\r\n /^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/,\r\n message: AXTranslator.get('validation.messages.email'),\r\n },\r\n phone: {\r\n rule: 'regex',\r\n value: /^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\\s\\./0-9]*$/,\r\n message: AXTranslator.get('validation.messages.phone'),\r\n },\r\n },\r\n },\r\n },\r\n });\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAYA,MAQa,oBAAqB,SA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EAAA,YAAY,iBAdrB,oBAAoB;YACpB,eAAe;YACf,yBAAyB;YACzB,4BAA4B,CAAA,EAAA,OAAA,EAAA,CAEpB,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAE,cAAc,CAAA,EAAA,OAAA,EAAA,CAEtE,oBAAoB;YACpB,eAAe;YACf,yBAAyB;YACzB,4BAA4B,CAAA,EAAA,CAAA,CAAA;AAInB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,YATb,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAE,cAAc,CAAA,EAAA,CAAA,CAAA;;2FAS7D,YAAY,EAAA,UAAA,EAAA,CAAA;kBAhBxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,oBAAoB;wBACpB,eAAe;wBACf,yBAAyB;wBACzB,4BAA4B;AAC7B,qBAAA;oBACD,OAAO,EAAE,CAAC,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAE,cAAc,CAAC;AACzE,oBAAA,OAAO,EAAE;wBACP,oBAAoB;wBACpB,eAAe;wBACf,yBAAyB;wBACzB,4BAA4B;AAC7B,qBAAA;AACD,oBAAA,SAAS,EAAE,EAAE;AACd,iBAAA,CAAA;;;AC5BD;;AAEG;;;;"}
1
+ {"version":3,"file":"acorex-components-form.mjs","sources":["../../../../projects/acorex/components/form/src/form-field.component.ts","../../../../projects/acorex/components/form/src/form.component.ts","../../../../projects/acorex/components/form/src/validation-rule.widget.ts","../../../../projects/acorex/components/form/src/validation-summary.component.ts","../../../../projects/acorex/components/form/src/form.module.ts","../../../../projects/acorex/components/form/acorex-components-form.ts"],"sourcesContent":["import { AXValuableComponent } from '@acorex/components/common';\nimport { AXBaseComponentMixin } from '@acorex/components/mixin';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChild,\n ElementRef,\n ViewChild,\n ViewEncapsulation,\n} from '@angular/core';\n\n@Component({\n selector: 'ax-form-field',\n template: `<ng-content></ng-content>`,\n styleUrls: ['./form-field.component.scss'],\n host: { class: 'ax-form-field' },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AXFormFieldComponent extends AXBaseComponentMixin {\n constructor(elementRef: ElementRef, cdr: ChangeDetectorRef) {\n super(elementRef, cdr);\n }\n}\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n EventEmitter,\n Input,\n Output,\n ViewEncapsulation,\n} from '@angular/core';\nimport { AXEvent } from '@acorex/components/common';\nimport { AXFormValidationResult } from './validation.class';\nimport { AXBaseComponentMixin } from '@acorex/components/mixin';\nimport { Subscription } from 'rxjs';\n\n/**\n * Contains native event\n * @category Events\n */\nexport class AXFormValidationEvent extends AXEvent {\n result: AXFormValidationResult;\n}\n\n/**\n * Contains native event\n * @category Events\n */\nexport type AXFormUpdateOn = 'change' | 'blur' | 'manual';\n\n/**\n * The Button is a component which detects user interaction and triggers a corresponding event\n *\n * @category Components\n */\n@Component({\n selector: 'ax-form',\n template:\n '<form (submit)=\"_handleSubmit($event)\" (reset)=\"_handleReset($event)\" class=\"ax-{{validationMessageMode}}-error\"><ng-content></ng-content></form>',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AXFormComponent extends AXBaseComponentMixin {\n @Input() validationMessageMode: 'normal' | 'tooltip' = 'normal';\n\n @Output()\n onValidate: EventEmitter<AXFormValidationEvent> =\n new EventEmitter<AXFormValidationEvent>();\n\n @Output()\n updateOnChange: EventEmitter<AXFormUpdateOn> =\n new EventEmitter<AXFormUpdateOn>();\n\n private _updateOn: AXFormUpdateOn = 'blur';\n @Input()\n public get updateOn(): AXFormUpdateOn {\n return this._updateOn;\n }\n public set updateOn(v: AXFormUpdateOn) {\n this._setOption({\n name: 'updateOn',\n value: v,\n afterCallback: (oldValue?, newValue?) => {\n this._bindEvents();\n },\n });\n }\n\n @Input()\n validateInitValues: boolean = false;\n\n private _observer: MutationObserver;\n private _subs: Subscription[] = [];\n\n /**\n * @ignore\n */\n constructor(elementRef: ElementRef, private cdr: ChangeDetectorRef) {\n super(elementRef, cdr);\n }\n\n _handleSubmit(e: SubmitEvent) {\n e.preventDefault();\n this.validate();\n }\n\n _handleReset(e: Event) {\n this.clear();\n }\n\n private _getComponenets() {\n return Array.from(\n this._getHostElement().querySelectorAll('[ax-form-input=\"true\"]')\n ).map(c => (c as any).__axContext__);\n }\n\n onViewInit(): void {\n if (this.validateInitValues) {\n this._validateInitValues();\n }\n this._bindEvents();\n\n const config = { attributes: false, childList: true, subtree: true };\n const callback = (mutationList, observer) => {\n this._bindEvents();\n };\n\n // Create an observer instance linked to the callback function\n this._observer = new MutationObserver(callback);\n this._observer.observe(this._getHostElement(), config);\n }\n\n private _bindEvents() {\n this._clearSubs();\n const widgets = this._getComponenets();\n //\n widgets.forEach(w => {\n if (this.updateOn == 'change') {\n this._subs.push(\n w.onValueChanged?.subscribe(v => {\n w.validate();\n })\n );\n } else if (this.updateOn == 'blur') {\n this._subs.push(\n w.onBlur?.subscribe(v => {\n w.validate();\n })\n );\n }\n });\n }\n\n private _clearSubs() {\n this._subs.forEach(c => c.unsubscribe());\n this._subs = [];\n }\n\n private _validateInitValues() {\n this._getComponenets()\n .filter(c => c['value'])\n .forEach(c => c.validate());\n }\n\n validate(...args: string[]): Promise<AXFormValidationResult> {\n const widgets = this._getComponenets();\n if (widgets.length === 0) {\n this._emitOnValidateEvent({ result: true });\n return Promise.resolve({ result: true });\n }\n //\n return new Promise<AXFormValidationResult>((resolve, reject) => {\n Promise.all(\n widgets\n .filter(\n c => args == null || args.length == 0 || args.includes(c.name)\n )\n .map(c => c.validate())\n ).then((rules: any) => {\n const failed = rules.filter((c: any) => !c.result);\n if (failed.length) {\n this._emitOnValidateEvent({\n result: false,\n items: failed,\n });\n resolve({\n result: false,\n items: failed,\n });\n } else {\n this._emitOnValidateEvent({ result: true });\n resolve({ result: true });\n }\n });\n });\n }\n\n private _emitOnValidateEvent(e: AXFormValidationResult) {\n this.onValidate.emit({\n component: this,\n result: e,\n htmlElement: this._getHostElement(),\n });\n }\n\n clear() {\n const widgets = this._getComponenets();\n widgets.forEach(w => {\n w.clear();\n });\n }\n\n onDestroy(): void {\n this._observer.disconnect();\n this._observer = null;\n this._clearSubs();\n }\n}\n","import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Input, ViewEncapsulation } from '@angular/core';\nimport { AXValidationRuleResult, AXValidationRule, AXValidationRuleTypes } from './validation.class';\nimport { AXConfig } from '@acorex/core/config';\nimport { AXTranslator } from '@acorex/core/translation';\nimport { AXBaseComponentMixin } from '@acorex/components/mixin';\n\n@Component({\n selector: 'ax-validation-rule',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXValidationRuleComponent extends AXBaseComponentMixin implements AXValidationRule {\n @Input()\n rule: AXValidationRuleTypes = 'required';\n\n @Input()\n message: string;\n\n @Input()\n showMessage: boolean = true;\n\n @Input()\n value: any;\n\n @Input()\n enabled: boolean = true;\n\n constructor(elementRef: ElementRef, cdr: ChangeDetectorRef) {\n super(elementRef, cdr);\n }\n\n onInit() {\n (this._getHostElement() as any).validate = this.validate.bind(this);\n }\n\n validate(value: any): Promise<AXValidationRuleResult> {\n if (this.enabled === false) {\n return Promise.resolve({ result: true });\n }\n if (this.rule == 'custom') {\n const regRule = AXConfig.get(`form.validation.rules.${this.value}`);\n if (regRule) {\n return this._internalValidate(regRule.rule, value, this.message || regRule.message, regRule.value);\n }\n }\n return this._internalValidate(this.rule, value, this.message, this.value);\n }\n\n private _internalValidate(type: string, value?: any, message?: string, ruleValue?: any): Promise<AXValidationRuleResult> {\n return new Promise<AXValidationRuleResult>(resolve => {\n switch (type) {\n case 'required':\n resolve({\n message: this.showMessage ? message || AXTranslator.get('validation.messages.required') : '',\n result: !this._isNullOrEmpty(value),\n });\n break;\n case 'regex':\n const ex = new RegExp(ruleValue);\n resolve({\n message: this.showMessage ? message || AXTranslator.get('validation.messages.regex') : '',\n result: ex.test(value),\n });\n break;\n case 'callback':\n if (typeof ruleValue === 'function') {\n const res: any = {};\n res.message = this.showMessage ? message : null;\n const val = ruleValue({ value, message });\n if (val instanceof Promise) {\n val\n .then(c => {\n res.result = c;\n })\n .catch(c => {\n res.result = false;\n })\n .finally(() => {\n resolve(res);\n });\n } else {\n res.result = val;\n resolve(res);\n }\n } else {\n resolve({\n message: AXTranslator.get('validation.messages.invalid-rull-fn'),\n result: false,\n });\n }\n break;\n default:\n resolve({\n message: AXTranslator.get('validation.messages.invalid-rull-name'),\n result: false,\n });\n }\n });\n }\n\n private _isNullOrEmpty(value: any): boolean {\n return (\n value === undefined ||\n value === null ||\n Number.isNaN(value) ||\n //(typeof value === 'object' && Object.keys(value).length === 0) ||\n (Array.isArray(value) && value.length == 0) ||\n (typeof value === 'string' && value.trim().length === 0)\n );\n }\n}\n","import { AXTranslator } from \"@acorex/core/translation\";\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Inject, Input, Optional, ViewEncapsulation } from \"@angular/core\";\nimport { AXEvent } from \"@acorex/components/common\";\nimport { AXToastService } from \"@acorex/components/toast\";\nimport { AXFormComponent } from \"./form.component\";\nimport { AXBaseComponentMixin } from \"@acorex/components/mixin\";\n\n\nexport type AXValidationSummaryDisplayMode = 'toast' | 'alert'\n\n@Component({\n selector: 'ax-validation-summary',\n template: `\n <ax-alert color=\"danger\" *ngIf=\"displayMode=='alert' && _content\" [timeOut]=\"_timeOut\" #a (onClosed)=\"_handleOnDismissed($event)\">\n <ax-icon></ax-icon>\n <ax-title>{{title}}</ax-title>\n <ax-content>\n <div [innerHTML]=\"_content\">\n </div>\n </ax-content>\n <ax-footer>\n <ax-suffix>\n <ax-button text=\"Dismiss\" (onClick)=\"a.close()\"></ax-button>\n </ax-suffix>\n </ax-footer>\n </ax-alert>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None\n})\nexport class AXValidationSummaryComponent extends AXBaseComponentMixin {\n\n _content?: string = '';\n\n private _title: string = AXTranslator.get('validation.messages.title');\n\n @Input()\n public get title(): string {\n return this._title;\n }\n public set title(v: string) {\n this._title = v;\n }\n\n\n @Input()\n displayMode: AXValidationSummaryDisplayMode = 'toast';\n\n @Input()\n timeOut?: number;\n\n @Input()\n autoHide: boolean = false;\n\n _timeOut: number;\n\n constructor(\n _elementRef: ElementRef,\n _cdr: ChangeDetectorRef,\n private _tosatService: AXToastService,\n @Optional()\n @Inject(AXFormComponent)\n private _parent: AXFormComponent\n ) {\n super(_elementRef, _cdr);\n //\n _parent.onValidate.subscribe((c: any) => {\n if (!c.result.result) {\n this._content = `<ul>${c.result.items.map(c => `<li>${c.message}</li>`).join('')}</ul>`;\n this._timeOut = this.autoHide ? (this.timeOut ?? Math.max(c.result.items.length * 1500, 2000)) : 0;\n //\n if (this.displayMode == 'toast') {\n this._tosatService.show({\n color: 'danger',\n closeable: true,\n timeOut: this._timeOut,\n content: this._content,\n title: this.title\n });\n }\n }\n else {\n this._content = '';\n }\n _cdr.markForCheck();\n });\n }\n\n _handleOnDismissed(e: AXEvent) {\n this._content = '';\n }\n}","import { AXAlertModule } from '@acorex/components/alert';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXConfig } from '@acorex/core/config';\nimport { AXTranslator } from '@acorex/core/translation';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { AXFormFieldComponent } from './form-field.component';\nimport { AXFormComponent } from './form.component';\nimport { AXValidationRuleComponent } from './validation-rule.widget';\nimport { AXValidationSummaryComponent } from './validation-summary.component';\n\n@NgModule({\n declarations: [\n AXFormFieldComponent,\n AXFormComponent,\n AXValidationRuleComponent,\n AXValidationSummaryComponent,\n ],\n imports: [CommonModule, AXDecoratorModule, AXAlertModule, AXButtonModule],\n exports: [\n AXFormFieldComponent,\n AXFormComponent,\n AXValidationRuleComponent,\n AXValidationSummaryComponent,\n ],\n providers: [],\n})\nexport class AXFormModule {\n constructor() {\n AXConfig.set({\n form: {\n validation: {\n rules: {\n email: {\n rule: 'regex',\n value:\n /^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/,\n message: AXTranslator.get('validation.messages.email'),\n },\n phone: {\n rule: 'regex',\n value: /^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\\s\\./0-9]*$/,\n message: AXTranslator.get('validation.messages.phone'),\n },\n },\n },\n },\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAYA,MAQa,oBAAqB,SAAQ,oBAAoB,CAAA;IAC5D,WAAY,CAAA,UAAsB,EAAE,GAAsB,EAAA;AACxD,QAAA,KAAK,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;KACxB;uGAHU,oBAAoB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,iBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAApB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,oBAAoB,uHANrB,CAA2B,yBAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAA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