@odx/angular 1.0.0-rc.8 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/cdk/a11y/README.md +3 -0
- package/cdk/a11y/index.d.ts +2 -0
- package/cdk/a11y/lib/a11y.module.d.ts +11 -0
- package/cdk/a11y/lib/directives/index.d.ts +3 -0
- package/cdk/a11y/lib/directives/interactive.directive.d.ts +11 -0
- package/cdk/a11y/lib/directives/list-focus-manager-option.directive.d.ts +10 -0
- package/cdk/a11y/lib/directives/list-focus-manager.directive.d.ts +12 -0
- package/cdk/active-indicator/lib/active-indicator.directive.d.ts +2 -2
- package/cdk/active-indicator/lib/models/active-indicator-direction.d.ts +1 -1
- package/cdk/active-indicator/lib/models/active-indicator-position.d.ts +1 -1
- package/cdk/checkbox-control/lib/checkbox-control.directive.d.ts +3 -1
- package/cdk/connected-overlay/lib/connected-overlay.component.d.ts +3 -3
- package/cdk/connected-overlay/lib/helpers/index.d.ts +0 -2
- package/cdk/connected-overlay/lib/models/connected-overlay-options.d.ts +4 -2
- package/cdk/custom-form-control/lib/control.directive.d.ts +1 -1
- package/cdk/custom-form-control/lib/custom-form-control.d.ts +5 -1
- package/cdk/dynamic-view/lib/dynamic-view.component.d.ts +1 -1
- package/cdk/dynamic-view/lib/dynamic-view.directive.d.ts +1 -1
- package/cdk/dynamic-view/lib/facade/dynamic-content.d.ts +3 -3
- package/cdk/dynamic-view/lib/models/dynamic-component-ref.d.ts +1 -0
- package/cdk/expandable/index.d.ts +1 -0
- package/cdk/expandable/lib/directives/expandable-item.directive.d.ts +2 -2
- package/cdk/expandable/lib/directives/extandable-container.directive.d.ts +2 -2
- package/cdk/expandable/lib/expandable.tokens.d.ts +3 -0
- package/cdk/expandable/lib/facade/expandable-container.d.ts +4 -4
- package/cdk/expandable/lib/facade/expandable-item.d.ts +6 -6
- package/cdk/radio-group-control/lib/radio-control.directive.d.ts +1 -1
- package/cdk/radio-group-control/lib/radio-group-control.directive.d.ts +3 -2
- package/components/accordion/lib/accordion.component.d.ts +1 -1
- package/components/accordion/lib/components/accordion-item/accordion-item.component.d.ts +1 -1
- package/components/accordion/lib/directives/accordion-item-title.d.ts +1 -1
- package/components/action-group/action-group.component.d.ts +1 -1
- package/components/area-header/area-header.component.d.ts +1 -1
- package/components/area-header/directives/area-header-content.directive.d.ts +1 -1
- package/components/area-header/directives/area-header-subtitle.directive.d.ts +1 -1
- package/components/area-header/models/area-header-size.d.ts +1 -1
- package/components/avatar/lib/avatar.component.d.ts +3 -2
- package/components/avatar/lib/models/avatar-size.d.ts +1 -1
- package/components/avatar/lib/models/avatar-variant.d.ts +5 -0
- package/components/avatar/lib/models/index.d.ts +1 -0
- package/components/badge/lib/badge.component.d.ts +7 -17
- package/components/badge/lib/badge.directive.d.ts +17 -13
- package/components/badge/lib/models/badge-variant.d.ts +1 -1
- package/components/badge/lib/models/index.d.ts +0 -1
- package/components/bar/README.md +3 -0
- package/components/bar/index.d.ts +5 -0
- package/components/bar/lib/bar.component.d.ts +6 -0
- package/components/bar/lib/bar.module.d.ts +10 -0
- package/components/bar/lib/directives/bar-button.directive.d.ts +10 -0
- package/components/bar/lib/directives/bar-label.directive.d.ts +6 -0
- package/components/bar/lib/models/bar-button-variant.d.ts +5 -0
- package/components/breadcrumbs/README.md +3 -0
- package/components/breadcrumbs/index.d.ts +1 -0
- package/components/breadcrumbs/lib/breadcrumbs.component.d.ts +17 -0
- package/components/button/index.d.ts +1 -0
- package/components/button/lib/button.component.d.ts +3 -4
- package/components/button/lib/directives/index.d.ts +1 -0
- package/components/button/lib/directives/responsive-button.directive.d.ts +6 -0
- package/components/button/lib/models/button-size.d.ts +1 -1
- package/components/button/lib/models/button-variant.d.ts +1 -1
- package/components/button-group/lib/button-group.component.d.ts +1 -1
- package/components/card/README.md +3 -0
- package/components/card/index.d.ts +5 -0
- package/components/card/lib/card.component.d.ts +20 -0
- package/components/card/lib/card.module.d.ts +16 -0
- package/components/card/lib/components/card-footer/card-footer.component.d.ts +5 -0
- package/components/card/lib/components/index.d.ts +2 -0
- package/components/card/lib/components/launch-card-subtitle/launch-card-subtitle.component.d.ts +5 -0
- package/components/card/lib/directives/card-content.directive.d.ts +5 -0
- package/components/card/lib/directives/card-title.directive.d.ts +5 -0
- package/components/card/lib/directives/index.d.ts +2 -0
- package/components/card/lib/models/card-variant.d.ts +6 -0
- package/components/card/lib/models/index.d.ts +1 -0
- package/components/checkbox/lib/checkbox.component.d.ts +2 -1
- package/components/checkbox/lib/checkbox.validator.d.ts +1 -1
- package/components/chip/lib/chip.component.d.ts +1 -1
- package/components/chip/lib/models/chip-size.d.ts +1 -1
- package/components/chip/lib/models/chip-variant.d.ts +1 -1
- package/components/circular-progress/lib/circular-progress.component.d.ts +3 -2
- package/components/circular-progress/lib/models/circular-progress-size.d.ts +1 -1
- package/components/content-box/lib/content-box.component.d.ts +1 -1
- package/components/content-box/lib/content-box.module.d.ts +2 -2
- package/components/content-box/lib/directives/{content-box-footer-directive.d.ts → content-box-footer.directive.d.ts} +1 -1
- package/components/content-box/lib/directives/{content-box-header-directive.d.ts → content-box-header.directive.d.ts} +1 -1
- package/components/content-box/lib/directives/index.d.ts +2 -2
- package/components/dropdown/index.d.ts +1 -0
- package/components/dropdown/lib/dropdown.component.d.ts +2 -1
- package/components/dropdown/lib/dropdown.directive.d.ts +11 -5
- package/components/dropdown/lib/helpers/close-current-dropdown.d.ts +1 -0
- package/components/dropdown/lib/helpers/index.d.ts +1 -0
- package/components/dropdown/lib/models/close-dropdown-event.d.ts +4 -0
- package/components/dropdown/lib/models/dropdown-options.d.ts +1 -1
- package/components/dropdown/lib/models/index.d.ts +1 -0
- package/components/form-field/index.d.ts +1 -0
- package/components/form-field/lib/components/form-field-info/form-field-info.component.d.ts +1 -1
- package/components/form-field/lib/components/form-group/form-group.component.d.ts +1 -1
- package/components/form-field/lib/directives/form-field-control.directive.d.ts +1 -1
- package/components/form-field/lib/directives/form-field-error.directive.d.ts +1 -1
- package/components/form-field/lib/directives/form-field-hint.directive.d.ts +1 -1
- package/components/form-field/lib/directives/form-field-label.directive.d.ts +1 -1
- package/components/form-field/lib/directives/form.directive.d.ts +1 -1
- package/components/form-field/lib/form-field.component.d.ts +8 -2
- package/components/form-field/lib/form-field.config.d.ts +3 -2
- package/components/form-field/lib/form-field.module.d.ts +0 -4
- package/components/form-field/lib/models/form-field-error-resolver.d.ts +1 -1
- package/components/form-field/lib/models/form-field-error.d.ts +1 -0
- package/components/form-field/lib/models/form-field-variant.d.ts +5 -0
- package/components/form-field/lib/models/index.d.ts +1 -0
- package/components/form-field/lib/services/form-field-error.service.d.ts +1 -0
- package/components/header/lib/directives/header-avatar.directive.d.ts +5 -2
- package/components/header/lib/directives/header-title.directive.d.ts +1 -1
- package/components/header/lib/header.component.d.ts +1 -1
- package/components/header/lib/header.module.d.ts +2 -3
- package/components/icon/index.d.ts +1 -0
- package/components/icon/lib/icon.component.d.ts +3 -5
- package/components/icon/lib/icon.config.d.ts +4 -0
- package/components/icon/lib/models/icon-size.d.ts +2 -1
- package/components/inline-message/index.d.ts +1 -1
- package/components/inline-message/lib/inline-message.component.d.ts +2 -2
- package/components/inline-message/lib/models/index.d.ts +1 -0
- package/components/inline-message/lib/models/inline-message-variant.d.ts +1 -1
- package/components/link/link.directive.d.ts +2 -4
- package/components/list/lib/components/expandable-list-item/expandable-list-item.component.d.ts +14 -0
- package/components/list/lib/components/index.d.ts +2 -1
- package/components/list/lib/components/{list-item.component.d.ts → list-item/list-item.component.d.ts} +2 -4
- package/components/list/lib/list.component.d.ts +5 -2
- package/components/list/lib/list.module.d.ts +4 -3
- package/components/loading-spinner/lib/loading-spinner.component.d.ts +1 -1
- package/components/loading-spinner/lib/loading-spinner.directive.d.ts +5 -3
- package/components/logo/logo.directive.d.ts +1 -1
- package/components/logo/models/logo-size.d.ts +1 -1
- package/components/logo/models/logo-variant.d.ts +1 -1
- package/components/main-menu/lib/directives/main-menu-button.directive.d.ts +1 -1
- package/components/main-menu/lib/directives/main-menu-item.directive.d.ts +4 -4
- package/components/main-menu/lib/main-menu.component.d.ts +1 -1
- package/components/mainfilter-group/README.md +3 -0
- package/components/mainfilter-group/index.d.ts +1 -0
- package/components/mainfilter-group/lib/mainfilter-group.component.d.ts +6 -0
- package/components/menu/README.md +3 -0
- package/components/menu/index.d.ts +4 -0
- package/components/menu/lib/directives/index.d.ts +1 -0
- package/components/menu/lib/directives/menu-item.directive.d.ts +8 -0
- package/components/menu/lib/menu.component.d.ts +11 -0
- package/components/menu/lib/menu.directive.d.ts +17 -0
- package/components/menu/lib/menu.module.d.ts +10 -0
- package/components/modal/index.d.ts +1 -1
- package/components/modal/lib/components/basic-modal/basic-modal.component.d.ts +10 -0
- package/components/modal/lib/components/index.d.ts +2 -0
- package/components/modal/lib/components/modal-footer/modal-footer.component.d.ts +1 -1
- package/components/modal/lib/components/modal-header/modal-header.component.d.ts +1 -1
- package/components/modal/lib/components/modal-hero/modal-hero.component.d.ts +11 -0
- package/components/modal/lib/directives/modal-close.directive.d.ts +2 -2
- package/components/modal/lib/directives/modal-content.directive.d.ts +1 -1
- package/components/modal/lib/directives/modal-dismiss.directive.d.ts +1 -1
- package/components/modal/lib/helpers/inject-modal-ref.d.ts +1 -1
- package/components/modal/lib/modal.component.d.ts +7 -3
- package/components/modal/lib/modal.config.d.ts +2 -2
- package/components/modal/lib/modal.directive.d.ts +1 -1
- package/components/modal/lib/modal.module.d.ts +9 -12
- package/components/modal/lib/modal.service.d.ts +9 -4
- package/components/modal/lib/models/basic-modal-options.d.ts +17 -0
- package/components/modal/lib/models/index.d.ts +2 -0
- package/components/modal/lib/models/modal-hero-variant.d.ts +7 -0
- package/components/modal/lib/models/modal-options.d.ts +2 -1
- package/components/modal/lib/models/modal-ref.d.ts +6 -4
- package/components/modal/lib/models/modal-size.d.ts +2 -1
- package/components/modal/lib/models/modal-type.d.ts +1 -1
- package/components/modal/lib/models/modal-variant.d.ts +1 -1
- package/components/navigation-back/README.md +3 -0
- package/components/navigation-back/index.d.ts +1 -0
- package/components/navigation-back/lib/navigation-back.component.d.ts +6 -0
- package/components/progress/lib/progress.component.d.ts +2 -2
- package/components/radio-group/lib/components/radio-button/radio-button.component.d.ts +2 -2
- package/components/radio-group/lib/radio-group.component.d.ts +1 -1
- package/components/rail-navigation/lib/components/rail-navigation-item.component.d.ts +2 -4
- package/components/rail-navigation/lib/rail-navigation.component.d.ts +1 -1
- package/components/select/lib/abstract/select-control-option.d.ts +2 -0
- package/components/select/lib/abstract/select-control.d.ts +1 -0
- package/components/select/lib/components/option/option.component.d.ts +6 -2
- package/components/select/lib/directives/select-search-field.directive.d.ts +1 -1
- package/components/select/lib/select.component.d.ts +12 -7
- package/components/slider/lib/slider.directive.d.ts +2 -3
- package/components/spinbox/lib/spinbox.component.d.ts +2 -2
- package/components/switch/lib/switch.component.d.ts +2 -1
- package/components/switch/lib/switch.validator.d.ts +1 -1
- package/components/tab-bar/lib/components/tab-bar-item/tab-bar-item.component.d.ts +6 -3
- package/components/tab-bar/lib/tab-bar.component.d.ts +3 -3
- package/components/toast/README.md +3 -0
- package/components/toast/index.d.ts +5 -0
- package/components/toast/lib/components/index.d.ts +2 -0
- package/components/toast/lib/components/toast-container/toast-container.component.d.ts +23 -0
- package/components/toast/lib/components/toast-item/toast-item.component.d.ts +20 -0
- package/components/toast/lib/models/index.d.ts +5 -0
- package/components/toast/lib/models/toast-action.d.ts +7 -0
- package/components/toast/lib/models/toast-ref.d.ts +7 -0
- package/components/toast/lib/models/toast-variant.d.ts +7 -0
- package/components/toast/lib/models/toast.d.ts +10 -0
- package/components/toast/lib/models/toast.options.d.ts +4 -0
- package/components/toast/lib/toast.config.d.ts +3 -0
- package/components/toast/lib/toast.module.d.ts +9 -0
- package/components/toast/lib/toast.service.d.ts +16 -0
- package/components/toggle-button-group/lib/components/toggle-button/toggle-button.component.d.ts +5 -2
- package/components/toggle-button-group/lib/toggle-button-group.component.d.ts +9 -4
- package/components/tooltip/lib/models/tooltip-size.d.ts +1 -1
- package/components/tooltip/lib/models/tooltip-trigger.d.ts +1 -1
- package/components/tooltip/lib/tooltip.component.d.ts +4 -3
- package/components/tooltip/lib/tooltip.directive.d.ts +4 -4
- package/esm2020/animations/lib/expand.mjs +6 -4
- package/esm2020/cdk/a11y/index.mjs +3 -0
- package/esm2020/cdk/a11y/lib/a11y.module.mjs +19 -0
- package/esm2020/cdk/a11y/lib/directives/index.mjs +4 -0
- package/esm2020/cdk/a11y/lib/directives/interactive.directive.mjs +49 -0
- package/esm2020/cdk/a11y/lib/directives/list-focus-manager-option.directive.mjs +26 -0
- package/esm2020/cdk/a11y/lib/directives/list-focus-manager.directive.mjs +40 -0
- package/esm2020/cdk/a11y/odx-angular-cdk-a11y.mjs +5 -0
- package/esm2020/cdk/active-indicator/lib/active-indicator.directive.mjs +4 -4
- package/esm2020/cdk/checkbox-control/lib/checkbox-control.directive.mjs +16 -12
- package/esm2020/cdk/connected-overlay/lib/connected-overlay.component.mjs +12 -8
- package/esm2020/cdk/connected-overlay/lib/connected-overlay.service.mjs +5 -5
- package/esm2020/cdk/connected-overlay/lib/helpers/compute-overlay-position.mjs +6 -8
- package/esm2020/cdk/connected-overlay/lib/helpers/index.mjs +1 -3
- package/esm2020/cdk/connected-overlay/lib/models/connected-overlay-options.mjs +4 -2
- package/esm2020/cdk/custom-form-control/lib/control.directive.mjs +4 -4
- package/esm2020/cdk/custom-form-control/lib/custom-form-control.mjs +44 -20
- package/esm2020/cdk/dynamic-view/lib/dynamic-view.component.mjs +4 -4
- package/esm2020/cdk/dynamic-view/lib/dynamic-view.directive.mjs +7 -5
- package/esm2020/cdk/dynamic-view/lib/dynamic-view.service.mjs +4 -4
- package/esm2020/cdk/dynamic-view/lib/models/dynamic-component-ref.mjs +15 -4
- package/esm2020/cdk/dynamic-view/lib/models/dynamic-template-ref.mjs +2 -2
- package/esm2020/cdk/expandable/index.mjs +2 -1
- package/esm2020/cdk/expandable/lib/directives/expandable-item.directive.mjs +7 -8
- package/esm2020/cdk/expandable/lib/directives/extandable-container.directive.mjs +5 -7
- package/esm2020/cdk/expandable/lib/expandable.module.mjs +5 -5
- package/esm2020/cdk/expandable/lib/expandable.tokens.mjs +3 -0
- package/esm2020/cdk/expandable/lib/facade/expandable-container.mjs +2 -3
- package/esm2020/cdk/expandable/lib/facade/expandable-item.mjs +2 -3
- package/esm2020/cdk/radio-group-control/lib/radio-control.directive.mjs +10 -10
- package/esm2020/cdk/radio-group-control/lib/radio-group-control.directive.mjs +14 -10
- package/esm2020/cdk/radio-group-control/lib/radio-group-control.module.mjs +5 -5
- package/esm2020/components/accordion/lib/accordion.component.mjs +7 -7
- package/esm2020/components/accordion/lib/accordion.module.mjs +5 -5
- package/esm2020/components/accordion/lib/components/accordion-item/accordion-item.component.mjs +8 -6
- package/esm2020/components/accordion/lib/directives/accordion-item-title.mjs +4 -4
- package/esm2020/components/action-group/action-group.component.mjs +5 -5
- package/esm2020/components/area-header/area-header.component.mjs +7 -6
- package/esm2020/components/area-header/area-header.module.mjs +5 -5
- package/esm2020/components/area-header/directives/area-header-content.directive.mjs +4 -4
- package/esm2020/components/area-header/directives/area-header-subtitle.directive.mjs +4 -4
- package/esm2020/components/avatar/lib/avatar.component.mjs +14 -8
- package/esm2020/components/avatar/lib/models/avatar-variant.mjs +5 -0
- package/esm2020/components/avatar/lib/models/index.mjs +2 -1
- package/esm2020/components/badge/lib/badge.component.mjs +18 -65
- package/esm2020/components/badge/lib/badge.directive.mjs +50 -25
- package/esm2020/components/badge/lib/models/index.mjs +1 -2
- package/esm2020/components/bar/index.mjs +6 -0
- package/esm2020/components/bar/lib/bar.component.mjs +21 -0
- package/esm2020/components/bar/lib/bar.module.mjs +20 -0
- package/esm2020/components/bar/lib/directives/bar-button.directive.mjs +38 -0
- package/esm2020/components/bar/lib/directives/bar-label.directive.mjs +24 -0
- package/esm2020/components/bar/lib/models/bar-button-variant.mjs +5 -0
- package/esm2020/components/bar/odx-angular-components-bar.mjs +5 -0
- package/esm2020/components/breadcrumbs/index.mjs +2 -0
- package/esm2020/components/breadcrumbs/lib/breadcrumbs.component.mjs +50 -0
- package/esm2020/components/{launch-tile/odx-angular-components-launch-tile.mjs → breadcrumbs/odx-angular-components-breadcrumbs.mjs} +1 -1
- package/esm2020/components/button/index.mjs +2 -1
- package/esm2020/components/button/lib/button.component.mjs +12 -18
- package/esm2020/components/button/lib/directives/index.mjs +2 -0
- package/esm2020/components/button/lib/directives/responsive-button.directive.mjs +24 -0
- package/esm2020/components/button-group/lib/button-group.component.mjs +4 -4
- package/esm2020/components/card/index.mjs +6 -0
- package/esm2020/components/card/lib/card.component.mjs +67 -0
- package/esm2020/components/card/lib/card.module.mjs +53 -0
- package/esm2020/components/card/lib/components/card-footer/card-footer.component.mjs +13 -0
- package/esm2020/components/card/lib/components/index.mjs +3 -0
- package/esm2020/components/card/lib/components/launch-card-subtitle/launch-card-subtitle.component.mjs +13 -0
- package/esm2020/components/card/lib/directives/card-content.directive.mjs +17 -0
- package/esm2020/components/card/lib/directives/card-title.directive.mjs +17 -0
- package/esm2020/components/card/lib/directives/index.mjs +3 -0
- package/esm2020/components/card/lib/models/card-variant.mjs +6 -0
- package/esm2020/components/card/lib/models/index.mjs +2 -0
- package/esm2020/components/card/odx-angular-components-card.mjs +5 -0
- package/esm2020/components/checkbox/lib/checkbox.component.mjs +8 -7
- package/esm2020/components/checkbox/lib/checkbox.module.mjs +5 -5
- package/esm2020/components/checkbox/lib/checkbox.validator.mjs +4 -4
- package/esm2020/components/chip/lib/chip.component.mjs +5 -5
- package/esm2020/components/circular-progress/lib/circular-progress.component.mjs +9 -7
- package/esm2020/components/content-box/lib/content-box.component.mjs +4 -4
- package/esm2020/components/content-box/lib/content-box.module.mjs +7 -7
- package/esm2020/components/content-box/lib/directives/{content-box-footer-directive.mjs → content-box-footer.directive.mjs} +4 -4
- package/esm2020/components/content-box/lib/directives/{content-box-header-directive.mjs → content-box-header.directive.mjs} +4 -4
- package/esm2020/components/content-box/lib/directives/index.mjs +3 -3
- package/esm2020/components/dropdown/index.mjs +2 -1
- package/esm2020/components/dropdown/lib/dropdown.component.mjs +15 -6
- package/esm2020/components/dropdown/lib/dropdown.directive.mjs +38 -18
- package/esm2020/components/dropdown/lib/dropdown.module.mjs +5 -5
- package/esm2020/components/dropdown/lib/helpers/close-current-dropdown.mjs +5 -0
- package/esm2020/components/dropdown/lib/helpers/index.mjs +2 -0
- package/esm2020/components/dropdown/lib/models/close-dropdown-event.mjs +7 -0
- package/esm2020/components/dropdown/lib/models/dropdown-options.mjs +3 -2
- package/esm2020/components/dropdown/lib/models/index.mjs +2 -1
- package/esm2020/components/form-field/index.mjs +2 -1
- package/esm2020/components/form-field/lib/components/form-field-info/form-field-info.component.mjs +4 -4
- package/esm2020/components/form-field/lib/components/form-group/form-group.component.mjs +4 -4
- package/esm2020/components/form-field/lib/directives/form-field-control.directive.mjs +6 -6
- package/esm2020/components/form-field/lib/directives/form-field-error.directive.mjs +4 -4
- package/esm2020/components/form-field/lib/directives/form-field-hint.directive.mjs +4 -4
- package/esm2020/components/form-field/lib/directives/form-field-label.directive.mjs +4 -4
- package/esm2020/components/form-field/lib/directives/form.directive.mjs +4 -4
- package/esm2020/components/form-field/lib/form-field.component.mjs +29 -11
- package/esm2020/components/form-field/lib/form-field.config.mjs +4 -3
- package/esm2020/components/form-field/lib/form-field.module.mjs +5 -13
- package/esm2020/components/form-field/lib/form-field.service.mjs +4 -4
- package/esm2020/components/form-field/lib/models/form-field-error.mjs +1 -1
- package/esm2020/components/form-field/lib/models/form-field-variant.mjs +5 -0
- package/esm2020/components/form-field/lib/models/index.mjs +2 -1
- package/esm2020/components/form-field/lib/services/form-field-error.service.mjs +16 -16
- package/esm2020/components/header/lib/directives/header-avatar.directive.mjs +13 -6
- package/esm2020/components/header/lib/directives/header-title.directive.mjs +4 -4
- package/esm2020/components/header/lib/header.component.mjs +5 -6
- package/esm2020/components/header/lib/header.module.mjs +7 -11
- package/esm2020/components/icon/index.mjs +2 -1
- package/esm2020/components/icon/lib/icon.component.mjs +12 -21
- package/esm2020/components/icon/lib/icon.config.mjs +5 -0
- package/esm2020/components/icon/lib/models/icon-size.mjs +2 -1
- package/esm2020/components/inline-message/index.mjs +2 -2
- package/esm2020/components/inline-message/lib/inline-message.component.mjs +9 -10
- package/esm2020/components/inline-message/lib/models/index.mjs +2 -0
- package/esm2020/components/link/link.directive.mjs +7 -14
- package/esm2020/components/list/lib/components/expandable-list-item/expandable-list-item.component.mjs +49 -0
- package/esm2020/components/list/lib/components/index.mjs +3 -2
- package/esm2020/components/list/lib/components/list-item/list-item.component.mjs +40 -0
- package/esm2020/components/list/lib/list.component.mjs +30 -11
- package/esm2020/components/list/lib/list.module.mjs +7 -7
- package/esm2020/components/loading-spinner/lib/loading-spinner.component.mjs +4 -4
- package/esm2020/components/loading-spinner/lib/loading-spinner.directive.mjs +18 -11
- package/esm2020/components/loading-spinner/lib/loading-spinner.module.mjs +5 -5
- package/esm2020/components/logo/logo.directive.mjs +8 -6
- package/esm2020/components/main-menu/lib/directives/main-menu-button.directive.mjs +4 -4
- package/esm2020/components/main-menu/lib/directives/main-menu-item.directive.mjs +15 -13
- package/esm2020/components/main-menu/lib/main-menu.component.mjs +9 -9
- package/esm2020/components/main-menu/lib/main-menu.module.mjs +5 -5
- package/esm2020/components/main-menu/lib/main-menu.service.mjs +4 -4
- package/esm2020/components/mainfilter-group/index.mjs +2 -0
- package/esm2020/components/mainfilter-group/lib/mainfilter-group.component.mjs +21 -0
- package/esm2020/components/mainfilter-group/odx-angular-components-mainfilter-group.mjs +5 -0
- package/esm2020/components/menu/index.mjs +5 -0
- package/esm2020/components/menu/lib/directives/index.mjs +2 -0
- package/esm2020/components/menu/lib/directives/menu-item.directive.mjs +37 -0
- package/esm2020/components/menu/lib/menu.component.mjs +46 -0
- package/esm2020/components/menu/lib/menu.directive.mjs +58 -0
- package/esm2020/components/menu/lib/menu.module.mjs +20 -0
- package/esm2020/components/menu/odx-angular-components-menu.mjs +5 -0
- package/esm2020/components/modal/index.mjs +2 -2
- package/esm2020/components/modal/lib/components/basic-modal/basic-modal.component.mjs +42 -0
- package/esm2020/components/modal/lib/components/index.mjs +3 -1
- package/esm2020/components/modal/lib/components/modal-footer/modal-footer.component.mjs +4 -4
- package/esm2020/components/modal/lib/components/modal-header/modal-header.component.mjs +5 -5
- package/esm2020/components/modal/lib/components/modal-hero/modal-hero.component.mjs +39 -0
- package/esm2020/components/modal/lib/directives/modal-close.directive.mjs +10 -5
- package/esm2020/components/modal/lib/directives/modal-content.directive.mjs +4 -4
- package/esm2020/components/modal/lib/directives/modal-dismiss.directive.mjs +4 -4
- package/esm2020/components/modal/lib/helpers/inject-modal-ref.mjs +1 -1
- package/esm2020/components/modal/lib/modal.component.mjs +20 -10
- package/esm2020/components/modal/lib/modal.config.mjs +4 -3
- package/esm2020/components/modal/lib/modal.directive.mjs +4 -4
- package/esm2020/components/modal/lib/modal.module.mjs +33 -15
- package/esm2020/components/modal/lib/modal.service.mjs +46 -26
- package/esm2020/components/modal/lib/models/basic-modal-options.mjs +2 -0
- package/esm2020/components/modal/lib/models/index.mjs +3 -1
- package/esm2020/components/modal/lib/models/modal-hero-variant.mjs +7 -0
- package/esm2020/components/modal/lib/models/modal-options.mjs +1 -1
- package/esm2020/components/modal/lib/models/modal-ref.mjs +20 -12
- package/esm2020/components/modal/lib/models/modal-size.mjs +2 -1
- package/esm2020/components/navigation-back/index.mjs +2 -0
- package/esm2020/components/navigation-back/lib/navigation-back.component.mjs +22 -0
- package/esm2020/components/navigation-back/odx-angular-components-navigation-back.mjs +5 -0
- package/esm2020/components/progress/lib/progress.component.mjs +6 -6
- package/esm2020/components/radio-group/lib/components/radio-button/radio-button.component.mjs +8 -9
- package/esm2020/components/radio-group/lib/radio-group.component.mjs +9 -9
- package/esm2020/components/radio-group/lib/radio-group.module.mjs +5 -5
- package/esm2020/components/rail-navigation/lib/components/rail-navigation-item.component.mjs +8 -13
- package/esm2020/components/rail-navigation/lib/rail-navigation.component.mjs +4 -4
- package/esm2020/components/rail-navigation/lib/rail-navigation.module.mjs +5 -5
- package/esm2020/components/select/lib/abstract/select-control-option.mjs +1 -1
- package/esm2020/components/select/lib/abstract/select-control.mjs +1 -1
- package/esm2020/components/select/lib/components/option/option.component.mjs +38 -21
- package/esm2020/components/select/lib/directives/select-search-field.directive.mjs +4 -4
- package/esm2020/components/select/lib/pipes/select-search-filter.pipe.mjs +4 -4
- package/esm2020/components/select/lib/select.component.mjs +85 -42
- package/esm2020/components/select/lib/select.module.mjs +5 -5
- package/esm2020/components/slider/lib/slider.directive.mjs +7 -10
- package/esm2020/components/spinbox/lib/spinbox.component.mjs +9 -9
- package/esm2020/components/switch/lib/switch.component.mjs +8 -7
- package/esm2020/components/switch/lib/switch.module.mjs +5 -5
- package/esm2020/components/switch/lib/switch.validator.mjs +4 -4
- package/esm2020/components/tab-bar/lib/components/tab-bar-item/tab-bar-item.component.mjs +18 -9
- package/esm2020/components/tab-bar/lib/tab-bar.component.mjs +10 -11
- package/esm2020/components/tab-bar/lib/tab-bar.module.mjs +5 -5
- package/esm2020/components/toast/index.mjs +6 -0
- package/esm2020/components/toast/lib/components/index.mjs +3 -0
- package/esm2020/components/toast/lib/components/toast-container/toast-container.component.mjs +87 -0
- package/esm2020/components/toast/lib/components/toast-item/toast-item.component.mjs +75 -0
- package/esm2020/components/toast/lib/models/index.mjs +6 -0
- package/esm2020/components/toast/lib/models/toast-action.mjs +2 -0
- package/esm2020/components/toast/lib/models/toast-ref.mjs +2 -0
- package/esm2020/components/toast/lib/models/toast-variant.mjs +7 -0
- package/esm2020/components/toast/lib/models/toast.mjs +2 -0
- package/esm2020/components/toast/lib/models/toast.options.mjs +2 -0
- package/esm2020/components/toast/lib/toast.config.mjs +6 -0
- package/esm2020/components/toast/lib/toast.module.mjs +18 -0
- package/esm2020/components/toast/lib/toast.service.mjs +38 -0
- package/esm2020/components/toast/odx-angular-components-toast.mjs +5 -0
- package/esm2020/components/toggle-button-group/lib/components/toggle-button/toggle-button.component.mjs +14 -12
- package/esm2020/components/toggle-button-group/lib/toggle-button-group.component.mjs +32 -13
- package/esm2020/components/toggle-button-group/lib/toggle-button-group.module.mjs +5 -5
- package/esm2020/components/tooltip/lib/tooltip.component.mjs +4 -4
- package/esm2020/components/tooltip/lib/tooltip.directive.mjs +11 -12
- package/esm2020/internal/decorators/css-component.mjs +3 -8
- package/esm2020/internal/decorators/css-modifier.mjs +21 -18
- package/esm2020/internal/helpers/decorator-property-name.mjs +4 -0
- package/esm2020/internal/helpers/deepmerge.mjs +6 -0
- package/esm2020/internal/helpers/index.mjs +3 -1
- package/esm2020/internal/helpers/with-mutiple-descriptors.mjs +22 -13
- package/esm2020/lib/controllers/controller.mjs +6 -6
- package/esm2020/lib/controllers/disabled.controller.mjs +29 -44
- package/esm2020/lib/controllers/readonly.controller.mjs +31 -22
- package/esm2020/lib/core.module.mjs +7 -6
- package/esm2020/lib/directives/click-outside.directive.mjs +17 -13
- package/esm2020/lib/directives/delegate-focus.directive.mjs +40 -0
- package/esm2020/lib/directives/index.mjs +4 -1
- package/esm2020/lib/directives/with-disabled-state.directive.mjs +41 -0
- package/esm2020/lib/directives/with-tabindex.directive.mjs +23 -0
- package/esm2020/lib/services/window-ref.mjs +18 -7
- package/esm2020/theming/index.mjs +5 -0
- package/esm2020/theming/lib/helpers/index.mjs +4 -0
- package/esm2020/theming/lib/helpers/prefers-dark-theme.mjs +4 -0
- package/esm2020/theming/lib/helpers/resolve-theme.mjs +5 -0
- package/esm2020/theming/lib/helpers/theme-storage.mjs +19 -0
- package/esm2020/theming/lib/models/index.mjs +2 -0
- package/esm2020/theming/lib/models/theme.mjs +6 -0
- package/esm2020/theming/lib/theming.config.mjs +21 -0
- package/esm2020/theming/lib/theming.service.mjs +42 -0
- package/esm2020/theming/odx-angular-theming.mjs +5 -0
- package/esm2020/utils/lib/decorators/transform.mjs +3 -3
- package/esm2020/utils/lib/helpers/build-url.mjs +4 -0
- package/esm2020/utils/lib/helpers/dom.mjs +9 -2
- package/esm2020/utils/lib/helpers/event-manager.mjs +4 -4
- package/esm2020/utils/lib/helpers/get-axis.mjs +14 -0
- package/esm2020/utils/lib/helpers/get-opposite-side.mjs +15 -0
- package/esm2020/utils/lib/helpers/get-side.mjs +4 -0
- package/esm2020/utils/lib/helpers/get-unique-id.mjs +7 -0
- package/esm2020/utils/lib/helpers/index.mjs +8 -2
- package/esm2020/utils/lib/helpers/provide-config.mjs +25 -0
- package/esm2020/utils/lib/helpers/queue.mjs +49 -0
- package/esm2020/utils/lib/types/axis.mjs +5 -0
- package/esm2020/utils/lib/types/index.mjs +4 -1
- package/esm2020/utils/lib/types/position.mjs +15 -0
- package/esm2020/utils/lib/types/side.mjs +7 -0
- package/fesm2015/odx-angular-animations.mjs +5 -3
- package/fesm2015/odx-angular-animations.mjs.map +1 -1
- package/fesm2015/odx-angular-cdk-a11y.mjs +131 -0
- package/fesm2015/odx-angular-cdk-a11y.mjs.map +1 -0
- package/fesm2015/odx-angular-cdk-active-indicator.mjs +3 -3
- package/fesm2015/odx-angular-cdk-active-indicator.mjs.map +1 -1
- package/fesm2015/odx-angular-cdk-checkbox-control.mjs +16 -12
- package/fesm2015/odx-angular-cdk-checkbox-control.mjs.map +1 -1
- package/fesm2015/odx-angular-cdk-connected-overlay.mjs +20 -33
- package/fesm2015/odx-angular-cdk-connected-overlay.mjs.map +1 -1
- package/fesm2015/odx-angular-cdk-custom-form-control.mjs +47 -24
- package/fesm2015/odx-angular-cdk-custom-form-control.mjs.map +1 -1
- package/fesm2015/odx-angular-cdk-dynamic-view.mjs +26 -12
- package/fesm2015/odx-angular-cdk-dynamic-view.mjs.map +1 -1
- package/fesm2015/odx-angular-cdk-expandable.mjs +16 -22
- package/fesm2015/odx-angular-cdk-expandable.mjs.map +1 -1
- package/fesm2015/odx-angular-cdk-radio-group-control.mjs +26 -23
- package/fesm2015/odx-angular-cdk-radio-group-control.mjs.map +1 -1
- package/fesm2015/odx-angular-components-accordion.mjs +20 -18
- package/fesm2015/odx-angular-components-accordion.mjs.map +1 -1
- package/fesm2015/odx-angular-components-action-group.mjs +4 -4
- package/fesm2015/odx-angular-components-action-group.mjs.map +1 -1
- package/fesm2015/odx-angular-components-area-header.mjs +16 -15
- package/fesm2015/odx-angular-components-area-header.mjs.map +1 -1
- package/fesm2015/odx-angular-components-avatar.mjs +18 -7
- package/fesm2015/odx-angular-components-avatar.mjs.map +1 -1
- package/fesm2015/odx-angular-components-badge.mjs +63 -97
- package/fesm2015/odx-angular-components-badge.mjs.map +1 -1
- package/fesm2015/odx-angular-components-bar.mjs +95 -0
- package/fesm2015/odx-angular-components-bar.mjs.map +1 -0
- package/fesm2015/odx-angular-components-breadcrumbs.mjs +56 -0
- package/fesm2015/odx-angular-components-breadcrumbs.mjs.map +1 -0
- package/fesm2015/odx-angular-components-button-group.mjs +3 -3
- package/fesm2015/odx-angular-components-button-group.mjs.map +1 -1
- package/fesm2015/odx-angular-components-button.mjs +35 -19
- package/fesm2015/odx-angular-components-button.mjs.map +1 -1
- package/fesm2015/odx-angular-components-card.mjs +174 -0
- package/fesm2015/odx-angular-components-card.mjs.map +1 -0
- package/fesm2015/odx-angular-components-checkbox.mjs +14 -13
- package/fesm2015/odx-angular-components-checkbox.mjs.map +1 -1
- package/fesm2015/odx-angular-components-chip.mjs +4 -4
- package/fesm2015/odx-angular-components-chip.mjs.map +1 -1
- package/fesm2015/odx-angular-components-circular-progress.mjs +8 -6
- package/fesm2015/odx-angular-components-circular-progress.mjs.map +1 -1
- package/fesm2015/odx-angular-components-content-box.mjs +13 -13
- package/fesm2015/odx-angular-components-content-box.mjs.map +1 -1
- package/fesm2015/odx-angular-components-dropdown.mjs +66 -27
- package/fesm2015/odx-angular-components-dropdown.mjs.map +1 -1
- package/fesm2015/odx-angular-components-form-field.mjs +78 -61
- package/fesm2015/odx-angular-components-form-field.mjs.map +1 -1
- package/fesm2015/odx-angular-components-header.mjs +25 -23
- package/fesm2015/odx-angular-components-header.mjs.map +1 -1
- package/fesm2015/odx-angular-components-icon.mjs +17 -22
- package/fesm2015/odx-angular-components-icon.mjs.map +1 -1
- package/fesm2015/odx-angular-components-inline-message.mjs +7 -8
- package/fesm2015/odx-angular-components-inline-message.mjs.map +1 -1
- package/fesm2015/odx-angular-components-link.mjs +6 -14
- package/fesm2015/odx-angular-components-link.mjs.map +1 -1
- package/fesm2015/odx-angular-components-list.mjs +74 -27
- package/fesm2015/odx-angular-components-list.mjs.map +1 -1
- package/fesm2015/odx-angular-components-loading-spinner.mjs +26 -18
- package/fesm2015/odx-angular-components-loading-spinner.mjs.map +1 -1
- package/fesm2015/odx-angular-components-logo.mjs +7 -5
- package/fesm2015/odx-angular-components-logo.mjs.map +1 -1
- package/fesm2015/odx-angular-components-main-menu.mjs +59 -59
- package/fesm2015/odx-angular-components-main-menu.mjs.map +1 -1
- package/fesm2015/odx-angular-components-mainfilter-group.mjs +27 -0
- package/fesm2015/odx-angular-components-mainfilter-group.mjs.map +1 -0
- package/fesm2015/odx-angular-components-menu.mjs +144 -0
- package/fesm2015/odx-angular-components-menu.mjs.map +1 -0
- package/fesm2015/odx-angular-components-modal.mjs +208 -129
- package/fesm2015/odx-angular-components-modal.mjs.map +1 -1
- package/fesm2015/odx-angular-components-navigation-back.mjs +28 -0
- package/fesm2015/odx-angular-components-navigation-back.mjs.map +1 -0
- package/fesm2015/odx-angular-components-progress.mjs +5 -5
- package/fesm2015/odx-angular-components-progress.mjs.map +1 -1
- package/fesm2015/odx-angular-components-radio-group.mjs +18 -19
- package/fesm2015/odx-angular-components-radio-group.mjs.map +1 -1
- package/fesm2015/odx-angular-components-rail-navigation.mjs +14 -20
- package/fesm2015/odx-angular-components-rail-navigation.mjs.map +1 -1
- package/fesm2015/odx-angular-components-select.mjs +131 -77
- package/fesm2015/odx-angular-components-select.mjs.map +1 -1
- package/fesm2015/odx-angular-components-slider.mjs +6 -9
- package/fesm2015/odx-angular-components-slider.mjs.map +1 -1
- package/fesm2015/odx-angular-components-spinbox.mjs +10 -10
- package/fesm2015/odx-angular-components-spinbox.mjs.map +1 -1
- package/fesm2015/odx-angular-components-switch.mjs +14 -13
- package/fesm2015/odx-angular-components-switch.mjs.map +1 -1
- package/fesm2015/odx-angular-components-tab-bar.mjs +31 -23
- package/fesm2015/odx-angular-components-tab-bar.mjs.map +1 -1
- package/fesm2015/odx-angular-components-toast.mjs +215 -0
- package/fesm2015/odx-angular-components-toast.mjs.map +1 -0
- package/fesm2015/odx-angular-components-toggle-button-group.mjs +50 -26
- package/fesm2015/odx-angular-components-toggle-button-group.mjs.map +1 -1
- package/fesm2015/odx-angular-components-tooltip.mjs +13 -14
- package/fesm2015/odx-angular-components-tooltip.mjs.map +1 -1
- package/fesm2015/odx-angular-internal.mjs +69 -53
- package/fesm2015/odx-angular-internal.mjs.map +1 -1
- package/fesm2015/odx-angular-theming.mjs +99 -0
- package/fesm2015/odx-angular-theming.mjs.map +1 -0
- package/fesm2015/odx-angular-utils.mjs +148 -18
- package/fesm2015/odx-angular-utils.mjs.map +1 -1
- package/fesm2015/odx-angular.mjs +200 -92
- package/fesm2015/odx-angular.mjs.map +1 -1
- package/fesm2020/odx-angular-animations.mjs +5 -3
- package/fesm2020/odx-angular-animations.mjs.map +1 -1
- package/fesm2020/odx-angular-cdk-a11y.mjs +127 -0
- package/fesm2020/odx-angular-cdk-a11y.mjs.map +1 -0
- package/fesm2020/odx-angular-cdk-active-indicator.mjs +3 -3
- package/fesm2020/odx-angular-cdk-active-indicator.mjs.map +1 -1
- package/fesm2020/odx-angular-cdk-checkbox-control.mjs +16 -12
- package/fesm2020/odx-angular-cdk-checkbox-control.mjs.map +1 -1
- package/fesm2020/odx-angular-cdk-connected-overlay.mjs +20 -33
- package/fesm2020/odx-angular-cdk-connected-overlay.mjs.map +1 -1
- package/fesm2020/odx-angular-cdk-custom-form-control.mjs +47 -24
- package/fesm2020/odx-angular-cdk-custom-form-control.mjs.map +1 -1
- package/fesm2020/odx-angular-cdk-dynamic-view.mjs +25 -12
- package/fesm2020/odx-angular-cdk-dynamic-view.mjs.map +1 -1
- package/fesm2020/odx-angular-cdk-expandable.mjs +16 -22
- package/fesm2020/odx-angular-cdk-expandable.mjs.map +1 -1
- package/fesm2020/odx-angular-cdk-radio-group-control.mjs +26 -23
- package/fesm2020/odx-angular-cdk-radio-group-control.mjs.map +1 -1
- package/fesm2020/odx-angular-components-accordion.mjs +20 -18
- package/fesm2020/odx-angular-components-accordion.mjs.map +1 -1
- package/fesm2020/odx-angular-components-action-group.mjs +4 -4
- package/fesm2020/odx-angular-components-action-group.mjs.map +1 -1
- package/fesm2020/odx-angular-components-area-header.mjs +16 -15
- package/fesm2020/odx-angular-components-area-header.mjs.map +1 -1
- package/fesm2020/odx-angular-components-avatar.mjs +18 -7
- package/fesm2020/odx-angular-components-avatar.mjs.map +1 -1
- package/fesm2020/odx-angular-components-badge.mjs +60 -90
- package/fesm2020/odx-angular-components-badge.mjs.map +1 -1
- package/fesm2020/odx-angular-components-bar.mjs +95 -0
- package/fesm2020/odx-angular-components-bar.mjs.map +1 -0
- package/fesm2020/odx-angular-components-breadcrumbs.mjs +56 -0
- package/fesm2020/odx-angular-components-breadcrumbs.mjs.map +1 -0
- package/fesm2020/odx-angular-components-button-group.mjs +3 -3
- package/fesm2020/odx-angular-components-button-group.mjs.map +1 -1
- package/fesm2020/odx-angular-components-button.mjs +35 -19
- package/fesm2020/odx-angular-components-button.mjs.map +1 -1
- package/fesm2020/odx-angular-components-card.mjs +173 -0
- package/fesm2020/odx-angular-components-card.mjs.map +1 -0
- package/fesm2020/odx-angular-components-checkbox.mjs +14 -13
- package/fesm2020/odx-angular-components-checkbox.mjs.map +1 -1
- package/fesm2020/odx-angular-components-chip.mjs +4 -4
- package/fesm2020/odx-angular-components-chip.mjs.map +1 -1
- package/fesm2020/odx-angular-components-circular-progress.mjs +8 -6
- package/fesm2020/odx-angular-components-circular-progress.mjs.map +1 -1
- package/fesm2020/odx-angular-components-content-box.mjs +13 -13
- package/fesm2020/odx-angular-components-content-box.mjs.map +1 -1
- package/fesm2020/odx-angular-components-dropdown.mjs +67 -27
- package/fesm2020/odx-angular-components-dropdown.mjs.map +1 -1
- package/fesm2020/odx-angular-components-form-field.mjs +77 -61
- package/fesm2020/odx-angular-components-form-field.mjs.map +1 -1
- package/fesm2020/odx-angular-components-header.mjs +25 -23
- package/fesm2020/odx-angular-components-header.mjs.map +1 -1
- package/fesm2020/odx-angular-components-icon.mjs +17 -22
- package/fesm2020/odx-angular-components-icon.mjs.map +1 -1
- package/fesm2020/odx-angular-components-inline-message.mjs +7 -8
- package/fesm2020/odx-angular-components-inline-message.mjs.map +1 -1
- package/fesm2020/odx-angular-components-link.mjs +6 -13
- package/fesm2020/odx-angular-components-link.mjs.map +1 -1
- package/fesm2020/odx-angular-components-list.mjs +74 -27
- package/fesm2020/odx-angular-components-list.mjs.map +1 -1
- package/fesm2020/odx-angular-components-loading-spinner.mjs +25 -18
- package/fesm2020/odx-angular-components-loading-spinner.mjs.map +1 -1
- package/fesm2020/odx-angular-components-logo.mjs +7 -5
- package/fesm2020/odx-angular-components-logo.mjs.map +1 -1
- package/fesm2020/odx-angular-components-main-menu.mjs +58 -58
- package/fesm2020/odx-angular-components-main-menu.mjs.map +1 -1
- package/fesm2020/odx-angular-components-mainfilter-group.mjs +27 -0
- package/fesm2020/odx-angular-components-mainfilter-group.mjs.map +1 -0
- package/fesm2020/odx-angular-components-menu.mjs +146 -0
- package/fesm2020/odx-angular-components-menu.mjs.map +1 -0
- package/fesm2020/odx-angular-components-modal.mjs +212 -127
- package/fesm2020/odx-angular-components-modal.mjs.map +1 -1
- package/fesm2020/odx-angular-components-navigation-back.mjs +28 -0
- package/fesm2020/odx-angular-components-navigation-back.mjs.map +1 -0
- package/fesm2020/odx-angular-components-progress.mjs +5 -5
- package/fesm2020/odx-angular-components-progress.mjs.map +1 -1
- package/fesm2020/odx-angular-components-radio-group.mjs +18 -19
- package/fesm2020/odx-angular-components-radio-group.mjs.map +1 -1
- package/fesm2020/odx-angular-components-rail-navigation.mjs +14 -19
- package/fesm2020/odx-angular-components-rail-navigation.mjs.map +1 -1
- package/fesm2020/odx-angular-components-select.mjs +131 -71
- package/fesm2020/odx-angular-components-select.mjs.map +1 -1
- package/fesm2020/odx-angular-components-slider.mjs +6 -9
- package/fesm2020/odx-angular-components-slider.mjs.map +1 -1
- package/fesm2020/odx-angular-components-spinbox.mjs +9 -9
- package/fesm2020/odx-angular-components-spinbox.mjs.map +1 -1
- package/fesm2020/odx-angular-components-switch.mjs +14 -13
- package/fesm2020/odx-angular-components-switch.mjs.map +1 -1
- package/fesm2020/odx-angular-components-tab-bar.mjs +29 -22
- package/fesm2020/odx-angular-components-tab-bar.mjs.map +1 -1
- package/fesm2020/odx-angular-components-toast.mjs +214 -0
- package/fesm2020/odx-angular-components-toast.mjs.map +1 -0
- package/fesm2020/odx-angular-components-toggle-button-group.mjs +47 -26
- package/fesm2020/odx-angular-components-toggle-button-group.mjs.map +1 -1
- package/fesm2020/odx-angular-components-tooltip.mjs +13 -14
- package/fesm2020/odx-angular-components-tooltip.mjs.map +1 -1
- package/fesm2020/odx-angular-internal.mjs +67 -51
- package/fesm2020/odx-angular-internal.mjs.map +1 -1
- package/fesm2020/odx-angular-theming.mjs +96 -0
- package/fesm2020/odx-angular-theming.mjs.map +1 -0
- package/fesm2020/odx-angular-utils.mjs +143 -18
- package/fesm2020/odx-angular-utils.mjs.map +1 -1
- package/fesm2020/odx-angular.mjs +193 -88
- package/fesm2020/odx-angular.mjs.map +1 -1
- package/internal/decorators/css-component.d.ts +1 -2
- package/internal/decorators/css-modifier.d.ts +0 -1
- package/internal/helpers/decorator-property-name.d.ts +1 -0
- package/internal/helpers/deepmerge.d.ts +10 -0
- package/internal/helpers/index.d.ts +2 -0
- package/internal/helpers/with-mutiple-descriptors.d.ts +1 -1
- package/lib/controllers/controller.d.ts +1 -1
- package/lib/controllers/disabled.controller.d.ts +5 -7
- package/lib/controllers/readonly.controller.d.ts +5 -2
- package/lib/core.module.d.ts +2 -1
- package/lib/directives/click-outside.directive.d.ts +3 -4
- package/lib/directives/delegate-focus.directive.d.ts +11 -0
- package/lib/directives/index.d.ts +3 -0
- package/lib/directives/with-disabled-state.directive.d.ts +13 -0
- package/lib/directives/with-tabindex.directive.d.ts +7 -0
- package/lib/services/window-ref.d.ts +5 -0
- package/lib/tokens/identity-matcher.d.ts +1 -1
- package/lib/tokens/string-search-handler.d.ts +1 -1
- package/lib/tokens/stringify.d.ts +1 -1
- package/package.json +85 -19
- package/theming/README.md +3 -0
- package/theming/index.d.ts +4 -0
- package/theming/lib/helpers/index.d.ts +3 -0
- package/theming/lib/helpers/prefers-dark-theme.d.ts +1 -0
- package/theming/lib/helpers/resolve-theme.d.ts +2 -0
- package/theming/lib/helpers/theme-storage.d.ts +4 -0
- package/theming/lib/models/index.d.ts +1 -0
- package/theming/lib/models/theme.d.ts +6 -0
- package/theming/lib/theming.config.d.ts +10 -0
- package/theming/lib/theming.service.d.ts +16 -0
- package/utils/lib/decorators/transform.d.ts +2 -2
- package/utils/lib/helpers/build-url.d.ts +1 -0
- package/utils/lib/helpers/dom.d.ts +1 -0
- package/utils/lib/helpers/get-axis.d.ts +2 -0
- package/utils/lib/helpers/get-opposite-side.d.ts +2 -0
- package/utils/lib/helpers/get-side.d.ts +2 -0
- package/utils/lib/helpers/get-unique-id.d.ts +1 -0
- package/utils/lib/helpers/index.d.ts +7 -1
- package/utils/lib/helpers/ng-changes.d.ts +1 -1
- package/utils/lib/helpers/provide-config.d.ts +12 -0
- package/utils/lib/helpers/queue.d.ts +22 -0
- package/utils/lib/types/axis.d.ts +5 -0
- package/utils/lib/types/get-properties.d.ts +2 -2
- package/utils/lib/types/index.d.ts +3 -0
- package/utils/lib/types/position.d.ts +15 -0
- package/utils/lib/types/side.d.ts +7 -0
- package/cdk/connected-overlay/lib/helpers/get-opposite-overlay-side.d.ts +0 -2
- package/cdk/connected-overlay/lib/helpers/get-overlay-side.d.ts +0 -2
- package/components/badge/lib/badge.config.d.ts +0 -3
- package/components/badge/lib/facade/badge-host.d.ts +0 -3
- package/components/badge/lib/facade/index.d.ts +0 -1
- package/components/badge/lib/models/badge-position.d.ts +0 -5
- package/components/launch-tile/README.md +0 -3
- package/components/launch-tile/index.d.ts +0 -5
- package/components/launch-tile/lib/components/launch-tile-footer/launch-tile-footer.component.d.ts +0 -5
- package/components/launch-tile/lib/components/launch-tile-subtitle/launch-tile-subtitle.component.d.ts +0 -5
- package/components/launch-tile/lib/directives/launch-tile-menu/launch-tile-menu.directive.d.ts +0 -5
- package/components/launch-tile/lib/launch-tile.component.d.ts +0 -11
- package/components/launch-tile/lib/launch-tile.module.d.ts +0 -16
- package/components/modal/lib/services/index.d.ts +0 -1
- package/components/modal/lib/services/open-modal-manager.service.d.ts +0 -15
- package/esm2020/cdk/connected-overlay/lib/helpers/get-opposite-overlay-side.mjs +0 -13
- package/esm2020/cdk/connected-overlay/lib/helpers/get-overlay-side.mjs +0 -4
- package/esm2020/components/badge/lib/badge.config.mjs +0 -3
- package/esm2020/components/badge/lib/facade/badge-host.mjs +0 -2
- package/esm2020/components/badge/lib/facade/index.mjs +0 -2
- package/esm2020/components/badge/lib/models/badge-position.mjs +0 -5
- package/esm2020/components/launch-tile/index.mjs +0 -6
- package/esm2020/components/launch-tile/lib/components/launch-tile-footer/launch-tile-footer.component.mjs +0 -13
- package/esm2020/components/launch-tile/lib/components/launch-tile-subtitle/launch-tile-subtitle.component.mjs +0 -13
- package/esm2020/components/launch-tile/lib/directives/launch-tile-menu/launch-tile-menu.directive.mjs +0 -17
- package/esm2020/components/launch-tile/lib/launch-tile.component.mjs +0 -40
- package/esm2020/components/launch-tile/lib/launch-tile.module.mjs +0 -59
- package/esm2020/components/list/lib/components/list-item.component.mjs +0 -46
- package/esm2020/components/modal/lib/services/index.mjs +0 -2
- package/esm2020/components/modal/lib/services/open-modal-manager.service.mjs +0 -42
- package/esm2020/utils/lib/helpers/provide-module-config.mjs +0 -21
- package/fesm2015/odx-angular-components-launch-tile.mjs +0 -133
- package/fesm2015/odx-angular-components-launch-tile.mjs.map +0 -1
- package/fesm2020/odx-angular-components-launch-tile.mjs +0 -132
- package/fesm2020/odx-angular-components-launch-tile.mjs.map +0 -1
- package/utils/lib/helpers/provide-module-config.d.ts +0 -12
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
import { __decorate, __metadata } from 'tslib';
|
|
2
|
+
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
2
3
|
import * as i0 from '@angular/core';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
4
|
+
import { Component, ChangeDetectionStrategy, ViewEncapsulation, Input, inject, Directive } from '@angular/core';
|
|
5
|
+
import { DynamicViewDirective } from '@odx/angular/cdk/dynamic-view';
|
|
5
6
|
import { CSSModifier, CSSComponent } from '@odx/angular/internal';
|
|
6
|
-
import { injectElement,
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
const BADGE_HOST = new InjectionToken('@odx/angular/components/badge::BadgeHost');
|
|
10
|
-
|
|
11
|
-
const BadgePosition = {
|
|
12
|
-
TOP: 'top',
|
|
13
|
-
BOTTOM: 'bottom',
|
|
14
|
-
};
|
|
7
|
+
import { injectElement, Transform, getInjector, Position, isPresent } from '@odx/angular/utils';
|
|
8
|
+
import { ConnectedOverlayService } from '@odx/angular/cdk/connected-overlay';
|
|
15
9
|
|
|
16
10
|
const BadgeVariant = {
|
|
17
11
|
HIGHLIGHT: 'highlight',
|
|
@@ -19,125 +13,101 @@ const BadgeVariant = {
|
|
|
19
13
|
CONFIRMATION: 'confirmation',
|
|
20
14
|
};
|
|
21
15
|
|
|
22
|
-
const POSITION_STRATEGY = 'fixed';
|
|
23
16
|
let BadgeComponent = class BadgeComponent {
|
|
24
17
|
constructor() {
|
|
25
|
-
this.hostElement = inject(BADGE_HOST).hostElement;
|
|
26
|
-
this.zone = inject(NgZone);
|
|
27
|
-
this.elementRect = null;
|
|
28
18
|
this.element = injectElement();
|
|
29
|
-
this.value = 0;
|
|
30
|
-
this.position = BadgePosition.BOTTOM;
|
|
31
19
|
this.contrast = false;
|
|
32
|
-
|
|
33
|
-
ngOnChanges(changes) {
|
|
34
|
-
if (hasChanged(changes, 'value')) {
|
|
35
|
-
this.startPositionUpdater();
|
|
36
|
-
}
|
|
37
|
-
if (hasChanged(changes, 'position')) {
|
|
38
|
-
this.updateBadgePosition();
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
ngAfterViewInit() {
|
|
42
|
-
this.element.nativeElement.style.position = POSITION_STRATEGY;
|
|
43
|
-
this.startPositionUpdater();
|
|
44
|
-
}
|
|
45
|
-
ngOnDestroy() {
|
|
46
|
-
this.stopPositionUpdater();
|
|
47
|
-
}
|
|
48
|
-
startPositionUpdater() {
|
|
49
|
-
this.element.nativeElement.dataset['value'] = this.value.toString();
|
|
50
|
-
if (this.value === 0) {
|
|
51
|
-
return this.stopPositionUpdater();
|
|
52
|
-
}
|
|
53
|
-
this.elementRect = this.element.nativeElement.getBoundingClientRect();
|
|
54
|
-
this.positionUpdater ?? (this.positionUpdater = this.zone.runOutsideAngular(() => autoUpdate(this.hostElement, this.element.nativeElement, () => this.updateBadgePosition(), { animationFrame: true })));
|
|
55
|
-
}
|
|
56
|
-
stopPositionUpdater() {
|
|
57
|
-
this.positionUpdater?.();
|
|
58
|
-
this.positionUpdater = undefined;
|
|
59
|
-
}
|
|
60
|
-
async updateBadgePosition() {
|
|
61
|
-
const badgeOffset = (this.elementRect?.height ?? 0) / 2;
|
|
62
|
-
const badgeWidth = this.elementRect?.width ?? 0;
|
|
63
|
-
const { x, y, middlewareData } = await computePosition(this.hostElement, this.element.nativeElement, {
|
|
64
|
-
middleware: [offset({ alignmentAxis: -badgeOffset, mainAxis: badgeOffset - badgeWidth }), hide()],
|
|
65
|
-
placement: this.position === BadgePosition.TOP ? 'right-start' : 'right-end',
|
|
66
|
-
strategy: POSITION_STRATEGY,
|
|
67
|
-
});
|
|
68
|
-
if (!middlewareData.hide?.referenceHidden) {
|
|
69
|
-
applyStyles(this.element.nativeElement, { transform: cssTranslate(px(x), px(y)), display: null });
|
|
70
|
-
}
|
|
71
|
-
else if (this.element.nativeElement.style.display !== 'none') {
|
|
72
|
-
applyStyles(this.element.nativeElement, { display: 'none' });
|
|
73
|
-
}
|
|
20
|
+
this.variant = BadgeVariant.HIGHLIGHT;
|
|
74
21
|
}
|
|
75
22
|
};
|
|
76
|
-
BadgeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
77
|
-
BadgeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
23
|
+
BadgeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: BadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
24
|
+
BadgeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: BadgeComponent, isStandalone: true, selector: "odx-badge", inputs: { contrast: "contrast", variant: "variant", value: "value" }, ngImport: i0, template: '<ng-template [odxDynamicView]="value"></ng-template>', isInline: true, dependencies: [{ kind: "directive", type: DynamicViewDirective, selector: "ng-template[odxDynamicView]", inputs: ["odxDynamicView", "odxDynamicViewInjector", "odxDynamicViewContext"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
78
25
|
__decorate([
|
|
26
|
+
Transform(coerceBooleanProperty),
|
|
79
27
|
CSSModifier(),
|
|
80
28
|
__metadata("design:type", Object)
|
|
81
29
|
], BadgeComponent.prototype, "contrast", void 0);
|
|
82
30
|
__decorate([
|
|
83
|
-
CSSModifier(
|
|
31
|
+
CSSModifier(),
|
|
84
32
|
__metadata("design:type", String)
|
|
85
33
|
], BadgeComponent.prototype, "variant", void 0);
|
|
86
34
|
BadgeComponent = __decorate([
|
|
87
35
|
CSSComponent('badge')
|
|
88
36
|
], BadgeComponent);
|
|
89
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: BadgeComponent, decorators: [{
|
|
90
38
|
type: Component,
|
|
91
39
|
args: [{
|
|
40
|
+
standalone: true,
|
|
92
41
|
selector: 'odx-badge',
|
|
93
|
-
|
|
42
|
+
imports: [DynamicViewDirective],
|
|
43
|
+
template: '<ng-template [odxDynamicView]="value"></ng-template>',
|
|
94
44
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
95
45
|
encapsulation: ViewEncapsulation.None,
|
|
96
|
-
standalone: true,
|
|
97
46
|
}]
|
|
98
|
-
}], propDecorators: {
|
|
99
|
-
type: Input
|
|
100
|
-
}], position: [{
|
|
101
|
-
type: Input
|
|
102
|
-
}], contrast: [{
|
|
47
|
+
}], propDecorators: { contrast: [{
|
|
103
48
|
type: Input
|
|
104
49
|
}], variant: [{
|
|
105
50
|
type: Input
|
|
51
|
+
}], value: [{
|
|
52
|
+
type: Input
|
|
106
53
|
}] } });
|
|
107
54
|
|
|
108
|
-
|
|
55
|
+
const DEFAULT_BADGE_OVERLAY_OPTIONS = {
|
|
56
|
+
content: BadgeComponent,
|
|
57
|
+
enableFallback: false,
|
|
58
|
+
offset: 0,
|
|
59
|
+
containerClass: 'odx-badge-overlay',
|
|
60
|
+
};
|
|
61
|
+
let BadgeDirective = class BadgeDirective {
|
|
109
62
|
constructor() {
|
|
110
|
-
this.
|
|
63
|
+
this.connectedOverlayService = inject(ConnectedOverlayService);
|
|
111
64
|
this.injector = getInjector();
|
|
112
|
-
this.
|
|
113
|
-
this.
|
|
65
|
+
this.badgeRef = null;
|
|
66
|
+
this.element = injectElement();
|
|
67
|
+
this.value = null;
|
|
68
|
+
this.contrast = false;
|
|
69
|
+
this.position = Position.BOTTOM_END;
|
|
114
70
|
}
|
|
115
|
-
ngOnChanges(
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
71
|
+
ngOnChanges() {
|
|
72
|
+
if (isPresent(this.value)) {
|
|
73
|
+
this.showBadge();
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
this.hideBadge();
|
|
119
77
|
}
|
|
78
|
+
this.updateBadge();
|
|
120
79
|
}
|
|
121
80
|
ngOnDestroy() {
|
|
122
|
-
this.
|
|
81
|
+
this.hideBadge();
|
|
123
82
|
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
83
|
+
showBadge() {
|
|
84
|
+
this.badgeRef ?? (this.badgeRef = this.connectedOverlayService.createOverlay(this.element.nativeElement, DEFAULT_BADGE_OVERLAY_OPTIONS, { injector: this.injector }));
|
|
85
|
+
}
|
|
86
|
+
hideBadge() {
|
|
87
|
+
this.badgeRef?.close();
|
|
88
|
+
this.badgeRef = null;
|
|
89
|
+
}
|
|
90
|
+
updateBadge() {
|
|
91
|
+
this.badgeRef?.update({
|
|
92
|
+
context: { contrast: this.contrast, value: this.value, variant: this.variant },
|
|
93
|
+
position: this.position,
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
BadgeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: BadgeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
98
|
+
BadgeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.8", type: BadgeDirective, isStandalone: true, selector: "[odxBadge]", inputs: { value: ["odxBadge", "value"], contrast: ["odxBadgeContrast", "contrast"], position: ["odxBadgePosition", "position"], variant: ["odxBadgeVariant", "variant"] }, usesOnChanges: true, ngImport: i0 });
|
|
131
99
|
__decorate([
|
|
132
100
|
Transform(coerceBooleanProperty),
|
|
133
|
-
__metadata("design:type",
|
|
101
|
+
__metadata("design:type", Object)
|
|
134
102
|
], BadgeDirective.prototype, "contrast", void 0);
|
|
135
|
-
|
|
103
|
+
BadgeDirective = __decorate([
|
|
104
|
+
CSSComponent('badge-host')
|
|
105
|
+
], BadgeDirective);
|
|
106
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: BadgeDirective, decorators: [{
|
|
136
107
|
type: Directive,
|
|
137
108
|
args: [{
|
|
138
109
|
selector: '[odxBadge]',
|
|
139
110
|
standalone: true,
|
|
140
|
-
providers: [{ provide: BADGE_HOST, useExisting: BadgeDirective }],
|
|
141
111
|
}]
|
|
142
112
|
}], propDecorators: { value: [{
|
|
143
113
|
type: Input,
|
|
@@ -157,5 +127,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
157
127
|
* Generated bundle index. Do not edit.
|
|
158
128
|
*/
|
|
159
129
|
|
|
160
|
-
export { BadgeComponent, BadgeDirective,
|
|
130
|
+
export { BadgeComponent, BadgeDirective, BadgeVariant };
|
|
161
131
|
//# sourceMappingURL=odx-angular-components-badge.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"odx-angular-components-badge.mjs","sources":["../../../../libs/angular/components/badge/src/lib/badge.config.ts","../../../../libs/angular/components/badge/src/lib/models/badge-position.ts","../../../../libs/angular/components/badge/src/lib/models/badge-variant.ts","../../../../libs/angular/components/badge/src/lib/badge.component.ts","../../../../libs/angular/components/badge/src/lib/badge.directive.ts","../../../../libs/angular/components/badge/src/odx-angular-components-badge.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { BadgeHost } from './facade';\n\nexport const BADGE_HOST = new InjectionToken<BadgeHost>('@odx/angular/components/badge::BadgeHost');\n","export type BadgePosition = typeof BadgePosition[keyof typeof BadgePosition];\n\nexport const BadgePosition = {\n TOP: 'top',\n BOTTOM: 'bottom',\n} as const;\n","export type BadgeVariant = typeof BadgeVariant[keyof typeof BadgeVariant];\n\nexport const BadgeVariant = {\n HIGHLIGHT: 'highlight',\n DANGER: 'danger',\n CONFIRMATION: 'confirmation',\n} as const;\n","import { AfterViewInit, ChangeDetectionStrategy, Component, inject, Input, NgZone, OnChanges, OnDestroy, ViewEncapsulation } from '@angular/core';\nimport { autoUpdate, computePosition, hide, offset, Strategy } from '@floating-ui/dom';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\nimport { applyStyles, cssTranslate, hasChanged, injectElement, NgChanges, px } from '@odx/angular/utils';\nimport { BADGE_HOST } from './badge.config';\nimport { BadgePosition, BadgeVariant } from './models';\n\nconst POSITION_STRATEGY: Strategy = 'fixed';\n\n@CSSComponent('badge')\n@Component({\n selector: 'odx-badge',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n standalone: true,\n})\nexport class BadgeComponent implements AfterViewInit, OnChanges, OnDestroy {\n private readonly hostElement = inject(BADGE_HOST).hostElement;\n private readonly zone = inject(NgZone);\n private positionUpdater?: () => void;\n private elementRect: DOMRect | null = null;\n\n public readonly element = injectElement();\n\n @Input()\n public value = 0;\n\n @Input()\n public position: BadgePosition = BadgePosition.BOTTOM;\n\n @CSSModifier()\n @Input()\n public contrast = false;\n\n @CSSModifier({ default: BadgeVariant.HIGHLIGHT })\n @Input()\n public variant!: BadgeVariant;\n\n public ngOnChanges(changes: NgChanges<BadgeComponent>): void {\n if (hasChanged(changes, 'value')) {\n this.startPositionUpdater();\n }\n if (hasChanged(changes, 'position')) {\n this.updateBadgePosition();\n }\n }\n\n public ngAfterViewInit(): void {\n this.element.nativeElement.style.position = POSITION_STRATEGY;\n this.startPositionUpdater();\n }\n\n public ngOnDestroy(): void {\n this.stopPositionUpdater();\n }\n\n private startPositionUpdater(): void {\n this.element.nativeElement.dataset['value'] = this.value.toString();\n if (this.value === 0) {\n return this.stopPositionUpdater();\n }\n this.elementRect = this.element.nativeElement.getBoundingClientRect();\n this.positionUpdater ??= this.zone.runOutsideAngular(() =>\n autoUpdate(this.hostElement, this.element.nativeElement, () => this.updateBadgePosition(), { animationFrame: true })\n );\n }\n\n private stopPositionUpdater(): void {\n this.positionUpdater?.();\n this.positionUpdater = undefined;\n }\n\n private async updateBadgePosition(): Promise<void> {\n const badgeOffset = (this.elementRect?.height ?? 0) / 2;\n const badgeWidth = this.elementRect?.width ?? 0;\n const { x, y, middlewareData } = await computePosition(this.hostElement, this.element.nativeElement, {\n middleware: [offset({ alignmentAxis: -badgeOffset, mainAxis: badgeOffset - badgeWidth }), hide()],\n placement: this.position === BadgePosition.TOP ? 'right-start' : 'right-end',\n strategy: POSITION_STRATEGY,\n });\n if (!middlewareData.hide?.referenceHidden) {\n applyStyles(this.element.nativeElement, { transform: cssTranslate(px(x), px(y)), display: null });\n } else if (this.element.nativeElement.style.display !== 'none') {\n applyStyles(this.element.nativeElement, { display: 'none' });\n }\n }\n}\n","import { BooleanInput, coerceBooleanProperty, coerceNumberProperty, NumberInput } from '@angular/cdk/coercion';\nimport { ComponentRef, Directive, inject, Input, OnChanges, OnDestroy, SimpleChanges, ViewContainerRef } from '@angular/core';\nimport { getInjector, injectElement, Transform } from '@odx/angular/utils';\nimport { BadgeComponent } from './badge.component';\nimport { BADGE_HOST } from './badge.config';\nimport { BadgeHost } from './facade';\nimport { BadgePosition, BadgeVariant } from './models';\n\n@Directive({\n selector: '[odxBadge]',\n standalone: true,\n providers: [{ provide: BADGE_HOST, useExisting: BadgeDirective }],\n})\nexport class BadgeDirective implements BadgeHost, OnChanges, OnDestroy {\n public static ngAcceptInputType_content: NumberInput;\n public static ngAcceptInputType_contrast: BooleanInput;\n\n private badgeRef: ComponentRef<BadgeComponent> | null = null;\n private readonly injector = getInjector();\n private readonly viewContainer = inject(ViewContainerRef);\n\n public readonly hostElement = injectElement().nativeElement;\n\n @Transform(coerceNumberProperty)\n @Input('odxBadge')\n public value!: number;\n\n @Transform(coerceBooleanProperty)\n @Input('odxBadgeContrast')\n public contrast!: boolean;\n\n @Input('odxBadgePosition')\n public position!: BadgePosition;\n\n @Input('odxBadgeVariant')\n public variant!: BadgeVariant;\n\n public ngOnChanges(changes: SimpleChanges): void {\n this.badgeRef ??= this.viewContainer.createComponent(BadgeComponent, { injector: this.injector });\n\n for (const prop in changes) {\n this.badgeRef.setInput(prop, changes[prop].currentValue);\n }\n }\n\n public ngOnDestroy(): void {\n this.badgeRef?.destroy();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAGO,MAAM,UAAU,GAAG,IAAI,cAAc,CAAY,0CAA0C,CAAC;;ACDtF,MAAA,aAAa,GAAG;AAC3B,IAAA,GAAG,EAAE,KAAK;AACV,IAAA,MAAM,EAAE,QAAQ;;;ACFL,MAAA,YAAY,GAAG;AAC1B,IAAA,SAAS,EAAE,WAAW;AACtB,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,YAAY,EAAE,cAAc;;;ACE9B,MAAM,iBAAiB,GAAa,OAAO,CAAC;AAU/B,IAAA,cAAc,GAApB,MAAM,cAAc,CAAA;AAApB,IAAA,WAAA,GAAA;AACY,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,WAAW,CAAC;AAC7C,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;QAE/B,IAAW,CAAA,WAAA,GAAmB,IAAI,CAAC;QAE3B,IAAO,CAAA,OAAA,GAAG,aAAa,EAAE,CAAC;QAGnC,IAAK,CAAA,KAAA,GAAG,CAAC,CAAC;AAGV,QAAA,IAAA,CAAA,QAAQ,GAAkB,aAAa,CAAC,MAAM,CAAC;QAI/C,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC;AAsDzB,KAAA;AAhDQ,IAAA,WAAW,CAAC,OAAkC,EAAA;AACnD,QAAA,IAAI,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE;YAChC,IAAI,CAAC,oBAAoB,EAAE,CAAC;AAC7B,SAAA;AACD,QAAA,IAAI,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,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C,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,YAAY;AACtB,oBAAA,UAAU,EAAE,IAAI;oBAChB,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAgB,cAAA,EAAE,CAAC;AAClE,iBAAA,CAAA;8BAaQ,KAAK,EAAA,CAAA;sBADX,KAAK;uBAAC,UAAU,CAAA;gBAKV,QAAQ,EAAA,CAAA;sBADd,KAAK;uBAAC,kBAAkB,CAAA;gBAIlB,QAAQ,EAAA,CAAA;sBADd,KAAK;uBAAC,kBAAkB,CAAA;gBAIlB,OAAO,EAAA,CAAA;sBADb,KAAK;uBAAC,iBAAiB,CAAA;;;AClC1B;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"odx-angular-components-badge.mjs","sources":["../../../../libs/angular/components/badge/src/lib/models/badge-variant.ts","../../../../libs/angular/components/badge/src/lib/badge.component.ts","../../../../libs/angular/components/badge/src/lib/badge.directive.ts","../../../../libs/angular/components/badge/src/odx-angular-components-badge.ts"],"sourcesContent":["export type BadgeVariant = typeof BadgeVariant[keyof typeof BadgeVariant];\n\nexport const BadgeVariant = {\n HIGHLIGHT: 'highlight',\n DANGER: 'danger',\n CONFIRMATION: 'confirmation',\n} as const;\n","import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core';\nimport { DynamicTextContent, DynamicViewDirective } from '@odx/angular/cdk/dynamic-view';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\nimport { injectElement, Transform } from '@odx/angular/utils';\nimport { BadgeVariant } from './models';\n\n@CSSComponent('badge')\n@Component({\n standalone: true,\n selector: 'odx-badge',\n imports: [DynamicViewDirective],\n template: '<ng-template [odxDynamicView]=\"value\"></ng-template>',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class BadgeComponent {\n public static readonly ngAcceptInputType_contrast: BooleanInput;\n\n public readonly element = injectElement();\n\n @Transform(coerceBooleanProperty)\n @CSSModifier()\n @Input()\n public contrast = false;\n\n @CSSModifier()\n @Input()\n public variant: BadgeVariant = BadgeVariant.HIGHLIGHT;\n\n @Input()\n public value?: DynamicTextContent | null;\n}\n","import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { Directive, inject, Input, OnChanges, OnDestroy } from '@angular/core';\nimport { ConnectedOverlayOptions, ConnectedOverlayRef, ConnectedOverlayService } from '@odx/angular/cdk/connected-overlay';\nimport { DynamicTextContent } from '@odx/angular/cdk/dynamic-view';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { getInjector, injectElement, isPresent, Position, Transform } from '@odx/angular/utils';\nimport { BadgeComponent } from './badge.component';\nimport { BadgeVariant } from './models';\n\nconst DEFAULT_BADGE_OVERLAY_OPTIONS: Partial<ConnectedOverlayOptions> = {\n content: BadgeComponent,\n enableFallback: false,\n offset: 0,\n containerClass: 'odx-badge-overlay',\n};\n\n@CSSComponent('badge-host')\n@Directive({\n selector: '[odxBadge]',\n standalone: true,\n})\nexport class BadgeDirective implements BadgeComponent, OnChanges, OnDestroy {\n public static ngAcceptInputType_contrast: BooleanInput;\n\n private readonly connectedOverlayService = inject(ConnectedOverlayService);\n private readonly injector = getInjector();\n private badgeRef: ConnectedOverlayRef | null = null;\n\n public readonly element = injectElement();\n\n @Input('odxBadge')\n public value?: DynamicTextContent | null = null;\n\n @Transform(coerceBooleanProperty)\n @Input('odxBadgeContrast')\n public contrast = false;\n\n @Input('odxBadgePosition')\n public position: Position = Position.BOTTOM_END;\n\n @Input('odxBadgeVariant')\n public variant!: BadgeVariant;\n\n public ngOnChanges(): void {\n if (isPresent(this.value)) {\n this.showBadge();\n } else {\n this.hideBadge();\n }\n this.updateBadge();\n }\n\n public ngOnDestroy(): void {\n this.hideBadge();\n }\n\n private showBadge(): void {\n this.badgeRef ??= this.connectedOverlayService.createOverlay(this.element.nativeElement, DEFAULT_BADGE_OVERLAY_OPTIONS, { injector: this.injector });\n }\n\n private hideBadge(): void {\n this.badgeRef?.close();\n this.badgeRef = null;\n }\n\n private updateBadge(): void {\n this.badgeRef?.update({\n context: { contrast: this.contrast, value: this.value, variant: this.variant },\n position: this.position,\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAEa,MAAA,YAAY,GAAG;AAC1B,IAAA,SAAS,EAAE,WAAW;AACtB,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,YAAY,EAAE,cAAc;;;ACWjB,IAAA,cAAc,GAApB,MAAM,cAAc,CAAA;AAApB,IAAA,WAAA,GAAA;QAGW,IAAO,CAAA,OAAA,GAAG,aAAa,EAAE,CAAC;QAKnC,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC;AAIjB,QAAA,IAAA,CAAA,OAAO,GAAiB,YAAY,CAAC,SAAS,CAAC;AAIvD,KAAA;;2GAhBY,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;+FAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,EAAA,QAAA,EAAA,UAAA,EAAA,OAAA,EAAA,SAAA,EAAA,KAAA,EAAA,OAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAJf,sDAAsD,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EADtD,oBAAoB,EAAA,QAAA,EAAA,6BAAA,EAAA,MAAA,EAAA,CAAA,gBAAA,EAAA,wBAAA,EAAA,uBAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;AAU9B,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,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,CAAA,UAAA,EAAA,OAAA,CAAA,EAAA,QAAA,EAAA,CAAA,kBAAA,EAAA,UAAA,CAAA,EAAA,QAAA,EAAA,CAAA,kBAAA,EAAA,UAAA,CAAA,EAAA,OAAA,EAAA,CAAA,iBAAA,EAAA,SAAA,CAAA,EAAA,EAAA,aAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;AAYzB,UAAA,CAAA;IAAC,SAAS,CAAC,qBAAqB,CAAC;;AAET,CAAA,EAAA,cAAA,CAAA,SAAA,EAAA,UAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAdb,cAAc,GAAA,UAAA,CAAA;IAL1B,YAAY,CAAC,YAAY,CAAC;AAKd,CAAA,EAAA,cAAc,CAkD1B,CAAA;2FAlDY,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,YAAY;AACtB,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA,CAAA;8BAWQ,KAAK,EAAA,CAAA;sBADX,KAAK;uBAAC,UAAU,CAAA;gBAKV,QAAQ,EAAA,CAAA;sBADd,KAAK;uBAAC,kBAAkB,CAAA;gBAIlB,QAAQ,EAAA,CAAA;sBADd,KAAK;uBAAC,kBAAkB,CAAA;gBAIlB,OAAO,EAAA,CAAA;sBADb,KAAK;uBAAC,iBAAiB,CAAA;;;ACxC1B;;AAEG;;;;"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { __decorate, __metadata } from 'tslib';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { Component, ViewEncapsulation, ChangeDetectionStrategy, Directive, Input, NgModule } from '@angular/core';
|
|
4
|
+
import { CSSComponent, CSSModifier } from '@odx/angular/internal';
|
|
5
|
+
import { injectElement } from '@odx/angular/utils';
|
|
6
|
+
import { DisabledController, CoreModule } from '@odx/angular';
|
|
7
|
+
|
|
8
|
+
let BarComponent = class BarComponent {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.element = injectElement();
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
BarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: BarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
14
|
+
BarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: BarComponent, isStandalone: true, selector: "odx-bar", ngImport: i0, template: "<ng-content select=\"button[odxBarButton], [odxBarLabel]\"></ng-content>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
15
|
+
BarComponent = __decorate([
|
|
16
|
+
CSSComponent('bar')
|
|
17
|
+
], BarComponent);
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: BarComponent, decorators: [{
|
|
19
|
+
type: Component,
|
|
20
|
+
args: [{ standalone: true, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, selector: 'odx-bar', template: "<ng-content select=\"button[odxBarButton], [odxBarLabel]\"></ng-content>\n" }]
|
|
21
|
+
}] });
|
|
22
|
+
|
|
23
|
+
const BarButtonVariant = {
|
|
24
|
+
DEFAULT: 'default',
|
|
25
|
+
SMALL: 'small',
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
let BarButtonDirective = class BarButtonDirective {
|
|
29
|
+
constructor() {
|
|
30
|
+
this.disabledController = DisabledController.inject();
|
|
31
|
+
this.element = injectElement();
|
|
32
|
+
this.variant = BarButtonVariant.DEFAULT;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
BarButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: BarButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
36
|
+
BarButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.8", type: BarButtonDirective, isStandalone: true, selector: "button[odxBarButton]", inputs: { variant: "variant" }, host: { properties: { "class.is-disabled": "disabledController?.disabled" } }, providers: [DisabledController.connect()], ngImport: i0 });
|
|
37
|
+
__decorate([
|
|
38
|
+
CSSModifier(),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], BarButtonDirective.prototype, "variant", void 0);
|
|
41
|
+
BarButtonDirective = __decorate([
|
|
42
|
+
CSSComponent('bar-button')
|
|
43
|
+
], BarButtonDirective);
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: BarButtonDirective, decorators: [{
|
|
45
|
+
type: Directive,
|
|
46
|
+
args: [{
|
|
47
|
+
selector: 'button[odxBarButton]',
|
|
48
|
+
standalone: true,
|
|
49
|
+
providers: [DisabledController.connect()],
|
|
50
|
+
host: {
|
|
51
|
+
'[class.is-disabled]': 'disabledController?.disabled',
|
|
52
|
+
},
|
|
53
|
+
}]
|
|
54
|
+
}], propDecorators: { variant: [{
|
|
55
|
+
type: Input
|
|
56
|
+
}] } });
|
|
57
|
+
|
|
58
|
+
let BarLabelDirective = class BarLabelDirective {
|
|
59
|
+
constructor() {
|
|
60
|
+
this.element = injectElement();
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
BarLabelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: BarLabelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
64
|
+
BarLabelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.8", type: BarLabelDirective, isStandalone: true, selector: "[odxBarLabel]", ngImport: i0 });
|
|
65
|
+
BarLabelDirective = __decorate([
|
|
66
|
+
CSSComponent('bar-label')
|
|
67
|
+
], BarLabelDirective);
|
|
68
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: BarLabelDirective, decorators: [{
|
|
69
|
+
type: Directive,
|
|
70
|
+
args: [{
|
|
71
|
+
selector: '[odxBarLabel]',
|
|
72
|
+
standalone: true,
|
|
73
|
+
}]
|
|
74
|
+
}] });
|
|
75
|
+
|
|
76
|
+
const modules = [BarComponent, BarButtonDirective, BarLabelDirective];
|
|
77
|
+
class BarModule {
|
|
78
|
+
}
|
|
79
|
+
BarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: BarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
80
|
+
BarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.8", ngImport: i0, type: BarModule, imports: [BarComponent, BarButtonDirective, BarLabelDirective], exports: [CoreModule, BarComponent, BarButtonDirective, BarLabelDirective] });
|
|
81
|
+
BarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: BarModule, imports: [BarComponent, CoreModule] });
|
|
82
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: BarModule, decorators: [{
|
|
83
|
+
type: NgModule,
|
|
84
|
+
args: [{
|
|
85
|
+
imports: modules,
|
|
86
|
+
exports: [CoreModule, ...modules],
|
|
87
|
+
}]
|
|
88
|
+
}] });
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Generated bundle index. Do not edit.
|
|
92
|
+
*/
|
|
93
|
+
|
|
94
|
+
export { BarButtonDirective, BarButtonVariant, BarComponent, BarLabelDirective, BarModule };
|
|
95
|
+
//# sourceMappingURL=odx-angular-components-bar.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"odx-angular-components-bar.mjs","sources":["../../../../libs/angular/components/bar/src/lib/bar.component.ts","../../../../libs/angular/components/bar/src/lib/bar.component.html","../../../../libs/angular/components/bar/src/lib/models/bar-button-variant.ts","../../../../libs/angular/components/bar/src/lib/directives/bar-button.directive.ts","../../../../libs/angular/components/bar/src/lib/directives/bar-label.directive.ts","../../../../libs/angular/components/bar/src/lib/bar.module.ts","../../../../libs/angular/components/bar/src/odx-angular-components-bar.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\n\n@CSSComponent('bar')\n@Component({\n standalone: true,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: 'bar.component.html',\n selector: 'odx-bar',\n})\nexport class BarComponent {\n public readonly element = injectElement();\n}\n","<ng-content select=\"button[odxBarButton], [odxBarLabel]\"></ng-content>\n","export type BarButtonVariant = typeof BarButtonVariant[keyof typeof BarButtonVariant];\n\nexport const BarButtonVariant = {\n DEFAULT: 'default',\n SMALL: 'small',\n} as const;\n","import { Directive, Input } from '@angular/core';\nimport { DisabledController } from '@odx/angular';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\nimport { BarButtonVariant } from '../models/bar-button-variant';\n\n@CSSComponent('bar-button')\n@Directive({\n selector: 'button[odxBarButton]',\n standalone: true,\n providers: [DisabledController.connect()],\n host: {\n '[class.is-disabled]': 'disabledController?.disabled',\n },\n})\nexport class BarButtonDirective {\n protected readonly disabledController = DisabledController.inject();\n public readonly element = injectElement();\n\n @CSSModifier()\n @Input()\n public variant?: BarButtonVariant | null = BarButtonVariant.DEFAULT;\n}\n","import { Directive } from '@angular/core';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\n\n@CSSComponent('bar-label')\n@Directive({\n selector: '[odxBarLabel]',\n standalone: true,\n})\nexport class BarLabelDirective {\n public readonly element = injectElement();\n}\n","import { NgModule } from '@angular/core';\nimport { CoreModule } from '@odx/angular';\nimport { BarComponent } from './bar.component';\nimport { BarButtonDirective } from './directives/bar-button.directive';\nimport { BarLabelDirective } from './directives/bar-label.directive';\n\nconst modules = [BarComponent, BarButtonDirective, BarLabelDirective];\n\n@NgModule({\n imports: modules,\n exports: [CoreModule, ...modules],\n})\nexport class BarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAYa,IAAA,YAAY,GAAlB,MAAM,YAAY,CAAA;AAAlB,IAAA,WAAA,GAAA;QACW,IAAO,CAAA,OAAA,GAAG,aAAa,EAAE,CAAC;AAC3C,KAAA;;yGAFY,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAZ,YAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAY,mECZzB,4EACA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;ADWa,YAAY,GAAA,UAAA,CAAA;IARxB,YAAY,CAAC,KAAK,CAAC;AAQP,CAAA,EAAA,YAAY,CAExB,CAAA;2FAFY,YAAY,EAAA,UAAA,EAAA,CAAA;kBAPxB,SAAS;iCACI,IAAI,EAAA,aAAA,EACD,iBAAiB,CAAC,IAAI,mBACpB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAErC,SAAS,EAAA,QAAA,EAAA,4EAAA,EAAA,CAAA;;;AERR,MAAA,gBAAgB,GAAG;AAC9B,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,KAAK,EAAE,OAAO;;;ACWH,IAAA,kBAAkB,GAAxB,MAA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AChB,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,GAAG,OAAO,CAAC;AAClC,iBAAA,CAAA;;;ACXD;;AAEG;;;;"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { __decorate } from 'tslib';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { inject, Renderer2, Component, ViewEncapsulation, ChangeDetectionStrategy, ContentChildren } from '@angular/core';
|
|
4
|
+
import { DynamicViewService } from '@odx/angular/cdk/dynamic-view';
|
|
5
|
+
import { IconComponent } from '@odx/angular/components/icon';
|
|
6
|
+
import { LinkDirective } from '@odx/angular/components/link';
|
|
7
|
+
import { CSSComponent } from '@odx/angular/internal';
|
|
8
|
+
import { fromQueryList } from '@odx/angular/rxjs';
|
|
9
|
+
import { untilDestroyed, injectElement } from '@odx/angular/utils';
|
|
10
|
+
|
|
11
|
+
let BreadcrumbsComponent = class BreadcrumbsComponent {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.renderer = inject(Renderer2);
|
|
14
|
+
this.destroyed = untilDestroyed();
|
|
15
|
+
this.dynamicViewService = inject(DynamicViewService);
|
|
16
|
+
this.icons = new Set();
|
|
17
|
+
this.element = injectElement();
|
|
18
|
+
}
|
|
19
|
+
ngAfterViewInit() {
|
|
20
|
+
fromQueryList(this.linkItems)
|
|
21
|
+
.pipe(this.destroyed())
|
|
22
|
+
.subscribe(() => this.addIcons());
|
|
23
|
+
}
|
|
24
|
+
addIcons() {
|
|
25
|
+
this.removeIcons();
|
|
26
|
+
this.linkItems.forEach((linkItem, index) => !!index && this.addIcon(linkItem.element.nativeElement));
|
|
27
|
+
}
|
|
28
|
+
addIcon(linkElement) {
|
|
29
|
+
const icon = this.dynamicViewService.createView(IconComponent, { context: { name: 'chevron-right' } });
|
|
30
|
+
this.renderer.insertBefore(this.element.nativeElement, icon.getElement(), linkElement);
|
|
31
|
+
this.icons.add(icon);
|
|
32
|
+
}
|
|
33
|
+
removeIcons() {
|
|
34
|
+
this.icons.forEach((icon) => icon.destroy());
|
|
35
|
+
this.icons.clear();
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
BreadcrumbsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: BreadcrumbsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
39
|
+
BreadcrumbsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: BreadcrumbsComponent, isStandalone: true, selector: "odx-breadcrumbs", queries: [{ propertyName: "linkItems", predicate: LinkDirective }], ngImport: i0, template: "<ng-content select=\"[odxLink]\"></ng-content>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
40
|
+
BreadcrumbsComponent = __decorate([
|
|
41
|
+
CSSComponent('breadcrumbs')
|
|
42
|
+
], BreadcrumbsComponent);
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: BreadcrumbsComponent, decorators: [{
|
|
44
|
+
type: Component,
|
|
45
|
+
args: [{ selector: 'odx-breadcrumbs', standalone: true, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content select=\"[odxLink]\"></ng-content>\n" }]
|
|
46
|
+
}], propDecorators: { linkItems: [{
|
|
47
|
+
type: ContentChildren,
|
|
48
|
+
args: [LinkDirective]
|
|
49
|
+
}] } });
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Generated bundle index. Do not edit.
|
|
53
|
+
*/
|
|
54
|
+
|
|
55
|
+
export { BreadcrumbsComponent };
|
|
56
|
+
//# sourceMappingURL=odx-angular-components-breadcrumbs.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"odx-angular-components-breadcrumbs.mjs","sources":["../../../../libs/angular/components/breadcrumbs/src/lib/breadcrumbs.component.ts","../../../../libs/angular/components/breadcrumbs/src/lib/breadcrumbs.component.html","../../../../libs/angular/components/breadcrumbs/src/odx-angular-components-breadcrumbs.ts"],"sourcesContent":["import { AfterViewInit, ChangeDetectionStrategy, Component, ContentChildren, inject, QueryList, Renderer2, ViewEncapsulation } from '@angular/core';\nimport { DynamicViewRef, DynamicViewService } from '@odx/angular/cdk/dynamic-view';\nimport { IconComponent } from '@odx/angular/components/icon';\nimport { LinkDirective } from '@odx/angular/components/link';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { fromQueryList } from '@odx/angular/rxjs';\nimport { injectElement, untilDestroyed } from '@odx/angular/utils';\n\n@CSSComponent('breadcrumbs')\n@Component({\n selector: 'odx-breadcrumbs',\n standalone: true,\n templateUrl: './breadcrumbs.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BreadcrumbsComponent implements AfterViewInit {\n private readonly renderer = inject(Renderer2);\n private readonly destroyed = untilDestroyed();\n private readonly dynamicViewService = inject(DynamicViewService);\n private readonly icons = new Set<DynamicViewRef<typeof IconComponent>>();\n\n @ContentChildren(LinkDirective)\n protected readonly linkItems!: QueryList<LinkDirective>;\n\n public readonly element = injectElement();\n\n public ngAfterViewInit(): void {\n fromQueryList(this.linkItems)\n .pipe(this.destroyed())\n .subscribe(() => this.addIcons());\n }\n\n private addIcons(): void {\n this.removeIcons();\n this.linkItems.forEach((linkItem, index) => !!index && this.addIcon(linkItem.element.nativeElement));\n }\n\n private addIcon(linkElement: HTMLElement): void {\n const icon = this.dynamicViewService.createView(IconComponent, { context: { name: 'chevron-right' } });\n this.renderer.insertBefore(this.element.nativeElement, icon.getElement(), linkElement);\n this.icons.add(icon);\n }\n\n private removeIcons(): void {\n this.icons.forEach((icon) => icon.destroy());\n this.icons.clear();\n }\n}\n","<ng-content select=\"[odxLink]\"></ng-content>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAgBa,IAAA,oBAAoB,G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AC,CAAC,IAAI,KAAK,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;AAC7C,QAAA,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;KACpB;;iHA/BU,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;qGAApB,oBAAoB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,CAAA,EAAA,YAAA,EAAA,WAAA,EAAA,SAAA,EAMd,aAAa,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECtBhC,kDACA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;ADea,oBAAoB,GAAA,UAAA,CAAA;IARhC,YAAY,CAAC,aAAa,CAAC;AAQf,CAAA,EAAA,oBAAoB,CAgChC,CAAA;2FAhCY,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAPhC,SAAS;+BACE,iBAAiB,EAAA,UAAA,EACf,IAAI,EAED,aAAA,EAAA,iBAAiB,CAAC,IAAI,EAAA,eAAA,EACpB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,kDAAA,EAAA,CAAA;8BAS5B,SAAS,EAAA,CAAA;sBAD3B,eAAe;uBAAC,aAAa,CAAA;;;AEtBhC;;AAEG;;;;"}
|
|
@@ -14,8 +14,8 @@ let ButtonGroupComponent = class ButtonGroupComponent {
|
|
|
14
14
|
this.reverse = false;
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
|
-
ButtonGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
18
|
-
ButtonGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
17
|
+
ButtonGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ButtonGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
18
|
+
ButtonGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: ButtonGroupComponent, isStandalone: true, selector: "odx-button-group", inputs: { alignRight: "alignRight", block: "block", vertical: "vertical", reverse: "reverse" }, ngImport: i0, template: "<ng-content select=\"button[odxButton], a[odxButton]\"></ng-content>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
19
19
|
__decorate([
|
|
20
20
|
CSSModifier(),
|
|
21
21
|
Transform(coerceBooleanProperty),
|
|
@@ -39,7 +39,7 @@ __decorate([
|
|
|
39
39
|
ButtonGroupComponent = __decorate([
|
|
40
40
|
CSSComponent('button-group')
|
|
41
41
|
], ButtonGroupComponent);
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ButtonGroupComponent, decorators: [{
|
|
43
43
|
type: Component,
|
|
44
44
|
args: [{ standalone: true, selector: 'odx-button-group', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content select=\"button[odxButton], a[odxButton]\"></ng-content>\n" }]
|
|
45
45
|
}], propDecorators: { alignRight: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"odx-angular-components-button-group.mjs","sources":["../../../../libs/angular/components/button-group/src/lib/button-group.component.ts","../../../../libs/angular/components/button-group/src/lib/button-group.component.html","../../../../libs/angular/components/button-group/src/odx-angular-components-button-group.ts"],"sourcesContent":["import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\nimport { injectElement, Transform } from '@odx/angular/utils';\n\n@CSSComponent('button-group')\n@Component({\n standalone: true,\n selector: 'odx-button-group',\n templateUrl: './button-group.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ButtonGroupComponent {\n public static ngAcceptInputType_reverse: BooleanInput;\n public static ngAcceptInputType_block: BooleanInput;\n public static ngAcceptInputType_alignRight: BooleanInput;\n public static ngAcceptInputType_vertical: BooleanInput;\n\n public readonly element = injectElement();\n\n @CSSModifier()\n @Transform(coerceBooleanProperty)\n @Input()\n public alignRight = false;\n\n @CSSModifier()\n @Transform(coerceBooleanProperty)\n @Input()\n public block = false;\n\n @CSSModifier()\n @Transform(coerceBooleanProperty)\n @Input()\n public vertical = false;\n\n @CSSModifier()\n @Transform(coerceBooleanProperty)\n @Input()\n public reverse = false;\n}\n","<ng-content select=\"button[odxButton], a[odxButton]\"></ng-content>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAaa,IAAA,oBAAoB,GAA1B,MAAM,oBAAoB,CAAA;AAA1B,IAAA,WAAA,GAAA;QAMW,IAAO,CAAA,OAAA,GAAG,aAAa,EAAE,CAAC;QAKnC,IAAU,CAAA,UAAA,GAAG,KAAK,CAAC;QAKnB,IAAK,CAAA,KAAA,GAAG,KAAK,CAAC;QAKd,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC;QAKjB,IAAO,CAAA,OAAA,GAAG,KAAK,CAAC;AACxB,KAAA;;
|
|
1
|
+
{"version":3,"file":"odx-angular-components-button-group.mjs","sources":["../../../../libs/angular/components/button-group/src/lib/button-group.component.ts","../../../../libs/angular/components/button-group/src/lib/button-group.component.html","../../../../libs/angular/components/button-group/src/odx-angular-components-button-group.ts"],"sourcesContent":["import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\nimport { injectElement, Transform } from '@odx/angular/utils';\n\n@CSSComponent('button-group')\n@Component({\n standalone: true,\n selector: 'odx-button-group',\n templateUrl: './button-group.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ButtonGroupComponent {\n public static ngAcceptInputType_reverse: BooleanInput;\n public static ngAcceptInputType_block: BooleanInput;\n public static ngAcceptInputType_alignRight: BooleanInput;\n public static ngAcceptInputType_vertical: BooleanInput;\n\n public readonly element = injectElement();\n\n @CSSModifier()\n @Transform(coerceBooleanProperty)\n @Input()\n public alignRight = false;\n\n @CSSModifier()\n @Transform(coerceBooleanProperty)\n @Input()\n public block = false;\n\n @CSSModifier()\n @Transform(coerceBooleanProperty)\n @Input()\n public vertical = false;\n\n @CSSModifier()\n @Transform(coerceBooleanProperty)\n @Input()\n public reverse = false;\n}\n","<ng-content select=\"button[odxButton], a[odxButton]\"></ng-content>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAaa,IAAA,oBAAoB,GAA1B,MAAM,oBAAoB,CAAA;AAA1B,IAAA,WAAA,GAAA;QAMW,IAAO,CAAA,OAAA,GAAG,aAAa,EAAE,CAAC;QAKnC,IAAU,CAAA,UAAA,GAAG,KAAK,CAAC;QAKnB,IAAK,CAAA,KAAA,GAAG,KAAK,CAAC;QAKd,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC;QAKjB,IAAO,CAAA,OAAA,GAAG,KAAK,CAAC;AACxB,KAAA;;iHA3BY,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAApB,oBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,oBAAoB,4KCbjC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
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { __decorate, __metadata } from 'tslib';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { Component, ViewEncapsulation, ChangeDetectionStrategy, Input } from '@angular/core';
|
|
4
|
-
import
|
|
3
|
+
import { Component, ViewEncapsulation, ChangeDetectionStrategy, Input, Directive } from '@angular/core';
|
|
4
|
+
import * as i1 from '@odx/angular';
|
|
5
|
+
import { WithDisabledState } from '@odx/angular';
|
|
5
6
|
import { CSSModifier, CSSComponent } from '@odx/angular/internal';
|
|
6
7
|
import { injectElement } from '@odx/angular/utils';
|
|
7
8
|
|
|
@@ -22,36 +23,29 @@ const ButtonVariant = {
|
|
|
22
23
|
|
|
23
24
|
let ButtonComponent = class ButtonComponent {
|
|
24
25
|
constructor() {
|
|
25
|
-
this.disabledController = DisabledController.inject();
|
|
26
26
|
this.element = injectElement();
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
this.type = this.element.nativeElement.getAttribute('type');
|
|
28
|
+
this.variant = ButtonVariant.SECONDARY;
|
|
29
|
+
this.size = ButtonSize.MEDIUM;
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
-
ButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
33
|
-
ButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
32
|
+
ButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
33
|
+
ButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: ButtonComponent, isStandalone: true, selector: "button[odxButton], a[odxButton]", inputs: { variant: "variant", size: "size" }, host: { properties: { "attr.type": "type || \"button\"" } }, hostDirectives: [{ directive: i1.WithDisabledState }], ngImport: i0, template: "<ng-content select=\"odx-icon[alignLeft]\"></ng-content>\n<ng-content></ng-content>\n<ng-content select=\"odx-icon[alignRight]\"></ng-content>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
34
34
|
__decorate([
|
|
35
|
-
CSSModifier(
|
|
36
|
-
default: ButtonVariant.SECONDARY,
|
|
37
|
-
}),
|
|
35
|
+
CSSModifier(),
|
|
38
36
|
__metadata("design:type", Object)
|
|
39
37
|
], ButtonComponent.prototype, "variant", void 0);
|
|
40
38
|
__decorate([
|
|
41
|
-
CSSModifier(
|
|
42
|
-
default: ButtonSize.MEDIUM,
|
|
43
|
-
}),
|
|
39
|
+
CSSModifier(),
|
|
44
40
|
__metadata("design:type", Object)
|
|
45
41
|
], ButtonComponent.prototype, "size", void 0);
|
|
46
42
|
ButtonComponent = __decorate([
|
|
47
43
|
CSSComponent('button')
|
|
48
44
|
], ButtonComponent);
|
|
49
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
50
46
|
type: Component,
|
|
51
|
-
args: [{ standalone: true, selector: 'button[odxButton], a[odxButton]', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush,
|
|
52
|
-
'[class.is-disabled]': 'disabledController?.disabled',
|
|
47
|
+
args: [{ standalone: true, selector: 'button[odxButton], a[odxButton]', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [WithDisabledState], host: {
|
|
53
48
|
'[attr.type]': 'type || "button"',
|
|
54
|
-
'[attr.role]': '"button"',
|
|
55
49
|
}, template: "<ng-content select=\"odx-icon[alignLeft]\"></ng-content>\n<ng-content></ng-content>\n<ng-content select=\"odx-icon[alignRight]\"></ng-content>\n" }]
|
|
56
50
|
}], propDecorators: { variant: [{
|
|
57
51
|
type: Input
|
|
@@ -59,9 +53,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
59
53
|
type: Input
|
|
60
54
|
}] } });
|
|
61
55
|
|
|
56
|
+
class ResponsiveButtonDirective {
|
|
57
|
+
constructor() {
|
|
58
|
+
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
59
|
+
this.breakpoint = null;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
ResponsiveButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ResponsiveButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
63
|
+
ResponsiveButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.8", type: ResponsiveButtonDirective, isStandalone: true, selector: "[odxButton][odxResponsiveButton]", inputs: { breakpoint: ["odxResponsiveButton", "breakpoint"] }, host: { properties: { "attr.data-breakpoint": "breakpoint" } }, ngImport: i0 });
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ResponsiveButtonDirective, decorators: [{
|
|
65
|
+
type: Directive,
|
|
66
|
+
args: [{
|
|
67
|
+
standalone: true,
|
|
68
|
+
selector: '[odxButton][odxResponsiveButton]',
|
|
69
|
+
host: {
|
|
70
|
+
'[attr.data-breakpoint]': 'breakpoint',
|
|
71
|
+
},
|
|
72
|
+
}]
|
|
73
|
+
}], propDecorators: { breakpoint: [{
|
|
74
|
+
type: Input,
|
|
75
|
+
args: ['odxResponsiveButton']
|
|
76
|
+
}] } });
|
|
77
|
+
|
|
62
78
|
/**
|
|
63
79
|
* Generated bundle index. Do not edit.
|
|
64
80
|
*/
|
|
65
81
|
|
|
66
|
-
export { ButtonComponent, ButtonSize, ButtonVariant };
|
|
82
|
+
export { ButtonComponent, ButtonSize, ButtonVariant, ResponsiveButtonDirective };
|
|
67
83
|
//# sourceMappingURL=odx-angular-components-button.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"odx-angular-components-button.mjs","sources":["../../../../libs/angular/components/button/src/lib/models/button-size.ts","../../../../libs/angular/components/button/src/lib/models/button-variant.ts","../../../../libs/angular/components/button/src/lib/button.component.ts","../../../../libs/angular/components/button/src/lib/button.component.html","../../../../libs/angular/components/button/src/odx-angular-components-button.ts"],"sourcesContent":["export type ButtonSize = typeof ButtonSize[keyof typeof ButtonSize];\n\nexport const ButtonSize = {\n SMALL: 'small',\n MEDIUM: 'medium',\n} as const;\n","export type ButtonVariant = typeof ButtonVariant[keyof typeof ButtonVariant];\n\nexport const ButtonVariant = {\n PRIMARY: 'primary',\n SECONDARY: 'secondary',\n GHOST: 'ghost',\n HIGHLIGHT: 'highlight',\n SUCCESS: 'success',\n CONFIRMATION: 'confirmation',\n DANGER: 'danger',\n} as const;\n","import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core';\nimport {
|
|
1
|
+
{"version":3,"file":"odx-angular-components-button.mjs","sources":["../../../../libs/angular/components/button/src/lib/models/button-size.ts","../../../../libs/angular/components/button/src/lib/models/button-variant.ts","../../../../libs/angular/components/button/src/lib/button.component.ts","../../../../libs/angular/components/button/src/lib/button.component.html","../../../../libs/angular/components/button/src/lib/directives/responsive-button.directive.ts","../../../../libs/angular/components/button/src/odx-angular-components-button.ts"],"sourcesContent":["export type ButtonSize = typeof ButtonSize[keyof typeof ButtonSize];\n\nexport const ButtonSize = {\n SMALL: 'small',\n MEDIUM: 'medium',\n} as const;\n","export type ButtonVariant = typeof ButtonVariant[keyof typeof ButtonVariant];\n\nexport const ButtonVariant = {\n PRIMARY: 'primary',\n SECONDARY: 'secondary',\n GHOST: 'ghost',\n HIGHLIGHT: 'highlight',\n SUCCESS: 'success',\n CONFIRMATION: 'confirmation',\n DANGER: 'danger',\n} as const;\n","import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core';\nimport { WithDisabledState } from '@odx/angular';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\nimport { ButtonSize, ButtonVariant } from './models';\n\n@CSSComponent('button')\n@Component({\n standalone: true,\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'button[odxButton], a[odxButton]',\n templateUrl: './button.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [WithDisabledState],\n host: {\n '[attr.type]': 'type || \"button\"',\n },\n})\nexport class ButtonComponent {\n public readonly element = injectElement<HTMLButtonElement | HTMLLinkElement>();\n public readonly type = this.element.nativeElement.getAttribute('type');\n\n @CSSModifier()\n @Input()\n public variant?: ButtonVariant | null = ButtonVariant.SECONDARY;\n\n @CSSModifier()\n @Input()\n public size?: ButtonSize | null = ButtonSize.MEDIUM;\n}\n","<ng-content select=\"odx-icon[alignLeft]\"></ng-content>\n<ng-content></ng-content>\n<ng-content select=\"odx-icon[alignRight]\"></ng-content>\n","import { Directive, Input } from '@angular/core';\n\n@Directive({\n standalone: true,\n selector: '[odxButton][odxResponsiveButton]',\n host: {\n '[attr.data-breakpoint]': 'breakpoint',\n },\n})\nexport class ResponsiveButtonDirective {\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('odxResponsiveButton')\n public breakpoint: string | null = null;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAEa,MAAA,UAAU,GAAG;AACxB,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,MAAM,EAAE,QAAQ;;;ACFL,MAAA,aAAa,GAAG;AAC3B,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,SAAS,EAAE,WAAW;AACtB,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,SAAS,EAAE,WAAW;AACtB,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,YAAY,EAAE,cAAc;AAC5B,IAAA,MAAM,EAAE,QAAQ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