@vaadin/time-picker 25.0.0-alpha2 → 25.0.0-alpha21
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 +13 -16
- package/src/styles/vaadin-time-picker-base-styles.js +6 -2
- package/src/vaadin-time-picker-item.js +5 -2
- package/src/vaadin-time-picker-mixin.d.ts +13 -36
- package/src/vaadin-time-picker-mixin.js +213 -132
- package/src/vaadin-time-picker-overlay.js +4 -4
- package/src/vaadin-time-picker-scroller.js +1 -1
- package/src/vaadin-time-picker.d.ts +30 -20
- package/src/vaadin-time-picker.js +59 -59
- package/vaadin-time-picker.js +1 -1
- package/web-types.json +104 -121
- package/web-types.lit.json +33 -40
- package/src/styles/vaadin-time-picker-core-styles.d.ts +0 -8
- package/src/styles/vaadin-time-picker-core-styles.js +0 -22
- package/src/styles/vaadin-time-picker-overlay-core-styles.js +0 -18
- package/src/styles/vaadin-time-picker-scroller-core-styles.js +0 -30
- package/src/vaadin-time-picker-combo-box.js +0 -92
- package/theme/lumo/vaadin-time-picker-styles.d.ts +0 -7
- package/theme/lumo/vaadin-time-picker-styles.js +0 -52
- package/theme/lumo/vaadin-time-picker.d.ts +0 -7
- package/theme/lumo/vaadin-time-picker.js +0 -7
|
@@ -4,15 +4,18 @@
|
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import '@vaadin/input-container/src/vaadin-input-container.js';
|
|
7
|
-
import './vaadin-time-picker-
|
|
7
|
+
import './vaadin-time-picker-item.js';
|
|
8
|
+
import './vaadin-time-picker-overlay.js';
|
|
9
|
+
import './vaadin-time-picker-scroller.js';
|
|
8
10
|
import { html, LitElement } from 'lit';
|
|
9
11
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
10
12
|
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
11
13
|
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
12
14
|
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
13
15
|
import { inputFieldShared } from '@vaadin/field-base/src/styles/input-field-shared-styles.js';
|
|
16
|
+
import { LumoInjectionMixin } from '@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js';
|
|
14
17
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
15
|
-
import { timePickerStyles } from './styles/vaadin-time-picker-
|
|
18
|
+
import { timePickerStyles } from './styles/vaadin-time-picker-base-styles.js';
|
|
16
19
|
import { TimePickerMixin } from './vaadin-time-picker-mixin.js';
|
|
17
20
|
|
|
18
21
|
/**
|
|
@@ -37,33 +40,43 @@ import { TimePickerMixin } from './vaadin-time-picker-mixin.js';
|
|
|
37
40
|
* `--vaadin-time-picker-overlay-width` | Width of the overlay | `auto`
|
|
38
41
|
* `--vaadin-time-picker-overlay-max-height`| Max height of the overlay | `65vh`
|
|
39
42
|
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
* `
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* `
|
|
43
|
+
* The following shadow DOM parts are available for styling:
|
|
44
|
+
*
|
|
45
|
+
* Part name | Description
|
|
46
|
+
* ---------------------|----------------
|
|
47
|
+
* `label` | The label element
|
|
48
|
+
* `input-field` | The element that wraps prefix, value and buttons
|
|
49
|
+
* `field-button` | Set on both clear and toggle buttons
|
|
50
|
+
* `clear-button` | The clear button
|
|
51
|
+
* `error-message` | The error message element
|
|
52
|
+
* `helper-text` | The helper text element wrapper
|
|
53
|
+
* `required-indicator` | The `required` state indicator element
|
|
54
|
+
* `toggle-button` | The toggle button
|
|
55
|
+
* `overlay` | The overlay container
|
|
56
|
+
* `content` | The overlay content
|
|
57
|
+
*
|
|
58
|
+
* The following state attributes are available for styling:
|
|
59
|
+
*
|
|
60
|
+
* Attribute | Description
|
|
61
|
+
* ---------------------|---------------------------------
|
|
62
|
+
* `disabled` | Set when the element is disabled
|
|
63
|
+
* `has-value` | Set when the element has a value
|
|
64
|
+
* `has-label` | Set when the element has a label
|
|
65
|
+
* `has-helper` | Set when the element has helper text or slot
|
|
66
|
+
* `has-error-message` | Set when the element has an error message
|
|
67
|
+
* `has-tooltip` | Set when the element has a slotted tooltip
|
|
68
|
+
* `invalid` | Set when the element is invalid
|
|
69
|
+
* `focused` | Set when the element is focused
|
|
70
|
+
* `focus-ring` | Set when the element is keyboard focused
|
|
71
|
+
* `readonly` | Set when the element is readonly
|
|
72
|
+
* `opened` | Set when the overlay is opened
|
|
54
73
|
*
|
|
55
74
|
* ### Internal components
|
|
56
75
|
*
|
|
57
76
|
* In addition to `<vaadin-time-picker>` itself, the following internal
|
|
58
77
|
* components are themable:
|
|
59
78
|
*
|
|
60
|
-
* - `<vaadin-time-picker-combo-box>` - an internal version of [`<vaadin-combo-box>`](#/elements/vaadin-combo-box).
|
|
61
|
-
* - `<vaadin-time-picker-overlay>` - has the same API as [`<vaadin-overlay>`](#/elements/vaadin-overlay).
|
|
62
79
|
* - `<vaadin-time-picker-item>` - has the same API as [`<vaadin-item>`](#/elements/vaadin-item).
|
|
63
|
-
* - [`<vaadin-input-container>`](#/elements/vaadin-input-container) - an internal element wrapping the input.
|
|
64
|
-
*
|
|
65
|
-
* Note: the `theme` attribute value set on `<vaadin-time-picker>` is
|
|
66
|
-
* propagated to the internal components listed above.
|
|
67
80
|
*
|
|
68
81
|
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
69
82
|
*
|
|
@@ -95,7 +108,7 @@ import { TimePickerMixin } from './vaadin-time-picker-mixin.js';
|
|
|
95
108
|
* @mixes ThemableMixin
|
|
96
109
|
* @mixes TimePickerMixin
|
|
97
110
|
*/
|
|
98
|
-
class TimePicker extends TimePickerMixin(ThemableMixin(ElementMixin(PolylitMixin(LitElement)))) {
|
|
111
|
+
class TimePicker extends TimePickerMixin(ThemableMixin(ElementMixin(PolylitMixin(LumoInjectionMixin(LitElement))))) {
|
|
99
112
|
static get is() {
|
|
100
113
|
return 'vaadin-time-picker';
|
|
101
114
|
}
|
|
@@ -113,35 +126,18 @@ class TimePicker extends TimePickerMixin(ThemableMixin(ElementMixin(PolylitMixin
|
|
|
113
126
|
<span part="required-indicator" aria-hidden="true" @click="${this.focus}"></span>
|
|
114
127
|
</div>
|
|
115
128
|
|
|
116
|
-
<vaadin-
|
|
117
|
-
|
|
118
|
-
.filteredItems="${this.__dropdownItems}"
|
|
119
|
-
.value="${this._comboBoxValue}"
|
|
120
|
-
.opened="${this.opened}"
|
|
121
|
-
.disabled="${this.disabled}"
|
|
129
|
+
<vaadin-input-container
|
|
130
|
+
part="input-field"
|
|
122
131
|
.readonly="${this.readonly}"
|
|
123
|
-
.
|
|
124
|
-
.
|
|
125
|
-
.overlayClass="${this.overlayClass}"
|
|
126
|
-
.positionTarget="${this._inputContainer}"
|
|
132
|
+
.disabled="${this.disabled}"
|
|
133
|
+
.invalid="${this.invalid}"
|
|
127
134
|
theme="${ifDefined(this._theme)}"
|
|
128
|
-
@value-changed="${this.__onComboBoxValueChanged}"
|
|
129
|
-
@opened-changed="${this.__onComboBoxOpenedChanged}"
|
|
130
|
-
@change="${this.__onComboBoxChange}"
|
|
131
135
|
>
|
|
132
|
-
<
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
theme="${ifDefined(this._theme)}"
|
|
138
|
-
>
|
|
139
|
-
<slot name="prefix" slot="prefix"></slot>
|
|
140
|
-
<slot name="input"></slot>
|
|
141
|
-
<div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
|
|
142
|
-
<div id="toggleButton" class="toggle-button" part="toggle-button" slot="suffix" aria-hidden="true"></div>
|
|
143
|
-
</vaadin-input-container>
|
|
144
|
-
</vaadin-time-picker-combo-box>
|
|
136
|
+
<slot name="prefix" slot="prefix"></slot>
|
|
137
|
+
<slot name="input"></slot>
|
|
138
|
+
<div id="clearButton" part="field-button clear-button" slot="suffix" aria-hidden="true"></div>
|
|
139
|
+
<div id="toggleButton" part="field-button toggle-button" slot="suffix" aria-hidden="true"></div>
|
|
140
|
+
</vaadin-input-container>
|
|
145
141
|
|
|
146
142
|
<div part="helper-text">
|
|
147
143
|
<slot name="helper"></slot>
|
|
@@ -151,18 +147,22 @@ class TimePicker extends TimePickerMixin(ThemableMixin(ElementMixin(PolylitMixin
|
|
|
151
147
|
<slot name="error-message"></slot>
|
|
152
148
|
</div>
|
|
153
149
|
</div>
|
|
154
|
-
<slot name="tooltip"></slot>
|
|
155
|
-
`;
|
|
156
|
-
}
|
|
157
150
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
151
|
+
<vaadin-time-picker-overlay
|
|
152
|
+
id="overlay"
|
|
153
|
+
dir="ltr"
|
|
154
|
+
.owner="${this}"
|
|
155
|
+
.opened="${this._overlayOpened}"
|
|
156
|
+
theme="${ifDefined(this._theme)}"
|
|
157
|
+
.positionTarget="${this._inputContainer}"
|
|
158
|
+
no-vertical-overlap
|
|
159
|
+
exportparts="overlay, content"
|
|
160
|
+
>
|
|
161
|
+
<slot name="overlay"></slot>
|
|
162
|
+
</vaadin-time-picker-overlay>
|
|
162
163
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
this._comboBoxValue = event.detail.value;
|
|
164
|
+
<slot name="tooltip"></slot>
|
|
165
|
+
`;
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
|
package/vaadin-time-picker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './src/vaadin-time-picker.js';
|
|
2
2
|
export * from './src/vaadin-time-picker.js';
|
package/web-types.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/time-picker",
|
|
4
|
-
"version": "25.0.0-
|
|
4
|
+
"version": "25.0.0-alpha21",
|
|
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\
|
|
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.0.0-alpha21/#/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
14
|
"name": "disabled",
|
|
@@ -21,6 +21,55 @@
|
|
|
21
21
|
]
|
|
22
22
|
}
|
|
23
23
|
},
|
|
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.",
|
|
36
|
+
"value": {
|
|
37
|
+
"type": [
|
|
38
|
+
"boolean"
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "auto-open-disabled",
|
|
44
|
+
"description": "Set true to prevent the overlay from opening automatically.",
|
|
45
|
+
"value": {
|
|
46
|
+
"type": [
|
|
47
|
+
"boolean",
|
|
48
|
+
"null",
|
|
49
|
+
"undefined"
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "readonly",
|
|
55
|
+
"description": "When present, it specifies that the field is read-only.",
|
|
56
|
+
"value": {
|
|
57
|
+
"type": [
|
|
58
|
+
"boolean",
|
|
59
|
+
"null",
|
|
60
|
+
"undefined"
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
},
|
|
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
|
+
},
|
|
24
73
|
{
|
|
25
74
|
"name": "autofocus",
|
|
26
75
|
"description": "Specify that this control should have input focus when the page loads.",
|
|
@@ -120,15 +169,6 @@
|
|
|
120
169
|
]
|
|
121
170
|
}
|
|
122
171
|
},
|
|
123
|
-
{
|
|
124
|
-
"name": "value",
|
|
125
|
-
"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`",
|
|
126
|
-
"value": {
|
|
127
|
-
"type": [
|
|
128
|
-
"string"
|
|
129
|
-
]
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
172
|
{
|
|
133
173
|
"name": "clear-button-visible",
|
|
134
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.",
|
|
@@ -184,17 +224,6 @@
|
|
|
184
224
|
]
|
|
185
225
|
}
|
|
186
226
|
},
|
|
187
|
-
{
|
|
188
|
-
"name": "readonly",
|
|
189
|
-
"description": "When present, it specifies that the field is read-only.",
|
|
190
|
-
"value": {
|
|
191
|
-
"type": [
|
|
192
|
-
"boolean",
|
|
193
|
-
"null",
|
|
194
|
-
"undefined"
|
|
195
|
-
]
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
227
|
{
|
|
199
228
|
"name": "title",
|
|
200
229
|
"description": "The text usually displayed in a tooltip popup when the mouse is over the field.",
|
|
@@ -217,17 +246,6 @@
|
|
|
217
246
|
]
|
|
218
247
|
}
|
|
219
248
|
},
|
|
220
|
-
{
|
|
221
|
-
"name": "opened",
|
|
222
|
-
"description": "True if the dropdown is open, false otherwise.",
|
|
223
|
-
"value": {
|
|
224
|
-
"type": [
|
|
225
|
-
"boolean",
|
|
226
|
-
"null",
|
|
227
|
-
"undefined"
|
|
228
|
-
]
|
|
229
|
-
}
|
|
230
|
-
},
|
|
231
249
|
{
|
|
232
250
|
"name": "min",
|
|
233
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`",
|
|
@@ -257,28 +275,6 @@
|
|
|
257
275
|
]
|
|
258
276
|
}
|
|
259
277
|
},
|
|
260
|
-
{
|
|
261
|
-
"name": "auto-open-disabled",
|
|
262
|
-
"description": "Set true to prevent the overlay from opening automatically.",
|
|
263
|
-
"value": {
|
|
264
|
-
"type": [
|
|
265
|
-
"boolean",
|
|
266
|
-
"null",
|
|
267
|
-
"undefined"
|
|
268
|
-
]
|
|
269
|
-
}
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
"name": "overlay-class",
|
|
273
|
-
"description": "A space-delimited list of CSS class names to set on the overlay element.",
|
|
274
|
-
"value": {
|
|
275
|
-
"type": [
|
|
276
|
-
"string",
|
|
277
|
-
"null",
|
|
278
|
-
"undefined"
|
|
279
|
-
]
|
|
280
|
-
}
|
|
281
|
-
},
|
|
282
278
|
{
|
|
283
279
|
"name": "theme",
|
|
284
280
|
"description": "The theme variants to apply to the component.",
|
|
@@ -304,6 +300,55 @@
|
|
|
304
300
|
]
|
|
305
301
|
}
|
|
306
302
|
},
|
|
303
|
+
{
|
|
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`",
|
|
306
|
+
"value": {
|
|
307
|
+
"type": [
|
|
308
|
+
"string"
|
|
309
|
+
]
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"name": "opened",
|
|
314
|
+
"description": "True if the dropdown is open, false otherwise.",
|
|
315
|
+
"value": {
|
|
316
|
+
"type": [
|
|
317
|
+
"boolean"
|
|
318
|
+
]
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"name": "autoOpenDisabled",
|
|
323
|
+
"description": "Set true to prevent the overlay from opening automatically.",
|
|
324
|
+
"value": {
|
|
325
|
+
"type": [
|
|
326
|
+
"boolean",
|
|
327
|
+
"null",
|
|
328
|
+
"undefined"
|
|
329
|
+
]
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"name": "readonly",
|
|
334
|
+
"description": "When present, it specifies that the field is read-only.",
|
|
335
|
+
"value": {
|
|
336
|
+
"type": [
|
|
337
|
+
"boolean",
|
|
338
|
+
"null",
|
|
339
|
+
"undefined"
|
|
340
|
+
]
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
{
|
|
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.",
|
|
346
|
+
"value": {
|
|
347
|
+
"type": [
|
|
348
|
+
"TimePickerI18n"
|
|
349
|
+
]
|
|
350
|
+
}
|
|
351
|
+
},
|
|
307
352
|
{
|
|
308
353
|
"name": "autofocus",
|
|
309
354
|
"description": "Specify that this control should have input focus when the page loads.",
|
|
@@ -403,15 +448,6 @@
|
|
|
403
448
|
]
|
|
404
449
|
}
|
|
405
450
|
},
|
|
406
|
-
{
|
|
407
|
-
"name": "value",
|
|
408
|
-
"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`",
|
|
409
|
-
"value": {
|
|
410
|
-
"type": [
|
|
411
|
-
"string"
|
|
412
|
-
]
|
|
413
|
-
}
|
|
414
|
-
},
|
|
415
451
|
{
|
|
416
452
|
"name": "clearButtonVisible",
|
|
417
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.",
|
|
@@ -467,17 +503,6 @@
|
|
|
467
503
|
]
|
|
468
504
|
}
|
|
469
505
|
},
|
|
470
|
-
{
|
|
471
|
-
"name": "readonly",
|
|
472
|
-
"description": "When present, it specifies that the field is read-only.",
|
|
473
|
-
"value": {
|
|
474
|
-
"type": [
|
|
475
|
-
"boolean",
|
|
476
|
-
"null",
|
|
477
|
-
"undefined"
|
|
478
|
-
]
|
|
479
|
-
}
|
|
480
|
-
},
|
|
481
506
|
{
|
|
482
507
|
"name": "title",
|
|
483
508
|
"description": "The text usually displayed in a tooltip popup when the mouse is over the field.",
|
|
@@ -500,17 +525,6 @@
|
|
|
500
525
|
]
|
|
501
526
|
}
|
|
502
527
|
},
|
|
503
|
-
{
|
|
504
|
-
"name": "opened",
|
|
505
|
-
"description": "True if the dropdown is open, false otherwise.",
|
|
506
|
-
"value": {
|
|
507
|
-
"type": [
|
|
508
|
-
"boolean",
|
|
509
|
-
"null",
|
|
510
|
-
"undefined"
|
|
511
|
-
]
|
|
512
|
-
}
|
|
513
|
-
},
|
|
514
528
|
{
|
|
515
529
|
"name": "min",
|
|
516
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`",
|
|
@@ -539,37 +553,6 @@
|
|
|
539
553
|
"undefined"
|
|
540
554
|
]
|
|
541
555
|
}
|
|
542
|
-
},
|
|
543
|
-
{
|
|
544
|
-
"name": "autoOpenDisabled",
|
|
545
|
-
"description": "Set true to prevent the overlay from opening automatically.",
|
|
546
|
-
"value": {
|
|
547
|
-
"type": [
|
|
548
|
-
"boolean",
|
|
549
|
-
"null",
|
|
550
|
-
"undefined"
|
|
551
|
-
]
|
|
552
|
-
}
|
|
553
|
-
},
|
|
554
|
-
{
|
|
555
|
-
"name": "overlayClass",
|
|
556
|
-
"description": "A space-delimited list of CSS class names to set on the overlay element.",
|
|
557
|
-
"value": {
|
|
558
|
-
"type": [
|
|
559
|
-
"string",
|
|
560
|
-
"null",
|
|
561
|
-
"undefined"
|
|
562
|
-
]
|
|
563
|
-
}
|
|
564
|
-
},
|
|
565
|
-
{
|
|
566
|
-
"name": "i18n",
|
|
567
|
-
"description": "The object used to localize this component.\nTo change the default localization, replace the entire\n_i18n_ object or just the property you want to modify.\n\nThe object has the following JSON structure:\n\n```\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\nBoth `formatTime` and `parseTime` need to be implemented\nto ensure the component works properly.",
|
|
568
|
-
"value": {
|
|
569
|
-
"type": [
|
|
570
|
-
"TimePickerI18n"
|
|
571
|
-
]
|
|
572
|
-
}
|
|
573
556
|
}
|
|
574
557
|
],
|
|
575
558
|
"events": [
|
|
@@ -585,10 +568,6 @@
|
|
|
585
568
|
"name": "input",
|
|
586
569
|
"description": "Fired when the value is changed by the user: on every typing keystroke,\nand the value is cleared using the clear button."
|
|
587
570
|
},
|
|
588
|
-
{
|
|
589
|
-
"name": "invalid-changed",
|
|
590
|
-
"description": "Fired when the `invalid` property changes."
|
|
591
|
-
},
|
|
592
571
|
{
|
|
593
572
|
"name": "value-changed",
|
|
594
573
|
"description": "Fired when the `value` property changes."
|
|
@@ -596,6 +575,10 @@
|
|
|
596
575
|
{
|
|
597
576
|
"name": "opened-changed",
|
|
598
577
|
"description": "Fired when the `opened` property changes."
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
"name": "invalid-changed",
|
|
581
|
+
"description": "Fired when the `invalid` property changes."
|
|
599
582
|
}
|
|
600
583
|
]
|
|
601
584
|
}
|