aril 1.2.23 → 1.2.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (447) hide show
  1. package/esm2022/boot/base/index.mjs +1 -1
  2. package/esm2022/boot/base/src/create-base-app-config.mjs +1 -1
  3. package/esm2022/boot/bridge/index.mjs +1 -1
  4. package/esm2022/boot/bridge/src/mfe-bridge.mjs +1 -1
  5. package/esm2022/boot/bridge/src/provide-mfe-bridge.mjs +1 -1
  6. package/esm2022/boot/config/api/index.mjs +1 -1
  7. package/esm2022/boot/config/api/src/api.service.mjs +1 -1
  8. package/esm2022/boot/config/api/src/interfaces.mjs +1 -1
  9. package/esm2022/boot/config/apps/src/apps.service.mjs +4 -4
  10. package/esm2022/boot/config/apps/src/auth.guard.mjs +4 -4
  11. package/esm2022/boot/config/apps/src/interfaces.mjs +1 -1
  12. package/esm2022/boot/config/apps/src/route-permissions.mjs +1 -1
  13. package/esm2022/boot/config/apps/src/showdowDOMWrapper.mjs +4 -4
  14. package/esm2022/boot/config/plugins/src/getNgZone.mjs +1 -1
  15. package/esm2022/boot/config/plugins/src/interfaces.mjs +1 -1
  16. package/esm2022/boot/config/plugins/src/plugins.service.mjs +1 -1
  17. package/esm2022/boot/config/translate/primeng/i18n/tr.mjs +1 -1
  18. package/esm2022/boot/host/src/app.component.mjs +4 -4
  19. package/esm2022/boot/host/src/bootstrap.mjs +1 -1
  20. package/esm2022/boot/mfe/src/app.component.mjs +15 -15
  21. package/esm2022/boot/mfe/src/bootstrap.mjs +1 -1
  22. package/esm2022/boot/pages/index.mjs +1 -1
  23. package/esm2022/boot/pages/src/forbidden.component.mjs +53 -53
  24. package/esm2022/boot/pages/src/notFound.component.mjs +49 -49
  25. package/esm2022/http/lib/enums.mjs +1 -1
  26. package/esm2022/http/src/httpBackend.mjs +4 -4
  27. package/esm2022/http/src/serviceBase.mjs +1 -1
  28. package/esm2022/http/src/serviceStateMethods.mjs +1 -1
  29. package/esm2022/i18n/src/i18n.module.mjs +5 -5
  30. package/esm2022/i18n/src/loader.mjs +4 -4
  31. package/esm2022/keycloak/src/auth.interceptor.mjs +1 -1
  32. package/esm2022/provider/src/prodiveHost.mjs +1 -1
  33. package/esm2022/provider/src/prodiveHostRouter.mjs +1 -1
  34. package/esm2022/provider/src/provideHostKeycloak.mjs +1 -1
  35. package/esm2022/superset/index.mjs +1 -1
  36. package/esm2022/theme/layout/app/breadcrumb/app.breadcrumb.component.mjs +4 -4
  37. package/esm2022/theme/layout/app/expandableMenu/expandable-menu.component.mjs +5 -5
  38. package/esm2022/theme/layout/app/favorite-pages/favorite-pages-sidebar.component.mjs +4 -4
  39. package/esm2022/theme/layout/app/favorite-pages/favorite-pages.service.mjs +4 -4
  40. package/esm2022/theme/layout/app/favorite-pages/modals/add-edit-favorite-modal/add-edit-favorite-modal.component.mjs +4 -4
  41. package/esm2022/theme/layout/app/general-search/general-search.component.mjs +4 -4
  42. package/esm2022/theme/layout/app/history/history-sidebar.component.mjs +4 -4
  43. package/esm2022/theme/layout/app/history/history.service.mjs +4 -4
  44. package/esm2022/theme/layout/app/layout/app.layout.component.mjs +4 -4
  45. package/esm2022/theme/layout/app/layout/mfe.layout.component.mjs +4 -4
  46. package/esm2022/theme/layout/app/notifications/notifications-sidebar.component.mjs +4 -4
  47. package/esm2022/theme/layout/app/profileSidebar/app.profilesidebar.component.mjs +4 -4
  48. package/esm2022/theme/layout/app/profileSidebar/modals/change-password-modal/change-password-modal.component.mjs +4 -4
  49. package/esm2022/theme/layout/app/profileSidebar/modals/edit-profile-modal/edit-profile-modal.component.mjs +4 -4
  50. package/esm2022/theme/layout/app/profileSidebar/profile.service.mjs +4 -4
  51. package/esm2022/theme/layout/app/site-map/site-map-sidebar.component.mjs +4 -4
  52. package/esm2022/theme/layout/app/static-sidebar/static-sidebar.component.mjs +5 -5
  53. package/esm2022/theme/layout/app/topbar/app.topbar.component.mjs +10 -5
  54. package/esm2022/theme/layout/index.mjs +1 -1
  55. package/esm2022/theme/layout/service/app.layout.service.mjs +4 -4
  56. package/esm2022/theme/layout/service/app.menu.service.mjs +4 -4
  57. package/esm2022/theme/layout/service/breadcrumb.service.mjs +4 -4
  58. package/esm2022/theme/layout/service/interfaces/enum.mjs +1 -1
  59. package/esm2022/theme/layout/service/notifications.service.mjs +4 -4
  60. package/esm2022/theme/layout/service/search.service.mjs +4 -4
  61. package/esm2022/theme/layout/service/selection-group.service.mjs +4 -4
  62. package/esm2022/ui/autoComplete/src/auto-complete.component.mjs +4 -4
  63. package/esm2022/ui/badge/src/badge.component.mjs +4 -4
  64. package/esm2022/ui/button/src/button.component.mjs +4 -4
  65. package/esm2022/ui/button/src/split-button.component.mjs +4 -4
  66. package/esm2022/ui/calendar/src/calendar.component.mjs +4 -4
  67. package/esm2022/ui/charts/src/amCharts/column/column-chart.component.mjs +4 -4
  68. package/esm2022/ui/charts/src/amCharts/line/line-chart.component.mjs +4 -4
  69. package/esm2022/ui/charts/src/amCharts/pie/pie-chart.component.mjs +4 -4
  70. package/esm2022/ui/charts/src/highCharts/area/area-chart.component.mjs +4 -4
  71. package/esm2022/ui/charts/src/highCharts/bar/bar-chart.component.mjs +4 -4
  72. package/esm2022/ui/charts/src/highCharts/column/column-chart.component.mjs +4 -4
  73. package/esm2022/ui/charts/src/highCharts/gauge/solid-gauge.component.mjs +4 -4
  74. package/esm2022/ui/charts/src/highCharts/heatmap/heatMap-chart.component.mjs +4 -4
  75. package/esm2022/ui/charts/src/highCharts/line/line-chart-datetime-axis.component.mjs +4 -4
  76. package/esm2022/ui/charts/src/highCharts/line/line-chart-series.component.mjs +4 -4
  77. package/esm2022/ui/charts/src/highCharts/line/line-chart.component.mjs +4 -4
  78. package/esm2022/ui/charts/src/highCharts/pie/pie-chart.component.mjs +4 -4
  79. package/esm2022/ui/checkbox/src/check-box.component.mjs +4 -4
  80. package/esm2022/ui/checkbox/src/tri-state-checkbox.component.mjs +4 -4
  81. package/esm2022/ui/chip/src/chip.component.mjs +4 -4
  82. package/esm2022/ui/collapse-reorder-list/src/collapse-reorder-list.component.mjs +4 -4
  83. package/esm2022/ui/dxEditor/src/dx-editor.component.mjs +4 -4
  84. package/esm2022/ui/dxField/src/dx-field.component.mjs +4 -4
  85. package/esm2022/ui/editor/src/aril-editor.component.mjs +4 -4
  86. package/esm2022/ui/field/src/field.component.mjs +4 -4
  87. package/esm2022/ui/fileUpload/src/file-upload.component.mjs +4 -4
  88. package/esm2022/ui/form/index.mjs +5 -5
  89. package/esm2022/ui/form/src/form-submit-button.component.mjs +5 -5
  90. package/esm2022/ui/form/src/form.component.mjs +4 -4
  91. package/esm2022/ui/img-viewer/src/img-viewer.component.mjs +4 -4
  92. package/esm2022/ui/json-diff-comparison/src/json-diff.component.mjs +4 -4
  93. package/esm2022/ui/lib/src/form/form-error-message.component.mjs +4 -4
  94. package/esm2022/ui/lib/src/form/form-error-message.directive.mjs +4 -4
  95. package/esm2022/ui/lib/src/grid/enum-color-picker.pipe.mjs +4 -4
  96. package/esm2022/ui/lib/src/grid/flex-grid.directive.mjs +4 -4
  97. package/esm2022/ui/lib/src/input/common-input-validators.service.mjs +4 -4
  98. package/esm2022/ui/lib/src/input/dx-input-error-message.pipe.mjs +4 -4
  99. package/esm2022/ui/lib/src/input/input-disabled.directive.mjs +4 -4
  100. package/esm2022/ui/lib/src/input/input-error-message.pipe.mjs +4 -4
  101. package/esm2022/ui/lib/src/input/value-accessor.directive.mjs +4 -4
  102. package/esm2022/ui/loader/src/loader.component.mjs +4 -4
  103. package/esm2022/ui/mask/src/mask.component.mjs +4 -4
  104. package/esm2022/ui/multiSelect/src/multi-select.component.mjs +4 -4
  105. package/esm2022/ui/number/src/number.component.mjs +4 -4
  106. package/esm2022/ui/operation-types-dialog/src/operation-types-dialog.component.mjs +13 -13
  107. package/esm2022/ui/overlayPanel/src/overlay-panel.component.mjs +4 -4
  108. package/esm2022/ui/panel/src/panel.component.mjs +4 -4
  109. package/esm2022/ui/password/src/password.component.mjs +4 -4
  110. package/esm2022/ui/pdf-viewer/src/pdf-viewer.component.mjs +4 -4
  111. package/esm2022/ui/progressbar/src/progressbar.component.mjs +4 -4
  112. package/esm2022/ui/radioButton/src/radio-button.component.mjs +4 -4
  113. package/esm2022/ui/relativeDateSelector/src/relative-date-selector.component.mjs +4 -4
  114. package/esm2022/ui/selectBox/src/select-box.component.mjs +4 -4
  115. package/esm2022/ui/switch/src/switch.component.mjs +4 -4
  116. package/esm2022/ui/table/index.mjs +5 -5
  117. package/esm2022/ui/table/src/export-overlay-panel.component.mjs +129 -129
  118. package/esm2022/ui/table/src/interfaces.mjs +1 -1
  119. package/esm2022/ui/table/src/table-column.component.mjs +4 -4
  120. package/esm2022/ui/table/src/table.component.mjs +5 -5
  121. package/esm2022/ui/table-expand/index.mjs +5 -5
  122. package/esm2022/ui/table-expand/src/table-column.component.mjs +4 -4
  123. package/esm2022/ui/table-expand/src/table-expand-area.component.mjs +4 -4
  124. package/esm2022/ui/table-expand/src/table.component.mjs +4 -4
  125. package/esm2022/ui/tag/src/tag.component.mjs +4 -4
  126. package/esm2022/ui/tagBox/src/tag-box.component.mjs +4 -4
  127. package/esm2022/ui/text/src/text.component.mjs +4 -4
  128. package/esm2022/ui/textArea/src/text-area.component.mjs +4 -4
  129. package/esm2022/ui/toggle-button/src/toggle-button.component.mjs +4 -4
  130. package/esm2022/ui/tooltip/src/tooltip-component.mjs +4 -4
  131. package/esm2022/ui/translate-input/src/aril-lang-modal/aril-lang-modal.component.mjs +4 -4
  132. package/esm2022/ui/translate-input/src/aril-translate-input.component.mjs +4 -4
  133. package/esm2022/ui/tree/src/tree.component.mjs +4 -4
  134. package/esm2022/ui/treeSelect/src/treeSelect.component.mjs +4 -4
  135. package/esm2022/ui/treeTable/src/tree-table.component.mjs +4 -4
  136. package/esm2022/ui/value/src/value.component.mjs +4 -4
  137. package/esm2022/ui-business/assetPicker/index.mjs +2 -1
  138. package/esm2022/ui-business/assetPicker/src/asset-picker.component.mjs +5 -5
  139. package/esm2022/ui-business/detailed-overlay-panel/src/detailed-overlay-panel.component.mjs +5 -5
  140. package/esm2022/ui-business/enumPicker/src/enum-picker.component.mjs +5 -5
  141. package/esm2022/ui-business/enumPicker/src/interface.mjs +1 -1
  142. package/esm2022/ui-business/image-viewer/src/aril-image-viewer.component.mjs +4 -4
  143. package/esm2022/ui-business/multiAssetPicker/aril-ui-business-multiAssetPicker.mjs +5 -0
  144. package/esm2022/ui-business/multiAssetPicker/index.mjs +2 -0
  145. package/esm2022/ui-business/multiAssetPicker/src/multi-asset-picker.component.mjs +107 -0
  146. package/esm2022/ui-business/multiple-ref-value/src/multiple-ref-value.component.mjs +4 -4
  147. package/esm2022/ui-business/notification-templates-dialog/src/notification-templates-dialog.component.mjs +4 -4
  148. package/esm2022/ui-business/operation-types-dialog/src/operation-types-dialog.component.mjs +4 -4
  149. package/esm2022/ui-business/pdf-preview-modal/index.mjs +1 -1
  150. package/esm2022/ui-business/pdf-preview-modal/src/open-pdf-preview.mjs +1 -1
  151. package/esm2022/ui-business/pdf-preview-modal/src/pdf-preview-modal.component.mjs +29 -29
  152. package/esm2022/ui-business/ref-value/src/ref-value.component.mjs +5 -5
  153. package/esm2022/ui-business/rolePicker/src/role-picker.component.mjs +4 -4
  154. package/esm2022/ui-business/trace-drawer/index.mjs +1 -1
  155. package/esm2022/ui-business/trace-drawer/src/app-log.service.mjs +4 -4
  156. package/esm2022/ui-business/trace-drawer/src/interfaces.mjs +1 -1
  157. package/esm2022/ui-business/trace-drawer/src/trace-drawer.component.mjs +5 -5
  158. package/esm2022/ui-business/trace-drawer/src/trace-log.service.mjs +4 -4
  159. package/esm2022/ui-business/trace-id/index.mjs +1 -1
  160. package/esm2022/ui-business/trace-id/src/trace-id.component.mjs +5 -5
  161. package/esm2022/ui-business/userPicker/src/user-picker.component.mjs +4 -4
  162. package/esm2022/util/activity/index.mjs +1 -1
  163. package/esm2022/util/activity/src/activity.constants.mjs +1 -1
  164. package/esm2022/util/activity/src/activity.service.mjs +4 -4
  165. package/esm2022/util/activity/src/activity.types.mjs +1 -1
  166. package/esm2022/util/block/src/block.mjs +7 -7
  167. package/esm2022/util/directives/src/detail-page-customization/detail-page-customization.directive.mjs +4 -4
  168. package/esm2022/util/directives/src/dialog-component/plugin-dialog.component.mjs +4 -4
  169. package/esm2022/util/directives/src/dialog-service/plugin-dialog.service.mjs +4 -4
  170. package/esm2022/util/lib/src/module-router.mjs +4 -4
  171. package/esm2022/util/pipes/src/distance-to-now.pipe.mjs +4 -4
  172. package/esm2022/util/pipes/src/get-column-by-field.pipe.mjs +4 -4
  173. package/esm2022/util/pipes/src/parse.pipe.mjs +4 -4
  174. package/esm2022/util/pipes/src/round-number.pipe.mjs +4 -4
  175. package/esm2022/util/pipes/src/safe.pipe.mjs +4 -4
  176. package/esm2022/util/pipes/src/translate-json/translate-json.pipe.mjs +4 -4
  177. package/esm2022/util/pub-sub/src/pub-sub.service.mjs +4 -4
  178. package/esm2022/util/sync-active-tab-route/src/sync-active-tab-route.directive.mjs +4 -4
  179. package/esm2022/util/unwrap/src/unwrap-tag.directive.mjs +4 -4
  180. package/fesm2022/{aril-app.component-CwZZhJcO.mjs → aril-app.component-Pj4R9eG9.mjs} +15 -15
  181. package/fesm2022/aril-app.component-Pj4R9eG9.mjs.map +1 -0
  182. package/fesm2022/aril-boot-base.mjs +1 -1
  183. package/fesm2022/aril-boot-base.mjs.map +1 -1
  184. package/fesm2022/aril-boot-bridge.mjs.map +1 -1
  185. package/fesm2022/aril-boot-config-api.mjs +1 -1
  186. package/fesm2022/aril-boot-config-api.mjs.map +1 -1
  187. package/fesm2022/aril-boot-config-apps.mjs +10 -10
  188. package/fesm2022/aril-boot-config-apps.mjs.map +1 -1
  189. package/fesm2022/aril-boot-config-plugins.mjs +1 -1
  190. package/fesm2022/aril-boot-config-plugins.mjs.map +1 -1
  191. package/fesm2022/aril-boot-config-translate.mjs.map +1 -1
  192. package/fesm2022/aril-boot-host.mjs +4 -4
  193. package/fesm2022/aril-boot-host.mjs.map +1 -1
  194. package/fesm2022/{aril-boot-mfe-app.component-DwYgUUdL.mjs → aril-boot-mfe-app.component-GbZAGlTf.mjs} +16 -16
  195. package/fesm2022/aril-boot-mfe-app.component-GbZAGlTf.mjs.map +1 -0
  196. package/fesm2022/{aril-boot-mfe-aril-boot-mfe-hJkkFa_a.mjs → aril-boot-mfe-aril-boot-mfe-I5xT2fQx.mjs} +4 -4
  197. package/fesm2022/aril-boot-mfe-aril-boot-mfe-I5xT2fQx.mjs.map +1 -0
  198. package/fesm2022/aril-boot-mfe.mjs +1 -1
  199. package/fesm2022/aril-boot-pages.mjs +100 -100
  200. package/fesm2022/aril-boot-pages.mjs.map +1 -1
  201. package/fesm2022/aril-http.mjs +3 -3
  202. package/fesm2022/aril-http.mjs.map +1 -1
  203. package/fesm2022/aril-i18n.mjs +7 -7
  204. package/fesm2022/aril-i18n.mjs.map +1 -1
  205. package/fesm2022/aril-keycloak.mjs.map +1 -1
  206. package/fesm2022/aril-provider.mjs +1 -1
  207. package/fesm2022/aril-provider.mjs.map +1 -1
  208. package/fesm2022/aril-theme-layout.mjs +79 -75
  209. package/fesm2022/aril-theme-layout.mjs.map +1 -1
  210. package/fesm2022/aril-ui-autoComplete.mjs +6 -6
  211. package/fesm2022/aril-ui-autoComplete.mjs.map +1 -1
  212. package/fesm2022/aril-ui-badge.mjs +4 -4
  213. package/fesm2022/aril-ui-badge.mjs.map +1 -1
  214. package/fesm2022/aril-ui-business-assetPicker.mjs +6 -6
  215. package/fesm2022/aril-ui-business-assetPicker.mjs.map +1 -1
  216. package/fesm2022/aril-ui-business-detailed-overlay-panel.mjs +6 -6
  217. package/fesm2022/aril-ui-business-detailed-overlay-panel.mjs.map +1 -1
  218. package/fesm2022/aril-ui-business-enumPicker.mjs +6 -6
  219. package/fesm2022/aril-ui-business-enumPicker.mjs.map +1 -1
  220. package/fesm2022/aril-ui-business-image-viewer.mjs +3 -3
  221. package/fesm2022/aril-ui-business-image-viewer.mjs.map +1 -1
  222. package/fesm2022/aril-ui-business-multiAssetPicker.mjs +114 -0
  223. package/fesm2022/aril-ui-business-multiAssetPicker.mjs.map +1 -0
  224. package/fesm2022/aril-ui-business-multiple-ref-value.mjs +4 -4
  225. package/fesm2022/aril-ui-business-multiple-ref-value.mjs.map +1 -1
  226. package/fesm2022/aril-ui-business-notification-templates-dialog.mjs +3 -3
  227. package/fesm2022/aril-ui-business-notification-templates-dialog.mjs.map +1 -1
  228. package/fesm2022/aril-ui-business-operation-types-dialog.mjs +3 -3
  229. package/fesm2022/aril-ui-business-operation-types-dialog.mjs.map +1 -1
  230. package/fesm2022/aril-ui-business-pdf-preview-modal.mjs +28 -28
  231. package/fesm2022/aril-ui-business-pdf-preview-modal.mjs.map +1 -1
  232. package/fesm2022/aril-ui-business-ref-value.mjs +5 -5
  233. package/fesm2022/aril-ui-business-ref-value.mjs.map +1 -1
  234. package/fesm2022/aril-ui-business-rolePicker.mjs +4 -4
  235. package/fesm2022/aril-ui-business-rolePicker.mjs.map +1 -1
  236. package/fesm2022/aril-ui-business-trace-drawer.mjs +11 -11
  237. package/fesm2022/aril-ui-business-trace-drawer.mjs.map +1 -1
  238. package/fesm2022/aril-ui-business-trace-id.mjs +5 -5
  239. package/fesm2022/aril-ui-business-trace-id.mjs.map +1 -1
  240. package/fesm2022/aril-ui-business-userPicker.mjs +3 -3
  241. package/fesm2022/aril-ui-business-userPicker.mjs.map +1 -1
  242. package/fesm2022/aril-ui-button.mjs +7 -7
  243. package/fesm2022/aril-ui-button.mjs.map +1 -1
  244. package/fesm2022/aril-ui-calendar.mjs +3 -3
  245. package/fesm2022/aril-ui-calendar.mjs.map +1 -1
  246. package/fesm2022/aril-ui-charts.mjs +37 -37
  247. package/fesm2022/aril-ui-charts.mjs.map +1 -1
  248. package/fesm2022/aril-ui-checkbox.mjs +6 -6
  249. package/fesm2022/aril-ui-checkbox.mjs.map +1 -1
  250. package/fesm2022/aril-ui-chip.mjs +4 -4
  251. package/fesm2022/aril-ui-chip.mjs.map +1 -1
  252. package/fesm2022/aril-ui-collapse-reorder-list.mjs +4 -4
  253. package/fesm2022/aril-ui-collapse-reorder-list.mjs.map +1 -1
  254. package/fesm2022/aril-ui-dxEditor.mjs +4 -4
  255. package/fesm2022/aril-ui-dxEditor.mjs.map +1 -1
  256. package/fesm2022/aril-ui-dxField.mjs +4 -4
  257. package/fesm2022/aril-ui-dxField.mjs.map +1 -1
  258. package/fesm2022/aril-ui-editor.mjs +4 -4
  259. package/fesm2022/aril-ui-editor.mjs.map +1 -1
  260. package/fesm2022/aril-ui-field.mjs +4 -4
  261. package/fesm2022/aril-ui-field.mjs.map +1 -1
  262. package/fesm2022/aril-ui-fileUpload.mjs +4 -4
  263. package/fesm2022/aril-ui-fileUpload.mjs.map +1 -1
  264. package/fesm2022/aril-ui-form.mjs +12 -12
  265. package/fesm2022/aril-ui-form.mjs.map +1 -1
  266. package/fesm2022/aril-ui-img-viewer.mjs +3 -3
  267. package/fesm2022/aril-ui-img-viewer.mjs.map +1 -1
  268. package/fesm2022/aril-ui-json-diff-comparison.mjs +4 -4
  269. package/fesm2022/aril-ui-json-diff-comparison.mjs.map +1 -1
  270. package/fesm2022/aril-ui-lib.mjs +28 -28
  271. package/fesm2022/aril-ui-lib.mjs.map +1 -1
  272. package/fesm2022/aril-ui-loader.mjs +3 -3
  273. package/fesm2022/aril-ui-loader.mjs.map +1 -1
  274. package/fesm2022/aril-ui-mask.mjs +3 -3
  275. package/fesm2022/aril-ui-mask.mjs.map +1 -1
  276. package/fesm2022/aril-ui-multiSelect.mjs +3 -3
  277. package/fesm2022/aril-ui-multiSelect.mjs.map +1 -1
  278. package/fesm2022/aril-ui-number.mjs +3 -3
  279. package/fesm2022/aril-ui-number.mjs.map +1 -1
  280. package/fesm2022/aril-ui-operation-types-dialog.mjs +12 -12
  281. package/fesm2022/aril-ui-operation-types-dialog.mjs.map +1 -1
  282. package/fesm2022/aril-ui-overlayPanel.mjs +4 -4
  283. package/fesm2022/aril-ui-overlayPanel.mjs.map +1 -1
  284. package/fesm2022/aril-ui-panel.mjs +4 -4
  285. package/fesm2022/aril-ui-panel.mjs.map +1 -1
  286. package/fesm2022/aril-ui-password.mjs +3 -3
  287. package/fesm2022/aril-ui-password.mjs.map +1 -1
  288. package/fesm2022/aril-ui-pdf-viewer.mjs +3 -3
  289. package/fesm2022/aril-ui-pdf-viewer.mjs.map +1 -1
  290. package/fesm2022/aril-ui-progressbar.mjs +3 -3
  291. package/fesm2022/aril-ui-progressbar.mjs.map +1 -1
  292. package/fesm2022/aril-ui-radioButton.mjs +3 -3
  293. package/fesm2022/aril-ui-radioButton.mjs.map +1 -1
  294. package/fesm2022/aril-ui-relativeDateSelector.mjs +4 -4
  295. package/fesm2022/aril-ui-relativeDateSelector.mjs.map +1 -1
  296. package/fesm2022/aril-ui-selectBox.mjs +5 -5
  297. package/fesm2022/aril-ui-selectBox.mjs.map +1 -1
  298. package/fesm2022/aril-ui-switch.mjs +3 -3
  299. package/fesm2022/aril-ui-switch.mjs.map +1 -1
  300. package/fesm2022/aril-ui-table-expand.mjs +14 -14
  301. package/fesm2022/aril-ui-table-expand.mjs.map +1 -1
  302. package/fesm2022/aril-ui-table.mjs +141 -141
  303. package/fesm2022/aril-ui-table.mjs.map +1 -1
  304. package/fesm2022/aril-ui-tag.mjs +3 -3
  305. package/fesm2022/aril-ui-tag.mjs.map +1 -1
  306. package/fesm2022/aril-ui-tagBox.mjs +5 -5
  307. package/fesm2022/aril-ui-tagBox.mjs.map +1 -1
  308. package/fesm2022/aril-ui-text.mjs +3 -3
  309. package/fesm2022/aril-ui-text.mjs.map +1 -1
  310. package/fesm2022/aril-ui-textArea.mjs +3 -3
  311. package/fesm2022/aril-ui-textArea.mjs.map +1 -1
  312. package/fesm2022/aril-ui-toggle-button.mjs +4 -4
  313. package/fesm2022/aril-ui-toggle-button.mjs.map +1 -1
  314. package/fesm2022/aril-ui-tooltip.mjs +3 -3
  315. package/fesm2022/aril-ui-tooltip.mjs.map +1 -1
  316. package/fesm2022/aril-ui-translate-input.mjs +6 -6
  317. package/fesm2022/aril-ui-translate-input.mjs.map +1 -1
  318. package/fesm2022/aril-ui-tree.mjs +4 -4
  319. package/fesm2022/aril-ui-tree.mjs.map +1 -1
  320. package/fesm2022/aril-ui-treeSelect.mjs +4 -4
  321. package/fesm2022/aril-ui-treeSelect.mjs.map +1 -1
  322. package/fesm2022/aril-ui-treeTable.mjs +4 -4
  323. package/fesm2022/aril-ui-treeTable.mjs.map +1 -1
  324. package/fesm2022/aril-ui-value.mjs +5 -5
  325. package/fesm2022/aril-ui-value.mjs.map +1 -1
  326. package/fesm2022/aril-util-activity.mjs +3 -3
  327. package/fesm2022/aril-util-activity.mjs.map +1 -1
  328. package/fesm2022/aril-util-block.mjs +6 -6
  329. package/fesm2022/aril-util-block.mjs.map +1 -1
  330. package/fesm2022/aril-util-directives.mjs +10 -10
  331. package/fesm2022/aril-util-directives.mjs.map +1 -1
  332. package/fesm2022/aril-util-lib.mjs +3 -3
  333. package/fesm2022/aril-util-lib.mjs.map +1 -1
  334. package/fesm2022/aril-util-pipes.mjs +18 -18
  335. package/fesm2022/aril-util-pipes.mjs.map +1 -1
  336. package/fesm2022/aril-util-primitive-extensions.mjs.map +1 -1
  337. package/fesm2022/aril-util-pub-sub.mjs +3 -3
  338. package/fesm2022/aril-util-pub-sub.mjs.map +1 -1
  339. package/fesm2022/aril-util-sync-active-tab-route.mjs +4 -4
  340. package/fesm2022/aril-util-sync-active-tab-route.mjs.map +1 -1
  341. package/fesm2022/aril-util-unwrap.mjs +3 -3
  342. package/fesm2022/aril-util-unwrap.mjs.map +1 -1
  343. package/fesm2022/aril.mjs +6 -6
  344. package/fesm2022/aril.mjs.map +1 -1
  345. package/package.json +58 -52
  346. package/theme/layout/app/breadcrumb/app.breadcrumb.component.ts +127 -127
  347. package/theme/layout/app/expandableMenu/expandable-menu.component.html +137 -137
  348. package/theme/layout/app/expandableMenu/expandable-menu.component.ts +373 -373
  349. package/theme/layout/app/favorite-pages/favorite-pages-sidebar.component.d.ts +0 -16
  350. package/theme/layout/app/general-search/general-search.component.ts +93 -93
  351. package/theme/layout/app/history/history-sidebar.component.d.ts +0 -16
  352. package/theme/layout/app/history/history.service.ts +158 -158
  353. package/theme/layout/app/layout/app.layout.component.ts +168 -168
  354. package/theme/layout/app/notifications/notifications-sidebar.component.d.ts +0 -16
  355. package/theme/layout/app/site-map/site-map-sidebar.component.d.ts +0 -16
  356. package/theme/layout/app/site-map/site-map-sidebar.component.ts +195 -195
  357. package/theme/layout/app/static-sidebar/static-sidebar.component.html +162 -162
  358. package/theme/layout/app/static-sidebar/static-sidebar.component.scss +420 -420
  359. package/theme/layout/app/static-sidebar/static-sidebar.component.ts +343 -343
  360. package/theme/layout/app/topbar/app.topbar.component.d.ts +2 -0
  361. package/theme/layout/app/topbar/app.topbar.component.html +1 -1
  362. package/theme/layout/app/topbar/app.topbar.component.scss +1 -0
  363. package/theme/layout/app/topbar/app.topbar.component.ts +6 -0
  364. package/theme/layout/index.ts +9 -9
  365. package/theme/layout/service/interfaces/enum.ts +19 -19
  366. package/theme/styles/layout/_expanded_sidebar.scss +511 -511
  367. package/theme/styles/layout/_fonts.scss +81 -81
  368. package/theme/styles/theme/base/components/input/_inputtext.scss +104 -104
  369. package/theme/styles/theme/base/components/overlay/_sidebar.scss +27 -27
  370. package/theme/styles/theme/base/components/panel/_stepper.scss +205 -205
  371. package/theme/styles/theme/dark/_variables.scss +933 -933
  372. package/theme/styles/theme/light/_variables.scss +940 -940
  373. package/ui/autoComplete/src/auto-complete.component.d.ts +8 -8
  374. package/ui/badge/src/badge.component.d.ts +9 -9
  375. package/ui/button/src/button.component.d.ts +12 -12
  376. package/ui/button/src/split-button.component.d.ts +1 -1
  377. package/ui/calendar/src/calendar.component.d.ts +22 -22
  378. package/ui/charts/src/amCharts/column/column-chart.component.d.ts +4 -4
  379. package/ui/charts/src/amCharts/line/line-chart.component.d.ts +5 -5
  380. package/ui/charts/src/amCharts/pie/pie-chart.component.d.ts +4 -4
  381. package/ui/charts/src/highCharts/area/area-chart.component.d.ts +3 -3
  382. package/ui/charts/src/highCharts/bar/bar-chart.component.d.ts +7 -7
  383. package/ui/charts/src/highCharts/column/column-chart.component.d.ts +9 -9
  384. package/ui/charts/src/highCharts/gauge/solid-gauge.component.d.ts +3 -3
  385. package/ui/charts/src/highCharts/heatmap/heatMap-chart.component.d.ts +4 -4
  386. package/ui/charts/src/highCharts/line/line-chart-datetime-axis.component.d.ts +5 -5
  387. package/ui/charts/src/highCharts/line/line-chart-series.component.d.ts +4 -4
  388. package/ui/charts/src/highCharts/line/line-chart.component.d.ts +4 -4
  389. package/ui/charts/src/highCharts/pie/pie-chart.component.d.ts +7 -7
  390. package/ui/checkbox/src/check-box.component.d.ts +3 -3
  391. package/ui/checkbox/src/tri-state-checkbox.component.d.ts +2 -2
  392. package/ui/chip/src/chip.component.d.ts +7 -7
  393. package/ui/collapse-reorder-list/src/collapse-reorder-list.component.d.ts +4 -4
  394. package/ui/dxEditor/src/dx-editor.component.d.ts +5 -5
  395. package/ui/dxField/src/dx-field.component.d.ts +5 -5
  396. package/ui/editor/src/aril-editor.component.d.ts +3 -3
  397. package/ui/field/src/field.component.d.ts +9 -9
  398. package/ui/fileUpload/src/file-upload.component.d.ts +14 -14
  399. package/ui/form/src/form-submit-button.component.d.ts +1 -1
  400. package/ui/form/src/form.component.d.ts +1 -1
  401. package/ui/img-viewer/src/img-viewer.component.d.ts +1 -1
  402. package/ui/lib/src/form/form-error-message.directive.d.ts +1 -1
  403. package/ui/mask/src/mask.component.d.ts +6 -6
  404. package/ui/multiSelect/src/multi-select.component.d.ts +13 -13
  405. package/ui/number/src/number.component.d.ts +15 -15
  406. package/ui/overlayPanel/src/overlay-panel.component.d.ts +1 -1
  407. package/ui/panel/src/panel.component.d.ts +6 -6
  408. package/ui/password/src/password.component.d.ts +4 -4
  409. package/ui/pdf-viewer/src/pdf-viewer.component.d.ts +12 -12
  410. package/ui/progressbar/src/progressbar.component.d.ts +3 -3
  411. package/ui/radioButton/src/radio-button.component.d.ts +3 -3
  412. package/ui/selectBox/src/select-box.component.d.ts +10 -10
  413. package/ui/switch/src/switch.component.d.ts +1 -1
  414. package/ui/table/src/export-overlay-panel.component.d.ts +2 -2
  415. package/ui/table/src/table-column.component.d.ts +11 -11
  416. package/ui/table/src/table.component.d.ts +35 -35
  417. package/ui/table-expand/src/table-column.component.d.ts +6 -6
  418. package/ui/table-expand/src/table.component.d.ts +20 -20
  419. package/ui/tag/src/tag.component.d.ts +6 -4
  420. package/ui/tagBox/src/tag-box.component.d.ts +7 -7
  421. package/ui/text/src/text.component.d.ts +5 -5
  422. package/ui/textArea/src/text-area.component.d.ts +5 -5
  423. package/ui/toggle-button/src/toggle-button.component.d.ts +1 -1
  424. package/ui/tooltip/src/tooltip-component.d.ts +8 -8
  425. package/ui/translate-input/src/aril-translate-input.component.d.ts +2 -2
  426. package/ui/tree/src/tree.component.d.ts +8 -8
  427. package/ui/treeSelect/src/treeSelect.component.d.ts +12 -12
  428. package/ui/treeTable/src/tree-table.component.d.ts +5 -5
  429. package/ui/value/src/value.component.d.ts +15 -15
  430. package/ui-business/assetPicker/index.d.ts +1 -0
  431. package/ui-business/assetPicker/src/asset-picker.component.d.ts +11 -11
  432. package/ui-business/detailed-overlay-panel/src/detailed-overlay-panel.component.d.ts +6 -3
  433. package/ui-business/enumPicker/src/enum-picker.component.d.ts +24 -24
  434. package/ui-business/image-viewer/src/aril-image-viewer.component.d.ts +8 -8
  435. package/ui-business/multiAssetPicker/index.d.ts +1 -0
  436. package/ui-business/multiAssetPicker/src/multi-asset-picker.component.d.ts +39 -0
  437. package/ui-business/multiple-ref-value/src/multiple-ref-value.component.d.ts +5 -2
  438. package/ui-business/ref-value/src/ref-value.component.d.ts +5 -5
  439. package/ui-business/rolePicker/src/role-picker.component.d.ts +6 -6
  440. package/ui-business/trace-drawer/src/trace-drawer.component.d.ts +8 -8
  441. package/ui-business/trace-id/src/trace-id.component.d.ts +6 -6
  442. package/ui-business/userPicker/src/user-picker.component.d.ts +3 -3
  443. package/util/block/src/block.d.ts +4 -4
  444. package/util/lib/src/types.d.ts +0 -16
  445. package/fesm2022/aril-app.component-CwZZhJcO.mjs.map +0 -1
  446. package/fesm2022/aril-boot-mfe-app.component-DwYgUUdL.mjs.map +0 -1
  447. package/fesm2022/aril-boot-mfe-aril-boot-mfe-hJkkFa_a.mjs.map +0 -1
