@aurodesignsystem-dev/auro-formkit 0.0.0-pr1408.15 → 0.0.0-pr1408.17
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/checkbox/demo/api.min.js +1 -1
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/demo/keyboardBehavior.md +0 -0
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/demo/api.min.js +320 -282
- package/components/combobox/demo/index.min.js +320 -282
- package/components/combobox/demo/keyboardBehavior.md +9 -36
- package/components/combobox/dist/auro-combobox.d.ts +17 -0
- package/components/combobox/dist/comboboxKeyboardStrategy.d.ts +6 -3
- package/components/combobox/dist/index.js +286 -255
- package/components/combobox/dist/registered.js +286 -255
- package/components/counter/demo/api.md +1 -1
- package/components/counter/demo/api.min.js +202 -146
- package/components/counter/demo/index.min.js +202 -146
- package/components/counter/dist/auro-counter.d.ts +11 -8
- package/components/counter/dist/index.js +202 -146
- package/components/counter/dist/keyboardStrategy.d.ts +4 -0
- package/components/counter/dist/registered.js +202 -146
- package/components/datepicker/demo/api.min.js +148 -137
- package/components/datepicker/demo/index.min.js +148 -137
- package/components/datepicker/dist/index.js +143 -132
- package/components/datepicker/dist/registered.js +143 -132
- package/components/dropdown/demo/api.md +29 -29
- package/components/dropdown/demo/api.min.js +117 -121
- package/components/dropdown/demo/index.min.js +117 -121
- package/components/dropdown/dist/auro-dropdown.d.ts +3 -3
- package/components/dropdown/dist/auro-dropdownBib.d.ts +1 -40
- package/components/dropdown/dist/dropdownBibKeyboardStrategy.d.ts +7 -0
- package/components/dropdown/dist/index.js +101 -109
- package/components/dropdown/dist/registered.js +101 -109
- package/components/form/demo/api.min.js +958 -788
- package/components/form/demo/index.min.js +958 -788
- package/components/form/demo/keyboardBehavior.md +0 -0
- package/components/input/demo/api.min.js +102 -77
- package/components/input/demo/index.min.js +102 -77
- package/components/input/demo/keyboardBehavior.md +0 -0
- package/components/input/dist/auro-input.d.ts +11 -0
- package/components/input/dist/base-input.d.ts +1 -0
- package/components/input/dist/index.js +32 -18
- package/components/input/dist/registered.js +32 -18
- package/components/menu/demo/api.min.js +34 -27
- package/components/menu/demo/index.min.js +34 -27
- package/components/menu/dist/auro-menu.d.ts +0 -6
- package/components/menu/dist/index.js +34 -27
- package/components/menu/dist/registered.js +34 -27
- package/components/radio/demo/api.min.js +1 -1
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/demo/api.min.js +225 -166
- package/components/select/demo/index.min.js +225 -166
- package/components/select/demo/keyboardBehavior.md +3 -3
- package/components/select/dist/index.js +191 -139
- package/components/select/dist/registered.js +191 -139
- package/components/select/dist/selectKeyboardStrategy.d.ts +5 -2
- package/custom-elements.json +1547 -1466
- package/package.json +8 -6
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<div class="mainContent">
|
|
4
4
|
<div class="scrollWrapper">
|
|
5
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
|
|
6
|
+
<p>The component trigger contains an <code><auro-input></code> which has two elements:</p>
|
|
7
7
|
<ol>
|
|
8
8
|
<li><strong>Input</strong></li>
|
|
9
9
|
<li><strong>Clear button:</strong> only shown when the input has a value.</li>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<p>Each focusable element <em>(when shown)</em> participates in the browser window's default <code>tabindex</code> sequence.</p>
|
|
12
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
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
|
|
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
15
|
<auro-header level="2" id="keyEvents">Key Events</auro-header>
|
|
16
16
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/keyEvents.md) -->
|
|
17
17
|
<!-- The below content is automatically added from ./../docs/partials/keyEvents.md -->
|
|
@@ -166,8 +166,8 @@
|
|
|
166
166
|
</td>
|
|
167
167
|
</tr>
|
|
168
168
|
<tr>
|
|
169
|
-
<td rowspan="
|
|
170
|
-
<td rowspan="
|
|
169
|
+
<td rowspan="4">Enter</td>
|
|
170
|
+
<td rowspan="4">-</td>
|
|
171
171
|
<td>Collapsed, list options have been populated</td>
|
|
172
172
|
<td>
|
|
173
173
|
Trigger input, <strong>NOT</strong> the input clear button
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
</td>
|
|
187
187
|
</tr>
|
|
188
188
|
<tr>
|
|
189
|
-
<td
|
|
189
|
+
<td>Expanded, large viewport device</td>
|
|
190
190
|
<td>
|
|
191
191
|
Trigger input element, <strong>NOT</strong> the trigger input clear button
|
|
192
192
|
</td>
|
|
@@ -195,15 +195,7 @@
|
|
|
195
195
|
</td>
|
|
196
196
|
</tr>
|
|
197
197
|
<tr>
|
|
198
|
-
<td>
|
|
199
|
-
Trigger input close button, <strong>NOT</strong> the trigger input
|
|
200
|
-
</td>
|
|
201
|
-
<td>
|
|
202
|
-
The input value is cleared and <strong>focus</strong> is moved to the trigger input element.
|
|
203
|
-
</td>
|
|
204
|
-
</tr>
|
|
205
|
-
<tr>
|
|
206
|
-
<td rowspan="2">Expanded, small viewport device</td>
|
|
198
|
+
<td>Expanded, small viewport device</td>
|
|
207
199
|
<td>
|
|
208
200
|
Dialog input element, <strong>NOT</strong> the dialog input clear button
|
|
209
201
|
</td>
|
|
@@ -211,14 +203,6 @@
|
|
|
211
203
|
The current <code>focused</code> option is selected, closes the bib and <strong>focus</strong> is returned to the trigger input element.
|
|
212
204
|
</td>
|
|
213
205
|
</tr>
|
|
214
|
-
<tr>
|
|
215
|
-
<td>
|
|
216
|
-
Dialog input clear button, <strong>NOT</strong> the dialog input element
|
|
217
|
-
</td>
|
|
218
|
-
<td>
|
|
219
|
-
The <strong>input</strong> value is cleared, <strong>focus</strong> moves to the dialog input element.
|
|
220
|
-
</td>
|
|
221
|
-
</tr>
|
|
222
206
|
<tr>
|
|
223
207
|
<td>Escape</td>
|
|
224
208
|
<td>-</td>
|
|
@@ -248,9 +232,9 @@
|
|
|
248
232
|
</td>
|
|
249
233
|
</tr>
|
|
250
234
|
<tr>
|
|
251
|
-
<td rowspan="
|
|
252
|
-
<td
|
|
253
|
-
<td
|
|
235
|
+
<td rowspan="2">Tab</td>
|
|
236
|
+
<td>-</td>
|
|
237
|
+
<td>Expanded</td>
|
|
254
238
|
<td>
|
|
255
239
|
Input element, <strong>NOT</strong> the input clear button
|
|
256
240
|
<div class="note">
|
|
@@ -261,17 +245,6 @@
|
|
|
261
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.
|
|
262
246
|
</td>
|
|
263
247
|
</tr>
|
|
264
|
-
<tr>
|
|
265
|
-
<td>
|
|
266
|
-
Input clear button, <strong>NOT</strong> the input element
|
|
267
|
-
<div class="note">
|
|
268
|
-
<strong>Note:</strong> Includes both trigger and bib content input clear buttons.
|
|
269
|
-
</div>
|
|
270
|
-
</td>
|
|
271
|
-
<td>
|
|
272
|
-
<span style="background-color: pink; color: red;"> What do we do here? </span>
|
|
273
|
-
</td>
|
|
274
|
-
</tr>
|
|
275
248
|
<tr>
|
|
276
249
|
<td>Shift</td>
|
|
277
250
|
<td>Expanded</td>
|
|
@@ -42,6 +42,7 @@ export class AuroCombobox extends AuroElement {
|
|
|
42
42
|
};
|
|
43
43
|
/**
|
|
44
44
|
* Array of available options to display in the dropdown.
|
|
45
|
+
* This array contains all non-hidden options (e.g., hidden by filtering on input value).
|
|
45
46
|
* @private
|
|
46
47
|
*/
|
|
47
48
|
availableOptions: {
|
|
@@ -381,6 +382,18 @@ export class AuroCombobox extends AuroElement {
|
|
|
381
382
|
* @returns {boolean} - Returns true if the element is valid, false otherwise.
|
|
382
383
|
*/
|
|
383
384
|
isValid(): boolean;
|
|
385
|
+
/**
|
|
386
|
+
* Mark the first available (non-hidden), enabled option as `active`.
|
|
387
|
+
* @private
|
|
388
|
+
* @returns {void}
|
|
389
|
+
*/
|
|
390
|
+
private activateFirstEnabledAvailableOption;
|
|
391
|
+
/**
|
|
392
|
+
* Mark the last available (non-hidden), enabled option as `active`.
|
|
393
|
+
* @private
|
|
394
|
+
* @returns {void}
|
|
395
|
+
*/
|
|
396
|
+
private activateLastEnabledAvailableOption;
|
|
384
397
|
/**
|
|
385
398
|
* Updates the filter for the available options based on the input value.
|
|
386
399
|
* @private
|
|
@@ -438,6 +451,10 @@ export class AuroCombobox extends AuroElement {
|
|
|
438
451
|
* @private
|
|
439
452
|
*/
|
|
440
453
|
private setClearBtnFocus;
|
|
454
|
+
/**
|
|
455
|
+
* @private
|
|
456
|
+
*/
|
|
457
|
+
private setTriggerInputFocus;
|
|
441
458
|
/**
|
|
442
459
|
* Suppresses or restores dialog semantics on the bib's dialog element.
|
|
443
460
|
* On desktop (non-fullscreen), VoiceOver verbosely announces "listbox inside
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export namespace comboboxKeyboardStrategy {
|
|
2
|
-
function Enter(component: any, evt: any, ctx: any): Promise<void>;
|
|
3
|
-
function Tab(component: any, evt: any, ctx: any): void;
|
|
4
|
-
function ArrowUp(component: any, evt: any, ctx: any): void;
|
|
5
2
|
function ArrowDown(component: any, evt: any, ctx: any): void;
|
|
3
|
+
function ArrowUp(component: any, evt: any, ctx: any): void;
|
|
4
|
+
function End(component: any, evt: any, ctx: any): void;
|
|
5
|
+
function Enter(component: any, evt: any, ctx: any): void;
|
|
6
|
+
function Escape(component: any, _evt: any, ctx: any): void;
|
|
7
|
+
function Home(component: any, evt: any, ctx: any): void;
|
|
8
|
+
function Tab(component: any, evt: any, ctx: any): void;
|
|
6
9
|
}
|