@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.9 → 0.0.0-pr624.91
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 +1241 -94
- package/components/bibtemplate/dist/registered.js +1241 -94
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.html +16 -10
- package/components/checkbox/demo/api.md +49 -15
- package/components/checkbox/demo/api.min.js +74 -46
- package/components/checkbox/demo/index.html +16 -10
- package/components/checkbox/demo/index.md +2 -2
- package/components/checkbox/demo/index.min.js +74 -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 +3 -3
- package/components/checkbox/dist/index.js +73 -45
- package/components/checkbox/dist/registered.js +73 -45
- package/components/combobox/demo/api.html +16 -10
- package/components/combobox/demo/api.md +115 -8
- package/components/combobox/demo/api.min.js +3305 -1002
- package/components/combobox/demo/index.html +16 -10
- package/components/combobox/demo/index.md +8 -34
- package/components/combobox/demo/index.min.js +3305 -1002
- package/components/combobox/demo/readme.html +16 -9
- package/components/combobox/dist/auro-combobox.d.ts +57 -14
- package/components/combobox/dist/index.js +2992 -836
- package/components/combobox/dist/registered.js +2992 -836
- package/components/counter/demo/api.html +17 -10
- package/components/counter/demo/api.md +158 -21
- package/components/counter/demo/api.min.js +3417 -765
- package/components/counter/demo/index.html +17 -10
- package/components/counter/demo/index.md +185 -34
- package/components/counter/demo/index.min.js +3417 -765
- 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 +161 -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 +3420 -768
- package/components/counter/dist/registered.js +3420 -768
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.html +16 -10
- package/components/datepicker/demo/api.md +62 -28
- package/components/datepicker/demo/api.min.js +11956 -8070
- package/components/datepicker/demo/index.html +16 -10
- package/components/datepicker/demo/index.md +75 -8
- package/components/datepicker/demo/index.min.js +11956 -8070
- package/components/datepicker/demo/readme.html +16 -9
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +151 -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 +13802 -9916
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/dist/registered.js +13802 -9916
- package/components/dropdown/demo/api.html +16 -10
- package/components/dropdown/demo/api.md +82 -275
- package/components/dropdown/demo/api.min.js +450 -261
- package/components/dropdown/demo/index.html +16 -10
- package/components/dropdown/demo/index.md +92 -362
- package/components/dropdown/demo/index.min.js +450 -261
- package/components/dropdown/demo/readme.html +16 -9
- package/components/dropdown/dist/auro-dropdown.d.ts +43 -83
- package/components/dropdown/dist/auro-dropdownBib.d.ts +14 -0
- package/components/dropdown/dist/index.js +449 -260
- package/components/dropdown/dist/registered.js +449 -260
- 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 +5 -2
- package/components/input/demo/api.html +16 -10
- package/components/input/demo/api.md +226 -132
- package/components/input/demo/api.min.js +1034 -297
- package/components/input/demo/index.html +16 -10
- package/components/input/demo/index.md +48 -32
- package/components/input/demo/index.min.js +1048 -311
- package/components/input/demo/readme.html +16 -9
- package/components/input/demo/readme.md +5 -2
- package/components/input/dist/auro-input.d.ts +24 -0
- package/components/input/dist/base-input.d.ts +45 -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 +1047 -310
- package/components/input/dist/registered.js +1047 -310
- 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 +305 -63
- package/components/menu/demo/index.html +16 -10
- package/components/menu/demo/index.min.js +305 -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 +290 -48
- package/components/menu/dist/registered.js +290 -48
- package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
- package/components/menu/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/radio/demo/api.html +16 -10
- package/components/radio/demo/api.md +39 -9
- package/components/radio/demo/api.min.js +92 -96
- package/components/radio/demo/index.html +16 -10
- package/components/radio/demo/index.min.js +92 -96
- 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 +9 -12
- package/components/radio/dist/index.js +91 -95
- package/components/radio/dist/registered.js +91 -95
- package/components/select/demo/api.html +16 -10
- package/components/select/demo/api.js +0 -2
- package/components/select/demo/api.md +149 -122
- package/components/select/demo/api.min.js +2283 -736
- package/components/select/demo/index.html +17 -11
- package/components/select/demo/index.md +1066 -259
- package/components/select/demo/index.min.js +2284 -725
- package/components/select/demo/readme.html +16 -9
- package/components/select/dist/auro-select.d.ts +74 -25
- package/components/select/dist/index.js +2165 -753
- package/components/select/dist/registered.js +2165 -753
- 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/{dropdown/dist/styles/default → datepicker/dist/styles/classic}/color-css.d.ts +0 -0
- /package/components/datepicker/dist/styles/{emphasized → classic}/style-css.d.ts +0 -0
- /package/components/{dropdown/dist/styles/default/bibColors-css.d.ts → datepicker/dist/styles/snowflake/color-css.d.ts} +0 -0
- /package/components/{dropdown/dist/styles/default → datepicker/dist/styles/snowflake}/style-css.d.ts +0 -0
- /package/components/dropdown/dist/styles/{default/bibStyles-css.d.ts → classic/bibColors-css.d.ts} +0 -0
- /package/components/{input/dist/styles/default/input-css.d.ts → dropdown/dist/styles/classic/bibStyles-css.d.ts} +0 -0
- /package/components/{input/dist/styles/default/label-css.d.ts → dropdown/dist/styles/classic/color-css.d.ts} +0 -0
- /package/components/{input/dist/styles/input-css.d.ts → dropdown/dist/styles/classic/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,11 @@ 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
|
-
| [flexMenuWidth](#flexMenuWidth) | `flexMenuWidth` | `boolean` | | If set, makes dropdown width match the size of the content, rather than the width of the trigger. |
|
|
24
23
|
| [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
24
|
| [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
25
|
| [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` |
|
|
26
|
+
| [layout](#layout) | | `string` | | |
|
|
27
|
+
| [matchWidth](#matchWidth) | `matchWidth` | `boolean` | false | If declared, the popover and trigger will be set to the same width. |
|
|
29
28
|
| [multiSelect](#multiSelect) | `multiselect` | `boolean` | | Sets multi-select mode, allowing multiple options to be selected at once. |
|
|
30
29
|
| [name](#name) | `name` | `string` | | The name for the select element. |
|
|
31
30
|
| [noCheckmark](#noCheckmark) | `noCheckmark` | `boolean` | | When true, checkmark on selected option will no longer be present. |
|
|
@@ -34,25 +33,23 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
|
|
|
34
33
|
| [offset](#offset) | `offset` | `number` | "0" | Gap between the trigger element and bib. |
|
|
35
34
|
| [onDark](#onDark) | `onDark` | `boolean` | | If declared, onDark styles will be applied to the trigger. |
|
|
36
35
|
| [optionSelected](#optionSelected) | `optionSelected` | `HTMLElement\|Array<HTMLElement>` | | Specifies the current selected menuOption. Default type is `HTMLElement`, changing to `Array<HTMLElement>` when `multiSelect` is true. |
|
|
37
|
-
| [
|
|
36
|
+
| [placeholder](#placeholder) | `placeholder` | `string` | | Define custom placeholder text. |
|
|
37
|
+
| [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
38
|
| [required](#required) | `required` | `boolean` | | Populates the `required` attribute on the element. Used for client-side validation. |
|
|
39
39
|
| [setCustomValidity](#setCustomValidity) | `setCustomValidity` | `string` | | Sets a custom help text message to display for all validityStates. |
|
|
40
40
|
| [setCustomValidityCustomError](#setCustomValidityCustomError) | `setCustomValidityCustomError` | `string` | | Custom help text message to display when validity = `customError`. |
|
|
41
41
|
| [setCustomValidityValueMissing](#setCustomValidityValueMissing) | `setCustomValidityValueMissing` | `string` | | Custom help text message to display when validity = `valueMissing`. |
|
|
42
|
-
| [shape](#shape) | | `string` | "classic" | |
|
|
43
|
-
| [size](#size) | | `string` | "xl" | |
|
|
44
42
|
| [validity](#validity) | `validity` | `string` | | Specifies the `validityState` this element is in. |
|
|
45
|
-
| [value](#value) | `value` | `
|
|
43
|
+
| [value](#value) | `value` | `string` | | Value selected for the component. |
|
|
46
44
|
|
|
47
45
|
## Methods
|
|
48
46
|
|
|
49
|
-
| Method
|
|
50
|
-
|
|
51
|
-
| [
|
|
52
|
-
| [
|
|
53
|
-
| [
|
|
54
|
-
| [
|
|
55
|
-
| [validate](#validate) | `(force?: boolean \| undefined): void` | Validates value.<br /><br />**force**: Whether to force validation. |
|
|
47
|
+
| Method | Type | Description |
|
|
48
|
+
|------------|----------------------------------------|--------------------------------------------------|
|
|
49
|
+
| [hideBib](#hideBib) | `(): void` | Hides the dropdown bib if its open. |
|
|
50
|
+
| [reset](#reset) | `(): void` | Resets component to initial state. |
|
|
51
|
+
| [showBib](#showBib) | `(): void` | Shows the dropdown bib if there are options to show. |
|
|
52
|
+
| [validate](#validate) | `(force?: boolean \| undefined): void` | Validates value.<br /><br />**force**: Whether to force validation. |
|
|
56
53
|
|
|
57
54
|
## Events
|
|
58
55
|
|
|
@@ -60,7 +57,7 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
|
|
|
60
57
|
|-----------------------------|--------------------------------------------------|--------------------------------------------------|
|
|
61
58
|
| `auroFormElement-validated` | | Notifies that the `validity` and `errorMessage` values have changed. |
|
|
62
59
|
| `auroSelect-valueSet` | `CustomEvent<any>` | Notifies that the component has a new value set. |
|
|
63
|
-
| [input](#input) | `CustomEvent<{ optionSelected: any; value:
|
|
60
|
+
| [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
61
|
|
|
65
62
|
## Slots
|
|
66
63
|
|
|
@@ -68,9 +65,10 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
|
|
|
68
65
|
|---------------------------|--------------------------------------------------|
|
|
69
66
|
| | Default slot for the menu content. |
|
|
70
67
|
| `bib.fullscreen.headline` | Defines the headline to display above menu-options |
|
|
68
|
+
| [displayValue](#displayValue) | Allows custom HTML content to display the selected value when select is not focused. |
|
|
71
69
|
| [helpText](#helpText) | Defines the content of the helpText. |
|
|
72
70
|
| [label](#label) | Defines the content of the label. |
|
|
73
|
-
| [
|
|
71
|
+
| [optionalLabel](#optionalLabel) | Allows overriding the optional display text "(optional)", which appears next to the label. |
|
|
74
72
|
| [valueText](#valueText) | Dropdown value text display. |
|
|
75
73
|
|
|
76
74
|
## CSS Shadow Parts
|
|
@@ -410,10 +408,9 @@ When the validity check fails the validityState, equals `valueMissing`. The erro
|
|
|
410
408
|
<div class="exampleWrapper">
|
|
411
409
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/required.html) -->
|
|
412
410
|
<!-- The below content is automatically added from ./../apiExamples/required.html -->
|
|
413
|
-
<auro-select required setCustomValidityValueMissing="Custom required validation error message.">
|
|
411
|
+
<auro-select required setCustomValidityValueMissing="Custom required validation error message." placeholder="Placeholder Text">
|
|
414
412
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
415
|
-
<span slot="label">
|
|
416
|
-
<label slot="placeholder">Placeholder Text</label>
|
|
413
|
+
<span slot="label">Label</span>
|
|
417
414
|
<auro-menu>
|
|
418
415
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
419
416
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -431,10 +428,53 @@ When the validity check fails the validityState, equals `valueMissing`. The erro
|
|
|
431
428
|
<!-- The below code snippet is automatically added from ./../apiExamples/required.html -->
|
|
432
429
|
|
|
433
430
|
```html
|
|
434
|
-
<auro-select required setCustomValidityValueMissing="Custom required validation error message.">
|
|
431
|
+
<auro-select required setCustomValidityValueMissing="Custom required validation error message." placeholder="Placeholder Text">
|
|
435
432
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
436
|
-
<span slot="label">
|
|
437
|
-
<
|
|
433
|
+
<span slot="label">Label</span>
|
|
434
|
+
<auro-menu>
|
|
435
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
436
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
437
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
438
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
439
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
440
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
441
|
+
</auro-menu>
|
|
442
|
+
</auro-select>
|
|
443
|
+
```
|
|
444
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
445
|
+
</auro-accordion>
|
|
446
|
+
|
|
447
|
+
### Custom optional label <a name="optionalLabel"></a>
|
|
448
|
+
The `<auro-select>` supports an `optionalLabel` slot, where users can can override the default `(optional)` notification text.
|
|
449
|
+
|
|
450
|
+
<div class="exampleWrapper">
|
|
451
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/optionalLabel.html) -->
|
|
452
|
+
<!-- The below content is automatically added from ./../apiExamples/optionalLabel.html -->
|
|
453
|
+
<auro-select>
|
|
454
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
455
|
+
<span slot="label">Please select a preference</span>
|
|
456
|
+
<span slot="optionalLabel" style="color: grey; font-size: small"> - optional</span>
|
|
457
|
+
<auro-menu>
|
|
458
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
459
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
460
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
461
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
462
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
463
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
464
|
+
</auro-menu>
|
|
465
|
+
</auro-select>
|
|
466
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
467
|
+
</div>
|
|
468
|
+
<auro-accordion alignRight>
|
|
469
|
+
<span slot="trigger">See code</span>
|
|
470
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/optionalLabel.html) -->
|
|
471
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/optionalLabel.html -->
|
|
472
|
+
|
|
473
|
+
```html
|
|
474
|
+
<auro-select>
|
|
475
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
476
|
+
<span slot="label">Please select a preference</span>
|
|
477
|
+
<span slot="optionalLabel" style="color: grey; font-size: small"> - optional</span>
|
|
438
478
|
<auro-menu>
|
|
439
479
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
440
480
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -454,10 +494,9 @@ Use the `error` boolean attribute to toggle the error UI.
|
|
|
454
494
|
<div class="exampleWrapper">
|
|
455
495
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/error.html) -->
|
|
456
496
|
<!-- 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>
|
|
497
|
+
<auro-select error="Custom error message" placeholder="Placeholder Text">
|
|
459
498
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
460
|
-
<
|
|
499
|
+
<span slot="label">Label</span>
|
|
461
500
|
<auro-menu>
|
|
462
501
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
463
502
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -472,10 +511,9 @@ Use the `error` boolean attribute to toggle the error UI.
|
|
|
472
511
|
<div class="exampleWrapper--ondark" aria-hidden>
|
|
473
512
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkError.html) -->
|
|
474
513
|
<!-- 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>
|
|
514
|
+
<auro-select onDark error="Custom error message" placeholder="Placeholder Text">
|
|
477
515
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
478
|
-
<
|
|
516
|
+
<span slot="label">Label</span>
|
|
479
517
|
<auro-menu>
|
|
480
518
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
481
519
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -493,10 +531,9 @@ Use the `error` boolean attribute to toggle the error UI.
|
|
|
493
531
|
<!-- The below code snippet is automatically added from ./../apiExamples/error.html -->
|
|
494
532
|
|
|
495
533
|
```html
|
|
496
|
-
<auro-select error="Custom error message">
|
|
497
|
-
<span slot="label">error select example</span>
|
|
534
|
+
<auro-select error="Custom error message" placeholder="Placeholder Text">
|
|
498
535
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
499
|
-
<
|
|
536
|
+
<span slot="label">Label</span>
|
|
500
537
|
<auro-menu>
|
|
501
538
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
502
539
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -510,10 +547,9 @@ Use the `error` boolean attribute to toggle the error UI.
|
|
|
510
547
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
511
548
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkError.html) -->
|
|
512
549
|
<!-- 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>
|
|
550
|
+
<auro-select onDark error="Custom error message" placeholder="Placeholder Text">
|
|
515
551
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
516
|
-
<
|
|
552
|
+
<span slot="label">Label</span>
|
|
517
553
|
<auro-menu>
|
|
518
554
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
519
555
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -532,10 +568,9 @@ Use the `disabled` boolean attribute to toggle the disabled UI.
|
|
|
532
568
|
<div class="exampleWrapper">
|
|
533
569
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/disabled.html) -->
|
|
534
570
|
<!-- The below content is automatically added from ./../apiExamples/disabled.html -->
|
|
535
|
-
<auro-select disabled>
|
|
571
|
+
<auro-select disabled placeholder="Placeholder Text">
|
|
536
572
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
537
|
-
<
|
|
538
|
-
<span slot="label">disabled select example</span>
|
|
573
|
+
<span slot="label">Label</span>
|
|
539
574
|
<auro-menu>
|
|
540
575
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
541
576
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -550,10 +585,9 @@ Use the `disabled` boolean attribute to toggle the disabled UI.
|
|
|
550
585
|
<div class="exampleWrapper--ondark" aria-hidden>
|
|
551
586
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkDisabled.html) -->
|
|
552
587
|
<!-- The below content is automatically added from ./../apiExamples/onDarkDisabled.html -->
|
|
553
|
-
<auro-select onDark disabled>
|
|
588
|
+
<auro-select onDark disabled placeholder="Placeholder Text">
|
|
554
589
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
555
|
-
<
|
|
556
|
-
<span slot="label">disabled select example</span>
|
|
590
|
+
<span slot="label">Label</span>
|
|
557
591
|
<auro-menu>
|
|
558
592
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
559
593
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -571,10 +605,9 @@ Use the `disabled` boolean attribute to toggle the disabled UI.
|
|
|
571
605
|
<!-- The below code snippet is automatically added from ./../apiExamples/disabled.html -->
|
|
572
606
|
|
|
573
607
|
```html
|
|
574
|
-
<auro-select disabled>
|
|
608
|
+
<auro-select disabled placeholder="Placeholder Text">
|
|
575
609
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
576
|
-
<
|
|
577
|
-
<span slot="label">disabled select example</span>
|
|
610
|
+
<span slot="label">Label</span>
|
|
578
611
|
<auro-menu>
|
|
579
612
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
580
613
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -588,10 +621,9 @@ Use the `disabled` boolean attribute to toggle the disabled UI.
|
|
|
588
621
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
589
622
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkDisabled.html) -->
|
|
590
623
|
<!-- The below content is automatically added from ./../apiExamples/onDarkDisabled.html -->
|
|
591
|
-
<auro-select onDark disabled>
|
|
624
|
+
<auro-select onDark disabled placeholder="Placeholder Text">
|
|
592
625
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
593
|
-
<
|
|
594
|
-
<span slot="label">disabled select example</span>
|
|
626
|
+
<span slot="label">Label</span>
|
|
595
627
|
<auro-menu>
|
|
596
628
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
597
629
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -648,10 +680,9 @@ Use the `flexMenuWidth` boolean attribute to toggle the width of the `<auro-sele
|
|
|
648
680
|
<div class="exampleWrapper">
|
|
649
681
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/flexMenuWidth.html) -->
|
|
650
682
|
<!-- The below content is automatically added from ../apiExamples/flexMenuWidth.html -->
|
|
651
|
-
<auro-select flexMenuWidth id="flexMenuWidthExample">
|
|
652
|
-
<span slot="label">flexMenuWidth select example</span>
|
|
683
|
+
<auro-select flexMenuWidth id="flexMenuWidthExample" placeholder="Placeholder Text">
|
|
653
684
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
654
|
-
<
|
|
685
|
+
<span slot="label">Label</span>
|
|
655
686
|
<auro-menu>
|
|
656
687
|
<auro-menuoption value="united states">United States has a country code of (+1)</auro-menuoption>
|
|
657
688
|
<auro-menuoption value="costa rica">Costa Rica has a country code of (+506)</auro-menuoption>
|
|
@@ -673,10 +704,9 @@ Use the `flexMenuWidth` boolean attribute to toggle the width of the `<auro-sele
|
|
|
673
704
|
<!-- The below code snippet is automatically added from ../apiExamples/flexMenuWidth.html -->
|
|
674
705
|
|
|
675
706
|
```html
|
|
676
|
-
<auro-select flexMenuWidth id="flexMenuWidthExample">
|
|
677
|
-
<span slot="label">flexMenuWidth select example</span>
|
|
707
|
+
<auro-select flexMenuWidth id="flexMenuWidthExample" placeholder="Placeholder Text">
|
|
678
708
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
679
|
-
<
|
|
709
|
+
<span slot="label">Label</span>
|
|
680
710
|
<auro-menu>
|
|
681
711
|
<auro-menuoption value="united states">United States has a country code of (+1)</auro-menuoption>
|
|
682
712
|
<auro-menuoption value="costa rica">Costa Rica has a country code of (+506)</auro-menuoption>
|
|
@@ -739,16 +769,15 @@ Use the `label` slot to give your users contextual information about their selec
|
|
|
739
769
|
</auro-accordion>
|
|
740
770
|
|
|
741
771
|
#### helpText <a name="helpText"></a>
|
|
742
|
-
Use the `
|
|
772
|
+
Use the `helpText` slot to provide additional information back to your user about their selection option(s).
|
|
743
773
|
|
|
744
774
|
<div class="exampleWrapper">
|
|
745
775
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/helpText.html) -->
|
|
746
776
|
<!-- The below content is automatically added from ./../apiExamples/helpText.html -->
|
|
747
|
-
<auro-select>
|
|
777
|
+
<auro-select placeholder="Placeholder Text">
|
|
748
778
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
749
|
-
<
|
|
779
|
+
<span slot="label">Label</span>
|
|
750
780
|
<span slot="helpText">Custom help text message.</span>
|
|
751
|
-
<span slot="label">helpText select example</span>
|
|
752
781
|
<auro-menu>
|
|
753
782
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
754
783
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -766,11 +795,10 @@ Use the `helptext` slot to provide additional information back to your user abou
|
|
|
766
795
|
<!-- The below code snippet is automatically added from ./../apiExamples/helpText.html -->
|
|
767
796
|
|
|
768
797
|
```html
|
|
769
|
-
<auro-select>
|
|
798
|
+
<auro-select placeholder="Placeholder Text">
|
|
770
799
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
771
|
-
<
|
|
800
|
+
<span slot="label">Label</span>
|
|
772
801
|
<span slot="helpText">Custom help text message.</span>
|
|
773
|
-
<span slot="label">helpText select example</span>
|
|
774
802
|
<auro-menu>
|
|
775
803
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
776
804
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -795,9 +823,9 @@ Use the `reset()` method to reset the `<auro-select>`'s `value` and `validity` s
|
|
|
795
823
|
<!-- The below content is automatically added from ./../apiExamples/resetState.html -->
|
|
796
824
|
<auro-button id="resetStateBtn">Reset</auro-button>
|
|
797
825
|
<br/><br/>
|
|
798
|
-
<auro-select id="resetStateExample" value="price">
|
|
826
|
+
<auro-select id="resetStateExample" value="price" placeholder="Placeholder Text">
|
|
799
827
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
800
|
-
<
|
|
828
|
+
<span slot="label">Label</span>
|
|
801
829
|
<span slot="label">Name</span>
|
|
802
830
|
<auro-menu>
|
|
803
831
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
@@ -818,9 +846,9 @@ Use the `reset()` method to reset the `<auro-select>`'s `value` and `validity` s
|
|
|
818
846
|
```html
|
|
819
847
|
<auro-button id="resetStateBtn">Reset</auro-button>
|
|
820
848
|
<br/><br/>
|
|
821
|
-
<auro-select id="resetStateExample" value="price">
|
|
849
|
+
<auro-select id="resetStateExample" value="price" placeholder="Placeholder Text">
|
|
822
850
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
823
|
-
<
|
|
851
|
+
<span slot="label">Label</span>
|
|
824
852
|
<span slot="label">Name</span>
|
|
825
853
|
<auro-menu>
|
|
826
854
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
@@ -855,10 +883,9 @@ The following example illustrates how a user may query the `element.value` or `e
|
|
|
855
883
|
<div class="exampleWrapper">
|
|
856
884
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/valueExtraction.html) -->
|
|
857
885
|
<!-- The below content is automatically added from ./../apiExamples/valueExtraction.html -->
|
|
858
|
-
<auro-select id="valueExtraction">
|
|
886
|
+
<auro-select id="valueExtraction" placeholder="Placeholder Text">
|
|
859
887
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
860
|
-
<
|
|
861
|
-
<span slot="label">Select Example</span>
|
|
888
|
+
<span slot="label">Label</span>
|
|
862
889
|
<auro-menu>
|
|
863
890
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
864
891
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -877,10 +904,9 @@ The following example illustrates how a user may query the `element.value` or `e
|
|
|
877
904
|
<!-- The below code snippet is automatically added from ./../apiExamples/valueExtraction.html -->
|
|
878
905
|
|
|
879
906
|
```html
|
|
880
|
-
<auro-select id="valueExtraction">
|
|
907
|
+
<auro-select id="valueExtraction" placeholder="Placeholder Text">
|
|
881
908
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
882
|
-
<
|
|
883
|
-
<span slot="label">Select Example</span>
|
|
909
|
+
<span slot="label">Label</span>
|
|
884
910
|
<auro-menu>
|
|
885
911
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
886
912
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -919,10 +945,9 @@ This example programmatically adds the `error` state when a user selects an opti
|
|
|
919
945
|
<div class="exampleWrapper">
|
|
920
946
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/customErrorValidity.html) -->
|
|
921
947
|
<!-- The below content is automatically added from ./../apiExamples/customErrorValidity.html -->
|
|
922
|
-
<auro-select id="primaryError">
|
|
948
|
+
<auro-select id="primaryError" placeholder="Placeholder Text">
|
|
923
949
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
924
|
-
<
|
|
925
|
-
<span slot="label">Select Example</span>
|
|
950
|
+
<span slot="label">Label</span>
|
|
926
951
|
<auro-menu>
|
|
927
952
|
<auro-menuoption value="1">1</auro-menuoption>
|
|
928
953
|
<auro-menuoption value="2">2</auro-menuoption>
|
|
@@ -940,10 +965,9 @@ This example programmatically adds the `error` state when a user selects an opti
|
|
|
940
965
|
<!-- The below code snippet is automatically added from ./../apiExamples/customErrorValidity.html -->
|
|
941
966
|
|
|
942
967
|
```html
|
|
943
|
-
<auro-select id="primaryError">
|
|
968
|
+
<auro-select id="primaryError" placeholder="Placeholder Text">
|
|
944
969
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
945
|
-
<
|
|
946
|
-
<span slot="label">Select Example</span>
|
|
970
|
+
<span slot="label">Label</span>
|
|
947
971
|
<auro-menu>
|
|
948
972
|
<auro-menuoption value="1">1</auro-menuoption>
|
|
949
973
|
<auro-menuoption value="2">2</auro-menuoption>
|
|
@@ -1042,57 +1066,56 @@ export function auroMenuLoadingExample() {
|
|
|
1042
1066
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1043
1067
|
</auro-accordion>
|
|
1044
1068
|
|
|
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.
|
|
1069
|
+
### displayValue <a name="displayValue"></a>
|
|
1070
|
+
The label for selected option can be customized using `displayValue` slot under `<menuoption>.
|
|
1048
1071
|
|
|
1049
1072
|
<div class="exampleWrapper">
|
|
1050
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/
|
|
1051
|
-
<!-- The below content is automatically added from ./../apiExamples/
|
|
1052
|
-
<auro-select id="
|
|
1073
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/displayValue.html) -->
|
|
1074
|
+
<!-- The below content is automatically added from ./../apiExamples/displayValue.html -->
|
|
1075
|
+
<auro-select id="displayValueExample" autocomplete="address-level1">
|
|
1053
1076
|
<span slot="bib.fullscreen.headline">Select Your Gender</span>
|
|
1054
1077
|
<span slot="label">Gender</span>
|
|
1055
|
-
<span slot="
|
|
1078
|
+
<span slot="displayValue"></span>
|
|
1056
1079
|
<auro-menu>
|
|
1057
|
-
<auro-menuoption value="m" data-display="Male">M - Male
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
<auro-menuoption value="
|
|
1080
|
+
<auro-menuoption value="m" data-display="Male">M - Male
|
|
1081
|
+
<span slot="displayValue">Male</span>
|
|
1082
|
+
</auro-menuoption>
|
|
1083
|
+
<auro-menuoption value="f" data-display="Female">F - Female
|
|
1084
|
+
<span slot="displayValue">Female</span>
|
|
1085
|
+
</auro-menuoption>
|
|
1086
|
+
<auro-menuoption value="x" data-display="Unspecified">X - Unspecified
|
|
1087
|
+
<span slot="displayValue">Unspecified</span>
|
|
1088
|
+
</auro-menuoption>
|
|
1089
|
+
<auro-menuoption value="u" data-display="Undisclosed">U - Undisclosed
|
|
1090
|
+
<span slot="displayValue">Undisclosed</span>
|
|
1091
|
+
</auro-menuoption>
|
|
1061
1092
|
</auro-menu>
|
|
1062
1093
|
</auro-select>
|
|
1063
1094
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1064
1095
|
</div>
|
|
1065
1096
|
<auro-accordion alignRight>
|
|
1066
1097
|
<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 -->
|
|
1098
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/displayValue.html) -->
|
|
1099
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/displayValue.html -->
|
|
1085
1100
|
|
|
1086
1101
|
```html
|
|
1087
|
-
<auro-select id="
|
|
1102
|
+
<auro-select id="displayValueExample" autocomplete="address-level1">
|
|
1088
1103
|
<span slot="bib.fullscreen.headline">Select Your Gender</span>
|
|
1089
1104
|
<span slot="label">Gender</span>
|
|
1090
|
-
<span slot="
|
|
1105
|
+
<span slot="displayValue"></span>
|
|
1091
1106
|
<auro-menu>
|
|
1092
|
-
<auro-menuoption value="m" data-display="Male">M - Male
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
<auro-menuoption value="
|
|
1107
|
+
<auro-menuoption value="m" data-display="Male">M - Male
|
|
1108
|
+
<span slot="displayValue">Male</span>
|
|
1109
|
+
</auro-menuoption>
|
|
1110
|
+
<auro-menuoption value="f" data-display="Female">F - Female
|
|
1111
|
+
<span slot="displayValue">Female</span>
|
|
1112
|
+
</auro-menuoption>
|
|
1113
|
+
<auro-menuoption value="x" data-display="Unspecified">X - Unspecified
|
|
1114
|
+
<span slot="displayValue">Unspecified</span>
|
|
1115
|
+
</auro-menuoption>
|
|
1116
|
+
<auro-menuoption value="u" data-display="Undisclosed">U - Undisclosed
|
|
1117
|
+
<span slot="displayValue">Undisclosed</span>
|
|
1118
|
+
</auro-menuoption>
|
|
1096
1119
|
</auro-menu>
|
|
1097
1120
|
</auro-select>
|
|
1098
1121
|
```
|
|
@@ -1113,7 +1136,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1113
1136
|
<div style="width: 350px">
|
|
1114
1137
|
<auro-select offset="20" noFlip placement="bottom-end">
|
|
1115
1138
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1116
|
-
<span slot="label">
|
|
1139
|
+
<span slot="label">Label</span>
|
|
1140
|
+
<span slot="helpText">bottom-end bib with 20px offset and noFlip</span>
|
|
1117
1141
|
<auro-menu>
|
|
1118
1142
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1119
1143
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -1125,7 +1149,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1125
1149
|
</auro-select>
|
|
1126
1150
|
<auro-select offset="20" placement="bottom-end">
|
|
1127
1151
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1128
|
-
<span slot="label">
|
|
1152
|
+
<span slot="label">Label</span>
|
|
1153
|
+
<span slot="helpText">bottom-end bib with 20px offset and flip</span>
|
|
1129
1154
|
<auro-menu>
|
|
1130
1155
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1131
1156
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -1137,7 +1162,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1137
1162
|
</auro-select>
|
|
1138
1163
|
<auro-select offset="20" noFlip placement="right" autoPlacement noFlip >
|
|
1139
1164
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1140
|
-
<span slot="label">
|
|
1165
|
+
<span slot="label">Label</span>
|
|
1166
|
+
<span slot="helpText">right bib with 20px offset, noFlip and autoPlacement</span>
|
|
1141
1167
|
<auro-menu>
|
|
1142
1168
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1143
1169
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -1159,7 +1185,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1159
1185
|
<div style="width: 350px">
|
|
1160
1186
|
<auro-select offset="20" noFlip placement="bottom-end">
|
|
1161
1187
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1162
|
-
<span slot="label">
|
|
1188
|
+
<span slot="label">Label</span>
|
|
1189
|
+
<span slot="helpText">bottom-end bib with 20px offset and noFlip</span>
|
|
1163
1190
|
<auro-menu>
|
|
1164
1191
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1165
1192
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -1171,7 +1198,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1171
1198
|
</auro-select>
|
|
1172
1199
|
<auro-select offset="20" placement="bottom-end">
|
|
1173
1200
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1174
|
-
<span slot="label">
|
|
1201
|
+
<span slot="label">Label</span>
|
|
1202
|
+
<span slot="helpText">bottom-end bib with 20px offset and flip</span>
|
|
1175
1203
|
<auro-menu>
|
|
1176
1204
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1177
1205
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -1183,7 +1211,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
1183
1211
|
</auro-select>
|
|
1184
1212
|
<auro-select offset="20" noFlip placement="right" autoPlacement noFlip >
|
|
1185
1213
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1186
|
-
<span slot="label">
|
|
1214
|
+
<span slot="label">Label</span>
|
|
1215
|
+
<span slot="helpText">right bib with 20px offset, noFlip and autoPlacement</span>
|
|
1187
1216
|
<auro-menu>
|
|
1188
1217
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1189
1218
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -1325,10 +1354,9 @@ The following example listens for the `auroMenu-selectedOption` event. Once trig
|
|
|
1325
1354
|
<div class="exampleWrapper">
|
|
1326
1355
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/valueAlert.html) -->
|
|
1327
1356
|
<!-- The below content is automatically added from ./../apiExamples/valueAlert.html -->
|
|
1328
|
-
<auro-select id="valueAlert">
|
|
1329
|
-
<span slot="label">Select Example</span>
|
|
1357
|
+
<auro-select id="valueAlert" placeholder="Placeholder Text">
|
|
1330
1358
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1331
|
-
<
|
|
1359
|
+
<span slot="label">Label</span>
|
|
1332
1360
|
<auro-menu id="valueAlertMenu">
|
|
1333
1361
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1334
1362
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -1346,10 +1374,9 @@ The following example listens for the `auroMenu-selectedOption` event. Once trig
|
|
|
1346
1374
|
<!-- The below code snippet is automatically added from ./../apiExamples/valueAlert.html -->
|
|
1347
1375
|
|
|
1348
1376
|
```html
|
|
1349
|
-
<auro-select id="valueAlert">
|
|
1350
|
-
<span slot="label">Select Example</span>
|
|
1377
|
+
<auro-select id="valueAlert" placeholder="Placeholder Text">
|
|
1351
1378
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
1352
|
-
<
|
|
1379
|
+
<span slot="label">Label</span>
|
|
1353
1380
|
<auro-menu id="valueAlertMenu">
|
|
1354
1381
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
1355
1382
|
<auro-menuoption value="price">Price</auro-menuoption>
|