@daffodil/design 0.75.0 → 0.77.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/article/src/article-theme.scss +18 -8
- package/breadcrumb/README.md +52 -0
- package/breadcrumb/breadcrumb/breadcrumb.component.d.ts +7 -0
- package/breadcrumb/breadcrumb-item/breadcrumb-item.directive.d.ts +9 -0
- package/breadcrumb/breadcrumb.d.ts +3 -0
- package/breadcrumb/breadcrumb.module.d.ts +9 -0
- package/breadcrumb/examples/basic-breadcrumb/basic-breadcrumb.component.d.ts +5 -0
- package/breadcrumb/examples/index.d.ts +1 -0
- package/breadcrumb/examples/public_api.d.ts +2 -0
- package/breadcrumb/index.d.ts +1 -0
- package/breadcrumb/public_api.d.ts +4 -0
- package/breadcrumb/src/breadcrumb-theme.scss +13 -0
- package/core/article-encapsulated/article-encapsulated.directive.d.ts +17 -5
- package/core/colorable/colorable.directive.d.ts +29 -2
- package/core/compactable/compactable.directive.d.ts +31 -2
- package/core/manage-container-layout/manage-container-layout.directive.d.ts +38 -1
- package/core/sizable/sizable.directive.d.ts +46 -3
- package/core/skeletonable/skeletonable.directive.d.ts +36 -3
- package/core/statusable/statusable.directive.d.ts +33 -6
- package/core/text-alignable/text-alignable.directive.d.ts +35 -4
- package/esm2022/accordion/accordion/accordion/accordion.component.mjs +4 -4
- package/esm2022/accordion/accordion/accordion-item/accordion-item.component.mjs +4 -4
- package/esm2022/accordion/accordion/accordion-item-title/accordion-item-title.directive.mjs +4 -4
- package/esm2022/accordion/accordion/animation/accordion-animation-state.mjs +1 -1
- package/esm2022/accordion/accordion.module.mjs +5 -5
- package/esm2022/accordion/examples/accordion-examples.module.mjs +5 -5
- package/esm2022/accordion/examples/basic-accordion/basic-accordion.component.mjs +4 -4
- package/esm2022/article/article/article.component.mjs +5 -5
- package/esm2022/article/article-meta/article-meta.directive.mjs +4 -4
- package/esm2022/article/article.module.mjs +5 -5
- package/esm2022/article/examples/article-blockquote/article-blockquote.component.mjs +4 -4
- package/esm2022/article/examples/article-code-block/article-code-block.component.mjs +4 -4
- package/esm2022/article/examples/article-code-inline/article-code-inline.component.mjs +4 -4
- package/esm2022/article/examples/article-headings/article-headings.component.mjs +4 -4
- package/esm2022/article/examples/article-hr/article-hr.component.mjs +4 -4
- package/esm2022/article/examples/article-link/article-link.component.mjs +4 -4
- package/esm2022/article/examples/article-meta/article-meta.component.mjs +4 -4
- package/esm2022/article/examples/article-ol/article-ol.component.mjs +4 -4
- package/esm2022/article/examples/article-table/article-table.component.mjs +4 -4
- package/esm2022/article/examples/article-ul/article-ul.component.mjs +4 -4
- package/esm2022/atoms/form/checkbox/checkbox.component.mjs +4 -4
- package/esm2022/atoms/form/checkbox/checkbox.module.mjs +5 -5
- package/esm2022/atoms/form/checkbox/cva/checkbox-cva.directive.mjs +4 -4
- package/esm2022/atoms/form/checkbox-set/checkbox-set.component.mjs +4 -4
- package/esm2022/atoms/form/error-message/error-message.component.mjs +4 -4
- package/esm2022/atoms/form/error-message/error-message.module.mjs +5 -5
- package/esm2022/atoms/form/form-field/form-field/form-field.component.mjs +4 -4
- package/esm2022/atoms/form/form-field/form-field.module.mjs +5 -5
- package/esm2022/atoms/form/form-label/form-label.directive.mjs +4 -4
- package/esm2022/atoms/form/form-label/form-label.module.mjs +5 -5
- package/esm2022/atoms/form/input/input.component.mjs +4 -4
- package/esm2022/atoms/form/input/input.module.mjs +5 -5
- package/esm2022/atoms/form/native-select/native-select.component.mjs +4 -4
- package/esm2022/atoms/form/native-select/native-select.module.mjs +5 -5
- package/esm2022/atoms/form/quantity-field/quantity-field.component.mjs +4 -4
- package/esm2022/atoms/form/quantity-field/quantity-field.module.mjs +5 -5
- package/esm2022/atoms/form/quantity-field/quantity-input/quantity-input.component.mjs +4 -4
- package/esm2022/atoms/form/quantity-field/quantity-select/quantity-select.component.mjs +4 -4
- package/esm2022/atoms/form/radio/cva/radio-cva.directive.mjs +4 -4
- package/esm2022/atoms/form/radio/radio.component.mjs +4 -4
- package/esm2022/atoms/form/radio/radio.module.mjs +5 -5
- package/esm2022/atoms/form/radio/registry/radio-registry.mjs +4 -4
- package/esm2022/atoms/form/radio-set/radio-set.component.mjs +4 -4
- package/esm2022/breadcrumb/breadcrumb/breadcrumb.component.mjs +25 -0
- package/esm2022/breadcrumb/breadcrumb-item/breadcrumb-item.directive.mjs +33 -0
- package/esm2022/breadcrumb/breadcrumb.mjs +7 -0
- package/esm2022/breadcrumb/breadcrumb.module.mjs +26 -0
- package/esm2022/breadcrumb/daffodil-design-breadcrumb.mjs +5 -0
- package/esm2022/breadcrumb/examples/basic-breadcrumb/basic-breadcrumb.component.mjs +15 -0
- package/esm2022/breadcrumb/examples/daffodil-design-breadcrumb-examples.mjs +5 -0
- package/esm2022/breadcrumb/examples/index.mjs +2 -0
- package/esm2022/breadcrumb/examples/public_api.mjs +5 -0
- package/esm2022/breadcrumb/index.mjs +2 -0
- package/esm2022/breadcrumb/public_api.mjs +5 -0
- package/esm2022/button/button/button-sizable.directive.mjs +4 -4
- package/esm2022/button/button/button.component.mjs +4 -4
- package/esm2022/button/button.module.mjs +5 -5
- package/esm2022/button/examples/basic-button/basic-button.component.mjs +4 -4
- package/esm2022/button/examples/flat-button/flat-button.component.mjs +4 -4
- package/esm2022/button/examples/icon-button/icon-button.component.mjs +4 -4
- package/esm2022/button/examples/raised-button/raised-button.component.mjs +4 -4
- package/esm2022/button/examples/sizeable-button/sizeable-button.component.mjs +4 -4
- package/esm2022/button/examples/statusable-button/statusable-button.component.mjs +4 -4
- package/esm2022/button/examples/stroked-button/stroked-button.component.mjs +4 -4
- package/esm2022/button/examples/underline-button/underline-button.component.mjs +4 -4
- package/esm2022/callout/callout/callout.component.mjs +4 -4
- package/esm2022/callout/callout-body/callout-body.directive.mjs +4 -4
- package/esm2022/callout/callout-icon/callout-icon.directive.mjs +4 -4
- package/esm2022/callout/callout-subtitle/callout-subtitle.directive.mjs +4 -4
- package/esm2022/callout/callout-tagline/callout-tagline.directive.mjs +4 -4
- package/esm2022/callout/callout-title/callout-title.directive.mjs +4 -4
- package/esm2022/callout/callout.module.mjs +5 -5
- package/esm2022/callout/examples/callout-text-alignment/callout-text-alignment.component.mjs +4 -4
- package/esm2022/callout/examples/callout-theming/callout-theming.component.mjs +4 -4
- package/esm2022/callout/examples/callout-with-grid/callout-with-grid.component.mjs +4 -4
- package/esm2022/callout/examples/compact-callout/compact-callout.component.mjs +4 -4
- package/esm2022/card/card/card.component.mjs +4 -4
- package/esm2022/card/card-actions/card-actions.directive.mjs +4 -4
- package/esm2022/card/card-content/card-content.directive.mjs +4 -4
- package/esm2022/card/card-icon/card-icon.directive.mjs +4 -4
- package/esm2022/card/card-image/card-image.directive.mjs +4 -4
- package/esm2022/card/card-tagline/card-tagline.directive.mjs +4 -4
- package/esm2022/card/card-title/card-title.directive.mjs +4 -4
- package/esm2022/card/card.module.mjs +5 -5
- package/esm2022/card/examples/basic-card/basic-card.component.mjs +4 -4
- package/esm2022/card/examples/card-orientation/card-orientation.component.mjs +4 -4
- package/esm2022/card/examples/card-theming/card-theming.component.mjs +4 -4
- package/esm2022/card/examples/linkable-card/linkable-card.component.mjs +4 -4
- package/esm2022/card/examples/raised-card/raised-card.component.mjs +4 -4
- package/esm2022/card/examples/stroked-card/stroked-card.component.mjs +4 -4
- package/esm2022/checkbox/examples/basic-checkbox/basic-checkbox.component.mjs +4 -4
- package/esm2022/checkbox/examples/checkbox-set/checkbox-set.component.mjs +4 -4
- package/esm2022/container/container/container.component.mjs +4 -4
- package/esm2022/container/container.module.mjs +5 -5
- package/esm2022/container/examples/container-sizes/container-sizes.component.mjs +4 -4
- package/esm2022/core/article-encapsulated/article-encapsulated.directive.mjs +21 -9
- package/esm2022/core/breakpoints/noop.service.mjs +4 -4
- package/esm2022/core/colorable/colorable.directive.mjs +33 -6
- package/esm2022/core/compactable/compactable.directive.mjs +35 -6
- package/esm2022/core/focus/stack.service.mjs +4 -4
- package/esm2022/core/manage-container-layout/manage-container-layout.directive.mjs +42 -5
- package/esm2022/core/prefix-suffix/prefix-suffix.module.mjs +5 -5
- package/esm2022/core/prefix-suffix/prefix.directive.mjs +4 -4
- package/esm2022/core/prefix-suffix/prefixable/prefixable.mjs +4 -4
- package/esm2022/core/prefix-suffix/suffix.directive.mjs +4 -4
- package/esm2022/core/prefix-suffix/suffixable/suffixable.mjs +4 -4
- package/esm2022/core/sizable/sizable.directive.mjs +50 -7
- package/esm2022/core/skeletonable/skeletonable.directive.mjs +40 -7
- package/esm2022/core/statusable/statusable.directive.mjs +37 -10
- package/esm2022/core/text-alignable/text-alignable.directive.mjs +39 -8
- package/esm2022/core/theming/functions/computer.mjs +1 -1
- package/esm2022/core/theming/services/class-setter/theme-class-setter.service.mjs +4 -4
- package/esm2022/core/theming/services/os-theme/ostheme.service.mjs +4 -4
- package/esm2022/core/theming/services/storage/theme-storage.service.mjs +4 -4
- package/esm2022/core/theming/services/theming.service.mjs +4 -4
- package/esm2022/hero/examples/compact-hero/compact-hero.component.mjs +4 -4
- package/esm2022/hero/examples/hero-text-alignment/hero-text-alignment.component.mjs +4 -4
- package/esm2022/hero/examples/hero-theming/hero-theming.component.mjs +4 -4
- package/esm2022/hero/examples/hero-with-grid/hero-with-grid.component.mjs +4 -4
- package/esm2022/hero/hero/hero.component.mjs +4 -4
- package/esm2022/hero/hero-body/hero-body.directive.mjs +4 -4
- package/esm2022/hero/hero-icon/hero-icon.directive.mjs +4 -4
- package/esm2022/hero/hero-subtitle/hero-subtitle.directive.mjs +4 -4
- package/esm2022/hero/hero-tagline/hero-tagline.directive.mjs +4 -4
- package/esm2022/hero/hero-title/hero-title.directive.mjs +4 -4
- package/esm2022/hero/hero.module.mjs +5 -5
- package/esm2022/image/examples/basic-image/basic-image.component.mjs +4 -4
- package/esm2022/image/examples/load-image/load-image.component.mjs +4 -4
- package/esm2022/image/examples/skeleton-image/skeleton-image.component.mjs +4 -4
- package/esm2022/image/image/image.component.mjs +4 -4
- package/esm2022/image/image.module.mjs +5 -5
- package/esm2022/input/examples/basic-input/basic-input.component.mjs +4 -4
- package/esm2022/input/examples/input-disabled/input-disabled.component.mjs +4 -4
- package/esm2022/input/examples/input-error/input-error.component.mjs +4 -4
- package/esm2022/input/examples/input-with-form-field/input-with-form-field.component.mjs +4 -4
- package/esm2022/link-set/link-set/link-set.component.mjs +4 -4
- package/esm2022/link-set/link-set-heading/link-set-heading.directive.mjs +4 -4
- package/esm2022/link-set/link-set-item/link-set-item.component.mjs +4 -4
- package/esm2022/link-set/link-set-subheading/link-set-subheading.directive.mjs +4 -4
- package/esm2022/link-set/link-set.module.mjs +5 -5
- package/esm2022/list/examples/basic-list/basic-list.component.mjs +4 -4
- package/esm2022/list/examples/icon-list/icon-list.component.mjs +4 -4
- package/esm2022/list/examples/multiline-list/multiline-list.component.mjs +4 -4
- package/esm2022/list/examples/nav-list/nav-list.component.mjs +4 -4
- package/esm2022/list/list/list.component.mjs +4 -4
- package/esm2022/list/list-item/list-item.component.mjs +4 -4
- package/esm2022/list/list.module.mjs +5 -5
- package/esm2022/loading-icon/examples/loading-icon-color/loading-icon-color.component.mjs +4 -4
- package/esm2022/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.component.mjs +4 -4
- package/esm2022/loading-icon/loading-icon/loading-icon.component.mjs +4 -4
- package/esm2022/loading-icon/loading-icon.module.mjs +5 -5
- package/esm2022/media-gallery/examples/basic-media-gallery/basic-media-gallery.component.mjs +4 -4
- package/esm2022/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.component.mjs +4 -4
- package/esm2022/media-gallery/examples/skeleton-media-gallery/skeleton-media-gallery.component.mjs +4 -4
- package/esm2022/media-gallery/media-gallery/media-gallery.component.mjs +4 -4
- package/esm2022/media-gallery/media-gallery.module.mjs +5 -5
- package/esm2022/media-gallery/media-renderer/media-renderer.component.mjs +4 -4
- package/esm2022/media-gallery/registry/media-gallery.registry.mjs +4 -4
- package/esm2022/media-gallery/thumbnail/thumbnail.directive.mjs +4 -4
- package/esm2022/menu/examples/basic-menu/basic-menu.component.mjs +4 -4
- package/esm2022/menu/examples/basic-menu/menu-content/menu-content.component.mjs +4 -4
- package/esm2022/menu/menu/menu.component.mjs +4 -4
- package/esm2022/menu/menu-activator/menu-activator.component.mjs +4 -4
- package/esm2022/menu/menu-item/menu-item.component.mjs +4 -4
- package/esm2022/menu/menu.module.mjs +5 -5
- package/esm2022/menu/services/menu.service.mjs +4 -4
- package/esm2022/modal/examples/basic-modal/basic-modal.component.mjs +5 -5
- package/esm2022/modal/examples/basic-modal/modal-content.component.mjs +4 -4
- package/esm2022/modal/modal/modal-config.mjs +1 -1
- package/esm2022/modal/modal/modal.component.mjs +4 -4
- package/esm2022/modal/modal-actions/modal-actions.component.mjs +4 -4
- package/esm2022/modal/modal-close/modal-close.directive.mjs +4 -4
- package/esm2022/modal/modal-content/modal-content.component.mjs +4 -4
- package/esm2022/modal/modal-header/modal-header.component.mjs +4 -4
- package/esm2022/modal/modal-title/modal-title.directive.mjs +4 -4
- package/esm2022/modal/modal.module.mjs +5 -5
- package/esm2022/modal/service/modal.service.mjs +7 -4
- package/esm2022/navbar/examples/basic-navbar/basic-navbar.component.mjs +4 -4
- package/esm2022/navbar/examples/contained-navbar/contained-navbar.component.mjs +4 -4
- package/esm2022/navbar/examples/navbar-theming/navbar-theming.component.mjs +4 -4
- package/esm2022/navbar/examples/raised-navbar/raised-navbar.component.mjs +4 -4
- package/esm2022/navbar/navbar/navbar.component.mjs +4 -4
- package/esm2022/navbar/navbar.module.mjs +5 -5
- package/esm2022/notification/examples/default-notification/default-notification.component.mjs +4 -4
- package/esm2022/notification/examples/dismissible-notification/dismissible-notification.component.mjs +4 -4
- package/esm2022/notification/examples/notification-orientations/notification-orientations.component.mjs +4 -4
- package/esm2022/notification/examples/notification-status/notification-status.component.mjs +4 -4
- package/esm2022/notification/examples/notification-with-actions/notification-with-actions.component.mjs +4 -4
- package/esm2022/notification/notification/notification.component.mjs +4 -4
- package/esm2022/notification/notification-actions/notification-actions.directive.mjs +4 -4
- package/esm2022/notification/notification-message/notification-message.directive.mjs +4 -4
- package/esm2022/notification/notification-subtitle/notification-subtitle.directive.mjs +4 -4
- package/esm2022/notification/notification-title/notification-title.directive.mjs +4 -4
- package/esm2022/notification/notification.module.mjs +5 -5
- package/esm2022/paginator/examples/basic-paginator/basic-paginator.component.mjs +4 -4
- package/esm2022/paginator/examples/link-paginator/link-paginator.component.mjs +4 -4
- package/esm2022/paginator/paginator/paginator.component.mjs +4 -4
- package/esm2022/paginator/paginator.module.mjs +5 -5
- package/esm2022/progress-bar/examples/progress-bar-default/progress-bar-default.component.mjs +4 -4
- package/esm2022/progress-bar/examples/progress-bar-indeterminate/progress-bar-indeterminate.component.mjs +4 -4
- package/esm2022/progress-bar/examples/progress-bar-themes/progress-bar-themes.component.mjs +4 -4
- package/esm2022/progress-bar/progress-bar.component.mjs +4 -4
- package/esm2022/progress-bar/progress-bar.module.mjs +5 -5
- package/esm2022/quantity-field/examples/basic-quantity-field/basic-quantity-field.component.mjs +4 -4
- package/esm2022/quantity-field/examples/custom-range-quantity-field/custom-range-quantity-field.component.mjs +4 -4
- package/esm2022/quantity-field/examples/disabled-quantity-field/disabled-quantity-field.component.mjs +4 -4
- package/esm2022/quantity-field/examples/select-max-quantity-field/select-max-quantity-field.component.mjs +4 -4
- package/esm2022/radio/examples/basic-radio/basic-radio.component.mjs +4 -4
- package/esm2022/sidebar/animation/sidebar-animation-state.mjs +1 -1
- package/esm2022/sidebar/examples/basic-sidebar/basic-sidebar.component.mjs +4 -4
- package/esm2022/sidebar/examples/over-and-under-sidebars/over-and-under-sidebars.component.mjs +4 -4
- package/esm2022/sidebar/examples/side-fixed-sidebar/side-fixed-sidebar.component.mjs +4 -4
- package/esm2022/sidebar/examples/sidebar-with-sticky-content/sidebar-with-sticky-content.component.mjs +4 -4
- package/esm2022/sidebar/helper/is-docked-mode.mjs +9 -0
- package/esm2022/sidebar/helper/is-floating-mode.mjs +9 -0
- package/esm2022/sidebar/public_api.mjs +5 -1
- package/esm2022/sidebar/service/registration.type.mjs +2 -0
- package/esm2022/sidebar/service/sidebar.service.mjs +36 -0
- package/esm2022/sidebar/sidebar/is-opening.mjs +1 -1
- package/esm2022/sidebar/sidebar/sidebar.component.mjs +4 -4
- package/esm2022/sidebar/sidebar-footer/sidebar-footer.component.mjs +4 -4
- package/esm2022/sidebar/sidebar-header/sidebar-header-action/sidebar-header-action.directive.mjs +4 -4
- package/esm2022/sidebar/sidebar-header/sidebar-header-title/sidebar-header-title.directive.mjs +4 -4
- package/esm2022/sidebar/sidebar-header/sidebar-header.component.mjs +4 -4
- package/esm2022/sidebar/sidebar-viewport/helper/has-parent-viewport.mjs +1 -1
- package/esm2022/sidebar/sidebar-viewport/sidebar-viewport.component.mjs +6 -6
- package/esm2022/sidebar/sidebar-viewport/utils/content-pad.mjs +1 -1
- package/esm2022/sidebar/sidebar-viewport/utils/content-shift.mjs +1 -1
- package/esm2022/sidebar/sidebar-viewport-backdrop/sidebar-viewport-backdrop.component.mjs +4 -4
- package/esm2022/sidebar/sidebar.module.mjs +5 -5
- package/esm2022/toast/examples/default-toast/default-toast.component.mjs +4 -4
- package/esm2022/toast/examples/toast-positions/toast-positions.component.mjs +4 -4
- package/esm2022/toast/examples/toast-status/toast-status.component.mjs +4 -4
- package/esm2022/toast/examples/toast-with-custom-duration/toast-with-custom-duration.component.mjs +4 -4
- package/esm2022/toast/service/position-strategy.mjs +1 -1
- package/esm2022/toast/service/position.service.mjs +4 -4
- package/esm2022/toast/service/toast.service.mjs +4 -4
- package/esm2022/toast/toast/toast-template.component.mjs +5 -5
- package/esm2022/toast/toast/toast.component.mjs +4 -4
- package/esm2022/toast/toast-actions/toast-actions.directive.mjs +4 -4
- package/esm2022/toast/toast-message/toast-message.directive.mjs +4 -4
- package/esm2022/toast/toast-title/toast-title.directive.mjs +4 -4
- package/esm2022/toast/toast.module.mjs +5 -5
- package/esm2022/tree/examples/basic-tree/basic-tree.component.mjs +4 -4
- package/esm2022/tree/examples/deep-tree/deep-tree.component.mjs +54 -0
- package/esm2022/tree/examples/public_api.mjs +4 -2
- package/esm2022/tree/tree/tree.component.mjs +6 -6
- package/esm2022/tree/tree-item/tree-item.directive.mjs +5 -5
- package/esm2022/tree/tree.module.mjs +5 -5
- package/esm2022/tree/utils/flatten-tree.mjs +7 -3
- package/esm2022/tree/utils/transform-in-place.mjs +1 -1
- package/esm2022/tree/utils/transform.mjs +1 -1
- package/esm2022/tree/utils/traverse-tree.mjs +1 -1
- package/fesm2022/daffodil-design-accordion-examples.mjs +7 -7
- package/fesm2022/daffodil-design-accordion-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-accordion.mjs +13 -13
- package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
- package/fesm2022/daffodil-design-article-examples.mjs +30 -30
- package/fesm2022/daffodil-design-article-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-article.mjs +11 -11
- package/fesm2022/daffodil-design-article.mjs.map +1 -1
- package/fesm2022/daffodil-design-breadcrumb-examples.mjs +26 -0
- package/fesm2022/daffodil-design-breadcrumb-examples.mjs.map +1 -0
- package/fesm2022/daffodil-design-breadcrumb.mjs +90 -0
- package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -0
- package/fesm2022/daffodil-design-button-examples.mjs +24 -24
- package/fesm2022/daffodil-design-button-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-button.mjs +10 -10
- package/fesm2022/daffodil-design-button.mjs.map +1 -1
- package/fesm2022/daffodil-design-callout-examples.mjs +12 -12
- package/fesm2022/daffodil-design-callout-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-callout.mjs +22 -22
- package/fesm2022/daffodil-design-callout.mjs.map +1 -1
- package/fesm2022/daffodil-design-card-examples.mjs +18 -18
- package/fesm2022/daffodil-design-card-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-card.mjs +25 -25
- package/fesm2022/daffodil-design-card.mjs.map +1 -1
- package/fesm2022/daffodil-design-checkbox-examples.mjs +6 -6
- package/fesm2022/daffodil-design-checkbox-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-container-examples.mjs +3 -3
- package/fesm2022/daffodil-design-container-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-container.mjs +7 -7
- package/fesm2022/daffodil-design-container.mjs.map +1 -1
- package/fesm2022/daffodil-design-hero-examples.mjs +12 -12
- package/fesm2022/daffodil-design-hero-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-hero.mjs +22 -22
- package/fesm2022/daffodil-design-hero.mjs.map +1 -1
- package/fesm2022/daffodil-design-image-examples.mjs +9 -9
- package/fesm2022/daffodil-design-image-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-image.mjs +7 -7
- package/fesm2022/daffodil-design-image.mjs.map +1 -1
- package/fesm2022/daffodil-design-input-examples.mjs +12 -12
- package/fesm2022/daffodil-design-input-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-link-set.mjs +16 -16
- package/fesm2022/daffodil-design-link-set.mjs.map +1 -1
- package/fesm2022/daffodil-design-list-examples.mjs +12 -12
- package/fesm2022/daffodil-design-list-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-list.mjs +10 -10
- package/fesm2022/daffodil-design-list.mjs.map +1 -1
- package/fesm2022/daffodil-design-loading-icon-examples.mjs +6 -6
- package/fesm2022/daffodil-design-loading-icon-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-loading-icon.mjs +7 -7
- package/fesm2022/daffodil-design-loading-icon.mjs.map +1 -1
- package/fesm2022/daffodil-design-media-gallery-examples.mjs +9 -9
- package/fesm2022/daffodil-design-media-gallery-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-media-gallery.mjs +16 -16
- package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
- package/fesm2022/daffodil-design-menu-examples.mjs +6 -6
- package/fesm2022/daffodil-design-menu-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-menu.mjs +16 -16
- package/fesm2022/daffodil-design-menu.mjs.map +1 -1
- package/fesm2022/daffodil-design-modal-examples.mjs +7 -7
- package/fesm2022/daffodil-design-modal-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-modal.mjs +28 -25
- package/fesm2022/daffodil-design-modal.mjs.map +1 -1
- package/fesm2022/daffodil-design-navbar-examples.mjs +12 -12
- package/fesm2022/daffodil-design-navbar-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-navbar.mjs +7 -7
- package/fesm2022/daffodil-design-navbar.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification-examples.mjs +15 -15
- package/fesm2022/daffodil-design-notification-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification.mjs +19 -19
- package/fesm2022/daffodil-design-notification.mjs.map +1 -1
- package/fesm2022/daffodil-design-paginator-examples.mjs +6 -6
- package/fesm2022/daffodil-design-paginator-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-paginator.mjs +7 -7
- package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
- package/fesm2022/daffodil-design-progress-bar-examples.mjs +9 -9
- package/fesm2022/daffodil-design-progress-bar-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-progress-bar.mjs +7 -7
- package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
- package/fesm2022/daffodil-design-quantity-field-examples.mjs +12 -12
- package/fesm2022/daffodil-design-quantity-field-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-radio-examples.mjs +3 -3
- package/fesm2022/daffodil-design-radio-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-sidebar-examples.mjs +12 -12
- package/fesm2022/daffodil-design-sidebar-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-sidebar.mjs +82 -30
- package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast-examples.mjs +12 -12
- package/fesm2022/daffodil-design-toast-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast.mjs +26 -26
- package/fesm2022/daffodil-design-toast.mjs.map +1 -1
- package/fesm2022/daffodil-design-tree-examples.mjs +54 -4
- package/fesm2022/daffodil-design-tree-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-tree.mjs +19 -15
- package/fesm2022/daffodil-design-tree.mjs.map +1 -1
- package/fesm2022/daffodil-design.mjs +400 -161
- package/fesm2022/daffodil-design.mjs.map +1 -1
- package/modal/README.md +14 -1
- package/modal/modal/modal-config.d.ts +2 -0
- package/package.json +1 -1
- package/scss/theme.scss +2 -0
- package/scss/theming/_theme-css-variables.scss +1 -1
- package/sidebar/helper/is-docked-mode.d.ts +5 -0
- package/sidebar/helper/is-floating-mode.d.ts +5 -0
- package/sidebar/public_api.d.ts +4 -0
- package/sidebar/service/registration.type.d.ts +11 -0
- package/sidebar/service/sidebar.service.d.ts +25 -0
- package/tree/examples/deep-tree/deep-tree.component.d.ts +7 -0
- package/tree/examples/public_api.d.ts +2 -1
- package/tree/utils/transform-in-place.d.ts +1 -1
- package/tree/utils/transform.d.ts +1 -1
- package/tree/utils/traverse-tree.d.ts +1 -1
@@ -115,10 +115,10 @@ class DaffFormFieldComponent {
|
|
115
115
|
ngAfterContentChecked() {
|
116
116
|
this._validateFormControl();
|
117
117
|
}
|
118
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
119
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
118
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffFormFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
119
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.2", type: DaffFormFieldComponent, selector: "daff-form-field", inputs: { formSubmitted: "formSubmitted" }, host: { properties: { "class.daff-form-field": "this.class" } }, queries: [{ propertyName: "_control", first: true, predicate: DaffFormFieldControl, descendants: true }], ngImport: i0, template: "<div class=\"daff-form-field__control\" [class.daff-error]=\"isError\" [class.daff-valid]=\"isValid\" [class.daff-focus]=\"isFocused\">\n <ng-content></ng-content>\n <div class=\"daff-form-field__icon\" *ngIf=\"_control.controlType === 'native-select'\">\n <fa-icon [icon]=\"faChevronDown\"></fa-icon>\n </div>\n</div>\n<ng-content select=\"daff-error-message\"></ng-content>\n", styles: [".daff-form-field{display:block;position:relative}.daff-form-field__control{border-radius:3px;display:inline-block;font-size:1rem;height:inherit;line-height:1.5rem;padding:10px 15px;width:100%}.daff-form-field__icon{display:inline-block;pointer-events:none;position:absolute;right:15px}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$1.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "mask", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "transform", "a11yRole"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
120
120
|
}
|
121
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
121
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffFormFieldComponent, decorators: [{
|
122
122
|
type: Component,
|
123
123
|
args: [{ selector: 'daff-form-field', encapsulation: ViewEncapsulation.None, template: "<div class=\"daff-form-field__control\" [class.daff-error]=\"isError\" [class.daff-valid]=\"isValid\" [class.daff-focus]=\"isFocused\">\n <ng-content></ng-content>\n <div class=\"daff-form-field__icon\" *ngIf=\"_control.controlType === 'native-select'\">\n <fa-icon [icon]=\"faChevronDown\"></fa-icon>\n </div>\n</div>\n<ng-content select=\"daff-error-message\"></ng-content>\n", styles: [".daff-form-field{display:block;position:relative}.daff-form-field__control{border-radius:3px;display:inline-block;font-size:1rem;height:inherit;line-height:1.5rem;padding:10px 15px;width:100%}.daff-form-field__icon{display:inline-block;pointer-events:none;position:absolute;right:15px}\n"] }]
|
124
124
|
}], propDecorators: { class: [{
|
@@ -135,10 +135,10 @@ class DaffErrorMessageComponent {
|
|
135
135
|
constructor() {
|
136
136
|
this.class = true;
|
137
137
|
}
|
138
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
139
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
138
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffErrorMessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
139
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.2", type: DaffErrorMessageComponent, selector: "daff-error-message", host: { properties: { "class.daff-error-message": "this.class" } }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [":host{display:block;font-size:.875rem;margin-top:5px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
140
140
|
}
|
141
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
141
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffErrorMessageComponent, decorators: [{
|
142
142
|
type: Component,
|
143
143
|
args: [{ selector: 'daff-error-message', template: '<ng-content></ng-content>', changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;font-size:.875rem;margin-top:5px}\n"] }]
|
144
144
|
}], propDecorators: { class: [{
|
@@ -147,11 +147,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImpo
|
|
147
147
|
}] } });
|
148
148
|
|
149
149
|
class DaffErrorMessageModule {
|
150
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
151
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
152
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
150
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffErrorMessageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
151
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.2", ngImport: i0, type: DaffErrorMessageModule, declarations: [DaffErrorMessageComponent], exports: [DaffErrorMessageComponent] }); }
|
152
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffErrorMessageModule }); }
|
153
153
|
}
|
154
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
154
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffErrorMessageModule, decorators: [{
|
155
155
|
type: NgModule,
|
156
156
|
args: [{
|
157
157
|
exports: [
|
@@ -164,16 +164,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImpo
|
|
164
164
|
}] });
|
165
165
|
|
166
166
|
class DaffFormFieldModule {
|
167
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
168
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
167
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffFormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
168
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.2", ngImport: i0, type: DaffFormFieldModule, declarations: [DaffFormFieldComponent], imports: [CommonModule,
|
169
169
|
FontAwesomeModule,
|
170
170
|
DaffErrorMessageModule], exports: [DaffFormFieldComponent,
|
171
171
|
DaffErrorMessageModule] }); }
|
172
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
172
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffFormFieldModule, imports: [CommonModule,
|
173
173
|
FontAwesomeModule,
|
174
174
|
DaffErrorMessageModule, DaffErrorMessageModule] }); }
|
175
175
|
}
|
176
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
176
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffFormFieldModule, decorators: [{
|
177
177
|
type: NgModule,
|
178
178
|
args: [{
|
179
179
|
imports: [
|
@@ -219,13 +219,13 @@ class DaffInputComponent {
|
|
219
219
|
onFocus() {
|
220
220
|
this._elementRef.nativeElement.focus();
|
221
221
|
}
|
222
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
223
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
222
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffInputComponent, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
223
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.2", type: DaffInputComponent, selector: "input[daff-input]", inputs: { formSubmitted: "formSubmitted" }, host: { listeners: { "focus": "focus()", "blur": "blur()" } }, providers: [
|
224
224
|
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
225
225
|
{ provide: DaffFormFieldControl, useExisting: DaffInputComponent },
|
226
226
|
], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [":host{border:none;border-radius:4px;box-shadow:none;font-size:1rem;line-height:1.5rem;margin:0;padding:0;width:100%;box-sizing:border-box}:host:focus{border:none;box-shadow:none;outline:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
227
227
|
}
|
228
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
228
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffInputComponent, decorators: [{
|
229
229
|
type: Component,
|
230
230
|
args: [{ selector: 'input[daff-input]', template: '<ng-content></ng-content>', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
231
231
|
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
@@ -246,11 +246,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImpo
|
|
246
246
|
}] } });
|
247
247
|
|
248
248
|
class DaffInputModule {
|
249
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
250
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
251
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
249
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
250
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.2", ngImport: i0, type: DaffInputModule, declarations: [DaffInputComponent], imports: [CommonModule], exports: [DaffInputComponent] }); }
|
251
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffInputModule, imports: [CommonModule] }); }
|
252
252
|
}
|
253
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
253
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffInputModule, decorators: [{
|
254
254
|
type: NgModule,
|
255
255
|
args: [{
|
256
256
|
imports: [
|
@@ -295,13 +295,13 @@ class DaffNativeSelectComponent {
|
|
295
295
|
onFocus() {
|
296
296
|
this._elementRef.nativeElement.focus();
|
297
297
|
}
|
298
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
299
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
298
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffNativeSelectComponent, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
299
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.2", type: DaffNativeSelectComponent, selector: "select[daff-native-select]", inputs: { formSubmitted: "formSubmitted" }, host: { listeners: { "focus": "focus()", "blur": "blur()" }, properties: { "class.daff-native-select": "this.class" } }, providers: [
|
300
300
|
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
301
301
|
{ provide: DaffFormFieldControl, useExisting: DaffNativeSelectComponent },
|
302
302
|
], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [".daff-native-select{appearance:none;background:transparent;background-clip:padding-box;border:0;box-shadow:none;font-size:1rem;line-height:1.5rem;margin:0;min-width:45px;width:100%}.daff-native-select:focus{border:0;box-shadow:none;outline:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
303
303
|
}
|
304
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
304
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffNativeSelectComponent, decorators: [{
|
305
305
|
type: Component,
|
306
306
|
args: [{ selector: 'select[daff-native-select]', template: '<ng-content></ng-content>', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
307
307
|
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
@@ -325,11 +325,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImpo
|
|
325
325
|
}] } });
|
326
326
|
|
327
327
|
class DaffNativeSelectModule {
|
328
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
329
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
330
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
328
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffNativeSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
329
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.2", ngImport: i0, type: DaffNativeSelectModule, declarations: [DaffNativeSelectComponent], imports: [CommonModule], exports: [DaffNativeSelectComponent] }); }
|
330
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffNativeSelectModule, imports: [CommonModule] }); }
|
331
331
|
}
|
332
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
332
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffNativeSelectModule, decorators: [{
|
333
333
|
type: NgModule,
|
334
334
|
args: [{
|
335
335
|
imports: [
|
@@ -446,10 +446,10 @@ class DaffCheckboxComponent {
|
|
446
446
|
this.checked = false;
|
447
447
|
this._cdRef.markForCheck();
|
448
448
|
}
|
449
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
450
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
449
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffCheckboxComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
450
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.2", type: DaffCheckboxComponent, selector: "daff-checkbox", inputs: { name: "name", value: "value", checked: "checked", id: "id", label: ["aria-label", "label"], labeledBy: ["aria-labelledby", "labeledBy"] }, outputs: { becameChecked: "becameChecked", becameUnchecked: "becameUnchecked" }, host: { properties: { "attr.role": "this.role", "class.focused": "this.focusClass", "class.disabled": "this.disabledClass" } }, viewQueries: [{ propertyName: "nativeCheckbox", first: true, predicate: ["inputElement"], descendants: true, read: ElementRef, static: true }], ngImport: i0, template: "<input #inputElement\ntype=\"checkbox\"\n[attr.aria-label]=\"label\"\n[attr.aria-labelledby]=\"labeledBy\"\n[attr.checked]=\"checked ? '' : null\"\n[attr.id] = \"id\"\n[attr.value]=\"value\"\n[attr.name]=\"name\"\n[attr.disabled] = \"disabled ? '' : null\" \n(change)=\"_onChange($event)\"\n(blur)=\"onBlur()\"\n(focus)=\"onFocus()\"\n/>\n<label [attr.for]=\"id\"><ng-content></ng-content></label>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
451
451
|
}
|
452
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
452
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffCheckboxComponent, decorators: [{
|
453
453
|
type: Component,
|
454
454
|
args: [{ selector: 'daff-checkbox', changeDetection: ChangeDetectionStrategy.OnPush, template: "<input #inputElement\ntype=\"checkbox\"\n[attr.aria-label]=\"label\"\n[attr.aria-labelledby]=\"labeledBy\"\n[attr.checked]=\"checked ? '' : null\"\n[attr.id] = \"id\"\n[attr.value]=\"value\"\n[attr.name]=\"name\"\n[attr.disabled] = \"disabled ? '' : null\" \n(change)=\"_onChange($event)\"\n(blur)=\"onBlur()\"\n(focus)=\"onFocus()\"\n/>\n<label [attr.for]=\"id\"><ng-content></ng-content></label>" }]
|
455
455
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { nativeCheckbox: [{
|
@@ -553,10 +553,10 @@ class DaffCheckboxControlValueAccessorDirective {
|
|
553
553
|
fireDeselect() {
|
554
554
|
this._checkbox.deselect();
|
555
555
|
}
|
556
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
557
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
556
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffCheckboxControlValueAccessorDirective, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: DaffCheckboxComponent }], target: i0.ɵɵFactoryTarget.Directive }); }
|
557
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.2", type: DaffCheckboxControlValueAccessorDirective, selector: "daff-checkbox[ngModel], daff-checkbox[formControl], daff-checkbox[formControlName]", inputs: { value: "value", name: "name" }, ngImport: i0 }); }
|
558
558
|
}
|
559
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
559
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffCheckboxControlValueAccessorDirective, decorators: [{
|
560
560
|
type: Directive,
|
561
561
|
args: [{
|
562
562
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
@@ -586,10 +586,10 @@ class DaffCheckboxSetComponent {
|
|
586
586
|
const checkboxes = this.checkboxes.toArray();
|
587
587
|
return this.formArray.value.map((element, index) => element === true ? checkboxes[index].value : false).filter(element => element !== false);
|
588
588
|
}
|
589
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
590
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
589
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffCheckboxSetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
590
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.2", type: DaffCheckboxSetComponent, selector: "daff-checkbox-set", inputs: { formArray: "formArray", name: "name" }, outputs: { valueList: "valueList" }, host: { properties: { "attr.role": "this.role" } }, queries: [{ propertyName: "checkboxes", predicate: DaffCheckboxComponent }], ngImport: i0, template: "<ng-content></ng-content>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
591
591
|
}
|
592
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
592
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffCheckboxSetComponent, decorators: [{
|
593
593
|
type: Component,
|
594
594
|
args: [{ selector: 'daff-checkbox-set', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>" }]
|
595
595
|
}], propDecorators: { formArray: [{
|
@@ -607,17 +607,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImpo
|
|
607
607
|
}] } });
|
608
608
|
|
609
609
|
class DaffCheckboxModule {
|
610
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
611
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
610
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
611
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.2", ngImport: i0, type: DaffCheckboxModule, declarations: [DaffCheckboxComponent,
|
612
612
|
DaffCheckboxSetComponent,
|
613
613
|
DaffCheckboxControlValueAccessorDirective], imports: [CommonModule], exports: [DaffCheckboxComponent,
|
614
614
|
DaffCheckboxSetComponent,
|
615
615
|
DaffCheckboxControlValueAccessorDirective] }); }
|
616
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
616
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffCheckboxModule, providers: [
|
617
617
|
DaffCheckboxSetComponent,
|
618
618
|
], imports: [CommonModule] }); }
|
619
619
|
}
|
620
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
620
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffCheckboxModule, decorators: [{
|
621
621
|
type: NgModule,
|
622
622
|
args: [{
|
623
623
|
exports: [
|
@@ -712,10 +712,10 @@ class DaffQuantityInputComponent {
|
|
712
712
|
? this._inputControl.disable()
|
713
713
|
: this._inputControl.enable();
|
714
714
|
}
|
715
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
716
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
715
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffQuantityInputComponent, deps: [{ token: i1.NgControl }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
716
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.2", type: DaffQuantityInputComponent, selector: "daff-quantity-input", inputs: { min: "min", max: "max" }, viewQueries: [{ propertyName: "input", first: true, predicate: DaffInputComponent, descendants: true }], ngImport: i0, template: "<input daff-input\n type=\"number\"\n [attr.max]=\"max\"\n [attr.min]=\"min\"\n [attr.step]=\"1\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n (change)=\"onValueChange($event)\"\n [formControl]=\"_inputControl\"\n>\n", dependencies: [{ kind: "component", type: DaffInputComponent, selector: "input[daff-input]", inputs: ["formSubmitted"] }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
717
717
|
}
|
718
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
718
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffQuantityInputComponent, decorators: [{
|
719
719
|
type: Component,
|
720
720
|
args: [{ selector: 'daff-quantity-input', changeDetection: ChangeDetectionStrategy.OnPush, template: "<input daff-input\n type=\"number\"\n [attr.max]=\"max\"\n [attr.min]=\"min\"\n [attr.step]=\"1\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n (change)=\"onValueChange($event)\"\n [formControl]=\"_inputControl\"\n>\n" }]
|
721
721
|
}], ctorParameters: () => [{ type: i1.NgControl }, { type: i0.ChangeDetectorRef }], propDecorators: { input: [{
|
@@ -787,10 +787,10 @@ class DaffQuantitySelectComponent {
|
|
787
787
|
get valueArray() {
|
788
788
|
return makeValueArray(this.min, this.max, this.increment);
|
789
789
|
}
|
790
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
791
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
790
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffQuantitySelectComponent, deps: [{ token: i1.NgControl }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
791
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.2", type: DaffQuantitySelectComponent, selector: "daff-quantity-select", inputs: { min: "min", max: "max", extendable: "extendable" }, viewQueries: [{ propertyName: "select", first: true, predicate: DaffNativeSelectComponent, descendants: true }], ngImport: i0, template: "<select daff-native-select\n [formControl]=\"ngControl.control\"\n (focus)=\"onFocus()\"\n>\n <option *ngFor=\"let item of valueArray\" [value]=\"item\">{{ item }}</option>\n <option [value]=\"max\" *ngIf=\"extendable\">{{ max }}+</option>\n <option [value]=\"max\" *ngIf=\"!extendable\">{{ max }}</option>\n</select>\n", dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: DaffNativeSelectComponent, selector: "select[daff-native-select]", inputs: ["formSubmitted"] }, { kind: "directive", type: i1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
792
792
|
}
|
793
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
793
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffQuantitySelectComponent, decorators: [{
|
794
794
|
type: Component,
|
795
795
|
args: [{ selector: 'daff-quantity-select', changeDetection: ChangeDetectionStrategy.OnPush, template: "<select daff-native-select\n [formControl]=\"ngControl.control\"\n (focus)=\"onFocus()\"\n>\n <option *ngFor=\"let item of valueArray\" [value]=\"item\">{{ item }}</option>\n <option [value]=\"max\" *ngIf=\"extendable\">{{ max }}+</option>\n <option [value]=\"max\" *ngIf=\"!extendable\">{{ max }}</option>\n</select>\n" }]
|
796
796
|
}], ctorParameters: () => [{ type: i1.NgControl }, { type: i0.ChangeDetectorRef }], propDecorators: { select: [{
|
@@ -892,8 +892,8 @@ class DaffQuantityFieldComponent {
|
|
892
892
|
this.input.focus();
|
893
893
|
}
|
894
894
|
}
|
895
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
896
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
895
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffQuantityFieldComponent, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
896
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.2", type: DaffQuantityFieldComponent, selector: "daff-quantity-field", inputs: { min: "min", max: "max", selectMax: "selectMax", id: "id" }, providers: [
|
897
897
|
{
|
898
898
|
provide: DaffFormFieldControl,
|
899
899
|
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
@@ -901,7 +901,7 @@ class DaffQuantityFieldComponent {
|
|
901
901
|
},
|
902
902
|
], viewQueries: [{ propertyName: "input", first: true, predicate: DaffQuantityInputComponent, descendants: true }, { propertyName: "select", first: true, predicate: DaffQuantitySelectComponent, descendants: true }], ngImport: i0, template: "<daff-quantity-select\n *ngIf=\"showSelectField\"\n [min]=\"min\"\n [max]=\"_maxFloor\"\n [extendable]=\"max > selectMax\"\n [id]=\"id\">\n</daff-quantity-select>\n<daff-quantity-input\n *ngIf=\"showInputField\"\n [min]=\"min\"\n [max]=\"max\"\n [id]=\"id\">\n</daff-quantity-input>\n", dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: DaffQuantityInputComponent, selector: "daff-quantity-input", inputs: ["min", "max"] }, { kind: "component", type: DaffQuantitySelectComponent, selector: "daff-quantity-select", inputs: ["min", "max", "extendable"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
903
903
|
}
|
904
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
904
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffQuantityFieldComponent, decorators: [{
|
905
905
|
type: Component,
|
906
906
|
args: [{ selector: 'daff-quantity-field', providers: [
|
907
907
|
{
|
@@ -931,8 +931,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImpo
|
|
931
931
|
}] } });
|
932
932
|
|
933
933
|
class DaffQuantityFieldModule {
|
934
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
935
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
934
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffQuantityFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
935
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.2", ngImport: i0, type: DaffQuantityFieldModule, declarations: [DaffQuantityFieldComponent,
|
936
936
|
DaffQuantityInputComponent,
|
937
937
|
DaffQuantitySelectComponent], imports: [CommonModule,
|
938
938
|
DaffNativeSelectModule,
|
@@ -940,12 +940,12 @@ class DaffQuantityFieldModule {
|
|
940
940
|
ReactiveFormsModule], exports: [DaffQuantityFieldComponent,
|
941
941
|
DaffQuantityInputComponent,
|
942
942
|
DaffQuantitySelectComponent] }); }
|
943
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
943
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffQuantityFieldModule, imports: [CommonModule,
|
944
944
|
DaffNativeSelectModule,
|
945
945
|
DaffInputModule,
|
946
946
|
ReactiveFormsModule] }); }
|
947
947
|
}
|
948
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
948
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffQuantityFieldModule, decorators: [{
|
949
949
|
type: NgModule,
|
950
950
|
args: [{
|
951
951
|
declarations: [
|
@@ -974,10 +974,10 @@ class DaffRadioSetComponent {
|
|
974
974
|
*/
|
975
975
|
this.role = 'radiogroup';
|
976
976
|
}
|
977
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
978
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
977
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffRadioSetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
978
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.2", type: DaffRadioSetComponent, selector: "daff-radio-set", inputs: { name: "name" }, host: { properties: { "attr.role": "this.role" } }, ngImport: i0, template: "<ng-content></ng-content>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
979
979
|
}
|
980
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
980
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffRadioSetComponent, decorators: [{
|
981
981
|
type: Component,
|
982
982
|
args: [{ selector: 'daff-radio-set', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>" }]
|
983
983
|
}], ctorParameters: () => [], propDecorators: { name: [{
|
@@ -1080,10 +1080,10 @@ class DaffRadioComponent {
|
|
1080
1080
|
this.select();
|
1081
1081
|
}
|
1082
1082
|
;
|
1083
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1084
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
1083
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffRadioComponent, deps: [{ token: DaffRadioSetComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
1084
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.2", type: DaffRadioComponent, selector: "daff-radio", inputs: { checked: "checked", value: "value", id: "id", name: "name", label: ["aria-label", "label"], labelledby: ["aria-labelledby", "labelledby"] }, outputs: { selectionChange: "selectionChange" }, host: { properties: { "attr.role": "this.role", "class.focused": "this.focusClass", "class.disabled": "this.disabledClass" } }, ngImport: i0, template: "<input type=\"radio\" \n[attr.checked]=\"checked ? '' : null\" \n[attr.id]=\"id\" \n[attr.name]=\"name\" \n[attr.aria-label]=\"label\"\n[attr.aria-labelledby]=\"labelledby\"\n[attr.value]=\"value\"\n[attr.disabled] = \"disabled ? '' : null\" \n(change)=\"onChange()\"\n(blur)=\"onBlur()\"\n(focus)=\"onFocus()\"/>\n<label [attr.for]=\"id\">\n <ng-content></ng-content>\n</label>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
1085
1085
|
}
|
1086
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1086
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffRadioComponent, decorators: [{
|
1087
1087
|
type: Component,
|
1088
1088
|
args: [{ selector: 'daff-radio', changeDetection: ChangeDetectionStrategy.OnPush, template: "<input type=\"radio\" \n[attr.checked]=\"checked ? '' : null\" \n[attr.id]=\"id\" \n[attr.name]=\"name\" \n[attr.aria-label]=\"label\"\n[attr.aria-labelledby]=\"labelledby\"\n[attr.value]=\"value\"\n[attr.disabled] = \"disabled ? '' : null\" \n(change)=\"onChange()\"\n(blur)=\"onBlur()\"\n(focus)=\"onFocus()\"/>\n<label [attr.for]=\"id\">\n <ng-content></ng-content>\n</label>" }]
|
1089
1089
|
}], ctorParameters: () => [{ type: DaffRadioSetComponent, decorators: [{
|
@@ -1159,10 +1159,10 @@ class DaffRadioRegistry {
|
|
1159
1159
|
return controlPair['control'].control.parent === accessor._control.control.parent
|
1160
1160
|
&& controlPair['accessor'].name === accessor.name;
|
1161
1161
|
}
|
1162
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1163
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
1162
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffRadioRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1163
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffRadioRegistry, providedIn: 'root' }); }
|
1164
1164
|
}
|
1165
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1165
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffRadioRegistry, decorators: [{
|
1166
1166
|
type: Injectable,
|
1167
1167
|
args: [{ providedIn: 'root' }]
|
1168
1168
|
}] });
|
@@ -1229,10 +1229,10 @@ class DaffRadioControlValueAccessorDirective {
|
|
1229
1229
|
fireDeselect() {
|
1230
1230
|
this._radio.deselect();
|
1231
1231
|
}
|
1232
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1233
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
1232
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffRadioControlValueAccessorDirective, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: DaffRadioRegistry }, { token: DaffRadioComponent }], target: i0.ɵɵFactoryTarget.Directive }); }
|
1233
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.2", type: DaffRadioControlValueAccessorDirective, selector: "daff-radio[ngModel], daff-radio[formControl], daff-radio[formControlName]", inputs: { value: "value", name: "name" }, ngImport: i0 }); }
|
1234
1234
|
}
|
1235
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1235
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffRadioControlValueAccessorDirective, decorators: [{
|
1236
1236
|
type: Directive,
|
1237
1237
|
args: [{
|
1238
1238
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
@@ -1249,15 +1249,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImpo
|
|
1249
1249
|
}] } });
|
1250
1250
|
|
1251
1251
|
class DaffRadioModule {
|
1252
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1253
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
1252
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
1253
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.2", ngImport: i0, type: DaffRadioModule, declarations: [DaffRadioControlValueAccessorDirective,
|
1254
1254
|
DaffRadioComponent,
|
1255
1255
|
DaffRadioSetComponent], imports: [CommonModule], exports: [DaffRadioComponent,
|
1256
1256
|
DaffRadioSetComponent,
|
1257
1257
|
DaffRadioControlValueAccessorDirective] }); }
|
1258
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
1258
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffRadioModule, imports: [CommonModule] }); }
|
1259
1259
|
}
|
1260
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1260
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffRadioModule, decorators: [{
|
1261
1261
|
type: NgModule,
|
1262
1262
|
args: [{
|
1263
1263
|
exports: [
|
@@ -1280,10 +1280,10 @@ class DaffFormLabelDirective {
|
|
1280
1280
|
constructor() {
|
1281
1281
|
this.class = true;
|
1282
1282
|
}
|
1283
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1284
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
1283
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffFormLabelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
1284
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.2", type: DaffFormLabelDirective, selector: "[daffFormLabel]", host: { properties: { "class.daff-form-label": "this.class" } }, ngImport: i0 }); }
|
1285
1285
|
}
|
1286
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1286
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffFormLabelDirective, decorators: [{
|
1287
1287
|
type: Directive,
|
1288
1288
|
args: [{
|
1289
1289
|
selector: '[daffFormLabel]',
|
@@ -1294,11 +1294,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImpo
|
|
1294
1294
|
}] } });
|
1295
1295
|
|
1296
1296
|
class DaffFormLabelModule {
|
1297
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1298
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
1299
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
1297
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffFormLabelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
1298
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.2", ngImport: i0, type: DaffFormLabelModule, declarations: [DaffFormLabelDirective], exports: [DaffFormLabelDirective] }); }
|
1299
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffFormLabelModule }); }
|
1300
1300
|
}
|
1301
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1301
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffFormLabelModule, decorators: [{
|
1302
1302
|
type: NgModule,
|
1303
1303
|
args: [{
|
1304
1304
|
exports: [
|
@@ -1319,10 +1319,10 @@ class DaffPrefixDirective {
|
|
1319
1319
|
constructor() {
|
1320
1320
|
this.class = true;
|
1321
1321
|
}
|
1322
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1323
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
1322
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffPrefixDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
1323
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.2", type: DaffPrefixDirective, selector: "[daffPrefix]", host: { properties: { "class.daff-prefix": "this.class" } }, ngImport: i0 }); }
|
1324
1324
|
}
|
1325
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1325
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffPrefixDirective, decorators: [{
|
1326
1326
|
type: Directive,
|
1327
1327
|
args: [{
|
1328
1328
|
selector: '[daffPrefix]',
|
@@ -1341,10 +1341,10 @@ class DaffSuffixDirective {
|
|
1341
1341
|
constructor() {
|
1342
1342
|
this.class = true;
|
1343
1343
|
}
|
1344
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1345
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
1344
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffSuffixDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
1345
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.2", type: DaffSuffixDirective, selector: "[daffSuffix]", host: { properties: { "class.daff-suffix": "this.class" } }, ngImport: i0 }); }
|
1346
1346
|
}
|
1347
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1347
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffSuffixDirective, decorators: [{
|
1348
1348
|
type: Directive,
|
1349
1349
|
args: [{
|
1350
1350
|
selector: '[daffSuffix]',
|
@@ -1355,13 +1355,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImpo
|
|
1355
1355
|
}] } });
|
1356
1356
|
|
1357
1357
|
class DaffPrefixSuffixModule {
|
1358
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1359
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
1358
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffPrefixSuffixModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
1359
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.2", ngImport: i0, type: DaffPrefixSuffixModule, declarations: [DaffPrefixDirective,
|
1360
1360
|
DaffSuffixDirective], exports: [DaffPrefixDirective,
|
1361
1361
|
DaffSuffixDirective] }); }
|
1362
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
1362
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffPrefixSuffixModule }); }
|
1363
1363
|
}
|
1364
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1364
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffPrefixSuffixModule, decorators: [{
|
1365
1365
|
type: NgModule,
|
1366
1366
|
args: [{
|
1367
1367
|
imports: [],
|
@@ -1384,10 +1384,10 @@ function daffSuffixableMixin(Base) {
|
|
1384
1384
|
constructor(...args) {
|
1385
1385
|
super(...args);
|
1386
1386
|
}
|
1387
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1388
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
1387
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: SuffixableDirective, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); }
|
1388
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.2", type: SuffixableDirective, queries: [{ propertyName: "_suffix", first: true, predicate: DaffSuffixDirective, descendants: true, static: true }], usesInheritance: true, ngImport: i0 }); }
|
1389
1389
|
}
|
1390
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1390
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: SuffixableDirective, decorators: [{
|
1391
1391
|
type: Directive
|
1392
1392
|
}], ctorParameters: () => [{ type: undefined }], propDecorators: { _suffix: [{
|
1393
1393
|
type: ContentChild,
|
@@ -1404,10 +1404,10 @@ function daffPrefixableMixin(Base) {
|
|
1404
1404
|
constructor(...args) {
|
1405
1405
|
super(...args);
|
1406
1406
|
}
|
1407
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1408
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
1407
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: PrefixableDirective, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); }
|
1408
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.2", type: PrefixableDirective, queries: [{ propertyName: "_prefix", first: true, predicate: DaffPrefixDirective, descendants: true, static: true }], usesInheritance: true, ngImport: i0 }); }
|
1409
1409
|
}
|
1410
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1410
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: PrefixableDirective, decorators: [{
|
1411
1411
|
type: Directive
|
1412
1412
|
}], ctorParameters: () => [{ type: undefined }], propDecorators: { _prefix: [{
|
1413
1413
|
type: ContentChild,
|
@@ -1460,18 +1460,45 @@ const validateColor = (color) => {
|
|
1460
1460
|
}
|
1461
1461
|
};
|
1462
1462
|
/**
|
1463
|
-
*
|
1463
|
+
* `DaffColorableDirective` allows a component to conditionally apply color-specific
|
1464
1464
|
* styles by setting CSS classes based on the specified color. This directive is useful
|
1465
1465
|
* for applying different color palettes to a component in an Angular application.
|
1466
1466
|
*
|
1467
1467
|
* ## Usage
|
1468
1468
|
*
|
1469
|
-
*
|
1469
|
+
* ### Implementing it as an attribute directive
|
1470
1470
|
*
|
1471
1471
|
* ```html
|
1472
1472
|
* <div daffColorable [color]="componentColor">Colored content</div>
|
1473
1473
|
* ```
|
1474
1474
|
*
|
1475
|
+
* ### Implementing it as an Angular host directive
|
1476
|
+
*
|
1477
|
+
* ```ts
|
1478
|
+
* @Component({
|
1479
|
+
* standalone: true,
|
1480
|
+
* selector: 'custom-component',
|
1481
|
+
* template: 'custom-component.html',
|
1482
|
+
* hostDirectives: [
|
1483
|
+
* {
|
1484
|
+
* directive: DaffColorableDirective,
|
1485
|
+
* inputs: ['color'],
|
1486
|
+
* },
|
1487
|
+
* ],
|
1488
|
+
* })
|
1489
|
+
* export class CustomComponent { }
|
1490
|
+
* ```
|
1491
|
+
*
|
1492
|
+
* ```scss
|
1493
|
+
* .custom-component {
|
1494
|
+
*
|
1495
|
+
* &.daff-primary {
|
1496
|
+
* background: daff-color($primary, 10);
|
1497
|
+
* color: daff-color($primary, 90);
|
1498
|
+
* }
|
1499
|
+
* }
|
1500
|
+
* ```
|
1501
|
+
*
|
1475
1502
|
* ## Styles
|
1476
1503
|
*
|
1477
1504
|
* The directive applies the following CSS classes based on the color:
|
@@ -1511,10 +1538,10 @@ class DaffColorableDirective {
|
|
1511
1538
|
this.color = this.defaultColor;
|
1512
1539
|
}
|
1513
1540
|
}
|
1514
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1515
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
1541
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffColorableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
1542
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.2", type: DaffColorableDirective, isStandalone: true, selector: "[daffColorable]", inputs: { color: "color" }, host: { properties: { "class": "this.class" } }, usesOnChanges: true, ngImport: i0 }); }
|
1516
1543
|
}
|
1517
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1544
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffColorableDirective, decorators: [{
|
1518
1545
|
type: Directive,
|
1519
1546
|
args: [{
|
1520
1547
|
selector: '[daffColorable]',
|
@@ -1549,10 +1576,10 @@ class NoopBreakpointObserver {
|
|
1549
1576
|
observe(value) {
|
1550
1577
|
return of();
|
1551
1578
|
}
|
1552
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1553
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
1579
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: NoopBreakpointObserver, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1580
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: NoopBreakpointObserver, providedIn: 'root' }); }
|
1554
1581
|
}
|
1555
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1582
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: NoopBreakpointObserver, decorators: [{
|
1556
1583
|
type: Injectable,
|
1557
1584
|
args: [{
|
1558
1585
|
providedIn: 'root',
|
@@ -1585,23 +1612,50 @@ var DaffStatusEnum;
|
|
1585
1612
|
})(DaffStatusEnum || (DaffStatusEnum = {}));
|
1586
1613
|
|
1587
1614
|
/**
|
1588
|
-
*
|
1615
|
+
* `DaffStatusableDirective` allows a component to conditionally apply status-specific
|
1589
1616
|
* styles by setting CSS classes based on the specified status. This directive is useful
|
1590
|
-
* for indicating different statuses such as
|
1617
|
+
* for indicating different statuses such as warning, danger, or success states.
|
1618
|
+
*
|
1619
|
+
* ## Usage
|
1591
1620
|
*
|
1592
|
-
*
|
1621
|
+
* ### Implementing it as an attribute directive
|
1593
1622
|
*
|
1594
1623
|
* ```html
|
1595
1624
|
* <div daffStatusable [status]="componentStatus">Status content</div>
|
1596
1625
|
* ```
|
1597
1626
|
*
|
1627
|
+
* ### Implementing it as an Angular host directive
|
1628
|
+
*
|
1629
|
+
* ```ts
|
1630
|
+
* @Component({
|
1631
|
+
* standalone: true,
|
1632
|
+
* selector: 'custom-component',
|
1633
|
+
* template: 'custom-component.html',
|
1634
|
+
* hostDirectives: [
|
1635
|
+
* {
|
1636
|
+
* directive: DaffStatusableDirective,
|
1637
|
+
* inputs: ['status'],
|
1638
|
+
* },
|
1639
|
+
* ],
|
1640
|
+
* })
|
1641
|
+
* export class CustomComponent { }
|
1642
|
+
*
|
1643
|
+
* ```scss
|
1644
|
+
* .custom-component {
|
1645
|
+
*
|
1646
|
+
* &.daff-danger {
|
1647
|
+
* background: daff-color($red, 10);
|
1648
|
+
* color: daff-color($red, 90);
|
1649
|
+
* }
|
1650
|
+
* }
|
1651
|
+
* ```
|
1598
1652
|
* ## Styles
|
1599
1653
|
*
|
1600
1654
|
* The directive applies the following CSS classes based on the status:
|
1601
1655
|
*
|
1602
|
-
* - `daff-warn`: Applied when the status is `
|
1603
|
-
* - `daff-danger`: Applied when the status is `
|
1604
|
-
* - `daff-success`: Applied when the status is `
|
1656
|
+
* - `daff-warn`: Applied when the status is `warn`.
|
1657
|
+
* - `daff-danger`: Applied when the status is `danger`.
|
1658
|
+
* - `daff-success`: Applied when the status is `success`.
|
1605
1659
|
*/
|
1606
1660
|
class DaffStatusableDirective {
|
1607
1661
|
/**
|
@@ -1615,10 +1669,10 @@ class DaffStatusableDirective {
|
|
1615
1669
|
'daff-success': this.status === DaffStatusEnum.Success,
|
1616
1670
|
};
|
1617
1671
|
}
|
1618
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1619
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
1672
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffStatusableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
1673
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.2", type: DaffStatusableDirective, isStandalone: true, selector: "[daffStatusable]", inputs: { status: "status" }, host: { properties: { "class": "this.class" } }, ngImport: i0 }); }
|
1620
1674
|
}
|
1621
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1675
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffStatusableDirective, decorators: [{
|
1622
1676
|
type: Directive,
|
1623
1677
|
args: [{
|
1624
1678
|
selector: '[daffStatusable]',
|
@@ -1632,24 +1686,57 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImpo
|
|
1632
1686
|
}] } });
|
1633
1687
|
|
1634
1688
|
/**
|
1635
|
-
*
|
1689
|
+
* `DaffSkeletonableDirective` allows a component to display a skeleton loading
|
1636
1690
|
* state by conditionally applying a CSS class. This is useful for indicating to
|
1637
1691
|
* users that content is loading or being processed. This directive can be used to
|
1638
1692
|
* apply a skeleton loading state to any component by toggling the `skeleton`
|
1639
1693
|
* input property. When `skeleton` is `true`, the `daff-skeleton` CSS class
|
1640
1694
|
* is applied, which should style the component to look like a loading placeholder.
|
1641
1695
|
*
|
1642
|
-
*
|
1643
|
-
*
|
1696
|
+
* ## Usage
|
1697
|
+
*
|
1698
|
+
* ### Implementing it as an attribute directive
|
1699
|
+
*
|
1700
|
+
* ```html
|
1701
|
+
* <div daffSkeletonable [skeleton]="isLoading">Content</div>
|
1702
|
+
* ```
|
1703
|
+
*
|
1704
|
+
* ### Implementing it as an Angular host directive
|
1705
|
+
*
|
1706
|
+
* ```ts
|
1707
|
+
* @Component({
|
1708
|
+
* standalone: true,
|
1709
|
+
* selector: 'custom-component',
|
1710
|
+
* template: 'custom-component.html',
|
1711
|
+
* hostDirectives: [
|
1712
|
+
* {
|
1713
|
+
* directive: DaffSkeletonableDirective,
|
1714
|
+
* inputs: ['skeleton'],
|
1715
|
+
* },
|
1716
|
+
* ],
|
1717
|
+
* })
|
1718
|
+
* export class CustomComponent { }
|
1719
|
+
* ```
|
1720
|
+
*
|
1721
|
+
* ```scss
|
1722
|
+
* .daff-skeleton {
|
1723
|
+
* @include state.skeleton-screen(48px, 24px);
|
1724
|
+
* }
|
1725
|
+
* ```
|
1726
|
+
*
|
1727
|
+
* ## Styles
|
1728
|
+
*
|
1729
|
+
* The `daff-skeleton` class should be defined in your styles to display the loading
|
1730
|
+
* state as desired. It can be used in conjuction with the `skeleton-screen` mixin, which provides predefined loading styles.
|
1644
1731
|
*/
|
1645
1732
|
class DaffSkeletonableDirective {
|
1646
1733
|
constructor() {
|
1647
1734
|
this.skeleton = false;
|
1648
1735
|
}
|
1649
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1650
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
1736
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffSkeletonableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
1737
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.2", type: DaffSkeletonableDirective, isStandalone: true, selector: "[daffSkeletonable]", inputs: { skeleton: "skeleton" }, host: { properties: { "class.daff-skeleton": "this.skeleton" } }, ngImport: i0 }); }
|
1651
1738
|
}
|
1652
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1739
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffSkeletonableDirective, decorators: [{
|
1653
1740
|
type: Directive,
|
1654
1741
|
args: [{
|
1655
1742
|
selector: '[daffSkeletonable]',
|
@@ -1670,21 +1757,52 @@ var DaffTextAlignmentEnum;
|
|
1670
1757
|
})(DaffTextAlignmentEnum || (DaffTextAlignmentEnum = {}));
|
1671
1758
|
|
1672
1759
|
/**
|
1673
|
-
*
|
1674
|
-
*
|
1760
|
+
* `DaffTextAlignableDirective` allows for dynamic text alignment of a component by
|
1761
|
+
* setting CSS classes based on the specified text alignment. This directive is
|
1675
1762
|
* useful when text alignment needs to be managed dynamically in an Angular component.
|
1676
1763
|
*
|
1677
|
-
* ##
|
1764
|
+
* ## Usage
|
1765
|
+
*
|
1766
|
+
* ### Implementing it as an attribute directive
|
1678
1767
|
*
|
1679
1768
|
* ```html
|
1680
1769
|
* <div daffTextAlignable textAlignment="center">Aligned text</div>
|
1770
|
+
*
|
1771
|
+
* In this example, the `daff-center` class is added to the `div` element, allowing
|
1772
|
+
* you to style the `div` as you wish using the class.
|
1773
|
+
*
|
1774
|
+
* ```
|
1775
|
+
*
|
1776
|
+
* ### Implementing it as an Angular host directive
|
1777
|
+
*
|
1778
|
+
* ```ts
|
1779
|
+
* @Component({
|
1780
|
+
* standalone: true,
|
1781
|
+
* selector: 'custom-component',
|
1782
|
+
* template: 'custom-component.html',
|
1783
|
+
* hostDirectives: [
|
1784
|
+
* {
|
1785
|
+
* directive: DaffTextAlignableDirective,
|
1786
|
+
* inputs: ['textAlignment'],
|
1787
|
+
* },
|
1788
|
+
* ],
|
1789
|
+
* })
|
1790
|
+
* export class CustomComponent { }
|
1791
|
+
* ```
|
1792
|
+
*
|
1793
|
+
* ```scss
|
1794
|
+
* .custom-component {
|
1795
|
+
* &.daff-left {
|
1796
|
+
* text-align: left;
|
1797
|
+
* }
|
1798
|
+
* }
|
1681
1799
|
* ```
|
1682
1800
|
*
|
1683
1801
|
* ## Why not just use CSS?
|
1684
1802
|
*
|
1685
1803
|
* While the native CSS `text-align` property can be used for static text alignment,
|
1686
1804
|
* the `DaffTextAlignableDirective` provides a structured and consistent way to handle
|
1687
|
-
* dynamic text alignment within Angular components in more complex use-cases
|
1805
|
+
* dynamic text alignment within Angular components in more complex use-cases where the
|
1688
1806
|
* application of `text-align:center` would cause unexpected side effects.
|
1689
1807
|
*/
|
1690
1808
|
class DaffTextAlignableDirective {
|
@@ -1703,10 +1821,10 @@ class DaffTextAlignableDirective {
|
|
1703
1821
|
this.textAlignment = this.defaultAlignment;
|
1704
1822
|
}
|
1705
1823
|
}
|
1706
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1707
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
1824
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffTextAlignableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
1825
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.2", type: DaffTextAlignableDirective, isStandalone: true, selector: "[daffTextAlignable]", inputs: { textAlignment: "textAlignment" }, host: { properties: { "class": "this.class" } }, usesOnChanges: true, ngImport: i0 }); }
|
1708
1826
|
}
|
1709
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1827
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffTextAlignableDirective, decorators: [{
|
1710
1828
|
type: Directive,
|
1711
1829
|
args: [{
|
1712
1830
|
selector: '[daffTextAlignable]',
|
@@ -1720,11 +1838,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImpo
|
|
1720
1838
|
}] } });
|
1721
1839
|
|
1722
1840
|
/**
|
1723
|
-
*
|
1841
|
+
* `DaffCompactableDirective` allows a component to conditionally apply a compact
|
1724
1842
|
* style by toggling a CSS class. This is useful for creating components that can
|
1725
1843
|
* switch between regular and compact styles based on the `compact` property.
|
1726
1844
|
*
|
1727
|
-
* ##
|
1845
|
+
* ## Usage
|
1846
|
+
*
|
1847
|
+
* ### Implementing it as an attribute directive
|
1728
1848
|
*
|
1729
1849
|
* ```html
|
1730
1850
|
* <div daffCompactable [compact]="isCompact">Content goes here</div>
|
@@ -1733,6 +1853,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImpo
|
|
1733
1853
|
* In this example, the `daff-compact` class is applied to the `div` element when
|
1734
1854
|
* `isCompact` is `true`, making the `div` display its compact state.
|
1735
1855
|
*
|
1856
|
+
* ### Implementing it as an Angular host directive
|
1857
|
+
*
|
1858
|
+
* ```ts
|
1859
|
+
* @Component({
|
1860
|
+
* standalone: true,
|
1861
|
+
* selector: 'custom-component',
|
1862
|
+
* template: 'custom-component.html',
|
1863
|
+
* hostDirectives: [
|
1864
|
+
* {
|
1865
|
+
* directive: DaffCompactableDirective,
|
1866
|
+
* inputs: ['compact'],
|
1867
|
+
* },
|
1868
|
+
* ],
|
1869
|
+
* })
|
1870
|
+
* export class CustomComponent { }
|
1871
|
+
* ```
|
1872
|
+
*
|
1873
|
+
* ```scss
|
1874
|
+
* .custom-component {
|
1875
|
+
* padding: 8px 16px;
|
1876
|
+
*
|
1877
|
+
* &.daff-compact {
|
1878
|
+
* padding: 4px 8px;
|
1879
|
+
* }
|
1880
|
+
* }
|
1881
|
+
* ```
|
1882
|
+
*
|
1736
1883
|
* ## Styles
|
1737
1884
|
*
|
1738
1885
|
* The `daff-compact` class should be defined in your styles to display the compact
|
@@ -1742,10 +1889,10 @@ class DaffCompactableDirective {
|
|
1742
1889
|
constructor() {
|
1743
1890
|
this.compact = false;
|
1744
1891
|
}
|
1745
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1746
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
1892
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffCompactableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
1893
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.2", type: DaffCompactableDirective, isStandalone: true, selector: "[daffCompactable]", inputs: { compact: "compact" }, host: { properties: { "class.daff-compact": "this.compact" } }, ngImport: i0 }); }
|
1747
1894
|
}
|
1748
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1895
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffCompactableDirective, decorators: [{
|
1749
1896
|
type: Directive,
|
1750
1897
|
args: [{
|
1751
1898
|
selector: '[daffCompactable]',
|
@@ -1759,7 +1906,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImpo
|
|
1759
1906
|
}] } });
|
1760
1907
|
|
1761
1908
|
/**
|
1762
|
-
*
|
1909
|
+
* `DaffManageContainerLayoutDirective` gives a component the ability to manage a `DaffContainerComponent`'s layout.
|
1763
1910
|
* By including this directive, predetermined layout styles are passed down to the container.
|
1764
1911
|
*
|
1765
1912
|
* To understand the motivation for this directive, consider:
|
@@ -1780,15 +1927,52 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImpo
|
|
1780
1927
|
* The former may inappropriately constrain the width of its child elements,
|
1781
1928
|
* while the latter (without `DaffManageContainerLayoutDirective`) may unexpectedly
|
1782
1929
|
* interfere in the layout features of its parent element (i.e. display: grid, display: flex).
|
1930
|
+
*
|
1931
|
+
* ## Usage
|
1932
|
+
*
|
1933
|
+
* ### Implementing it as an attribute directive
|
1934
|
+
*
|
1935
|
+
* ```html
|
1936
|
+
* <my-custom-component daffManageContainerLayout>
|
1937
|
+
* <daff-container size="lg"></daff-container>
|
1938
|
+
* </my-custom-component>
|
1939
|
+
* ```
|
1940
|
+
*
|
1941
|
+
* ```scss
|
1942
|
+
* :host {
|
1943
|
+
* display: grid;
|
1944
|
+
* grid-template-columns: 1fr 1fr;
|
1945
|
+
* }
|
1946
|
+
* ```
|
1947
|
+
*
|
1948
|
+
* ### Implementing it as an Angular host directive
|
1949
|
+
*
|
1950
|
+
* ```ts
|
1951
|
+
* @Component({
|
1952
|
+
* standalone: true,
|
1953
|
+
* selector: 'my-custom-component',
|
1954
|
+
* template: 'my-custom-component.html',
|
1955
|
+
* hostDirectives: [{ directive: DaffManageContainerLayoutDirective }],
|
1956
|
+
* })
|
1957
|
+
* export class MyCustomComponent { }
|
1958
|
+
*
|
1959
|
+
* ```scss
|
1960
|
+
* :host {
|
1961
|
+
* display: grid;
|
1962
|
+
* grid-template-columns: 1fr 1fr;
|
1963
|
+
* }
|
1964
|
+
* ```
|
1965
|
+
*
|
1966
|
+
* This directive will apply the `daff-manage-container-layout` class to your component, ensuring that the styles set on `:host` are passed down to the container.
|
1783
1967
|
*/
|
1784
1968
|
class DaffManageContainerLayoutDirective {
|
1785
1969
|
constructor() {
|
1786
1970
|
this.class = true;
|
1787
1971
|
}
|
1788
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1789
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
1972
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffManageContainerLayoutDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
1973
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.2", type: DaffManageContainerLayoutDirective, isStandalone: true, selector: "[daffManageContainerLayout]", host: { properties: { "class.daff-manage-container-layout": "this.class" } }, ngImport: i0 }); }
|
1790
1974
|
}
|
1791
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1975
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffManageContainerLayoutDirective, decorators: [{
|
1792
1976
|
type: Directive,
|
1793
1977
|
args: [{
|
1794
1978
|
selector: '[daffManageContainerLayout]',
|
@@ -1800,26 +1984,38 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImpo
|
|
1800
1984
|
}] } });
|
1801
1985
|
|
1802
1986
|
/**
|
1803
|
-
*
|
1804
|
-
*
|
1987
|
+
* `DaffArticleEncapsulatedDirective` is used to encapsulate custom components within an article,
|
1988
|
+
* preventing {@link DaffArticleComponent } styles from bleeding into the component.
|
1989
|
+
*
|
1990
|
+
* ## Usage
|
1805
1991
|
*
|
1806
|
-
*
|
1992
|
+
* ### Implementing it as an attribute directive
|
1807
1993
|
*
|
1808
1994
|
* ```html
|
1809
1995
|
* <my-custom-component daffArticleEncapsulated></my-custom-component>
|
1810
1996
|
* ```
|
1811
1997
|
*
|
1812
|
-
*
|
1813
|
-
*
|
1998
|
+
* ### Implementing it as an Angular host directive
|
1999
|
+
*
|
2000
|
+
* ```ts
|
2001
|
+
* @Component({
|
2002
|
+
* standalone: true,
|
2003
|
+
* selector: 'custom-component',
|
2004
|
+
* template: 'custom-component.html',
|
2005
|
+
* hostDirectives: [{ directive: DaffArticleEncapsulatedDirective }],
|
2006
|
+
* })
|
2007
|
+
* export class CustomComponent { }
|
2008
|
+
*
|
2009
|
+
* This directive will apply the `daff-ae` class to your component, ensuring that it is encapsulated from the article's styles.
|
1814
2010
|
*/
|
1815
2011
|
class DaffArticleEncapsulatedDirective {
|
1816
2012
|
constructor() {
|
1817
2013
|
this.class = true;
|
1818
2014
|
}
|
1819
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1820
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
2015
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffArticleEncapsulatedDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
2016
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.2", type: DaffArticleEncapsulatedDirective, isStandalone: true, selector: "[daffArticleEncapsulated]", host: { properties: { "class.daff-ae": "this.class" } }, ngImport: i0 }); }
|
1821
2017
|
}
|
1822
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2018
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffArticleEncapsulatedDirective, decorators: [{
|
1823
2019
|
type: Directive,
|
1824
2020
|
args: [{
|
1825
2021
|
selector: '[daffArticleEncapsulated]',
|
@@ -1870,10 +2066,10 @@ class DaffOsThemeService {
|
|
1870
2066
|
getThemePreference() {
|
1871
2067
|
return this.preference$;
|
1872
2068
|
}
|
1873
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1874
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
2069
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffOsThemeService, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
2070
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffOsThemeService, providedIn: 'root' }); }
|
1875
2071
|
}
|
1876
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2072
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffOsThemeService, decorators: [{
|
1877
2073
|
type: Injectable,
|
1878
2074
|
args: [{
|
1879
2075
|
providedIn: 'root',
|
@@ -1927,10 +2123,10 @@ class DaffThemeStorageService {
|
|
1927
2123
|
this.progressStorageEvent(DaffTheme.None);
|
1928
2124
|
this.storage.removeItem(THEME_STORAGE_KEY);
|
1929
2125
|
}
|
1930
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1931
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
2126
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffThemeStorageService, deps: [{ token: DaffServerSafePersistenceServiceToken }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
2127
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffThemeStorageService, providedIn: 'root' }); }
|
1932
2128
|
}
|
1933
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2129
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffThemeStorageService, decorators: [{
|
1934
2130
|
type: Injectable,
|
1935
2131
|
args: [{
|
1936
2132
|
providedIn: 'root',
|
@@ -2001,10 +2197,10 @@ class DaffThemingService {
|
|
2001
2197
|
? this.lightMode()
|
2002
2198
|
: this.darkMode();
|
2003
2199
|
}
|
2004
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
2005
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
2200
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffThemingService, deps: [{ token: DaffOsThemeService }, { token: DaffThemeStorageService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
2201
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffThemingService, providedIn: 'root' }); }
|
2006
2202
|
}
|
2007
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2203
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffThemingService, decorators: [{
|
2008
2204
|
type: Injectable,
|
2009
2205
|
args: [{
|
2010
2206
|
providedIn: 'root',
|
@@ -2047,10 +2243,10 @@ class DaffThemeClassSetterService {
|
|
2047
2243
|
this.renderer.removeClass(this.doc.body, DAFF_THEME_LIGHT_CSS_CLASS);
|
2048
2244
|
this.renderer.removeClass(this.doc.body, DAFF_THEME_DARK_CSS_CLASS);
|
2049
2245
|
}
|
2050
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
2051
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
2246
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffThemeClassSetterService, deps: [{ token: DOCUMENT }, { token: i0.RendererFactory2 }, { token: DaffThemingService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
2247
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffThemeClassSetterService }); }
|
2052
2248
|
}
|
2053
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2249
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffThemeClassSetterService, decorators: [{
|
2054
2250
|
type: Injectable
|
2055
2251
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
2056
2252
|
type: Inject,
|
@@ -2131,10 +2327,10 @@ class DaffFocusStackService {
|
|
2131
2327
|
this.document.activeElement.blur();
|
2132
2328
|
return this.document.activeElement;
|
2133
2329
|
}
|
2134
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
2135
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
2330
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffFocusStackService, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
2331
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffFocusStackService, providedIn: 'root' }); }
|
2136
2332
|
}
|
2137
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2333
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffFocusStackService, decorators: [{
|
2138
2334
|
type: Injectable,
|
2139
2335
|
args: [{ providedIn: 'root' }]
|
2140
2336
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
@@ -2155,14 +2351,57 @@ var DaffSizableEnum;
|
|
2155
2351
|
})(DaffSizableEnum || (DaffSizableEnum = {}));
|
2156
2352
|
|
2157
2353
|
/**
|
2158
|
-
*
|
2354
|
+
* `DaffSizableDirective` allows for dynamic sizing of a component by setting
|
2159
2355
|
* CSS classes based on the specified size.
|
2160
2356
|
*
|
2161
|
-
* ##
|
2357
|
+
* ## Usage
|
2358
|
+
*
|
2359
|
+
* ### Implementing it as an attribute directive
|
2162
2360
|
*
|
2163
2361
|
* ```html
|
2164
|
-
* <div daffSizable [size]="
|
2362
|
+
* <div daffSizable [size]="small">Sized content</div>
|
2165
2363
|
* ```
|
2364
|
+
* In this example, the `daff-small` class is applied to the `div` element, allowing you to
|
2365
|
+
* use the class to style the `div`.
|
2366
|
+
*
|
2367
|
+
* ### Implementing it as an Angular host directive
|
2368
|
+
*
|
2369
|
+
* ```ts
|
2370
|
+
* @Component({
|
2371
|
+
* standalone: true,
|
2372
|
+
* selector: 'custom-component',
|
2373
|
+
* template: 'custom-component.html',
|
2374
|
+
* hostDirectives: [
|
2375
|
+
* {
|
2376
|
+
* directive: DaffSizableDirective,
|
2377
|
+
* inputs: ['size'],
|
2378
|
+
* },
|
2379
|
+
* ],
|
2380
|
+
* })
|
2381
|
+
* export class CustomComponent { }
|
2382
|
+
* ```
|
2383
|
+
*
|
2384
|
+
* ```scss
|
2385
|
+
* .custom-component {
|
2386
|
+
* &.daff-sm {
|
2387
|
+
* width: 24px;
|
2388
|
+
* }
|
2389
|
+
*
|
2390
|
+
* &.daff-md {
|
2391
|
+
* width: 32px;
|
2392
|
+
* }
|
2393
|
+
* }
|
2394
|
+
* ```
|
2395
|
+
*
|
2396
|
+
* ## Styles
|
2397
|
+
*
|
2398
|
+
* The directive applies the following CSS classes based on the size:
|
2399
|
+
*
|
2400
|
+
* - `daff-xs`: Applied when the size is `xs`.
|
2401
|
+
* - `daff-sm`: Applied when the size is `sm`.
|
2402
|
+
* - `daff-md`: Applied when the size is `md`.
|
2403
|
+
* - `daff-lg`: Applied when the size is `lg`.
|
2404
|
+
* - `daff-xl`: Applied when the size is `xl`.
|
2166
2405
|
*/
|
2167
2406
|
class DaffSizableDirective {
|
2168
2407
|
/**
|
@@ -2188,10 +2427,10 @@ class DaffSizableDirective {
|
|
2188
2427
|
this.size = this.defaultSize;
|
2189
2428
|
}
|
2190
2429
|
}
|
2191
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
2192
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
2430
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffSizableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
2431
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.2", type: DaffSizableDirective, isStandalone: true, selector: "[daffSizable]", inputs: { size: "size" }, host: { properties: { "class": "this.class" } }, usesOnChanges: true, ngImport: i0 }); }
|
2193
2432
|
}
|
2194
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2433
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffSizableDirective, decorators: [{
|
2195
2434
|
type: Directive,
|
2196
2435
|
args: [{
|
2197
2436
|
selector: '[daffSizable]',
|