@refinitiv-ui/elements 7.0.0 → 7.0.1
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/CHANGELOG.md +191 -456
- package/LICENSE +2 -2
- package/README.md +13 -11
- package/cli.mjs +5 -3
- package/lib/accordion/index.d.ts +1 -1
- package/lib/accordion/index.js +4 -7
- package/lib/appstate-bar/index.d.ts +2 -2
- package/lib/appstate-bar/index.js +10 -4
- package/lib/autosuggest/index.d.ts +7 -7
- package/lib/autosuggest/index.js +80 -80
- package/lib/autosuggest/themes/solar/charcoal/index.js +1 -1
- package/lib/autosuggest/themes/solar/pearl/index.js +1 -1
- package/lib/button/index.js +7 -10
- package/lib/button-bar/index.d.ts +1 -1
- package/lib/button-bar/index.js +12 -12
- package/lib/calendar/index.d.ts +39 -39
- package/lib/calendar/index.js +156 -123
- package/lib/calendar/utils.js +1 -1
- package/lib/canvas/index.d.ts +1 -1
- package/lib/canvas/index.js +2 -4
- package/lib/card/helpers/types.d.ts +2 -2
- package/lib/card/index.d.ts +5 -5
- package/lib/card/index.js +34 -28
- package/lib/chart/elements/chart.d.ts +4 -4
- package/lib/chart/elements/chart.js +39 -33
- package/lib/chart/plugins/doughnut-center-label.d.ts +3 -3
- package/lib/chart/plugins/doughnut-center-label.js +13 -9
- package/lib/checkbox/index.d.ts +1 -1
- package/lib/checkbox/index.js +12 -13
- package/lib/clock/index.d.ts +55 -55
- package/lib/clock/index.js +84 -95
- package/lib/clock/themes/halo/dark/index.js +1 -1
- package/lib/clock/themes/halo/light/index.js +1 -1
- package/lib/clock/themes/solar/charcoal/index.js +1 -1
- package/lib/clock/themes/solar/pearl/index.js +1 -1
- package/lib/collapse/index.d.ts +1 -1
- package/lib/collapse/index.js +27 -18
- package/lib/collapse/themes/halo/dark/index.js +1 -1
- package/lib/collapse/themes/halo/light/index.js +1 -1
- package/lib/color-dialog/elements/color-palettes.d.ts +1 -1
- package/lib/color-dialog/elements/color-palettes.js +5 -6
- package/lib/color-dialog/elements/grayscale-palettes.d.ts +1 -1
- package/lib/color-dialog/elements/grayscale-palettes.js +9 -9
- package/lib/color-dialog/elements/palettes.js +5 -4
- package/lib/color-dialog/helpers/value-model.js +7 -9
- package/lib/color-dialog/index.d.ts +6 -6
- package/lib/color-dialog/index.js +53 -37
- package/lib/color-picker/index.d.ts +2 -2
- package/lib/color-picker/index.js +40 -34
- package/lib/combo-box/helpers/filter.d.ts +2 -2
- package/lib/combo-box/helpers/types.d.ts +1 -1
- package/lib/combo-box/index.d.ts +9 -9
- package/lib/combo-box/index.js +61 -55
- package/lib/configuration/elements/configuration.js +2 -2
- package/lib/counter/index.d.ts +4 -4
- package/lib/counter/index.js +9 -7
- package/lib/datetime-field/index.d.ts +4 -5
- package/lib/datetime-field/index.js +32 -23
- package/lib/datetime-field/utils.js +11 -1
- package/lib/datetime-picker/index.d.ts +75 -75
- package/lib/datetime-picker/index.js +150 -131
- package/lib/datetime-picker/locales.js +5 -5
- package/lib/datetime-picker/utils.js +9 -9
- package/lib/dialog/draggable-element.js +1 -2
- package/lib/dialog/index.d.ts +5 -5
- package/lib/dialog/index.js +51 -47
- package/lib/email-field/index.d.ts +1 -1
- package/lib/email-field/index.js +6 -6
- package/lib/events.d.ts +1 -1
- package/lib/flag/index.d.ts +1 -1
- package/lib/flag/index.js +6 -5
- package/lib/flag/utils/FlagLoader.js +1 -1
- package/lib/header/index.d.ts +1 -1
- package/lib/header/index.js +2 -2
- package/lib/header/themes/halo/dark/index.js +1 -1
- package/lib/header/themes/halo/light/index.js +1 -1
- package/lib/header/themes/solar/charcoal/index.js +1 -1
- package/lib/header/themes/solar/pearl/index.js +1 -1
- package/lib/heatmap/helpers/color.d.ts +1 -1
- package/lib/heatmap/helpers/color.js +11 -5
- package/lib/heatmap/helpers/track.js +3 -3
- package/lib/heatmap/index.d.ts +9 -9
- package/lib/heatmap/index.js +51 -42
- package/lib/icon/index.d.ts +2 -2
- package/lib/icon/index.js +8 -10
- package/lib/interactive-chart/helpers/types.d.ts +3 -3
- package/lib/interactive-chart/index.d.ts +29 -29
- package/lib/interactive-chart/index.js +69 -55
- package/lib/item/helpers/types.d.ts +1 -1
- package/lib/item/index.d.ts +3 -3
- package/lib/item/index.js +24 -20
- package/lib/jsx.d.ts +6 -4
- package/lib/label/index.d.ts +1 -1
- package/lib/label/index.js +10 -7
- package/lib/layout/index.d.ts +7 -7
- package/lib/layout/index.js +7 -7
- package/lib/led-gauge/index.d.ts +1 -1
- package/lib/led-gauge/index.js +10 -10
- package/lib/list/elements/list.d.ts +3 -3
- package/lib/list/elements/list.js +10 -12
- package/lib/list/helpers/renderer.js +2 -2
- package/lib/list/helpers/types.d.ts +1 -1
- package/lib/list/index.d.ts +1 -1
- package/lib/list/renderer.d.ts +7 -7
- package/lib/loader/index.js +7 -8
- package/lib/multi-input/index.d.ts +6 -6
- package/lib/multi-input/index.js +39 -45
- package/lib/notification/elements/notification-tray.d.ts +2 -2
- package/lib/notification/elements/notification-tray.js +3 -3
- package/lib/notification/elements/notification.d.ts +2 -2
- package/lib/notification/elements/notification.js +19 -13
- package/lib/notification/helpers/status.js +1 -1
- package/lib/number-field/index.d.ts +5 -6
- package/lib/number-field/index.js +37 -47
- package/lib/overlay/elements/overlay-viewport.d.ts +1 -1
- package/lib/overlay/elements/overlay.d.ts +2 -2
- package/lib/overlay/elements/overlay.js +152 -96
- package/lib/overlay/helpers/types.d.ts +1 -1
- package/lib/overlay/managers/backdrop-manager.d.ts +1 -1
- package/lib/overlay/managers/backdrop-manager.js +2 -2
- package/lib/overlay/managers/close-manager.js +2 -1
- package/lib/overlay/managers/focus-manager.js +23 -13
- package/lib/overlay/managers/interaction-lock-manager.d.ts +4 -4
- package/lib/overlay/managers/interaction-lock-manager.js +33 -25
- package/lib/overlay/managers/viewport-manager.d.ts +2 -2
- package/lib/overlay/managers/viewport-manager.js +3 -2
- package/lib/overlay/managers/zindex-manager.js +4 -2
- package/lib/overlay-menu/helpers/types.d.ts +2 -2
- package/lib/overlay-menu/index.d.ts +1 -1
- package/lib/overlay-menu/index.js +44 -33
- package/lib/overlay-menu/managers/menu-manager.d.ts +10 -10
- package/lib/overlay-menu/managers/menu-manager.js +14 -13
- package/lib/pagination/index.d.ts +4 -4
- package/lib/pagination/index.js +39 -14
- package/lib/panel/index.js +1 -1
- package/lib/password-field/index.d.ts +2 -2
- package/lib/password-field/index.js +3 -3
- package/lib/pill/index.d.ts +1 -1
- package/lib/pill/index.js +22 -19
- package/lib/progress-bar/index.d.ts +1 -1
- package/lib/progress-bar/index.js +38 -37
- package/lib/radio-button/index.d.ts +2 -2
- package/lib/radio-button/index.js +17 -12
- package/lib/radio-button/radio-button-registry.js +8 -5
- package/lib/rating/index.d.ts +1 -1
- package/lib/rating/index.js +2 -5
- package/lib/rating/utils.d.ts +6 -6
- package/lib/rating/utils.js +6 -6
- package/lib/search-field/index.d.ts +2 -2
- package/lib/search-field/index.js +4 -4
- package/lib/select/index.d.ts +34 -34
- package/lib/select/index.js +68 -81
- package/lib/sidebar-layout/index.d.ts +2 -2
- package/lib/sidebar-layout/index.js +7 -9
- package/lib/slider/index.d.ts +2 -2
- package/lib/slider/index.js +57 -45
- package/lib/slider/utils.d.ts +10 -10
- package/lib/slider/utils.js +10 -10
- package/lib/sparkline/index.d.ts +1 -1
- package/lib/sparkline/index.js +7 -8
- package/lib/swing-gauge/helpers.js +2 -2
- package/lib/swing-gauge/index.d.ts +19 -19
- package/lib/swing-gauge/index.js +91 -81
- package/lib/tab/index.d.ts +1 -1
- package/lib/tab/index.js +16 -27
- package/lib/tab/themes/halo/dark/index.js +1 -1
- package/lib/tab/themes/halo/light/index.js +1 -1
- package/lib/tab/themes/solar/charcoal/index.js +1 -1
- package/lib/tab/themes/solar/pearl/index.js +1 -1
- package/lib/tab-bar/helpers/animate.js +1 -1
- package/lib/tab-bar/index.d.ts +1 -1
- package/lib/tab-bar/index.js +34 -18
- package/lib/tab-bar/themes/halo/dark/index.js +1 -1
- package/lib/tab-bar/themes/halo/light/index.js +1 -1
- package/lib/text-field/index.d.ts +1 -1
- package/lib/text-field/index.js +34 -31
- package/lib/time-picker/index.d.ts +6 -6
- package/lib/time-picker/index.js +103 -89
- package/lib/toggle/index.d.ts +1 -1
- package/lib/toggle/index.js +4 -3
- package/lib/tooltip/elements/title-tooltip.js +2 -2
- package/lib/tooltip/index.d.ts +27 -27
- package/lib/tooltip/index.js +42 -38
- package/lib/tooltip/managers/tooltip-manager.d.ts +1 -1
- package/lib/tornado-chart/elements/tornado-chart.d.ts +1 -1
- package/lib/tornado-chart/elements/tornado-chart.js +2 -2
- package/lib/tornado-chart/elements/tornado-item.d.ts +2 -2
- package/lib/tornado-chart/elements/tornado-item.js +12 -10
- package/lib/tree/elements/tree-item.d.ts +3 -3
- package/lib/tree/elements/tree-item.js +21 -19
- package/lib/tree/elements/tree.d.ts +1 -1
- package/lib/tree/elements/tree.js +12 -11
- package/lib/tree/helpers/renderer.js +4 -3
- package/lib/tree/index.d.ts +1 -1
- package/lib/tree/managers/tree-manager.d.ts +1 -1
- package/lib/tree/managers/tree-manager.js +17 -18
- package/lib/tree/themes/solar/charcoal/index.js +1 -1
- package/lib/tree/themes/solar/pearl/index.js +1 -1
- package/lib/tree-select/index.d.ts +9 -9
- package/lib/tree-select/index.js +91 -82
- package/lib/tree-select/themes/halo/dark/index.js +1 -1
- package/lib/tree-select/themes/halo/light/index.js +1 -1
- package/lib/tree-select/themes/solar/charcoal/index.js +1 -1
- package/lib/tree-select/themes/solar/pearl/index.js +1 -1
- package/lib/version.js +1 -1
- package/package.json +16 -16
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -3,14 +3,14 @@ import { FocusedPropertyKey, WarningNotice, html } from '@refinitiv-ui/core';
|
|
|
3
3
|
import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
|
|
4
4
|
import { property } from '@refinitiv-ui/core/decorators/property.js';
|
|
5
5
|
import { state } from '@refinitiv-ui/core/decorators/state.js';
|
|
6
|
+
import '@refinitiv-ui/phrasebook/locale/en/datetime-field.js';
|
|
7
|
+
import { TranslatePropertyKey, getLocale, translate } from '@refinitiv-ui/translate';
|
|
6
8
|
import { AnimationTaskRunner } from '@refinitiv-ui/utils/async.js';
|
|
7
|
-
import {
|
|
8
|
-
import { translate, getLocale, TranslatePropertyKey } from '@refinitiv-ui/translate';
|
|
9
|
-
import { Direction } from './constants.js';
|
|
9
|
+
import { Locale, getFormat, isAfter, isBefore, iterateUnit, utcFormat, utcParse } from '@refinitiv-ui/utils/date.js';
|
|
10
10
|
import { TextField } from '../text-field/index.js';
|
|
11
|
-
import { getSelectedPartIndex, getNextSelectedPartIndex, selectPart } from './utils.js';
|
|
12
11
|
import { VERSION } from '../version.js';
|
|
13
|
-
import '
|
|
12
|
+
import { Direction } from './constants.js';
|
|
13
|
+
import { getNextSelectedPartIndex, getSelectedPartIndex, selectPart } from './utils.js';
|
|
14
14
|
/**
|
|
15
15
|
* A form control element for datetime input.
|
|
16
16
|
*
|
|
@@ -272,14 +272,20 @@ let DatetimeField = class DatetimeField extends TextField {
|
|
|
272
272
|
shouldSyncInputValue(changedProperties) {
|
|
273
273
|
// Note: changing any of these properties override the input value
|
|
274
274
|
// On blur, if the value is correct makes sure strict format is used
|
|
275
|
-
return changedProperties.has('interimValueState')
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
275
|
+
return (changedProperties.has('interimValueState') ||
|
|
276
|
+
changedProperties.has(TranslatePropertyKey) ||
|
|
277
|
+
changedProperties.has('formatOptions') ||
|
|
278
|
+
changedProperties.has('timepicker') ||
|
|
279
|
+
changedProperties.has('showSeconds') ||
|
|
280
|
+
changedProperties.has('amPm') ||
|
|
281
|
+
(changedProperties.has(FocusedPropertyKey) && this.value !== '' && !this.focused));
|
|
282
282
|
}
|
|
283
|
+
/**
|
|
284
|
+
* Synchronise input value with value.
|
|
285
|
+
* Override the method if value and input value are not the same
|
|
286
|
+
* @param changedProperties Properties that has changed
|
|
287
|
+
* @returns {void}
|
|
288
|
+
*/
|
|
283
289
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
284
290
|
syncInputValue(changedProperties) {
|
|
285
291
|
this.interimValueState = false;
|
|
@@ -295,7 +301,7 @@ let DatetimeField = class DatetimeField extends TextField {
|
|
|
295
301
|
*/
|
|
296
302
|
shouldValidateInput(changedProperties) {
|
|
297
303
|
// TODO: this needs refactoring with all other fields to support common validation patterns
|
|
298
|
-
return
|
|
304
|
+
return changedProperties.has(FocusedPropertyKey) && !this.focused;
|
|
299
305
|
}
|
|
300
306
|
/**
|
|
301
307
|
* Validate input according `pattern`, `minLength` and `maxLength` properties
|
|
@@ -600,14 +606,20 @@ let DatetimeField = class DatetimeField extends TextField {
|
|
|
600
606
|
return null;
|
|
601
607
|
}
|
|
602
608
|
return html `
|
|
603
|
-
${this.partLabel && this.value
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
609
|
+
${this.partLabel && this.value
|
|
610
|
+
? html `<div
|
|
611
|
+
aria-label="${this.t(`PICK_${this.partLabel.toUpperCase()}`)}"
|
|
612
|
+
aria-live="polite"
|
|
613
|
+
role="status"
|
|
614
|
+
></div>`
|
|
615
|
+
: undefined}
|
|
607
616
|
<div
|
|
608
|
-
aria-label="${this.value
|
|
617
|
+
aria-label="${this.value
|
|
618
|
+
? this.t('VALUE', { value: this.toInputValue(this.value) })
|
|
619
|
+
: this.t('NO_VALUE')}"
|
|
609
620
|
aria-live="polite"
|
|
610
|
-
role="status"
|
|
621
|
+
role="status"
|
|
622
|
+
></div>
|
|
611
623
|
`;
|
|
612
624
|
}
|
|
613
625
|
/**
|
|
@@ -616,10 +628,7 @@ let DatetimeField = class DatetimeField extends TextField {
|
|
|
616
628
|
* @return Render template
|
|
617
629
|
*/
|
|
618
630
|
render() {
|
|
619
|
-
return html `
|
|
620
|
-
${super.render()}
|
|
621
|
-
${this.screenReaderTemplate}
|
|
622
|
-
`;
|
|
631
|
+
return html ` ${super.render()} ${this.screenReaderTemplate} `;
|
|
623
632
|
}
|
|
624
633
|
};
|
|
625
634
|
__decorate([
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import { Direction } from './constants.js';
|
|
2
|
-
const IterablePartTypes = [
|
|
2
|
+
const IterablePartTypes = [
|
|
3
|
+
'year',
|
|
4
|
+
'day',
|
|
5
|
+
'month',
|
|
6
|
+
'hour',
|
|
7
|
+
'minute',
|
|
8
|
+
'second',
|
|
9
|
+
'weekday',
|
|
10
|
+
'dayPeriod',
|
|
11
|
+
'fractionalSecond'
|
|
12
|
+
];
|
|
3
13
|
const isAllowedPart = (part) => IterablePartTypes.includes(part.type);
|
|
4
14
|
/**
|
|
5
15
|
* Get a part index based on the selection
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { JSXInterface } from '../jsx';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
2
|
+
import { CSSResultGroup, ControlElement, MultiValue, PropertyValues, TemplateResult } from '@refinitiv-ui/core';
|
|
3
|
+
import { TranslateDirective } from '@refinitiv-ui/translate';
|
|
4
4
|
import '../calendar/index.js';
|
|
5
5
|
import '../icon/index.js';
|
|
6
6
|
import '../overlay/index.js';
|
|
7
7
|
import '../text-field/index.js';
|
|
8
8
|
import '../time-picker/index.js';
|
|
9
|
-
import {
|
|
9
|
+
import type { DatetimePickerDuplex, DatetimePickerFilter } from './types';
|
|
10
10
|
export type { DatetimePickerFilter, DatetimePickerDuplex };
|
|
11
11
|
/**
|
|
12
12
|
* Control to pick date and time
|
|
@@ -48,33 +48,33 @@ export declare class DatetimePicker extends ControlElement implements MultiValue
|
|
|
48
48
|
private _min;
|
|
49
49
|
private minDate;
|
|
50
50
|
/**
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
* Set minimum date
|
|
52
|
+
* @param min date
|
|
53
|
+
* @default -
|
|
54
|
+
*/
|
|
55
55
|
set min(min: string);
|
|
56
56
|
get min(): string;
|
|
57
57
|
private _max;
|
|
58
58
|
private maxDate;
|
|
59
59
|
/**
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
* Set maximum date
|
|
61
|
+
* @param max date
|
|
62
|
+
* @default -
|
|
63
|
+
*/
|
|
64
64
|
set max(max: string);
|
|
65
65
|
get max(): string;
|
|
66
66
|
/**
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
* Only enable weekdays
|
|
68
|
+
*/
|
|
69
69
|
weekdaysOnly: boolean;
|
|
70
70
|
/**
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
* Only enable weekends
|
|
72
|
+
*/
|
|
73
73
|
weekendsOnly: boolean;
|
|
74
74
|
/**
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
* Custom filter, used for enabling/disabling certain dates
|
|
76
|
+
* @type {DatetimePickerFilter | null}
|
|
77
|
+
*/
|
|
78
78
|
filter: DatetimePickerFilter | null;
|
|
79
79
|
/**
|
|
80
80
|
* Set the first day of the week.
|
|
@@ -83,34 +83,34 @@ export declare class DatetimePicker extends ControlElement implements MultiValue
|
|
|
83
83
|
*/
|
|
84
84
|
firstDayOfWeek?: number;
|
|
85
85
|
/**
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
* Set to switch to range select mode
|
|
87
|
+
*/
|
|
88
88
|
range: boolean;
|
|
89
89
|
/**
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
* Set to switch to multiple select mode
|
|
91
|
+
* @ignore
|
|
92
|
+
* @param multiple Multiple
|
|
93
|
+
*/
|
|
94
94
|
set multiple(multiple: boolean);
|
|
95
95
|
/**
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
* @ignore
|
|
97
|
+
*/
|
|
98
98
|
get multiple(): boolean;
|
|
99
99
|
/**
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
100
|
+
* Current date time value
|
|
101
|
+
* @param value Calendar value
|
|
102
|
+
* @default -
|
|
103
|
+
*/
|
|
104
104
|
set value(value: string);
|
|
105
105
|
get value(): string;
|
|
106
106
|
private _values;
|
|
107
107
|
private _segments;
|
|
108
108
|
/**
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
109
|
+
* Set multiple selected values
|
|
110
|
+
* @param values Values to set
|
|
111
|
+
* @type {string[]}
|
|
112
|
+
* @default []
|
|
113
|
+
*/
|
|
114
114
|
set values(values: string[]);
|
|
115
115
|
get values(): string[];
|
|
116
116
|
/**
|
|
@@ -124,15 +124,15 @@ export declare class DatetimePicker extends ControlElement implements MultiValue
|
|
|
124
124
|
showSeconds: boolean;
|
|
125
125
|
private _placeholder;
|
|
126
126
|
/**
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
127
|
+
* Placeholder to display when no value is set
|
|
128
|
+
* @param placeholder Placeholder
|
|
129
|
+
* @default -
|
|
130
|
+
*/
|
|
131
131
|
set placeholder(placeholder: string);
|
|
132
132
|
get placeholder(): string;
|
|
133
133
|
/**
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
* Toggles the opened state of the list
|
|
135
|
+
*/
|
|
136
136
|
opened: boolean;
|
|
137
137
|
/**
|
|
138
138
|
* Set state to error
|
|
@@ -143,52 +143,52 @@ export declare class DatetimePicker extends ControlElement implements MultiValue
|
|
|
143
143
|
*/
|
|
144
144
|
warning: boolean;
|
|
145
145
|
/**
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
146
|
+
* Only open picker panel when calendar icon is clicked.
|
|
147
|
+
* Clicking on the input will no longer open the picker.
|
|
148
|
+
*/
|
|
149
149
|
inputTriggerDisabled: boolean;
|
|
150
150
|
/**
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
* Disable input part of the picker
|
|
152
|
+
*/
|
|
153
153
|
inputDisabled: boolean;
|
|
154
154
|
/**
|
|
155
|
-
|
|
156
|
-
|
|
155
|
+
* Disable the popup
|
|
156
|
+
*/
|
|
157
157
|
popupDisabled: boolean;
|
|
158
158
|
private _format;
|
|
159
159
|
/**
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
160
|
+
* Set the datetime format
|
|
161
|
+
* Based on dane-fns datetime formats
|
|
162
|
+
* @param format Date format
|
|
163
|
+
* @default -
|
|
164
|
+
*/
|
|
165
165
|
set format(format: string);
|
|
166
166
|
get format(): string;
|
|
167
167
|
/**
|
|
168
|
-
|
|
169
|
-
|
|
168
|
+
* Toggle to display the time picker
|
|
169
|
+
*/
|
|
170
170
|
timepicker: boolean;
|
|
171
171
|
/**
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
172
|
+
* Display two calendar pickers.
|
|
173
|
+
* @type {"" | "consecutive" | "split"}
|
|
174
|
+
*/
|
|
175
175
|
duplex: DatetimePickerDuplex | null;
|
|
176
176
|
/**
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
177
|
+
* Set the current calendar view.
|
|
178
|
+
* Accepted format: 'yyyy-MM'
|
|
179
|
+
* @param view view date
|
|
180
|
+
* @default -
|
|
181
|
+
*/
|
|
182
182
|
set view(view: string);
|
|
183
183
|
get view(): string;
|
|
184
184
|
private _views;
|
|
185
185
|
/**
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
186
|
+
* Set the current calendar views for duplex mode
|
|
187
|
+
* Accepted format: 'yyyy-MM'
|
|
188
|
+
* @param views view dates
|
|
189
|
+
* @type {string[]}
|
|
190
|
+
* @default []
|
|
191
|
+
*/
|
|
192
192
|
set views(views: string[]);
|
|
193
193
|
get views(): string[];
|
|
194
194
|
/**
|
|
@@ -228,10 +228,10 @@ export declare class DatetimePicker extends ControlElement implements MultiValue
|
|
|
228
228
|
*/
|
|
229
229
|
protected isValidValue(value: string): boolean;
|
|
230
230
|
/**
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
231
|
+
* Used to show a warning when the value does not pass the validation
|
|
232
|
+
* @param value that is invalid
|
|
233
|
+
* @returns {void}
|
|
234
|
+
*/
|
|
235
235
|
protected warnInvalidValue(value: string): void;
|
|
236
236
|
/**
|
|
237
237
|
* Show invalid view message
|
|
@@ -483,8 +483,8 @@ export declare class DatetimePicker extends ControlElement implements MultiValue
|
|
|
483
483
|
*/
|
|
484
484
|
private get inputTemplates();
|
|
485
485
|
/**
|
|
486
|
-
|
|
487
|
-
|
|
486
|
+
* Popup panel template
|
|
487
|
+
*/
|
|
488
488
|
private get popupTemplate();
|
|
489
489
|
/**
|
|
490
490
|
* A `TemplateResult` that will be used
|