@esri/calcite-components 1.0.0-next.317 → 1.0.0-next.320

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 (110) hide show
  1. package/dist/calcite/assets/calcite-icon/centerAlign16.json +1 -0
  2. package/dist/calcite/assets/calcite-icon/centerAlign24.json +1 -0
  3. package/dist/calcite/assets/calcite-icon/centerAlign32.json +1 -0
  4. package/dist/calcite/assets/calcite-icon/convert16.json +1 -0
  5. package/dist/calcite/assets/calcite-icon/convert24.json +1 -0
  6. package/dist/calcite/assets/calcite-icon/convert32.json +1 -0
  7. package/dist/calcite/assets/calcite-icon/formDropdown16.json +1 -0
  8. package/dist/calcite/assets/calcite-icon/formDropdown24.json +1 -0
  9. package/dist/calcite/assets/calcite-icon/formDropdown32.json +1 -0
  10. package/dist/calcite/assets/calcite-icon/language16.json +1 -0
  11. package/dist/calcite/assets/calcite-icon/language24.json +1 -0
  12. package/dist/calcite/assets/calcite-icon/language32.json +1 -0
  13. package/dist/calcite/assets/calcite-icon/languageTranslate16.json +1 -0
  14. package/dist/calcite/assets/calcite-icon/languageTranslate24.json +1 -0
  15. package/dist/calcite/assets/calcite-icon/languageTranslate32.json +1 -0
  16. package/dist/calcite/assets/calcite-icon/leftAlign16.json +1 -0
  17. package/dist/calcite/assets/calcite-icon/leftAlign24.json +1 -0
  18. package/dist/calcite/assets/calcite-icon/leftAlign32.json +1 -0
  19. package/dist/calcite/assets/calcite-icon/terminal16.json +1 -0
  20. package/dist/calcite/assets/calcite-icon/terminal24.json +1 -0
  21. package/dist/calcite/assets/calcite-icon/terminal32.json +1 -0
  22. package/dist/calcite/assets/calcite-icon/touch16.json +1 -0
  23. package/dist/calcite/assets/calcite-icon/touch24.json +1 -0
  24. package/dist/calcite/assets/calcite-icon/touch32.json +1 -0
  25. package/dist/calcite/calcite.esm.js +1 -1
  26. package/dist/calcite/p-1480eb2d.entry.js +5 -0
  27. package/dist/calcite/p-2cd9d307.entry.js +5 -0
  28. package/dist/calcite/p-6e050609.entry.js +5 -0
  29. package/dist/calcite/p-8e252799.system.js +1 -1
  30. package/dist/calcite/p-96bbc815.system.entry.js +5 -0
  31. package/dist/calcite/p-cb55c32c.system.entry.js +5 -0
  32. package/dist/calcite/p-e817ded0.entry.js +5 -0
  33. package/dist/calcite/{p-44a07313.system.entry.js → p-f7b5dd98.system.entry.js} +1 -1
  34. package/dist/calcite/p-fa9a1d8f.system.entry.js +5 -0
  35. package/dist/cjs/calcite-action-bar.cjs.entry.js +24 -0
  36. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +3 -3
  37. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +349 -223
  38. package/dist/cjs/calcite-panel.cjs.entry.js +3 -3
  39. package/dist/cjs/calcite.cjs.js +1 -1
  40. package/dist/cjs/loader.cjs.js +1 -1
  41. package/dist/collection/components/calcite-action-bar/calcite-action-bar.js +3 -0
  42. package/dist/collection/components/calcite-filter/calcite-filter.js +1 -1
  43. package/dist/collection/components/calcite-icon/assets/calcite-icon/centerAlign16.json +1 -0
  44. package/dist/collection/components/calcite-icon/assets/calcite-icon/centerAlign24.json +1 -0
  45. package/dist/collection/components/calcite-icon/assets/calcite-icon/centerAlign32.json +1 -0
  46. package/dist/collection/components/calcite-icon/assets/calcite-icon/convert16.json +1 -0
  47. package/dist/collection/components/calcite-icon/assets/calcite-icon/convert24.json +1 -0
  48. package/dist/collection/components/calcite-icon/assets/calcite-icon/convert32.json +1 -0
  49. package/dist/collection/components/calcite-icon/assets/calcite-icon/formDropdown16.json +1 -0
  50. package/dist/collection/components/calcite-icon/assets/calcite-icon/formDropdown24.json +1 -0
  51. package/dist/collection/components/calcite-icon/assets/calcite-icon/formDropdown32.json +1 -0
  52. package/dist/collection/components/calcite-icon/assets/calcite-icon/language16.json +1 -0
  53. package/dist/collection/components/calcite-icon/assets/calcite-icon/language24.json +1 -0
  54. package/dist/collection/components/calcite-icon/assets/calcite-icon/language32.json +1 -0
  55. package/dist/collection/components/calcite-icon/assets/calcite-icon/languageTranslate16.json +1 -0
  56. package/dist/collection/components/calcite-icon/assets/calcite-icon/languageTranslate24.json +1 -0
  57. package/dist/collection/components/calcite-icon/assets/calcite-icon/languageTranslate32.json +1 -0
  58. package/dist/collection/components/calcite-icon/assets/calcite-icon/leftAlign16.json +1 -0
  59. package/dist/collection/components/calcite-icon/assets/calcite-icon/leftAlign24.json +1 -0
  60. package/dist/collection/components/calcite-icon/assets/calcite-icon/leftAlign32.json +1 -0
  61. package/dist/collection/components/calcite-icon/assets/calcite-icon/terminal16.json +1 -0
  62. package/dist/collection/components/calcite-icon/assets/calcite-icon/terminal24.json +1 -0
  63. package/dist/collection/components/calcite-icon/assets/calcite-icon/terminal32.json +1 -0
  64. package/dist/collection/components/calcite-icon/assets/calcite-icon/touch16.json +1 -0
  65. package/dist/collection/components/calcite-icon/assets/calcite-icon/touch24.json +1 -0
  66. package/dist/collection/components/calcite-icon/assets/calcite-icon/touch32.json +1 -0
  67. package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.js +81 -76
  68. package/dist/collection/components/calcite-panel/calcite-panel.js +3 -3
  69. package/dist/collection/components/calcite-time-picker/calcite-time-picker.css +56 -91
  70. package/dist/collection/components/calcite-time-picker/calcite-time-picker.js +254 -289
  71. package/dist/collection/components/calcite-time-picker/resources.js +15 -9
  72. package/dist/collection/utils/conditionalSlot.js +26 -0
  73. package/dist/collection/utils/time.js +144 -36
  74. package/dist/components/calcite-action-bar.js +25 -1
  75. package/dist/components/calcite-color-picker-swatch2.js +3 -3
  76. package/dist/components/calcite-input-time-picker.js +51 -48
  77. package/dist/components/calcite-panel.js +3 -3
  78. package/dist/components/calcite-time-picker2.js +320 -187
  79. package/dist/custom-elements/index.js +381 -231
  80. package/dist/esm/calcite-action-bar.entry.js +25 -1
  81. package/dist/esm/calcite-color-picker_3.entry.js +3 -3
  82. package/dist/esm/calcite-input-time-picker_2.entry.js +349 -223
  83. package/dist/esm/calcite-panel.entry.js +3 -3
  84. package/dist/esm/calcite.js +1 -1
  85. package/dist/esm/loader.js +1 -1
  86. package/dist/esm-es5/calcite-action-bar.entry.js +1 -1
  87. package/dist/esm-es5/calcite-color-picker_3.entry.js +1 -1
  88. package/dist/esm-es5/calcite-input-time-picker_2.entry.js +2 -2
  89. package/dist/esm-es5/calcite-panel.entry.js +1 -1
  90. package/dist/esm-es5/calcite.js +1 -1
  91. package/dist/esm-es5/loader.js +1 -1
  92. package/dist/extras/docs-json.json +23 -101
  93. package/dist/types/components/calcite-action-bar/calcite-action-bar.d.ts +2 -1
  94. package/dist/types/components/calcite-input-time-picker/calcite-input-time-picker.d.ts +12 -4
  95. package/dist/types/components/calcite-panel/calcite-panel.d.ts +1 -1
  96. package/dist/types/components/calcite-time-picker/calcite-time-picker.d.ts +35 -23
  97. package/dist/types/components/calcite-time-picker/resources.d.ts +14 -8
  98. package/dist/types/components.d.ts +17 -41
  99. package/dist/types/utils/conditionalSlot.d.ts +17 -0
  100. package/dist/types/utils/time.d.ts +18 -5
  101. package/hydrate/index.js +399 -239
  102. package/package.json +11 -11
  103. package/readme.md +2 -2
  104. package/dist/calcite/p-12a9599d.system.entry.js +0 -5
  105. package/dist/calcite/p-88784777.system.entry.js +0 -5
  106. package/dist/calcite/p-9634f89d.entry.js +0 -5
  107. package/dist/calcite/p-b37b7b9e.system.entry.js +0 -5
  108. package/dist/calcite/p-e1da1646.entry.js +0 -5
  109. package/dist/calcite/p-e78e743b.entry.js +0 -5
  110. package/dist/calcite/p-f333e31b.entry.js +0 -5
