@vaadin/text-field 25.2.0-rc2 → 25.3.0-alpha1
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 +44 -0
- package/package.json +11 -11
- package/src/vaadin-text-field-mixin.d.ts +8 -0
- package/src/vaadin-text-field-mixin.js +12 -1
- package/web-types.json +19 -1
- package/web-types.lit.json +8 -1
package/custom-elements.json
CHANGED
|
@@ -217,6 +217,16 @@
|
|
|
217
217
|
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
218
218
|
}
|
|
219
219
|
},
|
|
220
|
+
{
|
|
221
|
+
"kind": "field",
|
|
222
|
+
"name": "inputMode",
|
|
223
|
+
"privacy": "public",
|
|
224
|
+
"type": {
|
|
225
|
+
"text": "string"
|
|
226
|
+
},
|
|
227
|
+
"description": "A hint to the browser about the type of virtual keyboard to display\nwhen the user interacts with the field on a mobile device.\nList of available options at:\nhttps://developer.mozilla.org/en/docs/Web/HTML/Global_attributes/inputmode",
|
|
228
|
+
"attribute": "inputmode"
|
|
229
|
+
},
|
|
220
230
|
{
|
|
221
231
|
"kind": "field",
|
|
222
232
|
"name": "invalid",
|
|
@@ -533,6 +543,14 @@
|
|
|
533
543
|
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
534
544
|
}
|
|
535
545
|
},
|
|
546
|
+
{
|
|
547
|
+
"name": "inputmode",
|
|
548
|
+
"type": {
|
|
549
|
+
"text": "string"
|
|
550
|
+
},
|
|
551
|
+
"description": "A hint to the browser about the type of virtual keyboard to display\nwhen the user interacts with the field on a mobile device.\nList of available options at:\nhttps://developer.mozilla.org/en/docs/Web/HTML/Global_attributes/inputmode",
|
|
552
|
+
"fieldName": "inputMode"
|
|
553
|
+
},
|
|
536
554
|
{
|
|
537
555
|
"name": "invalid",
|
|
538
556
|
"type": {
|
|
@@ -912,6 +930,20 @@
|
|
|
912
930
|
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
913
931
|
}
|
|
914
932
|
},
|
|
933
|
+
{
|
|
934
|
+
"kind": "field",
|
|
935
|
+
"name": "inputMode",
|
|
936
|
+
"privacy": "public",
|
|
937
|
+
"type": {
|
|
938
|
+
"text": "string"
|
|
939
|
+
},
|
|
940
|
+
"description": "A hint to the browser about the type of virtual keyboard to display\nwhen the user interacts with the field on a mobile device.\nList of available options at:\nhttps://developer.mozilla.org/en/docs/Web/HTML/Global_attributes/inputmode",
|
|
941
|
+
"attribute": "inputmode",
|
|
942
|
+
"inheritedFrom": {
|
|
943
|
+
"name": "TextFieldMixin",
|
|
944
|
+
"module": "src/vaadin-text-field-mixin.js"
|
|
945
|
+
}
|
|
946
|
+
},
|
|
915
947
|
{
|
|
916
948
|
"kind": "field",
|
|
917
949
|
"name": "invalid",
|
|
@@ -1309,6 +1341,18 @@
|
|
|
1309
1341
|
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
1310
1342
|
}
|
|
1311
1343
|
},
|
|
1344
|
+
{
|
|
1345
|
+
"name": "inputmode",
|
|
1346
|
+
"type": {
|
|
1347
|
+
"text": "string"
|
|
1348
|
+
},
|
|
1349
|
+
"description": "A hint to the browser about the type of virtual keyboard to display\nwhen the user interacts with the field on a mobile device.\nList of available options at:\nhttps://developer.mozilla.org/en/docs/Web/HTML/Global_attributes/inputmode",
|
|
1350
|
+
"fieldName": "inputMode",
|
|
1351
|
+
"inheritedFrom": {
|
|
1352
|
+
"name": "TextFieldMixin",
|
|
1353
|
+
"module": "src/vaadin-text-field-mixin.js"
|
|
1354
|
+
}
|
|
1355
|
+
},
|
|
1312
1356
|
{
|
|
1313
1357
|
"name": "invalid",
|
|
1314
1358
|
"type": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/text-field",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.3.0-alpha1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,19 +35,19 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
38
|
-
"@vaadin/a11y-base": "25.
|
|
39
|
-
"@vaadin/component-base": "25.
|
|
40
|
-
"@vaadin/field-base": "25.
|
|
41
|
-
"@vaadin/input-container": "25.
|
|
42
|
-
"@vaadin/vaadin-themable-mixin": "25.
|
|
38
|
+
"@vaadin/a11y-base": "25.3.0-alpha1",
|
|
39
|
+
"@vaadin/component-base": "25.3.0-alpha1",
|
|
40
|
+
"@vaadin/field-base": "25.3.0-alpha1",
|
|
41
|
+
"@vaadin/input-container": "25.3.0-alpha1",
|
|
42
|
+
"@vaadin/vaadin-themable-mixin": "25.3.0-alpha1",
|
|
43
43
|
"lit": "^3.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@vaadin/aura": "25.
|
|
47
|
-
"@vaadin/chai-plugins": "25.
|
|
48
|
-
"@vaadin/test-runner-commands": "25.
|
|
46
|
+
"@vaadin/aura": "25.3.0-alpha1",
|
|
47
|
+
"@vaadin/chai-plugins": "25.3.0-alpha1",
|
|
48
|
+
"@vaadin/test-runner-commands": "25.3.0-alpha1",
|
|
49
49
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
50
|
-
"@vaadin/vaadin-lumo-styles": "25.
|
|
50
|
+
"@vaadin/vaadin-lumo-styles": "25.3.0-alpha1",
|
|
51
51
|
"sinon": "^22.0.0"
|
|
52
52
|
},
|
|
53
53
|
"customElements": "custom-elements.json",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"web-types.json",
|
|
56
56
|
"web-types.lit.json"
|
|
57
57
|
],
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "5824d54c995945aafd50d30edc2cb763a58a18b6"
|
|
59
59
|
}
|
|
@@ -57,4 +57,12 @@ export declare class TextFieldMixinClass {
|
|
|
57
57
|
* The pattern must match the entire value, not just some subset.
|
|
58
58
|
*/
|
|
59
59
|
pattern: string;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* A hint to the browser about the type of virtual keyboard to display
|
|
63
|
+
* when the user interacts with the field on a mobile device.
|
|
64
|
+
* List of available options at:
|
|
65
|
+
* https://developer.mozilla.org/en/docs/Web/HTML/Global_attributes/inputmode
|
|
66
|
+
*/
|
|
67
|
+
inputMode: string;
|
|
60
68
|
}
|
|
@@ -35,11 +35,22 @@ export const TextFieldMixin = (superClass) =>
|
|
|
35
35
|
pattern: {
|
|
36
36
|
type: String,
|
|
37
37
|
},
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* A hint to the browser about the type of virtual keyboard to display
|
|
41
|
+
* when the user interacts with the field on a mobile device.
|
|
42
|
+
* List of available options at:
|
|
43
|
+
* https://developer.mozilla.org/en/docs/Web/HTML/Global_attributes/inputmode
|
|
44
|
+
*/
|
|
45
|
+
inputMode: {
|
|
46
|
+
type: String,
|
|
47
|
+
attribute: 'inputmode',
|
|
48
|
+
},
|
|
38
49
|
};
|
|
39
50
|
}
|
|
40
51
|
|
|
41
52
|
static get delegateAttrs() {
|
|
42
|
-
return [...super.delegateAttrs, 'maxlength', 'minlength', 'pattern'];
|
|
53
|
+
return [...super.delegateAttrs, 'maxlength', 'minlength', 'pattern', 'inputMode'];
|
|
43
54
|
}
|
|
44
55
|
|
|
45
56
|
static get constraints() {
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/text-field",
|
|
4
|
-
"version": "25.
|
|
4
|
+
"version": "25.3.0-alpha1",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -118,6 +118,15 @@
|
|
|
118
118
|
]
|
|
119
119
|
}
|
|
120
120
|
},
|
|
121
|
+
{
|
|
122
|
+
"name": "inputmode",
|
|
123
|
+
"description": "A hint to the browser about the type of virtual keyboard to display\nwhen the user interacts with the field on a mobile device.\nList of available options at:\nhttps://developer.mozilla.org/en/docs/Web/HTML/Global_attributes/inputmode",
|
|
124
|
+
"value": {
|
|
125
|
+
"type": [
|
|
126
|
+
"string"
|
|
127
|
+
]
|
|
128
|
+
}
|
|
129
|
+
},
|
|
121
130
|
{
|
|
122
131
|
"name": "invalid",
|
|
123
132
|
"description": "Set to true when the field is invalid.",
|
|
@@ -348,6 +357,15 @@
|
|
|
348
357
|
]
|
|
349
358
|
}
|
|
350
359
|
},
|
|
360
|
+
{
|
|
361
|
+
"name": "inputMode",
|
|
362
|
+
"description": "A hint to the browser about the type of virtual keyboard to display\nwhen the user interacts with the field on a mobile device.\nList of available options at:\nhttps://developer.mozilla.org/en/docs/Web/HTML/Global_attributes/inputmode",
|
|
363
|
+
"value": {
|
|
364
|
+
"type": [
|
|
365
|
+
"string"
|
|
366
|
+
]
|
|
367
|
+
}
|
|
368
|
+
},
|
|
351
369
|
{
|
|
352
370
|
"name": "invalid",
|
|
353
371
|
"description": "Set to true when the field is invalid.",
|
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/text-field",
|
|
4
|
-
"version": "25.
|
|
4
|
+
"version": "25.3.0-alpha1",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"framework": "lit",
|
|
7
7
|
"framework-config": {
|
|
@@ -103,6 +103,13 @@
|
|
|
103
103
|
"kind": "expression"
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
|
+
{
|
|
107
|
+
"name": ".inputMode",
|
|
108
|
+
"description": "A hint to the browser about the type of virtual keyboard to display\nwhen the user interacts with the field on a mobile device.\nList of available options at:\nhttps://developer.mozilla.org/en/docs/Web/HTML/Global_attributes/inputmode",
|
|
109
|
+
"value": {
|
|
110
|
+
"kind": "expression"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
106
113
|
{
|
|
107
114
|
"name": "?invalid",
|
|
108
115
|
"description": "Set to true when the field is invalid.",
|