@aurodesignsystem-dev/auro-formkit 0.0.0-pr1545.1 → 0.0.0-pr1546.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.
Files changed (46) hide show
  1. package/components/checkbox/demo/customize.min.js +1 -1
  2. package/components/checkbox/demo/getting-started.min.js +1 -1
  3. package/components/checkbox/demo/index.min.js +1 -1
  4. package/components/checkbox/dist/index.js +1 -1
  5. package/components/checkbox/dist/registered.js +1 -1
  6. package/components/combobox/demo/customize.min.js +276 -33
  7. package/components/combobox/demo/getting-started.min.js +276 -33
  8. package/components/combobox/demo/index.min.js +276 -33
  9. package/components/combobox/demo/keyboard-behavior.md +1 -1
  10. package/components/combobox/dist/auro-combobox.d.ts +1 -0
  11. package/components/combobox/dist/index.js +276 -33
  12. package/components/combobox/dist/registered.js +276 -33
  13. package/components/counter/demo/customize.min.js +2 -2
  14. package/components/counter/demo/index.min.js +2 -2
  15. package/components/counter/dist/index.js +2 -2
  16. package/components/counter/dist/registered.js +2 -2
  17. package/components/datepicker/demo/customize.min.js +3 -3
  18. package/components/datepicker/demo/index.min.js +3 -3
  19. package/components/datepicker/dist/index.js +3 -3
  20. package/components/datepicker/dist/registered.js +3 -3
  21. package/components/dropdown/demo/customize.min.js +1 -1
  22. package/components/dropdown/demo/getting-started.min.js +1 -1
  23. package/components/dropdown/demo/index.min.js +1 -1
  24. package/components/dropdown/dist/index.js +1 -1
  25. package/components/dropdown/dist/registered.js +1 -1
  26. package/components/form/demo/customize.min.js +340 -97
  27. package/components/form/demo/getting-started.min.js +340 -97
  28. package/components/form/demo/index.min.js +340 -97
  29. package/components/form/demo/registerDemoDeps.min.js +340 -97
  30. package/components/input/demo/customize.min.js +1 -1
  31. package/components/input/demo/getting-started.min.js +1 -1
  32. package/components/input/demo/index.min.js +1 -1
  33. package/components/input/dist/index.js +1 -1
  34. package/components/input/dist/registered.js +1 -1
  35. package/components/radio/demo/customize.min.js +1 -1
  36. package/components/radio/demo/getting-started.min.js +1 -1
  37. package/components/radio/demo/index.min.js +1 -1
  38. package/components/radio/dist/index.js +1 -1
  39. package/components/radio/dist/registered.js +1 -1
  40. package/components/select/demo/customize.min.js +2 -2
  41. package/components/select/demo/getting-started.min.js +2 -2
  42. package/components/select/demo/index.min.js +2 -2
  43. package/components/select/dist/index.js +2 -2
  44. package/components/select/dist/registered.js +2 -2
  45. package/custom-elements.json +195 -195
  46. package/package.json +1 -1
@@ -2526,7 +2526,7 @@
2526
2526
  "type": {
2527
2527
  "text": "object"
2528
2528
  },
