@vaadin/time-picker 23.1.2 → 23.2.0-dev.48e5e3967
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/time-picker",
|
|
3
|
-
"version": "23.
|
|
3
|
+
"version": "23.2.0-dev.48e5e3967",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -34,18 +34,18 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@polymer/polymer": "^3.0.0",
|
|
37
|
-
"@vaadin/combo-box": "
|
|
38
|
-
"@vaadin/component-base": "
|
|
39
|
-
"@vaadin/field-base": "
|
|
40
|
-
"@vaadin/input-container": "
|
|
41
|
-
"@vaadin/vaadin-lumo-styles": "
|
|
42
|
-
"@vaadin/vaadin-material-styles": "
|
|
43
|
-
"@vaadin/vaadin-themable-mixin": "
|
|
37
|
+
"@vaadin/combo-box": "23.2.0-dev.48e5e3967",
|
|
38
|
+
"@vaadin/component-base": "23.2.0-dev.48e5e3967",
|
|
39
|
+
"@vaadin/field-base": "23.2.0-dev.48e5e3967",
|
|
40
|
+
"@vaadin/input-container": "23.2.0-dev.48e5e3967",
|
|
41
|
+
"@vaadin/vaadin-lumo-styles": "23.2.0-dev.48e5e3967",
|
|
42
|
+
"@vaadin/vaadin-material-styles": "23.2.0-dev.48e5e3967",
|
|
43
|
+
"@vaadin/vaadin-themable-mixin": "23.2.0-dev.48e5e3967"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@esm-bundle/chai": "^4.3.4",
|
|
47
47
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
48
48
|
"sinon": "^13.0.2"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "961bc4ae5b707c3c02f12b99819b3c12c9b478aa"
|
|
51
51
|
}
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
* Copyright (c) 2018 - 2022 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
-
import './vaadin-time-picker-
|
|
6
|
+
import './vaadin-time-picker-item.js';
|
|
7
|
+
import './vaadin-time-picker-scroller.js';
|
|
8
|
+
import './vaadin-time-picker-overlay.js';
|
|
7
9
|
import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
|
|
8
10
|
import { ComboBoxMixin } from '@vaadin/combo-box/src/vaadin-combo-box-mixin.js';
|
|
9
11
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
@@ -31,17 +33,16 @@ class TimePickerComboBox extends ComboBoxMixin(ThemableMixin(PolymerElement)) {
|
|
|
31
33
|
|
|
32
34
|
<slot></slot>
|
|
33
35
|
|
|
34
|
-
<vaadin-time-picker-
|
|
35
|
-
id="
|
|
36
|
-
|
|
36
|
+
<vaadin-time-picker-overlay
|
|
37
|
+
id="overlay"
|
|
38
|
+
hidden$="[[_isOverlayHidden(filteredItems, loading)]]"
|
|
39
|
+
opened="[[_overlayOpened]]"
|
|
40
|
+
loading$="[[loading]]"
|
|
41
|
+
theme$="[[_theme]]"
|
|
37
42
|
position-target="[[positionTarget]]"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
_item-label-path="[[itemLabelPath]]"
|
|
42
|
-
loading="[[loading]]"
|
|
43
|
-
theme="[[_theme]]"
|
|
44
|
-
></vaadin-time-picker-dropdown>
|
|
43
|
+
no-vertical-overlap
|
|
44
|
+
restore-focus-node="[[inputElement]]"
|
|
45
|
+
></vaadin-time-picker-overlay>
|
|
45
46
|
`;
|
|
46
47
|
}
|
|
47
48
|
|
|
@@ -54,20 +55,21 @@ class TimePickerComboBox extends ComboBoxMixin(ThemableMixin(PolymerElement)) {
|
|
|
54
55
|
}
|
|
55
56
|
|
|
56
57
|
/**
|
|
57
|
-
*
|
|
58
|
+
* Tag name prefix used by scroller and items.
|
|
58
59
|
* @protected
|
|
59
|
-
* @return {
|
|
60
|
+
* @return {string}
|
|
60
61
|
*/
|
|
61
|
-
get
|
|
62
|
-
return
|
|
62
|
+
get _tagNamePrefix() {
|
|
63
|
+
return 'vaadin-time-picker';
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
/**
|
|
67
|
+
* Reference to the clear button element.
|
|
66
68
|
* @protected
|
|
67
|
-
* @
|
|
69
|
+
* @return {!HTMLElement}
|
|
68
70
|
*/
|
|
69
|
-
|
|
70
|
-
return
|
|
71
|
+
get clearElement() {
|
|
72
|
+
return this.querySelector('[part="clear-button"]');
|
|
71
73
|
}
|
|
72
74
|
|
|
73
75
|
/** @protected */
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2018 - 2022 Vaadin Ltd.
|
|
4
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
-
*/
|
|
6
|
-
import './vaadin-time-picker-item.js';
|
|
7
|
-
import './vaadin-time-picker-overlay.js';
|
|
8
|
-
import './vaadin-time-picker-scroller.js';
|
|
9
|
-
import { html } from '@polymer/polymer/lib/utils/html-tag.js';
|
|
10
|
-
import { ComboBoxDropdown } from '@vaadin/combo-box/src/vaadin-combo-box-dropdown.js';
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* An element used internally by `<vaadin-time-picker>`. Not intended to be used separately.
|
|
14
|
-
*
|
|
15
|
-
* @extends ComboBoxDropdown
|
|
16
|
-
* @private
|
|
17
|
-
*/
|
|
18
|
-
class TimePickerDropdown extends ComboBoxDropdown {
|
|
19
|
-
static get is() {
|
|
20
|
-
return 'vaadin-time-picker-dropdown';
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
static get template() {
|
|
24
|
-
return html`
|
|
25
|
-
<vaadin-time-picker-overlay
|
|
26
|
-
id="overlay"
|
|
27
|
-
hidden$="[[_isOverlayHidden(_items.*, loading)]]"
|
|
28
|
-
loading$="[[loading]]"
|
|
29
|
-
opened="{{_overlayOpened}}"
|
|
30
|
-
theme$="[[_theme]]"
|
|
31
|
-
position-target="[[positionTarget]]"
|
|
32
|
-
no-vertical-overlap
|
|
33
|
-
></vaadin-time-picker-overlay>
|
|
34
|
-
`;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
customElements.define(TimePickerDropdown.is, TimePickerDropdown);
|