@daffodil/design 0.73.0 → 0.75.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -22
- package/accordion/accordion/accordion/accordion.component.d.ts +3 -19
- package/article/README.md +19 -13
- package/article/examples/article-blockquote/article-blockquote.component.d.ts +1 -1
- package/article/examples/article-code-block/article-code-block.component.d.ts +1 -1
- package/article/examples/article-code-inline/article-code-inline.component.d.ts +1 -1
- package/article/examples/article-headings/article-headings.component.d.ts +1 -1
- package/article/examples/article-hr/article-hr.component.d.ts +1 -1
- package/article/examples/article-link/article-link.component.d.ts +1 -1
- package/article/examples/article-meta/article-meta.component.d.ts +1 -1
- package/article/examples/article-ol/article-ol.component.d.ts +1 -1
- package/article/examples/article-table/article-table.component.d.ts +1 -1
- package/article/examples/article-ul/article-ul.component.d.ts +1 -1
- package/article/examples/public_api.d.ts +0 -1
- package/button/button/button-sizable.directive.d.ts +10 -0
- package/button/button/button.component.d.ts +17 -27
- package/button/examples/basic-button/basic-button.component.d.ts +1 -1
- package/button/examples/flat-button/flat-button.component.d.ts +1 -1
- package/button/examples/icon-button/icon-button.component.d.ts +1 -1
- package/button/examples/public_api.d.ts +0 -8
- package/button/examples/raised-button/raised-button.component.d.ts +1 -1
- package/button/examples/sizeable-button/sizeable-button.component.d.ts +1 -1
- package/button/examples/statusable-button/statusable-button.component.d.ts +1 -1
- package/button/examples/stroked-button/stroked-button.component.d.ts +1 -1
- package/button/examples/underline-button/underline-button.component.d.ts +1 -1
- package/button/public_api.d.ts +1 -0
- package/callout/callout/callout.component.d.ts +6 -38
- package/callout/examples/callout-text-alignment/callout-text-alignment.component.d.ts +1 -1
- package/callout/examples/callout-theming/callout-theming.component.d.ts +1 -1
- package/callout/examples/callout-with-grid/callout-with-grid.component.d.ts +1 -1
- package/callout/examples/compact-callout/compact-callout.component.d.ts +1 -1
- package/callout/examples/public_api.d.ts +0 -4
- package/card/card/card.component.d.ts +3 -21
- package/card/examples/basic-card/basic-card.component.d.ts +1 -1
- package/card/examples/card-orientation/card-orientation.component.d.ts +1 -1
- package/card/examples/card-theming/card-theming.component.d.ts +1 -1
- package/card/examples/linkable-card/linkable-card.component.d.ts +1 -1
- package/card/examples/public_api.d.ts +0 -6
- package/card/examples/raised-card/raised-card.component.d.ts +1 -1
- package/card/examples/stroked-card/stroked-card.component.d.ts +1 -1
- package/checkbox/examples/basic-checkbox/basic-checkbox.component.d.ts +1 -1
- package/checkbox/examples/checkbox-set/checkbox-set.component.d.ts +1 -1
- package/checkbox/examples/examples.d.ts +0 -2
- package/checkbox/examples/public_api.d.ts +0 -1
- package/container/README.md +11 -8
- package/container/container/container.component.d.ts +3 -22
- package/container/examples/container-sizes/container-sizes.component.d.ts +1 -1
- package/container/examples/public_api.d.ts +0 -1
- package/core/article-encapsulated/article-encapsulated.directive.d.ts +19 -0
- package/core/article-encapsulated/public_api.d.ts +1 -1
- package/core/breakpoints/noop.service.d.ts +13 -0
- package/core/breakpoints/provider.d.ts +6 -0
- package/core/breakpoints/public_api.d.ts +3 -0
- package/core/colorable/colorable.d.ts +36 -2
- package/core/colorable/colorable.directive.d.ts +55 -0
- package/core/colorable/public_api.d.ts +1 -1
- package/core/compactable/compactable.directive.d.ts +25 -0
- package/core/compactable/public_api.d.ts +1 -1
- package/core/manage-container-layout/manage-container-layout.directive.d.ts +29 -0
- package/core/manage-container-layout/public_api.d.ts +1 -1
- package/core/public_api.d.ts +1 -1
- package/core/sizable/public_api.d.ts +1 -1
- package/core/sizable/sizable.d.ts +4 -2
- package/core/sizable/sizable.directive.d.ts +38 -0
- package/core/skeletonable/public_api.d.ts +1 -1
- package/core/skeletonable/skeletonable.d.ts +0 -1
- package/core/skeletonable/skeletonable.directive.d.ts +17 -0
- package/core/statusable/public_api.d.ts +1 -1
- package/core/statusable/statusable.d.ts +16 -0
- package/core/statusable/statusable.directive.d.ts +38 -0
- package/core/text-alignable/public_api.d.ts +1 -1
- package/core/text-alignable/text-alignable.d.ts +1 -2
- package/core/text-alignable/text-alignable.directive.d.ts +42 -0
- package/esm2022/accordion/accordion/accordion/accordion.component.mjs +11 -23
- package/esm2022/article/examples/article-blockquote/article-blockquote.component.mjs +4 -3
- package/esm2022/article/examples/article-code-block/article-code-block.component.mjs +4 -3
- package/esm2022/article/examples/article-code-inline/article-code-inline.component.mjs +4 -3
- package/esm2022/article/examples/article-headings/article-headings.component.mjs +3 -3
- package/esm2022/article/examples/article-hr/article-hr.component.mjs +4 -3
- package/esm2022/article/examples/article-link/article-link.component.mjs +4 -3
- package/esm2022/article/examples/article-meta/article-meta.component.mjs +4 -3
- package/esm2022/article/examples/article-ol/article-ol.component.mjs +4 -3
- package/esm2022/article/examples/article-table/article-table.component.mjs +4 -3
- package/esm2022/article/examples/article-ul/article-ul.component.mjs +4 -3
- package/esm2022/article/examples/public_api.mjs +1 -2
- package/esm2022/button/button/button-sizable.directive.mjs +14 -0
- package/esm2022/button/button/button.component.mjs +32 -10
- package/esm2022/button/examples/basic-button/basic-button.component.mjs +10 -4
- package/esm2022/button/examples/flat-button/flat-button.component.mjs +10 -4
- package/esm2022/button/examples/icon-button/icon-button.component.mjs +5 -4
- package/esm2022/button/examples/public_api.mjs +1 -9
- package/esm2022/button/examples/raised-button/raised-button.component.mjs +10 -4
- package/esm2022/button/examples/sizeable-button/sizeable-button.component.mjs +5 -4
- package/esm2022/button/examples/statusable-button/statusable-button.component.mjs +5 -4
- package/esm2022/button/examples/stroked-button/stroked-button.component.mjs +10 -4
- package/esm2022/button/examples/underline-button/underline-button.component.mjs +10 -4
- package/esm2022/button/public_api.mjs +2 -1
- package/esm2022/callout/callout/callout.component.mjs +28 -22
- package/esm2022/callout/examples/callout-text-alignment/callout-text-alignment.component.mjs +20 -10
- package/esm2022/callout/examples/callout-theming/callout-theming.component.mjs +17 -9
- package/esm2022/callout/examples/callout-with-grid/callout-with-grid.component.mjs +12 -4
- package/esm2022/callout/examples/compact-callout/compact-callout.component.mjs +12 -4
- package/esm2022/callout/examples/public_api.mjs +1 -5
- package/esm2022/card/card/card.component.mjs +12 -16
- package/esm2022/card/examples/basic-card/basic-card.component.mjs +12 -4
- package/esm2022/card/examples/card-orientation/card-orientation.component.mjs +20 -10
- package/esm2022/card/examples/card-theming/card-theming.component.mjs +11 -6
- package/esm2022/card/examples/linkable-card/linkable-card.component.mjs +15 -8
- package/esm2022/card/examples/public_api.mjs +1 -7
- package/esm2022/card/examples/raised-card/raised-card.component.mjs +15 -8
- package/esm2022/card/examples/stroked-card/stroked-card.component.mjs +15 -8
- package/esm2022/checkbox/examples/basic-checkbox/basic-checkbox.component.mjs +12 -6
- package/esm2022/checkbox/examples/checkbox-set/checkbox-set.component.mjs +12 -7
- package/esm2022/checkbox/examples/examples.mjs +1 -7
- package/esm2022/checkbox/examples/public_api.mjs +1 -2
- package/esm2022/container/container/container.component.mjs +15 -22
- package/esm2022/container/examples/container-sizes/container-sizes.component.mjs +11 -6
- package/esm2022/container/examples/public_api.mjs +1 -2
- package/esm2022/core/article-encapsulated/article-encapsulated.directive.mjs +33 -0
- package/esm2022/core/article-encapsulated/public_api.mjs +2 -2
- package/esm2022/core/breakpoints/noop.service.mjs +25 -0
- package/esm2022/core/breakpoints/provider.mjs +13 -0
- package/esm2022/core/breakpoints/public_api.mjs +4 -0
- package/esm2022/core/colorable/colorable.directive.mjs +77 -0
- package/esm2022/core/colorable/colorable.mjs +37 -2
- package/esm2022/core/colorable/public_api.mjs +2 -2
- package/esm2022/core/compactable/compactable.directive.mjs +41 -0
- package/esm2022/core/compactable/public_api.mjs +2 -2
- package/esm2022/core/manage-container-layout/manage-container-layout.directive.mjs +43 -0
- package/esm2022/core/manage-container-layout/public_api.mjs +2 -2
- package/esm2022/core/public_api.mjs +2 -2
- package/esm2022/core/sizable/public_api.mjs +2 -2
- package/esm2022/core/sizable/sizable.directive.mjs +53 -0
- package/esm2022/core/sizable/sizable.mjs +2 -3
- package/esm2022/core/skeletonable/public_api.mjs +2 -2
- package/esm2022/core/skeletonable/skeletonable.directive.mjs +33 -0
- package/esm2022/core/skeletonable/skeletonable.mjs +1 -1
- package/esm2022/core/statusable/public_api.mjs +2 -2
- package/esm2022/core/statusable/statusable.directive.mjs +50 -0
- package/esm2022/core/statusable/statusable.mjs +4 -1
- package/esm2022/core/text-alignable/public_api.mjs +2 -2
- package/esm2022/core/text-alignable/text-alignable.directive.mjs +53 -0
- package/esm2022/core/text-alignable/text-alignable.mjs +1 -1
- package/esm2022/daffodil-design.mjs +2 -2
- package/esm2022/hero/examples/compact-hero/compact-hero.component.mjs +10 -4
- package/esm2022/hero/examples/hero-text-alignment/hero-text-alignment.component.mjs +20 -10
- package/esm2022/hero/examples/hero-theming/hero-theming.component.mjs +15 -8
- package/esm2022/hero/examples/hero-with-grid/hero-with-grid.component.mjs +12 -4
- package/esm2022/hero/examples/public_api.mjs +1 -5
- package/esm2022/hero/hero/hero.component.mjs +28 -22
- package/esm2022/image/examples/basic-image/basic-image.component.mjs +4 -3
- package/esm2022/image/examples/load-image/load-image.component.mjs +6 -5
- package/esm2022/image/examples/public_api.mjs +4 -7
- package/esm2022/image/examples/skeleton-image/skeleton-image.component.mjs +4 -3
- package/esm2022/image/image/image.component.mjs +14 -23
- package/esm2022/index.mjs +6 -0
- package/esm2022/input/examples/basic-input/basic-input.component.mjs +4 -3
- package/esm2022/input/examples/examples.mjs +5 -9
- package/esm2022/input/examples/input-disabled/input-disabled.component.mjs +4 -3
- package/esm2022/input/examples/input-error/input-error.component.mjs +9 -4
- package/esm2022/input/examples/input-with-form-field/input-with-form-field.component.mjs +4 -3
- package/esm2022/link-set/link-set/link-set.component.mjs +12 -22
- package/esm2022/list/examples/basic-list/basic-list.component.mjs +4 -3
- package/esm2022/list/examples/icon-list/icon-list.component.mjs +10 -4
- package/esm2022/list/examples/multiline-list/multiline-list.component.mjs +4 -3
- package/esm2022/list/examples/nav-list/nav-list.component.mjs +10 -4
- package/esm2022/list/examples/public_api.mjs +1 -2
- package/esm2022/list/list/list.component.mjs +12 -21
- package/esm2022/loading-icon/examples/examples.mjs +1 -3
- package/esm2022/loading-icon/examples/loading-icon-color/loading-icon-color.component.mjs +12 -7
- package/esm2022/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.component.mjs +4 -3
- package/esm2022/loading-icon/loading-icon/loading-icon.component.mjs +21 -28
- package/esm2022/media-gallery/examples/basic-media-gallery/basic-media-gallery.component.mjs +7 -5
- package/esm2022/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.component.mjs +7 -5
- package/esm2022/media-gallery/examples/public_api.mjs +1 -4
- package/esm2022/media-gallery/examples/skeleton-media-gallery/skeleton-media-gallery.component.mjs +7 -5
- package/esm2022/media-gallery/media-gallery/media-gallery.component.mjs +17 -23
- package/esm2022/menu/examples/basic-menu/basic-menu.component.mjs +5 -3
- package/esm2022/menu/examples/basic-menu/menu-content/menu-content.component.mjs +5 -4
- package/esm2022/menu/examples/public_api.mjs +2 -3
- package/esm2022/modal/examples/basic-modal/basic-modal.component.mjs +5 -4
- package/esm2022/modal/examples/basic-modal/modal-content.component.mjs +5 -3
- package/esm2022/modal/examples/public_api.mjs +2 -3
- package/esm2022/modal/modal/modal.component.mjs +42 -6
- package/esm2022/modal/modal-actions/modal-actions.component.mjs +15 -5
- package/esm2022/modal/modal-close/modal-close.directive.mjs +47 -0
- package/esm2022/modal/modal-content/modal-content.component.mjs +15 -5
- package/esm2022/modal/modal-header/modal-header.component.mjs +16 -4
- package/esm2022/modal/modal-title/modal-title.directive.mjs +33 -6
- package/esm2022/modal/modal.module.mjs +18 -5
- package/esm2022/modal/public_api.mjs +2 -1
- package/esm2022/modal/service/modal.service.mjs +3 -2
- package/esm2022/navbar/examples/basic-navbar/basic-navbar.component.mjs +5 -3
- package/esm2022/navbar/examples/contained-navbar/contained-navbar.component.mjs +12 -5
- package/esm2022/navbar/examples/navbar-theming/navbar-theming.component.mjs +15 -8
- package/esm2022/navbar/examples/public_api.mjs +1 -5
- package/esm2022/navbar/examples/raised-navbar/raised-navbar.component.mjs +5 -3
- package/esm2022/navbar/navbar/navbar.component.mjs +22 -28
- package/esm2022/notification/daffodil-design-notification.mjs +2 -2
- package/esm2022/notification/examples/default-notification/default-notification.component.mjs +18 -5
- package/esm2022/notification/examples/dismissible-notification/dismissible-notification.component.mjs +16 -4
- package/esm2022/notification/examples/notification-orientations/notification-orientations.component.mjs +15 -7
- package/esm2022/notification/examples/notification-status/notification-status.component.mjs +19 -10
- package/esm2022/notification/examples/notification-with-actions/notification-with-actions.component.mjs +30 -0
- package/esm2022/notification/examples/public_api.mjs +7 -9
- package/esm2022/notification/index.mjs +2 -0
- package/esm2022/notification/notification/notification.component.mjs +51 -42
- package/esm2022/paginator/daffodil-design-paginator.mjs +2 -2
- package/esm2022/paginator/examples/basic-paginator/basic-paginator.component.mjs +6 -3
- package/esm2022/paginator/examples/link-paginator/link-paginator.component.mjs +8 -4
- package/esm2022/paginator/examples/public_api.mjs +1 -2
- package/esm2022/paginator/index.mjs +2 -0
- package/esm2022/paginator/paginator/paginator.component.mjs +1 -1
- package/esm2022/progress-bar/daffodil-design-progress-bar.mjs +2 -2
- package/esm2022/progress-bar/examples/progress-bar-default/progress-bar-default.component.mjs +4 -3
- package/esm2022/progress-bar/examples/progress-bar-indeterminate/progress-bar-indeterminate.component.mjs +4 -3
- package/esm2022/progress-bar/examples/progress-bar-themes/progress-bar-themes.component.mjs +5 -4
- package/esm2022/progress-bar/examples/public_api.mjs +4 -7
- package/esm2022/progress-bar/index.mjs +2 -0
- package/esm2022/progress-bar/progress-bar.component.mjs +18 -23
- package/esm2022/public_api.mjs +1 -3
- package/esm2022/quantity-field/examples/basic-quantity-field/basic-quantity-field.component.mjs +11 -6
- package/esm2022/quantity-field/examples/custom-range-quantity-field/custom-range-quantity-field.component.mjs +11 -6
- package/esm2022/quantity-field/examples/disabled-quantity-field/disabled-quantity-field.component.mjs +11 -6
- package/esm2022/quantity-field/examples/public_api.mjs +1 -5
- package/esm2022/quantity-field/examples/select-max-quantity-field/select-max-quantity-field.component.mjs +11 -6
- package/esm2022/radio/examples/basic-radio/basic-radio.component.mjs +5 -4
- package/esm2022/radio/examples/examples.mjs +1 -5
- package/esm2022/radio/examples/public_api.mjs +1 -2
- package/esm2022/sidebar/examples/basic-sidebar/basic-sidebar.component.mjs +4 -3
- package/esm2022/sidebar/examples/over-and-under-sidebars/over-and-under-sidebars.component.mjs +15 -8
- package/esm2022/sidebar/examples/public_api.mjs +5 -9
- package/esm2022/sidebar/examples/side-fixed-sidebar/side-fixed-sidebar.component.mjs +5 -3
- package/esm2022/sidebar/examples/sidebar-with-sticky-content/sidebar-with-sticky-content.component.mjs +4 -3
- package/esm2022/toast/examples/default-toast/default-toast.component.mjs +4 -3
- package/esm2022/toast/examples/public_api.mjs +5 -9
- package/esm2022/toast/examples/toast-positions/toast-positions.component.mjs +22 -5
- package/esm2022/toast/examples/toast-status/toast-status.component.mjs +5 -4
- package/esm2022/toast/examples/toast-with-custom-duration/toast-with-custom-duration.component.mjs +4 -3
- package/esm2022/toast/toast/toast-template.component.mjs +2 -2
- package/esm2022/toast/toast/toast.component.mjs +16 -22
- package/esm2022/tree/examples/basic-tree/basic-tree.component.mjs +6 -5
- package/esm2022/tree/examples/public_api.mjs +1 -2
- package/esm2022/tree/tree/tree.component.mjs +13 -23
- package/fesm2022/daffodil-design-accordion.mjs +9 -21
- package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
- package/fesm2022/daffodil-design-article-examples.mjs +22 -43
- package/fesm2022/daffodil-design-article-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-button-examples.mjs +41 -205
- package/fesm2022/daffodil-design-button-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-button.mjs +42 -11
- package/fesm2022/daffodil-design-button.mjs.map +1 -1
- package/fesm2022/daffodil-design-callout-examples.mjs +29 -130
- package/fesm2022/daffodil-design-callout-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-callout.mjs +25 -20
- package/fesm2022/daffodil-design-callout.mjs.map +1 -1
- package/fesm2022/daffodil-design-card-examples.mjs +39 -209
- package/fesm2022/daffodil-design-card-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-card.mjs +11 -15
- package/fesm2022/daffodil-design-card.mjs.map +1 -1
- package/fesm2022/daffodil-design-checkbox-examples.mjs +14 -64
- package/fesm2022/daffodil-design-checkbox-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-container-examples.mjs +9 -32
- package/fesm2022/daffodil-design-container-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-container.mjs +13 -20
- package/fesm2022/daffodil-design-container.mjs.map +1 -1
- package/fesm2022/daffodil-design-hero-examples.mjs +27 -136
- package/fesm2022/daffodil-design-hero-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-hero.mjs +25 -20
- package/fesm2022/daffodil-design-hero.mjs.map +1 -1
- package/fesm2022/daffodil-design-image-examples.mjs +11 -75
- package/fesm2022/daffodil-design-image-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-image.mjs +12 -21
- package/fesm2022/daffodil-design-image.mjs.map +1 -1
- package/fesm2022/daffodil-design-input-examples.mjs +15 -94
- package/fesm2022/daffodil-design-input-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-link-set.mjs +10 -20
- package/fesm2022/daffodil-design-link-set.mjs.map +1 -1
- package/fesm2022/daffodil-design-list-examples.mjs +20 -140
- package/fesm2022/daffodil-design-list-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-list.mjs +12 -21
- package/fesm2022/daffodil-design-list.mjs.map +1 -1
- package/fesm2022/daffodil-design-loading-icon-examples.mjs +10 -53
- package/fesm2022/daffodil-design-loading-icon-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-loading-icon.mjs +19 -26
- package/fesm2022/daffodil-design-loading-icon.mjs.map +1 -1
- package/fesm2022/daffodil-design-media-gallery-examples.mjs +10 -82
- package/fesm2022/daffodil-design-media-gallery-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-media-gallery.mjs +14 -20
- package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
- package/fesm2022/daffodil-design-menu-examples.mjs +10 -39
- package/fesm2022/daffodil-design-menu-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-modal-examples.mjs +8 -33
- package/fesm2022/daffodil-design-modal-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-modal.mjs +169 -23
- package/fesm2022/daffodil-design-modal.mjs.map +1 -1
- package/fesm2022/daffodil-design-navbar-examples.mjs +20 -113
- package/fesm2022/daffodil-design-navbar-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-navbar.mjs +20 -26
- package/fesm2022/daffodil-design-navbar.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification-examples.mjs +63 -132
- package/fesm2022/daffodil-design-notification-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification.mjs +64 -56
- package/fesm2022/daffodil-design-notification.mjs.map +1 -1
- package/fesm2022/daffodil-design-paginator-examples.mjs +12 -28
- package/fesm2022/daffodil-design-paginator-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
- package/fesm2022/daffodil-design-progress-bar-examples.mjs +10 -73
- package/fesm2022/daffodil-design-progress-bar-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-progress-bar.mjs +16 -21
- package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
- package/fesm2022/daffodil-design-quantity-field-examples.mjs +25 -126
- package/fesm2022/daffodil-design-quantity-field-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-radio-examples.mjs +4 -31
- package/fesm2022/daffodil-design-radio-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-sidebar-examples.mjs +22 -130
- package/fesm2022/daffodil-design-sidebar-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast-examples.mjs +20 -142
- package/fesm2022/daffodil-design-toast-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast.mjs +15 -21
- package/fesm2022/daffodil-design-toast.mjs.map +1 -1
- package/fesm2022/daffodil-design-tree-examples.mjs +6 -34
- package/fesm2022/daffodil-design-tree-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-tree.mjs +11 -21
- package/fesm2022/daffodil-design-tree.mjs.map +1 -1
- package/fesm2022/daffodil-design.mjs +409 -199
- package/fesm2022/daffodil-design.mjs.map +1 -1
- package/hero/examples/compact-hero/compact-hero.component.d.ts +1 -1
- package/hero/examples/hero-text-alignment/hero-text-alignment.component.d.ts +1 -1
- package/hero/examples/hero-theming/hero-theming.component.d.ts +1 -1
- package/hero/examples/hero-with-grid/hero-with-grid.component.d.ts +1 -1
- package/hero/examples/public_api.d.ts +0 -4
- package/hero/hero/hero.component.d.ts +6 -38
- package/image/examples/basic-image/basic-image.component.d.ts +1 -1
- package/image/examples/load-image/load-image.component.d.ts +1 -1
- package/image/examples/public_api.d.ts +2 -2
- package/image/examples/skeleton-image/skeleton-image.component.d.ts +1 -1
- package/image/image/image.component.d.ts +5 -22
- package/index.d.ts +2 -2
- package/input/examples/basic-input/basic-input.component.d.ts +1 -1
- package/input/examples/examples.d.ts +2 -2
- package/input/examples/input-disabled/input-disabled.component.d.ts +1 -1
- package/input/examples/input-error/input-error.component.d.ts +1 -1
- package/input/examples/input-with-form-field/input-with-form-field.component.d.ts +1 -1
- package/link-set/link-set/link-set.component.d.ts +3 -22
- package/list/examples/basic-list/basic-list.component.d.ts +1 -1
- package/list/examples/icon-list/icon-list.component.d.ts +1 -1
- package/list/examples/multiline-list/multiline-list.component.d.ts +1 -1
- package/list/examples/nav-list/nav-list.component.d.ts +1 -1
- package/list/examples/public_api.d.ts +0 -1
- package/list/list/list.component.d.ts +5 -18
- package/loading-icon/README.md +1 -1
- package/loading-icon/examples/examples.d.ts +0 -2
- package/loading-icon/examples/loading-icon-color/loading-icon-color.component.d.ts +1 -1
- package/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.component.d.ts +1 -1
- package/loading-icon/loading-icon/loading-icon.component.d.ts +3 -22
- package/media-gallery/examples/basic-media-gallery/basic-media-gallery.component.d.ts +1 -1
- package/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.component.d.ts +1 -1
- package/media-gallery/examples/public_api.d.ts +0 -3
- package/media-gallery/examples/skeleton-media-gallery/skeleton-media-gallery.component.d.ts +1 -1
- package/media-gallery/media-gallery/media-gallery.component.d.ts +5 -25
- package/menu/examples/basic-menu/basic-menu.component.d.ts +1 -1
- package/menu/examples/basic-menu/menu-content/menu-content.component.d.ts +1 -1
- package/menu/examples/public_api.d.ts +2 -2
- package/modal/README.md +22 -37
- package/modal/examples/basic-modal/basic-modal.component.d.ts +1 -1
- package/modal/examples/basic-modal/modal-content.component.d.ts +1 -1
- package/modal/examples/public_api.d.ts +2 -2
- package/modal/modal/modal.component.d.ts +17 -1
- package/modal/modal-actions/modal-actions.component.d.ts +1 -0
- package/modal/modal-close/modal-close.directive.d.ts +24 -0
- package/modal/modal-content/modal-content.component.d.ts +1 -0
- package/modal/modal-header/modal-header.component.d.ts +6 -1
- package/modal/modal-title/modal-title.directive.d.ts +12 -1
- package/modal/modal.module.d.ts +7 -4
- package/modal/public_api.d.ts +1 -0
- package/navbar/examples/basic-navbar/basic-navbar.component.d.ts +1 -1
- package/navbar/examples/contained-navbar/contained-navbar.component.d.ts +1 -1
- package/navbar/examples/navbar-theming/navbar-theming.component.d.ts +1 -1
- package/navbar/examples/public_api.d.ts +0 -4
- package/navbar/examples/raised-navbar/raised-navbar.component.d.ts +1 -1
- package/navbar/navbar/navbar.component.d.ts +3 -25
- package/notification/README.md +49 -23
- package/notification/examples/default-notification/default-notification.component.d.ts +3 -1
- package/notification/examples/dismissible-notification/dismissible-notification.component.d.ts +3 -1
- package/notification/examples/notification-orientations/notification-orientations.component.d.ts +1 -1
- package/notification/examples/notification-status/notification-status.component.d.ts +1 -1
- package/notification/examples/notification-with-actions/notification-with-actions.component.d.ts +8 -0
- package/notification/examples/public_api.d.ts +6 -2
- package/notification/index.d.ts +0 -4
- package/notification/notification/notification.component.d.ts +21 -30
- package/notification/src/notification-theme.scss +1 -1
- package/package.json +1 -1
- package/paginator/examples/basic-paginator/basic-paginator.component.d.ts +1 -1
- package/paginator/examples/link-paginator/link-paginator.component.d.ts +1 -1
- package/paginator/examples/public_api.d.ts +0 -1
- package/paginator/index.d.ts +0 -4
- package/progress-bar/examples/progress-bar-default/progress-bar-default.component.d.ts +1 -1
- package/progress-bar/examples/progress-bar-indeterminate/progress-bar-indeterminate.component.d.ts +1 -1
- package/progress-bar/examples/progress-bar-themes/progress-bar-themes.component.d.ts +1 -1
- package/progress-bar/examples/public_api.d.ts +2 -2
- package/progress-bar/index.d.ts +0 -4
- package/progress-bar/progress-bar.component.d.ts +7 -22
- package/public_api.d.ts +0 -1
- package/quantity-field/examples/basic-quantity-field/basic-quantity-field.component.d.ts +1 -1
- package/quantity-field/examples/custom-range-quantity-field/custom-range-quantity-field.component.d.ts +1 -1
- package/quantity-field/examples/disabled-quantity-field/disabled-quantity-field.component.d.ts +1 -1
- package/quantity-field/examples/public_api.d.ts +0 -4
- package/quantity-field/examples/select-max-quantity-field/select-max-quantity-field.component.d.ts +1 -1
- package/radio/examples/basic-radio/basic-radio.component.d.ts +1 -1
- package/radio/examples/examples.d.ts +0 -2
- package/radio/examples/public_api.d.ts +0 -1
- package/scss/state/skeleton/_mixins.scss +1 -1
- package/scss/typography/_index.scss +1 -1
- package/scss/typography/utilities/_variables.scss +14 -4
- package/sidebar/README.md +1 -1
- package/sidebar/examples/basic-sidebar/basic-sidebar.component.d.ts +1 -1
- package/sidebar/examples/over-and-under-sidebars/over-and-under-sidebars.component.d.ts +1 -1
- package/sidebar/examples/public_api.d.ts +2 -2
- package/sidebar/examples/side-fixed-sidebar/side-fixed-sidebar.component.d.ts +1 -1
- package/sidebar/examples/sidebar-with-sticky-content/sidebar-with-sticky-content.component.d.ts +1 -1
- package/toast/README.md +2 -2
- package/toast/examples/default-toast/default-toast.component.d.ts +1 -1
- package/toast/examples/public_api.d.ts +5 -2
- package/toast/examples/toast-positions/toast-positions.component.d.ts +1 -1
- package/toast/examples/toast-status/toast-status.component.d.ts +1 -1
- package/toast/examples/toast-with-custom-duration/toast-with-custom-duration.component.d.ts +1 -1
- package/toast/toast/toast.component.d.ts +7 -25
- package/tree/examples/basic-tree/basic-tree.component.d.ts +1 -1
- package/tree/examples/public_api.d.ts +0 -1
- package/tree/tree/tree.component.d.ts +5 -19
- package/article/examples/article-examples.module.d.ts +0 -18
- package/button/examples/basic-button/basic-button.module.d.ts +0 -9
- package/button/examples/flat-button/flat-button.module.d.ts +0 -9
- package/button/examples/icon-button/icon-button.module.d.ts +0 -9
- package/button/examples/raised-button/raised-button.module.d.ts +0 -9
- package/button/examples/sizeable-button/sizeable-button.module.d.ts +0 -9
- package/button/examples/statusable-button/statusable-button.module.d.ts +0 -9
- package/button/examples/stroked-button/stroked-button.module.d.ts +0 -9
- package/button/examples/underline-button/underline-button.module.d.ts +0 -9
- package/callout/examples/callout-text-alignment/callout-text-alignment.module.d.ts +0 -13
- package/callout/examples/callout-theming/callout-theming.module.d.ts +0 -12
- package/callout/examples/callout-with-grid/callout-with-grid.module.d.ts +0 -13
- package/callout/examples/compact-callout/compact-callout.module.d.ts +0 -12
- package/card/examples/basic-card/basic-card.module.d.ts +0 -12
- package/card/examples/card-orientation/card-orientation.module.d.ts +0 -13
- package/card/examples/card-theming/card-theming.module.d.ts +0 -11
- package/card/examples/linkable-card/linkable-card.module.d.ts +0 -13
- package/card/examples/raised-card/raised-card.module.d.ts +0 -12
- package/card/examples/stroked-card/stroked-card.module.d.ts +0 -13
- package/checkbox/examples/basic-checkbox/basic-checkbox.module.d.ts +0 -10
- package/checkbox/examples/checkbox-set/checkbox-set.module.d.ts +0 -10
- package/container/examples/container-sizes/container-sizes.module.d.ts +0 -10
- package/core/article-encapsulated/article-encapsulated-mixin.d.ts +0 -15
- package/core/colorable/color-in-palette.d.ts +0 -1
- package/core/colorable/colorable-enum.d.ts +0 -10
- package/core/colorable/colorable-mixin.d.ts +0 -23
- package/core/compactable/compactable-mixin.d.ts +0 -14
- package/core/manage-container-layout/manage-container-layout-mixin.d.ts +0 -17
- package/core/sizable/sizable-mixin.d.ts +0 -15
- package/core/skeletonable/skeletonable-mixin.d.ts +0 -15
- package/core/statusable/statusable-mixin.d.ts +0 -16
- package/core/text-alignable/text-alignable-mixin.d.ts +0 -19
- package/esm2022/article/examples/article-examples.module.mjs +0 -35
- package/esm2022/button/examples/basic-button/basic-button.module.mjs +0 -28
- package/esm2022/button/examples/flat-button/flat-button.module.mjs +0 -28
- package/esm2022/button/examples/icon-button/icon-button.module.mjs +0 -28
- package/esm2022/button/examples/raised-button/raised-button.module.mjs +0 -28
- package/esm2022/button/examples/sizeable-button/sizeable-button.module.mjs +0 -28
- package/esm2022/button/examples/statusable-button/statusable-button.module.mjs +0 -28
- package/esm2022/button/examples/stroked-button/stroked-button.module.mjs +0 -28
- package/esm2022/button/examples/underline-button/underline-button.module.mjs +0 -28
- package/esm2022/callout/examples/callout-text-alignment/callout-text-alignment.module.mjs +0 -41
- package/esm2022/callout/examples/callout-theming/callout-theming.module.mjs +0 -37
- package/esm2022/callout/examples/callout-with-grid/callout-with-grid.module.mjs +0 -41
- package/esm2022/callout/examples/compact-callout/compact-callout.module.mjs +0 -37
- package/esm2022/card/examples/basic-card/basic-card.module.mjs +0 -40
- package/esm2022/card/examples/card-orientation/card-orientation.module.mjs +0 -44
- package/esm2022/card/examples/card-theming/card-theming.module.mjs +0 -36
- package/esm2022/card/examples/linkable-card/linkable-card.module.mjs +0 -44
- package/esm2022/card/examples/raised-card/raised-card.module.mjs +0 -40
- package/esm2022/card/examples/stroked-card/stroked-card.module.mjs +0 -44
- package/esm2022/checkbox/examples/basic-checkbox/basic-checkbox.module.mjs +0 -33
- package/esm2022/checkbox/examples/checkbox-set/checkbox-set.module.mjs +0 -33
- package/esm2022/container/examples/container-sizes/container-sizes.module.mjs +0 -32
- package/esm2022/core/article-encapsulated/article-encapsulated-mixin.mjs +0 -12
- package/esm2022/core/colorable/color-in-palette.mjs +0 -5
- package/esm2022/core/colorable/colorable-enum.mjs +0 -12
- package/esm2022/core/colorable/colorable-mixin.mjs +0 -42
- package/esm2022/core/compactable/compactable-mixin.mjs +0 -26
- package/esm2022/core/manage-container-layout/manage-container-layout-mixin.mjs +0 -14
- package/esm2022/core/sizable/sizable-mixin.mjs +0 -31
- package/esm2022/core/skeletonable/skeletonable-mixin.mjs +0 -26
- package/esm2022/core/statusable/statusable-mixin.mjs +0 -32
- package/esm2022/core/text-alignable/text-alignable-mixin.mjs +0 -35
- package/esm2022/examples/examples.mjs +0 -2
- package/esm2022/examples/public_api.mjs +0 -2
- package/esm2022/hero/examples/compact-hero/compact-hero.module.mjs +0 -40
- package/esm2022/hero/examples/hero-text-alignment/hero-text-alignment.module.mjs +0 -41
- package/esm2022/hero/examples/hero-theming/hero-theming.module.mjs +0 -40
- package/esm2022/hero/examples/hero-with-grid/hero-with-grid.module.mjs +0 -41
- package/esm2022/image/examples/basic-image/basic-image.module.mjs +0 -24
- package/esm2022/image/examples/load-image/load-image.module.mjs +0 -28
- package/esm2022/image/examples/skeleton-image/skeleton-image.module.mjs +0 -24
- package/esm2022/input/examples/basic-input/basic-input.module.mjs +0 -24
- package/esm2022/input/examples/input-disabled/input-disabled.module.mjs +0 -24
- package/esm2022/input/examples/input-error/input-error.module.mjs +0 -28
- package/esm2022/input/examples/input-with-form-field/input-with-form-field.module.mjs +0 -24
- package/esm2022/list/examples/basic-list/basic-list.module.mjs +0 -28
- package/esm2022/list/examples/icon-list/icon-list.module.mjs +0 -32
- package/esm2022/list/examples/list-examples.module.mjs +0 -33
- package/esm2022/list/examples/multiline-list/multiline-list.module.mjs +0 -32
- package/esm2022/list/examples/nav-list/nav-list.module.mjs +0 -32
- package/esm2022/loading-icon/examples/loading-icon-color/loading-icon-color.module.mjs +0 -32
- package/esm2022/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.module.mjs +0 -24
- package/esm2022/media-gallery/examples/basic-media-gallery/basic-media-gallery.module.mjs +0 -29
- package/esm2022/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.module.mjs +0 -29
- package/esm2022/media-gallery/examples/skeleton-media-gallery/skeleton-media-gallery.module.mjs +0 -29
- package/esm2022/menu/examples/basic-menu/basic-menu.module.mjs +0 -35
- package/esm2022/modal/examples/basic-modal/basic-modal.module.mjs +0 -31
- package/esm2022/navbar/examples/basic-navbar/basic-navbar.module.mjs +0 -33
- package/esm2022/navbar/examples/contained-navbar/contained-navbar.module.mjs +0 -33
- package/esm2022/navbar/examples/navbar-theming/navbar-theming.module.mjs +0 -33
- package/esm2022/navbar/examples/raised-navbar/raised-navbar.module.mjs +0 -29
- package/esm2022/notification/examples/default-notification/default-notification.module.mjs +0 -36
- package/esm2022/notification/examples/dismissible-notification/dismissible-notification.module.mjs +0 -36
- package/esm2022/notification/examples/notification-orientations/notification-orientations.module.mjs +0 -40
- package/esm2022/notification/examples/notification-status/notification-status.module.mjs +0 -40
- package/esm2022/paginator/examples/paginator-examples.module.mjs +0 -27
- package/esm2022/progress-bar/examples/progress-bar-default/progress-bar-default.module.mjs +0 -24
- package/esm2022/progress-bar/examples/progress-bar-indeterminate/progress-bar-indeterminate.module.mjs +0 -24
- package/esm2022/progress-bar/examples/progress-bar-themes/progress-bar-themes.module.mjs +0 -28
- package/esm2022/quantity-field/examples/basic-quantity-field/basic-quantity-field.module.mjs +0 -35
- package/esm2022/quantity-field/examples/custom-range-quantity-field/custom-range-quantity-field.module.mjs +0 -35
- package/esm2022/quantity-field/examples/disabled-quantity-field/disabled-quantity-field.module.mjs +0 -35
- package/esm2022/quantity-field/examples/select-max-quantity-field/select-max-quantity-field.module.mjs +0 -35
- package/esm2022/radio/examples/basic-radio/basic-radio.module.mjs +0 -29
- package/esm2022/sidebar/examples/basic-sidebar/basic-sidebar.module.mjs +0 -32
- package/esm2022/sidebar/examples/over-and-under-sidebars/over-and-under-sidebars.module.mjs +0 -44
- package/esm2022/sidebar/examples/side-fixed-sidebar/side-fixed-sidebar.module.mjs +0 -32
- package/esm2022/sidebar/examples/sidebar-with-sticky-content/sidebar-with-sticky-content.module.mjs +0 -28
- package/esm2022/toast/examples/default-toast/default-toast.module.mjs +0 -36
- package/esm2022/toast/examples/toast-positions/toast-positions.module.mjs +0 -57
- package/esm2022/toast/examples/toast-status/toast-status.module.mjs +0 -40
- package/esm2022/toast/examples/toast-with-custom-duration/toast-with-custom-duration.module.mjs +0 -32
- package/esm2022/tree/examples/basic-tree/basic-tree.module.mjs +0 -32
- package/examples/examples.d.ts +0 -12
- package/examples/public_api.d.ts +0 -1
- package/hero/examples/compact-hero/compact-hero.module.d.ts +0 -12
- package/hero/examples/hero-text-alignment/hero-text-alignment.module.d.ts +0 -13
- package/hero/examples/hero-theming/hero-theming.module.d.ts +0 -12
- package/hero/examples/hero-with-grid/hero-with-grid.module.d.ts +0 -13
- package/image/examples/basic-image/basic-image.module.d.ts +0 -8
- package/image/examples/load-image/load-image.module.d.ts +0 -9
- package/image/examples/skeleton-image/skeleton-image.module.d.ts +0 -8
- package/input/examples/basic-input/basic-input.module.d.ts +0 -8
- package/input/examples/input-disabled/input-disabled.module.d.ts +0 -8
- package/input/examples/input-error/input-error.module.d.ts +0 -9
- package/input/examples/input-with-form-field/input-with-form-field.module.d.ts +0 -8
- package/list/examples/basic-list/basic-list.module.d.ts +0 -9
- package/list/examples/icon-list/icon-list.module.d.ts +0 -10
- package/list/examples/list-examples.module.d.ts +0 -11
- package/list/examples/multiline-list/multiline-list.module.d.ts +0 -10
- package/list/examples/nav-list/nav-list.module.d.ts +0 -10
- package/loading-icon/examples/loading-icon-color/loading-icon-color.module.d.ts +0 -10
- package/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.module.d.ts +0 -8
- package/media-gallery/examples/basic-media-gallery/basic-media-gallery.module.d.ts +0 -9
- package/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.module.d.ts +0 -9
- package/media-gallery/examples/skeleton-media-gallery/skeleton-media-gallery.module.d.ts +0 -9
- package/menu/examples/basic-menu/basic-menu.module.d.ts +0 -11
- package/modal/examples/basic-modal/basic-modal.module.d.ts +0 -10
- package/navbar/examples/basic-navbar/basic-navbar.module.d.ts +0 -11
- package/navbar/examples/contained-navbar/contained-navbar.module.d.ts +0 -11
- package/navbar/examples/navbar-theming/navbar-theming.module.d.ts +0 -11
- package/navbar/examples/raised-navbar/raised-navbar.module.d.ts +0 -10
- package/notification/examples/default-notification/default-notification.module.d.ts +0 -11
- package/notification/examples/dismissible-notification/dismissible-notification.module.d.ts +0 -11
- package/notification/examples/notification-orientations/notification-orientations.module.d.ts +0 -12
- package/notification/examples/notification-status/notification-status.module.d.ts +0 -12
- package/paginator/examples/paginator-examples.module.d.ts +0 -10
- package/progress-bar/examples/progress-bar-default/progress-bar-default.module.d.ts +0 -8
- package/progress-bar/examples/progress-bar-indeterminate/progress-bar-indeterminate.module.d.ts +0 -8
- package/progress-bar/examples/progress-bar-themes/progress-bar-themes.module.d.ts +0 -9
- package/quantity-field/examples/basic-quantity-field/basic-quantity-field.module.d.ts +0 -10
- package/quantity-field/examples/custom-range-quantity-field/custom-range-quantity-field.module.d.ts +0 -10
- package/quantity-field/examples/disabled-quantity-field/disabled-quantity-field.module.d.ts +0 -10
- package/quantity-field/examples/select-max-quantity-field/select-max-quantity-field.module.d.ts +0 -10
- package/radio/examples/basic-radio/basic-radio.module.d.ts +0 -9
- package/sidebar/examples/basic-sidebar/basic-sidebar.module.d.ts +0 -10
- package/sidebar/examples/over-and-under-sidebars/over-and-under-sidebars.module.d.ts +0 -13
- package/sidebar/examples/side-fixed-sidebar/side-fixed-sidebar.module.d.ts +0 -10
- package/sidebar/examples/sidebar-with-sticky-content/sidebar-with-sticky-content.module.d.ts +0 -9
- package/toast/examples/default-toast/default-toast.module.d.ts +0 -11
- package/toast/examples/toast-positions/toast-positions.module.d.ts +0 -12
- package/toast/examples/toast-status/toast-status.module.d.ts +0 -12
- package/toast/examples/toast-with-custom-duration/toast-with-custom-duration.module.d.ts +0 -10
- package/tree/examples/basic-tree/basic-tree.module.d.ts +0 -10
@@ -1,15 +1,16 @@
|
|
1
1
|
import * as i2 from '@angular/common';
|
2
|
-
import { CommonModule, DOCUMENT } from '@angular/common';
|
2
|
+
import { CommonModule, isPlatformBrowser, DOCUMENT } from '@angular/common';
|
3
3
|
import * as i0 from '@angular/core';
|
4
|
-
import { Component, ViewEncapsulation, HostBinding, Input, ContentChild, ChangeDetectionStrategy, NgModule, Optional, Self, HostListener, EventEmitter, ElementRef, ViewChild, Output, Directive, ContentChildren, Injectable, Inject, APP_INITIALIZER } from '@angular/core';
|
4
|
+
import { Component, ViewEncapsulation, HostBinding, Input, ContentChild, ChangeDetectionStrategy, NgModule, Optional, Self, HostListener, EventEmitter, ElementRef, ViewChild, Output, Directive, ContentChildren, Injectable, InjectionToken, inject, PLATFORM_ID, Inject, APP_INITIALIZER } from '@angular/core';
|
5
5
|
import * as i2$1 from '@fortawesome/angular-fontawesome';
|
6
6
|
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
7
7
|
import { faChevronDown } from '@fortawesome/free-solid-svg-icons';
|
8
8
|
import * as i1 from '@angular/forms';
|
9
9
|
import { UntypedFormControl, ReactiveFormsModule } from '@angular/forms';
|
10
10
|
import { coerceNumberProperty } from '@angular/cdk/coercion';
|
11
|
-
import { Subject,
|
11
|
+
import { Subject, of, fromEventPattern, merge, fromEvent, EMPTY, combineLatest } from 'rxjs';
|
12
12
|
import { takeUntil, startWith, map, catchError, filter, shareReplay } from 'rxjs/operators';
|
13
|
+
import { BreakpointObserver } from '@angular/cdk/layout';
|
13
14
|
import { DaffServerSafePersistenceServiceToken } from '@daffodil/core';
|
14
15
|
|
15
16
|
class DaffErrorStateMatcher {
|
@@ -1415,61 +1416,116 @@ function daffPrefixableMixin(Base) {
|
|
1415
1416
|
return PrefixableDirective;
|
1416
1417
|
}
|
1417
1418
|
|
1419
|
+
/**
|
1420
|
+
* Enumerates the available color palette options for a component.
|
1421
|
+
* These values can be used to apply specific color styles to components within the
|
1422
|
+
* application.
|
1423
|
+
*/
|
1418
1424
|
var DaffPaletteEnum;
|
1419
1425
|
(function (DaffPaletteEnum) {
|
1420
|
-
|
1421
|
-
|
1422
|
-
|
1423
|
-
DaffPaletteEnum["
|
1424
|
-
|
1425
|
-
|
1426
|
-
|
1427
|
-
DaffPaletteEnum["
|
1426
|
+
/**
|
1427
|
+
* Your primary color.
|
1428
|
+
*/
|
1429
|
+
DaffPaletteEnum["Primary"] = "primary";
|
1430
|
+
/**
|
1431
|
+
* Your secondary color.
|
1432
|
+
*/
|
1433
|
+
DaffPaletteEnum["Secondary"] = "secondary";
|
1434
|
+
/**
|
1435
|
+
* Your tertiary color.
|
1436
|
+
*/
|
1437
|
+
DaffPaletteEnum["Tertiary"] = "tertiary";
|
1438
|
+
/**
|
1439
|
+
* Black. It's dark.
|
1440
|
+
*/
|
1441
|
+
DaffPaletteEnum["Black"] = "black";
|
1442
|
+
/**
|
1443
|
+
* White. It's bright.
|
1444
|
+
*/
|
1445
|
+
DaffPaletteEnum["White"] = "white";
|
1446
|
+
/**
|
1447
|
+
* The default color for your theme.
|
1448
|
+
*/
|
1449
|
+
DaffPaletteEnum["Theme"] = "theme";
|
1450
|
+
/**
|
1451
|
+
* A color that constrats against your defined theme.
|
1452
|
+
*/
|
1453
|
+
DaffPaletteEnum["ThemeContrast"] = "theme-contrast";
|
1428
1454
|
})(DaffPaletteEnum || (DaffPaletteEnum = {}));
|
1429
1455
|
|
1430
|
-
|
1431
|
-
|
1432
|
-
|
1433
|
-
|
1456
|
+
const colorInPalette = (color) => Object.values(DaffPaletteEnum).includes(color);
|
1457
|
+
const validateColor = (color) => {
|
1458
|
+
if (color !== undefined && !colorInPalette(color)) {
|
1459
|
+
console.warn(color + ' is not a valid color in DaffPalette');
|
1460
|
+
}
|
1461
|
+
};
|
1434
1462
|
/**
|
1435
|
-
*
|
1436
|
-
*
|
1463
|
+
* The `DaffColorableDirective` allows a component to conditionally apply color-specific
|
1464
|
+
* styles by setting CSS classes based on the specified color. This directive is useful
|
1465
|
+
* for applying different color palettes to a component in an Angular application.
|
1466
|
+
*
|
1467
|
+
* ## Usage
|
1437
1468
|
*
|
1438
|
-
*
|
1439
|
-
*
|
1469
|
+
* ## Example
|
1470
|
+
*
|
1471
|
+
* ```html
|
1472
|
+
* <div daffColorable [color]="componentColor">Colored content</div>
|
1473
|
+
* ```
|
1474
|
+
*
|
1475
|
+
* ## Styles
|
1476
|
+
*
|
1477
|
+
* The directive applies the following CSS classes based on the color:
|
1478
|
+
*
|
1479
|
+
* - `daff-primary`: Applied when the color is `primary`.
|
1480
|
+
* - `daff-secondary`: Applied when the color is `secondary`.
|
1481
|
+
* - `daff-tertiary`: Applied when the color is `tertiary`.
|
1482
|
+
* - `daff-black`: Applied when the color is `black`.
|
1483
|
+
* - `daff-white`: Applied when the color is `white`.
|
1484
|
+
* - `daff-theme`: Applied when the color is `theme`.
|
1485
|
+
* - `daff-theme-contrast`: Applied when the color is `theme-contrast`.
|
1440
1486
|
*/
|
1441
|
-
|
1442
|
-
|
1443
|
-
|
1444
|
-
|
1445
|
-
|
1446
|
-
|
1447
|
-
|
1448
|
-
|
1449
|
-
|
1450
|
-
|
1451
|
-
|
1452
|
-
|
1453
|
-
|
1454
|
-
|
1455
|
-
|
1456
|
-
|
1457
|
-
|
1458
|
-
|
1459
|
-
|
1460
|
-
this._color = incomingColor;
|
1461
|
-
}
|
1487
|
+
class DaffColorableDirective {
|
1488
|
+
/**
|
1489
|
+
* Dynamically sets the CSS classes based on the color.
|
1490
|
+
* @docs-private
|
1491
|
+
*/
|
1492
|
+
get class() {
|
1493
|
+
return {
|
1494
|
+
'daff-primary': this.color === DaffPaletteEnum.Primary,
|
1495
|
+
'daff-secondary': this.color === DaffPaletteEnum.Secondary,
|
1496
|
+
'daff-tertiary': this.color === DaffPaletteEnum.Tertiary,
|
1497
|
+
'daff-black': this.color === DaffPaletteEnum.Black,
|
1498
|
+
'daff-white': this.color === DaffPaletteEnum.White,
|
1499
|
+
'daff-theme': this.color === DaffPaletteEnum.Theme,
|
1500
|
+
'daff-theme-contrast': this.color === DaffPaletteEnum.ThemeContrast,
|
1501
|
+
};
|
1502
|
+
}
|
1503
|
+
ngOnChanges(changes) {
|
1504
|
+
if (!changes.color.currentValue) {
|
1505
|
+
this.color = this.defaultColor;
|
1462
1506
|
}
|
1463
|
-
|
1464
|
-
|
1465
|
-
|
1507
|
+
}
|
1508
|
+
ngOnInit() {
|
1509
|
+
validateColor(this.color);
|
1510
|
+
if (!this.color) {
|
1511
|
+
this.color = this.defaultColor;
|
1466
1512
|
}
|
1467
1513
|
}
|
1468
|
-
;
|
1469
|
-
|
1470
|
-
Input()(DaffColorableMixinClass.prototype, 'color');
|
1471
|
-
return DaffColorableMixinClass;
|
1514
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffColorableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
1515
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.10", type: DaffColorableDirective, isStandalone: true, selector: "[daffColorable]", inputs: { color: "color" }, host: { properties: { "class": "this.class" } }, usesOnChanges: true, ngImport: i0 }); }
|
1472
1516
|
}
|
1517
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffColorableDirective, decorators: [{
|
1518
|
+
type: Directive,
|
1519
|
+
args: [{
|
1520
|
+
selector: '[daffColorable]',
|
1521
|
+
standalone: true,
|
1522
|
+
}]
|
1523
|
+
}], propDecorators: { class: [{
|
1524
|
+
type: HostBinding,
|
1525
|
+
args: ['class']
|
1526
|
+
}], color: [{
|
1527
|
+
type: Input
|
1528
|
+
}] } });
|
1473
1529
|
|
1474
1530
|
var DaffBreakpoints;
|
1475
1531
|
(function (DaffBreakpoints) {
|
@@ -1481,12 +1537,46 @@ var DaffBreakpoints;
|
|
1481
1537
|
DaffBreakpoints["MOBILE"] = "(min-width: 480px)";
|
1482
1538
|
})(DaffBreakpoints || (DaffBreakpoints = {}));
|
1483
1539
|
|
1540
|
+
/**
|
1541
|
+
* A stubbed out breakpoint observer service.
|
1542
|
+
*/
|
1543
|
+
class NoopBreakpointObserver {
|
1544
|
+
// eslint-disable-next-line @angular-eslint/no-empty-lifecycle-method, @angular-eslint/use-lifecycle-interface
|
1545
|
+
ngOnDestroy() { }
|
1546
|
+
isMatched(value) {
|
1547
|
+
return false;
|
1548
|
+
}
|
1549
|
+
observe(value) {
|
1550
|
+
return of();
|
1551
|
+
}
|
1552
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: NoopBreakpointObserver, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1553
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: NoopBreakpointObserver, providedIn: 'root' }); }
|
1554
|
+
}
|
1555
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: NoopBreakpointObserver, decorators: [{
|
1556
|
+
type: Injectable,
|
1557
|
+
args: [{
|
1558
|
+
providedIn: 'root',
|
1559
|
+
}]
|
1560
|
+
}] });
|
1561
|
+
|
1562
|
+
/**
|
1563
|
+
* Provides a {@link NoopBreakpointObserver} if the platform is not browser.
|
1564
|
+
*/
|
1565
|
+
const SERVER_SAFE_BREAKPOINT_OBSERVER = new InjectionToken('SERVER_SAFE_BREAKPOINT_OBSERVER', {
|
1566
|
+
factory: () => isPlatformBrowser(inject(PLATFORM_ID))
|
1567
|
+
? inject(BreakpointObserver)
|
1568
|
+
: inject(NoopBreakpointObserver),
|
1569
|
+
});
|
1570
|
+
|
1484
1571
|
/**
|
1485
1572
|
* A basic constructor type useful for mixins
|
1486
1573
|
* See https://blog.mariusschulz.com/2017/05/26/typescript-2-2-mixin-classes
|
1487
1574
|
* for a really good explanation of why mixins are useful.
|
1488
1575
|
*/
|
1489
1576
|
|
1577
|
+
/**
|
1578
|
+
* The `DaffStatusEnum` enumerates the possible status values for a component.
|
1579
|
+
*/
|
1490
1580
|
var DaffStatusEnum;
|
1491
1581
|
(function (DaffStatusEnum) {
|
1492
1582
|
DaffStatusEnum["Warn"] = "warn";
|
@@ -1494,62 +1584,83 @@ var DaffStatusEnum;
|
|
1494
1584
|
DaffStatusEnum["Success"] = "success";
|
1495
1585
|
})(DaffStatusEnum || (DaffStatusEnum = {}));
|
1496
1586
|
|
1497
|
-
|
1498
|
-
|
1499
|
-
|
1500
|
-
|
1501
|
-
|
1502
|
-
|
1503
|
-
|
1504
|
-
|
1505
|
-
|
1506
|
-
|
1507
|
-
|
1508
|
-
|
1509
|
-
|
1510
|
-
|
1511
|
-
|
1512
|
-
|
1513
|
-
|
1514
|
-
|
1515
|
-
|
1516
|
-
|
1517
|
-
|
1518
|
-
|
1519
|
-
|
1520
|
-
|
1587
|
+
/**
|
1588
|
+
* The `DaffStatusableDirective` allows a component to conditionally apply status-specific
|
1589
|
+
* styles by setting CSS classes based on the specified status. This directive is useful
|
1590
|
+
* for indicating different statuses such as warnings, errors, or success states.
|
1591
|
+
*
|
1592
|
+
* ## Example
|
1593
|
+
*
|
1594
|
+
* ```html
|
1595
|
+
* <div daffStatusable [status]="componentStatus">Status content</div>
|
1596
|
+
* ```
|
1597
|
+
*
|
1598
|
+
* ## Styles
|
1599
|
+
*
|
1600
|
+
* The directive applies the following CSS classes based on the status:
|
1601
|
+
*
|
1602
|
+
* - `daff-warn`: Applied when the status is `Warn`.
|
1603
|
+
* - `daff-danger`: Applied when the status is `Danger`.
|
1604
|
+
* - `daff-success`: Applied when the status is `Success`.
|
1605
|
+
*/
|
1606
|
+
class DaffStatusableDirective {
|
1607
|
+
/**
|
1608
|
+
* Dynamically sets the CSS classes based on the status.
|
1609
|
+
* @docs-private
|
1610
|
+
*/
|
1611
|
+
get class() {
|
1612
|
+
return {
|
1613
|
+
'daff-warn': this.status === DaffStatusEnum.Warn,
|
1614
|
+
'daff-danger': this.status === DaffStatusEnum.Danger,
|
1615
|
+
'daff-success': this.status === DaffStatusEnum.Success,
|
1616
|
+
};
|
1521
1617
|
}
|
1522
|
-
;
|
1523
|
-
|
1524
|
-
Input()(DaffStatusMixinClass.prototype, 'status');
|
1525
|
-
return DaffStatusMixinClass;
|
1618
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffStatusableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
1619
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.10", type: DaffStatusableDirective, isStandalone: true, selector: "[daffStatusable]", inputs: { status: "status" }, host: { properties: { "class": "this.class" } }, ngImport: i0 }); }
|
1526
1620
|
}
|
1621
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffStatusableDirective, decorators: [{
|
1622
|
+
type: Directive,
|
1623
|
+
args: [{
|
1624
|
+
selector: '[daffStatusable]',
|
1625
|
+
standalone: true,
|
1626
|
+
}]
|
1627
|
+
}], propDecorators: { class: [{
|
1628
|
+
type: HostBinding,
|
1629
|
+
args: ['class']
|
1630
|
+
}], status: [{
|
1631
|
+
type: Input
|
1632
|
+
}] } });
|
1527
1633
|
|
1528
|
-
|
1529
|
-
|
1530
|
-
|
1531
|
-
|
1532
|
-
|
1533
|
-
|
1534
|
-
|
1535
|
-
|
1536
|
-
|
1537
|
-
|
1538
|
-
|
1539
|
-
|
1540
|
-
|
1541
|
-
|
1542
|
-
|
1543
|
-
|
1544
|
-
|
1545
|
-
this._skeleton = incomingSkeleton;
|
1546
|
-
}
|
1547
|
-
constructor(...args) {
|
1548
|
-
super(...args);
|
1549
|
-
this.skeleton = defaultSkeleton;
|
1550
|
-
}
|
1551
|
-
};
|
1634
|
+
/**
|
1635
|
+
* The `DaffSkeletonableDirective` allows a component to display a skeleton loading
|
1636
|
+
* state by conditionally applying a CSS class. This is useful for indicating to
|
1637
|
+
* users that content is loading or being processed. This directive can be used to
|
1638
|
+
* apply a skeleton loading state to any component by toggling the `skeleton`
|
1639
|
+
* input property. When `skeleton` is `true`, the `daff-skeleton` CSS class
|
1640
|
+
* is applied, which should style the component to look like a loading placeholder.
|
1641
|
+
*
|
1642
|
+
* The styles for the`daff-skeleton` class should be defined component's
|
1643
|
+
* stylesheets to display the loading state as desired.
|
1644
|
+
*/
|
1645
|
+
class DaffSkeletonableDirective {
|
1646
|
+
constructor() {
|
1647
|
+
this.skeleton = false;
|
1648
|
+
}
|
1649
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffSkeletonableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
1650
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.10", type: DaffSkeletonableDirective, isStandalone: true, selector: "[daffSkeletonable]", inputs: { skeleton: "skeleton" }, host: { properties: { "class.daff-skeleton": "this.skeleton" } }, ngImport: i0 }); }
|
1552
1651
|
}
|
1652
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffSkeletonableDirective, decorators: [{
|
1653
|
+
type: Directive,
|
1654
|
+
args: [{
|
1655
|
+
selector: '[daffSkeletonable]',
|
1656
|
+
standalone: true,
|
1657
|
+
}]
|
1658
|
+
}], propDecorators: { skeleton: [{
|
1659
|
+
type: Input
|
1660
|
+
}, {
|
1661
|
+
type: HostBinding,
|
1662
|
+
args: ['class.daff-skeleton']
|
1663
|
+
}] } });
|
1553
1664
|
|
1554
1665
|
var DaffTextAlignmentEnum;
|
1555
1666
|
(function (DaffTextAlignmentEnum) {
|
@@ -1558,91 +1669,166 @@ var DaffTextAlignmentEnum;
|
|
1558
1669
|
DaffTextAlignmentEnum["Right"] = "right";
|
1559
1670
|
})(DaffTextAlignmentEnum || (DaffTextAlignmentEnum = {}));
|
1560
1671
|
|
1561
|
-
|
1562
|
-
|
1563
|
-
|
1564
|
-
|
1565
|
-
|
1566
|
-
|
1567
|
-
|
1568
|
-
|
1569
|
-
|
1570
|
-
|
1571
|
-
|
1572
|
-
|
1573
|
-
|
1574
|
-
|
1575
|
-
|
1576
|
-
|
1577
|
-
|
1578
|
-
|
1579
|
-
|
1580
|
-
|
1581
|
-
|
1582
|
-
|
1583
|
-
|
1584
|
-
|
1585
|
-
|
1586
|
-
this.textAlignment
|
1672
|
+
/**
|
1673
|
+
* The `DaffTextAlignableDirective` allows for dynamic text alignment of a component
|
1674
|
+
* by setting CSS classes based on the specified text alignment. This directive is
|
1675
|
+
* useful when text alignment needs to be managed dynamically in an Angular component.
|
1676
|
+
*
|
1677
|
+
* ## Example
|
1678
|
+
*
|
1679
|
+
* ```html
|
1680
|
+
* <div daffTextAlignable textAlignment="center">Aligned text</div>
|
1681
|
+
* ```
|
1682
|
+
*
|
1683
|
+
* ## Why not just use CSS?
|
1684
|
+
*
|
1685
|
+
* While the native CSS `text-align` property can be used for static text alignment,
|
1686
|
+
* the `DaffTextAlignableDirective` provides a structured and consistent way to handle
|
1687
|
+
* dynamic text alignment within Angular components in more complex use-cases
|
1688
|
+
* application of `text-align:center` would cause unexpected side effects.
|
1689
|
+
*/
|
1690
|
+
class DaffTextAlignableDirective {
|
1691
|
+
/**
|
1692
|
+
* @docs-private
|
1693
|
+
*/
|
1694
|
+
get class() {
|
1695
|
+
return {
|
1696
|
+
'daff-left': this.textAlignment === DaffTextAlignmentEnum.Left,
|
1697
|
+
'daff-center': this.textAlignment === DaffTextAlignmentEnum.Center,
|
1698
|
+
'daff-right': this.textAlignment === DaffTextAlignmentEnum.Right,
|
1699
|
+
};
|
1700
|
+
}
|
1701
|
+
ngOnChanges(changes) {
|
1702
|
+
if (!changes.textAlignment?.currentValue) {
|
1703
|
+
this.textAlignment = this.defaultAlignment;
|
1587
1704
|
}
|
1588
1705
|
}
|
1589
|
-
;
|
1590
|
-
|
1591
|
-
Input()(DaffTextAlignableMixin.prototype, 'textAlignment');
|
1592
|
-
return DaffTextAlignableMixin;
|
1706
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffTextAlignableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
1707
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.10", type: DaffTextAlignableDirective, isStandalone: true, selector: "[daffTextAlignable]", inputs: { textAlignment: "textAlignment" }, host: { properties: { "class": "this.class" } }, usesOnChanges: true, ngImport: i0 }); }
|
1593
1708
|
}
|
1709
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffTextAlignableDirective, decorators: [{
|
1710
|
+
type: Directive,
|
1711
|
+
args: [{
|
1712
|
+
selector: '[daffTextAlignable]',
|
1713
|
+
standalone: true,
|
1714
|
+
}]
|
1715
|
+
}], propDecorators: { class: [{
|
1716
|
+
type: HostBinding,
|
1717
|
+
args: ['class']
|
1718
|
+
}], textAlignment: [{
|
1719
|
+
type: Input
|
1720
|
+
}] } });
|
1594
1721
|
|
1595
|
-
|
1596
|
-
|
1597
|
-
|
1598
|
-
|
1599
|
-
|
1600
|
-
|
1601
|
-
|
1602
|
-
|
1603
|
-
|
1604
|
-
|
1605
|
-
|
1606
|
-
|
1607
|
-
|
1608
|
-
|
1609
|
-
|
1610
|
-
|
1611
|
-
|
1612
|
-
|
1613
|
-
|
1614
|
-
|
1615
|
-
|
1616
|
-
|
1617
|
-
|
1618
|
-
};
|
1722
|
+
/**
|
1723
|
+
* The `DaffCompactableDirective` allows a component to conditionally apply a compact
|
1724
|
+
* style by toggling a CSS class. This is useful for creating components that can
|
1725
|
+
* switch between regular and compact styles based on the `compact` property.
|
1726
|
+
*
|
1727
|
+
* ## Example
|
1728
|
+
*
|
1729
|
+
* ```html
|
1730
|
+
* <div daffCompactable [compact]="isCompact">Content goes here</div>
|
1731
|
+
* ```
|
1732
|
+
*
|
1733
|
+
* In this example, the `daff-compact` class is applied to the `div` element when
|
1734
|
+
* `isCompact` is `true`, making the `div` display its compact state.
|
1735
|
+
*
|
1736
|
+
* ## Styles
|
1737
|
+
*
|
1738
|
+
* The `daff-compact` class should be defined in your styles to display the compact
|
1739
|
+
* state as desired.
|
1740
|
+
*/
|
1741
|
+
class DaffCompactableDirective {
|
1742
|
+
constructor() {
|
1743
|
+
this.compact = false;
|
1744
|
+
}
|
1745
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCompactableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
1746
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.10", type: DaffCompactableDirective, isStandalone: true, selector: "[daffCompactable]", inputs: { compact: "compact" }, host: { properties: { "class.daff-compact": "this.compact" } }, ngImport: i0 }); }
|
1619
1747
|
}
|
1748
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCompactableDirective, decorators: [{
|
1749
|
+
type: Directive,
|
1750
|
+
args: [{
|
1751
|
+
selector: '[daffCompactable]',
|
1752
|
+
standalone: true,
|
1753
|
+
}]
|
1754
|
+
}], propDecorators: { compact: [{
|
1755
|
+
type: Input
|
1756
|
+
}, {
|
1757
|
+
type: HostBinding,
|
1758
|
+
args: ['class.daff-compact']
|
1759
|
+
}] } });
|
1620
1760
|
|
1621
1761
|
/**
|
1622
|
-
* A
|
1623
|
-
*
|
1624
|
-
*
|
1762
|
+
* A directive that gives a component the ability to manage a DaffContainerComponent's layout.
|
1763
|
+
* By including this directive, predetermined layout styles are passed down to the container.
|
1764
|
+
*
|
1765
|
+
* To understand the motivation for this directive, consider:
|
1766
|
+
*
|
1767
|
+
* ```html
|
1768
|
+
* <daff-container>
|
1769
|
+
* <daff-hero></daff-hero>
|
1770
|
+
* </daff-container>
|
1771
|
+
* ```
|
1772
|
+
* vs.
|
1773
|
+
*
|
1774
|
+
* ```html
|
1775
|
+
* <daff-hero>
|
1776
|
+
* <daff-container></daff-container>
|
1777
|
+
* </daff-hero>
|
1778
|
+
* ```
|
1779
|
+
*
|
1780
|
+
* The former may inappropriately constrain the width of its child elements,
|
1781
|
+
* while the latter (without `DaffManageContainerLayoutDirective`) may unexpectedly
|
1782
|
+
* interfere in the layout features of its parent element (i.e. display: grid, display: flex).
|
1625
1783
|
*/
|
1626
|
-
|
1627
|
-
|
1628
|
-
|
1629
|
-
|
1630
|
-
|
1631
|
-
|
1632
|
-
};
|
1784
|
+
class DaffManageContainerLayoutDirective {
|
1785
|
+
constructor() {
|
1786
|
+
this.class = true;
|
1787
|
+
}
|
1788
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffManageContainerLayoutDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
1789
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.10", type: DaffManageContainerLayoutDirective, isStandalone: true, selector: "[daffManageContainerLayout]", host: { properties: { "class.daff-manage-container-layout": "this.class" } }, ngImport: i0 }); }
|
1633
1790
|
}
|
1791
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffManageContainerLayoutDirective, decorators: [{
|
1792
|
+
type: Directive,
|
1793
|
+
args: [{
|
1794
|
+
selector: '[daffManageContainerLayout]',
|
1795
|
+
standalone: true,
|
1796
|
+
}]
|
1797
|
+
}], propDecorators: { class: [{
|
1798
|
+
type: HostBinding,
|
1799
|
+
args: ['class.daff-manage-container-layout']
|
1800
|
+
}] } });
|
1634
1801
|
|
1635
1802
|
/**
|
1636
|
-
*
|
1803
|
+
* The `DaffArticleEncapsulatedDirective` is used to encapsulate custom components
|
1804
|
+
* within an article, preventing article styles from bleeding into the component.
|
1805
|
+
*
|
1806
|
+
* ## Example
|
1807
|
+
*
|
1808
|
+
* ```html
|
1809
|
+
* <my-custom-component daffArticleEncapsulated></my-custom-component>
|
1810
|
+
* ```
|
1811
|
+
*
|
1812
|
+
* This directive will apply the `daff-ae` class to your component, ensuring that it is encapsulated
|
1813
|
+
* from the article's styles.
|
1637
1814
|
*/
|
1638
|
-
|
1639
|
-
|
1640
|
-
|
1641
|
-
|
1642
|
-
|
1643
|
-
|
1644
|
-
};
|
1815
|
+
class DaffArticleEncapsulatedDirective {
|
1816
|
+
constructor() {
|
1817
|
+
this.class = true;
|
1818
|
+
}
|
1819
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffArticleEncapsulatedDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
1820
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.10", type: DaffArticleEncapsulatedDirective, isStandalone: true, selector: "[daffArticleEncapsulated]", host: { properties: { "class.daff-ae": "this.class" } }, ngImport: i0 }); }
|
1645
1821
|
}
|
1822
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffArticleEncapsulatedDirective, decorators: [{
|
1823
|
+
type: Directive,
|
1824
|
+
args: [{
|
1825
|
+
selector: '[daffArticleEncapsulated]',
|
1826
|
+
standalone: true,
|
1827
|
+
}]
|
1828
|
+
}], propDecorators: { class: [{
|
1829
|
+
type: HostBinding,
|
1830
|
+
args: ['class.daff-ae']
|
1831
|
+
}] } });
|
1646
1832
|
|
1647
1833
|
/**
|
1648
1834
|
* The possible states of a theme.
|
@@ -1957,8 +2143,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImpo
|
|
1957
2143
|
}] }] });
|
1958
2144
|
|
1959
2145
|
/**
|
1960
|
-
*
|
1961
|
-
* In order to be sizable, a component class must implement this property.
|
2146
|
+
* Interfaces that gives a component the ability to customize sizing for component specific UI.
|
1962
2147
|
*/
|
1963
2148
|
var DaffSizableEnum;
|
1964
2149
|
(function (DaffSizableEnum) {
|
@@ -1969,35 +2154,55 @@ var DaffSizableEnum;
|
|
1969
2154
|
DaffSizableEnum["XLarge"] = "xl";
|
1970
2155
|
})(DaffSizableEnum || (DaffSizableEnum = {}));
|
1971
2156
|
|
1972
|
-
|
1973
|
-
|
1974
|
-
|
1975
|
-
|
1976
|
-
|
1977
|
-
|
1978
|
-
|
1979
|
-
|
1980
|
-
|
1981
|
-
|
1982
|
-
|
1983
|
-
|
1984
|
-
|
1985
|
-
|
1986
|
-
|
1987
|
-
|
1988
|
-
|
1989
|
-
|
2157
|
+
/**
|
2158
|
+
* The `DaffSizableDirective` allows for dynamic sizing of a component by setting
|
2159
|
+
* CSS classes based on the specified size.
|
2160
|
+
*
|
2161
|
+
* ## Example
|
2162
|
+
*
|
2163
|
+
* ```html
|
2164
|
+
* <div daffSizable [size]="componentSize">Sized content</div>
|
2165
|
+
* ```
|
2166
|
+
*/
|
2167
|
+
class DaffSizableDirective {
|
2168
|
+
/**
|
2169
|
+
* Dynamically sets the CSS classes based on the size.
|
2170
|
+
* @docs-private
|
2171
|
+
*/
|
2172
|
+
get class() {
|
2173
|
+
return {
|
2174
|
+
'daff-xs': this.size === DaffSizableEnum.XSmall,
|
2175
|
+
'daff-sm': this.size === DaffSizableEnum.Small,
|
2176
|
+
'daff-md': this.size === DaffSizableEnum.Medium,
|
2177
|
+
'daff-lg': this.size === DaffSizableEnum.Large,
|
2178
|
+
'daff-xl': this.size === DaffSizableEnum.XLarge,
|
2179
|
+
};
|
2180
|
+
}
|
2181
|
+
ngOnChanges(changes) {
|
2182
|
+
if (!changes.size?.currentValue) {
|
2183
|
+
this.size = this.defaultSize;
|
1990
2184
|
}
|
1991
|
-
|
1992
|
-
|
1993
|
-
|
2185
|
+
}
|
2186
|
+
ngOnInit() {
|
2187
|
+
if (!this.size) {
|
2188
|
+
this.size = this.defaultSize;
|
1994
2189
|
}
|
1995
2190
|
}
|
1996
|
-
;
|
1997
|
-
|
1998
|
-
Input()(DaffSizeMixinClass.prototype, 'size');
|
1999
|
-
return DaffSizeMixinClass;
|
2191
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffSizableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
2192
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.10", type: DaffSizableDirective, isStandalone: true, selector: "[daffSizable]", inputs: { size: "size" }, host: { properties: { "class": "this.class" } }, usesOnChanges: true, ngImport: i0 }); }
|
2000
2193
|
}
|
2194
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffSizableDirective, decorators: [{
|
2195
|
+
type: Directive,
|
2196
|
+
args: [{
|
2197
|
+
selector: '[daffSizable]',
|
2198
|
+
standalone: true,
|
2199
|
+
}]
|
2200
|
+
}], propDecorators: { class: [{
|
2201
|
+
type: HostBinding,
|
2202
|
+
args: ['class']
|
2203
|
+
}], size: [{
|
2204
|
+
type: Input
|
2205
|
+
}] } });
|
2001
2206
|
|
2002
2207
|
// Core
|
2003
2208
|
|
@@ -2006,9 +2211,14 @@ function daffSizeMixin(Base, defaultSize) {
|
|
2006
2211
|
*/
|
2007
2212
|
// Atoms
|
2008
2213
|
|
2214
|
+
/**
|
2215
|
+
* This is a filler file for making the
|
2216
|
+
* demo work in dev mode.
|
2217
|
+
*/
|
2218
|
+
|
2009
2219
|
/**
|
2010
2220
|
* Generated bundle index. Do not edit.
|
2011
2221
|
*/
|
2012
2222
|
|
2013
|
-
export { DAFF_THEME_INITIALIZER, DaffBreakpoints, DaffCheckboxComponent, DaffCheckboxControlValueAccessorDirective, DaffCheckboxModule, DaffCheckboxSetComponent, DaffErrorMessageComponent, DaffErrorMessageModule, DaffErrorStateMatcher, DaffFocusStackService, DaffFormFieldComponent, DaffFormFieldControl, DaffFormFieldModule, DaffFormLabelDirective, DaffFormLabelModule, DaffInputComponent, DaffInputModule, DaffNativeSelectComponent, DaffNativeSelectModule, DaffPrefixDirective, DaffPrefixSuffixModule, DaffQuantityFieldComponent, DaffQuantityFieldModule, DaffQuantityInputComponent, DaffQuantitySelectComponent, DaffRadioComponent, DaffRadioControlValueAccessorDirective, DaffRadioModule, DaffRadioSetComponent, DaffSizableEnum, DaffStatusEnum, DaffSuffixDirective, DaffTextAlignmentEnum, DaffTheme, DaffThemingService,
|
2223
|
+
export { DAFF_THEME_INITIALIZER, DaffArticleEncapsulatedDirective, DaffBreakpoints, DaffCheckboxComponent, DaffCheckboxControlValueAccessorDirective, DaffCheckboxModule, DaffCheckboxSetComponent, DaffColorableDirective, DaffCompactableDirective, DaffErrorMessageComponent, DaffErrorMessageModule, DaffErrorStateMatcher, DaffFocusStackService, DaffFormFieldComponent, DaffFormFieldControl, DaffFormFieldModule, DaffFormLabelDirective, DaffFormLabelModule, DaffInputComponent, DaffInputModule, DaffManageContainerLayoutDirective, DaffNativeSelectComponent, DaffNativeSelectModule, DaffPrefixDirective, DaffPrefixSuffixModule, DaffQuantityFieldComponent, DaffQuantityFieldModule, DaffQuantityInputComponent, DaffQuantitySelectComponent, DaffRadioComponent, DaffRadioControlValueAccessorDirective, DaffRadioModule, DaffRadioSetComponent, DaffSizableDirective, DaffSizableEnum, DaffSkeletonableDirective, DaffStatusEnum, DaffStatusableDirective, DaffSuffixDirective, DaffTextAlignableDirective, DaffTextAlignmentEnum, DaffTheme, DaffThemingService, NoopBreakpointObserver, SERVER_SAFE_BREAKPOINT_OBSERVER, daffFocusableElementsSelector, daffPrefixableMixin, daffSuffixableMixin };
|
2014
2224
|
//# sourceMappingURL=daffodil-design.mjs.map
|