@vaadin/time-picker 25.0.0-alpha1 → 25.0.0-alpha11
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 -14
- package/{theme/lumo/vaadin-time-picker.js → src/styles/vaadin-time-picker-base-styles.d.ts} +3 -2
- package/src/styles/vaadin-time-picker-base-styles.js +27 -0
- package/src/styles/vaadin-time-picker-overlay-base-styles.js +22 -0
- package/src/styles/vaadin-time-picker-scroller-base-styles.js +8 -0
- package/src/vaadin-time-picker-item.js +7 -11
- package/src/vaadin-time-picker-mixin.d.ts +4 -28
- package/src/vaadin-time-picker-mixin.js +158 -84
- package/src/vaadin-time-picker-overlay.js +5 -16
- package/src/vaadin-time-picker-scroller.js +3 -24
- package/src/vaadin-time-picker.d.ts +5 -9
- package/src/vaadin-time-picker.js +36 -66
- package/vaadin-time-picker.js +1 -1
- package/web-types.json +108 -112
- package/web-types.lit.json +33 -33
- 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
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
* Copyright (c) 2018 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
6
|
+
import { html, LitElement } from 'lit';
|
|
7
7
|
import { ComboBoxScrollerMixin } from '@vaadin/combo-box/src/vaadin-combo-box-scroller-mixin.js';
|
|
8
8
|
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
9
9
|
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
10
|
+
import { timePickerScrollerStyles } from './styles/vaadin-time-picker-scroller-base-styles.js';
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* An element used internally by `<vaadin-time-picker>`. Not intended to be used separately.
|
|
@@ -22,29 +23,7 @@ export class TimePickerScroller extends ComboBoxScrollerMixin(PolylitMixin(LitEl
|
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
static get styles() {
|
|
25
|
-
return
|
|
26
|
-
:host {
|
|
27
|
-
display: block;
|
|
28
|
-
min-height: 1px;
|
|
29
|
-
overflow: auto;
|
|
30
|
-
|
|
31
|
-
/* Fixes item background from getting on top of scrollbars on Safari */
|
|
32
|
-
transform: translate3d(0, 0, 0);
|
|
33
|
-
|
|
34
|
-
/* Enable momentum scrolling on iOS */
|
|
35
|
-
-webkit-overflow-scrolling: touch;
|
|
36
|
-
|
|
37
|
-
/* Fixes scrollbar disappearing when 'Show scroll bars: Always' enabled in Safari */
|
|
38
|
-
box-shadow: 0 0 0 white;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
#selector {
|
|
42
|
-
border-width: var(--_vaadin-time-picker-items-container-border-width);
|
|
43
|
-
border-style: var(--_vaadin-time-picker-items-container-border-style);
|
|
44
|
-
border-color: var(--_vaadin-time-picker-items-container-border-color, transparent);
|
|
45
|
-
position: relative;
|
|
46
|
-
}
|
|
47
|
-
`;
|
|
26
|
+
return timePickerScrollerStyles;
|
|
48
27
|
}
|
|
49
28
|
|
|
50
29
|
/** @protected */
|
|
@@ -78,9 +78,11 @@ export interface TimePickerEventMap extends HTMLElementEventMap, TimePickerCusto
|
|
|
78
78
|
*
|
|
79
79
|
* In addition to `<vaadin-text-field>` parts, the following parts are available for theming:
|
|
80
80
|
*
|
|
81
|
-
* Part name
|
|
82
|
-
*
|
|
83
|
-
* `toggle-button`
|
|
81
|
+
* Part name | Description
|
|
82
|
+
* -----------------|----------------
|
|
83
|
+
* `toggle-button` | The toggle button
|
|
84
|
+
* `overlay` | The overlay container
|
|
85
|
+
* `content` | The overlay content
|
|
84
86
|
*
|
|
85
87
|
* In addition to `<vaadin-text-field>` state attributes, the following state attributes are available for theming:
|
|
86
88
|
*
|
|
@@ -93,13 +95,7 @@ export interface TimePickerEventMap extends HTMLElementEventMap, TimePickerCusto
|
|
|
93
95
|
* In addition to `<vaadin-time-picker>` itself, the following internal
|
|
94
96
|
* components are themable:
|
|
95
97
|
*
|
|
96
|
-
* - `<vaadin-time-picker-combo-box>` - an internal version of [`<vaadin-combo-box>`](#/elements/vaadin-combo-box).
|
|
97
|
-
* - `<vaadin-time-picker-overlay>` - has the same API as [`<vaadin-overlay>`](#/elements/vaadin-overlay).
|
|
98
98
|
* - `<vaadin-time-picker-item>` - has the same API as [`<vaadin-item>`](#/elements/vaadin-item).
|
|
99
|
-
* - [`<vaadin-input-container>`](#/elements/vaadin-input-container) - an internal element wrapping the input.
|
|
100
|
-
*
|
|
101
|
-
* Note: the `theme` attribute value set on `<vaadin-time-picker>` is
|
|
102
|
-
* propagated to the internal components listed above.
|
|
103
99
|
*
|
|
104
100
|
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
105
101
|
*
|
|
@@ -4,14 +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-
|
|
8
|
-
import
|
|
7
|
+
import './vaadin-time-picker-item.js';
|
|
8
|
+
import './vaadin-time-picker-overlay.js';
|
|
9
|
+
import './vaadin-time-picker-scroller.js';
|
|
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';
|
|
18
|
+
import { timePickerStyles } from './styles/vaadin-time-picker-base-styles.js';
|
|
15
19
|
import { TimePickerMixin } from './vaadin-time-picker-mixin.js';
|
|
16
20
|
|
|
17
21
|
/**
|
|
@@ -41,9 +45,11 @@ import { TimePickerMixin } from './vaadin-time-picker-mixin.js';
|
|
|
41
45
|
*
|
|
42
46
|
* In addition to `<vaadin-text-field>` parts, the following parts are available for theming:
|
|
43
47
|
*
|
|
44
|
-
* Part name
|
|
45
|
-
*
|
|
46
|
-
* `toggle-button`
|
|
48
|
+
* Part name | Description
|
|
49
|
+
* -----------------|----------------
|
|
50
|
+
* `toggle-button` | The toggle button
|
|
51
|
+
* `overlay` | The overlay container
|
|
52
|
+
* `content` | The overlay content
|
|
47
53
|
*
|
|
48
54
|
* In addition to `<vaadin-text-field>` state attributes, the following state attributes are available for theming:
|
|
49
55
|
*
|
|
@@ -56,13 +62,7 @@ import { TimePickerMixin } from './vaadin-time-picker-mixin.js';
|
|
|
56
62
|
* In addition to `<vaadin-time-picker>` itself, the following internal
|
|
57
63
|
* components are themable:
|
|
58
64
|
*
|
|
59
|
-
* - `<vaadin-time-picker-combo-box>` - an internal version of [`<vaadin-combo-box>`](#/elements/vaadin-combo-box).
|
|
60
|
-
* - `<vaadin-time-picker-overlay>` - has the same API as [`<vaadin-overlay>`](#/elements/vaadin-overlay).
|
|
61
65
|
* - `<vaadin-time-picker-item>` - has the same API as [`<vaadin-item>`](#/elements/vaadin-item).
|
|
62
|
-
* - [`<vaadin-input-container>`](#/elements/vaadin-input-container) - an internal element wrapping the input.
|
|
63
|
-
*
|
|
64
|
-
* Note: the `theme` attribute value set on `<vaadin-time-picker>` is
|
|
65
|
-
* propagated to the internal components listed above.
|
|
66
66
|
*
|
|
67
67
|
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
68
68
|
*
|
|
@@ -94,30 +94,13 @@ import { TimePickerMixin } from './vaadin-time-picker-mixin.js';
|
|
|
94
94
|
* @mixes ThemableMixin
|
|
95
95
|
* @mixes TimePickerMixin
|
|
96
96
|
*/
|
|
97
|
-
class TimePicker extends TimePickerMixin(ThemableMixin(ElementMixin(PolylitMixin(LitElement)))) {
|
|
97
|
+
class TimePicker extends TimePickerMixin(ThemableMixin(ElementMixin(PolylitMixin(LumoInjectionMixin(LitElement))))) {
|
|
98
98
|
static get is() {
|
|
99
99
|
return 'vaadin-time-picker';
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
static get styles() {
|
|
103
|
-
return [
|
|
104
|
-
inputFieldShared,
|
|
105
|
-
css`
|
|
106
|
-
/* See https://github.com/vaadin/vaadin-time-picker/issues/145 */
|
|
107
|
-
:host([dir='rtl']) [part='input-field'] {
|
|
108
|
-
direction: ltr;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
:host([dir='rtl']) [part='input-field'] ::slotted(input)::placeholder {
|
|
112
|
-
direction: rtl;
|
|
113
|
-
text-align: left;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
[part~='toggle-button'] {
|
|
117
|
-
cursor: pointer;
|
|
118
|
-
}
|
|
119
|
-
`,
|
|
120
|
-
];
|
|
103
|
+
return [inputFieldShared, timePickerStyles];
|
|
121
104
|
}
|
|
122
105
|
|
|
123
106
|
/** @protected */
|
|
@@ -129,35 +112,18 @@ class TimePicker extends TimePickerMixin(ThemableMixin(ElementMixin(PolylitMixin
|
|
|
129
112
|
<span part="required-indicator" aria-hidden="true" @click="${this.focus}"></span>
|
|
130
113
|
</div>
|
|
131
114
|
|
|
132
|
-
<vaadin-
|
|
133
|
-
|
|
134
|
-
.filteredItems="${this.__dropdownItems}"
|
|
135
|
-
.value="${this._comboBoxValue}"
|
|
136
|
-
.opened="${this.opened}"
|
|
137
|
-
.disabled="${this.disabled}"
|
|
115
|
+
<vaadin-input-container
|
|
116
|
+
part="input-field"
|
|
138
117
|
.readonly="${this.readonly}"
|
|
139
|
-
.
|
|
140
|
-
.
|
|
141
|
-
.overlayClass="${this.overlayClass}"
|
|
142
|
-
.positionTarget="${this._inputContainer}"
|
|
118
|
+
.disabled="${this.disabled}"
|
|
119
|
+
.invalid="${this.invalid}"
|
|
143
120
|
theme="${ifDefined(this._theme)}"
|
|
144
|
-
@value-changed="${this.__onComboBoxValueChanged}"
|
|
145
|
-
@opened-changed="${this.__onComboBoxOpenedChanged}"
|
|
146
|
-
@change="${this.__onComboBoxChange}"
|
|
147
121
|
>
|
|
148
|
-
<
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
theme="${ifDefined(this._theme)}"
|
|
154
|
-
>
|
|
155
|
-
<slot name="prefix" slot="prefix"></slot>
|
|
156
|
-
<slot name="input"></slot>
|
|
157
|
-
<div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
|
|
158
|
-
<div id="toggleButton" class="toggle-button" part="toggle-button" slot="suffix" aria-hidden="true"></div>
|
|
159
|
-
</vaadin-input-container>
|
|
160
|
-
</vaadin-time-picker-combo-box>
|
|
122
|
+
<slot name="prefix" slot="prefix"></slot>
|
|
123
|
+
<slot name="input"></slot>
|
|
124
|
+
<div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
|
|
125
|
+
<div id="toggleButton" part="toggle-button" slot="suffix" aria-hidden="true"></div>
|
|
126
|
+
</vaadin-input-container>
|
|
161
127
|
|
|
162
128
|
<div part="helper-text">
|
|
163
129
|
<slot name="helper"></slot>
|
|
@@ -167,18 +133,22 @@ class TimePicker extends TimePickerMixin(ThemableMixin(ElementMixin(PolylitMixin
|
|
|
167
133
|
<slot name="error-message"></slot>
|
|
168
134
|
</div>
|
|
169
135
|
</div>
|
|
170
|
-
<slot name="tooltip"></slot>
|
|
171
|
-
`;
|
|
172
|
-
}
|
|
173
136
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
137
|
+
<vaadin-time-picker-overlay
|
|
138
|
+
id="overlay"
|
|
139
|
+
dir="ltr"
|
|
140
|
+
.owner="${this}"
|
|
141
|
+
.opened="${this._overlayOpened}"
|
|
142
|
+
theme="${ifDefined(this._theme)}"
|
|
143
|
+
.positionTarget="${this._inputContainer}"
|
|
144
|
+
no-vertical-overlap
|
|
145
|
+
exportparts="overlay, content"
|
|
146
|
+
>
|
|
147
|
+
<slot name="overlay"></slot>
|
|
148
|
+
</vaadin-time-picker-overlay>
|
|
178
149
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
this._comboBoxValue = event.detail.value;
|
|
150
|
+
<slot name="tooltip"></slot>
|
|
151
|
+
`;
|
|
182
152
|
}
|
|
183
153
|
}
|
|
184
154
|
|
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-alpha11",
|
|
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\n`<vaadin-time-picker>` provides the same set of shadow DOM parts and state attributes as `<vaadin-text-field>`.\nSee [`<vaadin-text-field>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-
|
|
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\n`<vaadin-time-picker>` provides the same set of shadow DOM parts and state attributes as `<vaadin-text-field>`.\nSee [`<vaadin-text-field>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha11/#/elements/vaadin-text-field) for the styling documentation.\n\nIn addition to `<vaadin-text-field>` parts, the following parts are available for theming:\n\nPart name | Description\n-----------------|----------------\n`toggle-button` | The toggle button\n`overlay` | The overlay container\n`content` | The overlay content\n\nIn addition to `<vaadin-text-field>` state attributes, the following state attributes are available for theming:\n\nAttribute | Description\n----------|------------------------------------------\n`opened` | Set when the time-picker dropdown is open\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-alpha11/#/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,57 @@
|
|
|
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": "overlay-class",
|
|
35
|
+
"description": "A space-delimited list of CSS class names to set on the overlay element.\nThis property does not affect other CSS class names set manually via JS.\n\nNote, if the CSS class name was set with this property, clearing it will\nremove it from the overlay, even if the same class name was also added\nmanually, e.g. by using `classList.add()` in the `renderer` function.",
|
|
36
|
+
"value": {
|
|
37
|
+
"type": [
|
|
38
|
+
"string",
|
|
39
|
+
"null",
|
|
40
|
+
"undefined"
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "opened",
|
|
46
|
+
"description": "True if the dropdown is open, false otherwise.",
|
|
47
|
+
"value": {
|
|
48
|
+
"type": [
|
|
49
|
+
"boolean"
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "auto-open-disabled",
|
|
55
|
+
"description": "Set true to prevent the overlay from opening automatically.",
|
|
56
|
+
"value": {
|
|
57
|
+
"type": [
|
|
58
|
+
"boolean",
|
|
59
|
+
"null",
|
|
60
|
+
"undefined"
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "readonly",
|
|
66
|
+
"description": "When present, it specifies that the field is read-only.",
|
|
67
|
+
"value": {
|
|
68
|
+
"type": [
|
|
69
|
+
"boolean",
|
|
70
|
+
"null",
|
|
71
|
+
"undefined"
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
},
|
|
24
75
|
{
|
|
25
76
|
"name": "autofocus",
|
|
26
77
|
"description": "Specify that this control should have input focus when the page loads.",
|
|
@@ -120,15 +171,6 @@
|
|
|
120
171
|
]
|
|
121
172
|
}
|
|
122
173
|
},
|
|
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
174
|
{
|
|
133
175
|
"name": "clear-button-visible",
|
|
134
176
|
"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 +226,6 @@
|
|
|
184
226
|
]
|
|
185
227
|
}
|
|
186
228
|
},
|
|
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
229
|
{
|
|
199
230
|
"name": "title",
|
|
200
231
|
"description": "The text usually displayed in a tooltip popup when the mouse is over the field.",
|
|
@@ -217,17 +248,6 @@
|
|
|
217
248
|
]
|
|
218
249
|
}
|
|
219
250
|
},
|
|
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
251
|
{
|
|
232
252
|
"name": "min",
|
|
233
253
|
"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 +277,6 @@
|
|
|
257
277
|
]
|
|
258
278
|
}
|
|
259
279
|
},
|
|
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
280
|
{
|
|
283
281
|
"name": "theme",
|
|
284
282
|
"description": "The theme variants to apply to the component.",
|
|
@@ -304,6 +302,57 @@
|
|
|
304
302
|
]
|
|
305
303
|
}
|
|
306
304
|
},
|
|
305
|
+
{
|
|
306
|
+
"name": "value",
|
|
307
|
+
"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`",
|
|
308
|
+
"value": {
|
|
309
|
+
"type": [
|
|
310
|
+
"string"
|
|
311
|
+
]
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"name": "overlayClass",
|
|
316
|
+
"description": "A space-delimited list of CSS class names to set on the overlay element.\nThis property does not affect other CSS class names set manually via JS.\n\nNote, if the CSS class name was set with this property, clearing it will\nremove it from the overlay, even if the same class name was also added\nmanually, e.g. by using `classList.add()` in the `renderer` function.",
|
|
317
|
+
"value": {
|
|
318
|
+
"type": [
|
|
319
|
+
"string",
|
|
320
|
+
"null",
|
|
321
|
+
"undefined"
|
|
322
|
+
]
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"name": "opened",
|
|
327
|
+
"description": "True if the dropdown is open, false otherwise.",
|
|
328
|
+
"value": {
|
|
329
|
+
"type": [
|
|
330
|
+
"boolean"
|
|
331
|
+
]
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"name": "autoOpenDisabled",
|
|
336
|
+
"description": "Set true to prevent the overlay from opening automatically.",
|
|
337
|
+
"value": {
|
|
338
|
+
"type": [
|
|
339
|
+
"boolean",
|
|
340
|
+
"null",
|
|
341
|
+
"undefined"
|
|
342
|
+
]
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"name": "readonly",
|
|
347
|
+
"description": "When present, it specifies that the field is read-only.",
|
|
348
|
+
"value": {
|
|
349
|
+
"type": [
|
|
350
|
+
"boolean",
|
|
351
|
+
"null",
|
|
352
|
+
"undefined"
|
|
353
|
+
]
|
|
354
|
+
}
|
|
355
|
+
},
|
|
307
356
|
{
|
|
308
357
|
"name": "autofocus",
|
|
309
358
|
"description": "Specify that this control should have input focus when the page loads.",
|
|
@@ -403,15 +452,6 @@
|
|
|
403
452
|
]
|
|
404
453
|
}
|
|
405
454
|
},
|
|
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
455
|
{
|
|
416
456
|
"name": "clearButtonVisible",
|
|
417
457
|
"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 +507,6 @@
|
|
|
467
507
|
]
|
|
468
508
|
}
|
|
469
509
|
},
|
|
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
510
|
{
|
|
482
511
|
"name": "title",
|
|
483
512
|
"description": "The text usually displayed in a tooltip popup when the mouse is over the field.",
|
|
@@ -500,17 +529,6 @@
|
|
|
500
529
|
]
|
|
501
530
|
}
|
|
502
531
|
},
|
|
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
532
|
{
|
|
515
533
|
"name": "min",
|
|
516
534
|
"description": "Minimum time allowed.\n\nSupported time formats are in ISO 8601:\n- `hh:mm`\n- `hh:mm:ss`\n- `hh:mm:ss.fff`",
|
|
@@ -540,28 +558,6 @@
|
|
|
540
558
|
]
|
|
541
559
|
}
|
|
542
560
|
},
|
|
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
561
|
{
|
|
566
562
|
"name": "i18n",
|
|
567
563
|
"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.",
|
|
@@ -585,10 +581,6 @@
|
|
|
585
581
|
"name": "input",
|
|
586
582
|
"description": "Fired when the value is changed by the user: on every typing keystroke,\nand the value is cleared using the clear button."
|
|
587
583
|
},
|
|
588
|
-
{
|
|
589
|
-
"name": "invalid-changed",
|
|
590
|
-
"description": "Fired when the `invalid` property changes."
|
|
591
|
-
},
|
|
592
584
|
{
|
|
593
585
|
"name": "value-changed",
|
|
594
586
|
"description": "Fired when the `value` property changes."
|
|
@@ -596,6 +588,10 @@
|
|
|
596
588
|
{
|
|
597
589
|
"name": "opened-changed",
|
|
598
590
|
"description": "Fired when the `opened` property changes."
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
"name": "invalid-changed",
|
|
594
|
+
"description": "Fired when the `invalid` property changes."
|
|
599
595
|
}
|
|
600
596
|
]
|
|
601
597
|
}
|