@daffodil/design 0.39.13 → 0.40.1
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 +3 -0
- package/atoms/form/quantity-field/quantity-field.module.d.ts +11 -0
- package/atoms/form/quantity-field/quantity-input/quantity-input.component.d.ts +3 -0
- package/atoms/form/quantity-field/quantity-select/quantity-select.component.d.ts +3 -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 +9 -9
- 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 +133 -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 +99 -0
- package/esm2020/atoms/form/quantity-field/quantity-select/quantity-select.component.mjs +81 -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/{esm2015/atoms/progress-indicator/animation/progress-indicator-animation.js → esm2020/atoms/progress-indicator/animation/progress-indicator-animation.mjs} +0 -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/{esm2015/core/article-encapsulated/article-encapsulated-mixin.js → esm2020/core/article-encapsulated/article-encapsulated-mixin.mjs} +0 -0
- package/{esm2015/core/article-encapsulated/public_api.js → esm2020/core/article-encapsulated/public_api.mjs} +0 -0
- package/{esm2015/core/breakpoints/breakpoints.js → esm2020/core/breakpoints/breakpoints.mjs} +0 -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/{esm2015/core/colorable/colorable.js → esm2020/core/colorable/colorable.mjs} +0 -0
- package/{esm2015/core/colorable/public_api.js → esm2020/core/colorable/public_api.mjs} +0 -0
- package/{esm2015/core/compactable/compactable-mixin.js → esm2020/core/compactable/compactable-mixin.mjs} +0 -0
- package/{esm2015/core/compactable/compactable.js → esm2020/core/compactable/compactable.mjs} +0 -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/{esm2015/core/manage-container-layout/manage-container-layout-mixin.js → esm2020/core/manage-container-layout/manage-container-layout-mixin.mjs} +0 -0
- package/{esm2015/core/manage-container-layout/public_api.js → esm2020/core/manage-container-layout/public_api.mjs} +0 -0
- package/{esm2015/core/mutable/mutable.js → esm2020/core/mutable/mutable.mjs} +0 -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/{esm2015/core/sizeable/sizeable.js → esm2020/core/sizeable/sizeable.mjs} +0 -0
- package/{esm2015/core/skeletonable/skeletonable.js → esm2020/core/skeletonable/skeletonable.mjs} +0 -0
- package/esm2020/core/statusable/statusable-mixin.mjs +32 -0
- package/{esm2015/core/statusable/statusable.js → esm2020/core/statusable/statusable.mjs} +0 -0
- package/esm2020/core/text-alignable/text-alignable-mixin.mjs +35 -0
- package/{esm2015/core/text-alignable/text-alignable.js → esm2020/core/text-alignable/text-alignable.mjs} +0 -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 +65 -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/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/{esm2015/molecules/media-gallery/media-gallery-registration.interface.js → esm2020/molecules/media-gallery/media-gallery-registration.interface.mjs} +0 -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/{esm2015/molecules/media-gallery/thumbnail/thumbnail-registration.interface.js → esm2020/molecules/media-gallery/thumbnail/thumbnail-registration.interface.mjs} +0 -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/{esm2015/molecules/modal/animations/modal-animation.js → esm2020/molecules/modal/animations/modal-animation.mjs} +0 -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/{esm2015/molecules/modal/modal.js → esm2020/molecules/modal/modal.mjs} +0 -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/{esm2015/molecules/sidebar/animation/sidebar-animation.js → esm2020/molecules/sidebar/animation/sidebar-animation.mjs} +0 -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/basic-quantity-field.component.mjs +17 -0
- package/esm2020/quantity-field/examples/basic/basic-quantity-field.module.mjs +37 -0
- package/esm2020/quantity-field/examples/customRange/custom-range-quantity-field.component.mjs +17 -0
- package/esm2020/quantity-field/examples/customRange/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/disabled-quantity-field.component.mjs +17 -0
- package/esm2020/quantity-field/examples/disabled/disabled-quantity-field.module.mjs +37 -0
- package/{esm2015/quantity-field/examples/examples.js → esm2020/quantity-field/examples/examples.mjs} +0 -0
- package/{esm2015/quantity-field/examples/index.js → esm2020/quantity-field/examples/index.mjs} +0 -0
- package/esm2020/quantity-field/examples/public_api.mjs +10 -0
- package/esm2020/quantity-field/examples/selectMax/select-max-quantity-field.component.mjs +17 -0
- package/esm2020/quantity-field/examples/selectMax/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-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 +5393 -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-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 +5380 -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/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 +154 -14
- 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/basic-quantity-field.component.d.ts +3 -0
- package/quantity-field/examples/basic/basic-quantity-field.module.d.ts +8 -0
- package/quantity-field/examples/customRange/custom-range-quantity-field.component.d.ts +3 -0
- package/quantity-field/examples/customRange/custom-range-quantity-field.module.d.ts +8 -0
- package/quantity-field/examples/daffodil-design-quantity-field-examples.d.ts +1 -4
- package/quantity-field/examples/disabled/disabled-quantity-field.component.d.ts +3 -0
- package/quantity-field/examples/disabled/disabled-quantity-field.module.d.ts +8 -0
- package/quantity-field/examples/package.json +5 -6
- package/quantity-field/examples/public_api.d.ts +4 -0
- package/quantity-field/examples/selectMax/select-max-quantity-field.component.d.ts +3 -0
- package/quantity-field/examples/selectMax/select-max-quantity-field.module.d.ts +8 -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 +25 -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 +21 -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/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/colorable/colorable-mixin.js +0 -43
- 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/statusable/statusable-mixin.js +0 -33
- package/esm2015/core/text-alignable/text-alignable-mixin.js +0 -36
- 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.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.directive.js +0 -79
- 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.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/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/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/daffodil-design-quantity-field-examples.metadata.json +0 -1
- package/radio/examples/daffodil-design-radio-examples.metadata.json +0 -1
@@ -0,0 +1,24 @@
|
|
1
|
+
import { Directive, HostBinding, } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
/**
|
4
|
+
*
|
5
|
+
* Prefix can be used to place content before another piece of content in components like
|
6
|
+
* `daff-form-field`, `daff-solo-field`, and `daff-list`.
|
7
|
+
*/
|
8
|
+
export class DaffPrefixDirective {
|
9
|
+
constructor() {
|
10
|
+
this.class = true;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
/** @nocollapse */ /** @nocollapse */ DaffPrefixDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffPrefixDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
14
|
+
/** @nocollapse */ /** @nocollapse */ DaffPrefixDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", type: DaffPrefixDirective, selector: "[daffPrefix]", host: { properties: { "class.daff-prefix": "this.class" } }, ngImport: i0 });
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffPrefixDirective, decorators: [{
|
16
|
+
type: Directive,
|
17
|
+
args: [{
|
18
|
+
selector: '[daffPrefix]',
|
19
|
+
}]
|
20
|
+
}], propDecorators: { class: [{
|
21
|
+
type: HostBinding,
|
22
|
+
args: ['class.daff-prefix']
|
23
|
+
}] } });
|
24
|
+
//# sourceMappingURL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gY2xhc3MgPSB0cnVlO1xufVxuIl19
|
File without changes
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { ContentChild, Directive, } from '@angular/core';
|
2
|
+
import { DaffPrefixDirective } from '../prefix.directive';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
/**
|
5
|
+
* A mixin for giving a component the ability to place content before another piece of content.
|
6
|
+
*/
|
7
|
+
export function daffPrefixableMixin(Base) {
|
8
|
+
class PrefixableDirective extends Base {
|
9
|
+
constructor(...args) {
|
10
|
+
super(...args);
|
11
|
+
}
|
12
|
+
}
|
13
|
+
/** @nocollapse */ /** @nocollapse */ PrefixableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: PrefixableDirective, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
14
|
+
/** @nocollapse */ /** @nocollapse */ PrefixableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", type: PrefixableDirective, queries: [{ propertyName: "_prefix", first: true, predicate: DaffPrefixDirective, descendants: true, static: true }], usesInheritance: true, ngImport: i0 });
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: PrefixableDirective, decorators: [{
|
16
|
+
type: Directive
|
17
|
+
}], ctorParameters: function () { return [{ type: undefined }]; }, propDecorators: { _prefix: [{
|
18
|
+
type: ContentChild,
|
19
|
+
args: [DaffPrefixDirective, { static: true }]
|
20
|
+
}] } });
|
21
|
+
return PrefixableDirective;
|
22
|
+
}
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJlZml4YWJsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZGVzaWduL3NyYy9jb3JlL3ByZWZpeC1zdWZmaXgvcHJlZml4YWJsZS9wcmVmaXhhYmxlLnRz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G9yPihCYXNlOiBUKSB7XG4gIEBEaXJlY3RpdmUoKVxuICBjbGFzcyBQcmVmaXhhYmxlRGlyZWN0aXZlIGV4dGVuZHMgQmFzZSB7XG5cbiAgICBAQ29udGVudENoaWxkKERhZmZQcmVmaXhEaXJlY3RpdmUsIHsgc3RhdGljOiB0cnVlIH0pIF9wcmVmaXg6IERhZmZQcmVmaXhEaXJlY3RpdmU7XG5cbiAgICBjb25zdHJ1Y3RvciguLi5hcmdzOiBhbnlbXSkge1xuICAgICAgc3VwZXIoLi4uYXJncyk7XG4gICAgfVxuICB9XG5cbiAgcmV0dXJuIFByZWZpeGFibGVEaXJlY3RpdmU7XG59XG4iXX0=
|
package/{esm2015/core/prefix-suffix/public_api.js → esm2020/core/prefix-suffix/public_api.mjs}
RENAMED
File without changes
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { Directive, HostBinding, } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
/**
|
4
|
+
*
|
5
|
+
* Prefix can be used to place content after another piece of content in components like
|
6
|
+
* `daff-form-field`, `daff-solo-field`, and `daff-list`.
|
7
|
+
*/
|
8
|
+
export class DaffSuffixDirective {
|
9
|
+
constructor() {
|
10
|
+
this.class = true;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
/** @nocollapse */ /** @nocollapse */ DaffSuffixDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffSuffixDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
14
|
+
/** @nocollapse */ /** @nocollapse */ DaffSuffixDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", type: DaffSuffixDirective, selector: "[daffSuffix]", host: { properties: { "class.daff-suffix": "this.class" } }, ngImport: i0 });
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffSuffixDirective, decorators: [{
|
16
|
+
type: Directive,
|
17
|
+
args: [{
|
18
|
+
selector: '[daffSuffix]',
|
19
|
+
}]
|
20
|
+
}], propDecorators: { class: [{
|
21
|
+
type: HostBinding,
|
22
|
+
args: ['class.daff-suffix']
|
23
|
+
}] } });
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3VmZml4LmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvZGVzaWduL3NyYy9jb3JlL3ByZWZpeC1zdWZmaXgvc3VmZml4LmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUNULFdBQVcsR0FDWixNQUFNLGVBQWUsQ0FBQzs7QUFFdkI7Ozs7R0FJRztBQUtILE1BQU0sT0FBTyxtQkFBbUI7SUFKaEM7UUFNb0MsVUFBSyxHQUFHLElBQUksQ0FBQztLQUNoRDs7c0pBSFksbUJBQW1COzBJQUFuQixtQkFBbUI7MkZBQW5CLG1CQUFtQjtrQkFKL0IsU0FBUzttQkFBQztvQkFDVCxRQUFRLEVBQUUsY0FBYztpQkFDekI7OEJBSW1DLEtBQUs7c0JBQXRDLFdBQVc7dUJBQUMsbUJBQW1CIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtcbiAgRGlyZWN0aXZlLFxuICBIb3N0QmluZGluZyxcbn0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbi8qKlxuICpcbiAqIFByZWZpeCBjYW4gYmUgdXNlZCB0byBwbGFjZSBjb250ZW50IGFmdGVyIGFub3RoZXIgcGllY2Ugb2YgY29udGVudCBpbiBjb21wb25lbnRzIGxpa2VcbiAqIGBkYWZmLWZvcm0tZmllbGRgLCBgZGFmZi1zb2xvLWZpZWxkYCwgYW5kIGBkYWZmLWxpc3RgLlxuICovXG5ARGlyZWN0aXZlKHtcbiAgc2VsZWN0b3I6ICdbZGFmZlN1ZmZpeF0nLFxufSlcblxuZXhwb3J0IGNsYXNzIERhZmZTdWZmaXhEaXJlY3RpdmUge1xuXG4gIEBIb3N0QmluZGluZygnY2xhc3MuZGFmZi1zdWZmaXgnKSBjbGFzcyA9IHRydWU7XG59XG4iXX0=
|
File without changes
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { ContentChild, Directive, } from '@angular/core';
|
2
|
+
import { DaffSuffixDirective } from '../suffix.directive';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
/**
|
5
|
+
* A mixin for giving a component the ability to place content after another piece of content.
|
6
|
+
*/
|
7
|
+
export function daffSuffixableMixin(Base) {
|
8
|
+
class SuffixableDirective extends Base {
|
9
|
+
constructor(...args) {
|
10
|
+
super(...args);
|
11
|
+
}
|
12
|
+
}
|
13
|
+
/** @nocollapse */ /** @nocollapse */ SuffixableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: SuffixableDirective, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
14
|
+
/** @nocollapse */ /** @nocollapse */ SuffixableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", type: SuffixableDirective, queries: [{ propertyName: "_suffix", first: true, predicate: DaffSuffixDirective, descendants: true, static: true }], usesInheritance: true, ngImport: i0 });
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: SuffixableDirective, decorators: [{
|
16
|
+
type: Directive
|
17
|
+
}], ctorParameters: function () { return [{ type: undefined }]; }, propDecorators: { _suffix: [{
|
18
|
+
type: ContentChild,
|
19
|
+
args: [DaffSuffixDirective, { static: true }]
|
20
|
+
}] } });
|
21
|
+
return SuffixableDirective;
|
22
|
+
}
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3VmZml4YWJsZS5qcyIs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BsYWNlIGNvbnRlbnQgYWZ0ZXIgYW5vdGhlciBwaWVjZSBvZiBjb250ZW50LlxuICovXG5leHBvcnQgZnVuY3Rpb24gZGFmZlN1ZmZpeGFibGVNaXhpbjxUIGV4dGVuZHMgQ29uc3RydWN0b3I+KEJhc2U6IFQpIHtcbiAgQERpcmVjdGl2ZSgpXG4gIGNsYXNzIFN1ZmZpeGFibGVEaXJlY3RpdmUgZXh0ZW5kcyBCYXNlIHtcblxuICAgIEBDb250ZW50Q2hpbGQoRGFmZlN1ZmZpeERpcmVjdGl2ZSwgeyBzdGF0aWM6IHRydWUgfSkgX3N1ZmZpeDogRGFmZlN1ZmZpeERpcmVjdGl2ZTtcblxuICAgIGNvbnN0cnVjdG9yKC4uLmFyZ3M6IGFueVtdKSB7XG4gICAgICBzdXBlciguLi5hcmdzKTtcbiAgICB9XG4gIH1cblxuICByZXR1cm4gU3VmZml4YWJsZURpcmVjdGl2ZTtcbn1cbiJdfQ==
|
@@ -0,0 +1,14 @@
|
|
1
|
+
// Core
|
2
|
+
export * from './prefix-suffix/public_api';
|
3
|
+
export * from './colorable/colorable';
|
4
|
+
export * from './breakpoints/breakpoints';
|
5
|
+
export * from './constructor/constructor';
|
6
|
+
export * from './statusable/statusable';
|
7
|
+
export * from './skeletonable/skeletonable';
|
8
|
+
export * from './mutable/mutable';
|
9
|
+
export * from './text-alignable/text-alignable';
|
10
|
+
export * from './compactable/public_api';
|
11
|
+
export * from './manage-container-layout/public_api';
|
12
|
+
export * from './article-encapsulated/public_api';
|
13
|
+
export * from './theming/public_api';
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYnMvZGVzaWduL3NyYy9jb3JlL3B1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTztBQUNQ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nQgKiBmcm9tICcuL3RoZW1pbmcvcHVibGljX2FwaSc7XG4iXX0=
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { Input, } from '@angular/core';
|
2
|
+
export function daffSizeMixin(Base, defaultSize) {
|
3
|
+
class DaffSizeMixinClass extends Base {
|
4
|
+
constructor(...args) {
|
5
|
+
super(...args);
|
6
|
+
this.size = defaultSize;
|
7
|
+
}
|
8
|
+
get size() {
|
9
|
+
return this._size;
|
10
|
+
}
|
11
|
+
set size(value) {
|
12
|
+
// Handles the default size
|
13
|
+
const incomingSize = value || defaultSize;
|
14
|
+
if (incomingSize !== this._size) { //Only run the dom-render if a change occurs
|
15
|
+
//Remove the old size
|
16
|
+
if (this._size) {
|
17
|
+
this._renderer.removeClass(this._elementRef.nativeElement, `daff-${this._size}`);
|
18
|
+
}
|
19
|
+
if (incomingSize) {
|
20
|
+
this._renderer.addClass(this._elementRef.nativeElement, `daff-${incomingSize}`);
|
21
|
+
}
|
22
|
+
this._size = incomingSize;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
;
|
27
|
+
// TODO: ugly workaround for https://github.com/microsoft/TypeScript/issues/7342#issuecomment-624298133
|
28
|
+
Input()(DaffSizeMixinClass.prototype, 'size');
|
29
|
+
return DaffSizeMixinClass;
|
30
|
+
}
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2l6ZWFibGUtbWl4aW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2Rlc2lnbi9zcmMvY29yZS9zaXplYWJsZS9zaXplYWJsZS1taXhpbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBRUwsS0FBSyxHQUVOLE1BQU0sZUFBZSxDQUFDO0FBVXZCLE1BQU0sVUFDTixhQUFhLENBQStGLElBQU8sRUFBRSxXQUFlO0lBQ2xJLE1BQU0sa0JBQ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UmVtb3ZlIHRoZSBvbGQgc2l6ZVxuICAgICAgICAgICAgaWYodGhpcy5fc2l6ZSl7XG4gICAgICAgICAgICAgIHRoaXMuX3JlbmRlcmVyLnJlbW92ZUNsYXNzKHRoaXMuX2VsZW1lbnRSZWYubmF0aXZlRWxlbWVudCwgYGRhZmYtJHt0aGlzLl9zaXplfWApO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBpZihpbmNvbWluZ1NpemUpe1xuICAgICAgICAgICAgICB0aGlzLl9yZW5kZXJlci5hZGRDbGFzcyh0aGlzLl9lbGVtZW50UmVmLm5hdGl2ZUVsZW1lbnQsIGBkYWZmLSR7aW5jb21pbmdTaXplfWApO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICB0aGlzLl9zaXplID0gaW5jb21pbmdTaXplO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIGNvbnN0cnVjdG9yKC4uLmFyZ3M6IGFueVtdKSB7XG4gICAgICAgICAgc3VwZXIoLi4uYXJncyk7XG4gICAgICAgICAgdGhpcy5zaXplID0gZGVmYXVsdFNpemU7XG4gICAgICAgIH1cbiAgfTtcblxuICAvLyBUT0RPOiB1Z2x5IHdvcmthcm91bmQgZm9yIGh0dHBzOi8vZ2l0aHViLmNvbS9taWNyb3NvZnQvVHlwZVNjcmlwdC9pc3N1ZXMvNzM0MiNpc3N1ZWNvbW1lbnQtNjI0Mjk4MTMzXG4gIElucHV0KCkoRGFmZlNpemVNaXhpbkNsYXNzLnByb3RvdHlwZSwgJ3NpemUnKTtcblxuICByZXR1cm4gRGFmZlNpemVNaXhpbkNsYXNzO1xufVxuIl19
|
File without changes
|
package/{esm2015/core/skeletonable/skeletonable.js → esm2020/core/skeletonable/skeletonable.mjs}
RENAMED
File without changes
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { Input, } from '@angular/core';
|
2
|
+
export function daffStatusMixin(Base, defaultStatus) {
|
3
|
+
class DaffStatusMixinClass extends Base {
|
4
|
+
constructor(...args) {
|
5
|
+
super(...args);
|
6
|
+
this.status = defaultStatus;
|
7
|
+
}
|
8
|
+
get status() {
|
9
|
+
return this._status;
|
10
|
+
}
|
11
|
+
set status(value) {
|
12
|
+
// Handles the default status
|
13
|
+
const incomingStatus = value || defaultStatus;
|
14
|
+
if (incomingStatus === this._status) { // Only run the dom-render if a change occurs
|
15
|
+
return;
|
16
|
+
}
|
17
|
+
// Removes the old status
|
18
|
+
if (this._status) {
|
19
|
+
this._renderer.removeClass(this._elementRef.nativeElement, `daff-${this._status}`);
|
20
|
+
}
|
21
|
+
if (incomingStatus) {
|
22
|
+
this._renderer.addClass(this._elementRef.nativeElement, `daff-${incomingStatus}`);
|
23
|
+
}
|
24
|
+
this._status = incomingStatus;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
;
|
28
|
+
// TODO: ugly workaround for https://github.com/microsoft/TypeScript/issues/7342#issuecomment-624298133
|
29
|
+
Input()(DaffStatusMixinClass.prototype, 'status');
|
30
|
+
return DaffStatusMixinClass;
|
31
|
+
}
|
32
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhdHVzYWJsZS1taXhpbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvZGVzaWduL3NyYy9jb3JlL3N0YXR1c2FibGUvc3RhdHVzYWJsZS1taXhpbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBRUwsS0FBSyxHQUVOLE1BQU0sZUFBZSxDQUFDO0FBVXZCLE1BQU0sVUFDTixlQUFlLENBQXVDLElBQU8sRUFBRSxhQUEwQjtJQUN2RixNQUFNLG9CQUFxQixTQUFRLElBQUk7UUE0QnJDLFlBQVksR0FBRyxJQUFXO1lBQ3hCLEtBQUssQ0FBQyxHQUFHLElBQUksQ0FBQyxDQUFDO1lBQ2YsSUFBSSxDQUFDLE1BQU0sR0FB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ZlQ2xhc3ModGhpcy5fZWxlbWVudFJlZi5uYXRpdmVFbGVtZW50LCBgZGFmZi0ke3RoaXMuX3N0YXR1c31gKTtcbiAgICAgIH1cblxuICAgICAgaWYgKGluY29taW5nU3RhdHVzKSB7XG4gICAgICAgIHRoaXMuX3JlbmRlcmVyLmFkZENsYXNzKHRoaXMuX2VsZW1lbnRSZWYubmF0aXZlRWxlbWVudCwgYGRhZmYtJHtpbmNvbWluZ1N0YXR1c31gKTtcbiAgICAgIH1cblxuICAgICAgdGhpcy5fc3RhdHVzID0gaW5jb21pbmdTdGF0dXM7XG4gICAgfVxuXG4gICAgY29uc3RydWN0b3IoLi4uYXJnczogYW55W10pIHtcbiAgICAgIHN1cGVyKC4uLmFyZ3MpO1xuICAgICAgdGhpcy5zdGF0dXMgPSBkZWZhdWx0U3RhdHVzO1xuICAgIH1cbiAgfTtcblxuICAvLyBUT0RPOiB1Z2x5IHdvcmthcm91bmQgZm9yIGh0dHBzOi8vZ2l0aHViLmNvbS9taWNyb3NvZnQvVHlwZVNjcmlwdC9pc3N1ZXMvNzM0MiNpc3N1ZWNvbW1lbnQtNjI0Mjk4MTMzXG4gIElucHV0KCkoRGFmZlN0YXR1c01peGluQ2xhc3MucHJvdG90eXBlLCAnc3RhdHVzJyk7XG5cbiAgcmV0dXJuIERhZmZTdGF0dXNNaXhpbkNsYXNzO1xufVxuIl19
|
File without changes
|
@@ -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, 'textAlignment');
|
33
|
+
return DaffTextAlignableMixin;
|
34
|
+
}
|
35
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dC1hbGlnbmFibGUtbWl4aW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2Rlc2lnbi9zcmMvY29yZS90ZXh0LWFsaWduYWJsZS90ZXh0LWFsaWduYWJsZS1taXhpbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBRUwsS0FBSyxHQUVOLE1BQU0sZUFBZSxDQUFDO0FBVXZCLE1BQU0sVUFDTixzQkFBc0IsQ0FBdUMsSUFBTyxFQUFFLG9CQUF3QztJQUM1RyxNQUFNLHNCQUF1QixTQUFRLElBQUk7UUE4QnZDLFlBQVksR0FBRyxJQUFXO1lBQ3hCLEtBQUssQ0FBQyxHQUFHLElBQUksQ0FBQyxDQUFDO1lBQ2YsSUFBSSxDQUFDLGFBQWEsR0FBRyxvQkFBb0IsQ0FBQztRQUM1QyxDQUFDO1FBN0JEOztXQUVHO1FBQ0gsSUFBSS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,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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5pdGlhbGl6ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2Rlc2lnbi9zcmMvY29yZS90aGVtaW5nL2luaXRpYWxpemVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFFTCxlQUFlLEdBQ2hCLE1BQU0sZUFBZSxDQUFDO0FBRXZCLE9BQU8sRUFBRSwyQkFBMkIsRUFBRSxNQUFNLG9EQUFvRCxDQUFDO0FBRWpHLE1BQU0sQ0FBQyxNQUFNLGVBQWUsR0FBRyxDQUFDLFdBQXdDLEVBQUUsRUFBRSxDQUFDLEdBQUcsRUFBRSxDQUFDLFdBQVcsQ0FBQyxjQUFjLEVBQUUsQ0FBQztBQUVoSDs7O0dBR0c7QUFDSCxNQUFNLENBQUMsTUFBTSxzQkFBc0IsR0FBZTtJQUNoRCwyQkFBMkI7SUFDM0I7UUFDRSxPQUFPLEVBQUUsZUFBZTtRQUN4QixLQUFLLEVBQUUsSUFBSTtRQUNYLElBQUksRUFBRSxDQUFDLDJCQUEyQixDQUFDO1FBQ25DLFVBQVUsRUFBRSxlQUFlO0tBQzVCO0NBQ0YsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7XG4gIFByb3ZpZGVyLFxuICBBUFBfSU5JVElBTElaRVIsXG59IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5pbXBvcnQgeyBEYWZmVGhlbWVDbGFzc1NldHRlclNlcnZpY2UgfSBmcm9tICcuL3NlcnZpY2VzL2NsYXNzLXNldHRlci90aGVtZS1jbGFzcy1zZXR0ZXIuc2VydmljZSc7XG5cbmV4cG9ydCBjb25zdCBEQUZGX1RIRU1FX0lOSVQgPSAoY2xhc3NTZXR0ZXI6IERhZmZUaGVtZUNsYXNzU2V0dGVyU2VydmljZSkgPT4gKCkgPT4gY2xhc3NTZXR0ZXIuYmVnaW5UaGVtZVN5bmMoKTtcblxuLyoqXG4gKiBUaGUgdGhlbWUgcHJvdmlkZXIgZm9yIHRoZSBhcHAuXG4gKiBUaGlzIGNvbmZpZ3VyZXMgdXBkYXRpbmcgdGhlIGJvZHkgd2l0aCB0aGUgdGhlbWUgY2xhc3MuXG4gKi9cbmV4cG9ydCBjb25zdCBEQUZGX1RIRU1FX0lOSVRJQUxJWkVSOiBQcm92aWRlcltdID0gW1xuICBEYWZmVGhlbWVDbGFzc1NldHRlclNlcnZpY2UsXG4gIHtcbiAgICBwcm92aWRlOiBBUFBfSU5JVElBTElaRVIsXG4gICAgbXVsdGk6IHRydWUsXG4gICAgZGVwczogW0RhZmZUaGVtZUNsYXNzU2V0dGVyU2VydmljZV0sXG4gICAgdXNlRmFjdG9yeTogREFGRl9USEVNRV9JTklULFxuICB9LFxuXTtcbiJdfQ==
|
@@ -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 }]; } });
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BU1MpO1xuXHQgICAgdGhpcy5yZW5kZXJlci5yZW1vdmVDbGFzcyh0aGlzLmRvYy5ib2R5LCBEQUZGX1RIRU1FX0RBUktfQ1NTX0NMQVNTKTtcblx0ICAgIHRoaXMucmVuZGVyZXIuYWRkQ2xhc3ModGhpcy5kb2MuYm9keSwgdGhlbWUgPT09IERhZmZUaGVtZS5EYXJrID8gREFGRl9USEVNRV9EQVJLX0NTU19DTEFTUyA6IERBRkZfVEhFTUVfTElHSFRfQ1NTX0NMQVNTKTtcblx0ICB9KTtcblx0fVxuXG5cdC8qKlxuXHQgKiBUaGlzIHVuc3Vic2NyaWJlcyBmcm9tIHRoZSBib2R5Q2xhc3Mgc3Vic2NyaXB0aW9uIHRoYXQgZXhpc3RzLlxuXHQgKi9cblx0ZGVzdHJveSgpOiB2b2lkIHtcblx0ICB0aGlzLnN1YnNjcmlwdGlvbj8udW5zdWJzY3JpYmUoKTtcblx0ICB0aGlzLnJlbmRlcmVyLnJlbW92ZUNsYXNzKHRoaXMuZG9jLmJvZHksIERBRkZfVEhFTUVfTElHSFRfQ1NTX0NMQVNTKTtcblx0ICB0aGlzLnJlbmRlcmVyLnJlbW92ZUNsYXNzKHRoaXMuZG9jLmJvZHksIERBRkZfVEhFTUVfREFSS19DU1NfQ0xBU1MpO1xuXHR9XG59XG4iXX0=
|
@@ -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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Y3VtZW50Pl9kb2M7XG5cblx0ICB0aGlzLnByZWZlcmVuY2UkID0gdGhpcy5kb2MuZGVmYXVsdFZpZXc/Lm1hdGNoTWVkaWFcblx0ICAgID8gZnJvbUV2ZW50UGF0dGVybjxNZWRpYVF1ZXJ5TGlzdEV2ZW50Pihcblx0ICAgICAgYWRkSGFuZGxlckZhY3RvcnkodGhpcy5kb2MuZGVmYXVsdFZpZXcpLFxuXHQgICAgIFx0cmVtb3ZlSGFuZGxlckZhY3RvcnkodGhpcy5kb2MuZGVmYXVsdFZpZXcpLFxuXHQgICAgKVxuXHQgICAgICAucGlwZShcblx0ICAgICAgICBzdGFydFdpdGgodGhpcy5kb2MuZGVmYXVsdFZpZXc/Lm1hdGNoTWVkaWEobWVkaWFRdWVyeURhcmtQcmVmZXJlbmNlKSksXG5cdCAgICAgICAgbWFwKChlOiBNZWRpYVF1ZXJ5TGlzdEV2ZW50KSA9PiBlLm1hdGNoZXMpLFxuXHQgICAgICAgIG1hcCgocHJlZmVyc0RhcmspID0+IHByZWZlcnNEYXJrID8gRGFmZlRoZW1lLkRhcmsgOiBEYWZmVGhlbWUuTGlnaHQpLFxuXHQgICAgICApXG5cdCAgICA6IG9mKERhZmZUaGVtZS5Ob25lKTtcblx0fVxuXG5cdC8qKlxuXHQgKiBHZXQgdGhlIG9wZXJhdGluZyBzeXN0ZW0ncyB0aGVtZSBwcmVmZXJlbmNlLlxuXHQgKi9cblx0cHVibGljIGdldFRoZW1lUHJlZmVyZW5jZSgpOiBPYnNlcnZhYmxlPERhZmZUaGVtZT4ge1xuXHQgIHJldHVybiB0aGlzLnByZWZlcmVuY2UkO1xuXHR9XG59XG4iXX0=
|
@@ -0,0 +1,65 @@
|
|
1
|
+
import { DOCUMENT } from '@angular/common';
|
2
|
+
import { Injectable, Inject, } from '@angular/core';
|
3
|
+
import { fromEvent, Subject, merge, EMPTY, } 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$, fromEvent(this.doc.defaultView, 'storage').pipe(startWith(storageEventBuilder(this.storage.getItem(THEME_STORAGE_KEY))), catchError((e) => EMPTY))).pipe(filter((e) => e.key === THEME_STORAGE_KEY), map((e) => coerceValue(e.newValue)), shareReplay(1));
|
28
|
+
}
|
29
|
+
/**
|
30
|
+
* Given that Safari doesn't respect in-tab storage events, we have to manually
|
31
|
+
* fire storage events in the open tab on Webkit based browsers.
|
32
|
+
*/
|
33
|
+
progressStorageEvent(theme) {
|
34
|
+
this.storage$.next(storageEventBuilder(theme));
|
35
|
+
}
|
36
|
+
getThemeAsObservable() {
|
37
|
+
return this.theme$;
|
38
|
+
}
|
39
|
+
getTheme() {
|
40
|
+
return coerceValue(this.storage.getItem(THEME_STORAGE_KEY));
|
41
|
+
}
|
42
|
+
setTheme(theme) {
|
43
|
+
this.progressStorageEvent(theme);
|
44
|
+
this.storage.setItem(THEME_STORAGE_KEY, theme);
|
45
|
+
}
|
46
|
+
removeThemeSetting() {
|
47
|
+
this.progressStorageEvent(DaffTheme.None);
|
48
|
+
this.storage.removeItem(THEME_STORAGE_KEY);
|
49
|
+
}
|
50
|
+
}
|
51
|
+
/** @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 });
|
52
|
+
/** @nocollapse */ /** @nocollapse */ DaffThemeStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffThemeStorageService, providedIn: 'root' });
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffThemeStorageService, decorators: [{
|
54
|
+
type: Injectable,
|
55
|
+
args: [{
|
56
|
+
providedIn: 'root',
|
57
|
+
}]
|
58
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
59
|
+
type: Inject,
|
60
|
+
args: [DaffServerSafePersistenceServiceToken]
|
61
|
+
}] }, { type: undefined, decorators: [{
|
62
|
+
type: Inject,
|
63
|
+
args: [DOCUMENT]
|
64
|
+
}] }]; } });
|
65
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGhlbWUtc3RvcmFnZS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9kZXNpZ24vc3JjL2NvcmUvdGhlbWluZy9zZXJ2aWNlcy9zdG9yYWdlL3RoZW1lLXN0b3JhZ2Uuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDM0MsT0FBTyxFQUNMLFVBQVUsRUFDVixNQUFNLEdB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
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGhlbWluZy5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9kZXNpZ24vc3JjL2NvcmUvdGhlbWluZy9zZXJ2aWNlcy90aGVtaW5nLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBRUwsYUFBYSxHQUNkLE1BQU0sTUFBTSxDQUFDO0FBQ2QsT0FBTyxFQUFFLEdBQUcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRXJDLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBQ2hFLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUMzQyxPQUFPLEVBQUUsa0JBQWtCLEV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R9XG5cblx0LyoqXG5cdCAqIFNldCB0aGUgdGhlbWUgdG8gbGlnaHQgbW9kZS5cblx0ICovXG5cdGxpZ2h0TW9kZSgpIHtcblx0ICB0aGlzLnRoZW1lU3RvcmFnZS5zZXRUaGVtZShEYWZmVGhlbWUuTGlnaHQpO1xuXHR9XG5cblx0LyoqXG5cdCAqIFN3aXRjaCBiZXR3ZWVuIHRoZW1lcy5cblx0ICovXG5cdHN3aXRjaFRoZW1lKCk6IHZvaWQge1xuXHQgIHJldHVybiB0aGlzLnRoZW1lID09PSBEYWZmVGhlbWUuRGFya1xuXHQgICAgPyB0aGlzLmxpZ2h0TW9kZSgpXG5cdCAgICA6IHRoaXMuZGFya01vZGUoKTtcblx0fVxufVxuIl19
|
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGhlbWUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Rlc2lnbi9zcmMvY29yZS90aGVtaW5nL3R5cGVzL3RoZW1lLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFOLElBQVksU0FJWDtBQUpELFdBQVksU0FBUztJQUNwQiw0QkFBZSxDQUFBO0lBQ2YsMEJBQWEsQ0FBQTtJQUNaLDBCQUFhLENBQUE7QUFDZixDQUFDLEVBSlcsU0FBUyxLQUFULFNBQVMsUUFJcEIiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIFRoZSBwb3NzaWJsZSBzdGF0ZXMgb2YgYSB0aGVtZS5cbiAqL1xuZXhwb3J0IGVudW0gRGFmZlRoZW1lIHtcblx0TGlnaHQgPSAnbGlnaHQnLFxuXHREYXJrID0gJ2RhcmsnLFxuICBOb25lID0gJ25vbmUnXG59XG4iXX0=
|
@@ -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
|