@daffodil/design 0.39.5 → 0.39.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +62 -34
- package/accordion/examples/daffodil-design-accordion-examples.metadata.json +1 -1
- package/article/examples/daffodil-design-article-examples.metadata.json +1 -1
- package/bundles/daffodil-design-accordion-examples.umd.js +4 -2
- package/bundles/daffodil-design-accordion-examples.umd.js.map +1 -1
- package/bundles/daffodil-design-accordion-examples.umd.min.js +1 -1
- package/bundles/daffodil-design-accordion-examples.umd.min.js.map +1 -1
- package/bundles/daffodil-design-article-examples.umd.js +22 -11
- package/bundles/daffodil-design-article-examples.umd.js.map +1 -1
- package/bundles/daffodil-design-article-examples.umd.min.js +1 -1
- package/bundles/daffodil-design-article-examples.umd.min.js.map +1 -1
- package/bundles/daffodil-design-button-examples.umd.js +7 -0
- package/bundles/daffodil-design-button-examples.umd.js.map +1 -1
- package/bundles/daffodil-design-button-examples.umd.min.js +1 -1
- package/bundles/daffodil-design-button-examples.umd.min.js.map +1 -1
- package/bundles/daffodil-design-callout-examples.umd.js +60 -9
- package/bundles/daffodil-design-callout-examples.umd.js.map +1 -1
- package/bundles/daffodil-design-callout-examples.umd.min.js +1 -1
- package/bundles/daffodil-design-callout-examples.umd.min.js.map +1 -1
- package/bundles/daffodil-design-card-examples.umd.js +156 -14
- package/bundles/daffodil-design-card-examples.umd.js.map +1 -1
- package/bundles/daffodil-design-card-examples.umd.min.js +1 -1
- package/bundles/daffodil-design-card-examples.umd.min.js.map +1 -1
- package/bundles/daffodil-design-checkbox-examples.umd.js +4 -2
- package/bundles/daffodil-design-checkbox-examples.umd.js.map +1 -1
- package/bundles/daffodil-design-checkbox-examples.umd.min.js +1 -1
- package/bundles/daffodil-design-checkbox-examples.umd.min.js.map +1 -1
- package/bundles/daffodil-design-container-examples.umd.js +65 -0
- package/bundles/daffodil-design-container-examples.umd.js.map +1 -0
- package/bundles/daffodil-design-container-examples.umd.min.js +2 -0
- package/bundles/daffodil-design-container-examples.umd.min.js.map +1 -0
- package/bundles/daffodil-design-hero-examples.umd.js +63 -8
- package/bundles/daffodil-design-hero-examples.umd.js.map +1 -1
- package/bundles/daffodil-design-hero-examples.umd.min.js +1 -1
- package/bundles/daffodil-design-hero-examples.umd.min.js.map +1 -1
- package/bundles/daffodil-design-list-examples.umd.js +8 -4
- package/bundles/daffodil-design-list-examples.umd.js.map +1 -1
- package/bundles/daffodil-design-list-examples.umd.min.js +1 -1
- package/bundles/daffodil-design-list-examples.umd.min.js.map +1 -1
- package/bundles/daffodil-design-loading-icon-examples.umd.js +4 -2
- package/bundles/daffodil-design-loading-icon-examples.umd.js.map +1 -1
- package/bundles/daffodil-design-loading-icon-examples.umd.min.js +1 -1
- package/bundles/daffodil-design-loading-icon-examples.umd.min.js.map +1 -1
- package/bundles/daffodil-design-media-gallery-examples.umd.js +4 -2
- package/bundles/daffodil-design-media-gallery-examples.umd.js.map +1 -1
- package/bundles/daffodil-design-media-gallery-examples.umd.min.js +1 -1
- package/bundles/daffodil-design-media-gallery-examples.umd.min.js.map +1 -1
- package/bundles/daffodil-design-modal-examples.umd.js +4 -2
- package/bundles/daffodil-design-modal-examples.umd.js.map +1 -1
- package/bundles/daffodil-design-modal-examples.umd.min.js +1 -1
- package/bundles/daffodil-design-modal-examples.umd.min.js.map +1 -1
- package/bundles/daffodil-design-quantity-field-examples.umd.js +4 -0
- package/bundles/daffodil-design-quantity-field-examples.umd.js.map +1 -1
- package/bundles/daffodil-design-quantity-field-examples.umd.min.js +1 -1
- package/bundles/daffodil-design-quantity-field-examples.umd.min.js.map +1 -1
- package/bundles/daffodil-design-radio-examples.umd.js +2 -1
- package/bundles/daffodil-design-radio-examples.umd.js.map +1 -1
- package/bundles/daffodil-design-radio-examples.umd.min.js +1 -1
- package/bundles/daffodil-design-radio-examples.umd.min.js.map +1 -1
- package/bundles/daffodil-design.umd.js +397 -98
- package/bundles/daffodil-design.umd.js.map +1 -1
- package/bundles/daffodil-design.umd.min.js +2 -2
- package/bundles/daffodil-design.umd.min.js.map +1 -1
- package/button/examples/daffodil-design-button-examples.metadata.json +1 -1
- package/callout/examples/callout-text-alignment/callout-text-alignment.component.d.ts +1 -0
- package/callout/examples/callout-theming/callout-theming.component.d.ts +1 -0
- package/callout/examples/callout-with-grid/callout-with-grid.component.d.ts +1 -0
- package/callout/examples/compact-callout/compact-callout.component.d.ts +3 -0
- package/callout/examples/compact-callout/compact-callout.module.d.ts +2 -0
- package/callout/examples/daffodil-design-callout-examples.metadata.json +1 -1
- package/callout/examples/public_api.d.ts +2 -0
- package/card/examples/basic-card/basic-card.component.d.ts +1 -0
- package/card/examples/card-orientation/card-orientation.component.d.ts +9 -0
- package/card/examples/card-orientation/card-orientation.module.d.ts +2 -0
- package/card/examples/card-theming/card-theming.component.d.ts +4 -2
- package/card/examples/daffodil-design-card-examples.d.ts +2 -0
- package/card/examples/daffodil-design-card-examples.metadata.json +1 -1
- package/card/examples/linkable-card/linkable-card.component.d.ts +8 -0
- package/card/examples/public_api.d.ts +5 -1
- package/card/examples/raised-card/raised-card.component.d.ts +6 -0
- package/card/examples/stroked-card/stroked-card.component.d.ts +8 -0
- package/card/examples/stroked-card/stroked-card.module.d.ts +2 -0
- package/checkbox/examples/daffodil-design-checkbox-examples.metadata.json +1 -1
- package/container/examples/container-sizes/container-sizes.component.d.ts +8 -0
- package/container/examples/container-sizes/container-sizes.module.d.ts +2 -0
- package/container/examples/daffodil-design-container-examples.d.ts +4 -0
- package/container/examples/daffodil-design-container-examples.metadata.json +1 -0
- package/container/examples/examples.d.ts +2 -0
- package/container/examples/index.d.ts +1 -0
- package/container/examples/package.json +11 -0
- package/container/examples/public_api.d.ts +3 -0
- package/core/compactable/compactable-mixin.d.ts +14 -0
- package/core/compactable/compactable.d.ts +7 -0
- package/core/compactable/public_api.d.ts +2 -0
- package/core/manage-container-layout/manage-container-layout-mixin.d.ts +17 -0
- package/core/manage-container-layout/public_api.d.ts +1 -0
- package/core/public_api.d.ts +2 -0
- package/daff-theme.scss +190 -27
- package/daff-typography.scss +5 -4
- package/daff-util.scss +5 -4
- package/daffodil-design.metadata.json +1 -1
- package/esm2015/accordion/examples/basic-accordion/basic-accordion.component.js +4 -3
- package/esm2015/accordion/examples/nav-accordion/nav-accordion.component.js +4 -3
- package/esm2015/article/examples/article-blockquote/article-blockquote.component.js +4 -3
- package/esm2015/article/examples/article-code-block/article-code-block.component.js +4 -3
- package/esm2015/article/examples/article-code-inline/article-code-inline.component.js +4 -3
- package/esm2015/article/examples/article-headings/article-headings.component.js +4 -3
- package/esm2015/article/examples/article-hr/article-hr.component.js +4 -3
- package/esm2015/article/examples/article-lead/article-lead.component.js +4 -3
- package/esm2015/article/examples/article-link/article-link.component.js +4 -3
- package/esm2015/article/examples/article-meta/article-meta.component.js +4 -3
- package/esm2015/article/examples/article-ol/article-ol.component.js +4 -3
- package/esm2015/article/examples/article-table/article-table.component.js +4 -3
- package/esm2015/article/examples/article-ul/article-ul.component.js +4 -3
- package/esm2015/atoms/container/container.component.js +1 -1
- package/esm2015/atoms/form/form-field/form-field/form-field.component.js +3 -1
- package/esm2015/atoms/form/input/input.component.js +3 -2
- package/esm2015/atoms/form/select/select/select.component.js +3 -2
- package/esm2015/atoms/image/image.component.js +2 -2
- package/esm2015/button/examples/basic-button/basic-button.component.js +3 -2
- package/esm2015/button/examples/icon-button/icon-button.component.js +3 -2
- package/esm2015/button/examples/raised-button/raised-button.component.js +3 -2
- package/esm2015/button/examples/sizeable-button/sizeable-button.component.js +3 -2
- package/esm2015/button/examples/statusable-button/statusable-button.component.js +3 -2
- package/esm2015/button/examples/stroked-button/stroked-button.component.js +3 -2
- package/esm2015/button/examples/underline-button/underline-button.component.js +3 -2
- package/esm2015/callout/examples/callout-text-alignment/callout-text-alignment.component.js +7 -3
- package/esm2015/callout/examples/callout-text-alignment/callout-text-alignment.module.js +5 -3
- package/esm2015/callout/examples/callout-theming/callout-theming.component.js +7 -3
- package/esm2015/callout/examples/callout-theming/callout-theming.module.js +5 -2
- package/esm2015/callout/examples/callout-with-grid/callout-with-grid.component.js +9 -4
- package/esm2015/callout/examples/callout-with-grid/callout-with-grid.module.js +3 -1
- package/esm2015/callout/examples/compact-callout/compact-callout.component.js +17 -0
- package/esm2015/callout/examples/compact-callout/compact-callout.module.js +22 -0
- package/esm2015/callout/examples/examples.js +3 -1
- package/esm2015/callout/examples/public_api.js +3 -1
- package/esm2015/card/examples/basic-card/basic-card.component.js +9 -4
- package/esm2015/card/examples/basic-card/basic-card.module.js +3 -1
- package/esm2015/card/examples/card-orientation/card-orientation.component.js +24 -0
- package/esm2015/card/examples/card-orientation/card-orientation.module.js +27 -0
- package/esm2015/card/examples/card-theming/card-theming.component.js +15 -5
- package/esm2015/card/examples/daffodil-design-card-examples.js +3 -1
- package/esm2015/card/examples/linkable-card/linkable-card.component.js +21 -4
- package/esm2015/card/examples/linkable-card/linkable-card.module.js +3 -1
- package/esm2015/card/examples/public_api.js +7 -1
- package/esm2015/card/examples/raised-card/raised-card.component.js +19 -4
- package/esm2015/card/examples/raised-card/raised-card.module.js +3 -3
- package/esm2015/card/examples/stroked-card/stroked-card.component.js +27 -0
- package/esm2015/card/examples/stroked-card/stroked-card.module.js +27 -0
- package/esm2015/checkbox/examples/basic-checkbox/basic-checkbox.component.js +4 -3
- package/esm2015/checkbox/examples/checkbox-set/checkbox-set.component.js +4 -3
- package/esm2015/container/examples/container-sizes/container-sizes.component.js +23 -0
- package/esm2015/container/examples/container-sizes/container-sizes.module.js +23 -0
- package/esm2015/container/examples/daffodil-design-container-examples.js +5 -0
- package/esm2015/container/examples/examples.js +5 -0
- package/esm2015/container/examples/index.js +2 -0
- package/esm2015/container/examples/public_api.js +4 -0
- package/esm2015/core/compactable/compactable-mixin.js +26 -0
- package/esm2015/core/compactable/compactable.js +2 -0
- package/esm2015/core/compactable/public_api.js +2 -0
- package/esm2015/core/manage-container-layout/manage-container-layout-mixin.js +14 -0
- package/esm2015/core/manage-container-layout/public_api.js +2 -0
- package/esm2015/core/public_api.js +3 -1
- package/esm2015/hero/examples/compact-hero/compact-hero.component.js +17 -0
- package/esm2015/hero/examples/compact-hero/compact-hero.module.js +26 -0
- package/esm2015/hero/examples/examples.js +3 -1
- package/esm2015/hero/examples/hero-text-alignment/hero-text-alignment.component.js +7 -3
- package/esm2015/hero/examples/hero-text-alignment/hero-text-alignment.module.js +5 -2
- package/esm2015/hero/examples/hero-theming/hero-theming.component.js +7 -3
- package/esm2015/hero/examples/hero-theming/hero-theming.module.js +5 -2
- package/esm2015/hero/examples/hero-with-grid/hero-with-grid.component.js +9 -4
- package/esm2015/hero/examples/hero-with-grid/hero-with-grid.module.js +3 -1
- package/esm2015/hero/examples/public_api.js +3 -1
- package/esm2015/list/examples/basic-list/basic-list.component.js +4 -3
- package/esm2015/list/examples/icon-list/icon-list.component.js +4 -3
- package/esm2015/list/examples/multiline-list/multiline-list.component.js +4 -3
- package/esm2015/list/examples/nav-list/nav-list.component.js +4 -3
- package/esm2015/loading-icon/examples/loading-icon-color/loading-icon-color.component.js +4 -3
- package/esm2015/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.component.js +4 -3
- package/esm2015/media-gallery/examples/basic-media-gallery/basic-media-gallery.component.js +4 -3
- package/esm2015/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.component.js +4 -3
- package/esm2015/modal/examples/basic-modal/basic-modal.component.js +4 -3
- package/esm2015/modal/examples/basic-modal/modal-content.component.js +4 -3
- package/esm2015/molecules/accordion/accordion/accordion.component.js +3 -2
- package/esm2015/molecules/accordion/accordion-item/accordion-item.component.js +3 -2
- package/esm2015/molecules/accordion/nav-accordion-item/nav-accordion-item.component.js +3 -2
- package/esm2015/molecules/article/article/article.component.js +4 -3
- package/esm2015/molecules/button-set/button-set.component.js +3 -2
- package/esm2015/molecules/callout/callout/callout.component.js +10 -12
- package/esm2015/molecules/callout/callout-body/callout-body.directive.js +18 -0
- package/esm2015/molecules/callout/callout-icon/callout-icon.directive.js +18 -0
- package/esm2015/molecules/callout/callout.module.js +7 -1
- package/esm2015/molecules/callout/public_api.js +4 -2
- package/esm2015/molecules/card/card/card.component.js +76 -14
- package/esm2015/molecules/card/card-content/card-content.directive.js +18 -0
- package/esm2015/molecules/card/card-icon/card-icon.directive.js +18 -0
- package/esm2015/molecules/card/card.module.js +9 -3
- package/esm2015/molecules/card/public_api.js +4 -2
- package/esm2015/molecules/hero/hero/hero.component.js +12 -23
- package/esm2015/molecules/hero/hero-body/hero-body.directive.js +18 -0
- package/esm2015/molecules/hero/hero-icon/hero-icon.directive.js +18 -0
- package/esm2015/molecules/hero/hero.module.js +7 -1
- package/esm2015/molecules/hero/public_api.js +3 -1
- package/esm2015/molecules/image-gallery/gallery-image/gallery-image.component.js +7 -3
- package/esm2015/molecules/image-gallery/image-gallery/image-gallery.component.js +6 -2
- package/esm2015/molecules/image-list/image-list.component.js +3 -2
- package/esm2015/molecules/media-gallery/media-gallery.component.js +13 -3
- package/esm2015/molecules/media-gallery/registry/media-gallery.registry.js +22 -8
- package/esm2015/molecules/media-gallery/thumbnail/thumbnail.directive.js +2 -2
- package/esm2015/molecules/modal/modal-actions/modal-actions.component.js +3 -2
- package/esm2015/molecules/navbar/navbar.component.js +3 -2
- package/esm2015/molecules/qty-dropdown/qty-dropdown.component.js +6 -1
- package/esm2015/molecules/sidebar/sidebar/sidebar.component.js +3 -2
- package/esm2015/quantity-field/examples/basic/basic-quantity-field.component.js +3 -2
- package/esm2015/quantity-field/examples/customRange/custom-range-quantity-field.component.js +3 -2
- package/esm2015/quantity-field/examples/disabled/disabled-quantity-field.component.js +3 -2
- package/esm2015/quantity-field/examples/selectMax/select-max-quantity-field.component.js +3 -2
- package/esm2015/radio/examples/basic-radio/basic-radio.component.js +4 -3
- package/fesm2015/daffodil-design-accordion-examples.js +5 -3
- package/fesm2015/daffodil-design-accordion-examples.js.map +1 -1
- package/fesm2015/daffodil-design-article-examples.js +23 -12
- package/fesm2015/daffodil-design-article-examples.js.map +1 -1
- package/fesm2015/daffodil-design-button-examples.js +8 -1
- package/fesm2015/daffodil-design-button-examples.js.map +1 -1
- package/fesm2015/daffodil-design-callout-examples.js +57 -8
- package/fesm2015/daffodil-design-callout-examples.js.map +1 -1
- package/fesm2015/daffodil-design-card-examples.js +150 -12
- package/fesm2015/daffodil-design-card-examples.js.map +1 -1
- package/fesm2015/daffodil-design-checkbox-examples.js +5 -3
- package/fesm2015/daffodil-design-checkbox-examples.js.map +1 -1
- package/fesm2015/daffodil-design-container-examples.js +54 -0
- package/fesm2015/daffodil-design-container-examples.js.map +1 -0
- package/fesm2015/daffodil-design-hero-examples.js +60 -7
- package/fesm2015/daffodil-design-hero-examples.js.map +1 -1
- package/fesm2015/daffodil-design-list-examples.js +9 -5
- package/fesm2015/daffodil-design-list-examples.js.map +1 -1
- package/fesm2015/daffodil-design-loading-icon-examples.js +5 -3
- package/fesm2015/daffodil-design-loading-icon-examples.js.map +1 -1
- package/fesm2015/daffodil-design-media-gallery-examples.js +5 -3
- package/fesm2015/daffodil-design-media-gallery-examples.js.map +1 -1
- package/fesm2015/daffodil-design-modal-examples.js +5 -3
- package/fesm2015/daffodil-design-modal-examples.js.map +1 -1
- package/fesm2015/daffodil-design-quantity-field-examples.js +5 -1
- package/fesm2015/daffodil-design-quantity-field-examples.js.map +1 -1
- package/fesm2015/daffodil-design-radio-examples.js +3 -2
- package/fesm2015/daffodil-design-radio-examples.js.map +1 -1
- package/fesm2015/daffodil-design.js +342 -95
- package/fesm2015/daffodil-design.js.map +1 -1
- package/hero/examples/compact-hero/compact-hero.component.d.ts +3 -0
- package/hero/examples/compact-hero/compact-hero.module.d.ts +2 -0
- package/hero/examples/daffodil-design-hero-examples.metadata.json +1 -1
- package/hero/examples/hero-text-alignment/hero-text-alignment.component.d.ts +1 -0
- package/hero/examples/hero-theming/hero-theming.component.d.ts +1 -0
- package/hero/examples/hero-with-grid/hero-with-grid.component.d.ts +1 -0
- package/hero/examples/public_api.d.ts +2 -0
- package/list/examples/daffodil-design-list-examples.metadata.json +1 -1
- package/loading-icon/examples/daffodil-design-loading-icon-examples.metadata.json +1 -1
- package/media-gallery/examples/daffodil-design-media-gallery-examples.metadata.json +1 -1
- package/modal/examples/daffodil-design-modal-examples.metadata.json +1 -1
- package/molecules/callout/callout/callout.component.d.ts +32 -11
- package/molecules/callout/callout-body/callout-body.directive.d.ts +6 -0
- package/molecules/callout/callout-icon/callout-icon.directive.d.ts +6 -0
- package/molecules/callout/public_api.d.ts +3 -1
- package/molecules/card/card/card.component.d.ts +37 -11
- package/molecules/card/card-content/card-content.directive.d.ts +6 -0
- package/molecules/card/card-icon/card-icon.directive.d.ts +6 -0
- package/molecules/card/public_api.d.ts +3 -1
- package/molecules/hero/hero/hero.component.d.ts +35 -20
- package/molecules/hero/hero-body/hero-body.directive.d.ts +6 -0
- package/molecules/hero/hero-icon/hero-icon.directive.d.ts +6 -0
- package/molecules/hero/public_api.d.ts +2 -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/media-gallery/media-gallery.component.d.ts +7 -2
- package/molecules/media-gallery/registry/media-gallery.registry.d.ts +6 -3
- package/molecules/media-gallery/thumbnail/thumbnail.directive.d.ts +1 -1
- package/molecules/navbar/navbar.component.d.ts +5 -0
- package/molecules/qty-dropdown/qty-dropdown.component.d.ts +3 -0
- package/package.json +1 -1
- package/quantity-field/examples/daffodil-design-quantity-field-examples.metadata.json +1 -1
- package/radio/examples/daffodil-design-radio-examples.metadata.json +1 -1
@@ -423,6 +423,8 @@ class DaffFormFieldControl {
|
|
423
423
|
|
424
424
|
const DaffFormFieldMissingControlMessage = 'A DaffFormFieldComponent must contain a DaffFormFieldControl';
|
425
425
|
|
426
|
+
// ChangeDetection is ignored because this component needs to be refactored
|
427
|
+
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
426
428
|
class DaffFormFieldComponent {
|
427
429
|
constructor() {
|
428
430
|
/**
|
@@ -538,39 +540,7 @@ DaffFormFieldModule.decorators = [
|
|
538
540
|
|
539
541
|
const DAFF_MEDIA_GALLERY_TOKEN = new InjectionToken('DAFF_MEDIA_GALLERY_TOKEN');
|
540
542
|
|
541
|
-
|
542
|
-
class DaffMediaGalleryComponent {
|
543
|
-
constructor() {
|
544
|
-
/**
|
545
|
-
* Adds a class for styling the media gallery
|
546
|
-
*/
|
547
|
-
this.class = true;
|
548
|
-
/**
|
549
|
-
* The name of the gallery
|
550
|
-
*/
|
551
|
-
this.name = `${uniqueGalleryId}`;
|
552
|
-
uniqueGalleryId++;
|
553
|
-
}
|
554
|
-
}
|
555
|
-
DaffMediaGalleryComponent.decorators = [
|
556
|
-
{ type: Component, args: [{
|
557
|
-
selector: 'daff-media-gallery',
|
558
|
-
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>",
|
559
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
560
|
-
providers: [
|
561
|
-
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
562
|
-
{ provide: DAFF_MEDIA_GALLERY_TOKEN, useExisting: DaffMediaGalleryComponent },
|
563
|
-
],
|
564
|
-
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}}"]
|
565
|
-
},] }
|
566
|
-
];
|
567
|
-
/** @nocollapse */
|
568
|
-
DaffMediaGalleryComponent.ctorParameters = () => [];
|
569
|
-
DaffMediaGalleryComponent.propDecorators = {
|
570
|
-
class: [{ type: HostBinding, args: ['class.daff-media-gallery',] }],
|
571
|
-
name: [{ type: Input }]
|
572
|
-
};
|
573
|
-
|
543
|
+
const isGallery = (element) => !('gallery' in element);
|
574
544
|
class DaffMediaGalleryRegistry {
|
575
545
|
constructor() {
|
576
546
|
this.galleries = {};
|
@@ -582,16 +552,18 @@ class DaffMediaGalleryRegistry {
|
|
582
552
|
add(gallery, thumbnail) {
|
583
553
|
if (this.galleries[gallery.name]) {
|
584
554
|
let newGallery = this.galleries[gallery.name].getValue();
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
555
|
+
if (thumbnail) {
|
556
|
+
newGallery = Object.assign(Object.assign({}, newGallery), { thumbnails: [
|
557
|
+
...newGallery.thumbnails.filter(t => t !== thumbnail),
|
558
|
+
thumbnail,
|
559
|
+
] });
|
560
|
+
}
|
589
561
|
this.galleries[gallery.name].next(newGallery);
|
590
562
|
}
|
591
563
|
else {
|
592
564
|
this.galleries[gallery.name] = new BehaviorSubject({
|
593
565
|
gallery,
|
594
|
-
thumbnails: [thumbnail],
|
566
|
+
thumbnails: thumbnail ? [thumbnail] : [],
|
595
567
|
});
|
596
568
|
}
|
597
569
|
if (this.galleries[gallery.name].getValue().thumbnails.length === 1) {
|
@@ -600,9 +572,17 @@ class DaffMediaGalleryRegistry {
|
|
600
572
|
}
|
601
573
|
/**
|
602
574
|
* @description
|
603
|
-
* Removes a
|
575
|
+
* Removes a thumbnail or gallery from the internal registry.
|
604
576
|
*/
|
605
|
-
remove(
|
577
|
+
remove(element) {
|
578
|
+
if (isGallery(element)) {
|
579
|
+
this.removeGallery(element);
|
580
|
+
}
|
581
|
+
else {
|
582
|
+
this.removeThumbnail(element);
|
583
|
+
}
|
584
|
+
}
|
585
|
+
removeThumbnail(thumbnail) {
|
606
586
|
if (!this.galleries[thumbnail.gallery.name]) {
|
607
587
|
return;
|
608
588
|
}
|
@@ -616,6 +596,9 @@ class DaffMediaGalleryRegistry {
|
|
616
596
|
...gallery.thumbnails.slice(index + 1),
|
617
597
|
] }));
|
618
598
|
}
|
599
|
+
removeGallery(gallery) {
|
600
|
+
delete this.galleries[gallery.name];
|
601
|
+
}
|
619
602
|
/**
|
620
603
|
* @description
|
621
604
|
* Selects a media element for a given gallery.
|
@@ -640,6 +623,48 @@ DaffMediaGalleryRegistry.decorators = [
|
|
640
623
|
{ type: Injectable, args: [{ providedIn: 'root' },] }
|
641
624
|
];
|
642
625
|
|
626
|
+
let uniqueGalleryId = 0;
|
627
|
+
class DaffMediaGalleryComponent {
|
628
|
+
constructor(registry) {
|
629
|
+
this.registry = registry;
|
630
|
+
/**
|
631
|
+
* Adds a class for styling the media gallery
|
632
|
+
*/
|
633
|
+
this.class = true;
|
634
|
+
/**
|
635
|
+
* The name of the gallery
|
636
|
+
*/
|
637
|
+
this.name = `${uniqueGalleryId}`;
|
638
|
+
uniqueGalleryId++;
|
639
|
+
}
|
640
|
+
ngOnInit() {
|
641
|
+
this.registry.add(this);
|
642
|
+
}
|
643
|
+
ngOnDestroy() {
|
644
|
+
this.registry.remove(this);
|
645
|
+
}
|
646
|
+
}
|
647
|
+
DaffMediaGalleryComponent.decorators = [
|
648
|
+
{ type: Component, args: [{
|
649
|
+
selector: 'daff-media-gallery',
|
650
|
+
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>",
|
651
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
652
|
+
providers: [
|
653
|
+
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
654
|
+
{ provide: DAFF_MEDIA_GALLERY_TOKEN, useExisting: DaffMediaGalleryComponent },
|
655
|
+
],
|
656
|
+
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}}"]
|
657
|
+
},] }
|
658
|
+
];
|
659
|
+
/** @nocollapse */
|
660
|
+
DaffMediaGalleryComponent.ctorParameters = () => [
|
661
|
+
{ type: DaffMediaGalleryRegistry }
|
662
|
+
];
|
663
|
+
DaffMediaGalleryComponent.propDecorators = {
|
664
|
+
class: [{ type: HostBinding, args: ['class.daff-media-gallery',] }],
|
665
|
+
name: [{ type: Input }]
|
666
|
+
};
|
667
|
+
|
643
668
|
/**
|
644
669
|
* Dynamically renders the selected `DaffThumbnailDirective` in a `daff-media-gallery` any time the selected thumbnail
|
645
670
|
* changes.
|
@@ -751,7 +776,7 @@ class DaffThumbnailDirective {
|
|
751
776
|
/**
|
752
777
|
* Adds a click event to trigger selection of the media element.
|
753
778
|
*
|
754
|
-
* @param
|
779
|
+
* @param event: MouseEvent
|
755
780
|
*/
|
756
781
|
onClick($event) {
|
757
782
|
this.registry.select(this);
|
@@ -893,7 +918,7 @@ class DaffImageComponent {
|
|
893
918
|
DaffImageComponent.decorators = [
|
894
919
|
{ type: Component, args: [{
|
895
920
|
selector: 'daff-image',
|
896
|
-
template: "<div class=\"daff-image__wrapper\" [style.paddingTop]=\"_paddingTop\">\n\t<img [src]=\"src\" [alt]=\"alt\" (load)=\"load.emit\" />\n</div>",
|
921
|
+
template: "<div class=\"daff-image__wrapper\" [style.paddingTop]=\"_paddingTop\">\n\t<img [src]=\"src\" [alt]=\"alt\" (load)=\"load.emit\" loading=\"lazy\"/>\n</div>",
|
897
922
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
898
923
|
providers: [
|
899
924
|
{
|
@@ -970,6 +995,7 @@ DaffInputComponent.decorators = [
|
|
970
995
|
// eslint-disable-next-line @angular-eslint/component-selector
|
971
996
|
selector: 'input[daff-input]',
|
972
997
|
template: '<ng-content></ng-content>',
|
998
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
973
999
|
providers: [
|
974
1000
|
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
975
1001
|
{ provide: DaffFormFieldControl, useExisting: DaffInputComponent },
|
@@ -1041,6 +1067,7 @@ DaffNativeSelectComponent.decorators = [
|
|
1041
1067
|
selector: 'select[daff-native-select]',
|
1042
1068
|
template: '<ng-content></ng-content>',
|
1043
1069
|
encapsulation: ViewEncapsulation.None,
|
1070
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
1044
1071
|
providers: [
|
1045
1072
|
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
1046
1073
|
{ provide: DaffFormFieldControl, useExisting: DaffNativeSelectComponent },
|
@@ -1686,7 +1713,7 @@ DaffContainerComponent.decorators = [
|
|
1686
1713
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
1687
1714
|
inputs: ['size'],
|
1688
1715
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
1689
|
-
styles: [":host{display:block;margin:0 auto;padding:0;width:100%}:host.daff-xs{max-width:640px}:host.daff-sm{max-width:800px}:host.daff-md{max-width:1040px}:host.daff-lg{max-width:1340px}:host.daff-xl{max-width:1920px}"]
|
1716
|
+
styles: [":host-context(.daff-manage-container-layout){display:inherit;flex:inherit;flex-direction:inherit;flex-flow:inherit;flex-wrap:inherit;justify-content:inherit;justify-items:inherit;align-items:inherit;align-content:inherit;gap:inherit;grid-template-columns:inherit;grid-template-rows:inherit;grid-template-areas:inherit;grid-template:inherit;grid-auto-columns:inherit;grid-auto-rows:inherit;grid-auto-flow:inherit;grid:inherit;-moz-column-gap:inherit;column-gap:inherit;row-gap:inherit;grid-gap:inherit;grid-column-gap:inherit;grid-row-gap:inherit;place-items:inherit;place-content:inherit}:host{display:block;margin:0 auto;padding:0;width:100%}:host.daff-xs{max-width:640px}:host.daff-sm{max-width:800px}:host.daff-md{max-width:1040px}:host.daff-lg{max-width:1340px}:host.daff-xl{max-width:1920px}"]
|
1690
1717
|
},] }
|
1691
1718
|
];
|
1692
1719
|
/** @nocollapse */
|
@@ -2279,6 +2306,7 @@ DaffAccordionItemComponent.decorators = [
|
|
2279
2306
|
selector: 'daff-accordion-item',
|
2280
2307
|
template: "<div class=\"daff-accordion-item__header\" (click)=\"toggleActive()\">\n <ng-content select=\"[daffAccordionItemTitle]\"></ng-content>\n <span [hidden]=\"_open\" daffSuffix>\n <fa-icon [icon]=\"faChevronDown\"></fa-icon>\n </span>\n <span [hidden]=\"!_open\" daffSuffix>\n <fa-icon [icon]=\"faChevronUp\"></fa-icon>\n </span>\n</div>\n<div [@openAccordion]=\"_animationState\">\n <ng-content></ng-content>\n</div>",
|
2281
2308
|
encapsulation: ViewEncapsulation.None,
|
2309
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
2282
2310
|
animations: [
|
2283
2311
|
daffAccordionAnimations.openAccordion,
|
2284
2312
|
],
|
@@ -2296,6 +2324,7 @@ DaffAccordionComponent.decorators = [
|
|
2296
2324
|
{ type: Component, args: [{
|
2297
2325
|
selector: 'daff-accordion',
|
2298
2326
|
template: "<ng-content></ng-content>",
|
2327
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
2299
2328
|
styles: [":host{display:block;width:100%}"]
|
2300
2329
|
},] }
|
2301
2330
|
];
|
@@ -2349,6 +2378,7 @@ DaffNavAccordionItemComponent.decorators = [
|
|
2349
2378
|
{ type: Component, args: [{
|
2350
2379
|
selector: 'daff-nav-accordion-item',
|
2351
2380
|
template: "<div class=\"daff-nav-accordion-item__header\" (click)=\"toggleActive()\">\n <ng-content select=\"[daffAccordionItemTitle]\"></ng-content>\n <span [hidden]=\"_open\" daffSuffix *ngIf=\"_navAccordionItemChild.toArray().length\">\n <fa-icon [icon]=\"faChevronDown\"></fa-icon>\n </span>\n <span [hidden]=\"!_open\" daffSuffix *ngIf=\"_navAccordionItemChild.toArray().length\">\n <fa-icon [icon]=\"faChevronUp\"></fa-icon>\n </span>\n</div>\n<div [@openAccordion]=\"_animationState\">\n <ng-content></ng-content>\n</div>\n",
|
2381
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
2352
2382
|
animations: [
|
2353
2383
|
daffAccordionAnimations.openAccordion,
|
2354
2384
|
],
|
@@ -2412,7 +2442,8 @@ DaffArticleComponent.decorators = [
|
|
2412
2442
|
selector: 'daff-article',
|
2413
2443
|
template: '<ng-content></ng-content>',
|
2414
2444
|
encapsulation: ViewEncapsulation.None,
|
2415
|
-
|
2445
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
2446
|
+
styles: [".daff-article{display:block}.daff-article>h1,.daff-article>h2,.daff-article>h3,.daff-article>h4,.daff-article>h5,.daff-article>h6{margin-bottom:.5rem}.daff-article>h2,.daff-article>h3,.daff-article>h4,.daff-article>h5,.daff-article>h6{margin-top:2rem}.daff-article>h1{font-weight:700;font-size:2rem;line-height:2.25rem}@media (min-width:768px){.daff-article>h1{font-size:3rem;line-height:3.5rem}}.daff-article>h2{font-size:2rem;line-height:2.5rem}.daff-article>h3{font-size:1.5rem;line-height:2rem}.daff-article>h4{font-size:1.25rem;line-height:1.5rem}.daff-article>h5{font-size:1.125rem;line-height:1.5rem}.daff-article>h6{font-size:1rem;line-height:1.5rem}.daff-article>p{margin:0 0 1rem}.daff-article>strong{font-weight:700}.daff-article a{font-weight:500}.daff-article pre{display:block;border-radius:4px;font-size:.875rem;line-height:1.5rem;margin:0;padding:1.5rem;overflow:auto;white-space:pre-wrap}.daff-article pre code{display:block;padding:0}.daff-article code{display:inline-block;border-radius:4px;font-size:.875rem;line-height:1rem;padding:.25rem}.daff-article__title{font-weight:700;font-size:2rem;line-height:2.25rem}@media (min-width:768px){.daff-article__title{font-size:3rem;line-height:3.5rem}}.daff-article__lead{font-size:1.25rem;line-height:1.75rem;font-weight:400;margin:0}.daff-article__lead code{font-size:1.25rem;line-height:1.5rem;font-weight:400}.daff-article__meta{font-size:.875rem}.daff-article hr{border:0;height:1px;margin:2rem 0}.daff-article blockquote{border-radius:4px;margin:0;padding:1rem 1.5rem}.daff-article blockquote cite{font-size:.875rem;font-weight:400;line-height:1.25rem;display:block;margin-top:1rem}.daff-article table{display:block;border-collapse:collapse;margin:1.5rem 0;overflow:auto;width:100%}.daff-article table th{font-weight:600;outline:0;padding:1rem;text-align:left;vertical-align:bottom;box-sizing:border-box}.daff-article table td{padding:8px 16px;vertical-align:top;box-sizing:border-box}"]
|
2416
2447
|
},] }
|
2417
2448
|
];
|
2418
2449
|
DaffArticleComponent.propDecorators = {
|
@@ -2584,6 +2615,7 @@ DaffButtonSetComponent.decorators = [
|
|
2584
2615
|
selector: 'daff-button-set',
|
2585
2616
|
template: '<ng-content></ng-content>',
|
2586
2617
|
encapsulation: ViewEncapsulation.None,
|
2618
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
2587
2619
|
styles: [".daff-button-set{display:flex;flex-direction:column;flex-wrap:wrap}@media (min-width:480px){.daff-button-set{flex-direction:row}}.daff-button-set>*{margin:0 0 5px}.daff-button-set>:last-child{margin:0}@media (min-width:480px){.daff-button-set>*{margin:0 5px 0 0}.daff-button-set>:last-child{margin:0}}"]
|
2588
2620
|
},] }
|
2589
2621
|
];
|
@@ -2604,6 +2636,9 @@ DaffButtonSetModule.decorators = [
|
|
2604
2636
|
},] }
|
2605
2637
|
];
|
2606
2638
|
|
2639
|
+
/**
|
2640
|
+
* @deprecated See {@link DaffMediaGalleryComponent}
|
2641
|
+
*/
|
2607
2642
|
class DaffImageGalleryComponent {
|
2608
2643
|
}
|
2609
2644
|
DaffImageGalleryComponent.decorators = [
|
@@ -2611,10 +2646,14 @@ DaffImageGalleryComponent.decorators = [
|
|
2611
2646
|
selector: 'daff-image-gallery',
|
2612
2647
|
template: "<div class=\"daff-image-gallery\">\n <div class=\"daff-image-gallery__active-image\">\n <ng-content select=\"[daff-active-image]\"></ng-content>\n </div>\n\n <daff-image-list class=\"daff-image-gallery__image-list\">\n <ng-content select=\"daff-gallery-image\"></ng-content>\n </daff-image-list>\n</div>\n",
|
2613
2648
|
encapsulation: ViewEncapsulation.None,
|
2649
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
2614
2650
|
styles: [".daff-image-gallery{display:grid;flex-direction:column;grid-template-areas:\"active-image\" \"image-list\";max-height:100%}@media (min-width:1024px){.daff-image-gallery{grid-template-areas:\"image-list active-image\";max-height:-webkit-min-content;max-height:-moz-min-content;max-height:min-content}}.daff-image-gallery__active-image{grid-area:active-image}.daff-image-gallery__active-image img{display:block;max-width:100%}.daff-image-gallery__image-list{grid-area:image-list;margin:5px 0 0;max-height:100%}@media (min-width:1024px){.daff-image-gallery__image-list{margin:0 25px 0 0;max-height:-webkit-fill-available}}.daff-image-gallery__daff-gallery-image img{display:block;opacity:.6;width:90px}.daff-image-gallery__daff-gallery-image--selected img{opacity:1}"]
|
2615
2651
|
},] }
|
2616
2652
|
];
|
2617
2653
|
|
2654
|
+
/**
|
2655
|
+
* @deprecated See {@link DaffThumbnailDirective}
|
2656
|
+
*/
|
2618
2657
|
class DaffGalleryImageComponent {
|
2619
2658
|
constructor() {
|
2620
2659
|
this.class = true;
|
@@ -2623,7 +2662,8 @@ class DaffGalleryImageComponent {
|
|
2623
2662
|
DaffGalleryImageComponent.decorators = [
|
2624
2663
|
{ type: Component, args: [{
|
2625
2664
|
selector: 'daff-gallery-image',
|
2626
|
-
template: "<div class=\"gallery-image__wrapper\">\n <ng-content></ng-content>\n</div>"
|
2665
|
+
template: "<div class=\"gallery-image__wrapper\">\n <ng-content></ng-content>\n</div>",
|
2666
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
2627
2667
|
},] }
|
2628
2668
|
];
|
2629
2669
|
DaffGalleryImageComponent.propDecorators = {
|
@@ -2644,6 +2684,7 @@ DaffImageListComponent.decorators = [
|
|
2644
2684
|
selector: 'daff-image-list',
|
2645
2685
|
template: '<ng-content></ng-content>',
|
2646
2686
|
encapsulation: ViewEncapsulation.None,
|
2687
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
2647
2688
|
styles: [".daff-image-list{overflow:scroll;white-space:nowrap}.daff-image-list>*{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;margin:0 5px 0 0}@media (min-width:1024px){.daff-image-list>*{display:block;margin:0 0 5px}}.daff-image-list>:last-child{margin:0}::-webkit-scrollbar{height:2px;width:2px}::-webkit-scrollbar-thumb{box-shadow:inset 0 0 3px #b6b6b6;-webkit-box-shadow:inset 0 0 3px #b6b6b6}"]
|
2648
2689
|
},] }
|
2649
2690
|
];
|
@@ -3055,6 +3096,7 @@ DaffModalActionsComponent.decorators = [
|
|
3055
3096
|
{ type: Component, args: [{
|
3056
3097
|
selector: 'daff-modal-actions',
|
3057
3098
|
template: '<ng-content></ng-content>',
|
3099
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
3058
3100
|
styles: [":host{display:block;padding-top:24px}"]
|
3059
3101
|
},] }
|
3060
3102
|
];
|
@@ -3198,6 +3240,20 @@ DaffModalService.ctorParameters = () => [
|
|
3198
3240
|
{ type: Overlay }
|
3199
3241
|
];
|
3200
3242
|
|
3243
|
+
/**
|
3244
|
+
* A mixin for giving a component the ability to manage a DaffContainerComponent's layout.
|
3245
|
+
* It passes predetermined layout styles down to the container. In order for a component to
|
3246
|
+
* do this, it must implement this mixin.
|
3247
|
+
*/
|
3248
|
+
function daffManageContainerLayoutMixin(Base) {
|
3249
|
+
return class extends Base {
|
3250
|
+
constructor(...args) {
|
3251
|
+
super(...args);
|
3252
|
+
this._renderer.addClass(this._elementRef.nativeElement, `daff-manage-container-layout`);
|
3253
|
+
}
|
3254
|
+
};
|
3255
|
+
}
|
3256
|
+
|
3201
3257
|
/**
|
3202
3258
|
* An _elementRef is needed for the Colorable mixin
|
3203
3259
|
*/
|
@@ -3207,7 +3263,7 @@ class DaffNavbarBase {
|
|
3207
3263
|
this._renderer = _renderer;
|
3208
3264
|
}
|
3209
3265
|
}
|
3210
|
-
const _daffNavbarBase = daffColorMixin(DaffNavbarBase);
|
3266
|
+
const _daffNavbarBase = daffManageContainerLayoutMixin(daffColorMixin(DaffNavbarBase));
|
3211
3267
|
/**
|
3212
3268
|
* @inheritdoc
|
3213
3269
|
*/
|
@@ -3443,6 +3499,11 @@ DaffPaginatorModule.decorators = [
|
|
3443
3499
|
},] }
|
3444
3500
|
];
|
3445
3501
|
|
3502
|
+
/**
|
3503
|
+
* @deprecated See {@link DaffQuantityFieldComponent}
|
3504
|
+
*/
|
3505
|
+
// ChangeDetection is ignored because this component is deprecated and will be removed
|
3506
|
+
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
3446
3507
|
class DaffQtyDropdownComponent {
|
3447
3508
|
constructor(renderer) {
|
3448
3509
|
this.renderer = renderer;
|
@@ -3641,6 +3702,7 @@ DaffSidebarComponent.decorators = [
|
|
3641
3702
|
selector: 'daff-sidebar',
|
3642
3703
|
template: '<ng-content></ng-content>',
|
3643
3704
|
encapsulation: ViewEncapsulation.None,
|
3705
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
3644
3706
|
styles: [":host{display:block}.daff-sidebar{display:block;height:100%}"]
|
3645
3707
|
},] }
|
3646
3708
|
];
|
@@ -3787,6 +3849,40 @@ DaffSidebarModule.decorators = [
|
|
3787
3849
|
},] }
|
3788
3850
|
];
|
3789
3851
|
|
3852
|
+
class DaffHeroBodyDirective {
|
3853
|
+
constructor() {
|
3854
|
+
/**
|
3855
|
+
* @docs-private
|
3856
|
+
*/
|
3857
|
+
this.class = true;
|
3858
|
+
}
|
3859
|
+
}
|
3860
|
+
DaffHeroBodyDirective.decorators = [
|
3861
|
+
{ type: Directive, args: [{
|
3862
|
+
selector: '[daffHeroBody]',
|
3863
|
+
},] }
|
3864
|
+
];
|
3865
|
+
DaffHeroBodyDirective.propDecorators = {
|
3866
|
+
class: [{ type: HostBinding, args: ['class.daff-hero__body',] }]
|
3867
|
+
};
|
3868
|
+
|
3869
|
+
class DaffHeroIconDirective {
|
3870
|
+
constructor() {
|
3871
|
+
/**
|
3872
|
+
* @docs-private
|
3873
|
+
*/
|
3874
|
+
this.class = true;
|
3875
|
+
}
|
3876
|
+
}
|
3877
|
+
DaffHeroIconDirective.decorators = [
|
3878
|
+
{ type: Directive, args: [{
|
3879
|
+
selector: '[daffHeroIcon]',
|
3880
|
+
},] }
|
3881
|
+
];
|
3882
|
+
DaffHeroIconDirective.propDecorators = {
|
3883
|
+
class: [{ type: HostBinding, args: ['class.daff-hero__icon',] }]
|
3884
|
+
};
|
3885
|
+
|
3790
3886
|
class DaffHeroSubtitleDirective {
|
3791
3887
|
constructor() {
|
3792
3888
|
/**
|
@@ -3838,6 +3934,32 @@ DaffHeroTitleDirective.propDecorators = {
|
|
3838
3934
|
class: [{ type: HostBinding, args: ['class.daff-hero__title',] }]
|
3839
3935
|
};
|
3840
3936
|
|
3937
|
+
function daffCompactableMixin(Base, defaultCompact = false) {
|
3938
|
+
return class extends Base {
|
3939
|
+
constructor(...args) {
|
3940
|
+
super(...args);
|
3941
|
+
this.compact = defaultCompact;
|
3942
|
+
}
|
3943
|
+
get compact() {
|
3944
|
+
return this._compact;
|
3945
|
+
}
|
3946
|
+
set compact(value) {
|
3947
|
+
// Handles the default compact
|
3948
|
+
const incomingCompact = value || defaultCompact;
|
3949
|
+
if (incomingCompact === this._compact) { // Only run the dom-render if a change occurs
|
3950
|
+
return;
|
3951
|
+
}
|
3952
|
+
if (incomingCompact) {
|
3953
|
+
this._renderer.addClass(this._elementRef.nativeElement, `daff-compact`);
|
3954
|
+
}
|
3955
|
+
else {
|
3956
|
+
this._renderer.removeClass(this._elementRef.nativeElement, `daff-compact`);
|
3957
|
+
}
|
3958
|
+
this._compact = incomingCompact;
|
3959
|
+
}
|
3960
|
+
};
|
3961
|
+
}
|
3962
|
+
|
3841
3963
|
function daffTextAlignmentMixin(Base, defaultTextAlignment) {
|
3842
3964
|
class DaffTextAlignableMixin extends Base {
|
3843
3965
|
constructor(...args) {
|
@@ -3880,7 +4002,7 @@ var DaffHeroLayoutEnum;
|
|
3880
4002
|
var DaffHeroSizeEnum;
|
3881
4003
|
(function (DaffHeroSizeEnum) {
|
3882
4004
|
DaffHeroSizeEnum["Compact"] = "compact";
|
3883
|
-
DaffHeroSizeEnum["Small"] = "small";
|
4005
|
+
DaffHeroSizeEnum["Small"] = "small";
|
3884
4006
|
})(DaffHeroSizeEnum || (DaffHeroSizeEnum = {}));
|
3885
4007
|
/**
|
3886
4008
|
* An _elementRef and an instance of renderer2 are needed for the Colorable mixin
|
@@ -3891,7 +4013,7 @@ class DaffHeroBase {
|
|
3891
4013
|
this._renderer = _renderer;
|
3892
4014
|
}
|
3893
4015
|
}
|
3894
|
-
const _daffHeroBase = daffColorMixin(daffTextAlignmentMixin(DaffHeroBase));
|
4016
|
+
const _daffHeroBase = daffManageContainerLayoutMixin(daffColorMixin(daffCompactableMixin(daffTextAlignmentMixin(DaffHeroBase, 'left'))));
|
3895
4017
|
/**
|
3896
4018
|
* @inheritdoc
|
3897
4019
|
*/
|
@@ -3906,28 +4028,16 @@ class DaffHeroComponent extends _daffHeroBase {
|
|
3906
4028
|
this.class = true;
|
3907
4029
|
}
|
3908
4030
|
/**
|
3909
|
-
*
|
3910
|
-
*
|
3911
|
-
* @docs-private
|
4031
|
+
* @deprecated See {@link DaffTextAlignable}
|
3912
4032
|
*/
|
3913
4033
|
get centered() {
|
3914
4034
|
return this.layout === DaffHeroLayoutEnum.Centered;
|
3915
4035
|
}
|
3916
4036
|
/**
|
3917
|
-
*
|
3918
|
-
*
|
3919
|
-
* @docs-private
|
4037
|
+
* @deprecated See {@link DaffCompactable}
|
3920
4038
|
*/
|
3921
|
-
get
|
3922
|
-
return this.size === DaffHeroSizeEnum.Small;
|
3923
|
-
}
|
3924
|
-
/**
|
3925
|
-
* Will be deprecated in v1.0.0
|
3926
|
-
*
|
3927
|
-
* @docs-private
|
3928
|
-
*/
|
3929
|
-
get compact() {
|
3930
|
-
return this.size === DaffHeroSizeEnum.Compact;
|
4039
|
+
get compactClass() {
|
4040
|
+
return this.size === DaffHeroSizeEnum.Compact || this.compact === true || this.size === DaffHeroSizeEnum.Small;
|
3931
4041
|
}
|
3932
4042
|
}
|
3933
4043
|
DaffHeroComponent.decorators = [
|
@@ -3937,9 +4047,9 @@ DaffHeroComponent.decorators = [
|
|
3937
4047
|
encapsulation: ViewEncapsulation.None,
|
3938
4048
|
//todo(damienwebdev): remove once decorators hit stage 3 - https://github.com/microsoft/TypeScript/issues/7342
|
3939
4049
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
3940
|
-
inputs: ['color', 'textAlignment'],
|
4050
|
+
inputs: ['color', 'compact', 'textAlignment'],
|
3941
4051
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
3942
|
-
styles: [".daff-hero{display:block;padding:64px 24px}@media (min-width:480px){.daff-hero{padding:96px 48px}}.daff-hero__tagline{
|
4052
|
+
styles: [".daff-hero{display:block;padding:64px 24px}@media (min-width:480px){.daff-hero{padding:96px 48px}}.daff-hero__icon{margin:0 0 16px}.daff-hero__tagline{text-transform:uppercase;font-size:.875rem;font-weight:600;letter-spacing:.03125rem;line-height:1rem;margin:0 0 8px;padding:0}.daff-hero__title{font-weight:700;font-size:2.5rem;line-height:2.5rem;margin:0;max-width:1040px;width:100%}@media (min-width:768px){.daff-hero__title{font-size:4.5rem;line-height:4.5rem}}.daff-hero__subtitle{font-size:1.25rem;font-weight:400;line-height:1.75rem;margin:16px 0 0;max-width:672px;width:100%}@media (min-width:768px){.daff-hero__subtitle{font-size:1.5rem;font-weight:400;line-height:2rem}}.daff-hero__subtitle p:first-of-type{margin-top:0}.daff-hero__subtitle p:last-of-type{margin-bottom:0}.daff-hero__body:not(:last-child){margin-bottom:48px}.daff-hero__body:not(:first-child){margin-top:48px}.daff-hero--centered .daff-hero__title{margin:0 auto;text-align:center}.daff-hero--centered .daff-hero__subtitle{margin:24px auto 0;text-align:center}.daff-hero--compact,.daff-hero--small{padding:50px 25px}@media (min-width:480px){.daff-hero--compact,.daff-hero--small{padding:50px}}.daff-hero.daff-compact{padding:48px 24px}@media (min-width:480px){.daff-hero.daff-compact{padding:48px}}.daff-hero.daff-left .daff-hero__icon,.daff-hero.daff-left .daff-hero__subtitle,.daff-hero.daff-left .daff-hero__tagline,.daff-hero.daff-left .daff-hero__title{text-align:left}.daff-hero.daff-center .daff-hero__icon,.daff-hero.daff-center .daff-hero__subtitle,.daff-hero.daff-center .daff-hero__tagline,.daff-hero.daff-center .daff-hero__title{margin-left:auto;margin-right:auto;text-align:center}.daff-hero.daff-right .daff-hero__icon,.daff-hero.daff-right .daff-hero__subtitle,.daff-hero.daff-right .daff-hero__tagline,.daff-hero.daff-right .daff-hero__title{margin-left:auto;text-align:right}"]
|
3943
4053
|
},] }
|
3944
4054
|
];
|
3945
4055
|
/** @nocollapse */
|
@@ -3952,8 +4062,7 @@ DaffHeroComponent.propDecorators = {
|
|
3952
4062
|
size: [{ type: Input }],
|
3953
4063
|
class: [{ type: HostBinding, args: ['class.daff-hero',] }],
|
3954
4064
|
centered: [{ type: HostBinding, args: ['class.daff-hero--centered',] }],
|
3955
|
-
|
3956
|
-
compact: [{ type: HostBinding, args: ['class.daff-hero--compact',] }]
|
4065
|
+
compactClass: [{ type: HostBinding, args: ['class.daff-hero--compact',] }]
|
3957
4066
|
};
|
3958
4067
|
|
3959
4068
|
class DaffHeroModule {
|
@@ -3965,19 +4074,57 @@ DaffHeroModule.decorators = [
|
|
3965
4074
|
],
|
3966
4075
|
declarations: [
|
3967
4076
|
DaffHeroComponent,
|
4077
|
+
DaffHeroIconDirective,
|
3968
4078
|
DaffHeroTaglineDirective,
|
3969
4079
|
DaffHeroTitleDirective,
|
3970
4080
|
DaffHeroSubtitleDirective,
|
4081
|
+
DaffHeroBodyDirective,
|
3971
4082
|
],
|
3972
4083
|
exports: [
|
3973
4084
|
DaffHeroComponent,
|
4085
|
+
DaffHeroIconDirective,
|
3974
4086
|
DaffHeroTaglineDirective,
|
3975
4087
|
DaffHeroTitleDirective,
|
3976
4088
|
DaffHeroSubtitleDirective,
|
4089
|
+
DaffHeroBodyDirective,
|
3977
4090
|
],
|
3978
4091
|
},] }
|
3979
4092
|
];
|
3980
4093
|
|
4094
|
+
class DaffCalloutBodyDirective {
|
4095
|
+
constructor() {
|
4096
|
+
/**
|
4097
|
+
* @docs-private
|
4098
|
+
*/
|
4099
|
+
this.class = true;
|
4100
|
+
}
|
4101
|
+
}
|
4102
|
+
DaffCalloutBodyDirective.decorators = [
|
4103
|
+
{ type: Directive, args: [{
|
4104
|
+
selector: '[daffCalloutBody]',
|
4105
|
+
},] }
|
4106
|
+
];
|
4107
|
+
DaffCalloutBodyDirective.propDecorators = {
|
4108
|
+
class: [{ type: HostBinding, args: ['class.daff-callout__body',] }]
|
4109
|
+
};
|
4110
|
+
|
4111
|
+
class DaffCalloutIconDirective {
|
4112
|
+
constructor() {
|
4113
|
+
/**
|
4114
|
+
* @docs-private
|
4115
|
+
*/
|
4116
|
+
this.class = true;
|
4117
|
+
}
|
4118
|
+
}
|
4119
|
+
DaffCalloutIconDirective.decorators = [
|
4120
|
+
{ type: Directive, args: [{
|
4121
|
+
selector: '[daffCalloutIcon]',
|
4122
|
+
},] }
|
4123
|
+
];
|
4124
|
+
DaffCalloutIconDirective.propDecorators = {
|
4125
|
+
class: [{ type: HostBinding, args: ['class.daff-callout__icon',] }]
|
4126
|
+
};
|
4127
|
+
|
3981
4128
|
class DaffCalloutSubtitleDirective {
|
3982
4129
|
constructor() {
|
3983
4130
|
/**
|
@@ -4046,7 +4193,7 @@ class DaffCalloutBase {
|
|
4046
4193
|
this._renderer = _renderer;
|
4047
4194
|
}
|
4048
4195
|
}
|
4049
|
-
const _daffCalloutBase = daffColorMixin(daffTextAlignmentMixin(DaffCalloutBase));
|
4196
|
+
const _daffCalloutBase = daffManageContainerLayoutMixin(daffColorMixin(daffCompactableMixin(daffTextAlignmentMixin(DaffCalloutBase, 'left'))));
|
4050
4197
|
/**
|
4051
4198
|
* @inheritdoc
|
4052
4199
|
*/
|
@@ -4061,19 +4208,15 @@ class DaffCalloutComponent extends _daffCalloutBase {
|
|
4061
4208
|
this.class = true;
|
4062
4209
|
}
|
4063
4210
|
/**
|
4064
|
-
*
|
4065
|
-
*
|
4066
|
-
* @docs-private
|
4211
|
+
* @deprecated See {@link DaffTextAlignable}
|
4067
4212
|
*/
|
4068
4213
|
get centered() {
|
4069
4214
|
return this.layout === DaffCalloutLayoutEnum.Centered;
|
4070
4215
|
}
|
4071
4216
|
/**
|
4072
|
-
*
|
4073
|
-
*
|
4074
|
-
* @docs-private
|
4217
|
+
* @deprecated See {@link DaffCompactable}
|
4075
4218
|
*/
|
4076
|
-
get
|
4219
|
+
get compactClass() {
|
4077
4220
|
return this.size === DaffCalloutSizeEnum.Compact;
|
4078
4221
|
}
|
4079
4222
|
}
|
@@ -4084,9 +4227,9 @@ DaffCalloutComponent.decorators = [
|
|
4084
4227
|
encapsulation: ViewEncapsulation.None,
|
4085
4228
|
//todo(damienwebdev): remove once decorators hit stage 3 - https://github.com/microsoft/TypeScript/issues/7342
|
4086
4229
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
4087
|
-
inputs: ['color', 'textAlignment'],
|
4230
|
+
inputs: ['color', 'compact', 'textAlignment'],
|
4088
4231
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
4089
|
-
styles: [".daff-callout{display:block;padding:64px 24px}@media (min-width:480px){.daff-callout{padding:96px 48px}}
|
4232
|
+
styles: [".daff-callout{display:block;padding:64px 24px}@media (min-width:480px){.daff-callout{padding:96px 48px}}.daff-callout__icon{margin:0 0 16px}.daff-callout__tagline{text-transform:uppercase;font-size:.875rem;font-weight:600;letter-spacing:.03125rem;line-height:1rem;margin:0 0 8px;padding:0}.daff-callout__title{font-weight:700;font-size:1.75rem;line-height:2rem;margin:0;max-width:1040px;overflow-wrap:break-word;padding:0;width:100%}@media (min-width:480px){.daff-callout__title{font-weight:700;font-size:2rem;line-height:2.25rem}}@media (min-width:480px) and (min-width:768px){.daff-callout__title{font-size:3rem;line-height:3.5rem}}.daff-callout__subtitle{font-size:1.25rem;margin:16px 0 0;max-width:592px;padding:0;width:100%}.daff-callout__body:not(:last-child){margin-bottom:48px}.daff-callout__body:not(:first-child){margin-top:48px}.daff-callout__body p:first-of-type{margin-top:0}.daff-callout__body p:last-of-type{margin-bottom:0}.daff-callout--centered .daff-callout__title{margin:0 auto;text-align:center}.daff-callout--centered .daff-callout__subtitle{margin:10px auto 0;text-align:center}@media (min-width:480px){.daff-callout--centered .daff-callout__subtitle{margin:25px auto 0}}.daff-callout--compact{padding:25px}@media (min-width:480px){.daff-callout--compact{padding:25px 50px}}.daff-callout.daff-compact{padding:48px 24px}@media (min-width:480px){.daff-callout.daff-compact{padding:48px}}.daff-callout.daff-left .daff-callout__icon,.daff-callout.daff-left .daff-callout__subtitle,.daff-callout.daff-left .daff-callout__tagline,.daff-callout.daff-left .daff-callout__title{text-align:left}.daff-callout.daff-center .daff-callout__icon,.daff-callout.daff-center .daff-callout__subtitle,.daff-callout.daff-center .daff-callout__tagline,.daff-callout.daff-center .daff-callout__title{margin-left:auto;margin-right:auto;text-align:center}.daff-callout.daff-right .daff-callout__icon,.daff-callout.daff-right .daff-callout__subtitle,.daff-callout.daff-right .daff-callout__tagline,.daff-callout.daff-right .daff-callout__title{margin-left:auto;text-align:right}"]
|
4090
4233
|
},] }
|
4091
4234
|
];
|
4092
4235
|
/** @nocollapse */
|
@@ -4099,7 +4242,7 @@ DaffCalloutComponent.propDecorators = {
|
|
4099
4242
|
size: [{ type: Input }],
|
4100
4243
|
class: [{ type: HostBinding, args: ['class.daff-callout',] }],
|
4101
4244
|
centered: [{ type: HostBinding, args: ['class.daff-callout--centered',] }],
|
4102
|
-
|
4245
|
+
compactClass: [{ type: HostBinding, args: ['class.daff-callout--compact',] }]
|
4103
4246
|
};
|
4104
4247
|
|
4105
4248
|
class DaffCalloutModule {
|
@@ -4111,15 +4254,19 @@ DaffCalloutModule.decorators = [
|
|
4111
4254
|
],
|
4112
4255
|
declarations: [
|
4113
4256
|
DaffCalloutComponent,
|
4257
|
+
DaffCalloutIconDirective,
|
4114
4258
|
DaffCalloutTitleDirective,
|
4115
4259
|
DaffCalloutSubtitleDirective,
|
4116
4260
|
DaffCalloutTaglineDirective,
|
4261
|
+
DaffCalloutBodyDirective,
|
4117
4262
|
],
|
4118
4263
|
exports: [
|
4119
4264
|
DaffCalloutComponent,
|
4265
|
+
DaffCalloutIconDirective,
|
4120
4266
|
DaffCalloutSubtitleDirective,
|
4121
4267
|
DaffCalloutTitleDirective,
|
4122
4268
|
DaffCalloutTaglineDirective,
|
4269
|
+
DaffCalloutBodyDirective,
|
4123
4270
|
],
|
4124
4271
|
},] }
|
4125
4272
|
];
|
@@ -4275,6 +4422,40 @@ DaffCardActionsDirective.propDecorators = {
|
|
4275
4422
|
class: [{ type: HostBinding, args: ['class.daff-card__actions',] }]
|
4276
4423
|
};
|
4277
4424
|
|
4425
|
+
class DaffCardContentDirective {
|
4426
|
+
constructor() {
|
4427
|
+
/**
|
4428
|
+
* @docs-private
|
4429
|
+
*/
|
4430
|
+
this.class = true;
|
4431
|
+
}
|
4432
|
+
}
|
4433
|
+
DaffCardContentDirective.decorators = [
|
4434
|
+
{ type: Directive, args: [{
|
4435
|
+
selector: '[daffCardContent]',
|
4436
|
+
},] }
|
4437
|
+
];
|
4438
|
+
DaffCardContentDirective.propDecorators = {
|
4439
|
+
class: [{ type: HostBinding, args: ['class.daff-card__content',] }]
|
4440
|
+
};
|
4441
|
+
|
4442
|
+
class DaffCardIconDirective {
|
4443
|
+
constructor() {
|
4444
|
+
/**
|
4445
|
+
* @docs-private
|
4446
|
+
*/
|
4447
|
+
this.class = true;
|
4448
|
+
}
|
4449
|
+
}
|
4450
|
+
DaffCardIconDirective.decorators = [
|
4451
|
+
{ type: Directive, args: [{
|
4452
|
+
selector: '[daffCardIcon]',
|
4453
|
+
},] }
|
4454
|
+
];
|
4455
|
+
DaffCardIconDirective.propDecorators = {
|
4456
|
+
class: [{ type: HostBinding, args: ['class.daff-card__icon',] }]
|
4457
|
+
};
|
4458
|
+
|
4278
4459
|
class DaffCardImageDirective {
|
4279
4460
|
constructor() {
|
4280
4461
|
/**
|
@@ -4326,6 +4507,16 @@ DaffCardTitleDirective.propDecorators = {
|
|
4326
4507
|
class: [{ type: HostBinding, args: ['class.daff-card__title',] }]
|
4327
4508
|
};
|
4328
4509
|
|
4510
|
+
var DaffCardTypeEnum;
|
4511
|
+
(function (DaffCardTypeEnum) {
|
4512
|
+
DaffCardTypeEnum["Raised"] = "daff-raised-card";
|
4513
|
+
DaffCardTypeEnum["Stroked"] = "daff-stroked-card";
|
4514
|
+
})(DaffCardTypeEnum || (DaffCardTypeEnum = {}));
|
4515
|
+
var DaffCardOrientationEnum;
|
4516
|
+
(function (DaffCardOrientationEnum) {
|
4517
|
+
DaffCardOrientationEnum["Vertical"] = "vertical";
|
4518
|
+
DaffCardOrientationEnum["Horizontal"] = "horizontal";
|
4519
|
+
})(DaffCardOrientationEnum || (DaffCardOrientationEnum = {}));
|
4329
4520
|
/**
|
4330
4521
|
* An _elementRef and an instance of renderer2 are needed for the Colorable mixin
|
4331
4522
|
*/
|
@@ -4344,28 +4535,79 @@ class DaffCardComponent extends _daffCardBase {
|
|
4344
4535
|
super(elementRef, renderer);
|
4345
4536
|
this.elementRef = elementRef;
|
4346
4537
|
this.renderer = renderer;
|
4347
|
-
this.
|
4348
|
-
/**
|
4349
|
-
* @docs-private
|
4350
|
-
*/
|
4538
|
+
this._orientation = DaffCardOrientationEnum.Vertical;
|
4351
4539
|
this.class = true;
|
4540
|
+
this.cardType = this.initCardType();
|
4541
|
+
}
|
4542
|
+
get orientation() {
|
4543
|
+
return this._orientation;
|
4544
|
+
}
|
4545
|
+
set orientation(value) {
|
4546
|
+
if (value === null || value === undefined || value === '') {
|
4547
|
+
this._orientation = DaffCardOrientationEnum.Vertical;
|
4548
|
+
}
|
4549
|
+
else {
|
4550
|
+
this._orientation = value;
|
4551
|
+
}
|
4552
|
+
}
|
4553
|
+
;
|
4554
|
+
initCardType() {
|
4555
|
+
const values = Object.keys(DaffCardTypeEnum).map((k) => DaffCardTypeEnum[k]);
|
4556
|
+
if (values.indexOf(this._getHostElement().localName) >= 0) {
|
4557
|
+
return this._getHostElement().localName;
|
4558
|
+
}
|
4559
|
+
for (const attr of values) {
|
4560
|
+
if (this._hasHostAttributes(attr)) {
|
4561
|
+
return attr;
|
4562
|
+
}
|
4563
|
+
}
|
4564
|
+
return null;
|
4565
|
+
}
|
4566
|
+
/**
|
4567
|
+
* @docs-private
|
4568
|
+
*/
|
4569
|
+
ngOnInit() {
|
4570
|
+
if (this.cardType) {
|
4571
|
+
this.elementRef.nativeElement.classList.add(this.cardType);
|
4572
|
+
}
|
4573
|
+
}
|
4574
|
+
/**
|
4575
|
+
* @docs-private
|
4576
|
+
*/
|
4577
|
+
get verticalClass() {
|
4578
|
+
return this.orientation === DaffCardOrientationEnum.Vertical;
|
4579
|
+
}
|
4580
|
+
/**
|
4581
|
+
* @docs-private
|
4582
|
+
*/
|
4583
|
+
get horizontalClass() {
|
4584
|
+
return this.orientation === DaffCardOrientationEnum.Horizontal;
|
4352
4585
|
}
|
4353
|
-
|
4354
|
-
return this.
|
4586
|
+
_getHostElement() {
|
4587
|
+
return this.elementRef.nativeElement;
|
4588
|
+
}
|
4589
|
+
/**
|
4590
|
+
* Gets whether the button has one of the given attributes.
|
4591
|
+
* */
|
4592
|
+
_hasHostAttributes(...attributes) {
|
4593
|
+
return attributes.some(attribute => this._getHostElement().hasAttribute(attribute));
|
4355
4594
|
}
|
4356
4595
|
}
|
4357
4596
|
DaffCardComponent.decorators = [
|
4358
4597
|
{ type: Component, args: [{
|
4359
|
-
selector: '' +
|
4360
|
-
'daff-card' + ',' +
|
4361
|
-
'
|
4362
|
-
|
4598
|
+
selector: 'daff-card' + ',' +
|
4599
|
+
'daff-raised-card' + ',' +
|
4600
|
+
'daff-stroked-card' + ',' +
|
4601
|
+
'a[daff-card]' + ',' +
|
4602
|
+
'a[daff-raised-card]' + ',' +
|
4603
|
+
'a[daff-stroked-card]',
|
4604
|
+
template: "<ng-content select=\"[daffCardImage]\"></ng-content>\n<div class=\"daff-card__wrapper\">\n\t<div class=\"daff-card__body\">\n\t\t<ng-content select=\"[daffCardIcon]\"></ng-content>\n\t\t<ng-content select=\"[daffCardTagline]\"></ng-content>\n\t\t<ng-content select=\"[daffCardTitle]\"></ng-content>\n\t\t<ng-content select=\"[daffCardContent]\"></ng-content>\n\t</div>\n\t<ng-content select=\"[daffCardActions]\"></ng-content>\n</div>",
|
4363
4605
|
encapsulation: ViewEncapsulation.None,
|
4364
4606
|
//todo(damienwebdev): remove once decorators hit stage 3 - https://github.com/microsoft/TypeScript/issues/7342
|
4365
4607
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
4366
4608
|
inputs: ['color'],
|
4367
4609
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
4368
|
-
styles: [".daff-card{display:flex;
|
4610
|
+
styles: [".daff-card{display:flex;border-radius:8px}.daff-card__image{display:inline-block;width:100%}.daff-card--vertical{flex-direction:column}.daff-card--vertical .daff-card__image,.daff-card--vertical .daff-card__image img{border-top-left-radius:calc(8px - 1px);border-top-right-radius:calc(8px - 1px)}.daff-card--horizontal{flex-wrap:wrap}@media (min-width:480px){.daff-card--horizontal{flex-direction:row;flex-wrap:nowrap}}.daff-card--horizontal .daff-card__image,.daff-card--horizontal .daff-card__image img{border-top-left-radius:calc(8px - 1px);border-bottom-left-radius:calc(8px - 1px)}.daff-card--horizontal .daff-card__image img{-o-object-fit:cover;object-fit:cover;-o-object-position:center center;object-position:center center;height:100%!important;width:100%}.daff-card__icon{display:block;margin:0 0 .5rem}.daff-card__tagline{text-transform:uppercase;font-size:.875rem;font-weight:600;letter-spacing:.03125rem;line-height:1rem;padding:0;margin:0 0 .25rem}.daff-card__title{font-weight:700;font-size:1.5rem;line-height:1.75rem;margin:0 0 1rem}.daff-card__body{padding:1.5rem}.daff-card__content p:first-of-type{margin-top:0}.daff-card__content p:last-of-type{margin-bottom:0}.daff-card__actions{padding:0 1.5rem 1.5rem}a.daff-card,a.daff-raised-card,a.daff-stroked-card{text-decoration:none;transition:background-color .3s,box-shadow .3s}"]
|
4369
4611
|
},] }
|
4370
4612
|
];
|
4371
4613
|
/** @nocollapse */
|
@@ -4374,9 +4616,10 @@ DaffCardComponent.ctorParameters = () => [
|
|
4374
4616
|
{ type: Renderer2 }
|
4375
4617
|
];
|
4376
4618
|
DaffCardComponent.propDecorators = {
|
4377
|
-
|
4619
|
+
orientation: [{ type: Input }],
|
4378
4620
|
class: [{ type: HostBinding, args: ['class.daff-card',] }],
|
4379
|
-
|
4621
|
+
verticalClass: [{ type: HostBinding, args: ['class.daff-card--vertical',] }],
|
4622
|
+
horizontalClass: [{ type: HostBinding, args: ['class.daff-card--horizontal',] }]
|
4380
4623
|
};
|
4381
4624
|
|
4382
4625
|
class DaffCardModule {
|
@@ -4388,16 +4631,20 @@ DaffCardModule.decorators = [
|
|
4388
4631
|
],
|
4389
4632
|
declarations: [
|
4390
4633
|
DaffCardComponent,
|
4634
|
+
DaffCardIconDirective,
|
4635
|
+
DaffCardImageDirective,
|
4391
4636
|
DaffCardTaglineDirective,
|
4392
4637
|
DaffCardTitleDirective,
|
4393
|
-
|
4638
|
+
DaffCardContentDirective,
|
4394
4639
|
DaffCardActionsDirective,
|
4395
4640
|
],
|
4396
4641
|
exports: [
|
4397
4642
|
DaffCardComponent,
|
4643
|
+
DaffCardIconDirective,
|
4644
|
+
DaffCardImageDirective,
|
4398
4645
|
DaffCardTaglineDirective,
|
4399
4646
|
DaffCardTitleDirective,
|
4400
|
-
|
4647
|
+
DaffCardContentDirective,
|
4401
4648
|
DaffCardActionsDirective,
|
4402
4649
|
],
|
4403
4650
|
},] }
|
@@ -4443,5 +4690,5 @@ var DaffTextAlignmentEnum;
|
|
4443
4690
|
* Generated bundle index. Do not edit.
|
4444
4691
|
*/
|
4445
4692
|
|
4446
|
-
export { DaffAccordionComponent, DaffAccordionItemComponent, DaffAccordionItemContentDirective, DaffAccordionItemTitleDirective, DaffAccordionModule, DaffArticleComponent, DaffArticleLeadDirective, DaffArticleMetaDirective, DaffArticleModule, DaffArticleTitleDirective, DaffBackdropComponent, DaffBackdropModule, DaffBreakpoints, DaffButtonComponent, DaffButtonModule, DaffButtonSetComponent, DaffButtonSetModule, DaffCalloutComponent, DaffCalloutLayoutEnum, DaffCalloutModule, DaffCalloutSizeEnum, DaffCalloutSubtitleDirective, DaffCalloutTaglineDirective, DaffCalloutTitleDirective, DaffCardActionsDirective, DaffCardComponent, DaffCardImageDirective, DaffCardModule, DaffCardTaglineDirective, DaffCardTitleDirective, DaffCheckboxComponent, DaffCheckboxControlValueAccessorDirective, DaffCheckboxModule, DaffCheckboxSetComponent, DaffContainerComponent, DaffContainerModule, DaffErrorMessageComponent, DaffErrorMessageModule, DaffErrorStateMatcher, DaffFeatureComponent, DaffFeatureIconDirective, DaffFeatureModeEnum, DaffFeatureModule, DaffFeatureSubheaderDirective, DaffFeatureSubtitleDirective, DaffFeatureTitleDirective, DaffFormFieldComponent, DaffFormFieldControl, DaffFormFieldModule, DaffGalleryImageComponent, DaffHeroComponent, DaffHeroLayoutEnum, DaffHeroModule, DaffHeroSizeEnum, DaffHeroSubtitleDirective, DaffHeroTaglineDirective, DaffHeroTitleDirective, DaffImageComponent, DaffImageGalleryComponent, DaffImageGalleryModule, DaffImageListComponent, DaffImageListModule, DaffImageModule, DaffInputComponent, DaffInputModule, DaffLinkSetComponent, DaffLinkSetHeadingDirective, DaffLinkSetItemComponent, DaffLinkSetModule, DaffLinkSetSubheadingDirective, DaffListComponent, DaffListItemComponent, DaffListModeEnum, DaffListModule, DaffListSubheaderDirective, DaffLoadingIconComponent, DaffLoadingIconModule, DaffMediaGalleryComponent, DaffMediaGalleryModule, DaffModalActionsComponent, DaffModalComponent, DaffModalContentComponent, DaffModalHeaderComponent, DaffModalModule, DaffModalService, DaffModalTitleDirective, DaffNativeSelectComponent, DaffNativeSelectModule, DaffNavbarComponent, DaffNavbarModule, DaffPaginatorComponent, DaffPaginatorModule, DaffPrefixDirective, DaffPrefixSuffixModule, DaffProgressIndicatorComponent, DaffProgressIndicatorModule, DaffQtyDropdownComponent, DaffQtyDropdownModule, DaffQuantityFieldComponent, DaffQuantityFieldModule, DaffQuantityInputComponent, DaffQuantitySelectComponent, DaffRadioComponent, DaffRadioControlValueAccessorDirective, DaffRadioModule, DaffRadioSetComponent, DaffSidebarComponent, DaffSidebarModule, DaffSidebarViewportComponent, DaffStatusEnum, DaffSuffixDirective, DaffTextAlignmentEnum, DaffThumbnailDirective, daffPrefixableMixin, daffSuffixableMixin, daffThumbnailCompatToken, daffProgressIndicatorAnimation as ɵa, DaffRadioRegistry as ɵb, daffAccordionAnimations as ɵc, DaffNavAccordionItemComponent as ɵd, daffBackdropAnimations as ɵe, DAFF_MEDIA_GALLERY_TOKEN as ɵf, DaffMediaGalleryRegistry as ɵg, DaffMediaRendererComponent as ɵi, daffFadeAnimations as ɵj, daffSidebarAnimations as ɵk };
|
4693
|
+
export { DaffAccordionComponent, DaffAccordionItemComponent, DaffAccordionItemContentDirective, DaffAccordionItemTitleDirective, DaffAccordionModule, DaffArticleComponent, DaffArticleLeadDirective, DaffArticleMetaDirective, DaffArticleModule, DaffArticleTitleDirective, DaffBackdropComponent, DaffBackdropModule, DaffBreakpoints, DaffButtonComponent, DaffButtonModule, DaffButtonSetComponent, DaffButtonSetModule, DaffCalloutBodyDirective, DaffCalloutComponent, DaffCalloutIconDirective, DaffCalloutLayoutEnum, DaffCalloutModule, DaffCalloutSizeEnum, DaffCalloutSubtitleDirective, DaffCalloutTaglineDirective, DaffCalloutTitleDirective, DaffCardActionsDirective, DaffCardComponent, DaffCardContentDirective, DaffCardIconDirective, DaffCardImageDirective, DaffCardModule, DaffCardOrientationEnum, DaffCardTaglineDirective, DaffCardTitleDirective, DaffCheckboxComponent, DaffCheckboxControlValueAccessorDirective, DaffCheckboxModule, DaffCheckboxSetComponent, DaffContainerComponent, DaffContainerModule, DaffErrorMessageComponent, DaffErrorMessageModule, DaffErrorStateMatcher, DaffFeatureComponent, DaffFeatureIconDirective, DaffFeatureModeEnum, DaffFeatureModule, DaffFeatureSubheaderDirective, DaffFeatureSubtitleDirective, DaffFeatureTitleDirective, DaffFormFieldComponent, DaffFormFieldControl, DaffFormFieldModule, DaffGalleryImageComponent, DaffHeroBodyDirective, DaffHeroComponent, DaffHeroIconDirective, DaffHeroLayoutEnum, DaffHeroModule, DaffHeroSizeEnum, DaffHeroSubtitleDirective, DaffHeroTaglineDirective, DaffHeroTitleDirective, DaffImageComponent, DaffImageGalleryComponent, DaffImageGalleryModule, DaffImageListComponent, DaffImageListModule, DaffImageModule, DaffInputComponent, DaffInputModule, DaffLinkSetComponent, DaffLinkSetHeadingDirective, DaffLinkSetItemComponent, DaffLinkSetModule, DaffLinkSetSubheadingDirective, DaffListComponent, DaffListItemComponent, DaffListModeEnum, DaffListModule, DaffListSubheaderDirective, DaffLoadingIconComponent, DaffLoadingIconModule, DaffMediaGalleryComponent, DaffMediaGalleryModule, DaffModalActionsComponent, DaffModalComponent, DaffModalContentComponent, DaffModalHeaderComponent, DaffModalModule, DaffModalService, DaffModalTitleDirective, DaffNativeSelectComponent, DaffNativeSelectModule, DaffNavbarComponent, DaffNavbarModule, DaffPaginatorComponent, DaffPaginatorModule, DaffPrefixDirective, DaffPrefixSuffixModule, DaffProgressIndicatorComponent, DaffProgressIndicatorModule, DaffQtyDropdownComponent, DaffQtyDropdownModule, DaffQuantityFieldComponent, DaffQuantityFieldModule, DaffQuantityInputComponent, DaffQuantitySelectComponent, DaffRadioComponent, DaffRadioControlValueAccessorDirective, DaffRadioModule, DaffRadioSetComponent, DaffSidebarComponent, DaffSidebarModule, DaffSidebarViewportComponent, DaffStatusEnum, DaffSuffixDirective, DaffTextAlignmentEnum, DaffThumbnailDirective, daffCompactableMixin, daffManageContainerLayoutMixin, daffPrefixableMixin, daffSuffixableMixin, daffThumbnailCompatToken, daffProgressIndicatorAnimation as ɵa, DaffRadioRegistry as ɵb, daffAccordionAnimations as ɵc, DaffNavAccordionItemComponent as ɵd, daffBackdropAnimations as ɵe, DAFF_MEDIA_GALLERY_TOKEN as ɵf, DaffMediaGalleryRegistry as ɵg, DaffMediaRendererComponent as ɵi, daffFadeAnimations as ɵj, daffSidebarAnimations as ɵk };
|
4447
4694
|
//# sourceMappingURL=daffodil-design.js.map
|