@aurodesignsystem-dev/auro-formkit 0.0.0-pr1408.9 → 0.0.0-pr1411.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/api.min.js +1 -1
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/demo/keyboardBehavior.md +0 -0
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/demo/api.min.js +121 -144
- package/components/combobox/demo/index.min.js +121 -144
- package/components/combobox/demo/keyboardBehavior.html +1 -0
- package/components/combobox/demo/keyboardBehavior.md +20 -21
- package/components/combobox/dist/index.js +87 -117
- package/components/combobox/dist/registered.js +87 -117
- package/components/counter/demo/api.md +1 -1
- package/components/counter/demo/api.min.js +184 -148
- package/components/counter/demo/index.min.js +184 -148
- package/components/counter/demo/keyboardBehavior.html +1 -0
- package/components/counter/demo/keyboardBehavior.md +1 -1
- package/components/counter/dist/auro-counter.d.ts +11 -8
- package/components/counter/dist/index.js +184 -148
- package/components/counter/dist/keyboardStrategy.d.ts +4 -0
- package/components/counter/dist/registered.js +184 -148
- package/components/datepicker/demo/api.min.js +89 -120
- package/components/datepicker/demo/index.min.js +89 -120
- package/components/datepicker/demo/keyboardBehavior.html +1 -0
- package/components/datepicker/demo/keyboardBehavior.md +14 -13
- package/components/datepicker/dist/index.js +84 -115
- package/components/datepicker/dist/registered.js +84 -115
- package/components/dropdown/demo/api.md +0 -1
- package/components/dropdown/demo/api.min.js +99 -123
- package/components/dropdown/demo/index.md +2 -2
- package/components/dropdown/demo/index.min.js +99 -123
- package/components/dropdown/demo/keyboardBehavior.html +1 -0
- package/components/dropdown/dist/auro-dropdown.d.ts +0 -8
- package/components/dropdown/dist/auro-dropdownBib.d.ts +1 -40
- package/components/dropdown/dist/dropdownBibKeyboardStrategy.d.ts +7 -0
- package/components/dropdown/dist/index.js +83 -111
- package/components/dropdown/dist/registered.js +83 -111
- package/components/form/demo/api.min.js +542 -564
- package/components/form/demo/index.min.js +542 -564
- package/components/form/demo/keyboardBehavior.md +0 -0
- package/components/input/demo/api.min.js +1 -1
- package/components/input/demo/index.min.js +1 -1
- package/components/input/demo/keyboardBehavior.md +0 -0
- package/components/input/dist/index.js +1 -1
- package/components/input/dist/registered.js +1 -1
- package/components/menu/demo/api.min.js +34 -27
- package/components/menu/demo/index.min.js +34 -27
- package/components/menu/dist/auro-menu.d.ts +0 -6
- package/components/menu/dist/index.js +34 -27
- package/components/menu/dist/registered.js +34 -27
- package/components/radio/demo/api.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.min.js +181 -178
- package/components/select/demo/index.min.js +181 -178
- package/components/select/demo/keyboardBehavior.html +1 -0
- package/components/select/demo/keyboardBehavior.md +240 -239
- package/components/select/dist/index.js +147 -151
- package/components/select/dist/registered.js +147 -151
- package/components/select/dist/selectKeyboardStrategy.d.ts +3 -1
- package/custom-elements.json +101 -83
- package/package.json +5 -3
package/custom-elements.json
CHANGED
|
@@ -3584,6 +3584,30 @@
|
|
|
3584
3584
|
"kind": "method",
|
|
3585
3585
|
"name": "_initializeDefaults"
|
|
3586
3586
|
},
|
|
3587
|
+
{
|
|
3588
|
+
"kind": "field",
|
|
3589
|
+
"name": "value",
|
|
3590
|
+
"privacy": "public",
|
|
3591
|
+
"type": {
|
|
3592
|
+
"text": "number"
|
|
3593
|
+
},
|
|
3594
|
+
"description": "Sets the value of the counter. If the provided value is undefined, null, or cannot be converted to a number, the internal value will be set to undefined.",
|
|
3595
|
+
"return": {
|
|
3596
|
+
"type": {
|
|
3597
|
+
"text": "number|undefined"
|
|
3598
|
+
}
|
|
3599
|
+
},
|
|
3600
|
+
"parameters": [
|
|
3601
|
+
{
|
|
3602
|
+
"description": "The value to set for the counter. Can be a number, a string that can be converted to a number, undefined, or null.",
|
|
3603
|
+
"name": "val",
|
|
3604
|
+
"type": {
|
|
3605
|
+
"text": "number|string|undefined|null"
|
|
3606
|
+
}
|
|
3607
|
+
}
|
|
3608
|
+
],
|
|
3609
|
+
"attribute": "value"
|
|
3610
|
+
},
|
|
3587
3611
|
{
|
|
3588
3612
|
"kind": "method",
|
|
3589
3613
|
"name": "register",
|
|
@@ -3683,26 +3707,6 @@
|
|
|
3683
3707
|
],
|
|
3684
3708
|
"description": "Validates value."
|
|
3685
3709
|
},
|
|
3686
|
-
{
|
|
3687
|
-
"kind": "method",
|
|
3688
|
-
"name": "handleKeyDown",
|
|
3689
|
-
"parameters": [
|
|
3690
|
-
{
|
|
3691
|
-
"name": "event",
|
|
3692
|
-
"description": "The keyboard event object.",
|
|
3693
|
-
"type": {
|
|
3694
|
-
"text": "KeyboardEvent"
|
|
3695
|
-
}
|
|
3696
|
-
}
|
|
3697
|
-
],
|
|
3698
|
-
"description": "Handles the keydown event for the counter component.",
|
|
3699
|
-
"return": {
|
|
3700
|
-
"type": {
|
|
3701
|
-
"text": "void"
|
|
3702
|
-
}
|
|
3703
|
-
},
|
|
3704
|
-
"privacy": "private"
|
|
3705
|
-
},
|
|
3706
3710
|
{
|
|
3707
3711
|
"kind": "method",
|
|
3708
3712
|
"name": "setTagAttribute",
|
|
@@ -3865,16 +3869,6 @@
|
|
|
3865
3869
|
"description": "The validity state of the counter.",
|
|
3866
3870
|
"attribute": "validity",
|
|
3867
3871
|
"reflects": true
|
|
3868
|
-
},
|
|
3869
|
-
{
|
|
3870
|
-
"kind": "field",
|
|
3871
|
-
"name": "value",
|
|
3872
|
-
"privacy": "public",
|
|
3873
|
-
"type": {
|
|
3874
|
-
"text": "number"
|
|
3875
|
-
},
|
|
3876
|
-
"description": "The current value of the counter.",
|
|
3877
|
-
"attribute": "value"
|
|
3878
3872
|
}
|
|
3879
3873
|
],
|
|
3880
3874
|
"events": [
|
|
@@ -3972,7 +3966,21 @@
|
|
|
3972
3966
|
"type": {
|
|
3973
3967
|
"text": "number"
|
|
3974
3968
|
},
|
|
3975
|
-
"description": "
|
|
3969
|
+
"description": "Sets the value of the counter. If the provided value is undefined, null, or cannot be converted to a number, the internal value will be set to undefined.",
|
|
3970
|
+
"return": {
|
|
3971
|
+
"type": {
|
|
3972
|
+
"text": "number|undefined"
|
|
3973
|
+
}
|
|
3974
|
+
},
|
|
3975
|
+
"parameters": [
|
|
3976
|
+
{
|
|
3977
|
+
"description": "The value to set for the counter. Can be a number, a string that can be converted to a number, undefined, or null.",
|
|
3978
|
+
"name": "val",
|
|
3979
|
+
"type": {
|
|
3980
|
+
"text": "number|string|undefined|null"
|
|
3981
|
+
}
|
|
3982
|
+
}
|
|
3983
|
+
],
|
|
3976
3984
|
"fieldName": "value"
|
|
3977
3985
|
}
|
|
3978
3986
|
],
|
|
@@ -4048,6 +4056,30 @@
|
|
|
4048
4056
|
}
|
|
4049
4057
|
]
|
|
4050
4058
|
},
|
|
4059
|
+
{
|
|
4060
|
+
"kind": "javascript-module",
|
|
4061
|
+
"path": "components/counter/src/keyboardStrategy.js",
|
|
4062
|
+
"declarations": [
|
|
4063
|
+
{
|
|
4064
|
+
"kind": "variable",
|
|
4065
|
+
"name": "keyboardStrategy",
|
|
4066
|
+
"type": {
|
|
4067
|
+
"text": "object"
|
|
4068
|
+
},
|
|
4069
|
+
"default": "{ ArrowUp(component, _evt) { if (component.disabled) { return; } _evt.preventDefault(); component.increment(); }, ArrowDown(component, _evt) { if (component.disabled) { return; } _evt.preventDefault(); component.decrement(); } }"
|
|
4070
|
+
}
|
|
4071
|
+
],
|
|
4072
|
+
"exports": [
|
|
4073
|
+
{
|
|
4074
|
+
"kind": "js",
|
|
4075
|
+
"name": "keyboardStrategy",
|
|
4076
|
+
"declaration": {
|
|
4077
|
+
"name": "keyboardStrategy",
|
|
4078
|
+
"module": "components/counter/src/keyboardStrategy.js"
|
|
4079
|
+
}
|
|
4080
|
+
}
|
|
4081
|
+
]
|
|
4082
|
+
},
|
|
4051
4083
|
{
|
|
4052
4084
|
"kind": "javascript-module",
|
|
4053
4085
|
"path": "components/counter/src/registered.js",
|
|
@@ -8253,17 +8285,6 @@
|
|
|
8253
8285
|
"attribute": "disabled",
|
|
8254
8286
|
"reflects": true
|
|
8255
8287
|
},
|
|
8256
|
-
{
|
|
8257
|
-
"kind": "field",
|
|
8258
|
-
"name": "disableFocusTrap",
|
|
8259
|
-
"privacy": "public",
|
|
8260
|
-
"type": {
|
|
8261
|
-
"text": "boolean"
|
|
8262
|
-
},
|
|
8263
|
-
"description": "If declared, the focus trap inside of bib will be turned off.",
|
|
8264
|
-
"attribute": "disableFocusTrap",
|
|
8265
|
-
"reflects": true
|
|
8266
|
-
},
|
|
8267
8288
|
{
|
|
8268
8289
|
"kind": "field",
|
|
8269
8290
|
"name": "dropdownWidth",
|
|
@@ -8547,14 +8568,6 @@
|
|
|
8547
8568
|
"description": "If declared, the dropdown is not interactive.",
|
|
8548
8569
|
"fieldName": "disabled"
|
|
8549
8570
|
},
|
|
8550
|
-
{
|
|
8551
|
-
"name": "disableFocusTrap",
|
|
8552
|
-
"type": {
|
|
8553
|
-
"text": "boolean"
|
|
8554
|
-
},
|
|
8555
|
-
"description": "If declared, the focus trap inside of bib will be turned off.",
|
|
8556
|
-
"fieldName": "disableFocusTrap"
|
|
8557
|
-
},
|
|
8558
8571
|
{
|
|
8559
8572
|
"name": "dropdownWidth",
|
|
8560
8573
|
"type": {
|
|
@@ -8821,21 +8834,6 @@
|
|
|
8821
8834
|
"description": "Forwards the dialog's native `cancel` event (fired on ESC) as\nan `auro-bib-cancel` custom event so parent components can close.",
|
|
8822
8835
|
"privacy": "private"
|
|
8823
8836
|
},
|
|
8824
|
-
{
|
|
8825
|
-
"kind": "method",
|
|
8826
|
-
"name": "_setupKeyboardBridge",
|
|
8827
|
-
"parameters": [
|
|
8828
|
-
{
|
|
8829
|
-
"name": "dialog",
|
|
8830
|
-
"description": "The dialog element to attach the keyboard bridge to.",
|
|
8831
|
-
"type": {
|
|
8832
|
-
"text": "HTMLDialogElement"
|
|
8833
|
-
}
|
|
8834
|
-
}
|
|
8835
|
-
],
|
|
8836
|
-
"description": "showModal() creates a closed focus scope — keyboard events inside\nthe dialog's shadow DOM do NOT bubble out to the combobox/select\nkeydown handlers in the parent shadow DOM. This handler bridges\nthat gap by re-dispatching navigation keys so they cross the\nshadow boundary and reach the menu navigation logic in the parent\ncomponent.\n\nThe trade-off: intercepting these keys means native keyboard\nbehaviors that would normally \"just work\" must be manually\nre-implemented here:\n\n- Enter on buttons: Custom elements (auro-button) don't get the\n native Enter→click that <button> provides, so we call .click()\n directly when Enter is pressed on a button-like element.\n\n- Tab: Intercepted and re-dispatched so parent components\n (select/combobox) can select the active option and close the\n dialog. The <dialog> provides containment and isolation\n (inert background, VoiceOver focus trapping, top layer), while\n the content inside is a role=\"listbox\" navigated via\n aria-activedescendant (options are not focusable). Tab keyboard\n behavior follows listbox conventions (select + close) because\n the dialog's native Tab trap only cycles between the close\n button and browser chrome.\n\n- Escape: The native <dialog> fires a `cancel` event on ESC\n (handled by _setupCancelHandler), so the re-dispatched Escape\n is a secondary path for parent components that also listen for\n Escape keydown.",
|
|
8837
|
-
"privacy": "private"
|
|
8838
|
-
},
|
|
8839
8837
|
{
|
|
8840
8838
|
"kind": "method",
|
|
8841
8839
|
"name": "_lockTouchScroll",
|
|
@@ -8899,7 +8897,7 @@
|
|
|
8899
8897
|
"type": {
|
|
8900
8898
|
"text": "boolean"
|
|
8901
8899
|
},
|
|
8902
|
-
"description": "
|
|
8900
|
+
"description": "Tracks whether a menu option is currently highlighted.",
|
|
8903
8901
|
"default": "false",
|
|
8904
8902
|
"attribute": "hasActiveDescendant"
|
|
8905
8903
|
},
|
|
@@ -9079,7 +9077,7 @@
|
|
|
9079
9077
|
"type": {
|
|
9080
9078
|
"text": "boolean"
|
|
9081
9079
|
},
|
|
9082
|
-
"description": "
|
|
9080
|
+
"description": "Tracks whether a menu option is currently highlighted.",
|
|
9083
9081
|
"default": "false",
|
|
9084
9082
|
"fieldName": "hasActiveDescendant"
|
|
9085
9083
|
}
|
|
@@ -9102,6 +9100,41 @@
|
|
|
9102
9100
|
}
|
|
9103
9101
|
]
|
|
9104
9102
|
},
|
|
9103
|
+
{
|
|
9104
|
+
"kind": "javascript-module",
|
|
9105
|
+
"path": "components/dropdown/src/dropdownBibKeyboardStrategy.js",
|
|
9106
|
+
"declarations": [
|
|
9107
|
+
{
|
|
9108
|
+
"kind": "function",
|
|
9109
|
+
"name": "createDropdownBibKeyboardStrategy",
|
|
9110
|
+
"parameters": [
|
|
9111
|
+
{
|
|
9112
|
+
"name": "bib",
|
|
9113
|
+
"description": "The dropdown bib element.",
|
|
9114
|
+
"type": {
|
|
9115
|
+
"text": "HTMLElement"
|
|
9116
|
+
}
|
|
9117
|
+
}
|
|
9118
|
+
],
|
|
9119
|
+
"description": "Creates a keyboard strategy for dialog-specific key handling.\nAll other keydown behavior is left to the browser's native bubbling path.",
|
|
9120
|
+
"return": {
|
|
9121
|
+
"type": {
|
|
9122
|
+
"text": "Object"
|
|
9123
|
+
}
|
|
9124
|
+
}
|
|
9125
|
+
}
|
|
9126
|
+
],
|
|
9127
|
+
"exports": [
|
|
9128
|
+
{
|
|
9129
|
+
"kind": "js",
|
|
9130
|
+
"name": "createDropdownBibKeyboardStrategy",
|
|
9131
|
+
"declaration": {
|
|
9132
|
+
"name": "createDropdownBibKeyboardStrategy",
|
|
9133
|
+
"module": "components/dropdown/src/dropdownBibKeyboardStrategy.js"
|
|
9134
|
+
}
|
|
9135
|
+
}
|
|
9136
|
+
]
|
|
9137
|
+
},
|
|
9105
9138
|
{
|
|
9106
9139
|
"kind": "javascript-module",
|
|
9107
9140
|
"path": "components/dropdown/src/iconVersion.js",
|
|
@@ -15086,21 +15119,6 @@
|
|
|
15086
15119
|
"description": "Handles nested menu structure.",
|
|
15087
15120
|
"privacy": "private"
|
|
15088
15121
|
},
|
|
15089
|
-
{
|
|
15090
|
-
"kind": "method",
|
|
15091
|
-
"name": "handleKeyDown",
|
|
15092
|
-
"parameters": [
|
|
15093
|
-
{
|
|
15094
|
-
"name": "event",
|
|
15095
|
-
"description": "Event object from the browser.",
|
|
15096
|
-
"type": {
|
|
15097
|
-
"text": "KeyboardEvent"
|
|
15098
|
-
}
|
|
15099
|
-
}
|
|
15100
|
-
],
|
|
15101
|
-
"description": "Handles keyboard navigation.",
|
|
15102
|
-
"privacy": "private"
|
|
15103
|
-
},
|
|
15104
15122
|
{
|
|
15105
15123
|
"kind": "method",
|
|
15106
15124
|
"name": "navigateOptions",
|
|
@@ -18674,7 +18692,7 @@
|
|
|
18674
18692
|
"type": {
|
|
18675
18693
|
"text": "object"
|
|
18676
18694
|
},
|
|
18677
|
-
"default": "{ ArrowUp(component, evt, ctx) { evt.preventDefault(); navigateArrow(component, 'up', { ctx, showFn: () => component.dropdown.show(), }); }, ArrowDown(component, evt, ctx) { evt.preventDefault(); navigateArrow(component, 'down', { ctx, showFn: () => component.dropdown.show(), }); }
|
|
18695
|
+
"default": "{ ArrowUp(component, evt, ctx) { // Navigate menu only if the bib is open, otherwise open the bib evt.preventDefault(); if (evt.altKey || evt.metaKey) { // navigate to first enabled option } else if (component.dropdown.isPopoverVisible) { navigateArrow(component, 'up', { ctx, showFn: () => component.dropdown.show(), }); } else { component.dropdown.show(); } }, ArrowDown(component, evt, ctx) { // Navigate menu only if the bib is open, otherwise open the bib evt.preventDefault(); if (evt.altKey || evt.metaKey) { // navigate to last enabled option } else if (component.dropdown.isPopoverVisible) { navigateArrow(component, 'down', { ctx, showFn: () => component.dropdown.show(), }); } else { component.dropdown.show(); } }, Enter(component, evt, ctx) { if (!ctx.isExpanded && ctx.isPopover) { component.menu.makeSelection(); } else if (ctx.isModal && !evt.defaultPrevented) { // for modal, isExpanded is always true // defaultPrevented will be true if Floating UI has already handled the event to open the dropdown component.menu.makeSelection(); } }, 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.multiSelect) { component.menu.makeSelection(); } component.dropdown.hide(); }, Home(component, evt) { evt.preventDefault(); evt.stopPropagation(); const firstOption = component.menu.menuService.menuOptions.find((option) => !option.disabled); if (firstOption) { component.menu.updateActiveOption(firstOption); } }, End(component, evt) { evt.preventDefault(); evt.stopPropagation(); const lastOption = [...component.menu.menuService.menuOptions].reverse().find((option) => !option.disabled); if (lastOption) { component.menu.updateActiveOption(lastOption); } }, default(component, evt) { component.updateActiveOptionBasedOnKey(evt.key); }, }"
|
|
18678
18696
|
}
|
|
18679
18697
|
],
|
|
18680
18698
|
"exports": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aurodesignsystem-dev/auro-formkit",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-pr1411.0",
|
|
4
4
|
"description": "A collection of web components used to build forms.",
|
|
5
5
|
"homepage": "https://github.com/AlaskaAirlines/auro-formkit#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -66,7 +66,9 @@
|
|
|
66
66
|
"build-storybook": "npm run build && npm run analyze && storybook build",
|
|
67
67
|
"test:framework:react": "turbo run test:framework --filter=@aurodesignsystem/react-framework",
|
|
68
68
|
"test:framework:svelte": "turbo run test:framework --filter=@aurodesignsystem/svelte-framework",
|
|
69
|
-
"test:frameworks": "turbo run test:framework --filter=@aurodesignsystem/react-framework --filter=@aurodesignsystem/svelte-framework"
|
|
69
|
+
"test:frameworks": "turbo run test:framework --filter=@aurodesignsystem/react-framework --filter=@aurodesignsystem/svelte-framework",
|
|
70
|
+
"test:framework:report:react": "npm run test:framework:report -w apps/react-framework",
|
|
71
|
+
"test:framework:report:svelte": "npm run test:framework:report -w apps/svelte-framework"
|
|
70
72
|
},
|
|
71
73
|
"dependencies": {
|
|
72
74
|
"@lit/context": "^1.1.6",
|
|
@@ -80,7 +82,7 @@
|
|
|
80
82
|
"devDependencies": {
|
|
81
83
|
"@aurodesignsystem/auro-accordion": "^6.1.1",
|
|
82
84
|
"@aurodesignsystem/auro-button": "^12.3.2",
|
|
83
|
-
"@aurodesignsystem/auro-library": "^5.11.
|
|
85
|
+
"@aurodesignsystem/auro-library": "^5.11.3",
|
|
84
86
|
"@aurodesignsystem/build-tools": "*",
|
|
85
87
|
"@aurodesignsystem/config": "*",
|
|
86
88
|
"@aurodesignsystem/design-tokens": "^8.15.1",
|