@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
@@ -1,3 +1,11 @@
1
+ function resetStateExample() {
2
+ const elem = document.querySelector('#resetStateExample');
3
+
4
+ document.querySelector('#resetStateBtn').addEventListener('click', () => {
5
+ elem.reset();
6
+ });
7
+ }
8
+
1
9
  /**
2
10
  * @license
3
11
  * Copyright 2019 Google LLC
@@ -240,6 +248,15 @@ class AuroCheckbox extends r {
240
248
  return this.svg;
241
249
  }
242
250
 
251
+ /**
252
+ * Resets component to initial state.
253
+ * @returns {void}
254
+ */
255
+ reset() {
256
+ this.checked = false;
257
+ this.error = false;
258
+ }
259
+
243
260
  firstUpdated() {
244
261
  // Add the tag name as an attribute if it is different than the component name
245
262
  this.runtimeUtils.handleComponentTagRename(this, 'auro-checkbox');
@@ -302,6 +319,30 @@ class AuroFormValidation {
302
319
  this.runtimeUtils = new AuroLibraryRuntimeUtils();
303
320
  }
304
321
 
322
+ /**
323
+ * Resets the element to its initial state.
324
+ * @private
325
+ * @param {object} elem - HTML element to reset.
326
+ * @returns {void}
327
+ */
328
+ reset(elem) {
329
+ elem.validity = undefined;
330
+ elem.value = undefined;
331
+
332
+ // Resets the second value of the datepicker in range state
333
+ if (elem.valueEnd) {
334
+ elem.valueEnd = undefined;
335
+ }
336
+
337
+ // Resets selected option of element
338
+ if (elem.optionSelected) {
339
+ elem.optionSelected = undefined;
340
+ }
341
+
342
+ // Runs validation to handle error attribute
343
+ this.validate(elem);
344
+ }
345
+
305
346
  /**
306
347
  * Determines the validity state of the element based on the common attribute restrictions (pattern).
307
348
  * @private
@@ -316,10 +357,15 @@ class AuroFormValidation {
316
357
  elem.validity = 'badInput';
317
358
  elem.setCustomValidity = elem.setCustomValidityBadInput || '';
318
359
  }
319
- } else if (elem.value && elem.value.length > 0 && elem.value.length < elem.minLength) {
360
+ }
361
+
362
+ // Length > 0 is required to prevent the error message from showing when the input is empty
363
+ if (elem.value?.length > 0 && elem.value?.length < elem.minLength) {
320
364
  elem.validity = 'tooShort';
321
365
  elem.setCustomValidity = elem.setCustomValidityTooShort || '';
322
- } else if (elem.value && elem.value.length > elem.maxLength) {
366
+ }
367
+
368
+ if (elem.value?.length > elem.maxLength) {
323
369
  elem.validity = 'tooLong';
324
370
  elem.setCustomValidity = elem.setCustomValidityTooLong || '';
325
371
  }
@@ -345,7 +391,7 @@ class AuroFormValidation {
345
391
  elem.validity = 'tooShort';
346
392
  elem.setCustomValidity = elem.setCustomValidityForType || '';
347
393
  }
348
- } else if (elem.type === 'number' || elem.type === 'numeric') { // 'numeric` is a deprecated alias for number'
394
+ } else if (elem.type === 'number') {
349
395
  if (elem.max !== undefined && Number(elem.max) < Number(elem.value)) {
350
396
  elem.validity = 'rangeOverflow';
351
397
  elem.setCustomValidity = elem.getAttribute('setCustomValidityRangeOverflow') || '';
@@ -450,14 +496,10 @@ class AuroFormValidation {
450
496
 
451
497
  if (validationShouldRun || elem.hasAttribute('error')) {
452
498
  if (elem.validity && elem.validity !== 'valid') {
453
- elem.isValid = false;
454
-
455
499
  // Use the validity message override if it is declared
456
500
  if (elem.ValidityMessageOverride) {
457
501
  elem.setCustomValidity = elem.ValidityMessageOverride;
458
502
  }
459
- } else {
460
- elem.isValid = true;
461
503
  }
462
504
 
463
505
  this.getErrorMessage(elem);
@@ -732,7 +774,7 @@ class AuroCheckboxGroup extends r {
732
774
  handlePreselectedItems() {
733
775
  let preSelectedValues = false;
734
776
 
735
- this.items.forEach((item) => {
777
+ this.checkboxes.forEach((item) => {
736
778
  if (item.hasAttribute('checked') && this.value === undefined) {
737
779
  preSelectedValues = true;
738
780
  }
@@ -743,7 +785,7 @@ class AuroCheckboxGroup extends r {
743
785
  this.value = [];
744
786
  }
745
787
 
746
- this.items.forEach((item) => {
788
+ this.checkboxes.forEach((item) => {
747
789
  this.handleValueUpdate(item.getAttribute('value'), Boolean(item.hasAttribute('checked')));
748
790
  });
749
791
  }
@@ -758,13 +800,25 @@ class AuroCheckboxGroup extends r {
758
800
  const groupTagName = this.tagName.toLowerCase();
759
801
  const checkboxTagName = groupTagName.substring(0, groupTagName.indexOf('-group'));
760
802
 
761
- this.items = Array.from(this.querySelectorAll(checkboxTagName));
803
+ this.checkboxes = Array.from(this.querySelectorAll(checkboxTagName));
762
804
 
763
805
  this.handlePreselectedItems();
764
806
 
765
807
  this.validation.validate(this);
766
808
  }
767
809
 
810
+ /**
811
+ * Resets component to initial state.
812
+ * @returns {void}
813
+ */
814
+ reset() {
815
+ this.checkboxes.forEach((checkbox) => {
816
+ checkbox.reset();
817
+ });
818
+
819
+ this.validation.reset(this);
820
+ }
821
+
768
822
  /**
769
823
  * LitElement lifecycle method. Called after the DOM has been updated.
770
824
  * @param {Map<string, any>} changedProperties - Keys are the names of changed properties, values are the corresponding previous values.
@@ -772,7 +826,7 @@ class AuroCheckboxGroup extends r {
772
826
  */
773
827
  updated(changedProperties) {
774
828
  if (changedProperties.has('disabled')) {
775
- this.items.forEach((el) => {
829
+ this.checkboxes.forEach((el) => {
776
830
  if (this.disabled) {
777
831
  el.setAttribute('disabled', true);
778
832
  } else {
@@ -782,7 +836,7 @@ class AuroCheckboxGroup extends r {
782
836
  }
783
837
 
784
838
  if (changedProperties.has('validity')) {
785
- this.items.forEach((el) => {
839
+ this.checkboxes.forEach((el) => {
786
840
  if (this.validity && this.validity !== 'valid') {
787
841
  el.setAttribute('error', true);
788
842
  } else {
@@ -812,7 +866,7 @@ class AuroCheckboxGroup extends r {
812
866
 
813
867
  render() {
814
868
  const groupClasses = {
815
- 'displayFlex': this.horizontal && this.items.length <= this.maxNumber
869
+ 'displayFlex': this.horizontal && this.checkboxes.length <= this.maxNumber
816
870
  };
817
871
 
818
872
  return x`
@@ -843,3 +897,20 @@ AuroCheckboxGroup.register(); // registering to `auro-checkbox-group`
843
897
 
844
898
  AuroCheckbox.register('custom-checkbox');
845
899
  AuroCheckboxGroup.register('custom-checkbox-group');
900
+
901
+ function initExamples(initCount) {
902
+ initCount = initCount || 0;
903
+
904
+ try {
905
+ resetStateExample();
906
+ } catch (error) {
907
+ if (initCount <= 20) {
908
+ // setTimeout handles issue where content is sometimes loaded after the functions get called
909
+ setTimeout(() => {
910
+ initExamples(initCount + 1);
911
+ }, 100);
912
+ }
913
+ }
914
+ }
915
+
916
+ export { initExamples };
@@ -240,6 +240,15 @@ class AuroCheckbox extends r {
240
240
  return this.svg;
241
241
  }
242
242
 
243
+ /**
244
+ * Resets component to initial state.
245
+ * @returns {void}
246
+ */
247
+ reset() {
248
+ this.checked = false;
249
+ this.error = false;
250
+ }
251
+
243
252
  firstUpdated() {
244
253
  // Add the tag name as an attribute if it is different than the component name
245
254
  this.runtimeUtils.handleComponentTagRename(this, 'auro-checkbox');
@@ -302,6 +311,30 @@ class AuroFormValidation {
302
311
  this.runtimeUtils = new AuroLibraryRuntimeUtils();
303
312
  }
304
313
 
314
+ /**
315
+ * Resets the element to its initial state.
316
+ * @private
317
+ * @param {object} elem - HTML element to reset.
318
+ * @returns {void}
319
+ */
320
+ reset(elem) {
321
+ elem.validity = undefined;
322
+ elem.value = undefined;
323
+
324
+ // Resets the second value of the datepicker in range state
325
+ if (elem.valueEnd) {
326
+ elem.valueEnd = undefined;
327
+ }
328
+
329
+ // Resets selected option of element
330
+ if (elem.optionSelected) {
331
+ elem.optionSelected = undefined;
332
+ }
333
+
334
+ // Runs validation to handle error attribute
335
+ this.validate(elem);
336
+ }
337
+
305
338
  /**
306
339
  * Determines the validity state of the element based on the common attribute restrictions (pattern).
307
340
  * @private
@@ -316,10 +349,15 @@ class AuroFormValidation {
316
349
  elem.validity = 'badInput';
317
350
  elem.setCustomValidity = elem.setCustomValidityBadInput || '';
318
351
  }
319
- } else if (elem.value && elem.value.length > 0 && elem.value.length < elem.minLength) {
352
+ }
353
+
354
+ // Length > 0 is required to prevent the error message from showing when the input is empty
355
+ if (elem.value?.length > 0 && elem.value?.length < elem.minLength) {
320
356
  elem.validity = 'tooShort';
321
357
  elem.setCustomValidity = elem.setCustomValidityTooShort || '';
322
- } else if (elem.value && elem.value.length > elem.maxLength) {
358
+ }
359
+
360
+ if (elem.value?.length > elem.maxLength) {
323
361
  elem.validity = 'tooLong';
324
362
  elem.setCustomValidity = elem.setCustomValidityTooLong || '';
325
363
  }
@@ -345,7 +383,7 @@ class AuroFormValidation {
345
383
  elem.validity = 'tooShort';
346
384
  elem.setCustomValidity = elem.setCustomValidityForType || '';
347
385
  }
348
- } else if (elem.type === 'number' || elem.type === 'numeric') { // 'numeric` is a deprecated alias for number'
386
+ } else if (elem.type === 'number') {
349
387
  if (elem.max !== undefined && Number(elem.max) < Number(elem.value)) {
350
388
  elem.validity = 'rangeOverflow';
351
389
  elem.setCustomValidity = elem.getAttribute('setCustomValidityRangeOverflow') || '';
@@ -450,14 +488,10 @@ class AuroFormValidation {
450
488
 
451
489
  if (validationShouldRun || elem.hasAttribute('error')) {
452
490
  if (elem.validity && elem.validity !== 'valid') {
453
- elem.isValid = false;
454
-
455
491
  // Use the validity message override if it is declared
456
492
  if (elem.ValidityMessageOverride) {
457
493
  elem.setCustomValidity = elem.ValidityMessageOverride;
458
494
  }
459
- } else {
460
- elem.isValid = true;
461
495
  }
462
496
 
463
497
  this.getErrorMessage(elem);
@@ -732,7 +766,7 @@ class AuroCheckboxGroup extends r {
732
766
  handlePreselectedItems() {
733
767
  let preSelectedValues = false;
734
768
 
735
- this.items.forEach((item) => {
769
+ this.checkboxes.forEach((item) => {
736
770
  if (item.hasAttribute('checked') && this.value === undefined) {
737
771
  preSelectedValues = true;
738
772
  }
@@ -743,7 +777,7 @@ class AuroCheckboxGroup extends r {
743
777
  this.value = [];
744
778
  }
745
779
 
746
- this.items.forEach((item) => {
780
+ this.checkboxes.forEach((item) => {
747
781
  this.handleValueUpdate(item.getAttribute('value'), Boolean(item.hasAttribute('checked')));
748
782
  });
749
783
  }
@@ -758,13 +792,25 @@ class AuroCheckboxGroup extends r {
758
792
  const groupTagName = this.tagName.toLowerCase();
759
793
  const checkboxTagName = groupTagName.substring(0, groupTagName.indexOf('-group'));
760
794
 
761
- this.items = Array.from(this.querySelectorAll(checkboxTagName));
795
+ this.checkboxes = Array.from(this.querySelectorAll(checkboxTagName));
762
796
 
763
797
  this.handlePreselectedItems();
764
798
 
765
799
  this.validation.validate(this);
766
800
  }
767
801
 
802
+ /**
803
+ * Resets component to initial state.
804
+ * @returns {void}
805
+ */
806
+ reset() {
807
+ this.checkboxes.forEach((checkbox) => {
808
+ checkbox.reset();
809
+ });
810
+
811
+ this.validation.reset(this);
812
+ }
813
+
768
814
  /**
769
815
  * LitElement lifecycle method. Called after the DOM has been updated.
770
816
  * @param {Map<string, any>} changedProperties - Keys are the names of changed properties, values are the corresponding previous values.
@@ -772,7 +818,7 @@ class AuroCheckboxGroup extends r {
772
818
  */
773
819
  updated(changedProperties) {
774
820
  if (changedProperties.has('disabled')) {
775
- this.items.forEach((el) => {
821
+ this.checkboxes.forEach((el) => {
776
822
  if (this.disabled) {
777
823
  el.setAttribute('disabled', true);
778
824
  } else {
@@ -782,7 +828,7 @@ class AuroCheckboxGroup extends r {
782
828
  }
783
829
 
784
830
  if (changedProperties.has('validity')) {
785
- this.items.forEach((el) => {
831
+ this.checkboxes.forEach((el) => {
786
832
  if (this.validity && this.validity !== 'valid') {
787
833
  el.setAttribute('error', true);
788
834
  } else {
@@ -812,7 +858,7 @@ class AuroCheckboxGroup extends r {
812
858
 
813
859
  render() {
814
860
  const groupClasses = {
815
- 'displayFlex': this.horizontal && this.items.length <= this.maxNumber
861
+ 'displayFlex': this.horizontal && this.checkboxes.length <= this.maxNumber
816
862
  };
817
863
 
818
864
  return x`
@@ -106,7 +106,12 @@ export class AuroCheckboxGroup extends LitElement {
106
106
  * @returns {void}
107
107
  */
108
108
  private handleItems;
109
- items: Element[];
109
+ checkboxes: Element[];
110
+ /**
111
+ * Resets component to initial state.
112
+ * @returns {void}
113
+ */
114
+ reset(): void;
110
115
  /**
111
116
  * LitElement lifecycle method. Called after the DOM has been updated.
112
117
  * @param {Map<string, any>} changedProperties - Keys are the names of changed properties, values are the corresponding previous values.
@@ -1 +1 @@
1
- {"version":3,"file":"auro-checkbox-group.d.ts","sourceRoot":"","sources":["../src/auro-checkbox-group.js"],"names":[],"mappings":"AAkBA;;;;;;;;;;;;;;;GAeG;AAEH;IA+BE,+CAMC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAuCC;IAED;;;;;;;OAOG;IACH,uBANW,MAAM,QAQhB;IAtFC,cAAyB;IACzB,aAAsB;IACtB,cAAyB;IACzB,kBAAqB;IACrB,oBAAuB;IAEvB;;OAEG;IACH,cAAc;IAEd;;OAEG;IACH,kBAAkB;IAElB;;OAEG;IACH,mBAA0C;IAE1C;;OAEG;IACH,qBAAiD;IAqEnD;;;;;;OAMG;IACH,0BAoBC;IAED,qBA2CC;IAjBG,qBAAuB;IAmB3B;;;;OAIG;IACH,+BAkBC;IAED;;;;OAIG;IACH,oBASC;IALC,iBAA+D;IAOjE;;;;OAIG;IACH,2BAHW,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,GACd,IAAI,CAwChB;IAED,+CAyBC;CACF;2BAvTgC,KAAK"}
1
+ {"version":3,"file":"auro-checkbox-group.d.ts","sourceRoot":"","sources":["../src/auro-checkbox-group.js"],"names":[],"mappings":"AAkBA;;;;;;;;;;;;;;;GAeG;AAEH;IA+BE,+CAMC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAuCC;IAED;;;;;;;OAOG;IACH,uBANW,MAAM,QAQhB;IAtFC,cAAyB;IACzB,aAAsB;IACtB,cAAyB;IACzB,kBAAqB;IACrB,oBAAuB;IAEvB;;OAEG;IACH,cAAc;IAEd;;OAEG;IACH,kBAAkB;IAElB;;OAEG;IACH,mBAA0C;IAE1C;;OAEG;IACH,qBAAiD;IAqEnD;;;;;;OAMG;IACH,0BAoBC;IAED,qBA2CC;IAjBG,qBAAuB;IAmB3B;;;;OAIG;IACH,+BAkBC;IAED;;;;OAIG;IACH,oBASC;IALC,sBAAoE;IAOtE;;;OAGG;IACH,SAFa,IAAI,CAQhB;IAED;;;;OAIG;IACH,2BAHW,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,GACd,IAAI,CAwChB;IAED,+CAyBC;CACF;2BAnUgC,KAAK"}
@@ -68,6 +68,11 @@ export class AuroCheckbox extends LitElement {
68
68
  private generateIconHtml;
69
69
  dom: Document;
70
70
  svg: ChildNode;
71
+ /**
72
+ * Resets component to initial state.
73
+ * @returns {void}
74
+ */
75
+ reset(): void;
71
76
  firstUpdated(): void;
72
77
  render(): import("lit-html").TemplateResult<1>;
73
78
  }
@@ -1 +1 @@
1
- {"version":3,"file":"auro-checkbox.d.ts","sourceRoot":"","sources":["../src/auro-checkbox.js"],"names":[],"mappings":"AAiBA;;;;;;;;;;;;GAYG;AAGH;IAaE,+CAMC;IAGD;;;;;;;;;;;;;;;;;;;;;;MAkBC;IAED;;;;;;;OAOG;IACH,uBANW,MAAM,QAQhB;IAjDC,iBAAoB;IACpB,kBAAqB;IACrB,eAAkB;IAElB;;OAEG;IACH,qBAAiD;IA8CnD,+BAKC;IAED,8BAQC;IAED;;;;OAIG;IACH,sBAMC;IAED;;;;OAIG;IACH,yBAOC;IANC,cAAoE;IACpE,eAAmC;IAOrC,qBAmBC;IAGD,+CA4BC;CACF;2BAlLgC,KAAK"}
1
+ {"version":3,"file":"auro-checkbox.d.ts","sourceRoot":"","sources":["../src/auro-checkbox.js"],"names":[],"mappings":"AAiBA;;;;;;;;;;;;GAYG;AAGH;IAaE,+CAMC;IAGD;;;;;;;;;;;;;;;;;;;;;;MAkBC;IAED;;;;;;;OAOG;IACH,uBANW,MAAM,QAQhB;IAjDC,iBAAoB;IACpB,kBAAqB;IACrB,eAAkB;IAElB;;OAEG;IACH,qBAAiD;IA8CnD,+BAKC;IAED,8BAQC;IAED;;;;OAIG;IACH,sBAMC;IAED;;;;OAIG;IACH,yBAOC;IANC,cAAoE;IACpE,eAAmC;IAOrC;;;OAGG;IACH,SAFa,IAAI,CAKhB;IAED,qBAmBC;IAGD,+CA4BC;CACF;2BA3LgC,KAAK"}
@@ -240,6 +240,15 @@ class AuroCheckbox extends r {
240
240
  return this.svg;
241
241
  }
242
242
 
243
+ /**
244
+ * Resets component to initial state.
245
+ * @returns {void}
246
+ */
247
+ reset() {
248
+ this.checked = false;
249
+ this.error = false;
250
+ }
251
+
243
252
  firstUpdated() {
244
253
  // Add the tag name as an attribute if it is different than the component name
245
254
  this.runtimeUtils.handleComponentTagRename(this, 'auro-checkbox');
@@ -302,6 +311,30 @@ class AuroFormValidation {
302
311
  this.runtimeUtils = new AuroLibraryRuntimeUtils();
303
312
  }
304
313
 
314
+ /**
315
+ * Resets the element to its initial state.
316
+ * @private
317
+ * @param {object} elem - HTML element to reset.
318
+ * @returns {void}
319
+ */
320
+ reset(elem) {
321
+ elem.validity = undefined;
322
+ elem.value = undefined;
323
+
324
+ // Resets the second value of the datepicker in range state
325
+ if (elem.valueEnd) {
326
+ elem.valueEnd = undefined;
327
+ }
328
+
329
+ // Resets selected option of element
330
+ if (elem.optionSelected) {
331
+ elem.optionSelected = undefined;
332
+ }
333
+
334
+ // Runs validation to handle error attribute
335
+ this.validate(elem);
336
+ }
337
+
305
338
  /**
306
339
  * Determines the validity state of the element based on the common attribute restrictions (pattern).
307
340
  * @private
@@ -316,10 +349,15 @@ class AuroFormValidation {
316
349
  elem.validity = 'badInput';
317
350
  elem.setCustomValidity = elem.setCustomValidityBadInput || '';
318
351
  }
319
- } else if (elem.value && elem.value.length > 0 && elem.value.length < elem.minLength) {
352
+ }
353
+
354
+ // Length > 0 is required to prevent the error message from showing when the input is empty
355
+ if (elem.value?.length > 0 && elem.value?.length < elem.minLength) {
320
356
  elem.validity = 'tooShort';
321
357
  elem.setCustomValidity = elem.setCustomValidityTooShort || '';
322
- } else if (elem.value && elem.value.length > elem.maxLength) {
358
+ }
359
+
360
+ if (elem.value?.length > elem.maxLength) {
323
361
  elem.validity = 'tooLong';
324
362
  elem.setCustomValidity = elem.setCustomValidityTooLong || '';
325
363
  }
@@ -345,7 +383,7 @@ class AuroFormValidation {
345
383
  elem.validity = 'tooShort';
346
384
  elem.setCustomValidity = elem.setCustomValidityForType || '';
347
385
  }
348
- } else if (elem.type === 'number' || elem.type === 'numeric') { // 'numeric` is a deprecated alias for number'
386
+ } else if (elem.type === 'number') {
349
387
  if (elem.max !== undefined && Number(elem.max) < Number(elem.value)) {
350
388
  elem.validity = 'rangeOverflow';
351
389
  elem.setCustomValidity = elem.getAttribute('setCustomValidityRangeOverflow') || '';
@@ -450,14 +488,10 @@ class AuroFormValidation {
450
488
 
451
489
  if (validationShouldRun || elem.hasAttribute('error')) {
452
490
  if (elem.validity && elem.validity !== 'valid') {
453
- elem.isValid = false;
454
-
455
491
  // Use the validity message override if it is declared
456
492
  if (elem.ValidityMessageOverride) {
457
493
  elem.setCustomValidity = elem.ValidityMessageOverride;
458
494
  }
459
- } else {
460
- elem.isValid = true;
461
495
  }
462
496
 
463
497
  this.getErrorMessage(elem);
@@ -732,7 +766,7 @@ class AuroCheckboxGroup extends r {
732
766
  handlePreselectedItems() {
733
767
  let preSelectedValues = false;
734
768
 
735
- this.items.forEach((item) => {
769
+ this.checkboxes.forEach((item) => {
736
770
  if (item.hasAttribute('checked') && this.value === undefined) {
737
771
  preSelectedValues = true;
738
772
  }
@@ -743,7 +777,7 @@ class AuroCheckboxGroup extends r {
743
777
  this.value = [];
744
778
  }
745
779
 
746
- this.items.forEach((item) => {
780
+ this.checkboxes.forEach((item) => {
747
781
  this.handleValueUpdate(item.getAttribute('value'), Boolean(item.hasAttribute('checked')));
748
782
  });
749
783
  }
@@ -758,13 +792,25 @@ class AuroCheckboxGroup extends r {
758
792
  const groupTagName = this.tagName.toLowerCase();
759
793
  const checkboxTagName = groupTagName.substring(0, groupTagName.indexOf('-group'));
760
794
 
761
- this.items = Array.from(this.querySelectorAll(checkboxTagName));
795
+ this.checkboxes = Array.from(this.querySelectorAll(checkboxTagName));
762
796
 
763
797
  this.handlePreselectedItems();
764
798
 
765
799
  this.validation.validate(this);
766
800
  }
767
801
 
802
+ /**
803
+ * Resets component to initial state.
804
+ * @returns {void}
805
+ */
806
+ reset() {
807
+ this.checkboxes.forEach((checkbox) => {
808
+ checkbox.reset();
809
+ });
810
+
811
+ this.validation.reset(this);
812
+ }
813
+
768
814
  /**
769
815
  * LitElement lifecycle method. Called after the DOM has been updated.
770
816
  * @param {Map<string, any>} changedProperties - Keys are the names of changed properties, values are the corresponding previous values.
@@ -772,7 +818,7 @@ class AuroCheckboxGroup extends r {
772
818
  */
773
819
  updated(changedProperties) {
774
820
  if (changedProperties.has('disabled')) {
775
- this.items.forEach((el) => {
821
+ this.checkboxes.forEach((el) => {
776
822
  if (this.disabled) {
777
823
  el.setAttribute('disabled', true);
778
824
  } else {
@@ -782,7 +828,7 @@ class AuroCheckboxGroup extends r {
782
828
  }
783
829
 
784
830
  if (changedProperties.has('validity')) {
785
- this.items.forEach((el) => {
831
+ this.checkboxes.forEach((el) => {
786
832
  if (this.validity && this.validity !== 'valid') {
787
833
  el.setAttribute('error', true);
788
834
  } else {
@@ -812,7 +858,7 @@ class AuroCheckboxGroup extends r {
812
858
 
813
859
  render() {
814
860
  const groupClasses = {
815
- 'displayFlex': this.horizontal && this.items.length <= this.maxNumber
861
+ 'displayFlex': this.horizontal && this.checkboxes.length <= this.maxNumber
816
862
  };
817
863
 
818
864
  return x`
@@ -212,7 +212,7 @@ export class AuroCheckboxGroup extends LitElement {
212
212
  handlePreselectedItems() {
213
213
  let preSelectedValues = false;
214
214
 
215
- this.items.forEach((item) => {
215
+ this.checkboxes.forEach((item) => {
216
216
  if (item.hasAttribute('checked') && this.value === undefined) {
217
217
  preSelectedValues = true;
218
218
  }
@@ -223,7 +223,7 @@ export class AuroCheckboxGroup extends LitElement {
223
223
  this.value = [];
224
224
  }
225
225
 
226
- this.items.forEach((item) => {
226
+ this.checkboxes.forEach((item) => {
227
227
  this.handleValueUpdate(item.getAttribute('value'), Boolean(item.hasAttribute('checked')));
228
228
  });
229
229
  }
@@ -238,13 +238,25 @@ export class AuroCheckboxGroup extends LitElement {
238
238
  const groupTagName = this.tagName.toLowerCase();
239
239
  const checkboxTagName = groupTagName.substring(0, groupTagName.indexOf('-group'));
240
240
 
241
- this.items = Array.from(this.querySelectorAll(checkboxTagName));
241
+ this.checkboxes = Array.from(this.querySelectorAll(checkboxTagName));
242
242
 
243
243
  this.handlePreselectedItems();
244
244
 
245
245
  this.validation.validate(this);
246
246
  }
247
247
 
248
+ /**
249
+ * Resets component to initial state.
250
+ * @returns {void}
251
+ */
252
+ reset() {
253
+ this.checkboxes.forEach((checkbox) => {
254
+ checkbox.reset();
255
+ });
256
+
257
+ this.validation.reset(this);
258
+ }
259
+
248
260
  /**
249
261
  * LitElement lifecycle method. Called after the DOM has been updated.
250
262
  * @param {Map<string, any>} changedProperties - Keys are the names of changed properties, values are the corresponding previous values.
@@ -252,7 +264,7 @@ export class AuroCheckboxGroup extends LitElement {
252
264
  */
253
265
  updated(changedProperties) {
254
266
  if (changedProperties.has('disabled')) {
255
- this.items.forEach((el) => {
267
+ this.checkboxes.forEach((el) => {
256
268
  if (this.disabled) {
257
269
  el.setAttribute('disabled', true);
258
270
  } else {
@@ -262,7 +274,7 @@ export class AuroCheckboxGroup extends LitElement {
262
274
  }
263
275
 
264
276
  if (changedProperties.has('validity')) {
265
- this.items.forEach((el) => {
277
+ this.checkboxes.forEach((el) => {
266
278
  if (this.validity && this.validity !== 'valid') {
267
279
  el.setAttribute('error', true);
268
280
  } else {
@@ -292,7 +304,7 @@ export class AuroCheckboxGroup extends LitElement {
292
304
 
293
305
  render() {
294
306
  const groupClasses = {
295
- 'displayFlex': this.horizontal && this.items.length <= this.maxNumber
307
+ 'displayFlex': this.horizontal && this.checkboxes.length <= this.maxNumber
296
308
  };
297
309
 
298
310
  return html`
@@ -130,6 +130,15 @@ export class AuroCheckbox extends LitElement {
130
130
  return this.svg;
131
131
  }
132
132
 
133
+ /**
134
+ * Resets component to initial state.
135
+ * @returns {void}
136
+ */
137
+ reset() {
138
+ this.checked = false;
139
+ this.error = false;
140
+ }
141
+
133
142
  firstUpdated() {
134
143
  // Add the tag name as an attribute if it is different than the component name
135
144
  this.runtimeUtils.handleComponentTagRename(this, 'auro-checkbox');
@@ -64,13 +64,13 @@ More info and automated migrator: https://sass-lang.com/d/import
64
64
 
65
65
  
66
66
  ./src/index.js → dist...
67
- created dist in 775ms
67
+ created dist in 915ms
68
68
  
69
69
  ./demo/index.js → ./demo/...
70
- created ./demo/ in 644ms
70
+ created ./demo/ in 682ms
71
71
  
72
72
  ./demo/api.js → ./demo/...
73
- created ./demo/ in 578ms
73
+ created ./demo/ in 502ms
74
74
 
75
75
  > @auro-formkit/auro-combobox@2.1.4 build:docs
76
76
  > wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component combobox
@@ -130,6 +130,7 @@ Retrieving latest "/home/runner/work/auro-formkit/auro-formkit/components/combob
130
130
  ⁕ FILE:src=./../apiExamples/value.html
131
131
  ⁕ FILE:src=./../apiExamples/typeMonthDayYear.html
132
132
  ⁕ FILE:src=./../apiExamples/focus.html
133
+ ⁕ FILE:src=./../apiExamples/resetState.html
133
134
  ⁕ FILE:src=./../apiExamples/helpText.html
134
135
  ⁕ FILE:src=./../apiExamples/loading.html
135
136
  ⁕ FILE:src=./../apiExamples/inDialog.html
@@ -147,6 +148,8 @@ Retrieving latest "/home/runner/work/auro-formkit/auro-formkit/components/combob
147
148
  ⁕ CODE:src=./../apiExamples/typeMonthDayYear.html
148
149
  ⁕ CODE:src=./../apiExamples/focus.js
149
150
  ⁕ CODE:src=./../apiExamples/focus.html
151
+ ⁕ CODE:src=./../apiExamples/resetState.html
152
+ ⁕ CODE:src=./../apiExamples/resetState.js
150
153
  ⁕ CODE:src=./../apiExamples/helpText.html
151
154
  ⁕ CODE:src=./../apiExamples/loading.js
152
155
  ⁕ CODE:src=./../apiExamples/loading.html
@@ -3,8 +3,9 @@
3
3
  import { dynamicMenuExample } from '../apiExamples/dynamicMenu';
4
4
  import { valueExample } from '../apiExamples/value';
5
5
  import { focusExample } from '../apiExamples/focus';
6
- import { inDialogExample } from '../apiExamples/inDialog.js';
7
- import { auroMenuLoadingExample } from '../apiExamples/loading.js';
6
+ import { inDialogExample } from '../apiExamples/inDialog';
7
+ import { resetStateExample } from '../apiExamples/resetState';
8
+ import { auroMenuLoadingExample } from '../apiExamples/loading';
8
9
 
9
10
 
10
11
  import { AuroCombobox } from '../src/auro-combobox.js';
@@ -21,6 +22,7 @@ export function initExamples(initCount) {
21
22
  valueExample();
22
23
  focusExample();
23
24
  inDialogExample();
25
+ resetStateExample();
24
26
  auroMenuLoadingExample();
25
27
  } catch (err) {
26
28
  if (initCount <= 20) {