@proximus/lavender-light 1.4.6-beta.1 → 1.4.7-alpha.2
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.
|
@@ -5697,20 +5697,20 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
5697
5697
|
}
|
|
5698
5698
|
createGridding(value) {
|
|
5699
5699
|
const breakpoints = [
|
|
5700
|
-
{ prop: "hasGridding",
|
|
5700
|
+
{ prop: "hasGridding", gridAttr: "grid-cols", attr: "col-span" },
|
|
5701
5701
|
{
|
|
5702
5702
|
prop: "hasGriddingMobile",
|
|
5703
|
-
|
|
5703
|
+
gridAttr: "grid-cols--mobile",
|
|
5704
5704
|
attr: "col-span--mobile"
|
|
5705
5705
|
},
|
|
5706
5706
|
{
|
|
5707
5707
|
prop: "hasGriddingTablet",
|
|
5708
|
-
|
|
5708
|
+
gridAttr: "grid-cols--tablet",
|
|
5709
5709
|
attr: "col-span--tablet"
|
|
5710
5710
|
},
|
|
5711
5711
|
{
|
|
5712
5712
|
prop: "hasGriddingLaptop",
|
|
5713
|
-
|
|
5713
|
+
gridAttr: "grid-cols--laptop",
|
|
5714
5714
|
attr: "col-span--laptop"
|
|
5715
5715
|
}
|
|
5716
5716
|
];
|
|
@@ -5718,16 +5718,16 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
5718
5718
|
"px-grid > px-container"
|
|
5719
5719
|
);
|
|
5720
5720
|
if (value !== null) {
|
|
5721
|
-
breakpoints.forEach(({ prop,
|
|
5721
|
+
breakpoints.forEach(({ prop, gridAttr, attr }) => {
|
|
5722
5722
|
if (this[prop]) {
|
|
5723
|
-
this.$grid
|
|
5724
|
-
spanElement.setAttribute(attr, "2");
|
|
5723
|
+
this.$grid.setAttribute(gridAttr, "3");
|
|
5724
|
+
spanElement == null ? void 0 : spanElement.setAttribute(attr, "2");
|
|
5725
5725
|
}
|
|
5726
5726
|
});
|
|
5727
5727
|
} else {
|
|
5728
|
-
breakpoints.forEach(({
|
|
5729
|
-
this.$grid
|
|
5730
|
-
spanElement.
|
|
5728
|
+
breakpoints.forEach(({ gridAttr, attr }) => {
|
|
5729
|
+
this.$grid.setAttribute(gridAttr, "1");
|
|
5730
|
+
spanElement == null ? void 0 : spanElement.setAttribute(attr, "1");
|
|
5731
5731
|
});
|
|
5732
5732
|
}
|
|
5733
5733
|
}
|