@acorex/components 18.6.0 → 18.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (425) hide show
  1. package/calendar/lib/calendar-range.component.d.ts +1 -1
  2. package/calendar/lib/calendar.component.d.ts +1 -1
  3. package/color-box/lib/color-box.component.d.ts +1 -1
  4. package/conversation/lib/conversation-input/conversation-input.component.d.ts +1 -1
  5. package/datetime-box/lib/datetime-box.component.d.ts +1 -1
  6. package/datetime-picker/lib/datetime-picker.component.d.ts +1 -1
  7. package/esm2022/action-sheet/lib/action-sheet.component.mjs +3 -3
  8. package/esm2022/action-sheet/lib/action-sheet.module.mjs +4 -4
  9. package/esm2022/action-sheet/lib/action-sheet.service.mjs +3 -3
  10. package/esm2022/alert/lib/alert.component.mjs +3 -3
  11. package/esm2022/alert/lib/alert.module.mjs +4 -4
  12. package/esm2022/audio-wave/lib/audio-wave.component.mjs +3 -3
  13. package/esm2022/audio-wave/lib/audio-wave.module.mjs +4 -4
  14. package/esm2022/avatar/lib/avatar-group.component.mjs +3 -3
  15. package/esm2022/avatar/lib/avatar.component.mjs +3 -3
  16. package/esm2022/avatar/lib/avatar.module.mjs +4 -4
  17. package/esm2022/badge/lib/badge.component.mjs +3 -3
  18. package/esm2022/badge/lib/badge.module.mjs +4 -4
  19. package/esm2022/bottom-navigation/lib/bottom-navigation-item/bottom-navigation-item.component.mjs +3 -3
  20. package/esm2022/bottom-navigation/lib/bottom-navigation.component.mjs +3 -3
  21. package/esm2022/bottom-navigation/lib/bottom-navigation.module.mjs +4 -4
  22. package/esm2022/breadcrumbs/lib/breadcrumbs-item.component.mjs +3 -3
  23. package/esm2022/breadcrumbs/lib/breadcrumbs.component.mjs +3 -3
  24. package/esm2022/breadcrumbs/lib/breadcrumbs.module.mjs +4 -4
  25. package/esm2022/button/lib/button-item-list.component.mjs +3 -3
  26. package/esm2022/button/lib/button-item.component.mjs +3 -3
  27. package/esm2022/button/lib/button.component.mjs +3 -3
  28. package/esm2022/button/lib/button.module.mjs +4 -4
  29. package/esm2022/button-group/lib/button-group.component.mjs +3 -3
  30. package/esm2022/button-group/lib/button-group.module.mjs +4 -4
  31. package/esm2022/calendar/lib/calendar-range.component.mjs +3 -3
  32. package/esm2022/calendar/lib/calendar.class.mjs +3 -3
  33. package/esm2022/calendar/lib/calendar.component.mjs +3 -3
  34. package/esm2022/calendar/lib/calendar.module.mjs +4 -4
  35. package/esm2022/check-box/lib/check-box.component.mjs +3 -3
  36. package/esm2022/check-box/lib/check-box.module.mjs +4 -4
  37. package/esm2022/chips/lib/chips.component.mjs +3 -3
  38. package/esm2022/chips/lib/chips.module.mjs +4 -4
  39. package/esm2022/circular-progress/lib/circular-progress.component.mjs +3 -3
  40. package/esm2022/circular-progress/lib/circular-progress.module.mjs +4 -4
  41. package/esm2022/collapse/lib/collapse-group.component.mjs +3 -3
  42. package/esm2022/collapse/lib/collapse.component.mjs +3 -3
  43. package/esm2022/collapse/lib/collapse.module.mjs +4 -4
  44. package/esm2022/color-box/lib/color-box.component.mjs +3 -3
  45. package/esm2022/color-box/lib/color-box.module.mjs +4 -4
  46. package/esm2022/color-palette/lib/color-palette-input.component.mjs +3 -3
  47. package/esm2022/color-palette/lib/color-palette-picker.component.mjs +4 -4
  48. package/esm2022/color-palette/lib/color-palette-preview.component.mjs +3 -3
  49. package/esm2022/color-palette/lib/color-palette-swatches.component.mjs +3 -3
  50. package/esm2022/color-palette/lib/color-palette.class.mjs +6 -6
  51. package/esm2022/color-palette/lib/color-palette.component.mjs +3 -3
  52. package/esm2022/color-palette/lib/color-palette.module.mjs +4 -4
  53. package/esm2022/comment/lib/comment-container/comment-container.component.mjs +3 -3
  54. package/esm2022/comment/lib/comment-item/comment-item.component.mjs +3 -3
  55. package/esm2022/comment/lib/comment-like/comment-like.component.mjs +3 -3
  56. package/esm2022/comment/lib/comment-reply/comment-reply.component.mjs +3 -3
  57. package/esm2022/comment/lib/comment-reply-text/comment-reply-text.component.mjs +3 -3
  58. package/esm2022/comment/lib/comment-view/comment-view.component.mjs +3 -3
  59. package/esm2022/comment/lib/comment.module.mjs +4 -4
  60. package/esm2022/comment/lib/services/comment.service.mjs +3 -3
  61. package/esm2022/common/lib/classes/components.class.mjs +21 -21
  62. package/esm2022/common/lib/common.module.mjs +4 -4
  63. package/esm2022/common/lib/components/base-component.class.mjs +3 -3
  64. package/esm2022/common/lib/components/input-base-value-component.class.mjs +3 -3
  65. package/esm2022/common/lib/components/look-component.class.mjs +3 -3
  66. package/esm2022/common/lib/components/selection-base.component.class.mjs +6 -6
  67. package/esm2022/common/lib/components/value-component.class.mjs +3 -3
  68. package/esm2022/common/lib/directives/auto-focus.directive.mjs +3 -3
  69. package/esm2022/common/lib/directives/delayed-value-changed.directive.mjs +3 -3
  70. package/esm2022/common/lib/directives/hotkey.directive.mjs +3 -3
  71. package/esm2022/common/lib/directives/infinite-scroll.directive.mjs +3 -3
  72. package/esm2022/common/lib/directives/inverted-color.directive.mjs +3 -3
  73. package/esm2022/common/lib/directives/responsive.directive.mjs +3 -3
  74. package/esm2022/common/lib/directives/ripple.directive.mjs +3 -3
  75. package/esm2022/common/lib/services/dom.service.mjs +3 -3
  76. package/esm2022/common/lib/services/hotkey.service.mjs +3 -3
  77. package/esm2022/conversation/lib/conversation-container/conversation-container.component.mjs +3 -3
  78. package/esm2022/conversation/lib/conversation-input/conversation-input.component.mjs +3 -3
  79. package/esm2022/conversation/lib/conversation-message/conversation-message.component.mjs +3 -3
  80. package/esm2022/conversation/lib/conversation-messages/conversation-message-audio/conversation-message-audio.component.mjs +3 -3
  81. package/esm2022/conversation/lib/conversation-messages/conversation-message-file/conversation-message-file.component.mjs +3 -3
  82. package/esm2022/conversation/lib/conversation-messages/conversation-message-image/conversation-message-image.component.mjs +3 -3
  83. package/esm2022/conversation/lib/conversation-messages/conversation-message-image-popup/conversation-message-image-popup.component.mjs +3 -3
  84. package/esm2022/conversation/lib/conversation-messages/conversation-message-text/conversation-message-text.component.mjs +3 -3
  85. package/esm2022/conversation/lib/conversation-messages/conversation-message-video/conversation-message-video.component.mjs +3 -3
  86. package/esm2022/conversation/lib/conversation-messages/conversation-message-voice/conversation-message-voice.component.mjs +3 -3
  87. package/esm2022/conversation/lib/conversation-view/conversation-view.component.mjs +3 -3
  88. package/esm2022/conversation/lib/conversation.module.mjs +4 -4
  89. package/esm2022/conversation/lib/conversation.types.mjs +3 -3
  90. package/esm2022/conversation/lib/services/conversation-message-type-registry.service.mjs +3 -3
  91. package/esm2022/conversation/lib/services/conversation.service.mjs +3 -3
  92. package/esm2022/conversation/lib/services/recording.service.mjs +3 -3
  93. package/esm2022/data-pager/lib/data-pager-base.component.mjs +6 -6
  94. package/esm2022/data-pager/lib/data-pager-info.component.mjs +3 -3
  95. package/esm2022/data-pager/lib/data-pager-input-selector.component.mjs +3 -3
  96. package/esm2022/data-pager/lib/data-pager-next-buttons.components.mjs +3 -3
  97. package/esm2022/data-pager/lib/data-pager-numeric-selector.component.mjs +3 -3
  98. package/esm2022/data-pager/lib/data-pager-pagesize-dropdown.component.mjs +3 -3
  99. package/esm2022/data-pager/lib/data-pager-prev-buttons.component.mjs +3 -3
  100. package/esm2022/data-pager/lib/data-pager.component.mjs +3 -3
  101. package/esm2022/data-pager/lib/data-pager.module.mjs +4 -4
  102. package/esm2022/data-table/lib/base-data-table.class.mjs +3 -3
  103. package/esm2022/data-table/lib/columns/data-table-column-resizable.directive.mjs +3 -3
  104. package/esm2022/data-table/lib/columns/data-table-column.mjs +3 -3
  105. package/esm2022/data-table/lib/columns/data-text-column.component.mjs +3 -3
  106. package/esm2022/data-table/lib/columns/row-command-column.component.mjs +6 -6
  107. package/esm2022/data-table/lib/columns/row-index-column.component.mjs +3 -3
  108. package/esm2022/data-table/lib/columns/row-select-column.component.mjs +3 -3
  109. package/esm2022/data-table/lib/data-table/data-table.component.mjs +4 -4
  110. package/esm2022/data-table/lib/data-table.module.mjs +4 -4
  111. package/esm2022/data-table/lib/infinite-scroll-data-table/infinite-scroll-data-table.component.mjs +3 -3
  112. package/esm2022/datetime-box/lib/datetime-box.component.mjs +3 -3
  113. package/esm2022/datetime-box/lib/datetime-box.module.mjs +4 -4
  114. package/esm2022/datetime-input/lib/datetime-input.component.mjs +3 -3
  115. package/esm2022/datetime-input/lib/datetime-input.module.mjs +4 -4
  116. package/esm2022/datetime-picker/lib/datetime-picker.component.mjs +3 -3
  117. package/esm2022/datetime-picker/lib/datetime-picker.module.mjs +4 -4
  118. package/esm2022/decorators/lib/components/clear-button.component.mjs +3 -3
  119. package/esm2022/decorators/lib/components/close-button.component.mjs +3 -3
  120. package/esm2022/decorators/lib/components/generic-content.component.mjs +3 -3
  121. package/esm2022/decorators/lib/components/icon.component.mjs +3 -3
  122. package/esm2022/decorators/lib/decorators.module.mjs +4 -4
  123. package/esm2022/dialog/lib/dialog.component.mjs +4 -4
  124. package/esm2022/dialog/lib/dialog.module.mjs +4 -4
  125. package/esm2022/dialog/lib/dialog.service.mjs +3 -3
  126. package/esm2022/drawer/lib/drawer-container.component.mjs +3 -3
  127. package/esm2022/drawer/lib/drawer.component.mjs +3 -3
  128. package/esm2022/drawer/lib/drawer.module.mjs +4 -4
  129. package/esm2022/dropdown/lib/dropdown-box.class.mjs +3 -3
  130. package/esm2022/dropdown/lib/dropdown-box.component.mjs +3 -3
  131. package/esm2022/dropdown/lib/dropdown-panel.component.mjs +3 -3
  132. package/esm2022/dropdown/lib/dropdown.module.mjs +4 -4
  133. package/esm2022/dropdown-button/lib/dropdown-button.component.mjs +3 -3
  134. package/esm2022/dropdown-button/lib/dropdown-button.module.mjs +4 -4
  135. package/esm2022/form/lib/form-field.component.mjs +3 -3
  136. package/esm2022/form/lib/form.component.mjs +3 -3
  137. package/esm2022/form/lib/form.module.mjs +4 -4
  138. package/esm2022/form/lib/validation-rule.directive.mjs +3 -3
  139. package/esm2022/form/lib/validation-summary.component.mjs +3 -3
  140. package/esm2022/image/lib/image.component.mjs +3 -3
  141. package/esm2022/image/lib/image.module.mjs +4 -4
  142. package/esm2022/label/lib/label.component.mjs +3 -3
  143. package/esm2022/label/lib/label.module.mjs +4 -4
  144. package/esm2022/list/lib/list.component.mjs +3 -3
  145. package/esm2022/list/lib/list.module.mjs +4 -4
  146. package/esm2022/loading/lib/loading-spinner.component.mjs +3 -3
  147. package/esm2022/loading/lib/loading.component.mjs +3 -3
  148. package/esm2022/loading/lib/loading.directive.mjs +3 -3
  149. package/esm2022/loading/lib/loading.module.mjs +4 -4
  150. package/esm2022/loading/lib/loading.service.mjs +3 -3
  151. package/esm2022/loading-dialog/lib/loading-dialog.component.mjs +42 -5
  152. package/esm2022/loading-dialog/lib/loading-dialog.module.mjs +4 -4
  153. package/esm2022/loading-dialog/lib/loading-dialog.service.mjs +3 -3
  154. package/esm2022/menu/lib/menu-item/menu-item.component.mjs +50 -4
  155. package/esm2022/menu/lib/menu.component.mjs +10 -4
  156. package/esm2022/menu/lib/menu.module.mjs +4 -4
  157. package/esm2022/menu/lib/menu.service.mjs +3 -3
  158. package/esm2022/nav/lib/nav-item/nav-item.component.mjs +26 -4
  159. package/esm2022/nav/lib/nav.component.mjs +8 -4
  160. package/esm2022/nav/lib/nav.module.mjs +4 -4
  161. package/esm2022/navbar/lib/navbar.component.mjs +9 -4
  162. package/esm2022/navbar/lib/navbar.module.mjs +4 -4
  163. package/esm2022/notification/lib/notification.component.mjs +13 -4
  164. package/esm2022/notification/lib/notification.module.mjs +4 -4
  165. package/esm2022/notification/lib/notification.service.mjs +3 -3
  166. package/esm2022/number-box/lib/number-box.component.mjs +77 -8
  167. package/esm2022/number-box/lib/number-box.module.mjs +4 -4
  168. package/esm2022/otp/lib/otp.component.mjs +38 -4
  169. package/esm2022/otp/lib/otp.module.mjs +4 -4
  170. package/esm2022/page/lib/base-page.class.mjs +3 -3
  171. package/esm2022/page/lib/page.component.mjs +18 -4
  172. package/esm2022/page/lib/page.module.mjs +4 -4
  173. package/esm2022/paint/acorex-components-paint.mjs +5 -0
  174. package/esm2022/paint/index.mjs +8 -0
  175. package/esm2022/paint/lib/paint/paint-container/paint-container.component.mjs +38 -0
  176. package/esm2022/paint/lib/paint/paint-toolbar/paint-toolbar.component.mjs +15 -0
  177. package/esm2022/paint/lib/paint/paint-tools/paint-color-picker/paint-color-picker.component.mjs +46 -0
  178. package/esm2022/paint/lib/paint/paint-tools/paint-pen-cap/paint-pen-cap.component.mjs +37 -0
  179. package/esm2022/paint/lib/paint/paint-tools/paint-pen-mode-changer/paint-pen-mode-changer.component.mjs +55 -0
  180. package/esm2022/paint/lib/paint/paint-view/paint-view.component.mjs +154 -0
  181. package/esm2022/paint/lib/paint/paint.service.mjs +17 -0
  182. package/esm2022/paint/lib/paint.module.mjs +50 -0
  183. package/esm2022/password-box/lib/password-box.component.mjs +13 -4
  184. package/esm2022/password-box/lib/password-box.module.mjs +4 -4
  185. package/esm2022/phone-box/lib/phone-box.component.mjs +38 -4
  186. package/esm2022/phone-box/lib/phone-box.module.mjs +4 -4
  187. package/esm2022/picker/lib/picker-column.directive.mjs +3 -3
  188. package/esm2022/picker/lib/picker.component.mjs +29 -4
  189. package/esm2022/picker/lib/picker.module.mjs +4 -4
  190. package/esm2022/popover/lib/popover.component.mjs +118 -4
  191. package/esm2022/popover/lib/popover.module.mjs +4 -4
  192. package/esm2022/popup/lib/popup.component.mjs +33 -8
  193. package/esm2022/popup/lib/popup.module.mjs +4 -4
  194. package/esm2022/popup/lib/popup.service.mjs +3 -3
  195. package/esm2022/progress-bar/lib/progress-bar.component.mjs +33 -4
  196. package/esm2022/progress-bar/lib/progress-bar.module.mjs +4 -4
  197. package/esm2022/radio/lib/radio.component.mjs +8 -5
  198. package/esm2022/radio/lib/radio.module.mjs +4 -4
  199. package/esm2022/range-slider/lib/range-slider.component.mjs +8 -4
  200. package/esm2022/range-slider/lib/range-slider.module.mjs +4 -4
  201. package/esm2022/result/lib/result.component.mjs +18 -4
  202. package/esm2022/result/lib/result.module.mjs +4 -4
  203. package/esm2022/routing-progress/lib/routing-progress.component.mjs +19 -4
  204. package/esm2022/routing-progress/lib/routing-progress.module.mjs +4 -4
  205. package/esm2022/scheduler/lib/scheduler-month-view.component.mjs +3 -3
  206. package/esm2022/scheduler/lib/scheduler-week-view.component.mjs +3 -3
  207. package/esm2022/scheduler/lib/scheduler.component.mjs +6 -4
  208. package/esm2022/scheduler/lib/scheduler.module.mjs +4 -4
  209. package/esm2022/scss/lib/scss.module.mjs +4 -4
  210. package/esm2022/search-box/lib/search-box.component.mjs +3 -3
  211. package/esm2022/search-box/lib/search-box.module.mjs +4 -4
  212. package/esm2022/select-box/lib/select-box.component.mjs +5 -5
  213. package/esm2022/select-box/lib/select-box.module.mjs +4 -4
  214. package/esm2022/selection-list/lib/selection-list.component.mjs +3 -3
  215. package/esm2022/selection-list/lib/selection-list.module.mjs +4 -4
  216. package/esm2022/side-menu/lib/side-menu-item/side-menu-item.compoent.mjs +3 -3
  217. package/esm2022/side-menu/lib/side-menu.component.mjs +3 -3
  218. package/esm2022/side-menu/lib/side-menu.module.mjs +4 -4
  219. package/esm2022/skeleton/lib/skeleton.component.mjs +3 -3
  220. package/esm2022/skeleton/lib/skeleton.module.mjs +4 -4
  221. package/esm2022/slider/lib/slider.component.mjs +3 -3
  222. package/esm2022/slider/lib/slider.module.mjs +4 -4
  223. package/esm2022/step-wizard/lib/step-wizard-item/step-wizard-item.component.mjs +11 -8
  224. package/esm2022/step-wizard/lib/step-wizard.class.mjs +1 -1
  225. package/esm2022/step-wizard/lib/step-wizard.component.mjs +52 -31
  226. package/esm2022/step-wizard/lib/step-wizard.directive.mjs +3 -3
  227. package/esm2022/step-wizard/lib/step-wizard.module.mjs +4 -4
  228. package/esm2022/switch/lib/switch-content.component.mjs +3 -3
  229. package/esm2022/switch/lib/switch.component.mjs +3 -3
  230. package/esm2022/switch/lib/switch.module.mjs +4 -4
  231. package/esm2022/tabs/lib/tab-content.directive.mjs +3 -3
  232. package/esm2022/tabs/lib/tab-item.component.mjs +3 -3
  233. package/esm2022/tabs/lib/tabs.component.mjs +4 -4
  234. package/esm2022/tabs/lib/tabs.module.mjs +4 -4
  235. package/esm2022/tag/lib/tag.component.mjs +8 -4
  236. package/esm2022/tag/lib/tag.module.mjs +4 -4
  237. package/esm2022/text-area/lib/text-area.component.mjs +8 -4
  238. package/esm2022/text-area/lib/text-area.module.mjs +4 -4
  239. package/esm2022/text-box/lib/mask-options.directive.mjs +3 -3
  240. package/esm2022/text-box/lib/text-box.component.mjs +3 -3
  241. package/esm2022/text-box/lib/text-box.module.mjs +4 -4
  242. package/esm2022/toast/lib/toast.component.mjs +3 -3
  243. package/esm2022/toast/lib/toast.module.mjs +4 -4
  244. package/esm2022/toast/lib/toast.service.mjs +3 -3
  245. package/esm2022/tooltip/lib/tooltip.component.mjs +3 -3
  246. package/esm2022/tooltip/lib/tooltip.directive.mjs +3 -3
  247. package/esm2022/tooltip/lib/tooltip.module.mjs +4 -4
  248. package/esm2022/uploader/lib/uploader-browse-handle.directive.mjs +3 -3
  249. package/esm2022/uploader/lib/uploader-dialog-container/uploader-dialog-container.component.mjs +3 -3
  250. package/esm2022/uploader/lib/uploader-drop-zone/uploader-drop-zone.component.mjs +3 -3
  251. package/esm2022/uploader/lib/uploader-list/uploader-list.component.mjs +7 -9
  252. package/esm2022/uploader/lib/uploader-zone.directive.mjs +3 -3
  253. package/esm2022/uploader/lib/uploader.models.mjs +21 -11
  254. package/esm2022/uploader/lib/uploader.module.mjs +4 -4
  255. package/esm2022/uploader/lib/uploader.service.mjs +50 -28
  256. package/esm2022/wysiwyg/index.mjs +7 -1
  257. package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-container/wysiwyg-container.component.mjs +11 -19
  258. package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-toolbar/wysiwyg-toolbar.component.mjs +7 -259
  259. package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-alignment/wysiwyg-alignment.component.mjs +59 -0
  260. package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-colors/wysiwyg-colors.component.mjs +53 -0
  261. package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-font-style/wysiwyg-font-style.component.mjs +150 -0
  262. package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-history/wysiwyg-history.component.mjs +36 -0
  263. package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-insert/wysiwyg-insert.component.mjs +49 -0
  264. package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-list/wysiwyg-list.component.mjs +67 -0
  265. package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-view/wysiwyg-view.component.mjs +9 -8
  266. package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg.service.mjs +4 -5
  267. package/esm2022/wysiwyg/lib/wysiwyg.module.mjs +38 -6
  268. package/fesm2022/acorex-components-action-sheet.mjs +10 -10
  269. package/fesm2022/acorex-components-alert.mjs +7 -7
  270. package/fesm2022/acorex-components-audio-wave.mjs +7 -7
  271. package/fesm2022/acorex-components-avatar.mjs +10 -10
  272. package/fesm2022/acorex-components-badge.mjs +7 -7
  273. package/fesm2022/acorex-components-bottom-navigation.mjs +10 -10
  274. package/fesm2022/acorex-components-breadcrumbs.mjs +10 -10
  275. package/fesm2022/acorex-components-button-group.mjs +7 -7
  276. package/fesm2022/acorex-components-button.mjs +13 -13
  277. package/fesm2022/acorex-components-calendar.mjs +13 -13
  278. package/fesm2022/acorex-components-check-box.mjs +7 -7
  279. package/fesm2022/acorex-components-chips.mjs +7 -7
  280. package/fesm2022/acorex-components-circular-progress.mjs +7 -7
  281. package/fesm2022/acorex-components-collapse.mjs +10 -10
  282. package/fesm2022/acorex-components-color-box.mjs +7 -7
  283. package/fesm2022/acorex-components-color-palette.mjs +26 -26
  284. package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
  285. package/fesm2022/acorex-components-comment.mjs +25 -25
  286. package/fesm2022/acorex-components-common.mjs +70 -70
  287. package/fesm2022/acorex-components-conversation.mjs +49 -49
  288. package/fesm2022/acorex-components-data-pager.mjs +31 -31
  289. package/fesm2022/acorex-components-data-table.mjs +35 -35
  290. package/fesm2022/acorex-components-data-table.mjs.map +1 -1
  291. package/fesm2022/acorex-components-datetime-box.mjs +7 -7
  292. package/fesm2022/acorex-components-datetime-input.mjs +7 -7
  293. package/fesm2022/acorex-components-datetime-picker.mjs +7 -7
  294. package/fesm2022/acorex-components-decorators.mjs +16 -16
  295. package/fesm2022/acorex-components-dialog.mjs +11 -11
  296. package/fesm2022/acorex-components-dialog.mjs.map +1 -1
  297. package/fesm2022/acorex-components-drawer.mjs +10 -10
  298. package/fesm2022/acorex-components-dropdown-button.mjs +7 -7
  299. package/fesm2022/acorex-components-dropdown.mjs +13 -13
  300. package/fesm2022/acorex-components-form.mjs +16 -16
  301. package/fesm2022/acorex-components-image.mjs +7 -7
  302. package/fesm2022/acorex-components-label.mjs +7 -7
  303. package/fesm2022/acorex-components-list.mjs +7 -7
  304. package/fesm2022/acorex-components-loading-dialog.mjs +48 -11
  305. package/fesm2022/acorex-components-loading-dialog.mjs.map +1 -1
  306. package/fesm2022/acorex-components-loading.mjs +16 -16
  307. package/fesm2022/acorex-components-menu.mjs +65 -13
  308. package/fesm2022/acorex-components-menu.mjs.map +1 -1
  309. package/fesm2022/acorex-components-nav.mjs +36 -10
  310. package/fesm2022/acorex-components-nav.mjs.map +1 -1
  311. package/fesm2022/acorex-components-navbar.mjs +12 -7
  312. package/fesm2022/acorex-components-navbar.mjs.map +1 -1
  313. package/fesm2022/acorex-components-notification.mjs +19 -10
  314. package/fesm2022/acorex-components-notification.mjs.map +1 -1
  315. package/fesm2022/acorex-components-number-box.mjs +80 -11
  316. package/fesm2022/acorex-components-number-box.mjs.map +1 -1
  317. package/fesm2022/acorex-components-otp.mjs +41 -7
  318. package/fesm2022/acorex-components-otp.mjs.map +1 -1
  319. package/fesm2022/acorex-components-page.mjs +24 -10
  320. package/fesm2022/acorex-components-page.mjs.map +1 -1
  321. package/fesm2022/acorex-components-paint.mjs +386 -0
  322. package/fesm2022/acorex-components-paint.mjs.map +1 -0
  323. package/fesm2022/acorex-components-password-box.mjs +16 -7
  324. package/fesm2022/acorex-components-password-box.mjs.map +1 -1
  325. package/fesm2022/acorex-components-phone-box.mjs +41 -7
  326. package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
  327. package/fesm2022/acorex-components-picker.mjs +35 -10
  328. package/fesm2022/acorex-components-picker.mjs.map +1 -1
  329. package/fesm2022/acorex-components-popover.mjs +121 -7
  330. package/fesm2022/acorex-components-popover.mjs.map +1 -1
  331. package/fesm2022/acorex-components-popup.mjs +39 -14
  332. package/fesm2022/acorex-components-popup.mjs.map +1 -1
  333. package/fesm2022/acorex-components-progress-bar.mjs +36 -7
  334. package/fesm2022/acorex-components-progress-bar.mjs.map +1 -1
  335. package/fesm2022/acorex-components-radio.mjs +11 -8
  336. package/fesm2022/acorex-components-radio.mjs.map +1 -1
  337. package/fesm2022/acorex-components-range-slider.mjs +11 -7
  338. package/fesm2022/acorex-components-range-slider.mjs.map +1 -1
  339. package/fesm2022/acorex-components-result.mjs +21 -7
  340. package/fesm2022/acorex-components-result.mjs.map +1 -1
  341. package/fesm2022/acorex-components-routing-progress.mjs +22 -7
  342. package/fesm2022/acorex-components-routing-progress.mjs.map +1 -1
  343. package/fesm2022/acorex-components-scheduler.mjs +15 -13
  344. package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
  345. package/fesm2022/acorex-components-scss.mjs +4 -4
  346. package/fesm2022/acorex-components-search-box.mjs +7 -7
  347. package/fesm2022/acorex-components-select-box.mjs +8 -8
  348. package/fesm2022/acorex-components-select-box.mjs.map +1 -1
  349. package/fesm2022/acorex-components-selection-list.mjs +7 -7
  350. package/fesm2022/acorex-components-side-menu.mjs +10 -10
  351. package/fesm2022/acorex-components-skeleton.mjs +7 -7
  352. package/fesm2022/acorex-components-slider.mjs +7 -7
  353. package/fesm2022/acorex-components-step-wizard.mjs +69 -45
  354. package/fesm2022/acorex-components-step-wizard.mjs.map +1 -1
  355. package/fesm2022/acorex-components-switch.mjs +10 -10
  356. package/fesm2022/acorex-components-tabs.mjs +13 -13
  357. package/fesm2022/acorex-components-tabs.mjs.map +1 -1
  358. package/fesm2022/acorex-components-tag.mjs +11 -7
  359. package/fesm2022/acorex-components-tag.mjs.map +1 -1
  360. package/fesm2022/acorex-components-text-area.mjs +11 -7
  361. package/fesm2022/acorex-components-text-area.mjs.map +1 -1
  362. package/fesm2022/acorex-components-text-box.mjs +10 -10
  363. package/fesm2022/acorex-components-toast.mjs +10 -10
  364. package/fesm2022/acorex-components-tooltip.mjs +10 -10
  365. package/fesm2022/acorex-components-uploader.mjs +90 -62
  366. package/fesm2022/acorex-components-uploader.mjs.map +1 -1
  367. package/fesm2022/acorex-components-wysiwyg.mjs +308 -159
  368. package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
  369. package/loading-dialog/lib/loading-dialog.component.d.ts +39 -1
  370. package/menu/lib/menu-item/menu-item.component.d.ts +52 -0
  371. package/menu/lib/menu.component.d.ts +7 -0
  372. package/nav/lib/nav-item/nav-item.component.d.ts +22 -0
  373. package/nav/lib/nav.component.d.ts +4 -0
  374. package/navbar/lib/navbar.component.d.ts +5 -0
  375. package/notification/lib/notification.component.d.ts +11 -0
  376. package/number-box/lib/number-box.component.d.ts +74 -1
  377. package/otp/lib/otp.component.d.ts +35 -1
  378. package/package.json +61 -55
  379. package/page/lib/page.component.d.ts +15 -0
  380. package/paint/README.md +3 -0
  381. package/paint/index.d.ts +7 -0
  382. package/paint/lib/paint/paint-container/paint-container.component.d.ts +16 -0
  383. package/paint/lib/paint/paint-toolbar/paint-toolbar.component.d.ts +9 -0
  384. package/paint/lib/paint/paint-tools/paint-color-picker/paint-color-picker.component.d.ts +27 -0
  385. package/paint/lib/paint/paint-tools/paint-pen-cap/paint-pen-cap.component.d.ts +20 -0
  386. package/paint/lib/paint/paint-tools/paint-pen-mode-changer/paint-pen-mode-changer.component.d.ts +33 -0
  387. package/paint/lib/paint/paint-view/paint-view.component.d.ts +56 -0
  388. package/paint/lib/paint/paint.service.d.ts +10 -0
  389. package/paint/lib/paint.module.d.ts +19 -0
  390. package/password-box/lib/password-box.component.d.ts +14 -1
  391. package/phone-box/lib/phone-box.component.d.ts +39 -1
  392. package/picker/lib/picker.component.d.ts +29 -0
  393. package/popover/lib/popover.component.d.ts +129 -0
  394. package/popup/lib/popup.component.d.ts +39 -4
  395. package/progress-bar/lib/progress-bar.component.d.ts +30 -0
  396. package/radio/lib/radio.component.d.ts +7 -1
  397. package/range-slider/lib/range-slider.component.d.ts +4 -0
  398. package/result/lib/result.component.d.ts +14 -0
  399. package/routing-progress/lib/routing-progress.component.d.ts +16 -0
  400. package/scheduler/lib/scheduler.component.d.ts +2 -0
  401. package/search-box/lib/search-box.component.d.ts +1 -1
  402. package/select-box/lib/select-box.component.d.ts +1 -1
  403. package/slider/lib/slider.component.d.ts +1 -1
  404. package/step-wizard/lib/step-wizard-item/step-wizard-item.component.d.ts +2 -1
  405. package/step-wizard/lib/step-wizard.class.d.ts +1 -1
  406. package/step-wizard/lib/step-wizard.component.d.ts +23 -9
  407. package/switch/lib/switch.component.d.ts +1 -1
  408. package/tag/lib/tag.component.d.ts +4 -0
  409. package/text-area/lib/text-area.component.d.ts +6 -1
  410. package/text-box/lib/text-box.component.d.ts +1 -1
  411. package/uploader/lib/uploader-list/uploader-list.component.d.ts +1 -2
  412. package/uploader/lib/uploader.models.d.ts +9 -4
  413. package/uploader/lib/uploader.service.d.ts +5 -1
  414. package/wysiwyg/index.d.ts +6 -0
  415. package/wysiwyg/lib/wysiwyg/wysiwyg-container/wysiwyg-container.component.d.ts +8 -16
  416. package/wysiwyg/lib/wysiwyg/wysiwyg-toolbar/wysiwyg-toolbar.component.d.ts +1 -99
  417. package/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-alignment/wysiwyg-alignment.component.d.ts +31 -0
  418. package/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-colors/wysiwyg-colors.component.d.ts +35 -0
  419. package/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-font-style/wysiwyg-font-style.component.d.ts +42 -0
  420. package/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-history/wysiwyg-history.component.d.ts +21 -0
  421. package/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-insert/wysiwyg-insert.component.d.ts +35 -0
  422. package/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-list/wysiwyg-list.component.d.ts +23 -0
  423. package/wysiwyg/lib/wysiwyg/wysiwyg-view/wysiwyg-view.component.d.ts +3 -1
  424. package/wysiwyg/lib/wysiwyg/wysiwyg.service.d.ts +0 -1
  425. package/wysiwyg/lib/wysiwyg.module.d.ts +14 -8
