@aurodesignsystem-dev/auro-formkit 0.0.0-pr1505.0 → 0.0.0-pr1506.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/components/checkbox/demo/customize.min.js +1 -1
- package/components/checkbox/demo/getting-started.min.js +1 -1
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/demo/customize.min.js +138 -266
- package/components/combobox/demo/getting-started.min.js +138 -266
- package/components/combobox/demo/index.min.js +138 -266
- package/components/combobox/dist/auro-combobox.d.ts +9 -0
- package/components/combobox/dist/index.js +138 -266
- package/components/combobox/dist/registered.js +138 -266
- package/components/counter/demo/customize.min.js +2 -2
- package/components/counter/demo/index.min.js +2 -2
- package/components/counter/dist/index.js +2 -2
- package/components/counter/dist/registered.js +2 -2
- package/components/datepicker/demo/api.md +0 -2
- package/components/datepicker/demo/customize.md +33 -195
- package/components/datepicker/demo/customize.min.js +41 -164
- package/components/datepicker/demo/index.min.js +40 -156
- package/components/datepicker/dist/index.js +40 -156
- package/components/datepicker/dist/registered.js +40 -156
- package/components/datepicker/dist/src/auro-datepicker.d.ts +0 -2
- package/components/dropdown/demo/customize.min.js +1 -1
- package/components/dropdown/demo/getting-started.min.js +1 -1
- package/components/dropdown/demo/index.min.js +1 -1
- package/components/dropdown/dist/index.js +1 -1
- package/components/dropdown/dist/registered.js +1 -1
- package/components/form/demo/customize.min.js +351 -599
- package/components/form/demo/getting-started.min.js +351 -599
- package/components/form/demo/index.min.js +351 -599
- package/components/form/demo/registerDemoDeps.min.js +351 -599
- package/components/input/demo/customize.md +55 -56
- package/components/input/demo/customize.min.js +36 -147
- package/components/input/demo/getting-started.min.js +36 -147
- package/components/input/demo/index.md +2 -2
- package/components/input/demo/index.min.js +36 -147
- package/components/input/dist/base-input.d.ts +0 -48
- package/components/input/dist/index.js +36 -147
- package/components/input/dist/registered.js +36 -147
- package/components/radio/demo/customize.min.js +1 -1
- package/components/radio/demo/getting-started.min.js +1 -1
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/demo/api.md +1 -0
- package/components/select/demo/customize.md +71 -0
- package/components/select/demo/customize.min.js +133 -26
- package/components/select/demo/getting-started.min.js +133 -26
- package/components/select/demo/index.min.js +133 -26
- package/components/select/demo/keyboard-behavior.md +18 -0
- package/components/select/dist/auro-select.d.ts +38 -2
- package/components/select/dist/index.js +133 -26
- package/components/select/dist/registered.js +133 -26
- package/components/select/dist/selectUtils.d.ts +12 -0
- package/custom-elements.json +114 -274
- package/package.json +1 -1
package/custom-elements.json
CHANGED
|
@@ -1256,6 +1256,26 @@
|
|
|
1256
1256
|
"description": "Update displayValue or input.value, it's called when making a selection.",
|
|
1257
1257
|
"privacy": "private"
|
|
1258
1258
|
},
|
|
1259
|
+
{
|
|
1260
|
+
"kind": "method",
|
|
1261
|
+
"name": "syncInputValuesAcrossTriggerAndBib",
|
|
1262
|
+
"parameters": [
|
|
1263
|
+
{
|
|
1264
|
+
"name": "nextValue",
|
|
1265
|
+
"description": "The value to write to both inputs.",
|
|
1266
|
+
"type": {
|
|
1267
|
+
"text": "string"
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
],
|
|
1271
|
+
"description": "Writes nextValue to the trigger input and the bib input when their current\nvalue differs, then re-asserts imask after Lit's update flushes.",
|
|
1272
|
+
"return": {
|
|
1273
|
+
"type": {
|
|
1274
|
+
"text": "Promise<void> | null"
|
|
1275
|
+
}
|
|
1276
|
+
},
|
|
1277
|
+
"privacy": "private"
|
|
1278
|
+
},
|
|
1259
1279
|
{
|
|
1260
1280
|
"kind": "method",
|
|
1261
1281
|
"name": "handleMenuOptions",
|
|
@@ -6305,14 +6325,6 @@
|
|
|
6305
6325
|
"description": "Defines the label content for the first input.",
|
|
6306
6326
|
"name": "fromLabel"
|
|
6307
6327
|
},
|
|
6308
|
-
{
|
|
6309
|
-
"description": "Overrides the \"(optional)\" text rendered next to the first input's label when the datepicker is not `required`.",
|
|
6310
|
-
"name": "optionalFromLabel"
|
|
6311
|
-
},
|
|
6312
|
-
{
|
|
6313
|
-
"description": "Overrides the \"(optional)\" text rendered next to the second input's label when `range` is set and the datepicker is not `required`.",
|
|
6314
|
-
"name": "optionalToLabel"
|
|
6315
|
-
},
|
|
6316
6328
|
{
|
|
6317
6329
|
"description": "Defines the content to display in the auro-calendar-cell for the specified date. The content text is colored using the success state token when the `highlight` attribute is applied to the slot.",
|
|
6318
6330
|
"name": "date_YYYY_MM_DD"
|
|
@@ -11704,61 +11716,6 @@
|
|
|
11704
11716
|
"module": "components/input/src/base-input.js"
|
|
11705
11717
|
}
|
|
11706
11718
|
},
|
|
11707
|
-
{
|
|
11708
|
-
"kind": "method",
|
|
11709
|
-
"name": "_computeDateObjectFallback",
|
|
11710
|
-
"parameters": [
|
|
11711
|
-
{
|
|
11712
|
-
"name": "dateStr",
|
|
11713
|
-
"description": "ISO date string from `value`/`min`/`max`.",
|
|
11714
|
-
"type": {
|
|
11715
|
-
"text": "string|undefined"
|
|
11716
|
-
}
|
|
11717
|
-
}
|
|
11718
|
-
],
|
|
11719
|
-
"description": "Parses a date string into a Date object when the corresponding `_*Object`\nfield hasn't been synced yet by `updated()`. Returns undefined when the\ninput type/format isn't a full date or the string is not a valid date.\n\nWhy this exists: a parent (datepicker) can call `inputN.validate()` from\ninside its own `updated()` before this input's `updated()` has run\n`syncDateValues()` — so `_valueObject`/`_maxObject` are still `undefined`\nand range checks would otherwise silently no-op (flipping the result to\n`valid` or `patternMismatch`).",
|
|
11720
|
-
"privacy": "private",
|
|
11721
|
-
"return": {
|
|
11722
|
-
"type": {
|
|
11723
|
-
"text": "Date|undefined"
|
|
11724
|
-
}
|
|
11725
|
-
},
|
|
11726
|
-
"inheritedFrom": {
|
|
11727
|
-
"name": "BaseInput",
|
|
11728
|
-
"module": "components/input/src/base-input.js"
|
|
11729
|
-
}
|
|
11730
|
-
},
|
|
11731
|
-
{
|
|
11732
|
-
"kind": "method",
|
|
11733
|
-
"name": "setDateObjectProperty",
|
|
11734
|
-
"parameters": [
|
|
11735
|
-
{
|
|
11736
|
-
"name": "propertyName",
|
|
11737
|
-
"description": "Public object property name.",
|
|
11738
|
-
"type": {
|
|
11739
|
-
"text": "'valueObject'|'minObject'|'maxObject'"
|
|
11740
|
-
}
|
|
11741
|
-
},
|
|
11742
|
-
{
|
|
11743
|
-
"name": "propertyValue",
|
|
11744
|
-
"description": "Value to assign.",
|
|
11745
|
-
"type": {
|
|
11746
|
-
"text": "Date|undefined"
|
|
11747
|
-
}
|
|
11748
|
-
}
|
|
11749
|
-
],
|
|
11750
|
-
"description": "Internal setter for readonly date object properties.",
|
|
11751
|
-
"privacy": "private",
|
|
11752
|
-
"return": {
|
|
11753
|
-
"type": {
|
|
11754
|
-
"text": "void"
|
|
11755
|
-
}
|
|
11756
|
-
},
|
|
11757
|
-
"inheritedFrom": {
|
|
11758
|
-
"name": "BaseInput",
|
|
11759
|
-
"module": "components/input/src/base-input.js"
|
|
11760
|
-
}
|
|
11761
|
-
},
|
|
11762
11719
|
{
|
|
11763
11720
|
"kind": "method",
|
|
11764
11721
|
"name": "patchInputEvent",
|
|
@@ -11812,70 +11769,6 @@
|
|
|
11812
11769
|
"module": "components/input/src/base-input.js"
|
|
11813
11770
|
}
|
|
11814
11771
|
},
|
|
11815
|
-
{
|
|
11816
|
-
"kind": "method",
|
|
11817
|
-
"name": "syncDateValues",
|
|
11818
|
-
"parameters": [
|
|
11819
|
-
{
|
|
11820
|
-
"name": "changedProperties",
|
|
11821
|
-
"default": "undefined",
|
|
11822
|
-
"description": "Optional map of changed properties used to limit which values are synchronized.",
|
|
11823
|
-
"optional": true,
|
|
11824
|
-
"type": {
|
|
11825
|
-
"text": "Map<string, unknown>|undefined"
|
|
11826
|
-
}
|
|
11827
|
-
}
|
|
11828
|
-
],
|
|
11829
|
-
"description": "Synchronizes the ISO string values and Date object representations for date-related properties.\nThis keeps the model and display values aligned when either side changes.\n\nWhen a full date format is in use, this method updates `value`, `min`, and `max` from their corresponding\nDate objects or vice versa, based on which properties have changed. It only runs when the current configuration\nrepresents a full year/month/day date format.",
|
|
11830
|
-
"return": {
|
|
11831
|
-
"type": {
|
|
11832
|
-
"text": "void"
|
|
11833
|
-
}
|
|
11834
|
-
},
|
|
11835
|
-
"privacy": "private",
|
|
11836
|
-
"inheritedFrom": {
|
|
11837
|
-
"name": "BaseInput",
|
|
11838
|
-
"module": "components/input/src/base-input.js"
|
|
11839
|
-
}
|
|
11840
|
-
},
|
|
11841
|
-
{
|
|
11842
|
-
"kind": "method",
|
|
11843
|
-
"name": "syncSingleDateValue",
|
|
11844
|
-
"parameters": [
|
|
11845
|
-
{
|
|
11846
|
-
"name": "changedProperties",
|
|
11847
|
-
"description": "Map of changed properties from Lit.",
|
|
11848
|
-
"type": {
|
|
11849
|
-
"text": "Map<string, unknown>|undefined"
|
|
11850
|
-
}
|
|
11851
|
-
},
|
|
11852
|
-
{
|
|
11853
|
-
"name": "objectProperty",
|
|
11854
|
-
"description": "Date object property name.",
|
|
11855
|
-
"type": {
|
|
11856
|
-
"text": "string"
|
|
11857
|
-
}
|
|
11858
|
-
},
|
|
11859
|
-
{
|
|
11860
|
-
"name": "valueProperty",
|
|
11861
|
-
"description": "ISO string property name.",
|
|
11862
|
-
"type": {
|
|
11863
|
-
"text": "string"
|
|
11864
|
-
}
|
|
11865
|
-
}
|
|
11866
|
-
],
|
|
11867
|
-
"description": "Synchronizes one date object/string property pair.",
|
|
11868
|
-
"privacy": "private",
|
|
11869
|
-
"return": {
|
|
11870
|
-
"type": {
|
|
11871
|
-
"text": "void"
|
|
11872
|
-
}
|
|
11873
|
-
},
|
|
11874
|
-
"inheritedFrom": {
|
|
11875
|
-
"name": "BaseInput",
|
|
11876
|
-
"module": "components/input/src/base-input.js"
|
|
11877
|
-
}
|
|
11878
|
-
},
|
|
11879
11772
|
{
|
|
11880
11773
|
"kind": "method",
|
|
11881
11774
|
"name": "configureAutoFormatting",
|
|
@@ -12251,15 +12144,6 @@
|
|
|
12251
12144
|
"module": "components/input/src/base-input.js"
|
|
12252
12145
|
}
|
|
12253
12146
|
},
|
|
12254
|
-
{
|
|
12255
|
-
"kind": "field",
|
|
12256
|
-
"name": "_maxObject",
|
|
12257
|
-
"default": "undefined",
|
|
12258
|
-
"inheritedFrom": {
|
|
12259
|
-
"name": "BaseInput",
|
|
12260
|
-
"module": "components/input/src/base-input.js"
|
|
12261
|
-
}
|
|
12262
|
-
},
|
|
12263
12147
|
{
|
|
12264
12148
|
"kind": "field",
|
|
12265
12149
|
"name": "maxLength",
|
|
@@ -12291,15 +12175,6 @@
|
|
|
12291
12175
|
"module": "components/input/src/base-input.js"
|
|
12292
12176
|
}
|
|
12293
12177
|
},
|
|
12294
|
-
{
|
|
12295
|
-
"kind": "field",
|
|
12296
|
-
"name": "_minObject",
|
|
12297
|
-
"default": "undefined",
|
|
12298
|
-
"inheritedFrom": {
|
|
12299
|
-
"name": "BaseInput",
|
|
12300
|
-
"module": "components/input/src/base-input.js"
|
|
12301
|
-
}
|
|
12302
|
-
},
|
|
12303
12178
|
{
|
|
12304
12179
|
"kind": "field",
|
|
12305
12180
|
"name": "minLength",
|
|
@@ -12408,15 +12283,6 @@
|
|
|
12408
12283
|
"module": "components/input/src/base-input.js"
|
|
12409
12284
|
}
|
|
12410
12285
|
},
|
|
12411
|
-
{
|
|
12412
|
-
"kind": "field",
|
|
12413
|
-
"name": "_valueObject",
|
|
12414
|
-
"default": "undefined",
|
|
12415
|
-
"inheritedFrom": {
|
|
12416
|
-
"name": "BaseInput",
|
|
12417
|
-
"module": "components/input/src/base-input.js"
|
|
12418
|
-
}
|
|
12419
|
-
},
|
|
12420
12286
|
{
|
|
12421
12287
|
"kind": "field",
|
|
12422
12288
|
"name": "a11yRole",
|
|
@@ -13815,53 +13681,6 @@
|
|
|
13815
13681
|
},
|
|
13816
13682
|
"readonly": true
|
|
13817
13683
|
},
|
|
13818
|
-
{
|
|
13819
|
-
"kind": "method",
|
|
13820
|
-
"name": "_computeDateObjectFallback",
|
|
13821
|
-
"parameters": [
|
|
13822
|
-
{
|
|
13823
|
-
"name": "dateStr",
|
|
13824
|
-
"description": "ISO date string from `value`/`min`/`max`.",
|
|
13825
|
-
"type": {
|
|
13826
|
-
"text": "string|undefined"
|
|
13827
|
-
}
|
|
13828
|
-
}
|
|
13829
|
-
],
|
|
13830
|
-
"description": "Parses a date string into a Date object when the corresponding `_*Object`\nfield hasn't been synced yet by `updated()`. Returns undefined when the\ninput type/format isn't a full date or the string is not a valid date.\n\nWhy this exists: a parent (datepicker) can call `inputN.validate()` from\ninside its own `updated()` before this input's `updated()` has run\n`syncDateValues()` — so `_valueObject`/`_maxObject` are still `undefined`\nand range checks would otherwise silently no-op (flipping the result to\n`valid` or `patternMismatch`).",
|
|
13831
|
-
"privacy": "private",
|
|
13832
|
-
"return": {
|
|
13833
|
-
"type": {
|
|
13834
|
-
"text": "Date|undefined"
|
|
13835
|
-
}
|
|
13836
|
-
}
|
|
13837
|
-
},
|
|
13838
|
-
{
|
|
13839
|
-
"kind": "method",
|
|
13840
|
-
"name": "setDateObjectProperty",
|
|
13841
|
-
"parameters": [
|
|
13842
|
-
{
|
|
13843
|
-
"name": "propertyName",
|
|
13844
|
-
"description": "Public object property name.",
|
|
13845
|
-
"type": {
|
|
13846
|
-
"text": "'valueObject'|'minObject'|'maxObject'"
|
|
13847
|
-
}
|
|
13848
|
-
},
|
|
13849
|
-
{
|
|
13850
|
-
"name": "propertyValue",
|
|
13851
|
-
"description": "Value to assign.",
|
|
13852
|
-
"type": {
|
|
13853
|
-
"text": "Date|undefined"
|
|
13854
|
-
}
|
|
13855
|
-
}
|
|
13856
|
-
],
|
|
13857
|
-
"description": "Internal setter for readonly date object properties.",
|
|
13858
|
-
"privacy": "private",
|
|
13859
|
-
"return": {
|
|
13860
|
-
"type": {
|
|
13861
|
-
"text": "void"
|
|
13862
|
-
}
|
|
13863
|
-
}
|
|
13864
|
-
},
|
|
13865
13684
|
{
|
|
13866
13685
|
"kind": "method",
|
|
13867
13686
|
"name": "patchInputEvent",
|
|
@@ -13903,62 +13722,6 @@
|
|
|
13903
13722
|
}
|
|
13904
13723
|
}
|
|
13905
13724
|
},
|
|
13906
|
-
{
|
|
13907
|
-
"kind": "method",
|
|
13908
|
-
"name": "syncDateValues",
|
|
13909
|
-
"parameters": [
|
|
13910
|
-
{
|
|
13911
|
-
"name": "changedProperties",
|
|
13912
|
-
"default": "undefined",
|
|
13913
|
-
"description": "Optional map of changed properties used to limit which values are synchronized.",
|
|
13914
|
-
"optional": true,
|
|
13915
|
-
"type": {
|
|
13916
|
-
"text": "Map<string, unknown>|undefined"
|
|
13917
|
-
}
|
|
13918
|
-
}
|
|
13919
|
-
],
|
|
13920
|
-
"description": "Synchronizes the ISO string values and Date object representations for date-related properties.\nThis keeps the model and display values aligned when either side changes.\n\nWhen a full date format is in use, this method updates `value`, `min`, and `max` from their corresponding\nDate objects or vice versa, based on which properties have changed. It only runs when the current configuration\nrepresents a full year/month/day date format.",
|
|
13921
|
-
"return": {
|
|
13922
|
-
"type": {
|
|
13923
|
-
"text": "void"
|
|
13924
|
-
}
|
|
13925
|
-
},
|
|
13926
|
-
"privacy": "private"
|
|
13927
|
-
},
|
|
13928
|
-
{
|
|
13929
|
-
"kind": "method",
|
|
13930
|
-
"name": "syncSingleDateValue",
|
|
13931
|
-
"parameters": [
|
|
13932
|
-
{
|
|
13933
|
-
"name": "changedProperties",
|
|
13934
|
-
"description": "Map of changed properties from Lit.",
|
|
13935
|
-
"type": {
|
|
13936
|
-
"text": "Map<string, unknown>|undefined"
|
|
13937
|
-
}
|
|
13938
|
-
},
|
|
13939
|
-
{
|
|
13940
|
-
"name": "objectProperty",
|
|
13941
|
-
"description": "Date object property name.",
|
|
13942
|
-
"type": {
|
|
13943
|
-
"text": "string"
|
|
13944
|
-
}
|
|
13945
|
-
},
|
|
13946
|
-
{
|
|
13947
|
-
"name": "valueProperty",
|
|
13948
|
-
"description": "ISO string property name.",
|
|
13949
|
-
"type": {
|
|
13950
|
-
"text": "string"
|
|
13951
|
-
}
|
|
13952
|
-
}
|
|
13953
|
-
],
|
|
13954
|
-
"description": "Synchronizes one date object/string property pair.",
|
|
13955
|
-
"privacy": "private",
|
|
13956
|
-
"return": {
|
|
13957
|
-
"type": {
|
|
13958
|
-
"text": "void"
|
|
13959
|
-
}
|
|
13960
|
-
}
|
|
13961
|
-
},
|
|
13962
13725
|
{
|
|
13963
13726
|
"kind": "method",
|
|
13964
13727
|
"name": "configureAutoFormatting",
|
|
@@ -14246,11 +14009,6 @@
|
|
|
14246
14009
|
"default": "undefined",
|
|
14247
14010
|
"attribute": "max"
|
|
14248
14011
|
},
|
|
14249
|
-
{
|
|
14250
|
-
"kind": "field",
|
|
14251
|
-
"name": "_maxObject",
|
|
14252
|
-
"default": "undefined"
|
|
14253
|
-
},
|
|
14254
14012
|
{
|
|
14255
14013
|
"kind": "field",
|
|
14256
14014
|
"name": "maxLength",
|
|
@@ -14274,11 +14032,6 @@
|
|
|
14274
14032
|
"default": "undefined",
|
|
14275
14033
|
"attribute": "min"
|
|
14276
14034
|
},
|
|
14277
|
-
{
|
|
14278
|
-
"kind": "field",
|
|
14279
|
-
"name": "_minObject",
|
|
14280
|
-
"default": "undefined"
|
|
14281
|
-
},
|
|
14282
14035
|
{
|
|
14283
14036
|
"kind": "field",
|
|
14284
14037
|
"name": "minLength",
|
|
@@ -14371,11 +14124,6 @@
|
|
|
14371
14124
|
"default": "undefined",
|
|
14372
14125
|
"attribute": "value"
|
|
14373
14126
|
},
|
|
14374
|
-
{
|
|
14375
|
-
"kind": "field",
|
|
14376
|
-
"name": "_valueObject",
|
|
14377
|
-
"default": "undefined"
|
|
14378
|
-
},
|
|
14379
14127
|
{
|
|
14380
14128
|
"kind": "field",
|
|
14381
14129
|
"name": "a11yRole",
|
|
@@ -18606,6 +18354,32 @@
|
|
|
18606
18354
|
],
|
|
18607
18355
|
"description": "Updates the active option in the menu."
|
|
18608
18356
|
},
|
|
18357
|
+
{
|
|
18358
|
+
"kind": "method",
|
|
18359
|
+
"name": "_getOptionDisplayText",
|
|
18360
|
+
"parameters": [
|
|
18361
|
+
{
|
|
18362
|
+
"name": "option",
|
|
18363
|
+
"description": "The menu option element.",
|
|
18364
|
+
"type": {
|
|
18365
|
+
"text": "HTMLElement"
|
|
18366
|
+
}
|
|
18367
|
+
}
|
|
18368
|
+
],
|
|
18369
|
+
"description": "Returns the lowercase, trimmed text content of a menu option.",
|
|
18370
|
+
"privacy": "private",
|
|
18371
|
+
"return": {
|
|
18372
|
+
"type": {
|
|
18373
|
+
"text": "string"
|
|
18374
|
+
}
|
|
18375
|
+
}
|
|
18376
|
+
},
|
|
18377
|
+
{
|
|
18378
|
+
"kind": "method",
|
|
18379
|
+
"name": "_clearTypeaheadBuffer",
|
|
18380
|
+
"description": "Empties the type-ahead buffer and cancels any pending reset timeout.\nCalled when focus leaves the component, when Escape closes the bib, and on disconnect\nso a stale buffer never bridges into a fresh interaction.",
|
|
18381
|
+
"privacy": "private"
|
|
18382
|
+
},
|
|
18609
18383
|
{
|
|
18610
18384
|
"kind": "method",
|
|
18611
18385
|
"name": "updateActiveOptionBasedOnKey",
|
|
@@ -18618,7 +18392,7 @@
|
|
|
18618
18392
|
}
|
|
18619
18393
|
}
|
|
18620
18394
|
],
|
|
18621
|
-
"description": "Updates the active option in the menu based on keyboard input.",
|
|
18395
|
+
"description": "Updates the active option in the menu based on keyboard input.\n\nImplements the WAI-ARIA APG Listbox type-ahead pattern: accumulates printable\nkeystrokes into a buffer that resets after `typeaheadTimeoutMs` of inactivity.\nA multi-character buffer matches the first option whose displayed text starts\nwith the buffer; repeating a single character cycles through options that start\nwith that character.",
|
|
18622
18396
|
"privacy": "private",
|
|
18623
18397
|
"return": {
|
|
18624
18398
|
"type": {
|
|
@@ -19014,6 +18788,24 @@
|
|
|
19014
18788
|
},
|
|
19015
18789
|
"default": "false"
|
|
19016
18790
|
},
|
|
18791
|
+
{
|
|
18792
|
+
"kind": "field",
|
|
18793
|
+
"name": "typeaheadBuffer",
|
|
18794
|
+
"type": {
|
|
18795
|
+
"text": "string"
|
|
18796
|
+
},
|
|
18797
|
+
"privacy": "private",
|
|
18798
|
+
"default": "''"
|
|
18799
|
+
},
|
|
18800
|
+
{
|
|
18801
|
+
"kind": "field",
|
|
18802
|
+
"name": "_typeaheadTimeout",
|
|
18803
|
+
"type": {
|
|
18804
|
+
"text": "null"
|
|
18805
|
+
},
|
|
18806
|
+
"privacy": "private",
|
|
18807
|
+
"default": "null"
|
|
18808
|
+
},
|
|
19017
18809
|
{
|
|
19018
18810
|
"kind": "field",
|
|
19019
18811
|
"name": "appearance",
|
|
@@ -19298,6 +19090,18 @@
|
|
|
19298
19090
|
},
|
|
19299
19091
|
"description": "Indicates whether the input is in a dirty state (has been interacted with)."
|
|
19300
19092
|
},
|
|
19093
|
+
{
|
|
19094
|
+
"kind": "field",
|
|
19095
|
+
"name": "typeaheadTimeoutMs",
|
|
19096
|
+
"privacy": "public",
|
|
19097
|
+
"type": {
|
|
19098
|
+
"text": "number"
|
|
19099
|
+
},
|
|
19100
|
+
"description": "Milliseconds of keyboard inactivity before the type-ahead buffer resets.\nIncrease for users who type slowly.",
|
|
19101
|
+
"default": "500",
|
|
19102
|
+
"attribute": "typeaheadTimeoutMs",
|
|
19103
|
+
"reflects": true
|
|
19104
|
+
},
|
|
19301
19105
|
{
|
|
19302
19106
|
"kind": "field",
|
|
19303
19107
|
"name": "validity",
|
|
@@ -19650,6 +19454,15 @@
|
|
|
19650
19454
|
"module": "components/layoutElement/src/auroElement.js"
|
|
19651
19455
|
}
|
|
19652
19456
|
},
|
|
19457
|
+
{
|
|
19458
|
+
"name": "typeaheadTimeoutMs",
|
|
19459
|
+
"type": {
|
|
19460
|
+
"text": "number"
|
|
19461
|
+
},
|
|
19462
|
+
"description": "Milliseconds of keyboard inactivity before the type-ahead buffer resets.\nIncrease for users who type slowly.",
|
|
19463
|
+
"default": "500",
|
|
19464
|
+
"fieldName": "typeaheadTimeoutMs"
|
|
19465
|
+
},
|
|
19653
19466
|
{
|
|
19654
19467
|
"name": "validity",
|
|
19655
19468
|
"type": {
|
|
@@ -19728,7 +19541,7 @@
|
|
|
19728
19541
|
"type": {
|
|
19729
19542
|
"text": "object"
|
|
19730
19543
|
},
|
|
19731
|
-
"default": "{ ArrowDown(component, evt, ctx) { evt.preventDefault(); if (ctx.isExpanded) { if (evt.altKey || evt.ctrlKey || evt.metaKey) { // navigate to last enabled option selectKeyboardStrategy.End(component, evt, ctx); } else { navigateArrow(component, 'down', { ctx }); } } else { component.dropdown.show(); } }, ArrowUp(component, evt, ctx) { evt.preventDefault(); if (ctx.isExpanded) { if (evt.altKey || evt.ctrlKey || evt.metaKey) { // navigate to first enabled option selectKeyboardStrategy.Home(component, evt, ctx); } else { navigateArrow(component, 'up', { ctx }); } } else { component.dropdown.show(); } }, Escape(component, evt, ctx) { if (!ctx.isExpanded) { return; } // Prevent the Escape key from bubbling up and closing any parent dialogs / drawers / popups evt.stopPropagation(); component.dropdown.hide(); }, End(component, evt, ctx) { if (!ctx.isExpanded) { return; } evt.preventDefault(); evt.stopPropagation(); // `pop()` is safe here: getEnabledOptions returns a fresh filtered array. const lastOption = getEnabledOptions(component.menu).pop(); if (lastOption) { component.menu.updateActiveOption(lastOption); } }, Enter(component, evt, ctx) { evt.preventDefault(); evt.stopPropagation(); if (!ctx.isExpanded) { component.dropdown.show(); return; } component.menu.makeSelection(); }, Home(component, evt, ctx) { if (!ctx.isExpanded) { return; } evt.preventDefault(); evt.stopPropagation(); const [firstOption] = getEnabledOptions(component.menu); if (firstOption) { component.menu.updateActiveOption(firstOption); } }, Tab(component, evt, ctx) { if (!ctx.isExpanded) { return; } // Tab selects the focused option and closes the popup per the // WAI-ARIA APG select-only combobox / listbox pattern. if (component.optionActive) { component.menu.makeSelection(); } component.dropdown.hide(); }, default(component, evt, ctx) {
|
|
19544
|
+
"default": "{ ArrowDown(component, evt, ctx) { evt.preventDefault(); if (ctx.isExpanded) { if (evt.altKey || evt.ctrlKey || evt.metaKey) { // navigate to last enabled option selectKeyboardStrategy.End(component, evt, ctx); } else { navigateArrow(component, 'down', { ctx }); } } else { component.dropdown.show(); } }, ArrowUp(component, evt, ctx) { evt.preventDefault(); if (ctx.isExpanded) { if (evt.altKey || evt.ctrlKey || evt.metaKey) { // navigate to first enabled option selectKeyboardStrategy.Home(component, evt, ctx); } else { navigateArrow(component, 'up', { ctx }); } } else { component.dropdown.show(); } }, Escape(component, evt, ctx) { // Always clear the type-ahead buffer — Escape is a universal cancel. // Safe to call when the buffer is empty. // eslint-disable-next-line no-underscore-dangle if (typeof component._clearTypeaheadBuffer === 'function') { // eslint-disable-next-line no-underscore-dangle component._clearTypeaheadBuffer(); } if (!ctx.isExpanded) { return; } // Prevent the Escape key from bubbling up and closing any parent dialogs / drawers / popups evt.stopPropagation(); component.dropdown.hide(); }, End(component, evt, ctx) { if (!ctx.isExpanded) { return; } evt.preventDefault(); evt.stopPropagation(); // `pop()` is safe here: getEnabledOptions returns a fresh filtered array. const lastOption = getEnabledOptions(component.menu).pop(); if (lastOption) { component.menu.updateActiveOption(lastOption); } }, Enter(component, evt, ctx) { evt.preventDefault(); evt.stopPropagation(); if (!ctx.isExpanded) { component.dropdown.show(); return; } component.menu.makeSelection(); }, Home(component, evt, ctx) { if (!ctx.isExpanded) { return; } evt.preventDefault(); evt.stopPropagation(); const [firstOption] = getEnabledOptions(component.menu); if (firstOption) { component.menu.updateActiveOption(firstOption); } }, Tab(component, evt, ctx) { if (!ctx.isExpanded) { return; } // Tab selects the focused option and closes the popup per the // WAI-ARIA APG select-only combobox / listbox pattern. if (component.optionActive) { component.menu.makeSelection(); } component.dropdown.hide(); }, default(component, evt, ctx) { // Space resolves to either typeahead-buffer extension or bib toggle // depending on whether a type-ahead buffer is active. Mirrors native // <select> and the WAI-ARIA APG Listbox guidance: mid-typeahead space // is a search character (e.g. \"San Francisco\"); otherwise it toggles. if (evt.key === ' ') { evt.preventDefault(); evt.stopPropagation(); if (component.typeaheadBuffer && component.typeaheadBuffer.length > 0) { component.updateActiveOptionBasedOnKey(evt.key); return; } if (ctx.isExpanded) { component.dropdown.hide(); } else { component.dropdown.show(); } return; } component.updateActiveOptionBasedOnKey(evt.key); }, }"
|
|
19732
19545
|
}
|
|
19733
19546
|
],
|
|
19734
19547
|
"exports": [
|
|
@@ -19764,6 +19577,25 @@
|
|
|
19764
19577
|
"text": "Array<HTMLElement>"
|
|
19765
19578
|
}
|
|
19766
19579
|
}
|
|
19580
|
+
},
|
|
19581
|
+
{
|
|
19582
|
+
"kind": "function",
|
|
19583
|
+
"name": "getActiveOptions",
|
|
19584
|
+
"parameters": [
|
|
19585
|
+
{
|
|
19586
|
+
"name": "menu",
|
|
19587
|
+
"description": "The auro-menu element.",
|
|
19588
|
+
"type": {
|
|
19589
|
+
"text": "HTMLElement | null | undefined"
|
|
19590
|
+
}
|
|
19591
|
+
}
|
|
19592
|
+
],
|
|
19593
|
+
"description": "Returns the active (selectable + visible) options for type-ahead navigation.\n\nUses auro-menuoption's `isActive` getter, which excludes disabled, hidden,\nand static options (e.g. `static nomatch` placeholders) so the type-ahead\ncursor never lands on a non-actionable item. Same empty-safe handling as\n`getEnabledOptions`.",
|
|
19594
|
+
"return": {
|
|
19595
|
+
"type": {
|
|
19596
|
+
"text": "Array<HTMLElement>"
|
|
19597
|
+
}
|
|
19598
|
+
}
|
|
19767
19599
|
}
|
|
19768
19600
|
],
|
|
19769
19601
|
"exports": [
|
|
@@ -19774,6 +19606,14 @@
|
|
|
19774
19606
|
"name": "getEnabledOptions",
|
|
19775
19607
|
"module": "components/select/src/selectUtils.js"
|
|
19776
19608
|
}
|
|
19609
|
+
},
|
|
19610
|
+
{
|
|
19611
|
+
"kind": "js",
|
|
19612
|
+
"name": "getActiveOptions",
|
|
19613
|
+
"declaration": {
|
|
19614
|
+
"name": "getActiveOptions",
|
|
19615
|
+
"module": "components/select/src/selectUtils.js"
|
|
19616
|
+
}
|
|
19777
19617
|
}
|
|
19778
19618
|
]
|
|
19779
19619
|
}
|
package/package.json
CHANGED