@vaadin/time-picker 25.1.0-alpha8 → 25.1.0-alpha9

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.
@@ -346,6 +346,28 @@
346
346
  }
347
347
  }
348
348
  },
349
+ {
350
+ "kind": "field",
351
+ "name": "i18n",
352
+ "description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides both the\ntime parsing and formatting functions.\n\nThe object has the following JSON structure:\n\n```js\n{\n // A function to format given `Object` as\n // time string. Object is in the format `{ hours: ..., minutes: ..., seconds: ..., milliseconds: ... }`\n formatTime: (time) => {\n // returns a string representation of the given\n // object in `hh` / 'hh:mm' / 'hh:mm:ss' / 'hh:mm:ss.fff' - formats\n },\n\n // A function to parse the given text to an `Object` in the format\n // `{ hours: ..., minutes: ..., seconds: ..., milliseconds: ... }`.\n // Must properly parse (at least) text\n // formatted by `formatTime`.\n parseTime: text => {\n // Parses a string in object/string that can be formatted by`formatTime`.\n }\n}\n```\n\nNOTE: `formatTime` and `parseTime` must be implemented in a\ncompatible manner to ensure the component works properly.",
353
+ "return": {
354
+ "type": {
355
+ "text": "!TimePickerI18n"
356
+ }
357
+ },
358
+ "parameters": [
359
+ {
360
+ "name": "value",
361
+ "type": {
362
+ "text": "Object"
363
+ }
364
+ }
365
+ ],
366
+ "inheritedFrom": {
367
+ "name": "I18nMixin",
368
+ "package": "@vaadin/component-base/src/i18n-mixin.js"
369
+ }
370
+ },
349
371
  {
350
372
  "kind": "field",
351
373
  "name": "max",
@@ -402,6 +424,13 @@
402
424
  }
403
425
  ],
