@vaadin/integer-field 25.1.0-alpha8 → 25.1.0-beta1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/integer-field",
3
- "version": "25.1.0-alpha8",
3
+ "version": "25.1.0-beta1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -34,15 +34,15 @@
34
34
  "web-component"
35
35
  ],
36
36
  "dependencies": {
37
- "@vaadin/component-base": "25.1.0-alpha8",
38
- "@vaadin/number-field": "25.1.0-alpha8"
37
+ "@vaadin/component-base": "25.1.0-beta1",
38
+ "@vaadin/number-field": "25.1.0-beta1"
39
39
  },
40
40
  "devDependencies": {
41
- "@vaadin/aura": "25.1.0-alpha8",
42
- "@vaadin/chai-plugins": "25.1.0-alpha8",
43
- "@vaadin/test-runner-commands": "25.1.0-alpha8",
41
+ "@vaadin/aura": "25.1.0-beta1",
42
+ "@vaadin/chai-plugins": "25.1.0-beta1",
43
+ "@vaadin/test-runner-commands": "25.1.0-beta1",
44
44
  "@vaadin/testing-helpers": "^2.0.0",
45
- "@vaadin/vaadin-lumo-styles": "25.1.0-alpha8",
45
+ "@vaadin/vaadin-lumo-styles": "25.1.0-beta1",
46
46
  "sinon": "^21.0.0"
47
47
  },
48
48
  "customElements": "custom-elements.json",
@@ -50,5 +50,5 @@
50
50
  "web-types.json",
51
51
  "web-types.lit.json"
52
52
  ],
53
- "gitHead": "810590c9c7682a9326c9352df795b5ea4891a71f"
53
+ "gitHead": "0ccf77c385fc6a92ac2a6344ce8804b94956226d"
54
54
  }
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/integer-field",
4
- "version": "25.1.0-alpha8",
4
+ "version": "25.1.0-beta1",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -11,30 +11,30 @@
11
11
  "description": "`<vaadin-integer-field>` is an input field web component that only accepts entering integer numbers.\n\n```html\n<vaadin-integer-field label=\"X\"></vaadin-integer-field>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------------|----------------\n`label` | The label element\n`input-field` | The element that wraps prefix, value and suffix\n`field-button` | Set on clear, decrease and increase buttons\n`clear-button` | The clear button\n`error-message` | The error message element\n`helper-text` | The helper text element wrapper\n`required-indicator` | The `required` state indicator element\n`increase-button` | Increase (\"plus\") button\n`decrease-button` | Decrease (\"minus\") button\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------------|---------------------------------\n`disabled` | Set when the element is disabled\n`has-value` | Set when the element has a value\n`has-label` | Set when the element has a label\n`has-helper` | Set when the element has helper text or slot\n`has-error-message` | Set when the element has an error message\n`has-tooltip` | Set when the element has a slotted tooltip\n`invalid` | Set when the element is invalid\n`input-prevented` | Temporarily set when invalid input is prevented\n`focused` | Set when the element is focused\n`focus-ring` | Set when the element is keyboard focused\n`readonly` | Set when the element is readonly\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\n### Change events\n\nDepending on the nature of the value change that the user attempts to commit e.g. by pressing Enter,\nthe component can fire either a `change` event or an `unparsable-change` event:\n\nValue change | Event\n:------------------------|:------------------\nempty => parsable | change\nempty => unparsable | unparsable-change\nparsable => empty | change\nparsable => parsable | change\nparsable => unparsable | change\nunparsable => empty | unparsable-change\nunparsable => parsable | change\nunparsable => unparsable | -\n\nNote, there is currently no way to detect unparsable => unparsable changes because the browser\ndoesn't provide access to unparsable values of native [type=number] inputs.",
