@acorex/components 7.5.0 → 7.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (452) hide show
  1. package/action-sheet/index.d.ts +1 -1
  2. package/action-sheet/lib/action-sheet.component.d.ts +3 -3
  3. package/avatar/index.d.ts +1 -1
  4. package/badge/lib/badge.component.d.ts +3 -3
  5. package/breadcrumbs/index.d.ts +2 -2
  6. package/breadcrumbs/lib/breadcrumbs-item.component.d.ts +1 -1
  7. package/button/lib/button-item.class.d.ts +1 -1
  8. package/button/lib/button-item.component.d.ts +3 -1
  9. package/button/lib/button.component.d.ts +1 -1
  10. package/calendar/lib/calendar.class.d.ts +1 -1
  11. package/calendar/lib/calendar.component.d.ts +6 -4
  12. package/chips/lib/chips.component.d.ts +1 -1
  13. package/collapse/lib/collapse-group.component.d.ts +9 -6
  14. package/collapse/lib/collapse.component.d.ts +21 -8
  15. package/collapse/lib/collapse.module.d.ts +2 -1
  16. package/color-box/lib/color-box.component.d.ts +2 -2
  17. package/color-palette/lib/color-palette-input.component.d.ts +3 -3
  18. package/color-palette/lib/color-palette-picker.component.d.ts +1 -1
  19. package/color-palette/lib/color-palette.class.d.ts +4 -4
  20. package/common/index.d.ts +1 -1
  21. package/common/lib/classes/datasource.class.d.ts +55 -0
  22. package/common/lib/classes/styles.class.d.ts +2 -3
  23. package/common/lib/components/colorlook-component.class.d.ts +2 -2
  24. package/common/lib/components/input-base-value-component.class.d.ts +12 -12
  25. package/common/lib/components/interactive-component.class.d.ts +1 -7
  26. package/common/lib/components/selection-base.component.class.d.ts +5 -6
  27. package/common/lib/directives/delayed-value-changed.directive.d.ts +5 -5
  28. package/common/lib/directives/hotkey.directive.d.ts +2 -2
  29. package/common/lib/directives/responsive.directive.d.ts +1 -1
  30. package/common/lib/directives/ripple.directive.d.ts +2 -1
  31. package/data-table/lib/data-table.component.d.ts +2 -2
  32. package/datetime-box/lib/datetime-box.component.d.ts +4 -3
  33. package/datetime-input/lib/datetime-input.component.d.ts +2 -1
  34. package/datetime-picker/index.d.ts +1 -1
  35. package/datetime-picker/lib/datetime-picker.component.d.ts +1 -2
  36. package/dropdown/lib/dropdown-box.component.d.ts +5 -3
  37. package/dropdown/lib/dropdown-panel.component.d.ts +1 -0
  38. package/esm2022/action-sheet/index.mjs +2 -2
  39. package/esm2022/action-sheet/lib/action-sheet.class.mjs +1 -1
  40. package/esm2022/action-sheet/lib/action-sheet.component.mjs +22 -14
  41. package/esm2022/action-sheet/lib/action-sheet.module.mjs +3 -3
  42. package/esm2022/action-sheet/lib/action-sheet.service.mjs +5 -5
  43. package/esm2022/alert/lib/alert.component.mjs +4 -5
  44. package/esm2022/avatar/index.mjs +2 -2
  45. package/esm2022/avatar/lib/avatar-group.component.mjs +1 -1
  46. package/esm2022/avatar/lib/avatar.component.mjs +4 -4
  47. package/esm2022/badge/lib/badge.component.mjs +6 -6
  48. package/esm2022/badge/lib/badge.module.mjs +2 -2
  49. package/esm2022/breadcrumbs/index.mjs +3 -3
  50. package/esm2022/breadcrumbs/lib/breadcrumbs-item.class.mjs +1 -1
  51. package/esm2022/breadcrumbs/lib/breadcrumbs-item.component.mjs +2 -2
  52. package/esm2022/breadcrumbs/lib/breadcrumbs.component.mjs +1 -1
  53. package/esm2022/breadcrumbs/lib/breadcrumbs.module.mjs +3 -3
  54. package/esm2022/button/lib/button-item.class.mjs +1 -1
  55. package/esm2022/button/lib/button-item.component.mjs +12 -3
  56. package/esm2022/button/lib/button.component.mjs +3 -3
  57. package/esm2022/button-group/lib/button-group.component.mjs +3 -3
  58. package/esm2022/button-group/lib/button-group.module.mjs +2 -2
  59. package/esm2022/calendar/lib/calendar-range.component.mjs +4 -7
  60. package/esm2022/calendar/lib/calendar.class.mjs +3 -68
  61. package/esm2022/calendar/lib/calendar.component.mjs +53 -43
  62. package/esm2022/calendar/lib/calendar.module.mjs +4 -4
  63. package/esm2022/check-box/lib/check-box.component.mjs +9 -9
  64. package/esm2022/check-box/lib/check-box.module.mjs +3 -3
  65. package/esm2022/chips/lib/chips.component.mjs +6 -6
  66. package/esm2022/chips/lib/chips.module.mjs +2 -2
  67. package/esm2022/collapse/lib/collapse-group.component.mjs +23 -14
  68. package/esm2022/collapse/lib/collapse.component.mjs +68 -20
  69. package/esm2022/collapse/lib/collapse.module.mjs +7 -6
  70. package/esm2022/color-box/lib/color-box.component.mjs +7 -7
  71. package/esm2022/color-box/lib/color-box.module.mjs +4 -4
  72. package/esm2022/color-palette/lib/color-palette-input.component.mjs +10 -14
  73. package/esm2022/color-palette/lib/color-palette-picker.component.mjs +29 -31
  74. package/esm2022/color-palette/lib/color-palette-preview.component.mjs +8 -16
  75. package/esm2022/color-palette/lib/color-palette-swatches.component.mjs +5 -5
  76. package/esm2022/color-palette/lib/color-palette.class.mjs +2 -2
  77. package/esm2022/color-palette/lib/color-palette.component.mjs +14 -6
  78. package/esm2022/color-palette/lib/color-palette.module.mjs +12 -12
  79. package/esm2022/common/index.mjs +2 -2
  80. package/esm2022/common/lib/classes/components.class.mjs +1 -1
  81. package/esm2022/common/lib/classes/datalist.class.mjs +1 -53
  82. package/esm2022/common/lib/classes/datasource.class.mjs +106 -0
  83. package/esm2022/common/lib/classes/styles.class.mjs +2 -10
  84. package/esm2022/common/lib/common.module.mjs +4 -2
  85. package/esm2022/common/lib/components/button-base-component.class.mjs +4 -4
  86. package/esm2022/common/lib/components/color-component.class.mjs +2 -2
  87. package/esm2022/common/lib/components/colorlook-component.class.mjs +4 -4
  88. package/esm2022/common/lib/components/input-base-value-component.class.mjs +15 -15
  89. package/esm2022/common/lib/components/interactive-component.class.mjs +13 -13
  90. package/esm2022/common/lib/components/look-component.class.mjs +2 -2
  91. package/esm2022/common/lib/components/selection-base.component.class.mjs +63 -29
  92. package/esm2022/common/lib/components/value-component.class.mjs +3 -3
  93. package/esm2022/common/lib/directives/auto-focus.directive.mjs +4 -12
  94. package/esm2022/common/lib/directives/delayed-value-changed.directive.mjs +16 -14
  95. package/esm2022/common/lib/directives/hotkey.directive.mjs +14 -15
  96. package/esm2022/common/lib/directives/infinite-scroll.directive.mjs +7 -9
  97. package/esm2022/common/lib/directives/responsive.directive.mjs +12 -10
  98. package/esm2022/common/lib/directives/ripple.directive.mjs +14 -8
  99. package/esm2022/common/lib/services/dom.service.mjs +2 -2
  100. package/esm2022/common/lib/services/hotkey.service.mjs +4 -5
  101. package/esm2022/common/lib/types/direction.mjs +1 -1
  102. package/esm2022/common/lib/types/orientation.mjs +1 -1
  103. package/esm2022/common/lib/types/placement.mjs +23 -23
  104. package/esm2022/common/lib/types/range.mjs +1 -1
  105. package/esm2022/data-pager/lib/data-pager-info.component.mjs +3 -3
  106. package/esm2022/data-pager/lib/data-pager-input-selector.component.mjs +1 -1
  107. package/esm2022/data-pager/lib/data-pager-next-buttons.components.mjs +21 -8
  108. package/esm2022/data-pager/lib/data-pager-numeric-selector.component.mjs +3 -3
  109. package/esm2022/data-pager/lib/data-pager-pagesize-dropdown.component.mjs +17 -5
  110. package/esm2022/data-pager/lib/data-pager-prev-buttons.component.mjs +19 -7
  111. package/esm2022/data-pager/lib/data-pager.component.mjs +2 -2
  112. package/esm2022/data-pager/lib/data-pager.module.mjs +30 -16
  113. package/esm2022/data-table/lib/data-column.directive.mjs +2 -2
  114. package/esm2022/data-table/lib/data-table.component.mjs +2 -2
  115. package/esm2022/data-table/lib/data-table.module.mjs +7 -7
  116. package/esm2022/datetime-box/lib/datetime-box.component.mjs +10 -7
  117. package/esm2022/datetime-box/lib/datetime-box.module.mjs +7 -7
  118. package/esm2022/datetime-input/lib/datetime-input.component.mjs +144 -137
  119. package/esm2022/datetime-input/lib/datetime-input.module.mjs +4 -4
  120. package/esm2022/datetime-picker/index.mjs +2 -2
  121. package/esm2022/datetime-picker/lib/datetime-picker.component.mjs +4 -4
  122. package/esm2022/datetime-picker/lib/datetime-picker.config.mjs +4 -4
  123. package/esm2022/decorators/lib/components/clear-button.component.mjs +2 -2
  124. package/esm2022/decorators/lib/components/close-button.component.mjs +8 -4
  125. package/esm2022/decorators/lib/components/generic-content.component.mjs +1 -1
  126. package/esm2022/decorators/lib/components/icon.component.mjs +2 -2
  127. package/esm2022/dialog/lib/dialog.component.mjs +3 -3
  128. package/esm2022/dialog/lib/dialog.module.mjs +26 -10
  129. package/esm2022/drawer/lib/drawer-container.component.mjs +2 -2
  130. package/esm2022/drawer/lib/drawer.component.mjs +2 -2
  131. package/esm2022/drawer/lib/drawer.module.mjs +3 -3
  132. package/esm2022/dropdown/lib/dropdown-box.class.mjs +1 -1
  133. package/esm2022/dropdown/lib/dropdown-box.component.mjs +14 -11
  134. package/esm2022/dropdown/lib/dropdown-panel.component.mjs +5 -4
  135. package/esm2022/dropdown/lib/dropdown.module.mjs +29 -9
  136. package/esm2022/form/index.mjs +2 -2
  137. package/esm2022/form/lib/form-field.component.mjs +4 -4
  138. package/esm2022/form/lib/form.component.mjs +3 -4
  139. package/esm2022/form/lib/form.config.mjs +6 -6
  140. package/esm2022/form/lib/form.module.mjs +3 -11
  141. package/esm2022/form/lib/validation-summary.component.mjs +40 -30
  142. package/esm2022/form/lib/validation.class.mjs +1 -1
  143. package/esm2022/image/lib/image.component.mjs +1 -1
  144. package/esm2022/image/lib/image.module.mjs +2 -2
  145. package/esm2022/label/lib/label.component.mjs +4 -8
  146. package/esm2022/label/lib/label.module.mjs +2 -2
  147. package/esm2022/list/lib/list.component.mjs +77 -80
  148. package/esm2022/list/lib/list.module.mjs +3 -3
  149. package/esm2022/loading/index.mjs +2 -2
  150. package/esm2022/loading/lib/loading-spinner.component.mjs +13 -7
  151. package/esm2022/loading/lib/loading.component.mjs +8 -16
  152. package/esm2022/loading/lib/loading.config.mjs +2 -2
  153. package/esm2022/loading/lib/loading.directive.mjs +2 -2
  154. package/esm2022/menu/index.mjs +1 -2
  155. package/esm2022/menu/lib/class/root-menu.class.mjs +1 -1
  156. package/esm2022/menu/lib/menu-item/menu-item.component.mjs +60 -19
  157. package/esm2022/menu/lib/menu.component.mjs +37 -342
  158. package/esm2022/menu/lib/menu.module.mjs +3 -4
  159. package/esm2022/mixin/lib/base-components.class.mjs +2 -3
  160. package/esm2022/mixin/lib/base-menu-mixin.class.mjs +1 -1
  161. package/esm2022/mixin/lib/button-mixin.class.mjs +1 -1
  162. package/esm2022/mixin/lib/clickable-mixin.class.mjs +8 -8
  163. package/esm2022/mixin/lib/color-look-mixing.class.mjs +3 -3
  164. package/esm2022/mixin/lib/constratctor.mjs +1 -1
  165. package/esm2022/mixin/lib/datalist-component.class.mjs +3 -5
  166. package/esm2022/mixin/lib/datalist.class.mjs +5 -6
  167. package/esm2022/mixin/lib/dropdown-mixin.class.mjs +2 -4
  168. package/esm2022/mixin/lib/interactive-mixin.class.mjs +29 -28
  169. package/esm2022/mixin/lib/mixin.class.mjs +13 -13
  170. package/esm2022/mixin/lib/page-component.class.mjs +3 -3
  171. package/esm2022/mixin/lib/selection-component.class.mjs +1 -1
  172. package/esm2022/mixin/lib/textbox-mixin.class.mjs +29 -20
  173. package/esm2022/mixin/lib/value-mixin.class.mjs +1 -1
  174. package/esm2022/notification/index.mjs +2 -2
  175. package/esm2022/notification/lib/notification.class.mjs +1 -1
  176. package/esm2022/notification/lib/notification.component.mjs +2 -2
  177. package/esm2022/notification/lib/notification.config.mjs +1 -1
  178. package/esm2022/notification/lib/notification.module.mjs +21 -9
  179. package/esm2022/notification/lib/notification.service.mjs +11 -11
  180. package/esm2022/number-box/lib/number-box.component.mjs +6 -6
  181. package/esm2022/number-box/lib/number-box.module.mjs +6 -16
  182. package/esm2022/otp/lib/otp.component.mjs +6 -5
  183. package/esm2022/otp/lib/otp.module.mjs +5 -4
  184. package/esm2022/page/lib/base-page.class.mjs +6 -4
  185. package/esm2022/page/lib/page.component.mjs +3 -3
  186. package/esm2022/page/lib/page.module.mjs +1 -1
  187. package/esm2022/password-box/lib/password-box.component.mjs +6 -6
  188. package/esm2022/password-box/lib/password-box.module.mjs +7 -15
  189. package/esm2022/picker/lib/picker-column.directive.mjs +9 -16
  190. package/esm2022/picker/lib/picker.component.mjs +2 -2
  191. package/esm2022/picker/lib/picker.module.mjs +3 -3
  192. package/esm2022/popover/lib/popover.component.mjs +1 -1
  193. package/esm2022/popover/lib/popover.module.mjs +2 -2
  194. package/esm2022/popup/index.mjs +2 -2
  195. package/esm2022/popup/lib/popup.interface.mjs +1 -1
  196. package/esm2022/popup/lib/popup.module.mjs +2 -2
  197. package/esm2022/progress-bar/lib/progress-bar.component.mjs +5 -5
  198. package/esm2022/progress-bar/lib/progress-bar.module.mjs +2 -2
  199. package/esm2022/radio/lib/radio.component.mjs +8 -8
  200. package/esm2022/radio/lib/radio.module.mjs +2 -2
  201. package/esm2022/range-slider/lib/range-slider.component.mjs +9 -9
  202. package/esm2022/range-slider/lib/range-slider.module.mjs +4 -4
  203. package/esm2022/result/lib/result.component.mjs +4 -4
  204. package/esm2022/result/lib/result.module.mjs +2 -2
  205. package/esm2022/routing-progress/acorex-components-routing-progress.mjs +5 -0
  206. package/esm2022/routing-progress/index.mjs +3 -0
  207. package/esm2022/routing-progress/lib/routing-progress.component.mjs +58 -0
  208. package/esm2022/routing-progress/lib/routing-progress.module.mjs +21 -0
  209. package/esm2022/scheduler/lib/scheduler-month-view.component.mjs +4 -2
  210. package/esm2022/scheduler/lib/scheduler.component.mjs +1 -1
  211. package/esm2022/search-box/lib/search-box.component.mjs +45 -20
  212. package/esm2022/search-box/lib/search-box.module.mjs +8 -8
  213. package/esm2022/select-box/index.mjs +2 -2
  214. package/esm2022/select-box/lib/select-box.component.mjs +168 -308
  215. package/esm2022/select-box/lib/select-box.module.mjs +12 -13
  216. package/esm2022/selection-list/lib/selection-list.component.mjs +20 -10
  217. package/esm2022/selection-list/lib/selection-list.module.mjs +6 -6
  218. package/esm2022/side-menu/acorex-components-side-menu.mjs +5 -0
  219. package/esm2022/side-menu/index.mjs +4 -0
  220. package/esm2022/side-menu/lib/side-menu-item/side-menu-item.compoent.mjs +116 -0
  221. package/esm2022/side-menu/lib/side-menu.component.mjs +15 -0
  222. package/esm2022/side-menu/lib/side-menu.module.mjs +23 -0
  223. package/esm2022/skeleton/acorex-components-skeleton.mjs +5 -0
  224. package/esm2022/skeleton/index.mjs +3 -0
  225. package/esm2022/skeleton/lib/skeleton.component.mjs +24 -0
  226. package/esm2022/skeleton/lib/skeleton.module.mjs +18 -0
  227. package/esm2022/switch/lib/switch-content.component.mjs +1 -1
  228. package/esm2022/switch/lib/switch.component.mjs +11 -18
  229. package/esm2022/switch/lib/switch.module.mjs +4 -4
  230. package/esm2022/tabs/lib/tab-content.directive.mjs +1 -1
  231. package/esm2022/tabs/lib/tab-item.component.mjs +9 -2
  232. package/esm2022/tabs/lib/tabs.component.mjs +2 -2
  233. package/esm2022/tabs/lib/tabs.module.mjs +5 -5
  234. package/esm2022/tag/lib/tag.component.mjs +7 -13
  235. package/esm2022/tag/lib/tag.module.mjs +2 -2
  236. package/esm2022/text-area/lib/text-area.component.mjs +14 -16
  237. package/esm2022/text-area/lib/text-area.module.mjs +2 -2
  238. package/esm2022/text-box/lib/text-box.component.mjs +6 -6
  239. package/esm2022/text-box/lib/text-box.module.mjs +4 -18
  240. package/esm2022/toast/index.mjs +2 -2
  241. package/esm2022/toast/lib/toast.class.mjs +1 -1
  242. package/esm2022/toast/lib/toast.component.mjs +4 -4
  243. package/esm2022/toast/lib/toast.config.mjs +3 -3
  244. package/esm2022/toast/lib/toast.module.mjs +6 -10
  245. package/esm2022/toast/lib/toast.service.mjs +16 -14
  246. package/esm2022/tooltip/lib/tooltip.component.mjs +2 -2
  247. package/esm2022/tooltip/lib/tooltip.directive.mjs +4 -4
  248. package/esm2022/tooltip/lib/tooltip.module.mjs +3 -3
  249. package/esm2022/uploader/index.mjs +3 -1
  250. package/esm2022/uploader/lib/uploader-drop-zone.component.mjs +3 -3
  251. package/esm2022/uploader/lib/uploader-list.component.mjs +41 -7
  252. package/esm2022/uploader/lib/uploader-overlay.component.mjs +2 -2
  253. package/esm2022/uploader/lib/uploader-zone.directive.mjs +53 -0
  254. package/esm2022/uploader/lib/uploader.module.mjs +26 -7
  255. package/esm2022/uploader/lib/uploader.service.mjs +30 -0
  256. package/fesm2022/acorex-components-action-sheet.mjs +23 -15
  257. package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
  258. package/fesm2022/acorex-components-alert.mjs +3 -4
  259. package/fesm2022/acorex-components-alert.mjs.map +1 -1
  260. package/fesm2022/acorex-components-avatar.mjs +16 -16
  261. package/fesm2022/acorex-components-avatar.mjs.map +1 -1
  262. package/fesm2022/acorex-components-badge.mjs +5 -5
  263. package/fesm2022/acorex-components-badge.mjs.map +1 -1
  264. package/fesm2022/acorex-components-breadcrumbs.mjs.map +1 -1
  265. package/fesm2022/acorex-components-button-group.mjs +2 -2
  266. package/fesm2022/acorex-components-button-group.mjs.map +1 -1
  267. package/fesm2022/acorex-components-button.mjs +13 -4
  268. package/fesm2022/acorex-components-button.mjs.map +1 -1
  269. package/fesm2022/acorex-components-calendar.mjs +52 -110
  270. package/fesm2022/acorex-components-calendar.mjs.map +1 -1
  271. package/fesm2022/acorex-components-check-box.mjs +9 -9
  272. package/fesm2022/acorex-components-check-box.mjs.map +1 -1
  273. package/fesm2022/acorex-components-chips.mjs +5 -5
  274. package/fesm2022/acorex-components-chips.mjs.map +1 -1
  275. package/fesm2022/acorex-components-collapse.mjs +92 -34
  276. package/fesm2022/acorex-components-collapse.mjs.map +1 -1
  277. package/fesm2022/acorex-components-color-box.mjs +6 -6
  278. package/fesm2022/acorex-components-color-box.mjs.map +1 -1
  279. package/fesm2022/acorex-components-color-palette.mjs +53 -59
  280. package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
  281. package/fesm2022/acorex-components-common.mjs +277 -223
  282. package/fesm2022/acorex-components-common.mjs.map +1 -1
  283. package/fesm2022/acorex-components-data-pager.mjs +70 -19
  284. package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
  285. package/fesm2022/acorex-components-data-table.mjs +1 -1
  286. package/fesm2022/acorex-components-data-table.mjs.map +1 -1
  287. package/fesm2022/acorex-components-datetime-box.mjs +10 -7
  288. package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
  289. package/fesm2022/acorex-components-datetime-input.mjs +143 -136
  290. package/fesm2022/acorex-components-datetime-input.mjs.map +1 -1
  291. package/fesm2022/acorex-components-datetime-picker.mjs +9 -9
  292. package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
  293. package/fesm2022/acorex-components-decorators.mjs +8 -4
  294. package/fesm2022/acorex-components-decorators.mjs.map +1 -1
  295. package/fesm2022/acorex-components-dialog.mjs +20 -4
  296. package/fesm2022/acorex-components-dialog.mjs.map +1 -1
  297. package/fesm2022/acorex-components-drawer.mjs +1 -1
  298. package/fesm2022/acorex-components-drawer.mjs.map +1 -1
  299. package/fesm2022/acorex-components-dropdown.mjs +43 -19
  300. package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
  301. package/fesm2022/acorex-components-form.mjs +76 -75
  302. package/fesm2022/acorex-components-form.mjs.map +1 -1
  303. package/fesm2022/acorex-components-image.mjs.map +1 -1
  304. package/fesm2022/acorex-components-label.mjs +2 -6
  305. package/fesm2022/acorex-components-label.mjs.map +1 -1
  306. package/fesm2022/acorex-components-list.mjs +77 -80
  307. package/fesm2022/acorex-components-list.mjs.map +1 -1
  308. package/fesm2022/acorex-components-loading.mjs +19 -21
  309. package/fesm2022/acorex-components-loading.mjs.map +1 -1
  310. package/fesm2022/acorex-components-menu.mjs +78 -382
  311. package/fesm2022/acorex-components-menu.mjs.map +1 -1
  312. package/fesm2022/acorex-components-mixin.mjs +70 -66
  313. package/fesm2022/acorex-components-mixin.mjs.map +1 -1
  314. package/fesm2022/acorex-components-notification.mjs +45 -33
  315. package/fesm2022/acorex-components-notification.mjs.map +1 -1
  316. package/fesm2022/acorex-components-number-box.mjs +7 -17
  317. package/fesm2022/acorex-components-number-box.mjs.map +1 -1
  318. package/fesm2022/acorex-components-otp.mjs +8 -6
  319. package/fesm2022/acorex-components-otp.mjs.map +1 -1
  320. package/fesm2022/acorex-components-page.mjs +6 -4
  321. package/fesm2022/acorex-components-page.mjs.map +1 -1
  322. package/fesm2022/acorex-components-password-box.mjs +7 -15
  323. package/fesm2022/acorex-components-password-box.mjs.map +1 -1
  324. package/fesm2022/acorex-components-picker.mjs +10 -17
  325. package/fesm2022/acorex-components-picker.mjs.map +1 -1
  326. package/fesm2022/acorex-components-popover.mjs.map +1 -1
  327. package/fesm2022/acorex-components-popup.mjs +1 -1
  328. package/fesm2022/acorex-components-popup.mjs.map +1 -1
  329. package/fesm2022/acorex-components-progress-bar.mjs +3 -3
  330. package/fesm2022/acorex-components-progress-bar.mjs.map +1 -1
  331. package/fesm2022/acorex-components-radio.mjs +6 -6
  332. package/fesm2022/acorex-components-radio.mjs.map +1 -1
  333. package/fesm2022/acorex-components-range-slider.mjs +7 -7
  334. package/fesm2022/acorex-components-range-slider.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-routing-progress.mjs +83 -0
  338. package/fesm2022/acorex-components-routing-progress.mjs.map +1 -0
  339. package/fesm2022/acorex-components-scheduler.mjs +3 -1
  340. package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
  341. package/fesm2022/acorex-components-search-box.mjs +48 -25
  342. package/fesm2022/acorex-components-search-box.mjs.map +1 -1
  343. package/fesm2022/acorex-components-select-box.mjs +171 -401
  344. package/fesm2022/acorex-components-select-box.mjs.map +1 -1
  345. package/fesm2022/acorex-components-selection-list.mjs +22 -12
  346. package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
  347. package/fesm2022/acorex-components-side-menu.mjs +153 -0
  348. package/fesm2022/acorex-components-side-menu.mjs.map +1 -0
  349. package/fesm2022/acorex-components-skeleton.mjs +46 -0
  350. package/fesm2022/acorex-components-skeleton.mjs.map +1 -0
  351. package/fesm2022/acorex-components-switch.mjs +9 -16
  352. package/fesm2022/acorex-components-switch.mjs.map +1 -1
  353. package/fesm2022/acorex-components-tabs.mjs +11 -4
  354. package/fesm2022/acorex-components-tabs.mjs.map +1 -1
  355. package/fesm2022/acorex-components-tag.mjs +5 -11
  356. package/fesm2022/acorex-components-tag.mjs.map +1 -1
  357. package/fesm2022/acorex-components-text-area.mjs +13 -15
  358. package/fesm2022/acorex-components-text-area.mjs.map +1 -1
  359. package/fesm2022/acorex-components-text-box.mjs +8 -22
  360. package/fesm2022/acorex-components-text-box.mjs.map +1 -1
  361. package/fesm2022/acorex-components-toast.mjs +43 -45
  362. package/fesm2022/acorex-components-toast.mjs.map +1 -1
  363. package/fesm2022/acorex-components-tooltip.mjs +2 -2
  364. package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
  365. package/fesm2022/acorex-components-uploader.mjs +146 -18
  366. package/fesm2022/acorex-components-uploader.mjs.map +1 -1
  367. package/form/index.d.ts +1 -1
  368. package/form/lib/form.component.d.ts +2 -2
  369. package/form/lib/validation-summary.component.d.ts +3 -3
  370. package/list/lib/list.component.d.ts +26 -27
  371. package/loading/index.d.ts +1 -1
  372. package/loading/lib/loading.component.d.ts +1 -1
  373. package/menu/index.d.ts +0 -1
  374. package/menu/lib/class/root-menu.class.d.ts +2 -0
  375. package/menu/lib/menu-item/menu-item.component.d.ts +19 -6
  376. package/menu/lib/menu.component.d.ts +10 -40
  377. package/menu/lib/menu.module.d.ts +7 -8
  378. package/mixin/lib/base-components.class.d.ts +2 -2
  379. package/mixin/lib/base-menu-mixin.class.d.ts +5 -5
  380. package/mixin/lib/button-mixin.class.d.ts +2 -2
  381. package/mixin/lib/clickable-mixin.class.d.ts +9 -9
  382. package/mixin/lib/color-look-mixing.class.d.ts +2 -2
  383. package/mixin/lib/datalist-component.class.d.ts +10 -10
  384. package/mixin/lib/datalist.class.d.ts +1 -1
  385. package/mixin/lib/dropdown-mixin.class.d.ts +3 -3
  386. package/mixin/lib/interactive-mixin.class.d.ts +25 -22
  387. package/mixin/lib/mixin.class.d.ts +62 -62
  388. package/mixin/lib/page-component.class.d.ts +4 -4
  389. package/mixin/lib/selection-component.class.d.ts +3 -3
  390. package/mixin/lib/sizable-mixin.class.d.ts +2 -2
  391. package/mixin/lib/textbox-mixin.class.d.ts +20 -20
  392. package/mixin/lib/value-mixin.class.d.ts +9 -9
  393. package/notification/index.d.ts +1 -1
  394. package/notification/lib/notification.class.d.ts +3 -3
  395. package/notification/lib/notification.config.d.ts +1 -1
  396. package/number-box/lib/number-box.component.d.ts +3 -3
  397. package/otp/lib/otp.component.d.ts +3 -3
  398. package/otp/lib/otp.module.d.ts +2 -1
  399. package/package.json +19 -7
  400. package/page/lib/base-page.class.d.ts +1 -1
  401. package/page/lib/page.component.d.ts +1 -1
  402. package/password-box/lib/password-box.component.d.ts +4 -4
  403. package/popup/index.d.ts +1 -1
  404. package/popup/lib/popup.interface.d.ts +2 -2
  405. package/routing-progress/README.md +3 -0
  406. package/routing-progress/index.d.ts +2 -0
  407. package/routing-progress/lib/routing-progress.component.d.ts +14 -0
  408. package/routing-progress/lib/routing-progress.module.d.ts +8 -0
  409. package/search-box/lib/search-box.component.d.ts +11 -4
  410. package/select-box/index.d.ts +1 -1
  411. package/select-box/lib/select-box.component.d.ts +37 -59
  412. package/select-box/lib/select-box.module.d.ts +14 -15
  413. package/selection-list/lib/selection-list.component.d.ts +6 -3
  414. package/side-menu/README.md +3 -0
  415. package/side-menu/index.d.ts +3 -0
  416. package/side-menu/lib/side-menu-item/side-menu-item.compoent.d.ts +37 -0
  417. package/side-menu/lib/side-menu.component.d.ts +8 -0
  418. package/side-menu/lib/side-menu.module.d.ts +10 -0
  419. package/skeleton/README.md +3 -0
  420. package/skeleton/index.d.ts +2 -0
  421. package/skeleton/lib/skeleton.component.d.ts +8 -0
  422. package/skeleton/lib/skeleton.module.d.ts +8 -0
  423. package/tabs/lib/tab-item.component.d.ts +2 -1
  424. package/tag/lib/tag.component.d.ts +3 -4
  425. package/text-area/lib/text-area.component.d.ts +3 -3
  426. package/text-box/lib/text-box.component.d.ts +3 -3
  427. package/toast/index.d.ts +1 -1
  428. package/toast/lib/toast.class.d.ts +1 -1
  429. package/toast/lib/toast.component.d.ts +2 -1
  430. package/toast/lib/toast.config.d.ts +1 -1
  431. package/tooltip/lib/tooltip.directive.d.ts +1 -1
  432. package/uploader/index.d.ts +2 -0
  433. package/uploader/lib/uploader-list.component.d.ts +14 -1
  434. package/uploader/lib/uploader-zone.directive.d.ts +18 -0
  435. package/uploader/lib/uploader.module.d.ts +6 -4
  436. package/uploader/lib/uploader.service.d.ts +10 -0
  437. package/common/lib/components/appearance-component.class.d.ts +0 -12
  438. package/context-menu/README.md +0 -3
  439. package/context-menu/index.d.ts +0 -2
  440. package/context-menu/lib/context-menu.component.d.ts +0 -34
  441. package/context-menu/lib/context-menu.module.d.ts +0 -13
  442. package/esm2022/common/lib/components/appearance-component.class.mjs +0 -25
  443. package/esm2022/context-menu/acorex-components-context-menu.mjs +0 -5
  444. package/esm2022/context-menu/index.mjs +0 -3
  445. package/esm2022/context-menu/lib/context-menu.component.mjs +0 -262
  446. package/esm2022/context-menu/lib/context-menu.module.mjs +0 -36
  447. package/esm2022/menu/lib/menu2.component.mjs +0 -45
  448. package/esm2022/select-box/lib/select-box2.component.mjs +0 -97
  449. package/fesm2022/acorex-components-context-menu.mjs +0 -300
  450. package/fesm2022/acorex-components-context-menu.mjs.map +0 -1
  451. package/menu/lib/menu2.component.d.ts +0 -12
  452. package/select-box/lib/select-box2.component.d.ts +0 -25
