@proximus/lavender-light 2.0.0-alpha.123 → 2.0.0-alpha.124
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.
|
@@ -5613,7 +5613,7 @@ $megaDropdowns_get = function() {
|
|
|
5613
5613
|
if (!customElements.get("px-header")) {
|
|
5614
5614
|
customElements.define("px-header", Header);
|
|
5615
5615
|
}
|
|
5616
|
-
const contentHeaderCss =
|
|
5616
|
+
const contentHeaderCss = ':host{--min-height--mobile: 15.625rem;--min-height--tablet: 17.5rem;--min-height--laptop: 17.5rem;--min-height--desktop: 17.5rem}:host,:host>*{display:block;box-sizing:border-box}.content-header{position:relative;z-index:0}[min-height] .content-header-content{min-height:calc(var(--min-height--mobile) - (var(--px-spacing-l-mobile) * 2))}.content-header-content{display:flex;flex-direction:column;z-index:2;position:relative;box-sizing:border-box}.content-header-content ::slotted([slot="patch"]){margin-top:var(--px-spacing-l-mobile)}.contrast-helper{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;pointer-events:none;display:none}[contrast-helper-gradient] .contrast-helper{display:block;background-image:linear-gradient(90deg,#fff 23.43%,#fff0 81.69%)}[inverted] :is([contrast-helper-gradient] .contrast-helper){background-image:linear-gradient(90deg,#000 23.43%,#0000 81.69%)}[contrast-helper-overlay] .contrast-helper{display:block;background-color:#ffffffb3}[inverted] :is([contrast-helper-overlay] .contrast-helper){background-color:#0006}@media screen and (min-width: 48rem){.content-header-content ::slotted([slot="patch"]){flex-shrink:0}.content-header-content ::slotted([slot="patch"]),.content-header-content ::slotted([slot="patch-description"]){margin-top:var(--px-spacing-l-tablet)}[min-height] .content-header-content{min-height:calc(var(--min-height--tablet) - (var(--px-spacing-l-tablet) * 2))}}@media screen and (min-width: 64.0625rem){.content-header-content ::slotted([slot="patch"]),.content-header-content ::slotted([slot="patch-description"]){margin-top:var(--px-spacing-l-laptop)}[min-height] .content-header-content{min-height:calc(var(--min-height--laptop) - (var(--px-spacing-l-laptop) * 2))}}@media screen and (min-width: 90.0625rem){.content-header-content ::slotted([slot="patch"]),.content-header-content ::slotted([slot="patch-description"]){margin-top:var(--px-spacing-l-desktop)}[min-height] .content-header-content{min-height:calc(var(--min-height--desktop) - (var(--px-spacing-l-desktop) * 2))}}';
|
|
5617
5617
|
const gridCss = ":host{display:block;--grid-cols: initial;--grid-cols--mobile: initial;--grid-cols--tablet: initial;--grid-cols--laptop: initial;--grid-cols--desktop: initial;--justify-content: initial;--justify-items: initial;--align-content: initial;--align-items: initial}.grid{display:grid;grid-template-columns:repeat(var(--grid-cols),minmax(0,1fr));justify-content:var(--justify-content);justify-items:var(--justify-items);align-content:var(--align-content);align-items:var(--align-items)}.justify-content-normal{justify-content:normal}.justify-content-start{justify-content:start}.justify-content-end{justify-content:end}.justify-content-center{justify-content:center}.justify-content-space-between{justify-content:space-between}.justify-content-space-around{justify-content:space-around}.justify-content-space-evenly{justify-content:space-evenly}.justify-content-stretch{justify-content:stretch}.justify-items-start{justify-items:start}.justify-items-end{justify-items:end}.justify-items-center{justify-items:center}.justify-items-stretch{justify-items:stretch}.align-content-normal{align-content:normal}.align-content-start{align-content:start}.align-content-end{align-content:end}.align-content-center{align-content:center}.align-content-space-between{align-content:space-between}.align-content-space-around{align-content:space-around}.align-content-space-evenly{align-content:space-evenly}.align-content-stretch{align-content:stretch}.align-items-start{align-items:start}.align-items-end{align-items:end}.align-items-center{align-items:center}.align-items-stretch{align-items:stretch}@media screen and (max-width: 47.938rem){.grid{grid-template-columns:repeat(var(--grid-cols--mobile, var(--grid-cols)),minmax(0,1fr))}.justify-content-normal-mobile{justify-content:normal}.justify-content-start-mobile{justify-content:start}.justify-content-end-mobile{justify-content:end}.justify-content-center-mobile{justify-content:center}.justify-content-space-between-mobile{justify-content:space-between}.justify-content-space-around-mobile{justify-content:space-around}.justify-content-space-evenly-mobile{justify-content:space-evenly}.justify-content-stretch-mobile{justify-content:stretch}.justify-items-start-mobile{justify-items:start}.justify-items-end-mobile{justify-items:end}.justify-items-center-mobile{justify-items:center}.justify-items-stretch-mobile{justify-items:stretch}.align-content-normal-mobile{align-content:normal}.align-content-start-mobile{align-content:start}.align-content-end-mobile{align-content:end}.align-content-center-mobile{align-content:center}.align-content-space-between-mobile{align-content:space-between}.align-content-space-around-mobile{align-content:space-around}.align-content-space-evenly-mobile{align-content:space-evenly}.align-content-stretch-mobile{align-content:stretch}.align-items-start-mobile{align-items:start}.align-items-end-mobile{align-items:end}.align-items-center-mobile{align-items:center}.align-items-stretch-mobile{align-items:stretch}}@media screen and (min-width: 48rem) and (max-width: 64rem){.grid{grid-template-columns:repeat(var(--grid-cols--tablet, var(--grid-cols)),minmax(0,1fr))}.justify-content-normal-tablet{justify-content:normal}.justify-content-start-tablet{justify-content:start}.justify-content-end-tablet{justify-content:end}.justify-content-center-tablet{justify-content:center}.justify-content-space-between-tablet{justify-content:space-between}.justify-content-space-around-tablet{justify-content:space-around}.justify-content-space-evenly-tablet{justify-content:space-evenly}.justify-content-stretch-tablet{justify-content:stretch}.justify-items-start-tablet{justify-items:start}.justify-items-end-tablet{justify-items:end}.justify-items-center-tablet{justify-items:center}.justify-items-stretch-tablet{justify-items:stretch}.align-content-normal-tablet{align-content:normal}.align-content-start-tablet{align-content:start}.align-content-end-tablet{align-content:end}.align-content-center-tablet{align-content:center}.align-content-space-between-tablet{align-content:space-between}.align-content-space-around-tablet{align-content:space-around}.align-content-space-evenly-tablet{align-content:space-evenly}.align-content-stretch-tablet{align-content:stretch}.align-items-start-tablet{align-items:start}.align-items-end-tablet{align-items:end}.align-items-center-tablet{align-items:center}.align-items-stretch-tablet{align-items:stretch}}@media screen and (min-width: 64.0625rem){.grid{grid-template-columns:repeat(var(--grid-cols--laptop, var(--grid-cols)),minmax(0,1fr))}.justify-content-normal-laptop{justify-content:normal}.justify-content-start-laptop{justify-content:start}.justify-content-end-laptop{justify-content:end}.justify-content-center-laptop{justify-content:center}.justify-content-space-between-laptop{justify-content:space-between}.justify-content-space-around-laptop{justify-content:space-around}.justify-content-space-evenly-laptop{justify-content:space-evenly}.justify-content-stretch-laptop{justify-content:stretch}.justify-items-start-laptop{justify-items:start}.justify-items-end-laptop{justify-items:end}.justify-items-center-laptop{justify-items:center}.justify-items-stretch-laptop{justify-items:stretch}.align-content-normal-laptop{align-content:normal}.align-content-start-laptop{align-content:start}.align-content-end-laptop{align-content:end}.align-content-center-laptop{align-content:center}.align-content-space-between-laptop{align-content:space-between}.align-content-space-around-laptop{align-content:space-around}.align-content-space-evenly-laptop{align-content:space-evenly}.align-content-stretch-laptop{align-content:stretch}.align-items-start-laptop{align-items:start}.align-items-end-laptop{align-items:end}.align-items-center-laptop{align-items:center}.align-items-stretch-laptop{align-items:stretch}}";
|
|
5618
5618
|
const gridStyles = new CSSStyleSheet();
|
|
5619
5619
|
gridStyles.replaceSync(gridCss);
|
|
@@ -5976,6 +5976,10 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
5976
5976
|
<px-h1><slot></slot></px-h1>
|
|
5977
5977
|
<slot name="subtitle"></slot>
|
|
5978
5978
|
</px-vstack>
|
|
5979
|
+
<px-stack gap="s" direction="row" direction--mobile="column">
|
|
5980
|
+
<slot name="patch" shrink></slot>
|
|
5981
|
+
<slot name="patch-description"></slot>
|
|
5982
|
+
</px-stack>
|
|
5979
5983
|
</div>
|
|
5980
5984
|
</px-container>
|
|
5981
5985
|
</px-grid>
|
|
@@ -6001,38 +6005,22 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
6001
6005
|
"has-gridding--mobile",
|
|
6002
6006
|
"has-gridding--tablet",
|
|
6003
6007
|
"has-gridding--laptop",
|
|
6008
|
+
"has-gridding--desktop",
|
|
6004
6009
|
"inverted"
|
|
6005
6010
|
];
|
|
6006
6011
|
}
|
|
6007
6012
|
connectedCallback() {
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
`<px-stack gap="s" direction="row" direction--mobile="column">
|
|
6014
|
-
<slot name="patch" shrink></slot>
|
|
6015
|
-
<slot name="patch-description"></slot>
|
|
6016
|
-
</px-stack>`
|
|
6017
|
-
);
|
|
6018
|
-
}
|
|
6019
|
-
if (this.$subtitleSlot) {
|
|
6020
|
-
this.$subtitleSlot.setAttribute("variant", "subtitle");
|
|
6021
|
-
}
|
|
6022
|
-
if (this.$patchDescriptionSlot) {
|
|
6023
|
-
if (this.$patchDescriptionSlot.localName === "px-p") {
|
|
6024
|
-
this.$patchDescriptionSlot.setAttribute("variant", "default");
|
|
6025
|
-
}
|
|
6026
|
-
if (this.$patchDescriptionSlot.localName === "px-p" || this.$patchDescriptionSlot.localName === "px-span") {
|
|
6027
|
-
this.$patchDescriptionSlot.setAttribute("font-size", "body-l");
|
|
6028
|
-
this.$patchDescriptionSlot.removeAttribute("font-weight");
|
|
6029
|
-
this.$patchDescriptionSlot.removeAttribute("color");
|
|
6030
|
-
}
|
|
6031
|
-
if (this.$patchDescriptionSlot.localName === "px-price") {
|
|
6032
|
-
this.$patchDescriptionSlot.setAttribute("size", "m");
|
|
6033
|
-
}
|
|
6034
|
-
}
|
|
6013
|
+
var _a, _b;
|
|
6014
|
+
this.styleSubtitleSlot = this.styleSubtitleSlot.bind(this);
|
|
6015
|
+
this.stylepatchDescriptionSlotted = this.stylepatchDescriptionSlotted.bind(this);
|
|
6016
|
+
this.styleSubtitleSlot();
|
|
6017
|
+
this.stylepatchDescriptionSlotted();
|
|
6035
6018
|
this.createGridding();
|
|
6019
|
+
(_a = this.$subtitleSlot) == null ? void 0 : _a.addEventListener("slotchange", this.styleSubtitleSlot);
|
|
6020
|
+
(_b = this.$patchDescriptionSlot) == null ? void 0 : _b.addEventListener(
|
|
6021
|
+
"slotchange",
|
|
6022
|
+
this.stylepatchDescriptionSlotted
|
|
6023
|
+
);
|
|
6036
6024
|
}
|
|
6037
6025
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
|
6038
6026
|
if (oldValue !== newValue) {
|
|
@@ -6065,6 +6053,7 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
6065
6053
|
case "has-gridding--mobile":
|
|
6066
6054
|
case "has-gridding--tablet":
|
|
6067
6055
|
case "has-gridding--laptop":
|
|
6056
|
+
case "has-gridding--desktop":
|
|
6068
6057
|
this.createGridding(newValue);
|
|
6069
6058
|
break;
|
|
6070
6059
|
case "inverted":
|
|
@@ -6082,6 +6071,37 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
6082
6071
|
}
|
|
6083
6072
|
}
|
|
6084
6073
|
}
|
|
6074
|
+
disconnectedCallback() {
|
|
6075
|
+
var _a, _b;
|
|
6076
|
+
(_a = this.$subtitleSlot) == null ? void 0 : _a.removeEventListener(
|
|
6077
|
+
"slotchange",
|
|
6078
|
+
this.styleSubtitleSlot
|
|
6079
|
+
);
|
|
6080
|
+
(_b = this.$patchDescriptionSlot) == null ? void 0 : _b.removeEventListener(
|
|
6081
|
+
"slotchange",
|
|
6082
|
+
this.stylepatchDescriptionSlotted
|
|
6083
|
+
);
|
|
6084
|
+
}
|
|
6085
|
+
stylepatchDescriptionSlotted() {
|
|
6086
|
+
if (this.$patchDescriptionSlotted) {
|
|
6087
|
+
if (this.$patchDescriptionSlotted.localName === "px-p") {
|
|
6088
|
+
this.$patchDescriptionSlotted.setAttribute("variant", "default");
|
|
6089
|
+
}
|
|
6090
|
+
if (this.$patchDescriptionSlotted.localName === "px-p" || this.$patchDescriptionSlotted.localName === "px-span") {
|
|
6091
|
+
this.$patchDescriptionSlotted.setAttribute("font-size", "body-l");
|
|
6092
|
+
this.$patchDescriptionSlotted.removeAttribute("font-weight");
|
|
6093
|
+
this.$patchDescriptionSlotted.removeAttribute("color");
|
|
6094
|
+
}
|
|
6095
|
+
if (this.$patchDescriptionSlotted.localName === "px-price") {
|
|
6096
|
+
this.$patchDescriptionSlotted.setAttribute("size", "m");
|
|
6097
|
+
}
|
|
6098
|
+
}
|
|
6099
|
+
}
|
|
6100
|
+
styleSubtitleSlot() {
|
|
6101
|
+
if (this.$subtitleSlotted) {
|
|
6102
|
+
this.$subtitleSlotted.setAttribute("variant", "subtitle");
|
|
6103
|
+
}
|
|
6104
|
+
}
|
|
6085
6105
|
createGridding(value) {
|
|
6086
6106
|
const breakpoints = [
|
|
6087
6107
|
{ prop: "hasGridding", gridAttr: "grid-cols", attr: "col-span" },
|
|
@@ -6099,6 +6119,11 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
6099
6119
|
prop: "hasGriddingLaptop",
|
|
6100
6120
|
gridAttr: "grid-cols--laptop",
|
|
6101
6121
|
attr: "col-span--laptop"
|
|
6122
|
+
},
|
|
6123
|
+
{
|
|
6124
|
+
prop: "hasGriddingDesktop",
|
|
6125
|
+
gridAttr: "grid-cols--desktop",
|
|
6126
|
+
attr: "col-span--desktop"
|
|
6102
6127
|
}
|
|
6103
6128
|
];
|
|
6104
6129
|
const spanElement = this.shadowRoot.querySelector(
|
|
@@ -6128,9 +6153,21 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
6128
6153
|
return this.shadowRoot.querySelector("px-h1");
|
|
6129
6154
|
}
|
|
6130
6155
|
get $subtitleSlot() {
|
|
6156
|
+
var _a;
|
|
6157
|
+
return (_a = this.shadowRoot) == null ? void 0 : _a.querySelector(
|
|
6158
|
+
'slot[name="subtitle"]'
|
|
6159
|
+
);
|
|
6160
|
+
}
|
|
6161
|
+
get $subtitleSlotted() {
|
|
6131
6162
|
return this.querySelector('[slot="subtitle"]');
|
|
6132
6163
|
}
|
|
6133
6164
|
get $patchDescriptionSlot() {
|
|
6165
|
+
var _a;
|
|
6166
|
+
return (_a = this.shadowRoot) == null ? void 0 : _a.querySelector(
|
|
6167
|
+
'slot[name="patch-description"]'
|
|
6168
|
+
);
|
|
6169
|
+
}
|
|
6170
|
+
get $patchDescriptionSlotted() {
|
|
6134
6171
|
return this.querySelector('[slot="patch-description"]');
|
|
6135
6172
|
}
|
|
6136
6173
|
get $overlapSlot() {
|
|
@@ -6247,6 +6284,16 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
6247
6284
|
this.removeAttribute("has-gridding--laptop");
|
|
6248
6285
|
}
|
|
6249
6286
|
}
|
|
6287
|
+
get hasGriddingDesktop() {
|
|
6288
|
+
return this.hasAttribute("has-gridding--desktop");
|
|
6289
|
+
}
|
|
6290
|
+
set hasGriddingDesktop(value) {
|
|
6291
|
+
if (value) {
|
|
6292
|
+
this.setAttribute("has-gridding--desktop", "");
|
|
6293
|
+
} else {
|
|
6294
|
+
this.removeAttribute("has-gridding--desktop");
|
|
6295
|
+
}
|
|
6296
|
+
}
|
|
6250
6297
|
get inverted() {
|
|
6251
6298
|
return this.hasAttribute("inverted");
|
|
6252
6299
|
}
|