@aurodesignsystem-dev/auro-formkit 0.0.0-pr1530.1 → 0.0.0-pr1530.2
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 +42 -29
- package/components/combobox/demo/getting-started.min.js +42 -29
- package/components/combobox/demo/index.min.js +42 -29
- package/components/combobox/dist/index.js +42 -29
- package/components/combobox/dist/registered.js +42 -29
- 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/accessibility.md +4 -4
- package/components/datepicker/demo/customize.min.js +42 -29
- package/components/datepicker/demo/index.min.js +42 -29
- package/components/datepicker/demo/keyboard-behavior.md +3 -3
- package/components/datepicker/demo/voiceover.md +3 -3
- package/components/datepicker/demo/why-datepicker.md +2 -2
- package/components/datepicker/dist/index.js +42 -29
- package/components/datepicker/dist/registered.js +42 -29
- 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 +190 -105
- package/components/form/demo/getting-started.min.js +190 -105
- package/components/form/demo/index.min.js +190 -105
- package/components/form/demo/registerDemoDeps.min.js +190 -105
- package/components/input/demo/customize.min.js +40 -27
- package/components/input/demo/getting-started.min.js +40 -27
- package/components/input/demo/index.min.js +40 -27
- package/components/input/dist/base-input.d.ts +20 -4
- package/components/input/dist/index.js +40 -27
- package/components/input/dist/registered.js +40 -27
- 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/customize.min.js +62 -16
- package/components/select/demo/getting-started.min.js +62 -16
- package/components/select/demo/index.min.js +62 -16
- package/components/select/dist/auro-select.d.ts +6 -0
- package/components/select/dist/index.js +62 -16
- package/components/select/dist/registered.js +62 -16
- package/custom-elements.json +98 -44
- package/package.json +1 -1
package/custom-elements.json
CHANGED
|
@@ -12232,6 +12232,39 @@
|
|
|
12232
12232
|
"module": "components/input/src/base-input.js"
|
|
12233
12233
|
}
|
|
12234
12234
|
},
|
|
12235
|
+
{
|
|
12236
|
+
"kind": "field",
|
|
12237
|
+
"name": "format",
|
|
12238
|
+
"privacy": "public",
|
|
12239
|
+
"type": {
|
|
12240
|
+
"text": "string"
|
|
12241
|
+
},
|
|
12242
|
+
"description": "Overrides LitElement's generated accessor so we can track whether the\nconsumer explicitly set `format`. Locale-derived updates use\n`_setFormatFromLocale` instead, which skips this flag.",
|
|
12243
|
+
"attribute": "format",
|
|
12244
|
+
"reflects": true,
|
|
12245
|
+
"inheritedFrom": {
|
|
12246
|
+
"name": "BaseInput",
|
|
12247
|
+
"module": "components/input/src/base-input.js"
|
|
12248
|
+
}
|
|
12249
|
+
},
|
|
12250
|
+
{
|
|
12251
|
+
"kind": "method",
|
|
12252
|
+
"name": "_setFormatFromLocale",
|
|
12253
|
+
"parameters": [
|
|
12254
|
+
{
|
|
12255
|
+
"name": "value",
|
|
12256
|
+
"type": {
|
|
12257
|
+
"text": "string"
|
|
12258
|
+
}
|
|
12259
|
+
}
|
|
12260
|
+
],
|
|
12261
|
+
"description": "Sets format without marking it as user-set. Used by locale auto-derive\nso that a subsequent locale change can still update the format.",
|
|
12262
|
+
"privacy": "private",
|
|
12263
|
+
"inheritedFrom": {
|
|
12264
|
+
"name": "BaseInput",
|
|
12265
|
+
"module": "components/input/src/base-input.js"
|
|
12266
|
+
}
|
|
12267
|
+
},
|
|
12235
12268
|
{
|
|
12236
12269
|
"kind": "method",
|
|
12237
12270
|
"name": "patchInputEvent",
|
|
@@ -12782,6 +12815,28 @@
|
|
|
12782
12815
|
"module": "components/input/src/base-input.js"
|
|
12783
12816
|
}
|
|
12784
12817
|
},
|
|
12818
|
+
{
|
|
12819
|
+
"kind": "field",
|
|
12820
|
+
"name": "_format",
|
|
12821
|
+
"default": "undefined",
|
|
12822
|
+
"inheritedFrom": {
|
|
12823
|
+
"name": "BaseInput",
|
|
12824
|
+
"module": "components/input/src/base-input.js"
|
|
12825
|
+
}
|
|
12826
|
+
},
|
|
12827
|
+
{
|
|
12828
|
+
"kind": "field",
|
|
12829
|
+
"name": "_userSetFormat",
|
|
12830
|
+
"type": {
|
|
12831
|
+
"text": "boolean"
|
|
12832
|
+
},
|
|
12833
|
+
"privacy": "private",
|
|
12834
|
+
"default": "false",
|
|
12835
|
+
"inheritedFrom": {
|
|
12836
|
+
"name": "BaseInput",
|
|
12837
|
+
"module": "components/input/src/base-input.js"
|
|
12838
|
+
}
|
|
12839
|
+
},
|
|
12785
12840
|
{
|
|
12786
12841
|
"kind": "field",
|
|
12787
12842
|
"name": "max",
|
|
@@ -12876,15 +12931,6 @@
|
|
|
12876
12931
|
"module": "components/layoutElement/src/auroElement.js"
|
|
12877
12932
|
}
|
|
12878
12933
|
},
|
|
12879
|
-
{
|
|
12880
|
-
"kind": "field",
|
|
12881
|
-
"name": "_rawMaskValue",
|
|
12882
|
-
"default": "undefined",
|
|
12883
|
-
"inheritedFrom": {
|
|
12884
|
-
"name": "BaseInput",
|
|
12885
|
-
"module": "components/input/src/base-input.js"
|
|
12886
|
-
}
|
|
12887
|
-
},
|
|
12888
12934
|
{
|
|
12889
12935
|
"kind": "field",
|
|
12890
12936
|
"name": "required",
|
|
@@ -13189,21 +13235,6 @@
|
|
|
13189
13235
|
"module": "components/input/src/base-input.js"
|
|
13190
13236
|
}
|
|
13191
13237
|
},
|
|
13192
|
-
{
|
|
13193
|
-
"kind": "field",
|
|
13194
|
-
"name": "format",
|
|
13195
|
-
"privacy": "public",
|
|
13196
|
-
"type": {
|
|
13197
|
-
"text": "string"
|
|
13198
|
-
},
|
|
13199
|
-
"description": "Specifies the input mask format.",
|
|
13200
|
-
"attribute": "format",
|
|
13201
|
-
"reflects": true,
|
|
13202
|
-
"inheritedFrom": {
|
|
13203
|
-
"name": "BaseInput",
|
|
13204
|
-
"module": "components/input/src/base-input.js"
|
|
13205
|
-
}
|
|
13206
|
-
},
|
|
13207
13238
|
{
|
|
13208
13239
|
"kind": "field",
|
|
13209
13240
|
"name": "hasFocus",
|
|
@@ -13776,7 +13807,7 @@
|
|
|
13776
13807
|
"type": {
|
|
13777
13808
|
"text": "string"
|
|
13778
13809
|
},
|
|
13779
|
-
"description": "
|
|
13810
|
+
"description": "Overrides LitElement's generated accessor so we can track whether the\nconsumer explicitly set `format`. Locale-derived updates use\n`_setFormatFromLocale` instead, which skips this flag.",
|
|
13780
13811
|
"fieldName": "format",
|
|
13781
13812
|
"inheritedFrom": {
|
|
13782
13813
|
"name": "BaseInput",
|
|
@@ -14352,6 +14383,31 @@
|
|
|
14352
14383
|
},
|
|
14353
14384
|
"readonly": true
|
|
14354
14385
|
},
|
|
14386
|
+
{
|
|
14387
|
+
"kind": "field",
|
|
14388
|
+
"name": "format",
|
|
14389
|
+
"privacy": "public",
|
|
14390
|
+
"type": {
|
|
14391
|
+
"text": "string"
|
|
14392
|
+
},
|
|
14393
|
+
"description": "Overrides LitElement's generated accessor so we can track whether the\nconsumer explicitly set `format`. Locale-derived updates use\n`_setFormatFromLocale` instead, which skips this flag.",
|
|
14394
|
+
"attribute": "format",
|
|
14395
|
+
"reflects": true
|
|
14396
|
+
},
|
|
14397
|
+
{
|
|
14398
|
+
"kind": "method",
|
|
14399
|
+
"name": "_setFormatFromLocale",
|
|
14400
|
+
"parameters": [
|
|
14401
|
+
{
|
|
14402
|
+
"name": "value",
|
|
14403
|
+
"type": {
|
|
14404
|
+
"text": "string"
|
|
14405
|
+
}
|
|
14406
|
+
}
|
|
14407
|
+
],
|
|
14408
|
+
"description": "Sets format without marking it as user-set. Used by locale auto-derive\nso that a subsequent locale change can still update the format.",
|
|
14409
|
+
"privacy": "private"
|
|
14410
|
+
},
|
|
14355
14411
|
{
|
|
14356
14412
|
"kind": "method",
|
|
14357
14413
|
"name": "patchInputEvent",
|
|
@@ -14766,6 +14822,20 @@
|
|
|
14766
14822
|
"attribute": "locale",
|
|
14767
14823
|
"reflects": true
|
|
14768
14824
|
},
|
|
14825
|
+
{
|
|
14826
|
+
"kind": "field",
|
|
14827
|
+
"name": "_format",
|
|
14828
|
+
"default": "undefined"
|
|
14829
|
+
},
|
|
14830
|
+
{
|
|
14831
|
+
"kind": "field",
|
|
14832
|
+
"name": "_userSetFormat",
|
|
14833
|
+
"type": {
|
|
14834
|
+
"text": "boolean"
|
|
14835
|
+
},
|
|
14836
|
+
"privacy": "private",
|
|
14837
|
+
"default": "false"
|
|
14838
|
+
},
|
|
14769
14839
|
{
|
|
14770
14840
|
"kind": "field",
|
|
14771
14841
|
"name": "max",
|
|
@@ -14840,11 +14910,6 @@
|
|
|
14840
14910
|
"module": "components/layoutElement/src/auroElement.js"
|
|
14841
14911
|
}
|
|
14842
14912
|
},
|
|
14843
|
-
{
|
|
14844
|
-
"kind": "field",
|
|
14845
|
-
"name": "_rawMaskValue",
|
|
14846
|
-
"default": "undefined"
|
|
14847
|
-
},
|
|
14848
14913
|
{
|
|
14849
14914
|
"kind": "field",
|
|
14850
14915
|
"name": "required",
|
|
@@ -15069,17 +15134,6 @@
|
|
|
15069
15134
|
"description": "Contains the help text message for the current validity error.",
|
|
15070
15135
|
"attribute": "errorMessage"
|
|
15071
15136
|
},
|
|
15072
|
-
{
|
|
15073
|
-
"kind": "field",
|
|
15074
|
-
"name": "format",
|
|
15075
|
-
"privacy": "public",
|
|
15076
|
-
"type": {
|
|
15077
|
-
"text": "string"
|
|
15078
|
-
},
|
|
15079
|
-
"description": "Specifies the input mask format.",
|
|
15080
|
-
"attribute": "format",
|
|
15081
|
-
"reflects": true
|
|
15082
|
-
},
|
|
15083
15137
|
{
|
|
15084
15138
|
"kind": "field",
|
|
15085
15139
|
"name": "hasFocus",
|
|
@@ -15510,7 +15564,7 @@
|
|
|
15510
15564
|
"type": {
|
|
15511
15565
|
"text": "string"
|
|
15512
15566
|
},
|
|
15513
|
-
"description": "
|
|
15567
|
+
"description": "Overrides LitElement's generated accessor so we can track whether the\nconsumer explicitly set `format`. Locale-derived updates use\n`_setFormatFromLocale` instead, which skips this flag.",
|
|
15514
15568
|
"fieldName": "format"
|
|
15515
15569
|
},
|
|
15516
15570
|
{
|
|
@@ -19144,7 +19198,7 @@
|
|
|
19144
19198
|
{
|
|
19145
19199
|
"kind": "method",
|
|
19146
19200
|
"name": "configureMenu",
|
|
19147
|
-
"description": "Binds all behavior needed to the menu after rendering.",
|
|
19201
|
+
"description": "Binds all behavior needed to the menu after rendering.\n\nThe `<auro-menu>` reference is captured once and not re-targeted on\n`slotchange`. Runtime option mutations are covered via\n`auroMenu-optionsChange`, so swap options inside the menu freely; do not\nswap the `<auro-menu>` element itself under a live select — remount the\nparent `<auro-select>` instead.",
|
|
19148
19202
|
"privacy": "private",
|
|
19149
19203
|
"return": {
|
|
19150
19204
|
"type": {
|
|
@@ -20348,7 +20402,7 @@
|
|
|
20348
20402
|
"type": {
|
|
20349
20403
|
"text": "object"
|
|
20350
20404
|
},
|
|
20351
|
-
"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) { evt.preventDefault(); evt.stopPropagation(); // `pop()` is safe here:
|
|
20405
|
+
"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) { evt.preventDefault(); evt.stopPropagation(); // `pop()` is safe here: getActiveOptions returns a fresh filtered array. // Uses \"active\" (not \"enabled\") so hidden and static rows — which a screen // reader must not announce as focused — are skipped. const lastOption = getActiveOptions(component.menu).pop(); if (!lastOption) { return; } // Pre-stash before show() so the auroDropdown-toggled handler's // `!optionActive` guard short-circuits the firstActive/selected fallback — // otherwise show() synchronously fires the handler and writes // aria-activedescendant once before we overwrite it. component.menu.updateActiveOption(lastOption); if (!ctx.isExpanded) { component.dropdown.show(); } }, Enter(component, evt, ctx) { // Prevent the keypress from bubbling to parent containers (e.g., forms) // which could interpret Enter as a submit. Matches APG select-only combobox // and native <select> behavior: Enter opens the listbox when closed, selects // the active option when open — it does not submit a parent form. evt.preventDefault(); evt.stopPropagation(); if (!ctx.isExpanded) { component.dropdown.show(); return; } component.menu.makeSelection(); }, Home(component, evt, ctx) { evt.preventDefault(); evt.stopPropagation(); const [firstOption] = getActiveOptions(component.menu); if (!firstOption) { return; } // See End() for why this must run before show(). component.menu.updateActiveOption(firstOption); if (!ctx.isExpanded) { component.dropdown.show(); } }, 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) { // Ignore keys chorded with Ctrl/Meta/Alt so browser/OS shortcuts // (Cmd+C, Ctrl+V, Alt+X, Cmd+Space, …) don't leak into typeahead // or toggle the bib. Native <select> ignores modified keys. // ArrowUp/ArrowDown handle modifier+arrow explicitly above; this // guard only affects the default (printable/Space) branch. if (evt.ctrlKey || evt.metaKey || evt.altKey) { return; } // 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); }, }"
|
|
20352
20406
|
}
|
|
20353
20407
|
],
|
|
20354
20408
|
"exports": [
|
package/package.json
CHANGED