@@ -1,31 +1,51 @@
1
- import { MXBaseComponent } from '@acorex/components/common';
1
+ import { MXInteractiveComponent, MXBaseComponent } from '@acorex/components/common';
2
2
  import * as i2 from '@acorex/components/popover';
3
3
  import { AXPopoverComponent, AXPopoverModule } from '@acorex/components/popover';
4
4
  import * as i0 from '@angular/core';
5
- import { inject, Component, ViewChild, Input, ContentChildren, HostBinding, ChangeDetectionStrategy, ViewEncapsulation, ContentChild, NgModule } from '@angular/core';
6
- import * as i3 from '@angular/common';
5
+ import { EventEmitter, inject, Component, ViewChild, Input, Output, ContentChildren, HostBinding, HostListener, ViewEncapsulation, NgModule } from '@angular/core';
6
+ import * as i1 from '@angular/common';
7
7
  import { CommonModule } from '@angular/common';
8
- import * as i1 from '@angular/cdk/overlay';
9
- import { OverlayModule } from '@angular/cdk/overlay';
10
- import { ComponentPortal } from '@angular/cdk/portal';
11
- import { AXBaseMenuMixin } from '@acorex/components/mixin';
12
- import * as i2$1 from '@acorex/core/platform';
13
- import { AXPlatform } from '@acorex/core/platform';
14
- import * as i5 from '@acorex/core/translation';
15
- import { AXTranslator, AXTranslationModule } from '@acorex/core/translation';
16
- import * as i4 from '@acorex/components/loading';
17
- import { AXLoadingModule } from '@acorex/components/loading';
18
8
  import { AXDecoratorModule } from '@acorex/components/decorators';