404
426
  "attributes": [
427
+ {
428
+ "name": "i18n",
429
+ "inheritedFrom": {
430
+ "name": "I18nMixin",
431
+ "package": "@vaadin/component-base/src/i18n-mixin.js"
432
+ }
433
+ },
405
434
  {
406
435
  "name": "max",
407
436
  "type": {
@@ -1334,6 +1363,28 @@
1334
1363
  "module": "src/vaadin-time-picker-mixin.js"
1335
1364
  }
1336
1365
  },
1366
+ {
1367
+ "kind": "field",
1368
+ "name": "i18n",
1369
+ "description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides both the\ntime parsing and formatting functions.\n\nThe object has the following JSON structure:\n\n```js\n{\n // A function to format given `Object` as\n // time string. Object is in the format `{ hours: ..., minutes: ..., seconds: ..., milliseconds: ... }`\n formatTime: (time) => {\n // returns a string representation of the given\n // object in `hh` / 'hh:mm' / 'hh:mm:ss' / 'hh:mm:ss.fff' - formats\n },\n\n // A function to parse the given text to an `Object` in the format\n // `{ hours: ..., minutes: ..., seconds: ..., milliseconds: ... }`.\n // Must properly parse (at least) text\n // formatted by `formatTime`.\n parseTime: text => {\n // Parses a string in object/string that can be formatted by`formatTime`.\n }\n}\n```\n\nNOTE: `formatTime` and `parseTime` must be implemented in a\ncompatible manner to ensure the component works properly.",
1370
+ "return": {
1371
+ "type": {
1372
+ "text": "!TimePickerI18n"
1373
+ }
1374
+ },
1375
+ "parameters": [
1376
+ {
1377
+ "name": "value",
1378
+ "type": {
1379
+ "text": "Object"
1380
+ }
1381
+ }
1382
+ ],
1383
+ "inheritedFrom": {
1384
+ "name": "I18nMixin",
1385
+ "package": "@vaadin/component-base/src/i18n-mixin.js"
1386
+ }
1387
+ },
1337
1388
  {
1338
1389
  "kind": "field",
1339
1390
  "name": "max",
@@ -1471,6 +1522,13 @@
1471
1522
  "tagName": "vaadin-time-picker",
1472
1523
  "customElement": true,
1473
1524
  "attributes": [
1525
+ {
1526
+ "name": "i18n",
1527
+ "inheritedFrom": {
1528
+ "name": "I18nMixin",
1529
+ "package": "@vaadin/component-base/src/i18n-mixin.js"
1530
+ }
1531
+ },
1474
1532
  {
1475
1533
  "name": "max",
1476
1534
  "type": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/time-picker",
3
- "version": "25.1.0-alpha8",
3
+ "version": "25.1.0-alpha9",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -35,22 +35,22 @@
35
35
  ],
36
36
  "dependencies": {
37
37
  "@open-wc/dedupe-mixin": "^1.3.0",
38
- "@vaadin/a11y-base": "25.1.0-alpha8",
39
- "@vaadin/combo-box": "25.1.0-alpha8",
40
- "@vaadin/component-base": "25.1.0-alpha8",
41
- "@vaadin/field-base": "25.1.0-alpha8",
42
- "@vaadin/input-container": "25.1.0-alpha8",
43
- "@vaadin/item": "25.1.0-alpha8",
44
- "@vaadin/overlay": "25.1.0-alpha8",
45
- "@vaadin/vaadin-themable-mixin": "25.1.0-alpha8",
38
+ "@vaadin/a11y-base": "25.1.0-alpha9",
39
+ "@vaadin/combo-box": "25.1.0-alpha9",
40
+ "@vaadin/component-base": "25.1.0-alpha9",
41
+ "@vaadin/field-base": "25.1.0-alpha9",
42
+ "@vaadin/input-container": "25.1.0-alpha9",
43
+ "@vaadin/item": "25.1.0-alpha9",
44
+ "@vaadin/overlay": "25.1.0-alpha9",
45
+ "@vaadin/vaadin-themable-mixin": "25.1.0-alpha9",
46
46
  "lit": "^3.0.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@vaadin/aura": "25.1.0-alpha8",
50
- "@vaadin/chai-plugins": "25.1.0-alpha8",
51
- "@vaadin/test-runner-commands": "25.1.0-alpha8",
49
+ "@vaadin/aura": "25.1.0-alpha9",
50
+ "@vaadin/chai-plugins": "25.1.0-alpha9",
51
+ "@vaadin/test-runner-commands": "25.1.0-alpha9",
52
52
  "@vaadin/testing-helpers": "^2.0.0",
53
- "@vaadin/vaadin-lumo-styles": "25.1.0-alpha8",
53
+ "@vaadin/vaadin-lumo-styles": "25.1.0-alpha9",
54
54
  "sinon": "^21.0.0"
55
55
  },
56
56
  "customElements": "custom-elements.json",
@@ -58,5 +58,5 @@
58
58
  "web-types.json",
59
59
  "web-types.lit.json"
60
60
  ],
61
- "gitHead": "810590c9c7682a9326c9352df795b5ea4891a71f"
61
+ "gitHead": "ef432311376ba3dac4233cb23d393a49a425e0a4"
62
62
  }
package/web-types.json CHANGED
@@ -1,58 +1,51 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/time-picker",
4
- "version": "25.1.0-alpha8",
4
+ "version": "25.1.0-alpha9",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "elements": [
9
9
  {
10
10
  "name": "vaadin-time-picker",
11
- "description": "`<vaadin-time-picker>` is a Web Component providing a time-selection field.\n\n```html\n<vaadin-time-picker></vaadin-time-picker>\n```\n```js\ntimePicker.value = '14:30';\n```\n\nWhen the selected `value` is changed, a `value-changed` event is triggered.\n\n### Styling\n\nThe following custom properties are available for styling:\n\nCustom property | Description | Default\n-----------------------------------------|----------------------------|---------\n`--vaadin-field-default-width` | Default width of the field | `12em`\n`--vaadin-time-picker-overlay-width` | Width of the overlay | `auto`\n`--vaadin-time-picker-overlay-max-height`| Max height of the overlay | `65vh`\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 buttons\n`field-button` | Set on both clear and toggle 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`toggle-button` | The toggle button\n`overlay` | The overlay container\n`content` | The overlay content\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`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`opened` | Set when the overlay is opened\n\n### Internal components\n\nIn addition to `<vaadin-time-picker>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-time-picker-item>` - has the same API as [`<vaadin-item>`](https://cdn.vaadin.com/vaadin-web-components/25.1.0-alpha8/#/elements/vaadin-item).\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 | unparsable-change",
11
+ "description": "`<vaadin-time-picker>` is a Web Component providing a time-selection field.\n\n```html\n<vaadin-time-picker></vaadin-time-picker>\n```\n```js\ntimePicker.value = '14:30';\n```\n\nWhen the selected `value` is changed, a `value-changed` event is triggered.\n\n### Styling\n\nThe following custom properties are available for styling:\n\nCustom property | Description | Default\n-----------------------------------------|----------------------------|---------\n`--vaadin-field-default-width` | Default width of the field | `12em`\n`--vaadin-time-picker-overlay-width` | Width of the overlay | `auto`\n`--vaadin-time-picker-overlay-max-height`| Max height of the overlay | `65vh`\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 buttons\n`field-button` | Set on both clear and toggle 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`toggle-button` | The toggle button\n`overlay` | The overlay container\n`content` | The overlay content\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`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`opened` | Set when the overlay is opened\n\n### Internal components\n\nIn addition to `<vaadin-time-picker>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-time-picker-item>` - has the same API as [`<vaadin-item>`](https://cdn.vaadin.com/vaadin-web-components/25.1.0-alpha9/#/elements/vaadin-item).\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 | unparsable-change",
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": "value",
26
- "description": "The time value for this element.\n\nSupported time formats are in ISO 8601:\n- `hh:mm` (default)\n- `hh:mm:ss`\n- `hh:mm:ss.fff`",
27
- "value": {
28
- "type": [
29
- "string"
30
- ]
31
- }
32
- },
33
- {
34
- "name": "opened",
35
- "description": "True if the dropdown is open, false otherwise.",
25
+ "name": "accessible-name-ref",
26
+ "description": "Id of the element used as label of the component to screen reader users.",
36
27
  "value": {
37
28
  "type": [
38
- "boolean"
29
+ "string",
30
+ "null",
31
+ "undefined"
39
32
  ]
40
33
  }
41
34
  },
42
35
  {
43
- "name": "auto-open-disabled",
44
- "description": "Set true to prevent the overlay from opening automatically.",
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-]\"`",
45
38
  "value": {
46
39
  "type": [
47
- "boolean",
40
+ "string",
48
41
  "null",
49
42
  "undefined"
50
43
  ]
51
44
  }
52
45
  },
53
46
  {
54
- "name": "readonly",
55
- "description": "When present, it specifies that the field is read-only.",
47
+ "name": "auto-open-disabled",
48
+ "description": "Set true to prevent the overlay from opening automatically.",
56
49
  "value": {
57
50
  "type": [
58
51
  "boolean",
@@ -61,15 +54,6 @@
61
54
  ]
62
55
  }
63
56
  },
64
- {
65
- "name": "i18n",
66
- "description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides all properties, or\njust the individual properties you want to change.\n\nShould be overridden by subclasses to provide a custom JSDoc with the\ndefault I18N properties.",
67
- "value": {
68
- "type": [
69
- "Object"
70
- ]
71
- }
72
- },
73
57
  {
74
58
  "name": "autofocus",
75
59
  "description": "Specify that this control should have input focus when the page loads.",
@@ -82,19 +66,8 @@
82
66
  }
83
67
  },
