@fluid-topics/ft-radio 1.1.70 → 1.1.72
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/build/ft-radio.d.ts +2 -0
- package/build/ft-radio.js +9 -1
- package/build/ft-radio.light.js +142 -134
- package/build/ft-radio.min.js +332 -272
- package/package.json +5 -5
package/build/ft-radio.d.ts
CHANGED
|
@@ -23,5 +23,7 @@ export declare class FtRadio extends FtLitElement implements FtRadioProperties {
|
|
|
23
23
|
protected update(changedProperties: PropertyValues): void;
|
|
24
24
|
private onChange;
|
|
25
25
|
protected contentAvailableCallback(props: PropertyValues): void;
|
|
26
|
+
disconnectedCallback(): void;
|
|
27
|
+
private onFocus;
|
|
26
28
|
select(): void;
|
|
27
29
|
}
|
package/build/ft-radio.js
CHANGED
|
@@ -61,7 +61,7 @@ class FtRadio extends FtLitElement {
|
|
|
61
61
|
}
|
|
62
62
|
update(changedProperties) {
|
|
63
63
|
super.update(changedProperties);
|
|
64
|
-
if (changedProperties.has(
|
|
64
|
+
if (changedProperties.has("checked") && !changedProperties.has("aria-checked")) {
|
|
65
65
|
if (this.checked) {
|
|
66
66
|
this.setAttribute("aria-checked", "true");
|
|
67
67
|
this.tabIndex = 0;
|
|
@@ -81,6 +81,14 @@ class FtRadio extends FtLitElement {
|
|
|
81
81
|
var _a;
|
|
82
82
|
super.contentAvailableCallback(props);
|
|
83
83
|
(_a = this.ripple) === null || _a === void 0 ? void 0 : _a.setupFor(this.container);
|
|
84
|
+
this.addEventListener("focus", this.onFocus);
|
|
85
|
+
}
|
|
86
|
+
disconnectedCallback() {
|
|
87
|
+
this.removeEventListener("focus", this.onFocus);
|
|
88
|
+
super.disconnectedCallback();
|
|
89
|
+
}
|
|
90
|
+
onFocus(e) {
|
|
91
|
+
this.dispatchEvent(new FtRadioChangeEvent(this.name, this.checked));
|
|
84
92
|
}
|
|
85
93
|
select() {
|
|
86
94
|
this.checked = true;
|