@daffodil/design 0.39.13 → 0.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/examples/basic-accordion/basic-accordion.component.d.ts +3 -0
- package/accordion/examples/basic-accordion/basic-accordion.module.d.ts +6 -0
- package/accordion/examples/daffodil-design-accordion-examples.d.ts +1 -2
- package/accordion/examples/nav-accordion/nav-accordion.component.d.ts +3 -0
- package/accordion/examples/nav-accordion/nav-accordion.module.d.ts +6 -0
- package/accordion/examples/package.json +5 -6
- package/accordion/examples/public_api.d.ts +2 -0
- package/article/examples/article-blockquote/article-blockquote.component.d.ts +3 -0
- package/article/examples/article-code-block/article-code-block.component.d.ts +3 -0
- package/article/examples/article-code-inline/article-code-inline.component.d.ts +3 -0
- package/article/examples/article-examples.module.d.ts +17 -0
- package/article/examples/article-headings/article-headings.component.d.ts +3 -0
- package/article/examples/article-hr/article-hr.component.d.ts +3 -0
- package/article/examples/article-lead/article-lead.component.d.ts +3 -0
- package/article/examples/article-link/article-link.component.d.ts +3 -0
- package/article/examples/article-meta/article-meta.component.d.ts +3 -0
- package/article/examples/article-ol/article-ol.component.d.ts +3 -0
- package/article/examples/article-table/article-table.component.d.ts +3 -0
- package/article/examples/article-ul/article-ul.component.d.ts +3 -0
- package/article/examples/daffodil-design-article-examples.d.ts +1 -1
- package/article/examples/package.json +5 -6
- package/atoms/button/button.component.d.ts +4 -1
- package/atoms/button/button.module.d.ts +7 -0
- package/atoms/container/container.component.d.ts +3 -0
- package/atoms/container/container.module.d.ts +6 -0
- package/atoms/form/checkbox/checkbox.component.d.ts +3 -0
- package/atoms/form/checkbox/checkbox.module.d.ts +8 -0
- package/atoms/form/checkbox/cva/checkbox-cva.directive.d.ts +3 -0
- package/atoms/form/checkbox-set/checkbox-set.component.d.ts +3 -0
- package/atoms/form/error-message/error-message.component.d.ts +3 -0
- package/atoms/form/error-message/error-message.module.d.ts +5 -0
- package/atoms/form/form-field/form-field/form-field.component.d.ts +3 -0
- package/atoms/form/form-field/form-field.module.d.ts +8 -0
- package/atoms/form/input/input.component.d.ts +3 -0
- package/atoms/form/input/input.module.d.ts +6 -0
- package/atoms/form/quantity-field/quantity-field.component.d.ts +4 -1
- package/atoms/form/quantity-field/quantity-field.module.d.ts +11 -0
- package/atoms/form/quantity-field/quantity-input/quantity-input.component.d.ts +4 -1
- package/atoms/form/quantity-field/quantity-select/quantity-select.component.d.ts +4 -0
- package/atoms/form/radio/cva/radio-cva.directive.d.ts +3 -0
- package/atoms/form/radio/radio.component.d.ts +3 -0
- package/atoms/form/radio/radio.module.d.ts +8 -0
- package/atoms/form/radio/registry/radio-registry.d.ts +3 -0
- package/atoms/form/radio-set/radio-set.component.d.ts +3 -0
- package/atoms/form/select/select/select.component.d.ts +3 -0
- package/atoms/form/select/select.module.d.ts +6 -0
- package/atoms/image/image.component.d.ts +3 -0
- package/atoms/image/image.module.d.ts +6 -0
- package/atoms/loading-icon/loading-icon.component.d.ts +3 -0
- package/atoms/loading-icon/loading-icon.module.d.ts +6 -0
- package/atoms/progress-indicator/progress-indicator.component.d.ts +3 -0
- package/atoms/progress-indicator/progress-indicator.module.d.ts +6 -0
- package/button/examples/basic-button/basic-button.component.d.ts +3 -0
- package/button/examples/basic-button/basic-button.module.d.ts +7 -0
- package/button/examples/daffodil-design-button-examples.d.ts +1 -7
- package/button/examples/icon-button/icon-button.component.d.ts +3 -0
- package/button/examples/icon-button/icon-button.module.d.ts +7 -0
- package/button/examples/package.json +5 -6
- package/button/examples/public_api.d.ts +5 -0
- package/button/examples/raised-button/raised-button.component.d.ts +3 -0
- package/button/examples/raised-button/raised-button.module.d.ts +7 -0
- package/button/examples/sizeable-button/sizeable-button.component.d.ts +3 -0
- package/button/examples/sizeable-button/sizeable-button.module.d.ts +7 -0
- package/button/examples/statusable-button/statusable-button.component.d.ts +3 -0
- package/button/examples/statusable-button/statusable-button.module.d.ts +7 -0
- package/button/examples/stroked-button/stroked-button.component.d.ts +3 -0
- package/button/examples/stroked-button/stroked-button.module.d.ts +7 -0
- package/button/examples/underline-button/underline-button.component.d.ts +3 -0
- package/button/examples/underline-button/underline-button.module.d.ts +7 -0
- package/callout/examples/callout-text-alignment/callout-text-alignment.component.d.ts +3 -0
- package/callout/examples/callout-text-alignment/callout-text-alignment.module.d.ts +9 -0
- package/callout/examples/callout-theming/callout-theming.component.d.ts +3 -0
- package/callout/examples/callout-theming/callout-theming.module.d.ts +9 -0
- package/callout/examples/callout-with-grid/callout-with-grid.component.d.ts +3 -0
- package/callout/examples/callout-with-grid/callout-with-grid.module.d.ts +9 -0
- package/callout/examples/compact-callout/compact-callout.component.d.ts +3 -0
- package/callout/examples/compact-callout/compact-callout.module.d.ts +8 -0
- package/callout/examples/daffodil-design-callout-examples.d.ts +1 -0
- package/callout/examples/package.json +5 -6
- package/card/examples/basic-card/basic-card.component.d.ts +3 -0
- package/card/examples/basic-card/basic-card.module.d.ts +8 -0
- package/card/examples/card-orientation/card-orientation.component.d.ts +3 -0
- package/card/examples/card-orientation/card-orientation.module.d.ts +9 -0
- package/card/examples/card-theming/card-theming.component.d.ts +3 -0
- package/card/examples/card-theming/card-theming.module.d.ts +8 -0
- package/card/examples/daffodil-design-card-examples.d.ts +1 -6
- package/card/examples/linkable-card/linkable-card.component.d.ts +3 -0
- package/card/examples/linkable-card/linkable-card.module.d.ts +9 -0
- package/card/examples/package.json +5 -6
- package/card/examples/public_api.d.ts +4 -0
- package/card/examples/raised-card/raised-card.component.d.ts +3 -0
- package/card/examples/raised-card/raised-card.module.d.ts +8 -0
- package/card/examples/stroked-card/stroked-card.component.d.ts +3 -0
- package/card/examples/stroked-card/stroked-card.module.d.ts +9 -0
- package/checkbox/examples/basic-checkbox/basic-checkbox.component.d.ts +3 -0
- package/checkbox/examples/basic-checkbox/basic-checkbox.module.d.ts +7 -0
- package/checkbox/examples/checkbox-set/checkbox-set.component.d.ts +3 -0
- package/checkbox/examples/checkbox-set/checkbox-set.module.d.ts +7 -0
- package/checkbox/examples/daffodil-design-checkbox-examples.d.ts +1 -4
- package/checkbox/examples/package.json +5 -6
- package/container/examples/container-sizes/container-sizes.component.d.ts +3 -0
- package/container/examples/container-sizes/container-sizes.module.d.ts +8 -0
- package/container/examples/daffodil-design-container-examples.d.ts +1 -0
- package/container/examples/package.json +5 -6
- package/core/prefix-suffix/prefix-suffix.module.d.ts +6 -0
- package/core/prefix-suffix/prefix.directive.d.ts +3 -0
- package/core/prefix-suffix/suffix.directive.d.ts +3 -0
- package/core/public_api.d.ts +1 -0
- package/core/theming/functions/computer.d.ts +6 -0
- package/core/theming/initializer.d.ts +8 -0
- package/core/theming/public_api.d.ts +3 -0
- package/core/theming/services/class-setter/theme-class-setter.service.d.ts +31 -0
- package/core/theming/services/os-theme/ostheme.service.d.ts +20 -0
- package/core/theming/services/storage/theme-storage.service.d.ts +28 -0
- package/core/theming/services/theming.service.d.ts +33 -0
- package/core/theming/types/theme.d.ts +8 -0
- package/daff-global.scss +1 -1
- package/daff-theme.scss +36 -30
- package/daff-typography.scss +2 -0
- package/daff-util.scss +2 -0
- package/daffodil-design.d.ts +1 -11
- package/esm2020/accordion/examples/basic-accordion/basic-accordion.component.mjs +12 -0
- package/esm2020/accordion/examples/basic-accordion/basic-accordion.module.mjs +26 -0
- package/esm2020/accordion/examples/daffodil-design-accordion-examples.mjs +5 -0
- package/{esm2015/accordion/examples/index.js → esm2020/accordion/examples/index.mjs} +0 -0
- package/esm2020/accordion/examples/nav-accordion/nav-accordion.component.mjs +12 -0
- package/esm2020/accordion/examples/nav-accordion/nav-accordion.module.mjs +26 -0
- package/esm2020/accordion/examples/public_api.mjs +10 -0
- package/esm2020/article/examples/article-blockquote/article-blockquote.component.mjs +12 -0
- package/esm2020/article/examples/article-code-block/article-code-block.component.mjs +12 -0
- package/esm2020/article/examples/article-code-inline/article-code-inline.component.mjs +12 -0
- package/esm2020/article/examples/article-examples.module.mjs +41 -0
- package/esm2020/article/examples/article-headings/article-headings.component.mjs +12 -0
- package/esm2020/article/examples/article-hr/article-hr.component.mjs +12 -0
- package/esm2020/article/examples/article-lead/article-lead.component.mjs +12 -0
- package/esm2020/article/examples/article-link/article-link.component.mjs +12 -0
- package/esm2020/article/examples/article-meta/article-meta.component.mjs +12 -0
- package/esm2020/article/examples/article-ol/article-ol.component.mjs +12 -0
- package/esm2020/article/examples/article-table/article-table.component.mjs +12 -0
- package/esm2020/article/examples/article-ul/article-ul.component.mjs +12 -0
- package/esm2020/article/examples/daffodil-design-article-examples.mjs +5 -0
- package/{esm2015/article/examples/examples.js → esm2020/article/examples/examples.mjs} +0 -0
- package/{esm2015/article/examples/index.js → esm2020/article/examples/index.mjs} +0 -0
- package/{esm2015/article/examples/public_api.js → esm2020/article/examples/public_api.mjs} +0 -0
- package/esm2020/atoms/button/button.component.mjs +132 -0
- package/esm2020/atoms/button/button.module.mjs +32 -0
- package/{esm2015/atoms/button/public_api.js → esm2020/atoms/button/public_api.mjs} +0 -0
- package/esm2020/atoms/container/container.component.mjs +37 -0
- package/esm2020/atoms/container/container.module.mjs +26 -0
- package/{esm2015/atoms/container/public_api.js → esm2020/atoms/container/public_api.mjs} +0 -0
- package/esm2020/atoms/form/checkbox/checkbox.component.mjs +142 -0
- package/esm2020/atoms/form/checkbox/checkbox.module.mjs +41 -0
- package/esm2020/atoms/form/checkbox/cva/checkbox-cva.directive.mjs +94 -0
- package/{esm2015/atoms/form/checkbox/public_api.js → esm2020/atoms/form/checkbox/public_api.mjs} +0 -0
- package/esm2020/atoms/form/checkbox-set/checkbox-set.component.mjs +38 -0
- package/{esm2015/atoms/form/core/error-state-matcher/error-state-matcher.js → esm2020/atoms/form/core/error-state-matcher/error-state-matcher.mjs} +0 -0
- package/{esm2015/atoms/form/core/public_api.js → esm2020/atoms/form/core/public_api.mjs} +0 -0
- package/esm2020/atoms/form/error-message/error-message.component.mjs +11 -0
- package/esm2020/atoms/form/error-message/error-message.module.mjs +20 -0
- package/{esm2015/atoms/form/error-message/public_api.js → esm2020/atoms/form/error-message/public_api.mjs} +0 -0
- package/esm2020/atoms/form/form-field/form-field/form-field.component.mjs +102 -0
- package/{esm2015/atoms/form/form-field/form-field-control.js → esm2020/atoms/form/form-field/form-field-control.mjs} +0 -0
- package/{esm2015/atoms/form/form-field/form-field-errors.js → esm2020/atoms/form/form-field/form-field-errors.mjs} +0 -0
- package/esm2020/atoms/form/form-field/form-field.module.mjs +36 -0
- package/{esm2015/atoms/form/form-field/public_api.js → esm2020/atoms/form/form-field/public_api.mjs} +0 -0
- package/esm2020/atoms/form/input/input.component.mjs +59 -0
- package/esm2020/atoms/form/input/input.module.mjs +26 -0
- package/{esm2015/atoms/form/input/public_api.js → esm2020/atoms/form/input/public_api.mjs} +0 -0
- package/{esm2015/atoms/form/quantity-field/public_api.js → esm2020/atoms/form/quantity-field/public_api.mjs} +0 -0
- package/esm2020/atoms/form/quantity-field/quantity-field.component.mjs +134 -0
- package/esm2020/atoms/form/quantity-field/quantity-field.module.mjs +48 -0
- package/esm2020/atoms/form/quantity-field/quantity-input/quantity-input.component.mjs +97 -0
- package/esm2020/atoms/form/quantity-field/quantity-select/quantity-select.component.mjs +84 -0
- package/esm2020/atoms/form/radio/cva/radio-cva.directive.mjs +89 -0
- package/{esm2015/atoms/form/radio/public_api.js → esm2020/atoms/form/radio/public_api.mjs} +0 -0
- package/esm2020/atoms/form/radio/radio.component.mjs +132 -0
- package/esm2020/atoms/form/radio/radio.module.mjs +36 -0
- package/esm2020/atoms/form/radio/registry/radio-registry.mjs +54 -0
- package/esm2020/atoms/form/radio-set/radio-set.component.mjs +22 -0
- package/{esm2015/atoms/form/select/public_api.js → esm2020/atoms/form/select/public_api.mjs} +0 -0
- package/esm2020/atoms/form/select/select/select.component.mjs +64 -0
- package/esm2020/atoms/form/select/select.module.mjs +26 -0
- package/esm2020/atoms/image/image.component.mjs +111 -0
- package/esm2020/atoms/image/image.module.mjs +29 -0
- package/{esm2015/atoms/image/public_api.js → esm2020/atoms/image/public_api.mjs} +0 -0
- package/esm2020/atoms/loading-icon/loading-icon.component.mjs +53 -0
- package/esm2020/atoms/loading-icon/loading-icon.module.mjs +26 -0
- package/{esm2015/atoms/loading-icon/public_api.js → esm2020/atoms/loading-icon/public_api.mjs} +0 -0
- package/esm2020/atoms/progress-indicator/animation/progress-indicator-animation.mjs +8 -0
- package/esm2020/atoms/progress-indicator/progress-indicator.component.mjs +81 -0
- package/esm2020/atoms/progress-indicator/progress-indicator.module.mjs +22 -0
- package/{esm2015/atoms/progress-indicator/public_api.js → esm2020/atoms/progress-indicator/public_api.mjs} +0 -0
- package/esm2020/button/examples/basic-button/basic-button.component.mjs +23 -0
- package/esm2020/button/examples/basic-button/basic-button.module.mjs +30 -0
- package/esm2020/button/examples/daffodil-design-button-examples.mjs +5 -0
- package/esm2020/button/examples/icon-button/icon-button.component.mjs +22 -0
- package/esm2020/button/examples/icon-button/icon-button.module.mjs +30 -0
- package/{esm2015/button/examples/index.js → esm2020/button/examples/index.mjs} +0 -0
- package/esm2020/button/examples/public_api.mjs +25 -0
- package/esm2020/button/examples/raised-button/raised-button.component.mjs +23 -0
- package/esm2020/button/examples/raised-button/raised-button.module.mjs +30 -0
- package/esm2020/button/examples/sizeable-button/sizeable-button.component.mjs +21 -0
- package/esm2020/button/examples/sizeable-button/sizeable-button.module.mjs +30 -0
- package/esm2020/button/examples/statusable-button/statusable-button.component.mjs +27 -0
- package/esm2020/button/examples/statusable-button/statusable-button.module.mjs +30 -0
- package/esm2020/button/examples/stroked-button/stroked-button.component.mjs +23 -0
- package/esm2020/button/examples/stroked-button/stroked-button.module.mjs +30 -0
- package/esm2020/button/examples/underline-button/underline-button.component.mjs +23 -0
- package/esm2020/button/examples/underline-button/underline-button.module.mjs +30 -0
- package/esm2020/callout/examples/callout-text-alignment/callout-text-alignment.component.mjs +27 -0
- package/esm2020/callout/examples/callout-text-alignment/callout-text-alignment.module.mjs +41 -0
- package/esm2020/callout/examples/callout-theming/callout-theming.component.mjs +31 -0
- package/esm2020/callout/examples/callout-theming/callout-theming.module.mjs +38 -0
- package/esm2020/callout/examples/callout-with-grid/callout-with-grid.component.mjs +17 -0
- package/esm2020/callout/examples/callout-with-grid/callout-with-grid.module.mjs +41 -0
- package/esm2020/callout/examples/compact-callout/compact-callout.component.mjs +17 -0
- package/esm2020/callout/examples/compact-callout/compact-callout.module.mjs +37 -0
- package/{esm2015/callout/examples/daffodil-design-callout-examples.js → esm2020/callout/examples/daffodil-design-callout-examples.mjs} +0 -0
- package/{esm2015/callout/examples/examples.js → esm2020/callout/examples/examples.mjs} +0 -0
- package/{esm2015/callout/examples/index.js → esm2020/callout/examples/index.mjs} +0 -0
- package/{esm2015/callout/examples/public_api.js → esm2020/callout/examples/public_api.mjs} +0 -0
- package/esm2020/card/examples/basic-card/basic-card.component.mjs +17 -0
- package/esm2020/card/examples/basic-card/basic-card.module.mjs +40 -0
- package/esm2020/card/examples/card-orientation/card-orientation.component.mjs +26 -0
- package/esm2020/card/examples/card-orientation/card-orientation.module.mjs +44 -0
- package/esm2020/card/examples/card-theming/card-theming.component.mjs +32 -0
- package/esm2020/card/examples/card-theming/card-theming.module.mjs +37 -0
- package/esm2020/card/examples/daffodil-design-card-examples.mjs +5 -0
- package/{esm2015/card/examples/index.js → esm2020/card/examples/index.mjs} +0 -0
- package/esm2020/card/examples/linkable-card/linkable-card.component.mjs +30 -0
- package/esm2020/card/examples/linkable-card/linkable-card.module.mjs +44 -0
- package/esm2020/card/examples/public_api.mjs +22 -0
- package/esm2020/card/examples/raised-card/raised-card.component.mjs +28 -0
- package/esm2020/card/examples/raised-card/raised-card.module.mjs +40 -0
- package/esm2020/card/examples/stroked-card/stroked-card.component.mjs +28 -0
- package/esm2020/card/examples/stroked-card/stroked-card.module.mjs +44 -0
- package/esm2020/checkbox/examples/basic-checkbox/basic-checkbox.component.mjs +26 -0
- package/esm2020/checkbox/examples/basic-checkbox/basic-checkbox.module.mjs +34 -0
- package/esm2020/checkbox/examples/checkbox-set/checkbox-set.component.mjs +28 -0
- package/esm2020/checkbox/examples/checkbox-set/checkbox-set.module.mjs +34 -0
- package/esm2020/checkbox/examples/daffodil-design-checkbox-examples.mjs +5 -0
- package/{esm2015/checkbox/examples/examples.js → esm2020/checkbox/examples/examples.mjs} +0 -0
- package/{esm2015/checkbox/examples/index.js → esm2020/checkbox/examples/index.mjs} +0 -0
- package/{esm2015/checkbox/examples/public_api.js → esm2020/checkbox/examples/public_api.mjs} +0 -0
- package/esm2020/container/examples/container-sizes/container-sizes.component.mjs +25 -0
- package/esm2020/container/examples/container-sizes/container-sizes.module.mjs +34 -0
- package/{esm2015/container/examples/daffodil-design-container-examples.js → esm2020/container/examples/daffodil-design-container-examples.mjs} +0 -0
- package/{esm2015/container/examples/examples.js → esm2020/container/examples/examples.mjs} +0 -0
- package/{esm2015/container/examples/index.js → esm2020/container/examples/index.mjs} +0 -0
- package/{esm2015/container/examples/public_api.js → esm2020/container/examples/public_api.mjs} +0 -0
- package/esm2020/core/article-encapsulated/article-encapsulated-mixin.mjs +12 -0
- package/{esm2015/core/article-encapsulated/public_api.js → esm2020/core/article-encapsulated/public_api.mjs} +0 -0
- package/esm2020/core/breakpoints/breakpoints.mjs +10 -0
- package/{esm2015/core/colorable/color-in-palette.js → esm2020/core/colorable/color-in-palette.mjs} +0 -0
- package/{esm2015/core/colorable/colorable-enum.js → esm2020/core/colorable/colorable-enum.mjs} +0 -0
- package/esm2020/core/colorable/colorable-mixin.mjs +42 -0
- package/esm2020/core/colorable/colorable.mjs +2 -0
- package/{esm2015/core/colorable/public_api.js → esm2020/core/colorable/public_api.mjs} +0 -0
- package/esm2020/core/compactable/compactable-mixin.mjs +26 -0
- package/esm2020/core/compactable/compactable.mjs +2 -0
- package/{esm2015/core/compactable/public_api.js → esm2020/core/compactable/public_api.mjs} +0 -0
- package/{esm2015/core/constructor/constructor.js → esm2020/core/constructor/constructor.mjs} +0 -0
- package/esm2020/core/manage-container-layout/manage-container-layout-mixin.mjs +14 -0
- package/{esm2015/core/manage-container-layout/public_api.js → esm2020/core/manage-container-layout/public_api.mjs} +0 -0
- package/esm2020/core/mutable/mutable.mjs +2 -0
- package/esm2020/core/prefix-suffix/prefix-suffix.module.mjs +26 -0
- package/esm2020/core/prefix-suffix/prefix.directive.mjs +24 -0
- package/{esm2015/core/prefix-suffix/prefixable/prefixable-interface.js → esm2020/core/prefix-suffix/prefixable/prefixable-interface.mjs} +0 -0
- package/esm2020/core/prefix-suffix/prefixable/prefixable.mjs +23 -0
- package/{esm2015/core/prefix-suffix/public_api.js → esm2020/core/prefix-suffix/public_api.mjs} +0 -0
- package/esm2020/core/prefix-suffix/suffix.directive.mjs +24 -0
- package/{esm2015/core/prefix-suffix/suffixable/suffixable-interface.js → esm2020/core/prefix-suffix/suffixable/suffixable-interface.mjs} +0 -0
- package/esm2020/core/prefix-suffix/suffixable/suffixable.mjs +23 -0
- package/esm2020/core/public_api.mjs +14 -0
- package/esm2020/core/sizeable/sizeable-mixin.mjs +31 -0
- package/esm2020/core/sizeable/sizeable.mjs +9 -0
- package/esm2020/core/skeletonable/skeletonable.mjs +2 -0
- package/esm2020/core/statusable/statusable-mixin.mjs +32 -0
- package/esm2020/core/statusable/statusable.mjs +7 -0
- package/esm2020/core/text-alignable/text-alignable-mixin.mjs +35 -0
- package/esm2020/core/text-alignable/text-alignable.mjs +7 -0
- package/esm2020/core/theming/functions/computer.mjs +18 -0
- package/esm2020/core/theming/initializer.mjs +17 -0
- package/esm2020/core/theming/public_api.mjs +4 -0
- package/esm2020/core/theming/services/class-setter/theme-class-setter.service.mjs +52 -0
- package/esm2020/core/theming/services/os-theme/ostheme.service.mjs +49 -0
- package/esm2020/core/theming/services/storage/theme-storage.service.mjs +67 -0
- package/esm2020/core/theming/services/theming.service.mjs +61 -0
- package/esm2020/core/theming/types/theme.mjs +10 -0
- package/esm2020/daffodil-design.mjs +5 -0
- package/{esm2015/examples/examples.js → esm2020/examples/examples.mjs} +0 -0
- package/{esm2015/examples/public_api.js → esm2020/examples/public_api.mjs} +0 -0
- package/esm2020/hero/examples/compact-hero/compact-hero.component.mjs +17 -0
- package/esm2020/hero/examples/compact-hero/compact-hero.module.mjs +41 -0
- package/{esm2015/hero/examples/daffodil-design-hero-examples.js → esm2020/hero/examples/daffodil-design-hero-examples.mjs} +0 -0
- package/{esm2015/hero/examples/examples.js → esm2020/hero/examples/examples.mjs} +0 -0
- package/esm2020/hero/examples/hero-text-alignment/hero-text-alignment.component.mjs +27 -0
- package/esm2020/hero/examples/hero-text-alignment/hero-text-alignment.module.mjs +41 -0
- package/esm2020/hero/examples/hero-theming/hero-theming.component.mjs +21 -0
- package/esm2020/hero/examples/hero-theming/hero-theming.module.mjs +41 -0
- package/esm2020/hero/examples/hero-with-grid/hero-with-grid.component.mjs +17 -0
- package/esm2020/hero/examples/hero-with-grid/hero-with-grid.module.mjs +41 -0
- package/{esm2015/hero/examples/index.js → esm2020/hero/examples/index.mjs} +0 -0
- package/{esm2015/hero/examples/public_api.js → esm2020/hero/examples/public_api.mjs} +0 -0
- package/esm2020/image/examples/basic-image/basic-image.component.mjs +12 -0
- package/esm2020/image/examples/basic-image/basic-image.module.mjs +26 -0
- package/esm2020/image/examples/daffodil-design-image-examples.mjs +5 -0
- package/esm2020/image/examples/index.mjs +2 -0
- package/esm2020/image/examples/load-image/load-image.component.mjs +19 -0
- package/esm2020/image/examples/load-image/load-image.module.mjs +30 -0
- package/esm2020/image/examples/public_api.mjs +9 -0
- package/esm2020/list/examples/basic-list/basic-list.component.mjs +12 -0
- package/esm2020/list/examples/basic-list/basic-list.module.mjs +30 -0
- package/esm2020/list/examples/daffodil-design-list-examples.mjs +5 -0
- package/{esm2015/list/examples/examples.js → esm2020/list/examples/examples.mjs} +0 -0
- package/esm2020/list/examples/icon-list/icon-list.component.mjs +17 -0
- package/esm2020/list/examples/icon-list/icon-list.module.mjs +34 -0
- package/{esm2015/list/examples/index.js → esm2020/list/examples/index.mjs} +0 -0
- package/esm2020/list/examples/list-examples.module.mjs +39 -0
- package/esm2020/list/examples/multiline-list/multiline-list.component.mjs +12 -0
- package/esm2020/list/examples/multiline-list/multiline-list.module.mjs +34 -0
- package/esm2020/list/examples/nav-list/nav-list.component.mjs +17 -0
- package/esm2020/list/examples/nav-list/nav-list.module.mjs +34 -0
- package/{esm2015/list/examples/public_api.js → esm2020/list/examples/public_api.mjs} +0 -0
- package/esm2020/loading-icon/examples/daffodil-design-loading-icon-examples.mjs +5 -0
- package/{esm2015/loading-icon/examples/examples.js → esm2020/loading-icon/examples/examples.mjs} +0 -0
- package/{esm2015/loading-icon/examples/index.js → esm2020/loading-icon/examples/index.mjs} +0 -0
- package/esm2020/loading-icon/examples/loading-icon-color/loading-icon-color.component.mjs +19 -0
- package/esm2020/loading-icon/examples/loading-icon-color/loading-icon-color.module.mjs +33 -0
- package/esm2020/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.component.mjs +12 -0
- package/esm2020/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.module.mjs +26 -0
- package/{esm2015/loading-icon/examples/public_api.js → esm2020/loading-icon/examples/public_api.mjs} +0 -0
- package/esm2020/media-gallery/examples/basic-media-gallery/basic-media-gallery.component.mjs +12 -0
- package/esm2020/media-gallery/examples/basic-media-gallery/basic-media-gallery.module.mjs +30 -0
- package/esm2020/media-gallery/examples/daffodil-design-media-gallery-examples.mjs +5 -0
- package/{esm2015/media-gallery/examples/examples.js → esm2020/media-gallery/examples/examples.mjs} +0 -0
- package/{esm2015/media-gallery/examples/index.js → esm2020/media-gallery/examples/index.mjs} +0 -0
- package/esm2020/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.component.mjs +12 -0
- package/esm2020/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.module.mjs +30 -0
- package/esm2020/media-gallery/examples/public_api.mjs +6 -0
- package/esm2020/modal/examples/basic-modal/basic-modal.component.mjs +20 -0
- package/esm2020/modal/examples/basic-modal/basic-modal.module.mjs +32 -0
- package/esm2020/modal/examples/basic-modal/modal-content.component.mjs +12 -0
- package/esm2020/modal/examples/daffodil-design-modal-examples.mjs +5 -0
- package/{esm2015/modal/examples/index.js → esm2020/modal/examples/index.mjs} +0 -0
- package/{esm2015/modal/examples/public_api.js → esm2020/modal/examples/public_api.mjs} +0 -0
- package/esm2020/molecules/accordion/accordion/accordion.component.mjs +27 -0
- package/esm2020/molecules/accordion/accordion-item/accordion-item.component.mjs +54 -0
- package/esm2020/molecules/accordion/accordion-item-content/accordion-item-content.directive.mjs +22 -0
- package/esm2020/molecules/accordion/accordion-item-title/accordion-item-title.directive.mjs +22 -0
- package/esm2020/molecules/accordion/accordion.module.mjs +54 -0
- package/{esm2015/molecules/accordion/animation/accordion-animation-state.js → esm2020/molecules/accordion/animation/accordion-animation-state.mjs} +0 -0
- package/{esm2015/molecules/accordion/animation/accordion-animation.js → esm2020/molecules/accordion/animation/accordion-animation.mjs} +0 -0
- package/esm2020/molecules/accordion/nav-accordion-item/nav-accordion-item.component.mjs +78 -0
- package/esm2020/molecules/accordion/public_api.mjs +7 -0
- package/esm2020/molecules/article/article/article.component.mjs +30 -0
- package/esm2020/molecules/article/article-lead/article-lead.directive.mjs +22 -0
- package/esm2020/molecules/article/article-meta/article-meta.directive.mjs +22 -0
- package/esm2020/molecules/article/article-title/article-title.directive.mjs +22 -0
- package/esm2020/molecules/article/article.module.mjs +41 -0
- package/{esm2015/molecules/article/public_api.js → esm2020/molecules/article/public_api.mjs} +0 -0
- package/{esm2015/molecules/backdrop/animation/backdrop-animation.js → esm2020/molecules/backdrop/animation/backdrop-animation.mjs} +0 -0
- package/esm2020/molecules/backdrop/backdrop/backdrop.component.mjs +52 -0
- package/esm2020/molecules/backdrop/backdrop.module.mjs +29 -0
- package/{esm2015/molecules/backdrop/public_api.js → esm2020/molecules/backdrop/public_api.mjs} +0 -0
- package/esm2020/molecules/button-set/button-set.component.mjs +20 -0
- package/esm2020/molecules/button-set/button-set.module.mjs +20 -0
- package/{esm2015/molecules/button-set/public_api.js → esm2020/molecules/button-set/public_api.mjs} +0 -0
- package/esm2020/molecules/callout/callout/callout.component.mjs +71 -0
- package/esm2020/molecules/callout/callout-body/callout-body.directive.mjs +22 -0
- package/esm2020/molecules/callout/callout-icon/callout-icon.directive.mjs +22 -0
- package/esm2020/molecules/callout/callout-subtitle/callout-subtitle.directive.mjs +22 -0
- package/esm2020/molecules/callout/callout-tagline/callout-tagline.directive.mjs +22 -0
- package/esm2020/molecules/callout/callout-title/callout-title.directive.mjs +22 -0
- package/esm2020/molecules/callout/callout.module.mjs +51 -0
- package/{esm2015/molecules/callout/public_api.js → esm2020/molecules/callout/public_api.mjs} +0 -0
- package/esm2020/molecules/card/card/card.component.mjs +113 -0
- package/esm2020/molecules/card/card-actions/card-actions.directive.mjs +22 -0
- package/esm2020/molecules/card/card-content/card-content.directive.mjs +22 -0
- package/esm2020/molecules/card/card-icon/card-icon.directive.mjs +22 -0
- package/esm2020/molecules/card/card-image/card-image.directive.mjs +22 -0
- package/esm2020/molecules/card/card-tagline/card-tagline.directive.mjs +22 -0
- package/esm2020/molecules/card/card-title/card-title.directive.mjs +22 -0
- package/esm2020/molecules/card/card.module.mjs +56 -0
- package/{esm2015/molecules/card/public_api.js → esm2020/molecules/card/public_api.mjs} +0 -0
- package/esm2020/molecules/feature/feature/feature.component.mjs +49 -0
- package/esm2020/molecules/feature/feature-icon/feature-icon.directive.mjs +22 -0
- package/esm2020/molecules/feature/feature-subheader/feature-subheader.directive.mjs +22 -0
- package/esm2020/molecules/feature/feature-subtitle/feature-subtitle.directive.mjs +22 -0
- package/esm2020/molecules/feature/feature-title/feature-title.directive.mjs +22 -0
- package/esm2020/molecules/feature/feature.module.mjs +46 -0
- package/{esm2015/molecules/feature/public_api.js → esm2020/molecules/feature/public_api.mjs} +0 -0
- package/esm2020/molecules/hero/hero/hero.component.mjs +72 -0
- package/esm2020/molecules/hero/hero-body/hero-body.directive.mjs +22 -0
- package/esm2020/molecules/hero/hero-icon/hero-icon.directive.mjs +22 -0
- package/esm2020/molecules/hero/hero-subtitle/hero-subtitle.directive.mjs +22 -0
- package/esm2020/molecules/hero/hero-tagline/hero-tagline.directive.mjs +22 -0
- package/esm2020/molecules/hero/hero-title/hero-title.directive.mjs +22 -0
- package/esm2020/molecules/hero/hero.module.mjs +51 -0
- package/{esm2015/molecules/hero/public_api.js → esm2020/molecules/hero/public_api.mjs} +0 -0
- package/esm2020/molecules/image-gallery/gallery-image/gallery-image.component.mjs +25 -0
- package/esm2020/molecules/image-gallery/image-gallery/image-gallery.component.mjs +15 -0
- package/esm2020/molecules/image-gallery/image-gallery.module.mjs +35 -0
- package/{esm2015/molecules/image-gallery/public_api.js → esm2020/molecules/image-gallery/public_api.mjs} +0 -0
- package/esm2020/molecules/image-list/image-list.component.mjs +20 -0
- package/esm2020/molecules/image-list/image-list.module.mjs +26 -0
- package/{esm2015/molecules/image-list/public_api.js → esm2020/molecules/image-list/public_api.mjs} +0 -0
- package/esm2020/molecules/link-set/link-set/link-set.component.mjs +37 -0
- package/esm2020/molecules/link-set/link-set-heading/link-set-heading.directive.mjs +25 -0
- package/esm2020/molecules/link-set/link-set-item/link-set-item.component.mjs +26 -0
- package/esm2020/molecules/link-set/link-set-subheading/link-set-subheading.directive.mjs +25 -0
- package/esm2020/molecules/link-set/link-set.module.mjs +41 -0
- package/{esm2015/molecules/link-set/public_api.js → esm2020/molecules/link-set/public_api.mjs} +0 -0
- package/esm2020/molecules/list/list/list.component.mjs +110 -0
- package/esm2020/molecules/list/list-item/list-item.component.mjs +49 -0
- package/esm2020/molecules/list/list-subheader/list-subheader.directive.mjs +25 -0
- package/esm2020/molecules/list/list.module.mjs +42 -0
- package/{esm2015/molecules/list/public_api.js → esm2020/molecules/list/public_api.mjs} +0 -0
- package/esm2020/molecules/media-gallery/media-gallery-registration.interface.mjs +2 -0
- package/{esm2015/molecules/media-gallery/media-gallery-token.js → esm2020/molecules/media-gallery/media-gallery-token.mjs} +0 -0
- package/esm2020/molecules/media-gallery/media-gallery.component.mjs +59 -0
- package/esm2020/molecules/media-gallery/media-gallery.module.mjs +34 -0
- package/esm2020/molecules/media-gallery/media-renderer/media-renderer.component.mjs +76 -0
- package/{esm2015/molecules/media-gallery/public_api.js → esm2020/molecules/media-gallery/public_api.mjs} +0 -0
- package/esm2020/molecules/media-gallery/registry/media-gallery.registry.mjs +97 -0
- package/{esm2015/molecules/media-gallery/thumbnail/thumbnail-compat.token.js → esm2020/molecules/media-gallery/thumbnail/thumbnail-compat.token.mjs} +0 -0
- package/esm2020/molecules/media-gallery/thumbnail/thumbnail-registration.interface.mjs +2 -0
- package/esm2020/molecules/media-gallery/thumbnail/thumbnail.directive.mjs +88 -0
- package/{esm2015/molecules/modal/animations/modal-animation-state.js → esm2020/molecules/modal/animations/modal-animation-state.mjs} +0 -0
- package/esm2020/molecules/modal/animations/modal-animation.mjs +9 -0
- package/{esm2015/molecules/modal/modal/modal-config.js → esm2020/molecules/modal/modal/modal-config.mjs} +0 -0
- package/esm2020/molecules/modal/modal/modal.component.mjs +79 -0
- package/esm2020/molecules/modal/modal-actions/modal-actions.component.mjs +11 -0
- package/esm2020/molecules/modal/modal-content/modal-content.component.mjs +11 -0
- package/esm2020/molecules/modal/modal-header/modal-header.component.mjs +20 -0
- package/esm2020/molecules/modal/modal-title/modal-title.directive.mjs +22 -0
- package/esm2020/molecules/modal/modal.mjs +2 -0
- package/esm2020/molecules/modal/modal.module.mjs +52 -0
- package/{esm2015/molecules/modal/public_api.js → esm2020/molecules/modal/public_api.mjs} +0 -0
- package/esm2020/molecules/modal/service/modal.service.mjs +70 -0
- package/esm2020/molecules/navbar/navbar.component.mjs +51 -0
- package/esm2020/molecules/navbar/navbar.module.mjs +20 -0
- package/{esm2015/molecules/navbar/public_api.js → esm2020/molecules/navbar/public_api.mjs} +0 -0
- package/{esm2015/molecules/paginator/paginator-errors.js → esm2020/molecules/paginator/paginator-errors.mjs} +0 -0
- package/esm2020/molecules/paginator/paginator.component.mjs +159 -0
- package/esm2020/molecules/paginator/paginator.module.mjs +34 -0
- package/{esm2015/molecules/paginator/public_api.js → esm2020/molecules/paginator/public_api.mjs} +0 -0
- package/{esm2015/molecules/qty-dropdown/public_api.js → esm2020/molecules/qty-dropdown/public_api.mjs} +0 -0
- package/esm2020/molecules/qty-dropdown/qty-dropdown.component.mjs +115 -0
- package/esm2020/molecules/qty-dropdown/qty-dropdown.module.mjs +42 -0
- package/{esm2015/molecules/sidebar/animation/sidebar-animation-state.js → esm2020/molecules/sidebar/animation/sidebar-animation-state.mjs} +0 -0
- package/esm2020/molecules/sidebar/animation/sidebar-animation.mjs +30 -0
- package/{esm2015/molecules/sidebar/helper/sidebar-mode.js → esm2020/molecules/sidebar/helper/sidebar-mode.mjs} +0 -0
- package/{esm2015/molecules/sidebar/public_api.js → esm2020/molecules/sidebar/public_api.mjs} +0 -0
- package/esm2020/molecules/sidebar/sidebar/sidebar.component.mjs +44 -0
- package/esm2020/molecules/sidebar/sidebar-viewport/sidebar-viewport.component.mjs +121 -0
- package/esm2020/molecules/sidebar/sidebar.module.mjs +39 -0
- package/esm2020/navbar/examples/basic-navbar/basic-navbar.component.mjs +12 -0
- package/esm2020/navbar/examples/basic-navbar/basic-navbar.module.mjs +33 -0
- package/esm2020/navbar/examples/contained-navbar/contained-navbar.component.mjs +12 -0
- package/esm2020/navbar/examples/contained-navbar/contained-navbar.module.mjs +33 -0
- package/{esm2015/navbar/examples/daffodil-design-navbar-examples.js → esm2020/navbar/examples/daffodil-design-navbar-examples.mjs} +0 -0
- package/{esm2015/navbar/examples/examples.js → esm2020/navbar/examples/examples.mjs} +0 -0
- package/{esm2015/navbar/examples/index.js → esm2020/navbar/examples/index.mjs} +0 -0
- package/esm2020/navbar/examples/navbar-theming/navbar-theming.component.mjs +28 -0
- package/esm2020/navbar/examples/navbar-theming/navbar-theming.module.mjs +34 -0
- package/{esm2015/navbar/examples/public_api.js → esm2020/navbar/examples/public_api.mjs} +0 -0
- package/esm2020/navbar/examples/raised-navbar/raised-navbar.component.mjs +12 -0
- package/esm2020/navbar/examples/raised-navbar/raised-navbar.module.mjs +30 -0
- package/esm2020/paginator/examples/basic-paginator/basic-paginator.component.mjs +19 -0
- package/esm2020/paginator/examples/daffodil-design-paginator-examples.mjs +5 -0
- package/esm2020/paginator/examples/examples.mjs +5 -0
- package/esm2020/paginator/examples/index.mjs +2 -0
- package/esm2020/paginator/examples/paginator-examples.module.mjs +31 -0
- package/esm2020/paginator/examples/public_api.mjs +4 -0
- package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
- package/esm2020/quantity-field/examples/basic-quantity-field/basic-quantity-field.component.mjs +17 -0
- package/esm2020/quantity-field/examples/basic-quantity-field/basic-quantity-field.module.mjs +37 -0
- package/esm2020/quantity-field/examples/custom-range-quantity-field/custom-range-quantity-field.component.mjs +17 -0
- package/esm2020/quantity-field/examples/custom-range-quantity-field/custom-range-quantity-field.module.mjs +37 -0
- package/esm2020/quantity-field/examples/daffodil-design-quantity-field-examples.mjs +5 -0
- package/esm2020/quantity-field/examples/disabled-quantity-field/disabled-quantity-field.component.mjs +17 -0
- package/esm2020/quantity-field/examples/disabled-quantity-field/disabled-quantity-field.module.mjs +37 -0
- package/{esm2015/quantity-field/examples/index.js → esm2020/quantity-field/examples/index.mjs} +0 -0
- package/esm2020/quantity-field/examples/public_api.mjs +16 -0
- package/esm2020/quantity-field/examples/select-max-quantity-field/select-max-quantity-field.component.mjs +17 -0
- package/esm2020/quantity-field/examples/select-max-quantity-field/select-max-quantity-field.module.mjs +37 -0
- package/esm2020/radio/examples/basic-radio/basic-radio.component.mjs +21 -0
- package/esm2020/radio/examples/basic-radio/basic-radio.module.mjs +31 -0
- package/esm2020/radio/examples/daffodil-design-radio-examples.mjs +5 -0
- package/{esm2015/radio/examples/examples.js → esm2020/radio/examples/examples.mjs} +0 -0
- package/{esm2015/radio/examples/index.js → esm2020/radio/examples/index.mjs} +0 -0
- package/{esm2015/radio/examples/public_api.js → esm2020/radio/examples/public_api.mjs} +0 -0
- package/fesm2015/daffodil-design-accordion-examples.mjs +78 -0
- package/fesm2015/daffodil-design-accordion-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design-article-examples.mjs +150 -0
- package/fesm2015/daffodil-design-article-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design-button-examples.mjs +326 -0
- package/fesm2015/daffodil-design-button-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design-callout-examples.mjs +221 -0
- package/fesm2015/daffodil-design-callout-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design-card-examples.mjs +362 -0
- package/fesm2015/daffodil-design-card-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design-checkbox-examples.mjs +123 -0
- package/fesm2015/daffodil-design-checkbox-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design-container-examples.mjs +66 -0
- package/fesm2015/daffodil-design-container-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design-hero-examples.mjs +218 -0
- package/fesm2015/daffodil-design-hero-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design-image-examples.mjs +89 -0
- package/fesm2015/daffodil-design-image-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design-list-examples.mjs +204 -0
- package/fesm2015/daffodil-design-list-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design-loading-icon-examples.mjs +91 -0
- package/fesm2015/daffodil-design-loading-icon-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design-media-gallery-examples.mjs +86 -0
- package/fesm2015/daffodil-design-media-gallery-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design-modal-examples.mjs +66 -0
- package/fesm2015/daffodil-design-modal-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design-navbar-examples.mjs +180 -0
- package/fesm2015/daffodil-design-navbar-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design-paginator-examples.mjs +57 -0
- package/fesm2015/daffodil-design-paginator-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design-quantity-field-examples.mjs +193 -0
- package/fesm2015/daffodil-design-quantity-field-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design-radio-examples.mjs +62 -0
- package/fesm2015/daffodil-design-radio-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design.mjs +5399 -0
- package/fesm2015/daffodil-design.mjs.map +1 -0
- package/fesm2020/daffodil-design-accordion-examples.mjs +78 -0
- package/fesm2020/daffodil-design-accordion-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design-article-examples.mjs +150 -0
- package/fesm2020/daffodil-design-article-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design-button-examples.mjs +326 -0
- package/fesm2020/daffodil-design-button-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design-callout-examples.mjs +221 -0
- package/fesm2020/daffodil-design-callout-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design-card-examples.mjs +362 -0
- package/fesm2020/daffodil-design-card-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design-checkbox-examples.mjs +123 -0
- package/fesm2020/daffodil-design-checkbox-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design-container-examples.mjs +66 -0
- package/fesm2020/daffodil-design-container-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design-hero-examples.mjs +218 -0
- package/fesm2020/daffodil-design-hero-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design-image-examples.mjs +89 -0
- package/fesm2020/daffodil-design-image-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design-list-examples.mjs +204 -0
- package/fesm2020/daffodil-design-list-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design-loading-icon-examples.mjs +91 -0
- package/fesm2020/daffodil-design-loading-icon-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design-media-gallery-examples.mjs +86 -0
- package/fesm2020/daffodil-design-media-gallery-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design-modal-examples.mjs +66 -0
- package/fesm2020/daffodil-design-modal-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design-navbar-examples.mjs +180 -0
- package/fesm2020/daffodil-design-navbar-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design-paginator-examples.mjs +57 -0
- package/fesm2020/daffodil-design-paginator-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design-quantity-field-examples.mjs +193 -0
- package/fesm2020/daffodil-design-quantity-field-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design-radio-examples.mjs +62 -0
- package/fesm2020/daffodil-design-radio-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design.mjs +5384 -0
- package/fesm2020/daffodil-design.mjs.map +1 -0
- package/hero/examples/compact-hero/compact-hero.component.d.ts +3 -0
- package/hero/examples/compact-hero/compact-hero.module.d.ts +9 -0
- package/hero/examples/daffodil-design-hero-examples.d.ts +1 -0
- package/hero/examples/hero-text-alignment/hero-text-alignment.component.d.ts +3 -0
- package/hero/examples/hero-text-alignment/hero-text-alignment.module.d.ts +9 -0
- package/hero/examples/hero-theming/hero-theming.component.d.ts +3 -0
- package/hero/examples/hero-theming/hero-theming.module.d.ts +9 -0
- package/hero/examples/hero-with-grid/hero-with-grid.component.d.ts +3 -0
- package/hero/examples/hero-with-grid/hero-with-grid.module.d.ts +9 -0
- package/hero/examples/package.json +5 -6
- package/image/examples/basic-image/basic-image.component.d.ts +5 -0
- package/image/examples/basic-image/basic-image.module.d.ts +8 -0
- package/image/examples/daffodil-design-image-examples.d.ts +5 -0
- package/image/examples/index.d.ts +1 -0
- package/image/examples/load-image/load-image.component.d.ts +7 -0
- package/image/examples/load-image/load-image.module.d.ts +9 -0
- package/image/examples/package.json +10 -0
- package/image/examples/public_api.d.ts +2 -0
- package/list/examples/basic-list/basic-list.component.d.ts +3 -0
- package/list/examples/basic-list/basic-list.module.d.ts +7 -0
- package/list/examples/daffodil-design-list-examples.d.ts +1 -4
- package/list/examples/icon-list/icon-list.component.d.ts +3 -0
- package/list/examples/icon-list/icon-list.module.d.ts +8 -0
- package/list/examples/list-examples.module.d.ts +9 -0
- package/list/examples/multiline-list/multiline-list.component.d.ts +3 -0
- package/list/examples/multiline-list/multiline-list.module.d.ts +8 -0
- package/list/examples/nav-list/nav-list.component.d.ts +3 -0
- package/list/examples/nav-list/nav-list.module.d.ts +8 -0
- package/list/examples/package.json +5 -6
- package/loading-icon/examples/daffodil-design-loading-icon-examples.d.ts +1 -1
- package/loading-icon/examples/loading-icon-color/loading-icon-color.component.d.ts +3 -0
- package/loading-icon/examples/loading-icon-color/loading-icon-color.module.d.ts +7 -0
- package/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.component.d.ts +3 -0
- package/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.module.d.ts +6 -0
- package/loading-icon/examples/package.json +5 -6
- package/media-gallery/examples/basic-media-gallery/basic-media-gallery.component.d.ts +3 -0
- package/media-gallery/examples/basic-media-gallery/basic-media-gallery.module.d.ts +6 -0
- package/media-gallery/examples/daffodil-design-media-gallery-examples.d.ts +1 -2
- package/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.component.d.ts +3 -0
- package/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.module.d.ts +6 -0
- package/media-gallery/examples/package.json +5 -6
- package/media-gallery/examples/public_api.d.ts +2 -0
- package/modal/examples/basic-modal/basic-modal.component.d.ts +3 -0
- package/modal/examples/basic-modal/basic-modal.module.d.ts +7 -0
- package/modal/examples/basic-modal/modal-content.component.d.ts +3 -0
- package/modal/examples/daffodil-design-modal-examples.d.ts +1 -3
- package/modal/examples/package.json +5 -6
- package/molecules/accordion/accordion/accordion.component.d.ts +3 -0
- package/molecules/accordion/accordion-item/accordion-item.component.d.ts +3 -0
- package/molecules/accordion/accordion-item-content/accordion-item-content.directive.d.ts +3 -0
- package/molecules/accordion/accordion-item-title/accordion-item-title.directive.d.ts +3 -0
- package/molecules/accordion/accordion.module.d.ts +12 -0
- package/molecules/accordion/nav-accordion-item/nav-accordion-item.component.d.ts +3 -0
- package/molecules/accordion/public_api.d.ts +1 -0
- package/molecules/article/article/article.component.d.ts +3 -0
- package/molecules/article/article-lead/article-lead.directive.d.ts +3 -0
- package/molecules/article/article-meta/article-meta.directive.d.ts +3 -0
- package/molecules/article/article-title/article-title.directive.d.ts +3 -0
- package/molecules/article/article.module.d.ts +9 -0
- package/molecules/backdrop/backdrop/backdrop.component.d.ts +3 -0
- package/molecules/backdrop/backdrop.module.d.ts +6 -0
- package/molecules/button-set/button-set.component.d.ts +3 -0
- package/molecules/button-set/button-set.module.d.ts +5 -0
- package/molecules/callout/callout/callout.component.d.ts +3 -0
- package/molecules/callout/callout-body/callout-body.directive.d.ts +3 -0
- package/molecules/callout/callout-icon/callout-icon.directive.d.ts +3 -0
- package/molecules/callout/callout-subtitle/callout-subtitle.directive.d.ts +3 -0
- package/molecules/callout/callout-tagline/callout-tagline.directive.d.ts +3 -0
- package/molecules/callout/callout-title/callout-title.directive.d.ts +3 -0
- package/molecules/callout/callout.module.d.ts +11 -0
- package/molecules/card/card/card.component.d.ts +3 -0
- package/molecules/card/card-actions/card-actions.directive.d.ts +3 -0
- package/molecules/card/card-content/card-content.directive.d.ts +3 -0
- package/molecules/card/card-icon/card-icon.directive.d.ts +3 -0
- package/molecules/card/card-image/card-image.directive.d.ts +3 -0
- package/molecules/card/card-tagline/card-tagline.directive.d.ts +3 -0
- package/molecules/card/card-title/card-title.directive.d.ts +3 -0
- package/molecules/card/card.module.d.ts +12 -0
- package/molecules/feature/feature/feature.component.d.ts +3 -0
- package/molecules/feature/feature-icon/feature-icon.directive.d.ts +3 -0
- package/molecules/feature/feature-subheader/feature-subheader.directive.d.ts +3 -0
- package/molecules/feature/feature-subtitle/feature-subtitle.directive.d.ts +3 -0
- package/molecules/feature/feature-title/feature-title.directive.d.ts +3 -0
- package/molecules/feature/feature.module.d.ts +10 -0
- package/molecules/hero/hero/hero.component.d.ts +3 -0
- package/molecules/hero/hero-body/hero-body.directive.d.ts +3 -0
- package/molecules/hero/hero-icon/hero-icon.directive.d.ts +3 -0
- package/molecules/hero/hero-subtitle/hero-subtitle.directive.d.ts +3 -0
- package/molecules/hero/hero-tagline/hero-tagline.directive.d.ts +3 -0
- package/molecules/hero/hero-title/hero-title.directive.d.ts +3 -0
- package/molecules/hero/hero.module.d.ts +11 -0
- package/molecules/image-gallery/gallery-image/gallery-image.component.d.ts +3 -0
- package/molecules/image-gallery/image-gallery/image-gallery.component.d.ts +3 -0
- package/molecules/image-gallery/image-gallery.module.d.ts +8 -0
- package/molecules/image-list/image-list.component.d.ts +3 -0
- package/molecules/image-list/image-list.module.d.ts +6 -0
- package/molecules/link-set/link-set/link-set.component.d.ts +3 -0
- package/molecules/link-set/link-set-heading/link-set-heading.directive.d.ts +3 -0
- package/molecules/link-set/link-set-item/link-set-item.component.d.ts +3 -0
- package/molecules/link-set/link-set-subheading/link-set-subheading.directive.d.ts +3 -0
- package/molecules/link-set/link-set.module.d.ts +9 -0
- package/molecules/list/list/list.component.d.ts +4 -1
- package/molecules/list/list-item/list-item.component.d.ts +3 -0
- package/molecules/list/list-subheader/list-subheader.directive.d.ts +3 -0
- package/molecules/list/list.module.d.ts +9 -0
- package/molecules/media-gallery/media-gallery.component.d.ts +3 -0
- package/molecules/media-gallery/media-gallery.module.d.ts +8 -0
- package/molecules/media-gallery/media-renderer/media-renderer.component.d.ts +3 -0
- package/molecules/media-gallery/registry/media-gallery.registry.d.ts +3 -0
- package/molecules/media-gallery/thumbnail/thumbnail.directive.d.ts +3 -0
- package/molecules/modal/modal/modal.component.d.ts +3 -0
- package/molecules/modal/modal-actions/modal-actions.component.d.ts +3 -0
- package/molecules/modal/modal-content/modal-content.component.d.ts +3 -0
- package/molecules/modal/modal-header/modal-header.component.d.ts +3 -0
- package/molecules/modal/modal-title/modal-title.directive.d.ts +3 -0
- package/molecules/modal/modal.module.d.ts +12 -0
- package/molecules/modal/service/modal.service.d.ts +3 -0
- package/molecules/navbar/navbar.component.d.ts +3 -0
- package/molecules/navbar/navbar.module.d.ts +5 -0
- package/molecules/paginator/paginator.component.d.ts +3 -0
- package/molecules/paginator/paginator.module.d.ts +8 -0
- package/molecules/qty-dropdown/qty-dropdown.component.d.ts +3 -0
- package/molecules/qty-dropdown/qty-dropdown.module.d.ts +10 -0
- package/molecules/sidebar/sidebar/sidebar.component.d.ts +3 -0
- package/molecules/sidebar/sidebar-viewport/sidebar-viewport.component.d.ts +3 -0
- package/molecules/sidebar/sidebar.module.d.ts +9 -0
- package/navbar/examples/basic-navbar/basic-navbar.component.d.ts +3 -0
- package/navbar/examples/basic-navbar/basic-navbar.module.d.ts +7 -0
- package/navbar/examples/contained-navbar/contained-navbar.component.d.ts +3 -0
- package/navbar/examples/contained-navbar/contained-navbar.module.d.ts +7 -0
- package/navbar/examples/daffodil-design-navbar-examples.d.ts +1 -0
- package/navbar/examples/navbar-theming/navbar-theming.component.d.ts +3 -0
- package/navbar/examples/navbar-theming/navbar-theming.module.d.ts +8 -0
- package/navbar/examples/package.json +5 -6
- package/navbar/examples/raised-navbar/raised-navbar.component.d.ts +3 -0
- package/navbar/examples/raised-navbar/raised-navbar.module.d.ts +7 -0
- package/package.json +163 -15
- package/paginator/examples/basic-paginator/basic-paginator.component.d.ts +8 -0
- package/paginator/examples/daffodil-design-paginator-examples.d.ts +5 -0
- package/paginator/examples/examples.d.ts +2 -0
- package/paginator/examples/index.d.ts +1 -0
- package/paginator/examples/package.json +10 -0
- package/paginator/examples/paginator-examples.module.d.ts +9 -0
- package/paginator/examples/public_api.d.ts +3 -0
- package/quantity-field/examples/basic-quantity-field/basic-quantity-field.component.d.ts +7 -0
- package/quantity-field/examples/basic-quantity-field/basic-quantity-field.module.d.ts +10 -0
- package/quantity-field/examples/custom-range-quantity-field/custom-range-quantity-field.component.d.ts +7 -0
- package/quantity-field/examples/custom-range-quantity-field/custom-range-quantity-field.module.d.ts +10 -0
- package/quantity-field/examples/daffodil-design-quantity-field-examples.d.ts +1 -4
- package/quantity-field/examples/disabled-quantity-field/disabled-quantity-field.component.d.ts +7 -0
- package/quantity-field/examples/disabled-quantity-field/disabled-quantity-field.module.d.ts +10 -0
- package/quantity-field/examples/package.json +5 -6
- package/quantity-field/examples/public_api.d.ts +10 -5
- package/quantity-field/examples/select-max-quantity-field/select-max-quantity-field.component.d.ts +7 -0
- package/quantity-field/examples/select-max-quantity-field/select-max-quantity-field.module.d.ts +10 -0
- package/radio/examples/basic-radio/basic-radio.component.d.ts +3 -0
- package/radio/examples/basic-radio/basic-radio.module.d.ts +7 -0
- package/radio/examples/daffodil-design-radio-examples.d.ts +1 -2
- package/radio/examples/package.json +5 -6
- package/src/atoms/button/README.md +53 -0
- package/src/atoms/container/README.md +18 -0
- package/src/atoms/form/README.md +0 -0
- package/src/atoms/form/checkbox/README.md +0 -0
- package/src/atoms/form/checkbox-set/README.md +0 -0
- package/src/atoms/form/error-message/README.md +11 -0
- package/src/atoms/form/form-field/README.md +36 -0
- package/src/atoms/form/form-label/README.md +0 -0
- package/src/atoms/form/input/README.md +11 -0
- package/src/atoms/form/quantity-field/README.md +24 -0
- package/src/atoms/form/radio/README.md +55 -0
- package/src/atoms/form/radio-set/README.md +0 -0
- package/src/atoms/form/select/README.md +13 -0
- package/src/atoms/image/README.md +31 -0
- package/src/atoms/loading-icon/README.md +7 -0
- package/src/atoms/progress-indicator/README.md +2 -0
- package/src/molecules/accordion/README.md +21 -0
- package/src/molecules/article/README.md +49 -0
- package/src/molecules/backdrop/README.md +13 -0
- package/src/molecules/button-set/README.md +13 -0
- package/src/molecules/callout/README.md +54 -0
- package/src/molecules/card/README.md +60 -0
- package/src/molecules/feature/README.md +48 -0
- package/src/molecules/hero/README.md +54 -0
- package/src/molecules/image-gallery/README.md +31 -0
- package/src/molecules/image-list/README.md +14 -0
- package/src/molecules/link-set/README.md +44 -0
- package/src/molecules/list/README.md +69 -0
- package/src/molecules/media-gallery/README.md +19 -0
- package/src/molecules/modal/README.md +47 -0
- package/src/molecules/navbar/README.md +41 -0
- package/src/molecules/paginator/README.md +11 -0
- package/src/molecules/qty-dropdown/README.md +0 -0
- package/src/molecules/sidebar/README.md +10 -0
- package/src/scss/README.md +7 -0
- package/accordion/examples/daffodil-design-accordion-examples.metadata.json +0 -1
- package/article/examples/daffodil-design-article-examples.metadata.json +0 -1
- package/bundles/daffodil-design-accordion-examples.umd.js +0 -91
- package/bundles/daffodil-design-accordion-examples.umd.js.map +0 -1
- package/bundles/daffodil-design-accordion-examples.umd.min.js +0 -2
- package/bundles/daffodil-design-accordion-examples.umd.min.js.map +0 -1
- package/bundles/daffodil-design-article-examples.umd.js +0 -530
- package/bundles/daffodil-design-article-examples.umd.js.map +0 -1
- package/bundles/daffodil-design-article-examples.umd.min.js +0 -2
- package/bundles/daffodil-design-article-examples.umd.min.js.map +0 -1
- package/bundles/daffodil-design-button-examples.umd.js +0 -298
- package/bundles/daffodil-design-button-examples.umd.js.map +0 -1
- package/bundles/daffodil-design-button-examples.umd.min.js +0 -2
- package/bundles/daffodil-design-button-examples.umd.min.js.map +0 -1
- package/bundles/daffodil-design-callout-examples.umd.js +0 -195
- package/bundles/daffodil-design-callout-examples.umd.js.map +0 -1
- package/bundles/daffodil-design-callout-examples.umd.min.js +0 -2
- package/bundles/daffodil-design-callout-examples.umd.min.js.map +0 -1
- package/bundles/daffodil-design-card-examples.umd.js +0 -321
- package/bundles/daffodil-design-card-examples.umd.js.map +0 -1
- package/bundles/daffodil-design-card-examples.umd.min.js +0 -2
- package/bundles/daffodil-design-card-examples.umd.min.js.map +0 -1
- package/bundles/daffodil-design-checkbox-examples.umd.js +0 -123
- package/bundles/daffodil-design-checkbox-examples.umd.js.map +0 -1
- package/bundles/daffodil-design-checkbox-examples.umd.min.js +0 -2
- package/bundles/daffodil-design-checkbox-examples.umd.min.js.map +0 -1
- package/bundles/daffodil-design-container-examples.umd.js +0 -65
- package/bundles/daffodil-design-container-examples.umd.js.map +0 -1
- package/bundles/daffodil-design-container-examples.umd.min.js +0 -2
- package/bundles/daffodil-design-container-examples.umd.min.js.map +0 -1
- package/bundles/daffodil-design-hero-examples.umd.js +0 -192
- package/bundles/daffodil-design-hero-examples.umd.js.map +0 -1
- package/bundles/daffodil-design-hero-examples.umd.min.js +0 -2
- package/bundles/daffodil-design-hero-examples.umd.min.js.map +0 -1
- package/bundles/daffodil-design-list-examples.umd.js +0 -509
- package/bundles/daffodil-design-list-examples.umd.js.map +0 -1
- package/bundles/daffodil-design-list-examples.umd.min.js +0 -2
- package/bundles/daffodil-design-list-examples.umd.min.js.map +0 -1
- package/bundles/daffodil-design-loading-icon-examples.umd.js +0 -94
- package/bundles/daffodil-design-loading-icon-examples.umd.js.map +0 -1
- package/bundles/daffodil-design-loading-icon-examples.umd.min.js +0 -2
- package/bundles/daffodil-design-loading-icon-examples.umd.min.js.map +0 -1
- package/bundles/daffodil-design-media-gallery-examples.umd.js +0 -95
- package/bundles/daffodil-design-media-gallery-examples.umd.js.map +0 -1
- package/bundles/daffodil-design-media-gallery-examples.umd.min.js +0 -2
- package/bundles/daffodil-design-media-gallery-examples.umd.min.js.map +0 -1
- package/bundles/daffodil-design-modal-examples.umd.js +0 -80
- package/bundles/daffodil-design-modal-examples.umd.js.map +0 -1
- package/bundles/daffodil-design-modal-examples.umd.min.js +0 -2
- package/bundles/daffodil-design-modal-examples.umd.min.js.map +0 -1
- package/bundles/daffodil-design-navbar-examples.umd.js +0 -177
- package/bundles/daffodil-design-navbar-examples.umd.js.map +0 -1
- package/bundles/daffodil-design-navbar-examples.umd.min.js +0 -2
- package/bundles/daffodil-design-navbar-examples.umd.min.js.map +0 -1
- package/bundles/daffodil-design-quantity-field-examples.umd.js +0 -183
- package/bundles/daffodil-design-quantity-field-examples.umd.js.map +0 -1
- package/bundles/daffodil-design-quantity-field-examples.umd.min.js +0 -2
- package/bundles/daffodil-design-quantity-field-examples.umd.min.js.map +0 -1
- package/bundles/daffodil-design-radio-examples.umd.js +0 -68
- package/bundles/daffodil-design-radio-examples.umd.js.map +0 -1
- package/bundles/daffodil-design-radio-examples.umd.min.js +0 -2
- package/bundles/daffodil-design-radio-examples.umd.min.js.map +0 -1
- package/bundles/daffodil-design.umd.js +0 -5781
- package/bundles/daffodil-design.umd.js.map +0 -1
- package/bundles/daffodil-design.umd.min.js +0 -16
- package/bundles/daffodil-design.umd.min.js.map +0 -1
- package/button/examples/daffodil-design-button-examples.metadata.json +0 -1
- package/callout/examples/daffodil-design-callout-examples.metadata.json +0 -1
- package/card/examples/daffodil-design-card-examples.metadata.json +0 -1
- package/checkbox/examples/daffodil-design-checkbox-examples.metadata.json +0 -1
- package/container/examples/daffodil-design-container-examples.metadata.json +0 -1
- package/daffodil-design.metadata.json +0 -1
- package/esm2015/accordion/examples/basic-accordion/basic-accordion.component.js +0 -12
- package/esm2015/accordion/examples/basic-accordion/basic-accordion.module.js +0 -19
- package/esm2015/accordion/examples/daffodil-design-accordion-examples.js +0 -7
- package/esm2015/accordion/examples/nav-accordion/nav-accordion.component.js +0 -12
- package/esm2015/accordion/examples/nav-accordion/nav-accordion.module.js +0 -19
- package/esm2015/accordion/examples/public_api.js +0 -9
- package/esm2015/article/examples/article-blockquote/article-blockquote.component.js +0 -12
- package/esm2015/article/examples/article-code-block/article-code-block.component.js +0 -12
- package/esm2015/article/examples/article-code-inline/article-code-inline.component.js +0 -12
- package/esm2015/article/examples/article-examples.module.js +0 -21
- package/esm2015/article/examples/article-headings/article-headings.component.js +0 -12
- package/esm2015/article/examples/article-hr/article-hr.component.js +0 -12
- package/esm2015/article/examples/article-lead/article-lead.component.js +0 -12
- package/esm2015/article/examples/article-link/article-link.component.js +0 -12
- package/esm2015/article/examples/article-meta/article-meta.component.js +0 -12
- package/esm2015/article/examples/article-ol/article-ol.component.js +0 -12
- package/esm2015/article/examples/article-table/article-table.component.js +0 -12
- package/esm2015/article/examples/article-ul/article-ul.component.js +0 -12
- package/esm2015/article/examples/daffodil-design-article-examples.js +0 -6
- package/esm2015/atoms/button/button.component.js +0 -134
- package/esm2015/atoms/button/button.module.js +0 -22
- package/esm2015/atoms/container/container.component.js +0 -46
- package/esm2015/atoms/container/container.module.js +0 -19
- package/esm2015/atoms/form/checkbox/checkbox.component.js +0 -131
- package/esm2015/atoms/form/checkbox/checkbox.module.js +0 -28
- package/esm2015/atoms/form/checkbox/cva/checkbox-cva.directive.js +0 -89
- package/esm2015/atoms/form/checkbox-set/checkbox-set.component.js +0 -34
- package/esm2015/atoms/form/error-message/error-message.component.js +0 -12
- package/esm2015/atoms/form/error-message/error-message.module.js +0 -15
- package/esm2015/atoms/form/form-field/form-field/form-field.component.js +0 -100
- package/esm2015/atoms/form/form-field/form-field.module.js +0 -24
- package/esm2015/atoms/form/input/input.component.js +0 -56
- package/esm2015/atoms/form/input/input.module.js +0 -19
- package/esm2015/atoms/form/quantity-field/quantity-field.component.js +0 -120
- package/esm2015/atoms/form/quantity-field/quantity-field.module.js +0 -31
- package/esm2015/atoms/form/quantity-field/quantity-input/quantity-input.component.js +0 -100
- package/esm2015/atoms/form/quantity-field/quantity-select/quantity-select.component.js +0 -80
- package/esm2015/atoms/form/radio/cva/radio-cva.directive.js +0 -84
- package/esm2015/atoms/form/radio/radio.component.js +0 -122
- package/esm2015/atoms/form/radio/radio.module.js +0 -25
- package/esm2015/atoms/form/radio/registry/radio-registry.js +0 -52
- package/esm2015/atoms/form/radio-set/radio-set.component.js +0 -24
- package/esm2015/atoms/form/select/select/select.component.js +0 -60
- package/esm2015/atoms/form/select/select.module.js +0 -19
- package/esm2015/atoms/image/image.component.js +0 -109
- package/esm2015/atoms/image/image.module.js +0 -22
- package/esm2015/atoms/loading-icon/loading-icon.component.js +0 -59
- package/esm2015/atoms/loading-icon/loading-icon.module.js +0 -19
- package/esm2015/atoms/progress-indicator/animation/progress-indicator-animation.js +0 -8
- package/esm2015/atoms/progress-indicator/progress-indicator.component.js +0 -87
- package/esm2015/atoms/progress-indicator/progress-indicator.module.js +0 -15
- package/esm2015/button/examples/basic-button/basic-button.component.js +0 -23
- package/esm2015/button/examples/basic-button/basic-button.module.js +0 -21
- package/esm2015/button/examples/daffodil-design-button-examples.js +0 -12
- package/esm2015/button/examples/icon-button/icon-button.component.js +0 -22
- package/esm2015/button/examples/icon-button/icon-button.module.js +0 -21
- package/esm2015/button/examples/public_api.js +0 -24
- package/esm2015/button/examples/raised-button/raised-button.component.js +0 -23
- package/esm2015/button/examples/raised-button/raised-button.module.js +0 -21
- package/esm2015/button/examples/sizeable-button/sizeable-button.component.js +0 -21
- package/esm2015/button/examples/sizeable-button/sizeable-button.module.js +0 -21
- package/esm2015/button/examples/statusable-button/statusable-button.component.js +0 -27
- package/esm2015/button/examples/statusable-button/statusable-button.module.js +0 -21
- package/esm2015/button/examples/stroked-button/stroked-button.component.js +0 -23
- package/esm2015/button/examples/stroked-button/stroked-button.module.js +0 -21
- package/esm2015/button/examples/underline-button/underline-button.component.js +0 -23
- package/esm2015/button/examples/underline-button/underline-button.module.js +0 -21
- package/esm2015/callout/examples/callout-text-alignment/callout-text-alignment.component.js +0 -25
- package/esm2015/callout/examples/callout-text-alignment/callout-text-alignment.module.js +0 -24
- package/esm2015/callout/examples/callout-theming/callout-theming.component.js +0 -29
- package/esm2015/callout/examples/callout-theming/callout-theming.module.js +0 -23
- package/esm2015/callout/examples/callout-with-grid/callout-with-grid.component.js +0 -17
- package/esm2015/callout/examples/callout-with-grid/callout-with-grid.module.js +0 -24
- package/esm2015/callout/examples/compact-callout/compact-callout.component.js +0 -17
- package/esm2015/callout/examples/compact-callout/compact-callout.module.js +0 -22
- package/esm2015/card/examples/basic-card/basic-card.component.js +0 -17
- package/esm2015/card/examples/basic-card/basic-card.module.js +0 -25
- package/esm2015/card/examples/card-orientation/card-orientation.component.js +0 -24
- package/esm2015/card/examples/card-orientation/card-orientation.module.js +0 -27
- package/esm2015/card/examples/card-theming/card-theming.component.js +0 -31
- package/esm2015/card/examples/card-theming/card-theming.module.js +0 -24
- package/esm2015/card/examples/daffodil-design-card-examples.js +0 -11
- package/esm2015/card/examples/linkable-card/linkable-card.component.js +0 -29
- package/esm2015/card/examples/linkable-card/linkable-card.module.js +0 -27
- package/esm2015/card/examples/public_api.js +0 -21
- package/esm2015/card/examples/raised-card/raised-card.component.js +0 -27
- package/esm2015/card/examples/raised-card/raised-card.module.js +0 -25
- package/esm2015/card/examples/stroked-card/stroked-card.component.js +0 -27
- package/esm2015/card/examples/stroked-card/stroked-card.module.js +0 -27
- package/esm2015/checkbox/examples/basic-checkbox/basic-checkbox.component.js +0 -25
- package/esm2015/checkbox/examples/basic-checkbox/basic-checkbox.module.js +0 -23
- package/esm2015/checkbox/examples/checkbox-set/checkbox-set.component.js +0 -27
- package/esm2015/checkbox/examples/checkbox-set/checkbox-set.module.js +0 -23
- package/esm2015/checkbox/examples/daffodil-design-checkbox-examples.js +0 -9
- package/esm2015/container/examples/container-sizes/container-sizes.component.js +0 -23
- package/esm2015/container/examples/container-sizes/container-sizes.module.js +0 -23
- package/esm2015/core/article-encapsulated/article-encapsulated-mixin.js +0 -12
- package/esm2015/core/breakpoints/breakpoints.js +0 -10
- package/esm2015/core/colorable/colorable-mixin.js +0 -43
- package/esm2015/core/colorable/colorable.js +0 -2
- package/esm2015/core/compactable/compactable-mixin.js +0 -26
- package/esm2015/core/compactable/compactable.js +0 -2
- package/esm2015/core/manage-container-layout/manage-container-layout-mixin.js +0 -14
- package/esm2015/core/mutable/mutable.js +0 -2
- package/esm2015/core/prefix-suffix/prefix-suffix.module.js +0 -19
- package/esm2015/core/prefix-suffix/prefix.directive.js +0 -20
- package/esm2015/core/prefix-suffix/prefixable/prefixable.js +0 -24
- package/esm2015/core/prefix-suffix/suffix.directive.js +0 -20
- package/esm2015/core/prefix-suffix/suffixable/suffixable.js +0 -24
- package/esm2015/core/public_api.js +0 -13
- package/esm2015/core/sizeable/sizeable-mixin.js +0 -32
- package/esm2015/core/sizeable/sizeable.js +0 -9
- package/esm2015/core/skeletonable/skeletonable.js +0 -2
- package/esm2015/core/statusable/statusable-mixin.js +0 -33
- package/esm2015/core/statusable/statusable.js +0 -7
- package/esm2015/core/text-alignable/text-alignable-mixin.js +0 -36
- package/esm2015/core/text-alignable/text-alignable.js +0 -7
- package/esm2015/daffodil-design.js +0 -15
- package/esm2015/hero/examples/compact-hero/compact-hero.component.js +0 -17
- package/esm2015/hero/examples/compact-hero/compact-hero.module.js +0 -26
- package/esm2015/hero/examples/hero-text-alignment/hero-text-alignment.component.js +0 -25
- package/esm2015/hero/examples/hero-text-alignment/hero-text-alignment.module.js +0 -24
- package/esm2015/hero/examples/hero-theming/hero-theming.component.js +0 -20
- package/esm2015/hero/examples/hero-theming/hero-theming.module.js +0 -26
- package/esm2015/hero/examples/hero-with-grid/hero-with-grid.component.js +0 -17
- package/esm2015/hero/examples/hero-with-grid/hero-with-grid.module.js +0 -24
- package/esm2015/list/examples/basic-list/basic-list.component.js +0 -12
- package/esm2015/list/examples/basic-list/basic-list.module.js +0 -21
- package/esm2015/list/examples/daffodil-design-list-examples.js +0 -9
- package/esm2015/list/examples/icon-list/icon-list.component.js +0 -16
- package/esm2015/list/examples/icon-list/icon-list.module.js +0 -23
- package/esm2015/list/examples/list-examples.module.js +0 -24
- package/esm2015/list/examples/multiline-list/multiline-list.component.js +0 -12
- package/esm2015/list/examples/multiline-list/multiline-list.module.js +0 -23
- package/esm2015/list/examples/nav-list/nav-list.component.js +0 -16
- package/esm2015/list/examples/nav-list/nav-list.module.js +0 -23
- package/esm2015/loading-icon/examples/daffodil-design-loading-icon-examples.js +0 -6
- package/esm2015/loading-icon/examples/loading-icon-color/loading-icon-color.component.js +0 -18
- package/esm2015/loading-icon/examples/loading-icon-color/loading-icon-color.module.js +0 -22
- package/esm2015/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.component.js +0 -12
- package/esm2015/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.module.js +0 -19
- package/esm2015/media-gallery/examples/basic-media-gallery/basic-media-gallery.component.js +0 -12
- package/esm2015/media-gallery/examples/basic-media-gallery/basic-media-gallery.module.js +0 -21
- package/esm2015/media-gallery/examples/daffodil-design-media-gallery-examples.js +0 -7
- package/esm2015/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.component.js +0 -12
- package/esm2015/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.module.js +0 -21
- package/esm2015/media-gallery/examples/public_api.js +0 -4
- package/esm2015/modal/examples/basic-modal/basic-modal.component.js +0 -24
- package/esm2015/modal/examples/basic-modal/basic-modal.module.js +0 -22
- package/esm2015/modal/examples/basic-modal/modal-content.component.js +0 -12
- package/esm2015/modal/examples/daffodil-design-modal-examples.js +0 -8
- package/esm2015/molecules/accordion/accordion/accordion.component.js +0 -33
- package/esm2015/molecules/accordion/accordion-item/accordion-item.component.js +0 -52
- package/esm2015/molecules/accordion/accordion-item-content/accordion-item-content.directive.js +0 -18
- package/esm2015/molecules/accordion/accordion-item-title/accordion-item-title.directive.js +0 -18
- package/esm2015/molecules/accordion/accordion.module.js +0 -35
- package/esm2015/molecules/accordion/nav-accordion-item/nav-accordion-item.component.js +0 -72
- package/esm2015/molecules/accordion/public_api.js +0 -6
- package/esm2015/molecules/article/article/article.component.js +0 -30
- package/esm2015/molecules/article/article-lead/article-lead.directive.js +0 -18
- package/esm2015/molecules/article/article-meta/article-meta.directive.js +0 -18
- package/esm2015/molecules/article/article-title/article-title.directive.js +0 -18
- package/esm2015/molecules/article/article.module.js +0 -28
- package/esm2015/molecules/backdrop/backdrop/backdrop.component.js +0 -46
- package/esm2015/molecules/backdrop/backdrop.module.js +0 -22
- package/esm2015/molecules/button-set/button-set.component.js +0 -22
- package/esm2015/molecules/button-set/button-set.module.js +0 -15
- package/esm2015/molecules/callout/callout/callout.component.js +0 -75
- package/esm2015/molecules/callout/callout-body/callout-body.directive.js +0 -18
- package/esm2015/molecules/callout/callout-icon/callout-icon.directive.js +0 -18
- package/esm2015/molecules/callout/callout-subtitle/callout-subtitle.directive.js +0 -18
- package/esm2015/molecules/callout/callout-tagline/callout-tagline.directive.js +0 -18
- package/esm2015/molecules/callout/callout-title/callout-title.directive.js +0 -18
- package/esm2015/molecules/callout/callout.module.js +0 -34
- package/esm2015/molecules/card/card/card.component.js +0 -118
- package/esm2015/molecules/card/card-actions/card-actions.directive.js +0 -18
- package/esm2015/molecules/card/card-content/card-content.directive.js +0 -18
- package/esm2015/molecules/card/card-icon/card-icon.directive.js +0 -18
- package/esm2015/molecules/card/card-image/card-image.directive.js +0 -18
- package/esm2015/molecules/card/card-tagline/card-tagline.directive.js +0 -18
- package/esm2015/molecules/card/card-title/card-title.directive.js +0 -18
- package/esm2015/molecules/card/card.module.js +0 -37
- package/esm2015/molecules/feature/feature/feature.component.js +0 -46
- package/esm2015/molecules/feature/feature-icon/feature-icon.directive.js +0 -18
- package/esm2015/molecules/feature/feature-subheader/feature-subheader.directive.js +0 -18
- package/esm2015/molecules/feature/feature-subtitle/feature-subtitle.directive.js +0 -18
- package/esm2015/molecules/feature/feature-title/feature-title.directive.js +0 -18
- package/esm2015/molecules/feature/feature.module.js +0 -31
- package/esm2015/molecules/hero/hero/hero.component.js +0 -76
- package/esm2015/molecules/hero/hero-body/hero-body.directive.js +0 -18
- package/esm2015/molecules/hero/hero-icon/hero-icon.directive.js +0 -18
- package/esm2015/molecules/hero/hero-subtitle/hero-subtitle.directive.js +0 -18
- package/esm2015/molecules/hero/hero-tagline/hero-tagline.directive.js +0 -18
- package/esm2015/molecules/hero/hero-title/hero-title.directive.js +0 -18
- package/esm2015/molecules/hero/hero.module.js +0 -34
- package/esm2015/molecules/image-gallery/gallery-image/gallery-image.component.js +0 -21
- package/esm2015/molecules/image-gallery/image-gallery/image-gallery.component.js +0 -16
- package/esm2015/molecules/image-gallery/image-gallery.module.js +0 -24
- package/esm2015/molecules/image-list/image-list.component.js +0 -22
- package/esm2015/molecules/image-list/image-list.module.js +0 -19
- package/esm2015/molecules/link-set/link-set/link-set.component.js +0 -44
- package/esm2015/molecules/link-set/link-set-heading/link-set-heading.directive.js +0 -21
- package/esm2015/molecules/link-set/link-set-item/link-set-item.component.js +0 -22
- package/esm2015/molecules/link-set/link-set-subheading/link-set-subheading.directive.js +0 -21
- package/esm2015/molecules/link-set/link-set.module.js +0 -28
- package/esm2015/molecules/list/list/list.component.js +0 -106
- package/esm2015/molecules/list/list-item/list-item.component.js +0 -46
- package/esm2015/molecules/list/list-subheader/list-subheader.directive.js +0 -21
- package/esm2015/molecules/list/list.module.js +0 -28
- package/esm2015/molecules/media-gallery/media-gallery-registration.interface.js +0 -2
- package/esm2015/molecules/media-gallery/media-gallery.component.js +0 -61
- package/esm2015/molecules/media-gallery/media-gallery.module.js +0 -24
- package/esm2015/molecules/media-gallery/media-renderer/media-renderer.component.js +0 -78
- package/esm2015/molecules/media-gallery/registry/media-gallery.registry.js +0 -86
- package/esm2015/molecules/media-gallery/thumbnail/thumbnail-registration.interface.js +0 -2
- package/esm2015/molecules/media-gallery/thumbnail/thumbnail.directive.js +0 -79
- package/esm2015/molecules/modal/animations/modal-animation.js +0 -9
- package/esm2015/molecules/modal/modal/modal.component.js +0 -73
- package/esm2015/molecules/modal/modal-actions/modal-actions.component.js +0 -12
- package/esm2015/molecules/modal/modal-content/modal-content.component.js +0 -12
- package/esm2015/molecules/modal/modal-header/modal-header.component.js +0 -22
- package/esm2015/molecules/modal/modal-title/modal-title.directive.js +0 -18
- package/esm2015/molecules/modal/modal.js +0 -2
- package/esm2015/molecules/modal/modal.module.js +0 -34
- package/esm2015/molecules/modal/service/modal.service.js +0 -73
- package/esm2015/molecules/navbar/navbar.component.js +0 -58
- package/esm2015/molecules/navbar/navbar.module.js +0 -15
- package/esm2015/molecules/paginator/paginator.component.js +0 -161
- package/esm2015/molecules/paginator/paginator.module.js +0 -23
- package/esm2015/molecules/qty-dropdown/qty-dropdown.component.js +0 -110
- package/esm2015/molecules/qty-dropdown/qty-dropdown.module.js +0 -27
- package/esm2015/molecules/sidebar/animation/sidebar-animation.js +0 -30
- package/esm2015/molecules/sidebar/sidebar/sidebar.component.js +0 -50
- package/esm2015/molecules/sidebar/sidebar-viewport/sidebar-viewport.component.js +0 -117
- package/esm2015/molecules/sidebar/sidebar.module.js +0 -26
- package/esm2015/navbar/examples/basic-navbar/basic-navbar.component.js +0 -13
- package/esm2015/navbar/examples/basic-navbar/basic-navbar.module.js +0 -20
- package/esm2015/navbar/examples/contained-navbar/contained-navbar.component.js +0 -13
- package/esm2015/navbar/examples/contained-navbar/contained-navbar.module.js +0 -20
- package/esm2015/navbar/examples/navbar-theming/navbar-theming.component.js +0 -27
- package/esm2015/navbar/examples/navbar-theming/navbar-theming.module.js +0 -21
- package/esm2015/navbar/examples/raised-navbar/raised-navbar.component.js +0 -13
- package/esm2015/navbar/examples/raised-navbar/raised-navbar.module.js +0 -19
- package/esm2015/quantity-field/examples/basic/basic-quantity-field.component.js +0 -17
- package/esm2015/quantity-field/examples/basic/basic-quantity-field.module.js +0 -24
- package/esm2015/quantity-field/examples/customRange/custom-range-quantity-field.component.js +0 -17
- package/esm2015/quantity-field/examples/customRange/custom-range-quantity-field.module.js +0 -24
- package/esm2015/quantity-field/examples/daffodil-design-quantity-field-examples.js +0 -9
- package/esm2015/quantity-field/examples/disabled/disabled-quantity-field.component.js +0 -17
- package/esm2015/quantity-field/examples/disabled/disabled-quantity-field.module.js +0 -24
- package/esm2015/quantity-field/examples/examples.js +0 -11
- package/esm2015/quantity-field/examples/public_api.js +0 -6
- package/esm2015/quantity-field/examples/selectMax/select-max-quantity-field.component.js +0 -17
- package/esm2015/quantity-field/examples/selectMax/select-max-quantity-field.module.js +0 -24
- package/esm2015/radio/examples/basic-radio/basic-radio.component.js +0 -22
- package/esm2015/radio/examples/basic-radio/basic-radio.module.js +0 -22
- package/esm2015/radio/examples/daffodil-design-radio-examples.js +0 -7
- package/fesm2015/daffodil-design-accordion-examples.js +0 -68
- package/fesm2015/daffodil-design-accordion-examples.js.map +0 -1
- package/fesm2015/daffodil-design-article-examples.js +0 -162
- package/fesm2015/daffodil-design-article-examples.js.map +0 -1
- package/fesm2015/daffodil-design-button-examples.js +0 -288
- package/fesm2015/daffodil-design-button-examples.js.map +0 -1
- package/fesm2015/daffodil-design-callout-examples.js +0 -168
- package/fesm2015/daffodil-design-callout-examples.js.map +0 -1
- package/fesm2015/daffodil-design-card-examples.js +0 -287
- package/fesm2015/daffodil-design-card-examples.js.map +0 -1
- package/fesm2015/daffodil-design-checkbox-examples.js +0 -104
- package/fesm2015/daffodil-design-checkbox-examples.js.map +0 -1
- package/fesm2015/daffodil-design-container-examples.js +0 -54
- package/fesm2015/daffodil-design-container-examples.js.map +0 -1
- package/fesm2015/daffodil-design-hero-examples.js +0 -165
- package/fesm2015/daffodil-design-hero-examples.js.map +0 -1
- package/fesm2015/daffodil-design-list-examples.js +0 -157
- package/fesm2015/daffodil-design-list-examples.js.map +0 -1
- package/fesm2015/daffodil-design-loading-icon-examples.js +0 -76
- package/fesm2015/daffodil-design-loading-icon-examples.js.map +0 -1
- package/fesm2015/daffodil-design-media-gallery-examples.js +0 -72
- package/fesm2015/daffodil-design-media-gallery-examples.js.map +0 -1
- package/fesm2015/daffodil-design-modal-examples.js +0 -63
- package/fesm2015/daffodil-design-modal-examples.js.map +0 -1
- package/fesm2015/daffodil-design-navbar-examples.js +0 -142
- package/fesm2015/daffodil-design-navbar-examples.js.map +0 -1
- package/fesm2015/daffodil-design-quantity-field-examples.js +0 -154
- package/fesm2015/daffodil-design-quantity-field-examples.js.map +0 -1
- package/fesm2015/daffodil-design-radio-examples.js +0 -55
- package/fesm2015/daffodil-design-radio-examples.js.map +0 -1
- package/fesm2015/daffodil-design.js +0 -4776
- package/fesm2015/daffodil-design.js.map +0 -1
- package/hero/examples/daffodil-design-hero-examples.metadata.json +0 -1
- package/list/examples/daffodil-design-list-examples.metadata.json +0 -1
- package/loading-icon/examples/daffodil-design-loading-icon-examples.metadata.json +0 -1
- package/media-gallery/examples/daffodil-design-media-gallery-examples.metadata.json +0 -1
- package/modal/examples/daffodil-design-modal-examples.metadata.json +0 -1
- package/navbar/examples/daffodil-design-navbar-examples.metadata.json +0 -1
- package/quantity-field/examples/basic/basic-quantity-field.component.d.ts +0 -4
- package/quantity-field/examples/basic/basic-quantity-field.module.d.ts +0 -2
- package/quantity-field/examples/customRange/custom-range-quantity-field.component.d.ts +0 -4
- package/quantity-field/examples/customRange/custom-range-quantity-field.module.d.ts +0 -2
- package/quantity-field/examples/daffodil-design-quantity-field-examples.metadata.json +0 -1
- package/quantity-field/examples/disabled/disabled-quantity-field.component.d.ts +0 -4
- package/quantity-field/examples/disabled/disabled-quantity-field.module.d.ts +0 -2
- package/quantity-field/examples/examples.d.ts +0 -2
- package/quantity-field/examples/selectMax/select-max-quantity-field.component.d.ts +0 -4
- package/quantity-field/examples/selectMax/select-max-quantity-field.module.d.ts +0 -2
- package/radio/examples/daffodil-design-radio-examples.metadata.json +0 -1
@@ -0,0 +1,35 @@
|
|
1
|
+
import { Input, } from '@angular/core';
|
2
|
+
export function daffTextAlignmentMixin(Base, defaultTextAlignment) {
|
3
|
+
class DaffTextAlignableMixin extends Base {
|
4
|
+
constructor(...args) {
|
5
|
+
super(...args);
|
6
|
+
this.textAlignment = defaultTextAlignment;
|
7
|
+
}
|
8
|
+
/**
|
9
|
+
* Controls text alignment for component-specific UI
|
10
|
+
*/
|
11
|
+
get textAlignment() {
|
12
|
+
return this._textAlignment;
|
13
|
+
}
|
14
|
+
set textAlignment(value) {
|
15
|
+
// Handles the default text alignment
|
16
|
+
const incomingTextAlignment = value || defaultTextAlignment;
|
17
|
+
if (incomingTextAlignment === this._textAlignment) { // Only run the dom-render if a change occurs
|
18
|
+
return;
|
19
|
+
}
|
20
|
+
// Removes the old text alignment
|
21
|
+
if (this._textAlignment) {
|
22
|
+
this._renderer.removeClass(this._elementRef.nativeElement, `daff-${this._textAlignment}`);
|
23
|
+
}
|
24
|
+
if (incomingTextAlignment) {
|
25
|
+
this._renderer.addClass(this._elementRef.nativeElement, `daff-${incomingTextAlignment}`);
|
26
|
+
}
|
27
|
+
this._textAlignment = incomingTextAlignment;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
;
|
31
|
+
// TODO: ugly workaround for https://github.com/microsoft/TypeScript/issues/7342#issuecomment-624298133
|
32
|
+
Input()(DaffTextAlignableMixin.prototype, 'textAlign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W50UmVmLm5hdGl2ZUVsZW1lbnQsIGBkYWZmLSR7aW5jb21pbmdUZXh0QWxpZ25tZW50fWApO1xuICAgICAgfVxuXG4gICAgICB0aGlzLl90ZXh0QWxpZ25tZW50ID0gaW5jb21pbmdUZXh0QWxpZ25tZW50O1xuICAgIH1cblxuICAgIGNvbnN0cnVjdG9yKC4uLmFyZ3M6IGFueVtdKSB7XG4gICAgICBzdXBlciguLi5hcmdzKTtcbiAgICAgIHRoaXMudGV4dEFsaWdubWVudCA9IGRlZmF1bHRUZXh0QWxpZ25tZW50O1xuICAgIH1cbiAgfTtcblxuICAvLyBUT0RPOiB1Z2x5IHdvcmthcm91bmQgZm9yIGh0dHBzOi8vZ2l0aHViLmNvbS9taWNyb3NvZnQvVHlwZVNjcmlwdC9pc3N1ZXMvNzM0MiNpc3N1ZWNvbW1lbnQtNjI0Mjk4MTMzXG4gIElucHV0KCkoRGFmZlRleHRBbGlnbmFibGVNaXhpbi5wcm90b3R5cGUsICd0ZXh0QWxpZ25tZW50Jyk7XG5cbiAgcmV0dXJuIERhZmZUZXh0QWxpZ25hYmxlTWl4aW47XG59XG4iXX0=
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export var DaffTextAlignmentEnum;
|
2
|
+
(function (DaffTextAlignmentEnum) {
|
3
|
+
DaffTextAlignmentEnum["Left"] = "left";
|
4
|
+
DaffTextAlignmentEnum["Center"] = "center";
|
5
|
+
DaffTextAlignmentEnum["Right"] = "right";
|
6
|
+
})(DaffTextAlignmentEnum || (DaffTextAlignmentEnum = {}));
|
7
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dC1hbGlnbmFibGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2Rlc2lnbi9zcmMvY29yZS90ZXh0LWFsaWduYWJsZS90ZXh0LWFsaWduYWJsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFVQSxNQUFNLENBQU4sSUFBWSxxQkFJWDtBQUpELFdBQVkscUJBQXFCO0lBQy9CLHNDQUFhLENBQUE7SUFDYiwwQ0FBaUIsQ0FBQTtJQUNqQix3Q0FBZSxDQUFBO0FBQ2pCLENBQUMsRUFKVyxxQkFBcUIsS0FBckIscUJBQXFCLFFBSWhDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBBbiBpbnRlcmZhY2UgZm9yIGdpdmluZyBhIGNvbXBvbmVudCB0aGUgYWJpbGl0eSB0byBjdXN0b21pemUgdGV4dCBhbGlnbm1lbnQgZm9yIGNvbXBvbmVudC1zcGVjaWZpYyBVSS5cbiAqIEluIG9yZGVyIHRvIGJlIHRleHQgYWxpZ25hYmxlLCBhIGNvbXBvbmVudCBjbGFzcyBtdXN0IGltcGxlbWVudCB0aGlzIHByb3BlcnR5LlxuICovXG5leHBvcnQgaW50ZXJmYWNlIERhZmZUZXh0QWxpZ25hYmxlIHtcbiAgdGV4dEFsaWdubWVudDogRGFmZlRleHRBbGlnbm1lbnQ7XG59XG5cbmV4cG9ydCB0eXBlIERhZmZUZXh0QWxpZ25tZW50ID0gJ2xlZnQnIHwgJ2NlbnRlcicgfCAncmlnaHQnO1xuXG5leHBvcnQgZW51bSBEYWZmVGV4dEFsaWdubWVudEVudW0ge1xuICBMZWZ0ID0gJ2xlZnQnLFxuICBDZW50ZXIgPSAnY2VudGVyJyxcbiAgUmlnaHQgPSAncmlnaHQnXG59XG4iXX0=
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { DaffTheme } from '../types/theme';
|
2
|
+
/**
|
3
|
+
* Computes the appropriate application theme from the specified values.
|
4
|
+
* It cascades from `storedPreference` to `osPreference` to `defaultTheme`.
|
5
|
+
*/
|
6
|
+
export const daffComputeThemeSetting = (osPreference, storedPreference, defaultTheme = DaffTheme.Dark) => {
|
7
|
+
if (storedPreference) {
|
8
|
+
return storedPreference;
|
9
|
+
}
|
10
|
+
if (osPreference === 'dark') {
|
11
|
+
return DaffTheme.Dark;
|
12
|
+
}
|
13
|
+
if (osPreference === 'light') {
|
14
|
+
return DaffTheme.Light;
|
15
|
+
}
|
16
|
+
return defaultTheme;
|
17
|
+
};
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcHV0ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Rlc2lnbi9zcmMvY29yZS90aGVtaW5nL2Z1bmN0aW9ucy9jb21wdXRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFM0M7OztHQUdHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sdUJBQXVCLEdBQUcsQ0FDckMsWUFBd0IsRUFDeEIsZ0JBQTRCLEVBQzVCLGVBQTBCLFNBQVMsQ0FBQyxJQUFJLEVBQzdCLEVBQUU7SUFDYixJQUFJLGdCQUFnQixFQUFFO1FBQ3BCLE9BQU8sZ0JBQWdCLENBQUM7S0FDekI7SUFFRCxJQUFJLFlBQVksS0FBSyxNQUFNLEVBQUU7UUFDM0IsT0FBTyxTQUFTLENBQUMsSUFBSSxDQUFDO0tBQ3ZCO0lBRUQsSUFBSSxZQUFZLEtBQUssT0FBTyxFQUFFO1FBQzVCLE9BQU8sU0FBUyxDQUFDLEtBQUssQ0FBQztLQUN4QjtJQUVELE9BQU8sWUFBWSxDQUFDO0FBQ3RCLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IERhZmZUaGVtZSB9IGZyb20gJy4uL3R5cGVzL3RoZW1lJztcblxuLyoqXG4gKiBDb21wdXRlcyB0aGUgYXBwcm9wcmlhdGUgYXBwbGljYXRpb24gdGhlbWUgZnJvbSB0aGUgc3BlY2lmaWVkIHZhbHVlcy5cbiAqIEl0IGNhc2NhZGVzIGZyb20gYHN0b3JlZFByZWZlcmVuY2VgIHRvIGBvc1ByZWZlcmVuY2VgIHRvIGBkZWZhdWx0VGhlbWVgLlxuICovXG5leHBvcnQgY29uc3QgZGFmZkNvbXB1dGVUaGVtZVNldHRpbmcgPSAoXG4gIG9zUHJlZmVyZW5jZT86IERhZmZUaGVtZSxcbiAgc3RvcmVkUHJlZmVyZW5jZT86IERhZmZUaGVtZSxcbiAgZGVmYXVsdFRoZW1lOiBEYWZmVGhlbWUgPSBEYWZmVGhlbWUuRGFyayxcbik6IERhZmZUaGVtZSA9PiB7XG4gIGlmIChzdG9yZWRQcmVmZXJlbmNlKSB7XG4gICAgcmV0dXJuIHN0b3JlZFByZWZlcmVuY2U7XG4gIH1cblxuICBpZiAob3NQcmVmZXJlbmNlID09PSAnZGFyaycpIHtcbiAgICByZXR1cm4gRGFmZlRoZW1lLkRhcms7XG4gIH1cblxuICBpZiAob3NQcmVmZXJlbmNlID09PSAnbGlnaHQnKSB7XG4gICAgcmV0dXJuIERhZmZUaGVtZS5MaWdodDtcbiAgfVxuXG4gIHJldHVybiBkZWZhdWx0VGhlbWU7XG59O1xuIl19
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { APP_INITIALIZER, } from '@angular/core';
|
2
|
+
import { DaffThemeClassSetterService } from './services/class-setter/theme-class-setter.service';
|
3
|
+
export const DAFF_THEME_INIT = (classSetter) => () => classSetter.beginThemeSync();
|
4
|
+
/**
|
5
|
+
* The theme provider for the app.
|
6
|
+
* This configures updating the body with the theme class.
|
7
|
+
*/
|
8
|
+
export const DAFF_THEME_INITIALIZER = [
|
9
|
+
DaffThemeClassSetterService,
|
10
|
+
{
|
11
|
+
provide: APP_INITIALIZER,
|
12
|
+
multi: true,
|
13
|
+
deps: [DaffThemeClassSetterService],
|
14
|
+
useFactory: DAFF_THEME_INIT,
|
15
|
+
},
|
16
|
+
];
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJma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bmMoKTtcblxuLyoqXG4gKiBUaGUgdGhlbWUgcHJvdmlkZXIgZm9yIHRoZSBhcHAuXG4gKiBUaGlzIGNvbmZpZ3VyZXMgdXBkYXRpbmcgdGhlIGJvZHkgd2l0aCB0aGUgdGhlbWUgY2xhc3MuXG4gKi9cbmV4cG9ydCBjb25zdCBEQUZGX1RIRU1FX0lOSVRJQUxJWkVSOiBQcm92aWRlcltdID0gW1xuICBEYWZmVGhlbWVDbGFzc1NldHRlclNlcnZpY2UsXG4gIHtcbiAgICBwcm92aWRlOiBBUFBfSU5JVElBTElaRVIsXG4gICAgbXVsdGk6IHRydWUsXG4gICAgZGVwczogW0RhZmZUaGVtZUNsYXNzU2V0dGVyU2VydmljZV0sXG4gICAgdXNlRmFjdG9yeTogREFGRl9USEVNRV9JTklULFxuICB9LFxuXTtcbiJdfQ==
|
@@ -0,0 +1,4 @@
|
|
1
|
+
export { DaffThemingService } from './services/theming.service';
|
2
|
+
export { DaffTheme } from './types/theme';
|
3
|
+
export { DAFF_THEME_INITIALIZER } from './initializer';
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvZGVzaWduL3NyYy9jb3JlL3RoZW1pbmcvcHVibGljX2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSw0QkFBNEIsQ0FBQztBQUNoRSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzFDLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLGVBQWUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IERhZmZUaGVtaW5nU2VydmljZSB9IGZyb20gJy4vc2VydmljZXMvdGhlbWluZy5zZXJ2aWNlJztcbmV4cG9ydCB7IERhZmZUaGVtZSB9IGZyb20gJy4vdHlwZXMvdGhlbWUnO1xuZXhwb3J0IHsgREFGRl9USEVNRV9JTklUSUFMSVpFUiB9IGZyb20gJy4vaW5pdGlhbGl6ZXInO1xuIl19
|
@@ -0,0 +1,52 @@
|
|
1
|
+
import { DOCUMENT } from '@angular/common';
|
2
|
+
import { Injectable, Inject, RendererFactory2, } from '@angular/core';
|
3
|
+
import { DaffTheme } from '../../types/theme';
|
4
|
+
import { DaffThemingService } from '../theming.service';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
import * as i1 from "../theming.service";
|
7
|
+
export const DAFF_THEME_DARK_CSS_CLASS = 'daff-theme-dark';
|
8
|
+
export const DAFF_THEME_LIGHT_CSS_CLASS = 'daff-theme-light';
|
9
|
+
/**
|
10
|
+
* This class updates the body of the application with the theme's appropriate class.
|
11
|
+
* Note that this service is not provided tree-shakably by intention.
|
12
|
+
* It is intended to be provided manually during setup.
|
13
|
+
*/
|
14
|
+
export class DaffThemeClassSetterService {
|
15
|
+
constructor(_doc, rendererFactory, themingService) {
|
16
|
+
this.rendererFactory = rendererFactory;
|
17
|
+
this.themingService = themingService;
|
18
|
+
this.doc = _doc;
|
19
|
+
this.renderer = this.rendererFactory.createRenderer(null, null);
|
20
|
+
}
|
21
|
+
/**
|
22
|
+
* This function is intended to only be called once when the service
|
23
|
+
* is initialized for the very first time. This will mutate the class
|
24
|
+
* on the body of the document for the appropriate theme as controlled
|
25
|
+
* by the state of the application's theme.
|
26
|
+
*/
|
27
|
+
beginThemeSync() {
|
28
|
+
this.subscription = this.themingService.getTheme().subscribe((theme) => {
|
29
|
+
// For simplicty, remove all previously applied themes.
|
30
|
+
this.renderer.removeClass(this.doc.body, DAFF_THEME_LIGHT_CSS_CLASS);
|
31
|
+
this.renderer.removeClass(this.doc.body, DAFF_THEME_DARK_CSS_CLASS);
|
32
|
+
this.renderer.addClass(this.doc.body, theme === DaffTheme.Dark ? DAFF_THEME_DARK_CSS_CLASS : DAFF_THEME_LIGHT_CSS_CLASS);
|
33
|
+
});
|
34
|
+
}
|
35
|
+
/**
|
36
|
+
* This unsubscribes from the bodyClass subscription that exists.
|
37
|
+
*/
|
38
|
+
destroy() {
|
39
|
+
this.subscription?.unsubscribe();
|
40
|
+
this.renderer.removeClass(this.doc.body, DAFF_THEME_LIGHT_CSS_CLASS);
|
41
|
+
this.renderer.removeClass(this.doc.body, DAFF_THEME_DARK_CSS_CLASS);
|
42
|
+
}
|
43
|
+
}
|
44
|
+
/** @nocollapse */ /** @nocollapse */ DaffThemeClassSetterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffThemeClassSetterService, deps: [{ token: DOCUMENT }, { token: i0.RendererFactory2 }, { token: i1.DaffThemingService }], target: i0.ɵɵFactoryTarget.Injectable });
|
45
|
+
/** @nocollapse */ /** @nocollapse */ DaffThemeClassSetterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffThemeClassSetterService });
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffThemeClassSetterService, decorators: [{
|
47
|
+
type: Injectable
|
48
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
49
|
+
type: Inject,
|
50
|
+
args: [DOCUMENT]
|
51
|
+
}] }, { type: i0.RendererFactory2 }, { type: i1.DaffThemingService }]; } });
|
52
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGhlbWUtY2xhc3Mtc2V0dGVyLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Rlc2lnbi9zcmMvY29yZS90aGVtaW5nL3NlcnZpY2VzL2NsYXNzLXNldHRlci90aGVtZS1jbGFzcy1zZXR0ZX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X0NTU19DTEFTUyk7XG5cdCAgfSk7XG4gIH1cblxuICAvKipcbiAgICogVGhpcyB1bnN1YnNjcmliZXMgZnJvbSB0aGUgYm9keUNsYXNzIHN1YnNjcmlwdGlvbiB0aGF0IGV4aXN0cy5cbiAgICovXG4gIGRlc3Ryb3koKTogdm9pZCB7XG5cdCAgdGhpcy5zdWJzY3JpcHRpb24/LnVuc3Vic2NyaWJlKCk7XG5cdCAgdGhpcy5yZW5kZXJlci5yZW1vdmVDbGFzcyh0aGlzLmRvYy5ib2R5LCBEQUZGX1RIRU1FX0xJR0hUX0NTU19DTEFTUyk7XG5cdCAgdGhpcy5yZW5kZXJlci5yZW1vdmVDbGFzcyh0aGlzLmRvYy5ib2R5LCBEQUZGX1RIRU1FX0RBUktfQ1NTX0NMQVNTKTtcbiAgfVxufVxuIl19
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import { DOCUMENT } from '@angular/common';
|
2
|
+
import { Injectable, Inject, } from '@angular/core';
|
3
|
+
import { of, fromEventPattern, } from 'rxjs';
|
4
|
+
import { map, startWith, } from 'rxjs/operators';
|
5
|
+
import { DaffTheme } from '../../types/theme';
|
6
|
+
import * as i0 from "@angular/core";
|
7
|
+
export const mediaQueryDarkPreference = '(prefers-color-scheme: dark)';
|
8
|
+
export const addHandlerFactory = (window) => (handler) => {
|
9
|
+
const query = window.matchMedia(mediaQueryDarkPreference);
|
10
|
+
return 'addEventListener' in query
|
11
|
+
? query.addEventListener('change', handler)
|
12
|
+
: query.addListener(handler);
|
13
|
+
};
|
14
|
+
export const removeHandlerFactory = (window) => (handler) => {
|
15
|
+
const query = window.matchMedia(mediaQueryDarkPreference);
|
16
|
+
return 'removeEventListener' in query
|
17
|
+
? query.removeEventListener('change', handler)
|
18
|
+
: query.removeListener(handler);
|
19
|
+
};
|
20
|
+
/**
|
21
|
+
* A service for retrieving the operating system's theme preference.
|
22
|
+
*/
|
23
|
+
export class DaffOsThemeService {
|
24
|
+
constructor(_doc) {
|
25
|
+
this.doc = _doc;
|
26
|
+
this.preference$ = this.doc.defaultView?.matchMedia
|
27
|
+
? fromEventPattern(addHandlerFactory(this.doc.defaultView), removeHandlerFactory(this.doc.defaultView))
|
28
|
+
.pipe(startWith(this.doc.defaultView?.matchMedia(mediaQueryDarkPreference)), map((e) => e.matches), map((prefersDark) => prefersDark ? DaffTheme.Dark : DaffTheme.Light))
|
29
|
+
: of(DaffTheme.None);
|
30
|
+
}
|
31
|
+
/**
|
32
|
+
* Get the operating system's theme preference.
|
33
|
+
*/
|
34
|
+
getThemePreference() {
|
35
|
+
return this.preference$;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
/** @nocollapse */ /** @nocollapse */ DaffOsThemeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffOsThemeService, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
39
|
+
/** @nocollapse */ /** @nocollapse */ DaffOsThemeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffOsThemeService, providedIn: 'root' });
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffOsThemeService, decorators: [{
|
41
|
+
type: Injectable,
|
42
|
+
args: [{
|
43
|
+
providedIn: 'root',
|
44
|
+
}]
|
45
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
46
|
+
type: Inject,
|
47
|
+
args: [DOCUMENT]
|
48
|
+
}] }]; } });
|
49
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3N0aGVtZS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9kZXNpZ24vc3JjL2NvcmUvdGhlbWluZy9zZXJ2aWNlcy9vcy10aGVtZS9vc3RoZW1lLnNlc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nkodGhpcy5kb2MuZGVmYXVsdFZpZXcpLFxuXHQgICAgKVxuXHQgICAgICAucGlwZShcblx0ICAgICAgICBzdGFydFdpdGgodGhpcy5kb2MuZGVmYXVsdFZpZXc/Lm1hdGNoTWVkaWEobWVkaWFRdWVyeURhcmtQcmVmZXJlbmNlKSksXG5cdCAgICAgICAgbWFwKChlOiBNZWRpYVF1ZXJ5TGlzdEV2ZW50KSA9PiBlLm1hdGNoZXMpLFxuXHQgICAgICAgIG1hcCgocHJlZmVyc0RhcmspID0+IHByZWZlcnNEYXJrID8gRGFmZlRoZW1lLkRhcmsgOiBEYWZmVGhlbWUuTGlnaHQpLFxuXHQgICAgICApXG5cdCAgICA6IG9mKERhZmZUaGVtZS5Ob25lKTtcbiAgfVxuXG4gIC8qKlxuICAgKiBHZXQgdGhlIG9wZXJhdGluZyBzeXN0ZW0ncyB0aGVtZSBwcmVmZXJlbmNlLlxuICAgKi9cbiAgcHVibGljIGdldFRoZW1lUHJlZmVyZW5jZSgpOiBPYnNlcnZhYmxlPERhZmZUaGVtZT4ge1xuXHQgIHJldHVybiB0aGlzLnByZWZlcmVuY2UkO1xuICB9XG59XG4iXX0=
|
@@ -0,0 +1,67 @@
|
|
1
|
+
import { DOCUMENT } from '@angular/common';
|
2
|
+
import { Injectable, Inject, } from '@angular/core';
|
3
|
+
import { fromEvent, Subject, merge, EMPTY, of, } from 'rxjs';
|
4
|
+
import { map, filter, startWith, shareReplay, catchError, } from 'rxjs/operators';
|
5
|
+
import { DaffServerSafePersistenceServiceToken, } from '@daffodil/core';
|
6
|
+
import { DaffTheme } from '../../types/theme';
|
7
|
+
import * as i0 from "@angular/core";
|
8
|
+
export const THEME_STORAGE_KEY = 'DAFF_THEME';
|
9
|
+
export const coerceValue = (val) => val === DaffTheme.Dark || val === DaffTheme.Light
|
10
|
+
? val
|
11
|
+
: DaffTheme.None;
|
12
|
+
/**
|
13
|
+
* Generate a StorageEvent
|
14
|
+
*/
|
15
|
+
const storageEventBuilder = (value) => ({
|
16
|
+
key: THEME_STORAGE_KEY,
|
17
|
+
newValue: coerceValue(value) !== DaffTheme.None ? value : null,
|
18
|
+
});
|
19
|
+
/**
|
20
|
+
* A service for retrieving and managing the application's stored theme.
|
21
|
+
*/
|
22
|
+
export class DaffThemeStorageService {
|
23
|
+
constructor(storage, _doc) {
|
24
|
+
this.storage = storage;
|
25
|
+
this.storage$ = new Subject();
|
26
|
+
this.doc = _doc;
|
27
|
+
this.theme$ = merge(this.storage$, this.doc.defaultView
|
28
|
+
? fromEvent(this.doc.defaultView, 'storage').pipe(startWith(storageEventBuilder(this.storage.getItem(THEME_STORAGE_KEY))), catchError((e) => EMPTY))
|
29
|
+
: of(storageEventBuilder(this.storage.getItem(THEME_STORAGE_KEY)))).pipe(filter((e) => e.key === THEME_STORAGE_KEY), map((e) => coerceValue(e.newValue)), shareReplay(1));
|
30
|
+
}
|
31
|
+
/**
|
32
|
+
* Given that Safari doesn't respect in-tab storage events, we have to manually
|
33
|
+
* fire storage events in the open tab on Webkit based browsers.
|
34
|
+
*/
|
35
|
+
progressStorageEvent(theme) {
|
36
|
+
this.storage$.next(storageEventBuilder(theme));
|
37
|
+
}
|
38
|
+
getThemeAsObservable() {
|
39
|
+
return this.theme$;
|
40
|
+
}
|
41
|
+
getTheme() {
|
42
|
+
return coerceValue(this.storage.getItem(THEME_STORAGE_KEY));
|
43
|
+
}
|
44
|
+
setTheme(theme) {
|
45
|
+
this.progressStorageEvent(theme);
|
46
|
+
this.storage.setItem(THEME_STORAGE_KEY, theme);
|
47
|
+
}
|
48
|
+
removeThemeSetting() {
|
49
|
+
this.progressStorageEvent(DaffTheme.None);
|
50
|
+
this.storage.removeItem(THEME_STORAGE_KEY);
|
51
|
+
}
|
52
|
+
}
|
53
|
+
/** @nocollapse */ /** @nocollapse */ DaffThemeStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffThemeStorageService, deps: [{ token: DaffServerSafePersistenceServiceToken }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
54
|
+
/** @nocollapse */ /** @nocollapse */ DaffThemeStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffThemeStorageService, providedIn: 'root' });
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffThemeStorageService, decorators: [{
|
56
|
+
type: Injectable,
|
57
|
+
args: [{
|
58
|
+
providedIn: 'root',
|
59
|
+
}]
|
60
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
61
|
+
type: Inject,
|
62
|
+
args: [DaffServerSafePersistenceServiceToken]
|
63
|
+
}] }, { type: undefined, decorators: [{
|
64
|
+
type: Inject,
|
65
|
+
args: [DOCUMENT]
|
66
|
+
}] }]; } });
|
67
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGhlbWUtc3RvcmFnZS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9kZXNpZ24vc3JjL2NvcmUvdGhlbWluZy9zZXJ2aWNlcy9zdG9yYWdlL3RoZW1lLXN0b3JhZ2Uuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDM0MsT0FBTyxFQUNMLFVBQVUsRUFDVixNQUFNLEdBQ1AsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUVMLFNBQVMsRUFDVCxPQUFPLEVBQ1AsS0FBSyxFQUNMLEtBQUssRUFDTCxFQUFFLEdBQ0gsTUFBTSxNQUFNLENBQUM7QUFDZCxPQUFPLEVBQ0wsR0FBRyxFQUNILE1BQU0sRUFDTixTQUFTLEVBQ1Qs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aWQge1xuXHQgIHRoaXMucHJvZ3Jlc3NTdG9yYWdlRXZlbnQoRGFmZlRoZW1lLk5vbmUpO1xuXHQgIHRoaXMuc3RvcmFnZS5yZW1vdmVJdGVtKFRIRU1FX1NUT1JBR0VfS0VZKTtcbiAgfVxufVxuIl19
|
@@ -0,0 +1,61 @@
|
|
1
|
+
import { Injectable } from '@angular/core';
|
2
|
+
import { combineLatest, } from 'rxjs';
|
3
|
+
import { map } from 'rxjs/operators';
|
4
|
+
import { daffComputeThemeSetting } from '../functions/computer';
|
5
|
+
import { DaffTheme } from '../types/theme';
|
6
|
+
import { DaffOsThemeService } from './os-theme/ostheme.service';
|
7
|
+
import { DaffThemeStorageService } from './storage/theme-storage.service';
|
8
|
+
import * as i0 from "@angular/core";
|
9
|
+
import * as i1 from "./os-theme/ostheme.service";
|
10
|
+
import * as i2 from "./storage/theme-storage.service";
|
11
|
+
/**
|
12
|
+
* A service for controlling the application's theme.
|
13
|
+
*/
|
14
|
+
export class DaffThemingService {
|
15
|
+
constructor(osTheme, themeStorage) {
|
16
|
+
this.osTheme = osTheme;
|
17
|
+
this.themeStorage = themeStorage;
|
18
|
+
this.theme$ = combineLatest([
|
19
|
+
this.osTheme.getThemePreference(),
|
20
|
+
this.themeStorage.getThemeAsObservable(),
|
21
|
+
]).pipe(map(([osPreference, storedPreference]) => daffComputeThemeSetting(osPreference, storedPreference)));
|
22
|
+
this.theme$.subscribe((theme) => {
|
23
|
+
this.theme = theme;
|
24
|
+
});
|
25
|
+
}
|
26
|
+
/**
|
27
|
+
* Get the current theme.
|
28
|
+
*/
|
29
|
+
getTheme() {
|
30
|
+
return this.theme$;
|
31
|
+
}
|
32
|
+
/**
|
33
|
+
* Set the theme to dark mode.
|
34
|
+
*/
|
35
|
+
darkMode() {
|
36
|
+
this.themeStorage.setTheme(DaffTheme.Dark);
|
37
|
+
}
|
38
|
+
/**
|
39
|
+
* Set the theme to light mode.
|
40
|
+
*/
|
41
|
+
lightMode() {
|
42
|
+
this.themeStorage.setTheme(DaffTheme.Light);
|
43
|
+
}
|
44
|
+
/**
|
45
|
+
* Switch between themes.
|
46
|
+
*/
|
47
|
+
switchTheme() {
|
48
|
+
return this.theme === DaffTheme.Dark
|
49
|
+
? this.lightMode()
|
50
|
+
: this.darkMode();
|
51
|
+
}
|
52
|
+
}
|
53
|
+
/** @nocollapse */ /** @nocollapse */ DaffThemingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffThemingService, deps: [{ token: i1.DaffOsThemeService }, { token: i2.DaffThemeStorageService }], target: i0.ɵɵFactoryTarget.Injectable });
|
54
|
+
/** @nocollapse */ /** @nocollapse */ DaffThemingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffThemingService, providedIn: 'root' });
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffThemingService, decorators: [{
|
56
|
+
type: Injectable,
|
57
|
+
args: [{
|
58
|
+
providedIn: 'root',
|
59
|
+
}]
|
60
|
+
}], ctorParameters: function () { return [{ type: i1.DaffOsThemeService }, { type: i2.DaffThemeStorageService }]; } });
|
61
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGhlbWluZy5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9kZXNpZ24vc3JjL2NvcmUvdGhlbWluZy9zZXJ2aWNlcy90aGVtaW5nLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBRUwsYUFBYSxHQUNkLE1BQU0sTUFBTSxDQUFDO0FBQ2QsT0FBTyxFQUFFLEdBQUcsRUFBRSx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bWUkO1xuICB9XG5cbiAgLyoqXG4gICAqIFNldCB0aGUgdGhlbWUgdG8gZGFyayBtb2RlLlxuICAgKi9cbiAgZGFya01vZGUoKSB7XG5cdCAgdGhpcy50aGVtZVN0b3JhZ2Uuc2V0VGhlbWUoRGFmZlRoZW1lLkRhcmspO1xuICB9XG5cbiAgLyoqXG4gICAqIFNldCB0aGUgdGhlbWUgdG8gbGlnaHQgbW9kZS5cbiAgICovXG4gIGxpZ2h0TW9kZSgpIHtcblx0ICB0aGlzLnRoZW1lU3RvcmFnZS5zZXRUaGVtZShEYWZmVGhlbWUuTGlnaHQpO1xuICB9XG5cbiAgLyoqXG4gICAqIFN3aXRjaCBiZXR3ZWVuIHRoZW1lcy5cbiAgICovXG4gIHN3aXRjaFRoZW1lKCk6IHZvaWQge1xuXHQgIHJldHVybiB0aGlzLnRoZW1lID09PSBEYWZmVGhlbWUuRGFya1xuXHQgICAgPyB0aGlzLmxpZ2h0TW9kZSgpXG5cdCAgICA6IHRoaXMuZGFya01vZGUoKTtcbiAgfVxufVxuIl19
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* The possible states of a theme.
|
3
|
+
*/
|
4
|
+
export var DaffTheme;
|
5
|
+
(function (DaffTheme) {
|
6
|
+
DaffTheme["Light"] = "light";
|
7
|
+
DaffTheme["Dark"] = "dark";
|
8
|
+
DaffTheme["None"] = "none";
|
9
|
+
})(DaffTheme || (DaffTheme = {}));
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGhlbWUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Rlc2lnbi9zcmMvY29yZS90aGVtaW5nL3R5cGVzL3RoZW1lLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFOLElBQVksU0FJWDtBQUpELFdBQVksU0FBUztJQUNuQiw0QkFBZSxDQUFBO0lBQ2YsMEJBQWEsQ0FBQTtJQUNiLDBCQUFhLENBQUE7QUFDZixDQUFDLEVBSlcsU0FBUyxLQUFULFNBQVMsUUFJcEIiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIFRoZSBwb3NzaWJsZSBzdGF0ZXMgb2YgYSB0aGVtZS5cbiAqL1xuZXhwb3J0IGVudW0gRGFmZlRoZW1lIHtcbiAgTGlnaHQgPSAnbGlnaHQnLFxuICBEYXJrID0gJ2RhcmsnLFxuICBOb25lID0gJ25vbmUnXG59XG4iXX0=
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
export * from './public_api';
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGFmZm9kaWwtZGVzaWduLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbGlicy9kZXNpZ24vc3JjL2RhZmZvZGlsLWRlc2lnbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpY19hcGknO1xuIl19
|
File without changes
|
File without changes
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { ChangeDetectionStrategy, Component, } from '@angular/core';
|
2
|
+
import { faMobile } from '@fortawesome/free-solid-svg-icons';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
import * as i1 from "@daffodil/design";
|
5
|
+
import * as i2 from "@fortawesome/angular-fontawesome";
|
6
|
+
export class CompactHeroComponent {
|
7
|
+
constructor() {
|
8
|
+
this.faMobile = faMobile;
|
9
|
+
}
|
10
|
+
}
|
11
|
+
/** @nocollapse */ /** @nocollapse */ CompactHeroComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CompactHeroComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
12
|
+
/** @nocollapse */ /** @nocollapse */ CompactHeroComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: CompactHeroComponent, selector: "compact-hero", ngImport: i0, template: "<daff-hero [compact]=\"true\">\n\t<div class=\"daff-compact-hero__icon\" daffHeroIcon>\n\t\t<fa-icon [icon]=\"faMobile\"></fa-icon>\n\t</div>\n\t<p daffHeroTagline>Frontend framework for ecommerce PWAs</p>\n\t<h1 daffHeroTitle>Daffodil: The next great leap in ecommerce.</h1>\n\t<h2 daffHeroSubtitle>\n\t\t<p>Daffodil provides everything you need to create powerful and flexible ecommerce experiences.</p>\n\t\t<p>With Daffodil, ambitious businesses are able to achieve more while minimizing development and maintenance costs.</p>\n\t</h2>\n\t<div daffHeroBody>\n\t\t<a href=\"https://www.daff.io\" target=\"_blank\" daff-button>Get Started</a>\n\t</div>\n</daff-hero>", styles: [".daff-compact-hero__icon{display:flex;background:rgba(var(--daff-theme-rgb),.2);border-radius:50%;color:var(--daff-theme-contrast-rgb);width:48px;height:48px;justify-content:center;align-items:center;padding:12px 0}\n"], components: [{ type: i1.DaffHeroComponent, selector: "daff-hero", inputs: ["color", "compact", "textAlignment", "layout", "size"] }, { type: i2.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }, { type: i1.DaffButtonComponent, selector: "button[daff-button],button[daff-stroked-button],button[daff-raised-button],button[daff-icon-button],button[daff-underline-button],a[daff-button],a[daff-stroked-button],a[daff-raised-button],a[daff-icon-button],a[daff-underline-button]", inputs: ["color", "size", "status"] }], directives: [{ type: i1.DaffHeroIconDirective, selector: "[daffHeroIcon]" }, { type: i1.DaffHeroTaglineDirective, selector: "[daffHeroTagline]" }, { type: i1.DaffHeroTitleDirective, selector: "[daffHeroTitle]" }, { type: i1.DaffHeroSubtitleDirective, selector: "[daffHeroSubtitle]" }, { type: i1.DaffHeroBodyDirective, selector: "[daffHeroBody]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
13
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CompactHeroComponent, decorators: [{
|
14
|
+
type: Component,
|
15
|
+
args: [{ selector: 'compact-hero', changeDetection: ChangeDetectionStrategy.OnPush, template: "<daff-hero [compact]=\"true\">\n\t<div class=\"daff-compact-hero__icon\" daffHeroIcon>\n\t\t<fa-icon [icon]=\"faMobile\"></fa-icon>\n\t</div>\n\t<p daffHeroTagline>Frontend framework for ecommerce PWAs</p>\n\t<h1 daffHeroTitle>Daffodil: The next great leap in ecommerce.</h1>\n\t<h2 daffHeroSubtitle>\n\t\t<p>Daffodil provides everything you need to create powerful and flexible ecommerce experiences.</p>\n\t\t<p>With Daffodil, ambitious businesses are able to achieve more while minimizing development and maintenance costs.</p>\n\t</h2>\n\t<div daffHeroBody>\n\t\t<a href=\"https://www.daff.io\" target=\"_blank\" daff-button>Get Started</a>\n\t</div>\n</daff-hero>", styles: [".daff-compact-hero__icon{display:flex;background:rgba(var(--daff-theme-rgb),.2);border-radius:50%;color:var(--daff-theme-contrast-rgb);width:48px;height:48px;justify-content:center;align-items:center;padding:12px 0}\n"] }]
|
16
|
+
}] });
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcGFjdC1oZXJvLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZGVzaWduL2hlcm8vZXhhbXBsZXMvc3JjL2NvbXBhY3QtaGVyby9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iIHRhcmdldD1cIl9ibGFua1wiIGRhZmYtYnV0dG9uPkdldCBTdGFydGVkPC9hPlxuXHQ8L2Rpdj5cbjwvZGFmZi1oZXJvPiJdfQ==
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
2
|
+
import { NgModule } from '@angular/core';
|
3
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
4
|
+
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
5
|
+
import { DaffHeroModule, DaffButtonModule, } from '@daffodil/design';
|
6
|
+
import { CompactHeroComponent } from './compact-hero.component';
|
7
|
+
import * as i0 from "@angular/core";
|
8
|
+
export class CompactHeroModule {
|
9
|
+
}
|
10
|
+
/** @nocollapse */ /** @nocollapse */ CompactHeroModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CompactHeroModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
11
|
+
/** @nocollapse */ /** @nocollapse */ CompactHeroModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CompactHeroModule, declarations: [CompactHeroComponent], imports: [CommonModule,
|
12
|
+
ReactiveFormsModule,
|
13
|
+
DaffHeroModule,
|
14
|
+
DaffButtonModule,
|
15
|
+
FontAwesomeModule], exports: [CompactHeroComponent] });
|
16
|
+
/** @nocollapse */ /** @nocollapse */ CompactHeroModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CompactHeroModule, imports: [[
|
17
|
+
CommonModule,
|
18
|
+
ReactiveFormsModule,
|
19
|
+
DaffHeroModule,
|
20
|
+
DaffButtonModule,
|
21
|
+
FontAwesomeModule,
|
22
|
+
]] });
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CompactHeroModule, decorators: [{
|
24
|
+
type: NgModule,
|
25
|
+
args: [{
|
26
|
+
declarations: [
|
27
|
+
CompactHeroComponent,
|
28
|
+
],
|
29
|
+
imports: [
|
30
|
+
CommonModule,
|
31
|
+
ReactiveFormsModule,
|
32
|
+
DaffHeroModule,
|
33
|
+
DaffButtonModule,
|
34
|
+
FontAwesomeModule,
|
35
|
+
],
|
36
|
+
exports: [
|
37
|
+
CompactHeroComponent,
|
38
|
+
],
|
39
|
+
}]
|
40
|
+
}] });
|
41
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcGFjdC1oZXJvLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZGVzaWduL2hlcm8vZXhhbXBsZXMvc3JjL2NvbXBhY3QtaGVyby9jb21wYWN0LWhlcm8ubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ3JELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGtDQUFrQyxDQUFDO0FBRXJFLE9BQU8sRUFDTCxjQUFjLEVBQ2QsZ0JBQWdCLEdBQ2pCLE1BQU0sa0JBQWtCLENBQUM7QUFFMUIsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sMEJBQTBCLENBQUM7O0FBa0JoRSxNQUFNLE9BQU8saUJBQWlCOztvSkFBakIsaUJBQWlCO3FKQUFqQixpQkFBaUIsaUJBZDFCLG9CQUFvQixhQUdwQixZQUFZO1FBQ1osbUJBQW1CO1FBQ25CLGNBQWM7UUFDZCxnQkFBZ0I7UUFFaEIsaUJBQWlCLGFBR2pC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mVGb3Jtc01vZHVsZSxcbiAgICBEYWZmSGVyb01vZHVsZSxcbiAgICBEYWZmQnV0dG9uTW9kdWxlLFxuXG4gICAgRm9udEF3ZXNvbWVNb2R1bGUsXG4gIF0sXG4gIGV4cG9ydHM6IFtcbiAgICBDb21wYWN0SGVyb0NvbXBvbmVudCxcbiAgXSxcbn0pXG5leHBvcnQgY2xhc3MgQ29tcGFjdEhlcm9Nb2R1bGUgeyB9XG4iXX0=
|
File without changes
|
File without changes
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { ChangeDetectionStrategy, Component, } from '@angular/core';
|
2
|
+
import { FormControl } from '@angular/forms';
|
3
|
+
import { faMobile } from '@fortawesome/free-solid-svg-icons';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
import * as i1 from "@daffodil/design";
|
6
|
+
import * as i2 from "@fortawesome/angular-fontawesome";
|
7
|
+
import * as i3 from "@angular/forms";
|
8
|
+
import * as i4 from "@angular/common";
|
9
|
+
export class HeroTextAlignmentComponent {
|
10
|
+
constructor() {
|
11
|
+
this.faMobile = faMobile;
|
12
|
+
this.textAlignControl = new FormControl('');
|
13
|
+
this.options = [
|
14
|
+
{ value: '', label: 'Default' },
|
15
|
+
{ value: 'left', label: 'Left' },
|
16
|
+
{ value: 'center', label: 'Center' },
|
17
|
+
{ value: 'right', label: 'Right' },
|
18
|
+
];
|
19
|
+
}
|
20
|
+
}
|
21
|
+
/** @nocollapse */ /** @nocollapse */ HeroTextAlignmentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: HeroTextAlignmentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
22
|
+
/** @nocollapse */ /** @nocollapse */ HeroTextAlignmentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: HeroTextAlignmentComponent, selector: "hero-text-alignment", ngImport: i0, template: "<daff-hero [textAlignment]=\"textAlignControl.value\">\n\t<daff-container size=\"md\">\n\t\t<div class=\"daff-hero-text-alignment__icon\" daffHeroIcon>\n\t\t\t<fa-icon [icon]=\"faMobile\"></fa-icon>\n\t\t</div>\n\t\t<p daffHeroTagline>Frontend framework for ecommerce PWAs</p>\n\t\t<h1 daffHeroTitle>Daffodil: The next great leap in ecommerce.</h1>\n\t\t<h2 daffHeroSubtitle>\n\t\t\t<p>Daffodil provides everything you need to create powerful and flexible ecommerce experiences.</p>\n\t\t\t<p>With Daffodil, ambitious businesses are able to achieve more while minimizing development and maintenance costs.</p>\n\t\t</h2>\n\t\t<div daffHeroBody>\n\t\t\t<a href=\"https://www.daff.io\" target=\"_blank\" daff-button>Get Started</a>\n\t\t</div>\n\t</daff-container>\n</daff-hero>\n\n<select [formControl]=\"textAlignControl\">\n\t<option *ngFor=\"let option of options\" [value]=\"option.value\">{{ option.label }}</option>\n</select>", styles: [".daff-hero-text-alignment__icon{display:flex;background:rgba(var(--daff-theme-rgb),.2);border-radius:50%;color:var(--daff-theme-contrast-rgb);width:48px;height:48px;justify-content:center;align-items:center;padding:12px 0}\n"], components: [{ type: i1.DaffHeroComponent, selector: "daff-hero", inputs: ["color", "compact", "textAlignment", "layout", "size"] }, { type: i1.DaffContainerComponent, selector: "daff-container", inputs: ["size"] }, { type: i2.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }, { type: i1.DaffButtonComponent, selector: "button[daff-button],button[daff-stroked-button],button[daff-raised-button],button[daff-icon-button],button[daff-underline-button],a[daff-button],a[daff-stroked-button],a[daff-raised-button],a[daff-icon-button],a[daff-underline-button]", inputs: ["color", "size", "status"] }], directives: [{ type: i1.DaffHeroIconDirective, selector: "[daffHeroIcon]" }, { type: i1.DaffHeroTaglineDirective, selector: "[daffHeroTagline]" }, { type: i1.DaffHeroTitleDirective, selector: "[daffHeroTitle]" }, { type: i1.DaffHeroSubtitleDirective, selector: "[daffHeroSubtitle]" }, { type: i1.DaffHeroBodyDirective, selector: "[daffHeroBody]" }, { type: i3.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i3.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: HeroTextAlignmentComponent, decorators: [{
|
24
|
+
type: Component,
|
25
|
+
args: [{ selector: 'hero-text-alignment', changeDetection: ChangeDetectionStrategy.OnPush, template: "<daff-hero [textAlignment]=\"textAlignControl.value\">\n\t<daff-container size=\"md\">\n\t\t<div class=\"daff-hero-text-alignment__icon\" daffHeroIcon>\n\t\t\t<fa-icon [icon]=\"faMobile\"></fa-icon>\n\t\t</div>\n\t\t<p daffHeroTagline>Frontend framework for ecommerce PWAs</p>\n\t\t<h1 daffHeroTitle>Daffodil: The next great leap in ecommerce.</h1>\n\t\t<h2 daffHeroSubtitle>\n\t\t\t<p>Daffodil provides everything you need to create powerful and flexible ecommerce experiences.</p>\n\t\t\t<p>With Daffodil, ambitious businesses are able to achieve more while minimizing development and maintenance costs.</p>\n\t\t</h2>\n\t\t<div daffHeroBody>\n\t\t\t<a href=\"https://www.daff.io\" target=\"_blank\" daff-button>Get Started</a>\n\t\t</div>\n\t</daff-container>\n</daff-hero>\n\n<select [formControl]=\"textAlignControl\">\n\t<option *ngFor=\"let option of options\" [value]=\"option.value\">{{ option.label }}</option>\n</select>", styles: [".daff-hero-text-alignment__icon{display:flex;background:rgba(var(--daff-theme-rgb),.2);border-radius:50%;color:var(--daff-theme-contrast-rgb);width:48px;height:48px;justify-content:center;align-items:center;padding:12px 0}\n"] }]
|
26
|
+
}] });
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVyby10ZXh0LWFsaWdubWVudC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Rlc2lnbi9oZXJvL2V4YW1wbGVzL3NyYy9oZXJvLXRleHQtYWxpZ25tZW50L2hlcm8tdGV4dC1hbGlnbm1lbnQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9kZXNpZ24vaGVyby9leGFtcGxlcy9zcmMvaGVyby10ZXh0LWFsaWdubWVudC9oZXJvLXRleHQtYWxpZ25tZW50LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCx1QkFBdUIsRUFDdkIsU0FBUyxHQUNWLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUM3QyxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sbUNBQW1DLENBQUM7Ozs7OztBQVM3RCxNQUFNLE9BQU8sMEJBQTBCO0lBUHZDO1FBUUUsYUFBUSxHQUFHLFFBQVEsQ0FBQztRQUNwQixxQkFBZ0IsR0FBZ0IsSUFBSSxXQUFXLENBQUMsRUFBRSxDQUFDLENBQUM7UUFFcEQsWUFBTyxHQUFHO1lBQ1IsRUFBRSxLQUFLLEVBQUUsRUFBRSxFQUFFLEtBQUssRUFBRSxTQUFTLEVBQUU7WUFDL0IsRUFBRSxLQUFLLEVBQUUsTUFBTSx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ibGUgdG8gYWNoaWV2ZSBtb3JlIHdoaWxlIG1pbmltaXppbmcgZGV2ZWxvcG1lbnQgYW5kIG1haW50ZW5hbmNlIGNvc3RzLjwvcD5cblx0XHQ8L2gyPlxuXHRcdDxkaXYgZGFmZkhlcm9Cb2R5PlxuXHRcdFx0PGEgaHJlZj1cImh0dHBzOi8vd3d3LmRhZmYuaW9cIiB0YXJnZXQ9XCJfYmxhbmtcIiBkYWZmLWJ1dHRvbj5HZXQgU3RhcnRlZDwvYT5cblx0XHQ8L2Rpdj5cblx0PC9kYWZmLWNvbnRhaW5lcj5cbjwvZGFmZi1oZXJvPlxuXG48c2VsZWN0IFtmb3JtQ29udHJvbF09XCJ0ZXh0QWxpZ25Db250cm9sXCI+XG5cdDxvcHRpb24gKm5nRm9yPVwibGV0IG9wdGlvbiBvZiBvcHRpb25zXCIgW3ZhbHVlXT1cIm9wdGlvbi52YWx1ZVwiPnt7IG9wdGlvbi5sYWJlbCB9fTwvb3B0aW9uPlxuPC9zZWxlY3Q+Il19
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
2
|
+
import { NgModule } from '@angular/core';
|
3
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
4
|
+
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
5
|
+
import { DaffHeroModule, DaffContainerModule, DaffButtonModule, } from '@daffodil/design';
|
6
|
+
import { HeroTextAlignmentComponent } from './hero-text-alignment.component';
|
7
|
+
import * as i0 from "@angular/core";
|
8
|
+
export class HeroTextAlignmentModule {
|
9
|
+
}
|
10
|
+
/** @nocollapse */ /** @nocollapse */ HeroTextAlignmentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: HeroTextAlignmentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
11
|
+
/** @nocollapse */ /** @nocollapse */ HeroTextAlignmentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: HeroTextAlignmentModule, declarations: [HeroTextAlignmentComponent], imports: [CommonModule,
|
12
|
+
ReactiveFormsModule,
|
13
|
+
DaffHeroModule,
|
14
|
+
DaffContainerModule,
|
15
|
+
DaffButtonModule,
|
16
|
+
FontAwesomeModule] });
|
17
|
+
/** @nocollapse */ /** @nocollapse */ HeroTextAlignmentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: HeroTextAlignmentModule, imports: [[
|
18
|
+
CommonModule,
|
19
|
+
ReactiveFormsModule,
|
20
|
+
DaffHeroModule,
|
21
|
+
DaffContainerModule,
|
22
|
+
DaffButtonModule,
|
23
|
+
FontAwesomeModule,
|
24
|
+
]] });
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: HeroTextAlignmentModule, decorators: [{
|
26
|
+
type: NgModule,
|
27
|
+
args: [{
|
28
|
+
declarations: [
|
29
|
+
HeroTextAlignmentComponent,
|
30
|
+
],
|
31
|
+
imports: [
|
32
|
+
CommonModule,
|
33
|
+
ReactiveFormsModule,
|
34
|
+
DaffHeroModule,
|
35
|
+
DaffContainerModule,
|
36
|
+
DaffButtonModule,
|
37
|
+
FontAwesomeModule,
|
38
|
+
],
|
39
|
+
}]
|
40
|
+
}] });
|
41
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVyby10ZXh0LWFsaWdubWVudC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Rlc2lnbi9oZXJvL2V4YW1wbGVzL3NyYy9oZXJvLXRleHQtYWxpZ25tZW50L2hlcm8tdGV4dC1hbGlnbm1lbnQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUU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