@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2021-12-
|
|
2
|
+
"timestamp": "2021-12-09T20:29:09",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "2.11.0",
|
|
@@ -9634,28 +9634,6 @@
|
|
|
9634
9634
|
"optional": false,
|
|
9635
9635
|
"required": false
|
|
9636
9636
|
},
|
|
9637
|
-
{
|
|
9638
|
-
"name": "hourDisplayFormat",
|
|
9639
|
-
"type": "\"12\" | \"24\"",
|
|
9640
|
-
"mutable": false,
|
|
9641
|
-
"attr": "hour-display-format",
|
|
9642
|
-
"reflectToAttr": false,
|
|
9643
|
-
"docs": "Format of the hour value (12-hour or 24-hour) (this will be replaced by locale eventually)",
|
|
9644
|
-
"docsTags": [],
|
|
9645
|
-
"default": "\"12\"",
|
|
9646
|
-
"values": [
|
|
9647
|
-
{
|
|
9648
|
-
"value": "12",
|
|
9649
|
-
"type": "string"
|
|
9650
|
-
},
|
|
9651
|
-
{
|
|
9652
|
-
"value": "24",
|
|
9653
|
-
"type": "string"
|
|
9654
|
-
}
|
|
9655
|
-
],
|
|
9656
|
-
"optional": false,
|
|
9657
|
-
"required": false
|
|
9658
|
-
},
|
|
9659
9637
|
{
|
|
9660
9638
|
"name": "intlHour",
|
|
9661
9639
|
"type": "string",
|
|
@@ -9951,17 +9929,17 @@
|
|
|
9951
9929
|
],
|
|
9952
9930
|
"listeners": [
|
|
9953
9931
|
{
|
|
9954
|
-
"event": "
|
|
9932
|
+
"event": "click",
|
|
9955
9933
|
"capture": false,
|
|
9956
9934
|
"passive": false
|
|
9957
9935
|
},
|
|
9958
9936
|
{
|
|
9959
|
-
"event": "
|
|
9937
|
+
"event": "keyup",
|
|
9960
9938
|
"capture": false,
|
|
9961
9939
|
"passive": false
|
|
9962
9940
|
},
|
|
9963
9941
|
{
|
|
9964
|
-
"event": "
|
|
9942
|
+
"event": "calciteTimePickerBlur",
|
|
9965
9943
|
"capture": false,
|
|
9966
9944
|
"passive": false
|
|
9967
9945
|
},
|
|
@@ -13616,109 +13594,6 @@
|
|
|
13616
13594
|
]
|
|
13617
13595
|
}
|
|
13618
13596
|
},
|
|
13619
|
-
{
|
|
13620
|
-
"filePath": "./src/components/calcite-radio/calcite-radio.tsx",
|
|
13621
|
-
"encapsulation": "shadow",
|
|
13622
|
-
"tag": "calcite-radio",
|
|
13623
|
-
"readme": "# calcite-radio\n\nRenders small, medium and large radio circles. This is an internal component used by `calcite-radio-button`.\n",
|
|
13624
|
-
"docs": "Renders small, medium and large radio circles. This is an internal component used by `calcite-radio-button`.",
|
|
13625
|
-
"docsTags": [],
|
|
13626
|
-
"usage": {},
|
|
13627
|
-
"props": [
|
|
13628
|
-
{
|
|
13629
|
-
"name": "checked",
|
|
13630
|
-
"type": "boolean",
|
|
13631
|
-
"mutable": false,
|
|
13632
|
-
"attr": "checked",
|
|
13633
|
-
"reflectToAttr": true,
|
|
13634
|
-
"docs": "The checked state of the radio.",
|
|
13635
|
-
"docsTags": [],
|
|
13636
|
-
"default": "false",
|
|
13637
|
-
"values": [
|
|
13638
|
-
{
|
|
13639
|
-
"type": "boolean"
|
|
13640
|
-
}
|
|
13641
|
-
],
|
|
13642
|
-
"optional": false,
|
|
13643
|
-
"required": false
|
|
13644
|
-
},
|
|
13645
|
-
{
|
|
13646
|
-
"name": "disabled",
|
|
13647
|
-
"type": "boolean",
|
|
13648
|
-
"mutable": false,
|
|
13649
|
-
"attr": "disabled",
|
|
13650
|
-
"reflectToAttr": true,
|
|
13651
|
-
"docs": "The disabled state of the radio.",
|
|
13652
|
-
"docsTags": [],
|
|
13653
|
-
"default": "false",
|
|
13654
|
-
"values": [
|
|
13655
|
-
{
|
|
13656
|
-
"type": "boolean"
|
|
13657
|
-
}
|
|
13658
|
-
],
|
|
13659
|
-
"optional": false,
|
|
13660
|
-
"required": false
|
|
13661
|
-
},
|
|
13662
|
-
{
|
|
13663
|
-
"name": "hidden",
|
|
13664
|
-
"type": "boolean",
|
|
13665
|
-
"mutable": false,
|
|
13666
|
-
"attr": "hidden",
|
|
13667
|
-
"reflectToAttr": true,
|
|
13668
|
-
"docs": "The radio's hidden status.",
|
|
13669
|
-
"docsTags": [],
|
|
13670
|
-
"default": "false",
|
|
13671
|
-
"values": [
|
|
13672
|
-
{
|
|
13673
|
-
"type": "boolean"
|
|
13674
|
-
}
|
|
13675
|
-
],
|
|
13676
|
-
"optional": false,
|
|
13677
|
-
"required": false
|
|
13678
|
-
},
|
|
13679
|
-
{
|
|
13680
|
-
"name": "scale",
|
|
13681
|
-
"type": "\"l\" | \"m\" | \"s\"",
|
|
13682
|
-
"mutable": false,
|
|
13683
|
-
"attr": "scale",
|
|
13684
|
-
"reflectToAttr": true,
|
|
13685
|
-
"docs": "The scale (size) of the radio.",
|
|
13686
|
-
"docsTags": [],
|
|
13687
|
-
"default": "\"m\"",
|
|
13688
|
-
"values": [
|
|
13689
|
-
{
|
|
13690
|
-
"value": "l",
|
|
13691
|
-
"type": "string"
|
|
13692
|
-
},
|
|
13693
|
-
{
|
|
13694
|
-
"value": "m",
|
|
13695
|
-
"type": "string"
|
|
13696
|
-
},
|
|
13697
|
-
{
|
|
13698
|
-
"value": "s",
|
|
13699
|
-
"type": "string"
|
|
13700
|
-
}
|
|
13701
|
-
],
|
|
13702
|
-
"optional": false,
|
|
13703
|
-
"required": false
|
|
13704
|
-
}
|
|
13705
|
-
],
|
|
13706
|
-
"methods": [],
|
|
13707
|
-
"events": [],
|
|
13708
|
-
"listeners": [],
|
|
13709
|
-
"styles": [],
|
|
13710
|
-
"slots": [],
|
|
13711
|
-
"parts": [],
|
|
13712
|
-
"dependents": [
|
|
13713
|
-
"calcite-radio-button"
|
|
13714
|
-
],
|
|
13715
|
-
"dependencies": [],
|
|
13716
|
-
"dependencyGraph": {
|
|
13717
|
-
"calcite-radio-button": [
|
|
13718
|
-
"calcite-radio"
|
|
13719
|
-
]
|
|
13720
|
-
}
|
|
13721
|
-
},
|
|
13722
13597
|
{
|
|
13723
13598
|
"filePath": "./src/components/calcite-radio-button/calcite-radio-button.tsx",
|
|
13724
13599
|
"encapsulation": "shadow",
|
|
@@ -13913,14 +13788,8 @@
|
|
|
13913
13788
|
"slots": [],
|
|
13914
13789
|
"parts": [],
|
|
13915
13790
|
"dependents": [],
|
|
13916
|
-
"dependencies": [
|
|
13917
|
-
|
|
13918
|
-
],
|
|
13919
|
-
"dependencyGraph": {
|
|
13920
|
-
"calcite-radio-button": [
|
|
13921
|
-
"calcite-radio"
|
|
13922
|
-
]
|
|
13923
|
-
}
|
|
13791
|
+
"dependencies": [],
|
|
13792
|
+
"dependencyGraph": {}
|
|
13924
13793
|
},
|
|
13925
13794
|
{
|
|
13926
13795
|
"filePath": "./src/components/calcite-radio-button-group/calcite-radio-button-group.tsx",
|
|
@@ -18032,45 +17901,6 @@
|
|
|
18032
17901
|
"docsTags": [],
|
|
18033
17902
|
"usage": {},
|
|
18034
17903
|
"props": [
|
|
18035
|
-
{
|
|
18036
|
-
"name": "hour",
|
|
18037
|
-
"type": "string",
|
|
18038
|
-
"mutable": true,
|
|
18039
|
-
"attr": "hour",
|
|
18040
|
-
"reflectToAttr": false,
|
|
18041
|
-
"docs": "The hour value (24-hour format)",
|
|
18042
|
-
"docsTags": [],
|
|
18043
|
-
"default": "null",
|
|
18044
|
-
"values": [
|
|
18045
|
-
{
|
|
18046
|
-
"type": "string"
|
|
18047
|
-
}
|
|
18048
|
-
],
|
|
18049
|
-
"optional": true,
|
|
18050
|
-
"required": false
|
|
18051
|
-
},
|
|
18052
|
-
{
|
|
18053
|
-
"name": "hourDisplayFormat",
|
|
18054
|
-
"type": "\"12\" | \"24\"",
|
|
18055
|
-
"mutable": false,
|
|
18056
|
-
"attr": "hour-display-format",
|
|
18057
|
-
"reflectToAttr": true,
|
|
18058
|
-
"docs": "Format of the hour value (12-hour or 24-hour) (this will be replaced by locale eventually)",
|
|
18059
|
-
"docsTags": [],
|
|
18060
|
-
"default": "\"12\"",
|
|
18061
|
-
"values": [
|
|
18062
|
-
{
|
|
18063
|
-
"value": "12",
|
|
18064
|
-
"type": "string"
|
|
18065
|
-
},
|
|
18066
|
-
{
|
|
18067
|
-
"value": "24",
|
|
18068
|
-
"type": "string"
|
|
18069
|
-
}
|
|
18070
|
-
],
|
|
18071
|
-
"optional": false,
|
|
18072
|
-
"required": false
|
|
18073
|
-
},
|
|
18074
17904
|
{
|
|
18075
17905
|
"name": "intlHour",
|
|
18076
17906
|
"type": "string",
|
|
@@ -18335,29 +18165,12 @@
|
|
|
18335
18165
|
"optional": false,
|
|
18336
18166
|
"required": false
|
|
18337
18167
|
},
|
|
18338
|
-
{
|
|
18339
|
-
"name": "minute",
|
|
18340
|
-
"type": "string",
|
|
18341
|
-
"mutable": true,
|
|
18342
|
-
"attr": "minute",
|
|
18343
|
-
"reflectToAttr": false,
|
|
18344
|
-
"docs": "The minute value",
|
|
18345
|
-
"docsTags": [],
|
|
18346
|
-
"default": "null",
|
|
18347
|
-
"values": [
|
|
18348
|
-
{
|
|
18349
|
-
"type": "string"
|
|
18350
|
-
}
|
|
18351
|
-
],
|
|
18352
|
-
"optional": true,
|
|
18353
|
-
"required": false
|
|
18354
|
-
},
|
|
18355
18168
|
{
|
|
18356
18169
|
"name": "scale",
|
|
18357
18170
|
"type": "\"l\" | \"m\" | \"s\"",
|
|
18358
18171
|
"mutable": false,
|
|
18359
18172
|
"attr": "scale",
|
|
18360
|
-
"reflectToAttr":
|
|
18173
|
+
"reflectToAttr": false,
|
|
18361
18174
|
"docs": "The scale (size) of the time picker",
|
|
18362
18175
|
"docsTags": [],
|
|
18363
18176
|
"default": "\"m\"",
|
|
@@ -18379,34 +18192,34 @@
|
|
|
18379
18192
|
"required": false
|
|
18380
18193
|
},
|
|
18381
18194
|
{
|
|
18382
|
-
"name": "
|
|
18383
|
-
"type": "
|
|
18384
|
-
"mutable":
|
|
18385
|
-
"attr": "
|
|
18195
|
+
"name": "step",
|
|
18196
|
+
"type": "number",
|
|
18197
|
+
"mutable": false,
|
|
18198
|
+
"attr": "step",
|
|
18386
18199
|
"reflectToAttr": false,
|
|
18387
|
-
"docs": "
|
|
18200
|
+
"docs": "number that specifies the granularity that the value must adhere to",
|
|
18388
18201
|
"docsTags": [],
|
|
18389
|
-
"default": "
|
|
18202
|
+
"default": "60",
|
|
18390
18203
|
"values": [
|
|
18391
18204
|
{
|
|
18392
|
-
"type": "
|
|
18205
|
+
"type": "number"
|
|
18393
18206
|
}
|
|
18394
18207
|
],
|
|
18395
|
-
"optional":
|
|
18208
|
+
"optional": false,
|
|
18396
18209
|
"required": false
|
|
18397
18210
|
},
|
|
18398
18211
|
{
|
|
18399
|
-
"name": "
|
|
18400
|
-
"type": "
|
|
18401
|
-
"mutable":
|
|
18402
|
-
"attr": "
|
|
18403
|
-
"reflectToAttr":
|
|
18404
|
-
"docs": "
|
|
18212
|
+
"name": "value",
|
|
18213
|
+
"type": "string",
|
|
18214
|
+
"mutable": true,
|
|
18215
|
+
"attr": "value",
|
|
18216
|
+
"reflectToAttr": false,
|
|
18217
|
+
"docs": "The selected time in UTC",
|
|
18405
18218
|
"docsTags": [],
|
|
18406
|
-
"default": "
|
|
18219
|
+
"default": "null",
|
|
18407
18220
|
"values": [
|
|
18408
18221
|
{
|
|
18409
|
-
"type": "
|
|
18222
|
+
"type": "string"
|
|
18410
18223
|
}
|
|
18411
18224
|
],
|
|
18412
18225
|
"optional": false,
|
|
@@ -18420,7 +18233,7 @@
|
|
|
18420
18233
|
"type": "Promise<void>",
|
|
18421
18234
|
"docs": ""
|
|
18422
18235
|
},
|
|
18423
|
-
"signature": "setFocus(target:
|
|
18236
|
+
"signature": "setFocus(target: TimePart) => Promise<void>",
|
|
18424
18237
|
"parameters": [],
|
|
18425
18238
|
"docs": "Sets focus on the component.",
|
|
18426
18239
|
"docsTags": []
|
|
@@ -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
|
|
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;
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { VNode, EventEmitter } from "../../stencil-public-runtime";
|
|
2
2
|
import { Scale } from "../interfaces";
|
|
3
|
-
import {
|
|
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
|
-
/**
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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
|
-
|
|
67
|
-
|
|
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
|
-
|
|
74
|
-
|
|
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
|
-
|
|
83
|
+
minute: string;
|
|
84
|
+
second: string;
|
|
85
|
+
showSecond: boolean;
|
|
77
86
|
/**
|
|
78
87
|
* @internal
|
|
79
88
|
*/
|
|
80
|
-
calciteTimePickerBlur: EventEmitter<
|
|
89
|
+
calciteTimePickerBlur: EventEmitter<void>;
|
|
81
90
|
/**
|
|
82
91
|
* @internal
|
|
83
92
|
*/
|
|
84
|
-
calciteTimePickerChange: EventEmitter<
|
|
93
|
+
calciteTimePickerChange: EventEmitter<string>;
|
|
85
94
|
/**
|
|
86
95
|
* @internal
|
|
87
96
|
*/
|
|
88
|
-
calciteTimePickerFocus: EventEmitter<
|
|
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:
|
|
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
|
|
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;
|