@daffodil/design 0.39.7 → 0.39.11
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/daffodil-design-accordion-examples.metadata.json +1 -1
- package/article/examples/daffodil-design-article-examples.metadata.json +1 -1
- package/atoms/button/button.component.d.ts +5 -0
- 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 +4 -0
- 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 +4 -0
- 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-navbar-examples.umd.js +177 -0
- package/bundles/daffodil-design-navbar-examples.umd.js.map +1 -0
- package/bundles/daffodil-design-navbar-examples.umd.min.js +2 -0
- package/bundles/daffodil-design-navbar-examples.umd.min.js.map +1 -0
- 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 +384 -87
- 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/daffodil-design-callout-examples.metadata.json +1 -1
- 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/article-encapsulated/article-encapsulated-mixin.d.ts +15 -0
- package/core/article-encapsulated/public_api.d.ts +1 -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 +293 -128
- 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/button/button.component.js +3 -2
- 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 +3 -2
- package/esm2015/callout/examples/callout-theming/callout-theming.component.js +3 -2
- package/esm2015/callout/examples/callout-with-grid/callout-with-grid.component.js +3 -2
- package/esm2015/callout/examples/compact-callout/compact-callout.component.js +3 -2
- 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/article-encapsulated/article-encapsulated-mixin.js +12 -0
- package/esm2015/core/article-encapsulated/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 +3 -2
- package/esm2015/hero/examples/hero-text-alignment/hero-text-alignment.component.js +3 -2
- package/esm2015/hero/examples/hero-theming/hero-theming.component.js +3 -2
- package/esm2015/hero/examples/hero-with-grid/hero-with-grid.component.js +3 -2
- 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 +25 -3
- 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 +5 -3
- package/esm2015/molecules/card/card/card.component.js +78 -15
- 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/feature/feature/feature.component.js +4 -1
- package/esm2015/molecules/hero/hero/hero.component.js +6 -4
- 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/link-set/link-set/link-set.component.js +23 -4
- package/esm2015/molecules/list/list/list.component.js +19 -5
- package/esm2015/molecules/media-gallery/media-gallery.component.js +31 -5
- 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 +11 -9
- package/esm2015/molecules/qty-dropdown/qty-dropdown.component.js +6 -1
- package/esm2015/molecules/sidebar/sidebar/sidebar.component.js +3 -2
- package/esm2015/navbar/examples/basic-navbar/basic-navbar.component.js +13 -0
- package/esm2015/navbar/examples/basic-navbar/basic-navbar.module.js +20 -0
- package/esm2015/navbar/examples/contained-navbar/contained-navbar.component.js +13 -0
- package/esm2015/navbar/examples/contained-navbar/contained-navbar.module.js +20 -0
- package/esm2015/navbar/examples/daffodil-design-navbar-examples.js +5 -0
- package/esm2015/navbar/examples/examples.js +11 -0
- package/esm2015/navbar/examples/index.js +2 -0
- package/esm2015/navbar/examples/navbar-theming/navbar-theming.component.js +27 -0
- package/esm2015/navbar/examples/navbar-theming/navbar-theming.module.js +21 -0
- package/esm2015/navbar/examples/public_api.js +10 -0
- package/esm2015/navbar/examples/raised-navbar/raised-navbar.component.js +13 -0
- package/esm2015/navbar/examples/raised-navbar/raised-navbar.module.js +19 -0
- 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 +5 -1
- 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 +5 -1
- 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-navbar-examples.js +142 -0
- package/fesm2015/daffodil-design-navbar-examples.js.map +1 -0
- 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 +326 -82
- package/fesm2015/daffodil-design.js.map +1 -1
- package/hero/examples/daffodil-design-hero-examples.metadata.json +1 -1
- 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/accordion/accordion/accordion.component.d.ts +20 -1
- package/molecules/callout/callout/callout.component.d.ts +10 -0
- package/molecules/card/card/card.component.d.ts +42 -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/feature/feature/feature.component.d.ts +3 -0
- package/molecules/hero/hero/hero.component.d.ts +11 -1
- 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/link-set/link-set/link-set.component.d.ts +20 -1
- package/molecules/list/list/list.component.d.ts +19 -3
- package/molecules/media-gallery/media-gallery.component.d.ts +24 -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 +10 -5
- package/molecules/qty-dropdown/qty-dropdown.component.d.ts +3 -0
- package/navbar/examples/basic-navbar/basic-navbar.component.d.ts +2 -0
- package/navbar/examples/basic-navbar/basic-navbar.module.d.ts +2 -0
- package/navbar/examples/contained-navbar/contained-navbar.component.d.ts +2 -0
- package/navbar/examples/contained-navbar/contained-navbar.module.d.ts +2 -0
- package/navbar/examples/daffodil-design-navbar-examples.d.ts +4 -0
- package/navbar/examples/daffodil-design-navbar-examples.metadata.json +1 -0
- package/navbar/examples/examples.d.ts +2 -0
- package/navbar/examples/index.d.ts +1 -0
- package/navbar/examples/navbar-theming/navbar-theming.component.d.ts +8 -0
- package/navbar/examples/navbar-theming/navbar-theming.module.d.ts +2 -0
- package/navbar/examples/package.json +11 -0
- package/navbar/examples/public_api.d.ts +9 -0
- package/navbar/examples/raised-navbar/raised-navbar.component.d.ts +2 -0
- package/navbar/examples/raised-navbar/raised-navbar.module.d.ts +2 -0
- package/package.json +2 -2
- package/quantity-field/examples/daffodil-design-quantity-field-examples.metadata.json +1 -1
- package/radio/examples/daffodil-design-radio-examples.metadata.json +1 -1
@@ -322,6 +322,25 @@
|
|
322
322
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
323
323
|
}
|
324
324
|
|
325
|
+
/**
|
326
|
+
* A mixin for giving a component the ability to prevent article styles from cascading down.
|
327
|
+
*/
|
328
|
+
function daffArticleEncapsulatedMixin(Base) {
|
329
|
+
return /** @class */ (function (_super) {
|
330
|
+
__extends(class_1, _super);
|
331
|
+
function class_1() {
|
332
|
+
var args = [];
|
333
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
334
|
+
args[_i] = arguments[_i];
|
335
|
+
}
|
336
|
+
var _this = _super.apply(this, __spread(args)) || this;
|
337
|
+
_this._renderer.addClass(_this._elementRef.nativeElement, "daff-ae");
|
338
|
+
return _this;
|
339
|
+
}
|
340
|
+
return class_1;
|
341
|
+
}(Base));
|
342
|
+
}
|
343
|
+
|
325
344
|
var DaffPaletteEnum;
|
326
345
|
(function (DaffPaletteEnum) {
|
327
346
|
DaffPaletteEnum["PRIMARY"] = "primary";
|
@@ -610,7 +629,7 @@
|
|
610
629
|
}
|
611
630
|
return DaffButtonBase;
|
612
631
|
}());
|
613
|
-
var _daffButtonBase = daffPrefixableMixin(daffSuffixableMixin(daffColorMixin(daffStatusMixin(daffSizeMixin(DaffButtonBase, 'md')))));
|
632
|
+
var _daffButtonBase = daffArticleEncapsulatedMixin(daffPrefixableMixin(daffSuffixableMixin(daffColorMixin(daffStatusMixin(daffSizeMixin(DaffButtonBase, 'md'))))));
|
614
633
|
var DaffButtonTypeEnum;
|
615
634
|
(function (DaffButtonTypeEnum) {
|
616
635
|
DaffButtonTypeEnum["Default"] = "daff-button";
|
@@ -849,6 +868,8 @@
|
|
849
868
|
|
850
869
|
var DaffFormFieldMissingControlMessage = 'A DaffFormFieldComponent must contain a DaffFormFieldControl';
|
851
870
|
|
871
|
+
// ChangeDetection is ignored because this component needs to be refactored
|
872
|
+
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
852
873
|
var DaffFormFieldComponent = /** @class */ (function () {
|
853
874
|
function DaffFormFieldComponent() {
|
854
875
|
/**
|
@@ -972,40 +993,7 @@
|
|
972
993
|
|
973
994
|
var DAFF_MEDIA_GALLERY_TOKEN = new i0.InjectionToken('DAFF_MEDIA_GALLERY_TOKEN');
|
974
995
|
|
975
|
-
var
|
976
|
-
var DaffMediaGalleryComponent = /** @class */ (function () {
|
977
|
-
function DaffMediaGalleryComponent() {
|
978
|
-
/**
|
979
|
-
* Adds a class for styling the media gallery
|
980
|
-
*/
|
981
|
-
this.class = true;
|
982
|
-
/**
|
983
|
-
* The name of the gallery
|
984
|
-
*/
|
985
|
-
this.name = "" + uniqueGalleryId;
|
986
|
-
uniqueGalleryId++;
|
987
|
-
}
|
988
|
-
return DaffMediaGalleryComponent;
|
989
|
-
}());
|
990
|
-
DaffMediaGalleryComponent.decorators = [
|
991
|
-
{ type: i0.Component, args: [{
|
992
|
-
selector: 'daff-media-gallery',
|
993
|
-
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>",
|
994
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
995
|
-
providers: [
|
996
|
-
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
997
|
-
{ provide: DAFF_MEDIA_GALLERY_TOKEN, useExisting: DaffMediaGalleryComponent },
|
998
|
-
],
|
999
|
-
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}}"]
|
1000
|
-
},] }
|
1001
|
-
];
|
1002
|
-
/** @nocollapse */
|
1003
|
-
DaffMediaGalleryComponent.ctorParameters = function () { return []; };
|
1004
|
-
DaffMediaGalleryComponent.propDecorators = {
|
1005
|
-
class: [{ type: i0.HostBinding, args: ['class.daff-media-gallery',] }],
|
1006
|
-
name: [{ type: i0.Input }]
|
1007
|
-
};
|
1008
|
-
|
996
|
+
var isGallery = function (element) { return !('gallery' in element); };
|
1009
997
|
var DaffMediaGalleryRegistry = /** @class */ (function () {
|
1010
998
|
function DaffMediaGalleryRegistry() {
|
1011
999
|
this.galleries = {};
|
@@ -1017,15 +1005,17 @@
|
|
1017
1005
|
DaffMediaGalleryRegistry.prototype.add = function (gallery, thumbnail) {
|
1018
1006
|
if (this.galleries[gallery.name]) {
|
1019
1007
|
var newGallery = this.galleries[gallery.name].getValue();
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1008
|
+
if (thumbnail) {
|
1009
|
+
newGallery = Object.assign(Object.assign({}, newGallery), { thumbnails: __spread(newGallery.thumbnails.filter(function (t) { return t !== thumbnail; }), [
|
1010
|
+
thumbnail,
|
1011
|
+
]) });
|
1012
|
+
}
|
1023
1013
|
this.galleries[gallery.name].next(newGallery);
|
1024
1014
|
}
|
1025
1015
|
else {
|
1026
1016
|
this.galleries[gallery.name] = new rxjs.BehaviorSubject({
|
1027
1017
|
gallery: gallery,
|
1028
|
-
thumbnails: [thumbnail],
|
1018
|
+
thumbnails: thumbnail ? [thumbnail] : [],
|
1029
1019
|
});
|
1030
1020
|
}
|
1031
1021
|
if (this.galleries[gallery.name].getValue().thumbnails.length === 1) {
|
@@ -1034,9 +1024,17 @@
|
|
1034
1024
|
};
|
1035
1025
|
/**
|
1036
1026
|
* @description
|
1037
|
-
* Removes a
|
1027
|
+
* Removes a thumbnail or gallery from the internal registry.
|
1038
1028
|
*/
|
1039
|
-
DaffMediaGalleryRegistry.prototype.remove = function (
|
1029
|
+
DaffMediaGalleryRegistry.prototype.remove = function (element) {
|
1030
|
+
if (isGallery(element)) {
|
1031
|
+
this.removeGallery(element);
|
1032
|
+
}
|
1033
|
+
else {
|
1034
|
+
this.removeThumbnail(element);
|
1035
|
+
}
|
1036
|
+
};
|
1037
|
+
DaffMediaGalleryRegistry.prototype.removeThumbnail = function (thumbnail) {
|
1040
1038
|
if (!this.galleries[thumbnail.gallery.name]) {
|
1041
1039
|
return;
|
1042
1040
|
}
|
@@ -1047,6 +1045,9 @@
|
|
1047
1045
|
}
|
1048
1046
|
this.galleries[thumbnail.gallery.name].next(Object.assign(Object.assign({}, gallery), { thumbnails: __spread(gallery.thumbnails.slice(0, index), gallery.thumbnails.slice(index + 1)) }));
|
1049
1047
|
};
|
1048
|
+
DaffMediaGalleryRegistry.prototype.removeGallery = function (gallery) {
|
1049
|
+
delete this.galleries[gallery.name];
|
1050
|
+
};
|
1050
1051
|
/**
|
1051
1052
|
* @description
|
1052
1053
|
* Selects a media element for a given gallery.
|
@@ -1071,6 +1072,67 @@
|
|
1071
1072
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
1072
1073
|
];
|
1073
1074
|
|
1075
|
+
var uniqueGalleryId = 0;
|
1076
|
+
/**
|
1077
|
+
* An _elementRef and an instance of renderer2 are needed for the link set mixins
|
1078
|
+
*/
|
1079
|
+
var DaffMediaGalleryBase = /** @class */ (function () {
|
1080
|
+
function DaffMediaGalleryBase(_elementRef, _renderer) {
|
1081
|
+
this._elementRef = _elementRef;
|
1082
|
+
this._renderer = _renderer;
|
1083
|
+
}
|
1084
|
+
return DaffMediaGalleryBase;
|
1085
|
+
}());
|
1086
|
+
var _daffMediaGalleryBase = daffArticleEncapsulatedMixin((DaffMediaGalleryBase));
|
1087
|
+
var DaffMediaGalleryComponent = /** @class */ (function (_super) {
|
1088
|
+
__extends(DaffMediaGalleryComponent, _super);
|
1089
|
+
function DaffMediaGalleryComponent(elementRef, renderer, registry) {
|
1090
|
+
var _this = _super.call(this, elementRef, renderer) || this;
|
1091
|
+
_this.elementRef = elementRef;
|
1092
|
+
_this.renderer = renderer;
|
1093
|
+
_this.registry = registry;
|
1094
|
+
/**
|
1095
|
+
* Adds a class for styling the media gallery
|
1096
|
+
*/
|
1097
|
+
_this.class = true;
|
1098
|
+
/**
|
1099
|
+
* The name of the gallery
|
1100
|
+
*/
|
1101
|
+
_this.name = "" + uniqueGalleryId;
|
1102
|
+
uniqueGalleryId++;
|
1103
|
+
return _this;
|
1104
|
+
}
|
1105
|
+
DaffMediaGalleryComponent.prototype.ngOnInit = function () {
|
1106
|
+
this.registry.add(this);
|
1107
|
+
};
|
1108
|
+
DaffMediaGalleryComponent.prototype.ngOnDestroy = function () {
|
1109
|
+
this.registry.remove(this);
|
1110
|
+
};
|
1111
|
+
return DaffMediaGalleryComponent;
|
1112
|
+
}(_daffMediaGalleryBase));
|
1113
|
+
DaffMediaGalleryComponent.decorators = [
|
1114
|
+
{ type: i0.Component, args: [{
|
1115
|
+
selector: 'daff-media-gallery',
|
1116
|
+
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>",
|
1117
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
1118
|
+
providers: [
|
1119
|
+
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
1120
|
+
{ provide: DAFF_MEDIA_GALLERY_TOKEN, useExisting: DaffMediaGalleryComponent },
|
1121
|
+
],
|
1122
|
+
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}}"]
|
1123
|
+
},] }
|
1124
|
+
];
|
1125
|
+
/** @nocollapse */
|
1126
|
+
DaffMediaGalleryComponent.ctorParameters = function () { return [
|
1127
|
+
{ type: i0.ElementRef },
|
1128
|
+
{ type: i0.Renderer2 },
|
1129
|
+
{ type: DaffMediaGalleryRegistry }
|
1130
|
+
]; };
|
1131
|
+
DaffMediaGalleryComponent.propDecorators = {
|
1132
|
+
class: [{ type: i0.HostBinding, args: ['class.daff-media-gallery',] }],
|
1133
|
+
name: [{ type: i0.Input }]
|
1134
|
+
};
|
1135
|
+
|
1074
1136
|
/**
|
1075
1137
|
* Dynamically renders the selected `DaffThumbnailDirective` in a `daff-media-gallery` any time the selected thumbnail
|
1076
1138
|
* changes.
|
@@ -1188,7 +1250,7 @@
|
|
1188
1250
|
/**
|
1189
1251
|
* Adds a click event to trigger selection of the media element.
|
1190
1252
|
*
|
1191
|
-
* @param
|
1253
|
+
* @param event: MouseEvent
|
1192
1254
|
*/
|
1193
1255
|
DaffThumbnailDirective.prototype.onClick = function ($event) {
|
1194
1256
|
this.registry.select(this);
|
@@ -1359,7 +1421,7 @@
|
|
1359
1421
|
DaffImageComponent.decorators = [
|
1360
1422
|
{ type: i0.Component, args: [{
|
1361
1423
|
selector: 'daff-image',
|
1362
|
-
template: "<div class=\"daff-image__wrapper\" [style.paddingTop]=\"_paddingTop\">\n\t<img [src]=\"src\" [alt]=\"alt\" (load)=\"load.emit\" />\n</div>",
|
1424
|
+
template: "<div class=\"daff-image__wrapper\" [style.paddingTop]=\"_paddingTop\">\n\t<img [src]=\"src\" [alt]=\"alt\" (load)=\"load.emit\" loading=\"lazy\"/>\n</div>",
|
1363
1425
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
1364
1426
|
providers: [
|
1365
1427
|
{
|
@@ -1440,6 +1502,7 @@
|
|
1440
1502
|
// eslint-disable-next-line @angular-eslint/component-selector
|
1441
1503
|
selector: 'input[daff-input]',
|
1442
1504
|
template: '<ng-content></ng-content>',
|
1505
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
1443
1506
|
providers: [
|
1444
1507
|
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
1445
1508
|
{ provide: DaffFormFieldControl, useExisting: DaffInputComponent },
|
@@ -1515,6 +1578,7 @@
|
|
1515
1578
|
selector: 'select[daff-native-select]',
|
1516
1579
|
template: '<ng-content></ng-content>',
|
1517
1580
|
encapsulation: i0.ViewEncapsulation.None,
|
1581
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
1518
1582
|
providers: [
|
1519
1583
|
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
1520
1584
|
{ provide: DaffFormFieldControl, useExisting: DaffNativeSelectComponent },
|
@@ -2233,7 +2297,7 @@
|
|
2233
2297
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
2234
2298
|
inputs: ['size'],
|
2235
2299
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
2236
|
-
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}"]
|
2300
|
+
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}"]
|
2237
2301
|
},] }
|
2238
2302
|
];
|
2239
2303
|
/** @nocollapse */
|
@@ -2876,6 +2940,7 @@
|
|
2876
2940
|
selector: 'daff-accordion-item',
|
2877
2941
|
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>",
|
2878
2942
|
encapsulation: i0.ViewEncapsulation.None,
|
2943
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
2879
2944
|
animations: [
|
2880
2945
|
daffAccordionAnimations.openAccordion,
|
2881
2946
|
],
|
@@ -2887,18 +2952,40 @@
|
|
2887
2952
|
initiallyActive: [{ type: i0.Input }]
|
2888
2953
|
};
|
2889
2954
|
|
2890
|
-
|
2891
|
-
|
2955
|
+
/**
|
2956
|
+
* An _elementRef and an instance of renderer2 are needed for the link set mixins
|
2957
|
+
*/
|
2958
|
+
var DaffAccordionBase = /** @class */ (function () {
|
2959
|
+
function DaffAccordionBase(_elementRef, _renderer) {
|
2960
|
+
this._elementRef = _elementRef;
|
2961
|
+
this._renderer = _renderer;
|
2892
2962
|
}
|
2893
|
-
return
|
2963
|
+
return DaffAccordionBase;
|
2894
2964
|
}());
|
2965
|
+
var _daffAccordionBase = daffArticleEncapsulatedMixin((DaffAccordionBase));
|
2966
|
+
var DaffAccordionComponent = /** @class */ (function (_super) {
|
2967
|
+
__extends(DaffAccordionComponent, _super);
|
2968
|
+
function DaffAccordionComponent(elementRef, renderer) {
|
2969
|
+
var _this = _super.call(this, elementRef, renderer) || this;
|
2970
|
+
_this.elementRef = elementRef;
|
2971
|
+
_this.renderer = renderer;
|
2972
|
+
return _this;
|
2973
|
+
}
|
2974
|
+
return DaffAccordionComponent;
|
2975
|
+
}(_daffAccordionBase));
|
2895
2976
|
DaffAccordionComponent.decorators = [
|
2896
2977
|
{ type: i0.Component, args: [{
|
2897
2978
|
selector: 'daff-accordion',
|
2898
2979
|
template: "<ng-content></ng-content>",
|
2980
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
2899
2981
|
styles: [":host{display:block;width:100%}"]
|
2900
2982
|
},] }
|
2901
2983
|
];
|
2984
|
+
/** @nocollapse */
|
2985
|
+
DaffAccordionComponent.ctorParameters = function () { return [
|
2986
|
+
{ type: i0.ElementRef },
|
2987
|
+
{ type: i0.Renderer2 }
|
2988
|
+
]; };
|
2902
2989
|
|
2903
2990
|
var DaffNavAccordionItemComponent = /** @class */ (function () {
|
2904
2991
|
function DaffNavAccordionItemComponent(accordion, navAccordionItemParent) {
|
@@ -2954,6 +3041,7 @@
|
|
2954
3041
|
{ type: i0.Component, args: [{
|
2955
3042
|
selector: 'daff-nav-accordion-item',
|
2956
3043
|
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",
|
3044
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
2957
3045
|
animations: [
|
2958
3046
|
daffAccordionAnimations.openAccordion,
|
2959
3047
|
],
|
@@ -3021,7 +3109,8 @@
|
|
3021
3109
|
selector: 'daff-article',
|
3022
3110
|
template: '<ng-content></ng-content>',
|
3023
3111
|
encapsulation: i0.ViewEncapsulation.None,
|
3024
|
-
|
3112
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
3113
|
+
styles: [".daff-article{display:block}.daff-article a:not(.daff-ae *,.daff-ae){font-weight:600;text-decoration:none}.daff-article a:not(.daff-ae *,.daff-ae):hover{text-decoration:underline}.daff-article h1:not(.daff-ae *,.daff-ae),.daff-article h2:not(.daff-ae *,.daff-ae),.daff-article h3:not(.daff-ae *,.daff-ae),.daff-article h4:not(.daff-ae *,.daff-ae),.daff-article h5:not(.daff-ae *,.daff-ae),.daff-article h6:not(.daff-ae *,.daff-ae){margin-bottom:.5rem}.daff-article h2:not(.daff-ae *,.daff-ae),.daff-article h3:not(.daff-ae *,.daff-ae),.daff-article h4:not(.daff-ae *,.daff-ae),.daff-article h5:not(.daff-ae *,.daff-ae),.daff-article h6:not(.daff-ae *,.daff-ae){margin-top:2rem}.daff-article h1:not(.daff-ae *,.daff-ae){font-weight:700;font-size:2rem;line-height:2.25rem}@media (min-width:768px){.daff-article h1:not(.daff-ae *,.daff-ae){font-size:3rem;line-height:3.5rem}}.daff-article h2:not(.daff-ae *,.daff-ae){font-size:2rem;line-height:2.5rem}.daff-article h3:not(.daff-ae *,.daff-ae){font-size:1.5rem;line-height:2rem}.daff-article h4:not(.daff-ae *,.daff-ae){font-size:1.25rem;line-height:1.5rem}.daff-article h5:not(.daff-ae *,.daff-ae){font-size:1.125rem;line-height:1.5rem}.daff-article h6:not(.daff-ae *,.daff-ae){font-size:1rem;line-height:1.5rem}.daff-article p:not(.daff-ae *,.daff-ae){margin:0 0 1rem}.daff-article strong{font-weight:700}.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:.5rem 1rem;vertical-align:top;box-sizing:border-box}"]
|
3025
3114
|
},] }
|
3026
3115
|
];
|
3027
3116
|
DaffArticleComponent.propDecorators = {
|
@@ -3204,6 +3293,7 @@
|
|
3204
3293
|
selector: 'daff-button-set',
|
3205
3294
|
template: '<ng-content></ng-content>',
|
3206
3295
|
encapsulation: i0.ViewEncapsulation.None,
|
3296
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
3207
3297
|
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}}"]
|
3208
3298
|
},] }
|
3209
3299
|
];
|
@@ -3227,6 +3317,9 @@
|
|
3227
3317
|
},] }
|
3228
3318
|
];
|
3229
3319
|
|
3320
|
+
/**
|
3321
|
+
* @deprecated See {@link DaffMediaGalleryComponent}
|
3322
|
+
*/
|
3230
3323
|
var DaffImageGalleryComponent = /** @class */ (function () {
|
3231
3324
|
function DaffImageGalleryComponent() {
|
3232
3325
|
}
|
@@ -3237,10 +3330,14 @@
|
|
3237
3330
|
selector: 'daff-image-gallery',
|
3238
3331
|
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",
|
3239
3332
|
encapsulation: i0.ViewEncapsulation.None,
|
3333
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
3240
3334
|
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}"]
|
3241
3335
|
},] }
|
3242
3336
|
];
|
3243
3337
|
|
3338
|
+
/**
|
3339
|
+
* @deprecated See {@link DaffThumbnailDirective}
|
3340
|
+
*/
|
3244
3341
|
var DaffGalleryImageComponent = /** @class */ (function () {
|
3245
3342
|
function DaffGalleryImageComponent() {
|
3246
3343
|
this.class = true;
|
@@ -3250,7 +3347,8 @@
|
|
3250
3347
|
DaffGalleryImageComponent.decorators = [
|
3251
3348
|
{ type: i0.Component, args: [{
|
3252
3349
|
selector: 'daff-gallery-image',
|
3253
|
-
template: "<div class=\"gallery-image__wrapper\">\n <ng-content></ng-content>\n</div>"
|
3350
|
+
template: "<div class=\"gallery-image__wrapper\">\n <ng-content></ng-content>\n</div>",
|
3351
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
3254
3352
|
},] }
|
3255
3353
|
];
|
3256
3354
|
DaffGalleryImageComponent.propDecorators = {
|
@@ -3272,6 +3370,7 @@
|
|
3272
3370
|
selector: 'daff-image-list',
|
3273
3371
|
template: '<ng-content></ng-content>',
|
3274
3372
|
encapsulation: i0.ViewEncapsulation.None,
|
3373
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
3275
3374
|
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}"]
|
3276
3375
|
},] }
|
3277
3376
|
];
|
@@ -3320,18 +3419,34 @@
|
|
3320
3419
|
},] }
|
3321
3420
|
];
|
3322
3421
|
|
3422
|
+
/**
|
3423
|
+
* An _elementRef and an instance of renderer2 are needed for the link set mixins
|
3424
|
+
*/
|
3425
|
+
var DaffLinkSetBase = /** @class */ (function () {
|
3426
|
+
function DaffLinkSetBase(_elementRef, _renderer) {
|
3427
|
+
this._elementRef = _elementRef;
|
3428
|
+
this._renderer = _renderer;
|
3429
|
+
}
|
3430
|
+
return DaffLinkSetBase;
|
3431
|
+
}());
|
3432
|
+
var _daffLinkSetBase = daffArticleEncapsulatedMixin((DaffLinkSetBase));
|
3323
3433
|
/**
|
3324
3434
|
* DaffLinkSetComponent is a component for displaying a two or more links.
|
3325
3435
|
*/
|
3326
|
-
var DaffLinkSetComponent = /** @class */ (function () {
|
3327
|
-
|
3436
|
+
var DaffLinkSetComponent = /** @class */ (function (_super) {
|
3437
|
+
__extends(DaffLinkSetComponent, _super);
|
3438
|
+
function DaffLinkSetComponent(elementRef, renderer) {
|
3439
|
+
var _this = _super.call(this, elementRef, renderer) || this;
|
3440
|
+
_this.elementRef = elementRef;
|
3441
|
+
_this.renderer = renderer;
|
3328
3442
|
/**
|
3329
3443
|
* @docs-private
|
3330
3444
|
*/
|
3331
|
-
|
3445
|
+
_this.class = true;
|
3446
|
+
return _this;
|
3332
3447
|
}
|
3333
3448
|
return DaffLinkSetComponent;
|
3334
|
-
}());
|
3449
|
+
}(_daffLinkSetBase));
|
3335
3450
|
DaffLinkSetComponent.decorators = [
|
3336
3451
|
{ type: i0.Component, args: [{
|
3337
3452
|
selector: 'daff-link-set',
|
@@ -3341,6 +3456,11 @@
|
|
3341
3456
|
styles: [".daff-link-set{display:block;margin:0;padding:0}.daff-link-set__heading{font-weight:700;display:block;font-size:1rem;line-height:1em;margin-bottom:15px;text-transform:uppercase}.daff-link-set__subheading{display:block;font-size:1rem;line-height:1.5em}.daff-link-set__item{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:currentColor;display:block;font-size:1em;line-height:1.5em;text-decoration:none;transition:color .15s ease}.daff-link-set__item:hover{text-decoration:underline}.daff-link-set__item[disabled]{cursor:not-allowed}.daff-link-set .daff-link-set{margin-left:10px}"]
|
3342
3457
|
},] }
|
3343
3458
|
];
|
3459
|
+
/** @nocollapse */
|
3460
|
+
DaffLinkSetComponent.ctorParameters = function () { return [
|
3461
|
+
{ type: i0.ElementRef },
|
3462
|
+
{ type: i0.Renderer2 }
|
3463
|
+
]; };
|
3344
3464
|
DaffLinkSetComponent.propDecorators = {
|
3345
3465
|
class: [{ type: i0.HostBinding, args: ['class.daff-link-set',] }]
|
3346
3466
|
};
|
@@ -3514,9 +3634,24 @@
|
|
3514
3634
|
DaffListTypeEnum["Default"] = "daff-list";
|
3515
3635
|
DaffListTypeEnum["Nav"] = "daff-nav-list";
|
3516
3636
|
})(DaffListTypeEnum || (DaffListTypeEnum = {}));
|
3517
|
-
|
3518
|
-
|
3519
|
-
|
3637
|
+
/**
|
3638
|
+
* An _elementRef and an instance of renderer2 are needed for the list mixins
|
3639
|
+
*/
|
3640
|
+
var DaffListBase = /** @class */ (function () {
|
3641
|
+
function DaffListBase(_elementRef, _renderer) {
|
3642
|
+
this._elementRef = _elementRef;
|
3643
|
+
this._renderer = _renderer;
|
3644
|
+
}
|
3645
|
+
return DaffListBase;
|
3646
|
+
}());
|
3647
|
+
var _daffListBase = daffArticleEncapsulatedMixin((DaffListBase));
|
3648
|
+
var DaffListComponent = /** @class */ (function (_super) {
|
3649
|
+
__extends(DaffListComponent, _super);
|
3650
|
+
function DaffListComponent(elementRef, renderer) {
|
3651
|
+
var _this = _super.call(this, elementRef, renderer) || this;
|
3652
|
+
_this.elementRef = elementRef;
|
3653
|
+
_this.renderer = renderer;
|
3654
|
+
return _this;
|
3520
3655
|
}
|
3521
3656
|
Object.defineProperty(DaffListComponent.prototype, "list", {
|
3522
3657
|
/**
|
@@ -3598,7 +3733,7 @@
|
|
3598
3733
|
return this.elementRef.nativeElement;
|
3599
3734
|
};
|
3600
3735
|
return DaffListComponent;
|
3601
|
-
}());
|
3736
|
+
}(_daffListBase));
|
3602
3737
|
DaffListComponent.decorators = [
|
3603
3738
|
{ type: i0.Component, args: [{
|
3604
3739
|
selector: 'daff-list' + ',' +
|
@@ -3611,7 +3746,8 @@
|
|
3611
3746
|
];
|
3612
3747
|
/** @nocollapse */
|
3613
3748
|
DaffListComponent.ctorParameters = function () { return [
|
3614
|
-
{ type: i0.ElementRef }
|
3749
|
+
{ type: i0.ElementRef },
|
3750
|
+
{ type: i0.Renderer2 }
|
3615
3751
|
]; };
|
3616
3752
|
DaffListComponent.propDecorators = {
|
3617
3753
|
mode: [{ type: i0.Input }],
|
@@ -3741,6 +3877,7 @@
|
|
3741
3877
|
{ type: i0.Component, args: [{
|
3742
3878
|
selector: 'daff-modal-actions',
|
3743
3879
|
template: '<ng-content></ng-content>',
|
3880
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
3744
3881
|
styles: [":host{display:block;padding-top:24px}"]
|
3745
3882
|
},] }
|
3746
3883
|
];
|
@@ -3895,6 +4032,27 @@
|
|
3895
4032
|
{ type: i1.Overlay }
|
3896
4033
|
]; };
|
3897
4034
|
|
4035
|
+
/**
|
4036
|
+
* A mixin for giving a component the ability to manage a DaffContainerComponent's layout.
|
4037
|
+
* It passes predetermined layout styles down to the container. In order for a component to
|
4038
|
+
* do this, it must implement this mixin.
|
4039
|
+
*/
|
4040
|
+
function daffManageContainerLayoutMixin(Base) {
|
4041
|
+
return /** @class */ (function (_super) {
|
4042
|
+
__extends(class_1, _super);
|
4043
|
+
function class_1() {
|
4044
|
+
var args = [];
|
4045
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
4046
|
+
args[_i] = arguments[_i];
|
4047
|
+
}
|
4048
|
+
var _this = _super.apply(this, __spread(args)) || this;
|
4049
|
+
_this._renderer.addClass(_this._elementRef.nativeElement, "daff-manage-container-layout");
|
4050
|
+
return _this;
|
4051
|
+
}
|
4052
|
+
return class_1;
|
4053
|
+
}(Base));
|
4054
|
+
}
|
4055
|
+
|
3898
4056
|
/**
|
3899
4057
|
* An _elementRef is needed for the Colorable mixin
|
3900
4058
|
*/
|
@@ -3905,7 +4063,7 @@
|
|
3905
4063
|
}
|
3906
4064
|
return DaffNavbarBase;
|
3907
4065
|
}());
|
3908
|
-
var _daffNavbarBase = daffColorMixin(DaffNavbarBase);
|
4066
|
+
var _daffNavbarBase = daffManageContainerLayoutMixin(daffColorMixin(DaffNavbarBase));
|
3909
4067
|
/**
|
3910
4068
|
* @inheritdoc
|
3911
4069
|
*/
|
@@ -3915,19 +4073,19 @@
|
|
3915
4073
|
var _this = _super.call(this, elementRef, renderer) || this;
|
3916
4074
|
_this.elementRef = elementRef;
|
3917
4075
|
_this.renderer = renderer;
|
3918
|
-
_this.
|
4076
|
+
_this.raised = false;
|
3919
4077
|
/**
|
3920
4078
|
* @docs-private
|
3921
4079
|
*/
|
3922
4080
|
_this.hostClass = true;
|
3923
4081
|
return _this;
|
3924
4082
|
}
|
3925
|
-
Object.defineProperty(DaffNavbarComponent.prototype, "
|
4083
|
+
Object.defineProperty(DaffNavbarComponent.prototype, "raisedClass", {
|
3926
4084
|
/**
|
3927
4085
|
* @docs-private
|
3928
4086
|
*/
|
3929
4087
|
get: function () {
|
3930
|
-
return this.
|
4088
|
+
return this.raised;
|
3931
4089
|
},
|
3932
4090
|
enumerable: false,
|
3933
4091
|
configurable: true
|
@@ -3937,13 +4095,14 @@
|
|
3937
4095
|
}(_daffNavbarBase));
|
3938
4096
|
DaffNavbarComponent.decorators = [
|
3939
4097
|
{ type: i0.Component, args: [{
|
3940
|
-
|
4098
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
4099
|
+
selector: 'nav[daff-navbar]',
|
3941
4100
|
template: '<ng-content></ng-content>',
|
3942
4101
|
//todo(damienwebdev): remove once decorators hit stage 3 - https://github.com/microsoft/TypeScript/issues/7342
|
3943
4102
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
3944
4103
|
inputs: ['color'],
|
3945
4104
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
3946
|
-
styles: [":host{align-items:center;
|
4105
|
+
styles: [":host{display:flex;align-items:center;height:64px;width:100%;padding:0 16px}"]
|
3947
4106
|
},] }
|
3948
4107
|
];
|
3949
4108
|
/** @nocollapse */
|
@@ -3952,8 +4111,8 @@
|
|
3952
4111
|
{ type: i0.Renderer2 }
|
3953
4112
|
]; };
|
3954
4113
|
DaffNavbarComponent.propDecorators = {
|
3955
|
-
|
3956
|
-
|
4114
|
+
raised: [{ type: i0.Input }],
|
4115
|
+
raisedClass: [{ type: i0.HostBinding, args: ['class.daff-navbar--raised',] }],
|
3957
4116
|
hostClass: [{ type: i0.HostBinding, args: ['class.daff-navbar',] }]
|
3958
4117
|
};
|
3959
4118
|
|
@@ -4158,6 +4317,11 @@
|
|
4158
4317
|
},] }
|
4159
4318
|
];
|
4160
4319
|
|
4320
|
+
/**
|
4321
|
+
* @deprecated See {@link DaffQuantityFieldComponent}
|
4322
|
+
*/
|
4323
|
+
// ChangeDetection is ignored because this component is deprecated and will be removed
|
4324
|
+
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
4161
4325
|
var DaffQtyDropdownComponent = /** @class */ (function () {
|
4162
4326
|
function DaffQtyDropdownComponent(renderer) {
|
4163
4327
|
this.renderer = renderer;
|
@@ -4367,6 +4531,7 @@
|
|
4367
4531
|
selector: 'daff-sidebar',
|
4368
4532
|
template: '<ng-content></ng-content>',
|
4369
4533
|
encapsulation: i0.ViewEncapsulation.None,
|
4534
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
4370
4535
|
styles: [":host{display:block}.daff-sidebar{display:block;height:100%}"]
|
4371
4536
|
},] }
|
4372
4537
|
];
|
@@ -4716,7 +4881,7 @@
|
|
4716
4881
|
DaffHeroSizeEnum["Small"] = "small";
|
4717
4882
|
})(exports.DaffHeroSizeEnum || (exports.DaffHeroSizeEnum = {}));
|
4718
4883
|
/**
|
4719
|
-
* An _elementRef and an instance of renderer2 are needed for the
|
4884
|
+
* An _elementRef and an instance of renderer2 are needed for the hero mixins
|
4720
4885
|
*/
|
4721
4886
|
var DaffHeroBase = /** @class */ (function () {
|
4722
4887
|
function DaffHeroBase(_elementRef, _renderer) {
|
@@ -4725,7 +4890,7 @@
|
|
4725
4890
|
}
|
4726
4891
|
return DaffHeroBase;
|
4727
4892
|
}());
|
4728
|
-
var _daffHeroBase = daffColorMixin(daffCompactableMixin(daffTextAlignmentMixin(DaffHeroBase, 'left')));
|
4893
|
+
var _daffHeroBase = daffArticleEncapsulatedMixin(daffManageContainerLayoutMixin(daffColorMixin(daffCompactableMixin(daffTextAlignmentMixin(DaffHeroBase, 'left')))));
|
4729
4894
|
/**
|
4730
4895
|
* @inheritdoc
|
4731
4896
|
*/
|
@@ -4772,7 +4937,7 @@
|
|
4772
4937
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
4773
4938
|
inputs: ['color', 'compact', 'textAlignment'],
|
4774
4939
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
4775
|
-
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{
|
4940
|
+
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}"]
|
4776
4941
|
},] }
|
4777
4942
|
];
|
4778
4943
|
/** @nocollapse */
|
@@ -4923,7 +5088,7 @@
|
|
4923
5088
|
}
|
4924
5089
|
return DaffCalloutBase;
|
4925
5090
|
}());
|
4926
|
-
var _daffCalloutBase = daffColorMixin(daffCompactableMixin(daffTextAlignmentMixin(DaffCalloutBase, 'left')));
|
5091
|
+
var _daffCalloutBase = daffArticleEncapsulatedMixin(daffManageContainerLayoutMixin(daffColorMixin(daffCompactableMixin(daffTextAlignmentMixin(DaffCalloutBase, 'left')))));
|
4927
5092
|
/**
|
4928
5093
|
* @inheritdoc
|
4929
5094
|
*/
|
@@ -4970,7 +5135,7 @@
|
|
4970
5135
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
4971
5136
|
inputs: ['color', 'compact', 'textAlignment'],
|
4972
5137
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
4973
|
-
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{
|
5138
|
+
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}"]
|
4974
5139
|
},] }
|
4975
5140
|
];
|
4976
5141
|
/** @nocollapse */
|
@@ -5091,6 +5256,9 @@
|
|
5091
5256
|
DaffFeatureModeEnum["Compact"] = "compact";
|
5092
5257
|
DaffFeatureModeEnum["Normal"] = "normal";
|
5093
5258
|
})(exports.DaffFeatureModeEnum || (exports.DaffFeatureModeEnum = {}));
|
5259
|
+
/**
|
5260
|
+
* @deprecated See {@link DaffCardComponent}
|
5261
|
+
*/
|
5094
5262
|
var DaffFeatureComponent = /** @class */ (function () {
|
5095
5263
|
function DaffFeatureComponent() {
|
5096
5264
|
/**
|
@@ -5182,6 +5350,42 @@
|
|
5182
5350
|
class: [{ type: i0.HostBinding, args: ['class.daff-card__actions',] }]
|
5183
5351
|
};
|
5184
5352
|
|
5353
|
+
var DaffCardContentDirective = /** @class */ (function () {
|
5354
|
+
function DaffCardContentDirective() {
|
5355
|
+
/**
|
5356
|
+
* @docs-private
|
5357
|
+
*/
|
5358
|
+
this.class = true;
|
5359
|
+
}
|
5360
|
+
return DaffCardContentDirective;
|
5361
|
+
}());
|
5362
|
+
DaffCardContentDirective.decorators = [
|
5363
|
+
{ type: i0.Directive, args: [{
|
5364
|
+
selector: '[daffCardContent]',
|
5365
|
+
},] }
|
5366
|
+
];
|
5367
|
+
DaffCardContentDirective.propDecorators = {
|
5368
|
+
class: [{ type: i0.HostBinding, args: ['class.daff-card__content',] }]
|
5369
|
+
};
|
5370
|
+
|
5371
|
+
var DaffCardIconDirective = /** @class */ (function () {
|
5372
|
+
function DaffCardIconDirective() {
|
5373
|
+
/**
|
5374
|
+
* @docs-private
|
5375
|
+
*/
|
5376
|
+
this.class = true;
|
5377
|
+
}
|
5378
|
+
return DaffCardIconDirective;
|
5379
|
+
}());
|
5380
|
+
DaffCardIconDirective.decorators = [
|
5381
|
+
{ type: i0.Directive, args: [{
|
5382
|
+
selector: '[daffCardIcon]',
|
5383
|
+
},] }
|
5384
|
+
];
|
5385
|
+
DaffCardIconDirective.propDecorators = {
|
5386
|
+
class: [{ type: i0.HostBinding, args: ['class.daff-card__icon',] }]
|
5387
|
+
};
|
5388
|
+
|
5185
5389
|
var DaffCardImageDirective = /** @class */ (function () {
|
5186
5390
|
function DaffCardImageDirective() {
|
5187
5391
|
/**
|
@@ -5236,6 +5440,15 @@
|
|
5236
5440
|
class: [{ type: i0.HostBinding, args: ['class.daff-card__title',] }]
|
5237
5441
|
};
|
5238
5442
|
|
5443
|
+
var DaffCardTypeEnum;
|
5444
|
+
(function (DaffCardTypeEnum) {
|
5445
|
+
DaffCardTypeEnum["Raised"] = "daff-raised-card";
|
5446
|
+
DaffCardTypeEnum["Stroked"] = "daff-stroked-card";
|
5447
|
+
})(DaffCardTypeEnum || (DaffCardTypeEnum = {}));
|
5448
|
+
(function (DaffCardOrientationEnum) {
|
5449
|
+
DaffCardOrientationEnum["Vertical"] = "vertical";
|
5450
|
+
DaffCardOrientationEnum["Horizontal"] = "horizontal";
|
5451
|
+
})(exports.DaffCardOrientationEnum || (exports.DaffCardOrientationEnum = {}));
|
5239
5452
|
/**
|
5240
5453
|
* An _elementRef and an instance of renderer2 are needed for the Colorable mixin
|
5241
5454
|
*/
|
@@ -5246,7 +5459,7 @@
|
|
5246
5459
|
}
|
5247
5460
|
return DaffCardBase;
|
5248
5461
|
}());
|
5249
|
-
var _daffCardBase = daffColorMixin(DaffCardBase);
|
5462
|
+
var _daffCardBase = daffArticleEncapsulatedMixin(daffColorMixin(DaffCardBase));
|
5250
5463
|
/**
|
5251
5464
|
* @inheritdoc
|
5252
5465
|
*/
|
@@ -5256,34 +5469,109 @@
|
|
5256
5469
|
var _this = _super.call(this, elementRef, renderer) || this;
|
5257
5470
|
_this.elementRef = elementRef;
|
5258
5471
|
_this.renderer = renderer;
|
5259
|
-
_this.
|
5260
|
-
/**
|
5261
|
-
* @docs-private
|
5262
|
-
*/
|
5472
|
+
_this._orientation = exports.DaffCardOrientationEnum.Vertical;
|
5263
5473
|
_this.class = true;
|
5474
|
+
_this.cardType = _this.initCardType();
|
5264
5475
|
return _this;
|
5265
5476
|
}
|
5266
|
-
Object.defineProperty(DaffCardComponent.prototype, "
|
5477
|
+
Object.defineProperty(DaffCardComponent.prototype, "orientation", {
|
5267
5478
|
get: function () {
|
5268
|
-
return this.
|
5479
|
+
return this._orientation;
|
5480
|
+
},
|
5481
|
+
set: function (value) {
|
5482
|
+
if (value === null || value === undefined || value === '') {
|
5483
|
+
this._orientation = exports.DaffCardOrientationEnum.Vertical;
|
5484
|
+
}
|
5485
|
+
else {
|
5486
|
+
this._orientation = value;
|
5487
|
+
}
|
5269
5488
|
},
|
5270
5489
|
enumerable: false,
|
5271
5490
|
configurable: true
|
5272
5491
|
});
|
5492
|
+
;
|
5493
|
+
DaffCardComponent.prototype.initCardType = function () {
|
5494
|
+
var e_1, _a;
|
5495
|
+
var values = Object.keys(DaffCardTypeEnum).map(function (k) { return DaffCardTypeEnum[k]; });
|
5496
|
+
if (values.indexOf(this._getHostElement().localName) >= 0) {
|
5497
|
+
return this._getHostElement().localName;
|
5498
|
+
}
|
5499
|
+
try {
|
5500
|
+
for (var values_1 = __values(values), values_1_1 = values_1.next(); !values_1_1.done; values_1_1 = values_1.next()) {
|
5501
|
+
var attr = values_1_1.value;
|
5502
|
+
if (this._hasHostAttributes(attr)) {
|
5503
|
+
return attr;
|
5504
|
+
}
|
5505
|
+
}
|
5506
|
+
}
|
5507
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
5508
|
+
finally {
|
5509
|
+
try {
|
5510
|
+
if (values_1_1 && !values_1_1.done && (_a = values_1.return)) _a.call(values_1);
|
5511
|
+
}
|
5512
|
+
finally { if (e_1) throw e_1.error; }
|
5513
|
+
}
|
5514
|
+
return null;
|
5515
|
+
};
|
5516
|
+
/**
|
5517
|
+
* @docs-private
|
5518
|
+
*/
|
5519
|
+
DaffCardComponent.prototype.ngOnInit = function () {
|
5520
|
+
if (this.cardType) {
|
5521
|
+
this.elementRef.nativeElement.classList.add(this.cardType);
|
5522
|
+
}
|
5523
|
+
};
|
5524
|
+
Object.defineProperty(DaffCardComponent.prototype, "verticalClass", {
|
5525
|
+
/**
|
5526
|
+
* @docs-private
|
5527
|
+
*/
|
5528
|
+
get: function () {
|
5529
|
+
return this.orientation === exports.DaffCardOrientationEnum.Vertical;
|
5530
|
+
},
|
5531
|
+
enumerable: false,
|
5532
|
+
configurable: true
|
5533
|
+
});
|
5534
|
+
Object.defineProperty(DaffCardComponent.prototype, "horizontalClass", {
|
5535
|
+
/**
|
5536
|
+
* @docs-private
|
5537
|
+
*/
|
5538
|
+
get: function () {
|
5539
|
+
return this.orientation === exports.DaffCardOrientationEnum.Horizontal;
|
5540
|
+
},
|
5541
|
+
enumerable: false,
|
5542
|
+
configurable: true
|
5543
|
+
});
|
5544
|
+
DaffCardComponent.prototype._getHostElement = function () {
|
5545
|
+
return this.elementRef.nativeElement;
|
5546
|
+
};
|
5547
|
+
/**
|
5548
|
+
* Gets whether the button has one of the given attributes.
|
5549
|
+
* */
|
5550
|
+
DaffCardComponent.prototype._hasHostAttributes = function () {
|
5551
|
+
var _this = this;
|
5552
|
+
var attributes = [];
|
5553
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
5554
|
+
attributes[_i] = arguments[_i];
|
5555
|
+
}
|
5556
|
+
return attributes.some(function (attribute) { return _this._getHostElement().hasAttribute(attribute); });
|
5557
|
+
};
|
5273
5558
|
return DaffCardComponent;
|
5274
5559
|
}(_daffCardBase));
|
5275
5560
|
DaffCardComponent.decorators = [
|
5276
5561
|
{ type: i0.Component, args: [{
|
5277
|
-
selector: '' +
|
5278
|
-
'daff-card' + ',' +
|
5279
|
-
'
|
5280
|
-
|
5562
|
+
selector: 'daff-card' + ',' +
|
5563
|
+
'daff-raised-card' + ',' +
|
5564
|
+
'daff-stroked-card' + ',' +
|
5565
|
+
'a[daff-card]' + ',' +
|
5566
|
+
'a[daff-raised-card]' + ',' +
|
5567
|
+
'a[daff-stroked-card]',
|
5568
|
+
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>",
|
5281
5569
|
encapsulation: i0.ViewEncapsulation.None,
|
5282
5570
|
//todo(damienwebdev): remove once decorators hit stage 3 - https://github.com/microsoft/TypeScript/issues/7342
|
5283
5571
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
5284
5572
|
inputs: ['color'],
|
5285
5573
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
5286
|
-
styles: [".daff-card{display:flex;
|
5574
|
+
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.375rem;line-height:1.5rem;margin:0 0 1rem}@media (min-width:480px){.daff-card__title{font-size:1.5rem;line-height:1.75rem}}.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}"]
|
5287
5575
|
},] }
|
5288
5576
|
];
|
5289
5577
|
/** @nocollapse */
|
@@ -5292,9 +5580,10 @@
|
|
5292
5580
|
{ type: i0.Renderer2 }
|
5293
5581
|
]; };
|
5294
5582
|
DaffCardComponent.propDecorators = {
|
5295
|
-
|
5583
|
+
orientation: [{ type: i0.Input }],
|
5296
5584
|
class: [{ type: i0.HostBinding, args: ['class.daff-card',] }],
|
5297
|
-
|
5585
|
+
verticalClass: [{ type: i0.HostBinding, args: ['class.daff-card--vertical',] }],
|
5586
|
+
horizontalClass: [{ type: i0.HostBinding, args: ['class.daff-card--horizontal',] }]
|
5298
5587
|
};
|
5299
5588
|
|
5300
5589
|
var DaffCardModule = /** @class */ (function () {
|
@@ -5309,16 +5598,20 @@
|
|
5309
5598
|
],
|
5310
5599
|
declarations: [
|
5311
5600
|
DaffCardComponent,
|
5601
|
+
DaffCardIconDirective,
|
5602
|
+
DaffCardImageDirective,
|
5312
5603
|
DaffCardTaglineDirective,
|
5313
5604
|
DaffCardTitleDirective,
|
5314
|
-
|
5605
|
+
DaffCardContentDirective,
|
5315
5606
|
DaffCardActionsDirective,
|
5316
5607
|
],
|
5317
5608
|
exports: [
|
5318
5609
|
DaffCardComponent,
|
5610
|
+
DaffCardIconDirective,
|
5611
|
+
DaffCardImageDirective,
|
5319
5612
|
DaffCardTaglineDirective,
|
5320
5613
|
DaffCardTitleDirective,
|
5321
|
-
|
5614
|
+
DaffCardContentDirective,
|
5322
5615
|
DaffCardActionsDirective,
|
5323
5616
|
],
|
5324
5617
|
},] }
|
@@ -5380,6 +5673,8 @@
|
|
5380
5673
|
exports.DaffCalloutTitleDirective = DaffCalloutTitleDirective;
|
5381
5674
|
exports.DaffCardActionsDirective = DaffCardActionsDirective;
|
5382
5675
|
exports.DaffCardComponent = DaffCardComponent;
|
5676
|
+
exports.DaffCardContentDirective = DaffCardContentDirective;
|
5677
|
+
exports.DaffCardIconDirective = DaffCardIconDirective;
|
5383
5678
|
exports.DaffCardImageDirective = DaffCardImageDirective;
|
5384
5679
|
exports.DaffCardModule = DaffCardModule;
|
5385
5680
|
exports.DaffCardTaglineDirective = DaffCardTaglineDirective;
|
@@ -5463,7 +5758,9 @@
|
|
5463
5758
|
exports.DaffSidebarViewportComponent = DaffSidebarViewportComponent;
|
5464
5759
|
exports.DaffSuffixDirective = DaffSuffixDirective;
|
5465
5760
|
exports.DaffThumbnailDirective = DaffThumbnailDirective;
|
5761
|
+
exports.daffArticleEncapsulatedMixin = daffArticleEncapsulatedMixin;
|
5466
5762
|
exports.daffCompactableMixin = daffCompactableMixin;
|
5763
|
+
exports.daffManageContainerLayoutMixin = daffManageContainerLayoutMixin;
|
5467
5764
|
exports.daffPrefixableMixin = daffPrefixableMixin;
|
5468
5765
|
exports.daffSuffixableMixin = daffSuffixableMixin;
|
5469
5766
|
exports.daffThumbnailCompatToken = daffThumbnailCompatToken;
|