@vaadin/time-picker 23.1.2 → 23.1.5
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.1.
|
|
3
|
+
"version": "23.1.5",
|
|
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": "^23.1.
|
|
38
|
-
"@vaadin/component-base": "^23.1.
|
|
39
|
-
"@vaadin/field-base": "^23.1.
|
|
40
|
-
"@vaadin/input-container": "^23.1.
|
|
41
|
-
"@vaadin/vaadin-lumo-styles": "^23.1.
|
|
42
|
-
"@vaadin/vaadin-material-styles": "^23.1.
|
|
43
|
-
"@vaadin/vaadin-themable-mixin": "^23.1.
|
|
37
|
+
"@vaadin/combo-box": "^23.1.5",
|
|
38
|
+
"@vaadin/component-base": "^23.1.5",
|
|
39
|
+
"@vaadin/field-base": "^23.1.5",
|
|
40
|
+
"@vaadin/input-container": "^23.1.5",
|
|
41
|
+
"@vaadin/vaadin-lumo-styles": "^23.1.5",
|
|
42
|
+
"@vaadin/vaadin-material-styles": "^23.1.5",
|
|
43
|
+
"@vaadin/vaadin-themable-mixin": "^23.1.5"
|
|
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": "326938919a54353231af25d341ba6076c249afee"
|
|
51
51
|
}
|
|
@@ -9,10 +9,10 @@ import { PatternMixin } from '@vaadin/field-base/src/pattern-mixin.js';
|
|
|
9
9
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
10
10
|
|
|
11
11
|
export interface TimePickerTime {
|
|
12
|
-
hours:
|
|
13
|
-
minutes:
|
|
14
|
-
seconds?:
|
|
15
|
-
milliseconds?:
|
|
12
|
+
hours: number | string;
|
|
13
|
+
minutes: number | string;
|
|
14
|
+
seconds?: number | string;
|
|
15
|
+
milliseconds?: number | string;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export interface TimePickerI18n {
|
|
@@ -198,13 +198,13 @@ declare class TimePicker extends PatternMixin(InputControlMixin(ThemableMixin(El
|
|
|
198
198
|
addEventListener<K extends keyof TimePickerEventMap>(
|
|
199
199
|
type: K,
|
|
200
200
|
listener: (this: TimePicker, ev: TimePickerEventMap[K]) => void,
|
|
201
|
-
options?:
|
|
201
|
+
options?: AddEventListenerOptions | boolean,
|
|
202
202
|
): void;
|
|
203
203
|
|
|
204
204
|
removeEventListener<K extends keyof TimePickerEventMap>(
|
|
205
205
|
type: K,
|
|
206
206
|
listener: (this: TimePicker, ev: TimePickerEventMap[K]) => void,
|
|
207
|
-
options?:
|
|
207
|
+
options?: EventListenerOptions | boolean,
|
|
208
208
|
): void;
|
|
209
209
|
}
|
|
210
210
|
|
|
@@ -549,7 +549,7 @@ class TimePicker extends PatternMixin(InputControlMixin(ThemableMixin(ElementMix
|
|
|
549
549
|
const newValue = this.__formatISO(parsedObj) || '';
|
|
550
550
|
|
|
551
551
|
if (this.value !== '' && this.value !== null && !parsedObj) {
|
|
552
|
-
this.value = oldValue;
|
|
552
|
+
this.value = oldValue === undefined ? '' : oldValue;
|
|
553
553
|
} else if (this.value !== newValue) {
|
|
554
554
|
this.value = newValue;
|
|
555
555
|
} else {
|