@esri/calcite-components 1.0.0-next.319 → 1.0.0-next.322
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/dist/calcite/calcite.esm.js +1 -1
- package/dist/calcite/p-04bce033.entry.js +5 -0
- package/dist/calcite/p-1480eb2d.entry.js +5 -0
- package/dist/calcite/p-414ce3c1.system.entry.js +5 -0
- package/dist/calcite/p-4d4ba7df.entry.js +5 -0
- package/dist/calcite/{p-8b2d4eac.system.entry.js → p-4e95e13d.system.entry.js} +1 -1
- package/dist/calcite/p-58208234.system.entry.js +5 -0
- package/dist/calcite/{p-9be50494.entry.js → p-77600274.entry.js} +1 -1
- package/dist/calcite/p-8e252799.system.js +1 -1
- package/dist/calcite/{p-f97e1a2d.entry.js → p-a57aa5d0.entry.js} +1 -1
- package/dist/calcite/{p-6c5b849f.system.entry.js → p-ac417011.system.entry.js} +1 -1
- package/dist/calcite/p-ad617a5a.entry.js +5 -0
- package/dist/calcite/p-ed82600e.system.entry.js +5 -0
- package/dist/calcite/p-fa9a1d8f.system.entry.js +5 -0
- package/dist/cjs/calcite-button.cjs.entry.js +2 -2
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +4 -1
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +349 -223
- package/dist/cjs/calcite-label.cjs.entry.js +1 -1
- package/dist/cjs/calcite-option_3.cjs.entry.js +3 -1
- package/dist/cjs/{calcite-radio_2.cjs.entry.js → calcite-radio-button.cjs.entry.js} +2 -43
- package/dist/cjs/calcite.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +5 -7
- package/dist/collection/components/calcite-button/calcite-button.js +3 -2
- package/dist/collection/components/calcite-combobox/calcite-combobox.js +4 -1
- package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.js +81 -76
- package/dist/collection/components/calcite-label/calcite-label.css +0 -1
- package/dist/collection/components/calcite-option/calcite-option.js +3 -1
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.css +69 -0
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +1 -1
- package/dist/collection/components/calcite-time-picker/calcite-time-picker.css +56 -91
- package/dist/collection/components/calcite-time-picker/calcite-time-picker.js +254 -289
- package/dist/collection/components/calcite-time-picker/resources.js +15 -9
- package/dist/collection/utils/time.js +144 -36
- package/dist/components/calcite-button2.js +2 -2
- package/dist/components/calcite-combobox.js +4 -1
- package/dist/components/calcite-input-time-picker.js +51 -48
- package/dist/components/calcite-label2.js +1 -1
- package/dist/components/calcite-option.js +3 -1
- package/dist/components/calcite-radio-button.js +3 -9
- package/dist/components/calcite-time-picker2.js +320 -187
- package/dist/custom-elements/index.d.ts +0 -6
- package/dist/custom-elements/index.js +364 -277
- package/dist/esm/calcite-button.entry.js +2 -2
- package/dist/esm/calcite-combobox_3.entry.js +4 -1
- package/dist/esm/calcite-input-time-picker_2.entry.js +349 -223
- package/dist/esm/calcite-label.entry.js +1 -1
- package/dist/esm/calcite-option_3.entry.js +3 -1
- package/dist/esm/{calcite-radio_2.entry.js → calcite-radio-button.entry.js} +4 -44
- package/dist/esm/calcite.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm-es5/calcite-button.entry.js +1 -1
- package/dist/esm-es5/calcite-combobox_3.entry.js +1 -1
- package/dist/esm-es5/calcite-input-time-picker_2.entry.js +2 -2
- package/dist/esm-es5/calcite-label.entry.js +1 -1
- package/dist/esm-es5/calcite-option_3.entry.js +1 -1
- package/dist/esm-es5/calcite-radio-button.entry.js +5 -0
- package/dist/esm-es5/calcite.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/extras/docs-json.json +24 -211
- package/dist/types/components/calcite-input-time-picker/calcite-input-time-picker.d.ts +12 -4
- package/dist/types/components/calcite-time-picker/calcite-time-picker.d.ts +35 -23
- package/dist/types/components/calcite-time-picker/resources.d.ts +14 -8
- package/dist/types/components.d.ts +16 -93
- package/dist/types/preact.d.ts +0 -2
- package/dist/types/utils/time.d.ts +18 -5
- package/hydrate/index.js +381 -296
- package/package.json +1 -1
- package/readme.md +2 -2
- package/dist/calcite/p-12a9599d.system.entry.js +0 -5
- package/dist/calcite/p-1e4955d7.entry.js +0 -5
- package/dist/calcite/p-2b137143.system.entry.js +0 -5
- package/dist/calcite/p-35c5e6bd.entry.js +0 -5
- package/dist/calcite/p-4af85388.system.entry.js +0 -5
- package/dist/calcite/p-9634f89d.entry.js +0 -5
- package/dist/calcite/p-a98e5444.system.entry.js +0 -5
- package/dist/calcite/p-fccc1605.entry.js +0 -5
- package/dist/collection/components/calcite-radio/calcite-radio.css +0 -162
- package/dist/collection/components/calcite-radio/calcite-radio.js +0 -169
- package/dist/components/calcite-radio.d.ts +0 -11
- package/dist/components/calcite-radio.js +0 -10
- package/dist/components/calcite-radio2.js +0 -71
- package/dist/esm-es5/calcite-radio_2.entry.js +0 -5
- package/dist/types/components/calcite-radio/calcite-radio.d.ts +0 -22
|
@@ -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
|
*/
|
|
@@ -2363,32 +2363,6 @@ export namespace Components {
|
|
|
2363
2363
|
*/
|
|
2364
2364
|
"value": number;
|
|
2365
2365
|
}
|
|
2366
|
-
interface CalciteRadio {
|
|
2367
|
-
/**
|
|
2368
|
-
* The checked state of the radio.
|
|
2369
|
-
*/
|
|
2370
|
-
"checked": boolean;
|
|
2371
|
-
/**
|
|
2372
|
-
* The disabled state of the radio.
|
|
2373
|
-
*/
|
|
2374
|
-
"disabled": boolean;
|
|
2375
|
-
/**
|
|
2376
|
-
* The focused state of the radio.
|
|
2377
|
-
*/
|
|
2378
|
-
"focused": boolean;
|
|
2379
|
-
/**
|
|
2380
|
-
* The radio's hidden status.
|
|
2381
|
-
*/
|
|
2382
|
-
"hidden": boolean;
|
|
2383
|
-
/**
|
|
2384
|
-
* The hovered state of the radio.
|
|
2385
|
-
*/
|
|
2386
|
-
"hovered": boolean;
|
|
2387
|
-
/**
|
|
2388
|
-
* The scale (size) of the radio.
|
|
2389
|
-
*/
|
|
2390
|
-
"scale": Scale;
|
|
2391
|
-
}
|
|
2392
2366
|
interface CalciteRadioButton {
|
|
2393
2367
|
/**
|
|
2394
2368
|
* The checked state of the radio button.
|
|
@@ -3151,14 +3125,6 @@ export namespace Components {
|
|
|
3151
3125
|
"layout"?: TileSelectGroupLayout;
|
|
3152
3126
|
}
|
|
3153
3127
|
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
3128
|
/**
|
|
3163
3129
|
* aria-label for the hour input
|
|
3164
3130
|
* @default "Hour"
|
|
@@ -3220,25 +3186,25 @@ export namespace Components {
|
|
|
3220
3186
|
*/
|
|
3221
3187
|
"intlSecondUp": string;
|
|
3222
3188
|
/**
|
|
3223
|
-
*
|
|
3189
|
+
* BCP 47 language tag for desired language and country format
|
|
3224
3190
|
*/
|
|
3225
|
-
"
|
|
3191
|
+
"locale": string;
|
|
3226
3192
|
/**
|
|
3227
3193
|
* The scale (size) of the time picker
|
|
3228
3194
|
*/
|
|
3229
3195
|
"scale": Scale;
|
|
3230
|
-
/**
|
|
3231
|
-
* The second value
|
|
3232
|
-
*/
|
|
3233
|
-
"second"?: string;
|
|
3234
3196
|
/**
|
|
3235
3197
|
* Sets focus on the component.
|
|
3236
3198
|
*/
|
|
3237
|
-
"setFocus": (target:
|
|
3199
|
+
"setFocus": (target: TimePart) => Promise<void>;
|
|
3238
3200
|
/**
|
|
3239
3201
|
* number that specifies the granularity that the value must adhere to
|
|
3240
3202
|
*/
|
|
3241
3203
|
"step": number;
|
|
3204
|
+
/**
|
|
3205
|
+
* The selected time in UTC
|
|
3206
|
+
*/
|
|
3207
|
+
"value": string;
|
|
3242
3208
|
}
|
|
3243
3209
|
interface CalciteTip {
|
|
3244
3210
|
/**
|
|
@@ -3832,12 +3798,6 @@ declare global {
|
|
|
3832
3798
|
prototype: HTMLCalciteProgressElement;
|
|
3833
3799
|
new (): HTMLCalciteProgressElement;
|
|
3834
3800
|
};
|
|
3835
|
-
interface HTMLCalciteRadioElement extends Components.CalciteRadio, HTMLStencilElement {
|
|
3836
|
-
}
|
|
3837
|
-
var HTMLCalciteRadioElement: {
|
|
3838
|
-
prototype: HTMLCalciteRadioElement;
|
|
3839
|
-
new (): HTMLCalciteRadioElement;
|
|
3840
|
-
};
|
|
3841
3801
|
interface HTMLCalciteRadioButtonElement extends Components.CalciteRadioButton, HTMLStencilElement {
|
|
3842
3802
|
}
|
|
3843
3803
|
var HTMLCalciteRadioButtonElement: {
|
|
@@ -4094,7 +4054,6 @@ declare global {
|
|
|
4094
4054
|
"calcite-popover": HTMLCalcitePopoverElement;
|
|
4095
4055
|
"calcite-popover-manager": HTMLCalcitePopoverManagerElement;
|
|
4096
4056
|
"calcite-progress": HTMLCalciteProgressElement;
|
|
4097
|
-
"calcite-radio": HTMLCalciteRadioElement;
|
|
4098
4057
|
"calcite-radio-button": HTMLCalciteRadioButtonElement;
|
|
4099
4058
|
"calcite-radio-button-group": HTMLCalciteRadioButtonGroupElement;
|
|
4100
4059
|
"calcite-radio-group": HTMLCalciteRadioGroupElement;
|
|
@@ -5808,10 +5767,6 @@ declare namespace LocalJSX {
|
|
|
5808
5767
|
* The disabled state of the time input
|
|
5809
5768
|
*/
|
|
5810
5769
|
"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
5770
|
/**
|
|
5816
5771
|
* aria-label for the hour input
|
|
5817
5772
|
*/
|
|
@@ -6462,24 +6417,6 @@ declare namespace LocalJSX {
|
|
|
6462
6417
|
*/
|
|
6463
6418
|
"value"?: number;
|
|
6464
6419
|
}
|
|
6465
|
-
interface CalciteRadio {
|
|
6466
|
-
/**
|
|
6467
|
-
* The checked state of the radio.
|
|
6468
|
-
*/
|
|
6469
|
-
"checked"?: boolean;
|
|
6470
|
-
/**
|
|
6471
|
-
* The disabled state of the radio.
|
|
6472
|
-
*/
|
|
6473
|
-
"disabled"?: boolean;
|
|
6474
|
-
/**
|
|
6475
|
-
* The radio's hidden status.
|
|
6476
|
-
*/
|
|
6477
|
-
"hidden"?: boolean;
|
|
6478
|
-
/**
|
|
6479
|
-
* The scale (size) of the radio.
|
|
6480
|
-
*/
|
|
6481
|
-
"scale"?: Scale;
|
|
6482
|
-
}
|
|
6483
6420
|
interface CalciteRadioButton {
|
|
6484
6421
|
/**
|
|
6485
6422
|
* The checked state of the radio button.
|
|
@@ -7201,14 +7138,6 @@ declare namespace LocalJSX {
|
|
|
7201
7138
|
"layout"?: TileSelectGroupLayout;
|
|
7202
7139
|
}
|
|
7203
7140
|
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
7141
|
/**
|
|
7213
7142
|
* aria-label for the hour input
|
|
7214
7143
|
* @default "Hour"
|
|
@@ -7269,22 +7198,18 @@ declare namespace LocalJSX {
|
|
|
7269
7198
|
* @default "Increase second"
|
|
7270
7199
|
*/
|
|
7271
7200
|
"intlSecondUp"?: string;
|
|
7272
|
-
/**
|
|
7273
|
-
* The minute value
|
|
7274
|
-
*/
|
|
7275
|
-
"minute"?: string;
|
|
7276
7201
|
/**
|
|
7277
7202
|
* The scale (size) of the time picker
|
|
7278
7203
|
*/
|
|
7279
7204
|
"scale"?: Scale;
|
|
7280
|
-
/**
|
|
7281
|
-
* The second value
|
|
7282
|
-
*/
|
|
7283
|
-
"second"?: string;
|
|
7284
7205
|
/**
|
|
7285
7206
|
* number that specifies the granularity that the value must adhere to
|
|
7286
7207
|
*/
|
|
7287
7208
|
"step"?: number;
|
|
7209
|
+
/**
|
|
7210
|
+
* The selected time in UTC
|
|
7211
|
+
*/
|
|
7212
|
+
"value"?: string;
|
|
7288
7213
|
}
|
|
7289
7214
|
interface CalciteTip {
|
|
7290
7215
|
/**
|
|
@@ -7574,7 +7499,6 @@ declare namespace LocalJSX {
|
|
|
7574
7499
|
"calcite-popover": CalcitePopover;
|
|
7575
7500
|
"calcite-popover-manager": CalcitePopoverManager;
|
|
7576
7501
|
"calcite-progress": CalciteProgress;
|
|
7577
|
-
"calcite-radio": CalciteRadio;
|
|
7578
7502
|
"calcite-radio-button": CalciteRadioButton;
|
|
7579
7503
|
"calcite-radio-button-group": CalciteRadioButtonGroup;
|
|
7580
7504
|
"calcite-radio-group": CalciteRadioGroup;
|
|
@@ -7671,7 +7595,6 @@ declare module "@stencil/core" {
|
|
|
7671
7595
|
"calcite-popover": LocalJSX.CalcitePopover & JSXBase.HTMLAttributes<HTMLCalcitePopoverElement>;
|
|
7672
7596
|
"calcite-popover-manager": LocalJSX.CalcitePopoverManager & JSXBase.HTMLAttributes<HTMLCalcitePopoverManagerElement>;
|
|
7673
7597
|
"calcite-progress": LocalJSX.CalciteProgress & JSXBase.HTMLAttributes<HTMLCalciteProgressElement>;
|
|
7674
|
-
"calcite-radio": LocalJSX.CalciteRadio & JSXBase.HTMLAttributes<HTMLCalciteRadioElement>;
|
|
7675
7598
|
"calcite-radio-button": LocalJSX.CalciteRadioButton & JSXBase.HTMLAttributes<HTMLCalciteRadioButtonElement>;
|
|
7676
7599
|
"calcite-radio-button-group": LocalJSX.CalciteRadioButtonGroup & JSXBase.HTMLAttributes<HTMLCalciteRadioButtonGroupElement>;
|
|
7677
7600
|
"calcite-radio-group": LocalJSX.CalciteRadioGroup & JSXBase.HTMLAttributes<HTMLCalciteRadioGroupElement>;
|
package/dist/types/preact.d.ts
CHANGED
|
@@ -238,8 +238,6 @@ declare module "preact/src/jsx" {
|
|
|
238
238
|
|
|
239
239
|
"calcite-progress": JSX.CalciteProgress & JSXInternal.HTMLAttributes<HTMLCalciteProgressElement>
|
|
240
240
|
|
|
241
|
-
"calcite-radio": JSX.CalciteRadio & JSXInternal.HTMLAttributes<HTMLCalciteRadioElement>
|
|
242
|
-
|
|
243
241
|
"calcite-radio-button": Omit<JSX.CalciteRadioButton, "onCalciteInternalRadioButtonBlur" | "onCalciteRadioButtonChange" | "onCalciteInternalRadioButtonCheckedChange" | "onCalciteInternalRadioButtonFocus"> & JSXInternal.HTMLAttributes<HTMLCalciteRadioButtonElement> & {
|
|
244
242
|
"oncalciteInternalRadioButtonBlur"?: (event: CustomEvent<any>) => void;
|
|
245
243
|
"oncalciteRadioButtonChange"?: (event: CustomEvent<any>) => void;
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
export declare type
|
|
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
|
|
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
|
|
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;
|