9
+ import { AXLoadingModule } from '@acorex/components/loading';
10
+ import { AXTranslationModule } from '@acorex/core/translation';
11
+ import { OverlayModule } from '@angular/cdk/overlay';
19
12
 
20
13
  class AXRootMenu {
21
14
  }
22
15
 
23
- class AXMenuItemComponent extends MXBaseComponent {
16
+ class AXMenuItemComponent extends MXInteractiveComponent {
24
17
  constructor() {
25
18
  super(...arguments);
19
+ this.activeChange = new EventEmitter();
20
+ this._active = false;
21
+ this.onClick = new EventEmitter();
26
22
  this.isRoot = false;
27
23
  this.rootMenu = inject(AXRootMenu);
28
24
  }
25
+ /**
26
+ * Providing a string value for its text state
27
+ */
28
+ get text() {
29
+ return this._text;
30
+ }
31
+ set text(v) {
32
+ this.setOption({
33
+ name: 'text',
34
+ value: v,
35
+ });
36
+ }
37
+ /**
38
+ * Providing a string value for its text state
39
+ */
40
+ get active() {
41
+ return this._active;
42
+ }
43
+ set active(v) {
44
+ this.setOption({
45
+ name: 'active',
46
+ value: v,
47
+ });
48
+ }
29
49
  ngAfterViewInit() {
30
50
  this.children.forEach((c) => {
31
51
  c.parent = this;
@@ -42,16 +62,16 @@ class AXMenuItemComponent extends MXBaseComponent {
42
62
  // });
43
63
  // }
44
64
  _handleOnOpened() {
45
- // this.parent.children.forEach((c) => {
46
- // if (c != this) {
47
- // c.close();
48
- // }
49
- // });
65
+ this.parent.children.forEach((c) => {
66
+ if (c != this) {
67
+ c.close();
68
+ }
69
+ });
50
70
  }
51
71
  _handleOnClosed() {
52
- // this.children.forEach((c) => {
53
- // c.close();
54
- // });
72
+ this.children.forEach((c) => {
73
+ c.close();
74
+ });
55
75
  }
56
76
  getIcon() {
57
77
  switch (this.rootMenu.oriatation) {
@@ -62,7 +82,6 @@ class AXMenuItemComponent extends MXBaseComponent {
62
82
  }
63
83
  }
64
84
  getPlacement() {
65
- debugger;
66
85
  switch (this.rootMenu.oriatation) {
67
86
  case 'horizontal':
68
87
  if (this.isRoot) {
@@ -85,375 +104,50 @@ class AXMenuItemComponent extends MXBaseComponent {
85
104
  }
86
105
  }
87
106
  get __hostClass() {
88
- return [`${this.disabled ? 'ax-state-disabled' : ''}`];
107
+ return [`${this.disabled ? 'ax-state-disabled' : ''}`, `${this.active ? 'ax-state-active' : ''}`];
108
+ }
109
+ __hostClick(e) {
110
+ if (!this.disabled) {
111
+ this.onClick.emit({
112
+ component: this,
113
+ htmlElement: this.getHostElement(),
114
+ nativeEvent: e,
115
+ });
116
+ }
89
117
  }
90
118
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXMenuItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
91
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.9", type: AXMenuItemComponent, selector: "ax-menu-item", inputs: { text: "text", disabled: "disabled" }, host: { properties: { "class": "this.__hostClass" } }, queries: [{ propertyName: "children", predicate: AXMenuItemComponent }], viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\"></ng-content>\n<div class=\"ax-menu-item-text\">{{ text }}</div>\n<ng-content select=\"ax-suffix\"></ng-content>\n<i class=\"ax-icon {{ getIcon() }} ax-menu-item-child-icon\" *ngIf=\"children.length\"></i>\n\n<ax-popover\n [closeOn]=\"'clickOut'\"\n [openOn]=\"'click'\"\n [target]=\"getHostElement()\"\n [offsetY]=\"isRoot ? 8 : 0\"\n [offsetX]=\"isRoot ? 0 : 4\"\n [placement]=\"getPlacement()\"\n (onOpened)=\"_handleOnOpened()\"\n (onClosed)=\"_handleOnClosed()\"\n>\n <div class=\"ax-menu-item-children ax-parent-{{ this.rootMenu.oriatation }}\">\n <ng-content select=\"ax-menu-item\"></ng-content>\n </div>\n</ax-popover>\n", dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.AXPopoverComponent, selector: "ax-popover", inputs: ["offsetX", "offsetY", "target", "placement", "content", "openOn", "closeOn", "hasBackdrop", "openAfter", "closeAfter", "backdropClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }] }); }
119
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.9", type: AXMenuItemComponent, selector: "ax-menu-item", inputs: { disabled: "disabled", text: "text", active: "active" }, outputs: { activeChange: "activeChange", onClick: "onClick" }, host: { listeners: { "click": "__hostClick($event)" }, properties: { "class": "this.__hostClass" } }, queries: [{ propertyName: "children", predicate: AXMenuItemComponent }], viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\"></ng-content>\n<div class=\"ax-menu-item-text\">{{ text }}</div>\n<ng-content select=\"ax-suffix\"></ng-content>\n<i class=\"ax-icon {{ getIcon() }} ax-menu-item-child-icon\" *ngIf=\"children.length\"></i>\n\n<ax-popover\n [closeOn]=\"'clickOut'\"\n [openOn]=\"rootMenu.openOn\"\n [target]=\"getHostElement()\"\n [offsetY]=\"isRoot ? 8 : 0\"\n [offsetX]=\"isRoot ? 0 : 4\"\n [placement]=\"getPlacement()\"\n (onOpened)=\"_handleOnOpened()\"\n (onClosed)=\"_handleOnClosed()\"\n>\n <div class=\"ax-menu-item-children ax-parent-{{ this.rootMenu.oriatation }}\">\n <ng-content select=\"ax-menu-item\"></ng-content>\n </div>\n</ax-popover>\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.AXPopoverComponent, selector: "ax-popover", inputs: ["offsetX", "offsetY", "target", "placement", "content", "openOn", "closeOn", "hasBackdrop", "openAfter", "closeAfter", "backdropClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }] }); }
92
120
  }
93
121
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXMenuItemComponent, decorators: [{
94
122
  type: Component,
95
- args: [{ selector: 'ax-menu-item', template: "<ng-content select=\"ax-prefix\"></ng-content>\n<div class=\"ax-menu-item-text\">{{ text }}</div>\n<ng-content select=\"ax-suffix\"></ng-content>\n<i class=\"ax-icon {{ getIcon() }} ax-menu-item-child-icon\" *ngIf=\"children.length\"></i>\n\n<ax-popover\n [closeOn]=\"'clickOut'\"\n [openOn]=\"'click'\"\n [target]=\"getHostElement()\"\n [offsetY]=\"isRoot ? 8 : 0\"\n [offsetX]=\"isRoot ? 0 : 4\"\n [placement]=\"getPlacement()\"\n (onOpened)=\"_handleOnOpened()\"\n (onClosed)=\"_handleOnClosed()\"\n>\n <div class=\"ax-menu-item-children ax-parent-{{ this.rootMenu.oriatation }}\">\n <ng-content select=\"ax-menu-item\"></ng-content>\n </div>\n</ax-popover>\n" }]
123
+ args: [{ selector: 'ax-menu-item', inputs: ['disabled'], template: "<ng-content select=\"ax-prefix\"></ng-content>\n<div class=\"ax-menu-item-text\">{{ text }}</div>\n<ng-content select=\"ax-suffix\"></ng-content>\n<i class=\"ax-icon {{ getIcon() }} ax-menu-item-child-icon\" *ngIf=\"children.length\"></i>\n\n<ax-popover\n [closeOn]=\"'clickOut'\"\n [openOn]=\"rootMenu.openOn\"\n [target]=\"getHostElement()\"\n [offsetY]=\"isRoot ? 8 : 0\"\n [offsetX]=\"isRoot ? 0 : 4\"\n [placement]=\"getPlacement()\"\n (onOpened)=\"_handleOnOpened()\"\n (onClosed)=\"_handleOnClosed()\"\n>\n <div class=\"ax-menu-item-children ax-parent-{{ this.rootMenu.oriatation }}\">\n <ng-content select=\"ax-menu-item\"></ng-content>\n </div>\n</ax-popover>\n" }]
96
124
  }], propDecorators: { popover: [{
97
125
  type: ViewChild,
98
126
  args: [AXPopoverComponent]
99
127
  }], text: [{
100
- type: Input,
101
- args: [{ required: true }]
102
- }], disabled: [{
103
128
  type: Input
129
+ }], activeChange: [{
130
+ type: Output
131
+ }], active: [{
132
+ type: Input
133
+ }], onClick: [{
134
+ type: Output
104
135
  }], children: [{
105
136
  type: ContentChildren,
106
137
  args: [AXMenuItemComponent]
107
138
  }], __hostClass: [{
108
139
  type: HostBinding,
109
140
  args: ['class']
141
+ }], __hostClick: [{
142
+ type: HostListener,
143
+ args: ['click', ['$event']]
110
144
  }] } });
111
145
 
112
- /**
113
- * The Button is a component which detects user interaction and triggers a corresponding event
114
- *
115
- * @category Components
116
- */
117
- class AXMenuComponent extends AXBaseMenuMixin {
118
- get emptyTemplate() {
119
- return this._contentEmptyTemplate;
120
- }
121
- get itemTemplate() {
122
- return this._contentItemTemplate;
123
- }
124
- constructor(_elementRef, cdr, _overlay, _platform) {
125
- super(_elementRef, cdr);
126
- this._elementRef = _elementRef;
127
- this.cdr = cdr;
128
- this._overlay = _overlay;
129
- this._platform = _platform;
130
- this.isRtl = new AXPlatform().isRtl();
131
- this._levelCount = 0;
132
- this._loadingOptions = {
133
- text: AXTranslator.get('layout.loading.text'),
134
- };
135
- }
136
- onInit() {
137
- super.onInit();
138
- }
139
- ngAfterViewInit() {
140
- super.onViewInit();
141
- }
142
- _onMenuMouseEnter(e, item) {
143
- const targetElement = e.target;
144
- if (this.isLoading || targetElement.tagName === 'UL') {
145
- return;
146
- }
147
- if (this.openMode === 'hover') {
148
- this._handelMenuLogic(e, item);
149
- }
150
- e.stopPropagation();
151
- e.preventDefault();
152
- }
153
- _onMenuClick(e, item) {
154
- const targetElement = e.target;
155
- if (this.isLoading || targetElement.tagName === 'UL') {
156
- return;
157
- }
158
- if (this.openMode === 'click') {
159
- this._handelMenuLogic(e, item);
160
- }
161
- this.onMenuItemClick.emit({
162
- component: this,
163
- item: item,
164
- nativeEvent: e,
165
- });
166
- e.stopPropagation();
167
- e.preventDefault();
168
- }
169
- _getDirection() {
170
- if (this.displayMode === 'horizontal' && this._levelCount === 0) {
171
- return 'ax-horizontal';
172
- }
173
- else if (this._levelCount > 0) {
174
- return 'ax-vertical ax-submenu-ul';
175
- }
176
- else if (this.displayMode === 'sidemenu') {
177
- return 'ax-side-menu';
178
- }
179
- else {
180
- return 'ax-vertical';
181
- }
182
- }
183
- // private _removeActive(items: any): void {
184
- // items.forEach((element) => {
185
- // element.active = false;
186
- // if (element?.children?.length > 0) {
187
- // this._removeActive(element.children);
188
- // }
189
- // });
190
- // }
191
- _closeOpenChild(items) {
192
- items.forEach((element) => {
193
- element.opened = false;
194
- if (element?.children?.length > 0) {
195
- this._closeOpenChild(element.children);
196
- }
197
- });
198
- }
199
- _initParent(items, parentId) {
200
- items.forEach((element) => {
201
- element.parentId = parentId;
202
- });
203
- }
204
- _handelMenuLogic(e, item) {
205
- if (!item[this.disableField] || item[this.dividerField] === false) {
206
- const targetElement = e.target;
207
- if ((targetElement.closest('li') && this.openMode === 'click') ||
208
- (targetElement.closest('li') && this.openMode === 'hover')) {
209
- if (this._overlayRef && this._oldItem !== item) {
210
- this._overlayRef.detach();
211
- }
212
- if (this.displayMode === 'horizontal') {
213
- this.displayItems.forEach((element) => {
214
- if (!item.parentId && item[this.valueField] !== element[this.valueField]) {
215
- element.opened = false;
216
- }
217
- });
218
- }
219
- if (item?.children?.length > 0) {
220
- if (this.displayMode === 'horizontal') {
221
- this._initParent(item.children, item[this.valueField]);
222
- }
223
- if (this.displayMode === 'horizontal' || this.displayMode === 'vertical') {
224
- if (this._oldItem !== item) {
225
- this._openAsOverlay(targetElement.closest('li'), item.children);
226
- }
227
- }
228
- this._closeOpenChild(item.children);
229
- if (this.displayMode === 'horizontal' || this.displayMode === 'vertical') {
230
- item.opened = true;
231
- }
232
- else {
233
- item.opened = !item.opened;
234
- }
235
- }
236
- if (this.displayMode === 'horizontal' || this.displayMode === 'vertical') {
237
- if (this._oldItem &&
238
- this._oldItem?.opened &&
239
- item[this.valueField] !== this._oldItem[this.valueField]) {
240
- this._oldItem.opened = false;
241
- }
242
- this._oldItem = item;
243
- }
244
- }
245
- }
246
- }
247
- _openAsOverlay(targetRef, overlayItems) {
248
- let positions = [];
249
- if (this.displayMode === 'vertical') {
250
- if (this._levelCount >= 1) {
251
- positions = [
252
- {
253
- originX: 'end',
254
- originY: 'center',
255
- overlayX: 'start',
256
- overlayY: 'top',
257
- },
258
- {
259
- originX: 'end',
260
- originY: 'center',
261
- overlayX: 'start',
262
- overlayY: 'bottom',
263
- },
264
- {
265
- originX: 'center',
266
- originY: 'center',
267
- overlayX: 'center',
268
- overlayY: 'center',
269
- },
270
- ];
271
- }
272
- else {
273
- positions = [
274
- {
275
- originX: 'end',
276
- originY: 'center',
277
- overlayX: 'start',
278
- overlayY: 'top',
279
- },
280
- {
281
- originX: 'end',
282
- originY: 'top',
283
- overlayX: 'start',
284
- overlayY: 'bottom',
285
- },
286
- {
287
- originX: 'center',
288
- originY: 'center',
289
- overlayX: 'center',
290
- overlayY: 'center',
291
- },
292
- ];
293
- }
294
- }
295
- else {
296
- if (this._levelCount >= 1) {
297
- positions = [
298
- {
299
- originX: 'end',
300
- originY: 'top',
301
- overlayX: 'start',
302
- overlayY: 'top',
303
- },
304
- {
305
- originX: 'end',
306
- originY: 'center',
307
- overlayX: 'start',
308
- overlayY: 'bottom',
309
- },
310
- {
311
- originX: 'end',
312
- originY: 'top',
313
- overlayX: 'center',
314
- overlayY: 'top',
315
- },
316
- {
317
- originX: 'center',
318
- originY: 'top',
319
- overlayX: 'center',
320
- overlayY: 'top',
321
- },
322
- ];
323
- }
324
- else {
325
- positions = [
326
- {
327
- originX: 'start',
328
- originY: 'bottom',
329
- overlayX: 'start',
330
- overlayY: 'top',
331
- },
332
- {
333
- originX: 'end',
334
- originY: 'center',
335
- overlayX: 'start',
336
- overlayY: 'bottom',
337
- },
338
- {
339
- originX: 'end',
340
- originY: 'top',
341
- overlayX: 'center',
342
- overlayY: 'top',
343
- },
344
- {
345
- originX: 'center',
346
- originY: 'top',
347
- overlayX: 'center',
348
- overlayY: 'top',
349
- },
350
- ];
351
- }
352
- }
353
- this._overlayRef = this._overlay.create({
354
- scrollStrategy: this._overlay.scrollStrategies.close(),
355
- positionStrategy: this._overlay
356
- .position()
357
- .flexibleConnectedTo(targetRef)
358
- .withPositions([...positions])
359
- .withPush(false)
360
- .withDefaultOffsetX(12),
361
- direction: this._platform.isRtl() ? 'rtl' : 'ltr',
362
- disposeOnNavigation: true,
363
- panelClass: ['ax-animate-fadeIn', 'ax-animate-faster', 'ax-overlay-menu'],
364
- maxHeight: 'unset',
365
- hasBackdrop: false,
366
- backdropClass: ['cdk-overlay-transparent-backdrop'],
367
- });
368
- const ref = this._overlayRef.attach(new ComponentPortal(AXMenuComponent));
369
- ref.instance.items = overlayItems;
370
- ref.instance.displayMode = this.displayMode;
371
- ref.instance.openMode = 'hover';
372
- ref.instance._levelCount = this._levelCount + 1;
373
- ref.instance.disableField = this.disableField;
374
- ref.instance.visibleField = this.visibleField;
375
- ref.instance.valueField = this.valueField;
376
- ref.instance.textField = this.textField;
377
- ref.instance.iconField = this.iconField;
378
- ref.instance.dividerField = this.dividerField;
379
- ref.onDestroy(() => {
380
- ref.instance?._overlayRef?.dispose();
381
- });
382
- this._overlayRef.outsidePointerEvents().subscribe((e) => {
383
- if (this._overlayRef && this.openMode === 'click') {
384
- this._close();
385
- e.stopPropagation();
386
- }
387
- });
388
- this._platform.scroll.subscribe(() => {
389
- if (this._overlayRef) {
390
- this._close();
391
- }
392
- });
393
- this._platform.resize.subscribe(() => {
394
- if (this._overlayRef) {
395
- this._close();
396
- }
397
- });
398
- }
399
- _close() {
400
- this._overlayRef.detach();
401
- this._oldItem = null;
402
- this.displayItems.forEach((element) => {
403
- element.opened = false;
404
- element.active = false;
405
- });
406
- this.cdr.detectChanges();
407
- }
408
- onDestroy() {
409
- this._overlayRef?.detach();
410
- }
411
- isActive(item) {
412
- if (typeof this.activeCallback == 'function') {
413
- return this.activeCallback(item);
414
- }
415
- return false;
416
- }
417
- refresh() {
418
- this.cdr.markForCheck();
419
- }
420
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXMenuComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1.Overlay }, { token: i2$1.AXPlatform }], target: i0.ɵɵFactoryTarget.Component }); }
421
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.9", type: AXMenuComponent, selector: "ax-menu", inputs: { disabled: "disabled", tabIndex: "tabIndex", textField: "textField", valueField: "valueField", items: "items", parentId: "parentId", iconField: "iconField", tooltip: "tooltip", opened: "opened", visibleField: "visibleField", disableField: "disableField", hasChildField: "hasChildField", dividerField: "dividerField", openMode: "openMode", displayMode: "displayMode", showModal: "showModal", activeCallback: "activeCallback" }, outputs: { onBlur: "onBlur", onFocus: "onFocus", onMenuItemClick: "onMenuItemClick" }, queries: [{ propertyName: "_contentEmptyTemplate", first: true, predicate: ["emptyTemplate"], descendants: true }, { propertyName: "_contentItemTemplate", first: true, predicate: ["itemTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"displayItems.length; else tmpEmpty\">\n <ul [ngClass]=\"_getDirection()\" [class.ax-rtl]=\"rtl\">\n <ng-container\n *ngTemplateOutlet=\"recursiveListTmpl; context: { list: displayItems, isRoot: true }\"\n ></ng-container>\n </ul>\n <ng-template #recursiveListTmpl let-list=\"list\" let-isRoot=\"isRoot\">\n <ng-container *ngFor=\"let item of list\">\n <li\n *ngIf=\"item[visibleField] !== false\"\n [class.ax-state-disabled]=\"item[disableField]\"\n (click)=\"_onMenuClick($event, item)\"\n >\n <div\n class=\"ax-menu-item\"\n [ngClass]=\"{\n 'ax-is-parent': item.children?.length,\n 'ax-is-child': !isRoot,\n 'ax-state-active ': item.isActive\n }\"\n *ngIf=\"itemTemplate == null; else tmpItem\"\n >\n <div class=\"ax-menu-item-prefix\">\n <span class=\"ax-menu-item-icon\" *ngIf=\"item[iconField]\" [class]=\"item[iconField]\"></span>\n <span>{{ _getItemDisplayTextTemplte(item) }}</span>\n </div>\n <div class=\"ax-menu-item-suffix\">\n <span\n class=\"ax-menu-item-icon ax-icon ax-menu-item-icon-chevron\"\n [ngClass]=\"{\n 'ax-icon-chevron-down': item?.children?.length > 0,\n 'ax-menu-active-icon': item.opened\n }\"\n *ngIf=\"!item.isLoading\"\n ></span>\n <ax-loading *ngIf=\"item.isLoading\"> </ax-loading>\n </div>\n </div>\n <!--------------- check for custom item template --------------->\n <ng-template #tmpItem>\n <ng-container *ngIf=\"!isLoading\">\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"> </ng-container>\n </ng-container>\n </ng-template>\n <ul\n *ngIf=\"item?.children?.length > 0 && item.opened && !_overlayRef\"\n [class.ax-state-disabled]=\"item[disableField]\"\n >\n <ng-container *ngTemplateOutlet=\"recursiveListTmpl; context: { list: item.children }\">\n </ng-container>\n </ul>\n </li>\n <li class=\"ax-menu-item-divider\" *ngIf=\"item[this.dividerField]\"></li>\n </ng-container>\n </ng-template>\n</ng-container>\n<ng-container *ngIf=\"isLoading\">\n <ng-template>\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\n <ax-loading [context]=\"_loadingOptions\"></ax-loading>\n </div>\n </ng-template>\n</ng-container>\n\n<ng-template #tmpEmpty>\n <ng-container *ngIf=\"!isLoading\">\n <!--------------- check for custom template --------------->\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\n <ng-container *ngTemplateOutlet=\"emptyTemplate\"> </ng-container>\n </ng-container>\n <ng-template #elseEmptyTemplate>\n {{ 'common.no-result-found' | trans }}\n </ng-template>\n </ng-container>\n</ng-template>\n", styles: ["ax-menu{font-size:.875rem;display:block}ax-menu ul{width:-moz-fit-content;width:fit-content;display:flex;flex-direction:column}ax-menu ul li.ax-state-active{color:rgba(var(--ax-color-primary-500))}ax-menu ul li .ax-menu-item{display:flex}ax-menu ul li .ax-menu-item.ax-state-active{color:rgba(var(--ax-color-primary-500))}ax-menu ul li .ax-menu-item .ax-menu-item-prefix,ax-menu ul li .ax-menu-item .ax-menu-item-suffix{display:flex;align-items:center;justify-content:center}ax-menu ul li .ax-menu-item .ax-menu-item-prefix .ax-menu-item-icon-chevron,ax-menu ul li .ax-menu-item .ax-menu-item-suffix .ax-menu-item-icon-chevron{transform:rotate(-90deg)}ax-menu ul li .ax-menu-item .ax-menu-item-prefix .ax-menu-item-icon:not(:empty),ax-menu ul li .ax-menu-item .ax-menu-item-suffix .ax-menu-item-icon:not(:empty){min-width:1.25rem;min-height:1.25rem}ax-menu ul li .ax-menu-item .ax-menu-item-prefix .ax-menu-item-icon{padding-inline-end:.5rem}ax-menu ul li .ax-menu-item .ax-menu-item-icon{font-size:1.25rem}ax-menu ul li.ax-state-disabled{cursor:not-allowed!important;opacity:.5}ax-menu ul li.ax-state-active .ax-menu-item-icon-chevron{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}ax-menu .ax-horizontal>li,ax-menu .ax-vertical>li{font-weight:500}ax-menu .ax-horizontal{flex-direction:row;align-items:center}ax-menu .ax-horizontal .ax-menu-item-divider{width:1px;height:1rem;background-color:rgba(var(--ax-color-default))}ax-menu .ax-horizontal li.ax-state-active .ax-menu-item-icon-chevron{transform:rotate(0)!important}ax-menu .ax-horizontal li:not(.ax-menu-item-divider){padding:.5rem;cursor:pointer}ax-menu .ax-vertical{flex-direction:column;width:100%}ax-menu .ax-vertical>li{font-weight:500}ax-menu .ax-vertical .ax-menu-item-divider{width:100%;height:1px;background-color:rgba(var(--ax-color-default));margin:.375rem 0}ax-menu .ax-vertical li.ax-state-active .ax-menu-item-icon-chevron{transform:rotate(0)!important}ax-menu .ax-vertical li:not(.ax-menu-item-divider){padding:.5rem 0;cursor:pointer}ax-menu .ax-vertical.ax-submenu-ul{background-color:rgba(var(--ax-color-surface));border:1px solid;border-color:rgba(var(--ax-color-border-default));border-radius:var(--ax-rounded-border-default);padding:.5rem;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d}ax-menu .ax-vertical.ax-submenu-ul li{border-radius:var(--ax-rounded-border-default);cursor:pointer}ax-menu .ax-vertical.ax-submenu-ul li:not(.ax-menu-item-divider){padding:.5rem}ax-menu .ax-vertical.ax-submenu-ul li:not(.ax-state-disabled,.ax-menu-item-divider):hover{background-color:rgba(var(--ax-color-default));color:rgba(var(--ax-color-default-fore))}ax-menu .ax-side-menu{width:100%;flex-direction:column;gap:.5rem;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}ax-menu .ax-side-menu .ax-menu-item-divider{width:100%;height:1px;background-color:rgba(var(--ax-color-default));margin:.375rem 0}ax-menu .ax-side-menu ul{display:flex;flex-direction:column;margin-top:.5rem;width:100%;padding-inline-start:.75rem}ax-menu .ax-side-menu li .ax-menu-item-icon-chevron.ax-menu-active-icon{transform:rotate(180deg)!important}ax-menu .ax-side-menu li .ax-menu-item{justify-content:space-between}ax-menu .ax-side-menu li .ax-menu-item.ax-is-parent{font-weight:500}ax-menu .ax-side-menu li:not(.ax-menu-item-divider){padding:.5rem 0;cursor:pointer;font-size:1rem}ax-menu .ax-side-menu li:not(.ax-menu-item-divider) .ax-is-child{font-size:.875rem}\n"], dependencies: [{ kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i4.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "pipe", type: i5.AXTranslatorPipe, name: "trans" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
422
- }
423
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXMenuComponent, decorators: [{
424
- type: Component,
425
- args: [{ selector: 'ax-menu', inputs: [
426
- 'disabled',
427
- 'tabIndex',
428
- 'textField',
429
- 'valueField',
430
- 'items',
431
- 'parentId',
432
- 'iconField',
433
- 'tooltip',
434
- 'opened',
435
- 'visibleField',
436
- 'disableField',
437
- 'hasChildField',
438
- 'dividerField',
439
- 'openMode',
440
- 'displayMode',
441
- 'showModal',
442
- ], outputs: ['onBlur', 'onFocus', 'onMenuItemClick'], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ng-container *ngIf=\"displayItems.length; else tmpEmpty\">\n <ul [ngClass]=\"_getDirection()\" [class.ax-rtl]=\"rtl\">\n <ng-container\n *ngTemplateOutlet=\"recursiveListTmpl; context: { list: displayItems, isRoot: true }\"\n ></ng-container>\n </ul>\n <ng-template #recursiveListTmpl let-list=\"list\" let-isRoot=\"isRoot\">\n <ng-container *ngFor=\"let item of list\">\n <li\n *ngIf=\"item[visibleField] !== false\"\n [class.ax-state-disabled]=\"item[disableField]\"\n (click)=\"_onMenuClick($event, item)\"\n >\n <div\n class=\"ax-menu-item\"\n [ngClass]=\"{\n 'ax-is-parent': item.children?.length,\n 'ax-is-child': !isRoot,\n 'ax-state-active ': item.isActive\n }\"\n *ngIf=\"itemTemplate == null; else tmpItem\"\n >\n <div class=\"ax-menu-item-prefix\">\n <span class=\"ax-menu-item-icon\" *ngIf=\"item[iconField]\" [class]=\"item[iconField]\"></span>\n <span>{{ _getItemDisplayTextTemplte(item) }}</span>\n </div>\n <div class=\"ax-menu-item-suffix\">\n <span\n class=\"ax-menu-item-icon ax-icon ax-menu-item-icon-chevron\"\n [ngClass]=\"{\n 'ax-icon-chevron-down': item?.children?.length > 0,\n 'ax-menu-active-icon': item.opened\n }\"\n *ngIf=\"!item.isLoading\"\n ></span>\n <ax-loading *ngIf=\"item.isLoading\"> </ax-loading>\n </div>\n </div>\n <!--------------- check for custom item template --------------->\n <ng-template #tmpItem>\n <ng-container *ngIf=\"!isLoading\">\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"> </ng-container>\n </ng-container>\n </ng-template>\n <ul\n *ngIf=\"item?.children?.length > 0 && item.opened && !_overlayRef\"\n [class.ax-state-disabled]=\"item[disableField]\"\n >\n <ng-container *ngTemplateOutlet=\"recursiveListTmpl; context: { list: item.children }\">\n </ng-container>\n </ul>\n </li>\n <li class=\"ax-menu-item-divider\" *ngIf=\"item[this.dividerField]\"></li>\n </ng-container>\n </ng-template>\n</ng-container>\n<ng-container *ngIf=\"isLoading\">\n <ng-template>\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\n <ax-loading [context]=\"_loadingOptions\"></ax-loading>\n </div>\n </ng-template>\n</ng-container>\n\n<ng-template #tmpEmpty>\n <ng-container *ngIf=\"!isLoading\">\n <!--------------- check for custom template --------------->\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\n <ng-container *ngTemplateOutlet=\"emptyTemplate\"> </ng-container>\n </ng-container>\n <ng-template #elseEmptyTemplate>\n {{ 'common.no-result-found' | trans }}\n </ng-template>\n </ng-container>\n</ng-template>\n", styles: ["ax-menu{font-size:.875rem;display:block}ax-menu ul{width:-moz-fit-content;width:fit-content;display:flex;flex-direction:column}ax-menu ul li.ax-state-active{color:rgba(var(--ax-color-primary-500))}ax-menu ul li .ax-menu-item{display:flex}ax-menu ul li .ax-menu-item.ax-state-active{color:rgba(var(--ax-color-primary-500))}ax-menu ul li .ax-menu-item .ax-menu-item-prefix,ax-menu ul li .ax-menu-item .ax-menu-item-suffix{display:flex;align-items:center;justify-content:center}ax-menu ul li .ax-menu-item .ax-menu-item-prefix .ax-menu-item-icon-chevron,ax-menu ul li .ax-menu-item .ax-menu-item-suffix .ax-menu-item-icon-chevron{transform:rotate(-90deg)}ax-menu ul li .ax-menu-item .ax-menu-item-prefix .ax-menu-item-icon:not(:empty),ax-menu ul li .ax-menu-item .ax-menu-item-suffix .ax-menu-item-icon:not(:empty){min-width:1.25rem;min-height:1.25rem}ax-menu ul li .ax-menu-item .ax-menu-item-prefix .ax-menu-item-icon{padding-inline-end:.5rem}ax-menu ul li .ax-menu-item .ax-menu-item-icon{font-size:1.25rem}ax-menu ul li.ax-state-disabled{cursor:not-allowed!important;opacity:.5}ax-menu ul li.ax-state-active .ax-menu-item-icon-chevron{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}ax-menu .ax-horizontal>li,ax-menu .ax-vertical>li{font-weight:500}ax-menu .ax-horizontal{flex-direction:row;align-items:center}ax-menu .ax-horizontal .ax-menu-item-divider{width:1px;height:1rem;background-color:rgba(var(--ax-color-default))}ax-menu .ax-horizontal li.ax-state-active .ax-menu-item-icon-chevron{transform:rotate(0)!important}ax-menu .ax-horizontal li:not(.ax-menu-item-divider){padding:.5rem;cursor:pointer}ax-menu .ax-vertical{flex-direction:column;width:100%}ax-menu .ax-vertical>li{font-weight:500}ax-menu .ax-vertical .ax-menu-item-divider{width:100%;height:1px;background-color:rgba(var(--ax-color-default));margin:.375rem 0}ax-menu .ax-vertical li.ax-state-active .ax-menu-item-icon-chevron{transform:rotate(0)!important}ax-menu .ax-vertical li:not(.ax-menu-item-divider){padding:.5rem 0;cursor:pointer}ax-menu .ax-vertical.ax-submenu-ul{background-color:rgba(var(--ax-color-surface));border:1px solid;border-color:rgba(var(--ax-color-border-default));border-radius:var(--ax-rounded-border-default);padding:.5rem;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d}ax-menu .ax-vertical.ax-submenu-ul li{border-radius:var(--ax-rounded-border-default);cursor:pointer}ax-menu .ax-vertical.ax-submenu-ul li:not(.ax-menu-item-divider){padding:.5rem}ax-menu .ax-vertical.ax-submenu-ul li:not(.ax-state-disabled,.ax-menu-item-divider):hover{background-color:rgba(var(--ax-color-default));color:rgba(var(--ax-color-default-fore))}ax-menu .ax-side-menu{width:100%;flex-direction:column;gap:.5rem;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}ax-menu .ax-side-menu .ax-menu-item-divider{width:100%;height:1px;background-color:rgba(var(--ax-color-default));margin:.375rem 0}ax-menu .ax-side-menu ul{display:flex;flex-direction:column;margin-top:.5rem;width:100%;padding-inline-start:.75rem}ax-menu .ax-side-menu li .ax-menu-item-icon-chevron.ax-menu-active-icon{transform:rotate(180deg)!important}ax-menu .ax-side-menu li .ax-menu-item{justify-content:space-between}ax-menu .ax-side-menu li .ax-menu-item.ax-is-parent{font-weight:500}ax-menu .ax-side-menu li:not(.ax-menu-item-divider){padding:.5rem 0;cursor:pointer;font-size:1rem}ax-menu .ax-side-menu li:not(.ax-menu-item-divider) .ax-is-child{font-size:.875rem}\n"] }]
443
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.Overlay }, { type: i2$1.AXPlatform }]; }, propDecorators: { activeCallback: [{
444
- type: Input
445
- }], _contentEmptyTemplate: [{
446
- type: ContentChild,
447
- args: ['emptyTemplate']
448
- }], _contentItemTemplate: [{
449
- type: ContentChild,
450
- args: ['itemTemplate']
451
- }] } });
452
-
453
- class AXMenu2Component extends MXBaseComponent {
146
+ class AXMenuComponent extends MXBaseComponent {
454
147
  constructor() {
455
148
  super(...arguments);
456
149
  this.oriatation = 'horizontal';
150
+ this.openOn = 'click';
457
151
  }
458
152
  ngAfterViewInit() {
459
153
  this.children.forEach((c) => {
@@ -464,24 +158,26 @@ class AXMenu2Component extends MXBaseComponent {
464
158
  get __hostClass() {
465
159
  return `ax-oriatation-${this.oriatation}`;
466
160
  }
467
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXMenu2Component, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
468
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.9", type: AXMenu2Component, selector: "ax-menu2", inputs: { oriatation: "oriatation" }, host: { properties: { "class": "this.__hostClass" } }, providers: [
161
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXMenuComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
162
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.9", type: AXMenuComponent, selector: "ax-menu", inputs: { oriatation: "oriatation", openOn: "openOn" }, host: { properties: { "class": "this.__hostClass" } }, providers: [
469
163
  {
470
164
  provide: AXRootMenu,
471
- useExisting: AXMenu2Component,
165
+ useExisting: AXMenuComponent,
472
166
  },
473
- ], queries: [{ propertyName: "children", predicate: AXMenuItemComponent }], usesInheritance: true, ngImport: i0, template: `<ng-content select="ax-menu-item"></ng-content>`, isInline: true, styles: ["ax-menu2{font-size:inherit;width:100%}ax-menu2.ax-oriatation-horizontal{display:flex}ax-menu2.ax-oriatation-horizontal ax-menu-item:not(ax-menu2.ax-oriatation-horizontal ax-menu-item:last-child){margin-inline-end:1.75rem}ax-menu2.ax-oriatation-vertical{display:flex;flex-direction:column}ax-menu2.ax-oriatation-vertical ax-menu-item:not(ax-menu2.ax-oriatation-vertical ax-menu-item:last-child){margin-block-end:1.75rem}ax-menu2 ax-menu-item:hover:not(ax-menu2 ax-menu-item:hover.ax-state-disabled){color:rgba(var(--ax-color-primary-500))}ax-menu-item{font-weight:500;transition:all .3s;position:relative;display:flex;align-items:center}ax-menu-item:not(ax-menu-item.ax-state-disabled){cursor:pointer}ax-menu-item.ax-state-disabled{opacity:.5;cursor:not-allowed}ax-menu-item.ax-state-selected{color:rgba(var(--ax-color-primary-500))}ax-menu-item .ax-menu-item-child-icon{font-size:1.25rem}.ax-menu-item-children{padding:.5rem 0}.ax-menu-item-children:not(.ax-menu-item-children:empty){background-color:rgba(var(--ax-color-surface));border:1px solid;border-color:rgba(var(--ax-color-border-default));border-radius:var(--ax-rounded-border-default);min-width:12rem;display:flex;flex-direction:column}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item{padding:.5rem 1rem;font-size:.875rem}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover:not(.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover.ax-state-disabled){background-color:rgba(var(--ax-color-default),.5)}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover:not(.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover.ax-state-disabled) ax-prefix,.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover:not(.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover.ax-state-disabled) ax-suffix{opacity:1}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item ax-prefix,.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item ax-suffix{opacity:.5}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item ax-prefix{margin-inline-end:.75rem}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item .ax-menu-item-text{flex:1}html[dir=rtl] ax-menu.ax-oriatation-horizontal .ax-menu-item-child-icon{transform:scaleX(-1);-moz-transform:scaleX(-1);-webkit-transform:scaleX(-1);-ms-transform:scaleX(-1)}.ax-parent-horizontal .ax-menu-item-child-icon{transform:rotate(-90deg)}\n"], encapsulation: i0.ViewEncapsulation.None }); }
167
+ ], queries: [{ propertyName: "children", predicate: AXMenuItemComponent }], usesInheritance: true, ngImport: i0, template: `<ng-content select="ax-menu-item,ng-container"></ng-content>`, isInline: true, styles: ["ax-menu{font-size:.875em;width:100%;color:inherit}ax-menu.ax-oriatation-horizontal{display:flex}ax-menu.ax-oriatation-horizontal ax-menu-item:not(ax-menu.ax-oriatation-horizontal ax-menu-item:last-child){margin-inline-end:1.75rem}ax-menu.ax-oriatation-vertical{display:flex;flex-direction:column}ax-menu.ax-oriatation-vertical ax-menu-item{justify-content:space-between}ax-menu.ax-oriatation-vertical ax-menu-item:not(ax-menu.ax-oriatation-vertical ax-menu-item:last-child){margin-block-end:1.75rem}ax-menu.ax-oriatation-vertical ax-menu-item ax-popover{position:absolute}ax-menu ax-menu-item:hover:not(ax-menu ax-menu-item:hover.ax-state-disabled){color:rgba(var(--ax-color-primary-500))}ax-menu-item{font-weight:500;transition:color .3s;position:relative;display:flex;align-items:center}ax-menu-item:not(ax-menu-item.ax-state-disabled){cursor:pointer}ax-menu-item.ax-state-disabled{opacity:.5;cursor:not-allowed}ax-menu-item.ax-state-selected{color:rgba(var(--ax-color-primary-500))}ax-menu-item .ax-menu-item-child-icon{font-size:1.25rem}.ax-menu-item-children{padding:.5rem 0}.ax-menu-item-children:not(.ax-menu-item-children:empty){background-color:rgba(var(--ax-color-surface));border:1px solid;border-color:rgba(var(--ax-color-border-default));border-radius:var(--ax-rounded-border-default);min-width:12rem;display:flex;flex-direction:column}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item{padding:.5rem 1rem;font-size:.875rem}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover:not(.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover.ax-state-disabled){background-color:rgba(var(--ax-color-on-surface),.5)}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover:not(.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover.ax-state-disabled) ax-prefix,.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover:not(.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover.ax-state-disabled) ax-suffix{opacity:1}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item ax-prefix,.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item ax-suffix{opacity:.5}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item ax-prefix{margin-inline-end:.75rem}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item .ax-menu-item-text{flex:1}html[dir=rtl] ax-menu.ax-oriatation-horizontal .ax-menu-item-child-icon{transform:scaleX(-1);-moz-transform:scaleX(-1);-webkit-transform:scaleX(-1);-ms-transform:scaleX(-1)}.ax-parent-horizontal .ax-menu-item-child-icon{transform:rotate(-90deg)}\n"], encapsulation: i0.ViewEncapsulation.None }); }
474
168
  }
