@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,113 +0,0 @@
|
|
|
1
|
-
import { Directive, inject, Injector, Input, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { hasChanged, isComponent } from '@odx/angular/utils';
|
|
3
|
-
import { DynamicViewService } from './dynamic-view.service';
|
|
4
|
-
import { createProjectableNodes, isDynamicTextContent, isDynamicView } from './helpers';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
/**
|
|
7
|
-
* A directive that dynamically renders content based on the provided input. It supports rendering
|
|
8
|
-
* Angular components, templates, and text content, allowing for dynamic and flexible content
|
|
9
|
-
* management within Angular applications.
|
|
10
|
-
*
|
|
11
|
-
* @template T - A type parameter that extends `DynamicContent<unknown>`, representing the type of content to be dynamically rendered.
|
|
12
|
-
*/
|
|
13
|
-
export class DynamicViewDirective {
|
|
14
|
-
constructor() {
|
|
15
|
-
this.dynamicViewService = inject(DynamicViewService);
|
|
16
|
-
this.viewContainer = inject(ViewContainerRef);
|
|
17
|
-
this.template = inject(TemplateRef);
|
|
18
|
-
this.viewRef = null;
|
|
19
|
-
this.contentViewRef = null;
|
|
20
|
-
/**
|
|
21
|
-
* The content to be dynamically rendered. This can be a component, template reference, or text content.
|
|
22
|
-
* The content is wrapped in a `DynamicViewRef`, providing additional control over the dynamically rendered view.
|
|
23
|
-
*
|
|
24
|
-
* @type {T | DynamicViewRef<T> | null}
|
|
25
|
-
* @default null
|
|
26
|
-
*/
|
|
27
|
-
this.content = null;
|
|
28
|
-
}
|
|
29
|
-
ngOnInit() {
|
|
30
|
-
this.render();
|
|
31
|
-
}
|
|
32
|
-
ngOnChanges(changes) {
|
|
33
|
-
if (hasChanged(changes, 'injector')) {
|
|
34
|
-
this.render();
|
|
35
|
-
}
|
|
36
|
-
if (hasChanged(changes, 'content')) {
|
|
37
|
-
const hasChangedTextContent = isDynamicTextContent(changes.content?.previousValue) && isDynamicTextContent(changes.content?.currentValue);
|
|
38
|
-
this.render(!hasChangedTextContent);
|
|
39
|
-
}
|
|
40
|
-
if (hasChanged(changes, 'context')) {
|
|
41
|
-
this.viewRef?.update(changes.context?.currentValue ?? {});
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
ngOnDestroy() {
|
|
45
|
-
this.destroy();
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Retrieves the current `DynamicViewRef` associated with the rendered content, providing access
|
|
49
|
-
* to the view reference for additional operations like updating context or manual destruction.
|
|
50
|
-
*
|
|
51
|
-
* @returns {DynamicViewRef<T> | null} The current view reference for the dynamically rendered content, if available.
|
|
52
|
-
*/
|
|
53
|
-
getView() {
|
|
54
|
-
return this.viewRef;
|
|
55
|
-
}
|
|
56
|
-
render(reRender = true) {
|
|
57
|
-
if (!this.content) {
|
|
58
|
-
this.destroy();
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
if (!reRender && this.viewRef) {
|
|
62
|
-
this.viewRef?.update({ content: this.content });
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
this.viewRef?.destroy();
|
|
66
|
-
if (isDynamicView(this.content)) {
|
|
67
|
-
this.viewRef = this.content;
|
|
68
|
-
const hostView = this.viewRef.getView();
|
|
69
|
-
if (hostView) {
|
|
70
|
-
this.viewContainer.insert(hostView);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
else {
|
|
74
|
-
let projectableNodes = [];
|
|
75
|
-
if (isComponent(this.content)) {
|
|
76
|
-
this.contentViewRef = this.dynamicViewService.createView(this.template, { injector: this.injector });
|
|
77
|
-
const rootNodes = this.contentViewRef.getView().rootNodes;
|
|
78
|
-
projectableNodes = createProjectableNodes(this.content, rootNodes);
|
|
79
|
-
}
|
|
80
|
-
this.viewRef = this.dynamicViewService.createView(this.content, {
|
|
81
|
-
context: this.context ?? undefined,
|
|
82
|
-
injector: this.injector ?? this.viewContainer.injector,
|
|
83
|
-
projectableNodes,
|
|
84
|
-
host: this.viewContainer,
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
destroy() {
|
|
89
|
-
this.contentViewRef?.destroy();
|
|
90
|
-
this.viewRef?.destroy();
|
|
91
|
-
this.contentViewRef = null;
|
|
92
|
-
this.viewRef = null;
|
|
93
|
-
}
|
|
94
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DynamicViewDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
95
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: DynamicViewDirective, isStandalone: true, selector: "ng-template[odxDynamicView]", inputs: { content: ["odxDynamicView", "content"], injector: ["odxDynamicViewInjector", "injector"], context: ["odxDynamicViewContext", "context"] }, usesOnChanges: true, ngImport: i0 }); }
|
|
96
|
-
}
|
|
97
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DynamicViewDirective, decorators: [{
|
|
98
|
-
type: Directive,
|
|
99
|
-
args: [{
|
|
100
|
-
selector: 'ng-template[odxDynamicView]',
|
|
101
|
-
standalone: true,
|
|
102
|
-
}]
|
|
103
|
-
}], propDecorators: { content: [{
|
|
104
|
-
type: Input,
|
|
105
|
-
args: ['odxDynamicView']
|
|
106
|
-
}], injector: [{
|
|
107
|
-
type: Input,
|
|
108
|
-
args: ['odxDynamicViewInjector']
|
|
109
|
-
}], context: [{
|
|
110
|
-
type: Input,
|
|
111
|
-
args: ['odxDynamicViewContext']
|
|
112
|
-
}] } });
|
|
113
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHluYW1pYy12aWV3LmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvYW5ndWxhci9jZGsvZHluYW1pYy12aWV3L3NyYy9saWIvZHluYW1pYy12aWV3LmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFtQixNQUFNLEVBQUUsUUFBUSxFQUFFLEtBQUssRUFB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SZWYgPSB0aGlzLmR5bmFtaWNWaWV3U2VydmljZS5jcmVhdGVWaWV3KHRoaXMuY29udGVudCwge1xuICAgICAgICBjb250ZXh0OiB0aGlzLmNvbnRleHQgPz8gdW5kZWZpbmVkLFxuICAgICAgICBpbmplY3RvcjogdGhpcy5pbmplY3RvciA/PyB0aGlzLnZpZXdDb250YWluZXIuaW5qZWN0b3IsXG4gICAgICAgIHByb2plY3RhYmxlTm9kZXMsXG4gICAgICAgIGhvc3Q6IHRoaXMudmlld0NvbnRhaW5lcixcbiAgICAgIH0pO1xuICAgIH1cbiAgfVxuXG4gIHByaXZhdGUgZGVzdHJveSgpIHtcbiAgICB0aGlzLmNvbnRlbnRWaWV3UmVmPy5kZXN0cm95KCk7XG4gICAgdGhpcy52aWV3UmVmPy5kZXN0cm95KCk7XG4gICAgdGhpcy5jb250ZW50Vmlld1JlZiA9IG51bGw7XG4gICAgdGhpcy52aWV3UmVmID0gbnVsbDtcbiAgfVxufVxuIl19
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { inject, Injectable, Injector } from '@angular/core';
|
|
2
|
-
import { isComponent, isTemplateRef } from '@odx/angular/utils';
|
|
3
|
-
import { DynamicViewComponent } from './dynamic-view.component';
|
|
4
|
-
import { isDynamicTextContent } from './helpers';
|
|
5
|
-
import { DynamicComponentRef } from './models';
|
|
6
|
-
import { DynamicTemplateRef } from './models/dynamic-template-ref';
|
|
7
|
-
import { DYNAMIC_VIEW_CONTEXT, getDynamicViewDefaultHost } from './tokens';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* A service for creating and managing dynamic views in an Angular application.
|
|
11
|
-
* It supports rendering Angular components, templates, and text content dynamically,
|
|
12
|
-
* allowing for flexible and dynamic content composition.
|
|
13
|
-
*/
|
|
14
|
-
export class DynamicViewService {
|
|
15
|
-
constructor() {
|
|
16
|
-
this.injector = inject(Injector);
|
|
17
|
-
this.defaultHost = getDynamicViewDefaultHost();
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Creates and returns a reference to a dynamic view based on the provided content and options.
|
|
21
|
-
* The method supports dynamic creation of components, template references, and text content,
|
|
22
|
-
* providing a unified API for dynamic content rendering.
|
|
23
|
-
*
|
|
24
|
-
* @template T - The type of the content to be dynamically rendered.
|
|
25
|
-
* @param {T} content - The content to be rendered dynamically. This can be a component class,
|
|
26
|
-
* a template reference, or text content.
|
|
27
|
-
* @param {Partial<DynamicViewOptions<T>>} [options={}] - Optional configuration for the dynamic view creation,
|
|
28
|
-
* including a custom injector, context, host element, and additional providers for the dynamic component's injector.
|
|
29
|
-
* @returns {DynamicViewRef<T>} A reference to the dynamically created view, encapsulating the rendered content
|
|
30
|
-
* and providing methods for interaction and management.
|
|
31
|
-
* @throws {Error} Throws an error if the content type is not supported.
|
|
32
|
-
* @example
|
|
33
|
-
* ```ts
|
|
34
|
-
* // Create a dynamic view for a component
|
|
35
|
-
* const componentRef = dynamicViewService.createView(MyComponent, { context: { ... } });
|
|
36
|
-
*
|
|
37
|
-
* // Create a dynamic view for a template reference
|
|
38
|
-
* const templateRef = dynamicViewService.createView(myTemplate, { context: { ... } });
|
|
39
|
-
*
|
|
40
|
-
* // Create a dynamic view for text content
|
|
41
|
-
* const textRef = dynamicViewService.createView('Dynamic text content', {});
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
createView(content, options = {}) {
|
|
45
|
-
const viewOptions = {
|
|
46
|
-
...options,
|
|
47
|
-
host: options.host ?? this.defaultHost,
|
|
48
|
-
injector: Injector.create({
|
|
49
|
-
providers: [{ provide: DYNAMIC_VIEW_CONTEXT, useValue: options.context }, options.providers ?? []],
|
|
50
|
-
parent: options.injector ?? this.injector,
|
|
51
|
-
}),
|
|
52
|
-
};
|
|
53
|
-
if (isTemplateRef(content)) {
|
|
54
|
-
return new DynamicTemplateRef({ ...viewOptions, template: content });
|
|
55
|
-
}
|
|
56
|
-
if (isComponent(content)) {
|
|
57
|
-
return new DynamicComponentRef({ ...viewOptions, context: options.context, component: content });
|
|
58
|
-
}
|
|
59
|
-
if (isDynamicTextContent(content)) {
|
|
60
|
-
return new DynamicComponentRef({
|
|
61
|
-
...viewOptions,
|
|
62
|
-
component: DynamicViewComponent,
|
|
63
|
-
context: { content },
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
throw new Error('Content type is not supported');
|
|
67
|
-
}
|
|
68
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DynamicViewService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
69
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DynamicViewService, providedIn: 'root' }); }
|
|
70
|
-
}
|
|
71
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DynamicViewService, decorators: [{
|
|
72
|
-
type: Injectable,
|
|
73
|
-
args: [{ providedIn: 'root' }]
|
|
74
|
-
}] });
|
|
75
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHluYW1pYy12aWV3LnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXIvY2RrL2R5bmFtaWMtdmlldy9zcmMvbGliL2R5bmFtaWMtdmlldy5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUM3RCxPQUFPLEVBQUUsV0FBVyxFQUFFLGFBQWEsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBQ2hFLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLDBCQUEwQixDQUFDO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U5BTUlDX1ZJRVdfQ09OVEVYVCwgdXNlVmFsdWU6IG9wdGlvbnMuY29udGV4dCB9LCBvcHRpb25zLnByb3ZpZGVycyA/PyBbXV0sXG4gICAgICAgIHBhcmVudDogb3B0aW9ucy5pbmplY3RvciA/PyB0aGlzLmluamVjdG9yLFxuICAgICAgfSksXG4gICAgfTtcbiAgICBpZiAoaXNUZW1wbGF0ZVJlZihjb250ZW50KSkge1xuICAgICAgcmV0dXJuIG5ldyBEeW5hbWljVGVtcGxhdGVSZWYoeyAuLi52aWV3T3B0aW9ucywgdGVtcGxhdGU6IGNvbnRlbnQgfSk7XG4gICAgfVxuICAgIGlmIChpc0NvbXBvbmVudChjb250ZW50KSkge1xuICAgICAgcmV0dXJuIG5ldyBEeW5hbWljQ29tcG9uZW50UmVmKHsgLi4udmlld09wdGlvbnMsIGNvbnRleHQ6IG9wdGlvbnMuY29udGV4dCwgY29tcG9uZW50OiBjb250ZW50IH0pO1xuICAgIH1cbiAgICBpZiAoaXNEeW5hbWljVGV4dENvbnRlbnQoY29udGVudCkpIHtcbiAgICAgIHJldHVybiBuZXcgRHluYW1pY0NvbXBvbmVudFJlZih7XG4gICAgICAgIC4uLnZpZXdPcHRpb25zLFxuICAgICAgICBjb21wb25lbnQ6IER5bmFtaWNWaWV3Q29tcG9uZW50LFxuICAgICAgICBjb250ZXh0OiB7IGNvbnRlbnQgfSxcbiAgICAgIH0pIGFzIG5ldmVyO1xuICAgIH1cbiAgICB0aHJvdyBuZXcgRXJyb3IoJ0NvbnRlbnQgdHlwZSBpcyBub3Qgc3VwcG9ydGVkJyk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHluYW1pYy1jb250ZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vL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Yy9saWIvZmFjYWRlL2R5bmFtaWMtdmlldy1yZWYudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFZpZXdSZWYgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IER5bmFtaWNDb250ZW50LCBHZXREeW5hbWljVmlld0NvbnRleHQgfSBmcm9tICcuL2R5bmFtaWMtY29udGVudCc7XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHluYW1pY1ZpZXdSZWY8VCBleHRlbmRzIER5bmFtaWNDb250ZW50PiB7XG4gIGRldGVjdENoYW5nZXMoKTogdm9pZDtcbiAgZGVzdHJveSgpOiB2b2lkO1xuICBnZXRFbGVtZW50KCk6IEVsZW1lbnQ7XG4gIHVwZGF0ZShjb250ZXh0OiBHZXREeW5hbWljVmlld0NvbnRleHQ8VD4pOiB2b2lkO1xuICBnZXRDb250ZXh0KCk6IEdldER5bmFtaWNWaWV3Q29udGV4dDxUPjtcbiAgZ2V0VmlldygpOiBWaWV3UmVmIHwgbnVsbDtcbn1cbiJdfQ==
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export * from './dynamic-content';
|
|
2
|
-
export * from './dynamic-view-ref';
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXIvY2RrL2R5bmFtaWMtdmlldy9zcmMvbGliL2ZhY2FkZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLG1CQUFtQixDQUFDO0FBQ2xDLGNBQWMsb0JBQW9CLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2R5bmFtaWMtY29udGVudCc7XG5leHBvcnQgKiBmcm9tICcuL2R5bmFtaWMtdmlldy1yZWYnO1xuIl19
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { reflectComponentType } from '@angular/core';
|
|
2
|
-
/**
|
|
3
|
-
* Prepares an array of node arrays suitable for projection into the `<ng-content>` slots
|
|
4
|
-
* of a dynamically created Angular component based on its content selectors.
|
|
5
|
-
*
|
|
6
|
-
* The function inspects the component's content selectors and aligns the provided nodes
|
|
7
|
-
* for projection according to these selectors. A selector of '*' indicates that the nodes
|
|
8
|
-
* should be projected into this slot. If a content selector does not match '*', an empty
|
|
9
|
-
* array is returned for that slot, indicating no nodes are projected into it.
|
|
10
|
-
*
|
|
11
|
-
* @param {Type<unknown>} component - The component class for which the projectable nodes are being prepared.
|
|
12
|
-
* @param {Node[]} nodes - The nodes intended for projection into the component's `<ng-content>` slots.
|
|
13
|
-
* @returns {Node[][]} An array of node arrays, each corresponding to a `<ng-content>` slot in the component.
|
|
14
|
-
* Each sub-array contains nodes to be projected into the respective `<ng-content>` slot, based on the component's content selectors.
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```ts
|
|
18
|
-
* // Given a component with two `<ng-content>` slots, the first without a selector and the second with the selector `<ng-content select=".selector-class">`,
|
|
19
|
-
* const nodes = [document.createTextNode('Hello'), document.createElement('div')];
|
|
20
|
-
* const projectableNodes = createProjectableNodes(MyComponent, nodes);
|
|
21
|
-
* // projectableNodes would be `[[TextNode, DivElement], []]` for a component with selectors ['*', '.selector-class']
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
export function createProjectableNodes(component, nodes) {
|
|
25
|
-
const componentType = reflectComponentType(component);
|
|
26
|
-
if (componentType && componentType.ngContentSelectors.length > 0) {
|
|
27
|
-
return componentType.ngContentSelectors.map((selector) => (selector === '*' ? nodes : []));
|
|
28
|
-
}
|
|
29
|
-
return [];
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjo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9ycy5tYXAoKHNlbGVjdG9yKSA9PiAoc2VsZWN0b3IgPT09ICcqJyA/IG5vZGVzIDogW10pKTtcbiAgfVxuICByZXR1cm4gW107XG59XG4iXX0=
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export * from './create-projectable-nodes';
|
|
2
|
-
export * from './is-dynamic-text-content';
|
|
3
|
-
export * from './is-dynamic-view';
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXIvY2RrL2R5bmFtaWMtdmlldy9zcmMvbGliL2hlbHBlcnMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyw0QkFBNEIsQ0FBQztBQUMzQyxjQUFjLDJCQUEyQixDQUFDO0FBQzFDLGNBQWMsbUJBQW1CLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2NyZWF0ZS1wcm9qZWN0YWJsZS1ub2Rlcyc7XG5leHBvcnQgKiBmcm9tICcuL2lzLWR5bmFtaWMtdGV4dC1jb250ZW50JztcbmV4cG9ydCAqIGZyb20gJy4vaXMtZHluYW1pYy12aWV3JztcbiJdfQ==
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { isString } from '@odx/angular/utils';
|
|
2
|
-
import { isObservable } from 'rxjs';
|
|
3
|
-
/**
|
|
4
|
-
* Type guard function to check if a given value is considered dynamic text content.
|
|
5
|
-
* Dynamic text content can either be a plain string or an Observable. This function
|
|
6
|
-
* facilitates type-safe handling of dynamic text content by checking the type of the value.
|
|
7
|
-
*
|
|
8
|
-
* @param {unknown} value - The value to be checked.
|
|
9
|
-
* @returns {value is DynamicTextContent} Returns `true` if the value is a string or an Observable,
|
|
10
|
-
* indicating it can be used as dynamic text content; otherwise, returns `false`.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts
|
|
14
|
-
* // Example usage of the isDynamicTextContent function
|
|
15
|
-
* const textValue: unknown = getTextValue(); // This function may return either string or Observable
|
|
16
|
-
*
|
|
17
|
-
* if (isDynamicTextContent(textValue)) {
|
|
18
|
-
* // The type of textValue is now narrowed to DynamicTextContent (string | Observable)
|
|
19
|
-
* console.log('The value can be used as dynamic text content.');
|
|
20
|
-
* } else {
|
|
21
|
-
* console.log('The value is not suitable as dynamic text content.');
|
|
22
|
-
* }
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
export function isDynamicTextContent(value) {
|
|
26
|
-
return isString(value) || isObservable(value);
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXMtZHluYW1pYy10ZXh0LWNvbnRlbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXIvY2RrL2R5bmFtaWMtdmlldy9zcmMvbGliL2hlbHBlcnMvaXMtZHluYW1pYy10ZXh0LWNvbnRlbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBQzlDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFHcEM7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQXFCRztBQUNILE1BQU0sVUFBVSxvQkFBb0IsQ0FBQyxLQUFjO0lBQ2pELE9BQU8sUUFBUSxDQUFDLEtBQUssQ0FBQyxJQUFJLFlBQVksQ0FBQyxLQUFLLENBQUMsQ0FBQztBQUNoRCxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgaXNTdHJpbmcgfSBmcm9tICdAb2R4L2Fu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VydmFibGVcbiAqXG4gKiBpZiAoaXNEeW5hbWljVGV4dENvbnRlbnQodGV4dFZhbHVlKSkge1xuICogICAvLyBUaGUgdHlwZSBvZiB0ZXh0VmFsdWUgaXMgbm93IG5hcnJvd2VkIHRvIER5bmFtaWNUZXh0Q29udGVudCAoc3RyaW5nIHwgT2JzZXJ2YWJsZSlcbiAqICAgY29uc29sZS5sb2coJ1RoZSB2YWx1ZSBjYW4gYmUgdXNlZCBhcyBkeW5hbWljIHRleHQgY29udGVudC4nKTtcbiAqIH0gZWxzZSB7XG4gKiAgIGNvbnNvbGUubG9nKCdUaGUgdmFsdWUgaXMgbm90IHN1aXRhYmxlIGFzIGR5bmFtaWMgdGV4dCBjb250ZW50LicpO1xuICogfVxuICogYGBgXG4gKi9cbmV4cG9ydCBmdW5jdGlvbiBpc0R5bmFtaWNUZXh0Q29udGVudCh2YWx1ZTogdW5rbm93bik6IHZhbHVlIGlzIER5bmFtaWNUZXh0Q29udGVudCB7XG4gIHJldHVybiBpc1N0cmluZyh2YWx1ZSkgfHwgaXNPYnNlcnZhYmxlKHZhbHVlKTtcbn1cbiJdfQ==
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { DynamicComponentRef, DynamicTemplateRef } from '../models';
|
|
2
|
-
/**
|
|
3
|
-
* Type guard function to check if a given value is a reference to a dynamically created view.
|
|
4
|
-
* This helps in distinguishing between dynamic view references (`DynamicComponentRef` or `DynamicTemplateRef`)
|
|
5
|
-
* and other types of values, facilitating type-safe operations on dynamic views.
|
|
6
|
-
*
|
|
7
|
-
* @param {unknown} value - The value to check.
|
|
8
|
-
* @returns {value is DynamicViewRef<DynamicContent>} `true` if the value is an instance of `DynamicComponentRef`
|
|
9
|
-
* or `DynamicTemplateRef`, indicating it is a dynamic view reference; otherwise, `false`.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* // Given a value that could be a dynamic view reference or something else
|
|
14
|
-
* const value: unknown = getSomeValue();
|
|
15
|
-
*
|
|
16
|
-
* if (isDynamicView(value)) {
|
|
17
|
-
* // TypeScript now knows `value` is a dynamic view reference, so you can access its methods safely
|
|
18
|
-
* value.detectChanges();
|
|
19
|
-
* } else {
|
|
20
|
-
* console.log('Value is not a dynamic view reference');
|
|
21
|
-
* }
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
export function isDynamicView(value) {
|
|
25
|
-
return value instanceof DynamicComponentRef || value instanceof DynamicTemplateRef;
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXMtZHluYW1pYy12aWV3LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9hbmd1bGFyL2Nkay9keW5hbWljLXZpZXcvc3JjL2xpYi9oZWxwZXJzL2lzLWR5bmFtaWMtdmlldy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxXQUFXLENBQUM7QUFFcEU7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQXFCRztBQUNILE1BQU0sVUFBVSxhQUFhLENBQUMsS0FBYztJQUMxQyxPQUFPLEtBQUssWUFBWSxtQkFBbUIsSUFBSSxLQUFLLFlBQVksa0JBQWtCLENBQUM7QUFDckYsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IER5bmFtaWNDb250ZW50LCBEeW5hbWljVmlld1JlZiB9IGZyb20gJy4uL2ZhY2FkZSc7XG5pbXBvcnQgeyBEeW5hbWljQ29tcG9uZW50UmVmLCBEeW5hbWljVGVtcGxhdGVSZWYgfSBmcm9tICcuLi9tb2RlbHMnO1xuXG4vKipcbiAqIFR5cGUgZ3VhcmQgZnVuY3Rpb24gdG8gY2hlY2sgaWYgYSBnaXZlbiB2YWx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mFsdWUuZGV0ZWN0Q2hhbmdlcygpO1xuICogfSBlbHNlIHtcbiAqICAgY29uc29sZS5sb2coJ1ZhbHVlIGlzIG5vdCBhIGR5bmFtaWMgdmlldyByZWZlcmVuY2UnKTtcbiAqIH1cbiAqIGBgYFxuICovXG5leHBvcnQgZnVuY3Rpb24gaXNEeW5hbWljVmlldyh2YWx1ZTogdW5rbm93bik6IHZhbHVlIGlzIER5bmFtaWNWaWV3UmVmPER5bmFtaWNDb250ZW50PiB7XG4gIHJldHVybiB2YWx1ZSBpbnN0YW5jZW9mIER5bmFtaWNDb21wb25lbnRSZWYgfHwgdmFsdWUgaW5zdGFuY2VvZiBEeW5hbWljVGVtcGxhdGVSZWY7XG59XG4iXX0=
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { ApplicationRef, createComponent, EnvironmentInjector, reflectComponentType } from '@angular/core';
|
|
2
|
-
import { deepmerge } from '@odx/angular/internal';
|
|
3
|
-
import { isViewContainer } from '@odx/angular/utils';
|
|
4
|
-
/**
|
|
5
|
-
* The DynamicComponentRef class is a powerful utility for dynamically creating and managing
|
|
6
|
-
* Angular components at runtime. It encapsulates the logic for component creation, input handling,
|
|
7
|
-
* and lifecycle management, making it easier to work with dynamic components in complex applications.
|
|
8
|
-
*
|
|
9
|
-
* A reference to a dynamically created component, providing methods to manage its lifecycle,
|
|
10
|
-
* detect changes, and update its inputs based on a context.
|
|
11
|
-
*
|
|
12
|
-
* @template T - The type of the component being managed.
|
|
13
|
-
* @template C - The type of the context used to update the component's inputs.
|
|
14
|
-
*/
|
|
15
|
-
export class DynamicComponentRef {
|
|
16
|
-
constructor(options) {
|
|
17
|
-
this.options = options;
|
|
18
|
-
this.application = this.options.injector.get(ApplicationRef);
|
|
19
|
-
this.componentRef = null;
|
|
20
|
-
this.componentInputs = null;
|
|
21
|
-
const { component, context, injector, projectableNodes, host } = options;
|
|
22
|
-
this.componentRef = createComponent(component, {
|
|
23
|
-
environmentInjector: injector.get(EnvironmentInjector),
|
|
24
|
-
elementInjector: injector,
|
|
25
|
-
projectableNodes,
|
|
26
|
-
});
|
|
27
|
-
this.componentInputs =
|
|
28
|
-
reflectComponentType(this.componentRef.componentType)?.inputs.reduce((acc, { propName }) => {
|
|
29
|
-
acc[propName] = true;
|
|
30
|
-
return acc;
|
|
31
|
-
}, {}) ?? null;
|
|
32
|
-
if (isViewContainer(host)) {
|
|
33
|
-
host.insert(this.componentRef.hostView);
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
this.application.attachView(this.componentRef.hostView);
|
|
37
|
-
if (host) {
|
|
38
|
-
host.appendChild(this.getElement());
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
if (context) {
|
|
42
|
-
this.update(context);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Triggers change detection for the dynamically created component, ensuring that any updates to inputs
|
|
47
|
-
* or internal state are reflected in the view.
|
|
48
|
-
*/
|
|
49
|
-
detectChanges() {
|
|
50
|
-
this.componentRef?.changeDetectorRef.detectChanges();
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Destroys the dynamically created component, cleaning up resources and detaching it from the application view.
|
|
54
|
-
*/
|
|
55
|
-
destroy() {
|
|
56
|
-
if (this.componentRef?.hostView.destroyed) {
|
|
57
|
-
this.componentRef = null;
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
if (this.componentRef && !isViewContainer(this.options.host)) {
|
|
61
|
-
this.application.detachView(this.componentRef.hostView);
|
|
62
|
-
}
|
|
63
|
-
this.componentRef?.destroy();
|
|
64
|
-
this.componentRef = null;
|
|
65
|
-
this.componentInputs = null;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Retrieves the native element associated with the dynamically created component's host view.
|
|
69
|
-
*
|
|
70
|
-
* @returns {Element} The native DOM element of the component.
|
|
71
|
-
*/
|
|
72
|
-
getElement() {
|
|
73
|
-
return this.componentRef?.location.nativeElement ?? null;
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Updates the component's inputs based on the provided context. Merges the new context with the existing
|
|
77
|
-
* context and applies the combined context as inputs to the component.
|
|
78
|
-
*
|
|
79
|
-
* @param {C} context - The context containing new values for the component's inputs.
|
|
80
|
-
*/
|
|
81
|
-
update(context) {
|
|
82
|
-
this.options.context = deepmerge({}, this.options.context, context);
|
|
83
|
-
if (!this.componentRef)
|
|
84
|
-
return;
|
|
85
|
-
for (const key in this.options.context) {
|
|
86
|
-
if (this.componentInputs?.[key]) {
|
|
87
|
-
this.componentRef.setInput(key, this.options.context[key]);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Retrieves the current context used for the component's inputs.
|
|
93
|
-
*
|
|
94
|
-
* @returns {GetDynamicViewContext<T>} The current context object.
|
|
95
|
-
*/
|
|
96
|
-
getContext() {
|
|
97
|
-
return this.options.context ?? {};
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Retrieves the view reference associated with the dynamically created component.
|
|
101
|
-
*
|
|
102
|
-
* @returns {ViewRef | null} The view reference, or null if the component has not been created or has been destroyed.
|
|
103
|
-
*/
|
|
104
|
-
getView() {
|
|
105
|
-
return this.componentRef?.hostView ?? null;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHluYW1pYy1jb21wb25lbnQtcmVmLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9hbmd1bGFyL2Nkay9keW5hbWljLXZpZXcvc3JjL2xpYi9tb2RlbHMvZHluYW1pYy1jb21wb25lbnQtcmVmLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxjQUFjLEVBQWdCLGVBQWUsRUFBRSxtQkFBbUIsRUFBRSxvQ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leV0pO1xuICAgICAgfVxuICAgIH1cbiAgfVxuXG4gIC8qKlxuICAgKiBSZXRyaWV2ZXMgdGhlIGN1cnJlbnQgY29udGV4dCB1c2VkIGZvciB0aGUgY29tcG9uZW50J3MgaW5wdXRzLlxuICAgKlxuICAgKiBAcmV0dXJucyB7R2V0RHluYW1pY1ZpZXdDb250ZXh0PFQ+fSBUaGUgY3VycmVudCBjb250ZXh0IG9iamVjdC5cbiAgICovXG4gIHB1YmxpYyBnZXRDb250ZXh0KCk6IEdldER5bmFtaWNWaWV3Q29udGV4dDxUPiB7XG4gICAgcmV0dXJuIHRoaXMub3B0aW9ucy5jb250ZXh0ID8/IHt9O1xuICB9XG5cbiAgLyoqXG4gICAqIFJldHJpZXZlcyB0aGUgdmlldyByZWZlcmVuY2UgYXNzb2NpYXRlZCB3aXRoIHRoZSBkeW5hbWljYWxseSBjcmVhdGVkIGNvbXBvbmVudC5cbiAgICpcbiAgICogQHJldHVybnMge1ZpZXdSZWYgfCBudWxsfSBUaGUgdmlldyByZWZlcmVuY2UsIG9yIG51bGwgaWYgdGhlIGNvbXBvbmVudCBoYXMgbm90IGJlZW4gY3JlYXRlZCBvciBoYXMgYmVlbiBkZXN0cm95ZWQuXG4gICAqL1xuICBwdWJsaWMgZ2V0VmlldygpOiBWaWV3UmVmIHwgbnVsbCB7XG4gICAgcmV0dXJuIHRoaXMuY29tcG9uZW50UmVmPy5ob3N0VmlldyA/PyBudWxsO1xuICB9XG59XG4iXX0=
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { ApplicationRef } from '@angular/core';
|
|
2
|
-
import { deepmerge } from '@odx/angular/internal';
|
|
3
|
-
import { isViewContainer } from '@odx/angular/utils';
|
|
4
|
-
/**
|
|
5
|
-
* A reference to a dynamically created template, offering methods to manage its lifecycle,
|
|
6
|
-
* detect changes, and update its context. It encapsulates the logic for creating and manipulating
|
|
7
|
-
* an `EmbeddedViewRef` from a given `TemplateRef`.
|
|
8
|
-
*
|
|
9
|
-
* @template T - The type of the `NgTemplateRef` being managed.
|
|
10
|
-
*/
|
|
11
|
-
export class DynamicTemplateRef {
|
|
12
|
-
constructor(options) {
|
|
13
|
-
this.options = options;
|
|
14
|
-
this.application = this.options.injector.get(ApplicationRef);
|
|
15
|
-
this.embeddedViewRef = null;
|
|
16
|
-
this.create(options);
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Triggers change detection on the embedded view created from the template, ensuring that any updates
|
|
20
|
-
* to the context or internal state are reflected in the view.
|
|
21
|
-
*/
|
|
22
|
-
detectChanges() {
|
|
23
|
-
this.embeddedViewRef?.detectChanges();
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Destroys the embedded view associated with the template, cleaning up resources and detaching it from the
|
|
27
|
-
* application view if necessary.
|
|
28
|
-
*/
|
|
29
|
-
destroy() {
|
|
30
|
-
if (this.embeddedViewRef?.destroyed) {
|
|
31
|
-
this.embeddedViewRef = null;
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
if (!isViewContainer(this.options.host) && this.embeddedViewRef) {
|
|
35
|
-
this.application.detachView(this.embeddedViewRef);
|
|
36
|
-
}
|
|
37
|
-
this.embeddedViewRef?.destroy();
|
|
38
|
-
this.embeddedViewRef = null;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Retrieves the native element associated with the template's embedded view's root node.
|
|
42
|
-
*
|
|
43
|
-
* @returns {Element} The native DOM element of the embedded view's root node, if available.
|
|
44
|
-
*/
|
|
45
|
-
getElement() {
|
|
46
|
-
return this.embeddedViewRef?.rootNodes?.[0] ?? null;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Updates the context of the embedded view based on the provided context object. Merges the new context
|
|
50
|
-
* with the existing one and applies the combined context to the embedded view.
|
|
51
|
-
*
|
|
52
|
-
* @param {GetDynamicViewContext<T>} context - The context containing new values for the template's view.
|
|
53
|
-
*/
|
|
54
|
-
update(context) {
|
|
55
|
-
this.options.context = deepmerge({}, this.options.context, context);
|
|
56
|
-
if (this.embeddedViewRef) {
|
|
57
|
-
this.embeddedViewRef.context = this.options.context;
|
|
58
|
-
this.detectChanges();
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Retrieves the current context used for the template's view.
|
|
63
|
-
*
|
|
64
|
-
* @returns {GetDynamicViewContext<T>} The current context object.
|
|
65
|
-
*/
|
|
66
|
-
getContext() {
|
|
67
|
-
return this.options.context ?? {};
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Retrieves the view reference (`ViewRef`) associated with the dynamically created template's embedded view.
|
|
71
|
-
*
|
|
72
|
-
* @returns {ViewRef | null} The view reference, or null if the template has not been instantiated or has been destroyed.
|
|
73
|
-
*/
|
|
74
|
-
getView() {
|
|
75
|
-
return this.embeddedViewRef;
|
|
76
|
-
}
|
|
77
|
-
create({ context, template, host }) {
|
|
78
|
-
if (isViewContainer(host)) {
|
|
79
|
-
this.embeddedViewRef = host.createEmbeddedView(template, context, { injector: this.options.injector });
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
this.embeddedViewRef = template.createEmbeddedView(context ?? {}, this.options.injector);
|
|
83
|
-
this.application.attachView(this.embeddedViewRef);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHluYW1pYy10ZW1wbGF0ZS1yZWYuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXIvY2RrL2R5bmFtaWMtdmlldy9zcmMvbGliL21vZGVscy9keW5hbWljLXRlbXBsYXRlLXJlZi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsY0FBYyxFQUEwRCxNQUFNLGVBQWUsQ0FBQztBQUN2RyxPQUFPLEVBQUUsU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RlZFZpZXdSZWYpO1xuICAgIH1cbiAgfVxufVxuIl19
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHluYW1pYy12aWV3LW9wdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXIvY2RrL2R5bmFtaWMtdmlldy9zcmMvbGliL21vZGVscy9keW5hbWljLXZpZXctb3B0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSW5qZWN0b3IsIFN0YXRpY1Byb3ZpZGVyLCBWaWV3Q29udGFpbmVyUmVmIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBEeW5hbWljQ29udGVudCwgR2V0RHluYW1pY1ZpZXdDb250ZXh0IH0gZnJvbSAnLi4vZmFjYWRlJztcblxuZXhwb3J0IGludGVyZmFjZSBEeW5hbWljVmlld1JlbmRlcmluZ09wdGlvbnMge1xuICBpbmplY3RvcjogSW5qZWN0b3I7XG4gIHByb3ZpZGVycz86IFN0YXRpY1Byb3ZpZGVyW107XG4gIGhvc3Q/OiBWaWV3Q29udGFpbmVyUmVmIHwgRWxlbWVudCB8IG51bGw7XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHluYW1pY1ZpZXdPcHRpb25zPFQgZXh0ZW5kcyBEeW5hbWljQ29udGVudD4gZXh0ZW5kcyBEeW5hbWljVmlld1JlbmRlcmluZ09wdGlvbnMge1xuICBjb250ZXh0PzogR2V0RHluYW1pY1ZpZXdDb250ZXh0PFQ+O1xuICBwcm9qZWN0YWJsZU5vZGVzPzogTm9kZVtdW107XG59XG4iXX0=
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export * from './dynamic-component-ref';
|
|
2
|
-
export * from './dynamic-template-ref';
|
|
3
|
-
export * from './dynamic-view-options';
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXIvY2RrL2R5bmFtaWMtdmlldy9zcmMvbGliL21vZGVscy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHlCQUF5QixDQUFDO0FBQ3hDLGNBQWMsd0JBQXdCLENBQUM7QUFDdkMsY0FBYyx3QkFBd0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZHluYW1pYy1jb21wb25lbnQtcmVmJztcbmV4cG9ydCAqIGZyb20gJy4vZHluYW1pYy10ZW1wbGF0ZS1yZWYnO1xuZXhwb3J0ICogZnJvbSAnLi9keW5hbWljLXZpZXctb3B0aW9ucyc7XG4iXX0=
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
/**
|
|
3
|
-
* @internal
|
|
4
|
-
* Injection token for the dynamic view context.
|
|
5
|
-
*/
|
|
6
|
-
export const DYNAMIC_VIEW_CONTEXT = new InjectionToken('@odx/angular/cdk/dynamic-view::DynamicViewContext');
|
|
7
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHluYW1pYy12aWV3LWNvbnRleHQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXIvY2RrL2R5bmFtaWMtdmlldy9zcmMvbGliL3Rva2Vucy9keW5hbWljLXZpZXctY29udGV4dC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsY0FBYyxFQUFlLE1BQU0sZUFBZSxDQUFDO0FBTTVEOzs7R0FHRztBQUNILE1BQU0sQ0FBQyxNQUFNLG9CQUFvQixHQUFHLElBQUksY0FBYyxDQUFDLG1EQUFtRCxDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbmplY3Rpb25Ub2tlbiwgVGVtcGxhdGVSZWYgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuZXhwb3J0IGludGVyZmFjZSBEeW5hbWljVmlld0NvbnRleHRXaXRoSW1wbGljaXRUZW1wbGF0ZTxUID0gdW5rbm93bj4ge1xuICAkaW1wbGljaXQ6IFRlbXBsYXRlUmVmPFQ+O1xufVxuXG4vKipcbiAqIEBpbnRlcm5hbFxuICogSW5qZWN0aW9uIHRva2VuIGZvciB0aGUgZHluYW1pYyB2aWV3IGNvbnRleHQuXG4gKi9cbmV4cG9ydCBjb25zdCBEWU5BTUlDX1ZJRVdfQ09OVEVYVCA9IG5ldyBJbmplY3Rpb25Ub2tlbignQG9keC9hbmd1bGFyL2Nkay9keW5hbWljLXZpZXc6OkR5bmFtaWNWaWV3Q29udGV4dCcpO1xuIl19
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { DOCUMENT } from '@angular/common';
|
|
2
|
-
import { inject, InjectionToken } from '@angular/core';
|
|
3
|
-
/**
|
|
4
|
-
* @internal
|
|
5
|
-
* Injection token for the default host element for dynamic views.
|
|
6
|
-
*/
|
|
7
|
-
export const ODX_DYNAMIC_VIEW_DEFAULT_HOST = new InjectionToken('@odx/angular/cdk/dynamic-view::DynamicViewDefaultHost', {
|
|
8
|
-
providedIn: 'root',
|
|
9
|
-
factory: () => inject(DOCUMENT).body,
|
|
10
|
-
});
|
|
11
|
-
/**
|
|
12
|
-
* @internal
|
|
13
|
-
* Retrieves the default host for dynamic views.
|
|
14
|
-
*
|
|
15
|
-
* @returns {Element} The default host element for dynamic views.
|
|
16
|
-
*/
|
|
17
|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VuIGZvciB0aGUgZGVmYXVsdCBob3N0IGVsZW1lbnQgZm9yIGR5bmFtaWMgdmlld3MuXG4gKi9cbmV4cG9ydCBjb25zdCBPRFhfRFlOQU1JQ19WSUVXX0RFRkFVTFRfSE9TVCA9IG5ldyBJbmplY3Rpb25Ub2tlbjxFbGVtZW50PignQG9keC9hbmd1bGFyL2Nkay9keW5hbWljLXZpZXc6OkR5bmFtaWNWaWV3RGVmYXVsdEhvc3QnLCB7XG4gIHByb3ZpZGVkSW46ICdyb290JyxcbiAgZmFjdG9yeTogKCkgPT4gaW5qZWN0KERPQ1VNRU5UKS5ib2R5LFxufSk7XG5cbi8qKlxuICogQGludGVybmFsXG4gKiBSZXRyaWV2ZXMgdGhlIGRlZmF1bHQgaG9zdCBmb3IgZHluYW1pYyB2aWV3cy5cbiAqXG4gKiBAcmV0dXJucyB7RWxlbWVudH0gVGhlIGRlZmF1bHQgaG9zdCBlbGVtZW50IGZvciBkeW5hbWljIHZpZXdzLlxuICovXG5leHBvcnQgZnVuY3Rpb24gZ2V0RHluYW1pY1ZpZXdEZWZhdWx0SG9zdCgpOiBFbGVtZW50IHtcbiAgcmV0dXJuIGluamVjdChPRFhfRFlOQU1JQ19WSUVXX0RFRkFVTFRfSE9TVCk7XG59XG4iXX0=
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export * from './dynamic-view-context';
|
|
2
|
-
export * from './dynamic-view-default-host';
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXIvY2RrL2R5bmFtaWMtdmlldy9zcmMvbGliL3Rva2Vucy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHdCQUF3QixDQUFDO0FBQ3ZDLGNBQWMsNkJBQTZCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2R5bmFtaWMtdmlldy1jb250ZXh0JztcbmV4cG9ydCAqIGZyb20gJy4vZHluYW1pYy12aWV3LWRlZmF1bHQtaG9zdCc7XG4iXX0=
|