@vaadin/checkbox 25.3.0-alpha3 → 25.3.0-alpha4
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/custom-elements.json +13 -36
- package/package.json +10 -10
- package/src/styles/vaadin-checkbox-base-styles.js +0 -7
- package/src/vaadin-checkbox-mixin.d.ts +3 -3
- package/src/vaadin-checkbox-mixin.js +13 -7
- package/web-types.json +6 -24
- package/web-types.lit.json +4 -11
package/custom-elements.json
CHANGED
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
"type": {
|
|
197
197
|
"text": "string"
|
|
198
198
|
},
|
|
199
|
-
"description": "The name of the
|
|
199
|
+
"description": "The name of the control, which is submitted with the form data.",
|
|
200
200
|
"attribute": "name"
|
|
201
201
|
},
|
|
202
202
|
{
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
"type": {
|
|
207
207
|
"text": "boolean"
|
|
208
208
|
},
|
|
209
|
-
"description": "When true, the user cannot modify the value of the
|
|
209
|
+
"description": "When true, the user cannot modify the value of the control.\nThe difference between `disabled` and `readonly` is that the\nread-only element remains focusable, is announced by screen\nreaders and its value can be submitted as part of the form.",
|
|
210
210
|
"attribute": "readonly"
|
|
211
211
|
},
|
|
212
212
|
{
|
|
@@ -246,7 +246,6 @@
|
|
|
246
246
|
},
|
|
247
247
|
"description": "The value of the field.",
|
|
248
248
|
"attribute": "value",
|
|
249
|
-
"default": "'on'",
|
|
250
249
|
"inheritedFrom": {
|
|
251
250
|
"name": "InputMixin",
|
|
252
251
|
"package": "@vaadin/field-base/src/input-mixin.js"
|
|
@@ -379,7 +378,7 @@
|
|
|
379
378
|
"type": {
|
|
380
379
|
"text": "string"
|
|
381
380
|
},
|
|
382
|
-
"description": "The name of the
|
|
381
|
+
"description": "The name of the control, which is submitted with the form data.",
|
|
383
382
|
"fieldName": "name"
|
|
384
383
|
},
|
|
385
384
|
{
|
|
@@ -387,7 +386,7 @@
|
|
|
387
386
|
"type": {
|
|
388
387
|
"text": "boolean"
|
|
389
388
|
},
|
|
390
|
-
"description": "When true, the user cannot modify the value of the
|
|
389
|
+
"description": "When true, the user cannot modify the value of the control.\nThe difference between `disabled` and `readonly` is that the\nread-only element remains focusable, is announced by screen\nreaders and its value can be submitted as part of the form.",
|
|
391
390
|
"fieldName": "readonly"
|
|
392
391
|
},
|
|
393
392
|
{
|
|
@@ -655,7 +654,7 @@
|
|
|
655
654
|
"type": {
|
|
656
655
|
"text": "string"
|
|
657
656
|
},
|
|
658
|
-
"description": "The name of the
|
|
657
|
+
"description": "The name of the control, which is submitted with the form data.",
|
|
659
658
|
"attribute": "name",
|
|
660
659
|
"inheritedFrom": {
|
|
661
660
|
"name": "CheckboxMixin",
|
|
@@ -669,7 +668,7 @@
|
|
|
669
668
|
"type": {
|
|
670
669
|
"text": "boolean"
|
|
671
670
|
},
|
|
672
|
-
"description": "When true, the user cannot modify the value of the
|
|
671
|
+
"description": "When true, the user cannot modify the value of the control.\nThe difference between `disabled` and `readonly` is that the\nread-only element remains focusable, is announced by screen\nreaders and its value can be submitted as part of the form.",
|
|
673
672
|
"attribute": "readonly",
|
|
674
673
|
"inheritedFrom": {
|
|
675
674
|
"name": "CheckboxMixin",
|
|
@@ -690,18 +689,6 @@
|
|
|
690
689
|
"package": "@vaadin/field-base/src/validate-mixin.js"
|
|
691
690
|
}
|
|
692
691
|
},
|
|
693
|
-
{
|
|
694
|
-
"kind": "field",
|
|
695
|
-
"name": "tabindex",
|
|
696
|
-
"type": {
|
|
697
|
-
"text": "number"
|
|
698
|
-
},
|
|
699
|
-
"default": "0",
|
|
700
|
-
"inheritedFrom": {
|
|
701
|
-
"name": "CheckboxMixin",
|
|
702
|
-
"module": "src/vaadin-checkbox-mixin.js"
|
|
703
|
-
}
|
|
704
|
-
},
|
|
705
692
|
{
|
|
706
693
|
"kind": "method",
|
|
707
694
|
"name": "validate",
|
|
@@ -719,13 +706,15 @@
|
|
|
719
706
|
{
|
|
720
707
|
"kind": "field",
|
|
721
708
|
"name": "value",
|
|
709
|
+
"privacy": "public",
|
|
722
710
|
"type": {
|
|
723
711
|
"text": "string"
|
|
724
712
|
},
|
|
725
|
-
"
|
|
713
|
+
"description": "The value of the field.",
|
|
714
|
+
"attribute": "value",
|
|
726
715
|
"inheritedFrom": {
|
|
727
|
-
"name": "
|
|
728
|
-
"
|
|
716
|
+
"name": "InputMixin",
|
|
717
|
+
"package": "@vaadin/field-base/src/input-mixin.js"
|
|
729
718
|
}
|
|
730
719
|
}
|
|
731
720
|
],
|
|
@@ -900,7 +889,7 @@
|
|
|
900
889
|
"type": {
|
|
901
890
|
"text": "string"
|
|
902
891
|
},
|
|
903
|
-
"description": "The name of the
|
|
892
|
+
"description": "The name of the control, which is submitted with the form data.",
|
|
904
893
|
"fieldName": "name",
|
|
905
894
|
"inheritedFrom": {
|
|
906
895
|
"name": "CheckboxMixin",
|
|
@@ -912,7 +901,7 @@
|
|
|
912
901
|
"type": {
|
|
913
902
|
"text": "boolean"
|
|
914
903
|
},
|
|
915
|
-
"description": "When true, the user cannot modify the value of the
|
|
904
|
+
"description": "When true, the user cannot modify the value of the control.\nThe difference between `disabled` and `readonly` is that the\nread-only element remains focusable, is announced by screen\nreaders and its value can be submitted as part of the form.",
|
|
916
905
|
"fieldName": "readonly",
|
|
917
906
|
"inheritedFrom": {
|
|
918
907
|
"name": "CheckboxMixin",
|
|
@@ -931,18 +920,6 @@
|
|
|
931
920
|
"package": "@vaadin/field-base/src/validate-mixin.js"
|
|
932
921
|
}
|
|
933
922
|
},
|
|
934
|
-
{
|
|
935
|
-
"name": "tabindex",
|
|
936
|
-
"type": {
|
|
937
|
-
"text": "number"
|
|
938
|
-
},
|
|
939
|
-
"description": "Indicates whether the element can be focused and where it participates in sequential keyboard navigation.",
|
|
940
|
-
"fieldName": "tabindex",
|
|
941
|
-
"inheritedFrom": {
|
|
942
|
-
"name": "TabindexMixin",
|
|
943
|
-
"package": "@vaadin/a11y-base/src/tabindex-mixin.js"
|
|
944
|
-
}
|
|
945
|
-
},
|
|
946
923
|
{
|
|
947
924
|
"name": "value",
|
|
948
925
|
"type": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/checkbox",
|
|
3
|
-
"version": "25.3.0-
|
|
3
|
+
"version": "25.3.0-alpha4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,18 +35,18 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
38
|
-
"@vaadin/a11y-base": "25.3.0-
|
|
39
|
-
"@vaadin/component-base": "25.3.0-
|
|
40
|
-
"@vaadin/field-base": "25.3.0-
|
|
41
|
-
"@vaadin/vaadin-themable-mixin": "25.3.0-
|
|
38
|
+
"@vaadin/a11y-base": "25.3.0-alpha4",
|
|
39
|
+
"@vaadin/component-base": "25.3.0-alpha4",
|
|
40
|
+
"@vaadin/field-base": "25.3.0-alpha4",
|
|
41
|
+
"@vaadin/vaadin-themable-mixin": "25.3.0-alpha4",
|
|
42
42
|
"lit": "^3.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@vaadin/aura": "25.3.0-
|
|
46
|
-
"@vaadin/chai-plugins": "25.3.0-
|
|
47
|
-
"@vaadin/test-runner-commands": "25.3.0-
|
|
45
|
+
"@vaadin/aura": "25.3.0-alpha4",
|
|
46
|
+
"@vaadin/chai-plugins": "25.3.0-alpha4",
|
|
47
|
+
"@vaadin/test-runner-commands": "25.3.0-alpha4",
|
|
48
48
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
49
|
-
"@vaadin/vaadin-lumo-styles": "25.3.0-
|
|
49
|
+
"@vaadin/vaadin-lumo-styles": "25.3.0-alpha4",
|
|
50
50
|
"sinon": "^22.0.0"
|
|
51
51
|
},
|
|
52
52
|
"customElements": "custom-elements.json",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"web-types.json",
|
|
55
55
|
"web-types.lit.json"
|
|
56
56
|
],
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "ff0efcd52d3b8a081e8101d36cf7bef65ed71cb1"
|
|
58
58
|
}
|
|
@@ -20,13 +20,6 @@ const checkbox = css`
|
|
|
20
20
|
filter: var(--vaadin-checkbox-checkmark-color, var(--_filter));
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
:host([readonly]) {
|
|
24
|
-
--vaadin-checkbox-background: transparent;
|
|
25
|
-
--vaadin-checkbox-border-color: var(--vaadin-border-color);
|
|
26
|
-
--vaadin-checkbox-marker-color: var(--vaadin-text-color);
|
|
27
|
-
--_border-style: dashed;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
23
|
:host([indeterminate]) [part='checkbox']::after {
|
|
31
24
|
mask-image: var(--_vaadin-icon-minus);
|
|
32
25
|
}
|
|
@@ -39,14 +39,14 @@ export declare function CheckboxMixin<T extends Constructor<HTMLElement>>(
|
|
|
39
39
|
|
|
40
40
|
export declare class CheckboxMixinClass {
|
|
41
41
|
/**
|
|
42
|
-
* The name of the
|
|
42
|
+
* The name of the control, which is submitted with the form data.
|
|
43
43
|
*/
|
|
44
44
|
name: string;
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
|
-
* When true, the user cannot modify the value of the
|
|
47
|
+
* When true, the user cannot modify the value of the control.
|
|
48
48
|
* The difference between `disabled` and `readonly` is that the
|
|
49
|
-
* read-only
|
|
49
|
+
* read-only element remains focusable, is announced by screen
|
|
50
50
|
* readers and its value can be submitted as part of the form.
|
|
51
51
|
*/
|
|
52
52
|
readonly: boolean;
|
|
@@ -21,7 +21,7 @@ export const CheckboxMixin = (superclass) =>
|
|
|
21
21
|
static get properties() {
|
|
22
22
|
return {
|
|
23
23
|
/**
|
|
24
|
-
* The name of the
|
|
24
|
+
* The name of the control, which is submitted with the form data.
|
|
25
25
|
*/
|
|
26
26
|
name: {
|
|
27
27
|
type: String,
|
|
@@ -29,9 +29,9 @@ export const CheckboxMixin = (superclass) =>
|
|
|
29
29
|
},
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
* When true, the user cannot modify the value of the
|
|
32
|
+
* When true, the user cannot modify the value of the control.
|
|
33
33
|
* The difference between `disabled` and `readonly` is that the
|
|
34
|
-
* read-only
|
|
34
|
+
* read-only element remains focusable, is announced by screen
|
|
35
35
|
* readers and its value can be submitted as part of the form.
|
|
36
36
|
*/
|
|
37
37
|
readonly: {
|
|
@@ -58,12 +58,18 @@ export const CheckboxMixin = (superclass) =>
|
|
|
58
58
|
|
|
59
59
|
this._boundOnInputClick = this._onInputClick.bind(this);
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
/**
|
|
62
|
+
* Set the string "on" as the default value for the checkbox following the HTML specification:
|
|
63
|
+
* https://html.spec.whatwg.org/multipage/input.html#dom-input-value-default-on
|
|
64
|
+
* @internal to not document it in CEM
|
|
65
|
+
*/
|
|
63
66
|
this.value = 'on';
|
|
64
67
|
|
|
65
|
-
|
|
66
|
-
|
|
68
|
+
/**
|
|
69
|
+
* Set tabindex to 0 by default to not lose focus on click in Safari
|
|
70
|
+
* See https://github.com/vaadin/web-components/pull/6780
|
|
71
|
+
* @internal to not document it in CEM
|
|
72
|
+
*/
|
|
67
73
|
this.tabindex = 0;
|
|
68
74
|
}
|
|
69
75
|
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/checkbox",
|
|
4
|
-
"version": "25.3.0-
|
|
4
|
+
"version": "25.3.0-alpha4",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
113
|
"name": "name",
|
|
114
|
-
"description": "The name of the
|
|
114
|
+
"description": "The name of the control, which is submitted with the form data.",
|
|
115
115
|
"value": {
|
|
116
116
|
"type": [
|
|
117
117
|
"string"
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
122
|
"name": "readonly",
|
|
123
|
-
"description": "When true, the user cannot modify the value of the
|
|
123
|
+
"description": "When true, the user cannot modify the value of the control.\nThe difference between `disabled` and `readonly` is that the\nread-only element remains focusable, is announced by screen\nreaders and its value can be submitted as part of the form.",
|
|
124
124
|
"value": {
|
|
125
125
|
"type": [
|
|
126
126
|
"boolean"
|
|
@@ -136,15 +136,6 @@
|
|
|
136
136
|
]
|
|
137
137
|
}
|
|
138
138
|
},
|
|
139
|
-
{
|
|
140
|
-
"name": "tabindex",
|
|
141
|
-
"description": "Indicates whether the element can be focused and where it participates in sequential keyboard navigation.",
|
|
142
|
-
"value": {
|
|
143
|
-
"type": [
|
|
144
|
-
"number"
|
|
145
|
-
]
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
139
|
{
|
|
149
140
|
"name": "theme",
|
|
150
141
|
"description": "The theme variants to apply to the component.",
|
|
@@ -269,7 +260,7 @@
|
|
|
269
260
|
},
|
|
270
261
|
{
|
|
271
262
|
"name": "name",
|
|
272
|
-
"description": "The name of the
|
|
263
|
+
"description": "The name of the control, which is submitted with the form data.",
|
|
273
264
|
"value": {
|
|
274
265
|
"type": [
|
|
275
266
|
"string"
|
|
@@ -278,7 +269,7 @@
|
|
|
278
269
|
},
|
|
279
270
|
{
|
|
280
271
|
"name": "readonly",
|
|
281
|
-
"description": "When true, the user cannot modify the value of the
|
|
272
|
+
"description": "When true, the user cannot modify the value of the control.\nThe difference between `disabled` and `readonly` is that the\nread-only element remains focusable, is announced by screen\nreaders and its value can be submitted as part of the form.",
|
|
282
273
|
"value": {
|
|
283
274
|
"type": [
|
|
284
275
|
"boolean"
|
|
@@ -294,18 +285,9 @@
|
|
|
294
285
|
]
|
|
295
286
|
}
|
|
296
287
|
},
|
|
297
|
-
{
|
|
298
|
-
"name": "tabindex",
|
|
299
|
-
"description": "",
|
|
300
|
-
"value": {
|
|
301
|
-
"type": [
|
|
302
|
-
"number"
|
|
303
|
-
]
|
|
304
|
-
}
|
|
305
|
-
},
|
|
306
288
|
{
|
|
307
289
|
"name": "value",
|
|
308
|
-
"description": "",
|
|
290
|
+
"description": "The value of the field.",
|
|
309
291
|
"value": {
|
|
310
292
|
"type": [
|
|
311
293
|
"string"
|
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/checkbox",
|
|
4
|
-
"version": "25.3.0-
|
|
4
|
+
"version": "25.3.0-alpha4",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"framework": "lit",
|
|
7
7
|
"framework-config": {
|
|
@@ -98,14 +98,14 @@
|
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
100
|
"name": ".name",
|
|
101
|
-
"description": "The name of the
|
|
101
|
+
"description": "The name of the control, which is submitted with the form data.",
|
|
102
102
|
"value": {
|
|
103
103
|
"kind": "expression"
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
107
|
"name": "?readonly",
|
|
108
|
-
"description": "When true, the user cannot modify the value of the
|
|
108
|
+
"description": "When true, the user cannot modify the value of the control.\nThe difference between `disabled` and `readonly` is that the\nread-only element remains focusable, is announced by screen\nreaders and its value can be submitted as part of the form.",
|
|
109
109
|
"value": {
|
|
110
110
|
"kind": "expression"
|
|
111
111
|
}
|
|
@@ -117,16 +117,9 @@
|
|
|
117
117
|
"kind": "expression"
|
|
118
118
|
}
|
|
119
119
|
},
|
|
120
|
-
{
|
|
121
|
-
"name": ".tabindex",
|
|
122
|
-
"description": "",
|
|
123
|
-
"value": {
|
|
124
|
-
"kind": "expression"
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
120
|
{
|
|
128
121
|
"name": ".value",
|
|
129
|
-
"description": "",
|
|
122
|
+
"description": "The value of the field.",
|
|
130
123
|
"value": {
|
|
131
124
|
"kind": "expression"
|
|
132
125
|
}
|