475
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXMenu2Component, decorators: [{
169
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXMenuComponent, decorators: [{
476
170
  type: Component,
477
- args: [{ selector: 'ax-menu2', template: `<ng-content select="ax-menu-item"></ng-content>`, encapsulation: ViewEncapsulation.None, providers: [
171
+ args: [{ selector: 'ax-menu', template: `<ng-content select="ax-menu-item,ng-container"></ng-content>`, encapsulation: ViewEncapsulation.None, providers: [
478
172
  {
479
173
  provide: AXRootMenu,
480
- useExisting: AXMenu2Component,
174
+ useExisting: AXMenuComponent,
481
175
  },
482
- ], styles: ["ax-menu2{font-size:inherit;width:100%}ax-menu2.ax-oriatation-horizontal{display:flex}ax-menu2.ax-oriatation-horizontal ax-menu-item:not(ax-menu2.ax-oriatation-horizontal ax-menu-item:last-child){margin-inline-end:1.75rem}ax-menu2.ax-oriatation-vertical{display:flex;flex-direction:column}ax-menu2.ax-oriatation-vertical ax-menu-item:not(ax-menu2.ax-oriatation-vertical ax-menu-item:last-child){margin-block-end:1.75rem}ax-menu2 ax-menu-item:hover:not(ax-menu2 ax-menu-item:hover.ax-state-disabled){color:rgba(var(--ax-color-primary-500))}ax-menu-item{font-weight:500;transition:all .3s;position:relative;display:flex;align-items:center}ax-menu-item:not(ax-menu-item.ax-state-disabled){cursor:pointer}ax-menu-item.ax-state-disabled{opacity:.5;cursor:not-allowed}ax-menu-item.ax-state-selected{color:rgba(var(--ax-color-primary-500))}ax-menu-item .ax-menu-item-child-icon{font-size:1.25rem}.ax-menu-item-children{padding:.5rem 0}.ax-menu-item-children:not(.ax-menu-item-children:empty){background-color:rgba(var(--ax-color-surface));border:1px solid;border-color:rgba(var(--ax-color-border-default));border-radius:var(--ax-rounded-border-default);min-width:12rem;display:flex;flex-direction:column}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item{padding:.5rem 1rem;font-size:.875rem}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover:not(.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover.ax-state-disabled){background-color:rgba(var(--ax-color-default),.5)}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover:not(.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover.ax-state-disabled) ax-prefix,.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover:not(.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover.ax-state-disabled) ax-suffix{opacity:1}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item ax-prefix,.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item ax-suffix{opacity:.5}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item ax-prefix{margin-inline-end:.75rem}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item .ax-menu-item-text{flex:1}html[dir=rtl] ax-menu.ax-oriatation-horizontal .ax-menu-item-child-icon{transform:scaleX(-1);-moz-transform:scaleX(-1);-webkit-transform:scaleX(-1);-ms-transform:scaleX(-1)}.ax-parent-horizontal .ax-menu-item-child-icon{transform:rotate(-90deg)}\n"] }]
176
+ ], styles: ["ax-menu{font-size:.875em;width:100%;color:inherit}ax-menu.ax-oriatation-horizontal{display:flex}ax-menu.ax-oriatation-horizontal ax-menu-item:not(ax-menu.ax-oriatation-horizontal ax-menu-item:last-child){margin-inline-end:1.75rem}ax-menu.ax-oriatation-vertical{display:flex;flex-direction:column}ax-menu.ax-oriatation-vertical ax-menu-item{justify-content:space-between}ax-menu.ax-oriatation-vertical ax-menu-item:not(ax-menu.ax-oriatation-vertical ax-menu-item:last-child){margin-block-end:1.75rem}ax-menu.ax-oriatation-vertical ax-menu-item ax-popover{position:absolute}ax-menu ax-menu-item:hover:not(ax-menu ax-menu-item:hover.ax-state-disabled){color:rgba(var(--ax-color-primary-500))}ax-menu-item{font-weight:500;transition:color .3s;position:relative;display:flex;align-items:center}ax-menu-item:not(ax-menu-item.ax-state-disabled){cursor:pointer}ax-menu-item.ax-state-disabled{opacity:.5;cursor:not-allowed}ax-menu-item.ax-state-selected{color:rgba(var(--ax-color-primary-500))}ax-menu-item .ax-menu-item-child-icon{font-size:1.25rem}.ax-menu-item-children{padding:.5rem 0}.ax-menu-item-children:not(.ax-menu-item-children:empty){background-color:rgba(var(--ax-color-surface));border:1px solid;border-color:rgba(var(--ax-color-border-default));border-radius:var(--ax-rounded-border-default);min-width:12rem;display:flex;flex-direction:column}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item{padding:.5rem 1rem;font-size:.875rem}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover:not(.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover.ax-state-disabled){background-color:rgba(var(--ax-color-on-surface),.5)}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover:not(.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover.ax-state-disabled) ax-prefix,.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover:not(.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item:hover.ax-state-disabled) ax-suffix{opacity:1}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item ax-prefix,.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item ax-suffix{opacity:.5}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item ax-prefix{margin-inline-end:.75rem}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item .ax-menu-item-text{flex:1}html[dir=rtl] ax-menu.ax-oriatation-horizontal .ax-menu-item-child-icon{transform:scaleX(-1);-moz-transform:scaleX(-1);-webkit-transform:scaleX(-1);-ms-transform:scaleX(-1)}.ax-parent-horizontal .ax-menu-item-child-icon{transform:rotate(-90deg)}\n"] }]
483
177
  }], propDecorators: { oriatation: [{
484
178
  type: Input
179
+ }], openOn: [{
180
+ type: Input
485
181
  }], children: [{
486
182
  type: ContentChildren,
487
183
  args: [AXMenuItemComponent]
@@ -490,11 +186,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImpor
490
186
  args: ['class']
491
187
  }] } });
