@aurodesignsystem/auro-formkit 1.6.0-beta.8 → 2.0.0-beta.1

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 (337) hide show
  1. package/.turbo/cache/013a48308b893dac-meta.json +1 -0
  2. package/.turbo/cache/0663fcbb1d711029-meta.json +1 -0
  3. package/.turbo/cache/0663fcbb1d711029.tar.zst +0 -0
  4. package/.turbo/cache/07ca42419b9f050c-meta.json +1 -0
  5. package/.turbo/cache/0a2b0a4df8a0443f-meta.json +1 -0
  6. package/.turbo/cache/0a2b0a4df8a0443f.tar.zst +0 -0
  7. package/.turbo/cache/0cea4c1f34f3683b-meta.json +1 -0
  8. package/.turbo/cache/120c8e207aa1ba35-meta.json +1 -0
  9. package/.turbo/cache/120c8e207aa1ba35.tar.zst +0 -0
  10. package/.turbo/cache/141bb7d9a95e288b-meta.json +1 -0
  11. package/.turbo/cache/141bb7d9a95e288b.tar.zst +0 -0
  12. package/.turbo/cache/17259cf94d8f8925-meta.json +1 -0
  13. package/.turbo/cache/17dd4bdef6550a07-meta.json +1 -0
  14. package/.turbo/cache/17dd4bdef6550a07.tar.zst +0 -0
  15. package/.turbo/cache/1c99a949ec63ab35-meta.json +1 -0
  16. package/.turbo/cache/1de15d89eed2d760-meta.json +1 -0
  17. package/.turbo/cache/1de15d89eed2d760.tar.zst +0 -0
  18. package/.turbo/cache/257a7a26ea72dbc5-meta.json +1 -0
  19. package/.turbo/cache/2990aaa7ebc5b967-meta.json +1 -0
  20. package/.turbo/cache/2990aaa7ebc5b967.tar.zst +0 -0
  21. package/.turbo/cache/32c0b9995fb5f8dd-meta.json +1 -0
  22. package/.turbo/cache/32c0b9995fb5f8dd.tar.zst +0 -0
  23. package/.turbo/cache/3bf45120d0cc9bd8-meta.json +1 -0
  24. package/.turbo/cache/45035bf5c4147ccd-meta.json +1 -0
  25. package/.turbo/cache/4f92cea2d8c63de2-meta.json +1 -0
  26. package/.turbo/cache/4f92cea2d8c63de2.tar.zst +0 -0
  27. package/.turbo/cache/56cb35d4c7473a23-meta.json +1 -0
  28. package/.turbo/cache/56cb35d4c7473a23.tar.zst +0 -0
  29. package/.turbo/cache/5c16ce3cff5c9dff-meta.json +1 -0
  30. package/.turbo/cache/5f304c0f37ef25f3-meta.json +1 -0
  31. package/.turbo/cache/626afdc67e0cb540-meta.json +1 -0
  32. package/.turbo/cache/626afdc67e0cb540.tar.zst +0 -0
  33. package/.turbo/cache/64de7a53e02db647-meta.json +1 -0
  34. package/.turbo/cache/691a74627ec57993-meta.json +1 -0
  35. package/.turbo/cache/69aae513b7ec6c7d-meta.json +1 -0
  36. package/.turbo/cache/6dd7058e6703cb35-meta.json +1 -0
  37. package/.turbo/cache/6ef81cf9a66f982a-meta.json +1 -0
  38. package/.turbo/cache/6ef81cf9a66f982a.tar.zst +0 -0
  39. package/.turbo/cache/73e9073a5274616d-meta.json +1 -0
  40. package/.turbo/cache/773edc0f83c8c5a5-meta.json +1 -0
  41. package/.turbo/cache/784c03fe9fd5ac05-meta.json +1 -0
  42. package/.turbo/cache/784c03fe9fd5ac05.tar.zst +0 -0
  43. package/.turbo/cache/786a822763403879-meta.json +1 -0
  44. package/.turbo/cache/80b5d974184a01df-meta.json +1 -0
  45. package/.turbo/cache/87219c41a4ace9cd-meta.json +1 -0
  46. package/.turbo/cache/87219c41a4ace9cd.tar.zst +0 -0
  47. package/.turbo/cache/8954c6073396fadd-meta.json +1 -0
  48. package/.turbo/cache/9154e8fe6ab767ea-meta.json +1 -0
  49. package/.turbo/cache/9154e8fe6ab767ea.tar.zst +0 -0
  50. package/.turbo/cache/92daa6d7c389d548-meta.json +1 -0
  51. package/.turbo/cache/993dff2edb7b6766-meta.json +1 -0
  52. package/.turbo/cache/993dff2edb7b6766.tar.zst +0 -0
  53. package/.turbo/cache/9a097d6576dadd64-meta.json +1 -0
  54. package/.turbo/cache/a49cc58242467fdc-meta.json +1 -0
  55. package/.turbo/cache/a49cc58242467fdc.tar.zst +0 -0
  56. package/.turbo/cache/a6a56bb802e1c20f-meta.json +1 -0
  57. package/.turbo/cache/a6a56bb802e1c20f.tar.zst +0 -0
  58. package/.turbo/cache/a77bc920ea508bb8-meta.json +1 -0
  59. package/.turbo/cache/a77bc920ea508bb8.tar.zst +0 -0
  60. package/.turbo/cache/af061e7a077a9ba5-meta.json +1 -0
  61. package/.turbo/cache/af061e7a077a9ba5.tar.zst +0 -0
  62. package/.turbo/cache/b50f1b283b4b81cd-meta.json +1 -0
  63. package/.turbo/cache/b50f1b283b4b81cd.tar.zst +0 -0
  64. package/.turbo/cache/b54fc4f664a7a5a0-meta.json +1 -0
  65. package/.turbo/cache/ba4418918621fbcd-meta.json +1 -0
  66. package/.turbo/cache/bb8b41cd0ade3986-meta.json +1 -0
  67. package/.turbo/cache/bb8b41cd0ade3986.tar.zst +0 -0
  68. package/.turbo/cache/be7c23c37b8ec74b-meta.json +1 -0
  69. package/.turbo/cache/{7e81141e0140dd3a.tar.zst → be7c23c37b8ec74b.tar.zst} +0 -0
  70. package/.turbo/cache/bf85bc040b7e64db-meta.json +1 -0
  71. package/.turbo/cache/bf85bc040b7e64db.tar.zst +0 -0
  72. package/.turbo/cache/caa0b4ac8d2a04dd-meta.json +1 -0
  73. package/.turbo/cache/caa0b4ac8d2a04dd.tar.zst +0 -0
  74. package/.turbo/cache/cc81de9c0b452a7c-meta.json +1 -0
  75. package/.turbo/cache/cd5f6987783fb56d-meta.json +1 -0
  76. package/.turbo/cache/cd5f6987783fb56d.tar.zst +0 -0
  77. package/.turbo/cache/cd845bb6102c589a-meta.json +1 -0
  78. package/.turbo/cache/cd845bb6102c589a.tar.zst +0 -0
  79. package/.turbo/cache/ce67b6522dd09e64-meta.json +1 -0
  80. package/.turbo/cache/ce67b6522dd09e64.tar.zst +0 -0
  81. package/.turbo/cache/d7a47b77deb3d9a4-meta.json +1 -0
  82. package/.turbo/cache/d7a47b77deb3d9a4.tar.zst +0 -0
  83. package/.turbo/cache/dad1301ac69bcb85-meta.json +1 -0
  84. package/.turbo/cache/e992dab20aeefbaf-meta.json +1 -0
  85. package/.turbo/cache/e992dab20aeefbaf.tar.zst +0 -0
  86. package/.turbo/cache/fa132b5b5f0e75f8-meta.json +1 -0
  87. package/.turbo/cache/fbbe2704bf9cb90b-meta.json +1 -0
  88. package/.turbo/cache/ff58f630c9d69af4-meta.json +1 -0
  89. package/.turbo/cache/ff58f630c9d69af4.tar.zst +0 -0
  90. package/CHANGELOG.md +73 -0
  91. package/components/checkbox/.turbo/turbo-build.log +6 -3
  92. package/components/checkbox/.turbo/turbo-bundler.log +3 -3
  93. package/components/checkbox/demo/api.html +6 -1
  94. package/components/checkbox/demo/api.js +16 -0
  95. package/components/checkbox/demo/api.md +63 -4
  96. package/components/checkbox/demo/api.min.js +84 -13
  97. package/components/checkbox/demo/index.min.js +59 -13
  98. package/components/checkbox/dist/auro-checkbox-group.d.ts +6 -1
  99. package/components/checkbox/dist/auro-checkbox-group.d.ts.map +1 -1
  100. package/components/checkbox/dist/auro-checkbox.d.ts +5 -0
  101. package/components/checkbox/dist/auro-checkbox.d.ts.map +1 -1
  102. package/components/checkbox/dist/index.js +59 -13
  103. package/components/checkbox/src/auro-checkbox-group.js +18 -6
  104. package/components/checkbox/src/auro-checkbox.js +9 -0
  105. package/components/combobox/.turbo/turbo-build.log +6 -3
  106. package/components/combobox/demo/api.js +4 -2
  107. package/components/combobox/demo/api.md +60 -1
  108. package/components/combobox/demo/api.min.js +159 -113
  109. package/components/combobox/demo/index.min.js +150 -113
  110. package/components/combobox/dist/auro-combobox.d.ts +5 -1
  111. package/components/combobox/dist/auro-combobox.d.ts.map +1 -1
  112. package/components/combobox/dist/index.js +145 -76
  113. package/components/combobox/src/auro-combobox.js +14 -3
  114. package/components/counter/.turbo/turbo-build.log +3 -3
  115. package/components/counter/.turbo/turbo-bundler.log +3 -3
  116. package/components/datepicker/.turbo/turbo-build.log +5 -2
  117. package/components/datepicker/demo/api.js +2 -0
  118. package/components/datepicker/demo/api.md +46 -1
  119. package/components/datepicker/demo/api.min.js +156 -79
  120. package/components/datepicker/demo/index.min.js +147 -79
  121. package/components/datepicker/dist/auro-calendar.d.ts.map +1 -1
  122. package/components/datepicker/dist/auro-datepicker.d.ts +5 -2
  123. package/components/datepicker/dist/auro-datepicker.d.ts.map +1 -1
  124. package/components/datepicker/dist/index.js +147 -79
  125. package/components/datepicker/dist/popoverVersion.d.ts +1 -1
  126. package/components/datepicker/dist/utilitiesCalendar.d.ts +1 -2
  127. package/components/datepicker/dist/utilitiesCalendar.d.ts.map +1 -1
  128. package/components/datepicker/package.json +1 -1
  129. package/components/datepicker/src/auro-calendar.js +1 -0
  130. package/components/datepicker/src/auro-datepicker.js +14 -4
  131. package/components/datepicker/src/popoverVersion.js +1 -1
  132. package/components/datepicker/src/utilitiesCalendar.js +0 -1
  133. package/components/dropdown/.turbo/turbo-build.log +3 -3
  134. package/components/dropdown/.turbo/turbo-bundler.log +3 -3
  135. package/components/dropdown/demo/api.min.js +37 -25
  136. package/components/dropdown/demo/index.min.js +37 -25
  137. package/components/dropdown/dist/iconVersion.d.ts +1 -1
  138. package/components/dropdown/dist/index.js +37 -25
  139. package/components/dropdown/package.json +1 -1
  140. package/components/dropdown/src/auro-dropdown.js +2 -2
  141. package/components/dropdown/src/iconVersion.js +1 -1
  142. package/components/dropdown/src/styles/bibStyles-css.js +1 -1
  143. package/components/dropdown/src/styles/bibStyles.css +0 -5
  144. package/components/dropdown/src/styles/bibStyles.scss +0 -7
  145. package/components/dropdown/src/styles/color-css.js +1 -1
  146. package/components/dropdown/src/styles/color.css +6 -7
  147. package/components/dropdown/src/styles/color.scss +7 -7
  148. package/components/dropdown/src/styles/style-css.js +1 -1
  149. package/components/dropdown/src/styles/style.css +1 -0
  150. package/components/dropdown/src/styles/style.scss +1 -0
  151. package/components/form/.turbo/turbo-build.log +3 -3
  152. package/components/form/.turbo/turbo-bundler.log +3 -3
  153. package/components/input/.turbo/turbo-build$colon$sass.log +2 -2
  154. package/components/input/.turbo/turbo-build.log +16 -13
  155. package/components/input/.turbo/turbo-bundler.log +3 -3
  156. package/components/input/demo/api.js +2 -0
  157. package/components/input/demo/api.md +183 -135
  158. package/components/input/demo/api.min.js +74 -44
  159. package/components/input/demo/index.min.js +62 -41
  160. package/components/input/dist/base-input.d.ts +8 -18
  161. package/components/input/dist/base-input.d.ts.map +1 -1
  162. package/components/input/dist/buttonVersion.d.ts +1 -1
  163. package/components/input/dist/iconVersion.d.ts +1 -1
  164. package/components/input/dist/index.js +62 -41
  165. package/components/input/package.json +2 -2
  166. package/components/input/src/base-input.js +23 -29
  167. package/components/input/src/buttonVersion.js +1 -1
  168. package/components/input/src/iconVersion.js +1 -1
  169. package/components/input/src/styles/input-css.js +1 -1
  170. package/components/input/src/styles/input.css +13 -0
  171. package/components/input/src/styles/input.scss +21 -0
  172. package/components/input/src/styles/label-css.js +1 -1
  173. package/components/input/src/styles/label.css +3 -3
  174. package/components/input/src/styles/label.scss +1 -2
  175. package/components/input/src/styles/notificationIcons-css.js +1 -1
  176. package/components/input/src/styles/notificationIcons.css +7 -0
  177. package/components/input/src/styles/notificationIcons.scss +14 -0
  178. package/components/input/src/styles/style-css.js +1 -1
  179. package/components/input/src/styles/style.css +23 -3
  180. package/components/menu/.turbo/turbo-build.log +3 -3
  181. package/components/menu/.turbo/turbo-bundler.log +3 -3
  182. package/components/menu/demo/api.md +1 -5
  183. package/components/menu/demo/api.min.js +5 -37
  184. package/components/menu/demo/index.min.js +5 -37
  185. package/components/menu/dist/auro-menu.d.ts +0 -4
  186. package/components/menu/dist/auro-menu.d.ts.map +1 -1
  187. package/components/menu/dist/auro-menuoption.d.ts +0 -1
  188. package/components/menu/dist/auro-menuoption.d.ts.map +1 -1
  189. package/components/menu/dist/iconVersion.d.ts +1 -1
  190. package/components/menu/dist/index.js +5 -37
  191. package/components/menu/package.json +1 -1
  192. package/components/menu/src/auro-menu.js +0 -32
  193. package/components/menu/src/auro-menuoption.js +1 -2
  194. package/components/menu/src/iconVersion.js +1 -1
  195. package/components/radio/.turbo/turbo-build.log +6 -3
  196. package/components/radio/.turbo/turbo-bundler.log +3 -3
  197. package/components/radio/demo/api.html +1 -0
  198. package/components/radio/demo/api.js +2 -0
  199. package/components/radio/demo/api.md +57 -3
  200. package/components/radio/demo/api.min.js +55 -12
  201. package/components/radio/demo/index.min.js +46 -12
  202. package/components/radio/dist/auro-radio-group.d.ts +1 -1
  203. package/components/radio/dist/auro-radio.d.ts +5 -0
  204. package/components/radio/dist/auro-radio.d.ts.map +1 -1
  205. package/components/radio/dist/index.js +46 -12
  206. package/components/radio/src/auro-radio-group.js +5 -5
  207. package/components/radio/src/auro-radio.js +9 -0
  208. package/components/select/.turbo/turbo-build.log +10 -7
  209. package/components/select/demo/api.js +6 -2
  210. package/components/select/demo/api.md +137 -70
  211. package/components/select/demo/api.min.js +105 -73
  212. package/components/select/demo/index.min.js +85 -73
  213. package/components/select/dist/auro-select.d.ts +5 -1
  214. package/components/select/dist/auro-select.d.ts.map +1 -1
  215. package/components/select/dist/index.js +80 -36
  216. package/components/select/src/auro-select.js +11 -4
  217. package/package.json +2 -2
  218. package/packages/form-validation/src/validation.js +32 -7
  219. package/.turbo/cache/0008b92c8752bf75-meta.json +0 -1
  220. package/.turbo/cache/0008b92c8752bf75.tar.zst +0 -0
  221. package/.turbo/cache/00cb38bef1105dac-meta.json +0 -1
  222. package/.turbo/cache/0157ec8abdaf2a9c-meta.json +0 -1
  223. package/.turbo/cache/0636e9cedc83238b-meta.json +0 -1
  224. package/.turbo/cache/0636e9cedc83238b.tar.zst +0 -0
  225. package/.turbo/cache/06f476671015e973-meta.json +0 -1
  226. package/.turbo/cache/06f476671015e973.tar.zst +0 -0
  227. package/.turbo/cache/09df74d672102662-meta.json +0 -1
  228. package/.turbo/cache/09df74d672102662.tar.zst +0 -0
  229. package/.turbo/cache/0cd109fb3183c2e6-meta.json +0 -1
  230. package/.turbo/cache/17c429ade621ffcb-meta.json +0 -1
  231. package/.turbo/cache/1c47128a0e12fcfa-meta.json +0 -1
  232. package/.turbo/cache/1c47128a0e12fcfa.tar.zst +0 -0
  233. package/.turbo/cache/1db02f756ce85784-meta.json +0 -1
  234. package/.turbo/cache/21705fa179d5f820-meta.json +0 -1
  235. package/.turbo/cache/21705fa179d5f820.tar.zst +0 -0
  236. package/.turbo/cache/249d9ba3ee6aa1cb-meta.json +0 -1
  237. package/.turbo/cache/2666b96bfcf4e9cd-meta.json +0 -1
  238. package/.turbo/cache/2666b96bfcf4e9cd.tar.zst +0 -0
  239. package/.turbo/cache/2778d5e895240cd1-meta.json +0 -1
  240. package/.turbo/cache/300b59df2de12b46-meta.json +0 -1
  241. package/.turbo/cache/300b59df2de12b46.tar.zst +0 -0
  242. package/.turbo/cache/31729e74fccaafb0-meta.json +0 -1
  243. package/.turbo/cache/32702694d62a08ac-meta.json +0 -1
  244. package/.turbo/cache/3482a3cba9a51c2d-meta.json +0 -1
  245. package/.turbo/cache/3482a3cba9a51c2d.tar.zst +0 -0
  246. package/.turbo/cache/3a9d73752f23a40a-meta.json +0 -1
  247. package/.turbo/cache/3a9d73752f23a40a.tar.zst +0 -0
  248. package/.turbo/cache/3afe2e6f714a4fcb-meta.json +0 -1
  249. package/.turbo/cache/3afe2e6f714a4fcb.tar.zst +0 -0
  250. package/.turbo/cache/408ea1754276298c-meta.json +0 -1
  251. package/.turbo/cache/408ea1754276298c.tar.zst +0 -0
  252. package/.turbo/cache/42066c793c3816f3-meta.json +0 -1
  253. package/.turbo/cache/42066c793c3816f3.tar.zst +0 -0
  254. package/.turbo/cache/4bec46ffff6fd2e8-meta.json +0 -1
  255. package/.turbo/cache/50b275350abe14dd-meta.json +0 -1
  256. package/.turbo/cache/50b275350abe14dd.tar.zst +0 -0
  257. package/.turbo/cache/51078a087b52c65e-meta.json +0 -1
  258. package/.turbo/cache/51078a087b52c65e.tar.zst +0 -0
  259. package/.turbo/cache/593ddf689673e305-meta.json +0 -1
  260. package/.turbo/cache/593ddf689673e305.tar.zst +0 -0
  261. package/.turbo/cache/64e4f18395bd4461-meta.json +0 -1
  262. package/.turbo/cache/64e4f18395bd4461.tar.zst +0 -0
  263. package/.turbo/cache/7419ef01dc18b433-meta.json +0 -1
  264. package/.turbo/cache/748faca09d14fea7-meta.json +0 -1
  265. package/.turbo/cache/75495b0bbd6c06a7-meta.json +0 -1
  266. package/.turbo/cache/75495b0bbd6c06a7.tar.zst +0 -0
  267. package/.turbo/cache/7a6a8af4392c4b05-meta.json +0 -1
  268. package/.turbo/cache/7a6a8af4392c4b05.tar.zst +0 -0
  269. package/.turbo/cache/7e81141e0140dd3a-meta.json +0 -1
  270. package/.turbo/cache/7eb50d96639e6dd4-meta.json +0 -1
  271. package/.turbo/cache/7eb50d96639e6dd4.tar.zst +0 -0
  272. package/.turbo/cache/83bb78fec13808d0-meta.json +0 -1
  273. package/.turbo/cache/8605f60efb7d3957-meta.json +0 -1
  274. package/.turbo/cache/8605f60efb7d3957.tar.zst +0 -0
  275. package/.turbo/cache/892a90b62716ded5-meta.json +0 -1
  276. package/.turbo/cache/8cac06ca809bd2b1-meta.json +0 -1
  277. package/.turbo/cache/9a908bf8f82c84a6-meta.json +0 -1
  278. package/.turbo/cache/9a908bf8f82c84a6.tar.zst +0 -0
  279. package/.turbo/cache/9ed3089ffd7d0c00-meta.json +0 -1
  280. package/.turbo/cache/a3a879aea25debf8-meta.json +0 -1
  281. package/.turbo/cache/a8dbafaf6177f677-meta.json +0 -1
  282. package/.turbo/cache/a8dbafaf6177f677.tar.zst +0 -0
  283. package/.turbo/cache/a8f6418b830ef0ba-meta.json +0 -1
  284. package/.turbo/cache/afd81e4f9d4bb74d-meta.json +0 -1
  285. package/.turbo/cache/afd81e4f9d4bb74d.tar.zst +0 -0
  286. package/.turbo/cache/b37b0eb5597e160f-meta.json +0 -1
  287. package/.turbo/cache/b7e7a8c425673f7c-meta.json +0 -1
  288. package/.turbo/cache/b7e7a8c425673f7c.tar.zst +0 -0
  289. package/.turbo/cache/bc8eed3d7216f5b7-meta.json +0 -1
  290. package/.turbo/cache/bde11c3029373459-meta.json +0 -1
  291. package/.turbo/cache/c8e5fe6aec4479f5-meta.json +0 -1
  292. package/.turbo/cache/c8e5fe6aec4479f5.tar.zst +0 -0
  293. package/.turbo/cache/d0e874a9a71c9468-meta.json +0 -1
  294. package/.turbo/cache/d61b4e1bde4c0a12-meta.json +0 -1
  295. package/.turbo/cache/db6dedc0e7a12575-meta.json +0 -1
  296. package/.turbo/cache/db6dedc0e7a12575.tar.zst +0 -0
  297. package/.turbo/cache/de9737607345ec54-meta.json +0 -1
  298. package/.turbo/cache/de9737607345ec54.tar.zst +0 -0
  299. package/.turbo/cache/e234aa902b2c5b30-meta.json +0 -1
  300. package/.turbo/cache/e234aa902b2c5b30.tar.zst +0 -0
  301. package/.turbo/cache/e541225f46f7cf86-meta.json +0 -1
  302. package/.turbo/cache/e67ac30b07d9e800-meta.json +0 -1
  303. package/.turbo/cache/e67ac30b07d9e800.tar.zst +0 -0
  304. package/.turbo/cache/e7244fdd3397eba7-meta.json +0 -1
  305. package/.turbo/cache/e7cf2cc625bd92b3-meta.json +0 -1
  306. package/.turbo/cache/e89a401ebdda3fc2-meta.json +0 -1
  307. package/components/dropdown/dist/floatingUI.d.mts +0 -68
  308. package/components/dropdown/dist/floatingUI.d.mts.map +0 -1
  309. package/components/dropdown/src/floatingUI.mjs +0 -381
  310. package/components/select/demo/alertValue.js +0 -6
  311. /package/.turbo/cache/{b37b0eb5597e160f.tar.zst → 013a48308b893dac.tar.zst} +0 -0
  312. /package/.turbo/cache/{8cac06ca809bd2b1.tar.zst → 07ca42419b9f050c.tar.zst} +0 -0
  313. /package/.turbo/cache/{e7244fdd3397eba7.tar.zst → 0cea4c1f34f3683b.tar.zst} +0 -0
  314. /package/.turbo/cache/{e89a401ebdda3fc2.tar.zst → 17259cf94d8f8925.tar.zst} +0 -0
  315. /package/.turbo/cache/{a3a879aea25debf8.tar.zst → 1c99a949ec63ab35.tar.zst} +0 -0
  316. /package/.turbo/cache/{17c429ade621ffcb.tar.zst → 257a7a26ea72dbc5.tar.zst} +0 -0
  317. /package/.turbo/cache/{d0e874a9a71c9468.tar.zst → 3bf45120d0cc9bd8.tar.zst} +0 -0
  318. /package/.turbo/cache/{0cd109fb3183c2e6.tar.zst → 45035bf5c4147ccd.tar.zst} +0 -0
  319. /package/.turbo/cache/{bde11c3029373459.tar.zst → 5c16ce3cff5c9dff.tar.zst} +0 -0
  320. /package/.turbo/cache/{1db02f756ce85784.tar.zst → 5f304c0f37ef25f3.tar.zst} +0 -0
  321. /package/.turbo/cache/{9ed3089ffd7d0c00.tar.zst → 64de7a53e02db647.tar.zst} +0 -0
  322. /package/.turbo/cache/{32702694d62a08ac.tar.zst → 691a74627ec57993.tar.zst} +0 -0
  323. /package/.turbo/cache/{00cb38bef1105dac.tar.zst → 69aae513b7ec6c7d.tar.zst} +0 -0
  324. /package/.turbo/cache/{e7cf2cc625bd92b3.tar.zst → 6dd7058e6703cb35.tar.zst} +0 -0
  325. /package/.turbo/cache/{748faca09d14fea7.tar.zst → 73e9073a5274616d.tar.zst} +0 -0
  326. /package/.turbo/cache/{83bb78fec13808d0.tar.zst → 773edc0f83c8c5a5.tar.zst} +0 -0
  327. /package/.turbo/cache/{892a90b62716ded5.tar.zst → 786a822763403879.tar.zst} +0 -0
  328. /package/.turbo/cache/{7419ef01dc18b433.tar.zst → 80b5d974184a01df.tar.zst} +0 -0
  329. /package/.turbo/cache/{0157ec8abdaf2a9c.tar.zst → 8954c6073396fadd.tar.zst} +0 -0
  330. /package/.turbo/cache/{bc8eed3d7216f5b7.tar.zst → 92daa6d7c389d548.tar.zst} +0 -0
  331. /package/.turbo/cache/{e541225f46f7cf86.tar.zst → 9a097d6576dadd64.tar.zst} +0 -0
  332. /package/.turbo/cache/{2778d5e895240cd1.tar.zst → b54fc4f664a7a5a0.tar.zst} +0 -0
  333. /package/.turbo/cache/{a8f6418b830ef0ba.tar.zst → ba4418918621fbcd.tar.zst} +0 -0
  334. /package/.turbo/cache/{4bec46ffff6fd2e8.tar.zst → cc81de9c0b452a7c.tar.zst} +0 -0
  335. /package/.turbo/cache/{31729e74fccaafb0.tar.zst → dad1301ac69bcb85.tar.zst} +0 -0
  336. /package/.turbo/cache/{d61b4e1bde4c0a12.tar.zst → fa132b5b5f0e75f8.tar.zst} +0 -0
  337. /package/.turbo/cache/{249d9ba3ee6aa1cb.tar.zst → fbbe2704bf9cb90b.tar.zst} +0 -0
