@aurodesignsystem/auro-formkit 2.0.0-beta.2 → 2.0.0-beta.4

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 (257) hide show
  1. package/.turbo/cache/013a48308b893dac-meta.json +1 -1
  2. package/.turbo/cache/02244170c798a2bd-meta.json +1 -0
  3. package/.turbo/cache/02244170c798a2bd.tar.zst +0 -0
  4. package/.turbo/cache/051ff97a20add0e2-meta.json +1 -0
  5. package/.turbo/cache/051ff97a20add0e2.tar.zst +0 -0
  6. package/.turbo/cache/07ca42419b9f050c-meta.json +1 -1
  7. package/.turbo/cache/0cea4c1f34f3683b-meta.json +1 -1
  8. package/.turbo/cache/0ea853339c064fa1-meta.json +1 -0
  9. package/.turbo/cache/0ea853339c064fa1.tar.zst +0 -0
  10. package/.turbo/cache/16658beec9f4a809-meta.json +1 -0
  11. package/.turbo/cache/16658beec9f4a809.tar.zst +0 -0
  12. package/.turbo/cache/17259cf94d8f8925-meta.json +1 -1
  13. package/.turbo/cache/1b9818717e4bdf9f-meta.json +1 -0
  14. package/.turbo/cache/1b9818717e4bdf9f.tar.zst +0 -0
  15. package/.turbo/cache/1c0f580d37370ba2-meta.json +1 -0
  16. package/.turbo/cache/1c0f580d37370ba2.tar.zst +0 -0
  17. package/.turbo/cache/1c99a949ec63ab35-meta.json +1 -1
  18. package/.turbo/cache/1df4710eef8ed00d-meta.json +1 -0
  19. package/.turbo/cache/1df4710eef8ed00d.tar.zst +0 -0
  20. package/.turbo/cache/204b66d1b253e9cc-meta.json +1 -0
  21. package/.turbo/cache/204b66d1b253e9cc.tar.zst +0 -0
  22. package/.turbo/cache/257a7a26ea72dbc5-meta.json +1 -1
  23. package/.turbo/cache/2a5d0939d6fc1052-meta.json +1 -0
  24. package/.turbo/cache/2a5d0939d6fc1052.tar.zst +0 -0
  25. package/.turbo/cache/2e3b829fcf75c836-meta.json +1 -0
  26. package/.turbo/cache/2e3b829fcf75c836.tar.zst +0 -0
  27. package/.turbo/cache/3bf45120d0cc9bd8-meta.json +1 -1
  28. package/.turbo/cache/3d380d0d40404cac-meta.json +1 -0
  29. package/.turbo/cache/3d380d0d40404cac.tar.zst +0 -0
  30. package/.turbo/cache/3e12285c614db539-meta.json +1 -0
  31. package/.turbo/cache/3e12285c614db539.tar.zst +0 -0
  32. package/.turbo/cache/45035bf5c4147ccd-meta.json +1 -1
  33. package/.turbo/cache/5bf2d3f7ba5891e0-meta.json +1 -0
  34. package/.turbo/cache/5bf2d3f7ba5891e0.tar.zst +0 -0
  35. package/.turbo/cache/5f304c0f37ef25f3-meta.json +1 -1
  36. package/.turbo/cache/64de7a53e02db647-meta.json +1 -1
  37. package/.turbo/cache/691a74627ec57993-meta.json +1 -1
  38. package/.turbo/cache/69aae513b7ec6c7d-meta.json +1 -1
  39. package/.turbo/cache/6dd67d179191bda8-meta.json +1 -0
  40. package/.turbo/cache/6dd67d179191bda8.tar.zst +0 -0
  41. package/.turbo/cache/6dd7058e6703cb35-meta.json +1 -1
  42. package/.turbo/cache/73e9073a5274616d-meta.json +1 -1
  43. package/.turbo/cache/773edc0f83c8c5a5-meta.json +1 -1
  44. package/.turbo/cache/786a822763403879-meta.json +1 -1
  45. package/.turbo/cache/7e1043cffa69f327-meta.json +1 -0
  46. package/.turbo/cache/7e1043cffa69f327.tar.zst +0 -0
  47. package/.turbo/cache/7ffd501e81790676-meta.json +1 -0
  48. package/.turbo/cache/7ffd501e81790676.tar.zst +0 -0
  49. package/.turbo/cache/80a13352066a9801-meta.json +1 -0
  50. package/.turbo/cache/80a13352066a9801.tar.zst +0 -0
  51. package/.turbo/cache/80b5d974184a01df-meta.json +1 -1
  52. package/.turbo/cache/8954c6073396fadd-meta.json +1 -1
  53. package/.turbo/cache/8e79bd5c3a16a72e-meta.json +1 -0
  54. package/.turbo/cache/8e9ebc3df0e18de0-meta.json +1 -0
  55. package/.turbo/cache/8e9ebc3df0e18de0.tar.zst +0 -0
  56. package/.turbo/cache/92daa6d7c389d548-meta.json +1 -1
  57. package/.turbo/cache/973d0eea26083f4b-meta.json +1 -0
  58. package/.turbo/cache/973d0eea26083f4b.tar.zst +0 -0
  59. package/.turbo/cache/9c6ad42729c7b2d8-meta.json +1 -0
  60. package/.turbo/cache/9c6ad42729c7b2d8.tar.zst +0 -0
  61. package/.turbo/cache/a77bc920ea508bb8-meta.json +1 -1
  62. package/.turbo/cache/a77bc920ea508bb8.tar.zst +0 -0
  63. package/.turbo/cache/a9a9d012c83882d8-meta.json +1 -0
  64. package/.turbo/cache/a9a9d012c83882d8.tar.zst +0 -0
  65. package/.turbo/cache/b54fc4f664a7a5a0-meta.json +1 -1
  66. package/.turbo/cache/ba4418918621fbcd-meta.json +1 -1
  67. package/.turbo/cache/be7c23c37b8ec74b-meta.json +1 -1
  68. package/.turbo/cache/be7c23c37b8ec74b.tar.zst +0 -0
  69. package/.turbo/cache/bffc7582905c2a5e-meta.json +1 -0
  70. package/.turbo/cache/bffc7582905c2a5e.tar.zst +0 -0
  71. package/.turbo/cache/caa0b4ac8d2a04dd-meta.json +1 -1
  72. package/.turbo/cache/caa0b4ac8d2a04dd.tar.zst +0 -0
  73. package/.turbo/cache/cc81de9c0b452a7c-meta.json +1 -1
  74. package/.turbo/cache/d572ebb3c833e8f4-meta.json +1 -0
  75. package/.turbo/cache/d572ebb3c833e8f4.tar.zst +0 -0
  76. package/.turbo/cache/d61543843c932504-meta.json +1 -0
  77. package/.turbo/cache/d61543843c932504.tar.zst +0 -0
  78. package/.turbo/cache/dad1301ac69bcb85-meta.json +1 -1
  79. package/.turbo/cache/db361cb6578dca84-meta.json +1 -0
  80. package/.turbo/cache/db361cb6578dca84.tar.zst +0 -0
  81. package/.turbo/cache/dea5945f55c6aba5-meta.json +1 -0
  82. package/.turbo/cache/dea5945f55c6aba5.tar.zst +0 -0
  83. package/.turbo/cache/e992dab20aeefbaf-meta.json +1 -1
  84. package/.turbo/cache/e992dab20aeefbaf.tar.zst +0 -0
  85. package/.turbo/cache/f3ff9040a2196834-meta.json +1 -0
  86. package/.turbo/cache/f3ff9040a2196834.tar.zst +0 -0
  87. package/.turbo/cache/f817d89688cefca8-meta.json +1 -0
  88. package/.turbo/cache/f817d89688cefca8.tar.zst +0 -0
  89. package/.turbo/cache/fa132b5b5f0e75f8-meta.json +1 -1
  90. package/.turbo/cache/fc57c17867dcac3d-meta.json +1 -0
  91. package/.turbo/cache/fc57c17867dcac3d.tar.zst +0 -0
  92. package/CHANGELOG.md +44 -0
  93. package/components/checkbox/.turbo/turbo-build.log +3 -3
  94. package/components/checkbox/.turbo/turbo-bundler.log +3 -3
  95. package/components/checkbox/demo/api.md +4 -2
  96. package/components/checkbox/demo/api.min.js +31 -36
  97. package/components/checkbox/demo/index.min.js +31 -36
  98. package/components/checkbox/dist/auro-checkbox-group.d.ts +1 -1
  99. package/components/checkbox/dist/index.js +31 -36
  100. package/components/checkbox/src/auro-checkbox-group.js +2 -2
  101. package/components/combobox/.turbo/turbo-build.log +3 -3
  102. package/components/combobox/demo/api.md +17 -15
  103. package/components/combobox/demo/api.min.js +500 -218
  104. package/components/combobox/demo/index.min.js +500 -218
  105. package/components/combobox/dist/auro-combobox.d.ts +11 -4
  106. package/components/combobox/dist/auro-combobox.d.ts.map +1 -1
  107. package/components/combobox/dist/index.js +499 -217
  108. package/components/combobox/src/auro-combobox.js +22 -20
  109. package/components/counter/.turbo/turbo-build.log +3 -3
  110. package/components/counter/.turbo/turbo-bundler.log +3 -3
  111. package/components/datepicker/.turbo/turbo-build.log +9 -8
  112. package/components/datepicker/demo/api.md +107 -87
  113. package/components/datepicker/demo/api.min.js +492 -232
  114. package/components/datepicker/demo/index.min.js +492 -232
  115. package/components/datepicker/dist/auro-datepicker.d.ts +6 -13
  116. package/components/datepicker/dist/auro-datepicker.d.ts.map +1 -1
  117. package/components/datepicker/dist/index.js +492 -232
  118. package/components/datepicker/src/auro-datepicker.js +15 -35
  119. package/components/dropdown/.turbo/turbo-build.log +3 -3
  120. package/components/dropdown/.turbo/turbo-bundler.log +2 -2
  121. package/components/dropdown/demo/api.md +4 -4
  122. package/components/dropdown/demo/api.min.js +166 -42
  123. package/components/dropdown/demo/index.min.js +166 -42
  124. package/components/dropdown/dist/auro-dropdown.d.ts +93 -34
  125. package/components/dropdown/dist/auro-dropdown.d.ts.map +1 -1
  126. package/components/dropdown/dist/auro-dropdownBib.d.ts +9 -3
  127. package/components/dropdown/dist/auro-dropdownBib.d.ts.map +1 -1
  128. package/components/dropdown/dist/index.js +166 -42
  129. package/components/dropdown/src/auro-dropdown.js +154 -39
  130. package/components/dropdown/src/auro-dropdownBib.js +12 -3
  131. package/components/dropdown/src/styles/style-css.js +1 -1
  132. package/components/dropdown/src/styles/style.css +4 -0
  133. package/components/dropdown/src/styles/style.scss +5 -0
  134. package/components/form/.turbo/turbo-build.log +3 -3
  135. package/components/form/.turbo/turbo-bundler.log +3 -3
  136. package/components/input/.turbo/turbo-build$colon$sass.log +51 -1
  137. package/components/input/.turbo/turbo-build.log +56 -6
  138. package/components/input/.turbo/turbo-bundler.log +3 -3
  139. package/components/input/.turbo/turbo-sass$colon$render.log +6 -0
  140. package/components/input/demo/api.md +83 -81
  141. package/components/input/demo/api.min.js +282 -121
  142. package/components/input/demo/index.md +6 -6
  143. package/components/input/demo/index.min.js +282 -121
  144. package/components/input/dist/auro-input.d.ts.map +1 -1
  145. package/components/input/dist/base-input.d.ts +155 -84
  146. package/components/input/dist/base-input.d.ts.map +1 -1
  147. package/components/input/dist/index.js +282 -121
  148. package/components/input/dist/styles/mixins-css.d.ts +3 -0
  149. package/components/input/dist/styles/mixins-css.d.ts.map +1 -0
  150. package/components/input/src/auro-input.js +0 -1
  151. package/components/input/src/base-input.js +252 -85
  152. package/components/input/src/styles/borders.scss +3 -19
  153. package/components/input/src/styles/color.css +1 -2
  154. package/components/input/src/styles/color.scss +3 -10
  155. package/components/input/src/styles/input-css.js +1 -1
  156. package/components/input/src/styles/input.css +1 -1
  157. package/components/input/src/styles/input.scss +4 -1
  158. package/components/input/src/styles/label-css.js +1 -1
  159. package/components/input/src/styles/label.css +1 -1
  160. package/components/input/src/styles/label.scss +4 -7
  161. package/components/input/src/styles/mixins-css.js +2 -0
  162. package/components/input/src/styles/mixins.css +1 -0
  163. package/components/input/src/styles/mixins.scss +45 -0
  164. package/components/input/src/styles/notificationIcons-css.js +1 -1
  165. package/components/input/src/styles/notificationIcons.css +13 -12
  166. package/components/input/src/styles/notificationIcons.scss +17 -25
  167. package/components/input/src/styles/style-css.js +1 -1
  168. package/components/input/src/styles/style.css +15 -17
  169. package/components/input/src/styles/style.scss +0 -4
  170. package/components/menu/.turbo/turbo-build.log +3 -3
  171. package/components/menu/.turbo/turbo-bundler.log +3 -3
  172. package/components/menu/demo/api.min.js +1 -1
  173. package/components/menu/demo/index.min.js +1 -1
  174. package/components/menu/dist/auro-menu.d.ts +1 -1
  175. package/components/menu/dist/index.js +1 -1
  176. package/components/menu/src/auro-menu.js +1 -1
  177. package/components/radio/.turbo/turbo-build.log +3 -3
  178. package/components/radio/.turbo/turbo-bundler.log +3 -3
  179. package/components/radio/demo/api.md +3 -1
  180. package/components/radio/demo/api.min.js +30 -35
  181. package/components/radio/demo/index.min.js +30 -35
  182. package/components/radio/dist/index.js +30 -35
  183. package/components/radio/src/auro-radio-group.js +1 -1
  184. package/components/select/.turbo/turbo-build.log +7 -9
  185. package/components/select/demo/api.md +45 -110
  186. package/components/select/demo/api.min.js +320 -224
  187. package/components/select/demo/index.md +100 -43
  188. package/components/select/demo/index.min.js +320 -220
  189. package/components/select/dist/auro-select.d.ts +64 -51
  190. package/components/select/dist/auro-select.d.ts.map +1 -1
  191. package/components/select/dist/index.js +314 -201
  192. package/components/select/src/auro-select.js +100 -118
  193. package/components/select/src/styles/style-css.js +1 -1
  194. package/components/select/src/styles/style.css +7 -0
  195. package/components/select/src/styles/style.scss +11 -1
  196. package/package.json +1 -1
  197. package/packages/form-validation/src/validation.js +29 -34
  198. package/.turbo/cache/0663fcbb1d711029-meta.json +0 -1
  199. package/.turbo/cache/0663fcbb1d711029.tar.zst +0 -0
  200. package/.turbo/cache/0a2b0a4df8a0443f-meta.json +0 -1
  201. package/.turbo/cache/120c8e207aa1ba35-meta.json +0 -1
  202. package/.turbo/cache/120c8e207aa1ba35.tar.zst +0 -0
  203. package/.turbo/cache/17dd4bdef6550a07-meta.json +0 -1
  204. package/.turbo/cache/17dd4bdef6550a07.tar.zst +0 -0
  205. package/.turbo/cache/1de15d89eed2d760-meta.json +0 -1
  206. package/.turbo/cache/1de15d89eed2d760.tar.zst +0 -0
  207. package/.turbo/cache/2990aaa7ebc5b967-meta.json +0 -1
  208. package/.turbo/cache/2990aaa7ebc5b967.tar.zst +0 -0
  209. package/.turbo/cache/32c0b9995fb5f8dd-meta.json +0 -1
  210. package/.turbo/cache/32c0b9995fb5f8dd.tar.zst +0 -0
  211. package/.turbo/cache/47ba2b5ebdb579e9-meta.json +0 -1
  212. package/.turbo/cache/47ba2b5ebdb579e9.tar.zst +0 -0
  213. package/.turbo/cache/4f92cea2d8c63de2-meta.json +0 -1
  214. package/.turbo/cache/4f92cea2d8c63de2.tar.zst +0 -0
  215. package/.turbo/cache/56cb35d4c7473a23-meta.json +0 -1
  216. package/.turbo/cache/56cb35d4c7473a23.tar.zst +0 -0
  217. package/.turbo/cache/5c16ce3cff5c9dff-meta.json +0 -1
  218. package/.turbo/cache/5c16ce3cff5c9dff.tar.zst +0 -0
  219. package/.turbo/cache/626afdc67e0cb540-meta.json +0 -1
  220. package/.turbo/cache/626afdc67e0cb540.tar.zst +0 -0
  221. package/.turbo/cache/6ef81cf9a66f982a-meta.json +0 -1
  222. package/.turbo/cache/6ef81cf9a66f982a.tar.zst +0 -0
  223. package/.turbo/cache/784c03fe9fd5ac05-meta.json +0 -1
  224. package/.turbo/cache/784c03fe9fd5ac05.tar.zst +0 -0
  225. package/.turbo/cache/87219c41a4ace9cd-meta.json +0 -1
  226. package/.turbo/cache/87219c41a4ace9cd.tar.zst +0 -0
  227. package/.turbo/cache/8b735250fa5a62bf-meta.json +0 -1
  228. package/.turbo/cache/8b735250fa5a62bf.tar.zst +0 -0
  229. package/.turbo/cache/9154e8fe6ab767ea-meta.json +0 -1
  230. package/.turbo/cache/9154e8fe6ab767ea.tar.zst +0 -0
  231. package/.turbo/cache/993dff2edb7b6766-meta.json +0 -1
  232. package/.turbo/cache/993dff2edb7b6766.tar.zst +0 -0
  233. package/.turbo/cache/9a097d6576dadd64-meta.json +0 -1
  234. package/.turbo/cache/9a097d6576dadd64.tar.zst +0 -0
  235. package/.turbo/cache/a49cc58242467fdc-meta.json +0 -1
  236. package/.turbo/cache/a49cc58242467fdc.tar.zst +0 -0
  237. package/.turbo/cache/a6a56bb802e1c20f-meta.json +0 -1
  238. package/.turbo/cache/a6a56bb802e1c20f.tar.zst +0 -0
  239. package/.turbo/cache/af061e7a077a9ba5-meta.json +0 -1
  240. package/.turbo/cache/af061e7a077a9ba5.tar.zst +0 -0
  241. package/.turbo/cache/b50f1b283b4b81cd-meta.json +0 -1
  242. package/.turbo/cache/b50f1b283b4b81cd.tar.zst +0 -0
  243. package/.turbo/cache/bf85bc040b7e64db-meta.json +0 -1
  244. package/.turbo/cache/bf85bc040b7e64db.tar.zst +0 -0
  245. package/.turbo/cache/cd5f6987783fb56d-meta.json +0 -1
  246. package/.turbo/cache/cd5f6987783fb56d.tar.zst +0 -0
  247. package/.turbo/cache/ce67b6522dd09e64-meta.json +0 -1
  248. package/.turbo/cache/ce67b6522dd09e64.tar.zst +0 -0
  249. package/.turbo/cache/d716cb7a08152beb-meta.json +0 -1
  250. package/.turbo/cache/d716cb7a08152beb.tar.zst +0 -0
  251. package/.turbo/cache/d7a47b77deb3d9a4-meta.json +0 -1
  252. package/.turbo/cache/d7a47b77deb3d9a4.tar.zst +0 -0
  253. package/.turbo/cache/fbbe2704bf9cb90b-meta.json +0 -1
  254. package/.turbo/cache/fbbe2704bf9cb90b.tar.zst +0 -0
  255. package/.turbo/cache/ff58f630c9d69af4-meta.json +0 -1
  256. package/.turbo/cache/ff58f630c9d69af4.tar.zst +0 -0
  257. /package/.turbo/cache/{0a2b0a4df8a0443f.tar.zst → 8e79bd5c3a16a72e.tar.zst} +0 -0