@@ -1,373 +1,373 @@
1
- import { NgClass } from '@angular/common';
2
- import { HttpClient } from '@angular/common/http';
3
- import { Component, HostListener, OnDestroy, OnInit, Signal } from '@angular/core';
4
- import { toSignal } from '@angular/core/rxjs-interop';
5
- import { NavigationEnd, Router, RouterLink } from '@angular/router';
6
-
7
- import { TooltipModule } from 'primeng/tooltip';
8
-
9
- import { TranslocoService } from '@ngneat/transloco';
10
- import { KeycloakService } from 'keycloak-angular';
11
- import { Subscription, filter } from 'rxjs';
12
-
13
- import { bridge } from 'aril/boot/bridge';
14
- import { PluginMenuItem } from 'aril/boot/config/apps';
15
- import { TranslateJsonPipe } from 'aril/util/pipes';
16
-
17
- import { LayoutService } from '../../service/app.layout.service';
18
- import { AppMenuService } from '../../service/app.menu.service';
19
-
20
- @Component({
21
- standalone: true,
22
- selector: 'app-expandable-menu',
23
- imports: [RouterLink, NgClass, TooltipModule],
24
- templateUrl: 'expandable-menu.component.html',
25
- providers: [TranslateJsonPipe]
26
- })
27
- export class ExpandableMenuComponent implements OnInit, OnDestroy {
28
- activeLang: Signal<string>;
29
- overlayMenuOpenSubscription: Subscription | null = null;
30
- routerSubscription: Subscription | null = null;
31
- username: string;
32
-
33
- cachedMenuItems: PluginMenuItem[] = [];
34
-
35
- selectedMainMenuItem: PluginMenuItem | null = null;
36
-
37
- get sidebarExpanded(): boolean {
38
- return this.layoutService.state.secondarySidebarExpanded;
39
- }
40
-
41
- set sidebarExpanded(value: boolean) {
42
- this.layoutService.setSecondarySidebarExpanded(value);
43
- }
44
-
45
- tooltipText = {
46
- toggleButton: {
47
- expanded: {
48
- tr: 'Menüyü Gizle',
49
- en: 'Hide Menu'
50
- },
51
- collapsed: {
52
- tr: 'Menüyü Göster',
53
- en: 'Show Menu'
54
- }
55
- },
56
- lockButton: {
57
- locked: {
58
- tr: 'Otomatik Kapanmayı Aç',
59
- en: 'Enable Auto-Close'
60
- },
61
- unlocked: {
62
- tr: 'Menüyü Kilitle',
63
- en: 'Lock Menu'
64
- }
65
- }
66
- };
67
-
68
- private readonly MAX_LENGTH = {
69
- main: 8,
70
- secondary: 20,
71
- tertiary: 20
72
- };
73
-
74
- actionLoadingItems = new Set<string>();
75
- private actionSubscription: Subscription | null = null;
76
-
77
- constructor(
78
- private translateJsonPipe: TranslateJsonPipe,
79
- private menuService: AppMenuService,
80
- private router: Router,
81
- private keycloak: KeycloakService,
82
- private translocoService: TranslocoService,
83
- private layoutService: LayoutService,
84
- private http: HttpClient
85
- ) {
86
- this.activeLang = toSignal(this.translocoService.langChanges$, { initialValue: 'tr' });
87
- this.username = this.keycloak.getUsername().charAt(0).toUpperCase();
88
- }
89
-
90
- // Getter for layout service states
91
- get selectedMainItem(): number | null {
92
- return this.layoutService.state.selectedMainItem;
93
- }
94
-
95
- get secondarySidebarExpanded(): boolean {
96
- return this.layoutService.state.secondarySidebarExpanded;
97
- }
98
-
99
- // Check if text is truncated and needs tooltip
100
- isTextTruncated(
101
- label: any,
102
- lang: string | null,
103
- menuType: 'main' | 'secondary' | 'tertiary' | 'nested' = 'secondary'
104
- ): boolean {
105
- if (!label || !lang || !label[lang]) return false;
106
-
107
- const text = label[lang];
108
- const textLength = text.length;
109
- const maxLength = menuType === 'nested' ? this.MAX_LENGTH.tertiary : this.MAX_LENGTH[menuType];
110
- return textLength > maxLength;
111
- }
112
-
113
- // Recursively check if a menu item or its children match the current route
114
- isActiveRoute(menuItem: PluginMenuItem): boolean {
115
- if (!menuItem || !menuItem.routerLink) return false;
116
-
117
- // Get current URL path after the hash
118
- const currentUrl = this.router.url;
119
- const hashUrl = currentUrl.indexOf('#') > -1 ? currentUrl.split('#')[1] : currentUrl;
120
-
121
- // Check for exact match first
122
- if (hashUrl === menuItem.routerLink || hashUrl === '/' + menuItem.routerLink) {
123
- return true;
124
- }
125
-
126
- // Check if current URL starts with the routerLink (handles child routes)
127
- if (
128
- menuItem.routerLink !== '/' &&
129
- (hashUrl.startsWith(menuItem.routerLink + '/') || hashUrl.startsWith('/' + menuItem.routerLink + '/'))
130
- ) {
131
- return true;
132
- }
133
-
134
- // Check child items if they exist
135
- if (menuItem.items && menuItem.items.length > 0) {
136
- return menuItem.items.some((childItem) => this.isActiveRoute(childItem));
137
- }
138
-
139
- return false;
140
- }
141
-
142
- ngOnInit() {
143
- this.updateMenuItems();
144
- this.initializeMenu();
145
- this.updateActiveMenuFromCurrentRoute();
146
-
147
- // Subscribe to route changes to handle secondary sidebar closing
148
- this.routerSubscription = this.router.events
149
- .pipe(filter((event) => event instanceof NavigationEnd))
150
- .subscribe(() => {
151
- // Update active menu based on the new route
152
- this.updateActiveMenuFromCurrentRoute();
153
- });
154
-
155
- // Subscribe to overlay menu open notifications
156
- this.overlayMenuOpenSubscription = this.layoutService.overlayOpen$.subscribe(() => {
157
- if (this.layoutService.state.staticMenuMobileActive) {
158
- this.layoutService.setSecondarySidebarExpanded(true);
159
- }
160
- });
161
- }
162
-
163
- ngOnDestroy() {
164
- if (this.overlayMenuOpenSubscription) {
165
- this.overlayMenuOpenSubscription.unsubscribe();
166
- }
167
-
168
- if (this.routerSubscription) {
169
- this.routerSubscription.unsubscribe();
170
- }
171
-
172
- this.actionSubscription?.unsubscribe();
173
- }
174
-
175
- // Initialize the menu with proper active state
176
- initializeMenu() {
177
- this.layoutService.setSelectedMainItem(null);
178
- this.selectedMainMenuItem = null;
179
- this.layoutService.setSecondarySidebarExpanded(false);
180
- this.updateMenuItems();
181
- }
182
-
183
- updateMenuFromRootKey(index: number): void {
184
- this.updateMenuItems();
185
- const menuItems = this.getMenuItems();
186
-
187
- if (index >= 0 && index < menuItems.length) {
188
- const item = menuItems[index];
189
- if (!item.separator) {
190
- this.layoutService.setSelectedMainItem(index);
191
- this.selectedMainMenuItem = item;
192
- this.layoutService.setSecondarySidebarExpanded(true);
193
- }
194
- }
195
- }
196
-
197
- updateMenuItems(): void {
198
- this.cachedMenuItems = bridge.isHostMode() ? bridge.hostMenuItems() : this.menuService.menuItems();
199
- }
200
-
201
- getMenuItems(): PluginMenuItem[] {
202
- return this.cachedMenuItems;
203
- }
204
-
205
- selectMainItem(index: number, item: PluginMenuItem): void {
206
- // Handle action items at top level
207
- if (item.action && (!item.items || item.items.length === 0)) {
208
- this.onActionItemClick(item);
209
- return;
210
- }
211
-
212
- if (item.routerLink && (!item.items || item.items.length === 0)) {
213
- this.layoutService.setSecondarySidebarExpanded(false);
214
- this.layoutService.setSelectedMainItem(index);
215
- this.selectedMainMenuItem = item;
216
- this.router.navigate([item.routerLink]);
217
- return;
218
- }
219
-
220
- // Handle regular menu items with submenu
221
- if (this.selectedMainItem === index) {
222
- this.layoutService.toggleSecondarySidebar();
223
- } else {
224
- this.layoutService.setSelectedMainItem(index);
225
- this.selectedMainMenuItem = item;
226
-
227
- if (item.items && item.items.length > 0) {
228
- this.layoutService.setSecondarySidebarExpanded(true);
229
- } else {
230
- this.layoutService.setSecondarySidebarExpanded(false);
231
- }
232
- }
233
-
234
- // For mobile devices, ensure the menu stays open
235
- if (this.isMobile()) {
236
- this.layoutService.state.staticMenuMobileActive = true;
237
- }
238
- }
239
-
240
- toggleSecondarySidebar(): void {
241
- this.layoutService.toggleSecondarySidebar();
242
- }
243
-
244
- isMobile(): boolean {
245
- return this.layoutService.isMobile();
246
- }
247
-
248
- // Listen for resize events - now handled more efficiently by layout service
249
- @HostListener('window:resize')
250
- onResize() {
251
- if (!this.isMobile() && this.layoutService.state.staticMenuMobileActive) {
252
- this.layoutService.closeMobileMenu();
253
- }
254
- }
255
-
256
- updateActiveMenuFromCurrentRoute(): void {
257
- const menuItems = this.getMenuItems();
258
-
259
- for (let i = 0; i < menuItems.length; i++) {
260
- const menuItem = menuItems[i];
261
- if (this.isActiveRoute(menuItem)) {
262
- this.layoutService.setSelectedMainItem(i);
263
- this.selectedMainMenuItem = menuItem;
264
-
265
- if (menuItem.items && menuItem.items.length > 0) {
266
- if (!this.isMobile() && !this.secondarySidebarExpanded && !this.layoutService.state.staticMenuMobileActive) {
267
- this.layoutService.setSecondarySidebarExpanded(true);
268
- }
269
- } else {
270
- this.layoutService.setSecondarySidebarExpanded(false);
271
- }
272
- return;
273
- }
274
- }
275
- }
276
-
277
- isHaveSelectedChildItem(item: PluginMenuItem): boolean {
278
- if (!item || !item.items || item.items.length === 0) return false;
279
-
280
- for (const child of item.items) {
281
- if (this.isActiveRoute(child)) {
282
- return true;
283
- }
284
-
285
- if (child.items && child.items.length > 0) {
286
- if (this.isHaveSelectedChildItem(child)) {
287
- return true;
288
- }
289
- }
290
- }
291
-
292
- return false;
293
- }
294
-
295
- getLocalText(text: any): string {
296
- return this.translateJsonPipe.transform(text);
297
- }
298
-
299
- getActionItemKey(item: PluginMenuItem): string {
300
- return item.action?.url + '|' + item.action?.successRoute;
301
- }
302
-
303
- isActionLoading(item: PluginMenuItem): boolean {
304
- return this.actionLoadingItems.has(this.getActionItemKey(item));
305
- }
306
-
307
- onActionItemClick(item: PluginMenuItem, event?: Event): void {
308
- if (event) {
309
- event.preventDefault();
310
- event.stopPropagation();
311
- }
312
-
313
- if (!item.action || this.isActionLoading(item)) return;
314
-
315
- // Cancel any previous action request
316
- this.actionSubscription?.unsubscribe();
317
-
318
- const key = this.getActionItemKey(item);
319
- this.actionLoadingItems.add(key);
320
-
321
- const request$ =
322
- item.action.method === 'GET'
323
- ? this.http.get(item.action.url)
324
- : this.http.post(item.action.url, item.action.body ?? {});
325
-
326
- this.actionSubscription = request$.subscribe({
327
- next: (response: any) => {
328
- this.actionLoadingItems.delete(key);
329
- const route = this.buildSuccessRoute(item.action!, response);
330
- this.router.navigate([route]);
331
- },
332
- error: () => {
333
- this.actionLoadingItems.delete(key);
334
- }
335
- });
336
- }
337
-
338
- private buildSuccessRoute(action: PluginMenuItem['action'], response: any): string {
339
- if (!action?.successRouteResponseKey) return action?.successRoute ?? '/';
340
-
341
- const value = this.getValueByPath(response, action.successRouteResponseKey);
342
- if (value === undefined || value === null) return action.successRoute;
343
-
344
- return `${action.successRoute}/${value}`;
345
- }
346
-
347
- private getValueByPath(obj: any, path: string): any {
348
- if (!obj || !path) return undefined;
349
-
350
- return path.split('.').reduce((current, key) => {
351
- if (current === undefined || current === null) return undefined;
352
-
353
- // Handle array access like 'result[0]'
354
- const arrayMatch = key.match(/^(.+?)\[(\d+)\]$/);
355
- if (arrayMatch) {
356
- const arrayKey = arrayMatch[1];
357
- const index = parseInt(arrayMatch[2], 10);
358
- return current[arrayKey]?.[index];
359
- }
360
-
361
- return current[key];
362
- }, obj);
363
- }
364
-
365
- toggleSidebar() {
366
- // Eğer seçili bir ana menü öğesi varsa ve alt menüleri varsa toggle yapabiliriz
367
- if (this.selectedMainMenuItem && this.selectedMainMenuItem.items && this.selectedMainMenuItem.items.length > 0) {
368
- this.sidebarExpanded = !this.sidebarExpanded;
369
- } else if (this.sidebarExpanded) {
370
- this.sidebarExpanded = false;
371
- }
372
- }
373
- }
1
+ import { NgClass } from '@angular/common';
2
+ import { HttpClient } from '@angular/common/http';
3
+ import { Component, HostListener, OnDestroy, OnInit, Signal } from '@angular/core';
4
+ import { toSignal } from '@angular/core/rxjs-interop';
5
+ import { NavigationEnd, Router, RouterLink } from '@angular/router';
6
+
7
+ import { TooltipModule } from 'primeng/tooltip';
8
+
9
+ import { TranslocoService } from '@ngneat/transloco';
10
+ import { KeycloakService } from 'keycloak-angular';
11
+ import { Subscription, filter } from 'rxjs';
12
+
13
+ import { bridge } from 'aril/boot/bridge';
14
+ import { PluginMenuItem } from 'aril/boot/config/apps';
15
+ import { TranslateJsonPipe } from 'aril/util/pipes';
16
+
17
+ import { LayoutService } from '../../service/app.layout.service';
18
+ import { AppMenuService } from '../../service/app.menu.service';
19
+
20
+ @Component({
21
+ standalone: true,
22
+ selector: 'app-expandable-menu',
23
+ imports: [RouterLink, NgClass, TooltipModule],
24
+ templateUrl: 'expandable-menu.component.html',
25
+ providers: [TranslateJsonPipe]
26
+ })
27
+ export class ExpandableMenuComponent implements OnInit, OnDestroy {
28
+ activeLang: Signal<string>;
29
+ overlayMenuOpenSubscription: Subscription | null = null;
30
+ routerSubscription: Subscription | null = null;
31
+ username: string;
32
+
33
+ cachedMenuItems: PluginMenuItem[] = [];
34
+
35
+ selectedMainMenuItem: PluginMenuItem | null = null;
36
+
37
+ get sidebarExpanded(): boolean {
38
+ return this.layoutService.state.secondarySidebarExpanded;
39
+ }
40
+
41
+ set sidebarExpanded(value: boolean) {
42
+ this.layoutService.setSecondarySidebarExpanded(value);
43
+ }
44
+
45
+ tooltipText = {
46
+ toggleButton: {
47
+ expanded: {
48
+ tr: 'Menüyü Gizle',
49
+ en: 'Hide Menu'
50
+ },
51
+ collapsed: {
52
+ tr: 'Menüyü Göster',
53
+ en: 'Show Menu'
54
+ }
55
+ },
56
+ lockButton: {
57
+ locked: {
58
+ tr: 'Otomatik Kapanmayı Aç',
59
+ en: 'Enable Auto-Close'
60
+ },
61
+ unlocked: {
62
+ tr: 'Menüyü Kilitle',
63
+ en: 'Lock Menu'
64
+ }
65
+ }
66
+ };
67
+
68
+ private readonly MAX_LENGTH = {
69
+ main: 8,
70
+ secondary: 20,
71
+ tertiary: 20
72
+ };
73
+
74
+ actionLoadingItems = new Set<string>();
75
+ private actionSubscription: Subscription | null = null;
76
+
77
+ constructor(
78
+ private translateJsonPipe: TranslateJsonPipe,
79
+ private menuService: AppMenuService,
80
+ private router: Router,
81
+ private keycloak: KeycloakService,
82
+ private translocoService: TranslocoService,
83
+ private layoutService: LayoutService,
84
+ private http: HttpClient
85
+ ) {
86
+ this.activeLang = toSignal(this.translocoService.langChanges$, { initialValue: 'tr' });
87
+ this.username = this.keycloak.getUsername().charAt(0).toUpperCase();
88
+ }
89
+
90
+ // Getter for layout service states
91
+ get selectedMainItem(): number | null {
92
+ return this.layoutService.state.selectedMainItem;
93
+ }
94
+
95
+ get secondarySidebarExpanded(): boolean {
96
+ return this.layoutService.state.secondarySidebarExpanded;
97
+ }
98
+
99
+ // Check if text is truncated and needs tooltip
100
+ isTextTruncated(
101
+ label: any,
102
+ lang: string | null,
103
+ menuType: 'main' | 'secondary' | 'tertiary' | 'nested' = 'secondary'
104
+ ): boolean {
105
+ if (!label || !lang || !label[lang]) return false;
106
+
107
+ const text = label[lang];
108
+ const textLength = text.length;
109
+ const maxLength = menuType === 'nested' ? this.MAX_LENGTH.tertiary : this.MAX_LENGTH[menuType];
110
+ return textLength > maxLength;
111
+ }
112
+
113
+ // Recursively check if a menu item or its children match the current route
114
+ isActiveRoute(menuItem: PluginMenuItem): boolean {
115
+ if (!menuItem || !menuItem.routerLink) return false;
116
+
117
+ // Get current URL path after the hash
118
+ const currentUrl = this.router.url;
119
+ const hashUrl = currentUrl.indexOf('#') > -1 ? currentUrl.split('#')[1] : currentUrl;
120
+
121
+ // Check for exact match first
122
+ if (hashUrl === menuItem.routerLink || hashUrl === '/' + menuItem.routerLink) {
123
+ return true;
124
+ }
125
+
126
+ // Check if current URL starts with the routerLink (handles child routes)
127
+ if (
128
+ menuItem.routerLink !== '/' &&
129
+ (hashUrl.startsWith(menuItem.routerLink + '/') || hashUrl.startsWith('/' + menuItem.routerLink + '/'))
130
+ ) {
131
+ return true;
132
+ }
133
+
134
+ // Check child items if they exist
135
+ if (menuItem.items && menuItem.items.length > 0) {
136
+ return menuItem.items.some((childItem) => this.isActiveRoute(childItem));
137
+ }
138
+
139
+ return false;
140
+ }
141
+
142
+ ngOnInit() {
143
+ this.updateMenuItems();
144
+ this.initializeMenu();
145
+ this.updateActiveMenuFromCurrentRoute();
146
+
147
+ // Subscribe to route changes to handle secondary sidebar closing
148
+ this.routerSubscription = this.router.events
149
+ .pipe(filter((event) => event instanceof NavigationEnd))
150
+ .subscribe(() => {
151
+ // Update active menu based on the new route
152
+ this.updateActiveMenuFromCurrentRoute();
153
+ });
154
+
155
+ // Subscribe to overlay menu open notifications
156
+ this.overlayMenuOpenSubscription = this.layoutService.overlayOpen$.subscribe(() => {
157
+ if (this.layoutService.state.staticMenuMobileActive) {
158
+ this.layoutService.setSecondarySidebarExpanded(true);
159
+ }
160
+ });
161
+ }
162
+
163
+ ngOnDestroy() {
164
+ if (this.overlayMenuOpenSubscription) {
165
+ this.overlayMenuOpenSubscription.unsubscribe();
166
+ }
167
+
168
+ if (this.routerSubscription) {
169
+ this.routerSubscription.unsubscribe();
170
+ }
171
+
172
+ this.actionSubscription?.unsubscribe();
173
+ }
174
+
175
+ // Initialize the menu with proper active state
176
+ initializeMenu() {
177
+ this.layoutService.setSelectedMainItem(null);
178
+ this.selectedMainMenuItem = null;
179
+ this.layoutService.setSecondarySidebarExpanded(false);
180
+ this.updateMenuItems();
181
+ }
182
+
183
+ updateMenuFromRootKey(index: number): void {
184
+ this.updateMenuItems();
185
+ const menuItems = this.getMenuItems();
186
+
187
+ if (index >= 0 && index < menuItems.length) {
188
+ const item = menuItems[index];
189
+ if (!item.separator) {
190
+ this.layoutService.setSelectedMainItem(index);
191
+ this.selectedMainMenuItem = item;
192
+ this.layoutService.setSecondarySidebarExpanded(true);
193
+ }
194
+ }
195
+ }
196
+
197
+ updateMenuItems(): void {
198
+ this.cachedMenuItems = bridge.isHostMode() ? bridge.hostMenuItems() : this.menuService.menuItems();
199
+ }
200
+
201
+ getMenuItems(): PluginMenuItem[] {
202
+ return this.cachedMenuItems;
203
+ }
204
+
205
+ selectMainItem(index: number, item: PluginMenuItem): void {
206
+ // Handle action items at top level
207
+ if (item.action && (!item.items || item.items.length === 0)) {
208
+ this.onActionItemClick(item);
209
+ return;
210
+ }
211
+
212
+ if (item.routerLink && (!item.items || item.items.length === 0)) {
213
+ this.layoutService.setSecondarySidebarExpanded(false);
214
+ this.layoutService.setSelectedMainItem(index);
215
+ this.selectedMainMenuItem = item;
216
+ this.router.navigate([item.routerLink]);
217
+ return;
218
+ }
219
+
220
+ // Handle regular menu items with submenu
221
+ if (this.selectedMainItem === index) {
222
+ this.layoutService.toggleSecondarySidebar();
223
+ } else {
224
+ this.layoutService.setSelectedMainItem(index);
225
+ this.selectedMainMenuItem = item;
226
+
227
+ if (item.items && item.items.length > 0) {
228
+ this.layoutService.setSecondarySidebarExpanded(true);
229
+ } else {
230
+ this.layoutService.setSecondarySidebarExpanded(false);
231
+ }
232
+ }
233
+
234
+ // For mobile devices, ensure the menu stays open
235
+ if (this.isMobile()) {
236
+ this.layoutService.state.staticMenuMobileActive = true;
237
+ }
238
+ }
239
+
240
+ toggleSecondarySidebar(): void {
241
+ this.layoutService.toggleSecondarySidebar();
242
+ }
243
+
244
+ isMobile(): boolean {
245
+ return this.layoutService.isMobile();
246
+ }
247
+
248
+ // Listen for resize events - now handled more efficiently by layout service
249
+ @HostListener('window:resize')
250
+ onResize() {
251
+ if (!this.isMobile() && this.layoutService.state.staticMenuMobileActive) {
252
+ this.layoutService.closeMobileMenu();
253
+ }
254
+ }
255
+
256
+ updateActiveMenuFromCurrentRoute(): void {
257
+ const menuItems = this.getMenuItems();
258
+
259
+ for (let i = 0; i < menuItems.length; i++) {
260
+ const menuItem = menuItems[i];
261
+ if (this.isActiveRoute(menuItem)) {
262
+ this.layoutService.setSelectedMainItem(i);
263
+ this.selectedMainMenuItem = menuItem;
264
+
265
+ if (menuItem.items && menuItem.items.length > 0) {
266
+ if (!this.isMobile() && !this.secondarySidebarExpanded && !this.layoutService.state.staticMenuMobileActive) {
267
+ this.layoutService.setSecondarySidebarExpanded(true);
268
+ }
269
+ } else {
270
+ this.layoutService.setSecondarySidebarExpanded(false);
271
+ }
272
+ return;
273
+ }
274
+ }
275
+ }
276
+
277
+ isHaveSelectedChildItem(item: PluginMenuItem): boolean {
278
+ if (!item || !item.items || item.items.length === 0) return false;
279
+
280
+ for (const child of item.items) {
281
+ if (this.isActiveRoute(child)) {
282
+ return true;
283
+ }
284
+
285
+ if (child.items && child.items.length > 0) {
286
+ if (this.isHaveSelectedChildItem(child)) {
287
+ return true;
288
+ }
289
+ }
290
+ }
291
+
292
+ return false;
293
+ }
294
+
295
+ getLocalText(text: any): string {
296
+ return this.translateJsonPipe.transform(text);
297
+ }
298
+
299
+ getActionItemKey(item: PluginMenuItem): string {
300
+ return item.action?.url + '|' + item.action?.successRoute;
301
+ }
302
+
303
+ isActionLoading(item: PluginMenuItem): boolean {
304
+ return this.actionLoadingItems.has(this.getActionItemKey(item));
305
+ }
306
+
307
+ onActionItemClick(item: PluginMenuItem, event?: Event): void {
308
+ if (event) {
309
+ event.preventDefault();
310
+ event.stopPropagation();
311
+ }
312
+
313
+ if (!item.action || this.isActionLoading(item)) return;
314
+
315
+ // Cancel any previous action request
316
+ this.actionSubscription?.unsubscribe();
317
+
318
+ const key = this.getActionItemKey(item);
319
+ this.actionLoadingItems.add(key);
320
+
321
+ const request$ =
322
+ item.action.method === 'GET'
323
+ ? this.http.get(item.action.url)
324
+ : this.http.post(item.action.url, item.action.body ?? {});
325
+
326
+ this.actionSubscription = request$.subscribe({
327
+ next: (response: any) => {
328
+ this.actionLoadingItems.delete(key);
329
+ const route = this.buildSuccessRoute(item.action!, response);
330
+ this.router.navigate([route]);
331
+ },
332
+ error: () => {
333
+ this.actionLoadingItems.delete(key);
334
+ }
335
+ });
336
+ }
337
+
338
+ private buildSuccessRoute(action: PluginMenuItem['action'], response: any): string {
339
+ if (!action?.successRouteResponseKey) return action?.successRoute ?? '/';
340
+
341
+ const value = this.getValueByPath(response, action.successRouteResponseKey);
342
+ if (value === undefined || value === null) return action.successRoute;
343
+
344
+ return `${action.successRoute}/${value}`;
345
+ }
346
+
347
+ private getValueByPath(obj: any, path: string): any {
348
+ if (!obj || !path) return undefined;
349
+
350
+ return path.split('.').reduce((current, key) => {
351
+ if (current === undefined || current === null) return undefined;
352
+
353
+ // Handle array access like 'result[0]'
354
+ const arrayMatch = key.match(/^(.+?)\[(\d+)\]$/);
355
+ if (arrayMatch) {
356
+ const arrayKey = arrayMatch[1];
357
+ const index = parseInt(arrayMatch[2], 10);
358
+ return current[arrayKey]?.[index];
359
+ }
360
+
361
+ return current[key];
362
+ }, obj);
363
+ }
364
+
365
+ toggleSidebar() {
366
+ // Eğer seçili bir ana menü öğesi varsa ve alt menüleri varsa toggle yapabiliriz
367
+ if (this.selectedMainMenuItem && this.selectedMainMenuItem.items && this.selectedMainMenuItem.items.length > 0) {
368
+ this.sidebarExpanded = !this.sidebarExpanded;
369
+ } else if (this.sidebarExpanded) {
370
+ this.sidebarExpanded = false;
371
+ }
372
+ }
373
+ }