84
68
  {
85
- "name": "label",
86
- "description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
87
- "value": {
88
- "type": [
89
- "string",
90
- "null",
91
- "undefined"
92
- ]
93
- }
94
- },
95
- {
96
- "name": "invalid",
97
- "description": "Set to true when the field is invalid.",
69
+ "name": "autoselect",
70
+ "description": "If true, the input text gets fully selected when the field is focused using click or touch / tap.",
98
71
  "value": {
99
72
  "type": [
100
73
  "boolean",
@@ -104,8 +77,8 @@
104
77
  }
105
78
  },
106
79
  {
107
- "name": "manual-validation",
108
- "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.",
80
+ "name": "clear-button-visible",
81
+ "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.",
109
82
  "value": {
110
83
  "type": [
111
84
  "boolean",
@@ -115,8 +88,8 @@
115
88
  }
116
89
  },
117
90
  {
118
- "name": "required",
119
- "description": "Specifies that the user must fill in a value.",
91
+ "name": "disabled",
92
+ "description": "If true, the user cannot interact with this element.",
120
93
  "value": {
121
94
  "type": [
122
95
  "boolean",
@@ -148,19 +121,19 @@
148
121
  }
149
122
  },
150
123
  {
151
- "name": "accessible-name",
152
- "description": "String used to label the component to screen reader users.",
124
+ "name": "invalid",
125
+ "description": "Set to true when the field is invalid.",
153
126
  "value": {
154
127
  "type": [
155
- "string",
128
+ "boolean",
156
129
  "null",
157
130
  "undefined"
158
131
  ]
159
132
  }
160
133
  },
161
134
  {
162
- "name": "accessible-name-ref",
163
- "description": "Id of the element used as label of the component to screen reader users.",
135
+ "name": "label",
136
+ "description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
164
137
  "value": {
165
138
  "type": [
166
139
  "string",
@@ -170,8 +143,8 @@
170
143
  }
171
144
  },
172
145
  {
173
- "name": "clear-button-visible",
174
- "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.",
146
+ "name": "manual-validation",
147
+ "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.",
175
148
  "value": {
176
149
  "type": [
177
150
  "boolean",
@@ -181,24 +154,20 @@
181
154
  }
182
155
  },
183
156
  {
184
- "name": "allowed-char-pattern",
185
- "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-]\"`",
157
+ "name": "max",
158
+ "description": "Maximum time allowed.\n\nSupported time formats are in ISO 8601:\n- `hh:mm`\n- `hh:mm:ss`\n- `hh:mm:ss.fff`",
186
159
  "value": {
187
160
  "type": [
188
- "string",
189
- "null",
190
- "undefined"
161
+ "string"
191
162
  ]
192
163
  }
193
164
  },
194
165
  {
195
- "name": "autoselect",
196
- "description": "If true, the input text gets fully selected when the field is focused using click or touch / tap.",
166
+ "name": "min",
167
+ "description": "Minimum time allowed.\n\nSupported time formats are in ISO 8601:\n- `hh:mm`\n- `hh:mm:ss`\n- `hh:mm:ss.fff`",
197
168
  "value": {
198
169
  "type": [
199
- "boolean",
200
- "null",
201
- "undefined"
170
+ "string"
202
171
  ]
203
172
  }
204
173
  },
@@ -214,19 +183,17 @@
214
183
  }
215
184
  },
216
185
  {
217
- "name": "placeholder",
218
- "description": "A hint to the user of what can be entered in the field.",
186
+ "name": "opened",
187
+ "description": "True if the dropdown is open, false otherwise.",
219
188
  "value": {
220
189
  "type": [
221
- "string",
222
- "null",
223
- "undefined"
190
+ "boolean"
224
191
  ]
225
192
  }
226
193
  },
227
194
  {
228
- "name": "title",
229
- "description": "The text usually displayed in a tooltip popup when the mouse is over the field.",
195
+ "name": "pattern",
196
+ "description": "A regular expression that the value is checked against.\nThe pattern must match the entire value, not just some subset.",
230
197
  "value": {
231
198
  "type": [
232
199
  "string",
@@ -236,8 +203,8 @@
236
203
  }
237
204
  },
238
205
  {
239
- "name": "pattern",
240
- "description": "A regular expression that the value is checked against.\nThe pattern must match the entire value, not just some subset.",
206
+ "name": "placeholder",
207
+ "description": "A hint to the user of what can be entered in the field.",
241
208
  "value": {
242
209
  "type": [
243
210
  "string",
@@ -247,20 +214,24 @@
247
214
  }
248
215
  },
249
216
  {
250
- "name": "min",
251
- "description": "Minimum time allowed.\n\nSupported time formats are in ISO 8601:\n- `hh:mm`\n- `hh:mm:ss`\n- `hh:mm:ss.fff`",
217
+ "name": "readonly",
218
+ "description": "When present, it specifies that the field is read-only.",
252
219
  "value": {
253
220
  "type": [
254
- "string"
221
+ "boolean",
222
+ "null",
223
+ "undefined"
255
224
  ]
256
225
  }
257
226
  },
258
227
  {
259
- "name": "max",
260
- "description": "Maximum time allowed.\n\nSupported time formats are in ISO 8601:\n- `hh:mm`\n- `hh:mm:ss`\n- `hh:mm:ss.fff`",
228
+ "name": "required",
229
+ "description": "Specifies that the user must fill in a value.",
261
230
  "value": {
262
231
  "type": [
263
- "string"
232
+ "boolean",
233
+ "null",
234
+ "undefined"
264
235
  ]
265
236
  }
266
237
  },
@@ -285,42 +256,66 @@
285
256
  "undefined"
286
257
  ]
287
258
  }
259
+ },
260
+ {
261
+ "name": "title",
262
+ "description": "The text usually displayed in a tooltip popup when the mouse is over the field.",
263
+ "value": {
264
+ "type": [
265
+ "string",
266
+ "null",
267
+ "undefined"
268
+ ]
269
+ }
270
+ },
271
+ {
272
+ "name": "value",
273
+ "description": "The time value for this element.\n\nSupported time formats are in ISO 8601:\n- `hh:mm` (default)\n- `hh:mm:ss`\n- `hh:mm:ss.fff`",
274
+ "value": {
275
+ "type": [
276
+ "string"
277
+ ]
278
+ }
288
279
  }
289
280
  ],
290
281
  "js": {
291
282
  "properties": [
292
283
  {
293
- "name": "disabled",
294
- "description": "If true, the user cannot interact with this element.",
284
+ "name": "accessibleName",
285
+ "description": "String used to label the component to screen reader users.",
295
286
  "value": {
296
287
  "type": [
297
- "boolean",
288
+ "string",
298
289
  "null",
299
290
  "undefined"
300
291
  ]
301
292
  }
302
293
  },
303
294
  {
304
- "name": "value",
305
- "description": "The time value for this element.\n\nSupported time formats are in ISO 8601:\n- `hh:mm` (default)\n- `hh:mm:ss`\n- `hh:mm:ss.fff`",
295
+ "name": "accessibleNameRef",
296
+ "description": "Id of the element used as label of the component to screen reader users.",
306
297
  "value": {
307
298
  "type": [
308
- "string"
299
+ "string",
300
+ "null",
301
+ "undefined"
309
302
  ]
310
303
  }
311
304
  },
312
305
  {
313
- "name": "opened",
314
- "description": "True if the dropdown is open, false otherwise.",
306
+ "name": "allowedCharPattern",
307
+ "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-]\"`",
315
308
  "value": {
316
309
  "type": [
317
- "boolean"
310
+ "string",
311
+ "null",
312
+ "undefined"
318
313
  ]
319
314
  }
320
315
  },
321
316
  {
322
- "name": "autoOpenDisabled",
323
- "description": "Set true to prevent the overlay from opening automatically.",
317
+ "name": "autofocus",
318
+ "description": "Specify that this control should have input focus when the page loads.",
324
319
  "value": {
325
320
  "type": [
326
321
  "boolean",
@@ -330,8 +325,8 @@
330
325
  }
331
326
  },
332
327
  {
333
- "name": "readonly",
334
- "description": "When present, it specifies that the field is read-only.",
328
+ "name": "autoOpenDisabled",
329
+ "description": "Set true to prevent the overlay from opening automatically.",
335
330
  "value": {
336
331
  "type": [
337
332
  "boolean",
@@ -341,17 +336,19 @@
341
336
  }
342
337
  },
343
338
  {
344
- "name": "i18n",
345
- "description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides both the\ntime parsing and formatting functions.\n\nThe object has the following JSON structure:\n\n```js\n{\n // A function to format given `Object` as\n // time string. Object is in the format `{ hours: ..., minutes: ..., seconds: ..., milliseconds: ... }`\n formatTime: (time) => {\n // returns a string representation of the given\n // object in `hh` / 'hh:mm' / 'hh:mm:ss' / 'hh:mm:ss.fff' - formats\n },\n\n // A function to parse the given text to an `Object` in the format\n // `{ hours: ..., minutes: ..., seconds: ..., milliseconds: ... }`.\n // Must properly parse (at least) text\n // formatted by `formatTime`.\n parseTime: text => {\n // Parses a string in object/string that can be formatted by`formatTime`.\n }\n}\n```\n\nNOTE: `formatTime` and `parseTime` must be implemented in a\ncompatible manner to ensure the component works properly.",
339
+ "name": "autoselect",
340
+ "description": "If true, the input text gets fully selected when the field is focused using click or touch / tap.",
346
341
  "value": {
347
342
  "type": [
348
- "TimePickerI18n"
343
+ "boolean",
344
+ "null",
345
+ "undefined"
349
346
  ]
350
347
  }
351
348
  },
352
349
  {
353
- "name": "autofocus",
354
- "description": "Specify that this control should have input focus when the page loads.",
350
+ "name": "clearButtonVisible",
351
+ "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.",
355
352
  "value": {
356
353
  "type": [
357
354
  "boolean",
@@ -361,63 +358,61 @@
361
358
  }
362
359
  },
363
360
  {
364
- "name": "label",
365
- "description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
361
+ "name": "disabled",
362
+ "description": "If true, the user cannot interact with this element.",
366
363
  "value": {
367
364
  "type": [
368
- "string",
365
+ "boolean",
369
366
  "null",
370
367
  "undefined"
371
368
  ]
372
369
  }
373
370
  },
374
371
  {
375
- "name": "invalid",
376
- "description": "Set to true when the field is invalid.",
372
+ "name": "errorMessage",
373
+ "description": "Error to show when the field is invalid.",
377
374
  "value": {
378
375
  "type": [
379
- "boolean",
376
+ "string",
380
377
  "null",
381
378
  "undefined"
382
379
  ]
383
380
  }
384
381
  },
385
382
  {
386
- "name": "manualValidation",
387
- "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.",
383
+ "name": "helperText",
384
+ "description": "String used for the helper text.",
388
385
  "value": {
389
386
  "type": [
390
- "boolean",
387
+ "string",
391
388
  "null",
392
389
  "undefined"
393
390
  ]
394
391
  }
395
392
  },
396
393
  {
397
- "name": "required",
398
- "description": "Specifies that the user must fill in a value.",
394
+ "name": "i18n",
395
+ "description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides both the\ntime parsing and formatting functions.\n\nThe object has the following JSON structure:\n\n```js\n{\n // A function to format given `Object` as\n // time string. Object is in the format `{ hours: ..., minutes: ..., seconds: ..., milliseconds: ... }`\n formatTime: (time) => {\n // returns a string representation of the given\n // object in `hh` / 'hh:mm' / 'hh:mm:ss' / 'hh:mm:ss.fff' - formats\n },\n\n // A function to parse the given text to an `Object` in the format\n // `{ hours: ..., minutes: ..., seconds: ..., milliseconds: ... }`.\n // Must properly parse (at least) text\n // formatted by `formatTime`.\n parseTime: text => {\n // Parses a string in object/string that can be formatted by`formatTime`.\n }\n}\n```\n\nNOTE: `formatTime` and `parseTime` must be implemented in a\ncompatible manner to ensure the component works properly.",
399
396
  "value": {
400
397
  "type": [
401
- "boolean",
402
- "null",
403
- "undefined"
398
+ "TimePickerI18n"
404
399
  ]
405
400
  }
406
401
  },
407
402
  {
408
- "name": "errorMessage",
409
- "description": "Error to show when the field is invalid.",
403
+ "name": "invalid",
404
+ "description": "Set to true when the field is invalid.",
410
405
  "value": {
411
406
  "type": [
412
- "string",
407
+ "boolean",
413
408
  "null",
414
409
  "undefined"
415
410
  ]
416
411
  }
417
412
  },
418
413
  {
419
- "name": "helperText",
420
- "description": "String used for the helper text.",
414
+ "name": "label",
415
+ "description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
421
416
  "value": {
422
417
  "type": [
423
418
  "string",
@@ -427,41 +422,37 @@
427
422
  }
428
423
  },
429
424
  {
430
- "name": "accessibleName",
431
- "description": "String used to label the component to screen reader users.",
425
+ "name": "manualValidation",
426
+ "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.",
432
427
  "value": {
433
428
  "type": [
434
- "string",
429
+ "boolean",
435
430
  "null",
436
431
  "undefined"
437
432
  ]
438
433
  }
439
434
  },
440
435
  {
441
- "name": "accessibleNameRef",
442
- "description": "Id of the element used as label of the component to screen reader users.",
436
+ "name": "max",
437
+ "description": "Maximum time allowed.\n\nSupported time formats are in ISO 8601:\n- `hh:mm`\n- `hh:mm:ss`\n- `hh:mm:ss.fff`",
443
438
  "value": {
444
439
  "type": [
445
- "string",
446
- "null",
447
- "undefined"
440
+ "string"
448
441
  ]
449
442
  }
450
443
  },
451
444
  {
452
- "name": "clearButtonVisible",
453
- "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.",
445
+ "name": "min",
446
+ "description": "Minimum time allowed.\n\nSupported time formats are in ISO 8601:\n- `hh:mm`\n- `hh:mm:ss`\n- `hh:mm:ss.fff`",
454
447
  "value": {
455
448
  "type": [
456
- "boolean",
457
- "null",
458
- "undefined"
449
+ "string"
459
450
  ]
460
451
  }
461
452
  },
462
453
  {
463
- "name": "allowedCharPattern",
464
- "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-]\"`",
454
+ "name": "name",
455
+ "description": "The name of this field.",
465
456
  "value": {
466
457
  "type": [
467
458
  "string",
@@ -471,19 +462,17 @@
471
462
  }
472
463
  },
473
464
  {
474
- "name": "autoselect",
475
- "description": "If true, the input text gets fully selected when the field is focused using click or touch / tap.",
465
+ "name": "opened",
466
+ "description": "True if the dropdown is open, false otherwise.",
476
467
  "value": {
477
468
  "type": [
478
- "boolean",
479
- "null",
480
- "undefined"
469
+ "boolean"
481
470
  ]
482
471
  }
483
472
  },
484
473
  {
485
- "name": "name",
486
- "description": "The name of this field.",
474
+ "name": "pattern",
475
+ "description": "A regular expression that the value is checked against.\nThe pattern must match the entire value, not just some subset.",
487
476
  "value": {
488
477
  "type": [
489
478
  "string",
@@ -504,62 +493,60 @@
504
493
  }
505
494
  },
506
495
  {
507
- "name": "title",
508
- "description": "The text usually displayed in a tooltip popup when the mouse is over the field.",
496
+ "name": "readonly",
497
+ "description": "When present, it specifies that the field is read-only.",
509
498
  "value": {
510
499
  "type": [
511
- "string",
500
+ "boolean",
512
501
  "null",
513
502
  "undefined"
514
503
  ]
515
504
  }
516
505
  },
517
506
  {
518
- "name": "pattern",
519
- "description": "A regular expression that the value is checked against.\nThe pattern must match the entire value, not just some subset.",
507
+ "name": "required",
508
+ "description": "Specifies that the user must fill in a value.",
520
509
  "value": {
521
510
  "type": [
522
- "string",
511
+ "boolean",
523
512
  "null",
524
513
  "undefined"
525
514
  ]
526
515
  }
527
516
  },
528
517
  {
529
- "name": "min",
530
- "description": "Minimum time allowed.\n\nSupported time formats are in ISO 8601:\n- `hh:mm`\n- `hh:mm:ss`\n- `hh:mm:ss.fff`",
518
+ "name": "step",
519
+ "description": "Defines the time interval (in seconds) between the items displayed\nin the time selection box. The default is 1 hour (i.e. `3600`).\n\nIt also configures the precision of the value string. By default\nthe component formats values as `hh:mm` but setting a step value\nlower than one minute or one second, format resolution changes to\n`hh:mm:ss` and `hh:mm:ss.fff` respectively.\n\nUnit must be set in seconds, and for correctly configuring intervals\nin the dropdown, it need to evenly divide a day.\n\nNote: it is possible to define step that is dividing an hour in inexact\nfragments (i.e. 5760 seconds which equals 1 hour 36 minutes), but it is\nnot recommended to use it for better UX experience.",
531
520
  "value": {
532
521
  "type": [
533
- "string"
522
+ "number",
523
+ "null",
524
+ "undefined"
534
525
  ]
535
526
  }
536
527
  },
537
528
  {
538
- "name": "max",
539
- "description": "Maximum time allowed.\n\nSupported time formats are in ISO 8601:\n- `hh:mm`\n- `hh:mm:ss`\n- `hh:mm:ss.fff`",
529
+ "name": "title",
530
+ "description": "The text usually displayed in a tooltip popup when the mouse is over the field.",
540
531
  "value": {
541
532
  "type": [
542
- "string"
533
+ "string",
534
+ "null",
535
+ "undefined"
543
536
  ]
544
537
  }
545
538
  },
546
539
  {
547
- "name": "step",
548
- "description": "Defines the time interval (in seconds) between the items displayed\nin the time selection box. The default is 1 hour (i.e. `3600`).\n\nIt also configures the precision of the value string. By default\nthe component formats values as `hh:mm` but setting a step value\nlower than one minute or one second, format resolution changes to\n`hh:mm:ss` and `hh:mm:ss.fff` respectively.\n\nUnit must be set in seconds, and for correctly configuring intervals\nin the dropdown, it need to evenly divide a day.\n\nNote: it is possible to define step that is dividing an hour in inexact\nfragments (i.e. 5760 seconds which equals 1 hour 36 minutes), but it is\nnot recommended to use it for better UX experience.",
540
+ "name": "value",
541
+ "description": "The time value for this element.\n\nSupported time formats are in ISO 8601:\n- `hh:mm` (default)\n- `hh:mm:ss`\n- `hh:mm:ss.fff`",
549
542
  "value": {
550
543
  "type": [
551
- "number",
552
- "null",
553
- "undefined"
544
+ "string"
554
545
  ]
555
546
  }
556
547
  }
557
548
  ],
558
549
  "events": [
559
- {
560
- "name": "validated",
561
- "description": "Fired whenever the field is validated."
562
- },
563
550
  {
564
551
  "name": "change",
565
552
  "description": "Fired when the user commits a value change."
@@ -569,16 +556,20 @@
569
556
  "description": "Fired when the value is changed by the user: on every typing keystroke,\nand the value is cleared using the clear button."
570
557
  },
571
558
  {
572
- "name": "value-changed",
573
- "description": "Fired when the `value` property changes."
559
+ "name": "invalid-changed",
560
+ "description": "Fired when the `invalid` property changes."
574
561
  },
575
562
  {
576
563
  "name": "opened-changed",
577
564
  "description": "Fired when the `opened` property changes."
578
565
  },
579
566
  {
580
- "name": "invalid-changed",
581
- "description": "Fired when the `invalid` property changes."
567
+ "name": "validated",
568
+ "description": "Fired whenever the field is validated."
569
+ },
570
+ {
571
+ "name": "value-changed",
572
+ "description": "Fired when the `value` property changes."
582
573
  }
583
574
  ]
584
575
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/time-picker",
4
- "version": "25.1.0-alpha8",
4
+ "version": "25.1.0-alpha9",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -16,40 +16,40 @@
16
16
  "elements": [
17
17
  {
18
18
  "name": "vaadin-time-picker",
19
- "description": "`<vaadin-time-picker>` is a Web Component providing a time-selection field.\n\n```html\n<vaadin-time-picker></vaadin-time-picker>\n```\n```js\ntimePicker.value = '14:30';\n```\n\nWhen the selected `value` is changed, a `value-changed` event is triggered.\n\n### Styling\n\nThe following custom properties are available for styling:\n\nCustom property | Description | Default\n-----------------------------------------|----------------------------|---------\n`--vaadin-field-default-width` | Default width of the field | `12em`\n`--vaadin-time-picker-overlay-width` | Width of the overlay | `auto`\n`--vaadin-time-picker-overlay-max-height`| Max height of the overlay | `65vh`\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 buttons\n`field-button` | Set on both clear and toggle 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`toggle-button` | The toggle button\n`overlay` | The overlay container\n`content` | The overlay content\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`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`opened` | Set when the overlay is opened\n\n### Internal components\n\nIn addition to `<vaadin-time-picker>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-time-picker-item>` - has the same API as [`<vaadin-item>`](https://cdn.vaadin.com/vaadin-web-components/25.1.0-alpha8/#/elements/vaadin-item).\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 | unparsable-change",
19
+ "description": "`<vaadin-time-picker>` is a Web Component providing a time-selection field.\n\n```html\n<vaadin-time-picker></vaadin-time-picker>\n```\n```js\ntimePicker.value = '14:30';\n```\n\nWhen the selected `value` is changed, a `value-changed` event is triggered.\n\n### Styling\n\nThe following custom properties are available for styling:\n\nCustom property | Description | Default\n-----------------------------------------|----------------------------|---------\n`--vaadin-field-default-width` | Default width of the field | `12em`\n`--vaadin-time-picker-overlay-width` | Width of the overlay | `auto`\n`--vaadin-time-picker-overlay-max-height`| Max height of the overlay | `65vh`\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 buttons\n`field-button` | Set on both clear and toggle 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`toggle-button` | The toggle button\n`overlay` | The overlay container\n`content` | The overlay content\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`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`opened` | Set when the overlay is opened\n\n### Internal components\n\nIn addition to `<vaadin-time-picker>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-time-picker-item>` - has the same API as [`<vaadin-item>`](https://cdn.vaadin.com/vaadin-web-components/25.1.0-alpha9/#/elements/vaadin-item).\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 | unparsable-change",
20
20
  "extension": true,
21
21
  "attributes": [
22
22
  {
23
- "name": "?disabled",
24
- "description": "If true, the user cannot interact with this element.",
23
+ "name": "?autofocus",
24
+ "description": "Specify that this control should have input focus when the page loads.",
25
25
  "value": {
26
26
  "kind": "expression"
27
27
  }
28
28
  },
29
29
  {
30
- "name": "?opened",
31
- "description": "True if the dropdown is open, false otherwise.",
30
+ "name": "?autoOpenDisabled",
31
+ "description": "Set true to prevent the overlay from opening automatically.",
32
32
  "value": {
33
33
  "kind": "expression"
34
34
  }
35
35
  },
36
36
  {
37
- "name": "?autoOpenDisabled",
38
- "description": "Set true to prevent the overlay from opening automatically.",
37
+ "name": "?autoselect",
38
+ "description": "If true, the input text gets fully selected when the field is focused using click or touch / tap.",
39
39
  "value": {
40
40
  "kind": "expression"
41
41
  }
42
42
  },
43
43
  {
44
- "name": "?readonly",
45
- "description": "When present, it specifies that the field is read-only.",
44
+ "name": "?clearButtonVisible",
45
+ "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
46
  "value": {
47
47
  "kind": "expression"
48
48
  }
49
49
  },
50
50
  {
51
- "name": "?autofocus",
52
- "description": "Specify that this control should have input focus when the page loads.",
51
+ "name": "?disabled",
52
+ "description": "If true, the user cannot interact with this element.",
53
53
  "value": {
54
54
  "kind": "expression"
55
55
  }
@@ -69,43 +69,43 @@
69
69
  }
70
70
  },
71
71
  {
72
- "name": "?required",
73
- "description": "Specifies that the user must fill in a value.",
72
+ "name": "?opened",
73
+ "description": "True if the dropdown is open, false otherwise.",
74
74
  "value": {
75
75
  "kind": "expression"
76
76
  }
77
77
  },
78
78
  {
79
- "name": "?clearButtonVisible",
80
- "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.",
79
+ "name": "?readonly",
80
+ "description": "When present, it specifies that the field is read-only.",
81
81
  "value": {
82
82
  "kind": "expression"
83
83
  }
84
84
  },
85
85
  {
86
- "name": "?autoselect",
87
- "description": "If true, the input text gets fully selected when the field is focused using click or touch / tap.",
86
+ "name": "?required",
87
+ "description": "Specifies that the user must fill in a value.",
88
88
  "value": {
89
89
  "kind": "expression"
90
90
  }
91
91
  },
92
92
  {
93
- "name": ".value",
94
- "description": "The time value for this element.\n\nSupported time formats are in ISO 8601:\n- `hh:mm` (default)\n- `hh:mm:ss`\n- `hh:mm:ss.fff`",
93
+ "name": ".accessibleName",
94
+ "description": "String used to label the component to screen reader users.",
95
95
  "value": {
96
96
  "kind": "expression"
97
97
  }
98
98
  },
99
99
  {
100
- "name": ".i18n",
101
- "description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides both the\ntime parsing and formatting functions.\n\nThe object has the following JSON structure:\n\n```js\n{\n // A function to format given `Object` as\n // time string. Object is in the format `{ hours: ..., minutes: ..., seconds: ..., milliseconds: ... }`\n formatTime: (time) => {\n // returns a string representation of the given\n // object in `hh` / 'hh:mm' / 'hh:mm:ss' / 'hh:mm:ss.fff' - formats\n },\n\n // A function to parse the given text to an `Object` in the format\n // `{ hours: ..., minutes: ..., seconds: ..., milliseconds: ... }`.\n // Must properly parse (at least) text\n // formatted by `formatTime`.\n parseTime: text => {\n // Parses a string in object/string that can be formatted by`formatTime`.\n }\n}\n```\n\nNOTE: `formatTime` and `parseTime` must be implemented in a\ncompatible manner to ensure the component works properly.",
100
+ "name": ".accessibleNameRef",
101
+ "description": "Id of the element used as label of the component to screen reader users.",
102
102
  "value": {
103
103
  "kind": "expression"
104
104
  }
105
105
  },
106
106
  {
107
- "name": ".label",
108
- "description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
107
+ "name": ".allowedCharPattern",
108
+ "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
109
  "value": {
110
110
  "kind": "expression"
111
111
  }
@@ -125,43 +125,36 @@
125
125
  }
126
126
  },
127
127
  {
128
- "name": ".accessibleName",
129
- "description": "String used to label the component to screen reader users.",
130
- "value": {
131
- "kind": "expression"
132
- }
133
- },
134
- {
135
- "name": ".accessibleNameRef",
136
- "description": "Id of the element used as label of the component to screen reader users.",
128
+ "name": ".i18n",
129
+ "description": "The object used to localize this component. To change the default\nlocalization, replace this with an object that provides both the\ntime parsing and formatting functions.\n\nThe object has the following JSON structure:\n\n```js\n{\n // A function to format given `Object` as\n // time string. Object is in the format `{ hours: ..., minutes: ..., seconds: ..., milliseconds: ... }`\n formatTime: (time) => {\n // returns a string representation of the given\n // object in `hh` / 'hh:mm' / 'hh:mm:ss' / 'hh:mm:ss.fff' - formats\n },\n\n // A function to parse the given text to an `Object` in the format\n // `{ hours: ..., minutes: ..., seconds: ..., milliseconds: ... }`.\n // Must properly parse (at least) text\n // formatted by `formatTime`.\n parseTime: text => {\n // Parses a string in object/string that can be formatted by`formatTime`.\n }\n}\n```\n\nNOTE: `formatTime` and `parseTime` must be implemented in a\ncompatible manner to ensure the component works properly.",
137
130
  "value": {
138
131
  "kind": "expression"
139
132
  }
140
133
  },
141
134
  {
142
- "name": ".allowedCharPattern",
143
- "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-]\"`",
135
+ "name": ".label",
136
+ "description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
144
137
  "value": {
145
138
  "kind": "expression"
146
139
  }
147
140
  },
148
141
  {
149
- "name": ".name",
150
- "description": "The name of this field.",
142
+ "name": ".max",
143
+ "description": "Maximum time allowed.\n\nSupported time formats are in ISO 8601:\n- `hh:mm`\n- `hh:mm:ss`\n- `hh:mm:ss.fff`",
151
144
  "value": {
152
145
  "kind": "expression"
153
146
  }
154
147
  },
155
148
  {
156
- "name": ".placeholder",
157
- "description": "A hint to the user of what can be entered in the field.",
149
+ "name": ".min",
150
+ "description": "Minimum time allowed.\n\nSupported time formats are in ISO 8601:\n- `hh:mm`\n- `hh:mm:ss`\n- `hh:mm:ss.fff`",
158
151
  "value": {
159
152
  "kind": "expression"
160
153
  }
161
154
  },
162
155
  {
163
- "name": ".title",
164
- "description": "The text usually displayed in a tooltip popup when the mouse is over the field.",
156
+ "name": ".name",
157
+ "description": "The name of this field.",
165
158
  "value": {
166
159
  "kind": "expression"
167
160
  }
@@ -174,29 +167,29 @@
174
167
  }
175
168
  },
176
169
  {
177
- "name": ".min",
178
- "description": "Minimum time allowed.\n\nSupported time formats are in ISO 8601:\n- `hh:mm`\n- `hh:mm:ss`\n- `hh:mm:ss.fff`",
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": "Maximum time allowed.\n\nSupported time formats are in ISO 8601:\n- `hh:mm`\n- `hh:mm:ss`\n- `hh:mm:ss.fff`",
177
+ "name": ".step",
178
+ "description": "Defines the time interval (in seconds) between the items displayed\nin the time selection box. The default is 1 hour (i.e. `3600`).\n\nIt also configures the precision of the value string. By default\nthe component formats values as `hh:mm` but setting a step value\nlower than one minute or one second, format resolution changes to\n`hh:mm:ss` and `hh:mm:ss.fff` respectively.\n\nUnit must be set in seconds, and for correctly configuring intervals\nin the dropdown, it need to evenly divide a day.\n\nNote: it is possible to define step that is dividing an hour in inexact\nfragments (i.e. 5760 seconds which equals 1 hour 36 minutes), but it is\nnot recommended to use it for better UX experience.",
186
179
  "value": {
187
180
  "kind": "expression"
188
181
  }
189
182
  },
190
183
  {
191
- "name": ".step",
192
- "description": "Defines the time interval (in seconds) between the items displayed\nin the time selection box. The default is 1 hour (i.e. `3600`).\n\nIt also configures the precision of the value string. By default\nthe component formats values as `hh:mm` but setting a step value\nlower than one minute or one second, format resolution changes to\n`hh:mm:ss` and `hh:mm:ss.fff` respectively.\n\nUnit must be set in seconds, and for correctly configuring intervals\nin the dropdown, it need to evenly divide a day.\n\nNote: it is possible to define step that is dividing an hour in inexact\nfragments (i.e. 5760 seconds which equals 1 hour 36 minutes), but it is\nnot recommended to use it for better UX experience.",
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 time value for this element.\n\nSupported time formats are in ISO 8601:\n- `hh:mm` (default)\n- `hh:mm:ss`\n- `hh:mm:ss.fff`",
200
193
  "value": {
201
194
  "kind": "expression"
202
195
  }
@@ -216,8 +209,8 @@
216
209
  }
217
210
  },
218
211
  {
219
- "name": "@value-changed",
220
- "description": "Fired when the `value` property changes.",
212
+ "name": "@invalid-changed",
213
+ "description": "Fired when the `invalid` property changes.",
221
214
  "value": {
222
215
  "kind": "expression"
223
216
  }
@@ -230,8 +223,15 @@
230
223
  }
231
224
  },
232
225
  {
233
- "name": "@invalid-changed",
234
- "description": "Fired when the `invalid` property changes.",
226
+ "name": "@validated",
227
+ "description": "Fired whenever the field is validated.",
228
+ "value": {
229
+ "kind": "expression"
230
+ }
231
+ },
232
+ {
233
+ "name": "@value-changed",
234
+ "description": "Fired when the `value` property changes.",
235
235
  "value": {
236
236
  "kind": "expression"
237
237
  }