aril 1.2.50 → 1.2.53
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.
- package/README.md +62 -62
- package/boot/config/api.sample.json +8 -8
- package/esm2022/boot/base/index.mjs +1 -1
- package/esm2022/boot/base/src/aril-title-strategy.mjs +4 -4
- package/esm2022/boot/base/src/create-base-app-config.mjs +1 -1
- package/esm2022/boot/bridge/index.mjs +1 -1
- package/esm2022/boot/bridge/src/mfe-bridge.mjs +1 -1
- package/esm2022/boot/bridge/src/provide-mfe-bridge.mjs +1 -1
- package/esm2022/boot/config/api/index.mjs +1 -1
- package/esm2022/boot/config/api/src/api.service.mjs +1 -1
- package/esm2022/boot/config/api/src/interfaces.mjs +1 -1
- package/esm2022/boot/config/apps/index.mjs +1 -1
- package/esm2022/boot/config/apps/src/apps.service.mjs +4 -4
- package/esm2022/boot/config/apps/src/auth.guard.mjs +4 -4
- package/esm2022/boot/config/apps/src/interfaces.mjs +1 -1
- package/esm2022/boot/config/apps/src/reuse-strategy.mjs +1 -1
- package/esm2022/boot/config/apps/src/route-permissions.mjs +1 -1
- package/esm2022/boot/config/apps/src/showdowDOMWrapper.mjs +4 -4
- package/esm2022/boot/config/plugins/index.mjs +1 -1
- package/esm2022/boot/config/plugins/src/getNgZone.mjs +1 -1
- package/esm2022/boot/config/plugins/src/interfaces.mjs +1 -1
- package/esm2022/boot/config/plugins/src/plugins.service.mjs +1 -1
- package/esm2022/boot/config/translate/constants.mjs +1 -1
- package/esm2022/boot/config/translate/index.mjs +1 -1
- package/esm2022/boot/config/translate/primeng/i18n/tr.mjs +1 -1
- package/esm2022/boot/host/index.mjs +1 -1
- package/esm2022/boot/host/src/app.component.mjs +4 -4
- package/esm2022/boot/host/src/bootstrap.mjs +5 -1
- package/esm2022/boot/index.mjs +1 -1
- package/esm2022/boot/mfe/index.mjs +1 -1
- package/esm2022/boot/mfe/src/app.component.mjs +15 -15
- package/esm2022/boot/mfe/src/appComponentLoader.mjs +1 -1
- package/esm2022/boot/mfe/src/bootstrap.mjs +1 -1
- package/esm2022/boot/mfe/src/monaco.config.mjs +1 -1
- package/esm2022/boot/pages/index.mjs +1 -1
- package/esm2022/boot/pages/src/forbidden.component.mjs +53 -53
- package/esm2022/boot/pages/src/notFound.component.mjs +49 -49
- package/esm2022/http/index.mjs +2 -1
- package/esm2022/http/lib/enums.mjs +1 -1
- package/esm2022/http/lib/interfaces.mjs +1 -1
- package/esm2022/http/src/httpBackend.mjs +4 -4
- package/esm2022/http/src/httpClient.mjs +1 -1
- package/esm2022/http/src/interceptor/accept-language.interceptor.mjs +1 -1
- package/esm2022/http/src/pathParam.mjs +12 -0
- package/esm2022/http/src/serviceBase.mjs +38 -1
- package/esm2022/http/src/serviceMockBase.mjs +1 -1
- package/esm2022/http/src/serviceRequest.mjs +1 -1
- package/esm2022/http/src/serviceStateMethods.mjs +1 -1
- package/esm2022/i18n/index.mjs +1 -1
- package/esm2022/i18n/src/folder-name-token.mjs +1 -1
- package/esm2022/i18n/src/i18n.module.mjs +5 -5
- package/esm2022/i18n/src/loader.mjs +4 -4
- package/esm2022/i18n/src/provideI18n.mjs +1 -1
- package/esm2022/i18n/src/provideScope.mjs +1 -1
- package/esm2022/keycloak/src/auth.interceptor.mjs +1 -1
- package/esm2022/permission/index.mjs +1 -1
- package/esm2022/permission/src/constants.mjs +1 -1
- package/esm2022/permission/src/has-permission.directive.mjs +4 -4
- package/esm2022/permission/src/permission.service.mjs +4 -4
- package/esm2022/provider/index.mjs +1 -1
- package/esm2022/provider/src/index.mjs +1 -1
- package/esm2022/provider/src/prodiveHost.mjs +1 -1
- package/esm2022/provider/src/prodiveHostRouter.mjs +1 -1
- package/esm2022/provider/src/provideHostKeycloak.mjs +1 -1
- package/esm2022/provider/src/provideHostPermissions.mjs +1 -1
- package/esm2022/provider/src/provideLocaleId.mjs +1 -1
- package/esm2022/public-api.mjs +1 -1
- package/esm2022/superset/index.mjs +1 -1
- package/esm2022/theme/index.mjs +1 -1
- package/esm2022/theme/layout/app/breadcrumb/app.breadcrumb.component.mjs +7 -6
- package/esm2022/theme/layout/app/environment-banner/environment-banner.component.mjs +5 -5
- package/esm2022/theme/layout/app/expandableMenu/expandable-menu.component.mjs +5 -5
- package/esm2022/theme/layout/app/favorite-pages/favorite-pages-sidebar.component.mjs +7 -6
- package/esm2022/theme/layout/app/favorite-pages/favorite-pages.service.mjs +7 -5
- package/esm2022/theme/layout/app/favorite-pages/modals/add-edit-favorite-modal/add-edit-favorite-modal.component.mjs +5 -5
- package/esm2022/theme/layout/app/general-search/general-search.component.mjs +71 -14
- package/esm2022/theme/layout/app/general-search/helpers.mjs +1 -1
- package/esm2022/theme/layout/app/general-search/models.mjs +1 -1
- package/esm2022/theme/layout/app/history/history-sidebar.component.mjs +5 -5
- package/esm2022/theme/layout/app/history/history.service.mjs +4 -4
- package/esm2022/theme/layout/app/layout/app.layout.component.mjs +9 -6
- package/esm2022/theme/layout/app/layout/mfe.layout.component.mjs +25 -25
- package/esm2022/theme/layout/app/notifications/notifications-sidebar.component.mjs +5 -5
- package/esm2022/theme/layout/app/profileSidebar/app.profilesidebar.component.mjs +5 -5
- package/esm2022/theme/layout/app/profileSidebar/modals/change-password-modal/change-password-modal.component.mjs +5 -5
- package/esm2022/theme/layout/app/profileSidebar/modals/edit-profile-modal/edit-profile-modal.component.mjs +5 -5
- package/esm2022/theme/layout/app/profileSidebar/profile.service.mjs +4 -4
- package/esm2022/theme/layout/app/site-map/site-map-sidebar.component.mjs +5 -5
- package/esm2022/theme/layout/app/static-sidebar/static-sidebar.component.mjs +5 -5
- package/esm2022/theme/layout/app/topbar/app.topbar.component.mjs +64 -7
- package/esm2022/theme/layout/index.mjs +5 -1
- package/esm2022/theme/layout/service/app.layout.service.mjs +6 -4
- package/esm2022/theme/layout/service/app.menu.service.mjs +4 -4
- package/esm2022/theme/layout/service/breadcrumb.service.mjs +4 -4
- package/esm2022/theme/layout/service/interfaces/enum.mjs +1 -1
- package/esm2022/theme/layout/service/interfaces/interfaces.mjs +1 -1
- package/esm2022/theme/layout/service/menu-action-confirm.mjs +1 -1
- package/esm2022/theme/layout/service/menuchangeevent.mjs +1 -1
- package/esm2022/theme/layout/service/notifications.service.mjs +4 -4
- package/esm2022/theme/layout/service/recent-search.service.mjs +100 -0
- package/esm2022/theme/layout/service/record-summary.service.mjs +398 -0
- package/esm2022/theme/layout/service/screen-visit.service.mjs +242 -0
- package/esm2022/theme/layout/service/search.service.mjs +4 -4
- package/esm2022/theme/layout/service/selection-group.service.mjs +4 -4
- package/esm2022/ui/autoComplete/index.mjs +1 -1
- package/esm2022/ui/autoComplete/src/auto-complete.component.mjs +5 -5
- package/esm2022/ui/autoComplete/src/interfaces.mjs +1 -1
- package/esm2022/ui/badge/index.mjs +1 -1
- package/esm2022/ui/badge/src/badge.component.mjs +5 -5
- package/esm2022/ui/button/index.mjs +1 -1
- package/esm2022/ui/button/src/button.component.mjs +5 -5
- package/esm2022/ui/button/src/split-button.component.mjs +5 -5
- package/esm2022/ui/calendar/index.mjs +1 -1
- package/esm2022/ui/calendar/src/calendar.component.mjs +5 -5
- package/esm2022/ui/charts/index.mjs +1 -1
- package/esm2022/ui/charts/src/amCharts/column/column-chart.component.mjs +4 -4
- package/esm2022/ui/charts/src/amCharts/line/line-chart.component.mjs +4 -4
- package/esm2022/ui/charts/src/amCharts/pie/pie-chart.component.mjs +4 -4
- package/esm2022/ui/charts/src/highCharts/area/area-chart.component.mjs +21 -21
- package/esm2022/ui/charts/src/highCharts/bar/bar-chart.component.mjs +16 -16
- package/esm2022/ui/charts/src/highCharts/column/column-chart.component.mjs +16 -16
- package/esm2022/ui/charts/src/highCharts/gauge/solid-gauge.component.mjs +21 -21
- package/esm2022/ui/charts/src/highCharts/heatmap/heatMap-chart.component.mjs +17 -17
- package/esm2022/ui/charts/src/highCharts/line/line-chart-datetime-axis.component.mjs +17 -17
- package/esm2022/ui/charts/src/highCharts/line/line-chart-series.component.mjs +7 -7
- package/esm2022/ui/charts/src/highCharts/line/line-chart.component.mjs +4 -4
- package/esm2022/ui/charts/src/highCharts/pie/pie-chart.component.mjs +19 -19
- package/esm2022/ui/charts/src/theme/theme.mjs +1 -1
- package/esm2022/ui/checkbox/index.mjs +1 -1
- package/esm2022/ui/checkbox/src/check-box.component.mjs +5 -5
- package/esm2022/ui/checkbox/src/tri-state-checkbox.component.mjs +5 -5
- package/esm2022/ui/chip/src/chip.component.mjs +5 -5
- package/esm2022/ui/collapse-reorder-list/src/collapse-reorder-list.component.mjs +5 -5
- package/esm2022/ui/dxEditor/index.mjs +1 -1
- package/esm2022/ui/dxEditor/src/dx-editor.component.mjs +5 -5
- package/esm2022/ui/dxField/index.mjs +1 -1
- package/esm2022/ui/dxField/src/dx-field.component.mjs +5 -5
- package/esm2022/ui/editor/index.mjs +1 -1
- package/esm2022/ui/editor/src/aril-editor.component.mjs +5 -5
- package/esm2022/ui/editor/src/types.mjs +1 -1
- package/esm2022/ui/field/index.mjs +1 -1
- package/esm2022/ui/field/src/field.component.mjs +5 -5
- package/esm2022/ui/fileUpload/index.mjs +1 -1
- package/esm2022/ui/fileUpload/src/file-upload.component.mjs +5 -5
- package/esm2022/ui/form/index.mjs +5 -5
- package/esm2022/ui/form/src/form-submit-button.component.mjs +5 -5
- package/esm2022/ui/form/src/form.component.mjs +4 -4
- package/esm2022/ui/img-viewer/index.mjs +1 -1
- package/esm2022/ui/img-viewer/src/img-viewer.component.mjs +5 -5
- package/esm2022/ui/index.mjs +1 -1
- package/esm2022/ui/json-diff-comparison/index.mjs +1 -1
- package/esm2022/ui/json-diff-comparison/src/json-diff.component.mjs +5 -5
- package/esm2022/ui/lib/index.mjs +1 -1
- package/esm2022/ui/lib/src/form/form-error-message.component.mjs +11 -11
- package/esm2022/ui/lib/src/form/form-error-message.directive.mjs +4 -4
- package/esm2022/ui/lib/src/form/form-field-builder.mjs +1 -1
- package/esm2022/ui/lib/src/form/form-validation.mjs +1 -1
- package/esm2022/ui/lib/src/grid/enum-color-picker.pipe.mjs +4 -4
- package/esm2022/ui/lib/src/grid/flex-grid.directive.mjs +4 -4
- package/esm2022/ui/lib/src/input/baseInput.mjs +1 -1
- package/esm2022/ui/lib/src/input/common-input-validators.service.mjs +4 -4
- package/esm2022/ui/lib/src/input/dx-input-error-message.pipe.mjs +4 -4
- package/esm2022/ui/lib/src/input/input-disabled.directive.mjs +4 -4
- package/esm2022/ui/lib/src/input/input-error-message.pipe.mjs +4 -4
- package/esm2022/ui/lib/src/input/input-transforms.mjs +1 -1
- package/esm2022/ui/lib/src/input/value-accessor.directive.mjs +4 -4
- package/esm2022/ui/lib/src/tooltip/tooltip-on-overflow.directive.mjs +4 -4
- package/esm2022/ui/loader/index.mjs +1 -1
- package/esm2022/ui/loader/src/loader.component.mjs +5 -5
- package/esm2022/ui/mask/index.mjs +1 -1
- package/esm2022/ui/mask/src/mask.component.mjs +5 -5
- package/esm2022/ui/multiSelect/index.mjs +1 -1
- package/esm2022/ui/multiSelect/src/interfaces.mjs +1 -1
- package/esm2022/ui/multiSelect/src/multi-select.component.mjs +5 -5
- package/esm2022/ui/number/index.mjs +1 -1
- package/esm2022/ui/number/src/number.component.mjs +5 -5
- package/esm2022/ui/operation-types-dialog/index.mjs +1 -1
- package/esm2022/ui/operation-types-dialog/src/operation-types-dialog.component.mjs +13 -13
- package/esm2022/ui/overlayPanel/index.mjs +1 -1
- package/esm2022/ui/overlayPanel/src/overlay-panel.component.mjs +5 -5
- package/esm2022/ui/panel/index.mjs +1 -1
- package/esm2022/ui/panel/src/panel.component.mjs +5 -5
- package/esm2022/ui/password/index.mjs +1 -1
- package/esm2022/ui/password/src/password.component.mjs +5 -5
- package/esm2022/ui/pdf-viewer/index.mjs +1 -1
- package/esm2022/ui/pdf-viewer/src/pdf-viewer.component.mjs +5 -5
- package/esm2022/ui/progressbar/index.mjs +1 -1
- package/esm2022/ui/progressbar/src/progressbar.component.mjs +5 -5
- package/esm2022/ui/radioButton/index.mjs +1 -1
- package/esm2022/ui/radioButton/src/radio-button.component.mjs +5 -5
- package/esm2022/ui/relativeDateSelector/src/enum.mjs +1 -1
- package/esm2022/ui/relativeDateSelector/src/relative-date-selector.component.mjs +5 -5
- package/esm2022/ui/selectBox/index.mjs +1 -1
- package/esm2022/ui/selectBox/src/interfaces.mjs +1 -1
- package/esm2022/ui/selectBox/src/select-box.component.mjs +5 -5
- package/esm2022/ui/switch/index.mjs +1 -1
- package/esm2022/ui/switch/src/switch.component.mjs +5 -5
- package/esm2022/ui/table/index.mjs +5 -5
- package/esm2022/ui/table/src/export-overlay-panel.component.mjs +129 -129
- package/esm2022/ui/table/src/interfaces.mjs +1 -1
- package/esm2022/ui/table/src/table-column.component.mjs +4 -4
- package/esm2022/ui/table/src/table.component.mjs +5 -5
- package/esm2022/ui/table-expand/index.mjs +5 -5
- package/esm2022/ui/table-expand/src/table-column.component.mjs +4 -4
- package/esm2022/ui/table-expand/src/table-expand-area.component.mjs +4 -4
- package/esm2022/ui/table-expand/src/table.component.mjs +5 -5
- package/esm2022/ui/tag/src/tag.component.mjs +5 -5
- package/esm2022/ui/tagBox/index.mjs +1 -1
- package/esm2022/ui/tagBox/src/tag-box.component.mjs +5 -5
- package/esm2022/ui/text/index.mjs +1 -1
- package/esm2022/ui/text/src/text.component.mjs +5 -5
- package/esm2022/ui/textArea/index.mjs +1 -1
- package/esm2022/ui/textArea/src/text-area.component.mjs +5 -5
- package/esm2022/ui/toggle-button/src/toggle-button.component.mjs +5 -5
- package/esm2022/ui/tooltip/index.mjs +1 -1
- package/esm2022/ui/tooltip/src/tooltip-component.mjs +5 -5
- package/esm2022/ui/translate-input/index.mjs +1 -1
- package/esm2022/ui/translate-input/src/aril-lang-modal/aril-lang-modal.component.mjs +5 -5
- package/esm2022/ui/translate-input/src/aril-lang-modal/constants.mjs +1 -1
- package/esm2022/ui/translate-input/src/aril-translate-input.component.mjs +27 -27
- package/esm2022/ui/translate-input/src/interface.mjs +1 -1
- package/esm2022/ui/tree/index.mjs +1 -1
- package/esm2022/ui/tree/src/tree.component.mjs +5 -5
- package/esm2022/ui/treeSelect/index.mjs +1 -1
- package/esm2022/ui/treeSelect/src/treeSelect.component.mjs +5 -5
- package/esm2022/ui/treeTable/index.mjs +1 -1
- package/esm2022/ui/treeTable/src/tree-table.component.mjs +5 -5
- package/esm2022/ui/value/index.mjs +1 -1
- package/esm2022/ui/value/src/value.component.mjs +5 -5
- package/esm2022/ui-business/assetPicker/index.mjs +1 -1
- package/esm2022/ui-business/assetPicker/src/asset-picker.component.mjs +22 -8
- package/esm2022/ui-business/assetPicker/src/interface.mjs +1 -1
- package/esm2022/ui-business/detailed-overlay-panel/index.mjs +1 -1
- package/esm2022/ui-business/detailed-overlay-panel/src/detailed-overlay-panel.component.mjs +11 -5
- package/esm2022/ui-business/detailed-overlay-panel/src/interface.mjs +1 -1
- package/esm2022/ui-business/enumPicker/src/enum-picker.component.mjs +5 -5
- package/esm2022/ui-business/enumPicker/src/interface.mjs +1 -1
- package/esm2022/ui-business/image-viewer/src/aril-image-viewer.component.mjs +31 -31
- package/esm2022/ui-business/index.mjs +1 -1
- package/esm2022/ui-business/multiAssetPicker/index.mjs +1 -1
- package/esm2022/ui-business/multiAssetPicker/src/multi-asset-picker.component.mjs +5 -5
- package/esm2022/ui-business/multiple-ref-value/index.mjs +1 -1
- package/esm2022/ui-business/multiple-ref-value/src/multiple-ref-value.component.mjs +5 -5
- package/esm2022/ui-business/notification-templates-dialog/index.mjs +1 -1
- package/esm2022/ui-business/notification-templates-dialog/src/interface.mjs +1 -1
- package/esm2022/ui-business/notification-templates-dialog/src/notification-templates-dialog.component.mjs +5 -5
- package/esm2022/ui-business/pdf-preview-modal/index.mjs +1 -1
- package/esm2022/ui-business/pdf-preview-modal/src/open-pdf-preview.mjs +1 -1
- package/esm2022/ui-business/pdf-preview-modal/src/pdf-preview-modal.component.mjs +29 -29
- package/esm2022/ui-business/ref-value/index.mjs +1 -1
- package/esm2022/ui-business/ref-value/src/ref-value.component.mjs +5 -5
- package/esm2022/ui-business/rolePicker/index.mjs +1 -1
- package/esm2022/ui-business/rolePicker/src/interface.mjs +1 -1
- package/esm2022/ui-business/rolePicker/src/role-picker.component.mjs +5 -5
- package/esm2022/ui-business/trace-drawer/index.mjs +1 -1
- package/esm2022/ui-business/trace-drawer/src/app-log.service.mjs +4 -4
- package/esm2022/ui-business/trace-drawer/src/interfaces.mjs +1 -1
- package/esm2022/ui-business/trace-drawer/src/trace-drawer.component.mjs +5 -5
- package/esm2022/ui-business/trace-drawer/src/trace-log.service.mjs +4 -4
- package/esm2022/ui-business/trace-id/index.mjs +1 -1
- package/esm2022/ui-business/trace-id/src/trace-id.component.mjs +5 -5
- package/esm2022/ui-business/userPicker/src/interface.mjs +1 -1
- package/esm2022/ui-business/userPicker/src/user-picker.component.mjs +5 -5
- package/esm2022/util/activity/index.mjs +1 -1
- package/esm2022/util/activity/src/activity.constants.mjs +1 -1
- package/esm2022/util/activity/src/activity.service.mjs +15 -4
- package/esm2022/util/activity/src/activity.types.mjs +1 -1
- package/esm2022/util/block/index.mjs +1 -1
- package/esm2022/util/block/src/block.mjs +7 -7
- package/esm2022/util/directives/index.mjs +1 -1
- package/esm2022/util/directives/src/detail-page-customization/detail-page-customization.directive.mjs +4 -4
- package/esm2022/util/directives/src/detail-page-customization/index.mjs +1 -1
- package/esm2022/util/directives/src/detail-page-customization/models.mjs +1 -1
- package/esm2022/util/directives/src/dialog-component/plugin-dialog.component.mjs +4 -4
- package/esm2022/util/directives/src/dialog-service/plugin-dialog.service.mjs +4 -4
- package/esm2022/util/lib/index.mjs +1 -1
- package/esm2022/util/lib/src/interfaces.mjs +1 -1
- package/esm2022/util/lib/src/module-router.mjs +4 -4
- package/esm2022/util/lib/src/types.mjs +1 -1
- package/esm2022/util/lib/src/validators/iban.validator.mjs +1 -1
- package/esm2022/util/lib/src/validators/identity.validator.mjs +1 -1
- package/esm2022/util/lib/src/validators/index.mjs +1 -1
- package/esm2022/util/lib/src/validators/max-array-length.validator.mjs +1 -1
- package/esm2022/util/lib/src/validators/min-array-length.validator.mjs +1 -1
- package/esm2022/util/lib/src/validators/tckn.validator.mjs +1 -1
- package/esm2022/util/lib/src/validators/validators.mjs +1 -1
- package/esm2022/util/pipes/index.mjs +1 -1
- package/esm2022/util/pipes/src/distance-to-now.pipe.mjs +4 -4
- package/esm2022/util/pipes/src/get-column-by-field.pipe.mjs +4 -4
- package/esm2022/util/pipes/src/parse.pipe.mjs +4 -4
- package/esm2022/util/pipes/src/round-number.pipe.mjs +4 -4
- package/esm2022/util/pipes/src/safe.pipe.mjs +4 -4
- package/esm2022/util/pipes/src/translate-json/translate-json.pipe.mjs +4 -4
- package/esm2022/util/primitive-extensions/index.mjs +1 -1
- package/esm2022/util/primitive-extensions/src/boolean.extensions.mjs +1 -1
- package/esm2022/util/primitive-extensions/src/date.extensions.mjs +1 -1
- package/esm2022/util/primitive-extensions/src/number.extensions.mjs +1 -1
- package/esm2022/util/primitive-extensions/src/string.extensions.mjs +1 -1
- package/esm2022/util/pub-sub/index.mjs +1 -1
- package/esm2022/util/pub-sub/src/pub-sub.service.mjs +4 -4
- package/esm2022/util/sync-active-tab-route/index.mjs +1 -1
- package/esm2022/util/sync-active-tab-route/src/sync-active-tab-route.directive.mjs +4 -4
- package/esm2022/util/unwrap/index.mjs +1 -1
- package/esm2022/util/unwrap/src/unwrap-tag.directive.mjs +4 -4
- package/fesm2022/{aril-app.component-BUjucZ0J.mjs → aril-app.component-Cimdqjv1.mjs} +15 -15
- package/fesm2022/aril-app.component-Cimdqjv1.mjs.map +1 -0
- package/fesm2022/aril-boot-base.mjs +4 -4
- package/fesm2022/aril-boot-base.mjs.map +1 -1
- package/fesm2022/aril-boot-bridge.mjs.map +1 -1
- package/fesm2022/aril-boot-config-api.mjs +1 -1
- package/fesm2022/aril-boot-config-api.mjs.map +1 -1
- package/fesm2022/aril-boot-config-apps.mjs +10 -10
- package/fesm2022/aril-boot-config-apps.mjs.map +1 -1
- package/fesm2022/aril-boot-config-plugins.mjs +1 -1
- package/fesm2022/aril-boot-config-plugins.mjs.map +1 -1
- package/fesm2022/aril-boot-config-translate.mjs.map +1 -1
- package/fesm2022/aril-boot-host.mjs +8 -4
- package/fesm2022/aril-boot-host.mjs.map +1 -1
- package/fesm2022/{aril-boot-mfe-app.component-D1w8I2ug.mjs → aril-boot-mfe-app.component-CCGhRwfE.mjs} +16 -16
- package/fesm2022/aril-boot-mfe-app.component-CCGhRwfE.mjs.map +1 -0
- package/fesm2022/{aril-boot-mfe-aril-boot-mfe-JHrhKvhU.mjs → aril-boot-mfe-aril-boot-mfe-BPwfk0s2.mjs} +4 -4
- package/fesm2022/aril-boot-mfe-aril-boot-mfe-BPwfk0s2.mjs.map +1 -0
- package/fesm2022/aril-boot-mfe.mjs +1 -1
- package/fesm2022/aril-boot-pages.mjs +100 -100
- package/fesm2022/aril-boot-pages.mjs.map +1 -1
- package/fesm2022/aril-boot.mjs.map +1 -1
- package/fesm2022/aril-http.mjs +53 -6
- package/fesm2022/aril-http.mjs.map +1 -1
- package/fesm2022/aril-i18n.mjs +7 -7
- package/fesm2022/aril-i18n.mjs.map +1 -1
- package/fesm2022/aril-keycloak.mjs.map +1 -1
- package/fesm2022/aril-permission.mjs +7 -7
- package/fesm2022/aril-permission.mjs.map +1 -1
- package/fesm2022/aril-provider.mjs +1 -1
- package/fesm2022/aril-provider.mjs.map +1 -1
- package/fesm2022/aril-theme-layout.mjs +1113 -285
- package/fesm2022/aril-theme-layout.mjs.map +1 -1
- package/fesm2022/aril-theme.mjs.map +1 -1
- package/fesm2022/aril-ui-autoComplete.mjs +7 -7
- package/fesm2022/aril-ui-autoComplete.mjs.map +1 -1
- package/fesm2022/aril-ui-badge.mjs +5 -5
- package/fesm2022/aril-ui-badge.mjs.map +1 -1
- package/fesm2022/aril-ui-business-assetPicker.mjs +23 -9
- package/fesm2022/aril-ui-business-assetPicker.mjs.map +1 -1
- package/fesm2022/aril-ui-business-detailed-overlay-panel.mjs +12 -6
- package/fesm2022/aril-ui-business-detailed-overlay-panel.mjs.map +1 -1
- package/fesm2022/aril-ui-business-enumPicker.mjs +6 -6
- package/fesm2022/aril-ui-business-enumPicker.mjs.map +1 -1
- package/fesm2022/aril-ui-business-image-viewer.mjs +30 -30
- package/fesm2022/aril-ui-business-image-viewer.mjs.map +1 -1
- package/fesm2022/aril-ui-business-multiAssetPicker.mjs +5 -5
- package/fesm2022/aril-ui-business-multiAssetPicker.mjs.map +1 -1
- package/fesm2022/aril-ui-business-multiple-ref-value.mjs +5 -5
- package/fesm2022/aril-ui-business-multiple-ref-value.mjs.map +1 -1
- package/fesm2022/aril-ui-business-notification-templates-dialog.mjs +4 -4
- package/fesm2022/aril-ui-business-notification-templates-dialog.mjs.map +1 -1
- package/fesm2022/aril-ui-business-pdf-preview-modal.mjs +28 -28
- package/fesm2022/aril-ui-business-pdf-preview-modal.mjs.map +1 -1
- package/fesm2022/aril-ui-business-ref-value.mjs +5 -5
- package/fesm2022/aril-ui-business-ref-value.mjs.map +1 -1
- package/fesm2022/aril-ui-business-rolePicker.mjs +5 -5
- package/fesm2022/aril-ui-business-rolePicker.mjs.map +1 -1
- package/fesm2022/aril-ui-business-trace-drawer.mjs +11 -11
- package/fesm2022/aril-ui-business-trace-drawer.mjs.map +1 -1
- package/fesm2022/aril-ui-business-trace-id.mjs +5 -5
- package/fesm2022/aril-ui-business-trace-id.mjs.map +1 -1
- package/fesm2022/aril-ui-business-userPicker.mjs +4 -4
- package/fesm2022/aril-ui-business-userPicker.mjs.map +1 -1
- package/fesm2022/aril-ui-business.mjs.map +1 -1
- package/fesm2022/aril-ui-button.mjs +9 -9
- package/fesm2022/aril-ui-button.mjs.map +1 -1
- package/fesm2022/aril-ui-calendar.mjs +4 -4
- package/fesm2022/aril-ui-calendar.mjs.map +1 -1
- package/fesm2022/aril-ui-charts.mjs +139 -139
- package/fesm2022/aril-ui-charts.mjs.map +1 -1
- package/fesm2022/aril-ui-checkbox.mjs +8 -8
- package/fesm2022/aril-ui-checkbox.mjs.map +1 -1
- package/fesm2022/aril-ui-chip.mjs +5 -5
- package/fesm2022/aril-ui-chip.mjs.map +1 -1
- package/fesm2022/aril-ui-collapse-reorder-list.mjs +5 -5
- package/fesm2022/aril-ui-collapse-reorder-list.mjs.map +1 -1
- package/fesm2022/aril-ui-dxEditor.mjs +5 -5
- package/fesm2022/aril-ui-dxEditor.mjs.map +1 -1
- package/fesm2022/aril-ui-dxField.mjs +5 -5
- package/fesm2022/aril-ui-dxField.mjs.map +1 -1
- package/fesm2022/aril-ui-editor.mjs +5 -5
- package/fesm2022/aril-ui-editor.mjs.map +1 -1
- package/fesm2022/aril-ui-field.mjs +5 -5
- package/fesm2022/aril-ui-field.mjs.map +1 -1
- package/fesm2022/aril-ui-fileUpload.mjs +5 -5
- package/fesm2022/aril-ui-fileUpload.mjs.map +1 -1
- package/fesm2022/aril-ui-form.mjs +12 -12
- package/fesm2022/aril-ui-form.mjs.map +1 -1
- package/fesm2022/aril-ui-img-viewer.mjs +4 -4
- package/fesm2022/aril-ui-img-viewer.mjs.map +1 -1
- package/fesm2022/aril-ui-json-diff-comparison.mjs +5 -5
- package/fesm2022/aril-ui-json-diff-comparison.mjs.map +1 -1
- package/fesm2022/aril-ui-lib.mjs +38 -38
- package/fesm2022/aril-ui-lib.mjs.map +1 -1
- package/fesm2022/aril-ui-loader.mjs +4 -4
- package/fesm2022/aril-ui-loader.mjs.map +1 -1
- package/fesm2022/aril-ui-mask.mjs +4 -4
- package/fesm2022/aril-ui-mask.mjs.map +1 -1
- package/fesm2022/aril-ui-multiSelect.mjs +4 -4
- package/fesm2022/aril-ui-multiSelect.mjs.map +1 -1
- package/fesm2022/aril-ui-number.mjs +4 -4
- package/fesm2022/aril-ui-number.mjs.map +1 -1
- package/fesm2022/aril-ui-operation-types-dialog.mjs +12 -12
- package/fesm2022/aril-ui-operation-types-dialog.mjs.map +1 -1
- package/fesm2022/aril-ui-overlayPanel.mjs +5 -5
- package/fesm2022/aril-ui-overlayPanel.mjs.map +1 -1
- package/fesm2022/aril-ui-panel.mjs +5 -5
- package/fesm2022/aril-ui-panel.mjs.map +1 -1
- package/fesm2022/aril-ui-password.mjs +4 -4
- package/fesm2022/aril-ui-password.mjs.map +1 -1
- package/fesm2022/aril-ui-pdf-viewer.mjs +4 -4
- package/fesm2022/aril-ui-pdf-viewer.mjs.map +1 -1
- package/fesm2022/aril-ui-progressbar.mjs +4 -4
- package/fesm2022/aril-ui-progressbar.mjs.map +1 -1
- package/fesm2022/aril-ui-radioButton.mjs +4 -4
- package/fesm2022/aril-ui-radioButton.mjs.map +1 -1
- package/fesm2022/aril-ui-relativeDateSelector.mjs +5 -5
- package/fesm2022/aril-ui-relativeDateSelector.mjs.map +1 -1
- package/fesm2022/aril-ui-selectBox.mjs +6 -6
- package/fesm2022/aril-ui-selectBox.mjs.map +1 -1
- package/fesm2022/aril-ui-switch.mjs +4 -4
- package/fesm2022/aril-ui-switch.mjs.map +1 -1
- package/fesm2022/aril-ui-table-expand.mjs +15 -15
- package/fesm2022/aril-ui-table-expand.mjs.map +1 -1
- package/fesm2022/aril-ui-table.mjs +141 -141
- package/fesm2022/aril-ui-table.mjs.map +1 -1
- package/fesm2022/aril-ui-tag.mjs +4 -4
- package/fesm2022/aril-ui-tag.mjs.map +1 -1
- package/fesm2022/aril-ui-tagBox.mjs +6 -6
- package/fesm2022/aril-ui-tagBox.mjs.map +1 -1
- package/fesm2022/aril-ui-text.mjs +4 -4
- package/fesm2022/aril-ui-text.mjs.map +1 -1
- package/fesm2022/aril-ui-textArea.mjs +4 -4
- package/fesm2022/aril-ui-textArea.mjs.map +1 -1
- package/fesm2022/aril-ui-toggle-button.mjs +5 -5
- package/fesm2022/aril-ui-toggle-button.mjs.map +1 -1
- package/fesm2022/aril-ui-tooltip.mjs +4 -4
- package/fesm2022/aril-ui-tooltip.mjs.map +1 -1
- package/fesm2022/aril-ui-translate-input.mjs +30 -30
- package/fesm2022/aril-ui-translate-input.mjs.map +1 -1
- package/fesm2022/aril-ui-tree.mjs +5 -5
- package/fesm2022/aril-ui-tree.mjs.map +1 -1
- package/fesm2022/aril-ui-treeSelect.mjs +5 -5
- package/fesm2022/aril-ui-treeSelect.mjs.map +1 -1
- package/fesm2022/aril-ui-treeTable.mjs +5 -5
- package/fesm2022/aril-ui-treeTable.mjs.map +1 -1
- package/fesm2022/aril-ui-value.mjs +6 -6
- package/fesm2022/aril-ui-value.mjs.map +1 -1
- package/fesm2022/aril-ui.mjs.map +1 -1
- package/fesm2022/aril-util-activity.mjs +14 -3
- package/fesm2022/aril-util-activity.mjs.map +1 -1
- package/fesm2022/aril-util-block.mjs +6 -6
- package/fesm2022/aril-util-block.mjs.map +1 -1
- package/fesm2022/aril-util-directives.mjs +10 -10
- package/fesm2022/aril-util-directives.mjs.map +1 -1
- package/fesm2022/aril-util-lib.mjs +3 -3
- package/fesm2022/aril-util-lib.mjs.map +1 -1
- package/fesm2022/aril-util-pipes.mjs +18 -18
- package/fesm2022/aril-util-pipes.mjs.map +1 -1
- package/fesm2022/aril-util-primitive-extensions.mjs.map +1 -1
- package/fesm2022/aril-util-pub-sub.mjs +3 -3
- package/fesm2022/aril-util-pub-sub.mjs.map +1 -1
- package/fesm2022/aril-util-sync-active-tab-route.mjs +4 -4
- package/fesm2022/aril-util-sync-active-tab-route.mjs.map +1 -1
- package/fesm2022/aril-util-unwrap.mjs +3 -3
- package/fesm2022/aril-util-unwrap.mjs.map +1 -1
- package/fesm2022/aril-util.mjs.map +1 -1
- package/fesm2022/aril.mjs +10 -6
- package/fesm2022/aril.mjs.map +1 -1
- package/http/index.d.ts +1 -0
- package/http/src/pathParam.d.ts +6 -0
- package/package.json +195 -195
- package/scripts/util/blockui.min.js +6 -6
- package/styles/ui/ui.common.scss +42 -42
- package/styles/util/blockui.css +56 -56
- package/theme/layout/app/breadcrumb/app.breadcrumb.component.d.ts +1 -0
- package/theme/layout/app/breadcrumb/app.breadcrumb.component.html +8 -8
- package/theme/layout/app/config/app.config.component.html +146 -146
- package/theme/layout/app/environment-banner/environment-banner.component.html +10 -10
- package/theme/layout/app/environment-banner/environment-banner.component.scss +103 -103
- package/theme/layout/app/expandableMenu/expandable-menu.component.html +137 -137
- package/theme/layout/app/favorite-pages/favorite-pages-sidebar.component.d.ts +17 -0
- package/theme/layout/app/favorite-pages/favorite-pages-sidebar.component.html +110 -110
- package/theme/layout/app/favorite-pages/favorite-pages-sidebar.component.scss +181 -181
- package/theme/layout/app/favorite-pages/favorite-pages.service.d.ts +2 -1
- package/theme/layout/app/favorite-pages/modals/add-edit-favorite-modal/add-edit-favorite-modal.component.html +27 -27
- package/theme/layout/app/general-search/general-search.component.d.ts +17 -3
- package/theme/layout/app/general-search/general-search.component.html +61 -57
- package/theme/layout/app/general-search/general-search.component.scss +95 -27
- package/theme/layout/app/history/history-sidebar.component.d.ts +17 -0
- package/theme/layout/app/history/history-sidebar.component.html +87 -87
- package/theme/layout/app/history/history-sidebar.component.scss +182 -182
- package/theme/layout/app/layout/app.layout.component.html +27 -27
- package/theme/layout/app/notifications/notifications-sidebar.component.d.ts +17 -0
- package/theme/layout/app/notifications/notifications-sidebar.component.html +102 -102
- package/theme/layout/app/notifications/notifications-sidebar.component.scss +351 -351
- package/theme/layout/app/profileSidebar/app.profilesidebar.component.html +60 -60
- package/theme/layout/app/profileSidebar/app.profilesidebar.component.scss +344 -344
- package/theme/layout/app/profileSidebar/modals/change-password-modal/change-password-modal.component.html +48 -48
- package/theme/layout/app/profileSidebar/modals/change-password-modal/change-password-modal.component.scss +27 -27
- package/theme/layout/app/profileSidebar/modals/edit-profile-modal/edit-profile-modal.component.html +71 -71
- package/theme/layout/app/site-map/site-map-sidebar.component.d.ts +17 -0
- package/theme/layout/app/site-map/site-map-sidebar.component.html +121 -121
- package/theme/layout/app/site-map/site-map-sidebar.component.scss +178 -178
- package/theme/layout/app/static-sidebar/static-sidebar.component.html +162 -162
- package/theme/layout/app/static-sidebar/static-sidebar.component.scss +420 -420
- package/theme/layout/app/topbar/app.topbar.component.d.ts +9 -0
- package/theme/layout/app/topbar/app.topbar.component.html +104 -88
- package/theme/layout/app/topbar/app.topbar.component.scss +230 -225
- package/theme/layout/index.d.ts +4 -0
- package/theme/layout/ng-package.json +6 -6
- package/theme/layout/service/app.layout.service.d.ts +1 -0
- package/theme/layout/service/interfaces/interfaces.d.ts +119 -0
- package/theme/layout/service/recent-search.service.d.ts +23 -0
- package/theme/layout/service/record-summary.service.d.ts +49 -0
- package/theme/layout/service/screen-visit.service.d.ts +47 -0
- package/theme/ng-package.json +6 -6
- package/theme/styles/layout/_animation.scss +53 -53
- package/theme/styles/layout/_breadcrumb.scss +31 -31
- package/theme/styles/layout/_config.scss +42 -42
- package/theme/styles/layout/_content.scss +61 -61
- package/theme/styles/layout/_expanded_sidebar.scss +511 -511
- package/theme/styles/layout/_fonts.scss +81 -81
- package/theme/styles/layout/_layout_dark.scss +5 -5
- package/theme/styles/layout/_layout_dim.scss +5 -5
- package/theme/styles/layout/_layout_light.scss +5 -5
- package/theme/styles/layout/_main.scss +35 -35
- package/theme/styles/layout/_profile.scss +10 -10
- package/theme/styles/layout/_responsive.scss +153 -153
- package/theme/styles/layout/_sidebar_drawer.scss +234 -234
- package/theme/styles/layout/_sidebar_horizontal.scss +163 -163
- package/theme/styles/layout/_sidebar_reveal.scss +201 -201
- package/theme/styles/layout/_sidebar_slim.scss +144 -144
- package/theme/styles/layout/_sidebar_slim_plus.scss +168 -168
- package/theme/styles/layout/_sidebar_vertical.scss +156 -156
- package/theme/styles/layout/_topbar.scss +140 -140
- package/theme/styles/layout/_typography.scss +68 -68
- package/theme/styles/layout/_utils.scss +24 -24
- package/theme/styles/layout/layout.scss +25 -25
- package/theme/styles/layout/menutheme/_colorscheme.scss +11 -11
- package/theme/styles/layout/menutheme/_menutheme.scss +3 -3
- package/theme/styles/layout/menutheme/_primarycolor.scss +16 -16
- package/theme/styles/layout/menutheme/_transparent.scss +26 -26
- package/theme/styles/layout/preloading.scss +84 -84
- package/theme/styles/theme/base/_colors.scss +17 -17
- package/theme/styles/theme/base/_common.scss +89 -89
- package/theme/styles/theme/base/_components.scss +108 -108
- package/theme/styles/theme/base/_mixins.scss +337 -337
- package/theme/styles/theme/base/components/button/_button.scss +576 -576
- package/theme/styles/theme/base/components/button/_speeddial.scss +96 -96
- package/theme/styles/theme/base/components/button/_splitbutton.scss +348 -348
- package/theme/styles/theme/base/components/data/_carousel.scss +37 -37
- package/theme/styles/theme/base/components/data/_datatable.scss +338 -338
- package/theme/styles/theme/base/components/data/_dataview.scss +46 -46
- package/theme/styles/theme/base/components/data/_filter.scss +137 -137
- package/theme/styles/theme/base/components/data/_orderlist.scss +114 -114
- package/theme/styles/theme/base/components/data/_organizationchart.scss +50 -50
- package/theme/styles/theme/base/components/data/_paginator.scss +92 -92
- package/theme/styles/theme/base/components/data/_picklist.scss +114 -114
- package/theme/styles/theme/base/components/data/_table.scss +16 -16
- package/theme/styles/theme/base/components/data/_timeline.scss +35 -35
- package/theme/styles/theme/base/components/data/_tree.scss +150 -150
- package/theme/styles/theme/base/components/data/_treetable.scss +255 -255
- package/theme/styles/theme/base/components/data/_virtualscroller.scss +28 -28
- package/theme/styles/theme/base/components/file/_fileupload.scss +64 -64
- package/theme/styles/theme/base/components/input/_autocomplete.scss +141 -141
- package/theme/styles/theme/base/components/input/_calendar.scss +267 -267
- package/theme/styles/theme/base/components/input/_cascadeselect.scss +135 -135
- package/theme/styles/theme/base/components/input/_checkbox.scss +99 -99
- package/theme/styles/theme/base/components/input/_chips.scss +67 -67
- package/theme/styles/theme/base/components/input/_colorpicker.scss +19 -19
- package/theme/styles/theme/base/components/input/_dropdown.scss +151 -151
- package/theme/styles/theme/base/components/input/_editor.scss +122 -122
- package/theme/styles/theme/base/components/input/_inputgroup.scss +75 -75
- package/theme/styles/theme/base/components/input/_inputmask.scss +16 -16
- package/theme/styles/theme/base/components/input/_inputnumber.scss +28 -28
- package/theme/styles/theme/base/components/input/_inputswitch.scss +60 -60
- package/theme/styles/theme/base/components/input/_inputtext.scss +104 -104
- package/theme/styles/theme/base/components/input/_listbox.scss +97 -97
- package/theme/styles/theme/base/components/input/_multiselect.scss +177 -177
- package/theme/styles/theme/base/components/input/_password.scss +52 -52
- package/theme/styles/theme/base/components/input/_radiobutton.scss +78 -78
- package/theme/styles/theme/base/components/input/_rating.scss +60 -60
- package/theme/styles/theme/base/components/input/_selectbutton.scss +50 -50
- package/theme/styles/theme/base/components/input/_slider.scss +75 -75
- package/theme/styles/theme/base/components/input/_togglebutton.scss +48 -48
- package/theme/styles/theme/base/components/input/_treeselect.scss +139 -139
- package/theme/styles/theme/base/components/menu/_breadcrumb.scss +43 -43
- package/theme/styles/theme/base/components/menu/_contextmenu.scss +39 -39
- package/theme/styles/theme/base/components/menu/_dock.scss +95 -95
- package/theme/styles/theme/base/components/menu/_megamenu.scss +55 -55
- package/theme/styles/theme/base/components/menu/_menu.scss +37 -37
- package/theme/styles/theme/base/components/menu/_menubar.scss +140 -140
- package/theme/styles/theme/base/components/menu/_panelmenu.scss +153 -153
- package/theme/styles/theme/base/components/menu/_slidemenu.scss +59 -59
- package/theme/styles/theme/base/components/menu/_steps.scss +56 -56
- package/theme/styles/theme/base/components/menu/_tabmenu.scss +73 -73
- package/theme/styles/theme/base/components/menu/_tieredmenu.scss +43 -43
- package/theme/styles/theme/base/components/messages/_inlinemessage.scss +69 -69
- package/theme/styles/theme/base/components/messages/_message.scss +107 -107
- package/theme/styles/theme/base/components/messages/_toast.scss +99 -99
- package/theme/styles/theme/base/components/misc/_avatar.scss +30 -30
- package/theme/styles/theme/base/components/misc/_badge.scss +48 -48
- package/theme/styles/theme/base/components/misc/_chip.scss +42 -42
- package/theme/styles/theme/base/components/misc/_inplace.scss +16 -16
- package/theme/styles/theme/base/components/misc/_progressbar.scss +17 -17
- package/theme/styles/theme/base/components/misc/_scrolltop.scss +25 -25
- package/theme/styles/theme/base/components/misc/_skeleton.scss +8 -8
- package/theme/styles/theme/base/components/misc/_tag.scss +45 -45
- package/theme/styles/theme/base/components/misc/_terminal.scss +12 -12
- package/theme/styles/theme/base/components/multimedia/_galleria.scss +155 -155
- package/theme/styles/theme/base/components/multimedia/_image.scss +49 -49
- package/theme/styles/theme/base/components/overlay/_confirmpopup.scss +70 -70
- package/theme/styles/theme/base/components/overlay/_dialog.scss +69 -69
- package/theme/styles/theme/base/components/overlay/_overlaypanel.scss +62 -62
- package/theme/styles/theme/base/components/overlay/_sidebar.scss +27 -27
- package/theme/styles/theme/base/components/overlay/_tooltip.scss +33 -33
- package/theme/styles/theme/base/components/panel/_accordion.scss +119 -119
- package/theme/styles/theme/base/components/panel/_card.scss +30 -30
- package/theme/styles/theme/base/components/panel/_divider.scss +31 -31
- package/theme/styles/theme/base/components/panel/_fieldset.scss +47 -47
- package/theme/styles/theme/base/components/panel/_panel.scss +77 -77
- package/theme/styles/theme/base/components/panel/_scrollpanel.scss +6 -6
- package/theme/styles/theme/base/components/panel/_splitter.scss +19 -19
- package/theme/styles/theme/base/components/panel/_stepper.scss +205 -205
- package/theme/styles/theme/base/components/panel/_tabview.scss +91 -91
- package/theme/styles/theme/base/components/panel/_toolbar.scss +11 -11
- package/theme/styles/theme/dark/_extensions.scss +134 -134
- package/theme/styles/theme/dark/_variables.scss +933 -933
- package/theme/styles/theme/dark/indigo/theme.scss +14 -14
- package/theme/styles/theme/light/_extensions.scss +116 -116
- package/theme/styles/theme/light/_variables.scss +940 -940
- package/theme/styles/theme/light/custom/theme.scss +16 -16
- package/theme/styles/theme/light/indigo/theme.scss +14 -14
- package/ui/autoComplete/src/auto-complete.component.d.ts +8 -8
- package/ui/badge/src/badge.component.d.ts +9 -9
- package/ui/button/src/button.component.d.ts +12 -12
- package/ui/button/src/split-button.component.d.ts +1 -1
- package/ui/calendar/src/calendar.component.d.ts +22 -22
- package/ui/charts/src/amCharts/column/column-chart.component.d.ts +4 -4
- package/ui/charts/src/amCharts/line/line-chart.component.d.ts +5 -5
- package/ui/charts/src/amCharts/pie/pie-chart.component.d.ts +4 -4
- package/ui/charts/src/highCharts/area/area-chart.component.d.ts +3 -3
- package/ui/charts/src/highCharts/bar/bar-chart.component.d.ts +7 -7
- package/ui/charts/src/highCharts/column/column-chart.component.d.ts +9 -9
- package/ui/charts/src/highCharts/gauge/solid-gauge.component.d.ts +3 -3
- package/ui/charts/src/highCharts/heatmap/heatMap-chart.component.d.ts +4 -4
- package/ui/charts/src/highCharts/line/line-chart-datetime-axis.component.d.ts +5 -5
- package/ui/charts/src/highCharts/line/line-chart-series.component.d.ts +4 -4
- package/ui/charts/src/highCharts/line/line-chart.component.d.ts +4 -4
- package/ui/charts/src/highCharts/pie/pie-chart.component.d.ts +7 -7
- package/ui/checkbox/src/check-box.component.d.ts +3 -3
- package/ui/checkbox/src/tri-state-checkbox.component.d.ts +2 -2
- package/ui/chip/src/chip.component.d.ts +7 -7
- package/ui/collapse-reorder-list/src/collapse-reorder-list.component.d.ts +4 -4
- package/ui/dxEditor/src/dx-editor.component.d.ts +5 -5
- package/ui/dxField/src/dx-field.component.d.ts +5 -5
- package/ui/editor/src/aril-editor.component.d.ts +3 -3
- package/ui/field/src/field.component.d.ts +9 -9
- package/ui/fileUpload/src/file-upload.component.d.ts +14 -14
- package/ui/form/src/form-submit-button.component.d.ts +1 -1
- package/ui/form/src/form.component.d.ts +2 -2
- package/ui/img-viewer/src/img-viewer.component.d.ts +1 -1
- package/ui/lib/src/form/form-error-message.directive.d.ts +1 -1
- package/ui/lib/src/tooltip/tooltip-on-overflow.directive.d.ts +1 -1
- package/ui/mask/src/mask.component.d.ts +6 -6
- package/ui/multiSelect/src/multi-select.component.d.ts +13 -13
- package/ui/number/src/number.component.d.ts +15 -15
- package/ui/overlayPanel/src/overlay-panel.component.d.ts +1 -1
- package/ui/panel/src/panel.component.d.ts +6 -6
- package/ui/password/src/password.component.d.ts +4 -4
- package/ui/pdf-viewer/src/pdf-viewer.component.d.ts +12 -12
- package/ui/progressbar/src/progressbar.component.d.ts +3 -3
- package/ui/radioButton/src/radio-button.component.d.ts +3 -3
- package/ui/selectBox/src/select-box.component.d.ts +10 -10
- package/ui/switch/src/switch.component.d.ts +1 -1
- package/ui/table/src/export-overlay-panel.component.d.ts +2 -2
- package/ui/table/src/table-column.component.d.ts +11 -11
- package/ui/table/src/table.component.d.ts +36 -36
- package/ui/table-expand/src/table-column.component.d.ts +6 -6
- package/ui/table-expand/src/table.component.d.ts +21 -21
- package/ui/tag/src/tag.component.d.ts +4 -6
- package/ui/tagBox/src/tag-box.component.d.ts +7 -7
- package/ui/text/src/text.component.d.ts +5 -5
- package/ui/textArea/src/text-area.component.d.ts +5 -5
- package/ui/toggle-button/src/toggle-button.component.d.ts +1 -1
- package/ui/tooltip/src/tooltip-component.d.ts +8 -8
- package/ui/translate-input/src/aril-translate-input.component.d.ts +2 -2
- package/ui/tree/src/tree.component.d.ts +8 -8
- package/ui/treeSelect/src/treeSelect.component.d.ts +12 -12
- package/ui/treeTable/src/tree-table.component.d.ts +5 -5
- package/ui/value/src/value.component.d.ts +15 -15
- package/ui-business/assetPicker/src/asset-picker.component.d.ts +12 -11
- package/ui-business/detailed-overlay-panel/src/detailed-overlay-panel.component.d.ts +4 -6
- package/ui-business/enumPicker/src/enum-picker.component.d.ts +24 -24
- package/ui-business/image-viewer/src/aril-image-viewer.component.d.ts +8 -8
- package/ui-business/multiAssetPicker/src/multi-asset-picker.component.d.ts +15 -15
- package/ui-business/multiple-ref-value/src/multiple-ref-value.component.d.ts +2 -5
- package/ui-business/ref-value/src/ref-value.component.d.ts +5 -5
- package/ui-business/rolePicker/src/role-picker.component.d.ts +7 -7
- package/ui-business/trace-drawer/src/trace-drawer.component.d.ts +8 -8
- package/ui-business/trace-id/src/trace-id.component.d.ts +6 -6
- package/ui-business/userPicker/src/user-picker.component.d.ts +3 -3
- package/util/block/src/block.d.ts +4 -4
- package/util/lib/src/types.d.ts +17 -0
- package/fesm2022/aril-app.component-BUjucZ0J.mjs.map +0 -1
- package/fesm2022/aril-boot-mfe-app.component-D1w8I2ug.mjs.map +0 -1
- package/fesm2022/aril-boot-mfe-aril-boot-mfe-JHrhKvhU.mjs.map +0 -1
- package/theme/index.ts +0 -1
- package/theme/layout/app/breadcrumb/app.breadcrumb.component.ts +0 -127
- package/theme/layout/app/config/app.config.component.ts +0 -143
- package/theme/layout/app/environment-banner/environment-banner.component.ts +0 -39
- package/theme/layout/app/expandableMenu/expandable-menu.component.ts +0 -387
- package/theme/layout/app/favorite-pages/favorite-pages-sidebar.component.ts +0 -260
- package/theme/layout/app/favorite-pages/favorite-pages.service.ts +0 -95
- package/theme/layout/app/favorite-pages/modals/add-edit-favorite-modal/add-edit-favorite-modal.component.ts +0 -165
- package/theme/layout/app/general-search/general-search.component.ts +0 -93
- package/theme/layout/app/general-search/helpers.spec.ts +0 -527
- package/theme/layout/app/general-search/helpers.ts +0 -106
- package/theme/layout/app/general-search/models.ts +0 -142
- package/theme/layout/app/history/history-sidebar.component.ts +0 -143
- package/theme/layout/app/history/history.service.ts +0 -158
- package/theme/layout/app/layout/app.layout.component.ts +0 -171
- package/theme/layout/app/layout/mfe.layout.component.ts +0 -60
- package/theme/layout/app/notifications/notifications-sidebar.component.ts +0 -347
- package/theme/layout/app/profileSidebar/app.profilesidebar.component.ts +0 -203
- package/theme/layout/app/profileSidebar/modals/change-password-modal/change-password-modal.component.ts +0 -178
- package/theme/layout/app/profileSidebar/modals/edit-profile-modal/edit-profile-modal.component.ts +0 -251
- package/theme/layout/app/profileSidebar/profile.service.ts +0 -116
- package/theme/layout/app/site-map/site-map-sidebar.component.ts +0 -195
- package/theme/layout/app/static-sidebar/static-sidebar.component.ts +0 -357
- package/theme/layout/app/topbar/app.topbar.component.ts +0 -194
- package/theme/layout/index.ts +0 -9
- package/theme/layout/service/app.layout.service.ts +0 -308
- package/theme/layout/service/app.menu.service.ts +0 -53
- package/theme/layout/service/breadcrumb.service.ts +0 -14
- package/theme/layout/service/interfaces/enum.ts +0 -19
- package/theme/layout/service/interfaces/interfaces.ts +0 -164
- package/theme/layout/service/menu-action-confirm.ts +0 -112
- package/theme/layout/service/menuchangeevent.ts +0 -4
- package/theme/layout/service/notifications.service.ts +0 -31
- package/theme/layout/service/search.service.ts +0 -22
- package/theme/layout/service/selection-group.service.ts +0 -144
|
@@ -1,30 +1,39 @@
|
|
|
1
1
|
import * as i3$1 from '@angular/common';
|
|
2
2
|
import { CommonModule, UpperCasePipe, NgClass, NgTemplateOutlet } from '@angular/common';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import {
|
|
5
|
-
import * as i1$
|
|
6
|
-
import { Router,
|
|
4
|
+
import { signal, effect, Injectable, inject, Component, computed, input, HostListener, HostBinding, ViewChild, untracked } from '@angular/core';
|
|
5
|
+
import * as i1$3 from '@angular/router';
|
|
6
|
+
import { Router, NavigationEnd, RouterModule, RouterLink, RouterOutlet, NavigationCancel, NavigationError, NavigationSkipped } from '@angular/router';
|
|
7
7
|
import * as i8 from 'primeng/confirmdialog';
|
|
8
8
|
import { ConfirmDialogModule } from 'primeng/confirmdialog';
|
|
9
9
|
import * as i5$1 from 'primeng/confirmpopup';
|
|
10
10
|
import { ConfirmPopupModule } from 'primeng/confirmpopup';
|
|
11
|
-
import * as i6$
|
|
11
|
+
import * as i6$2 from 'primeng/dialog';
|
|
12
12
|
import { DialogModule } from 'primeng/dialog';
|
|
13
|
-
import * as i7$
|
|
13
|
+
import * as i7$3 from 'primeng/messages';
|
|
14
14
|
import { MessagesModule } from 'primeng/messages';
|
|
15
|
-
import * as i8$
|
|
15
|
+
import * as i8$3 from 'primeng/toast';
|
|
16
16
|
import { ToastModule } from 'primeng/toast';
|
|
17
|
-
import { Observable,
|
|
17
|
+
import { take, Observable, timeout, catchError, of, forkJoin, map, switchMap, tap, shareReplay, filter, Subject, BehaviorSubject, takeUntil, startWith, timer, mergeMap } from 'rxjs';
|
|
18
|
+
import { __decorate } from 'tslib';
|
|
19
|
+
import * as i1 from '@angular/common/http';
|
|
20
|
+
import { HttpStatusCode } from '@angular/common/http';
|
|
21
|
+
import { bridge } from 'aril/boot/bridge';
|
|
22
|
+
import { Apps } from 'aril/boot/config/apps';
|
|
23
|
+
import { RestClient, ServiceCall, HTTPMethods, ProxyTypes } from 'aril/http';
|
|
24
|
+
import * as i2$1 from 'aril/util/pub-sub';
|
|
25
|
+
import { PubSubService } from 'aril/util/pub-sub';
|
|
18
26
|
import * as i5 from '@ngneat/transloco';
|
|
19
|
-
import {
|
|
27
|
+
import { TranslocoService, TranslocoModule } from '@ngneat/transloco';
|
|
28
|
+
import 'aril/util/primitive-extensions';
|
|
20
29
|
import { API_CONFIGS } from 'aril/boot/config/api';
|
|
21
|
-
import * as i1 from 'keycloak-angular';
|
|
22
|
-
import { toSignal } from '@angular/core/rxjs-interop';
|
|
30
|
+
import * as i1$1 from 'keycloak-angular';
|
|
31
|
+
import { toSignal, takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
23
32
|
import * as i2 from 'primeng/dynamicdialog';
|
|
24
33
|
import { DialogService, DynamicDialogModule } from 'primeng/dynamicdialog';
|
|
25
34
|
import * as i6$1 from 'primeng/sidebar';
|
|
26
35
|
import { SidebarModule } from 'primeng/sidebar';
|
|
27
|
-
import * as i1$
|
|
36
|
+
import * as i1$2 from '@angular/forms';
|
|
28
37
|
import { FormControl, ReactiveFormsModule, FormsModule, Validators } from '@angular/forms';
|
|
29
38
|
import * as i7 from 'primeng/password';
|
|
30
39
|
import { PasswordModule } from 'primeng/password';
|
|
@@ -34,9 +43,6 @@ import { ButtonComponent } from 'aril/ui/button';
|
|
|
34
43
|
import { FieldComponent } from 'aril/ui/field';
|
|
35
44
|
import * as i6 from 'aril/ui/form';
|
|
36
45
|
import { ARiLFormModule } from 'aril/ui/form';
|
|
37
|
-
import { __decorate } from 'tslib';
|
|
38
|
-
import { Apps } from 'aril/boot/config/apps';
|
|
39
|
-
import { RestClient, ServiceCall, HTTPMethods, ProxyTypes } from 'aril/http';
|
|
40
46
|
import * as i3 from 'primeng/api';
|
|
41
47
|
import { ConfirmationService, PrimeIcons } from 'primeng/api';
|
|
42
48
|
import { TreeSelectModule } from 'primeng/treeselect';
|
|
@@ -47,7 +53,7 @@ import { SelectBoxComponent } from 'aril/ui/selectBox';
|
|
|
47
53
|
import { TextComponent } from 'aril/ui/text';
|
|
48
54
|
import { TextAreaComponent } from 'aril/ui/textArea';
|
|
49
55
|
import { TreeSelectComponent } from 'aril/ui/treeSelect';
|
|
50
|
-
import * as i8$
|
|
56
|
+
import * as i8$2 from 'primeng/badge';
|
|
51
57
|
import { BadgeModule } from 'primeng/badge';
|
|
52
58
|
import * as i11 from 'primeng/inputtext';
|
|
53
59
|
import { InputTextModule } from 'primeng/inputtext';
|
|
@@ -56,10 +62,7 @@ import { ScrollPanelModule } from 'primeng/scrollpanel';
|
|
|
56
62
|
import * as i10 from '@fortawesome/angular-fontawesome';
|
|
57
63
|
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
58
64
|
import { solidIcons, regularIcons } from 'aril/util/lib';
|
|
59
|
-
import
|
|
60
|
-
import * as i2$1 from 'aril/util/pub-sub';
|
|
61
|
-
import { PubSubService } from 'aril/util/pub-sub';
|
|
62
|
-
import * as i1$3 from 'aril/util/pipes';
|
|
65
|
+
import * as i1$4 from 'aril/util/pipes';
|
|
63
66
|
import { TranslateJsonPipe, SafePipe } from 'aril/util/pipes';
|
|
64
67
|
import * as i9$1 from 'primeng/paginator';
|
|
65
68
|
import { PaginatorModule } from 'primeng/paginator';
|
|
@@ -67,19 +70,763 @@ import * as i4 from 'primeng/button';
|
|
|
67
70
|
import { ButtonModule } from 'primeng/button';
|
|
68
71
|
import * as i7$2 from 'primeng/divider';
|
|
69
72
|
import { DividerModule } from 'primeng/divider';
|
|
70
|
-
import * as
|
|
73
|
+
import * as i10$1 from 'primeng/dropdown';
|
|
71
74
|
import { DropdownModule } from 'primeng/dropdown';
|
|
72
75
|
import { MenubarModule } from 'primeng/menubar';
|
|
73
|
-
import * as
|
|
74
|
-
import { AutoCompleteModule } from 'primeng/autocomplete';
|
|
75
|
-
import { map, filter, switchMap as switchMap$1, catchError } from 'rxjs/operators';
|
|
76
|
-
import * as
|
|
77
|
-
import * as i10$1 from 'primeng/menu';
|
|
76
|
+
import * as i8$1 from 'primeng/autocomplete';
|
|
77
|
+
import { AutoCompleteModule, AutoComplete } from 'primeng/autocomplete';
|
|
78
|
+
import { map as map$1, filter as filter$1, switchMap as switchMap$1, catchError as catchError$1 } from 'rxjs/operators';
|
|
79
|
+
import * as i10$2 from 'primeng/menu';
|
|
78
80
|
import { MenuModule } from 'primeng/menu';
|
|
79
81
|
import { SwitchComponent } from 'aril/ui/switch';
|
|
80
82
|
import * as i4$1 from 'primeng/breadcrumb';
|
|
81
83
|
import { BreadcrumbModule } from 'primeng/breadcrumb';
|
|
82
84
|
|
|
85
|
+
const STORAGE_KEY = 'selection-groups';
|
|
86
|
+
class SelectionGroupService {
|
|
87
|
+
constructor(http) {
|
|
88
|
+
this.http = http;
|
|
89
|
+
this.selectionGroups = signal({});
|
|
90
|
+
this.loading = new Map();
|
|
91
|
+
this.loaded = new Map();
|
|
92
|
+
this.loadStatesFromLocalStorage();
|
|
93
|
+
this.revalidateCachedGroups();
|
|
94
|
+
effect(() => {
|
|
95
|
+
try {
|
|
96
|
+
const encodedData = btoa(encodeURI(JSON.stringify(this.selectionGroups())));
|
|
97
|
+
localStorage.setItem(STORAGE_KEY, encodedData);
|
|
98
|
+
}
|
|
99
|
+
catch (e) {
|
|
100
|
+
// Kota dolduysa ya da depolama kapalıysa yalnızca önbellek kaybolur; gruplar sunucudan çekilmeye devam eder.
|
|
101
|
+
console.warn('Selection groups could not be cached', e);
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
async loadStatesFromLocalStorage() {
|
|
106
|
+
const selectionGroups = localStorage.getItem(STORAGE_KEY);
|
|
107
|
+
if (selectionGroups) {
|
|
108
|
+
try {
|
|
109
|
+
const decodedData = decodeURI(atob(selectionGroups));
|
|
110
|
+
this.selectionGroups.set(JSON.parse(decodedData));
|
|
111
|
+
}
|
|
112
|
+
catch (e) {
|
|
113
|
+
console.error(e);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Önbellek kendi başına bayatlar: bir grubun etiketi sunucuda değiştiğinde localStorage'daki
|
|
119
|
+
* kopya güncellenmez ve kullanıcı eski etiketi süresiz görür. Bu yüzden açılışta grup sürümleri
|
|
120
|
+
* okunur ve yalnız değişenler düşürülür; düşen grubu bileşenlerin mevcut "grup yoksa fetchEnum"
|
|
121
|
+
* yolu yeniden çeker.
|
|
122
|
+
*
|
|
123
|
+
* Sürüm listesi alınamazsa önbelleğe DOKUNULMAZ: davranış bu durumda bugünküne eşitlenir,
|
|
124
|
+
* yani tazelik kaybedilir ama hiçbir etiket kaybolmaz.
|
|
125
|
+
*/
|
|
126
|
+
revalidateCachedGroups() {
|
|
127
|
+
if (!Object.keys(this.selectionGroups()).length)
|
|
128
|
+
return;
|
|
129
|
+
this.http
|
|
130
|
+
.get(this.hostApi() + '/selection-group/versions')
|
|
131
|
+
.pipe(take(1))
|
|
132
|
+
.subscribe({
|
|
133
|
+
next: (versions) => {
|
|
134
|
+
// Gövdesiz/biçimsiz yanıt "sürüm bilinmiyor" demektir; hata yolundaki gibi önbellek korunur.
|
|
135
|
+
if (!Array.isArray(versions))
|
|
136
|
+
return;
|
|
137
|
+
this.dropStaleGroups(versions);
|
|
138
|
+
},
|
|
139
|
+
error: () => {
|
|
140
|
+
console.debug('Selection group versions unavailable; cached groups are kept as is.');
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
dropStaleGroups(versions) {
|
|
145
|
+
const serverVersions = new Map(versions.map((version) => [version.groupName, version.version]));
|
|
146
|
+
this.selectionGroups.update((groups) => {
|
|
147
|
+
const next = { ...groups };
|
|
148
|
+
let dropped = false;
|
|
149
|
+
for (const key of Object.keys(next)) {
|
|
150
|
+
const group = next[key];
|
|
151
|
+
if (!group)
|
|
152
|
+
continue;
|
|
153
|
+
// Yalnız localStorage'dan gelen girdiler doğrulanır. Bu oturumda istenmiş bir grup zaten
|
|
154
|
+
// tazedir ve düşürülmemelidir: tüketiciler kendi "istedim" kaydını tuttuğu için (bkz.
|
|
155
|
+
// TableComponent.requestedEnumKeys) düşen grubu yeniden istemezler ve seçenekleri
|
|
156
|
+
// kalıcı olarak boş kalır. `has`, süren istekleri de kapsar: fetchEnum başlarken false,
|
|
157
|
+
// biterken true yazar.
|
|
158
|
+
if (this.loaded.has(key))
|
|
159
|
+
continue;
|
|
160
|
+
// Anahtar `groupName~parentSelectionKey` biçimindedir: aynı grubun her parent varyantı
|
|
161
|
+
// ayrı bir girdidir ve grup değiştiğinde hepsi birlikte düşmelidir.
|
|
162
|
+
const serverVersion = serverVersions.get(key.split('~')[0]);
|
|
163
|
+
// Sunucu yalnız Fixed grupların sürümünü döndürür. Sürümü gelmeyen grup ya Dynamic'tir
|
|
164
|
+
// (içeriği sorgudan üretilir, doğrulanamaz) ya da silinmiştir; ikisinde de tutulmaz.
|
|
165
|
+
if (serverVersion !== undefined && serverVersion === group.version)
|
|
166
|
+
continue;
|
|
167
|
+
delete next[key];
|
|
168
|
+
dropped = true;
|
|
169
|
+
}
|
|
170
|
+
return dropped ? next : groups;
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
fetchEnum(groupName, parentSelectionKey = 'ALL') {
|
|
174
|
+
const key = groupName + '~' + parentSelectionKey;
|
|
175
|
+
if (this.loaded.get(key) || this.loading.get(key))
|
|
176
|
+
return;
|
|
177
|
+
const payload = {
|
|
178
|
+
groupName,
|
|
179
|
+
parentSelectionKey
|
|
180
|
+
};
|
|
181
|
+
this.loading.set(key, true);
|
|
182
|
+
this.loaded.set(key, false);
|
|
183
|
+
this.http
|
|
184
|
+
.post(this.hostApi() + '/selection-group/load', payload)
|
|
185
|
+
.pipe(take(1))
|
|
186
|
+
.subscribe((selectionGroup) => {
|
|
187
|
+
this.loading.set(key, false);
|
|
188
|
+
this.loaded.set(key, true);
|
|
189
|
+
this.selectionGroups.update((groups) => ({
|
|
190
|
+
...groups,
|
|
191
|
+
[key]: selectionGroup
|
|
192
|
+
}));
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
hostApi() {
|
|
196
|
+
return API_CONFIGS.api.replace(/\/[^\/]+\/v1$/, `/host/v1`);
|
|
197
|
+
}
|
|
198
|
+
isLoading(groupName) {
|
|
199
|
+
return this.loading.get(groupName) ?? false;
|
|
200
|
+
}
|
|
201
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SelectionGroupService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
202
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SelectionGroupService, providedIn: 'root' }); }
|
|
203
|
+
}
|
|
204
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SelectionGroupService, decorators: [{
|
|
205
|
+
type: Injectable,
|
|
206
|
+
args: [{
|
|
207
|
+
providedIn: 'root'
|
|
208
|
+
}]
|
|
209
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
210
|
+
|
|
211
|
+
// Detail pages of the record types; the segment after the prefix is the id of the record
|
|
212
|
+
const RECORD_ROUTES = [
|
|
213
|
+
{ prefix: '/crm/installation-management/detail/', type: 'ServicePoint' },
|
|
214
|
+
{ prefix: '/crm/account-management/detail/', type: 'Account' },
|
|
215
|
+
{ prefix: '/crm/partner-management/detail/', type: 'BusinessPartner' },
|
|
216
|
+
{ prefix: '/billing/invoice-search/detail/', type: 'Invoice' },
|
|
217
|
+
{ prefix: '/wdm/meters/detail/', type: 'Meter' },
|
|
218
|
+
{ prefix: '/wdm/work-orders/detail/', type: 'WorkOrder' }
|
|
219
|
+
];
|
|
220
|
+
const RECORD_TYPE_LABEL_KEYS = {
|
|
221
|
+
ServicePoint: 'home.recordTypeServicePoint',
|
|
222
|
+
Account: 'home.recordTypeAccount',
|
|
223
|
+
BusinessPartner: 'home.recordTypeBusinessPartner',
|
|
224
|
+
Invoice: 'home.recordTypeInvoice',
|
|
225
|
+
Meter: 'home.recordTypeMeter',
|
|
226
|
+
WorkOrder: 'home.recordTypeWorkOrder'
|
|
227
|
+
};
|
|
228
|
+
const RECORD_TYPE_ICONS = {
|
|
229
|
+
ServicePoint: 'pi pi-bolt',
|
|
230
|
+
Account: 'pi pi-wallet',
|
|
231
|
+
BusinessPartner: 'pi pi-user',
|
|
232
|
+
Invoice: 'pi pi-file',
|
|
233
|
+
Meter: 'pi pi-compass',
|
|
234
|
+
WorkOrder: 'pi pi-wrench'
|
|
235
|
+
};
|
|
236
|
+
// The record is described in the background: the user did not start these calls, so no error toast is shown
|
|
237
|
+
const SILENT$2 = {
|
|
238
|
+
ignoredStatusCodes: [
|
|
239
|
+
HttpStatusCode.BadRequest,
|
|
240
|
+
HttpStatusCode.Forbidden,
|
|
241
|
+
HttpStatusCode.NotFound,
|
|
242
|
+
HttpStatusCode.InternalServerError,
|
|
243
|
+
HttpStatusCode.BadGateway,
|
|
244
|
+
HttpStatusCode.ServiceUnavailable,
|
|
245
|
+
HttpStatusCode.GatewayTimeout
|
|
246
|
+
]
|
|
247
|
+
};
|
|
248
|
+
const RESOLVE_TIMEOUT_MS = 15000;
|
|
249
|
+
// Raised inside the pipeline when the record itself is deleted, so a follower sees it as closed
|
|
250
|
+
const RECORD_GONE = new Error('Record is gone');
|
|
251
|
+
const METER_STATUS_TAGS = {
|
|
252
|
+
Mounted: 'current',
|
|
253
|
+
Broken: 'warning',
|
|
254
|
+
Demounted: 'closed',
|
|
255
|
+
Waste: 'closed',
|
|
256
|
+
Disassembled: 'closed',
|
|
257
|
+
Ruined: 'closed'
|
|
258
|
+
};
|
|
259
|
+
const WORK_ORDER_STATUS_TAGS = {
|
|
260
|
+
ERROR: 'stuck',
|
|
261
|
+
FAIL: 'stuck',
|
|
262
|
+
ASSIGNED: 'progress',
|
|
263
|
+
SUCCESS: 'current',
|
|
264
|
+
CANCEL: 'closed'
|
|
265
|
+
};
|
|
266
|
+
/**
|
|
267
|
+
* Describes a record the way the home page shows it: number, owner, a one line summary and the current status.
|
|
268
|
+
* The record is read with the calls its own detail page uses, so authorization and masking stay the same.
|
|
269
|
+
*/
|
|
270
|
+
class RecordSummaryService extends RestClient {
|
|
271
|
+
constructor() {
|
|
272
|
+
super(...arguments);
|
|
273
|
+
this.states = {};
|
|
274
|
+
this.translation = inject(TranslocoService);
|
|
275
|
+
this.selectionGroupService = inject(SelectionGroupService);
|
|
276
|
+
// Selection groups read by this service, so the same group is requested once per session
|
|
277
|
+
this.selectionGroups = new Map();
|
|
278
|
+
}
|
|
279
|
+
getAsset(id) {
|
|
280
|
+
return new Observable();
|
|
281
|
+
}
|
|
282
|
+
queryAssets(post) {
|
|
283
|
+
return new Observable();
|
|
284
|
+
}
|
|
285
|
+
getInvoice(id) {
|
|
286
|
+
return new Observable();
|
|
287
|
+
}
|
|
288
|
+
getWorkOrder(id) {
|
|
289
|
+
return new Observable();
|
|
290
|
+
}
|
|
291
|
+
searchUnpaidSummary(post) {
|
|
292
|
+
return new Observable();
|
|
293
|
+
}
|
|
294
|
+
loadSelectionGroup(post) {
|
|
295
|
+
return new Observable();
|
|
296
|
+
}
|
|
297
|
+
// The record a url shows, if it is the detail page of a known record type
|
|
298
|
+
match(url) {
|
|
299
|
+
const path = url.split(/[?#]/)[0];
|
|
300
|
+
const route = RECORD_ROUTES.find((item) => path.startsWith(item.prefix));
|
|
301
|
+
const id = route ? path.slice(route.prefix.length).split('/')[0] : '';
|
|
302
|
+
return route && id ? { type: route.type, id } : null;
|
|
303
|
+
}
|
|
304
|
+
// The status of an account needs an extra call, so it is read only where the status is shown
|
|
305
|
+
resolve(route, withStatus = false) {
|
|
306
|
+
return this.describe(route, withStatus).pipe(timeout(RESOLVE_TIMEOUT_MS), catchError((error) => of(error === RECORD_GONE ? this.goneRecord(route) : null)));
|
|
307
|
+
}
|
|
308
|
+
// A deleted record keeps its place among the followed ones with the closed status
|
|
309
|
+
goneRecord(route) {
|
|
310
|
+
return { ...route, number: '', name: null, summary: null, status: this.status('closed', null) };
|
|
311
|
+
}
|
|
312
|
+
describe(route, withStatus) {
|
|
313
|
+
switch (route.type) {
|
|
314
|
+
case 'ServicePoint':
|
|
315
|
+
return this.describeServicePoint(route);
|
|
316
|
+
case 'Account':
|
|
317
|
+
return this.describeAccount(route, withStatus);
|
|
318
|
+
case 'BusinessPartner':
|
|
319
|
+
return this.describeBusinessPartner(route);
|
|
320
|
+
case 'Invoice':
|
|
321
|
+
return this.describeInvoice(route);
|
|
322
|
+
case 'Meter':
|
|
323
|
+
return this.describeMeter(route);
|
|
324
|
+
case 'WorkOrder':
|
|
325
|
+
return this.describeWorkOrder(route);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
describeServicePoint(route) {
|
|
329
|
+
return forkJoin([this.attributesOf(route.id, true), this.activeContractOf(route.id)]).pipe(map(([attributes, contract]) => {
|
|
330
|
+
const number = this.text(attributes, 'AssetNumber');
|
|
331
|
+
if (!number) {
|
|
332
|
+
return null;
|
|
333
|
+
}
|
|
334
|
+
const energy = this.find(attributes, 'EnergyStatus');
|
|
335
|
+
const isActive = this.find(attributes, 'ServicePointStatus')?.value === 'Active';
|
|
336
|
+
const group = this.text(contract, 'SubscriberGroup', 'Contract') ?? this.text(attributes, 'ServicePointType');
|
|
337
|
+
return {
|
|
338
|
+
...route,
|
|
339
|
+
number,
|
|
340
|
+
name: this.partnerName(contract),
|
|
341
|
+
summary: this.join(', ', group, this.text(attributes, 'ServicePointCombinedAddress')),
|
|
342
|
+
status: !isActive ? this.status('closed', this.text(attributes, 'ServicePointStatus'))
|
|
343
|
+
: energy?.value === 'On' ? this.status('current', null, 'home.followEnergyOn')
|
|
344
|
+
: this.status('warning', null, 'home.followEnergyOff')
|
|
345
|
+
};
|
|
346
|
+
}));
|
|
347
|
+
}
|
|
348
|
+
describeAccount(route, withStatus) {
|
|
349
|
+
return this.attributesOf(route.id, true).pipe(switchMap((attributes) => {
|
|
350
|
+
const number = this.text(attributes, 'AssetNumber');
|
|
351
|
+
if (!number) {
|
|
352
|
+
return of(null);
|
|
353
|
+
}
|
|
354
|
+
const partnerId = this.find(attributes, 'BusinessPartnerId')?.value;
|
|
355
|
+
const partner$ = partnerId ? this.attributesOf(String(partnerId)) : of([]);
|
|
356
|
+
const unpaid$ = withStatus ?
|
|
357
|
+
this.searchUnpaidSummary({ accountIds: [Number(route.id)] }).pipe(map((result) => result?.response?.totalUnpaidDebtSummaryDetail?.debtCount ?? null))
|
|
358
|
+
: of(null);
|
|
359
|
+
return forkJoin([partner$, unpaid$]).pipe(map(([partner, unpaidCount]) => ({
|
|
360
|
+
...route,
|
|
361
|
+
number,
|
|
362
|
+
name: this.partnerName(partner),
|
|
363
|
+
summary: this.join(' · ', this.text(attributes, 'AccountSubscriberGroup'), this.text(attributes, 'AccountType')),
|
|
364
|
+
status: unpaidCount === null ? null
|
|
365
|
+
: unpaidCount > 0 ? this.status('waiting', null, 'home.followUnpaidDebts', { count: unpaidCount })
|
|
366
|
+
: this.status('current', null, 'home.followNoDebt')
|
|
367
|
+
})));
|
|
368
|
+
}));
|
|
369
|
+
}
|
|
370
|
+
describeBusinessPartner(route) {
|
|
371
|
+
return this.attributesOf(route.id, true).pipe(map((attributes) => {
|
|
372
|
+
const number = this.text(attributes, 'AssetNumber');
|
|
373
|
+
if (!number) {
|
|
374
|
+
return null;
|
|
375
|
+
}
|
|
376
|
+
const place = this.join(', ', this.text(attributes, 'PrimaryAddressDistrictId'), this.text(attributes, 'PrimaryAddressProvinceId'));
|
|
377
|
+
return {
|
|
378
|
+
...route,
|
|
379
|
+
number,
|
|
380
|
+
name: this.partnerName(attributes),
|
|
381
|
+
summary: this.join(' · ', this.text(attributes, 'IdentityType'), place),
|
|
382
|
+
status: null
|
|
383
|
+
};
|
|
384
|
+
}));
|
|
385
|
+
}
|
|
386
|
+
describeInvoice(route) {
|
|
387
|
+
return this.getInvoice(route.id).pipe(map((result) => {
|
|
388
|
+
if (this.isNotFound(result)) {
|
|
389
|
+
throw RECORD_GONE;
|
|
390
|
+
}
|
|
391
|
+
const invoice = result?.response;
|
|
392
|
+
if (!invoice) {
|
|
393
|
+
return null;
|
|
394
|
+
}
|
|
395
|
+
const lang = this.translation.getActiveLang();
|
|
396
|
+
const date = invoice.invoiceDate?.longToDate();
|
|
397
|
+
const period = date ? new Intl.DateTimeFormat(lang, { month: 'long', year: 'numeric' }).format(date) : null;
|
|
398
|
+
const amount = invoice.finalAmount === null || invoice.finalAmount === undefined ?
|
|
399
|
+
null
|
|
400
|
+
: this.translation.translate('home.recordAmount', {
|
|
401
|
+
amount: new Intl.NumberFormat(lang, { minimumFractionDigits: 2, maximumFractionDigits: 2 }).format(invoice.finalAmount)
|
|
402
|
+
});
|
|
403
|
+
const number = invoice.invoiceFinancialNumber ?
|
|
404
|
+
`${invoice.invoiceFinancialSerial ?? ''}${invoice.invoiceFinancialNumber}`
|
|
405
|
+
: route.id;
|
|
406
|
+
return {
|
|
407
|
+
...route,
|
|
408
|
+
number,
|
|
409
|
+
name: invoice.nameSurnameOrTitle ?? null,
|
|
410
|
+
summary: this.join(' · ', period, amount),
|
|
411
|
+
status: this.invoiceStatus(invoice)
|
|
412
|
+
};
|
|
413
|
+
}));
|
|
414
|
+
}
|
|
415
|
+
describeMeter(route) {
|
|
416
|
+
return this.attributesOf(route.id, true).pipe(map((attributes) => {
|
|
417
|
+
const number = this.text(attributes, 'AssetNumber');
|
|
418
|
+
if (!number) {
|
|
419
|
+
return null;
|
|
420
|
+
}
|
|
421
|
+
const materialStatus = this.find(attributes, 'MaterialStatus');
|
|
422
|
+
const statusText = this.text(attributes, 'MaterialStatus');
|
|
423
|
+
return {
|
|
424
|
+
...route,
|
|
425
|
+
number,
|
|
426
|
+
name: this.join(' ', this.text(attributes, 'Brand'), this.text(attributes, 'ModelCode')),
|
|
427
|
+
summary: this.join(' · ', this.servicePointReference(this.text(attributes, 'MaterialServicePointId')), statusText),
|
|
428
|
+
status: statusText ? this.status(METER_STATUS_TAGS[String(materialStatus?.value)] ?? 'waiting', statusText) : null
|
|
429
|
+
};
|
|
430
|
+
}));
|
|
431
|
+
}
|
|
432
|
+
describeWorkOrder(route) {
|
|
433
|
+
return this.getWorkOrder(route.id).pipe(switchMap((result) => {
|
|
434
|
+
if (this.isNotFound(result)) {
|
|
435
|
+
throw RECORD_GONE;
|
|
436
|
+
}
|
|
437
|
+
const workOrder = result?.response;
|
|
438
|
+
if (!workOrder) {
|
|
439
|
+
return of(null);
|
|
440
|
+
}
|
|
441
|
+
return forkJoin([
|
|
442
|
+
this.enumText('WorkOrderType', workOrder.orderType),
|
|
443
|
+
this.enumText('WorkOrderStatus', workOrder.orderStatus)
|
|
444
|
+
]).pipe(map(([typeText, statusText]) => ({
|
|
445
|
+
...route,
|
|
446
|
+
number: String(workOrder.id ?? route.id),
|
|
447
|
+
name: typeText,
|
|
448
|
+
summary: this.join(' · ', this.servicePointReference(workOrder.servicePoint?.number), statusText),
|
|
449
|
+
status: statusText ?
|
|
450
|
+
this.status(WORK_ORDER_STATUS_TAGS[String(workOrder.orderStatus)] ?? 'waiting', statusText)
|
|
451
|
+
: null
|
|
452
|
+
})));
|
|
453
|
+
}));
|
|
454
|
+
}
|
|
455
|
+
invoiceStatus(invoice) {
|
|
456
|
+
if (invoice.status !== 'ACTIVE') {
|
|
457
|
+
return this.status('closed', null, 'home.followInvoiceCancelled');
|
|
458
|
+
}
|
|
459
|
+
if (invoice.toBeCancelled) {
|
|
460
|
+
return this.status('waiting', null, 'home.followCancelRequested');
|
|
461
|
+
}
|
|
462
|
+
if (invoice.paymentStatus === 'PAID') {
|
|
463
|
+
return this.status('current', null, 'home.followPaid');
|
|
464
|
+
}
|
|
465
|
+
const dueDate = invoice.dueDate?.longToDate();
|
|
466
|
+
if (dueDate && dueDate.getTime() < Date.now()) {
|
|
467
|
+
return this.status('warning', null, 'home.followOverdue');
|
|
468
|
+
}
|
|
469
|
+
return this.status('waiting', null, invoice.paymentStatus === 'PARTIAL_PAID' ? 'home.followPartiallyPaid' : 'home.followAwaitingPayment');
|
|
470
|
+
}
|
|
471
|
+
attributesOf(id, isRecord = false) {
|
|
472
|
+
return this.getAsset(id).pipe(map((result) => {
|
|
473
|
+
const asset = result?.response?.asset;
|
|
474
|
+
// A record that is deleted or no longer returned to the user is gone; a failed call is not
|
|
475
|
+
if (isRecord && (this.isNotFound(result) || (!result?.error && (!asset || asset.deleted)))) {
|
|
476
|
+
throw RECORD_GONE;
|
|
477
|
+
}
|
|
478
|
+
return asset?.attributes ?? [];
|
|
479
|
+
}));
|
|
480
|
+
}
|
|
481
|
+
isNotFound(result) {
|
|
482
|
+
return result?.error?.status === HttpStatusCode.NotFound;
|
|
483
|
+
}
|
|
484
|
+
// Latest contract of the service point with its subscriber group and the owner of its account
|
|
485
|
+
activeContractOf(servicePointId) {
|
|
486
|
+
const contract = { alias: 'Contract', assetDefinitionCode: 'Contract' };
|
|
487
|
+
const account = { alias: 'Account', assetDefinitionCode: 'Account' };
|
|
488
|
+
return this.queryAssets({
|
|
489
|
+
asset: contract,
|
|
490
|
+
pager: { pageSize: 1, pageNumber: 1 },
|
|
491
|
+
attributes: [
|
|
492
|
+
{ attribute: { alias: 'Contract', attributeCode: 'SubscriberGroup' } },
|
|
493
|
+
{ attribute: { alias: 'Contract', attributeCode: 'ContractAccountId' } },
|
|
494
|
+
{ attribute: { alias: 'Account', attributeCode: 'BusinessPartnerId' } },
|
|
495
|
+
{ attribute: { alias: 'HumanBusinessPartner', attributeCode: 'Name' } },
|
|
496
|
+
{ attribute: { alias: 'HumanBusinessPartner', attributeCode: 'Surname' } },
|
|
497
|
+
{ attribute: { alias: 'LegalEntityBusinessPartner', attributeCode: 'Title' } }
|
|
498
|
+
],
|
|
499
|
+
predicate: {
|
|
500
|
+
predicates: [
|
|
501
|
+
{
|
|
502
|
+
filter: {
|
|
503
|
+
attribute: { alias: 'Contract', attributeCode: 'ServicePointId' },
|
|
504
|
+
operand: 'Eq',
|
|
505
|
+
value: servicePointId
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
]
|
|
509
|
+
},
|
|
510
|
+
orderBys: [{ attribute: { alias: 'Contract', attributeCode: 'ContractBeginDate' }, orderByType: 'Desc' }],
|
|
511
|
+
joinBys: [
|
|
512
|
+
{ source: contract, attribute: { attributeCode: 'ContractAccountId' }, target: account },
|
|
513
|
+
{
|
|
514
|
+
source: account,
|
|
515
|
+
attribute: { attributeCode: 'BusinessPartnerId' },
|
|
516
|
+
target: { alias: 'HumanBusinessPartner', assetDefinitionCode: 'HumanBusinessPartner' }
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
source: account,
|
|
520
|
+
attribute: { attributeCode: 'BusinessPartnerId' },
|
|
521
|
+
target: { alias: 'LegalEntityBusinessPartner', assetDefinitionCode: 'LegalEntityBusinessPartner' }
|
|
522
|
+
}
|
|
523
|
+
]
|
|
524
|
+
}).pipe(map((result) => result?.response?.result?.[0]?.attributes ?? []));
|
|
525
|
+
}
|
|
526
|
+
// A person is named by name and surname, a legal entity by its title
|
|
527
|
+
partnerName(attributes) {
|
|
528
|
+
return (this.join(' ', this.text(attributes, 'Name'), this.text(attributes, 'Surname')) ?? this.text(attributes, 'Title'));
|
|
529
|
+
}
|
|
530
|
+
servicePointReference(number) {
|
|
531
|
+
return number ? this.translation.translate('home.recordServicePointReference', { number }) : null;
|
|
532
|
+
}
|
|
533
|
+
enumText(groupName, key) {
|
|
534
|
+
if (!key) {
|
|
535
|
+
return of(null);
|
|
536
|
+
}
|
|
537
|
+
return this.selectionGroup(groupName).pipe(map((group) => {
|
|
538
|
+
const item = group?.selectionItems?.find((selection) => selection.selectionKey === key);
|
|
539
|
+
const lang = this.translation.getActiveLang();
|
|
540
|
+
return item?.selectionMultiLanguageDisplays?.[lang] ?? item?.selectionDisplay ?? key;
|
|
541
|
+
}));
|
|
542
|
+
}
|
|
543
|
+
selectionGroup(groupName) {
|
|
544
|
+
const cached = this.selectionGroupService.selectionGroups()[`${groupName}~ALL`];
|
|
545
|
+
if (cached) {
|
|
546
|
+
return of(cached);
|
|
547
|
+
}
|
|
548
|
+
let group$ = this.selectionGroups.get(groupName);
|
|
549
|
+
if (!group$) {
|
|
550
|
+
group$ = this.loadSelectionGroup({ groupName, parentSelectionKey: 'ALL' }).pipe(map((result) => result?.response ?? null), tap((group) => {
|
|
551
|
+
// A failed read is not kept, the next record asks for the group again
|
|
552
|
+
if (!group) {
|
|
553
|
+
this.selectionGroups.delete(groupName);
|
|
554
|
+
}
|
|
555
|
+
}), shareReplay(1));
|
|
556
|
+
this.selectionGroups.set(groupName, group$);
|
|
557
|
+
}
|
|
558
|
+
return group$;
|
|
559
|
+
}
|
|
560
|
+
status(tag, text, textKey = null, textParams) {
|
|
561
|
+
return { tag, text, textKey, textParams };
|
|
562
|
+
}
|
|
563
|
+
find(attributes, code, alias) {
|
|
564
|
+
return attributes.find((item) => item.attribute?.attributeCode === code && (!alias || item.attribute?.alias === alias));
|
|
565
|
+
}
|
|
566
|
+
text(attributes, code, alias) {
|
|
567
|
+
const value = this.find(attributes, code, alias)?.valueDesc;
|
|
568
|
+
return value && value !== 'null' ? String(value) : null;
|
|
569
|
+
}
|
|
570
|
+
join(separator, ...parts) {
|
|
571
|
+
return parts.filter((part) => !!part).join(separator) || null;
|
|
572
|
+
}
|
|
573
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RecordSummaryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
574
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RecordSummaryService, providedIn: 'root' }); }
|
|
575
|
+
}
|
|
576
|
+
__decorate([
|
|
577
|
+
ServiceCall(HTTPMethods.GETBYDYNAMICPATH, ProxyTypes.ClientSide, 'master-data/$/all-with-asset-definition', SILENT$2, Apps.MNG)
|
|
578
|
+
], RecordSummaryService.prototype, "getAsset", null);
|
|
579
|
+
__decorate([
|
|
580
|
+
ServiceCall(HTTPMethods.POST, ProxyTypes.ClientSide, 'master-data/advanced-query', SILENT$2, Apps.MNG)
|
|
581
|
+
], RecordSummaryService.prototype, "queryAssets", null);
|
|
582
|
+
__decorate([
|
|
583
|
+
ServiceCall(HTTPMethods.GETBYDYNAMICPATH, ProxyTypes.ClientSide, 'invoices/overview/$', SILENT$2, Apps.BILLING)
|
|
584
|
+
], RecordSummaryService.prototype, "getInvoice", null);
|
|
585
|
+
__decorate([
|
|
586
|
+
ServiceCall(HTTPMethods.GETBYDYNAMICPATH, ProxyTypes.ClientSide, 'work-orders/get/$', SILENT$2, Apps.WDM)
|
|
587
|
+
], RecordSummaryService.prototype, "getWorkOrder", null);
|
|
588
|
+
__decorate([
|
|
589
|
+
ServiceCall(HTTPMethods.POST, ProxyTypes.ClientSide, 'debts/search/unpaid-summary', SILENT$2, Apps.PAYMENT)
|
|
590
|
+
], RecordSummaryService.prototype, "searchUnpaidSummary", null);
|
|
591
|
+
__decorate([
|
|
592
|
+
ServiceCall(HTTPMethods.POST, ProxyTypes.ClientSide, 'selection-group/load', SILENT$2, Apps.MNG)
|
|
593
|
+
], RecordSummaryService.prototype, "loadSelectionGroup", null);
|
|
594
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RecordSummaryService, decorators: [{
|
|
595
|
+
type: Injectable,
|
|
596
|
+
args: [{ providedIn: 'root' }]
|
|
597
|
+
}], propDecorators: { getAsset: [], queryAssets: [], getInvoice: [], getWorkOrder: [], searchUnpaidSummary: [], loadSelectionGroup: [] } });
|
|
598
|
+
|
|
599
|
+
// Placeholder the breadcrumb shows until the dynamic value of a page is loaded
|
|
600
|
+
const BREADCRUMB_LOADING = '...';
|
|
601
|
+
// Recently viewed records the summary brings; the home page slides over them, the full list is in its dialog
|
|
602
|
+
const SUMMARY_RECORD_LIMIT = 25;
|
|
603
|
+
const ID_SEGMENT = /^(\d+|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$/i;
|
|
604
|
+
// The log is written and read in the background: the user did not start these calls, so no error toast is shown
|
|
605
|
+
const SILENT$1 = {
|
|
606
|
+
ignoredStatusCodes: [
|
|
607
|
+
HttpStatusCode.NotFound,
|
|
608
|
+
HttpStatusCode.Forbidden,
|
|
609
|
+
HttpStatusCode.BadRequest,
|
|
610
|
+
HttpStatusCode.InternalServerError,
|
|
611
|
+
HttpStatusCode.BadGateway,
|
|
612
|
+
HttpStatusCode.ServiceUnavailable,
|
|
613
|
+
HttpStatusCode.GatewayTimeout
|
|
614
|
+
]
|
|
615
|
+
};
|
|
616
|
+
/**
|
|
617
|
+
* Logs every screen opening of the session user for the "recent activity" card of the home page.
|
|
618
|
+
* The router tells which page is open, the breadcrumb gives its title, and the record a detail page shows is
|
|
619
|
+
* described by RecordSummaryService, so the log does not depend on the library version a remote was built with.
|
|
620
|
+
*/
|
|
621
|
+
class ScreenVisitService extends RestClient {
|
|
622
|
+
constructor() {
|
|
623
|
+
super();
|
|
624
|
+
this.states = {};
|
|
625
|
+
this.summary = signal({ records: [], screens: [] });
|
|
626
|
+
this.loaded = signal(false);
|
|
627
|
+
// The open page and the record it shows, for the follow button of the top bar
|
|
628
|
+
this.currentUrl = signal('');
|
|
629
|
+
this.currentRecordRoute = signal(null);
|
|
630
|
+
this.currentRecord = signal(null);
|
|
631
|
+
this.router = inject(Router);
|
|
632
|
+
this.pubSubService = inject(PubSubService);
|
|
633
|
+
this.recordSummaryService = inject(RecordSummaryService);
|
|
634
|
+
this.currentPath = '';
|
|
635
|
+
this.currentPathLogged = false;
|
|
636
|
+
this.currentRecord$ = of(null);
|
|
637
|
+
// The breadcrumb keeps the record number a page showed last time until the page loads its own again.
|
|
638
|
+
// A number already seen on another path is therefore not trusted on the first publish of a page.
|
|
639
|
+
this.recordNumberPaths = new Map();
|
|
640
|
+
this.awaitingConfirmation = false;
|
|
641
|
+
// The summary is read again the next time the home page is shown
|
|
642
|
+
this.summaryStale = true;
|
|
643
|
+
// Period of the summary in days, chosen on the home page (the backend default is 30)
|
|
644
|
+
this.summaryDays = 30;
|
|
645
|
+
// Period of the summary on screen, so a failed read for another period does not leave it under the new label
|
|
646
|
+
this.shownDays = null;
|
|
647
|
+
// Set when the backend does not serve the log to this user (not deployed yet, or the role is not allowed):
|
|
648
|
+
// nothing is written for the session
|
|
649
|
+
this.unavailable = false;
|
|
650
|
+
this.router.events
|
|
651
|
+
.pipe(filter((event) => event instanceof NavigationEnd))
|
|
652
|
+
.subscribe((event) => this.onNavigation(event.urlAfterRedirects));
|
|
653
|
+
this.pubSubService.subscribe('breadcrumbUpdated', (data) => this.onBreadcrumbUpdated(data));
|
|
654
|
+
}
|
|
655
|
+
saveVisit(post) {
|
|
656
|
+
return new Observable();
|
|
657
|
+
}
|
|
658
|
+
getSummary(params) {
|
|
659
|
+
return new Observable();
|
|
660
|
+
}
|
|
661
|
+
// Called by the home page: reads the summary unless it is already current for the same period
|
|
662
|
+
load(days = this.summaryDays) {
|
|
663
|
+
if (!this.loaded() || this.summaryStale || days !== this.summaryDays) {
|
|
664
|
+
this.summaryDays = days;
|
|
665
|
+
this.refresh();
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
refresh() {
|
|
669
|
+
this.summaryStale = false;
|
|
670
|
+
const days = this.summaryDays;
|
|
671
|
+
this.getSummary({ days, recordLimit: SUMMARY_RECORD_LIMIT }).subscribe((result) => {
|
|
672
|
+
// An answer for a period the user has already left is dropped
|
|
673
|
+
if (days !== this.summaryDays) {
|
|
674
|
+
return;
|
|
675
|
+
}
|
|
676
|
+
if (result?.response) {
|
|
677
|
+
this.summary.set({
|
|
678
|
+
records: result.response.records ?? [],
|
|
679
|
+
screens: result.response.screens ?? []
|
|
680
|
+
});
|
|
681
|
+
this.shownDays = days;
|
|
682
|
+
}
|
|
683
|
+
else if (this.shownDays !== days) {
|
|
684
|
+
this.summary.set({ records: [], screens: [] });
|
|
685
|
+
this.shownDays = days;
|
|
686
|
+
}
|
|
687
|
+
this.loaded.set(true);
|
|
688
|
+
});
|
|
689
|
+
}
|
|
690
|
+
onNavigation(url) {
|
|
691
|
+
// The log is kept only on the THOR host; the other hosts (YEAP, LENA) and a remote opened on its own
|
|
692
|
+
// do not serve it
|
|
693
|
+
if (bridge.activeHost() !== Apps.THOR) {
|
|
694
|
+
return;
|
|
695
|
+
}
|
|
696
|
+
const path = this.pathOf(url);
|
|
697
|
+
this.currentUrl.set(url);
|
|
698
|
+
if (path === this.currentPath) {
|
|
699
|
+
return;
|
|
700
|
+
}
|
|
701
|
+
this.currentPath = path;
|
|
702
|
+
this.currentPathLogged = false;
|
|
703
|
+
this.awaitingConfirmation = true;
|
|
704
|
+
const route = this.recordSummaryService.match(url);
|
|
705
|
+
this.currentRecordRoute.set(route);
|
|
706
|
+
this.currentRecord.set(null);
|
|
707
|
+
this.currentRecord$ =
|
|
708
|
+
route ?
|
|
709
|
+
this.recordSummaryService.resolve(route).pipe(tap((record) => {
|
|
710
|
+
if (this.currentPath === path) {
|
|
711
|
+
this.currentRecord.set(record);
|
|
712
|
+
}
|
|
713
|
+
}), shareReplay(1))
|
|
714
|
+
: of(null);
|
|
715
|
+
// Resolved right away: the follow button needs the record even if the page publishes no breadcrumb
|
|
716
|
+
this.currentRecord$.subscribe();
|
|
717
|
+
if (this.isHome(path) && this.loaded() && this.summaryStale) {
|
|
718
|
+
this.refresh();
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
onBreadcrumbUpdated(data) {
|
|
722
|
+
if (!data?.path || bridge.activeHost() !== Apps.THOR) {
|
|
723
|
+
return;
|
|
724
|
+
}
|
|
725
|
+
// Normally a no-op: the router event of the navigation arrives before the breadcrumb
|
|
726
|
+
this.onNavigation(data.path);
|
|
727
|
+
const breadcrumbs = data.custom?.breadcrumbs ?? [];
|
|
728
|
+
const last = breadcrumbs[breadcrumbs.length - 1];
|
|
729
|
+
if (!last?.label || last.label === BREADCRUMB_LOADING) {
|
|
730
|
+
// A placeholder means the page has no number yet: the one that follows is its own
|
|
731
|
+
this.awaitingConfirmation = false;
|
|
732
|
+
return;
|
|
733
|
+
}
|
|
734
|
+
// The breadcrumb is published several times per navigation: the opening is logged once
|
|
735
|
+
if (this.currentPathLogged) {
|
|
736
|
+
return;
|
|
737
|
+
}
|
|
738
|
+
const label = last.label;
|
|
739
|
+
const route = this.currentRecordRoute();
|
|
740
|
+
const value = this.recordNumberIn(label, last.value);
|
|
741
|
+
const path = this.currentPath;
|
|
742
|
+
// Pages of the known record types take the number from the record itself. Elsewhere the first publish
|
|
743
|
+
// may still carry a number of an earlier page: it is skipped, the page confirms or replaces it next
|
|
744
|
+
if (!route) {
|
|
745
|
+
const knownPath = value ? this.recordNumberPaths.get(value) : undefined;
|
|
746
|
+
const isUnconfirmed = this.awaitingConfirmation && !!knownPath && knownPath !== path && !path.startsWith(knownPath + '/');
|
|
747
|
+
this.awaitingConfirmation = false;
|
|
748
|
+
if (isUnconfirmed) {
|
|
749
|
+
return;
|
|
750
|
+
}
|
|
751
|
+
if (value) {
|
|
752
|
+
this.recordNumberPaths.set(value, path);
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
this.currentPathLogged = true;
|
|
756
|
+
const url = data.path;
|
|
757
|
+
const screenTitle = this.screenTitle(label, value);
|
|
758
|
+
const screenKey = this.screenKey(path, route?.id ?? value);
|
|
759
|
+
this.currentRecord$.pipe(take(1)).subscribe((record) => this.save({
|
|
760
|
+
url,
|
|
761
|
+
screenKey,
|
|
762
|
+
screenTitle,
|
|
763
|
+
recordType: route?.type ?? null,
|
|
764
|
+
recordNumber: record?.number || value || null,
|
|
765
|
+
recordName: record?.name ?? null,
|
|
766
|
+
recordSummary: record?.summary ?? null
|
|
767
|
+
}));
|
|
768
|
+
}
|
|
769
|
+
save(request) {
|
|
770
|
+
if (this.unavailable) {
|
|
771
|
+
return;
|
|
772
|
+
}
|
|
773
|
+
this.saveVisit(request).subscribe((result) => {
|
|
774
|
+
if (result?.error) {
|
|
775
|
+
this.unavailable =
|
|
776
|
+
result.error.status === HttpStatusCode.NotFound || result.error.status === HttpStatusCode.Forbidden;
|
|
777
|
+
return;
|
|
778
|
+
}
|
|
779
|
+
this.summaryStale = true;
|
|
780
|
+
if (this.isHome(this.currentPath)) {
|
|
781
|
+
this.refresh();
|
|
782
|
+
}
|
|
783
|
+
});
|
|
784
|
+
}
|
|
785
|
+
// The resolved dynamic part of the label. A remote built with an older library does not publish it,
|
|
786
|
+
// there it is read from the label itself: "Service Point Detail - 7014161" -> "7014161"
|
|
787
|
+
recordNumberIn(label, value) {
|
|
788
|
+
if (value) {
|
|
789
|
+
// A dynamic value that is the whole label is a title (e.g. a dashboard name), not a record number
|
|
790
|
+
return value !== label ? value : undefined;
|
|
791
|
+
}
|
|
792
|
+
const separator = label.indexOf(' - ');
|
|
793
|
+
const rest = separator > 0 ? label.slice(separator + 3).trim() : '';
|
|
794
|
+
return /\d/.test(rest) ? rest : undefined;
|
|
795
|
+
}
|
|
796
|
+
// "Service Point Detail - 7014161" -> "Service Point Detail"
|
|
797
|
+
screenTitle(label, recordNumber) {
|
|
798
|
+
if (!recordNumber || !label.endsWith(recordNumber)) {
|
|
799
|
+
return label;
|
|
800
|
+
}
|
|
801
|
+
return label.slice(0, -recordNumber.length).replace(/[\s\-–:]+$/, '') || label;
|
|
802
|
+
}
|
|
803
|
+
// Route path without the record specific segments, so every record of a screen falls on one row
|
|
804
|
+
screenKey(path, recordSegment) {
|
|
805
|
+
return path
|
|
806
|
+
.split('/')
|
|
807
|
+
.filter((segment) => segment !== recordSegment && !ID_SEGMENT.test(segment))
|
|
808
|
+
.join('/');
|
|
809
|
+
}
|
|
810
|
+
pathOf(url) {
|
|
811
|
+
return url.split(/[?#]/)[0];
|
|
812
|
+
}
|
|
813
|
+
isHome(path) {
|
|
814
|
+
return path === '' || path === '/';
|
|
815
|
+
}
|
|
816
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ScreenVisitService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
817
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ScreenVisitService, providedIn: 'root' }); }
|
|
818
|
+
}
|
|
819
|
+
__decorate([
|
|
820
|
+
ServiceCall(HTTPMethods.POST, ProxyTypes.ClientSide, 'screen-visits', SILENT$1, Apps.MNG)
|
|
821
|
+
], ScreenVisitService.prototype, "saveVisit", null);
|
|
822
|
+
__decorate([
|
|
823
|
+
ServiceCall(HTTPMethods.GETBYPARAMS, ProxyTypes.ClientSide, 'screen-visits/summary', SILENT$1, Apps.MNG)
|
|
824
|
+
], ScreenVisitService.prototype, "getSummary", null);
|
|
825
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ScreenVisitService, decorators: [{
|
|
826
|
+
type: Injectable,
|
|
827
|
+
args: [{ providedIn: 'root' }]
|
|
828
|
+
}], ctorParameters: () => [], propDecorators: { saveVisit: [], getSummary: [] } });
|
|
829
|
+
|
|
83
830
|
const ENV_VARIANTS = {
|
|
84
831
|
PROD: 'prod',
|
|
85
832
|
PREPROD: 'preprod',
|
|
@@ -102,13 +849,13 @@ class EnvironmentBannerComponent {
|
|
|
102
849
|
this.username = '';
|
|
103
850
|
}
|
|
104
851
|
}
|
|
105
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
106
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.
|
|
852
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EnvironmentBannerComponent, deps: [{ token: i1$1.KeycloakService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
853
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: EnvironmentBannerComponent, isStandalone: true, selector: "app-environment-banner", ngImport: i0, template: "@if (code) {\n\t<div class=\"env-banner env-{{ variant }}\" *transloco=\"let t; read: 'envBanner'\">\n\t\t<span class=\"env-dot\"></span>\n\t\t<span class=\"env-label\">{{ t(variant) }}</span>\n\t\t@if (username) {\n\t\t\t<span class=\"env-sep\">\u2014</span>\n\t\t\t<span class=\"env-user\">{{ username }}</span>\n\t\t}\n\t</div>\n}\n", styles: [".env-banner{position:fixed;top:0;left:0;right:0;height:30px;display:flex;align-items:center;justify-content:center;gap:12px;padding:0 16px;font-size:12px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:#fff;box-shadow:0 2px 8px #00000047;z-index:1101}.env-banner.env-prod{background:#b91c1c}.env-banner.env-prod .env-dot{background:#fde047}.env-banner.env-preprod{background:#c2410c}.env-banner.env-preprod .env-dot{background:#fed7aa}.env-banner.env-stage{background:#1d4ed8}.env-banner.env-stage .env-dot{background:#bfdbfe}.env-banner.env-uat{background:#7e22ce}.env-banner.env-uat .env-dot{background:#e9d5ff}.env-banner.env-dev{background:#15803d}.env-banner.env-dev .env-dot{background:#bbf7d0}.env-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0;animation:env-pulse 1.4s ease-in-out infinite}.env-label{font-weight:800;white-space:nowrap}.env-sep{opacity:.7}.env-user{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes env-pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(.8)}}@media (prefers-reduced-motion: reduce){.env-dot{animation:none}}\n"], dependencies: [{ kind: "ngmodule", type: TranslocoModule }, { kind: "directive", type: i5.TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoLang", "translocoLoadingTpl"] }] }); }
|
|
107
854
|
}
|
|
108
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
855
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EnvironmentBannerComponent, decorators: [{
|
|
109
856
|
type: Component,
|
|
110
|
-
args: [{ standalone: true, selector: 'app-environment-banner', imports: [TranslocoModule], template: "@if (code) {\
|
|
111
|
-
}], ctorParameters: () => [{ type: i1.KeycloakService }] });
|
|
857
|
+
args: [{ standalone: true, selector: 'app-environment-banner', imports: [TranslocoModule], template: "@if (code) {\n\t<div class=\"env-banner env-{{ variant }}\" *transloco=\"let t; read: 'envBanner'\">\n\t\t<span class=\"env-dot\"></span>\n\t\t<span class=\"env-label\">{{ t(variant) }}</span>\n\t\t@if (username) {\n\t\t\t<span class=\"env-sep\">\u2014</span>\n\t\t\t<span class=\"env-user\">{{ username }}</span>\n\t\t}\n\t</div>\n}\n", styles: [".env-banner{position:fixed;top:0;left:0;right:0;height:30px;display:flex;align-items:center;justify-content:center;gap:12px;padding:0 16px;font-size:12px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:#fff;box-shadow:0 2px 8px #00000047;z-index:1101}.env-banner.env-prod{background:#b91c1c}.env-banner.env-prod .env-dot{background:#fde047}.env-banner.env-preprod{background:#c2410c}.env-banner.env-preprod .env-dot{background:#fed7aa}.env-banner.env-stage{background:#1d4ed8}.env-banner.env-stage .env-dot{background:#bfdbfe}.env-banner.env-uat{background:#7e22ce}.env-banner.env-uat .env-dot{background:#e9d5ff}.env-banner.env-dev{background:#15803d}.env-banner.env-dev .env-dot{background:#bbf7d0}.env-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0;animation:env-pulse 1.4s ease-in-out infinite}.env-label{font-weight:800;white-space:nowrap}.env-sep{opacity:.7}.env-user{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes env-pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(.8)}}@media (prefers-reduced-motion: reduce){.env-dot{animation:none}}\n"] }]
|
|
858
|
+
}], ctorParameters: () => [{ type: i1$1.KeycloakService }] });
|
|
112
859
|
|
|
113
860
|
var LanguageCode;
|
|
114
861
|
(function (LanguageCode) {
|
|
@@ -162,8 +909,8 @@ class ProfileService extends RestClient {
|
|
|
162
909
|
getAllApp(post) {
|
|
163
910
|
return new Observable();
|
|
164
911
|
}
|
|
165
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
166
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
912
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ProfileService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
913
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ProfileService, providedIn: 'root' }); }
|
|
167
914
|
}
|
|
168
915
|
__decorate([
|
|
169
916
|
ServiceCall(HTTPMethods.POST, ProxyTypes.ClientSide, profileEndpoints.getUser, {}, Apps.MW)
|
|
@@ -186,7 +933,7 @@ __decorate([
|
|
|
186
933
|
__decorate([
|
|
187
934
|
ServiceCall(HTTPMethods.POST, ProxyTypes.ClientSide, 'user-management/clients', {}, Apps.MW)
|
|
188
935
|
], ProfileService.prototype, "getAllApp", null);
|
|
189
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
936
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ProfileService, decorators: [{
|
|
190
937
|
type: Injectable,
|
|
191
938
|
args: [{ providedIn: 'root' }]
|
|
192
939
|
}], propDecorators: { getUser: [], updateUser: [], resetPassword: [], getAllClientsList: [], getAllUserType: [], getAuthorityTree: [], getAllApp: [] } });
|
|
@@ -295,10 +1042,10 @@ class ChangePasswordModalComponent {
|
|
|
295
1042
|
cancel() {
|
|
296
1043
|
this.dialogRef.close('cancel');
|
|
297
1044
|
}
|
|
298
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
299
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.
|
|
1045
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChangePasswordModalComponent, deps: [{ token: i1$2.FormBuilder }, { token: i2.DynamicDialogRef }, { token: i2.DynamicDialogConfig }, { token: ProfileService }, { token: i5.TranslocoService }, { token: i3.MessageService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1046
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ChangePasswordModalComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<div class=\"change-password-modal\" *transloco=\"let t; read: 'profileSidebar'\">\n\t<aril-form [formGroup]=\"passwordForm\">\n\t\t<aril-field [label]=\"t('newPassword')\" [cols]=\"{ xl: 12, lg: 12, md: 12, sm: 12 }\" [markAsRequired]=\"true\">\n\t\t\t<p-password \n\t\t\t\tformControlName=\"newPassword\"\n\t\t\t\t[placeholder]=\"t('newPassword')\"\n\t\t\t\t[feedback]=\"false\"\n\t\t\t\t[toggleMask]=\"true\"\n\t\t\t\tstyleClass=\"w-full\"\n\t\t\t\tautocomplete=\"new-password\"\n\t\t\t\t[pTooltip]=\"passwordForm.get('newPassword')?.invalid && passwordForm.get('newPassword')?.touched ? getErrorMessage('newPassword') : ''\"\n\t\t\t\ttooltipPosition=\"top\"\n\t\t\t\ttooltipStyleClass=\"tooltipErrorMessage\">\n\t\t\t</p-password>\n\t\t</aril-field>\n\n\t\t<aril-field [label]=\"t('confirmPassword')\" [cols]=\"{ xl: 12, lg: 12, md: 12, sm: 12 }\" [markAsRequired]=\"true\">\n\t\t\t<p-password \n\t\t\t\tformControlName=\"confirmPassword\"\n\t\t\t\t[placeholder]=\"t('confirmPassword')\"\n\t\t\t\t[feedback]=\"false\"\n\t\t\t\t[toggleMask]=\"true\"\n\t\t\t\tstyleClass=\"w-full\"\n\t\t\t\tautocomplete=\"new-password\"\n\t\t\t\t[pTooltip]=\"passwordForm.get('confirmPassword')?.invalid && passwordForm.get('confirmPassword')?.touched ? getErrorMessage('confirmPassword') : ''\"\n\t\t\t\ttooltipPosition=\"top\"\n\t\t\t\ttooltipStyleClass=\"tooltipErrorMessage\">\n\t\t\t</p-password>\n\t\t</aril-field>\n\n\t\t<div class=\"col-12 flex justify-content-end mt-4 gap-2\">\n\t\t\t<aril-button\n\t\t\t\tcolor=\"danger\"\n\t\t\t\t[label]=\"t('cancel')\"\n\t\t\t\t[outlined]=\"true\"\n\t\t\t\ticon=\"TIMES\"\n\t\t\t\t(clickEvent)=\"cancel()\">\n\t\t\t</aril-button>\n\t\t\t<aril-button\n\t\t\t\tcolor=\"success\"\n\t\t\t\t[label]=\"t('save')\"\n\t\t\t\t[raised]=\"false\"\n\t\t\t\ticon=\"CHECK\"\n\t\t\t\t(clickEvent)=\"submit()\">\n\t\t\t</aril-button>\n\t\t</div>\n\t</aril-form>\n</div>\n", styles: [".change-password-modal :host ::ng-deep .p-password.ng-invalid.ng-touched .p-inputtext{border-color:var(--red-500, #ef4444);box-shadow:0 0 0 1px var(--red-500, #ef4444)}.change-password-modal :host ::ng-deep .p-password.ng-valid.ng-touched .p-inputtext{border-color:var(--green-500, #22c55e);box-shadow:0 0 0 1px var(--green-500, #22c55e)}.change-password-modal :host ::ng-deep .tooltipErrorMessage{background-color:var(--red-500, #ef4444)!important;color:#fff!important;font-size:.75rem!important;font-weight:500!important;border-radius:4px!important;padding:.5rem .75rem!important;box-shadow:0 2px 4px #0000001a!important}.change-password-modal :host ::ng-deep .tooltipErrorMessage .p-tooltip-arrow{border-top-color:var(--red-500, #ef4444)!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ARiLFormModule }, { kind: "component", type: i6.FormComponent, selector: "aril-form", inputs: ["formGroup", "submitOnEnterInWidgets"] }, { kind: "component", type: FieldComponent, selector: "aril-field", inputs: ["label", "color", "labelWidth", "valueWidth", "labelPos", "markAsRequired", "cols", "infoData", "infoDataOverlayPanel"] }, { kind: "component", type: ButtonComponent, selector: "aril-button:not([click])", inputs: ["label", "loading", "disabled", "raised", "rounded", "text", "outlined", "badge", "size", "icon", "iconPos", "color"], outputs: ["clickEvent"] }, { kind: "ngmodule", type: PasswordModule }, { kind: "component", type: i7.Password, selector: "p-password", inputs: ["ariaLabel", "ariaLabelledBy", "label", "disabled", "promptLabel", "mediumRegex", "strongRegex", "weakLabel", "mediumLabel", "maxLength", "strongLabel", "inputId", "feedback", "appendTo", "toggleMask", "inputStyleClass", "styleClass", "style", "inputStyle", "showTransitionOptions", "hideTransitionOptions", "autocomplete", "placeholder", "showClear", "autofocus", "variant"], outputs: ["onFocus", "onBlur", "onClear"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i9.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "ngmodule", type: TranslocoModule }, { kind: "directive", type: i5.TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoLang", "translocoLoadingTpl"] }] }); }
|
|
300
1047
|
}
|
|
301
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
1048
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ChangePasswordModalComponent, decorators: [{
|
|
302
1049
|
type: Component,
|
|
303
1050
|
args: [{ standalone: true, imports: [
|
|
304
1051
|
CommonModule,
|
|
@@ -310,8 +1057,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
310
1057
|
PasswordModule,
|
|
311
1058
|
TooltipModule,
|
|
312
1059
|
TranslocoModule
|
|
313
|
-
], template: "<div class=\"change-password-modal\" *transloco=\"let t; read: 'profileSidebar'\">\
|
|
314
|
-
}], ctorParameters: () => [{ type: i1$
|
|
1060
|
+
], template: "<div class=\"change-password-modal\" *transloco=\"let t; read: 'profileSidebar'\">\n\t<aril-form [formGroup]=\"passwordForm\">\n\t\t<aril-field [label]=\"t('newPassword')\" [cols]=\"{ xl: 12, lg: 12, md: 12, sm: 12 }\" [markAsRequired]=\"true\">\n\t\t\t<p-password \n\t\t\t\tformControlName=\"newPassword\"\n\t\t\t\t[placeholder]=\"t('newPassword')\"\n\t\t\t\t[feedback]=\"false\"\n\t\t\t\t[toggleMask]=\"true\"\n\t\t\t\tstyleClass=\"w-full\"\n\t\t\t\tautocomplete=\"new-password\"\n\t\t\t\t[pTooltip]=\"passwordForm.get('newPassword')?.invalid && passwordForm.get('newPassword')?.touched ? getErrorMessage('newPassword') : ''\"\n\t\t\t\ttooltipPosition=\"top\"\n\t\t\t\ttooltipStyleClass=\"tooltipErrorMessage\">\n\t\t\t</p-password>\n\t\t</aril-field>\n\n\t\t<aril-field [label]=\"t('confirmPassword')\" [cols]=\"{ xl: 12, lg: 12, md: 12, sm: 12 }\" [markAsRequired]=\"true\">\n\t\t\t<p-password \n\t\t\t\tformControlName=\"confirmPassword\"\n\t\t\t\t[placeholder]=\"t('confirmPassword')\"\n\t\t\t\t[feedback]=\"false\"\n\t\t\t\t[toggleMask]=\"true\"\n\t\t\t\tstyleClass=\"w-full\"\n\t\t\t\tautocomplete=\"new-password\"\n\t\t\t\t[pTooltip]=\"passwordForm.get('confirmPassword')?.invalid && passwordForm.get('confirmPassword')?.touched ? getErrorMessage('confirmPassword') : ''\"\n\t\t\t\ttooltipPosition=\"top\"\n\t\t\t\ttooltipStyleClass=\"tooltipErrorMessage\">\n\t\t\t</p-password>\n\t\t</aril-field>\n\n\t\t<div class=\"col-12 flex justify-content-end mt-4 gap-2\">\n\t\t\t<aril-button\n\t\t\t\tcolor=\"danger\"\n\t\t\t\t[label]=\"t('cancel')\"\n\t\t\t\t[outlined]=\"true\"\n\t\t\t\ticon=\"TIMES\"\n\t\t\t\t(clickEvent)=\"cancel()\">\n\t\t\t</aril-button>\n\t\t\t<aril-button\n\t\t\t\tcolor=\"success\"\n\t\t\t\t[label]=\"t('save')\"\n\t\t\t\t[raised]=\"false\"\n\t\t\t\ticon=\"CHECK\"\n\t\t\t\t(clickEvent)=\"submit()\">\n\t\t\t</aril-button>\n\t\t</div>\n\t</aril-form>\n</div>\n", styles: [".change-password-modal :host ::ng-deep .p-password.ng-invalid.ng-touched .p-inputtext{border-color:var(--red-500, #ef4444);box-shadow:0 0 0 1px var(--red-500, #ef4444)}.change-password-modal :host ::ng-deep .p-password.ng-valid.ng-touched .p-inputtext{border-color:var(--green-500, #22c55e);box-shadow:0 0 0 1px var(--green-500, #22c55e)}.change-password-modal :host ::ng-deep .tooltipErrorMessage{background-color:var(--red-500, #ef4444)!important;color:#fff!important;font-size:.75rem!important;font-weight:500!important;border-radius:4px!important;padding:.5rem .75rem!important;box-shadow:0 2px 4px #0000001a!important}.change-password-modal :host ::ng-deep .tooltipErrorMessage .p-tooltip-arrow{border-top-color:var(--red-500, #ef4444)!important}\n"] }]
|
|
1061
|
+
}], ctorParameters: () => [{ type: i1$2.FormBuilder }, { type: i2.DynamicDialogRef }, { type: i2.DynamicDialogConfig }, { type: ProfileService }, { type: i5.TranslocoService }, { type: i3.MessageService }] });
|
|
315
1062
|
|
|
316
1063
|
class EditProfileModalComponent {
|
|
317
1064
|
constructor(formBuilder, dialogRef, messageService, profileService, dialogConfig, translocoService) {
|
|
@@ -467,10 +1214,10 @@ class EditProfileModalComponent {
|
|
|
467
1214
|
clear() {
|
|
468
1215
|
this.levelPairs = [];
|
|
469
1216
|
}
|
|
470
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
471
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.
|
|
1217
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EditProfileModalComponent, deps: [{ token: i1$2.FormBuilder }, { token: i2.DynamicDialogRef }, { token: i3.MessageService }, { token: ProfileService }, { token: i2.DynamicDialogConfig }, { token: i5.TranslocoService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1218
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: EditProfileModalComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<div *transloco=\"let t; read: 'profileSidebar'\">\n\t<aril-form [formGroup]=\"profileForm\">\n\t\t<aril-field [label]=\"t('userStatus')\" [cols]=\"{ xl: 6, lg: 6, md: 6, sm: 12 }\">\n\t\t\t<aril-checkbox [label]=\"' '\" formControlName=\"enabled\" [disabled]=\"true\"></aril-checkbox>\n\t\t</aril-field>\n\n\t\t<aril-field [label]=\"t('systemUser')\" [cols]=\"{ xl: 6, lg: 6, md: 12, sm: 12 }\">\n\t\t\t<aril-checkbox [label]=\"' '\" formControlName=\"systemUser\" [disabled]=\"true\"></aril-checkbox>\n\t\t</aril-field>\n\n\t\t<aril-field [label]=\"t('userType')\" [cols]=\"{ xl: 6, lg: 6, md: 6, sm: 12 }\" [markAsRequired]=\"true\">\n\t\t\t<aril-select-box formControlName=\"userTypeId\" [items]=\"userTypeItems\" itemKey=\"value\" itemText=\"label\" [placeholder]=\"t('select')\"></aril-select-box>\n\t\t</aril-field>\n\n\t\t<aril-field [label]=\"t('systemUserApp')\" [cols]=\"{ xl: 6, lg: 6, md: 12, sm: 12 }\">\n\t\t\t<aril-select-box formControlName=\"clientOfSystemUser\" [items]=\"clientList\" itemText=\"text\" itemKey=\"key\" [placeholder]=\"t('select')\"></aril-select-box>\n\t\t</aril-field>\n\n\t\t<aril-field [label]=\"t('username')\" [cols]=\"{ xl: 6, lg: 6, md: 6, sm: 12 }\" [markAsRequired]=\"true\">\n\t\t\t<aril-text formControlName=\"userName\" [disabled]=\"true\"></aril-text>\n\t\t</aril-field>\n\n\t\t<aril-field [label]=\"t('userPassword')\" [cols]=\"{ xl: 6, lg: 6, md: 6, sm: 12 }\" [markAsRequired]=\"true\">\n\t\t\t<aril-password formControlName=\"password\" [placeholder]=\"'∘∘∘∘∘∘∘∘∘∘'\"></aril-password>\n\t\t</aril-field>\n\n\t\t<aril-field [label]=\"t('firstName')\" [cols]=\"{ xl: 6, lg: 6, md: 6, sm: 12 }\" [markAsRequired]=\"true\">\n\t\t\t<aril-text formControlName=\"firstName\"></aril-text>\n\t\t</aril-field>\n\n\t\t<aril-field [label]=\"t('lastName')\" [cols]=\"{ xl: 6, lg: 6, md: 6, sm: 12 }\">\n\t\t\t<aril-text formControlName=\"lastName\"></aril-text>\n\t\t</aril-field>\n\n\t\t<aril-field [label]=\"t('email')\" [cols]=\"{ xl: 6, lg: 6, md: 6, sm: 12 }\" [markAsRequired]=\"true\">\n\t\t\t<aril-text formControlName=\"email\"></aril-text>\n\t\t</aril-field>\n\n\t\t<aril-field [label]=\"t('phone')\" [cols]=\"{ xl: 6, lg: 6, md: 6, sm: 12 }\">\n\t\t\t<aril-mask mask=\"(999) 999 99 99\" [placeholder]=\"t('phoneExample')\" formControlName=\"phone\"></aril-mask>\n\t\t</aril-field>\n\n\t\t<aril-field [label]=\"t('tcNumber')\" [cols]=\"{ xl: 6, lg: 6, md: 6, sm: 12 }\" [markAsRequired]=\"true\">\n\t\t\t<aril-mask mask=\"99999999999\" formControlName=\"tckn\"></aril-mask>\n\t\t</aril-field>\n\n\t\t<aril-field [label]=\"t('responsibleRegions')\" [cols]=\"{ xl: 6, lg: 6, md: 6, sm: 12 }\">\n\t\t\t<aril-treeSelect\n\t\t\t\t[options]=\"treeItems\"\n\t\t\t\tformControlName=\"regions\"\n\t\t\t\t[placeholder]=\"t('select')\"\n\t\t\t\t(nodeSelect)=\"nodeSelect($event)\"\n\t\t\t\t(nodeUnselect)=\"nodeUnselect($event)\"\n\t\t\t\t(cleared)=\"clear()\">\n\t\t\t</aril-treeSelect>\n\t\t</aril-field>\n\n\t\t<aril-field [label]=\"t('notes')\" [cols]=\"{ xl: 12, lg: 12, md: 12, sm: 12 }\">\n\t\t\t<aril-text-area [rows]=\"3\" [cols]=\"40\" formControlName=\"notes\"></aril-text-area>\n\t\t</aril-field>\n\n\t\t<aril-field [label]=\"t('photoUrl')\" [cols]=\"{ xl: 6, lg: 6, md: 6, sm: 12 }\">\n\t\t\t<aril-text formControlName=\"photoUrl\"></aril-text>\n\t\t</aril-field>\n\n\t\t<div class=\"col-12 flex justify-content-end mt-3 gap-1\">\n\t\t\t<aril-button color=\"danger\" [label]=\"t('cancel')\" [outlined]=\"true\" icon=\"TIMES\" (clickEvent)=\"cancel()\"></aril-button>\n\t\t\t<aril-form-submit [label]=\"t('save')\" color=\"success\" icon=\"CHECK\" [formGroup]=\"profileForm\" (validEvent)=\"submit()\"></aril-form-submit>\n\t\t</div>\n\t</aril-form>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ARiLFormModule }, { kind: "component", type: i6.FormComponent, selector: "aril-form", inputs: ["formGroup", "submitOnEnterInWidgets"] }, { kind: "component", type: i6.FormSubmitButtonComponent, selector: "aril-form-submit:not([click])", inputs: ["formGroup"], outputs: ["validEvent", "inValidEvent"] }, { kind: "ngmodule", type: TranslocoModule }, { kind: "directive", type: i5.TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoLang", "translocoLoadingTpl"] }, { kind: "ngmodule", type: TreeSelectModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: TextComponent, selector: "aril-text[ngModel], aril-text[formControl], aril-text[formControlName]", inputs: ["placeholder", "tabindex", "icon", "iconPos", "size"] }, { kind: "component", type: MaskComponent, selector: "aril-mask[ngModel], aril-mask[formControl], aril-mask[formControlName]", inputs: ["mask", "slotChar", "placeholder", "maxlength", "usageInGrid", "tabindex"] }, { kind: "component", type: FieldComponent, selector: "aril-field", inputs: ["label", "color", "labelWidth", "valueWidth", "labelPos", "markAsRequired", "cols", "infoData", "infoDataOverlayPanel"] }, { kind: "component", type: ButtonComponent, selector: "aril-button:not([click])", inputs: ["label", "loading", "disabled", "raised", "rounded", "text", "outlined", "badge", "size", "icon", "iconPos", "color"], outputs: ["clickEvent"] }, { kind: "component", type: TextAreaComponent, selector: "aril-text-area[ngModel], aril-text-area[formControl], aril-text-area[formControlName]", inputs: ["rows", "cols", "isAutoResize", "tabindex", "placeholder"] }, { kind: "component", type: CheckboxComponent, selector: "aril-checkbox[ngModel], aril-checkbox[formControl], aril-checkbox[formControlName]", inputs: ["label", "labelAsYesNo", "tabindex"] }, { kind: "component", type: PasswordComponent, selector: "aril-password[ngModel], aril-password[formControl], aril-password[formControlName]", inputs: ["feedback", "passwordCriterias", "placeholder", "tabindex"] }, { kind: "component", type: SelectBoxComponent, selector: "aril-select-box[ngModel], aril-select-box[formControl], aril-select-box[formControlName]", inputs: ["itemKey", "itemText", "groupName", "parentSelectionKey", "tabindex", "items", "grouped", "showClearButton", "placeholder", "searchExpr"], outputs: ["onSelectionChanged"] }, { kind: "component", type: TreeSelectComponent, selector: "aril-treeSelect", inputs: ["options", "modelValue", "placeholder", "selectionMode", "display", "showClear", "filter", "filterPlaceholder", "propagateSelectionUp", "propagateSelectionDown", "metaKeySelection", "formControlName"], outputs: ["modelValueChange", "nodeSelect", "nodeUnselect", "cleared"] }] }); }
|
|
472
1219
|
}
|
|
473
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
1220
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EditProfileModalComponent, decorators: [{
|
|
474
1221
|
type: Component,
|
|
475
1222
|
args: [{ standalone: true, imports: [
|
|
476
1223
|
CommonModule,
|
|
@@ -488,8 +1235,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
488
1235
|
PasswordComponent,
|
|
489
1236
|
SelectBoxComponent,
|
|
490
1237
|
TreeSelectComponent
|
|
491
|
-
], template: "<div *transloco=\"let t; read: 'profileSidebar'\">\
|
|
492
|
-
}], ctorParameters: () => [{ type: i1$
|
|
1238
|
+
], template: "<div *transloco=\"let t; read: 'profileSidebar'\">\n\t<aril-form [formGroup]=\"profileForm\">\n\t\t<aril-field [label]=\"t('userStatus')\" [cols]=\"{ xl: 6, lg: 6, md: 6, sm: 12 }\">\n\t\t\t<aril-checkbox [label]=\"' '\" formControlName=\"enabled\" [disabled]=\"true\"></aril-checkbox>\n\t\t</aril-field>\n\n\t\t<aril-field [label]=\"t('systemUser')\" [cols]=\"{ xl: 6, lg: 6, md: 12, sm: 12 }\">\n\t\t\t<aril-checkbox [label]=\"' '\" formControlName=\"systemUser\" [disabled]=\"true\"></aril-checkbox>\n\t\t</aril-field>\n\n\t\t<aril-field [label]=\"t('userType')\" [cols]=\"{ xl: 6, lg: 6, md: 6, sm: 12 }\" [markAsRequired]=\"true\">\n\t\t\t<aril-select-box formControlName=\"userTypeId\" [items]=\"userTypeItems\" itemKey=\"value\" itemText=\"label\" [placeholder]=\"t('select')\"></aril-select-box>\n\t\t</aril-field>\n\n\t\t<aril-field [label]=\"t('systemUserApp')\" [cols]=\"{ xl: 6, lg: 6, md: 12, sm: 12 }\">\n\t\t\t<aril-select-box formControlName=\"clientOfSystemUser\" [items]=\"clientList\" itemText=\"text\" itemKey=\"key\" [placeholder]=\"t('select')\"></aril-select-box>\n\t\t</aril-field>\n\n\t\t<aril-field [label]=\"t('username')\" [cols]=\"{ xl: 6, lg: 6, md: 6, sm: 12 }\" [markAsRequired]=\"true\">\n\t\t\t<aril-text formControlName=\"userName\" [disabled]=\"true\"></aril-text>\n\t\t</aril-field>\n\n\t\t<aril-field [label]=\"t('userPassword')\" [cols]=\"{ xl: 6, lg: 6, md: 6, sm: 12 }\" [markAsRequired]=\"true\">\n\t\t\t<aril-password formControlName=\"password\" [placeholder]=\"'∘∘∘∘∘∘∘∘∘∘'\"></aril-password>\n\t\t</aril-field>\n\n\t\t<aril-field [label]=\"t('firstName')\" [cols]=\"{ xl: 6, lg: 6, md: 6, sm: 12 }\" [markAsRequired]=\"true\">\n\t\t\t<aril-text formControlName=\"firstName\"></aril-text>\n\t\t</aril-field>\n\n\t\t<aril-field [label]=\"t('lastName')\" [cols]=\"{ xl: 6, lg: 6, md: 6, sm: 12 }\">\n\t\t\t<aril-text formControlName=\"lastName\"></aril-text>\n\t\t</aril-field>\n\n\t\t<aril-field [label]=\"t('email')\" [cols]=\"{ xl: 6, lg: 6, md: 6, sm: 12 }\" [markAsRequired]=\"true\">\n\t\t\t<aril-text formControlName=\"email\"></aril-text>\n\t\t</aril-field>\n\n\t\t<aril-field [label]=\"t('phone')\" [cols]=\"{ xl: 6, lg: 6, md: 6, sm: 12 }\">\n\t\t\t<aril-mask mask=\"(999) 999 99 99\" [placeholder]=\"t('phoneExample')\" formControlName=\"phone\"></aril-mask>\n\t\t</aril-field>\n\n\t\t<aril-field [label]=\"t('tcNumber')\" [cols]=\"{ xl: 6, lg: 6, md: 6, sm: 12 }\" [markAsRequired]=\"true\">\n\t\t\t<aril-mask mask=\"99999999999\" formControlName=\"tckn\"></aril-mask>\n\t\t</aril-field>\n\n\t\t<aril-field [label]=\"t('responsibleRegions')\" [cols]=\"{ xl: 6, lg: 6, md: 6, sm: 12 }\">\n\t\t\t<aril-treeSelect\n\t\t\t\t[options]=\"treeItems\"\n\t\t\t\tformControlName=\"regions\"\n\t\t\t\t[placeholder]=\"t('select')\"\n\t\t\t\t(nodeSelect)=\"nodeSelect($event)\"\n\t\t\t\t(nodeUnselect)=\"nodeUnselect($event)\"\n\t\t\t\t(cleared)=\"clear()\">\n\t\t\t</aril-treeSelect>\n\t\t</aril-field>\n\n\t\t<aril-field [label]=\"t('notes')\" [cols]=\"{ xl: 12, lg: 12, md: 12, sm: 12 }\">\n\t\t\t<aril-text-area [rows]=\"3\" [cols]=\"40\" formControlName=\"notes\"></aril-text-area>\n\t\t</aril-field>\n\n\t\t<aril-field [label]=\"t('photoUrl')\" [cols]=\"{ xl: 6, lg: 6, md: 6, sm: 12 }\">\n\t\t\t<aril-text formControlName=\"photoUrl\"></aril-text>\n\t\t</aril-field>\n\n\t\t<div class=\"col-12 flex justify-content-end mt-3 gap-1\">\n\t\t\t<aril-button color=\"danger\" [label]=\"t('cancel')\" [outlined]=\"true\" icon=\"TIMES\" (clickEvent)=\"cancel()\"></aril-button>\n\t\t\t<aril-form-submit [label]=\"t('save')\" color=\"success\" icon=\"CHECK\" [formGroup]=\"profileForm\" (validEvent)=\"submit()\"></aril-form-submit>\n\t\t</div>\n\t</aril-form>\n</div>\n" }]
|
|
1239
|
+
}], ctorParameters: () => [{ type: i1$2.FormBuilder }, { type: i2.DynamicDialogRef }, { type: i3.MessageService }, { type: ProfileService }, { type: i2.DynamicDialogConfig }, { type: i5.TranslocoService }] });
|
|
493
1240
|
|
|
494
1241
|
class LayoutService {
|
|
495
1242
|
constructor() {
|
|
@@ -526,6 +1273,8 @@ class LayoutService {
|
|
|
526
1273
|
this.configUpdate$ = this.configUpdate.asObservable();
|
|
527
1274
|
this.overlayOpen$ = this.overlayOpen.asObservable();
|
|
528
1275
|
this.mfeAppItemClicked = signal(false);
|
|
1276
|
+
// Number of large page search boxes on screen; while there is one the top bar does not repeat its own box
|
|
1277
|
+
this.pageSearchCount = signal(0);
|
|
529
1278
|
// Breakpoint for mobile/tablet detection
|
|
530
1279
|
this.MOBILE_BREAKPOINT = 992;
|
|
531
1280
|
effect(() => {
|
|
@@ -709,10 +1458,10 @@ class LayoutService {
|
|
|
709
1458
|
changeScale(value) {
|
|
710
1459
|
document.documentElement.style.fontSize = `${value}px`;
|
|
711
1460
|
}
|
|
712
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
713
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
1461
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LayoutService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1462
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LayoutService, providedIn: 'root' }); }
|
|
714
1463
|
}
|
|
715
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
1464
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LayoutService, decorators: [{
|
|
716
1465
|
type: Injectable,
|
|
717
1466
|
args: [{
|
|
718
1467
|
providedIn: 'root'
|
|
@@ -858,13 +1607,13 @@ class AppProfileSidebarComponent {
|
|
|
858
1607
|
});
|
|
859
1608
|
ref.onClose.subscribe();
|
|
860
1609
|
}
|
|
861
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
862
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.
|
|
1610
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AppProfileSidebarComponent, deps: [{ token: LayoutService }, { token: i1$1.KeycloakService }, { token: ProfileService }, { token: i2.DialogService }, { token: i5.TranslocoService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1611
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: AppProfileSidebarComponent, isStandalone: true, selector: "app-profilemenu", providers: [DialogService], ngImport: i0, template: "<p-sidebar\n\t[(visible)]=\"visible\"\n\tposition=\"right\"\n\t[showCloseIcon]=\"false\"\n\t[transitionOptions]=\"'.45s cubic-bezier(0.22, 0.61, 0.36, 1)'\"\n\tstyleClass=\"layout-profile-sidebar\">\n\t<ng-container *transloco=\"let t; read: 'profileSidebar'\">\n\t\t<div class=\"profile-panel\" [attr.data-co]=\"envCode\">\n\t\t\t<div class=\"panel-hero\">\n\t\t\t\t<div class=\"hero-top\">\n\t\t\t\t\t<div class=\"hero-title\">\n\t\t\t\t\t\t<i class=\"pi pi-user\"></i>\n\t\t\t\t\t\t<span>{{ t('personalInfo') }}</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t<button type=\"button\" class=\"hero-close\" [attr.aria-label]=\"t('close')\" (click)=\"visible = false\">\n\t\t\t\t\t\t<i class=\"pi pi-times\"></i>\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"hero-profile\">\n\t\t\t\t\t<div class=\"hero-avatar\">{{ initials() }}</div>\n\t\t\t\t\t<div class=\"hero-identity\">\n\t\t\t\t\t\t<div class=\"hero-name\">{{ displayName() }}</div>\n\t\t\t\t\t\t<div class=\"hero-username\">\n\t\t\t\t\t\t\t<i class=\"pi pi-at\"></i>\n\t\t\t\t\t\t\t<span>{{ userProfile()?.userName || username }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div class=\"info-list\">\n\t\t\t\t@for (row of rows(); track row.labelKey) {\n\t\t\t\t\t<div class=\"info-row\">\n\t\t\t\t\t\t<div class=\"row-icon tint-{{ row.tint }}\">\n\t\t\t\t\t\t\t<i class=\"pi {{ row.icon }}\"></i>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"row-body\">\n\t\t\t\t\t\t\t<div class=\"row-label\">{{ t(row.labelKey) }}</div>\n\t\t\t\t\t\t\t@if (row.badge) {\n\t\t\t\t\t\t\t\t<span class=\"row-badge tone-{{ row.badge.tone }}\">\n\t\t\t\t\t\t\t\t\t<span class=\"badge-dot\"></span>\n\t\t\t\t\t\t\t\t\t{{ row.badge.label || t(row.badge.labelKey!) }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t<div class=\"row-value\" [class.empty]=\"!row.value\">{{ row.value || t('notSpecified') }}</div>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t</div>\n\n\t\t\t<div class=\"panel-footer\">\n\t\t\t\t<button type=\"button\" class=\"logout-btn\" (click)=\"logout()\">\n\t\t\t\t\t<i class=\"pi pi-sign-out\"></i>\n\t\t\t\t\t{{ t('logout') }}\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t</div>\n\t</ng-container>\n</p-sidebar>\n", styles: [":host ::ng-deep .layout-profile-sidebar{width:330px;max-width:100vw;box-shadow:-24px 0 60px -24px #181c2647}:host ::ng-deep .layout-profile-sidebar .p-sidebar-header{display:none}:host ::ng-deep .layout-profile-sidebar .p-sidebar-content{padding:0;height:100%;overflow:hidden}.profile-panel{--pf-accent: var(--primary-color, #4c63c7);height:100%;display:flex;flex-direction:column;background:#fff}.profile-panel[data-co=depsas]{--pf-accent: rgb(252 80 0)}.profile-panel[data-co=dedas]{--pf-accent: rgb(0 173 186)}.panel-hero{position:relative;flex-shrink:0;padding:14px 24px 20px;background:var(--pf-accent);color:#fff;overflow:hidden}.panel-hero:before,.panel-hero:after{content:\"\";position:absolute;border-radius:50%}.panel-hero:before{top:-70px;right:-50px;width:200px;height:200px;background:#ffffff14}.panel-hero:after{bottom:-90px;left:-40px;width:180px;height:180px;background:#ffffff0f}.hero-top{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between}.hero-title{display:flex;align-items:center;gap:9px}.hero-title i{font-size:20px;opacity:.9}.hero-title span{font-size:13px;font-weight:600;letter-spacing:.02em;opacity:.92}.hero-close{width:30px;height:30px;border:none;border-radius:10px;background:#ffffff24;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .18s}.hero-close i{font-size:14px}.hero-close:hover{background:#ffffff47}.hero-close:focus-visible{outline:2px solid rgba(255,255,255,.85);outline-offset:2px}.hero-profile{position:relative;z-index:1;display:flex;align-items:center;gap:16px;margin-top:22px}.hero-avatar{width:66px;height:66px;flex-shrink:0;border-radius:20px;background:#ffffff2e;border:1px solid rgba(255,255,255,.35);display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:700;letter-spacing:.01em}.hero-identity{min-width:0}.hero-name{font-size:18px;font-weight:700;line-height:1.2}.hero-username{display:flex;align-items:center;gap:6px;margin-top:5px;font-size:12px;opacity:.85}.hero-username i{font-size:14px;flex-shrink:0}.hero-username span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.info-list{flex:1;min-height:0;overflow-y:auto;padding:8px 12px 12px}.info-row{display:flex;align-items:center;gap:14px;padding:13px 12px;border-radius:14px;transition:background .16s}.info-row:hover{background:#f6f7f9}.row-icon{width:40px;height:40px;flex-shrink:0;border-radius:12px;display:flex;align-items:center;justify-content:center}.row-icon i{font-size:21px}.row-icon.tint-cool{background:#eef1fb;color:#4c63c7}.row-icon.tint-accent{background:color-mix(in srgb,var(--pf-accent) 9%,transparent);color:var(--pf-accent)}.row-icon.tint-teal{background:#e7f4f3;color:#1d8a82}.row-body{min-width:0;flex:1}.row-label{font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#98a0ad}.row-value{font-size:14px;font-weight:500;color:#242a33;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-value.empty{color:#b4bac3}.row-badge{display:inline-flex;align-items:center;gap:5px;margin-top:5px;padding:3px 11px;border-radius:999px;font-size:11.5px;font-weight:600}.row-badge .badge-dot{width:6px;height:6px;border-radius:50%;background:currentColor;flex-shrink:0}.row-badge.tone-green{background:#e7f5ec;color:#1e8a4c}.row-badge.tone-red{background:#fdecec;color:#d0342c}.row-badge.tone-neutral{background:#eef0f3;color:#6b7480}.panel-footer{flex-shrink:0;padding:14px 20px 20px;border-top:1px solid #eef0f3}.logout-btn{width:100%;height:40px;border:none;border-radius:6px;background:var(--pf-accent);color:#fff;font-family:inherit;font-size:14px;font-weight:500;display:flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;transition:background-color .2s,box-shadow .2s}.logout-btn i{font-size:16px}.logout-btn:hover{background:color-mix(in srgb,var(--pf-accent) 92%,#000)}.logout-btn:active{background:color-mix(in srgb,var(--pf-accent) 85%,#000)}.logout-btn:focus-visible{outline:2px solid var(--pf-accent);outline-offset:3px}@media (prefers-reduced-motion: reduce){.info-row,.hero-close,.logout-btn{transition:none}}\n"], dependencies: [{ kind: "ngmodule", type: SidebarModule }, { kind: "component", type: i6$1.Sidebar, selector: "p-sidebar", inputs: ["appendTo", "blockScroll", "style", "styleClass", "ariaCloseLabel", "autoZIndex", "baseZIndex", "modal", "dismissible", "showCloseIcon", "closeOnEscape", "transitionOptions", "visible", "position", "fullScreen"], outputs: ["onShow", "onHide", "visibleChange"] }, { kind: "ngmodule", type: TranslocoModule }, { kind: "directive", type: i5.TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoLang", "translocoLoadingTpl"] }] }); }
|
|
863
1612
|
}
|
|
864
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
1613
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AppProfileSidebarComponent, decorators: [{
|
|
865
1614
|
type: Component,
|
|
866
|
-
args: [{ standalone: true, selector: 'app-profilemenu', imports: [SidebarModule, TranslocoModule], providers: [DialogService], template: "<p-sidebar\
|
|
867
|
-
}], ctorParameters: () => [{ type: LayoutService }, { type: i1.KeycloakService }, { type: ProfileService }, { type: i2.DialogService }, { type: i5.TranslocoService }] });
|
|
1615
|
+
args: [{ standalone: true, selector: 'app-profilemenu', imports: [SidebarModule, TranslocoModule], providers: [DialogService], template: "<p-sidebar\n\t[(visible)]=\"visible\"\n\tposition=\"right\"\n\t[showCloseIcon]=\"false\"\n\t[transitionOptions]=\"'.45s cubic-bezier(0.22, 0.61, 0.36, 1)'\"\n\tstyleClass=\"layout-profile-sidebar\">\n\t<ng-container *transloco=\"let t; read: 'profileSidebar'\">\n\t\t<div class=\"profile-panel\" [attr.data-co]=\"envCode\">\n\t\t\t<div class=\"panel-hero\">\n\t\t\t\t<div class=\"hero-top\">\n\t\t\t\t\t<div class=\"hero-title\">\n\t\t\t\t\t\t<i class=\"pi pi-user\"></i>\n\t\t\t\t\t\t<span>{{ t('personalInfo') }}</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t<button type=\"button\" class=\"hero-close\" [attr.aria-label]=\"t('close')\" (click)=\"visible = false\">\n\t\t\t\t\t\t<i class=\"pi pi-times\"></i>\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"hero-profile\">\n\t\t\t\t\t<div class=\"hero-avatar\">{{ initials() }}</div>\n\t\t\t\t\t<div class=\"hero-identity\">\n\t\t\t\t\t\t<div class=\"hero-name\">{{ displayName() }}</div>\n\t\t\t\t\t\t<div class=\"hero-username\">\n\t\t\t\t\t\t\t<i class=\"pi pi-at\"></i>\n\t\t\t\t\t\t\t<span>{{ userProfile()?.userName || username }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div class=\"info-list\">\n\t\t\t\t@for (row of rows(); track row.labelKey) {\n\t\t\t\t\t<div class=\"info-row\">\n\t\t\t\t\t\t<div class=\"row-icon tint-{{ row.tint }}\">\n\t\t\t\t\t\t\t<i class=\"pi {{ row.icon }}\"></i>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"row-body\">\n\t\t\t\t\t\t\t<div class=\"row-label\">{{ t(row.labelKey) }}</div>\n\t\t\t\t\t\t\t@if (row.badge) {\n\t\t\t\t\t\t\t\t<span class=\"row-badge tone-{{ row.badge.tone }}\">\n\t\t\t\t\t\t\t\t\t<span class=\"badge-dot\"></span>\n\t\t\t\t\t\t\t\t\t{{ row.badge.label || t(row.badge.labelKey!) }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t<div class=\"row-value\" [class.empty]=\"!row.value\">{{ row.value || t('notSpecified') }}</div>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t</div>\n\n\t\t\t<div class=\"panel-footer\">\n\t\t\t\t<button type=\"button\" class=\"logout-btn\" (click)=\"logout()\">\n\t\t\t\t\t<i class=\"pi pi-sign-out\"></i>\n\t\t\t\t\t{{ t('logout') }}\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t</div>\n\t</ng-container>\n</p-sidebar>\n", styles: [":host ::ng-deep .layout-profile-sidebar{width:330px;max-width:100vw;box-shadow:-24px 0 60px -24px #181c2647}:host ::ng-deep .layout-profile-sidebar .p-sidebar-header{display:none}:host ::ng-deep .layout-profile-sidebar .p-sidebar-content{padding:0;height:100%;overflow:hidden}.profile-panel{--pf-accent: var(--primary-color, #4c63c7);height:100%;display:flex;flex-direction:column;background:#fff}.profile-panel[data-co=depsas]{--pf-accent: rgb(252 80 0)}.profile-panel[data-co=dedas]{--pf-accent: rgb(0 173 186)}.panel-hero{position:relative;flex-shrink:0;padding:14px 24px 20px;background:var(--pf-accent);color:#fff;overflow:hidden}.panel-hero:before,.panel-hero:after{content:\"\";position:absolute;border-radius:50%}.panel-hero:before{top:-70px;right:-50px;width:200px;height:200px;background:#ffffff14}.panel-hero:after{bottom:-90px;left:-40px;width:180px;height:180px;background:#ffffff0f}.hero-top{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between}.hero-title{display:flex;align-items:center;gap:9px}.hero-title i{font-size:20px;opacity:.9}.hero-title span{font-size:13px;font-weight:600;letter-spacing:.02em;opacity:.92}.hero-close{width:30px;height:30px;border:none;border-radius:10px;background:#ffffff24;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .18s}.hero-close i{font-size:14px}.hero-close:hover{background:#ffffff47}.hero-close:focus-visible{outline:2px solid rgba(255,255,255,.85);outline-offset:2px}.hero-profile{position:relative;z-index:1;display:flex;align-items:center;gap:16px;margin-top:22px}.hero-avatar{width:66px;height:66px;flex-shrink:0;border-radius:20px;background:#ffffff2e;border:1px solid rgba(255,255,255,.35);display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:700;letter-spacing:.01em}.hero-identity{min-width:0}.hero-name{font-size:18px;font-weight:700;line-height:1.2}.hero-username{display:flex;align-items:center;gap:6px;margin-top:5px;font-size:12px;opacity:.85}.hero-username i{font-size:14px;flex-shrink:0}.hero-username span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.info-list{flex:1;min-height:0;overflow-y:auto;padding:8px 12px 12px}.info-row{display:flex;align-items:center;gap:14px;padding:13px 12px;border-radius:14px;transition:background .16s}.info-row:hover{background:#f6f7f9}.row-icon{width:40px;height:40px;flex-shrink:0;border-radius:12px;display:flex;align-items:center;justify-content:center}.row-icon i{font-size:21px}.row-icon.tint-cool{background:#eef1fb;color:#4c63c7}.row-icon.tint-accent{background:color-mix(in srgb,var(--pf-accent) 9%,transparent);color:var(--pf-accent)}.row-icon.tint-teal{background:#e7f4f3;color:#1d8a82}.row-body{min-width:0;flex:1}.row-label{font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#98a0ad}.row-value{font-size:14px;font-weight:500;color:#242a33;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-value.empty{color:#b4bac3}.row-badge{display:inline-flex;align-items:center;gap:5px;margin-top:5px;padding:3px 11px;border-radius:999px;font-size:11.5px;font-weight:600}.row-badge .badge-dot{width:6px;height:6px;border-radius:50%;background:currentColor;flex-shrink:0}.row-badge.tone-green{background:#e7f5ec;color:#1e8a4c}.row-badge.tone-red{background:#fdecec;color:#d0342c}.row-badge.tone-neutral{background:#eef0f3;color:#6b7480}.panel-footer{flex-shrink:0;padding:14px 20px 20px;border-top:1px solid #eef0f3}.logout-btn{width:100%;height:40px;border:none;border-radius:6px;background:var(--pf-accent);color:#fff;font-family:inherit;font-size:14px;font-weight:500;display:flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;transition:background-color .2s,box-shadow .2s}.logout-btn i{font-size:16px}.logout-btn:hover{background:color-mix(in srgb,var(--pf-accent) 92%,#000)}.logout-btn:active{background:color-mix(in srgb,var(--pf-accent) 85%,#000)}.logout-btn:focus-visible{outline:2px solid var(--pf-accent);outline-offset:3px}@media (prefers-reduced-motion: reduce){.info-row,.hero-close,.logout-btn{transition:none}}\n"] }]
|
|
1616
|
+
}], ctorParameters: () => [{ type: LayoutService }, { type: i1$1.KeycloakService }, { type: ProfileService }, { type: i2.DialogService }, { type: i5.TranslocoService }] });
|
|
868
1617
|
|
|
869
1618
|
class HistoryService {
|
|
870
1619
|
;
|
|
@@ -982,10 +1731,10 @@ class HistoryService {
|
|
|
982
1731
|
item.url.toLocaleLowerCase(currentLang).includes(lowerSearchTerm));
|
|
983
1732
|
});
|
|
984
1733
|
}
|
|
985
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
986
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
1734
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HistoryService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1735
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HistoryService, providedIn: 'root' }); }
|
|
987
1736
|
}
|
|
988
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
1737
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HistoryService, decorators: [{
|
|
989
1738
|
type: Injectable,
|
|
990
1739
|
args: [{
|
|
991
1740
|
providedIn: 'root'
|
|
@@ -1077,10 +1826,10 @@ class HistorySidebarComponent {
|
|
|
1077
1826
|
// Fallback to original title
|
|
1078
1827
|
return item.title;
|
|
1079
1828
|
}
|
|
1080
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
1081
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.
|
|
1829
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HistorySidebarComponent, deps: [{ token: LayoutService }, { token: HistoryService }, { token: i3.ConfirmationService }, { token: i3.MessageService }, { token: i5.TranslocoService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1830
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: HistorySidebarComponent, isStandalone: true, selector: "app-history-sidebar", providers: [ConfirmationService], ngImport: i0, template: "<p-sidebar\n\t[(visible)]=\"visible\"\n\tposition=\"right\"\n\t[transitionOptions]=\"'.3s cubic-bezier(0, 0, 0.2, 1)'\"\n\tstyleClass=\"layout-history-sidebar w-full sm:w-30rem\"\n\t*transloco=\"let t; read: 'history'\">\n\t<ng-template pTemplate=\"header\">\n\t\t<div class=\"flex align-items-center justify-content-between w-full\">\n\t\t\t<div class=\"flex align-items-center\">\n\t\t\t\t<i class=\"pi pi-history text-primary text-xl\"></i>\n\t\t\t\t<span class=\"font-bold text-lg\">{{ t('pageHistory') }}</span>\n\t\t\t</div>\n\t\t</div>\n\t</ng-template>\n\n\t<div class=\"history-content\">\n\t\t@if (history().length > 0) {\n\t\t\t<div class=\"search-section\">\n\t\t\t\t<div class=\"flex justify-content-center align-items-center grid p-fluid m-0\">\n\t\t\t\t\t<aril-text\n\t\t\t\t\t\tclass=\"col-10\"\n\t\t\t\t\t\t[placeholder]=\"t('searchHistory')\"\n\t\t\t\t\t\t[(ngModel)]=\"searchTerm\"\n\t\t\t\t\t\t(ngModelChange)=\"onSearchChange()\">\n\t\t\t\t\t</aril-text>\n\t\t\t\t\t<fa-icon\n\t\t\t\t\t\t[icon]=\"solidIcons.faTrash\"\n\t\t\t\t\t\tsize=\"xl\"\n\t\t\t\t\t\tstyle=\"color: var(--red-500)\"\n\t\t\t\t\t\tclass=\"col-2 cursor-pointer\"\n\t\t\t\t\t\t[pTooltip]=\"t('confirmClearAll')\"\n\t\t\t\t\t\ttooltipPosition=\"top\"\n\t\t\t\t\t\t(click)=\"clearAllHistory($event)\">\n\t\t\t\t\t</fa-icon>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t}\n\n\t\t@if (filteredHistory().length > 0) {\n\t\t\t<div class=\"history-list\">\n\t\t\t\t<p-scrollPanel [style]=\"{ width: '100%', height: '100%' }\">\n\t\t\t\t\t<div class=\"history-items\">\n\t\t\t\t\t\t@for (item of filteredHistory(); track trackByItemId($index, item)) {\n\t\t\t\t\t\t\t<div class=\"history-item\" (click)=\"navigateToItem(item)\">\n\t\t\t\t\t\t\t\t<div class=\"item-content\">\n\t\t\t\t\t\t\t\t\t<div class=\"item-header\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"item-title\">\n\t\t\t\t\t\t\t\t\t\t\t<i class=\"pi pi-external-link text-primary mr-2\"></i>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"title-info\">\n\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"title-text\">{{ getLocalizedTitle(item) }}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"route-text\">{{ item.url }}</span>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</p-scrollPanel>\n\t\t\t</div>\n\t\t} @else {\n\t\t\t<div class=\"empty-state\">\n\t\t\t\t<div class=\"empty-content\">\n\t\t\t\t\t<i class=\"pi pi-history empty-icon\"></i>\n\t\t\t\t\t<h3 class=\"empty-title\">\n\t\t\t\t\t\t{{ searchTerm() ? t('noSearchResults') : t('noHistory') }}\n\t\t\t\t\t</h3>\n\t\t\t\t\t<p class=\"empty-message\">\n\t\t\t\t\t\t{{ searchTerm() ? t('tryDifferentKeywords') : t('startBrowsing') }}\n\t\t\t\t\t</p>\n\t\t\t\t\t@if (searchTerm()) {\n\t\t\t\t\t\t<aril-button\n\t\t\t\t\t\t\t[label]=\"t('clearSearch')\"\n\t\t\t\t\t\t\ticon=\"TIMES\"\n\t\t\t\t\t\t\tcolor=\"secondary\"\n\t\t\t\t\t\t\t[outlined]=\"true\"\n\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t(clickEvent)=\"searchTerm.set(''); onSearchChange()\">\n\t\t\t\t\t\t</aril-button>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t}\n\t</div>\n\n\t<p-confirmDialog></p-confirmDialog>\n</p-sidebar>\n", styles: [":host ::ng-deep .layout-history-sidebar .p-sidebar-content{padding:0;background:var(--surface-ground)}:host ::ng-deep .layout-history-sidebar .p-sidebar-header{background:var(--primary-color);color:var(--primary-color-text);padding:1rem .5rem}:host ::ng-deep .layout-history-sidebar .p-sidebar-header i{color:var(--primary-color-text);font-size:1.1rem}:host ::ng-deep .layout-history-sidebar .p-sidebar-header span{font-size:1.1rem;font-weight:600;color:var(--primary-color-text)}.history-content{display:flex;flex-direction:column;height:100%;background:var(--surface-0)}.search-section{padding:1rem;border-bottom:1px solid var(--surface-border);background:var(--surface-0)}.history-list{flex:1;overflow:hidden}.history-items{padding:.5rem}.history-item{background:var(--surface-0);border:1px solid var(--surface-border);border-radius:8px;margin-bottom:.5rem;cursor:pointer;transition:all .2s ease;position:relative;overflow:hidden}.history-item:hover{border-color:var(--primary-200);background:var(--primary-50);transform:translateY(-1px);box-shadow:0 2px 8px #0000001a}.history-item:hover .remove-btn{opacity:1}.history-item:last-child{margin-bottom:0}.item-content{padding:1rem .75rem}.item-header{display:flex;align-items:center;justify-content:space-between}.item-title{display:flex;align-items:center;flex:1;min-width:0}.item-title .title-info{display:flex;flex-direction:column;flex:1;min-width:0}.item-title .title-text{font-weight:600;color:var(--text-color);font-size:1rem;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item-title .route-text{font-size:.75rem;color:var(--text-color-secondary);font-weight:400;line-height:1.2;margin-top:.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:.8}.empty-state{flex:1;display:flex;align-items:center;justify-content:center;padding:2rem}.empty-content{text-align:center;max-width:300px}.empty-icon{font-size:3rem;color:var(--text-color-secondary);margin-bottom:1rem;opacity:.5}.empty-title{font-size:1.1rem;font-weight:600;color:var(--text-color);margin-bottom:.5rem}.empty-message{font-size:.9rem;color:var(--text-color-secondary);line-height:1.4;margin-bottom:1.5rem}@media (max-width: 768px){.history-content{height:calc(100vh - 3.5rem)}.search-section{padding:.75rem}.item-content{padding:.5rem}.item-title .title-text{font-size:.85rem}}:host ::ng-deep .p-scrollpanel-bar-y{background:var(--primary-200);width:4px;border-radius:2px}:host ::ng-deep .p-scrollpanel-bar-y:hover{background:var(--primary-300)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: SidebarModule }, { kind: "component", type: i6$1.Sidebar, selector: "p-sidebar", inputs: ["appendTo", "blockScroll", "style", "styleClass", "ariaCloseLabel", "autoZIndex", "baseZIndex", "modal", "dismissible", "showCloseIcon", "closeOnEscape", "transitionOptions", "visible", "position", "fullScreen"], outputs: ["onShow", "onHide", "visibleChange"] }, { kind: "directive", type: i3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: ButtonComponent, selector: "aril-button:not([click])", inputs: ["label", "loading", "disabled", "raised", "rounded", "text", "outlined", "badge", "size", "icon", "iconPos", "color"], outputs: ["clickEvent"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "ngmodule", type: ScrollPanelModule }, { kind: "component", type: i7$1.ScrollPanel, selector: "p-scrollPanel", inputs: ["style", "styleClass", "step"] }, { kind: "ngmodule", type: ConfirmDialogModule }, { kind: "component", type: i8.ConfirmDialog, selector: "p-confirmDialog", inputs: ["header", "icon", "message", "style", "styleClass", "maskStyleClass", "acceptIcon", "acceptLabel", "closeAriaLabel", "acceptAriaLabel", "acceptVisible", "rejectIcon", "rejectLabel", "rejectAriaLabel", "rejectVisible", "acceptButtonStyleClass", "rejectButtonStyleClass", "closeOnEscape", "dismissableMask", "blockScroll", "rtl", "closable", "appendTo", "key", "autoZIndex", "baseZIndex", "transitionOptions", "focusTrap", "defaultFocus", "breakpoints", "visible", "position"], outputs: ["onHide"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i9.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "ngmodule", type: BadgeModule }, { kind: "ngmodule", type: TranslocoModule }, { kind: "directive", type: i5.TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: TextComponent, selector: "aril-text[ngModel], aril-text[formControl], aril-text[formControlName]", inputs: ["placeholder", "tabindex", "icon", "iconPos", "size"] }, { kind: "ngmodule", type: FontAwesomeModule }, { kind: "component", type: i10.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }] }); }
|
|
1082
1831
|
}
|
|
1083
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
1832
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HistorySidebarComponent, decorators: [{
|
|
1084
1833
|
type: Component,
|
|
1085
1834
|
args: [{ standalone: true, selector: 'app-history-sidebar', imports: [
|
|
1086
1835
|
CommonModule,
|
|
@@ -1095,7 +1844,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
1095
1844
|
TranslocoModule,
|
|
1096
1845
|
TextComponent,
|
|
1097
1846
|
FontAwesomeModule
|
|
1098
|
-
], providers: [ConfirmationService], template: "<p-sidebar\
|
|
1847
|
+
], providers: [ConfirmationService], template: "<p-sidebar\n\t[(visible)]=\"visible\"\n\tposition=\"right\"\n\t[transitionOptions]=\"'.3s cubic-bezier(0, 0, 0.2, 1)'\"\n\tstyleClass=\"layout-history-sidebar w-full sm:w-30rem\"\n\t*transloco=\"let t; read: 'history'\">\n\t<ng-template pTemplate=\"header\">\n\t\t<div class=\"flex align-items-center justify-content-between w-full\">\n\t\t\t<div class=\"flex align-items-center\">\n\t\t\t\t<i class=\"pi pi-history text-primary text-xl\"></i>\n\t\t\t\t<span class=\"font-bold text-lg\">{{ t('pageHistory') }}</span>\n\t\t\t</div>\n\t\t</div>\n\t</ng-template>\n\n\t<div class=\"history-content\">\n\t\t@if (history().length > 0) {\n\t\t\t<div class=\"search-section\">\n\t\t\t\t<div class=\"flex justify-content-center align-items-center grid p-fluid m-0\">\n\t\t\t\t\t<aril-text\n\t\t\t\t\t\tclass=\"col-10\"\n\t\t\t\t\t\t[placeholder]=\"t('searchHistory')\"\n\t\t\t\t\t\t[(ngModel)]=\"searchTerm\"\n\t\t\t\t\t\t(ngModelChange)=\"onSearchChange()\">\n\t\t\t\t\t</aril-text>\n\t\t\t\t\t<fa-icon\n\t\t\t\t\t\t[icon]=\"solidIcons.faTrash\"\n\t\t\t\t\t\tsize=\"xl\"\n\t\t\t\t\t\tstyle=\"color: var(--red-500)\"\n\t\t\t\t\t\tclass=\"col-2 cursor-pointer\"\n\t\t\t\t\t\t[pTooltip]=\"t('confirmClearAll')\"\n\t\t\t\t\t\ttooltipPosition=\"top\"\n\t\t\t\t\t\t(click)=\"clearAllHistory($event)\">\n\t\t\t\t\t</fa-icon>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t}\n\n\t\t@if (filteredHistory().length > 0) {\n\t\t\t<div class=\"history-list\">\n\t\t\t\t<p-scrollPanel [style]=\"{ width: '100%', height: '100%' }\">\n\t\t\t\t\t<div class=\"history-items\">\n\t\t\t\t\t\t@for (item of filteredHistory(); track trackByItemId($index, item)) {\n\t\t\t\t\t\t\t<div class=\"history-item\" (click)=\"navigateToItem(item)\">\n\t\t\t\t\t\t\t\t<div class=\"item-content\">\n\t\t\t\t\t\t\t\t\t<div class=\"item-header\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"item-title\">\n\t\t\t\t\t\t\t\t\t\t\t<i class=\"pi pi-external-link text-primary mr-2\"></i>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"title-info\">\n\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"title-text\">{{ getLocalizedTitle(item) }}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"route-text\">{{ item.url }}</span>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</p-scrollPanel>\n\t\t\t</div>\n\t\t} @else {\n\t\t\t<div class=\"empty-state\">\n\t\t\t\t<div class=\"empty-content\">\n\t\t\t\t\t<i class=\"pi pi-history empty-icon\"></i>\n\t\t\t\t\t<h3 class=\"empty-title\">\n\t\t\t\t\t\t{{ searchTerm() ? t('noSearchResults') : t('noHistory') }}\n\t\t\t\t\t</h3>\n\t\t\t\t\t<p class=\"empty-message\">\n\t\t\t\t\t\t{{ searchTerm() ? t('tryDifferentKeywords') : t('startBrowsing') }}\n\t\t\t\t\t</p>\n\t\t\t\t\t@if (searchTerm()) {\n\t\t\t\t\t\t<aril-button\n\t\t\t\t\t\t\t[label]=\"t('clearSearch')\"\n\t\t\t\t\t\t\ticon=\"TIMES\"\n\t\t\t\t\t\t\tcolor=\"secondary\"\n\t\t\t\t\t\t\t[outlined]=\"true\"\n\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t(clickEvent)=\"searchTerm.set(''); onSearchChange()\">\n\t\t\t\t\t\t</aril-button>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t}\n\t</div>\n\n\t<p-confirmDialog></p-confirmDialog>\n</p-sidebar>\n", styles: [":host ::ng-deep .layout-history-sidebar .p-sidebar-content{padding:0;background:var(--surface-ground)}:host ::ng-deep .layout-history-sidebar .p-sidebar-header{background:var(--primary-color);color:var(--primary-color-text);padding:1rem .5rem}:host ::ng-deep .layout-history-sidebar .p-sidebar-header i{color:var(--primary-color-text);font-size:1.1rem}:host ::ng-deep .layout-history-sidebar .p-sidebar-header span{font-size:1.1rem;font-weight:600;color:var(--primary-color-text)}.history-content{display:flex;flex-direction:column;height:100%;background:var(--surface-0)}.search-section{padding:1rem;border-bottom:1px solid var(--surface-border);background:var(--surface-0)}.history-list{flex:1;overflow:hidden}.history-items{padding:.5rem}.history-item{background:var(--surface-0);border:1px solid var(--surface-border);border-radius:8px;margin-bottom:.5rem;cursor:pointer;transition:all .2s ease;position:relative;overflow:hidden}.history-item:hover{border-color:var(--primary-200);background:var(--primary-50);transform:translateY(-1px);box-shadow:0 2px 8px #0000001a}.history-item:hover .remove-btn{opacity:1}.history-item:last-child{margin-bottom:0}.item-content{padding:1rem .75rem}.item-header{display:flex;align-items:center;justify-content:space-between}.item-title{display:flex;align-items:center;flex:1;min-width:0}.item-title .title-info{display:flex;flex-direction:column;flex:1;min-width:0}.item-title .title-text{font-weight:600;color:var(--text-color);font-size:1rem;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item-title .route-text{font-size:.75rem;color:var(--text-color-secondary);font-weight:400;line-height:1.2;margin-top:.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:.8}.empty-state{flex:1;display:flex;align-items:center;justify-content:center;padding:2rem}.empty-content{text-align:center;max-width:300px}.empty-icon{font-size:3rem;color:var(--text-color-secondary);margin-bottom:1rem;opacity:.5}.empty-title{font-size:1.1rem;font-weight:600;color:var(--text-color);margin-bottom:.5rem}.empty-message{font-size:.9rem;color:var(--text-color-secondary);line-height:1.4;margin-bottom:1.5rem}@media (max-width: 768px){.history-content{height:calc(100vh - 3.5rem)}.search-section{padding:.75rem}.item-content{padding:.5rem}.item-title .title-text{font-size:.85rem}}:host ::ng-deep .p-scrollpanel-bar-y{background:var(--primary-200);width:4px;border-radius:2px}:host ::ng-deep .p-scrollpanel-bar-y:hover{background:var(--primary-300)}\n"] }]
|
|
1099
1848
|
}], ctorParameters: () => [{ type: LayoutService }, { type: HistoryService }, { type: i3.ConfirmationService }, { type: i3.MessageService }, { type: i5.TranslocoService }] });
|
|
1100
1849
|
|
|
1101
1850
|
class SiteMapSidebarComponent {
|
|
@@ -1221,10 +1970,10 @@ class SiteMapSidebarComponent {
|
|
|
1221
1970
|
trackByKey(index, node) {
|
|
1222
1971
|
return node.key || `${index}`;
|
|
1223
1972
|
}
|
|
1224
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
1225
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: SiteMapSidebarComponent, isStandalone: true, selector: "app-site-map-sidebar", ngImport: i0, template: "<p-sidebar\r\n\t[(visible)]=\"visible\"\r\n\tposition=\"right\"\r\n\t[transitionOptions]=\"'.3s cubic-bezier(0, 0, 0.2, 1)'\"\r\n\tstyleClass=\"layout-sitemap-sidebar w-full sm:w-30rem\"\r\n\t*transloco=\"let t; read: 'siteMap'\">\r\n\t<ng-template pTemplate=\"header\">\r\n\t\t<div class=\"flex align-items-center justify-content-between gap-2 w-full\">\r\n\t\t\t<div class=\"flex align-items-center gap-2\">\r\n\t\t\t\t<i class=\"pi pi-sitemap text-primary text-xl\"></i>\r\n\t\t\t\t<span class=\"font-bold text-lg\">{{ t('siteMap') }}</span>\r\n\t\t\t\t<span class=\"total-pages\">{{ totalPages() }} {{ t('pages') }}</span>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</ng-template>\r\n\r\n\t<div class=\"sitemap-content\">\r\n\t\t<div class=\"search-section grid p-fluid m-0\">\r\n\t\t\t<aril-text\r\n\t\t\t\t[placeholder]=\"t('searchPages')\"\r\n\t\t\t\t[(ngModel)]=\"searchTerm\"\r\n\t\t\t\t(ngModelChange)=\"onSearchChange()\"\r\n\t\t\t\tclass=\"col-10 m-0\">\r\n\t\t\t</aril-text>\r\n\t\t\t@if (filteredNodes().length > 0) {\r\n\t\t\t<div class=\"col-2 flex align-items-center m-0 p-0\">\r\n\t\t\t\t\t<fa-icon\r\n\t\t\t\t\t\t[icon]=\"solidIcons.faAnglesDown\"\r\n\t\t\t\t\t\tsize=\"xl\"\r\n\t\t\t\t\t\tstyle=\"color: var(--primary-color)\"\r\n\t\t\t\t\t\tclass=\"col-1 cursor-pointer\"\r\n\t\t\t\t\t\t[pTooltip]=\"t('expandAll')\"\r\n\t\t\t\t\t\ttooltipPosition=\"top\"\r\n\t\t\t\t\t\t(click)=\"expandAll()\">\r\n\t\t\t\t\t</fa-icon>\r\n\t\t\t\t\t<fa-icon\r\n\t\t\t\t\t\t[icon]=\"solidIcons.faAnglesUp\"\r\n\t\t\t\t\t\tsize=\"xl\"\r\n\t\t\t\t\t\tstyle=\"color: var(--red-500)\"\r\n\t\t\t\t\t\tclass=\"col-1 ml-3 cursor-pointer\"\r\n\t\t\t\t\t\t[pTooltip]=\"t('collapseAll')\"\r\n\t\t\t\t\t\ttooltipPosition=\"top\"\r\n\t\t\t\t\t\t(click)=\"collapseAll()\">\r\n\t\t\t\t\t</fa-icon>\r\n\t\t\t\t</div>\r\n\t\t\t}\r\n\t\t</div>\r\n\r\n\t\t<!-- Site Map Tree -->\r\n\t\t@if (filteredNodes().length > 0) {\r\n\t\t\t<div class=\"sitemap-tree\">\r\n\t\t\t\t<p-scrollPanel [style]=\"{ width: '100%', height: '100%' }\">\r\n\t\t\t\t\t<div class=\"tree-container\">\r\n\t\t\t\t\t\t@for (node of filteredNodes(); track trackByKey($index, node)) {\r\n\t\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"treeNodeTemplate; context: { $implicit: node, level: 0 }\"></ng-container>\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</p-scrollPanel>\r\n\t\t\t</div>\r\n\t\t} @else {\r\n\t\t\t<div class=\"empty-state\">\r\n\t\t\t\t<div class=\"empty-content\">\r\n\t\t\t\t\t<i class=\"pi pi-sitemap empty-icon\"></i>\r\n\t\t\t\t\t<h3 class=\"empty-title\">\r\n\t\t\t\t\t\t{{ searchTerm() ? t('noSearchResults') : t('noPages') }}\r\n\t\t\t\t\t</h3>\r\n\t\t\t\t\t<p class=\"empty-message\">\r\n\t\t\t\t\t\t{{ searchTerm() ? t('tryDifferentKeywords') : '' }}\r\n\t\t\t\t\t</p>\r\n\t\t\t\t\t@if (searchTerm()) {\r\n\t\t\t\t\t\t<aril-button\r\n\t\t\t\t\t\t\t[label]=\"t('clearSearch')\"\r\n\t\t\t\t\t\t\ticon=\"TIMES\"\r\n\t\t\t\t\t\t\tcolor=\"secondary\"\r\n\t\t\t\t\t\t\t[outlined]=\"true\"\r\n\t\t\t\t\t\t\tsize=\"sm\"\r\n\t\t\t\t\t\t\t(clickEvent)=\"searchTerm.set(''); onSearchChange()\">\r\n\t\t\t\t\t\t</aril-button>\r\n\t\t\t\t\t}\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t}\r\n\r\n\t\t<!-- Recursive Tree Node Template -->\r\n\t\t<ng-template #treeNodeTemplate let-node let-level=\"level\">\r\n\t\t\t<div class=\"tree-node\" [style.margin-left.px]=\"level * 20\">\r\n\t\t\t\t<div\r\n\t\t\t\t\tclass=\"node-item\"\r\n\t\t\t\t\t[class.has-children]=\"node.children && node.children.length > 0\"\r\n\t\t\t\t\t[class.is-page]=\"node.routerLink\"\r\n\t\t\t\t\t[routerLink]=\"node.routerLink\"\r\n\t\t\t\t\t(click)=\"!node.routerLink ? toggleNode(node) : (visible = false)\">\r\n\t\t\t\t\t<div class=\"node-content\">\r\n\t\t\t\t\t\t@if (node.children && node.children.length > 0) {\r\n\t\t\t\t\t\t\t<div class=\"toggle-btn\" (click)=\"$event.stopPropagation(); toggleNode(node)\">\r\n\t\t\t\t\t\t\t\t<i class=\"pi\" [class.pi-chevron-right]=\"!node.expanded\" [class.pi-chevron-down]=\"node.expanded\"></i>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t@if (node.icon) {\r\n\t\t\t\t\t\t\t<i class=\"node-icon\" [class]=\"node.icon\"></i>\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t<span class=\"node-label\">{{ node.label | translateJson }}</span>\r\n\r\n\t\t\t\t\t\t@if (node.routerLink) {\r\n\t\t\t\t\t\t\t<i class=\"external-icon pi pi-external-link\"></i>\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\r\n\t\t\t\t<!-- Recursive Children -->\r\n\t\t\t\t@if (node.children && node.expanded) {\r\n\t\t\t\t\t@for (child of node.children; track trackByKey($index, child)) {\r\n\t\t\t\t\t\t<ng-container\r\n\t\t\t\t\t\t\t*ngTemplateOutlet=\"treeNodeTemplate; context: { $implicit: child, level: level + 1 }\"></ng-container>\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t</ng-template>\r\n\t</div>\r\n</p-sidebar>\r\n", styles: [":host ::ng-deep .layout-sitemap-sidebar .p-sidebar-content{padding:0;background:var(--surface-ground)}:host ::ng-deep .layout-sitemap-sidebar .p-sidebar-header{background:var(--primary-color);color:var(--primary-color-text);padding:1rem .5rem}:host ::ng-deep .layout-sitemap-sidebar .p-sidebar-header span{font-size:1.1rem;font-weight:600}:host ::ng-deep .layout-sitemap-sidebar .p-sidebar-header .total-pages{background:#fff3;color:#ffffffe6;padding:.25rem .5rem;border-radius:12px;font-size:.75rem;font-weight:500}.sitemap-content{display:flex;flex-direction:column;height:100%;background:var(--surface-ground)}.search-section{padding:1rem;border-bottom:1px solid var(--surface-border);background:var(--surface-0)}.sitemap-tree{flex:1;overflow:hidden}.tree-container{padding:.5rem 0}.tree-node .node-item{display:flex;align-items:center;padding:.5rem 1rem;border-radius:6px;margin:.1rem .5rem;cursor:pointer;transition:all .2s ease;border:1px solid transparent}.tree-node .node-item:hover{background:var(--surface-hover);border-color:var(--surface-border)}.tree-node .node-item.is-page:hover{background:var(--primary-50);border-color:var(--primary-200)}.tree-node .node-item.is-page:hover .external-icon{opacity:1}.tree-node .node-item.has-children{font-weight:500}.tree-node .node-content{display:flex;align-items:center;gap:.5rem;width:100%;min-width:0}.tree-node .toggle-btn{display:flex;align-items:center;justify-content:center;width:20px;height:20px;background:transparent;border:none;border-radius:4px;color:var(--text-color-secondary);cursor:pointer;transition:all .2s ease;flex-shrink:0}.tree-node .toggle-btn:hover{background:var(--surface-hover);color:var(--primary-color)}.tree-node .toggle-btn i{font-size:.7rem}.tree-node .node-icon{color:var(--primary-color);font-size:.9rem;flex-shrink:0}.tree-node .node-label{flex:1;font-size:.9rem;color:var(--text-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tree-node .external-icon{color:var(--text-color-secondary);font-size:.7rem;opacity:.6;transition:opacity .2s ease;flex-shrink:0}.empty-state{flex:1;display:flex;align-items:center;justify-content:center;padding:2rem}.empty-content{text-align:center;max-width:300px}.empty-icon{font-size:3rem;color:var(--text-color-secondary);margin-bottom:1rem;opacity:.5}.empty-message{font-size:.9rem;color:var(--text-color-secondary);line-height:1.4;margin-bottom:1.5rem}:host ::ng-deep .p-scrollpanel-bar-y{background:var(--primary-200);width:4px;border-radius:2px}:host ::ng-deep .p-scrollpanel-bar-y:hover{background:var(--primary-300)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: SidebarModule }, { kind: "component", type: i6$1.Sidebar, selector: "p-sidebar", inputs: ["appendTo", "blockScroll", "style", "styleClass", "ariaCloseLabel", "autoZIndex", "baseZIndex", "modal", "dismissible", "showCloseIcon", "closeOnEscape", "transitionOptions", "visible", "position", "fullScreen"], outputs: ["onShow", "onHide", "visibleChange"] }, { kind: "directive", type: i3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "ngmodule", type: ScrollPanelModule }, { kind: "component", type: i7$1.ScrollPanel, selector: "p-scrollPanel", inputs: ["style", "styleClass", "step"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i9.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "component", type: ButtonComponent, selector: "aril-button:not([click])", inputs: ["label", "loading", "disabled", "raised", "rounded", "text", "outlined", "badge", "size", "icon", "iconPos", "color"], outputs: ["clickEvent"] }, { kind: "component", type: TextComponent, selector: "aril-text[ngModel], aril-text[formControl], aril-text[formControlName]", inputs: ["placeholder", "tabindex", "icon", "iconPos", "size"] }, { kind: "ngmodule", type: TranslocoModule }, { kind: "directive", type: i5.TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoLang", "translocoLoadingTpl"] }, { kind: "pipe", type: TranslateJsonPipe, name: "translateJson" }, { kind: "ngmodule", type: FontAwesomeModule }, { kind: "component", type: i10.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }] }); }
|
|
1973
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SiteMapSidebarComponent, deps: [{ token: LayoutService }, { token: i5.TranslocoService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1974
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: SiteMapSidebarComponent, isStandalone: true, selector: "app-site-map-sidebar", ngImport: i0, template: "<p-sidebar\n\t[(visible)]=\"visible\"\n\tposition=\"right\"\n\t[transitionOptions]=\"'.3s cubic-bezier(0, 0, 0.2, 1)'\"\n\tstyleClass=\"layout-sitemap-sidebar w-full sm:w-30rem\"\n\t*transloco=\"let t; read: 'siteMap'\">\n\t<ng-template pTemplate=\"header\">\n\t\t<div class=\"flex align-items-center justify-content-between gap-2 w-full\">\n\t\t\t<div class=\"flex align-items-center gap-2\">\n\t\t\t\t<i class=\"pi pi-sitemap text-primary text-xl\"></i>\n\t\t\t\t<span class=\"font-bold text-lg\">{{ t('siteMap') }}</span>\n\t\t\t\t<span class=\"total-pages\">{{ totalPages() }} {{ t('pages') }}</span>\n\t\t\t</div>\n\t\t</div>\n\t</ng-template>\n\n\t<div class=\"sitemap-content\">\n\t\t<div class=\"search-section grid p-fluid m-0\">\n\t\t\t<aril-text\n\t\t\t\t[placeholder]=\"t('searchPages')\"\n\t\t\t\t[(ngModel)]=\"searchTerm\"\n\t\t\t\t(ngModelChange)=\"onSearchChange()\"\n\t\t\t\tclass=\"col-10 m-0\">\n\t\t\t</aril-text>\n\t\t\t@if (filteredNodes().length > 0) {\n\t\t\t<div class=\"col-2 flex align-items-center m-0 p-0\">\n\t\t\t\t\t<fa-icon\n\t\t\t\t\t\t[icon]=\"solidIcons.faAnglesDown\"\n\t\t\t\t\t\tsize=\"xl\"\n\t\t\t\t\t\tstyle=\"color: var(--primary-color)\"\n\t\t\t\t\t\tclass=\"col-1 cursor-pointer\"\n\t\t\t\t\t\t[pTooltip]=\"t('expandAll')\"\n\t\t\t\t\t\ttooltipPosition=\"top\"\n\t\t\t\t\t\t(click)=\"expandAll()\">\n\t\t\t\t\t</fa-icon>\n\t\t\t\t\t<fa-icon\n\t\t\t\t\t\t[icon]=\"solidIcons.faAnglesUp\"\n\t\t\t\t\t\tsize=\"xl\"\n\t\t\t\t\t\tstyle=\"color: var(--red-500)\"\n\t\t\t\t\t\tclass=\"col-1 ml-3 cursor-pointer\"\n\t\t\t\t\t\t[pTooltip]=\"t('collapseAll')\"\n\t\t\t\t\t\ttooltipPosition=\"top\"\n\t\t\t\t\t\t(click)=\"collapseAll()\">\n\t\t\t\t\t</fa-icon>\n\t\t\t\t</div>\n\t\t\t}\n\t\t</div>\n\n\t\t<!-- Site Map Tree -->\n\t\t@if (filteredNodes().length > 0) {\n\t\t\t<div class=\"sitemap-tree\">\n\t\t\t\t<p-scrollPanel [style]=\"{ width: '100%', height: '100%' }\">\n\t\t\t\t\t<div class=\"tree-container\">\n\t\t\t\t\t\t@for (node of filteredNodes(); track trackByKey($index, node)) {\n\t\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"treeNodeTemplate; context: { $implicit: node, level: 0 }\"></ng-container>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</p-scrollPanel>\n\t\t\t</div>\n\t\t} @else {\n\t\t\t<div class=\"empty-state\">\n\t\t\t\t<div class=\"empty-content\">\n\t\t\t\t\t<i class=\"pi pi-sitemap empty-icon\"></i>\n\t\t\t\t\t<h3 class=\"empty-title\">\n\t\t\t\t\t\t{{ searchTerm() ? t('noSearchResults') : t('noPages') }}\n\t\t\t\t\t</h3>\n\t\t\t\t\t<p class=\"empty-message\">\n\t\t\t\t\t\t{{ searchTerm() ? t('tryDifferentKeywords') : '' }}\n\t\t\t\t\t</p>\n\t\t\t\t\t@if (searchTerm()) {\n\t\t\t\t\t\t<aril-button\n\t\t\t\t\t\t\t[label]=\"t('clearSearch')\"\n\t\t\t\t\t\t\ticon=\"TIMES\"\n\t\t\t\t\t\t\tcolor=\"secondary\"\n\t\t\t\t\t\t\t[outlined]=\"true\"\n\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t(clickEvent)=\"searchTerm.set(''); onSearchChange()\">\n\t\t\t\t\t\t</aril-button>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t}\n\n\t\t<!-- Recursive Tree Node Template -->\n\t\t<ng-template #treeNodeTemplate let-node let-level=\"level\">\n\t\t\t<div class=\"tree-node\" [style.margin-left.px]=\"level * 20\">\n\t\t\t\t<div\n\t\t\t\t\tclass=\"node-item\"\n\t\t\t\t\t[class.has-children]=\"node.children && node.children.length > 0\"\n\t\t\t\t\t[class.is-page]=\"node.routerLink\"\n\t\t\t\t\t[routerLink]=\"node.routerLink\"\n\t\t\t\t\t(click)=\"!node.routerLink ? toggleNode(node) : (visible = false)\">\n\t\t\t\t\t<div class=\"node-content\">\n\t\t\t\t\t\t@if (node.children && node.children.length > 0) {\n\t\t\t\t\t\t\t<div class=\"toggle-btn\" (click)=\"$event.stopPropagation(); toggleNode(node)\">\n\t\t\t\t\t\t\t\t<i class=\"pi\" [class.pi-chevron-right]=\"!node.expanded\" [class.pi-chevron-down]=\"node.expanded\"></i>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@if (node.icon) {\n\t\t\t\t\t\t\t<i class=\"node-icon\" [class]=\"node.icon\"></i>\n\t\t\t\t\t\t}\n\t\t\t\t\t\t<span class=\"node-label\">{{ node.label | translateJson }}</span>\n\n\t\t\t\t\t\t@if (node.routerLink) {\n\t\t\t\t\t\t\t<i class=\"external-icon pi pi-external-link\"></i>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\n\t\t\t\t<!-- Recursive Children -->\n\t\t\t\t@if (node.children && node.expanded) {\n\t\t\t\t\t@for (child of node.children; track trackByKey($index, child)) {\n\t\t\t\t\t\t<ng-container\n\t\t\t\t\t\t\t*ngTemplateOutlet=\"treeNodeTemplate; context: { $implicit: child, level: level + 1 }\"></ng-container>\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t</div>\n\t\t</ng-template>\n\t</div>\n</p-sidebar>\n", styles: [":host ::ng-deep .layout-sitemap-sidebar .p-sidebar-content{padding:0;background:var(--surface-ground)}:host ::ng-deep .layout-sitemap-sidebar .p-sidebar-header{background:var(--primary-color);color:var(--primary-color-text);padding:1rem .5rem}:host ::ng-deep .layout-sitemap-sidebar .p-sidebar-header span{font-size:1.1rem;font-weight:600}:host ::ng-deep .layout-sitemap-sidebar .p-sidebar-header .total-pages{background:#fff3;color:#ffffffe6;padding:.25rem .5rem;border-radius:12px;font-size:.75rem;font-weight:500}.sitemap-content{display:flex;flex-direction:column;height:100%;background:var(--surface-ground)}.search-section{padding:1rem;border-bottom:1px solid var(--surface-border);background:var(--surface-0)}.sitemap-tree{flex:1;overflow:hidden}.tree-container{padding:.5rem 0}.tree-node .node-item{display:flex;align-items:center;padding:.5rem 1rem;border-radius:6px;margin:.1rem .5rem;cursor:pointer;transition:all .2s ease;border:1px solid transparent}.tree-node .node-item:hover{background:var(--surface-hover);border-color:var(--surface-border)}.tree-node .node-item.is-page:hover{background:var(--primary-50);border-color:var(--primary-200)}.tree-node .node-item.is-page:hover .external-icon{opacity:1}.tree-node .node-item.has-children{font-weight:500}.tree-node .node-content{display:flex;align-items:center;gap:.5rem;width:100%;min-width:0}.tree-node .toggle-btn{display:flex;align-items:center;justify-content:center;width:20px;height:20px;background:transparent;border:none;border-radius:4px;color:var(--text-color-secondary);cursor:pointer;transition:all .2s ease;flex-shrink:0}.tree-node .toggle-btn:hover{background:var(--surface-hover);color:var(--primary-color)}.tree-node .toggle-btn i{font-size:.7rem}.tree-node .node-icon{color:var(--primary-color);font-size:.9rem;flex-shrink:0}.tree-node .node-label{flex:1;font-size:.9rem;color:var(--text-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tree-node .external-icon{color:var(--text-color-secondary);font-size:.7rem;opacity:.6;transition:opacity .2s ease;flex-shrink:0}.empty-state{flex:1;display:flex;align-items:center;justify-content:center;padding:2rem}.empty-content{text-align:center;max-width:300px}.empty-icon{font-size:3rem;color:var(--text-color-secondary);margin-bottom:1rem;opacity:.5}.empty-message{font-size:.9rem;color:var(--text-color-secondary);line-height:1.4;margin-bottom:1.5rem}:host ::ng-deep .p-scrollpanel-bar-y{background:var(--primary-200);width:4px;border-radius:2px}:host ::ng-deep .p-scrollpanel-bar-y:hover{background:var(--primary-300)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: SidebarModule }, { kind: "component", type: i6$1.Sidebar, selector: "p-sidebar", inputs: ["appendTo", "blockScroll", "style", "styleClass", "ariaCloseLabel", "autoZIndex", "baseZIndex", "modal", "dismissible", "showCloseIcon", "closeOnEscape", "transitionOptions", "visible", "position", "fullScreen"], outputs: ["onShow", "onHide", "visibleChange"] }, { kind: "directive", type: i3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "ngmodule", type: ScrollPanelModule }, { kind: "component", type: i7$1.ScrollPanel, selector: "p-scrollPanel", inputs: ["style", "styleClass", "step"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i9.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "component", type: ButtonComponent, selector: "aril-button:not([click])", inputs: ["label", "loading", "disabled", "raised", "rounded", "text", "outlined", "badge", "size", "icon", "iconPos", "color"], outputs: ["clickEvent"] }, { kind: "component", type: TextComponent, selector: "aril-text[ngModel], aril-text[formControl], aril-text[formControlName]", inputs: ["placeholder", "tabindex", "icon", "iconPos", "size"] }, { kind: "ngmodule", type: TranslocoModule }, { kind: "directive", type: i5.TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoLang", "translocoLoadingTpl"] }, { kind: "pipe", type: TranslateJsonPipe, name: "translateJson" }, { kind: "ngmodule", type: FontAwesomeModule }, { kind: "component", type: i10.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }] }); }
|
|
1226
1975
|
}
|
|
1227
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
1976
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SiteMapSidebarComponent, decorators: [{
|
|
1228
1977
|
type: Component,
|
|
1229
1978
|
args: [{ standalone: true, selector: 'app-site-map-sidebar', imports: [
|
|
1230
1979
|
CommonModule,
|
|
@@ -1238,7 +1987,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
1238
1987
|
TranslocoModule,
|
|
1239
1988
|
TranslateJsonPipe,
|
|
1240
1989
|
FontAwesomeModule
|
|
1241
|
-
], template: "<p-sidebar\
|
|
1990
|
+
], template: "<p-sidebar\n\t[(visible)]=\"visible\"\n\tposition=\"right\"\n\t[transitionOptions]=\"'.3s cubic-bezier(0, 0, 0.2, 1)'\"\n\tstyleClass=\"layout-sitemap-sidebar w-full sm:w-30rem\"\n\t*transloco=\"let t; read: 'siteMap'\">\n\t<ng-template pTemplate=\"header\">\n\t\t<div class=\"flex align-items-center justify-content-between gap-2 w-full\">\n\t\t\t<div class=\"flex align-items-center gap-2\">\n\t\t\t\t<i class=\"pi pi-sitemap text-primary text-xl\"></i>\n\t\t\t\t<span class=\"font-bold text-lg\">{{ t('siteMap') }}</span>\n\t\t\t\t<span class=\"total-pages\">{{ totalPages() }} {{ t('pages') }}</span>\n\t\t\t</div>\n\t\t</div>\n\t</ng-template>\n\n\t<div class=\"sitemap-content\">\n\t\t<div class=\"search-section grid p-fluid m-0\">\n\t\t\t<aril-text\n\t\t\t\t[placeholder]=\"t('searchPages')\"\n\t\t\t\t[(ngModel)]=\"searchTerm\"\n\t\t\t\t(ngModelChange)=\"onSearchChange()\"\n\t\t\t\tclass=\"col-10 m-0\">\n\t\t\t</aril-text>\n\t\t\t@if (filteredNodes().length > 0) {\n\t\t\t<div class=\"col-2 flex align-items-center m-0 p-0\">\n\t\t\t\t\t<fa-icon\n\t\t\t\t\t\t[icon]=\"solidIcons.faAnglesDown\"\n\t\t\t\t\t\tsize=\"xl\"\n\t\t\t\t\t\tstyle=\"color: var(--primary-color)\"\n\t\t\t\t\t\tclass=\"col-1 cursor-pointer\"\n\t\t\t\t\t\t[pTooltip]=\"t('expandAll')\"\n\t\t\t\t\t\ttooltipPosition=\"top\"\n\t\t\t\t\t\t(click)=\"expandAll()\">\n\t\t\t\t\t</fa-icon>\n\t\t\t\t\t<fa-icon\n\t\t\t\t\t\t[icon]=\"solidIcons.faAnglesUp\"\n\t\t\t\t\t\tsize=\"xl\"\n\t\t\t\t\t\tstyle=\"color: var(--red-500)\"\n\t\t\t\t\t\tclass=\"col-1 ml-3 cursor-pointer\"\n\t\t\t\t\t\t[pTooltip]=\"t('collapseAll')\"\n\t\t\t\t\t\ttooltipPosition=\"top\"\n\t\t\t\t\t\t(click)=\"collapseAll()\">\n\t\t\t\t\t</fa-icon>\n\t\t\t\t</div>\n\t\t\t}\n\t\t</div>\n\n\t\t<!-- Site Map Tree -->\n\t\t@if (filteredNodes().length > 0) {\n\t\t\t<div class=\"sitemap-tree\">\n\t\t\t\t<p-scrollPanel [style]=\"{ width: '100%', height: '100%' }\">\n\t\t\t\t\t<div class=\"tree-container\">\n\t\t\t\t\t\t@for (node of filteredNodes(); track trackByKey($index, node)) {\n\t\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"treeNodeTemplate; context: { $implicit: node, level: 0 }\"></ng-container>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</p-scrollPanel>\n\t\t\t</div>\n\t\t} @else {\n\t\t\t<div class=\"empty-state\">\n\t\t\t\t<div class=\"empty-content\">\n\t\t\t\t\t<i class=\"pi pi-sitemap empty-icon\"></i>\n\t\t\t\t\t<h3 class=\"empty-title\">\n\t\t\t\t\t\t{{ searchTerm() ? t('noSearchResults') : t('noPages') }}\n\t\t\t\t\t</h3>\n\t\t\t\t\t<p class=\"empty-message\">\n\t\t\t\t\t\t{{ searchTerm() ? t('tryDifferentKeywords') : '' }}\n\t\t\t\t\t</p>\n\t\t\t\t\t@if (searchTerm()) {\n\t\t\t\t\t\t<aril-button\n\t\t\t\t\t\t\t[label]=\"t('clearSearch')\"\n\t\t\t\t\t\t\ticon=\"TIMES\"\n\t\t\t\t\t\t\tcolor=\"secondary\"\n\t\t\t\t\t\t\t[outlined]=\"true\"\n\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t(clickEvent)=\"searchTerm.set(''); onSearchChange()\">\n\t\t\t\t\t\t</aril-button>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t}\n\n\t\t<!-- Recursive Tree Node Template -->\n\t\t<ng-template #treeNodeTemplate let-node let-level=\"level\">\n\t\t\t<div class=\"tree-node\" [style.margin-left.px]=\"level * 20\">\n\t\t\t\t<div\n\t\t\t\t\tclass=\"node-item\"\n\t\t\t\t\t[class.has-children]=\"node.children && node.children.length > 0\"\n\t\t\t\t\t[class.is-page]=\"node.routerLink\"\n\t\t\t\t\t[routerLink]=\"node.routerLink\"\n\t\t\t\t\t(click)=\"!node.routerLink ? toggleNode(node) : (visible = false)\">\n\t\t\t\t\t<div class=\"node-content\">\n\t\t\t\t\t\t@if (node.children && node.children.length > 0) {\n\t\t\t\t\t\t\t<div class=\"toggle-btn\" (click)=\"$event.stopPropagation(); toggleNode(node)\">\n\t\t\t\t\t\t\t\t<i class=\"pi\" [class.pi-chevron-right]=\"!node.expanded\" [class.pi-chevron-down]=\"node.expanded\"></i>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@if (node.icon) {\n\t\t\t\t\t\t\t<i class=\"node-icon\" [class]=\"node.icon\"></i>\n\t\t\t\t\t\t}\n\t\t\t\t\t\t<span class=\"node-label\">{{ node.label | translateJson }}</span>\n\n\t\t\t\t\t\t@if (node.routerLink) {\n\t\t\t\t\t\t\t<i class=\"external-icon pi pi-external-link\"></i>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\n\t\t\t\t<!-- Recursive Children -->\n\t\t\t\t@if (node.children && node.expanded) {\n\t\t\t\t\t@for (child of node.children; track trackByKey($index, child)) {\n\t\t\t\t\t\t<ng-container\n\t\t\t\t\t\t\t*ngTemplateOutlet=\"treeNodeTemplate; context: { $implicit: child, level: level + 1 }\"></ng-container>\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t</div>\n\t\t</ng-template>\n\t</div>\n</p-sidebar>\n", styles: [":host ::ng-deep .layout-sitemap-sidebar .p-sidebar-content{padding:0;background:var(--surface-ground)}:host ::ng-deep .layout-sitemap-sidebar .p-sidebar-header{background:var(--primary-color);color:var(--primary-color-text);padding:1rem .5rem}:host ::ng-deep .layout-sitemap-sidebar .p-sidebar-header span{font-size:1.1rem;font-weight:600}:host ::ng-deep .layout-sitemap-sidebar .p-sidebar-header .total-pages{background:#fff3;color:#ffffffe6;padding:.25rem .5rem;border-radius:12px;font-size:.75rem;font-weight:500}.sitemap-content{display:flex;flex-direction:column;height:100%;background:var(--surface-ground)}.search-section{padding:1rem;border-bottom:1px solid var(--surface-border);background:var(--surface-0)}.sitemap-tree{flex:1;overflow:hidden}.tree-container{padding:.5rem 0}.tree-node .node-item{display:flex;align-items:center;padding:.5rem 1rem;border-radius:6px;margin:.1rem .5rem;cursor:pointer;transition:all .2s ease;border:1px solid transparent}.tree-node .node-item:hover{background:var(--surface-hover);border-color:var(--surface-border)}.tree-node .node-item.is-page:hover{background:var(--primary-50);border-color:var(--primary-200)}.tree-node .node-item.is-page:hover .external-icon{opacity:1}.tree-node .node-item.has-children{font-weight:500}.tree-node .node-content{display:flex;align-items:center;gap:.5rem;width:100%;min-width:0}.tree-node .toggle-btn{display:flex;align-items:center;justify-content:center;width:20px;height:20px;background:transparent;border:none;border-radius:4px;color:var(--text-color-secondary);cursor:pointer;transition:all .2s ease;flex-shrink:0}.tree-node .toggle-btn:hover{background:var(--surface-hover);color:var(--primary-color)}.tree-node .toggle-btn i{font-size:.7rem}.tree-node .node-icon{color:var(--primary-color);font-size:.9rem;flex-shrink:0}.tree-node .node-label{flex:1;font-size:.9rem;color:var(--text-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tree-node .external-icon{color:var(--text-color-secondary);font-size:.7rem;opacity:.6;transition:opacity .2s ease;flex-shrink:0}.empty-state{flex:1;display:flex;align-items:center;justify-content:center;padding:2rem}.empty-content{text-align:center;max-width:300px}.empty-icon{font-size:3rem;color:var(--text-color-secondary);margin-bottom:1rem;opacity:.5}.empty-message{font-size:.9rem;color:var(--text-color-secondary);line-height:1.4;margin-bottom:1.5rem}:host ::ng-deep .p-scrollpanel-bar-y{background:var(--primary-200);width:4px;border-radius:2px}:host ::ng-deep .p-scrollpanel-bar-y:hover{background:var(--primary-300)}\n"] }]
|
|
1242
1991
|
}], ctorParameters: () => [{ type: LayoutService }, { type: i5.TranslocoService }] });
|
|
1243
1992
|
|
|
1244
1993
|
// API Endpoints
|
|
@@ -1252,6 +2001,8 @@ class FavoritePagesService extends RestClient {
|
|
|
1252
2001
|
this.router = router;
|
|
1253
2002
|
this.states = {};
|
|
1254
2003
|
this.allFavoritePages = signal([]);
|
|
2004
|
+
// Asks the favorites sidebar, which owns the list, to load it again after a change made elsewhere
|
|
2005
|
+
this.reloadRequest = new Subject();
|
|
1255
2006
|
}
|
|
1256
2007
|
getCurrentRoutePath() {
|
|
1257
2008
|
return this.router.url;
|
|
@@ -1275,8 +2026,8 @@ class FavoritePagesService extends RestClient {
|
|
|
1275
2026
|
deleteFavoritePage(id) {
|
|
1276
2027
|
return new Observable();
|
|
1277
2028
|
}
|
|
1278
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
1279
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
2029
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FavoritePagesService, deps: [{ token: i1$3.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2030
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FavoritePagesService, providedIn: 'root' }); }
|
|
1280
2031
|
}
|
|
1281
2032
|
__decorate([
|
|
1282
2033
|
ServiceCall(HTTPMethods.POST, ProxyTypes.ClientSide, favoritePageEndpoints.filter)
|
|
@@ -1290,10 +2041,10 @@ __decorate([
|
|
|
1290
2041
|
__decorate([
|
|
1291
2042
|
ServiceCall(HTTPMethods.DELETE, ProxyTypes.ClientSide, favoritePageEndpoints.favorite)
|
|
1292
2043
|
], FavoritePagesService.prototype, "deleteFavoritePage", null);
|
|
1293
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
2044
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FavoritePagesService, decorators: [{
|
|
1294
2045
|
type: Injectable,
|
|
1295
2046
|
args: [{ providedIn: 'root' }]
|
|
1296
|
-
}], ctorParameters: () => [{ type: i1$
|
|
2047
|
+
}], ctorParameters: () => [{ type: i1$3.Router }], propDecorators: { filterFavoritePages: [], saveFavoritePage: [], updateFavoritePage: [], deleteFavoritePage: [] } });
|
|
1297
2048
|
|
|
1298
2049
|
class AddEditFavoriteModalComponent {
|
|
1299
2050
|
constructor(formBuilder, dialogRef, dialogConfig, favoritePagesService, messageService, translocoService) {
|
|
@@ -1390,10 +2141,10 @@ class AddEditFavoriteModalComponent {
|
|
|
1390
2141
|
cancel() {
|
|
1391
2142
|
this.dialogRef.close('cancel');
|
|
1392
2143
|
}
|
|
1393
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
1394
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.
|
|
2144
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AddEditFavoriteModalComponent, deps: [{ token: i1$2.FormBuilder }, { token: i2.DynamicDialogRef }, { token: i2.DynamicDialogConfig }, { token: FavoritePagesService }, { token: i3.MessageService }, { token: i5.TranslocoService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2145
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: AddEditFavoriteModalComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<div *transloco=\"let t; read: 'favoritePages'\">\n\t<aril-form [formGroup]=\"favoriteForm\">\n\t\t<aril-field [label]=\"t('label')\" [cols]=\"{ xl: 12, lg: 12, md: 12, sm: 12 }\" [markAsRequired]=\"true\">\n\t\t\t<aril-text formControlName=\"label\" [placeholder]=\"t('labelPlaceholder')\"> </aril-text>\n\t\t</aril-field>\n\n\t\t<aril-field [label]=\"t('path')\" [cols]=\"{ xl: 12, lg: 12, md: 12, sm: 12 }\">\n\t\t\t<aril-text formControlName=\"url\"> </aril-text>\n\t\t</aril-field>\n\n\t\t<div class=\"col-12 flex justify-content-end mt-4 gap-2\">\n\t\t\t<aril-button\n\t\t\t\tcolor=\"danger\"\n\t\t\t\t[label]=\"t('cancel')\"\n\t\t\t\t[outlined]=\"true\"\n\t\t\t\ticon=\"TIMES\"\n\t\t\t\t(clickEvent)=\"cancel()\">\n\t\t\t</aril-button>\n\t\t\t<aril-form-submit\n\t\t\t\t[label]=\"t('save')\"\n\t\t\t\tcolor=\"success\"\n\t\t\t\ticon=\"CHECK\"\n\t\t\t\t[formGroup]=\"favoriteForm\"\n\t\t\t\t(validEvent)=\"submit()\" />\n\t\t</div>\n\t</aril-form>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ARiLFormModule }, { kind: "component", type: i6.FormComponent, selector: "aril-form", inputs: ["formGroup", "submitOnEnterInWidgets"] }, { kind: "component", type: i6.FormSubmitButtonComponent, selector: "aril-form-submit:not([click])", inputs: ["formGroup"], outputs: ["validEvent", "inValidEvent"] }, { kind: "component", type: FieldComponent, selector: "aril-field", inputs: ["label", "color", "labelWidth", "valueWidth", "labelPos", "markAsRequired", "cols", "infoData", "infoDataOverlayPanel"] }, { kind: "component", type: TextComponent, selector: "aril-text[ngModel], aril-text[formControl], aril-text[formControlName]", inputs: ["placeholder", "tabindex", "icon", "iconPos", "size"] }, { kind: "component", type: ButtonComponent, selector: "aril-button:not([click])", inputs: ["label", "loading", "disabled", "raised", "rounded", "text", "outlined", "badge", "size", "icon", "iconPos", "color"], outputs: ["clickEvent"] }, { kind: "ngmodule", type: TranslocoModule }, { kind: "directive", type: i5.TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoLang", "translocoLoadingTpl"] }] }); }
|
|
1395
2146
|
}
|
|
1396
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
2147
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AddEditFavoriteModalComponent, decorators: [{
|
|
1397
2148
|
type: Component,
|
|
1398
2149
|
args: [{ standalone: true, imports: [
|
|
1399
2150
|
CommonModule,
|
|
@@ -1404,8 +2155,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
1404
2155
|
TextComponent,
|
|
1405
2156
|
ButtonComponent,
|
|
1406
2157
|
TranslocoModule
|
|
1407
|
-
], template: "<div *transloco=\"let t; read: 'favoritePages'\">\
|
|
1408
|
-
}], ctorParameters: () => [{ type: i1$
|
|
2158
|
+
], template: "<div *transloco=\"let t; read: 'favoritePages'\">\n\t<aril-form [formGroup]=\"favoriteForm\">\n\t\t<aril-field [label]=\"t('label')\" [cols]=\"{ xl: 12, lg: 12, md: 12, sm: 12 }\" [markAsRequired]=\"true\">\n\t\t\t<aril-text formControlName=\"label\" [placeholder]=\"t('labelPlaceholder')\"> </aril-text>\n\t\t</aril-field>\n\n\t\t<aril-field [label]=\"t('path')\" [cols]=\"{ xl: 12, lg: 12, md: 12, sm: 12 }\">\n\t\t\t<aril-text formControlName=\"url\"> </aril-text>\n\t\t</aril-field>\n\n\t\t<div class=\"col-12 flex justify-content-end mt-4 gap-2\">\n\t\t\t<aril-button\n\t\t\t\tcolor=\"danger\"\n\t\t\t\t[label]=\"t('cancel')\"\n\t\t\t\t[outlined]=\"true\"\n\t\t\t\ticon=\"TIMES\"\n\t\t\t\t(clickEvent)=\"cancel()\">\n\t\t\t</aril-button>\n\t\t\t<aril-form-submit\n\t\t\t\t[label]=\"t('save')\"\n\t\t\t\tcolor=\"success\"\n\t\t\t\ticon=\"CHECK\"\n\t\t\t\t[formGroup]=\"favoriteForm\"\n\t\t\t\t(validEvent)=\"submit()\" />\n\t\t</div>\n\t</aril-form>\n</div>\n" }]
|
|
2159
|
+
}], ctorParameters: () => [{ type: i1$2.FormBuilder }, { type: i2.DynamicDialogRef }, { type: i2.DynamicDialogConfig }, { type: FavoritePagesService }, { type: i3.MessageService }, { type: i5.TranslocoService }] });
|
|
1409
2160
|
|
|
1410
2161
|
class FavoritePagesSidebarComponent {
|
|
1411
2162
|
constructor(layoutService, favoritePagesService, confirmationService, messageService, dialogService, translocoService) {
|
|
@@ -1433,6 +2184,7 @@ class FavoritePagesSidebarComponent {
|
|
|
1433
2184
|
}))));
|
|
1434
2185
|
this.deleteFavoriteService = toSignal(this.subjects.deleteFavorite.pipe(switchMap((id) => this.favoritePagesService.deleteFavoritePage(id))));
|
|
1435
2186
|
this.initializeEffects();
|
|
2187
|
+
this.favoritePagesService.reloadRequest.pipe(takeUntilDestroyed()).subscribe(() => this.loadFavoritePages());
|
|
1436
2188
|
}
|
|
1437
2189
|
ngOnInit() {
|
|
1438
2190
|
this.loadFavoritePages();
|
|
@@ -1577,10 +2329,10 @@ class FavoritePagesSidebarComponent {
|
|
|
1577
2329
|
getFullUrl(url) {
|
|
1578
2330
|
return this.favoritePagesService.getFullUrl(url);
|
|
1579
2331
|
}
|
|
1580
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
1581
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: FavoritePagesSidebarComponent, isStandalone: true, selector: "app-favorite-pages-sidebar", providers: [ConfirmationService, DialogService], ngImport: i0, template: "<p-sidebar\r\n\t[(visible)]=\"visible\"\r\n\tposition=\"right\"\r\n\t[transitionOptions]=\"'.3s cubic-bezier(0, 0, 0.2, 1)'\"\r\n\tstyleClass=\"layout-favorite-pages-sidebar w-full sm:w-30rem\"\r\n\t*transloco=\"let t; read: 'favoritePages'\">\r\n\t<ng-template pTemplate=\"header\">\r\n\t\t<div class=\"flex align-items-center justify-content-between w-full\">\r\n\t\t\t<div class=\"flex align-items-center\">\r\n\t\t\t\t<i class=\"pi pi-heart text-primary text-xl\"></i>\r\n\t\t\t\t<span class=\"font-bold text-lg\">{{ t('favoritePages') }}</span>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</ng-template>\r\n\r\n\t<div class=\"favorite-pages-content\">\r\n\t\t@if (isCurrentPageFavorited()) {\r\n\t\t\t<div class=\"current-favorited-message\">\r\n\t\t\t\t<div class=\"message-content\">\r\n\t\t\t\t\t<i class=\"pi pi-check-circle text-green-500\"></i>\r\n\t\t\t\t\t<span>{{ t('currentPageFavorited') }}</span>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t}\r\n\r\n\t\t<div class=\"add-section\">\r\n\t\t\t@if (!isCurrentPageFavorited()) {\r\n\t\t\t\t<aril-button\r\n\t\t\t\t\t[label]=\"t('addCurrentPage')\"\r\n\t\t\t\t\ticon=\"PLUS\"\r\n\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\tsize=\"sm\"\r\n\t\t\t\t\t(clickEvent)=\"addCurrentPageToFavorites()\">\r\n\t\t\t\t</aril-button>\r\n\t\t\t} @else {\r\n\t\t\t\t<aril-button\r\n\t\t\t\t\t[label]=\"t('removeCurrentPage')\"\r\n\t\t\t\t\ticon=\"TIMES\"\r\n\t\t\t\t\tcolor=\"danger\"\r\n\t\t\t\t\tsize=\"sm\"\r\n\t\t\t\t\t(clickEvent)=\"removeCurrentPageFromFavorites()\">\r\n\t\t\t\t</aril-button>\r\n\t\t\t}\r\n\t\t</div>\r\n\r\n\t\t@if (favoritePages().length > 0) {\r\n\t\t\t<div class=\"favorites-list\">\r\n\t\t\t\t<p-scrollPanel [style]=\"{ width: '100%', height: '100%' }\">\r\n\t\t\t\t\t<div class=\"favorites-items\">\r\n\t\t\t\t\t\t@for (favorite of favoritePages(); track trackByFavoriteId($index, favorite)) {\r\n\t\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t\tclass=\"favorite-item\"\r\n\t\t\t\t\t\t\t\t[class.default-item]=\"favorite.id < 0\"\r\n\t\t\t\t\t\t\t\t(click)=\"navigateToFavorite(favorite)\"\r\n\t\t\t\t\t\t\t\t[pTooltip]=\"getFullUrl(favorite.url)\"\r\n\t\t\t\t\t\t\t\ttooltipPosition=\"top\">\r\n\t\t\t\t\t\t\t\t<div class=\"item-content\">\r\n\t\t\t\t\t\t\t\t\t<div class=\"item-header\">\r\n\t\t\t\t\t\t\t\t\t\t<div class=\"item-title\">\r\n\t\t\t\t\t\t\t\t\t\t\t<i class=\"pi pi-external-link text-primary mr-2\"></i>\r\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"title-text\">{{ favorite.label }}</span>\r\n\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t<div>\r\n\t\t\t\t\t\t\t\t\t\t\t<fa-icon\r\n\t\t\t\t\t\t\t\t\t\t\t\t[icon]=\"solidIcons.faPenToSquare\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tsize=\"lg\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tstyle=\"color: var(--yellow-500)\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tclass=\"col-2 cursor-pointer\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t(click)=\"editFavorite(favorite, $event)\">\r\n\t\t\t\t\t\t\t\t\t\t\t</fa-icon>\r\n\t\t\t\t\t\t\t\t\t\t\t<fa-icon\r\n\t\t\t\t\t\t\t\t\t\t\t\t[icon]=\"solidIcons.faTrash\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tsize=\"lg\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tstyle=\"color: var(--red-500)\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tclass=\"col-2 cursor-pointer\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t(click)=\"deleteFavorite(favorite, $event)\">\r\n\t\t\t\t\t\t\t\t\t\t\t</fa-icon>\r\n\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</p-scrollPanel>\r\n\t\t\t</div>\r\n\t\t} @else {\r\n\t\t\t<div class=\"empty-state\">\r\n\t\t\t\t<div class=\"empty-content\">\r\n\t\t\t\t\t<i class=\"pi pi-heart empty-icon\"></i>\r\n\t\t\t\t\t<h3 class=\"empty-title\">{{ t('noFavorites') }}</h3>\r\n\t\t\t\t\t<p class=\"empty-message\">{{ t('startAddingFavorites') }}</p>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t}\r\n\t\t<div>\r\n\t\t\t<p-paginator\r\n\t\t\t\t[first]=\"(currentPage() - 1) * pageSize()\"\r\n\t\t\t\t[rows]=\"pageSize()\"\r\n\t\t\t\t[totalRecords]=\"totalItems()\"\r\n\t\t\t\t[showCurrentPageReport]=\"true\"\r\n\t\t\t\t[currentPageReportTemplate]=\"t('paginatorTemplate')\"\r\n\t\t\t\t[showFirstLastIcon]=\"false\"\r\n\t\t\t\t[showPageLinks]=\"false\"\r\n\t\t\t\t(onPageChange)=\"onPageChange($event)\">\r\n\t\t\t</p-paginator>\r\n\t\t</div>\r\n\t</div>\r\n\r\n\t<p-confirmDialog></p-confirmDialog>\r\n</p-sidebar>\r\n", styles: [":host ::ng-deep .layout-favorite-pages-sidebar .p-sidebar-content{padding:0;background:var(--surface-ground)}:host ::ng-deep .layout-favorite-pages-sidebar .p-sidebar-header{background:var(--primary-color);color:var(--primary-color-text);padding:1rem 1.5rem}:host ::ng-deep .layout-favorite-pages-sidebar .p-sidebar-header span{font-size:1.1rem;font-weight:600}.favorite-pages-content{display:flex;flex-direction:column;height:100%;background:var(--surface-0)}.current-favorited-message{padding:1rem;border-bottom:1px solid var(--surface-border);background:var(--green-50)}.current-favorited-message .message-content{display:flex;align-items:center;gap:.5rem;color:var(--green-700);font-size:.9rem;font-weight:500}.add-section{display:flex;align-items:center;gap:.5rem;padding:1rem;border-bottom:1px solid var(--surface-border);background:var(--surface-0)}.favorites-list{flex:1;overflow:hidden}.favorites-items{padding:.5rem}.favorite-item{background:var(--surface-0);border:1px solid var(--surface-border);border-radius:8px;margin-bottom:.5rem;cursor:pointer;transition:all .2s ease;position:relative;overflow:hidden;padding:.5rem .2rem}.favorite-item:hover{border-color:var(--primary-200);background:var(--primary-50);transform:translateY(-1px);box-shadow:0 2px 8px #0000001a}.favorite-item:hover .action-btn{opacity:1}.favorite-item:last-child{margin-bottom:0}.favorite-item.default-item{background:var(--blue-50);border-left:3px solid var(--blue-500)}.favorite-item.default-item:hover{background:var(--blue-100);border-color:var(--blue-300)}.favorite-item.default-item .title-text{font-weight:600;color:var(--blue-700)}.item-content{padding:.5rem .75rem}.item-header{display:flex;align-items:center;justify-content:space-between}.item-title{display:flex;align-items:center;flex:1;min-width:0}.item-title .title-text{font-weight:600;color:var(--text-color);font-size:1rem;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.empty-state{flex:1;display:flex;align-items:center;justify-content:center;padding:2rem}.empty-content{text-align:center;max-width:300px}.empty-content .empty-icon{font-size:3rem;color:var(--text-color-secondary);margin-bottom:1rem;opacity:.5}.empty-content .empty-title{font-size:1.1rem;font-weight:600;color:var(--text-color);margin-bottom:.5rem}.empty-content .empty-message{font-size:.9rem;color:var(--text-color-secondary);line-height:1.4;margin-bottom:1.5rem}@media (max-width: 768px){.add-section{padding:.75rem}.add-section .button-label{font-size:.8rem}.item-content{padding:.5rem}.item-title .title-text{font-size:.85rem}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: SidebarModule }, { kind: "component", type: i6$1.Sidebar, selector: "p-sidebar", inputs: ["appendTo", "blockScroll", "style", "styleClass", "ariaCloseLabel", "autoZIndex", "baseZIndex", "modal", "dismissible", "showCloseIcon", "closeOnEscape", "transitionOptions", "visible", "position", "fullScreen"], outputs: ["onShow", "onHide", "visibleChange"] }, { kind: "directive", type: i3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "ngmodule", type: ScrollPanelModule }, { kind: "component", type: i7$1.ScrollPanel, selector: "p-scrollPanel", inputs: ["style", "styleClass", "step"] }, { kind: "ngmodule", type: ConfirmDialogModule }, { kind: "component", type: i8.ConfirmDialog, selector: "p-confirmDialog", inputs: ["header", "icon", "message", "style", "styleClass", "maskStyleClass", "acceptIcon", "acceptLabel", "closeAriaLabel", "acceptAriaLabel", "acceptVisible", "rejectIcon", "rejectLabel", "rejectAriaLabel", "rejectVisible", "acceptButtonStyleClass", "rejectButtonStyleClass", "closeOnEscape", "dismissableMask", "blockScroll", "rtl", "closable", "appendTo", "key", "autoZIndex", "baseZIndex", "transitionOptions", "focusTrap", "defaultFocus", "breakpoints", "visible", "position"], outputs: ["onHide"] }, { kind: "ngmodule", type: PaginatorModule }, { kind: "component", type: i9$1.Paginator, selector: "p-paginator", inputs: ["pageLinkSize", "style", "styleClass", "alwaysShow", "dropdownAppendTo", "templateLeft", "templateRight", "appendTo", "dropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showFirstLastIcon", "totalRecords", "rows", "rowsPerPageOptions", "showJumpToPageDropdown", "showJumpToPageInput", "jumpToPageItemTemplate", "showPageLinks", "locale", "dropdownItemTemplate", "first"], outputs: ["onPageChange"] }, { kind: "ngmodule", type: DynamicDialogModule }, { kind: "component", type: ButtonComponent, selector: "aril-button:not([click])", inputs: ["label", "loading", "disabled", "raised", "rounded", "text", "outlined", "badge", "size", "icon", "iconPos", "color"], outputs: ["clickEvent"] }, { kind: "ngmodule", type: TranslocoModule }, { kind: "directive", type: i5.TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoLang", "translocoLoadingTpl"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i9.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "ngmodule", type: FontAwesomeModule }, { kind: "component", type: i10.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }] }); }
|
|
2332
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FavoritePagesSidebarComponent, deps: [{ token: LayoutService }, { token: FavoritePagesService }, { token: i3.ConfirmationService }, { token: i3.MessageService }, { token: i2.DialogService }, { token: i5.TranslocoService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2333
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: FavoritePagesSidebarComponent, isStandalone: true, selector: "app-favorite-pages-sidebar", providers: [ConfirmationService, DialogService], ngImport: i0, template: "<p-sidebar\n\t[(visible)]=\"visible\"\n\tposition=\"right\"\n\t[transitionOptions]=\"'.3s cubic-bezier(0, 0, 0.2, 1)'\"\n\tstyleClass=\"layout-favorite-pages-sidebar w-full sm:w-30rem\"\n\t*transloco=\"let t; read: 'favoritePages'\">\n\t<ng-template pTemplate=\"header\">\n\t\t<div class=\"flex align-items-center justify-content-between w-full\">\n\t\t\t<div class=\"flex align-items-center\">\n\t\t\t\t<i class=\"pi pi-heart text-primary text-xl\"></i>\n\t\t\t\t<span class=\"font-bold text-lg\">{{ t('favoritePages') }}</span>\n\t\t\t</div>\n\t\t</div>\n\t</ng-template>\n\n\t<div class=\"favorite-pages-content\">\n\t\t@if (isCurrentPageFavorited()) {\n\t\t\t<div class=\"current-favorited-message\">\n\t\t\t\t<div class=\"message-content\">\n\t\t\t\t\t<i class=\"pi pi-check-circle text-green-500\"></i>\n\t\t\t\t\t<span>{{ t('currentPageFavorited') }}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t}\n\n\t\t<div class=\"add-section\">\n\t\t\t@if (!isCurrentPageFavorited()) {\n\t\t\t\t<aril-button\n\t\t\t\t\t[label]=\"t('addCurrentPage')\"\n\t\t\t\t\ticon=\"PLUS\"\n\t\t\t\t\tcolor=\"primary\"\n\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t(clickEvent)=\"addCurrentPageToFavorites()\">\n\t\t\t\t</aril-button>\n\t\t\t} @else {\n\t\t\t\t<aril-button\n\t\t\t\t\t[label]=\"t('removeCurrentPage')\"\n\t\t\t\t\ticon=\"TIMES\"\n\t\t\t\t\tcolor=\"danger\"\n\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t(clickEvent)=\"removeCurrentPageFromFavorites()\">\n\t\t\t\t</aril-button>\n\t\t\t}\n\t\t</div>\n\n\t\t@if (favoritePages().length > 0) {\n\t\t\t<div class=\"favorites-list\">\n\t\t\t\t<p-scrollPanel [style]=\"{ width: '100%', height: '100%' }\">\n\t\t\t\t\t<div class=\"favorites-items\">\n\t\t\t\t\t\t@for (favorite of favoritePages(); track trackByFavoriteId($index, favorite)) {\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass=\"favorite-item\"\n\t\t\t\t\t\t\t\t[class.default-item]=\"favorite.id < 0\"\n\t\t\t\t\t\t\t\t(click)=\"navigateToFavorite(favorite)\"\n\t\t\t\t\t\t\t\t[pTooltip]=\"getFullUrl(favorite.url)\"\n\t\t\t\t\t\t\t\ttooltipPosition=\"top\">\n\t\t\t\t\t\t\t\t<div class=\"item-content\">\n\t\t\t\t\t\t\t\t\t<div class=\"item-header\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"item-title\">\n\t\t\t\t\t\t\t\t\t\t\t<i class=\"pi pi-external-link text-primary mr-2\"></i>\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"title-text\">{{ favorite.label }}</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t\t<fa-icon\n\t\t\t\t\t\t\t\t\t\t\t\t[icon]=\"solidIcons.faPenToSquare\"\n\t\t\t\t\t\t\t\t\t\t\t\tsize=\"lg\"\n\t\t\t\t\t\t\t\t\t\t\t\tstyle=\"color: var(--yellow-500)\"\n\t\t\t\t\t\t\t\t\t\t\t\tclass=\"col-2 cursor-pointer\"\n\t\t\t\t\t\t\t\t\t\t\t\t(click)=\"editFavorite(favorite, $event)\">\n\t\t\t\t\t\t\t\t\t\t\t</fa-icon>\n\t\t\t\t\t\t\t\t\t\t\t<fa-icon\n\t\t\t\t\t\t\t\t\t\t\t\t[icon]=\"solidIcons.faTrash\"\n\t\t\t\t\t\t\t\t\t\t\t\tsize=\"lg\"\n\t\t\t\t\t\t\t\t\t\t\t\tstyle=\"color: var(--red-500)\"\n\t\t\t\t\t\t\t\t\t\t\t\tclass=\"col-2 cursor-pointer\"\n\t\t\t\t\t\t\t\t\t\t\t\t(click)=\"deleteFavorite(favorite, $event)\">\n\t\t\t\t\t\t\t\t\t\t\t</fa-icon>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</p-scrollPanel>\n\t\t\t</div>\n\t\t} @else {\n\t\t\t<div class=\"empty-state\">\n\t\t\t\t<div class=\"empty-content\">\n\t\t\t\t\t<i class=\"pi pi-heart empty-icon\"></i>\n\t\t\t\t\t<h3 class=\"empty-title\">{{ t('noFavorites') }}</h3>\n\t\t\t\t\t<p class=\"empty-message\">{{ t('startAddingFavorites') }}</p>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t}\n\t\t<div>\n\t\t\t<p-paginator\n\t\t\t\t[first]=\"(currentPage() - 1) * pageSize()\"\n\t\t\t\t[rows]=\"pageSize()\"\n\t\t\t\t[totalRecords]=\"totalItems()\"\n\t\t\t\t[showCurrentPageReport]=\"true\"\n\t\t\t\t[currentPageReportTemplate]=\"t('paginatorTemplate')\"\n\t\t\t\t[showFirstLastIcon]=\"false\"\n\t\t\t\t[showPageLinks]=\"false\"\n\t\t\t\t(onPageChange)=\"onPageChange($event)\">\n\t\t\t</p-paginator>\n\t\t</div>\n\t</div>\n\n\t<p-confirmDialog></p-confirmDialog>\n</p-sidebar>\n", styles: [":host ::ng-deep .layout-favorite-pages-sidebar .p-sidebar-content{padding:0;background:var(--surface-ground)}:host ::ng-deep .layout-favorite-pages-sidebar .p-sidebar-header{background:var(--primary-color);color:var(--primary-color-text);padding:1rem 1.5rem}:host ::ng-deep .layout-favorite-pages-sidebar .p-sidebar-header span{font-size:1.1rem;font-weight:600}.favorite-pages-content{display:flex;flex-direction:column;height:100%;background:var(--surface-0)}.current-favorited-message{padding:1rem;border-bottom:1px solid var(--surface-border);background:var(--green-50)}.current-favorited-message .message-content{display:flex;align-items:center;gap:.5rem;color:var(--green-700);font-size:.9rem;font-weight:500}.add-section{display:flex;align-items:center;gap:.5rem;padding:1rem;border-bottom:1px solid var(--surface-border);background:var(--surface-0)}.favorites-list{flex:1;overflow:hidden}.favorites-items{padding:.5rem}.favorite-item{background:var(--surface-0);border:1px solid var(--surface-border);border-radius:8px;margin-bottom:.5rem;cursor:pointer;transition:all .2s ease;position:relative;overflow:hidden;padding:.5rem .2rem}.favorite-item:hover{border-color:var(--primary-200);background:var(--primary-50);transform:translateY(-1px);box-shadow:0 2px 8px #0000001a}.favorite-item:hover .action-btn{opacity:1}.favorite-item:last-child{margin-bottom:0}.favorite-item.default-item{background:var(--blue-50);border-left:3px solid var(--blue-500)}.favorite-item.default-item:hover{background:var(--blue-100);border-color:var(--blue-300)}.favorite-item.default-item .title-text{font-weight:600;color:var(--blue-700)}.item-content{padding:.5rem .75rem}.item-header{display:flex;align-items:center;justify-content:space-between}.item-title{display:flex;align-items:center;flex:1;min-width:0}.item-title .title-text{font-weight:600;color:var(--text-color);font-size:1rem;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.empty-state{flex:1;display:flex;align-items:center;justify-content:center;padding:2rem}.empty-content{text-align:center;max-width:300px}.empty-content .empty-icon{font-size:3rem;color:var(--text-color-secondary);margin-bottom:1rem;opacity:.5}.empty-content .empty-title{font-size:1.1rem;font-weight:600;color:var(--text-color);margin-bottom:.5rem}.empty-content .empty-message{font-size:.9rem;color:var(--text-color-secondary);line-height:1.4;margin-bottom:1.5rem}@media (max-width: 768px){.add-section{padding:.75rem}.add-section .button-label{font-size:.8rem}.item-content{padding:.5rem}.item-title .title-text{font-size:.85rem}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: SidebarModule }, { kind: "component", type: i6$1.Sidebar, selector: "p-sidebar", inputs: ["appendTo", "blockScroll", "style", "styleClass", "ariaCloseLabel", "autoZIndex", "baseZIndex", "modal", "dismissible", "showCloseIcon", "closeOnEscape", "transitionOptions", "visible", "position", "fullScreen"], outputs: ["onShow", "onHide", "visibleChange"] }, { kind: "directive", type: i3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "ngmodule", type: ScrollPanelModule }, { kind: "component", type: i7$1.ScrollPanel, selector: "p-scrollPanel", inputs: ["style", "styleClass", "step"] }, { kind: "ngmodule", type: ConfirmDialogModule }, { kind: "component", type: i8.ConfirmDialog, selector: "p-confirmDialog", inputs: ["header", "icon", "message", "style", "styleClass", "maskStyleClass", "acceptIcon", "acceptLabel", "closeAriaLabel", "acceptAriaLabel", "acceptVisible", "rejectIcon", "rejectLabel", "rejectAriaLabel", "rejectVisible", "acceptButtonStyleClass", "rejectButtonStyleClass", "closeOnEscape", "dismissableMask", "blockScroll", "rtl", "closable", "appendTo", "key", "autoZIndex", "baseZIndex", "transitionOptions", "focusTrap", "defaultFocus", "breakpoints", "visible", "position"], outputs: ["onHide"] }, { kind: "ngmodule", type: PaginatorModule }, { kind: "component", type: i9$1.Paginator, selector: "p-paginator", inputs: ["pageLinkSize", "style", "styleClass", "alwaysShow", "dropdownAppendTo", "templateLeft", "templateRight", "appendTo", "dropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showFirstLastIcon", "totalRecords", "rows", "rowsPerPageOptions", "showJumpToPageDropdown", "showJumpToPageInput", "jumpToPageItemTemplate", "showPageLinks", "locale", "dropdownItemTemplate", "first"], outputs: ["onPageChange"] }, { kind: "ngmodule", type: DynamicDialogModule }, { kind: "component", type: ButtonComponent, selector: "aril-button:not([click])", inputs: ["label", "loading", "disabled", "raised", "rounded", "text", "outlined", "badge", "size", "icon", "iconPos", "color"], outputs: ["clickEvent"] }, { kind: "ngmodule", type: TranslocoModule }, { kind: "directive", type: i5.TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoLang", "translocoLoadingTpl"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i9.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "ngmodule", type: FontAwesomeModule }, { kind: "component", type: i10.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }] }); }
|
|
1582
2334
|
}
|
|
1583
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
2335
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: FavoritePagesSidebarComponent, decorators: [{
|
|
1584
2336
|
type: Component,
|
|
1585
2337
|
args: [{ standalone: true, selector: 'app-favorite-pages-sidebar', imports: [
|
|
1586
2338
|
CommonModule,
|
|
@@ -1593,7 +2345,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
1593
2345
|
TranslocoModule,
|
|
1594
2346
|
TooltipModule,
|
|
1595
2347
|
FontAwesomeModule
|
|
1596
|
-
], providers: [ConfirmationService, DialogService], template: "<p-sidebar\
|
|
2348
|
+
], providers: [ConfirmationService, DialogService], template: "<p-sidebar\n\t[(visible)]=\"visible\"\n\tposition=\"right\"\n\t[transitionOptions]=\"'.3s cubic-bezier(0, 0, 0.2, 1)'\"\n\tstyleClass=\"layout-favorite-pages-sidebar w-full sm:w-30rem\"\n\t*transloco=\"let t; read: 'favoritePages'\">\n\t<ng-template pTemplate=\"header\">\n\t\t<div class=\"flex align-items-center justify-content-between w-full\">\n\t\t\t<div class=\"flex align-items-center\">\n\t\t\t\t<i class=\"pi pi-heart text-primary text-xl\"></i>\n\t\t\t\t<span class=\"font-bold text-lg\">{{ t('favoritePages') }}</span>\n\t\t\t</div>\n\t\t</div>\n\t</ng-template>\n\n\t<div class=\"favorite-pages-content\">\n\t\t@if (isCurrentPageFavorited()) {\n\t\t\t<div class=\"current-favorited-message\">\n\t\t\t\t<div class=\"message-content\">\n\t\t\t\t\t<i class=\"pi pi-check-circle text-green-500\"></i>\n\t\t\t\t\t<span>{{ t('currentPageFavorited') }}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t}\n\n\t\t<div class=\"add-section\">\n\t\t\t@if (!isCurrentPageFavorited()) {\n\t\t\t\t<aril-button\n\t\t\t\t\t[label]=\"t('addCurrentPage')\"\n\t\t\t\t\ticon=\"PLUS\"\n\t\t\t\t\tcolor=\"primary\"\n\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t(clickEvent)=\"addCurrentPageToFavorites()\">\n\t\t\t\t</aril-button>\n\t\t\t} @else {\n\t\t\t\t<aril-button\n\t\t\t\t\t[label]=\"t('removeCurrentPage')\"\n\t\t\t\t\ticon=\"TIMES\"\n\t\t\t\t\tcolor=\"danger\"\n\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t(clickEvent)=\"removeCurrentPageFromFavorites()\">\n\t\t\t\t</aril-button>\n\t\t\t}\n\t\t</div>\n\n\t\t@if (favoritePages().length > 0) {\n\t\t\t<div class=\"favorites-list\">\n\t\t\t\t<p-scrollPanel [style]=\"{ width: '100%', height: '100%' }\">\n\t\t\t\t\t<div class=\"favorites-items\">\n\t\t\t\t\t\t@for (favorite of favoritePages(); track trackByFavoriteId($index, favorite)) {\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass=\"favorite-item\"\n\t\t\t\t\t\t\t\t[class.default-item]=\"favorite.id < 0\"\n\t\t\t\t\t\t\t\t(click)=\"navigateToFavorite(favorite)\"\n\t\t\t\t\t\t\t\t[pTooltip]=\"getFullUrl(favorite.url)\"\n\t\t\t\t\t\t\t\ttooltipPosition=\"top\">\n\t\t\t\t\t\t\t\t<div class=\"item-content\">\n\t\t\t\t\t\t\t\t\t<div class=\"item-header\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"item-title\">\n\t\t\t\t\t\t\t\t\t\t\t<i class=\"pi pi-external-link text-primary mr-2\"></i>\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"title-text\">{{ favorite.label }}</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t\t<fa-icon\n\t\t\t\t\t\t\t\t\t\t\t\t[icon]=\"solidIcons.faPenToSquare\"\n\t\t\t\t\t\t\t\t\t\t\t\tsize=\"lg\"\n\t\t\t\t\t\t\t\t\t\t\t\tstyle=\"color: var(--yellow-500)\"\n\t\t\t\t\t\t\t\t\t\t\t\tclass=\"col-2 cursor-pointer\"\n\t\t\t\t\t\t\t\t\t\t\t\t(click)=\"editFavorite(favorite, $event)\">\n\t\t\t\t\t\t\t\t\t\t\t</fa-icon>\n\t\t\t\t\t\t\t\t\t\t\t<fa-icon\n\t\t\t\t\t\t\t\t\t\t\t\t[icon]=\"solidIcons.faTrash\"\n\t\t\t\t\t\t\t\t\t\t\t\tsize=\"lg\"\n\t\t\t\t\t\t\t\t\t\t\t\tstyle=\"color: var(--red-500)\"\n\t\t\t\t\t\t\t\t\t\t\t\tclass=\"col-2 cursor-pointer\"\n\t\t\t\t\t\t\t\t\t\t\t\t(click)=\"deleteFavorite(favorite, $event)\">\n\t\t\t\t\t\t\t\t\t\t\t</fa-icon>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</p-scrollPanel>\n\t\t\t</div>\n\t\t} @else {\n\t\t\t<div class=\"empty-state\">\n\t\t\t\t<div class=\"empty-content\">\n\t\t\t\t\t<i class=\"pi pi-heart empty-icon\"></i>\n\t\t\t\t\t<h3 class=\"empty-title\">{{ t('noFavorites') }}</h3>\n\t\t\t\t\t<p class=\"empty-message\">{{ t('startAddingFavorites') }}</p>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t}\n\t\t<div>\n\t\t\t<p-paginator\n\t\t\t\t[first]=\"(currentPage() - 1) * pageSize()\"\n\t\t\t\t[rows]=\"pageSize()\"\n\t\t\t\t[totalRecords]=\"totalItems()\"\n\t\t\t\t[showCurrentPageReport]=\"true\"\n\t\t\t\t[currentPageReportTemplate]=\"t('paginatorTemplate')\"\n\t\t\t\t[showFirstLastIcon]=\"false\"\n\t\t\t\t[showPageLinks]=\"false\"\n\t\t\t\t(onPageChange)=\"onPageChange($event)\">\n\t\t\t</p-paginator>\n\t\t</div>\n\t</div>\n\n\t<p-confirmDialog></p-confirmDialog>\n</p-sidebar>\n", styles: [":host ::ng-deep .layout-favorite-pages-sidebar .p-sidebar-content{padding:0;background:var(--surface-ground)}:host ::ng-deep .layout-favorite-pages-sidebar .p-sidebar-header{background:var(--primary-color);color:var(--primary-color-text);padding:1rem 1.5rem}:host ::ng-deep .layout-favorite-pages-sidebar .p-sidebar-header span{font-size:1.1rem;font-weight:600}.favorite-pages-content{display:flex;flex-direction:column;height:100%;background:var(--surface-0)}.current-favorited-message{padding:1rem;border-bottom:1px solid var(--surface-border);background:var(--green-50)}.current-favorited-message .message-content{display:flex;align-items:center;gap:.5rem;color:var(--green-700);font-size:.9rem;font-weight:500}.add-section{display:flex;align-items:center;gap:.5rem;padding:1rem;border-bottom:1px solid var(--surface-border);background:var(--surface-0)}.favorites-list{flex:1;overflow:hidden}.favorites-items{padding:.5rem}.favorite-item{background:var(--surface-0);border:1px solid var(--surface-border);border-radius:8px;margin-bottom:.5rem;cursor:pointer;transition:all .2s ease;position:relative;overflow:hidden;padding:.5rem .2rem}.favorite-item:hover{border-color:var(--primary-200);background:var(--primary-50);transform:translateY(-1px);box-shadow:0 2px 8px #0000001a}.favorite-item:hover .action-btn{opacity:1}.favorite-item:last-child{margin-bottom:0}.favorite-item.default-item{background:var(--blue-50);border-left:3px solid var(--blue-500)}.favorite-item.default-item:hover{background:var(--blue-100);border-color:var(--blue-300)}.favorite-item.default-item .title-text{font-weight:600;color:var(--blue-700)}.item-content{padding:.5rem .75rem}.item-header{display:flex;align-items:center;justify-content:space-between}.item-title{display:flex;align-items:center;flex:1;min-width:0}.item-title .title-text{font-weight:600;color:var(--text-color);font-size:1rem;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.empty-state{flex:1;display:flex;align-items:center;justify-content:center;padding:2rem}.empty-content{text-align:center;max-width:300px}.empty-content .empty-icon{font-size:3rem;color:var(--text-color-secondary);margin-bottom:1rem;opacity:.5}.empty-content .empty-title{font-size:1.1rem;font-weight:600;color:var(--text-color);margin-bottom:.5rem}.empty-content .empty-message{font-size:.9rem;color:var(--text-color-secondary);line-height:1.4;margin-bottom:1.5rem}@media (max-width: 768px){.add-section{padding:.75rem}.add-section .button-label{font-size:.8rem}.item-content{padding:.5rem}.item-title .title-text{font-size:.85rem}}\n"] }]
|
|
1597
2349
|
}], ctorParameters: () => [{ type: LayoutService }, { type: FavoritePagesService }, { type: i3.ConfirmationService }, { type: i3.MessageService }, { type: i2.DialogService }, { type: i5.TranslocoService }] });
|
|
1598
2350
|
|
|
1599
2351
|
var AssetCodes;
|
|
@@ -1744,33 +2496,135 @@ class SearchService extends RestClient {
|
|
|
1744
2496
|
searchForAssets(post) {
|
|
1745
2497
|
return new Observable();
|
|
1746
2498
|
}
|
|
1747
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
1748
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
2499
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SearchService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2500
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SearchService, providedIn: 'root' }); }
|
|
1749
2501
|
}
|
|
1750
2502
|
__decorate([
|
|
1751
2503
|
ServiceCall(HTTPMethods.POST, ProxyTypes.ClientSide, 'master-data/cache-search', {}, Apps.MNG)
|
|
1752
2504
|
], SearchService.prototype, "searchForAssets", null);
|
|
1753
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
2505
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SearchService, decorators: [{
|
|
1754
2506
|
type: Injectable,
|
|
1755
2507
|
args: [{ providedIn: 'root' }]
|
|
1756
2508
|
}], ctorParameters: () => [], propDecorators: { searchForAssets: [] } });
|
|
1757
2509
|
|
|
2510
|
+
const PREFERENCE_KEY = 'search.recent';
|
|
2511
|
+
const MAX_RECENT_SEARCHES = 4;
|
|
2512
|
+
// The list is read and written in the background: the user did not start these calls, so no error toast is shown
|
|
2513
|
+
const SILENT = {
|
|
2514
|
+
ignoredStatusCodes: [
|
|
2515
|
+
HttpStatusCode.NotFound,
|
|
2516
|
+
HttpStatusCode.Forbidden,
|
|
2517
|
+
HttpStatusCode.BadRequest,
|
|
2518
|
+
HttpStatusCode.InternalServerError,
|
|
2519
|
+
HttpStatusCode.BadGateway,
|
|
2520
|
+
HttpStatusCode.ServiceUnavailable,
|
|
2521
|
+
HttpStatusCode.GatewayTimeout
|
|
2522
|
+
]
|
|
2523
|
+
};
|
|
2524
|
+
/**
|
|
2525
|
+
* Keeps the last searches of the session user on the server, so the list is the same on every device.
|
|
2526
|
+
* A missing endpoint (backend not deployed yet) is ignored: the list simply stays empty.
|
|
2527
|
+
*/
|
|
2528
|
+
class RecentSearchService extends RestClient {
|
|
2529
|
+
constructor() {
|
|
2530
|
+
super(...arguments);
|
|
2531
|
+
this.states = {};
|
|
2532
|
+
this.searches = signal([]);
|
|
2533
|
+
// Set when the endpoint is missing (404): the list lives in the session only, nothing is written
|
|
2534
|
+
this.unavailable = false;
|
|
2535
|
+
}
|
|
2536
|
+
getPreference(key) {
|
|
2537
|
+
return new Observable();
|
|
2538
|
+
}
|
|
2539
|
+
savePreference(key, request) {
|
|
2540
|
+
return new Observable();
|
|
2541
|
+
}
|
|
2542
|
+
load() {
|
|
2543
|
+
this.stored().subscribe();
|
|
2544
|
+
}
|
|
2545
|
+
add(query) {
|
|
2546
|
+
const text = (query ?? '').trim();
|
|
2547
|
+
if (!text) {
|
|
2548
|
+
return;
|
|
2549
|
+
}
|
|
2550
|
+
this.stored().subscribe((stored) => {
|
|
2551
|
+
const next = [text, ...this.searches().filter((item) => item.toLowerCase() !== text.toLowerCase())].slice(0, MAX_RECENT_SEARCHES);
|
|
2552
|
+
this.searches.set(next);
|
|
2553
|
+
if (stored && !this.unavailable) {
|
|
2554
|
+
this.savePreference(PREFERENCE_KEY, { value: JSON.stringify(next) }).subscribe();
|
|
2555
|
+
}
|
|
2556
|
+
});
|
|
2557
|
+
}
|
|
2558
|
+
stored() {
|
|
2559
|
+
if (!this.stored$) {
|
|
2560
|
+
this.stored$ = this.getPreference(PREFERENCE_KEY).pipe(tap((result) => (this.unavailable = result?.error?.status === HttpStatusCode.NotFound)), map((result) => (this.isReadFailure(result) ? null : this.parse(result?.response?.value))), tap((searches) => {
|
|
2561
|
+
if (searches) {
|
|
2562
|
+
this.searches.set(searches);
|
|
2563
|
+
}
|
|
2564
|
+
else {
|
|
2565
|
+
this.stored$ = undefined;
|
|
2566
|
+
}
|
|
2567
|
+
}), shareReplay(1));
|
|
2568
|
+
}
|
|
2569
|
+
return this.stored$;
|
|
2570
|
+
}
|
|
2571
|
+
// A missing endpoint (404) counts as an empty list; any other error means the stored list is unknown
|
|
2572
|
+
isReadFailure(result) {
|
|
2573
|
+
return !!result?.error && result.error.status !== HttpStatusCode.NotFound;
|
|
2574
|
+
}
|
|
2575
|
+
parse(value) {
|
|
2576
|
+
if (!value) {
|
|
2577
|
+
return [];
|
|
2578
|
+
}
|
|
2579
|
+
try {
|
|
2580
|
+
const parsed = JSON.parse(value);
|
|
2581
|
+
return Array.isArray(parsed)
|
|
2582
|
+
? parsed.filter((item) => typeof item === 'string').slice(0, MAX_RECENT_SEARCHES)
|
|
2583
|
+
: [];
|
|
2584
|
+
}
|
|
2585
|
+
catch {
|
|
2586
|
+
return [];
|
|
2587
|
+
}
|
|
2588
|
+
}
|
|
2589
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RecentSearchService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2590
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RecentSearchService, providedIn: 'root' }); }
|
|
2591
|
+
}
|
|
2592
|
+
__decorate([
|
|
2593
|
+
ServiceCall(HTTPMethods.GETBYDYNAMICPATH, ProxyTypes.ClientSide, 'user-preferences/$', SILENT, Apps.MNG)
|
|
2594
|
+
], RecentSearchService.prototype, "getPreference", null);
|
|
2595
|
+
__decorate([
|
|
2596
|
+
ServiceCall(HTTPMethods.PUTBYDYNAMICPATH, ProxyTypes.ClientSide, 'user-preferences/$', SILENT, Apps.MNG)
|
|
2597
|
+
], RecentSearchService.prototype, "savePreference", null);
|
|
2598
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RecentSearchService, decorators: [{
|
|
2599
|
+
type: Injectable,
|
|
2600
|
+
args: [{ providedIn: 'root' }]
|
|
2601
|
+
}], propDecorators: { getPreference: [], savePreference: [] } });
|
|
2602
|
+
|
|
1758
2603
|
class GeneralSearchComponent {
|
|
1759
|
-
|
|
2604
|
+
get isPageVariant() {
|
|
2605
|
+
return this.variant() === 'page';
|
|
2606
|
+
}
|
|
2607
|
+
constructor(router, searchService, recentSearchService, layoutService) {
|
|
1760
2608
|
this.router = router;
|
|
1761
2609
|
this.searchService = searchService;
|
|
2610
|
+
this.recentSearchService = recentSearchService;
|
|
2611
|
+
this.layoutService = layoutService;
|
|
2612
|
+
// 'page' renders the large search box of the home page; 'topbar' is the compact one in the layout header
|
|
2613
|
+
this.variant = input('topbar');
|
|
1762
2614
|
this.query = '';
|
|
2615
|
+
// Text of the last executed search; `query` turns into the selected result object once a result is picked
|
|
2616
|
+
this.lastSearchText = '';
|
|
1763
2617
|
this.activeTab = 'all';
|
|
1764
2618
|
this.data = {};
|
|
1765
2619
|
this.presentableData = [];
|
|
1766
2620
|
this.querySubject = new Subject();
|
|
1767
|
-
this.resultsSig = toSignal(this.querySubject.pipe(map((q) => q.trim()), filter((q) => q.length > 2), switchMap$1((q) => {
|
|
2621
|
+
this.resultsSig = toSignal(this.querySubject.pipe(map$1((q) => q.trim()), filter$1((q) => q.length > 2), switchMap$1((q) => {
|
|
1768
2622
|
const payload = {
|
|
1769
2623
|
searchText: q,
|
|
1770
2624
|
assetDefinitionCodes: [],
|
|
1771
2625
|
pager: { pageSize: 5, pageNumber: 1 }
|
|
1772
2626
|
};
|
|
1773
|
-
return this.searchService.searchForAssets(payload).pipe(map((res) => res.response), catchError(() => {
|
|
2627
|
+
return this.searchService.searchForAssets(payload).pipe(map$1((res) => res.response), catchError$1(() => {
|
|
1774
2628
|
return of({});
|
|
1775
2629
|
}), startWith(null));
|
|
1776
2630
|
})), { initialValue: null });
|
|
@@ -1782,16 +2636,53 @@ class GeneralSearchComponent {
|
|
|
1782
2636
|
}
|
|
1783
2637
|
});
|
|
1784
2638
|
}
|
|
2639
|
+
ngOnInit() {
|
|
2640
|
+
if (this.isPageVariant) {
|
|
2641
|
+
this.changePageSearchCount(1);
|
|
2642
|
+
}
|
|
2643
|
+
}
|
|
2644
|
+
ngOnDestroy() {
|
|
2645
|
+
if (this.isPageVariant) {
|
|
2646
|
+
this.changePageSearchCount(-1);
|
|
2647
|
+
}
|
|
2648
|
+
}
|
|
2649
|
+
// The top bar reads the count in its template; it is changed after the running change detection, not inside it
|
|
2650
|
+
changePageSearchCount(change) {
|
|
2651
|
+
queueMicrotask(() => this.layoutService.pageSearchCount.update((count) => Math.max(0, count + change)));
|
|
2652
|
+
}
|
|
1785
2653
|
search(query) {
|
|
1786
2654
|
this.query = (query ?? '').trim();
|
|
2655
|
+
this.lastSearchText = this.query;
|
|
1787
2656
|
this.querySubject.next(this.query);
|
|
1788
2657
|
}
|
|
2658
|
+
// Ctrl K focuses the page search box from anywhere on the page
|
|
2659
|
+
onDocumentKeydown(event) {
|
|
2660
|
+
if (this.isPageVariant && (event.ctrlKey || event.metaKey) && event.key.toLowerCase() === 'k') {
|
|
2661
|
+
event.preventDefault();
|
|
2662
|
+
this.autoComplete?.inputEL?.nativeElement.focus();
|
|
2663
|
+
}
|
|
2664
|
+
}
|
|
2665
|
+
// Runs a search programmatically, e.g. when a recent search is clicked
|
|
2666
|
+
runSearch(query) {
|
|
2667
|
+
const inputElement = this.autoComplete?.inputEL?.nativeElement;
|
|
2668
|
+
if (!inputElement) {
|
|
2669
|
+
return;
|
|
2670
|
+
}
|
|
2671
|
+
this.query = query;
|
|
2672
|
+
inputElement.value = query;
|
|
2673
|
+
inputElement.focus();
|
|
2674
|
+
this.autoComplete?.search(new Event('input'), query, 'input');
|
|
2675
|
+
}
|
|
1789
2676
|
setTab(tab) {
|
|
1790
2677
|
this.activeTab = tab;
|
|
1791
2678
|
this.presentableData = getPresentableData(this.data, tab);
|
|
1792
2679
|
}
|
|
1793
2680
|
goToDetail(item) {
|
|
1794
2681
|
const isHostYeap = bridge.activeHost() === Apps.YEAP;
|
|
2682
|
+
// Recent searches are kept only on the THOR host; the other hosts do not serve user preferences
|
|
2683
|
+
if (bridge.activeHost() === Apps.THOR) {
|
|
2684
|
+
this.recentSearchService.add(this.lastSearchText);
|
|
2685
|
+
}
|
|
1795
2686
|
if (isHostYeap) {
|
|
1796
2687
|
this.router.navigate(['mng/master-data/view-md-data'], {
|
|
1797
2688
|
queryParams: { assetId: item.assetId }
|
|
@@ -1804,14 +2695,24 @@ class GeneralSearchComponent {
|
|
|
1804
2695
|
onResultClick(item) {
|
|
1805
2696
|
this.goToDetail(item.value);
|
|
1806
2697
|
}
|
|
1807
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
1808
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.
|
|
2698
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: GeneralSearchComponent, deps: [{ token: i1$3.Router }, { token: SearchService }, { token: RecentSearchService }, { token: LayoutService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2699
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: GeneralSearchComponent, isStandalone: true, selector: "app-general-search", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "document:keydown": "onDocumentKeydown($event)" }, properties: { "class.general-search--page": "this.isPageVariant" } }, viewQueries: [{ propertyName: "autoComplete", first: true, predicate: AutoComplete, descendants: true }], ngImport: i0, template: "<ng-container *transloco=\"let g\">\n\t<ng-container *transloco=\"let t; read: 'generalSearch'\">\n\t\t<div class=\"global-search\">\n\t\t\t@if (isPageVariant) {\n\t\t\t\t<i class=\"pi pi-search page-search-icon\"></i>\n\t\t\t\t<span class=\"page-search-kbd\">Ctrl K</span>\n\t\t\t}\n\t\t\t<p-autoComplete\n\t\t\t\t[(ngModel)]=\"query\"\n\t\t\t\toptionLabel=\"title\"\n\t\t\t\tminLength=\"3\"\n\t\t\t\t[delay]=\"500\"\n\t\t\t\t(completeMethod)=\"search($event.query)\"\n\t\t\t\t[suggestions]=\"presentableData\"\n\t\t\t\t[placeholder]=\"isPageVariant ? t('pagePlaceholder') : t('placeholder')\"\n\t\t\t\t(onSelect)=\"onResultClick($event)\">\n\t\t\t\t<ng-template pTemplate=\"empty\">\n\t\t\t\t\t<div class=\"px-3\">\n\t\t\t\t\t\t{{ t('noResults') }}\n\t\t\t\t\t</div>\n\t\t\t\t</ng-template>\n\t\t\t\t<ng-template pTemplate=\"header\">\n\t\t\t\t\t<div class=\"tabs flex gap-2 overflow-x-auto white-space-nowrap p-2 border-bottom-1 border-gray-200\">\n\t\t\t\t\t\t<span (click)=\"setTab('all')\" class=\"cursor-pointer py-1 px-2\" [class.active]=\"activeTab === 'all'\">\n\t\t\t\t\t\t\t{{ t('all') }}\n\t\t\t\t\t\t</span>\n\n\t\t\t\t\t\t@for (tab of data | keyvalue; track tab) {\n\t\t\t\t\t\t\t<span (click)=\"setTab(tab.key)\" class=\"cursor-pointer py-1 px-2\" [class.active]=\"activeTab === tab.key\">\n\t\t\t\t\t\t\t\t{{ data[tab.key].result[0].assetDefinitionName }}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</ng-template>\n\t\t\t\t<ng-template let-result pTemplate=\"item\">\n\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t<div class=\"result-icon\">\n\t\t\t\t\t\t\t<i class=\"pi {{ result.icon }}\"></i>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"result-text\">\n\t\t\t\t\t\t\t<div class=\"title mb-2\">{{ result.title }}</div>\n\t\t\t\t\t\t\t@if (result.subtitle) {\n\t\t\t\t\t\t\t\t<div class=\"subtitle\">{{ result.subtitle }}</div>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t@if (result.url) {\n\t\t\t\t\t\t\t<div class=\"open-btn ml-auto align-self-center\">\n\t\t\t\t\t\t\t\t<i class=\"pi pi-chevron-right\"></i>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</ng-template>\n\t\t\t\t<ng-template pTemplate=\"footer\">\n\t\t\t\t\t<div class=\"px-3 py-3 border-top-1 border-gray-200\">\n\t\t\t\t\t\t<span>{{ presentableData.length }} {{ t('results') }}</span>\n\t\t\t\t\t</div>\n\t\t\t\t</ng-template>\n\t\t\t</p-autoComplete>\n\t\t</div>\n\t</ng-container>\n</ng-container>\n", styles: [":host ::ng-deep .p-autocomplete,:host ::ng-deep .p-autocomplete-input{width:100%;max-width:100%}:host ::ng-deep .p-overlay{width:100%!important;max-width:100%!important}:host ::ng-deep .p-autocomplete-item.p-focus{background:var(--gray-100)}:host ::ng-deep .tabs span.active{font-weight:700;border-bottom:2px solid var(--gray-900)}.global-search{position:relative}:host.general-search--page{display:block}:host.general-search--page .page-search-icon{position:absolute;left:13px;top:50%;z-index:1;transform:translateY(-50%);display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#eff3ff;font-size:16px;color:#2563eb;pointer-events:none}:host.general-search--page .page-search-kbd{position:absolute;right:14px;top:50%;z-index:1;transform:translateY(-50%);display:inline-flex;align-items:center;height:22px;padding:0 6px;border:1px solid #e5e7eb;border-bottom-width:2px;border-radius:5px;background:#f9fafb;color:#475569;font-size:12px;font-weight:600;white-space:nowrap;pointer-events:none}:host.general-search--page ::ng-deep .p-autocomplete-input{min-height:60px;padding:8px 80px 8px 58px;border:1px solid #cbd5e1;border-radius:10px;box-shadow:0 6px 20px -8px #2563eb38;font-size:16px;color:#1e293b;transition:border-color .15s,box-shadow .15s}:host.general-search--page ::ng-deep .p-autocomplete-input:enabled:hover{border-color:#93c5fd}:host.general-search--page ::ng-deep .p-autocomplete-input:enabled:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb29,0 6px 20px -8px #2563eb4d}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i3$1.KeyValuePipe, name: "keyvalue" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: TranslocoModule }, { kind: "directive", type: i5.TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoLang", "translocoLoadingTpl"] }, { kind: "ngmodule", type: AutoCompleteModule }, { kind: "component", type: i8$1.AutoComplete, selector: "p-autoComplete", inputs: ["minLength", "delay", "style", "panelStyle", "styleClass", "panelStyleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "readonly", "disabled", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "maxlength", "name", "required", "size", "appendTo", "autoHighlight", "forceSelection", "type", "autoZIndex", "baseZIndex", "ariaLabel", "dropdownAriaLabel", "ariaLabelledBy", "dropdownIcon", "unique", "group", "completeOnFocus", "showClear", "field", "dropdown", "showEmptyMessage", "dropdownMode", "multiple", "tabindex", "dataKey", "emptyMessage", "showTransitionOptions", "hideTransitionOptions", "autofocus", "autocomplete", "optionGroupChildren", "optionGroupLabel", "overlayOptions", "suggestions", "itemSize", "optionLabel", "optionValue", "id", "searchMessage", "emptySelectionMessage", "selectionMessage", "autoOptionFocus", "selectOnFocus", "searchLocale", "optionDisabled", "focusOnHover", "variant"], outputs: ["completeMethod", "onSelect", "onUnselect", "onFocus", "onBlur", "onDropdownClick", "onClear", "onKeyUp", "onShow", "onHide", "onLazyLoad"] }, { kind: "directive", type: i3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }] }); }
|
|
1809
2700
|
}
|
|
1810
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
2701
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: GeneralSearchComponent, decorators: [{
|
|
1811
2702
|
type: Component,
|
|
1812
|
-
args: [{ selector: 'app-general-search', standalone: true, imports: [CommonModule, FormsModule, TranslocoModule, AutoCompleteModule], template: "<ng-container *transloco=\"let g\">\
|
|
1813
|
-
}], ctorParameters: () => [{ type: i1$
|
|
2703
|
+
args: [{ selector: 'app-general-search', standalone: true, imports: [CommonModule, FormsModule, TranslocoModule, AutoCompleteModule], template: "<ng-container *transloco=\"let g\">\n\t<ng-container *transloco=\"let t; read: 'generalSearch'\">\n\t\t<div class=\"global-search\">\n\t\t\t@if (isPageVariant) {\n\t\t\t\t<i class=\"pi pi-search page-search-icon\"></i>\n\t\t\t\t<span class=\"page-search-kbd\">Ctrl K</span>\n\t\t\t}\n\t\t\t<p-autoComplete\n\t\t\t\t[(ngModel)]=\"query\"\n\t\t\t\toptionLabel=\"title\"\n\t\t\t\tminLength=\"3\"\n\t\t\t\t[delay]=\"500\"\n\t\t\t\t(completeMethod)=\"search($event.query)\"\n\t\t\t\t[suggestions]=\"presentableData\"\n\t\t\t\t[placeholder]=\"isPageVariant ? t('pagePlaceholder') : t('placeholder')\"\n\t\t\t\t(onSelect)=\"onResultClick($event)\">\n\t\t\t\t<ng-template pTemplate=\"empty\">\n\t\t\t\t\t<div class=\"px-3\">\n\t\t\t\t\t\t{{ t('noResults') }}\n\t\t\t\t\t</div>\n\t\t\t\t</ng-template>\n\t\t\t\t<ng-template pTemplate=\"header\">\n\t\t\t\t\t<div class=\"tabs flex gap-2 overflow-x-auto white-space-nowrap p-2 border-bottom-1 border-gray-200\">\n\t\t\t\t\t\t<span (click)=\"setTab('all')\" class=\"cursor-pointer py-1 px-2\" [class.active]=\"activeTab === 'all'\">\n\t\t\t\t\t\t\t{{ t('all') }}\n\t\t\t\t\t\t</span>\n\n\t\t\t\t\t\t@for (tab of data | keyvalue; track tab) {\n\t\t\t\t\t\t\t<span (click)=\"setTab(tab.key)\" class=\"cursor-pointer py-1 px-2\" [class.active]=\"activeTab === tab.key\">\n\t\t\t\t\t\t\t\t{{ data[tab.key].result[0].assetDefinitionName }}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</ng-template>\n\t\t\t\t<ng-template let-result pTemplate=\"item\">\n\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t<div class=\"result-icon\">\n\t\t\t\t\t\t\t<i class=\"pi {{ result.icon }}\"></i>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"result-text\">\n\t\t\t\t\t\t\t<div class=\"title mb-2\">{{ result.title }}</div>\n\t\t\t\t\t\t\t@if (result.subtitle) {\n\t\t\t\t\t\t\t\t<div class=\"subtitle\">{{ result.subtitle }}</div>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t@if (result.url) {\n\t\t\t\t\t\t\t<div class=\"open-btn ml-auto align-self-center\">\n\t\t\t\t\t\t\t\t<i class=\"pi pi-chevron-right\"></i>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</ng-template>\n\t\t\t\t<ng-template pTemplate=\"footer\">\n\t\t\t\t\t<div class=\"px-3 py-3 border-top-1 border-gray-200\">\n\t\t\t\t\t\t<span>{{ presentableData.length }} {{ t('results') }}</span>\n\t\t\t\t\t</div>\n\t\t\t\t</ng-template>\n\t\t\t</p-autoComplete>\n\t\t</div>\n\t</ng-container>\n</ng-container>\n", styles: [":host ::ng-deep .p-autocomplete,:host ::ng-deep .p-autocomplete-input{width:100%;max-width:100%}:host ::ng-deep .p-overlay{width:100%!important;max-width:100%!important}:host ::ng-deep .p-autocomplete-item.p-focus{background:var(--gray-100)}:host ::ng-deep .tabs span.active{font-weight:700;border-bottom:2px solid var(--gray-900)}.global-search{position:relative}:host.general-search--page{display:block}:host.general-search--page .page-search-icon{position:absolute;left:13px;top:50%;z-index:1;transform:translateY(-50%);display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#eff3ff;font-size:16px;color:#2563eb;pointer-events:none}:host.general-search--page .page-search-kbd{position:absolute;right:14px;top:50%;z-index:1;transform:translateY(-50%);display:inline-flex;align-items:center;height:22px;padding:0 6px;border:1px solid #e5e7eb;border-bottom-width:2px;border-radius:5px;background:#f9fafb;color:#475569;font-size:12px;font-weight:600;white-space:nowrap;pointer-events:none}:host.general-search--page ::ng-deep .p-autocomplete-input{min-height:60px;padding:8px 80px 8px 58px;border:1px solid #cbd5e1;border-radius:10px;box-shadow:0 6px 20px -8px #2563eb38;font-size:16px;color:#1e293b;transition:border-color .15s,box-shadow .15s}:host.general-search--page ::ng-deep .p-autocomplete-input:enabled:hover{border-color:#93c5fd}:host.general-search--page ::ng-deep .p-autocomplete-input:enabled:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb29,0 6px 20px -8px #2563eb4d}\n"] }]
|
|
2704
|
+
}], ctorParameters: () => [{ type: i1$3.Router }, { type: SearchService }, { type: RecentSearchService }, { type: LayoutService }], propDecorators: { autoComplete: [{
|
|
2705
|
+
type: ViewChild,
|
|
2706
|
+
args: [AutoComplete]
|
|
2707
|
+
}], isPageVariant: [{
|
|
2708
|
+
type: HostBinding,
|
|
2709
|
+
args: ['class.general-search--page']
|
|
2710
|
+
}], onDocumentKeydown: [{
|
|
2711
|
+
type: HostListener,
|
|
2712
|
+
args: ['document:keydown', ['$event']]
|
|
2713
|
+
}] } });
|
|
1814
2714
|
|
|
2715
|
+
const FOLLOW_RELEASE_MS = 5000;
|
|
1815
2716
|
class AppTopbarComponent {
|
|
1816
2717
|
constructor(translocoService, pubSubService, keycloak) {
|
|
1817
2718
|
this.translocoService = translocoService;
|
|
@@ -1819,7 +2720,23 @@ class AppTopbarComponent {
|
|
|
1819
2720
|
this.keycloak = keycloak;
|
|
1820
2721
|
this.layoutService = inject(LayoutService);
|
|
1821
2722
|
this.router = inject(Router);
|
|
2723
|
+
this.screenVisitService = inject(ScreenVisitService);
|
|
2724
|
+
this.favoritePagesService = inject(FavoritePagesService);
|
|
1822
2725
|
this.search = '';
|
|
2726
|
+
// The follow (star) button is shown on the detail page of a record; a followed record is a favorite page
|
|
2727
|
+
this.recordRoute = this.screenVisitService.currentRecordRoute;
|
|
2728
|
+
// Set from the click until the list is loaded again, so a second click can not add the record twice
|
|
2729
|
+
this.followPending = signal(false);
|
|
2730
|
+
// The button is released when the list arrives; if that reload fails it must not stay disabled.
|
|
2731
|
+
// Each click restarts the wait, so an earlier one can not release a later click
|
|
2732
|
+
this.followRelease = new Subject();
|
|
2733
|
+
// A page with its own large search box (the THOR home page) declares it, so the box on the top bar is not
|
|
2734
|
+
// repeated there; a page without one, whatever its url, keeps the top bar box
|
|
2735
|
+
this.searchOnPage = computed(() => this.layoutService.pageSearchCount() > 0);
|
|
2736
|
+
this.followedFavorite = computed(() => {
|
|
2737
|
+
const path = this.pathOf(this.screenVisitService.currentUrl());
|
|
2738
|
+
return this.favoritePagesService.allFavoritePages().find((favorite) => this.pathOf(favorite.url) === path) ?? null;
|
|
2739
|
+
});
|
|
1823
2740
|
this.logoPath = '';
|
|
1824
2741
|
this.environmentBadge = this.resolveEnvironment();
|
|
1825
2742
|
this.currentFlagPath = '';
|
|
@@ -1833,6 +2750,13 @@ class AppTopbarComponent {
|
|
|
1833
2750
|
this.setFlagPath(this.currentLang);
|
|
1834
2751
|
this.setLogoPath();
|
|
1835
2752
|
this.username = this.keycloak.getUsername();
|
|
2753
|
+
this.followRelease
|
|
2754
|
+
.pipe(switchMap(() => timer(FOLLOW_RELEASE_MS)))
|
|
2755
|
+
.subscribe(() => this.followPending.set(false));
|
|
2756
|
+
effect(() => {
|
|
2757
|
+
this.favoritePagesService.allFavoritePages();
|
|
2758
|
+
this.followPending.set(false);
|
|
2759
|
+
}, { allowSignalWrites: true });
|
|
1836
2760
|
}
|
|
1837
2761
|
get unreadCount() {
|
|
1838
2762
|
return this.layoutService.getUnreadNotificationCount();
|
|
@@ -1855,6 +2779,32 @@ class AppTopbarComponent {
|
|
|
1855
2779
|
onFavoritePagesButtonClick() {
|
|
1856
2780
|
this.layoutService.showFavoritePagesSidebar();
|
|
1857
2781
|
}
|
|
2782
|
+
onFollowRecordButtonClick() {
|
|
2783
|
+
const route = this.recordRoute();
|
|
2784
|
+
if (!route || this.followPending()) {
|
|
2785
|
+
return;
|
|
2786
|
+
}
|
|
2787
|
+
this.followPending.set(true);
|
|
2788
|
+
const favorite = this.followedFavorite();
|
|
2789
|
+
const number = this.screenVisitService.currentRecord()?.number ?? route.id;
|
|
2790
|
+
const change$ = favorite ?
|
|
2791
|
+
this.favoritePagesService.deleteFavoritePage(favorite.id)
|
|
2792
|
+
: this.favoritePagesService.saveFavoritePage({
|
|
2793
|
+
url: this.pathOf(this.screenVisitService.currentUrl()),
|
|
2794
|
+
label: `${this.translocoService.translate(RECORD_TYPE_LABEL_KEYS[route.type])} ${number}`
|
|
2795
|
+
});
|
|
2796
|
+
change$.subscribe((result) => {
|
|
2797
|
+
if (result?.error) {
|
|
2798
|
+
this.followPending.set(false);
|
|
2799
|
+
return;
|
|
2800
|
+
}
|
|
2801
|
+
this.favoritePagesService.reloadRequest.next();
|
|
2802
|
+
this.followRelease.next();
|
|
2803
|
+
});
|
|
2804
|
+
}
|
|
2805
|
+
pathOf(url) {
|
|
2806
|
+
return url.split(/[?#]/)[0];
|
|
2807
|
+
}
|
|
1858
2808
|
onNotificationsButtonClick() {
|
|
1859
2809
|
this.layoutService.showNotificationsSidebar();
|
|
1860
2810
|
}
|
|
@@ -1940,10 +2890,10 @@ class AppTopbarComponent {
|
|
|
1940
2890
|
return null;
|
|
1941
2891
|
}
|
|
1942
2892
|
}
|
|
1943
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
1944
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: AppTopbarComponent, isStandalone: true, selector: "app-topbar", viewQueries: [{ propertyName: "menuButton", first: true, predicate: ["menubutton"], descendants: true }], ngImport: i0, template: "<div class=\"layout-topbar\">\r\n\t<div class=\"topbar-start\">\r\n\t\t<button #menubutton type=\"button\" class=\"topbar-menubutton p-link p-trigger\" (click)=\"onMenuButtonClick()\">\r\n\t\t\t<i class=\"pi pi-bars\"></i>\r\n\t\t</button>\r\n\t\t<img [src]=\"logoPath\" class=\"topbar-logo\" alt=\"logo\" (click)=\"onLogoClick()\" />\r\n\t\t@if (environmentBadge) {\r\n\t\t\t<span class=\"env-indicator\" [attr.data-co]=\"environmentBadge.code\">{{ environmentBadge.label }}</span>\r\n\t\t}\r\n\t</div>\r\n\r\n\t<div class=\"topbar-search\" *transloco=\"let t; read: ''\">\r\n\t\t<span class=\"p-input-icon-left\">\r\n\t\t\t<i class=\"pi pi-search\"></i>\r\n\t\t\t<app-general-search></app-general-search>\r\n\t\t</span>\r\n\t</div>\r\n\r\n\t<div class=\"topbar-end mr-2\">\r\n\t\t<ul class=\"topbar-menu\">\r\n\t\t\t<li class=\"topbar-menu-item\">\r\n\t\t\t\t<p-button\r\n\t\t\t\t\ticon=\"pi pi-sitemap\"\r\n\t\t\t\t\tseverity=\"secondary\"\r\n\t\t\t\t\t[text]=\"true\"\r\n\t\t\t\t\t[rounded]=\"true\"\r\n\t\t\t\t\t(click)=\"onSiteMapButtonClick()\" />\r\n\t\t\t</li>\r\n\t\t\t<li class=\"topbar-menu-item\">\r\n\t\t\t\t<p-button\r\n\t\t\t\t\ticon=\"pi pi-history\"\r\n\t\t\t\t\tseverity=\"secondary\"\r\n\t\t\t\t\t[text]=\"true\"\r\n\t\t\t\t\t[rounded]=\"true\"\r\n\t\t\t\t\t(click)=\"onHistoryButtonClick()\" />\r\n\t\t\t</li>\r\n\t\t\t<li class=\"topbar-menu-item\">\r\n\t\t\t\t<p-button\r\n\t\t\t\t\ticon=\"pi pi-heart\"\r\n\t\t\t\t\tseverity=\"secondary\"\r\n\t\t\t\t\t[text]=\"true\"\r\n\t\t\t\t\t[rounded]=\"true\"\r\n\t\t\t\t\t(click)=\"onFavoritePagesButtonClick()\" />\r\n\t\t\t</li>\r\n\r\n\t\t\t<li class=\"topbar-menu-item\">\r\n\t\t\t\t<p-button severity=\"secondary\" [text]=\"true\" [rounded]=\"true\" (click)=\"onProfileButtonClick()\">\r\n\t\t\t\t\t{{ username[0] | uppercase }}\r\n\t\t\t\t</p-button>\r\n\t\t\t</li>\r\n\t\t\t<li class=\"topbar-menu-item\">\r\n\t\t\t\t<p-divider layout=\"vertical\" styleClass=\"h-1rem border-500 m-0\" />\r\n\t\t\t</li>\r\n\t\t\t<li class=\"topbar-menu-item\">\r\n\t\t\t\t<i\r\n\t\t\t\t\tclass=\"pi pi-bell notification-icon\"\r\n\t\t\t\t\tpBadge\r\n\t\t\t\t\t[value]=\"unreadCount > 0 ? unreadCount.toString() : '0'\"\r\n\t\t\t\t\t(click)=\"onNotificationsButtonClick()\"></i>\r\n\t\t\t</li>\r\n\t\t\t<li class=\"topbar-menu-item\">\r\n\t\t\t\t<p-dropdown\r\n\t\t\t\t\t[options]=\"languages\"\r\n\t\t\t\t\t[(ngModel)]=\"currentLang\"\r\n\t\t\t\t\t(onChange)=\"onLanguageChange()\"\r\n\t\t\t\t\toptionLabel=\"name\"\r\n\t\t\t\t\toptionValue=\"code\"\r\n\t\t\t\t\t[showClear]=\"false\"\r\n\t\t\t\t\tclass=\"custom-dropdown ml-3\">\r\n\t\t\t\t\t<ng-template pTemplate=\"selectedItem\">\r\n\t\t\t\t\t\t<div class=\"flex align-items-center gap-2\">\r\n\t\t\t\t\t\t\t<img [src]=\"currentFlagPath\" class=\"flag-icon\" alt=\"flag\" />\r\n\t\t\t\t\t\t\t<span class=\"language-text\">{{ currentLang | uppercase }}</span>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</ng-template>\r\n\t\t\t\t\t<ng-template pTemplate=\"item\" let-item>\r\n\t\t\t\t\t\t<div class=\"flex align-items-center gap-2\">\r\n\t\t\t\t\t\t\t<img [src]=\"item.flag\" class=\"flag-icon\" alt=\"flag\" />\r\n\t\t\t\t\t\t\t<span>{{ item.name }}</span>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</ng-template>\r\n\t\t\t\t</p-dropdown>\r\n\t\t\t</li>\r\n\t\t</ul>\r\n\t</div>\r\n</div>\r\n\r\n<!-- <app-breadcrumb class=\"topbar-breadcrumb\"></app-breadcrumb> -->\r\n", styles: [".layout-topbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:.5rem;padding:0 1rem;box-shadow:0 1px 2px #00000013}@media (max-width: 768px){.layout-topbar{padding:0 .5rem;gap:.25rem}}.topbar-start{display:flex}.topbar-logo{height:36px;width:auto;cursor:pointer}@media (max-width: 768px){.topbar-logo{display:none}}.env-indicator{align-self:center;display:inline-flex;align-items:center;margin-left:.85rem;padding:.6rem 1.6rem;border-radius:999px;color:#fff;font-weight:700;font-size:1.3rem;line-height:1;letter-spacing:.07em;white-space:nowrap;text-transform:uppercase;box-shadow:0 1px 2px #0000002e;text-shadow:0 1px 1px rgba(0,0,0,.18)}.env-indicator[data-co=depsas]{background:#fc5000}.env-indicator[data-co=dedas]{background:#00adba}@media (max-width: 768px){.env-indicator{display:none}}.topbar-search{flex:1;max-width:50rem;margin:0 1rem}@media (max-width: 1024px){.topbar-search{max-width:30rem}}@media (max-width: 768px){.topbar-search{max-width:20rem;margin:0 .5rem}}@media (max-width: 480px){.topbar-search{max-width:15rem;margin:0 .25rem}}.topbar-search .p-input-icon-left{width:100%}.topbar-end{flex-shrink:0}.topbar-menu{display:flex;align-items:center;gap:.5rem;margin:0;padding:0;list-style:none}@media (max-width: 768px){.topbar-menu{gap:.25rem}}@media (max-width: 480px){.topbar-menu{gap:.1rem}}.topbar-menu-item{display:flex;align-items:center}@media (max-width: 1024px){.desktop-only{display:none!important}}.mobile-only{display:none!important}@media (max-width: 1024px){.mobile-only{display:flex!important}}.custom-dropdown .p-dropdown{border-radius:50px;padding:.5rem 1rem;border:1px solid #c8c8c8;background-color:#f4f4f4}@media (max-width: 768px){.custom-dropdown .p-dropdown{padding:.4rem .8rem}}@media (max-width: 480px){.custom-dropdown .p-dropdown{padding:.3rem .6rem}}.custom-dropdown .p-dropdown-label{padding:0;line-height:1.5}.custom-dropdown .p-dropdown-trigger{border-radius:50px}.flag-icon{width:18px;height:18px;display:inline-block;vertical-align:middle}@media (max-width: 768px){.flag-icon{width:16px;height:16px}}@media (max-width: 480px){.language-text{display:none}}@media (max-width: 768px){.topbar-menubutton{padding:.4rem!important}}@media (max-width: 480px){.topbar-menubutton{padding:.3rem!important}}@media (max-width: 768px){.topbar-menu-item p-button{min-width:auto}.topbar-menu-item p-button .p-button-icon{margin:0}.topbar-menu-item p-button .p-button-label{font-size:.9rem}}@media (max-width: 480px){.topbar-menu-item p-button .p-button-label{font-size:.8rem}.topbar-menu-item p-divider{display:none}}.notification-icon{cursor:pointer;padding:.2rem;border-radius:50%;transition:background-color .2s}.notification-icon:hover{background-color:var(--surface-hover)}@media (max-width: 480px){.notification-icon{font-size:.9rem;padding:.4rem}}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i4.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "style", "styleClass", "badgeClass", "ariaLabel", "autofocus"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "directive", type: i3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "pipe", type: UpperCasePipe, name: "uppercase" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: DividerModule }, { kind: "component", type: i7$2.Divider, selector: "p-divider", inputs: ["style", "styleClass", "layout", "type", "align"] }, { kind: "ngmodule", type: BadgeModule }, { kind: "directive", type: i8$1.BadgeDirective, selector: "[pBadge]", inputs: ["badgeDisabled", "badgeSize", "size", "severity", "value", "badgeStyle", "badgeStyleClass"] }, { kind: "ngmodule", type: MenubarModule }, { kind: "ngmodule", type: DropdownModule }, { kind: "component", type: i9$2.Dropdown, selector: "p-dropdown", inputs: ["id", "scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "variant", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "disabled", "itemSize", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "filterValue", "options"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "ngmodule", type: TranslocoModule }, { kind: "directive", type: i5.TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: GeneralSearchComponent, selector: "app-general-search" }] }); }
|
|
2893
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AppTopbarComponent, deps: [{ token: i5.TranslocoService }, { token: i2$1.PubSubService }, { token: i1$1.KeycloakService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2894
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: AppTopbarComponent, isStandalone: true, selector: "app-topbar", viewQueries: [{ propertyName: "menuButton", first: true, predicate: ["menubutton"], descendants: true }], ngImport: i0, template: "<div class=\"layout-topbar\">\n\t<div class=\"topbar-start\">\n\t\t<button #menubutton type=\"button\" class=\"topbar-menubutton p-link p-trigger\" (click)=\"onMenuButtonClick()\">\n\t\t\t<i class=\"pi pi-bars\"></i>\n\t\t</button>\n\t\t<img [src]=\"logoPath\" class=\"topbar-logo\" alt=\"logo\" (click)=\"onLogoClick()\" />\n\t\t@if (environmentBadge) {\n\t\t\t<span class=\"env-indicator\" [attr.data-co]=\"environmentBadge.code\">{{ environmentBadge.label }}</span>\n\t\t}\n\t</div>\n\n\t<div class=\"topbar-search\" *transloco=\"let t; read: ''\">\n\t\t@if (!searchOnPage()) {\n\t\t\t<span class=\"p-input-icon-left\">\n\t\t\t\t<i class=\"pi pi-search\"></i>\n\t\t\t\t<app-general-search></app-general-search>\n\t\t\t</span>\n\t\t}\n\t</div>\n\n\t<div class=\"topbar-end mr-2\">\n\t\t<ul class=\"topbar-menu\">\n\t\t\t<li class=\"topbar-menu-item\">\n\t\t\t\t<p-button\n\t\t\t\t\ticon=\"pi pi-sitemap\"\n\t\t\t\t\tseverity=\"secondary\"\n\t\t\t\t\t[text]=\"true\"\n\t\t\t\t\t[rounded]=\"true\"\n\t\t\t\t\t(click)=\"onSiteMapButtonClick()\" />\n\t\t\t</li>\n\t\t\t<li class=\"topbar-menu-item\">\n\t\t\t\t<p-button\n\t\t\t\t\ticon=\"pi pi-history\"\n\t\t\t\t\tseverity=\"secondary\"\n\t\t\t\t\t[text]=\"true\"\n\t\t\t\t\t[rounded]=\"true\"\n\t\t\t\t\t(click)=\"onHistoryButtonClick()\" />\n\t\t\t</li>\n\t\t\t@if (recordRoute()) {\n\t\t\t\t<li class=\"topbar-menu-item\">\n\t\t\t\t\t<p-button\n\t\t\t\t\t\t[icon]=\"followedFavorite() ? 'pi pi-star-fill' : 'pi pi-star'\"\n\t\t\t\t\t\t[styleClass]=\"followedFavorite() ? 'topbar-follow topbar-follow--on' : 'topbar-follow'\"\n\t\t\t\t\t\tseverity=\"secondary\"\n\t\t\t\t\t\t[text]=\"true\"\n\t\t\t\t\t\t[rounded]=\"true\"\n\t\t\t\t\t\t[disabled]=\"followPending()\"\n\t\t\t\t\t\t[pTooltip]=\"(followedFavorite() ? 'home.unfollowRecord' : 'home.followRecord') | transloco\"\n\t\t\t\t\t\ttooltipPosition=\"bottom\"\n\t\t\t\t\t\t(click)=\"onFollowRecordButtonClick()\" />\n\t\t\t\t</li>\n\t\t\t}\n\t\t\t<li class=\"topbar-menu-item\">\n\t\t\t\t<p-button\n\t\t\t\t\ticon=\"pi pi-heart\"\n\t\t\t\t\tseverity=\"secondary\"\n\t\t\t\t\t[text]=\"true\"\n\t\t\t\t\t[rounded]=\"true\"\n\t\t\t\t\t(click)=\"onFavoritePagesButtonClick()\" />\n\t\t\t</li>\n\n\t\t\t<li class=\"topbar-menu-item\">\n\t\t\t\t<p-button severity=\"secondary\" [text]=\"true\" [rounded]=\"true\" (click)=\"onProfileButtonClick()\">\n\t\t\t\t\t{{ username[0] | uppercase }}\n\t\t\t\t</p-button>\n\t\t\t</li>\n\t\t\t<li class=\"topbar-menu-item\">\n\t\t\t\t<p-divider layout=\"vertical\" styleClass=\"h-1rem border-500 m-0\" />\n\t\t\t</li>\n\t\t\t<li class=\"topbar-menu-item\">\n\t\t\t\t<i\n\t\t\t\t\tclass=\"pi pi-bell notification-icon\"\n\t\t\t\t\tpBadge\n\t\t\t\t\t[value]=\"unreadCount > 0 ? unreadCount.toString() : '0'\"\n\t\t\t\t\t(click)=\"onNotificationsButtonClick()\"></i>\n\t\t\t</li>\n\t\t\t<li class=\"topbar-menu-item\">\n\t\t\t\t<p-dropdown\n\t\t\t\t\t[options]=\"languages\"\n\t\t\t\t\t[(ngModel)]=\"currentLang\"\n\t\t\t\t\t(onChange)=\"onLanguageChange()\"\n\t\t\t\t\toptionLabel=\"name\"\n\t\t\t\t\toptionValue=\"code\"\n\t\t\t\t\t[showClear]=\"false\"\n\t\t\t\t\tclass=\"custom-dropdown ml-3\">\n\t\t\t\t\t<ng-template pTemplate=\"selectedItem\">\n\t\t\t\t\t\t<div class=\"flex align-items-center gap-2\">\n\t\t\t\t\t\t\t<img [src]=\"currentFlagPath\" class=\"flag-icon\" alt=\"flag\" />\n\t\t\t\t\t\t\t<span class=\"language-text\">{{ currentLang | uppercase }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</ng-template>\n\t\t\t\t\t<ng-template pTemplate=\"item\" let-item>\n\t\t\t\t\t\t<div class=\"flex align-items-center gap-2\">\n\t\t\t\t\t\t\t<img [src]=\"item.flag\" class=\"flag-icon\" alt=\"flag\" />\n\t\t\t\t\t\t\t<span>{{ item.name }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</ng-template>\n\t\t\t\t</p-dropdown>\n\t\t\t</li>\n\t\t</ul>\n\t</div>\n</div>\n\n<!-- <app-breadcrumb class=\"topbar-breadcrumb\"></app-breadcrumb> -->\n", styles: [".layout-topbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:.5rem;padding:0 1rem;box-shadow:0 1px 2px #00000013}@media (max-width: 768px){.layout-topbar{padding:0 .5rem;gap:.25rem}}.topbar-start{display:flex}.topbar-logo{height:36px;width:auto;cursor:pointer}@media (max-width: 768px){.topbar-logo{display:none}}.env-indicator{align-self:center;display:inline-flex;align-items:center;margin-left:.85rem;padding:.6rem 1.6rem;border-radius:999px;color:#fff;font-weight:700;font-size:1.3rem;line-height:1;letter-spacing:.07em;white-space:nowrap;text-transform:uppercase;box-shadow:0 1px 2px #0000002e;text-shadow:0 1px 1px rgba(0,0,0,.18)}.env-indicator[data-co=depsas]{background:#fc5000}.env-indicator[data-co=dedas]{background:#00adba}@media (max-width: 768px){.env-indicator{display:none}}.topbar-search{flex:1;max-width:50rem;margin:0 1rem}@media (max-width: 1024px){.topbar-search{max-width:30rem}}@media (max-width: 768px){.topbar-search{max-width:20rem;margin:0 .5rem}}@media (max-width: 480px){.topbar-search{max-width:15rem;margin:0 .25rem}}.topbar-search .p-input-icon-left{width:100%}.topbar-end{flex-shrink:0}.topbar-menu{display:flex;align-items:center;gap:.5rem;margin:0;padding:0;list-style:none}@media (max-width: 768px){.topbar-menu{gap:.25rem}}@media (max-width: 480px){.topbar-menu{gap:.1rem}}.topbar-menu-item{display:flex;align-items:center}@media (max-width: 1024px){.desktop-only{display:none!important}}.mobile-only{display:none!important}@media (max-width: 1024px){.mobile-only{display:flex!important}}.custom-dropdown .p-dropdown{border-radius:50px;padding:.5rem 1rem;border:1px solid #c8c8c8;background-color:#f4f4f4}@media (max-width: 768px){.custom-dropdown .p-dropdown{padding:.4rem .8rem}}@media (max-width: 480px){.custom-dropdown .p-dropdown{padding:.3rem .6rem}}.custom-dropdown .p-dropdown-label{padding:0;line-height:1.5}.custom-dropdown .p-dropdown-trigger{border-radius:50px}.flag-icon{width:18px;height:18px;display:inline-block;vertical-align:middle}@media (max-width: 768px){.flag-icon{width:16px;height:16px}}@media (max-width: 480px){.language-text{display:none}}@media (max-width: 768px){.topbar-menubutton{padding:.4rem!important}}@media (max-width: 480px){.topbar-menubutton{padding:.3rem!important}}@media (max-width: 768px){.topbar-menu-item p-button{min-width:auto}.topbar-menu-item p-button .p-button-icon{margin:0}.topbar-menu-item p-button .p-button-label{font-size:.9rem}}@media (max-width: 480px){.topbar-menu-item p-button .p-button-label{font-size:.8rem}.topbar-menu-item p-divider{display:none}}.notification-icon{cursor:pointer;padding:.2rem;border-radius:50%;transition:background-color .2s}.notification-icon:hover{background-color:var(--surface-hover)}@media (max-width: 480px){.notification-icon{font-size:.9rem;padding:.4rem}}:host ::ng-deep .topbar-follow--on .p-button-icon{color:#b45309}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i4.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "style", "styleClass", "badgeClass", "ariaLabel", "autofocus"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "directive", type: i3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "pipe", type: UpperCasePipe, name: "uppercase" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: DividerModule }, { kind: "component", type: i7$2.Divider, selector: "p-divider", inputs: ["style", "styleClass", "layout", "type", "align"] }, { kind: "ngmodule", type: BadgeModule }, { kind: "directive", type: i8$2.BadgeDirective, selector: "[pBadge]", inputs: ["badgeDisabled", "badgeSize", "size", "severity", "value", "badgeStyle", "badgeStyleClass"] }, { kind: "ngmodule", type: MenubarModule }, { kind: "directive", type: i9.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "ngmodule", type: DropdownModule }, { kind: "component", type: i10$1.Dropdown, selector: "p-dropdown", inputs: ["id", "scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "variant", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "autoShowPanelOnPrintableCharacterKeyDown", "disabled", "itemSize", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "filterValue", "options"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "ngmodule", type: TranslocoModule }, { kind: "directive", type: i5.TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoLang", "translocoLoadingTpl"] }, { kind: "pipe", type: i5.TranslocoPipe, name: "transloco" }, { kind: "component", type: GeneralSearchComponent, selector: "app-general-search", inputs: ["variant"] }] }); }
|
|
1945
2895
|
}
|
|
1946
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
2896
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AppTopbarComponent, decorators: [{
|
|
1947
2897
|
type: Component,
|
|
1948
2898
|
args: [{ standalone: true, selector: 'app-topbar', imports: [
|
|
1949
2899
|
ButtonModule,
|
|
@@ -1953,10 +2903,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
1953
2903
|
BadgeModule,
|
|
1954
2904
|
MenubarModule,
|
|
1955
2905
|
DropdownModule,
|
|
2906
|
+
TooltipModule,
|
|
1956
2907
|
TranslocoModule,
|
|
1957
2908
|
GeneralSearchComponent
|
|
1958
|
-
], template: "<div class=\"layout-topbar\">\
|
|
1959
|
-
}], ctorParameters: () => [{ type: i5.TranslocoService }, { type: i2$1.PubSubService }, { type: i1.KeycloakService }], propDecorators: { menuButton: [{
|
|
2909
|
+
], template: "<div class=\"layout-topbar\">\n\t<div class=\"topbar-start\">\n\t\t<button #menubutton type=\"button\" class=\"topbar-menubutton p-link p-trigger\" (click)=\"onMenuButtonClick()\">\n\t\t\t<i class=\"pi pi-bars\"></i>\n\t\t</button>\n\t\t<img [src]=\"logoPath\" class=\"topbar-logo\" alt=\"logo\" (click)=\"onLogoClick()\" />\n\t\t@if (environmentBadge) {\n\t\t\t<span class=\"env-indicator\" [attr.data-co]=\"environmentBadge.code\">{{ environmentBadge.label }}</span>\n\t\t}\n\t</div>\n\n\t<div class=\"topbar-search\" *transloco=\"let t; read: ''\">\n\t\t@if (!searchOnPage()) {\n\t\t\t<span class=\"p-input-icon-left\">\n\t\t\t\t<i class=\"pi pi-search\"></i>\n\t\t\t\t<app-general-search></app-general-search>\n\t\t\t</span>\n\t\t}\n\t</div>\n\n\t<div class=\"topbar-end mr-2\">\n\t\t<ul class=\"topbar-menu\">\n\t\t\t<li class=\"topbar-menu-item\">\n\t\t\t\t<p-button\n\t\t\t\t\ticon=\"pi pi-sitemap\"\n\t\t\t\t\tseverity=\"secondary\"\n\t\t\t\t\t[text]=\"true\"\n\t\t\t\t\t[rounded]=\"true\"\n\t\t\t\t\t(click)=\"onSiteMapButtonClick()\" />\n\t\t\t</li>\n\t\t\t<li class=\"topbar-menu-item\">\n\t\t\t\t<p-button\n\t\t\t\t\ticon=\"pi pi-history\"\n\t\t\t\t\tseverity=\"secondary\"\n\t\t\t\t\t[text]=\"true\"\n\t\t\t\t\t[rounded]=\"true\"\n\t\t\t\t\t(click)=\"onHistoryButtonClick()\" />\n\t\t\t</li>\n\t\t\t@if (recordRoute()) {\n\t\t\t\t<li class=\"topbar-menu-item\">\n\t\t\t\t\t<p-button\n\t\t\t\t\t\t[icon]=\"followedFavorite() ? 'pi pi-star-fill' : 'pi pi-star'\"\n\t\t\t\t\t\t[styleClass]=\"followedFavorite() ? 'topbar-follow topbar-follow--on' : 'topbar-follow'\"\n\t\t\t\t\t\tseverity=\"secondary\"\n\t\t\t\t\t\t[text]=\"true\"\n\t\t\t\t\t\t[rounded]=\"true\"\n\t\t\t\t\t\t[disabled]=\"followPending()\"\n\t\t\t\t\t\t[pTooltip]=\"(followedFavorite() ? 'home.unfollowRecord' : 'home.followRecord') | transloco\"\n\t\t\t\t\t\ttooltipPosition=\"bottom\"\n\t\t\t\t\t\t(click)=\"onFollowRecordButtonClick()\" />\n\t\t\t\t</li>\n\t\t\t}\n\t\t\t<li class=\"topbar-menu-item\">\n\t\t\t\t<p-button\n\t\t\t\t\ticon=\"pi pi-heart\"\n\t\t\t\t\tseverity=\"secondary\"\n\t\t\t\t\t[text]=\"true\"\n\t\t\t\t\t[rounded]=\"true\"\n\t\t\t\t\t(click)=\"onFavoritePagesButtonClick()\" />\n\t\t\t</li>\n\n\t\t\t<li class=\"topbar-menu-item\">\n\t\t\t\t<p-button severity=\"secondary\" [text]=\"true\" [rounded]=\"true\" (click)=\"onProfileButtonClick()\">\n\t\t\t\t\t{{ username[0] | uppercase }}\n\t\t\t\t</p-button>\n\t\t\t</li>\n\t\t\t<li class=\"topbar-menu-item\">\n\t\t\t\t<p-divider layout=\"vertical\" styleClass=\"h-1rem border-500 m-0\" />\n\t\t\t</li>\n\t\t\t<li class=\"topbar-menu-item\">\n\t\t\t\t<i\n\t\t\t\t\tclass=\"pi pi-bell notification-icon\"\n\t\t\t\t\tpBadge\n\t\t\t\t\t[value]=\"unreadCount > 0 ? unreadCount.toString() : '0'\"\n\t\t\t\t\t(click)=\"onNotificationsButtonClick()\"></i>\n\t\t\t</li>\n\t\t\t<li class=\"topbar-menu-item\">\n\t\t\t\t<p-dropdown\n\t\t\t\t\t[options]=\"languages\"\n\t\t\t\t\t[(ngModel)]=\"currentLang\"\n\t\t\t\t\t(onChange)=\"onLanguageChange()\"\n\t\t\t\t\toptionLabel=\"name\"\n\t\t\t\t\toptionValue=\"code\"\n\t\t\t\t\t[showClear]=\"false\"\n\t\t\t\t\tclass=\"custom-dropdown ml-3\">\n\t\t\t\t\t<ng-template pTemplate=\"selectedItem\">\n\t\t\t\t\t\t<div class=\"flex align-items-center gap-2\">\n\t\t\t\t\t\t\t<img [src]=\"currentFlagPath\" class=\"flag-icon\" alt=\"flag\" />\n\t\t\t\t\t\t\t<span class=\"language-text\">{{ currentLang | uppercase }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</ng-template>\n\t\t\t\t\t<ng-template pTemplate=\"item\" let-item>\n\t\t\t\t\t\t<div class=\"flex align-items-center gap-2\">\n\t\t\t\t\t\t\t<img [src]=\"item.flag\" class=\"flag-icon\" alt=\"flag\" />\n\t\t\t\t\t\t\t<span>{{ item.name }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</ng-template>\n\t\t\t\t</p-dropdown>\n\t\t\t</li>\n\t\t</ul>\n\t</div>\n</div>\n\n<!-- <app-breadcrumb class=\"topbar-breadcrumb\"></app-breadcrumb> -->\n", styles: [".layout-topbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:.5rem;padding:0 1rem;box-shadow:0 1px 2px #00000013}@media (max-width: 768px){.layout-topbar{padding:0 .5rem;gap:.25rem}}.topbar-start{display:flex}.topbar-logo{height:36px;width:auto;cursor:pointer}@media (max-width: 768px){.topbar-logo{display:none}}.env-indicator{align-self:center;display:inline-flex;align-items:center;margin-left:.85rem;padding:.6rem 1.6rem;border-radius:999px;color:#fff;font-weight:700;font-size:1.3rem;line-height:1;letter-spacing:.07em;white-space:nowrap;text-transform:uppercase;box-shadow:0 1px 2px #0000002e;text-shadow:0 1px 1px rgba(0,0,0,.18)}.env-indicator[data-co=depsas]{background:#fc5000}.env-indicator[data-co=dedas]{background:#00adba}@media (max-width: 768px){.env-indicator{display:none}}.topbar-search{flex:1;max-width:50rem;margin:0 1rem}@media (max-width: 1024px){.topbar-search{max-width:30rem}}@media (max-width: 768px){.topbar-search{max-width:20rem;margin:0 .5rem}}@media (max-width: 480px){.topbar-search{max-width:15rem;margin:0 .25rem}}.topbar-search .p-input-icon-left{width:100%}.topbar-end{flex-shrink:0}.topbar-menu{display:flex;align-items:center;gap:.5rem;margin:0;padding:0;list-style:none}@media (max-width: 768px){.topbar-menu{gap:.25rem}}@media (max-width: 480px){.topbar-menu{gap:.1rem}}.topbar-menu-item{display:flex;align-items:center}@media (max-width: 1024px){.desktop-only{display:none!important}}.mobile-only{display:none!important}@media (max-width: 1024px){.mobile-only{display:flex!important}}.custom-dropdown .p-dropdown{border-radius:50px;padding:.5rem 1rem;border:1px solid #c8c8c8;background-color:#f4f4f4}@media (max-width: 768px){.custom-dropdown .p-dropdown{padding:.4rem .8rem}}@media (max-width: 480px){.custom-dropdown .p-dropdown{padding:.3rem .6rem}}.custom-dropdown .p-dropdown-label{padding:0;line-height:1.5}.custom-dropdown .p-dropdown-trigger{border-radius:50px}.flag-icon{width:18px;height:18px;display:inline-block;vertical-align:middle}@media (max-width: 768px){.flag-icon{width:16px;height:16px}}@media (max-width: 480px){.language-text{display:none}}@media (max-width: 768px){.topbar-menubutton{padding:.4rem!important}}@media (max-width: 480px){.topbar-menubutton{padding:.3rem!important}}@media (max-width: 768px){.topbar-menu-item p-button{min-width:auto}.topbar-menu-item p-button .p-button-icon{margin:0}.topbar-menu-item p-button .p-button-label{font-size:.9rem}}@media (max-width: 480px){.topbar-menu-item p-button .p-button-label{font-size:.8rem}.topbar-menu-item p-divider{display:none}}.notification-icon{cursor:pointer;padding:.2rem;border-radius:50%;transition:background-color .2s}.notification-icon:hover{background-color:var(--surface-hover)}@media (max-width: 480px){.notification-icon{font-size:.9rem;padding:.4rem}}:host ::ng-deep .topbar-follow--on .p-button-icon{color:#b45309}\n"] }]
|
|
2910
|
+
}], ctorParameters: () => [{ type: i5.TranslocoService }, { type: i2$1.PubSubService }, { type: i1$1.KeycloakService }], propDecorators: { menuButton: [{
|
|
1960
2911
|
type: ViewChild,
|
|
1961
2912
|
args: ['menubutton']
|
|
1962
2913
|
}] } });
|
|
@@ -2067,10 +3018,10 @@ class AppMenuService {
|
|
|
2067
3018
|
reset() {
|
|
2068
3019
|
this.resetSource.next(true);
|
|
2069
3020
|
}
|
|
2070
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
2071
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
3021
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AppMenuService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3022
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AppMenuService, providedIn: 'root' }); }
|
|
2072
3023
|
}
|
|
2073
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
3024
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AppMenuService, decorators: [{
|
|
2074
3025
|
type: Injectable,
|
|
2075
3026
|
args: [{
|
|
2076
3027
|
providedIn: 'root'
|
|
@@ -2173,7 +3124,7 @@ class ExpandableMenuComponent {
|
|
|
2173
3124
|
this.updateActiveMenuFromCurrentRoute();
|
|
2174
3125
|
// Subscribe to route changes to handle secondary sidebar closing
|
|
2175
3126
|
this.routerSubscription = this.router.events
|
|
2176
|
-
.pipe(filter
|
|
3127
|
+
.pipe(filter((event) => event instanceof NavigationEnd))
|
|
2177
3128
|
.subscribe(() => {
|
|
2178
3129
|
// Update active menu based on the new route
|
|
2179
3130
|
this.updateActiveMenuFromCurrentRoute();
|
|
@@ -2369,13 +3320,13 @@ class ExpandableMenuComponent {
|
|
|
2369
3320
|
this.sidebarExpanded = false;
|
|
2370
3321
|
}
|
|
2371
3322
|
}
|
|
2372
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
2373
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.
|
|
3323
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ExpandableMenuComponent, deps: [{ token: i1$4.TranslateJsonPipe }, { token: AppMenuService }, { token: i1$3.Router }, { token: i1$1.KeycloakService }, { token: i5.TranslocoService }, { token: LayoutService }, { token: i1.HttpClient }, { token: i3.ConfirmationService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3324
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: ExpandableMenuComponent, isStandalone: true, selector: "app-expandable-menu", host: { listeners: { "window:resize": "onResize()" } }, providers: [TranslateJsonPipe], ngImport: i0, template: "<div class=\"new-layout-sidebar\" >\n\t<!-- Main sidebar (first level) -->\n\t<div class=\"main-sidebar\" style=\"position: relative;\">\n\t\t<div class=\"main-sidebar-content\">\n\t\t\t<ul class=\"main-menu\">\n\t\t\t\t@for(item of getMenuItems(); track item; let i = $index){\n\t\t\t\t\t@if(!item.separator){\n\t\t\t\t\t\t<li\n\t\t\t\t\t\t[ngClass]=\"{'active': isActiveRoute(item) || isHaveSelectedChildItem(item)}\"\n\t\t\t\t\t\t(click)=\"selectMainItem(i, item)\"\n\t\t\t\t\t\t[pTooltip]=\"(item.label && activeLang() ? item.label[activeLang()!] || '' : '')\"\n\t\t\t\t\t\ttooltipPosition=\"right\">\n\t\t\t\t\t\t<div class=\"main-menu-item\">\n\t\t\t\t\t\t\t<i [ngClass]=\"item.icon\" class=\"menu-icon\"></i>\n\t\t\t\t\t\t\t<!-- <small class=\"menu-label\">{{ item.label && activeLang() ? item.label[activeLang()!] || '' : '' }}</small> -->\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</li>\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t</ul>\n\t\t</div>\n\t</div>\n\t\t @if(selectedMainMenuItem && selectedMainMenuItem.items && selectedMainMenuItem.items.length > 0){\n\n\t\t\t <div class=\"sidebar-toggle-container\">\n\t\t\t\t <button class=\"sidebar-circle-toggle-btn\" (click)=\"toggleSidebar()\">\n\t\t\t\t\t <i class=\"pi\" [ngClass]=\"sidebarExpanded ? 'pi-angle-left' : 'pi-angle-right'\"></i>\n\t\t\t\t </button>\n\t\t\t </div>\n\t\t }\n\n\t<!-- Secondary sidebar (second level) -->\n\t<div class=\"secondary-sidebar\" [ngClass]=\"{'expanded': sidebarExpanded}\">\n\t\t<div class=\"secondary-content-wrapper\" style=\"position: relative;\">\n\t\t\t<!-- Secondary sidebar content -->\n\t\t\t<div class=\"secondary-sidebar-content\">\n\t\t\t\t@if(selectedMainMenuItem){\n\t\t\t\t\t<ul class=\"secondary-menu\">\n\t\t\t\t\t\t@for(subItem of selectedMainMenuItem.items; track subItem; let i = $index){\n\t\t\t\t\t\t\t\t<!-- Action menu item -->\n\t\t\t\t\t\t\t\t@if(subItem.action) {\n\t\t\t\t\t\t\t\t\t<li class=\"secondary-menu-item\" [ngClass]=\"{'action-loading': isActionLoading(subItem)}\">\n\t\t\t\t\t\t\t\t\t\t<a class=\"secondary-menu-link is-action\"\n\t\t\t\t\t\t\t\t\t\t\t(click)=\"onActionItemClick(subItem, $event)\"\n\t\t\t\t\t\t\t\t\t\t\t[pTooltip]=\"!isMobile() && isTextTruncated(subItem.label, activeLang(), 'secondary') ? (subItem.label && activeLang() ? subItem.label[activeLang()!] || '' : '') : ''\"\n\t\t\t\t\t\t\t\t\t\t\ttooltipPosition=\"right\">\n\t\t\t\t\t\t\t\t\t\t\t@if(isActionLoading(subItem)){\n\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"submenu-icon pi pi-spin pi-spinner\"></i>\n\t\t\t\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t\t\t\t<i [ngClass]=\"subItem.icon\" class=\"submenu-icon\"></i>\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"submenu-label\">{{ subItem.label && activeLang() ? subItem.label[activeLang()!] || '' : '' }}</span>\n\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t<!-- Regular menu item -->\n\t\t\t\t\t\t\t\t<li class=\"secondary-menu-item\" [ngClass]=\"{'active': isActiveRoute(subItem)}\">\n\t\t\t\t\t\t\t\t\t<a [routerLink]=\"subItem.routerLink\" \n\t\t\t\t\t\t\t\t\t\tclass=\"secondary-menu-link\"\n\t\t\t\t\t\t\t\t\t\t[pTooltip]=\"!isMobile() && isTextTruncated(subItem.label, activeLang(), 'secondary') ? (subItem.label && activeLang() ? subItem.label[activeLang()!] || '' : '') : ''\"\n\t\t\t\t\t\t\t\t\t\ttooltipPosition=\"right\">\n\t\t\t\t\t\t\t\t\t\t<i [ngClass]=\"subItem.icon\" class=\"submenu-icon\"></i>\n\t\t\t\t\t\t\t\t\t\t<span class=\"submenu-label\">{{ subItem.label && activeLang() ? subItem.label[activeLang()!] || '' : '' }}</span>\n\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t<!-- Always render submenu if it exists -->\n\t\t\t\t\t\t\t\t\t @if(subItem.items && subItem.items.length > 0){\n\t\t\t\t\t\t\t\t\t\t <ul class=\"tertiary-menu always-open\">\n\t\t\t\t\t\t\t\t\t\t\t@for(childItem of subItem.items; track childItem; let i = $index){\n\t\t\t\t\t\t\t\t\t\t\t\t<!-- Action item at tertiary level -->\n\t\t\t\t\t\t\t\t\t\t\t\t@if(childItem.action) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"tertiary-menu-item\" [ngClass]=\"{'action-loading': isActionLoading(childItem)}\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"tertiary-menu-link is-action\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(click)=\"onActionItemClick(childItem, $event)\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[pTooltip]=\"!isMobile() && isTextTruncated(childItem.label, activeLang(), 'tertiary') ? (childItem.label && activeLang() ? childItem.label[activeLang()!] || '' : '') : ''\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttooltipPosition=\"right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t@if(isActionLoading(childItem)){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"tertiary-label\"><i class=\"pi pi-spin pi-spinner\"></i> {{ childItem.label && activeLang() ? childItem.label[activeLang()!] || '' : '' }}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"tertiary-label\">{{ childItem.label && activeLang() ? childItem.label[activeLang()!] || '' : '' }}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"tertiary-menu-item\" [ngClass]=\"{'active': isActiveRoute(childItem)}\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a [routerLink]=\"childItem.routerLink\" \n\t\t\t\t\t\t\t\t\t\t\t\t\t\tclass=\"tertiary-menu-link\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t[pTooltip]=\"!isMobile() && isTextTruncated(childItem.label, activeLang(), 'tertiary') ? (childItem.label && activeLang() ? childItem.label[activeLang()!] || '' : '') : ''\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttooltipPosition=\"right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"tertiary-label\">{{ childItem.label && activeLang() ? childItem.label[activeLang()!] || '' : '' }}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<!-- Always render deeper levels if they exist, also visible by default -->\n\t\t\t\t\t\t\t\t\t\t\t\t\t@if(childItem.items && childItem.items.length > 0){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ul class=\"nested-menu always-open\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t@for(nestedItem of childItem.items; track nestedItem; let i = $index){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t@if(nestedItem.action) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"nested-menu-item\" [ngClass]=\"{'action-loading': isActionLoading(nestedItem)}\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"nested-menu-link is-action\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(click)=\"onActionItemClick(nestedItem, $event)\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[pTooltip]=\"!isMobile() && isTextTruncated(nestedItem.label, activeLang(), 'nested') ? (nestedItem.label && activeLang() ? nestedItem.label[activeLang()!] || '' : '') : ''\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttooltipPosition=\"right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t@if(isActionLoading(nestedItem)){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"nested-label\"><i class=\"pi pi-spin pi-spinner\"></i> {{ nestedItem.label && activeLang() ? nestedItem.label[activeLang()!] || '' : '' }}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"nested-label\">{{ nestedItem.label && activeLang() ? nestedItem.label[activeLang()!] || '' : '' }}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclass=\"nested-menu-item\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"{'active': isActiveRoute(nestedItem)}\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a [routerLink]=\"nestedItem.routerLink\" \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclass=\"nested-menu-link\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[pTooltip]=\"!isMobile() && isTextTruncated(nestedItem.label, activeLang(), 'nested') ? (nestedItem.label && activeLang() ? nestedItem.label[activeLang()!] || '' : '') : ''\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttooltipPosition=\"right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"nested-label\">{{ nestedItem.label && activeLang() ? nestedItem.label[activeLang()!] || '' : '' }}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t </ul>\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t</ul>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\t\n</div>\n", dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i9.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }] }); }
|
|
2374
3325
|
}
|
|
2375
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
3326
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ExpandableMenuComponent, decorators: [{
|
|
2376
3327
|
type: Component,
|
|
2377
|
-
args: [{ standalone: true, selector: 'app-expandable-menu', imports: [RouterLink, NgClass, TooltipModule], providers: [TranslateJsonPipe], template: "<div class=\"new-layout-sidebar\" >\
|
|
2378
|
-
}], ctorParameters: () => [{ type: i1$
|
|
3328
|
+
args: [{ standalone: true, selector: 'app-expandable-menu', imports: [RouterLink, NgClass, TooltipModule], providers: [TranslateJsonPipe], template: "<div class=\"new-layout-sidebar\" >\n\t<!-- Main sidebar (first level) -->\n\t<div class=\"main-sidebar\" style=\"position: relative;\">\n\t\t<div class=\"main-sidebar-content\">\n\t\t\t<ul class=\"main-menu\">\n\t\t\t\t@for(item of getMenuItems(); track item; let i = $index){\n\t\t\t\t\t@if(!item.separator){\n\t\t\t\t\t\t<li\n\t\t\t\t\t\t[ngClass]=\"{'active': isActiveRoute(item) || isHaveSelectedChildItem(item)}\"\n\t\t\t\t\t\t(click)=\"selectMainItem(i, item)\"\n\t\t\t\t\t\t[pTooltip]=\"(item.label && activeLang() ? item.label[activeLang()!] || '' : '')\"\n\t\t\t\t\t\ttooltipPosition=\"right\">\n\t\t\t\t\t\t<div class=\"main-menu-item\">\n\t\t\t\t\t\t\t<i [ngClass]=\"item.icon\" class=\"menu-icon\"></i>\n\t\t\t\t\t\t\t<!-- <small class=\"menu-label\">{{ item.label && activeLang() ? item.label[activeLang()!] || '' : '' }}</small> -->\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</li>\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t</ul>\n\t\t</div>\n\t</div>\n\t\t @if(selectedMainMenuItem && selectedMainMenuItem.items && selectedMainMenuItem.items.length > 0){\n\n\t\t\t <div class=\"sidebar-toggle-container\">\n\t\t\t\t <button class=\"sidebar-circle-toggle-btn\" (click)=\"toggleSidebar()\">\n\t\t\t\t\t <i class=\"pi\" [ngClass]=\"sidebarExpanded ? 'pi-angle-left' : 'pi-angle-right'\"></i>\n\t\t\t\t </button>\n\t\t\t </div>\n\t\t }\n\n\t<!-- Secondary sidebar (second level) -->\n\t<div class=\"secondary-sidebar\" [ngClass]=\"{'expanded': sidebarExpanded}\">\n\t\t<div class=\"secondary-content-wrapper\" style=\"position: relative;\">\n\t\t\t<!-- Secondary sidebar content -->\n\t\t\t<div class=\"secondary-sidebar-content\">\n\t\t\t\t@if(selectedMainMenuItem){\n\t\t\t\t\t<ul class=\"secondary-menu\">\n\t\t\t\t\t\t@for(subItem of selectedMainMenuItem.items; track subItem; let i = $index){\n\t\t\t\t\t\t\t\t<!-- Action menu item -->\n\t\t\t\t\t\t\t\t@if(subItem.action) {\n\t\t\t\t\t\t\t\t\t<li class=\"secondary-menu-item\" [ngClass]=\"{'action-loading': isActionLoading(subItem)}\">\n\t\t\t\t\t\t\t\t\t\t<a class=\"secondary-menu-link is-action\"\n\t\t\t\t\t\t\t\t\t\t\t(click)=\"onActionItemClick(subItem, $event)\"\n\t\t\t\t\t\t\t\t\t\t\t[pTooltip]=\"!isMobile() && isTextTruncated(subItem.label, activeLang(), 'secondary') ? (subItem.label && activeLang() ? subItem.label[activeLang()!] || '' : '') : ''\"\n\t\t\t\t\t\t\t\t\t\t\ttooltipPosition=\"right\">\n\t\t\t\t\t\t\t\t\t\t\t@if(isActionLoading(subItem)){\n\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"submenu-icon pi pi-spin pi-spinner\"></i>\n\t\t\t\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t\t\t\t<i [ngClass]=\"subItem.icon\" class=\"submenu-icon\"></i>\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"submenu-label\">{{ subItem.label && activeLang() ? subItem.label[activeLang()!] || '' : '' }}</span>\n\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t<!-- Regular menu item -->\n\t\t\t\t\t\t\t\t<li class=\"secondary-menu-item\" [ngClass]=\"{'active': isActiveRoute(subItem)}\">\n\t\t\t\t\t\t\t\t\t<a [routerLink]=\"subItem.routerLink\" \n\t\t\t\t\t\t\t\t\t\tclass=\"secondary-menu-link\"\n\t\t\t\t\t\t\t\t\t\t[pTooltip]=\"!isMobile() && isTextTruncated(subItem.label, activeLang(), 'secondary') ? (subItem.label && activeLang() ? subItem.label[activeLang()!] || '' : '') : ''\"\n\t\t\t\t\t\t\t\t\t\ttooltipPosition=\"right\">\n\t\t\t\t\t\t\t\t\t\t<i [ngClass]=\"subItem.icon\" class=\"submenu-icon\"></i>\n\t\t\t\t\t\t\t\t\t\t<span class=\"submenu-label\">{{ subItem.label && activeLang() ? subItem.label[activeLang()!] || '' : '' }}</span>\n\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t<!-- Always render submenu if it exists -->\n\t\t\t\t\t\t\t\t\t @if(subItem.items && subItem.items.length > 0){\n\t\t\t\t\t\t\t\t\t\t <ul class=\"tertiary-menu always-open\">\n\t\t\t\t\t\t\t\t\t\t\t@for(childItem of subItem.items; track childItem; let i = $index){\n\t\t\t\t\t\t\t\t\t\t\t\t<!-- Action item at tertiary level -->\n\t\t\t\t\t\t\t\t\t\t\t\t@if(childItem.action) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"tertiary-menu-item\" [ngClass]=\"{'action-loading': isActionLoading(childItem)}\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"tertiary-menu-link is-action\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(click)=\"onActionItemClick(childItem, $event)\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[pTooltip]=\"!isMobile() && isTextTruncated(childItem.label, activeLang(), 'tertiary') ? (childItem.label && activeLang() ? childItem.label[activeLang()!] || '' : '') : ''\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttooltipPosition=\"right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t@if(isActionLoading(childItem)){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"tertiary-label\"><i class=\"pi pi-spin pi-spinner\"></i> {{ childItem.label && activeLang() ? childItem.label[activeLang()!] || '' : '' }}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"tertiary-label\">{{ childItem.label && activeLang() ? childItem.label[activeLang()!] || '' : '' }}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"tertiary-menu-item\" [ngClass]=\"{'active': isActiveRoute(childItem)}\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a [routerLink]=\"childItem.routerLink\" \n\t\t\t\t\t\t\t\t\t\t\t\t\t\tclass=\"tertiary-menu-link\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t[pTooltip]=\"!isMobile() && isTextTruncated(childItem.label, activeLang(), 'tertiary') ? (childItem.label && activeLang() ? childItem.label[activeLang()!] || '' : '') : ''\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttooltipPosition=\"right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"tertiary-label\">{{ childItem.label && activeLang() ? childItem.label[activeLang()!] || '' : '' }}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<!-- Always render deeper levels if they exist, also visible by default -->\n\t\t\t\t\t\t\t\t\t\t\t\t\t@if(childItem.items && childItem.items.length > 0){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ul class=\"nested-menu always-open\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t@for(nestedItem of childItem.items; track nestedItem; let i = $index){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t@if(nestedItem.action) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"nested-menu-item\" [ngClass]=\"{'action-loading': isActionLoading(nestedItem)}\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"nested-menu-link is-action\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(click)=\"onActionItemClick(nestedItem, $event)\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[pTooltip]=\"!isMobile() && isTextTruncated(nestedItem.label, activeLang(), 'nested') ? (nestedItem.label && activeLang() ? nestedItem.label[activeLang()!] || '' : '') : ''\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttooltipPosition=\"right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t@if(isActionLoading(nestedItem)){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"nested-label\"><i class=\"pi pi-spin pi-spinner\"></i> {{ nestedItem.label && activeLang() ? nestedItem.label[activeLang()!] || '' : '' }}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"nested-label\">{{ nestedItem.label && activeLang() ? nestedItem.label[activeLang()!] || '' : '' }}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclass=\"nested-menu-item\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"{'active': isActiveRoute(nestedItem)}\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a [routerLink]=\"nestedItem.routerLink\" \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclass=\"nested-menu-link\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[pTooltip]=\"!isMobile() && isTextTruncated(nestedItem.label, activeLang(), 'nested') ? (nestedItem.label && activeLang() ? nestedItem.label[activeLang()!] || '' : '') : ''\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttooltipPosition=\"right\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"nested-label\">{{ nestedItem.label && activeLang() ? nestedItem.label[activeLang()!] || '' : '' }}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t </ul>\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t</ul>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\t\n</div>\n" }]
|
|
3329
|
+
}], ctorParameters: () => [{ type: i1$4.TranslateJsonPipe }, { type: AppMenuService }, { type: i1$3.Router }, { type: i1$1.KeycloakService }, { type: i5.TranslocoService }, { type: LayoutService }, { type: i1.HttpClient }, { type: i3.ConfirmationService }], propDecorators: { onResize: [{
|
|
2379
3330
|
type: HostListener,
|
|
2380
3331
|
args: ['window:resize']
|
|
2381
3332
|
}] } });
|
|
@@ -2406,7 +3357,7 @@ class StaticSidebarComponent {
|
|
|
2406
3357
|
ngOnInit() {
|
|
2407
3358
|
this.buildMenuTree();
|
|
2408
3359
|
this.routerSubscription = this.router.events
|
|
2409
|
-
.pipe(filter
|
|
3360
|
+
.pipe(filter((event) => event instanceof NavigationEnd))
|
|
2410
3361
|
.subscribe(() => this.buildMenuTree());
|
|
2411
3362
|
}
|
|
2412
3363
|
ngOnDestroy() {
|
|
@@ -2633,10 +3584,10 @@ class StaticSidebarComponent {
|
|
|
2633
3584
|
}
|
|
2634
3585
|
return filtered;
|
|
2635
3586
|
}
|
|
2636
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
2637
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: StaticSidebarComponent, isStandalone: true, selector: "app-static-sidebar", providers: [TranslateJsonPipe], ngImport: i0, template: "<div class=\"static-sidebar\" [class.collapsed]=\"isCollapsed\">\r\n\t<div class=\"static-sidebar-content\">\r\n\t\t@if (!isCollapsed) {\r\n\t\t\t<div class=\"search-container\" *transloco=\"let t; read: ''\">\r\n\t\t\t\t<div class=\"search-wrapper\">\r\n\t\t\t\t\t<i class=\"pi pi-search search-icon\"></i>\r\n\t\t\t\t\t<input\r\n\t\t\t\t\t\ttype=\"text\"\r\n\t\t\t\t\t\tpInputText\r\n\t\t\t\t\t\tvariant=\"filled\"\r\n\t\t\t\t\t\t[placeholder]=\"t('search')\"\r\n\t\t\t\t\t\t[(ngModel)]=\"searchTerm\"\r\n\t\t\t\t\t\t(ngModelChange)=\"onSearchChange()\"\r\n\t\t\t\t\t\tclass=\"search-static-sidebar\" />\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t\t<p-scrollPanel [style]=\"{ width: '100%', height: 'calc(100vh - 130px)' }\">\r\n\t\t\t\t<div class=\"tree-container\">\r\n\t\t\t\t\t@for (node of filteredNodes(); track node.key) {\r\n\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"treeNodeTemplate; context: { $implicit: node, level: 0 }\"></ng-container>\r\n\t\t\t\t\t}\r\n\t\t\t\t</div>\r\n\t\t\t</p-scrollPanel>\r\n\t\t} @else {\r\n\t\t\t<!-- Collapsed mode - only icons -->\r\n\t\t\t<div class=\"collapsed-container\">\r\n\t\t\t\t@for (node of topLevelNodes; track node.key) {\r\n\t\t\t\t\t@if (node.action && (!node.children || node.children.length === 0)) {\r\n\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\tclass=\"collapsed-item is-action\"\r\n\t\t\t\t\t\t\t[pTooltip]=\"getLocalText(node.label)\"\r\n\t\t\t\t\t\t\ttooltipPosition=\"right\"\r\n\t\t\t\t\t\t\t[class.active]=\"isTopLevelNodeActive(node)\"\r\n\t\t\t\t\t\t\t[class.action-loading]=\"node.actionLoading\"\r\n\t\t\t\t\t\t\t(click)=\"onActionItemClick(node, $event)\">\r\n\t\t\t\t\t\t\t@if (node.actionLoading) {\r\n\t\t\t\t\t\t\t\t<i class=\"collapsed-icon pi pi-spin pi-spinner\"></i>\r\n\t\t\t\t\t\t\t} @else if (node.icon) {\r\n\t\t\t\t\t\t\t\t<i class=\"collapsed-icon\" [class]=\"node.icon\"></i>\r\n\t\t\t\t\t\t\t} @else {\r\n\t\t\t\t\t\t\t\t<i class=\"collapsed-icon pi pi-circle\"></i>\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t} @else if (node.routerLink && (!node.children || node.children.length === 0)) {\r\n\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\tclass=\"collapsed-item\"\r\n\t\t\t\t\t\t\t[pTooltip]=\"getLocalText(node.label)\"\r\n\t\t\t\t\t\t\ttooltipPosition=\"right\"\r\n\t\t\t\t\t\t\t[routerLink]=\"node.routerLink\"\r\n\t\t\t\t\t\t\t[class.active]=\"isTopLevelNodeActive(node)\"\r\n\t\t\t\t\t\t\t(click)=\"onCollapsedItemClick(node)\">\r\n\t\t\t\t\t\t\t@if (node.icon) {\r\n\t\t\t\t\t\t\t\t<i class=\"collapsed-icon\" [class]=\"node.icon\"></i>\r\n\t\t\t\t\t\t\t} @else {\r\n\t\t\t\t\t\t\t\t<i class=\"collapsed-icon pi pi-circle\"></i>\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t</a>\r\n\t\t\t\t\t} @else {\r\n\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\tclass=\"collapsed-item\"\r\n\t\t\t\t\t\t\t[pTooltip]=\"getLocalText(node.label)\"\r\n\t\t\t\t\t\t\ttooltipPosition=\"right\"\r\n\t\t\t\t\t\t\t[class.active]=\"isTopLevelNodeActive(node)\"\r\n\t\t\t\t\t\t\t(click)=\"onCollapsedItemClick(node)\">\r\n\t\t\t\t\t\t\t@if (node.icon) {\r\n\t\t\t\t\t\t\t\t<i class=\"collapsed-icon\" [class]=\"node.icon\"></i>\r\n\t\t\t\t\t\t\t} @else {\r\n\t\t\t\t\t\t\t\t<i class=\"collapsed-icon pi pi-circle\"></i>\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t}\r\n\t</div>\r\n\r\n\t<!-- Recursive Tree Node Template -->\r\n\t<ng-template #treeNodeTemplate let-node let-level=\"level\">\r\n\t\t<div class=\"tree-node\" [ngClass]=\"'level-' + level\">\r\n\t\t\t@if (node.action) {\r\n\t\t\t\t<!-- Action item: HTTP POST on click, then navigate -->\r\n\t\t\t\t<div\r\n\t\t\t\t\tclass=\"node-item is-action\"\r\n\t\t\t\t\t[class.has-children]=\"node.children && node.children.length > 0\"\r\n\t\t\t\t\t[class.action-loading]=\"node.actionLoading\"\r\n\t\t\t\t\t[pTooltip]=\"!isMobile() && isTextTruncated(node.label, activeLang(), level) ? getLocalText(node.label) : ''\"\r\n\t\t\t\t\ttooltipPosition=\"right\"\r\n\t\t\t\t\t(click)=\"onActionItemClick(node, $event)\">\r\n\t\t\t\t\t<div class=\"node-content\">\r\n\t\t\t\t\t\t@if (node.children && node.children.length > 0) {\r\n\t\t\t\t\t\t\t<div class=\"toggle-btn\" (click)=\"$event.stopPropagation(); toggleNode(node, level)\">\r\n\t\t\t\t\t\t\t\t<i class=\"pi\" [class.pi-chevron-right]=\"!node.expanded\" [class.pi-chevron-down]=\"node.expanded\"></i>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t@if (node.actionLoading) {\r\n\t\t\t\t\t\t\t<i class=\"node-icon pi pi-spin pi-spinner\"></i>\r\n\t\t\t\t\t\t} @else if (node.icon) {\r\n\t\t\t\t\t\t\t<i class=\"node-icon\" [class]=\"node.icon\"></i>\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t<span class=\"node-label\">{{ getLocalText(node.label) }}</span>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t} @else if (node.routerLink) {\r\n\t\t\t\t<a\r\n\t\t\t\t\t[routerLink]=\"node.routerLink\"\r\n\t\t\t\t\tclass=\"node-item\"\r\n\t\t\t\t\t[class.has-children]=\"node.children && node.children.length > 0\"\r\n\t\t\t\t\t[class.is-page]=\"node.routerLink\"\r\n\t\t\t\t\t[class.active]=\"isChildNodeActive(node)\"\r\n\t\t\t\t\t[pTooltip]=\"!isMobile() && isTextTruncated(node.label, activeLang(), level) ? getLocalText(node.label) : ''\"\r\n\t\t\t\t\ttooltipPosition=\"right\"\r\n\t\t\t\t\t(click)=\"onMenuItemClick()\">\r\n\t\t\t\t\t<div class=\"node-content\">\r\n\t\t\t\t\t\t@if (node.children && node.children.length > 0) {\r\n\t\t\t\t\t\t\t<div class=\"toggle-btn\" (click)=\"$event.stopPropagation(); toggleNode(node, level)\">\r\n\t\t\t\t\t\t\t\t<i class=\"pi\" [class.pi-chevron-right]=\"!node.expanded\" [class.pi-chevron-down]=\"node.expanded\"></i>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t@if (node.icon) {\r\n\t\t\t\t\t\t\t<i class=\"node-icon\" [class]=\"node.icon\"></i>\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t<span class=\"node-label\">{{ getLocalText(node.label) }}</span>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</a>\r\n\t\t\t} @else {\r\n\t\t\t\t<div\r\n\t\t\t\t\tclass=\"node-item\"\r\n\t\t\t\t\t[class.has-children]=\"node.children && node.children.length > 0\"\r\n\t\t\t\t\t[class.is-page]=\"node.routerLink\"\r\n\t\t\t\t\t[class.active]=\"isChildNodeActive(node)\"\r\n\t\t\t\t\t[pTooltip]=\"!isMobile() && isTextTruncated(node.label, activeLang(), level) ? getLocalText(node.label) : ''\"\r\n\t\t\t\t\ttooltipPosition=\"right\"\r\n\t\t\t\t\t(click)=\"toggleNode(node, level)\">\r\n\t\t\t\t\t<div class=\"node-content\">\r\n\t\t\t\t\t\t@if (node.children && node.children.length > 0) {\r\n\t\t\t\t\t\t\t<div class=\"toggle-btn\" (click)=\"$event.stopPropagation(); toggleNode(node, level)\">\r\n\t\t\t\t\t\t\t\t<i class=\"pi\" [class.pi-chevron-right]=\"!node.expanded\" [class.pi-chevron-down]=\"node.expanded\"></i>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t@if (node.icon) {\r\n\t\t\t\t\t\t\t<i class=\"node-icon\" [class]=\"node.icon\"></i>\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t<span class=\"node-label\">{{ getLocalText(node.label) }}</span>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t}\r\n\r\n\t\t\t<!-- Recursive Children -->\r\n\t\t\t@if (node.children && node.expanded) {\r\n\t\t\t\t<div class=\"children-container\" [attr.data-level]=\"level\">\r\n\t\t\t\t\t@for (child of node.children; track child.key) {\r\n\t\t\t\t\t\t<ng-container\r\n\t\t\t\t\t\t\t*ngTemplateOutlet=\"treeNodeTemplate; context: { $implicit: child, level: level + 1 }\"></ng-container>\r\n\t\t\t\t\t}\r\n\t\t\t\t</div>\r\n\t\t\t}\r\n\t\t</div>\r\n\t</ng-template>\r\n</div>\r\n", styles: [".search-container{padding:12px 8px;margin:0}.search-wrapper{position:relative;width:100%}.search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#64748b;font-size:14px;z-index:10;pointer-events:none;transition:color .2s ease}.search-static-sidebar{background:#1e293b!important;border:1px solid rgba(148,163,184,.1)!important;height:36px!important;font-size:13px!important;font-weight:400;color:#cbd5e1!important;padding:0 12px 0 36px!important;border-radius:4px!important;width:100%!important;box-sizing:border-box!important;transition:all .25s ease!important}.search-static-sidebar::placeholder{font-size:12px!important}.search-static-sidebar:hover{background:#0f172ab3!important;border-color:#94a3b826!important}.search-static-sidebar:focus{outline:none!important;border:1px solid rgba(15,23,42,.8)!important;background:#0f172acc!important}.search-wrapper:focus-within .search-icon{color:#cbd5e1}.static-sidebar{width:260px;height:100vh;background:#1e293b;border-right:1px solid #0f172a;display:flex;flex-direction:column;position:fixed;left:0;top:calc(55px + var(--env-banner-h, 0px));z-index:999;overflow-y:auto;overflow-x:hidden;transition:width .3s ease;box-shadow:2px 0 5px #0000000d}.static-sidebar.collapsed{width:64px;box-shadow:none}.static-sidebar .static-sidebar-content{flex:1;background:transparent;overflow:hidden}.static-sidebar .tree-container{padding:5px 0;overflow-x:hidden}.static-sidebar .tree-node{margin-bottom:4px;position:relative}.static-sidebar .tree-node .node-item{display:flex;align-items:center;padding:10px 12px;border-radius:4px;margin:0 5px;cursor:pointer;transition:all .25s ease;text-decoration:none;color:#cbd5e1!important;overflow:visible;position:relative;white-space:nowrap}.static-sidebar .tree-node .node-item:before{content:\"\";position:absolute;width:0;height:100%;top:0;left:0;background-color:var(--primary-color);opacity:.08;transition:width .25s ease-in-out}.static-sidebar .tree-node .node-item:hover{color:#e8e7e7!important}.static-sidebar .tree-node .node-item:hover:before{width:100%}.static-sidebar .tree-node .node-item:hover .node-label{color:#e8e7e7!important}.static-sidebar .tree-node .node-item:hover .node-icon{color:#e8e7e7!important;transform:translate(2px)}.static-sidebar .tree-node .node-item.is-page:hover{color:#e8e7e7!important}.static-sidebar .tree-node .node-item.is-page:hover:before{width:100%}.static-sidebar .tree-node .node-item.active{background-color:#495465!important;color:#e8e7e7!important;font-weight:500!important;box-shadow:0 2px 5px #0000001a!important}.static-sidebar .tree-node .node-item.active:before{display:none}.static-sidebar .tree-node .node-item.active .node-label,.static-sidebar .tree-node .node-item.active .node-icon,.static-sidebar .tree-node .node-item.active .toggle-btn i{color:#e8e7e7!important}.static-sidebar .tree-node .node-item.active:hover{background-color:var(--primary-color)}.static-sidebar .tree-node .node-item.is-action{cursor:pointer}.static-sidebar .tree-node .node-item.is-action.action-loading{opacity:.7;pointer-events:none}.static-sidebar .tree-node .node-content{display:flex;align-items:center;gap:8px;width:100%;min-width:0;position:relative;z-index:2;padding-left:24px}.static-sidebar .tree-node .toggle-btn{position:absolute;left:0;display:flex;align-items:center;justify-content:center;width:20px;height:16px;border:none;border-radius:3px;color:#cbd5e1;cursor:pointer;transition:all .25s ease;flex-shrink:0;z-index:3}.static-sidebar .tree-node .toggle-btn:hover{transform:scale(1.1)}.static-sidebar .tree-node .toggle-btn i{font-size:.7rem;transition:transform .2s ease}.static-sidebar .tree-node .node-icon{color:#cbd5e1;font-size:16px;flex-shrink:0;transition:transform .25s ease,color .25s ease;position:relative}.static-sidebar .tree-node .node-label{flex:1;font-size:13px;font-weight:500;color:#cbd5e1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .25s ease;position:relative}.static-sidebar .collapsed-container{padding:8px 0;display:flex;flex-direction:column;align-items:center;width:100%}.static-sidebar .collapsed-item{width:100%;display:flex;flex-direction:column;align-items:center;padding:12px 0;cursor:pointer;transition:all .25s ease;text-decoration:none;position:relative;overflow:hidden;margin-bottom:4px;color:#cbd5e1}.static-sidebar .collapsed-item:hover{color:#e8e7e7}.static-sidebar .collapsed-item:hover .collapsed-icon{transform:scale(1.15);color:#e8e7e7}.static-sidebar .collapsed-item:hover:after{content:\"\";position:absolute;left:0;top:0;width:3px;height:100%;background-color:#0f172a;opacity:.7}.static-sidebar .collapsed-item.active{background-color:#495465!important}.static-sidebar .collapsed-item.active:before{content:\"\";position:absolute;left:0;top:0;width:3px;height:100%;background-color:#0f172a}.static-sidebar .collapsed-item.active .collapsed-icon{color:#fff!important}.static-sidebar .collapsed-item .collapsed-icon{font-size:22px;color:#cbd5e1;transition:all .2s ease}.static-sidebar .children-container{position:relative}.static-sidebar .children-container:before{content:\"\";position:absolute;left:25px;top:0;bottom:0;width:1px;background-color:#4755694d;z-index:1}.static-sidebar .tree-node{position:relative}.static-sidebar .tree-node.level-0 .node-item{margin-right:20px;width:240px;max-width:240px}.static-sidebar .tree-node.level-0 .node-label{font-size:13px;font-weight:500;color:#cbd5e1}.static-sidebar .tree-node.level-0 .node-icon{font-size:16px}.static-sidebar .tree-node.level-1 .node-item{margin-left:36px;margin-right:20px;padding:8px 12px;width:204px;max-width:204px}.static-sidebar .tree-node.level-1 .node-label{font-size:12px;font-weight:400}.static-sidebar .tree-node.level-1 .node-icon{font-size:15px}.static-sidebar .tree-node.level-2 .node-item{margin-left:52px;margin-right:20px;width:188px;max-width:188px}.static-sidebar .tree-node.level-2 .node-label{font-size:11px;font-weight:400;color:#cbd5e1}.static-sidebar .tree-node.level-2 .node-icon{font-size:14px}.static-sidebar .tree-node.level-2.active .node-item{background-color:#495465!important}.static-sidebar .tree-node.level-2.active .node-item .node-label{color:#e8e7e7!important}.static-sidebar .tree-node.level-3 .node-item{margin-left:68px;margin-right:20px;padding:6px 12px;width:172px;max-width:172px}.static-sidebar .tree-node.level-3 .node-label{font-size:11px;font-weight:400;color:#cbd5e1}.static-sidebar .tree-node.level-3 .node-icon{font-size:13px}:host ::ng-deep .p-scrollpanel .p-scrollpanel-wrapper{border:none}:host ::ng-deep .p-scrollpanel .p-scrollpanel-content{padding-right:5px}:host ::ng-deep .p-scrollpanel-bar-y{background:#1e293b;width:4px;border-radius:4px}:host ::ng-deep .p-scrollpanel-bar-y:hover{background:#1e293b}\n"], dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: ScrollPanelModule }, { kind: "component", type: i7$1.ScrollPanel, selector: "p-scrollPanel", inputs: ["style", "styleClass", "step"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i9.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: TranslocoModule }, { kind: "directive", type: i5.TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoLang", "translocoLoadingTpl"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i11.InputText, selector: "[pInputText]", inputs: ["variant"] }] }); }
|
|
3587
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: StaticSidebarComponent, deps: [{ token: AppMenuService }, { token: i1$3.Router }, { token: LayoutService }, { token: i1$4.TranslateJsonPipe }, { token: i5.TranslocoService }, { token: i1.HttpClient }, { token: i3.ConfirmationService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3588
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: StaticSidebarComponent, isStandalone: true, selector: "app-static-sidebar", providers: [TranslateJsonPipe], ngImport: i0, template: "<div class=\"static-sidebar\" [class.collapsed]=\"isCollapsed\">\n\t<div class=\"static-sidebar-content\">\n\t\t@if (!isCollapsed) {\n\t\t\t<div class=\"search-container\" *transloco=\"let t; read: ''\">\n\t\t\t\t<div class=\"search-wrapper\">\n\t\t\t\t\t<i class=\"pi pi-search search-icon\"></i>\n\t\t\t\t\t<input\n\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\tpInputText\n\t\t\t\t\t\tvariant=\"filled\"\n\t\t\t\t\t\t[placeholder]=\"t('search')\"\n\t\t\t\t\t\t[(ngModel)]=\"searchTerm\"\n\t\t\t\t\t\t(ngModelChange)=\"onSearchChange()\"\n\t\t\t\t\t\tclass=\"search-static-sidebar\" />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<p-scrollPanel [style]=\"{ width: '100%', height: 'calc(100vh - 130px)' }\">\n\t\t\t\t<div class=\"tree-container\">\n\t\t\t\t\t@for (node of filteredNodes(); track node.key) {\n\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"treeNodeTemplate; context: { $implicit: node, level: 0 }\"></ng-container>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</p-scrollPanel>\n\t\t} @else {\n\t\t\t<!-- Collapsed mode - only icons -->\n\t\t\t<div class=\"collapsed-container\">\n\t\t\t\t@for (node of topLevelNodes; track node.key) {\n\t\t\t\t\t@if (node.action && (!node.children || node.children.length === 0)) {\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass=\"collapsed-item is-action\"\n\t\t\t\t\t\t\t[pTooltip]=\"getLocalText(node.label)\"\n\t\t\t\t\t\t\ttooltipPosition=\"right\"\n\t\t\t\t\t\t\t[class.active]=\"isTopLevelNodeActive(node)\"\n\t\t\t\t\t\t\t[class.action-loading]=\"node.actionLoading\"\n\t\t\t\t\t\t\t(click)=\"onActionItemClick(node, $event)\">\n\t\t\t\t\t\t\t@if (node.actionLoading) {\n\t\t\t\t\t\t\t\t<i class=\"collapsed-icon pi pi-spin pi-spinner\"></i>\n\t\t\t\t\t\t\t} @else if (node.icon) {\n\t\t\t\t\t\t\t\t<i class=\"collapsed-icon\" [class]=\"node.icon\"></i>\n\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t<i class=\"collapsed-icon pi pi-circle\"></i>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t} @else if (node.routerLink && (!node.children || node.children.length === 0)) {\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\tclass=\"collapsed-item\"\n\t\t\t\t\t\t\t[pTooltip]=\"getLocalText(node.label)\"\n\t\t\t\t\t\t\ttooltipPosition=\"right\"\n\t\t\t\t\t\t\t[routerLink]=\"node.routerLink\"\n\t\t\t\t\t\t\t[class.active]=\"isTopLevelNodeActive(node)\"\n\t\t\t\t\t\t\t(click)=\"onCollapsedItemClick(node)\">\n\t\t\t\t\t\t\t@if (node.icon) {\n\t\t\t\t\t\t\t\t<i class=\"collapsed-icon\" [class]=\"node.icon\"></i>\n\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t<i class=\"collapsed-icon pi pi-circle\"></i>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass=\"collapsed-item\"\n\t\t\t\t\t\t\t[pTooltip]=\"getLocalText(node.label)\"\n\t\t\t\t\t\t\ttooltipPosition=\"right\"\n\t\t\t\t\t\t\t[class.active]=\"isTopLevelNodeActive(node)\"\n\t\t\t\t\t\t\t(click)=\"onCollapsedItemClick(node)\">\n\t\t\t\t\t\t\t@if (node.icon) {\n\t\t\t\t\t\t\t\t<i class=\"collapsed-icon\" [class]=\"node.icon\"></i>\n\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t<i class=\"collapsed-icon pi pi-circle\"></i>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t</div>\n\t\t}\n\t</div>\n\n\t<!-- Recursive Tree Node Template -->\n\t<ng-template #treeNodeTemplate let-node let-level=\"level\">\n\t\t<div class=\"tree-node\" [ngClass]=\"'level-' + level\">\n\t\t\t@if (node.action) {\n\t\t\t\t<!-- Action item: HTTP POST on click, then navigate -->\n\t\t\t\t<div\n\t\t\t\t\tclass=\"node-item is-action\"\n\t\t\t\t\t[class.has-children]=\"node.children && node.children.length > 0\"\n\t\t\t\t\t[class.action-loading]=\"node.actionLoading\"\n\t\t\t\t\t[pTooltip]=\"!isMobile() && isTextTruncated(node.label, activeLang(), level) ? getLocalText(node.label) : ''\"\n\t\t\t\t\ttooltipPosition=\"right\"\n\t\t\t\t\t(click)=\"onActionItemClick(node, $event)\">\n\t\t\t\t\t<div class=\"node-content\">\n\t\t\t\t\t\t@if (node.children && node.children.length > 0) {\n\t\t\t\t\t\t\t<div class=\"toggle-btn\" (click)=\"$event.stopPropagation(); toggleNode(node, level)\">\n\t\t\t\t\t\t\t\t<i class=\"pi\" [class.pi-chevron-right]=\"!node.expanded\" [class.pi-chevron-down]=\"node.expanded\"></i>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@if (node.actionLoading) {\n\t\t\t\t\t\t\t<i class=\"node-icon pi pi-spin pi-spinner\"></i>\n\t\t\t\t\t\t} @else if (node.icon) {\n\t\t\t\t\t\t\t<i class=\"node-icon\" [class]=\"node.icon\"></i>\n\t\t\t\t\t\t}\n\t\t\t\t\t\t<span class=\"node-label\">{{ getLocalText(node.label) }}</span>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else if (node.routerLink) {\n\t\t\t\t<a\n\t\t\t\t\t[routerLink]=\"node.routerLink\"\n\t\t\t\t\tclass=\"node-item\"\n\t\t\t\t\t[class.has-children]=\"node.children && node.children.length > 0\"\n\t\t\t\t\t[class.is-page]=\"node.routerLink\"\n\t\t\t\t\t[class.active]=\"isChildNodeActive(node)\"\n\t\t\t\t\t[pTooltip]=\"!isMobile() && isTextTruncated(node.label, activeLang(), level) ? getLocalText(node.label) : ''\"\n\t\t\t\t\ttooltipPosition=\"right\"\n\t\t\t\t\t(click)=\"onMenuItemClick()\">\n\t\t\t\t\t<div class=\"node-content\">\n\t\t\t\t\t\t@if (node.children && node.children.length > 0) {\n\t\t\t\t\t\t\t<div class=\"toggle-btn\" (click)=\"$event.stopPropagation(); toggleNode(node, level)\">\n\t\t\t\t\t\t\t\t<i class=\"pi\" [class.pi-chevron-right]=\"!node.expanded\" [class.pi-chevron-down]=\"node.expanded\"></i>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@if (node.icon) {\n\t\t\t\t\t\t\t<i class=\"node-icon\" [class]=\"node.icon\"></i>\n\t\t\t\t\t\t}\n\t\t\t\t\t\t<span class=\"node-label\">{{ getLocalText(node.label) }}</span>\n\t\t\t\t\t</div>\n\t\t\t\t</a>\n\t\t\t} @else {\n\t\t\t\t<div\n\t\t\t\t\tclass=\"node-item\"\n\t\t\t\t\t[class.has-children]=\"node.children && node.children.length > 0\"\n\t\t\t\t\t[class.is-page]=\"node.routerLink\"\n\t\t\t\t\t[class.active]=\"isChildNodeActive(node)\"\n\t\t\t\t\t[pTooltip]=\"!isMobile() && isTextTruncated(node.label, activeLang(), level) ? getLocalText(node.label) : ''\"\n\t\t\t\t\ttooltipPosition=\"right\"\n\t\t\t\t\t(click)=\"toggleNode(node, level)\">\n\t\t\t\t\t<div class=\"node-content\">\n\t\t\t\t\t\t@if (node.children && node.children.length > 0) {\n\t\t\t\t\t\t\t<div class=\"toggle-btn\" (click)=\"$event.stopPropagation(); toggleNode(node, level)\">\n\t\t\t\t\t\t\t\t<i class=\"pi\" [class.pi-chevron-right]=\"!node.expanded\" [class.pi-chevron-down]=\"node.expanded\"></i>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@if (node.icon) {\n\t\t\t\t\t\t\t<i class=\"node-icon\" [class]=\"node.icon\"></i>\n\t\t\t\t\t\t}\n\t\t\t\t\t\t<span class=\"node-label\">{{ getLocalText(node.label) }}</span>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t}\n\n\t\t\t<!-- Recursive Children -->\n\t\t\t@if (node.children && node.expanded) {\n\t\t\t\t<div class=\"children-container\" [attr.data-level]=\"level\">\n\t\t\t\t\t@for (child of node.children; track child.key) {\n\t\t\t\t\t\t<ng-container\n\t\t\t\t\t\t\t*ngTemplateOutlet=\"treeNodeTemplate; context: { $implicit: child, level: level + 1 }\"></ng-container>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t}\n\t\t</div>\n\t</ng-template>\n</div>\n", styles: [".search-container{padding:12px 8px;margin:0}.search-wrapper{position:relative;width:100%}.search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#64748b;font-size:14px;z-index:10;pointer-events:none;transition:color .2s ease}.search-static-sidebar{background:#1e293b!important;border:1px solid rgba(148,163,184,.1)!important;height:36px!important;font-size:13px!important;font-weight:400;color:#cbd5e1!important;padding:0 12px 0 36px!important;border-radius:4px!important;width:100%!important;box-sizing:border-box!important;transition:all .25s ease!important}.search-static-sidebar::placeholder{font-size:12px!important}.search-static-sidebar:hover{background:#0f172ab3!important;border-color:#94a3b826!important}.search-static-sidebar:focus{outline:none!important;border:1px solid rgba(15,23,42,.8)!important;background:#0f172acc!important}.search-wrapper:focus-within .search-icon{color:#cbd5e1}.static-sidebar{width:260px;height:100vh;background:#1e293b;border-right:1px solid #0f172a;display:flex;flex-direction:column;position:fixed;left:0;top:calc(55px + var(--env-banner-h, 0px));z-index:999;overflow-y:auto;overflow-x:hidden;transition:width .3s ease;box-shadow:2px 0 5px #0000000d}.static-sidebar.collapsed{width:64px;box-shadow:none}.static-sidebar .static-sidebar-content{flex:1;background:transparent;overflow:hidden}.static-sidebar .tree-container{padding:5px 0;overflow-x:hidden}.static-sidebar .tree-node{margin-bottom:4px;position:relative}.static-sidebar .tree-node .node-item{display:flex;align-items:center;padding:10px 12px;border-radius:4px;margin:0 5px;cursor:pointer;transition:all .25s ease;text-decoration:none;color:#cbd5e1!important;overflow:visible;position:relative;white-space:nowrap}.static-sidebar .tree-node .node-item:before{content:\"\";position:absolute;width:0;height:100%;top:0;left:0;background-color:var(--primary-color);opacity:.08;transition:width .25s ease-in-out}.static-sidebar .tree-node .node-item:hover{color:#e8e7e7!important}.static-sidebar .tree-node .node-item:hover:before{width:100%}.static-sidebar .tree-node .node-item:hover .node-label{color:#e8e7e7!important}.static-sidebar .tree-node .node-item:hover .node-icon{color:#e8e7e7!important;transform:translate(2px)}.static-sidebar .tree-node .node-item.is-page:hover{color:#e8e7e7!important}.static-sidebar .tree-node .node-item.is-page:hover:before{width:100%}.static-sidebar .tree-node .node-item.active{background-color:#495465!important;color:#e8e7e7!important;font-weight:500!important;box-shadow:0 2px 5px #0000001a!important}.static-sidebar .tree-node .node-item.active:before{display:none}.static-sidebar .tree-node .node-item.active .node-label,.static-sidebar .tree-node .node-item.active .node-icon,.static-sidebar .tree-node .node-item.active .toggle-btn i{color:#e8e7e7!important}.static-sidebar .tree-node .node-item.active:hover{background-color:var(--primary-color)}.static-sidebar .tree-node .node-item.is-action{cursor:pointer}.static-sidebar .tree-node .node-item.is-action.action-loading{opacity:.7;pointer-events:none}.static-sidebar .tree-node .node-content{display:flex;align-items:center;gap:8px;width:100%;min-width:0;position:relative;z-index:2;padding-left:24px}.static-sidebar .tree-node .toggle-btn{position:absolute;left:0;display:flex;align-items:center;justify-content:center;width:20px;height:16px;border:none;border-radius:3px;color:#cbd5e1;cursor:pointer;transition:all .25s ease;flex-shrink:0;z-index:3}.static-sidebar .tree-node .toggle-btn:hover{transform:scale(1.1)}.static-sidebar .tree-node .toggle-btn i{font-size:.7rem;transition:transform .2s ease}.static-sidebar .tree-node .node-icon{color:#cbd5e1;font-size:16px;flex-shrink:0;transition:transform .25s ease,color .25s ease;position:relative}.static-sidebar .tree-node .node-label{flex:1;font-size:13px;font-weight:500;color:#cbd5e1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .25s ease;position:relative}.static-sidebar .collapsed-container{padding:8px 0;display:flex;flex-direction:column;align-items:center;width:100%}.static-sidebar .collapsed-item{width:100%;display:flex;flex-direction:column;align-items:center;padding:12px 0;cursor:pointer;transition:all .25s ease;text-decoration:none;position:relative;overflow:hidden;margin-bottom:4px;color:#cbd5e1}.static-sidebar .collapsed-item:hover{color:#e8e7e7}.static-sidebar .collapsed-item:hover .collapsed-icon{transform:scale(1.15);color:#e8e7e7}.static-sidebar .collapsed-item:hover:after{content:\"\";position:absolute;left:0;top:0;width:3px;height:100%;background-color:#0f172a;opacity:.7}.static-sidebar .collapsed-item.active{background-color:#495465!important}.static-sidebar .collapsed-item.active:before{content:\"\";position:absolute;left:0;top:0;width:3px;height:100%;background-color:#0f172a}.static-sidebar .collapsed-item.active .collapsed-icon{color:#fff!important}.static-sidebar .collapsed-item .collapsed-icon{font-size:22px;color:#cbd5e1;transition:all .2s ease}.static-sidebar .children-container{position:relative}.static-sidebar .children-container:before{content:\"\";position:absolute;left:25px;top:0;bottom:0;width:1px;background-color:#4755694d;z-index:1}.static-sidebar .tree-node{position:relative}.static-sidebar .tree-node.level-0 .node-item{margin-right:20px;width:240px;max-width:240px}.static-sidebar .tree-node.level-0 .node-label{font-size:13px;font-weight:500;color:#cbd5e1}.static-sidebar .tree-node.level-0 .node-icon{font-size:16px}.static-sidebar .tree-node.level-1 .node-item{margin-left:36px;margin-right:20px;padding:8px 12px;width:204px;max-width:204px}.static-sidebar .tree-node.level-1 .node-label{font-size:12px;font-weight:400}.static-sidebar .tree-node.level-1 .node-icon{font-size:15px}.static-sidebar .tree-node.level-2 .node-item{margin-left:52px;margin-right:20px;width:188px;max-width:188px}.static-sidebar .tree-node.level-2 .node-label{font-size:11px;font-weight:400;color:#cbd5e1}.static-sidebar .tree-node.level-2 .node-icon{font-size:14px}.static-sidebar .tree-node.level-2.active .node-item{background-color:#495465!important}.static-sidebar .tree-node.level-2.active .node-item .node-label{color:#e8e7e7!important}.static-sidebar .tree-node.level-3 .node-item{margin-left:68px;margin-right:20px;padding:6px 12px;width:172px;max-width:172px}.static-sidebar .tree-node.level-3 .node-label{font-size:11px;font-weight:400;color:#cbd5e1}.static-sidebar .tree-node.level-3 .node-icon{font-size:13px}:host ::ng-deep .p-scrollpanel .p-scrollpanel-wrapper{border:none}:host ::ng-deep .p-scrollpanel .p-scrollpanel-content{padding-right:5px}:host ::ng-deep .p-scrollpanel-bar-y{background:#1e293b;width:4px;border-radius:4px}:host ::ng-deep .p-scrollpanel-bar-y:hover{background:#1e293b}\n"], dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: ScrollPanelModule }, { kind: "component", type: i7$1.ScrollPanel, selector: "p-scrollPanel", inputs: ["style", "styleClass", "step"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i9.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: TranslocoModule }, { kind: "directive", type: i5.TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoLang", "translocoLoadingTpl"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i11.InputText, selector: "[pInputText]", inputs: ["variant"] }] }); }
|
|
2638
3589
|
}
|
|
2639
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
3590
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: StaticSidebarComponent, decorators: [{
|
|
2640
3591
|
type: Component,
|
|
2641
3592
|
args: [{ standalone: true, selector: 'app-static-sidebar', imports: [
|
|
2642
3593
|
RouterLink,
|
|
@@ -2647,8 +3598,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
2647
3598
|
FormsModule,
|
|
2648
3599
|
TranslocoModule,
|
|
2649
3600
|
InputTextModule
|
|
2650
|
-
], providers: [TranslateJsonPipe], template: "<div class=\"static-sidebar\" [class.collapsed]=\"isCollapsed\">\r\n\t<div class=\"static-sidebar-content\">\r\n\t\t@if (!isCollapsed) {\r\n\t\t\t<div class=\"search-container\" *transloco=\"let t; read: ''\">\r\n\t\t\t\t<div class=\"search-wrapper\">\r\n\t\t\t\t\t<i class=\"pi pi-search search-icon\"></i>\r\n\t\t\t\t\t<input\r\n\t\t\t\t\t\ttype=\"text\"\r\n\t\t\t\t\t\tpInputText\r\n\t\t\t\t\t\tvariant=\"filled\"\r\n\t\t\t\t\t\t[placeholder]=\"t('search')\"\r\n\t\t\t\t\t\t[(ngModel)]=\"searchTerm\"\r\n\t\t\t\t\t\t(ngModelChange)=\"onSearchChange()\"\r\n\t\t\t\t\t\tclass=\"search-static-sidebar\" />\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t\t<p-scrollPanel [style]=\"{ width: '100%', height: 'calc(100vh - 130px)' }\">\r\n\t\t\t\t<div class=\"tree-container\">\r\n\t\t\t\t\t@for (node of filteredNodes(); track node.key) {\r\n\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"treeNodeTemplate; context: { $implicit: node, level: 0 }\"></ng-container>\r\n\t\t\t\t\t}\r\n\t\t\t\t</div>\r\n\t\t\t</p-scrollPanel>\r\n\t\t} @else {\r\n\t\t\t<!-- Collapsed mode - only icons -->\r\n\t\t\t<div class=\"collapsed-container\">\r\n\t\t\t\t@for (node of topLevelNodes; track node.key) {\r\n\t\t\t\t\t@if (node.action && (!node.children || node.children.length === 0)) {\r\n\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\tclass=\"collapsed-item is-action\"\r\n\t\t\t\t\t\t\t[pTooltip]=\"getLocalText(node.label)\"\r\n\t\t\t\t\t\t\ttooltipPosition=\"right\"\r\n\t\t\t\t\t\t\t[class.active]=\"isTopLevelNodeActive(node)\"\r\n\t\t\t\t\t\t\t[class.action-loading]=\"node.actionLoading\"\r\n\t\t\t\t\t\t\t(click)=\"onActionItemClick(node, $event)\">\r\n\t\t\t\t\t\t\t@if (node.actionLoading) {\r\n\t\t\t\t\t\t\t\t<i class=\"collapsed-icon pi pi-spin pi-spinner\"></i>\r\n\t\t\t\t\t\t\t} @else if (node.icon) {\r\n\t\t\t\t\t\t\t\t<i class=\"collapsed-icon\" [class]=\"node.icon\"></i>\r\n\t\t\t\t\t\t\t} @else {\r\n\t\t\t\t\t\t\t\t<i class=\"collapsed-icon pi pi-circle\"></i>\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t} @else if (node.routerLink && (!node.children || node.children.length === 0)) {\r\n\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\tclass=\"collapsed-item\"\r\n\t\t\t\t\t\t\t[pTooltip]=\"getLocalText(node.label)\"\r\n\t\t\t\t\t\t\ttooltipPosition=\"right\"\r\n\t\t\t\t\t\t\t[routerLink]=\"node.routerLink\"\r\n\t\t\t\t\t\t\t[class.active]=\"isTopLevelNodeActive(node)\"\r\n\t\t\t\t\t\t\t(click)=\"onCollapsedItemClick(node)\">\r\n\t\t\t\t\t\t\t@if (node.icon) {\r\n\t\t\t\t\t\t\t\t<i class=\"collapsed-icon\" [class]=\"node.icon\"></i>\r\n\t\t\t\t\t\t\t} @else {\r\n\t\t\t\t\t\t\t\t<i class=\"collapsed-icon pi pi-circle\"></i>\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t</a>\r\n\t\t\t\t\t} @else {\r\n\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\tclass=\"collapsed-item\"\r\n\t\t\t\t\t\t\t[pTooltip]=\"getLocalText(node.label)\"\r\n\t\t\t\t\t\t\ttooltipPosition=\"right\"\r\n\t\t\t\t\t\t\t[class.active]=\"isTopLevelNodeActive(node)\"\r\n\t\t\t\t\t\t\t(click)=\"onCollapsedItemClick(node)\">\r\n\t\t\t\t\t\t\t@if (node.icon) {\r\n\t\t\t\t\t\t\t\t<i class=\"collapsed-icon\" [class]=\"node.icon\"></i>\r\n\t\t\t\t\t\t\t} @else {\r\n\t\t\t\t\t\t\t\t<i class=\"collapsed-icon pi pi-circle\"></i>\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t}\r\n\t</div>\r\n\r\n\t<!-- Recursive Tree Node Template -->\r\n\t<ng-template #treeNodeTemplate let-node let-level=\"level\">\r\n\t\t<div class=\"tree-node\" [ngClass]=\"'level-' + level\">\r\n\t\t\t@if (node.action) {\r\n\t\t\t\t<!-- Action item: HTTP POST on click, then navigate -->\r\n\t\t\t\t<div\r\n\t\t\t\t\tclass=\"node-item is-action\"\r\n\t\t\t\t\t[class.has-children]=\"node.children && node.children.length > 0\"\r\n\t\t\t\t\t[class.action-loading]=\"node.actionLoading\"\r\n\t\t\t\t\t[pTooltip]=\"!isMobile() && isTextTruncated(node.label, activeLang(), level) ? getLocalText(node.label) : ''\"\r\n\t\t\t\t\ttooltipPosition=\"right\"\r\n\t\t\t\t\t(click)=\"onActionItemClick(node, $event)\">\r\n\t\t\t\t\t<div class=\"node-content\">\r\n\t\t\t\t\t\t@if (node.children && node.children.length > 0) {\r\n\t\t\t\t\t\t\t<div class=\"toggle-btn\" (click)=\"$event.stopPropagation(); toggleNode(node, level)\">\r\n\t\t\t\t\t\t\t\t<i class=\"pi\" [class.pi-chevron-right]=\"!node.expanded\" [class.pi-chevron-down]=\"node.expanded\"></i>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t@if (node.actionLoading) {\r\n\t\t\t\t\t\t\t<i class=\"node-icon pi pi-spin pi-spinner\"></i>\r\n\t\t\t\t\t\t} @else if (node.icon) {\r\n\t\t\t\t\t\t\t<i class=\"node-icon\" [class]=\"node.icon\"></i>\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t<span class=\"node-label\">{{ getLocalText(node.label) }}</span>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t} @else if (node.routerLink) {\r\n\t\t\t\t<a\r\n\t\t\t\t\t[routerLink]=\"node.routerLink\"\r\n\t\t\t\t\tclass=\"node-item\"\r\n\t\t\t\t\t[class.has-children]=\"node.children && node.children.length > 0\"\r\n\t\t\t\t\t[class.is-page]=\"node.routerLink\"\r\n\t\t\t\t\t[class.active]=\"isChildNodeActive(node)\"\r\n\t\t\t\t\t[pTooltip]=\"!isMobile() && isTextTruncated(node.label, activeLang(), level) ? getLocalText(node.label) : ''\"\r\n\t\t\t\t\ttooltipPosition=\"right\"\r\n\t\t\t\t\t(click)=\"onMenuItemClick()\">\r\n\t\t\t\t\t<div class=\"node-content\">\r\n\t\t\t\t\t\t@if (node.children && node.children.length > 0) {\r\n\t\t\t\t\t\t\t<div class=\"toggle-btn\" (click)=\"$event.stopPropagation(); toggleNode(node, level)\">\r\n\t\t\t\t\t\t\t\t<i class=\"pi\" [class.pi-chevron-right]=\"!node.expanded\" [class.pi-chevron-down]=\"node.expanded\"></i>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t@if (node.icon) {\r\n\t\t\t\t\t\t\t<i class=\"node-icon\" [class]=\"node.icon\"></i>\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t<span class=\"node-label\">{{ getLocalText(node.label) }}</span>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</a>\r\n\t\t\t} @else {\r\n\t\t\t\t<div\r\n\t\t\t\t\tclass=\"node-item\"\r\n\t\t\t\t\t[class.has-children]=\"node.children && node.children.length > 0\"\r\n\t\t\t\t\t[class.is-page]=\"node.routerLink\"\r\n\t\t\t\t\t[class.active]=\"isChildNodeActive(node)\"\r\n\t\t\t\t\t[pTooltip]=\"!isMobile() && isTextTruncated(node.label, activeLang(), level) ? getLocalText(node.label) : ''\"\r\n\t\t\t\t\ttooltipPosition=\"right\"\r\n\t\t\t\t\t(click)=\"toggleNode(node, level)\">\r\n\t\t\t\t\t<div class=\"node-content\">\r\n\t\t\t\t\t\t@if (node.children && node.children.length > 0) {\r\n\t\t\t\t\t\t\t<div class=\"toggle-btn\" (click)=\"$event.stopPropagation(); toggleNode(node, level)\">\r\n\t\t\t\t\t\t\t\t<i class=\"pi\" [class.pi-chevron-right]=\"!node.expanded\" [class.pi-chevron-down]=\"node.expanded\"></i>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t@if (node.icon) {\r\n\t\t\t\t\t\t\t<i class=\"node-icon\" [class]=\"node.icon\"></i>\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t<span class=\"node-label\">{{ getLocalText(node.label) }}</span>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t}\r\n\r\n\t\t\t<!-- Recursive Children -->\r\n\t\t\t@if (node.children && node.expanded) {\r\n\t\t\t\t<div class=\"children-container\" [attr.data-level]=\"level\">\r\n\t\t\t\t\t@for (child of node.children; track child.key) {\r\n\t\t\t\t\t\t<ng-container\r\n\t\t\t\t\t\t\t*ngTemplateOutlet=\"treeNodeTemplate; context: { $implicit: child, level: level + 1 }\"></ng-container>\r\n\t\t\t\t\t}\r\n\t\t\t\t</div>\r\n\t\t\t}\r\n\t\t</div>\r\n\t</ng-template>\r\n</div>\r\n", styles: [".search-container{padding:12px 8px;margin:0}.search-wrapper{position:relative;width:100%}.search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#64748b;font-size:14px;z-index:10;pointer-events:none;transition:color .2s ease}.search-static-sidebar{background:#1e293b!important;border:1px solid rgba(148,163,184,.1)!important;height:36px!important;font-size:13px!important;font-weight:400;color:#cbd5e1!important;padding:0 12px 0 36px!important;border-radius:4px!important;width:100%!important;box-sizing:border-box!important;transition:all .25s ease!important}.search-static-sidebar::placeholder{font-size:12px!important}.search-static-sidebar:hover{background:#0f172ab3!important;border-color:#94a3b826!important}.search-static-sidebar:focus{outline:none!important;border:1px solid rgba(15,23,42,.8)!important;background:#0f172acc!important}.search-wrapper:focus-within .search-icon{color:#cbd5e1}.static-sidebar{width:260px;height:100vh;background:#1e293b;border-right:1px solid #0f172a;display:flex;flex-direction:column;position:fixed;left:0;top:calc(55px + var(--env-banner-h, 0px));z-index:999;overflow-y:auto;overflow-x:hidden;transition:width .3s ease;box-shadow:2px 0 5px #0000000d}.static-sidebar.collapsed{width:64px;box-shadow:none}.static-sidebar .static-sidebar-content{flex:1;background:transparent;overflow:hidden}.static-sidebar .tree-container{padding:5px 0;overflow-x:hidden}.static-sidebar .tree-node{margin-bottom:4px;position:relative}.static-sidebar .tree-node .node-item{display:flex;align-items:center;padding:10px 12px;border-radius:4px;margin:0 5px;cursor:pointer;transition:all .25s ease;text-decoration:none;color:#cbd5e1!important;overflow:visible;position:relative;white-space:nowrap}.static-sidebar .tree-node .node-item:before{content:\"\";position:absolute;width:0;height:100%;top:0;left:0;background-color:var(--primary-color);opacity:.08;transition:width .25s ease-in-out}.static-sidebar .tree-node .node-item:hover{color:#e8e7e7!important}.static-sidebar .tree-node .node-item:hover:before{width:100%}.static-sidebar .tree-node .node-item:hover .node-label{color:#e8e7e7!important}.static-sidebar .tree-node .node-item:hover .node-icon{color:#e8e7e7!important;transform:translate(2px)}.static-sidebar .tree-node .node-item.is-page:hover{color:#e8e7e7!important}.static-sidebar .tree-node .node-item.is-page:hover:before{width:100%}.static-sidebar .tree-node .node-item.active{background-color:#495465!important;color:#e8e7e7!important;font-weight:500!important;box-shadow:0 2px 5px #0000001a!important}.static-sidebar .tree-node .node-item.active:before{display:none}.static-sidebar .tree-node .node-item.active .node-label,.static-sidebar .tree-node .node-item.active .node-icon,.static-sidebar .tree-node .node-item.active .toggle-btn i{color:#e8e7e7!important}.static-sidebar .tree-node .node-item.active:hover{background-color:var(--primary-color)}.static-sidebar .tree-node .node-item.is-action{cursor:pointer}.static-sidebar .tree-node .node-item.is-action.action-loading{opacity:.7;pointer-events:none}.static-sidebar .tree-node .node-content{display:flex;align-items:center;gap:8px;width:100%;min-width:0;position:relative;z-index:2;padding-left:24px}.static-sidebar .tree-node .toggle-btn{position:absolute;left:0;display:flex;align-items:center;justify-content:center;width:20px;height:16px;border:none;border-radius:3px;color:#cbd5e1;cursor:pointer;transition:all .25s ease;flex-shrink:0;z-index:3}.static-sidebar .tree-node .toggle-btn:hover{transform:scale(1.1)}.static-sidebar .tree-node .toggle-btn i{font-size:.7rem;transition:transform .2s ease}.static-sidebar .tree-node .node-icon{color:#cbd5e1;font-size:16px;flex-shrink:0;transition:transform .25s ease,color .25s ease;position:relative}.static-sidebar .tree-node .node-label{flex:1;font-size:13px;font-weight:500;color:#cbd5e1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .25s ease;position:relative}.static-sidebar .collapsed-container{padding:8px 0;display:flex;flex-direction:column;align-items:center;width:100%}.static-sidebar .collapsed-item{width:100%;display:flex;flex-direction:column;align-items:center;padding:12px 0;cursor:pointer;transition:all .25s ease;text-decoration:none;position:relative;overflow:hidden;margin-bottom:4px;color:#cbd5e1}.static-sidebar .collapsed-item:hover{color:#e8e7e7}.static-sidebar .collapsed-item:hover .collapsed-icon{transform:scale(1.15);color:#e8e7e7}.static-sidebar .collapsed-item:hover:after{content:\"\";position:absolute;left:0;top:0;width:3px;height:100%;background-color:#0f172a;opacity:.7}.static-sidebar .collapsed-item.active{background-color:#495465!important}.static-sidebar .collapsed-item.active:before{content:\"\";position:absolute;left:0;top:0;width:3px;height:100%;background-color:#0f172a}.static-sidebar .collapsed-item.active .collapsed-icon{color:#fff!important}.static-sidebar .collapsed-item .collapsed-icon{font-size:22px;color:#cbd5e1;transition:all .2s ease}.static-sidebar .children-container{position:relative}.static-sidebar .children-container:before{content:\"\";position:absolute;left:25px;top:0;bottom:0;width:1px;background-color:#4755694d;z-index:1}.static-sidebar .tree-node{position:relative}.static-sidebar .tree-node.level-0 .node-item{margin-right:20px;width:240px;max-width:240px}.static-sidebar .tree-node.level-0 .node-label{font-size:13px;font-weight:500;color:#cbd5e1}.static-sidebar .tree-node.level-0 .node-icon{font-size:16px}.static-sidebar .tree-node.level-1 .node-item{margin-left:36px;margin-right:20px;padding:8px 12px;width:204px;max-width:204px}.static-sidebar .tree-node.level-1 .node-label{font-size:12px;font-weight:400}.static-sidebar .tree-node.level-1 .node-icon{font-size:15px}.static-sidebar .tree-node.level-2 .node-item{margin-left:52px;margin-right:20px;width:188px;max-width:188px}.static-sidebar .tree-node.level-2 .node-label{font-size:11px;font-weight:400;color:#cbd5e1}.static-sidebar .tree-node.level-2 .node-icon{font-size:14px}.static-sidebar .tree-node.level-2.active .node-item{background-color:#495465!important}.static-sidebar .tree-node.level-2.active .node-item .node-label{color:#e8e7e7!important}.static-sidebar .tree-node.level-3 .node-item{margin-left:68px;margin-right:20px;padding:6px 12px;width:172px;max-width:172px}.static-sidebar .tree-node.level-3 .node-label{font-size:11px;font-weight:400;color:#cbd5e1}.static-sidebar .tree-node.level-3 .node-icon{font-size:13px}:host ::ng-deep .p-scrollpanel .p-scrollpanel-wrapper{border:none}:host ::ng-deep .p-scrollpanel .p-scrollpanel-content{padding-right:5px}:host ::ng-deep .p-scrollpanel-bar-y{background:#1e293b;width:4px;border-radius:4px}:host ::ng-deep .p-scrollpanel-bar-y:hover{background:#1e293b}\n"] }]
|
|
2651
|
-
}], ctorParameters: () => [{ type: AppMenuService }, { type: i1$
|
|
3601
|
+
], providers: [TranslateJsonPipe], template: "<div class=\"static-sidebar\" [class.collapsed]=\"isCollapsed\">\n\t<div class=\"static-sidebar-content\">\n\t\t@if (!isCollapsed) {\n\t\t\t<div class=\"search-container\" *transloco=\"let t; read: ''\">\n\t\t\t\t<div class=\"search-wrapper\">\n\t\t\t\t\t<i class=\"pi pi-search search-icon\"></i>\n\t\t\t\t\t<input\n\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\tpInputText\n\t\t\t\t\t\tvariant=\"filled\"\n\t\t\t\t\t\t[placeholder]=\"t('search')\"\n\t\t\t\t\t\t[(ngModel)]=\"searchTerm\"\n\t\t\t\t\t\t(ngModelChange)=\"onSearchChange()\"\n\t\t\t\t\t\tclass=\"search-static-sidebar\" />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<p-scrollPanel [style]=\"{ width: '100%', height: 'calc(100vh - 130px)' }\">\n\t\t\t\t<div class=\"tree-container\">\n\t\t\t\t\t@for (node of filteredNodes(); track node.key) {\n\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"treeNodeTemplate; context: { $implicit: node, level: 0 }\"></ng-container>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</p-scrollPanel>\n\t\t} @else {\n\t\t\t<!-- Collapsed mode - only icons -->\n\t\t\t<div class=\"collapsed-container\">\n\t\t\t\t@for (node of topLevelNodes; track node.key) {\n\t\t\t\t\t@if (node.action && (!node.children || node.children.length === 0)) {\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass=\"collapsed-item is-action\"\n\t\t\t\t\t\t\t[pTooltip]=\"getLocalText(node.label)\"\n\t\t\t\t\t\t\ttooltipPosition=\"right\"\n\t\t\t\t\t\t\t[class.active]=\"isTopLevelNodeActive(node)\"\n\t\t\t\t\t\t\t[class.action-loading]=\"node.actionLoading\"\n\t\t\t\t\t\t\t(click)=\"onActionItemClick(node, $event)\">\n\t\t\t\t\t\t\t@if (node.actionLoading) {\n\t\t\t\t\t\t\t\t<i class=\"collapsed-icon pi pi-spin pi-spinner\"></i>\n\t\t\t\t\t\t\t} @else if (node.icon) {\n\t\t\t\t\t\t\t\t<i class=\"collapsed-icon\" [class]=\"node.icon\"></i>\n\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t<i class=\"collapsed-icon pi pi-circle\"></i>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t} @else if (node.routerLink && (!node.children || node.children.length === 0)) {\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\tclass=\"collapsed-item\"\n\t\t\t\t\t\t\t[pTooltip]=\"getLocalText(node.label)\"\n\t\t\t\t\t\t\ttooltipPosition=\"right\"\n\t\t\t\t\t\t\t[routerLink]=\"node.routerLink\"\n\t\t\t\t\t\t\t[class.active]=\"isTopLevelNodeActive(node)\"\n\t\t\t\t\t\t\t(click)=\"onCollapsedItemClick(node)\">\n\t\t\t\t\t\t\t@if (node.icon) {\n\t\t\t\t\t\t\t\t<i class=\"collapsed-icon\" [class]=\"node.icon\"></i>\n\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t<i class=\"collapsed-icon pi pi-circle\"></i>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass=\"collapsed-item\"\n\t\t\t\t\t\t\t[pTooltip]=\"getLocalText(node.label)\"\n\t\t\t\t\t\t\ttooltipPosition=\"right\"\n\t\t\t\t\t\t\t[class.active]=\"isTopLevelNodeActive(node)\"\n\t\t\t\t\t\t\t(click)=\"onCollapsedItemClick(node)\">\n\t\t\t\t\t\t\t@if (node.icon) {\n\t\t\t\t\t\t\t\t<i class=\"collapsed-icon\" [class]=\"node.icon\"></i>\n\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t<i class=\"collapsed-icon pi pi-circle\"></i>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t</div>\n\t\t}\n\t</div>\n\n\t<!-- Recursive Tree Node Template -->\n\t<ng-template #treeNodeTemplate let-node let-level=\"level\">\n\t\t<div class=\"tree-node\" [ngClass]=\"'level-' + level\">\n\t\t\t@if (node.action) {\n\t\t\t\t<!-- Action item: HTTP POST on click, then navigate -->\n\t\t\t\t<div\n\t\t\t\t\tclass=\"node-item is-action\"\n\t\t\t\t\t[class.has-children]=\"node.children && node.children.length > 0\"\n\t\t\t\t\t[class.action-loading]=\"node.actionLoading\"\n\t\t\t\t\t[pTooltip]=\"!isMobile() && isTextTruncated(node.label, activeLang(), level) ? getLocalText(node.label) : ''\"\n\t\t\t\t\ttooltipPosition=\"right\"\n\t\t\t\t\t(click)=\"onActionItemClick(node, $event)\">\n\t\t\t\t\t<div class=\"node-content\">\n\t\t\t\t\t\t@if (node.children && node.children.length > 0) {\n\t\t\t\t\t\t\t<div class=\"toggle-btn\" (click)=\"$event.stopPropagation(); toggleNode(node, level)\">\n\t\t\t\t\t\t\t\t<i class=\"pi\" [class.pi-chevron-right]=\"!node.expanded\" [class.pi-chevron-down]=\"node.expanded\"></i>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@if (node.actionLoading) {\n\t\t\t\t\t\t\t<i class=\"node-icon pi pi-spin pi-spinner\"></i>\n\t\t\t\t\t\t} @else if (node.icon) {\n\t\t\t\t\t\t\t<i class=\"node-icon\" [class]=\"node.icon\"></i>\n\t\t\t\t\t\t}\n\t\t\t\t\t\t<span class=\"node-label\">{{ getLocalText(node.label) }}</span>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else if (node.routerLink) {\n\t\t\t\t<a\n\t\t\t\t\t[routerLink]=\"node.routerLink\"\n\t\t\t\t\tclass=\"node-item\"\n\t\t\t\t\t[class.has-children]=\"node.children && node.children.length > 0\"\n\t\t\t\t\t[class.is-page]=\"node.routerLink\"\n\t\t\t\t\t[class.active]=\"isChildNodeActive(node)\"\n\t\t\t\t\t[pTooltip]=\"!isMobile() && isTextTruncated(node.label, activeLang(), level) ? getLocalText(node.label) : ''\"\n\t\t\t\t\ttooltipPosition=\"right\"\n\t\t\t\t\t(click)=\"onMenuItemClick()\">\n\t\t\t\t\t<div class=\"node-content\">\n\t\t\t\t\t\t@if (node.children && node.children.length > 0) {\n\t\t\t\t\t\t\t<div class=\"toggle-btn\" (click)=\"$event.stopPropagation(); toggleNode(node, level)\">\n\t\t\t\t\t\t\t\t<i class=\"pi\" [class.pi-chevron-right]=\"!node.expanded\" [class.pi-chevron-down]=\"node.expanded\"></i>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@if (node.icon) {\n\t\t\t\t\t\t\t<i class=\"node-icon\" [class]=\"node.icon\"></i>\n\t\t\t\t\t\t}\n\t\t\t\t\t\t<span class=\"node-label\">{{ getLocalText(node.label) }}</span>\n\t\t\t\t\t</div>\n\t\t\t\t</a>\n\t\t\t} @else {\n\t\t\t\t<div\n\t\t\t\t\tclass=\"node-item\"\n\t\t\t\t\t[class.has-children]=\"node.children && node.children.length > 0\"\n\t\t\t\t\t[class.is-page]=\"node.routerLink\"\n\t\t\t\t\t[class.active]=\"isChildNodeActive(node)\"\n\t\t\t\t\t[pTooltip]=\"!isMobile() && isTextTruncated(node.label, activeLang(), level) ? getLocalText(node.label) : ''\"\n\t\t\t\t\ttooltipPosition=\"right\"\n\t\t\t\t\t(click)=\"toggleNode(node, level)\">\n\t\t\t\t\t<div class=\"node-content\">\n\t\t\t\t\t\t@if (node.children && node.children.length > 0) {\n\t\t\t\t\t\t\t<div class=\"toggle-btn\" (click)=\"$event.stopPropagation(); toggleNode(node, level)\">\n\t\t\t\t\t\t\t\t<i class=\"pi\" [class.pi-chevron-right]=\"!node.expanded\" [class.pi-chevron-down]=\"node.expanded\"></i>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@if (node.icon) {\n\t\t\t\t\t\t\t<i class=\"node-icon\" [class]=\"node.icon\"></i>\n\t\t\t\t\t\t}\n\t\t\t\t\t\t<span class=\"node-label\">{{ getLocalText(node.label) }}</span>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t}\n\n\t\t\t<!-- Recursive Children -->\n\t\t\t@if (node.children && node.expanded) {\n\t\t\t\t<div class=\"children-container\" [attr.data-level]=\"level\">\n\t\t\t\t\t@for (child of node.children; track child.key) {\n\t\t\t\t\t\t<ng-container\n\t\t\t\t\t\t\t*ngTemplateOutlet=\"treeNodeTemplate; context: { $implicit: child, level: level + 1 }\"></ng-container>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t}\n\t\t</div>\n\t</ng-template>\n</div>\n", styles: [".search-container{padding:12px 8px;margin:0}.search-wrapper{position:relative;width:100%}.search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#64748b;font-size:14px;z-index:10;pointer-events:none;transition:color .2s ease}.search-static-sidebar{background:#1e293b!important;border:1px solid rgba(148,163,184,.1)!important;height:36px!important;font-size:13px!important;font-weight:400;color:#cbd5e1!important;padding:0 12px 0 36px!important;border-radius:4px!important;width:100%!important;box-sizing:border-box!important;transition:all .25s ease!important}.search-static-sidebar::placeholder{font-size:12px!important}.search-static-sidebar:hover{background:#0f172ab3!important;border-color:#94a3b826!important}.search-static-sidebar:focus{outline:none!important;border:1px solid rgba(15,23,42,.8)!important;background:#0f172acc!important}.search-wrapper:focus-within .search-icon{color:#cbd5e1}.static-sidebar{width:260px;height:100vh;background:#1e293b;border-right:1px solid #0f172a;display:flex;flex-direction:column;position:fixed;left:0;top:calc(55px + var(--env-banner-h, 0px));z-index:999;overflow-y:auto;overflow-x:hidden;transition:width .3s ease;box-shadow:2px 0 5px #0000000d}.static-sidebar.collapsed{width:64px;box-shadow:none}.static-sidebar .static-sidebar-content{flex:1;background:transparent;overflow:hidden}.static-sidebar .tree-container{padding:5px 0;overflow-x:hidden}.static-sidebar .tree-node{margin-bottom:4px;position:relative}.static-sidebar .tree-node .node-item{display:flex;align-items:center;padding:10px 12px;border-radius:4px;margin:0 5px;cursor:pointer;transition:all .25s ease;text-decoration:none;color:#cbd5e1!important;overflow:visible;position:relative;white-space:nowrap}.static-sidebar .tree-node .node-item:before{content:\"\";position:absolute;width:0;height:100%;top:0;left:0;background-color:var(--primary-color);opacity:.08;transition:width .25s ease-in-out}.static-sidebar .tree-node .node-item:hover{color:#e8e7e7!important}.static-sidebar .tree-node .node-item:hover:before{width:100%}.static-sidebar .tree-node .node-item:hover .node-label{color:#e8e7e7!important}.static-sidebar .tree-node .node-item:hover .node-icon{color:#e8e7e7!important;transform:translate(2px)}.static-sidebar .tree-node .node-item.is-page:hover{color:#e8e7e7!important}.static-sidebar .tree-node .node-item.is-page:hover:before{width:100%}.static-sidebar .tree-node .node-item.active{background-color:#495465!important;color:#e8e7e7!important;font-weight:500!important;box-shadow:0 2px 5px #0000001a!important}.static-sidebar .tree-node .node-item.active:before{display:none}.static-sidebar .tree-node .node-item.active .node-label,.static-sidebar .tree-node .node-item.active .node-icon,.static-sidebar .tree-node .node-item.active .toggle-btn i{color:#e8e7e7!important}.static-sidebar .tree-node .node-item.active:hover{background-color:var(--primary-color)}.static-sidebar .tree-node .node-item.is-action{cursor:pointer}.static-sidebar .tree-node .node-item.is-action.action-loading{opacity:.7;pointer-events:none}.static-sidebar .tree-node .node-content{display:flex;align-items:center;gap:8px;width:100%;min-width:0;position:relative;z-index:2;padding-left:24px}.static-sidebar .tree-node .toggle-btn{position:absolute;left:0;display:flex;align-items:center;justify-content:center;width:20px;height:16px;border:none;border-radius:3px;color:#cbd5e1;cursor:pointer;transition:all .25s ease;flex-shrink:0;z-index:3}.static-sidebar .tree-node .toggle-btn:hover{transform:scale(1.1)}.static-sidebar .tree-node .toggle-btn i{font-size:.7rem;transition:transform .2s ease}.static-sidebar .tree-node .node-icon{color:#cbd5e1;font-size:16px;flex-shrink:0;transition:transform .25s ease,color .25s ease;position:relative}.static-sidebar .tree-node .node-label{flex:1;font-size:13px;font-weight:500;color:#cbd5e1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .25s ease;position:relative}.static-sidebar .collapsed-container{padding:8px 0;display:flex;flex-direction:column;align-items:center;width:100%}.static-sidebar .collapsed-item{width:100%;display:flex;flex-direction:column;align-items:center;padding:12px 0;cursor:pointer;transition:all .25s ease;text-decoration:none;position:relative;overflow:hidden;margin-bottom:4px;color:#cbd5e1}.static-sidebar .collapsed-item:hover{color:#e8e7e7}.static-sidebar .collapsed-item:hover .collapsed-icon{transform:scale(1.15);color:#e8e7e7}.static-sidebar .collapsed-item:hover:after{content:\"\";position:absolute;left:0;top:0;width:3px;height:100%;background-color:#0f172a;opacity:.7}.static-sidebar .collapsed-item.active{background-color:#495465!important}.static-sidebar .collapsed-item.active:before{content:\"\";position:absolute;left:0;top:0;width:3px;height:100%;background-color:#0f172a}.static-sidebar .collapsed-item.active .collapsed-icon{color:#fff!important}.static-sidebar .collapsed-item .collapsed-icon{font-size:22px;color:#cbd5e1;transition:all .2s ease}.static-sidebar .children-container{position:relative}.static-sidebar .children-container:before{content:\"\";position:absolute;left:25px;top:0;bottom:0;width:1px;background-color:#4755694d;z-index:1}.static-sidebar .tree-node{position:relative}.static-sidebar .tree-node.level-0 .node-item{margin-right:20px;width:240px;max-width:240px}.static-sidebar .tree-node.level-0 .node-label{font-size:13px;font-weight:500;color:#cbd5e1}.static-sidebar .tree-node.level-0 .node-icon{font-size:16px}.static-sidebar .tree-node.level-1 .node-item{margin-left:36px;margin-right:20px;padding:8px 12px;width:204px;max-width:204px}.static-sidebar .tree-node.level-1 .node-label{font-size:12px;font-weight:400}.static-sidebar .tree-node.level-1 .node-icon{font-size:15px}.static-sidebar .tree-node.level-2 .node-item{margin-left:52px;margin-right:20px;width:188px;max-width:188px}.static-sidebar .tree-node.level-2 .node-label{font-size:11px;font-weight:400;color:#cbd5e1}.static-sidebar .tree-node.level-2 .node-icon{font-size:14px}.static-sidebar .tree-node.level-2.active .node-item{background-color:#495465!important}.static-sidebar .tree-node.level-2.active .node-item .node-label{color:#e8e7e7!important}.static-sidebar .tree-node.level-3 .node-item{margin-left:68px;margin-right:20px;padding:6px 12px;width:172px;max-width:172px}.static-sidebar .tree-node.level-3 .node-label{font-size:11px;font-weight:400;color:#cbd5e1}.static-sidebar .tree-node.level-3 .node-icon{font-size:13px}:host ::ng-deep .p-scrollpanel .p-scrollpanel-wrapper{border:none}:host ::ng-deep .p-scrollpanel .p-scrollpanel-content{padding-right:5px}:host ::ng-deep .p-scrollpanel-bar-y{background:#1e293b;width:4px;border-radius:4px}:host ::ng-deep .p-scrollpanel-bar-y:hover{background:#1e293b}\n"] }]
|
|
3602
|
+
}], ctorParameters: () => [{ type: AppMenuService }, { type: i1$3.Router }, { type: LayoutService }, { type: i1$4.TranslateJsonPipe }, { type: i5.TranslocoService }, { type: i1.HttpClient }, { type: i3.ConfirmationService }] });
|
|
2652
3603
|
|
|
2653
3604
|
class NotificationsService extends RestClient {
|
|
2654
3605
|
constructor() {
|
|
@@ -2664,8 +3615,8 @@ class NotificationsService extends RestClient {
|
|
|
2664
3615
|
markAllAsReadNotification(post) {
|
|
2665
3616
|
return new Observable();
|
|
2666
3617
|
}
|
|
2667
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
2668
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
3618
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NotificationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3619
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NotificationsService, providedIn: 'root' }); }
|
|
2669
3620
|
}
|
|
2670
3621
|
__decorate([
|
|
2671
3622
|
ServiceCall(HTTPMethods.POST, ProxyTypes.ClientSide, 'audits/search')
|
|
@@ -2676,7 +3627,7 @@ __decorate([
|
|
|
2676
3627
|
__decorate([
|
|
2677
3628
|
ServiceCall(HTTPMethods.PUTBYPARAMS, ProxyTypes.ClientSide, 'audits/read-all', { success: 'notifications.markedAllAsRead' })
|
|
2678
3629
|
], NotificationsService.prototype, "markAllAsReadNotification", null);
|
|
2679
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
3630
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NotificationsService, decorators: [{
|
|
2680
3631
|
type: Injectable,
|
|
2681
3632
|
args: [{ providedIn: 'root' }]
|
|
2682
3633
|
}], ctorParameters: () => [], propDecorators: { getNotifications: [], markAsReadNotification: [], markAllAsReadNotification: [] } });
|
|
@@ -2724,7 +3675,7 @@ class NotificationsSidebarComponent {
|
|
|
2724
3675
|
markAllAsRead: new Subject(),
|
|
2725
3676
|
loadNotifications: new Subject()
|
|
2726
3677
|
};
|
|
2727
|
-
this.markAsReadService = toSignal(this.subjects.markAsRead.pipe(mergeMap((id) => this.notificationsService.markAsReadNotification(id).pipe(map
|
|
3678
|
+
this.markAsReadService = toSignal(this.subjects.markAsRead.pipe(mergeMap((id) => this.notificationsService.markAsReadNotification(id).pipe(map((result) => ({ result, id }))))));
|
|
2728
3679
|
this.markAllAsReadService = toSignal(this.subjects.markAllAsRead.pipe(switchMap(() => this.notificationsService.markAllAsReadNotification({
|
|
2729
3680
|
toList: [this.getUserMail, ...this.getUserPhones],
|
|
2730
3681
|
endDate: new Date().dateToLong('time') || 0
|
|
@@ -2922,10 +3873,10 @@ class NotificationsSidebarComponent {
|
|
|
2922
3873
|
this.router.navigate(['mng/control-management/sms-email-audit']);
|
|
2923
3874
|
this.visible = false;
|
|
2924
3875
|
}
|
|
2925
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
2926
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: NotificationsSidebarComponent, isStandalone: true, selector: "app-notifications-sidebar", ngImport: i0, template: "<p-sidebar\r\n\t[(visible)]=\"visible\"\r\n\tposition=\"right\"\r\n\t[transitionOptions]=\"'.3s cubic-bezier(0, 0, 0.2, 1)'\"\r\n\tstyleClass=\"layout-notifications-sidebar w-full sm:w-30rem\"\r\n\t(onShow)=\"onSidebarShow()\"\r\n\t*transloco=\"let t; read: 'notifications'\">\r\n\t<ng-template pTemplate=\"header\">\r\n\t\t<div class=\"flex align-items-center justify-content-between w-full\">\r\n\t\t\t<div class=\"flex align-items-center gap-2\">\r\n\t\t\t\t<i class=\"pi pi-bell text-xl\"></i>\r\n\t\t\t\t<span class=\"font-bold text-lg\">{{ t('title') }}</span>\r\n\t\t\t\t@if (unreadCount > 0) {\r\n\t\t\t\t\t<span class=\"unread-count-chip\">{{ unreadCount }}</span>\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t\t<div class=\"flex align-items-center gap-2 header-actions\">\r\n\t\t\t\t<span class=\"only-unread-label\">{{ t('onlyUnread') }}</span>\r\n\t\t\t\t<aril-switch [ngModel]=\"onlyUnread()\" (ngModelChange)=\"onOnlyUnreadChange($event)\"></aril-switch>\r\n\t\t\t\t<i class=\"pi pi-ellipsis-v header-menu-icon\" (click)=\"toggleMenu($event, headerMenu)\"></i>\r\n\t\t\t\t<p-menu #headerMenu [popup]=\"true\" [model]=\"menuItems\" appendTo=\"body\"></p-menu>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</ng-template>\r\n\r\n\t<div class=\"notifications-content\">\r\n\t\t@if (notifications().length > 0) {\r\n\t\t\t<div class=\"notifications-list\">\r\n\t\t\t\t<div class=\"notifications-items\">\r\n\t\t\t\t\t@for (notification of notifications(); track notification.id) {\r\n\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\tclass=\"notification-item\"\r\n\t\t\t\t\t\t\t[class.unread-item]=\"!notification.read\"\r\n\t\t\t\t\t\t\t[class.navigable]=\"isNavigable(notification)\"\r\n\t\t\t\t\t\t\t(click)=\"openNotification(notification)\">\r\n\t\t\t\t\t\t\t<div class=\"notification-icon\" [ngClass]=\"getNotificationIconClass(notification)\">\r\n\t\t\t\t\t\t\t\t<fa-icon [icon]=\"getNotificationIcon(notification)\" />\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t<div class=\"item-body\">\r\n\t\t\t\t\t\t\t\t<div class=\"item-header\">\r\n\t\t\t\t\t\t\t\t\t<p class=\"item-title\">{{ getNotificationTitle(notification) }}</p>\r\n\t\t\t\t\t\t\t\t\t<span class=\"item-time\">{{ formatNotificationDate(notification.sendingDate) }}</span>\r\n\t\t\t\t\t\t\t\t\t@if (!notification.read) {\r\n\t\t\t\t\t\t\t\t\t\t<span class=\"item-actions\">\r\n\t\t\t\t\t\t\t\t\t\t\t<fa-icon\r\n\t\t\t\t\t\t\t\t\t\t\t\t[icon]=\"solidIcons.faCircle\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tclass=\"unread-dot\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t[pTooltip]=\"t('markAsRead')\"\r\n\t\t\t\t\t\t\t\t\t\t\t\ttooltipPosition=\"left\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t(click)=\"markNotificationAsRead(notification); $event.stopPropagation()\">\r\n\t\t\t\t\t\t\t\t\t\t\t</fa-icon>\r\n\t\t\t\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tclass=\"mark-read-action\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t[pTooltip]=\"t('markAsRead')\"\r\n\t\t\t\t\t\t\t\t\t\t\t\ttooltipPosition=\"left\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t(click)=\"markNotificationAsRead(notification); $event.stopPropagation()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"pi pi-check\"></i>\r\n\t\t\t\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t@if (getNotificationContent(notification)) {\r\n\t\t\t\t\t\t\t\t\t@if (notification.type === ActivityTypesEnum.EMAIL) {\r\n\t\t\t\t\t\t\t\t\t\t<div [innerHTML]=\"notification.content | safe: 'html'\" class=\"item-preview html-preview\"></div>\r\n\t\t\t\t\t\t\t\t\t} @else {\r\n\t\t\t\t\t\t\t\t\t\t<p class=\"item-preview\">{{ getNotificationContent(notification) }}</p>\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t@if (notification.detailNotificationType === DetailNotificationTypeEnum.TODO_ITEM) {\r\n\t\t\t\t\t\t\t\t\t<span class=\"nav-chip\">{{ t('goToTaskDetail') }} <i class=\"pi pi-arrow-right\"></i></span>\r\n\t\t\t\t\t\t\t\t} @else if (notification.detailNotificationType === DetailNotificationTypeEnum.BATCH_JOB) {\r\n\t\t\t\t\t\t\t\t\t<span class=\"nav-chip\">{{ t('goToBulkOperations') }} <i class=\"pi pi-arrow-right\"></i></span>\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t}\r\n\t\t\t\t\t@if (remainingCount() > 0) {\r\n\t\t\t\t\t\t<div class=\"show-more\">\r\n\t\t\t\t\t\t\t<aril-button\r\n\t\t\t\t\t\t\t\t[label]=\"t('showMore', { count: remainingCount() })\"\r\n\t\t\t\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\t\t\t\tsize=\"sm\"\r\n\t\t\t\t\t\t\t\t[outlined]=\"true\"\r\n\t\t\t\t\t\t\t\t[loading]=\"loading\"\r\n\t\t\t\t\t\t\t\t(clickEvent)=\"showMore()\">\r\n\t\t\t\t\t\t\t</aril-button>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t}\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t} @else if (!loading) {\r\n\t\t\t<div class=\"empty-state\">\r\n\t\t\t\t<div class=\"empty-content\">\r\n\t\t\t\t\t<i class=\"pi pi-bell empty-icon\"></i>\r\n\t\t\t\t\t<h3 class=\"empty-title\">{{ t('noNotifications') }}</h3>\r\n\t\t\t\t\t<p class=\"empty-message\">{{ t('noNotificationsDescription') }}</p>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t}\r\n\t</div>\r\n</p-sidebar>\r\n", styles: [":host ::ng-deep .layout-notifications-sidebar .p-sidebar-content{padding:0;background:var(--surface-ground)}:host ::ng-deep .layout-notifications-sidebar .p-sidebar-header{background:var(--primary-color);color:var(--primary-color-text);padding:1rem 1.5rem}:host ::ng-deep .layout-notifications-sidebar .p-sidebar-header span{font-size:1.1rem;font-weight:600}:host ::ng-deep .layout-notifications-sidebar .p-sidebar-header .p-sidebar-close{color:var(--primary-color-text)}:host ::ng-deep .layout-notifications-sidebar .p-sidebar-header .p-sidebar-close:enabled:hover{background:#ffffff26;color:var(--primary-color-text)}:host ::ng-deep .layout-notifications-sidebar .header-actions .p-inputswitch{transform:scale(.8)}:host ::ng-deep .layout-notifications-sidebar .header-actions .p-inputswitch .p-inputswitch-slider{background:#ffffff4d}:host ::ng-deep .layout-notifications-sidebar .header-actions .p-inputswitch.p-inputswitch-checked .p-inputswitch-slider{background:var(--green-500)}:host ::ng-deep .layout-notifications-sidebar .header-actions .p-inputswitch.p-inputswitch-checked:not(.p-disabled):hover .p-inputswitch-slider{background:var(--green-600)}:host ::ng-deep .layout-notifications-sidebar .header-actions .only-unread-label{font-size:.78rem;font-weight:500}:host ::ng-deep .item-preview.html-preview *{font-family:inherit!important;font-size:inherit!important;font-weight:inherit!important;font-style:inherit!important;color:inherit!important;line-height:inherit!important;letter-spacing:inherit!important;text-align:left!important;margin:0!important;padding:0!important;border:none!important;background:transparent!important;display:inline!important}:host ::ng-deep .item-preview.html-preview p:after,:host ::ng-deep .item-preview.html-preview div:after,:host ::ng-deep .item-preview.html-preview li:after{content:\" \"}:host ::ng-deep .item-preview.html-preview img,:host ::ng-deep .item-preview.html-preview table,:host ::ng-deep .item-preview.html-preview hr,:host ::ng-deep .item-preview.html-preview br{display:none!important}.notifications-content{display:flex;flex-direction:column;height:100%;background:var(--surface-ground)}.unread-count-chip{background:#ffffff40;border-radius:999px;font-size:.72rem!important;font-weight:600!important;padding:.1rem .55rem}.header-menu-icon{cursor:pointer;font-size:1.1rem;padding:.25rem;color:var(--primary-color-text);border-radius:6px;transition:background-color .15s ease}.header-menu-icon:hover{background:#ffffff26}.notifications-list{flex:1;overflow-y:auto}.notifications-items{display:flex;flex-direction:column;gap:.625rem;padding:.75rem}.notification-item{display:flex;gap:.75rem;padding:.875rem 1rem .875rem calc(1rem + 4px);background:var(--surface-card);border:1px solid var(--surface-border);border-radius:8px;transition:background-color .2s ease,border-color .2s ease}.notification-item:hover{background:var(--surface-hover)}.notification-item:hover .unread-dot{display:none}.notification-item:hover .mark-read-action{display:flex}.notification-item.navigable{cursor:pointer}.notification-item.unread-item{border-left-width:5px;border-left-color:var(--primary-color);padding-left:1rem}.notification-item.unread-item .item-title{font-weight:600;color:var(--text-color)}.notification-icon{width:2.25rem;height:2.25rem;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}.notification-icon fa-icon{font-size:.9rem}.notification-icon.todo{background:var(--purple-100);color:var(--purple-600)}.notification-icon.batch{background:var(--orange-100);color:var(--orange-600)}.notification-icon.sms{background:var(--green-100);color:var(--green-600)}.notification-icon.email-unread{background:var(--blue-100);color:var(--blue-600)}.notification-icon.email-read{background:var(--surface-200);color:var(--text-color-secondary)}.item-body{flex:1;min-width:0}.item-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.3rem;min-height:1.5rem}.item-title{flex:1;min-width:0;margin:0;font-size:.875rem;font-weight:500;color:var(--text-color-secondary);line-height:1.4;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.item-time{font-size:.72rem;color:var(--text-color-secondary);white-space:nowrap}.item-actions{display:inline-flex;align-items:center;justify-content:center;width:1.5rem;flex-shrink:0}.unread-dot{color:var(--primary-color);font-size:.5rem;cursor:pointer;opacity:.85}.unread-dot:hover{opacity:1}.mark-read-action{display:none;width:1.5rem;height:1.5rem;border-radius:6px;border:1px solid var(--surface-border);background:var(--surface-card);color:var(--text-color-secondary);align-items:center;justify-content:center;cursor:pointer;padding:0}.mark-read-action:hover{color:var(--primary-color);border-color:var(--primary-color)}.mark-read-action i{font-size:.7rem}.item-preview{margin:0;font-size:.8rem;color:var(--text-color-secondary);line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;word-break:break-word;white-space:normal}.nav-chip{display:inline-flex;align-items:center;gap:.3rem;margin-top:.4rem;font-size:.75rem;font-weight:600;color:var(--primary-color)}.nav-chip i{font-size:.65rem}.notification-item.navigable:hover .nav-chip{text-decoration:underline}.show-more{display:flex;justify-content:center;padding:.25rem 0 .5rem}.empty-state{display:flex;align-items:center;justify-content:center;flex:1;padding:2rem}.empty-state .empty-content{text-align:center}.empty-state .empty-content .empty-icon{font-size:4rem;color:var(--text-color-secondary);opacity:.3;margin-bottom:1rem}.empty-state .empty-content .empty-title{font-size:1.25rem;font-weight:600;color:var(--text-color);margin-bottom:.5rem}.empty-state .empty-content .empty-message{color:var(--text-color-secondary);margin:0}@media (max-width: 768px){.layout-notifications-sidebar ::ng-deep .p-sidebar{width:100%!important}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: SidebarModule }, { kind: "component", type: i6$1.Sidebar, selector: "p-sidebar", inputs: ["appendTo", "blockScroll", "style", "styleClass", "ariaCloseLabel", "autoZIndex", "baseZIndex", "modal", "dismissible", "showCloseIcon", "closeOnEscape", "transitionOptions", "visible", "position", "fullScreen"], outputs: ["onShow", "onHide", "visibleChange"] }, { kind: "directive", type: i3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "ngmodule", type: MenuModule }, { kind: "component", type: i10$1.Menu, selector: "p-menu", inputs: ["model", "popup", "style", "styleClass", "appendTo", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "ariaLabel", "ariaLabelledBy", "id", "tabindex"], outputs: ["onShow", "onHide", "onBlur", "onFocus"] }, { kind: "directive", type: i9.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "component", type: ButtonComponent, selector: "aril-button:not([click])", inputs: ["label", "loading", "disabled", "raised", "rounded", "text", "outlined", "badge", "size", "icon", "iconPos", "color"], outputs: ["clickEvent"] }, { kind: "component", type: SwitchComponent, selector: "aril-switch[ngModel], aril-switch[formControl], aril-switch[formControlName]", inputs: ["tabindex"] }, { kind: "ngmodule", type: TranslocoModule }, { kind: "directive", type: i5.TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoLang", "translocoLoadingTpl"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "ngmodule", type: FontAwesomeModule }, { kind: "component", type: i10.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }, { kind: "pipe", type: SafePipe, name: "safe" }] }); }
|
|
3876
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NotificationsSidebarComponent, deps: [{ token: LayoutService }, { token: NotificationsService }, { token: i5.TranslocoService }, { token: i1$3.Router }, { token: i1$1.KeycloakService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3877
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: NotificationsSidebarComponent, isStandalone: true, selector: "app-notifications-sidebar", ngImport: i0, template: "<p-sidebar\n\t[(visible)]=\"visible\"\n\tposition=\"right\"\n\t[transitionOptions]=\"'.3s cubic-bezier(0, 0, 0.2, 1)'\"\n\tstyleClass=\"layout-notifications-sidebar w-full sm:w-30rem\"\n\t(onShow)=\"onSidebarShow()\"\n\t*transloco=\"let t; read: 'notifications'\">\n\t<ng-template pTemplate=\"header\">\n\t\t<div class=\"flex align-items-center justify-content-between w-full\">\n\t\t\t<div class=\"flex align-items-center gap-2\">\n\t\t\t\t<i class=\"pi pi-bell text-xl\"></i>\n\t\t\t\t<span class=\"font-bold text-lg\">{{ t('title') }}</span>\n\t\t\t\t@if (unreadCount > 0) {\n\t\t\t\t\t<span class=\"unread-count-chip\">{{ unreadCount }}</span>\n\t\t\t\t}\n\t\t\t</div>\n\t\t\t<div class=\"flex align-items-center gap-2 header-actions\">\n\t\t\t\t<span class=\"only-unread-label\">{{ t('onlyUnread') }}</span>\n\t\t\t\t<aril-switch [ngModel]=\"onlyUnread()\" (ngModelChange)=\"onOnlyUnreadChange($event)\"></aril-switch>\n\t\t\t\t<i class=\"pi pi-ellipsis-v header-menu-icon\" (click)=\"toggleMenu($event, headerMenu)\"></i>\n\t\t\t\t<p-menu #headerMenu [popup]=\"true\" [model]=\"menuItems\" appendTo=\"body\"></p-menu>\n\t\t\t</div>\n\t\t</div>\n\t</ng-template>\n\n\t<div class=\"notifications-content\">\n\t\t@if (notifications().length > 0) {\n\t\t\t<div class=\"notifications-list\">\n\t\t\t\t<div class=\"notifications-items\">\n\t\t\t\t\t@for (notification of notifications(); track notification.id) {\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass=\"notification-item\"\n\t\t\t\t\t\t\t[class.unread-item]=\"!notification.read\"\n\t\t\t\t\t\t\t[class.navigable]=\"isNavigable(notification)\"\n\t\t\t\t\t\t\t(click)=\"openNotification(notification)\">\n\t\t\t\t\t\t\t<div class=\"notification-icon\" [ngClass]=\"getNotificationIconClass(notification)\">\n\t\t\t\t\t\t\t\t<fa-icon [icon]=\"getNotificationIcon(notification)\" />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"item-body\">\n\t\t\t\t\t\t\t\t<div class=\"item-header\">\n\t\t\t\t\t\t\t\t\t<p class=\"item-title\">{{ getNotificationTitle(notification) }}</p>\n\t\t\t\t\t\t\t\t\t<span class=\"item-time\">{{ formatNotificationDate(notification.sendingDate) }}</span>\n\t\t\t\t\t\t\t\t\t@if (!notification.read) {\n\t\t\t\t\t\t\t\t\t\t<span class=\"item-actions\">\n\t\t\t\t\t\t\t\t\t\t\t<fa-icon\n\t\t\t\t\t\t\t\t\t\t\t\t[icon]=\"solidIcons.faCircle\"\n\t\t\t\t\t\t\t\t\t\t\t\tclass=\"unread-dot\"\n\t\t\t\t\t\t\t\t\t\t\t\t[pTooltip]=\"t('markAsRead')\"\n\t\t\t\t\t\t\t\t\t\t\t\ttooltipPosition=\"left\"\n\t\t\t\t\t\t\t\t\t\t\t\t(click)=\"markNotificationAsRead(notification); $event.stopPropagation()\">\n\t\t\t\t\t\t\t\t\t\t\t</fa-icon>\n\t\t\t\t\t\t\t\t\t\t\t<button\n\t\t\t\t\t\t\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\t\t\t\t\t\t\tclass=\"mark-read-action\"\n\t\t\t\t\t\t\t\t\t\t\t\t[pTooltip]=\"t('markAsRead')\"\n\t\t\t\t\t\t\t\t\t\t\t\ttooltipPosition=\"left\"\n\t\t\t\t\t\t\t\t\t\t\t\t(click)=\"markNotificationAsRead(notification); $event.stopPropagation()\">\n\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"pi pi-check\"></i>\n\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t@if (getNotificationContent(notification)) {\n\t\t\t\t\t\t\t\t\t@if (notification.type === ActivityTypesEnum.EMAIL) {\n\t\t\t\t\t\t\t\t\t\t<div [innerHTML]=\"notification.content | safe: 'html'\" class=\"item-preview html-preview\"></div>\n\t\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t\t<p class=\"item-preview\">{{ getNotificationContent(notification) }}</p>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t@if (notification.detailNotificationType === DetailNotificationTypeEnum.TODO_ITEM) {\n\t\t\t\t\t\t\t\t\t<span class=\"nav-chip\">{{ t('goToTaskDetail') }} <i class=\"pi pi-arrow-right\"></i></span>\n\t\t\t\t\t\t\t\t} @else if (notification.detailNotificationType === DetailNotificationTypeEnum.BATCH_JOB) {\n\t\t\t\t\t\t\t\t\t<span class=\"nav-chip\">{{ t('goToBulkOperations') }} <i class=\"pi pi-arrow-right\"></i></span>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t\t@if (remainingCount() > 0) {\n\t\t\t\t\t\t<div class=\"show-more\">\n\t\t\t\t\t\t\t<aril-button\n\t\t\t\t\t\t\t\t[label]=\"t('showMore', { count: remainingCount() })\"\n\t\t\t\t\t\t\t\tcolor=\"primary\"\n\t\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t\t[outlined]=\"true\"\n\t\t\t\t\t\t\t\t[loading]=\"loading\"\n\t\t\t\t\t\t\t\t(clickEvent)=\"showMore()\">\n\t\t\t\t\t\t\t</aril-button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t} @else if (!loading) {\n\t\t\t<div class=\"empty-state\">\n\t\t\t\t<div class=\"empty-content\">\n\t\t\t\t\t<i class=\"pi pi-bell empty-icon\"></i>\n\t\t\t\t\t<h3 class=\"empty-title\">{{ t('noNotifications') }}</h3>\n\t\t\t\t\t<p class=\"empty-message\">{{ t('noNotificationsDescription') }}</p>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t}\n\t</div>\n</p-sidebar>\n", styles: [":host ::ng-deep .layout-notifications-sidebar .p-sidebar-content{padding:0;background:var(--surface-ground)}:host ::ng-deep .layout-notifications-sidebar .p-sidebar-header{background:var(--primary-color);color:var(--primary-color-text);padding:1rem 1.5rem}:host ::ng-deep .layout-notifications-sidebar .p-sidebar-header span{font-size:1.1rem;font-weight:600}:host ::ng-deep .layout-notifications-sidebar .p-sidebar-header .p-sidebar-close{color:var(--primary-color-text)}:host ::ng-deep .layout-notifications-sidebar .p-sidebar-header .p-sidebar-close:enabled:hover{background:#ffffff26;color:var(--primary-color-text)}:host ::ng-deep .layout-notifications-sidebar .header-actions .p-inputswitch{transform:scale(.8)}:host ::ng-deep .layout-notifications-sidebar .header-actions .p-inputswitch .p-inputswitch-slider{background:#ffffff4d}:host ::ng-deep .layout-notifications-sidebar .header-actions .p-inputswitch.p-inputswitch-checked .p-inputswitch-slider{background:var(--green-500)}:host ::ng-deep .layout-notifications-sidebar .header-actions .p-inputswitch.p-inputswitch-checked:not(.p-disabled):hover .p-inputswitch-slider{background:var(--green-600)}:host ::ng-deep .layout-notifications-sidebar .header-actions .only-unread-label{font-size:.78rem;font-weight:500}:host ::ng-deep .item-preview.html-preview *{font-family:inherit!important;font-size:inherit!important;font-weight:inherit!important;font-style:inherit!important;color:inherit!important;line-height:inherit!important;letter-spacing:inherit!important;text-align:left!important;margin:0!important;padding:0!important;border:none!important;background:transparent!important;display:inline!important}:host ::ng-deep .item-preview.html-preview p:after,:host ::ng-deep .item-preview.html-preview div:after,:host ::ng-deep .item-preview.html-preview li:after{content:\" \"}:host ::ng-deep .item-preview.html-preview img,:host ::ng-deep .item-preview.html-preview table,:host ::ng-deep .item-preview.html-preview hr,:host ::ng-deep .item-preview.html-preview br{display:none!important}.notifications-content{display:flex;flex-direction:column;height:100%;background:var(--surface-ground)}.unread-count-chip{background:#ffffff40;border-radius:999px;font-size:.72rem!important;font-weight:600!important;padding:.1rem .55rem}.header-menu-icon{cursor:pointer;font-size:1.1rem;padding:.25rem;color:var(--primary-color-text);border-radius:6px;transition:background-color .15s ease}.header-menu-icon:hover{background:#ffffff26}.notifications-list{flex:1;overflow-y:auto}.notifications-items{display:flex;flex-direction:column;gap:.625rem;padding:.75rem}.notification-item{display:flex;gap:.75rem;padding:.875rem 1rem .875rem calc(1rem + 4px);background:var(--surface-card);border:1px solid var(--surface-border);border-radius:8px;transition:background-color .2s ease,border-color .2s ease}.notification-item:hover{background:var(--surface-hover)}.notification-item:hover .unread-dot{display:none}.notification-item:hover .mark-read-action{display:flex}.notification-item.navigable{cursor:pointer}.notification-item.unread-item{border-left-width:5px;border-left-color:var(--primary-color);padding-left:1rem}.notification-item.unread-item .item-title{font-weight:600;color:var(--text-color)}.notification-icon{width:2.25rem;height:2.25rem;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}.notification-icon fa-icon{font-size:.9rem}.notification-icon.todo{background:var(--purple-100);color:var(--purple-600)}.notification-icon.batch{background:var(--orange-100);color:var(--orange-600)}.notification-icon.sms{background:var(--green-100);color:var(--green-600)}.notification-icon.email-unread{background:var(--blue-100);color:var(--blue-600)}.notification-icon.email-read{background:var(--surface-200);color:var(--text-color-secondary)}.item-body{flex:1;min-width:0}.item-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.3rem;min-height:1.5rem}.item-title{flex:1;min-width:0;margin:0;font-size:.875rem;font-weight:500;color:var(--text-color-secondary);line-height:1.4;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.item-time{font-size:.72rem;color:var(--text-color-secondary);white-space:nowrap}.item-actions{display:inline-flex;align-items:center;justify-content:center;width:1.5rem;flex-shrink:0}.unread-dot{color:var(--primary-color);font-size:.5rem;cursor:pointer;opacity:.85}.unread-dot:hover{opacity:1}.mark-read-action{display:none;width:1.5rem;height:1.5rem;border-radius:6px;border:1px solid var(--surface-border);background:var(--surface-card);color:var(--text-color-secondary);align-items:center;justify-content:center;cursor:pointer;padding:0}.mark-read-action:hover{color:var(--primary-color);border-color:var(--primary-color)}.mark-read-action i{font-size:.7rem}.item-preview{margin:0;font-size:.8rem;color:var(--text-color-secondary);line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;word-break:break-word;white-space:normal}.nav-chip{display:inline-flex;align-items:center;gap:.3rem;margin-top:.4rem;font-size:.75rem;font-weight:600;color:var(--primary-color)}.nav-chip i{font-size:.65rem}.notification-item.navigable:hover .nav-chip{text-decoration:underline}.show-more{display:flex;justify-content:center;padding:.25rem 0 .5rem}.empty-state{display:flex;align-items:center;justify-content:center;flex:1;padding:2rem}.empty-state .empty-content{text-align:center}.empty-state .empty-content .empty-icon{font-size:4rem;color:var(--text-color-secondary);opacity:.3;margin-bottom:1rem}.empty-state .empty-content .empty-title{font-size:1.25rem;font-weight:600;color:var(--text-color);margin-bottom:.5rem}.empty-state .empty-content .empty-message{color:var(--text-color-secondary);margin:0}@media (max-width: 768px){.layout-notifications-sidebar ::ng-deep .p-sidebar{width:100%!important}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: SidebarModule }, { kind: "component", type: i6$1.Sidebar, selector: "p-sidebar", inputs: ["appendTo", "blockScroll", "style", "styleClass", "ariaCloseLabel", "autoZIndex", "baseZIndex", "modal", "dismissible", "showCloseIcon", "closeOnEscape", "transitionOptions", "visible", "position", "fullScreen"], outputs: ["onShow", "onHide", "visibleChange"] }, { kind: "directive", type: i3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "ngmodule", type: MenuModule }, { kind: "component", type: i10$2.Menu, selector: "p-menu", inputs: ["model", "popup", "style", "styleClass", "appendTo", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "ariaLabel", "ariaLabelledBy", "id", "tabindex"], outputs: ["onShow", "onHide", "onBlur", "onFocus"] }, { kind: "directive", type: i9.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "component", type: ButtonComponent, selector: "aril-button:not([click])", inputs: ["label", "loading", "disabled", "raised", "rounded", "text", "outlined", "badge", "size", "icon", "iconPos", "color"], outputs: ["clickEvent"] }, { kind: "component", type: SwitchComponent, selector: "aril-switch[ngModel], aril-switch[formControl], aril-switch[formControlName]", inputs: ["tabindex"] }, { kind: "ngmodule", type: TranslocoModule }, { kind: "directive", type: i5.TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoLang", "translocoLoadingTpl"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "ngmodule", type: FontAwesomeModule }, { kind: "component", type: i10.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }, { kind: "pipe", type: SafePipe, name: "safe" }] }); }
|
|
2927
3878
|
}
|
|
2928
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
3879
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NotificationsSidebarComponent, decorators: [{
|
|
2929
3880
|
type: Component,
|
|
2930
3881
|
args: [{ standalone: true, selector: 'app-notifications-sidebar', imports: [
|
|
2931
3882
|
CommonModule,
|
|
@@ -2938,8 +3889,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
2938
3889
|
TooltipModule,
|
|
2939
3890
|
FontAwesomeModule,
|
|
2940
3891
|
SafePipe
|
|
2941
|
-
], template: "<p-sidebar\r\n\t[(visible)]=\"visible\"\r\n\tposition=\"right\"\r\n\t[transitionOptions]=\"'.3s cubic-bezier(0, 0, 0.2, 1)'\"\r\n\tstyleClass=\"layout-notifications-sidebar w-full sm:w-30rem\"\r\n\t(onShow)=\"onSidebarShow()\"\r\n\t*transloco=\"let t; read: 'notifications'\">\r\n\t<ng-template pTemplate=\"header\">\r\n\t\t<div class=\"flex align-items-center justify-content-between w-full\">\r\n\t\t\t<div class=\"flex align-items-center gap-2\">\r\n\t\t\t\t<i class=\"pi pi-bell text-xl\"></i>\r\n\t\t\t\t<span class=\"font-bold text-lg\">{{ t('title') }}</span>\r\n\t\t\t\t@if (unreadCount > 0) {\r\n\t\t\t\t\t<span class=\"unread-count-chip\">{{ unreadCount }}</span>\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t\t<div class=\"flex align-items-center gap-2 header-actions\">\r\n\t\t\t\t<span class=\"only-unread-label\">{{ t('onlyUnread') }}</span>\r\n\t\t\t\t<aril-switch [ngModel]=\"onlyUnread()\" (ngModelChange)=\"onOnlyUnreadChange($event)\"></aril-switch>\r\n\t\t\t\t<i class=\"pi pi-ellipsis-v header-menu-icon\" (click)=\"toggleMenu($event, headerMenu)\"></i>\r\n\t\t\t\t<p-menu #headerMenu [popup]=\"true\" [model]=\"menuItems\" appendTo=\"body\"></p-menu>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</ng-template>\r\n\r\n\t<div class=\"notifications-content\">\r\n\t\t@if (notifications().length > 0) {\r\n\t\t\t<div class=\"notifications-list\">\r\n\t\t\t\t<div class=\"notifications-items\">\r\n\t\t\t\t\t@for (notification of notifications(); track notification.id) {\r\n\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\tclass=\"notification-item\"\r\n\t\t\t\t\t\t\t[class.unread-item]=\"!notification.read\"\r\n\t\t\t\t\t\t\t[class.navigable]=\"isNavigable(notification)\"\r\n\t\t\t\t\t\t\t(click)=\"openNotification(notification)\">\r\n\t\t\t\t\t\t\t<div class=\"notification-icon\" [ngClass]=\"getNotificationIconClass(notification)\">\r\n\t\t\t\t\t\t\t\t<fa-icon [icon]=\"getNotificationIcon(notification)\" />\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t<div class=\"item-body\">\r\n\t\t\t\t\t\t\t\t<div class=\"item-header\">\r\n\t\t\t\t\t\t\t\t\t<p class=\"item-title\">{{ getNotificationTitle(notification) }}</p>\r\n\t\t\t\t\t\t\t\t\t<span class=\"item-time\">{{ formatNotificationDate(notification.sendingDate) }}</span>\r\n\t\t\t\t\t\t\t\t\t@if (!notification.read) {\r\n\t\t\t\t\t\t\t\t\t\t<span class=\"item-actions\">\r\n\t\t\t\t\t\t\t\t\t\t\t<fa-icon\r\n\t\t\t\t\t\t\t\t\t\t\t\t[icon]=\"solidIcons.faCircle\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tclass=\"unread-dot\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t[pTooltip]=\"t('markAsRead')\"\r\n\t\t\t\t\t\t\t\t\t\t\t\ttooltipPosition=\"left\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t(click)=\"markNotificationAsRead(notification); $event.stopPropagation()\">\r\n\t\t\t\t\t\t\t\t\t\t\t</fa-icon>\r\n\t\t\t\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tclass=\"mark-read-action\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t[pTooltip]=\"t('markAsRead')\"\r\n\t\t\t\t\t\t\t\t\t\t\t\ttooltipPosition=\"left\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t(click)=\"markNotificationAsRead(notification); $event.stopPropagation()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"pi pi-check\"></i>\r\n\t\t\t\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t@if (getNotificationContent(notification)) {\r\n\t\t\t\t\t\t\t\t\t@if (notification.type === ActivityTypesEnum.EMAIL) {\r\n\t\t\t\t\t\t\t\t\t\t<div [innerHTML]=\"notification.content | safe: 'html'\" class=\"item-preview html-preview\"></div>\r\n\t\t\t\t\t\t\t\t\t} @else {\r\n\t\t\t\t\t\t\t\t\t\t<p class=\"item-preview\">{{ getNotificationContent(notification) }}</p>\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t@if (notification.detailNotificationType === DetailNotificationTypeEnum.TODO_ITEM) {\r\n\t\t\t\t\t\t\t\t\t<span class=\"nav-chip\">{{ t('goToTaskDetail') }} <i class=\"pi pi-arrow-right\"></i></span>\r\n\t\t\t\t\t\t\t\t} @else if (notification.detailNotificationType === DetailNotificationTypeEnum.BATCH_JOB) {\r\n\t\t\t\t\t\t\t\t\t<span class=\"nav-chip\">{{ t('goToBulkOperations') }} <i class=\"pi pi-arrow-right\"></i></span>\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t}\r\n\t\t\t\t\t@if (remainingCount() > 0) {\r\n\t\t\t\t\t\t<div class=\"show-more\">\r\n\t\t\t\t\t\t\t<aril-button\r\n\t\t\t\t\t\t\t\t[label]=\"t('showMore', { count: remainingCount() })\"\r\n\t\t\t\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\t\t\t\tsize=\"sm\"\r\n\t\t\t\t\t\t\t\t[outlined]=\"true\"\r\n\t\t\t\t\t\t\t\t[loading]=\"loading\"\r\n\t\t\t\t\t\t\t\t(clickEvent)=\"showMore()\">\r\n\t\t\t\t\t\t\t</aril-button>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t}\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t} @else if (!loading) {\r\n\t\t\t<div class=\"empty-state\">\r\n\t\t\t\t<div class=\"empty-content\">\r\n\t\t\t\t\t<i class=\"pi pi-bell empty-icon\"></i>\r\n\t\t\t\t\t<h3 class=\"empty-title\">{{ t('noNotifications') }}</h3>\r\n\t\t\t\t\t<p class=\"empty-message\">{{ t('noNotificationsDescription') }}</p>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t}\r\n\t</div>\r\n</p-sidebar>\r\n", styles: [":host ::ng-deep .layout-notifications-sidebar .p-sidebar-content{padding:0;background:var(--surface-ground)}:host ::ng-deep .layout-notifications-sidebar .p-sidebar-header{background:var(--primary-color);color:var(--primary-color-text);padding:1rem 1.5rem}:host ::ng-deep .layout-notifications-sidebar .p-sidebar-header span{font-size:1.1rem;font-weight:600}:host ::ng-deep .layout-notifications-sidebar .p-sidebar-header .p-sidebar-close{color:var(--primary-color-text)}:host ::ng-deep .layout-notifications-sidebar .p-sidebar-header .p-sidebar-close:enabled:hover{background:#ffffff26;color:var(--primary-color-text)}:host ::ng-deep .layout-notifications-sidebar .header-actions .p-inputswitch{transform:scale(.8)}:host ::ng-deep .layout-notifications-sidebar .header-actions .p-inputswitch .p-inputswitch-slider{background:#ffffff4d}:host ::ng-deep .layout-notifications-sidebar .header-actions .p-inputswitch.p-inputswitch-checked .p-inputswitch-slider{background:var(--green-500)}:host ::ng-deep .layout-notifications-sidebar .header-actions .p-inputswitch.p-inputswitch-checked:not(.p-disabled):hover .p-inputswitch-slider{background:var(--green-600)}:host ::ng-deep .layout-notifications-sidebar .header-actions .only-unread-label{font-size:.78rem;font-weight:500}:host ::ng-deep .item-preview.html-preview *{font-family:inherit!important;font-size:inherit!important;font-weight:inherit!important;font-style:inherit!important;color:inherit!important;line-height:inherit!important;letter-spacing:inherit!important;text-align:left!important;margin:0!important;padding:0!important;border:none!important;background:transparent!important;display:inline!important}:host ::ng-deep .item-preview.html-preview p:after,:host ::ng-deep .item-preview.html-preview div:after,:host ::ng-deep .item-preview.html-preview li:after{content:\" \"}:host ::ng-deep .item-preview.html-preview img,:host ::ng-deep .item-preview.html-preview table,:host ::ng-deep .item-preview.html-preview hr,:host ::ng-deep .item-preview.html-preview br{display:none!important}.notifications-content{display:flex;flex-direction:column;height:100%;background:var(--surface-ground)}.unread-count-chip{background:#ffffff40;border-radius:999px;font-size:.72rem!important;font-weight:600!important;padding:.1rem .55rem}.header-menu-icon{cursor:pointer;font-size:1.1rem;padding:.25rem;color:var(--primary-color-text);border-radius:6px;transition:background-color .15s ease}.header-menu-icon:hover{background:#ffffff26}.notifications-list{flex:1;overflow-y:auto}.notifications-items{display:flex;flex-direction:column;gap:.625rem;padding:.75rem}.notification-item{display:flex;gap:.75rem;padding:.875rem 1rem .875rem calc(1rem + 4px);background:var(--surface-card);border:1px solid var(--surface-border);border-radius:8px;transition:background-color .2s ease,border-color .2s ease}.notification-item:hover{background:var(--surface-hover)}.notification-item:hover .unread-dot{display:none}.notification-item:hover .mark-read-action{display:flex}.notification-item.navigable{cursor:pointer}.notification-item.unread-item{border-left-width:5px;border-left-color:var(--primary-color);padding-left:1rem}.notification-item.unread-item .item-title{font-weight:600;color:var(--text-color)}.notification-icon{width:2.25rem;height:2.25rem;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}.notification-icon fa-icon{font-size:.9rem}.notification-icon.todo{background:var(--purple-100);color:var(--purple-600)}.notification-icon.batch{background:var(--orange-100);color:var(--orange-600)}.notification-icon.sms{background:var(--green-100);color:var(--green-600)}.notification-icon.email-unread{background:var(--blue-100);color:var(--blue-600)}.notification-icon.email-read{background:var(--surface-200);color:var(--text-color-secondary)}.item-body{flex:1;min-width:0}.item-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.3rem;min-height:1.5rem}.item-title{flex:1;min-width:0;margin:0;font-size:.875rem;font-weight:500;color:var(--text-color-secondary);line-height:1.4;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.item-time{font-size:.72rem;color:var(--text-color-secondary);white-space:nowrap}.item-actions{display:inline-flex;align-items:center;justify-content:center;width:1.5rem;flex-shrink:0}.unread-dot{color:var(--primary-color);font-size:.5rem;cursor:pointer;opacity:.85}.unread-dot:hover{opacity:1}.mark-read-action{display:none;width:1.5rem;height:1.5rem;border-radius:6px;border:1px solid var(--surface-border);background:var(--surface-card);color:var(--text-color-secondary);align-items:center;justify-content:center;cursor:pointer;padding:0}.mark-read-action:hover{color:var(--primary-color);border-color:var(--primary-color)}.mark-read-action i{font-size:.7rem}.item-preview{margin:0;font-size:.8rem;color:var(--text-color-secondary);line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;word-break:break-word;white-space:normal}.nav-chip{display:inline-flex;align-items:center;gap:.3rem;margin-top:.4rem;font-size:.75rem;font-weight:600;color:var(--primary-color)}.nav-chip i{font-size:.65rem}.notification-item.navigable:hover .nav-chip{text-decoration:underline}.show-more{display:flex;justify-content:center;padding:.25rem 0 .5rem}.empty-state{display:flex;align-items:center;justify-content:center;flex:1;padding:2rem}.empty-state .empty-content{text-align:center}.empty-state .empty-content .empty-icon{font-size:4rem;color:var(--text-color-secondary);opacity:.3;margin-bottom:1rem}.empty-state .empty-content .empty-title{font-size:1.25rem;font-weight:600;color:var(--text-color);margin-bottom:.5rem}.empty-state .empty-content .empty-message{color:var(--text-color-secondary);margin:0}@media (max-width: 768px){.layout-notifications-sidebar ::ng-deep .p-sidebar{width:100%!important}}\n"] }]
|
|
2942
|
-
}], ctorParameters: () => [{ type: LayoutService }, { type: NotificationsService }, { type: i5.TranslocoService }, { type: i1$
|
|
3892
|
+
], template: "<p-sidebar\n\t[(visible)]=\"visible\"\n\tposition=\"right\"\n\t[transitionOptions]=\"'.3s cubic-bezier(0, 0, 0.2, 1)'\"\n\tstyleClass=\"layout-notifications-sidebar w-full sm:w-30rem\"\n\t(onShow)=\"onSidebarShow()\"\n\t*transloco=\"let t; read: 'notifications'\">\n\t<ng-template pTemplate=\"header\">\n\t\t<div class=\"flex align-items-center justify-content-between w-full\">\n\t\t\t<div class=\"flex align-items-center gap-2\">\n\t\t\t\t<i class=\"pi pi-bell text-xl\"></i>\n\t\t\t\t<span class=\"font-bold text-lg\">{{ t('title') }}</span>\n\t\t\t\t@if (unreadCount > 0) {\n\t\t\t\t\t<span class=\"unread-count-chip\">{{ unreadCount }}</span>\n\t\t\t\t}\n\t\t\t</div>\n\t\t\t<div class=\"flex align-items-center gap-2 header-actions\">\n\t\t\t\t<span class=\"only-unread-label\">{{ t('onlyUnread') }}</span>\n\t\t\t\t<aril-switch [ngModel]=\"onlyUnread()\" (ngModelChange)=\"onOnlyUnreadChange($event)\"></aril-switch>\n\t\t\t\t<i class=\"pi pi-ellipsis-v header-menu-icon\" (click)=\"toggleMenu($event, headerMenu)\"></i>\n\t\t\t\t<p-menu #headerMenu [popup]=\"true\" [model]=\"menuItems\" appendTo=\"body\"></p-menu>\n\t\t\t</div>\n\t\t</div>\n\t</ng-template>\n\n\t<div class=\"notifications-content\">\n\t\t@if (notifications().length > 0) {\n\t\t\t<div class=\"notifications-list\">\n\t\t\t\t<div class=\"notifications-items\">\n\t\t\t\t\t@for (notification of notifications(); track notification.id) {\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass=\"notification-item\"\n\t\t\t\t\t\t\t[class.unread-item]=\"!notification.read\"\n\t\t\t\t\t\t\t[class.navigable]=\"isNavigable(notification)\"\n\t\t\t\t\t\t\t(click)=\"openNotification(notification)\">\n\t\t\t\t\t\t\t<div class=\"notification-icon\" [ngClass]=\"getNotificationIconClass(notification)\">\n\t\t\t\t\t\t\t\t<fa-icon [icon]=\"getNotificationIcon(notification)\" />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"item-body\">\n\t\t\t\t\t\t\t\t<div class=\"item-header\">\n\t\t\t\t\t\t\t\t\t<p class=\"item-title\">{{ getNotificationTitle(notification) }}</p>\n\t\t\t\t\t\t\t\t\t<span class=\"item-time\">{{ formatNotificationDate(notification.sendingDate) }}</span>\n\t\t\t\t\t\t\t\t\t@if (!notification.read) {\n\t\t\t\t\t\t\t\t\t\t<span class=\"item-actions\">\n\t\t\t\t\t\t\t\t\t\t\t<fa-icon\n\t\t\t\t\t\t\t\t\t\t\t\t[icon]=\"solidIcons.faCircle\"\n\t\t\t\t\t\t\t\t\t\t\t\tclass=\"unread-dot\"\n\t\t\t\t\t\t\t\t\t\t\t\t[pTooltip]=\"t('markAsRead')\"\n\t\t\t\t\t\t\t\t\t\t\t\ttooltipPosition=\"left\"\n\t\t\t\t\t\t\t\t\t\t\t\t(click)=\"markNotificationAsRead(notification); $event.stopPropagation()\">\n\t\t\t\t\t\t\t\t\t\t\t</fa-icon>\n\t\t\t\t\t\t\t\t\t\t\t<button\n\t\t\t\t\t\t\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\t\t\t\t\t\t\tclass=\"mark-read-action\"\n\t\t\t\t\t\t\t\t\t\t\t\t[pTooltip]=\"t('markAsRead')\"\n\t\t\t\t\t\t\t\t\t\t\t\ttooltipPosition=\"left\"\n\t\t\t\t\t\t\t\t\t\t\t\t(click)=\"markNotificationAsRead(notification); $event.stopPropagation()\">\n\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"pi pi-check\"></i>\n\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t@if (getNotificationContent(notification)) {\n\t\t\t\t\t\t\t\t\t@if (notification.type === ActivityTypesEnum.EMAIL) {\n\t\t\t\t\t\t\t\t\t\t<div [innerHTML]=\"notification.content | safe: 'html'\" class=\"item-preview html-preview\"></div>\n\t\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t\t<p class=\"item-preview\">{{ getNotificationContent(notification) }}</p>\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t@if (notification.detailNotificationType === DetailNotificationTypeEnum.TODO_ITEM) {\n\t\t\t\t\t\t\t\t\t<span class=\"nav-chip\">{{ t('goToTaskDetail') }} <i class=\"pi pi-arrow-right\"></i></span>\n\t\t\t\t\t\t\t\t} @else if (notification.detailNotificationType === DetailNotificationTypeEnum.BATCH_JOB) {\n\t\t\t\t\t\t\t\t\t<span class=\"nav-chip\">{{ t('goToBulkOperations') }} <i class=\"pi pi-arrow-right\"></i></span>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t\t@if (remainingCount() > 0) {\n\t\t\t\t\t\t<div class=\"show-more\">\n\t\t\t\t\t\t\t<aril-button\n\t\t\t\t\t\t\t\t[label]=\"t('showMore', { count: remainingCount() })\"\n\t\t\t\t\t\t\t\tcolor=\"primary\"\n\t\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t\t[outlined]=\"true\"\n\t\t\t\t\t\t\t\t[loading]=\"loading\"\n\t\t\t\t\t\t\t\t(clickEvent)=\"showMore()\">\n\t\t\t\t\t\t\t</aril-button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t} @else if (!loading) {\n\t\t\t<div class=\"empty-state\">\n\t\t\t\t<div class=\"empty-content\">\n\t\t\t\t\t<i class=\"pi pi-bell empty-icon\"></i>\n\t\t\t\t\t<h3 class=\"empty-title\">{{ t('noNotifications') }}</h3>\n\t\t\t\t\t<p class=\"empty-message\">{{ t('noNotificationsDescription') }}</p>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t}\n\t</div>\n</p-sidebar>\n", styles: [":host ::ng-deep .layout-notifications-sidebar .p-sidebar-content{padding:0;background:var(--surface-ground)}:host ::ng-deep .layout-notifications-sidebar .p-sidebar-header{background:var(--primary-color);color:var(--primary-color-text);padding:1rem 1.5rem}:host ::ng-deep .layout-notifications-sidebar .p-sidebar-header span{font-size:1.1rem;font-weight:600}:host ::ng-deep .layout-notifications-sidebar .p-sidebar-header .p-sidebar-close{color:var(--primary-color-text)}:host ::ng-deep .layout-notifications-sidebar .p-sidebar-header .p-sidebar-close:enabled:hover{background:#ffffff26;color:var(--primary-color-text)}:host ::ng-deep .layout-notifications-sidebar .header-actions .p-inputswitch{transform:scale(.8)}:host ::ng-deep .layout-notifications-sidebar .header-actions .p-inputswitch .p-inputswitch-slider{background:#ffffff4d}:host ::ng-deep .layout-notifications-sidebar .header-actions .p-inputswitch.p-inputswitch-checked .p-inputswitch-slider{background:var(--green-500)}:host ::ng-deep .layout-notifications-sidebar .header-actions .p-inputswitch.p-inputswitch-checked:not(.p-disabled):hover .p-inputswitch-slider{background:var(--green-600)}:host ::ng-deep .layout-notifications-sidebar .header-actions .only-unread-label{font-size:.78rem;font-weight:500}:host ::ng-deep .item-preview.html-preview *{font-family:inherit!important;font-size:inherit!important;font-weight:inherit!important;font-style:inherit!important;color:inherit!important;line-height:inherit!important;letter-spacing:inherit!important;text-align:left!important;margin:0!important;padding:0!important;border:none!important;background:transparent!important;display:inline!important}:host ::ng-deep .item-preview.html-preview p:after,:host ::ng-deep .item-preview.html-preview div:after,:host ::ng-deep .item-preview.html-preview li:after{content:\" \"}:host ::ng-deep .item-preview.html-preview img,:host ::ng-deep .item-preview.html-preview table,:host ::ng-deep .item-preview.html-preview hr,:host ::ng-deep .item-preview.html-preview br{display:none!important}.notifications-content{display:flex;flex-direction:column;height:100%;background:var(--surface-ground)}.unread-count-chip{background:#ffffff40;border-radius:999px;font-size:.72rem!important;font-weight:600!important;padding:.1rem .55rem}.header-menu-icon{cursor:pointer;font-size:1.1rem;padding:.25rem;color:var(--primary-color-text);border-radius:6px;transition:background-color .15s ease}.header-menu-icon:hover{background:#ffffff26}.notifications-list{flex:1;overflow-y:auto}.notifications-items{display:flex;flex-direction:column;gap:.625rem;padding:.75rem}.notification-item{display:flex;gap:.75rem;padding:.875rem 1rem .875rem calc(1rem + 4px);background:var(--surface-card);border:1px solid var(--surface-border);border-radius:8px;transition:background-color .2s ease,border-color .2s ease}.notification-item:hover{background:var(--surface-hover)}.notification-item:hover .unread-dot{display:none}.notification-item:hover .mark-read-action{display:flex}.notification-item.navigable{cursor:pointer}.notification-item.unread-item{border-left-width:5px;border-left-color:var(--primary-color);padding-left:1rem}.notification-item.unread-item .item-title{font-weight:600;color:var(--text-color)}.notification-icon{width:2.25rem;height:2.25rem;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}.notification-icon fa-icon{font-size:.9rem}.notification-icon.todo{background:var(--purple-100);color:var(--purple-600)}.notification-icon.batch{background:var(--orange-100);color:var(--orange-600)}.notification-icon.sms{background:var(--green-100);color:var(--green-600)}.notification-icon.email-unread{background:var(--blue-100);color:var(--blue-600)}.notification-icon.email-read{background:var(--surface-200);color:var(--text-color-secondary)}.item-body{flex:1;min-width:0}.item-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.3rem;min-height:1.5rem}.item-title{flex:1;min-width:0;margin:0;font-size:.875rem;font-weight:500;color:var(--text-color-secondary);line-height:1.4;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.item-time{font-size:.72rem;color:var(--text-color-secondary);white-space:nowrap}.item-actions{display:inline-flex;align-items:center;justify-content:center;width:1.5rem;flex-shrink:0}.unread-dot{color:var(--primary-color);font-size:.5rem;cursor:pointer;opacity:.85}.unread-dot:hover{opacity:1}.mark-read-action{display:none;width:1.5rem;height:1.5rem;border-radius:6px;border:1px solid var(--surface-border);background:var(--surface-card);color:var(--text-color-secondary);align-items:center;justify-content:center;cursor:pointer;padding:0}.mark-read-action:hover{color:var(--primary-color);border-color:var(--primary-color)}.mark-read-action i{font-size:.7rem}.item-preview{margin:0;font-size:.8rem;color:var(--text-color-secondary);line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;word-break:break-word;white-space:normal}.nav-chip{display:inline-flex;align-items:center;gap:.3rem;margin-top:.4rem;font-size:.75rem;font-weight:600;color:var(--primary-color)}.nav-chip i{font-size:.65rem}.notification-item.navigable:hover .nav-chip{text-decoration:underline}.show-more{display:flex;justify-content:center;padding:.25rem 0 .5rem}.empty-state{display:flex;align-items:center;justify-content:center;flex:1;padding:2rem}.empty-state .empty-content{text-align:center}.empty-state .empty-content .empty-icon{font-size:4rem;color:var(--text-color-secondary);opacity:.3;margin-bottom:1rem}.empty-state .empty-content .empty-title{font-size:1.25rem;font-weight:600;color:var(--text-color);margin-bottom:.5rem}.empty-state .empty-content .empty-message{color:var(--text-color-secondary);margin:0}@media (max-width: 768px){.layout-notifications-sidebar ::ng-deep .p-sidebar{width:100%!important}}\n"] }]
|
|
3893
|
+
}], ctorParameters: () => [{ type: LayoutService }, { type: NotificationsService }, { type: i5.TranslocoService }, { type: i1$3.Router }, { type: i1$1.KeycloakService }] });
|
|
2943
3894
|
|
|
2944
3895
|
class AppLayoutComponent {
|
|
2945
3896
|
constructor(menuService, layoutService, renderer, router) {
|
|
@@ -2947,6 +3898,8 @@ class AppLayoutComponent {
|
|
|
2947
3898
|
this.layoutService = layoutService;
|
|
2948
3899
|
this.renderer = renderer;
|
|
2949
3900
|
this.router = router;
|
|
3901
|
+
// Created with the layout so that every screen opening is recorded for the home page
|
|
3902
|
+
inject(ScreenVisitService);
|
|
2950
3903
|
this.overlayMenuOpenSubscription = this.layoutService.overlayOpen$.subscribe(() => {
|
|
2951
3904
|
if (!this.menuOutsideClickListener) {
|
|
2952
3905
|
this.menuOutsideClickListener = this.renderer.listen('document', 'click', (event) => {
|
|
@@ -2963,7 +3916,7 @@ class AppLayoutComponent {
|
|
|
2963
3916
|
this.blockBodyScroll();
|
|
2964
3917
|
}
|
|
2965
3918
|
});
|
|
2966
|
-
this.router.events.pipe(filter
|
|
3919
|
+
this.router.events.pipe(filter((event) => event instanceof NavigationEnd)).subscribe(() => {
|
|
2967
3920
|
if (!this.layoutService.mfeAppItemClicked())
|
|
2968
3921
|
this.hideMenu();
|
|
2969
3922
|
});
|
|
@@ -3039,10 +3992,10 @@ class AppLayoutComponent {
|
|
|
3039
3992
|
this.menuOutsideClickListener();
|
|
3040
3993
|
}
|
|
3041
3994
|
}
|
|
3042
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
3043
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.
|
|
3995
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AppLayoutComponent, deps: [{ token: AppMenuService }, { token: LayoutService }, { token: i0.Renderer2 }, { token: i1$3.Router }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3996
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: AppLayoutComponent, isStandalone: true, selector: "app-layout", viewQueries: [{ propertyName: "expandableMenuComponent", first: true, predicate: ExpandableMenuComponent, descendants: true }, { propertyName: "staticSidebarComponent", first: true, predicate: StaticSidebarComponent, descendants: true }, { propertyName: "appTopbar", first: true, predicate: AppTopbarComponent, descendants: true }], ngImport: i0, template: "<div class=\"layout-container\" [ngClass]=\"containerClass\">\n\t<app-environment-banner />\n\t@if (layoutService.shouldShowStaticSidebar()) {\n\t\t<app-static-sidebar />\n\t} @else if (layoutService.shouldShowExpandableMenu()) {\n\t\t<app-expandable-menu />\n\t}\n\t<div class=\"layout-content-wrapper\">\n\t\t<app-topbar />\n\t\t<div class=\"layout-content\">\n\t\t\t<router-outlet />\n\t\t</div>\n\t</div>\n\t<app-profilemenu />\n\t<app-history-sidebar />\n\t<app-site-map-sidebar />\n\t<app-favorite-pages-sidebar />\n\t<app-notifications-sidebar />\n\t<!--<app-config></app-config>-->\n\t<div class=\"layout-mask\" (click)=\"hideMenu()\"></div>\n</div>\n\n<p-toast key=\"toast-root\" />\n<p-dialog key=\"dialog-root\" />\n<p-messages key=\"messages-root\" />\n<p-confirmPopup key=\"confirmPopup-root\" />\n<p-confirmDialog key=\"confirmDialog-root\" />\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "ngmodule", type: ConfirmDialogModule }, { kind: "component", type: i8.ConfirmDialog, selector: "p-confirmDialog", inputs: ["header", "icon", "message", "style", "styleClass", "maskStyleClass", "acceptIcon", "acceptLabel", "closeAriaLabel", "acceptAriaLabel", "acceptVisible", "rejectIcon", "rejectLabel", "rejectAriaLabel", "rejectVisible", "acceptButtonStyleClass", "rejectButtonStyleClass", "closeOnEscape", "dismissableMask", "blockScroll", "rtl", "closable", "appendTo", "key", "autoZIndex", "baseZIndex", "transitionOptions", "focusTrap", "defaultFocus", "breakpoints", "visible", "position"], outputs: ["onHide"] }, { kind: "ngmodule", type: ConfirmPopupModule }, { kind: "component", type: i5$1.ConfirmPopup, selector: "p-confirmPopup", inputs: ["key", "defaultFocus", "showTransitionOptions", "hideTransitionOptions", "autoZIndex", "baseZIndex", "style", "styleClass", "visible"] }, { kind: "ngmodule", type: DialogModule }, { kind: "component", type: i6$2.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "visible", "style", "position"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "ngmodule", type: MessagesModule }, { kind: "component", type: i7$3.Messages, selector: "p-messages", inputs: ["value", "closable", "style", "styleClass", "enableService", "key", "escape", "severity", "showTransitionOptions", "hideTransitionOptions"], outputs: ["valueChange", "onClose"] }, { kind: "ngmodule", type: ToastModule }, { kind: "component", type: i8$3.Toast, selector: "p-toast", inputs: ["key", "autoZIndex", "baseZIndex", "life", "style", "styleClass", "position", "preventOpenDuplicates", "preventDuplicates", "showTransformOptions", "hideTransformOptions", "showTransitionOptions", "hideTransitionOptions", "breakpoints"], outputs: ["onClose"] }, { kind: "component", type: AppTopbarComponent, selector: "app-topbar" }, { kind: "component", type: EnvironmentBannerComponent, selector: "app-environment-banner" }, { kind: "component", type: AppProfileSidebarComponent, selector: "app-profilemenu" }, { kind: "component", type: HistorySidebarComponent, selector: "app-history-sidebar" }, { kind: "component", type: SiteMapSidebarComponent, selector: "app-site-map-sidebar" }, { kind: "component", type: FavoritePagesSidebarComponent, selector: "app-favorite-pages-sidebar" }, { kind: "component", type: ExpandableMenuComponent, selector: "app-expandable-menu" }, { kind: "component", type: StaticSidebarComponent, selector: "app-static-sidebar" }, { kind: "component", type: NotificationsSidebarComponent, selector: "app-notifications-sidebar" }] }); }
|
|
3044
3997
|
}
|
|
3045
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
3998
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AppLayoutComponent, decorators: [{
|
|
3046
3999
|
type: Component,
|
|
3047
4000
|
args: [{ standalone: true, selector: 'app-layout', imports: [
|
|
3048
4001
|
NgClass,
|
|
@@ -3061,8 +4014,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
3061
4014
|
ExpandableMenuComponent,
|
|
3062
4015
|
StaticSidebarComponent,
|
|
3063
4016
|
NotificationsSidebarComponent
|
|
3064
|
-
], template: "<div class=\"layout-container\" [ngClass]=\"containerClass\">\
|
|
3065
|
-
}], ctorParameters: () => [{ type: AppMenuService }, { type: LayoutService }, { type: i0.Renderer2 }, { type: i1$
|
|
4017
|
+
], template: "<div class=\"layout-container\" [ngClass]=\"containerClass\">\n\t<app-environment-banner />\n\t@if (layoutService.shouldShowStaticSidebar()) {\n\t\t<app-static-sidebar />\n\t} @else if (layoutService.shouldShowExpandableMenu()) {\n\t\t<app-expandable-menu />\n\t}\n\t<div class=\"layout-content-wrapper\">\n\t\t<app-topbar />\n\t\t<div class=\"layout-content\">\n\t\t\t<router-outlet />\n\t\t</div>\n\t</div>\n\t<app-profilemenu />\n\t<app-history-sidebar />\n\t<app-site-map-sidebar />\n\t<app-favorite-pages-sidebar />\n\t<app-notifications-sidebar />\n\t<!--<app-config></app-config>-->\n\t<div class=\"layout-mask\" (click)=\"hideMenu()\"></div>\n</div>\n\n<p-toast key=\"toast-root\" />\n<p-dialog key=\"dialog-root\" />\n<p-messages key=\"messages-root\" />\n<p-confirmPopup key=\"confirmPopup-root\" />\n<p-confirmDialog key=\"confirmDialog-root\" />\n" }]
|
|
4018
|
+
}], ctorParameters: () => [{ type: AppMenuService }, { type: LayoutService }, { type: i0.Renderer2 }, { type: i1$3.Router }], propDecorators: { expandableMenuComponent: [{
|
|
3066
4019
|
type: ViewChild,
|
|
3067
4020
|
args: [ExpandableMenuComponent]
|
|
3068
4021
|
}], staticSidebarComponent: [{
|
|
@@ -3083,10 +4036,10 @@ class BreadcrumbService {
|
|
|
3083
4036
|
getValue(key) {
|
|
3084
4037
|
return this.keyValues()[key];
|
|
3085
4038
|
}
|
|
3086
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
3087
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
4039
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: BreadcrumbService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4040
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: BreadcrumbService, providedIn: 'root' }); }
|
|
3088
4041
|
}
|
|
3089
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
4042
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: BreadcrumbService, decorators: [{
|
|
3090
4043
|
type: Injectable,
|
|
3091
4044
|
args: [{ providedIn: 'root' }]
|
|
3092
4045
|
}] });
|
|
@@ -3099,7 +4052,7 @@ class AppBreadcrumbComponent {
|
|
|
3099
4052
|
this._breadcrumbs$ = new BehaviorSubject([]);
|
|
3100
4053
|
this.breadcrumbs$ = this._breadcrumbs$.asObservable();
|
|
3101
4054
|
this.breadcrumbs = [];
|
|
3102
|
-
this.router.events.pipe(filter((event) => event instanceof NavigationEnd)).subscribe((event) => {
|
|
4055
|
+
this.router.events.pipe(filter$1((event) => event instanceof NavigationEnd)).subscribe((event) => {
|
|
3103
4056
|
const root = this.router.routerState.snapshot.root;
|
|
3104
4057
|
const breadcrumbs = [];
|
|
3105
4058
|
this.addBreadcrumb(root, [], breadcrumbs);
|
|
@@ -3156,7 +4109,8 @@ class AppBreadcrumbComponent {
|
|
|
3156
4109
|
if (key && value) {
|
|
3157
4110
|
breadcrumbs.push({
|
|
3158
4111
|
label: route.data['breadcrumb'].replace(`{${key}}`, value),
|
|
3159
|
-
url: '/' + routeUrl.join('/')
|
|
4112
|
+
url: '/' + routeUrl.join('/'),
|
|
4113
|
+
value
|
|
3160
4114
|
});
|
|
3161
4115
|
}
|
|
3162
4116
|
else if (key && !value) {
|
|
@@ -3177,18 +4131,18 @@ class AppBreadcrumbComponent {
|
|
|
3177
4131
|
this.addBreadcrumb(route.firstChild, routeUrl, breadcrumbs);
|
|
3178
4132
|
}
|
|
3179
4133
|
}
|
|
3180
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
3181
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.
|
|
4134
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AppBreadcrumbComponent, deps: [{ token: i1$3.Router }, { token: BreadcrumbService }, { token: i2$1.PubSubService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4135
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: AppBreadcrumbComponent, isStandalone: true, selector: "app-breadcrumb", ngImport: i0, template: "<p-breadcrumb class=\"max-w-full\" [model]=\"breadcrumbs\">\n\t<ng-template pTemplate=\"item\" let-item>\n\t\t<a [routerLink]=\"item.url\">\n\t\t\t<span [ngClass]=\"[item.icon ? item.icon : '', 'text-500']\"></span>\n\t\t\t<span class='text-500'>{{ item.label }}</span>\n\t\t</a>\n\t</ng-template>\n</p-breadcrumb>\n", dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: BreadcrumbModule }, { kind: "component", type: i4$1.Breadcrumb, selector: "p-breadcrumb", inputs: ["model", "style", "styleClass", "home", "homeAriaLabel"], outputs: ["onItemClick"] }, { kind: "directive", type: i3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
3182
4136
|
}
|
|
3183
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
4137
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AppBreadcrumbComponent, decorators: [{
|
|
3184
4138
|
type: Component,
|
|
3185
|
-
args: [{ standalone: true, selector: 'app-breadcrumb', imports: [RouterLink, BreadcrumbModule, NgClass], template: "<p-breadcrumb class=\"max-w-full\" [model]=\"breadcrumbs\">\
|
|
3186
|
-
}], ctorParameters: () => [{ type: i1$
|
|
4139
|
+
args: [{ standalone: true, selector: 'app-breadcrumb', imports: [RouterLink, BreadcrumbModule, NgClass], template: "<p-breadcrumb class=\"max-w-full\" [model]=\"breadcrumbs\">\n\t<ng-template pTemplate=\"item\" let-item>\n\t\t<a [routerLink]=\"item.url\">\n\t\t\t<span [ngClass]=\"[item.icon ? item.icon : '', 'text-500']\"></span>\n\t\t\t<span class='text-500'>{{ item.label }}</span>\n\t\t</a>\n\t</ng-template>\n</p-breadcrumb>\n" }]
|
|
4140
|
+
}], ctorParameters: () => [{ type: i1$3.Router }, { type: BreadcrumbService }, { type: i2$1.PubSubService }] });
|
|
3187
4141
|
|
|
3188
4142
|
class MFELayoutComponent {
|
|
3189
4143
|
constructor(router) {
|
|
3190
4144
|
this.router = router;
|
|
3191
|
-
this.loading = toSignal(this.router.events.pipe(map
|
|
4145
|
+
this.loading = toSignal(this.router.events.pipe(map((event) => {
|
|
3192
4146
|
if (event instanceof NavigationEnd ||
|
|
3193
4147
|
event instanceof NavigationCancel ||
|
|
3194
4148
|
event instanceof NavigationError ||
|
|
@@ -3197,170 +4151,44 @@ class MFELayoutComponent {
|
|
|
3197
4151
|
return true;
|
|
3198
4152
|
})), { initialValue: true });
|
|
3199
4153
|
}
|
|
3200
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
3201
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.
|
|
3202
|
-
<app-breadcrumb class="topbar-breadcrumb"></app-breadcrumb>
|
|
3203
|
-
@if (!loading()) {
|
|
3204
|
-
<router-outlet />
|
|
3205
|
-
}
|
|
3206
|
-
|
|
3207
|
-
<p-toast key="toast-root"></p-toast>
|
|
3208
|
-
<p-dialog key="dialog-root"></p-dialog>
|
|
3209
|
-
<p-messages key="messages-root"></p-messages>
|
|
3210
|
-
<p-confirmPopup key="confirmPopup-root"></p-confirmPopup>
|
|
3211
|
-
<p-confirmDialog key="confirmDialog-root"></p-confirmDialog>
|
|
3212
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "ngmodule", type: ConfirmDialogModule }, { kind: "component", type: i8.ConfirmDialog, selector: "p-confirmDialog", inputs: ["header", "icon", "message", "style", "styleClass", "maskStyleClass", "acceptIcon", "acceptLabel", "closeAriaLabel", "acceptAriaLabel", "acceptVisible", "rejectIcon", "rejectLabel", "rejectAriaLabel", "rejectVisible", "acceptButtonStyleClass", "rejectButtonStyleClass", "closeOnEscape", "dismissableMask", "blockScroll", "rtl", "closable", "appendTo", "key", "autoZIndex", "baseZIndex", "transitionOptions", "focusTrap", "defaultFocus", "breakpoints", "visible", "position"], outputs: ["onHide"] }, { kind: "ngmodule", type: ConfirmPopupModule }, { kind: "component", type: i5$1.ConfirmPopup, selector: "p-confirmPopup", inputs: ["key", "defaultFocus", "showTransitionOptions", "hideTransitionOptions", "autoZIndex", "baseZIndex", "style", "styleClass", "visible"] }, { kind: "ngmodule", type: DialogModule }, { kind: "component", type: i6$
|
|
4154
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: MFELayoutComponent, deps: [{ token: i1$3.Router }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4155
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: MFELayoutComponent, isStandalone: true, selector: "mfe-layout", ngImport: i0, template: `
|
|
4156
|
+
<app-breadcrumb class="topbar-breadcrumb"></app-breadcrumb>
|
|
4157
|
+
@if (!loading()) {
|
|
4158
|
+
<router-outlet />
|
|
4159
|
+
}
|
|
4160
|
+
|
|
4161
|
+
<p-toast key="toast-root"></p-toast>
|
|
4162
|
+
<p-dialog key="dialog-root"></p-dialog>
|
|
4163
|
+
<p-messages key="messages-root"></p-messages>
|
|
4164
|
+
<p-confirmPopup key="confirmPopup-root"></p-confirmPopup>
|
|
4165
|
+
<p-confirmDialog key="confirmDialog-root"></p-confirmDialog>
|
|
4166
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "ngmodule", type: ConfirmDialogModule }, { kind: "component", type: i8.ConfirmDialog, selector: "p-confirmDialog", inputs: ["header", "icon", "message", "style", "styleClass", "maskStyleClass", "acceptIcon", "acceptLabel", "closeAriaLabel", "acceptAriaLabel", "acceptVisible", "rejectIcon", "rejectLabel", "rejectAriaLabel", "rejectVisible", "acceptButtonStyleClass", "rejectButtonStyleClass", "closeOnEscape", "dismissableMask", "blockScroll", "rtl", "closable", "appendTo", "key", "autoZIndex", "baseZIndex", "transitionOptions", "focusTrap", "defaultFocus", "breakpoints", "visible", "position"], outputs: ["onHide"] }, { kind: "ngmodule", type: ConfirmPopupModule }, { kind: "component", type: i5$1.ConfirmPopup, selector: "p-confirmPopup", inputs: ["key", "defaultFocus", "showTransitionOptions", "hideTransitionOptions", "autoZIndex", "baseZIndex", "style", "styleClass", "visible"] }, { kind: "ngmodule", type: DialogModule }, { kind: "component", type: i6$2.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "visible", "style", "position"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "ngmodule", type: MessagesModule }, { kind: "component", type: i7$3.Messages, selector: "p-messages", inputs: ["value", "closable", "style", "styleClass", "enableService", "key", "escape", "severity", "showTransitionOptions", "hideTransitionOptions"], outputs: ["valueChange", "onClose"] }, { kind: "ngmodule", type: ToastModule }, { kind: "component", type: i8$3.Toast, selector: "p-toast", inputs: ["key", "autoZIndex", "baseZIndex", "life", "style", "styleClass", "position", "preventOpenDuplicates", "preventDuplicates", "showTransformOptions", "hideTransformOptions", "showTransitionOptions", "hideTransitionOptions", "breakpoints"], outputs: ["onClose"] }, { kind: "component", type: AppBreadcrumbComponent, selector: "app-breadcrumb" }] }); }
|
|
3213
4167
|
}
|
|
3214
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
4168
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: MFELayoutComponent, decorators: [{
|
|
3215
4169
|
type: Component,
|
|
3216
4170
|
args: [{
|
|
3217
4171
|
standalone: true,
|
|
3218
4172
|
selector: 'mfe-layout',
|
|
3219
|
-
template: `
|
|
3220
|
-
<app-breadcrumb class="topbar-breadcrumb"></app-breadcrumb>
|
|
3221
|
-
@if (!loading()) {
|
|
3222
|
-
<router-outlet />
|
|
3223
|
-
}
|
|
3224
|
-
|
|
3225
|
-
<p-toast key="toast-root"></p-toast>
|
|
3226
|
-
<p-dialog key="dialog-root"></p-dialog>
|
|
3227
|
-
<p-messages key="messages-root"></p-messages>
|
|
3228
|
-
<p-confirmPopup key="confirmPopup-root"></p-confirmPopup>
|
|
3229
|
-
<p-confirmDialog key="confirmDialog-root"></p-confirmDialog>
|
|
4173
|
+
template: `
|
|
4174
|
+
<app-breadcrumb class="topbar-breadcrumb"></app-breadcrumb>
|
|
4175
|
+
@if (!loading()) {
|
|
4176
|
+
<router-outlet />
|
|
4177
|
+
}
|
|
4178
|
+
|
|
4179
|
+
<p-toast key="toast-root"></p-toast>
|
|
4180
|
+
<p-dialog key="dialog-root"></p-dialog>
|
|
4181
|
+
<p-messages key="messages-root"></p-messages>
|
|
4182
|
+
<p-confirmPopup key="confirmPopup-root"></p-confirmPopup>
|
|
4183
|
+
<p-confirmDialog key="confirmDialog-root"></p-confirmDialog>
|
|
3230
4184
|
`,
|
|
3231
4185
|
imports: [RouterOutlet, ConfirmDialogModule, ConfirmPopupModule, DialogModule, MessagesModule, ToastModule, AppBreadcrumbComponent]
|
|
3232
4186
|
}]
|
|
3233
|
-
}], ctorParameters: () => [{ type: i1$
|
|
3234
|
-
|
|
3235
|
-
const STORAGE_KEY = 'selection-groups';
|
|
3236
|
-
class SelectionGroupService {
|
|
3237
|
-
constructor(http) {
|
|
3238
|
-
this.http = http;
|
|
3239
|
-
this.selectionGroups = signal({});
|
|
3240
|
-
this.loading = new Map();
|
|
3241
|
-
this.loaded = new Map();
|
|
3242
|
-
this.loadStatesFromLocalStorage();
|
|
3243
|
-
this.revalidateCachedGroups();
|
|
3244
|
-
effect(() => {
|
|
3245
|
-
try {
|
|
3246
|
-
const encodedData = btoa(encodeURI(JSON.stringify(this.selectionGroups())));
|
|
3247
|
-
localStorage.setItem(STORAGE_KEY, encodedData);
|
|
3248
|
-
}
|
|
3249
|
-
catch (e) {
|
|
3250
|
-
// Kota dolduysa ya da depolama kapalıysa yalnızca önbellek kaybolur; gruplar sunucudan çekilmeye devam eder.
|
|
3251
|
-
console.warn('Selection groups could not be cached', e);
|
|
3252
|
-
}
|
|
3253
|
-
});
|
|
3254
|
-
}
|
|
3255
|
-
async loadStatesFromLocalStorage() {
|
|
3256
|
-
const selectionGroups = localStorage.getItem(STORAGE_KEY);
|
|
3257
|
-
if (selectionGroups) {
|
|
3258
|
-
try {
|
|
3259
|
-
const decodedData = decodeURI(atob(selectionGroups));
|
|
3260
|
-
this.selectionGroups.set(JSON.parse(decodedData));
|
|
3261
|
-
}
|
|
3262
|
-
catch (e) {
|
|
3263
|
-
console.error(e);
|
|
3264
|
-
}
|
|
3265
|
-
}
|
|
3266
|
-
}
|
|
3267
|
-
/**
|
|
3268
|
-
* Önbellek kendi başına bayatlar: bir grubun etiketi sunucuda değiştiğinde localStorage'daki
|
|
3269
|
-
* kopya güncellenmez ve kullanıcı eski etiketi süresiz görür. Bu yüzden açılışta grup sürümleri
|
|
3270
|
-
* okunur ve yalnız değişenler düşürülür; düşen grubu bileşenlerin mevcut "grup yoksa fetchEnum"
|
|
3271
|
-
* yolu yeniden çeker.
|
|
3272
|
-
*
|
|
3273
|
-
* Sürüm listesi alınamazsa önbelleğe DOKUNULMAZ: davranış bu durumda bugünküne eşitlenir,
|
|
3274
|
-
* yani tazelik kaybedilir ama hiçbir etiket kaybolmaz.
|
|
3275
|
-
*/
|
|
3276
|
-
revalidateCachedGroups() {
|
|
3277
|
-
if (!Object.keys(this.selectionGroups()).length)
|
|
3278
|
-
return;
|
|
3279
|
-
this.http
|
|
3280
|
-
.get(this.hostApi() + '/selection-group/versions')
|
|
3281
|
-
.pipe(take(1))
|
|
3282
|
-
.subscribe({
|
|
3283
|
-
next: (versions) => {
|
|
3284
|
-
// Gövdesiz/biçimsiz yanıt "sürüm bilinmiyor" demektir; hata yolundaki gibi önbellek korunur.
|
|
3285
|
-
if (!Array.isArray(versions))
|
|
3286
|
-
return;
|
|
3287
|
-
this.dropStaleGroups(versions);
|
|
3288
|
-
},
|
|
3289
|
-
error: () => {
|
|
3290
|
-
console.debug('Selection group versions unavailable; cached groups are kept as is.');
|
|
3291
|
-
}
|
|
3292
|
-
});
|
|
3293
|
-
}
|
|
3294
|
-
dropStaleGroups(versions) {
|
|
3295
|
-
const serverVersions = new Map(versions.map((version) => [version.groupName, version.version]));
|
|
3296
|
-
this.selectionGroups.update((groups) => {
|
|
3297
|
-
const next = { ...groups };
|
|
3298
|
-
let dropped = false;
|
|
3299
|
-
for (const key of Object.keys(next)) {
|
|
3300
|
-
const group = next[key];
|
|
3301
|
-
if (!group)
|
|
3302
|
-
continue;
|
|
3303
|
-
// Yalnız localStorage'dan gelen girdiler doğrulanır. Bu oturumda istenmiş bir grup zaten
|
|
3304
|
-
// tazedir ve düşürülmemelidir: tüketiciler kendi "istedim" kaydını tuttuğu için (bkz.
|
|
3305
|
-
// TableComponent.requestedEnumKeys) düşen grubu yeniden istemezler ve seçenekleri
|
|
3306
|
-
// kalıcı olarak boş kalır. `has`, süren istekleri de kapsar: fetchEnum başlarken false,
|
|
3307
|
-
// biterken true yazar.
|
|
3308
|
-
if (this.loaded.has(key))
|
|
3309
|
-
continue;
|
|
3310
|
-
// Anahtar `groupName~parentSelectionKey` biçimindedir: aynı grubun her parent varyantı
|
|
3311
|
-
// ayrı bir girdidir ve grup değiştiğinde hepsi birlikte düşmelidir.
|
|
3312
|
-
const serverVersion = serverVersions.get(key.split('~')[0]);
|
|
3313
|
-
// Sunucu yalnız Fixed grupların sürümünü döndürür. Sürümü gelmeyen grup ya Dynamic'tir
|
|
3314
|
-
// (içeriği sorgudan üretilir, doğrulanamaz) ya da silinmiştir; ikisinde de tutulmaz.
|
|
3315
|
-
if (serverVersion !== undefined && serverVersion === group.version)
|
|
3316
|
-
continue;
|
|
3317
|
-
delete next[key];
|
|
3318
|
-
dropped = true;
|
|
3319
|
-
}
|
|
3320
|
-
return dropped ? next : groups;
|
|
3321
|
-
});
|
|
3322
|
-
}
|
|
3323
|
-
fetchEnum(groupName, parentSelectionKey = 'ALL') {
|
|
3324
|
-
const key = groupName + '~' + parentSelectionKey;
|
|
3325
|
-
if (this.loaded.get(key) || this.loading.get(key))
|
|
3326
|
-
return;
|
|
3327
|
-
const payload = {
|
|
3328
|
-
groupName,
|
|
3329
|
-
parentSelectionKey
|
|
3330
|
-
};
|
|
3331
|
-
this.loading.set(key, true);
|
|
3332
|
-
this.loaded.set(key, false);
|
|
3333
|
-
this.http
|
|
3334
|
-
.post(this.hostApi() + '/selection-group/load', payload)
|
|
3335
|
-
.pipe(take(1))
|
|
3336
|
-
.subscribe((selectionGroup) => {
|
|
3337
|
-
this.loading.set(key, false);
|
|
3338
|
-
this.loaded.set(key, true);
|
|
3339
|
-
this.selectionGroups.update((groups) => ({
|
|
3340
|
-
...groups,
|
|
3341
|
-
[key]: selectionGroup
|
|
3342
|
-
}));
|
|
3343
|
-
});
|
|
3344
|
-
}
|
|
3345
|
-
hostApi() {
|
|
3346
|
-
return API_CONFIGS.api.replace(/\/[^\/]+\/v1$/, `/host/v1`);
|
|
3347
|
-
}
|
|
3348
|
-
isLoading(groupName) {
|
|
3349
|
-
return this.loading.get(groupName) ?? false;
|
|
3350
|
-
}
|
|
3351
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SelectionGroupService, deps: [{ token: i7$3.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3352
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SelectionGroupService, providedIn: 'root' }); }
|
|
3353
|
-
}
|
|
3354
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SelectionGroupService, decorators: [{
|
|
3355
|
-
type: Injectable,
|
|
3356
|
-
args: [{
|
|
3357
|
-
providedIn: 'root'
|
|
3358
|
-
}]
|
|
3359
|
-
}], ctorParameters: () => [{ type: i7$3.HttpClient }] });
|
|
4187
|
+
}], ctorParameters: () => [{ type: i1$3.Router }] });
|
|
3360
4188
|
|
|
3361
4189
|
/**
|
|
3362
4190
|
* Generated bundle index. Do not edit.
|
|
3363
4191
|
*/
|
|
3364
4192
|
|
|
3365
|
-
export { ActivityTypesEnum, AppLayoutComponent, AppMenuService, BreadcrumbService, DetailNotificationTypeEnum, Environment, FavoritePagesService, LanguageCode, LayoutService, MFELayoutComponent, SelectionGroupService, favoritePageEndpoints };
|
|
4193
|
+
export { ActivityTypesEnum, AppLayoutComponent, AppMenuService, BreadcrumbService, DetailNotificationTypeEnum, Environment, FavoritePagesService, GeneralSearchComponent, LanguageCode, LayoutService, MFELayoutComponent, RECORD_TYPE_ICONS, RECORD_TYPE_LABEL_KEYS, RecentSearchService, RecordSummaryService, ScreenVisitService, SelectionGroupService, favoritePageEndpoints };
|
|
3366
4194
|
//# sourceMappingURL=aril-theme-layout.mjs.map
|