@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.10 → 0.0.0-pr624.100
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 +12 -2
- package/components/bibtemplate/dist/buttonVersion.d.ts +2 -0
- package/components/bibtemplate/dist/headerVersion.d.ts +1 -1
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +1242 -94
- package/components/bibtemplate/dist/registered.js +1242 -94
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.html +16 -10
- package/components/checkbox/demo/api.md +54 -19
- package/components/checkbox/demo/api.min.js +71 -46
- package/components/checkbox/demo/index.html +16 -10
- package/components/checkbox/demo/index.md +2 -2
- package/components/checkbox/demo/index.min.js +71 -46
- package/components/checkbox/demo/readme.html +16 -9
- package/components/checkbox/demo/readme.md +1 -1
- package/components/checkbox/dist/auro-checkbox-group.d.ts +1 -1
- package/components/checkbox/dist/auro-checkbox.d.ts +6 -3
- package/components/checkbox/dist/index.js +70 -45
- package/components/checkbox/dist/registered.js +70 -45
- package/components/combobox/README.md +2 -0
- package/components/combobox/demo/api.html +16 -10
- package/components/combobox/demo/api.md +121 -8
- package/components/combobox/demo/api.min.js +3314 -1013
- package/components/combobox/demo/index.html +16 -10
- package/components/combobox/demo/index.md +20 -34
- package/components/combobox/demo/index.min.js +3314 -1013
- package/components/combobox/demo/readme.html +16 -9
- package/components/combobox/demo/readme.md +2 -0
- package/components/combobox/dist/auro-combobox.d.ts +59 -14
- package/components/combobox/dist/index.js +3008 -850
- package/components/combobox/dist/registered.js +3008 -850
- package/components/counter/demo/api.html +17 -10
- package/components/counter/demo/api.md +167 -21
- package/components/counter/demo/api.min.js +3419 -773
- package/components/counter/demo/index.html +17 -10
- package/components/counter/demo/index.md +191 -34
- package/components/counter/demo/index.min.js +3419 -773
- package/components/counter/demo/readme.html +16 -9
- package/components/counter/dist/auro-counter-button.d.ts +2 -0
- package/components/counter/dist/auro-counter-group.d.ts +162 -11
- package/components/counter/dist/auro-counter.d.ts +16 -0
- package/components/counter/dist/helptextVersion.d.ts +2 -0
- package/components/counter/dist/iconVersion.d.ts +1 -1
- package/components/counter/dist/index.js +3419 -773
- package/components/counter/dist/registered.js +3419 -773
- package/components/datepicker/README.md +2 -1
- package/components/datepicker/demo/api.html +16 -10
- package/components/datepicker/demo/api.md +70 -28
- package/components/datepicker/demo/api.min.js +11970 -8081
- package/components/datepicker/demo/index.html +16 -10
- package/components/datepicker/demo/index.md +87 -8
- package/components/datepicker/demo/index.min.js +11970 -8081
- package/components/datepicker/demo/readme.html +16 -9
- package/components/datepicker/demo/readme.md +2 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +152 -12
- package/components/datepicker/dist/buttonVersion.d.ts +1 -1
- package/components/datepicker/dist/iconVersion.d.ts +2 -0
- package/components/datepicker/dist/index.js +14577 -10688
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/dist/registered.js +14577 -10688
- package/components/dropdown/demo/api.html +16 -10
- package/components/dropdown/demo/api.md +89 -281
- package/components/dropdown/demo/api.min.js +451 -271
- package/components/dropdown/demo/index.html +16 -10
- package/components/dropdown/demo/index.md +92 -362
- package/components/dropdown/demo/index.min.js +451 -271
- package/components/dropdown/demo/readme.html +16 -9
- package/components/dropdown/dist/auro-dropdown.d.ts +43 -82
- package/components/dropdown/dist/auro-dropdownBib.d.ts +14 -0
- package/components/dropdown/dist/index.js +450 -270
- package/components/dropdown/dist/registered.js +450 -270
- package/components/form/demo/api.html +16 -9
- package/components/form/demo/api.md +1 -1
- package/components/form/demo/api.min.js +3 -3
- package/components/form/demo/autocomplete.html +19 -3
- package/components/form/demo/index.html +16 -9
- package/components/form/demo/index.min.js +3 -3
- package/components/form/demo/readme.html +16 -9
- package/components/form/demo/working.html +19 -13
- package/components/form/dist/auro-form.d.ts +1 -1
- package/components/form/dist/index.js +2 -2
- package/components/form/dist/registered.js +2 -2
- package/components/helptext/dist/auro-helptext.d.ts +0 -2
- package/components/helptext/dist/index.js +3 -5
- package/components/helptext/dist/registered.js +3 -5
- package/components/input/README.md +6 -2
- package/components/input/demo/api.html +16 -10
- package/components/input/demo/api.md +235 -135
- package/components/input/demo/api.min.js +1046 -301
- package/components/input/demo/index.html +16 -10
- package/components/input/demo/index.md +55 -32
- package/components/input/demo/index.min.js +1062 -317
- package/components/input/demo/readme.html +16 -9
- package/components/input/demo/readme.md +6 -2
- package/components/input/dist/auro-input.d.ts +26 -2
- package/components/input/dist/base-input.d.ts +47 -11
- package/components/input/dist/buttonVersion.d.ts +1 -1
- package/components/input/dist/iconVersion.d.ts +1 -1
- package/components/input/dist/index.js +1061 -316
- package/components/input/dist/registered.js +1061 -316
- package/components/layoutElement/dist/index.js +11 -8
- package/components/layoutElement/dist/registered.js +97 -0
- package/components/menu/demo/api.html +17 -10
- package/components/menu/demo/api.md +65 -8
- package/components/menu/demo/api.min.js +301 -63
- package/components/menu/demo/index.html +16 -10
- package/components/menu/demo/index.min.js +301 -63
- package/components/menu/demo/readme.html +16 -9
- package/components/menu/dist/auro-menu.d.ts +53 -7
- package/components/menu/dist/auro-menuoption.d.ts +21 -3
- package/components/menu/dist/iconVersion.d.ts +1 -1
- package/components/menu/dist/index.js +286 -48
- package/components/menu/dist/registered.js +286 -48
- package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
- package/components/radio/demo/api.html +16 -10
- package/components/radio/demo/api.md +41 -9
- package/components/radio/demo/api.min.js +95 -97
- package/components/radio/demo/index.html +16 -10
- package/components/radio/demo/index.min.js +95 -97
- package/components/radio/demo/readme.html +16 -9
- package/components/radio/dist/auro-radio-group.d.ts +1 -1
- package/components/radio/dist/auro-radio.d.ts +11 -12
- package/components/radio/dist/index.js +94 -96
- package/components/radio/dist/registered.js +94 -96
- package/components/select/README.md +1 -0
- package/components/select/demo/api.html +16 -10
- package/components/select/demo/api.js +0 -2
- package/components/select/demo/api.md +159 -125
- package/components/select/demo/api.min.js +2281 -730
- package/components/select/demo/index.html +17 -11
- package/components/select/demo/index.md +1074 -259
- package/components/select/demo/index.min.js +2283 -720
- package/components/select/demo/readme.html +16 -9
- package/components/select/demo/readme.md +1 -0
- package/components/select/dist/auro-select.d.ts +86 -25
- package/components/select/dist/index.js +2175 -755
- package/components/select/dist/registered.js +2175 -755
- package/package.json +31 -28
- /package/components/{datepicker/dist/styles/default/color-css.d.ts → counter/dist/styles/shapeSize-css.d.ts} +0 -0
- /package/components/datepicker/dist/styles/{emphasized/style-css.d.ts → classic/color-css.d.ts} +0 -0
- /package/components/{input/dist/styles/default/input-css.d.ts → datepicker/dist/styles/classic/style-css.d.ts} +0 -0
- /package/components/{input/dist/styles/default/label-css.d.ts → datepicker/dist/styles/snowflake/color-css.d.ts} +0 -0
- /package/components/{input/dist/styles/input-css.d.ts → datepicker/dist/styles/snowflake/style-css.d.ts} +0 -0
- /package/components/{menu/dist/styles/color-menu-css.d.ts → dropdown/dist/styles/style-css.d.ts} +0 -0
- /package/components/menu/dist/styles/{color-menuoption-css.d.ts → default/color-menu-css.d.ts} +0 -0
- /package/components/menu/dist/styles/{style-menu-css.d.ts → default/color-menuoption-css.d.ts} +0 -0
- /package/components/menu/dist/styles/{style-menuoption-css.d.ts → default/style-menu-css.d.ts} +0 -0
- /package/components/menu/dist/styles/{tokens-css.d.ts → default/style-menuoption-css.d.ts} +0 -0
|
@@ -20,12 +20,12 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
|
|
|
20
20
|
| [autocomplete](#autocomplete) | `autocomplete` | `string` | | If declared, sets the autocomplete attribute for the select element. |
|
|
21
21
|
| [disabled](#disabled) | `disabled` | `boolean` | | When attribute is present, element shows disabled state. |
|
|
22
22
|
| [error](#error) | `error` | `string` | | When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value. |
|
|
23
|
-
| [
|
|
23
|
+
| [fluid](#fluid) | `fluid` | `boolean` | | When attribute is present, element will be 100% width of container element. |
|
|
24
24
|
| [forceDisplayValue](#forceDisplayValue) | `forceDisplayValue` | `boolean` | false | If declared, the label and value will be visually hidden and the displayValue will render 100% of the time. |
|
|
25
25
|
| [fullscreenBreakpoint](#fullscreenBreakpoint) | `fullscreenBreakpoint` | `string` | "sm" | Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)<br />at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.<br /><br />When expanded, the dropdown will automatically display in fullscreen mode<br />if the screen size is equal to or smaller than the selected breakpoint. |
|
|
26
26
|
| [largeFullscreenHeadline](#largeFullscreenHeadline) | `largeFullscreenHeadline` | `boolean` | | If declared, make bib.fullscreen.headline in HeadingDisplay.<br />Otherwise, Heading 600. |
|
|
27
|
-
| [layout](#layout) | | `string` |
|
|
28
|
-
| [matchWidth](#matchWidth) | `matchWidth` | `boolean` |
|
|
27
|
+
| [layout](#layout) | | `string` | | |
|
|
28
|
+
| [matchWidth](#matchWidth) | `matchWidth` | `boolean` | false | If declared, the popover and trigger will be set to the same width. |
|
|
29
29
|
| [multiSelect](#multiSelect) | `multiselect` | `boolean` | | Sets multi-select mode, allowing multiple options to be selected at once. |
|
|
30
30
|
| [name](#name) | `name` | `string` | | The name for the select element. |
|
|
31
31
|
| [noCheckmark](#noCheckmark) | `noCheckmark` | `boolean` | | When true, checkmark on selected option will no longer be present. |
|
|
@@ -34,25 +34,23 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
|
|
|
34
34
|
| [offset](#offset) | `offset` | `number` | "0" | Gap between the trigger element and bib. |
|
|
35
35
|
| [onDark](#onDark) | `onDark` | `boolean` | | If declared, onDark styles will be applied to the trigger. |
|
|
36
36
|
| [optionSelected](#optionSelected) | `optionSelected` | `HTMLElement\|Array<HTMLElement>` | | Specifies the current selected menuOption. Default type is `HTMLElement`, changing to `Array<HTMLElement>` when `multiSelect` is true. |
|
|
37
|
-
| [
|
|
37
|
+
| [placeholder](#placeholder) | `placeholder` | `string` | | Define custom placeholder text. |
|
|
38
|
+
| [placement](#placement) | `placement` | `string` | "bottom-start" | Position where the bib should appear relative to the trigger.<br />Accepted values:<br />"top" \| "right" \| "bottom" \| "left" \|<br />"bottom-start" \| "top-start" \| "top-end" \|<br />"right-start" \| "right-end" \| "bottom-end" \|<br />"left-start" \| "left-end". |
|
|
38
39
|
| [required](#required) | `required` | `boolean` | | Populates the `required` attribute on the element. Used for client-side validation. |
|
|
39
40
|
| [setCustomValidity](#setCustomValidity) | `setCustomValidity` | `string` | | Sets a custom help text message to display for all validityStates. |
|
|
40
41
|
| [setCustomValidityCustomError](#setCustomValidityCustomError) | `setCustomValidityCustomError` | `string` | | Custom help text message to display when validity = `customError`. |
|
|
41
42
|
| [setCustomValidityValueMissing](#setCustomValidityValueMissing) | `setCustomValidityValueMissing` | `string` | | Custom help text message to display when validity = `valueMissing`. |
|
|
42
|
-
| [shape](#shape) | | `string` | "classic" | |
|
|
43
|
-
| [size](#size) | | `string` | "xl" | |
|
|
44
43
|
| [validity](#validity) | `validity` | `string` | | Specifies the `validityState` this element is in. |
|
|
45
|
-
| [value](#value) | `value` | `
|
|
44
|
+
| [value](#value) | `value` | `string` | | Value selected for the component. |
|
|
46
45
|
|
|
47
46
|
## Methods
|
|
48
47
|
|
|
49
|
-
| Method
|
|
50
|
-
|
|
51
|
-
| [
|
|
52
|
-
| [
|
|
53
|
-
| [
|
|
54
|
-
| [
|
|
55
|
-
| [validate](#validate) | `(force?: boolean \| undefined): void` | Validates value.<br /><br />**force**: Whether to force validation. |
|
|
48
|
+
| Method | Type | Description |
|
|
49
|
+
|------------|----------------------------------------|--------------------------------------------------|
|
|
50
|
+
| [hideBib](#hideBib) | `(): void` | Hides the dropdown bib if its open. |
|
|
51
|
+
| [reset](#reset) | `(): void` | Resets component to initial state. |
|
|
52
|
+
| [showBib](#showBib) | `(): void` | Shows the dropdown bib if there are options to show. |
|
|
53
|
+
| [validate](#validate) | `(force?: boolean \| undefined): void` | Validates value.<br /><br />**force**: Whether to force validation. |
|
|
56
54
|
|
|
57
55
|
## Events
|
|
58
56
|
|
|
@@ -60,24 +58,29 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
|
|
|
60
58
|
|-----------------------------|--------------------------------------------------|--------------------------------------------------|
|
|
61
59
|
| `auroFormElement-validated` | | Notifies that the `validity` and `errorMessage` values have changed. |
|
|
62
60
|
| `auroSelect-valueSet` | `CustomEvent<any>` | Notifies that the component has a new value set. |
|
|
63
|
-
| [input](#input) | `CustomEvent<{ optionSelected: any; value:
|
|
61
|
+
| [input](#input) | `CustomEvent<{ optionSelected: any; value: string \| string[]; }>` | Notifies every time the value prop of the element is changed. The updated `value` and `optionSelected` will be delivered in `detail` object. |
|
|
64
62
|
|
|
65
63
|
## Slots
|
|
66
64
|
|
|
67
65
|
| Name | Description |
|
|
68
66
|
|---------------------------|--------------------------------------------------|
|
|
69
67
|
| | Default slot for the menu content. |
|
|
68
|
+
| `ariaLabel.bib.close` | Sets aria-label on close button in fullscreen bib |
|
|
70
69
|
| `bib.fullscreen.headline` | Defines the headline to display above menu-options |
|
|
70
|
+
| [displayValue](#displayValue) | Allows custom HTML content to display the selected value when select is not focused. |
|
|
71
71
|
| [helpText](#helpText) | Defines the content of the helpText. |
|
|
72
72
|
| [label](#label) | Defines the content of the label. |
|
|
73
|
-
| [
|
|
73
|
+
| [optionalLabel](#optionalLabel) | Allows overriding the optional display text "(optional)", which appears next to the label. |
|
|
74
74
|
| [valueText](#valueText) | Dropdown value text display. |
|
|
75
75
|
|
|
76
76
|
## CSS Shadow Parts
|
|
77
77
|
|
|
78
|
-
| Part
|
|
79
|
-
|
|
80
|
-
| [
|
|
78
|
+
| Part | Description |
|
|
79
|
+
|-------------------|--------------------------------------------------|
|
|
80
|
+
| [dropdownChevron](#dropdownChevron) | Apply CSS to the collapsed/expanded state icon container. |
|
|
81
|
+
| [dropdownSize](#dropdownSize) | Apply size styles to the dropdown bib. (height, width, maxHeight, maxWidth only) |
|
|
82
|
+
| [dropdownTrigger](#dropdownTrigger) | Apply CSS to the trigger content container. |
|
|
83
|
+
| [helpText](#helpText) | Apply CSS to the help text. |
|
|
81
84
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
82
85
|
|
|
83
86
|
## API Examples
|
|
@@ -90,6 +93,7 @@ A baseline `auro-select` using `auro-menu` and `auro-menuoption` elements.
|
|
|
90
93
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
91
94
|
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
92
95
|
<auro-select>
|
|
96
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
93
97
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
94
98
|
<span slot="label">Select Example</span>
|
|
95
99
|
<auro-menu>
|
|
@@ -127,6 +131,7 @@ A baseline `auro-select` using `auro-menu` and `auro-menuoption` elements.
|
|
|
127
131
|
|
|
128
132
|
```html
|
|
129
133
|
<auro-select>
|
|
134
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
130
135
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
131
136
|
<span slot="label">Select Example</span>
|
|
132
137
|
<auro-menu>
|
|
@@ -410,10 +415,9 @@ When the validity check fails the validityState, equals `valueMissing`. The erro
|
|
|
410
415
|
<div class="exampleWrapper">
|
|
411
416
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/required.html) -->
|
|
412
417
|
<!-- The below content is automatically added from ./../apiExamples/required.html -->
|
|
413
|
-
<auro-select required setCustomValidityValueMissing="Custom required validation error message.">
|
|
418
|
+
<auro-select required setCustomValidityValueMissing="Custom required validation error message." placeholder="Placeholder Text">
|
|
414
419
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
415
|
-
<span slot="label">
|
|
416
|
-
<label slot="placeholder">Placeholder Text</label>
|
|
420
|
+
<span slot="label">Label</span>
|
|
417
421
|
<auro-menu>
|
|
418
422
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
419
423
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -431,10 +435,53 @@ When the validity check fails the validityState, equals `valueMissing`. The erro
|
|
|
431
435
|
<!-- The below code snippet is automatically added from ./../apiExamples/required.html -->
|
|
432
436
|
|
|
433
437
|
```html
|
|
434
|
-
<auro-select required setCustomValidityValueMissing="Custom required validation error message.">
|
|
438
|
+
<auro-select required setCustomValidityValueMissing="Custom required validation error message." placeholder="Placeholder Text">
|
|
435
439
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
436
|
-
<span slot="label">
|
|
437
|
-
<
|
|
440
|
+
<span slot="label">Label</span>
|
|
441
|
+
<auro-menu>
|
|
442
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
443
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
444
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
445
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
446
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
447
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
448
|
+
</auro-menu>
|
|
449
|
+
</auro-select>
|
|
450
|
+
```
|
|
451
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
452
|
+
</auro-accordion>
|
|
453
|
+
|
|
454
|
+
### Custom optional label <a name="optionalLabel"></a>
|
|
455
|
+
The `<auro-select>` supports an `optionalLabel` slot, where users can can override the default `(optional)` notification text.
|
|
456
|
+
|
|
457
|
+
<div class="exampleWrapper">
|
|
458
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/optionalLabel.html) -->
|
|
459
|
+
<!-- The below content is automatically added from ./../apiExamples/optionalLabel.html -->
|
|
460
|
+
<auro-select>
|
|
461
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
462
|
+
<span slot="label">Please select a preference</span>
|
|
463
|
+
<span slot="optionalLabel" style="color: grey; font-size: small"> - optional</span>
|
|
464
|
+
<auro-menu>
|
|
465
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
466
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
467
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
468
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
469
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
470
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
471
|
+
</auro-menu>
|
|
472
|
+
</auro-select>
|
|
473
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
474
|
+
</div>
|
|
475
|
+
<auro-accordion alignRight>
|
|
476
|
+
<span slot="trigger">See code</span>
|
|
477
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/optionalLabel.html) -->
|
|
478
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/optionalLabel.html -->
|
|
479
|
+
|
|
480
|
+
```html
|
|
481
|
+
<auro-select>
|
|
482
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
483
|
+
<span slot="label">Please select a preference</span>
|
|
484
|
+
<span slot="optionalLabel" style="color: grey; font-size: small"> - optional</span>
|
|
438
485
|
<auro-menu>
|
|
439
486
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
440
487
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -454,10 +501,9 @@ Use the `error` boolean attribute to toggle the error UI.
|
|
|
454
501
|
<div class="exampleWrapper">
|
|
455
502
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/error.html) -->
|
|
456
503
|
<!-- The below content is automatically added from ./../apiExamples/error.html -->
|
|
457
|
-
<auro-select error="Custom error message">
|
|
458
|
-
<span slot="label">error select example</span>
|
|
504
|
+
<auro-select error="Custom error message" placeholder="Placeholder Text">
|
|
459
505
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
460
|
-
<
|
|
506
|
+
<span slot="label">Label</span>
|
|
461
507
|
<auro-menu>
|
|
462
508
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
463
509
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -472,10 +518,9 @@ Use the `error` boolean attribute to toggle the error UI.
|
|
|
472
518
|
<div class="exampleWrapper--ondark" aria-hidden>
|
|
473
519
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkError.html) -->
|
|
474
520
|
<!-- The below content is automatically added from ./../apiExamples/onDarkError.html -->
|
|
475
|
-
<auro-select onDark error="Custom error message">
|
|
476
|
-
<span slot="label">error select example</span>
|
|
521
|
+
<auro-select onDark error="Custom error message" placeholder="Placeholder Text">
|
|
477
522
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
478
|
-
<
|
|
523
|
+
<span slot="label">Label</span>
|
|
479
524
|
<auro-menu>
|
|
480
525
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
481
526
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -493,10 +538,9 @@ Use the `error` boolean attribute to toggle the error UI.
|
|
|
493
538
|
<!-- The below code snippet is automatically added from ./../apiExamples/error.html -->
|
|
494
539
|
|
|
495
540
|
```html
|
|
496
|
-
<auro-select error="Custom error message">
|
|
497
|
-
<span slot="label">error select example</span>
|
|
541
|
+
<auro-select error="Custom error message" placeholder="Placeholder Text">
|
|
498
542
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
499
|
-
<
|
|
543
|
+
<span slot="label">Label</span>
|
|
500
544
|
<auro-menu>
|
|
501
545
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
502
546
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -510,10 +554,9 @@ Use the `error` boolean attribute to toggle the error UI.
|
|
|
510
554
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
511
555
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkError.html) -->
|
|
512
556
|
<!-- The below content is automatically added from ./../apiExamples/onDarkError.html -->
|
|
513
|
-
<auro-select onDark error="Custom error message">
|
|
514
|
-
<span slot="label">error select example</span>
|
|
557
|
+
<auro-select onDark error="Custom error message" placeholder="Placeholder Text">
|
|
515
558
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
516
|
-
<
|
|
559
|
+
<span slot="label">Label</span>
|
|
517
560
|
<auro-menu>
|
|
518
561
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
519
562
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -532,10 +575,9 @@ Use the `disabled` boolean attribute to toggle the disabled UI.
|
|
|
532
575
|
<div class="exampleWrapper">
|
|
533
576
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/disabled.html) -->
|
|
534
577
|
<!-- The below content is automatically added from ./../apiExamples/disabled.html -->
|
|
535
|
-
<auro-select disabled>
|
|
578
|
+
<auro-select disabled placeholder="Placeholder Text">
|
|
536
579
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
537
|
-
<
|
|
538
|
-
<span slot="label">disabled select example</span>
|
|
580
|
+
<span slot="label">Label</span>
|
|
539
581
|
<auro-menu>
|
|
540
582
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
541
583
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -550,10 +592,9 @@ Use the `disabled` boolean attribute to toggle the disabled UI.
|
|
|
550
592
|
<div class="exampleWrapper--ondark" aria-hidden>
|
|
551
593
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkDisabled.html) -->
|
|
552
594
|
<!-- The below content is automatically added from ./../apiExamples/onDarkDisabled.html -->
|
|
553
|
-
<auro-select onDark disabled>
|
|
595
|
+
<auro-select onDark disabled placeholder="Placeholder Text">
|
|
554
596
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
555
|
-
<
|
|
556
|
-
<span slot="label">disabled select example</span>
|
|
597
|
+
<span slot="label">Label</span>
|
|
557
598
|
<auro-menu>
|
|
558
599
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
559
600
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -571,10 +612,9 @@ Use the `disabled` boolean attribute to toggle the disabled UI.
|
|
|
571
612
|
<!-- The below code snippet is automatically added from ./../apiExamples/disabled.html -->
|
|
572
613
|
|
|
573
614
|
```html
|
|
574
|
-
<auro-select disabled>
|
|
615
|
+
<auro-select disabled placeholder="Placeholder Text">
|
|
575
616
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
576
|
-
<
|
|
577
|
-
<span slot="label">disabled select example</span>
|
|
617
|
+
<span slot="label">Label</span>
|
|
578
618
|
<auro-menu>
|
|
579
619
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
580
620
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -588,10 +628,9 @@ Use the `disabled` boolean attribute to toggle the disabled UI.
|
|
|
588
628
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
589
629
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkDisabled.html) -->
|
|
590
630
|
<!-- The below content is automatically added from ./../apiExamples/onDarkDisabled.html -->
|
|
591
|
-
<auro-select onDark disabled>
|
|
631
|
+
<auro-select onDark disabled placeholder="Placeholder Text">
|
|
592
632
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
593
|
-
<
|
|
594
|
-
<span slot="label">disabled select example</span>
|
|
633
|
+
<span slot="label">Label</span>
|
|
595
634
|
<auro-menu>
|
|
596
635
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
597
636
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -648,10 +687,9 @@ Use the `flexMenuWidth` boolean attribute to toggle the width of the `<auro-sele
|
|
|
648
687
|
<div class="exampleWrapper">
|
|
649
688
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/flexMenuWidth.html) -->
|
|
650
689
|
<!-- The below content is automatically added from ../apiExamples/flexMenuWidth.html -->
|
|
651
|
-
<auro-select flexMenuWidth id="flexMenuWidthExample">
|
|
652
|
-
<span slot="label">flexMenuWidth select example</span>
|
|
690
|
+
<auro-select flexMenuWidth id="flexMenuWidthExample" placeholder="Placeholder Text">
|
|
653
691
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
654
|
-
<
|
|
692
|
+
<span slot="label">Label</span>
|
|
655
693
|
<auro-menu>
|
|
656
694
|
<auro-menuoption value="united states">United States has a country code of (+1)</auro-menuoption>
|
|
657
695
|
<auro-menuoption value="costa rica">Costa Rica has a country code of (+506)</auro-menuoption>
|
|
@@ -673,10 +711,9 @@ Use the `flexMenuWidth` boolean attribute to toggle the width of the `<auro-sele
|
|
|
673
711
|
<!-- The below code snippet is automatically added from ../apiExamples/flexMenuWidth.html -->
|
|
674
712
|
|
|
675
713
|
```html
|
|
676
|
-
<auro-select flexMenuWidth id="flexMenuWidthExample">
|
|
677
|
-
<span slot="label">flexMenuWidth select example</span>
|
|
714
|
+
<auro-select flexMenuWidth id="flexMenuWidthExample" placeholder="Placeholder Text">
|
|
678
715
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
679
|
-
<
|
|
716
|
+
<span slot="label">Label</span>
|
|
680
717
|
<auro-menu>
|
|
681
718
|
<auro-menuoption value="united states">United States has a country code of (+1)</auro-menuoption>
|
|
682
719
|
<auro-menuoption value="costa rica">Costa Rica has a country code of (+506)</auro-menuoption>
|
|
@@ -739,16 +776,15 @@ Use the `label` slot to give your users contextual information about their selec
|
|
|
739
776
|
</auro-accordion>
|
|
740
777
|
|
|
741
778
|
#### helpText <a name="helpText"></a>
|
|
742
|
-
Use the `
|
|
779
|
+
Use the `helpText` slot to provide additional information back to your user about their selection option(s).
|
|
743
780
|
|
|
744
781
|
<div class="exampleWrapper">
|
|
745
782
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/helpText.html) -->
|
|
746
783
|
<!-- The below content is automatically added from ./../apiExamples/helpText.html -->
|
|
747
|
-
<auro-select>
|
|
784
|
+
<auro-select placeholder="Placeholder Text">
|
|
748
785
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
749
|
-
<
|
|
786
|
+
<span slot="label">Label</span>
|
|
750
787
|
<span slot="helpText">Custom help text message.</span>
|
|
751
|
-
<span slot="label">helpText select example</span>
|
|
752
788
|
<auro-menu>
|
|
753
789
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
754
790
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -766,11 +802,10 @@ Use the `helptext` slot to provide additional information back to your user abou
|
|
|
766
802
|
<!-- The below code snippet is automatically added from ./../apiExamples/helpText.html -->
|
|
767
803
|
|
|
768
804
|
```html
|
|
769
|
-
<auro-select>
|
|
805
|
+
<auro-select placeholder="Placeholder Text">
|
|
770
806
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
771
|
-
<
|
|
807
|
+
<span slot="label">Label</span>
|
|
772
808
|
<span slot="helpText">Custom help text message.</span>
|
|
773
|
-
<span slot="label">helpText select example</span>
|
|
774
809
|
<auro-menu>
|
|
775
810
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
776
811
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -795,9 +830,9 @@ Use the `reset()` method to reset the `<auro-select>`'s `value` and `validity` s
|
|
|
795
830
|
<!-- The below content is automatically added from ./../apiExamples/resetState.html -->
|
|
796
831
|
<auro-button id="resetStateBtn">Reset</auro-button>
|
|
797
832
|
<br/><br/>
|
|
798
|
-
<auro-select id="resetStateExample" value="price">
|
|
833
|
+
<auro-select id="resetStateExample" value="price" placeholder="Placeholder Text">
|
|
799
834
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
800
|
-
<
|
|
835
|
+
<span slot="label">Label</span>
|
|
801
836
|
<span slot="label">Name</span>
|
|
802
837
|
<auro-menu>
|
|
803
838
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
@@ -818,9 +853,9 @@ Use the `reset()` method to reset the `<auro-select>`'s `value` and `validity` s
|
|
|
818
853
|
```html
|
|
819
854
|
<auro-button id="resetStateBtn">Reset</auro-button>
|
|
820
855
|
<br/><br/>
|
|
821
|
-
<auro-select id="resetStateExample" value="price">
|
|
856
|
+
<auro-select id="resetStateExample" value="price" placeholder="Placeholder Text">
|
|
822
857
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
823
|
-
<
|
|
858
|
+
<span slot="label">Label</span>
|
|
824
859
|
<span slot="label">Name</span>
|
|
825
860
|
<auro-menu>
|
|
826
861
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
@@ -855,10 +890,9 @@ The following example illustrates how a user may query the `element.value` or `e
|
|
|
855
890
|
<div class="exampleWrapper">
|
|
856
891
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/valueExtraction.html) -->
|
|
857
892
|
<!-- The below content is automatically added from ./../apiExamples/valueExtraction.html -->
|
|
858
|
-
<auro-select id="valueExtraction">
|
|
893
|
+
<auro-select id="valueExtraction" placeholder="Placeholder Text">
|
|
859
894
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
860
|
-
<
|
|
861
|
-
<span slot="label">Select Example</span>
|
|
895
|
+
<span slot="label">Label</span>
|
|
862
896
|
<auro-menu>
|
|
863
897
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
864
898
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -877,10 +911,9 @@ The following example illustrates how a user may query the `element.value` or `e
|
|
|
877
911
|
<!-- The below code snippet is automatically added from ./../apiExamples/valueExtraction.html -->
|
|
878
912
|
|
|
879
913
|
```html
|
|
880
|
-
<auro-select id="valueExtraction">
|
|
914
|
+
<auro-select id="valueExtraction" placeholder="Placeholder Text">
|
|
881
915
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
882
|
-
<
|
|
883
|
-
<span slot="label">Select Example</span>
|
|
916
|
+
<span slot="label">Label</span>
|
|
884
917
|
<auro-menu>
|
|
885
918
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
886
919
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -919,10 +952,9 @@ This example programmatically adds the `error` state when a user selects an opti
|
|
|
919
952
|
<div class="exampleWrapper">
|
|
920
953
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/customErrorValidity.html) -->
|
|
921
954
|
<!-- The below content is automatically added from ./../apiExamples/customErrorValidity.html -->
|
|
922
|
-
<auro-select id="primaryError">
|
|
955
|
+
<auro-select id="primaryError" placeholder="Placeholder Text">
|
|
923
956
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
924
|
-
<
|
|
925
|
-
<span slot="label">Select Example</span>
|
|
957
|
+
<span slot="label">Label</span>
|
|
926
958
|
<auro-menu>
|
|
927
959
|
<auro-menuoption value="1">1</auro-menuoption>
|
|
928
960
|
<auro-menuoption value="2">2</auro-menuoption>
|
|
@@ -940,10 +972,9 @@ This example programmatically adds the `error` state when a user selects an opti
|
|
|
940
972
|
<!-- The below code snippet is automatically added from ./../apiExamples/customErrorValidity.html -->
|
|
941
973
|
|
|
942
974
|
```html
|
|
943
|
-
<auro-select id="primaryError">
|
|
975
|
+
<auro-select id="primaryError" placeholder="Placeholder Text">
|
|
944
976
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
945
|
-
<
|
|
946
|
-
<span slot="label">Select Example</span>
|
|
977
|
+
<span slot="label">Label</span>
|
|
947
978
|
<auro-menu>
|
|
948
979
|
<auro-menuoption value="1">1</auro-menuoption>
|
|
949
980
|
<auro-menuoption value="2">2</auro-menuoption>
|
|
@@ -1042,57 +1073,56 @@ export function auroMenuLoadingExample() {
|
|
|
1042
1073
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1043
1074
|
</auro-accordion>
|
|
1044
1075
|
|
|
1045
|
-
###
|
|
1046
|
-
The label for selected option can be customized using `
|
|
1047
|
-
This slot can be manipulated on the `input` event which delivers the new value and selected `auro-menuoption` element in the `detail` object.
|
|
1076
|
+
### displayValue <a name="displayValue"></a>
|
|
1077
|
+
The label for selected option can be customized using `displayValue` slot under `<menuoption>.
|
|
1048
1078
|
|
|
1049
1079
|
<div class="exampleWrapper">
|
|
1050
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/
|
|
1051
|
-
<!-- The below content is automatically added from ./../apiExamples/
|
|
1052
|
-
<auro-select id="
|
|
1080
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/displayValue.html) -->
|
|
1081
|
+
<!-- The below content is automatically added from ./../apiExamples/displayValue.html -->
|
|
1082
|
+
<auro-select id="displayValueExample" autocomplete="address-level1">
|
|
1053
1083
|
<span slot="bib.fullscreen.headline">Select Your Gender</span>
|
|
1054
1084
|
<span slot="label">Gender</span>
|
|
1055
|
-
<span slot="
|
|
1085
|
+
<span slot="displayValue"></span>
|
|
1056
1086
|
<auro-menu>
|
|
1057
|
-
<auro-menuoption value="m" data-display="Male">M - Male
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
<auro-menuoption value="
|
|
1087
|
+
<auro-menuoption value="m" data-display="Male">M - Male
|
|
1088
|
+
<span slot="displayValue">Male</span>
|
|
1089
|
+
</auro-menuoption>
|
|
1090
|
+
<auro-menuoption value="f" data-display="Female">F - Female
|
|
1091
|
+
<span slot="displayValue">Female</span>
|
|
1092
|
+
</auro-menuoption>
|
|
1093
|
+
<auro-menuoption value="x" data-display="Unspecified">X - Unspecified
|
|
1094
|
+
<span slot="displayValue">Unspecified</span>
|
|
1095
|
+
</auro-menuoption>
|
|
1096
|
+
<auro-menuoption value="u" data-display="Undisclosed">U - Undisclosed
|
|
1097
|
+
<span slot="displayValue">Undisclosed</span>
|
|
1098
|
+
</auro-menuoption>
|
|
1061
1099
|
</auro-menu>
|
|
1062
1100
|
</auro-select>
|
|
1063
1101
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1064
1102
|
</div>
|
|
1065
1103
|
<auro-accordion alignRight>
|
|
1066
1104
|
<span slot="trigger">See code</span>
|
|
1067
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/
|
|
1068
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/
|
|
1069
|
-
|
|
1070
|
-
```js
|
|
1071
|
-
export function valueTextExample() {
|
|
1072
|
-
const onValueTextSelectInput = (e) => {
|
|
1073
|
-
const valueText = e.target.querySelector("[slot=valueText]");
|
|
1074
|
-
|
|
1075
|
-
valueText.textContent = e.detail.optionSelected.dataset.display;
|
|
1076
|
-
};
|
|
1077
|
-
|
|
1078
|
-
const select = document.querySelector("#valueTextExample");
|
|
1079
|
-
select.addEventListener('input', onValueTextSelectInput);
|
|
1080
|
-
}
|
|
1081
|
-
```
|
|
1082
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1083
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/valueText.html) -->
|
|
1084
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/valueText.html -->
|
|
1105
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/displayValue.html) -->
|
|
1106
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/displayValue.html -->
|
|
1085
1107
|
|
|
1086
1108
|
```html
|
|
1087
|
-
<auro-select id="
|
|
1109
|
+
<auro-select id="displayValueExample" autocomplete="address-level1">
|
|
1088
1110
|
<span slot="bib.fullscreen.headline">Select Your Gender</span>
|
|
1089
1111
|
<span slot="label">Gender</span>
|
|
1090
|
-
<span slot="
|
|
1112
|
+
<span slot="displayValue"></span>
|
|
1091
1113
|
<auro-menu>
|
|
1092
|
-
<auro-menuoption value="m" data-display="Male">M - Male
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
<auro-menuoption value="
|
|
1114
|
+
<auro-menuoption value="m" data-display="Male">M - Male
|
|
1115
|
+
<span slot="displayValue">Male</span>
|
|
1116
|
+
</auro-menuoption>
|
|
1117
|
+
<auro-menuoption value="f" data-display="Female">F - Female
|
|
1118
|
+
<span slot="displayValue">Female</span>
|
|
1119
|
+
</auro-menuoption>
|
|
1120
|
+
<auro-menuoption value="x" data-display="Unspecified">X - Unspecified
|
|
1121
|
+
<span slot="displayValue">Unspecified</span>
|
|
1122
|
+
</auro-menuoption>
|
|
1123
|
+
<auro-menuoption value="u" data-display="Undisclosed">U - Undisclosed
|
|
1124
|
+
<span slot="displayValue">Undisclosed</span>
|
|
1125
|
+
</auro-menuoption>
|
|
1096
1126
|
</auro-menu>
|
|
1097
1127
|
</auro-select>
|
|
1098
1128
|
```
|
|
@@ -1113,7 +1143,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1113
1143
|
<div style="width: 350px">
|
|
1114
1144
|
<auro-select offset="20" noFlip placement="bottom-end">
|
|
1115
1145
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1116
|
-
<span slot="label">
|
|
1146
|
+
<span slot="label">Label</span>
|
|
1147
|
+
<span slot="helpText">bottom-end bib with 20px offset and noFlip</span>
|
|
1117
1148
|
<auro-menu>
|
|
1118
1149
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1119
1150
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -1125,7 +1156,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1125
1156
|
</auro-select>
|
|
1126
1157
|
<auro-select offset="20" placement="bottom-end">
|
|
1127
1158
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1128
|
-
<span slot="label">
|
|
1159
|
+
<span slot="label">Label</span>
|
|
1160
|
+
<span slot="helpText">bottom-end bib with 20px offset and flip</span>
|
|
1129
1161
|
<auro-menu>
|
|
1130
1162
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1131
1163
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -1137,7 +1169,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1137
1169
|
</auro-select>
|
|
1138
1170
|
<auro-select offset="20" noFlip placement="right" autoPlacement noFlip >
|
|
1139
1171
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1140
|
-
<span slot="label">
|
|
1172
|
+
<span slot="label">Label</span>
|
|
1173
|
+
<span slot="helpText">right bib with 20px offset, noFlip and autoPlacement</span>
|
|
1141
1174
|
<auro-menu>
|
|
1142
1175
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1143
1176
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -1159,7 +1192,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1159
1192
|
<div style="width: 350px">
|
|
1160
1193
|
<auro-select offset="20" noFlip placement="bottom-end">
|
|
1161
1194
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1162
|
-
<span slot="label">
|
|
1195
|
+
<span slot="label">Label</span>
|
|
1196
|
+
<span slot="helpText">bottom-end bib with 20px offset and noFlip</span>
|
|
1163
1197
|
<auro-menu>
|
|
1164
1198
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1165
1199
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -1171,7 +1205,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1171
1205
|
</auro-select>
|
|
1172
1206
|
<auro-select offset="20" placement="bottom-end">
|
|
1173
1207
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1174
|
-
<span slot="label">
|
|
1208
|
+
<span slot="label">Label</span>
|
|
1209
|
+
<span slot="helpText">bottom-end bib with 20px offset and flip</span>
|
|
1175
1210
|
<auro-menu>
|
|
1176
1211
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1177
1212
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -1183,7 +1218,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1183
1218
|
</auro-select>
|
|
1184
1219
|
<auro-select offset="20" noFlip placement="right" autoPlacement noFlip >
|
|
1185
1220
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1186
|
-
<span slot="label">
|
|
1221
|
+
<span slot="label">Label</span>
|
|
1222
|
+
<span slot="helpText">right bib with 20px offset, noFlip and autoPlacement</span>
|
|
1187
1223
|
<auro-menu>
|
|
1188
1224
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1189
1225
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -1325,10 +1361,9 @@ The following example listens for the `auroMenu-selectedOption` event. Once trig
|
|
|
1325
1361
|
<div class="exampleWrapper">
|
|
1326
1362
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/valueAlert.html) -->
|
|
1327
1363
|
<!-- The below content is automatically added from ./../apiExamples/valueAlert.html -->
|
|
1328
|
-
<auro-select id="valueAlert">
|
|
1329
|
-
<span slot="label">Select Example</span>
|
|
1364
|
+
<auro-select id="valueAlert" placeholder="Placeholder Text">
|
|
1330
1365
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1331
|
-
<
|
|
1366
|
+
<span slot="label">Label</span>
|
|
1332
1367
|
<auro-menu id="valueAlertMenu">
|
|
1333
1368
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1334
1369
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -1346,10 +1381,9 @@ The following example listens for the `auroMenu-selectedOption` event. Once trig
|
|
|
1346
1381
|
<!-- The below code snippet is automatically added from ./../apiExamples/valueAlert.html -->
|
|
1347
1382
|
|
|
1348
1383
|
```html
|
|
1349
|
-
<auro-select id="valueAlert">
|
|
1350
|
-
<span slot="label">Select Example</span>
|
|
1384
|
+
<auro-select id="valueAlert" placeholder="Placeholder Text">
|
|
1351
1385
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1352
|
-
<
|
|
1386
|
+
<span slot="label">Label</span>
|
|
1353
1387
|
<auro-menu id="valueAlertMenu">
|
|
1354
1388
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1355
1389
|
<auro-menuoption value="price">Price</auro-menuoption>
|