@vaadin/date-time-picker 22.0.2 → 23.0.0-alpha4
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/date-time-picker",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "23.0.0-alpha4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"main": "vaadin-date-time-picker.js",
|
|
20
20
|
"module": "vaadin-date-time-picker.js",
|
|
21
|
+
"type": "module",
|
|
21
22
|
"files": [
|
|
22
23
|
"src",
|
|
23
24
|
"theme",
|
|
@@ -33,19 +34,19 @@
|
|
|
33
34
|
],
|
|
34
35
|
"dependencies": {
|
|
35
36
|
"@polymer/polymer": "^3.0.0",
|
|
36
|
-
"@vaadin/component-base": "
|
|
37
|
-
"@vaadin/custom-field": "
|
|
38
|
-
"@vaadin/date-picker": "
|
|
39
|
-
"@vaadin/field-base": "
|
|
40
|
-
"@vaadin/time-picker": "
|
|
41
|
-
"@vaadin/vaadin-lumo-styles": "
|
|
42
|
-
"@vaadin/vaadin-material-styles": "
|
|
43
|
-
"@vaadin/vaadin-themable-mixin": "
|
|
37
|
+
"@vaadin/component-base": "23.0.0-alpha4",
|
|
38
|
+
"@vaadin/custom-field": "23.0.0-alpha4",
|
|
39
|
+
"@vaadin/date-picker": "23.0.0-alpha4",
|
|
40
|
+
"@vaadin/field-base": "23.0.0-alpha4",
|
|
41
|
+
"@vaadin/time-picker": "23.0.0-alpha4",
|
|
42
|
+
"@vaadin/vaadin-lumo-styles": "23.0.0-alpha4",
|
|
43
|
+
"@vaadin/vaadin-material-styles": "23.0.0-alpha4",
|
|
44
|
+
"@vaadin/vaadin-themable-mixin": "23.0.0-alpha4"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
47
|
"@esm-bundle/chai": "^4.3.4",
|
|
47
48
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
48
49
|
"sinon": "^9.2.1"
|
|
49
50
|
},
|
|
50
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "81e2deee5147bb7c1f4884760f4598613306f1fb"
|
|
51
52
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2019 - 2022 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { DatePicker } from '@vaadin/date-picker/src/vaadin-date-picker.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2019 - 2022 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { TimePicker } from '@vaadin/time-picker/src/vaadin-time-picker.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2019 - 2022 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { DisabledMixin } from '@vaadin/component-base/src/disabled-mixin.js';
|
|
@@ -13,6 +13,13 @@ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mix
|
|
|
13
13
|
|
|
14
14
|
export interface DateTimePickerI18n extends DatePickerI18n, TimePickerI18n {}
|
|
15
15
|
|
|
16
|
+
/**
|
|
17
|
+
* Fired when the user commits a value change.
|
|
18
|
+
*/
|
|
19
|
+
export type DateTimePickerChangeEvent = Event & {
|
|
20
|
+
target: DateTimePicker;
|
|
21
|
+
};
|
|
22
|
+
|
|
16
23
|
/**
|
|
17
24
|
* Fired when the `invalid` property changes.
|
|
18
25
|
*/
|
|
@@ -29,7 +36,9 @@ export interface DateTimePickerCustomEventMap {
|
|
|
29
36
|
'value-changed': DateTimePickerValueChangedEvent;
|
|
30
37
|
}
|
|
31
38
|
|
|
32
|
-
export interface DateTimePickerEventMap extends DateTimePickerCustomEventMap, HTMLElementEventMap {
|
|
39
|
+
export interface DateTimePickerEventMap extends DateTimePickerCustomEventMap, HTMLElementEventMap {
|
|
40
|
+
change: DateTimePickerChangeEvent;
|
|
41
|
+
}
|
|
33
42
|
|
|
34
43
|
/**
|
|
35
44
|
* `<vaadin-date-time-picker>` is a Web Component providing a date time selection field.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2019 - 2022 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import './vaadin-date-time-picker-date-picker.js';
|
|
@@ -26,14 +26,14 @@ registerStyles('vaadin-date-time-picker', inputFieldShared, { moduleId: 'vaadin-
|
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
28
|
// Find a property definition from the prototype chain of a Polymer element class
|
|
29
|
-
|
|
29
|
+
function getPropertyFromPrototype(clazz, prop) {
|
|
30
30
|
while (clazz) {
|
|
31
31
|
if (clazz.properties && clazz.properties[prop]) {
|
|
32
32
|
return clazz.properties[prop];
|
|
33
33
|
}
|
|
34
|
-
clazz = clazz
|
|
34
|
+
clazz = Object.getPrototypeOf(clazz);
|
|
35
35
|
}
|
|
36
|
-
}
|
|
36
|
+
}
|
|
37
37
|
|
|
38
38
|
const datePickerClass = customElements.get('vaadin-date-time-picker-date-picker');
|
|
39
39
|
const timePickerClass = customElements.get('vaadin-date-time-picker-time-picker');
|
|
@@ -327,7 +327,7 @@ class DateTimePicker extends FieldMixin(SlotMixin(DisabledMixin(ThemableMixin(El
|
|
|
327
327
|
*/
|
|
328
328
|
i18n: {
|
|
329
329
|
type: Object,
|
|
330
|
-
value: () =>
|
|
330
|
+
value: () => ({ ...datePickerI18nDefaults, ...timePickerI18nDefaults })
|
|
331
331
|
},
|
|
332
332
|
|
|
333
333
|
/**
|