@aurodesignsystem-dev/auro-formkit 0.0.0-pr1492.4 → 0.0.0-pr1493.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 (153) hide show
  1. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +7 -0
  2. package/components/bibtemplate/dist/index.js +9 -1
  3. package/components/bibtemplate/dist/registered.js +9 -1
  4. package/components/checkbox/demo/css-only.html +57 -0
  5. package/components/checkbox/demo/css-only.md +146 -0
  6. package/components/checkbox/demo/customize.min.js +2 -2
  7. package/components/checkbox/demo/getting-started.min.js +2 -2
  8. package/components/checkbox/demo/index.min.js +2 -2
  9. package/components/checkbox/demo/pages.json +1 -1
  10. package/components/checkbox/demo/styles.min.css +1 -1
  11. package/components/checkbox/demo/why-checkbox.html +57 -0
  12. package/components/checkbox/demo/why-checkbox.md +86 -0
  13. package/components/checkbox/dist/index.js +2 -2
  14. package/components/checkbox/dist/registered.js +2 -2
  15. package/components/combobox/demo/css-only.html +57 -0
  16. package/components/combobox/demo/css-only.md +209 -0
  17. package/components/combobox/demo/customize.md +7 -3
  18. package/components/combobox/demo/customize.min.js +1846 -1804
  19. package/components/combobox/demo/getting-started.min.js +1846 -1804
  20. package/components/combobox/demo/index.min.js +1846 -1804
  21. package/components/combobox/demo/pages.json +1 -1
  22. package/components/combobox/demo/styles.min.css +1 -1
  23. package/components/combobox/demo/why-combobox.html +57 -0
  24. package/components/combobox/demo/why-combobox.md +113 -0
  25. package/components/combobox/dist/auro-combobox.d.ts +5 -0
  26. package/components/combobox/dist/index.js +796 -179
  27. package/components/combobox/dist/registered.js +796 -179
  28. package/components/counter/demo/css-only.html +57 -0
  29. package/components/counter/demo/css-only.md +184 -0
  30. package/components/counter/demo/customize.min.js +276 -16
  31. package/components/counter/demo/index.min.js +276 -16
  32. package/components/counter/demo/keyboard-behavior.md +1 -0
  33. package/components/counter/demo/pages.json +1 -1
  34. package/components/counter/demo/styles.min.css +1 -1
  35. package/components/counter/demo/why-counter.html +57 -0
  36. package/components/counter/demo/why-counter.md +108 -0
  37. package/components/counter/dist/index.js +5457 -193
  38. package/components/counter/dist/registered.js +5457 -193
  39. package/components/datepicker/demo/accessibility.md +54 -3
  40. package/components/datepicker/demo/api.md +65 -55
  41. package/components/datepicker/demo/css-only.html +57 -0
  42. package/components/datepicker/demo/css-only.md +151 -0
  43. package/components/datepicker/demo/customize.html +2 -0
  44. package/components/datepicker/demo/customize.js +19 -0
  45. package/components/datepicker/demo/customize.md +474 -298
  46. package/components/datepicker/demo/customize.min.js +36243 -0
  47. package/components/datepicker/demo/design.md +5 -3
  48. package/components/datepicker/demo/getting-started.md +6 -6
  49. package/components/datepicker/demo/index.js +5 -1
  50. package/components/datepicker/demo/index.md +113 -16
  51. package/components/datepicker/demo/index.min.js +2736 -398
  52. package/components/datepicker/demo/keyboard-behavior.md +201 -2
  53. package/components/datepicker/demo/pages.json +1 -1
  54. package/components/datepicker/demo/styles.min.css +1 -1
  55. package/components/datepicker/demo/voiceover.md +21 -12
  56. package/components/datepicker/demo/why-datepicker.html +57 -0
  57. package/components/datepicker/demo/why-datepicker.md +133 -0
  58. package/components/datepicker/dist/index.js +2650 -399
  59. package/components/datepicker/dist/registered.js +2650 -399
  60. package/components/datepicker/dist/src/auro-calendar-cell.d.ts +116 -14
  61. package/components/datepicker/dist/src/auro-calendar-month.d.ts +54 -1
  62. package/components/datepicker/dist/src/auro-calendar.d.ts +264 -0
  63. package/components/datepicker/dist/src/auro-datepicker.d.ts +189 -53
  64. package/components/datepicker/dist/src/datepickerKeyboardStrategy.d.ts +5 -3
  65. package/components/datepicker/dist/src/utilities.d.ts +0 -14
  66. package/components/dropdown/demo/accessibility.md +11 -0
  67. package/components/dropdown/demo/api.md +1 -0
  68. package/components/dropdown/demo/css-only.html +57 -0
  69. package/components/dropdown/demo/css-only.md +219 -0
  70. package/components/dropdown/demo/customize.md +3 -0
  71. package/components/dropdown/demo/customize.min.js +265 -13
  72. package/components/dropdown/demo/getting-started.min.js +265 -13
  73. package/components/dropdown/demo/index.min.js +265 -13
  74. package/components/dropdown/demo/keyboard-behavior.md +1 -0
  75. package/components/dropdown/demo/pages.json +1 -1
  76. package/components/dropdown/demo/styles.min.css +1 -1
  77. package/components/dropdown/demo/why-dropdown.html +57 -0
  78. package/components/dropdown/demo/why-dropdown.md +97 -0
  79. package/components/dropdown/dist/auro-dropdown.d.ts +36 -1
  80. package/components/dropdown/dist/index.js +265 -13
  81. package/components/dropdown/dist/registered.js +265 -13
  82. package/components/form/demo/css-only.html +57 -0
  83. package/components/form/demo/css-only.md +156 -0
  84. package/components/form/demo/customize.min.js +11085 -8074
  85. package/components/form/demo/getting-started.min.js +11085 -8074
  86. package/components/form/demo/index.min.js +11085 -8074
  87. package/components/form/demo/pages.json +1 -1
  88. package/components/form/demo/registerDemoDeps.min.js +11084 -8073
  89. package/components/form/demo/styles.min.css +1 -1
  90. package/components/form/demo/why-form.html +57 -0
  91. package/components/form/demo/why-form.md +101 -0
  92. package/components/input/demo/css-only.html +57 -0
  93. package/components/input/demo/css-only.md +199 -0
  94. package/components/input/demo/customize.md +625 -636
  95. package/components/input/demo/customize.min.js +150 -75
  96. package/components/input/demo/getting-started.md +16 -6
  97. package/components/input/demo/getting-started.min.js +150 -75
  98. package/components/input/demo/index.min.js +150 -75
  99. package/components/input/demo/pages.json +1 -1
  100. package/components/input/demo/styles.min.css +1 -1
  101. package/components/input/demo/why-input.html +57 -0
  102. package/components/input/demo/why-input.md +121 -0
  103. package/components/input/dist/auro-input-util.d.ts +1 -1
  104. package/components/input/dist/base-input.d.ts +16 -0
  105. package/components/input/dist/index.js +150 -75
  106. package/components/input/dist/registered.js +150 -75
  107. package/components/input/dist/utilities.d.ts +1 -2
  108. package/components/menu/demo/api.md +41 -45
  109. package/components/menu/demo/css-only.html +57 -0
  110. package/components/menu/demo/css-only.md +166 -0
  111. package/components/menu/demo/customize.md +0 -28
  112. package/components/menu/demo/index.min.js +779 -1354
  113. package/components/menu/demo/pages.json +1 -1
  114. package/components/menu/demo/styles.min.css +1 -1
  115. package/components/menu/demo/why-menu.html +57 -0
  116. package/components/menu/demo/why-menu.md +104 -0
  117. package/components/menu/dist/auro-menu.d.ts +95 -110
  118. package/components/menu/dist/auro-menuoption.d.ts +32 -138
  119. package/components/menu/dist/index.js +753 -1308
  120. package/components/menu/dist/registered.js +765 -1308
  121. package/components/radio/demo/css-only.html +57 -0
  122. package/components/radio/demo/css-only.md +151 -0
  123. package/components/radio/demo/customize.min.js +1764 -0
  124. package/components/radio/demo/demo-support.min.js +55807 -0
  125. package/components/radio/demo/getting-started.js +1 -1
  126. package/components/radio/demo/getting-started.md +1 -1
  127. package/components/radio/demo/getting-started.min.js +1783 -0
  128. package/components/radio/demo/index.min.js +2 -2
  129. package/components/radio/demo/pages.json +1 -1
  130. package/components/radio/demo/styles.min.css +1 -1
  131. package/components/radio/demo/why-radio.html +57 -0
  132. package/components/radio/demo/why-radio.md +92 -0
  133. package/components/radio/dist/index.js +2 -2
  134. package/components/radio/dist/registered.js +2 -2
  135. package/components/select/demo/api.md +1 -0
  136. package/components/select/demo/css-only.html +57 -0
  137. package/components/select/demo/css-only.md +203 -0
  138. package/components/select/demo/customize.md +78 -3
  139. package/components/select/demo/customize.min.js +1341 -1533
  140. package/components/select/demo/getting-started.min.js +1341 -1533
  141. package/components/select/demo/index.min.js +1341 -1533
  142. package/components/select/demo/keyboard-behavior.md +19 -0
  143. package/components/select/demo/pages.json +1 -1
  144. package/components/select/demo/styles.min.css +1 -1
  145. package/components/select/demo/why-select.html +57 -0
  146. package/components/select/demo/why-select.md +128 -0
  147. package/components/select/dist/auro-select.d.ts +38 -2
  148. package/components/select/dist/index.js +435 -52
  149. package/components/select/dist/registered.js +435 -52
  150. package/components/select/dist/selectUtils.d.ts +12 -0
  151. package/custom-elements.json +3051 -2553
  152. package/package.json +8 -8
  153. package/components/menu/dist/auro-menu.context.d.ts +0 -238
@@ -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>