@@ -22,13 +22,9 @@ import AuroLibraryRuntimeUtils from '@aurodesignsystem/auro-library/scripts/util
22
22
  * @attr {String} value - Value selected for the menu.
23
23
  * @prop {Boolean} hasLoadingPlaceholder - Indicates whether the menu has a loadingIcon or loadingText to render when in a loading state.
24
24
  * @event auroMenu-selectedOption - Notifies that a new menuoption selection has been made.
25
- * @event selectedOption - (DEPRECATED) Notifies that a new menuoption selection has been made.
26
25
  * @event auroMenu-activatedOption - Notifies that a menuoption has been made `active`.
27
- * @event auroMenuActivatedOption - (DEPRECATED) Notifies that a menuoption has been made `active`.
28
26
  * @event auroMenu-selectValueFailure - Notifies that a an attempt to select a menuoption by matching a value has failed.
29
- * @event auroMenuSelectValueFailure - (DEPRECATED) Notifies that a an attempt to select a menuoption by matching a value has failed.
30
27
  * @event auroMenu-customEventFired - Notifies that a custom event has been fired.
31
- * @event auroMenuCustomEventFired - (DEPRECATED) Notifies that a custom event has been fired.
32
28
  * @event auroMenu-selectValueReset - Notifies that the component value has been reset.
