@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.
Files changed (149) hide show
  1. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +12 -2
  2. package/components/bibtemplate/dist/buttonVersion.d.ts +2 -0
  3. package/components/bibtemplate/dist/headerVersion.d.ts +1 -1
  4. package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
  5. package/components/bibtemplate/dist/index.js +1241 -94
  6. package/components/bibtemplate/dist/registered.js +1241 -94
  7. package/components/checkbox/README.md +1 -1
  8. package/components/checkbox/demo/api.html +16 -10
  9. package/components/checkbox/demo/api.md +49 -15
  10. package/components/checkbox/demo/api.min.js +74 -46
  11. package/components/checkbox/demo/index.html +16 -10
  12. package/components/checkbox/demo/index.md +2 -2
  13. package/components/checkbox/demo/index.min.js +74 -46
  14. package/components/checkbox/demo/readme.html +16 -9
  15. package/components/checkbox/demo/readme.md +1 -1
  16. package/components/checkbox/dist/auro-checkbox-group.d.ts +1 -1
  17. package/components/checkbox/dist/auro-checkbox.d.ts +3 -3
  18. package/components/checkbox/dist/index.js +73 -45
  19. package/components/checkbox/dist/registered.js +73 -45
  20. package/components/combobox/demo/api.html +16 -10
  21. package/components/combobox/demo/api.md +115 -8
  22. package/components/combobox/demo/api.min.js +3305 -1002
  23. package/components/combobox/demo/index.html +16 -10
  24. package/components/combobox/demo/index.md +8 -34
  25. package/components/combobox/demo/index.min.js +3305 -1002
  26. package/components/combobox/demo/readme.html +16 -9
  27. package/components/combobox/dist/auro-combobox.d.ts +57 -14
  28. package/components/combobox/dist/index.js +2992 -836
  29. package/components/combobox/dist/registered.js +2992 -836
  30. package/components/counter/demo/api.html +17 -10
  31. package/components/counter/demo/api.md +158 -21
  32. package/components/counter/demo/api.min.js +3417 -765
  33. package/components/counter/demo/index.html +17 -10
  34. package/components/counter/demo/index.md +185 -34
  35. package/components/counter/demo/index.min.js +3417 -765
  36. package/components/counter/demo/readme.html +16 -9
  37. package/components/counter/dist/auro-counter-button.d.ts +2 -0
  38. package/components/counter/dist/auro-counter-group.d.ts +161 -11
  39. package/components/counter/dist/auro-counter.d.ts +16 -0
  40. package/components/counter/dist/helptextVersion.d.ts +2 -0
  41. package/components/counter/dist/iconVersion.d.ts +1 -1
  42. package/components/counter/dist/index.js +3420 -768
  43. package/components/counter/dist/registered.js +3420 -768
  44. package/components/datepicker/README.md +1 -1
  45. package/components/datepicker/demo/api.html +16 -10
  46. package/components/datepicker/demo/api.md +62 -28
  47. package/components/datepicker/demo/api.min.js +11956 -8070
  48. package/components/datepicker/demo/index.html +16 -10
  49. package/components/datepicker/demo/index.md +75 -8
  50. package/components/datepicker/demo/index.min.js +11956 -8070
  51. package/components/datepicker/demo/readme.html +16 -9
  52. package/components/datepicker/demo/readme.md +1 -1
  53. package/components/datepicker/dist/auro-datepicker.d.ts +151 -12
  54. package/components/datepicker/dist/buttonVersion.d.ts +1 -1
  55. package/components/datepicker/dist/iconVersion.d.ts +2 -0
  56. package/components/datepicker/dist/index.js +13802 -9916
  57. package/components/datepicker/dist/popoverVersion.d.ts +1 -1
  58. package/components/datepicker/dist/registered.js +13802 -9916
  59. package/components/dropdown/demo/api.html +16 -10
  60. package/components/dropdown/demo/api.md +82 -275
  61. package/components/dropdown/demo/api.min.js +450 -261
  62. package/components/dropdown/demo/index.html +16 -10
  63. package/components/dropdown/demo/index.md +92 -362
  64. package/components/dropdown/demo/index.min.js +450 -261
  65. package/components/dropdown/demo/readme.html +16 -9
  66. package/components/dropdown/dist/auro-dropdown.d.ts +43 -83
  67. package/components/dropdown/dist/auro-dropdownBib.d.ts +14 -0
  68. package/components/dropdown/dist/index.js +449 -260
  69. package/components/dropdown/dist/registered.js +449 -260
  70. package/components/form/demo/api.html +16 -9
  71. package/components/form/demo/api.md +1 -1
  72. package/components/form/demo/api.min.js +3 -3
  73. package/components/form/demo/autocomplete.html +19 -3
  74. package/components/form/demo/index.html +16 -9
  75. package/components/form/demo/index.min.js +3 -3
  76. package/components/form/demo/readme.html +16 -9
  77. package/components/form/demo/working.html +19 -13
  78. package/components/form/dist/auro-form.d.ts +1 -1
  79. package/components/form/dist/index.js +2 -2
  80. package/components/form/dist/registered.js +2 -2
  81. package/components/helptext/dist/auro-helptext.d.ts +0 -2
  82. package/components/helptext/dist/index.js +3 -5
  83. package/components/helptext/dist/registered.js +3 -5
  84. package/components/input/README.md +5 -2
  85. package/components/input/demo/api.html +16 -10
  86. package/components/input/demo/api.md +226 -132
  87. package/components/input/demo/api.min.js +1034 -297
  88. package/components/input/demo/index.html +16 -10
  89. package/components/input/demo/index.md +48 -32
  90. package/components/input/demo/index.min.js +1048 -311
  91. package/components/input/demo/readme.html +16 -9
  92. package/components/input/demo/readme.md +5 -2
  93. package/components/input/dist/auro-input.d.ts +24 -0
  94. package/components/input/dist/base-input.d.ts +45 -11
  95. package/components/input/dist/buttonVersion.d.ts +1 -1
  96. package/components/input/dist/iconVersion.d.ts +1 -1
  97. package/components/input/dist/index.js +1047 -310
  98. package/components/input/dist/registered.js +1047 -310
  99. package/components/layoutElement/dist/index.js +11 -8
  100. package/components/layoutElement/dist/registered.js +97 -0
  101. package/components/menu/demo/api.html +17 -10
  102. package/components/menu/demo/api.md +65 -8
  103. package/components/menu/demo/api.min.js +305 -63
  104. package/components/menu/demo/index.html +16 -10
  105. package/components/menu/demo/index.min.js +305 -63
  106. package/components/menu/demo/readme.html +16 -9
  107. package/components/menu/dist/auro-menu.d.ts +53 -7
  108. package/components/menu/dist/auro-menuoption.d.ts +21 -3
  109. package/components/menu/dist/iconVersion.d.ts +1 -1
  110. package/components/menu/dist/index.js +290 -48
  111. package/components/menu/dist/registered.js +290 -48
  112. package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
  113. package/components/menu/dist/styles/shapeSize-css.d.ts +2 -0
  114. package/components/radio/demo/api.html +16 -10
  115. package/components/radio/demo/api.md +39 -9
  116. package/components/radio/demo/api.min.js +92 -96
  117. package/components/radio/demo/index.html +16 -10
  118. package/components/radio/demo/index.min.js +92 -96
  119. package/components/radio/demo/readme.html +16 -9
  120. package/components/radio/dist/auro-radio-group.d.ts +1 -1
  121. package/components/radio/dist/auro-radio.d.ts +9 -12
  122. package/components/radio/dist/index.js +91 -95
  123. package/components/radio/dist/registered.js +91 -95
  124. package/components/select/demo/api.html +16 -10
  125. package/components/select/demo/api.js +0 -2
  126. package/components/select/demo/api.md +149 -122
  127. package/components/select/demo/api.min.js +2283 -736
  128. package/components/select/demo/index.html +17 -11
  129. package/components/select/demo/index.md +1066 -259
  130. package/components/select/demo/index.min.js +2284 -725
  131. package/components/select/demo/readme.html +16 -9
  132. package/components/select/dist/auro-select.d.ts +74 -25
  133. package/components/select/dist/index.js +2165 -753
  134. package/components/select/dist/registered.js +2165 -753
  135. package/package.json +31 -28
  136. /package/components/{datepicker/dist/styles/default/color-css.d.ts → counter/dist/styles/shapeSize-css.d.ts} +0 -0
  137. /package/components/{dropdown/dist/styles/default → datepicker/dist/styles/classic}/color-css.d.ts +0 -0
  138. /package/components/datepicker/dist/styles/{emphasized → classic}/style-css.d.ts +0 -0
  139. /package/components/{dropdown/dist/styles/default/bibColors-css.d.ts → datepicker/dist/styles/snowflake/color-css.d.ts} +0 -0
  140. /package/components/{dropdown/dist/styles/default → datepicker/dist/styles/snowflake}/style-css.d.ts +0 -0
  141. /package/components/dropdown/dist/styles/{default/bibStyles-css.d.ts → classic/bibColors-css.d.ts} +0 -0
  142. /package/components/{input/dist/styles/default/input-css.d.ts → dropdown/dist/styles/classic/bibStyles-css.d.ts} +0 -0
  143. /package/components/{input/dist/styles/default/label-css.d.ts → dropdown/dist/styles/classic/color-css.d.ts} +0 -0
  144. /package/components/{input/dist/styles/input-css.d.ts → dropdown/dist/styles/classic/style-css.d.ts} +0 -0
  145. /package/components/{menu/dist/styles/color-menu-css.d.ts → dropdown/dist/styles/style-css.d.ts} +0 -0
  146. /package/components/menu/dist/styles/{color-menuoption-css.d.ts → default/color-menu-css.d.ts} +0 -0
  147. /package/components/menu/dist/styles/{style-menu-css.d.ts → default/color-menuoption-css.d.ts} +0 -0
  148. /package/components/menu/dist/styles/{style-menuoption-css.d.ts → default/style-menu-css.d.ts} +0 -0
  149. /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` | "classic" | |
28
- | [matchWidth](#matchWidth) | `matchWidth` | `boolean` | true | If declared, the popover and trigger will be set to the same width. |
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
- | [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" |
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` | `String\|Array<String>` | | Value selected for the component. Default type is `String`, changing to `Array<String>` when `multiSelect` is true. |
43
+ | [value](#value) | `value` | `string` | | Value selected for the component. |
46
44
 
47
45
  ## Methods
48
46
 
49
- | Method | Type | Description |
50
- |----------------------|----------------------------------------|--------------------------------------------------|
51
- | [renderAriaHtml](#renderAriaHtml) | `(): TemplateResult` | |
52
- | [renderBACKUP](#renderBACKUP) | `(): TemplateResult` | |
53
- | [renderNativeSelect](#renderNativeSelect) | `(): TemplateResult` | |
54
- | [reset](#reset) | `(): void` | Resets component to initial state. |
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: any; }>` | Notifies every time the value prop of the element is changed. The updated `value` and `optionSelected` will be delivered in `detail` object. |
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
- | [placeholder](#placeholder) | Defines the content of the placeholder to be shown when there is no value |
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">required field</span>
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">required field</span>
437
- <label slot="placeholder">Placeholder Text</label>
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
- <label slot="placeholder">Placeholder Text</label>
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
- <label slot="placeholder">Placeholder Text</label>
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
- <label slot="placeholder">Placeholder Text</label>
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
- <label slot="placeholder">Placeholder Text</label>
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
- <label slot="placeholder">Placeholder Text</label>
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
- <label slot="placeholder">Placeholder Text</label>
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
- <label slot="placeholder">Placeholder Text</label>
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
- <label slot="placeholder">Placeholder Text</label>
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
- <label slot="placeholder">Placeholder Text</label>
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
- <label slot="placeholder">Placeholder Text</label>
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 `helptext` slot to provide additional information back to your user about their selection option(s).
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
- <label slot="placeholder">Placeholder Text</label>
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
- <label slot="placeholder">Placeholder Text</label>
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
- <label slot="placeholder">Placeholder Text</label>
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
- <label slot="placeholder">Placeholder Text</label>
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
- <label slot="placeholder">Placeholder Text</label>
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
- <label slot="placeholder">Placeholder Text</label>
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
- <label slot="placeholder">Placeholder Text</label>
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
- <label slot="placeholder">Placeholder Text</label>
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
- ### valueText <a name="valueText"></a>
1046
- The label for selected option can be customized using `valueText` slot.
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/valueText.html) -->
1051
- <!-- The below content is automatically added from ./../apiExamples/valueText.html -->
1052
- <auro-select id="valueTextExample" autocomplete="address-level1">
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="valueText"></span>
1078
+ <span slot="displayValue"></span>
1056
1079
  <auro-menu>
1057
- <auro-menuoption value="m" data-display="Male">M - Male</auro-menuoption>
1058
- <auro-menuoption value="f" data-display="Female">F - Female</auro-menuoption>
1059
- <auro-menuoption value="x" data-display="Unspecified">X - Unspecified</auro-menuoption>
1060
- <auro-menuoption value="u" data-display="Undisclosed">U - Undisclosed</auro-menuoption>
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/valueText.js) -->
1068
- <!-- The below code snippet is automatically added from ./../apiExamples/valueText.js -->
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="valueTextExample" autocomplete="address-level1">
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="valueText"></span>
1105
+ <span slot="displayValue"></span>
1091
1106
  <auro-menu>
1092
- <auro-menuoption value="m" data-display="Male">M - Male</auro-menuoption>
1093
- <auro-menuoption value="f" data-display="Female">F - Female</auro-menuoption>
1094
- <auro-menuoption value="x" data-display="Unspecified">X - Unspecified</auro-menuoption>
1095
- <auro-menuoption value="u" data-display="Undisclosed">U - Undisclosed</auro-menuoption>
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">bottom-end bib with 20px offset and noFlip</span>
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">bottom-end bib with 20px offset and flip</span>
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">right bib with 20px offset, noFlip and autoPlacement</span>
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">bottom-end bib with 20px offset and noFlip</span>
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">bottom-end bib with 20px offset and flip</span>
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">right bib with 20px offset, noFlip and autoPlacement</span>
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
- <label slot="placeholder">Placeholder Text</label>
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
- <label slot="placeholder">Placeholder Text</label>
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>