2529
- "default": "{ ArrowDown(component, evt, ctx) { // If the clear button has focus, let the browser handle ArrowDown normally. if (isClearBtnFocused(ctx)) { return; } // option display and navigation are prevented if there are no available options if (component.availableOptions.length > 0) { evt.preventDefault(); // navigate if bib is open otherwise open it if (component.dropdown.isPopoverVisible) { navigateArrow(component, 'down'); } else { component.showBib(); } } }, ArrowUp(component, evt, ctx) { // If the clear button has focus, let the browser handle ArrowUp normally. if (isClearBtnFocused(ctx)) { return; } // option display and navigation are prevented if there are no available options if (component.availableOptions.length > 0) { evt.preventDefault(); // navigate if bib is open otherwise open it if (component.dropdown.isPopoverVisible) { navigateArrow(component, 'up'); } else { component.showBib(); } } }, End(component, evt, ctx) { if (ctx.isExpanded) { evt.preventDefault(); evt.stopPropagation(); component.activateLastEnabledAvailableOption(); } }, Enter(component, evt, ctx) { // Forms should not submit on Enter from a combobox, regardless of which // child element (input, clear button, menu) is focused. evt.stopPropagation(); if (isClearBtnFocused(ctx)) { // Let the browser dispatch Enter to the focused clear button so its // built-in activation fires and clears the selection. Do NOT call // preventDefault — that would block the activation. return; } if (ctx.isExpanded && component.menu.optionActive) { reconcileMenuIndex(component.menu); component.menu.makeSelection(); if (ctx.isModal) { component.setTriggerInputFocus(); } evt.preventDefault(); } else { evt.preventDefault(); component.showBib(); } }, Escape(component, evt, ctx) { if (!ctx.isExpanded) { return; } // Prevent the Escape key from bubbling up and closing any parent dialogs / drawers / popups evt.stopPropagation(); if (ctx.isModal) { component.setTriggerInputFocus(); } component.hideBib(); }, Home(component, evt, ctx) { if (ctx.isExpanded) { evt.preventDefault(); evt.stopPropagation(); component.activateFirstEnabledAvailableOption(); } }, Tab(component, evt, ctx) { // Runs for both Tab and Shift+Tab. // // Current behavior: // Tab — select the active option, close the bib, and (in fullscreen // modal mode only) explicitly move focus to the trigger's // clear button. In desktop popover mode the browser's native // tab traversal takes focus forward from the input. // Shift+Tab — select the active option and close the bib. Focus then // lands on the trigger's clear button as a byproduct of the // shadow-DOM tab order, so keyboard users must press // Shift+Tab three times to exit the component (clear button // → input → previous element on the page). // // Intended behavior for Shift+Tab (per team decision, tracked in // AB#1590650): a single Shift+Tab should select the active option, close // the bib, and move focus directly to the previous focusable element on // the page — symmetric with Tab. if (ctx.isExpanded && !isClearBtnFocused(ctx)) { // When the clear button is focused, Tab events do not bubble out of // its shadow DOM, so this handler only fires when the clear button // is NOT focused. In that case, select the active option and close. reconcileMenuIndex(component.menu); component.menu.makeSelection(); component.hideBib(); // In fullscreen modal mode, closing the dialog does not // automatically restores focus to the input. In the tab case, // Explicitly move focus to the trigger's clear button so the // user can continues tabbing through the page normally. if (ctx.isModal && !evt.shiftKey) { component.setClearBtnFocus(); } } } }"
2529
+ "default": "{ ArrowDown(component, evt, ctx) { // If the clear button has focus, let the browser handle ArrowDown normally. if (isClearBtnFocused(ctx)) { return; } // option display and navigation are prevented if there are no available options if (component.availableOptions.length > 0) { evt.preventDefault(); // navigate if bib is open otherwise open it if (component.dropdown.isPopoverVisible) { navigateArrow(component, 'down'); } else { component.showBib(); } } }, ArrowUp(component, evt, ctx) { // If the clear button has focus, let the browser handle ArrowUp normally. if (isClearBtnFocused(ctx)) { return; } // option display and navigation are prevented if there are no available options if (component.availableOptions.length > 0) { evt.preventDefault(); // navigate if bib is open otherwise open it if (component.dropdown.isPopoverVisible) { navigateArrow(component, 'up'); } else { component.showBib(); } } }, End(component, evt, ctx) { if (ctx.isExpanded) { evt.preventDefault(); evt.stopPropagation(); component.activateLastEnabledAvailableOption(); } }, Enter(component, evt, ctx) { // Forms should not submit on Enter from a combobox, regardless of which // child element (input, clear button, menu) is focused. evt.stopPropagation(); if (isClearBtnFocused(ctx)) { // Let the browser dispatch Enter to the focused clear button so its // built-in activation fires and clears the selection. Do NOT call // preventDefault — that would block the activation. return; } if (ctx.isExpanded && component.menu.optionActive) { reconcileMenuIndex(component.menu); component.menu.makeSelection(); if (ctx.isModal) { component.setTriggerInputFocus(); } evt.preventDefault(); } else { evt.preventDefault(); component.showBib(); } }, Escape(component, evt, ctx) { if (!ctx.isExpanded) { return; } // Prevent the Escape key from bubbling up and closing any parent dialogs / drawers / popups evt.stopPropagation(); if (ctx.isModal) { component.setTriggerInputFocus(); } component.hideBib(); }, Home(component, evt, ctx) { if (ctx.isExpanded) { evt.preventDefault(); evt.stopPropagation(); component.activateFirstEnabledAvailableOption(); } }, Tab(component, evt, ctx) { if (ctx.isExpanded && !isClearBtnFocused(ctx)) { if (evt.shiftKey) { if (selectAndExitBackward(component)) { evt.preventDefault(); } return; } selectAndClose(component); if (ctx.isModal) { // Fullscreen close does not automatically restore focus to the input. component.setClearBtnFocus(); } } } }"
2530
2530
  }
