@haiilo/catalyst 0.10.7 → 0.10.8
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/catalyst/catalyst.esm.js +1 -1
- package/dist/catalyst/catalyst.esm.js.map +1 -1
- package/dist/catalyst/{p-eddcea2b.entry.js → p-e5c5e21d.entry.js} +4 -4
- package/dist/catalyst/p-e5c5e21d.entry.js.map +1 -0
- package/dist/cjs/cat-alert_21.cjs.entry.js +11 -10
- package/dist/cjs/cat-alert_21.cjs.entry.js.map +1 -1
- package/dist/cjs/catalyst.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/cat-radio-group/cat-radio-group.js +30 -27
- package/dist/collection/components/cat-radio-group/cat-radio-group.js.map +1 -1
- package/dist/components/cat-radio-group.js +13 -12
- package/dist/components/cat-radio-group.js.map +1 -1
- package/dist/esm/cat-alert_21.entry.js +11 -10
- package/dist/esm/cat-alert_21.entry.js.map +1 -1
- package/dist/esm/catalyst.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/cat-radio-group/cat-radio-group.d.ts +3 -2
- package/package.json +1 -1
- package/dist/catalyst/p-eddcea2b.entry.js.map +0 -1
|
@@ -3162,6 +3162,12 @@ const CatRadioGroup = class {
|
|
|
3162
3162
|
catRadio.name = newName;
|
|
3163
3163
|
});
|
|
3164
3164
|
}
|
|
3165
|
+
onValueChanged(newValue) {
|
|
3166
|
+
this.catRadioGroup.forEach(catRadio => {
|
|
3167
|
+
catRadio.checked = catRadio.value === newValue;
|
|
3168
|
+
});
|
|
3169
|
+
this.updateTabIndex();
|
|
3170
|
+
}
|
|
3165
3171
|
onDisabledChanged(disabled) {
|
|
3166
3172
|
this.catRadioGroup.forEach(catRadio => {
|
|
3167
3173
|
if (disabled) {
|
|
@@ -3179,9 +3185,10 @@ const CatRadioGroup = class {
|
|
|
3179
3185
|
componentDidLoad() {
|
|
3180
3186
|
this.catRadioGroup = Array.from(this.hostElement.querySelectorAll(`cat-radio`));
|
|
3181
3187
|
this.onNameChanged(this.name);
|
|
3188
|
+
this.onValueChanged(this.value);
|
|
3182
3189
|
this.onDisabledChanged(this.disabled);
|
|
3183
3190
|
this.onLabelLeftChanged(this.labelLeft);
|
|
3184
|
-
this.updateTabIndex();
|
|
3191
|
+
//this.updateTabIndex();
|
|
3185
3192
|
}
|
|
3186
3193
|
onKeydown(event) {
|
|
3187
3194
|
var _a, _b;
|
|
@@ -3199,15 +3206,8 @@ const CatRadioGroup = class {
|
|
|
3199
3206
|
}
|
|
3200
3207
|
onInput(event) {
|
|
3201
3208
|
const catRadioElement = this.catRadioGroup.find(value => value === event.target);
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
catRadioElements.forEach(value => (value.checked = false));
|
|
3205
|
-
this.value = catRadioElement.value;
|
|
3206
|
-
}
|
|
3207
|
-
else {
|
|
3208
|
-
this.value = undefined;
|
|
3209
|
-
}
|
|
3210
|
-
this.updateTabIndex();
|
|
3209
|
+
this.value = catRadioElement === null || catRadioElement === void 0 ? void 0 : catRadioElement.value;
|
|
3210
|
+
//this.updateTabIndex();
|
|
3211
3211
|
this.catChange.emit();
|
|
3212
3212
|
}
|
|
3213
3213
|
render() {
|
|
@@ -3224,6 +3224,7 @@ const CatRadioGroup = class {
|
|
|
3224
3224
|
get hostElement() { return index.getElement(this); }
|
|
3225
3225
|
static get watchers() { return {
|
|
3226
3226
|
"name": ["onNameChanged"],
|
|
3227
|
+
"value": ["onValueChanged"],
|
|
3227
3228
|
"disabled": ["onDisabledChanged"],
|
|
3228
3229
|
"labelLeft": ["onLabelLeftChanged"]
|
|
3229
3230
|
}; }
|