@aurodesignsystem-dev/auro-formkit 0.0.0-pr1504.0 → 0.0.0-pr1505.1

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 (77) hide show
  1. package/components/checkbox/demo/customize.html +1 -2
  2. package/components/checkbox/demo/customize.min.js +2 -2
  3. package/components/checkbox/demo/getting-started.min.js +2 -2
  4. package/components/checkbox/demo/index.min.js +2 -2
  5. package/components/checkbox/dist/index.js +2 -2
  6. package/components/checkbox/dist/registered.js +2 -2
  7. package/components/combobox/demo/customize.html +1 -2
  8. package/components/combobox/demo/customize.md +115 -135
  9. package/components/combobox/demo/customize.min.js +1451 -1663
  10. package/components/combobox/demo/getting-started.min.js +1451 -1663
  11. package/components/combobox/demo/index.min.js +1451 -1663
  12. package/components/combobox/dist/auro-combobox.d.ts +5 -0
  13. package/components/combobox/dist/index.js +505 -142
  14. package/components/combobox/dist/registered.js +505 -142
  15. package/components/counter/demo/customize.min.js +3 -3
  16. package/components/counter/demo/index.min.js +3 -3
  17. package/components/counter/dist/index.js +3 -3
  18. package/components/counter/dist/registered.js +3 -3
  19. package/components/datepicker/demo/api.md +2 -0
  20. package/components/datepicker/demo/customize.md +195 -33
  21. package/components/datepicker/demo/customize.min.js +145 -60
  22. package/components/datepicker/demo/index.min.js +137 -59
  23. package/components/datepicker/dist/index.js +137 -59
  24. package/components/datepicker/dist/registered.js +137 -59
  25. package/components/datepicker/dist/src/auro-datepicker.d.ts +2 -0
  26. package/components/dropdown/demo/customize.min.js +1 -1
  27. package/components/dropdown/demo/getting-started.min.js +1 -1
  28. package/components/dropdown/demo/index.min.js +1 -1
  29. package/components/dropdown/dist/index.js +1 -1
  30. package/components/dropdown/dist/registered.js +1 -1
  31. package/components/form/demo/customize.html +6 -6
  32. package/components/form/demo/customize.js +19 -0
  33. package/components/form/demo/customize.md +203 -51
  34. package/components/form/demo/customize.min.js +2778 -2301
  35. package/components/form/demo/getting-started.min.js +2706 -2301
  36. package/components/form/demo/index.min.js +2706 -2301
  37. package/components/form/demo/registerDemoDeps.min.js +2341 -2262
  38. package/components/form/dist/auro-form.d.ts +122 -4
  39. package/components/form/dist/index.js +363 -37
  40. package/components/form/dist/registered.js +363 -37
  41. package/components/input/demo/api.md +1 -1
  42. package/components/input/demo/customize.html +1 -2
  43. package/components/input/demo/customize.md +56 -55
  44. package/components/input/demo/customize.min.js +132 -57
  45. package/components/input/demo/getting-started.min.js +132 -57
  46. package/components/input/demo/index.md +2 -2
  47. package/components/input/demo/index.min.js +132 -57
  48. package/components/input/dist/auro-input.d.ts +1 -1
  49. package/components/input/dist/base-input.d.ts +16 -0
  50. package/components/input/dist/index.js +132 -57
  51. package/components/input/dist/registered.js +132 -57
  52. package/components/menu/demo/api.md +41 -45
  53. package/components/menu/demo/customize.md +0 -28
  54. package/components/menu/demo/index.min.js +779 -1354
  55. package/components/menu/dist/auro-menu.d.ts +95 -110
  56. package/components/menu/dist/auro-menuoption.d.ts +32 -138
  57. package/components/menu/dist/index.js +753 -1308
  58. package/components/menu/dist/registered.js +765 -1308
  59. package/components/radio/demo/customize.min.js +2 -2
  60. package/components/radio/demo/getting-started.min.js +2 -2
  61. package/components/radio/demo/index.min.js +2 -2
  62. package/components/radio/dist/index.js +2 -2
  63. package/components/radio/dist/registered.js +2 -2
  64. package/components/select/demo/api.md +1 -0
  65. package/components/select/demo/customize.html +1 -2
  66. package/components/select/demo/customize.md +78 -3
  67. package/components/select/demo/customize.min.js +1140 -1577
  68. package/components/select/demo/getting-started.min.js +1140 -1577
  69. package/components/select/demo/index.min.js +1140 -1577
  70. package/components/select/demo/keyboard-behavior.md +18 -0
  71. package/components/select/dist/auro-select.d.ts +38 -2
  72. package/components/select/dist/index.js +177 -39
  73. package/components/select/dist/registered.js +177 -39
  74. package/components/select/dist/selectUtils.d.ts +24 -0
  75. package/custom-elements.json +606 -1031
  76. package/package.json +1 -1
  77. 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 = '202606221832';
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 = '202606221832';
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 = '202606221832';
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 = '202606221832';
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 = '202606221832';
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
 
@@ -41,12 +41,11 @@
41
41
  <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-hyperlink@latest/+esm" type="module"></script>
42
42
  <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest/+esm" type="module"></script>
43
43
  <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-button@latest/+esm" type="module"></script>
44
- <script type="module">
44
+ <script type="module" data-demo-script="true">
45
45
  import { renderPage } from './demo-support.min.js';
46
46
  await renderPage('./customize.md');
47
47
  import { initExamples } from "./customize.min.js";
48
48
  initExamples();
49
49
  </script>
50
- <script src="./customize.min.js" data-demo-script="true" type="module"></script>
51
50
  </body>
52
51
  </html>
@@ -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>