@daffodil/design 0.39.8 → 0.39.12
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/atoms/button/button.component.d.ts +5 -0
- package/bundles/daffodil-design-card-examples.umd.js +152 -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-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-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.umd.js +300 -51
- 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/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/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 +278 -129
- package/daffodil-design.metadata.json +1 -1
- package/esm2015/atoms/button/button.component.js +3 -2
- package/esm2015/atoms/container/container.component.js +1 -1
- package/esm2015/atoms/image/image.component.js +2 -2
- package/esm2015/card/examples/basic-card/basic-card.component.js +7 -3
- 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 +13 -4
- package/esm2015/card/examples/daffodil-design-card-examples.js +3 -1
- package/esm2015/card/examples/linkable-card/linkable-card.component.js +19 -3
- 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 +17 -3
- 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/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/molecules/accordion/accordion/accordion.component.js +24 -3
- package/esm2015/molecules/article/article/article.component.js +1 -1
- 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/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 +20 -4
- package/esm2015/molecules/navbar/navbar.component.js +11 -9
- 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/fesm2015/daffodil-design-card-examples.js +145 -11
- package/fesm2015/daffodil-design-card-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-navbar-examples.js +142 -0
- package/fesm2015/daffodil-design-navbar-examples.js.map +1 -0
- package/fesm2015/daffodil-design.js +238 -42
- package/fesm2015/daffodil-design.js.map +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/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 +20 -3
- package/molecules/navbar/navbar.component.d.ts +10 -5
- 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
@@ -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";
|
@@ -1054,18 +1073,34 @@
|
|
1054
1073
|
];
|
1055
1074
|
|
1056
1075
|
var uniqueGalleryId = 0;
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
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;
|
1060
1094
|
/**
|
1061
1095
|
* Adds a class for styling the media gallery
|
1062
1096
|
*/
|
1063
|
-
|
1097
|
+
_this.class = true;
|
1064
1098
|
/**
|
1065
1099
|
* The name of the gallery
|
1066
1100
|
*/
|
1067
|
-
|
1101
|
+
_this.name = "" + uniqueGalleryId;
|
1068
1102
|
uniqueGalleryId++;
|
1103
|
+
return _this;
|
1069
1104
|
}
|
1070
1105
|
DaffMediaGalleryComponent.prototype.ngOnInit = function () {
|
1071
1106
|
this.registry.add(this);
|
@@ -1074,7 +1109,7 @@
|
|
1074
1109
|
this.registry.remove(this);
|
1075
1110
|
};
|
1076
1111
|
return DaffMediaGalleryComponent;
|
1077
|
-
}());
|
1112
|
+
}(_daffMediaGalleryBase));
|
1078
1113
|
DaffMediaGalleryComponent.decorators = [
|
1079
1114
|
{ type: i0.Component, args: [{
|
1080
1115
|
selector: 'daff-media-gallery',
|
@@ -1089,6 +1124,8 @@
|
|
1089
1124
|
];
|
1090
1125
|
/** @nocollapse */
|
1091
1126
|
DaffMediaGalleryComponent.ctorParameters = function () { return [
|
1127
|
+
{ type: i0.ElementRef },
|
1128
|
+
{ type: i0.Renderer2 },
|
1092
1129
|
{ type: DaffMediaGalleryRegistry }
|
1093
1130
|
]; };
|
1094
1131
|
DaffMediaGalleryComponent.propDecorators = {
|
@@ -1384,7 +1421,7 @@
|
|
1384
1421
|
DaffImageComponent.decorators = [
|
1385
1422
|
{ type: i0.Component, args: [{
|
1386
1423
|
selector: 'daff-image',
|
1387
|
-
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>",
|
1388
1425
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
1389
1426
|
providers: [
|
1390
1427
|
{
|
@@ -2260,7 +2297,7 @@
|
|
2260
2297
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
2261
2298
|
inputs: ['size'],
|
2262
2299
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
2263
|
-
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}"]
|
2264
2301
|
},] }
|
2265
2302
|
];
|
2266
2303
|
/** @nocollapse */
|
@@ -2915,11 +2952,27 @@
|
|
2915
2952
|
initiallyActive: [{ type: i0.Input }]
|
2916
2953
|
};
|
2917
2954
|
|
2918
|
-
|
2919
|
-
|
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;
|
2920
2962
|
}
|
2921
|
-
return
|
2963
|
+
return DaffAccordionBase;
|
2922
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));
|
2923
2976
|
DaffAccordionComponent.decorators = [
|
2924
2977
|
{ type: i0.Component, args: [{
|
2925
2978
|
selector: 'daff-accordion',
|
@@ -2928,6 +2981,11 @@
|
|
2928
2981
|
styles: [":host{display:block;width:100%}"]
|
2929
2982
|
},] }
|
2930
2983
|
];
|
2984
|
+
/** @nocollapse */
|
2985
|
+
DaffAccordionComponent.ctorParameters = function () { return [
|
2986
|
+
{ type: i0.ElementRef },
|
2987
|
+
{ type: i0.Renderer2 }
|
2988
|
+
]; };
|
2931
2989
|
|
2932
2990
|
var DaffNavAccordionItemComponent = /** @class */ (function () {
|
2933
2991
|
function DaffNavAccordionItemComponent(accordion, navAccordionItemParent) {
|
@@ -3052,7 +3110,7 @@
|
|
3052
3110
|
template: '<ng-content></ng-content>',
|
3053
3111
|
encapsulation: i0.ViewEncapsulation.None,
|
3054
3112
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
3055
|
-
styles: [".daff-article{display:block}.daff-article
|
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}"]
|
3056
3114
|
},] }
|
3057
3115
|
];
|
3058
3116
|
DaffArticleComponent.propDecorators = {
|
@@ -3361,18 +3419,34 @@
|
|
3361
3419
|
},] }
|
3362
3420
|
];
|
3363
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));
|
3364
3433
|
/**
|
3365
3434
|
* DaffLinkSetComponent is a component for displaying a two or more links.
|
3366
3435
|
*/
|
3367
|
-
var DaffLinkSetComponent = /** @class */ (function () {
|
3368
|
-
|
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;
|
3369
3442
|
/**
|
3370
3443
|
* @docs-private
|
3371
3444
|
*/
|
3372
|
-
|
3445
|
+
_this.class = true;
|
3446
|
+
return _this;
|
3373
3447
|
}
|
3374
3448
|
return DaffLinkSetComponent;
|
3375
|
-
}());
|
3449
|
+
}(_daffLinkSetBase));
|
3376
3450
|
DaffLinkSetComponent.decorators = [
|
3377
3451
|
{ type: i0.Component, args: [{
|
3378
3452
|
selector: 'daff-link-set',
|
@@ -3382,6 +3456,11 @@
|
|
3382
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}"]
|
3383
3457
|
},] }
|
3384
3458
|
];
|
3459
|
+
/** @nocollapse */
|
3460
|
+
DaffLinkSetComponent.ctorParameters = function () { return [
|
3461
|
+
{ type: i0.ElementRef },
|
3462
|
+
{ type: i0.Renderer2 }
|
3463
|
+
]; };
|
3385
3464
|
DaffLinkSetComponent.propDecorators = {
|
3386
3465
|
class: [{ type: i0.HostBinding, args: ['class.daff-link-set',] }]
|
3387
3466
|
};
|
@@ -3555,9 +3634,24 @@
|
|
3555
3634
|
DaffListTypeEnum["Default"] = "daff-list";
|
3556
3635
|
DaffListTypeEnum["Nav"] = "daff-nav-list";
|
3557
3636
|
})(DaffListTypeEnum || (DaffListTypeEnum = {}));
|
3558
|
-
|
3559
|
-
|
3560
|
-
|
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;
|
3561
3655
|
}
|
3562
3656
|
Object.defineProperty(DaffListComponent.prototype, "list", {
|
3563
3657
|
/**
|
@@ -3639,7 +3733,7 @@
|
|
3639
3733
|
return this.elementRef.nativeElement;
|
3640
3734
|
};
|
3641
3735
|
return DaffListComponent;
|
3642
|
-
}());
|
3736
|
+
}(_daffListBase));
|
3643
3737
|
DaffListComponent.decorators = [
|
3644
3738
|
{ type: i0.Component, args: [{
|
3645
3739
|
selector: 'daff-list' + ',' +
|
@@ -3652,7 +3746,8 @@
|
|
3652
3746
|
];
|
3653
3747
|
/** @nocollapse */
|
3654
3748
|
DaffListComponent.ctorParameters = function () { return [
|
3655
|
-
{ type: i0.ElementRef }
|
3749
|
+
{ type: i0.ElementRef },
|
3750
|
+
{ type: i0.Renderer2 }
|
3656
3751
|
]; };
|
3657
3752
|
DaffListComponent.propDecorators = {
|
3658
3753
|
mode: [{ type: i0.Input }],
|
@@ -3937,6 +4032,27 @@
|
|
3937
4032
|
{ type: i1.Overlay }
|
3938
4033
|
]; };
|
3939
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
|
+
|
3940
4056
|
/**
|
3941
4057
|
* An _elementRef is needed for the Colorable mixin
|
3942
4058
|
*/
|
@@ -3947,7 +4063,7 @@
|
|
3947
4063
|
}
|
3948
4064
|
return DaffNavbarBase;
|
3949
4065
|
}());
|
3950
|
-
var _daffNavbarBase = daffColorMixin(DaffNavbarBase);
|
4066
|
+
var _daffNavbarBase = daffManageContainerLayoutMixin(daffColorMixin(DaffNavbarBase));
|
3951
4067
|
/**
|
3952
4068
|
* @inheritdoc
|
3953
4069
|
*/
|
@@ -3957,19 +4073,19 @@
|
|
3957
4073
|
var _this = _super.call(this, elementRef, renderer) || this;
|
3958
4074
|
_this.elementRef = elementRef;
|
3959
4075
|
_this.renderer = renderer;
|
3960
|
-
_this.
|
4076
|
+
_this.raised = false;
|
3961
4077
|
/**
|
3962
4078
|
* @docs-private
|
3963
4079
|
*/
|
3964
4080
|
_this.hostClass = true;
|
3965
4081
|
return _this;
|
3966
4082
|
}
|
3967
|
-
Object.defineProperty(DaffNavbarComponent.prototype, "
|
4083
|
+
Object.defineProperty(DaffNavbarComponent.prototype, "raisedClass", {
|
3968
4084
|
/**
|
3969
4085
|
* @docs-private
|
3970
4086
|
*/
|
3971
4087
|
get: function () {
|
3972
|
-
return this.
|
4088
|
+
return this.raised;
|
3973
4089
|
},
|
3974
4090
|
enumerable: false,
|
3975
4091
|
configurable: true
|
@@ -3979,13 +4095,14 @@
|
|
3979
4095
|
}(_daffNavbarBase));
|
3980
4096
|
DaffNavbarComponent.decorators = [
|
3981
4097
|
{ type: i0.Component, args: [{
|
3982
|
-
|
4098
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
4099
|
+
selector: 'nav[daff-navbar]',
|
3983
4100
|
template: '<ng-content></ng-content>',
|
3984
4101
|
//todo(damienwebdev): remove once decorators hit stage 3 - https://github.com/microsoft/TypeScript/issues/7342
|
3985
4102
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
3986
4103
|
inputs: ['color'],
|
3987
4104
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
3988
|
-
styles: [":host{align-items:center;
|
4105
|
+
styles: [":host{display:flex;align-items:center;height:64px;width:100%;padding:0 16px}"]
|
3989
4106
|
},] }
|
3990
4107
|
];
|
3991
4108
|
/** @nocollapse */
|
@@ -3994,8 +4111,8 @@
|
|
3994
4111
|
{ type: i0.Renderer2 }
|
3995
4112
|
]; };
|
3996
4113
|
DaffNavbarComponent.propDecorators = {
|
3997
|
-
|
3998
|
-
|
4114
|
+
raised: [{ type: i0.Input }],
|
4115
|
+
raisedClass: [{ type: i0.HostBinding, args: ['class.daff-navbar--raised',] }],
|
3999
4116
|
hostClass: [{ type: i0.HostBinding, args: ['class.daff-navbar',] }]
|
4000
4117
|
};
|
4001
4118
|
|
@@ -4764,7 +4881,7 @@
|
|
4764
4881
|
DaffHeroSizeEnum["Small"] = "small";
|
4765
4882
|
})(exports.DaffHeroSizeEnum || (exports.DaffHeroSizeEnum = {}));
|
4766
4883
|
/**
|
4767
|
-
* 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
|
4768
4885
|
*/
|
4769
4886
|
var DaffHeroBase = /** @class */ (function () {
|
4770
4887
|
function DaffHeroBase(_elementRef, _renderer) {
|
@@ -4773,7 +4890,7 @@
|
|
4773
4890
|
}
|
4774
4891
|
return DaffHeroBase;
|
4775
4892
|
}());
|
4776
|
-
var _daffHeroBase = daffColorMixin(daffCompactableMixin(daffTextAlignmentMixin(DaffHeroBase, 'left')));
|
4893
|
+
var _daffHeroBase = daffArticleEncapsulatedMixin(daffManageContainerLayoutMixin(daffColorMixin(daffCompactableMixin(daffTextAlignmentMixin(DaffHeroBase, 'left')))));
|
4777
4894
|
/**
|
4778
4895
|
* @inheritdoc
|
4779
4896
|
*/
|
@@ -4820,7 +4937,7 @@
|
|
4820
4937
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
4821
4938
|
inputs: ['color', 'compact', 'textAlignment'],
|
4822
4939
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
4823
|
-
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.
|
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}"]
|
4824
4941
|
},] }
|
4825
4942
|
];
|
4826
4943
|
/** @nocollapse */
|
@@ -4971,7 +5088,7 @@
|
|
4971
5088
|
}
|
4972
5089
|
return DaffCalloutBase;
|
4973
5090
|
}());
|
4974
|
-
var _daffCalloutBase = daffColorMixin(daffCompactableMixin(daffTextAlignmentMixin(DaffCalloutBase, 'left')));
|
5091
|
+
var _daffCalloutBase = daffArticleEncapsulatedMixin(daffManageContainerLayoutMixin(daffColorMixin(daffCompactableMixin(daffTextAlignmentMixin(DaffCalloutBase, 'left')))));
|
4975
5092
|
/**
|
4976
5093
|
* @inheritdoc
|
4977
5094
|
*/
|
@@ -5018,7 +5135,7 @@
|
|
5018
5135
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
5019
5136
|
inputs: ['color', 'compact', 'textAlignment'],
|
5020
5137
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
5021
|
-
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--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}"]
|
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}"]
|
5022
5139
|
},] }
|
5023
5140
|
];
|
5024
5141
|
/** @nocollapse */
|
@@ -5139,6 +5256,9 @@
|
|
5139
5256
|
DaffFeatureModeEnum["Compact"] = "compact";
|
5140
5257
|
DaffFeatureModeEnum["Normal"] = "normal";
|
5141
5258
|
})(exports.DaffFeatureModeEnum || (exports.DaffFeatureModeEnum = {}));
|
5259
|
+
/**
|
5260
|
+
* @deprecated See {@link DaffCardComponent}
|
5261
|
+
*/
|
5142
5262
|
var DaffFeatureComponent = /** @class */ (function () {
|
5143
5263
|
function DaffFeatureComponent() {
|
5144
5264
|
/**
|
@@ -5230,6 +5350,42 @@
|
|
5230
5350
|
class: [{ type: i0.HostBinding, args: ['class.daff-card__actions',] }]
|
5231
5351
|
};
|
5232
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
|
+
|
5233
5389
|
var DaffCardImageDirective = /** @class */ (function () {
|
5234
5390
|
function DaffCardImageDirective() {
|
5235
5391
|
/**
|
@@ -5284,6 +5440,15 @@
|
|
5284
5440
|
class: [{ type: i0.HostBinding, args: ['class.daff-card__title',] }]
|
5285
5441
|
};
|
5286
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 = {}));
|
5287
5452
|
/**
|
5288
5453
|
* An _elementRef and an instance of renderer2 are needed for the Colorable mixin
|
5289
5454
|
*/
|
@@ -5294,7 +5459,7 @@
|
|
5294
5459
|
}
|
5295
5460
|
return DaffCardBase;
|
5296
5461
|
}());
|
5297
|
-
var _daffCardBase = daffColorMixin(DaffCardBase);
|
5462
|
+
var _daffCardBase = daffArticleEncapsulatedMixin(daffColorMixin(DaffCardBase));
|
5298
5463
|
/**
|
5299
5464
|
* @inheritdoc
|
5300
5465
|
*/
|
@@ -5304,34 +5469,109 @@
|
|
5304
5469
|
var _this = _super.call(this, elementRef, renderer) || this;
|
5305
5470
|
_this.elementRef = elementRef;
|
5306
5471
|
_this.renderer = renderer;
|
5307
|
-
_this.
|
5308
|
-
/**
|
5309
|
-
* @docs-private
|
5310
|
-
*/
|
5472
|
+
_this._orientation = exports.DaffCardOrientationEnum.Vertical;
|
5311
5473
|
_this.class = true;
|
5474
|
+
_this.cardType = _this.initCardType();
|
5312
5475
|
return _this;
|
5313
5476
|
}
|
5314
|
-
Object.defineProperty(DaffCardComponent.prototype, "
|
5477
|
+
Object.defineProperty(DaffCardComponent.prototype, "orientation", {
|
5315
5478
|
get: function () {
|
5316
|
-
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
|
+
}
|
5488
|
+
},
|
5489
|
+
enumerable: false,
|
5490
|
+
configurable: true
|
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;
|
5317
5530
|
},
|
5318
5531
|
enumerable: false,
|
5319
5532
|
configurable: true
|
5320
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
|
+
};
|
5321
5558
|
return DaffCardComponent;
|
5322
5559
|
}(_daffCardBase));
|
5323
5560
|
DaffCardComponent.decorators = [
|
5324
5561
|
{ type: i0.Component, args: [{
|
5325
|
-
selector: '' +
|
5326
|
-
'daff-card' + ',' +
|
5327
|
-
'
|
5328
|
-
|
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>",
|
5329
5569
|
encapsulation: i0.ViewEncapsulation.None,
|
5330
5570
|
//todo(damienwebdev): remove once decorators hit stage 3 - https://github.com/microsoft/TypeScript/issues/7342
|
5331
5571
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
5332
5572
|
inputs: ['color'],
|
5333
5573
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
5334
|
-
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}"]
|
5335
5575
|
},] }
|
5336
5576
|
];
|
5337
5577
|
/** @nocollapse */
|
@@ -5340,9 +5580,10 @@
|
|
5340
5580
|
{ type: i0.Renderer2 }
|
5341
5581
|
]; };
|
5342
5582
|
DaffCardComponent.propDecorators = {
|
5343
|
-
|
5583
|
+
orientation: [{ type: i0.Input }],
|
5344
5584
|
class: [{ type: i0.HostBinding, args: ['class.daff-card',] }],
|
5345
|
-
|
5585
|
+
verticalClass: [{ type: i0.HostBinding, args: ['class.daff-card--vertical',] }],
|
5586
|
+
horizontalClass: [{ type: i0.HostBinding, args: ['class.daff-card--horizontal',] }]
|
5346
5587
|
};
|
5347
5588
|
|
5348
5589
|
var DaffCardModule = /** @class */ (function () {
|
@@ -5357,16 +5598,20 @@
|
|
5357
5598
|
],
|
5358
5599
|
declarations: [
|
5359
5600
|
DaffCardComponent,
|
5601
|
+
DaffCardIconDirective,
|
5602
|
+
DaffCardImageDirective,
|
5360
5603
|
DaffCardTaglineDirective,
|
5361
5604
|
DaffCardTitleDirective,
|
5362
|
-
|
5605
|
+
DaffCardContentDirective,
|
5363
5606
|
DaffCardActionsDirective,
|
5364
5607
|
],
|
5365
5608
|
exports: [
|
5366
5609
|
DaffCardComponent,
|
5610
|
+
DaffCardIconDirective,
|
5611
|
+
DaffCardImageDirective,
|
5367
5612
|
DaffCardTaglineDirective,
|
5368
5613
|
DaffCardTitleDirective,
|
5369
|
-
|
5614
|
+
DaffCardContentDirective,
|
5370
5615
|
DaffCardActionsDirective,
|
5371
5616
|
],
|
5372
5617
|
},] }
|
@@ -5428,6 +5673,8 @@
|
|
5428
5673
|
exports.DaffCalloutTitleDirective = DaffCalloutTitleDirective;
|
5429
5674
|
exports.DaffCardActionsDirective = DaffCardActionsDirective;
|
5430
5675
|
exports.DaffCardComponent = DaffCardComponent;
|
5676
|
+
exports.DaffCardContentDirective = DaffCardContentDirective;
|
5677
|
+
exports.DaffCardIconDirective = DaffCardIconDirective;
|
5431
5678
|
exports.DaffCardImageDirective = DaffCardImageDirective;
|
5432
5679
|
exports.DaffCardModule = DaffCardModule;
|
5433
5680
|
exports.DaffCardTaglineDirective = DaffCardTaglineDirective;
|
@@ -5511,7 +5758,9 @@
|
|
5511
5758
|
exports.DaffSidebarViewportComponent = DaffSidebarViewportComponent;
|
5512
5759
|
exports.DaffSuffixDirective = DaffSuffixDirective;
|
5513
5760
|
exports.DaffThumbnailDirective = DaffThumbnailDirective;
|
5761
|
+
exports.daffArticleEncapsulatedMixin = daffArticleEncapsulatedMixin;
|
5514
5762
|
exports.daffCompactableMixin = daffCompactableMixin;
|
5763
|
+
exports.daffManageContainerLayoutMixin = daffManageContainerLayoutMixin;
|
5515
5764
|
exports.daffPrefixableMixin = daffPrefixableMixin;
|
5516
5765
|
exports.daffSuffixableMixin = daffSuffixableMixin;
|
5517
5766
|
exports.daffThumbnailCompatToken = daffThumbnailCompatToken;
|