@aurodesignsystem-dev/auro-formkit 0.0.0-pr1504.0 → 0.0.0-pr1506.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 (60) hide show
  1. package/components/checkbox/demo/customize.min.js +2 -2
  2. package/components/checkbox/demo/getting-started.min.js +2 -2
  3. package/components/checkbox/demo/index.min.js +2 -2
  4. package/components/checkbox/dist/index.js +2 -2
  5. package/components/checkbox/dist/registered.js +2 -2
  6. package/components/combobox/demo/customize.md +7 -3
  7. package/components/combobox/demo/customize.min.js +1435 -1666
  8. package/components/combobox/demo/getting-started.min.js +1435 -1666
  9. package/components/combobox/demo/index.min.js +1435 -1666
  10. package/components/combobox/dist/auro-combobox.d.ts +14 -0
  11. package/components/combobox/dist/index.js +489 -145
  12. package/components/combobox/dist/registered.js +489 -145
  13. package/components/counter/demo/customize.min.js +3 -3
  14. package/components/counter/demo/index.min.js +3 -3
  15. package/components/counter/dist/index.js +3 -3
  16. package/components/counter/dist/registered.js +3 -3
  17. package/components/datepicker/demo/customize.min.js +140 -61
  18. package/components/datepicker/demo/index.min.js +140 -61
  19. package/components/datepicker/dist/index.js +140 -61
  20. package/components/datepicker/dist/registered.js +140 -61
  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 +2336 -2269
  27. package/components/form/demo/getting-started.min.js +2336 -2269
  28. package/components/form/demo/index.min.js +2336 -2269
  29. package/components/form/demo/registerDemoDeps.min.js +2334 -2267
  30. package/components/input/demo/customize.min.js +138 -57
  31. package/components/input/demo/getting-started.min.js +138 -57
  32. package/components/input/demo/index.min.js +138 -57
  33. package/components/input/dist/base-input.d.ts +16 -0
  34. package/components/input/dist/index.js +138 -57
  35. package/components/input/dist/registered.js +138 -57
  36. package/components/menu/demo/api.md +41 -45
  37. package/components/menu/demo/customize.md +0 -28
  38. package/components/menu/demo/index.min.js +779 -1354
  39. package/components/menu/dist/auro-menu.d.ts +95 -110
  40. package/components/menu/dist/auro-menuoption.d.ts +32 -138
  41. package/components/menu/dist/index.js +753 -1308
  42. package/components/menu/dist/registered.js +765 -1308
  43. package/components/radio/demo/customize.min.js +2 -2
  44. package/components/radio/demo/getting-started.min.js +2 -2
  45. package/components/radio/demo/index.min.js +2 -2
  46. package/components/radio/dist/index.js +2 -2
  47. package/components/radio/dist/registered.js +2 -2
  48. package/components/select/demo/api.md +1 -0
  49. package/components/select/demo/customize.md +78 -3
  50. package/components/select/demo/customize.min.js +1140 -1577
  51. package/components/select/demo/getting-started.min.js +1140 -1577
  52. package/components/select/demo/index.min.js +1140 -1577
  53. package/components/select/demo/keyboard-behavior.md +18 -0
  54. package/components/select/dist/auro-select.d.ts +38 -2
  55. package/components/select/dist/index.js +177 -39
  56. package/components/select/dist/registered.js +177 -39
  57. package/components/select/dist/selectUtils.d.ts +24 -0
  58. package/custom-elements.json +503 -1037
  59. package/package.json +1 -1
  60. package/components/menu/dist/auro-menu.context.d.ts +0 -238
