@aurodesignsystem-dev/auro-formkit 0.0.0-pr1422.0 → 0.0.0-pr1422.2
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/auro-bibtemplate.d.ts +66 -0
- package/components/bibtemplate/dist/buttonVersion.d.ts +2 -0
- package/components/bibtemplate/dist/headerVersion.d.ts +2 -0
- package/components/bibtemplate/dist/iconVersion.d.ts +2 -0
- package/components/bibtemplate/dist/index.d.ts +2 -0
- package/components/bibtemplate/dist/index.js +395 -0
- package/components/bibtemplate/dist/registered.js +395 -0
- package/components/bibtemplate/dist/styles/color-css.d.ts +2 -0
- package/components/bibtemplate/dist/styles/style-css.d.ts +2 -0
- package/components/bibtemplate/dist/styles/tokens-css.d.ts +2 -0
- package/components/checkbox/demo/api.md +489 -0
- package/components/checkbox/demo/api.min.js +2133 -0
- package/components/checkbox/demo/index.md +55 -0
- package/components/checkbox/demo/index.min.js +2108 -0
- package/components/checkbox/demo/keyboardBehavior.md +0 -0
- package/components/checkbox/demo/readme.md +142 -0
- package/components/checkbox/dist/auro-checkbox-group.d.ts +176 -0
- package/components/checkbox/dist/auro-checkbox.d.ts +209 -0
- package/components/checkbox/dist/index.d.ts +3 -0
- package/components/checkbox/dist/index.js +2057 -0
- package/components/checkbox/dist/registered.js +2058 -0
- package/components/checkbox/dist/styles/auro-checkbox-css.d.ts +2 -0
- package/components/checkbox/dist/styles/auro-checkbox-group-css.d.ts +2 -0
- package/components/checkbox/dist/styles/color-css.d.ts +2 -0
- package/components/checkbox/dist/styles/colorGroup-css.d.ts +2 -0
- package/components/checkbox/dist/styles/tokens-css.d.ts +2 -0
- package/components/combobox/demo/api.md +2287 -0
- package/components/combobox/demo/api.min.js +18025 -0
- package/components/combobox/demo/index.md +196 -0
- package/components/combobox/demo/index.min.js +17930 -0
- package/components/combobox/demo/keyboardBehavior.md +281 -0
- package/components/combobox/demo/readme.md +158 -0
- package/components/combobox/dist/auro-combobox.d.ts +578 -0
- package/components/combobox/dist/comboboxKeyboardStrategy.d.ts +9 -0
- package/components/combobox/dist/index.d.ts +2 -0
- package/components/combobox/dist/index.js +15845 -0
- package/components/combobox/dist/registered.js +15847 -0
- package/components/combobox/dist/styles/emphasized/style-css.d.ts +2 -0
- package/components/combobox/dist/styles/snowflake/style-css.d.ts +2 -0
- package/components/combobox/dist/styles/style-css.d.ts +2 -0
- package/components/counter/demo/api.md +1285 -0
- package/components/counter/demo/api.min.js +8237 -0
- package/components/counter/demo/index.md +92 -0
- package/components/counter/demo/index.min.js +8218 -0
- package/components/counter/demo/keyboardBehavior.md +127 -0
- package/components/counter/demo/readme.md +161 -0
- package/components/counter/dist/auro-counter-button.d.ts +14 -0
- package/components/counter/dist/auro-counter-group.d.ts +390 -0
- package/components/counter/dist/auro-counter-wrapper.d.ts +17 -0
- package/components/counter/dist/auro-counter.d.ts +136 -0
- package/components/counter/dist/buttonVersion.d.ts +2 -0
- package/components/counter/dist/iconVersion.d.ts +2 -0
- package/components/counter/dist/index.d.ts +3 -0
- package/components/counter/dist/index.js +8140 -0
- package/components/counter/dist/keyboardStrategy.d.ts +4 -0
- package/components/counter/dist/registered.js +8141 -0
- package/components/counter/dist/styles/color-css.d.ts +2 -0
- package/components/counter/dist/styles/counter-button-color-css.d.ts +2 -0
- package/components/counter/dist/styles/counter-button-css.d.ts +2 -0
- package/components/counter/dist/styles/counter-group-css.d.ts +2 -0
- package/components/counter/dist/styles/counter-wrapper-color-css.d.ts +2 -0
- package/components/counter/dist/styles/counter-wrapper-css.d.ts +2 -0
- package/components/counter/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/counter/dist/styles/style-css.d.ts +2 -0
- package/components/counter/dist/styles/tokens-css.d.ts +2 -0
- package/components/datepicker/demo/api.md +1824 -0
- package/components/datepicker/demo/api.min.js +24654 -0
- package/components/datepicker/demo/index.md +158 -0
- package/components/datepicker/demo/index.min.js +24375 -0
- package/components/datepicker/demo/keyboardBehavior.md +19 -0
- package/components/datepicker/demo/readme.md +137 -0
- package/components/datepicker/dist/auro-calendar-cell.d.ts +169 -0
- package/components/datepicker/dist/auro-calendar-month.d.ts +20 -0
- package/components/datepicker/dist/auro-calendar.d.ts +173 -0
- package/components/datepicker/dist/auro-datepicker.d.ts +716 -0
- package/components/datepicker/dist/buttonVersion.d.ts +2 -0
- package/components/datepicker/dist/datepickerKeyboardStrategy.d.ts +1 -0
- package/components/datepicker/dist/iconVersion.d.ts +2 -0
- package/components/datepicker/dist/index.d.ts +2 -0
- package/components/datepicker/dist/index.js +24290 -0
- package/components/datepicker/dist/popoverVersion.d.ts +2 -0
- package/components/datepicker/dist/registered.js +24290 -0
- package/components/datepicker/dist/styles/classic/color-css.d.ts +2 -0
- package/components/datepicker/dist/styles/classic/style-css.d.ts +2 -0
- package/components/datepicker/dist/styles/color-calendar-css.d.ts +2 -0
- package/components/datepicker/dist/styles/color-cell-css.d.ts +2 -0
- package/components/datepicker/dist/styles/color-css.d.ts +2 -0
- package/components/datepicker/dist/styles/color-month-css.d.ts +2 -0
- package/components/datepicker/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/datepicker/dist/styles/snowflake/color-css.d.ts +2 -0
- package/components/datepicker/dist/styles/snowflake/style-css.d.ts +2 -0
- package/components/datepicker/dist/styles/style-auro-calendar-cell-css.d.ts +2 -0
- package/components/datepicker/dist/styles/style-auro-calendar-css.d.ts +2 -0
- package/components/datepicker/dist/styles/style-auro-calendar-month-css.d.ts +2 -0
- package/components/datepicker/dist/styles/style-css.d.ts +2 -0
- package/components/datepicker/dist/styles/tokens-css.d.ts +2 -0
- package/components/datepicker/dist/utilities.d.ts +78 -0
- package/components/datepicker/dist/utilitiesCalendar.d.ts +38 -0
- package/components/datepicker/dist/utilitiesCalendarRender.d.ts +50 -0
- package/components/datepicker/dist/vendor/wc-range-datepicker/day.d.ts +5 -0
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts +60 -0
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-cell.d.ts +1 -0
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts +57 -0
- package/components/dropdown/demo/api.md +1358 -0
- package/components/dropdown/demo/api.min.js +5019 -0
- package/components/dropdown/demo/index.md +283 -0
- package/components/dropdown/demo/index.min.js +4954 -0
- package/components/dropdown/demo/keyboardBehavior.md +77 -0
- package/components/dropdown/demo/readme.md +160 -0
- package/components/dropdown/dist/auro-dropdown.d.ts +482 -0
- package/components/dropdown/dist/auro-dropdownBib.d.ts +128 -0
- package/components/dropdown/dist/dropdownBibKeyboardStrategy.d.ts +7 -0
- package/components/dropdown/dist/iconVersion.d.ts +2 -0
- package/components/dropdown/dist/index.d.ts +2 -0
- package/components/dropdown/dist/index.js +4847 -0
- package/components/dropdown/dist/registered.js +4847 -0
- package/components/dropdown/dist/styles/classic/bibColors-css.d.ts +2 -0
- package/components/dropdown/dist/styles/classic/bibStyles-css.d.ts +2 -0
- package/components/dropdown/dist/styles/classic/color-css.d.ts +2 -0
- package/components/dropdown/dist/styles/classic/style-css.d.ts +2 -0
- package/components/dropdown/dist/styles/color-css.d.ts +2 -0
- package/components/dropdown/dist/styles/emphasized/style-css.d.ts +2 -0
- package/components/dropdown/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/dropdown/dist/styles/snowflake/style-css.d.ts +2 -0
- package/components/dropdown/dist/styles/style-css.d.ts +2 -0
- package/components/dropdown/dist/styles/tokens-css.d.ts +2 -0
- package/components/form/demo/api.md +319 -0
- package/components/form/demo/api.min.js +71170 -0
- package/components/form/demo/index.md +128 -0
- package/components/form/demo/index.min.js +71170 -0
- package/components/form/demo/keyboardBehavior.md +0 -0
- package/components/form/demo/readme.md +145 -0
- package/components/form/dist/auro-form.d.ts +280 -0
- package/components/form/dist/index.d.ts +2 -0
- package/components/form/dist/index.js +718 -0
- package/components/form/dist/registered.d.ts +1 -0
- package/components/form/dist/registered.js +718 -0
- package/components/form/dist/styles/style-css.d.ts +2 -0
- package/components/helptext/dist/auro-helptext.d.ts +69 -0
- package/components/helptext/dist/index.d.ts +2 -0
- package/components/helptext/dist/index.js +231 -0
- package/components/helptext/dist/registered.js +231 -0
- package/components/helptext/dist/styles/color-css.d.ts +2 -0
- package/components/helptext/dist/styles/style-css.d.ts +2 -0
- package/components/helptext/dist/styles/tokens-css.d.ts +2 -0
- package/components/input/demo/api.md +1397 -0
- package/components/input/demo/api.min.js +7473 -0
- package/components/input/demo/index.md +161 -0
- package/components/input/demo/index.min.js +7393 -0
- package/components/input/demo/keyboardBehavior.md +0 -0
- package/components/input/demo/readme.md +134 -0
- package/components/input/dist/auro-input.d.ts +207 -0
- package/components/input/dist/base-input.d.ts +628 -0
- package/components/input/dist/buttonVersion.d.ts +2 -0
- package/components/input/dist/i18n.d.ts +18 -0
- package/components/input/dist/iconVersion.d.ts +2 -0
- package/components/input/dist/index.d.ts +2 -0
- package/components/input/dist/index.js +7305 -0
- package/components/input/dist/registered.js +7305 -0
- package/components/input/dist/styles/classic/color-css.d.ts +2 -0
- package/components/input/dist/styles/classic/style-css.d.ts +2 -0
- package/components/input/dist/styles/color-css.d.ts +2 -0
- package/components/input/dist/styles/default/borders-css.d.ts +2 -0
- package/components/input/dist/styles/default/color-css.d.ts +2 -0
- package/components/input/dist/styles/default/mixins-css.d.ts +2 -0
- package/components/input/dist/styles/default/notificationIcons-css.d.ts +2 -0
- package/components/input/dist/styles/default/style-css.d.ts +2 -0
- package/components/input/dist/styles/emphasized/color-css.d.ts +2 -0
- package/components/input/dist/styles/emphasized/style-css.d.ts +2 -0
- package/components/input/dist/styles/mixins-css.d.ts +2 -0
- package/components/input/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/input/dist/styles/snowflake/style-css.d.ts +2 -0
- package/components/input/dist/styles/style-css.d.ts +2 -0
- package/components/input/dist/styles/tokens-css.d.ts +2 -0
- package/components/input/dist/utilities.d.ts +25 -0
- package/components/layoutElement/dist/auroElement.d.ts +40 -0
- package/components/layoutElement/dist/index.d.ts +2 -0
- package/components/layoutElement/dist/index.js +107 -0
- package/components/layoutElement/dist/registered.js +107 -0
- package/components/menu/demo/api.md +1201 -0
- package/components/menu/demo/api.min.js +2397 -0
- package/components/menu/demo/index.md +72 -0
- package/components/menu/demo/index.min.js +2290 -0
- package/components/menu/demo/keyboardBehavior.md +0 -0
- package/components/menu/demo/readme.md +145 -0
- package/components/menu/dist/auro-menu-utils.d.ts +34 -0
- package/components/menu/dist/auro-menu.context.d.ts +239 -0
- package/components/menu/dist/auro-menu.d.ts +317 -0
- package/components/menu/dist/auro-menuoption.d.ts +210 -0
- package/components/menu/dist/iconVersion.d.ts +2 -0
- package/components/menu/dist/index.d.ts +4 -0
- package/components/menu/dist/index.js +2253 -0
- package/components/menu/dist/registered.js +2201 -0
- package/components/menu/dist/styles/default/color-menu-css.d.ts +2 -0
- package/components/menu/dist/styles/default/color-menuoption-css.d.ts +2 -0
- package/components/menu/dist/styles/default/style-menu-css.d.ts +2 -0
- package/components/menu/dist/styles/default/style-menuoption-css.d.ts +2 -0
- package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
- package/components/radio/demo/api.md +675 -0
- package/components/radio/demo/api.min.js +2210 -0
- package/components/radio/demo/index.md +73 -0
- package/components/radio/demo/index.min.js +2167 -0
- package/components/radio/demo/keyboardBehavior.md +0 -0
- package/components/radio/demo/readme.md +141 -0
- package/components/radio/dist/auro-radio-group.d.ts +250 -0
- package/components/radio/dist/auro-radio.d.ts +180 -0
- package/components/radio/dist/index.d.ts +3 -0
- package/components/radio/dist/index.js +2116 -0
- package/components/radio/dist/registered.js +2117 -0
- package/components/radio/dist/styles/auro-radio-group-css.d.ts +2 -0
- package/components/radio/dist/styles/color-css.d.ts +2 -0
- package/components/radio/dist/styles/groupColor-css.d.ts +2 -0
- package/components/radio/dist/styles/style-css.d.ts +2 -0
- package/components/radio/dist/styles/tokens-css.d.ts +2 -0
- package/components/select/demo/api.md +2378 -0
- package/components/select/demo/api.min.js +10542 -0
- package/components/select/demo/index.md +355 -0
- package/components/select/demo/index.min.js +10449 -0
- package/components/select/demo/keyboardBehavior.md +245 -0
- package/components/select/demo/readme.md +148 -0
- package/components/select/dist/auro-select.d.ts +553 -0
- package/components/select/dist/index.d.ts +2 -0
- package/components/select/dist/index.js +8376 -0
- package/components/select/dist/registered.js +8376 -0
- package/components/select/dist/selectKeyboardStrategy.d.ts +11 -0
- package/components/select/dist/styles/emphasized/color-css.d.ts +2 -0
- package/components/select/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/select/dist/styles/style-css.d.ts +2 -0
- package/components/select/dist/styles/tokens-css.d.ts +2 -0
- package/custom-elements.json +18806 -0
- package/package.json +2 -2
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
<auro-header level="1" id="overview">Combobox - Keyboard Behavior</auro-header>
|
|
2
|
+
<div class="contentWrapper">
|
|
3
|
+
<div class="mainContent">
|
|
4
|
+
<div class="scrollWrapper">
|
|
5
|
+
<auro-header level="2" id="tabBehavior">Tab Behavior</auro-header>
|
|
6
|
+
<p>The component trigger contains an <code><auro-input></code> which has two elements:</p>
|
|
7
|
+
<ol>
|
|
8
|
+
<li><strong>Input</strong></li>
|
|
9
|
+
<li><strong>Clear button:</strong> only shown when the input has a value.</li>
|
|
10
|
+
</ol>
|
|
11
|
+
<p>Each focusable element <em>(when shown)</em> participates in the browser window's default <code>tabindex</code> sequence.</p>
|
|
12
|
+
<p>When the component is <code>disabled</code> it is removed from the <code>tabindex</code> sequence. VoiceOver's virtual cursor <em>(swipe navigation)</em> can still encounter the component, but standard keyboard <code>Tab</code> navigation skips it.</p>
|
|
13
|
+
<p>On <strong>large viewport devices</strong> (e.g., desktop browser, tablet) there is no focusable content inside the component bib.</p>
|
|
14
|
+
<p>On <strong>small viewport devices</strong> (e.g., phone) the bib opens a modal dialog with a focusable <strong>input</strong> and <strong>clear button</strong> which can receive <strong>Click</strong> and <strong>Tap</strong> events.</p>
|
|
15
|
+
<auro-header level="2" id="keyEvents">Key Events</auro-header>
|
|
16
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/keyEvents.md) -->
|
|
17
|
+
<!-- The below content is automatically added from ./../docs/partials/keyEvents.md -->
|
|
18
|
+
<div class="note">
|
|
19
|
+
<p><strong>Static vs Dynamic Option List:</strong> The <strong>expanded</strong> state can never be applied without list options rendered into the DOM. Since the component supports dynamic option lists generated <em>after</em> a value is typed into the <strong>input</strong>, certain key events (as noted in the <strong>Current State</strong> column of the table below) only function with the option list rendered into the DOM.</p>
|
|
20
|
+
</div>
|
|
21
|
+
<table>
|
|
22
|
+
<thead>
|
|
23
|
+
<tr>
|
|
24
|
+
<th>Key</th>
|
|
25
|
+
<th>Modifier</th>
|
|
26
|
+
<th>Current State</th>
|
|
27
|
+
<th>Focus Element</th>
|
|
28
|
+
<th>Behavior</th>
|
|
29
|
+
</tr>
|
|
30
|
+
</thead>
|
|
31
|
+
<tbody>
|
|
32
|
+
<tr>
|
|
33
|
+
<td rowspan="6">ArrowDown</td>
|
|
34
|
+
<td rowspan="2">-</td>
|
|
35
|
+
<td>Collapsed, list options have been populated</td>
|
|
36
|
+
<td>
|
|
37
|
+
Trigger input element, <strong>NOT</strong> the trigger input clear button
|
|
38
|
+
</td>
|
|
39
|
+
<td>Opens the bib.</td>
|
|
40
|
+
</tr>
|
|
41
|
+
<tr>
|
|
42
|
+
<td>Expanded</td>
|
|
43
|
+
<td>
|
|
44
|
+
Input element, <strong>NOT</strong> the input clear button
|
|
45
|
+
<div class="note">
|
|
46
|
+
<strong>Note:</strong> Includes both trigger and bib content inputs depending on viewport size.
|
|
47
|
+
</div>
|
|
48
|
+
</td>
|
|
49
|
+
<td>
|
|
50
|
+
Advances the <code>focused</code> option to the next enabled option in the list. If the current <code>focused</code> option is the last enabled option, selection wraps to the first enabled option.
|
|
51
|
+
</td>
|
|
52
|
+
</tr>
|
|
53
|
+
<tr>
|
|
54
|
+
<td rowspan="2">Command</td>
|
|
55
|
+
<td>Collapsed, list options have been populated</td>
|
|
56
|
+
<td>
|
|
57
|
+
Trigger input element, <strong>NOT</strong> the trigger input clear button
|
|
58
|
+
</td>
|
|
59
|
+
<td>Opens the bib.</td>
|
|
60
|
+
</tr>
|
|
61
|
+
<tr>
|
|
62
|
+
<td>Expanded</td>
|
|
63
|
+
<td>
|
|
64
|
+
Input element, <strong>NOT</strong> the input clear button
|
|
65
|
+
<div class="note">
|
|
66
|
+
<strong>Note:</strong> Includes both trigger and bib content inputs.
|
|
67
|
+
</div>
|
|
68
|
+
</td>
|
|
69
|
+
<td>
|
|
70
|
+
Advances the <code>focused</code> option to the last enabled option in the list.
|
|
71
|
+
</td>
|
|
72
|
+
</tr>
|
|
73
|
+
<tr>
|
|
74
|
+
<td rowspan="2">Option</td>
|
|
75
|
+
<td>Collapsed, list options have been populated</td>
|
|
76
|
+
<td>
|
|
77
|
+
Trigger input element, <strong>NOT</strong> the trigger input clear button
|
|
78
|
+
</td>
|
|
79
|
+
<td>Opens the bib.</td>
|
|
80
|
+
</tr>
|
|
81
|
+
<tr>
|
|
82
|
+
<td>Expanded</td>
|
|
83
|
+
<td>
|
|
84
|
+
Input element, <strong>NOT</strong> the input clear button
|
|
85
|
+
<div class="note">
|
|
86
|
+
<strong>Note:</strong> Includes both trigger and bib content inputs.
|
|
87
|
+
</div>
|
|
88
|
+
</td>
|
|
89
|
+
<td>
|
|
90
|
+
Advances the <code>focused</code> option to the last enabled option in the list.
|
|
91
|
+
</td>
|
|
92
|
+
</tr>
|
|
93
|
+
<tr>
|
|
94
|
+
<td rowspan="6">ArrowUp</td>
|
|
95
|
+
<td rowspan="2">-</td>
|
|
96
|
+
<td>Collapsed, list options have been populated</td>
|
|
97
|
+
<td>
|
|
98
|
+
Trigger input element, <strong>NOT</strong> the trigger input clear button
|
|
99
|
+
</td>
|
|
100
|
+
<td>Opens the bib.</td>
|
|
101
|
+
</tr>
|
|
102
|
+
<tr>
|
|
103
|
+
<td>Expanded</td>
|
|
104
|
+
<td>
|
|
105
|
+
Input element, <strong>NOT</strong> the input clear button
|
|
106
|
+
<div class="note">
|
|
107
|
+
<strong>Note:</strong> Includes both trigger and bib content inputs.
|
|
108
|
+
</div>
|
|
109
|
+
</td>
|
|
110
|
+
<td>
|
|
111
|
+
Advances the <code>focused</code> option to the previous enabled option in the list. If the current <code>focused</code> option is the first enabled option, selection wraps to the last enabled option.
|
|
112
|
+
</td>
|
|
113
|
+
</tr>
|
|
114
|
+
<tr>
|
|
115
|
+
<td rowspan="2">Command</td>
|
|
116
|
+
<td>Collapsed, list options have been populated</td>
|
|
117
|
+
<td>
|
|
118
|
+
Trigger input element, <strong>NOT</strong> the trigger input clear button
|
|
119
|
+
</td>
|
|
120
|
+
<td>Opens the bib.</td>
|
|
121
|
+
</tr>
|
|
122
|
+
<tr>
|
|
123
|
+
<td>Expanded</td>
|
|
124
|
+
<td>
|
|
125
|
+
Input element, <strong>NOT</strong> the input clear button
|
|
126
|
+
<div class="note">
|
|
127
|
+
<strong>Note:</strong> Includes both trigger and bib content inputs.
|
|
128
|
+
</div>
|
|
129
|
+
</td>
|
|
130
|
+
<td>
|
|
131
|
+
Advances the <code>focused</code> option to the first enabled option in the list.
|
|
132
|
+
</td>
|
|
133
|
+
</tr>
|
|
134
|
+
<tr>
|
|
135
|
+
<td rowspan="2">Option</td>
|
|
136
|
+
<td>Collapsed, list options have been populated</td>
|
|
137
|
+
<td>
|
|
138
|
+
Input element, <strong>NOT</strong> the input clear button
|
|
139
|
+
</td>
|
|
140
|
+
<td>Opens the bib.</td>
|
|
141
|
+
</tr>
|
|
142
|
+
<tr>
|
|
143
|
+
<td>Expanded</td>
|
|
144
|
+
<td>
|
|
145
|
+
Input element, <strong>NOT</strong> the input clear button
|
|
146
|
+
<div class="note">
|
|
147
|
+
<strong>Note:</strong> Includes both trigger and bib content inputs.
|
|
148
|
+
</div>
|
|
149
|
+
</td>
|
|
150
|
+
<td>
|
|
151
|
+
Advances the <code>focused</code> option to the first enabled option in the list.
|
|
152
|
+
</td>
|
|
153
|
+
</tr>
|
|
154
|
+
<tr>
|
|
155
|
+
<td>End</td>
|
|
156
|
+
<td>-</td>
|
|
157
|
+
<td>Expanded</td>
|
|
158
|
+
<td>
|
|
159
|
+
Input element, <strong>NOT</strong> the input clear button
|
|
160
|
+
<div class="note">
|
|
161
|
+
<strong>Note:</strong> Includes both trigger and bib content inputs.
|
|
162
|
+
</div>
|
|
163
|
+
</td>
|
|
164
|
+
<td>
|
|
165
|
+
Advances the <code>focused</code> option to the last enabled option in the list.
|
|
166
|
+
</td>
|
|
167
|
+
</tr>
|
|
168
|
+
<tr>
|
|
169
|
+
<td rowspan="4">Enter</td>
|
|
170
|
+
<td rowspan="4">-</td>
|
|
171
|
+
<td>Collapsed, list options have been populated</td>
|
|
172
|
+
<td>
|
|
173
|
+
Trigger input, <strong>NOT</strong> the input clear button
|
|
174
|
+
</td>
|
|
175
|
+
<td>
|
|
176
|
+
The bib is opened.
|
|
177
|
+
</td>
|
|
178
|
+
</tr>
|
|
179
|
+
<tr>
|
|
180
|
+
<td>Collapsed</td>
|
|
181
|
+
<td>
|
|
182
|
+
Input clear button, <strong>NOT</strong> the input element
|
|
183
|
+
</td>
|
|
184
|
+
<td>
|
|
185
|
+
The <strong>input</strong> value is cleared, <strong>focus</strong> moves to the trigger input element.
|
|
186
|
+
</td>
|
|
187
|
+
</tr>
|
|
188
|
+
<tr>
|
|
189
|
+
<td>Expanded, large viewport device</td>
|
|
190
|
+
<td>
|
|
191
|
+
Trigger input element, <strong>NOT</strong> the trigger input clear button
|
|
192
|
+
</td>
|
|
193
|
+
<td>
|
|
194
|
+
The current <code>focused</code> option is selected, closes the bib and <strong>focus</strong> is returned to the trigger input element.
|
|
195
|
+
</td>
|
|
196
|
+
</tr>
|
|
197
|
+
<tr>
|
|
198
|
+
<td>Expanded, small viewport device</td>
|
|
199
|
+
<td>
|
|
200
|
+
Dialog input element, <strong>NOT</strong> the dialog input clear button
|
|
201
|
+
</td>
|
|
202
|
+
<td>
|
|
203
|
+
The current <code>focused</code> option is selected, closes the bib and <strong>focus</strong> is returned to the trigger input element.
|
|
204
|
+
</td>
|
|
205
|
+
</tr>
|
|
206
|
+
<tr>
|
|
207
|
+
<td>Escape</td>
|
|
208
|
+
<td>-</td>
|
|
209
|
+
<td>Expanded</td>
|
|
210
|
+
<td>
|
|
211
|
+
Input element, <strong>NOT</strong> the input clear button
|
|
212
|
+
<div class="note">
|
|
213
|
+
<strong>Note:</strong> Includes both trigger and bib content inputs.
|
|
214
|
+
</div>
|
|
215
|
+
</td>
|
|
216
|
+
<td>
|
|
217
|
+
Closes the bib, moves <strong>focus</strong> to the trigger input element.
|
|
218
|
+
</td>
|
|
219
|
+
</tr>
|
|
220
|
+
<tr>
|
|
221
|
+
<td>Home</td>
|
|
222
|
+
<td>-</td>
|
|
223
|
+
<td>Expanded</td>
|
|
224
|
+
<td>
|
|
225
|
+
Input element, <strong>NOT</strong> the input clear button
|
|
226
|
+
<div class="note">
|
|
227
|
+
<strong>Note:</strong> Includes both trigger and bib content inputs.
|
|
228
|
+
</div>
|
|
229
|
+
</td>
|
|
230
|
+
<td>
|
|
231
|
+
Advances the <code>focused</code> option to the first enabled option in the list.
|
|
232
|
+
</td>
|
|
233
|
+
</tr>
|
|
234
|
+
<tr>
|
|
235
|
+
<td rowspan="2">Tab</td>
|
|
236
|
+
<td>-</td>
|
|
237
|
+
<td>Expanded</td>
|
|
238
|
+
<td>
|
|
239
|
+
Input element, <strong>NOT</strong> the input clear button
|
|
240
|
+
<div class="note">
|
|
241
|
+
<strong>Note:</strong> Includes both trigger and bib content inputs.
|
|
242
|
+
</div>
|
|
243
|
+
</td>
|
|
244
|
+
<td>
|
|
245
|
+
The current <code>focused</code> option is selected, the bib is closed and <strong>focus</strong> is moved to the <strong>clear button</strong> in the component trigger.
|
|
246
|
+
</td>
|
|
247
|
+
</tr>
|
|
248
|
+
<tr>
|
|
249
|
+
<td>Shift</td>
|
|
250
|
+
<td>Expanded</td>
|
|
251
|
+
<td>
|
|
252
|
+
Input element, <strong>NOT</strong> the input clear button
|
|
253
|
+
<div class="note">
|
|
254
|
+
<strong>Note:</strong> Includes both trigger and bib content inputs.
|
|
255
|
+
</div>
|
|
256
|
+
</td>
|
|
257
|
+
<td>
|
|
258
|
+
Advances the <code>focused</code> option to the first enabled option in the list.
|
|
259
|
+
<div class="note">
|
|
260
|
+
<strong>Note:</strong> the bib will <strong>NOT</strong> close and the page will <strong>NOT</strong> navigate to the previous focusable element in the tabindex order.
|
|
261
|
+
</div>
|
|
262
|
+
</td>
|
|
263
|
+
</tr>
|
|
264
|
+
</tbody>
|
|
265
|
+
</table>
|
|
266
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
267
|
+
<div class="note">
|
|
268
|
+
<p><strong>Note:</strong> The following keyboard behavior is unsupported at this time:</p>
|
|
269
|
+
<ul>
|
|
270
|
+
<li><strong>PageUp:</strong> The browser moves the <code>focused</code> option up by approximately one <strong>page</strong> of visible options (typically equal to the number of rendered rows). The scroll position updates in tandem so that the newly focused option is brought into view, usually aligning near the top of the visible list.</li>
|
|
271
|
+
<li><strong>PageDown:</strong> The browser advances the <code>focused</code> option down by approximately one <strong>page</strong> of visible items (typically equal to the number of rendered rows). The scroll position updates accordingly so the newly focused option is brought into view, often aligning near the bottom of the visible list.</li>
|
|
272
|
+
</ul>
|
|
273
|
+
</div>
|
|
274
|
+
</div>
|
|
275
|
+
</div>
|
|
276
|
+
</div>
|
|
277
|
+
|
|
278
|
+
## DEVELOPER NOTES / CODE ACTION ITEMS / TODO ITEMS
|
|
279
|
+
1. Remove the bridge for keyboard event bubbling out of the bib
|
|
280
|
+
1. Prevent auro-dropdown `Enter` and `Space` key behavior for opening and closing the bib.
|
|
281
|
+
1. Strip out key event listeners not listed in this document
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
The README.md file is a compiled document. No edits should be made directly to this file.
|
|
3
|
+
|
|
4
|
+
README.md is created by running `npm run build:docs`.
|
|
5
|
+
|
|
6
|
+
This file is generated based on a template fetched from
|
|
7
|
+
`../../docs/templates/componentReadmeTemplate.md`
|
|
8
|
+
and copied to `./componentDocs/README.md` each time the docs are compiled.
|
|
9
|
+
|
|
10
|
+
The following sections are editable by making changes to the following files:
|
|
11
|
+
|
|
12
|
+
| SECTION | DESCRIPTION | FILE LOCATION |
|
|
13
|
+
|------------------------|---------------------------------------------------|-------------------------------------|
|
|
14
|
+
| Description | Description of the component | `./docs/partials/description.md` |
|
|
15
|
+
| Use Cases | Examples for when to use this component | `./docs/partials/useCases.md` |
|
|
16
|
+
| Additional Information | For use to add any component specific information | `./docs/partials/readmeAddlInfo.md` |
|
|
17
|
+
| Component Example Code | HTML sample code of the components use | `./apiExamples/basic.html` |
|
|
18
|
+
-->
|
|
19
|
+
|
|
20
|
+
# Combobox
|
|
21
|
+
|
|
22
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/description.md) -->
|
|
23
|
+
<!-- The below content is automatically added from ./docs/partials/description.md -->
|
|
24
|
+
`<auro-combobox>` is the combination of [dropdown](http://auro.alaskaair.com/components/auro/dropdown), [input](http://auro.alaskaair.com/components/auro/input), and [menu](http://auro.alaskaair.com/components/auro/menu) and allows users to filter search results from a predefined list as they type. When the user starts typing in the text input, a dropdown of a menu shows up to display options that match the user’s search.
|
|
25
|
+
|
|
26
|
+
By default, `auro-combobox` behaves as a suggestion list. This means any value may be typed into the combobox and the menu list presented effectively provides sample or suggestion options. With the use of the `persistInput` attribute the `auro-combobox` behaves as a filter of menu options. In this mode. typing into the input field will execute the filter but will not set the `value` of the combobox. The combobox value is set by selecting a menu option. Clicking the `X` clear button in the input will remove the current value of the HTML5 input causing the menu filter to reset as well as remove the current value of the combobox.
|
|
27
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
28
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/readmeAddlInfo.md) -->
|
|
29
|
+
<!-- The below content is automatically added from ./docs/partials/readmeAddlInfo.md -->
|
|
30
|
+
<!-- AURO-GENERATED-CONTENT This file is to be used for any additional content that should be included in the README.md which is specific to this component. -->
|
|
31
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
32
|
+
|
|
33
|
+
## Combobox Use Cases
|
|
34
|
+
|
|
35
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
|
|
36
|
+
<!-- The below content is automatically added from ./docs/partials/useCases.md -->
|
|
37
|
+
The `<auro-combobox>` element should be used in situations where users may:
|
|
38
|
+
|
|
39
|
+
* Search
|
|
40
|
+
* Airports: user looks for a specific airport by searching for the city name or airport code
|
|
41
|
+
* Site wide: user searches for a topic site wide and combobox makes suggestions on searchable results
|
|
42
|
+
* Filter
|
|
43
|
+
* Options: user chooses filters for their search by using combobox
|
|
44
|
+
* Select
|
|
45
|
+
* Quantity: user types a quantity to select an option within a range (for example, the user may be limited to 2-34)
|
|
46
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
47
|
+
|
|
48
|
+
## Getting Started
|
|
49
|
+
|
|
50
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/componentInstall.md) -->
|
|
51
|
+
<!-- The below content is automatically added from ../../docs/templates/componentInstall.md -->
|
|
52
|
+
|
|
53
|
+
#### NPM Installation
|
|
54
|
+
|
|
55
|
+
```shell
|
|
56
|
+
$ npm i @aurodesignsystem/auro-formkit
|
|
57
|
+
```
|
|
58
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
59
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/gettingStarted.md) -->
|
|
60
|
+
<!-- The below content is automatically added from ../../docs/templates/gettingStarted.md -->
|
|
61
|
+
|
|
62
|
+
### TypeScript Module Resolution
|
|
63
|
+
|
|
64
|
+
When using TypeScript set `moduleResolution` to `bundler`, add the following to your `tsconfig.json`:
|
|
65
|
+
|
|
66
|
+
```json
|
|
67
|
+
{
|
|
68
|
+
"compilerOptions": {
|
|
69
|
+
"moduleResolution": "bundler"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
This configuration enables proper module resolution for the component's TypeScript files.
|
|
75
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
76
|
+
|
|
77
|
+
## Install from CDN
|
|
78
|
+
|
|
79
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/bundleInstallDescription.md) -->
|
|
80
|
+
<!-- The below content is automatically added from ../../docs/templates/bundleInstallDescription.md -->
|
|
81
|
+
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
82
|
+
|
|
83
|
+
```html
|
|
84
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@latest/auro-combobox/+esm"></script>
|
|
85
|
+
```
|
|
86
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
87
|
+
|
|
88
|
+
## Formkit Development
|
|
89
|
+
|
|
90
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/partials/developmentDescription.md) -->
|
|
91
|
+
<!-- The below content is automatically added from ../../docs/partials/developmentDescription.md -->
|
|
92
|
+
|
|
93
|
+
### Filtering
|
|
94
|
+
|
|
95
|
+
Running the `dev` command will open a `localhost` development server for all components in the monorepo at once.
|
|
96
|
+
|
|
97
|
+
To only develop a single component, use the `--filter` flag:
|
|
98
|
+
|
|
99
|
+
```shell
|
|
100
|
+
npx turbo dev --filter=@aurodesignsystem/auro-input
|
|
101
|
+
```
|
|
102
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
103
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/customRegistration.md) -->
|
|
104
|
+
<!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
|
|
105
|
+
|
|
106
|
+
## Custom Component Registration for Version Management
|
|
107
|
+
|
|
108
|
+
There are two key parts to every Auro component: the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes">class</a> and the custom element definition. The class defines the component’s behavior, while the custom element registers it under a specific name so it can be used in HTML.
|
|
109
|
+
|
|
110
|
+
When you install the component as described on the `Install` page, the class is imported automatically, and the component is registered globally for you.
|
|
111
|
+
|
|
112
|
+
However, if you need to load multiple versions of the same component on a single page (for example, when two projects depend on different versions), you can manually register the class under a custom element name to avoid conflicts.
|
|
113
|
+
|
|
114
|
+
You can do this by importing only the component class and using the `register(name)` method with a unique name:
|
|
115
|
+
|
|
116
|
+
```js
|
|
117
|
+
// Import the class only
|
|
118
|
+
import { AuroCombobox } from '@aurodesignsystem/auro-formkit/auro-combobox/class';
|
|
119
|
+
|
|
120
|
+
// Register with a custom name if desired
|
|
121
|
+
AuroCombobox.register('custom-combobox');
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
This will create a new custom element `<custom-combobox>` that behaves exactly like `<auro-combobox>`, allowing both to coexist on the same page without interfering with each other.
|
|
125
|
+
|
|
126
|
+
<div class="exampleWrapper exampleWrapper--flex">
|
|
127
|
+
<custom-combobox>
|
|
128
|
+
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
129
|
+
<span slot="label">Name</span>
|
|
130
|
+
<auro-menu>
|
|
131
|
+
<auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
|
|
132
|
+
<auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
|
|
133
|
+
<auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
|
|
134
|
+
<auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
|
|
135
|
+
<auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
|
|
136
|
+
<auro-menuoption static nomatch>No matching option</auro-menuoption>
|
|
137
|
+
</auro-menu>
|
|
138
|
+
</custom-combobox>
|
|
139
|
+
</div>
|
|
140
|
+
<auro-accordion alignRight>
|
|
141
|
+
<span slot="trigger">See code</span>
|
|
142
|
+
|
|
143
|
+
```html
|
|
144
|
+
<custom-combobox>
|
|
145
|
+
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
146
|
+
<span slot="label">Name</span>
|
|
147
|
+
<auro-menu>
|
|
148
|
+
<auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
|
|
149
|
+
<auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
|
|
150
|
+
<auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
|
|
151
|
+
<auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
|
|
152
|
+
<auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
|
|
153
|
+
<auro-menuoption static nomatch>No matching option</auro-menuoption>
|
|
154
|
+
</auro-menu>
|
|
155
|
+
</custom-combobox>
|
|
156
|
+
```
|
|
157
|
+
</auro-accordion>
|
|
158
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|