@bino-bi/bn-template-engine 1.0.0-alpha.5 → 1.0.0-alpha.7
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/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
- package/dist/bn-template-engine/p-0fabe296.entry.js +1 -0
- package/dist/bn-template-engine/p-1164c0b0.entry.js +1 -0
- package/dist/bn-template-engine/p-355abdf0.entry.js +1 -0
- package/dist/bn-template-engine/p-79KuA4Ox.js +1 -0
- package/dist/bn-template-engine/p-859cc06d.entry.js +1 -0
- package/dist/bn-template-engine/p-8acec99e.entry.js +1 -0
- package/dist/bn-template-engine/p-8f490c45.entry.js +1 -0
- package/dist/bn-template-engine/p-9721a5bb.entry.js +1 -0
- package/dist/bn-template-engine/p-9a564f8f.entry.js +1 -0
- package/dist/bn-template-engine/p-9cee22fa.entry.js +1 -0
- package/dist/bn-template-engine/{p-CL1RYuNU.js → p-B0lsgVuN.js} +1 -1
- package/dist/bn-template-engine/p-B7p8beYH.js +1 -0
- package/dist/bn-template-engine/p-BDh7GfC5.js +1 -0
- package/dist/bn-template-engine/p-BoMtoHJB.js +1 -0
- package/dist/bn-template-engine/p-Bs8BqBsb.js +1 -0
- package/dist/bn-template-engine/p-CYjZRKdI.js +1 -0
- package/dist/bn-template-engine/{p-P7pGJBgc.js → p-DG-1MR_T.js} +1 -1
- package/dist/bn-template-engine/p-Dnkv5rt8.js +1 -0
- package/dist/bn-template-engine/p-bdd2b243.entry.js +1 -0
- package/dist/bn-template-engine/p-f27995c9.entry.js +1 -0
- package/dist/bn-template-engine/p-f6ecb265.entry.js +1 -0
- package/dist/bn-template-engine/{p-Bnhh02CF.js → p-sRO-lj7X.js} +1 -1
- package/dist/bn-template-engine/p-tzFCK9qn.js +1 -0
- package/dist/cjs/{Order-iG11HI4R.js → Order-BGx39pS5.js} +448 -0
- package/dist/cjs/{alasql.min-C_nHTuEQ.js → SVGVariancesStyleGroup-BqAdPYtL.js} +8228 -3
- package/dist/cjs/bn-asset_16.cjs.entry.js +9099 -0
- package/dist/cjs/bn-card.cjs.entry.js +3 -4
- package/dist/cjs/bn-chart-time.cjs.entry.js +55 -24
- package/dist/cjs/bn-grid.cjs.entry.js +5 -8
- package/dist/cjs/bn-image.cjs.entry.js +5 -8
- package/dist/cjs/bn-internationalization.cjs.entry.js +3 -4
- package/dist/cjs/bn-layout-card.cjs.entry.js +156 -6
- package/dist/cjs/bn-template-engine.cjs.js +1 -1
- package/dist/cjs/bn-template.cjs.entry.js +2 -3
- package/dist/cjs/bn-text.cjs.entry.js +7 -11
- package/dist/cjs/bn-tree.cjs.entry.js +5 -8
- package/dist/cjs/{formatter-DIJL_crx.js → formatter-4XCS0d2B.js} +8 -2
- package/dist/cjs/ibcs-chart-time.cjs.entry.js +37 -42
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{scaling-9Tz595RQ.js → scaling-BidPsO53.js} +115 -12
- package/dist/cjs/{withBodyObserver-CKpSD8UT.js → withBodyObserver-C6gLgq_e.js} +3 -3
- package/dist/cjs/{withComponentStatus-Bw70BhO0.js → withComponentStatus-_x4LQZ0N.js} +5 -5
- package/dist/cjs/{withComponentStyle-aIbTCtfj.js → withComponentStyle-ClSJfCku.js} +4 -4
- package/dist/cjs/{utils-CwHIVbbL.js → withHasError-B8gHkfV2.js} +69 -1
- package/dist/cjs/withInheritedProps-BH2KNER3.js +157 -0
- package/dist/cjs/{withStyled-CS1Yp4sv.js → withStyled-9tG024gQ.js} +62 -9
- package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +46 -10
- package/dist/collection/components/bn-chart-time/bn-chart-time.js +44 -8
- package/dist/collection/components/bn-layout-card/bn-layout-card.css +1 -0
- package/dist/collection/components/bn-layout-card/bn-layout-card.js +193 -27
- package/dist/collection/components/bn-layout-page/bn-layout-page.css +1 -0
- package/dist/collection/components/bn-layout-page/bn-layout-page.js +151 -33
- package/dist/collection/components/bn-table/bn-table.js +59 -13
- package/dist/collection/utils/parentDimensions.js +38 -6
- package/dist/collection/utils/withInheritedProps.js +152 -0
- package/dist/components/bn-chart-structure.js +1 -1
- package/dist/components/bn-chart-time.js +1 -1
- package/dist/components/bn-layout-card.js +1 -1
- package/dist/components/bn-layout-page.js +1 -1
- package/dist/components/bn-table.js +1 -1
- package/dist/components/scaling.js +1 -1
- package/dist/components/withInheritedProps.js +1 -0
- package/dist/esm/{Order-Bnhh02CF.js → Order-sRO-lj7X.js} +448 -1
- package/dist/esm/{alasql.min-CWu4NkIt.js → SVGVariancesStyleGroup-DOIT-zvI.js} +8212 -2
- package/dist/esm/bn-asset_16.entry.js +9082 -0
- package/dist/esm/bn-card.entry.js +4 -5
- package/dist/esm/bn-chart-time.entry.js +52 -21
- package/dist/esm/bn-grid.entry.js +6 -9
- package/dist/esm/bn-image.entry.js +6 -9
- package/dist/esm/bn-internationalization.entry.js +4 -5
- package/dist/esm/bn-layout-card.entry.js +157 -7
- package/dist/esm/bn-template-engine.js +1 -1
- package/dist/esm/bn-template.entry.js +2 -3
- package/dist/esm/bn-text.entry.js +7 -11
- package/dist/esm/bn-tree.entry.js +6 -9
- package/dist/esm/{context-protocol-BHnQsVsr.js → context-protocol-2peaD4y8.js} +1 -1
- package/dist/esm/editor-companion.entry.js +1 -1
- package/dist/esm/{formatter-DTMEZ6d8.js → formatter-BDh7GfC5.js} +6 -2
- package/dist/esm/ibcs-chart-time.entry.js +3 -8
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{scaling-Cehc74IE.js → scaling-BOcjT8M0.js} +112 -10
- package/dist/esm/{withBodyObserver-FQ8NwCIz.js → withBodyObserver-DczL5ia8.js} +1 -1
- package/dist/esm/{withComponentStatus-DWjDYtZ7.js → withComponentStatus-DodoSXe-.js} +1 -1
- package/dist/esm/{withComponentStyle-9uP_hcDq.js → withComponentStyle-D3VWOsto.js} +2 -2
- package/dist/esm/{utils-DvvwfRQG.js → withHasError-B3QX2emi.js} +69 -1
- package/dist/esm/withInheritedProps-BlXDxhHK.js +154 -0
- package/dist/esm/{withStyled--qQWquTH.js → withStyled-CE3_3taP.js} +57 -5
- package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +1 -0
- package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +1 -0
- package/dist/types/components/bn-layout-card/bn-layout-card.d.ts +147 -0
- package/dist/types/components/bn-layout-page/bn-layout-page.d.ts +154 -0
- package/dist/types/components/bn-table/bn-table.d.ts +1 -0
- package/dist/types/components.d.ts +168 -0
- package/dist/types/utils/parentDimensions.d.ts +6 -1
- package/dist/types/utils/withInheritedProps.d.ts +38 -0
- package/package.json +1 -1
- package/dist/bn-template-engine/p-1265d8d3.entry.js +0 -1
- package/dist/bn-template-engine/p-15516dac.entry.js +0 -1
- package/dist/bn-template-engine/p-1c716641.entry.js +0 -1
- package/dist/bn-template-engine/p-1jFf17Vj.js +0 -1
- package/dist/bn-template-engine/p-27cc8dc0.entry.js +0 -1
- package/dist/bn-template-engine/p-3b4c7425.entry.js +0 -1
- package/dist/bn-template-engine/p-4426d484.entry.js +0 -1
- package/dist/bn-template-engine/p-51f8dc9e.entry.js +0 -1
- package/dist/bn-template-engine/p-53d4e690.entry.js +0 -1
- package/dist/bn-template-engine/p-5KQYRQLK.js +0 -1
- package/dist/bn-template-engine/p-7337e03d.entry.js +0 -1
- package/dist/bn-template-engine/p-75e97c87.entry.js +0 -1
- package/dist/bn-template-engine/p-7a560278.entry.js +0 -1
- package/dist/bn-template-engine/p-BFTU3MAI.js +0 -1
- package/dist/bn-template-engine/p-BYBpC0EO.js +0 -1
- package/dist/bn-template-engine/p-BYmPQYxx.js +0 -1
- package/dist/bn-template-engine/p-BfXY5dsy.js +0 -1
- package/dist/bn-template-engine/p-BgnHJQ9Q.js +0 -1
- package/dist/bn-template-engine/p-Bhd_WSML.js +0 -1
- package/dist/bn-template-engine/p-Bka-Z6jo.js +0 -1
- package/dist/bn-template-engine/p-C7dQL8CS.js +0 -1
- package/dist/bn-template-engine/p-CYwd_ZNM.js +0 -1
- package/dist/bn-template-engine/p-ChlK-T9I.js +0 -1
- package/dist/bn-template-engine/p-DHezf8pZ.js +0 -1
- package/dist/bn-template-engine/p-DlppAFq9.js +0 -1
- package/dist/bn-template-engine/p-DvDDgmcV.js +0 -1
- package/dist/bn-template-engine/p-DvvwfRQG.js +0 -1
- package/dist/bn-template-engine/p-abc0067c.entry.js +0 -1
- package/dist/bn-template-engine/p-b34eaf86.entry.js +0 -1
- package/dist/bn-template-engine/p-bdb8b44c.entry.js +0 -1
- package/dist/bn-template-engine/p-c44fcb8e.entry.js +0 -1
- package/dist/bn-template-engine/p-c7e1a49b.entry.js +0 -1
- package/dist/bn-template-engine/p-d9003041.entry.js +0 -1
- package/dist/bn-template-engine/p-daa7ffa3.entry.js +0 -1
- package/dist/bn-template-engine/p-e084f50a.entry.js +0 -1
- package/dist/bn-template-engine/p-eaba6658.entry.js +0 -1
- package/dist/bn-template-engine/p-u8igQLRZ.js +0 -1
- package/dist/cjs/DataFormatDigits-DKcOeLNK.js +0 -142
- package/dist/cjs/DateStringFactory-CSKvbS8K.js +0 -452
- package/dist/cjs/SVGVariancesStyleGroup-K-Tw6lOD.js +0 -7960
- package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +0 -10
- package/dist/cjs/bn-asset.cjs.entry.js +0 -42
- package/dist/cjs/bn-body_4.cjs.entry.js +0 -748
- package/dist/cjs/bn-chart-structure_5.cjs.entry.js +0 -3948
- package/dist/cjs/bn-component-style.cjs.entry.js +0 -44
- package/dist/cjs/bn-dataset.cjs.entry.js +0 -306
- package/dist/cjs/bn-layout-page.cjs.entry.js +0 -143
- package/dist/cjs/bn-message.cjs.entry.js +0 -52
- package/dist/cjs/bn-table.cjs.entry.js +0 -981
- package/dist/cjs/contentDecoder-JxOldq1e.js +0 -419
- package/dist/cjs/emotion-hash.esm-nbbEQ0Dn.js +0 -57
- package/dist/cjs/ibcs-table.cjs.entry.js +0 -2276
- package/dist/cjs/ibcsRuleSet-DgUoXOfd.js +0 -136
- package/dist/cjs/index-Dm85hG6t.js +0 -65
- package/dist/cjs/withHasError-D7ue5vAv.js +0 -72
- package/dist/cjs/withTranslation-rwgyITqe.js +0 -77
- package/dist/esm/DataFormatDigits-oSZ1hBKE.js +0 -137
- package/dist/esm/DateStringFactory-CSGz6TDk.js +0 -450
- package/dist/esm/SVGVariancesStyleGroup-CqTjrZYg.js +0 -7950
- package/dist/esm/_commonjsHelpers-BFTU3MAI.js +0 -7
- package/dist/esm/bn-asset.entry.js +0 -40
- package/dist/esm/bn-body_4.entry.js +0 -743
- package/dist/esm/bn-chart-structure_5.entry.js +0 -3942
- package/dist/esm/bn-component-style.entry.js +0 -42
- package/dist/esm/bn-dataset.entry.js +0 -304
- package/dist/esm/bn-layout-page.entry.js +0 -141
- package/dist/esm/bn-message.entry.js +0 -50
- package/dist/esm/bn-table.entry.js +0 -979
- package/dist/esm/contentDecoder-oMmxz6nJ.js +0 -416
- package/dist/esm/emotion-hash.esm-BYBpC0EO.js +0 -55
- package/dist/esm/ibcs-table.entry.js +0 -2274
- package/dist/esm/ibcsRuleSet-K4ytuA1f.js +0 -133
- package/dist/esm/index-DHezf8pZ.js +0 -65
- package/dist/esm/withHasError-FyY5mQ_3.js +0 -70
- package/dist/esm/withTranslation-BqD0Kp7b.js +0 -75
|
@@ -7,6 +7,7 @@ import { globalLabelKeys } from "../../stores/internationalization";
|
|
|
7
7
|
import { withStyled } from "../../utils/styled/withStyled";
|
|
8
8
|
import withComponentStyle from "../../utils/withComponentStyle";
|
|
9
9
|
import withHasError from "../../utils/withHasError";
|
|
10
|
+
import withInheritedProps, { isInheritedValue } from "../../utils/withInheritedProps";
|
|
10
11
|
import { getParentDimensions } from "../../utils/parentDimensions";
|
|
11
12
|
import { parseScaling } from "../../utils/scaling";
|
|
12
13
|
import { OrderColumn, OrderDirection } from "../../utils/model/Order";
|
|
@@ -34,8 +35,12 @@ var AggregationLevel;
|
|
|
34
35
|
*/
|
|
35
36
|
export class Chart {
|
|
36
37
|
validateScenario(newValue) {
|
|
37
|
-
const invalidScenarios = validateScenarioList(newValue);
|
|
38
38
|
const errId = "ERR_scenarios";
|
|
39
|
+
if (isInheritedValue(newValue)) {
|
|
40
|
+
this.errors.remove(errId);
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
const invalidScenarios = validateScenarioList(newValue);
|
|
39
44
|
if (invalidScenarios.length > 0) {
|
|
40
45
|
this.errors.addOrReplace({
|
|
41
46
|
id: errId,
|
|
@@ -49,6 +54,10 @@ export class Chart {
|
|
|
49
54
|
}
|
|
50
55
|
validateVariances(newValue) {
|
|
51
56
|
const errIdVar = "ERR_variances";
|
|
57
|
+
if (isInheritedValue(newValue)) {
|
|
58
|
+
this.errors.remove(errIdVar);
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
52
61
|
const invalidVariances = validateVariancesList(newValue);
|
|
53
62
|
if (invalidVariances.length > 0) {
|
|
54
63
|
this.errors.addOrReplace({
|
|
@@ -128,6 +137,10 @@ export class Chart {
|
|
|
128
137
|
}
|
|
129
138
|
validateOrderList(newValue) {
|
|
130
139
|
const errId = "ERR_order";
|
|
140
|
+
if (isInheritedValue(newValue)) {
|
|
141
|
+
this.errors.remove(errId);
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
131
144
|
const invalidElements = validateOrderList(newValue);
|
|
132
145
|
if (invalidElements.length > 0) {
|
|
133
146
|
this.errors.addOrReplace({
|
|
@@ -142,6 +155,10 @@ export class Chart {
|
|
|
142
155
|
}
|
|
143
156
|
validateOrderDirection(newValue) {
|
|
144
157
|
const errId = "ERR_orderDirection";
|
|
158
|
+
if (isInheritedValue(newValue)) {
|
|
159
|
+
this.errors.remove(errId);
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
145
162
|
if (!isValidDirection(newValue)) {
|
|
146
163
|
this.errors.addOrReplace({
|
|
147
164
|
id: errId,
|
|
@@ -468,6 +485,12 @@ export class Chart {
|
|
|
468
485
|
this.errors = withHasError(this);
|
|
469
486
|
this.componentStyle = withComponentStyle(this);
|
|
470
487
|
this.t = withTranslation(this).t;
|
|
488
|
+
this.resolveInherited = withInheritedProps(this, [
|
|
489
|
+
{ propName: "scenarios", ancestorAttr: "title-scenarios" },
|
|
490
|
+
{ propName: "variances", ancestorAttr: "title-variances" },
|
|
491
|
+
{ propName: "order", ancestorAttr: "title-order" },
|
|
492
|
+
{ propName: "orderDirection", ancestorAttr: "title-order-direction" },
|
|
493
|
+
]);
|
|
471
494
|
}
|
|
472
495
|
componentWillLoad() {
|
|
473
496
|
this.validateScenario(this.scenarios);
|
|
@@ -560,6 +583,11 @@ export class Chart {
|
|
|
560
583
|
}
|
|
561
584
|
prepareScenarios() {
|
|
562
585
|
var _a, _b, _c, _d;
|
|
586
|
+
const inherited = this.resolveInherited("scenarios", this.scenarios);
|
|
587
|
+
if (inherited !== undefined) {
|
|
588
|
+
this.errors.remove("AUTO_scenarios");
|
|
589
|
+
return inherited.split(",").map((entry) => entry.trim());
|
|
590
|
+
}
|
|
563
591
|
const isAuto = ((_a = this.scenarios) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase()) === "auto";
|
|
564
592
|
if (isBlankInput(this.scenarios) || isAuto) {
|
|
565
593
|
if (((_c = (_b = this.datasetMeta) === null || _b === void 0 ? void 0 : _b.availableScenarios) === null || _c === void 0 ? void 0 : _c.length) > 0) {
|
|
@@ -588,6 +616,10 @@ export class Chart {
|
|
|
588
616
|
}
|
|
589
617
|
prepareVariances() {
|
|
590
618
|
var _a;
|
|
619
|
+
const inherited = this.resolveInherited("variances", this.variances);
|
|
620
|
+
if (inherited !== undefined) {
|
|
621
|
+
return inherited.split(",").map((entry) => entry.trim());
|
|
622
|
+
}
|
|
591
623
|
if (isBlankInput(this.variances)) {
|
|
592
624
|
return [];
|
|
593
625
|
}
|
|
@@ -656,12 +688,16 @@ export class Chart {
|
|
|
656
688
|
return AggregationLevel[(_c = this.level) === null || _c === void 0 ? void 0 : _c.toUpperCase()];
|
|
657
689
|
}
|
|
658
690
|
prepareOrder() {
|
|
659
|
-
var _a, _b, _c
|
|
691
|
+
var _a, _b, _c;
|
|
692
|
+
const inheritedOrder = this.resolveInherited("order", this.order);
|
|
693
|
+
const inheritedDirection = this.resolveInherited("orderDirection", this.orderDirection);
|
|
694
|
+
const effectiveOrder = inheritedOrder !== null && inheritedOrder !== void 0 ? inheritedOrder : this.order;
|
|
695
|
+
const effectiveDirection = inheritedDirection !== null && inheritedDirection !== void 0 ? inheritedDirection : this.orderDirection;
|
|
660
696
|
const isLevelAuto = isBlankInput(this.level) || ((_a = this.level) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase()) === "auto";
|
|
661
697
|
let entryValue = isLevelAuto && ((_b = this.datasetMeta) === null || _b === void 0 ? void 0 : _b.suggestedLevel) ? this.datasetMeta.suggestedLevel : this.level;
|
|
662
|
-
const isOrderAuto = (
|
|
663
|
-
if (isBlankInput(
|
|
664
|
-
if ((
|
|
698
|
+
const isOrderAuto = (effectiveOrder === null || effectiveOrder === void 0 ? void 0 : effectiveOrder.trim().toLowerCase()) === "auto";
|
|
699
|
+
if (isBlankInput(effectiveOrder) || isOrderAuto) {
|
|
700
|
+
if ((_c = this.datasetMeta) === null || _c === void 0 ? void 0 : _c.suggestedLevel) {
|
|
665
701
|
if (!isOrderAuto) {
|
|
666
702
|
this.errors.addOrReplace({
|
|
667
703
|
id: "AUTO_order",
|
|
@@ -676,13 +712,13 @@ export class Chart {
|
|
|
676
712
|
}
|
|
677
713
|
else {
|
|
678
714
|
this.errors.remove("AUTO_order");
|
|
679
|
-
if ((
|
|
715
|
+
if ((effectiveOrder === null || effectiveOrder === void 0 ? void 0 : effectiveOrder.toLocaleLowerCase()) === "levelindex") {
|
|
680
716
|
entryValue += "Index";
|
|
681
717
|
}
|
|
682
718
|
}
|
|
683
719
|
const tableOrder = {
|
|
684
720
|
hierarchy: [OrderColumn[entryValue === null || entryValue === void 0 ? void 0 : entryValue.toUpperCase()]],
|
|
685
|
-
direction: OrderDirection[
|
|
721
|
+
direction: OrderDirection[effectiveDirection === null || effectiveDirection === void 0 ? void 0 : effectiveDirection.toUpperCase()],
|
|
686
722
|
};
|
|
687
723
|
return tableOrder;
|
|
688
724
|
}
|
|
@@ -931,7 +967,7 @@ export class Chart {
|
|
|
931
967
|
scenariosArray = [...scenariosArray, ...variancesArray];
|
|
932
968
|
}
|
|
933
969
|
const fontStyles = this.getFontStyles();
|
|
934
|
-
return (h(Host, { key: '
|
|
970
|
+
return (h(Host, { key: 'd0625657fc6ddbacf7ad5c4cede189cc321109e1', style: fontStyles }, h("div", { key: '393a0c8b00028b3edd08d6e199ffe55014251a5d', class: "container" }, scenariosArray.map(this.chartTemplate))));
|
|
935
971
|
}
|
|
936
972
|
static get is() { return "bn-chart-time"; }
|
|
937
973
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,20 +1,114 @@
|
|
|
1
1
|
import { h, Fragment } from "@stencil/core";
|
|
2
2
|
import { getStores } from "../../context/context-protocol";
|
|
3
3
|
import withHasError from "../../utils/withHasError";
|
|
4
|
+
import withInheritedProps from "../../utils/withInheritedProps";
|
|
4
5
|
export class LayoutCard {
|
|
5
6
|
constructor() {
|
|
7
|
+
/**
|
|
8
|
+
* URL or asset name of the image displayed next to the card title.
|
|
9
|
+
* The value is resolved via the scoped assets store: if it matches a
|
|
10
|
+
* registered asset name, the stored URL is used; otherwise the raw value
|
|
11
|
+
* is treated as a URL. The deprecated `asset:` prefix is still supported
|
|
12
|
+
* for backward compatibility.
|
|
13
|
+
* <br /><br />
|
|
14
|
+
* If empty, the title image is omitted.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* <bn-layout-card title-image="company_logo"></bn-layout-card>
|
|
18
|
+
*/
|
|
6
19
|
this.titleImage = "";
|
|
20
|
+
/**
|
|
21
|
+
* Name of the business unit displayed in the title header row.
|
|
22
|
+
* If empty, the business unit row is omitted.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* <bn-layout-card title-business-unit="Sales"></bn-layout-card>
|
|
26
|
+
*/
|
|
7
27
|
this.titleBusinessUnit = "";
|
|
28
|
+
/**
|
|
29
|
+
* Primary column on which the order direction is applied.
|
|
30
|
+
* <br /><br />
|
|
31
|
+
* values:<br />
|
|
32
|
+
* ```category // categoryindex // rowgroup // rowgroupindex // ac // fc // py // pl```
|
|
33
|
+
*/
|
|
8
34
|
this.titleOrder = "category";
|
|
35
|
+
/**
|
|
36
|
+
* Sorting order direction for the column specified by `titleOrder`.
|
|
37
|
+
* <br /><br />
|
|
38
|
+
* values:<br />
|
|
39
|
+
* ```asc // desc```
|
|
40
|
+
*/
|
|
9
41
|
this.titleOrderDirection = "asc";
|
|
42
|
+
/**
|
|
43
|
+
* Date display format used in the title row.
|
|
44
|
+
* <br /><br />
|
|
45
|
+
* values:<br />
|
|
46
|
+
* ```year // quarter // month // week // day // time // auto // none```
|
|
47
|
+
* <br /><br />
|
|
48
|
+
* `year`: YYYY, `quarter`: Q[Q] YYYY, `month`: MMM YYYY,
|
|
49
|
+
* `week`: [KW]WW YYYY, `day`: DD.MM.YYYY, `time`: DD.MM.YYYY HH:mm:ss,
|
|
50
|
+
* `auto`: automatic detection, `none`: DD.MM.YYYY.
|
|
51
|
+
*/
|
|
10
52
|
this.titleDateFormat = "none";
|
|
53
|
+
/**
|
|
54
|
+
* Format in which the start and end dates are linked in the title.
|
|
55
|
+
* If set to `none` a plain date is shown.
|
|
56
|
+
* <br /><br />
|
|
57
|
+
* values:<br />
|
|
58
|
+
* ```avg // interval // cum // start // end // ytd // ytg // mat // none```
|
|
59
|
+
* <br /><br />
|
|
60
|
+
* `avg`: Ø[DATE], `interval`: [DATE]..[DATE2], `start`: .[DATE],
|
|
61
|
+
* `end`: [DATE]., `ytd`: _[DATE], `ytg`: [DATE]_, `cum`: [DATE]_[DATE2],
|
|
62
|
+
* `mat`: ~[DATE], `none`: [DATE].
|
|
63
|
+
*/
|
|
11
64
|
this.titleDateLink = "none";
|
|
65
|
+
/**
|
|
66
|
+
* Namespace used for title translations via the internationalization store.
|
|
67
|
+
*/
|
|
12
68
|
this.titleNamespace = "_system";
|
|
69
|
+
/**
|
|
70
|
+
* Text displayed in the card footer. If empty, the footer text is omitted.
|
|
71
|
+
*/
|
|
13
72
|
this.footerText = "";
|
|
73
|
+
/**
|
|
74
|
+
* Layout mode that controls how child components are arranged inside
|
|
75
|
+
* the card body using CSS Grid.
|
|
76
|
+
* <br /><br />
|
|
77
|
+
* values:<br />
|
|
78
|
+
* ```full // split-vertical // split-horizontal // 2x2 // 3x3 // 4x4 // 1-over-2 // 1-over-3 // 2-over-1 // 3-over-1 // custom-template```
|
|
79
|
+
* <br /><br />
|
|
80
|
+
* `full`: single slot. `split-vertical`: two side-by-side slots.
|
|
81
|
+
* `split-horizontal`: two stacked slots. `NxN`: equal grid.
|
|
82
|
+
* `1-over-2`: one full-width slot on top, two below. `custom-template`:
|
|
83
|
+
* uses the `cardCustomTemplate` CSS grid-template-areas string.
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* <bn-layout-card card-layout="split-horizontal"></bn-layout-card>
|
|
87
|
+
*/
|
|
14
88
|
this.cardLayout = "full";
|
|
89
|
+
/**
|
|
90
|
+
* CSS `grid-template-areas` string used when `cardLayout` is set to
|
|
91
|
+
* `custom-template`. Each quoted row defines a grid row; letters map to
|
|
92
|
+
* slot indices in order of first appearance.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* <bn-layout-card card-layout="custom-template"
|
|
96
|
+
* card-custom-template='"a a" "b c"'></bn-layout-card>
|
|
97
|
+
*/
|
|
15
98
|
this.cardCustomTemplate = '"a b" "c d"';
|
|
99
|
+
/**
|
|
100
|
+
* Gap between grid cells in pixels.
|
|
101
|
+
*/
|
|
16
102
|
this.cardGridGap = "0";
|
|
103
|
+
/**
|
|
104
|
+
* When `true`, the card shrinks to fit its content (`fit-content`)
|
|
105
|
+
* for both width and height. When `false`, the card stretches to
|
|
106
|
+
* fill its parent (`100%`).
|
|
107
|
+
*/
|
|
17
108
|
this.cardFitToContent = true;
|
|
109
|
+
/**
|
|
110
|
+
* Whether to display a visible border around the card.
|
|
111
|
+
*/
|
|
18
112
|
this.cardShowBorder = true;
|
|
19
113
|
this.templateMap = new Map([
|
|
20
114
|
["split-vertical", '"a b"'],
|
|
@@ -31,9 +125,18 @@ export class LayoutCard {
|
|
|
31
125
|
["gold4", '"a b c c" "d d c c"'],
|
|
32
126
|
]);
|
|
33
127
|
this.errors = withHasError(this);
|
|
128
|
+
this.resolveInherited = withInheritedProps(this, [
|
|
129
|
+
{ propName: "titleScenarios", ancestorAttr: "title-scenarios" },
|
|
130
|
+
{ propName: "titleVariances", ancestorAttr: "title-variances" },
|
|
131
|
+
{ propName: "titleOrder", ancestorAttr: "title-order" },
|
|
132
|
+
{ propName: "titleOrderDirection", ancestorAttr: "title-order-direction" },
|
|
133
|
+
]);
|
|
34
134
|
}
|
|
35
135
|
connectedCallback() {
|
|
36
136
|
this.stores = getStores(this.element);
|
|
137
|
+
// Reflect resolved inherited values to host attributes so child vis
|
|
138
|
+
// components can read them during their own DOM traversal.
|
|
139
|
+
this.reflectInheritedAttrs();
|
|
37
140
|
}
|
|
38
141
|
getCommonStyles() {
|
|
39
142
|
let height = "100%";
|
|
@@ -49,13 +152,41 @@ export class LayoutCard {
|
|
|
49
152
|
gap: this.cardGridGap + "px",
|
|
50
153
|
};
|
|
51
154
|
}
|
|
155
|
+
calculatePercentages(input) {
|
|
156
|
+
const items = input.trim().split(/\s+/);
|
|
157
|
+
const count = items.length;
|
|
158
|
+
if (count === 0)
|
|
159
|
+
return "100%";
|
|
160
|
+
const percentage = (100 / count).toFixed(0) + "%";
|
|
161
|
+
return Array(count).fill(percentage).join(" ");
|
|
162
|
+
}
|
|
163
|
+
getGridTemplateColumns(name) {
|
|
164
|
+
const template = this.getTemplatePattern(name);
|
|
165
|
+
const pattern = /"[\w\d\s.]+"/g;
|
|
166
|
+
const matches = template.match(pattern);
|
|
167
|
+
if (!matches || matches.length === 0)
|
|
168
|
+
return "100%";
|
|
169
|
+
return this.calculatePercentages(matches[0]);
|
|
170
|
+
}
|
|
171
|
+
getGridTemplateRows(name) {
|
|
172
|
+
const template = this.getTemplatePattern(name);
|
|
173
|
+
const pattern = /"[\w\d\s.]+"/g;
|
|
174
|
+
const matches = template.match(pattern);
|
|
175
|
+
const rowCount = matches ? matches.length : 1;
|
|
176
|
+
if (this.cardFitToContent) {
|
|
177
|
+
return Array(rowCount).fill("auto").join(" ");
|
|
178
|
+
}
|
|
179
|
+
return Array(rowCount).fill("1fr").join(" ");
|
|
180
|
+
}
|
|
52
181
|
getLayoutStyle() {
|
|
53
|
-
return Object.assign(Object.assign({}, this.getCommonStyles()), { "grid-template-areas": this.getTemplatePattern(this.cardLayout) });
|
|
182
|
+
return Object.assign(Object.assign({}, this.getCommonStyles()), { "grid-template-areas": this.getTemplatePattern(this.cardLayout), "grid-template-columns": this.getGridTemplateColumns(this.cardLayout), "grid-template-rows": this.getGridTemplateRows(this.cardLayout) });
|
|
54
183
|
}
|
|
55
184
|
createDivAreaStyles(elements) {
|
|
56
185
|
return elements.map((x) => ({
|
|
186
|
+
width: "100%",
|
|
57
187
|
overflow: "hidden",
|
|
58
188
|
"grid-area": x,
|
|
189
|
+
height: "100%",
|
|
59
190
|
}));
|
|
60
191
|
}
|
|
61
192
|
getSlots(slotNames) {
|
|
@@ -75,7 +206,6 @@ export class LayoutCard {
|
|
|
75
206
|
return Array.from(new Set(words));
|
|
76
207
|
}
|
|
77
208
|
getTemplatePattern(name) {
|
|
78
|
-
console.warn("getTemplatePattern", { name: name });
|
|
79
209
|
if (this.templateMap.has(name) === false && name !== "custom-template") {
|
|
80
210
|
return '"a"';
|
|
81
211
|
}
|
|
@@ -97,6 +227,26 @@ export class LayoutCard {
|
|
|
97
227
|
}
|
|
98
228
|
return "card_box";
|
|
99
229
|
}
|
|
230
|
+
/**
|
|
231
|
+
* When the card itself inherits a title prop from a page, write the
|
|
232
|
+
* resolved value back to the host element's attribute so that child
|
|
233
|
+
* vis components (bn-table, bn-chart-*) performing their own DOM walk
|
|
234
|
+
* read the actual value instead of the literal "inherited-page" keyword.
|
|
235
|
+
*/
|
|
236
|
+
reflectInheritedAttrs() {
|
|
237
|
+
const mappings = [
|
|
238
|
+
{ prop: "titleScenarios", attr: "title-scenarios" },
|
|
239
|
+
{ prop: "titleVariances", attr: "title-variances" },
|
|
240
|
+
{ prop: "titleOrder", attr: "title-order" },
|
|
241
|
+
{ prop: "titleOrderDirection", attr: "title-order-direction" },
|
|
242
|
+
];
|
|
243
|
+
for (const { prop, attr } of mappings) {
|
|
244
|
+
const resolved = this.resolveInherited(prop, this[prop]);
|
|
245
|
+
if (resolved !== undefined) {
|
|
246
|
+
this.element.setAttribute(attr, resolved);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
100
250
|
prepareTitleImage(value) {
|
|
101
251
|
if (value == null || value === "") {
|
|
102
252
|
return "";
|
|
@@ -109,11 +259,12 @@ export class LayoutCard {
|
|
|
109
259
|
return assetsState[value] || value;
|
|
110
260
|
}
|
|
111
261
|
render() {
|
|
262
|
+
var _a, _b, _c, _d;
|
|
112
263
|
const style = this.getLayoutStyle();
|
|
113
264
|
const arrOfSlots = this.extractSlotNames(style["grid-template-areas"]);
|
|
114
265
|
return (
|
|
115
266
|
// @ts-ignore
|
|
116
|
-
h("bn-card", { key: '
|
|
267
|
+
h("bn-card", { key: '1dfcca605e2780bdfbb0108a5f34ff1259ecd666', styles: this.styles, class: this.setCardClass() }, h("div", { key: '7bdf2d4d7ddc82af78fe932a2af866b3b17d8b4d', class: "cardtitle" }, h("bn-title", { key: '799fa36d7368bbc2bc446f01fa3a46c8e363dcd0', namespace: this.titleNamespace, "business-unit": this.titleBusinessUnit, scenarios: (_a = this.resolveInherited("titleScenarios", this.titleScenarios)) !== null && _a !== void 0 ? _a : this.titleScenarios, variances: (_b = this.resolveInherited("titleVariances", this.titleVariances)) !== null && _b !== void 0 ? _b : this.titleVariances, order: (_c = this.resolveInherited("titleOrder", this.titleOrder)) !== null && _c !== void 0 ? _c : this.titleOrder, "order-direction": (_d = this.resolveInherited("titleOrderDirection", this.titleOrderDirection)) !== null && _d !== void 0 ? _d : this.titleOrderDirection, measures: this.titleMeasures, "date-start": this.titleDateStart, "date-end": this.titleDateEnd, "date-format": this.titleDateFormat, "date-link": this.titleDateLink }), this.titleImage != null && this.titleImage !== "" ? (h("img", { class: "image", src: this.prepareTitleImage(this.titleImage) })) : ("")), h("bn-body", { key: '9743d34c350907dfe0561444cd548d5884224f3a' }, h("div", { key: 'a622ae652dfefaac4a86d1f71a05fe776a811430', style: style }, this.getSlots(arrOfSlots))), h("bn-footer", { key: 'ebffcd673c94d7666fe6b46216792784f3dfb988', text: this.footerText, "page-number": 0, "display-page-number": "false" })));
|
|
117
268
|
}
|
|
118
269
|
static get is() { return "bn-layout-card"; }
|
|
119
270
|
static get encapsulation() { return "shadow"; }
|
|
@@ -141,7 +292,7 @@ export class LayoutCard {
|
|
|
141
292
|
"optional": true,
|
|
142
293
|
"docs": {
|
|
143
294
|
"tags": [],
|
|
144
|
-
"text": ""
|
|
295
|
+
"text": "JSON string of component-style overrides passed through to the inner\n`<bn-card>` element. Typically set via a `ComponentStyle` manifest\nrather than directly on the component."
|
|
145
296
|
},
|
|
146
297
|
"getter": false,
|
|
147
298
|
"setter": false,
|
|
@@ -159,8 +310,11 @@ export class LayoutCard {
|
|
|
159
310
|
"required": false,
|
|
160
311
|
"optional": false,
|
|
161
312
|
"docs": {
|
|
162
|
-
"tags": [
|
|
163
|
-
|
|
313
|
+
"tags": [{
|
|
314
|
+
"name": "example",
|
|
315
|
+
"text": "<bn-layout-card title-image=\"company_logo\"></bn-layout-card>"
|
|
316
|
+
}],
|
|
317
|
+
"text": "URL or asset name of the image displayed next to the card title.\nThe value is resolved via the scoped assets store: if it matches a\nregistered asset name, the stored URL is used; otherwise the raw value\nis treated as a URL. The deprecated `asset:` prefix is still supported\nfor backward compatibility.\n<br /><br />\nIf empty, the title image is omitted."
|
|
164
318
|
},
|
|
165
319
|
"getter": false,
|
|
166
320
|
"setter": false,
|
|
@@ -179,8 +333,11 @@ export class LayoutCard {
|
|
|
179
333
|
"required": false,
|
|
180
334
|
"optional": false,
|
|
181
335
|
"docs": {
|
|
182
|
-
"tags": [
|
|
183
|
-
|
|
336
|
+
"tags": [{
|
|
337
|
+
"name": "example",
|
|
338
|
+
"text": "<bn-layout-card title-business-unit=\"Sales\"></bn-layout-card>"
|
|
339
|
+
}],
|
|
340
|
+
"text": "Name of the business unit displayed in the title header row.\nIf empty, the business unit row is omitted."
|
|
184
341
|
},
|
|
185
342
|
"getter": false,
|
|
186
343
|
"setter": false,
|
|
@@ -200,7 +357,7 @@ export class LayoutCard {
|
|
|
200
357
|
"optional": true,
|
|
201
358
|
"docs": {
|
|
202
359
|
"tags": [],
|
|
203
|
-
"text": ""
|
|
360
|
+
"text": "List of scenarios displayed in the title header.\n<br /><br />\nComma-separated string or omitted. If empty, the scenarios row is omitted.\n<br /><br />\nvalues:<br />\n```ac // fc // py // pl```"
|
|
204
361
|
},
|
|
205
362
|
"getter": false,
|
|
206
363
|
"setter": false,
|
|
@@ -219,7 +376,7 @@ export class LayoutCard {
|
|
|
219
376
|
"optional": true,
|
|
220
377
|
"docs": {
|
|
221
378
|
"tags": [],
|
|
222
|
-
"text": ""
|
|
379
|
+
"text": "List of variances calculated from the given scenarios.\nThe scenarios used in the variances must also be defined in\nthe `titleScenarios` property. The variance is defined as\n(ScenarioA \u2212 ScenarioB). The pos/neg/neu postfix defines\nwhich direction is considered \"good\".\n<br /><br />\nIf empty, variance indicators are hidden.\n<br /><br />\npattern:<br />\n```d<scenarioB>_<scenarioA>_[pos/neg/neu]```"
|
|
223
380
|
},
|
|
224
381
|
"getter": false,
|
|
225
382
|
"setter": false,
|
|
@@ -238,7 +395,7 @@ export class LayoutCard {
|
|
|
238
395
|
"optional": false,
|
|
239
396
|
"docs": {
|
|
240
397
|
"tags": [],
|
|
241
|
-
"text": ""
|
|
398
|
+
"text": "Primary column on which the order direction is applied.\n<br /><br />\nvalues:<br />\n```category // categoryindex // rowgroup // rowgroupindex // ac // fc // py // pl```"
|
|
242
399
|
},
|
|
243
400
|
"getter": false,
|
|
244
401
|
"setter": false,
|
|
@@ -258,7 +415,7 @@ export class LayoutCard {
|
|
|
258
415
|
"optional": false,
|
|
259
416
|
"docs": {
|
|
260
417
|
"tags": [],
|
|
261
|
-
"text": ""
|
|
418
|
+
"text": "Sorting order direction for the column specified by `titleOrder`.\n<br /><br />\nvalues:<br />\n```asc // desc```"
|
|
262
419
|
},
|
|
263
420
|
"getter": false,
|
|
264
421
|
"setter": false,
|
|
@@ -277,8 +434,11 @@ export class LayoutCard {
|
|
|
277
434
|
"required": false,
|
|
278
435
|
"optional": true,
|
|
279
436
|
"docs": {
|
|
280
|
-
"tags": [
|
|
281
|
-
|
|
437
|
+
"tags": [{
|
|
438
|
+
"name": "example",
|
|
439
|
+
"text": "<bn-layout-card title-measures='[{\"name\":\"Revenue\",\"unit\":\"mEUR\"}]'></bn-layout-card>"
|
|
440
|
+
}],
|
|
441
|
+
"text": "Array of measure objects with `name` and `unit` displayed in the title.\nPassed as a JSON string. If all units are the same, redundant units are\nreduced and names concatenated. If empty, the measure row is omitted."
|
|
282
442
|
},
|
|
283
443
|
"getter": false,
|
|
284
444
|
"setter": false,
|
|
@@ -297,7 +457,7 @@ export class LayoutCard {
|
|
|
297
457
|
"optional": true,
|
|
298
458
|
"docs": {
|
|
299
459
|
"tags": [],
|
|
300
|
-
"text": ""
|
|
460
|
+
"text": "Start date displayed in the title date row.\nAccepts `yyyy-MM-dd` (e.g. `2024-01-01`) or ISO 8601 datetime\n(e.g. `2024-01-01T14:30:00Z`)."
|
|
301
461
|
},
|
|
302
462
|
"getter": false,
|
|
303
463
|
"setter": false,
|
|
@@ -316,7 +476,7 @@ export class LayoutCard {
|
|
|
316
476
|
"optional": true,
|
|
317
477
|
"docs": {
|
|
318
478
|
"tags": [],
|
|
319
|
-
"text": ""
|
|
479
|
+
"text": "End date displayed in the title date row.\nAccepts `yyyy-MM-dd` (e.g. `2024-12-31`) or ISO 8601 datetime\n(e.g. `2024-12-31T23:59:59Z`)."
|
|
320
480
|
},
|
|
321
481
|
"getter": false,
|
|
322
482
|
"setter": false,
|
|
@@ -335,7 +495,7 @@ export class LayoutCard {
|
|
|
335
495
|
"optional": false,
|
|
336
496
|
"docs": {
|
|
337
497
|
"tags": [],
|
|
338
|
-
"text": ""
|
|
498
|
+
"text": "Date display format used in the title row.\n<br /><br />\nvalues:<br />\n```year // quarter // month // week // day // time // auto // none```\n<br /><br />\n`year`: YYYY, `quarter`: Q[Q] YYYY, `month`: MMM YYYY,\n`week`: [KW]WW YYYY, `day`: DD.MM.YYYY, `time`: DD.MM.YYYY HH:mm:ss,\n`auto`: automatic detection, `none`: DD.MM.YYYY."
|
|
339
499
|
},
|
|
340
500
|
"getter": false,
|
|
341
501
|
"setter": false,
|
|
@@ -355,7 +515,7 @@ export class LayoutCard {
|
|
|
355
515
|
"optional": false,
|
|
356
516
|
"docs": {
|
|
357
517
|
"tags": [],
|
|
358
|
-
"text": ""
|
|
518
|
+
"text": "Format in which the start and end dates are linked in the title.\nIf set to `none` a plain date is shown.\n<br /><br />\nvalues:<br />\n```avg // interval // cum // start // end // ytd // ytg // mat // none```\n<br /><br />\n`avg`: \u00D8[DATE], `interval`: [DATE]..[DATE2], `start`: .[DATE],\n`end`: [DATE]., `ytd`: _[DATE], `ytg`: [DATE]_, `cum`: [DATE]_[DATE2],\n`mat`: ~[DATE], `none`: [DATE]."
|
|
359
519
|
},
|
|
360
520
|
"getter": false,
|
|
361
521
|
"setter": false,
|
|
@@ -375,7 +535,7 @@ export class LayoutCard {
|
|
|
375
535
|
"optional": false,
|
|
376
536
|
"docs": {
|
|
377
537
|
"tags": [],
|
|
378
|
-
"text": ""
|
|
538
|
+
"text": "Namespace used for title translations via the internationalization store."
|
|
379
539
|
},
|
|
380
540
|
"getter": false,
|
|
381
541
|
"setter": false,
|
|
@@ -395,7 +555,7 @@ export class LayoutCard {
|
|
|
395
555
|
"optional": true,
|
|
396
556
|
"docs": {
|
|
397
557
|
"tags": [],
|
|
398
|
-
"text": ""
|
|
558
|
+
"text": "Text displayed in the card footer. If empty, the footer text is omitted."
|
|
399
559
|
},
|
|
400
560
|
"getter": false,
|
|
401
561
|
"setter": false,
|
|
@@ -414,8 +574,11 @@ export class LayoutCard {
|
|
|
414
574
|
"required": false,
|
|
415
575
|
"optional": false,
|
|
416
576
|
"docs": {
|
|
417
|
-
"tags": [
|
|
418
|
-
|
|
577
|
+
"tags": [{
|
|
578
|
+
"name": "example",
|
|
579
|
+
"text": "<bn-layout-card card-layout=\"split-horizontal\"></bn-layout-card>"
|
|
580
|
+
}],
|
|
581
|
+
"text": "Layout mode that controls how child components are arranged inside\nthe card body using CSS Grid.\n<br /><br />\nvalues:<br />\n```full // split-vertical // split-horizontal // 2x2 // 3x3 // 4x4 // 1-over-2 // 1-over-3 // 2-over-1 // 3-over-1 // custom-template```\n<br /><br />\n`full`: single slot. `split-vertical`: two side-by-side slots.\n`split-horizontal`: two stacked slots. `NxN`: equal grid.\n`1-over-2`: one full-width slot on top, two below. `custom-template`:\nuses the `cardCustomTemplate` CSS grid-template-areas string."
|
|
419
582
|
},
|
|
420
583
|
"getter": false,
|
|
421
584
|
"setter": false,
|
|
@@ -434,8 +597,11 @@ export class LayoutCard {
|
|
|
434
597
|
"required": false,
|
|
435
598
|
"optional": false,
|
|
436
599
|
"docs": {
|
|
437
|
-
"tags": [
|
|
438
|
-
|
|
600
|
+
"tags": [{
|
|
601
|
+
"name": "example",
|
|
602
|
+
"text": "<bn-layout-card card-layout=\"custom-template\"\n card-custom-template='\"a a\" \"b c\"'></bn-layout-card>"
|
|
603
|
+
}],
|
|
604
|
+
"text": "CSS `grid-template-areas` string used when `cardLayout` is set to\n`custom-template`. Each quoted row defines a grid row; letters map to\nslot indices in order of first appearance."
|
|
439
605
|
},
|
|
440
606
|
"getter": false,
|
|
441
607
|
"setter": false,
|
|
@@ -455,7 +621,7 @@ export class LayoutCard {
|
|
|
455
621
|
"optional": false,
|
|
456
622
|
"docs": {
|
|
457
623
|
"tags": [],
|
|
458
|
-
"text": ""
|
|
624
|
+
"text": "Gap between grid cells in pixels."
|
|
459
625
|
},
|
|
460
626
|
"getter": false,
|
|
461
627
|
"setter": false,
|
|
@@ -475,7 +641,7 @@ export class LayoutCard {
|
|
|
475
641
|
"optional": false,
|
|
476
642
|
"docs": {
|
|
477
643
|
"tags": [],
|
|
478
|
-
"text": ""
|
|
644
|
+
"text": "When `true`, the card shrinks to fit its content (`fit-content`)\nfor both width and height. When `false`, the card stretches to\nfill its parent (`100%`)."
|
|
479
645
|
},
|
|
480
646
|
"getter": false,
|
|
481
647
|
"setter": false,
|
|
@@ -495,7 +661,7 @@ export class LayoutCard {
|
|
|
495
661
|
"optional": false,
|
|
496
662
|
"docs": {
|
|
497
663
|
"tags": [],
|
|
498
|
-
"text": ""
|
|
664
|
+
"text": "Whether to display a visible border around the card."
|
|
499
665
|
},
|
|
500
666
|
"getter": false,
|
|
501
667
|
"setter": false,
|