@proximus/lavender-cell 1.4.3-alpha.2 → 1.4.3-alpha.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.
- package/dist/index.es.js +14 -14
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -284,13 +284,13 @@ const F = ["secondary"], _ = ["", "default", "top", "bottom", "none"], x = class
|
|
|
284
284
|
}
|
|
285
285
|
};
|
|
286
286
|
x.nativeName = "div";
|
|
287
|
-
let
|
|
288
|
-
customElements.get("px-cell") || customElements.define("px-cell",
|
|
287
|
+
let g = x;
|
|
288
|
+
customElements.get("px-cell") || customElements.define("px-cell", g);
|
|
289
289
|
const O = '.cell-link{text-decoration:none}.cell-link[noicon=""] px-icon{display:none}.cell-link px-icon{color:var(--px-color-icon-brand-default)}.cell-link[aria-disabled=true] px-icon{color:var(--px-color-icon-state-disabled-default)}[compact] .cell-link{padding-block:var(--px-spacing-xs-mobile)}:host([inverted]) .cell-link px-icon{color:var(--px-color-icon-brand-inverted)}:host([inverted]) .cell-link[aria-disabled=true] px-icon{color:var(--px-color-icon-state-disabled-inverted)}', y = new CSSStyleSheet();
|
|
290
290
|
y.replaceSync(n);
|
|
291
291
|
const w = new CSSStyleSheet();
|
|
292
292
|
w.replaceSync(O);
|
|
293
|
-
const
|
|
293
|
+
const f = class f extends m {
|
|
294
294
|
template() {
|
|
295
295
|
return `
|
|
296
296
|
<px-cell hoverable>
|
|
@@ -310,7 +310,7 @@ const g = class g extends m {
|
|
|
310
310
|
}
|
|
311
311
|
constructor() {
|
|
312
312
|
super(w, y);
|
|
313
|
-
const t = document.createElement(
|
|
313
|
+
const t = document.createElement(f.nativeName);
|
|
314
314
|
t.classList.add("cell-link"), t.innerHTML = this.template(), this.shadowRoot.appendChild(t);
|
|
315
315
|
}
|
|
316
316
|
connectedCallback() {
|
|
@@ -497,8 +497,8 @@ const g = class g extends m {
|
|
|
497
497
|
t ? this.setAttribute("compact", "") : this.removeAttribute("compact");
|
|
498
498
|
}
|
|
499
499
|
};
|
|
500
|
-
|
|
501
|
-
let v =
|
|
500
|
+
f.nativeName = "a";
|
|
501
|
+
let v = f;
|
|
502
502
|
customElements.get("px-cell-link") || customElements.define("px-cell-link", v);
|
|
503
503
|
const j = ".cell-button{padding:0;background:none;border:none;text-align:left;font-size:inherit}", E = new CSSStyleSheet();
|
|
504
504
|
E.replaceSync(n);
|
|
@@ -693,7 +693,7 @@ class G extends A {
|
|
|
693
693
|
return `
|
|
694
694
|
<div class="cell-checkbox">
|
|
695
695
|
<px-cell hoverable>
|
|
696
|
-
<px-checkbox slot="prefix" inert
|
|
696
|
+
<px-checkbox slot="prefix" inert></px-checkbox>
|
|
697
697
|
<slot name="visual" slot="visual"></slot>
|
|
698
698
|
<slot name="label" slot="label"></slot>
|
|
699
699
|
<slot name="description" slot="description"></slot>
|
|
@@ -703,10 +703,10 @@ class G extends A {
|
|
|
703
703
|
}
|
|
704
704
|
constructor() {
|
|
705
705
|
var t;
|
|
706
|
-
super(L), this.shadowRoot.innerHTML = this.template(), this.internals = (t = this.attachInternals) == null ? void 0 : t.call(this), this.tabIndex = 0
|
|
706
|
+
super(L), this.shadowRoot.innerHTML = this.template(), this.internals = (t = this.attachInternals) == null ? void 0 : t.call(this), this.tabIndex = 0;
|
|
707
707
|
}
|
|
708
708
|
connectedCallback() {
|
|
709
|
-
if (this.$slotVisual) {
|
|
709
|
+
if (this.name && this.$checkbox.setAttribute("name", this.name), this.value && this.$checkbox.setAttribute("value", this.value), this.role = "checkbox", this.internals && (this.internals.role = "checkbox", this.internals.ariaChecked = `${this.checked}`), this.ariaChecked = `${this.checked}`, this.$slotVisual) {
|
|
710
710
|
const t = this.querySelector('px-img[slot="visual"]');
|
|
711
711
|
t && c(t);
|
|
712
712
|
}
|
|
@@ -996,10 +996,10 @@ class J extends A {
|
|
|
996
996
|
}
|
|
997
997
|
constructor() {
|
|
998
998
|
var t;
|
|
999
|
-
super(I), this.shadowRoot.innerHTML = this.template(), this.internals = (t = this.attachInternals) == null ? void 0 : t.call(this), this.tabIndex = 0
|
|
999
|
+
super(I), this.shadowRoot.innerHTML = this.template(), this.internals = (t = this.attachInternals) == null ? void 0 : t.call(this), this.tabIndex = 0;
|
|
1000
1000
|
}
|
|
1001
1001
|
connectedCallback() {
|
|
1002
|
-
if (this.$slotVisual) {
|
|
1002
|
+
if (this.role = "checkbox", this.internals && (this.internals.role = "checkbox", this.internals.ariaChecked = `${this.checked}`), this.ariaChecked = `${this.checked}`, this.$slotVisual) {
|
|
1003
1003
|
const t = this.querySelector('px-img[slot="visual"]');
|
|
1004
1004
|
t && c(t);
|
|
1005
1005
|
}
|
|
@@ -1259,11 +1259,11 @@ class Q extends A {
|
|
|
1259
1259
|
}
|
|
1260
1260
|
constructor() {
|
|
1261
1261
|
var t;
|
|
1262
|
-
super(T), this.shadowRoot.innerHTML = this.template(), this.internals = (t = this.attachInternals) == null ? void 0 : t.call(this)
|
|
1262
|
+
super(T), this.shadowRoot.innerHTML = this.template(), this.internals = (t = this.attachInternals) == null ? void 0 : t.call(this);
|
|
1263
1263
|
}
|
|
1264
1264
|
connectedCallback() {
|
|
1265
1265
|
var t;
|
|
1266
|
-
if (this.tabIndex = ((t = this.parentElement) == null ? void 0 : t.firstElementChild) === this ? 0 : -1, this.$slotVisual) {
|
|
1266
|
+
if (this.tabIndex = ((t = this.parentElement) == null ? void 0 : t.firstElementChild) === this ? 0 : -1, this.role = "radio", this.internals && (this.internals.role = "radio", this.internals.ariaChecked = `${this.checked}`), this.ariaChecked = `${this.checked}`, this.$slotVisual) {
|
|
1267
1267
|
const e = this.querySelector('px-img[slot="visual"]');
|
|
1268
1268
|
e && c(e);
|
|
1269
1269
|
}
|
|
@@ -1537,7 +1537,7 @@ class Q extends A {
|
|
|
1537
1537
|
}
|
|
1538
1538
|
customElements.get("px-cell-radio") || customElements.define("px-cell-radio", Q);
|
|
1539
1539
|
export {
|
|
1540
|
-
|
|
1540
|
+
g as Cell,
|
|
1541
1541
|
k as CellButton,
|
|
1542
1542
|
G as CellCheckbox,
|
|
1543
1543
|
v as CellLink,
|