aril 1.2.24 → 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 (444) 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 +1 -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/index.mjs +1 -1
  144. package/esm2022/ui-business/multiAssetPicker/src/multi-asset-picker.component.mjs +5 -5
  145. package/esm2022/ui-business/multiple-ref-value/src/multiple-ref-value.component.mjs +4 -4
  146. package/esm2022/ui-business/notification-templates-dialog/src/notification-templates-dialog.component.mjs +4 -4
  147. package/esm2022/ui-business/operation-types-dialog/src/operation-types-dialog.component.mjs +4 -4
  148. package/esm2022/ui-business/pdf-preview-modal/index.mjs +1 -1
  149. package/esm2022/ui-business/pdf-preview-modal/src/open-pdf-preview.mjs +1 -1
  150. package/esm2022/ui-business/pdf-preview-modal/src/pdf-preview-modal.component.mjs +29 -29
  151. package/esm2022/ui-business/ref-value/src/ref-value.component.mjs +5 -5
  152. package/esm2022/ui-business/rolePicker/src/role-picker.component.mjs +4 -4
  153. package/esm2022/ui-business/trace-drawer/index.mjs +1 -1
  154. package/esm2022/ui-business/trace-drawer/src/app-log.service.mjs +4 -4
  155. package/esm2022/ui-business/trace-drawer/src/interfaces.mjs +1 -1
  156. package/esm2022/ui-business/trace-drawer/src/trace-drawer.component.mjs +5 -5
  157. package/esm2022/ui-business/trace-drawer/src/trace-log.service.mjs +4 -4
  158. package/esm2022/ui-business/trace-id/index.mjs +1 -1
  159. package/esm2022/ui-business/trace-id/src/trace-id.component.mjs +5 -5
  160. package/esm2022/ui-business/userPicker/src/user-picker.component.mjs +4 -4
  161. package/esm2022/util/activity/index.mjs +1 -1
  162. package/esm2022/util/activity/src/activity.constants.mjs +1 -1
  163. package/esm2022/util/activity/src/activity.service.mjs +4 -4
  164. package/esm2022/util/activity/src/activity.types.mjs +1 -1
  165. package/esm2022/util/block/src/block.mjs +7 -7
  166. package/esm2022/util/directives/src/detail-page-customization/detail-page-customization.directive.mjs +4 -4
  167. package/esm2022/util/directives/src/dialog-component/plugin-dialog.component.mjs +4 -4
  168. package/esm2022/util/directives/src/dialog-service/plugin-dialog.service.mjs +4 -4
  169. package/esm2022/util/lib/src/module-router.mjs +4 -4
  170. package/esm2022/util/pipes/src/distance-to-now.pipe.mjs +4 -4
  171. package/esm2022/util/pipes/src/get-column-by-field.pipe.mjs +4 -4
  172. package/esm2022/util/pipes/src/parse.pipe.mjs +4 -4
  173. package/esm2022/util/pipes/src/round-number.pipe.mjs +4 -4
  174. package/esm2022/util/pipes/src/safe.pipe.mjs +4 -4
  175. package/esm2022/util/pipes/src/translate-json/translate-json.pipe.mjs +4 -4
  176. package/esm2022/util/pub-sub/src/pub-sub.service.mjs +4 -4
  177. package/esm2022/util/sync-active-tab-route/src/sync-active-tab-route.directive.mjs +4 -4
  178. package/esm2022/util/unwrap/src/unwrap-tag.directive.mjs +4 -4
  179. package/fesm2022/{aril-app.component-CwZZhJcO.mjs → aril-app.component-Pj4R9eG9.mjs} +15 -15
  180. package/fesm2022/aril-app.component-Pj4R9eG9.mjs.map +1 -0
  181. package/fesm2022/aril-boot-base.mjs +1 -1
  182. package/fesm2022/aril-boot-base.mjs.map +1 -1
  183. package/fesm2022/aril-boot-bridge.mjs.map +1 -1
  184. package/fesm2022/aril-boot-config-api.mjs +1 -1
  185. package/fesm2022/aril-boot-config-api.mjs.map +1 -1
  186. package/fesm2022/aril-boot-config-apps.mjs +10 -10
  187. package/fesm2022/aril-boot-config-apps.mjs.map +1 -1
  188. package/fesm2022/aril-boot-config-plugins.mjs +1 -1
  189. package/fesm2022/aril-boot-config-plugins.mjs.map +1 -1
  190. package/fesm2022/aril-boot-config-translate.mjs.map +1 -1
  191. package/fesm2022/aril-boot-host.mjs +4 -4
  192. package/fesm2022/aril-boot-host.mjs.map +1 -1
  193. package/fesm2022/{aril-boot-mfe-app.component-DwYgUUdL.mjs → aril-boot-mfe-app.component-GbZAGlTf.mjs} +16 -16
  194. package/fesm2022/aril-boot-mfe-app.component-GbZAGlTf.mjs.map +1 -0
  195. package/fesm2022/{aril-boot-mfe-aril-boot-mfe-hJkkFa_a.mjs → aril-boot-mfe-aril-boot-mfe-I5xT2fQx.mjs} +4 -4
  196. package/fesm2022/aril-boot-mfe-aril-boot-mfe-I5xT2fQx.mjs.map +1 -0
  197. package/fesm2022/aril-boot-mfe.mjs +1 -1
  198. package/fesm2022/aril-boot-pages.mjs +100 -100
  199. package/fesm2022/aril-boot-pages.mjs.map +1 -1
  200. package/fesm2022/aril-http.mjs +3 -3
  201. package/fesm2022/aril-http.mjs.map +1 -1
  202. package/fesm2022/aril-i18n.mjs +7 -7
  203. package/fesm2022/aril-i18n.mjs.map +1 -1
  204. package/fesm2022/aril-keycloak.mjs.map +1 -1
  205. package/fesm2022/aril-provider.mjs +1 -1
  206. package/fesm2022/aril-provider.mjs.map +1 -1
  207. package/fesm2022/aril-theme-layout.mjs +79 -75
  208. package/fesm2022/aril-theme-layout.mjs.map +1 -1
  209. package/fesm2022/aril-ui-autoComplete.mjs +6 -6
  210. package/fesm2022/aril-ui-autoComplete.mjs.map +1 -1
  211. package/fesm2022/aril-ui-badge.mjs +4 -4
  212. package/fesm2022/aril-ui-badge.mjs.map +1 -1
  213. package/fesm2022/aril-ui-business-assetPicker.mjs +6 -6
  214. package/fesm2022/aril-ui-business-assetPicker.mjs.map +1 -1
  215. package/fesm2022/aril-ui-business-detailed-overlay-panel.mjs +6 -6
  216. package/fesm2022/aril-ui-business-detailed-overlay-panel.mjs.map +1 -1
  217. package/fesm2022/aril-ui-business-enumPicker.mjs +6 -6
  218. package/fesm2022/aril-ui-business-enumPicker.mjs.map +1 -1
  219. package/fesm2022/aril-ui-business-image-viewer.mjs +3 -3
  220. package/fesm2022/aril-ui-business-image-viewer.mjs.map +1 -1
  221. package/fesm2022/aril-ui-business-multiAssetPicker.mjs +5 -5
  222. package/fesm2022/aril-ui-business-multiAssetPicker.mjs.map +1 -1
  223. package/fesm2022/aril-ui-business-multiple-ref-value.mjs +4 -4
  224. package/fesm2022/aril-ui-business-multiple-ref-value.mjs.map +1 -1
  225. package/fesm2022/aril-ui-business-notification-templates-dialog.mjs +3 -3
  226. package/fesm2022/aril-ui-business-notification-templates-dialog.mjs.map +1 -1
  227. package/fesm2022/aril-ui-business-operation-types-dialog.mjs +3 -3
  228. package/fesm2022/aril-ui-business-operation-types-dialog.mjs.map +1 -1
  229. package/fesm2022/aril-ui-business-pdf-preview-modal.mjs +28 -28
  230. package/fesm2022/aril-ui-business-pdf-preview-modal.mjs.map +1 -1
  231. package/fesm2022/aril-ui-business-ref-value.mjs +5 -5
  232. package/fesm2022/aril-ui-business-ref-value.mjs.map +1 -1
  233. package/fesm2022/aril-ui-business-rolePicker.mjs +4 -4
  234. package/fesm2022/aril-ui-business-rolePicker.mjs.map +1 -1
  235. package/fesm2022/aril-ui-business-trace-drawer.mjs +11 -11
  236. package/fesm2022/aril-ui-business-trace-drawer.mjs.map +1 -1
  237. package/fesm2022/aril-ui-business-trace-id.mjs +5 -5
  238. package/fesm2022/aril-ui-business-trace-id.mjs.map +1 -1
  239. package/fesm2022/aril-ui-business-userPicker.mjs +3 -3
  240. package/fesm2022/aril-ui-business-userPicker.mjs.map +1 -1
  241. package/fesm2022/aril-ui-button.mjs +7 -7
  242. package/fesm2022/aril-ui-button.mjs.map +1 -1
  243. package/fesm2022/aril-ui-calendar.mjs +3 -3
  244. package/fesm2022/aril-ui-calendar.mjs.map +1 -1
  245. package/fesm2022/aril-ui-charts.mjs +37 -37
  246. package/fesm2022/aril-ui-charts.mjs.map +1 -1
  247. package/fesm2022/aril-ui-checkbox.mjs +6 -6
  248. package/fesm2022/aril-ui-checkbox.mjs.map +1 -1
  249. package/fesm2022/aril-ui-chip.mjs +4 -4
  250. package/fesm2022/aril-ui-chip.mjs.map +1 -1
  251. package/fesm2022/aril-ui-collapse-reorder-list.mjs +4 -4
  252. package/fesm2022/aril-ui-collapse-reorder-list.mjs.map +1 -1
  253. package/fesm2022/aril-ui-dxEditor.mjs +4 -4
  254. package/fesm2022/aril-ui-dxEditor.mjs.map +1 -1
  255. package/fesm2022/aril-ui-dxField.mjs +4 -4
  256. package/fesm2022/aril-ui-dxField.mjs.map +1 -1
  257. package/fesm2022/aril-ui-editor.mjs +4 -4
  258. package/fesm2022/aril-ui-editor.mjs.map +1 -1
  259. package/fesm2022/aril-ui-field.mjs +4 -4
  260. package/fesm2022/aril-ui-field.mjs.map +1 -1
  261. package/fesm2022/aril-ui-fileUpload.mjs +4 -4
  262. package/fesm2022/aril-ui-fileUpload.mjs.map +1 -1
  263. package/fesm2022/aril-ui-form.mjs +12 -12
  264. package/fesm2022/aril-ui-form.mjs.map +1 -1
  265. package/fesm2022/aril-ui-img-viewer.mjs +3 -3
  266. package/fesm2022/aril-ui-img-viewer.mjs.map +1 -1
  267. package/fesm2022/aril-ui-json-diff-comparison.mjs +4 -4
  268. package/fesm2022/aril-ui-json-diff-comparison.mjs.map +1 -1
  269. package/fesm2022/aril-ui-lib.mjs +28 -28
  270. package/fesm2022/aril-ui-lib.mjs.map +1 -1
  271. package/fesm2022/aril-ui-loader.mjs +3 -3
  272. package/fesm2022/aril-ui-loader.mjs.map +1 -1
  273. package/fesm2022/aril-ui-mask.mjs +3 -3
  274. package/fesm2022/aril-ui-mask.mjs.map +1 -1
  275. package/fesm2022/aril-ui-multiSelect.mjs +3 -3
  276. package/fesm2022/aril-ui-multiSelect.mjs.map +1 -1
  277. package/fesm2022/aril-ui-number.mjs +3 -3
  278. package/fesm2022/aril-ui-number.mjs.map +1 -1
  279. package/fesm2022/aril-ui-operation-types-dialog.mjs +12 -12
  280. package/fesm2022/aril-ui-operation-types-dialog.mjs.map +1 -1
  281. package/fesm2022/aril-ui-overlayPanel.mjs +4 -4
  282. package/fesm2022/aril-ui-overlayPanel.mjs.map +1 -1
  283. package/fesm2022/aril-ui-panel.mjs +4 -4
  284. package/fesm2022/aril-ui-panel.mjs.map +1 -1
  285. package/fesm2022/aril-ui-password.mjs +3 -3
  286. package/fesm2022/aril-ui-password.mjs.map +1 -1
  287. package/fesm2022/aril-ui-pdf-viewer.mjs +3 -3
  288. package/fesm2022/aril-ui-pdf-viewer.mjs.map +1 -1
  289. package/fesm2022/aril-ui-progressbar.mjs +3 -3
  290. package/fesm2022/aril-ui-progressbar.mjs.map +1 -1
  291. package/fesm2022/aril-ui-radioButton.mjs +3 -3
  292. package/fesm2022/aril-ui-radioButton.mjs.map +1 -1
  293. package/fesm2022/aril-ui-relativeDateSelector.mjs +4 -4
  294. package/fesm2022/aril-ui-relativeDateSelector.mjs.map +1 -1
  295. package/fesm2022/aril-ui-selectBox.mjs +5 -5
  296. package/fesm2022/aril-ui-selectBox.mjs.map +1 -1
  297. package/fesm2022/aril-ui-switch.mjs +3 -3
  298. package/fesm2022/aril-ui-switch.mjs.map +1 -1
  299. package/fesm2022/aril-ui-table-expand.mjs +14 -14
  300. package/fesm2022/aril-ui-table-expand.mjs.map +1 -1
  301. package/fesm2022/aril-ui-table.mjs +141 -141
  302. package/fesm2022/aril-ui-table.mjs.map +1 -1
  303. package/fesm2022/aril-ui-tag.mjs +3 -3
  304. package/fesm2022/aril-ui-tag.mjs.map +1 -1
  305. package/fesm2022/aril-ui-tagBox.mjs +5 -5
  306. package/fesm2022/aril-ui-tagBox.mjs.map +1 -1
  307. package/fesm2022/aril-ui-text.mjs +3 -3
  308. package/fesm2022/aril-ui-text.mjs.map +1 -1
  309. package/fesm2022/aril-ui-textArea.mjs +3 -3
  310. package/fesm2022/aril-ui-textArea.mjs.map +1 -1
  311. package/fesm2022/aril-ui-toggle-button.mjs +4 -4
  312. package/fesm2022/aril-ui-toggle-button.mjs.map +1 -1
  313. package/fesm2022/aril-ui-tooltip.mjs +3 -3
  314. package/fesm2022/aril-ui-tooltip.mjs.map +1 -1
  315. package/fesm2022/aril-ui-translate-input.mjs +6 -6
  316. package/fesm2022/aril-ui-translate-input.mjs.map +1 -1
  317. package/fesm2022/aril-ui-tree.mjs +4 -4
  318. package/fesm2022/aril-ui-tree.mjs.map +1 -1
  319. package/fesm2022/aril-ui-treeSelect.mjs +4 -4
  320. package/fesm2022/aril-ui-treeSelect.mjs.map +1 -1
  321. package/fesm2022/aril-ui-treeTable.mjs +4 -4
  322. package/fesm2022/aril-ui-treeTable.mjs.map +1 -1
  323. package/fesm2022/aril-ui-value.mjs +5 -5
  324. package/fesm2022/aril-ui-value.mjs.map +1 -1
  325. package/fesm2022/aril-util-activity.mjs +3 -3
  326. package/fesm2022/aril-util-activity.mjs.map +1 -1
  327. package/fesm2022/aril-util-block.mjs +6 -6
  328. package/fesm2022/aril-util-block.mjs.map +1 -1
  329. package/fesm2022/aril-util-directives.mjs +10 -10
  330. package/fesm2022/aril-util-directives.mjs.map +1 -1
  331. package/fesm2022/aril-util-lib.mjs +3 -3
  332. package/fesm2022/aril-util-lib.mjs.map +1 -1
  333. package/fesm2022/aril-util-pipes.mjs +18 -18
  334. package/fesm2022/aril-util-pipes.mjs.map +1 -1
  335. package/fesm2022/aril-util-primitive-extensions.mjs.map +1 -1
  336. package/fesm2022/aril-util-pub-sub.mjs +3 -3
  337. package/fesm2022/aril-util-pub-sub.mjs.map +1 -1
  338. package/fesm2022/aril-util-sync-active-tab-route.mjs +4 -4
  339. package/fesm2022/aril-util-sync-active-tab-route.mjs.map +1 -1
  340. package/fesm2022/aril-util-unwrap.mjs +3 -3
  341. package/fesm2022/aril-util-unwrap.mjs.map +1 -1
  342. package/fesm2022/aril.mjs +6 -6
  343. package/fesm2022/aril.mjs.map +1 -1
  344. package/package.json +72 -72
  345. package/theme/layout/app/breadcrumb/app.breadcrumb.component.ts +127 -127
  346. package/theme/layout/app/expandableMenu/expandable-menu.component.html +137 -137
  347. package/theme/layout/app/expandableMenu/expandable-menu.component.ts +373 -373
  348. package/theme/layout/app/favorite-pages/favorite-pages-sidebar.component.d.ts +0 -16
  349. package/theme/layout/app/general-search/general-search.component.ts +93 -93
  350. package/theme/layout/app/history/history-sidebar.component.d.ts +0 -16
  351. package/theme/layout/app/history/history.service.ts +158 -158
  352. package/theme/layout/app/layout/app.layout.component.ts +168 -168
  353. package/theme/layout/app/notifications/notifications-sidebar.component.d.ts +0 -16
  354. package/theme/layout/app/site-map/site-map-sidebar.component.d.ts +0 -16
  355. package/theme/layout/app/site-map/site-map-sidebar.component.ts +195 -195
  356. package/theme/layout/app/static-sidebar/static-sidebar.component.html +162 -162
  357. package/theme/layout/app/static-sidebar/static-sidebar.component.scss +420 -420
  358. package/theme/layout/app/static-sidebar/static-sidebar.component.ts +343 -343
  359. package/theme/layout/app/topbar/app.topbar.component.d.ts +2 -0
  360. package/theme/layout/app/topbar/app.topbar.component.html +1 -1
  361. package/theme/layout/app/topbar/app.topbar.component.scss +1 -0
  362. package/theme/layout/app/topbar/app.topbar.component.ts +6 -0
  363. package/theme/layout/index.ts +9 -9
  364. package/theme/layout/service/interfaces/enum.ts +19 -19
  365. package/theme/styles/layout/_expanded_sidebar.scss +511 -511
  366. package/theme/styles/layout/_fonts.scss +81 -81
  367. package/theme/styles/theme/base/components/input/_inputtext.scss +104 -104
  368. package/theme/styles/theme/base/components/overlay/_sidebar.scss +27 -27
  369. package/theme/styles/theme/base/components/panel/_stepper.scss +205 -205
  370. package/theme/styles/theme/dark/_variables.scss +933 -933
  371. package/theme/styles/theme/light/_variables.scss +940 -940
  372. package/ui/autoComplete/src/auto-complete.component.d.ts +8 -8
  373. package/ui/badge/src/badge.component.d.ts +9 -9
  374. package/ui/button/src/button.component.d.ts +12 -12
  375. package/ui/button/src/split-button.component.d.ts +1 -1
  376. package/ui/calendar/src/calendar.component.d.ts +22 -22
  377. package/ui/charts/src/amCharts/column/column-chart.component.d.ts +4 -4
  378. package/ui/charts/src/amCharts/line/line-chart.component.d.ts +5 -5
  379. package/ui/charts/src/amCharts/pie/pie-chart.component.d.ts +4 -4
  380. package/ui/charts/src/highCharts/area/area-chart.component.d.ts +3 -3
  381. package/ui/charts/src/highCharts/bar/bar-chart.component.d.ts +7 -7
  382. package/ui/charts/src/highCharts/column/column-chart.component.d.ts +9 -9
  383. package/ui/charts/src/highCharts/gauge/solid-gauge.component.d.ts +3 -3
  384. package/ui/charts/src/highCharts/heatmap/heatMap-chart.component.d.ts +4 -4
  385. package/ui/charts/src/highCharts/line/line-chart-datetime-axis.component.d.ts +5 -5
  386. package/ui/charts/src/highCharts/line/line-chart-series.component.d.ts +4 -4
  387. package/ui/charts/src/highCharts/line/line-chart.component.d.ts +4 -4
  388. package/ui/charts/src/highCharts/pie/pie-chart.component.d.ts +7 -7
  389. package/ui/checkbox/src/check-box.component.d.ts +3 -3
  390. package/ui/checkbox/src/tri-state-checkbox.component.d.ts +2 -2
  391. package/ui/chip/src/chip.component.d.ts +7 -7
  392. package/ui/collapse-reorder-list/src/collapse-reorder-list.component.d.ts +4 -4
  393. package/ui/dxEditor/src/dx-editor.component.d.ts +5 -5
  394. package/ui/dxField/src/dx-field.component.d.ts +5 -5
  395. package/ui/editor/src/aril-editor.component.d.ts +3 -3
  396. package/ui/field/src/field.component.d.ts +9 -9
  397. package/ui/fileUpload/src/file-upload.component.d.ts +14 -14
  398. package/ui/form/src/form-submit-button.component.d.ts +1 -1
  399. package/ui/form/src/form.component.d.ts +1 -1
  400. package/ui/img-viewer/src/img-viewer.component.d.ts +1 -1
  401. package/ui/lib/src/form/form-error-message.directive.d.ts +1 -1
  402. package/ui/mask/src/mask.component.d.ts +6 -6
  403. package/ui/multiSelect/src/multi-select.component.d.ts +13 -13
  404. package/ui/number/src/number.component.d.ts +15 -15
  405. package/ui/overlayPanel/src/overlay-panel.component.d.ts +1 -1
  406. package/ui/panel/src/panel.component.d.ts +6 -6
  407. package/ui/password/src/password.component.d.ts +4 -4
  408. package/ui/pdf-viewer/src/pdf-viewer.component.d.ts +12 -12
  409. package/ui/progressbar/src/progressbar.component.d.ts +3 -3
  410. package/ui/radioButton/src/radio-button.component.d.ts +3 -3
  411. package/ui/selectBox/src/select-box.component.d.ts +10 -10
  412. package/ui/switch/src/switch.component.d.ts +1 -1
  413. package/ui/table/src/export-overlay-panel.component.d.ts +2 -2
  414. package/ui/table/src/table-column.component.d.ts +11 -11
  415. package/ui/table/src/table.component.d.ts +35 -35
  416. package/ui/table-expand/src/table-column.component.d.ts +6 -6
  417. package/ui/table-expand/src/table.component.d.ts +20 -20
  418. package/ui/tag/src/tag.component.d.ts +6 -4
  419. package/ui/tagBox/src/tag-box.component.d.ts +7 -7
  420. package/ui/text/src/text.component.d.ts +5 -5
  421. package/ui/textArea/src/text-area.component.d.ts +5 -5
  422. package/ui/toggle-button/src/toggle-button.component.d.ts +1 -1
  423. package/ui/tooltip/src/tooltip-component.d.ts +8 -8
  424. package/ui/translate-input/src/aril-translate-input.component.d.ts +2 -2
  425. package/ui/tree/src/tree.component.d.ts +8 -8
  426. package/ui/treeSelect/src/treeSelect.component.d.ts +12 -12
  427. package/ui/treeTable/src/tree-table.component.d.ts +5 -5
  428. package/ui/value/src/value.component.d.ts +15 -15
  429. package/ui-business/assetPicker/src/asset-picker.component.d.ts +11 -11
  430. package/ui-business/detailed-overlay-panel/src/detailed-overlay-panel.component.d.ts +6 -3
  431. package/ui-business/enumPicker/src/enum-picker.component.d.ts +24 -24
  432. package/ui-business/image-viewer/src/aril-image-viewer.component.d.ts +8 -8
  433. package/ui-business/multiAssetPicker/src/multi-asset-picker.component.d.ts +15 -15
  434. package/ui-business/multiple-ref-value/src/multiple-ref-value.component.d.ts +5 -2
  435. package/ui-business/ref-value/src/ref-value.component.d.ts +5 -5
  436. package/ui-business/rolePicker/src/role-picker.component.d.ts +6 -6
  437. package/ui-business/trace-drawer/src/trace-drawer.component.d.ts +8 -8
  438. package/ui-business/trace-id/src/trace-id.component.d.ts +6 -6
  439. package/ui-business/userPicker/src/user-picker.component.d.ts +3 -3
  440. package/util/block/src/block.d.ts +4 -4
  441. package/util/lib/src/types.d.ts +0 -16
  442. package/fesm2022/aril-app.component-CwZZhJcO.mjs.map +0 -1
  443. package/fesm2022/aril-boot-mfe-app.component-DwYgUUdL.mjs.map +0 -1
  444. package/fesm2022/aril-boot-mfe-aril-boot-mfe-hJkkFa_a.mjs.map +0 -1