@@ -1,12 +1,13 @@
1
1
  /// <reference types="lodash" />
2
2
  import { EventEmitter, VNode } from "../../stencil-public-runtime";
3
3
  import { Position, Scale } from "../interfaces";
4
+ import { ConditionalSlotComponent } from "../../utils/conditionalSlot";
4
5
  /**
5
6
  * @slot - A slot for adding `calcite-action`s that will appear at the top of the action bar.
6
7
  * @slot bottom-actions - A slot for adding `calcite-action`s that will appear at the bottom of the action bar, above the collapse/expand button.
7
8
  * @slot expand-tooltip - Used to set the tooltip for the expand toggle.
8
9
  */
9
- export declare class CalciteActionBar {
10
+ export declare class CalciteActionBar implements ConditionalSlotComponent {
10
11
  /**
11
12
  * When set to true, the expand-toggling behavior will be disabled.
12
13
  */
@@ -1,5 +1,4 @@
1
1
  import { VNode, EventEmitter } from "../../stencil-public-runtime";
2
- import { HourDisplayFormat } from "../../utils/time";
3
2
  import { Scale } from "../interfaces";
4
3
  import { LabelableComponent } from "../../utils/label";
5
4
  import { FormComponent } from "../../utils/form";
@@ -9,8 +8,6 @@ export declare class CalciteInputTimePicker implements LabelableComponent, FormC
9
8
  active: boolean;
10
9
  /** The disabled state of the time input */
11
10
  disabled: boolean;
12
- /** Format of the hour value (12-hour or 24-hour) (this will be replaced by locale eventually) */
13
- hourDisplayFormat: HourDisplayFormat;
14
11
  /** aria-label for the hour input */
15
12
  intlHour?: string;
16
13
  /** aria-label for the hour down button */
@@ -35,6 +32,12 @@ export declare class CalciteInputTimePicker implements LabelableComponent, FormC
35
32
  intlSecondDown?: string;
36
33
  /** aria-label for the second up button */
37
34
  intlSecondUp?: string;
35
+ /**
36
+ * BCP 47 language tag for desired language and country format
37
+ * @internal
38
+ */
39
+ locale: string;
40
+ localeWatcher(newLocale: string): void;
38
41
  /** The name of the time input */
39
42
  name: string;
40
43
  /**
@@ -54,10 +57,12 @@ export declare class CalciteInputTimePicker implements LabelableComponent, FormC
54
57
  formEl: HTMLFormElement;
55
58
  defaultValue: CalciteInputTimePicker["value"];
56
59
  private calciteInputEl;
60
+ private calciteTimePickerEl;
57
61
  /** whether the value of the input was changed as a result of user typing or not */
58
62
  private internalValueChange;
59
63
  private previousValidValue;
60
64
  private referenceElementId;
65
+ localizedValue: string;
61
66
  /**
62
67
  * Fires when the time value is changed as a result of user input.
63
68
  */
@@ -65,14 +70,17 @@ export declare class CalciteInputTimePicker implements LabelableComponent, FormC
65
70
  private calciteInputBlurHandler;
66
71
  private calciteInputFocusHandler;
67
72
  private calciteInputInputHandler;
73
+ clickHandler(event: MouseEvent): void;
68
74
  keyUpHandler(event: KeyboardEvent): void;
69
75
  timePickerBlurHandler(event: CustomEvent): void;
70
- timePickerChangeHandler(event: CustomEvent): void;
76
+ private timePickerChangeHandler;
71
77
  timePickerFocusHandler(event: CustomEvent): void;
72
78
  /** Sets focus on the component. */
73
79
  setFocus(): Promise<void>;
74
80
  onLabelClick(): void;
81
+ private shouldIncludeSeconds;
75
82
  private setCalciteInputEl;
83
+ private setCalciteTimePickerEl;
76
84
  private setInputValue;
77
85
  private setValue;
78
86
  connectedCallback(): void;
@@ -92,7 +92,7 @@ export declare class CalcitePanel {
92
92
  setContainerRef: (node: HTMLElement) => void;
93
93
  setDismissRef: (node: HTMLCalciteActionElement) => void;
94
94
  setBackRef: (node: HTMLCalciteActionElement) => void;
95
- panelKeyUpHandler: (event: KeyboardEvent) => void;
95
+ panelKeyDownHandler: (event: KeyboardEvent) => void;
96
96
  dismiss: () => void;
97
97
  panelScrollHandler: () => void;
98
98
  backButtonClick: () => void;
@@ -1,12 +1,8 @@
1
1
  import { VNode, EventEmitter } from "../../stencil-public-runtime";
2
2
  import { Scale } from "../interfaces";
3
- import { Meridiem, Time, TimeFocusId, HourDisplayFormat } from "../../utils/time";
3
+ import { TimePart, HourCycle, Meridiem } from "../../utils/time";
4
4
  export declare class CalciteTimePicker {
5
5
  el: HTMLCalciteTimePickerElement;
6
- /** The hour value (24-hour format) */
7
- hour?: string;
8
- /** Format of the hour value (12-hour or 24-hour) (this will be replaced by locale eventually) */
9
- hourDisplayFormat: HourDisplayFormat;
10
6
  /** aria-label for the hour input
11
7
  * @default "Hour"
12
8
  */
@@ -55,51 +51,62 @@ export declare class CalciteTimePicker {
55
51
  * @default "Increase second"
56
52
  */
57
53
  intlSecondUp: string;
58
- /** The minute value */
59
- minute?: string;
60
- /** The second value */
61
- second?: string;
54
+ /**
55
+ * BCP 47 language tag for desired language and country format
56
+ * @internal
57
+ */
58
+ locale: string;
59
+ localeWatcher(newLocale: string): void;
62
60
  /** The scale (size) of the time picker */
63
61
  scale: Scale;
64
62
  /** number that specifies the granularity that the value must adhere to */
65
63
  step: number;
66
- hourChanged(newHour: string): void;
67
- timeChangeHandler(): void;
64
+ /** The selected time in UTC */
65
+ value: string;
66
+ valueWatcher(newValue: string): void;
68
67
  private activeEl;
69
- private meridiemEl;
70
68
  private hourEl;
69
+ private meridiemEl;
71
70
  private minuteEl;
72
71
  private secondEl;
73
- private timeChanged;
74
- /** The am/pm value */
72
+ hour: string;
73
+ hourChanged(newHour: string): void;
74
+ hourCycle: HourCycle;
75
+ localizedHour: string;
76
+ localizedHourSuffix: string;
77
+ localizedMeridiem: string;
78
+ localizedMinute: string;
79
+ localizedMinuteSuffix: string;
80
+ localizedSecond: string;
81
+ localizedSecondSuffix: string;
75
82
  meridiem: Meridiem;
76
- displayHour: string;
83
+ minute: string;
84
+ second: string;
85
+ showSecond: boolean;
77
86
  /**
78
87
  * @internal
79
88
  */
80
- calciteTimePickerBlur: EventEmitter<Time>;
89
+ calciteTimePickerBlur: EventEmitter<void>;
81
90
  /**
82
91
  * @internal
83
92
  */
84
- calciteTimePickerChange: EventEmitter<Time>;
93
+ calciteTimePickerChange: EventEmitter<string>;
85
94
  /**
86
95
  * @internal
87
96
  */
88
- calciteTimePickerFocus: EventEmitter<Time>;
97
+ calciteTimePickerFocus: EventEmitter<void>;
89
98
  hostBlurHandler(): void;
90
99
  hostFocusHandler(): void;
91
100
  keyDownHandler(event: KeyboardEvent): void;
92
101
  /** Sets focus on the component. */
93
- setFocus(target: TimeFocusId): Promise<void>;
102
+ setFocus(target: TimePart): Promise<void>;
103
+ private buttonActivated;
94
104
  private decrementHour;
95
105
  private decrementMeridiem;
96
106
  private decrementMinuteOrSecond;
97
107
  private decrementMinute;
98
108
  private decrementSecond;
99
- private buttonActivated;
100
109
  private focusHandler;
101
- private getDisplayHour;
102
- private getTime;
103
110
  private hourDownButtonKeyDownHandler;
104
111
  private hourKeyDownHandler;
105
112
  private hourUpButtonKeyDownHandler;
@@ -117,7 +124,12 @@ export declare class CalciteTimePicker {
117
124
  private secondDownButtonKeyDownHandler;
118
125
  private secondKeyDownHandler;
119
126
  private secondUpButtonKeyDownHandler;
120
- private setTime;
127
+ private setHourEl;
128
+ private setMeridiemEl;
129
+ private setMinuteEl;
130
+ private setSecondEl;
131
+ private setValue;
132
+ private setValuePart;
121
133
  connectedCallback(): void;
122
134
  render(): VNode;
123
135
  }
@@ -1,24 +1,30 @@
1
1
  export declare const CSS: {
2
+ button: string;
2
3
  buttonBottomLeft: string;
3
4
  buttonBottomRight: string;
4
- button: string;
5
- delimiter: string;
6
- hour: string;
7
5
  buttonHourDown: string;
8
6
  buttonHourUp: string;
9
- input: string;
10
- meridiem: string;
11
7
  buttonMeridiemDown: string;
12
8
  buttonMeridiemUp: string;
13
- minute: string;
14
9
  buttonMinuteDown: string;
15
10
  buttonMinuteUp: string;
16
- second: string;
17
11
  buttonSecondDown: string;
18
12
  buttonSecondUp: string;
19
- timePicker: string;
20
13
  buttonTopLeft: string;
21
14
  buttonTopRight: string;
15
+ column: string;
16
+ delimiter: string;
17
+ hour: string;
18
+ input: string;
19
+ meridiem: string;
20
+ minute: string;
21
+ second: string;
22
+ showMeridiem: string;
23
+ showSecond: string;
24
+ "scale-s": string;
25
+ "scale-m": string;
26
+ "scale-l": string;
27
+ timePicker: string;
22
28
  };
23
29
  export declare const TEXT: {
24
30
  hour: string;
@@ -24,7 +24,6 @@ import { DropdownPlacement, ItemKeyboardEvent } from "./components/calcite-dropd
24
24
  import { SelectionMode } from "./components/calcite-dropdown-group/interfaces";
25
25
  import { ColorStop, DataSeries } from "./components/calcite-graph/interfaces";
26
26
  import { InputPlacement } from "./components/calcite-input/interfaces";
27
- import { HourDisplayFormat, Time, TimeFocusId } from "./utils/time";
28
27
  import { ModalBackgroundColor } from "./components/calcite-modal/interfaces";
29
28
  import { CalcitePaginationDetail } from "./components/calcite-pagination/calcite-pagination";
30
29
  import { ListFocusId } from "./components/calcite-pick-list/shared-list-logic";
@@ -34,6 +33,7 @@ import { TabID, TabLayout, TabPosition } from "./components/calcite-tabs/interfa
34
33
  import { TabChangeEventDetail } from "./components/calcite-tab/interfaces";
35
34
  import { TileSelectType } from "./components/calcite-tile-select/interfaces";
36
35
  import { TileSelectGroupLayout } from "./components/calcite-tile-select-group/interfaces";
36
+ import { TimePart } from "./utils/time";
37
37
  import { TreeSelectDetail, TreeSelectionMode } from "./components/calcite-tree/interfaces";
38
38
  import { TreeItemSelectDetail } from "./components/calcite-tree-item/interfaces";
39
39
  export namespace Components {
@@ -1698,10 +1698,6 @@ export namespace Components {
1698
1698
  * The disabled state of the time input
1699
1699
  */
1700
1700
  "disabled": boolean;
1701
- /**
1702
- * Format of the hour value (12-hour or 24-hour) (this will be replaced by locale eventually)
1703
- */
1704
- "hourDisplayFormat": HourDisplayFormat;
1705
1701
  /**
1706
1702
  * aria-label for the hour input
1707
1703
  */
@@ -1750,6 +1746,10 @@ export namespace Components {
1750
1746
  * aria-label for the second up button
1751
1747
  */
1752
1748
  "intlSecondUp"?: string;
1749
+ /**
1750
+ * BCP 47 language tag for desired language and country format
1751
+ */
1752
+ "locale": string;
1753
1753
  /**
1754
1754
  * The name of the time input
1755
1755
  */
@@ -3151,14 +3151,6 @@ export namespace Components {
3151
3151
  "layout"?: TileSelectGroupLayout;
3152
3152
  }
3153
3153
  interface CalciteTimePicker {
3154
- /**
3155
- * The hour value (24-hour format)
3156
- */
3157
- "hour"?: string;
3158
- /**
3159
- * Format of the hour value (12-hour or 24-hour) (this will be replaced by locale eventually)
3160
- */
3161
- "hourDisplayFormat": HourDisplayFormat;
3162
3154
  /**
3163
3155
  * aria-label for the hour input
3164
3156
  * @default "Hour"
@@ -3220,25 +3212,25 @@ export namespace Components {
3220
3212
  */
3221
3213
  "intlSecondUp": string;
3222
3214
  /**
3223
- * The minute value
3215
+ * BCP 47 language tag for desired language and country format
3224
3216
  */
3225
- "minute"?: string;
3217
+ "locale": string;
3226
3218
  /**
3227
3219
  * The scale (size) of the time picker
3228
3220
  */
3229
3221
  "scale": Scale;
3230
- /**
3231
- * The second value
3232
- */
3233
- "second"?: string;
3234
3222
  /**
3235
3223
  * Sets focus on the component.
3236
3224
  */
3237
- "setFocus": (target: TimeFocusId) => Promise<void>;
3225
+ "setFocus": (target: TimePart) => Promise<void>;
3238
3226
  /**
3239
3227
  * number that specifies the granularity that the value must adhere to
3240
3228
  */
3241
3229
  "step": number;
3230
+ /**
3231
+ * The selected time in UTC
3232
+ */
3233
+ "value": string;
3242
3234
  }
3243
3235
  interface CalciteTip {
3244
3236
  /**
@@ -5409,7 +5401,7 @@ declare namespace LocalJSX {
5409
5401
  /**
5410
5402
  * The items to filter through. The filter uses this as the starting point, and returns items that contain the string entered in the input, using a partial match and recursive search. This property is required.
5411
5403
  */
5412
- "items"?: object[];
5404
+ "items": object[];
5413
5405
  /**
5414
5406
  * This event fires when the filter text changes.
5415
5407
  */
@@ -5808,10 +5800,6 @@ declare namespace LocalJSX {
5808
5800
  * The disabled state of the time input
5809
5801
  */
5810
5802
  "disabled"?: boolean;
5811
- /**
5812
- * Format of the hour value (12-hour or 24-hour) (this will be replaced by locale eventually)
5813
- */
5814
- "hourDisplayFormat"?: HourDisplayFormat;
5815
5803
  /**
5816
5804
  * aria-label for the hour input
5817
5805
  */
@@ -7201,14 +7189,6 @@ declare namespace LocalJSX {
7201
7189
  "layout"?: TileSelectGroupLayout;
7202
7190
  }
7203
7191
  interface CalciteTimePicker {
7204
- /**
7205
- * The hour value (24-hour format)
7206
- */
7207
- "hour"?: string;
7208
- /**
7209
- * Format of the hour value (12-hour or 24-hour) (this will be replaced by locale eventually)
7210
- */
7211
- "hourDisplayFormat"?: HourDisplayFormat;
7212
7192
  /**
7213
7193
  * aria-label for the hour input
7214
7194
  * @default "Hour"
@@ -7269,22 +7249,18 @@ declare namespace LocalJSX {
7269
7249
  * @default "Increase second"
7270
7250
  */
7271
7251
  "intlSecondUp"?: string;
7272
- /**
7273
- * The minute value
7274
- */
7275
- "minute"?: string;
7276
7252
  /**
7277
7253
  * The scale (size) of the time picker
7278
7254
  */
7279
7255
  "scale"?: Scale;
7280
- /**
7281
- * The second value
7282
- */
7283
- "second"?: string;
7284
7256
  /**
7285
7257
  * number that specifies the granularity that the value must adhere to
7286
7258
  */
7287
7259
  "step"?: number;
7260
+ /**
7261
+ * The selected time in UTC
7262
+ */
7263
+ "value"?: string;
7288
7264
  }
7289
7265
  interface CalciteTip {
7290
7266
  /**
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Defines interface for components with a dynamically changing slot.
3
+ */
4
+ export interface ConditionalSlotComponent {
5
+ /**
6
+ * The host element.
7
+ */
8
+ readonly el: HTMLElement;
9
+ }
10
+ /**
11
+ * Helper to set up a conditional slot component on connectedCallback.
12
+ */
13
+ export declare function connectConditionalSlotComponent(component: ConditionalSlotComponent): void;
14
+ /**
15
+ * Helper to tear down a conditional slot component on disconnectedCallback.
16
+ */
17
+ export declare function disconnectConditionalSlotComponent(component: ConditionalSlotComponent): void;
@@ -1,4 +1,13 @@
1
- export declare type HourDisplayFormat = "12" | "24";
1
+ export declare type HourCycle = "12" | "24";
2
+ export interface LocalizedTime {
3
+ localizedHour: string;
4
+ localizedHourSuffix: string;
5
+ localizedMinute: string;
6
+ localizedMinuteSuffix: string;
7
+ localizedSecond: string;
8
+ localizedSecondSuffix: string;
9
+ localizedMeridiem: string;
10
+ }
2
11
  export declare type Meridiem = "AM" | "PM";
3
12
  export declare type MinuteOrSecond = "minute" | "second";
4
13
  export interface Time {
@@ -6,10 +15,14 @@ export interface Time {
6
15
  minute: string;
7
16
  second: string;
8
17
  }
9
- export declare type TimeFocusId = "hour" | MinuteOrSecond | "meridiem";
18
+ export declare type TimePart = "hour" | "hourSuffix" | "minute" | "minuteSuffix" | "second" | "secondSuffix" | "meridiem";
10
19
  export declare const maxTenthForMinuteAndSecond = 5;
20
+ export declare function formatTimePart(number: number): string;
21
+ export declare function formatTimeString(value: string): string;
22
+ export declare function getLocaleHourCycle(locale: string): HourCycle;
11
23
  export declare function getMeridiem(hour: string): Meridiem;
12
- export declare function getMeridiemHour(hour: string): string;
24
+ export declare function isValidTime(value: string): boolean;
25
+ export declare function localizeTimePart(value: string, part: TimePart, locale: string): string;
26
+ export declare function localizeTimeString(value: string, locale?: string, includeSeconds?: boolean): string;
27
+ export declare function localizeTimeStringToParts(value: string, locale?: string): LocalizedTime;
13
28
  export declare function parseTimeString(value: string): Time;
14
- export declare function formatTimeString(value: string): string;
15
- export declare function formatTimePart(number: number): string;