@riverty/web-components 6.2.1 → 6.3.0

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 +24 -0
  2. package/README.md +78 -0
  3. package/custom-elements.json +4 -0
  4. package/package.json +3 -2
  5. package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -5
  6. package/dist/cjs/focusable-Oll_rmtP.js +0 -28
  7. package/dist/cjs/formData-B2DZyLxP.js +0 -44
  8. package/dist/cjs/index-BnETQtSf.js +0 -1834
  9. package/dist/cjs/index.cjs.js +0 -2
  10. package/dist/cjs/loader.cjs.js +0 -13
  11. package/dist/cjs/r-accordion-panel.cjs.entry.js +0 -24
  12. package/dist/cjs/r-accordion-section.cjs.entry.js +0 -125
  13. package/dist/cjs/r-accordion-trigger.cjs.entry.js +0 -93
  14. package/dist/cjs/r-accordion.cjs.entry.js +0 -20
  15. package/dist/cjs/r-alert.cjs.entry.js +0 -146
  16. package/dist/cjs/r-badge.cjs.entry.js +0 -40
  17. package/dist/cjs/r-button.cjs.entry.js +0 -149
  18. package/dist/cjs/r-checkbox-group.cjs.entry.js +0 -232
  19. package/dist/cjs/r-checkbox.cjs.entry.js +0 -269
  20. package/dist/cjs/r-design-system-devtools.cjs.entry.js +0 -31
  21. package/dist/cjs/r-dialog.cjs.entry.js +0 -107
  22. package/dist/cjs/r-hint_2.cjs.entry.js +0 -50
  23. package/dist/cjs/r-icon-button_2.cjs.entry.js +0 -467
  24. package/dist/cjs/r-icon.cjs.entry.js +0 -284
  25. package/dist/cjs/r-illustration.cjs.entry.js +0 -396
  26. package/dist/cjs/r-input-code.cjs.entry.js +0 -432
  27. package/dist/cjs/r-input-date.cjs.entry.js +0 -519
  28. package/dist/cjs/r-input-password.cjs.entry.js +0 -265
  29. package/dist/cjs/r-input-phone-number.cjs.entry.js +0 -2525
  30. package/dist/cjs/r-input.cjs.entry.js +0 -402
  31. package/dist/cjs/r-list-item.cjs.entry.js +0 -109
  32. package/dist/cjs/r-pagination.cjs.entry.js +0 -314
  33. package/dist/cjs/r-panel.cjs.entry.js +0 -184
  34. package/dist/cjs/r-popover-action.cjs.entry.js +0 -80
  35. package/dist/cjs/r-popover-content.cjs.entry.js +0 -62
  36. package/dist/cjs/r-popover-headline.cjs.entry.js +0 -28
  37. package/dist/cjs/r-popover-trigger.cjs.entry.js +0 -70
  38. package/dist/cjs/r-popover.cjs.entry.js +0 -347
  39. package/dist/cjs/r-progress-bar.cjs.entry.js +0 -25
  40. package/dist/cjs/r-radio-button-description.cjs.entry.js +0 -18
  41. package/dist/cjs/r-radio-button-leading.cjs.entry.js +0 -18
  42. package/dist/cjs/r-radio-button-title.cjs.entry.js +0 -18
  43. package/dist/cjs/r-radio-button-trailing.cjs.entry.js +0 -18
  44. package/dist/cjs/r-radio-button.cjs.entry.js +0 -139
  45. package/dist/cjs/r-radio-group.cjs.entry.js +0 -425
  46. package/dist/cjs/r-select-option.cjs.entry.js +0 -130
  47. package/dist/cjs/r-select.cjs.entry.js +0 -1101
  48. package/dist/cjs/r-skip-link.cjs.entry.js +0 -19
  49. package/dist/cjs/r-stepper-item.cjs.entry.js +0 -42
  50. package/dist/cjs/r-stepper.cjs.entry.js +0 -99
  51. package/dist/cjs/r-tab-panel.cjs.entry.js +0 -26
  52. package/dist/cjs/r-tab.cjs.entry.js +0 -62
  53. package/dist/cjs/r-tabs-list.cjs.entry.js +0 -175
  54. package/dist/cjs/r-tabs.cjs.entry.js +0 -277
  55. package/dist/cjs/r-textarea.cjs.entry.js +0 -270
  56. package/dist/cjs/r-toast-group.cjs.entry.js +0 -46
  57. package/dist/cjs/r-toast.cjs.entry.js +0 -306
  58. package/dist/cjs/style-observer-D9zSP9wP.js +0 -1118
  59. package/dist/cjs/theming-NqxjhVJS.js +0 -109
  60. package/dist/cjs/web-components.cjs.js +0 -25
  61. package/dist/collection/collection-manifest.json +0 -60
  62. package/dist/collection/components/accordion/accordion.css +0 -24
  63. package/dist/collection/components/accordion/accordion.js +0 -90
  64. package/dist/collection/components/accordion/exports.js +0 -1
  65. package/dist/collection/components/accordion-panel/accordion-panel.css +0 -50
  66. package/dist/collection/components/accordion-panel/accordion-panel.js +0 -86
  67. package/dist/collection/components/accordion-section/accordion-section.css +0 -27
  68. package/dist/collection/components/accordion-section/accordion-section.js +0 -235
  69. package/dist/collection/components/accordion-trigger/accordion-trigger.css +0 -93
  70. package/dist/collection/components/accordion-trigger/accordion-trigger.js +0 -220
  71. package/dist/collection/components/alert/alert.css +0 -119
  72. package/dist/collection/components/alert/alert.js +0 -526
  73. package/dist/collection/components/alert/exports.js +0 -2
  74. package/dist/collection/components/badge/badge.css +0 -52
  75. package/dist/collection/components/badge/badge.js +0 -120
  76. package/dist/collection/components/badge/exports.js +0 -1
  77. package/dist/collection/components/button/button.css +0 -180
  78. package/dist/collection/components/button/button.js +0 -510
  79. package/dist/collection/components/button/exports.js +0 -5
  80. package/dist/collection/components/checkbox/checkbox.css +0 -116
  81. package/dist/collection/components/checkbox/checkbox.js +0 -777
  82. package/dist/collection/components/checkbox-group/checkbox-group.css +0 -48
  83. package/dist/collection/components/checkbox-group/checkbox-group.js +0 -718
  84. package/dist/collection/components/design-system-devtools/design-system-devtools.js +0 -59
  85. package/dist/collection/components/dialog/dialog.css +0 -125
  86. package/dist/collection/components/dialog/dialog.js +0 -345
  87. package/dist/collection/components/dialog/exports.js +0 -9
  88. package/dist/collection/components/hint/exports.js +0 -1
  89. package/dist/collection/components/hint/hint.css +0 -63
  90. package/dist/collection/components/hint/hint.js +0 -114
  91. package/dist/collection/components/icon/all-kit.js +0 -2
  92. package/dist/collection/components/icon/data.js +0 -90
  93. package/dist/collection/components/icon/exports.js +0 -7
  94. package/dist/collection/components/icon/icon.css +0 -105
  95. package/dist/collection/components/icon/icon.js +0 -379
  96. package/dist/collection/components/icon/riverty-kit.js +0 -2
  97. package/dist/collection/components/icon-button/icon-button.css +0 -105
  98. package/dist/collection/components/icon-button/icon-button.js +0 -343
  99. package/dist/collection/components/illustration/data.js +0 -112
  100. package/dist/collection/components/illustration/exports.js +0 -3
  101. package/dist/collection/components/illustration/illustration.css +0 -52
  102. package/dist/collection/components/illustration/illustration.js +0 -540
  103. package/dist/collection/components/illustration/illustrations-ui-kit.js +0 -2
  104. package/dist/collection/components/input/exports.js +0 -16
  105. package/dist/collection/components/input/input.css +0 -180
  106. package/dist/collection/components/input/input.js +0 -1572
  107. package/dist/collection/components/input-code/exports.js +0 -2
  108. package/dist/collection/components/input-code/input-code.css +0 -127
  109. package/dist/collection/components/input-code/input-code.js +0 -1139
  110. package/dist/collection/components/input-date/exports.js +0 -1
  111. package/dist/collection/components/input-date/input-date.css +0 -148
  112. package/dist/collection/components/input-date/input-date.js +0 -1228
  113. package/dist/collection/components/input-password/exports.js +0 -1
  114. package/dist/collection/components/input-password/input-password.css +0 -25
  115. package/dist/collection/components/input-password/input-password.js +0 -1051
  116. package/dist/collection/components/input-phone-number/input-phone-number.css +0 -61
  117. package/dist/collection/components/input-phone-number/input-phone-number.js +0 -874
  118. package/dist/collection/components/label/label.css +0 -38
  119. package/dist/collection/components/label/label.js +0 -47
  120. package/dist/collection/components/list-item/list-item/exports.js +0 -2
  121. package/dist/collection/components/list-item/list-item/list-item.css +0 -199
  122. package/dist/collection/components/list-item/list-item/list-item.js +0 -467
  123. package/dist/collection/components/pagination/exports.js +0 -3
  124. package/dist/collection/components/pagination/pagination.css +0 -118
  125. package/dist/collection/components/pagination/pagination.js +0 -799
  126. package/dist/collection/components/panel/exports.js +0 -1
  127. package/dist/collection/components/panel/panel.css +0 -192
  128. package/dist/collection/components/panel/panel.js +0 -473
  129. package/dist/collection/components/popover/exports.js +0 -3
  130. package/dist/collection/components/popover/popover.css +0 -251
  131. package/dist/collection/components/popover/popover.js +0 -741
  132. package/dist/collection/components/popover-action/popover-action.css +0 -21
  133. package/dist/collection/components/popover-action/popover-action.js +0 -150
  134. package/dist/collection/components/popover-content/popover-content.css +0 -9
  135. package/dist/collection/components/popover-content/popover-content.js +0 -130
  136. package/dist/collection/components/popover-headline/popover-headline.css +0 -7
  137. package/dist/collection/components/popover-headline/popover-headline.js +0 -28
  138. package/dist/collection/components/popover-trigger/exports.js +0 -1
  139. package/dist/collection/components/popover-trigger/popover-trigger.css +0 -4
  140. package/dist/collection/components/popover-trigger/popover-trigger.js +0 -163
  141. package/dist/collection/components/progress-bar/progress-bar.css +0 -41
  142. package/dist/collection/components/progress-bar/progress-bar.js +0 -71
  143. package/dist/collection/components/radio-button/radio-button.css +0 -126
  144. package/dist/collection/components/radio-button/radio-button.js +0 -559
  145. package/dist/collection/components/radio-button-description/radio-button-description.css +0 -5
  146. package/dist/collection/components/radio-button-description/radio-button-description.js +0 -22
  147. package/dist/collection/components/radio-button-leading/radio-button-leading.css +0 -3
  148. package/dist/collection/components/radio-button-leading/radio-button-leading.js +0 -22
  149. package/dist/collection/components/radio-button-title/radio-button-title.css +0 -8
  150. package/dist/collection/components/radio-button-title/radio-button-title.js +0 -22
  151. package/dist/collection/components/radio-button-trailing/radio-button-trailing.css +0 -6
  152. package/dist/collection/components/radio-button-trailing/radio-button-trailing.js +0 -22
  153. package/dist/collection/components/radio-group/exports.js +0 -1
  154. package/dist/collection/components/radio-group/radio-group.css +0 -65
  155. package/dist/collection/components/radio-group/radio-group.js +0 -1020
  156. package/dist/collection/components/select/exports.js +0 -1
  157. package/dist/collection/components/select/select.css +0 -247
  158. package/dist/collection/components/select/select.js +0 -2011
  159. package/dist/collection/components/select-option/select-option.css +0 -93
  160. package/dist/collection/components/select-option/select-option.js +0 -459
  161. package/dist/collection/components/skip-link/exports.js +0 -1
  162. package/dist/collection/components/skip-link/skip-link.css +0 -37
  163. package/dist/collection/components/skip-link/skip-link.js +0 -52
  164. package/dist/collection/components/stepper/stepper.css +0 -25
  165. package/dist/collection/components/stepper/stepper.js +0 -216
  166. package/dist/collection/components/stepper-item/stepper-item.css +0 -62
  167. package/dist/collection/components/stepper-item/stepper-item.js +0 -171
  168. package/dist/collection/components/tab/tab.css +0 -81
  169. package/dist/collection/components/tab/tab.js +0 -169
  170. package/dist/collection/components/tab-panel/tab-panel.css +0 -19
  171. package/dist/collection/components/tab-panel/tab-panel.js +0 -72
  172. package/dist/collection/components/tabs/tabs.css +0 -4
  173. package/dist/collection/components/tabs/tabs.js +0 -345
  174. package/dist/collection/components/tabs-list/exports.js +0 -2
  175. package/dist/collection/components/tabs-list/tabs-list.css +0 -58
  176. package/dist/collection/components/tabs-list/tabs-list.js +0 -294
  177. package/dist/collection/components/textarea/exports.js +0 -8
  178. package/dist/collection/components/textarea/textarea.css +0 -148
  179. package/dist/collection/components/textarea/textarea.js +0 -1055
  180. package/dist/collection/components/toast/exports.js +0 -3
  181. package/dist/collection/components/toast/toast.css +0 -179
  182. package/dist/collection/components/toast/toast.js +0 -812
  183. package/dist/collection/components/toast-group/exports.js +0 -1
  184. package/dist/collection/components/toast-group/toast-group.css +0 -37
  185. package/dist/collection/components/toast-group/toast-group.js +0 -49
  186. package/dist/collection/components/tooltip/exports.js +0 -3
  187. package/dist/collection/components/tooltip/tooltip.css +0 -106
  188. package/dist/collection/components/tooltip/tooltip.js +0 -500
  189. package/dist/collection/index.js +0 -1
  190. package/dist/collection/utils/focusable.js +0 -24
  191. package/dist/collection/utils/formData.js +0 -40
  192. package/dist/collection/utils/theming.js +0 -103
  193. package/dist/esm/app-globals-DQuL1Twl.js +0 -3
  194. package/dist/esm/focusable-ky1yonnS.js +0 -26
  195. package/dist/esm/formData-DvLT8-y3.js +0 -42
  196. package/dist/esm/index-CTxpqopm.js +0 -1806
  197. package/dist/esm/index.js +0 -1
  198. package/dist/esm/loader.js +0 -11
  199. package/dist/esm/r-accordion-panel.entry.js +0 -22
  200. package/dist/esm/r-accordion-section.entry.js +0 -123
  201. package/dist/esm/r-accordion-trigger.entry.js +0 -91
  202. package/dist/esm/r-accordion.entry.js +0 -18
  203. package/dist/esm/r-alert.entry.js +0 -144
  204. package/dist/esm/r-badge.entry.js +0 -38
  205. package/dist/esm/r-button.entry.js +0 -147
  206. package/dist/esm/r-checkbox-group.entry.js +0 -230
  207. package/dist/esm/r-checkbox.entry.js +0 -267
  208. package/dist/esm/r-design-system-devtools.entry.js +0 -29
  209. package/dist/esm/r-dialog.entry.js +0 -105
  210. package/dist/esm/r-hint_2.entry.js +0 -47
  211. package/dist/esm/r-icon-button_2.entry.js +0 -464
  212. package/dist/esm/r-icon.entry.js +0 -282
  213. package/dist/esm/r-illustration.entry.js +0 -394
  214. package/dist/esm/r-input-code.entry.js +0 -430
  215. package/dist/esm/r-input-date.entry.js +0 -517
  216. package/dist/esm/r-input-password.entry.js +0 -263
  217. package/dist/esm/r-input-phone-number.entry.js +0 -2523
  218. package/dist/esm/r-input.entry.js +0 -400
  219. package/dist/esm/r-list-item.entry.js +0 -107
  220. package/dist/esm/r-pagination.entry.js +0 -312
  221. package/dist/esm/r-panel.entry.js +0 -182
  222. package/dist/esm/r-popover-action.entry.js +0 -78
  223. package/dist/esm/r-popover-content.entry.js +0 -60
  224. package/dist/esm/r-popover-headline.entry.js +0 -26
  225. package/dist/esm/r-popover-trigger.entry.js +0 -68
  226. package/dist/esm/r-popover.entry.js +0 -345
  227. package/dist/esm/r-progress-bar.entry.js +0 -23
  228. package/dist/esm/r-radio-button-description.entry.js +0 -16
  229. package/dist/esm/r-radio-button-leading.entry.js +0 -16
  230. package/dist/esm/r-radio-button-title.entry.js +0 -16
  231. package/dist/esm/r-radio-button-trailing.entry.js +0 -16
  232. package/dist/esm/r-radio-button.entry.js +0 -137
  233. package/dist/esm/r-radio-group.entry.js +0 -423
  234. package/dist/esm/r-select-option.entry.js +0 -128
  235. package/dist/esm/r-select.entry.js +0 -1099
  236. package/dist/esm/r-skip-link.entry.js +0 -17
  237. package/dist/esm/r-stepper-item.entry.js +0 -40
  238. package/dist/esm/r-stepper.entry.js +0 -97
  239. package/dist/esm/r-tab-panel.entry.js +0 -24
  240. package/dist/esm/r-tab.entry.js +0 -60
  241. package/dist/esm/r-tabs-list.entry.js +0 -173
  242. package/dist/esm/r-tabs.entry.js +0 -275
  243. package/dist/esm/r-textarea.entry.js +0 -268
  244. package/dist/esm/r-toast-group.entry.js +0 -44
  245. package/dist/esm/r-toast.entry.js +0 -304
  246. package/dist/esm/style-observer-4Uv3PpKT.js +0 -1116
  247. package/dist/esm/theming-DD2IrjpG.js +0 -106
  248. package/dist/esm/web-components.js +0 -21
  249. package/dist/index.cjs.js +0 -1
  250. package/dist/index.js +0 -1
  251. package/dist/types/components/accordion/accordion.d.ts +0 -27
  252. package/dist/types/components/accordion/exports.d.ts +0 -2
  253. package/dist/types/components/accordion-panel/accordion-panel.d.ts +0 -10
  254. package/dist/types/components/accordion-section/accordion-section.d.ts +0 -36
  255. package/dist/types/components/accordion-trigger/accordion-trigger.d.ts +0 -33
  256. package/dist/types/components/alert/alert.d.ts +0 -67
  257. package/dist/types/components/alert/exports.d.ts +0 -4
  258. package/dist/types/components/badge/badge.d.ts +0 -23
  259. package/dist/types/components/badge/exports.d.ts +0 -2
  260. package/dist/types/components/button/button.d.ts +0 -89
  261. package/dist/types/components/button/exports.d.ts +0 -10
  262. package/dist/types/components/checkbox/checkbox.d.ts +0 -136
  263. package/dist/types/components/checkbox-group/checkbox-group.d.ts +0 -122
  264. package/dist/types/components/design-system-devtools/design-system-devtools.d.ts +0 -15
  265. package/dist/types/components/dialog/dialog.d.ts +0 -69
  266. package/dist/types/components/dialog/exports.d.ts +0 -10
  267. package/dist/types/components/hint/exports.d.ts +0 -2
  268. package/dist/types/components/hint/hint.d.ts +0 -20
  269. package/dist/types/components/icon/all-kit.d.ts +0 -2890
  270. package/dist/types/components/icon/data.d.ts +0 -145
  271. package/dist/types/components/icon/exports.d.ts +0 -152
  272. package/dist/types/components/icon/icon.d.ts +0 -37
  273. package/dist/types/components/icon/riverty-kit.d.ts +0 -139
  274. package/dist/types/components/icon-button/icon-button.d.ts +0 -69
  275. package/dist/types/components/illustration/data.d.ts +0 -52
  276. package/dist/types/components/illustration/exports.d.ts +0 -23
  277. package/dist/types/components/illustration/illustration.d.ts +0 -51
  278. package/dist/types/components/illustration/illustrations-ui-kit.d.ts +0 -21
  279. package/dist/types/components/input/exports.d.ts +0 -10
  280. package/dist/types/components/input/input.d.ts +0 -300
  281. package/dist/types/components/input-code/exports.d.ts +0 -4
  282. package/dist/types/components/input-code/input-code.d.ts +0 -175
  283. package/dist/types/components/input-date/exports.d.ts +0 -5
  284. package/dist/types/components/input-date/input-date.d.ts +0 -172
  285. package/dist/types/components/input-password/exports.d.ts +0 -1
  286. package/dist/types/components/input-password/input-password.d.ts +0 -184
  287. package/dist/types/components/input-phone-number/input-phone-number.d.ts +0 -128
  288. package/dist/types/components/label/label.d.ts +0 -9
  289. package/dist/types/components/list-item/list-item/exports.d.ts +0 -4
  290. package/dist/types/components/list-item/list-item/list-item.d.ts +0 -61
  291. package/dist/types/components/pagination/exports.d.ts +0 -6
  292. package/dist/types/components/pagination/pagination.d.ts +0 -140
  293. package/dist/types/components/panel/exports.d.ts +0 -2
  294. package/dist/types/components/panel/panel.d.ts +0 -56
  295. package/dist/types/components/popover/exports.d.ts +0 -6
  296. package/dist/types/components/popover/popover.d.ts +0 -131
  297. package/dist/types/components/popover-action/popover-action.d.ts +0 -24
  298. package/dist/types/components/popover-content/popover-content.d.ts +0 -22
  299. package/dist/types/components/popover-headline/popover-headline.d.ts +0 -6
  300. package/dist/types/components/popover-trigger/exports.d.ts +0 -2
  301. package/dist/types/components/popover-trigger/popover-trigger.d.ts +0 -31
  302. package/dist/types/components/progress-bar/progress-bar.d.ts +0 -10
  303. package/dist/types/components/radio-button/radio-button.d.ts +0 -92
  304. package/dist/types/components/radio-button-description/radio-button-description.d.ts +0 -8
  305. package/dist/types/components/radio-button-leading/radio-button-leading.d.ts +0 -8
  306. package/dist/types/components/radio-button-title/radio-button-title.d.ts +0 -8
  307. package/dist/types/components/radio-button-trailing/radio-button-trailing.d.ts +0 -8
  308. package/dist/types/components/radio-group/exports.d.ts +0 -2
  309. package/dist/types/components/radio-group/radio-group.d.ts +0 -178
  310. package/dist/types/components/select/exports.d.ts +0 -2
  311. package/dist/types/components/select/select.d.ts +0 -317
  312. package/dist/types/components/select-option/select-option.d.ts +0 -113
  313. package/dist/types/components/skip-link/exports.d.ts +0 -2
  314. package/dist/types/components/skip-link/skip-link.d.ts +0 -6
  315. package/dist/types/components/stepper/stepper.d.ts +0 -22
  316. package/dist/types/components/stepper-item/stepper-item.d.ts +0 -23
  317. package/dist/types/components/tab/tab.d.ts +0 -23
  318. package/dist/types/components/tab-panel/tab-panel.d.ts +0 -7
  319. package/dist/types/components/tabs/tabs.d.ts +0 -49
  320. package/dist/types/components/tabs-list/exports.d.ts +0 -4
  321. package/dist/types/components/tabs-list/tabs-list.d.ts +0 -41
  322. package/dist/types/components/textarea/exports.d.ts +0 -2
  323. package/dist/types/components/textarea/textarea.d.ts +0 -158
  324. package/dist/types/components/toast/exports.d.ts +0 -6
  325. package/dist/types/components/toast/toast.d.ts +0 -146
  326. package/dist/types/components/toast-group/exports.d.ts +0 -2
  327. package/dist/types/components/toast-group/toast-group.d.ts +0 -9
  328. package/dist/types/components/tooltip/exports.d.ts +0 -6
  329. package/dist/types/components/tooltip/tooltip.d.ts +0 -131
  330. package/dist/types/components.d.ts +0 -6286
  331. package/dist/types/index.d.ts +0 -1
  332. package/dist/types/stencil-public-runtime.d.ts +0 -1732
  333. package/dist/types/types/jsx-shim.d.ts +0 -13
  334. package/dist/types/types/style-observer.d.ts +0 -20
  335. package/dist/types/utils/focusable.d.ts +0 -1
  336. package/dist/types/utils/formData.d.ts +0 -1
  337. package/dist/types/utils/theming.d.ts +0 -15
  338. package/dist/web-components/index.esm.js +0 -0
  339. package/dist/web-components/p-02b22f8e.entry.js +0 -1
  340. package/dist/web-components/p-075a8dc8.entry.js +0 -1
  341. package/dist/web-components/p-0a34d33b.entry.js +0 -1
  342. package/dist/web-components/p-10cc9983.entry.js +0 -1
  343. package/dist/web-components/p-253068b9.entry.js +0 -1
  344. package/dist/web-components/p-3b8c8951.entry.js +0 -1
  345. package/dist/web-components/p-3beacdab.entry.js +0 -1
  346. package/dist/web-components/p-4214867d.entry.js +0 -1
  347. package/dist/web-components/p-42c857e9.entry.js +0 -1
  348. package/dist/web-components/p-44f87e16.entry.js +0 -1
  349. package/dist/web-components/p-477614c5.entry.js +0 -1
  350. package/dist/web-components/p-495ba3d2.entry.js +0 -1
  351. package/dist/web-components/p-4Uv3PpKT.js +0 -1
  352. package/dist/web-components/p-4de76291.entry.js +0 -1
  353. package/dist/web-components/p-55600d47.entry.js +0 -1
  354. package/dist/web-components/p-562051aa.entry.js +0 -1
  355. package/dist/web-components/p-5b850e0f.entry.js +0 -1
  356. package/dist/web-components/p-6013dfc8.entry.js +0 -1
  357. package/dist/web-components/p-62e7ae04.entry.js +0 -1
  358. package/dist/web-components/p-71519d37.entry.js +0 -1
  359. package/dist/web-components/p-88f7b47f.entry.js +0 -1
  360. package/dist/web-components/p-8975a6a3.entry.js +0 -1
  361. package/dist/web-components/p-8e125826.entry.js +0 -1
  362. package/dist/web-components/p-91cc0bde.entry.js +0 -1
  363. package/dist/web-components/p-93435fcd.entry.js +0 -1
  364. package/dist/web-components/p-947969d7.entry.js +0 -1
  365. package/dist/web-components/p-95396b5c.entry.js +0 -1
  366. package/dist/web-components/p-9de3a1a5.entry.js +0 -1
  367. package/dist/web-components/p-9f583ed1.entry.js +0 -1
  368. package/dist/web-components/p-B9rsR6cQ.js +0 -1
  369. package/dist/web-components/p-CTxpqopm.js +0 -2
  370. package/dist/web-components/p-DQuL1Twl.js +0 -1
  371. package/dist/web-components/p-DvLT8-y3.js +0 -1
  372. package/dist/web-components/p-a1086abe.entry.js +0 -1
  373. package/dist/web-components/p-bbba6d79.entry.js +0 -1
  374. package/dist/web-components/p-bde44ec4.entry.js +0 -1
  375. package/dist/web-components/p-bfc7e6c0.entry.js +0 -1
  376. package/dist/web-components/p-c1030394.entry.js +0 -1
  377. package/dist/web-components/p-c80a5541.entry.js +0 -1
  378. package/dist/web-components/p-c96ee61a.entry.js +0 -1
  379. package/dist/web-components/p-caf8f067.entry.js +0 -1
  380. package/dist/web-components/p-cc363c3d.entry.js +0 -1
  381. package/dist/web-components/p-cf4ff357.entry.js +0 -1
  382. package/dist/web-components/p-d0310ed4.entry.js +0 -1
  383. package/dist/web-components/p-d1412932.entry.js +0 -1
  384. package/dist/web-components/p-d2447e30.entry.js +0 -1
  385. package/dist/web-components/p-dc9cca06.entry.js +0 -1
  386. package/dist/web-components/p-e5b943a2.entry.js +0 -1
  387. package/dist/web-components/p-e67b13df.entry.js +0 -1
  388. package/dist/web-components/p-efec231a.entry.js +0 -1
  389. package/dist/web-components/p-f867e4c3.entry.js +0 -1
  390. package/dist/web-components/p-ff6b1b8f.entry.js +0 -1
  391. package/dist/web-components/p-ky1yonnS.js +0 -1
  392. package/dist/web-components/web-components.esm.js +0 -1
  393. package/loader/cdn.js +0 -1
  394. package/loader/index.cjs.js +0 -1
  395. package/loader/index.d.ts +0 -24
  396. package/loader/index.es2017.js +0 -1
  397. package/loader/index.js +0 -2
