@aurodesignsystem-dev/auro-formkit 0.0.0-pr1478.0 → 0.0.0-pr1478.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/checkbox/demo/customize.html +1 -2
- package/components/checkbox/demo/customize.min.js +1 -1
- package/components/checkbox/demo/getting-started.min.js +1 -1
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/demo/customize.html +1 -2
- package/components/combobox/demo/customize.md +108 -132
- package/components/combobox/demo/customize.min.js +14 -23
- package/components/combobox/demo/getting-started.min.js +14 -23
- package/components/combobox/demo/index.min.js +14 -23
- package/components/combobox/dist/index.js +12 -21
- package/components/combobox/dist/registered.js +12 -21
- package/components/counter/demo/customize.min.js +10 -2
- package/components/counter/demo/index.min.js +10 -2
- package/components/counter/dist/index.js +10 -2
- package/components/counter/dist/registered.js +10 -2
- package/components/datepicker/demo/api.md +2 -0
- package/components/datepicker/demo/customize.js +0 -2
- package/components/datepicker/demo/customize.md +138 -38
- package/components/datepicker/demo/customize.min.js +17 -23
- package/components/datepicker/demo/index.min.js +17 -5
- package/components/datepicker/dist/index.js +17 -5
- package/components/datepicker/dist/registered.js +17 -5
- package/components/datepicker/dist/src/auro-datepicker.d.ts +2 -0
- package/components/dropdown/demo/customize.min.js +9 -1
- package/components/dropdown/demo/getting-started.min.js +9 -1
- package/components/dropdown/demo/index.min.js +9 -1
- package/components/dropdown/dist/auro-dropdown.d.ts +1 -0
- package/components/dropdown/dist/index.js +9 -1
- package/components/dropdown/dist/registered.js +9 -1
- package/components/form/demo/customize.html +6 -6
- package/components/form/demo/customize.js +19 -0
- package/components/form/demo/customize.md +203 -51
- package/components/form/demo/customize.min.js +620 -96
- package/components/form/demo/getting-started.min.js +548 -96
- package/components/form/demo/index.min.js +548 -96
- package/components/form/demo/registerDemoDeps.min.js +185 -59
- package/components/form/dist/auro-form.d.ts +122 -4
- package/components/form/dist/index.js +363 -37
- package/components/form/dist/registered.js +363 -37
- package/components/input/demo/customize.html +1 -2
- package/components/input/demo/customize.md +54 -53
- package/components/input/demo/customize.min.js +1 -1
- package/components/input/demo/getting-started.min.js +1 -1
- package/components/input/demo/index.min.js +1 -1
- package/components/input/dist/index.js +1 -1
- package/components/input/dist/registered.js +1 -1
- package/components/menu/demo/index.min.js +2 -2
- package/components/menu/dist/index.js +2 -2
- package/components/menu/dist/registered.js +2 -2
- package/components/radio/demo/customize.min.js +1 -1
- package/components/radio/demo/getting-started.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.md +1 -0
- package/components/select/demo/customize.html +1 -2
- package/components/select/demo/customize.md +71 -0
- package/components/select/demo/customize.min.js +143 -28
- package/components/select/demo/getting-started.min.js +143 -28
- package/components/select/demo/index.min.js +143 -28
- package/components/select/demo/keyboard-behavior.md +18 -0
- package/components/select/dist/auro-select.d.ts +38 -2
- package/components/select/dist/index.js +141 -26
- package/components/select/dist/registered.js +141 -26
- package/components/select/dist/selectUtils.d.ts +12 -0
- package/custom-elements.json +1641 -1420
- package/package.json +1 -1
|
@@ -232,21 +232,19 @@
|
|
|
232
232
|
<auro-header level="3" id="localization">Localization</auro-header>
|
|
233
233
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/customize/localization.md) -->
|
|
234
234
|
<!-- The below content is automatically added from ./../docs/partials/customize/localization.md -->
|
|
235
|
-
<p>The component supports complete localization, including visible strings, screen reader announcements and locale
|
|
236
|
-
<auro-header level="4" id="localizationVisibleStrings">Visible
|
|
235
|
+
<p>The component supports complete localization, including visible strings, screen reader announcements, and locale-based date formatting.</p>
|
|
236
|
+
<auro-header level="4" id="localizationVisibleStrings">Visible Strings</auro-header>
|
|
237
237
|
<p>The visible strings rendered in the input are not derived from <code>locale</code> — they are projected through named slots so each language can supply its own translation. Pass a <code><span></code> with the matching <code>slot</code> attribute for every string you need to localize.</p>
|
|
238
238
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/localization-visible-strings.html) -->
|
|
239
|
-
<!-- The below content is automatically added from ./../apiExamples/localization-visible-strings.html -->
|
|
240
|
-
|
|
241
|
-
<
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
<span slot="ariaLabel.password.hide">パスワードを非表示</span>
|
|
247
|
-
</auro-input>
|
|
239
|
+
<!-- The below content is automatically added from ./../apiExamples/localization-visible-strings.html -->
|
|
240
|
+
|
|
241
|
+
<pre class="language-diff"><code class="language-diff"> <auro-input>
|
|
242
|
+
+ <span slot="label">出発日</span>
|
|
243
|
+
+ <span slot="helpText">日付を選択してください</span>
|
|
244
|
+
+ <span slot="optionalLabel">(任意)</span>
|
|
245
|
+
</auro-input></code></pre>
|
|
248
246
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
249
|
-
<auro-header level="4" id="localizationA11yStrings">Screen
|
|
247
|
+
<auro-header level="4" id="localizationA11yStrings">Screen Reader Strings</auro-header>
|
|
250
248
|
<p>Assistive-technology announcements that are not visible in the UI are also exposed as named slots so they can be translated independently. These strings are not derived from <code>locale</code>; supply translated values for every language you support.</p>
|
|
251
249
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/localization-screenreader-strings.html) -->
|
|
252
250
|
<!-- The below content is automatically added from ./../apiExamples/localization-screenreader-strings.html -->
|
|
@@ -261,7 +259,7 @@
|
|
|
261
259
|
</auro-input></code></pre>
|
|
262
260
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
263
261
|
<p class="note"><strong>Note:</strong> Custom validation messages set via <code>setCustomValidity*</code> attributes are also not localized — supply translated strings yourself when using those properties.</p>
|
|
264
|
-
<auro-header level="4" id="localizationDateFormatting">Date
|
|
262
|
+
<auro-header level="4" id="localizationDateFormatting">Date Formatting</auro-header>
|
|
265
263
|
<p>When <code>type="date"</code> is set, the <code>locale</code> attribute drives the date format used by the input mask. Setting <code>locale</code> automatically selects the regional format (for example <code>en-US</code> → <code>mm/dd/yyyy</code>, <code>de-DE</code> → <code>dd.mm.yyyy</code>, <code>ja-JP</code> → <code>yyyy/mm/dd</code>), derived from the browser's <auro-hyperlink href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl" target="_blank">Intl</auro-hyperlink> API, so <code>format</code> does not need to be set manually.</p>
|
|
266
264
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/localization-locale.html) -->
|
|
267
265
|
<!-- The below content is automatically added from ./../apiExamples/localization-locale.html -->
|
|
@@ -298,41 +296,43 @@
|
|
|
298
296
|
<span slot="optionalLabel">(freiwillig)</span>
|
|
299
297
|
</auro-input></code></pre>
|
|
300
298
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
299
|
+
<p>The following live example shows several locale configurations in action:</p>
|
|
301
300
|
<div class="exampleWrapper">
|
|
302
301
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/locale.html) -->
|
|
303
302
|
<!-- The below content is automatically added from ./../apiExamples/locale.html -->
|
|
304
|
-
<
|
|
305
|
-
<auro-header level="4">en-GB Example</auro-header>
|
|
303
|
+
<p class="body-sm"><strong>en-GB</strong></p>
|
|
306
304
|
<auro-input type="date" locale="en-GB">
|
|
307
305
|
<span slot="ariaLabel.clear">Clear All</span>
|
|
308
306
|
<span slot="label">en-GB Date</span>
|
|
309
307
|
<span slot="helpText">Help Text</span>
|
|
310
308
|
</auro-input>
|
|
311
|
-
<
|
|
309
|
+
<p class="body-sm"><strong>en-US</strong></p>
|
|
312
310
|
<auro-input type="date" locale="en-US">
|
|
313
311
|
<span slot="ariaLabel.clear">Clear All</span>
|
|
314
312
|
<span slot="label">en-US Date</span>
|
|
315
313
|
<span slot="helpText">Help Text</span>
|
|
316
314
|
</auro-input>
|
|
317
|
-
<
|
|
315
|
+
<p class="body-sm"><strong>zh-CN</strong></p>
|
|
318
316
|
<auro-input type="date" locale="zh-CN">
|
|
319
317
|
<span slot="ariaLabel.clear">全部清除</span>
|
|
320
318
|
<span slot="label">中文日期</span>
|
|
321
319
|
<span slot="helpText">帮助文本</span>
|
|
322
320
|
<span slot="optionalLabel">(可选)</span>
|
|
323
321
|
</auro-input>
|
|
324
|
-
<
|
|
325
|
-
<auro-input type="date">
|
|
326
|
-
<span slot="ariaLabel.clear">Alles löschen</span>
|
|
327
|
-
<span slot="label">Nächstes `data-locale`-Attributformat (`de-DE` in diesem Fall)</span>
|
|
328
|
-
<span slot="helpText">Hilfetext</span>
|
|
329
|
-
<span slot="optionalLabel">(freiwillig)</span>
|
|
330
|
-
</auro-input>
|
|
331
|
-
<auro-header level="4">en-US with `yyyy.mm.dd` format Example</auro-header>
|
|
322
|
+
<p class="body-sm"><strong>en-US with explicit <code>format="yyyy.mm.dd"</code></strong></p>
|
|
332
323
|
<auro-input type="date" locale="en-US" format="yyyy.mm.dd">
|
|
333
324
|
<span slot="ariaLabel.clear">Clear All</span>
|
|
334
325
|
<span slot="label">en-US with yyyy.mm.dd format</span>
|
|
335
326
|
<span slot="helpText">Help Text</span>
|
|
327
|
+
</auro-input>
|
|
328
|
+
<p class="body-sm"><strong>Inherited de-DE (via <code>data-locale</code>)</strong></p>
|
|
329
|
+
<div data-locale="de-DE">
|
|
330
|
+
<auro-input type="date">
|
|
331
|
+
<span slot="ariaLabel.clear">Alles löschen</span>
|
|
332
|
+
<span slot="label">Abreisedatum (geerbt aus `data-locale="de-DE"`)</span>
|
|
333
|
+
<span slot="helpText">Hilfetext</span>
|
|
334
|
+
<span slot="optionalLabel">(freiwillig)</span>
|
|
335
|
+
</auro-input>
|
|
336
336
|
</div>
|
|
337
337
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
338
338
|
</div>
|
|
@@ -340,42 +340,43 @@
|
|
|
340
340
|
<span slot="trigger">See code</span>
|
|
341
341
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/locale.html) -->
|
|
342
342
|
<!-- The below code snippet is automatically added from ./../apiExamples/locale.html -->
|
|
343
|
-
<pre class="language-html"><code class="language-html"><
|
|
344
|
-
|
|
345
|
-
<
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
</auro-input>
|
|
343
|
+
<pre class="language-html"><code class="language-html"><p class="body-sm"><strong>en-GB</strong></p>
|
|
344
|
+
<auro-input type="date" locale="en-GB">
|
|
345
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
346
|
+
<span slot="label">en-GB Date</span>
|
|
347
|
+
<span slot="helpText">Help Text</span>
|
|
348
|
+
</auro-input>
|
|
350
349
|
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
350
|
+
<p class="body-sm"><strong>en-US</strong></p>
|
|
351
|
+
<auro-input type="date" locale="en-US">
|
|
352
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
353
|
+
<span slot="label">en-US Date</span>
|
|
354
|
+
<span slot="helpText">Help Text</span>
|
|
355
|
+
</auro-input>
|
|
357
356
|
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
357
|
+
<p class="body-sm"><strong>zh-CN</strong></p>
|
|
358
|
+
<auro-input type="date" locale="zh-CN">
|
|
359
|
+
<span slot="ariaLabel.clear">全部清除</span>
|
|
360
|
+
<span slot="label">中文日期</span>
|
|
361
|
+
<span slot="helpText">帮助文本</span>
|
|
362
|
+
<span slot="optionalLabel">(可选)</span>
|
|
363
|
+
</auro-input>
|
|
365
364
|
|
|
366
|
-
|
|
365
|
+
<p class="body-sm"><strong>en-US with explicit <code>format="yyyy.mm.dd"</code></strong></p>
|
|
366
|
+
<auro-input type="date" locale="en-US" format="yyyy.mm.dd">
|
|
367
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
368
|
+
<span slot="label">en-US with yyyy.mm.dd format</span>
|
|
369
|
+
<span slot="helpText">Help Text</span>
|
|
370
|
+
</auro-input>
|
|
371
|
+
|
|
372
|
+
<p class="body-sm"><strong>Inherited de-DE (via <code>data-locale</code>)</strong></p>
|
|
373
|
+
<div data-locale="de-DE">
|
|
367
374
|
<auro-input type="date">
|
|
368
375
|
<span slot="ariaLabel.clear">Alles löschen</span>
|
|
369
|
-
<span slot="label">
|
|
376
|
+
<span slot="label">Abreisedatum (geerbt aus `data-locale="de-DE"`)</span>
|
|
370
377
|
<span slot="helpText">Hilfetext</span>
|
|
371
378
|
<span slot="optionalLabel">(freiwillig)</span>
|
|
372
379
|
</auro-input>
|
|
373
|
-
|
|
374
|
-
<auro-header level="4">en-US with `yyyy.mm.dd` format Example</auro-header>
|
|
375
|
-
<auro-input type="date" locale="en-US" format="yyyy.mm.dd">
|
|
376
|
-
<span slot="ariaLabel.clear">Clear All</span>
|
|
377
|
-
<span slot="label">en-US with yyyy.mm.dd format</span>
|
|
378
|
-
<span slot="helpText">Help Text</span>
|
|
379
380
|
</div></code></pre>
|
|
380
381
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
381
382
|
</auro-accordion>
|
|
@@ -12257,7 +12257,7 @@ class AuroHelpText extends i$3 {
|
|
|
12257
12257
|
}
|
|
12258
12258
|
}
|
|
12259
12259
|
|
|
12260
|
-
var formkitVersion = '
|
|
12260
|
+
var formkitVersion = '202606231828';
|
|
12261
12261
|
|
|
12262
12262
|
/**
|
|
12263
12263
|
* @license
|
|
@@ -12257,7 +12257,7 @@ class AuroHelpText extends i$3 {
|
|
|
12257
12257
|
}
|
|
12258
12258
|
}
|
|
12259
12259
|
|
|
12260
|
-
var formkitVersion = '
|
|
12260
|
+
var formkitVersion = '202606231828';
|
|
12261
12261
|
|
|
12262
12262
|
/**
|
|
12263
12263
|
* @license
|
|
@@ -12257,7 +12257,7 @@ class AuroHelpText extends i$3 {
|
|
|
12257
12257
|
}
|
|
12258
12258
|
}
|
|
12259
12259
|
|
|
12260
|
-
var formkitVersion = '
|
|
12260
|
+
var formkitVersion = '202606231828';
|
|
12261
12261
|
|
|
12262
12262
|
/**
|
|
12263
12263
|
* @license
|
|
@@ -12199,7 +12199,7 @@ class AuroHelpText extends LitElement {
|
|
|
12199
12199
|
}
|
|
12200
12200
|
}
|
|
12201
12201
|
|
|
12202
|
-
var formkitVersion = '
|
|
12202
|
+
var formkitVersion = '202606231828';
|
|
12203
12203
|
|
|
12204
12204
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12205
12205
|
// See LICENSE in the project root for license information.
|
|
@@ -12199,7 +12199,7 @@ class AuroHelpText extends LitElement {
|
|
|
12199
12199
|
}
|
|
12200
12200
|
}
|
|
12201
12201
|
|
|
12202
|
-
var formkitVersion = '
|
|
12202
|
+
var formkitVersion = '202606231828';
|
|
12203
12203
|
|
|
12204
12204
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12205
12205
|
// See LICENSE in the project root for license information.
|
|
@@ -542,8 +542,8 @@ class AuroMenu extends AuroElement {
|
|
|
542
542
|
// Malformed JSON (e.g. a literal string that happens to start with "[") falls back
|
|
543
543
|
// to a single-item array rather than throwing during render.
|
|
544
544
|
try {
|
|
545
|
-
|
|
546
|
-
return
|
|
545
|
+
// any valid JSON starting with `[` ALWAYS parses to an array
|
|
546
|
+
return JSON.parse(this.value);
|
|
547
547
|
} catch {
|
|
548
548
|
return [this.value];
|
|
549
549
|
}
|
|
@@ -549,8 +549,8 @@ class AuroMenu extends AuroElement {
|
|
|
549
549
|
// Malformed JSON (e.g. a literal string that happens to start with "[") falls back
|
|
550
550
|
// to a single-item array rather than throwing during render.
|
|
551
551
|
try {
|
|
552
|
-
|
|
553
|
-
return
|
|
552
|
+
// any valid JSON starting with `[` ALWAYS parses to an array
|
|
553
|
+
return JSON.parse(this.value);
|
|
554
554
|
} catch {
|
|
555
555
|
return [this.value];
|
|
556
556
|
}
|
|
@@ -508,8 +508,8 @@ class AuroMenu extends AuroElement {
|
|
|
508
508
|
// Malformed JSON (e.g. a literal string that happens to start with "[") falls back
|
|
509
509
|
// to a single-item array rather than throwing during render.
|
|
510
510
|
try {
|
|
511
|
-
|
|
512
|
-
return
|
|
511
|
+
// any valid JSON starting with `[` ALWAYS parses to an array
|
|
512
|
+
return JSON.parse(this.value);
|
|
513
513
|
} catch {
|
|
514
514
|
return [this.value];
|
|
515
515
|
}
|
|
@@ -1212,7 +1212,7 @@ class AuroHelpText extends i$2 {
|
|
|
1212
1212
|
}
|
|
1213
1213
|
}
|
|
1214
1214
|
|
|
1215
|
-
var formkitVersion = '
|
|
1215
|
+
var formkitVersion = '202606231828';
|
|
1216
1216
|
|
|
1217
1217
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1218
1218
|
// See LICENSE in the project root for license information.
|
|
@@ -1212,7 +1212,7 @@ class AuroHelpText extends i$2 {
|
|
|
1212
1212
|
}
|
|
1213
1213
|
}
|
|
1214
1214
|
|
|
1215
|
-
var formkitVersion = '
|
|
1215
|
+
var formkitVersion = '202606231828';
|
|
1216
1216
|
|
|
1217
1217
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1218
1218
|
// See LICENSE in the project root for license information.
|
|
@@ -1212,7 +1212,7 @@ class AuroHelpText extends i$2 {
|
|
|
1212
1212
|
}
|
|
1213
1213
|
}
|
|
1214
1214
|
|
|
1215
|
-
var formkitVersion = '
|
|
1215
|
+
var formkitVersion = '202606231828';
|
|
1216
1216
|
|
|
1217
1217
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1218
1218
|
// See LICENSE in the project root for license information.
|
|
@@ -1151,7 +1151,7 @@ class AuroHelpText extends LitElement {
|
|
|
1151
1151
|
}
|
|
1152
1152
|
}
|
|
1153
1153
|
|
|
1154
|
-
var formkitVersion = '
|
|
1154
|
+
var formkitVersion = '202606231828';
|
|
1155
1155
|
|
|
1156
1156
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1157
1157
|
// See LICENSE in the project root for license information.
|
|
@@ -1151,7 +1151,7 @@ class AuroHelpText extends LitElement {
|
|
|
1151
1151
|
}
|
|
1152
1152
|
}
|
|
1153
1153
|
|
|
1154
|
-
var formkitVersion = '
|
|
1154
|
+
var formkitVersion = '202606231828';
|
|
1155
1155
|
|
|
1156
1156
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1157
1157
|
// See LICENSE in the project root for license information.
|
|
@@ -38,6 +38,7 @@ The `auro-select` element is a wrapper for auro-dropdown and auro-menu to create
|
|
|
38
38
|
| `shape` | `shape` | `'classic' \| 'pill' \| 'pill-left' \| 'pill-right' \| 'snowflake'` | | Determines the shape of the dropdown bib. |
|
|
39
39
|
| `shift` | `shift` | `boolean` | false | If set, the dropdown will shift its position to avoid being cut off by the viewport. |
|
|
40
40
|
| `size` | `size` | `'lg' \| 'xl'` | | Determines the size of the dropdown bib. Only the `emphasized` layout supports size=`xl`, while all other layouts support size=`lg`. |
|
|
41
|
+
| `typeaheadTimeoutMs` | `typeaheadTimeoutMs` | `number` | "500" | Milliseconds of keyboard inactivity before the type-ahead buffer resets.<br />Increase for users who type slowly. |
|
|
41
42
|
| `validity` | `validity` | `string` | | Specifies the `validityState` this element is in. |
|
|
42
43
|
| `value` | `value` | `string` | | Value selected for the component. |
|
|
43
44
|
|
|
@@ -41,12 +41,11 @@
|
|
|
41
41
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-hyperlink@latest/+esm" type="module"></script>
|
|
42
42
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest/+esm" type="module"></script>
|
|
43
43
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-button@latest/+esm" type="module"></script>
|
|
44
|
-
<script type="module">
|
|
44
|
+
<script type="module" data-demo-script="true">
|
|
45
45
|
import { renderPage } from './demo-support.min.js';
|
|
46
46
|
await renderPage('./customize.md');
|
|
47
47
|
import { initExamples } from "./customize.min.js";
|
|
48
48
|
initExamples();
|
|
49
49
|
</script>
|
|
50
|
-
<script src="./customize.min.js" data-demo-script="true" type="module"></script>
|
|
51
50
|
</body>
|
|
52
51
|
</html>
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
<auro-anchorlink fluid href="#cssParts" class="level2 body-xs">CSS Shadow Parts</auro-anchorlink>
|
|
23
23
|
<auro-anchorlink fluid href="#customBehavior">Behavior</auro-anchorlink>
|
|
24
24
|
<auro-anchorlink fluid href="#autoComplete" class="level2 body-xs">Autocomplete</auro-anchorlink>
|
|
25
|
+
<auro-anchorlink fluid href="#typeAhead" class="level2 body-xs">Type-Ahead</auro-anchorlink>
|
|
25
26
|
<auro-anchorlink fluid href="#disableComponent" class="level2 body-xs">Disable Component</auro-anchorlink>
|
|
26
27
|
<auro-anchorlink fluid href="#disableOptions" class="level2 body-xs">Disable Option(s)</auro-anchorlink>
|
|
27
28
|
<auro-anchorlink fluid href="#requireSelection" class="level2 body-xs">Require Selection</auro-anchorlink>
|
|
@@ -749,6 +750,76 @@
|
|
|
749
750
|
</form></code></pre>
|
|
750
751
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
751
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><select></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><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>.
|
|
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"><auro-select>
|
|
797
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
798
|
+
<span slot="bib.fullscreen.headline">Airport</span>
|
|
799
|
+
<span slot="label">Destination airport</span>
|
|
800
|
+
<auro-menu>
|
|
801
|
+
<auro-menuoption value="ANC">Anchorage</auro-menuoption>
|
|
802
|
+
<auro-menuoption value="ATL">Atlanta</auro-menuoption>
|
|
803
|
+
<auro-menuoption value="AUS">Austin</auro-menuoption>
|
|
804
|
+
<auro-menuoption value="BOS">Boston</auro-menuoption>
|
|
805
|
+
<auro-menuoption value="DEN">Denver</auro-menuoption>
|
|
806
|
+
<auro-menuoption value="DFW" disabled>Dallas/Fort Worth</auro-menuoption>
|
|
807
|
+
<auro-menuoption value="DTW">Detroit</auro-menuoption>
|
|
808
|
+
<auro-menuoption value="HNL">Honolulu</auro-menuoption>
|
|
809
|
+
<auro-menuoption value="LAX">Los Angeles</auro-menuoption>
|
|
810
|
+
<auro-menuoption value="MIA">Miami</auro-menuoption>
|
|
811
|
+
<auro-menuoption value="ORD">Chicago</auro-menuoption>
|
|
812
|
+
<auro-menuoption value="PDX">Portland</auro-menuoption>
|
|
813
|
+
<auro-menuoption value="PHX">Phoenix</auro-menuoption>
|
|
814
|
+
<auro-menuoption value="SAN">San Diego</auro-menuoption>
|
|
815
|
+
<auro-menuoption value="SEA">Seattle</auro-menuoption>
|
|
816
|
+
<auro-menuoption value="SFO">San Francisco</auro-menuoption>
|
|
817
|
+
<auro-menuoption value="SJC" disabled>San Jose</auro-menuoption>
|
|
818
|
+
<auro-menuoption value="SLC">Salt Lake City</auro-menuoption>
|
|
819
|
+
</auro-menu>
|
|
820
|
+
</auro-select></code></pre>
|
|
821
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
822
|
+
</auro-accordion>
|
|
752
823
|
<auro-header level="3" id="disableComponent">Disable Component</auro-header>
|
|
753
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>
|
|
754
825
|
<p>When the component is disabled and part of a form, the components value is still included in the form submission.</p>
|