@proximus/lavender-header 2.0.0-alpha.111 → 2.0.0-alpha.113
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 +20 -20
- 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
|
+
], Nt = ["", "default", "alternative"], N = class N 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(N.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, Nt);
|
|
134
134
|
break;
|
|
135
135
|
case "extended":
|
|
136
136
|
case "extended--mobile":
|
|
@@ -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
|
+
N.nativeName = "a";
|
|
315
|
+
let j = N;
|
|
316
316
|
customElements.get("px-a") || customElements.define("px-a", j);
|
|
317
|
-
var m,
|
|
318
|
-
class
|
|
317
|
+
var m, O, dt;
|
|
318
|
+
class Ot extends j {
|
|
319
319
|
constructor() {
|
|
320
320
|
super();
|
|
321
|
-
u(this,
|
|
321
|
+
u(this, O);
|
|
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, O, dt).call(this)
|
|
327
327
|
));
|
|
328
328
|
}
|
|
329
329
|
connectedCallback() {
|
|
@@ -344,11 +344,11 @@ class It extends j {
|
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
|
-
m = new WeakMap(),
|
|
347
|
+
m = new WeakMap(), O = 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", Ot);
|
|
351
|
+
class It 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 Nt 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", It);
|
|
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;
|
|
@@ -672,7 +672,7 @@ T = new WeakMap(), i = new WeakSet(), bt = function() {
|
|
|
672
672
|
return this.querySelectorAll("px-mdd");
|
|
673
673
|
};
|
|
674
674
|
customElements.get("px-header") || customElements.define("px-header", ge);
|
|
675
|
-
const xe = ':host{position:relative}::slotted([slot="popover"]){position:
|
|
675
|
+
const xe = ':host{position:relative}::slotted([slot="popover"]){position:fixed;border-radius:var(--px-radius-main, 8px);background:var(--px-color-background-container-light-default, #fff);box-shadow:0 20px 25px -5px #25252514;margin:0;padding:var(--px-padding-xs-mobile) 0;border:0;right:0;width:auto}:host([grow]) ::slotted([slot="trigger"]):after{right:0;padding-right:var(--px-padding-xs-mobile)}:host([anchoralignment="top-left"]) ::slotted([slot="popover"]){top:auto}:host([anchoralignment="top-right"]) ::slotted([slot="popover"]){top:auto}:host([anchoralignment="bottom-right"]) ::slotted([slot="popover"]){left:auto}@media screen and (max-width: 47.938rem){::slotted([slot="trigger"]){display:block;width:100%}:host([anchoralignment="top-left"]) ::slotted([slot="popover"]){left:var(--px-padding-s-mobile)}:host([anchoralignment="top-right"]) ::slotted([slot="popover"]){left:var(--px-padding-s-mobile)}}@media screen and (min-width: 48rem){::slotted([slot="popover"]){padding-block:var(--px-padding-s-desktop);right:auto;width:auto}}', fe = [
|
|
676
676
|
"top-left",
|
|
677
677
|
"top-right",
|
|
678
678
|
"bottom-left",
|
|
@@ -726,7 +726,7 @@ class ve extends X {
|
|
|
726
726
|
anchor-name: ${this.anchorName};
|
|
727
727
|
}
|
|
728
728
|
:host([anchoralignment="bottom-left"]) {
|
|
729
|
-
::slotted([
|
|
729
|
+
::slotted([popover]) {
|
|
730
730
|
position-anchor: ${this.anchorName};
|
|
731
731
|
top: anchor(${this.anchorName} bottom);
|
|
732
732
|
left: anchor(${this.anchorName} left);
|
|
@@ -851,7 +851,7 @@ w = new WeakSet(), gt = function() {
|
|
|
851
851
|
* race conditions when the popover is toggled and the trigger click event is fired.
|
|
852
852
|
*/
|
|
853
853
|
xt = function() {
|
|
854
|
-
this.$trigger && (this.manualToggle || this.$trigger.addEventListener("click", this.triggerPopoverDisplay), this.$popoverElement.addEventListener("beforetoggle", d(this, k)), this.$popoverElement.addEventListener("toggle", d(this, y)));
|
|
854
|
+
this.$trigger && !["button", "input"].includes(this.$trigger.localName) && (this.manualToggle || this.$trigger.addEventListener("click", this.triggerPopoverDisplay), this.$popoverElement.addEventListener("beforetoggle", d(this, k)), this.$popoverElement.addEventListener("toggle", d(this, y)));
|
|
855
855
|
};
|
|
856
856
|
customElements.get("px-dropdown") || customElements.define("px-dropdown", ve);
|
|
857
857
|
const ft = new CSSStyleSheet();
|
|
@@ -862,12 +862,12 @@ ft.replaceSync(`
|
|
|
862
862
|
}
|
|
863
863
|
}
|
|
864
864
|
`);
|
|
865
|
-
var
|
|
865
|
+
var I, 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, I, `<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, I), 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
|
+
I = 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(
|