@@ -1,1020 +0,0 @@
1
- import { Host, h } from "@stencil/core";
2
- import { appendControlToFormData } from "../../utils/formData";
3
- export class RadioGroup {
4
- constructor() {
5
- /** Controls the style variation of the radio buttons. */
6
- this.variant = 'standard';
7
- /**
8
- * When set to `true`, automatically focuses the first enabled radio button in the group on mount.
9
- * This will focus the selected radio button if one exists, or the first enabled radio button otherwise.
10
- */
11
- this.autofocus = false;
12
- this.validityState = '';
13
- this.validityMessage = '';
14
- /**
15
- * Initial attributes state
16
- * */
17
- this.initial = {};
18
- /** Unique id */
19
- this.uniqueId = `r-radio-group-${Date.now().toString(32)}${Math.random().toString(32)}`.replace(/\./g, '');
20
- this.getValidityStateData = element => {
21
- let validityState = '';
22
- let validityMessage = '';
23
- if (element === null)
24
- return { validityState, validityMessage };
25
- for (const state in element.validity) {
26
- if (element.validity[state]) {
27
- validityState = state;
28
- if (this[state + 'Message']) {
29
- validityMessage = this[state + 'Message'];
30
- return { validityState, validityMessage };
31
- }
32
- validityMessage = element.validationMessage;
33
- }
34
- }
35
- return { validityState, validityMessage };
36
- };
37
- this.validateFormElement = (element = null) => {
38
- if (element === null)
39
- return;
40
- if (this.isNoValidate)
41
- return;
42
- if (this.error)
43
- return;
44
- const { validityState, validityMessage } = this.getValidityStateData(element);
45
- this.validityState = validityState;
46
- this.validityMessage = validityMessage;
47
- const isValid = this.validityState === 'valid';
48
- this.valid = isValid;
49
- this.invalid = !isValid;
50
- this.rValidate.emit({
51
- state: this.validityState,
52
- message: this.validityMessage
53
- });
54
- };
55
- this.onSubmitForm = (event) => {
56
- if (this.isNoValidate)
57
- return;
58
- this.validateFormElement(this.nativeSelectedEl || this.nativeFirstEl);
59
- if (!this.hasSelected || this.invalid) {
60
- event.preventDefault();
61
- event.stopPropagation();
62
- }
63
- };
64
- this.onResetForm = () => {
65
- this.reset();
66
- };
67
- this.onLabelClick = () => {
68
- const radioButtonEl = this.radioButtonElements[0].shadowRoot.querySelector('[type="radio"]');
69
- radioButtonEl === null || radioButtonEl === void 0 ? void 0 : radioButtonEl.focus();
70
- };
71
- this.contributeToFormData = (event) => {
72
- appendControlToFormData(this.host, event.formData);
73
- };
74
- /**
75
- * Handles parent radio group value changes for nested groups.
76
- * If this is a nested group with a parentValue specified, it will reset when
77
- * the parent group's value changes to something other than the parentValue.
78
- */
79
- this.onParentGroupChange = (event) => {
80
- // Only proceed if this group has a parentValue specified (indicating it's nested)
81
- if (!this.parentValue)
82
- return;
83
- const parentNewValue = event.detail.value;
84
- // If parent changed to a different value than our parentValue, reset this nested group
85
- if (parentNewValue !== this.parentValue) {
86
- this.clearValue();
87
- // Emit rReset event to notify that the nested group was automatically reset
88
- this.rReset.emit({
89
- element: this.host,
90
- value: null
91
- });
92
- }
93
- };
94
- }
95
- rChangeAction(event) {
96
- // Only handle events from direct children, not from nested radio-groups
97
- const targetElement = event.target;
98
- const isDirectChild = targetElement.parentElement === this.host;
99
- if (!isDirectChild) {
100
- return; // Ignore events from nested radio-groups
101
- }
102
- // Stop event from bubbling to parent radio-groups
103
- event.stopPropagation();
104
- this.resetValidity();
105
- this.setValue(event.detail.value);
106
- }
107
- /**
108
- * Resets the radio group to its initial state.
109
- * This method clears the validity state and message, and sets the value and validity
110
- * to their initial values.
111
- */
112
- radioButtonClickAction(event) {
113
- // Only handle events from direct children, not from nested radio-groups
114
- const targetElement = event.target;
115
- const isDirectChild = targetElement.parentElement === this.host;
116
- if (!isDirectChild) {
117
- return; // Ignore events from nested radio-groups
118
- }
119
- // Stop event from bubbling to parent radio-groups
120
- event.stopPropagation();
121
- !event.target.disabled && event.target.select();
122
- }
123
- get selectedIndex() {
124
- return Array.from(this.radioButtonElements).findIndex(el => el.hasAttribute('checked'));
125
- }
126
- get prevIndex() {
127
- const isNoSelected = this.selectedIndex === -1;
128
- const isnativeFirstElement = this.selectedIndex === 0;
129
- return isnativeFirstElement || isNoSelected ? this.radioButtonElements.length - 1 : this.selectedIndex - 1;
130
- }
131
- get focusedRadioButtonEl() {
132
- // Query all descendants to find focused element, but it will only be used for direct children
133
- return this.host.querySelector('r-radio-button.focused');
134
- }
135
- get focusedRadioButtonElIndex() {
136
- return Array.from(this.radioButtonElements).indexOf(this.focusedRadioButtonEl);
137
- }
138
- get nextIndex() {
139
- const isNoSelected = this.selectedIndex === -1;
140
- if (isNoSelected) {
141
- return this.focusedRadioButtonElIndex === -1 ? 0 : this.focusedRadioButtonElIndex + 1;
142
- }
143
- const isLastElement = this.selectedIndex === this.radioButtonElements.length - 1;
144
- return isLastElement ? 0 : this.selectedIndex + 1;
145
- }
146
- radioButtonKeydownAction(event) {
147
- var _a;
148
- // Only handle events from direct children, not from nested radio-groups
149
- const targetElement = event.target;
150
- const isDirectChild = targetElement.parentElement === this.host;
151
- if (!isDirectChild) {
152
- return; // Ignore events from nested radio-groups
153
- }
154
- // Stop event from bubbling to parent radio-groups
155
- event.stopPropagation();
156
- switch (event.detail.code) {
157
- case 'ArrowUp':
158
- case 'ArrowLeft':
159
- // Select previous radio button
160
- this.radioButtonElements[this.prevIndex].select();
161
- break;
162
- case 'ArrowDown':
163
- case 'ArrowRight':
164
- // Select next radio button
165
- this.radioButtonElements[this.nextIndex].select();
166
- break;
167
- case 'Enter': {
168
- const submitEl = this.host.querySelector('[type="submit"]') ||
169
- ((_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.querySelector('[type="submit"]'));
170
- if (submitEl && 'triggerClick' in submitEl) {
171
- submitEl === null || submitEl === void 0 ? void 0 : submitEl.triggerClick();
172
- }
173
- else {
174
- this.parentFormEl.requestSubmit();
175
- }
176
- break;
177
- }
178
- }
179
- }
180
- /**
181
- * Resets the validity state and message of the radio group.
182
- * This method clears the validity message and state, and sets the invalid
183
- * property to its initial value.
184
- */
185
- async resetValidity() {
186
- this.validityMessage = null;
187
- this.validityState = null;
188
- this.invalid = this.initial['invalid'];
189
- this.valid = !this.invalid;
190
- }
191
- /**
192
- * Resets the radio group to its initial state.
193
- *
194
- * This method:
195
- * - clears the validity state and message,
196
- * - sets the value and validity to initial values,
197
- * - if no initial value the radio group will be deselected,
198
- * - restores the tabindex on the first element.
199
- */
200
- async reset() {
201
- this.resetValidity();
202
- if (this.initial['value']) {
203
- this.setValue(this.initial['value']);
204
- return;
205
- }
206
- // Set default value to null
207
- this.clearValue();
208
- }
209
- /**
210
- * Sets the value of the radio group to the specified value.
211
- * If a radio button with the specified value exists, it will be selected.
212
- *
213
- * @param value - The value to set for the radio group.
214
- */
215
- async setValue(value) {
216
- const element = Array.from(this.radioButtonElements).find(el => el.value === value);
217
- if (element === undefined) {
218
- this.clearValue();
219
- return;
220
- }
221
- this.value = value;
222
- element === null || element === void 0 ? void 0 : element.select();
223
- }
224
- /**
225
- * Gets the current value of the radio group.
226
- *
227
- * @returns The current value of the radio group.
228
- */
229
- async getValue() {
230
- return this.value || null;
231
- }
232
- /**
233
- * Clears the value of the radio group and deselects all radio buttons.
234
- * This method sets the value to null and deselects all radio buttons in the group.
235
- */
236
- async clearValue() {
237
- var _a, _b, _c, _d, _e, _f;
238
- const isSelectedEqualsFirst = ((_a = this.nativeSelectedEl) === null || _a === void 0 ? void 0 : _a.value) === ((_b = this.nativeFirstEl) === null || _b === void 0 ? void 0 : _b.value);
239
- if (!isSelectedEqualsFirst) {
240
- (_c = this.nativeSelectedEl) === null || _c === void 0 ? void 0 : _c.setAttribute('tabindex', '-1');
241
- }
242
- (_d = this.nativeSelectedEl) === null || _d === void 0 ? void 0 : _d.setAttribute('tabindex', '-1');
243
- (_e = this.nativeFirstEl) === null || _e === void 0 ? void 0 : _e.setAttribute('tabindex', '0');
244
- (_f = this.selectedRadioButtonElement) === null || _f === void 0 ? void 0 : _f.removeAttribute('checked');
245
- this.value = null;
246
- }
247
- /**
248
- * Validates the radio group without triggering UI and returns a boolean indicating its validity.
249
- * @returns A boolean indicating whether the radio group is valid.
250
- */
251
- async checkValidity() {
252
- const element = this.nativeSelectedEl || this.nativeFirstEl || null;
253
- const { validityState } = this.getValidityStateData(element);
254
- return validityState === 'valid';
255
- }
256
- /**
257
- * Validates the radio group and displays the validity state.
258
- */
259
- async reportValidity() {
260
- const element = this.nativeSelectedEl || this.nativeFirstEl || null;
261
- this.validateFormElement(element);
262
- return this.validityState === 'valid';
263
- }
264
- /**
265
- * Sets a custom validity message for the radio group.
266
- * If the message is not empty, the radio group will be considered invalid.
267
- *
268
- * @param message - The custom validity message to set.
269
- */
270
- async setCustomValidity(message) {
271
- const element = this.nativeSelectedEl || this.nativeFirstEl || null;
272
- this.customErrorMessage = message;
273
- this.validateFormElement(element);
274
- }
275
- /**
276
- * Sets focus on the radio button element.
277
- * */
278
- async setFocus() {
279
- const element = this.selectedRadioButtonElement || this.radioButtonElements[0] || null;
280
- element === null || element === void 0 ? void 0 : element.setFocus();
281
- }
282
- /**
283
- * Blurs the radio button element.
284
- * */
285
- async setBlur() {
286
- var _a;
287
- (_a = this.focusedRadioButtonEl) === null || _a === void 0 ? void 0 : _a.setBlur();
288
- }
289
- /** Determine whether this element should be ignored during Constraint Validation API validation. */
290
- get isNoValidate() {
291
- var _a;
292
- return (((_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.hasAttribute('novalidate')) ||
293
- this.novalidate ||
294
- !this.required ||
295
- false);
296
- }
297
- /** Identify wrapping form element */
298
- get parentFormEl() {
299
- return this.host.closest('form') || document.querySelector(`#${this.form}`) || null;
300
- }
301
- get radioButtonElements() {
302
- // Use :scope > to only select direct children, excluding nested radio-group buttons
303
- return this.host.querySelectorAll(':scope > r-radio-button:not([disabled]:not([disabled="false"]))');
304
- }
305
- get selectedRadioButtonElement() {
306
- return Array.from(this.radioButtonElements).find(el => el.checked || el.hasAttribute('checked')) || null;
307
- }
308
- get hasSelected() {
309
- return Array.from(this.radioButtonElements).some(el => el.checked || el.hasAttribute('checked'));
310
- }
311
- get nativeSelectedEl() {
312
- var _a, _b;
313
- if (this.selectedRadioButtonElement === null)
314
- return null;
315
- return ((_b = (_a = this.selectedRadioButtonElement) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('.r-radio-button--input')) || null;
316
- }
317
- get nativeFirstEl() {
318
- var _a, _b;
319
- return ((_b = (_a = this.radioButtonElements[0]) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('.r-radio-button--input')) || null;
320
- }
321
- passPropsToGroupItems(props = {}) {
322
- Object.entries(props).forEach(([key, value]) => {
323
- this.radioButtonElements.forEach(el => {
324
- if (typeof value === 'string')
325
- el.setAttribute(key, value);
326
- if (typeof value === 'boolean' && value)
327
- el.setAttribute(key, '');
328
- });
329
- });
330
- }
331
- selectGroupItemByValue() {
332
- if (this.hasSelected && !this.value) {
333
- this.value = this.selectedRadioButtonElement.value;
334
- }
335
- this.setValue(this.value);
336
- }
337
- setTabindex() {
338
- const el = this.nativeSelectedEl || this.nativeFirstEl;
339
- el === null || el === void 0 ? void 0 : el.setAttribute('tabindex', '0');
340
- }
341
- get parentRadioGroup() {
342
- var _a;
343
- // Find the parent radio group element
344
- return ((_a = this.host.parentElement) === null || _a === void 0 ? void 0 : _a.closest('r-radio-group')) || null;
345
- }
346
- connectFormEventListeners() {
347
- var _a, _b, _c;
348
- (_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.addEventListener('formdata', this.contributeToFormData);
349
- (_b = this.parentFormEl) === null || _b === void 0 ? void 0 : _b.addEventListener('reset', this.onResetForm);
350
- (_c = this.parentFormEl) === null || _c === void 0 ? void 0 : _c.addEventListener('submit', this.onSubmitForm, { capture: true });
351
- }
352
- disconnectFormEventListeners() {
353
- var _a, _b, _c;
354
- (_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.removeEventListener('formdata', this.contributeToFormData);
355
- (_b = this.parentFormEl) === null || _b === void 0 ? void 0 : _b.removeEventListener('reset', this.onResetForm);
356
- (_c = this.parentFormEl) === null || _c === void 0 ? void 0 : _c.removeEventListener('submit', this.onSubmitForm);
357
- }
358
- connectParentGroupListener() {
359
- // Only connect if this is a nested group (has parentValue specified)
360
- if (this.parentValue && this.parentRadioGroup) {
361
- this.parentRadioGroup.addEventListener('rChange', this.onParentGroupChange);
362
- }
363
- }
364
- disconnectParentGroupListener() {
365
- if (this.parentValue && this.parentRadioGroup) {
366
- this.parentRadioGroup.removeEventListener('rChange', this.onParentGroupChange);
367
- }
368
- }
369
- get ariaDescribedBy() {
370
- const messageId = `${this.uniqueId}-message`;
371
- return this.hint ? `${this.uniqueId}-hint ${messageId}` : messageId;
372
- }
373
- connectedCallback() {
374
- this.connectFormEventListeners();
375
- this.connectParentGroupListener();
376
- }
377
- disconnectedCallback() {
378
- this.disconnectFormEventListeners();
379
- this.disconnectParentGroupListener();
380
- }
381
- componentWillLoad() {
382
- const { required, name } = this;
383
- this.passPropsToGroupItems({ required, name });
384
- // If `value` is provided: item within group with such value shall be selected
385
- this.selectGroupItemByValue();
386
- this.initial['value'] = this.value;
387
- this.initial['invalid'] = this.invalid;
388
- }
389
- componentDidLoad() {
390
- const { name, required } = this;
391
- this.passPropsToGroupItems({ name, required });
392
- this.setTabindex();
393
- if (this.autofocus) {
394
- // Use setTimeout to ensure setValue has completed and checked state is synced
395
- setTimeout(() => {
396
- this.setFocus();
397
- }, 0);
398
- }
399
- }
400
- render() {
401
- const { label, hint, fieldIndicator, error, uniqueId, invalid } = this;
402
- const fieldsetAttrs = {
403
- 'aria-invalid': `${invalid || false}`,
404
- 'aria-describedby': this.ariaDescribedBy
405
- };
406
- return (h(Host, { key: 'bd1b1d42f3efab78cf0a2cce7b1a1e2568f21765' }, h("fieldset", Object.assign({ key: 'c449667b014cf8aeea4176b0d94c82573b661182', class: "r-radio-group" }, fieldsetAttrs, { onClick: this.onLabelClick }), label &&
407
- h("legend", { key: '212e27fd8d20b31cf6d84078870ec59796bb59c6', class: "r-radio-group--label-container" }, h("r-label", { key: '69907b0e2bdb49bcdea00d1849bc0c5c4d3404ae', id: `${uniqueId}-label`, class: "r-radio-group--label", "field-indicator": fieldIndicator }, label), h("slot", { key: 'd208c147248154ba26ecc5b412233d2cf479bb68', name: "popover" })), hint &&
408
- h("r-hint", { key: 'b409e053226d88ac3619524b2d63864b49972985', id: `${uniqueId}-hint`, class: "r-radio-group--hint", role: "note" }, hint), h("div", { key: 'c8e98214e9b14f6fdcf97677b392abd14d653a56', class: "r-radio-group--content" }, h("slot", { key: '5e4aa07801e8f1bd7ec3262511d28f553d8740a7' })), h("div", { key: 'a576e8c91d33877eb677d5551ac18d10924586fd', id: `${uniqueId}-message`, "aria-live": "polite", role: "alert", class: "r-radio-group--message" }, invalid && error &&
409
- h("r-hint", { key: '98f7fa6855c0803ae5d31a3a248c146679204af9', variant: "error" }, error), this.validityState !== 'valid' && this.validityMessage &&
410
- h("r-hint", { key: 'de1997af842a7e5fdb887a830fd0fe701e4fa5ce', variant: "error" }, this.customErrorMessage || this.validityMessage)))));
411
- }
412
- static get is() { return "r-radio-group"; }
413
- static get encapsulation() { return "shadow"; }
414
- static get originalStyleUrls() {
415
- return {
416
- "$": ["radio-group.css"]
417
- };
418
- }
419
- static get styleUrls() {
420
- return {
421
- "$": ["radio-group.css"]
422
- };
423
- }
424
- static get properties() {
425
- return {
426
- "form": {
427
- "type": "string",
428
- "attribute": "form",
429
- "mutable": false,
430
- "complexType": {
431
- "original": "string",
432
- "resolved": "string",
433
- "references": {}
434
- },
435
- "required": false,
436
- "optional": true,
437
- "docs": {
438
- "tags": [],
439
- "text": "Specifies the `id` of the `<form>` to which the element belongs"
440
- },
441
- "getter": false,
442
- "setter": false,
443
- "reflect": true
444
- },
445
- "name": {
446
- "type": "string",
447
- "attribute": "name",
448
- "mutable": false,
449
- "complexType": {
450
- "original": "string",
451
- "resolved": "string",
452
- "references": {}
453
- },
454
- "required": false,
455
- "optional": true,
456
- "docs": {
457
- "tags": [],
458
- "text": "Specifies common `name` property that is passed to each `r-radio-button`"
459
- },
460
- "getter": false,
461
- "setter": false,
462
- "reflect": true
463
- },
464
- "value": {
465
- "type": "string",
466
- "attribute": "value",
467
- "mutable": true,
468
- "complexType": {
469
- "original": "string",
470
- "resolved": "string",
471
- "references": {}
472
- },
473
- "required": false,
474
- "optional": true,
475
- "docs": {
476
- "tags": [],
477
- "text": "Displays currently selected value"
478
- },
479
- "getter": false,
480
- "setter": false,
481
- "reflect": true
482
- },
483
- "novalidate": {
484
- "type": "boolean",
485
- "attribute": "novalidate",
486
- "mutable": false,
487
- "complexType": {
488
- "original": "boolean",
489
- "resolved": "boolean",
490
- "references": {}
491
- },
492
- "required": false,
493
- "optional": true,
494
- "docs": {
495
- "tags": [],
496
- "text": "Specifies if element must be ignored during validation of the form elements"
497
- },
498
- "getter": false,
499
- "setter": false,
500
- "reflect": false
501
- },
502
- "label": {
503
- "type": "string",
504
- "attribute": "label",
505
- "mutable": false,
506
- "complexType": {
507
- "original": "string",
508
- "resolved": "string",
509
- "references": {}
510
- },
511
- "required": true,
512
- "optional": false,
513
- "docs": {
514
- "tags": [],
515
- "text": "The text of the label rendered before the set of radio-buttons"
516
- },
517
- "getter": false,
518
- "setter": false,
519
- "reflect": false
520
- },
521
- "required": {
522
- "type": "boolean",
523
- "attribute": "required",
524
- "mutable": false,
525
- "complexType": {
526
- "original": "boolean",
527
- "resolved": "boolean",
528
- "references": {}
529
- },
530
- "required": false,
531
- "optional": true,
532
- "docs": {
533
- "tags": [],
534
- "text": "Specifies if radio-button within group must be checked"
535
- },
536
- "getter": false,
537
- "setter": false,
538
- "reflect": false
539
- },
540
- "fieldIndicator": {
541
- "type": "string",
542
- "attribute": "field-indicator",
543
- "mutable": false,
544
- "complexType": {
545
- "original": "string",
546
- "resolved": "string",
547
- "references": {}
548
- },
549
- "required": false,
550
- "optional": true,
551
- "docs": {
552
- "tags": [],
553
- "text": "Define the marker text if the field label is marked\nField indicator can be Required*, Optional or a translation of those two options."
554
- },
555
- "getter": false,
556
- "setter": false,
557
- "reflect": false
558
- },
559
- "valueMissingMessage": {
560
- "type": "string",
561
- "attribute": "value-missing-message",
562
- "mutable": false,
563
- "complexType": {
564
- "original": "string",
565
- "resolved": "string",
566
- "references": {}
567
- },
568
- "required": false,
569
- "optional": true,
570
- "docs": {
571
- "tags": [],
572
- "text": "Set custom message for `valueMissing` property of a ValidityState object (set by `required`) within Constrain Validation API"
573
- },
574
- "getter": false,
575
- "setter": false,
576
- "reflect": false
577
- },
578
- "valid": {
579
- "type": "boolean",
580
- "attribute": "valid",
581
- "mutable": true,
582
- "complexType": {
583
- "original": "boolean",
584
- "resolved": "boolean",
585
- "references": {}
586
- },
587
- "required": false,
588
- "optional": true,
589
- "docs": {
590
- "tags": [],
591
- "text": "Apply validation success visual style"
592
- },
593
- "getter": false,
594
- "setter": false,
595
- "reflect": true
596
- },
597
- "invalid": {
598
- "type": "boolean",
599
- "attribute": "invalid",
600
- "mutable": true,
601
- "complexType": {
602
- "original": "boolean",
603
- "resolved": "boolean",
604
- "references": {}
605
- },
606
- "required": false,
607
- "optional": true,
608
- "docs": {
609
- "tags": [],
610
- "text": "Apply validation error visual style"
611
- },
612
- "getter": false,
613
- "setter": false,
614
- "reflect": true
615
- },
616
- "error": {
617
- "type": "string",
618
- "attribute": "error",
619
- "mutable": false,
620
- "complexType": {
621
- "original": "string",
622
- "resolved": "string",
623
- "references": {}
624
- },
625
- "required": false,
626
- "optional": true,
627
- "docs": {
628
- "tags": [],
629
- "text": "Custom validation error message"
630
- },
631
- "getter": false,
632
- "setter": false,
633
- "reflect": false
634
- },
635
- "customErrorMessage": {
636
- "type": "string",
637
- "attribute": "custom-error-message",
638
- "mutable": false,
639
- "complexType": {
640
- "original": "string",
641
- "resolved": "string",
642
- "references": {}
643
- },
644
- "required": false,
645
- "optional": true,
646
- "docs": {
647
- "tags": [],
648
- "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."
649
- },
650
- "getter": false,
651
- "setter": false,
652
- "reflect": false
653
- },
654
- "hint": {
655
- "type": "string",
656
- "attribute": "hint",
657
- "mutable": false,
658
- "complexType": {
659
- "original": "string",
660
- "resolved": "string",
661
- "references": {}
662
- },
663
- "required": false,
664
- "optional": true,
665
- "docs": {
666
- "tags": [],
667
- "text": "Optional hint, visually presented under the group of radio-buttons\ngiving additional context to the user"
668
- },
669
- "getter": false,
670
- "setter": false,
671
- "reflect": false
672
- },
673
- "variant": {
674
- "type": "string",
675
- "attribute": "variant",
676
- "mutable": false,
677
- "complexType": {
678
- "original": "RadioGroupVariant",
679
- "resolved": "\"contained\" | \"standard\"",
680
- "references": {
681
- "RadioGroupVariant": {
682
- "location": "import",
683
- "path": "./exports",
684
- "id": "src/components/radio-group/exports.ts::RadioGroupVariant"
685
- }
686
- }
687
- },
688
- "required": false,
689
- "optional": false,
690
- "docs": {
691
- "tags": [],
692
- "text": "Controls the style variation of the radio buttons."
693
- },
694
- "getter": false,
695
- "setter": false,
696
- "reflect": true,
697
- "defaultValue": "'standard'"
698
- },
699
- "autofocus": {
700
- "type": "boolean",
701
- "attribute": "autofocus",
702
- "mutable": false,
703
- "complexType": {
704
- "original": "boolean",
705
- "resolved": "boolean",
706
- "references": {}
707
- },
708
- "required": false,
709
- "optional": false,
710
- "docs": {
711
- "tags": [],
712
- "text": "When set to `true`, automatically focuses the first enabled radio button in the group on mount.\nThis will focus the selected radio button if one exists, or the first enabled radio button otherwise."
713
- },
714
- "getter": false,
715
- "setter": false,
716
- "reflect": false,
717
- "defaultValue": "false"
718
- },
719
- "parentValue": {
720
- "type": "string",
721
- "attribute": "parent-value",
722
- "mutable": false,
723
- "complexType": {
724
- "original": "string",
725
- "resolved": "string",
726
- "references": {}
727
- },
728
- "required": false,
729
- "optional": true,
730
- "docs": {
731
- "tags": [],
732
- "text": "For nested radio groups: specifies the parent radio button value that this nested group belongs to.\nWhen the parent group's value changes to a different value, this nested group will be automatically reset.\nThis ensures nested selections are only maintained when their parent context is active."
733
- },
734
- "getter": false,
735
- "setter": false,
736
- "reflect": false
737
- }
738
- };
739
- }
740
- static get states() {
741
- return {
742
- "validityState": {},
743
- "validityMessage": {}
744
- };
745
- }
746
- static get events() {
747
- return [{
748
- "method": "rValidate",
749
- "name": "rValidate",
750
- "bubbles": true,
751
- "cancelable": true,
752
- "composed": true,
753
- "docs": {
754
- "tags": [],
755
- "text": "Emits event after each validation"
756
- },
757
- "complexType": {
758
- "original": "{\n state: string,\n message: string\n }",
759
- "resolved": "{ state: string; message: string; }",
760
- "references": {}
761
- }
762
- }, {
763
- "method": "rChange",
764
- "name": "rChange",
765
- "bubbles": true,
766
- "cancelable": true,
767
- "composed": true,
768
- "docs": {
769
- "tags": [],
770
- "text": "Emits `rChange` when component's value has been changed"
771
- },
772
- "complexType": {
773
- "original": "{\n element: HTMLRRadioGroupElement,\n value: any\n }",
774
- "resolved": "{ element: HTMLRRadioGroupElement; value: any; }",
775
- "references": {
776
- "HTMLRRadioGroupElement": {
777
- "location": "global",
778
- "id": "global::HTMLRRadioGroupElement"
779
- }
780
- }
781
- }
782
- }, {
783
- "method": "rReset",
784
- "name": "rReset",
785
- "bubbles": true,
786
- "cancelable": true,
787
- "composed": true,
788
- "docs": {
789
- "tags": [],
790
- "text": "Emits `rReset` when component was reset to initial state by form reset"
791
- },
792
- "complexType": {
793
- "original": "{\n element: HTMLRRadioGroupElement,\n value: any\n }",
794
- "resolved": "{ element: HTMLRRadioGroupElement; value: any; }",
795
- "references": {
796
- "HTMLRRadioGroupElement": {
797
- "location": "global",
798
- "id": "global::HTMLRRadioGroupElement"
799
- }
800
- }
801
- }
802
- }];
803
- }
804
- static get methods() {
805
- return {
806
- "resetValidity": {
807
- "complexType": {
808
- "signature": "() => Promise<void>",
809
- "parameters": [],
810
- "references": {
811
- "Promise": {
812
- "location": "global",
813
- "id": "global::Promise"
814
- }
815
- },
816
- "return": "Promise<void>"
817
- },
818
- "docs": {
819
- "text": "Resets the validity state and message of the radio group.\nThis method clears the validity message and state, and sets the invalid\nproperty to its initial value.",
820
- "tags": []
821
- }
822
- },
823
- "reset": {
824
- "complexType": {
825
- "signature": "() => Promise<void>",
826
- "parameters": [],
827
- "references": {
828
- "Promise": {
829
- "location": "global",
830
- "id": "global::Promise"
831
- }
832
- },
833
- "return": "Promise<void>"
834
- },
835
- "docs": {
836
- "text": "Resets the radio group to its initial state.\n\nThis method:\n- clears the validity state and message, \n- sets the value and validity to initial values,\n- if no initial value the radio group will be deselected,\n- restores the tabindex on the first element.",
837
- "tags": []
838
- }
839
- },
840
- "setValue": {
841
- "complexType": {
842
- "signature": "(value: string | null) => Promise<void>",
843
- "parameters": [{
844
- "name": "value",
845
- "type": "string",
846
- "docs": "- The value to set for the radio group."
847
- }],
848
- "references": {
849
- "Promise": {
850
- "location": "global",
851
- "id": "global::Promise"
852
- }
853
- },
854
- "return": "Promise<void>"
855
- },
856
- "docs": {
857
- "text": "Sets the value of the radio group to the specified value.\nIf a radio button with the specified value exists, it will be selected.",
858
- "tags": [{
859
- "name": "param",
860
- "text": "value - The value to set for the radio group."
861
- }]
862
- }
863
- },
864
- "getValue": {
865
- "complexType": {
866
- "signature": "() => Promise<string | null>",
867
- "parameters": [],
868
- "references": {
869
- "Promise": {
870
- "location": "global",
871
- "id": "global::Promise"
872
- }
873
- },
874
- "return": "Promise<string>"
875
- },
876
- "docs": {
877
- "text": "Gets the current value of the radio group.",
878
- "tags": [{
879
- "name": "returns",
880
- "text": "The current value of the radio group."
881
- }]
882
- }
883
- },
884
- "clearValue": {
885
- "complexType": {
886
- "signature": "() => Promise<void>",
887
- "parameters": [],
888
- "references": {
889
- "Promise": {
890
- "location": "global",
891
- "id": "global::Promise"
892
- }
893
- },
894
- "return": "Promise<void>"
895
- },
896
- "docs": {
897
- "text": "Clears the value of the radio group and deselects all radio buttons.\nThis method sets the value to null and deselects all radio buttons in the group.",
898
- "tags": []
899
- }
900
- },
901
- "checkValidity": {
902
- "complexType": {
903
- "signature": "() => Promise<boolean>",
904
- "parameters": [],
905
- "references": {
906
- "Promise": {
907
- "location": "global",
908
- "id": "global::Promise"
909
- }
910
- },
911
- "return": "Promise<boolean>"
912
- },
913
- "docs": {
914
- "text": "Validates the radio group without triggering UI and returns a boolean indicating its validity.",
915
- "tags": [{
916
- "name": "returns",
917
- "text": "A boolean indicating whether the radio group is valid."
918
- }]
919
- }
920
- },
921
- "reportValidity": {
922
- "complexType": {
923
- "signature": "() => Promise<boolean>",
924
- "parameters": [],
925
- "references": {
926
- "Promise": {
927
- "location": "global",
928
- "id": "global::Promise"
929
- }
930
- },
931
- "return": "Promise<boolean>"
932
- },
933
- "docs": {
934
- "text": "Validates the radio group and displays the validity state.",
935
- "tags": []
936
- }
937
- },
938
- "setCustomValidity": {
939
- "complexType": {
940
- "signature": "(message: string) => Promise<void>",
941
- "parameters": [{
942
- "name": "message",
943
- "type": "string",
944
- "docs": "- The custom validity message to set."
945
- }],
946
- "references": {
947
- "Promise": {
948
- "location": "global",
949
- "id": "global::Promise"
950
- }
951
- },
952
- "return": "Promise<void>"
953
- },
954
- "docs": {
955
- "text": "Sets a custom validity message for the radio group.\nIf the message is not empty, the radio group will be considered invalid.",
956
- "tags": [{
957
- "name": "param",
958
- "text": "message - The custom validity message to set."
959
- }]
960
- }
961
- },
962
- "setFocus": {
963
- "complexType": {
964
- "signature": "() => Promise<void>",
965
- "parameters": [],
966
- "references": {
967
- "Promise": {
968
- "location": "global",
969
- "id": "global::Promise"
970
- }
971
- },
972
- "return": "Promise<void>"
973
- },
974
- "docs": {
975
- "text": "Sets focus on the radio button element.",
976
- "tags": []
977
- }
978
- },
979
- "setBlur": {
980
- "complexType": {
981
- "signature": "() => Promise<void>",
982
- "parameters": [],
983
- "references": {
984
- "Promise": {
985
- "location": "global",
986
- "id": "global::Promise"
987
- }
988
- },
989
- "return": "Promise<void>"
990
- },
991
- "docs": {
992
- "text": "Blurs the radio button element.",
993
- "tags": []
994
- }
995
- }
996
- };
997
- }
998
- static get elementRef() { return "host"; }
999
- static get listeners() {
1000
- return [{
1001
- "name": "rChange",
1002
- "method": "rChangeAction",
1003
- "target": undefined,
1004
- "capture": false,
1005
- "passive": false
1006
- }, {
1007
- "name": "radioButtonClick",
1008
- "method": "radioButtonClickAction",
1009
- "target": undefined,
1010
- "capture": false,
1011
- "passive": false
1012
- }, {
1013
- "name": "radioButtonKeydown",
1014
- "method": "radioButtonKeydownAction",
1015
- "target": undefined,
1016
- "capture": false,
1017
- "passive": false
1018
- }];
1019
- }
1020
- }