@@ -31,8 +31,8 @@ class AXLoadingSpinnerComponent {
31
31
  */
32
32
  this.stroke = 3;
33
33
  }
34
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXLoadingSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
35
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.2", type: AXLoadingSpinnerComponent, selector: "ax-loading-spinner", inputs: { color: "color", size: "size", stroke: "stroke" }, ngImport: i0, template: `
34
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXLoadingSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
35
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXLoadingSpinnerComponent, selector: "ax-loading-spinner", inputs: { color: "color", size: "size", stroke: "stroke" }, ngImport: i0, template: `
36
36
  <span
37
37
  class="ax-loader ax-{{ color }}"
38
38
  [style.width.px]="size"
@@ -45,7 +45,7 @@ class AXLoadingSpinnerComponent {
45
45
  }
46
46
  `, isInline: true, styles: ["ax-loading-spinner .ax-loader{animation:rotation .5s linear infinite;box-sizing:border-box;display:inline-block;height:3rem;width:3rem;border-radius:9999px;border-width:6px;border-style:solid;border-color:rgba(var(--ax-color-ghost-fore));border-bottom-color:transparent!important}ax-loading-spinner .ax-loader.ax-primary{border-color:rgba(var(--ax-color-primary-500))}ax-loading-spinner .ax-loader.ax-secondary{border-color:rgba(var(--ax-color-secondary-500))}ax-loading-spinner .ax-loader.ax-success{border-color:rgba(var(--ax-color-success-500))}ax-loading-spinner .ax-loader.ax-warning{border-color:rgba(var(--ax-color-warning-500))}ax-loading-spinner .ax-loader.ax-danger{border-color:rgba(var(--ax-color-danger-500))}ax-loading-spinner .ax-loader.ax-info{border-color:rgba(var(--ax-color-info-500))}ax-loading-spinner .ax-loader.ax-white{border-color:rgba(var(--ax-color-white))}ax-loading-spinner .ax-loader.ax-black{border-color:rgba(var(--ax-color-black))}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ax-dark .ax-loader.ax-primary{border-color:rgba(var(--ax-color-primary-200))}.ax-dark .ax-loader.ax-secondary{border-color:rgba(var(--ax-color-secondary-200))}.ax-dark .ax-loader.ax-success{border-color:rgba(var(--ax-color-success-200))}.ax-dark .ax-loader.ax-warning{border-color:rgba(var(--ax-color-warning-200))}.ax-dark .ax-loader.ax-danger{border-color:rgba(var(--ax-color-danger-200))}.ax-dark .ax-loader.ax-info{border-color:rgba(var(--ax-color-info-200))}\n"], encapsulation: i0.ViewEncapsulation.None }); }
