@vaadin/date-time-picker 24.0.0-alpha10 → 24.0.0-alpha12

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": "24.0.0-alpha10",
3
+ "version": "24.0.0-alpha12",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,14 +36,14 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "@polymer/polymer": "^3.0.0",
39
- "@vaadin/component-base": "24.0.0-alpha10",
40
- "@vaadin/custom-field": "24.0.0-alpha10",
41
- "@vaadin/date-picker": "24.0.0-alpha10",
42
- "@vaadin/field-base": "24.0.0-alpha10",
43
- "@vaadin/time-picker": "24.0.0-alpha10",
44
- "@vaadin/vaadin-lumo-styles": "24.0.0-alpha10",
45
- "@vaadin/vaadin-material-styles": "24.0.0-alpha10",
46
- "@vaadin/vaadin-themable-mixin": "24.0.0-alpha10"
39
+ "@vaadin/component-base": "24.0.0-alpha12",
40
+ "@vaadin/custom-field": "24.0.0-alpha12",
41
+ "@vaadin/date-picker": "24.0.0-alpha12",
42
+ "@vaadin/field-base": "24.0.0-alpha12",
43
+ "@vaadin/time-picker": "24.0.0-alpha12",
44
+ "@vaadin/vaadin-lumo-styles": "24.0.0-alpha12",
45
+ "@vaadin/vaadin-material-styles": "24.0.0-alpha12",
46
+ "@vaadin/vaadin-themable-mixin": "24.0.0-alpha12"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@esm-bundle/chai": "^4.3.4",
@@ -54,5 +54,5 @@
54
54
  "web-types.json",
55
55
  "web-types.lit.json"
56
56
  ],
57
- "gitHead": "2e04534d8b47bcd216f89b5f849bafef1a73b174"
57
+ "gitHead": "7e29eee4d522fb7b03ac8e7e385e9057d71c79ce"
58
58
  }
@@ -87,14 +87,13 @@ export interface DateTimePickerEventMap extends DateTimePickerCustomEventMap, HT
87
87
  *
88
88
  * ### Internal components
89
89
  *
90
- * In addition to `<vaadin-date-time-picker>` itself, the following internal
91
- * components are themable:
90
+ * The following components are created by `<vaadin-date-time-picker>` and placed in light DOM:
92
91
  *
