@daffodil/design 0.39.13 → 0.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/examples/basic-accordion/basic-accordion.component.d.ts +3 -0
- package/accordion/examples/basic-accordion/basic-accordion.module.d.ts +6 -0
- package/accordion/examples/daffodil-design-accordion-examples.d.ts +1 -2
- package/accordion/examples/nav-accordion/nav-accordion.component.d.ts +3 -0
- package/accordion/examples/nav-accordion/nav-accordion.module.d.ts +6 -0
- package/accordion/examples/package.json +5 -6
- package/accordion/examples/public_api.d.ts +2 -0
- package/article/examples/article-blockquote/article-blockquote.component.d.ts +3 -0
- package/article/examples/article-code-block/article-code-block.component.d.ts +3 -0
- package/article/examples/article-code-inline/article-code-inline.component.d.ts +3 -0
- package/article/examples/article-examples.module.d.ts +17 -0
- package/article/examples/article-headings/article-headings.component.d.ts +3 -0
- package/article/examples/article-hr/article-hr.component.d.ts +3 -0
- package/article/examples/article-lead/article-lead.component.d.ts +3 -0
- package/article/examples/article-link/article-link.component.d.ts +3 -0
- package/article/examples/article-meta/article-meta.component.d.ts +3 -0
- package/article/examples/article-ol/article-ol.component.d.ts +3 -0
- package/article/examples/article-table/article-table.component.d.ts +3 -0
- package/article/examples/article-ul/article-ul.component.d.ts +3 -0
- package/article/examples/daffodil-design-article-examples.d.ts +1 -1
- package/article/examples/package.json +5 -6
- package/atoms/button/button.component.d.ts +4 -1
- package/atoms/button/button.module.d.ts +7 -0
- package/atoms/container/container.component.d.ts +3 -0
- package/atoms/container/container.module.d.ts +6 -0
- package/atoms/form/checkbox/checkbox.component.d.ts +3 -0
- package/atoms/form/checkbox/checkbox.module.d.ts +8 -0
- package/atoms/form/checkbox/cva/checkbox-cva.directive.d.ts +3 -0
- package/atoms/form/checkbox-set/checkbox-set.component.d.ts +3 -0
- package/atoms/form/error-message/error-message.component.d.ts +3 -0
- package/atoms/form/error-message/error-message.module.d.ts +5 -0
- package/atoms/form/form-field/form-field/form-field.component.d.ts +3 -0
- package/atoms/form/form-field/form-field.module.d.ts +8 -0
- package/atoms/form/input/input.component.d.ts +3 -0
- package/atoms/form/input/input.module.d.ts +6 -0
- package/atoms/form/quantity-field/quantity-field.component.d.ts +4 -1
- package/atoms/form/quantity-field/quantity-field.module.d.ts +11 -0
- package/atoms/form/quantity-field/quantity-input/quantity-input.component.d.ts +4 -1
- package/atoms/form/quantity-field/quantity-select/quantity-select.component.d.ts +4 -0
- package/atoms/form/radio/cva/radio-cva.directive.d.ts +3 -0
- package/atoms/form/radio/radio.component.d.ts +3 -0
- package/atoms/form/radio/radio.module.d.ts +8 -0
- package/atoms/form/radio/registry/radio-registry.d.ts +3 -0
- package/atoms/form/radio-set/radio-set.component.d.ts +3 -0
- package/atoms/form/select/select/select.component.d.ts +3 -0
- package/atoms/form/select/select.module.d.ts +6 -0
- package/atoms/image/image.component.d.ts +3 -0
- package/atoms/image/image.module.d.ts +6 -0
- package/atoms/loading-icon/loading-icon.component.d.ts +3 -0
- package/atoms/loading-icon/loading-icon.module.d.ts +6 -0
- package/atoms/progress-indicator/progress-indicator.component.d.ts +3 -0
- package/atoms/progress-indicator/progress-indicator.module.d.ts +6 -0
- package/button/examples/basic-button/basic-button.component.d.ts +3 -0
- package/button/examples/basic-button/basic-button.module.d.ts +7 -0
- package/button/examples/daffodil-design-button-examples.d.ts +1 -7
- package/button/examples/icon-button/icon-button.component.d.ts +3 -0
- package/button/examples/icon-button/icon-button.module.d.ts +7 -0
- package/button/examples/package.json +5 -6
- package/button/examples/public_api.d.ts +5 -0
- package/button/examples/raised-button/raised-button.component.d.ts +3 -0
- package/button/examples/raised-button/raised-button.module.d.ts +7 -0
- package/button/examples/sizeable-button/sizeable-button.component.d.ts +3 -0
- package/button/examples/sizeable-button/sizeable-button.module.d.ts +7 -0
- package/button/examples/statusable-button/statusable-button.component.d.ts +3 -0
- package/button/examples/statusable-button/statusable-button.module.d.ts +7 -0
- package/button/examples/stroked-button/stroked-button.component.d.ts +3 -0
- package/button/examples/stroked-button/stroked-button.module.d.ts +7 -0
- package/button/examples/underline-button/underline-button.component.d.ts +3 -0
- package/button/examples/underline-button/underline-button.module.d.ts +7 -0
- package/callout/examples/callout-text-alignment/callout-text-alignment.component.d.ts +3 -0
- package/callout/examples/callout-text-alignment/callout-text-alignment.module.d.ts +9 -0
- package/callout/examples/callout-theming/callout-theming.component.d.ts +3 -0
- package/callout/examples/callout-theming/callout-theming.module.d.ts +9 -0
- package/callout/examples/callout-with-grid/callout-with-grid.component.d.ts +3 -0
- package/callout/examples/callout-with-grid/callout-with-grid.module.d.ts +9 -0
- package/callout/examples/compact-callout/compact-callout.component.d.ts +3 -0
- package/callout/examples/compact-callout/compact-callout.module.d.ts +8 -0
- package/callout/examples/daffodil-design-callout-examples.d.ts +1 -0
- package/callout/examples/package.json +5 -6
- package/card/examples/basic-card/basic-card.component.d.ts +3 -0
- package/card/examples/basic-card/basic-card.module.d.ts +8 -0
- package/card/examples/card-orientation/card-orientation.component.d.ts +3 -0
- package/card/examples/card-orientation/card-orientation.module.d.ts +9 -0
- package/card/examples/card-theming/card-theming.component.d.ts +3 -0
- package/card/examples/card-theming/card-theming.module.d.ts +8 -0
- package/card/examples/daffodil-design-card-examples.d.ts +1 -6
- package/card/examples/linkable-card/linkable-card.component.d.ts +3 -0
- package/card/examples/linkable-card/linkable-card.module.d.ts +9 -0
- package/card/examples/package.json +5 -6
- package/card/examples/public_api.d.ts +4 -0
- package/card/examples/raised-card/raised-card.component.d.ts +3 -0
- package/card/examples/raised-card/raised-card.module.d.ts +8 -0
- package/card/examples/stroked-card/stroked-card.component.d.ts +3 -0
- package/card/examples/stroked-card/stroked-card.module.d.ts +9 -0
- package/checkbox/examples/basic-checkbox/basic-checkbox.component.d.ts +3 -0
- package/checkbox/examples/basic-checkbox/basic-checkbox.module.d.ts +7 -0
- package/checkbox/examples/checkbox-set/checkbox-set.component.d.ts +3 -0
- package/checkbox/examples/checkbox-set/checkbox-set.module.d.ts +7 -0
- package/checkbox/examples/daffodil-design-checkbox-examples.d.ts +1 -4
- package/checkbox/examples/package.json +5 -6
- package/container/examples/container-sizes/container-sizes.component.d.ts +3 -0
- package/container/examples/container-sizes/container-sizes.module.d.ts +8 -0
- package/container/examples/daffodil-design-container-examples.d.ts +1 -0
- package/container/examples/package.json +5 -6
- package/core/prefix-suffix/prefix-suffix.module.d.ts +6 -0
- package/core/prefix-suffix/prefix.directive.d.ts +3 -0
- package/core/prefix-suffix/suffix.directive.d.ts +3 -0
- package/core/public_api.d.ts +1 -0
- package/core/theming/functions/computer.d.ts +6 -0
- package/core/theming/initializer.d.ts +8 -0
- package/core/theming/public_api.d.ts +3 -0
- package/core/theming/services/class-setter/theme-class-setter.service.d.ts +31 -0
- package/core/theming/services/os-theme/ostheme.service.d.ts +20 -0
- package/core/theming/services/storage/theme-storage.service.d.ts +28 -0
- package/core/theming/services/theming.service.d.ts +33 -0
- package/core/theming/types/theme.d.ts +8 -0
- package/daff-global.scss +1 -1
- package/daff-theme.scss +36 -30
- package/daff-typography.scss +2 -0
- package/daff-util.scss +2 -0
- package/daffodil-design.d.ts +1 -11
- package/esm2020/accordion/examples/basic-accordion/basic-accordion.component.mjs +12 -0
- package/esm2020/accordion/examples/basic-accordion/basic-accordion.module.mjs +26 -0
- package/esm2020/accordion/examples/daffodil-design-accordion-examples.mjs +5 -0
- package/{esm2015/accordion/examples/index.js → esm2020/accordion/examples/index.mjs} +0 -0
- package/esm2020/accordion/examples/nav-accordion/nav-accordion.component.mjs +12 -0
- package/esm2020/accordion/examples/nav-accordion/nav-accordion.module.mjs +26 -0
- package/esm2020/accordion/examples/public_api.mjs +10 -0
- package/esm2020/article/examples/article-blockquote/article-blockquote.component.mjs +12 -0
- package/esm2020/article/examples/article-code-block/article-code-block.component.mjs +12 -0
- package/esm2020/article/examples/article-code-inline/article-code-inline.component.mjs +12 -0
- package/esm2020/article/examples/article-examples.module.mjs +41 -0
- package/esm2020/article/examples/article-headings/article-headings.component.mjs +12 -0
- package/esm2020/article/examples/article-hr/article-hr.component.mjs +12 -0
- package/esm2020/article/examples/article-lead/article-lead.component.mjs +12 -0
- package/esm2020/article/examples/article-link/article-link.component.mjs +12 -0
- package/esm2020/article/examples/article-meta/article-meta.component.mjs +12 -0
- package/esm2020/article/examples/article-ol/article-ol.component.mjs +12 -0
- package/esm2020/article/examples/article-table/article-table.component.mjs +12 -0
- package/esm2020/article/examples/article-ul/article-ul.component.mjs +12 -0
- package/esm2020/article/examples/daffodil-design-article-examples.mjs +5 -0
- package/{esm2015/article/examples/examples.js → esm2020/article/examples/examples.mjs} +0 -0
- package/{esm2015/article/examples/index.js → esm2020/article/examples/index.mjs} +0 -0
- package/{esm2015/article/examples/public_api.js → esm2020/article/examples/public_api.mjs} +0 -0
- package/esm2020/atoms/button/button.component.mjs +132 -0
- package/esm2020/atoms/button/button.module.mjs +32 -0
- package/{esm2015/atoms/button/public_api.js → esm2020/atoms/button/public_api.mjs} +0 -0
- package/esm2020/atoms/container/container.component.mjs +37 -0
- package/esm2020/atoms/container/container.module.mjs +26 -0
- package/{esm2015/atoms/container/public_api.js → esm2020/atoms/container/public_api.mjs} +0 -0
- package/esm2020/atoms/form/checkbox/checkbox.component.mjs +142 -0
- package/esm2020/atoms/form/checkbox/checkbox.module.mjs +41 -0
- package/esm2020/atoms/form/checkbox/cva/checkbox-cva.directive.mjs +94 -0
- package/{esm2015/atoms/form/checkbox/public_api.js → esm2020/atoms/form/checkbox/public_api.mjs} +0 -0
- package/esm2020/atoms/form/checkbox-set/checkbox-set.component.mjs +38 -0
- package/{esm2015/atoms/form/core/error-state-matcher/error-state-matcher.js → esm2020/atoms/form/core/error-state-matcher/error-state-matcher.mjs} +0 -0
- package/{esm2015/atoms/form/core/public_api.js → esm2020/atoms/form/core/public_api.mjs} +0 -0
- package/esm2020/atoms/form/error-message/error-message.component.mjs +11 -0
- package/esm2020/atoms/form/error-message/error-message.module.mjs +20 -0
- package/{esm2015/atoms/form/error-message/public_api.js → esm2020/atoms/form/error-message/public_api.mjs} +0 -0
- package/esm2020/atoms/form/form-field/form-field/form-field.component.mjs +102 -0
- package/{esm2015/atoms/form/form-field/form-field-control.js → esm2020/atoms/form/form-field/form-field-control.mjs} +0 -0
- package/{esm2015/atoms/form/form-field/form-field-errors.js → esm2020/atoms/form/form-field/form-field-errors.mjs} +0 -0
- package/esm2020/atoms/form/form-field/form-field.module.mjs +36 -0
- package/{esm2015/atoms/form/form-field/public_api.js → esm2020/atoms/form/form-field/public_api.mjs} +0 -0
- package/esm2020/atoms/form/input/input.component.mjs +59 -0
- package/esm2020/atoms/form/input/input.module.mjs +26 -0
- package/{esm2015/atoms/form/input/public_api.js → esm2020/atoms/form/input/public_api.mjs} +0 -0
- package/{esm2015/atoms/form/quantity-field/public_api.js → esm2020/atoms/form/quantity-field/public_api.mjs} +0 -0
- package/esm2020/atoms/form/quantity-field/quantity-field.component.mjs +134 -0
- package/esm2020/atoms/form/quantity-field/quantity-field.module.mjs +48 -0
- package/esm2020/atoms/form/quantity-field/quantity-input/quantity-input.component.mjs +97 -0
- package/esm2020/atoms/form/quantity-field/quantity-select/quantity-select.component.mjs +84 -0
- package/esm2020/atoms/form/radio/cva/radio-cva.directive.mjs +89 -0
- package/{esm2015/atoms/form/radio/public_api.js → esm2020/atoms/form/radio/public_api.mjs} +0 -0
- package/esm2020/atoms/form/radio/radio.component.mjs +132 -0
- package/esm2020/atoms/form/radio/radio.module.mjs +36 -0
- package/esm2020/atoms/form/radio/registry/radio-registry.mjs +54 -0
- package/esm2020/atoms/form/radio-set/radio-set.component.mjs +22 -0
- package/{esm2015/atoms/form/select/public_api.js → esm2020/atoms/form/select/public_api.mjs} +0 -0
- package/esm2020/atoms/form/select/select/select.component.mjs +64 -0
- package/esm2020/atoms/form/select/select.module.mjs +26 -0
- package/esm2020/atoms/image/image.component.mjs +111 -0
- package/esm2020/atoms/image/image.module.mjs +29 -0
- package/{esm2015/atoms/image/public_api.js → esm2020/atoms/image/public_api.mjs} +0 -0
- package/esm2020/atoms/loading-icon/loading-icon.component.mjs +53 -0
- package/esm2020/atoms/loading-icon/loading-icon.module.mjs +26 -0
- package/{esm2015/atoms/loading-icon/public_api.js → esm2020/atoms/loading-icon/public_api.mjs} +0 -0
- package/esm2020/atoms/progress-indicator/animation/progress-indicator-animation.mjs +8 -0
- package/esm2020/atoms/progress-indicator/progress-indicator.component.mjs +81 -0
- package/esm2020/atoms/progress-indicator/progress-indicator.module.mjs +22 -0
- package/{esm2015/atoms/progress-indicator/public_api.js → esm2020/atoms/progress-indicator/public_api.mjs} +0 -0
- package/esm2020/button/examples/basic-button/basic-button.component.mjs +23 -0
- package/esm2020/button/examples/basic-button/basic-button.module.mjs +30 -0
- package/esm2020/button/examples/daffodil-design-button-examples.mjs +5 -0
- package/esm2020/button/examples/icon-button/icon-button.component.mjs +22 -0
- package/esm2020/button/examples/icon-button/icon-button.module.mjs +30 -0
- package/{esm2015/button/examples/index.js → esm2020/button/examples/index.mjs} +0 -0
- package/esm2020/button/examples/public_api.mjs +25 -0
- package/esm2020/button/examples/raised-button/raised-button.component.mjs +23 -0
- package/esm2020/button/examples/raised-button/raised-button.module.mjs +30 -0
- package/esm2020/button/examples/sizeable-button/sizeable-button.component.mjs +21 -0
- package/esm2020/button/examples/sizeable-button/sizeable-button.module.mjs +30 -0
- package/esm2020/button/examples/statusable-button/statusable-button.component.mjs +27 -0
- package/esm2020/button/examples/statusable-button/statusable-button.module.mjs +30 -0
- package/esm2020/button/examples/stroked-button/stroked-button.component.mjs +23 -0
- package/esm2020/button/examples/stroked-button/stroked-button.module.mjs +30 -0
- package/esm2020/button/examples/underline-button/underline-button.component.mjs +23 -0
- package/esm2020/button/examples/underline-button/underline-button.module.mjs +30 -0
- package/esm2020/callout/examples/callout-text-alignment/callout-text-alignment.component.mjs +27 -0
- package/esm2020/callout/examples/callout-text-alignment/callout-text-alignment.module.mjs +41 -0
- package/esm2020/callout/examples/callout-theming/callout-theming.component.mjs +31 -0
- package/esm2020/callout/examples/callout-theming/callout-theming.module.mjs +38 -0
- package/esm2020/callout/examples/callout-with-grid/callout-with-grid.component.mjs +17 -0
- package/esm2020/callout/examples/callout-with-grid/callout-with-grid.module.mjs +41 -0
- package/esm2020/callout/examples/compact-callout/compact-callout.component.mjs +17 -0
- package/esm2020/callout/examples/compact-callout/compact-callout.module.mjs +37 -0
- package/{esm2015/callout/examples/daffodil-design-callout-examples.js → esm2020/callout/examples/daffodil-design-callout-examples.mjs} +0 -0
- package/{esm2015/callout/examples/examples.js → esm2020/callout/examples/examples.mjs} +0 -0
- package/{esm2015/callout/examples/index.js → esm2020/callout/examples/index.mjs} +0 -0
- package/{esm2015/callout/examples/public_api.js → esm2020/callout/examples/public_api.mjs} +0 -0
- package/esm2020/card/examples/basic-card/basic-card.component.mjs +17 -0
- package/esm2020/card/examples/basic-card/basic-card.module.mjs +40 -0
- package/esm2020/card/examples/card-orientation/card-orientation.component.mjs +26 -0
- package/esm2020/card/examples/card-orientation/card-orientation.module.mjs +44 -0
- package/esm2020/card/examples/card-theming/card-theming.component.mjs +32 -0
- package/esm2020/card/examples/card-theming/card-theming.module.mjs +37 -0
- package/esm2020/card/examples/daffodil-design-card-examples.mjs +5 -0
- package/{esm2015/card/examples/index.js → esm2020/card/examples/index.mjs} +0 -0
- package/esm2020/card/examples/linkable-card/linkable-card.component.mjs +30 -0
- package/esm2020/card/examples/linkable-card/linkable-card.module.mjs +44 -0
- package/esm2020/card/examples/public_api.mjs +22 -0
- package/esm2020/card/examples/raised-card/raised-card.component.mjs +28 -0
- package/esm2020/card/examples/raised-card/raised-card.module.mjs +40 -0
- package/esm2020/card/examples/stroked-card/stroked-card.component.mjs +28 -0
- package/esm2020/card/examples/stroked-card/stroked-card.module.mjs +44 -0
- package/esm2020/checkbox/examples/basic-checkbox/basic-checkbox.component.mjs +26 -0
- package/esm2020/checkbox/examples/basic-checkbox/basic-checkbox.module.mjs +34 -0
- package/esm2020/checkbox/examples/checkbox-set/checkbox-set.component.mjs +28 -0
- package/esm2020/checkbox/examples/checkbox-set/checkbox-set.module.mjs +34 -0
- package/esm2020/checkbox/examples/daffodil-design-checkbox-examples.mjs +5 -0
- package/{esm2015/checkbox/examples/examples.js → esm2020/checkbox/examples/examples.mjs} +0 -0
- package/{esm2015/checkbox/examples/index.js → esm2020/checkbox/examples/index.mjs} +0 -0
- package/{esm2015/checkbox/examples/public_api.js → esm2020/checkbox/examples/public_api.mjs} +0 -0
- package/esm2020/container/examples/container-sizes/container-sizes.component.mjs +25 -0
- package/esm2020/container/examples/container-sizes/container-sizes.module.mjs +34 -0
- package/{esm2015/container/examples/daffodil-design-container-examples.js → esm2020/container/examples/daffodil-design-container-examples.mjs} +0 -0
- package/{esm2015/container/examples/examples.js → esm2020/container/examples/examples.mjs} +0 -0
- package/{esm2015/container/examples/index.js → esm2020/container/examples/index.mjs} +0 -0
- package/{esm2015/container/examples/public_api.js → esm2020/container/examples/public_api.mjs} +0 -0
- package/esm2020/core/article-encapsulated/article-encapsulated-mixin.mjs +12 -0
- package/{esm2015/core/article-encapsulated/public_api.js → esm2020/core/article-encapsulated/public_api.mjs} +0 -0
- package/esm2020/core/breakpoints/breakpoints.mjs +10 -0
- package/{esm2015/core/colorable/color-in-palette.js → esm2020/core/colorable/color-in-palette.mjs} +0 -0
- package/{esm2015/core/colorable/colorable-enum.js → esm2020/core/colorable/colorable-enum.mjs} +0 -0
- package/esm2020/core/colorable/colorable-mixin.mjs +42 -0
- package/esm2020/core/colorable/colorable.mjs +2 -0
- package/{esm2015/core/colorable/public_api.js → esm2020/core/colorable/public_api.mjs} +0 -0
- package/esm2020/core/compactable/compactable-mixin.mjs +26 -0
- package/esm2020/core/compactable/compactable.mjs +2 -0
- package/{esm2015/core/compactable/public_api.js → esm2020/core/compactable/public_api.mjs} +0 -0
- package/{esm2015/core/constructor/constructor.js → esm2020/core/constructor/constructor.mjs} +0 -0
- package/esm2020/core/manage-container-layout/manage-container-layout-mixin.mjs +14 -0
- package/{esm2015/core/manage-container-layout/public_api.js → esm2020/core/manage-container-layout/public_api.mjs} +0 -0
- package/esm2020/core/mutable/mutable.mjs +2 -0
- package/esm2020/core/prefix-suffix/prefix-suffix.module.mjs +26 -0
- package/esm2020/core/prefix-suffix/prefix.directive.mjs +24 -0
- package/{esm2015/core/prefix-suffix/prefixable/prefixable-interface.js → esm2020/core/prefix-suffix/prefixable/prefixable-interface.mjs} +0 -0
- package/esm2020/core/prefix-suffix/prefixable/prefixable.mjs +23 -0
- package/{esm2015/core/prefix-suffix/public_api.js → esm2020/core/prefix-suffix/public_api.mjs} +0 -0
- package/esm2020/core/prefix-suffix/suffix.directive.mjs +24 -0
- package/{esm2015/core/prefix-suffix/suffixable/suffixable-interface.js → esm2020/core/prefix-suffix/suffixable/suffixable-interface.mjs} +0 -0
- package/esm2020/core/prefix-suffix/suffixable/suffixable.mjs +23 -0
- package/esm2020/core/public_api.mjs +14 -0
- package/esm2020/core/sizeable/sizeable-mixin.mjs +31 -0
- package/esm2020/core/sizeable/sizeable.mjs +9 -0
- package/esm2020/core/skeletonable/skeletonable.mjs +2 -0
- package/esm2020/core/statusable/statusable-mixin.mjs +32 -0
- package/esm2020/core/statusable/statusable.mjs +7 -0
- package/esm2020/core/text-alignable/text-alignable-mixin.mjs +35 -0
- package/esm2020/core/text-alignable/text-alignable.mjs +7 -0
- package/esm2020/core/theming/functions/computer.mjs +18 -0
- package/esm2020/core/theming/initializer.mjs +17 -0
- package/esm2020/core/theming/public_api.mjs +4 -0
- package/esm2020/core/theming/services/class-setter/theme-class-setter.service.mjs +52 -0
- package/esm2020/core/theming/services/os-theme/ostheme.service.mjs +49 -0
- package/esm2020/core/theming/services/storage/theme-storage.service.mjs +67 -0
- package/esm2020/core/theming/services/theming.service.mjs +61 -0
- package/esm2020/core/theming/types/theme.mjs +10 -0
- package/esm2020/daffodil-design.mjs +5 -0
- package/{esm2015/examples/examples.js → esm2020/examples/examples.mjs} +0 -0
- package/{esm2015/examples/public_api.js → esm2020/examples/public_api.mjs} +0 -0
- package/esm2020/hero/examples/compact-hero/compact-hero.component.mjs +17 -0
- package/esm2020/hero/examples/compact-hero/compact-hero.module.mjs +41 -0
- package/{esm2015/hero/examples/daffodil-design-hero-examples.js → esm2020/hero/examples/daffodil-design-hero-examples.mjs} +0 -0
- package/{esm2015/hero/examples/examples.js → esm2020/hero/examples/examples.mjs} +0 -0
- package/esm2020/hero/examples/hero-text-alignment/hero-text-alignment.component.mjs +27 -0
- package/esm2020/hero/examples/hero-text-alignment/hero-text-alignment.module.mjs +41 -0
- package/esm2020/hero/examples/hero-theming/hero-theming.component.mjs +21 -0
- package/esm2020/hero/examples/hero-theming/hero-theming.module.mjs +41 -0
- package/esm2020/hero/examples/hero-with-grid/hero-with-grid.component.mjs +17 -0
- package/esm2020/hero/examples/hero-with-grid/hero-with-grid.module.mjs +41 -0
- package/{esm2015/hero/examples/index.js → esm2020/hero/examples/index.mjs} +0 -0
- package/{esm2015/hero/examples/public_api.js → esm2020/hero/examples/public_api.mjs} +0 -0
- package/esm2020/image/examples/basic-image/basic-image.component.mjs +12 -0
- package/esm2020/image/examples/basic-image/basic-image.module.mjs +26 -0
- package/esm2020/image/examples/daffodil-design-image-examples.mjs +5 -0
- package/esm2020/image/examples/index.mjs +2 -0
- package/esm2020/image/examples/load-image/load-image.component.mjs +19 -0
- package/esm2020/image/examples/load-image/load-image.module.mjs +30 -0
- package/esm2020/image/examples/public_api.mjs +9 -0
- package/esm2020/list/examples/basic-list/basic-list.component.mjs +12 -0
- package/esm2020/list/examples/basic-list/basic-list.module.mjs +30 -0
- package/esm2020/list/examples/daffodil-design-list-examples.mjs +5 -0
- package/{esm2015/list/examples/examples.js → esm2020/list/examples/examples.mjs} +0 -0
- package/esm2020/list/examples/icon-list/icon-list.component.mjs +17 -0
- package/esm2020/list/examples/icon-list/icon-list.module.mjs +34 -0
- package/{esm2015/list/examples/index.js → esm2020/list/examples/index.mjs} +0 -0
- package/esm2020/list/examples/list-examples.module.mjs +39 -0
- package/esm2020/list/examples/multiline-list/multiline-list.component.mjs +12 -0
- package/esm2020/list/examples/multiline-list/multiline-list.module.mjs +34 -0
- package/esm2020/list/examples/nav-list/nav-list.component.mjs +17 -0
- package/esm2020/list/examples/nav-list/nav-list.module.mjs +34 -0
- package/{esm2015/list/examples/public_api.js → esm2020/list/examples/public_api.mjs} +0 -0
- package/esm2020/loading-icon/examples/daffodil-design-loading-icon-examples.mjs +5 -0
- package/{esm2015/loading-icon/examples/examples.js → esm2020/loading-icon/examples/examples.mjs} +0 -0
- package/{esm2015/loading-icon/examples/index.js → esm2020/loading-icon/examples/index.mjs} +0 -0
- package/esm2020/loading-icon/examples/loading-icon-color/loading-icon-color.component.mjs +19 -0
- package/esm2020/loading-icon/examples/loading-icon-color/loading-icon-color.module.mjs +33 -0
- package/esm2020/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.component.mjs +12 -0
- package/esm2020/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.module.mjs +26 -0
- package/{esm2015/loading-icon/examples/public_api.js → esm2020/loading-icon/examples/public_api.mjs} +0 -0
- package/esm2020/media-gallery/examples/basic-media-gallery/basic-media-gallery.component.mjs +12 -0
- package/esm2020/media-gallery/examples/basic-media-gallery/basic-media-gallery.module.mjs +30 -0
- package/esm2020/media-gallery/examples/daffodil-design-media-gallery-examples.mjs +5 -0
- package/{esm2015/media-gallery/examples/examples.js → esm2020/media-gallery/examples/examples.mjs} +0 -0
- package/{esm2015/media-gallery/examples/index.js → esm2020/media-gallery/examples/index.mjs} +0 -0
- package/esm2020/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.component.mjs +12 -0
- package/esm2020/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.module.mjs +30 -0
- package/esm2020/media-gallery/examples/public_api.mjs +6 -0
- package/esm2020/modal/examples/basic-modal/basic-modal.component.mjs +20 -0
- package/esm2020/modal/examples/basic-modal/basic-modal.module.mjs +32 -0
- package/esm2020/modal/examples/basic-modal/modal-content.component.mjs +12 -0
- package/esm2020/modal/examples/daffodil-design-modal-examples.mjs +5 -0
- package/{esm2015/modal/examples/index.js → esm2020/modal/examples/index.mjs} +0 -0
- package/{esm2015/modal/examples/public_api.js → esm2020/modal/examples/public_api.mjs} +0 -0
- package/esm2020/molecules/accordion/accordion/accordion.component.mjs +27 -0
- package/esm2020/molecules/accordion/accordion-item/accordion-item.component.mjs +54 -0
- package/esm2020/molecules/accordion/accordion-item-content/accordion-item-content.directive.mjs +22 -0
- package/esm2020/molecules/accordion/accordion-item-title/accordion-item-title.directive.mjs +22 -0
- package/esm2020/molecules/accordion/accordion.module.mjs +54 -0
- package/{esm2015/molecules/accordion/animation/accordion-animation-state.js → esm2020/molecules/accordion/animation/accordion-animation-state.mjs} +0 -0
- package/{esm2015/molecules/accordion/animation/accordion-animation.js → esm2020/molecules/accordion/animation/accordion-animation.mjs} +0 -0
- package/esm2020/molecules/accordion/nav-accordion-item/nav-accordion-item.component.mjs +78 -0
- package/esm2020/molecules/accordion/public_api.mjs +7 -0
- package/esm2020/molecules/article/article/article.component.mjs +30 -0
- package/esm2020/molecules/article/article-lead/article-lead.directive.mjs +22 -0
- package/esm2020/molecules/article/article-meta/article-meta.directive.mjs +22 -0
- package/esm2020/molecules/article/article-title/article-title.directive.mjs +22 -0
- package/esm2020/molecules/article/article.module.mjs +41 -0
- package/{esm2015/molecules/article/public_api.js → esm2020/molecules/article/public_api.mjs} +0 -0
- package/{esm2015/molecules/backdrop/animation/backdrop-animation.js → esm2020/molecules/backdrop/animation/backdrop-animation.mjs} +0 -0
- package/esm2020/molecules/backdrop/backdrop/backdrop.component.mjs +52 -0
- package/esm2020/molecules/backdrop/backdrop.module.mjs +29 -0
- package/{esm2015/molecules/backdrop/public_api.js → esm2020/molecules/backdrop/public_api.mjs} +0 -0
- package/esm2020/molecules/button-set/button-set.component.mjs +20 -0
- package/esm2020/molecules/button-set/button-set.module.mjs +20 -0
- package/{esm2015/molecules/button-set/public_api.js → esm2020/molecules/button-set/public_api.mjs} +0 -0
- package/esm2020/molecules/callout/callout/callout.component.mjs +71 -0
- package/esm2020/molecules/callout/callout-body/callout-body.directive.mjs +22 -0
- package/esm2020/molecules/callout/callout-icon/callout-icon.directive.mjs +22 -0
- package/esm2020/molecules/callout/callout-subtitle/callout-subtitle.directive.mjs +22 -0
- package/esm2020/molecules/callout/callout-tagline/callout-tagline.directive.mjs +22 -0
- package/esm2020/molecules/callout/callout-title/callout-title.directive.mjs +22 -0
- package/esm2020/molecules/callout/callout.module.mjs +51 -0
- package/{esm2015/molecules/callout/public_api.js → esm2020/molecules/callout/public_api.mjs} +0 -0
- package/esm2020/molecules/card/card/card.component.mjs +113 -0
- package/esm2020/molecules/card/card-actions/card-actions.directive.mjs +22 -0
- package/esm2020/molecules/card/card-content/card-content.directive.mjs +22 -0
- package/esm2020/molecules/card/card-icon/card-icon.directive.mjs +22 -0
- package/esm2020/molecules/card/card-image/card-image.directive.mjs +22 -0
- package/esm2020/molecules/card/card-tagline/card-tagline.directive.mjs +22 -0
- package/esm2020/molecules/card/card-title/card-title.directive.mjs +22 -0
- package/esm2020/molecules/card/card.module.mjs +56 -0
- package/{esm2015/molecules/card/public_api.js → esm2020/molecules/card/public_api.mjs} +0 -0
- package/esm2020/molecules/feature/feature/feature.component.mjs +49 -0
- package/esm2020/molecules/feature/feature-icon/feature-icon.directive.mjs +22 -0
- package/esm2020/molecules/feature/feature-subheader/feature-subheader.directive.mjs +22 -0
- package/esm2020/molecules/feature/feature-subtitle/feature-subtitle.directive.mjs +22 -0
- package/esm2020/molecules/feature/feature-title/feature-title.directive.mjs +22 -0
- package/esm2020/molecules/feature/feature.module.mjs +46 -0
- package/{esm2015/molecules/feature/public_api.js → esm2020/molecules/feature/public_api.mjs} +0 -0
- package/esm2020/molecules/hero/hero/hero.component.mjs +72 -0
- package/esm2020/molecules/hero/hero-body/hero-body.directive.mjs +22 -0
- package/esm2020/molecules/hero/hero-icon/hero-icon.directive.mjs +22 -0
- package/esm2020/molecules/hero/hero-subtitle/hero-subtitle.directive.mjs +22 -0
- package/esm2020/molecules/hero/hero-tagline/hero-tagline.directive.mjs +22 -0
- package/esm2020/molecules/hero/hero-title/hero-title.directive.mjs +22 -0
- package/esm2020/molecules/hero/hero.module.mjs +51 -0
- package/{esm2015/molecules/hero/public_api.js → esm2020/molecules/hero/public_api.mjs} +0 -0
- package/esm2020/molecules/image-gallery/gallery-image/gallery-image.component.mjs +25 -0
- package/esm2020/molecules/image-gallery/image-gallery/image-gallery.component.mjs +15 -0
- package/esm2020/molecules/image-gallery/image-gallery.module.mjs +35 -0
- package/{esm2015/molecules/image-gallery/public_api.js → esm2020/molecules/image-gallery/public_api.mjs} +0 -0
- package/esm2020/molecules/image-list/image-list.component.mjs +20 -0
- package/esm2020/molecules/image-list/image-list.module.mjs +26 -0
- package/{esm2015/molecules/image-list/public_api.js → esm2020/molecules/image-list/public_api.mjs} +0 -0
- package/esm2020/molecules/link-set/link-set/link-set.component.mjs +37 -0
- package/esm2020/molecules/link-set/link-set-heading/link-set-heading.directive.mjs +25 -0
- package/esm2020/molecules/link-set/link-set-item/link-set-item.component.mjs +26 -0
- package/esm2020/molecules/link-set/link-set-subheading/link-set-subheading.directive.mjs +25 -0
- package/esm2020/molecules/link-set/link-set.module.mjs +41 -0
- package/{esm2015/molecules/link-set/public_api.js → esm2020/molecules/link-set/public_api.mjs} +0 -0
- package/esm2020/molecules/list/list/list.component.mjs +110 -0
- package/esm2020/molecules/list/list-item/list-item.component.mjs +49 -0
- package/esm2020/molecules/list/list-subheader/list-subheader.directive.mjs +25 -0
- package/esm2020/molecules/list/list.module.mjs +42 -0
- package/{esm2015/molecules/list/public_api.js → esm2020/molecules/list/public_api.mjs} +0 -0
- package/esm2020/molecules/media-gallery/media-gallery-registration.interface.mjs +2 -0
- package/{esm2015/molecules/media-gallery/media-gallery-token.js → esm2020/molecules/media-gallery/media-gallery-token.mjs} +0 -0
- package/esm2020/molecules/media-gallery/media-gallery.component.mjs +59 -0
- package/esm2020/molecules/media-gallery/media-gallery.module.mjs +34 -0
- package/esm2020/molecules/media-gallery/media-renderer/media-renderer.component.mjs +76 -0
- package/{esm2015/molecules/media-gallery/public_api.js → esm2020/molecules/media-gallery/public_api.mjs} +0 -0
- package/esm2020/molecules/media-gallery/registry/media-gallery.registry.mjs +97 -0
- package/{esm2015/molecules/media-gallery/thumbnail/thumbnail-compat.token.js → esm2020/molecules/media-gallery/thumbnail/thumbnail-compat.token.mjs} +0 -0
- package/esm2020/molecules/media-gallery/thumbnail/thumbnail-registration.interface.mjs +2 -0
- package/esm2020/molecules/media-gallery/thumbnail/thumbnail.directive.mjs +88 -0
- package/{esm2015/molecules/modal/animations/modal-animation-state.js → esm2020/molecules/modal/animations/modal-animation-state.mjs} +0 -0
- package/esm2020/molecules/modal/animations/modal-animation.mjs +9 -0
- package/{esm2015/molecules/modal/modal/modal-config.js → esm2020/molecules/modal/modal/modal-config.mjs} +0 -0
- package/esm2020/molecules/modal/modal/modal.component.mjs +79 -0
- package/esm2020/molecules/modal/modal-actions/modal-actions.component.mjs +11 -0
- package/esm2020/molecules/modal/modal-content/modal-content.component.mjs +11 -0
- package/esm2020/molecules/modal/modal-header/modal-header.component.mjs +20 -0
- package/esm2020/molecules/modal/modal-title/modal-title.directive.mjs +22 -0
- package/esm2020/molecules/modal/modal.mjs +2 -0
- package/esm2020/molecules/modal/modal.module.mjs +52 -0
- package/{esm2015/molecules/modal/public_api.js → esm2020/molecules/modal/public_api.mjs} +0 -0
- package/esm2020/molecules/modal/service/modal.service.mjs +70 -0
- package/esm2020/molecules/navbar/navbar.component.mjs +51 -0
- package/esm2020/molecules/navbar/navbar.module.mjs +20 -0
- package/{esm2015/molecules/navbar/public_api.js → esm2020/molecules/navbar/public_api.mjs} +0 -0
- package/{esm2015/molecules/paginator/paginator-errors.js → esm2020/molecules/paginator/paginator-errors.mjs} +0 -0
- package/esm2020/molecules/paginator/paginator.component.mjs +159 -0
- package/esm2020/molecules/paginator/paginator.module.mjs +34 -0
- package/{esm2015/molecules/paginator/public_api.js → esm2020/molecules/paginator/public_api.mjs} +0 -0
- package/{esm2015/molecules/qty-dropdown/public_api.js → esm2020/molecules/qty-dropdown/public_api.mjs} +0 -0
- package/esm2020/molecules/qty-dropdown/qty-dropdown.component.mjs +115 -0
- package/esm2020/molecules/qty-dropdown/qty-dropdown.module.mjs +42 -0
- package/{esm2015/molecules/sidebar/animation/sidebar-animation-state.js → esm2020/molecules/sidebar/animation/sidebar-animation-state.mjs} +0 -0
- package/esm2020/molecules/sidebar/animation/sidebar-animation.mjs +30 -0
- package/{esm2015/molecules/sidebar/helper/sidebar-mode.js → esm2020/molecules/sidebar/helper/sidebar-mode.mjs} +0 -0
- package/{esm2015/molecules/sidebar/public_api.js → esm2020/molecules/sidebar/public_api.mjs} +0 -0
- package/esm2020/molecules/sidebar/sidebar/sidebar.component.mjs +44 -0
- package/esm2020/molecules/sidebar/sidebar-viewport/sidebar-viewport.component.mjs +121 -0
- package/esm2020/molecules/sidebar/sidebar.module.mjs +39 -0
- package/esm2020/navbar/examples/basic-navbar/basic-navbar.component.mjs +12 -0
- package/esm2020/navbar/examples/basic-navbar/basic-navbar.module.mjs +33 -0
- package/esm2020/navbar/examples/contained-navbar/contained-navbar.component.mjs +12 -0
- package/esm2020/navbar/examples/contained-navbar/contained-navbar.module.mjs +33 -0
- package/{esm2015/navbar/examples/daffodil-design-navbar-examples.js → esm2020/navbar/examples/daffodil-design-navbar-examples.mjs} +0 -0
- package/{esm2015/navbar/examples/examples.js → esm2020/navbar/examples/examples.mjs} +0 -0
- package/{esm2015/navbar/examples/index.js → esm2020/navbar/examples/index.mjs} +0 -0
- package/esm2020/navbar/examples/navbar-theming/navbar-theming.component.mjs +28 -0
- package/esm2020/navbar/examples/navbar-theming/navbar-theming.module.mjs +34 -0
- package/{esm2015/navbar/examples/public_api.js → esm2020/navbar/examples/public_api.mjs} +0 -0
- package/esm2020/navbar/examples/raised-navbar/raised-navbar.component.mjs +12 -0
- package/esm2020/navbar/examples/raised-navbar/raised-navbar.module.mjs +30 -0
- package/esm2020/paginator/examples/basic-paginator/basic-paginator.component.mjs +19 -0
- package/esm2020/paginator/examples/daffodil-design-paginator-examples.mjs +5 -0
- package/esm2020/paginator/examples/examples.mjs +5 -0
- package/esm2020/paginator/examples/index.mjs +2 -0
- package/esm2020/paginator/examples/paginator-examples.module.mjs +31 -0
- package/esm2020/paginator/examples/public_api.mjs +4 -0
- package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
- package/esm2020/quantity-field/examples/basic-quantity-field/basic-quantity-field.component.mjs +17 -0
- package/esm2020/quantity-field/examples/basic-quantity-field/basic-quantity-field.module.mjs +37 -0
- package/esm2020/quantity-field/examples/custom-range-quantity-field/custom-range-quantity-field.component.mjs +17 -0
- package/esm2020/quantity-field/examples/custom-range-quantity-field/custom-range-quantity-field.module.mjs +37 -0
- package/esm2020/quantity-field/examples/daffodil-design-quantity-field-examples.mjs +5 -0
- package/esm2020/quantity-field/examples/disabled-quantity-field/disabled-quantity-field.component.mjs +17 -0
- package/esm2020/quantity-field/examples/disabled-quantity-field/disabled-quantity-field.module.mjs +37 -0
- package/{esm2015/quantity-field/examples/index.js → esm2020/quantity-field/examples/index.mjs} +0 -0
- package/esm2020/quantity-field/examples/public_api.mjs +16 -0
- package/esm2020/quantity-field/examples/select-max-quantity-field/select-max-quantity-field.component.mjs +17 -0
- package/esm2020/quantity-field/examples/select-max-quantity-field/select-max-quantity-field.module.mjs +37 -0
- package/esm2020/radio/examples/basic-radio/basic-radio.component.mjs +21 -0
- package/esm2020/radio/examples/basic-radio/basic-radio.module.mjs +31 -0
- package/esm2020/radio/examples/daffodil-design-radio-examples.mjs +5 -0
- package/{esm2015/radio/examples/examples.js → esm2020/radio/examples/examples.mjs} +0 -0
- package/{esm2015/radio/examples/index.js → esm2020/radio/examples/index.mjs} +0 -0
- package/{esm2015/radio/examples/public_api.js → esm2020/radio/examples/public_api.mjs} +0 -0
- package/fesm2015/daffodil-design-accordion-examples.mjs +78 -0
- package/fesm2015/daffodil-design-accordion-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design-article-examples.mjs +150 -0
- package/fesm2015/daffodil-design-article-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design-button-examples.mjs +326 -0
- package/fesm2015/daffodil-design-button-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design-callout-examples.mjs +221 -0
- package/fesm2015/daffodil-design-callout-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design-card-examples.mjs +362 -0
- package/fesm2015/daffodil-design-card-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design-checkbox-examples.mjs +123 -0
- package/fesm2015/daffodil-design-checkbox-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design-container-examples.mjs +66 -0
- package/fesm2015/daffodil-design-container-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design-hero-examples.mjs +218 -0
- package/fesm2015/daffodil-design-hero-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design-image-examples.mjs +89 -0
- package/fesm2015/daffodil-design-image-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design-list-examples.mjs +204 -0
- package/fesm2015/daffodil-design-list-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design-loading-icon-examples.mjs +91 -0
- package/fesm2015/daffodil-design-loading-icon-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design-media-gallery-examples.mjs +86 -0
- package/fesm2015/daffodil-design-media-gallery-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design-modal-examples.mjs +66 -0
- package/fesm2015/daffodil-design-modal-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design-navbar-examples.mjs +180 -0
- package/fesm2015/daffodil-design-navbar-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design-paginator-examples.mjs +57 -0
- package/fesm2015/daffodil-design-paginator-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design-quantity-field-examples.mjs +193 -0
- package/fesm2015/daffodil-design-quantity-field-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design-radio-examples.mjs +62 -0
- package/fesm2015/daffodil-design-radio-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design.mjs +5399 -0
- package/fesm2015/daffodil-design.mjs.map +1 -0
- package/fesm2020/daffodil-design-accordion-examples.mjs +78 -0
- package/fesm2020/daffodil-design-accordion-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design-article-examples.mjs +150 -0
- package/fesm2020/daffodil-design-article-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design-button-examples.mjs +326 -0
- package/fesm2020/daffodil-design-button-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design-callout-examples.mjs +221 -0
- package/fesm2020/daffodil-design-callout-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design-card-examples.mjs +362 -0
- package/fesm2020/daffodil-design-card-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design-checkbox-examples.mjs +123 -0
- package/fesm2020/daffodil-design-checkbox-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design-container-examples.mjs +66 -0
- package/fesm2020/daffodil-design-container-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design-hero-examples.mjs +218 -0
- package/fesm2020/daffodil-design-hero-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design-image-examples.mjs +89 -0
- package/fesm2020/daffodil-design-image-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design-list-examples.mjs +204 -0
- package/fesm2020/daffodil-design-list-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design-loading-icon-examples.mjs +91 -0
- package/fesm2020/daffodil-design-loading-icon-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design-media-gallery-examples.mjs +86 -0
- package/fesm2020/daffodil-design-media-gallery-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design-modal-examples.mjs +66 -0
- package/fesm2020/daffodil-design-modal-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design-navbar-examples.mjs +180 -0
- package/fesm2020/daffodil-design-navbar-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design-paginator-examples.mjs +57 -0
- package/fesm2020/daffodil-design-paginator-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design-quantity-field-examples.mjs +193 -0
- package/fesm2020/daffodil-design-quantity-field-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design-radio-examples.mjs +62 -0
- package/fesm2020/daffodil-design-radio-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design.mjs +5384 -0
- package/fesm2020/daffodil-design.mjs.map +1 -0
- package/hero/examples/compact-hero/compact-hero.component.d.ts +3 -0
- package/hero/examples/compact-hero/compact-hero.module.d.ts +9 -0
- package/hero/examples/daffodil-design-hero-examples.d.ts +1 -0
- package/hero/examples/hero-text-alignment/hero-text-alignment.component.d.ts +3 -0
- package/hero/examples/hero-text-alignment/hero-text-alignment.module.d.ts +9 -0
- package/hero/examples/hero-theming/hero-theming.component.d.ts +3 -0
- package/hero/examples/hero-theming/hero-theming.module.d.ts +9 -0
- package/hero/examples/hero-with-grid/hero-with-grid.component.d.ts +3 -0
- package/hero/examples/hero-with-grid/hero-with-grid.module.d.ts +9 -0
- package/hero/examples/package.json +5 -6
- package/image/examples/basic-image/basic-image.component.d.ts +5 -0
- package/image/examples/basic-image/basic-image.module.d.ts +8 -0
- package/image/examples/daffodil-design-image-examples.d.ts +5 -0
- package/image/examples/index.d.ts +1 -0
- package/image/examples/load-image/load-image.component.d.ts +7 -0
- package/image/examples/load-image/load-image.module.d.ts +9 -0
- package/image/examples/package.json +10 -0
- package/image/examples/public_api.d.ts +2 -0
- package/list/examples/basic-list/basic-list.component.d.ts +3 -0
- package/list/examples/basic-list/basic-list.module.d.ts +7 -0
- package/list/examples/daffodil-design-list-examples.d.ts +1 -4
- package/list/examples/icon-list/icon-list.component.d.ts +3 -0
- package/list/examples/icon-list/icon-list.module.d.ts +8 -0
- package/list/examples/list-examples.module.d.ts +9 -0
- package/list/examples/multiline-list/multiline-list.component.d.ts +3 -0
- package/list/examples/multiline-list/multiline-list.module.d.ts +8 -0
- package/list/examples/nav-list/nav-list.component.d.ts +3 -0
- package/list/examples/nav-list/nav-list.module.d.ts +8 -0
- package/list/examples/package.json +5 -6
- package/loading-icon/examples/daffodil-design-loading-icon-examples.d.ts +1 -1
- package/loading-icon/examples/loading-icon-color/loading-icon-color.component.d.ts +3 -0
- package/loading-icon/examples/loading-icon-color/loading-icon-color.module.d.ts +7 -0
- package/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.component.d.ts +3 -0
- package/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.module.d.ts +6 -0
- package/loading-icon/examples/package.json +5 -6
- package/media-gallery/examples/basic-media-gallery/basic-media-gallery.component.d.ts +3 -0
- package/media-gallery/examples/basic-media-gallery/basic-media-gallery.module.d.ts +6 -0
- package/media-gallery/examples/daffodil-design-media-gallery-examples.d.ts +1 -2
- package/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.component.d.ts +3 -0
- package/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.module.d.ts +6 -0
- package/media-gallery/examples/package.json +5 -6
- package/media-gallery/examples/public_api.d.ts +2 -0
- package/modal/examples/basic-modal/basic-modal.component.d.ts +3 -0
- package/modal/examples/basic-modal/basic-modal.module.d.ts +7 -0
- package/modal/examples/basic-modal/modal-content.component.d.ts +3 -0
- package/modal/examples/daffodil-design-modal-examples.d.ts +1 -3
- package/modal/examples/package.json +5 -6
- package/molecules/accordion/accordion/accordion.component.d.ts +3 -0
- package/molecules/accordion/accordion-item/accordion-item.component.d.ts +3 -0
- package/molecules/accordion/accordion-item-content/accordion-item-content.directive.d.ts +3 -0
- package/molecules/accordion/accordion-item-title/accordion-item-title.directive.d.ts +3 -0
- package/molecules/accordion/accordion.module.d.ts +12 -0
- package/molecules/accordion/nav-accordion-item/nav-accordion-item.component.d.ts +3 -0
- package/molecules/accordion/public_api.d.ts +1 -0
- package/molecules/article/article/article.component.d.ts +3 -0
- package/molecules/article/article-lead/article-lead.directive.d.ts +3 -0
- package/molecules/article/article-meta/article-meta.directive.d.ts +3 -0
- package/molecules/article/article-title/article-title.directive.d.ts +3 -0
- package/molecules/article/article.module.d.ts +9 -0
- package/molecules/backdrop/backdrop/backdrop.component.d.ts +3 -0
- package/molecules/backdrop/backdrop.module.d.ts +6 -0
- package/molecules/button-set/button-set.component.d.ts +3 -0
- package/molecules/button-set/button-set.module.d.ts +5 -0
- package/molecules/callout/callout/callout.component.d.ts +3 -0
- package/molecules/callout/callout-body/callout-body.directive.d.ts +3 -0
- package/molecules/callout/callout-icon/callout-icon.directive.d.ts +3 -0
- package/molecules/callout/callout-subtitle/callout-subtitle.directive.d.ts +3 -0
- package/molecules/callout/callout-tagline/callout-tagline.directive.d.ts +3 -0
- package/molecules/callout/callout-title/callout-title.directive.d.ts +3 -0
- package/molecules/callout/callout.module.d.ts +11 -0
- package/molecules/card/card/card.component.d.ts +3 -0
- package/molecules/card/card-actions/card-actions.directive.d.ts +3 -0
- package/molecules/card/card-content/card-content.directive.d.ts +3 -0
- package/molecules/card/card-icon/card-icon.directive.d.ts +3 -0
- package/molecules/card/card-image/card-image.directive.d.ts +3 -0
- package/molecules/card/card-tagline/card-tagline.directive.d.ts +3 -0
- package/molecules/card/card-title/card-title.directive.d.ts +3 -0
- package/molecules/card/card.module.d.ts +12 -0
- package/molecules/feature/feature/feature.component.d.ts +3 -0
- package/molecules/feature/feature-icon/feature-icon.directive.d.ts +3 -0
- package/molecules/feature/feature-subheader/feature-subheader.directive.d.ts +3 -0
- package/molecules/feature/feature-subtitle/feature-subtitle.directive.d.ts +3 -0
- package/molecules/feature/feature-title/feature-title.directive.d.ts +3 -0
- package/molecules/feature/feature.module.d.ts +10 -0
- package/molecules/hero/hero/hero.component.d.ts +3 -0
- package/molecules/hero/hero-body/hero-body.directive.d.ts +3 -0
- package/molecules/hero/hero-icon/hero-icon.directive.d.ts +3 -0
- package/molecules/hero/hero-subtitle/hero-subtitle.directive.d.ts +3 -0
- package/molecules/hero/hero-tagline/hero-tagline.directive.d.ts +3 -0
- package/molecules/hero/hero-title/hero-title.directive.d.ts +3 -0
- package/molecules/hero/hero.module.d.ts +11 -0
- package/molecules/image-gallery/gallery-image/gallery-image.component.d.ts +3 -0
- package/molecules/image-gallery/image-gallery/image-gallery.component.d.ts +3 -0
- package/molecules/image-gallery/image-gallery.module.d.ts +8 -0
- package/molecules/image-list/image-list.component.d.ts +3 -0
- package/molecules/image-list/image-list.module.d.ts +6 -0
- package/molecules/link-set/link-set/link-set.component.d.ts +3 -0
- package/molecules/link-set/link-set-heading/link-set-heading.directive.d.ts +3 -0
- package/molecules/link-set/link-set-item/link-set-item.component.d.ts +3 -0
- package/molecules/link-set/link-set-subheading/link-set-subheading.directive.d.ts +3 -0
- package/molecules/link-set/link-set.module.d.ts +9 -0
- package/molecules/list/list/list.component.d.ts +4 -1
- package/molecules/list/list-item/list-item.component.d.ts +3 -0
- package/molecules/list/list-subheader/list-subheader.directive.d.ts +3 -0
- package/molecules/list/list.module.d.ts +9 -0
- package/molecules/media-gallery/media-gallery.component.d.ts +3 -0
- package/molecules/media-gallery/media-gallery.module.d.ts +8 -0
- package/molecules/media-gallery/media-renderer/media-renderer.component.d.ts +3 -0
- package/molecules/media-gallery/registry/media-gallery.registry.d.ts +3 -0
- package/molecules/media-gallery/thumbnail/thumbnail.directive.d.ts +3 -0
- package/molecules/modal/modal/modal.component.d.ts +3 -0
- package/molecules/modal/modal-actions/modal-actions.component.d.ts +3 -0
- package/molecules/modal/modal-content/modal-content.component.d.ts +3 -0
- package/molecules/modal/modal-header/modal-header.component.d.ts +3 -0
- package/molecules/modal/modal-title/modal-title.directive.d.ts +3 -0
- package/molecules/modal/modal.module.d.ts +12 -0
- package/molecules/modal/service/modal.service.d.ts +3 -0
- package/molecules/navbar/navbar.component.d.ts +3 -0
- package/molecules/navbar/navbar.module.d.ts +5 -0
- package/molecules/paginator/paginator.component.d.ts +3 -0
- package/molecules/paginator/paginator.module.d.ts +8 -0
- package/molecules/qty-dropdown/qty-dropdown.component.d.ts +3 -0
- package/molecules/qty-dropdown/qty-dropdown.module.d.ts +10 -0
- package/molecules/sidebar/sidebar/sidebar.component.d.ts +3 -0
- package/molecules/sidebar/sidebar-viewport/sidebar-viewport.component.d.ts +3 -0
- package/molecules/sidebar/sidebar.module.d.ts +9 -0
- package/navbar/examples/basic-navbar/basic-navbar.component.d.ts +3 -0
- package/navbar/examples/basic-navbar/basic-navbar.module.d.ts +7 -0
- package/navbar/examples/contained-navbar/contained-navbar.component.d.ts +3 -0
- package/navbar/examples/contained-navbar/contained-navbar.module.d.ts +7 -0
- package/navbar/examples/daffodil-design-navbar-examples.d.ts +1 -0
- package/navbar/examples/navbar-theming/navbar-theming.component.d.ts +3 -0
- package/navbar/examples/navbar-theming/navbar-theming.module.d.ts +8 -0
- package/navbar/examples/package.json +5 -6
- package/navbar/examples/raised-navbar/raised-navbar.component.d.ts +3 -0
- package/navbar/examples/raised-navbar/raised-navbar.module.d.ts +7 -0
- package/package.json +163 -15
- package/paginator/examples/basic-paginator/basic-paginator.component.d.ts +8 -0
- package/paginator/examples/daffodil-design-paginator-examples.d.ts +5 -0
- package/paginator/examples/examples.d.ts +2 -0
- package/paginator/examples/index.d.ts +1 -0
- package/paginator/examples/package.json +10 -0
- package/paginator/examples/paginator-examples.module.d.ts +9 -0
- package/paginator/examples/public_api.d.ts +3 -0
- package/quantity-field/examples/basic-quantity-field/basic-quantity-field.component.d.ts +7 -0
- package/quantity-field/examples/basic-quantity-field/basic-quantity-field.module.d.ts +10 -0
- package/quantity-field/examples/custom-range-quantity-field/custom-range-quantity-field.component.d.ts +7 -0
- package/quantity-field/examples/custom-range-quantity-field/custom-range-quantity-field.module.d.ts +10 -0
- package/quantity-field/examples/daffodil-design-quantity-field-examples.d.ts +1 -4
- package/quantity-field/examples/disabled-quantity-field/disabled-quantity-field.component.d.ts +7 -0
- package/quantity-field/examples/disabled-quantity-field/disabled-quantity-field.module.d.ts +10 -0
- package/quantity-field/examples/package.json +5 -6
- package/quantity-field/examples/public_api.d.ts +10 -5
- package/quantity-field/examples/select-max-quantity-field/select-max-quantity-field.component.d.ts +7 -0
- package/quantity-field/examples/select-max-quantity-field/select-max-quantity-field.module.d.ts +10 -0
- package/radio/examples/basic-radio/basic-radio.component.d.ts +3 -0
- package/radio/examples/basic-radio/basic-radio.module.d.ts +7 -0
- package/radio/examples/daffodil-design-radio-examples.d.ts +1 -2
- package/radio/examples/package.json +5 -6
- package/src/atoms/button/README.md +53 -0
- package/src/atoms/container/README.md +18 -0
- package/src/atoms/form/README.md +0 -0
- package/src/atoms/form/checkbox/README.md +0 -0
- package/src/atoms/form/checkbox-set/README.md +0 -0
- package/src/atoms/form/error-message/README.md +11 -0
- package/src/atoms/form/form-field/README.md +36 -0
- package/src/atoms/form/form-label/README.md +0 -0
- package/src/atoms/form/input/README.md +11 -0
- package/src/atoms/form/quantity-field/README.md +24 -0
- package/src/atoms/form/radio/README.md +55 -0
- package/src/atoms/form/radio-set/README.md +0 -0
- package/src/atoms/form/select/README.md +13 -0
- package/src/atoms/image/README.md +31 -0
- package/src/atoms/loading-icon/README.md +7 -0
- package/src/atoms/progress-indicator/README.md +2 -0
- package/src/molecules/accordion/README.md +21 -0
- package/src/molecules/article/README.md +49 -0
- package/src/molecules/backdrop/README.md +13 -0
- package/src/molecules/button-set/README.md +13 -0
- package/src/molecules/callout/README.md +54 -0
- package/src/molecules/card/README.md +60 -0
- package/src/molecules/feature/README.md +48 -0
- package/src/molecules/hero/README.md +54 -0
- package/src/molecules/image-gallery/README.md +31 -0
- package/src/molecules/image-list/README.md +14 -0
- package/src/molecules/link-set/README.md +44 -0
- package/src/molecules/list/README.md +69 -0
- package/src/molecules/media-gallery/README.md +19 -0
- package/src/molecules/modal/README.md +47 -0
- package/src/molecules/navbar/README.md +41 -0
- package/src/molecules/paginator/README.md +11 -0
- package/src/molecules/qty-dropdown/README.md +0 -0
- package/src/molecules/sidebar/README.md +10 -0
- package/src/scss/README.md +7 -0
- package/accordion/examples/daffodil-design-accordion-examples.metadata.json +0 -1
- package/article/examples/daffodil-design-article-examples.metadata.json +0 -1
- package/bundles/daffodil-design-accordion-examples.umd.js +0 -91
- package/bundles/daffodil-design-accordion-examples.umd.js.map +0 -1
- package/bundles/daffodil-design-accordion-examples.umd.min.js +0 -2
- package/bundles/daffodil-design-accordion-examples.umd.min.js.map +0 -1
- package/bundles/daffodil-design-article-examples.umd.js +0 -530
- package/bundles/daffodil-design-article-examples.umd.js.map +0 -1
- package/bundles/daffodil-design-article-examples.umd.min.js +0 -2
- package/bundles/daffodil-design-article-examples.umd.min.js.map +0 -1
- package/bundles/daffodil-design-button-examples.umd.js +0 -298
- package/bundles/daffodil-design-button-examples.umd.js.map +0 -1
- package/bundles/daffodil-design-button-examples.umd.min.js +0 -2
- package/bundles/daffodil-design-button-examples.umd.min.js.map +0 -1
- package/bundles/daffodil-design-callout-examples.umd.js +0 -195
- package/bundles/daffodil-design-callout-examples.umd.js.map +0 -1
- package/bundles/daffodil-design-callout-examples.umd.min.js +0 -2
- package/bundles/daffodil-design-callout-examples.umd.min.js.map +0 -1
- package/bundles/daffodil-design-card-examples.umd.js +0 -321
- package/bundles/daffodil-design-card-examples.umd.js.map +0 -1
- package/bundles/daffodil-design-card-examples.umd.min.js +0 -2
- package/bundles/daffodil-design-card-examples.umd.min.js.map +0 -1
- package/bundles/daffodil-design-checkbox-examples.umd.js +0 -123
- package/bundles/daffodil-design-checkbox-examples.umd.js.map +0 -1
- package/bundles/daffodil-design-checkbox-examples.umd.min.js +0 -2
- package/bundles/daffodil-design-checkbox-examples.umd.min.js.map +0 -1
- package/bundles/daffodil-design-container-examples.umd.js +0 -65
- package/bundles/daffodil-design-container-examples.umd.js.map +0 -1
- package/bundles/daffodil-design-container-examples.umd.min.js +0 -2
- package/bundles/daffodil-design-container-examples.umd.min.js.map +0 -1
- package/bundles/daffodil-design-hero-examples.umd.js +0 -192
- package/bundles/daffodil-design-hero-examples.umd.js.map +0 -1
- package/bundles/daffodil-design-hero-examples.umd.min.js +0 -2
- package/bundles/daffodil-design-hero-examples.umd.min.js.map +0 -1
- package/bundles/daffodil-design-list-examples.umd.js +0 -509
- package/bundles/daffodil-design-list-examples.umd.js.map +0 -1
- package/bundles/daffodil-design-list-examples.umd.min.js +0 -2
- package/bundles/daffodil-design-list-examples.umd.min.js.map +0 -1
- package/bundles/daffodil-design-loading-icon-examples.umd.js +0 -94
- package/bundles/daffodil-design-loading-icon-examples.umd.js.map +0 -1
- package/bundles/daffodil-design-loading-icon-examples.umd.min.js +0 -2
- package/bundles/daffodil-design-loading-icon-examples.umd.min.js.map +0 -1
- package/bundles/daffodil-design-media-gallery-examples.umd.js +0 -95
- package/bundles/daffodil-design-media-gallery-examples.umd.js.map +0 -1
- package/bundles/daffodil-design-media-gallery-examples.umd.min.js +0 -2
- package/bundles/daffodil-design-media-gallery-examples.umd.min.js.map +0 -1
- package/bundles/daffodil-design-modal-examples.umd.js +0 -80
- package/bundles/daffodil-design-modal-examples.umd.js.map +0 -1
- package/bundles/daffodil-design-modal-examples.umd.min.js +0 -2
- package/bundles/daffodil-design-modal-examples.umd.min.js.map +0 -1
- package/bundles/daffodil-design-navbar-examples.umd.js +0 -177
- package/bundles/daffodil-design-navbar-examples.umd.js.map +0 -1
- package/bundles/daffodil-design-navbar-examples.umd.min.js +0 -2
- package/bundles/daffodil-design-navbar-examples.umd.min.js.map +0 -1
- package/bundles/daffodil-design-quantity-field-examples.umd.js +0 -183
- package/bundles/daffodil-design-quantity-field-examples.umd.js.map +0 -1
- package/bundles/daffodil-design-quantity-field-examples.umd.min.js +0 -2
- package/bundles/daffodil-design-quantity-field-examples.umd.min.js.map +0 -1
- package/bundles/daffodil-design-radio-examples.umd.js +0 -68
- package/bundles/daffodil-design-radio-examples.umd.js.map +0 -1
- package/bundles/daffodil-design-radio-examples.umd.min.js +0 -2
- package/bundles/daffodil-design-radio-examples.umd.min.js.map +0 -1
- package/bundles/daffodil-design.umd.js +0 -5781
- package/bundles/daffodil-design.umd.js.map +0 -1
- package/bundles/daffodil-design.umd.min.js +0 -16
- package/bundles/daffodil-design.umd.min.js.map +0 -1
- package/button/examples/daffodil-design-button-examples.metadata.json +0 -1
- package/callout/examples/daffodil-design-callout-examples.metadata.json +0 -1
- package/card/examples/daffodil-design-card-examples.metadata.json +0 -1
- package/checkbox/examples/daffodil-design-checkbox-examples.metadata.json +0 -1
- package/container/examples/daffodil-design-container-examples.metadata.json +0 -1
- package/daffodil-design.metadata.json +0 -1
- package/esm2015/accordion/examples/basic-accordion/basic-accordion.component.js +0 -12
- package/esm2015/accordion/examples/basic-accordion/basic-accordion.module.js +0 -19
- package/esm2015/accordion/examples/daffodil-design-accordion-examples.js +0 -7
- package/esm2015/accordion/examples/nav-accordion/nav-accordion.component.js +0 -12
- package/esm2015/accordion/examples/nav-accordion/nav-accordion.module.js +0 -19
- package/esm2015/accordion/examples/public_api.js +0 -9
- package/esm2015/article/examples/article-blockquote/article-blockquote.component.js +0 -12
- package/esm2015/article/examples/article-code-block/article-code-block.component.js +0 -12
- package/esm2015/article/examples/article-code-inline/article-code-inline.component.js +0 -12
- package/esm2015/article/examples/article-examples.module.js +0 -21
- package/esm2015/article/examples/article-headings/article-headings.component.js +0 -12
- package/esm2015/article/examples/article-hr/article-hr.component.js +0 -12
- package/esm2015/article/examples/article-lead/article-lead.component.js +0 -12
- package/esm2015/article/examples/article-link/article-link.component.js +0 -12
- package/esm2015/article/examples/article-meta/article-meta.component.js +0 -12
- package/esm2015/article/examples/article-ol/article-ol.component.js +0 -12
- package/esm2015/article/examples/article-table/article-table.component.js +0 -12
- package/esm2015/article/examples/article-ul/article-ul.component.js +0 -12
- package/esm2015/article/examples/daffodil-design-article-examples.js +0 -6
- package/esm2015/atoms/button/button.component.js +0 -134
- package/esm2015/atoms/button/button.module.js +0 -22
- package/esm2015/atoms/container/container.component.js +0 -46
- package/esm2015/atoms/container/container.module.js +0 -19
- package/esm2015/atoms/form/checkbox/checkbox.component.js +0 -131
- package/esm2015/atoms/form/checkbox/checkbox.module.js +0 -28
- package/esm2015/atoms/form/checkbox/cva/checkbox-cva.directive.js +0 -89
- package/esm2015/atoms/form/checkbox-set/checkbox-set.component.js +0 -34
- package/esm2015/atoms/form/error-message/error-message.component.js +0 -12
- package/esm2015/atoms/form/error-message/error-message.module.js +0 -15
- package/esm2015/atoms/form/form-field/form-field/form-field.component.js +0 -100
- package/esm2015/atoms/form/form-field/form-field.module.js +0 -24
- package/esm2015/atoms/form/input/input.component.js +0 -56
- package/esm2015/atoms/form/input/input.module.js +0 -19
- package/esm2015/atoms/form/quantity-field/quantity-field.component.js +0 -120
- package/esm2015/atoms/form/quantity-field/quantity-field.module.js +0 -31
- package/esm2015/atoms/form/quantity-field/quantity-input/quantity-input.component.js +0 -100
- package/esm2015/atoms/form/quantity-field/quantity-select/quantity-select.component.js +0 -80
- package/esm2015/atoms/form/radio/cva/radio-cva.directive.js +0 -84
- package/esm2015/atoms/form/radio/radio.component.js +0 -122
- package/esm2015/atoms/form/radio/radio.module.js +0 -25
- package/esm2015/atoms/form/radio/registry/radio-registry.js +0 -52
- package/esm2015/atoms/form/radio-set/radio-set.component.js +0 -24
- package/esm2015/atoms/form/select/select/select.component.js +0 -60
- package/esm2015/atoms/form/select/select.module.js +0 -19
- package/esm2015/atoms/image/image.component.js +0 -109
- package/esm2015/atoms/image/image.module.js +0 -22
- package/esm2015/atoms/loading-icon/loading-icon.component.js +0 -59
- package/esm2015/atoms/loading-icon/loading-icon.module.js +0 -19
- package/esm2015/atoms/progress-indicator/animation/progress-indicator-animation.js +0 -8
- package/esm2015/atoms/progress-indicator/progress-indicator.component.js +0 -87
- package/esm2015/atoms/progress-indicator/progress-indicator.module.js +0 -15
- package/esm2015/button/examples/basic-button/basic-button.component.js +0 -23
- package/esm2015/button/examples/basic-button/basic-button.module.js +0 -21
- package/esm2015/button/examples/daffodil-design-button-examples.js +0 -12
- package/esm2015/button/examples/icon-button/icon-button.component.js +0 -22
- package/esm2015/button/examples/icon-button/icon-button.module.js +0 -21
- package/esm2015/button/examples/public_api.js +0 -24
- package/esm2015/button/examples/raised-button/raised-button.component.js +0 -23
- package/esm2015/button/examples/raised-button/raised-button.module.js +0 -21
- package/esm2015/button/examples/sizeable-button/sizeable-button.component.js +0 -21
- package/esm2015/button/examples/sizeable-button/sizeable-button.module.js +0 -21
- package/esm2015/button/examples/statusable-button/statusable-button.component.js +0 -27
- package/esm2015/button/examples/statusable-button/statusable-button.module.js +0 -21
- package/esm2015/button/examples/stroked-button/stroked-button.component.js +0 -23
- package/esm2015/button/examples/stroked-button/stroked-button.module.js +0 -21
- package/esm2015/button/examples/underline-button/underline-button.component.js +0 -23
- package/esm2015/button/examples/underline-button/underline-button.module.js +0 -21
- package/esm2015/callout/examples/callout-text-alignment/callout-text-alignment.component.js +0 -25
- package/esm2015/callout/examples/callout-text-alignment/callout-text-alignment.module.js +0 -24
- package/esm2015/callout/examples/callout-theming/callout-theming.component.js +0 -29
- package/esm2015/callout/examples/callout-theming/callout-theming.module.js +0 -23
- package/esm2015/callout/examples/callout-with-grid/callout-with-grid.component.js +0 -17
- package/esm2015/callout/examples/callout-with-grid/callout-with-grid.module.js +0 -24
- package/esm2015/callout/examples/compact-callout/compact-callout.component.js +0 -17
- package/esm2015/callout/examples/compact-callout/compact-callout.module.js +0 -22
- package/esm2015/card/examples/basic-card/basic-card.component.js +0 -17
- package/esm2015/card/examples/basic-card/basic-card.module.js +0 -25
- package/esm2015/card/examples/card-orientation/card-orientation.component.js +0 -24
- package/esm2015/card/examples/card-orientation/card-orientation.module.js +0 -27
- package/esm2015/card/examples/card-theming/card-theming.component.js +0 -31
- package/esm2015/card/examples/card-theming/card-theming.module.js +0 -24
- package/esm2015/card/examples/daffodil-design-card-examples.js +0 -11
- package/esm2015/card/examples/linkable-card/linkable-card.component.js +0 -29
- package/esm2015/card/examples/linkable-card/linkable-card.module.js +0 -27
- package/esm2015/card/examples/public_api.js +0 -21
- package/esm2015/card/examples/raised-card/raised-card.component.js +0 -27
- package/esm2015/card/examples/raised-card/raised-card.module.js +0 -25
- package/esm2015/card/examples/stroked-card/stroked-card.component.js +0 -27
- package/esm2015/card/examples/stroked-card/stroked-card.module.js +0 -27
- package/esm2015/checkbox/examples/basic-checkbox/basic-checkbox.component.js +0 -25
- package/esm2015/checkbox/examples/basic-checkbox/basic-checkbox.module.js +0 -23
- package/esm2015/checkbox/examples/checkbox-set/checkbox-set.component.js +0 -27
- package/esm2015/checkbox/examples/checkbox-set/checkbox-set.module.js +0 -23
- package/esm2015/checkbox/examples/daffodil-design-checkbox-examples.js +0 -9
- package/esm2015/container/examples/container-sizes/container-sizes.component.js +0 -23
- package/esm2015/container/examples/container-sizes/container-sizes.module.js +0 -23
- package/esm2015/core/article-encapsulated/article-encapsulated-mixin.js +0 -12
- package/esm2015/core/breakpoints/breakpoints.js +0 -10
- package/esm2015/core/colorable/colorable-mixin.js +0 -43
- package/esm2015/core/colorable/colorable.js +0 -2
- package/esm2015/core/compactable/compactable-mixin.js +0 -26
- package/esm2015/core/compactable/compactable.js +0 -2
- package/esm2015/core/manage-container-layout/manage-container-layout-mixin.js +0 -14
- package/esm2015/core/mutable/mutable.js +0 -2
- package/esm2015/core/prefix-suffix/prefix-suffix.module.js +0 -19
- package/esm2015/core/prefix-suffix/prefix.directive.js +0 -20
- package/esm2015/core/prefix-suffix/prefixable/prefixable.js +0 -24
- package/esm2015/core/prefix-suffix/suffix.directive.js +0 -20
- package/esm2015/core/prefix-suffix/suffixable/suffixable.js +0 -24
- package/esm2015/core/public_api.js +0 -13
- package/esm2015/core/sizeable/sizeable-mixin.js +0 -32
- package/esm2015/core/sizeable/sizeable.js +0 -9
- package/esm2015/core/skeletonable/skeletonable.js +0 -2
- package/esm2015/core/statusable/statusable-mixin.js +0 -33
- package/esm2015/core/statusable/statusable.js +0 -7
- package/esm2015/core/text-alignable/text-alignable-mixin.js +0 -36
- package/esm2015/core/text-alignable/text-alignable.js +0 -7
- package/esm2015/daffodil-design.js +0 -15
- package/esm2015/hero/examples/compact-hero/compact-hero.component.js +0 -17
- package/esm2015/hero/examples/compact-hero/compact-hero.module.js +0 -26
- package/esm2015/hero/examples/hero-text-alignment/hero-text-alignment.component.js +0 -25
- package/esm2015/hero/examples/hero-text-alignment/hero-text-alignment.module.js +0 -24
- package/esm2015/hero/examples/hero-theming/hero-theming.component.js +0 -20
- package/esm2015/hero/examples/hero-theming/hero-theming.module.js +0 -26
- package/esm2015/hero/examples/hero-with-grid/hero-with-grid.component.js +0 -17
- package/esm2015/hero/examples/hero-with-grid/hero-with-grid.module.js +0 -24
- package/esm2015/list/examples/basic-list/basic-list.component.js +0 -12
- package/esm2015/list/examples/basic-list/basic-list.module.js +0 -21
- package/esm2015/list/examples/daffodil-design-list-examples.js +0 -9
- package/esm2015/list/examples/icon-list/icon-list.component.js +0 -16
- package/esm2015/list/examples/icon-list/icon-list.module.js +0 -23
- package/esm2015/list/examples/list-examples.module.js +0 -24
- package/esm2015/list/examples/multiline-list/multiline-list.component.js +0 -12
- package/esm2015/list/examples/multiline-list/multiline-list.module.js +0 -23
- package/esm2015/list/examples/nav-list/nav-list.component.js +0 -16
- package/esm2015/list/examples/nav-list/nav-list.module.js +0 -23
- package/esm2015/loading-icon/examples/daffodil-design-loading-icon-examples.js +0 -6
- package/esm2015/loading-icon/examples/loading-icon-color/loading-icon-color.component.js +0 -18
- package/esm2015/loading-icon/examples/loading-icon-color/loading-icon-color.module.js +0 -22
- package/esm2015/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.component.js +0 -12
- package/esm2015/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.module.js +0 -19
- package/esm2015/media-gallery/examples/basic-media-gallery/basic-media-gallery.component.js +0 -12
- package/esm2015/media-gallery/examples/basic-media-gallery/basic-media-gallery.module.js +0 -21
- package/esm2015/media-gallery/examples/daffodil-design-media-gallery-examples.js +0 -7
- package/esm2015/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.component.js +0 -12
- package/esm2015/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.module.js +0 -21
- package/esm2015/media-gallery/examples/public_api.js +0 -4
- package/esm2015/modal/examples/basic-modal/basic-modal.component.js +0 -24
- package/esm2015/modal/examples/basic-modal/basic-modal.module.js +0 -22
- package/esm2015/modal/examples/basic-modal/modal-content.component.js +0 -12
- package/esm2015/modal/examples/daffodil-design-modal-examples.js +0 -8
- package/esm2015/molecules/accordion/accordion/accordion.component.js +0 -33
- package/esm2015/molecules/accordion/accordion-item/accordion-item.component.js +0 -52
- package/esm2015/molecules/accordion/accordion-item-content/accordion-item-content.directive.js +0 -18
- package/esm2015/molecules/accordion/accordion-item-title/accordion-item-title.directive.js +0 -18
- package/esm2015/molecules/accordion/accordion.module.js +0 -35
- package/esm2015/molecules/accordion/nav-accordion-item/nav-accordion-item.component.js +0 -72
- package/esm2015/molecules/accordion/public_api.js +0 -6
- package/esm2015/molecules/article/article/article.component.js +0 -30
- package/esm2015/molecules/article/article-lead/article-lead.directive.js +0 -18
- package/esm2015/molecules/article/article-meta/article-meta.directive.js +0 -18
- package/esm2015/molecules/article/article-title/article-title.directive.js +0 -18
- package/esm2015/molecules/article/article.module.js +0 -28
- package/esm2015/molecules/backdrop/backdrop/backdrop.component.js +0 -46
- package/esm2015/molecules/backdrop/backdrop.module.js +0 -22
- package/esm2015/molecules/button-set/button-set.component.js +0 -22
- package/esm2015/molecules/button-set/button-set.module.js +0 -15
- package/esm2015/molecules/callout/callout/callout.component.js +0 -75
- package/esm2015/molecules/callout/callout-body/callout-body.directive.js +0 -18
- package/esm2015/molecules/callout/callout-icon/callout-icon.directive.js +0 -18
- package/esm2015/molecules/callout/callout-subtitle/callout-subtitle.directive.js +0 -18
- package/esm2015/molecules/callout/callout-tagline/callout-tagline.directive.js +0 -18
- package/esm2015/molecules/callout/callout-title/callout-title.directive.js +0 -18
- package/esm2015/molecules/callout/callout.module.js +0 -34
- package/esm2015/molecules/card/card/card.component.js +0 -118
- package/esm2015/molecules/card/card-actions/card-actions.directive.js +0 -18
- package/esm2015/molecules/card/card-content/card-content.directive.js +0 -18
- package/esm2015/molecules/card/card-icon/card-icon.directive.js +0 -18
- package/esm2015/molecules/card/card-image/card-image.directive.js +0 -18
- package/esm2015/molecules/card/card-tagline/card-tagline.directive.js +0 -18
- package/esm2015/molecules/card/card-title/card-title.directive.js +0 -18
- package/esm2015/molecules/card/card.module.js +0 -37
- package/esm2015/molecules/feature/feature/feature.component.js +0 -46
- package/esm2015/molecules/feature/feature-icon/feature-icon.directive.js +0 -18
- package/esm2015/molecules/feature/feature-subheader/feature-subheader.directive.js +0 -18
- package/esm2015/molecules/feature/feature-subtitle/feature-subtitle.directive.js +0 -18
- package/esm2015/molecules/feature/feature-title/feature-title.directive.js +0 -18
- package/esm2015/molecules/feature/feature.module.js +0 -31
- package/esm2015/molecules/hero/hero/hero.component.js +0 -76
- package/esm2015/molecules/hero/hero-body/hero-body.directive.js +0 -18
- package/esm2015/molecules/hero/hero-icon/hero-icon.directive.js +0 -18
- package/esm2015/molecules/hero/hero-subtitle/hero-subtitle.directive.js +0 -18
- package/esm2015/molecules/hero/hero-tagline/hero-tagline.directive.js +0 -18
- package/esm2015/molecules/hero/hero-title/hero-title.directive.js +0 -18
- package/esm2015/molecules/hero/hero.module.js +0 -34
- package/esm2015/molecules/image-gallery/gallery-image/gallery-image.component.js +0 -21
- package/esm2015/molecules/image-gallery/image-gallery/image-gallery.component.js +0 -16
- package/esm2015/molecules/image-gallery/image-gallery.module.js +0 -24
- package/esm2015/molecules/image-list/image-list.component.js +0 -22
- package/esm2015/molecules/image-list/image-list.module.js +0 -19
- package/esm2015/molecules/link-set/link-set/link-set.component.js +0 -44
- package/esm2015/molecules/link-set/link-set-heading/link-set-heading.directive.js +0 -21
- package/esm2015/molecules/link-set/link-set-item/link-set-item.component.js +0 -22
- package/esm2015/molecules/link-set/link-set-subheading/link-set-subheading.directive.js +0 -21
- package/esm2015/molecules/link-set/link-set.module.js +0 -28
- package/esm2015/molecules/list/list/list.component.js +0 -106
- package/esm2015/molecules/list/list-item/list-item.component.js +0 -46
- package/esm2015/molecules/list/list-subheader/list-subheader.directive.js +0 -21
- package/esm2015/molecules/list/list.module.js +0 -28
- package/esm2015/molecules/media-gallery/media-gallery-registration.interface.js +0 -2
- package/esm2015/molecules/media-gallery/media-gallery.component.js +0 -61
- package/esm2015/molecules/media-gallery/media-gallery.module.js +0 -24
- package/esm2015/molecules/media-gallery/media-renderer/media-renderer.component.js +0 -78
- package/esm2015/molecules/media-gallery/registry/media-gallery.registry.js +0 -86
- package/esm2015/molecules/media-gallery/thumbnail/thumbnail-registration.interface.js +0 -2
- package/esm2015/molecules/media-gallery/thumbnail/thumbnail.directive.js +0 -79
- package/esm2015/molecules/modal/animations/modal-animation.js +0 -9
- package/esm2015/molecules/modal/modal/modal.component.js +0 -73
- package/esm2015/molecules/modal/modal-actions/modal-actions.component.js +0 -12
- package/esm2015/molecules/modal/modal-content/modal-content.component.js +0 -12
- package/esm2015/molecules/modal/modal-header/modal-header.component.js +0 -22
- package/esm2015/molecules/modal/modal-title/modal-title.directive.js +0 -18
- package/esm2015/molecules/modal/modal.js +0 -2
- package/esm2015/molecules/modal/modal.module.js +0 -34
- package/esm2015/molecules/modal/service/modal.service.js +0 -73
- package/esm2015/molecules/navbar/navbar.component.js +0 -58
- package/esm2015/molecules/navbar/navbar.module.js +0 -15
- package/esm2015/molecules/paginator/paginator.component.js +0 -161
- package/esm2015/molecules/paginator/paginator.module.js +0 -23
- package/esm2015/molecules/qty-dropdown/qty-dropdown.component.js +0 -110
- package/esm2015/molecules/qty-dropdown/qty-dropdown.module.js +0 -27
- package/esm2015/molecules/sidebar/animation/sidebar-animation.js +0 -30
- package/esm2015/molecules/sidebar/sidebar/sidebar.component.js +0 -50
- package/esm2015/molecules/sidebar/sidebar-viewport/sidebar-viewport.component.js +0 -117
- package/esm2015/molecules/sidebar/sidebar.module.js +0 -26
- package/esm2015/navbar/examples/basic-navbar/basic-navbar.component.js +0 -13
- package/esm2015/navbar/examples/basic-navbar/basic-navbar.module.js +0 -20
- package/esm2015/navbar/examples/contained-navbar/contained-navbar.component.js +0 -13
- package/esm2015/navbar/examples/contained-navbar/contained-navbar.module.js +0 -20
- package/esm2015/navbar/examples/navbar-theming/navbar-theming.component.js +0 -27
- package/esm2015/navbar/examples/navbar-theming/navbar-theming.module.js +0 -21
- package/esm2015/navbar/examples/raised-navbar/raised-navbar.component.js +0 -13
- package/esm2015/navbar/examples/raised-navbar/raised-navbar.module.js +0 -19
- package/esm2015/quantity-field/examples/basic/basic-quantity-field.component.js +0 -17
- package/esm2015/quantity-field/examples/basic/basic-quantity-field.module.js +0 -24
- package/esm2015/quantity-field/examples/customRange/custom-range-quantity-field.component.js +0 -17
- package/esm2015/quantity-field/examples/customRange/custom-range-quantity-field.module.js +0 -24
- package/esm2015/quantity-field/examples/daffodil-design-quantity-field-examples.js +0 -9
- package/esm2015/quantity-field/examples/disabled/disabled-quantity-field.component.js +0 -17
- package/esm2015/quantity-field/examples/disabled/disabled-quantity-field.module.js +0 -24
- package/esm2015/quantity-field/examples/examples.js +0 -11
- package/esm2015/quantity-field/examples/public_api.js +0 -6
- package/esm2015/quantity-field/examples/selectMax/select-max-quantity-field.component.js +0 -17
- package/esm2015/quantity-field/examples/selectMax/select-max-quantity-field.module.js +0 -24
- package/esm2015/radio/examples/basic-radio/basic-radio.component.js +0 -22
- package/esm2015/radio/examples/basic-radio/basic-radio.module.js +0 -22
- package/esm2015/radio/examples/daffodil-design-radio-examples.js +0 -7
- package/fesm2015/daffodil-design-accordion-examples.js +0 -68
- package/fesm2015/daffodil-design-accordion-examples.js.map +0 -1
- package/fesm2015/daffodil-design-article-examples.js +0 -162
- package/fesm2015/daffodil-design-article-examples.js.map +0 -1
- package/fesm2015/daffodil-design-button-examples.js +0 -288
- package/fesm2015/daffodil-design-button-examples.js.map +0 -1
- package/fesm2015/daffodil-design-callout-examples.js +0 -168
- package/fesm2015/daffodil-design-callout-examples.js.map +0 -1
- package/fesm2015/daffodil-design-card-examples.js +0 -287
- package/fesm2015/daffodil-design-card-examples.js.map +0 -1
- package/fesm2015/daffodil-design-checkbox-examples.js +0 -104
- package/fesm2015/daffodil-design-checkbox-examples.js.map +0 -1
- package/fesm2015/daffodil-design-container-examples.js +0 -54
- package/fesm2015/daffodil-design-container-examples.js.map +0 -1
- package/fesm2015/daffodil-design-hero-examples.js +0 -165
- package/fesm2015/daffodil-design-hero-examples.js.map +0 -1
- package/fesm2015/daffodil-design-list-examples.js +0 -157
- package/fesm2015/daffodil-design-list-examples.js.map +0 -1
- package/fesm2015/daffodil-design-loading-icon-examples.js +0 -76
- package/fesm2015/daffodil-design-loading-icon-examples.js.map +0 -1
- package/fesm2015/daffodil-design-media-gallery-examples.js +0 -72
- package/fesm2015/daffodil-design-media-gallery-examples.js.map +0 -1
- package/fesm2015/daffodil-design-modal-examples.js +0 -63
- package/fesm2015/daffodil-design-modal-examples.js.map +0 -1
- package/fesm2015/daffodil-design-navbar-examples.js +0 -142
- package/fesm2015/daffodil-design-navbar-examples.js.map +0 -1
- package/fesm2015/daffodil-design-quantity-field-examples.js +0 -154
- package/fesm2015/daffodil-design-quantity-field-examples.js.map +0 -1
- package/fesm2015/daffodil-design-radio-examples.js +0 -55
- package/fesm2015/daffodil-design-radio-examples.js.map +0 -1
- package/fesm2015/daffodil-design.js +0 -4776
- package/fesm2015/daffodil-design.js.map +0 -1
- package/hero/examples/daffodil-design-hero-examples.metadata.json +0 -1
- package/list/examples/daffodil-design-list-examples.metadata.json +0 -1
- package/loading-icon/examples/daffodil-design-loading-icon-examples.metadata.json +0 -1
- package/media-gallery/examples/daffodil-design-media-gallery-examples.metadata.json +0 -1
- package/modal/examples/daffodil-design-modal-examples.metadata.json +0 -1
- package/navbar/examples/daffodil-design-navbar-examples.metadata.json +0 -1
- package/quantity-field/examples/basic/basic-quantity-field.component.d.ts +0 -4
- package/quantity-field/examples/basic/basic-quantity-field.module.d.ts +0 -2
- package/quantity-field/examples/customRange/custom-range-quantity-field.component.d.ts +0 -4
- package/quantity-field/examples/customRange/custom-range-quantity-field.module.d.ts +0 -2
- package/quantity-field/examples/daffodil-design-quantity-field-examples.metadata.json +0 -1
- package/quantity-field/examples/disabled/disabled-quantity-field.component.d.ts +0 -4
- package/quantity-field/examples/disabled/disabled-quantity-field.module.d.ts +0 -2
- package/quantity-field/examples/examples.d.ts +0 -2
- package/quantity-field/examples/selectMax/select-max-quantity-field.component.d.ts +0 -4
- package/quantity-field/examples/selectMax/select-max-quantity-field.module.d.ts +0 -2
- package/radio/examples/daffodil-design-radio-examples.metadata.json +0 -1
@@ -1,46 +0,0 @@
|
|
1
|
-
import { Component, ChangeDetectionStrategy, HostBinding, ContentChild, ElementRef, } from '@angular/core';
|
2
|
-
import { DaffPrefixDirective, DaffSuffixDirective, } from '../../../core/prefix-suffix/public_api';
|
3
|
-
export class DaffListItemComponent {
|
4
|
-
constructor(elementRef) {
|
5
|
-
this.elementRef = elementRef;
|
6
|
-
/**
|
7
|
-
* @docs-private
|
8
|
-
*/
|
9
|
-
this.class = true;
|
10
|
-
}
|
11
|
-
/**
|
12
|
-
* Sets the role for a regular `<daff-list-item>` to listitem.
|
13
|
-
*
|
14
|
-
* @docs-private
|
15
|
-
*/
|
16
|
-
get role() {
|
17
|
-
return this._isAnchor() ? null : 'listitem';
|
18
|
-
}
|
19
|
-
;
|
20
|
-
_getHostElement() {
|
21
|
-
return this.elementRef.nativeElement;
|
22
|
-
}
|
23
|
-
/** Gets whether a list item has one of the given attributes. */
|
24
|
-
_isAnchor() {
|
25
|
-
return this.elementRef.nativeElement.localName === 'a';
|
26
|
-
}
|
27
|
-
}
|
28
|
-
DaffListItemComponent.decorators = [
|
29
|
-
{ type: Component, args: [{
|
30
|
-
selector: 'daff-list-item' + ',' +
|
31
|
-
'a[daff-list-item]',
|
32
|
-
template: "<ng-container *ngIf=\"_prefix\">\n <ng-content select=\"[daffPrefix]\"></ng-content>\n</ng-container>\n<div class=\"daff-list-item__content\">\n <ng-content></ng-content>\n</div>\n<ng-container *ngIf=\"_suffix\">\n <ng-content select=\"[daffSuffix]\"></ng-content>\n</ng-container>",
|
33
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
34
|
-
},] }
|
35
|
-
];
|
36
|
-
/** @nocollapse */
|
37
|
-
DaffListItemComponent.ctorParameters = () => [
|
38
|
-
{ type: ElementRef }
|
39
|
-
];
|
40
|
-
DaffListItemComponent.propDecorators = {
|
41
|
-
class: [{ type: HostBinding, args: ['class.daff-list-item',] }],
|
42
|
-
_prefix: [{ type: ContentChild, args: [DaffPrefixDirective,] }],
|
43
|
-
_suffix: [{ type: ContentChild, args: [DaffSuffixDirective,] }],
|
44
|
-
role: [{ type: HostBinding, args: ['attr.role',] }]
|
45
|
-
};
|
46
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlzdC1pdGVtLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZGVzaWduL3NyYy9tb2xlY3VsZXMvbGlzdC9saXN0LWl0ZW0vbGlzdC1pdGVtLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUNULHVCQUF1QixFQUN2QixXQUFXLEVBQ1gsWUFBWSxFQUNaLFVBQVUsR0FDWCxNQUFNLGVBQWUsQ0FBQztBQUV2QixPQUFPLEVBQ0wsbUJBQW1CLEVBQ25CLG1CQUFtQixHQUNwQixNQUFNLHdDQUF3QyxDQUFDO0FBVWhELE1BQU0sT0FBTyxxQkFBcUI7SUFnQmhDLFlBQW9CLFVBQXNCO1FBQXRCLGVBQVUsR0FBVixVQUFVLENBQVk7UUFkMUM7O1dBRUc7UUFDa0MsVUFBSyxHQUFHLElBQUksQ0FBQztJQVdMLENBQUM7SUFFOUM7Ozs7T0FJRztJQUNILElBQThCLElBQUk7UUFDaEMs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HMgd2hldGhlciBhIGxpc3QgaXRlbSBoYXMgb25lIG9mIHRoZSBnaXZlbiBhdHRyaWJ1dGVzLiAqL1xuICBwcml2YXRlIF9pc0FuY2hvcigpIHtcbiAgICByZXR1cm4gdGhpcy5lbGVtZW50UmVmLm5hdGl2ZUVsZW1lbnQubG9jYWxOYW1lID09PSAnYSc7XG4gIH1cbn1cbiJdfQ==
|
@@ -1,21 +0,0 @@
|
|
1
|
-
import { Directive, HostBinding, } from '@angular/core';
|
2
|
-
/**
|
3
|
-
* @deprecated
|
4
|
-
*/
|
5
|
-
export class DaffListSubheaderDirective {
|
6
|
-
constructor() {
|
7
|
-
/**
|
8
|
-
* @docs-private
|
9
|
-
*/
|
10
|
-
this.class = true;
|
11
|
-
}
|
12
|
-
}
|
13
|
-
DaffListSubheaderDirective.decorators = [
|
14
|
-
{ type: Directive, args: [{
|
15
|
-
selector: '[daffListSubheader]',
|
16
|
-
},] }
|
17
|
-
];
|
18
|
-
DaffListSubheaderDirective.propDecorators = {
|
19
|
-
class: [{ type: HostBinding, args: ['class.daff-list__subheader',] }]
|
20
|
-
};
|
21
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlzdC1zdWJoZWFkZXIuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9kZXNpZ24vc3JjL21vbGVjdWxlcy9saXN0L2xpc3Qtc3ViaGVhZGVyL2xpc3Qtc3ViaGVhZGVyLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUNULFdBQVcsR0FDWixNQUFNLGVBQWUsQ0FBQztBQUV2Qjs7R0FFRztBQUlILE1BQU0sT0FBTywwQkFBMEI7SUFIdkM7UUFLRTs7V0FFRztRQUN3QyxVQUFLLEdBQUcsSUFBSSxDQUFDO0lBQzFELENBQUM7OztZQVRBLFNBQVMsU0FBQztnQkFDVCxRQUFRLEVBQUUscUJBQXFCO2FBQ2hDOzs7b0JBTUUsV0FBVyxTQUFDLDRCQUE0QiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7XG4gIERpcmVjdGl2ZSxcbiAgSG9zdEJpbmRpbmcsXG59IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG4vKipcbiAqIEBkZXByZWNhdGVkXG4gKi9cbkBEaXJlY3RpdmUoe1xuICBzZWxlY3RvcjogJ1tkYWZmTGlzdFN1YmhlYWRlcl0nLFxufSlcbmV4cG9ydCBjbGFzcyBEYWZmTGlzdFN1YmhlYWRlckRpcmVjdGl2ZSB7XG5cbiAgLyoqXG4gICAqIEBkb2NzLXByaXZhdGVcbiAgICovXG4gIEBIb3N0QmluZGluZygnY2xhc3MuZGFmZi1saXN0X19zdWJoZWFkZXInKSBjbGFzcyA9IHRydWU7XG59XG4iXX0=
|
@@ -1,28 +0,0 @@
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
2
|
-
import { NgModule } from '@angular/core';
|
3
|
-
import { DaffPrefixSuffixModule } from '../../core/prefix-suffix/prefix-suffix.module';
|
4
|
-
import { DaffListItemComponent } from './list-item/list-item.component';
|
5
|
-
import { DaffListSubheaderDirective } from './list-subheader/list-subheader.directive';
|
6
|
-
import { DaffListComponent } from './list/list.component';
|
7
|
-
export class DaffListModule {
|
8
|
-
}
|
9
|
-
DaffListModule.decorators = [
|
10
|
-
{ type: NgModule, args: [{
|
11
|
-
imports: [
|
12
|
-
CommonModule,
|
13
|
-
DaffPrefixSuffixModule,
|
14
|
-
],
|
15
|
-
declarations: [
|
16
|
-
DaffListComponent,
|
17
|
-
DaffListSubheaderDirective,
|
18
|
-
DaffListItemComponent,
|
19
|
-
],
|
20
|
-
exports: [
|
21
|
-
DaffListComponent,
|
22
|
-
DaffListSubheaderDirective,
|
23
|
-
DaffListItemComponent,
|
24
|
-
DaffPrefixSuffixModule,
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lLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vbGlicy9kZXNpZ24vc3JjL21vbGVjdWxlcy9tZWRpYS1nYWxsZXJ5L21lZGlhLWdhbGxlcnktcmVnaXN0cmF0aW9uLmludGVyZmFjZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBEYWZmTWVkaWFHYWxsZXJ5UmVnaXN0cmF0aW9uIHtcblx0bmFtZTogc3RyaW5nO1xufVxuIl19
|
@@ -1,61 +0,0 @@
|
|
1
|
-
import { Component, HostBinding, ChangeDetectionStrategy, Input, ElementRef, Renderer2, } from '@angular/core';
|
2
|
-
import { daffArticleEncapsulatedMixin } from '../../core/article-encapsulated/public_api';
|
3
|
-
import { DAFF_MEDIA_GALLERY_TOKEN } from './media-gallery-token';
|
4
|
-
import { DaffMediaGalleryRegistry } from './registry/media-gallery.registry';
|
5
|
-
let uniqueGalleryId = 0;
|
6
|
-
/**
|
7
|
-
* An _elementRef and an instance of renderer2 are needed for the link set mixins
|
8
|
-
*/
|
9
|
-
class DaffMediaGalleryBase {
|
10
|
-
constructor(_elementRef, _renderer) {
|
11
|
-
this._elementRef = _elementRef;
|
12
|
-
this._renderer = _renderer;
|
13
|
-
}
|
14
|
-
}
|
15
|
-
const _daffMediaGalleryBase = daffArticleEncapsulatedMixin((DaffMediaGalleryBase));
|
16
|
-
export class DaffMediaGalleryComponent extends _daffMediaGalleryBase {
|
17
|
-
constructor(elementRef, renderer, registry) {
|
18
|
-
super(elementRef, renderer);
|
19
|
-
this.elementRef = elementRef;
|
20
|
-
this.renderer = renderer;
|
21
|
-
this.registry = registry;
|
22
|
-
/**
|
23
|
-
* Adds a class for styling the media gallery
|
24
|
-
*/
|
25
|
-
this.class = true;
|
26
|
-
/**
|
27
|
-
* The name of the gallery
|
28
|
-
*/
|
29
|
-
this.name = `${uniqueGalleryId}`;
|
30
|
-
uniqueGalleryId++;
|
31
|
-
}
|
32
|
-
ngOnInit() {
|
33
|
-
this.registry.add(this);
|
34
|
-
}
|
35
|
-
ngOnDestroy() {
|
36
|
-
this.registry.remove(this);
|
37
|
-
}
|
38
|
-
}
|
39
|
-
DaffMediaGalleryComponent.decorators = [
|
40
|
-
{ type: Component, args: [{
|
41
|
-
selector: 'daff-media-gallery',
|
42
|
-
template: "<div class=\"daff-media-gallery__thumbnails\">\n\t<ng-content select=\"[daffThumbnail]\"></ng-content>\n</div>\n<div class=\"daff-media-gallery__selected-thumbnail\">\n\t<daff-media-renderer></daff-media-renderer>\n</div>",
|
43
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
44
|
-
providers: [
|
45
|
-
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
46
|
-
{ provide: DAFF_MEDIA_GALLERY_TOKEN, useExisting: DaffMediaGalleryComponent },
|
47
|
-
],
|
48
|
-
styles: [":host(.daff-media-gallery){display:flex;flex-direction:column}@media (min-width:1024px){:host(.daff-media-gallery){flex-direction:row}}:host(.daff-media-gallery) ::ng-deep .daff-thumbnail{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;display:inline-block;height:64px;width:64px;margin:0 2px;max-width:100%;overflow:hidden;user-select:none}@media (min-width:480px){:host(.daff-media-gallery) ::ng-deep .daff-thumbnail{height:72px;width:72px}}@media (min-width:1024px){:host(.daff-media-gallery) ::ng-deep .daff-thumbnail{display:block;margin:0 0 4px;height:80px;width:80px}}.daff-media-gallery__thumbnails{margin:0 -2px;max-height:100%;order:2}@media (min-width:1024px){.daff-media-gallery__thumbnails{margin:0 8px 0 0;order:1}}.daff-media-gallery__selected-thumbnail{display:block;flex-grow:1;order:1}@media (min-width:1024px){.daff-media-gallery__selected-thumbnail{order:2}}"]
|
49
|
-
},] }
|
50
|
-
];
|
51
|
-
/** @nocollapse */
|
52
|
-
DaffMediaGalleryComponent.ctorParameters = () => [
|
53
|
-
{ type: ElementRef },
|
54
|
-
{ type: Renderer2 },
|
55
|
-
{ type: DaffMediaGalleryRegistry }
|
56
|
-
];
|
57
|
-
DaffMediaGalleryComponent.propDecorators = {
|
58
|
-
class: [{ type: HostBinding, args: ['class.daff-media-gallery',] }],
|
59
|
-
name: [{ type: Input }]
|
60
|
-
};
|
61
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVkaWEtZ2FsbGVyeS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2Rlc2lnbi9zcmMvbW9sZWN1bGVzL21lZGlhLWdhbGxlcnkvbWVkaWEtZ2FsbGVyeS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCxXQUFXLEVBQ1gsdUJBQXVCLEVBQ3ZCLEtBQUssRUFHTCxVQUFVLEVBQ1YsU0FBUyxHQUNWLE1BQU0sZUFBZSxDQUFDO0FBRXZCLE9BQU8sRUFBRSw0QkFBNEIsRUFBRSxNQUFNLDRDQUE0QyxDQUFDO0FBRTFGLE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBQ2pFLE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLG1DQUFtQyxDQUFDO0FBRTdFLElBQUksZUFBZSxHQUFHLENBQUMsQ0FBQztBQUV4Qjs7R0FFRztBQUNILE1BQU0sb0JBQW9CO0lBQ3hCLFlBQW1CLFdBQXVCLEVBQVMsU0FBb0I7UUFBcEQsZ0JBQVcsR0FBWCxXQUFXLENBQVk7UUFBUyxjQUFTLEdBQVQsU0FBUyxDQUFXO0lBQUcsQ0FBQztDQUM1RTtBQUVELE1BQU0scUJBQXFCLEdBQUcsNEJBQTRCLENBQUMsQ0FBQyxvQkFBb0IsQ0FBQyxDQUFDLENBQUM7QUFZbkY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dHJ5OiBEYWZmTWVkaWFHYWxsZXJ5UmVnaXN0cnksXG5cdCkge1xuXHQgIFx0c3VwZXIoZWxlbWVudFJlZiwgcmVuZGVyZXIpO1xuXHQgIFx0dW5pcXVlR2FsbGVyeUlkKys7XG5cdH1cblxuXHRuZ09uSW5pdCgpIHtcblx0ICB0aGlzLnJlZ2lzdHJ5LmFkZCh0aGlzKTtcblx0fVxuXG5cdG5nT25EZXN0cm95KCkge1xuXHQgIHRoaXMucmVnaXN0cnkucmVtb3ZlKHRoaXMpO1xuXHR9XG59XG4iXX0=
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
2
|
-
import { NgModule } from '@angular/core';
|
3
|
-
import { DaffMediaGalleryComponent } from './media-gallery.component';
|
4
|
-
import { DaffMediaRendererComponent } from './media-renderer/media-renderer.component';
|
5
|
-
import { DaffThumbnailDirective } from './thumbnail/thumbnail.directive';
|
6
|
-
export class DaffMediaGalleryModule {
|
7
|
-
}
|
8
|
-
DaffMediaGalleryModule.decorators = [
|
9
|
-
{ type: NgModule, args: [{
|
10
|
-
declarations: [
|
11
|
-
DaffMediaGalleryComponent,
|
12
|
-
DaffThumbnailDirective,
|
13
|
-
DaffMediaRendererComponent,
|
14
|
-
],
|
15
|
-
imports: [
|
16
|
-
CommonModule,
|
17
|
-
],
|
18
|
-
exports: [
|
19
|
-
DaffThumbnailDirective,
|
20
|
-
DaffMediaGalleryComponent,
|
21
|
-
],
|
22
|
-
},] }
|
23
|
-
];
|
24
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVkaWEtZ2FsbGVyeS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2Rlc2lnbi9zcmMvbW9sZWN1bGVzL21lZGlhLWdhbGxlcnkvbWVkaWEtZ2FsbGVyeS5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXB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XRpb25zOiBbXG4gICAgRGFmZk1lZGlhR2FsbGVyeUNvbXBvbmVudCxcbiAgICBEYWZmVGh1bWJuYWlsRGlyZWN0aXZlLFxuICAgIERhZmZNZWRpYVJlbmRlcmVyQ29tcG9uZW50LFxuICBdLFxuICBpbXBvcnRzOiBbXG4gICAgQ29tbW9uTW9kdWxlLFxuICBdLFxuICBleHBvcnRzOiBbXG4gICAgRGFmZlRodW1ibmFpbERpcmVjdGl2ZSxcbiAgICBEYWZmTWVkaWFHYWxsZXJ5Q29tcG9uZW50LFxuICBdLFxufSlcbmV4cG9ydCBjbGFzcyBEYWZmTWVkaWFHYWxsZXJ5TW9kdWxlIHt9XG4iXX0=
|
@@ -1,78 +0,0 @@
|
|
1
|
-
import { Component, ComponentFactoryResolver, ViewChild, ViewContainerRef, TemplateRef, ChangeDetectionStrategy, Inject, } from '@angular/core';
|
2
|
-
import { Subject } from 'rxjs';
|
3
|
-
import { takeUntil } from 'rxjs/operators';
|
4
|
-
import { DAFF_MEDIA_GALLERY_TOKEN } from '../media-gallery-token';
|
5
|
-
import { DaffMediaGalleryRegistry } from '../registry/media-gallery.registry';
|
6
|
-
/**
|
7
|
-
* Dynamically renders the selected `DaffThumbnailDirective` in a `daff-media-gallery` any time the selected thumbnail
|
8
|
-
* changes.
|
9
|
-
*/
|
10
|
-
export class DaffMediaRendererComponent {
|
11
|
-
constructor(componentFactoryResolver, registry, gallery) {
|
12
|
-
this.componentFactoryResolver = componentFactoryResolver;
|
13
|
-
this.registry = registry;
|
14
|
-
this.gallery = gallery;
|
15
|
-
/**
|
16
|
-
* Private tracker for indicating when the component is destroyed.
|
17
|
-
*/
|
18
|
-
this._destroy$ = new Subject();
|
19
|
-
}
|
20
|
-
ngOnInit() {
|
21
|
-
this.registry.galleries[this.gallery.name]
|
22
|
-
.pipe(takeUntil(this._destroy$))
|
23
|
-
.subscribe((gallery) => {
|
24
|
-
/**
|
25
|
-
* Clear out the slot for the dynamically rendered thumbnail
|
26
|
-
*/
|
27
|
-
this.slot.clear();
|
28
|
-
const _selectedThumbnail = gallery.thumbnails.filter(media => media.selected).shift();
|
29
|
-
/**
|
30
|
-
* If there's no selected media, render nothing.
|
31
|
-
*/
|
32
|
-
if (!_selectedThumbnail) {
|
33
|
-
return;
|
34
|
-
}
|
35
|
-
const _selectedThumbnailComponent = _selectedThumbnail.component;
|
36
|
-
/**
|
37
|
-
* Create the component to insert.
|
38
|
-
*/
|
39
|
-
const component = this.componentFactoryResolver.resolveComponentFactory(_selectedThumbnailComponent.constructor);
|
40
|
-
const componentRef = this.slot.createComponent(component);
|
41
|
-
/**
|
42
|
-
* Fill the component with it's values from the original component
|
43
|
-
*/
|
44
|
-
component.inputs.forEach(input => {
|
45
|
-
componentRef.instance[input.propName] = _selectedThumbnailComponent[input.propName];
|
46
|
-
});
|
47
|
-
/**
|
48
|
-
* Trigger a change detection on the component tree, outside the cycle to address
|
49
|
-
* the fact that the component was created outside a typical CD loop.
|
50
|
-
*/
|
51
|
-
componentRef.changeDetectorRef.detectChanges();
|
52
|
-
});
|
53
|
-
}
|
54
|
-
/**
|
55
|
-
* Used to unsubscribe from the dynamic component.
|
56
|
-
*/
|
57
|
-
ngOnDestroy() {
|
58
|
-
this._destroy$.next(true);
|
59
|
-
this._destroy$.unsubscribe();
|
60
|
-
}
|
61
|
-
}
|
62
|
-
DaffMediaRendererComponent.decorators = [
|
63
|
-
{ type: Component, args: [{
|
64
|
-
selector: 'daff-media-renderer',
|
65
|
-
template: "<ng-template></ng-template>\n",
|
66
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
67
|
-
},] }
|
68
|
-
];
|
69
|
-
/** @nocollapse */
|
70
|
-
DaffMediaRendererComponent.ctorParameters = () => [
|
71
|
-
{ type: ComponentFactoryResolver },
|
72
|
-
{ type: DaffMediaGalleryRegistry },
|
73
|
-
{ type: undefined, decorators: [{ type: Inject, args: [DAFF_MEDIA_GALLERY_TOKEN,] }] }
|
74
|
-
];
|
75
|
-
DaffMediaRendererComponent.propDecorators = {
|
76
|
-
slot: [{ type: ViewChild, args: [TemplateRef, { static: true, read: ViewContainerRef },] }]
|
77
|
-
};
|
78
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVkaWEtcmVuZGVyZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9kZXNpZ24vc3JjL21vbGVjdWxlcy9tZWRpYS1nYWxsZXJ5L21lZGlhLXJlbmRlcmVyL21lZGlhLXJlbmRlcmVyLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUVULHdCQUF3QixFQUV4QixTQUFTLEVBQ1QsZ0JBQWdCLEVBQ2hCLFdBQVcsRUFDWCx1QkFBdUIsRUFFdkIsTUFBTSxHQUNQLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFDL0IsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRzNDLE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQ2xFLE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLG9DQUFvQyxDQUFDO0FBRTlFOzs7R0FHRztBQU1ILE1BQU0sT0FBTywwQkFBMEI7SUFPcEMsWUFDUyx3QkFBa0QsRUFDbEQsUUFBa0MsRUFDQSxPQUFxQztRQUZ2RSw2QkFBd0IsR0FBeEIsd0JBQXdCLENBQTBCO1FBQ2xELGFBQVEsR0FBUixRQUFRLENBQTBCO1FBQ0EsWUFBTyxHQUFQLE9BQU8sQ0FBOEI7UUFSakY7O1dBRUc7UUFDTSxjQUFTLEdBQUcsSUFBSSxPQUFPLEVBQUUsQ0FBQztJQU0vQixDQUFD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IF9zZWxlY3RlZFRodW1ibmFpbC5jb21wb25lbnQ7XG5cbiAgICAgICAgLyoqXG4gICAgICAgICAqIENyZWF0ZSB0aGUgY29tcG9uZW50IHRvIGluc2VydC5cbiAgICAgICAgICovXG4gICAgICAgIGNvbnN0IGNvbXBvbmVudCA9IHRoaXMuY29tcG9uZW50RmFjdG9yeVJlc29sdmVyLnJlc29sdmVDb21wb25lbnRGYWN0b3J5KFxuICAgICAgICA8VHlwZTx1bmtub3duPj5fc2VsZWN0ZWRUaHVtYm5haWxDb21wb25lbnQuY29uc3RydWN0b3IsXG4gICAgICAgICk7XG4gICAgICAgIGNvbnN0IGNvbXBvbmVudFJlZiA9IHRoaXMuc2xvdC5jcmVhdGVDb21wb25lbnQoY29tcG9uZW50KTtcblxuICAgICAgICAvKipcbiAgICAgICAgICogRmlsbCB0aGUgY29tcG9uZW50IHdpdGggaXQncyB2YWx1ZXMgZnJvbSB0aGUgb3JpZ2luYWwgY29tcG9uZW50XG4gICAgICAgICAqL1xuICAgICAgICBjb21wb25lbnQuaW5wdXRzLmZvckVhY2goaW5wdXQgPT4ge1xuICAgICAgICAgIGNvbXBvbmVudFJlZi5pbnN0YW5jZVtpbnB1dC5wcm9wTmFtZV0gPSBfc2VsZWN0ZWRUaHVtYm5haWxDb21wb25lbnRbaW5wdXQucHJvcE5hbWVdO1xuICAgICAgICB9KTtcblxuICAgICAgICAvKipcbiAgICAgICAgICogVHJpZ2dlciBhIGNoYW5nZSBkZXRlY3Rpb24gb24gdGhlIGNvbXBvbmVudCB0cmVlLCBvdXRzaWRlIHRoZSBjeWNsZSB0byBhZGRyZXNzXG4gICAgICAgICAqIHRoZSBmYWN0IHRoYXQgdGhlIGNvbXBvbmVudCB3YXMgY3JlYXRlZCBvdXRzaWRlIGEgdHlwaWNhbCBDRCBsb29wLlxuICAgICAgICAgKi9cbiAgICAgICAgY29tcG9uZW50UmVmLmNoYW5nZURldGVjdG9yUmVmLmRldGVjdENoYW5nZXMoKTtcbiAgICAgIH0pO1xuICB9XG5cbiAgLyoqXG4gICAqIFVzZWQgdG8gdW5zdWJzY3JpYmUgZnJvbSB0aGUgZHluYW1pYyBjb21wb25lbnQuXG4gICAqL1xuICBuZ09uRGVzdHJveSgpIHtcbiAgICB0aGlzLl9kZXN0cm95JC5uZXh0KHRydWUpO1xuICAgIHRoaXMuX2Rlc3Ryb3kkLnVuc3Vic2NyaWJlKCk7XG4gIH1cbn1cblxuIl19
|
@@ -1,86 +0,0 @@
|
|
1
|
-
import { Injectable } from '@angular/core';
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
3
|
-
import * as i0 from "@angular/core";
|
4
|
-
export const isGallery = (element) => !('gallery' in element);
|
5
|
-
export class DaffMediaGalleryRegistry {
|
6
|
-
constructor() {
|
7
|
-
this.galleries = {};
|
8
|
-
}
|
9
|
-
/**
|
10
|
-
* @description
|
11
|
-
* Adds a media element to the internal registry.
|
12
|
-
*/
|
13
|
-
add(gallery, thumbnail) {
|
14
|
-
if (this.galleries[gallery.name]) {
|
15
|
-
let newGallery = this.galleries[gallery.name].getValue();
|
16
|
-
if (thumbnail) {
|
17
|
-
newGallery = Object.assign(Object.assign({}, newGallery), { thumbnails: [
|
18
|
-
...newGallery.thumbnails.filter(t => t !== thumbnail),
|
19
|
-
thumbnail,
|
20
|
-
] });
|
21
|
-
}
|
22
|
-
this.galleries[gallery.name].next(newGallery);
|
23
|
-
}
|
24
|
-
else {
|
25
|
-
this.galleries[gallery.name] = new BehaviorSubject({
|
26
|
-
gallery,
|
27
|
-
thumbnails: thumbnail ? [thumbnail] : [],
|
28
|
-
});
|
29
|
-
}
|
30
|
-
if (this.galleries[gallery.name].getValue().thumbnails.length === 1) {
|
31
|
-
thumbnail.select();
|
32
|
-
}
|
33
|
-
}
|
34
|
-
/**
|
35
|
-
* @description
|
36
|
-
* Removes a thumbnail or gallery from the internal registry.
|
37
|
-
*/
|
38
|
-
remove(element) {
|
39
|
-
if (isGallery(element)) {
|
40
|
-
this.removeGallery(element);
|
41
|
-
}
|
42
|
-
else {
|
43
|
-
this.removeThumbnail(element);
|
44
|
-
}
|
45
|
-
}
|
46
|
-
removeThumbnail(thumbnail) {
|
47
|
-
if (!this.galleries[thumbnail.gallery.name]) {
|
48
|
-
return;
|
49
|
-
}
|
50
|
-
const gallery = this.galleries[thumbnail.gallery.name].getValue();
|
51
|
-
const index = gallery.thumbnails.indexOf(thumbnail);
|
52
|
-
if (index === -1) {
|
53
|
-
return;
|
54
|
-
}
|
55
|
-
this.galleries[thumbnail.gallery.name].next(Object.assign(Object.assign({}, gallery), { thumbnails: [
|
56
|
-
...gallery.thumbnails.slice(0, index),
|
57
|
-
...gallery.thumbnails.slice(index + 1),
|
58
|
-
] }));
|
59
|
-
}
|
60
|
-
removeGallery(gallery) {
|
61
|
-
delete this.galleries[gallery.name];
|
62
|
-
}
|
63
|
-
/**
|
64
|
-
* @description
|
65
|
-
* Selects a media element for a given gallery.
|
66
|
-
*/
|
67
|
-
select(thumbnail) {
|
68
|
-
if (!this.galleries[thumbnail.gallery.name]) {
|
69
|
-
return;
|
70
|
-
}
|
71
|
-
const gallery = this.galleries[thumbnail.gallery.name].getValue();
|
72
|
-
const index = gallery.thumbnails.indexOf(thumbnail);
|
73
|
-
if (thumbnail.selected || index === -1) {
|
74
|
-
return;
|
75
|
-
}
|
76
|
-
this.galleries[thumbnail.gallery.name].next(Object.assign(Object.assign({}, gallery), { thumbnails: [
|
77
|
-
...gallery.thumbnails.filter(m => m !== thumbnail).map(m => m.deselect()),
|
78
|
-
thumbnail.select(),
|
79
|
-
] }));
|
80
|
-
}
|
81
|
-
}
|
82
|
-
/** @nocollapse */ DaffMediaGalleryRegistry.ɵprov = i0.ɵɵdefineInjectable({ factory: function DaffMediaGalleryRegistry_Factory() { return new DaffMediaGalleryRegistry(); }, token: DaffMediaGalleryRegistry, providedIn: "root" });
|
83
|
-
DaffMediaGalleryRegistry.decorators = [
|
84
|
-
{ type: Injectable, args: [{ providedIn: 'root' },] }
|
85
|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mcm9tICcuLi9tZWRpYS1nYWxsZXJ5LXJlZ2lzdHJhdGlvbi5pbnRlcmZhY2UnO1xuXG5leHBvcnQgaW50ZXJmYWNlIERhZmZUaHVtYm5haWxSZWdpc3RyYXRpb24ge1xuXHRnYWxsZXJ5OiBEYWZmTWVkaWFHYWxsZXJ5UmVnaXN0cmF0aW9uO1xuXHRzZWxlY3RlZDogYm9vbGVhbjtcblx0Y29tcG9uZW50OiBUeXBlPHVua25vd24+O1xuXHRzZWxlY3Q6ICgpID0+IERhZmZUaHVtYm5haWxSZWdpc3RyYXRpb247XG5cdGRlc2VsZWN0OiAoKSA9PiBEYWZmVGh1bWJuYWlsUmVnaXN0cmF0aW9uO1xufVxuIl19
|
@@ -1,79 +0,0 @@
|
|
1
|
-
import { Directive, Inject, Type, HostBinding, HostListener, Output, EventEmitter, ChangeDetectorRef, } from '@angular/core';
|
2
|
-
import { DAFF_MEDIA_GALLERY_TOKEN } from '../media-gallery-token';
|
3
|
-
import { DaffMediaGalleryRegistry } from '../registry/media-gallery.registry';
|
4
|
-
import { daffThumbnailCompatToken } from './thumbnail-compat.token';
|
5
|
-
/**
|
6
|
-
* A directive marking thumbnails for the `DaffMediaRendererComponent`. Needs to be wrapped in a `daff-media-gallery` component
|
7
|
-
* and needs to be placed on a component that is provided as a `daffThumbnailCompatToken`.
|
8
|
-
*/
|
9
|
-
export class DaffThumbnailDirective {
|
10
|
-
constructor(component, cd, registry, gallery) {
|
11
|
-
this.component = component;
|
12
|
-
this.cd = cd;
|
13
|
-
this.registry = registry;
|
14
|
-
this.gallery = gallery;
|
15
|
-
/**
|
16
|
-
* Adds a class for styling a thumbnail
|
17
|
-
*/
|
18
|
-
this.class = true;
|
19
|
-
/**
|
20
|
-
* A prop for determining whether or not the media element is selected.
|
21
|
-
*/
|
22
|
-
this.selected = false;
|
23
|
-
/**
|
24
|
-
* An event that fires after the media element becomes selected.
|
25
|
-
*/
|
26
|
-
this.becameSelected = new EventEmitter();
|
27
|
-
}
|
28
|
-
/**
|
29
|
-
* Adds a class for styling a selected thumbnail
|
30
|
-
*/
|
31
|
-
get selectedClass() {
|
32
|
-
return this.selected;
|
33
|
-
}
|
34
|
-
;
|
35
|
-
/**
|
36
|
-
* Adds a click event to trigger selection of the media element.
|
37
|
-
*
|
38
|
-
* @param event: MouseEvent
|
39
|
-
*/
|
40
|
-
onClick($event) {
|
41
|
-
this.registry.select(this);
|
42
|
-
}
|
43
|
-
ngOnInit() {
|
44
|
-
this.registry.add(this.gallery, this);
|
45
|
-
}
|
46
|
-
ngOnDestroy() {
|
47
|
-
this.registry.remove(this);
|
48
|
-
}
|
49
|
-
select() {
|
50
|
-
this.selected = true;
|
51
|
-
this.becameSelected.emit();
|
52
|
-
this.cd.markForCheck();
|
53
|
-
return this;
|
54
|
-
}
|
55
|
-
deselect() {
|
56
|
-
this.selected = false;
|
57
|
-
this.cd.markForCheck();
|
58
|
-
return this;
|
59
|
-
}
|
60
|
-
}
|
61
|
-
DaffThumbnailDirective.decorators = [
|
62
|
-
{ type: Directive, args: [{
|
63
|
-
selector: '[daffThumbnail]',
|
64
|
-
},] }
|
65
|
-
];
|
66
|
-
/** @nocollapse */
|
67
|
-
DaffThumbnailDirective.ctorParameters = () => [
|
68
|
-
{ type: Type, decorators: [{ type: Inject, args: [daffThumbnailCompatToken,] }] },
|
69
|
-
{ type: ChangeDetectorRef },
|
70
|
-
{ type: DaffMediaGalleryRegistry },
|
71
|
-
{ type: undefined, decorators: [{ type: Inject, args: [DAFF_MEDIA_GALLERY_TOKEN,] }] }
|
72
|
-
];
|
73
|
-
DaffThumbnailDirective.propDecorators = {
|
74
|
-
selectedClass: [{ type: HostBinding, args: ['class.daff-thumbnail--selected',] }],
|
75
|
-
class: [{ type: HostBinding, args: ['class.daff-thumbnail',] }],
|
76
|
-
becameSelected: [{ type: Output }],
|
77
|
-
onClick: [{ type: HostListener, args: ['click', ['$event'],] }]
|
78
|
-
};
|
79
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2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gIHJldHVybiB0aGlzO1xuXHR9XG59XG4iXX0=
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { animate, state, style, transition, trigger, } from '@angular/animations';
|
2
|
-
export const daffFadeAnimations = {
|
3
|
-
fade: trigger('fade', [
|
4
|
-
state('open', style({ opacity: 1 })),
|
5
|
-
state('closed', style({ opacity: 0 })),
|
6
|
-
transition('open <=> closed', animate('400ms cubic-bezier(0.25, 0.8, 0.25, 1)')),
|
7
|
-
]),
|
8
|
-
};
|
9
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtYW5pbWF0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9kZXNpZ24vc3JjL21vbGVjdWxlcy9tb2RhbC9hbmltYXRpb25zL21vZGFsLWFuaW1hdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsT0FBTyxFQUNQLEtBQUssRUFDTCxLQUFLLEVBQ0wsVUFBVSxFQUNWLE9BQU8sR0FFUixNQUFNLHFCQUFxQixDQUFDO0FBRTdCLE1BQU0sQ0FBQyxNQUFNLGtCQUFrQixHQUUzQjtJQUNGLElBQUksRUFBRSxPQUFPLENBQUMsTUFBTSxFQUFFO1FBQ3BCLEtBQUssQ0FBQyxNQUFNLEVBQUUsS0FBSyxDQUFDLEVBQUUsT0FBTyxFQUFFLENBQUMsRUFBRSxDQUFDLENBQUM7UUFDcEMsS0FBSyxDQUFDLFFBQVEsRUFBRSxLQUFLLENBQUMsRUFBRSxPQUFPLEVBQUUsQ0FBQyxFQUFFLENBQUMsQ0FBQztRQUN0QyxVQUFVLENBQUMsaUJBQWlCLEVBQUUsT0FBTyxDQUFDLHdDQUF3QyxDQUFDLENBQUM7S0FDakYsQ0FBQztDQUNILENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge1xuICBhbmltYXRlLFxuICBzdGF0ZSxcbiAgc3R5bGUsXG4gIHRyYW5zaXRpb24sXG4gIHRyaWdnZXIsXG4gIEFuaW1hdGlvblRyaWdnZXJNZXRhZGF0YSxcbn0gZnJvbSAnQGFuZ3VsYXIvYW5pbWF0aW9ucyc7XG5cbmV4cG9ydCBjb25zdCBkYWZmRmFkZUFuaW1hdGlvbnM6IHtcblx0cmVhZG9ubHkgZmFkZTogQW5pbWF0aW9uVHJpZ2dlck1ldGFkYXRhO1xufSA9IHtcbiAgZmFkZTogdHJpZ2dlcignZmFkZScsIFtcbiAgICBzdGF0ZSgnb3BlbicsIHN0eWxlKHsgb3BhY2l0eTogMSB9KSksXG4gICAgc3RhdGUoJ2Nsb3NlZCcsIHN0eWxlKHsgb3BhY2l0eTogMCB9KSksXG4gICAgdHJhbnNpdGlvbignb3BlbiA8PT4gY2xvc2VkJywgYW5pbWF0ZSgnNDAwbXMgY3ViaWMtYmV6aWVyKDAuMjUsIDAuOCwgMC4yNSwgMSknKSksXG4gIF0pLFxufTtcbiJdfQ==
|
@@ -1,73 +0,0 @@
|
|
1
|
-
import { CdkPortalOutlet, } from '@angular/cdk/portal';
|
2
|
-
import { Component, EventEmitter, Input, HostBinding, ChangeDetectionStrategy, ViewChild, HostListener, } from '@angular/core';
|
3
|
-
import { daffFadeAnimations } from '../animations/modal-animation';
|
4
|
-
import { getAnimationState } from '../animations/modal-animation-state';
|
5
|
-
export class DaffModalComponent {
|
6
|
-
constructor() {
|
7
|
-
/**
|
8
|
-
* Dictates whether or not a modal is open or closed.
|
9
|
-
*/
|
10
|
-
this.open = false;
|
11
|
-
/**
|
12
|
-
* Event fired when the close animation is completed.
|
13
|
-
*/
|
14
|
-
this.animationCompleted = new EventEmitter();
|
15
|
-
/**
|
16
|
-
* Event fired when the close animation is completed.
|
17
|
-
*/
|
18
|
-
this.closedAnimationCompleted = new EventEmitter();
|
19
|
-
/**
|
20
|
-
* Event fired when the backdrop is clicked
|
21
|
-
* This is often used to close the modal
|
22
|
-
*/
|
23
|
-
this.hide = new EventEmitter();
|
24
|
-
/**
|
25
|
-
* Hostbinding to set the default modal class on the host element
|
26
|
-
*
|
27
|
-
* @docs-private
|
28
|
-
*/
|
29
|
-
this.modalClass = true;
|
30
|
-
}
|
31
|
-
/**
|
32
|
-
* Helper method to attach portable content to modal
|
33
|
-
*/
|
34
|
-
attachContent(portal) {
|
35
|
-
this._portalOutlet.attachComponentPortal(portal);
|
36
|
-
}
|
37
|
-
/**
|
38
|
-
* Animation hook that controls the entrance and exit animations
|
39
|
-
* of the modal
|
40
|
-
*/
|
41
|
-
get fadeState() {
|
42
|
-
return getAnimationState(this.open);
|
43
|
-
}
|
44
|
-
/**
|
45
|
-
* Animation event that can used to hook into when
|
46
|
-
* animations are fully completed. We use this in the DaffModalService
|
47
|
-
* to determine when to actually remove the dynamically rendered element from the DOM
|
48
|
-
* so that the animation does not clip as the element is removed.
|
49
|
-
*/
|
50
|
-
animationDone(e) {
|
51
|
-
this.animationCompleted.emit(e);
|
52
|
-
if (e.toState === 'closed') {
|
53
|
-
this.closedAnimationCompleted.emit(e);
|
54
|
-
}
|
55
|
-
}
|
56
|
-
}
|
57
|
-
DaffModalComponent.decorators = [
|
58
|
-
{ type: Component, args: [{
|
59
|
-
selector: 'daff-modal',
|
60
|
-
template: "<ng-template cdkPortalOutlet></ng-template>\n",
|
61
|
-
animations: [daffFadeAnimations.fade],
|
62
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
63
|
-
styles: [":host{display:block;border-radius:4px;height:100%;max-width:80vw;overflow:hidden;padding:24px;z-index:3}@media (min-width:480px){:host{height:auto}}"]
|
64
|
-
},] }
|
65
|
-
];
|
66
|
-
DaffModalComponent.propDecorators = {
|
67
|
-
open: [{ type: Input }],
|
68
|
-
_portalOutlet: [{ type: ViewChild, args: [CdkPortalOutlet, { static: true },] }],
|
69
|
-
modalClass: [{ type: HostBinding, args: ['class.daff-modal',] }],
|
70
|
-
fadeState: [{ type: HostBinding, args: ['@fade',] }],
|
71
|
-
animationDone: [{ type: HostListener, args: ['@fade.done', ['$event'],] }]
|
72
|
-
};
|
73
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9kZXNpZ24vc3JjL21vbGVjdWxlcy9tb2RhbC9tb2RhbC9tb2RhbC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUNMLGVBQWUsR0FFaEIsTUFBTSxxQkFBcUIsQ0FBQztBQUM3QixPQUFPLEVBQ0wsU0FBUyxFQUVULFlBQVksRUFDWixLQUFLLEVBQ0wsV0FBVyxFQUNYLHVCQUF1QixFQUN2QixTQUFTLEVBQ1QsWUFBWSxHQUNiLE1BQU0sZUFBZSxDQUFDO0FBRXZCLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLCtCQUErQixDQUFDO0FBQ25FLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLHFDQUFxQyxDQUFDO0FBVXhFLE1BQU0sT0FBTyxrQkFBa0I7SUFQL0I7UUFRQzs7V0FFRztRQUNNLFNBQUksR0FBRyxLQUFLLENBQUM7UUFPdEI7O1dBRUc7UUFDSCx1QkFBa0IsR0FBc0IsSUFBSSxZQUFZLEVBQU8sQ0FBQztRQUVoRTs7V0FFRztRQUNILDZCQUF3QixHQUFzQixJQUFJLFlBQVksRUFFM0QsQ0FBQztRQUVKOzs7V0FHRztRQUNILFNBQUksR0FBdUIsSUFBSSxZQUFZLEVBQVEsQ0FBQztRQUVwRDs7OztXQUlHO1FBQzhCLGVBQVUsR0FBRyxJQUFJLENBQUM7SUE4QnBELENBQUM7SUE1QkE7O09BRUc7SUFDSCxhQUFhLENBQUMsTUFBNEI7UUFDeEMsSUFBSSxDQUFDLGF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
|
2
|
-
export class DaffModalActionsComponent {
|
3
|
-
}
|
4
|
-
DaffModalActionsComponent.decorators = [
|
5
|
-
{ type: Component, args: [{
|
6
|
-
selector: 'daff-modal-actions',
|
7
|
-
template: '<ng-content></ng-content>',
|
8
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
9
|
-
styles: [":host{display:block;padding-top:24px}"]
|
10
|
-
},] }
|
11
|
-
];
|
12
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtYWN0aW9ucy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Rlc2lnbi9zcmMvbW9sZWN1bGVzL21vZGFsL21vZGFsLWFjdGlvbnMvbW9kYWwtYWN0aW9ucy5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixTQUFTLEdBQ1YsTUFBTSxlQUFlLENBQUM7QUFRdkIsTUFBTSxPQUFPLHlCQUF5Qjs7O1lBTnJDLFNBQVMsU0FBQztnQkFDVCxRQUFRLEVBQUUsb0JBQW9CO2dCQUM5QixRQUFRLEVBQUUsMkJBQTJCO2dCQUVyQyxlQUFlLEVBQUUsdUJBQXVCLENBQUMsTUFBTTs7YUFDaEQiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge1xuICBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneSxcbiAgQ29tcG9uZW50LFxufSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQENvbXBvbmVudCh7XG4gIHNlbGVjdG9yOiAnZGFmZi1tb2RhbC1hY3Rpb25zJyxcbiAgdGVtcGxhdGU6ICc8bmctY29udGVudD48L25nLWNvbnRlbnQ+JyxcbiAgc3R5bGVVcmxzOiBbJy4vbW9kYWwtYWN0aW9ucy5jb21wb25lbnQuc2NzcyddLFxuICBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCxcbn0pXG5leHBvcnQgY2xhc3MgRGFmZk1vZGFsQWN0aW9uc0NvbXBvbmVudCB7IH1cbiJdfQ==
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { Component, ChangeDetectionStrategy, } from '@angular/core';
|
2
|
-
export class DaffModalContentComponent {
|
3
|
-
}
|
4
|
-
DaffModalContentComponent.decorators = [
|
5
|
-
{ type: Component, args: [{
|
6
|
-
selector: 'daff-modal-content',
|
7
|
-
template: '<ng-content></ng-content>',
|
8
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
9
|
-
styles: [":host{display:block;margin:0 -24px;max-height:60vh;overflow:auto;padding:0 24px}"]
|
10
|
-
},] }
|
11
|
-
];
|
12
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtY29udGVudC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Rlc2lnbi9zcmMvbW9sZWN1bGVzL21vZGFsL21vZGFsLWNvbnRlbnQvbW9kYWwtY29udGVudC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCx1QkFBdUIsR0FDeEIsTUFBTSxlQUFlLENBQUM7QUFRdkIsTUFBTSxPQUFPLHlCQUF5Qjs7O1lBTnJDLFNBQVMsU0FBQztnQkFDVCxRQUFRLEVBQUUsb0JBQW9CO2dCQUM5QixRQUFRLEVBQUUsMkJBQTJCO2dCQUVyQyxlQUFlLEVBQUUsdUJBQXVCLENBQUMsTUFBTTs7YUFDaEQiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge1xuICBDb21wb25lbnQsXG4gIENoYW5nZURldGVjdGlvblN0cmF0ZWd5LFxufSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQENvbXBvbmVudCh7XG4gIHNlbGVjdG9yOiAnZGFmZi1tb2RhbC1jb250ZW50JyxcbiAgdGVtcGxhdGU6ICc8bmctY29udGVudD48L25nLWNvbnRlbnQ+JyxcbiAgc3R5bGVVcmxzOiBbJy4vbW9kYWwtY29udGVudC5jb21wb25lbnQuc2NzcyddLFxuICBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCxcbn0pXG5leHBvcnQgY2xhc3MgRGFmZk1vZGFsQ29udGVudENvbXBvbmVudCB7fVxuIl19
|