@@ -14,21 +14,20 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
14
14
 
15
15
  ## Properties
16
16
 
17
- | Property | Attribute | Type | Default | Description |
18
- |---------------------------------|---------------------------------|-----------|------------------------|--------------------------------------------------|
19
- | [disabled](#disabled) | `disabled` | `Boolean` | | When attribute is present element shows disabled state. |
20
- | [error](#error) | `error` | `String` | | When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value. |
21
- | [flexMenuWidth](#flexMenuWidth) | `flexMenuWidth` | `Boolean` | | If set, makes dropdown bib width match the size of the content, rather than the width of the trigger. |
22
- | [noCheckmark](#noCheckmark) | `noCheckmark` | `Boolean` | | When true, checkmark on selected option will no longer be present. |
23
- | [noValidate](#noValidate) | `noValidate` | `Boolean` | | If set, disables auto-validation on blur. |
24
- | [optionSelected](#optionSelected) | `optionSelected` | `Object` | "undefined" | Specifies the current selected menuOption. |
25
- | [placeholder](#placeholder) | `placeholder` | `String` | "Please select option" | Define placeholder text to display before a value is manually selected. |
26
- | [required](#required) | `required` | `Boolean` | | Populates the `required` attribute on the element. Used for client-side validation. |
27
- | [setCustomValidity](#setCustomValidity) | `setCustomValidity` | `String` | | Sets a custom help text message to display for all validityStates. |
28
- | [setCustomValidityCustomError](#setCustomValidityCustomError) | `setCustomValidityCustomError` | `String` | | Custom help text message to display when validity = `customError`. |
29
- | [setCustomValidityValueMissing](#setCustomValidityValueMissing) | `setCustomValidityValueMissing` | `String` | | Custom help text message to display when validity = `valueMissing`. |
30
- | [validity](#validity) | `validity` | `String` | "undefined" | Specifies the `validityState` this element is in. |
31
- | [value](#value) | `value` | `String` | | Value selected for the component. |
17
+ | Property | Attribute | Type | Default | Description |
18
+ |---------------------------------|---------------------------------|-----------|-------------|--------------------------------------------------|
19
+ | [disabled](#disabled) | `disabled` | `boolean` | | When attribute is present, element shows disabled state. |
20
+ | [error](#error) | `error` | `string` | | When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value. |
21
+ | [flexMenuWidth](#flexMenuWidth) | `flexMenuWidth` | `boolean` | | If set, makes dropdown width match the size of the content, rather than the width of the trigger. |
22
+ | [noCheckmark](#noCheckmark) | `noCheckmark` | `boolean` | | When true, checkmark on selected option will no longer be present. |
23
+ | [noValidate](#noValidate) | `noValidate` | `boolean` | | If set, disables auto-validation on blur. |
24
+ | [optionSelected](#optionSelected) | `optionSelected` | `object` | "undefined" | Specifies the current selected menuOption. |
25
+ | [required](#required) | `required` | `boolean` | | Populates the `required` attribute on the element. Used for client-side validation. |
26
+ | [setCustomValidity](#setCustomValidity) | `setCustomValidity` | `string` | | Sets a custom help text message to display for all validityStates. |
27
+ | [setCustomValidityCustomError](#setCustomValidityCustomError) | `setCustomValidityCustomError` | `string` | | Custom help text message to display when validity = `customError`. |
28
+ | [setCustomValidityValueMissing](#setCustomValidityValueMissing) | `setCustomValidityValueMissing` | `string` | | Custom help text message to display when validity = `valueMissing`. |
29
+ | [validity](#validity) | `validity` | `string` | "undefined" | Specifies the `validityState` this element is in. |
30
+ | [value](#value) | `value` | `string` | | Value selected for the component. |
32
31
 
33
32
  ## Methods
34
33
 
@@ -45,11 +44,12 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
45
44
 
46
45
  ## Slots
47
46
 
48
- | Name | Description |
49
- |------------|--------------------------------------|
50
- | | Default slot for the menu content. |
51
- | [helpText](#helpText) | Defines the content of the helpText. |
52
- | [label](#label) | Defines the content of the label. |
47
+ | Name | Description |
48
+ |---------------|--------------------------------------------------|
49
+ | | Default slot for the menu content. |
50
+ | [helpText](#helpText) | Defines the content of the helpText. |
51
+ | [label](#label) | Defines the content of the label. |
52
+ | [placeholder](#placeholder) | Defines the content of the placeholder to be shown when there is no value |
53
53
 
54
54
  ## CSS Shadow Parts
55
55
 
@@ -62,7 +62,7 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
62
62
 
63
63
  ### Default example
64
64
 
65
- A baseline `auro-select` using `auro-menu` and `auro-menuoption` elements. Notice a default `Please select option` placeholder in the trigger.
65
+ A baseline `auro-select` using `auro-menu` and `auro-menuoption` elements.
66
66
 
67
67
  <div class="exampleWrapper">
68
68
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
@@ -111,7 +111,6 @@ To pre-set the value of auro-select on load, use the `value` property. The `sele
111
111
  <!-- The below content is automatically added from ./../apiExamples/value.html -->
112
112
  <auro-button id="validValueExampleBtn">Set Value to Valid Option</auro-button>
113
113
  <auro-button id="invalidValueExampleBtn">Set Value to Invalid Option</auro-button>
114
- <auro-button id="undefinedValueExampleBtn">Set Value to Undefined</auro-button>
115
114
  <br/><br/>
116
115
  <auro-select id="valueExample" value="price">
117
116
  <span slot="label">Name</span>
@@ -134,7 +133,6 @@ To pre-set the value of auro-select on load, use the `value` property. The `sele
134
133
  ```html
135
134
  <auro-button id="validValueExampleBtn">Set Value to Valid Option</auro-button>
136
135
  <auro-button id="invalidValueExampleBtn">Set Value to Invalid Option</auro-button>
137
- <auro-button id="undefinedValueExampleBtn">Set Value to Undefined</auro-button>
138
136
  <br/><br/>
139
137
  <auro-select id="valueExample" value="price">
140
138
  <span slot="label">Name</span>
@@ -158,67 +156,26 @@ export function valueExample() {
158
156
 
159
157
  document.querySelector('#validValueExampleBtn').addEventListener('click', () => {
160
158
  valueExample.value = 'arrival';
161
- })
159
+ });
162
160
 
163
161
  document.querySelector('#invalidValueExampleBtn').addEventListener('click', () => {
164
162
  valueExample.value = 'flight course';
165
- })
166
-
167
- document.querySelector('#undefinedValueExampleBtn').addEventListener('click', () => {
168
- valueExample.value = undefined;
169
- })
163
+ });
170
164
  }
171
165
  ```
172
166
  <!-- AURO-GENERATED-CONTENT:END -->
173
167
  </auro-accordion>
174
168
 
175
- #### placeholder <a name="placeholder"></a>
176
- Use the `placeholder` string attribute to inject a custom placeholder option with the select element.
177
-
178
- <div class="exampleWrapper">
179
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/customPlaceholder.html) -->
180
- <!-- The below content is automatically added from ./../apiExamples/customPlaceholder.html -->
181
- <auro-select placeholder="Please select your preferred option">
182
- <auro-menu>
183
- <auro-menuoption value="stops">Stops</auro-menuoption>
184
- <auro-menuoption value="price">Price</auro-menuoption>
185
- <auro-menuoption value="duration">Duration</auro-menuoption>
186
- <auro-menuoption value="departure">Departure</auro-menuoption>
187
- <auro-menuoption value="arrival">Arrival</auro-menuoption>
188
- <auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
189
- </auro-menu>
190
- </auro-select>
191
- <!-- AURO-GENERATED-CONTENT:END -->
192
- </div>
193
- <auro-accordion alignRight>
194
- <span slot="trigger">See code</span>
195
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/customPlaceholder.html) -->
196
- <!-- The below code snippet is automatically added from ./../apiExamples/customPlaceholder.html -->
197
-
198
- ```html
199
- <auro-select placeholder="Please select your preferred option">
200
- <auro-menu>
201
- <auro-menuoption value="stops">Stops</auro-menuoption>
202
- <auro-menuoption value="price">Price</auro-menuoption>
203
- <auro-menuoption value="duration">Duration</auro-menuoption>
204
- <auro-menuoption value="departure">Departure</auro-menuoption>
205
- <auro-menuoption value="arrival">Arrival</auro-menuoption>
206
- <auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
207
- </auro-menu>
208
- </auro-select>
209
- ```
210
- <!-- AURO-GENERATED-CONTENT:END -->
211
- </auro-accordion>
212
-
213
169
  #### required <a name="required"></a>
214
170
  When present, the `required` attribute specifies that a select field must be filled out before submitting the form.
215
171
 
216
- When the validity check fails the validityState equals `valueMissing`. The error message for the `valueMissing` validityState can be set to a custom string using the `setCustomValidityValueMissing`. There is no default error message defined.
172
+ When the validity check fails the validityState, equals `valueMissing`. The error message for the `valueMissing` validityState can be set to a custom string using the `setCustomValidityValueMissing`. There is no default error message defined.
217
173
 
218
174
  <div class="exampleWrapper">
219
175
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/required.html) -->
220
176
  <!-- The below content is automatically added from ./../apiExamples/required.html -->
221
177
  <auro-select required setCustomValidityValueMissing="Custom required validation error message.">
178
+ <label slot="placeholder">Placeholder Text</label>
222
179
  <auro-menu>
223
180
  <auro-menuoption value="stops">Stops</auro-menuoption>
224
181
  <auro-menuoption value="price">Price</auro-menuoption>
@@ -237,6 +194,7 @@ When the validity check fails the validityState equals `valueMissing`. The error
237
194
 
238
195
  ```html
239
196
  <auro-select required setCustomValidityValueMissing="Custom required validation error message.">
197
+ <label slot="placeholder">Placeholder Text</label>
240
198
  <auro-menu>
241
199
  <auro-menuoption value="stops">Stops</auro-menuoption>
242
200
  <auro-menuoption value="price">Price</auro-menuoption>
@@ -251,7 +209,9 @@ When the validity check fails the validityState equals `valueMissing`. The error
251
209
  </auro-accordion>
252
210
 
253
211
  #### error <a name="error"></a>
254
- Use the `error` boolean attribute to toggle the error UI.
212
+ Use the `error` attribute to apply a persistent custom error that supersedes the HTML5 validation logic.
213
+
214
+ A custom error message can be set using the `error` attribute, or it can be used in conjuction with the `setCustomValidityCustomError` attribute.
255
215
 
256
216
  <div class="exampleWrapper">
257
217
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/errorApi.html) -->
@@ -260,6 +220,7 @@ Use the `error` boolean attribute to toggle the error UI.
260
220
  <auro-button id="undefinedValueExampleBtnRemoveError">Remove Error</auro-button>
261
221
  <br /><br />
262
222
  <auro-select id="errorExample" error="Custom error message">
223
+ <label slot="placeholder">Placeholder Text</label>
263
224
  <auro-menu>
264
225
  <auro-menuoption value="stops">Stops</auro-menuoption>
265
226
  <auro-menuoption value="price">Price</auro-menuoption>
@@ -281,6 +242,7 @@ Use the `error` boolean attribute to toggle the error UI.
281
242
  <auro-button id="undefinedValueExampleBtnRemoveError">Remove Error</auro-button>
282
243
  <br /><br />
283
244
  <auro-select id="errorExample" error="Custom error message">
245
+ <label slot="placeholder">Placeholder Text</label>
284
246
  <auro-menu>
285
247
  <auro-menuoption value="stops">Stops</auro-menuoption>
286
248
  <auro-menuoption value="price">Price</auro-menuoption>
@@ -301,6 +263,7 @@ Use the `disabled` boolean attribute to toggle the disabled UI.
301
263
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/disabled.html) -->
302
264
  <!-- The below content is automatically added from ./../apiExamples/disabled.html -->
303
265
  <auro-select disabled>
266
+ <label slot="placeholder">Placeholder Text</label>
304
267
  <auro-menu>
305
268
  <auro-menuoption value="stops">Stops</auro-menuoption>
306
269
  <auro-menuoption value="price">Price</auro-menuoption>
@@ -319,6 +282,7 @@ Use the `disabled` boolean attribute to toggle the disabled UI.
319
282
 
320
283
  ```html
321
284
  <auro-select disabled>
285
+ <label slot="placeholder">Placeholder Text</label>
322
286
  <auro-menu>
323
287
  <auro-menuoption value="stops">Stops</auro-menuoption>
324
288
  <auro-menuoption value="price">Price</auro-menuoption>
@@ -339,6 +303,7 @@ Use the `flexMenuWidth` boolean attribute to toggle the width of the `<auro-sele
339
303
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/flexMenuWidth.html) -->
340
304
  <!-- The below content is automatically added from ../apiExamples/flexMenuWidth.html -->
341
305
  <auro-select flexMenuWidth id="flexMenuWidthExample">
306
+ <label slot="placeholder">Placeholder Text</label>
342
307
  <auro-menu>
343
308
  <auro-menuoption value="united states">United States has a country code of (+1)</auro-menuoption>
344
309
  <auro-menuoption value="costa rica">Costa Rica has a country code of (+506)</auro-menuoption>
@@ -361,6 +326,7 @@ Use the `flexMenuWidth` boolean attribute to toggle the width of the `<auro-sele
361
326
 
362
327
  ```html
363
328
  <auro-select flexMenuWidth id="flexMenuWidthExample">
329
+ <label slot="placeholder">Placeholder Text</label>
364
330
  <auro-menu>
365
331
  <auro-menuoption value="united states">United States has a country code of (+1)</auro-menuoption>
366
332
  <auro-menuoption value="costa rica">Costa Rica has a country code of (+506)</auro-menuoption>
@@ -420,47 +386,6 @@ Use the `label` slot to give your users contextual information about their selec
420
386
  <!-- AURO-GENERATED-CONTENT:END -->
421
387
  </auro-accordion>
422
388
 
423
- #### label with placeholder
424
-
425
- The `label` slot and `placeholder` attribute may be used together.
426
-
427
- <div class="exampleWrapper">
428
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/labelWithPlaceholder.html) -->
429
- <!-- The below content is automatically added from ./../apiExamples/labelWithPlaceholder.html -->
430
- <auro-select placeholder="Placeholder Text">
431
- <span slot="label">Label Text</span>
432
- <auro-menu>
433
- <auro-menuoption value="stops">Stops</auro-menuoption>
434
- <auro-menuoption value="price">Price</auro-menuoption>
435
- <auro-menuoption value="duration">Duration</auro-menuoption>
436
- <auro-menuoption value="departure">Departure</auro-menuoption>
437
- <auro-menuoption value="arrival">Arrival</auro-menuoption>
438
- <auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
439
- </auro-menu>
440
- </auro-select>
441
- <!-- AURO-GENERATED-CONTENT:END -->
442
- </div>
443
- <auro-accordion alignRight>
444
- <span slot="trigger">See code</span>
445
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/labelWithPlaceholder.html) -->
446
- <!-- The below code snippet is automatically added from ./../apiExamples/labelWithPlaceholder.html -->
447
-
448
- ```html
449
- <auro-select placeholder="Placeholder Text">
450
- <span slot="label">Label Text</span>
451
- <auro-menu>
452
- <auro-menuoption value="stops">Stops</auro-menuoption>
453
- <auro-menuoption value="price">Price</auro-menuoption>
454
- <auro-menuoption value="duration">Duration</auro-menuoption>
455
- <auro-menuoption value="departure">Departure</auro-menuoption>
456
- <auro-menuoption value="arrival">Arrival</auro-menuoption>
457
- <auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
458
- </auro-menu>
459
- </auro-select>
460
- ```
461
- <!-- AURO-GENERATED-CONTENT:END -->
462
- </auro-accordion>
463
-
464
389
  #### helpText <a name="helpText"></a>
465
390
  Use the `helptext` slot to provide additional information back to your user about their selection option(s).
466
391
 
@@ -468,6 +393,7 @@ Use the `helptext` slot to provide additional information back to your user abou
468
393
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/helpText.html) -->
469
394
  <!-- The below content is automatically added from ./../apiExamples/helpText.html -->
470
395
  <auro-select>
396
+ <label slot="placeholder">Placeholder Text</label>
471
397
  <span slot="helpText">Custom help text message.</span>
472
398
  <auro-menu>
473
399
  <auro-menuoption value="stops">Stops</auro-menuoption>
@@ -487,6 +413,7 @@ Use the `helptext` slot to provide additional information back to your user abou
487
413
 
488
414
  ```html
489
415
  <auro-select>
416
+ <label slot="placeholder">Placeholder Text</label>
490
417
  <span slot="helpText">Custom help text message.</span>
491
418
  <auro-menu>
492
419
  <auro-menuoption value="stops">Stops</auro-menuoption>
@@ -513,6 +440,7 @@ Use the `reset()` method to reset the `<auro-select>`'s `value` and `validity` s
513
440
  <auro-button id="resetStateBtn">Reset</auro-button>
514
441
  <br/><br/>
515
442
  <auro-select id="resetStateExample" required value="price">
443
+ <label slot="placeholder">Placeholder Text</label>
516
444
  <span slot="label">Name</span>
517
445
  <auro-menu>
518
446
  <auro-menuoption value="stops">Stops</auro-menuoption>
@@ -534,6 +462,7 @@ Use the `reset()` method to reset the `<auro-select>`'s `value` and `validity` s
534
462
  <auro-button id="resetStateBtn">Reset</auro-button>
535
463
  <br/><br/>
536
464
  <auro-select id="resetStateExample" required value="price">
465
+ <label slot="placeholder">Placeholder Text</label>
537
466
  <span slot="label">Name</span>
538
467
  <auro-menu>
539
468
  <auro-menuoption value="stops">Stops</auro-menuoption>
@@ -569,6 +498,7 @@ The following example illustrates how a user may query the `element.value` or `e
569
498
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/valueExtraction.html) -->
570
499
  <!-- The below content is automatically added from ./../apiExamples/valueExtraction.html -->
571
500
  <auro-select id="valueExtraction">
501
+ <label slot="placeholder">Placeholder Text</label>
572
502
  <auro-menu>
573
503
  <auro-menuoption value="stops">Stops</auro-menuoption>
574
504
  <auro-menuoption value="price">Price</auro-menuoption>
@@ -588,6 +518,7 @@ The following example illustrates how a user may query the `element.value` or `e
588
518
 
589
519
  ```html
590
520
  <auro-select id="valueExtraction">
521
+ <label slot="placeholder">Placeholder Text</label>
591
522
  <auro-menu>
592
523
  <auro-menuoption value="stops">Stops</auro-menuoption>
593
524
  <auro-menuoption value="price">Price</auro-menuoption>
@@ -627,6 +558,7 @@ This example programmatically adds the `error` state when a user selects an opti
627
558
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/customErrorValidity.html) -->
628
559
  <!-- The below content is automatically added from ./../apiExamples/customErrorValidity.html -->
629
560
  <auro-select id="primaryError">
561
+ <label slot="placeholder">Placeholder Text</label>
630
562
  <auro-menu>
631
563
  <auro-menuoption value="1">1</auro-menuoption>
632
564
  <auro-menuoption value="2">2</auro-menuoption>
@@ -645,6 +577,7 @@ This example programmatically adds the `error` state when a user selects an opti
645
577
 
646
578
  ```html
647
579
  <auro-select id="primaryError">
580
+ <label slot="placeholder">Placeholder Text</label>
648
581
  <auro-menu>
649
582
  <auro-menuoption value="1">1</auro-menuoption>
650
583
  <auro-menuoption value="2">2</auro-menuoption>
@@ -818,6 +751,7 @@ The following example listens for the `auroMenu-selectedOption` event. Once trig
818
751
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/valueAlert.html) -->
819
752
  <!-- The below content is automatically added from ./../apiExamples/valueAlert.html -->
820
753
  <auro-select id="valueAlert">
754
+ <label slot="placeholder">Placeholder Text</label>
821
755
  <auro-menu id="valueAlertMenu">
822
756
  <auro-menuoption value="stops">Stops</auro-menuoption>
823
757
  <auro-menuoption value="price">Price</auro-menuoption>
@@ -836,6 +770,7 @@ The following example listens for the `auroMenu-selectedOption` event. Once trig
836
770
 
837
771
  ```html
838
772
  <auro-select id="valueAlert">
773
+ <label slot="placeholder">Placeholder Text</label>
839
774
  <auro-menu id="valueAlertMenu">
840
775
  <auro-menuoption value="stops">Stops</auro-menuoption>
841
776
  <auro-menuoption value="price">Price</auro-menuoption>