aril 1.2.51 → 1.2.54
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/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/showdowDOMWrapper.mjs +4 -4
- package/esm2022/boot/config/plugins/index.mjs +1 -1
- package/esm2022/boot/config/translate/constants.mjs +1 -1
- package/esm2022/boot/config/translate/index.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 +4 -4
- package/esm2022/boot/mfe/src/appComponentLoader.mjs +1 -1
- package/esm2022/boot/mfe/src/monaco.config.mjs +1 -1
- package/esm2022/boot/pages/src/forbidden.component.mjs +4 -4
- package/esm2022/boot/pages/src/notFound.component.mjs +4 -4
- package/esm2022/http/index.mjs +2 -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 +54 -1
- package/esm2022/http/src/serviceMockBase.mjs +1 -1
- package/esm2022/http/src/serviceRequest.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/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/provideHostPermissions.mjs +1 -1
- package/esm2022/provider/src/provideLocaleId.mjs +1 -1
- package/esm2022/public-api.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 +4 -4
- 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 +4 -4
- 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/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 +410 -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 +4 -4
- 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 +4 -4
- 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 +4 -4
- 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/src/asset-picker.component.mjs +4 -4
- 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/image-viewer/src/aril-image-viewer.component.mjs +31 -31
- package/esm2022/ui-business/index.mjs +1 -1
- package/esm2022/ui-business/multiAssetPicker/src/multi-asset-picker.component.mjs +4 -4
- 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/src/pdf-preview-modal.component.mjs +4 -4
- 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/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/src/trace-id.component.mjs +4 -4
- 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/src/activity.service.mjs +15 -4
- 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-YBy2gyza.mjs → aril-app.component-Cimdqjv1.mjs} +4 -4
- 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-GbZAGlTf.mjs → aril-boot-mfe-app.component-CCGhRwfE.mjs} +5 -5
- package/fesm2022/aril-boot-mfe-app.component-CCGhRwfE.mjs.map +1 -0
- package/fesm2022/{aril-boot-mfe-aril-boot-mfe-I5xT2fQx.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 +6 -6
- package/fesm2022/aril-boot-pages.mjs.map +1 -1
- package/fesm2022/aril-boot.mjs.map +1 -1
- package/fesm2022/aril-http.mjs +69 -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 +1123 -283
- 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 +5 -5
- 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 +4 -4
- 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 +3 -3
- 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 +4 -4
- 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 +11 -11
- 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 +14 -14
- package/fesm2022/aril-ui-table-expand.mjs.map +1 -1
- package/fesm2022/aril-ui-table.mjs +140 -140
- 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 +180 -180
- 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/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.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 +50 -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/_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/_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/_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/_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/indigo/theme.scss +14 -14
- package/theme/styles/theme/light/_extensions.scss +116 -116
- 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 +11 -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-YBy2gyza.mjs.map +0 -1
- package/fesm2022/aril-boot-mfe-app.component-GbZAGlTf.mjs.map +0 -1
- package/fesm2022/aril-boot-mfe-aril-boot-mfe-I5xT2fQx.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,347 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { Component, OnInit, computed, effect, signal, untracked } from '@angular/core';
|
|
3
|
-
import { toSignal } from '@angular/core/rxjs-interop';
|
|
4
|
-
import { FormsModule } from '@angular/forms';
|
|
5
|
-
import { Router } from '@angular/router';
|
|
6
|
-
|
|
7
|
-
import { MenuItem } from 'primeng/api';
|
|
8
|
-
import { Menu, MenuModule } from 'primeng/menu';
|
|
9
|
-
import { SidebarModule } from 'primeng/sidebar';
|
|
10
|
-
import { TooltipModule } from 'primeng/tooltip';
|
|
11
|
-
|
|
12
|
-
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
13
|
-
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
14
|
-
import { TranslocoModule, TranslocoService } from '@ngneat/transloco';
|
|
15
|
-
import { KeycloakService } from 'keycloak-angular';
|
|
16
|
-
import { map, mergeMap, Subject, switchMap } from 'rxjs';
|
|
17
|
-
|
|
18
|
-
import { ButtonComponent } from 'aril/ui/button';
|
|
19
|
-
import { SwitchComponent } from 'aril/ui/switch';
|
|
20
|
-
import { regularIcons, solidIcons } from 'aril/util/lib';
|
|
21
|
-
import { SafePipe } from 'aril/util/pipes';
|
|
22
|
-
|
|
23
|
-
import { LayoutService } from '../../service/app.layout.service';
|
|
24
|
-
import { ActivityTypesEnum, DetailNotificationTypeEnum } from '../../service/interfaces/enum';
|
|
25
|
-
import { SmsEmailAuditResponseDTO } from '../../service/interfaces/interfaces';
|
|
26
|
-
import { NotificationsService } from '../../service/notifications.service';
|
|
27
|
-
|
|
28
|
-
@Component({
|
|
29
|
-
standalone: true,
|
|
30
|
-
selector: 'app-notifications-sidebar',
|
|
31
|
-
imports: [
|
|
32
|
-
CommonModule,
|
|
33
|
-
FormsModule,
|
|
34
|
-
SidebarModule,
|
|
35
|
-
MenuModule,
|
|
36
|
-
ButtonComponent,
|
|
37
|
-
SwitchComponent,
|
|
38
|
-
TranslocoModule,
|
|
39
|
-
TooltipModule,
|
|
40
|
-
FontAwesomeModule,
|
|
41
|
-
SafePipe
|
|
42
|
-
],
|
|
43
|
-
templateUrl: './notifications-sidebar.component.html',
|
|
44
|
-
styleUrls: ['./notifications-sidebar.component.scss']
|
|
45
|
-
})
|
|
46
|
-
export class NotificationsSidebarComponent implements OnInit {
|
|
47
|
-
private readonly pageSize = 10;
|
|
48
|
-
|
|
49
|
-
notifications = signal<SmsEmailAuditResponseDTO[]>([]);
|
|
50
|
-
totalRecords = signal(0);
|
|
51
|
-
onlyUnread = signal(true);
|
|
52
|
-
pageNumber = signal(1);
|
|
53
|
-
|
|
54
|
-
remainingCount = computed(() => Math.max(this.totalRecords() - this.notifications().length, 0));
|
|
55
|
-
|
|
56
|
-
menuItems: MenuItem[] = [];
|
|
57
|
-
|
|
58
|
-
ActivityTypesEnum = ActivityTypesEnum;
|
|
59
|
-
DetailNotificationTypeEnum = DetailNotificationTypeEnum;
|
|
60
|
-
|
|
61
|
-
regularIcons = regularIcons;
|
|
62
|
-
solidIcons = solidIcons;
|
|
63
|
-
|
|
64
|
-
oneMonthAgo = new Date(new Date().getTime() - 30 * 24 * 60 * 60 * 1000);
|
|
65
|
-
|
|
66
|
-
private subjects = {
|
|
67
|
-
markAsRead: new Subject<string>(),
|
|
68
|
-
markAllAsRead: new Subject<void>(),
|
|
69
|
-
loadNotifications: new Subject<void>()
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
markAsReadService = toSignal(
|
|
73
|
-
this.subjects.markAsRead.pipe(
|
|
74
|
-
mergeMap((id) => this.notificationsService.markAsReadNotification(id).pipe(map((result) => ({ result, id }))))
|
|
75
|
-
)
|
|
76
|
-
);
|
|
77
|
-
|
|
78
|
-
markAllAsReadService = toSignal(
|
|
79
|
-
this.subjects.markAllAsRead.pipe(
|
|
80
|
-
switchMap(() =>
|
|
81
|
-
this.notificationsService.markAllAsReadNotification({
|
|
82
|
-
toList: [this.getUserMail, ...this.getUserPhones],
|
|
83
|
-
endDate: new Date().dateToLong('time') || 0
|
|
84
|
-
})
|
|
85
|
-
)
|
|
86
|
-
)
|
|
87
|
-
);
|
|
88
|
-
|
|
89
|
-
loadNotificationsService = toSignal(
|
|
90
|
-
this.subjects.loadNotifications.pipe(
|
|
91
|
-
switchMap(() =>
|
|
92
|
-
this.notificationsService.getNotifications({
|
|
93
|
-
pager: {
|
|
94
|
-
pageSize: this.pageSize,
|
|
95
|
-
pageNumber: this.pageNumber()
|
|
96
|
-
},
|
|
97
|
-
startDate: this.oneMonthAgo.dateToLong('time') || 0,
|
|
98
|
-
endDate: new Date().dateToLong('time') || 0,
|
|
99
|
-
...(this.onlyUnread() ? { read: false } : {}),
|
|
100
|
-
toList: [this.getUserMail, ...this.getUserPhones]
|
|
101
|
-
})
|
|
102
|
-
)
|
|
103
|
-
)
|
|
104
|
-
);
|
|
105
|
-
|
|
106
|
-
get getUserPhones(): string[] {
|
|
107
|
-
const phones = this.keycloak.getKeycloakInstance().profile?.attributes?.['phone'];
|
|
108
|
-
if (phones && Array.isArray(phones)) {
|
|
109
|
-
return phones;
|
|
110
|
-
} else if (phones && typeof phones === 'string') {
|
|
111
|
-
return [phones];
|
|
112
|
-
}
|
|
113
|
-
return [];
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
get getUserMail() {
|
|
117
|
-
return this.keycloak.getKeycloakInstance().profile?.email as string;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
get unreadCount(): number {
|
|
121
|
-
return this.layoutService.getUnreadNotificationCount();
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
get loading(): boolean {
|
|
125
|
-
return !!this.notificationsService.states.getNotifications?.waitingForResponse;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
constructor(
|
|
129
|
-
public layoutService: LayoutService,
|
|
130
|
-
private readonly notificationsService: NotificationsService,
|
|
131
|
-
private readonly translocoService: TranslocoService,
|
|
132
|
-
private readonly router: Router,
|
|
133
|
-
private readonly keycloak: KeycloakService
|
|
134
|
-
) {
|
|
135
|
-
this.initializeEffects();
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
ngOnInit(): void {
|
|
139
|
-
this.subjects.loadNotifications.next();
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
private initializeEffects(): void {
|
|
143
|
-
effect(
|
|
144
|
-
() => {
|
|
145
|
-
const service = this.loadNotificationsService();
|
|
146
|
-
if (service?.response) {
|
|
147
|
-
const result = service.response.result || [];
|
|
148
|
-
const isFirstPage = untracked(this.pageNumber) === 1;
|
|
149
|
-
this.notifications.update((current) =>
|
|
150
|
-
isFirstPage ? result : [...current, ...result.filter((item) => !current.some((existing) => existing.id === item.id))]
|
|
151
|
-
);
|
|
152
|
-
this.totalRecords.set(service.response.resultInfo.totalItem || 0);
|
|
153
|
-
if (untracked(this.onlyUnread)) {
|
|
154
|
-
this.layoutService.setUnreadNotificationCount(service.response.resultInfo.totalItem || 0);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
{ allowSignalWrites: true }
|
|
159
|
-
);
|
|
160
|
-
effect(
|
|
161
|
-
() => {
|
|
162
|
-
const marked = this.markAsReadService();
|
|
163
|
-
if (marked?.result?.response) {
|
|
164
|
-
this.applyMarkedAsRead(marked.id);
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
{ allowSignalWrites: true }
|
|
168
|
-
);
|
|
169
|
-
effect(
|
|
170
|
-
() => {
|
|
171
|
-
const service = this.markAllAsReadService();
|
|
172
|
-
if (service?.response) {
|
|
173
|
-
this.applyAllMarkedAsRead();
|
|
174
|
-
}
|
|
175
|
-
},
|
|
176
|
-
{ allowSignalWrites: true }
|
|
177
|
-
);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
private applyMarkedAsRead(id: string): void {
|
|
181
|
-
if (untracked(this.onlyUnread)) {
|
|
182
|
-
this.notifications.update((items) => items.filter((item) => item.id !== id));
|
|
183
|
-
this.totalRecords.update((total) => Math.max(total - 1, 0));
|
|
184
|
-
} else {
|
|
185
|
-
this.notifications.update((items) => items.map((item) => (item.id === id ? { ...item, read: true } : item)));
|
|
186
|
-
}
|
|
187
|
-
this.layoutService.setUnreadNotificationCount(Math.max(this.layoutService.getUnreadNotificationCount() - 1, 0));
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
private applyAllMarkedAsRead(): void {
|
|
191
|
-
if (untracked(this.onlyUnread)) {
|
|
192
|
-
this.notifications.set([]);
|
|
193
|
-
this.totalRecords.set(0);
|
|
194
|
-
} else {
|
|
195
|
-
this.notifications.update((items) => items.map((item) => (item.read ? item : { ...item, read: true })));
|
|
196
|
-
}
|
|
197
|
-
this.layoutService.setUnreadNotificationCount(0);
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
get visible(): boolean {
|
|
201
|
-
return this.layoutService.state.notificationsSidebarVisible;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
set visible(value: boolean) {
|
|
205
|
-
this.layoutService.state.notificationsSidebarVisible = value;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
onOnlyUnreadChange(value: boolean): void {
|
|
209
|
-
this.onlyUnread.set(value);
|
|
210
|
-
this.pageNumber.set(1);
|
|
211
|
-
this.notifications.set([]);
|
|
212
|
-
this.subjects.loadNotifications.next();
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
onSidebarShow(): void {
|
|
216
|
-
this.pageNumber.set(1);
|
|
217
|
-
this.subjects.loadNotifications.next();
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
showMore(): void {
|
|
221
|
-
this.pageNumber.set(Math.floor(this.notifications().length / this.pageSize) + 1);
|
|
222
|
-
this.subjects.loadNotifications.next();
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
toggleMenu(event: Event, menu: Menu): void {
|
|
226
|
-
this.menuItems = [
|
|
227
|
-
...(this.unreadCount > 0 ?
|
|
228
|
-
[
|
|
229
|
-
{
|
|
230
|
-
label: this.translocoService.translate('notifications.markAllAsRead'),
|
|
231
|
-
icon: 'pi pi-check-circle',
|
|
232
|
-
command: () => this.subjects.markAllAsRead.next()
|
|
233
|
-
}
|
|
234
|
-
]
|
|
235
|
-
: []),
|
|
236
|
-
{
|
|
237
|
-
label: this.translocoService.translate('notifications.allNotificationsPage'),
|
|
238
|
-
icon: 'pi pi-external-link',
|
|
239
|
-
command: () => this.navigateToAllNotifications()
|
|
240
|
-
}
|
|
241
|
-
];
|
|
242
|
-
menu.toggle(event);
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
markNotificationAsRead(notification: SmsEmailAuditResponseDTO): void {
|
|
246
|
-
if (!notification.read) {
|
|
247
|
-
this.subjects.markAsRead.next(notification.id);
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
openNotification(notification: SmsEmailAuditResponseDTO): void {
|
|
252
|
-
const isTodo = notification.detailNotificationType === DetailNotificationTypeEnum.TODO_ITEM;
|
|
253
|
-
const isBatch = notification.detailNotificationType === DetailNotificationTypeEnum.BATCH_JOB;
|
|
254
|
-
if (!isTodo && !isBatch) {
|
|
255
|
-
return;
|
|
256
|
-
}
|
|
257
|
-
this.markNotificationAsRead(notification);
|
|
258
|
-
this.visible = false;
|
|
259
|
-
const route = isTodo ? `mng/todo-tasks/detail/${notification.referenceId}` : `mng/bulk-operations/${notification.referenceId}`;
|
|
260
|
-
this.router.navigate([route]);
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
isNavigable(notification: SmsEmailAuditResponseDTO): boolean {
|
|
264
|
-
return (
|
|
265
|
-
notification.detailNotificationType === DetailNotificationTypeEnum.TODO_ITEM ||
|
|
266
|
-
notification.detailNotificationType === DetailNotificationTypeEnum.BATCH_JOB
|
|
267
|
-
);
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
getNotificationIcon(notification: SmsEmailAuditResponseDTO): IconProp {
|
|
271
|
-
if (notification.detailNotificationType === DetailNotificationTypeEnum.TODO_ITEM) {
|
|
272
|
-
return solidIcons.faListCheck;
|
|
273
|
-
}
|
|
274
|
-
if (notification.detailNotificationType === DetailNotificationTypeEnum.BATCH_JOB) {
|
|
275
|
-
return solidIcons.faGear;
|
|
276
|
-
}
|
|
277
|
-
if (notification.type === ActivityTypesEnum.SMS) {
|
|
278
|
-
return regularIcons.faMessage;
|
|
279
|
-
}
|
|
280
|
-
return notification.read ? regularIcons.faEnvelopeOpen : regularIcons.faEnvelope;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
getNotificationIconClass(notification: SmsEmailAuditResponseDTO): string {
|
|
284
|
-
if (notification.detailNotificationType === DetailNotificationTypeEnum.TODO_ITEM) {
|
|
285
|
-
return 'todo';
|
|
286
|
-
}
|
|
287
|
-
if (notification.detailNotificationType === DetailNotificationTypeEnum.BATCH_JOB) {
|
|
288
|
-
return 'batch';
|
|
289
|
-
}
|
|
290
|
-
if (notification.type === ActivityTypesEnum.SMS) {
|
|
291
|
-
return 'sms';
|
|
292
|
-
}
|
|
293
|
-
return notification.read ? 'email-read' : 'email-unread';
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
getNotificationTitle(notification: SmsEmailAuditResponseDTO): string {
|
|
297
|
-
return notification.templateTitle || notification.templateCode || '';
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
getNotificationContent(notification: SmsEmailAuditResponseDTO): string {
|
|
301
|
-
const truncated =
|
|
302
|
-
notification.content?.length! > 200 ? notification.content?.substring(0, 200) + '...' : notification.content;
|
|
303
|
-
return truncated || '';
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
formatNotificationDate(startDate: number | undefined): string {
|
|
307
|
-
if (!startDate) {
|
|
308
|
-
return '';
|
|
309
|
-
}
|
|
310
|
-
const dateStr = startDate.toString();
|
|
311
|
-
const year = parseInt(dateStr.substring(0, 4));
|
|
312
|
-
const month = parseInt(dateStr.substring(4, 6)) - 1;
|
|
313
|
-
const day = parseInt(dateStr.substring(6, 8));
|
|
314
|
-
const hour = parseInt(dateStr.substring(8, 10));
|
|
315
|
-
const minute = parseInt(dateStr.substring(10, 12));
|
|
316
|
-
const second = parseInt(dateStr.substring(12, 14));
|
|
317
|
-
|
|
318
|
-
const notificationDate = new Date(year, month, day, hour, minute, second);
|
|
319
|
-
const now = new Date();
|
|
320
|
-
const diffMs = now.getTime() - notificationDate.getTime();
|
|
321
|
-
|
|
322
|
-
const diffMinutes = Math.floor(diffMs / (1000 * 60));
|
|
323
|
-
const diffHours = Math.floor(diffMs / (1000 * 60 * 60));
|
|
324
|
-
const diffDays = Math.floor(diffMs / (1000 * 60 * 60 * 24));
|
|
325
|
-
const diffWeeks = Math.floor(diffDays / 7);
|
|
326
|
-
const diffMonths = Math.floor(diffDays / 30);
|
|
327
|
-
|
|
328
|
-
if (diffMinutes < 1) {
|
|
329
|
-
return this.translocoService.translate('notifications.time.justNow');
|
|
330
|
-
} else if (diffMinutes < 60) {
|
|
331
|
-
return this.translocoService.translate('notifications.time.minutesAgo', { count: diffMinutes });
|
|
332
|
-
} else if (diffHours < 24) {
|
|
333
|
-
return this.translocoService.translate('notifications.time.hoursAgo', { count: diffHours });
|
|
334
|
-
} else if (diffDays < 7) {
|
|
335
|
-
return this.translocoService.translate('notifications.time.daysAgo', { count: diffDays });
|
|
336
|
-
} else if (diffWeeks < 4) {
|
|
337
|
-
return this.translocoService.translate('notifications.time.weeksAgo', { count: diffWeeks });
|
|
338
|
-
} else {
|
|
339
|
-
return this.translocoService.translate('notifications.time.monthsAgo', { count: diffMonths });
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
navigateToAllNotifications(): void {
|
|
344
|
-
this.router.navigate(['mng/control-management/sms-email-audit']);
|
|
345
|
-
this.visible = false;
|
|
346
|
-
}
|
|
347
|
-
}
|
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
import { Component, OnInit, computed, effect, signal } from '@angular/core';
|
|
2
|
-
import { toSignal } from '@angular/core/rxjs-interop';
|
|
3
|
-
|
|
4
|
-
import { DialogService } from 'primeng/dynamicdialog';
|
|
5
|
-
import { SidebarModule } from 'primeng/sidebar';
|
|
6
|
-
|
|
7
|
-
import { TranslocoModule, TranslocoService } from '@ngneat/transloco';
|
|
8
|
-
import { KeycloakService } from 'keycloak-angular';
|
|
9
|
-
import { Subject, switchMap } from 'rxjs';
|
|
10
|
-
|
|
11
|
-
import { API_CONFIGS } from 'aril/boot/config/api';
|
|
12
|
-
|
|
13
|
-
import { LayoutService } from '../../service/app.layout.service';
|
|
14
|
-
import { Environment } from '../../service/interfaces/enum';
|
|
15
|
-
import { ChangePasswordModalComponent } from './modals/change-password-modal/change-password-modal.component';
|
|
16
|
-
import { EditProfileModalComponent } from './modals/edit-profile-modal/edit-profile-modal.component';
|
|
17
|
-
import { GetUserRequestDTO, ProfileService, UserResponseDTO } from './profile.service';
|
|
18
|
-
|
|
19
|
-
type ProfileIconTint = 'cool' | 'accent' | 'teal';
|
|
20
|
-
type ProfileBadgeTone = 'green' | 'red' | 'neutral';
|
|
21
|
-
|
|
22
|
-
interface ProfileRow {
|
|
23
|
-
icon: string;
|
|
24
|
-
labelKey: string;
|
|
25
|
-
tint: ProfileIconTint;
|
|
26
|
-
value?: string | null;
|
|
27
|
-
badge?: { tone: ProfileBadgeTone; labelKey?: string; label?: string };
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
@Component({
|
|
31
|
-
standalone: true,
|
|
32
|
-
selector: 'app-profilemenu',
|
|
33
|
-
imports: [SidebarModule, TranslocoModule],
|
|
34
|
-
templateUrl: './app.profilesidebar.component.html',
|
|
35
|
-
styleUrls: ['./app.profilesidebar.component.scss'],
|
|
36
|
-
providers: [DialogService]
|
|
37
|
-
})
|
|
38
|
-
export class AppProfileSidebarComponent implements OnInit {
|
|
39
|
-
username: string;
|
|
40
|
-
userProfile = signal<UserResponseDTO | null>(null);
|
|
41
|
-
envCode = this.resolveEnvironmentCode();
|
|
42
|
-
|
|
43
|
-
displayName = computed(() => {
|
|
44
|
-
const profile = this.userProfile();
|
|
45
|
-
const fullName = profile ? `${profile.firstName ?? ''} ${profile.lastName ?? ''}`.trim() : '';
|
|
46
|
-
return fullName || this.username;
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
initials = computed(() =>
|
|
50
|
-
this.displayName()
|
|
51
|
-
.trim()
|
|
52
|
-
.split(/\s+/)
|
|
53
|
-
.filter(Boolean)
|
|
54
|
-
.slice(0, 2)
|
|
55
|
-
.map((word) => word[0])
|
|
56
|
-
.join('')
|
|
57
|
-
.toLocaleUpperCase('tr')
|
|
58
|
-
);
|
|
59
|
-
|
|
60
|
-
rows = computed<ProfileRow[]>(() => {
|
|
61
|
-
const profile = this.userProfile();
|
|
62
|
-
if (!profile) return [];
|
|
63
|
-
|
|
64
|
-
const clientOfSystemUser = this.asText(profile.clientOfSystemUser);
|
|
65
|
-
|
|
66
|
-
return [
|
|
67
|
-
{ icon: 'pi-id-card', labelKey: 'tcNumber', tint: 'cool', value: this.asText(profile.tckn) },
|
|
68
|
-
{ icon: 'pi-envelope', labelKey: 'email', tint: 'accent', value: this.asText(profile.email) },
|
|
69
|
-
{ icon: 'pi-phone', labelKey: 'phone', tint: 'teal', value: this.asText(profile.phone) },
|
|
70
|
-
{ icon: 'pi-at', labelKey: 'username', tint: 'cool', value: this.asText(profile.userName) },
|
|
71
|
-
{
|
|
72
|
-
icon: 'pi-verified',
|
|
73
|
-
labelKey: 'accountStatus',
|
|
74
|
-
tint: 'teal',
|
|
75
|
-
badge: profile.enabled ? { tone: 'green', labelKey: 'active' } : { tone: 'red', labelKey: 'inactive' }
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
icon: 'pi-shield',
|
|
79
|
-
labelKey: 'systemUser',
|
|
80
|
-
tint: 'accent',
|
|
81
|
-
badge: profile.systemUser ? { tone: 'green', labelKey: 'yes' } : { tone: 'red', labelKey: 'no' }
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
icon: 'pi-building',
|
|
85
|
-
labelKey: 'clientSystemUser',
|
|
86
|
-
tint: 'cool',
|
|
87
|
-
badge: clientOfSystemUser ? { tone: 'green', label: clientOfSystemUser } : { tone: 'neutral', labelKey: 'no' }
|
|
88
|
-
}
|
|
89
|
-
];
|
|
90
|
-
});
|
|
91
|
-
|
|
92
|
-
private subjects = {
|
|
93
|
-
getUser: new Subject<GetUserRequestDTO>()
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
getUserService = toSignal(this.subjects.getUser.pipe(switchMap((data) => this.profileService.getUser(data))));
|
|
97
|
-
|
|
98
|
-
constructor(
|
|
99
|
-
public layoutService: LayoutService,
|
|
100
|
-
private readonly keycloak: KeycloakService,
|
|
101
|
-
private readonly profileService: ProfileService,
|
|
102
|
-
private readonly dialogService: DialogService,
|
|
103
|
-
private readonly translocoService: TranslocoService
|
|
104
|
-
) {
|
|
105
|
-
this.username = this.keycloak.getUsername();
|
|
106
|
-
this.initializeEffects();
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
ngOnInit(): void {
|
|
110
|
-
this.loadUserProfile();
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
private initializeEffects(): void {
|
|
114
|
-
effect(
|
|
115
|
-
() => {
|
|
116
|
-
const service = this.getUserService();
|
|
117
|
-
if (service?.response) {
|
|
118
|
-
this.userProfile.set(service.response);
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
{ allowSignalWrites: true }
|
|
122
|
-
);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
private loadUserProfile(): void {
|
|
126
|
-
const userId = this.keycloak.getKeycloakInstance().idTokenParsed?.sub;
|
|
127
|
-
if (userId) {
|
|
128
|
-
this.subjects.getUser.next({ id: userId });
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
private resolveEnvironmentCode(): string | null {
|
|
133
|
-
switch (API_CONFIGS.environment) {
|
|
134
|
-
case Environment.PER:
|
|
135
|
-
return 'depsas';
|
|
136
|
-
case Environment.DG:
|
|
137
|
-
return 'dedas';
|
|
138
|
-
default:
|
|
139
|
-
return null;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
private asText(value?: string | string[] | null): string | null {
|
|
144
|
-
const text = (Array.isArray(value) ? value.filter(Boolean).join(', ') : (value ?? '')).trim();
|
|
145
|
-
return text.length ? text : null;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
get visible(): boolean {
|
|
149
|
-
return this.layoutService.state.profileSidebarVisible;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
set visible(_val: boolean) {
|
|
153
|
-
this.layoutService.state.profileSidebarVisible = _val;
|
|
154
|
-
if (_val && !this.userProfile()) {
|
|
155
|
-
this.loadUserProfile();
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
logout(): void {
|
|
160
|
-
this.keycloak.logout();
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
editProfile(): void {
|
|
164
|
-
if (!this.userProfile()) return;
|
|
165
|
-
|
|
166
|
-
const ref = this.dialogService.open(EditProfileModalComponent, {
|
|
167
|
-
header: this.translocoService.translate('profileSidebar.editProfile'),
|
|
168
|
-
width: '40%',
|
|
169
|
-
height: 'auto',
|
|
170
|
-
modal: true,
|
|
171
|
-
maximizable: false,
|
|
172
|
-
closable: true,
|
|
173
|
-
data: {
|
|
174
|
-
userProfile: this.userProfile()
|
|
175
|
-
}
|
|
176
|
-
});
|
|
177
|
-
|
|
178
|
-
ref.onClose.subscribe((result) => {
|
|
179
|
-
if (result?.status === 'success') {
|
|
180
|
-
this.loadUserProfile();
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
changePassword(): void {
|
|
186
|
-
const userId = this.keycloak.getKeycloakInstance().idTokenParsed?.sub;
|
|
187
|
-
if (!userId) return;
|
|
188
|
-
|
|
189
|
-
const ref = this.dialogService.open(ChangePasswordModalComponent, {
|
|
190
|
-
header: this.translocoService.translate('profileSidebar.changePassword'),
|
|
191
|
-
width: '500px',
|
|
192
|
-
height: 'auto',
|
|
193
|
-
modal: true,
|
|
194
|
-
maximizable: false,
|
|
195
|
-
closable: true,
|
|
196
|
-
data: {
|
|
197
|
-
userId: userId
|
|
198
|
-
}
|
|
199
|
-
});
|
|
200
|
-
|
|
201
|
-
ref.onClose.subscribe();
|
|
202
|
-
}
|
|
203
|
-
}
|