@proximus/lavender-selectablebox 2.0.0-alpha.18 → 2.0.0-alpha.19
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 +4 -8
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -686,8 +686,6 @@ class H extends n {
|
|
|
686
686
|
<slot name="media" slot="media"></slot>
|
|
687
687
|
<px-checkbox
|
|
688
688
|
slot="action" inert
|
|
689
|
-
name="${this.name}"
|
|
690
|
-
value="${this.value}"
|
|
691
689
|
></px-checkbox>
|
|
692
690
|
<slot name="icon" slot="icon"></slot>
|
|
693
691
|
<slot name="logo" slot="logo"></slot>
|
|
@@ -701,10 +699,10 @@ class H extends n {
|
|
|
701
699
|
}
|
|
702
700
|
constructor() {
|
|
703
701
|
var t;
|
|
704
|
-
super(f), this.shadowRoot.innerHTML = this.template(), this.internals = (t = this.attachInternals) == null ? void 0 : t.call(this), this.toggleFooterVisibility = this.toggleFooterVisibility.bind(this)
|
|
702
|
+
super(f), this.shadowRoot.innerHTML = this.template(), this.internals = (t = this.attachInternals) == null ? void 0 : t.call(this), this.toggleFooterVisibility = this.toggleFooterVisibility.bind(this);
|
|
705
703
|
}
|
|
706
704
|
connectedCallback() {
|
|
707
|
-
this.tabIndex = 0, this.toggleFooterVisibility(), this.$slotFooter.addEventListener(
|
|
705
|
+
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.tabIndex = 0, this.toggleFooterVisibility(), this.$slotFooter.addEventListener(
|
|
708
706
|
"slotchange",
|
|
709
707
|
this.toggleFooterVisibility
|
|
710
708
|
), this.addEventListener("mouseover", this.setHoverAttribute), this.addEventListener("mouseout", this.removeHoverAttribute), this.addEventListener("keypress", this.setKeypressEvent), this.addEventListener("click", this.setClickEvent), this.hasAttribute("checked") && (this.checked = !0);
|
|
@@ -856,8 +854,6 @@ class q extends n {
|
|
|
856
854
|
<slot name="media" slot="media"></slot>
|
|
857
855
|
<px-radio
|
|
858
856
|
slot="action" inert
|
|
859
|
-
name="${this.name}"
|
|
860
|
-
value="${this.value}"
|
|
861
857
|
></px-radio>
|
|
862
858
|
<slot name="icon" slot="icon"></slot>
|
|
863
859
|
<slot name="logo" slot="logo"></slot>
|
|
@@ -871,11 +867,11 @@ class q extends n {
|
|
|
871
867
|
}
|
|
872
868
|
constructor() {
|
|
873
869
|
var t;
|
|
874
|
-
super(x), this.shadowRoot.innerHTML = this.template(), this.internals = (t = this.attachInternals) == null ? void 0 : t.call(this), this.toggleFooterVisibility = this.toggleFooterVisibility.bind(this)
|
|
870
|
+
super(x), this.shadowRoot.innerHTML = this.template(), this.internals = (t = this.attachInternals) == null ? void 0 : t.call(this), this.toggleFooterVisibility = this.toggleFooterVisibility.bind(this);
|
|
875
871
|
}
|
|
876
872
|
connectedCallback() {
|
|
877
873
|
var t;
|
|
878
|
-
this.tabIndex = ((t = this.parentElement) == null ? void 0 : t.firstElementChild) === this ? 0 : -1, this.toggleFooterVisibility(), this.$slotFooter.addEventListener(
|
|
874
|
+
this.name && this.$radio.setAttribute("name", this.name), this.value && this.$radio.setAttribute("value", this.value), this.role = "radio", this.internals && (this.internals.role = "radio", this.internals.ariaChecked = `${this.checked}`), this.ariaChecked = `${this.checked}`, this.tabIndex = ((t = this.parentElement) == null ? void 0 : t.firstElementChild) === this ? 0 : -1, this.toggleFooterVisibility(), this.$slotFooter.addEventListener(
|
|
879
875
|
"slotchange",
|
|
880
876
|
this.toggleFooterVisibility
|
|
881
877
|
), this.addEventListener("mouseover", this.setHoverAttribute), this.addEventListener("mouseout", this.removeHoverAttribute), this.addEventListener("keypress", this.setKeypressEvent), this.addEventListener("click", this.setClickEvent), this.hasAttribute("checked") && (this.checked = !0);
|