@riverty/web-components 6.3.0 → 6.3.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 (397) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
  3. package/dist/cjs/focusable-Oll_rmtP.js +28 -0
  4. package/dist/cjs/formData-B2DZyLxP.js +44 -0
  5. package/dist/cjs/index-BnETQtSf.js +1834 -0
  6. package/dist/cjs/index.cjs.js +37 -0
  7. package/dist/cjs/loader.cjs.js +13 -0
  8. package/dist/cjs/r-accordion-panel.cjs.entry.js +24 -0
  9. package/dist/cjs/r-accordion-section.cjs.entry.js +125 -0
  10. package/dist/cjs/r-accordion-trigger.cjs.entry.js +93 -0
  11. package/dist/cjs/r-accordion.cjs.entry.js +20 -0
  12. package/dist/cjs/r-alert.cjs.entry.js +146 -0
  13. package/dist/cjs/r-badge.cjs.entry.js +41 -0
  14. package/dist/cjs/r-button.cjs.entry.js +149 -0
  15. package/dist/cjs/r-checkbox-group.cjs.entry.js +237 -0
  16. package/dist/cjs/r-checkbox.cjs.entry.js +274 -0
  17. package/dist/cjs/r-design-system-devtools.cjs.entry.js +31 -0
  18. package/dist/cjs/r-dialog.cjs.entry.js +107 -0
  19. package/dist/cjs/r-hint_2.cjs.entry.js +50 -0
  20. package/dist/cjs/r-icon-button_2.cjs.entry.js +492 -0
  21. package/dist/cjs/r-icon.cjs.entry.js +284 -0
  22. package/dist/cjs/r-illustration.cjs.entry.js +396 -0
  23. package/dist/cjs/r-input-code.cjs.entry.js +437 -0
  24. package/dist/cjs/r-input-date.cjs.entry.js +524 -0
  25. package/dist/cjs/r-input-password.cjs.entry.js +270 -0
  26. package/dist/cjs/r-input-phone-number.cjs.entry.js +2525 -0
  27. package/dist/cjs/r-input.cjs.entry.js +618 -0
  28. package/dist/cjs/r-list-item.cjs.entry.js +109 -0
  29. package/dist/cjs/r-pagination.cjs.entry.js +320 -0
  30. package/dist/cjs/r-panel.cjs.entry.js +184 -0
  31. package/dist/cjs/r-popover-action.cjs.entry.js +80 -0
  32. package/dist/cjs/r-popover-content.cjs.entry.js +62 -0
  33. package/dist/cjs/r-popover-headline.cjs.entry.js +28 -0
  34. package/dist/cjs/r-popover-trigger.cjs.entry.js +70 -0
  35. package/dist/cjs/r-popover.cjs.entry.js +347 -0
  36. package/dist/cjs/r-progress-bar.cjs.entry.js +25 -0
  37. package/dist/cjs/r-radio-button-description.cjs.entry.js +18 -0
  38. package/dist/cjs/r-radio-button-leading.cjs.entry.js +18 -0
  39. package/dist/cjs/r-radio-button-title.cjs.entry.js +18 -0
  40. package/dist/cjs/r-radio-button-trailing.cjs.entry.js +18 -0
  41. package/dist/cjs/r-radio-button.cjs.entry.js +139 -0
  42. package/dist/cjs/r-radio-group.cjs.entry.js +428 -0
  43. package/dist/cjs/r-select-option.cjs.entry.js +130 -0
  44. package/dist/cjs/r-select.cjs.entry.js +1107 -0
  45. package/dist/cjs/r-skip-link.cjs.entry.js +19 -0
  46. package/dist/cjs/r-stepper-item.cjs.entry.js +42 -0
  47. package/dist/cjs/r-stepper.cjs.entry.js +99 -0
  48. package/dist/cjs/r-tab-panel.cjs.entry.js +26 -0
  49. package/dist/cjs/r-tab.cjs.entry.js +62 -0
  50. package/dist/cjs/r-tabs-list.cjs.entry.js +175 -0
  51. package/dist/cjs/r-tabs.cjs.entry.js +277 -0
  52. package/dist/cjs/r-textarea.cjs.entry.js +270 -0
  53. package/dist/cjs/r-toast-group.cjs.entry.js +46 -0
  54. package/dist/cjs/r-toast.cjs.entry.js +314 -0
  55. package/dist/cjs/style-observer-D9zSP9wP.js +1118 -0
  56. package/dist/cjs/theming-NqxjhVJS.js +109 -0
  57. package/dist/cjs/web-components.cjs.js +25 -0
  58. package/dist/collection/collection-manifest.json +60 -0
  59. package/dist/collection/components/accordion/accordion.css +24 -0
  60. package/dist/collection/components/accordion/accordion.js +90 -0
  61. package/dist/collection/components/accordion/exports.js +1 -0
  62. package/dist/collection/components/accordion-panel/accordion-panel.css +50 -0
  63. package/dist/collection/components/accordion-panel/accordion-panel.js +86 -0
  64. package/dist/collection/components/accordion-section/accordion-section.css +27 -0
  65. package/dist/collection/components/accordion-section/accordion-section.js +235 -0
  66. package/dist/collection/components/accordion-trigger/accordion-trigger.css +93 -0
  67. package/dist/collection/components/accordion-trigger/accordion-trigger.js +220 -0
  68. package/dist/collection/components/alert/alert.css +120 -0
  69. package/dist/collection/components/alert/alert.js +526 -0
  70. package/dist/collection/components/alert/exports.js +2 -0
  71. package/dist/collection/components/badge/badge.css +62 -0
  72. package/dist/collection/components/badge/badge.js +124 -0
  73. package/dist/collection/components/badge/exports.js +1 -0
  74. package/dist/collection/components/button/button.css +180 -0
  75. package/dist/collection/components/button/button.js +510 -0
  76. package/dist/collection/components/button/exports.js +5 -0
  77. package/dist/collection/components/checkbox/checkbox.css +116 -0
  78. package/dist/collection/components/checkbox/checkbox.js +803 -0
  79. package/dist/collection/components/checkbox-group/checkbox-group.css +48 -0
  80. package/dist/collection/components/checkbox-group/checkbox-group.js +744 -0
  81. package/dist/collection/components/design-system-devtools/design-system-devtools.js +59 -0
  82. package/dist/collection/components/dialog/dialog.css +125 -0
  83. package/dist/collection/components/dialog/dialog.js +345 -0
  84. package/dist/collection/components/dialog/exports.js +9 -0
  85. package/dist/collection/components/hint/exports.js +1 -0
  86. package/dist/collection/components/hint/hint.css +63 -0
  87. package/dist/collection/components/hint/hint.js +114 -0
  88. package/dist/collection/components/icon/all-kit.js +2 -0
  89. package/dist/collection/components/icon/data.js +90 -0
  90. package/dist/collection/components/icon/exports.js +7 -0
  91. package/dist/collection/components/icon/icon.css +105 -0
  92. package/dist/collection/components/icon/icon.js +379 -0
  93. package/dist/collection/components/icon/riverty-kit.js +2 -0
  94. package/dist/collection/components/icon-button/icon-button.css +105 -0
  95. package/dist/collection/components/icon-button/icon-button.js +343 -0
  96. package/dist/collection/components/illustration/data.js +112 -0
  97. package/dist/collection/components/illustration/exports.js +3 -0
  98. package/dist/collection/components/illustration/illustration.css +52 -0
  99. package/dist/collection/components/illustration/illustration.js +540 -0
  100. package/dist/collection/components/illustration/illustrations-ui-kit.js +2 -0
  101. package/dist/collection/components/input/exports.js +62 -0
  102. package/dist/collection/components/input/input.css +186 -0
  103. package/dist/collection/components/input/input.js +1861 -0
  104. package/dist/collection/components/input-code/exports.js +2 -0
  105. package/dist/collection/components/input-code/input-code.css +127 -0
  106. package/dist/collection/components/input-code/input-code.js +1165 -0
  107. package/dist/collection/components/input-date/exports.js +1 -0
  108. package/dist/collection/components/input-date/input-date.css +148 -0
  109. package/dist/collection/components/input-date/input-date.js +1254 -0
  110. package/dist/collection/components/input-password/exports.js +1 -0
  111. package/dist/collection/components/input-password/input-password.css +25 -0
  112. package/dist/collection/components/input-password/input-password.js +1077 -0
  113. package/dist/collection/components/input-phone-number/input-phone-number.css +61 -0
  114. package/dist/collection/components/input-phone-number/input-phone-number.js +893 -0
  115. package/dist/collection/components/label/label.css +38 -0
  116. package/dist/collection/components/label/label.js +47 -0
  117. package/dist/collection/components/list-item/list-item/exports.js +2 -0
  118. package/dist/collection/components/list-item/list-item/list-item.css +199 -0
  119. package/dist/collection/components/list-item/list-item/list-item.js +467 -0
  120. package/dist/collection/components/pagination/exports.js +3 -0
  121. package/dist/collection/components/pagination/pagination.css +118 -0
  122. package/dist/collection/components/pagination/pagination.js +814 -0
  123. package/dist/collection/components/panel/exports.js +1 -0
  124. package/dist/collection/components/panel/panel.css +192 -0
  125. package/dist/collection/components/panel/panel.js +473 -0
  126. package/dist/collection/components/popover/exports.js +3 -0
  127. package/dist/collection/components/popover/popover.css +251 -0
  128. package/dist/collection/components/popover/popover.js +741 -0
  129. package/dist/collection/components/popover-action/popover-action.css +21 -0
  130. package/dist/collection/components/popover-action/popover-action.js +150 -0
  131. package/dist/collection/components/popover-content/popover-content.css +9 -0
  132. package/dist/collection/components/popover-content/popover-content.js +130 -0
  133. package/dist/collection/components/popover-headline/popover-headline.css +7 -0
  134. package/dist/collection/components/popover-headline/popover-headline.js +28 -0
  135. package/dist/collection/components/popover-trigger/exports.js +1 -0
  136. package/dist/collection/components/popover-trigger/popover-trigger.css +4 -0
  137. package/dist/collection/components/popover-trigger/popover-trigger.js +163 -0
  138. package/dist/collection/components/progress-bar/progress-bar.css +41 -0
  139. package/dist/collection/components/progress-bar/progress-bar.js +71 -0
  140. package/dist/collection/components/radio-button/radio-button.css +126 -0
  141. package/dist/collection/components/radio-button/radio-button.js +559 -0
  142. package/dist/collection/components/radio-button-description/radio-button-description.css +5 -0
  143. package/dist/collection/components/radio-button-description/radio-button-description.js +22 -0
  144. package/dist/collection/components/radio-button-leading/radio-button-leading.css +3 -0
  145. package/dist/collection/components/radio-button-leading/radio-button-leading.js +22 -0
  146. package/dist/collection/components/radio-button-title/radio-button-title.css +8 -0
  147. package/dist/collection/components/radio-button-title/radio-button-title.js +22 -0
  148. package/dist/collection/components/radio-button-trailing/radio-button-trailing.css +6 -0
  149. package/dist/collection/components/radio-button-trailing/radio-button-trailing.js +22 -0
  150. package/dist/collection/components/radio-group/exports.js +1 -0
  151. package/dist/collection/components/radio-group/radio-group.css +65 -0
  152. package/dist/collection/components/radio-group/radio-group.js +1023 -0
  153. package/dist/collection/components/select/exports.js +1 -0
  154. package/dist/collection/components/select/select.css +247 -0
  155. package/dist/collection/components/select/select.js +2038 -0
  156. package/dist/collection/components/select-option/select-option.css +93 -0
  157. package/dist/collection/components/select-option/select-option.js +459 -0
  158. package/dist/collection/components/skip-link/exports.js +1 -0
  159. package/dist/collection/components/skip-link/skip-link.css +37 -0
  160. package/dist/collection/components/skip-link/skip-link.js +52 -0
  161. package/dist/collection/components/stepper/stepper.css +25 -0
  162. package/dist/collection/components/stepper/stepper.js +216 -0
  163. package/dist/collection/components/stepper-item/stepper-item.css +62 -0
  164. package/dist/collection/components/stepper-item/stepper-item.js +171 -0
  165. package/dist/collection/components/tab/tab.css +81 -0
  166. package/dist/collection/components/tab/tab.js +169 -0
  167. package/dist/collection/components/tab-panel/tab-panel.css +19 -0
  168. package/dist/collection/components/tab-panel/tab-panel.js +72 -0
  169. package/dist/collection/components/tabs/tabs.css +4 -0
  170. package/dist/collection/components/tabs/tabs.js +345 -0
  171. package/dist/collection/components/tabs-list/exports.js +2 -0
  172. package/dist/collection/components/tabs-list/tabs-list.css +58 -0
  173. package/dist/collection/components/tabs-list/tabs-list.js +294 -0
  174. package/dist/collection/components/textarea/exports.js +8 -0
  175. package/dist/collection/components/textarea/textarea.css +148 -0
  176. package/dist/collection/components/textarea/textarea.js +1055 -0
  177. package/dist/collection/components/toast/exports.js +3 -0
  178. package/dist/collection/components/toast/toast.css +179 -0
  179. package/dist/collection/components/toast/toast.js +820 -0
  180. package/dist/collection/components/toast-group/exports.js +1 -0
  181. package/dist/collection/components/toast-group/toast-group.css +37 -0
  182. package/dist/collection/components/toast-group/toast-group.js +49 -0
  183. package/dist/collection/components/tooltip/exports.js +3 -0
  184. package/dist/collection/components/tooltip/tooltip.css +77 -0
  185. package/dist/collection/components/tooltip/tooltip.js +525 -0
  186. package/dist/collection/index.js +2 -0
  187. package/dist/collection/utils/focusable.js +24 -0
  188. package/dist/collection/utils/formData.js +40 -0
  189. package/dist/collection/utils/theming.js +103 -0
  190. package/dist/collection/utils/version-checker.js +33 -0
  191. package/dist/esm/app-globals-DQuL1Twl.js +3 -0
  192. package/dist/esm/focusable-ky1yonnS.js +26 -0
  193. package/dist/esm/formData-DvLT8-y3.js +42 -0
  194. package/dist/esm/index-CTxpqopm.js +1806 -0
  195. package/dist/esm/index.js +35 -0
  196. package/dist/esm/loader.js +11 -0
  197. package/dist/esm/r-accordion-panel.entry.js +22 -0
  198. package/dist/esm/r-accordion-section.entry.js +123 -0
  199. package/dist/esm/r-accordion-trigger.entry.js +91 -0
  200. package/dist/esm/r-accordion.entry.js +18 -0
  201. package/dist/esm/r-alert.entry.js +144 -0
  202. package/dist/esm/r-badge.entry.js +39 -0
  203. package/dist/esm/r-button.entry.js +147 -0
  204. package/dist/esm/r-checkbox-group.entry.js +235 -0
  205. package/dist/esm/r-checkbox.entry.js +272 -0
  206. package/dist/esm/r-design-system-devtools.entry.js +29 -0
  207. package/dist/esm/r-dialog.entry.js +105 -0
  208. package/dist/esm/r-hint_2.entry.js +47 -0
  209. package/dist/esm/r-icon-button_2.entry.js +489 -0
  210. package/dist/esm/r-icon.entry.js +282 -0
  211. package/dist/esm/r-illustration.entry.js +394 -0
  212. package/dist/esm/r-input-code.entry.js +435 -0
  213. package/dist/esm/r-input-date.entry.js +522 -0
  214. package/dist/esm/r-input-password.entry.js +268 -0
  215. package/dist/esm/r-input-phone-number.entry.js +2523 -0
  216. package/dist/esm/r-input.entry.js +616 -0
  217. package/dist/esm/r-list-item.entry.js +107 -0
  218. package/dist/esm/r-pagination.entry.js +318 -0
  219. package/dist/esm/r-panel.entry.js +182 -0
  220. package/dist/esm/r-popover-action.entry.js +78 -0
  221. package/dist/esm/r-popover-content.entry.js +60 -0
  222. package/dist/esm/r-popover-headline.entry.js +26 -0
  223. package/dist/esm/r-popover-trigger.entry.js +68 -0
  224. package/dist/esm/r-popover.entry.js +345 -0
  225. package/dist/esm/r-progress-bar.entry.js +23 -0
  226. package/dist/esm/r-radio-button-description.entry.js +16 -0
  227. package/dist/esm/r-radio-button-leading.entry.js +16 -0
  228. package/dist/esm/r-radio-button-title.entry.js +16 -0
  229. package/dist/esm/r-radio-button-trailing.entry.js +16 -0
  230. package/dist/esm/r-radio-button.entry.js +137 -0
  231. package/dist/esm/r-radio-group.entry.js +426 -0
  232. package/dist/esm/r-select-option.entry.js +128 -0
  233. package/dist/esm/r-select.entry.js +1105 -0
  234. package/dist/esm/r-skip-link.entry.js +17 -0
  235. package/dist/esm/r-stepper-item.entry.js +40 -0
  236. package/dist/esm/r-stepper.entry.js +97 -0
  237. package/dist/esm/r-tab-panel.entry.js +24 -0
  238. package/dist/esm/r-tab.entry.js +60 -0
  239. package/dist/esm/r-tabs-list.entry.js +173 -0
  240. package/dist/esm/r-tabs.entry.js +275 -0
  241. package/dist/esm/r-textarea.entry.js +268 -0
  242. package/dist/esm/r-toast-group.entry.js +44 -0
  243. package/dist/esm/r-toast.entry.js +312 -0
  244. package/dist/esm/style-observer-4Uv3PpKT.js +1116 -0
  245. package/dist/esm/theming-DD2IrjpG.js +106 -0
  246. package/dist/esm/web-components.js +21 -0
  247. package/dist/index.cjs.js +1 -0
  248. package/dist/index.js +1 -0
  249. package/dist/types/components/accordion/accordion.d.ts +27 -0
  250. package/dist/types/components/accordion/exports.d.ts +2 -0
  251. package/dist/types/components/accordion-panel/accordion-panel.d.ts +10 -0
  252. package/dist/types/components/accordion-section/accordion-section.d.ts +36 -0
  253. package/dist/types/components/accordion-trigger/accordion-trigger.d.ts +33 -0
  254. package/dist/types/components/alert/alert.d.ts +67 -0
  255. package/dist/types/components/alert/exports.d.ts +4 -0
  256. package/dist/types/components/badge/badge.d.ts +26 -0
  257. package/dist/types/components/badge/exports.d.ts +2 -0
  258. package/dist/types/components/button/button.d.ts +89 -0
  259. package/dist/types/components/button/exports.d.ts +10 -0
  260. package/dist/types/components/checkbox/checkbox.d.ts +138 -0
  261. package/dist/types/components/checkbox-group/checkbox-group.d.ts +124 -0
  262. package/dist/types/components/design-system-devtools/design-system-devtools.d.ts +15 -0
  263. package/dist/types/components/dialog/dialog.d.ts +69 -0
  264. package/dist/types/components/dialog/exports.d.ts +10 -0
  265. package/dist/types/components/hint/exports.d.ts +2 -0
  266. package/dist/types/components/hint/hint.d.ts +20 -0
  267. package/dist/types/components/icon/all-kit.d.ts +2890 -0
  268. package/dist/types/components/icon/data.d.ts +145 -0
  269. package/dist/types/components/icon/exports.d.ts +152 -0
  270. package/dist/types/components/icon/icon.d.ts +37 -0
  271. package/dist/types/components/icon/riverty-kit.d.ts +139 -0
  272. package/dist/types/components/icon-button/icon-button.d.ts +69 -0
  273. package/dist/types/components/illustration/data.d.ts +52 -0
  274. package/dist/types/components/illustration/exports.d.ts +23 -0
  275. package/dist/types/components/illustration/illustration.d.ts +51 -0
  276. package/dist/types/components/illustration/illustrations-ui-kit.d.ts +21 -0
  277. package/dist/types/components/input/exports.d.ts +55 -0
  278. package/dist/types/components/input/input.d.ts +365 -0
  279. package/dist/types/components/input-code/exports.d.ts +4 -0
  280. package/dist/types/components/input-code/input-code.d.ts +177 -0
  281. package/dist/types/components/input-date/exports.d.ts +5 -0
  282. package/dist/types/components/input-date/input-date.d.ts +174 -0
  283. package/dist/types/components/input-password/exports.d.ts +1 -0
  284. package/dist/types/components/input-password/input-password.d.ts +186 -0
  285. package/dist/types/components/input-phone-number/input-phone-number.d.ts +130 -0
  286. package/dist/types/components/label/label.d.ts +9 -0
  287. package/dist/types/components/list-item/list-item/exports.d.ts +4 -0
  288. package/dist/types/components/list-item/list-item/list-item.d.ts +61 -0
  289. package/dist/types/components/pagination/exports.d.ts +6 -0
  290. package/dist/types/components/pagination/pagination.d.ts +140 -0
  291. package/dist/types/components/panel/exports.d.ts +2 -0
  292. package/dist/types/components/panel/panel.d.ts +56 -0
  293. package/dist/types/components/popover/exports.d.ts +6 -0
  294. package/dist/types/components/popover/popover.d.ts +131 -0
  295. package/dist/types/components/popover-action/popover-action.d.ts +24 -0
  296. package/dist/types/components/popover-content/popover-content.d.ts +22 -0
  297. package/dist/types/components/popover-headline/popover-headline.d.ts +6 -0
  298. package/dist/types/components/popover-trigger/exports.d.ts +2 -0
  299. package/dist/types/components/popover-trigger/popover-trigger.d.ts +31 -0
  300. package/dist/types/components/progress-bar/progress-bar.d.ts +10 -0
  301. package/dist/types/components/radio-button/radio-button.d.ts +92 -0
  302. package/dist/types/components/radio-button-description/radio-button-description.d.ts +8 -0
  303. package/dist/types/components/radio-button-leading/radio-button-leading.d.ts +8 -0
  304. package/dist/types/components/radio-button-title/radio-button-title.d.ts +8 -0
  305. package/dist/types/components/radio-button-trailing/radio-button-trailing.d.ts +8 -0
  306. package/dist/types/components/radio-group/exports.d.ts +2 -0
  307. package/dist/types/components/radio-group/radio-group.d.ts +179 -0
  308. package/dist/types/components/select/exports.d.ts +2 -0
  309. package/dist/types/components/select/select.d.ts +319 -0
  310. package/dist/types/components/select-option/select-option.d.ts +113 -0
  311. package/dist/types/components/skip-link/exports.d.ts +2 -0
  312. package/dist/types/components/skip-link/skip-link.d.ts +6 -0
  313. package/dist/types/components/stepper/stepper.d.ts +22 -0
  314. package/dist/types/components/stepper-item/stepper-item.d.ts +23 -0
  315. package/dist/types/components/tab/tab.d.ts +23 -0
  316. package/dist/types/components/tab-panel/tab-panel.d.ts +7 -0
  317. package/dist/types/components/tabs/tabs.d.ts +49 -0
  318. package/dist/types/components/tabs-list/exports.d.ts +4 -0
  319. package/dist/types/components/tabs-list/tabs-list.d.ts +41 -0
  320. package/dist/types/components/textarea/exports.d.ts +2 -0
  321. package/dist/types/components/textarea/textarea.d.ts +158 -0
  322. package/dist/types/components/toast/exports.d.ts +6 -0
  323. package/dist/types/components/toast/toast.d.ts +146 -0
  324. package/dist/types/components/toast-group/exports.d.ts +2 -0
  325. package/dist/types/components/toast-group/toast-group.d.ts +9 -0
  326. package/dist/types/components/tooltip/exports.d.ts +6 -0
  327. package/dist/types/components/tooltip/tooltip.d.ts +132 -0
  328. package/dist/types/components.d.ts +6347 -0
  329. package/dist/types/index.d.ts +1 -0
  330. package/dist/types/stencil-public-runtime.d.ts +1732 -0
  331. package/dist/types/types/jsx-shim.d.ts +13 -0
  332. package/dist/types/types/style-observer.d.ts +20 -0
  333. package/dist/types/utils/focusable.d.ts +1 -0
  334. package/dist/types/utils/formData.d.ts +1 -0
  335. package/dist/types/utils/theming.d.ts +15 -0
  336. package/dist/types/utils/version-checker.d.ts +1 -0
  337. package/dist/web-components/index.esm.js +1 -0
  338. package/dist/web-components/p-01aefcf0.entry.js +1 -0
  339. package/dist/web-components/p-05cb55db.entry.js +1 -0
  340. package/dist/web-components/p-0a34d33b.entry.js +1 -0
  341. package/dist/web-components/p-11b22309.entry.js +1 -0
  342. package/dist/web-components/p-2d878934.entry.js +1 -0
  343. package/dist/web-components/p-325dbedf.entry.js +1 -0
  344. package/dist/web-components/p-34b9457b.entry.js +1 -0
  345. package/dist/web-components/p-36abd05a.entry.js +1 -0
  346. package/dist/web-components/p-386d1ef9.entry.js +1 -0
  347. package/dist/web-components/p-3d67b77b.entry.js +1 -0
  348. package/dist/web-components/p-4Uv3PpKT.js +1 -0
  349. package/dist/web-components/p-4b12fbc0.entry.js +1 -0
  350. package/dist/web-components/p-52f7b505.entry.js +1 -0
  351. package/dist/web-components/p-55600d47.entry.js +1 -0
  352. package/dist/web-components/p-57ebc474.entry.js +1 -0
  353. package/dist/web-components/p-57edf7f4.entry.js +1 -0
  354. package/dist/web-components/p-69a24fe2.entry.js +1 -0
  355. package/dist/web-components/p-6d92648c.entry.js +1 -0
  356. package/dist/web-components/p-75052597.entry.js +1 -0
  357. package/dist/web-components/p-7b2c5b63.entry.js +1 -0
  358. package/dist/web-components/p-7bf463ff.entry.js +1 -0
  359. package/dist/web-components/p-838e43d4.entry.js +1 -0
  360. package/dist/web-components/p-8c16d038.entry.js +1 -0
  361. package/dist/web-components/p-8f8313de.entry.js +1 -0
  362. package/dist/web-components/p-9026d5a2.entry.js +1 -0
  363. package/dist/web-components/p-95396b5c.entry.js +1 -0
  364. package/dist/web-components/p-9c31c7c4.entry.js +1 -0
  365. package/dist/web-components/p-9c415b9c.entry.js +1 -0
  366. package/dist/web-components/p-9f583ed1.entry.js +1 -0
  367. package/dist/web-components/p-B9rsR6cQ.js +1 -0
  368. package/dist/web-components/p-CTxpqopm.js +2 -0
  369. package/dist/web-components/p-DQuL1Twl.js +1 -0
  370. package/dist/web-components/p-DvLT8-y3.js +1 -0
  371. package/dist/web-components/p-b303b2cc.entry.js +1 -0
  372. package/dist/web-components/p-b8df041d.entry.js +1 -0
  373. package/dist/web-components/p-bc30844f.entry.js +1 -0
  374. package/dist/web-components/p-c4a77a65.entry.js +1 -0
  375. package/dist/web-components/p-c549addf.entry.js +1 -0
  376. package/dist/web-components/p-c65df19f.entry.js +1 -0
  377. package/dist/web-components/p-c80a5541.entry.js +1 -0
  378. package/dist/web-components/p-c96ee61a.entry.js +1 -0
  379. package/dist/web-components/p-cf3f044d.entry.js +1 -0
  380. package/dist/web-components/p-d1412932.entry.js +1 -0
  381. package/dist/web-components/p-d9778cfa.entry.js +1 -0
  382. package/dist/web-components/p-dbe4ccb8.entry.js +1 -0
  383. package/dist/web-components/p-ded50850.entry.js +1 -0
  384. package/dist/web-components/p-e5be895b.entry.js +1 -0
  385. package/dist/web-components/p-e6b34c1e.entry.js +1 -0
  386. package/dist/web-components/p-ec3c4800.entry.js +1 -0
  387. package/dist/web-components/p-f670fd87.entry.js +1 -0
  388. package/dist/web-components/p-f867e4c3.entry.js +1 -0
  389. package/dist/web-components/p-ff6b1b8f.entry.js +1 -0
  390. package/dist/web-components/p-ky1yonnS.js +1 -0
  391. package/dist/web-components/web-components.esm.js +1 -0
  392. package/loader/cdn.js +1 -0
  393. package/loader/index.cjs.js +1 -0
  394. package/loader/index.d.ts +24 -0
  395. package/loader/index.es2017.js +1 -0
  396. package/loader/index.js +2 -0
  397. package/package.json +1 -1