2531
2531
  ],
2532
2532
  "exports": [
@@ -10842,200 +10842,6 @@
10842
10842
  "declarations": [],
10843
10843
  "exports": []
10844
10844
  },
10845
- {
10846
- "kind": "javascript-module",
10847
- "path": "components/helptext/src/auro-helptext.js",
10848
- "declarations": [
10849
- {
10850
- "kind": "class",
10851
- "description": "Displays help text or error messages within form elements - Internal Use Only.",
10852
- "name": "AuroHelpText",
10853
- "members": [
10854
- {
10855
- "kind": "method",
10856
- "name": "register",
10857
- "static": true,
10858
- "parameters": [
10859
- {
10860
- "name": "name",
10861
- "default": "\"auro-helptext\"",
10862
- "description": "The name of element that you want to register to.",
10863
- "optional": true,
10864
- "type": {
10865
- "text": "string"
10866
- }
10867
- }
10868
- ],
10869
- "description": "This will register this element with the browser."
10870
- },
10871
- {
10872
- "kind": "method",
10873
- "name": "handleSlotChange",
10874
- "parameters": [
10875
- {
10876
- "name": "event"
10877
- }
10878
- ]
10879
- },
10880
- {
10881
- "kind": "method",
10882
- "name": "checkSlotsForContent",
10883
- "parameters": [
10884
- {
10885
- "name": "nodes",
10886
- "description": "The list of nodes to check for content.",
10887
- "type": {
10888
- "text": "NodeList|Array"
10889
- }
10890
- }
10891
- ],
10892
- "description": "Checks if any of the provided nodes or their nested slot nodes contain non-empty text content.",
10893
- "return": {
10894
- "type": {
10895
- "text": "boolean"
10896
- }
10897
- },
10898
- "privacy": "private"
10899
- },
10900
- {
10901
- "kind": "field",
10902
- "name": "error",
10903
- "privacy": "public",
10904
- "type": {
10905
- "text": "boolean"
10906
- },
10907
- "description": "If declared, make font color red.",
10908
- "default": "false",
10909
- "attribute": "error",
10910
- "reflects": true
10911
- },
10912
- {
10913
- "kind": "field",
10914
- "name": "appearance",
10915
- "privacy": "public",
10916
- "type": {
10917
- "text": "string"
10918
- },
10919
- "description": "Defines whether the component will be on lighter or darker backgrounds.",
10920
- "default": "\"default\"",
10921
- "attribute": "appearance",
10922
- "reflects": true
10923
- },
10924
- {
10925
- "kind": "field",
10926
- "name": "onDark",
10927
- "privacy": "public",
10928
- "type": {
10929
- "text": "boolean"
10930
- },
10931
- "description": "DEPRECATED - use `appearance` instead.",
10932
- "default": "false",
10933
- "attribute": "onDark",
10934
- "reflects": true
10935
- },
10936
- {
10937
- "kind": "field",
10938
- "name": "hasTextContent",
10939
- "privacy": "private",
10940
- "type": {
10941
- "text": "boolean"
10942
- },
10943
- "default": "false",
10944
- "attribute": "hasTextContent"
10945
- },
10946
- {
10947
- "kind": "field",
10948
- "name": "slotNodes",
10949
- "privacy": "private",
10950
- "type": {
10951
- "text": "boolean"
10952
- },
10953
- "attribute": "slotNodes"
10954
- }
10955
- ],
10956
- "attributes": [
10957
- {
10958
- "name": "appearance",
10959
- "type": {
10960
- "text": "string"
10961
- },
10962
- "description": "Defines whether the component will be on lighter or darker backgrounds.",
10963
- "default": "\"default\"",
10964
- "fieldName": "appearance"
10965
- },
10966
- {
10967
- "name": "slotNodes",
10968
- "type": {
10969
- "text": "boolean"
10970
- },
10971
- "fieldName": "slotNodes"
10972
- },
10973
- {
10974
- "name": "hasTextContent",
10975
- "type": {
10976
- "text": "boolean"
10977
- },
10978
- "default": "false",
10979
- "fieldName": "hasTextContent"
10980
- },
10981
- {
10982
- "name": "error",
10983
- "type": {
10984
- "text": "boolean"
10985
- },
10986
- "description": "If declared, make font color red.",
10987
- "default": "false",
10988
- "fieldName": "error"
10989
- },
10990
- {
10991
- "name": "onDark",
10992
- "type": {
10993
- "text": "boolean"
10994
- },
10995
- "description": "DEPRECATED - use `appearance` instead.",
10996
- "default": "false",
10997
- "fieldName": "onDark"
10998
- }
10999
- ],
11000
- "superclass": {
11001
- "name": "LitElement",
11002
- "package": "lit"
11003
- },
11004
- "customElement": true
11005
- }
11006
- ],
11007
- "exports": [
11008
- {
11009
- "kind": "js",
11010
- "name": "AuroHelpText",
11011
- "declaration": {
11012
- "name": "AuroHelpText",
11013
- "module": "components/helptext/src/auro-helptext.js"
11014
- }
11015
- }
11016
- ]
11017
- },
11018
- {
11019
- "kind": "javascript-module",
11020
- "path": "components/helptext/src/index.js",
11021
- "declarations": [],
11022
- "exports": [
11023
- {
11024
- "kind": "js",
11025
- "name": "AuroHelpText",
11026
- "declaration": {
11027
- "name": "AuroHelpText",
11028
- "module": "components/helptext/src/index.js"
11029
- }
11030
- }
11031
- ]
11032
- },
11033
- {
11034
- "kind": "javascript-module",
11035
- "path": "components/helptext/src/registered.js",
11036
- "declarations": [],
11037
- "exports": []
11038
- },
11039
10845
  {
11040
10846
  "kind": "javascript-module",
11041
10847
  "path": "components/form/src/auro-form.js",
@@ -11675,6 +11481,200 @@
11675
11481
  "declarations": [],
11676
11482
  "exports": []
11677
11483
  },
