@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.
Files changed (207) hide show
  1. package/CHANGELOG.md +191 -456
  2. package/LICENSE +2 -2
  3. package/README.md +13 -11
  4. package/cli.mjs +5 -3
  5. package/lib/accordion/index.d.ts +1 -1
  6. package/lib/accordion/index.js +4 -7
  7. package/lib/appstate-bar/index.d.ts +2 -2
  8. package/lib/appstate-bar/index.js +10 -4
  9. package/lib/autosuggest/index.d.ts +7 -7
  10. package/lib/autosuggest/index.js +80 -80
  11. package/lib/autosuggest/themes/solar/charcoal/index.js +1 -1
  12. package/lib/autosuggest/themes/solar/pearl/index.js +1 -1
  13. package/lib/button/index.js +7 -10
  14. package/lib/button-bar/index.d.ts +1 -1
  15. package/lib/button-bar/index.js +12 -12
  16. package/lib/calendar/index.d.ts +39 -39
  17. package/lib/calendar/index.js +156 -123
  18. package/lib/calendar/utils.js +1 -1
  19. package/lib/canvas/index.d.ts +1 -1
  20. package/lib/canvas/index.js +2 -4
  21. package/lib/card/helpers/types.d.ts +2 -2
  22. package/lib/card/index.d.ts +5 -5
  23. package/lib/card/index.js +34 -28
  24. package/lib/chart/elements/chart.d.ts +4 -4
  25. package/lib/chart/elements/chart.js +39 -33
  26. package/lib/chart/plugins/doughnut-center-label.d.ts +3 -3
  27. package/lib/chart/plugins/doughnut-center-label.js +13 -9
  28. package/lib/checkbox/index.d.ts +1 -1
  29. package/lib/checkbox/index.js +12 -13
  30. package/lib/clock/index.d.ts +55 -55
  31. package/lib/clock/index.js +84 -95
  32. package/lib/clock/themes/halo/dark/index.js +1 -1
  33. package/lib/clock/themes/halo/light/index.js +1 -1
  34. package/lib/clock/themes/solar/charcoal/index.js +1 -1
  35. package/lib/clock/themes/solar/pearl/index.js +1 -1
  36. package/lib/collapse/index.d.ts +1 -1
  37. package/lib/collapse/index.js +27 -18
  38. package/lib/collapse/themes/halo/dark/index.js +1 -1
  39. package/lib/collapse/themes/halo/light/index.js +1 -1
  40. package/lib/color-dialog/elements/color-palettes.d.ts +1 -1
  41. package/lib/color-dialog/elements/color-palettes.js +5 -6
  42. package/lib/color-dialog/elements/grayscale-palettes.d.ts +1 -1
  43. package/lib/color-dialog/elements/grayscale-palettes.js +9 -9
  44. package/lib/color-dialog/elements/palettes.js +5 -4
  45. package/lib/color-dialog/helpers/value-model.js +7 -9
  46. package/lib/color-dialog/index.d.ts +6 -6
  47. package/lib/color-dialog/index.js +53 -37
  48. package/lib/color-picker/index.d.ts +2 -2
  49. package/lib/color-picker/index.js +40 -34
  50. package/lib/combo-box/helpers/filter.d.ts +2 -2
  51. package/lib/combo-box/helpers/types.d.ts +1 -1
  52. package/lib/combo-box/index.d.ts +9 -9
  53. package/lib/combo-box/index.js +61 -55
  54. package/lib/configuration/elements/configuration.js +2 -2
  55. package/lib/counter/index.d.ts +4 -4
  56. package/lib/counter/index.js +9 -7
  57. package/lib/datetime-field/index.d.ts +4 -5
  58. package/lib/datetime-field/index.js +32 -23
  59. package/lib/datetime-field/utils.js +11 -1
  60. package/lib/datetime-picker/index.d.ts +75 -75
  61. package/lib/datetime-picker/index.js +150 -131
  62. package/lib/datetime-picker/locales.js +5 -5
  63. package/lib/datetime-picker/utils.js +9 -9
  64. package/lib/dialog/draggable-element.js +1 -2
  65. package/lib/dialog/index.d.ts +5 -5
  66. package/lib/dialog/index.js +51 -47
  67. package/lib/email-field/index.d.ts +1 -1
  68. package/lib/email-field/index.js +6 -6
  69. package/lib/events.d.ts +1 -1
  70. package/lib/flag/index.d.ts +1 -1
  71. package/lib/flag/index.js +6 -5
  72. package/lib/flag/utils/FlagLoader.js +1 -1
  73. package/lib/header/index.d.ts +1 -1
  74. package/lib/header/index.js +2 -2
  75. package/lib/header/themes/halo/dark/index.js +1 -1
  76. package/lib/header/themes/halo/light/index.js +1 -1
  77. package/lib/header/themes/solar/charcoal/index.js +1 -1
  78. package/lib/header/themes/solar/pearl/index.js +1 -1
  79. package/lib/heatmap/helpers/color.d.ts +1 -1
  80. package/lib/heatmap/helpers/color.js +11 -5
  81. package/lib/heatmap/helpers/track.js +3 -3
  82. package/lib/heatmap/index.d.ts +9 -9
  83. package/lib/heatmap/index.js +51 -42
  84. package/lib/icon/index.d.ts +2 -2
  85. package/lib/icon/index.js +8 -10
  86. package/lib/interactive-chart/helpers/types.d.ts +3 -3
  87. package/lib/interactive-chart/index.d.ts +29 -29
  88. package/lib/interactive-chart/index.js +69 -55
  89. package/lib/item/helpers/types.d.ts +1 -1
  90. package/lib/item/index.d.ts +3 -3
  91. package/lib/item/index.js +24 -20
  92. package/lib/jsx.d.ts +6 -4
  93. package/lib/label/index.d.ts +1 -1
  94. package/lib/label/index.js +10 -7
  95. package/lib/layout/index.d.ts +7 -7
  96. package/lib/layout/index.js +7 -7
  97. package/lib/led-gauge/index.d.ts +1 -1
  98. package/lib/led-gauge/index.js +10 -10
  99. package/lib/list/elements/list.d.ts +3 -3
  100. package/lib/list/elements/list.js +10 -12
  101. package/lib/list/helpers/renderer.js +2 -2
  102. package/lib/list/helpers/types.d.ts +1 -1
  103. package/lib/list/index.d.ts +1 -1
  104. package/lib/list/renderer.d.ts +7 -7
  105. package/lib/loader/index.js +7 -8
  106. package/lib/multi-input/index.d.ts +6 -6
  107. package/lib/multi-input/index.js +39 -45
  108. package/lib/notification/elements/notification-tray.d.ts +2 -2
  109. package/lib/notification/elements/notification-tray.js +3 -3
  110. package/lib/notification/elements/notification.d.ts +2 -2
  111. package/lib/notification/elements/notification.js +19 -13
  112. package/lib/notification/helpers/status.js +1 -1
  113. package/lib/number-field/index.d.ts +5 -6
  114. package/lib/number-field/index.js +37 -47
  115. package/lib/overlay/elements/overlay-viewport.d.ts +1 -1
  116. package/lib/overlay/elements/overlay.d.ts +2 -2
  117. package/lib/overlay/elements/overlay.js +152 -96
  118. package/lib/overlay/helpers/types.d.ts +1 -1
  119. package/lib/overlay/managers/backdrop-manager.d.ts +1 -1
  120. package/lib/overlay/managers/backdrop-manager.js +2 -2
  121. package/lib/overlay/managers/close-manager.js +2 -1
  122. package/lib/overlay/managers/focus-manager.js +23 -13
  123. package/lib/overlay/managers/interaction-lock-manager.d.ts +4 -4
  124. package/lib/overlay/managers/interaction-lock-manager.js +33 -25
  125. package/lib/overlay/managers/viewport-manager.d.ts +2 -2
  126. package/lib/overlay/managers/viewport-manager.js +3 -2
  127. package/lib/overlay/managers/zindex-manager.js +4 -2
  128. package/lib/overlay-menu/helpers/types.d.ts +2 -2
  129. package/lib/overlay-menu/index.d.ts +1 -1
  130. package/lib/overlay-menu/index.js +44 -33
  131. package/lib/overlay-menu/managers/menu-manager.d.ts +10 -10
  132. package/lib/overlay-menu/managers/menu-manager.js +14 -13
  133. package/lib/pagination/index.d.ts +4 -4
  134. package/lib/pagination/index.js +39 -14
  135. package/lib/panel/index.js +1 -1
  136. package/lib/password-field/index.d.ts +2 -2
  137. package/lib/password-field/index.js +3 -3
  138. package/lib/pill/index.d.ts +1 -1
  139. package/lib/pill/index.js +22 -19
  140. package/lib/progress-bar/index.d.ts +1 -1
  141. package/lib/progress-bar/index.js +38 -37
  142. package/lib/radio-button/index.d.ts +2 -2
  143. package/lib/radio-button/index.js +17 -12
  144. package/lib/radio-button/radio-button-registry.js +8 -5
  145. package/lib/rating/index.d.ts +1 -1
  146. package/lib/rating/index.js +2 -5
  147. package/lib/rating/utils.d.ts +6 -6
  148. package/lib/rating/utils.js +6 -6
  149. package/lib/search-field/index.d.ts +2 -2
  150. package/lib/search-field/index.js +4 -4
  151. package/lib/select/index.d.ts +34 -34
  152. package/lib/select/index.js +68 -81
  153. package/lib/sidebar-layout/index.d.ts +2 -2
  154. package/lib/sidebar-layout/index.js +7 -9
  155. package/lib/slider/index.d.ts +2 -2
  156. package/lib/slider/index.js +57 -45
  157. package/lib/slider/utils.d.ts +10 -10
  158. package/lib/slider/utils.js +10 -10
  159. package/lib/sparkline/index.d.ts +1 -1
  160. package/lib/sparkline/index.js +7 -8
  161. package/lib/swing-gauge/helpers.js +2 -2
  162. package/lib/swing-gauge/index.d.ts +19 -19
  163. package/lib/swing-gauge/index.js +91 -81
  164. package/lib/tab/index.d.ts +1 -1
  165. package/lib/tab/index.js +16 -27
  166. package/lib/tab/themes/halo/dark/index.js +1 -1
  167. package/lib/tab/themes/halo/light/index.js +1 -1
  168. package/lib/tab/themes/solar/charcoal/index.js +1 -1
  169. package/lib/tab/themes/solar/pearl/index.js +1 -1
  170. package/lib/tab-bar/helpers/animate.js +1 -1
  171. package/lib/tab-bar/index.d.ts +1 -1
  172. package/lib/tab-bar/index.js +34 -18
  173. package/lib/tab-bar/themes/halo/dark/index.js +1 -1
  174. package/lib/tab-bar/themes/halo/light/index.js +1 -1
  175. package/lib/text-field/index.d.ts +1 -1
  176. package/lib/text-field/index.js +34 -31
  177. package/lib/time-picker/index.d.ts +6 -6
  178. package/lib/time-picker/index.js +103 -89
  179. package/lib/toggle/index.d.ts +1 -1
  180. package/lib/toggle/index.js +4 -3
  181. package/lib/tooltip/elements/title-tooltip.js +2 -2
  182. package/lib/tooltip/index.d.ts +27 -27
  183. package/lib/tooltip/index.js +42 -38
  184. package/lib/tooltip/managers/tooltip-manager.d.ts +1 -1
  185. package/lib/tornado-chart/elements/tornado-chart.d.ts +1 -1
  186. package/lib/tornado-chart/elements/tornado-chart.js +2 -2
  187. package/lib/tornado-chart/elements/tornado-item.d.ts +2 -2
  188. package/lib/tornado-chart/elements/tornado-item.js +12 -10
  189. package/lib/tree/elements/tree-item.d.ts +3 -3
  190. package/lib/tree/elements/tree-item.js +21 -19
  191. package/lib/tree/elements/tree.d.ts +1 -1
  192. package/lib/tree/elements/tree.js +12 -11
  193. package/lib/tree/helpers/renderer.js +4 -3
  194. package/lib/tree/index.d.ts +1 -1
  195. package/lib/tree/managers/tree-manager.d.ts +1 -1
  196. package/lib/tree/managers/tree-manager.js +17 -18
  197. package/lib/tree/themes/solar/charcoal/index.js +1 -1
  198. package/lib/tree/themes/solar/pearl/index.js +1 -1
  199. package/lib/tree-select/index.d.ts +9 -9
  200. package/lib/tree-select/index.js +91 -82
  201. package/lib/tree-select/themes/halo/dark/index.js +1 -1
  202. package/lib/tree-select/themes/halo/light/index.js +1 -1
  203. package/lib/tree-select/themes/solar/charcoal/index.js +1 -1
  204. package/lib/tree-select/themes/solar/pearl/index.js +1 -1
  205. package/lib/version.js +1 -1
  206. package/package.json +16 -16
  207. 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 { utcParse, utcFormat, getFormat, isBefore, isAfter, iterateUnit, Locale } from '@refinitiv-ui/utils/date.js';
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 '@refinitiv-ui/phrasebook/locale/en/datetime-field.js';
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
- || 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);
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 (changedProperties.has(FocusedPropertyKey) && !this.focused);
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 ? html `<div
604
- aria-label="${this.t(`PICK_${this.partLabel.toUpperCase()}`)}"
605
- aria-live="polite"
606
- role="status"></div>` : undefined}
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 ? this.t('VALUE', { value: this.toInputValue(this.value) }) : this.t('NO_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"></div>
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 = ['year', 'day', 'month', 'hour', 'minute', 'second', 'weekday', 'dayPeriod', 'fractionalSecond'];
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 { ControlElement, TemplateResult, MultiValue, PropertyValues, CSSResultGroup } from '@refinitiv-ui/core';
3
- import type { DatetimePickerDuplex, DatetimePickerFilter } from './types';
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 { TranslateDirective } from '@refinitiv-ui/translate';
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
- * Set minimum date
52
- * @param min date
53
- * @default -
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
- * Set maximum date
61
- * @param max date
62
- * @default -
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
- * Only enable weekdays
68
- */
67
+ * Only enable weekdays
68
+ */
69
69
  weekdaysOnly: boolean;
70
70
  /**
71
- * Only enable weekends
72
- */
71
+ * Only enable weekends
72
+ */
73
73
  weekendsOnly: boolean;
74
74
  /**
75
- * Custom filter, used for enabling/disabling certain dates
76
- * @type {DatetimePickerFilter | null}
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
- * Set to switch to range select mode
87
- */
86
+ * Set to switch to range select mode
87
+ */
88
88
  range: boolean;
89
89
  /**
90
- * Set to switch to multiple select mode
91
- * @ignore
92
- * @param multiple Multiple
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
- * @ignore
97
- */
96
+ * @ignore
97
+ */
98
98
  get multiple(): boolean;
99
99
  /**
100
- * Current date time value
101
- * @param value Calendar value
102
- * @default -
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
- * Set multiple selected values
110
- * @param values Values to set
111
- * @type {string[]}
112
- * @default []
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
- * Placeholder to display when no value is set
128
- * @param placeholder Placeholder
129
- * @default -
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
- * Toggles the opened state of the list
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
- * Only open picker panel when calendar icon is clicked.
147
- * Clicking on the input will no longer open the picker.
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
- * Disable input part of the picker
152
- */
151
+ * Disable input part of the picker
152
+ */
153
153
  inputDisabled: boolean;
154
154
  /**
155
- * Disable the popup
156
- */
155
+ * Disable the popup
156
+ */
157
157
  popupDisabled: boolean;
158
158
  private _format;
159
159
  /**
160
- * Set the datetime format
161
- * Based on dane-fns datetime formats
162
- * @param format Date format
163
- * @default -
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
- * Toggle to display the time picker
169
- */
168
+ * Toggle to display the time picker
169
+ */
170
170
  timepicker: boolean;
171
171
  /**
172
- * Display two calendar pickers.
173
- * @type {"" | "consecutive" | "split"}
174
- */
172
+ * Display two calendar pickers.
173
+ * @type {"" | "consecutive" | "split"}
174
+ */
175
175
  duplex: DatetimePickerDuplex | null;
176
176
  /**
177
- * Set the current calendar view.
178
- * Accepted format: 'yyyy-MM'
179
- * @param view view date
180
- * @default -
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
- * Set the current calendar views for duplex mode
187
- * Accepted format: 'yyyy-MM'
188
- * @param views view dates
189
- * @type {string[]}
190
- * @default []
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
- * Used to show a warning when the value does not pass the validation
232
- * @param value that is invalid
233
- * @returns {void}
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
- * Popup panel template
487
- */
486
+ * Popup panel template
487
+ */
488
488
  private get popupTemplate();
489
489
  /**
490
490
  * A `TemplateResult` that will be used