492
188
 
493
- const COMPONENT = [AXMenuItemComponent, AXMenuComponent, AXMenu2Component];
189
+ const COMPONENT = [AXMenuItemComponent, AXMenuComponent];
494
190
  const MODULES = [AXDecoratorModule, AXLoadingModule, AXTranslationModule, OverlayModule, AXPopoverModule];
495
191
  class AXMenuModule {
496
192
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
497
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.9", ngImport: i0, type: AXMenuModule, declarations: [AXMenuItemComponent, AXMenuComponent, AXMenu2Component], imports: [CommonModule, AXDecoratorModule, AXLoadingModule, AXTranslationModule, OverlayModule, AXPopoverModule], exports: [AXMenuItemComponent, AXMenuComponent, AXMenu2Component] }); }
193
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.9", ngImport: i0, type: AXMenuModule, declarations: [AXMenuItemComponent, AXMenuComponent], imports: [CommonModule, AXDecoratorModule, AXLoadingModule, AXTranslationModule, OverlayModule, AXPopoverModule], exports: [AXMenuItemComponent, AXMenuComponent] }); }
498
194
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXMenuModule, imports: [CommonModule, MODULES] }); }
499
195
  }
500
196
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXMenuModule, decorators: [{
@@ -511,5 +207,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImpor
511
207
  * Generated bundle index. Do not edit.
512
208
  */
513
209
 
514
- export { AXMenu2Component, AXMenuComponent, AXMenuItemComponent, AXMenuModule, AXRootMenu };
210
+ export { AXMenuComponent, AXMenuItemComponent, AXMenuModule, AXRootMenu };
515
211
  //# sourceMappingURL=acorex-components-menu.mjs.map