@proximus/lavender-header 2.0.0-alpha.113 → 2.0.0-alpha.115
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/index.es.js +18 -18
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -83,10 +83,10 @@ const qt = [...zt, "link-m", "link-s"], V = [
|
|
|
83
83
|
"btn-secondary",
|
|
84
84
|
"btn-tertiary",
|
|
85
85
|
"icon-link"
|
|
86
|
-
],
|
|
86
|
+
], Ot = ["", "default", "alternative"], O = class O extends $t {
|
|
87
87
|
constructor() {
|
|
88
88
|
super(it, nt, st), this.template = () => '<slot name="before"></slot><slot></slot><slot name="after"></slot>';
|
|
89
|
-
const t = document.createElement(
|
|
89
|
+
const t = document.createElement(O.nativeName);
|
|
90
90
|
t.innerHTML = this.template(), this.shadowRoot.appendChild(t);
|
|
91
91
|
}
|
|
92
92
|
static get observedAttributes() {
|
|
@@ -130,7 +130,7 @@ const qt = [...zt, "link-m", "link-s"], V = [
|
|
|
130
130
|
case "shape--tablet":
|
|
131
131
|
case "shape--laptop":
|
|
132
132
|
case "shape--desktop":
|
|
133
|
-
this.updateShape(t, o,
|
|
133
|
+
this.updateShape(t, o, Ot);
|
|
134
134
|
break;
|
|
135
135
|
case "extended":
|
|
136
136
|
case "extended--mobile":
|
|
@@ -178,7 +178,7 @@ const qt = [...zt, "link-m", "link-s"], V = [
|
|
|
178
178
|
updateVariant(t, e) {
|
|
179
179
|
t !== null && t !== "" && t !== "link" && this._toggleClassList(t), e !== null && e !== "" && e !== "link" && this._toggleClassList(e), this.checkName(V, e) || R(
|
|
180
180
|
`"${e}" is not a valid variant value for ${this.tagName.toLowerCase()}. Allowed values are: "${V.join('", "')}".`
|
|
181
|
-
)
|
|
181
|
+
);
|
|
182
182
|
}
|
|
183
183
|
updateShape(t, e, o) {
|
|
184
184
|
if (!Et(o, e)) {
|
|
@@ -311,19 +311,19 @@ const qt = [...zt, "link-m", "link-s"], V = [
|
|
|
311
311
|
t ? this.setAttribute("title", t) : this.removeAttribute("title");
|
|
312
312
|
}
|
|
313
313
|
};
|
|
314
|
-
|
|
315
|
-
let j =
|
|
314
|
+
O.nativeName = "a";
|
|
315
|
+
let j = O;
|
|
316
316
|
customElements.get("px-a") || customElements.define("px-a", j);
|
|
317
|
-
var m,
|
|
318
|
-
class
|
|
317
|
+
var m, I, dt;
|
|
318
|
+
class It extends j {
|
|
319
319
|
constructor() {
|
|
320
320
|
super();
|
|
321
|
-
u(this,
|
|
321
|
+
u(this, I);
|
|
322
322
|
u(this, m);
|
|
323
323
|
this.$el.classList.add("wrapper"), A(this, m, new Tt(
|
|
324
324
|
this,
|
|
325
325
|
this.$el,
|
|
326
|
-
() => b(this,
|
|
326
|
+
() => b(this, I, dt).call(this)
|
|
327
327
|
));
|
|
328
328
|
}
|
|
329
329
|
connectedCallback() {
|
|
@@ -344,11 +344,11 @@ class Ot extends j {
|
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
|
-
m = new WeakMap(),
|
|
347
|
+
m = new WeakMap(), I = new WeakSet(), dt = function() {
|
|
348
348
|
return !this.hasAttribute("disabled") && this.$el.getAttribute("aria-disabled") !== "true";
|
|
349
349
|
};
|
|
350
|
-
customElements.get("px-a-wrapper") || customElements.define("px-a-wrapper",
|
|
351
|
-
class
|
|
350
|
+
customElements.get("px-a-wrapper") || customElements.define("px-a-wrapper", It);
|
|
351
|
+
class Nt extends HTMLElement {
|
|
352
352
|
constructor() {
|
|
353
353
|
super(), this.template = `<px-a font-weight="title" font-size="body-l" color="brand" variant="no-style">
|
|
354
354
|
<slot></slot>
|
|
@@ -359,7 +359,7 @@ class It extends HTMLElement {
|
|
|
359
359
|
});
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
|
-
customElements.get("px-mdd-a") || customElements.define("px-mdd-a",
|
|
362
|
+
customElements.get("px-mdd-a") || customElements.define("px-mdd-a", Nt);
|
|
363
363
|
const Bt = "#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-block:var(--px-padding-s-tablet)}#primary-navigation{display:block}#panel-container{top:auto}}@media screen and (min-width: 64.0625rem){#dropdown-zone--desktop{margin-block:var(--px-padding-s-laptop)}}@media screen and (min-width: 90.0625rem){#dropdown-zone--desktop{margin-block:var(--px-padding-s-desktop)}}";
|
|
364
364
|
function P(r) {
|
|
365
365
|
var t = typeof r;
|
|
@@ -862,12 +862,12 @@ ft.replaceSync(`
|
|
|
862
862
|
}
|
|
863
863
|
}
|
|
864
864
|
`);
|
|
865
|
-
var
|
|
865
|
+
var N, B, vt;
|
|
866
866
|
class me extends HTMLElement {
|
|
867
867
|
constructor() {
|
|
868
868
|
super();
|
|
869
869
|
u(this, B);
|
|
870
|
-
u(this,
|
|
870
|
+
u(this, N, `<px-mdd
|
|
871
871
|
name="__lavender_mobile_menu"
|
|
872
872
|
hidden--tablet
|
|
873
873
|
hidden--laptop
|
|
@@ -876,7 +876,7 @@ class me extends HTMLElement {
|
|
|
876
876
|
<span slot="title"><slot name="title"></slot></span>
|
|
877
877
|
<px-mdd-section title-hidden></px-mdd-section>
|
|
878
878
|
</px-mdd>`);
|
|
879
|
-
this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = d(this,
|
|
879
|
+
this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = d(this, N), this.shadowRoot.adoptedStyleSheets = [ft];
|
|
880
880
|
}
|
|
881
881
|
connectedCallback() {
|
|
882
882
|
this.setAttribute("slot", "header-panels");
|
|
@@ -901,7 +901,7 @@ class me extends HTMLElement {
|
|
|
901
901
|
return this.shadowRoot.querySelector("px-mdd");
|
|
902
902
|
}
|
|
903
903
|
}
|
|
904
|
-
|
|
904
|
+
N = new WeakMap(), B = new WeakSet(), vt = function() {
|
|
905
905
|
const e = this.closest("px-header"), o = e.querySelector(
|
|
906
906
|
'px-dropdown[slot="target-group"]'
|
|
907
907
|
), a = e.querySelector(
|