@aurodesignsystem-dev/auro-formkit 0.0.0-pr1531.0 → 0.0.0-pr1532.0
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 +21 -43
- package/components/combobox/demo/getting-started.min.js +21 -43
- package/components/combobox/demo/index.min.js +21 -43
- package/components/combobox/dist/index.js +21 -43
- package/components/combobox/dist/registered.js +21 -43
- 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/customize.min.js +21 -43
- package/components/datepicker/demo/index.min.js +21 -43
- package/components/datepicker/dist/index.js +21 -43
- package/components/datepicker/dist/registered.js +21 -43
- 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 +127 -147
- package/components/form/demo/getting-started.min.js +127 -147
- package/components/form/demo/index.min.js +127 -147
- package/components/form/demo/registerDemoDeps.min.js +127 -147
- package/components/input/demo/customize.min.js +19 -41
- package/components/input/demo/getting-started.min.js +19 -41
- package/components/input/demo/index.min.js +19 -41
- package/components/input/dist/base-input.d.ts +4 -20
- package/components/input/dist/index.js +19 -41
- package/components/input/dist/registered.js +19 -41
- 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 +44 -98
- package/package.json +1 -1
package/custom-elements.json
CHANGED
|
@@ -12202,39 +12202,6 @@
|
|
|
12202
12202
|
"module": "components/input/src/base-input.js"
|
|
12203
12203
|
}
|
|
12204
12204
|
},
|
|
12205
|
-
{
|
|
12206
|
-
"kind": "field",
|
|
12207
|
-
"name": "format",
|
|
12208
|
-
"privacy": "public",
|
|
12209
|
-
"type": {
|
|
12210
|
-
"text": "string"
|
|
12211
|
-
},
|
|
12212
|
-
"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.",
|
|
12213
|
-
"attribute": "format",
|
|
12214
|
-
"reflects": true,
|
|
12215
|
-
"inheritedFrom": {
|
|
12216
|
-
"name": "BaseInput",
|
|
12217
|
-
"module": "components/input/src/base-input.js"
|
|
12218
|
-
}
|
|
12219
|
-
},
|
|
12220
|
-
{
|
|
12221
|
-
"kind": "method",
|
|
12222
|
-
"name": "_setFormatFromLocale",
|
|
12223
|
-
"parameters": [
|
|
12224
|
-
{
|
|
12225
|
-
"name": "value",
|
|
12226
|
-
"type": {
|
|
12227
|
-
"text": "string"
|
|
12228
|
-
}
|
|
12229
|
-
}
|
|
12230
|
-
],
|
|
12231
|
-
"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.",
|
|
12232
|
-
"privacy": "private",
|
|
12233
|
-
"inheritedFrom": {
|
|
12234
|
-
"name": "BaseInput",
|
|
12235
|
-
"module": "components/input/src/base-input.js"
|
|
12236
|
-
}
|
|
12237
|
-
},
|
|
12238
12205
|
{
|
|
12239
12206
|
"kind": "method",
|
|
12240
12207
|
"name": "patchInputEvent",
|
|
@@ -12785,28 +12752,6 @@
|
|
|
12785
12752
|
"module": "components/input/src/base-input.js"
|
|
12786
12753
|
}
|
|
12787
12754
|
},
|
|
12788
|
-
{
|
|
12789
|
-
"kind": "field",
|
|
12790
|
-
"name": "_format",
|
|
12791
|
-
"default": "undefined",
|
|
12792
|
-
"inheritedFrom": {
|
|
12793
|
-
"name": "BaseInput",
|
|
12794
|
-
"module": "components/input/src/base-input.js"
|
|
12795
|
-
}
|
|
12796
|
-
},
|
|
12797
|
-
{
|
|
12798
|
-
"kind": "field",
|
|
12799
|
-
"name": "_userSetFormat",
|
|
12800
|
-
"type": {
|
|
12801
|
-
"text": "boolean"
|
|
12802
|
-
},
|
|
12803
|
-
"privacy": "private",
|
|
12804
|
-
"default": "false",
|
|
12805
|
-
"inheritedFrom": {
|
|
12806
|
-
"name": "BaseInput",
|
|
12807
|
-
"module": "components/input/src/base-input.js"
|
|
12808
|
-
}
|
|
12809
|
-
},
|
|
12810
12755
|
{
|
|
12811
12756
|
"kind": "field",
|
|
12812
12757
|
"name": "max",
|
|
@@ -12901,6 +12846,15 @@
|
|
|
12901
12846
|
"module": "components/layoutElement/src/auroElement.js"
|
|
12902
12847
|
}
|
|
12903
12848
|
},
|
|
12849
|
+
{
|
|
12850
|
+
"kind": "field",
|
|
12851
|
+
"name": "_rawMaskValue",
|
|
12852
|
+
"default": "undefined",
|
|
12853
|
+
"inheritedFrom": {
|
|
12854
|
+
"name": "BaseInput",
|
|
12855
|
+
"module": "components/input/src/base-input.js"
|
|
12856
|
+
}
|
|
12857
|
+
},
|
|
12904
12858
|
{
|
|
12905
12859
|
"kind": "field",
|
|
12906
12860
|
"name": "required",
|
|
@@ -13205,6 +13159,21 @@
|
|
|
13205
13159
|
"module": "components/input/src/base-input.js"
|
|
13206
13160
|
}
|
|
13207
13161
|
},
|
|
13162
|
+
{
|
|
13163
|
+
"kind": "field",
|
|
13164
|
+
"name": "format",
|
|
13165
|
+
"privacy": "public",
|
|
13166
|
+
"type": {
|
|
13167
|
+
"text": "string"
|
|
13168
|
+
},
|
|
13169
|
+
"description": "Specifies the input mask format.",
|
|
13170
|
+
"attribute": "format",
|
|
13171
|
+
"reflects": true,
|
|
13172
|
+
"inheritedFrom": {
|
|
13173
|
+
"name": "BaseInput",
|
|
13174
|
+
"module": "components/input/src/base-input.js"
|
|
13175
|
+
}
|
|
13176
|
+
},
|
|
13208
13177
|
{
|
|
13209
13178
|
"kind": "field",
|
|
13210
13179
|
"name": "hasFocus",
|
|
@@ -13777,7 +13746,7 @@
|
|
|
13777
13746
|
"type": {
|
|
13778
13747
|
"text": "string"
|
|
13779
13748
|
},
|
|
13780
|
-
"description": "
|
|
13749
|
+
"description": "Specifies the input mask format.",
|
|
13781
13750
|
"fieldName": "format",
|
|
13782
13751
|
"inheritedFrom": {
|
|
13783
13752
|
"name": "BaseInput",
|
|
@@ -14353,31 +14322,6 @@
|
|
|
14353
14322
|
},
|
|
14354
14323
|
"readonly": true
|
|
14355
14324
|
},
|
|
14356
|
-
{
|
|
14357
|
-
"kind": "field",
|
|
14358
|
-
"name": "format",
|
|
14359
|
-
"privacy": "public",
|
|
14360
|
-
"type": {
|
|
14361
|
-
"text": "string"
|
|
14362
|
-
},
|
|
14363
|
-
"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.",
|
|
14364
|
-
"attribute": "format",
|
|
14365
|
-
"reflects": true
|
|
14366
|
-
},
|
|
14367
|
-
{
|
|
14368
|
-
"kind": "method",
|
|
14369
|
-
"name": "_setFormatFromLocale",
|
|
14370
|
-
"parameters": [
|
|
14371
|
-
{
|
|
14372
|
-
"name": "value",
|
|
14373
|
-
"type": {
|
|
14374
|
-
"text": "string"
|
|
14375
|
-
}
|
|
14376
|
-
}
|
|
14377
|
-
],
|
|
14378
|
-
"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.",
|
|
14379
|
-
"privacy": "private"
|
|
14380
|
-
},
|
|
14381
14325
|
{
|
|
14382
14326
|
"kind": "method",
|
|
14383
14327
|
"name": "patchInputEvent",
|
|
@@ -14792,20 +14736,6 @@
|
|
|
14792
14736
|
"attribute": "locale",
|
|
14793
14737
|
"reflects": true
|
|
14794
14738
|
},
|
|
14795
|
-
{
|
|
14796
|
-
"kind": "field",
|
|
14797
|
-
"name": "_format",
|
|
14798
|
-
"default": "undefined"
|
|
14799
|
-
},
|
|
14800
|
-
{
|
|
14801
|
-
"kind": "field",
|
|
14802
|
-
"name": "_userSetFormat",
|
|
14803
|
-
"type": {
|
|
14804
|
-
"text": "boolean"
|
|
14805
|
-
},
|
|
14806
|
-
"privacy": "private",
|
|
14807
|
-
"default": "false"
|
|
14808
|
-
},
|
|
14809
14739
|
{
|
|
14810
14740
|
"kind": "field",
|
|
14811
14741
|
"name": "max",
|
|
@@ -14880,6 +14810,11 @@
|
|
|
14880
14810
|
"module": "components/layoutElement/src/auroElement.js"
|
|
14881
14811
|
}
|
|
14882
14812
|
},
|
|
14813
|
+
{
|
|
14814
|
+
"kind": "field",
|
|
14815
|
+
"name": "_rawMaskValue",
|
|
14816
|
+
"default": "undefined"
|
|
14817
|
+
},
|
|
14883
14818
|
{
|
|
14884
14819
|
"kind": "field",
|
|
14885
14820
|
"name": "required",
|
|
@@ -15104,6 +15039,17 @@
|
|
|
15104
15039
|
"description": "Contains the help text message for the current validity error.",
|
|
15105
15040
|
"attribute": "errorMessage"
|
|
15106
15041
|
},
|
|
15042
|
+
{
|
|
15043
|
+
"kind": "field",
|
|
15044
|
+
"name": "format",
|
|
15045
|
+
"privacy": "public",
|
|
15046
|
+
"type": {
|
|
15047
|
+
"text": "string"
|
|
15048
|
+
},
|
|
15049
|
+
"description": "Specifies the input mask format.",
|
|
15050
|
+
"attribute": "format",
|
|
15051
|
+
"reflects": true
|
|
15052
|
+
},
|
|
15107
15053
|
{
|
|
15108
15054
|
"kind": "field",
|
|
15109
15055
|
"name": "hasFocus",
|
|
@@ -15534,7 +15480,7 @@
|
|
|
15534
15480
|
"type": {
|
|
15535
15481
|
"text": "string"
|
|
15536
15482
|
},
|
|
15537
|
-
"description": "
|
|
15483
|
+
"description": "Specifies the input mask format.",
|
|
15538
15484
|
"fieldName": "format"
|
|
15539
15485
|
},
|
|
15540
15486
|
{
|
|
@@ -19168,7 +19114,7 @@
|
|
|
19168
19114
|
{
|
|
19169
19115
|
"kind": "method",
|
|
19170
19116
|
"name": "configureMenu",
|
|
19171
|
-
"description": "Binds all behavior needed to the menu after rendering.",
|
|
19117
|
+
"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.",
|
|
19172
19118
|
"privacy": "private",
|
|
19173
19119
|
"return": {
|
|
19174
19120
|
"type": {
|
|
@@ -20372,7 +20318,7 @@
|
|
|
20372
20318
|
"type": {
|
|
20373
20319
|
"text": "object"
|
|
20374
20320
|
},
|
|
20375
|
-
"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:
|
|
20321
|
+
"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); }, }"
|
|
20376
20322
|
}
|
|
20377
20323
|
],
|
|
20378
20324
|
"exports": [
|
package/package.json
CHANGED