33
29
  * @event auroMenu-loadingChange - Notifies when the loading attribute is changed.
34
30
  * @slot loadingText - Text to show while loading attribute is set
@@ -237,13 +233,6 @@ export class AuroMenu extends LitElement {
237
233
  * @return {void}
238
234
  */
239
235
  notifySelectionChange() {
240
- // this event needs to be removed after select and combobox are updated to use the new standard name
241
- this.dispatchEvent(new CustomEvent('selectedOption', {
242
- bubbles: true,
243
- cancelable: false,
244
- composed: true,
245
- }));
246
-
247
236
  this.dispatchEvent(new CustomEvent('auroMenu-selectedOption', {
248
237
  bubbles: true,
249
238
  cancelable: false,
@@ -275,13 +264,6 @@ export class AuroMenu extends LitElement {
275
264
  composed: true,
276
265
  }));
277
266
 
278
- // this event needs to be removed after select and combobox are updated to use the new standard name
279
- this.dispatchEvent(new CustomEvent('auroMenuCustomEventFired', {
280
- bubbles: true,
281
- cancelable: false,
282
- composed: true,
283
- }));
284
-
285
267
  this.dispatchEvent(new CustomEvent('auroMenu-customEventFired', {
286
268
  bubbles: true,
287
269
  cancelable: false,
@@ -444,13 +426,6 @@ export class AuroMenu extends LitElement {
444
426
  // reset the menu to no selection
445
427
  this.index = undefined;
446
428
 
447
- // this event needs to be removed after select and combobox are updated to use the new standard name
448
- this.dispatchEvent(new CustomEvent('auroMenuSelectValueFailure', {
449
- bubbles: true,
450
- cancelable: false,
451
- composed: true,
452
- }));
453
-
454
429
  this.dispatchEvent(new CustomEvent('auroMenu-selectValueFailure', {
455
430
  bubbles: true,
456
431
  cancelable: false,
@@ -482,13 +457,6 @@ export class AuroMenu extends LitElement {
482
457
  this.items[index].classList.add('active');
483
458
  this.optionActive = this.items[index];
484
459
 
485
- this.dispatchEvent(new CustomEvent('auroMenuActivatedOption', {
486
- bubbles: true,
487
- cancelable: false,
488
- composed: true,
489
- detail: this.items[index]
490
- }));
491
-
492
460
  this.dispatchEvent(new CustomEvent('auroMenu-activatedOption', {
493
461
  bubbles: true,
494
462
  cancelable: false,
@@ -69,8 +69,7 @@ export class AuroMenuOption extends LitElement {
69
69
  reflect: true
70
70
  },
71
71
  value: {
72
- type: String,
73
- reflect: true
72
+ type: String
74
73
  },
75
74
  tabIndex: {
76
75
  type: Number,
@@ -1 +1 @@
1
- export default '6.1.1';
1
+ export default '6.1.2';
@@ -138,13 +138,13 @@ Run in verbose mode to see all warnings.
138
138
 
139
139
  
140
140
  ./src/index.js → dist...
141
- created dist in 816ms
141
+ created dist in 763ms
142
142
  
143
143
  ./demo/index.js → ./demo/...
144
- created ./demo/ in 484ms
144
+ created ./demo/ in 581ms
145
145
  
146
146
  ./demo/api.js → ./demo/...
147
- created ./demo/ in 369ms
147
+ created ./demo/ in 353ms
148
148
 
149
149
  > @auro-formkit/auro-radio@4.1.1 build:docs
150
150
  > wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component radio
@@ -193,6 +193,7 @@ Retrieving latest "/home/runner/work/auro-formkit/auro-formkit/components/radio/
193
193
  ⁕ FILE:src=./../apiExamples/horizontal.html
194
194
  ⁕ FILE:src=./../apiExamples/required.html
195
195
  ⁕ FILE:src=./../apiExamples/optionalLabel.html
196
+ ⁕ FILE:src=./../apiExamples/resetState.html
196
197
  ⁕ FILE:src=./../apiExamples/dynamic.html
197
198
  ⁕ CODE:src=./../apiExamples/basic.html
198
199
  ⁕ CODE:src=./../apiExamples/basicGroup.html
@@ -202,6 +203,8 @@ Retrieving latest "/home/runner/work/auro-formkit/auro-formkit/components/radio/
202
203
  ⁕ CODE:src=./../apiExamples/horizontal.html
203
204
  ⁕ CODE:src=./../apiExamples/required.html
204
205
  ⁕ CODE:src=./../apiExamples/optionalLabel.html
206
+ ⁕ CODE:src=./../apiExamples/resetState.html
207
+ ⁕ CODE:src=./../apiExamples/resetState.js
205
208
  ⁕ CODE:src=./../apiExamples/dynamic.html
206
209
  ⁕ CODE:src=./../apiExamples/dynamic.js
207
210
  ⁕ CODE:src=./../src/styles/tokens.scss
@@ -4,10 +4,10 @@
4
4
 
5
5
  
6
6
  ./src/index.js → dist...
7
- created dist in 888ms
7
+ created dist in 963ms
8
8
  
9
9
  ./demo/index.js → ./demo/...
10
- created ./demo/ in 635ms
10
+ created ./demo/ in 536ms
11
11
  
12
12
  ./demo/api.js → ./demo/...
13
- created ./demo/ in 375ms
13
+ created ./demo/ in 467ms
@@ -46,5 +46,6 @@
46
46
 
47
47
  <!-- If additional elements are needed for the demo, add them here. -->
48
48
  <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/dist/auro-accordion__bundled.js" type="module"></script>
49
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-button@latest/dist/auro-button__bundled.js" type="module"></script>
49
50
  </body>
50
51
  </html>
@@ -1,4 +1,5 @@
1
1
  import { dynamicExample } from "../apiExamples/dynamic";
2
+ import { resetStateExample } from "../apiExamples/resetState";
2
3
  import './index.js';
3
4
 
4
5
  export function initExamples(initCount) {
@@ -6,6 +7,7 @@ export function initExamples(initCount) {
6
7
 
7
8
  try {
8
9
  dynamicExample();
10
+ resetStateExample();
9
11
  } catch (error) {
10
12
  if (initCount <= 20) {
11
13
  // setTimeout handles issue where content is sometimes loaded after the functions get called
@@ -21,9 +21,9 @@
21
21
 
22
22
  ## Methods
23
23
 
24
- | Method | Type | Description |
25
- |---------|------------|------------------------------------------------|
26
- | [reset](#reset) | `(): void` | Method for a total reset of the radio element. |
24
+ | Method | Type | Description |
25
+ |---------|------------|------------------------------------|
26
+ | [reset](#reset) | `(): void` | Resets component to initial state. |
27
27
 
28
28
  ## Events
29
29
 
@@ -61,6 +61,12 @@
61
61
  | [tabIndex](#tabIndex) | `tabIndex` | `number` | -1 | |
62
62
  | [value](#value) | `value` | `string` | | |
63
63
 
64
+ ## Methods
65
+
66
+ | Method | Type | Description |
67
+ |---------|------------|------------------------------------|
68
+ | [reset](#reset) | `(): void` | Resets component to initial state. |
69
+
64
70
  ## Events
65
71
 
66
72
  | Event | Type | Description |
@@ -328,6 +334,54 @@ The `<auro-radio-group>` supports an `optionalLabel` slot, where users can can o
328
334
  <!-- AURO-GENERATED-CONTENT:END -->
329
335
  </auro-accordion>
330
336
 
337
+ ### Reset State
338
+
339
+ Use the `reset()` method to reset the `<auro-radio-group>`'s `value` and `validity` state. Doing so will preserve all other attributes and properties.
340
+
341
+ <div class="exampleWrapper">
342
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/resetState.html) -->
343
+ <!-- The below content is automatically added from ./../apiExamples/resetState.html -->
344
+ <auro-button id="resetStateBtn">Reset</auro-button>
345
+ <br/><br/>
346
+ <auro-radio-group id="resetStateExample" required setCustomValidityValueMissing="Please select an option">
347
+ <span slot="legend">Form label goes here</span>
348
+ <auro-radio id="resetGroupRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
349
+ <auro-radio id="resetGroupRadio2" label="No" name="radioDemo" value="no"></auro-radio>
350
+ <auro-radio id="resetGroupRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
351
+ </auro-radio-group>
352
+ <!-- AURO-GENERATED-CONTENT:END -->
353
+ </div>
354
+ <auro-accordion alignRight>
355
+ <span slot="trigger">See code</span>
356
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/resetState.html) -->
357
+ <!-- The below code snippet is automatically added from ./../apiExamples/resetState.html -->
358
+
359
+ ```html
360
+ <auro-button id="resetStateBtn">Reset</auro-button>
361
+ <br/><br/>
362
+ <auro-radio-group id="resetStateExample" required setCustomValidityValueMissing="Please select an option">
363
+ <span slot="legend">Form label goes here</span>
364
+ <auro-radio id="resetGroupRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
365
+ <auro-radio id="resetGroupRadio2" label="No" name="radioDemo" value="no"></auro-radio>
366
+ <auro-radio id="resetGroupRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
367
+ </auro-radio-group>
368
+ ```
369
+ <!-- AURO-GENERATED-CONTENT:END -->
370
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/resetState.js) -->
371
+ <!-- The below code snippet is automatically added from ./../apiExamples/resetState.js -->
372
+
373
+ ```js
374
+ export function resetStateExample() {
375
+ const elem = document.querySelector('#resetStateExample');
376
+
377
+ document.querySelector('#resetStateBtn').addEventListener('click', () => {
378
+ elem.reset();
379
+ });
380
+ }
381
+ ```
382
+ <!-- AURO-GENERATED-CONTENT:END -->
383
+ </auro-accordion>
384
+
331
385
  ### Dynamic Example
332
386
 
333
387
  This example demonstrates a data drive approach to rendering `<auro-radio>` buttons.
@@ -15,6 +15,14 @@ function dynamicExample() {
15
15
  }
16
16
  }
17
17
 
18
+ function resetStateExample() {
19
+ const elem = document.querySelector('#resetStateExample');
20
+
21
+ document.querySelector('#resetStateBtn').addEventListener('click', () => {
22
+ elem.reset();
23
+ });
24
+ }
25
+
18
26
  /**
19
27
  * @license
20
28
  * Copyright 2019 Google LLC
@@ -276,6 +284,15 @@ class AuroRadio extends r {
276
284
  }));
277
285
  }
278
286
 
287
+ /**
288
+ * Resets component to initial state.
289
+ * @returns {void}
290
+ */
291
+ reset() {
292
+ this.checked = false;
293
+ this.error = false;
294
+ }
295
+
279
296
  updated(changedProperties) {
280
297
  if (changedProperties.has('checked')) {
281
298
  this.dispatchEvent(new CustomEvent('resetRadio', {
@@ -384,6 +401,30 @@ class AuroFormValidation {
384
401
  this.runtimeUtils = new AuroLibraryRuntimeUtils();
385
402
  }
386
403
 
404
+ /**
405
+ * Resets the element to its initial state.
406
+ * @private
407
+ * @param {object} elem - HTML element to reset.
408
+ * @returns {void}
409
+ */
410
+ reset(elem) {
411
+ elem.validity = undefined;
412
+ elem.value = undefined;
413
+
414
+ // Resets the second value of the datepicker in range state
415
+ if (elem.valueEnd) {
416
+ elem.valueEnd = undefined;
417
+ }
418
+
419
+ // Resets selected option of element
420
+ if (elem.optionSelected) {
421
+ elem.optionSelected = undefined;
422
+ }
423
+
424
+ // Runs validation to handle error attribute
425
+ this.validate(elem);
426
+ }
427
+
387
428
  /**
388
429
  * Determines the validity state of the element based on the common attribute restrictions (pattern).
389
430
  * @private
@@ -398,10 +439,15 @@ class AuroFormValidation {
398
439
  elem.validity = 'badInput';
399
440
  elem.setCustomValidity = elem.setCustomValidityBadInput || '';
400
441
  }
401
- } else if (elem.value && elem.value.length > 0 && elem.value.length < elem.minLength) {
442
+ }
443
+
444
+ // Length > 0 is required to prevent the error message from showing when the input is empty
445
+ if (elem.value?.length > 0 && elem.value?.length < elem.minLength) {
402
446
  elem.validity = 'tooShort';
403
447
  elem.setCustomValidity = elem.setCustomValidityTooShort || '';
404
- } else if (elem.value && elem.value.length > elem.maxLength) {
448
+ }
449
+
450
+ if (elem.value?.length > elem.maxLength) {
405
451
  elem.validity = 'tooLong';
406
452
  elem.setCustomValidity = elem.setCustomValidityTooLong || '';
407
453
  }
@@ -427,7 +473,7 @@ class AuroFormValidation {
427
473
  elem.validity = 'tooShort';
428
474
  elem.setCustomValidity = elem.setCustomValidityForType || '';
429
475
  }
430
- } else if (elem.type === 'number' || elem.type === 'numeric') { // 'numeric` is a deprecated alias for number'
476
+ } else if (elem.type === 'number') {
431
477
  if (elem.max !== undefined && Number(elem.max) < Number(elem.value)) {
432
478
  elem.validity = 'rangeOverflow';
433
479
  elem.setCustomValidity = elem.getAttribute('setCustomValidityRangeOverflow') || '';
@@ -532,14 +578,10 @@ class AuroFormValidation {
532
578
 
533
579
  if (validationShouldRun || elem.hasAttribute('error')) {
534
580
  if (elem.validity && elem.validity !== 'valid') {
535
- elem.isValid = false;
536
-
537
581
  // Use the validity message override if it is declared
538
582
  if (elem.ValidityMessageOverride) {
539
583
  elem.setCustomValidity = elem.ValidityMessageOverride;
540
584
  }
541
- } else {
542
- elem.isValid = true;
543
585
  }
544
586
 
545
587
  this.getErrorMessage(elem);
@@ -812,20 +854,20 @@ class AuroRadioGroup extends r {
812
854
  }
813
855
 
814
856
  /**
815
- * Method for a total reset of the radio element.
857
+ * Resets component to initial state.
816
858
  * @returns {void}
817
859
  */
818
860
  reset() {
819
- this.value = undefined;
861
+ // Sets first radio button to receive focus during keyboard navigation
820
862
  this.index = 0;
821
- this.optionSelected = undefined;
863
+
822
864
  const buttons = this.querySelectorAll('auro-radio, [auro-radio]');
823
865
 
824
866
  buttons.forEach((button) => {
825
- button.checked = false;
867
+ button.reset();
826
868
  });
827
869
 
828
- this.validation.validate(this);
870
+ this.validation.reset(this);
829
871
  }
830
872
 
831
873
  /**
@@ -1037,6 +1079,7 @@ function initExamples(initCount) {
1037
1079
 
1038
1080
  try {
1039
1081
  dynamicExample();
1082
+ resetStateExample();
1040
1083
  } catch (error) {
1041
1084
  if (initCount <= 20) {
1042
1085
  // setTimeout handles issue where content is sometimes loaded after the functions get called
@@ -259,6 +259,15 @@ class AuroRadio extends r {
259
259
  }));
260
260
  }
261
261
 
262
+ /**
263
+ * Resets component to initial state.
264
+ * @returns {void}
265
+ */
266
+ reset() {
267
+ this.checked = false;
268
+ this.error = false;
269
+ }
270
+
262
271
  updated(changedProperties) {
263
272
  if (changedProperties.has('checked')) {
264
273
  this.dispatchEvent(new CustomEvent('resetRadio', {
@@ -367,6 +376,30 @@ class AuroFormValidation {
367
376
  this.runtimeUtils = new AuroLibraryRuntimeUtils();
368
377
  }
369
378
 
379
+ /**
380
+ * Resets the element to its initial state.
381
+ * @private
382
+ * @param {object} elem - HTML element to reset.
383
+ * @returns {void}
384
+ */
385
+ reset(elem) {
386
+ elem.validity = undefined;
387
+ elem.value = undefined;
388
+
389
+ // Resets the second value of the datepicker in range state
390
+ if (elem.valueEnd) {
391
+ elem.valueEnd = undefined;
392
+ }
393
+
394
+ // Resets selected option of element
395
+ if (elem.optionSelected) {
396
+ elem.optionSelected = undefined;
397
+ }
398
+
399
+ // Runs validation to handle error attribute
400
+ this.validate(elem);
401
+ }
402
+
370
403
  /**
371
404
  * Determines the validity state of the element based on the common attribute restrictions (pattern).
372
405
  * @private
@@ -381,10 +414,15 @@ class AuroFormValidation {
381
414
  elem.validity = 'badInput';
382
415
  elem.setCustomValidity = elem.setCustomValidityBadInput || '';
383
416
  }
384
- } else if (elem.value && elem.value.length > 0 && elem.value.length < elem.minLength) {
417
+ }
418
+
419
+ // Length > 0 is required to prevent the error message from showing when the input is empty
420
+ if (elem.value?.length > 0 && elem.value?.length < elem.minLength) {
385
421
  elem.validity = 'tooShort';
386
422
  elem.setCustomValidity = elem.setCustomValidityTooShort || '';
387
- } else if (elem.value && elem.value.length > elem.maxLength) {
423
+ }
424
+
425
+ if (elem.value?.length > elem.maxLength) {
388
426
  elem.validity = 'tooLong';
389
427
  elem.setCustomValidity = elem.setCustomValidityTooLong || '';
390
428
  }
@@ -410,7 +448,7 @@ class AuroFormValidation {
410
448
  elem.validity = 'tooShort';
411
449
  elem.setCustomValidity = elem.setCustomValidityForType || '';
412
450
  }
413
- } else if (elem.type === 'number' || elem.type === 'numeric') { // 'numeric` is a deprecated alias for number'
451
+ } else if (elem.type === 'number') {
414
452
  if (elem.max !== undefined && Number(elem.max) < Number(elem.value)) {
415
453
  elem.validity = 'rangeOverflow';
416
454
  elem.setCustomValidity = elem.getAttribute('setCustomValidityRangeOverflow') || '';
@@ -515,14 +553,10 @@ class AuroFormValidation {
515
553
 
516
554
  if (validationShouldRun || elem.hasAttribute('error')) {
517
555
  if (elem.validity && elem.validity !== 'valid') {
518
- elem.isValid = false;
519
-
520
556
  // Use the validity message override if it is declared
521
557
  if (elem.ValidityMessageOverride) {
522
558
  elem.setCustomValidity = elem.ValidityMessageOverride;
523
559
  }
524
- } else {
525
- elem.isValid = true;
526
560
  }
527
561
 
528
562
  this.getErrorMessage(elem);
@@ -795,20 +829,20 @@ class AuroRadioGroup extends r {
795
829
  }
796
830
 
797
831
  /**
798
- * Method for a total reset of the radio element.
832
+ * Resets component to initial state.
799
833
  * @returns {void}
800
834
  */
801
835
  reset() {
802
- this.value = undefined;
836
+ // Sets first radio button to receive focus during keyboard navigation
803
837
  this.index = 0;
804
- this.optionSelected = undefined;
838
+
805
839
  const buttons = this.querySelectorAll('auro-radio, [auro-radio]');
806
840
 
807
841
  buttons.forEach((button) => {
808
- button.checked = false;
842
+ button.reset();
809
843
  });
810
844
 
811
- this.validation.validate(this);
845
+ this.validation.reset(this);
812
846
  }
813
847
 
814
848
  /**
@@ -107,7 +107,7 @@ export class AuroRadioGroup extends LitElement {
107
107
  */
108
108
  updated(changedProperties: Map<string, any>): void;
109
109
  /**
110
- * Method for a total reset of the radio element.
110
+ * Resets component to initial state.
111
111
  * @returns {void}
112
112
  */
113
113
  reset(): void;
@@ -90,6 +90,11 @@ export class AuroRadio extends LitElement {
90
90
  * @returns {void}
91
91
  */
92
92
  private handleBlur;
93
+ /**
94
+ * Resets component to initial state.
95
+ * @returns {void}
96
+ */
97
+ reset(): void;
93
98
  updated(changedProperties: any): void;
94
99
  /**
95
100
  * Method for handling content when it is invalid accessibility wise.
@@ -1 +1 @@
1
- {"version":3,"file":"auro-radio.d.ts","sourceRoot":"","sources":["../src/auro-radio.js"],"names":[],"mappings":"AAmBA;;;;;;;;;;GAUG;AAGH;IAeE,+CAMC;IAGD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2BC;IAED;;;;;;;OAOG;IACH,uBANW,MAAM,QAQhB;IA5DC,iBAAoB;IACpB,kBAAqB;IACrB,kBAAqB;IACrB,eAAkB;IAGlB;;OAEG;IACH,qBAAiD;IAqDnD;;;;;OAKG;IACH,qBAKC;IAED;;;;;OAKG;IACH,oBAOC;IAED;;;;;OAKG;IACH,oBAMC;IAED;;;;;OAKG;IACH,mBAMC;IAED,sCAcC;IAED;;;;;OAKG;IACH,gBAMC;IAED;;;;;OAKG;IACH,mBAMC;IAED,qBAWC;IALC,wBAAmD;IAQrD,+CAkCC;CACF;2BAjPgC,KAAK"}
1
+ {"version":3,"file":"auro-radio.d.ts","sourceRoot":"","sources":["../src/auro-radio.js"],"names":[],"mappings":"AAmBA;;;;;;;;;;GAUG;AAGH;IAeE,+CAMC;IAGD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2BC;IAED;;;;;;;OAOG;IACH,uBANW,MAAM,QAQhB;IA5DC,iBAAoB;IACpB,kBAAqB;IACrB,kBAAqB;IACrB,eAAkB;IAGlB;;OAEG;IACH,qBAAiD;IAqDnD;;;;;OAKG;IACH,qBAKC;IAED;;;;;OAKG;IACH,oBAOC;IAED;;;;;OAKG;IACH,oBAMC;IAED;;;;;OAKG;IACH,mBAMC;IAED;;;OAGG;IACH,SAFa,IAAI,CAKhB;IAED,sCAcC;IAED;;;;;OAKG;IACH,gBAMC;IAED;;;;;OAKG;IACH,mBAMC;IAED,qBAWC;IALC,wBAAmD;IAQrD,+CAkCC;CACF;2BA1PgC,KAAK"}
@@ -259,6 +259,15 @@ class AuroRadio extends r {
259
259
  }));
260
260
  }
261
261
 
262
+ /**
263
+ * Resets component to initial state.
264
+ * @returns {void}
265
+ */
266
+ reset() {
267
+ this.checked = false;
268
+ this.error = false;
269
+ }
270
+
262
271
  updated(changedProperties) {
263
272
  if (changedProperties.has('checked')) {
264
273
  this.dispatchEvent(new CustomEvent('resetRadio', {
@@ -367,6 +376,30 @@ class AuroFormValidation {
367
376
  this.runtimeUtils = new AuroLibraryRuntimeUtils();
368
377
  }
369
378
 
379
+ /**
380
+ * Resets the element to its initial state.
381
+ * @private
382
+ * @param {object} elem - HTML element to reset.
383
+ * @returns {void}
384
+ */
385
+ reset(elem) {
386
+ elem.validity = undefined;
387
+ elem.value = undefined;
388
+
389
+ // Resets the second value of the datepicker in range state
390
+ if (elem.valueEnd) {
391
+ elem.valueEnd = undefined;
392
+ }
393
+
394
+ // Resets selected option of element
395
+ if (elem.optionSelected) {
396
+ elem.optionSelected = undefined;
397
+ }
398
+
399
+ // Runs validation to handle error attribute
400
+ this.validate(elem);
401
+ }
402
+
370
403
  /**
371
404
  * Determines the validity state of the element based on the common attribute restrictions (pattern).
372
405
  * @private
@@ -381,10 +414,15 @@ class AuroFormValidation {
381
414
  elem.validity = 'badInput';
382
415
  elem.setCustomValidity = elem.setCustomValidityBadInput || '';
383
416
  }
384
- } else if (elem.value && elem.value.length > 0 && elem.value.length < elem.minLength) {
417
+ }
418
+
419
+ // Length > 0 is required to prevent the error message from showing when the input is empty
420
+ if (elem.value?.length > 0 && elem.value?.length < elem.minLength) {
385
421
  elem.validity = 'tooShort';
386
422
  elem.setCustomValidity = elem.setCustomValidityTooShort || '';
387
- } else if (elem.value && elem.value.length > elem.maxLength) {
423
+ }
424
+
425
+ if (elem.value?.length > elem.maxLength) {
388
426
  elem.validity = 'tooLong';
389
427
  elem.setCustomValidity = elem.setCustomValidityTooLong || '';
390
428
  }
@@ -410,7 +448,7 @@ class AuroFormValidation {
410
448
  elem.validity = 'tooShort';
411
449
  elem.setCustomValidity = elem.setCustomValidityForType || '';
412
450
  }
413
- } else if (elem.type === 'number' || elem.type === 'numeric') { // 'numeric` is a deprecated alias for number'
451
+ } else if (elem.type === 'number') {
414
452
  if (elem.max !== undefined && Number(elem.max) < Number(elem.value)) {
415
453
  elem.validity = 'rangeOverflow';
416
454
  elem.setCustomValidity = elem.getAttribute('setCustomValidityRangeOverflow') || '';
@@ -515,14 +553,10 @@ class AuroFormValidation {
515
553
 
516
554
  if (validationShouldRun || elem.hasAttribute('error')) {
517
555
  if (elem.validity && elem.validity !== 'valid') {
518
- elem.isValid = false;
519
-
520
556
  // Use the validity message override if it is declared
521
557
  if (elem.ValidityMessageOverride) {
522
558
  elem.setCustomValidity = elem.ValidityMessageOverride;
523
559
  }
524
- } else {
525
- elem.isValid = true;
526
560
  }
527
561
 
528
562
  this.getErrorMessage(elem);
@@ -795,20 +829,20 @@ class AuroRadioGroup extends r {
795
829
  }
796
830
 
797
831
  /**
798
- * Method for a total reset of the radio element.
832
+ * Resets component to initial state.
799
833
  * @returns {void}
800
834
  */
801
835
  reset() {
802
- this.value = undefined;
836
+ // Sets first radio button to receive focus during keyboard navigation
803
837
  this.index = 0;
804
- this.optionSelected = undefined;
838
+
805
839
  const buttons = this.querySelectorAll('auro-radio, [auro-radio]');
806
840
 
807
841
  buttons.forEach((button) => {
808
- button.checked = false;
842
+ button.reset();
809
843
  });
810
844
 
811
- this.validation.validate(this);
845
+ this.validation.reset(this);
812
846
  }
813
847
 
814
848
  /**
@@ -216,20 +216,20 @@ export class AuroRadioGroup extends LitElement {
216
216
  }
217
217
 
218
218
  /**
219
- * Method for a total reset of the radio element.
219
+ * Resets component to initial state.
220
220
  * @returns {void}
221
221
  */
222
222
  reset() {
223
- this.value = undefined;
223
+ // Sets first radio button to receive focus during keyboard navigation
224
224
  this.index = 0;
225
- this.optionSelected = undefined;
225
+
226
226
  const buttons = this.querySelectorAll('auro-radio, [auro-radio]');
227
227
 
228
228
  buttons.forEach((button) => {
229
- button.checked = false;
229
+ button.reset();
230
230
  });
231
231
 
232
- this.validation.validate(this);
232
+ this.validation.reset(this);
233
233
  }
234
234
 
235
235
  /**
@@ -151,6 +151,15 @@ export class AuroRadio extends LitElement {
151
151
  }));
152
152
  }
153
153
 
154
+ /**
155
+ * Resets component to initial state.
156
+ * @returns {void}
157
+ */
158
+ reset() {
159
+ this.checked = false;
160
+ this.error = false;
161
+ }
162
+
154
163
  updated(changedProperties) {
155
164
  if (changedProperties.has('checked')) {
156
165
  this.dispatchEvent(new CustomEvent('resetRadio', {