@vaadin/radio-group 24.2.0-beta2 → 24.2.0-beta3
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 +8 -8
- package/src/vaadin-radio-button.d.ts +0 -8
- package/src/vaadin-radio-button.js +0 -1
- package/src/vaadin-radio-group.d.ts +0 -17
- package/src/vaadin-radio-group.js +0 -21
- package/web-types.json +1 -53
- package/web-types.lit.json +1 -29
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/radio-group",
|
|
3
|
-
"version": "24.2.0-
|
|
3
|
+
"version": "24.2.0-beta3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@polymer/polymer": "^3.0.0",
|
|
41
|
-
"@vaadin/a11y-base": "24.2.0-
|
|
42
|
-
"@vaadin/component-base": "24.2.0-
|
|
43
|
-
"@vaadin/field-base": "24.2.0-
|
|
44
|
-
"@vaadin/vaadin-lumo-styles": "24.2.0-
|
|
45
|
-
"@vaadin/vaadin-material-styles": "24.2.0-
|
|
46
|
-
"@vaadin/vaadin-themable-mixin": "24.2.0-
|
|
41
|
+
"@vaadin/a11y-base": "24.2.0-beta3",
|
|
42
|
+
"@vaadin/component-base": "24.2.0-beta3",
|
|
43
|
+
"@vaadin/field-base": "24.2.0-beta3",
|
|
44
|
+
"@vaadin/vaadin-lumo-styles": "24.2.0-beta3",
|
|
45
|
+
"@vaadin/vaadin-material-styles": "24.2.0-beta3",
|
|
46
|
+
"@vaadin/vaadin-themable-mixin": "24.2.0-beta3"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@esm-bundle/chai": "^4.3.4",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"web-types.json",
|
|
55
55
|
"web-types.lit.json"
|
|
56
56
|
],
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "91ea11e7ad706065340acdb93b92316919ce5e69"
|
|
58
58
|
}
|
|
@@ -16,15 +16,8 @@ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mix
|
|
|
16
16
|
*/
|
|
17
17
|
export type RadioButtonCheckedChangedEvent = CustomEvent<{ value: boolean }>;
|
|
18
18
|
|
|
19
|
-
/**
|
|
20
|
-
* Fired when the `dirty` property changes.
|
|
21
|
-
*/
|
|
22
|
-
export type RadioButtonDirtyChangedEvent = CustomEvent<{ value: boolean }>;
|
|
23
|
-
|
|
24
19
|
export interface RadioButtonCustomEventMap {
|
|
25
20
|
'checked-changed': RadioButtonCheckedChangedEvent;
|
|
26
|
-
|
|
27
|
-
'dirty-changed': RadioButtonDirtyChangedEvent;
|
|
28
21
|
}
|
|
29
22
|
|
|
30
23
|
export interface RadioButtonEventMap extends HTMLElementEventMap, RadioButtonCustomEventMap {}
|
|
@@ -63,7 +56,6 @@ export interface RadioButtonEventMap extends HTMLElementEventMap, RadioButtonCus
|
|
|
63
56
|
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
64
57
|
*
|
|
65
58
|
* @fires {CustomEvent} checked-changed - Fired when the `checked` property changes.
|
|
66
|
-
* @fires {CustomEvent} dirty-changed - Fired when the `dirty` property changes.
|
|
67
59
|
*/
|
|
68
60
|
declare class RadioButton extends LabelMixin(
|
|
69
61
|
CheckedMixin(DelegateFocusMixin(ActiveMixin(ElementMixin(ThemableMixin(ControllerMixin(HTMLElement)))))),
|
|
@@ -49,7 +49,6 @@ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mix
|
|
|
49
49
|
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
50
50
|
*
|
|
51
51
|
* @fires {CustomEvent} checked-changed - Fired when the `checked` property changes.
|
|
52
|
-
* @fires {CustomEvent} dirty-changed - Fired when the `dirty` property changes.
|
|
53
52
|
*
|
|
54
53
|
* @customElement
|
|
55
54
|
* @extends HTMLElement
|
|
@@ -15,11 +15,6 @@ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mix
|
|
|
15
15
|
*/
|
|
16
16
|
export type RadioGroupInvalidChangedEvent = CustomEvent<{ value: boolean }>;
|
|
17
17
|
|
|
18
|
-
/**
|
|
19
|
-
* Fired when the `dirty` property changes.
|
|
20
|
-
*/
|
|
21
|
-
export type RadioGroupDirtyChangedEvent = CustomEvent<{ value: boolean }>;
|
|
22
|
-
|
|
23
18
|
/**
|
|
24
19
|
* Fired when the `value` property changes.
|
|
25
20
|
*/
|
|
@@ -33,8 +28,6 @@ export type RadioGroupValidatedEvent = CustomEvent<{ valid: boolean }>;
|
|
|
33
28
|
export interface RadioGroupCustomEventMap {
|
|
34
29
|
'invalid-changed': RadioGroupInvalidChangedEvent;
|
|
35
30
|
|
|
36
|
-
'dirty-changed': RadioGroupDirtyChangedEvent;
|
|
37
|
-
|
|
38
31
|
'value-changed': RadioGroupValueChangedEvent;
|
|
39
32
|
|
|
40
33
|
validated: RadioGroupValidatedEvent;
|
|
@@ -81,7 +74,6 @@ export interface RadioGroupEventMap extends HTMLElementEventMap, RadioGroupCusto
|
|
|
81
74
|
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
82
75
|
*
|
|
83
76
|
* @fires {CustomEvent} invalid-changed - Fired when the `invalid` property changes.
|
|
84
|
-
* @fires {CustomEvent} dirty-changed - Fired when the `dirty` property changes.
|
|
85
77
|
* @fires {CustomEvent} value-changed - Fired when the `value` property changes.
|
|
86
78
|
* @fires {CustomEvent} validated - Fired whenever the field is validated.
|
|
87
79
|
*/
|
|
@@ -101,15 +93,6 @@ declare class RadioGroup extends FieldMixin(
|
|
|
101
93
|
*/
|
|
102
94
|
readonly: boolean;
|
|
103
95
|
|
|
104
|
-
/**
|
|
105
|
-
* Whether the field is dirty.
|
|
106
|
-
*
|
|
107
|
-
* The field is automatically marked as dirty once the user triggers
|
|
108
|
-
* a `change` event. Additionally, the field can be manually marked
|
|
109
|
-
* as dirty by setting the property to `true`.
|
|
110
|
-
*/
|
|
111
|
-
dirty: boolean;
|
|
112
|
-
|
|
113
96
|
addEventListener<K extends keyof RadioGroupEventMap>(
|
|
114
97
|
type: K,
|
|
115
98
|
listener: (this: RadioGroup, ev: RadioGroupEventMap[K]) => void,
|
|
@@ -165,19 +165,6 @@ class RadioGroup extends FieldMixin(
|
|
|
165
165
|
_fieldName: {
|
|
166
166
|
type: String,
|
|
167
167
|
},
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* Whether the field is dirty.
|
|
171
|
-
*
|
|
172
|
-
* The field is automatically marked as dirty once the user triggers
|
|
173
|
-
* a `change` event. Additionally, the field can be manually marked
|
|
174
|
-
* as dirty by setting the property to `true`.
|
|
175
|
-
*/
|
|
176
|
-
dirty: {
|
|
177
|
-
type: Boolean,
|
|
178
|
-
value: false,
|
|
179
|
-
notify: true,
|
|
180
|
-
},
|
|
181
168
|
};
|
|
182
169
|
}
|
|
183
170
|
|
|
@@ -186,7 +173,6 @@ class RadioGroup extends FieldMixin(
|
|
|
186
173
|
|
|
187
174
|
this.__registerRadioButton = this.__registerRadioButton.bind(this);
|
|
188
175
|
this.__unregisterRadioButton = this.__unregisterRadioButton.bind(this);
|
|
189
|
-
this.__onRadioButtonChange = this.__onRadioButtonChange.bind(this);
|
|
190
176
|
this.__onRadioButtonCheckedChange = this.__onRadioButtonCheckedChange.bind(this);
|
|
191
177
|
|
|
192
178
|
this._tooltipController = new TooltipController(this);
|
|
@@ -354,7 +340,6 @@ class RadioGroup extends FieldMixin(
|
|
|
354
340
|
*/
|
|
355
341
|
__registerRadioButton(radioButton) {
|
|
356
342
|
radioButton.name = this._fieldName;
|
|
357
|
-
radioButton.addEventListener('change', this.__onRadioButtonChange);
|
|
358
343
|
radioButton.addEventListener('checked-changed', this.__onRadioButtonCheckedChange);
|
|
359
344
|
|
|
360
345
|
if (this.disabled || this.readonly) {
|
|
@@ -373,7 +358,6 @@ class RadioGroup extends FieldMixin(
|
|
|
373
358
|
* @private
|
|
374
359
|
*/
|
|
375
360
|
__unregisterRadioButton(radioButton) {
|
|
376
|
-
radioButton.removeEventListener('change', this.__onRadioButtonChange);
|
|
377
361
|
radioButton.removeEventListener('checked-changed', this.__onRadioButtonCheckedChange);
|
|
378
362
|
|
|
379
363
|
if (radioButton.value === this.value) {
|
|
@@ -381,11 +365,6 @@ class RadioGroup extends FieldMixin(
|
|
|
381
365
|
}
|
|
382
366
|
}
|
|
383
367
|
|
|
384
|
-
/** @private */
|
|
385
|
-
__onRadioButtonChange() {
|
|
386
|
-
this.dirty = true;
|
|
387
|
-
}
|
|
388
|
-
|
|
389
368
|
/**
|
|
390
369
|
* @param {!CustomEvent} event
|
|
391
370
|
* @private
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/radio-group",
|
|
4
|
-
"version": "24.2.0-
|
|
4
|
+
"version": "24.2.0-beta3",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -32,17 +32,6 @@
|
|
|
32
32
|
]
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
|
-
{
|
|
36
|
-
"name": "dirty",
|
|
37
|
-
"description": "Whether the field is dirty.\n\nThe field is automatically marked as dirty once the user triggers\nan `input` or `change` event. Additionally, the field can be manually\nmarked as dirty by setting the property to `true`.",
|
|
38
|
-
"value": {
|
|
39
|
-
"type": [
|
|
40
|
-
"boolean",
|
|
41
|
-
"null",
|
|
42
|
-
"undefined"
|
|
43
|
-
]
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
35
|
{
|
|
47
36
|
"name": "checked",
|
|
48
37
|
"description": "True if the element is checked.",
|
|
@@ -108,17 +97,6 @@
|
|
|
108
97
|
]
|
|
109
98
|
}
|
|
110
99
|
},
|
|
111
|
-
{
|
|
112
|
-
"name": "dirty",
|
|
113
|
-
"description": "Whether the field is dirty.\n\nThe field is automatically marked as dirty once the user triggers\nan `input` or `change` event. Additionally, the field can be manually\nmarked as dirty by setting the property to `true`.",
|
|
114
|
-
"value": {
|
|
115
|
-
"type": [
|
|
116
|
-
"boolean",
|
|
117
|
-
"null",
|
|
118
|
-
"undefined"
|
|
119
|
-
]
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
100
|
{
|
|
123
101
|
"name": "checked",
|
|
124
102
|
"description": "True if the element is checked.",
|
|
@@ -154,10 +132,6 @@
|
|
|
154
132
|
"name": "value-changed",
|
|
155
133
|
"description": "Fired when the `value` property changes."
|
|
156
134
|
},
|
|
157
|
-
{
|
|
158
|
-
"name": "dirty-changed",
|
|
159
|
-
"description": "Fired when the `dirty` property changes."
|
|
160
|
-
},
|
|
161
135
|
{
|
|
162
136
|
"name": "checked-changed",
|
|
163
137
|
"description": "Fired when the `checked` property changes."
|
|
@@ -275,17 +249,6 @@
|
|
|
275
249
|
]
|
|
276
250
|
}
|
|
277
251
|
},
|
|
278
|
-
{
|
|
279
|
-
"name": "dirty",
|
|
280
|
-
"description": "Whether the field is dirty.\n\nThe field is automatically marked as dirty once the user triggers\na `change` event. Additionally, the field can be manually marked\nas dirty by setting the property to `true`.",
|
|
281
|
-
"value": {
|
|
282
|
-
"type": [
|
|
283
|
-
"boolean",
|
|
284
|
-
"null",
|
|
285
|
-
"undefined"
|
|
286
|
-
]
|
|
287
|
-
}
|
|
288
|
-
},
|
|
289
252
|
{
|
|
290
253
|
"name": "theme",
|
|
291
254
|
"description": "The theme variants to apply to the component.",
|
|
@@ -405,17 +368,6 @@
|
|
|
405
368
|
"boolean"
|
|
406
369
|
]
|
|
407
370
|
}
|
|
408
|
-
},
|
|
409
|
-
{
|
|
410
|
-
"name": "dirty",
|
|
411
|
-
"description": "Whether the field is dirty.\n\nThe field is automatically marked as dirty once the user triggers\na `change` event. Additionally, the field can be manually marked\nas dirty by setting the property to `true`.",
|
|
412
|
-
"value": {
|
|
413
|
-
"type": [
|
|
414
|
-
"boolean",
|
|
415
|
-
"null",
|
|
416
|
-
"undefined"
|
|
417
|
-
]
|
|
418
|
-
}
|
|
419
371
|
}
|
|
420
372
|
],
|
|
421
373
|
"events": [
|
|
@@ -427,10 +379,6 @@
|
|
|
427
379
|
"name": "value-changed",
|
|
428
380
|
"description": "Fired when the `value` property changes."
|
|
429
381
|
},
|
|
430
|
-
{
|
|
431
|
-
"name": "dirty-changed",
|
|
432
|
-
"description": "Fired when the `dirty` property changes."
|
|
433
|
-
},
|
|
434
382
|
{
|
|
435
383
|
"name": "invalid-changed",
|
|
436
384
|
"description": "Fired when the `invalid` property changes."
|
package/web-types.lit.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/radio-group",
|
|
4
|
-
"version": "24.2.0-
|
|
4
|
+
"version": "24.2.0-beta3",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"framework": "lit",
|
|
7
7
|
"framework-config": {
|
|
@@ -26,13 +26,6 @@
|
|
|
26
26
|
"kind": "expression"
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
|
-
{
|
|
30
|
-
"name": "?dirty",
|
|
31
|
-
"description": "Whether the field is dirty.\n\nThe field is automatically marked as dirty once the user triggers\nan `input` or `change` event. Additionally, the field can be manually\nmarked as dirty by setting the property to `true`.",
|
|
32
|
-
"value": {
|
|
33
|
-
"kind": "expression"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
29
|
{
|
|
37
30
|
"name": "?checked",
|
|
38
31
|
"description": "True if the element is checked.",
|
|
@@ -68,13 +61,6 @@
|
|
|
68
61
|
"kind": "expression"
|
|
69
62
|
}
|
|
70
63
|
},
|
|
71
|
-
{
|
|
72
|
-
"name": "@dirty-changed",
|
|
73
|
-
"description": "Fired when the `dirty` property changes.",
|
|
74
|
-
"value": {
|
|
75
|
-
"kind": "expression"
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
64
|
{
|
|
79
65
|
"name": "@checked-changed",
|
|
80
66
|
"description": "Fired when the `checked` property changes.",
|
|
@@ -117,13 +103,6 @@
|
|
|
117
103
|
"kind": "expression"
|
|
118
104
|
}
|
|
119
105
|
},
|
|
120
|
-
{
|
|
121
|
-
"name": "?dirty",
|
|
122
|
-
"description": "Whether the field is dirty.\n\nThe field is automatically marked as dirty once the user triggers\na `change` event. Additionally, the field can be manually marked\nas dirty by setting the property to `true`.",
|
|
123
|
-
"value": {
|
|
124
|
-
"kind": "expression"
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
106
|
{
|
|
128
107
|
"name": ".label",
|
|
129
108
|
"description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
|
|
@@ -180,13 +159,6 @@
|
|
|
180
159
|
"kind": "expression"
|
|
181
160
|
}
|
|
182
161
|
},
|
|
183
|
-
{
|
|
184
|
-
"name": "@dirty-changed",
|
|
185
|
-
"description": "Fired when the `dirty` property changes.",
|
|
186
|
-
"value": {
|
|
187
|
-
"kind": "expression"
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
162
|
{
|
|
191
163
|
"name": "@invalid-changed",
|
|
192
164
|
"description": "Fired when the `invalid` property changes.",
|