@@ -0,0 +1,803 @@
1
+ import { Host, h } from "@stencil/core";
2
+ import { appendControlToFormData } from "../../utils/formData";
3
+ /**
4
+ * Checkboxes allow users to select none, one, or multiple items from a list.
5
+ *
6
+ * Overall behavior is based on native `<input type="checkbox">`
7
+ *
8
+ */
9
+ export class Checkbox {
10
+ constructor() {
11
+ /** Automatically focus the checkbox when the component is mounted. Note: Only one element per page should have autofocus set to true, following browser standard behavior. */
12
+ this.autofocus = false;
13
+ this.validityState = '';
14
+ this.validityMessage = '';
15
+ this.touched = false;
16
+ // Private properties
17
+ this.initial = {};
18
+ this.uniqueId = `r-checkbox-${Date.now().toString(32)}${Math.random().toString(32)}`.replace(/\./g, '');
19
+ // Private methods
20
+ this.getValidityStateData = (element) => {
21
+ let validityState = '';
22
+ let validityMessage = '';
23
+ for (const state in element.validity) {
24
+ if (element.validity[state]) {
25
+ validityState = state;
26
+ if (this[state + 'Message']) {
27
+ validityMessage = this[state + 'Message'];
28
+ return { validityState, validityMessage };
29
+ }
30
+ validityMessage = element.validationMessage;
31
+ }
32
+ }
33
+ return { validityState, validityMessage };
34
+ };
35
+ this.validateFormElement = (element = null) => {
36
+ if (element === null)
37
+ return;
38
+ if (this.isNoValidate)
39
+ return;
40
+ if (this.error)
41
+ return;
42
+ const { validityState, validityMessage } = this.getValidityStateData(element);
43
+ this.validityState = validityState;
44
+ this.validityMessage = validityMessage;
45
+ const isValid = this.validityState === 'valid';
46
+ this.valid = isValid;
47
+ this.invalid = !isValid;
48
+ this.rValidate.emit({
49
+ state: this.validityState,
50
+ message: this.validityMessage
51
+ });
52
+ };
53
+ this.handleClick = (event) => {
54
+ if (this.disabled)
55
+ return;
56
+ const target = event.target;
57
+ if (target.tagName !== 'A') {
58
+ event.preventDefault();
59
+ this.toggleChecked();
60
+ }
61
+ };
62
+ this.onSubmitForm = (event) => {
63
+ if (this.isNoValidate)
64
+ return;
65
+ this.validateFormElement(this.nativeElement);
66
+ // If data is not valid -> prevent form submittion
67
+ if (this.invalid) {
68
+ event.preventDefault();
69
+ event.stopPropagation();
70
+ }
71
+ };
72
+ this.onResetForm = () => {
73
+ this.validityState = null;
74
+ this.validityMessage = null;
75
+ this.checked = this.initial['checked'];
76
+ this.invalid = this.initial['invalid'];
77
+ this.valid = !this.invalid;
78
+ const { host, value, checked } = this;
79
+ this.rReset.emit({ element: host, value, checked });
80
+ };
81
+ this.contributeToFormData = (event) => {
82
+ appendControlToFormData(this.nativeElement || this.host, event.formData);
83
+ };
84
+ this.applyAutofocus = () => {
85
+ queueMicrotask(() => {
86
+ this.setFocus();
87
+ });
88
+ };
89
+ }
90
+ // Public Methods
91
+ /**
92
+ * Asynchronously retrieves the validity state of the checkbox.
93
+ *
94
+ * This method updates the internal validity state and message by calling `getValidityStateData`
95
+ * with the native element, and then returns an object containing the current validity state and message.
96
+ *
97
+ * @returns A promise that resolves to an object containing the validity state and message.
98
+ * The object has two properties:
99
+ * - `state`: A string representing the validity state.
100
+ * - `message`: A string containing the validity message.
101
+ */
102
+ async getValidityState() {
103
+ const { validityState, validityMessage } = this.getValidityStateData(this.nativeElement);
104
+ this.validityState = validityState;
105
+ this.validityMessage = validityMessage;
106
+ return {
107
+ state: this.validityState,
108
+ message: this.validityMessage
109
+ };
110
+ }
111
+ /**
112
+ * Sets focus on the checkbox element.
113
+ */
114
+ async setFocus() {
115
+ var _a;
116
+ (_a = this.nativeElement) === null || _a === void 0 ? void 0 : _a.focus();
117
+ }
118
+ /**
119
+ * Removes focus from the checkbox element.
120
+ */
121
+ async setBlur() {
122
+ var _a;
123
+ (_a = this.nativeElement) === null || _a === void 0 ? void 0 : _a.blur();
124
+ }
125
+ /**
126
+ * Checks the checkbox element.
127
+ */
128
+ async check() {
129
+ this.checked = true;
130
+ }
131
+ /**
132
+ * Unchecks the checkbox element.
133
+ */
134
+ async uncheck() {
135
+ this.checked = false;
136
+ }
137
+ /**
138
+ * Toggles the checked state of the checkbox element.
139
+ */
140
+ async toggleChecked() {
141
+ this.touched = true;
142
+ this.checked = !this.checked;
143
+ }
144
+ /**
145
+ * Sets the indeterminate state of the checkbox element.
146
+ */
147
+ async setIndeterminate() {
148
+ this.indeterminate = true;
149
+ }
150
+ /**
151
+ * Sets the indeterminate state of the checkbox element.
152
+ */
153
+ async clearIndeterminate() {
154
+ this.indeterminate = false;
155
+ }
156
+ /** Validates an element, displays provided message in case value is invalid. */
157
+ async setCustomValidity(message) {
158
+ this.customErrorMessage = message;
159
+ this.validateFormElement(this.nativeElement);
160
+ }
161
+ /**
162
+ * Validates the checkbox without triggering UI and returns a boolean indicating its validity.
163
+ * @returns A boolean indicating whether the checkbox is valid.
164
+ */
165
+ async checkValidity() {
166
+ const { validityState } = this.getValidityStateData(this.nativeElement);
167
+ return validityState === 'valid';
168
+ }
169
+ // Watchers
170
+ async handleCheckedChange() {
171
+ // Only proceed if checkbox has been interacted with
172
+ if (!this.touched)
173
+ return;
174
+ if (this.disabled)
175
+ return;
176
+ const { host, value, checked } = this;
177
+ this.rChange.emit({ element: host, value, checked });
178
+ // Update native element checked state
179
+ if (this.nativeElement) {
180
+ this.nativeElement.checked = checked;
181
+ }
182
+ // Validate if required
183
+ if (this.required && !this.isNoValidate) {
184
+ this.validateFormElement(this.nativeElement);
185
+ }
186
+ }
187
+ // Getters
188
+ /** Identify wrapping form element */
189
+ get parentFormEl() {
190
+ return this.host.closest('form') || document.querySelector(`#${this.form}`) || null;
191
+ }
192
+ /** Determine whether this element should be ignored during Constraint Validation API validation. */
193
+ get isNoValidate() {
194
+ var _a;
195
+ return (((_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.hasAttribute('novalidate')) ||
196
+ this.novalidate ||
197
+ false);
198
+ }
199
+ get hasErrorMessage() {
200
+ var _a;
201
+ return typeof this.error === 'string' && ((_a = this.error) === null || _a === void 0 ? void 0 : _a.length) > 0;
202
+ }
203
+ get hasCustomErrorMessage() {
204
+ var _a;
205
+ return typeof this.customErrorMessage === 'string' && ((_a = this.customErrorMessage) === null || _a === void 0 ? void 0 : _a.length) > 0;
206
+ }
207
+ get hasValidationError() {
208
+ var _a;
209
+ return this.validityState && this.validityState !== 'valid' && ((_a = this.validityMessage) === null || _a === void 0 ? void 0 : _a.length) > 0;
210
+ }
211
+ get hasInvalidMessage() {
212
+ if (!this.invalid)
213
+ return false;
214
+ return this.hasErrorMessage || this.hasCustomErrorMessage || this.hasValidationError;
215
+ }
216
+ connectFormEventListeners() {
217
+ var _a, _b, _c;
218
+ (_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.addEventListener('formdata', this.contributeToFormData);
219
+ (_b = this.parentFormEl) === null || _b === void 0 ? void 0 : _b.addEventListener('submit', this.onSubmitForm, { capture: true });
220
+ (_c = this.parentFormEl) === null || _c === void 0 ? void 0 : _c.addEventListener('reset', this.onResetForm);
221
+ }
222
+ disconnectFormEventListeners() {
223
+ var _a, _b, _c;
224
+ (_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.removeEventListener('formdata', this.contributeToFormData);
225
+ (_b = this.parentFormEl) === null || _b === void 0 ? void 0 : _b.removeEventListener('submit', this.onSubmitForm);
226
+ (_c = this.parentFormEl) === null || _c === void 0 ? void 0 : _c.removeEventListener('reset', this.onResetForm);
227
+ }
228
+ // Lifecycle methods
229
+ componentWillLoad() {
230
+ this.initial['checked'] = this.checked;
231
+ this.initial['invalid'] = this.invalid;
232
+ }
233
+ componentDidLoad() {
234
+ if (this.nativeElement) {
235
+ this.nativeElement.indeterminate = this.indeterminate;
236
+ }
237
+ if (this.autofocus)
238
+ this.applyAutofocus();
239
+ }
240
+ connectedCallback() {
241
+ this.connectFormEventListeners();
242
+ }
243
+ disconnectedCallback() {
244
+ this.disconnectFormEventListeners();
245
+ }
246
+ render() {
247
+ const { error, name, value, disabled, required, uniqueId, checked, indeterminate, autofocus } = this;
248
+ const inputAttrs = {
249
+ name,
250
+ value,
251
+ disabled,
252
+ required,
253
+ checked,
254
+ indeterminate,
255
+ autofocus
256
+ };
257
+ return (h(Host, { key: 'caf581918e9dabe998fde4118ba5d890e731cd4d', onClick: this.handleClick }, h("div", { key: 'a5f144a25be70960a5bde7b16b3a85aa57c24b9d', class: "r-checkbox" }, h("input", Object.assign({ key: 'd1505294bfc6b3f9b296c03df184078a061dcedd', class: "r-checkbox--input", type: "checkbox" }, inputAttrs, { id: `${uniqueId}-input`, ref: el => this.nativeElement = el, "aria-describedby": this.hasInvalidMessage ? `${uniqueId}-message` : null, "aria-required": `${this.required || false}`, "aria-invalid": `${this.invalid || false}` })), h("div", { key: '8fc3f4f251db2bc58f15851881d0122552c83a04', class: "r-checkbox--box", "aria-hidden": "true" }, this.checked ?
258
+ h("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M8.80019 15.8988L4.6002 11.6988L3.2002 13.0988L8.80019 18.6988L20.8002 6.69883L19.4002 5.29883L8.80019 15.8988Z", fill: "currentColor" }))
259
+ : this.indeterminate ?
260
+ h("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("rect", { x: "4", y: "11", width: "16", height: "2", fill: "currentColor" }))
261
+ : null), h("div", { key: 'e64607f95963658e0bbddd32564fd003d5d26b10', class: "r-checkbox--description" }, h("label", { key: 'ea592fe0ce74007f0a23ba9aaed73059597e9891', class: "r-checkbox--label", id: `${uniqueId}-label`, htmlFor: `${uniqueId}-input` }, h("slot", { key: 'e795b6c1e51724e95840532666e7fc3e29fd52a5' })), h("div", { key: 'ea461714f04e42bc81d488c7050783007d1edbe9', id: `${uniqueId}-message`, class: !this.hasInvalidMessage ? 'visually-hidden' : 'r-checkbox--message', "aria-live": "polite", "aria-atomic": "true" }, this.hasInvalidMessage &&
262
+ h("r-hint", { key: '7ed7bd758187daacd72d93f3aba91e9c9123c9fd', variant: "error" }, error || this.customErrorMessage || this.validityMessage))))));
263
+ }
264
+ static get is() { return "r-checkbox"; }
265
+ static get encapsulation() { return "shadow"; }
266
+ static get originalStyleUrls() {
267
+ return {
268
+ "$": ["checkbox.css"]
269
+ };
270
+ }
271
+ static get styleUrls() {
272
+ return {
273
+ "$": ["checkbox.css"]
274
+ };
275
+ }
276
+ static get properties() {
277
+ return {
278
+ "form": {
279
+ "type": "string",
280
+ "attribute": "form",
281
+ "mutable": false,
282
+ "complexType": {
283
+ "original": "string",
284
+ "resolved": "string",
285
+ "references": {}
286
+ },
287
+ "required": false,
288
+ "optional": true,
289
+ "docs": {
290
+ "tags": [],
291
+ "text": "Specifies the `id` of the `<form>` to which the element belongs"
292
+ },
293
+ "getter": false,
294
+ "setter": false,
295
+ "reflect": false
296
+ },
297
+ "novalidate": {
298
+ "type": "boolean",
299
+ "attribute": "novalidate",
300
+ "mutable": false,
301
+ "complexType": {
302
+ "original": "boolean",
303
+ "resolved": "boolean",
304
+ "references": {}
305
+ },
306
+ "required": false,
307
+ "optional": true,
308
+ "docs": {
309
+ "tags": [],
310
+ "text": "Specifies if element must be ignored during validation of the form elements"
311
+ },
312
+ "getter": false,
313
+ "setter": false,
314
+ "reflect": false
315
+ },
316
+ "name": {
317
+ "type": "string",
318
+ "attribute": "name",
319
+ "mutable": false,
320
+ "complexType": {
321
+ "original": "string",
322
+ "resolved": "string",
323
+ "references": {}
324
+ },
325
+ "required": false,
326
+ "optional": true,
327
+ "docs": {
328
+ "tags": [],
329
+ "text": "Name of element (data) within a form"
330
+ },
331
+ "getter": false,
332
+ "setter": false,
333
+ "reflect": true
334
+ },
335
+ "value": {
336
+ "type": "string",
337
+ "attribute": "value",
338
+ "mutable": false,
339
+ "complexType": {
340
+ "original": "string",
341
+ "resolved": "string",
342
+ "references": {}
343
+ },
344
+ "required": false,
345
+ "optional": true,
346
+ "docs": {
347
+ "tags": [],
348
+ "text": "Value of element data within a form"
349
+ },
350
+ "getter": false,
351
+ "setter": false,
352
+ "reflect": true
353
+ },
354
+ "checked": {
355
+ "type": "boolean",
356
+ "attribute": "checked",
357
+ "mutable": true,
358
+ "complexType": {
359
+ "original": "boolean",
360
+ "resolved": "boolean",
361
+ "references": {}
362
+ },
363
+ "required": false,
364
+ "optional": true,
365
+ "docs": {
366
+ "tags": [],
367
+ "text": "Pass initial checked state"
368
+ },
369
+ "getter": false,
370
+ "setter": false,
371
+ "reflect": true
372
+ },
373
+ "indeterminate": {
374
+ "type": "boolean",
375
+ "attribute": "indeterminate",
376
+ "mutable": true,
377
+ "complexType": {
378
+ "original": "boolean",
379
+ "resolved": "boolean",
380
+ "references": {}
381
+ },
382
+ "required": false,
383
+ "optional": true,
384
+ "docs": {
385
+ "tags": [],
386
+ "text": "Visually present checkbox in indeterminate state (neither checked nor unchecked)"
387
+ },
388
+ "getter": false,
389
+ "setter": false,
390
+ "reflect": true
391
+ },
392
+ "disabled": {
393
+ "type": "boolean",
394
+ "attribute": "disabled",
395
+ "mutable": false,
396
+ "complexType": {
397
+ "original": "boolean",
398
+ "resolved": "boolean",
399
+ "references": {}
400
+ },
401
+ "required": false,
402
+ "optional": true,
403
+ "docs": {
404
+ "tags": [],
405
+ "text": "Prevent user interaction and apply disabled style"
406
+ },
407
+ "getter": false,
408
+ "setter": false,
409
+ "reflect": true
410
+ },
411
+ "autofocus": {
412
+ "type": "boolean",
413
+ "attribute": "autofocus",
414
+ "mutable": false,
415
+ "complexType": {
416
+ "original": "boolean",
417
+ "resolved": "boolean",
418
+ "references": {}
419
+ },
420
+ "required": false,
421
+ "optional": true,
422
+ "docs": {
423
+ "tags": [],
424
+ "text": "Automatically focus the checkbox when the component is mounted. Note: Only one element per page should have autofocus set to true, following browser standard behavior."
425
+ },
426
+ "getter": false,
427
+ "setter": false,
428
+ "reflect": false,
429
+ "defaultValue": "false"
430
+ },
431
+ "valid": {
432
+ "type": "boolean",
433
+ "attribute": "valid",
434
+ "mutable": true,
435
+ "complexType": {
436
+ "original": "boolean",
437
+ "resolved": "boolean",
438
+ "references": {}
439
+ },
440
+ "required": false,
441
+ "optional": true,
442
+ "docs": {
443
+ "tags": [],
444
+ "text": "Indicate that validation is successful"
445
+ },
446
+ "getter": false,
447
+ "setter": false,
448
+ "reflect": true
449
+ },
450
+ "invalid": {
451
+ "type": "boolean",
452
+ "attribute": "invalid",
453
+ "mutable": true,
454
+ "complexType": {
455
+ "original": "boolean",
456
+ "resolved": "boolean",
457
+ "references": {}
458
+ },
459
+ "required": false,
460
+ "optional": true,
461
+ "docs": {
462
+ "tags": [],
463
+ "text": "Indicate that validation has failed"
464
+ },
465
+ "getter": false,
466
+ "setter": false,
467
+ "reflect": true
468
+ },
469
+ "error": {
470
+ "type": "string",
471
+ "attribute": "error",
472
+ "mutable": false,
473
+ "complexType": {
474
+ "original": "string",
475
+ "resolved": "string",
476
+ "references": {}
477
+ },
478
+ "required": false,
479
+ "optional": true,
480
+ "docs": {
481
+ "tags": [],
482
+ "text": "Custom validation error message"
483
+ },
484
+ "getter": false,
485
+ "setter": false,
486
+ "reflect": false
487
+ },
488
+ "required": {
489
+ "type": "boolean",
490
+ "attribute": "required",
491
+ "mutable": false,
492
+ "complexType": {
493
+ "original": "boolean",
494
+ "resolved": "boolean",
495
+ "references": {}
496
+ },
497
+ "required": false,
498
+ "optional": true,
499
+ "docs": {
500
+ "tags": [],
501
+ "text": "Specifies if checkbox must be checked"
502
+ },
503
+ "getter": false,
504
+ "setter": false,
505
+ "reflect": true
506
+ },
507
+ "valueMissingMessage": {
508
+ "type": "string",
509
+ "attribute": "value-missing-message",
510
+ "mutable": false,
511
+ "complexType": {
512
+ "original": "string",
513
+ "resolved": "string",
514
+ "references": {}
515
+ },
516
+ "required": false,
517
+ "optional": true,
518
+ "docs": {
519
+ "tags": [],
520
+ "text": "Set custom message for `valueMissing` property of a ValidityState object (set by `required`) within Constrain Validation API"
521
+ },
522
+ "getter": false,
523
+ "setter": false,
524
+ "reflect": false
525
+ },
526
+ "customErrorMessage": {
527
+ "type": "string",
528
+ "attribute": "custom-error-message",
529
+ "mutable": false,
530
+ "complexType": {
531
+ "original": "string",
532
+ "resolved": "string",
533
+ "references": {}
534
+ },
535
+ "required": false,
536
+ "optional": true,
537
+ "docs": {
538
+ "tags": [],
539
+ "text": "Set custom message for `customError` property of a ValidityState object indicating whether the element's custom validity message has been set to a non-empty string by calling the element's setCustomValidity() method."
540
+ },
541
+ "getter": false,
542
+ "setter": false,
543
+ "reflect": false
544
+ }
545
+ };
546
+ }
547
+ static get states() {
548
+ return {
549
+ "validityState": {},
550
+ "validityMessage": {},
551
+ "touched": {}
552
+ };
553
+ }
554
+ static get events() {
555
+ return [{
556
+ "method": "rChange",
557
+ "name": "rChange",
558
+ "bubbles": true,
559
+ "cancelable": true,
560
+ "composed": true,
561
+ "docs": {
562
+ "tags": [],
563
+ "text": "Emit custom `rChange` event when checkbox onChange event emitted.\nEmitted `event.details` contain checkbox value and checked state."
564
+ },
565
+ "complexType": {
566
+ "original": "{\n element: HTMLRCheckboxElement,\n value: any,\n checked: boolean\n }",
567
+ "resolved": "{ element: HTMLRCheckboxElement; value: any; checked: boolean; }",
568
+ "references": {
569
+ "HTMLRCheckboxElement": {
570
+ "location": "global",
571
+ "id": "global::HTMLRCheckboxElement"
572
+ }
573
+ }
574
+ }
575
+ }, {
576
+ "method": "rReset",
577
+ "name": "rReset",
578
+ "bubbles": true,
579
+ "cancelable": true,
580
+ "composed": true,
581
+ "docs": {
582
+ "tags": [],
583
+ "text": "Emits `rReset` when component was reset to initial state by form reset"
584
+ },
585
+ "complexType": {
586
+ "original": "{\n element: HTMLRCheckboxElement,\n value: any,\n checked: boolean\n }",
587
+ "resolved": "{ element: HTMLRCheckboxElement; value: any; checked: boolean; }",
588
+ "references": {
589
+ "HTMLRCheckboxElement": {
590
+ "location": "global",
591
+ "id": "global::HTMLRCheckboxElement"
592
+ }
593
+ }
594
+ }
595
+ }, {
596
+ "method": "rValidate",
597
+ "name": "rValidate",
598
+ "bubbles": true,
599
+ "cancelable": true,
600
+ "composed": true,
601
+ "docs": {
602
+ "tags": [],
603
+ "text": "Emits event after each validation"
604
+ },
605
+ "complexType": {
606
+ "original": "{\n state: string,\n message: string\n }",
607
+ "resolved": "{ state: string; message: string; }",
608
+ "references": {}
609
+ }
610
+ }];
611
+ }
612
+ static get methods() {
613
+ return {
614
+ "getValidityState": {
615
+ "complexType": {
616
+ "signature": "() => Promise<{ state: string; message: string; }>",
617
+ "parameters": [],
618
+ "references": {
619
+ "Promise": {
620
+ "location": "global",
621
+ "id": "global::Promise"
622
+ }
623
+ },
624
+ "return": "Promise<{ state: string; message: string; }>"
625
+ },
626
+ "docs": {
627
+ "text": "Asynchronously retrieves the validity state of the checkbox.\n\nThis method updates the internal validity state and message by calling `getValidityStateData`\nwith the native element, and then returns an object containing the current validity state and message.",
628
+ "tags": [{
629
+ "name": "returns",
630
+ "text": "A promise that resolves to an object containing the validity state and message.\nThe object has two properties:\n- `state`: A string representing the validity state.\n- `message`: A string containing the validity message."
631
+ }]
632
+ }
633
+ },
634
+ "setFocus": {
635
+ "complexType": {
636
+ "signature": "() => Promise<void>",
637
+ "parameters": [],
638
+ "references": {
639
+ "Promise": {
640
+ "location": "global",
641
+ "id": "global::Promise"
642
+ }
643
+ },
644
+ "return": "Promise<void>"
645
+ },
646
+ "docs": {
647
+ "text": "Sets focus on the checkbox element.",
648
+ "tags": []
649
+ }
650
+ },
651
+ "setBlur": {
652
+ "complexType": {
653
+ "signature": "() => Promise<void>",
654
+ "parameters": [],
655
+ "references": {
656
+ "Promise": {
657
+ "location": "global",
658
+ "id": "global::Promise"
659
+ }
660
+ },
661
+ "return": "Promise<void>"
662
+ },
663
+ "docs": {
664
+ "text": "Removes focus from the checkbox element.",
665
+ "tags": []
666
+ }
667
+ },
668
+ "check": {
669
+ "complexType": {
670
+ "signature": "() => Promise<void>",
671
+ "parameters": [],
672
+ "references": {
673
+ "Promise": {
674
+ "location": "global",
675
+ "id": "global::Promise"
676
+ }
677
+ },
678
+ "return": "Promise<void>"
679
+ },
680
+ "docs": {
681
+ "text": "Checks the checkbox element.",
682
+ "tags": []
683
+ }
684
+ },
685
+ "uncheck": {
686
+ "complexType": {
687
+ "signature": "() => Promise<void>",
688
+ "parameters": [],
689
+ "references": {
690
+ "Promise": {
691
+ "location": "global",
692
+ "id": "global::Promise"
693
+ }
694
+ },
695
+ "return": "Promise<void>"
696
+ },
697
+ "docs": {
698
+ "text": "Unchecks the checkbox element.",
699
+ "tags": []
700
+ }
701
+ },
702
+ "toggleChecked": {
703
+ "complexType": {
704
+ "signature": "() => Promise<void>",
705
+ "parameters": [],
706
+ "references": {
707
+ "Promise": {
708
+ "location": "global",
709
+ "id": "global::Promise"
710
+ }
711
+ },
712
+ "return": "Promise<void>"
713
+ },
714
+ "docs": {
715
+ "text": "Toggles the checked state of the checkbox element.",
716
+ "tags": []
717
+ }
718
+ },
719
+ "setIndeterminate": {
720
+ "complexType": {
721
+ "signature": "() => Promise<void>",
722
+ "parameters": [],
723
+ "references": {
724
+ "Promise": {
725
+ "location": "global",
726
+ "id": "global::Promise"
727
+ }
728
+ },
729
+ "return": "Promise<void>"
730
+ },
731
+ "docs": {
732
+ "text": "Sets the indeterminate state of the checkbox element.",
733
+ "tags": []
734
+ }
735
+ },
736
+ "clearIndeterminate": {
737
+ "complexType": {
738
+ "signature": "() => Promise<void>",
739
+ "parameters": [],
740
+ "references": {
741
+ "Promise": {
742
+ "location": "global",
743
+ "id": "global::Promise"
744
+ }
745
+ },
746
+ "return": "Promise<void>"
747
+ },
748
+ "docs": {
749
+ "text": "Sets the indeterminate state of the checkbox element.",
750
+ "tags": []
751
+ }
752
+ },
753
+ "setCustomValidity": {
754
+ "complexType": {
755
+ "signature": "(message: string) => Promise<void>",
756
+ "parameters": [{
757
+ "name": "message",
758
+ "type": "string",
759
+ "docs": ""
760
+ }],
761
+ "references": {
762
+ "Promise": {
763
+ "location": "global",
764
+ "id": "global::Promise"
765
+ }
766
+ },
767
+ "return": "Promise<void>"
768
+ },
769
+ "docs": {
770
+ "text": "Validates an element, displays provided message in case value is invalid.",
771
+ "tags": []
772
+ }
773
+ },
774
+ "checkValidity": {
775
+ "complexType": {
776
+ "signature": "() => Promise<boolean>",
777
+ "parameters": [],
778
+ "references": {
779
+ "Promise": {
780
+ "location": "global",
781
+ "id": "global::Promise"
782
+ }
783
+ },
784
+ "return": "Promise<boolean>"
785
+ },
786
+ "docs": {
787
+ "text": "Validates the checkbox without triggering UI and returns a boolean indicating its validity.",
788
+ "tags": [{
789
+ "name": "returns",
790
+ "text": "A boolean indicating whether the checkbox is valid."
791
+ }]
792
+ }
793
+ }
794
+ };
795
+ }
796
+ static get elementRef() { return "host"; }
797
+ static get watchers() {
798
+ return [{
799
+ "propName": "checked",
800
+ "methodName": "handleCheckedChange"
801
+ }];
802
+ }
803
+ }