@vaadin/radio-group 22.0.13 → 22.0.16
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/package.json +7 -7
- package/src/vaadin-radio-button.d.ts +3 -3
- package/src/vaadin-radio-button.js +6 -6
- package/src/vaadin-radio-group.d.ts +3 -3
- package/src/vaadin-radio-group.js +4 -4
- package/theme/lumo/vaadin-radio-button-styles.js +1 -1
- package/theme/material/vaadin-radio-button-styles.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/radio-group",
|
|
3
|
-
"version": "22.0.
|
|
3
|
+
"version": "22.0.16",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,16 +35,16 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@polymer/polymer": "^3.0.0",
|
|
38
|
-
"@vaadin/component-base": "^22.0.
|
|
39
|
-
"@vaadin/field-base": "^22.0.
|
|
40
|
-
"@vaadin/vaadin-lumo-styles": "^22.0.
|
|
41
|
-
"@vaadin/vaadin-material-styles": "^22.0.
|
|
42
|
-
"@vaadin/vaadin-themable-mixin": "^22.0.
|
|
38
|
+
"@vaadin/component-base": "^22.0.16",
|
|
39
|
+
"@vaadin/field-base": "^22.0.16",
|
|
40
|
+
"@vaadin/vaadin-lumo-styles": "^22.0.16",
|
|
41
|
+
"@vaadin/vaadin-material-styles": "^22.0.16",
|
|
42
|
+
"@vaadin/vaadin-themable-mixin": "^22.0.16"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@esm-bundle/chai": "^4.3.4",
|
|
46
46
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
47
47
|
"sinon": "^9.2.1"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "dac6f243594ea700bb796d3b41d7b17736d90be8"
|
|
50
50
|
}
|
|
@@ -58,7 +58,7 @@ export interface RadioButtonEventMap extends HTMLElementEventMap, RadioButtonCus
|
|
|
58
58
|
* @fires {CustomEvent} checked-changed - Fired when the `checked` property changes.
|
|
59
59
|
*/
|
|
60
60
|
declare class RadioButton extends LabelMixin(
|
|
61
|
-
CheckedMixin(DelegateFocusMixin(ActiveMixin(ElementMixin(ThemableMixin(ControllerMixin(HTMLElement))))))
|
|
61
|
+
CheckedMixin(DelegateFocusMixin(ActiveMixin(ElementMixin(ThemableMixin(ControllerMixin(HTMLElement)))))),
|
|
62
62
|
) {
|
|
63
63
|
/**
|
|
64
64
|
* The name of the radio button.
|
|
@@ -68,13 +68,13 @@ declare class RadioButton extends LabelMixin(
|
|
|
68
68
|
addEventListener<K extends keyof RadioButtonEventMap>(
|
|
69
69
|
type: K,
|
|
70
70
|
listener: (this: RadioButton, ev: RadioButtonEventMap[K]) => void,
|
|
71
|
-
options?: boolean | AddEventListenerOptions
|
|
71
|
+
options?: boolean | AddEventListenerOptions,
|
|
72
72
|
): void;
|
|
73
73
|
|
|
74
74
|
removeEventListener<K extends keyof RadioButtonEventMap>(
|
|
75
75
|
type: K,
|
|
76
76
|
listener: (this: RadioButton, ev: RadioButtonEventMap[K]) => void,
|
|
77
|
-
options?: boolean | EventListenerOptions
|
|
77
|
+
options?: boolean | EventListenerOptions,
|
|
78
78
|
): void;
|
|
79
79
|
}
|
|
80
80
|
|
|
@@ -59,7 +59,7 @@ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mix
|
|
|
59
59
|
* @mixes LabelMixin
|
|
60
60
|
*/
|
|
61
61
|
class RadioButton extends LabelMixin(
|
|
62
|
-
CheckedMixin(DelegateFocusMixin(ActiveMixin(ElementMixin(ThemableMixin(ControllerMixin(PolymerElement))))))
|
|
62
|
+
CheckedMixin(DelegateFocusMixin(ActiveMixin(ElementMixin(ThemableMixin(ControllerMixin(PolymerElement)))))),
|
|
63
63
|
) {
|
|
64
64
|
static get is() {
|
|
65
65
|
return 'vaadin-radio-button';
|
|
@@ -128,8 +128,8 @@ class RadioButton extends LabelMixin(
|
|
|
128
128
|
*/
|
|
129
129
|
name: {
|
|
130
130
|
type: String,
|
|
131
|
-
value: ''
|
|
132
|
-
}
|
|
131
|
+
value: '',
|
|
132
|
+
},
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
135
|
|
|
@@ -165,8 +165,8 @@ class RadioButton extends LabelMixin(
|
|
|
165
165
|
new SlotTargetController(
|
|
166
166
|
this.$.noop,
|
|
167
167
|
() => this._labelController.node,
|
|
168
|
-
() => this.__warnDeprecated()
|
|
169
|
-
)
|
|
168
|
+
() => this.__warnDeprecated(),
|
|
169
|
+
),
|
|
170
170
|
);
|
|
171
171
|
}
|
|
172
172
|
}
|
|
@@ -175,7 +175,7 @@ class RadioButton extends LabelMixin(
|
|
|
175
175
|
__warnDeprecated() {
|
|
176
176
|
console.warn(
|
|
177
177
|
`WARNING: Since Vaadin 22, placing the label as a direct child of a <vaadin-radio-button> is deprecated.
|
|
178
|
-
Please use <label slot="label"> wrapper or the label property instead
|
|
178
|
+
Please use <label slot="label"> wrapper or the label property instead.`,
|
|
179
179
|
);
|
|
180
180
|
}
|
|
181
181
|
}
|
|
@@ -70,7 +70,7 @@ export interface RadioGroupEventMap extends HTMLElementEventMap, RadioGroupCusto
|
|
|
70
70
|
* @fires {CustomEvent} value-changed - Fired when the `value` property changes.
|
|
71
71
|
*/
|
|
72
72
|
declare class RadioGroup extends FieldMixin(
|
|
73
|
-
FocusMixin(DisabledMixin(KeyboardMixin(DirMixin(ThemableMixin(HTMLElement)))))
|
|
73
|
+
FocusMixin(DisabledMixin(KeyboardMixin(DirMixin(ThemableMixin(HTMLElement))))),
|
|
74
74
|
) {
|
|
75
75
|
/**
|
|
76
76
|
* The value of the radio group.
|
|
@@ -88,13 +88,13 @@ declare class RadioGroup extends FieldMixin(
|
|
|
88
88
|
addEventListener<K extends keyof RadioGroupEventMap>(
|
|
89
89
|
type: K,
|
|
90
90
|
listener: (this: RadioGroup, ev: RadioGroupEventMap[K]) => void,
|
|
91
|
-
options?: boolean | AddEventListenerOptions
|
|
91
|
+
options?: boolean | AddEventListenerOptions,
|
|
92
92
|
): void;
|
|
93
93
|
|
|
94
94
|
removeEventListener<K extends keyof RadioGroupEventMap>(
|
|
95
95
|
type: K,
|
|
96
96
|
listener: (this: RadioGroup, ev: RadioGroupEventMap[K]) => void,
|
|
97
|
-
options?: boolean | EventListenerOptions
|
|
97
|
+
options?: boolean | EventListenerOptions,
|
|
98
98
|
): void;
|
|
99
99
|
}
|
|
100
100
|
|
|
@@ -125,7 +125,7 @@ class RadioGroup extends FieldMixin(FocusMixin(DisabledMixin(KeyboardMixin(DirMi
|
|
|
125
125
|
value: {
|
|
126
126
|
type: String,
|
|
127
127
|
notify: true,
|
|
128
|
-
observer: '__valueChanged'
|
|
128
|
+
observer: '__valueChanged',
|
|
129
129
|
},
|
|
130
130
|
|
|
131
131
|
/**
|
|
@@ -140,7 +140,7 @@ class RadioGroup extends FieldMixin(FocusMixin(DisabledMixin(KeyboardMixin(DirMi
|
|
|
140
140
|
type: Boolean,
|
|
141
141
|
value: false,
|
|
142
142
|
reflectToAttribute: true,
|
|
143
|
-
observer: '__readonlyChanged'
|
|
143
|
+
observer: '__readonlyChanged',
|
|
144
144
|
},
|
|
145
145
|
|
|
146
146
|
/**
|
|
@@ -148,8 +148,8 @@ class RadioGroup extends FieldMixin(FocusMixin(DisabledMixin(KeyboardMixin(DirMi
|
|
|
148
148
|
* @private
|
|
149
149
|
*/
|
|
150
150
|
_fieldName: {
|
|
151
|
-
type: String
|
|
152
|
-
}
|
|
151
|
+
type: String,
|
|
152
|
+
},
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
155
|
|