11484
+ {
11485
+ "kind": "javascript-module",
11486
+ "path": "components/helptext/src/auro-helptext.js",
11487
+ "declarations": [
11488
+ {
11489
+ "kind": "class",
11490
+ "description": "Displays help text or error messages within form elements - Internal Use Only.",
11491
+ "name": "AuroHelpText",
11492
+ "members": [
11493
+ {
11494
+ "kind": "method",
11495
+ "name": "register",
11496
+ "static": true,
11497
+ "parameters": [
11498
+ {
11499
+ "name": "name",
11500
+ "default": "\"auro-helptext\"",
11501
+ "description": "The name of element that you want to register to.",
11502
+ "optional": true,
11503
+ "type": {
11504
+ "text": "string"
11505
+ }
11506
+ }
11507
+ ],
11508
+ "description": "This will register this element with the browser."
11509
+ },
11510
+ {
11511
+ "kind": "method",
11512
+ "name": "handleSlotChange",
11513
+ "parameters": [
11514
+ {
11515
+ "name": "event"
11516
+ }
11517
+ ]
11518
+ },
11519
+ {
11520
+ "kind": "method",
11521
+ "name": "checkSlotsForContent",
11522
+ "parameters": [
11523
+ {
11524
+ "name": "nodes",
11525
+ "description": "The list of nodes to check for content.",
11526
+ "type": {
11527
+ "text": "NodeList|Array"
11528
+ }
11529
+ }
11530
+ ],
11531
+ "description": "Checks if any of the provided nodes or their nested slot nodes contain non-empty text content.",
11532
+ "return": {
11533
+ "type": {
11534
+ "text": "boolean"
11535
+ }
11536
+ },
11537
+ "privacy": "private"
11538
+ },
11539
+ {
11540
+ "kind": "field",
11541
+ "name": "error",
11542
+ "privacy": "public",
11543
+ "type": {
11544
+ "text": "boolean"
11545
+ },
11546
+ "description": "If declared, make font color red.",
11547
+ "default": "false",
11548
+ "attribute": "error",
11549
+ "reflects": true
11550
+ },
11551
+ {
11552
+ "kind": "field",
11553
+ "name": "appearance",
11554
+ "privacy": "public",
11555
+ "type": {
11556
+ "text": "string"
11557
+ },
11558
+ "description": "Defines whether the component will be on lighter or darker backgrounds.",
11559
+ "default": "\"default\"",
11560
+ "attribute": "appearance",
11561
+ "reflects": true
11562
+ },
11563
+ {
11564
+ "kind": "field",
11565
+ "name": "onDark",
11566
+ "privacy": "public",
11567
+ "type": {
11568
+ "text": "boolean"
11569
+ },
11570
+ "description": "DEPRECATED - use `appearance` instead.",
11571
+ "default": "false",
11572
+ "attribute": "onDark",
11573
+ "reflects": true
11574
+ },
11575
+ {
11576
+ "kind": "field",
11577
+ "name": "hasTextContent",
11578
+ "privacy": "private",
11579
+ "type": {
11580
+ "text": "boolean"
11581
+ },
11582
+ "default": "false",
11583
+ "attribute": "hasTextContent"
11584
+ },
11585
+ {
11586
+ "kind": "field",
11587
+ "name": "slotNodes",
11588
+ "privacy": "private",
11589
+ "type": {
11590
+ "text": "boolean"
11591
+ },
11592
+ "attribute": "slotNodes"
11593
+ }
11594
+ ],
11595
+ "attributes": [
11596
+ {
11597
+ "name": "appearance",
11598
+ "type": {
11599
+ "text": "string"
11600
+ },
11601
+ "description": "Defines whether the component will be on lighter or darker backgrounds.",
11602
+ "default": "\"default\"",
11603
+ "fieldName": "appearance"
11604
+ },
11605
+ {
11606
+ "name": "slotNodes",
11607
+ "type": {
11608
+ "text": "boolean"
11609
+ },
11610
+ "fieldName": "slotNodes"
11611
+ },
11612
+ {
11613
+ "name": "hasTextContent",
11614
+ "type": {
11615
+ "text": "boolean"
11616
+ },
11617
+ "default": "false",
11618
+ "fieldName": "hasTextContent"
11619
+ },
11620
+ {
11621
+ "name": "error",
11622
+ "type": {
11623
+ "text": "boolean"
11624
+ },
11625
+ "description": "If declared, make font color red.",
11626
+ "default": "false",
11627
+ "fieldName": "error"
11628
+ },
11629
+ {
11630
+ "name": "onDark",
11631
+ "type": {
11632
+ "text": "boolean"
11633
+ },
11634
+ "description": "DEPRECATED - use `appearance` instead.",
11635
+ "default": "false",
11636
+ "fieldName": "onDark"
11637
+ }
11638
+ ],
11639
+ "superclass": {
11640
+ "name": "LitElement",
11641
+ "package": "lit"
11642
+ },
11643
+ "customElement": true
11644
+ }
11645
+ ],
11646
+ "exports": [
11647
+ {
11648
+ "kind": "js",
11649
+ "name": "AuroHelpText",
11650
+ "declaration": {
11651
+ "name": "AuroHelpText",
11652
+ "module": "components/helptext/src/auro-helptext.js"
11653
+ }
11654
+ }
11655
+ ]
11656
+ },
11657
+ {
11658
+ "kind": "javascript-module",
11659
+ "path": "components/helptext/src/index.js",
11660
+ "declarations": [],
11661
+ "exports": [
11662
+ {
11663
+ "kind": "js",
11664
+ "name": "AuroHelpText",
11665
+ "declaration": {
11666
+ "name": "AuroHelpText",
11667
+ "module": "components/helptext/src/index.js"
11668
+ }
11669
+ }
11670
+ ]
11671
+ },
11672
+ {
11673
+ "kind": "javascript-module",
11674
+ "path": "components/helptext/src/registered.js",
11675
+ "declarations": [],
11676
+ "exports": []
11677
+ },
11678
11678
  {
11679
11679
  "kind": "javascript-module",
11680
11680
  "path": "components/input/src/auro-input-util.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurodesignsystem-dev/auro-formkit",
3
- "version": "0.0.0-pr1545.1",
3
+ "version": "0.0.0-pr1546.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": {