12
12
  "attributes": [
13
13
  {
14
- "name": "disabled",
15
- "description": "If true, the user cannot interact with this element.",
14
+ "name": "accessible-name",
15
+ "description": "String used to label the component to screen reader users.",
16
16
  "value": {
17
17
  "type": [
18
- "boolean",
18
+ "string",
19
19
  "null",
20
20
  "undefined"
21
21
  ]
22
22
  }
23
23
  },
24
24
  {
25
- "name": "autofocus",
26
- "description": "Specify that this control should have input focus when the page loads.",
25
+ "name": "accessible-name-ref",
26
+ "description": "Id of the element used as label of the component to screen reader users.",
27
27
  "value": {
28
28
  "type": [
29
- "boolean",
29
+ "string",
30
30
  "null",
31
31
  "undefined"
32
32
  ]
33
33
  }
34
34
  },
35
35
  {
36
- "name": "label",
37
- "description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
36
+ "name": "allowed-char-pattern",
37
+ "description": "A pattern matched against individual characters the user inputs.\n\nWhen set, the field will prevent:\n- `keydown` events if the entered key doesn't match `/^allowedCharPattern$/`\n- `paste` events if the pasted text doesn't match `/^allowedCharPattern*$/`\n- `drop` events if the dropped text doesn't match `/^allowedCharPattern*$/`\n\nFor example, to allow entering only numbers and minus signs, use:\n`allowedCharPattern = \"[\\\\d-]\"`",
38
38
  "value": {
39
39
  "type": [
40
40
  "string",
@@ -44,85 +44,85 @@
44
44
  }
45
45
  },
46
46
  {
47
- "name": "invalid",
48
- "description": "Set to true when the field is invalid.",
47
+ "name": "autocapitalize",
48
+ "description": "This is a property supported by Safari and Chrome that is used to control whether\nautocapitalization should be enabled when the user is entering/editing the text.\nPossible values are:\ncharacters: Characters capitalization.\nwords: Words capitalization.\nsentences: Sentences capitalization.\nnone: No capitalization.",
49
49
  "value": {
50
50
  "type": [
51
- "boolean",
51
+ "string",
52
52
  "null",
53
53
  "undefined"
54
54
  ]
55
55
  }
56
56
  },
57
57
  {
58
- "name": "manual-validation",
59
- "description": "Set to true to enable manual validation mode. This mode disables automatic\nconstraint validation, allowing you to control the validation process yourself.\nYou can still trigger constraint validation manually with the `validate()` method\nor use `checkValidity()` to assess the component's validity without affecting\nthe invalid state. In manual validation mode, you can also manipulate\nthe `invalid` property directly through your application logic without conflicts\nwith the component's internal validation.",
58
+ "name": "autocomplete",
59
+ "description": "Whether the value of the control can be automatically completed by the browser.\nList of available options at:\nhttps://developer.mozilla.org/en/docs/Web/HTML/Element/input#attr-autocomplete",
60
60
  "value": {
61
61
  "type": [
62
- "boolean",
62
+ "string",
63
63
  "null",
64
64
  "undefined"
65
65
  ]
66
66
  }
67
67
  },
68
68
  {
69
- "name": "required",
70
- "description": "Specifies that the user must fill in a value.",
69
+ "name": "autocorrect",
70
+ "description": "This is a property supported by Safari that is used to control whether\nautocorrection should be enabled when the user is entering/editing the text.\nPossible values are:\non: Enable autocorrection.\noff: Disable autocorrection.",
71
71
  "value": {
72
72
  "type": [
73
- "boolean",
73
+ "string",
74
74
  "null",
75
75
  "undefined"
76
76
  ]
77
77
  }
78
78
  },
79
79
  {
80
- "name": "error-message",
81
- "description": "Error to show when the field is invalid.",
80
+ "name": "autofocus",
81
+ "description": "Specify that this control should have input focus when the page loads.",
82
82
  "value": {
83
83
  "type": [
84
- "string",
84
+ "boolean",
85
85
  "null",
86
86
  "undefined"
87
87
  ]
88
88
  }
89
89
  },
90
90
  {
91
- "name": "helper-text",
92
- "description": "String used for the helper text.",
91
+ "name": "autoselect",
92
+ "description": "If true, the input text gets fully selected when the field is focused using click or touch / tap.",
93
93
  "value": {
94
94
  "type": [
95
- "string",
95
+ "boolean",
96
96
  "null",
97
97
  "undefined"
98
98
  ]
99
99
  }
100
100
  },
101
101
  {
102
- "name": "accessible-name",
103
- "description": "String used to label the component to screen reader users.",
102
+ "name": "clear-button-visible",
103
+ "description": "Set to true to display the clear icon which clears the input.\n\nIt is up to the component to choose where to place the clear icon:\nin the Shadow DOM or in the light DOM. In any way, a reference to\nthe clear icon element should be provided via the `clearElement` getter.",
104
104
  "value": {
105
105
  "type": [
106
- "string",
106
+ "boolean",
107
107
  "null",
108
108
  "undefined"
109
109
  ]
110
110
  }
111
111
  },
112
112
  {
113
- "name": "accessible-name-ref",
114
- "description": "Id of the element used as label of the component to screen reader users.",
113
+ "name": "disabled",
114
+ "description": "If true, the user cannot interact with this element.",
115
115
  "value": {
116
116
  "type": [
117
- "string",
117
+ "boolean",
118
118
  "null",
119
119
  "undefined"
120
120
  ]
121
121
  }
122
122
  },
123
123
  {
124
- "name": "value",
125
- "description": "The value of the field.",
124
+ "name": "error-message",
125
+ "description": "Error to show when the field is invalid.",
126
126
  "value": {
127
127
  "type": [
128
128
  "string",
@@ -132,74 +132,74 @@
132
132
  }
133
133
  },
134
134
  {
135
- "name": "clear-button-visible",
136
- "description": "Set to true to display the clear icon which clears the input.\n\nIt is up to the component to choose where to place the clear icon:\nin the Shadow DOM or in the light DOM. In any way, a reference to\nthe clear icon element should be provided via the `clearElement` getter.",
135
+ "name": "helper-text",
136
+ "description": "String used for the helper text.",
137
137
  "value": {
138
138
  "type": [
139
- "boolean",
139
+ "string",
140
140
  "null",
141
141
  "undefined"
142
142
  ]
143
143
  }
144
144
  },
145
145
  {
146
- "name": "allowed-char-pattern",
147
- "description": "A pattern matched against individual characters the user inputs.\n\nWhen set, the field will prevent:\n- `keydown` events if the entered key doesn't match `/^allowedCharPattern$/`\n- `paste` events if the pasted text doesn't match `/^allowedCharPattern*$/`\n- `drop` events if the dropped text doesn't match `/^allowedCharPattern*$/`\n\nFor example, to allow entering only numbers and minus signs, use:\n`allowedCharPattern = \"[\\\\d-]\"`",
146
+ "name": "invalid",
147
+ "description": "Set to true when the field is invalid.",
148
148
  "value": {
149
149
  "type": [
150
- "string",
150
+ "boolean",
151
151
  "null",
152
152
  "undefined"
153
153
  ]
154
154
  }
155
155
  },
156
156
  {
157
- "name": "autoselect",
158
- "description": "If true, the input text gets fully selected when the field is focused using click or touch / tap.",
157
+ "name": "label",
158
+ "description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
159
159
  "value": {
160
160
  "type": [
161
- "boolean",
161
+ "string",
162
162
  "null",
163
163
  "undefined"
164
164
  ]
165
165
  }
166
166
  },
167
167
  {
168
- "name": "name",
169
- "description": "The name of this field.",
168
+ "name": "manual-validation",
169
+ "description": "Set to true to enable manual validation mode. This mode disables automatic\nconstraint validation, allowing you to control the validation process yourself.\nYou can still trigger constraint validation manually with the `validate()` method\nor use `checkValidity()` to assess the component's validity without affecting\nthe invalid state. In manual validation mode, you can also manipulate\nthe `invalid` property directly through your application logic without conflicts\nwith the component's internal validation.",
170
170
  "value": {
171
171
  "type": [
172
- "string",
172
+ "boolean",
173
173
  "null",
174
174
  "undefined"
175
175
  ]
176
176
  }
177
177
  },
178
178
  {
179
- "name": "placeholder",
180
- "description": "A hint to the user of what can be entered in the field.",
179
+ "name": "max",
180
+ "description": "The maximum value of the field.",
181
181
  "value": {
182
182
  "type": [
183
- "string",
183
+ "number",
184
184
  "null",
185
185
  "undefined"
186
186
  ]
187
187
  }
188
188
  },
189
189
  {
190
- "name": "readonly",
191
- "description": "When present, it specifies that the field is read-only.",
190
+ "name": "min",
191
+ "description": "The minimum value of the field.",
192
192
  "value": {
193
193
  "type": [
194
- "boolean",
194
+ "number",
195
195
  "null",
196
196
  "undefined"
197
197
  ]
198
198
  }
199
199
  },
200
200
  {
201
- "name": "title",
202
- "description": "The text usually displayed in a tooltip popup when the mouse is over the field.",
201
+ "name": "name",
202
+ "description": "The name of this field.",
203
203
  "value": {
204
204
  "type": [
205
205
  "string",
@@ -209,8 +209,8 @@
209
209
  }
210
210
  },
211
211
  {
212
- "name": "autocomplete",
213
- "description": "Whether the value of the control can be automatically completed by the browser.\nList of available options at:\nhttps://developer.mozilla.org/en/docs/Web/HTML/Element/input#attr-autocomplete",
212
+ "name": "placeholder",
213
+ "description": "A hint to the user of what can be entered in the field.",
214
214
  "value": {
215
215
  "type": [
216
216
  "string",
@@ -220,72 +220,72 @@
220
220
  }
221
221
  },
222
222
  {
223
- "name": "autocorrect",
224
- "description": "This is a property supported by Safari that is used to control whether\nautocorrection should be enabled when the user is entering/editing the text.\nPossible values are:\non: Enable autocorrection.\noff: Disable autocorrection.",
223
+ "name": "readonly",
224
+ "description": "When present, it specifies that the field is read-only.",
225
225
  "value": {
226
226
  "type": [
227
- "string",
227
+ "boolean",
228
228
  "null",
229
229
  "undefined"
230
230
  ]
231
231
  }
232
232
  },
233
233
  {
234
- "name": "autocapitalize",
235
- "description": "This is a property supported by Safari and Chrome that is used to control whether\nautocapitalization should be enabled when the user is entering/editing the text.\nPossible values are:\ncharacters: Characters capitalization.\nwords: Words capitalization.\nsentences: Sentences capitalization.\nnone: No capitalization.",
234
+ "name": "required",
235
+ "description": "Specifies that the user must fill in a value.",
236
236
  "value": {
237
237
  "type": [
238
- "string",
238
+ "boolean",
239
239
  "null",
240
240
  "undefined"
241
241
  ]
242
242
  }
243
243
  },
244
244
  {
245
- "name": "min",
246
- "description": "The minimum value of the field.",
245
+ "name": "step",
246
+ "description": "Specifies the allowed number intervals of the field.",
247
247
  "value": {
248
248
  "type": [
249
- "number",
250
- "null",
251
- "undefined"
249
+ "number"
252
250
  ]
253
251
  }
254
252
  },
255
253
  {
256
- "name": "max",
257
- "description": "The maximum value of the field.",
254
+ "name": "step-buttons-visible",
255
+ "description": "Set to true to show increase/decrease buttons.",
258
256
  "value": {
259
257
  "type": [
260
- "number",
258
+ "boolean",
261
259
  "null",
262
260
  "undefined"
263
261
  ]
264
262
  }
265
263
  },
266
264
  {
267
- "name": "step",
268
- "description": "Specifies the allowed number intervals of the field.",
265
+ "name": "theme",
266
+ "description": "The theme variants to apply to the component.",
269
267
  "value": {
270
268
  "type": [
271
- "number"
269
+ "string",
270
+ "null",
271
+ "undefined"
272
272
  ]
273
273
  }
274
274
  },
275
275
  {
276
- "name": "step-buttons-visible",
277
- "description": "Set to true to show increase/decrease buttons.",
276
+ "name": "title",
277
+ "description": "The text usually displayed in a tooltip popup when the mouse is over the field.",
278
278
  "value": {
279
279
  "type": [
280
- "boolean",
280
+ "string",
281
281
  "null",
282
282
  "undefined"
283
283
  ]
284
284
  }
285
285
  },
286
286
  {
287
- "name": "theme",
288
- "description": "The theme variants to apply to the component.",
287
+ "name": "value",
288
+ "description": "The value of the field.",
289
289
  "value": {
290
290
  "type": [
291
291
  "string",
@@ -298,30 +298,30 @@
298
298
  "js": {
299
299
  "properties": [
300
300
  {
301
- "name": "disabled",
302
- "description": "If true, the user cannot interact with this element.",
301
+ "name": "accessibleName",
302
+ "description": "String used to label the component to screen reader users.",
303
303
  "value": {
304
304
  "type": [
305
- "boolean",
305
+ "string",
306
306
  "null",
307
307
  "undefined"
308
308
  ]
309
309
  }
310
310
  },
311
311
  {
312
- "name": "autofocus",
313
- "description": "Specify that this control should have input focus when the page loads.",
312
+ "name": "accessibleNameRef",
313
+ "description": "Id of the element used as label of the component to screen reader users.",
314
314
  "value": {
315
315
  "type": [
316
- "boolean",
316
+ "string",
317
317
  "null",
318
318
  "undefined"
319
319
  ]
320
320
  }
321
321
  },
322
322
  {
323
- "name": "label",
324
- "description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
323
+ "name": "allowedCharPattern",
324
+ "description": "A pattern matched against individual characters the user inputs.\n\nWhen set, the field will prevent:\n- `keydown` events if the entered key doesn't match `/^allowedCharPattern$/`\n- `paste` events if the pasted text doesn't match `/^allowedCharPattern*$/`\n- `drop` events if the dropped text doesn't match `/^allowedCharPattern*$/`\n\nFor example, to allow entering only numbers and minus signs, use:\n`allowedCharPattern = \"[\\\\d-]\"`",
325
325
  "value": {
326
326
  "type": [
327
327
  "string",
@@ -331,85 +331,85 @@
331
331
  }
332
332
  },
333
333
  {
334
- "name": "invalid",
335
- "description": "Set to true when the field is invalid.",
334
+ "name": "autocapitalize",
335
+ "description": "This is a property supported by Safari and Chrome that is used to control whether\nautocapitalization should be enabled when the user is entering/editing the text.\nPossible values are:\ncharacters: Characters capitalization.\nwords: Words capitalization.\nsentences: Sentences capitalization.\nnone: No capitalization.",
336
336
  "value": {
337
337
  "type": [
338
- "boolean",
338
+ "string",
339
339
  "null",
340
340
  "undefined"
341
341
  ]
342
342
  }
343
343
  },
344
344
  {
345
- "name": "manualValidation",
346
- "description": "Set to true to enable manual validation mode. This mode disables automatic\nconstraint validation, allowing you to control the validation process yourself.\nYou can still trigger constraint validation manually with the `validate()` method\nor use `checkValidity()` to assess the component's validity without affecting\nthe invalid state. In manual validation mode, you can also manipulate\nthe `invalid` property directly through your application logic without conflicts\nwith the component's internal validation.",
345
+ "name": "autocomplete",
346
+ "description": "Whether the value of the control can be automatically completed by the browser.\nList of available options at:\nhttps://developer.mozilla.org/en/docs/Web/HTML/Element/input#attr-autocomplete",
347
347
  "value": {
348
348
  "type": [
349
- "boolean",
349
+ "string",
350
350
  "null",
351
351
  "undefined"
352
352
  ]
353
353
  }
354
354
  },
355
355
  {
356
- "name": "required",
357
- "description": "Specifies that the user must fill in a value.",
356
+ "name": "autocorrect",
357
+ "description": "This is a property supported by Safari that is used to control whether\nautocorrection should be enabled when the user is entering/editing the text.\nPossible values are:\non: Enable autocorrection.\noff: Disable autocorrection.",
358
358
  "value": {
359
359
  "type": [
360
- "boolean",
360
+ "string",
361
361
  "null",
362
362
  "undefined"
363
363
  ]
364
364
  }
365
365
  },
366
366
  {
367
- "name": "errorMessage",
368
- "description": "Error to show when the field is invalid.",
367
+ "name": "autofocus",
368
+ "description": "Specify that this control should have input focus when the page loads.",
369
369
  "value": {
370
370
  "type": [
371
- "string",
371
+ "boolean",
372
372
  "null",
373
373
  "undefined"
374
374
  ]
375
375
  }
376
376
  },
377
377
  {
378
- "name": "helperText",
379
- "description": "String used for the helper text.",
378
+ "name": "autoselect",
379
+ "description": "If true, the input text gets fully selected when the field is focused using click or touch / tap.",
380
380
  "value": {
381
381
  "type": [
382
- "string",
382
+ "boolean",
383
383
  "null",
384
384
  "undefined"
385
385
  ]
386
386
  }
387
387
  },
388
388
  {
389
- "name": "accessibleName",
390
- "description": "String used to label the component to screen reader users.",
389
+ "name": "clearButtonVisible",
390
+ "description": "Set to true to display the clear icon which clears the input.\n\nIt is up to the component to choose where to place the clear icon:\nin the Shadow DOM or in the light DOM. In any way, a reference to\nthe clear icon element should be provided via the `clearElement` getter.",
391
391
  "value": {
392
392
  "type": [
393
- "string",
393
+ "boolean",
394
394
  "null",
395
395
  "undefined"
396
396
  ]
397
397
  }
398
398
  },
399
399
  {
400
- "name": "accessibleNameRef",
401
- "description": "Id of the element used as label of the component to screen reader users.",
400
+ "name": "disabled",
401
+ "description": "If true, the user cannot interact with this element.",
402
402
  "value": {
403
403
  "type": [
404
- "string",
404
+ "boolean",
405
405
  "null",
406
406
  "undefined"
407
407
  ]
408
408
  }
409
409
  },
410
410
  {
411
- "name": "value",
412
- "description": "The value of the field.",
411
+ "name": "errorMessage",
412
+ "description": "Error to show when the field is invalid.",
413
413
  "value": {
414
414
  "type": [
415
415
  "string",
@@ -419,74 +419,74 @@
419
419
  }
420
420
  },
421
421
  {
422
- "name": "clearButtonVisible",
423
- "description": "Set to true to display the clear icon which clears the input.\n\nIt is up to the component to choose where to place the clear icon:\nin the Shadow DOM or in the light DOM. In any way, a reference to\nthe clear icon element should be provided via the `clearElement` getter.",
422
+ "name": "helperText",
423
+ "description": "String used for the helper text.",
424
424
  "value": {
425
425
  "type": [
426
- "boolean",
426
+ "string",
427
427
  "null",
428
428
  "undefined"
429
429
  ]
430
430
  }
431
431
  },
432
432
  {
433
- "name": "allowedCharPattern",
434
- "description": "A pattern matched against individual characters the user inputs.\n\nWhen set, the field will prevent:\n- `keydown` events if the entered key doesn't match `/^allowedCharPattern$/`\n- `paste` events if the pasted text doesn't match `/^allowedCharPattern*$/`\n- `drop` events if the dropped text doesn't match `/^allowedCharPattern*$/`\n\nFor example, to allow entering only numbers and minus signs, use:\n`allowedCharPattern = \"[\\\\d-]\"`",
433
+ "name": "invalid",
434
+ "description": "Set to true when the field is invalid.",
435
435
  "value": {
436
436
  "type": [
437
- "string",
437
+ "boolean",
438
438
  "null",
439
439
  "undefined"
440
440
  ]
441
441
  }
442
442
  },
443
443
  {
444
- "name": "autoselect",
445
- "description": "If true, the input text gets fully selected when the field is focused using click or touch / tap.",
444
+ "name": "label",
445
+ "description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
446
446
  "value": {
447
447
  "type": [
448
- "boolean",
448
+ "string",
449
449
  "null",
450
450
  "undefined"
451
451
  ]
452
452
  }
453
453
  },
454
454
  {
455
- "name": "name",
456
- "description": "The name of this field.",
455
+ "name": "manualValidation",
456
+ "description": "Set to true to enable manual validation mode. This mode disables automatic\nconstraint validation, allowing you to control the validation process yourself.\nYou can still trigger constraint validation manually with the `validate()` method\nor use `checkValidity()` to assess the component's validity without affecting\nthe invalid state. In manual validation mode, you can also manipulate\nthe `invalid` property directly through your application logic without conflicts\nwith the component's internal validation.",
457
457
  "value": {
458
458
  "type": [
459
- "string",
459
+ "boolean",
460
460
  "null",
461
461
  "undefined"
462
462
  ]
463
463
  }
464
464
  },
465
465
  {
466
- "name": "placeholder",
467
- "description": "A hint to the user of what can be entered in the field.",
466
+ "name": "max",
467
+ "description": "The maximum value of the field.",
468
468
  "value": {
469
469
  "type": [
470
- "string",
470
+ "number",
471
471
  "null",
472
472
  "undefined"
473
473
  ]
474
474
  }
475
475
  },
476
476
  {
477
- "name": "readonly",
478
- "description": "When present, it specifies that the field is read-only.",
477
+ "name": "min",
478
+ "description": "The minimum value of the field.",
479
479
  "value": {
480
480
  "type": [
481
- "boolean",
481
+ "number",
482
482
  "null",
483
483
  "undefined"
484
484
  ]
485
485
  }
486
486
  },
487
487
  {
488
- "name": "title",
489
- "description": "The text usually displayed in a tooltip popup when the mouse is over the field.",
488
+ "name": "name",
489
+ "description": "The name of this field.",
490
490
  "value": {
491
491
  "type": [
492
492
  "string",
@@ -496,8 +496,8 @@
496
496
  }
497
497
  },
498
498
  {
499
- "name": "autocomplete",
500
- "description": "Whether the value of the control can be automatically completed by the browser.\nList of available options at:\nhttps://developer.mozilla.org/en/docs/Web/HTML/Element/input#attr-autocomplete",
499
+ "name": "placeholder",
500
+ "description": "A hint to the user of what can be entered in the field.",
501
501
  "value": {
502
502
  "type": [
503
503
  "string",
@@ -507,64 +507,64 @@
507
507
  }
508
508
  },
509
509
  {
510
- "name": "autocorrect",
511
- "description": "This is a property supported by Safari that is used to control whether\nautocorrection should be enabled when the user is entering/editing the text.\nPossible values are:\non: Enable autocorrection.\noff: Disable autocorrection.",
510
+ "name": "readonly",
511
+ "description": "When present, it specifies that the field is read-only.",
512
512
  "value": {
513
513
  "type": [
514
- "string",
514
+ "boolean",
515
515
  "null",
516
516
  "undefined"
517
517
  ]
518
518
  }
519
519
  },
520
520
  {
521
- "name": "autocapitalize",
522
- "description": "This is a property supported by Safari and Chrome that is used to control whether\nautocapitalization should be enabled when the user is entering/editing the text.\nPossible values are:\ncharacters: Characters capitalization.\nwords: Words capitalization.\nsentences: Sentences capitalization.\nnone: No capitalization.",
521
+ "name": "required",
522
+ "description": "Specifies that the user must fill in a value.",
523
523
  "value": {
524
524
  "type": [
525
- "string",
525
+ "boolean",
526
526
  "null",
527
527
  "undefined"
528
528
  ]
529
529
  }
530
530
  },
531
531
  {
532
- "name": "min",
533
- "description": "The minimum value of the field.",
532
+ "name": "step",
533
+ "description": "Specifies the allowed number intervals of the field.",
534
534
  "value": {
535
535
  "type": [
536
- "number",
537
- "null",
538
- "undefined"
536
+ "number"
539
537
  ]
540
538
  }
541
539
  },
542
540
  {
543
- "name": "max",
544
- "description": "The maximum value of the field.",
541
+ "name": "stepButtonsVisible",
542
+ "description": "Set to true to show increase/decrease buttons.",
545
543
  "value": {
546
544
  "type": [
547
- "number",
545
+ "boolean",
548
546
  "null",
549
547
  "undefined"
550
548
  ]
551
549
  }
552
550
  },
553
551
  {
554
- "name": "step",
555
- "description": "Specifies the allowed number intervals of the field.",
552
+ "name": "title",
553
+ "description": "The text usually displayed in a tooltip popup when the mouse is over the field.",
556
554
  "value": {
557
555
  "type": [
558
- "number"
556
+ "string",
557
+ "null",
558
+ "undefined"
559
559
  ]
560
560
  }
561
561
  },
562
562
  {
563
- "name": "stepButtonsVisible",
564
- "description": "Set to true to show increase/decrease buttons.",
563
+ "name": "value",
564
+ "description": "The value of the field.",
565
565
  "value": {
566
566
  "type": [
567
- "boolean",
567
+ "string",
568
568
  "null",
569
569
  "undefined"
570
570
  ]
@@ -572,10 +572,6 @@
572
572
  }
573
573
  ],
574
574
  "events": [
575
- {
576
- "name": "validated",
577
- "description": "Fired whenever the field is validated."
578
- },
579
575
  {
580
576
  "name": "change",
581
577
  "description": "Fired when the user commits a value change."
@@ -588,6 +584,10 @@
588
584
  "name": "invalid-changed",
589
585
  "description": "Fired when the `invalid` property changes."
590
586
  },
587
+ {
588
+ "name": "validated",
589
+ "description": "Fired whenever the field is validated."
590
+ },
591
591
  {
592
592
  "name": "value-changed",
593
593
  "description": "Fired when the `value` property changes."
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/integer-field",
4
- "version": "25.1.0-alpha8",
4
+ "version": "25.1.0-beta1",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -19,13 +19,6 @@
19
19
  "description": "`<vaadin-integer-field>` is an input field web component that only accepts entering integer numbers.\n\n```html\n<vaadin-integer-field label=\"X\"></vaadin-integer-field>\n```\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------------|----------------\n`label` | The label element\n`input-field` | The element that wraps prefix, value and suffix\n`field-button` | Set on clear, decrease and increase buttons\n`clear-button` | The clear button\n`error-message` | The error message element\n`helper-text` | The helper text element wrapper\n`required-indicator` | The `required` state indicator element\n`increase-button` | Increase (\"plus\") button\n`decrease-button` | Decrease (\"minus\") button\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------------|---------------------------------\n`disabled` | Set when the element is disabled\n`has-value` | Set when the element has a value\n`has-label` | Set when the element has a label\n`has-helper` | Set when the element has helper text or slot\n`has-error-message` | Set when the element has an error message\n`has-tooltip` | Set when the element has a slotted tooltip\n`invalid` | Set when the element is invalid\n`input-prevented` | Temporarily set when invalid input is prevented\n`focused` | Set when the element is focused\n`focus-ring` | Set when the element is keyboard focused\n`readonly` | Set when the element is readonly\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\n### Change events\n\nDepending on the nature of the value change that the user attempts to commit e.g. by pressing Enter,\nthe component can fire either a `change` event or an `unparsable-change` event:\n\nValue change | Event\n:------------------------|:------------------\nempty => parsable | change\nempty => unparsable | unparsable-change\nparsable => empty | change\nparsable => parsable | change\nparsable => unparsable | change\nunparsable => empty | unparsable-change\nunparsable => parsable | change\nunparsable => unparsable | -\n\nNote, there is currently no way to detect unparsable => unparsable changes because the browser\ndoesn't provide access to unparsable values of native [type=number] inputs.",
20
20
  "extension": true,
21
21
  "attributes": [
22
- {
23
- "name": "?disabled",
24
- "description": "If true, the user cannot interact with this element.",
25
- "value": {
26
- "kind": "expression"
27
- }
28
- },
29
22
  {
30
23
  "name": "?autofocus",
31
24
  "description": "Specify that this control should have input focus when the page loads.",
@@ -34,36 +27,36 @@
34
27
  }
35
28
  },
36
29
  {
37
- "name": "?invalid",
38
- "description": "Set to true when the field is invalid.",
30
+ "name": "?autoselect",
31
+ "description": "If true, the input text gets fully selected when the field is focused using click or touch / tap.",
39
32
  "value": {
40
33
  "kind": "expression"
41
34
  }
42
35
  },
43
36
  {
44
- "name": "?manualValidation",
45
- "description": "Set to true to enable manual validation mode. This mode disables automatic\nconstraint validation, allowing you to control the validation process yourself.\nYou can still trigger constraint validation manually with the `validate()` method\nor use `checkValidity()` to assess the component's validity without affecting\nthe invalid state. In manual validation mode, you can also manipulate\nthe `invalid` property directly through your application logic without conflicts\nwith the component's internal validation.",
37
+ "name": "?clearButtonVisible",
38
+ "description": "Set to true to display the clear icon which clears the input.\n\nIt is up to the component to choose where to place the clear icon:\nin the Shadow DOM or in the light DOM. In any way, a reference to\nthe clear icon element should be provided via the `clearElement` getter.",
46
39
  "value": {
47
40
  "kind": "expression"
48
41
  }
49
42
  },
50
43
  {
51
- "name": "?required",
52
- "description": "Specifies that the user must fill in a value.",
44
+ "name": "?disabled",
45
+ "description": "If true, the user cannot interact with this element.",
53
46
  "value": {
54
47
  "kind": "expression"
55
48
  }
56
49
  },
57
50
  {
58
- "name": "?clearButtonVisible",
59
- "description": "Set to true to display the clear icon which clears the input.\n\nIt is up to the component to choose where to place the clear icon:\nin the Shadow DOM or in the light DOM. In any way, a reference to\nthe clear icon element should be provided via the `clearElement` getter.",
51
+ "name": "?invalid",
52
+ "description": "Set to true when the field is invalid.",
60
53
  "value": {
61
54
  "kind": "expression"
62
55
  }
63
56
  },
64
57
  {
65
- "name": "?autoselect",
66
- "description": "If true, the input text gets fully selected when the field is focused using click or touch / tap.",
58
+ "name": "?manualValidation",
59
+ "description": "Set to true to enable manual validation mode. This mode disables automatic\nconstraint validation, allowing you to control the validation process yourself.\nYou can still trigger constraint validation manually with the `validate()` method\nor use `checkValidity()` to assess the component's validity without affecting\nthe invalid state. In manual validation mode, you can also manipulate\nthe `invalid` property directly through your application logic without conflicts\nwith the component's internal validation.",
67
60
  "value": {
68
61
  "kind": "expression"
69
62
  }
@@ -76,127 +69,127 @@
76
69
  }
77
70
  },
78
71
  {
79
- "name": "?stepButtonsVisible",
80
- "description": "Set to true to show increase/decrease buttons.",
72
+ "name": "?required",
73
+ "description": "Specifies that the user must fill in a value.",
81
74
  "value": {
82
75
  "kind": "expression"
83
76
  }
84
77
  },
85
78
  {
86
- "name": ".label",
87
- "description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
79
+ "name": "?stepButtonsVisible",
80
+ "description": "Set to true to show increase/decrease buttons.",
88
81
  "value": {
89
82
  "kind": "expression"
90
83
  }
91
84
  },
92
85
  {
93
- "name": ".errorMessage",
94
- "description": "Error to show when the field is invalid.",
86
+ "name": ".accessibleName",
87
+ "description": "String used to label the component to screen reader users.",
95
88
  "value": {
96
89
  "kind": "expression"
97
90
  }
98
91
  },
99
92
  {
100
- "name": ".helperText",
101
- "description": "String used for the helper text.",
93
+ "name": ".accessibleNameRef",
94
+ "description": "Id of the element used as label of the component to screen reader users.",
102
95
  "value": {
103
96
  "kind": "expression"
104
97
  }
105
98
  },
106
99
  {
107
- "name": ".accessibleName",
108
- "description": "String used to label the component to screen reader users.",
100
+ "name": ".allowedCharPattern",
101
+ "description": "A pattern matched against individual characters the user inputs.\n\nWhen set, the field will prevent:\n- `keydown` events if the entered key doesn't match `/^allowedCharPattern$/`\n- `paste` events if the pasted text doesn't match `/^allowedCharPattern*$/`\n- `drop` events if the dropped text doesn't match `/^allowedCharPattern*$/`\n\nFor example, to allow entering only numbers and minus signs, use:\n`allowedCharPattern = \"[\\\\d-]\"`",
109
102
  "value": {
110
103
  "kind": "expression"
111
104
  }
112
105
  },
113
106
  {
114
- "name": ".accessibleNameRef",
115
- "description": "Id of the element used as label of the component to screen reader users.",
107
+ "name": ".autocapitalize",
108
+ "description": "This is a property supported by Safari and Chrome that is used to control whether\nautocapitalization should be enabled when the user is entering/editing the text.\nPossible values are:\ncharacters: Characters capitalization.\nwords: Words capitalization.\nsentences: Sentences capitalization.\nnone: No capitalization.",
116
109
  "value": {
117
110
  "kind": "expression"
118
111
  }
119
112
  },
120
113
  {
121
- "name": ".value",
122
- "description": "The value of the field.",
114
+ "name": ".autocomplete",
115
+ "description": "Whether the value of the control can be automatically completed by the browser.\nList of available options at:\nhttps://developer.mozilla.org/en/docs/Web/HTML/Element/input#attr-autocomplete",
123
116
  "value": {
124
117
  "kind": "expression"
125
118
  }
126
119
  },
127
120
  {
128
- "name": ".allowedCharPattern",
129
- "description": "A pattern matched against individual characters the user inputs.\n\nWhen set, the field will prevent:\n- `keydown` events if the entered key doesn't match `/^allowedCharPattern$/`\n- `paste` events if the pasted text doesn't match `/^allowedCharPattern*$/`\n- `drop` events if the dropped text doesn't match `/^allowedCharPattern*$/`\n\nFor example, to allow entering only numbers and minus signs, use:\n`allowedCharPattern = \"[\\\\d-]\"`",
121
+ "name": ".autocorrect",
122
+ "description": "This is a property supported by Safari that is used to control whether\nautocorrection should be enabled when the user is entering/editing the text.\nPossible values are:\non: Enable autocorrection.\noff: Disable autocorrection.",
130
123
  "value": {
131
124
  "kind": "expression"
132
125
  }
133
126
  },
134
127
  {
135
- "name": ".name",
136
- "description": "The name of this field.",
128
+ "name": ".errorMessage",
129
+ "description": "Error to show when the field is invalid.",
137
130
  "value": {
138
131
  "kind": "expression"
139
132
  }
140
133
  },
141
134
  {
142
- "name": ".placeholder",
143
- "description": "A hint to the user of what can be entered in the field.",
135
+ "name": ".helperText",
136
+ "description": "String used for the helper text.",
144
137
  "value": {
145
138
  "kind": "expression"
146
139
  }
147
140
  },
148
141
  {
149
- "name": ".title",
150
- "description": "The text usually displayed in a tooltip popup when the mouse is over the field.",
142
+ "name": ".label",
143
+ "description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
151
144
  "value": {
152
145
  "kind": "expression"
153
146
  }
154
147
  },
155
148
  {
156
- "name": ".autocomplete",
157
- "description": "Whether the value of the control can be automatically completed by the browser.\nList of available options at:\nhttps://developer.mozilla.org/en/docs/Web/HTML/Element/input#attr-autocomplete",
149
+ "name": ".max",
150
+ "description": "The maximum value of the field.",
158
151
  "value": {
159
152
  "kind": "expression"
160
153
  }
161
154
  },
162
155
  {
163
- "name": ".autocorrect",
164
- "description": "This is a property supported by Safari that is used to control whether\nautocorrection should be enabled when the user is entering/editing the text.\nPossible values are:\non: Enable autocorrection.\noff: Disable autocorrection.",
156
+ "name": ".min",
157
+ "description": "The minimum value of the field.",
165
158
  "value": {
166
159
  "kind": "expression"
167
160
  }
168
161
  },
169
162
  {
170
- "name": ".autocapitalize",
171
- "description": "This is a property supported by Safari and Chrome that is used to control whether\nautocapitalization should be enabled when the user is entering/editing the text.\nPossible values are:\ncharacters: Characters capitalization.\nwords: Words capitalization.\nsentences: Sentences capitalization.\nnone: No capitalization.",
163
+ "name": ".name",
164
+ "description": "The name of this field.",
172
165
  "value": {
173
166
  "kind": "expression"
174
167
  }
175
168
  },
176
169
  {
177
- "name": ".min",
178
- "description": "The minimum value of the field.",
170
+ "name": ".placeholder",
171
+ "description": "A hint to the user of what can be entered in the field.",
179
172
  "value": {
180
173
  "kind": "expression"
181
174
  }
182
175
  },
183
176
  {
184
- "name": ".max",
185
- "description": "The maximum value of the field.",
177
+ "name": ".step",
178
+ "description": "Specifies the allowed number intervals of the field.",
186
179
  "value": {
187
180
  "kind": "expression"
188
181
  }
189
182
  },
190
183
  {
191
- "name": ".step",
192
- "description": "Specifies the allowed number intervals of the field.",
184
+ "name": ".title",
185
+ "description": "The text usually displayed in a tooltip popup when the mouse is over the field.",
193
186
  "value": {
194
187
  "kind": "expression"
195
188
  }
196
189
  },
197
190
  {
198
- "name": "@validated",
199
- "description": "Fired whenever the field is validated.",
191
+ "name": ".value",
192
+ "description": "The value of the field.",
200
193
  "value": {
201
194
  "kind": "expression"
202
195
  }
@@ -222,6 +215,13 @@
222
215
  "kind": "expression"
223
216
  }
224
217
  },
218
+ {
219
+ "name": "@validated",
220
+ "description": "Fired whenever the field is validated.",
221
+ "value": {
222
+ "kind": "expression"
223
+ }
224
+ },
225
225
  {
226
226
  "name": "@value-changed",
227
227
  "description": "Fired when the `value` property changes.",