47
47
  }
48
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXLoadingSpinnerComponent, decorators: [{
48
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXLoadingSpinnerComponent, decorators: [{
49
49
  type: Component,
50
50
  args: [{ selector: 'ax-loading-spinner', template: `
51
51
  <span
@@ -136,10 +136,10 @@ class AXLoadingComponent extends MXBaseComponent {
136
136
  Object.assign(ref.instance, this.context);
137
137
  }
138
138
  }
139
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXLoadingComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
140
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.2", type: AXLoadingComponent, selector: "ax-loading", inputs: { visible: "visible", type: "type", context: "context" }, outputs: { visibleChange: "visibleChange" }, usesInheritance: true, ngImport: i0, template: ` <ng-template [cdkPortalOutlet]="_selectedPortal" (attached)="_handleAttched($event)"></ng-template> `, isInline: true, styles: ["ax-loading{position:relative}ax-loading:before,ax-loading:after{position:absolute;inset-inline-start:50%;top:50%;height:100%;width:100%;transform:translate(-50%);transform:translateY(-50%);transform:scale(0);border-radius:9999px;content:\"\"}ax-loading:before,ax-loading:after{background-color:transparent;animation:1s ease-in-out both ax-pulse;animation-duration:2s;animation-iteration-count:infinite}@keyframes ax-pulse{50%{transform:scale3d(1.05,1.05,1.05)}}ax-loading ax-loading-spinner{display:flex;gap:.75rem}.ax-loading-overlay-backdrop{background-color:rgba(var(--ax-color-surface));opacity:.85!important}.ax-loading-pane{height:100%!important;width:100%!important;bottom:0;inset-inline-end:0px;inset-inline-start:0px;top:0}.ax-loading-pane .cdk-dialog-container{display:flex!important;align-items:center;justify-content:center}.ax-loading-pane .cdk-dialog-container:focus,.ax-loading-pane .cdk-dialog-container:focus-visible,.ax-loading-pane .cdk-dialog-container:focus-within{outline:2px solid transparent;outline-offset:2px}\n"], dependencies: [{ kind: "directive", type: i1.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
139
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXLoadingComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
140
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXLoadingComponent, selector: "ax-loading", inputs: { visible: "visible", type: "type", context: "context" }, outputs: { visibleChange: "visibleChange" }, usesInheritance: true, ngImport: i0, template: ` <ng-template [cdkPortalOutlet]="_selectedPortal" (attached)="_handleAttched($event)"></ng-template> `, isInline: true, styles: ["ax-loading{position:relative}ax-loading:before,ax-loading:after{position:absolute;inset-inline-start:50%;top:50%;height:100%;width:100%;transform:translate(-50%);transform:translateY(-50%);transform:scale(0);border-radius:9999px;content:\"\"}ax-loading:before,ax-loading:after{background-color:transparent;animation:1s ease-in-out both ax-pulse;animation-duration:2s;animation-iteration-count:infinite}@keyframes ax-pulse{50%{transform:scale3d(1.05,1.05,1.05)}}ax-loading ax-loading-spinner{display:flex;gap:.75rem}.ax-loading-overlay-backdrop{background-color:rgba(var(--ax-color-surface));opacity:.85!important}.ax-loading-pane{height:100%!important;width:100%!important;bottom:0;inset-inline-end:0px;inset-inline-start:0px;top:0}.ax-loading-pane .cdk-dialog-container{display:flex!important;align-items:center;justify-content:center}.ax-loading-pane .cdk-dialog-container:focus,.ax-loading-pane .cdk-dialog-container:focus-visible,.ax-loading-pane .cdk-dialog-container:focus-within{outline:2px solid transparent;outline-offset:2px}\n"], dependencies: [{ kind: "directive", type: i1.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
141
141
  }
142
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXLoadingComponent, decorators: [{
142
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXLoadingComponent, decorators: [{
143
143
  type: Component,
144
144
  args: [{ selector: 'ax-loading', template: ` <ng-template [cdkPortalOutlet]="_selectedPortal" (attached)="_handleAttched($event)"></ng-template> `, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, styles: ["ax-loading{position:relative}ax-loading:before,ax-loading:after{position:absolute;inset-inline-start:50%;top:50%;height:100%;width:100%;transform:translate(-50%);transform:translateY(-50%);transform:scale(0);border-radius:9999px;content:\"\"}ax-loading:before,ax-loading:after{background-color:transparent;animation:1s ease-in-out both ax-pulse;animation-duration:2s;animation-iteration-count:infinite}@keyframes ax-pulse{50%{transform:scale3d(1.05,1.05,1.05)}}ax-loading ax-loading-spinner{display:flex;gap:.75rem}.ax-loading-overlay-backdrop{background-color:rgba(var(--ax-color-surface));opacity:.85!important}.ax-loading-pane{height:100%!important;width:100%!important;bottom:0;inset-inline-end:0px;inset-inline-start:0px;top:0}.ax-loading-pane .cdk-dialog-container{display:flex!important;align-items:center;justify-content:center}.ax-loading-pane .cdk-dialog-container:focus,.ax-loading-pane .cdk-dialog-container:focus-visible,.ax-loading-pane .cdk-dialog-container:focus-within{outline:2px solid transparent;outline-offset:2px}\n"] }]
145
145
  }], propDecorators: { visibleChange: [{
@@ -262,10 +262,10 @@ class AXLoadingService {
262
262
  getLoaderId(loaderId) {
263
263
  return loaderId ?? DEFAULT_LOADER_ID;
264
264
  }
265
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXLoadingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
266
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXLoadingService }); }
265
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXLoadingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
266
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXLoadingService }); }
267
267
  }
268
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXLoadingService, decorators: [{
268
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXLoadingService, decorators: [{
269
269
  type: Injectable
270
270
  }] });
271
271
 
@@ -291,10 +291,10 @@ class AXLoadingDirective {
291
291
  this.loadingService = loadingService;
292
292
  this._hostElement = this.elementRef.nativeElement;
293
293
  }
294
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXLoadingDirective, deps: [{ token: i0.ElementRef }, { token: AXLoadingService }], target: i0.ɵɵFactoryTarget.Directive }); }
295
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.2", type: AXLoadingDirective, selector: "[axIsLoading]", inputs: { isLoading: ["axIsLoading", "isLoading"] }, ngImport: i0 }); }
294
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXLoadingDirective, deps: [{ token: i0.ElementRef }, { token: AXLoadingService }], target: i0.ɵɵFactoryTarget.Directive }); }
295
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.0", type: AXLoadingDirective, selector: "[axIsLoading]", inputs: { isLoading: ["axIsLoading", "isLoading"] }, ngImport: i0 }); }
296
296
  }
297
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXLoadingDirective, decorators: [{
297
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXLoadingDirective, decorators: [{
298
298
  type: Directive,
299
299
  args: [{
300
300
  selector: '[axIsLoading]',
@@ -307,11 +307,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
307
307
  const COMPONENT = [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent];
308
308
  const MODULES = [CommonModule, OverlayModule, DialogModule, PortalModule];
309
309
  class AXLoadingModule {
310
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXLoadingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
311
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.2", ngImport: i0, type: AXLoadingModule, declarations: [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent], imports: [CommonModule, OverlayModule, DialogModule, PortalModule], exports: [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent] }); }
312
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXLoadingModule, providers: [AXLoadingService], imports: [MODULES] }); }
310
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXLoadingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
311
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXLoadingModule, declarations: [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent], imports: [CommonModule, OverlayModule, DialogModule, PortalModule], exports: [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent] }); }
312
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXLoadingModule, providers: [AXLoadingService], imports: [MODULES] }); }
313
313
  }
314
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXLoadingModule, decorators: [{
314
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXLoadingModule, decorators: [{
315
315
  type: NgModule,
316
316
  args: [{
317
317
  declarations: [...COMPONENT],
@@ -21,27 +21,60 @@ class AXMenuService {
21
21
  constructor() {
22
22
  this.activeMenus$ = new BehaviorSubject([]);
23
23
  }
24
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXMenuService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
25
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXMenuService, providedIn: 'root' }); }
24
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMenuService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
25
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMenuService, providedIn: 'root' }); }
26
26
  }
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXMenuService, decorators: [{
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMenuService, decorators: [{
28
28
  type: Injectable,
29
29
  args: [{
30
30
  providedIn: 'root',
31
31
  }]
32
32
  }] });
33
33
 
34
+ /**
35
+ * Represents a menu item component used within an `ax-menu`.
36
+ * @category Components
37
+ */
34
38
  class AXMenuItemComponent extends MXInteractiveComponent {
39
+ /** @ignore */
35
40
  constructor() {
36
41
  super();
42
+ /**
43
+ * Injects the `AXMenuService` for managing menu interactions.
44
+ */
37
45
  this.menuService = inject(AXMenuService);
46
+ /**
47
+ * The vertical offset for positioning, initialized to 0.
48
+ */
38
49
  this.offsetY = signal(0);
50
+ /**
51
+ * The horizontal offset for positioning, initialized to 0.
52
+ */
39
53
  this.offsetX = signal(0);
54
+ /**
55
+ * The text content, initialized to an empty string.
56
+ */
40
57
  this.text = input();
58
+ /**
59
+ * Indicates whether the item is active.
60
+ */
41
61
  this.active = input();
62
+ /**
63
+ * Emitted when the active state changes.
64
+ */
42
65
  this.activeChange = output();
66
+ /**
67
+ * Emitted when the element is clicked.
68
+ */
43
69
  this.onClick = output();
70
+ /**
71
+ * Indicates whether the component is a root menu item.
72
+ * @defaultValue false
73
+ */
44
74
  this.isRoot = false;
75
+ /**
76
+ * Injects the root menu service.
77
+ */
45
78
  this.rootMenu = inject(AXRootMenu);
46
79
  afterNextRender(() => {
47
80
  this.children.forEach((c) => {
@@ -52,6 +85,9 @@ class AXMenuItemComponent extends MXInteractiveComponent {
52
85
  this.getPlacement();
53
86
  });
54
87
  }
88
+ /**
89
+ * Closes the popover if it is open.
90
+ */
55
91
  close() {
56
92
  this.popover?.close();
57
93
  }
@@ -61,6 +97,7 @@ class AXMenuItemComponent extends MXInteractiveComponent {
61
97
  // c.close();
62
98
  // });
63
99
  // }
100
+ /** @ignore */
64
101
  _handleOnOpened() {
65
102
  this.parent.children.forEach((c) => {
66
103
  if (c != this) {
@@ -71,11 +108,15 @@ class AXMenuItemComponent extends MXInteractiveComponent {
71
108
  this.menuService.activeMenus$.next(this.menuService.activeMenus$.getValue().concat(this));
72
109
  }
73
110
  }
111
+ /** @ignore */
74
112
  _handleOnClosed() {
75
113
  this.children.forEach((c) => {
76
114
  c.close();
77
115
  });
78
116
  }
117
+ /**
118
+ * Returns the icon based on the orientation of the root menu.
119
+ */
79
120
  getIcon() {
80
121
  if (this.rootMenu.orientation() == 'vertical') {
81
122
  return 'ax-icon-arrow-right';
@@ -84,6 +125,9 @@ class AXMenuItemComponent extends MXInteractiveComponent {
84
125
  return 'ax-icon-arrow-down';
85
126
  }
86
127
  }
128
+ /**
129
+ * Determines the placement based on the root menu's orientation: 'bottom-start' for horizontal root, 'end-top' otherwise.
130
+ */
87
131
  getPlacement() {
88
132
  switch (this.rootMenu.orientation()) {
89
133
  case 'horizontal':
@@ -106,9 +150,11 @@ class AXMenuItemComponent extends MXInteractiveComponent {
106
150
  return 'bottom-start';
107
151
  }
108
152
  }
153
+ /** @ignore */
109
154
  get __hostClass() {
110
155
  return [`${this.disabled ? 'ax-state-disabled' : ''}`, `${this.active() ? 'ax-state-active' : ''}`];
111
156
  }
157
+ /** @ignore */
112
158
  __hostClick(e) {
113
159
  if (!this.disabled) {
114
160
  this.onClick.emit({
@@ -122,10 +168,10 @@ class AXMenuItemComponent extends MXInteractiveComponent {
122
168
  }
123
169
  }
124
170
  }
125
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXMenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
126
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.2", type: AXMenuItemComponent, selector: "ax-menu-item", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activeChange: "activeChange", onClick: "onClick" }, host: { attributes: { "ngSkipHydration": "true" }, 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: "<div class=\"ax-menu-item-start-side\">\n <ng-content select=\"ax-prefix\"></ng-content>\n <div class=\"ax-menu-item-text\">{{ text() }}</div>\n</div>\n<ng-content select=\"ax-suffix\"></ng-content>\n@if(children.length){\n<i class=\"ax-icon ax-icon-solid {{ getIcon() }} ax-menu-item-child-icon\"></i>\n}\n<ax-popover #popover [closeOn]=\"'clickOut'\" [openOn]=\"rootMenu.openOn()\" [target]=\"getHostElement()\"\n [offsetY]=\"offsetY()\" [offsetX]=\"offsetX()\" [placement]=\"getPlacement()\" (onOpened)=\"_handleOnOpened()\"\n (onClosed)=\"_handleOnClosed()\">\n <div class=\"ax-menu-item-children ax-parent-{{ this.rootMenu.orientation() }}\">\n <ng-content select=\"ax-menu-item\"></ng-content>\n </div>\n</ax-popover>", dependencies: [{ kind: "component", type: i1.AXPopoverComponent, selector: "ax-popover", inputs: ["offsetX", "offsetY", "target", "placement", "content", "openOn", "closeOn", "hasBackdrop", "openAfter", "closeAfter", "backdropClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }] }); }
171
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
172
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXMenuItemComponent, selector: "ax-menu-item", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activeChange: "activeChange", onClick: "onClick" }, host: { attributes: { "ngSkipHydration": "true" }, 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: "<div class=\"ax-menu-item-start-side\">\n <ng-content select=\"ax-prefix\"></ng-content>\n <div class=\"ax-menu-item-text\">{{ text() }}</div>\n</div>\n<ng-content select=\"ax-suffix\"></ng-content>\n@if(children.length){\n<i class=\"ax-icon ax-icon-solid {{ getIcon() }} ax-menu-item-child-icon\"></i>\n}\n<ax-popover #popover [closeOn]=\"'clickOut'\" [openOn]=\"rootMenu.openOn()\" [target]=\"getHostElement()\"\n [offsetY]=\"offsetY()\" [offsetX]=\"offsetX()\" [placement]=\"getPlacement()\" (onOpened)=\"_handleOnOpened()\"\n (onClosed)=\"_handleOnClosed()\">\n <div class=\"ax-menu-item-children ax-parent-{{ this.rootMenu.orientation() }}\">\n <ng-content select=\"ax-menu-item\"></ng-content>\n </div>\n</ax-popover>", dependencies: [{ kind: "component", type: i1.AXPopoverComponent, selector: "ax-popover", inputs: ["offsetX", "offsetY", "target", "placement", "content", "openOn", "closeOn", "hasBackdrop", "openAfter", "closeAfter", "backdropClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }] }); }
127
173
  }
128
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXMenuItemComponent, decorators: [{
174
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMenuItemComponent, decorators: [{
129
175
  type: Component,
130
176
  args: [{ selector: 'ax-menu-item', inputs: ['disabled'], host: { ngSkipHydration: 'true' }, template: "<div class=\"ax-menu-item-start-side\">\n <ng-content select=\"ax-prefix\"></ng-content>\n <div class=\"ax-menu-item-text\">{{ text() }}</div>\n</div>\n<ng-content select=\"ax-suffix\"></ng-content>\n@if(children.length){\n<i class=\"ax-icon ax-icon-solid {{ getIcon() }} ax-menu-item-child-icon\"></i>\n}\n<ax-popover #popover [closeOn]=\"'clickOut'\" [openOn]=\"rootMenu.openOn()\" [target]=\"getHostElement()\"\n [offsetY]=\"offsetY()\" [offsetX]=\"offsetX()\" [placement]=\"getPlacement()\" (onOpened)=\"_handleOnOpened()\"\n (onClosed)=\"_handleOnClosed()\">\n <div class=\"ax-menu-item-children ax-parent-{{ this.rootMenu.orientation() }}\">\n <ng-content select=\"ax-menu-item\"></ng-content>\n </div>\n</ax-popover>" }]
131
177
  }], ctorParameters: () => [], propDecorators: { popover: [{
@@ -142,23 +188,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
142
188
  args: ['click', ['$event']]
143
189
  }] } });
144
190
 
191
+ /**
192
+ * Represents a menu component that displays menu items.
193
+ * @category Components
194
+ */
145
195
  class AXMenuComponent extends MXBaseComponent {
146
196
  constructor() {
147
197
  super(...arguments);
148
198
  this.orientation = input('horizontal');
149
199
  this.openOn = input('toggle');
150
200
  }
201
+ /** @ignore */
151
202
  ngAfterViewInit() {
152
203
  this.children.forEach((c) => {
153
204
  c.isRoot = true;
154
205
  c.parent = this;
155
206
  });
156
207
  }
208
+ /** @ignore */
157
209
  get __hostClass() {
158
210
  return `ax-orientation-${this.orientation()}`;
159
211
  }
160
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXMenuComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
161
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.0.2", type: AXMenuComponent, selector: "ax-menu", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, openOn: { classPropertyName: "openOn", publicName: "openOn", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "this.__hostClass" } }, providers: [
212
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMenuComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
213
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.0", type: AXMenuComponent, selector: "ax-menu", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, openOn: { classPropertyName: "openOn", publicName: "openOn", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "this.__hostClass" } }, providers: [
162
214
  {
163
215
  provide: AXRootMenu,
164
216
  useExisting: AXMenuComponent,
@@ -168,7 +220,7 @@ class AXMenuComponent extends MXBaseComponent {
168
220
  },
169
221
  ], 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{width:100%;font-size:.875rem;line-height:1.25rem;color:inherit}ax-menu.ax-orientation-horizontal{display:flex}ax-menu.ax-orientation-horizontal ax-menu-item:not(ax-menu.ax-orientation-horizontal ax-menu-item:last-child){margin-inline-end:1rem}ax-menu.ax-orientation-vertical{display:flex;flex-direction:column}ax-menu.ax-orientation-vertical ax-menu-item{justify-content:space-between}ax-menu.ax-orientation-vertical ax-menu-item:not(ax-menu.ax-orientation-vertical ax-menu-item:last-child){margin-bottom:1rem}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{position:relative;display:flex;align-items:center;gap:.5rem;font-size:.875rem;line-height:1.25rem;font-weight:500;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;justify-content:space-between}ax-menu-item:not(ax-menu-item.ax-state-disabled){cursor:pointer}ax-menu-item .ax-menu-item-start-side{display:flex;align-items:center;gap:.5rem}ax-menu-item.ax-state-disabled{cursor:not-allowed;opacity:.5}ax-menu-item.ax-state-selected{color:rgba(var(--ax-color-primary-500))}ax-menu-item .ax-menu-item-child-icon{width:fit-content;line-height:1}ax-menu-item ax-popover{position:absolute}.ax-menu-item-children{padding-top:.5rem;padding-bottom:.5rem}.ax-menu-item-children:not(.ax-menu-item-children:empty){display:flex;min-width:12rem;flex-direction:column;border-radius:var(--ax-rounded-border-default);border-width:1px;border-color:rgba(var(--ax-color-border-default));background-color:rgba(var(--ax-color-surface))}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item{padding:.5rem 1rem;font-size:.875rem;line-height:1.25rem}.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))}.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:.75}.ax-menu-item-children:not(.ax-menu-item-children:empty) ax-menu-item .ax-menu-item-text{flex:1 1 0%}html[dir=rtl] .ax-parent-horizontal .ax-menu-item-child-icon{transform:rotate(-90deg)}html[dir=rtl] .ax-parent-horizontal .ax-menu-item-child-icon:before{-moz-transform:scale(1,-1);-webkit-transform:scale(1,-1);-o-transform:scale(1,-1);-ms-transform:scale(1,-1);transform:scaleY(-1)}.ax-parent-horizontal .ax-menu-item-child-icon{transform:rotate(-90deg)}\n"], encapsulation: i0.ViewEncapsulation.None }); }
170
222
  }
171
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXMenuComponent, decorators: [{
223
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMenuComponent, decorators: [{
172
224
  type: Component,
173
225
  args: [{ selector: 'ax-menu', template: `<ng-content select="ax-menu-item,ng-container"></ng-content>`, encapsulation: ViewEncapsulation.None, providers: [
174
226
  {
@@ -190,11 +242,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
190
242
  const COMPONENT = [AXMenuItemComponent, AXMenuComponent];
191
243
  const MODULES = [AXDecoratorModule, AXLoadingModule, AXTranslationModule, OverlayModule, AXPopoverModule];
192
244
  class AXMenuModule {
193
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
194
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.2", ngImport: i0, type: AXMenuModule, declarations: [AXMenuItemComponent, AXMenuComponent], imports: [CommonModule, AXDecoratorModule, AXLoadingModule, AXTranslationModule, OverlayModule, AXPopoverModule], exports: [AXMenuItemComponent, AXMenuComponent] }); }
195
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXMenuModule, imports: [CommonModule, MODULES] }); }
245
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
246
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXMenuModule, declarations: [AXMenuItemComponent, AXMenuComponent], imports: [CommonModule, AXDecoratorModule, AXLoadingModule, AXTranslationModule, OverlayModule, AXPopoverModule], exports: [AXMenuItemComponent, AXMenuComponent] }); }
247
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMenuModule, imports: [CommonModule, MODULES] }); }
196
248
  }
197
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXMenuModule, decorators: [{
249
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMenuModule, decorators: [{
198
250
  type: NgModule,
199
251
  args: [{
200
252
  declarations: [...COMPONENT],
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-components-menu.mjs","sources":["../../../../libs/components/menu/src/lib/class/root-menu.class.ts","../../../../libs/components/menu/src/lib/menu.service.ts","../../../../libs/components/menu/src/lib/menu-item/menu-item.component.ts","../../../../libs/components/menu/src/lib/menu-item/menu-item.component.html","../../../../libs/components/menu/src/lib/menu.component.ts","../../../../libs/components/menu/src/lib/menu.module.ts","../../../../libs/components/menu/src/acorex-components-menu.ts"],"sourcesContent":["import { AXOrientation } from '@acorex/components/common';\nimport { WritableSignal, signal } from '@angular/core';\nimport { AXMenuPopoverTrigger } from './popover.class';\nexport class AXRootMenu {\n orientation: WritableSignal<AXOrientation> = signal('horizontal');\n openOn: WritableSignal<AXMenuPopoverTrigger> = signal('toggle');\n}\n","import { Injectable } from '@angular/core';\nimport { BehaviorSubject } from 'rxjs';\nimport { AXMenuItemComponent } from './menu-item/menu-item.component';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AXMenuService {\n activeMenus$: BehaviorSubject<AXMenuItemComponent[]> = new BehaviorSubject<AXMenuItemComponent[]>([]);\n}\n","import { AXClickEvent, MXInteractiveComponent } from '@acorex/components/common';\nimport { AXPopoverComponent } from '@acorex/components/popover';\nimport {\n Component,\n ContentChildren,\n HostBinding,\n HostListener,\n QueryList,\n ViewChild,\n afterNextRender,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\nimport { AXRootMenu } from '../class/root-menu.class';\nimport { AXMenuService } from '../menu.service';\n\n@Component({\n selector: 'ax-menu-item',\n inputs: ['disabled'],\n templateUrl: './menu-item.component.html',\n host: { ngSkipHydration: 'true' },\n})\nexport class AXMenuItemComponent extends MXInteractiveComponent {\n @ViewChild(AXPopoverComponent)\n private popover: AXPopoverComponent;\n\n menuService = inject(AXMenuService);\n\n offsetY = signal(0);\n offsetX = signal(0);\n\n text = input<string>();\n active = input<boolean>();\n\n activeChange = output<boolean>();\n onClick = output<AXClickEvent>();\n\n isRoot = false;\n parent?: AXMenuItemComponent;\n\n rootMenu = inject(AXRootMenu);\n\n @ContentChildren(AXMenuItemComponent)\n children: QueryList<AXMenuItemComponent>;\n\n constructor() {\n super();\n afterNextRender(() => {\n this.children.forEach((c) => {\n c.parent = this;\n });\n\n this.offsetY.set(this.isRoot ? 8 : 0);\n this.offsetX.set(this.isRoot ? 0 : 4);\n\n this.getPlacement();\n });\n }\n\n close() {\n this.popover?.close();\n }\n\n // @HostListener('mouseleave', ['$event'])\n // private onMouseHover(e: MouseEvent) {\n // this.children.forEach((c) => {\n // c.close();\n // });\n // }\n\n _handleOnOpened() {\n this.parent.children.forEach((c) => {\n if (c != this) {\n c.close();\n }\n });\n if (this.children.length) {\n this.menuService.activeMenus$.next(this.menuService.activeMenus$.getValue().concat(this));\n }\n }\n\n _handleOnClosed() {\n this.children.forEach((c) => {\n c.close();\n });\n }\n\n getIcon() {\n if (this.rootMenu.orientation() == 'vertical') {\n return 'ax-icon-arrow-right';\n } else {\n return 'ax-icon-arrow-down';\n }\n }\n\n getPlacement() {\n switch (this.rootMenu.orientation()) {\n case 'horizontal':\n if (this.isRoot) {\n return 'bottom-start';\n } else {\n return 'end-top';\n }\n break;\n case 'vertical':\n if (this.isRoot) {\n return 'end-top';\n } else {\n return 'end-top';\n }\n break;\n default:\n return 'bottom-start';\n }\n }\n\n @HostBinding('class')\n get __hostClass(): string[] {\n return [`${this.disabled ? 'ax-state-disabled' : ''}`, `${this.active() ? 'ax-state-active' : ''}`];\n }\n\n @HostListener('click', ['$event'])\n private __hostClick(e: MouseEvent) {\n if (!this.disabled) {\n this.onClick.emit({\n component: this,\n htmlElement: this.getHostElement(),\n nativeEvent: e,\n });\n if (!this.children.length) {\n this.menuService.activeMenus$.subscribe((c) => c.forEach((x) => x.close())).unsubscribe();\n this.menuService.activeMenus$.next([]);\n }\n }\n }\n}\n","<div class=\"ax-menu-item-start-side\">\n <ng-content select=\"ax-prefix\"></ng-content>\n <div class=\"ax-menu-item-text\">{{ text() }}</div>\n</div>\n<ng-content select=\"ax-suffix\"></ng-content>\n@if(children.length){\n<i class=\"ax-icon ax-icon-solid {{ getIcon() }} ax-menu-item-child-icon\"></i>\n}\n<ax-popover #popover [closeOn]=\"'clickOut'\" [openOn]=\"rootMenu.openOn()\" [target]=\"getHostElement()\"\n [offsetY]=\"offsetY()\" [offsetX]=\"offsetX()\" [placement]=\"getPlacement()\" (onOpened)=\"_handleOnOpened()\"\n (onClosed)=\"_handleOnClosed()\">\n <div class=\"ax-menu-item-children ax-parent-{{ this.rootMenu.orientation() }}\">\n <ng-content select=\"ax-menu-item\"></ng-content>\n </div>\n</ax-popover>","import { AXOrientation, MXBaseComponent } from '@acorex/components/common';\nimport { AfterViewInit, Component, ContentChildren, HostBinding, QueryList, ViewEncapsulation, input } from '@angular/core';\nimport { AXMenuPopoverTrigger } from './class/popover.class';\nimport { AXRootMenu } from './class/root-menu.class';\nimport { AXMenuItemComponent } from './menu-item/menu-item.component';\nimport { AXMenuService } from './menu.service';\n\n@Component({\n selector: 'ax-menu',\n template: `<ng-content select=\"ax-menu-item,ng-container\"></ng-content>`,\n styleUrls: ['./menu.component.scss'],\n encapsulation: ViewEncapsulation.None,\n providers: [\n {\n provide: AXRootMenu,\n useExisting: AXMenuComponent,\n },\n {\n provide: AXMenuService,\n },\n ],\n})\nexport class AXMenuComponent extends MXBaseComponent implements AfterViewInit {\n orientation = input<AXOrientation>('horizontal');\n openOn = input<AXMenuPopoverTrigger>('toggle');\n\n @ContentChildren(AXMenuItemComponent)\n children: QueryList<AXMenuItemComponent>;\n\n ngAfterViewInit() {\n this.children.forEach((c) => {\n c.isRoot = true;\n c.parent = this as unknown as AXMenuItemComponent;\n });\n }\n\n @HostBinding('class')\n get __hostClass(): string {\n return `ax-orientation-${this.orientation()}`;\n }\n}\n","import { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXPopoverModule } from '@acorex/components/popover';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { OverlayModule } from '@angular/cdk/overlay';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { AXMenuItemComponent } from './menu-item/menu-item.component';\nimport { AXMenuComponent } from './menu.component';\n\nconst COMPONENT = [AXMenuItemComponent, AXMenuComponent];\nconst MODULES = [AXDecoratorModule, AXLoadingModule, AXTranslationModule, OverlayModule, AXPopoverModule];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [CommonModule, ...MODULES],\n exports: [...COMPONENT],\n providers: [],\n})\nexport class AXMenuModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;MAGa,UAAU,CAAA;AAAvB,IAAA,WAAA,GAAA;AACE,QAAA,IAAA,CAAA,WAAW,GAAkC,MAAM,CAAC,YAAY,CAAC,CAAC;AAClE,QAAA,IAAA,CAAA,MAAM,GAAyC,MAAM,CAAC,QAAQ,CAAC,CAAC;KACjE;AAAA;;MCCY,aAAa,CAAA;AAH1B,IAAA,WAAA,GAAA;AAIE,QAAA,IAAA,CAAA,YAAY,GAA2C,IAAI,eAAe,CAAwB,EAAE,CAAC,CAAC;AACvG,KAAA;8GAFY,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;AAAb,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,cAFZ,MAAM,EAAA,CAAA,CAAA,EAAA;;2FAEP,aAAa,EAAA,UAAA,EAAA,CAAA;kBAHzB,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;;ACkBK,MAAO,mBAAoB,SAAQ,sBAAsB,CAAA;AAuB7D,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE,CAAC;AApBV,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;AAEpC,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACpB,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,C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,EAAA,YAAY,iBATN,mBAAmB,EAAE,eAAe,CAK3C,EAAA,OAAA,EAAA,CAAA,YAAY,EAJP,iBAAiB,EAAE,eAAe,EAAE,mBAAmB,EAAE,aAAa,EAAE,eAAe,CADrF,EAAA,OAAA,EAAA,CAAA,mBAAmB,EAAE,eAAe,CAAA,EAAA,CAAA,CAAA,EAAA;+GAS1C,YAAY,EAAA,OAAA,EAAA,CAJb,YAAY,EAAK,OAAO,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAIvB,YAAY,EAAA,UAAA,EAAA,CAAA;kBANxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,GAAG,SAAS,CAAC;AAC5B,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,GAAG,OAAO,CAAC;AACnC,oBAAA,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC;AACvB,oBAAA,SAAS,EAAE,EAAE;AACd,iBAAA,CAAA;;;AClBD;;AAEG;;;;"}
1
+ {"version":3,"file":"acorex-components-menu.mjs","sources":["../../../../libs/components/menu/src/lib/class/root-menu.class.ts","../../../../libs/components/menu/src/lib/menu.service.ts","../../../../libs/components/menu/src/lib/menu-item/menu-item.component.ts","../../../../libs/components/menu/src/lib/menu-item/menu-item.component.html","../../../../libs/components/menu/src/lib/menu.component.ts","../../../../libs/components/menu/src/lib/menu.module.ts","../../../../libs/components/menu/src/acorex-components-menu.ts"],"sourcesContent":["import { AXOrientation } from '@acorex/components/common';\nimport { WritableSignal, signal } from '@angular/core';\nimport { AXMenuPopoverTrigger } from './popover.class';\nexport class AXRootMenu {\n orientation: WritableSignal<AXOrientation> = signal('horizontal');\n openOn: WritableSignal<AXMenuPopoverTrigger> = signal('toggle');\n}\n","import { Injectable } from '@angular/core';\nimport { BehaviorSubject } from 'rxjs';\nimport { AXMenuItemComponent } from './menu-item/menu-item.component';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AXMenuService {\n activeMenus$: BehaviorSubject<AXMenuItemComponent[]> = new BehaviorSubject<AXMenuItemComponent[]>([]);\n}\n","import { AXClickEvent, MXInteractiveComponent } from '@acorex/components/common';\nimport { AXPopoverComponent } from '@acorex/components/popover';\nimport {\n Component,\n ContentChildren,\n HostBinding,\n HostListener,\n QueryList,\n ViewChild,\n afterNextRender,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\nimport { AXRootMenu } from '../class/root-menu.class';\nimport { AXMenuService } from '../menu.service';\n\n/**\n * Represents a menu item component used within an `ax-menu`.\n * @category Components\n */\n@Component({\n selector: 'ax-menu-item',\n inputs: ['disabled'],\n templateUrl: './menu-item.component.html',\n host: { ngSkipHydration: 'true' },\n})\nexport class AXMenuItemComponent extends MXInteractiveComponent {\n\n /** @ignore */\n @ViewChild(AXPopoverComponent)\n\n /** @ignore */\n private popover: AXPopoverComponent;\n\n /**\n * Injects the `AXMenuService` for managing menu interactions.\n */\n menuService = inject(AXMenuService);\n\n /**\n * The vertical offset for positioning, initialized to 0.\n */\n offsetY = signal(0);\n\n /**\n * The horizontal offset for positioning, initialized to 0.\n */\n offsetX = signal(0);\n\n /**\n * The text content, initialized to an empty string.\n */\n text = input<string>();\n\n /**\n * Indicates whether the item is active.\n */\n active = input<boolean>();\n\n /**\n * Emitted when the active state changes.\n */\n activeChange = output<boolean>();\n\n /**\n * Emitted when the element is clicked.\n */\n onClick = output<AXClickEvent>();\n\n /**\n * Indicates whether the component is a root menu item.\n * @defaultValue false\n */\n isRoot = false;\n\n /**\n * The parent menu item component, if any.\n */\n parent?: AXMenuItemComponent;\n\n /**\n * Injects the root menu service.\n */\n rootMenu = inject(AXRootMenu);\n\n /** @ignore */\n @ContentChildren(AXMenuItemComponent)\n children: QueryList<AXMenuItemComponent>;\n\n /** @ignore */\n constructor() {\n super();\n afterNextRender(() => {\n this.children.forEach((c) => {\n c.parent = this;\n });\n\n this.offsetY.set(this.isRoot ? 8 : 0);\n this.offsetX.set(this.isRoot ? 0 : 4);\n\n this.getPlacement();\n });\n }\n\n /**\n * Closes the popover if it is open.\n */\n close() {\n this.popover?.close();\n }\n\n // @HostListener('mouseleave', ['$event'])\n // private onMouseHover(e: MouseEvent) {\n // this.children.forEach((c) => {\n // c.close();\n // });\n // }\n\n /** @ignore */\n _handleOnOpened() {\n this.parent.children.forEach((c) => {\n if (c != this) {\n c.close();\n }\n });\n if (this.children.length) {\n this.menuService.activeMenus$.next(this.menuService.activeMenus$.getValue().concat(this));\n }\n }\n\n /** @ignore */\n _handleOnClosed() {\n this.children.forEach((c) => {\n c.close();\n });\n }\n\n /**\n * Returns the icon based on the orientation of the root menu.\n */\n getIcon() {\n if (this.rootMenu.orientation() == 'vertical') {\n return 'ax-icon-arrow-right';\n } else {\n return 'ax-icon-arrow-down';\n }\n }\n\n /**\n * Determines the placement based on the root menu's orientation: 'bottom-start' for horizontal root, 'end-top' otherwise.\n */\n getPlacement() {\n switch (this.rootMenu.orientation()) {\n case 'horizontal':\n if (this.isRoot) {\n return 'bottom-start';\n } else {\n return 'end-top';\n }\n break;\n case 'vertical':\n if (this.isRoot) {\n return 'end-top';\n } else {\n return 'end-top';\n }\n break;\n default:\n return 'bottom-start';\n }\n }\n\n /** @ignore */\n @HostBinding('class')\n get __hostClass(): string[] {\n return [`${this.disabled ? 'ax-state-disabled' : ''}`, `${this.active() ? 'ax-state-active' : ''}`];\n }\n\n /** @ignore */\n @HostListener('click', ['$event'])\n private __hostClick(e: MouseEvent) {\n if (!this.disabled) {\n this.onClick.emit({\n component: this,\n htmlElement: this.getHostElement(),\n nativeEvent: e,\n });\n if (!this.children.length) {\n this.menuService.activeMenus$.subscribe((c) => c.forEach((x) => x.close())).unsubscribe();\n this.menuService.activeMenus$.next([]);\n }\n }\n }\n}\n","<div class=\"ax-menu-item-start-side\">\n <ng-content select=\"ax-prefix\"></ng-content>\n <div class=\"ax-menu-item-text\">{{ text() }}</div>\n</div>\n<ng-content select=\"ax-suffix\"></ng-content>\n@if(children.length){\n<i class=\"ax-icon ax-icon-solid {{ getIcon() }} ax-menu-item-child-icon\"></i>\n}\n<ax-popover #popover [closeOn]=\"'clickOut'\" [openOn]=\"rootMenu.openOn()\" [target]=\"getHostElement()\"\n [offsetY]=\"offsetY()\" [offsetX]=\"offsetX()\" [placement]=\"getPlacement()\" (onOpened)=\"_handleOnOpened()\"\n (onClosed)=\"_handleOnClosed()\">\n <div class=\"ax-menu-item-children ax-parent-{{ this.rootMenu.orientation() }}\">\n <ng-content select=\"ax-menu-item\"></ng-content>\n </div>\n</ax-popover>","import { AXOrientation, MXBaseComponent } from '@acorex/components/common';\nimport { AfterViewInit, Component, ContentChildren, HostBinding, QueryList, ViewEncapsulation, input } from '@angular/core';\nimport { AXMenuPopoverTrigger } from './class/popover.class';\nimport { AXRootMenu } from './class/root-menu.class';\nimport { AXMenuItemComponent } from './menu-item/menu-item.component';\nimport { AXMenuService } from './menu.service';\n\n/**\n * Represents a menu component that displays menu items.\n * @category Components\n */\n@Component({\n selector: 'ax-menu',\n template: `<ng-content select=\"ax-menu-item,ng-container\"></ng-content>`,\n styleUrls: ['./menu.component.scss'],\n encapsulation: ViewEncapsulation.None,\n providers: [\n {\n provide: AXRootMenu,\n useExisting: AXMenuComponent,\n },\n {\n provide: AXMenuService,\n },\n ],\n})\nexport class AXMenuComponent extends MXBaseComponent implements AfterViewInit {\n orientation = input<AXOrientation>('horizontal');\n openOn = input<AXMenuPopoverTrigger>('toggle');\n\n /** @ignore */\n @ContentChildren(AXMenuItemComponent)\n children: QueryList<AXMenuItemComponent>;\n\n /** @ignore */\n ngAfterViewInit() {\n this.children.forEach((c) => {\n c.isRoot = true;\n c.parent = this as unknown as AXMenuItemComponent;\n });\n }\n\n /** @ignore */\n @HostBinding('class')\n get __hostClass(): string {\n return `ax-orientation-${this.orientation()}`;\n }\n}\n","import { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXPopoverModule } from '@acorex/components/popover';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { OverlayModule } from '@angular/cdk/overlay';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { AXMenuItemComponent } from './menu-item/menu-item.component';\nimport { AXMenuComponent } from './menu.component';\n\nconst COMPONENT = [AXMenuItemComponent, AXMenuComponent];\nconst MODULES = [AXDecoratorModule, AXLoadingModule, AXTranslationModule, OverlayModule, AXPopoverModule];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [CommonModule, ...MODULES],\n exports: [...COMPONENT],\n providers: [],\n})\nexport class AXMenuModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;MAGa,UAAU,CAAA;AAAvB,IAAA,WAAA,GAAA;AACE,QAAA,IAAA,CAAA,WAAW,GAAkC,MAAM,CAAC,YAAY,CAAC,CAAC;AAClE,QAAA,IAAA,CAAA,MAAM,GAAyC,MAAM,CAAC,QAAQ,CAAC,CAAC;KACjE;AAAA;;MCCY,aAAa,CAAA;AAH1B,IAAA,WAAA,GAAA;AAIE,QAAA,IAAA,CAAA,YAAY,GAA2C,IAAI,eAAe,CAAwB,EAAE,CAAC,CAAC;AACvG,KAAA;8GAFY,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;AAAb,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,cAFZ,MAAM,EAAA,CAAA,CAAA,EAAA;;2FAEP,aAAa,EAAA,UAAA,EAAA,CAAA;kBAHzB,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;;ACYD;;;AAGG;AAOG,MAAO,mBAAoB,SAAQ,sBAAsB,C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,mBAAmB,EAAE,eAAe,CAAC,CAAC;AACzD,MAAM,OAAO,GAAG,CAAC,iBAAiB,EAAE,eAAe,EAAE,mBAAmB,EAAE,aAAa,EAAE,eAAe,CAAC,CAAC;MAQ7F,YAAY,CAAA;8GAAZ,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;AAAZ,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,iBATN,mBAAmB,EAAE,eAAe,CAK3C,EAAA,OAAA,EAAA,CAAA,YAAY,EAJP,iBAAiB,EAAE,eAAe,EAAE,mBAAmB,EAAE,aAAa,EAAE,eAAe,CADrF,EAAA,OAAA,EAAA,CAAA,mBAAmB,EAAE,eAAe,CAAA,EAAA,CAAA,CAAA,EAAA;+GAS1C,YAAY,EAAA,OAAA,EAAA,CAJb,YAAY,EAAK,OAAO,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAIvB,YAAY,EAAA,UAAA,EAAA,CAAA;kBANxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,GAAG,SAAS,CAAC;AAC5B,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,GAAG,OAAO,CAAC;AACnC,oBAAA,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC;AACvB,oBAAA,SAAS,EAAE,EAAE;AACd,iBAAA,CAAA;;;AClBD;;AAEG;;;;"}
@@ -4,22 +4,44 @@ import { EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, Ou
4
4
  import { classes } from 'polytype';
5
5
  import { CommonModule } from '@angular/common';
6
6
 
7
+ /**
8
+ * @category Components
9
+ * A component represents an individual item within the navigation interface, supporting customization options such as disabling and color changes.
10
+ */
7
11
  class AXNavItemComponent extends classes(MXInteractiveComponent) {
8
12
  constructor() {
9
13
  super(...arguments);
14
+ /**
15
+ * Emits an event when the navigation item is clicked.
16
+ * @event
17
+ */
10
18
  this.onClick = new EventEmitter();
19
+ /**
20
+ * Emits when the active state changes.
21
+ * @event
22
+ */
11
23
  this.activeChange = new EventEmitter();
24
+ /** @ignore */
12
25
  this._active = false;
13
26
  }
27
+ /**
28
+ * Gets or sets the active state of the component.
29
+ * @param {boolean} v
30
+ */
14
31
  get active() {
15
32
  return this._active;
16
33
  }
34
+ /**
35
+ * Sets the active state of the component.
36
+ * @param {boolean} v
37
+ */
17
38
  set active(v) {
18
39
  this.setOption({
19
40
  name: 'active',
20
41
  value: v,
21
42
  });
22
43
  }
44
+ /** @ignore */
23
45
  _handleClickEvent(e) {
24
46
  this.onClick.emit({
25
47
  component: this,
@@ -27,10 +49,10 @@ class AXNavItemComponent extends classes(MXInteractiveComponent) {
27
49
  nativeEvent: e,
28
50
  });
29
51
  }
30
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXNavItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
31
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.2", type: AXNavItemComponent, selector: "ax-nav-item", inputs: { disabled: "disabled", color: "color", active: "active" }, outputs: { onClick: "onClick", activeChange: "activeChange" }, usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-title\"></ng-content>\n\n<li class=\"ax-nav-li\" [class.ax-state-disabled]=\"disabled\" [class.ax-state-active]=\"active\"\n (click)=\"_handleClickEvent($event)\">\n <div class=\"ax-start-nav\">\n <ng-content select=\"ax-prefix\"></ng-content>\n </div>\n <ng-content></ng-content>\n <div class=\"ax-end-nav\">\n <ng-content select=\"ax-suffix\"></ng-content>\n </div>\n</li>\n\n<ul class=\"ax-nav-children\">\n <ng-content select=\"ax-side-menu-item, ng-container\"></ng-content>\n</ul>", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
52
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXNavItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
53
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXNavItemComponent, selector: "ax-nav-item", inputs: { disabled: "disabled", color: "color", active: "active" }, outputs: { onClick: "onClick", activeChange: "activeChange" }, usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-title\"></ng-content>\n\n<li class=\"ax-nav-li\" [class.ax-state-disabled]=\"disabled\" [class.ax-state-active]=\"active\"\n (click)=\"_handleClickEvent($event)\">\n <div class=\"ax-start-nav\">\n <ng-content select=\"ax-prefix\"></ng-content>\n </div>\n <ng-content></ng-content>\n <div class=\"ax-end-nav\">\n <ng-content select=\"ax-suffix\"></ng-content>\n </div>\n</li>\n\n<ul class=\"ax-nav-children\">\n <ng-content select=\"ax-side-menu-item, ng-container\"></ng-content>\n</ul>", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
32
54
  }
33
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXNavItemComponent, decorators: [{
55
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXNavItemComponent, decorators: [{
34
56
  type: Component,
35
57
  args: [{ selector: 'ax-nav-item', inputs: ['disabled', 'color'], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ng-content select=\"ax-title\"></ng-content>\n\n<li class=\"ax-nav-li\" [class.ax-state-disabled]=\"disabled\" [class.ax-state-active]=\"active\"\n (click)=\"_handleClickEvent($event)\">\n <div class=\"ax-start-nav\">\n <ng-content select=\"ax-prefix\"></ng-content>\n </div>\n <ng-content></ng-content>\n <div class=\"ax-end-nav\">\n <ng-content select=\"ax-suffix\"></ng-content>\n </div>\n</li>\n\n<ul class=\"ax-nav-children\">\n <ng-content select=\"ax-side-menu-item, ng-container\"></ng-content>\n</ul>" }]
36
58
  }], propDecorators: { onClick: [{
@@ -41,11 +63,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
41
63
  type: Input
42
64
  }] } });
43
65
 
66
+ /**
67
+ * @category Components
68
+ * A navigation component provides a customizable navigation interface with optimized change detection.
69
+ */
44
70
  class AXNavComponent extends MXBaseComponent {
45
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXNavComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
46
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.2", type: AXNavComponent, selector: "ax-nav", usesInheritance: true, ngImport: i0, template: "<ul>\n <ng-content select=\"ax-nav-item,ax-title,ng-container\"></ng-content>\n</ul>\n", styles: ["ax-nav{display:flex;flex-direction:column;overflow-y:auto}ax-nav ax-title{margin-bottom:.5rem;display:block;padding:.15rem .5rem;line-height:1rem;font-weight:500;font-size:.75rem}ax-nav ax-nav-item .ax-nav-li{position:relative;min-width:140px;padding:.15rem .5rem;margin-bottom:.25rem;display:flex;cursor:pointer;align-items:center;justify-content:flex-start;overflow:hidden;font-size:.875rem;font-weight:400;transition-property:all;transition-duration:.15s;border-inline-start:1px solid transparent;color:rgba(var(--ax-color-neutral-500))}ax-nav ax-nav-item .ax-nav-li.ax-state-disabled{cursor:not-allowed;opacity:.5!important}ax-nav ax-nav-item .ax-nav-li:hover:not(ax-nav ax-nav-item .ax-nav-li:hover.ax-state-disabled){border-inline-start-color:rgba(var(--ax-color-primary-400));color:rgba(var(--ax-color-primary-400))}ax-nav ax-nav-item .ax-nav-li.ax-state-active:not(ax-nav ax-nav-item .ax-nav-li.ax-state-active.ax-state-disabled){border-inline-start-color:rgba(var(--ax-color-primary-500));color:rgba(var(--ax-color-primary-500))}ax-nav ax-nav-item .ax-nav-li .ax-start-nav{display:flex;align-items:center;gap:.5rem}ax-nav ax-nav-item .ax-nav-li .ax-start-nav ax-prefix{margin-inline-end:.5rem}ax-nav ax-nav-item .ax-nav-li .ax-end-nav{display:flex;align-items:center;gap:.5rem}ax-nav ax-nav-item .ax-nav-li .ax-end-nav ax-suffix{margin-inline-start:.5rem}ax-nav ax-nav-item .ax-nav-children{overflow:hidden}ax-nav ax-nav-item .ax-nav-children ax-nav-item .ax-nav-li{padding:.15rem 1rem}.ax-dark ax-nav ax-nav-item .ax-nav-li{color:rgba(var(--ax-color-neutral-300))}.ax-dark ax-nav ax-nav-item .ax-nav-li:hover:not(.ax-dark ax-nav ax-nav-item .ax-nav-li:hover.ax-state-disabled){border-inline-start-color:rgba(var(--ax-color-primary-300));color:rgba(var(--ax-color-primary-300))}.ax-dark ax-nav ax-nav-item .ax-nav-li.ax-state-active:not(.ax-dark ax-nav ax-nav-item .ax-nav-li.ax-state-active.ax-state-disabled){border-inline-start-color:rgba(var(--ax-color-primary-300));color:rgba(var(--ax-color-primary-200))}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
71
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXNavComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
72
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXNavComponent, selector: "ax-nav", usesInheritance: true, ngImport: i0, template: "<ul>\n <ng-content select=\"ax-nav-item,ax-title,ng-container\"></ng-content>\n</ul>\n", styles: ["ax-nav{display:flex;flex-direction:column;overflow-y:auto}ax-nav ax-title{margin-bottom:.5rem;display:block;padding:.15rem .5rem;line-height:1rem;font-weight:500;font-size:.75rem}ax-nav ax-nav-item .ax-nav-li{position:relative;min-width:140px;padding:.15rem .5rem;margin-bottom:.25rem;display:flex;cursor:pointer;align-items:center;justify-content:flex-start;overflow:hidden;font-size:.875rem;font-weight:400;transition-property:all;transition-duration:.15s;border-inline-start:1px solid transparent;color:rgba(var(--ax-color-neutral-500))}ax-nav ax-nav-item .ax-nav-li.ax-state-disabled{cursor:not-allowed;opacity:.5!important}ax-nav ax-nav-item .ax-nav-li:hover:not(ax-nav ax-nav-item .ax-nav-li:hover.ax-state-disabled){border-inline-start-color:rgba(var(--ax-color-primary-400));color:rgba(var(--ax-color-primary-400))}ax-nav ax-nav-item .ax-nav-li.ax-state-active:not(ax-nav ax-nav-item .ax-nav-li.ax-state-active.ax-state-disabled){border-inline-start-color:rgba(var(--ax-color-primary-500));color:rgba(var(--ax-color-primary-500))}ax-nav ax-nav-item .ax-nav-li .ax-start-nav{display:flex;align-items:center;gap:.5rem}ax-nav ax-nav-item .ax-nav-li .ax-start-nav ax-prefix{margin-inline-end:.5rem}ax-nav ax-nav-item .ax-nav-li .ax-end-nav{display:flex;align-items:center;gap:.5rem}ax-nav ax-nav-item .ax-nav-li .ax-end-nav ax-suffix{margin-inline-start:.5rem}ax-nav ax-nav-item .ax-nav-children{overflow:hidden}ax-nav ax-nav-item .ax-nav-children ax-nav-item .ax-nav-li{padding:.15rem 1rem}.ax-dark ax-nav ax-nav-item .ax-nav-li{color:rgba(var(--ax-color-neutral-300))}.ax-dark ax-nav ax-nav-item .ax-nav-li:hover:not(.ax-dark ax-nav ax-nav-item .ax-nav-li:hover.ax-state-disabled){border-inline-start-color:rgba(var(--ax-color-primary-300));color:rgba(var(--ax-color-primary-300))}.ax-dark ax-nav ax-nav-item .ax-nav-li.ax-state-active:not(.ax-dark ax-nav ax-nav-item .ax-nav-li.ax-state-active.ax-state-disabled){border-inline-start-color:rgba(var(--ax-color-primary-300));color:rgba(var(--ax-color-primary-200))}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
47
73
  }
48
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXNavComponent, decorators: [{
74
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXNavComponent, decorators: [{
49
75
  type: Component,
50
76
  args: [{ selector: 'ax-nav', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ul>\n <ng-content select=\"ax-nav-item,ax-title,ng-container\"></ng-content>\n</ul>\n", styles: ["ax-nav{display:flex;flex-direction:column;overflow-y:auto}ax-nav ax-title{margin-bottom:.5rem;display:block;padding:.15rem .5rem;line-height:1rem;font-weight:500;font-size:.75rem}ax-nav ax-nav-item .ax-nav-li{position:relative;min-width:140px;padding:.15rem .5rem;margin-bottom:.25rem;display:flex;cursor:pointer;align-items:center;justify-content:flex-start;overflow:hidden;font-size:.875rem;font-weight:400;transition-property:all;transition-duration:.15s;border-inline-start:1px solid transparent;color:rgba(var(--ax-color-neutral-500))}ax-nav ax-nav-item .ax-nav-li.ax-state-disabled{cursor:not-allowed;opacity:.5!important}ax-nav ax-nav-item .ax-nav-li:hover:not(ax-nav ax-nav-item .ax-nav-li:hover.ax-state-disabled){border-inline-start-color:rgba(var(--ax-color-primary-400));color:rgba(var(--ax-color-primary-400))}ax-nav ax-nav-item .ax-nav-li.ax-state-active:not(ax-nav ax-nav-item .ax-nav-li.ax-state-active.ax-state-disabled){border-inline-start-color:rgba(var(--ax-color-primary-500));color:rgba(var(--ax-color-primary-500))}ax-nav ax-nav-item .ax-nav-li .ax-start-nav{display:flex;align-items:center;gap:.5rem}ax-nav ax-nav-item .ax-nav-li .ax-start-nav ax-prefix{margin-inline-end:.5rem}ax-nav ax-nav-item .ax-nav-li .ax-end-nav{display:flex;align-items:center;gap:.5rem}ax-nav ax-nav-item .ax-nav-li .ax-end-nav ax-suffix{margin-inline-start:.5rem}ax-nav ax-nav-item .ax-nav-children{overflow:hidden}ax-nav ax-nav-item .ax-nav-children ax-nav-item .ax-nav-li{padding:.15rem 1rem}.ax-dark ax-nav ax-nav-item .ax-nav-li{color:rgba(var(--ax-color-neutral-300))}.ax-dark ax-nav ax-nav-item .ax-nav-li:hover:not(.ax-dark ax-nav ax-nav-item .ax-nav-li:hover.ax-state-disabled){border-inline-start-color:rgba(var(--ax-color-primary-300));color:rgba(var(--ax-color-primary-300))}.ax-dark ax-nav ax-nav-item .ax-nav-li.ax-state-active:not(.ax-dark ax-nav ax-nav-item .ax-nav-li.ax-state-active.ax-state-disabled){border-inline-start-color:rgba(var(--ax-color-primary-300));color:rgba(var(--ax-color-primary-200))}\n"] }]
51
77
  }] });
@@ -53,11 +79,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
53
79
  const COMPONENT = [AXNavComponent, AXNavItemComponent];
54
80
  const MODULES = [CommonModule, AXCommonModule];
55
81
  class AXNavModule {
56
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXNavModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
57
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.2", ngImport: i0, type: AXNavModule, declarations: [AXNavComponent, AXNavItemComponent], imports: [CommonModule, AXCommonModule], exports: [AXNavComponent, AXNavItemComponent] }); }
58
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXNavModule, imports: [MODULES] }); }
82
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXNavModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
83
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXNavModule, declarations: [AXNavComponent, AXNavItemComponent], imports: [CommonModule, AXCommonModule], exports: [AXNavComponent, AXNavItemComponent] }); }
84
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXNavModule, imports: [MODULES] }); }
59
85
  }
60
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXNavModule, decorators: [{
86
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXNavModule, decorators: [{
61
87
  type: NgModule,
62
88
  args: [{
63
89
  declarations: [...COMPONENT],
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-components-nav.mjs","sources":["../../../../libs/components/nav/src/lib/nav-item/nav-item.component.ts","../../../../libs/components/nav/src/lib/nav-item/nav-item.component.html","../../../../libs/components/nav/src/lib/nav.component.ts","../../../../libs/components/nav/src/lib/nav.component.html","../../../../libs/components/nav/src/lib/nav.module.ts","../../../../libs/components/nav/src/acorex-components-nav.ts"],"sourcesContent":["import { AXClickEvent, MXInteractiveComponent } from '@acorex/components/common';\nimport { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, ViewEncapsulation } from '@angular/core';\nimport { classes } from 'polytype';\n\n@Component({\n selector: 'ax-nav-item',\n inputs: ['disabled', 'color'],\n templateUrl: './nav-item.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXNavItemComponent extends classes(MXInteractiveComponent) {\n @Output()\n onClick: EventEmitter<AXClickEvent> = new EventEmitter<AXClickEvent>();\n\n @Output()\n activeChange: EventEmitter<boolean> = new EventEmitter<boolean>();\n\n private _active = false;\n @Input()\n public get active(): boolean {\n return this._active;\n }\n public set active(v: boolean) {\n this.setOption({\n name: 'active',\n value: v,\n });\n }\n _handleClickEvent(e: MouseEvent) {\n this.onClick.emit({\n component: this,\n htmlElement: this.getHostElement(),\n nativeEvent: e,\n });\n }\n}\n","<ng-content select=\"ax-title\"></ng-content>\n\n<li class=\"ax-nav-li\" [class.ax-state-disabled]=\"disabled\" [class.ax-state-active]=\"active\"\n (click)=\"_handleClickEvent($event)\">\n <div class=\"ax-start-nav\">\n <ng-content select=\"ax-prefix\"></ng-content>\n </div>\n <ng-content></ng-content>\n <div class=\"ax-end-nav\">\n <ng-content select=\"ax-suffix\"></ng-content>\n </div>\n</li>\n\n<ul class=\"ax-nav-children\">\n <ng-content select=\"ax-side-menu-item, ng-container\"></ng-content>\n</ul>","import { MXBaseComponent } from '@acorex/components/common';\nimport { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'ax-nav',\n templateUrl: './nav.component.html',\n styleUrls: ['./nav.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXNavComponent extends MXBaseComponent {}\n","<ul>\n <ng-content select=\"ax-nav-item,ax-title,ng-container\"></ng-content>\n</ul>\n","import { AXCommonModule } from '@acorex/components/common';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { AXNavItemComponent } from './nav-item/nav-item.component';\nimport { AXNavComponent } from './nav.component';\n\nconst COMPONENT = [AXNavComponent, AXNavItemComponent];\nconst MODULES = [CommonModule, AXCommonModule];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [...MODULES],\n exports: [...COMPONENT],\n providers: [],\n})\nexport class AXNavModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAWa,kBAAmB,SAAQ,OAAO,CAAC,sBAAsB,CAAC,CAAA;AAPvE,IAAA,WAAA,GAAA;;AASE,QAAA,IAAA,CAAA,OAAO,GAA+B,IAAI,YAAY,EAAgB,CAAC;AAGvE,QAAA,IAAA,CAAA,YAAY,GAA0B,IAAI,YAAY,EAAW,CAAC;QAE1D,IAAO,CAAA,OAAA,GAAG,KAAK,CAAC;AAkBzB,KAAA;AAjBC,IAAA,IACW,MAAM,GAAA;QAC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AAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAW,YAJT,OAAO,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAIT,WAAW,EAAA,UAAA,EAAA,CAAA;kBANvB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,GAAG,SAAS,CAAC;AAC5B,oBAAA,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;AACrB,oBAAA,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC;AACvB,oBAAA,SAAS,EAAE,EAAE;AACd,iBAAA,CAAA;;;ACdD;;AAEG;;;;"}
1
+ {"version":3,"file":"acorex-components-nav.mjs","sources":["../../../../libs/components/nav/src/lib/nav-item/nav-item.component.ts","../../../../libs/components/nav/src/lib/nav-item/nav-item.component.html","../../../../libs/components/nav/src/lib/nav.component.ts","../../../../libs/components/nav/src/lib/nav.component.html","../../../../libs/components/nav/src/lib/nav.module.ts","../../../../libs/components/nav/src/acorex-components-nav.ts"],"sourcesContent":["import { AXClickEvent, MXInteractiveComponent } from '@acorex/components/common';\nimport { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, ViewEncapsulation } from '@angular/core';\nimport { classes } from 'polytype';\n\n/**\n * @category Components\n * A component represents an individual item within the navigation interface, supporting customization options such as disabling and color changes.\n */\n@Component({\n selector: 'ax-nav-item',\n inputs: ['disabled', 'color'],\n templateUrl: './nav-item.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXNavItemComponent extends classes(MXInteractiveComponent) {\n\n /**\n * Emits an event when the navigation item is clicked.\n * @event\n */\n @Output()\n onClick: EventEmitter<AXClickEvent> = new EventEmitter<AXClickEvent>();\n\n /**\n * Emits when the active state changes.\n * @event\n */\n @Output()\n activeChange: EventEmitter<boolean> = new EventEmitter<boolean>();\n\n /** @ignore */\n private _active = false;\n\n/**\n * Gets or sets the active state of the component.\n * @param {boolean} v \n */\n @Input()\n public get active(): boolean {\n return this._active;\n }\n\n /**\n * Sets the active state of the component.\n * @param {boolean} v \n */\n public set active(v: boolean) {\n this.setOption({\n name: 'active',\n value: v,\n });\n }\n\n /** @ignore */\n _handleClickEvent(e: MouseEvent) {\n this.onClick.emit({\n component: this,\n htmlElement: this.getHostElement(),\n nativeEvent: e,\n });\n }\n}\n","<ng-content select=\"ax-title\"></ng-content>\n\n<li class=\"ax-nav-li\" [class.ax-state-disabled]=\"disabled\" [class.ax-state-active]=\"active\"\n (click)=\"_handleClickEvent($event)\">\n <div class=\"ax-start-nav\">\n <ng-content select=\"ax-prefix\"></ng-content>\n </div>\n <ng-content></ng-content>\n <div class=\"ax-end-nav\">\n <ng-content select=\"ax-suffix\"></ng-content>\n </div>\n</li>\n\n<ul class=\"ax-nav-children\">\n <ng-content select=\"ax-side-menu-item, ng-container\"></ng-content>\n</ul>","import { MXBaseComponent } from '@acorex/components/common';\nimport { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\n\n/**\n * @category Components\n * A navigation component provides a customizable navigation interface with optimized change detection.\n */\n@Component({\n selector: 'ax-nav',\n templateUrl: './nav.component.html',\n styleUrls: ['./nav.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXNavComponent extends MXBaseComponent {}\n","<ul>\n <ng-content select=\"ax-nav-item,ax-title,ng-container\"></ng-content>\n</ul>\n","import { AXCommonModule } from '@acorex/components/common';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { AXNavItemComponent } from './nav-item/nav-item.component';\nimport { AXNavComponent } from './nav.component';\n\nconst COMPONENT = [AXNavComponent, AXNavItemComponent];\nconst MODULES = [CommonModule, AXCommonModule];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [...MODULES],\n exports: [...COMPONENT],\n providers: [],\n})\nexport class AXNavModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings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,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;+GAAX,WAAW,EAAA,YAAA,EAAA,CATL,cAAc,EAAE,kBAAkB,CAAA,EAAA,OAAA,EAAA,CACpC,YAAY,EAAE,cAAc,CAAA,EAAA,OAAA,EAAA,CAD1B,cAAc,EAAE,kBAAkB,CAAA,EAAA,CAAA,CAAA,EAAA;AASxC,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAW,YAJT,OAAO,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAIT,WAAW,EAAA,UAAA,EAAA,CAAA;kBANvB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,GAAG,SAAS,CAAC;AAC5B,oBAAA,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;AACrB,oBAAA,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC;AACvB,oBAAA,SAAS,EAAE,EAAE;AACd,iBAAA,CAAA;;;ACdD;;AAEG;;;;"}
@@ -3,14 +3,19 @@ import * as i0 from '@angular/core';
3
3
  import { Component, ChangeDetectionStrategy, ViewEncapsulation, HostBinding, NgModule } from '@angular/core';
4
4
  import { CommonModule } from '@angular/common';
5
5
 
6
+ /**
7
+ * @category Components
8
+ * A navigation bar component that supports custom styling and encapsulation.
9
+ */
6
10
  class AXNavbarComponent extends MXLookComponent {
11
+ /** @ignore */
7
12
  get __hostClass() {
8
13
  return `ax-alert ax-none ax-look-${this.look}`;
9
14
  }
10
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXNavbarComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
11
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.2", type: AXNavbarComponent, selector: "ax-navbar", inputs: { look: "look" }, host: { properties: { "class": "this.__hostClass" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"ax-navbar-start-side\">\n <ng-content select=\"ax-prefix\"></ng-content>\n <ng-content select=\"ax-title\"></ng-content>\n</div>\n<ng-content></ng-content>\n<div class=\"ax-navbar-end-side\">\n <ng-content select=\"ax-suffix\"></ng-content>\n</div>\n", styles: ["ax-navbar{display:flex;min-height:3.5rem;width:100%;align-items:center;justify-content:space-between;gap:.75rem;padding:.5rem 1rem}ax-navbar.ax-look-solid{background-color:rgba(var(--ax-color-surface))}ax-navbar.ax-look-flat{border-bottom-width:1px;border-color:rgba(var(--ax-color-border-default))}ax-navbar.ax-look-fill{background-color:rgba(var(--ax-color-on-surface))}ax-navbar .ax-navbar-start-side{margin-inline-end:2rem;display:flex;align-items:center;gap:.5rem;font-size:1rem;line-height:1.5rem}ax-navbar .ax-navbar-start-side ax-title{font-size:1.125rem;line-height:1.75rem;font-weight:700;line-height:1}ax-navbar .ax-navbar-end-side ax-suffix{display:flex;gap:.5rem}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
15
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXNavbarComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
16
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXNavbarComponent, selector: "ax-navbar", inputs: { look: "look" }, host: { properties: { "class": "this.__hostClass" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"ax-navbar-start-side\">\n <ng-content select=\"ax-prefix\"></ng-content>\n <ng-content select=\"ax-title\"></ng-content>\n</div>\n<ng-content></ng-content>\n<div class=\"ax-navbar-end-side\">\n <ng-content select=\"ax-suffix\"></ng-content>\n</div>\n", styles: ["ax-navbar{display:flex;min-height:3.5rem;width:100%;align-items:center;justify-content:space-between;gap:.75rem;padding:.5rem 1rem}ax-navbar.ax-look-solid{background-color:rgba(var(--ax-color-surface))}ax-navbar.ax-look-flat{border-bottom-width:1px;border-color:rgba(var(--ax-color-border-default))}ax-navbar.ax-look-fill{background-color:rgba(var(--ax-color-on-surface))}ax-navbar .ax-navbar-start-side{margin-inline-end:2rem;display:flex;align-items:center;gap:.5rem;font-size:1rem;line-height:1.5rem}ax-navbar .ax-navbar-start-side ax-title{font-size:1.125rem;line-height:1.75rem;font-weight:700;line-height:1}ax-navbar .ax-navbar-end-side ax-suffix{display:flex;gap:.5rem}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
12
17
  }
13
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXNavbarComponent, decorators: [{
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXNavbarComponent, decorators: [{
14
19
  type: Component,
15
20
  args: [{ selector: 'ax-navbar', inputs: ['look'], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div class=\"ax-navbar-start-side\">\n <ng-content select=\"ax-prefix\"></ng-content>\n <ng-content select=\"ax-title\"></ng-content>\n</div>\n<ng-content></ng-content>\n<div class=\"ax-navbar-end-side\">\n <ng-content select=\"ax-suffix\"></ng-content>\n</div>\n", styles: ["ax-navbar{display:flex;min-height:3.5rem;width:100%;align-items:center;justify-content:space-between;gap:.75rem;padding:.5rem 1rem}ax-navbar.ax-look-solid{background-color:rgba(var(--ax-color-surface))}ax-navbar.ax-look-flat{border-bottom-width:1px;border-color:rgba(var(--ax-color-border-default))}ax-navbar.ax-look-fill{background-color:rgba(var(--ax-color-on-surface))}ax-navbar .ax-navbar-start-side{margin-inline-end:2rem;display:flex;align-items:center;gap:.5rem;font-size:1rem;line-height:1.5rem}ax-navbar .ax-navbar-start-side ax-title{font-size:1.125rem;line-height:1.75rem;font-weight:700;line-height:1}ax-navbar .ax-navbar-end-side ax-suffix{display:flex;gap:.5rem}\n"] }]
16
21
  }], propDecorators: { __hostClass: [{
@@ -19,11 +24,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
19
24
  }] } });
20
25
 
21
26
  class AXNavbarModule {
22
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXNavbarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
23
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.2", ngImport: i0, type: AXNavbarModule, declarations: [AXNavbarComponent], imports: [CommonModule], exports: [AXNavbarComponent] }); }
24
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXNavbarModule, imports: [CommonModule] }); }
27
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXNavbarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
28
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXNavbarModule, declarations: [AXNavbarComponent], imports: [CommonModule], exports: [AXNavbarComponent] }); }
29
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXNavbarModule, imports: [CommonModule] }); }
25
30
  }
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXNavbarModule, decorators: [{
31
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXNavbarModule, decorators: [{
27
32
  type: NgModule,
28
33
  args: [{
29
34
  declarations: [AXNavbarComponent],
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-components-navbar.mjs","sources":["../../../../libs/components/navbar/src/lib/navbar.component.ts","../../../../libs/components/navbar/src/lib/navbar.component.html","../../../../libs/components/navbar/src/lib/navbar.module.ts","../../../../libs/components/navbar/src/acorex-components-navbar.ts"],"sourcesContent":["import { MXLookComponent } from '@acorex/components/common';\nimport { ChangeDetectionStrategy, Component, HostBinding, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'ax-navbar',\n templateUrl: './navbar.component.html',\n styleUrls: ['./navbar.component.scss'],\n inputs: ['look'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXNavbarComponent extends MXLookComponent {\n @HostBinding('class')\n get __hostClass(): string {\n return `ax-alert ax-none ax-look-${this.look}`;\n }\n}\n","<div class=\"ax-navbar-start-side\">\n <ng-content select=\"ax-prefix\"></ng-content>\n <ng-content select=\"ax-title\"></ng-content>\n</div>\n<ng-content></ng-content>\n<div class=\"ax-navbar-end-side\">\n <ng-content select=\"ax-suffix\"></ng-content>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { AXNavbarComponent } from './navbar.component';\n\n@NgModule({\n declarations: [AXNavbarComponent],\n imports: [CommonModule],\n exports: [AXNavbarComponent],\n})\nexport class AXNavbarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAWM,MAAO,iBAAkB,SAAQ,eAAe,CAAA;AACpD,IAAA,IACI,WAAW,GAAA;AACb,QAAA,OAAO,CAA4B,yBAAA,EAAA,IAAI,CAAC,IAAI,EAAE,CAAC;KAChD;8GAJU,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAjB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EA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AA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;oBACjC,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,iBAAiB,CAAC;AAC7B,iBAAA,CAAA;;;ACRD;;AAEG;;;;"}
1
+ {"version":3,"file":"acorex-components-navbar.mjs","sources":["../../../../libs/components/navbar/src/lib/navbar.component.ts","../../../../libs/components/navbar/src/lib/navbar.component.html","../../../../libs/components/navbar/src/lib/navbar.module.ts","../../../../libs/components/navbar/src/acorex-components-navbar.ts"],"sourcesContent":["import { MXLookComponent } from '@acorex/components/common';\nimport { ChangeDetectionStrategy, Component, HostBinding, ViewEncapsulation } from '@angular/core';\n\n/**\n * @category Components\n * A navigation bar component that supports custom styling and encapsulation.\n */\n@Component({\n selector: 'ax-navbar',\n templateUrl: './navbar.component.html',\n styleUrls: ['./navbar.component.scss'],\n inputs: ['look'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXNavbarComponent extends MXLookComponent {\n\n /** @ignore */\n @HostBinding('class')\n get __hostClass(): string {\n return `ax-alert ax-none ax-look-${this.look}`;\n }\n}\n","<div class=\"ax-navbar-start-side\">\n <ng-content select=\"ax-prefix\"></ng-content>\n <ng-content select=\"ax-title\"></ng-content>\n</div>\n<ng-content></ng-content>\n<div class=\"ax-navbar-end-side\">\n <ng-content select=\"ax-suffix\"></ng-content>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { AXNavbarComponent } from './navbar.component';\n\n@NgModule({\n declarations: [AXNavbarComponent],\n imports: [CommonModule],\n exports: [AXNavbarComponent],\n})\nexport class AXNavbarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAGA;;;AAGG;AASG,MAAO,iBAAkB,SAAQ,eAAe,CAAA;;AAGpD,IAAA,IACI,WAAW,GAAA;AACb,QAAA,OAAO,CAA4B,y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