@proximus/lavender-light 2.0.0-alpha.11 → 2.0.0-alpha.13
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.
|
@@ -6247,7 +6247,7 @@ class CellRadio extends WithExtraAttributes {
|
|
|
6247
6247
|
return `
|
|
6248
6248
|
<div class="cell-radio">
|
|
6249
6249
|
<px-cell hoverable>
|
|
6250
|
-
<px-radio
|
|
6250
|
+
<px-radio slot="prefix" aria-hidden="true" tabindex="-1"></px-radio>
|
|
6251
6251
|
<slot name="visual" slot="visual"></slot>
|
|
6252
6252
|
<slot name="label" slot="label"></slot>
|
|
6253
6253
|
<slot name="description" slot="description"></slot>
|
|
@@ -6256,17 +6256,18 @@ class CellRadio extends WithExtraAttributes {
|
|
|
6256
6256
|
`;
|
|
6257
6257
|
}
|
|
6258
6258
|
constructor() {
|
|
6259
|
-
var _a
|
|
6259
|
+
var _a;
|
|
6260
6260
|
super(commonStyleSheet);
|
|
6261
6261
|
this.shadowRoot.innerHTML = this.template();
|
|
6262
6262
|
this.internals = (_a = this.attachInternals) == null ? void 0 : _a.call(this);
|
|
6263
|
-
this.tabIndex = ((_b = this.parentElement) == null ? void 0 : _b.firstElementChild) === this ? 0 : -1;
|
|
6264
6263
|
if (this.internals) {
|
|
6265
6264
|
this.internals.role = "radio";
|
|
6266
6265
|
this.internals.ariaChecked = `${this.checked}`;
|
|
6267
6266
|
}
|
|
6268
6267
|
}
|
|
6269
6268
|
connectedCallback() {
|
|
6269
|
+
var _a;
|
|
6270
|
+
this.tabIndex = ((_a = this.parentElement) == null ? void 0 : _a.firstElementChild) === this ? 0 : -1;
|
|
6270
6271
|
if (this.$slotVisual) {
|
|
6271
6272
|
const slotVisualImg = this.querySelector('px-img[slot="visual"]');
|
|
6272
6273
|
if (slotVisualImg) {
|
|
@@ -6411,7 +6412,7 @@ class CellRadio extends WithExtraAttributes {
|
|
|
6411
6412
|
if (this.internals) {
|
|
6412
6413
|
this.internals.ariaChecked = "false";
|
|
6413
6414
|
}
|
|
6414
|
-
this.
|
|
6415
|
+
this.tabIndex = -1;
|
|
6415
6416
|
this.checked = false;
|
|
6416
6417
|
if (this.$radio) {
|
|
6417
6418
|
this.$radio.removeAttribute("checked");
|
|
@@ -6420,7 +6421,7 @@ class CellRadio extends WithExtraAttributes {
|
|
|
6420
6421
|
if (this.internals) {
|
|
6421
6422
|
this.internals.ariaChecked = "true";
|
|
6422
6423
|
}
|
|
6423
|
-
this.
|
|
6424
|
+
this.tabIndex = 0;
|
|
6424
6425
|
this.checked = true;
|
|
6425
6426
|
if (this.$radio) {
|
|
6426
6427
|
this.$radio.setAttribute("checked", "");
|
|
@@ -6479,7 +6480,7 @@ class CellRadio extends WithExtraAttributes {
|
|
|
6479
6480
|
return this.shadowRoot.querySelector(".cell-radio");
|
|
6480
6481
|
}
|
|
6481
6482
|
get $radio() {
|
|
6482
|
-
return this.shadowRoot.querySelector("px-radio
|
|
6483
|
+
return this.shadowRoot.querySelector("px-radio");
|
|
6483
6484
|
}
|
|
6484
6485
|
get $slotVisual() {
|
|
6485
6486
|
return this.querySelector('[slot="visual"]');
|