@daffodil/design 0.66.1 → 0.68.0
Sign up to get free protection for your applications and to get access to all the features.
- package/accordion/README.md +21 -0
- package/accordion/accordion/accordion/accordion.component.d.ts +22 -0
- package/accordion/accordion/accordion-item/accordion-item.component.d.ts +32 -0
- package/accordion/accordion.module.d.ts +13 -0
- package/accordion/examples/accordion-examples.module.d.ts +9 -0
- package/accordion/examples/examples.d.ts +2 -0
- package/accordion/examples/public_api.d.ts +3 -6
- package/accordion/index.d.ts +1 -0
- package/accordion/public_api.d.ts +5 -0
- package/accordion/src/accordion-theme.scss +12 -0
- package/article/README.md +49 -0
- package/article/examples/article-examples.module.d.ts +1 -1
- package/article/index.d.ts +1 -0
- package/article/src/article-theme.scss +78 -0
- package/atoms/form/checkbox/checkbox.component.d.ts +1 -1
- package/atoms/form/checkbox/cva/checkbox-cva.directive.d.ts +1 -1
- package/atoms/form/checkbox-set/checkbox-set.component.d.ts +1 -1
- package/atoms/form/form-field/form-field/form-field.component.d.ts +1 -1
- package/atoms/form/input/input.component.d.ts +1 -1
- package/atoms/form/native-select/native-select.component.d.ts +1 -1
- package/atoms/form/quantity-field/quantity-field.component.d.ts +1 -1
- package/atoms/form/quantity-field/quantity-input/quantity-input.component.d.ts +1 -1
- package/atoms/form/quantity-field/quantity-select/quantity-select.component.d.ts +1 -1
- package/atoms/form/radio/cva/radio-cva.directive.d.ts +1 -1
- package/atoms/form/radio/radio.component.d.ts +1 -1
- package/atoms/form/radio-set/radio-set.component.d.ts +1 -1
- package/atoms/progress-indicator/progress-indicator.component.d.ts +1 -1
- package/button/README.md +58 -0
- package/button/button/button.component.d.ts +90 -0
- package/button/button.module.d.ts +10 -0
- package/button/examples/basic-button/basic-button.module.d.ts +1 -1
- package/button/examples/flat-button/flat-button.module.d.ts +1 -1
- package/button/examples/icon-button/icon-button.module.d.ts +1 -1
- package/button/examples/raised-button/raised-button.module.d.ts +1 -1
- package/button/examples/sizeable-button/sizeable-button.module.d.ts +1 -1
- package/button/examples/statusable-button/statusable-button.module.d.ts +1 -1
- package/button/examples/stroked-button/stroked-button.module.d.ts +1 -1
- package/button/examples/underline-button/underline-button.module.d.ts +1 -1
- package/button/index.d.ts +1 -0
- package/button/public_api.d.ts +2 -0
- package/button/src/button-theme-variants/button.scss +26 -0
- package/button/src/button-theme-variants/flat.scss +25 -0
- package/button/src/button-theme-variants/raised.scss +36 -0
- package/button/src/button-theme-variants/stroked.scss +28 -0
- package/button/src/button-theme.scss +574 -0
- package/callout/README.md +54 -0
- package/callout/callout/callout.component.d.ts +78 -0
- package/callout/examples/callout-text-alignment/callout-text-alignment.module.d.ts +5 -3
- package/callout/examples/callout-theming/callout-theming.module.d.ts +4 -3
- package/callout/examples/callout-with-grid/callout-with-grid.module.d.ts +5 -3
- package/callout/examples/compact-callout/compact-callout.module.d.ts +5 -3
- package/callout/index.d.ts +1 -0
- package/callout/src/callout-theme.scss +59 -0
- package/card/README.md +60 -0
- package/card/card/card.component.d.ts +66 -0
- package/card/examples/basic-card/basic-card.module.d.ts +5 -3
- package/card/examples/card-orientation/card-orientation.module.d.ts +5 -3
- package/card/examples/card-theming/card-theming.module.d.ts +3 -2
- package/card/examples/linkable-card/linkable-card.module.d.ts +4 -2
- package/card/examples/raised-card/raised-card.module.d.ts +4 -2
- package/card/examples/stroked-card/stroked-card.module.d.ts +4 -2
- package/card/index.d.ts +1 -0
- package/card/src/card-theme-variants/basic-card.scss +6 -0
- package/card/src/card-theme-variants/linkable-card.scss +16 -0
- package/card/src/card-theme.scss +170 -0
- package/checkbox/examples/basic-checkbox/basic-checkbox.module.d.ts +3 -2
- package/checkbox/examples/checkbox-set/checkbox-set.module.d.ts +3 -2
- package/container/README.md +18 -0
- package/container/container/container.component.d.ts +32 -0
- package/container/container.module.d.ts +8 -0
- package/container/examples/container-sizes/container-sizes.module.d.ts +1 -1
- package/container/index.d.ts +1 -0
- package/container/public_api.d.ts +2 -0
- package/core/colorable/colorable.d.ts +1 -1
- package/core/constructor/constructor.d.ts +1 -1
- package/core/public_api.d.ts +2 -1
- package/core/sizable/public_api.d.ts +2 -0
- package/core/sizable/sizable-mixin.d.ts +15 -0
- package/core/sizable/sizable.d.ts +23 -0
- package/core/statusable/statusable.d.ts +1 -1
- package/core/text-alignable/public_api.d.ts +2 -0
- package/core/text-alignable/text-alignable.d.ts +4 -1
- package/core/theming/services/storage/theme-storage.service.d.ts +1 -1
- package/esm2022/accordion/accordion/accordion/accordion.component.mjs +27 -0
- package/esm2022/accordion/accordion/accordion-item/accordion-item.component.mjs +54 -0
- package/esm2022/accordion/accordion/accordion-item-content/accordion-item-content.directive.mjs +22 -0
- package/esm2022/accordion/accordion/accordion-item-title/accordion-item-title.directive.mjs +22 -0
- package/esm2022/accordion/accordion/animation/accordion-animation-state.mjs +9 -0
- package/esm2022/accordion/accordion/animation/accordion-animation.mjs +18 -0
- package/esm2022/accordion/accordion.module.mjs +47 -0
- package/esm2022/accordion/daffodil-design-accordion.mjs +5 -0
- package/esm2022/accordion/examples/accordion-examples.module.mjs +26 -0
- package/esm2022/accordion/examples/basic-accordion/basic-accordion.component.mjs +12 -0
- package/esm2022/accordion/examples/examples.mjs +5 -0
- package/esm2022/accordion/examples/public_api.mjs +4 -0
- package/esm2022/accordion/index.mjs +2 -0
- package/esm2022/accordion/public_api.mjs +6 -0
- package/esm2022/article/article/article.component.mjs +30 -0
- package/esm2022/article/article-lead/article-lead.directive.mjs +22 -0
- package/esm2022/article/article-meta/article-meta.directive.mjs +22 -0
- package/esm2022/article/article-title/article-title.directive.mjs +22 -0
- package/esm2022/article/article.module.mjs +39 -0
- package/esm2022/article/daffodil-design-article.mjs +5 -0
- package/esm2022/article/examples/article-blockquote/article-blockquote.component.mjs +12 -0
- package/esm2022/article/examples/article-code-block/article-code-block.component.mjs +12 -0
- package/esm2022/article/examples/article-code-inline/article-code-inline.component.mjs +12 -0
- package/esm2022/article/examples/article-examples.module.mjs +36 -0
- package/esm2022/article/examples/article-headings/article-headings.component.mjs +12 -0
- package/esm2022/article/examples/article-hr/article-hr.component.mjs +12 -0
- package/esm2022/article/examples/article-lead/article-lead.component.mjs +12 -0
- package/esm2022/article/examples/article-link/article-link.component.mjs +12 -0
- package/esm2022/article/examples/article-meta/article-meta.component.mjs +12 -0
- package/esm2022/article/examples/article-ol/article-ol.component.mjs +12 -0
- package/esm2022/article/examples/article-table/article-table.component.mjs +12 -0
- package/esm2022/article/examples/article-ul/article-ul.component.mjs +12 -0
- package/esm2022/article/index.mjs +2 -0
- package/esm2022/article/public_api.mjs +6 -0
- package/esm2022/atoms/form/checkbox/checkbox.component.mjs +142 -0
- package/esm2022/atoms/form/checkbox/checkbox.module.mjs +39 -0
- package/esm2022/atoms/form/checkbox/cva/checkbox-cva.directive.mjs +94 -0
- package/esm2022/atoms/form/checkbox-set/checkbox-set.component.mjs +38 -0
- package/esm2022/atoms/form/error-message/error-message.component.mjs +17 -0
- package/esm2022/atoms/form/error-message/error-message.module.mjs +20 -0
- package/esm2022/atoms/form/form-field/form-field/form-field.component.mjs +102 -0
- package/esm2022/atoms/form/form-field/form-field.module.mjs +34 -0
- package/esm2022/atoms/form/form-label/form-label.directive.mjs +19 -0
- package/esm2022/atoms/form/form-label/form-label.module.mjs +20 -0
- package/esm2022/atoms/form/input/input.component.mjs +59 -0
- package/esm2022/atoms/form/input/input.module.mjs +24 -0
- package/esm2022/atoms/form/native-select/native-select.component.mjs +64 -0
- package/esm2022/atoms/form/native-select/native-select.module.mjs +24 -0
- package/esm2022/atoms/form/quantity-field/quantity-field.component.mjs +134 -0
- package/esm2022/atoms/form/quantity-field/quantity-field.module.mjs +46 -0
- package/esm2022/atoms/form/quantity-field/quantity-input/quantity-input.component.mjs +97 -0
- package/esm2022/atoms/form/quantity-field/quantity-select/quantity-select.component.mjs +84 -0
- package/esm2022/atoms/form/radio/cva/radio-cva.directive.mjs +89 -0
- package/esm2022/atoms/form/radio/radio.component.mjs +132 -0
- package/esm2022/atoms/form/radio/radio.module.mjs +34 -0
- package/esm2022/atoms/form/radio/registry/radio-registry.mjs +54 -0
- package/esm2022/atoms/form/radio-set/radio-set.component.mjs +22 -0
- package/esm2022/atoms/progress-indicator/progress-indicator.component.mjs +81 -0
- package/esm2022/atoms/progress-indicator/progress-indicator.module.mjs +20 -0
- package/esm2022/button/button/button.component.mjs +185 -0
- package/esm2022/button/button.module.mjs +34 -0
- package/esm2022/button/daffodil-design-button.mjs +5 -0
- package/esm2022/button/examples/basic-button/basic-button.component.mjs +19 -0
- package/esm2022/button/examples/basic-button/basic-button.module.mjs +28 -0
- package/esm2022/button/examples/flat-button/flat-button.component.mjs +19 -0
- package/esm2022/button/examples/flat-button/flat-button.module.mjs +28 -0
- package/esm2022/button/examples/icon-button/icon-button.component.mjs +17 -0
- package/esm2022/button/examples/icon-button/icon-button.module.mjs +28 -0
- package/esm2022/button/examples/raised-button/raised-button.component.mjs +19 -0
- package/esm2022/button/examples/raised-button/raised-button.module.mjs +28 -0
- package/esm2022/button/examples/sizeable-button/sizeable-button.component.mjs +17 -0
- package/esm2022/button/examples/sizeable-button/sizeable-button.module.mjs +28 -0
- package/esm2022/button/examples/statusable-button/statusable-button.component.mjs +19 -0
- package/esm2022/button/examples/statusable-button/statusable-button.module.mjs +28 -0
- package/esm2022/button/examples/stroked-button/stroked-button.component.mjs +19 -0
- package/esm2022/button/examples/stroked-button/stroked-button.module.mjs +28 -0
- package/esm2022/button/examples/underline-button/underline-button.component.mjs +19 -0
- package/esm2022/button/examples/underline-button/underline-button.module.mjs +28 -0
- package/esm2022/button/index.mjs +2 -0
- package/esm2022/button/public_api.mjs +3 -0
- package/esm2022/callout/callout/callout.component.mjs +67 -0
- package/esm2022/callout/callout-body/callout-body.directive.mjs +22 -0
- package/esm2022/callout/callout-icon/callout-icon.directive.mjs +22 -0
- package/esm2022/callout/callout-subtitle/callout-subtitle.directive.mjs +22 -0
- package/esm2022/callout/callout-tagline/callout-tagline.directive.mjs +22 -0
- package/esm2022/callout/callout-title/callout-title.directive.mjs +22 -0
- package/esm2022/callout/callout.module.mjs +49 -0
- package/esm2022/callout/daffodil-design-callout.mjs +5 -0
- package/esm2022/callout/examples/callout-text-alignment/callout-text-alignment.component.mjs +29 -0
- package/esm2022/callout/examples/callout-text-alignment/callout-text-alignment.module.mjs +41 -0
- package/esm2022/callout/examples/callout-theming/callout-theming.component.mjs +32 -0
- package/esm2022/callout/examples/callout-theming/callout-theming.module.mjs +37 -0
- package/esm2022/callout/examples/callout-with-grid/callout-with-grid.component.mjs +19 -0
- package/esm2022/callout/examples/callout-with-grid/callout-with-grid.module.mjs +41 -0
- package/esm2022/callout/examples/compact-callout/compact-callout.component.mjs +19 -0
- package/esm2022/callout/examples/compact-callout/compact-callout.module.mjs +37 -0
- package/esm2022/callout/index.mjs +2 -0
- package/esm2022/callout/public_api.mjs +8 -0
- package/esm2022/card/card/card.component.mjs +112 -0
- package/esm2022/card/card-actions/card-actions.directive.mjs +22 -0
- package/esm2022/card/card-content/card-content.directive.mjs +22 -0
- package/esm2022/card/card-icon/card-icon.directive.mjs +22 -0
- package/esm2022/card/card-image/card-image.directive.mjs +22 -0
- package/esm2022/card/card-tagline/card-tagline.directive.mjs +22 -0
- package/esm2022/card/card-title/card-title.directive.mjs +22 -0
- package/esm2022/card/card.module.mjs +54 -0
- package/esm2022/card/daffodil-design-card.mjs +5 -0
- package/esm2022/card/examples/basic-card/basic-card.component.mjs +19 -0
- package/esm2022/card/examples/basic-card/basic-card.module.mjs +40 -0
- package/esm2022/card/examples/card-orientation/card-orientation.component.mjs +28 -0
- package/esm2022/card/examples/card-orientation/card-orientation.module.mjs +44 -0
- package/esm2022/card/examples/card-theming/card-theming.component.mjs +28 -0
- package/esm2022/card/examples/card-theming/card-theming.module.mjs +36 -0
- package/esm2022/card/examples/linkable-card/linkable-card.component.mjs +31 -0
- package/esm2022/card/examples/linkable-card/linkable-card.module.mjs +44 -0
- package/esm2022/card/examples/raised-card/raised-card.component.mjs +29 -0
- package/esm2022/card/examples/raised-card/raised-card.module.mjs +40 -0
- package/esm2022/card/examples/stroked-card/stroked-card.component.mjs +29 -0
- package/esm2022/card/examples/stroked-card/stroked-card.module.mjs +44 -0
- package/esm2022/card/index.mjs +2 -0
- package/esm2022/card/public_api.mjs +9 -0
- package/esm2022/checkbox/examples/basic-checkbox/basic-checkbox.component.mjs +27 -0
- package/esm2022/checkbox/examples/basic-checkbox/basic-checkbox.module.mjs +33 -0
- package/esm2022/checkbox/examples/checkbox-set/checkbox-set.component.mjs +29 -0
- package/esm2022/checkbox/examples/checkbox-set/checkbox-set.module.mjs +33 -0
- package/esm2022/container/container/container.component.mjs +37 -0
- package/esm2022/container/container.module.mjs +24 -0
- package/esm2022/container/daffodil-design-container.mjs +5 -0
- package/esm2022/container/examples/container-sizes/container-sizes.component.mjs +25 -0
- package/esm2022/container/examples/container-sizes/container-sizes.module.mjs +32 -0
- package/esm2022/container/index.mjs +2 -0
- package/esm2022/container/public_api.mjs +3 -0
- package/esm2022/core/colorable/colorable-mixin.mjs +42 -0
- package/esm2022/core/compactable/compactable-mixin.mjs +26 -0
- package/esm2022/core/focus/stack.service.mjs +71 -0
- package/esm2022/core/prefix-suffix/prefix-suffix.module.mjs +26 -0
- package/esm2022/core/prefix-suffix/prefix.directive.mjs +24 -0
- package/esm2022/core/prefix-suffix/prefixable/prefixable.mjs +23 -0
- package/esm2022/core/prefix-suffix/suffix.directive.mjs +24 -0
- package/esm2022/core/prefix-suffix/suffixable/suffixable.mjs +23 -0
- package/esm2022/core/public_api.mjs +18 -0
- package/esm2022/core/sizable/public_api.mjs +3 -0
- package/esm2022/core/sizable/sizable-mixin.mjs +31 -0
- package/esm2022/core/sizable/sizable.mjs +13 -0
- package/esm2022/core/skeletonable/skeletonable-mixin.mjs +26 -0
- package/esm2022/core/statusable/statusable-mixin.mjs +32 -0
- package/esm2022/core/text-alignable/public_api.mjs +3 -0
- package/esm2022/core/text-alignable/text-alignable-mixin.mjs +35 -0
- package/esm2022/core/text-alignable/text-alignable.mjs +7 -0
- package/esm2022/core/theming/services/class-setter/theme-class-setter.service.mjs +52 -0
- package/esm2022/core/theming/services/os-theme/ostheme.service.mjs +49 -0
- package/esm2022/core/theming/services/storage/theme-storage.service.mjs +67 -0
- package/esm2022/core/theming/services/theming.service.mjs +61 -0
- package/esm2022/hero/daffodil-design-hero.mjs +5 -0
- package/esm2022/hero/examples/compact-hero/compact-hero.component.mjs +18 -0
- package/esm2022/hero/examples/compact-hero/compact-hero.module.mjs +40 -0
- package/esm2022/hero/examples/hero-text-alignment/hero-text-alignment.component.mjs +29 -0
- package/esm2022/hero/examples/hero-text-alignment/hero-text-alignment.module.mjs +41 -0
- package/esm2022/hero/examples/hero-theming/hero-theming.component.mjs +22 -0
- package/esm2022/hero/examples/hero-theming/hero-theming.module.mjs +40 -0
- package/esm2022/hero/examples/hero-with-grid/hero-with-grid.component.mjs +19 -0
- package/esm2022/hero/examples/hero-with-grid/hero-with-grid.module.mjs +41 -0
- package/esm2022/hero/hero/hero.component.mjs +68 -0
- package/esm2022/hero/hero-body/hero-body.directive.mjs +22 -0
- package/esm2022/hero/hero-icon/hero-icon.directive.mjs +22 -0
- package/esm2022/hero/hero-subtitle/hero-subtitle.directive.mjs +22 -0
- package/esm2022/hero/hero-tagline/hero-tagline.directive.mjs +22 -0
- package/esm2022/hero/hero-title/hero-title.directive.mjs +22 -0
- package/esm2022/hero/hero.module.mjs +49 -0
- package/esm2022/hero/index.mjs +2 -0
- package/esm2022/hero/public_api.mjs +8 -0
- package/esm2022/image/daffodil-design-image.mjs +5 -0
- package/esm2022/image/examples/basic-image/basic-image.component.mjs +12 -0
- package/esm2022/image/examples/basic-image/basic-image.module.mjs +24 -0
- package/esm2022/image/examples/load-image/load-image.component.mjs +19 -0
- package/esm2022/image/examples/load-image/load-image.module.mjs +28 -0
- package/esm2022/image/examples/skeleton-image/skeleton-image.component.mjs +12 -0
- package/esm2022/image/examples/skeleton-image/skeleton-image.module.mjs +24 -0
- package/esm2022/image/image/image.component.mjs +125 -0
- package/esm2022/image/image.module.mjs +24 -0
- package/esm2022/image/index.mjs +2 -0
- package/esm2022/image/public_api.mjs +3 -0
- package/esm2022/input/examples/basic-input/basic-input.component.mjs +12 -0
- package/esm2022/input/examples/basic-input/basic-input.module.mjs +24 -0
- package/esm2022/input/examples/input-disabled/input-disabled.component.mjs +12 -0
- package/esm2022/input/examples/input-disabled/input-disabled.module.mjs +24 -0
- package/esm2022/input/examples/input-error/input-error.component.mjs +20 -0
- package/esm2022/input/examples/input-error/input-error.module.mjs +28 -0
- package/esm2022/input/examples/input-with-form-field/input-with-form-field.component.mjs +12 -0
- package/esm2022/input/examples/input-with-form-field/input-with-form-field.module.mjs +24 -0
- package/esm2022/link-set/daffodil-design-link-set.mjs +5 -0
- package/esm2022/link-set/index.mjs +2 -0
- package/esm2022/link-set/link-set/link-set.component.mjs +37 -0
- package/esm2022/link-set/link-set-heading/link-set-heading.directive.mjs +25 -0
- package/esm2022/link-set/link-set-item/link-set-item.component.mjs +26 -0
- package/esm2022/link-set/link-set-subheading/link-set-subheading.directive.mjs +25 -0
- package/esm2022/link-set/link-set.module.mjs +39 -0
- package/esm2022/link-set/public_api.mjs +6 -0
- package/esm2022/list/daffodil-design-list.mjs +5 -0
- package/esm2022/list/examples/basic-list/basic-list.component.mjs +12 -0
- package/esm2022/list/examples/basic-list/basic-list.module.mjs +28 -0
- package/esm2022/list/examples/icon-list/icon-list.component.mjs +18 -0
- package/esm2022/list/examples/icon-list/icon-list.module.mjs +32 -0
- package/esm2022/list/examples/list-examples.module.mjs +33 -0
- package/esm2022/list/examples/multiline-list/multiline-list.component.mjs +12 -0
- package/esm2022/list/examples/multiline-list/multiline-list.module.mjs +32 -0
- package/esm2022/list/examples/nav-list/nav-list.component.mjs +18 -0
- package/esm2022/list/examples/nav-list/nav-list.module.mjs +32 -0
- package/esm2022/list/index.mjs +2 -0
- package/esm2022/list/list/list.component.mjs +110 -0
- package/esm2022/list/list-item/list-item.component.mjs +49 -0
- package/esm2022/list/list-subheader/list-subheader.directive.mjs +25 -0
- package/esm2022/list/list.module.mjs +40 -0
- package/esm2022/list/public_api.mjs +5 -0
- package/esm2022/loading-icon/daffodil-design-loading-icon.mjs +5 -0
- package/esm2022/loading-icon/examples/loading-icon-color/loading-icon-color.component.mjs +20 -0
- package/esm2022/loading-icon/examples/loading-icon-color/loading-icon-color.module.mjs +32 -0
- package/esm2022/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.component.mjs +12 -0
- package/esm2022/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.module.mjs +24 -0
- package/esm2022/loading-icon/index.mjs +2 -0
- package/esm2022/loading-icon/loading-icon/loading-icon.component.mjs +52 -0
- package/esm2022/loading-icon/loading-icon.module.mjs +24 -0
- package/esm2022/loading-icon/public_api.mjs +3 -0
- package/esm2022/media-gallery/daffodil-design-media-gallery.mjs +5 -0
- package/esm2022/media-gallery/examples/basic-media-gallery/basic-media-gallery.component.mjs +13 -0
- package/esm2022/media-gallery/examples/basic-media-gallery/basic-media-gallery.module.mjs +29 -0
- package/esm2022/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.component.mjs +13 -0
- package/esm2022/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.module.mjs +29 -0
- package/esm2022/media-gallery/examples/skeleton-media-gallery/skeleton-media-gallery.component.mjs +13 -0
- package/esm2022/media-gallery/examples/skeleton-media-gallery/skeleton-media-gallery.module.mjs +29 -0
- package/esm2022/media-gallery/helpers/media-gallery-registration.interface.mjs +2 -0
- package/esm2022/media-gallery/helpers/media-gallery-token.mjs +3 -0
- package/esm2022/media-gallery/index.mjs +2 -0
- package/esm2022/media-gallery/media-gallery/media-gallery.component.mjs +59 -0
- package/esm2022/media-gallery/media-gallery.module.mjs +32 -0
- package/esm2022/media-gallery/media-renderer/media-renderer.component.mjs +80 -0
- package/esm2022/media-gallery/public_api.mjs +5 -0
- package/esm2022/media-gallery/registry/media-gallery.registry.mjs +97 -0
- package/esm2022/media-gallery/thumbnail/thumbnail-compat.token.mjs +6 -0
- package/esm2022/media-gallery/thumbnail/thumbnail-registration.interface.mjs +2 -0
- package/esm2022/media-gallery/thumbnail/thumbnail.directive.mjs +88 -0
- package/esm2022/menu/daffodil-design-menu.mjs +5 -0
- package/esm2022/menu/examples/basic-menu/basic-menu.component.mjs +17 -0
- package/esm2022/menu/examples/basic-menu/basic-menu.module.mjs +35 -0
- package/esm2022/menu/examples/basic-menu/menu-content/menu-content.component.mjs +19 -0
- package/esm2022/menu/helpers/create-overlay.mjs +29 -0
- package/esm2022/menu/helpers/public_api.mjs +2 -0
- package/esm2022/menu/index.mjs +2 -0
- package/esm2022/menu/menu/menu.component.mjs +63 -0
- package/esm2022/menu/menu-activator/menu-activator.component.mjs +48 -0
- package/esm2022/menu/menu-item/menu-item.component.mjs +35 -0
- package/esm2022/menu/menu.module.mjs +44 -0
- package/esm2022/menu/public_api.mjs +7 -0
- package/esm2022/menu/services/menu.service.mjs +52 -0
- package/esm2022/modal/animations/modal-animation-state.mjs +2 -0
- package/esm2022/modal/animations/modal-animation.mjs +9 -0
- package/esm2022/modal/daffodil-design-modal.mjs +5 -0
- package/esm2022/modal/examples/basic-modal/basic-modal.component.mjs +21 -0
- package/esm2022/modal/examples/basic-modal/basic-modal.module.mjs +31 -0
- package/esm2022/modal/examples/basic-modal/modal-content.component.mjs +13 -0
- package/esm2022/modal/index.mjs +2 -0
- package/esm2022/modal/modal/modal-config.mjs +2 -0
- package/esm2022/modal/modal/modal.component.mjs +93 -0
- package/esm2022/modal/modal/modal.mjs +2 -0
- package/esm2022/modal/modal-actions/modal-actions.component.mjs +11 -0
- package/esm2022/modal/modal-content/modal-content.component.mjs +11 -0
- package/esm2022/modal/modal-header/modal-header.component.mjs +20 -0
- package/esm2022/modal/modal-title/modal-title.directive.mjs +22 -0
- package/esm2022/modal/modal.module.mjs +50 -0
- package/esm2022/modal/public_api.mjs +8 -0
- package/esm2022/modal/service/modal.service.mjs +70 -0
- package/esm2022/molecules/backdrop/backdrop/backdrop.component.mjs +87 -0
- package/esm2022/molecules/backdrop/backdrop.module.mjs +24 -0
- package/esm2022/molecules/button-set/button-set.component.mjs +23 -0
- package/esm2022/molecules/button-set/button-set.module.mjs +20 -0
- package/esm2022/molecules/feature/feature/feature.component.mjs +49 -0
- package/esm2022/molecules/feature/feature-icon/feature-icon.directive.mjs +22 -0
- package/esm2022/molecules/feature/feature-subheader/feature-subheader.directive.mjs +22 -0
- package/esm2022/molecules/feature/feature-subtitle/feature-subtitle.directive.mjs +22 -0
- package/esm2022/molecules/feature/feature-title/feature-title.directive.mjs +22 -0
- package/esm2022/molecules/feature/feature.module.mjs +44 -0
- package/esm2022/molecules/image-gallery/gallery-image/gallery-image.component.mjs +25 -0
- package/esm2022/molecules/image-gallery/image-gallery/image-gallery.component.mjs +15 -0
- package/esm2022/molecules/image-gallery/image-gallery.module.mjs +33 -0
- package/esm2022/molecules/image-list/image-list.component.mjs +20 -0
- package/esm2022/molecules/image-list/image-list.module.mjs +24 -0
- package/esm2022/molecules/qty-dropdown/qty-dropdown.component.mjs +113 -0
- package/esm2022/molecules/qty-dropdown/qty-dropdown.module.mjs +40 -0
- package/esm2022/navbar/daffodil-design-navbar.mjs +5 -0
- package/esm2022/navbar/examples/basic-navbar/basic-navbar.component.mjs +13 -0
- package/esm2022/navbar/examples/basic-navbar/basic-navbar.module.mjs +33 -0
- package/esm2022/navbar/examples/contained-navbar/contained-navbar.component.mjs +14 -0
- package/esm2022/navbar/examples/contained-navbar/contained-navbar.module.mjs +33 -0
- package/esm2022/navbar/examples/navbar-theming/navbar-theming.component.mjs +29 -0
- package/esm2022/navbar/examples/navbar-theming/navbar-theming.module.mjs +33 -0
- package/esm2022/navbar/examples/raised-navbar/raised-navbar.component.mjs +13 -0
- package/esm2022/navbar/examples/raised-navbar/raised-navbar.module.mjs +29 -0
- package/esm2022/navbar/index.mjs +2 -0
- package/esm2022/navbar/navbar/navbar.component.mjs +50 -0
- package/esm2022/navbar/navbar.module.mjs +20 -0
- package/esm2022/navbar/public_api.mjs +3 -0
- package/esm2022/notification/examples/default-notification/default-notification.component.mjs +19 -0
- package/esm2022/notification/examples/default-notification/default-notification.module.mjs +36 -0
- package/esm2022/notification/examples/dismissable-notification/dismissable-notification.component.mjs +18 -0
- package/esm2022/notification/examples/dismissable-notification/dismissable-notification.module.mjs +36 -0
- package/esm2022/notification/examples/notification-orientations/notification-orientations.component.mjs +24 -0
- package/esm2022/notification/examples/notification-orientations/notification-orientations.module.mjs +40 -0
- package/esm2022/notification/examples/notification-status/notification-status.component.mjs +25 -0
- package/esm2022/notification/examples/notification-status/notification-status.module.mjs +40 -0
- package/esm2022/notification/notification/notification.component.mjs +95 -0
- package/esm2022/notification/notification-actions/notification-actions.directive.mjs +19 -0
- package/esm2022/notification/notification-message/notification-message.directive.mjs +19 -0
- package/esm2022/notification/notification-subtitle/notification-subtitle.directive.mjs +19 -0
- package/esm2022/notification/notification-title/notification-title.directive.mjs +19 -0
- package/esm2022/notification/notification.module.mjs +54 -0
- package/esm2022/paginator/daffodil-design-paginator.mjs +5 -0
- package/esm2022/paginator/examples/basic-paginator/basic-paginator.component.mjs +19 -0
- package/esm2022/paginator/examples/link-paginator/link-paginator.component.mjs +26 -0
- package/esm2022/paginator/examples/paginator-examples.module.mjs +27 -0
- package/esm2022/paginator/paginator/paginator.component.mjs +182 -0
- package/esm2022/paginator/paginator.module.mjs +32 -0
- package/esm2022/paginator/public_api.mjs +3 -0
- package/esm2022/paginator/utils/paginator-errors.mjs +3 -0
- package/esm2022/public_api.mjs +26 -0
- package/esm2022/quantity-field/examples/basic-quantity-field/basic-quantity-field.component.mjs +17 -0
- package/esm2022/quantity-field/examples/basic-quantity-field/basic-quantity-field.module.mjs +35 -0
- package/esm2022/quantity-field/examples/custom-range-quantity-field/custom-range-quantity-field.component.mjs +17 -0
- package/esm2022/quantity-field/examples/custom-range-quantity-field/custom-range-quantity-field.module.mjs +35 -0
- package/esm2022/quantity-field/examples/disabled-quantity-field/disabled-quantity-field.component.mjs +17 -0
- package/esm2022/quantity-field/examples/disabled-quantity-field/disabled-quantity-field.module.mjs +35 -0
- package/esm2022/quantity-field/examples/select-max-quantity-field/select-max-quantity-field.component.mjs +17 -0
- package/esm2022/quantity-field/examples/select-max-quantity-field/select-max-quantity-field.module.mjs +35 -0
- package/esm2022/radio/examples/basic-radio/basic-radio.component.mjs +19 -0
- package/esm2022/radio/examples/basic-radio/basic-radio.module.mjs +29 -0
- package/esm2022/sidebar/animation/sidebar-animation-state.mjs +24 -0
- package/esm2022/sidebar/animation/sidebar-animation-width.mjs +2 -0
- package/esm2022/sidebar/animation/sidebar-animation.mjs +51 -0
- package/esm2022/sidebar/animation/sidebar-viewport-animation-state.mjs +4 -0
- package/esm2022/sidebar/daffodil-design-sidebar.mjs +5 -0
- package/esm2022/sidebar/examples/basic-sidebar/basic-sidebar.component.mjs +12 -0
- package/esm2022/sidebar/examples/basic-sidebar/basic-sidebar.module.mjs +32 -0
- package/esm2022/sidebar/examples/over-and-under-sidebars/over-and-under-sidebars.component.mjs +29 -0
- package/esm2022/sidebar/examples/over-and-under-sidebars/over-and-under-sidebars.module.mjs +44 -0
- package/esm2022/sidebar/examples/public_api.mjs +15 -0
- package/esm2022/sidebar/examples/side-fixed-sidebar/side-fixed-sidebar.component.mjs +13 -0
- package/esm2022/sidebar/examples/side-fixed-sidebar/side-fixed-sidebar.module.mjs +32 -0
- package/esm2022/sidebar/examples/sidebar-with-sticky-content/sidebar-with-sticky-content.component.mjs +12 -0
- package/esm2022/sidebar/examples/sidebar-with-sticky-content/sidebar-with-sticky-content.module.mjs +28 -0
- package/esm2022/sidebar/helper/sidebar-mode.mjs +2 -0
- package/esm2022/sidebar/helper/sidebar-side.mjs +2 -0
- package/esm2022/sidebar/index.mjs +2 -0
- package/esm2022/sidebar/public_api.mjs +8 -0
- package/esm2022/sidebar/sidebar/is-opening.mjs +13 -0
- package/esm2022/sidebar/sidebar/sidebar.component.mjs +158 -0
- package/esm2022/sidebar/sidebar-footer/sidebar-footer.component.mjs +17 -0
- package/esm2022/sidebar/sidebar-header/sidebar-header-action/sidebar-header-action.directive.mjs +22 -0
- package/esm2022/sidebar/sidebar-header/sidebar-header-title/sidebar-header-title.directive.mjs +22 -0
- package/esm2022/sidebar/sidebar-header/sidebar-header.component.mjs +17 -0
- package/esm2022/sidebar/sidebar-viewport/helper/has-parent-viewport.mjs +16 -0
- package/esm2022/sidebar/sidebar-viewport/nav-placement.mjs +10 -0
- package/esm2022/sidebar/sidebar-viewport/scroll-token/scroll.token.mjs +39 -0
- package/esm2022/sidebar/sidebar-viewport/sidebar-viewport.component.mjs +206 -0
- package/esm2022/sidebar/sidebar-viewport/utils/backdrop-interactable.mjs +5 -0
- package/esm2022/sidebar/sidebar-viewport/utils/content-pad.mjs +17 -0
- package/esm2022/sidebar/sidebar-viewport/utils/content-shift.mjs +21 -0
- package/esm2022/sidebar/sidebar.module.mjs +57 -0
- package/esm2022/tree/examples/basic-tree/basic-tree.component.mjs +39 -0
- package/esm2022/tree/examples/basic-tree/basic-tree.module.mjs +32 -0
- package/esm2022/tree/tree/tree-notifier.service.mjs +45 -0
- package/esm2022/tree/tree/tree.component.mjs +106 -0
- package/esm2022/tree/tree-item/tree-item.directive.mjs +154 -0
- package/esm2022/tree/tree.module.mjs +29 -0
- package/examples/examples.d.ts +1 -1
- package/fesm2022/daffodil-design-accordion-examples.mjs +45 -0
- package/fesm2022/daffodil-design-accordion-examples.mjs.map +1 -0
- package/fesm2022/daffodil-design-accordion.mjs +191 -0
- package/fesm2022/daffodil-design-accordion.mjs.map +1 -0
- package/fesm2022/daffodil-design-article-examples.mjs +145 -0
- package/fesm2022/daffodil-design-article-examples.mjs.map +1 -0
- package/fesm2022/daffodil-design-article.mjs +130 -0
- package/fesm2022/daffodil-design-article.mjs.map +1 -0
- package/fesm2022/daffodil-design-button-examples.mjs +313 -0
- package/fesm2022/daffodil-design-button-examples.mjs.map +1 -0
- package/fesm2022/daffodil-design-button.mjs +222 -0
- package/fesm2022/daffodil-design-button.mjs.map +1 -0
- package/fesm2022/daffodil-design-callout-examples.mjs +217 -0
- package/fesm2022/daffodil-design-callout-examples.mjs.map +1 -0
- package/fesm2022/daffodil-design-callout.mjs +215 -0
- package/fesm2022/daffodil-design-callout.mjs.map +1 -0
- package/fesm2022/daffodil-design-card-examples.mjs +350 -0
- package/fesm2022/daffodil-design-card-examples.mjs.map +1 -0
- package/fesm2022/daffodil-design-card.mjs +284 -0
- package/fesm2022/daffodil-design-card.mjs.map +1 -0
- package/fesm2022/daffodil-design-checkbox-examples.mjs +121 -0
- package/fesm2022/daffodil-design-checkbox-examples.mjs.map +1 -0
- package/fesm2022/daffodil-design-container-examples.mjs +64 -0
- package/fesm2022/daffodil-design-container-examples.mjs.map +1 -0
- package/fesm2022/daffodil-design-container.mjs +65 -0
- package/fesm2022/daffodil-design-container.mjs.map +1 -0
- package/fesm2022/daffodil-design-hero-examples.mjs +214 -0
- package/fesm2022/daffodil-design-hero-examples.mjs.map +1 -0
- package/fesm2022/daffodil-design-hero.mjs +216 -0
- package/fesm2022/daffodil-design-hero.mjs.map +1 -0
- package/fesm2022/daffodil-design-image-examples.mjs +115 -0
- package/fesm2022/daffodil-design-image-examples.mjs.map +1 -0
- package/fesm2022/daffodil-design-image.mjs +152 -0
- package/fesm2022/daffodil-design-image.mjs.map +1 -0
- package/fesm2022/daffodil-design-input-examples.mjs +145 -0
- package/fesm2022/daffodil-design-input-examples.mjs.map +1 -0
- package/fesm2022/daffodil-design-link-set.mjs +147 -0
- package/fesm2022/daffodil-design-link-set.mjs.map +1 -0
- package/fesm2022/daffodil-design-list-examples.mjs +192 -0
- package/fesm2022/daffodil-design-list-examples.mjs.map +1 -0
- package/fesm2022/daffodil-design-list.mjs +220 -0
- package/fesm2022/daffodil-design-list.mjs.map +1 -0
- package/fesm2022/daffodil-design-loading-icon-examples.mjs +89 -0
- package/fesm2022/daffodil-design-loading-icon-examples.mjs.map +1 -0
- package/fesm2022/daffodil-design-loading-icon.mjs +80 -0
- package/fesm2022/daffodil-design-loading-icon.mjs.map +1 -0
- package/fesm2022/daffodil-design-media-gallery-examples.mjs +118 -0
- package/fesm2022/daffodil-design-media-gallery-examples.mjs.map +1 -0
- package/fesm2022/daffodil-design-media-gallery.mjs +347 -0
- package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -0
- package/fesm2022/daffodil-design-menu-examples.mjs +74 -0
- package/fesm2022/daffodil-design-menu-examples.mjs.map +1 -0
- package/fesm2022/daffodil-design-menu.mjs +256 -0
- package/fesm2022/daffodil-design-menu.mjs.map +1 -0
- package/fesm2022/daffodil-design-modal-examples.mjs +66 -0
- package/fesm2022/daffodil-design-modal-examples.mjs.map +1 -0
- package/fesm2022/daffodil-design-modal.mjs +270 -0
- package/fesm2022/daffodil-design-modal.mjs.map +1 -0
- package/fesm2022/daffodil-design-navbar-examples.mjs +176 -0
- package/fesm2022/daffodil-design-navbar-examples.mjs.map +1 -0
- package/fesm2022/daffodil-design-navbar.mjs +74 -0
- package/fesm2022/daffodil-design-navbar.mjs.map +1 -0
- package/fesm2022/daffodil-design-notification-examples.mjs +204 -0
- package/fesm2022/daffodil-design-notification-examples.mjs.map +1 -0
- package/fesm2022/daffodil-design-notification.mjs +216 -0
- package/fesm2022/daffodil-design-notification.mjs.map +1 -0
- package/fesm2022/daffodil-design-paginator-examples.mjs +75 -0
- package/fesm2022/daffodil-design-paginator-examples.mjs.map +1 -0
- package/fesm2022/daffodil-design-paginator.mjs +220 -0
- package/fesm2022/daffodil-design-paginator.mjs.map +1 -0
- package/fesm2022/daffodil-design-quantity-field-examples.mjs +185 -0
- package/fesm2022/daffodil-design-quantity-field-examples.mjs.map +1 -0
- package/fesm2022/daffodil-design-radio-examples.mjs +58 -0
- package/fesm2022/daffodil-design-radio-examples.mjs.map +1 -0
- package/fesm2022/daffodil-design-sidebar-examples.mjs +187 -0
- package/fesm2022/daffodil-design-sidebar-examples.mjs.map +1 -0
- package/fesm2022/daffodil-design-sidebar.mjs +670 -0
- package/fesm2022/daffodil-design-sidebar.mjs.map +1 -0
- package/fesm2022/daffodil-design-tree-examples.mjs +79 -0
- package/fesm2022/daffodil-design-tree-examples.mjs.map +1 -0
- package/fesm2022/daffodil-design-tree.mjs +446 -0
- package/fesm2022/daffodil-design-tree.mjs.map +1 -0
- package/fesm2022/daffodil-design.mjs +2675 -0
- package/fesm2022/daffodil-design.mjs.map +1 -0
- package/hero/README.md +54 -0
- package/hero/examples/compact-hero/compact-hero.module.d.ts +4 -3
- package/hero/examples/hero-text-alignment/hero-text-alignment.module.d.ts +5 -3
- package/hero/examples/hero-theming/hero-theming.module.d.ts +4 -3
- package/hero/examples/hero-with-grid/hero-with-grid.module.d.ts +5 -3
- package/hero/hero/hero.component.d.ts +79 -0
- package/hero/index.d.ts +1 -0
- package/hero/src/hero-theme.scss +59 -0
- package/image/README.md +31 -0
- package/image/examples/basic-image/basic-image.module.d.ts +1 -1
- package/image/examples/load-image/load-image.module.d.ts +1 -1
- package/image/examples/skeleton-image/skeleton-image.module.d.ts +1 -1
- package/image/image/image.component.d.ts +52 -0
- package/image/image.module.d.ts +8 -0
- package/image/index.d.ts +1 -0
- package/image/public_api.d.ts +2 -0
- package/link-set/README.md +44 -0
- package/link-set/index.d.ts +1 -0
- package/link-set/link-set/link-set.component.d.ts +32 -0
- package/list/README.md +69 -0
- package/list/examples/basic-list/basic-list.module.d.ts +1 -1
- package/list/examples/icon-list/icon-list.module.d.ts +1 -1
- package/list/examples/multiline-list/multiline-list.module.d.ts +1 -1
- package/list/examples/nav-list/nav-list.module.d.ts +1 -1
- package/list/index.d.ts +1 -0
- package/list/list/list.component.d.ts +71 -0
- package/list/list-item/list-item.component.d.ts +30 -0
- package/list/list.module.d.ts +11 -0
- package/list/src/list-theme.scss +71 -0
- package/loading-icon/README.md +7 -0
- package/loading-icon/examples/loading-icon-color/loading-icon-color.module.d.ts +4 -3
- package/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.module.d.ts +1 -1
- package/loading-icon/index.d.ts +1 -0
- package/loading-icon/loading-icon/loading-icon.component.d.ts +40 -0
- package/loading-icon/loading-icon.module.d.ts +8 -0
- package/loading-icon/public_api.d.ts +2 -0
- package/loading-icon/src/loading-icon-theme.scss +61 -0
- package/media-gallery/README.md +19 -0
- package/media-gallery/examples/basic-media-gallery/basic-media-gallery.module.d.ts +3 -2
- package/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.module.d.ts +3 -2
- package/media-gallery/examples/skeleton-media-gallery/skeleton-media-gallery.module.d.ts +3 -2
- package/media-gallery/index.d.ts +1 -0
- package/media-gallery/media-gallery/media-gallery.component.d.ts +41 -0
- package/media-gallery/media-gallery.module.d.ts +10 -0
- package/media-gallery/media-renderer/media-renderer.component.d.ts +29 -0
- package/media-gallery/public_api.d.ts +4 -0
- package/media-gallery/registry/media-gallery.registry.d.ts +34 -0
- package/media-gallery/src/media-gallery-theme.scss +27 -0
- package/media-gallery/thumbnail/thumbnail-registration.interface.d.ts +9 -0
- package/media-gallery/thumbnail/thumbnail.directive.d.ts +44 -0
- package/menu/README.md +7 -0
- package/menu/examples/basic-menu/basic-menu.module.d.ts +4 -3
- package/menu/index.d.ts +1 -0
- package/menu/menu/menu.component.d.ts +19 -0
- package/menu/menu-activator/menu-activator.component.d.ts +18 -0
- package/menu/menu-item/menu-item.component.d.ts +20 -0
- package/menu/public_api.d.ts +6 -0
- package/menu/services/menu.service.d.ts +24 -0
- package/menu/src/menu-theme.scss +25 -0
- package/modal/README.md +47 -0
- package/modal/animations/modal-animation-state.d.ts +1 -0
- package/modal/examples/basic-modal/basic-modal.component.d.ts +1 -1
- package/modal/examples/basic-modal/basic-modal.module.d.ts +3 -2
- package/modal/index.d.ts +1 -0
- package/modal/modal/modal.component.d.ts +52 -0
- package/modal/modal/modal.d.ts +13 -0
- package/modal/public_api.d.ts +8 -0
- package/modal/service/modal.service.d.ts +19 -0
- package/modal/src/modal-theme.scss +9 -0
- package/molecules/backdrop/animation/backdrop-animation-state.d.ts +1 -1
- package/molecules/backdrop/backdrop/backdrop.component.d.ts +1 -1
- package/molecules/feature/feature/feature.component.d.ts +2 -2
- package/molecules/image-gallery/gallery-image/gallery-image.component.d.ts +1 -1
- package/molecules/qty-dropdown/qty-dropdown.component.d.ts +1 -1
- package/navbar/README.md +41 -0
- package/navbar/examples/basic-navbar/basic-navbar.module.d.ts +4 -2
- package/navbar/examples/contained-navbar/contained-navbar.module.d.ts +4 -2
- package/navbar/examples/navbar-theming/navbar-theming.module.d.ts +3 -2
- package/navbar/examples/raised-navbar/raised-navbar.module.d.ts +3 -2
- package/navbar/index.d.ts +1 -0
- package/navbar/navbar/navbar.component.d.ts +40 -0
- package/navbar/navbar.module.d.ts +7 -0
- package/navbar/public_api.d.ts +2 -0
- package/navbar/src/navbar-theme.scss +57 -0
- package/notification/examples/default-notification/default-notification.module.d.ts +1 -1
- package/notification/examples/dismissable-notification/dismissable-notification.module.d.ts +1 -1
- package/notification/examples/notification-orientations/notification-orientations.module.d.ts +1 -1
- package/notification/examples/notification-status/notification-status.module.d.ts +1 -1
- package/notification/notification/notification.component.d.ts +2 -2
- package/notification/src/notification-theme.scss +4 -4
- package/package.json +1 -1
- package/paginator/README.md +11 -0
- package/paginator/examples/paginator-examples.module.d.ts +1 -1
- package/paginator/index.d.ts +5 -0
- package/paginator/paginator/paginator.component.d.ts +145 -0
- package/paginator/paginator.module.d.ts +10 -0
- package/paginator/public_api.d.ts +2 -0
- package/paginator/src/paginator-theme.scss +90 -0
- package/public_api.d.ts +0 -17
- package/radio/examples/basic-radio/basic-radio.component.d.ts +1 -3
- package/scss/state/skeleton/_mixins.scss +2 -2
- package/scss/theme.scss +15 -17
- package/scss/theming/_color-palettes.scss +1 -1
- package/scss/theming/_configure-theme.scss +12 -12
- package/scss/theming/_theme-css-variables.scss +2 -2
- package/scss/theming/contrast/text-contrast/text-contrast.scss +1 -1
- package/sidebar/README.md +135 -0
- package/sidebar/animation/sidebar-animation-state.d.ts +3 -0
- package/sidebar/animation/sidebar-animation.d.ts +15 -0
- package/sidebar/animation/sidebar-viewport-animation-state.d.ts +8 -0
- package/sidebar/examples/basic-sidebar/basic-sidebar.module.d.ts +4 -2
- package/sidebar/examples/over-and-under-sidebars/over-and-under-sidebars.component.d.ts +12 -0
- package/sidebar/examples/over-and-under-sidebars/over-and-under-sidebars.module.d.ts +13 -0
- package/sidebar/examples/side-fixed-sidebar/side-fixed-sidebar.component.d.ts +5 -0
- package/sidebar/examples/side-fixed-sidebar/side-fixed-sidebar.module.d.ts +10 -0
- package/sidebar/examples/sidebar-with-sticky-content/sidebar-with-sticky-content.component.d.ts +5 -0
- package/sidebar/examples/sidebar-with-sticky-content/sidebar-with-sticky-content.module.d.ts +9 -0
- package/sidebar/helper/sidebar-mode.d.ts +27 -0
- package/sidebar/helper/sidebar-side.d.ts +12 -0
- package/sidebar/index.d.ts +1 -0
- package/sidebar/public_api.d.ts +9 -0
- package/sidebar/sidebar/is-opening.d.ts +5 -0
- package/sidebar/sidebar/sidebar.component.d.ts +73 -0
- package/sidebar/sidebar-footer/sidebar-footer.component.d.ts +6 -0
- package/sidebar/sidebar-header/sidebar-header-action/sidebar-header-action.directive.d.ts +9 -0
- package/sidebar/sidebar-header/sidebar-header-title/sidebar-header-title.directive.d.ts +9 -0
- package/sidebar/sidebar-header/sidebar-header.component.d.ts +6 -0
- package/sidebar/sidebar-viewport/helper/has-parent-viewport.d.ts +6 -0
- package/sidebar/sidebar-viewport/nav-placement.d.ts +13 -0
- package/sidebar/sidebar-viewport/scroll-token/scroll.token.d.ts +23 -0
- package/sidebar/sidebar-viewport/sidebar-viewport.component.d.ts +100 -0
- package/sidebar/sidebar-viewport/utils/backdrop-interactable.d.ts +6 -0
- package/sidebar/sidebar-viewport/utils/content-pad.d.ts +7 -0
- package/sidebar/sidebar-viewport/utils/content-shift.d.ts +8 -0
- package/sidebar/sidebar.module.d.ts +15 -0
- package/sidebar/src/helper/_variables.scss +8 -0
- package/sidebar/src/sidebar-theme.scss +22 -0
- package/src/atoms/form/form-field/form-field/form-field-theme.scss +3 -3
- package/src/atoms/form/native-select/native-select-theme.scss +2 -2
- package/tree/interfaces/recursive-key.d.ts +1 -1
- package/tree/src/tree-theme.scss +4 -4
- package/tree/tree/tree.component.d.ts +1 -1
- package/tree/tree-item/tree-item.directive.d.ts +1 -1
- package/accordion/examples/basic-accordion/basic-accordion.module.d.ts +0 -8
- package/accordion/examples/nav-accordion/nav-accordion.component.d.ts +0 -5
- package/accordion/examples/nav-accordion/nav-accordion.module.d.ts +0 -8
- package/atoms/button/button.component.d.ts +0 -105
- package/atoms/button/button.module.d.ts +0 -10
- package/atoms/button/public_api.d.ts +0 -2
- package/atoms/container/container.component.d.ts +0 -34
- package/atoms/container/container.module.d.ts +0 -8
- package/atoms/container/public_api.d.ts +0 -2
- package/atoms/image/image.component.d.ts +0 -54
- package/atoms/image/image.module.d.ts +0 -8
- package/atoms/image/public_api.d.ts +0 -2
- package/atoms/loading-icon/loading-icon.component.d.ts +0 -42
- package/atoms/loading-icon/loading-icon.module.d.ts +0 -8
- package/atoms/loading-icon/public_api.d.ts +0 -2
- package/core/sizeable/sizeable-mixin.d.ts +0 -15
- package/core/sizeable/sizeable.d.ts +0 -16
- package/esm2020/accordion/examples/basic-accordion/basic-accordion.component.mjs +0 -12
- package/esm2020/accordion/examples/basic-accordion/basic-accordion.module.mjs +0 -24
- package/esm2020/accordion/examples/nav-accordion/nav-accordion.component.mjs +0 -12
- package/esm2020/accordion/examples/nav-accordion/nav-accordion.module.mjs +0 -24
- package/esm2020/accordion/examples/public_api.mjs +0 -10
- package/esm2020/article/examples/article-blockquote/article-blockquote.component.mjs +0 -12
- package/esm2020/article/examples/article-code-block/article-code-block.component.mjs +0 -12
- package/esm2020/article/examples/article-code-inline/article-code-inline.component.mjs +0 -12
- package/esm2020/article/examples/article-examples.module.mjs +0 -36
- package/esm2020/article/examples/article-headings/article-headings.component.mjs +0 -12
- package/esm2020/article/examples/article-hr/article-hr.component.mjs +0 -12
- package/esm2020/article/examples/article-lead/article-lead.component.mjs +0 -12
- package/esm2020/article/examples/article-link/article-link.component.mjs +0 -12
- package/esm2020/article/examples/article-meta/article-meta.component.mjs +0 -12
- package/esm2020/article/examples/article-ol/article-ol.component.mjs +0 -12
- package/esm2020/article/examples/article-table/article-table.component.mjs +0 -12
- package/esm2020/article/examples/article-ul/article-ul.component.mjs +0 -12
- package/esm2020/atoms/button/button.component.mjs +0 -189
- package/esm2020/atoms/button/button.module.mjs +0 -34
- package/esm2020/atoms/button/public_api.mjs +0 -3
- package/esm2020/atoms/container/container.component.mjs +0 -37
- package/esm2020/atoms/container/container.module.mjs +0 -24
- package/esm2020/atoms/container/public_api.mjs +0 -3
- package/esm2020/atoms/form/checkbox/checkbox.component.mjs +0 -142
- package/esm2020/atoms/form/checkbox/checkbox.module.mjs +0 -39
- package/esm2020/atoms/form/checkbox/cva/checkbox-cva.directive.mjs +0 -94
- package/esm2020/atoms/form/checkbox-set/checkbox-set.component.mjs +0 -38
- package/esm2020/atoms/form/error-message/error-message.component.mjs +0 -17
- package/esm2020/atoms/form/error-message/error-message.module.mjs +0 -20
- package/esm2020/atoms/form/form-field/form-field/form-field.component.mjs +0 -102
- package/esm2020/atoms/form/form-field/form-field.module.mjs +0 -34
- package/esm2020/atoms/form/form-label/form-label.directive.mjs +0 -19
- package/esm2020/atoms/form/form-label/form-label.module.mjs +0 -20
- package/esm2020/atoms/form/input/input.component.mjs +0 -59
- package/esm2020/atoms/form/input/input.module.mjs +0 -24
- package/esm2020/atoms/form/native-select/native-select.component.mjs +0 -64
- package/esm2020/atoms/form/native-select/native-select.module.mjs +0 -24
- package/esm2020/atoms/form/quantity-field/quantity-field.component.mjs +0 -134
- package/esm2020/atoms/form/quantity-field/quantity-field.module.mjs +0 -46
- package/esm2020/atoms/form/quantity-field/quantity-input/quantity-input.component.mjs +0 -97
- package/esm2020/atoms/form/quantity-field/quantity-select/quantity-select.component.mjs +0 -84
- package/esm2020/atoms/form/radio/cva/radio-cva.directive.mjs +0 -89
- package/esm2020/atoms/form/radio/radio.component.mjs +0 -132
- package/esm2020/atoms/form/radio/radio.module.mjs +0 -34
- package/esm2020/atoms/form/radio/registry/radio-registry.mjs +0 -54
- package/esm2020/atoms/form/radio-set/radio-set.component.mjs +0 -22
- package/esm2020/atoms/image/image.component.mjs +0 -125
- package/esm2020/atoms/image/image.module.mjs +0 -24
- package/esm2020/atoms/image/public_api.mjs +0 -3
- package/esm2020/atoms/loading-icon/loading-icon.component.mjs +0 -52
- package/esm2020/atoms/loading-icon/loading-icon.module.mjs +0 -24
- package/esm2020/atoms/loading-icon/public_api.mjs +0 -3
- package/esm2020/atoms/progress-indicator/progress-indicator.component.mjs +0 -81
- package/esm2020/atoms/progress-indicator/progress-indicator.module.mjs +0 -20
- package/esm2020/button/examples/basic-button/basic-button.component.mjs +0 -18
- package/esm2020/button/examples/basic-button/basic-button.module.mjs +0 -28
- package/esm2020/button/examples/flat-button/flat-button.component.mjs +0 -18
- package/esm2020/button/examples/flat-button/flat-button.module.mjs +0 -28
- package/esm2020/button/examples/icon-button/icon-button.component.mjs +0 -17
- package/esm2020/button/examples/icon-button/icon-button.module.mjs +0 -28
- package/esm2020/button/examples/raised-button/raised-button.component.mjs +0 -18
- package/esm2020/button/examples/raised-button/raised-button.module.mjs +0 -28
- package/esm2020/button/examples/sizeable-button/sizeable-button.component.mjs +0 -17
- package/esm2020/button/examples/sizeable-button/sizeable-button.module.mjs +0 -28
- package/esm2020/button/examples/statusable-button/statusable-button.component.mjs +0 -19
- package/esm2020/button/examples/statusable-button/statusable-button.module.mjs +0 -28
- package/esm2020/button/examples/stroked-button/stroked-button.component.mjs +0 -18
- package/esm2020/button/examples/stroked-button/stroked-button.module.mjs +0 -28
- package/esm2020/button/examples/underline-button/underline-button.component.mjs +0 -18
- package/esm2020/button/examples/underline-button/underline-button.module.mjs +0 -28
- package/esm2020/callout/examples/callout-text-alignment/callout-text-alignment.component.mjs +0 -27
- package/esm2020/callout/examples/callout-text-alignment/callout-text-alignment.module.mjs +0 -39
- package/esm2020/callout/examples/callout-theming/callout-theming.component.mjs +0 -31
- package/esm2020/callout/examples/callout-theming/callout-theming.module.mjs +0 -36
- package/esm2020/callout/examples/callout-with-grid/callout-with-grid.component.mjs +0 -17
- package/esm2020/callout/examples/callout-with-grid/callout-with-grid.module.mjs +0 -39
- package/esm2020/callout/examples/compact-callout/compact-callout.component.mjs +0 -17
- package/esm2020/callout/examples/compact-callout/compact-callout.module.mjs +0 -35
- package/esm2020/card/examples/basic-card/basic-card.component.mjs +0 -17
- package/esm2020/card/examples/basic-card/basic-card.module.mjs +0 -38
- package/esm2020/card/examples/card-orientation/card-orientation.component.mjs +0 -26
- package/esm2020/card/examples/card-orientation/card-orientation.module.mjs +0 -42
- package/esm2020/card/examples/card-theming/card-theming.component.mjs +0 -28
- package/esm2020/card/examples/card-theming/card-theming.module.mjs +0 -35
- package/esm2020/card/examples/linkable-card/linkable-card.component.mjs +0 -30
- package/esm2020/card/examples/linkable-card/linkable-card.module.mjs +0 -42
- package/esm2020/card/examples/raised-card/raised-card.component.mjs +0 -28
- package/esm2020/card/examples/raised-card/raised-card.module.mjs +0 -38
- package/esm2020/card/examples/stroked-card/stroked-card.component.mjs +0 -28
- package/esm2020/card/examples/stroked-card/stroked-card.module.mjs +0 -42
- package/esm2020/checkbox/examples/basic-checkbox/basic-checkbox.component.mjs +0 -26
- package/esm2020/checkbox/examples/basic-checkbox/basic-checkbox.module.mjs +0 -32
- package/esm2020/checkbox/examples/checkbox-set/checkbox-set.component.mjs +0 -28
- package/esm2020/checkbox/examples/checkbox-set/checkbox-set.module.mjs +0 -32
- package/esm2020/container/examples/container-sizes/container-sizes.component.mjs +0 -25
- package/esm2020/container/examples/container-sizes/container-sizes.module.mjs +0 -32
- package/esm2020/core/colorable/colorable-mixin.mjs +0 -42
- package/esm2020/core/compactable/compactable-mixin.mjs +0 -26
- package/esm2020/core/focus/stack.service.mjs +0 -71
- package/esm2020/core/prefix-suffix/prefix-suffix.module.mjs +0 -26
- package/esm2020/core/prefix-suffix/prefix.directive.mjs +0 -24
- package/esm2020/core/prefix-suffix/prefixable/prefixable.mjs +0 -23
- package/esm2020/core/prefix-suffix/suffix.directive.mjs +0 -24
- package/esm2020/core/prefix-suffix/suffixable/suffixable.mjs +0 -23
- package/esm2020/core/public_api.mjs +0 -17
- package/esm2020/core/sizeable/sizeable-mixin.mjs +0 -31
- package/esm2020/core/sizeable/sizeable.mjs +0 -9
- package/esm2020/core/skeletonable/skeletonable-mixin.mjs +0 -26
- package/esm2020/core/statusable/statusable-mixin.mjs +0 -32
- package/esm2020/core/text-alignable/text-alignable-mixin.mjs +0 -35
- package/esm2020/core/text-alignable/text-alignable.mjs +0 -7
- package/esm2020/core/theming/services/class-setter/theme-class-setter.service.mjs +0 -52
- package/esm2020/core/theming/services/os-theme/ostheme.service.mjs +0 -49
- package/esm2020/core/theming/services/storage/theme-storage.service.mjs +0 -67
- package/esm2020/core/theming/services/theming.service.mjs +0 -61
- package/esm2020/hero/examples/compact-hero/compact-hero.component.mjs +0 -17
- package/esm2020/hero/examples/compact-hero/compact-hero.module.mjs +0 -39
- package/esm2020/hero/examples/hero-text-alignment/hero-text-alignment.component.mjs +0 -27
- package/esm2020/hero/examples/hero-text-alignment/hero-text-alignment.module.mjs +0 -39
- package/esm2020/hero/examples/hero-theming/hero-theming.component.mjs +0 -21
- package/esm2020/hero/examples/hero-theming/hero-theming.module.mjs +0 -39
- package/esm2020/hero/examples/hero-with-grid/hero-with-grid.component.mjs +0 -17
- package/esm2020/hero/examples/hero-with-grid/hero-with-grid.module.mjs +0 -39
- package/esm2020/image/examples/basic-image/basic-image.component.mjs +0 -12
- package/esm2020/image/examples/basic-image/basic-image.module.mjs +0 -24
- package/esm2020/image/examples/load-image/load-image.component.mjs +0 -19
- package/esm2020/image/examples/load-image/load-image.module.mjs +0 -28
- package/esm2020/image/examples/skeleton-image/skeleton-image.component.mjs +0 -12
- package/esm2020/image/examples/skeleton-image/skeleton-image.module.mjs +0 -24
- package/esm2020/input/examples/basic-input/basic-input.component.mjs +0 -12
- package/esm2020/input/examples/basic-input/basic-input.module.mjs +0 -24
- package/esm2020/input/examples/input-disabled/input-disabled.component.mjs +0 -12
- package/esm2020/input/examples/input-disabled/input-disabled.module.mjs +0 -24
- package/esm2020/input/examples/input-error/input-error.component.mjs +0 -20
- package/esm2020/input/examples/input-error/input-error.module.mjs +0 -28
- package/esm2020/input/examples/input-with-form-field/input-with-form-field.component.mjs +0 -12
- package/esm2020/input/examples/input-with-form-field/input-with-form-field.module.mjs +0 -24
- package/esm2020/list/examples/basic-list/basic-list.component.mjs +0 -12
- package/esm2020/list/examples/basic-list/basic-list.module.mjs +0 -28
- package/esm2020/list/examples/icon-list/icon-list.component.mjs +0 -17
- package/esm2020/list/examples/icon-list/icon-list.module.mjs +0 -32
- package/esm2020/list/examples/list-examples.module.mjs +0 -33
- package/esm2020/list/examples/multiline-list/multiline-list.component.mjs +0 -12
- package/esm2020/list/examples/multiline-list/multiline-list.module.mjs +0 -32
- package/esm2020/list/examples/nav-list/nav-list.component.mjs +0 -17
- package/esm2020/list/examples/nav-list/nav-list.module.mjs +0 -32
- package/esm2020/loading-icon/examples/loading-icon-color/loading-icon-color.component.mjs +0 -19
- package/esm2020/loading-icon/examples/loading-icon-color/loading-icon-color.module.mjs +0 -31
- package/esm2020/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.component.mjs +0 -12
- package/esm2020/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.module.mjs +0 -24
- package/esm2020/media-gallery/examples/basic-media-gallery/basic-media-gallery.component.mjs +0 -12
- package/esm2020/media-gallery/examples/basic-media-gallery/basic-media-gallery.module.mjs +0 -28
- package/esm2020/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.component.mjs +0 -12
- package/esm2020/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.module.mjs +0 -28
- package/esm2020/media-gallery/examples/skeleton-media-gallery/skeleton-media-gallery.component.mjs +0 -12
- package/esm2020/media-gallery/examples/skeleton-media-gallery/skeleton-media-gallery.module.mjs +0 -28
- package/esm2020/menu/examples/basic-menu/basic-menu.component.mjs +0 -16
- package/esm2020/menu/examples/basic-menu/basic-menu.module.mjs +0 -34
- package/esm2020/menu/examples/basic-menu/menu-content/menu-content.component.mjs +0 -19
- package/esm2020/modal/examples/basic-modal/basic-modal.component.mjs +0 -20
- package/esm2020/modal/examples/basic-modal/basic-modal.module.mjs +0 -30
- package/esm2020/modal/examples/basic-modal/modal-content.component.mjs +0 -12
- package/esm2020/molecules/accordion/accordion/accordion.component.mjs +0 -27
- package/esm2020/molecules/accordion/accordion-item/accordion-item.component.mjs +0 -54
- package/esm2020/molecules/accordion/accordion-item-content/accordion-item-content.directive.mjs +0 -22
- package/esm2020/molecules/accordion/accordion-item-title/accordion-item-title.directive.mjs +0 -22
- package/esm2020/molecules/accordion/accordion.module.mjs +0 -52
- package/esm2020/molecules/accordion/animation/accordion-animation-state.mjs +0 -9
- package/esm2020/molecules/accordion/animation/accordion-animation.mjs +0 -18
- package/esm2020/molecules/accordion/nav-accordion-item/nav-accordion-item.component.mjs +0 -81
- package/esm2020/molecules/accordion/public_api.mjs +0 -7
- package/esm2020/molecules/article/article/article.component.mjs +0 -30
- package/esm2020/molecules/article/article-lead/article-lead.directive.mjs +0 -22
- package/esm2020/molecules/article/article-meta/article-meta.directive.mjs +0 -22
- package/esm2020/molecules/article/article-title/article-title.directive.mjs +0 -22
- package/esm2020/molecules/article/article.module.mjs +0 -39
- package/esm2020/molecules/article/public_api.mjs +0 -6
- package/esm2020/molecules/backdrop/backdrop/backdrop.component.mjs +0 -87
- package/esm2020/molecules/backdrop/backdrop.module.mjs +0 -24
- package/esm2020/molecules/button-set/button-set.component.mjs +0 -23
- package/esm2020/molecules/button-set/button-set.module.mjs +0 -20
- package/esm2020/molecules/callout/callout/callout.component.mjs +0 -71
- package/esm2020/molecules/callout/callout-body/callout-body.directive.mjs +0 -22
- package/esm2020/molecules/callout/callout-icon/callout-icon.directive.mjs +0 -22
- package/esm2020/molecules/callout/callout-subtitle/callout-subtitle.directive.mjs +0 -22
- package/esm2020/molecules/callout/callout-tagline/callout-tagline.directive.mjs +0 -22
- package/esm2020/molecules/callout/callout-title/callout-title.directive.mjs +0 -22
- package/esm2020/molecules/callout/callout.module.mjs +0 -49
- package/esm2020/molecules/callout/public_api.mjs +0 -8
- package/esm2020/molecules/card/card/card.component.mjs +0 -113
- package/esm2020/molecules/card/card-actions/card-actions.directive.mjs +0 -22
- package/esm2020/molecules/card/card-content/card-content.directive.mjs +0 -22
- package/esm2020/molecules/card/card-icon/card-icon.directive.mjs +0 -22
- package/esm2020/molecules/card/card-image/card-image.directive.mjs +0 -22
- package/esm2020/molecules/card/card-tagline/card-tagline.directive.mjs +0 -22
- package/esm2020/molecules/card/card-title/card-title.directive.mjs +0 -22
- package/esm2020/molecules/card/card.module.mjs +0 -54
- package/esm2020/molecules/card/public_api.mjs +0 -9
- package/esm2020/molecules/feature/feature/feature.component.mjs +0 -49
- package/esm2020/molecules/feature/feature-icon/feature-icon.directive.mjs +0 -22
- package/esm2020/molecules/feature/feature-subheader/feature-subheader.directive.mjs +0 -22
- package/esm2020/molecules/feature/feature-subtitle/feature-subtitle.directive.mjs +0 -22
- package/esm2020/molecules/feature/feature-title/feature-title.directive.mjs +0 -22
- package/esm2020/molecules/feature/feature.module.mjs +0 -44
- package/esm2020/molecules/hero/hero/hero.component.mjs +0 -72
- package/esm2020/molecules/hero/hero-body/hero-body.directive.mjs +0 -22
- package/esm2020/molecules/hero/hero-icon/hero-icon.directive.mjs +0 -22
- package/esm2020/molecules/hero/hero-subtitle/hero-subtitle.directive.mjs +0 -22
- package/esm2020/molecules/hero/hero-tagline/hero-tagline.directive.mjs +0 -22
- package/esm2020/molecules/hero/hero-title/hero-title.directive.mjs +0 -22
- package/esm2020/molecules/hero/hero.module.mjs +0 -49
- package/esm2020/molecules/hero/public_api.mjs +0 -8
- package/esm2020/molecules/image-gallery/gallery-image/gallery-image.component.mjs +0 -25
- package/esm2020/molecules/image-gallery/image-gallery/image-gallery.component.mjs +0 -15
- package/esm2020/molecules/image-gallery/image-gallery.module.mjs +0 -33
- package/esm2020/molecules/image-list/image-list.component.mjs +0 -20
- package/esm2020/molecules/image-list/image-list.module.mjs +0 -24
- package/esm2020/molecules/link-set/link-set/link-set.component.mjs +0 -37
- package/esm2020/molecules/link-set/link-set-heading/link-set-heading.directive.mjs +0 -25
- package/esm2020/molecules/link-set/link-set-item/link-set-item.component.mjs +0 -26
- package/esm2020/molecules/link-set/link-set-subheading/link-set-subheading.directive.mjs +0 -25
- package/esm2020/molecules/link-set/link-set.module.mjs +0 -39
- package/esm2020/molecules/link-set/public_api.mjs +0 -6
- package/esm2020/molecules/list/list/list.component.mjs +0 -110
- package/esm2020/molecules/list/list-item/list-item.component.mjs +0 -49
- package/esm2020/molecules/list/list-subheader/list-subheader.directive.mjs +0 -25
- package/esm2020/molecules/list/list.module.mjs +0 -40
- package/esm2020/molecules/list/public_api.mjs +0 -5
- package/esm2020/molecules/media-gallery/media-gallery-registration.interface.mjs +0 -2
- package/esm2020/molecules/media-gallery/media-gallery-token.mjs +0 -3
- package/esm2020/molecules/media-gallery/media-gallery.component.mjs +0 -60
- package/esm2020/molecules/media-gallery/media-gallery.module.mjs +0 -32
- package/esm2020/molecules/media-gallery/media-renderer/media-renderer.component.mjs +0 -76
- package/esm2020/molecules/media-gallery/public_api.mjs +0 -5
- package/esm2020/molecules/media-gallery/registry/media-gallery.registry.mjs +0 -97
- package/esm2020/molecules/media-gallery/thumbnail/thumbnail-compat.token.mjs +0 -6
- package/esm2020/molecules/media-gallery/thumbnail/thumbnail-registration.interface.mjs +0 -2
- package/esm2020/molecules/media-gallery/thumbnail/thumbnail.directive.mjs +0 -88
- package/esm2020/molecules/menu/helpers/create-overlay.mjs +0 -29
- package/esm2020/molecules/menu/helpers/public_api.mjs +0 -2
- package/esm2020/molecules/menu/menu/menu.component.mjs +0 -63
- package/esm2020/molecules/menu/menu-activator/menu-activator.component.mjs +0 -48
- package/esm2020/molecules/menu/menu-item/menu-item.component.mjs +0 -35
- package/esm2020/molecules/menu/menu.module.mjs +0 -44
- package/esm2020/molecules/menu/public_api.mjs +0 -7
- package/esm2020/molecules/menu/service/menu.service.mjs +0 -52
- package/esm2020/molecules/modal/animations/modal-animation-state.mjs +0 -2
- package/esm2020/molecules/modal/animations/modal-animation.mjs +0 -9
- package/esm2020/molecules/modal/modal/modal-config.mjs +0 -2
- package/esm2020/molecules/modal/modal/modal.component.mjs +0 -93
- package/esm2020/molecules/modal/modal-actions/modal-actions.component.mjs +0 -11
- package/esm2020/molecules/modal/modal-content/modal-content.component.mjs +0 -11
- package/esm2020/molecules/modal/modal-header/modal-header.component.mjs +0 -20
- package/esm2020/molecules/modal/modal-title/modal-title.directive.mjs +0 -22
- package/esm2020/molecules/modal/modal.mjs +0 -2
- package/esm2020/molecules/modal/modal.module.mjs +0 -50
- package/esm2020/molecules/modal/public_api.mjs +0 -8
- package/esm2020/molecules/modal/service/modal.service.mjs +0 -70
- package/esm2020/molecules/navbar/navbar.component.mjs +0 -51
- package/esm2020/molecules/navbar/navbar.module.mjs +0 -20
- package/esm2020/molecules/navbar/public_api.mjs +0 -3
- package/esm2020/molecules/paginator/paginator-errors.mjs +0 -3
- package/esm2020/molecules/paginator/paginator.component.mjs +0 -182
- package/esm2020/molecules/paginator/paginator.module.mjs +0 -36
- package/esm2020/molecules/paginator/public_api.mjs +0 -3
- package/esm2020/molecules/qty-dropdown/qty-dropdown.component.mjs +0 -115
- package/esm2020/molecules/qty-dropdown/qty-dropdown.module.mjs +0 -40
- package/esm2020/molecules/sidebar/animation/sidebar-animation-state.mjs +0 -12
- package/esm2020/molecules/sidebar/animation/sidebar-animation-width.mjs +0 -2
- package/esm2020/molecules/sidebar/animation/sidebar-animation.mjs +0 -47
- package/esm2020/molecules/sidebar/animation/sidebar-viewport-animation-state.mjs +0 -3
- package/esm2020/molecules/sidebar/helper/sidebar-mode.mjs +0 -2
- package/esm2020/molecules/sidebar/helper/sidebar-side.mjs +0 -2
- package/esm2020/molecules/sidebar/public_api.mjs +0 -4
- package/esm2020/molecules/sidebar/sidebar/sidebar.component.mjs +0 -96
- package/esm2020/molecules/sidebar/sidebar-viewport/backdrop-interactable.mjs +0 -5
- package/esm2020/molecules/sidebar/sidebar-viewport/content-pad.mjs +0 -17
- package/esm2020/molecules/sidebar/sidebar-viewport/content-shift.mjs +0 -21
- package/esm2020/molecules/sidebar/sidebar-viewport/sidebar-viewport.component.mjs +0 -123
- package/esm2020/molecules/sidebar/sidebar.module.mjs +0 -37
- package/esm2020/navbar/examples/basic-navbar/basic-navbar.component.mjs +0 -12
- package/esm2020/navbar/examples/basic-navbar/basic-navbar.module.mjs +0 -31
- package/esm2020/navbar/examples/contained-navbar/contained-navbar.component.mjs +0 -12
- package/esm2020/navbar/examples/contained-navbar/contained-navbar.module.mjs +0 -31
- package/esm2020/navbar/examples/navbar-theming/navbar-theming.component.mjs +0 -28
- package/esm2020/navbar/examples/navbar-theming/navbar-theming.module.mjs +0 -32
- package/esm2020/navbar/examples/raised-navbar/raised-navbar.component.mjs +0 -12
- package/esm2020/navbar/examples/raised-navbar/raised-navbar.module.mjs +0 -28
- package/esm2020/notification/examples/default-notification/default-notification.component.mjs +0 -18
- package/esm2020/notification/examples/default-notification/default-notification.module.mjs +0 -36
- package/esm2020/notification/examples/dismissable-notification/dismissable-notification.component.mjs +0 -18
- package/esm2020/notification/examples/dismissable-notification/dismissable-notification.module.mjs +0 -36
- package/esm2020/notification/examples/notification-orientations/notification-orientations.component.mjs +0 -23
- package/esm2020/notification/examples/notification-orientations/notification-orientations.module.mjs +0 -40
- package/esm2020/notification/examples/notification-status/notification-status.component.mjs +0 -24
- package/esm2020/notification/examples/notification-status/notification-status.module.mjs +0 -40
- package/esm2020/notification/notification/notification.component.mjs +0 -95
- package/esm2020/notification/notification-actions/notification-actions.directive.mjs +0 -19
- package/esm2020/notification/notification-message/notification-message.directive.mjs +0 -19
- package/esm2020/notification/notification-subtitle/notification-subtitle.directive.mjs +0 -19
- package/esm2020/notification/notification-title/notification-title.directive.mjs +0 -19
- package/esm2020/notification/notification.module.mjs +0 -54
- package/esm2020/paginator/examples/basic-paginator/basic-paginator.component.mjs +0 -19
- package/esm2020/paginator/examples/link-paginator/link-paginator.component.mjs +0 -26
- package/esm2020/paginator/examples/paginator-examples.module.mjs +0 -27
- package/esm2020/public_api.mjs +0 -43
- package/esm2020/quantity-field/examples/basic-quantity-field/basic-quantity-field.component.mjs +0 -17
- package/esm2020/quantity-field/examples/basic-quantity-field/basic-quantity-field.module.mjs +0 -35
- package/esm2020/quantity-field/examples/custom-range-quantity-field/custom-range-quantity-field.component.mjs +0 -17
- package/esm2020/quantity-field/examples/custom-range-quantity-field/custom-range-quantity-field.module.mjs +0 -35
- package/esm2020/quantity-field/examples/disabled-quantity-field/disabled-quantity-field.component.mjs +0 -17
- package/esm2020/quantity-field/examples/disabled-quantity-field/disabled-quantity-field.module.mjs +0 -35
- package/esm2020/quantity-field/examples/select-max-quantity-field/select-max-quantity-field.component.mjs +0 -17
- package/esm2020/quantity-field/examples/select-max-quantity-field/select-max-quantity-field.module.mjs +0 -35
- package/esm2020/radio/examples/basic-radio/basic-radio.component.mjs +0 -21
- package/esm2020/radio/examples/basic-radio/basic-radio.module.mjs +0 -29
- package/esm2020/sidebar/examples/basic-sidebar/basic-sidebar.component.mjs +0 -12
- package/esm2020/sidebar/examples/basic-sidebar/basic-sidebar.module.mjs +0 -27
- package/esm2020/sidebar/examples/fixed-and-over-sidebar/fixed-and-over-sidebar.component.mjs +0 -21
- package/esm2020/sidebar/examples/fixed-and-over-sidebar/fixed-and-over-sidebar.module.mjs +0 -30
- package/esm2020/sidebar/examples/public_api.mjs +0 -18
- package/esm2020/sidebar/examples/sidebar-with-sticky/sidebar-with-sticky.component.mjs +0 -12
- package/esm2020/sidebar/examples/sidebar-with-sticky/sidebar-with-sticky.module.mjs +0 -27
- package/esm2020/sidebar/examples/two-fixed-sidebars-either-side/two-fixed-sidebars-either-side.component.mjs +0 -12
- package/esm2020/sidebar/examples/two-fixed-sidebars-either-side/two-fixed-sidebars-either-side.module.mjs +0 -27
- package/esm2020/sidebar/examples/under-sidebar/under-sidebar.component.mjs +0 -26
- package/esm2020/sidebar/examples/under-sidebar/under-sidebar.module.mjs +0 -30
- package/esm2020/tree/examples/basic-tree/basic-tree.component.mjs +0 -39
- package/esm2020/tree/examples/basic-tree/basic-tree.module.mjs +0 -32
- package/esm2020/tree/tree/tree-notifier.service.mjs +0 -45
- package/esm2020/tree/tree/tree.component.mjs +0 -106
- package/esm2020/tree/tree-item/tree-item.directive.mjs +0 -154
- package/esm2020/tree/tree.module.mjs +0 -29
- package/fesm2015/daffodil-design-accordion-examples.mjs +0 -74
- package/fesm2015/daffodil-design-accordion-examples.mjs.map +0 -1
- package/fesm2015/daffodil-design-article-examples.mjs +0 -145
- package/fesm2015/daffodil-design-article-examples.mjs.map +0 -1
- package/fesm2015/daffodil-design-button-examples.mjs +0 -312
- package/fesm2015/daffodil-design-button-examples.mjs.map +0 -1
- package/fesm2015/daffodil-design-callout-examples.mjs +0 -213
- package/fesm2015/daffodil-design-callout-examples.mjs.map +0 -1
- package/fesm2015/daffodil-design-card-examples.mjs +0 -346
- package/fesm2015/daffodil-design-card-examples.mjs.map +0 -1
- package/fesm2015/daffodil-design-checkbox-examples.mjs +0 -119
- package/fesm2015/daffodil-design-checkbox-examples.mjs.map +0 -1
- package/fesm2015/daffodil-design-container-examples.mjs +0 -64
- package/fesm2015/daffodil-design-container-examples.mjs.map +0 -1
- package/fesm2015/daffodil-design-hero-examples.mjs +0 -210
- package/fesm2015/daffodil-design-hero-examples.mjs.map +0 -1
- package/fesm2015/daffodil-design-image-examples.mjs +0 -115
- package/fesm2015/daffodil-design-image-examples.mjs.map +0 -1
- package/fesm2015/daffodil-design-input-examples.mjs +0 -145
- package/fesm2015/daffodil-design-input-examples.mjs.map +0 -1
- package/fesm2015/daffodil-design-list-examples.mjs +0 -191
- package/fesm2015/daffodil-design-list-examples.mjs.map +0 -1
- package/fesm2015/daffodil-design-loading-icon-examples.mjs +0 -87
- package/fesm2015/daffodil-design-loading-icon-examples.mjs.map +0 -1
- package/fesm2015/daffodil-design-media-gallery-examples.mjs +0 -116
- package/fesm2015/daffodil-design-media-gallery-examples.mjs.map +0 -1
- package/fesm2015/daffodil-design-menu-examples.mjs +0 -72
- package/fesm2015/daffodil-design-menu-examples.mjs.map +0 -1
- package/fesm2015/daffodil-design-modal-examples.mjs +0 -64
- package/fesm2015/daffodil-design-modal-examples.mjs.map +0 -1
- package/fesm2015/daffodil-design-navbar-examples.mjs +0 -172
- package/fesm2015/daffodil-design-navbar-examples.mjs.map +0 -1
- package/fesm2015/daffodil-design-notification-examples.mjs +0 -203
- package/fesm2015/daffodil-design-notification-examples.mjs.map +0 -1
- package/fesm2015/daffodil-design-notification.mjs +0 -216
- package/fesm2015/daffodil-design-notification.mjs.map +0 -1
- package/fesm2015/daffodil-design-paginator-examples.mjs +0 -75
- package/fesm2015/daffodil-design-paginator-examples.mjs.map +0 -1
- package/fesm2015/daffodil-design-quantity-field-examples.mjs +0 -185
- package/fesm2015/daffodil-design-quantity-field-examples.mjs.map +0 -1
- package/fesm2015/daffodil-design-radio-examples.mjs +0 -60
- package/fesm2015/daffodil-design-radio-examples.mjs.map +0 -1
- package/fesm2015/daffodil-design-sidebar-examples.mjs +0 -208
- package/fesm2015/daffodil-design-sidebar-examples.mjs.map +0 -1
- package/fesm2015/daffodil-design-tree-examples.mjs +0 -79
- package/fesm2015/daffodil-design-tree-examples.mjs.map +0 -1
- package/fesm2015/daffodil-design-tree.mjs +0 -441
- package/fesm2015/daffodil-design-tree.mjs.map +0 -1
- package/fesm2015/daffodil-design.mjs +0 -5979
- package/fesm2015/daffodil-design.mjs.map +0 -1
- package/fesm2020/daffodil-design-accordion-examples.mjs +0 -74
- package/fesm2020/daffodil-design-accordion-examples.mjs.map +0 -1
- package/fesm2020/daffodil-design-article-examples.mjs +0 -145
- package/fesm2020/daffodil-design-article-examples.mjs.map +0 -1
- package/fesm2020/daffodil-design-button-examples.mjs +0 -312
- package/fesm2020/daffodil-design-button-examples.mjs.map +0 -1
- package/fesm2020/daffodil-design-callout-examples.mjs +0 -213
- package/fesm2020/daffodil-design-callout-examples.mjs.map +0 -1
- package/fesm2020/daffodil-design-card-examples.mjs +0 -346
- package/fesm2020/daffodil-design-card-examples.mjs.map +0 -1
- package/fesm2020/daffodil-design-checkbox-examples.mjs +0 -119
- package/fesm2020/daffodil-design-checkbox-examples.mjs.map +0 -1
- package/fesm2020/daffodil-design-container-examples.mjs +0 -64
- package/fesm2020/daffodil-design-container-examples.mjs.map +0 -1
- package/fesm2020/daffodil-design-hero-examples.mjs +0 -210
- package/fesm2020/daffodil-design-hero-examples.mjs.map +0 -1
- package/fesm2020/daffodil-design-image-examples.mjs +0 -115
- package/fesm2020/daffodil-design-image-examples.mjs.map +0 -1
- package/fesm2020/daffodil-design-input-examples.mjs +0 -145
- package/fesm2020/daffodil-design-input-examples.mjs.map +0 -1
- package/fesm2020/daffodil-design-list-examples.mjs +0 -191
- package/fesm2020/daffodil-design-list-examples.mjs.map +0 -1
- package/fesm2020/daffodil-design-loading-icon-examples.mjs +0 -87
- package/fesm2020/daffodil-design-loading-icon-examples.mjs.map +0 -1
- package/fesm2020/daffodil-design-media-gallery-examples.mjs +0 -116
- package/fesm2020/daffodil-design-media-gallery-examples.mjs.map +0 -1
- package/fesm2020/daffodil-design-menu-examples.mjs +0 -72
- package/fesm2020/daffodil-design-menu-examples.mjs.map +0 -1
- package/fesm2020/daffodil-design-modal-examples.mjs +0 -64
- package/fesm2020/daffodil-design-modal-examples.mjs.map +0 -1
- package/fesm2020/daffodil-design-navbar-examples.mjs +0 -172
- package/fesm2020/daffodil-design-navbar-examples.mjs.map +0 -1
- package/fesm2020/daffodil-design-notification-examples.mjs +0 -203
- package/fesm2020/daffodil-design-notification-examples.mjs.map +0 -1
- package/fesm2020/daffodil-design-notification.mjs +0 -216
- package/fesm2020/daffodil-design-notification.mjs.map +0 -1
- package/fesm2020/daffodil-design-paginator-examples.mjs +0 -75
- package/fesm2020/daffodil-design-paginator-examples.mjs.map +0 -1
- package/fesm2020/daffodil-design-quantity-field-examples.mjs +0 -185
- package/fesm2020/daffodil-design-quantity-field-examples.mjs.map +0 -1
- package/fesm2020/daffodil-design-radio-examples.mjs +0 -60
- package/fesm2020/daffodil-design-radio-examples.mjs.map +0 -1
- package/fesm2020/daffodil-design-sidebar-examples.mjs +0 -208
- package/fesm2020/daffodil-design-sidebar-examples.mjs.map +0 -1
- package/fesm2020/daffodil-design-tree-examples.mjs +0 -79
- package/fesm2020/daffodil-design-tree-examples.mjs.map +0 -1
- package/fesm2020/daffodil-design-tree.mjs +0 -446
- package/fesm2020/daffodil-design-tree.mjs.map +0 -1
- package/fesm2020/daffodil-design.mjs +0 -5966
- package/fesm2020/daffodil-design.mjs.map +0 -1
- package/molecules/accordion/accordion/accordion.component.d.ts +0 -24
- package/molecules/accordion/accordion-item/accordion-item.component.d.ts +0 -32
- package/molecules/accordion/accordion.module.d.ts +0 -14
- package/molecules/accordion/nav-accordion-item/nav-accordion-item.component.d.ts +0 -44
- package/molecules/accordion/public_api.d.ts +0 -6
- package/molecules/callout/callout/callout.component.d.ts +0 -90
- package/molecules/card/card/card.component.d.ts +0 -70
- package/molecules/hero/hero/hero.component.d.ts +0 -91
- package/molecules/link-set/link-set/link-set.component.d.ts +0 -31
- package/molecules/list/list/list.component.d.ts +0 -73
- package/molecules/list/list-item/list-item.component.d.ts +0 -30
- package/molecules/list/list.module.d.ts +0 -11
- package/molecules/media-gallery/media-gallery.component.d.ts +0 -45
- package/molecules/media-gallery/media-gallery.module.d.ts +0 -10
- package/molecules/media-gallery/media-renderer/media-renderer.component.d.ts +0 -29
- package/molecules/media-gallery/public_api.d.ts +0 -4
- package/molecules/media-gallery/registry/media-gallery.registry.d.ts +0 -34
- package/molecules/media-gallery/thumbnail/thumbnail-registration.interface.d.ts +0 -9
- package/molecules/media-gallery/thumbnail/thumbnail.directive.d.ts +0 -44
- package/molecules/menu/menu/menu.component.d.ts +0 -19
- package/molecules/menu/menu-activator/menu-activator.component.d.ts +0 -18
- package/molecules/menu/menu-item/menu-item.component.d.ts +0 -20
- package/molecules/menu/public_api.d.ts +0 -6
- package/molecules/menu/service/menu.service.d.ts +0 -24
- package/molecules/modal/animations/modal-animation-state.d.ts +0 -1
- package/molecules/modal/modal/modal.component.d.ts +0 -52
- package/molecules/modal/modal.d.ts +0 -13
- package/molecules/modal/public_api.d.ts +0 -8
- package/molecules/modal/service/modal.service.d.ts +0 -19
- package/molecules/navbar/navbar.component.d.ts +0 -44
- package/molecules/navbar/navbar.module.d.ts +0 -7
- package/molecules/navbar/public_api.d.ts +0 -2
- package/molecules/paginator/paginator.component.d.ts +0 -147
- package/molecules/paginator/paginator.module.d.ts +0 -11
- package/molecules/paginator/public_api.d.ts +0 -2
- package/molecules/sidebar/animation/sidebar-animation-state.d.ts +0 -2
- package/molecules/sidebar/animation/sidebar-animation.d.ts +0 -11
- package/molecules/sidebar/animation/sidebar-viewport-animation-state.d.ts +0 -6
- package/molecules/sidebar/helper/sidebar-mode.d.ts +0 -27
- package/molecules/sidebar/helper/sidebar-side.d.ts +0 -12
- package/molecules/sidebar/public_api.d.ts +0 -5
- package/molecules/sidebar/sidebar/sidebar.component.d.ts +0 -52
- package/molecules/sidebar/sidebar-viewport/backdrop-interactable.d.ts +0 -6
- package/molecules/sidebar/sidebar-viewport/content-pad.d.ts +0 -7
- package/molecules/sidebar/sidebar-viewport/content-shift.d.ts +0 -8
- package/molecules/sidebar/sidebar-viewport/sidebar-viewport.component.d.ts +0 -75
- package/molecules/sidebar/sidebar.module.d.ts +0 -11
- package/sidebar/examples/fixed-and-over-sidebar/fixed-and-over-sidebar.component.d.ts +0 -8
- package/sidebar/examples/fixed-and-over-sidebar/fixed-and-over-sidebar.module.d.ts +0 -8
- package/sidebar/examples/sidebar-with-sticky/sidebar-with-sticky.component.d.ts +0 -5
- package/sidebar/examples/sidebar-with-sticky/sidebar-with-sticky.module.d.ts +0 -8
- package/sidebar/examples/two-fixed-sidebars-either-side/two-fixed-sidebars-either-side.component.d.ts +0 -5
- package/sidebar/examples/two-fixed-sidebars-either-side/two-fixed-sidebars-either-side.module.d.ts +0 -8
- package/sidebar/examples/under-sidebar/under-sidebar.component.d.ts +0 -10
- package/sidebar/examples/under-sidebar/under-sidebar.module.d.ts +0 -8
- package/src/atoms/button/button-theme-variants/button.scss +0 -26
- package/src/atoms/button/button-theme-variants/flat.scss +0 -25
- package/src/atoms/button/button-theme-variants/raised.scss +0 -36
- package/src/atoms/button/button-theme-variants/stroked.scss +0 -28
- package/src/atoms/button/button-theme.scss +0 -574
- package/src/atoms/loading-icon/loading-icon-theme.scss +0 -61
- package/src/molecules/accordion/accordion-item/accordion-item-theme.scss +0 -12
- package/src/molecules/article/article/article-theme.scss +0 -78
- package/src/molecules/callout/callout-theme.scss +0 -59
- package/src/molecules/card/card/card-theme-variants/basic-card.scss +0 -6
- package/src/molecules/card/card/card-theme-variants/linkable-card.scss +0 -16
- package/src/molecules/card/card/card-theme.scss +0 -170
- package/src/molecules/hero/hero-theme.scss +0 -59
- package/src/molecules/list/list/list-theme.scss +0 -71
- package/src/molecules/media-gallery/media-gallery-theme.scss +0 -27
- package/src/molecules/menu/menu-theme.scss +0 -25
- package/src/molecules/modal/modal-theme.scss +0 -9
- package/src/molecules/navbar/navbar-theme.scss +0 -57
- package/src/molecules/paginator/paginator-theme.scss +0 -90
- package/src/molecules/sidebar/helper/_variables.scss +0 -7
- package/src/molecules/sidebar/sidebar/sidebar-theme.scss +0 -13
- package/src/molecules/sidebar/sidebar-viewport/sidebar-viewport-theme.scss +0 -16
- /package/{molecules → accordion}/accordion/accordion-item-content/accordion-item-content.directive.d.ts +0 -0
- /package/{molecules → accordion}/accordion/accordion-item-title/accordion-item-title.directive.d.ts +0 -0
- /package/{molecules → accordion}/accordion/animation/accordion-animation-state.d.ts +0 -0
- /package/{molecules → accordion}/accordion/animation/accordion-animation.d.ts +0 -0
- /package/{molecules/article → article}/article/article.component.d.ts +0 -0
- /package/{molecules/article → article}/article-lead/article-lead.directive.d.ts +0 -0
- /package/{molecules/article → article}/article-meta/article-meta.directive.d.ts +0 -0
- /package/{molecules/article → article}/article-title/article-title.directive.d.ts +0 -0
- /package/{molecules/article → article}/article.module.d.ts +0 -0
- /package/{molecules/article → article}/public_api.d.ts +0 -0
- /package/{src/molecules/article → article/src}/article/_stops-article-cascade.scss +0 -0
- /package/{src/atoms/button → button/src}/button-theme-variants/icon.scss +0 -0
- /package/{src/atoms/button → button/src}/button-theme-variants/underline.scss +0 -0
- /package/{molecules/callout → callout}/callout-body/callout-body.directive.d.ts +0 -0
- /package/{molecules/callout → callout}/callout-icon/callout-icon.directive.d.ts +0 -0
- /package/{molecules/callout → callout}/callout-subtitle/callout-subtitle.directive.d.ts +0 -0
- /package/{molecules/callout → callout}/callout-tagline/callout-tagline.directive.d.ts +0 -0
- /package/{molecules/callout → callout}/callout-title/callout-title.directive.d.ts +0 -0
- /package/{molecules/callout → callout}/callout.module.d.ts +0 -0
- /package/{molecules/callout → callout}/public_api.d.ts +0 -0
- /package/{molecules/card → card}/card-actions/card-actions.directive.d.ts +0 -0
- /package/{molecules/card → card}/card-content/card-content.directive.d.ts +0 -0
- /package/{molecules/card → card}/card-icon/card-icon.directive.d.ts +0 -0
- /package/{molecules/card → card}/card-image/card-image.directive.d.ts +0 -0
- /package/{molecules/card → card}/card-tagline/card-tagline.directive.d.ts +0 -0
- /package/{molecules/card → card}/card-title/card-title.directive.d.ts +0 -0
- /package/{molecules/card → card}/card.module.d.ts +0 -0
- /package/{molecules/card → card}/public_api.d.ts +0 -0
- /package/{src/molecules/card/card → card/src}/card-theme-variants/stroked-card.scss +0 -0
- /package/{esm2020 → esm2022}/accordion/examples/daffodil-design-accordion-examples.mjs +0 -0
- /package/{esm2020 → esm2022}/accordion/examples/index.mjs +0 -0
- /package/{esm2020 → esm2022}/article/examples/daffodil-design-article-examples.mjs +0 -0
- /package/{esm2020 → esm2022}/article/examples/examples.mjs +0 -0
- /package/{esm2020 → esm2022}/article/examples/index.mjs +0 -0
- /package/{esm2020 → esm2022}/article/examples/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/atoms/form/checkbox/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/atoms/form/core/error-state-matcher/error-state-matcher.mjs +0 -0
- /package/{esm2020 → esm2022}/atoms/form/core/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/atoms/form/error-message/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/atoms/form/form-field/form-field-control.mjs +0 -0
- /package/{esm2020 → esm2022}/atoms/form/form-field/form-field-errors.mjs +0 -0
- /package/{esm2020 → esm2022}/atoms/form/form-field/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/atoms/form/form-label/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/atoms/form/input/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/atoms/form/native-select/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/atoms/form/quantity-field/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/atoms/form/radio/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/atoms/progress-indicator/animation/progress-indicator-animation.mjs +0 -0
- /package/{esm2020 → esm2022}/atoms/progress-indicator/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/button/examples/daffodil-design-button-examples.mjs +0 -0
- /package/{esm2020 → esm2022}/button/examples/examples.mjs +0 -0
- /package/{esm2020 → esm2022}/button/examples/index.mjs +0 -0
- /package/{esm2020 → esm2022}/button/examples/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/callout/examples/daffodil-design-callout-examples.mjs +0 -0
- /package/{esm2020 → esm2022}/callout/examples/examples.mjs +0 -0
- /package/{esm2020 → esm2022}/callout/examples/index.mjs +0 -0
- /package/{esm2020 → esm2022}/callout/examples/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/card/examples/daffodil-design-card-examples.mjs +0 -0
- /package/{esm2020 → esm2022}/card/examples/index.mjs +0 -0
- /package/{esm2020 → esm2022}/card/examples/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/checkbox/examples/daffodil-design-checkbox-examples.mjs +0 -0
- /package/{esm2020 → esm2022}/checkbox/examples/examples.mjs +0 -0
- /package/{esm2020 → esm2022}/checkbox/examples/index.mjs +0 -0
- /package/{esm2020 → esm2022}/checkbox/examples/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/container/examples/daffodil-design-container-examples.mjs +0 -0
- /package/{esm2020 → esm2022}/container/examples/examples.mjs +0 -0
- /package/{esm2020 → esm2022}/container/examples/index.mjs +0 -0
- /package/{esm2020 → esm2022}/container/examples/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/core/animation/animation-state-with-params.mjs +0 -0
- /package/{esm2020 → esm2022}/core/article-encapsulated/article-encapsulated-mixin.mjs +0 -0
- /package/{esm2020 → esm2022}/core/article-encapsulated/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/core/breakpoints/breakpoints.mjs +0 -0
- /package/{esm2020 → esm2022}/core/colorable/color-in-palette.mjs +0 -0
- /package/{esm2020 → esm2022}/core/colorable/colorable-enum.mjs +0 -0
- /package/{esm2020 → esm2022}/core/colorable/colorable.mjs +0 -0
- /package/{esm2020 → esm2022}/core/colorable/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/core/compactable/compactable.mjs +0 -0
- /package/{esm2020 → esm2022}/core/compactable/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/core/constructor/constructor.mjs +0 -0
- /package/{esm2020 → esm2022}/core/focus/focusable-elements.mjs +0 -0
- /package/{esm2020 → esm2022}/core/focus/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/core/lazy/lazy-component.mjs +0 -0
- /package/{esm2020 → esm2022}/core/lazy/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/core/manage-container-layout/manage-container-layout-mixin.mjs +0 -0
- /package/{esm2020 → esm2022}/core/manage-container-layout/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/core/mutable/mutable.mjs +0 -0
- /package/{esm2020 → esm2022}/core/prefix-suffix/prefixable/prefixable-interface.mjs +0 -0
- /package/{esm2020 → esm2022}/core/prefix-suffix/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/core/prefix-suffix/suffixable/suffixable-interface.mjs +0 -0
- /package/{esm2020 → esm2022}/core/skeletonable/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/core/skeletonable/skeletonable.mjs +0 -0
- /package/{esm2020 → esm2022}/core/statusable/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/core/statusable/statusable.mjs +0 -0
- /package/{esm2020 → esm2022}/core/theming/functions/computer.mjs +0 -0
- /package/{esm2020 → esm2022}/core/theming/initializer.mjs +0 -0
- /package/{esm2020 → esm2022}/core/theming/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/core/theming/types/theme.mjs +0 -0
- /package/{esm2020 → esm2022}/daffodil-design.mjs +0 -0
- /package/{esm2020 → esm2022}/examples/examples.mjs +0 -0
- /package/{esm2020 → esm2022}/examples/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/hero/examples/daffodil-design-hero-examples.mjs +0 -0
- /package/{esm2020 → esm2022}/hero/examples/examples.mjs +0 -0
- /package/{esm2020 → esm2022}/hero/examples/index.mjs +0 -0
- /package/{esm2020 → esm2022}/hero/examples/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/image/examples/daffodil-design-image-examples.mjs +0 -0
- /package/{esm2020 → esm2022}/image/examples/index.mjs +0 -0
- /package/{esm2020 → esm2022}/image/examples/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/input/examples/daffodil-design-input-examples.mjs +0 -0
- /package/{esm2020 → esm2022}/input/examples/examples.mjs +0 -0
- /package/{esm2020 → esm2022}/input/examples/index.mjs +0 -0
- /package/{esm2020 → esm2022}/input/examples/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/list/examples/daffodil-design-list-examples.mjs +0 -0
- /package/{esm2020 → esm2022}/list/examples/examples.mjs +0 -0
- /package/{esm2020 → esm2022}/list/examples/index.mjs +0 -0
- /package/{esm2020 → esm2022}/list/examples/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/loading-icon/examples/daffodil-design-loading-icon-examples.mjs +0 -0
- /package/{esm2020 → esm2022}/loading-icon/examples/examples.mjs +0 -0
- /package/{esm2020 → esm2022}/loading-icon/examples/index.mjs +0 -0
- /package/{esm2020 → esm2022}/loading-icon/examples/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/media-gallery/examples/daffodil-design-media-gallery-examples.mjs +0 -0
- /package/{esm2020 → esm2022}/media-gallery/examples/examples.mjs +0 -0
- /package/{esm2020 → esm2022}/media-gallery/examples/index.mjs +0 -0
- /package/{esm2020 → esm2022}/media-gallery/examples/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/menu/examples/daffodil-design-menu-examples.mjs +0 -0
- /package/{esm2020 → esm2022}/menu/examples/index.mjs +0 -0
- /package/{esm2020 → esm2022}/menu/examples/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/modal/examples/daffodil-design-modal-examples.mjs +0 -0
- /package/{esm2020 → esm2022}/modal/examples/index.mjs +0 -0
- /package/{esm2020 → esm2022}/modal/examples/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/molecules/backdrop/animation/backdrop-animation-state.mjs +0 -0
- /package/{esm2020 → esm2022}/molecules/backdrop/animation/backdrop-animation.mjs +0 -0
- /package/{esm2020 → esm2022}/molecules/backdrop/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/molecules/button-set/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/molecules/feature/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/molecules/image-gallery/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/molecules/image-list/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/molecules/qty-dropdown/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/navbar/examples/daffodil-design-navbar-examples.mjs +0 -0
- /package/{esm2020 → esm2022}/navbar/examples/examples.mjs +0 -0
- /package/{esm2020 → esm2022}/navbar/examples/index.mjs +0 -0
- /package/{esm2020 → esm2022}/navbar/examples/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/notification/daffodil-design-notification.mjs +0 -0
- /package/{esm2020 → esm2022}/notification/examples/daffodil-design-notification-examples.mjs +0 -0
- /package/{esm2020 → esm2022}/notification/examples/index.mjs +0 -0
- /package/{esm2020 → esm2022}/notification/examples/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/notification/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/paginator/examples/daffodil-design-paginator-examples.mjs +0 -0
- /package/{esm2020 → esm2022}/paginator/examples/examples.mjs +0 -0
- /package/{esm2020 → esm2022}/paginator/examples/index.mjs +0 -0
- /package/{esm2020 → esm2022}/paginator/examples/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/quantity-field/examples/daffodil-design-quantity-field-examples.mjs +0 -0
- /package/{esm2020 → esm2022}/quantity-field/examples/index.mjs +0 -0
- /package/{esm2020 → esm2022}/quantity-field/examples/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/radio/examples/daffodil-design-radio-examples.mjs +0 -0
- /package/{esm2020 → esm2022}/radio/examples/examples.mjs +0 -0
- /package/{esm2020 → esm2022}/radio/examples/index.mjs +0 -0
- /package/{esm2020 → esm2022}/radio/examples/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/sidebar/examples/daffodil-design-sidebar-examples.mjs +0 -0
- /package/{esm2020 → esm2022}/sidebar/examples/index.mjs +0 -0
- /package/{esm2020 → esm2022}/tree/daffodil-design-tree.mjs +0 -0
- /package/{esm2020 → esm2022}/tree/examples/daffodil-design-tree-examples.mjs +0 -0
- /package/{esm2020 → esm2022}/tree/examples/index.mjs +0 -0
- /package/{esm2020 → esm2022}/tree/examples/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/tree/index.mjs +0 -0
- /package/{esm2020 → esm2022}/tree/interfaces/recursive-key.mjs +0 -0
- /package/{esm2020 → esm2022}/tree/interfaces/tree-data.mjs +0 -0
- /package/{esm2020 → esm2022}/tree/interfaces/tree-ui.mjs +0 -0
- /package/{esm2020 → esm2022}/tree/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/tree/utils/flatten-tree.mjs +0 -0
- /package/{esm2020 → esm2022}/tree/utils/hydrate-tree.mjs +0 -0
- /package/{esm2020 → esm2022}/tree/utils/transform-in-place.mjs +0 -0
- /package/{esm2020 → esm2022}/tree/utils/traverse-tree.mjs +0 -0
- /package/{molecules/hero → hero}/hero-body/hero-body.directive.d.ts +0 -0
- /package/{molecules/hero → hero}/hero-icon/hero-icon.directive.d.ts +0 -0
- /package/{molecules/hero → hero}/hero-subtitle/hero-subtitle.directive.d.ts +0 -0
- /package/{molecules/hero → hero}/hero-tagline/hero-tagline.directive.d.ts +0 -0
- /package/{molecules/hero → hero}/hero-title/hero-title.directive.d.ts +0 -0
- /package/{molecules/hero → hero}/hero.module.d.ts +0 -0
- /package/{molecules/hero → hero}/public_api.d.ts +0 -0
- /package/{molecules/link-set → link-set}/link-set-heading/link-set-heading.directive.d.ts +0 -0
- /package/{molecules/link-set → link-set}/link-set-item/link-set-item.component.d.ts +0 -0
- /package/{molecules/link-set → link-set}/link-set-subheading/link-set-subheading.directive.d.ts +0 -0
- /package/{molecules/link-set → link-set}/link-set.module.d.ts +0 -0
- /package/{molecules/link-set → link-set}/public_api.d.ts +0 -0
- /package/{molecules/list → list}/list-subheader/list-subheader.directive.d.ts +0 -0
- /package/{molecules/list → list}/public_api.d.ts +0 -0
- /package/{molecules/media-gallery → media-gallery/helpers}/media-gallery-registration.interface.d.ts +0 -0
- /package/{molecules/media-gallery → media-gallery/helpers}/media-gallery-token.d.ts +0 -0
- /package/{molecules/media-gallery → media-gallery}/thumbnail/thumbnail-compat.token.d.ts +0 -0
- /package/{molecules/menu → menu}/helpers/create-overlay.d.ts +0 -0
- /package/{molecules/menu → menu}/helpers/public_api.d.ts +0 -0
- /package/{molecules/menu → menu}/menu.module.d.ts +0 -0
- /package/{molecules/modal → modal}/animations/modal-animation.d.ts +0 -0
- /package/{molecules/modal → modal}/modal/modal-config.d.ts +0 -0
- /package/{molecules/modal → modal}/modal-actions/modal-actions.component.d.ts +0 -0
- /package/{molecules/modal → modal}/modal-content/modal-content.component.d.ts +0 -0
- /package/{molecules/modal → modal}/modal-header/modal-header.component.d.ts +0 -0
- /package/{molecules/modal → modal}/modal-title/modal-title.directive.d.ts +0 -0
- /package/{molecules/modal → modal}/modal.module.d.ts +0 -0
- /package/{molecules/paginator → paginator/utils}/paginator-errors.d.ts +0 -0
- /package/{molecules/sidebar → sidebar}/animation/sidebar-animation-width.d.ts +0 -0
@@ -0,0 +1,59 @@
|
|
1
|
+
import { Component, Input, Optional, Self, ElementRef, HostListener, ChangeDetectionStrategy, } from '@angular/core';
|
2
|
+
import { NgControl } from '@angular/forms';
|
3
|
+
import { DaffFormFieldControl } from '../form-field/form-field-control';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
import * as i1 from "@angular/forms";
|
6
|
+
/**
|
7
|
+
* DaffInputComponent provides the same functionality as a native `<input>` and contains custom styling and functionality.
|
8
|
+
*/
|
9
|
+
export class DaffInputComponent {
|
10
|
+
/**
|
11
|
+
* @docs-private
|
12
|
+
*/
|
13
|
+
focus() {
|
14
|
+
this.focused = true;
|
15
|
+
}
|
16
|
+
/**
|
17
|
+
* @docs-private
|
18
|
+
*/
|
19
|
+
blur() {
|
20
|
+
this.focused = false;
|
21
|
+
}
|
22
|
+
constructor(
|
23
|
+
/**
|
24
|
+
* @docs-private
|
25
|
+
*/
|
26
|
+
ngControl, _elementRef) {
|
27
|
+
this.ngControl = ngControl;
|
28
|
+
this._elementRef = _elementRef;
|
29
|
+
this.focused = false;
|
30
|
+
}
|
31
|
+
onFocus() {
|
32
|
+
this._elementRef.nativeElement.focus();
|
33
|
+
}
|
34
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffInputComponent, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
35
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.1", type: DaffInputComponent, selector: "input[daff-input]", inputs: { formSubmitted: "formSubmitted" }, host: { listeners: { "focus": "focus()", "blur": "blur()" } }, providers: [
|
36
|
+
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
37
|
+
{ provide: DaffFormFieldControl, useExisting: DaffInputComponent },
|
38
|
+
], 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 }); }
|
39
|
+
}
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffInputComponent, decorators: [{
|
41
|
+
type: Component,
|
42
|
+
args: [{ selector: 'input[daff-input]', template: '<ng-content></ng-content>', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
43
|
+
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
44
|
+
{ provide: DaffFormFieldControl, useExisting: DaffInputComponent },
|
45
|
+
], 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"] }]
|
46
|
+
}], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
|
47
|
+
type: Optional
|
48
|
+
}, {
|
49
|
+
type: Self
|
50
|
+
}] }, { type: i0.ElementRef }], propDecorators: { formSubmitted: [{
|
51
|
+
type: Input
|
52
|
+
}], focus: [{
|
53
|
+
type: HostListener,
|
54
|
+
args: ['focus']
|
55
|
+
}], blur: [{
|
56
|
+
type: HostListener,
|
57
|
+
args: ['blur']
|
58
|
+
}] } });
|
59
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9kZXNpZ24vc3JjL2F0b21zL2Zvcm0vaW5wdXQvaW5wdXQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxTQUFTLEVBQ1QsS0FBSyxFQUNMLFFBQVEsRUFDUixJQUFJLEVBQ0osVUFBVSxFQUNWLFlBQVksRUFDWix1QkFBdUIsR0FDeEIsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRTNDLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLGtDQUFrQyxDQUFDOzs7QUFFeEU7O0dBRUc7QUFZSCxNQUFNLE9BQU8sa0JBQWtCO0lBUzdCOztPQUVHO0lBQ29CLEtBQUs7UUFDMUIsSUFBSSxDQUFDLE9BQU8sR0FBRyxJQUFJLENBQUM7SUFDdEIsQ0FBQztJQUVEOztPQUVHO0lBQ21CLElBQUk7UUFDeEIsSUFBSSxDQUFDLE9BQU8sR0FBRyxLQUFLLENBQUM7SUFDdkIsQ0FBQztJQUVEO0lBQ0U7O09BRUc7SUFDd0IsU0FBb0IsRUFDdkMsV0FBeUM7UUFEdEIsY0FBUyxHQUFULFNBQVMsQ0FBVztRQUN2QyxnQkFBVyxHQUFYLFdBQVcsQ0FBOEI7UUFyQm5ELFlBQU8sR0FBRyxLQUFLLENBQUM7SUFzQmIsQ0FBQztJQUVKLE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QGRvY3MtcHJpdmF0ZVxuICAgKi9cbiAgQEhvc3RMaXN0ZW5lcignYmx1cicpIGJsdXIoKSB7XG4gICAgdGhpcy5mb2N1c2VkID0gZmFsc2U7XG4gIH1cblxuICBjb25zdHJ1Y3RvcihcbiAgICAvKipcbiAgICAgKiBAZG9jcy1wcml2YXRlXG4gICAgICovXG4gICAgQE9wdGlvbmFsKCkgQFNlbGYoKSBwdWJsaWMgbmdDb250cm9sOiBOZ0NvbnRyb2wsXG4gICAgcHJpdmF0ZSBfZWxlbWVudFJlZjogRWxlbWVudFJlZjxIVE1MSW5wdXRFbGVtZW50PixcbiAgKSB7fVxuXG4gIG9uRm9jdXMoKSB7XG4gICAgdGhpcy5fZWxlbWVudFJlZi5uYXRpdmVFbGVtZW50LmZvY3VzKCk7XG4gIH1cbn1cbiJdfQ==
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
2
|
+
import { NgModule } from '@angular/core';
|
3
|
+
import { DaffInputComponent } from './input.component';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export class DaffInputModule {
|
6
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
7
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.1", ngImport: i0, type: DaffInputModule, declarations: [DaffInputComponent], imports: [CommonModule], exports: [DaffInputComponent] }); }
|
8
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffInputModule, imports: [CommonModule] }); }
|
9
|
+
}
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffInputModule, decorators: [{
|
11
|
+
type: NgModule,
|
12
|
+
args: [{
|
13
|
+
imports: [
|
14
|
+
CommonModule,
|
15
|
+
],
|
16
|
+
exports: [
|
17
|
+
DaffInputComponent,
|
18
|
+
],
|
19
|
+
declarations: [
|
20
|
+
DaffInputComponent,
|
21
|
+
],
|
22
|
+
}]
|
23
|
+
}] });
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9kZXNpZ24vc3JjL2F0b21zL2Zvcm0vaW5wdXQvaW5wdXQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRXpDLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLG1CQUFtQixDQUFDOztBQWF2RCxNQUFNLE9BQU8sZUFBZTtpSUFBZixlQUFlO2tJQUFmLGVBQWUsaUJBSHhCLGtCQUFrQixhQU5sQixZQUFZLGFBR1osa0JBQWtCO2tJQU1ULGVBQWUsWUFUeEIsWUFBWTs7MkZBU0gsZUFBZTtrQkFYM0IsUUFBUTttQkFBQztvQkFDUixPQUFPLEVBQUU7d0JBQ1AsWUFBWTtxQkFDYjtvQkFDRCxPQUFPLEVBQUU7d0JBQ1Asa0JBQWtCO3FCQUNuQjtvQkFDRCxZQUFZLEVBQUU7d0JBQ1osa0JBQWtCO3FCQUNuQjtpQkFDRiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbW1vbk1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5pbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5pbXBvcnQgeyBEYWZmSW5wdXRDb21wb25lbnQgfSBmcm9tICcuL2lucHV0LmNvbXBvbmVudCc7XG5cbkBOZ01vZHVsZSh7XG4gIGltcG9ydHM6IFtcbiAgICBDb21tb25Nb2R1bGUsXG4gIF0sXG4gIGV4cG9ydHM6IFtcbiAgICBEYWZmSW5wdXRDb21wb25lbnQsXG4gIF0sXG4gIGRlY2xhcmF0aW9uczogW1xuICAgIERhZmZJbnB1dENvbXBvbmVudCxcbiAgXSxcbn0pXG5leHBvcnQgY2xhc3MgRGFmZklucHV0TW9kdWxlIHsgfVxuIl19
|
@@ -0,0 +1,64 @@
|
|
1
|
+
import { Component, ViewEncapsulation, Optional, Self, Input, ElementRef, HostListener, HostBinding, ChangeDetectionStrategy, } from '@angular/core';
|
2
|
+
import { NgControl } from '@angular/forms';
|
3
|
+
import { DaffFormFieldControl } from '../form-field/form-field-control';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
import * as i1 from "@angular/forms";
|
6
|
+
export class DaffNativeSelectComponent {
|
7
|
+
/**
|
8
|
+
* @docs-private
|
9
|
+
*/
|
10
|
+
focus() {
|
11
|
+
this.focused = true;
|
12
|
+
}
|
13
|
+
/**
|
14
|
+
* @docs-private
|
15
|
+
*/
|
16
|
+
blur() {
|
17
|
+
this.focused = false;
|
18
|
+
}
|
19
|
+
constructor(
|
20
|
+
/**
|
21
|
+
* @docs-private
|
22
|
+
*/
|
23
|
+
ngControl, _elementRef) {
|
24
|
+
this.ngControl = ngControl;
|
25
|
+
this._elementRef = _elementRef;
|
26
|
+
/**
|
27
|
+
* @docs-private
|
28
|
+
*/
|
29
|
+
this.controlType = 'native-select';
|
30
|
+
this.class = true;
|
31
|
+
this.focused = false;
|
32
|
+
}
|
33
|
+
onFocus() {
|
34
|
+
this._elementRef.nativeElement.focus();
|
35
|
+
}
|
36
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffNativeSelectComponent, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
37
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.1", type: DaffNativeSelectComponent, selector: "select[daff-native-select]", inputs: { formSubmitted: "formSubmitted" }, host: { listeners: { "focus": "focus()", "blur": "blur()" }, properties: { "class.daff-native-select": "this.class" } }, providers: [
|
38
|
+
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
39
|
+
{ provide: DaffFormFieldControl, useExisting: DaffNativeSelectComponent },
|
40
|
+
], 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 }); }
|
41
|
+
}
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffNativeSelectComponent, decorators: [{
|
43
|
+
type: Component,
|
44
|
+
args: [{ selector: 'select[daff-native-select]', template: '<ng-content></ng-content>', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
45
|
+
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
46
|
+
{ provide: DaffFormFieldControl, useExisting: DaffNativeSelectComponent },
|
47
|
+
], 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"] }]
|
48
|
+
}], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
|
49
|
+
type: Optional
|
50
|
+
}, {
|
51
|
+
type: Self
|
52
|
+
}] }, { type: i0.ElementRef }], propDecorators: { class: [{
|
53
|
+
type: HostBinding,
|
54
|
+
args: ['class.daff-native-select']
|
55
|
+
}], formSubmitted: [{
|
56
|
+
type: Input
|
57
|
+
}], focus: [{
|
58
|
+
type: HostListener,
|
59
|
+
args: ['focus']
|
60
|
+
}], blur: [{
|
61
|
+
type: HostListener,
|
62
|
+
args: ['blur']
|
63
|
+
}] } });
|
64
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmF0aXZlLXNlbGVjdC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Rlc2lnbi9zcmMvYXRvbXMvZm9ybS9uYXRpdmUtc2VsZWN0L25hdGl2ZS1zZWxlY3QuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxTQUFTLEVBQ1QsaUJBQWlCLEVBQ2pCLFFBQVEsRUFDUixJQUFJLEVBQ0osS0FBSyxFQUNMLFVBQVUsRUFDVixZQUFZLEVBQ1osV0FBVyxFQUNYLHVCQUF1QixHQUN4QixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFM0MsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sa0NBQWtDLENBQUM7OztBQWV4RSxNQUFNLE9BQU8seUJBQXlCO0lBY3BDOztPQUVHO0lBQ29CLEtBQUs7UUFDM0IsSUFBSSxDQUFDLE9BQU8sR0FBRyxJQUFJLENBQUM7SUFDckIsQ0FBQztJQUVEOztPQUVHO0lBQ21CLElBQUk7UUFDeEIsSUFBSSxDQUFDLE9BQU8sR0FBRyxLQUFLLENBQUM7SUFDdkIsQ0FBQztJQUVEO0lBQ0U7O09BRUc7SUFDd0IsU0FBb0IsRUFDdkMsV0FBeUM7UUFEdEIsY0FBUyxHQUFULFNB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UeXBlID0gJ25hdGl2ZS1zZWxlY3QnO1xuXG4gIEBIb3N0QmluZGluZygnY2xhc3MuZGFmZi1uYXRpdmUtc2VsZWN0JykgY2xhc3MgPSB0cnVlO1xuXG4gIC8qKlxuICAgKiBIYXMgdGhlIGZvcm0gYmVlbiBzdWJtaXR0ZWQuXG4gICAqL1xuICBASW5wdXQoKSBmb3JtU3VibWl0dGVkOiBib29sZWFuO1xuICBmb2N1c2VkID0gZmFsc2U7XG5cbiAgLyoqXG4gICAqIEBkb2NzLXByaXZhdGVcbiAgICovXG4gIEBIb3N0TGlzdGVuZXIoJ2ZvY3VzJykgZm9jdXMoKSB7XG5cdCAgdGhpcy5mb2N1c2VkID0gdHJ1ZTtcbiAgfVxuXG4gIC8qKlxuICAgKiBAZG9jcy1wcml2YXRlXG4gICAqL1xuICBASG9zdExpc3RlbmVyKCdibHVyJykgYmx1cigpIHtcbiAgICB0aGlzLmZvY3VzZWQgPSBmYWxzZTtcbiAgfVxuXG4gIGNvbnN0cnVjdG9yKFxuICAgIC8qKlxuICAgICAqIEBkb2NzLXByaXZhdGVcbiAgICAgKi9cbiAgICBAT3B0aW9uYWwoKSBAU2VsZigpIHB1YmxpYyBuZ0NvbnRyb2w6IE5nQ29udHJvbCxcbiAgICBwcml2YXRlIF9lbGVtZW50UmVmOiBFbGVtZW50UmVmPEhUTUxJbnB1dEVsZW1lbnQ+LFxuICApIHt9XG5cbiAgb25Gb2N1cygpIHtcbiAgICB0aGlzLl9lbGVtZW50UmVmLm5hdGl2ZUVsZW1lbnQuZm9jdXMoKTtcbiAgfVxuXG59XG4iXX0=
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
2
|
+
import { NgModule } from '@angular/core';
|
3
|
+
import { DaffNativeSelectComponent } from './native-select.component';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export class DaffNativeSelectModule {
|
6
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffNativeSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
7
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.1", ngImport: i0, type: DaffNativeSelectModule, declarations: [DaffNativeSelectComponent], imports: [CommonModule], exports: [DaffNativeSelectComponent] }); }
|
8
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffNativeSelectModule, imports: [CommonModule] }); }
|
9
|
+
}
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffNativeSelectModule, decorators: [{
|
11
|
+
type: NgModule,
|
12
|
+
args: [{
|
13
|
+
imports: [
|
14
|
+
CommonModule,
|
15
|
+
],
|
16
|
+
exports: [
|
17
|
+
DaffNativeSelectComponent,
|
18
|
+
],
|
19
|
+
declarations: [
|
20
|
+
DaffNativeSelectComponent,
|
21
|
+
],
|
22
|
+
}]
|
23
|
+
}] });
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmF0aXZlLXNlbGVjdC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Rlc2lnbi9zcmMvYXRvbXMvZm9ybS9uYXRpdmUtc2VsZWN0L25hdGl2ZS1zZWxlY3QubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRXpDLE9BQU8sRUFBRSx5QkFBeUIsRUFBRSxNQUFNLDJCQUEyQixDQUFDOztBQWF0RSxNQUFNLE9BQU8sc0JBQXNCO2lJQUF0QixzQkFBc0I7a0lBQXRCLHNCQUFzQixpQkFIL0IseUJBQXlCLGFBTnpCLFlBQVksYUFHWix5QkFBeUI7a0lBTWhCLHNCQUFzQixZQVQvQixZQUFZOzsyRkFTSCxzQkFBc0I7a0JBWGxDLFFBQVE7bUJBQUM7b0JBQ1IsT0FBTyxFQUFFO3dCQUNQLFlBQVk7cUJBQ2I7b0JBQ0QsT0FBTyxFQUFFO3dCQUNQLHlCQUF5QjtxQkFDMUI7b0JBQ0QsWUFBWSxFQUFFO3dCQUNaLHlCQUF5QjtxQkFDMUI7aUJBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21tb25Nb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuaW1wb3J0IHsgRGFmZk5hdGl2ZVNlbGVjdENvbXBvbmVudCB9IGZyb20gJy4vbmF0aXZlLXNlbGVjdC5jb21wb25lbnQnO1xuXG5ATmdNb2R1bGUoe1xuICBpbXBvcnRzOiBbXG4gICAgQ29tbW9uTW9kdWxlLFxuICBdLFxuICBleHBvcnRzOiBbXG4gICAgRGFmZk5hdGl2ZVNlbGVjdENvbXBvbmVudCxcbiAgXSxcbiAgZGVjbGFyYXRpb25zOiBbXG4gICAgRGFmZk5hdGl2ZVNlbGVjdENvbXBvbmVudCxcbiAgXSxcbn0pXG5leHBvcnQgY2xhc3MgRGFmZk5hdGl2ZVNlbGVjdE1vZHVsZSB7IH1cbiJdfQ==
|
@@ -0,0 +1,134 @@
|
|
1
|
+
import { coerceNumberProperty } from '@angular/cdk/coercion';
|
2
|
+
import { Component, Input, ChangeDetectionStrategy, Optional, Self, ViewChild, ChangeDetectorRef, } from '@angular/core';
|
3
|
+
import { NgControl, } from '@angular/forms';
|
4
|
+
import { DaffQuantityInputComponent } from './quantity-input/quantity-input.component';
|
5
|
+
import { DaffQuantitySelectComponent } from './quantity-select/quantity-select.component';
|
6
|
+
import { DaffFormFieldControl } from '../form-field/form-field-control';
|
7
|
+
import * as i0 from "@angular/core";
|
8
|
+
import * as i1 from "@angular/forms";
|
9
|
+
import * as i2 from "@angular/common";
|
10
|
+
import * as i3 from "./quantity-input/quantity-input.component";
|
11
|
+
import * as i4 from "./quantity-select/quantity-select.component";
|
12
|
+
export class DaffQuantityFieldComponent {
|
13
|
+
get focused() {
|
14
|
+
return !!(this.input?.focused || this.select?.focused);
|
15
|
+
}
|
16
|
+
get quantity() {
|
17
|
+
return this._quantity;
|
18
|
+
}
|
19
|
+
set quantity(value) {
|
20
|
+
this._quantity = coerceNumberProperty(value, 1);
|
21
|
+
}
|
22
|
+
/**
|
23
|
+
* Returns the lesser of max and selectMax.
|
24
|
+
*/
|
25
|
+
get _maxFloor() {
|
26
|
+
return Math.min(this.max, this.selectMax);
|
27
|
+
}
|
28
|
+
get controlType() {
|
29
|
+
// TODO: use enum
|
30
|
+
return this.showInputField
|
31
|
+
? 'native-input'
|
32
|
+
: 'native-select';
|
33
|
+
}
|
34
|
+
get showInputField() {
|
35
|
+
const ret = this._inputHasBeenShown || (this.ngControl
|
36
|
+
? this.ngControl.value >= this.selectMax
|
37
|
+
: this.quantity >= this.selectMax);
|
38
|
+
if (ret) {
|
39
|
+
this._inputHasBeenShown = true;
|
40
|
+
}
|
41
|
+
return ret;
|
42
|
+
}
|
43
|
+
get showSelectField() {
|
44
|
+
return !this.showInputField;
|
45
|
+
}
|
46
|
+
constructor(ngControl, cd) {
|
47
|
+
this.ngControl = ngControl;
|
48
|
+
this.cd = cd;
|
49
|
+
/**
|
50
|
+
* @docs
|
51
|
+
* The minimum valid value of the quantity field.
|
52
|
+
* Must be greater than or equal to 1.
|
53
|
+
*/
|
54
|
+
this.min = 1;
|
55
|
+
/**
|
56
|
+
* @docs
|
57
|
+
* The maximum valid value of the quantity field.
|
58
|
+
* Must be greater than min.
|
59
|
+
*/
|
60
|
+
this.max = 500;
|
61
|
+
/**
|
62
|
+
* @docs
|
63
|
+
* The range of numbers acceptable in a quantity dropdown
|
64
|
+
* before it becomes an input element.
|
65
|
+
*/
|
66
|
+
this.selectMax = 10;
|
67
|
+
this.disabled = false;
|
68
|
+
this._quantity = 1;
|
69
|
+
this._inputHasBeenShown = false;
|
70
|
+
if (this.ngControl != null) {
|
71
|
+
this.ngControl.valueAccessor = this;
|
72
|
+
}
|
73
|
+
}
|
74
|
+
onChange(quantity) { }
|
75
|
+
;
|
76
|
+
onTouched(quantity) { }
|
77
|
+
;
|
78
|
+
writeValue(quantity) {
|
79
|
+
this.quantity = quantity;
|
80
|
+
this.cd.markForCheck();
|
81
|
+
}
|
82
|
+
registerOnChange(fn) {
|
83
|
+
this.onChange = fn;
|
84
|
+
}
|
85
|
+
registerOnTouched(fn) {
|
86
|
+
this.onTouched = fn;
|
87
|
+
}
|
88
|
+
setDisabledState(isDisabled) {
|
89
|
+
this.disabled = isDisabled;
|
90
|
+
}
|
91
|
+
focus() {
|
92
|
+
if (this.select) {
|
93
|
+
this.select.focus();
|
94
|
+
}
|
95
|
+
if (this.input) {
|
96
|
+
this.input.focus();
|
97
|
+
}
|
98
|
+
}
|
99
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffQuantityFieldComponent, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
100
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.1", type: DaffQuantityFieldComponent, selector: "daff-quantity-field", inputs: { min: "min", max: "max", selectMax: "selectMax" }, providers: [
|
101
|
+
{
|
102
|
+
provide: DaffFormFieldControl,
|
103
|
+
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
104
|
+
useExisting: DaffQuantityFieldComponent,
|
105
|
+
},
|
106
|
+
], 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\" [max]=\"_maxFloor\" [extendable]=\"max > selectMax\">\n</daff-quantity-select>\n<daff-quantity-input\n *ngIf=\"showInputField\"\n [min]=\"min\" [max]=\"max\">\n</daff-quantity-input>\n", dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.DaffQuantityInputComponent, selector: "daff-quantity-input", inputs: ["min", "max"] }, { kind: "component", type: i4.DaffQuantitySelectComponent, selector: "daff-quantity-select", inputs: ["min", "max", "extendable"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
107
|
+
}
|
108
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffQuantityFieldComponent, decorators: [{
|
109
|
+
type: Component,
|
110
|
+
args: [{ selector: 'daff-quantity-field', providers: [
|
111
|
+
{
|
112
|
+
provide: DaffFormFieldControl,
|
113
|
+
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
114
|
+
useExisting: DaffQuantityFieldComponent,
|
115
|
+
},
|
116
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<daff-quantity-select\n *ngIf=\"showSelectField\"\n [min]=\"min\" [max]=\"_maxFloor\" [extendable]=\"max > selectMax\">\n</daff-quantity-select>\n<daff-quantity-input\n *ngIf=\"showInputField\"\n [min]=\"min\" [max]=\"max\">\n</daff-quantity-input>\n" }]
|
117
|
+
}], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
|
118
|
+
type: Optional
|
119
|
+
}, {
|
120
|
+
type: Self
|
121
|
+
}] }, { type: i0.ChangeDetectorRef }], propDecorators: { input: [{
|
122
|
+
type: ViewChild,
|
123
|
+
args: [DaffQuantityInputComponent]
|
124
|
+
}], select: [{
|
125
|
+
type: ViewChild,
|
126
|
+
args: [DaffQuantitySelectComponent]
|
127
|
+
}], min: [{
|
128
|
+
type: Input
|
129
|
+
}], max: [{
|
130
|
+
type: Input
|
131
|
+
}], selectMax: [{
|
132
|
+
type: Input
|
133
|
+
}] } });
|
134
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVhbnRpdHktZmllbGQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9kZXNpZ24vc3JjL2F0b21zL2Zvcm0vcXVhbnRpdHktZmllbGQvcXVhbnRpdHktZmllbGQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9kZXNpZ24vc3JjL2F0b21zL2Zvcm0vcXVhbnRpdHktZmllbGQvcXVhbnRpdHktZmllbGQuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sdUJBQXVCLENBQUM7QUFDN0QsT0FBTyxFQUNMLFNBQVMsRUFDVCxLQUFLLEVBQ0wsdUJBQXVCLEVBQ3ZCLFFBQVEsRUFDUixJQUFJLEVBQ0osU0FBUyxFQUNULGlCQUFpQixHQUNsQixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBRUwsU0FBUyxHQUNWLE1BQU0sZ0JBQWdCLENBQUM7QUFFeEIsT0FBTyxFQUFFLDBCQUEwQixFQUFFLE1BQU0sMkNBQTJDLENBQUM7QUFDdkYsT0FBTyxFQUFFLDJCQUEyQixFQUFFLE1BQU0sNkNBQTZDLENBQUM7QUFDMUYsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sa0NBQWtDLENBQUM7Ozs7OztBQWN4RSxNQUFNLE9BQU8sMEJBQTBCO0lBMEJ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uICB9XG59XG4iLCI8ZGFmZi1xdWFudGl0eS1zZWxlY3RcbiAgKm5nSWY9XCJzaG93U2VsZWN0RmllbGRcIlxuICBbbWluXT1cIm1pblwiIFttYXhdPVwiX21heEZsb29yXCIgW2V4dGVuZGFibGVdPVwibWF4ID4gc2VsZWN0TWF4XCI+XG48L2RhZmYtcXVhbnRpdHktc2VsZWN0PlxuPGRhZmYtcXVhbnRpdHktaW5wdXRcbiAgKm5nSWY9XCJzaG93SW5wdXRGaWVsZFwiXG4gIFttaW5dPVwibWluXCIgW21heF09XCJtYXhcIj5cbjwvZGFmZi1xdWFudGl0eS1pbnB1dD5cbiJdfQ==
|
@@ -0,0 +1,46 @@
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
2
|
+
import { NgModule } from '@angular/core';
|
3
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
4
|
+
import { DaffQuantityFieldComponent } from './quantity-field.component';
|
5
|
+
import { DaffQuantityInputComponent } from './quantity-input/quantity-input.component';
|
6
|
+
import { DaffQuantitySelectComponent } from './quantity-select/quantity-select.component';
|
7
|
+
import { DaffInputModule } from '../input/public_api';
|
8
|
+
import { DaffNativeSelectModule } from '../native-select/public_api';
|
9
|
+
import * as i0 from "@angular/core";
|
10
|
+
export class DaffQuantityFieldModule {
|
11
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffQuantityFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
12
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.1", ngImport: i0, type: DaffQuantityFieldModule, declarations: [DaffQuantityFieldComponent,
|
13
|
+
DaffQuantityInputComponent,
|
14
|
+
DaffQuantitySelectComponent], imports: [CommonModule,
|
15
|
+
DaffNativeSelectModule,
|
16
|
+
DaffInputModule,
|
17
|
+
ReactiveFormsModule], exports: [DaffQuantityFieldComponent,
|
18
|
+
DaffQuantityInputComponent,
|
19
|
+
DaffQuantitySelectComponent] }); }
|
20
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffQuantityFieldModule, imports: [CommonModule,
|
21
|
+
DaffNativeSelectModule,
|
22
|
+
DaffInputModule,
|
23
|
+
ReactiveFormsModule] }); }
|
24
|
+
}
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffQuantityFieldModule, decorators: [{
|
26
|
+
type: NgModule,
|
27
|
+
args: [{
|
28
|
+
declarations: [
|
29
|
+
DaffQuantityFieldComponent,
|
30
|
+
DaffQuantityInputComponent,
|
31
|
+
DaffQuantitySelectComponent,
|
32
|
+
],
|
33
|
+
imports: [
|
34
|
+
CommonModule,
|
35
|
+
DaffNativeSelectModule,
|
36
|
+
DaffInputModule,
|
37
|
+
ReactiveFormsModule,
|
38
|
+
],
|
39
|
+
exports: [
|
40
|
+
DaffQuantityFieldComponent,
|
41
|
+
DaffQuantityInputComponent,
|
42
|
+
DaffQuantitySelectComponent,
|
43
|
+
],
|
44
|
+
}]
|
45
|
+
}] });
|
46
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVhbnRpdHktZmllbGQubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9kZXNpZ24vc3JjL2F0b21zL2Zvcm0vcXVhbnRpdHktZmllbGQvcXVhbnRpdHktZmllbGQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFB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1YW50aXR5SW5wdXRDb21wb25lbnQsXG4gICAgRGFmZlF1YW50aXR5U2VsZWN0Q29tcG9uZW50LFxuICBdLFxufSlcbmV4cG9ydCBjbGFzcyBEYWZmUXVhbnRpdHlGaWVsZE1vZHVsZSB7IH1cbiJdfQ==
|
@@ -0,0 +1,97 @@
|
|
1
|
+
import { coerceNumberProperty } from '@angular/cdk/coercion';
|
2
|
+
import { Component, Input, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef, } from '@angular/core';
|
3
|
+
import { UntypedFormControl, NgControl, } from '@angular/forms';
|
4
|
+
import { Subject } from 'rxjs';
|
5
|
+
import { takeUntil } from 'rxjs/operators';
|
6
|
+
import { DaffInputComponent } from '../../input/public_api';
|
7
|
+
import * as i0 from "@angular/core";
|
8
|
+
import * as i1 from "@angular/forms";
|
9
|
+
import * as i2 from "../../input/input.component";
|
10
|
+
export class DaffQuantityInputComponent {
|
11
|
+
get focused() {
|
12
|
+
return this.input?.focused;
|
13
|
+
}
|
14
|
+
get value() {
|
15
|
+
return this.ngControl.control.value;
|
16
|
+
}
|
17
|
+
set value(value) {
|
18
|
+
const val = Math.min(Math.round(coerceNumberProperty(value)), this.max);
|
19
|
+
this.ngControl.control.patchValue(val);
|
20
|
+
this._inputControl.patchValue(val);
|
21
|
+
this.changeDetectorRef.markForCheck();
|
22
|
+
}
|
23
|
+
get disabled() {
|
24
|
+
return this.ngControl.control.disabled;
|
25
|
+
}
|
26
|
+
constructor(ngControl, changeDetectorRef) {
|
27
|
+
this.ngControl = ngControl;
|
28
|
+
this.changeDetectorRef = changeDetectorRef;
|
29
|
+
/**
|
30
|
+
* @docs
|
31
|
+
* The minimum number for the quantity input field
|
32
|
+
*/
|
33
|
+
this.min = 1;
|
34
|
+
/**
|
35
|
+
* @docs
|
36
|
+
* The maximum number for the quantity input field
|
37
|
+
*/
|
38
|
+
this.max = 10;
|
39
|
+
/**
|
40
|
+
* A new control for the nested native input.
|
41
|
+
* We don't bind the native input directly to the inherited form control
|
42
|
+
* to avoid triggering updates on the input event.
|
43
|
+
* Instead, we listen for the change event and manually patch form control values.
|
44
|
+
*/
|
45
|
+
this._inputControl = new UntypedFormControl();
|
46
|
+
this._destroyed = new Subject();
|
47
|
+
}
|
48
|
+
ngOnInit() {
|
49
|
+
this._inputControl.patchValue(this.ngControl.control.value);
|
50
|
+
this.setInputDisabled();
|
51
|
+
this.ngControl.statusChanges.pipe(takeUntil(this._destroyed)).subscribe(() => {
|
52
|
+
this.setInputDisabled();
|
53
|
+
});
|
54
|
+
}
|
55
|
+
ngOnDestroy() {
|
56
|
+
this._destroyed.next(true);
|
57
|
+
}
|
58
|
+
focus() {
|
59
|
+
this.input.focus();
|
60
|
+
}
|
61
|
+
onFocus() {
|
62
|
+
this.ngControl.control.markAsTouched();
|
63
|
+
}
|
64
|
+
onBlur() {
|
65
|
+
if (this.value === null || this.value === undefined) {
|
66
|
+
this.value = 1;
|
67
|
+
this.changeDetectorRef.markForCheck();
|
68
|
+
}
|
69
|
+
}
|
70
|
+
/**
|
71
|
+
* Callback function fired when the value changes.
|
72
|
+
* Used to pass the value back up to the ngControl.
|
73
|
+
*/
|
74
|
+
onValueChange(e) {
|
75
|
+
this.value = e.target.value;
|
76
|
+
}
|
77
|
+
setInputDisabled() {
|
78
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
79
|
+
this.ngControl.disabled
|
80
|
+
? this._inputControl.disable()
|
81
|
+
: this._inputControl.enable();
|
82
|
+
}
|
83
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffQuantityInputComponent, deps: [{ token: i1.NgControl }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
84
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.1", 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: i2.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 }); }
|
85
|
+
}
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffQuantityInputComponent, decorators: [{
|
87
|
+
type: Component,
|
88
|
+
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" }]
|
89
|
+
}], ctorParameters: () => [{ type: i1.NgControl }, { type: i0.ChangeDetectorRef }], propDecorators: { input: [{
|
90
|
+
type: ViewChild,
|
91
|
+
args: [DaffInputComponent]
|
92
|
+
}], min: [{
|
93
|
+
type: Input
|
94
|
+
}], max: [{
|
95
|
+
type: Input
|
96
|
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XIpPVwib25CbHVyKClcIlxuICAoY2hhbmdlKT1cIm9uVmFsdWVDaGFuZ2UoJGV2ZW50KVwiXG4gIFtmb3JtQ29udHJvbF09XCJfaW5wdXRDb250cm9sXCJcbj5cbiJdfQ==
|
@@ -0,0 +1,84 @@
|
|
1
|
+
import { Component, Input, ChangeDetectionStrategy, ChangeDetectorRef, ViewChild, } from '@angular/core';
|
2
|
+
import { NgControl } from '@angular/forms';
|
3
|
+
import { DaffNativeSelectComponent } from '../../native-select/public_api';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
import * as i1 from "@angular/forms";
|
6
|
+
import * as i2 from "@angular/common";
|
7
|
+
import * as i3 from "../../native-select/native-select.component";
|
8
|
+
/**
|
9
|
+
* Create an array of numbers from min to max, not including max.
|
10
|
+
*/
|
11
|
+
export const makeValueArray = (min, max, increment) => Array(max - min).fill(0).map((x, i) => (i * increment) + min);
|
12
|
+
export class DaffQuantitySelectComponent {
|
13
|
+
get value() {
|
14
|
+
return this._value;
|
15
|
+
}
|
16
|
+
set value(value) {
|
17
|
+
this._value = value;
|
18
|
+
this.ngControl.control.patchValue(this._value);
|
19
|
+
this.changeDetectorRef.markForCheck();
|
20
|
+
}
|
21
|
+
constructor(ngControl, changeDetectorRef) {
|
22
|
+
this.ngControl = ngControl;
|
23
|
+
this.changeDetectorRef = changeDetectorRef;
|
24
|
+
/**
|
25
|
+
* @docs
|
26
|
+
* The minimum number selectable.
|
27
|
+
*/
|
28
|
+
this.min = 1;
|
29
|
+
/**
|
30
|
+
* @docs
|
31
|
+
* The maximum number selectable;
|
32
|
+
*/
|
33
|
+
this.max = 10;
|
34
|
+
/**
|
35
|
+
* @docs
|
36
|
+
* Property used to determine whether or not the DaffQuantitySelectComponent is
|
37
|
+
* used in a situation whether the `max` isn't a true max.
|
38
|
+
*/
|
39
|
+
this.extendable = true;
|
40
|
+
/**
|
41
|
+
* The amount to increment between "min" and "max".
|
42
|
+
*/
|
43
|
+
this.increment = 1;
|
44
|
+
this._value = 1;
|
45
|
+
}
|
46
|
+
/**
|
47
|
+
* Callback function fired when the value changes.
|
48
|
+
* Used to pass the value back up to the ngControl.
|
49
|
+
*/
|
50
|
+
onValueChange(e) {
|
51
|
+
this.value = e.target.value;
|
52
|
+
}
|
53
|
+
get focused() {
|
54
|
+
return this.select.focused;
|
55
|
+
}
|
56
|
+
focus() {
|
57
|
+
this.select.focus();
|
58
|
+
}
|
59
|
+
onFocus() {
|
60
|
+
this.ngControl.control.markAsTouched();
|
61
|
+
}
|
62
|
+
/**
|
63
|
+
* A helper function for easily making options for the `select`.
|
64
|
+
*/
|
65
|
+
get valueArray() {
|
66
|
+
return makeValueArray(this.min, this.max, this.increment);
|
67
|
+
}
|
68
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffQuantitySelectComponent, deps: [{ token: i1.NgControl }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
69
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.1", 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: i3.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 }); }
|
70
|
+
}
|
71
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffQuantitySelectComponent, decorators: [{
|
72
|
+
type: Component,
|
73
|
+
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" }]
|
74
|
+
}], ctorParameters: () => [{ type: i1.NgControl }, { type: i0.ChangeDetectorRef }], propDecorators: { select: [{
|
75
|
+
type: ViewChild,
|
76
|
+
args: [DaffNativeSelectComponent]
|
77
|
+
}], min: [{
|
78
|
+
type: Input
|
79
|
+
}], max: [{
|
80
|
+
type: Input
|
81
|
+
}], extendable: [{
|
82
|
+
type: Input
|
83
|
+
}] } });
|
84
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVhbnRpdHktc2VsZWN0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpb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