@aurodesignsystem-dev/auro-formkit 0.0.0-pr1503.4 → 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
|
@@ -9,16 +9,20 @@
|
|
|
9
9
|
<auro-anchorlink fluid href="#restrictedWidth" class="level2 body-xs">Restricted Width</auro-anchorlink>
|
|
10
10
|
<auro-anchorlink fluid href="#scroll" class="level2 body-xs">Scroll</auro-anchorlink>
|
|
11
11
|
<auro-anchorlink fluid href="#nocheckmark" class="level2 body-xs">No Checkmark</auro-anchorlink>
|
|
12
|
+
<auro-anchorlink fluid href="#dividers" class="level2 body-xs">Dividers</auro-anchorlink>
|
|
12
13
|
<auro-anchorlink fluid href="#nestedMenu" class="level2 body-xs">Nested Menu</auro-anchorlink>
|
|
13
14
|
<auro-anchorlink fluid href="#customBehavior">Behavior</auro-anchorlink>
|
|
15
|
+
<auro-anchorlink fluid href="#static" class="level2 body-xs">Static Options</auro-anchorlink>
|
|
16
|
+
<auro-anchorlink fluid href="#matchWord" class="level2 body-xs">Match Word</auro-anchorlink>
|
|
17
|
+
<auro-anchorlink fluid href="#persistent" class="level2 body-xs">Persistent Option</auro-anchorlink>
|
|
18
|
+
<auro-anchorlink fluid href="#nomatch" class="level2 body-xs">No Match Placeholder</auro-anchorlink>
|
|
14
19
|
<auro-anchorlink fluid href="#disabled" class="level2 body-xs">Disabled Options</auro-anchorlink>
|
|
15
20
|
<auro-anchorlink fluid href="#disabledMenu" class="level2 body-xs">Disabled Menu</auro-anchorlink>
|
|
21
|
+
<auro-anchorlink fluid href="#loading" class="level2 body-xs">Loading</auro-anchorlink>
|
|
16
22
|
<auro-anchorlink fluid href="#hidden" class="level2 body-xs">Hidden Options</auro-anchorlink>
|
|
17
23
|
<auro-anchorlink fluid href="#multiselect" class="level2 body-xs">Multi-Select</auro-anchorlink>
|
|
18
24
|
<auro-anchorlink fluid href="#presetValue" class="level2 body-xs">Preset Value</auro-anchorlink>
|
|
19
25
|
<auro-anchorlink fluid href="#presetValueMultiselect" class="level2 body-xs">Preset Value (Multi)</auro-anchorlink>
|
|
20
|
-
<auro-anchorlink fluid href="#preselect" class="level2 body-xs">Pre-Selected</auro-anchorlink>
|
|
21
|
-
<auro-anchorlink fluid href="#allowDeselect" class="level2 body-xs">Allow Deselect</auro-anchorlink>
|
|
22
26
|
</auro-nav>
|
|
23
27
|
</nav>
|
|
24
28
|
<div class="mainContent">
|
|
@@ -53,9 +57,9 @@
|
|
|
53
57
|
--ds-auro-menuoption-text-color: #5b1a6e;
|
|
54
58
|
}
|
|
55
59
|
</style>
|
|
56
|
-
<auro-menu id="customTokensMenu">
|
|
60
|
+
<auro-menu id="customTokensMenu" value="price">
|
|
57
61
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
58
|
-
<auro-menuoption value="price"
|
|
62
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
59
63
|
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
60
64
|
<hr>
|
|
61
65
|
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
@@ -76,9 +80,9 @@
|
|
|
76
80
|
--ds-auro-menuoption-text-color: #5b1a6e;
|
|
77
81
|
}
|
|
78
82
|
</style>
|
|
79
|
-
<auro-menu id="customTokensMenu">
|
|
83
|
+
<auro-menu id="customTokensMenu" value="price">
|
|
80
84
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
81
|
-
<auro-menuoption value="price"
|
|
85
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
82
86
|
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
83
87
|
<hr>
|
|
84
88
|
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
@@ -279,6 +283,47 @@
|
|
|
279
283
|
</auro-menu></code></pre>
|
|
280
284
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
281
285
|
</auro-accordion>
|
|
286
|
+
<auro-header level="3" id="dividers">Dividers</auro-header>
|
|
287
|
+
<p>Insert standard <code><hr></code> elements between <code>auro-menuoption</code> elements to create visual group separators. Dividers are non-interactive and are skipped during keyboard navigation.</p>
|
|
288
|
+
<div class="exampleWrapper">
|
|
289
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/hr.html) -->
|
|
290
|
+
<!-- The below content is automatically added from ./../apiExamples/hr.html -->
|
|
291
|
+
<auro-menu>
|
|
292
|
+
<auro-menuoption value="new tab">New tab</auro-menuoption>
|
|
293
|
+
<auro-menuoption value="new window">New window</auro-menuoption>
|
|
294
|
+
<auro-menuoption value="open file">Open file</auro-menuoption>
|
|
295
|
+
<auro-menuoption value="open location">Open location</auro-menuoption>
|
|
296
|
+
<hr>
|
|
297
|
+
<auro-menuoption value="close window">Close window</auro-menuoption>
|
|
298
|
+
<auro-menuoption value="close tab">Close tab</auro-menuoption>
|
|
299
|
+
<auro-menuoption value="save page as...">Save page as...</auro-menuoption>
|
|
300
|
+
<hr>
|
|
301
|
+
<auro-menuoption value="share">Share</auro-menuoption>
|
|
302
|
+
<hr>
|
|
303
|
+
<auro-menuoption value="print">Print</auro-menuoption>
|
|
304
|
+
</auro-menu>
|
|
305
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
306
|
+
</div>
|
|
307
|
+
<auro-accordion alignRight>
|
|
308
|
+
<span slot="trigger">See code</span>
|
|
309
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/hr.html) -->
|
|
310
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/hr.html -->
|
|
311
|
+
<pre class="language-html"><code class="language-html"><auro-menu>
|
|
312
|
+
<auro-menuoption value="new tab">New tab</auro-menuoption>
|
|
313
|
+
<auro-menuoption value="new window">New window</auro-menuoption>
|
|
314
|
+
<auro-menuoption value="open file">Open file</auro-menuoption>
|
|
315
|
+
<auro-menuoption value="open location">Open location</auro-menuoption>
|
|
316
|
+
<hr>
|
|
317
|
+
<auro-menuoption value="close window">Close window</auro-menuoption>
|
|
318
|
+
<auro-menuoption value="close tab">Close tab</auro-menuoption>
|
|
319
|
+
<auro-menuoption value="save page as...">Save page as...</auro-menuoption>
|
|
320
|
+
<hr>
|
|
321
|
+
<auro-menuoption value="share">Share</auro-menuoption>
|
|
322
|
+
<hr>
|
|
323
|
+
<auro-menuoption value="print">Print</auro-menuoption>
|
|
324
|
+
</auro-menu></code></pre>
|
|
325
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
326
|
+
</auro-accordion>
|
|
282
327
|
<auro-header level="3" id="nestedMenu">Nested Menu</auro-header>
|
|
283
328
|
<p>Nest additional <code>auro-menu</code> elements inside the default slot to create sub-menus. Each nested menu maintains its own selection state.</p>
|
|
284
329
|
<div class="exampleWrapper">
|
|
@@ -359,6 +404,144 @@
|
|
|
359
404
|
</section>
|
|
360
405
|
<section>
|
|
361
406
|
<auro-header level="2" id="customBehavior">Behavior</auro-header>
|
|
407
|
+
<auro-header level="3" id="static">Static Options</auro-header>
|
|
408
|
+
<p>Add the <code>static</code> attribute to an <code>auro-menuoption</code> to make it non-interactive — the option renders but is skipped during keyboard navigation and cannot be selected. Useful for section headers or informational rows inside a menu.</p>
|
|
409
|
+
<div class="exampleWrapper">
|
|
410
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/static.html) -->
|
|
411
|
+
<!-- The below content is automatically added from ./../apiExamples/static.html -->
|
|
412
|
+
<auro-menu>
|
|
413
|
+
<auro-menuoption static>Popular Destinations</auro-menuoption>
|
|
414
|
+
<auro-menuoption value="sea">Seattle (SEA)</auro-menuoption>
|
|
415
|
+
<auro-menuoption value="pdx">Portland (PDX)</auro-menuoption>
|
|
416
|
+
<auro-menuoption value="sfo">San Francisco (SFO)</auro-menuoption>
|
|
417
|
+
<auro-menuoption static>International</auro-menuoption>
|
|
418
|
+
<auro-menuoption value="lhr">London (LHR)</auro-menuoption>
|
|
419
|
+
<auro-menuoption value="nrt">Tokyo (NRT)</auro-menuoption>
|
|
420
|
+
</auro-menu>
|
|
421
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
422
|
+
</div>
|
|
423
|
+
<auro-accordion alignRight>
|
|
424
|
+
<span slot="trigger">See code</span>
|
|
425
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/static.html) -->
|
|
426
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/static.html -->
|
|
427
|
+
<pre class="language-html"><code class="language-html"><auro-menu>
|
|
428
|
+
<auro-menuoption static>Popular Destinations</auro-menuoption>
|
|
429
|
+
<auro-menuoption value="sea">Seattle (SEA)</auro-menuoption>
|
|
430
|
+
<auro-menuoption value="pdx">Portland (PDX)</auro-menuoption>
|
|
431
|
+
<auro-menuoption value="sfo">San Francisco (SFO)</auro-menuoption>
|
|
432
|
+
<auro-menuoption static>International</auro-menuoption>
|
|
433
|
+
<auro-menuoption value="lhr">London (LHR)</auro-menuoption>
|
|
434
|
+
<auro-menuoption value="nrt">Tokyo (NRT)</auro-menuoption>
|
|
435
|
+
</auro-menu></code></pre>
|
|
436
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
437
|
+
</auro-accordion>
|
|
438
|
+
<auro-header level="3" id="matchWord">Match Word</auro-header>
|
|
439
|
+
<p>Set the <code>matchWord</code> property to a string, and any option whose text contains that substring will render the matching portion visually highlighted. Typically driven by an input's <code>keyup</code> handler to power real-time filtering — this is the mechanism <code><auro-combobox></code> uses to highlight matches as the user types.</p>
|
|
440
|
+
<div class="exampleWrapper">
|
|
441
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/match-word.html) -->
|
|
442
|
+
<!-- The below content is automatically added from ./../apiExamples/match-word.html -->
|
|
443
|
+
<auro-input id="matchWordInput" required>
|
|
444
|
+
<span slot="label">Enter a value to match in the menu</span>
|
|
445
|
+
</auro-input>
|
|
446
|
+
<br />
|
|
447
|
+
<auro-menu id="matchWordMenu">
|
|
448
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
449
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
450
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
451
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
452
|
+
<auro-menu>
|
|
453
|
+
<auro-menuoption value="apples">Apples</auro-menuoption>
|
|
454
|
+
<auro-menuoption value="oranges">Oranges</auro-menuoption>
|
|
455
|
+
<auro-menuoption value="peaches">Peaches</auro-menuoption>
|
|
456
|
+
</auro-menu>
|
|
457
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
458
|
+
</auro-menu>
|
|
459
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
460
|
+
</div>
|
|
461
|
+
<auro-accordion alignRight>
|
|
462
|
+
<span slot="trigger">See code</span>
|
|
463
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/match-word.html) -->
|
|
464
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/match-word.html -->
|
|
465
|
+
<pre class="language-html"><code class="language-html"><auro-input id="matchWordInput" required>
|
|
466
|
+
<span slot="label">Enter a value to match in the menu</span>
|
|
467
|
+
</auro-input>
|
|
468
|
+
<br />
|
|
469
|
+
<auro-menu id="matchWordMenu">
|
|
470
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
471
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
472
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
473
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
474
|
+
<auro-menu>
|
|
475
|
+
<auro-menuoption value="apples">Apples</auro-menuoption>
|
|
476
|
+
<auro-menuoption value="oranges">Oranges</auro-menuoption>
|
|
477
|
+
<auro-menuoption value="peaches">Peaches</auro-menuoption>
|
|
478
|
+
</auro-menu>
|
|
479
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
480
|
+
</auro-menu></code></pre>
|
|
481
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
482
|
+
</auro-accordion>
|
|
483
|
+
<auro-header level="3" id="persistent">Persistent Option</auro-header>
|
|
484
|
+
<p>Add the <code>persistent</code> attribute to an <code>auro-menuoption</code> to opt it out of <code>matchWord</code> highlighting. The option remains fully interactive but its label is never rewritten — useful for utility rows like "Add new…" that should render identically regardless of the current filter string.</p>
|
|
485
|
+
<div class="exampleWrapper">
|
|
486
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/persistent.html) -->
|
|
487
|
+
<!-- The below content is automatically added from ./../apiExamples/persistent.html -->
|
|
488
|
+
<auro-input id="persistentExampleInput">
|
|
489
|
+
<span slot="label">Type to highlight matches</span>
|
|
490
|
+
</auro-input>
|
|
491
|
+
<br />
|
|
492
|
+
<auro-menu id="persistentExampleMenu">
|
|
493
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
494
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
495
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
496
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
497
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
498
|
+
<auro-menuoption value="add" persistent>+ Add a new sort option</auro-menuoption>
|
|
499
|
+
</auro-menu>
|
|
500
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
501
|
+
</div>
|
|
502
|
+
<auro-accordion alignRight>
|
|
503
|
+
<span slot="trigger">See code</span>
|
|
504
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/persistent.html) -->
|
|
505
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/persistent.html -->
|
|
506
|
+
<pre class="language-html"><code class="language-html"><auro-input id="persistentExampleInput">
|
|
507
|
+
<span slot="label">Type to highlight matches</span>
|
|
508
|
+
</auro-input>
|
|
509
|
+
<br />
|
|
510
|
+
<auro-menu id="persistentExampleMenu">
|
|
511
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
512
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
513
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
514
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
515
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
516
|
+
<auro-menuoption value="add" persistent>+ Add a new sort option</auro-menuoption>
|
|
517
|
+
</auro-menu></code></pre>
|
|
518
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
519
|
+
</auro-accordion>
|
|
520
|
+
<auro-header level="3" id="nomatch">No Match Placeholder</auro-header>
|
|
521
|
+
<p>Mark an option with the <code>nomatch</code> attribute to designate it as the placeholder shown when no other options match the user's input. When paired with <code><auro-combobox></code>, the combobox toggles the <code>hidden</code> attribute on this option automatically based on filter results.</p>
|
|
522
|
+
<div class="exampleWrapper">
|
|
523
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/nomatch.html) -->
|
|
524
|
+
<!-- The below content is automatically added from ./../apiExamples/nomatch.html -->
|
|
525
|
+
<auro-menu>
|
|
526
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
527
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
528
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
529
|
+
<auro-menuoption nomatch>No matching results</auro-menuoption>
|
|
530
|
+
</auro-menu>
|
|
531
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
532
|
+
</div>
|
|
533
|
+
<auro-accordion alignRight>
|
|
534
|
+
<span slot="trigger">See code</span>
|
|
535
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/nomatch.html) -->
|
|
536
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/nomatch.html -->
|
|
537
|
+
<pre class="language-html"><code class="language-html"><auro-menu>
|
|
538
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
539
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
540
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
541
|
+
<auro-menuoption nomatch>No matching results</auro-menuoption>
|
|
542
|
+
</auro-menu></code></pre>
|
|
543
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
544
|
+
</auro-accordion>
|
|
362
545
|
<auro-header level="3" id="disabled">Disabled Options</auro-header>
|
|
363
546
|
<p>Use the <code>disabled</code> attribute on <code>auro-menuoption</code> to prevent interaction with specific options.</p>
|
|
364
547
|
<div class="exampleWrapper">
|
|
@@ -441,6 +624,123 @@
|
|
|
441
624
|
</auro-menu></code></pre>
|
|
442
625
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
443
626
|
</auro-accordion>
|
|
627
|
+
<auro-header level="3" id="loading">Loading</auro-header>
|
|
628
|
+
<p>Use the <code>loading</code> attribute on <code>auro-menu</code> to indicate that options are being fetched asynchronously. Optional <code>loadingIcon</code> and <code>loadingText</code> slots let you customize the placeholder — a spinner, message, both, or neither.</p>
|
|
629
|
+
<div class="exampleWrapper">
|
|
630
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/loading.html) -->
|
|
631
|
+
<!-- The below content is automatically added from ./../apiExamples/loading.html -->
|
|
632
|
+
<auro-button id="loadingExampleToggleButton">Toggle Loading</auro-button>
|
|
633
|
+
<table id="loadingExampleTable">
|
|
634
|
+
<thead>
|
|
635
|
+
<tr>
|
|
636
|
+
<td width="25%">Spinner + Text</td>
|
|
637
|
+
<td width="25%">Text Only</td>
|
|
638
|
+
<td width="25%">Spinner Only</td>
|
|
639
|
+
<td width="25%">None</td>
|
|
640
|
+
</tr>
|
|
641
|
+
</thead>
|
|
642
|
+
<tr>
|
|
643
|
+
<td>
|
|
644
|
+
<auro-menu>
|
|
645
|
+
<auro-loader slot="loadingIcon" orbit xs></auro-loader><span slot="loadingText">Loading...</span>
|
|
646
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
647
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
648
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
649
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
650
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
651
|
+
</auro-menu>
|
|
652
|
+
</td>
|
|
653
|
+
<td>
|
|
654
|
+
<auro-menu>
|
|
655
|
+
<span slot="loadingText">Loading...</span>
|
|
656
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
657
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
658
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
659
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
660
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
661
|
+
</auro-menu>
|
|
662
|
+
</td>
|
|
663
|
+
<td>
|
|
664
|
+
<auro-menu>
|
|
665
|
+
<auro-loader slot="loadingIcon" orbit xs></auro-loader>
|
|
666
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
667
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
668
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
669
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
670
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
671
|
+
</auro-menu>
|
|
672
|
+
</td>
|
|
673
|
+
<td>
|
|
674
|
+
<auro-menu>
|
|
675
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
676
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
677
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
678
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
679
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
680
|
+
</auro-menu>
|
|
681
|
+
</td>
|
|
682
|
+
</tr>
|
|
683
|
+
</table>
|
|
684
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
685
|
+
</div>
|
|
686
|
+
<auro-accordion alignRight>
|
|
687
|
+
<span slot="trigger">See code</span>
|
|
688
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/loading.html) -->
|
|
689
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/loading.html -->
|
|
690
|
+
<pre class="language-html"><code class="language-html"><auro-button id="loadingExampleToggleButton">Toggle Loading</auro-button>
|
|
691
|
+
<table id="loadingExampleTable">
|
|
692
|
+
<thead>
|
|
693
|
+
<tr>
|
|
694
|
+
<td width="25%">Spinner + Text</td>
|
|
695
|
+
<td width="25%">Text Only</td>
|
|
696
|
+
<td width="25%">Spinner Only</td>
|
|
697
|
+
<td width="25%">None</td>
|
|
698
|
+
</tr>
|
|
699
|
+
</thead>
|
|
700
|
+
<tr>
|
|
701
|
+
<td>
|
|
702
|
+
<auro-menu>
|
|
703
|
+
<auro-loader slot="loadingIcon" orbit xs></auro-loader><span slot="loadingText">Loading...</span>
|
|
704
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
705
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
706
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
707
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
708
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
709
|
+
</auro-menu>
|
|
710
|
+
</td>
|
|
711
|
+
<td>
|
|
712
|
+
<auro-menu>
|
|
713
|
+
<span slot="loadingText">Loading...</span>
|
|
714
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
715
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
716
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
717
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
718
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
719
|
+
</auro-menu>
|
|
720
|
+
</td>
|
|
721
|
+
<td>
|
|
722
|
+
<auro-menu>
|
|
723
|
+
<auro-loader slot="loadingIcon" orbit xs></auro-loader>
|
|
724
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
725
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
726
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
727
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
728
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
729
|
+
</auro-menu>
|
|
730
|
+
</td>
|
|
731
|
+
<td>
|
|
732
|
+
<auro-menu>
|
|
733
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
734
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
735
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
736
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
737
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
738
|
+
</auro-menu>
|
|
739
|
+
</td>
|
|
740
|
+
</tr>
|
|
741
|
+
</table></code></pre>
|
|
742
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
743
|
+
</auro-accordion>
|
|
444
744
|
<auro-header level="3" id="hidden">Hidden Options</auro-header>
|
|
445
745
|
<p>Use the <code>hidden</code> attribute on <code>auro-menuoption</code> to visually hide an option while keeping it in the DOM.</p>
|
|
446
746
|
<div class="exampleWrapper">
|
|
@@ -510,7 +810,7 @@
|
|
|
510
810
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
511
811
|
</auro-accordion>
|
|
512
812
|
<auro-header level="3" id="presetValue">Preset Value</auro-header>
|
|
513
|
-
<p>Use the <code>value</code> attribute on <code>auro-menu</code> to set the selected option when the menu renders.</p>
|
|
813
|
+
<p>Use the <code>value</code> attribute on <code>auro-menu</code> to set the selected option when the menu renders. The value must match a selectable option; if it matches an option marked <code>disabled</code> or <code>static</code>, no option is selected and <code>auroMenu-selectValueFailure</code> is dispatched.</p>
|
|
514
814
|
<div class="exampleWrapper">
|
|
515
815
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/preset-value.html) -->
|
|
516
816
|
<!-- The below content is automatically added from ./../apiExamples/preset-value.html -->
|
|
@@ -563,74 +863,6 @@
|
|
|
563
863
|
</auro-menu></code></pre>
|
|
564
864
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
565
865
|
</auro-accordion>
|
|
566
|
-
<auro-header level="3" id="preselect">Pre-Selected</auro-header>
|
|
567
|
-
<p>Use the <code>selected</code> attribute on <code>auro-menuoption</code> to pre-select an option when the menu renders.</p>
|
|
568
|
-
<div class="exampleWrapper">
|
|
569
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/preselect.html) -->
|
|
570
|
-
<!-- The below content is automatically added from ./../apiExamples/preselect.html -->
|
|
571
|
-
<auro-menu>
|
|
572
|
-
<auro-menuoption value="new tab">New tab</auro-menuoption>
|
|
573
|
-
<auro-menuoption value="new window" selected>New window</auro-menuoption>
|
|
574
|
-
<auro-menuoption value="open file">Open file</auro-menuoption>
|
|
575
|
-
<auro-menuoption value="open location">Open location</auro-menuoption>
|
|
576
|
-
<hr>
|
|
577
|
-
<auro-menuoption value="close window">Close window</auro-menuoption>
|
|
578
|
-
<auro-menuoption value="close tab" disabled>Close tab</auro-menuoption>
|
|
579
|
-
<auro-menuoption value="save page as...">Save page as...</auro-menuoption>
|
|
580
|
-
<hr>
|
|
581
|
-
<auro-menuoption value="share" disabled>Share</auro-menuoption>
|
|
582
|
-
<hr>
|
|
583
|
-
<auro-menuoption value="print">Print</auro-menuoption>
|
|
584
|
-
</auro-menu>
|
|
585
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
586
|
-
</div>
|
|
587
|
-
<auro-accordion alignRight>
|
|
588
|
-
<span slot="trigger">See code</span>
|
|
589
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/preselect.html) -->
|
|
590
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/preselect.html -->
|
|
591
|
-
<pre class="language-html"><code class="language-html"><auro-menu>
|
|
592
|
-
<auro-menuoption value="new tab">New tab</auro-menuoption>
|
|
593
|
-
<auro-menuoption value="new window" selected>New window</auro-menuoption>
|
|
594
|
-
<auro-menuoption value="open file">Open file</auro-menuoption>
|
|
595
|
-
<auro-menuoption value="open location">Open location</auro-menuoption>
|
|
596
|
-
<hr>
|
|
597
|
-
<auro-menuoption value="close window">Close window</auro-menuoption>
|
|
598
|
-
<auro-menuoption value="close tab" disabled>Close tab</auro-menuoption>
|
|
599
|
-
<auro-menuoption value="save page as...">Save page as...</auro-menuoption>
|
|
600
|
-
<hr>
|
|
601
|
-
<auro-menuoption value="share" disabled>Share</auro-menuoption>
|
|
602
|
-
<hr>
|
|
603
|
-
<auro-menuoption value="print">Print</auro-menuoption>
|
|
604
|
-
</auro-menu></code></pre>
|
|
605
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
606
|
-
</auro-accordion>
|
|
607
|
-
<auro-header level="3" id="allowDeselect">Allow Deselect</auro-header>
|
|
608
|
-
<p>Use the <code>allowDeselect</code> attribute to allow users to click a selected option again to deselect it in single-select mode. In multi-select mode, deselection is always available regardless of this attribute.</p>
|
|
609
|
-
<div class="exampleWrapper">
|
|
610
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/allow-deselect.html) -->
|
|
611
|
-
<!-- The below content is automatically added from ./../apiExamples/allow-deselect.html -->
|
|
612
|
-
<auro-menu allowDeselect>
|
|
613
|
-
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
614
|
-
<auro-menuoption value="price">Price</auro-menuoption>
|
|
615
|
-
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
616
|
-
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
617
|
-
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
618
|
-
</auro-menu>
|
|
619
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
620
|
-
</div>
|
|
621
|
-
<auro-accordion alignRight>
|
|
622
|
-
<span slot="trigger">See code</span>
|
|
623
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/allow-deselect.html) -->
|
|
624
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/allow-deselect.html -->
|
|
625
|
-
<pre class="language-html"><code class="language-html"><auro-menu allowDeselect>
|
|
626
|
-
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
627
|
-
<auro-menuoption value="price">Price</auro-menuoption>
|
|
628
|
-
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
629
|
-
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
630
|
-
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
631
|
-
</auro-menu></code></pre>
|
|
632
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
633
|
-
</auro-accordion>
|
|
634
866
|
</section>
|
|
635
867
|
</div>
|
|
636
868
|
</div>
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<auro-header level="2" id="shapeSizeLayout">Shape | Size | Layout Support</auro-header>
|
|
23
23
|
<p>The <code>auro-menu</code> component supports the <code>shape</code> and <code>size</code> feature set. The component defaults to <code>shape="box"</code> and <code>size="sm"</code>. The <code>layout</code> attribute is not supported by this component.</p>
|
|
24
24
|
<auro-header level="3" id="size">Size</auro-header>
|
|
25
|
-
<p>Use the <code>size</code> attribute to change the size of menu options. Supported values are <code>sm</code> (default) and <code>
|
|
25
|
+
<p>Use the <code>size</code> attribute to change the size of menu options. Supported values are <code>xs</code>, <code>sm</code> (default), <code>md</code>, <code>lg</code>, and <code>xl</code>.</p>
|
|
26
26
|
<div class="exampleWrapper">
|
|
27
27
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/size.html) -->
|
|
28
28
|
<!-- The below content is automatically added from ./../apiExamples/size.html -->
|