@proximus/lavender-light 1.4.10-beta.3 → 1.4.10-beta.4
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.
|
@@ -3065,6 +3065,7 @@ class Icon extends WithExtraAttributes {
|
|
|
3065
3065
|
}
|
|
3066
3066
|
}
|
|
3067
3067
|
connectedCallback() {
|
|
3068
|
+
var _a;
|
|
3068
3069
|
this.role = "img";
|
|
3069
3070
|
const iconSet = document.querySelectorAll("px-icon-set");
|
|
3070
3071
|
if (!iconSet) {
|
|
@@ -3087,6 +3088,11 @@ class Icon extends WithExtraAttributes {
|
|
|
3087
3088
|
__privateGet(this, _internals).ariaHidden = "true";
|
|
3088
3089
|
this.ariaHidden = "true";
|
|
3089
3090
|
}
|
|
3091
|
+
if (((_a = this.parentElement) == null ? void 0 : _a.localName) === "px-a" && this.slot !== "before" && this.slot !== "after") {
|
|
3092
|
+
if (!this.color) {
|
|
3093
|
+
this.setAttribute("color", "inherit");
|
|
3094
|
+
}
|
|
3095
|
+
}
|
|
3090
3096
|
}
|
|
3091
3097
|
updateAttribute(attrName, oldValue, newValue, attrValues) {
|
|
3092
3098
|
if (oldValue !== null && oldValue !== "") {
|
|
@@ -3575,7 +3581,7 @@ let Paragraph = _Paragraph;
|
|
|
3575
3581
|
if (!customElements.get("px-p")) {
|
|
3576
3582
|
customElements.define("px-p", Paragraph);
|
|
3577
3583
|
}
|
|
3578
|
-
const styles$3 = '*{box-sizing:border-box}#container{display:flex;flex-wrap:nowrap;font-family:var(--px-font-family);font-size:var(--px-font-size-base);color:var(--px-color-text-neutral-default);width:inherit;border-radius:var(--px-radius-main);background-color:var(--px-color-background-surface-default);overflow:hidden}#container.info{border-left:5px var(--px-color-icon-brand-default) solid}#container.success{border-left:5px var(--px-color-icon-purpose-success-default) solid}#container.warning{border-left:5px var(--px-color-icon-purpose-warning-default) solid}#container.error{border-left:5px var(--px-color-icon-purpose-error-default) solid}#container.has-close-button #icon-container{max-width:calc(100% - (var(--px-size-m) + var(--px-spacing-s-mobile)))}#content-container{padding:var(--px-padding-m-mobile);flex-grow:1}#media-container{display:none}::slotted(px-button-icon[slot="close-button"]){position:absolute;top:var(--px-padding-m-mobile);right:var(--px-padding-m-mobile)}dialog{background:transparent;border-radius:0;box-shadow:none;padding:0;border:0;box-sizing:border-box;transform:scale(.95);animation:modalIn .3s ease-out forwards}::backdrop{background:#0000004d;-webkit-backdrop-filter:saturate(180%) blur(15px);backdrop-filter:saturate(180%) blur(15px)}#content{max-height:12.5rem;overflow:auto}@media screen and (min-width: 48rem){#container.has-close-button #icon-container{max-width:calc(100% - (var(--px-size-m) + var(--px-spacing-s-tablet)))}::slotted(px-button-icon[slot="close-button"]){position:absolute;top:var(--px-padding-m-tablet);right:var(--px-padding-m-tablet)}#content{max-height:25rem}}@media screen and (min-width: 64.0625rem){#container.has-close-button #icon-container{max-width:calc(100% - (var(--px-size-m) + var(--px-spacing-s-laptop)))}::slotted(px-button-icon[slot="close-button"]){top:var(--px-padding-m-laptop);right:var(--px-padding-m-laptop)}:host([media-src]) #container.has-close-button #icon-container{max-width:100%}:host([media-src]) #media-container{display:block;background-size:cover;background-position:center center;background-repeat:no-repeat;flex-basis:25rem;flex-shrink:0}}@media screen and (min-width: 69.875rem){#container{width:1080px}}@media screen and (min-width: 90.0625rem){:host(:not([media-src])) #container.has-close-button #icon-container{max-width:calc(100% - (var(--px-size-m) + var(--px-spacing-s-desktop)))}::slotted(px-button-icon[slot="close-button"]){position:absolute;top:var(--px-padding-m-desktop);right:var(--px-padding-m-desktop)}}@keyframes modalIn{0%{transform:scale(.95);opacity:0}to{transform:scale(1);opacity:1}}';
|
|
3584
|
+
const styles$3 = '*{box-sizing:border-box}#container{display:flex;flex-wrap:nowrap;font-family:var(--px-font-family);font-size:var(--px-font-size-base);color:var(--px-color-text-neutral-default);width:inherit;border-radius:var(--px-radius-main);background-color:var(--px-color-background-surface-default);overflow:hidden}#container.info{border-left:5px var(--px-color-icon-brand-default) solid}#container.success{border-left:5px var(--px-color-icon-purpose-success-default) solid}#container.warning{border-left:5px var(--px-color-icon-purpose-warning-default) solid}#container.error{border-left:5px var(--px-color-icon-purpose-error-default) solid}#container.has-close-button #icon-container{max-width:calc(100% - (var(--px-size-m) + var(--px-spacing-s-mobile)))}#content-container{display:flex;padding:var(--px-padding-m-mobile);flex-grow:1}#content-container px-vstack{max-height:100%;flex-grow:1}#media-container{display:none}::slotted(px-button-icon[slot="close-button"]){position:absolute;top:var(--px-padding-m-mobile);right:var(--px-padding-m-mobile)}dialog{background:transparent;border-radius:0;box-shadow:none;padding:0;border:0;box-sizing:border-box;transform:scale(.95);animation:modalIn .3s ease-out forwards;max-width:calc(100% - (var(--px-spacing-s-mobile) * 2));max-height:calc(100% - (var(--px-spacing-s-mobile) * 2))}dialog[open]{display:flex}::backdrop{background:#0000004d;-webkit-backdrop-filter:saturate(180%) blur(15px);backdrop-filter:saturate(180%) blur(15px)}#content{max-height:12.5rem;overflow:auto}@media screen and (min-width: 48rem){dialog{max-width:calc(100% - (var(--px-spacing-s-tablet) * 2));max-height:calc(100% - (var(--px-spacing-s-tablet) * 2))}#container.has-close-button #icon-container{max-width:calc(100% - (var(--px-size-m) + var(--px-spacing-s-tablet)))}::slotted(px-button-icon[slot="close-button"]){position:absolute;top:var(--px-padding-m-tablet);right:var(--px-padding-m-tablet)}#content{max-height:25rem}}@media screen and (min-width: 64.0625rem){dialog{max-width:calc(100% - (var(--px-spacing-s-laptop) * 2));max-height:calc(100% - (var(--px-spacing-s-laptop) * 2))}#container.has-close-button #icon-container{max-width:calc(100% - (var(--px-size-m) + var(--px-spacing-s-laptop)))}::slotted(px-button-icon[slot="close-button"]){top:var(--px-padding-m-laptop);right:var(--px-padding-m-laptop)}:host([media-src]) #container.has-close-button #icon-container{max-width:100%}:host([media-src]) #media-container{display:block;background-size:cover;background-position:center center;background-repeat:no-repeat;flex-basis:25rem;flex-shrink:0}}@media screen and (min-width: 69.875rem){#container{width:1080px}}@media screen and (min-width: 90.0625rem){dialog{max-width:calc(100% - (var(--px-spacing-s-desktop) * 2));max-height:calc(100% - (var(--px-spacing-s-desktop) * 2))}:host(:not([media-src])) #container.has-close-button #icon-container{max-width:calc(100% - (var(--px-size-m) + var(--px-spacing-s-desktop)))}::slotted(px-button-icon[slot="close-button"]){position:absolute;top:var(--px-padding-m-desktop);right:var(--px-padding-m-desktop)}}@keyframes modalIn{0%{transform:scale(.95);opacity:0}to{transform:scale(1);opacity:1}}';
|
|
3579
3585
|
const styleSheet$1 = new CSSStyleSheet();
|
|
3580
3586
|
styleSheet$1.replaceSync(styles$3);
|
|
3581
3587
|
const CLOSE_EVENT = "px.lavender.modal.close";
|
|
@@ -4912,9 +4918,6 @@ const _Link = class _Link extends PxElement {
|
|
|
4912
4918
|
`"${newValue}" is not a valid variant value for ${this.tagName.toLowerCase()}. Allowed values are: "${linkVariantValues.join('", "')}".`
|
|
4913
4919
|
);
|
|
4914
4920
|
}
|
|
4915
|
-
if (newValue === "icon-link") {
|
|
4916
|
-
this.$iconNotBeforeAfter.setAttribute("color", "inherit");
|
|
4917
|
-
}
|
|
4918
4921
|
}
|
|
4919
4922
|
updateShape(attrName, newValue, attrValue) {
|
|
4920
4923
|
if (!checkName(attrValue, newValue)) {
|
|
@@ -5133,7 +5136,7 @@ class MDDLink extends HTMLElement {
|
|
|
5133
5136
|
if (!customElements.get("px-mdd-a")) {
|
|
5134
5137
|
customElements.define("px-mdd-a", MDDLink);
|
|
5135
5138
|
}
|
|
5136
|
-
const styles = "#navigation-container{border-bottom:var(--px-size-border-m) solid var(--px-color-border-main-default)}#dropdown-zone--desktop{display:none}#primary-navigation{display:none;margin:0;padding:0}#panel-container{position:absolute;top:0;left:0;right:0;z-index:999}#backdrop-filter{display:none;position:absolute;z-index:998;left:0;width:100vw;height:100%;background:#0000004d;-webkit-backdrop-filter:saturate(180%) blur(15px);backdrop-filter:saturate(180%) blur(15px)}@media screen and (min-width: 48rem){#dropdown-zone--desktop{display:flex;justify-content:space-between;align-items:center;margin-
|
|
5139
|
+
const styles = "#navigation-container{border-bottom:var(--px-size-border-m) solid var(--px-color-border-main-default)}#dropdown-zone--desktop{display:none}#primary-navigation{display:none;margin:0;padding:0}#panel-container{position:absolute;top:0;left:0;right:0;z-index:999}#backdrop-filter{display:none;position:absolute;z-index:998;left:0;width:100vw;height:100%;background:#0000004d;-webkit-backdrop-filter:saturate(180%) blur(15px);backdrop-filter:saturate(180%) blur(15px)}@media screen and (min-width: 48rem){#dropdown-zone--desktop{display:flex;justify-content:space-between;align-items:center;margin-top:var(--px-padding-s-tablet);margin-bottom:var(--px-spacing-s-tablet)}#primary-navigation{display:block}#panel-container{top:auto}}@media screen and (min-width: 64.0625rem){#dropdown-zone--desktop{margin-top:var(--px-padding-s-laptop);margin-bottom:var(--px-spacing-s-laptop)}}@media screen and (min-width: 90.0625rem){#dropdown-zone--desktop{margin-top:var(--px-padding-s-desktop);margin-bottom:var(--px-spacing-s-desktop)}}";
|
|
5137
5140
|
function isObject(value) {
|
|
5138
5141
|
var type = typeof value;
|
|
5139
5142
|
return value != null && (type == "object" || type == "function");
|
|
@@ -5610,7 +5613,7 @@ $megaDropdowns_get = function() {
|
|
|
5610
5613
|
if (!customElements.get("px-header")) {
|
|
5611
5614
|
customElements.define("px-header", Header);
|
|
5612
5615
|
}
|
|
5613
|
-
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))}}';
|
|
5614
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}}";
|
|
5615
5618
|
const gridStyles = new CSSStyleSheet();
|
|
5616
5619
|
gridStyles.replaceSync(gridCss);
|
|
@@ -5973,6 +5976,10 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
5973
5976
|
<px-h1><slot></slot></px-h1>
|
|
5974
5977
|
<slot name="subtitle"></slot>
|
|
5975
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>
|
|
5976
5983
|
</div>
|
|
5977
5984
|
</px-container>
|
|
5978
5985
|
</px-grid>
|
|
@@ -5998,38 +6005,22 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
5998
6005
|
"has-gridding--mobile",
|
|
5999
6006
|
"has-gridding--tablet",
|
|
6000
6007
|
"has-gridding--laptop",
|
|
6008
|
+
"has-gridding--desktop",
|
|
6001
6009
|
"inverted"
|
|
6002
6010
|
];
|
|
6003
6011
|
}
|
|
6004
6012
|
connectedCallback() {
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
`<px-stack gap="s" direction="row" direction--mobile="column">
|
|
6011
|
-
<slot name="patch" shrink></slot>
|
|
6012
|
-
<slot name="patch-description"></slot>
|
|
6013
|
-
</px-stack>`
|
|
6014
|
-
);
|
|
6015
|
-
}
|
|
6016
|
-
if (this.$subtitleSlot) {
|
|
6017
|
-
this.$subtitleSlot.setAttribute("variant", "subtitle");
|
|
6018
|
-
}
|
|
6019
|
-
if (this.$patchDescriptionSlot) {
|
|
6020
|
-
if (this.$patchDescriptionSlot.localName === "px-p") {
|
|
6021
|
-
this.$patchDescriptionSlot.setAttribute("variant", "default");
|
|
6022
|
-
}
|
|
6023
|
-
if (this.$patchDescriptionSlot.localName === "px-p" || this.$patchDescriptionSlot.localName === "px-span") {
|
|
6024
|
-
this.$patchDescriptionSlot.setAttribute("font-size", "body-l");
|
|
6025
|
-
this.$patchDescriptionSlot.removeAttribute("font-weight");
|
|
6026
|
-
this.$patchDescriptionSlot.removeAttribute("color");
|
|
6027
|
-
}
|
|
6028
|
-
if (this.$patchDescriptionSlot.localName === "px-price") {
|
|
6029
|
-
this.$patchDescriptionSlot.setAttribute("size", "m");
|
|
6030
|
-
}
|
|
6031
|
-
}
|
|
6013
|
+
var _a, _b;
|
|
6014
|
+
this.styleSubtitleSlot = this.styleSubtitleSlot.bind(this);
|
|
6015
|
+
this.stylepatchDescriptionSlotted = this.stylepatchDescriptionSlotted.bind(this);
|
|
6016
|
+
this.styleSubtitleSlot();
|
|
6017
|
+
this.stylepatchDescriptionSlotted();
|
|
6032
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
|
+
);
|
|
6033
6024
|
}
|
|
6034
6025
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
|
6035
6026
|
if (oldValue !== newValue) {
|
|
@@ -6062,6 +6053,7 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
6062
6053
|
case "has-gridding--mobile":
|
|
6063
6054
|
case "has-gridding--tablet":
|
|
6064
6055
|
case "has-gridding--laptop":
|
|
6056
|
+
case "has-gridding--desktop":
|
|
6065
6057
|
this.createGridding(newValue);
|
|
6066
6058
|
break;
|
|
6067
6059
|
case "inverted":
|
|
@@ -6079,6 +6071,37 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
6079
6071
|
}
|
|
6080
6072
|
}
|
|
6081
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
|
+
}
|
|
6082
6105
|
createGridding(value) {
|
|
6083
6106
|
const breakpoints = [
|
|
6084
6107
|
{ prop: "hasGridding", gridAttr: "grid-cols", attr: "col-span" },
|
|
@@ -6096,6 +6119,11 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
6096
6119
|
prop: "hasGriddingLaptop",
|
|
6097
6120
|
gridAttr: "grid-cols--laptop",
|
|
6098
6121
|
attr: "col-span--laptop"
|
|
6122
|
+
},
|
|
6123
|
+
{
|
|
6124
|
+
prop: "hasGriddingDesktop",
|
|
6125
|
+
gridAttr: "grid-cols--desktop",
|
|
6126
|
+
attr: "col-span--desktop"
|
|
6099
6127
|
}
|
|
6100
6128
|
];
|
|
6101
6129
|
const spanElement = this.shadowRoot.querySelector(
|
|
@@ -6125,9 +6153,21 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
6125
6153
|
return this.shadowRoot.querySelector("px-h1");
|
|
6126
6154
|
}
|
|
6127
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() {
|
|
6128
6162
|
return this.querySelector('[slot="subtitle"]');
|
|
6129
6163
|
}
|
|
6130
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() {
|
|
6131
6171
|
return this.querySelector('[slot="patch-description"]');
|
|
6132
6172
|
}
|
|
6133
6173
|
get $overlapSlot() {
|
|
@@ -6244,6 +6284,16 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
6244
6284
|
this.removeAttribute("has-gridding--laptop");
|
|
6245
6285
|
}
|
|
6246
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
|
+
}
|
|
6247
6297
|
get inverted() {
|
|
6248
6298
|
return this.hasAttribute("inverted");
|
|
6249
6299
|
}
|