93
- * - `<vaadin-date-time-picker-date-picker>` - has the same API as [`<vaadin-date-picker>`](#/elements/vaadin-date-picker).
94
- * - `<vaadin-date-time-picker-time-picker>` - has the same API as [`<vaadin-time-picker>`](#/elements/vaadin-time-picker).
92
+ * - [`<vaadin-date-picker>`](#/elements/vaadin-date-picker).
93
+ * - [`<vaadin-time-picker>`](#/elements/vaadin-time-picker).
95
94
  *
96
95
  * Note: the `theme` attribute value set on `<vaadin-date-time-picker>` is
97
- * propagated to the internal components listed above.
96
+ * propagated to these components.
98
97
  *
99
98
  * See [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components) documentation.
100
99
  *
@@ -212,6 +211,17 @@ declare class DateTimePicker extends FieldMixin(DisabledMixin(FocusMixin(Themabl
212
211
  */
213
212
  i18n: DateTimePickerI18n;
214
213
 
214
+ /**
215
+ * A space-delimited list of CSS class names to set on the overlay elements
216
+ * of the internal components controlled by the `<vaadin-date-time-picker>`:
217
+ *
218
+ * - [`<vaadin-date-picker>`](#/elements/vaadin-date-picker#property-overlayClass)
219
+ * - [`<vaadin-time-picker>`](#/elements/vaadin-time-picker#property-overlayClass)
220
+ *
221
+ * @attr {string} overlay-class
222
+ */
223
+ overlayClass: string;
224
+
215
225
  addEventListener<K extends keyof DateTimePickerEventMap>(
216
226
  type: K,
217
227
  listener: (this: DateTimePicker, ev: DateTimePickerEventMap[K]) => void,
@@ -3,17 +3,17 @@
3
3
  * Copyright (c) 2019 - 2023 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-date-time-picker-date-picker.js';
7
- import './vaadin-date-time-picker-time-picker.js';
8
6
  import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
9
7
  import { DisabledMixin } from '@vaadin/component-base/src/disabled-mixin.js';
10
8
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
11
9
  import { FocusMixin } from '@vaadin/component-base/src/focus-mixin.js';
12
10
  import { SlotController } from '@vaadin/component-base/src/slot-controller.js';
13
11
  import { TooltipController } from '@vaadin/component-base/src/tooltip-controller.js';
12
+ import { DatePicker } from '@vaadin/date-picker/src/vaadin-date-picker.js';
14
13
  import { dateEquals, parseDate } from '@vaadin/date-picker/src/vaadin-date-picker-helper.js';
15
14
  import { FieldMixin } from '@vaadin/field-base/src/field-mixin.js';
16
15
  import { inputFieldShared } from '@vaadin/field-base/src/styles/input-field-shared-styles.js';
16
+ import { TimePicker } from '@vaadin/time-picker/src/vaadin-time-picker.js';
17
17
  import { registerStyles, ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
18
18
 
19
19
  registerStyles('vaadin-date-time-picker', inputFieldShared, { moduleId: 'vaadin-date-time-picker' });
@@ -36,10 +36,8 @@ function getPropertyFromPrototype(clazz, prop) {
36
36
  }
37
37
  }
38
38
 
39
- const datePickerClass = customElements.get('vaadin-date-time-picker-date-picker');
40
- const timePickerClass = customElements.get('vaadin-date-time-picker-time-picker');
41
- const datePickerI18nDefaults = getPropertyFromPrototype(datePickerClass, 'i18n').value();
42
- const timePickerI18nDefaults = getPropertyFromPrototype(timePickerClass, 'i18n').value();
39
+ const datePickerI18nDefaults = getPropertyFromPrototype(DatePicker, 'i18n').value();
40
+ const timePickerI18nDefaults = getPropertyFromPrototype(TimePicker, 'i18n').value();
43
41
  const datePickerI18nProps = Object.keys(datePickerI18nDefaults);
44
42
  const timePickerI18nProps = Object.keys(timePickerI18nDefaults);
45
43
 
@@ -50,7 +48,7 @@ const timePickerI18nProps = Object.keys(timePickerI18nDefaults);
50
48
  */
51
49
  class PickerSlotController extends SlotController {
52
50
  constructor(host, type) {
53
- super(host, `${type}-picker`, `vaadin-date-time-picker-${type}-picker`, {
51
+ super(host, `${type}-picker`, `vaadin-${type}-picker`, {
54
52
  initializer: (picker, host) => {
55
53
  const prop = `__${type}Picker`;
56
54
  host[prop] = picker;
@@ -99,14 +97,13 @@ class PickerSlotController extends SlotController {
99
97
  *
100
98
  * ### Internal components
101
99
  *
102
- * In addition to `<vaadin-date-time-picker>` itself, the following internal
103
- * components are themable:
100
+ * The following components are created by `<vaadin-date-time-picker>` and placed in light DOM:
104
101
  *
105
- * - `<vaadin-date-time-picker-date-picker>` - has the same API as [`<vaadin-date-picker>`](#/elements/vaadin-date-picker).
106
- * - `<vaadin-date-time-picker-time-picker>` - has the same API as [`<vaadin-time-picker>`](#/elements/vaadin-time-picker).
102
+ * - [`<vaadin-date-picker>`](#/elements/vaadin-date-picker).
103
+ * - [`<vaadin-time-picker>`](#/elements/vaadin-time-picker).
107
104
  *
108
105
  * Note: the `theme` attribute value set on `<vaadin-date-time-picker>` is
109
- * propagated to the internal components listed above.
106
+ * propagated to these components.
110
107
  *
111
108
  * See [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components) documentation.
112
109
  *
@@ -348,6 +345,19 @@ class DateTimePicker extends FieldMixin(DisabledMixin(FocusMixin(ThemableMixin(E
348
345
  value: () => ({ ...datePickerI18nDefaults, ...timePickerI18nDefaults }),
349
346
  },
350
347
 
348
+ /**
349
+ * A space-delimited list of CSS class names to set on the overlay elements
350
+ * of the internal components controlled by the `<vaadin-date-time-picker>`:
351
+ *
352
+ * - [`<vaadin-date-picker>`](#/elements/vaadin-date-picker#property-overlayClass)
353
+ * - [`<vaadin-time-picker>`](#/elements/vaadin-time-picker#property-overlayClass)
354
+ *
355
+ * @attr {string} overlay-class
356
+ */
357
+ overlayClass: {
358
+ type: String,
359
+ },
360
+
351
361
  /**
352
362
  * The current slotted date picker.
353
363
  * @private
@@ -383,6 +393,7 @@ class DateTimePicker extends FieldMixin(DisabledMixin(FocusMixin(ThemableMixin(E
383
393
  '__i18nChanged(i18n, __datePicker, __timePicker)',
384
394
  '__autoOpenDisabledChanged(autoOpenDisabled, __datePicker, __timePicker)',
385
395
  '__themeChanged(_theme, __datePicker, __timePicker)',
396
+ '__overlayClassChanged(overlayClass, __datePicker, __timePicker)',
386
397
  '__pickersChanged(__datePicker, __timePicker)',
387
398
  ];
388
399
  }
@@ -726,7 +737,7 @@ class DateTimePicker extends FieldMixin(DisabledMixin(FocusMixin(ThemableMixin(E
726
737
  if (!date) {
727
738
  return defaultValue;
728
739
  }
729
- return datePickerClass.prototype._formatISO(date);
740
+ return DatePicker.prototype._formatISO(date);
730
741
  }
731
742
 
732
743
  /**
@@ -1017,6 +1028,17 @@ class DateTimePicker extends FieldMixin(DisabledMixin(FocusMixin(ThemableMixin(E
1017
1028
  });
1018
1029
  }
1019
1030
 
1031
+ /** @private */
1032
+ __overlayClassChanged(overlayClass, datePicker, timePicker) {
1033
+ if (!datePicker || !timePicker) {
1034
+ // Both pickers are not ready yet
1035
+ return;
1036
+ }
1037
+
1038
+ datePicker.overlayClass = overlayClass;
1039
+ timePicker.overlayClass = overlayClass;
1040
+ }
1041
+
1020
1042
  /** @private */
1021
1043
  __pickersChanged(datePicker, timePicker) {
1022
1044
  if (!datePicker || !timePicker) {
@@ -5,52 +5,19 @@ import { helper } from '@vaadin/vaadin-lumo-styles/mixins/helper.js';
5
5
  import { requiredField } from '@vaadin/vaadin-lumo-styles/mixins/required-field.js';
6
6
  import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
7
7
 
8
- registerStyles('vaadin-date-time-picker', [requiredField, helper, customField], {
9
- moduleId: 'lumo-date-time-picker',
10
- });
11
-
12
- registerStyles(
13
- 'vaadin-date-time-picker-date-picker',
14
- css`
15
- :host {
16
- margin-right: 2px;
17
- }
18
-
19
- /* RTL specific styles */
20
- :host([dir='rtl']) {
21
- margin-right: auto;
22
- margin-left: 2px;
23
- }
8
+ const dateTimePicker = css`
9
+ ::slotted([slot='date-picker']) {
10
+ margin-inline-end: 2px;
11
+ --vaadin-input-container-top-end-radius: 0;
12
+ --vaadin-input-container-bottom-end-radius: 0;
13
+ }
24
14
 
25
- [part~='input-field'] {
26
- border-top-right-radius: 0;
27
- border-bottom-right-radius: 0;
28
- }
15
+ ::slotted([slot='time-picker']) {
16
+ --vaadin-input-container-top-start-radius: 0;
17
+ --vaadin-input-container-bottom-start-radius: 0;
18
+ }
19
+ `;
29
20
 
30
- /* RTL specific styles */
31
- :host([dir='rtl']) [part~='input-field'] {
32
- border-radius: var(--lumo-border-radius-m);
33
- border-top-left-radius: 0;
34
- border-bottom-left-radius: 0;
35
- }
36
- `,
37
- { moduleId: 'lumo-date-time-picker-date-picker' },
38
- );
39
-
40
- registerStyles(
41
- 'vaadin-date-time-picker-time-picker',
42
- css`
43
- [part~='input-field'] {
44
- border-top-left-radius: 0;
45
- border-bottom-left-radius: 0;
46
- }
47
-
48
- /* RTL specific styles */
49
- :host([dir='rtl']) [part~='input-field'] {
50
- border-radius: var(--lumo-border-radius-m);
51
- border-top-right-radius: 0;
52
- border-bottom-right-radius: 0;
53
- }
54
- `,
55
- { moduleId: 'lumo-date-time-picker-time-picker' },
56
- );
21
+ registerStyles('vaadin-date-time-picker', [dateTimePicker, requiredField, helper, customField], {
22
+ moduleId: 'lumo-date-time-picker',
23
+ });
package/web-types.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/date-time-picker",
4
- "version": "24.0.0-alpha10",
4
+ "version": "24.0.0-alpha12",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "elements": [
9
9
  {
10
10
  "name": "vaadin-date-time-picker",
11
- "description": "`<vaadin-date-time-picker>` is a Web Component providing a date time selection field.\n\n```html\n<vaadin-date-time-picker value=\"2019-09-16T15:00\"></vaadin-date-time-picker>\n```\n```js\ndateTimePicker.value = '2019-09-16T15:00';\n```\n\nWhen the selected `value` is changed, a `value-changed` event is triggered.\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------------|----------------\n`label` | The slotted label element wrapper\n`helper-text` | The slotted helper text element wrapper\n`error-message` | The slotted error message element wrapper\n`required-indicator` | The `required` state indicator element\n\nThe following state attributes are available for styling:\n\nAttribute | Description | Part name\n--------------------|-------------------------------------------|------------\n`disabled` | Set when the element is disabled | :host\n`focused` | Set when the element is focused | :host\n`focus-ring` | Set when the element is keyboard focused | :host\n`readonly` | Set when the element is readonly | :host\n`invalid` | Set when the element is invalid | :host\n`has-label` | Set when the element has a label | :host\n`has-value` | Set when the element has a value | :host\n`has-helper` | Set when the element has helper text | :host\n`has-error-message` | Set when the element has an error message | :host\n\n### Internal components\n\nIn addition to `<vaadin-date-time-picker>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-date-time-picker-date-picker>` - has the same API as [`<vaadin-date-picker>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha10/#/elements/vaadin-date-picker).\n- `<vaadin-date-time-picker-time-picker>` - has the same API as [`<vaadin-time-picker>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha10/#/elements/vaadin-time-picker).\n\nNote: the `theme` attribute value set on `<vaadin-date-time-picker>` is\npropagated to the internal components listed above.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components) documentation.",
11
+ "description": "`<vaadin-date-time-picker>` is a Web Component providing a date time selection field.\n\n```html\n<vaadin-date-time-picker value=\"2019-09-16T15:00\"></vaadin-date-time-picker>\n```\n```js\ndateTimePicker.value = '2019-09-16T15:00';\n```\n\nWhen the selected `value` is changed, a `value-changed` event is triggered.\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------------|----------------\n`label` | The slotted label element wrapper\n`helper-text` | The slotted helper text element wrapper\n`error-message` | The slotted error message element wrapper\n`required-indicator` | The `required` state indicator element\n\nThe following state attributes are available for styling:\n\nAttribute | Description | Part name\n--------------------|-------------------------------------------|------------\n`disabled` | Set when the element is disabled | :host\n`focused` | Set when the element is focused | :host\n`focus-ring` | Set when the element is keyboard focused | :host\n`readonly` | Set when the element is readonly | :host\n`invalid` | Set when the element is invalid | :host\n`has-label` | Set when the element has a label | :host\n`has-value` | Set when the element has a value | :host\n`has-helper` | Set when the element has helper text | :host\n`has-error-message` | Set when the element has an error message | :host\n\n### Internal components\n\nThe following components are created by `<vaadin-date-time-picker>` and placed in light DOM:\n\n- [`<vaadin-date-picker>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha12/#/elements/vaadin-date-picker).\n- [`<vaadin-time-picker>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha12/#/elements/vaadin-time-picker).\n\nNote: the `theme` attribute value set on `<vaadin-date-time-picker>` is\npropagated to these components.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components) documentation.",
12
12
  "attributes": [
13
13
  {
14
14
  "name": "disabled",
@@ -200,6 +200,17 @@
200
200
  ]
201
201
  }
202
202
  },
203
+ {
204
+ "name": "overlay-class",
205
+ "description": "A space-delimited list of CSS class names to set on the overlay elements\nof the internal components controlled by the `<vaadin-date-time-picker>`:\n\n- [`<vaadin-date-picker>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha12/#/elements/vaadin-date-picker#property-overlayClass)\n- [`<vaadin-time-picker>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha12/#/elements/vaadin-time-picker#property-overlayClass)",
206
+ "value": {
207
+ "type": [
208
+ "string",
209
+ "null",
210
+ "undefined"
211
+ ]
212
+ }
213
+ },
203
214
  {
204
215
  "name": "theme",
205
216
  "description": "The theme variants to apply to the component.",
@@ -406,12 +417,23 @@
406
417
  },
407
418
  {
408
419
  "name": "i18n",
409
- "description": "The object used to localize this component.\nTo change the default localization, replace the entire\n`i18n` object or just the properties you want to modify.\n\nThe object is a combination of the i18n properties supported by\n[`<vaadin-date-picker>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha10/#/elements/vaadin-date-picker) and\n[`<vaadin-time-picker>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha10/#/elements/vaadin-time-picker).",
420
+ "description": "The object used to localize this component.\nTo change the default localization, replace the entire\n`i18n` object or just the properties you want to modify.\n\nThe object is a combination of the i18n properties supported by\n[`<vaadin-date-picker>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha12/#/elements/vaadin-date-picker) and\n[`<vaadin-time-picker>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha12/#/elements/vaadin-time-picker).",
410
421
  "value": {
411
422
  "type": [
412
423
  "DateTimePickerI18n"
413
424
  ]
414
425
  }
426
+ },
427
+ {
428
+ "name": "overlayClass",
429
+ "description": "A space-delimited list of CSS class names to set on the overlay elements\nof the internal components controlled by the `<vaadin-date-time-picker>`:\n\n- [`<vaadin-date-picker>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha12/#/elements/vaadin-date-picker#property-overlayClass)\n- [`<vaadin-time-picker>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha12/#/elements/vaadin-time-picker#property-overlayClass)",
430
+ "value": {
431
+ "type": [
432
+ "string",
433
+ "null",
434
+ "undefined"
435
+ ]
436
+ }
415
437
  }
416
438
  ],
417
439
  "events": [
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/date-time-picker",
4
- "version": "24.0.0-alpha10",
4
+ "version": "24.0.0-alpha12",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -16,7 +16,7 @@
16
16
  "elements": [
17
17
  {
18
18
  "name": "vaadin-date-time-picker",
19
- "description": "`<vaadin-date-time-picker>` is a Web Component providing a date time selection field.\n\n```html\n<vaadin-date-time-picker value=\"2019-09-16T15:00\"></vaadin-date-time-picker>\n```\n```js\ndateTimePicker.value = '2019-09-16T15:00';\n```\n\nWhen the selected `value` is changed, a `value-changed` event is triggered.\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------------|----------------\n`label` | The slotted label element wrapper\n`helper-text` | The slotted helper text element wrapper\n`error-message` | The slotted error message element wrapper\n`required-indicator` | The `required` state indicator element\n\nThe following state attributes are available for styling:\n\nAttribute | Description | Part name\n--------------------|-------------------------------------------|------------\n`disabled` | Set when the element is disabled | :host\n`focused` | Set when the element is focused | :host\n`focus-ring` | Set when the element is keyboard focused | :host\n`readonly` | Set when the element is readonly | :host\n`invalid` | Set when the element is invalid | :host\n`has-label` | Set when the element has a label | :host\n`has-value` | Set when the element has a value | :host\n`has-helper` | Set when the element has helper text | :host\n`has-error-message` | Set when the element has an error message | :host\n\n### Internal components\n\nIn addition to `<vaadin-date-time-picker>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-date-time-picker-date-picker>` - has the same API as [`<vaadin-date-picker>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha10/#/elements/vaadin-date-picker).\n- `<vaadin-date-time-picker-time-picker>` - has the same API as [`<vaadin-time-picker>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha10/#/elements/vaadin-time-picker).\n\nNote: the `theme` attribute value set on `<vaadin-date-time-picker>` is\npropagated to the internal components listed above.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components) documentation.",
19
+ "description": "`<vaadin-date-time-picker>` is a Web Component providing a date time selection field.\n\n```html\n<vaadin-date-time-picker value=\"2019-09-16T15:00\"></vaadin-date-time-picker>\n```\n```js\ndateTimePicker.value = '2019-09-16T15:00';\n```\n\nWhen the selected `value` is changed, a `value-changed` event is triggered.\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------------|----------------\n`label` | The slotted label element wrapper\n`helper-text` | The slotted helper text element wrapper\n`error-message` | The slotted error message element wrapper\n`required-indicator` | The `required` state indicator element\n\nThe following state attributes are available for styling:\n\nAttribute | Description | Part name\n--------------------|-------------------------------------------|------------\n`disabled` | Set when the element is disabled | :host\n`focused` | Set when the element is focused | :host\n`focus-ring` | Set when the element is keyboard focused | :host\n`readonly` | Set when the element is readonly | :host\n`invalid` | Set when the element is invalid | :host\n`has-label` | Set when the element has a label | :host\n`has-value` | Set when the element has a value | :host\n`has-helper` | Set when the element has helper text | :host\n`has-error-message` | Set when the element has an error message | :host\n\n### Internal components\n\nThe following components are created by `<vaadin-date-time-picker>` and placed in light DOM:\n\n- [`<vaadin-date-picker>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha12/#/elements/vaadin-date-picker).\n- [`<vaadin-time-picker>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha12/#/elements/vaadin-time-picker).\n\nNote: the `theme` attribute value set on `<vaadin-date-time-picker>` is\npropagated to these components.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components) documentation.",
20
20
  "extension": true,
21
21
  "attributes": [
22
22
  {
@@ -147,7 +147,14 @@
147
147
  },
148
148
  {
149
149
  "name": ".i18n",
150
- "description": "The object used to localize this component.\nTo change the default localization, replace the entire\n`i18n` object or just the properties you want to modify.\n\nThe object is a combination of the i18n properties supported by\n[`<vaadin-date-picker>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha10/#/elements/vaadin-date-picker) and\n[`<vaadin-time-picker>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha10/#/elements/vaadin-time-picker).",
150
+ "description": "The object used to localize this component.\nTo change the default localization, replace the entire\n`i18n` object or just the properties you want to modify.\n\nThe object is a combination of the i18n properties supported by\n[`<vaadin-date-picker>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha12/#/elements/vaadin-date-picker) and\n[`<vaadin-time-picker>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha12/#/elements/vaadin-time-picker).",
151
+ "value": {
152
+ "kind": "expression"
153
+ }
154
+ },
155
+ {
156
+ "name": ".overlayClass",
157
+ "description": "A space-delimited list of CSS class names to set on the overlay elements\nof the internal components controlled by the `<vaadin-date-time-picker>`:\n\n- [`<vaadin-date-picker>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha12/#/elements/vaadin-date-picker#property-overlayClass)\n- [`<vaadin-time-picker>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha12/#/elements/vaadin-time-picker#property-overlayClass)",
151
158
  "value": {
152
159
  "kind": "expression"
153
160
  }
@@ -1,20 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2019 - 2023 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
- */
6
- import { DatePicker } from '@vaadin/date-picker/src/vaadin-date-picker.js';
7
-
8
- /**
9
- * An element used internally by `<vaadin-date-time-picker>`. Not intended to be used separately.
10
- *
11
- * @extends DatePicker
12
- * @private
13
- */
14
- class DateTimePickerDatePicker extends DatePicker {
15
- static get is() {
16
- return 'vaadin-date-time-picker-date-picker';
17
- }
18
- }
19
-
20
- customElements.define(DateTimePickerDatePicker.is, DateTimePickerDatePicker);
@@ -1,20 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2019 - 2023 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
- */
6
- import { TimePicker } from '@vaadin/time-picker/src/vaadin-time-picker.js';
7
-
8
- /**
9
- * An element used internally by `<vaadin-date-time-picker>`. Not intended to be used separately.
10
- *
11
- * @extends TimePicker
12
- * @private
13
- */
14
- class DateTimePickerTimePicker extends TimePicker {
15
- static get is() {
16
- return 'vaadin-date-time-picker-time-picker';
17
- }
18
- }
19
-
20
- customElements.define(DateTimePickerTimePicker.is, DateTimePickerTimePicker);