@vaadin/time-picker 24.0.0-alpha1 → 24.0.0-alpha10
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 +9 -9
- package/src/vaadin-time-picker-combo-box.js +1 -1
- package/src/vaadin-time-picker-item.js +1 -1
- package/src/vaadin-time-picker-overlay.js +1 -1
- package/src/vaadin-time-picker-scroller.js +1 -1
- package/src/vaadin-time-picker.d.ts +8 -1
- package/src/vaadin-time-picker.js +20 -9
- package/theme/lumo/vaadin-time-picker-styles.js +1 -1
- package/theme/lumo/vaadin-time-picker.js +1 -1
- package/theme/material/vaadin-time-picker-styles.js +1 -1
- package/theme/material/vaadin-time-picker.js +1 -1
- package/web-types.json +24 -24
- package/web-types.lit.json +9 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/time-picker",
|
|
3
|
-
"version": "24.0.0-
|
|
3
|
+
"version": "24.0.0-alpha10",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@polymer/polymer": "^3.0.0",
|
|
39
|
-
"@vaadin/combo-box": "24.0.0-
|
|
40
|
-
"@vaadin/component-base": "24.0.0-
|
|
41
|
-
"@vaadin/field-base": "24.0.0-
|
|
42
|
-
"@vaadin/input-container": "24.0.0-
|
|
43
|
-
"@vaadin/vaadin-lumo-styles": "24.0.0-
|
|
44
|
-
"@vaadin/vaadin-material-styles": "24.0.0-
|
|
45
|
-
"@vaadin/vaadin-themable-mixin": "24.0.0-
|
|
39
|
+
"@vaadin/combo-box": "24.0.0-alpha10",
|
|
40
|
+
"@vaadin/component-base": "24.0.0-alpha10",
|
|
41
|
+
"@vaadin/field-base": "24.0.0-alpha10",
|
|
42
|
+
"@vaadin/input-container": "24.0.0-alpha10",
|
|
43
|
+
"@vaadin/vaadin-lumo-styles": "24.0.0-alpha10",
|
|
44
|
+
"@vaadin/vaadin-material-styles": "24.0.0-alpha10",
|
|
45
|
+
"@vaadin/vaadin-themable-mixin": "24.0.0-alpha10"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@esm-bundle/chai": "^4.3.4",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"web-types.json",
|
|
54
54
|
"web-types.lit.json"
|
|
55
55
|
],
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "2e04534d8b47bcd216f89b5f849bafef1a73b174"
|
|
57
57
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2018 -
|
|
3
|
+
* Copyright (c) 2018 - 2023 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 { ComboBoxItem } from '@vaadin/combo-box/src/vaadin-combo-box-item.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2018 -
|
|
3
|
+
* Copyright (c) 2018 - 2023 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 { ComboBoxOverlay } from '@vaadin/combo-box/src/vaadin-combo-box-overlay.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2018 -
|
|
3
|
+
* Copyright (c) 2018 - 2023 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 { ComboBoxScroller } from '@vaadin/combo-box/src/vaadin-combo-box-scroller.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2018 -
|
|
3
|
+
* Copyright (c) 2018 - 2023 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 { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
@@ -178,6 +178,13 @@ declare class TimePicker extends PatternMixin(InputControlMixin(ThemableMixin(El
|
|
|
178
178
|
*/
|
|
179
179
|
autoOpenDisabled: boolean | null | undefined;
|
|
180
180
|
|
|
181
|
+
/**
|
|
182
|
+
* A space-delimited list of CSS class names to set on the overlay element.
|
|
183
|
+
*
|
|
184
|
+
* @attr {string} overlay-class
|
|
185
|
+
*/
|
|
186
|
+
overlayClass: string;
|
|
187
|
+
|
|
181
188
|
/**
|
|
182
189
|
* The object used to localize this component.
|
|
183
190
|
* To change the default localization, replace the entire
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2018 -
|
|
3
|
+
* Copyright (c) 2018 - 2023 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/input-container/src/vaadin-input-container.js';
|
|
@@ -121,6 +121,7 @@ class TimePicker extends PatternMixin(InputControlMixin(ThemableMixin(ElementMix
|
|
|
121
121
|
readonly="[[readonly]]"
|
|
122
122
|
clear-button-visible="[[clearButtonVisible]]"
|
|
123
123
|
auto-open-disabled="[[autoOpenDisabled]]"
|
|
124
|
+
overlay-class="[[overlayClass]]"
|
|
124
125
|
position-target="[[_inputContainer]]"
|
|
125
126
|
theme$="[[_theme]]"
|
|
126
127
|
on-change="__onComboBoxChange"
|
|
@@ -232,6 +233,15 @@ class TimePicker extends PatternMixin(InputControlMixin(ThemableMixin(ElementMix
|
|
|
232
233
|
*/
|
|
233
234
|
autoOpenDisabled: Boolean,
|
|
234
235
|
|
|
236
|
+
/**
|
|
237
|
+
* A space-delimited list of CSS class names to set on the overlay element.
|
|
238
|
+
*
|
|
239
|
+
* @attr {string} overlay-class
|
|
240
|
+
*/
|
|
241
|
+
overlayClass: {
|
|
242
|
+
type: String,
|
|
243
|
+
},
|
|
244
|
+
|
|
235
245
|
/** @private */
|
|
236
246
|
__dropdownItems: {
|
|
237
247
|
type: Array,
|
|
@@ -297,6 +307,7 @@ class TimePicker extends PatternMixin(InputControlMixin(ThemableMixin(ElementMix
|
|
|
297
307
|
const MATCH_MILLISECONDS = '(\\d{1,3})';
|
|
298
308
|
const re = new RegExp(
|
|
299
309
|
`^${MATCH_HOURS}(?::${MATCH_MINUTES}(?::${MATCH_SECONDS}(?:\\.${MATCH_MILLISECONDS})?)?)?$`,
|
|
310
|
+
'u',
|
|
300
311
|
);
|
|
301
312
|
const parts = re.exec(text);
|
|
302
313
|
if (parts) {
|
|
@@ -559,7 +570,9 @@ class TimePicker extends PatternMixin(InputControlMixin(ThemableMixin(ElementMix
|
|
|
559
570
|
const generatedList = [];
|
|
560
571
|
|
|
561
572
|
// Default step in overlay items is 1 hour
|
|
562
|
-
|
|
573
|
+
if (!step) {
|
|
574
|
+
step = 3600;
|
|
575
|
+
}
|
|
563
576
|
|
|
564
577
|
let time = -step + minSec;
|
|
565
578
|
while (time + step >= minSec && time + step <= maxSec) {
|
|
@@ -663,16 +676,17 @@ class TimePicker extends PatternMixin(InputControlMixin(ThemableMixin(ElementMix
|
|
|
663
676
|
/** @private */
|
|
664
677
|
__validateTime(timeObject) {
|
|
665
678
|
if (timeObject) {
|
|
679
|
+
const stepSegment = this.__getStepSegment();
|
|
666
680
|
timeObject.hours = parseInt(timeObject.hours);
|
|
667
681
|
timeObject.minutes = parseInt(timeObject.minutes || 0);
|
|
668
|
-
timeObject.seconds =
|
|
669
|
-
timeObject.milliseconds =
|
|
682
|
+
timeObject.seconds = stepSegment < 3 ? undefined : parseInt(timeObject.seconds || 0);
|
|
683
|
+
timeObject.milliseconds = stepSegment < 4 ? undefined : parseInt(timeObject.milliseconds || 0);
|
|
670
684
|
}
|
|
671
685
|
return timeObject;
|
|
672
686
|
}
|
|
673
687
|
|
|
674
688
|
/** @private */
|
|
675
|
-
|
|
689
|
+
__getStepSegment() {
|
|
676
690
|
if (this.step % 3600 === 0) {
|
|
677
691
|
// Accept hours
|
|
678
692
|
return 1;
|
|
@@ -734,10 +748,7 @@ class TimePicker extends PatternMixin(InputControlMixin(ThemableMixin(ElementMix
|
|
|
734
748
|
* Override method inherited from `InputMixin`.
|
|
735
749
|
* @protected
|
|
736
750
|
*/
|
|
737
|
-
_onInput() {
|
|
738
|
-
// Need to invoke _checkInputValue from PatternMixin to prevent invalid input
|
|
739
|
-
this._checkInputValue();
|
|
740
|
-
}
|
|
751
|
+
_onInput() {}
|
|
741
752
|
|
|
742
753
|
/**
|
|
743
754
|
* Fired when the user commits a value change.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2018 -
|
|
3
|
+
* Copyright (c) 2018 - 2023 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/combo-box/theme/lumo/vaadin-combo-box-dropdown-styles.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2018 -
|
|
3
|
+
* Copyright (c) 2018 - 2023 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/combo-box/theme/material/vaadin-combo-box-dropdown-styles.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": "24.0.0-
|
|
4
|
+
"version": "24.0.0-alpha10",
|
|
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-combo-box-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/24.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-combo-box-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/24.0.0-alpha10/#/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\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-combo-box>` - has the same API as [`<vaadin-combo-box-light>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha10/#/elements/vaadin-combo-box-light).\n- `<vaadin-time-picker-overlay>` - has the same API as [`<vaadin-overlay>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha10/#/elements/vaadin-overlay).\n- `<vaadin-time-picker-item>` - has the same API as [`<vaadin-item>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha10/#/elements/vaadin-item).\n- [`<vaadin-input-container>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha10/#/elements/vaadin-input-container) - an internal element wrapping the input.\n\nNote: the `theme` attribute value set on `<vaadin-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.",
|
|
12
12
|
"attributes": [
|
|
13
13
|
{
|
|
14
14
|
"name": "disabled",
|
|
@@ -184,17 +184,6 @@
|
|
|
184
184
|
]
|
|
185
185
|
}
|
|
186
186
|
},
|
|
187
|
-
{
|
|
188
|
-
"name": "prevent-invalid-input",
|
|
189
|
-
"description": "When set to true, user is prevented from typing a value that\nconflicts with the given `pattern`.",
|
|
190
|
-
"value": {
|
|
191
|
-
"type": [
|
|
192
|
-
"boolean",
|
|
193
|
-
"null",
|
|
194
|
-
"undefined"
|
|
195
|
-
]
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
187
|
{
|
|
199
188
|
"name": "opened",
|
|
200
189
|
"description": "True if the dropdown is open, false otherwise.",
|
|
@@ -246,6 +235,17 @@
|
|
|
246
235
|
]
|
|
247
236
|
}
|
|
248
237
|
},
|
|
238
|
+
{
|
|
239
|
+
"name": "overlay-class",
|
|
240
|
+
"description": "A space-delimited list of CSS class names to set on the overlay element.",
|
|
241
|
+
"value": {
|
|
242
|
+
"type": [
|
|
243
|
+
"string",
|
|
244
|
+
"null",
|
|
245
|
+
"undefined"
|
|
246
|
+
]
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
249
|
{
|
|
250
250
|
"name": "theme",
|
|
251
251
|
"description": "The theme variants to apply to the component.",
|
|
@@ -434,17 +434,6 @@
|
|
|
434
434
|
]
|
|
435
435
|
}
|
|
436
436
|
},
|
|
437
|
-
{
|
|
438
|
-
"name": "preventInvalidInput",
|
|
439
|
-
"description": "When set to true, user is prevented from typing a value that\nconflicts with the given `pattern`.",
|
|
440
|
-
"value": {
|
|
441
|
-
"type": [
|
|
442
|
-
"boolean",
|
|
443
|
-
"null",
|
|
444
|
-
"undefined"
|
|
445
|
-
]
|
|
446
|
-
}
|
|
447
|
-
},
|
|
448
437
|
{
|
|
449
438
|
"name": "opened",
|
|
450
439
|
"description": "True if the dropdown is open, false otherwise.",
|
|
@@ -496,6 +485,17 @@
|
|
|
496
485
|
]
|
|
497
486
|
}
|
|
498
487
|
},
|
|
488
|
+
{
|
|
489
|
+
"name": "overlayClass",
|
|
490
|
+
"description": "A space-delimited list of CSS class names to set on the overlay element.",
|
|
491
|
+
"value": {
|
|
492
|
+
"type": [
|
|
493
|
+
"string",
|
|
494
|
+
"null",
|
|
495
|
+
"undefined"
|
|
496
|
+
]
|
|
497
|
+
}
|
|
498
|
+
},
|
|
499
499
|
{
|
|
500
500
|
"name": "i18n",
|
|
501
501
|
"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.",
|
package/web-types.lit.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/time-picker",
|
|
4
|
-
"version": "24.0.0-
|
|
4
|
+
"version": "24.0.0-alpha10",
|
|
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-time-picker",
|
|
19
|
-
"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-combo-box-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/24.0.0-
|
|
19
|
+
"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-combo-box-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/24.0.0-alpha10/#/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\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-combo-box>` - has the same API as [`<vaadin-combo-box-light>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha10/#/elements/vaadin-combo-box-light).\n- `<vaadin-time-picker-overlay>` - has the same API as [`<vaadin-overlay>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha10/#/elements/vaadin-overlay).\n- `<vaadin-time-picker-item>` - has the same API as [`<vaadin-item>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha10/#/elements/vaadin-item).\n- [`<vaadin-input-container>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha10/#/elements/vaadin-input-container) - an internal element wrapping the input.\n\nNote: the `theme` attribute value set on `<vaadin-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.",
|
|
20
20
|
"extension": true,
|
|
21
21
|
"attributes": [
|
|
22
22
|
{
|
|
@@ -68,13 +68,6 @@
|
|
|
68
68
|
"kind": "expression"
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
|
-
{
|
|
72
|
-
"name": "?preventInvalidInput",
|
|
73
|
-
"description": "When set to true, user is prevented from typing a value that\nconflicts with the given `pattern`.",
|
|
74
|
-
"value": {
|
|
75
|
-
"kind": "expression"
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
71
|
{
|
|
79
72
|
"name": "?opened",
|
|
80
73
|
"description": "True if the dropdown is open, false otherwise.",
|
|
@@ -173,6 +166,13 @@
|
|
|
173
166
|
"kind": "expression"
|
|
174
167
|
}
|
|
175
168
|
},
|
|
169
|
+
{
|
|
170
|
+
"name": ".overlayClass",
|
|
171
|
+
"description": "A space-delimited list of CSS class names to set on the overlay element.",
|
|
172
|
+
"value": {
|
|
173
|
+
"kind": "expression"
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
176
|
{
|
|
177
177
|
"name": ".i18n",
|
|
178
178
|
"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.",
|