@fluid-topics/ft-radio 1.2.2 → 1.2.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/build/ft-radio-group.d.ts +2 -1
- package/build/ft-radio-group.js +5 -1
- package/build/ft-radio.light.js +11 -11
- package/build/ft-radio.min.js +77 -77
- package/package.json +5 -5
|
@@ -8,7 +8,8 @@ export declare class FtRadioGroup extends FtLitElement implements FtRadioGroupPr
|
|
|
8
8
|
role: string;
|
|
9
9
|
tabIndex: number;
|
|
10
10
|
ariaLabelledBy: string;
|
|
11
|
-
|
|
11
|
+
assignedElements?: Array<Element>;
|
|
12
|
+
get radioButtons(): Array<FtRadio>;
|
|
12
13
|
currentSelectedIndex: number;
|
|
13
14
|
static styles: import("lit").CSSResult;
|
|
14
15
|
protected render(): import("lit").TemplateResult<1>;
|
package/build/ft-radio-group.js
CHANGED
|
@@ -29,6 +29,10 @@ class FtRadioGroup extends FtLitElement {
|
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
+
get radioButtons() {
|
|
33
|
+
var _a, _b;
|
|
34
|
+
return (_b = (_a = this.assignedElements) === null || _a === void 0 ? void 0 : _a.flatMap(e => e.matches("ft-radio") ? [e] : [...e.querySelectorAll("ft-radio")])) !== null && _b !== void 0 ? _b : [];
|
|
35
|
+
}
|
|
32
36
|
render() {
|
|
33
37
|
return html `
|
|
34
38
|
<slot @slotchange=${this.onSlotChange}
|
|
@@ -119,7 +123,7 @@ __decorate([
|
|
|
119
123
|
], FtRadioGroup.prototype, "ariaLabelledBy", void 0);
|
|
120
124
|
__decorate([
|
|
121
125
|
queryAssignedElements()
|
|
122
|
-
], FtRadioGroup.prototype, "
|
|
126
|
+
], FtRadioGroup.prototype, "assignedElements", void 0);
|
|
123
127
|
__decorate([
|
|
124
128
|
state()
|
|
125
129
|
], FtRadioGroup.prototype, "currentSelectedIndex", void 0);
|