@proximus/lavender-mega-dropdown 2.0.0-alpha.206 → 2.0.0-alpha.207
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 +3 -17
- package/dist/web-types.json +5 -5
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -131,11 +131,7 @@ var D = [
|
|
|
131
131
|
e && (e.getAttribute("size") || e.setAttribute("size", "xs")), this.$el.classList.toggle("loading");
|
|
132
132
|
}
|
|
133
133
|
updateShape(e, t, n) {
|
|
134
|
-
|
|
135
|
-
h(`"${t}" is not a valid shape value for ${this.tagName.toLowerCase()}. Allowed values are: "${n.join("\", \"")}".`);
|
|
136
|
-
return;
|
|
137
|
-
}
|
|
138
|
-
t !== null && t !== "" && this.$el.setAttribute(e, t);
|
|
134
|
+
s(n, t) ? t !== null && t !== "" && this.$el.setAttribute(e, t) : h(`"${t}" is not a valid shape value for ${this.tagName.toLowerCase()}. Allowed values are: "${n.join("\", \"")}".`);
|
|
139
135
|
}
|
|
140
136
|
get variant() {
|
|
141
137
|
return this.getAttribute("variant");
|
|
@@ -361,13 +357,7 @@ var me = class e extends t {
|
|
|
361
357
|
this.role = "img";
|
|
362
358
|
let e = document.querySelectorAll("px-icon-set");
|
|
363
359
|
e || console.log("<px-icon-set> component not found");
|
|
364
|
-
for (let t of e) {
|
|
365
|
-
if (!t.getAttribute("name") || !t.getAttribute("src")) {
|
|
366
|
-
console.error("Icon name or src not found");
|
|
367
|
-
continue;
|
|
368
|
-
}
|
|
369
|
-
t.getAttribute("name") === this.from && t.getAttribute("type") !== "font" && (this.#e = t.getAttribute("src"), this.$el.firstElementChild?.setAttribute("href", `${this.#e}#icon-${this.name}`));
|
|
370
|
-
}
|
|
360
|
+
for (let t of e) !t.getAttribute("name") || !t.getAttribute("src") ? console.error("Icon name or src not found") : t.getAttribute("name") === this.from && t.getAttribute("type") !== "font" && (this.#e = t.getAttribute("src"), this.$el.firstElementChild?.setAttribute("href", `${this.#e}#icon-${this.name}`));
|
|
371
361
|
!this.ariaLabel && this.#t && (this.#t.ariaHidden = "true", this.ariaHidden = "true"), this.parentElement?.localName === "px-a" && this.slot !== "before" && this.slot !== "after" && (this.color || this.setAttribute("color", "inherit"));
|
|
372
362
|
}
|
|
373
363
|
updateAttribute(e, t, n, r) {
|
|
@@ -2202,11 +2192,7 @@ var Re = [
|
|
|
2202
2192
|
e !== null && e !== "" && e !== "link" && this._toggleClassList(e), t !== null && t !== "" && t !== "link" && this._toggleClassList(t), this.checkName(X, t) || h(`"${t}" is not a valid variant value for ${this.tagName.toLowerCase()}. Allowed values are: "${X.join("\", \"")}".`);
|
|
2203
2193
|
}
|
|
2204
2194
|
updateShape(e, t, n) {
|
|
2205
|
-
|
|
2206
|
-
h(`"${t}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${n.join("\", \"")}".`);
|
|
2207
|
-
return;
|
|
2208
|
-
}
|
|
2209
|
-
t !== null && t !== "" && this.$el.setAttribute(e, t);
|
|
2195
|
+
s(n, t) ? t !== null && t !== "" && this.$el.setAttribute(e, t) : h(`"${t}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${n.join("\", \"")}".`);
|
|
2210
2196
|
}
|
|
2211
2197
|
updateTypography(e, t, n, r) {
|
|
2212
2198
|
t !== null && t !== "" && t !== "default" && this.$el.classList.toggle(`${e}-${t}`), n !== null && n !== "" && n !== "default" && this.$el.classList.toggle(`${e}-${n}`), this.checkName(r, n) || h(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
|
package/dist/web-types.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@proximus/lavender-mega-dropdown",
|
|
4
|
-
"version": "2.0.0-alpha.
|
|
4
|
+
"version": "2.0.0-alpha.207",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"elements": [
|
|
9
9
|
{
|
|
10
10
|
"name": "px-mdd-closer",
|
|
11
|
-
"description": "\n---\n\n\n### **Events:**\n - **close-panel**",
|
|
11
|
+
"description": "\n\n---\n\n\n### **Events:**\n - **close-panel**",
|
|
12
12
|
"doc-url": "",
|
|
13
13
|
"attributes": [],
|
|
14
14
|
"events": [{ "name": "close-panel", "type": "CustomEvent" }],
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"name": "px-mdd-section",
|
|
22
|
-
"description": "\n---\n",
|
|
22
|
+
"description": "\n\n---\n",
|
|
23
23
|
"doc-url": "",
|
|
24
24
|
"attributes": [
|
|
25
25
|
{ "name": "title-hidden", "value": { "type": "string" } }
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
"name": "px-mdd-section-item",
|
|
39
|
-
"description": "\n---\n",
|
|
39
|
+
"description": "\n\n---\n",
|
|
40
40
|
"doc-url": "",
|
|
41
41
|
"attributes": [
|
|
42
42
|
{ "name": "href", "value": { "type": "string" } },
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
"name": "px-mdd",
|
|
62
|
-
"description": "\n---\n\n\n### **Events:**\n - **close-panel**\n- **close-panel-from-dialog**",
|
|
62
|
+
"description": "\n\n---\n\n\n### **Events:**\n - **close-panel**\n- **close-panel-from-dialog**",
|
|
63
63
|
"doc-url": "",
|
|
64
64
|
"attributes": [
|
|
65
65
|
{ "name": "hidden", "value": { "type": "string" } },
|