@@ -920,7 +920,7 @@ class AuroFormValidation {
920
920
  } else if (this.runtimeUtils.elementMatch(elem, 'auro-input') && elem.errorMessage === '') {
921
921
  const input = elem.renderRoot.querySelector('input');
922
922
 
923
- if (input.validationMessage.length > 0) {
923
+ if (input && input.validationMessage.length > 0) {
924
924
  elem.errorMessage = input.validationMessage;
925
925
  }
926
926
  } else if (this.runtimeUtils.elementMatch(elem, 'auro-combobox') && elem.errorMessage === '') {
@@ -1212,7 +1212,7 @@ class AuroHelpText extends i$2 {
1212
1212
  }
1213
1213
  }
1214
1214
 
1215
- var formkitVersion = '202606141505';
1215
+ var formkitVersion = '202606190840';
1216
1216
 
1217
1217
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
1218
1218
  // See LICENSE in the project root for license information.
@@ -920,7 +920,7 @@ class AuroFormValidation {
920
920
  } else if (this.runtimeUtils.elementMatch(elem, 'auro-input') && elem.errorMessage === '') {
921
921
  const input = elem.renderRoot.querySelector('input');
922
922
 
923
- if (input.validationMessage.length > 0) {
923
+ if (input && input.validationMessage.length > 0) {
924
924
  elem.errorMessage = input.validationMessage;
925
925
  }
926
926
  } else if (this.runtimeUtils.elementMatch(elem, 'auro-combobox') && elem.errorMessage === '') {
@@ -1212,7 +1212,7 @@ class AuroHelpText extends i$2 {
1212
1212
  }
1213
1213
  }
1214
1214
 
1215
- var formkitVersion = '202606141505';
1215
+ var formkitVersion = '202606190840';
1216
1216
 
1217
1217
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
1218
1218
  // See LICENSE in the project root for license information.
@@ -920,7 +920,7 @@ class AuroFormValidation {
920
920
  } else if (this.runtimeUtils.elementMatch(elem, 'auro-input') && elem.errorMessage === '') {
921
921
  const input = elem.renderRoot.querySelector('input');
922
922
 
923
- if (input.validationMessage.length > 0) {
923
+ if (input && input.validationMessage.length > 0) {
924
924
  elem.errorMessage = input.validationMessage;
925
925
  }
926
926
  } else if (this.runtimeUtils.elementMatch(elem, 'auro-combobox') && elem.errorMessage === '') {
@@ -1212,7 +1212,7 @@ class AuroHelpText extends i$2 {
1212
1212
  }
1213
1213
  }
1214
1214
 
1215
- var formkitVersion = '202606141505';
1215
+ var formkitVersion = '202606190840';
1216
1216
 
1217
1217
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
1218
1218
  // See LICENSE in the project root for license information.
@@ -859,7 +859,7 @@ class AuroFormValidation {
859
859
  } else if (this.runtimeUtils.elementMatch(elem, 'auro-input') && elem.errorMessage === '') {
860
860
  const input = elem.renderRoot.querySelector('input');
861
861
 
862
- if (input.validationMessage.length > 0) {
862
+ if (input && input.validationMessage.length > 0) {
863
863
  elem.errorMessage = input.validationMessage;
864
864
  }
865
865
  } else if (this.runtimeUtils.elementMatch(elem, 'auro-combobox') && elem.errorMessage === '') {
@@ -1151,7 +1151,7 @@ class AuroHelpText extends LitElement {
1151
1151
  }
1152
1152
  }
1153
1153
 
1154
- var formkitVersion = '202606141505';
1154
+ var formkitVersion = '202606190840';
1155
1155
 
1156
1156
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
1157
1157
  // See LICENSE in the project root for license information.
@@ -859,7 +859,7 @@ class AuroFormValidation {
859
859
  } else if (this.runtimeUtils.elementMatch(elem, 'auro-input') && elem.errorMessage === '') {
860
860
  const input = elem.renderRoot.querySelector('input');
861
861
 
862
- if (input.validationMessage.length > 0) {
862
+ if (input && input.validationMessage.length > 0) {
863
863
  elem.errorMessage = input.validationMessage;
864
864
  }
865
865
  } else if (this.runtimeUtils.elementMatch(elem, 'auro-combobox') && elem.errorMessage === '') {
@@ -1151,7 +1151,7 @@ class AuroHelpText extends LitElement {
1151
1151
  }
1152
1152
  }
1153
1153
 
1154
- var formkitVersion = '202606141505';
1154
+ var formkitVersion = '202606190840';
1155
1155
 
1156
1156
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
1157
1157
  // See LICENSE in the project root for license information.
@@ -38,6 +38,7 @@ The `auro-select` element is a wrapper for auro-dropdown and auro-menu to create
38
38
  | `shape` | `shape` | `'classic' \| 'pill' \| 'pill-left' \| 'pill-right' \| 'snowflake'` | | Determines the shape of the dropdown bib. |
39
39
  | `shift` | `shift` | `boolean` | false | If set, the dropdown will shift its position to avoid being cut off by the viewport. |
40
40
  | `size` | `size` | `'lg' \| 'xl'` | | Determines the size of the dropdown bib. Only the `emphasized` layout supports size=`xl`, while all other layouts support size=`lg`. |
41
+ | `typeaheadTimeoutMs` | `typeaheadTimeoutMs` | `number` | "500" | Milliseconds of keyboard inactivity before the type-ahead buffer resets.<br />Increase for users who type slowly. |
41
42
  | `validity` | `validity` | `string` | | Specifies the `validityState` this element is in. |
42
43
  | `value` | `value` | `string` | | Value selected for the component. |
43
44
 
@@ -22,6 +22,7 @@
22
22
  <auro-anchorlink fluid href="#cssParts" class="level2 body-xs">CSS Shadow Parts</auro-anchorlink>
23
23
  <auro-anchorlink fluid href="#customBehavior">Behavior</auro-anchorlink>
24
24
  <auro-anchorlink fluid href="#autoComplete" class="level2 body-xs">Autocomplete</auro-anchorlink>
25
+ <auro-anchorlink fluid href="#typeAhead" class="level2 body-xs">Type-Ahead</auro-anchorlink>
25
26
  <auro-anchorlink fluid href="#disableComponent" class="level2 body-xs">Disable Component</auro-anchorlink>
26
27
  <auro-anchorlink fluid href="#disableOptions" class="level2 body-xs">Disable Option(s)</auro-anchorlink>
27
28
  <auro-anchorlink fluid href="#requireSelection" class="level2 body-xs">Require Selection</auro-anchorlink>
@@ -660,9 +661,11 @@
660
661
  <auro-select class="css-parts-demo">
661
662
  <span slot="label">CSS Parts Example</span>
662
663
  <span slot="helpText">This select has custom styles applied via CSS Shadow Parts.</span>
664
+ <auro-menu>
663
665
  <auro-menuoption value="one">Option One</auro-menuoption>
664
666
  <auro-menuoption value="two">Option Two</auro-menuoption>
665
667
  <auro-menuoption value="three">Option Three</auro-menuoption>
668
+ </auro-menu>
666
669
  </auro-select>
667
670
  <!-- AURO-GENERATED-CONTENT:END -->
668
671
  </div>
@@ -687,9 +690,11 @@
687
690
  &lt;auro-select class="css-parts-demo"&gt;
688
691
  &lt;span slot="label"&gt;CSS Parts Example&lt;/span&gt;
689
692
  &lt;span slot="helpText"&gt;This select has custom styles applied via CSS Shadow Parts.&lt;/span&gt;
690
- &lt;auro-menuoption value="one"&gt;Option One&lt;/auro-menuoption&gt;
691
- &lt;auro-menuoption value="two"&gt;Option Two&lt;/auro-menuoption&gt;
692
- &lt;auro-menuoption value="three"&gt;Option Three&lt;/auro-menuoption&gt;
693
+ &lt;auro-menu&gt;
694
+ &lt;auro-menuoption value="one"&gt;Option One&lt;/auro-menuoption&gt;
695
+ &lt;auro-menuoption value="two"&gt;Option Two&lt;/auro-menuoption&gt;
696
+ &lt;auro-menuoption value="three"&gt;Option Three&lt;/auro-menuoption&gt;
697
+ &lt;/auro-menu&gt;
693
698
  &lt;/auro-select&gt;</code></pre>
694
699
  <!-- AURO-GENERATED-CONTENT:END -->
695
700
  </auro-accordion>
@@ -745,6 +750,76 @@
745
750
  &lt;/form&gt;</code></pre>
746
751
  <!-- AURO-GENERATED-CONTENT:END -->
747
752
  </auro-accordion>
753
+ <auro-header level="3" id="typeAhead">Type-Ahead</auro-header>
754
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/customize/typeahead.md) -->
755
+ <!-- The below content is automatically added from ./../docs/partials/customize/typeahead.md -->
756
+ <p>Type-ahead lets a guest jump to an option by typing. As keys are pressed, the active option advances to the first enabled option whose <strong>displayed text</strong> starts with the buffered keystrokes — following the <auro-hyperlink href="https://www.w3.org/WAI/ARIA/apg/patterns/listbox/">WAI-ARIA Listbox pattern</auro-hyperlink>, and mirroring native HTML <code>&lt;select&gt;</code> behavior. Matching uses the rendered text rather than the <code>value</code> attribute.</p>
757
+ <p>The <code>typeaheadTimeoutMs</code> attribute (default <code>500</code>) controls how long the buffer persists between keystrokes. Repeating the same character cycles through every enabled option starting with it; disabled options are skipped.</p>
758
+ <div class="note">
759
+ <strong>Note:</strong> The <kbd>Space</kbd> key is context-sensitive. When the type-ahead buffer is empty it toggles the bib open or closed, matching the rest of <code>&lt;auro-select&gt;</code>. When the buffer is active it extends the buffer instead, so multi-word options such as "San Francisco" can be matched by typing <kbd>s</kbd>, <kbd>a</kbd>, <kbd>n</kbd>, <kbd>Space</kbd>, <kbd>f</kbd>.
760
+ </div>
761
+ <!-- AURO-GENERATED-CONTENT:END -->
762
+ <div class="exampleWrapper">
763
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/typeahead.html) -->
764
+ <!-- The below content is automatically added from ./../apiExamples/typeahead.html -->
765
+ <auro-select>
766
+ <span slot="ariaLabel.bib.close">Close Popup</span>
767
+ <span slot="bib.fullscreen.headline">Airport</span>
768
+ <span slot="label">Destination airport</span>
769
+ <auro-menu>
770
+ <auro-menuoption value="ANC">Anchorage</auro-menuoption>
771
+ <auro-menuoption value="ATL">Atlanta</auro-menuoption>
772
+ <auro-menuoption value="AUS">Austin</auro-menuoption>
773
+ <auro-menuoption value="BOS">Boston</auro-menuoption>
774
+ <auro-menuoption value="DEN">Denver</auro-menuoption>
775
+ <auro-menuoption value="DFW" disabled>Dallas/Fort Worth</auro-menuoption>
776
+ <auro-menuoption value="DTW">Detroit</auro-menuoption>
777
+ <auro-menuoption value="HNL">Honolulu</auro-menuoption>
778
+ <auro-menuoption value="LAX">Los Angeles</auro-menuoption>
779
+ <auro-menuoption value="MIA">Miami</auro-menuoption>
780
+ <auro-menuoption value="ORD">Chicago</auro-menuoption>
781
+ <auro-menuoption value="PDX">Portland</auro-menuoption>
782
+ <auro-menuoption value="PHX">Phoenix</auro-menuoption>
783
+ <auro-menuoption value="SAN">San Diego</auro-menuoption>
784
+ <auro-menuoption value="SEA">Seattle</auro-menuoption>
785
+ <auro-menuoption value="SFO">San Francisco</auro-menuoption>
786
+ <auro-menuoption value="SJC" disabled>San Jose</auro-menuoption>
787
+ <auro-menuoption value="SLC">Salt Lake City</auro-menuoption>
788
+ </auro-menu>
789
+ </auro-select>
790
+ <!-- AURO-GENERATED-CONTENT:END -->
791
+ </div>
792
+ <auro-accordion alignRight>
793
+ <span slot="trigger">See code</span>
794
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/typeahead.html) -->
795
+ <!-- The below code snippet is automatically added from ./../apiExamples/typeahead.html -->
796
+ <pre class="language-html"><code class="language-html">&lt;auro-select&gt;
797
+ &lt;span slot="ariaLabel.bib.close"&gt;Close Popup&lt;/span&gt;
798
+ &lt;span slot="bib.fullscreen.headline"&gt;Airport&lt;/span&gt;
799
+ &lt;span slot="label"&gt;Destination airport&lt;/span&gt;
800
+ &lt;auro-menu&gt;
801
+ &lt;auro-menuoption value="ANC"&gt;Anchorage&lt;/auro-menuoption&gt;
802
+ &lt;auro-menuoption value="ATL"&gt;Atlanta&lt;/auro-menuoption&gt;
803
+ &lt;auro-menuoption value="AUS"&gt;Austin&lt;/auro-menuoption&gt;
804
+ &lt;auro-menuoption value="BOS"&gt;Boston&lt;/auro-menuoption&gt;
805
+ &lt;auro-menuoption value="DEN"&gt;Denver&lt;/auro-menuoption&gt;
806
+ &lt;auro-menuoption value="DFW" disabled&gt;Dallas/Fort Worth&lt;/auro-menuoption&gt;
807
+ &lt;auro-menuoption value="DTW"&gt;Detroit&lt;/auro-menuoption&gt;
808
+ &lt;auro-menuoption value="HNL"&gt;Honolulu&lt;/auro-menuoption&gt;
809
+ &lt;auro-menuoption value="LAX"&gt;Los Angeles&lt;/auro-menuoption&gt;
810
+ &lt;auro-menuoption value="MIA"&gt;Miami&lt;/auro-menuoption&gt;
811
+ &lt;auro-menuoption value="ORD"&gt;Chicago&lt;/auro-menuoption&gt;
812
+ &lt;auro-menuoption value="PDX"&gt;Portland&lt;/auro-menuoption&gt;
813
+ &lt;auro-menuoption value="PHX"&gt;Phoenix&lt;/auro-menuoption&gt;
814
+ &lt;auro-menuoption value="SAN"&gt;San Diego&lt;/auro-menuoption&gt;
815
+ &lt;auro-menuoption value="SEA"&gt;Seattle&lt;/auro-menuoption&gt;
816
+ &lt;auro-menuoption value="SFO"&gt;San Francisco&lt;/auro-menuoption&gt;
817
+ &lt;auro-menuoption value="SJC" disabled&gt;San Jose&lt;/auro-menuoption&gt;
818
+ &lt;auro-menuoption value="SLC"&gt;Salt Lake City&lt;/auro-menuoption&gt;
819
+ &lt;/auro-menu&gt;
820
+ &lt;/auro-select&gt;</code></pre>
821
+ <!-- AURO-GENERATED-CONTENT:END -->
822
+ </auro-accordion>
748
823
  <auro-header level="3" id="disableComponent">Disable Component</auro-header>
749
824
  <p>The entire component may be disabled. When disabled, the component will render to reflect the state, may not receive focus nor react to any key or pointer events.</p>
750
825
  <p>When the component is disabled and part of a form, the components value is still included in the form submission.</p>