@odx/angular 5.7.4 → 6.0.1
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/CHANGELOG.md +17 -0
- package/animations/lib/expand.d.ts +44 -0
- package/animations/lib/fade.d.ts +70 -0
- package/animations/lib/slide.d.ts +21 -0
- package/animations/lib/wait-for-child-animations.d.ts +38 -0
- package/breakpoints/lib/breakpoints.config.d.ts +38 -0
- package/breakpoints/lib/breakpoints.service.d.ts +43 -0
- package/breakpoints/lib/directives/match-breakpoints.directive.d.ts +36 -0
- package/breakpoints/lib/helpers/configure-breakpoint.d.ts +19 -0
- package/cdk/a11y/lib/directives/interactive.directive.d.ts +32 -0
- package/cdk/a11y/lib/directives/list-focus-manager-option.directive.d.ts +22 -0
- package/cdk/a11y/lib/directives/list-focus-manager.directive.d.ts +17 -0
- package/cdk/active-indicator/lib/active-indicator.directive.d.ts +63 -0
- package/cdk/autocomplete-control/lib/autocomplete-control.d.ts +53 -0
- package/cdk/checkbox-control/lib/checkbox-control.directive.d.ts +3 -0
- package/cdk/connected-overlay/lib/connected-overlay.service.d.ts +44 -0
- package/cdk/connected-overlay/lib/helpers/compute-overlay-position.d.ts +10 -0
- package/cdk/connected-overlay/lib/models/connected-overlay-ref.d.ts +49 -0
- package/cdk/custom-form-control/lib/custom-form-control.d.ts +108 -0
- package/cdk/custom-form-control/lib/input-control.directive.d.ts +75 -0
- package/cdk/dynamic-view/lib/dynamic-view.directive.d.ts +25 -0
- package/cdk/dynamic-view/lib/dynamic-view.service.d.ts +30 -0
- package/cdk/dynamic-view/lib/helpers/create-projectable-nodes.d.ts +22 -0
- package/cdk/dynamic-view/lib/helpers/is-dynamic-text-content.d.ts +22 -0
- package/cdk/dynamic-view/lib/helpers/is-dynamic-view.d.ts +22 -0
- package/cdk/dynamic-view/lib/models/dynamic-component-ref.d.ts +39 -0
- package/cdk/dynamic-view/lib/models/dynamic-template-ref.d.ts +36 -0
- package/cdk/event-plugins/lib/event-plugins.config.d.ts +35 -0
- package/cdk/event-plugins/lib/models/event-plugin.d.ts +57 -0
- package/cdk/event-plugins/lib/plugins/debounce-event-plugin.d.ts +32 -0
- package/cdk/event-plugins/lib/plugins/defer-event-plugin.d.ts +24 -0
- package/cdk/expandable/lib/directives/expandable-container.directive.d.ts +41 -0
- package/cdk/expandable/lib/directives/expandable-item.directive.d.ts +47 -0
- package/cdk/option-control/lib/option-control.d.ts +47 -0
- package/cdk/radio-group-control/lib/radio-control.directive.d.ts +8 -0
- package/cdk/radio-group-control/lib/radio-group-control.directive.d.ts +11 -0
- package/components/accordion/lib/accordion.component.d.ts +8 -0
- package/components/accordion/lib/components/accordion-item/accordion-item.component.d.ts +37 -1
- package/components/accordion/lib/directives/accordion-item-title.d.ts +3 -0
- package/components/action-group/action-group.component.d.ts +6 -0
- package/components/area-header/area-header.component.d.ts +8 -0
- package/components/area-header/directives/area-header-content.directive.d.ts +3 -0
- package/components/area-header/directives/area-header-subtitle.directive.d.ts +3 -0
- package/components/autocomplete/lib/autocomplete.component.d.ts +17 -0
- package/components/avatar/lib/avatar.component.d.ts +8 -0
- package/components/badge/lib/badge.component.d.ts +10 -0
- package/components/badge/lib/badge.directive.d.ts +15 -0
- package/components/bar/lib/bar.component.d.ts +7 -0
- package/components/bar/lib/directives/bar-button.directive.d.ts +3 -0
- package/components/bar/lib/directives/bar-label.directive.d.ts +3 -0
- package/components/breadcrumbs/lib/breadcrumbs.component.d.ts +3 -0
- package/components/button/lib/button.component.d.ts +10 -0
- package/components/button-group/lib/button-group.component.d.ts +15 -0
- package/components/calendar/lib/calendar.component.d.ts +48 -0
- package/components/calendar/lib/calendar.config.d.ts +41 -93
- package/components/calendar/lib/calendar.service.d.ts +48 -0
- package/components/calendar/lib/components/calendar-header/calendar-header.component.d.ts +24 -0
- package/components/calendar/lib/components/calendar-month/calendar-month.component.d.ts +6 -0
- package/components/calendar/lib/components/calendar-year/calendar-year.component.d.ts +6 -0
- package/components/calendar/lib/components/calendar-years/calendar-years.component.d.ts +6 -0
- package/components/calendar/lib/daterange.service.d.ts +16 -0
- package/components/calendar/lib/directives/calendar-cell.directive.d.ts +37 -9
- package/components/calendar/lib/directives/calendar-view.directive.d.ts +41 -9
- package/components/calendar/lib/pipes/date-label.pipe.d.ts +12 -21
- package/components/calendar/lib/services/calendar-month.service.d.ts +1 -0
- package/components/calendar/lib/services/calendar-year.service.d.ts +1 -0
- package/components/calendar/lib/services/calendar-years.service.d.ts +1 -0
- package/components/calendar/lib/utils/check-cell-in-range.d.ts +1 -0
- package/components/calendar/lib/utils/check-identical-date.d.ts +1 -0
- package/components/calendar/lib/utils/get-A11y-label.d.ts +2 -2
- package/components/calendar/lib/utils/is-date-disabled.d.ts +1 -0
- package/components/calendar/lib/utils/parse-date.d.ts +1 -0
- package/components/calendar/lib/utils/validate-daterange.d.ts +1 -0
- package/components/calendar/lib/utils/validate-max-date.d.ts +1 -0
- package/components/calendar/lib/utils/validate-min-date.d.ts +1 -0
- package/components/calendar/lib/utils/validate-next-date-set.d.ts +1 -0
- package/components/calendar/lib/utils/validate-previous-date-set.d.ts +1 -0
- package/components/checkbox/lib/checkbox.component.d.ts +32 -0
- package/components/checkbox/lib/checkbox.validator.d.ts +23 -0
- package/components/chip/lib/components/chip/chip.component.d.ts +14 -0
- package/components/chip/lib/components/chip-list/chip-list.component.d.ts +3 -0
- package/components/chip/lib/components/chip-list-row/chip-list-row.component.d.ts +3 -0
- package/components/circular-progress/lib/circular-progress.component.d.ts +20 -0
- package/components/content-box/lib/content-box.component.d.ts +3 -0
- package/components/content-box/lib/directives/content-box-footer.directive.d.ts +3 -0
- package/components/content-box/lib/directives/content-box-header.directive.d.ts +3 -0
- package/components/datepicker/lib/datepicker.component.d.ts +47 -0
- package/components/datepicker/lib/datepicker.config.d.ts +19 -0
- package/components/datepicker/lib/directives/datepicker-input-control.directive.d.ts +30 -0
- package/components/datepicker/lib/utils/get-datepicker-input-pattern.d.ts +2 -0
- package/components/datepicker/lib/utils/get-datepicker-input-value-as-date.d.ts +1 -0
- package/components/daterangepicker/lib/daterangepicker.component.d.ts +89 -0
- package/components/daterangepicker/lib/daterangepicker.config.d.ts +19 -0
- package/components/daterangepicker/lib/directives/daterangepicker-input-control.directive.d.ts +30 -0
- package/components/daterangepicker/lib/range.validator.d.ts +15 -0
- package/components/daterangepicker/lib/required.validator.d.ts +6 -0
- package/components/daterangepicker/lib/utils/get-daterangepicker-input-pattern.d.ts +2 -0
- package/components/daterangepicker/lib/utils/get-daterangepicker-input-value-as-date.d.ts +1 -0
- package/components/dropdown/lib/dropdown.component.d.ts +16 -0
- package/components/dropdown/lib/dropdown.directive.d.ts +67 -0
- package/components/dropdown/lib/helpers/close-current-dropdown.d.ts +5 -0
- package/components/error-page/lib/error-page.component.d.ts +7 -0
- package/components/error-page/lib/error-page.config.d.ts +18 -0
- package/components/footer/lib/footer.component.d.ts +9 -6
- package/components/footer/lib/footer.config.d.ts +2 -0
- package/components/form-field/lib/components/form-field-info/form-field-info.component.d.ts +13 -0
- package/components/form-field/lib/components/form-group/form-group.component.d.ts +16 -0
- package/components/form-field/lib/directives/form-field-control.directive.d.ts +5 -0
- package/components/form-field/lib/directives/form-field-error.directive.d.ts +6 -0
- package/components/form-field/lib/directives/form-field-hint.directive.d.ts +3 -0
- package/components/form-field/lib/directives/form-field-label.directive.d.ts +3 -0
- package/components/form-field/lib/directives/form.directive.d.ts +13 -0
- package/components/form-field/lib/form-field.component.d.ts +20 -0
- package/components/form-field/lib/form-field.service.d.ts +42 -0
- package/components/form-field/lib/services/form-field-error.service.d.ts +24 -0
- package/components/header/lib/directives/header-avatar.directive.d.ts +4 -0
- package/components/header/lib/directives/header-title.directive.d.ts +3 -0
- package/components/header/lib/header.component.d.ts +3 -0
- package/components/header-navigation/lib/directives/header-navigation-link.directive.d.ts +3 -0
- package/components/header-navigation/lib/header-navigation.component.d.ts +6 -0
- package/components/icon/lib/helpers/unpack-icon-identifier.d.ts +14 -0
- package/components/icon/lib/icon.component.d.ts +24 -0
- package/components/icon/lib/icon.config.d.ts +26 -0
- package/components/inline-message/lib/inline-message.component.d.ts +13 -0
- package/components/link/link.directive.d.ts +3 -0
- package/components/list/lib/components/expandable-list-item/expandable-list-item.component.d.ts +6 -0
- package/components/list/lib/components/list-item/list-item.component.d.ts +17 -1
- package/components/list/lib/list.component.d.ts +5 -0
- package/components/loading-spinner/lib/loading-spinner.component.d.ts +8 -0
- package/components/loading-spinner/lib/loading-spinner.directive.d.ts +22 -0
- package/components/logo/logo.directive.d.ts +15 -0
- package/components/main-menu/lib/directives/main-menu-button.directive.d.ts +5 -1
- package/components/main-menu/lib/directives/main-menu-close.directive.d.ts +3 -0
- package/components/main-menu/lib/directives/main-menu-item.directive.d.ts +16 -0
- package/components/main-menu/lib/helpers/create-main-menu-links.d.ts +1 -0
- package/components/main-menu/lib/main-menu.component.d.ts +42 -0
- package/components/main-menu/lib/main-menu.config.d.ts +31 -0
- package/components/main-menu/lib/main-menu.service.d.ts +28 -0
- package/components/mainfilter-group/lib/mainfilter-group.component.d.ts +4 -0
- package/components/menu/lib/directives/menu-item.directive.d.ts +6 -0
- package/components/menu/lib/menu.component.d.ts +13 -1
- package/components/menu/lib/menu.directive.d.ts +31 -0
- package/components/modal/lib/components/basic-modal/basic-modal.component.d.ts +14 -0
- package/components/modal/lib/components/modal-footer/modal-footer.component.d.ts +3 -0
- package/components/modal/lib/components/modal-header/modal-header.component.d.ts +9 -0
- package/components/modal/lib/components/modal-hero/modal-hero.component.d.ts +21 -0
- package/components/modal/lib/directives/modal-close.directive.d.ts +25 -1
- package/components/modal/lib/directives/modal-content.directive.d.ts +3 -0
- package/components/modal/lib/directives/modal-dismiss.directive.d.ts +18 -1
- package/components/modal/lib/helpers/inject-modal-ref.d.ts +21 -0
- package/components/modal/lib/helpers/provide-modal-ref.d.ts +9 -0
- package/components/modal/lib/modal.component.d.ts +25 -0
- package/components/modal/lib/modal.config.d.ts +33 -0
- package/components/modal/lib/modal.directive.d.ts +29 -0
- package/components/modal/lib/modal.service.d.ts +54 -0
- package/components/modal/lib/models/modal-ref.d.ts +34 -0
- package/components/navigation-back/lib/navigation-back.component.d.ts +3 -0
- package/components/notification/lib/components/notification-center/notification-center.component.d.ts +0 -2
- package/components/notification/lib/directives/notification-center.directive.d.ts +18 -4
- package/components/notification/lib/helpers/get-notifications-by-tag.d.ts +1 -0
- package/components/notification/lib/helpers/sort-notifications.d.ts +1 -0
- package/components/notification/lib/helpers/to-notification-collection.d.ts +1 -0
- package/components/notification/lib/models/notification-feature.d.ts +15 -0
- package/components/notification/lib/notification.config.d.ts +54 -0
- package/components/notification/lib/notification.logger.d.ts +1 -0
- package/components/notification/lib/notification.service.d.ts +55 -0
- package/components/notification/lib/notification.tokens.d.ts +3 -0
- package/components/notification/lib/services/notification-center.service.d.ts +9 -0
- package/components/paginator/lib/paginator.component.d.ts +89 -0
- package/components/paginator/lib/paginator.config.d.ts +24 -2
- package/components/progress/lib/progress.component.d.ts +15 -0
- package/components/radio-group/lib/radio-group.component.d.ts +11 -0
- package/components/rail-navigation/lib/components/rail-navigation-item/rail-navigation-item.component.d.ts +19 -0
- package/components/rail-navigation/lib/rail-navigation.component.d.ts +26 -0
- package/components/rich-list/lib/components/rich-list-content/rich-list-content.component.d.ts +4 -0
- package/components/rich-list/lib/components/rich-list-header/rich-list-header.component.d.ts +4 -0
- package/components/rich-list/lib/components/rich-list-item/rich-list-item.component.d.ts +9 -1
- package/components/rich-list/lib/rich-list.component.d.ts +9 -2
- package/components/select/lib/components/select-option/select-option.component.d.ts +39 -2
- package/components/select/lib/directives/select-input-control.directive.d.ts +11 -0
- package/components/select/lib/pipes/select-search-filter.pipe.d.ts +10 -0
- package/components/select/lib/select.component.d.ts +59 -0
- package/components/slider/lib/slider.directive.d.ts +19 -0
- package/components/spinbox/lib/spinbox.component.d.ts +16 -0
- package/components/switch/lib/switch.component.d.ts +10 -0
- package/components/switch/lib/switch.validator.d.ts +12 -0
- package/components/tab-bar/lib/components/tab-bar-item/tab-bar-item.component.d.ts +28 -0
- package/components/tab-bar/lib/tab-bar.component.d.ts +69 -0
- package/components/table/lib/components/check-cell/check-cell.component.d.ts +18 -0
- package/components/table/lib/components/header-title/header-title.component.d.ts +33 -1
- package/components/table/lib/directives/table-cell.directive.d.ts +4 -0
- package/components/table/lib/directives/table-row.directive.d.ts +4 -0
- package/components/table/lib/table.component.d.ts +36 -0
- package/components/timepicker/lib/timepicker.component.d.ts +11 -2
- package/components/timepicker/lib/utils/generate-time-stamps.d.ts +2 -1
- package/components/timepicker/lib/utils/ngx-mask-helper.d.ts +2 -2
- package/components/toast/lib/toast.config.d.ts +26 -0
- package/components/toast/lib/toast.service.d.ts +35 -0
- package/components/toggle-button-group/lib/components/toggle-button/toggle-button.component.d.ts +11 -0
- package/components/toggle-button-group/lib/toggle-button-group.component.d.ts +12 -0
- package/components/tooltip/lib/tooltip.component.d.ts +20 -0
- package/components/tooltip/lib/tooltip.directive.d.ts +35 -0
- package/components/wizard/lib/components/wizard-step/wizard-step.component.d.ts +34 -0
- package/components/wizard/lib/wizard.component.d.ts +20 -0
- package/esm2022/animations/lib/expand.mjs +45 -1
- package/esm2022/animations/lib/fade.mjs +71 -1
- package/esm2022/animations/lib/slide.mjs +22 -1
- package/esm2022/animations/lib/wait-for-child-animations.mjs +39 -1
- package/esm2022/breakpoints/lib/breakpoints.config.mjs +39 -1
- package/esm2022/breakpoints/lib/breakpoints.service.mjs +44 -1
- package/esm2022/breakpoints/lib/directives/match-breakpoints.directive.mjs +37 -1
- package/esm2022/breakpoints/lib/helpers/configure-breakpoint.mjs +20 -1
- package/esm2022/cdk/a11y/lib/directives/interactive.directive.mjs +33 -1
- package/esm2022/cdk/a11y/lib/directives/list-focus-manager-option.directive.mjs +23 -1
- package/esm2022/cdk/a11y/lib/directives/list-focus-manager.directive.mjs +18 -1
- package/esm2022/cdk/active-indicator/lib/active-indicator.directive.mjs +64 -1
- package/esm2022/cdk/autocomplete-control/lib/autocomplete-control.mjs +39 -1
- package/esm2022/cdk/checkbox-control/lib/checkbox-control.directive.mjs +4 -1
- package/esm2022/cdk/connected-overlay/lib/connected-overlay.service.mjs +45 -1
- package/esm2022/cdk/connected-overlay/lib/helpers/compute-overlay-position.mjs +11 -1
- package/esm2022/cdk/connected-overlay/lib/models/connected-overlay-ref.mjs +50 -1
- package/esm2022/cdk/custom-form-control/lib/custom-form-control.mjs +109 -3
- package/esm2022/cdk/custom-form-control/lib/input-control.directive.mjs +76 -1
- package/esm2022/cdk/dynamic-view/lib/dynamic-view.directive.mjs +18 -1
- package/esm2022/cdk/dynamic-view/lib/dynamic-view.service.mjs +31 -1
- package/esm2022/cdk/dynamic-view/lib/helpers/create-projectable-nodes.mjs +23 -1
- package/esm2022/cdk/dynamic-view/lib/helpers/is-dynamic-text-content.mjs +23 -1
- package/esm2022/cdk/dynamic-view/lib/helpers/is-dynamic-view.mjs +23 -1
- package/esm2022/cdk/dynamic-view/lib/models/dynamic-component-ref.mjs +40 -1
- package/esm2022/cdk/dynamic-view/lib/models/dynamic-template-ref.mjs +37 -1
- package/esm2022/cdk/event-plugins/lib/event-plugins.config.mjs +36 -1
- package/esm2022/cdk/event-plugins/lib/models/event-plugin.mjs +45 -1
- package/esm2022/cdk/event-plugins/lib/plugins/debounce-event-plugin.mjs +33 -1
- package/esm2022/cdk/event-plugins/lib/plugins/defer-event-plugin.mjs +25 -1
- package/esm2022/cdk/expandable/lib/directives/expandable-container.directive.mjs +42 -1
- package/esm2022/cdk/expandable/lib/directives/expandable-item.directive.mjs +48 -1
- package/esm2022/cdk/option-control/lib/option-control.mjs +48 -1
- package/esm2022/cdk/radio-group-control/lib/radio-control.directive.mjs +9 -1
- package/esm2022/cdk/radio-group-control/lib/radio-group-control.directive.mjs +12 -1
- package/esm2022/components/accordion/lib/accordion.component.mjs +9 -1
- package/esm2022/components/accordion/lib/components/accordion-item/accordion-item.component.mjs +31 -1
- package/esm2022/components/accordion/lib/directives/accordion-item-title.mjs +4 -1
- package/esm2022/components/action-group/action-group.component.mjs +7 -1
- package/esm2022/components/area-header/area-header.component.mjs +9 -1
- package/esm2022/components/area-header/directives/area-header-content.directive.mjs +4 -1
- package/esm2022/components/area-header/directives/area-header-subtitle.directive.mjs +4 -1
- package/esm2022/components/autocomplete/lib/autocomplete.component.mjs +18 -1
- package/esm2022/components/avatar/lib/avatar.component.mjs +9 -1
- package/esm2022/components/badge/lib/badge.component.mjs +11 -1
- package/esm2022/components/badge/lib/badge.directive.mjs +16 -1
- package/esm2022/components/bar/lib/bar.component.mjs +8 -1
- package/esm2022/components/bar/lib/directives/bar-button.directive.mjs +4 -1
- package/esm2022/components/bar/lib/directives/bar-label.directive.mjs +4 -1
- package/esm2022/components/breadcrumbs/lib/breadcrumbs.component.mjs +4 -1
- package/esm2022/components/button/lib/button.component.mjs +11 -1
- package/esm2022/components/button-group/lib/button-group.component.mjs +16 -1
- package/esm2022/components/calendar/lib/calendar.component.mjs +35 -1
- package/esm2022/components/calendar/lib/calendar.config.mjs +18 -12
- package/esm2022/components/calendar/lib/calendar.service.mjs +49 -1
- package/esm2022/components/calendar/lib/components/calendar-header/calendar-header.component.mjs +19 -1
- package/esm2022/components/calendar/lib/components/calendar-month/calendar-month.component.mjs +9 -3
- package/esm2022/components/calendar/lib/components/calendar-year/calendar-year.component.mjs +9 -3
- package/esm2022/components/calendar/lib/components/calendar-years/calendar-years.component.mjs +9 -3
- package/esm2022/components/calendar/lib/daterange.service.mjs +17 -1
- package/esm2022/components/calendar/lib/directives/calendar-cell.directive.mjs +27 -2
- package/esm2022/components/calendar/lib/directives/calendar-view.directive.mjs +39 -1
- package/esm2022/components/calendar/lib/pipes/date-label.pipe.mjs +27 -9
- package/esm2022/components/calendar/lib/services/calendar-month.service.mjs +2 -1
- package/esm2022/components/calendar/lib/services/calendar-year.service.mjs +2 -1
- package/esm2022/components/calendar/lib/services/calendar-years.service.mjs +2 -1
- package/esm2022/components/calendar/lib/utils/check-cell-in-range.mjs +2 -1
- package/esm2022/components/calendar/lib/utils/check-identical-date.mjs +2 -1
- package/esm2022/components/calendar/lib/utils/get-A11y-label.mjs +11 -8
- package/esm2022/components/calendar/lib/utils/is-date-disabled.mjs +2 -1
- package/esm2022/components/calendar/lib/utils/parse-date.mjs +2 -1
- package/esm2022/components/calendar/lib/utils/validate-daterange.mjs +2 -1
- package/esm2022/components/calendar/lib/utils/validate-max-date.mjs +2 -1
- package/esm2022/components/calendar/lib/utils/validate-min-date.mjs +2 -1
- package/esm2022/components/calendar/lib/utils/validate-next-date-set.mjs +2 -1
- package/esm2022/components/calendar/lib/utils/validate-previous-date-set.mjs +2 -1
- package/esm2022/components/checkbox/lib/checkbox.component.mjs +33 -1
- package/esm2022/components/checkbox/lib/checkbox.validator.mjs +24 -1
- package/esm2022/components/chip/lib/components/chip/chip.component.mjs +15 -1
- package/esm2022/components/chip/lib/components/chip-list/chip-list.component.mjs +4 -1
- package/esm2022/components/chip/lib/components/chip-list-row/chip-list-row.component.mjs +4 -1
- package/esm2022/components/circular-progress/lib/circular-progress.component.mjs +21 -1
- package/esm2022/components/content-box/lib/content-box.component.mjs +4 -1
- package/esm2022/components/content-box/lib/directives/content-box-footer.directive.mjs +4 -1
- package/esm2022/components/content-box/lib/directives/content-box-header.directive.mjs +4 -1
- package/esm2022/components/datepicker/lib/datepicker.component.mjs +33 -1
- package/esm2022/components/datepicker/lib/datepicker.config.mjs +20 -1
- package/esm2022/components/datepicker/lib/directives/datepicker-input-control.directive.mjs +31 -1
- package/esm2022/components/datepicker/lib/utils/get-datepicker-input-pattern.mjs +3 -1
- package/esm2022/components/datepicker/lib/utils/get-datepicker-input-value-as-date.mjs +2 -1
- package/esm2022/components/daterangepicker/lib/daterangepicker.component.mjs +65 -1
- package/esm2022/components/daterangepicker/lib/daterangepicker.config.mjs +20 -1
- package/esm2022/components/daterangepicker/lib/directives/daterangepicker-input-control.directive.mjs +31 -1
- package/esm2022/components/daterangepicker/lib/range.validator.mjs +16 -1
- package/esm2022/components/daterangepicker/lib/required.validator.mjs +15 -1
- package/esm2022/components/daterangepicker/lib/utils/get-daterangepicker-input-pattern.mjs +3 -1
- package/esm2022/components/daterangepicker/lib/utils/get-daterangepicker-input-value-as-date.mjs +2 -1
- package/esm2022/components/dropdown/lib/dropdown.component.mjs +8 -1
- package/esm2022/components/dropdown/lib/dropdown.directive.mjs +55 -1
- package/esm2022/components/dropdown/lib/helpers/close-current-dropdown.mjs +6 -1
- package/esm2022/components/error-page/lib/error-page.component.mjs +8 -1
- package/esm2022/components/error-page/lib/error-page.config.mjs +9 -1
- package/esm2022/components/footer/lib/footer.component.mjs +10 -7
- package/esm2022/components/footer/lib/footer.config.mjs +3 -1
- package/esm2022/components/form-field/lib/components/form-field-info/form-field-info.component.mjs +14 -1
- package/esm2022/components/form-field/lib/components/form-group/form-group.component.mjs +13 -1
- package/esm2022/components/form-field/lib/directives/form-field-control.directive.mjs +6 -1
- package/esm2022/components/form-field/lib/directives/form-field-error.directive.mjs +4 -1
- package/esm2022/components/form-field/lib/directives/form-field-hint.directive.mjs +4 -1
- package/esm2022/components/form-field/lib/directives/form-field-label.directive.mjs +4 -1
- package/esm2022/components/form-field/lib/directives/form.directive.mjs +14 -1
- package/esm2022/components/form-field/lib/form-field.component.mjs +14 -1
- package/esm2022/components/form-field/lib/form-field.service.mjs +43 -1
- package/esm2022/components/form-field/lib/services/form-field-error.service.mjs +25 -1
- package/esm2022/components/header/lib/directives/header-avatar.directive.mjs +5 -1
- package/esm2022/components/header/lib/directives/header-title.directive.mjs +4 -1
- package/esm2022/components/header/lib/header.component.mjs +4 -1
- package/esm2022/components/header-navigation/lib/directives/header-navigation-link.directive.mjs +4 -1
- package/esm2022/components/header-navigation/lib/header-navigation.component.mjs +4 -1
- package/esm2022/components/icon/lib/helpers/unpack-icon-identifier.mjs +15 -1
- package/esm2022/components/icon/lib/icon.component.mjs +25 -1
- package/esm2022/components/icon/lib/icon.config.mjs +20 -1
- package/esm2022/components/inline-message/lib/inline-message.component.mjs +14 -1
- package/esm2022/components/link/link.directive.mjs +4 -1
- package/esm2022/components/list/lib/components/expandable-list-item/expandable-list-item.component.mjs +7 -1
- package/esm2022/components/list/lib/components/list-item/list-item.component.mjs +18 -2
- package/esm2022/components/list/lib/list.component.mjs +6 -1
- package/esm2022/components/loading-spinner/lib/loading-spinner.component.mjs +10 -2
- package/esm2022/components/loading-spinner/lib/loading-spinner.directive.mjs +23 -1
- package/esm2022/components/logo/logo.directive.mjs +16 -1
- package/esm2022/components/main-menu/lib/directives/main-menu-button.directive.mjs +5 -1
- package/esm2022/components/main-menu/lib/directives/main-menu-close.directive.mjs +4 -1
- package/esm2022/components/main-menu/lib/directives/main-menu-item.directive.mjs +17 -1
- package/esm2022/components/main-menu/lib/helpers/create-main-menu-links.mjs +2 -1
- package/esm2022/components/main-menu/lib/main-menu.component.mjs +37 -1
- package/esm2022/components/main-menu/lib/main-menu.config.mjs +32 -1
- package/esm2022/components/main-menu/lib/main-menu.service.mjs +29 -1
- package/esm2022/components/mainfilter-group/lib/mainfilter-group.component.mjs +5 -1
- package/esm2022/components/menu/lib/directives/menu-item.directive.mjs +7 -1
- package/esm2022/components/menu/lib/menu.component.mjs +13 -1
- package/esm2022/components/menu/lib/menu.directive.mjs +19 -1
- package/esm2022/components/modal/lib/components/basic-modal/basic-modal.component.mjs +15 -1
- package/esm2022/components/modal/lib/components/modal-footer/modal-footer.component.mjs +4 -1
- package/esm2022/components/modal/lib/components/modal-header/modal-header.component.mjs +4 -1
- package/esm2022/components/modal/lib/components/modal-hero/modal-hero.component.mjs +12 -1
- package/esm2022/components/modal/lib/directives/modal-close.directive.mjs +25 -1
- package/esm2022/components/modal/lib/directives/modal-content.directive.mjs +4 -1
- package/esm2022/components/modal/lib/directives/modal-dismiss.directive.mjs +18 -1
- package/esm2022/components/modal/lib/helpers/inject-modal-ref.mjs +22 -1
- package/esm2022/components/modal/lib/helpers/provide-modal-ref.mjs +10 -1
- package/esm2022/components/modal/lib/modal.component.mjs +21 -2
- package/esm2022/components/modal/lib/modal.config.mjs +34 -1
- package/esm2022/components/modal/lib/modal.directive.mjs +25 -1
- package/esm2022/components/modal/lib/modal.service.mjs +39 -1
- package/esm2022/components/modal/lib/models/modal-ref.mjs +34 -1
- package/esm2022/components/navigation-back/lib/navigation-back.component.mjs +4 -1
- package/esm2022/components/notification/lib/components/notification-center/notification-center.component.mjs +1 -3
- package/esm2022/components/notification/lib/directives/notification-center.directive.mjs +19 -5
- package/esm2022/components/notification/lib/helpers/get-notifications-by-tag.mjs +2 -1
- package/esm2022/components/notification/lib/helpers/sort-notifications.mjs +2 -1
- package/esm2022/components/notification/lib/helpers/to-notification-collection.mjs +2 -1
- package/esm2022/components/notification/lib/models/notification-feature.mjs +16 -1
- package/esm2022/components/notification/lib/notification.config.mjs +45 -1
- package/esm2022/components/notification/lib/notification.logger.mjs +2 -1
- package/esm2022/components/notification/lib/notification.service.mjs +56 -1
- package/esm2022/components/notification/lib/notification.tokens.mjs +4 -1
- package/esm2022/components/notification/lib/services/notification-center.service.mjs +10 -1
- package/esm2022/components/paginator/lib/paginator.component.mjs +90 -1
- package/esm2022/components/paginator/lib/paginator.config.mjs +29 -1
- package/esm2022/components/progress/lib/progress.component.mjs +16 -1
- package/esm2022/components/radio-group/lib/radio-group.component.mjs +13 -2
- package/esm2022/components/rail-navigation/lib/components/rail-navigation-item/rail-navigation-item.component.mjs +17 -1
- package/esm2022/components/rail-navigation/lib/rail-navigation.component.mjs +27 -1
- package/esm2022/components/rich-list/lib/components/rich-list-content/rich-list-content.component.mjs +5 -1
- package/esm2022/components/rich-list/lib/components/rich-list-header/rich-list-header.component.mjs +5 -1
- package/esm2022/components/rich-list/lib/components/rich-list-item/rich-list-item.component.mjs +10 -2
- package/esm2022/components/rich-list/lib/rich-list.component.mjs +10 -3
- package/esm2022/components/select/lib/components/select-option/select-option.component.mjs +47 -6
- package/esm2022/components/select/lib/directives/select-input-control.directive.mjs +12 -2
- package/esm2022/components/select/lib/pipes/select-search-filter.pipe.mjs +11 -1
- package/esm2022/components/select/lib/select.component.mjs +56 -2
- package/esm2022/components/slider/lib/slider.directive.mjs +20 -1
- package/esm2022/components/spinbox/lib/spinbox.component.mjs +17 -1
- package/esm2022/components/switch/lib/switch.component.mjs +11 -1
- package/esm2022/components/switch/lib/switch.validator.mjs +13 -1
- package/esm2022/components/tab-bar/lib/components/tab-bar-item/tab-bar-item.component.mjs +29 -1
- package/esm2022/components/tab-bar/lib/tab-bar.component.mjs +70 -1
- package/esm2022/components/table/lib/components/check-cell/check-cell.component.mjs +19 -1
- package/esm2022/components/table/lib/components/header-title/header-title.component.mjs +30 -2
- package/esm2022/components/table/lib/directives/table-cell.directive.mjs +5 -1
- package/esm2022/components/table/lib/directives/table-row.directive.mjs +5 -1
- package/esm2022/components/table/lib/table.component.mjs +30 -1
- package/esm2022/components/timepicker/lib/timepicker.component.mjs +15 -6
- package/esm2022/components/timepicker/lib/utils/generate-time-stamps.mjs +5 -3
- package/esm2022/components/timepicker/lib/utils/ngx-mask-helper.mjs +3 -3
- package/esm2022/components/toast/lib/toast.config.mjs +27 -1
- package/esm2022/components/toast/lib/toast.service.mjs +36 -1
- package/esm2022/components/toggle-button-group/lib/components/toggle-button/toggle-button.component.mjs +12 -1
- package/esm2022/components/toggle-button-group/lib/toggle-button-group.component.mjs +14 -2
- package/esm2022/components/tooltip/lib/tooltip.component.mjs +18 -1
- package/esm2022/components/tooltip/lib/tooltip.directive.mjs +36 -1
- package/esm2022/components/wizard/lib/components/wizard-step/wizard-step.component.mjs +35 -1
- package/esm2022/components/wizard/lib/wizard.component.mjs +21 -1
- package/esm2022/internal/lib/helpers/fast-equals.mjs +3 -0
- package/esm2022/internal/lib/helpers/index.mjs +2 -1
- package/esm2022/internal/translate/lib/translate.config.mjs +32 -1
- package/esm2022/internal/translate/lib/translate.service.mjs +30 -1
- package/esm2022/lib/controllers/controller.mjs +26 -1
- package/esm2022/lib/controllers/disabled.controller.mjs +60 -1
- package/esm2022/lib/controllers/readonly.controller.mjs +57 -1
- package/esm2022/lib/directives/click-outside.directive.mjs +30 -1
- package/esm2022/lib/directives/delegate-focus.directive.mjs +15 -1
- package/esm2022/lib/services/window-ref.mjs +67 -1
- package/esm2022/lib/tokens/identity-matcher.mjs +25 -1
- package/esm2022/lib/tokens/string-search-handler.mjs +25 -1
- package/esm2022/lib/tokens/stringify.mjs +26 -1
- package/esm2022/localization/lib/features/with-http-language-header.mjs +54 -1
- package/esm2022/localization/lib/features/with-http-language-query-param.mjs +52 -1
- package/esm2022/localization/lib/loaders/browser-language-loader.mjs +33 -1
- package/esm2022/localization/lib/localization.config.mjs +73 -5
- package/esm2022/localization/lib/localization.logger.mjs +3 -0
- package/esm2022/localization/lib/localization.service.mjs +59 -29
- package/esm2022/rxjs/index.mjs +2 -2
- package/esm2022/rxjs/lib/delay-until.mjs +23 -1
- package/esm2022/rxjs/lib/from-element-mutation.mjs +22 -1
- package/esm2022/rxjs/lib/from-element-resize.mjs +25 -1
- package/esm2022/rxjs/lib/from-events.mjs +25 -1
- package/esm2022/rxjs/lib/from-query-list.mjs +24 -0
- package/esm2022/sdk/lib/application-environment.mjs +51 -1
- package/esm2022/theming/lib/helpers/prefers-dark-theme.mjs +19 -1
- package/esm2022/theming/lib/helpers/resolve-theme.mjs +26 -1
- package/esm2022/theming/lib/helpers/theme-storage.mjs +43 -1
- package/esm2022/theming/lib/theming.config.mjs +34 -1
- package/esm2022/theming/lib/theming.service.mjs +32 -1
- package/esm2022/utils/lib/decorators/pure.mjs +52 -1
- package/esm2022/utils/lib/helpers/angular.mjs +37 -1
- package/esm2022/utils/lib/helpers/array.mjs +5 -1
- package/esm2022/utils/lib/helpers/build-url.mjs +21 -1
- package/esm2022/utils/lib/helpers/build-website-url.mjs +3 -2
- package/esm2022/utils/lib/helpers/cache-storage-client.mjs +52 -1
- package/esm2022/utils/lib/helpers/coercion.mjs +18 -1
- package/esm2022/utils/lib/helpers/debounce.mjs +28 -1
- package/esm2022/utils/lib/helpers/defer-fn.mjs +21 -1
- package/esm2022/utils/lib/helpers/dom.mjs +71 -1
- package/esm2022/utils/lib/helpers/get-axis.mjs +21 -1
- package/esm2022/utils/lib/helpers/get-language-code.mjs +18 -1
- package/esm2022/utils/lib/helpers/get-opposite-side.mjs +22 -1
- package/esm2022/utils/lib/helpers/get-side.mjs +18 -1
- package/esm2022/utils/lib/helpers/get-unique-id.mjs +34 -1
- package/esm2022/utils/lib/helpers/match-url.mjs +41 -1
- package/esm2022/utils/lib/helpers/ng-changes.mjs +30 -1
- package/esm2022/utils/lib/helpers/provide-config.mjs +57 -1
- package/esm2022/utils/lib/helpers/queue.mjs +84 -1
- package/esm2022/utils/lib/helpers/type-guards.mjs +58 -1
- package/esm2022/utils/lib/helpers/until-destroyed.mjs +39 -1
- package/fesm2022/odx-angular-animations.mjs +173 -0
- package/fesm2022/odx-angular-animations.mjs.map +1 -1
- package/fesm2022/odx-angular-breakpoints.mjs +136 -0
- package/fesm2022/odx-angular-breakpoints.mjs.map +1 -1
- package/fesm2022/odx-angular-cdk-a11y.mjs +71 -0
- package/fesm2022/odx-angular-cdk-a11y.mjs.map +1 -1
- package/fesm2022/odx-angular-cdk-active-indicator.mjs +63 -0
- package/fesm2022/odx-angular-cdk-active-indicator.mjs.map +1 -1
- package/fesm2022/odx-angular-cdk-autocomplete-control.mjs +38 -0
- package/fesm2022/odx-angular-cdk-autocomplete-control.mjs.map +1 -1
- package/fesm2022/odx-angular-cdk-checkbox-control.mjs +3 -0
- package/fesm2022/odx-angular-cdk-checkbox-control.mjs.map +1 -1
- package/fesm2022/odx-angular-cdk-connected-overlay.mjs +103 -0
- package/fesm2022/odx-angular-cdk-connected-overlay.mjs.map +1 -1
- package/fesm2022/odx-angular-cdk-custom-form-control.mjs +183 -2
- package/fesm2022/odx-angular-cdk-custom-form-control.mjs.map +1 -1
- package/fesm2022/odx-angular-cdk-dynamic-view.mjs +188 -0
- package/fesm2022/odx-angular-cdk-dynamic-view.mjs.map +1 -1
- package/fesm2022/odx-angular-cdk-event-plugins.mjs +135 -0
- package/fesm2022/odx-angular-cdk-event-plugins.mjs.map +1 -1
- package/fesm2022/odx-angular-cdk-expandable.mjs +88 -0
- package/fesm2022/odx-angular-cdk-expandable.mjs.map +1 -1
- package/fesm2022/odx-angular-cdk-option-control.mjs +47 -0
- package/fesm2022/odx-angular-cdk-option-control.mjs.map +1 -1
- package/fesm2022/odx-angular-cdk-radio-group-control.mjs +19 -0
- package/fesm2022/odx-angular-cdk-radio-group-control.mjs.map +1 -1
- package/fesm2022/odx-angular-components-accordion.mjs +41 -0
- package/fesm2022/odx-angular-components-accordion.mjs.map +1 -1
- package/fesm2022/odx-angular-components-action-group.mjs +6 -0
- package/fesm2022/odx-angular-components-action-group.mjs.map +1 -1
- package/fesm2022/odx-angular-components-area-header.mjs +14 -0
- package/fesm2022/odx-angular-components-area-header.mjs.map +1 -1
- package/fesm2022/odx-angular-components-autocomplete.mjs +17 -0
- package/fesm2022/odx-angular-components-autocomplete.mjs.map +1 -1
- package/fesm2022/odx-angular-components-avatar.mjs +8 -0
- package/fesm2022/odx-angular-components-avatar.mjs.map +1 -1
- package/fesm2022/odx-angular-components-badge.mjs +25 -0
- package/fesm2022/odx-angular-components-badge.mjs.map +1 -1
- package/fesm2022/odx-angular-components-bar.mjs +13 -0
- package/fesm2022/odx-angular-components-bar.mjs.map +1 -1
- package/fesm2022/odx-angular-components-breadcrumbs.mjs +3 -0
- package/fesm2022/odx-angular-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/odx-angular-components-button-group.mjs +15 -0
- package/fesm2022/odx-angular-components-button-group.mjs.map +1 -1
- package/fesm2022/odx-angular-components-button.mjs +10 -0
- package/fesm2022/odx-angular-components-button.mjs.map +1 -1
- package/fesm2022/odx-angular-components-calendar.mjs +270 -33
- package/fesm2022/odx-angular-components-calendar.mjs.map +1 -1
- package/fesm2022/odx-angular-components-checkbox.mjs +55 -0
- package/fesm2022/odx-angular-components-checkbox.mjs.map +1 -1
- package/fesm2022/odx-angular-components-chip.mjs +20 -0
- package/fesm2022/odx-angular-components-chip.mjs.map +1 -1
- package/fesm2022/odx-angular-components-circular-progress.mjs +20 -0
- package/fesm2022/odx-angular-components-circular-progress.mjs.map +1 -1
- package/fesm2022/odx-angular-components-content-box.mjs +9 -0
- package/fesm2022/odx-angular-components-content-box.mjs.map +1 -1
- package/fesm2022/odx-angular-components-datepicker.mjs +84 -0
- package/fesm2022/odx-angular-components-datepicker.mjs.map +1 -1
- package/fesm2022/odx-angular-components-daterangepicker.mjs +145 -0
- package/fesm2022/odx-angular-components-daterangepicker.mjs.map +1 -1
- package/fesm2022/odx-angular-components-dropdown.mjs +66 -0
- package/fesm2022/odx-angular-components-dropdown.mjs.map +1 -1
- package/fesm2022/odx-angular-components-error-page.mjs +15 -0
- package/fesm2022/odx-angular-components-error-page.mjs.map +1 -1
- package/fesm2022/odx-angular-components-footer.mjs +11 -6
- package/fesm2022/odx-angular-components-footer.mjs.map +1 -1
- package/fesm2022/odx-angular-components-form-field.mjs +131 -0
- package/fesm2022/odx-angular-components-form-field.mjs.map +1 -1
- package/fesm2022/odx-angular-components-header-navigation.mjs +6 -0
- package/fesm2022/odx-angular-components-header-navigation.mjs.map +1 -1
- package/fesm2022/odx-angular-components-header.mjs +10 -0
- package/fesm2022/odx-angular-components-header.mjs.map +1 -1
- package/fesm2022/odx-angular-components-icon.mjs +57 -0
- package/fesm2022/odx-angular-components-icon.mjs.map +1 -1
- package/fesm2022/odx-angular-components-inline-message.mjs +13 -0
- package/fesm2022/odx-angular-components-inline-message.mjs.map +1 -1
- package/fesm2022/odx-angular-components-link.mjs +3 -0
- package/fesm2022/odx-angular-components-link.mjs.map +1 -1
- package/fesm2022/odx-angular-components-list.mjs +28 -1
- package/fesm2022/odx-angular-components-list.mjs.map +1 -1
- package/fesm2022/odx-angular-components-loading-spinner.mjs +30 -0
- package/fesm2022/odx-angular-components-loading-spinner.mjs.map +1 -1
- package/fesm2022/odx-angular-components-logo.mjs +15 -0
- package/fesm2022/odx-angular-components-logo.mjs.map +1 -1
- package/fesm2022/odx-angular-components-main-menu.mjs +119 -0
- package/fesm2022/odx-angular-components-main-menu.mjs.map +1 -1
- package/fesm2022/odx-angular-components-mainfilter-group.mjs +4 -0
- package/fesm2022/odx-angular-components-mainfilter-group.mjs.map +1 -1
- package/fesm2022/odx-angular-components-menu.mjs +36 -0
- package/fesm2022/odx-angular-components-menu.mjs.map +1 -1
- package/fesm2022/odx-angular-components-modal.mjs +252 -0
- package/fesm2022/odx-angular-components-modal.mjs.map +1 -1
- package/fesm2022/odx-angular-components-navigation-back.mjs +3 -0
- package/fesm2022/odx-angular-components-navigation-back.mjs.map +1 -1
- package/fesm2022/odx-angular-components-notification.mjs +148 -6
- package/fesm2022/odx-angular-components-notification.mjs.map +1 -1
- package/fesm2022/odx-angular-components-paginator.mjs +117 -0
- package/fesm2022/odx-angular-components-paginator.mjs.map +1 -1
- package/fesm2022/odx-angular-components-progress.mjs +15 -0
- package/fesm2022/odx-angular-components-progress.mjs.map +1 -1
- package/fesm2022/odx-angular-components-radio-group.mjs +11 -0
- package/fesm2022/odx-angular-components-radio-group.mjs.map +1 -1
- package/fesm2022/odx-angular-components-rail-navigation.mjs +42 -0
- package/fesm2022/odx-angular-components-rail-navigation.mjs.map +1 -1
- package/fesm2022/odx-angular-components-rich-list.mjs +26 -3
- package/fesm2022/odx-angular-components-rich-list.mjs.map +1 -1
- package/fesm2022/odx-angular-components-select.mjs +122 -7
- package/fesm2022/odx-angular-components-select.mjs.map +1 -1
- package/fesm2022/odx-angular-components-slider.mjs +19 -0
- package/fesm2022/odx-angular-components-slider.mjs.map +1 -1
- package/fesm2022/odx-angular-components-spinbox.mjs +16 -0
- package/fesm2022/odx-angular-components-spinbox.mjs.map +1 -1
- package/fesm2022/odx-angular-components-switch.mjs +22 -0
- package/fesm2022/odx-angular-components-switch.mjs.map +1 -1
- package/fesm2022/odx-angular-components-tab-bar.mjs +97 -0
- package/fesm2022/odx-angular-components-tab-bar.mjs.map +1 -1
- package/fesm2022/odx-angular-components-table.mjs +84 -1
- package/fesm2022/odx-angular-components-table.mjs.map +1 -1
- package/fesm2022/odx-angular-components-timepicker.mjs +20 -9
- package/fesm2022/odx-angular-components-timepicker.mjs.map +1 -1
- package/fesm2022/odx-angular-components-toast.mjs +61 -0
- package/fesm2022/odx-angular-components-toast.mjs.map +1 -1
- package/fesm2022/odx-angular-components-toggle-button-group.mjs +23 -0
- package/fesm2022/odx-angular-components-toggle-button-group.mjs.map +1 -1
- package/fesm2022/odx-angular-components-tooltip.mjs +52 -0
- package/fesm2022/odx-angular-components-tooltip.mjs.map +1 -1
- package/fesm2022/odx-angular-components-wizard.mjs +54 -0
- package/fesm2022/odx-angular-components-wizard.mjs.map +1 -1
- package/fesm2022/odx-angular-internal-translate.mjs +60 -0
- package/fesm2022/odx-angular-internal-translate.mjs.map +1 -1
- package/fesm2022/odx-angular-internal.mjs +4 -1
- package/fesm2022/odx-angular-internal.mjs.map +1 -1
- package/fesm2022/odx-angular-localization.mjs +269 -32
- package/fesm2022/odx-angular-localization.mjs.map +1 -1
- package/fesm2022/odx-angular-rxjs.mjs +115 -5
- package/fesm2022/odx-angular-rxjs.mjs.map +1 -1
- package/fesm2022/odx-angular-sdk.mjs +50 -0
- package/fesm2022/odx-angular-sdk.mjs.map +1 -1
- package/fesm2022/odx-angular-theming.mjs +149 -0
- package/fesm2022/odx-angular-theming.mjs.map +1 -1
- package/fesm2022/odx-angular-utils.mjs +709 -1
- package/fesm2022/odx-angular-utils.mjs.map +1 -1
- package/fesm2022/odx-angular.mjs +322 -0
- package/fesm2022/odx-angular.mjs.map +1 -1
- package/internal/lib/helpers/fast-equals.d.ts +1 -0
- package/internal/lib/helpers/index.d.ts +1 -0
- package/internal/translate/lib/translate.config.d.ts +31 -0
- package/internal/translate/lib/translate.service.d.ts +29 -0
- package/lib/controllers/controller.d.ts +25 -0
- package/lib/controllers/disabled.controller.d.ts +59 -0
- package/lib/controllers/readonly.controller.d.ts +56 -0
- package/lib/directives/click-outside.directive.d.ts +29 -0
- package/lib/directives/delegate-focus.directive.d.ts +14 -0
- package/lib/services/window-ref.d.ts +66 -0
- package/lib/tokens/identity-matcher.d.ts +41 -0
- package/lib/tokens/string-search-handler.d.ts +39 -0
- package/lib/tokens/stringify.d.ts +42 -0
- package/localization/lib/features/with-http-language-header.d.ts +63 -0
- package/localization/lib/features/with-http-language-query-param.d.ts +61 -0
- package/localization/lib/loaders/browser-language-loader.d.ts +32 -0
- package/localization/lib/localization.config.d.ts +81 -2
- package/localization/lib/localization.logger.d.ts +3 -0
- package/localization/lib/localization.service.d.ts +42 -7
- package/package.json +8 -7
- package/rxjs/index.d.ts +1 -1
- package/rxjs/lib/delay-until.d.ts +22 -0
- package/rxjs/lib/from-element-mutation.d.ts +21 -0
- package/rxjs/lib/from-element-resize.d.ts +24 -0
- package/rxjs/lib/from-events.d.ts +24 -0
- package/rxjs/lib/from-query-list.d.ts +22 -0
- package/sdk/lib/application-environment.d.ts +59 -0
- package/theming/lib/helpers/prefers-dark-theme.d.ts +18 -0
- package/theming/lib/helpers/resolve-theme.d.ts +25 -0
- package/theming/lib/helpers/theme-storage.d.ts +42 -0
- package/theming/lib/theming.config.d.ts +46 -0
- package/theming/lib/theming.service.d.ts +31 -0
- package/utils/lib/decorators/pure.d.ts +51 -0
- package/utils/lib/helpers/angular.d.ts +36 -0
- package/utils/lib/helpers/array.d.ts +4 -0
- package/utils/lib/helpers/build-url.d.ts +20 -0
- package/utils/lib/helpers/build-website-url.d.ts +2 -1
- package/utils/lib/helpers/cache-storage-client.d.ts +51 -0
- package/utils/lib/helpers/coercion.d.ts +17 -0
- package/utils/lib/helpers/debounce.d.ts +27 -0
- package/utils/lib/helpers/defer-fn.d.ts +20 -0
- package/utils/lib/helpers/dom.d.ts +70 -0
- package/utils/lib/helpers/get-axis.d.ts +20 -0
- package/utils/lib/helpers/get-language-code.d.ts +17 -0
- package/utils/lib/helpers/get-opposite-side.d.ts +21 -0
- package/utils/lib/helpers/get-side.d.ts +17 -0
- package/utils/lib/helpers/get-unique-id.d.ts +33 -0
- package/utils/lib/helpers/match-url.d.ts +40 -0
- package/utils/lib/helpers/ng-changes.d.ts +52 -0
- package/utils/lib/helpers/provide-config.d.ts +56 -0
- package/utils/lib/helpers/queue.d.ts +83 -0
- package/utils/lib/helpers/type-guards.d.ts +57 -0
- package/utils/lib/helpers/until-destroyed.d.ts +38 -0
- package/esm2022/rxjs/lib/form-query-list.mjs +0 -5
- package/rxjs/lib/form-query-list.d.ts +0 -3
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
import { ValueProvider } from '@angular/core';
|
|
2
2
|
import { ModalRef } from '../models';
|
|
3
|
+
/**
|
|
4
|
+
* Provides a configuration for the Angular dependency injection system to inject a specific instance of `ModalRef`.
|
|
5
|
+
* This function is particularly useful when you want to configure a provider for a `ModalRef` within an Angular module or component.
|
|
6
|
+
*
|
|
7
|
+
* @template D The data type expected by the modal.
|
|
8
|
+
* @template R The result type that the modal will produce.
|
|
9
|
+
* @param {ModalRef<D, R>} modalRef An instance of `ModalRef` to be provided.
|
|
10
|
+
* @returns {ValueProvider} An Angular value provider that can be used in module or component providers arrays.
|
|
11
|
+
*/
|
|
3
12
|
export declare function provideModalRef<D = unknown, R = unknown>(modalRef: ModalRef<D, R>): ValueProvider;
|
|
@@ -2,6 +2,10 @@ import { Injector, OnChanges } from '@angular/core';
|
|
|
2
2
|
import { DynamicContent, DynamicTextContent } from '@odx/angular/cdk/dynamic-view';
|
|
3
3
|
import { NgChanges } from '@odx/angular/utils';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* A component that represents a modal dialog with dynamic content and customizable animations.
|
|
7
|
+
* It supports both modal and sidesheet variants with configurable animations for each type.
|
|
8
|
+
*/
|
|
5
9
|
export declare class ModalComponent implements OnChanges {
|
|
6
10
|
protected readonly modalRef: import("@odx/angular/components/modal").ModalRef<unknown, unknown>;
|
|
7
11
|
protected readonly injector: Injector;
|
|
@@ -9,9 +13,30 @@ export declare class ModalComponent implements OnChanges {
|
|
|
9
13
|
$implicit: import("@odx/angular/components/modal").ModalRef<unknown, unknown>;
|
|
10
14
|
};
|
|
11
15
|
readonly element: import("@angular/core").ElementRef<HTMLElement>;
|
|
16
|
+
/**
|
|
17
|
+
* Size of the modal as a CSS modifier based on modal options.
|
|
18
|
+
*
|
|
19
|
+
* @type {ModalSize}
|
|
20
|
+
*/
|
|
12
21
|
size: import("@odx/angular/components/modal").ModalSize;
|
|
22
|
+
/**
|
|
23
|
+
* Variant of the modal as a CSS modifier that influences animation choices.
|
|
24
|
+
*
|
|
25
|
+
* @type {ModalVariant}
|
|
26
|
+
*/
|
|
13
27
|
variant: import("@odx/angular/components/modal").ModalVariant;
|
|
28
|
+
/**
|
|
29
|
+
* Boolean that indicates if the content is a component type rather than a template.
|
|
30
|
+
*
|
|
31
|
+
* @type {boolean}
|
|
32
|
+
*/
|
|
14
33
|
withComponent: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Dynamic content to be loaded into the modal. Excludes simple textual content
|
|
36
|
+
* to enable complex Angular components or templates.
|
|
37
|
+
*
|
|
38
|
+
* @type {Exclude<DynamicContent, DynamicTextContent>}
|
|
39
|
+
*/
|
|
15
40
|
content: Exclude<DynamicContent, DynamicTextContent>;
|
|
16
41
|
constructor();
|
|
17
42
|
ngOnChanges(changes: NgChanges<ModalComponent>): void;
|
|
@@ -1,3 +1,36 @@
|
|
|
1
1
|
import { ModalInstanceOptions } from './models';
|
|
2
2
|
export type ModalConfig = Omit<ModalInstanceOptions, 'id' | 'host' | 'data'>;
|
|
3
|
+
/**
|
|
4
|
+
* Utilizes `createConfigTokens` to create configuration tokens and utility functions for managing modal configurations.
|
|
5
|
+
* This setup enables easy injection and provision of default global settings for modals throughout the application,
|
|
6
|
+
* fostering consistency and ease of customization.
|
|
7
|
+
*
|
|
8
|
+
* The generated tokens and functions include:
|
|
9
|
+
* - `ModalDefaultConfig`: The default configuration values for modals.
|
|
10
|
+
* - `ModalConfig`: An Angular `InjectionToken` for injecting modal configuration into components or services.
|
|
11
|
+
* - `injectModalConfig`: A utility function for retrieving the current modal configuration, considering any overrides.
|
|
12
|
+
* - `provideModalConfig`: A function that allows specifying overrides to the default modal configuration.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* // Example of providing a custom modal configuration in an Angular module
|
|
17
|
+
* @NgModule({
|
|
18
|
+
* providers: [
|
|
19
|
+
* provideModalConfig({
|
|
20
|
+
* size: ModalSize.LARGE,
|
|
21
|
+
* dismissable: false
|
|
22
|
+
* })
|
|
23
|
+
* ]
|
|
24
|
+
* })
|
|
25
|
+
* class AppModule {}
|
|
26
|
+
*
|
|
27
|
+
* // Example of injecting modal configuration in a component
|
|
28
|
+
* @Component({...})
|
|
29
|
+
* export class MyComponent {
|
|
30
|
+
* constructor(@Inject(ModalConfig) private modalConfig: ModalConfig) {
|
|
31
|
+
* console.log(this.modalConfig.size); // Outputs the size from the provided or default configuration
|
|
32
|
+
* }
|
|
33
|
+
* }
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
3
36
|
export declare const ModalDefaultConfig: ModalConfig, ModalConfig: import("@angular/core").InjectionToken<Partial<ModalConfig>>, injectModalConfig: () => ModalConfig, provideModalConfig: <D extends import("@odx/angular/utils").ConfigDependencies<unknown> = import("@odx/angular/utils").ConfigDependencies<Partial<ModalConfig>>>(config: import("@odx/angular/utils").ConfigProvider<Partial<ModalConfig>, D>) => import("@angular/core").ValueProvider | import("@angular/core").FactoryProvider;
|
|
@@ -2,16 +2,45 @@ import { EventEmitter, OnChanges, OnDestroy, TemplateRef } from '@angular/core';
|
|
|
2
2
|
import { NgChanges } from '@odx/angular/utils';
|
|
3
3
|
import { ModalOptions } from './models';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* A directive that simplifies the creation and management of modals directly from Angular templates.
|
|
7
|
+
* It allows for declarative modal instantiation with full control over modal options, and supports
|
|
8
|
+
* capturing modal close and dismiss events.
|
|
9
|
+
*
|
|
10
|
+
* Usage:
|
|
11
|
+
* Apply `odxModal` to an `<ng-template>` element and bind it to modal options.
|
|
12
|
+
*/
|
|
5
13
|
export declare class ModalDirective implements OnChanges, OnDestroy {
|
|
6
14
|
private readonly modalService;
|
|
7
15
|
private modalRef;
|
|
8
16
|
protected readonly template: TemplateRef<any>;
|
|
17
|
+
/**
|
|
18
|
+
* Options for the modal directive.
|
|
19
|
+
*
|
|
20
|
+
* @type {Partial<ModalOptions> | '' | null}
|
|
21
|
+
*/
|
|
9
22
|
modalOptions?: Partial<ModalOptions> | '' | null;
|
|
23
|
+
/**
|
|
24
|
+
* Event emitter for closing the modal.
|
|
25
|
+
*
|
|
26
|
+
* @emits {any} The result of the modal close event.
|
|
27
|
+
*/
|
|
10
28
|
modalClose: EventEmitter<any>;
|
|
29
|
+
/**
|
|
30
|
+
* Event emitter for dismissing the modal.
|
|
31
|
+
*
|
|
32
|
+
* @emits {any} The result of the modal dismiss event.
|
|
33
|
+
*/
|
|
11
34
|
modalDismiss: EventEmitter<any>;
|
|
12
35
|
ngOnChanges(changes: NgChanges<ModalDirective>): void;
|
|
13
36
|
ngOnDestroy(): void;
|
|
37
|
+
/**
|
|
38
|
+
* Opens the modal based on the provided template and options. Binds modal result and dismissal outputs to EventEmitter properties.
|
|
39
|
+
*/
|
|
14
40
|
open(): void;
|
|
41
|
+
/**
|
|
42
|
+
* Dismisses the currently opened modal.
|
|
43
|
+
*/
|
|
15
44
|
dismiss(): void;
|
|
16
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<ModalDirective, never>;
|
|
17
46
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ModalDirective, "ng-template[odxModal]", ["odxModal"], { "modalOptions": { "alias": "odxModal"; "required": false; }; }, { "modalClose": "odxModalClose"; "modalDismiss": "odxModalDismiss"; }, never, never, true, never>;
|
|
@@ -2,18 +2,72 @@ import { Location } from '@angular/common';
|
|
|
2
2
|
import { TemplateRef } from '@angular/core';
|
|
3
3
|
import { BasicModalOptions, GetModalActionData, ModalOptions, ModalRef, ModalType } from './models';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Service for managing modal dialogs within the application. It supports creating, opening,
|
|
7
|
+
* and dismissing modals dynamically, with comprehensive options for customization and lifecycle management.
|
|
8
|
+
* Utilizes Angular's dynamic view management to instantiate and render modals as needed.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* // Example of using ModalService to open a modal
|
|
13
|
+
* constructor(private modalService: ModalService) {}
|
|
14
|
+
*
|
|
15
|
+
* openModal() {
|
|
16
|
+
* const modalRef = this.modalService.open(MyModalContentComponent, {
|
|
17
|
+
* data: { someData: 'test' },
|
|
18
|
+
* size: ModalSize.SMALL,
|
|
19
|
+
* });
|
|
20
|
+
*
|
|
21
|
+
* modalRef.onClose$.subscribe(result => {
|
|
22
|
+
* console.log('Modal closed with result:', result);
|
|
23
|
+
* });
|
|
24
|
+
* }
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
5
27
|
export declare class ModalService {
|
|
6
28
|
private readonly config;
|
|
7
29
|
private readonly openModals;
|
|
8
30
|
private readonly injector;
|
|
9
31
|
private readonly dynamicViewService;
|
|
32
|
+
/**
|
|
33
|
+
* An observable that emits the current value of the openModals subject.
|
|
34
|
+
*
|
|
35
|
+
* @emits {ModalRef[]} openModals$ - The current array of open modals.
|
|
36
|
+
*/
|
|
10
37
|
readonly openModals$: import("rxjs").Observable<(ModalRef<unknown, unknown> & {
|
|
11
38
|
id: string | number;
|
|
12
39
|
})[]>;
|
|
13
40
|
constructor(location: Location);
|
|
41
|
+
/**
|
|
42
|
+
* Dismisses all open modals.
|
|
43
|
+
*/
|
|
14
44
|
dismissAll(): void;
|
|
45
|
+
/**
|
|
46
|
+
* Retrieves the modal reference by its ID.
|
|
47
|
+
*
|
|
48
|
+
* @template Data The type of data passed to the modal.
|
|
49
|
+
* @template Result The type of result returned by the modal.
|
|
50
|
+
* @param id The ID of the modal.
|
|
51
|
+
* @returns The modal reference if found, otherwise null.
|
|
52
|
+
*/
|
|
15
53
|
getModalById<Data = unknown, Result = unknown>(id: ModalOptions['id']): ModalRef<Data, Result> | null;
|
|
54
|
+
/**
|
|
55
|
+
* Creates a modal with the specified options.
|
|
56
|
+
* @param modal - The basic modal options.
|
|
57
|
+
* @param options - Additional modal options.
|
|
58
|
+
* @returns The reference to the created modal.
|
|
59
|
+
*/
|
|
16
60
|
create<Data extends BasicModalOptions, Result = GetModalActionData<Data>>(modal: Data, options?: Partial<ModalOptions<Data>>): ModalRef<Data, Result>;
|
|
61
|
+
/**
|
|
62
|
+
* Creates and opens a new modal with the specified content and options.
|
|
63
|
+
*
|
|
64
|
+
* @template Data - The type of data passed to the modal for use in its content.
|
|
65
|
+
* @template Result - The type of result expected when the modal is closed.
|
|
66
|
+
* @template T - The content type of the modal, either a `TemplateRef` or a component.
|
|
67
|
+
* @param {ModalType<T, Data, Result> | TemplateRef<T>} content - The content of the modal, either as a `TemplateRef` or a component type.
|
|
68
|
+
* @param {Partial<ModalOptions<Data>>} [options] - Optional configuration options for the modal.
|
|
69
|
+
* @returns {ModalRef<Data, Result>} A reference to the newly opened modal, allowing interaction with and control over the modal instance.
|
|
70
|
+
*/
|
|
17
71
|
open<Data, Result, T>(content: TemplateRef<T>, options?: Partial<ModalOptions<Data>>): ModalRef<Data, Result>;
|
|
18
72
|
open<Data, Result, T = unknown>(content: ModalType<T, Data, Result>, options?: Partial<ModalOptions<Data>>): ModalRef<Data, Result>;
|
|
19
73
|
private attachModal;
|
|
@@ -1,20 +1,54 @@
|
|
|
1
1
|
import { Controller } from '@odx/angular';
|
|
2
2
|
import { ModalOptions } from './modal-options';
|
|
3
|
+
/**
|
|
4
|
+
* A reference to a dynamically created modal, providing methods to manipulate, close, or update the modal's state
|
|
5
|
+
* and options.
|
|
6
|
+
* This class extends the `Controller` base class from `@odx/angular`, adding modal-specific functionalities like
|
|
7
|
+
* handling closures and dismissals.
|
|
8
|
+
*
|
|
9
|
+
* @see {Controller}
|
|
10
|
+
*/
|
|
3
11
|
export declare class ModalRef<Data = unknown, Result = unknown> extends Controller {
|
|
4
12
|
private internalOptions;
|
|
5
13
|
private readonly onClose$$;
|
|
6
14
|
private readonly onDismiss$$;
|
|
15
|
+
/** An observable that emits when the modal is closed with a result. */
|
|
7
16
|
readonly onClose$: import("rxjs").Observable<Result>;
|
|
17
|
+
/** An observable that emits when the modal is dismissed without a result. */
|
|
8
18
|
readonly onDismiss$: import("rxjs").Observable<void>;
|
|
19
|
+
/** An observable that merges the onClose$ and onDismiss$ streams for cases when any kind of teardown is needed. */
|
|
9
20
|
readonly onDestroy$: import("rxjs").Observable<void>;
|
|
21
|
+
/** A method that returns whether the modal is currently active. */
|
|
10
22
|
readonly isActive: () => boolean;
|
|
23
|
+
/** Gets the unique identifier for the modal instance. */
|
|
11
24
|
get id(): string;
|
|
25
|
+
/** Gets the ARIA label ID for the modal title, based on the modal's ID. */
|
|
12
26
|
get modalTitleId(): string;
|
|
27
|
+
/** Gets the data passed to the modal. This is useful for modal initialization. */
|
|
13
28
|
get data(): Data;
|
|
29
|
+
/** Gets the current options for the modal. These options include configurations.
|
|
30
|
+
* @see {ModalOptions}
|
|
31
|
+
*/
|
|
14
32
|
get options(): ModalOptions<Data>;
|
|
15
33
|
constructor(internalOptions: ModalOptions<Data>, isActive: (modalRef: ModalRef<Data, Result>) => boolean);
|
|
34
|
+
/**
|
|
35
|
+
* Updates the modal's options.
|
|
36
|
+
*
|
|
37
|
+
* @param {Partial<ModalOptions<Data>>} options A partial set of options to update.
|
|
38
|
+
*/
|
|
16
39
|
update(options: Partial<ModalOptions<Data>>): void;
|
|
40
|
+
/**
|
|
41
|
+
* Dismisses the modal. This does not result in an output value.
|
|
42
|
+
*
|
|
43
|
+
* @param {boolean} [force=false] Whether to force dismissal regardless of the `canDismiss` condition.
|
|
44
|
+
*/
|
|
17
45
|
dismiss(force?: boolean): void;
|
|
46
|
+
/**
|
|
47
|
+
* Closes the modal with a result.
|
|
48
|
+
*
|
|
49
|
+
* @param {Result} result The result to emit when the modal closes.
|
|
50
|
+
*/
|
|
18
51
|
close(result: Result): void;
|
|
52
|
+
/** Completes the onClose and onDismiss streams and cleans up resources. */
|
|
19
53
|
destroy(): void;
|
|
20
54
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* Represents a navigation back component.
|
|
4
|
+
*/
|
|
2
5
|
export declare class NavigationBackComponent {
|
|
3
6
|
readonly element: import("@angular/core").ElementRef<HTMLButtonElement | HTMLLinkElement>;
|
|
4
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<NavigationBackComponent, never>;
|
|
@@ -5,8 +5,6 @@ import { NotificationCenterService } from '../../services';
|
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
7
|
* A component for displaying and managing a list of notifications. It integrates various sub-components and directives to provide a rich user interface for notification interaction. Supports animations for notification transitions and leverages Angular's change detection strategies for performance.
|
|
8
|
-
*
|
|
9
|
-
* @CSSComponent 'notification-center' - Specifies the CSS class for styling the notification center component.
|
|
10
8
|
*/
|
|
11
9
|
export declare class NotificationCenterComponent implements OnDestroy {
|
|
12
10
|
protected readonly notificationCenterService: NotificationCenterService;
|
|
@@ -8,6 +8,10 @@ import * as i2 from "@odx/angular/components/dropdown";
|
|
|
8
8
|
/**
|
|
9
9
|
* A directive that provides an interface for managing notifications.
|
|
10
10
|
* It allows configuring a notification center with dynamic content, sorting, and badge display functionalities.
|
|
11
|
+
* The directive has hosted directives `BadgeDirective` and `DropdownDirective` for badge and dropdown functionality.
|
|
12
|
+
*
|
|
13
|
+
* @see {BadgeDirective}
|
|
14
|
+
* @see {DropdownDirective}
|
|
11
15
|
*/
|
|
12
16
|
export declare class NotificationCenterDirective implements OnInit, AfterViewInit {
|
|
13
17
|
private readonly badgeDirective;
|
|
@@ -32,31 +36,41 @@ export declare class NotificationCenterDirective implements OnInit, AfterViewIni
|
|
|
32
36
|
* @param value A function that compares two notifications and returns the sort order.
|
|
33
37
|
*
|
|
34
38
|
* @example
|
|
39
|
+
* ```ts
|
|
35
40
|
* sortFfn = (a: NotificationRef, b: NotificationRef) => {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
41
|
+
* if (a.createdAt < b.createdAt) return -1;
|
|
42
|
+
* if (a.createdAt > b.createdAt) return 1;
|
|
43
|
+
* return 0;
|
|
44
|
+
* };
|
|
45
|
+
* ```
|
|
40
46
|
*/
|
|
41
47
|
set sortFn(value: NotificationSortFn);
|
|
42
48
|
/**
|
|
43
49
|
* An event that is emitted when a new notification is added.
|
|
44
50
|
* Listeners can use this event to react to new notifications being added to the notification center.
|
|
51
|
+
*
|
|
52
|
+
* @emits {NotificationRef} notificationAdd - The notification that was added to the notification center.
|
|
45
53
|
*/
|
|
46
54
|
notificationAdd: Observable<import("../models").NotificationRef>;
|
|
47
55
|
/**
|
|
48
56
|
* An event that is emitted when a notification is updated.
|
|
49
57
|
* This can be used to react to changes in notifications, such as their read status or content updates.
|
|
58
|
+
*
|
|
59
|
+
* @emits {NotificationRef} notificationUpdate - The notification that was updated in the notification center.
|
|
50
60
|
*/
|
|
51
61
|
notificationUpdate: Observable<import("../models").NotificationRef>;
|
|
52
62
|
/**
|
|
53
63
|
* An event that is emitted when a notification is removed from the notification center.
|
|
54
64
|
* Use this event to handle the removal of notifications, such as cleaning up resources or updating UI elements.
|
|
65
|
+
*
|
|
66
|
+
* @emits {NotificationRef} notificationRemove - The notification that was removed from the notification center.
|
|
55
67
|
*/
|
|
56
68
|
notificationRemove: Observable<import("../models").NotificationRef>;
|
|
57
69
|
/**
|
|
58
70
|
* An event that is emitted when a notification is marked as seen.
|
|
59
71
|
* This event can be used to perform actions when the user acknowledges a notification.
|
|
72
|
+
*
|
|
73
|
+
* @emits {NotificationRef} notificationSeen - The notification that was marked as seen in the notification center.
|
|
60
74
|
*/
|
|
61
75
|
notificationSeen: Observable<import("../models").NotificationRef>;
|
|
62
76
|
ngOnInit(): void;
|
|
@@ -2,4 +2,19 @@ import { EnvironmentProviders, Provider } from '@angular/core';
|
|
|
2
2
|
export type NotificationFeature = EnvironmentProviders & {
|
|
3
3
|
ɵodxBrand: '@odx/angular/components/notification::NotificationFeature';
|
|
4
4
|
};
|
|
5
|
+
/**
|
|
6
|
+
* Creates a `NotificationFeature` instance from a given provider or a set of environment providers.
|
|
7
|
+
* This function is a utility to encapsulate providers into a feature for the notification system, enhancing its configurability.
|
|
8
|
+
*
|
|
9
|
+
* @param {(Provider | NotificationFeature)[] | EnvironmentProviders} provider - A single provider, an array of providers, or an environment providers object.
|
|
10
|
+
* @returns {NotificationFeature} A new `NotificationFeature` encapsulating the provided values.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* // Creating a notification feature:
|
|
15
|
+
* const feature = makeNotificationFeature([
|
|
16
|
+
* { provide: SomeService, useClass: SomeServiceImpl }
|
|
17
|
+
* ]);
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
5
20
|
export declare function makeNotificationFeature(provider: (Provider | NotificationFeature)[] | EnvironmentProviders): NotificationFeature;
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import { EnvironmentProviders } from '@angular/core';
|
|
2
2
|
import { NotificationAction, NotificationFeature, NotificationOptions, NotificationSortFn } from './models';
|
|
3
|
+
/**
|
|
4
|
+
* Represents the configuration options for notifications within the application.
|
|
5
|
+
* This interface allows customization of various aspects of notification behavior.
|
|
6
|
+
*
|
|
7
|
+
* @property {string} defaultIdPrefix - Prefix used for generating unique notification IDs.
|
|
8
|
+
* @property {NotificationOptions} options - Default global options for all notifications.
|
|
9
|
+
* @property {NotificationSortFn} sortFn - Function to sort notifications, aiding in prioritization or ordering.
|
|
10
|
+
* @property {Record<string, string>} [tagToIconMap] - Maps notification tags to specific icons for visual differentiation.
|
|
11
|
+
* @property {Record<string, NotificationAction>} [actionMap] - Maps action types to their respective handler functions, enabling custom actions.
|
|
12
|
+
*/
|
|
3
13
|
export interface NotificationConfig {
|
|
4
14
|
defaultIdPrefix: string;
|
|
5
15
|
options: NotificationOptions;
|
|
@@ -7,5 +17,49 @@ export interface NotificationConfig {
|
|
|
7
17
|
tagToIconMap?: Record<string, string>;
|
|
8
18
|
actionMap?: Record<string, NotificationAction>;
|
|
9
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* Generates and exports configuration tokens for notifications, utilizing Angular's dependency injection.
|
|
22
|
+
* This function provides a structured approach to configuring and providing notification settings across
|
|
23
|
+
* an application.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* // In module providers:
|
|
28
|
+
* providers: [
|
|
29
|
+
* provideNotificationConfig({
|
|
30
|
+
* defaultIdPrefix: 'your-prefix-notifications', // will be used as id prefix for notification items
|
|
31
|
+
* options: NotificationOptions, // { icon: 'core::globe', tags: [], dismissable: true } by default
|
|
32
|
+
* sortFn: (a: NotificationRef, b: NotificationRef) => b.createdAt.localeCompare(a.createdAt), // default sort function
|
|
33
|
+
* tagToIconMap: { message: 'core::mail' }, // custom icon for message tag (default is core::globe)
|
|
34
|
+
* actionMap: { view: (notification) => { console.log(notification); } } // custom action handler
|
|
35
|
+
* })
|
|
36
|
+
* ]
|
|
37
|
+
*
|
|
38
|
+
* // In component or service:
|
|
39
|
+
* constructor(@Inject(NotificationConfig) private notificationConfig: NotificationConfig) {...}
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
10
42
|
export declare const NotificationConfig: import("@angular/core").InjectionToken<Partial<NotificationConfig>>, NotificationDefaultConfig: NotificationConfig, injectNotificationConfig: () => NotificationConfig, provideNotificationConfig: <D extends import("@odx/angular/utils").ConfigDependencies<unknown> = import("@odx/angular/utils").ConfigDependencies<Partial<NotificationConfig>>>(config: import("@odx/angular/utils").ConfigProvider<Partial<NotificationConfig>, D>) => import("@angular/core").ValueProvider | import("@angular/core").FactoryProvider;
|
|
43
|
+
/**
|
|
44
|
+
* Constructs and provides Angular environment providers for notifications based on provided configurations and features.
|
|
45
|
+
* Ideal for setting up notifications at the application's top level, ensuring global availability and configurability.
|
|
46
|
+
*
|
|
47
|
+
* @param {Partial<NotificationConfig>} [config] - Optional configuration overrides.
|
|
48
|
+
* @param {...NotificationFeature[]} features - Features to enhance the notification system.
|
|
49
|
+
* @returns {EnvironmentProviders} Configured providers ready for integration into Angular's environment.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```ts
|
|
53
|
+
* // In module providers:
|
|
54
|
+
* providers: [
|
|
55
|
+
* provideNotifications({
|
|
56
|
+
* config, // NotificationConfig
|
|
57
|
+
* },
|
|
58
|
+
* {
|
|
59
|
+
* withBrowserNotifications({...}), // NotificationFeature
|
|
60
|
+
* },
|
|
61
|
+
* )
|
|
62
|
+
* ]
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
11
65
|
export declare function provideNotifications(config?: Partial<NotificationConfig>, ...features: NotificationFeature[]): EnvironmentProviders;
|
|
@@ -1,16 +1,53 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { Notification, NotificationCollection, NotificationOptions, NotificationQuery, NotificationRef, NotificationSortFn } from './models';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* The `NotificationService` class provides methods for managing notifications.
|
|
6
|
+
* It allows you to create, load, dismiss, mark as seen, and execute actions on notifications.
|
|
7
|
+
* You can also fetch notifications based on specific queries and sort them using custom sort functions.
|
|
8
|
+
*/
|
|
4
9
|
export declare class NotificationService {
|
|
5
10
|
private readonly config;
|
|
6
11
|
private readonly localizationService;
|
|
7
12
|
private readonly queue;
|
|
8
13
|
private readonly injector;
|
|
14
|
+
/**
|
|
15
|
+
* An observable stream of all notifications in the queue, sorted by the configured sort function.
|
|
16
|
+
*
|
|
17
|
+
* @emits {NotificationCollection} A collection of notifications.
|
|
18
|
+
*/
|
|
9
19
|
readonly notifications$: Observable<NotificationCollection>;
|
|
20
|
+
/**
|
|
21
|
+
* An observable stream of all unseen notifications in the queue.
|
|
22
|
+
* Unseen notifications are those that have not been marked as seen.
|
|
23
|
+
*
|
|
24
|
+
* @emits {NotificationCollection} A collection of unseen notifications.
|
|
25
|
+
*/
|
|
10
26
|
readonly unseenNotifications$: Observable<NotificationCollection>;
|
|
27
|
+
/**
|
|
28
|
+
* An observable stream of all seen notifications in the queue.
|
|
29
|
+
* Seen notifications are those that have been marked as seen.
|
|
30
|
+
*
|
|
31
|
+
* @emits {NotificationCollection} A collection of seen notifications.
|
|
32
|
+
*/
|
|
11
33
|
readonly onNotificationAdd$: Observable<NotificationRef>;
|
|
34
|
+
/**
|
|
35
|
+
* An observable stream of notifications that have been removed from the queue.
|
|
36
|
+
*
|
|
37
|
+
* @emits {NotificationCollection} A collection of removed notifications.
|
|
38
|
+
*/
|
|
12
39
|
readonly onNotificationRemove$: Observable<NotificationRef>;
|
|
40
|
+
/**
|
|
41
|
+
* An observable stream of notifications that have been updated in the queue.
|
|
42
|
+
*
|
|
43
|
+
* @emits {NotificationCollection} A collection of updated notifications.
|
|
44
|
+
*/
|
|
13
45
|
readonly onNotificationUpdate$: Observable<NotificationRef>;
|
|
46
|
+
/**
|
|
47
|
+
* An observable stream of notifications that have been marked as seen.
|
|
48
|
+
*
|
|
49
|
+
* @emits {NotificationCollection} A collection of seen notifications.
|
|
50
|
+
*/
|
|
14
51
|
readonly onNotificationSeen$: Observable<NotificationRef>;
|
|
15
52
|
/**
|
|
16
53
|
* Fetches notifications filtered by a specified query and optionally sorted by a custom sort function.
|
|
@@ -19,11 +56,13 @@ export declare class NotificationService {
|
|
|
19
56
|
* @param {NotificationSortFn} [sortFn] - An optional sorting function to order the filtered notifications.
|
|
20
57
|
* @returns {Observable<NotificationCollection>} An observable stream of the filtered (and optionally sorted) notification collection.
|
|
21
58
|
* @example
|
|
59
|
+
* ```ts
|
|
22
60
|
* // Fetch notifications with a specific tag, sorted by creation date
|
|
23
61
|
* const sortedNotifications$ = notificationService.getNotificationsBy$(
|
|
24
62
|
* notification => notification.tags.includes('important'),
|
|
25
63
|
* (a, b) => b.createdAt - a.createdAt
|
|
26
64
|
* );
|
|
65
|
+
* ```
|
|
27
66
|
*/
|
|
28
67
|
getNotificationsBy$(query: NotificationQuery, sortFn?: NotificationSortFn): Observable<NotificationCollection>;
|
|
29
68
|
/**
|
|
@@ -31,11 +70,13 @@ export declare class NotificationService {
|
|
|
31
70
|
*
|
|
32
71
|
* @param {NotificationRef[]} refs - An array of notification references to be loaded.
|
|
33
72
|
* @example
|
|
73
|
+
* ```ts
|
|
34
74
|
* // Load multiple notifications at once
|
|
35
75
|
* notificationService.load([
|
|
36
76
|
* { id: '1', item: { title: 'Notification 1' }, options: {dismissable: true, icon: 'plus', tags: ['important']}, hasBeenSeen: false, createdAt: Date.now() },
|
|
37
77
|
* { id: '2', item: { title: 'Notification 2' }, options: {dismissable: true, icon: 'plus', tags: ['important']}, hasBeenSeen: false, createdAt: Date.now() }
|
|
38
78
|
* ]);
|
|
79
|
+
* ```
|
|
39
80
|
*/
|
|
40
81
|
load(refs: NotificationRef[]): void;
|
|
41
82
|
/**
|
|
@@ -44,11 +85,13 @@ export declare class NotificationService {
|
|
|
44
85
|
* @param {Notification} item - The notification to create.
|
|
45
86
|
* @param {Partial<NotificationOptions>} [options] - Optional settings for the notification.
|
|
46
87
|
* @example
|
|
88
|
+
* ```ts
|
|
47
89
|
* // Create a new notification with custom options
|
|
48
90
|
* notificationService.create(
|
|
49
91
|
* { title: 'New Notification' },
|
|
50
92
|
* { dismissable: true, icon: 'plus', tags: ['important'] }
|
|
51
93
|
* );
|
|
94
|
+
* ```
|
|
52
95
|
*/
|
|
53
96
|
create(item: Notification, options?: Partial<NotificationOptions>): void;
|
|
54
97
|
/**
|
|
@@ -56,8 +99,10 @@ export declare class NotificationService {
|
|
|
56
99
|
*
|
|
57
100
|
* @param {NotificationRef} notificationRef - The reference to the notification to mark as seen.
|
|
58
101
|
* @example
|
|
102
|
+
* ```ts
|
|
59
103
|
* // Mark a notification as seen by its reference
|
|
60
104
|
* notificationService.markAsSeen(notificationRef);
|
|
105
|
+
* ```
|
|
61
106
|
*/
|
|
62
107
|
markAsSeen(notificationRef: NotificationRef): void;
|
|
63
108
|
/**
|
|
@@ -65,8 +110,10 @@ export declare class NotificationService {
|
|
|
65
110
|
*
|
|
66
111
|
* @param {NotificationQuery} query - The query to match notifications to mark as seen.
|
|
67
112
|
* @example
|
|
113
|
+
* ```ts
|
|
68
114
|
* // Mark all notifications with a specific tag as seen
|
|
69
115
|
* notificationService.markAsSeenBy(notification => notification.tags.includes('important'));
|
|
116
|
+
* ```
|
|
70
117
|
*/
|
|
71
118
|
markAsSeenBy(query: NotificationQuery): void;
|
|
72
119
|
/**
|
|
@@ -74,8 +121,10 @@ export declare class NotificationService {
|
|
|
74
121
|
*
|
|
75
122
|
* @param {NotificationRef} notificationRef - The reference to the notification to dismiss.
|
|
76
123
|
* @example
|
|
124
|
+
* ```ts
|
|
77
125
|
* // Dismiss a notification by its reference
|
|
78
126
|
* notificationService.dismiss(notificationRef);
|
|
127
|
+
* ```
|
|
79
128
|
*/
|
|
80
129
|
dismiss(notificationRef: NotificationRef): void;
|
|
81
130
|
/**
|
|
@@ -83,16 +132,20 @@ export declare class NotificationService {
|
|
|
83
132
|
*
|
|
84
133
|
* @param {NotificationQuery} query - The query to match notifications to dismiss.
|
|
85
134
|
* @example
|
|
135
|
+
* ```ts
|
|
86
136
|
* // Dismiss all notifications with a specific tag
|
|
87
137
|
* notificationService.dismissBy(notification => notification.tags.includes('expired'));
|
|
138
|
+
* ```
|
|
88
139
|
*/
|
|
89
140
|
dismissBy(query: NotificationQuery): void;
|
|
90
141
|
/**
|
|
91
142
|
* Dismisses all notifications.
|
|
92
143
|
*
|
|
93
144
|
* @example
|
|
145
|
+
* ```ts
|
|
94
146
|
* // Dismiss all notifications
|
|
95
147
|
* notificationService.dismissAll();
|
|
148
|
+
* ```
|
|
96
149
|
*/
|
|
97
150
|
dismissAll(): void;
|
|
98
151
|
/**
|
|
@@ -100,8 +153,10 @@ export declare class NotificationService {
|
|
|
100
153
|
*
|
|
101
154
|
* @param {NotificationRef} notificationRef - The reference to the notification whose action to execute.
|
|
102
155
|
* @example
|
|
156
|
+
* ```ts
|
|
103
157
|
* // Execute action for a notification
|
|
104
158
|
* notificationService.executeAction(notificationRef);
|
|
159
|
+
* ```
|
|
105
160
|
*/
|
|
106
161
|
executeAction(notificationRef: NotificationRef): void;
|
|
107
162
|
private resolveOptions;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
2
|
import { Queue } from '@odx/angular/utils';
|
|
3
3
|
import { NotificationRef } from './models';
|
|
4
|
+
/**
|
|
5
|
+
* Represents the injection token for the notification queue.
|
|
6
|
+
*/
|
|
4
7
|
export declare const ODX_NOTIFICATION_QUEUE: InjectionToken<Queue<NotificationRef>>;
|
|
@@ -5,6 +5,8 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
/**
|
|
6
6
|
* A service for managing the notification center. This service provides functionalities
|
|
7
7
|
* to filter, sort, and manage actions on notifications.
|
|
8
|
+
*
|
|
9
|
+
* @internal
|
|
8
10
|
*/
|
|
9
11
|
export declare class NotificationCenterService {
|
|
10
12
|
private readonly currentTag;
|
|
@@ -12,12 +14,19 @@ export declare class NotificationCenterService {
|
|
|
12
14
|
private readonly notificationService;
|
|
13
15
|
private readonly notificationQuery;
|
|
14
16
|
private readonly title;
|
|
17
|
+
/** @internal */
|
|
15
18
|
readonly title$: Observable<string | null>;
|
|
19
|
+
/** @internal */
|
|
16
20
|
readonly notifications$: Observable<import("../models").NotificationCollection>;
|
|
21
|
+
/** @internal */
|
|
17
22
|
readonly unseenNotifications$: Observable<import("../models").NotificationCollection>;
|
|
23
|
+
/** @internal */
|
|
18
24
|
onNotificationAdd$: Observable<NotificationRef>;
|
|
25
|
+
/** @internal */
|
|
19
26
|
onNotificationUpdate$: Observable<NotificationRef>;
|
|
27
|
+
/** @internal */
|
|
20
28
|
onNotificationRemove$: Observable<NotificationRef>;
|
|
29
|
+
/** @internal */
|
|
21
30
|
onNotificationSeen$: Observable<NotificationRef>;
|
|
22
31
|
/**
|
|
23
32
|
* Sets the title for the notification center. The title can be static text or an observable for dynamic content.
|