@aurodesignsystem-dev/auro-formkit 0.0.0-pr1503.3 → 0.0.0-pr1503.5
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/bibtemplate/dist/index.js +1 -1
- package/components/bibtemplate/dist/registered.js +1 -1
- package/components/checkbox/demo/accessibility.md +1 -1
- package/components/checkbox/demo/customize.html +1 -2
- package/components/checkbox/demo/customize.min.js +23 -8
- package/components/checkbox/demo/getting-started.min.js +23 -8
- package/components/checkbox/demo/index.min.js +23 -8
- package/components/checkbox/dist/index.js +23 -8
- package/components/checkbox/dist/registered.js +23 -8
- package/components/combobox/README.md +1 -1
- package/components/combobox/demo/accessibility.md +1 -1
- package/components/combobox/demo/api.md +2 -2
- package/components/combobox/demo/customize.html +1 -2
- package/components/combobox/demo/customize.md +166 -142
- package/components/combobox/demo/customize.min.js +2515 -2316
- package/components/combobox/demo/getting-started.min.js +2515 -2312
- package/components/combobox/demo/index.md +2 -1
- package/components/combobox/demo/index.min.js +2515 -2312
- package/components/combobox/demo/keyboard-behavior.md +3 -146
- package/components/combobox/demo/readme.md +1 -1
- package/components/combobox/demo/why-combobox.md +2 -2
- package/components/combobox/dist/auro-combobox.d.ts +49 -15
- package/components/combobox/dist/index.js +1462 -753
- package/components/combobox/dist/registered.js +1462 -753
- package/components/counter/demo/customize.min.js +188 -244
- package/components/counter/demo/index.min.js +188 -244
- package/components/counter/dist/auro-counter.d.ts +0 -8
- package/components/counter/dist/index.js +188 -244
- package/components/counter/dist/registered.js +188 -244
- package/components/datepicker/demo/accessibility.md +20 -10
- package/components/datepicker/demo/api.md +65 -62
- package/components/datepicker/demo/customize.md +180 -40
- package/components/datepicker/demo/customize.min.js +1690 -777
- package/components/datepicker/demo/getting-started.md +118 -2
- package/components/datepicker/demo/index.min.js +1690 -759
- package/components/datepicker/demo/keyboard-behavior.md +3 -3
- package/components/datepicker/demo/voiceover.md +4 -4
- package/components/datepicker/demo/why-datepicker.md +2 -2
- package/components/datepicker/dist/{src/auro-calendar-cell.d.ts → auro-calendar-cell.d.ts} +48 -3
- package/components/datepicker/dist/{src/auro-calendar.d.ts → auro-calendar.d.ts} +188 -10
- package/components/datepicker/dist/{src/auro-datepicker.d.ts → auro-datepicker.d.ts} +89 -6
- package/components/datepicker/dist/blackoutUtils.d.ts +43 -0
- package/components/datepicker/dist/index.js +1690 -759
- package/components/datepicker/dist/registered.js +1690 -759
- package/components/dropdown/demo/customize.html +3 -0
- package/components/dropdown/demo/customize.min.js +142 -208
- package/components/dropdown/demo/getting-started.min.js +131 -207
- package/components/dropdown/demo/index.min.js +131 -207
- package/components/dropdown/dist/auro-dropdown.d.ts +17 -1
- package/components/dropdown/dist/index.js +131 -207
- package/components/dropdown/dist/registered.js +131 -207
- package/components/form/demo/api.md +3 -3
- package/components/form/demo/customize.html +6 -6
- package/components/form/demo/customize.md +535 -135
- package/components/form/demo/customize.min.js +6307 -4378
- package/components/form/demo/getting-started.md +344 -96
- package/components/form/demo/getting-started.min.js +6255 -4378
- package/components/form/demo/index.min.js +6206 -4378
- package/components/form/demo/registerDemoDeps.min.js +5827 -4333
- package/components/form/dist/auro-form.d.ts +128 -10
- package/components/form/dist/index.js +377 -43
- package/components/form/dist/registered.js +377 -43
- package/components/input/demo/accessibility.md +1 -1
- package/components/input/demo/api.md +58 -57
- package/components/input/demo/customize.html +1 -2
- package/components/input/demo/customize.md +62 -61
- package/components/input/demo/customize.min.js +396 -275
- package/components/input/demo/getting-started.min.js +396 -275
- package/components/input/demo/index.min.js +396 -275
- package/components/input/dist/auro-input.d.ts +1 -1
- package/components/input/dist/base-input.d.ts +60 -81
- package/components/input/dist/index.js +409 -276
- package/components/input/dist/registered.js +396 -275
- package/components/input/dist/utilities.d.ts +10 -1
- package/components/menu/demo/accessibility.md +9 -4
- package/components/menu/demo/api.md +48 -45
- package/components/menu/demo/css-only.md +26 -19
- package/components/menu/demo/customize.md +307 -75
- package/components/menu/demo/design.md +1 -1
- package/components/menu/demo/getting-started.md +144 -7
- package/components/menu/demo/index.min.js +961 -1341
- package/components/menu/demo/keyboard-behavior.md +83 -4
- package/components/menu/demo/voiceover.md +21 -14
- package/components/menu/demo/why-menu.md +8 -9
- package/components/menu/dist/auro-menu-utils.d.ts +19 -0
- package/components/menu/dist/auro-menu.d.ts +97 -116
- package/components/menu/dist/auro-menuoption.d.ts +39 -133
- package/components/menu/dist/index.js +823 -1309
- package/components/menu/dist/registered.js +835 -1309
- package/components/radio/demo/accessibility.md +1 -1
- package/components/radio/demo/customize.min.js +23 -8
- package/components/radio/demo/getting-started.min.js +23 -8
- package/components/radio/demo/index.min.js +23 -8
- package/components/radio/dist/index.js +23 -8
- package/components/radio/dist/registered.js +23 -8
- package/components/select/demo/accessibility.md +6 -1
- package/components/select/demo/api.md +3 -2
- package/components/select/demo/customize.html +1 -2
- package/components/select/demo/customize.md +210 -5
- package/components/select/demo/customize.min.js +1613 -1854
- package/components/select/demo/design.md +10 -10
- package/components/select/demo/getting-started.md +1 -1
- package/components/select/demo/getting-started.min.js +1617 -1903
- package/components/select/demo/index.md +2 -2
- package/components/select/demo/index.min.js +1613 -1854
- package/components/select/demo/keyboard-behavior.md +81 -54
- package/components/select/demo/voiceover.md +28 -15
- package/components/select/dist/auro-select.d.ts +70 -12
- package/components/select/dist/index.js +580 -315
- package/components/select/dist/registered.js +580 -315
- package/components/select/dist/selectUtils.d.ts +24 -0
- package/custom-elements.json +8071 -7919
- package/package.json +7 -3
- package/components/checkbox/demo/customize.js +0 -22
- package/components/checkbox/demo/demo-support.js +0 -1
- package/components/checkbox/demo/getting-started.js +0 -22
- package/components/checkbox/demo/index.js +0 -8
- package/components/checkbox/demo/styles.scss +0 -1
- package/components/combobox/demo/customize.js +0 -24
- package/components/combobox/demo/demo-support.js +0 -1
- package/components/combobox/demo/getting-started.js +0 -21
- package/components/combobox/demo/index.js +0 -23
- package/components/combobox/demo/styles.scss +0 -1
- package/components/counter/demo/customize.js +0 -21
- package/components/counter/demo/demo-support.js +0 -1
- package/components/counter/demo/index.js +0 -21
- package/components/counter/demo/styles.scss +0 -1
- package/components/datepicker/demo/customize.js +0 -19
- package/components/datepicker/demo/demo-support.js +0 -1
- package/components/datepicker/demo/index.js +0 -23
- package/components/datepicker/demo/styles.scss +0 -1
- package/components/dropdown/demo/customize.js +0 -9
- package/components/dropdown/demo/demo-support.js +0 -1
- package/components/dropdown/demo/getting-started.js +0 -9
- package/components/dropdown/demo/index.js +0 -16
- package/components/dropdown/demo/styles.scss +0 -1
- package/components/form/demo/customize.js +0 -9
- package/components/form/demo/demo-support.js +0 -1
- package/components/form/demo/getting-started.js +0 -9
- package/components/form/demo/index.js +0 -5
- package/components/form/demo/registerDemoDeps.js +0 -23
- package/components/form/demo/styles.scss +0 -1
- package/components/input/demo/customize.js +0 -25
- package/components/input/demo/demo-support.js +0 -1
- package/components/input/demo/getting-started.js +0 -8
- package/components/input/demo/index.js +0 -8
- package/components/input/demo/styles.css +0 -974
- package/components/input/demo/styles.scss +0 -1
- package/components/menu/demo/demo-support.js +0 -1
- package/components/menu/demo/index.js +0 -25
- package/components/menu/demo/styles.scss +0 -1
- package/components/menu/dist/auro-menu.context.d.ts +0 -238
- package/components/radio/demo/customize.js +0 -22
- package/components/radio/demo/demo-support.js +0 -1
- package/components/radio/demo/getting-started.js +0 -24
- package/components/radio/demo/index.js +0 -8
- package/components/radio/demo/styles.scss +0 -1
- package/components/select/demo/customize.js +0 -11
- package/components/select/demo/demo-support.js +0 -1
- package/components/select/demo/getting-started.js +0 -26
- package/components/select/demo/index.js +0 -11
- package/components/select/demo/styles.scss +0 -1
- /package/components/counter/dist/styles/{counter-wrapper-color-css.d.ts → counter-group-color-css.d.ts} +0 -0
- /package/components/datepicker/dist/{src/auro-calendar-month.d.ts → auro-calendar-month.d.ts} +0 -0
- /package/components/datepicker/dist/{src/buttonVersion.d.ts → buttonVersion.d.ts} +0 -0
- /package/components/datepicker/dist/{src/datepickerKeyboardStrategy.d.ts → datepickerKeyboardStrategy.d.ts} +0 -0
- /package/components/datepicker/dist/{src/iconVersion.d.ts → iconVersion.d.ts} +0 -0
- /package/components/datepicker/dist/{src/index.d.ts → index.d.ts} +0 -0
- /package/components/datepicker/dist/{src/popoverVersion.d.ts → popoverVersion.d.ts} +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/classic/color-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/classic/style-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/color-calendar-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/color-cell-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/color-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/color-month-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/shapeSize-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/snowflake/color-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/snowflake/style-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/style-auro-calendar-cell-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/style-auro-calendar-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/style-auro-calendar-month-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/style-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/tokens-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/utilities.d.ts → utilities.d.ts} +0 -0
- /package/components/datepicker/dist/{src/utilitiesCalendar.d.ts → utilitiesCalendar.d.ts} +0 -0
- /package/components/datepicker/dist/{src/utilitiesCalendarRender.d.ts → utilitiesCalendarRender.d.ts} +0 -0
- /package/components/datepicker/dist/{src/vendor → vendor}/wc-range-datepicker/day.d.ts +0 -0
- /package/components/datepicker/dist/{src/vendor → vendor}/wc-range-datepicker/range-datepicker-calendar.d.ts +0 -0
- /package/components/datepicker/dist/{src/vendor → vendor}/wc-range-datepicker/range-datepicker-cell.d.ts +0 -0
- /package/components/datepicker/dist/{src/vendor → vendor}/wc-range-datepicker/range-datepicker.d.ts +0 -0
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
<auro-anchorlink fluid href="#layout" class="level2 body-xs">Shape, Size & Layout</auro-anchorlink>
|
|
9
9
|
<auro-anchorlink fluid href="#background" class="level2 body-xs">Light vs. Dark Background</auro-anchorlink>
|
|
10
10
|
<auro-anchorlink fluid href="#displayValue" class="level2 body-xs">Custom Display Value</auro-anchorlink>
|
|
11
|
+
<auro-anchorlink fluid href="#resetOption" class="level2 body-xs">Reset Option</auro-anchorlink>
|
|
11
12
|
<auro-anchorlink fluid href="#noCheckmark" class="level2 body-xs">No Checkmark</auro-anchorlink>
|
|
12
13
|
<auro-anchorlink fluid href="#fluid" class="level2 body-xs">Fluid</auro-anchorlink>
|
|
13
14
|
<auro-anchorlink fluid href="#flexMenuWidth" class="level2 body-xs">Flex Menu Width</auro-anchorlink>
|
|
@@ -22,8 +23,10 @@
|
|
|
22
23
|
<auro-anchorlink fluid href="#cssParts" class="level2 body-xs">CSS Shadow Parts</auro-anchorlink>
|
|
23
24
|
<auro-anchorlink fluid href="#customBehavior">Behavior</auro-anchorlink>
|
|
24
25
|
<auro-anchorlink fluid href="#autoComplete" class="level2 body-xs">Autocomplete</auro-anchorlink>
|
|
26
|
+
<auro-anchorlink fluid href="#typeAhead" class="level2 body-xs">Type-Ahead</auro-anchorlink>
|
|
25
27
|
<auro-anchorlink fluid href="#disableComponent" class="level2 body-xs">Disable Component</auro-anchorlink>
|
|
26
28
|
<auro-anchorlink fluid href="#disableOptions" class="level2 body-xs">Disable Option(s)</auro-anchorlink>
|
|
29
|
+
<auro-anchorlink fluid href="#submenus" class="level2 body-xs">Submenus</auro-anchorlink>
|
|
27
30
|
<auro-anchorlink fluid href="#requireSelection" class="level2 body-xs">Require Selection</auro-anchorlink>
|
|
28
31
|
<auro-anchorlink fluid href="#forceError" class="level2 body-xs">Force Error State</auro-anchorlink>
|
|
29
32
|
<auro-anchorlink fluid href="#customValidation" class="level2 body-xs">Custom Validation</auro-anchorlink>
|
|
@@ -37,7 +40,7 @@
|
|
|
37
40
|
<auro-header level="2" id="appearance">Appearance</auro-header>
|
|
38
41
|
<auro-header level="3" id="layout">Shape, Size & Layout</auro-header>
|
|
39
42
|
<p>The <code>shape</code>, <code>size</code> and <code>layout</code> attributes work in collaboration to control the overall architecture of the component.</p>
|
|
40
|
-
<p>See the <
|
|
43
|
+
<p>See the <auro-hyperlink href="design">Design page</auro-hyperlink> for a detailed breakdown.</p>
|
|
41
44
|
<auro-header level="3" id="background">Light vs. Dark Background</auro-header>
|
|
42
45
|
<p>The <code>appearance</code> attribute defines whether the component renders on lighter or darker backgrounds. Supported values are <code>default</code> and <code>inverse</code>. The default value is <code>default</code>.</p>
|
|
43
46
|
<div class="exampleWrapper">
|
|
@@ -160,6 +163,46 @@
|
|
|
160
163
|
</auro-select></code></pre>
|
|
161
164
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
162
165
|
</auro-accordion>
|
|
166
|
+
<auro-header level="3" id="resetOption">Adding a reset option</auro-header>
|
|
167
|
+
<p><code>auro-select</code> has no built-in way to clear a selection from the trigger. If a user picks the wrong option on an optional field, they have no way to reset their selection.</p>
|
|
168
|
+
<p>Add a selectable entry at the top of the menu with whatever label fits the field ("None," "N/A," "No preference," etc.). <code>value=""</code> won't work — <code>auro-menu</code> treats an empty string as a clear-selection signal.</p>
|
|
169
|
+
<p>Use a non-empty sentinel like <code>value="none"</code> instead, choosing one that cannot collide with any real domain value. Either accept <code>"none"</code> on the backend, or coerce it in your submit handler:</p>
|
|
170
|
+
<pre><code>payload.suffix = payload.suffix === "none" ? "" : payload.suffix;</code></pre>
|
|
171
|
+
<div class="exampleWrapper">
|
|
172
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/none-option.html) -->
|
|
173
|
+
<!-- The below content is automatically added from ./../apiExamples/none-option.html -->
|
|
174
|
+
<auro-select>
|
|
175
|
+
<span slot="bib.fullscreen.headline">Suffix</span>
|
|
176
|
+
<span slot="label">Suffix</span>
|
|
177
|
+
<span slot="helpText">If shown on your government-issued travel ID.</span>
|
|
178
|
+
<auro-menu>
|
|
179
|
+
<auro-menuoption value="none">None</auro-menuoption>
|
|
180
|
+
<auro-menuoption value="Jr">Jr</auro-menuoption>
|
|
181
|
+
<auro-menuoption value="Sr">Sr</auro-menuoption>
|
|
182
|
+
<auro-menuoption value="II">II</auro-menuoption>
|
|
183
|
+
<auro-menuoption value="III">III</auro-menuoption>
|
|
184
|
+
</auro-menu>
|
|
185
|
+
</auro-select>
|
|
186
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
187
|
+
</div>
|
|
188
|
+
<auro-accordion alignRight>
|
|
189
|
+
<span slot="trigger">See code</span>
|
|
190
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/none-option.html) -->
|
|
191
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/none-option.html -->
|
|
192
|
+
<pre class="language-html"><code class="language-html"><auro-select>
|
|
193
|
+
<span slot="bib.fullscreen.headline">Suffix</span>
|
|
194
|
+
<span slot="label">Suffix</span>
|
|
195
|
+
<span slot="helpText">If shown on your government-issued travel ID.</span>
|
|
196
|
+
<auro-menu>
|
|
197
|
+
<auro-menuoption value="none">None</auro-menuoption>
|
|
198
|
+
<auro-menuoption value="Jr">Jr</auro-menuoption>
|
|
199
|
+
<auro-menuoption value="Sr">Sr</auro-menuoption>
|
|
200
|
+
<auro-menuoption value="II">II</auro-menuoption>
|
|
201
|
+
<auro-menuoption value="III">III</auro-menuoption>
|
|
202
|
+
</auro-menu>
|
|
203
|
+
</auro-select></code></pre>
|
|
204
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
205
|
+
</auro-accordion>
|
|
163
206
|
<auro-header level="3" id="noCheckmark">Hide checkmark indicators</auro-header>
|
|
164
207
|
<p>By default, the select component displays a checkmark next to the currently selected option. To hide the checkmark indicator, set the <code>nocheckmark</code> attribute on the <code>auro-menu</code> element.</p>
|
|
165
208
|
<div class="exampleWrapper">
|
|
@@ -660,9 +703,11 @@
|
|
|
660
703
|
<auro-select class="css-parts-demo">
|
|
661
704
|
<span slot="label">CSS Parts Example</span>
|
|
662
705
|
<span slot="helpText">This select has custom styles applied via CSS Shadow Parts.</span>
|
|
706
|
+
<auro-menu>
|
|
663
707
|
<auro-menuoption value="one">Option One</auro-menuoption>
|
|
664
708
|
<auro-menuoption value="two">Option Two</auro-menuoption>
|
|
665
709
|
<auro-menuoption value="three">Option Three</auro-menuoption>
|
|
710
|
+
</auro-menu>
|
|
666
711
|
</auro-select>
|
|
667
712
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
668
713
|
</div>
|
|
@@ -687,9 +732,11 @@
|
|
|
687
732
|
<auro-select class="css-parts-demo">
|
|
688
733
|
<span slot="label">CSS Parts Example</span>
|
|
689
734
|
<span slot="helpText">This select has custom styles applied via CSS Shadow Parts.</span>
|
|
690
|
-
<auro-
|
|
691
|
-
|
|
692
|
-
|
|
735
|
+
<auro-menu>
|
|
736
|
+
<auro-menuoption value="one">Option One</auro-menuoption>
|
|
737
|
+
<auro-menuoption value="two">Option Two</auro-menuoption>
|
|
738
|
+
<auro-menuoption value="three">Option Three</auro-menuoption>
|
|
739
|
+
</auro-menu>
|
|
693
740
|
</auro-select></code></pre>
|
|
694
741
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
695
742
|
</auro-accordion>
|
|
@@ -745,9 +792,79 @@
|
|
|
745
792
|
</form></code></pre>
|
|
746
793
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
747
794
|
</auro-accordion>
|
|
795
|
+
<auro-header level="3" id="typeAhead">Type-Ahead</auro-header>
|
|
796
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/customize/typeahead.md) -->
|
|
797
|
+
<!-- The below content is automatically added from ./../docs/partials/customize/typeahead.md -->
|
|
798
|
+
<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><select></code> behavior. Matching uses the rendered text rather than the <code>value</code> attribute.</p>
|
|
799
|
+
<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; <code>disabled</code>, <code>hidden</code>, and <code>static</code> options are skipped.</p>
|
|
800
|
+
<div class="note">
|
|
801
|
+
<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><auro-select></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>.
|
|
802
|
+
</div>
|
|
803
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
804
|
+
<div class="exampleWrapper">
|
|
805
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/typeahead.html) -->
|
|
806
|
+
<!-- The below content is automatically added from ./../apiExamples/typeahead.html -->
|
|
807
|
+
<auro-select>
|
|
808
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
809
|
+
<span slot="bib.fullscreen.headline">Airport</span>
|
|
810
|
+
<span slot="label">Destination airport</span>
|
|
811
|
+
<auro-menu>
|
|
812
|
+
<auro-menuoption value="ANC">Anchorage</auro-menuoption>
|
|
813
|
+
<auro-menuoption value="ATL">Atlanta</auro-menuoption>
|
|
814
|
+
<auro-menuoption value="AUS">Austin</auro-menuoption>
|
|
815
|
+
<auro-menuoption value="BOS">Boston</auro-menuoption>
|
|
816
|
+
<auro-menuoption value="DEN">Denver</auro-menuoption>
|
|
817
|
+
<auro-menuoption value="DFW" disabled>Dallas/Fort Worth</auro-menuoption>
|
|
818
|
+
<auro-menuoption value="DTW">Detroit</auro-menuoption>
|
|
819
|
+
<auro-menuoption value="HNL">Honolulu</auro-menuoption>
|
|
820
|
+
<auro-menuoption value="LAX">Los Angeles</auro-menuoption>
|
|
821
|
+
<auro-menuoption value="MIA">Miami</auro-menuoption>
|
|
822
|
+
<auro-menuoption value="ORD">Chicago</auro-menuoption>
|
|
823
|
+
<auro-menuoption value="PDX">Portland</auro-menuoption>
|
|
824
|
+
<auro-menuoption value="PHX">Phoenix</auro-menuoption>
|
|
825
|
+
<auro-menuoption value="SAN">San Diego</auro-menuoption>
|
|
826
|
+
<auro-menuoption value="SEA">Seattle</auro-menuoption>
|
|
827
|
+
<auro-menuoption value="SFO">San Francisco</auro-menuoption>
|
|
828
|
+
<auro-menuoption value="SJC" disabled>San Jose</auro-menuoption>
|
|
829
|
+
<auro-menuoption value="SLC">Salt Lake City</auro-menuoption>
|
|
830
|
+
</auro-menu>
|
|
831
|
+
</auro-select>
|
|
832
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
833
|
+
</div>
|
|
834
|
+
<auro-accordion alignRight>
|
|
835
|
+
<span slot="trigger">See code</span>
|
|
836
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/typeahead.html) -->
|
|
837
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/typeahead.html -->
|
|
838
|
+
<pre class="language-html"><code class="language-html"><auro-select>
|
|
839
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
840
|
+
<span slot="bib.fullscreen.headline">Airport</span>
|
|
841
|
+
<span slot="label">Destination airport</span>
|
|
842
|
+
<auro-menu>
|
|
843
|
+
<auro-menuoption value="ANC">Anchorage</auro-menuoption>
|
|
844
|
+
<auro-menuoption value="ATL">Atlanta</auro-menuoption>
|
|
845
|
+
<auro-menuoption value="AUS">Austin</auro-menuoption>
|
|
846
|
+
<auro-menuoption value="BOS">Boston</auro-menuoption>
|
|
847
|
+
<auro-menuoption value="DEN">Denver</auro-menuoption>
|
|
848
|
+
<auro-menuoption value="DFW" disabled>Dallas/Fort Worth</auro-menuoption>
|
|
849
|
+
<auro-menuoption value="DTW">Detroit</auro-menuoption>
|
|
850
|
+
<auro-menuoption value="HNL">Honolulu</auro-menuoption>
|
|
851
|
+
<auro-menuoption value="LAX">Los Angeles</auro-menuoption>
|
|
852
|
+
<auro-menuoption value="MIA">Miami</auro-menuoption>
|
|
853
|
+
<auro-menuoption value="ORD">Chicago</auro-menuoption>
|
|
854
|
+
<auro-menuoption value="PDX">Portland</auro-menuoption>
|
|
855
|
+
<auro-menuoption value="PHX">Phoenix</auro-menuoption>
|
|
856
|
+
<auro-menuoption value="SAN">San Diego</auro-menuoption>
|
|
857
|
+
<auro-menuoption value="SEA">Seattle</auro-menuoption>
|
|
858
|
+
<auro-menuoption value="SFO">San Francisco</auro-menuoption>
|
|
859
|
+
<auro-menuoption value="SJC" disabled>San Jose</auro-menuoption>
|
|
860
|
+
<auro-menuoption value="SLC">Salt Lake City</auro-menuoption>
|
|
861
|
+
</auro-menu>
|
|
862
|
+
</auro-select></code></pre>
|
|
863
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
864
|
+
</auro-accordion>
|
|
748
865
|
<auro-header level="3" id="disableComponent">Disable Component</auro-header>
|
|
749
866
|
<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
|
-
<p>When the component is disabled and part of a form, the
|
|
867
|
+
<p>When the component is disabled and part of a form, the component's value is not included in the form submission (matching native HTML behavior for disabled form controls).</p>
|
|
751
868
|
<p class="note">
|
|
752
869
|
<strong>Note:</strong> If the component is marked as both <strong>invalid</strong> and <code>disabled</code>, the <strong>invalid</strong> state UI/UX and functional behavior are ignored. The <code>disabled</code> UI/UX and functional behavior works normally.
|
|
753
870
|
</p>
|
|
@@ -790,6 +907,9 @@
|
|
|
790
907
|
<p>The component may be rendered with one or more <code>disabled</code> options. When navigating the list of options with the keyboard or assistive technology to mark the next or previous option as active, disabled options will be skipped, jumping to the next enabled option.</p>
|
|
791
908
|
<p>While using the pointer to mark options as active, hovering over disabled options will be ignored and the previous active option will remain active.</p>
|
|
792
909
|
<p class="note">
|
|
910
|
+
<strong>Note:</strong> Setting the component <code>value</code> to one that matches a <code>disabled</code> or <code>static</code> option — whether via the <code>value</code> attribute or programmatic assignment (e.g. <code>el.value = 'x'</code>) — is rejected: <code>value</code> and <code>optionSelected</code> are cleared to <code>undefined</code>. A value matching a <code>hidden</code> option is still applied.
|
|
911
|
+
</p>
|
|
912
|
+
<p class="note">
|
|
793
913
|
<strong>Note:</strong> If the currently <code>selected</code> option is marked as <code>disabled</code>, the component value is reset to <code>undefined</code> and the component validation workflow is performed (e.g., if the component instance is <code>required</code> it will set <code>validity="valueMissing".</code>).
|
|
794
914
|
</p>
|
|
795
915
|
<p class="note">
|
|
@@ -830,6 +950,91 @@
|
|
|
830
950
|
</auro-select></code></pre>
|
|
831
951
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
832
952
|
</auro-accordion>
|
|
953
|
+
<auro-header level="3" id="submenus">Submenus</auro-header>
|
|
954
|
+
<p>Options may be organized into nested groups by placing additional <code><auro-menu></code> elements inside the top-level <code><auro-menu></code>. Use <code><hr></code> elements to add visual dividers between groups. Nested groups receive an indent and an <code>aria-label="submenu"</code> so that assistive technologies can announce the grouping.</p>
|
|
955
|
+
<div class="exampleWrapper">
|
|
956
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/with-submenus.html) -->
|
|
957
|
+
<!-- The below content is automatically added from ./../apiExamples/with-submenus.html -->
|
|
958
|
+
<auro-select placeholder="Placeholder Text">
|
|
959
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
960
|
+
<span slot="label">Label</span>
|
|
961
|
+
<auro-menu>
|
|
962
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
963
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
964
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
965
|
+
<hr>
|
|
966
|
+
<auro-menu>
|
|
967
|
+
<auro-menuoption value="apples">Apples</auro-menuoption>
|
|
968
|
+
<auro-menuoption value="oranges">Oranges</auro-menuoption>
|
|
969
|
+
<auro-menuoption value="pears">Pears</auro-menuoption>
|
|
970
|
+
<auro-menuoption value="grapes">Grapes</auro-menuoption>
|
|
971
|
+
<auro-menuoption value="kiwi">Kiwi</auro-menuoption>
|
|
972
|
+
<hr>
|
|
973
|
+
<auro-menu>
|
|
974
|
+
<auro-menuoption value="person">Person</auro-menuoption>
|
|
975
|
+
<auro-menuoption value="woman">Woman</auro-menuoption>
|
|
976
|
+
<auro-menuoption value="man">Man</auro-menuoption>
|
|
977
|
+
<auro-menuoption value="camera">Camera</auro-menuoption>
|
|
978
|
+
<auro-menuoption value="tv">TV</auro-menuoption>
|
|
979
|
+
</auro-menu>
|
|
980
|
+
</auro-menu>
|
|
981
|
+
<hr>
|
|
982
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
983
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
984
|
+
<hr>
|
|
985
|
+
<auro-menu>
|
|
986
|
+
<auro-menuoption value="cars">Cars</auro-menuoption>
|
|
987
|
+
<auro-menuoption value="trucks">Trucks</auro-menuoption>
|
|
988
|
+
<auro-menuoption value="boats">Boats</auro-menuoption>
|
|
989
|
+
<auro-menuoption value="planes">Planes</auro-menuoption>
|
|
990
|
+
<auro-menuoption value="motorcycles">Motorcycles</auro-menuoption>
|
|
991
|
+
</auro-menu>
|
|
992
|
+
</auro-menu>
|
|
993
|
+
</auro-select>
|
|
994
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
995
|
+
</div>
|
|
996
|
+
<auro-accordion alignRight>
|
|
997
|
+
<span slot="trigger">See code</span>
|
|
998
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/with-submenus.html) -->
|
|
999
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/with-submenus.html -->
|
|
1000
|
+
<pre class="language-html"><code class="language-html"><auro-select placeholder="Placeholder Text">
|
|
1001
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1002
|
+
<span slot="label">Label</span>
|
|
1003
|
+
<auro-menu>
|
|
1004
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1005
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
1006
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
1007
|
+
<hr>
|
|
1008
|
+
<auro-menu>
|
|
1009
|
+
<auro-menuoption value="apples">Apples</auro-menuoption>
|
|
1010
|
+
<auro-menuoption value="oranges">Oranges</auro-menuoption>
|
|
1011
|
+
<auro-menuoption value="pears">Pears</auro-menuoption>
|
|
1012
|
+
<auro-menuoption value="grapes">Grapes</auro-menuoption>
|
|
1013
|
+
<auro-menuoption value="kiwi">Kiwi</auro-menuoption>
|
|
1014
|
+
<hr>
|
|
1015
|
+
<auro-menu>
|
|
1016
|
+
<auro-menuoption value="person">Person</auro-menuoption>
|
|
1017
|
+
<auro-menuoption value="woman">Woman</auro-menuoption>
|
|
1018
|
+
<auro-menuoption value="man">Man</auro-menuoption>
|
|
1019
|
+
<auro-menuoption value="camera">Camera</auro-menuoption>
|
|
1020
|
+
<auro-menuoption value="tv">TV</auro-menuoption>
|
|
1021
|
+
</auro-menu>
|
|
1022
|
+
</auro-menu>
|
|
1023
|
+
<hr>
|
|
1024
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
1025
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
1026
|
+
<hr>
|
|
1027
|
+
<auro-menu>
|
|
1028
|
+
<auro-menuoption value="cars">Cars</auro-menuoption>
|
|
1029
|
+
<auro-menuoption value="trucks">Trucks</auro-menuoption>
|
|
1030
|
+
<auro-menuoption value="boats">Boats</auro-menuoption>
|
|
1031
|
+
<auro-menuoption value="planes">Planes</auro-menuoption>
|
|
1032
|
+
<auro-menuoption value="motorcycles">Motorcycles</auro-menuoption>
|
|
1033
|
+
</auro-menu>
|
|
1034
|
+
</auro-menu>
|
|
1035
|
+
</auro-select></code></pre>
|
|
1036
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1037
|
+
</auro-accordion>
|
|
833
1038
|
<auro-header level="3" id="requireSelection">Require selection of an option</auro-header>
|
|
834
1039
|
<p>Certain use cases may require the guest to make a selection from the component in order to continue the intended work flow (e.g. form submission).</p>
|
|
835
1040
|
<p>When the component is marked required:</p>
|