@@ -1,158 +1,158 @@
1
- import { Injectable, inject } from '@angular/core';
2
- import { Router } from '@angular/router';
3
- import { Title } from '@angular/platform-browser';
4
- import { BehaviorSubject, Observable } from 'rxjs';
5
- import { TranslocoService } from '@ngneat/transloco';
6
- import { bridge } from 'aril/boot/bridge';
7
- import { PubSubService } from 'aril/util/pub-sub';
8
-
9
- export interface HistoryItem {
10
- id: string;
11
- title: string;
12
- multiLanguageTitle?: {
13
- tr?: string;
14
- en?: string;
15
- };
16
- url: string;
17
- timestamp: number;
18
- }
19
-
20
- @Injectable({
21
- providedIn: 'root'
22
- })
23
- export class HistoryService {
24
- private readonly STORAGE_KEY = 'page_history';
25
- private readonly MAX_HISTORY_SIZE = 20;
26
-
27
- private historySubject = new BehaviorSubject<HistoryItem[]>([]);
28
- public history$: Observable<HistoryItem[]> = this.historySubject.asObservable();;
29
-
30
- // Excluded paths that shouldn't be tracked
31
- private excludedPaths = ['/login'];
32
-
33
- private router = inject(Router);
34
- private translocoService = inject(TranslocoService);
35
- private pubSubService = inject(PubSubService);
36
- private titleService = inject(Title);
37
-
38
- constructor() {
39
- this.loadHistoryFromStorage();
40
- this.initializeBreadcrumbListener();
41
- }
42
-
43
- private initializeBreadcrumbListener(): void {
44
- // Listen for breadcrumb updates to track navigation history
45
- this.pubSubService.subscribe('breadcrumbUpdated', (data) => {
46
- const url = data?.path;
47
- const pageTitle = data?.custom?.pageTitle;
48
-
49
- if (url && pageTitle && pageTitle !== '...') {
50
- this.addToHistory(url, pageTitle);
51
- this.titleService.setTitle(pageTitle);
52
- }
53
- });
54
- }
55
-
56
- private addToHistory(url: string, pageTitle?: string): void {
57
- if (this.shouldExcludeUrl(url)) {
58
- return;
59
- }
60
-
61
- const multiLanguageTitle: { tr?: string; en?: string } = {};
62
-
63
- if (pageTitle) {
64
- multiLanguageTitle.tr = pageTitle;
65
- multiLanguageTitle.en = pageTitle;
66
- } else {
67
- const globalPageTitle = bridge.pageTitle();
68
- if (globalPageTitle) {
69
- multiLanguageTitle.tr = globalPageTitle;
70
- multiLanguageTitle.en = globalPageTitle;
71
- } else {
72
- // Fallback for pages not in menu and no global title
73
- multiLanguageTitle.tr = 'Bilinmeyen Sayfa';
74
- multiLanguageTitle.en = 'Unknown Page';
75
- }
76
- }
77
-
78
- const currentLang = this.translocoService.getActiveLang() as 'tr' | 'en';
79
- const title = multiLanguageTitle[currentLang] || multiLanguageTitle.tr || 'Unknown Page';
80
- const timestamp = Date.now();
81
- const id = this.generateId(url, timestamp);
82
-
83
- const newItem: HistoryItem = {
84
- id,
85
- title,
86
- multiLanguageTitle,
87
- url,
88
- timestamp
89
- };
90
-
91
- let history = this.getHistoryFromStorage();
92
- history = history.filter((item) => item.url !== url);
93
- history.unshift(newItem);
94
-
95
- // Limit history size
96
- if (history.length > this.MAX_HISTORY_SIZE) {
97
- history = history.slice(0, this.MAX_HISTORY_SIZE);
98
- }
99
-
100
- this.saveHistoryToStorage(history);
101
- this.historySubject.next(history);
102
- }
103
-
104
- private shouldExcludeUrl(url: string): boolean {
105
- return this.excludedPaths.some((excludedPath) => url.startsWith(excludedPath));
106
- }
107
-
108
- private generateId(url: string, timestamp: number): string {
109
- return `${url.replace(/[^a-zA-Z0-9]/g, '_')}_${timestamp}`;
110
- }
111
-
112
- private loadHistoryFromStorage(): void {
113
- const history = this.getHistoryFromStorage();
114
- this.historySubject.next(history);
115
- }
116
-
117
- private saveHistoryToStorage(history: HistoryItem[]): void {
118
- try {
119
- localStorage.setItem(this.STORAGE_KEY, JSON.stringify(history));
120
- } catch (error) {
121
- console.warn('Failed to save navigation history to localStorage:', error);
122
- }
123
- }
124
-
125
- public clearHistory(): void {
126
- localStorage.removeItem(this.STORAGE_KEY);
127
- this.historySubject.next([]);
128
- }
129
-
130
- public navigateToHistoryItem(item: HistoryItem): void {
131
- this.router.navigate([item.url]);
132
- }
133
-
134
- private getHistoryFromStorage(): HistoryItem[] {
135
- try {
136
- const stored = localStorage.getItem(this.STORAGE_KEY);
137
- return stored ? JSON.parse(stored) : [];
138
- } catch (error) {
139
- console.warn('Failed to load navigation history from localStorage:', error);
140
- return [];
141
- }
142
- }
143
-
144
- public getHistoryItemsBySearchTerm(searchTerm: string): HistoryItem[] {
145
- const history = this.getHistoryFromStorage();
146
- const currentLang = this.translocoService.getActiveLang() as 'tr' | 'en';
147
- const lowerSearchTerm = searchTerm.toLocaleLowerCase(currentLang);
148
-
149
- return history.filter((item) => {
150
- // Search in current language title
151
- const currentTitle = item.multiLanguageTitle?.[currentLang] || item.title;
152
- return (
153
- currentTitle.toLocaleLowerCase(currentLang).includes(lowerSearchTerm) ||
154
- item.url.toLocaleLowerCase(currentLang).includes(lowerSearchTerm)
155
- );
156
- });
157
- }
158
- }
1
+ import { Injectable, inject } from '@angular/core';
2
+ import { Router } from '@angular/router';
3
+ import { Title } from '@angular/platform-browser';
4
+ import { BehaviorSubject, Observable } from 'rxjs';
5
+ import { TranslocoService } from '@ngneat/transloco';
6
+ import { bridge } from 'aril/boot/bridge';
7
+ import { PubSubService } from 'aril/util/pub-sub';
8
+
9
+ export interface HistoryItem {
10
+ id: string;
11
+ title: string;
12
+ multiLanguageTitle?: {
13
+ tr?: string;
14
+ en?: string;
15
+ };
16
+ url: string;
17
+ timestamp: number;
18
+ }
19
+
20
+ @Injectable({
21
+ providedIn: 'root'
22
+ })
23
+ export class HistoryService {
24
+ private readonly STORAGE_KEY = 'page_history';
25
+ private readonly MAX_HISTORY_SIZE = 20;
26
+
27
+ private historySubject = new BehaviorSubject<HistoryItem[]>([]);
28
+ public history$: Observable<HistoryItem[]> = this.historySubject.asObservable();;
29
+
30
+ // Excluded paths that shouldn't be tracked
31
+ private excludedPaths = ['/login'];
32
+
33
+ private router = inject(Router);
34
+ private translocoService = inject(TranslocoService);
35
+ private pubSubService = inject(PubSubService);
36
+ private titleService = inject(Title);
37
+
38
+ constructor() {
39
+ this.loadHistoryFromStorage();
40
+ this.initializeBreadcrumbListener();
41
+ }
42
+
43
+ private initializeBreadcrumbListener(): void {
44
+ // Listen for breadcrumb updates to track navigation history
45
+ this.pubSubService.subscribe('breadcrumbUpdated', (data) => {
46
+ const url = data?.path;
47
+ const pageTitle = data?.custom?.pageTitle;
48
+
49
+ if (url && pageTitle && pageTitle !== '...') {
50
+ this.addToHistory(url, pageTitle);
51
+ this.titleService.setTitle(pageTitle);
52
+ }
53
+ });
54
+ }
55
+
56
+ private addToHistory(url: string, pageTitle?: string): void {
57
+ if (this.shouldExcludeUrl(url)) {
58
+ return;
59
+ }
60
+
61
+ const multiLanguageTitle: { tr?: string; en?: string } = {};
62
+
63
+ if (pageTitle) {
64
+ multiLanguageTitle.tr = pageTitle;
65
+ multiLanguageTitle.en = pageTitle;
66
+ } else {
67
+ const globalPageTitle = bridge.pageTitle();
68
+ if (globalPageTitle) {
69
+ multiLanguageTitle.tr = globalPageTitle;
70
+ multiLanguageTitle.en = globalPageTitle;
71
+ } else {
72
+ // Fallback for pages not in menu and no global title
73
+ multiLanguageTitle.tr = 'Bilinmeyen Sayfa';
74
+ multiLanguageTitle.en = 'Unknown Page';
75
+ }
76
+ }
77
+
78
+ const currentLang = this.translocoService.getActiveLang() as 'tr' | 'en';
79
+ const title = multiLanguageTitle[currentLang] || multiLanguageTitle.tr || 'Unknown Page';
80
+ const timestamp = Date.now();
81
+ const id = this.generateId(url, timestamp);
82
+
83
+ const newItem: HistoryItem = {
84
+ id,
85
+ title,
86
+ multiLanguageTitle,
87
+ url,
88
+ timestamp
89
+ };
90
+
91
+ let history = this.getHistoryFromStorage();
92
+ history = history.filter((item) => item.url !== url);
93
+ history.unshift(newItem);
94
+
95
+ // Limit history size
96
+ if (history.length > this.MAX_HISTORY_SIZE) {
97
+ history = history.slice(0, this.MAX_HISTORY_SIZE);
98
+ }
99
+
100
+ this.saveHistoryToStorage(history);
101
+ this.historySubject.next(history);
102
+ }
103
+
104
+ private shouldExcludeUrl(url: string): boolean {
105
+ return this.excludedPaths.some((excludedPath) => url.startsWith(excludedPath));
106
+ }
107
+
108
+ private generateId(url: string, timestamp: number): string {
109
+ return `${url.replace(/[^a-zA-Z0-9]/g, '_')}_${timestamp}`;
110
+ }
111
+
112
+ private loadHistoryFromStorage(): void {
113
+ const history = this.getHistoryFromStorage();
114
+ this.historySubject.next(history);
115
+ }
116
+
117
+ private saveHistoryToStorage(history: HistoryItem[]): void {
118
+ try {
119
+ localStorage.setItem(this.STORAGE_KEY, JSON.stringify(history));
120
+ } catch (error) {
121
+ console.warn('Failed to save navigation history to localStorage:', error);
122
+ }
123
+ }
124
+
125
+ public clearHistory(): void {
126
+ localStorage.removeItem(this.STORAGE_KEY);
127
+ this.historySubject.next([]);
128
+ }
129
+
130
+ public navigateToHistoryItem(item: HistoryItem): void {
131
+ this.router.navigate([item.url]);
132
+ }
133
+
134
+ private getHistoryFromStorage(): HistoryItem[] {
135
+ try {
136
+ const stored = localStorage.getItem(this.STORAGE_KEY);
137
+ return stored ? JSON.parse(stored) : [];
138
+ } catch (error) {
139
+ console.warn('Failed to load navigation history from localStorage:', error);
140
+ return [];
141
+ }
142
+ }
143
+
144
+ public getHistoryItemsBySearchTerm(searchTerm: string): HistoryItem[] {
145
+ const history = this.getHistoryFromStorage();
146
+ const currentLang = this.translocoService.getActiveLang() as 'tr' | 'en';
147
+ const lowerSearchTerm = searchTerm.toLocaleLowerCase(currentLang);
148
+
149
+ return history.filter((item) => {
150
+ // Search in current language title
151
+ const currentTitle = item.multiLanguageTitle?.[currentLang] || item.title;
152
+ return (
153
+ currentTitle.toLocaleLowerCase(currentLang).includes(lowerSearchTerm) ||
154
+ item.url.toLocaleLowerCase(currentLang).includes(lowerSearchTerm)
155
+ );
156
+ });
157
+ }
158
+ }
@@ -1,169 +1,169 @@
1
- import { NgClass } from '@angular/common';
2
- import { Component, OnDestroy, Renderer2, ViewChild } from '@angular/core';
3
- import { NavigationEnd, Router, RouterOutlet } from '@angular/router';
4
-
5
- import { ConfirmDialogModule } from 'primeng/confirmdialog';
6
- import { ConfirmPopupModule } from 'primeng/confirmpopup';
7
- import { DialogModule } from 'primeng/dialog';
8
- import { MessagesModule } from 'primeng/messages';
9
- import { ToastModule } from 'primeng/toast';
10
-
11
- import { Subscription, filter } from 'rxjs';
12
-
13
- import { LayoutService } from '../../service/app.layout.service';
14
- import { AppMenuService } from '../../service/app.menu.service';
15
- import { AppProfileSidebarComponent } from '../profileSidebar/app.profilesidebar.component';
16
- import { HistorySidebarComponent } from '../history/history-sidebar.component';
17
- import { SiteMapSidebarComponent } from '../site-map/site-map-sidebar.component';
18
- import { FavoritePagesSidebarComponent } from '../favorite-pages/favorite-pages-sidebar.component';
19
- import { AppTopbarComponent } from '../topbar/app.topbar.component';
20
- import { ExpandableMenuComponent } from '../expandableMenu/expandable-menu.component';
21
- import { StaticSidebarComponent } from '../static-sidebar/static-sidebar.component';
22
- import { NotificationsSidebarComponent } from '../notifications/notifications-sidebar.component';
23
-
24
- @Component({
25
- standalone: true,
26
- selector: 'app-layout',
27
- imports: [
28
- NgClass,
29
- RouterOutlet,
30
- ConfirmDialogModule,
31
- ConfirmPopupModule,
32
- DialogModule,
33
- MessagesModule,
34
- ToastModule,
35
- AppTopbarComponent,
36
- AppProfileSidebarComponent,
37
- HistorySidebarComponent,
38
- SiteMapSidebarComponent,
39
- FavoritePagesSidebarComponent,
40
- ExpandableMenuComponent,
41
- StaticSidebarComponent,
42
- NotificationsSidebarComponent
43
- ],
44
- templateUrl: './app.layout.component.html'
45
- })
46
- export class AppLayoutComponent implements OnDestroy {
47
- overlayMenuOpenSubscription: Subscription;
48
- menuOutsideClickListener: any;
49
- menuScrollListener: any;
50
-
51
- @ViewChild(ExpandableMenuComponent) expandableMenuComponent!: ExpandableMenuComponent;
52
- @ViewChild(StaticSidebarComponent) staticSidebarComponent!: StaticSidebarComponent;
53
- @ViewChild(AppTopbarComponent) appTopbar!: AppTopbarComponent;
54
-
55
- constructor(
56
- private menuService: AppMenuService,
57
- public layoutService: LayoutService,
58
- public renderer: Renderer2,
59
- public router: Router
60
- ) {
61
- this.overlayMenuOpenSubscription = this.layoutService.overlayOpen$.subscribe(() => {
62
- if (!this.menuOutsideClickListener) {
63
- this.menuOutsideClickListener = this.renderer.listen('document', 'click', (event) => {
64
- const isOutsideClicked = !(
65
- this.appTopbar.menuButton.nativeElement.isSameNode(event.target) ||
66
- this.appTopbar.menuButton.nativeElement.contains(event.target) ||
67
- (this.expandableMenuComponent && this.isElementInside(event.target, 'app-expandable-menu')) ||
68
- (this.staticSidebarComponent && this.isElementInside(event.target, 'app-static-sidebar'))
69
- );
70
- if (isOutsideClicked) {
71
- this.hideMenu();
72
- }
73
- });
74
- }
75
-
76
- if (this.layoutService.state.staticMenuMobileActive) {
77
- this.blockBodyScroll();
78
- }
79
- });
80
-
81
- this.router.events.pipe(filter((event) => event instanceof NavigationEnd)).subscribe(() => {
82
- if (!this.layoutService.mfeAppItemClicked()) this.hideMenu();
83
- });
84
- }
85
-
86
- blockBodyScroll(): void {
87
- if (document.body.classList) {
88
- document.body.classList.add('blocked-scroll');
89
- } else {
90
- document.body.className += ' blocked-scroll';
91
- }
92
- }
93
-
94
- unblockBodyScroll(): void {
95
- if (document.body.classList) {
96
- document.body.classList.remove('blocked-scroll');
97
- } else {
98
- document.body.className = document.body.className.replace(
99
- new RegExp('(^|\\b)' + 'blocked-scroll'.split(' ').join('|') + '(\\b|$)', 'gi'),
100
- ' '
101
- );
102
- }
103
- }
104
-
105
- // Helper method to check if element is inside a specific component
106
- private isElementInside(element: any, selector: string): boolean {
107
- if (!element) return false;
108
-
109
- let currentElement = element;
110
- while (currentElement && currentElement !== document) {
111
- if (currentElement.tagName && currentElement.tagName.toLowerCase() === selector) {
112
- return true;
113
- }
114
- currentElement = currentElement.parentElement;
115
- }
116
- return false;
117
- }
118
-
119
- hideMenu() {
120
- this.layoutService.state.staticMenuMobileActive = false;
121
- this.menuService.reset();
122
-
123
- if (this.menuOutsideClickListener) {
124
- this.menuOutsideClickListener();
125
- this.menuOutsideClickListener = null;
126
- }
127
-
128
- if (this.menuScrollListener) {
129
- this.menuScrollListener();
130
- this.menuScrollListener = null;
131
- }
132
-
133
- this.unblockBodyScroll();
134
- }
135
-
136
- get containerClass() {
137
- return {
138
- 'layout-light': this.layoutService.config().colorScheme === 'light',
139
- 'layout-dim': this.layoutService.config().colorScheme === 'dim',
140
- 'layout-dark': this.layoutService.config().colorScheme === 'dark',
141
- 'layout-colorscheme-menu': this.layoutService.config().menuTheme === 'colorScheme',
142
- 'layout-primarycolor-menu': this.layoutService.config().menuTheme === 'primaryColor',
143
- 'layout-transparent-menu': this.layoutService.config().menuTheme === 'transparent',
144
- 'layout-static': this.layoutService.config().menuMode === 'static',
145
- 'layout-expandable': this.layoutService.config().menuMode === 'expandable',
146
- 'layout-static-inactive':
147
- this.layoutService.config().menuMode === 'static' &&
148
- !this.layoutService.shouldShowStaticSidebar(),
149
- 'layout-static-collapsed':
150
- this.layoutService.config().menuMode === 'static' &&
151
- this.layoutService.isStaticSidebarCollapsed(),
152
- 'layout-mobile-active': this.layoutService.state.staticMenuMobileActive,
153
- 'p-input-filled': this.layoutService.config().inputStyle === 'filled',
154
- 'p-ripple-disabled': !this.layoutService.config().ripple,
155
- 'new-sidebar-layout': this.layoutService.config().menuMode === 'expandable',
156
- 'secondary-expanded': this.layoutService.state.secondarySidebarExpanded
157
- };
158
- }
159
-
160
- ngOnDestroy() {
161
- if (this.overlayMenuOpenSubscription) {
162
- this.overlayMenuOpenSubscription.unsubscribe();
163
- }
164
-
165
- if (this.menuOutsideClickListener) {
166
- this.menuOutsideClickListener();
167
- }
168
- }
1
+ import { NgClass } from '@angular/common';
2
+ import { Component, OnDestroy, Renderer2, ViewChild } from '@angular/core';
3
+ import { NavigationEnd, Router, RouterOutlet } from '@angular/router';
4
+
5
+ import { ConfirmDialogModule } from 'primeng/confirmdialog';
6
+ import { ConfirmPopupModule } from 'primeng/confirmpopup';
7
+ import { DialogModule } from 'primeng/dialog';
8
+ import { MessagesModule } from 'primeng/messages';
9
+ import { ToastModule } from 'primeng/toast';
10
+
11
+ import { Subscription, filter } from 'rxjs';
12
+
13
+ import { LayoutService } from '../../service/app.layout.service';
14
+ import { AppMenuService } from '../../service/app.menu.service';
15
+ import { AppProfileSidebarComponent } from '../profileSidebar/app.profilesidebar.component';
16
+ import { HistorySidebarComponent } from '../history/history-sidebar.component';
17
+ import { SiteMapSidebarComponent } from '../site-map/site-map-sidebar.component';
18
+ import { FavoritePagesSidebarComponent } from '../favorite-pages/favorite-pages-sidebar.component';
19
+ import { AppTopbarComponent } from '../topbar/app.topbar.component';
20
+ import { ExpandableMenuComponent } from '../expandableMenu/expandable-menu.component';
21
+ import { StaticSidebarComponent } from '../static-sidebar/static-sidebar.component';
22
+ import { NotificationsSidebarComponent } from '../notifications/notifications-sidebar.component';
23
+
24
+ @Component({
25
+ standalone: true,
26
+ selector: 'app-layout',
27
+ imports: [
28
+ NgClass,
29
+ RouterOutlet,
30
+ ConfirmDialogModule,
31
+ ConfirmPopupModule,
32
+ DialogModule,
33
+ MessagesModule,
34
+ ToastModule,
35
+ AppTopbarComponent,
36
+ AppProfileSidebarComponent,
37
+ HistorySidebarComponent,
38
+ SiteMapSidebarComponent,
39
+ FavoritePagesSidebarComponent,
40
+ ExpandableMenuComponent,
41
+ StaticSidebarComponent,
42
+ NotificationsSidebarComponent
43
+ ],
44
+ templateUrl: './app.layout.component.html'
45
+ })
46
+ export class AppLayoutComponent implements OnDestroy {
47
+ overlayMenuOpenSubscription: Subscription;
48
+ menuOutsideClickListener: any;
49
+ menuScrollListener: any;
50
+
51
+ @ViewChild(ExpandableMenuComponent) expandableMenuComponent!: ExpandableMenuComponent;
52
+ @ViewChild(StaticSidebarComponent) staticSidebarComponent!: StaticSidebarComponent;
53
+ @ViewChild(AppTopbarComponent) appTopbar!: AppTopbarComponent;
54
+
55
+ constructor(
56
+ private menuService: AppMenuService,
57
+ public layoutService: LayoutService,
58
+ public renderer: Renderer2,
59
+ public router: Router
60
+ ) {
61
+ this.overlayMenuOpenSubscription = this.layoutService.overlayOpen$.subscribe(() => {
62
+ if (!this.menuOutsideClickListener) {
63
+ this.menuOutsideClickListener = this.renderer.listen('document', 'click', (event) => {
64
+ const isOutsideClicked = !(
65
+ this.appTopbar.menuButton.nativeElement.isSameNode(event.target) ||
66
+ this.appTopbar.menuButton.nativeElement.contains(event.target) ||
67
+ (this.expandableMenuComponent && this.isElementInside(event.target, 'app-expandable-menu')) ||
68
+ (this.staticSidebarComponent && this.isElementInside(event.target, 'app-static-sidebar'))
69
+ );
70
+ if (isOutsideClicked) {
71
+ this.hideMenu();
72
+ }
73
+ });
74
+ }
75
+
76
+ if (this.layoutService.state.staticMenuMobileActive) {
77
+ this.blockBodyScroll();
78
+ }
79
+ });
80
+
81
+ this.router.events.pipe(filter((event) => event instanceof NavigationEnd)).subscribe(() => {
82
+ if (!this.layoutService.mfeAppItemClicked()) this.hideMenu();
83
+ });
84
+ }
85
+
86
+ blockBodyScroll(): void {
87
+ if (document.body.classList) {
88
+ document.body.classList.add('blocked-scroll');
89
+ } else {
90
+ document.body.className += ' blocked-scroll';
91
+ }
92
+ }
93
+
94
+ unblockBodyScroll(): void {
95
+ if (document.body.classList) {
96
+ document.body.classList.remove('blocked-scroll');
97
+ } else {
98
+ document.body.className = document.body.className.replace(
99
+ new RegExp('(^|\\b)' + 'blocked-scroll'.split(' ').join('|') + '(\\b|$)', 'gi'),
100
+ ' '
101
+ );
102
+ }
103
+ }
104
+
105
+ // Helper method to check if element is inside a specific component
106
+ private isElementInside(element: any, selector: string): boolean {
107
+ if (!element) return false;
108
+
109
+ let currentElement = element;
110
+ while (currentElement && currentElement !== document) {
111
+ if (currentElement.tagName && currentElement.tagName.toLowerCase() === selector) {
112
+ return true;
113
+ }
114
+ currentElement = currentElement.parentElement;
115
+ }
116
+ return false;
117
+ }
118
+
119
+ hideMenu() {
120
+ this.layoutService.state.staticMenuMobileActive = false;
121
+ this.menuService.reset();
122
+
123
+ if (this.menuOutsideClickListener) {
124
+ this.menuOutsideClickListener();
125
+ this.menuOutsideClickListener = null;
126
+ }
127
+
128
+ if (this.menuScrollListener) {
129
+ this.menuScrollListener();
130
+ this.menuScrollListener = null;
131
+ }
132
+
133
+ this.unblockBodyScroll();
134
+ }
135
+
136
+ get containerClass() {
137
+ return {
138
+ 'layout-light': this.layoutService.config().colorScheme === 'light',
139
+ 'layout-dim': this.layoutService.config().colorScheme === 'dim',
140
+ 'layout-dark': this.layoutService.config().colorScheme === 'dark',
141
+ 'layout-colorscheme-menu': this.layoutService.config().menuTheme === 'colorScheme',
142
+ 'layout-primarycolor-menu': this.layoutService.config().menuTheme === 'primaryColor',
143
+ 'layout-transparent-menu': this.layoutService.config().menuTheme === 'transparent',
144
+ 'layout-static': this.layoutService.config().menuMode === 'static',
145
+ 'layout-expandable': this.layoutService.config().menuMode === 'expandable',
146
+ 'layout-static-inactive':
147
+ this.layoutService.config().menuMode === 'static' &&
148
+ !this.layoutService.shouldShowStaticSidebar(),
149
+ 'layout-static-collapsed':
150
+ this.layoutService.config().menuMode === 'static' &&
151
+ this.layoutService.isStaticSidebarCollapsed(),
152
+ 'layout-mobile-active': this.layoutService.state.staticMenuMobileActive,
153
+ 'p-input-filled': this.layoutService.config().inputStyle === 'filled',
154
+ 'p-ripple-disabled': !this.layoutService.config().ripple,
155
+ 'new-sidebar-layout': this.layoutService.config().menuMode === 'expandable',
156
+ 'secondary-expanded': this.layoutService.state.secondarySidebarExpanded
157
+ };
158
+ }
159
+
160
+ ngOnDestroy() {
161
+ if (this.overlayMenuOpenSubscription) {
162
+ this.overlayMenuOpenSubscription.unsubscribe();
163
+ }
164
+
165
+ if (this.menuOutsideClickListener) {
166
+ this.menuOutsideClickListener();
167
+ }
168
+ }
169
169
  }