@odx/angular 12.26.1 → 13.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 +83 -0
- package/animations/README.md +2 -0
- package/animations/index.d.ts +261 -5
- package/breakpoints/index.d.ts +216 -7
- package/cdk/a11y/index.d.ts +116 -2
- package/cdk/active-indicator/index.d.ts +104 -2
- package/cdk/autocomplete-control/index.d.ts +189 -3
- package/cdk/checkbox-control/index.d.ts +40 -1
- package/cdk/connected-overlay/index.d.ts +165 -3
- package/cdk/custom-form-control/index.d.ts +243 -3
- package/cdk/date-input/index.d.ts +86 -5
- package/cdk/dynamic-view/index.d.ts +335 -7
- package/cdk/event-plugins/index.d.ts +187 -3
- package/cdk/expandable/index.d.ts +169 -4
- package/cdk/option-control/index.d.ts +70 -1
- package/cdk/radio-group-control/index.d.ts +74 -3
- package/cdk/scrollable/index.d.ts +57 -1
- package/components/accordion/index.d.ts +91 -4
- package/components/action-group/index.d.ts +20 -1
- package/components/anchor-navigation/index.d.ts +104 -4
- package/components/area-header/index.d.ts +54 -4
- package/components/autocomplete/index.d.ts +109 -6
- package/components/avatar/index.d.ts +36 -2
- package/components/badge/index.d.ts +95 -3
- package/components/bar/index.d.ts +56 -5
- package/components/breadcrumbs/index.d.ts +12 -1
- package/components/button/index.d.ts +55 -3
- package/components/button-group/index.d.ts +44 -1
- package/components/calendar/index.d.ts +746 -9
- package/components/card/index.d.ts +118 -5
- package/components/checkbox/index.d.ts +93 -3
- package/components/chip/index.d.ts +78 -2
- package/components/circular-progress/index.d.ts +71 -2
- package/components/content-box/index.d.ts +33 -3
- package/components/data-table/index.d.ts +84 -4
- package/components/datepicker/index.d.ts +216 -6
- package/components/daterangepicker/index.d.ts +257 -6
- package/components/dropdown/index.d.ts +202 -5
- package/components/error-page/index.d.ts +56 -2
- package/components/footer/index.d.ts +80 -3
- package/components/form-field/index.d.ts +398 -7
- package/components/header/index.d.ts +44 -3
- package/components/header-navigation/index.d.ts +41 -3
- package/components/icon/index.d.ts +154 -4
- package/components/inline-message/index.d.ts +36 -2
- package/components/link/index.d.ts +13 -1
- package/components/list/index.d.ts +86 -4
- package/components/loading-spinner/index.d.ts +89 -3
- package/components/logo/index.d.ts +39 -2
- package/components/main-menu/index.d.ts +217 -4
- package/components/mainfilter-group/index.d.ts +13 -1
- package/components/menu/index.d.ts +94 -4
- package/components/modal/index.d.ts +549 -9
- package/components/navigation-back/index.d.ts +12 -1
- package/components/notification/index.d.ts +630 -7
- package/components/notification/testing/index.d.ts +9 -1
- package/components/paginator/index.d.ts +264 -5
- package/components/progress/index.d.ts +36 -1
- package/components/radio-group/index.d.ts +70 -3
- package/components/rail-navigation/index.d.ts +97 -4
- package/components/rich-list/index.d.ts +92 -3
- package/components/search-bar/index.d.ts +26 -3
- package/components/select/index.d.ts +263 -6
- package/components/slider/index.d.ts +37 -1
- package/components/spinbox/index.d.ts +54 -1
- package/components/switch/index.d.ts +44 -3
- package/components/tab-bar/index.d.ts +141 -4
- package/components/table/index.d.ts +239 -5
- package/components/timepicker/index.d.ts +324 -7
- package/components/toast/index.d.ts +267 -5
- package/components/toggle-button-group/index.d.ts +61 -3
- package/components/tooltip/index.d.ts +204 -7
- package/components/wizard/index.d.ts +159 -3
- package/fesm2022/odx-angular-animations.mjs +51 -0
- package/fesm2022/odx-angular-animations.mjs.map +1 -1
- package/fesm2022/odx-angular-breakpoints.mjs +10 -10
- package/fesm2022/odx-angular-breakpoints.mjs.map +1 -1
- package/fesm2022/odx-angular-cdk-a11y.mjs +13 -13
- package/fesm2022/odx-angular-cdk-a11y.mjs.map +1 -1
- package/fesm2022/odx-angular-cdk-active-indicator.mjs +6 -8
- package/fesm2022/odx-angular-cdk-active-indicator.mjs.map +1 -1
- package/fesm2022/odx-angular-cdk-autocomplete-control.mjs +12 -15
- package/fesm2022/odx-angular-cdk-autocomplete-control.mjs.map +1 -1
- package/fesm2022/odx-angular-cdk-checkbox-control.mjs +3 -3
- package/fesm2022/odx-angular-cdk-checkbox-control.mjs.map +1 -1
- package/fesm2022/odx-angular-cdk-connected-overlay.mjs +6 -6
- package/fesm2022/odx-angular-cdk-connected-overlay.mjs.map +1 -1
- package/fesm2022/odx-angular-cdk-custom-form-control.mjs +12 -14
- package/fesm2022/odx-angular-cdk-custom-form-control.mjs.map +1 -1
- package/fesm2022/odx-angular-cdk-dynamic-view.mjs +10 -11
- package/fesm2022/odx-angular-cdk-dynamic-view.mjs.map +1 -1
- package/fesm2022/odx-angular-cdk-event-plugins.mjs +6 -6
- package/fesm2022/odx-angular-cdk-expandable.mjs +10 -10
- package/fesm2022/odx-angular-cdk-expandable.mjs.map +1 -1
- package/fesm2022/odx-angular-cdk-option-control.mjs +3 -3
- package/fesm2022/odx-angular-cdk-option-control.mjs.map +1 -1
- package/fesm2022/odx-angular-cdk-radio-group-control.mjs +10 -10
- package/fesm2022/odx-angular-cdk-radio-group-control.mjs.map +1 -1
- package/fesm2022/odx-angular-cdk-scrollable.mjs +6 -6
- package/fesm2022/odx-angular-cdk-scrollable.mjs.map +1 -1
- package/fesm2022/odx-angular-components-accordion.mjs +17 -17
- package/fesm2022/odx-angular-components-accordion.mjs.map +1 -1
- package/fesm2022/odx-angular-components-action-group.mjs +5 -6
- package/fesm2022/odx-angular-components-action-group.mjs.map +1 -1
- package/fesm2022/odx-angular-components-anchor-navigation.mjs +33 -34
- package/fesm2022/odx-angular-components-anchor-navigation.mjs.map +1 -1
- package/fesm2022/odx-angular-components-area-header.mjs +16 -19
- package/fesm2022/odx-angular-components-area-header.mjs.map +1 -1
- package/fesm2022/odx-angular-components-autocomplete.mjs +19 -22
- package/fesm2022/odx-angular-components-autocomplete.mjs.map +1 -1
- package/fesm2022/odx-angular-components-avatar.mjs +6 -8
- package/fesm2022/odx-angular-components-avatar.mjs.map +1 -1
- package/fesm2022/odx-angular-components-badge.mjs +9 -11
- package/fesm2022/odx-angular-components-badge.mjs.map +1 -1
- package/fesm2022/odx-angular-components-bar.mjs +15 -16
- package/fesm2022/odx-angular-components-bar.mjs.map +1 -1
- package/fesm2022/odx-angular-components-breadcrumbs.mjs +3 -3
- package/fesm2022/odx-angular-components-button-group.mjs +8 -12
- package/fesm2022/odx-angular-components-button-group.mjs.map +1 -1
- package/fesm2022/odx-angular-components-button.mjs +9 -11
- package/fesm2022/odx-angular-components-button.mjs.map +1 -1
- package/fesm2022/odx-angular-components-calendar.mjs +53 -63
- package/fesm2022/odx-angular-components-calendar.mjs.map +1 -1
- package/fesm2022/odx-angular-components-card.mjs +33 -36
- package/fesm2022/odx-angular-components-card.mjs.map +1 -1
- package/fesm2022/odx-angular-components-checkbox.mjs +14 -16
- package/fesm2022/odx-angular-components-checkbox.mjs.map +1 -1
- package/fesm2022/odx-angular-components-chip.mjs +13 -15
- package/fesm2022/odx-angular-components-chip.mjs.map +1 -1
- package/fesm2022/odx-angular-components-circular-progress.mjs +6 -8
- package/fesm2022/odx-angular-components-circular-progress.mjs.map +1 -1
- package/fesm2022/odx-angular-components-content-box.mjs +13 -13
- package/fesm2022/odx-angular-components-data-table.mjs +33 -47
- package/fesm2022/odx-angular-components-data-table.mjs.map +1 -1
- package/fesm2022/odx-angular-components-datepicker.mjs +26 -28
- package/fesm2022/odx-angular-components-datepicker.mjs.map +1 -1
- package/fesm2022/odx-angular-components-daterangepicker.mjs +22 -24
- package/fesm2022/odx-angular-components-daterangepicker.mjs.map +1 -1
- package/fesm2022/odx-angular-components-dropdown.mjs +10 -10
- package/fesm2022/odx-angular-components-dropdown.mjs.map +1 -1
- package/fesm2022/odx-angular-components-error-page.mjs +3 -3
- package/fesm2022/odx-angular-components-error-page.mjs.map +1 -1
- package/fesm2022/odx-angular-components-footer.mjs +5 -6
- package/fesm2022/odx-angular-components-footer.mjs.map +1 -1
- package/fesm2022/odx-angular-components-form-field.mjs +44 -44
- package/fesm2022/odx-angular-components-form-field.mjs.map +1 -1
- package/fesm2022/odx-angular-components-header-navigation.mjs +15 -16
- package/fesm2022/odx-angular-components-header-navigation.mjs.map +1 -1
- package/fesm2022/odx-angular-components-header.mjs +13 -13
- package/fesm2022/odx-angular-components-icon.mjs +98 -86
- package/fesm2022/odx-angular-components-icon.mjs.map +1 -1
- package/fesm2022/odx-angular-components-inline-message.mjs +10 -11
- package/fesm2022/odx-angular-components-inline-message.mjs.map +1 -1
- package/fesm2022/odx-angular-components-link.mjs +3 -3
- package/fesm2022/odx-angular-components-list.mjs +19 -35
- package/fesm2022/odx-angular-components-list.mjs.map +1 -1
- package/fesm2022/odx-angular-components-loading-spinner.mjs +12 -17
- package/fesm2022/odx-angular-components-loading-spinner.mjs.map +1 -1
- package/fesm2022/odx-angular-components-logo.mjs +6 -8
- package/fesm2022/odx-angular-components-logo.mjs.map +1 -1
- package/fesm2022/odx-angular-components-main-menu.mjs +20 -20
- package/fesm2022/odx-angular-components-main-menu.mjs.map +1 -1
- package/fesm2022/odx-angular-components-mainfilter-group.mjs +3 -3
- package/fesm2022/odx-angular-components-menu.mjs +16 -18
- package/fesm2022/odx-angular-components-menu.mjs.map +1 -1
- package/fesm2022/odx-angular-components-modal.mjs +70 -80
- package/fesm2022/odx-angular-components-modal.mjs.map +1 -1
- package/fesm2022/odx-angular-components-navigation-back.mjs +4 -4
- package/fesm2022/odx-angular-components-navigation-back.mjs.map +1 -1
- package/fesm2022/odx-angular-components-notification-testing.mjs +3 -2
- package/fesm2022/odx-angular-components-notification-testing.mjs.map +1 -1
- package/fesm2022/odx-angular-components-notification.mjs +24 -24
- package/fesm2022/odx-angular-components-notification.mjs.map +1 -1
- package/fesm2022/odx-angular-components-paginator.mjs +8 -8
- package/fesm2022/odx-angular-components-paginator.mjs.map +1 -1
- package/fesm2022/odx-angular-components-progress.mjs +5 -6
- package/fesm2022/odx-angular-components-progress.mjs.map +1 -1
- package/fesm2022/odx-angular-components-radio-group.mjs +13 -15
- package/fesm2022/odx-angular-components-radio-group.mjs.map +1 -1
- package/fesm2022/odx-angular-components-rail-navigation.mjs +16 -26
- package/fesm2022/odx-angular-components-rail-navigation.mjs.map +1 -1
- package/fesm2022/odx-angular-components-rich-list.mjs +20 -21
- package/fesm2022/odx-angular-components-rich-list.mjs.map +1 -1
- package/fesm2022/odx-angular-components-search-bar.mjs +11 -11
- package/fesm2022/odx-angular-components-search-bar.mjs.map +1 -1
- package/fesm2022/odx-angular-components-select.mjs +44 -49
- package/fesm2022/odx-angular-components-select.mjs.map +1 -1
- package/fesm2022/odx-angular-components-slider.mjs +3 -3
- package/fesm2022/odx-angular-components-slider.mjs.map +1 -1
- package/fesm2022/odx-angular-components-spinbox.mjs +6 -7
- package/fesm2022/odx-angular-components-spinbox.mjs.map +1 -1
- package/fesm2022/odx-angular-components-switch.mjs +11 -11
- package/fesm2022/odx-angular-components-switch.mjs.map +1 -1
- package/fesm2022/odx-angular-components-tab-bar.mjs +24 -26
- package/fesm2022/odx-angular-components-tab-bar.mjs.map +1 -1
- package/fesm2022/odx-angular-components-table.mjs +31 -48
- package/fesm2022/odx-angular-components-table.mjs.map +1 -1
- package/fesm2022/odx-angular-components-timepicker.mjs +24 -33
- package/fesm2022/odx-angular-components-timepicker.mjs.map +1 -1
- package/fesm2022/odx-angular-components-toast.mjs +21 -52
- package/fesm2022/odx-angular-components-toast.mjs.map +1 -1
- package/fesm2022/odx-angular-components-toggle-button-group.mjs +11 -11
- package/fesm2022/odx-angular-components-toggle-button-group.mjs.map +1 -1
- package/fesm2022/odx-angular-components-tooltip.mjs +13 -16
- package/fesm2022/odx-angular-components-tooltip.mjs.map +1 -1
- package/fesm2022/odx-angular-components-wizard.mjs +20 -27
- package/fesm2022/odx-angular-components-wizard.mjs.map +1 -1
- package/fesm2022/odx-angular-internal-translate.mjs +3 -3
- package/fesm2022/odx-angular-localization.mjs +3 -3
- package/fesm2022/odx-angular-theming.mjs +4 -5
- package/fesm2022/odx-angular-theming.mjs.map +1 -1
- package/fesm2022/odx-angular-utils.mjs +4 -26
- package/fesm2022/odx-angular-utils.mjs.map +1 -1
- package/fesm2022/odx-angular.mjs +36 -35
- package/fesm2022/odx-angular.mjs.map +1 -1
- package/index.d.ts +546 -6
- package/internal/index.d.ts +79 -3
- package/internal/translate/index.d.ts +88 -4
- package/localization/index.d.ts +343 -5
- package/package.json +40 -198
- package/rxjs/index.d.ts +125 -5
- package/sdk/index.d.ts +74 -1
- package/theming/index.d.ts +213 -4
- package/utils/index.d.ts +1020 -3
- package/animations/lib/config.d.ts +0 -7
- package/animations/lib/expand.d.ts +0 -46
- package/animations/lib/fade.d.ts +0 -76
- package/animations/lib/slide.d.ts +0 -34
- package/animations/lib/wait-for-child-animations.d.ts +0 -39
- package/breakpoints/lib/breakpoints.config.d.ts +0 -59
- package/breakpoints/lib/breakpoints.module.d.ts +0 -7
- package/breakpoints/lib/breakpoints.service.d.ts +0 -56
- package/breakpoints/lib/breakpoints.typings.d.ts +0 -8
- package/breakpoints/lib/directives/index.d.ts +0 -1
- package/breakpoints/lib/directives/match-breakpoints.directive.d.ts +0 -52
- package/breakpoints/lib/helpers/configure-breakpoint.d.ts +0 -23
- package/breakpoints/lib/helpers/index.d.ts +0 -1
- package/breakpoints/lib/models/breakpoint.d.ts +0 -5
- package/breakpoints/lib/models/index.d.ts +0 -1
- package/cdk/a11y/lib/a11y.module.d.ts +0 -11
- package/cdk/a11y/lib/directives/index.d.ts +0 -3
- package/cdk/a11y/lib/directives/interactive.directive.d.ts +0 -43
- package/cdk/a11y/lib/directives/list-focus-manager-option.directive.d.ts +0 -34
- package/cdk/a11y/lib/directives/list-focus-manager.directive.d.ts +0 -31
- package/cdk/active-indicator/lib/active-indicator.directive.d.ts +0 -90
- package/cdk/active-indicator/lib/models/active-indicator-direction.d.ts +0 -5
- package/cdk/active-indicator/lib/models/active-indicator-position.d.ts +0 -6
- package/cdk/active-indicator/lib/models/index.d.ts +0 -2
- package/cdk/autocomplete-control/lib/autocomplete-control.d.ts +0 -144
- package/cdk/autocomplete-control/lib/directives/highlight-search-result.directive.d.ts +0 -19
- package/cdk/autocomplete-control/lib/directives/index.d.ts +0 -1
- package/cdk/autocomplete-control/lib/pipes/base-search-filter-pipe.d.ts +0 -24
- package/cdk/autocomplete-control/lib/pipes/index.d.ts +0 -1
- package/cdk/checkbox-control/lib/checkbox-control.directive.d.ts +0 -37
- package/cdk/connected-overlay/lib/connected-overlay.component.d.ts +0 -26
- package/cdk/connected-overlay/lib/connected-overlay.service.d.ts +0 -54
- package/cdk/connected-overlay/lib/helpers/compute-overlay-position.d.ts +0 -13
- package/cdk/connected-overlay/lib/helpers/index.d.ts +0 -1
- package/cdk/connected-overlay/lib/models/connected-overlay-options.d.ts +0 -27
- package/cdk/connected-overlay/lib/models/connected-overlay-ref.d.ts +0 -62
- package/cdk/connected-overlay/lib/models/index.d.ts +0 -2
- package/cdk/custom-form-control/lib/control.directive.d.ts +0 -6
- package/cdk/custom-form-control/lib/custom-form-control.d.ts +0 -146
- package/cdk/custom-form-control/lib/input-control.directive.d.ts +0 -88
- package/cdk/date-input/lib/date.config.d.ts +0 -48
- package/cdk/date-input/lib/models/input-date-order.d.ts +0 -17
- package/cdk/date-input/lib/utils/get-date-input-pattern.d.ts +0 -5
- package/cdk/date-input/lib/utils/get-input-value-as-date.d.ts +0 -3
- package/cdk/date-input/lib/utils/ngx-mask-init.d.ts +0 -3
- package/cdk/dynamic-view/lib/dynamic-view.component.d.ts +0 -12
- package/cdk/dynamic-view/lib/dynamic-view.directive.d.ts +0 -55
- package/cdk/dynamic-view/lib/dynamic-view.service.d.ts +0 -40
- package/cdk/dynamic-view/lib/facade/dynamic-content.d.ts +0 -8
- package/cdk/dynamic-view/lib/facade/dynamic-view-ref.d.ts +0 -10
- package/cdk/dynamic-view/lib/facade/index.d.ts +0 -2
- package/cdk/dynamic-view/lib/helpers/create-projectable-nodes.d.ts +0 -24
- package/cdk/dynamic-view/lib/helpers/index.d.ts +0 -3
- package/cdk/dynamic-view/lib/helpers/is-dynamic-text-content.d.ts +0 -24
- package/cdk/dynamic-view/lib/helpers/is-dynamic-view.d.ts +0 -24
- package/cdk/dynamic-view/lib/models/dynamic-component-ref.d.ts +0 -59
- package/cdk/dynamic-view/lib/models/dynamic-template-ref.d.ts +0 -55
- package/cdk/dynamic-view/lib/models/dynamic-view-options.d.ts +0 -11
- package/cdk/dynamic-view/lib/models/index.d.ts +0 -3
- package/cdk/dynamic-view/lib/tokens/dynamic-view-context.d.ts +0 -9
- package/cdk/dynamic-view/lib/tokens/dynamic-view-default-host.d.ts +0 -13
- package/cdk/dynamic-view/lib/tokens/index.d.ts +0 -2
- package/cdk/event-plugins/lib/event-plugins.config.d.ts +0 -38
- package/cdk/event-plugins/lib/models/event-plugin.d.ts +0 -73
- package/cdk/event-plugins/lib/models/index.d.ts +0 -1
- package/cdk/event-plugins/lib/plugins/debounce-event-plugin.d.ts +0 -42
- package/cdk/event-plugins/lib/plugins/defer-event-plugin.d.ts +0 -33
- package/cdk/event-plugins/lib/plugins/index.d.ts +0 -2
- package/cdk/expandable/lib/directives/expandable-container.directive.d.ts +0 -65
- package/cdk/expandable/lib/directives/expandable-item.directive.d.ts +0 -73
- package/cdk/expandable/lib/directives/index.d.ts +0 -2
- package/cdk/expandable/lib/expandable.module.d.ts +0 -8
- package/cdk/expandable/lib/expandable.tokens.d.ts +0 -4
- package/cdk/expandable/lib/facade/expandable-container.d.ts +0 -10
- package/cdk/expandable/lib/facade/expandable-item.d.ts +0 -10
- package/cdk/expandable/lib/facade/index.d.ts +0 -2
- package/cdk/option-control/lib/option-control.d.ts +0 -66
- package/cdk/radio-group-control/lib/radio-control.directive.d.ts +0 -39
- package/cdk/radio-group-control/lib/radio-group-control.directive.d.ts +0 -24
- package/cdk/radio-group-control/lib/radio-group-control.module.d.ts +0 -9
- package/cdk/scrollable/lib/scrollable.service.d.ts +0 -53
- package/components/accordion/lib/accordion.component.d.ts +0 -15
- package/components/accordion/lib/accordion.module.d.ts +0 -10
- package/components/accordion/lib/components/accordion-item/accordion-item.component.d.ts +0 -59
- package/components/accordion/lib/components/index.d.ts +0 -1
- package/components/accordion/lib/directives/accordion-item-title.d.ts +0 -8
- package/components/accordion/lib/directives/index.d.ts +0 -1
- package/components/action-group/action-group.component.d.ts +0 -17
- package/components/anchor-navigation/anchor-navigation.component.d.ts +0 -37
- package/components/anchor-navigation/anchor-navigation.module.d.ts +0 -8
- package/components/anchor-navigation/anchor-navigation.service.d.ts +0 -50
- package/components/anchor-navigation/components/anchor-navigation-item.component.d.ts +0 -10
- package/components/anchor-navigation/components/index.d.ts +0 -1
- package/components/area-header/area-header.component.d.ts +0 -17
- package/components/area-header/area-header.module.d.ts +0 -14
- package/components/area-header/directives/area-header-content.directive.d.ts +0 -8
- package/components/area-header/directives/area-header-subtitle.directive.d.ts +0 -8
- package/components/area-header/directives/index.d.ts +0 -2
- package/components/area-header/models/area-header-size.d.ts +0 -7
- package/components/area-header/models/index.d.ts +0 -1
- package/components/autocomplete/lib/autocomplete.component.d.ts +0 -66
- package/components/autocomplete/lib/autocomplete.module.d.ts +0 -11
- package/components/autocomplete/lib/autocomplete.tokens.d.ts +0 -3
- package/components/autocomplete/lib/components/index.d.ts +0 -1
- package/components/autocomplete/lib/components/option/autocomplete-option.component.d.ts +0 -17
- package/components/autocomplete/lib/directives/autocomplete-input-control.directive.d.ts +0 -13
- package/components/autocomplete/lib/directives/index.d.ts +0 -1
- package/components/autocomplete/lib/pipes/autocomplete-search-filter.pipe.d.ts +0 -7
- package/components/autocomplete/lib/pipes/index.d.ts +0 -1
- package/components/avatar/lib/avatar.component.d.ts +0 -21
- package/components/avatar/lib/models/avatar-size.d.ts +0 -6
- package/components/avatar/lib/models/avatar-variant.d.ts +0 -5
- package/components/avatar/lib/models/index.d.ts +0 -2
- package/components/badge/lib/badge.component.d.ts +0 -33
- package/components/badge/lib/badge.directive.d.ts +0 -56
- package/components/badge/lib/models/badge-variant.d.ts +0 -6
- package/components/badge/lib/models/index.d.ts +0 -1
- package/components/bar/lib/bar.component.d.ts +0 -13
- package/components/bar/lib/bar.module.d.ts +0 -10
- package/components/bar/lib/directives/bar-button.directive.d.ts +0 -20
- package/components/bar/lib/directives/bar-label.directive.d.ts +0 -9
- package/components/bar/lib/models/bar-button-variant.d.ts +0 -5
- package/components/breadcrumbs/lib/breadcrumbs.component.d.ts +0 -9
- package/components/button/lib/button.component.d.ts +0 -29
- package/components/button/lib/directives/index.d.ts +0 -1
- package/components/button/lib/directives/responsive-button.directive.d.ts +0 -6
- package/components/button/lib/models/button-size.d.ts +0 -6
- package/components/button/lib/models/button-variant.d.ts +0 -10
- package/components/button/lib/models/index.d.ts +0 -2
- package/components/button-group/lib/button-group.component.d.ts +0 -41
- package/components/calendar/lib/calendar.component.d.ts +0 -90
- package/components/calendar/lib/calendar.config.d.ts +0 -117
- package/components/calendar/lib/calendar.service.d.ts +0 -81
- package/components/calendar/lib/components/calendar-header/calendar-header.component.d.ts +0 -61
- package/components/calendar/lib/components/calendar-header/index.d.ts +0 -1
- package/components/calendar/lib/components/calendar-month/calendar-month.component.d.ts +0 -24
- package/components/calendar/lib/components/calendar-month/index.d.ts +0 -1
- package/components/calendar/lib/components/calendar-year/calendar-year.component.d.ts +0 -24
- package/components/calendar/lib/components/calendar-year/index.d.ts +0 -1
- package/components/calendar/lib/components/calendar-years/calendar-years.component.d.ts +0 -26
- package/components/calendar/lib/components/calendar-years/index.d.ts +0 -1
- package/components/calendar/lib/components/index.d.ts +0 -4
- package/components/calendar/lib/daterange.service.d.ts +0 -33
- package/components/calendar/lib/directives/calendar-cell.directive.d.ts +0 -90
- package/components/calendar/lib/directives/calendar-view.directive.d.ts +0 -92
- package/components/calendar/lib/directives/index.d.ts +0 -2
- package/components/calendar/lib/models/calendar-view.d.ts +0 -5
- package/components/calendar/lib/models/date-filter.d.ts +0 -1
- package/components/calendar/lib/models/date-range.d.ts +0 -18
- package/components/calendar/lib/models/date-type.d.ts +0 -1
- package/components/calendar/lib/models/date-validator.d.ts +0 -1
- package/components/calendar/lib/models/index.d.ts +0 -7
- package/components/calendar/lib/models/selected-date.d.ts +0 -9
- package/components/calendar/lib/models/selection-mode.d.ts +0 -4
- package/components/calendar/lib/pipes/date-label.pipe.d.ts +0 -22
- package/components/calendar/lib/pipes/index.d.ts +0 -1
- package/components/calendar/lib/services/calendar-month.service.d.ts +0 -13
- package/components/calendar/lib/services/calendar-year.service.d.ts +0 -10
- package/components/calendar/lib/services/calendar-years.service.d.ts +0 -9
- package/components/calendar/lib/services/index.d.ts +0 -3
- package/components/calendar/lib/utils/check-cell-in-range.d.ts +0 -8
- package/components/calendar/lib/utils/check-identical-date.d.ts +0 -3
- package/components/calendar/lib/utils/get-A11y-label.d.ts +0 -3
- package/components/calendar/lib/utils/index.d.ts +0 -9
- package/components/calendar/lib/utils/is-date-disabled.d.ts +0 -3
- package/components/calendar/lib/utils/parse-date.d.ts +0 -3
- package/components/calendar/lib/utils/validate-daterange.d.ts +0 -2
- package/components/calendar/lib/utils/validate-max-date.d.ts +0 -3
- package/components/calendar/lib/utils/validate-min-date.d.ts +0 -3
- package/components/calendar/lib/utils/validate-next-date-set.d.ts +0 -3
- package/components/calendar/lib/utils/validate-previous-date-set.d.ts +0 -3
- package/components/card/lib/card.component.d.ts +0 -54
- package/components/card/lib/card.config.d.ts +0 -49
- package/components/card/lib/card.module.d.ts +0 -12
- package/components/card/lib/components/card-footer/card-footer.component.d.ts +0 -8
- package/components/card/lib/components/card-image/card-image.component.d.ts +0 -25
- package/components/card/lib/components/index.d.ts +0 -3
- package/components/card/lib/components/launch-card-subtitle/launch-card-subtitle.component.d.ts +0 -8
- package/components/card/lib/directives/card-content.directive.d.ts +0 -8
- package/components/card/lib/directives/index.d.ts +0 -1
- package/components/card/lib/models/card-variant.d.ts +0 -7
- package/components/card/lib/models/index.d.ts +0 -1
- package/components/checkbox/lib/checkbox.component.d.ts +0 -55
- package/components/checkbox/lib/checkbox.module.d.ts +0 -9
- package/components/checkbox/lib/checkbox.validator.d.ts +0 -29
- package/components/chip/lib/components/chip/chip.component.d.ts +0 -42
- package/components/chip/lib/components/chip-list/chip-list.component.d.ts +0 -9
- package/components/chip/lib/components/chip-list-row/chip-list-row.component.d.ts +0 -9
- package/components/chip/lib/components/index.d.ts +0 -3
- package/components/chip/lib/models/chip-size.d.ts +0 -5
- package/components/chip/lib/models/chip-variant.d.ts +0 -9
- package/components/chip/lib/models/index.d.ts +0 -2
- package/components/circular-progress/lib/circular-progress.component.d.ts +0 -61
- package/components/circular-progress/lib/models/circular-progress-size.d.ts +0 -7
- package/components/circular-progress/lib/models/index.d.ts +0 -1
- package/components/content-box/lib/content-box.component.d.ts +0 -8
- package/components/content-box/lib/content-box.module.d.ts +0 -9
- package/components/content-box/lib/directives/content-box-footer.directive.d.ts +0 -8
- package/components/content-box/lib/directives/content-box-header.directive.d.ts +0 -8
- package/components/content-box/lib/directives/index.d.ts +0 -2
- package/components/data-table/lib/data-table.component.d.ts +0 -32
- package/components/data-table/lib/data-table.module.d.ts +0 -14
- package/components/data-table/lib/directives/cell-def.directive.d.ts +0 -7
- package/components/data-table/lib/directives/cell.directive.d.ts +0 -5
- package/components/data-table/lib/directives/column-def.directive.d.ts +0 -11
- package/components/data-table/lib/directives/header-cell-def.directive.d.ts +0 -7
- package/components/data-table/lib/directives/header-cell.directive.d.ts +0 -5
- package/components/data-table/lib/directives/index.d.ts +0 -6
- package/components/data-table/lib/directives/table-empty.directive.d.ts +0 -5
- package/components/data-table/lib/models/index.d.ts +0 -15
- package/components/data-table/lib/models/table-variant.d.ts +0 -5
- package/components/datepicker/lib/datepicker.component.d.ts +0 -132
- package/components/datepicker/lib/datepicker.config.d.ts +0 -1
- package/components/datepicker/lib/datepicker.module.d.ts +0 -11
- package/components/datepicker/lib/directives/datepicker-input-control.directive.d.ts +0 -49
- package/components/datepicker/lib/directives/index.d.ts +0 -1
- package/components/datepicker/lib/validators/filter.validator.d.ts +0 -15
- package/components/datepicker/lib/validators/minmax.validator.d.ts +0 -15
- package/components/daterangepicker/lib/daterangepicker.component.d.ts +0 -159
- package/components/daterangepicker/lib/daterangepicker.config.d.ts +0 -1
- package/components/daterangepicker/lib/daterangepicker.module.d.ts +0 -11
- package/components/daterangepicker/lib/directives/daterangepicker-input-control.directive.d.ts +0 -45
- package/components/daterangepicker/lib/directives/index.d.ts +0 -1
- package/components/daterangepicker/lib/range.validator.d.ts +0 -25
- package/components/daterangepicker/lib/required.validator.d.ts +0 -24
- package/components/dropdown/lib/dropdown.component.d.ts +0 -33
- package/components/dropdown/lib/dropdown.directive.d.ts +0 -145
- package/components/dropdown/lib/dropdown.module.d.ts +0 -8
- package/components/dropdown/lib/helpers/close-current-dropdown.d.ts +0 -7
- package/components/dropdown/lib/helpers/index.d.ts +0 -1
- package/components/dropdown/lib/models/close-dropdown-event.d.ts +0 -4
- package/components/dropdown/lib/models/dropdown-options.d.ts +0 -3
- package/components/dropdown/lib/models/index.d.ts +0 -2
- package/components/error-page/lib/error-page.component.d.ts +0 -16
- package/components/error-page/lib/error-page.config.d.ts +0 -34
- package/components/footer/lib/footer.component.d.ts +0 -28
- package/components/footer/lib/footer.config.d.ts +0 -32
- package/components/footer/lib/footer.i18n.d.ts +0 -3
- package/components/footer/lib/helpers/create-footer-links.d.ts +0 -11
- package/components/footer/lib/helpers/index.d.ts +0 -1
- package/components/footer/lib/models/footer-link.d.ts +0 -4
- package/components/footer/lib/models/footer-variant.d.ts +0 -5
- package/components/footer/lib/models/index.d.ts +0 -2
- package/components/form-field/lib/components/form-field-info/form-field-info.component.d.ts +0 -23
- package/components/form-field/lib/components/form-group/form-group.component.d.ts +0 -34
- package/components/form-field/lib/components/index.d.ts +0 -2
- package/components/form-field/lib/directives/form-field-control.directive.d.ts +0 -25
- package/components/form-field/lib/directives/form-field-error.directive.d.ts +0 -18
- package/components/form-field/lib/directives/form-field-hint.directive.d.ts +0 -11
- package/components/form-field/lib/directives/form-field-label.directive.d.ts +0 -9
- package/components/form-field/lib/directives/form.directive.d.ts +0 -25
- package/components/form-field/lib/directives/index.d.ts +0 -5
- package/components/form-field/lib/form-field.component.d.ts +0 -61
- package/components/form-field/lib/form-field.config.d.ts +0 -16
- package/components/form-field/lib/form-field.module.d.ts +0 -14
- package/components/form-field/lib/form-field.service.d.ts +0 -92
- package/components/form-field/lib/models/form-field-error-resolver.d.ts +0 -27
- package/components/form-field/lib/models/form-field-error.d.ts +0 -8
- package/components/form-field/lib/models/form-field-variant.d.ts +0 -6
- package/components/form-field/lib/models/index.d.ts +0 -3
- package/components/form-field/lib/services/form-field-error.service.d.ts +0 -51
- package/components/form-field/lib/services/index.d.ts +0 -1
- package/components/header/lib/directives/header-avatar.directive.d.ts +0 -12
- package/components/header/lib/directives/header-title.directive.d.ts +0 -8
- package/components/header/lib/directives/index.d.ts +0 -2
- package/components/header/lib/header.component.d.ts +0 -9
- package/components/header/lib/header.module.d.ts +0 -15
- package/components/header-navigation/lib/directives/header-navigation-link.directive.d.ts +0 -14
- package/components/header-navigation/lib/directives/index.d.ts +0 -1
- package/components/header-navigation/lib/header-navigation.component.d.ts +0 -17
- package/components/header-navigation/lib/header-navigation.module.d.ts +0 -9
- package/components/icon/lib/helpers/index.d.ts +0 -1
- package/components/icon/lib/helpers/unpack-icon-identifier.d.ts +0 -29
- package/components/icon/lib/icon.component.d.ts +0 -50
- package/components/icon/lib/icon.config.d.ts +0 -31
- package/components/icon/lib/models/icon-set.d.ts +0 -7
- package/components/icon/lib/models/icon-size.d.ts +0 -8
- package/components/icon/lib/models/index.d.ts +0 -2
- package/components/inline-message/lib/inline-message.component.d.ts +0 -26
- package/components/inline-message/lib/models/index.d.ts +0 -1
- package/components/inline-message/lib/models/inline-message-variant.d.ts +0 -7
- package/components/link/link.directive.d.ts +0 -10
- package/components/list/lib/components/expandable-list-item/expandable-list-item.component.d.ts +0 -18
- package/components/list/lib/components/index.d.ts +0 -2
- package/components/list/lib/components/list-item/list-item.component.d.ts +0 -47
- package/components/list/lib/list.component.d.ts +0 -13
- package/components/list/lib/list.module.d.ts +0 -10
- package/components/list/lib/models/index.d.ts +0 -1
- package/components/list/lib/models/list-item-variant.d.ts +0 -6
- package/components/loading-spinner/lib/loading-spinner.component.d.ts +0 -26
- package/components/loading-spinner/lib/loading-spinner.directive.d.ts +0 -53
- package/components/loading-spinner/lib/loading-spinner.module.d.ts +0 -9
- package/components/logo/logo.directive.d.ts +0 -24
- package/components/logo/models/index.d.ts +0 -2
- package/components/logo/models/logo-size.d.ts +0 -6
- package/components/logo/models/logo-variant.d.ts +0 -5
- package/components/main-menu/lib/directives/index.d.ts +0 -3
- package/components/main-menu/lib/directives/main-menu-button.directive.d.ts +0 -12
- package/components/main-menu/lib/directives/main-menu-close.directive.d.ts +0 -10
- package/components/main-menu/lib/directives/main-menu-item.directive.d.ts +0 -28
- package/components/main-menu/lib/helpers/create-main-menu-links.d.ts +0 -4
- package/components/main-menu/lib/helpers/index.d.ts +0 -1
- package/components/main-menu/lib/main-menu.component.d.ts +0 -67
- package/components/main-menu/lib/main-menu.config.d.ts +0 -43
- package/components/main-menu/lib/main-menu.i18n.d.ts +0 -3
- package/components/main-menu/lib/main-menu.module.d.ts +0 -12
- package/components/main-menu/lib/main-menu.service.d.ts +0 -39
- package/components/main-menu/lib/models/index.d.ts +0 -1
- package/components/main-menu/lib/models/main-menu-link.d.ts +0 -4
- package/components/mainfilter-group/lib/mainfilter-group.component.d.ts +0 -10
- package/components/menu/lib/directives/index.d.ts +0 -1
- package/components/menu/lib/directives/menu-item.directive.d.ts +0 -14
- package/components/menu/lib/menu.component.d.ts +0 -22
- package/components/menu/lib/menu.directive.d.ts +0 -48
- package/components/menu/lib/menu.module.d.ts +0 -11
- package/components/modal/lib/components/basic-modal/basic-modal.component.d.ts +0 -24
- package/components/modal/lib/components/index.d.ts +0 -4
- package/components/modal/lib/components/modal-footer/modal-footer.component.d.ts +0 -9
- package/components/modal/lib/components/modal-header/modal-header.component.d.ts +0 -20
- package/components/modal/lib/components/modal-hero/modal-hero.component.d.ts +0 -37
- package/components/modal/lib/directives/index.d.ts +0 -5
- package/components/modal/lib/directives/modal-close.directive.d.ts +0 -32
- package/components/modal/lib/directives/modal-content.directive.d.ts +0 -9
- package/components/modal/lib/directives/modal-dismiss.directive.d.ts +0 -24
- package/components/modal/lib/directives/prevent-form-method-dialog.directive.d.ts +0 -9
- package/components/modal/lib/directives/prevent-method-dialog.directive.d.ts +0 -9
- package/components/modal/lib/helpers/index.d.ts +0 -2
- package/components/modal/lib/helpers/inject-modal-ref.d.ts +0 -23
- package/components/modal/lib/helpers/provide-modal-ref.d.ts +0 -12
- package/components/modal/lib/modal.component.d.ts +0 -48
- package/components/modal/lib/modal.config.d.ts +0 -36
- package/components/modal/lib/modal.directive.d.ts +0 -47
- package/components/modal/lib/modal.module.d.ts +0 -20
- package/components/modal/lib/modal.service.d.ts +0 -79
- package/components/modal/lib/models/basic-modal-options.d.ts +0 -17
- package/components/modal/lib/models/index.d.ts +0 -7
- package/components/modal/lib/models/modal-hero-variant.d.ts +0 -7
- package/components/modal/lib/models/modal-options.d.ts +0 -18
- package/components/modal/lib/models/modal-ref.d.ts +0 -68
- package/components/modal/lib/models/modal-size.d.ts +0 -7
- package/components/modal/lib/models/modal-type.d.ts +0 -8
- package/components/modal/lib/models/modal-variant.d.ts +0 -5
- package/components/navigation-back/lib/navigation-back.component.d.ts +0 -9
- package/components/notification/lib/components/index.d.ts +0 -2
- package/components/notification/lib/components/notification-center/notification-center.component.d.ts +0 -15
- package/components/notification/lib/components/notification-item/notification-item.component.d.ts +0 -37
- package/components/notification/lib/directives/index.d.ts +0 -1
- package/components/notification/lib/directives/notification-center.directive.d.ts +0 -86
- package/components/notification/lib/features/index.d.ts +0 -5
- package/components/notification/lib/features/with-browser-notifications.d.ts +0 -17
- package/components/notification/lib/features/with-load-notifications.d.ts +0 -19
- package/components/notification/lib/features/with-notification-transformer.d.ts +0 -26
- package/components/notification/lib/features/with-peristent-notifications.d.ts +0 -61
- package/components/notification/lib/features/with-save-notifications.d.ts +0 -11
- package/components/notification/lib/helpers/get-notifications-by-tag.d.ts +0 -3
- package/components/notification/lib/helpers/index.d.ts +0 -3
- package/components/notification/lib/helpers/sort-notifications.d.ts +0 -4
- package/components/notification/lib/helpers/to-notification-collection.d.ts +0 -4
- package/components/notification/lib/models/index.d.ts +0 -8
- package/components/notification/lib/models/notification-action.d.ts +0 -2
- package/components/notification/lib/models/notification-collection.d.ts +0 -6
- package/components/notification/lib/models/notification-feature.d.ts +0 -20
- package/components/notification/lib/models/notification-options.d.ts +0 -7
- package/components/notification/lib/models/notification-query.d.ts +0 -2
- package/components/notification/lib/models/notification-sort-fn.d.ts +0 -2
- package/components/notification/lib/models/notification.d.ts +0 -6
- package/components/notification/lib/models/notification.ref.d.ts +0 -9
- package/components/notification/lib/notification.config.d.ts +0 -65
- package/components/notification/lib/notification.i18n.d.ts +0 -3
- package/components/notification/lib/notification.logger.d.ts +0 -4
- package/components/notification/lib/notification.service.d.ts +0 -165
- package/components/notification/lib/notification.tokens.d.ts +0 -7
- package/components/notification/lib/services/index.d.ts +0 -1
- package/components/notification/lib/services/notification-center.service.d.ts +0 -78
- package/components/notification/testing/lib/test-helpers.d.ts +0 -5
- package/components/paginator/lib/interfaces/index.d.ts +0 -1
- package/components/paginator/lib/interfaces/page-change.interface.d.ts +0 -5
- package/components/paginator/lib/models/get-range-content.model.d.ts +0 -2
- package/components/paginator/lib/models/get-summary-content.model.d.ts +0 -2
- package/components/paginator/lib/models/index.d.ts +0 -2
- package/components/paginator/lib/paginator.component.d.ts +0 -183
- package/components/paginator/lib/paginator.config.d.ts +0 -59
- package/components/paginator/lib/paginator.module.d.ts +0 -7
- package/components/progress/lib/progress.component.d.ts +0 -33
- package/components/radio-group/lib/components/index.d.ts +0 -1
- package/components/radio-group/lib/components/radio-button/radio-button.component.d.ts +0 -36
- package/components/radio-group/lib/radio-group.component.d.ts +0 -25
- package/components/radio-group/lib/radio-group.module.d.ts +0 -9
- package/components/rail-navigation/lib/components/index.d.ts +0 -1
- package/components/rail-navigation/lib/components/rail-navigation-item/rail-navigation-item.component.d.ts +0 -41
- package/components/rail-navigation/lib/models/index.d.ts +0 -1
- package/components/rail-navigation/lib/models/rail-navigation-variant.d.ts +0 -5
- package/components/rail-navigation/lib/rail-navigation.component.d.ts +0 -49
- package/components/rail-navigation/lib/rail-navigation.module.d.ts +0 -9
- package/components/rich-list/lib/components/index.d.ts +0 -3
- package/components/rich-list/lib/components/rich-list-content/rich-list-content.component.d.ts +0 -10
- package/components/rich-list/lib/components/rich-list-item/rich-list-item.component.d.ts +0 -40
- package/components/rich-list/lib/components/rich-list-item-header/rich-list-item-header.component.d.ts +0 -10
- package/components/rich-list/lib/rich-list.component.d.ts +0 -23
- package/components/rich-list/lib/rich-list.module.d.ts +0 -11
- package/components/search-bar/lib/search-bar-control.directive.d.ts +0 -8
- package/components/search-bar/lib/search-bar.component.d.ts +0 -8
- package/components/search-bar/lib/search-bar.module.d.ts +0 -9
- package/components/select/lib/components/index.d.ts +0 -1
- package/components/select/lib/components/select-option/select-option.component.d.ts +0 -56
- package/components/select/lib/directives/index.d.ts +0 -2
- package/components/select/lib/directives/select-all.directive.d.ts +0 -13
- package/components/select/lib/directives/select-input-control.directive.d.ts +0 -31
- package/components/select/lib/pipes/index.d.ts +0 -1
- package/components/select/lib/pipes/select-search-filter.pipe.d.ts +0 -17
- package/components/select/lib/select.component.d.ts +0 -140
- package/components/select/lib/select.module.d.ts +0 -11
- package/components/select/lib/select.tokens.d.ts +0 -3
- package/components/slider/lib/slider.directive.d.ts +0 -34
- package/components/spinbox/lib/spinbox.component.d.ts +0 -51
- package/components/switch/lib/switch.component.d.ts +0 -17
- package/components/switch/lib/switch.module.d.ts +0 -9
- package/components/switch/lib/switch.validator.d.ts +0 -18
- package/components/tab-bar/lib/components/index.d.ts +0 -1
- package/components/tab-bar/lib/components/tab-bar-item/tab-bar-item.component.d.ts +0 -52
- package/components/tab-bar/lib/models/index.d.ts +0 -1
- package/components/tab-bar/lib/models/tab-change-event.d.ts +0 -5
- package/components/tab-bar/lib/tab-bar.component.d.ts +0 -77
- package/components/tab-bar/lib/tab-bar.config.d.ts +0 -3
- package/components/tab-bar/lib/tab-bar.module.d.ts +0 -9
- package/components/table/lib/components/check-cell/check-cell.component.d.ts +0 -33
- package/components/table/lib/components/header-title/header-title.component.d.ts +0 -71
- package/components/table/lib/components/index.d.ts +0 -2
- package/components/table/lib/directives/index.d.ts +0 -2
- package/components/table/lib/directives/table-cell.directive.d.ts +0 -10
- package/components/table/lib/directives/table-row.directive.d.ts +0 -10
- package/components/table/lib/models/header-cell.d.ts +0 -8
- package/components/table/lib/models/index.d.ts +0 -5
- package/components/table/lib/models/sort-status.d.ts +0 -5
- package/components/table/lib/models/sort-variant.d.ts +0 -21
- package/components/table/lib/models/table-body-cell.d.ts +0 -3
- package/components/table/lib/models/table-variant.d.ts +0 -5
- package/components/table/lib/table.component.d.ts +0 -85
- package/components/table/lib/table.config.d.ts +0 -4
- package/components/table/lib/table.module.d.ts +0 -11
- package/components/timepicker/lib/components/timepicker-option.component.d.ts +0 -52
- package/components/timepicker/lib/directives/timepicker-input-control.directive.d.ts +0 -43
- package/components/timepicker/lib/timepicker.component.d.ts +0 -120
- package/components/timepicker/lib/timepicker.module.d.ts +0 -10
- package/components/timepicker/lib/timepicker.service.d.ts +0 -59
- package/components/timepicker/lib/timepicker.token.d.ts +0 -9
- package/components/timepicker/lib/utils/generate-time-stamps.d.ts +0 -19
- package/components/timepicker/lib/utils/index.d.ts +0 -2
- package/components/timepicker/lib/utils/ngx-mask-helper.d.ts +0 -22
- package/components/toast/lib/components/index.d.ts +0 -2
- package/components/toast/lib/components/toast-container/toast-container.component.d.ts +0 -42
- package/components/toast/lib/components/toast-item/toast-item.component.d.ts +0 -77
- package/components/toast/lib/models/index.d.ts +0 -5
- package/components/toast/lib/models/toast-action.d.ts +0 -7
- package/components/toast/lib/models/toast-ref.d.ts +0 -7
- package/components/toast/lib/models/toast-variant.d.ts +0 -9
- package/components/toast/lib/models/toast.d.ts +0 -12
- package/components/toast/lib/models/toast.options.d.ts +0 -4
- package/components/toast/lib/toast.config.d.ts +0 -29
- package/components/toast/lib/toast.module.d.ts +0 -9
- package/components/toast/lib/toast.service.d.ts +0 -91
- package/components/toggle-button-group/lib/components/index.d.ts +0 -1
- package/components/toggle-button-group/lib/components/toggle-button/toggle-button.component.d.ts +0 -24
- package/components/toggle-button-group/lib/toggle-button-group.component.d.ts +0 -30
- package/components/toggle-button-group/lib/toggle-button-group.module.d.ts +0 -9
- package/components/tooltip/lib/directives/index.d.ts +0 -2
- package/components/tooltip/lib/directives/tooltip-disabled-focusable.directive.d.ts +0 -20
- package/components/tooltip/lib/helpers/index.d.ts +0 -1
- package/components/tooltip/lib/helpers/resolve-tooltip-trigger-events.d.ts +0 -9
- package/components/tooltip/lib/models/index.d.ts +0 -3
- package/components/tooltip/lib/models/tooltip-options.d.ts +0 -10
- package/components/tooltip/lib/models/tooltip-size.d.ts +0 -7
- package/components/tooltip/lib/models/tooltip-trigger.d.ts +0 -1
- package/components/tooltip/lib/tooltip.component.d.ts +0 -40
- package/components/tooltip/lib/tooltip.config.d.ts +0 -29
- package/components/tooltip/lib/tooltip.directive.d.ts +0 -84
- package/components/wizard/lib/components/index.d.ts +0 -1
- package/components/wizard/lib/components/wizard-step/wizard-step.component.d.ts +0 -68
- package/components/wizard/lib/wizard.component.d.ts +0 -83
- package/components/wizard/lib/wizard.module.d.ts +0 -9
- package/esm2022/animations/index.mjs +0 -6
- package/esm2022/animations/lib/config.mjs +0 -8
- package/esm2022/animations/lib/expand.mjs +0 -58
- package/esm2022/animations/lib/fade.mjs +0 -83
- package/esm2022/animations/lib/slide.mjs +0 -55
- package/esm2022/animations/lib/wait-for-child-animations.mjs +0 -41
- package/esm2022/animations/odx-angular-animations.mjs +0 -5
- package/esm2022/breakpoints/index.mjs +0 -8
- package/esm2022/breakpoints/lib/breakpoints.config.mjs +0 -51
- package/esm2022/breakpoints/lib/breakpoints.module.mjs +0 -17
- package/esm2022/breakpoints/lib/breakpoints.service.mjs +0 -77
- package/esm2022/breakpoints/lib/breakpoints.typings.mjs +0 -2
- package/esm2022/breakpoints/lib/directives/index.mjs +0 -2
- package/esm2022/breakpoints/lib/directives/match-breakpoints.directive.mjs +0 -84
- package/esm2022/breakpoints/lib/helpers/configure-breakpoint.mjs +0 -27
- package/esm2022/breakpoints/lib/helpers/index.mjs +0 -2
- package/esm2022/breakpoints/lib/models/breakpoint.mjs +0 -2
- package/esm2022/breakpoints/lib/models/index.mjs +0 -2
- package/esm2022/breakpoints/odx-angular-breakpoints.mjs +0 -5
- package/esm2022/cdk/a11y/index.mjs +0 -3
- package/esm2022/cdk/a11y/lib/a11y.module.mjs +0 -19
- package/esm2022/cdk/a11y/lib/directives/index.mjs +0 -4
- package/esm2022/cdk/a11y/lib/directives/interactive.directive.mjs +0 -81
- package/esm2022/cdk/a11y/lib/directives/list-focus-manager-option.directive.mjs +0 -50
- package/esm2022/cdk/a11y/lib/directives/list-focus-manager.directive.mjs +0 -59
- package/esm2022/cdk/a11y/odx-angular-cdk-a11y.mjs +0 -5
- package/esm2022/cdk/active-indicator/index.mjs +0 -3
- package/esm2022/cdk/active-indicator/lib/active-indicator.directive.mjs +0 -193
- package/esm2022/cdk/active-indicator/lib/models/active-indicator-direction.mjs +0 -5
- package/esm2022/cdk/active-indicator/lib/models/active-indicator-position.mjs +0 -6
- package/esm2022/cdk/active-indicator/lib/models/index.mjs +0 -3
- package/esm2022/cdk/active-indicator/odx-angular-cdk-active-indicator.mjs +0 -5
- package/esm2022/cdk/autocomplete-control/index.mjs +0 -4
- package/esm2022/cdk/autocomplete-control/lib/autocomplete-control.mjs +0 -198
- package/esm2022/cdk/autocomplete-control/lib/directives/highlight-search-result.directive.mjs +0 -43
- package/esm2022/cdk/autocomplete-control/lib/directives/index.mjs +0 -2
- package/esm2022/cdk/autocomplete-control/lib/pipes/base-search-filter-pipe.mjs +0 -47
- package/esm2022/cdk/autocomplete-control/lib/pipes/index.mjs +0 -2
- package/esm2022/cdk/autocomplete-control/odx-angular-cdk-autocomplete-control.mjs +0 -5
- package/esm2022/cdk/checkbox-control/index.mjs +0 -2
- package/esm2022/cdk/checkbox-control/lib/checkbox-control.directive.mjs +0 -67
- package/esm2022/cdk/checkbox-control/odx-angular-cdk-checkbox-control.mjs +0 -5
- package/esm2022/cdk/connected-overlay/index.mjs +0 -4
- package/esm2022/cdk/connected-overlay/lib/connected-overlay.component.mjs +0 -83
- package/esm2022/cdk/connected-overlay/lib/connected-overlay.service.mjs +0 -69
- package/esm2022/cdk/connected-overlay/lib/helpers/compute-overlay-position.mjs +0 -59
- package/esm2022/cdk/connected-overlay/lib/helpers/index.mjs +0 -2
- package/esm2022/cdk/connected-overlay/lib/models/connected-overlay-options.mjs +0 -12
- package/esm2022/cdk/connected-overlay/lib/models/connected-overlay-ref.mjs +0 -69
- package/esm2022/cdk/connected-overlay/lib/models/index.mjs +0 -3
- package/esm2022/cdk/connected-overlay/odx-angular-cdk-connected-overlay.mjs +0 -5
- package/esm2022/cdk/custom-form-control/index.mjs +0 -4
- package/esm2022/cdk/custom-form-control/lib/control.directive.mjs +0 -19
- package/esm2022/cdk/custom-form-control/lib/custom-form-control.mjs +0 -224
- package/esm2022/cdk/custom-form-control/lib/input-control.directive.mjs +0 -110
- package/esm2022/cdk/custom-form-control/odx-angular-cdk-custom-form-control.mjs +0 -5
- package/esm2022/cdk/date-input/index.mjs +0 -6
- package/esm2022/cdk/date-input/lib/date.config.mjs +0 -26
- package/esm2022/cdk/date-input/lib/models/input-date-order.mjs +0 -16
- package/esm2022/cdk/date-input/lib/utils/get-date-input-pattern.mjs +0 -18
- package/esm2022/cdk/date-input/lib/utils/get-input-value-as-date.mjs +0 -38
- package/esm2022/cdk/date-input/lib/utils/ngx-mask-init.mjs +0 -22
- package/esm2022/cdk/date-input/odx-angular-cdk-date-input.mjs +0 -5
- package/esm2022/cdk/dynamic-view/index.mjs +0 -8
- package/esm2022/cdk/dynamic-view/lib/dynamic-view.component.mjs +0 -43
- package/esm2022/cdk/dynamic-view/lib/dynamic-view.directive.mjs +0 -113
- package/esm2022/cdk/dynamic-view/lib/dynamic-view.service.mjs +0 -75
- package/esm2022/cdk/dynamic-view/lib/facade/dynamic-content.mjs +0 -2
- package/esm2022/cdk/dynamic-view/lib/facade/dynamic-view-ref.mjs +0 -2
- package/esm2022/cdk/dynamic-view/lib/facade/index.mjs +0 -3
- package/esm2022/cdk/dynamic-view/lib/helpers/create-projectable-nodes.mjs +0 -31
- package/esm2022/cdk/dynamic-view/lib/helpers/index.mjs +0 -4
- package/esm2022/cdk/dynamic-view/lib/helpers/is-dynamic-text-content.mjs +0 -28
- package/esm2022/cdk/dynamic-view/lib/helpers/is-dynamic-view.mjs +0 -27
- package/esm2022/cdk/dynamic-view/lib/models/dynamic-component-ref.mjs +0 -108
- package/esm2022/cdk/dynamic-view/lib/models/dynamic-template-ref.mjs +0 -87
- package/esm2022/cdk/dynamic-view/lib/models/dynamic-view-options.mjs +0 -2
- package/esm2022/cdk/dynamic-view/lib/models/index.mjs +0 -4
- package/esm2022/cdk/dynamic-view/lib/tokens/dynamic-view-context.mjs +0 -7
- package/esm2022/cdk/dynamic-view/lib/tokens/dynamic-view-default-host.mjs +0 -20
- package/esm2022/cdk/dynamic-view/lib/tokens/index.mjs +0 -3
- package/esm2022/cdk/dynamic-view/odx-angular-cdk-dynamic-view.mjs +0 -5
- package/esm2022/cdk/event-plugins/index.mjs +0 -4
- package/esm2022/cdk/event-plugins/lib/event-plugins.config.mjs +0 -48
- package/esm2022/cdk/event-plugins/lib/models/event-plugin.mjs +0 -60
- package/esm2022/cdk/event-plugins/lib/models/index.mjs +0 -2
- package/esm2022/cdk/event-plugins/lib/plugins/debounce-event-plugin.mjs +0 -67
- package/esm2022/cdk/event-plugins/lib/plugins/defer-event-plugin.mjs +0 -51
- package/esm2022/cdk/event-plugins/lib/plugins/index.mjs +0 -3
- package/esm2022/cdk/event-plugins/odx-angular-cdk-event-plugins.mjs +0 -5
- package/esm2022/cdk/expandable/index.mjs +0 -5
- package/esm2022/cdk/expandable/lib/directives/expandable-container.directive.mjs +0 -104
- package/esm2022/cdk/expandable/lib/directives/expandable-item.directive.mjs +0 -119
- package/esm2022/cdk/expandable/lib/directives/index.mjs +0 -3
- package/esm2022/cdk/expandable/lib/expandable.module.mjs +0 -17
- package/esm2022/cdk/expandable/lib/expandable.tokens.mjs +0 -4
- package/esm2022/cdk/expandable/lib/facade/expandable-container.mjs +0 -2
- package/esm2022/cdk/expandable/lib/facade/expandable-item.mjs +0 -2
- package/esm2022/cdk/expandable/lib/facade/index.mjs +0 -3
- package/esm2022/cdk/expandable/odx-angular-cdk-expandable.mjs +0 -5
- package/esm2022/cdk/option-control/index.mjs +0 -2
- package/esm2022/cdk/option-control/lib/option-control.mjs +0 -91
- package/esm2022/cdk/option-control/odx-angular-cdk-option-control.mjs +0 -5
- package/esm2022/cdk/radio-group-control/index.mjs +0 -4
- package/esm2022/cdk/radio-group-control/lib/radio-control.directive.mjs +0 -65
- package/esm2022/cdk/radio-group-control/lib/radio-group-control.directive.mjs +0 -60
- package/esm2022/cdk/radio-group-control/lib/radio-group-control.module.mjs +0 -19
- package/esm2022/cdk/radio-group-control/odx-angular-cdk-radio-group-control.mjs +0 -5
- package/esm2022/cdk/scrollable/index.mjs +0 -2
- package/esm2022/cdk/scrollable/lib/scrollable.service.mjs +0 -129
- package/esm2022/cdk/scrollable/odx-angular-cdk-scrollable.mjs +0 -5
- package/esm2022/components/accordion/index.mjs +0 -5
- package/esm2022/components/accordion/lib/accordion.component.mjs +0 -31
- package/esm2022/components/accordion/lib/accordion.module.mjs +0 -20
- package/esm2022/components/accordion/lib/components/accordion-item/accordion-item.component.mjs +0 -94
- package/esm2022/components/accordion/lib/components/index.mjs +0 -2
- package/esm2022/components/accordion/lib/directives/accordion-item-title.mjs +0 -17
- package/esm2022/components/accordion/lib/directives/index.mjs +0 -2
- package/esm2022/components/accordion/odx-angular-components-accordion.mjs +0 -5
- package/esm2022/components/action-group/action-group.component.mjs +0 -38
- package/esm2022/components/action-group/index.mjs +0 -2
- package/esm2022/components/action-group/odx-angular-components-action-group.mjs +0 -5
- package/esm2022/components/anchor-navigation/anchor-navigation.component.mjs +0 -69
- package/esm2022/components/anchor-navigation/anchor-navigation.module.mjs +0 -18
- package/esm2022/components/anchor-navigation/anchor-navigation.service.mjs +0 -130
- package/esm2022/components/anchor-navigation/components/anchor-navigation-item.component.mjs +0 -32
- package/esm2022/components/anchor-navigation/components/index.mjs +0 -2
- package/esm2022/components/anchor-navigation/index.mjs +0 -5
- package/esm2022/components/anchor-navigation/odx-angular-components-anchor-navigation.mjs +0 -5
- package/esm2022/components/area-header/area-header.component.mjs +0 -39
- package/esm2022/components/area-header/area-header.module.mjs +0 -47
- package/esm2022/components/area-header/directives/area-header-content.directive.mjs +0 -20
- package/esm2022/components/area-header/directives/area-header-subtitle.directive.mjs +0 -20
- package/esm2022/components/area-header/directives/index.mjs +0 -3
- package/esm2022/components/area-header/index.mjs +0 -5
- package/esm2022/components/area-header/models/area-header-size.mjs +0 -7
- package/esm2022/components/area-header/models/index.mjs +0 -2
- package/esm2022/components/area-header/odx-angular-components-area-header.mjs +0 -5
- package/esm2022/components/autocomplete/index.mjs +0 -7
- package/esm2022/components/autocomplete/lib/autocomplete.component.mjs +0 -212
- package/esm2022/components/autocomplete/lib/autocomplete.module.mjs +0 -21
- package/esm2022/components/autocomplete/lib/autocomplete.tokens.mjs +0 -3
- package/esm2022/components/autocomplete/lib/components/index.mjs +0 -2
- package/esm2022/components/autocomplete/lib/components/option/autocomplete-option.component.mjs +0 -45
- package/esm2022/components/autocomplete/lib/directives/autocomplete-input-control.directive.mjs +0 -36
- package/esm2022/components/autocomplete/lib/directives/index.mjs +0 -2
- package/esm2022/components/autocomplete/lib/pipes/autocomplete-search-filter.pipe.mjs +0 -16
- package/esm2022/components/autocomplete/lib/pipes/index.mjs +0 -2
- package/esm2022/components/autocomplete/odx-angular-components-autocomplete.mjs +0 -5
- package/esm2022/components/avatar/index.mjs +0 -3
- package/esm2022/components/avatar/lib/avatar.component.mjs +0 -48
- package/esm2022/components/avatar/lib/models/avatar-size.mjs +0 -6
- package/esm2022/components/avatar/lib/models/avatar-variant.mjs +0 -5
- package/esm2022/components/avatar/lib/models/index.mjs +0 -3
- package/esm2022/components/avatar/odx-angular-components-avatar.mjs +0 -5
- package/esm2022/components/badge/index.mjs +0 -4
- package/esm2022/components/badge/lib/badge.component.mjs +0 -62
- package/esm2022/components/badge/lib/badge.directive.mjs +0 -116
- package/esm2022/components/badge/lib/models/badge-variant.mjs +0 -6
- package/esm2022/components/badge/lib/models/index.mjs +0 -2
- package/esm2022/components/badge/odx-angular-components-badge.mjs +0 -5
- package/esm2022/components/bar/index.mjs +0 -6
- package/esm2022/components/bar/lib/bar.component.mjs +0 -28
- package/esm2022/components/bar/lib/bar.module.mjs +0 -20
- package/esm2022/components/bar/lib/directives/bar-button.directive.mjs +0 -45
- package/esm2022/components/bar/lib/directives/bar-label.directive.mjs +0 -27
- package/esm2022/components/bar/lib/models/bar-button-variant.mjs +0 -5
- package/esm2022/components/bar/odx-angular-components-bar.mjs +0 -5
- package/esm2022/components/breadcrumbs/index.mjs +0 -2
- package/esm2022/components/breadcrumbs/lib/breadcrumbs.component.mjs +0 -24
- package/esm2022/components/breadcrumbs/odx-angular-components-breadcrumbs.mjs +0 -5
- package/esm2022/components/button/index.mjs +0 -4
- package/esm2022/components/button/lib/button.component.mjs +0 -59
- package/esm2022/components/button/lib/directives/index.mjs +0 -2
- package/esm2022/components/button/lib/directives/responsive-button.directive.mjs +0 -24
- package/esm2022/components/button/lib/models/button-size.mjs +0 -6
- package/esm2022/components/button/lib/models/button-variant.mjs +0 -10
- package/esm2022/components/button/lib/models/index.mjs +0 -3
- package/esm2022/components/button/odx-angular-components-button.mjs +0 -5
- package/esm2022/components/button-group/index.mjs +0 -2
- package/esm2022/components/button-group/lib/button-group.component.mjs +0 -80
- package/esm2022/components/button-group/odx-angular-components-button-group.mjs +0 -5
- package/esm2022/components/calendar/index.mjs +0 -10
- package/esm2022/components/calendar/lib/calendar.component.mjs +0 -116
- package/esm2022/components/calendar/lib/calendar.config.mjs +0 -31
- package/esm2022/components/calendar/lib/calendar.service.mjs +0 -111
- package/esm2022/components/calendar/lib/components/calendar-header/calendar-header.component.mjs +0 -95
- package/esm2022/components/calendar/lib/components/calendar-header/index.mjs +0 -2
- package/esm2022/components/calendar/lib/components/calendar-month/calendar-month.component.mjs +0 -61
- package/esm2022/components/calendar/lib/components/calendar-month/index.mjs +0 -2
- package/esm2022/components/calendar/lib/components/calendar-year/calendar-year.component.mjs +0 -63
- package/esm2022/components/calendar/lib/components/calendar-year/index.mjs +0 -2
- package/esm2022/components/calendar/lib/components/calendar-years/calendar-years.component.mjs +0 -71
- package/esm2022/components/calendar/lib/components/calendar-years/index.mjs +0 -2
- package/esm2022/components/calendar/lib/components/index.mjs +0 -5
- package/esm2022/components/calendar/lib/daterange.service.mjs +0 -76
- package/esm2022/components/calendar/lib/directives/calendar-cell.directive.mjs +0 -202
- package/esm2022/components/calendar/lib/directives/calendar-view.directive.mjs +0 -108
- package/esm2022/components/calendar/lib/directives/index.mjs +0 -3
- package/esm2022/components/calendar/lib/models/calendar-view.mjs +0 -7
- package/esm2022/components/calendar/lib/models/date-filter.mjs +0 -2
- package/esm2022/components/calendar/lib/models/date-range.mjs +0 -7
- package/esm2022/components/calendar/lib/models/date-type.mjs +0 -2
- package/esm2022/components/calendar/lib/models/date-validator.mjs +0 -2
- package/esm2022/components/calendar/lib/models/index.mjs +0 -8
- package/esm2022/components/calendar/lib/models/selected-date.mjs +0 -5
- package/esm2022/components/calendar/lib/models/selection-mode.mjs +0 -6
- package/esm2022/components/calendar/lib/pipes/date-label.pipe.mjs +0 -47
- package/esm2022/components/calendar/lib/pipes/index.mjs +0 -2
- package/esm2022/components/calendar/lib/services/calendar-month.service.mjs +0 -38
- package/esm2022/components/calendar/lib/services/calendar-year.service.mjs +0 -34
- package/esm2022/components/calendar/lib/services/calendar-years.service.mjs +0 -37
- package/esm2022/components/calendar/lib/services/index.mjs +0 -4
- package/esm2022/components/calendar/lib/utils/check-cell-in-range.mjs +0 -29
- package/esm2022/components/calendar/lib/utils/check-identical-date.mjs +0 -12
- package/esm2022/components/calendar/lib/utils/get-A11y-label.mjs +0 -13
- package/esm2022/components/calendar/lib/utils/index.mjs +0 -10
- package/esm2022/components/calendar/lib/utils/is-date-disabled.mjs +0 -11
- package/esm2022/components/calendar/lib/utils/parse-date.mjs +0 -16
- package/esm2022/components/calendar/lib/utils/validate-daterange.mjs +0 -6
- package/esm2022/components/calendar/lib/utils/validate-max-date.mjs +0 -12
- package/esm2022/components/calendar/lib/utils/validate-min-date.mjs +0 -12
- package/esm2022/components/calendar/lib/utils/validate-next-date-set.mjs +0 -12
- package/esm2022/components/calendar/lib/utils/validate-previous-date-set.mjs +0 -12
- package/esm2022/components/calendar/odx-angular-components-calendar.mjs +0 -5
- package/esm2022/components/card/index.mjs +0 -6
- package/esm2022/components/card/lib/card.component.mjs +0 -101
- package/esm2022/components/card/lib/card.config.mjs +0 -25
- package/esm2022/components/card/lib/card.module.mjs +0 -20
- package/esm2022/components/card/lib/components/card-footer/card-footer.component.mjs +0 -16
- package/esm2022/components/card/lib/components/card-image/card-image.component.mjs +0 -83
- package/esm2022/components/card/lib/components/index.mjs +0 -4
- package/esm2022/components/card/lib/components/launch-card-subtitle/launch-card-subtitle.component.mjs +0 -16
- package/esm2022/components/card/lib/directives/card-content.directive.mjs +0 -20
- package/esm2022/components/card/lib/directives/index.mjs +0 -2
- package/esm2022/components/card/lib/models/card-variant.mjs +0 -7
- package/esm2022/components/card/lib/models/index.mjs +0 -2
- package/esm2022/components/card/odx-angular-components-card.mjs +0 -5
- package/esm2022/components/checkbox/index.mjs +0 -4
- package/esm2022/components/checkbox/lib/checkbox.component.mjs +0 -99
- package/esm2022/components/checkbox/lib/checkbox.module.mjs +0 -19
- package/esm2022/components/checkbox/lib/checkbox.validator.mjs +0 -51
- package/esm2022/components/checkbox/odx-angular-components-checkbox.mjs +0 -5
- package/esm2022/components/chip/index.mjs +0 -3
- package/esm2022/components/chip/lib/components/chip/chip.component.mjs +0 -78
- package/esm2022/components/chip/lib/components/chip-list/chip-list.component.mjs +0 -24
- package/esm2022/components/chip/lib/components/chip-list-row/chip-list-row.component.mjs +0 -24
- package/esm2022/components/chip/lib/components/index.mjs +0 -4
- package/esm2022/components/chip/lib/models/chip-size.mjs +0 -5
- package/esm2022/components/chip/lib/models/chip-variant.mjs +0 -9
- package/esm2022/components/chip/lib/models/index.mjs +0 -3
- package/esm2022/components/chip/odx-angular-components-chip.mjs +0 -5
- package/esm2022/components/circular-progress/index.mjs +0 -3
- package/esm2022/components/circular-progress/lib/circular-progress.component.mjs +0 -124
- package/esm2022/components/circular-progress/lib/models/circular-progress-size.mjs +0 -7
- package/esm2022/components/circular-progress/lib/models/index.mjs +0 -2
- package/esm2022/components/circular-progress/odx-angular-components-circular-progress.mjs +0 -5
- package/esm2022/components/content-box/index.mjs +0 -4
- package/esm2022/components/content-box/lib/content-box.component.mjs +0 -16
- package/esm2022/components/content-box/lib/content-box.module.mjs +0 -19
- package/esm2022/components/content-box/lib/directives/content-box-footer.directive.mjs +0 -20
- package/esm2022/components/content-box/lib/directives/content-box-header.directive.mjs +0 -20
- package/esm2022/components/content-box/lib/directives/index.mjs +0 -3
- package/esm2022/components/content-box/odx-angular-components-content-box.mjs +0 -5
- package/esm2022/components/data-table/index.mjs +0 -5
- package/esm2022/components/data-table/lib/data-table.component.mjs +0 -51
- package/esm2022/components/data-table/lib/data-table.module.mjs +0 -19
- package/esm2022/components/data-table/lib/directives/cell-def.directive.mjs +0 -17
- package/esm2022/components/data-table/lib/directives/cell.directive.mjs +0 -18
- package/esm2022/components/data-table/lib/directives/column-def.directive.mjs +0 -27
- package/esm2022/components/data-table/lib/directives/header-cell-def.directive.mjs +0 -17
- package/esm2022/components/data-table/lib/directives/header-cell.directive.mjs +0 -18
- package/esm2022/components/data-table/lib/directives/index.mjs +0 -7
- package/esm2022/components/data-table/lib/directives/table-empty.directive.mjs +0 -11
- package/esm2022/components/data-table/lib/models/index.mjs +0 -15
- package/esm2022/components/data-table/lib/models/table-variant.mjs +0 -5
- package/esm2022/components/data-table/odx-angular-components-data-table.mjs +0 -5
- package/esm2022/components/datepicker/index.mjs +0 -7
- package/esm2022/components/datepicker/lib/datepicker.component.mjs +0 -208
- package/esm2022/components/datepicker/lib/datepicker.config.mjs +0 -52
- package/esm2022/components/datepicker/lib/datepicker.module.mjs +0 -21
- package/esm2022/components/datepicker/lib/directives/datepicker-input-control.directive.mjs +0 -86
- package/esm2022/components/datepicker/lib/directives/index.mjs +0 -2
- package/esm2022/components/datepicker/lib/validators/filter.validator.mjs +0 -49
- package/esm2022/components/datepicker/lib/validators/minmax.validator.mjs +0 -60
- package/esm2022/components/datepicker/odx-angular-components-datepicker.mjs +0 -5
- package/esm2022/components/daterangepicker/index.mjs +0 -7
- package/esm2022/components/daterangepicker/lib/daterangepicker.component.mjs +0 -277
- package/esm2022/components/daterangepicker/lib/daterangepicker.config.mjs +0 -52
- package/esm2022/components/daterangepicker/lib/daterangepicker.module.mjs +0 -21
- package/esm2022/components/daterangepicker/lib/directives/daterangepicker-input-control.directive.mjs +0 -82
- package/esm2022/components/daterangepicker/lib/directives/index.mjs +0 -2
- package/esm2022/components/daterangepicker/lib/range.validator.mjs +0 -52
- package/esm2022/components/daterangepicker/lib/required.validator.mjs +0 -48
- package/esm2022/components/daterangepicker/odx-angular-components-daterangepicker.mjs +0 -5
- package/esm2022/components/dropdown/index.mjs +0 -6
- package/esm2022/components/dropdown/lib/dropdown.component.mjs +0 -47
- package/esm2022/components/dropdown/lib/dropdown.directive.mjs +0 -238
- package/esm2022/components/dropdown/lib/dropdown.module.mjs +0 -18
- package/esm2022/components/dropdown/lib/helpers/close-current-dropdown.mjs +0 -11
- package/esm2022/components/dropdown/lib/helpers/index.mjs +0 -2
- package/esm2022/components/dropdown/lib/models/close-dropdown-event.mjs +0 -7
- package/esm2022/components/dropdown/lib/models/dropdown-options.mjs +0 -9
- package/esm2022/components/dropdown/lib/models/index.mjs +0 -3
- package/esm2022/components/dropdown/odx-angular-components-dropdown.mjs +0 -5
- package/esm2022/components/error-page/index.mjs +0 -3
- package/esm2022/components/error-page/lib/error-page.component.mjs +0 -37
- package/esm2022/components/error-page/lib/error-page.config.mjs +0 -18
- package/esm2022/components/error-page/odx-angular-components-error-page.mjs +0 -5
- package/esm2022/components/footer/index.mjs +0 -4
- package/esm2022/components/footer/lib/footer.component.mjs +0 -58
- package/esm2022/components/footer/lib/footer.config.mjs +0 -31
- package/esm2022/components/footer/lib/footer.i18n.mjs +0 -19
- package/esm2022/components/footer/lib/helpers/create-footer-links.mjs +0 -24
- package/esm2022/components/footer/lib/helpers/index.mjs +0 -2
- package/esm2022/components/footer/lib/models/footer-link.mjs +0 -2
- package/esm2022/components/footer/lib/models/footer-variant.mjs +0 -5
- package/esm2022/components/footer/lib/models/index.mjs +0 -3
- package/esm2022/components/footer/odx-angular-components-footer.mjs +0 -5
- package/esm2022/components/form-field/index.mjs +0 -8
- package/esm2022/components/form-field/lib/components/form-field-info/form-field-info.component.mjs +0 -37
- package/esm2022/components/form-field/lib/components/form-group/form-group.component.mjs +0 -49
- package/esm2022/components/form-field/lib/components/index.mjs +0 -3
- package/esm2022/components/form-field/lib/directives/form-field-control.directive.mjs +0 -80
- package/esm2022/components/form-field/lib/directives/form-field-error.directive.mjs +0 -28
- package/esm2022/components/form-field/lib/directives/form-field-hint.directive.mjs +0 -26
- package/esm2022/components/form-field/lib/directives/form-field-label.directive.mjs +0 -27
- package/esm2022/components/form-field/lib/directives/form.directive.mjs +0 -46
- package/esm2022/components/form-field/lib/directives/index.mjs +0 -6
- package/esm2022/components/form-field/lib/form-field.component.mjs +0 -93
- package/esm2022/components/form-field/lib/form-field.config.mjs +0 -7
- package/esm2022/components/form-field/lib/form-field.module.mjs +0 -41
- package/esm2022/components/form-field/lib/form-field.service.mjs +0 -117
- package/esm2022/components/form-field/lib/models/form-field-error-resolver.mjs +0 -2
- package/esm2022/components/form-field/lib/models/form-field-error.mjs +0 -2
- package/esm2022/components/form-field/lib/models/form-field-variant.mjs +0 -6
- package/esm2022/components/form-field/lib/models/index.mjs +0 -4
- package/esm2022/components/form-field/lib/services/form-field-error.service.mjs +0 -88
- package/esm2022/components/form-field/lib/services/index.mjs +0 -2
- package/esm2022/components/form-field/odx-angular-components-form-field.mjs +0 -5
- package/esm2022/components/header/index.mjs +0 -4
- package/esm2022/components/header/lib/directives/header-avatar.directive.mjs +0 -28
- package/esm2022/components/header/lib/directives/header-title.directive.mjs +0 -20
- package/esm2022/components/header/lib/directives/index.mjs +0 -3
- package/esm2022/components/header/lib/header.component.mjs +0 -25
- package/esm2022/components/header/lib/header.module.mjs +0 -51
- package/esm2022/components/header/odx-angular-components-header.mjs +0 -5
- package/esm2022/components/header-navigation/index.mjs +0 -4
- package/esm2022/components/header-navigation/lib/directives/header-navigation-link.directive.mjs +0 -40
- package/esm2022/components/header-navigation/lib/directives/index.mjs +0 -2
- package/esm2022/components/header-navigation/lib/header-navigation.component.mjs +0 -32
- package/esm2022/components/header-navigation/lib/header-navigation.module.mjs +0 -19
- package/esm2022/components/header-navigation/odx-angular-components-header-navigation.mjs +0 -5
- package/esm2022/components/icon/index.mjs +0 -5
- package/esm2022/components/icon/lib/helpers/index.mjs +0 -2
- package/esm2022/components/icon/lib/helpers/unpack-icon-identifier.mjs +0 -38
- package/esm2022/components/icon/lib/icon.component.mjs +0 -101
- package/esm2022/components/icon/lib/icon.config.mjs +0 -25
- package/esm2022/components/icon/lib/models/icon-set.mjs +0 -7
- package/esm2022/components/icon/lib/models/icon-size.mjs +0 -8
- package/esm2022/components/icon/lib/models/index.mjs +0 -3
- package/esm2022/components/icon/odx-angular-components-icon.mjs +0 -5
- package/esm2022/components/inline-message/index.mjs +0 -3
- package/esm2022/components/inline-message/lib/inline-message.component.mjs +0 -59
- package/esm2022/components/inline-message/lib/models/index.mjs +0 -2
- package/esm2022/components/inline-message/lib/models/inline-message-variant.mjs +0 -7
- package/esm2022/components/inline-message/odx-angular-components-inline-message.mjs +0 -5
- package/esm2022/components/link/index.mjs +0 -2
- package/esm2022/components/link/link.directive.mjs +0 -30
- package/esm2022/components/link/odx-angular-components-link.mjs +0 -5
- package/esm2022/components/list/index.mjs +0 -5
- package/esm2022/components/list/lib/components/expandable-list-item/expandable-list-item.component.mjs +0 -47
- package/esm2022/components/list/lib/components/index.mjs +0 -3
- package/esm2022/components/list/lib/components/list-item/list-item.component.mjs +0 -88
- package/esm2022/components/list/lib/list.component.mjs +0 -29
- package/esm2022/components/list/lib/list.module.mjs +0 -19
- package/esm2022/components/list/lib/models/index.mjs +0 -2
- package/esm2022/components/list/lib/models/list-item-variant.mjs +0 -6
- package/esm2022/components/list/odx-angular-components-list.mjs +0 -5
- package/esm2022/components/loading-spinner/index.mjs +0 -4
- package/esm2022/components/loading-spinner/lib/loading-spinner.component.mjs +0 -69
- package/esm2022/components/loading-spinner/lib/loading-spinner.directive.mjs +0 -116
- package/esm2022/components/loading-spinner/lib/loading-spinner.module.mjs +0 -19
- package/esm2022/components/loading-spinner/odx-angular-components-loading-spinner.mjs +0 -5
- package/esm2022/components/logo/index.mjs +0 -3
- package/esm2022/components/logo/logo.directive.mjs +0 -61
- package/esm2022/components/logo/models/index.mjs +0 -3
- package/esm2022/components/logo/models/logo-size.mjs +0 -6
- package/esm2022/components/logo/models/logo-variant.mjs +0 -5
- package/esm2022/components/logo/odx-angular-components-logo.mjs +0 -5
- package/esm2022/components/main-menu/index.mjs +0 -5
- package/esm2022/components/main-menu/lib/directives/index.mjs +0 -4
- package/esm2022/components/main-menu/lib/directives/main-menu-button.directive.mjs +0 -36
- package/esm2022/components/main-menu/lib/directives/main-menu-close.directive.mjs +0 -27
- package/esm2022/components/main-menu/lib/directives/main-menu-item.directive.mjs +0 -55
- package/esm2022/components/main-menu/lib/helpers/create-main-menu-links.mjs +0 -17
- package/esm2022/components/main-menu/lib/helpers/index.mjs +0 -2
- package/esm2022/components/main-menu/lib/main-menu.component.mjs +0 -125
- package/esm2022/components/main-menu/lib/main-menu.config.mjs +0 -37
- package/esm2022/components/main-menu/lib/main-menu.i18n.mjs +0 -19
- package/esm2022/components/main-menu/lib/main-menu.module.mjs +0 -20
- package/esm2022/components/main-menu/lib/main-menu.service.mjs +0 -56
- package/esm2022/components/main-menu/lib/models/index.mjs +0 -2
- package/esm2022/components/main-menu/lib/models/main-menu-link.mjs +0 -2
- package/esm2022/components/main-menu/odx-angular-components-main-menu.mjs +0 -5
- package/esm2022/components/mainfilter-group/index.mjs +0 -2
- package/esm2022/components/mainfilter-group/lib/mainfilter-group.component.mjs +0 -25
- package/esm2022/components/mainfilter-group/odx-angular-components-mainfilter-group.mjs +0 -5
- package/esm2022/components/menu/index.mjs +0 -5
- package/esm2022/components/menu/lib/directives/index.mjs +0 -2
- package/esm2022/components/menu/lib/directives/menu-item.directive.mjs +0 -43
- package/esm2022/components/menu/lib/menu.component.mjs +0 -56
- package/esm2022/components/menu/lib/menu.directive.mjs +0 -76
- package/esm2022/components/menu/lib/menu.module.mjs +0 -21
- package/esm2022/components/menu/odx-angular-components-menu.mjs +0 -5
- package/esm2022/components/modal/index.mjs +0 -10
- package/esm2022/components/modal/lib/components/basic-modal/basic-modal.component.mjs +0 -51
- package/esm2022/components/modal/lib/components/index.mjs +0 -5
- package/esm2022/components/modal/lib/components/modal-footer/modal-footer.component.mjs +0 -24
- package/esm2022/components/modal/lib/components/modal-header/modal-header.component.mjs +0 -42
- package/esm2022/components/modal/lib/components/modal-hero/modal-hero.component.mjs +0 -55
- package/esm2022/components/modal/lib/directives/index.mjs +0 -6
- package/esm2022/components/modal/lib/directives/modal-close.directive.mjs +0 -58
- package/esm2022/components/modal/lib/directives/modal-content.directive.mjs +0 -27
- package/esm2022/components/modal/lib/directives/modal-dismiss.directive.mjs +0 -41
- package/esm2022/components/modal/lib/directives/prevent-form-method-dialog.directive.mjs +0 -23
- package/esm2022/components/modal/lib/directives/prevent-method-dialog.directive.mjs +0 -23
- package/esm2022/components/modal/lib/helpers/index.mjs +0 -3
- package/esm2022/components/modal/lib/helpers/inject-modal-ref.mjs +0 -27
- package/esm2022/components/modal/lib/helpers/provide-modal-ref.mjs +0 -14
- package/esm2022/components/modal/lib/modal.component.mjs +0 -98
- package/esm2022/components/modal/lib/modal.config.mjs +0 -44
- package/esm2022/components/modal/lib/modal.directive.mjs +0 -75
- package/esm2022/components/modal/lib/modal.module.mjs +0 -55
- package/esm2022/components/modal/lib/modal.service.mjs +0 -123
- package/esm2022/components/modal/lib/models/basic-modal-options.mjs +0 -2
- package/esm2022/components/modal/lib/models/index.mjs +0 -8
- package/esm2022/components/modal/lib/models/modal-hero-variant.mjs +0 -7
- package/esm2022/components/modal/lib/models/modal-options.mjs +0 -2
- package/esm2022/components/modal/lib/models/modal-ref.mjs +0 -99
- package/esm2022/components/modal/lib/models/modal-size.mjs +0 -7
- package/esm2022/components/modal/lib/models/modal-type.mjs +0 -2
- package/esm2022/components/modal/lib/models/modal-variant.mjs +0 -5
- package/esm2022/components/modal/odx-angular-components-modal.mjs +0 -5
- package/esm2022/components/navigation-back/index.mjs +0 -2
- package/esm2022/components/navigation-back/lib/navigation-back.component.mjs +0 -25
- package/esm2022/components/navigation-back/odx-angular-components-navigation-back.mjs +0 -5
- package/esm2022/components/notification/index.mjs +0 -8
- package/esm2022/components/notification/lib/components/index.mjs +0 -3
- package/esm2022/components/notification/lib/components/notification-center/notification-center.component.mjs +0 -61
- package/esm2022/components/notification/lib/components/notification-item/notification-item.component.mjs +0 -66
- package/esm2022/components/notification/lib/directives/index.mjs +0 -2
- package/esm2022/components/notification/lib/directives/notification-center.directive.mjs +0 -159
- package/esm2022/components/notification/lib/features/index.mjs +0 -6
- package/esm2022/components/notification/lib/features/with-browser-notifications.mjs +0 -73
- package/esm2022/components/notification/lib/features/with-load-notifications.mjs +0 -45
- package/esm2022/components/notification/lib/features/with-notification-transformer.mjs +0 -34
- package/esm2022/components/notification/lib/features/with-peristent-notifications.mjs +0 -92
- package/esm2022/components/notification/lib/features/with-save-notifications.mjs +0 -44
- package/esm2022/components/notification/lib/helpers/get-notifications-by-tag.mjs +0 -8
- package/esm2022/components/notification/lib/helpers/index.mjs +0 -4
- package/esm2022/components/notification/lib/helpers/sort-notifications.mjs +0 -11
- package/esm2022/components/notification/lib/helpers/to-notification-collection.mjs +0 -10
- package/esm2022/components/notification/lib/models/index.mjs +0 -9
- package/esm2022/components/notification/lib/models/notification-action.mjs +0 -2
- package/esm2022/components/notification/lib/models/notification-collection.mjs +0 -2
- package/esm2022/components/notification/lib/models/notification-feature.mjs +0 -19
- package/esm2022/components/notification/lib/models/notification-options.mjs +0 -2
- package/esm2022/components/notification/lib/models/notification-query.mjs +0 -2
- package/esm2022/components/notification/lib/models/notification-sort-fn.mjs +0 -2
- package/esm2022/components/notification/lib/models/notification.mjs +0 -2
- package/esm2022/components/notification/lib/models/notification.ref.mjs +0 -2
- package/esm2022/components/notification/lib/notification.config.mjs +0 -55
- package/esm2022/components/notification/lib/notification.i18n.mjs +0 -11
- package/esm2022/components/notification/lib/notification.logger.mjs +0 -4
- package/esm2022/components/notification/lib/notification.service.mjs +0 -223
- package/esm2022/components/notification/lib/notification.tokens.mjs +0 -10
- package/esm2022/components/notification/lib/services/index.mjs +0 -2
- package/esm2022/components/notification/lib/services/notification-center.service.mjs +0 -105
- package/esm2022/components/notification/odx-angular-components-notification.mjs +0 -5
- package/esm2022/components/notification/testing/index.mjs +0 -2
- package/esm2022/components/notification/testing/lib/test-helpers.mjs +0 -33
- package/esm2022/components/notification/testing/odx-angular-components-notification-testing.mjs +0 -5
- package/esm2022/components/paginator/index.mjs +0 -6
- package/esm2022/components/paginator/lib/interfaces/index.mjs +0 -2
- package/esm2022/components/paginator/lib/interfaces/page-change.interface.mjs +0 -2
- package/esm2022/components/paginator/lib/models/get-range-content.model.mjs +0 -2
- package/esm2022/components/paginator/lib/models/get-summary-content.model.mjs +0 -2
- package/esm2022/components/paginator/lib/models/index.mjs +0 -3
- package/esm2022/components/paginator/lib/paginator.component.mjs +0 -277
- package/esm2022/components/paginator/lib/paginator.config.mjs +0 -48
- package/esm2022/components/paginator/lib/paginator.module.mjs +0 -17
- package/esm2022/components/paginator/odx-angular-components-paginator.mjs +0 -5
- package/esm2022/components/progress/index.mjs +0 -2
- package/esm2022/components/progress/lib/progress.component.mjs +0 -70
- package/esm2022/components/progress/odx-angular-components-progress.mjs +0 -5
- package/esm2022/components/radio-group/index.mjs +0 -4
- package/esm2022/components/radio-group/lib/components/index.mjs +0 -2
- package/esm2022/components/radio-group/lib/components/radio-button/radio-button.component.mjs +0 -59
- package/esm2022/components/radio-group/lib/radio-group.component.mjs +0 -64
- package/esm2022/components/radio-group/lib/radio-group.module.mjs +0 -19
- package/esm2022/components/radio-group/odx-angular-components-radio-group.mjs +0 -5
- package/esm2022/components/rail-navigation/index.mjs +0 -5
- package/esm2022/components/rail-navigation/lib/components/index.mjs +0 -2
- package/esm2022/components/rail-navigation/lib/components/rail-navigation-item/rail-navigation-item.component.mjs +0 -60
- package/esm2022/components/rail-navigation/lib/models/index.mjs +0 -2
- package/esm2022/components/rail-navigation/lib/models/rail-navigation-variant.mjs +0 -5
- package/esm2022/components/rail-navigation/lib/rail-navigation.component.mjs +0 -85
- package/esm2022/components/rail-navigation/lib/rail-navigation.module.mjs +0 -19
- package/esm2022/components/rail-navigation/odx-angular-components-rail-navigation.mjs +0 -5
- package/esm2022/components/rich-list/index.mjs +0 -4
- package/esm2022/components/rich-list/lib/components/index.mjs +0 -4
- package/esm2022/components/rich-list/lib/components/rich-list-content/rich-list-content.component.mjs +0 -31
- package/esm2022/components/rich-list/lib/components/rich-list-item/rich-list-item.component.mjs +0 -83
- package/esm2022/components/rich-list/lib/components/rich-list-item-header/rich-list-item-header.component.mjs +0 -27
- package/esm2022/components/rich-list/lib/rich-list.component.mjs +0 -45
- package/esm2022/components/rich-list/lib/rich-list.module.mjs +0 -20
- package/esm2022/components/rich-list/odx-angular-components-rich-list.mjs +0 -5
- package/esm2022/components/search-bar/index.mjs +0 -4
- package/esm2022/components/search-bar/lib/search-bar-control.directive.mjs +0 -21
- package/esm2022/components/search-bar/lib/search-bar.component.mjs +0 -17
- package/esm2022/components/search-bar/lib/search-bar.module.mjs +0 -19
- package/esm2022/components/search-bar/odx-angular-components-search-bar.mjs +0 -5
- package/esm2022/components/select/index.mjs +0 -7
- package/esm2022/components/select/lib/components/index.mjs +0 -2
- package/esm2022/components/select/lib/components/select-option/select-option.component.mjs +0 -114
- package/esm2022/components/select/lib/directives/index.mjs +0 -3
- package/esm2022/components/select/lib/directives/select-all.directive.mjs +0 -33
- package/esm2022/components/select/lib/directives/select-input-control.directive.mjs +0 -61
- package/esm2022/components/select/lib/pipes/index.mjs +0 -2
- package/esm2022/components/select/lib/pipes/select-search-filter.pipe.mjs +0 -26
- package/esm2022/components/select/lib/select.component.mjs +0 -344
- package/esm2022/components/select/lib/select.module.mjs +0 -21
- package/esm2022/components/select/lib/select.tokens.mjs +0 -3
- package/esm2022/components/select/odx-angular-components-select.mjs +0 -5
- package/esm2022/components/slider/index.mjs +0 -2
- package/esm2022/components/slider/lib/slider.directive.mjs +0 -64
- package/esm2022/components/slider/odx-angular-components-slider.mjs +0 -5
- package/esm2022/components/spinbox/index.mjs +0 -2
- package/esm2022/components/spinbox/lib/spinbox.component.mjs +0 -143
- package/esm2022/components/spinbox/odx-angular-components-spinbox.mjs +0 -5
- package/esm2022/components/switch/index.mjs +0 -4
- package/esm2022/components/switch/lib/switch.component.mjs +0 -34
- package/esm2022/components/switch/lib/switch.module.mjs +0 -19
- package/esm2022/components/switch/lib/switch.validator.mjs +0 -40
- package/esm2022/components/switch/odx-angular-components-switch.mjs +0 -5
- package/esm2022/components/tab-bar/index.mjs +0 -5
- package/esm2022/components/tab-bar/lib/components/index.mjs +0 -2
- package/esm2022/components/tab-bar/lib/components/tab-bar-item/tab-bar-item.component.mjs +0 -98
- package/esm2022/components/tab-bar/lib/models/index.mjs +0 -2
- package/esm2022/components/tab-bar/lib/models/tab-change-event.mjs +0 -2
- package/esm2022/components/tab-bar/lib/tab-bar.component.mjs +0 -145
- package/esm2022/components/tab-bar/lib/tab-bar.config.mjs +0 -3
- package/esm2022/components/tab-bar/lib/tab-bar.module.mjs +0 -19
- package/esm2022/components/tab-bar/odx-angular-components-tab-bar.mjs +0 -5
- package/esm2022/components/table/index.mjs +0 -6
- package/esm2022/components/table/lib/components/check-cell/check-cell.component.mjs +0 -52
- package/esm2022/components/table/lib/components/header-title/header-title.component.mjs +0 -127
- package/esm2022/components/table/lib/components/index.mjs +0 -3
- package/esm2022/components/table/lib/directives/index.mjs +0 -3
- package/esm2022/components/table/lib/directives/table-cell.directive.mjs +0 -31
- package/esm2022/components/table/lib/directives/table-row.directive.mjs +0 -32
- package/esm2022/components/table/lib/models/header-cell.mjs +0 -2
- package/esm2022/components/table/lib/models/index.mjs +0 -6
- package/esm2022/components/table/lib/models/sort-status.mjs +0 -2
- package/esm2022/components/table/lib/models/sort-variant.mjs +0 -16
- package/esm2022/components/table/lib/models/table-body-cell.mjs +0 -2
- package/esm2022/components/table/lib/models/table-variant.mjs +0 -5
- package/esm2022/components/table/lib/table.component.mjs +0 -119
- package/esm2022/components/table/lib/table.config.mjs +0 -3
- package/esm2022/components/table/lib/table.module.mjs +0 -21
- package/esm2022/components/table/odx-angular-components-table.mjs +0 -5
- package/esm2022/components/timepicker/index.mjs +0 -8
- package/esm2022/components/timepicker/lib/components/timepicker-option.component.mjs +0 -86
- package/esm2022/components/timepicker/lib/directives/timepicker-input-control.directive.mjs +0 -87
- package/esm2022/components/timepicker/lib/timepicker.component.mjs +0 -270
- package/esm2022/components/timepicker/lib/timepicker.module.mjs +0 -20
- package/esm2022/components/timepicker/lib/timepicker.service.mjs +0 -134
- package/esm2022/components/timepicker/lib/timepicker.token.mjs +0 -9
- package/esm2022/components/timepicker/lib/utils/generate-time-stamps.mjs +0 -54
- package/esm2022/components/timepicker/lib/utils/index.mjs +0 -3
- package/esm2022/components/timepicker/lib/utils/ngx-mask-helper.mjs +0 -34
- package/esm2022/components/timepicker/odx-angular-components-timepicker.mjs +0 -5
- package/esm2022/components/toast/index.mjs +0 -6
- package/esm2022/components/toast/lib/components/index.mjs +0 -3
- package/esm2022/components/toast/lib/components/toast-container/toast-container.component.mjs +0 -111
- package/esm2022/components/toast/lib/components/toast-item/toast-item.component.mjs +0 -99
- package/esm2022/components/toast/lib/models/index.mjs +0 -6
- package/esm2022/components/toast/lib/models/toast-action.mjs +0 -2
- package/esm2022/components/toast/lib/models/toast-ref.mjs +0 -2
- package/esm2022/components/toast/lib/models/toast-variant.mjs +0 -9
- package/esm2022/components/toast/lib/models/toast.mjs +0 -2
- package/esm2022/components/toast/lib/models/toast.options.mjs +0 -2
- package/esm2022/components/toast/lib/toast.config.mjs +0 -32
- package/esm2022/components/toast/lib/toast.module.mjs +0 -18
- package/esm2022/components/toast/lib/toast.service.mjs +0 -115
- package/esm2022/components/toast/odx-angular-components-toast.mjs +0 -5
- package/esm2022/components/toggle-button-group/index.mjs +0 -4
- package/esm2022/components/toggle-button-group/lib/components/index.mjs +0 -2
- package/esm2022/components/toggle-button-group/lib/components/toggle-button/toggle-button.component.mjs +0 -46
- package/esm2022/components/toggle-button-group/lib/toggle-button-group.component.mjs +0 -74
- package/esm2022/components/toggle-button-group/lib/toggle-button-group.module.mjs +0 -19
- package/esm2022/components/toggle-button-group/odx-angular-components-toggle-button-group.mjs +0 -5
- package/esm2022/components/tooltip/index.mjs +0 -8
- package/esm2022/components/tooltip/lib/directives/index.mjs +0 -3
- package/esm2022/components/tooltip/lib/directives/tooltip-disabled-focusable.directive.mjs +0 -47
- package/esm2022/components/tooltip/lib/helpers/index.mjs +0 -2
- package/esm2022/components/tooltip/lib/helpers/resolve-tooltip-trigger-events.mjs +0 -16
- package/esm2022/components/tooltip/lib/models/index.mjs +0 -4
- package/esm2022/components/tooltip/lib/models/tooltip-options.mjs +0 -10
- package/esm2022/components/tooltip/lib/models/tooltip-size.mjs +0 -7
- package/esm2022/components/tooltip/lib/models/tooltip-trigger.mjs +0 -2
- package/esm2022/components/tooltip/lib/tooltip.component.mjs +0 -62
- package/esm2022/components/tooltip/lib/tooltip.config.mjs +0 -32
- package/esm2022/components/tooltip/lib/tooltip.directive.mjs +0 -189
- package/esm2022/components/tooltip/odx-angular-components-tooltip.mjs +0 -5
- package/esm2022/components/wizard/index.mjs +0 -4
- package/esm2022/components/wizard/lib/components/index.mjs +0 -2
- package/esm2022/components/wizard/lib/components/wizard-step/wizard-step.component.mjs +0 -124
- package/esm2022/components/wizard/lib/wizard.component.mjs +0 -224
- package/esm2022/components/wizard/lib/wizard.module.mjs +0 -19
- package/esm2022/components/wizard/odx-angular-components-wizard.mjs +0 -5
- package/esm2022/index.mjs +0 -7
- package/esm2022/internal/index.mjs +0 -4
- package/esm2022/internal/lib/decorators/css-component.mjs +0 -19
- package/esm2022/internal/lib/decorators/css-modifier.mjs +0 -49
- package/esm2022/internal/lib/decorators/index.mjs +0 -3
- package/esm2022/internal/lib/helpers/camel-to-kebab-case.mjs +0 -12
- package/esm2022/internal/lib/helpers/decorator-property-name.mjs +0 -12
- package/esm2022/internal/lib/helpers/deepmerge.mjs +0 -6
- package/esm2022/internal/lib/helpers/fast-equals.mjs +0 -3
- package/esm2022/internal/lib/helpers/get-css-variables.mjs +0 -22
- package/esm2022/internal/lib/helpers/get-enum-values.mjs +0 -6
- package/esm2022/internal/lib/helpers/index.mjs +0 -8
- package/esm2022/internal/lib/helpers/toggle-form-disabled-state.mjs +0 -6
- package/esm2022/internal/lib/logger.mjs +0 -42
- package/esm2022/internal/odx-angular-internal.mjs +0 -5
- package/esm2022/internal/translate/index.mjs +0 -5
- package/esm2022/internal/translate/lib/models/index.mjs +0 -2
- package/esm2022/internal/translate/lib/models/translation-object.mjs +0 -2
- package/esm2022/internal/translate/lib/pipes/index.mjs +0 -2
- package/esm2022/internal/translate/lib/pipes/translate.pipe.mjs +0 -22
- package/esm2022/internal/translate/lib/translate.config.mjs +0 -39
- package/esm2022/internal/translate/lib/translate.service.mjs +0 -56
- package/esm2022/internal/translate/odx-angular-internal-translate.mjs +0 -5
- package/esm2022/lib/controllers/controller.mjs +0 -64
- package/esm2022/lib/controllers/disabled.controller.mjs +0 -134
- package/esm2022/lib/controllers/index.mjs +0 -4
- package/esm2022/lib/controllers/readonly.controller.mjs +0 -135
- package/esm2022/lib/core.module.mjs +0 -19
- package/esm2022/lib/directives/click-outside.directive.mjs +0 -102
- package/esm2022/lib/directives/delegate-focus.directive.mjs +0 -54
- package/esm2022/lib/directives/index.mjs +0 -5
- package/esm2022/lib/directives/with-disabled-state.directive.mjs +0 -41
- package/esm2022/lib/directives/with-tabindex.directive.mjs +0 -24
- package/esm2022/lib/models/environment.mjs +0 -6
- package/esm2022/lib/models/index.mjs +0 -2
- package/esm2022/lib/services/index.mjs +0 -2
- package/esm2022/lib/services/window-ref.mjs +0 -157
- package/esm2022/lib/tokens/identity-matcher.mjs +0 -31
- package/esm2022/lib/tokens/index.mjs +0 -4
- package/esm2022/lib/tokens/string-search-handler.mjs +0 -33
- package/esm2022/lib/tokens/stringify.mjs +0 -33
- package/esm2022/localization/index.mjs +0 -6
- package/esm2022/localization/lib/features/index.mjs +0 -3
- package/esm2022/localization/lib/features/with-http-language-header.mjs +0 -76
- package/esm2022/localization/lib/features/with-http-language-query-param.mjs +0 -74
- package/esm2022/localization/lib/loaders/browser-language-loader.mjs +0 -38
- package/esm2022/localization/lib/loaders/index.mjs +0 -2
- package/esm2022/localization/lib/localization.config.mjs +0 -90
- package/esm2022/localization/lib/localization.logger.mjs +0 -3
- package/esm2022/localization/lib/localization.service.mjs +0 -101
- package/esm2022/localization/lib/models/index.mjs +0 -3
- package/esm2022/localization/lib/models/language-loader-fn.mjs +0 -2
- package/esm2022/localization/lib/models/localization-feature.mjs +0 -11
- package/esm2022/localization/odx-angular-localization.mjs +0 -5
- package/esm2022/odx-angular.mjs +0 -5
- package/esm2022/rxjs/index.mjs +0 -6
- package/esm2022/rxjs/lib/delay-until.mjs +0 -27
- package/esm2022/rxjs/lib/from-element-mutation.mjs +0 -31
- package/esm2022/rxjs/lib/from-element-resize.mjs +0 -38
- package/esm2022/rxjs/lib/from-events.mjs +0 -29
- package/esm2022/rxjs/lib/from-query-list.mjs +0 -24
- package/esm2022/rxjs/odx-angular-rxjs.mjs +0 -5
- package/esm2022/sdk/index.mjs +0 -2
- package/esm2022/sdk/lib/application-environment.mjs +0 -85
- package/esm2022/sdk/odx-angular-sdk.mjs +0 -5
- package/esm2022/theming/index.mjs +0 -5
- package/esm2022/theming/lib/helpers/index.mjs +0 -4
- package/esm2022/theming/lib/helpers/prefers-dark-theme.mjs +0 -22
- package/esm2022/theming/lib/helpers/resolve-theme.mjs +0 -30
- package/esm2022/theming/lib/helpers/theme-storage.mjs +0 -61
- package/esm2022/theming/lib/models/index.mjs +0 -2
- package/esm2022/theming/lib/models/theme.mjs +0 -6
- package/esm2022/theming/lib/theming.config.mjs +0 -54
- package/esm2022/theming/lib/theming.service.mjs +0 -90
- package/esm2022/theming/odx-angular-theming.mjs +0 -5
- package/esm2022/utils/index.mjs +0 -4
- package/esm2022/utils/lib/decorators/index.mjs +0 -2
- package/esm2022/utils/lib/decorators/pure.mjs +0 -88
- package/esm2022/utils/lib/helpers/angular.mjs +0 -74
- package/esm2022/utils/lib/helpers/animations-handler.mjs +0 -20
- package/esm2022/utils/lib/helpers/array.mjs +0 -51
- package/esm2022/utils/lib/helpers/build-url.mjs +0 -24
- package/esm2022/utils/lib/helpers/build-website-url.mjs +0 -30
- package/esm2022/utils/lib/helpers/cache-storage-client.mjs +0 -104
- package/esm2022/utils/lib/helpers/coercion.mjs +0 -23
- package/esm2022/utils/lib/helpers/debounce.mjs +0 -48
- package/esm2022/utils/lib/helpers/defer-fn.mjs +0 -24
- package/esm2022/utils/lib/helpers/dom.mjs +0 -135
- package/esm2022/utils/lib/helpers/event-manager.mjs +0 -49
- package/esm2022/utils/lib/helpers/get-axis.mjs +0 -34
- package/esm2022/utils/lib/helpers/get-language-code.mjs +0 -22
- package/esm2022/utils/lib/helpers/get-opposite-side.mjs +0 -36
- package/esm2022/utils/lib/helpers/get-side.mjs +0 -21
- package/esm2022/utils/lib/helpers/get-unique-id.mjs +0 -42
- package/esm2022/utils/lib/helpers/index.mjs +0 -24
- package/esm2022/utils/lib/helpers/match-url.mjs +0 -48
- package/esm2022/utils/lib/helpers/ng-changes.mjs +0 -43
- package/esm2022/utils/lib/helpers/provide-config.mjs +0 -93
- package/esm2022/utils/lib/helpers/queue.mjs +0 -185
- package/esm2022/utils/lib/helpers/sorter.mjs +0 -91
- package/esm2022/utils/lib/helpers/type-guards.mjs +0 -86
- package/esm2022/utils/lib/helpers/until-destroyed.mjs +0 -45
- package/esm2022/utils/lib/types/axis.mjs +0 -5
- package/esm2022/utils/lib/types/get-properties.mjs +0 -2
- package/esm2022/utils/lib/types/index.mjs +0 -5
- package/esm2022/utils/lib/types/position.mjs +0 -15
- package/esm2022/utils/lib/types/side.mjs +0 -7
- package/esm2022/utils/odx-angular-utils.mjs +0 -5
- package/internal/lib/decorators/css-component.d.ts +0 -8
- package/internal/lib/decorators/css-modifier.d.ts +0 -9
- package/internal/lib/decorators/index.d.ts +0 -2
- package/internal/lib/helpers/camel-to-kebab-case.d.ts +0 -2
- package/internal/lib/helpers/decorator-property-name.d.ts +0 -9
- package/internal/lib/helpers/deepmerge.d.ts +0 -11
- package/internal/lib/helpers/fast-equals.d.ts +0 -1
- package/internal/lib/helpers/get-css-variables.d.ts +0 -7
- package/internal/lib/helpers/get-enum-values.d.ts +0 -4
- package/internal/lib/helpers/index.d.ts +0 -7
- package/internal/lib/helpers/toggle-form-disabled-state.d.ts +0 -3
- package/internal/lib/logger.d.ts +0 -15
- package/internal/translate/lib/models/index.d.ts +0 -1
- package/internal/translate/lib/models/translation-object.d.ts +0 -1
- package/internal/translate/lib/pipes/index.d.ts +0 -1
- package/internal/translate/lib/pipes/translate.pipe.d.ts +0 -9
- package/internal/translate/lib/translate.config.d.ts +0 -37
- package/internal/translate/lib/translate.service.d.ts +0 -38
- package/lib/controllers/controller.d.ts +0 -39
- package/lib/controllers/disabled.controller.d.ts +0 -85
- package/lib/controllers/index.d.ts +0 -3
- package/lib/controllers/readonly.controller.d.ts +0 -78
- package/lib/core.module.d.ts +0 -10
- package/lib/directives/click-outside.directive.d.ts +0 -50
- package/lib/directives/delegate-focus.directive.d.ts +0 -25
- package/lib/directives/index.d.ts +0 -4
- package/lib/directives/with-disabled-state.directive.d.ts +0 -13
- package/lib/directives/with-tabindex.directive.d.ts +0 -10
- package/lib/models/environment.d.ts +0 -6
- package/lib/models/index.d.ts +0 -1
- package/lib/services/index.d.ts +0 -1
- package/lib/services/window-ref.d.ts +0 -105
- package/lib/tokens/identity-matcher.d.ts +0 -44
- package/lib/tokens/index.d.ts +0 -3
- package/lib/tokens/string-search-handler.d.ts +0 -42
- package/lib/tokens/stringify.d.ts +0 -45
- package/localization/lib/features/index.d.ts +0 -2
- package/localization/lib/features/with-http-language-header.d.ts +0 -72
- package/localization/lib/features/with-http-language-query-param.d.ts +0 -70
- package/localization/lib/loaders/browser-language-loader.d.ts +0 -34
- package/localization/lib/loaders/index.d.ts +0 -1
- package/localization/lib/localization.config.d.ts +0 -90
- package/localization/lib/localization.logger.d.ts +0 -3
- package/localization/lib/localization.service.d.ts +0 -56
- package/localization/lib/models/index.d.ts +0 -2
- package/localization/lib/models/language-loader-fn.d.ts +0 -2
- package/localization/lib/models/localization-feature.d.ts +0 -12
- package/rxjs/lib/delay-until.d.ts +0 -24
- package/rxjs/lib/from-element-mutation.d.ts +0 -23
- package/rxjs/lib/from-element-resize.d.ts +0 -26
- package/rxjs/lib/from-events.d.ts +0 -27
- package/rxjs/lib/from-query-list.d.ts +0 -22
- package/sdk/lib/application-environment.d.ts +0 -68
- package/theming/lib/helpers/index.d.ts +0 -3
- package/theming/lib/helpers/prefers-dark-theme.d.ts +0 -19
- package/theming/lib/helpers/resolve-theme.d.ts +0 -27
- package/theming/lib/helpers/theme-storage.d.ts +0 -46
- package/theming/lib/models/index.d.ts +0 -1
- package/theming/lib/models/theme.d.ts +0 -6
- package/theming/lib/theming.config.d.ts +0 -56
- package/theming/lib/theming.service.d.ts +0 -52
- package/utils/lib/decorators/index.d.ts +0 -1
- package/utils/lib/decorators/pure.d.ts +0 -52
- package/utils/lib/helpers/angular.d.ts +0 -47
- package/utils/lib/helpers/animations-handler.d.ts +0 -14
- package/utils/lib/helpers/array.d.ts +0 -30
- package/utils/lib/helpers/build-url.d.ts +0 -21
- package/utils/lib/helpers/build-website-url.d.ts +0 -26
- package/utils/lib/helpers/cache-storage-client.d.ts +0 -65
- package/utils/lib/helpers/coercion.d.ts +0 -19
- package/utils/lib/helpers/debounce.d.ts +0 -28
- package/utils/lib/helpers/defer-fn.d.ts +0 -21
- package/utils/lib/helpers/dom.d.ts +0 -82
- package/utils/lib/helpers/event-manager.d.ts +0 -14
- package/utils/lib/helpers/get-axis.d.ts +0 -22
- package/utils/lib/helpers/get-language-code.d.ts +0 -18
- package/utils/lib/helpers/get-opposite-side.d.ts +0 -23
- package/utils/lib/helpers/get-side.d.ts +0 -19
- package/utils/lib/helpers/get-unique-id.d.ts +0 -35
- package/utils/lib/helpers/index.d.ts +0 -23
- package/utils/lib/helpers/match-url.d.ts +0 -42
- package/utils/lib/helpers/ng-changes.d.ts +0 -62
- package/utils/lib/helpers/provide-config.d.ts +0 -69
- package/utils/lib/helpers/queue.d.ts +0 -123
- package/utils/lib/helpers/sorter.d.ts +0 -51
- package/utils/lib/helpers/type-guards.d.ts +0 -67
- package/utils/lib/helpers/until-destroyed.d.ts +0 -40
- package/utils/lib/types/axis.d.ts +0 -5
- package/utils/lib/types/get-properties.d.ts +0 -5
- package/utils/lib/types/index.d.ts +0 -4
- package/utils/lib/types/position.d.ts +0 -15
- package/utils/lib/types/side.d.ts +0 -7
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { provideHttpClient, withInterceptors } from '@angular/common/http';
|
|
2
|
-
import { inject } from '@angular/core';
|
|
3
|
-
import { matchUrl } from '@odx/angular/utils';
|
|
4
|
-
import { switchMap, take } from 'rxjs';
|
|
5
|
-
import { LocalizationService } from '../localization.service';
|
|
6
|
-
import { makeLocalizationFeature } from '../models';
|
|
7
|
-
export const HTTP_LANGUAGE_HEADER = 'Accept-Language';
|
|
8
|
-
/**
|
|
9
|
-
* Creates an HTTP interceptor function that adds a language header to outgoing HTTP requests,
|
|
10
|
-
* but only for URLs matching the provided criteria. This allows the server to respond with
|
|
11
|
-
* resources localized in the user's current language.
|
|
12
|
-
*
|
|
13
|
-
* @param {HttpLanguageHeaderInterceptorConfig} config - The configuration for the interceptor,
|
|
14
|
-
* including the list of allowed URLs and optionally a custom header name.
|
|
15
|
-
* @returns {HttpInterceptorFn} An Angular HTTP interceptor function that conditionally adds
|
|
16
|
-
* the current language as an HTTP header based on the request URL.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```ts
|
|
20
|
-
* // Use in HTTP client module setup
|
|
21
|
-
* import { HttpClientModule } from '@angular/common/http';
|
|
22
|
-
* import { httpLanguageHeaderInterceptor, HTTP_LANGUAGE_HEADER } from '@odx/angular/localization';
|
|
23
|
-
*
|
|
24
|
-
* @NgModule({
|
|
25
|
-
* imports: [HttpClientModule],
|
|
26
|
-
* providers: [
|
|
27
|
-
* provideHttpClient(withInterceptors([
|
|
28
|
-
* httpLanguageHeaderInterceptor({ allowedUrls: ['/api'], headerName: HTTP_LANGUAGE_HEADER })
|
|
29
|
-
* ]))
|
|
30
|
-
* ]
|
|
31
|
-
* })
|
|
32
|
-
* export class AppModule {}
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
export function httpLanguageHeaderInterceptor({ allowedUrls, headerName }) {
|
|
36
|
-
return (req, next) => {
|
|
37
|
-
const language$ = inject(LocalizationService).activeLanguage$.pipe(take(1));
|
|
38
|
-
for (const allowedUrl of allowedUrls) {
|
|
39
|
-
if (!matchUrl(req.url, allowedUrl))
|
|
40
|
-
continue;
|
|
41
|
-
return language$.pipe(switchMap((language) => next(req.clone({ setHeaders: { [headerName ?? HTTP_LANGUAGE_HEADER]: language } }))));
|
|
42
|
-
}
|
|
43
|
-
return next(req);
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Provides a localization feature that automatically adds a language header to HTTP requests
|
|
48
|
-
* for specified URLs, using the current active language. This function simplifies setting up
|
|
49
|
-
* the HTTP language header interceptor by wrapping it into a LocalizationFeature, making it easy
|
|
50
|
-
* to integrate with the application's localization infrastructure.
|
|
51
|
-
*
|
|
52
|
-
* @param {HttpLanguageHeaderInterceptorConfig} config - The configuration for the language header
|
|
53
|
-
* interceptor, specifying which URLs should include the language header and optionally defining a
|
|
54
|
-
* custom header name.
|
|
55
|
-
* @returns {LocalizationFeature} A localization feature object that can be used to configure
|
|
56
|
-
* the application's localization settings to include automatic language header addition for HTTP requests.
|
|
57
|
-
*
|
|
58
|
-
* @example
|
|
59
|
-
* ```ts
|
|
60
|
-
* // Example usage with the localization provider
|
|
61
|
-
* import { provideLocalization, LocalizationModule, withHttpLanguageHeader } from '@odx/angular/localization';
|
|
62
|
-
*
|
|
63
|
-
* @NgModule({
|
|
64
|
-
* imports: [LocalizationModule],
|
|
65
|
-
* providers: [
|
|
66
|
-
* provideLocalization({}, withHttpLanguageHeader({ allowedUrls: ['/api'] }))
|
|
67
|
-
* ]
|
|
68
|
-
* })
|
|
69
|
-
* export class AppModule {}
|
|
70
|
-
* ```
|
|
71
|
-
*/
|
|
72
|
-
export function withHttpLanguageHeader(config) {
|
|
73
|
-
const providers = provideHttpClient(withInterceptors([httpLanguageHeaderInterceptor(config)]));
|
|
74
|
-
return makeLocalizationFeature(providers);
|
|
75
|
-
}
|
|
76
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2l0aC1odHRwLWxhbmd1YWdlLWhlYWRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL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-
import { inject } from '@angular/core';
|
|
3
|
-
import { matchUrl } from '@odx/angular/utils';
|
|
4
|
-
import { switchMap, take } from 'rxjs';
|
|
5
|
-
import { LocalizationService } from '../localization.service';
|
|
6
|
-
import { makeLocalizationFeature } from '../models';
|
|
7
|
-
export const HTTP_LANGUAGE_QUERY = 'language';
|
|
8
|
-
/**
|
|
9
|
-
* Creates an HTTP interceptor function that appends the current language as a query parameter
|
|
10
|
-
* to outgoing HTTP requests that match specified URLs. This interceptor enables dynamic content
|
|
11
|
-
* localization by informing the backend of the user's preferred language.
|
|
12
|
-
*
|
|
13
|
-
* @param {HttpLanguageQueryParamInterceptorConfig} config - Configuration for the interceptor,
|
|
14
|
-
* including allowed URLs and an optional custom name for the query parameter.
|
|
15
|
-
* @returns {HttpInterceptorFn} The interceptor function ready to be applied to the HTTP client.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```ts
|
|
19
|
-
* // Applying the interceptor in an Angular module
|
|
20
|
-
* import { HttpClientModule } from '@angular/common/http';
|
|
21
|
-
* import { withHttpLanguageQueryParam } from '@odx/angular/localization';
|
|
22
|
-
*
|
|
23
|
-
* @NgModule({
|
|
24
|
-
* imports: [HttpClientModule],
|
|
25
|
-
* providers: [
|
|
26
|
-
* provideHttpClient(withInterceptors([
|
|
27
|
-
* withHttpLanguageQueryParam({ allowedUrls: ['/api/resources'] })
|
|
28
|
-
* ]))
|
|
29
|
-
* ]
|
|
30
|
-
* })
|
|
31
|
-
* export class ApiModule {}
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
export function withHttpLanguageQueryParamInterceptor({ allowedUrls, queryParamName }) {
|
|
35
|
-
return (req, next) => {
|
|
36
|
-
const language$ = inject(LocalizationService).activeLanguage$.pipe(take(1));
|
|
37
|
-
for (const allowedUrl of allowedUrls) {
|
|
38
|
-
if (!matchUrl(req.url, allowedUrl))
|
|
39
|
-
continue;
|
|
40
|
-
return language$.pipe(switchMap((language) => next(req.clone({ setParams: { [queryParamName ?? HTTP_LANGUAGE_QUERY]: language } }))));
|
|
41
|
-
}
|
|
42
|
-
return next(req);
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Registers the HTTP interceptor that appends the current language as a query parameter to
|
|
47
|
-
* outgoing requests for configured URLs as a localization feature. This utility function
|
|
48
|
-
* simplifies the setup by bundling the interceptor into a feature that can be easily integrated
|
|
49
|
-
* with localization configurations.
|
|
50
|
-
*
|
|
51
|
-
* @param {HttpLanguageQueryParamInterceptorConfig} config - Configuration for appending the
|
|
52
|
-
* language query parameter, including allowed URLs and an optional parameter name.
|
|
53
|
-
* @returns {LocalizationFeature} A localization feature encapsulating the interceptor, ready
|
|
54
|
-
* for integration with the application's localization setup.
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* ```ts
|
|
58
|
-
* // Integrating the localization feature in an Angular module
|
|
59
|
-
* import { provideLocalization } from '@angular/core';
|
|
60
|
-
* import { withHttpLanguageQueryParam } from '@odx/angular/localization';
|
|
61
|
-
*
|
|
62
|
-
* @NgModule({
|
|
63
|
-
* providers: [
|
|
64
|
-
* provideLocalization({}, withHttpLanguageQueryParam({ allowedUrls: ['/api'] }))
|
|
65
|
-
* ]
|
|
66
|
-
* })
|
|
67
|
-
* export class AppModule {}
|
|
68
|
-
* ```
|
|
69
|
-
*/
|
|
70
|
-
export function withHttpLanguageQueryParam(config) {
|
|
71
|
-
const providers = provideHttpClient(withInterceptors([withHttpLanguageQueryParamInterceptor(config)]));
|
|
72
|
-
return makeLocalizationFeature(providers);
|
|
73
|
-
}
|
|
74
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2l0aC1odHRwLWxhbmd1YWdlLXF1ZXJ5LXBhcmFtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9hbmd1bGFyL2xvY2FsaXphdGlvbi9zcmM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yB3aXRoSHR0cExhbmd1YWdlUXVlcnlQYXJhbSB9IGZyb20gJ0BvZHgvYW5ndWxhci9sb2NhbGl6YXRpb24nO1xuICpcbiAqIEBOZ01vZHVsZSh7XG4gKiAgIHByb3ZpZGVyczogW1xuICogICAgIHByb3ZpZGVMb2NhbGl6YXRpb24oe30sIHdpdGhIdHRwTGFuZ3VhZ2VRdWVyeVBhcmFtKHsgYWxsb3dlZFVybHM6IFsnL2FwaSddIH0pKVxuICogICBdXG4gKiB9KVxuICogZXhwb3J0IGNsYXNzIEFwcE1vZHVsZSB7fVxuICogYGBgXG4gKi9cbmV4cG9ydCBmdW5jdGlvbiB3aXRoSHR0cExhbmd1YWdlUXVlcnlQYXJhbShjb25maWc6IEh0dHBMYW5ndWFnZVF1ZXJ5UGFyYW1JbnRlcmNlcHRvckNvbmZpZyk6IExvY2FsaXphdGlvbkZlYXR1cmUge1xuICBjb25zdCBwcm92aWRlcnMgPSBwcm92aWRlSHR0cENsaWVudCh3aXRoSW50ZXJjZXB0b3JzKFt3aXRoSHR0cExhbmd1YWdlUXVlcnlQYXJhbUludGVyY2VwdG9yKGNvbmZpZyldKSk7XG5cbiAgcmV0dXJuIG1ha2VMb2NhbGl6YXRpb25GZWF0dXJlKHByb3ZpZGVycyk7XG59XG4iXX0=
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { inject } from '@angular/core';
|
|
2
|
-
import { WindowRef } from '@odx/angular';
|
|
3
|
-
/**
|
|
4
|
-
* Asynchronously loads the browser's current language setting by utilizing the `WindowRef` service.
|
|
5
|
-
* This function is intended to be used as a dynamic language loader within a localization configuration,
|
|
6
|
-
* allowing applications to automatically adapt to the user's preferred language as specified in their
|
|
7
|
-
* browser settings.
|
|
8
|
-
*
|
|
9
|
-
* The `WindowRef` service abstracts window-related operations, making it easier to interact with global
|
|
10
|
-
* browser properties and methods in a testable and platform-agnostic way. This function makes use of
|
|
11
|
-
* `WindowRef` to access the navigator's language setting in a safe and Angular-friendly manner.
|
|
12
|
-
*
|
|
13
|
-
* @returns {Promise<string>} A promise that resolves to the language code (e.g., 'en', 'fr') of the
|
|
14
|
-
* browser's currently configured language. This can then be used to set the active language in a
|
|
15
|
-
* localization configuration.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```ts
|
|
19
|
-
* // Example usage in a localization configuration
|
|
20
|
-
* import { provideLocalization } from '@odx/angular/utils';
|
|
21
|
-
* import { browserLanguageLoader } from '@odx/angular/localization';
|
|
22
|
-
*
|
|
23
|
-
* @NgModule({
|
|
24
|
-
* providers: [
|
|
25
|
-
* provideLocalization({
|
|
26
|
-
* activeLanguageLoader: browserLanguageLoader,
|
|
27
|
-
* availableLanguages: ['en', 'es', 'fr'],
|
|
28
|
-
* availableLocales: ['en-US', 'es-ES', 'fr-FR']
|
|
29
|
-
* })
|
|
30
|
-
* ]
|
|
31
|
-
* })
|
|
32
|
-
* export class AppModule { }
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
export const browserLanguageLoader = async () => {
|
|
36
|
-
return inject(WindowRef).getLanguage();
|
|
37
|
-
};
|
|
38
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJvd3Nlci1sYW5ndWFnZS1sb2FkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXIvbG9jYWxpemF0aW9uL3NyYy9saWIvbG9hZGVycy9icm93c2VyLWxhbmd1YWdlLWxvYWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxjQUFjLENBQUM7QUFHekM7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7R0ErQkc7QUFDSCxN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xuICogICAgIH0pXG4gKiAgIF1cbiAqIH0pXG4gKiBleHBvcnQgY2xhc3MgQXBwTW9kdWxlIHsgfVxuICogYGBgXG4gKi9cbmV4cG9ydCBjb25zdCBicm93c2VyTGFuZ3VhZ2VMb2FkZXI6IExhbmd1YWdlTG9hZGVyRm4gPSBhc3luYyAoKSA9PiB7XG4gIHJldHVybiBpbmplY3QoV2luZG93UmVmKS5nZXRMYW5ndWFnZSgpO1xufTtcbiJdfQ==
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export * from './browser-language-loader';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXIvbG9jYWxpemF0aW9uL3NyYy9saWIvbG9hZGVycy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDJCQUEyQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9icm93c2VyLWxhbmd1YWdlLWxvYWRlcic7XG4iXX0=
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { APP_INITIALIZER, makeEnvironmentProviders } from '@angular/core';
|
|
2
|
-
import { createConfigTokens } from '@odx/angular/utils';
|
|
3
|
-
import { LocalizationService } from './localization.service';
|
|
4
|
-
export const DEFAULT_AVAILABLE_LANGUAGES = ['en-US', 'en-GB', 'en', 'de-DE', 'de', 'es-ES', 'es', 'fr-FR', 'fr-CA', 'fr'];
|
|
5
|
-
/**
|
|
6
|
-
* Utilizes `createConfigTokens` to generate configuration tokens and related utilities for the
|
|
7
|
-
* localization settings within the application. It defines a structured and type-safe approach
|
|
8
|
-
* for managing localization configurations, such as available languages, and potentially
|
|
9
|
-
* a dynamic loader for the active language. The generated tokens and utilities facilitate accessing
|
|
10
|
-
* and providing these configurations throughout the application.
|
|
11
|
-
*
|
|
12
|
-
* @const {InjectionToken<LocalizationConfig>} LocalizationConfig - An InjectionToken for accessing
|
|
13
|
-
* the localization configuration within Angular's dependency injection framework. Use this token to inject
|
|
14
|
-
* localization configurations into services, components, or other tokens.
|
|
15
|
-
*
|
|
16
|
-
* @const {LocalizationConfig} LocalizationDefaultConfig - The default configuration values for localization,
|
|
17
|
-
* based on the provided settings. Includes the default available languages.
|
|
18
|
-
*
|
|
19
|
-
* @const {Function} injectLocalizationConfig - A utility function that returns the injected value of
|
|
20
|
-
* `LocalizationConfig` token. Use this function to access the current localization configuration in
|
|
21
|
-
* a type-safe manner.
|
|
22
|
-
*
|
|
23
|
-
* @const {Function} provideLocalizationConfig - A utility function to provide the `LocalizationConfig` token
|
|
24
|
-
* with specific values. Use this function to configure and override default localization settings within
|
|
25
|
-
* an Angular module or component.
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* ```ts
|
|
29
|
-
* // Providing localization settings in an Angular module
|
|
30
|
-
* @NgModule({
|
|
31
|
-
* providers: [
|
|
32
|
-
* provideLocalizationConfig({
|
|
33
|
-
* availableLanguages: ['en', 'es', 'fr'],
|
|
34
|
-
* })
|
|
35
|
-
* ]
|
|
36
|
-
* })
|
|
37
|
-
* export class AppModule { }
|
|
38
|
-
*
|
|
39
|
-
* // Injecting and using the localization configuration in a service
|
|
40
|
-
* @Injectable({ providedIn: 'root' })
|
|
41
|
-
* export class MyLocalizationService {
|
|
42
|
-
* constructor(@Inject(LocalizationConfig) private config: LocalizationConfig) {
|
|
43
|
-
* console.log('Available languages:', config.availableLanguages);
|
|
44
|
-
* }
|
|
45
|
-
* }
|
|
46
|
-
* ```
|
|
47
|
-
*/
|
|
48
|
-
export const { LocalizationConfig, LocalizationDefaultConfig, injectLocalizationConfig, provideLocalizationConfig } = createConfigTokens('Localization', '@odx/angular/internal/translate', {
|
|
49
|
-
availableLanguages: DEFAULT_AVAILABLE_LANGUAGES,
|
|
50
|
-
});
|
|
51
|
-
/**
|
|
52
|
-
* Sets up the localization configuration for the application and initializes the localization
|
|
53
|
-
* system with the provided configuration and features. This function is typically called
|
|
54
|
-
* within the main module or a core module of the application to ensure localization settings
|
|
55
|
-
* are available and active as early as possible.
|
|
56
|
-
*
|
|
57
|
-
* @param {Partial<LocalizationConfig>} config The localization configuration settings, including
|
|
58
|
-
* available languages and optionally, a custom loader for the active language.
|
|
59
|
-
* @param {...LocalizationFeature[]} features Additional localization features or configurations
|
|
60
|
-
* to be registered as part of the application's environment providers.
|
|
61
|
-
* @returns {EnvironmentProviders} A collection of providers for setting up the application's
|
|
62
|
-
* localization environment, to be used with Angular's environment-specific injector configuration.
|
|
63
|
-
* @example
|
|
64
|
-
* ```ts
|
|
65
|
-
* // Example of providing localization settings in an Angular module
|
|
66
|
-
* @NgModule({
|
|
67
|
-
* imports: [...],
|
|
68
|
-
* providers: [
|
|
69
|
-
* provideLocalization({
|
|
70
|
-
* availableLanguages: ['en', 'es', 'fr'],
|
|
71
|
-
* activeLanguageLoader: () => fetch('/api/user/language').then(res => res.text()),
|
|
72
|
-
* }),
|
|
73
|
-
* ],
|
|
74
|
-
* })
|
|
75
|
-
* export class AppModule {}
|
|
76
|
-
* ```
|
|
77
|
-
*/
|
|
78
|
-
export function provideLocalization(config, ...features) {
|
|
79
|
-
return makeEnvironmentProviders([
|
|
80
|
-
provideLocalizationConfig(config),
|
|
81
|
-
{
|
|
82
|
-
provide: APP_INITIALIZER,
|
|
83
|
-
useFactory: (localizationService) => () => localizationService.loadActiveLanguage(),
|
|
84
|
-
deps: [LocalizationService],
|
|
85
|
-
multi: true,
|
|
86
|
-
},
|
|
87
|
-
features,
|
|
88
|
-
]);
|
|
89
|
-
}
|
|
90
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9jYWxpemF0aW9uLmNvbmZpZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4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jogKCkgPT4gZmV0Y2goJy9hcGkvdXNlci9sYW5ndWFnZScpLnRoZW4ocmVzID0+IHJlcy50ZXh0KCkpLFxuICogICAgIH0pLFxuICogICBdLFxuICogfSlcbiAqIGV4cG9ydCBjbGFzcyBBcHBNb2R1bGUge31cbiAqIGBgYFxuICovXG5leHBvcnQgZnVuY3Rpb24gcHJvdmlkZUxvY2FsaXphdGlvbihjb25maWc6IFBhcnRpYWw8TG9jYWxpemF0aW9uQ29uZmlnPiwgLi4uZmVhdHVyZXM6IExvY2FsaXphdGlvbkZlYXR1cmVbXSk6IEVudmlyb25tZW50UHJvdmlkZXJzIHtcbiAgcmV0dXJuIG1ha2VFbnZpcm9ubWVudFByb3ZpZGVycyhbXG4gICAgcHJvdmlkZUxvY2FsaXphdGlvbkNvbmZpZyhjb25maWcpLFxuICAgIHtcbiAgICAgIHByb3ZpZGU6IEFQUF9JTklUSUFMSVpFUixcbiAgICAgIHVzZUZhY3Rvcnk6IChsb2NhbGl6YXRpb25TZXJ2aWNlOiBMb2NhbGl6YXRpb25TZXJ2aWNlKSA9PiAoKSA9PiBsb2NhbGl6YXRpb25TZXJ2aWNlLmxvYWRBY3RpdmVMYW5ndWFnZSgpLFxuICAgICAgZGVwczogW0xvY2FsaXphdGlvblNlcnZpY2VdLFxuICAgICAgbXVsdGk6IHRydWUsXG4gICAgfSxcbiAgICBmZWF0dXJlcyxcbiAgXSk7XG59XG4iXX0=
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { Logger } from '@odx/angular/internal';
|
|
2
|
-
export default new Logger('@odx/angular/localization');
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9jYWxpemF0aW9uLmxvZ2dlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvYW5ndWxhci9sb2NhbGl6YXRpb24vc3JjL2xpYi9sb2NhbGl6YXRpb24ubG9nZ2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUUvQyxlQUFlLElBQUksTUFBTSxDQUFDLDJCQUEyQixDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBMb2dnZXIgfSBmcm9tICdAb2R4L2FuZ3VsYXIvaW50ZXJuYWwnO1xuXG5leHBvcnQgZGVmYXVsdCBuZXcgTG9nZ2VyKCdAb2R4L2FuZ3VsYXIvbG9jYWxpemF0aW9uJyk7XG4iXX0=
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { Injectable, Injector, inject, runInInjectionContext } from '@angular/core';
|
|
2
|
-
import { BehaviorSubject, distinctUntilChanged, filter, firstValueFrom, from, isObservable, map, of, shareReplay } from 'rxjs';
|
|
3
|
-
import { injectLocalizationConfig } from './localization.config';
|
|
4
|
-
import logger from './localization.logger';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export class LocalizationService {
|
|
7
|
-
constructor() {
|
|
8
|
-
this.localizationConfig = injectLocalizationConfig();
|
|
9
|
-
this.injector = inject(Injector);
|
|
10
|
-
this.localeState$ = new BehaviorSubject(new Intl.Locale(this.localizationConfig.availableLanguages[0]));
|
|
11
|
-
/**
|
|
12
|
-
* Represents an observable stream of the active language in the localization service.
|
|
13
|
-
* The active language is determined by the locale state.
|
|
14
|
-
*
|
|
15
|
-
* @emits {string} The active language.
|
|
16
|
-
*/
|
|
17
|
-
this.activeLanguage$ = this.localeState$.pipe(filter(Boolean), map((x) => x.baseName), distinctUntilChanged(), shareReplay({ bufferSize: 1, refCount: true }));
|
|
18
|
-
/**
|
|
19
|
-
* Gets the list of available languages for localization.
|
|
20
|
-
*
|
|
21
|
-
* @type {string[]} The list of available languages.
|
|
22
|
-
*/
|
|
23
|
-
this.availableLanguages = this.localizationConfig.availableLanguages;
|
|
24
|
-
/** Default language derived from the first entry in the available languages list.
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
*/
|
|
28
|
-
this.defaultLanguage = this.availableLanguages[0];
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Retrieves the currently active language. Falls back to the default language if
|
|
32
|
-
* no active language is set.
|
|
33
|
-
*
|
|
34
|
-
* @returns {string} Full locale name e.g. 'en-US' or just 'en' if no region info is attached.
|
|
35
|
-
*/
|
|
36
|
-
getActiveLanguage() {
|
|
37
|
-
return this.localeState$.getValue()?.baseName ?? new Intl.Locale(this.defaultLanguage).baseName;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Retrieves the active language subtag.
|
|
41
|
-
*
|
|
42
|
-
* @returns {string} The two-digit language subtag, e.g. 'en', 'fr'.
|
|
43
|
-
*/
|
|
44
|
-
getActiveLanguageSubtag() {
|
|
45
|
-
return this.localeState$.getValue()?.language ?? new Intl.Locale(this.defaultLanguage).language;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Sets the active language based on the provided language code. If the language is not
|
|
49
|
-
* recognized, it logs an error and does not change the active language.
|
|
50
|
-
*
|
|
51
|
-
* @param {string} language The language code to set as the active language.
|
|
52
|
-
*/
|
|
53
|
-
setActiveLanguage(language) {
|
|
54
|
-
try {
|
|
55
|
-
const locale = new Intl.Locale(language);
|
|
56
|
-
if (this.availableLanguages.includes(locale.baseName)) {
|
|
57
|
-
this.localeState$.next(locale);
|
|
58
|
-
}
|
|
59
|
-
else if (this.availableLanguages.includes(locale.language)) {
|
|
60
|
-
this.localeState$.next(new Intl.Locale(locale.language));
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
throw new Error(`Unrecognizable language '${language}'. Make sure it's a part of availableLanguages inside LocalizationService config.`);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
catch (error) {
|
|
67
|
-
logger.error(error);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Loads the active language for the localization service.
|
|
72
|
-
* This method runs in an injection context and sets the active language based on the result of the active language loader.
|
|
73
|
-
* If the active language loader fails, the default language is set as the active language.
|
|
74
|
-
*
|
|
75
|
-
* @returns {Promise<void>} A promise that resolves when the active language is loaded and set.
|
|
76
|
-
*/
|
|
77
|
-
async loadActiveLanguage() {
|
|
78
|
-
return runInInjectionContext(this.injector, async () => {
|
|
79
|
-
const activeLanguageLoader$ = this.createActiveLanguageLoader$();
|
|
80
|
-
const activeLanguage = await firstValueFrom(activeLanguageLoader$).catch(() => null);
|
|
81
|
-
this.setActiveLanguage(activeLanguage ?? this.defaultLanguage);
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
createActiveLanguageLoader$() {
|
|
85
|
-
const language = this.localizationConfig.activeLanguageLoader?.();
|
|
86
|
-
if (isObservable(language)) {
|
|
87
|
-
return language;
|
|
88
|
-
}
|
|
89
|
-
if (language instanceof Promise) {
|
|
90
|
-
return from(language);
|
|
91
|
-
}
|
|
92
|
-
return of(language);
|
|
93
|
-
}
|
|
94
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LocalizationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
95
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LocalizationService, providedIn: 'root' }); }
|
|
96
|
-
}
|
|
97
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LocalizationService, decorators: [{
|
|
98
|
-
type: Injectable,
|
|
99
|
-
args: [{ providedIn: 'root' }]
|
|
100
|
-
}] });
|
|
101
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9jYWxpemF0aW9uLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8u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GFuZ3VhZ2UoYWN0aXZlTGFuZ3VhZ2UgPz8gdGhpcy5kZWZhdWx0TGFuZ3VhZ2UpO1xuICAgIH0pO1xuICB9XG5cbiAgcHJpdmF0ZSBjcmVhdGVBY3RpdmVMYW5ndWFnZUxvYWRlciQoKTogT2JzZXJ2YWJsZTxzdHJpbmcgfCB1bmRlZmluZWQ+IHtcbiAgICBjb25zdCBsYW5ndWFnZSA9IHRoaXMubG9jYWxpemF0aW9uQ29uZmlnLmFjdGl2ZUxhbmd1YWdlTG9hZGVyPy4oKTtcbiAgICBpZiAoaXNPYnNlcnZhYmxlKGxhbmd1YWdlKSkge1xuICAgICAgcmV0dXJuIGxhbmd1YWdlO1xuICAgIH1cbiAgICBpZiAobGFuZ3VhZ2UgaW5zdGFuY2VvZiBQcm9taXNlKSB7XG4gICAgICByZXR1cm4gZnJvbShsYW5ndWFnZSk7XG4gICAgfVxuICAgIHJldHVybiBvZihsYW5ndWFnZSk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export * from './language-loader-fn';
|
|
2
|
-
export * from './localization-feature';
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXIvbG9jYWxpemF0aW9uL3NyYy9saWIvbW9kZWxzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsc0JBQXNCLENBQUM7QUFDckMsY0FBYyx3QkFBd0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vbGFuZ3VhZ2UtbG9hZGVyLWZuJztcbmV4cG9ydCAqIGZyb20gJy4vbG9jYWxpemF0aW9uLWZlYXR1cmUnO1xuIl19
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGFuZ3VhZ2UtbG9hZGVyLWZuLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9hbmd1bGFyL2xvY2FsaXphdGlvbi9zcmMvbGliL21vZGVscy9sYW5ndWFnZS1sb2FkZXItZm4udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE9ic2VydmFibGUgfSBmcm9tICdyeGpzJztcblxuZXhwb3J0IHR5cGUgTGFuZ3VhZ2VMb2FkZXJGbiA9ICgpID0+IE9ic2VydmFibGU8c3RyaW5nIHwgdW5kZWZpbmVkPiB8IFByb21pc2U8c3RyaW5nIHwgdW5kZWZpbmVkPiB8IHN0cmluZyB8IHVuZGVmaW5lZDtcbiJdfQ==
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @internal
|
|
3
|
-
* Creates a feature provider for the localization module.
|
|
4
|
-
*
|
|
5
|
-
* @param {Provider[] | EnvironmentProviders} provider - The providers to be used for the localization feature.
|
|
6
|
-
* @returns {LocalizationFeature} The localization feature provider.
|
|
7
|
-
*/
|
|
8
|
-
export function makeLocalizationFeature(provider) {
|
|
9
|
-
return provider;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9jYWxpemF0aW9uLWZlYXR1cmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXIvbG9jYWxpemF0aW9uL3NyYy9saWIvbW9kZWxzL2xvY2FsaXphdGlvbi1mZWF0dXJlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUlBOzs7Ozs7R0FNR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URL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2R4LWFuZ3VsYXItbG9jYWxpemF0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vbGlicy9hbmd1bGFyL2xvY2FsaXphdGlvbi9zcmMvb2R4LWFuZ3VsYXItbG9jYWxpemF0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19
|
package/esm2022/odx-angular.mjs
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './index';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2R4LWFuZ3VsYXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXIvc3JjL29keC1hbmd1bGFyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19
|
package/esm2022/rxjs/index.mjs
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export * from './lib/delay-until';
|
|
2
|
-
export * from './lib/from-element-mutation';
|
|
3
|
-
export * from './lib/from-element-resize';
|
|
4
|
-
export * from './lib/from-events';
|
|
5
|
-
export * from './lib/from-query-list';
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXIvcnhqcy9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxtQkFBbUIsQ0FBQztBQUNsQyxjQUFjLDZCQUE2QixDQUFDO0FBQzVDLGNBQWMsMkJBQTJCLENBQUM7QUFDMUMsY0FBYyxtQkFBbUIsQ0FBQztBQUNsQyxjQUFjLHVCQUF1QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9saWIvZGVsYXktdW50aWwnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvZnJvbS1lbGVtZW50LW11dGF0aW9uJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2Zyb20tZWxlbWVudC1yZXNpemUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvZnJvbS1ldmVudHMnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvZnJvbS1xdWVyeS1saXN0JztcbiJdfQ==
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { map, switchMap, takeUntil, timer } from 'rxjs';
|
|
2
|
-
/**
|
|
3
|
-
* Delays the emission of each value from the source Observable by a time span determined by the `delay` function.
|
|
4
|
-
* If the `notifier` Observable emits before the delay expires, the delayed emission is cancelled.
|
|
5
|
-
*
|
|
6
|
-
* This operator is useful for postponing the observable emissions until certain conditions are met,
|
|
7
|
-
* represented by the passage of time defined by `delay`. It also allows for a way to preemptively
|
|
8
|
-
* cancel the delay in response to another observable's emission.
|
|
9
|
-
*
|
|
10
|
-
* @template T The type of items emitted by the source Observable.
|
|
11
|
-
* @param {() => number} delay A function that returns the delay (in milliseconds) before the source Observable's values are emitted.
|
|
12
|
-
* @param {Observable<unknown>} notifier An Observable that cancels the delay when it emits.
|
|
13
|
-
* @returns {MonoTypeOperatorFunction<T>} An Observable that emits the source Observable's items with a delay if not cancelled.
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts
|
|
16
|
-
* // Delay each number emission by 1 second, unless the 'cancel' button is clicked.
|
|
17
|
-
* const delayedNumbers$ = of(1, 2, 3).pipe(
|
|
18
|
-
* delayUntil(() => 1000, fromEvent(cancelButton, 'click'))
|
|
19
|
-
* );
|
|
20
|
-
*
|
|
21
|
-
* delayedNumbers$.subscribe(console.log);
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
export function delayUntil(delay, notifier) {
|
|
25
|
-
return (source$) => source$.pipe(switchMap((value) => timer(delay()).pipe(map(() => value), takeUntil(notifier))));
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVsYXktdW50aWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXIvcnhqcy9zcmMvbGliL2RlbGF5LXVudGlsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxHQUFHLEVBQXdDLFNBQVMsRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBRTlGOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7R0FxQkc7QUFDSCxNQUFNLFVBQVUsVUFBVSxDQUFJLEtBQW1CLEVBQUUsUUFBNkI7SUFDOUUsT0FBTyxDQUFDLE9BQXNCLEVBQUUsRUFBRSxDQUNoQyxPQUFPLENBQUMsSUFBSSxDQUNWLFNBQVMsQ0FBQyxDQUFDLEtBQVEsRUFBRSxFQUFFLENBQ3JCLEtBQUssQ0FBQyxLQUFLLEVBQUUsQ0FBQyxDQUFDLElBQUksQ0FDakIsR0FBRyx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dWU6IFQpID0+XG4gICAgICAgIHRpbWVyKGRlbGF5KCkpLnBpcGUoXG4gICAgICAgICAgbWFwKCgpID0+IHZhbHVlKSxcbiAgICAgICAgICB0YWtlVW50aWwobm90aWZpZXIpLFxuICAgICAgICApLFxuICAgICAgKSxcbiAgICApO1xufVxuIl19
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { createMutationObserver } from '@odx/angular/utils';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
/**
|
|
4
|
-
* Creates an RxJS Observable that emits mutation records for changes in a DOM element's attributes,
|
|
5
|
-
* child list, and subtree. It uses the `MutationObserver` Web API to observe mutations on the specified
|
|
6
|
-
* element according to the options provided.
|
|
7
|
-
*
|
|
8
|
-
* @param {Element} element The DOM element to observe for mutations.
|
|
9
|
-
* @param {MutationObserverInit} options An object that specifies which DOM mutations should be reported.
|
|
10
|
-
* Options include attributes, childList, subtree, attributeOldValue, characterData, characterDataOldValue,
|
|
11
|
-
* and attributeFilter.
|
|
12
|
-
* @returns {Observable<MutationRecord>} An Observable that emits a `MutationRecord` each time a mutation
|
|
13
|
-
* matching the specified options occurs in the observed element.
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts
|
|
16
|
-
* // Observing changes to the child list of an element
|
|
17
|
-
* const element = document.getElementById('my-element');
|
|
18
|
-
* const mutationOptions = { childList: true };
|
|
19
|
-
*
|
|
20
|
-
* fromElementMutation$(element, mutationOptions).subscribe((mutation) => console.log('Mutation detected:', mutation));
|
|
21
|
-
* ```
|
|
22
|
-
* Note: Always remember to unsubscribe from the observable to prevent memory leaks.
|
|
23
|
-
*/
|
|
24
|
-
export function fromElementMutation$(element, options) {
|
|
25
|
-
return new Observable((observer) => {
|
|
26
|
-
const mutationObserver = createMutationObserver(observer, (events) => events.length > 0);
|
|
27
|
-
observer.add(() => mutationObserver.disconnect());
|
|
28
|
-
mutationObserver.observe(element, options);
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
//# sourceMapping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able } from 'rxjs';
|
|
3
|
-
/**
|
|
4
|
-
* Creates an RxJS Observable that emits an array of `ResizeObserverEntry` objects whenever
|
|
5
|
-
* the target element's size changes. This function provides a reactive way to observe
|
|
6
|
-
* and respond to changes in an element's dimensions, using the `ResizeObserver` Web API.
|
|
7
|
-
*
|
|
8
|
-
* The observable debounces the emitted values to improve performance and reduce the frequency
|
|
9
|
-
* of change detection runs in Angular applications. The debounce time can be adjusted via
|
|
10
|
-
* the `debounceDuration` parameter.
|
|
11
|
-
*
|
|
12
|
-
* @param {Element} element The DOM element to observe for size changes.
|
|
13
|
-
* @param {number} [debounceDuration=50] The time, in milliseconds, to debounce the emitted
|
|
14
|
-
* values. Defaults to 50ms.
|
|
15
|
-
* @returns {Observable<ResizeObserverEntry[]>} An Observable that emits the resize events
|
|
16
|
-
* for the observed element. Each emission is an array of `ResizeObserverEntry` objects, one
|
|
17
|
-
* for each observed element that experienced a resize.
|
|
18
|
-
* @example
|
|
19
|
-
* ```ts
|
|
20
|
-
* // Observing resize events of an element with a 100ms debounce duration
|
|
21
|
-
* const element = document.getElementById('resizable-element');
|
|
22
|
-
* fromElementResize$(element, 100).subscribe((entries) => console.log('Element resized:', entries));
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* Always unsubscribe from the observable to clean up resources and prevent memory leaks.
|
|
26
|
-
*/
|
|
27
|
-
export function fromElementResize$(element, debounceDuration = 50) {
|
|
28
|
-
return new Observable((observer) => {
|
|
29
|
-
const resizeObserver = createResizeObserver((events) => {
|
|
30
|
-
if (events.length > 0) {
|
|
31
|
-
observer.next(events);
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
observer.add(() => resizeObserver.disconnect());
|
|
35
|
-
resizeObserver.observe(element);
|
|
36
|
-
}).pipe(debounceTime(debounceDuration));
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnJvbS1lbGVtZW50LXJlc2l6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