@proximus/lavender 2.0.0-alpha.102 → 2.0.0-alpha.104
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/lavender.cjs.js +1 -1
- package/dist/lavender.es.js +26 -12
- package/dist/lavender.umd.js +1 -1
- package/package.json +1 -1
package/dist/lavender.es.js
CHANGED
|
@@ -11070,7 +11070,6 @@ class HeaderItem extends WithExtraAttributes {
|
|
|
11070
11070
|
this.shadowRoot.innerHTML = this.template();
|
|
11071
11071
|
this.shadowRoot.adoptedStyleSheets = [stylesheet$7];
|
|
11072
11072
|
this.internals = (_a = this.attachInternals) == null ? void 0 : _a.call(this);
|
|
11073
|
-
this.role = "listitem";
|
|
11074
11073
|
if (this.internals) {
|
|
11075
11074
|
this.internals.role = "listitem";
|
|
11076
11075
|
}
|
|
@@ -11079,6 +11078,7 @@ class HeaderItem extends WithExtraAttributes {
|
|
|
11079
11078
|
return ["for", "href", "current"];
|
|
11080
11079
|
}
|
|
11081
11080
|
connectedCallback() {
|
|
11081
|
+
this.role = "listitem";
|
|
11082
11082
|
this.setAttribute("slot", "header-entries");
|
|
11083
11083
|
if (this.$button) {
|
|
11084
11084
|
this.setupButtonA11y();
|
|
@@ -11229,12 +11229,12 @@ class Header extends WithExtraAttributes {
|
|
|
11229
11229
|
});
|
|
11230
11230
|
this.shadowRoot.innerHTML = this.template;
|
|
11231
11231
|
this.internals = (_a = this.attachInternals) == null ? void 0 : _a.call(this);
|
|
11232
|
-
this.role = "navigation";
|
|
11233
11232
|
if (this.internals) {
|
|
11234
11233
|
this.internals.role = "navigation";
|
|
11235
11234
|
}
|
|
11236
11235
|
}
|
|
11237
11236
|
connectedCallback() {
|
|
11237
|
+
this.role = "navigation";
|
|
11238
11238
|
this.addEventListener("click", (event) => {
|
|
11239
11239
|
const targetElement = event.target.closest(
|
|
11240
11240
|
"px-header-item"
|
|
@@ -12683,7 +12683,6 @@ class MegaDropDown extends HTMLElement {
|
|
|
12683
12683
|
this.shadowRoot.innerHTML = this.template;
|
|
12684
12684
|
this.shadowRoot.adoptedStyleSheets = [stylesheet$3];
|
|
12685
12685
|
this.internals = (_a = this.attachInternals) == null ? void 0 : _a.call(this);
|
|
12686
|
-
this.role = "menu";
|
|
12687
12686
|
if (this.internals) {
|
|
12688
12687
|
this.internals.role = "menu";
|
|
12689
12688
|
}
|
|
@@ -12693,6 +12692,7 @@ class MegaDropDown extends HTMLElement {
|
|
|
12693
12692
|
}
|
|
12694
12693
|
connectedCallback() {
|
|
12695
12694
|
var _a, _b;
|
|
12695
|
+
this.role = "menu";
|
|
12696
12696
|
if (this.querySelectorAll("px-mdd-section").length === 0) {
|
|
12697
12697
|
throw new Error("HeaderPanel must contain at least one MenuSection");
|
|
12698
12698
|
}
|
|
@@ -12962,7 +12962,6 @@ class MddSectionItem extends HTMLElement {
|
|
|
12962
12962
|
this.attachShadow({ mode: "open" });
|
|
12963
12963
|
this.shadowRoot.adoptedStyleSheets = [stylesheet$1];
|
|
12964
12964
|
this.internals = (_a = this.attachInternals) == null ? void 0 : _a.call(this);
|
|
12965
|
-
this.role = "listitem";
|
|
12966
12965
|
if (this.internals) {
|
|
12967
12966
|
this.internals.role = "listitem";
|
|
12968
12967
|
}
|
|
@@ -12987,6 +12986,7 @@ class MddSectionItem extends HTMLElement {
|
|
|
12987
12986
|
}
|
|
12988
12987
|
}
|
|
12989
12988
|
connectedCallback() {
|
|
12989
|
+
this.role = "listitem";
|
|
12990
12990
|
if (this.hasAttribute("href")) {
|
|
12991
12991
|
this.updateView("href", this.href);
|
|
12992
12992
|
this.$link.href = this.href;
|
|
@@ -17766,10 +17766,10 @@ if (!customElements.get("px-typography")) {
|
|
|
17766
17766
|
const styles$1 = ":host .dropdown-content{background-color:var(--px-color-background-surface-default);border-radius:var(--px-radius-main);box-shadow:0 4px 6px -1px #25252514;overflow:hidden}:host([inverted]) .dropdown-content{background-color:var(--px-color-background-surface-dark)}";
|
|
17767
17767
|
const styleSheet$2 = new CSSStyleSheet();
|
|
17768
17768
|
styleSheet$2.replaceSync(styles$1);
|
|
17769
|
-
const _Autocomplete = class _Autocomplete extends
|
|
17769
|
+
const _Autocomplete = class _Autocomplete extends WithExtraAttributes {
|
|
17770
17770
|
constructor() {
|
|
17771
17771
|
var _a;
|
|
17772
|
-
super();
|
|
17772
|
+
super(styleSheet$2);
|
|
17773
17773
|
__privateAdd(this, _Autocomplete_instances);
|
|
17774
17774
|
__privateAdd(this, _controlId);
|
|
17775
17775
|
__privateAdd(this, _onKeyDown);
|
|
@@ -17810,8 +17810,10 @@ const _Autocomplete = class _Autocomplete extends HTMLElement {
|
|
|
17810
17810
|
options[nextIndex].focus();
|
|
17811
17811
|
});
|
|
17812
17812
|
__privateSet(this, _onInput, () => {
|
|
17813
|
+
var _a2;
|
|
17813
17814
|
if (this.$input.value) {
|
|
17814
17815
|
this.$input.$el.setAttribute("aria-expanded", "true");
|
|
17816
|
+
this.$dropDownContent.style.width = `${(_a2 = this.$input.shadowRoot.querySelector("input")) == null ? void 0 : _a2.offsetWidth}px`;
|
|
17815
17817
|
this.$dropDown.showPopover();
|
|
17816
17818
|
} else {
|
|
17817
17819
|
this.$input.$el.setAttribute("aria-expanded", "false");
|
|
@@ -17820,13 +17822,12 @@ const _Autocomplete = class _Autocomplete extends HTMLElement {
|
|
|
17820
17822
|
}
|
|
17821
17823
|
__privateMethod(this, _Autocomplete_instances, updateFormValue_fn).call(this);
|
|
17822
17824
|
});
|
|
17823
|
-
this.attachShadow({ mode: "open" });
|
|
17824
17825
|
this.shadowRoot.innerHTML = this.template();
|
|
17825
|
-
this.shadowRoot.adoptedStyleSheets = [styleSheet$2];
|
|
17826
17826
|
this.internals = (_a = this.attachInternals) == null ? void 0 : _a.call(this);
|
|
17827
17827
|
}
|
|
17828
17828
|
static get observedAttributes() {
|
|
17829
17829
|
return [
|
|
17830
|
+
...super.observedAttributes,
|
|
17830
17831
|
"size",
|
|
17831
17832
|
"state",
|
|
17832
17833
|
"extended",
|
|
@@ -17837,10 +17838,23 @@ const _Autocomplete = class _Autocomplete extends HTMLElement {
|
|
|
17837
17838
|
];
|
|
17838
17839
|
}
|
|
17839
17840
|
attributeChangedCallback(name, oldValue, newValue) {
|
|
17840
|
-
|
|
17841
|
-
|
|
17842
|
-
|
|
17843
|
-
|
|
17841
|
+
switch (name) {
|
|
17842
|
+
case "size":
|
|
17843
|
+
case "state":
|
|
17844
|
+
case "extended":
|
|
17845
|
+
case "extended--mobile":
|
|
17846
|
+
case "extended--tablet":
|
|
17847
|
+
case "extended--laptop":
|
|
17848
|
+
case "extended--desktop":
|
|
17849
|
+
if (newValue !== null) {
|
|
17850
|
+
this.$input.setAttribute(name, newValue);
|
|
17851
|
+
} else {
|
|
17852
|
+
this.$input.removeAttribute(name);
|
|
17853
|
+
}
|
|
17854
|
+
break;
|
|
17855
|
+
default:
|
|
17856
|
+
super.attributeChangedCallback(name, oldValue, newValue);
|
|
17857
|
+
break;
|
|
17844
17858
|
}
|
|
17845
17859
|
}
|
|
17846
17860
|
connectedCallback() {
|