@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,1051 +0,0 @@
1
- import { Host, h } from "@stencil/core";
2
- import { appendControlToFormData } from "../../utils/formData";
3
- export class InputPassword {
4
- constructor() {
5
- /** The value of the password input */
6
- this.value = '';
7
- /**
8
- * Defines label for characters show button.
9
- * */
10
- this.showPasswordAriaLabel = 'Show password.';
11
- /**
12
- * Defines label for characters hide button.
13
- * */
14
- this.hidePasswordAriaLabel = 'Hide password.';
15
- /** Custom message when the password is shown to alert screen reader users. */
16
- this.shownPasswordMessage = "Your password is shown.";
17
- /** Custom message when the password is hidden to alert screen reader users. */
18
- this.hiddenPasswordMessage = "Your password is hidden.";
19
- this.showed = false;
20
- /** Validity state passed from validateFormElement function after validation */
21
- this.validityState = '';
22
- /** Validity message passed from validateFormElement function after validation */
23
- this.validityMessage = '';
24
- /**
25
- * Initial attributes state
26
- * */
27
- this.initial = {};
28
- this.onShowClick = (event) => {
29
- event.stopPropagation();
30
- this.toggleShow();
31
- };
32
- this.alertOnPasswordVisibilityChange = () => {
33
- this.passwordVisibilityChangeAlertContainer.innerText = this.showed ? this.shownPasswordMessage : this.hiddenPasswordMessage;
34
- this.passwordVisibilityTimer = setTimeout(() => {
35
- this.passwordVisibilityChangeAlertContainer.innerText = '';
36
- clearTimeout(this.passwordVisibilityTimer);
37
- }, 2000);
38
- };
39
- this.onInput = (event) => {
40
- if (this.readonly)
41
- return;
42
- this.value = event.detail.value;
43
- const { host, value } = this;
44
- this.rInput.emit({ element: host, value });
45
- };
46
- this.onChange = (event) => {
47
- if (this.readonly)
48
- return;
49
- this.value = event.detail.value;
50
- const { host, value } = this;
51
- this.rChange.emit({ element: host, value });
52
- };
53
- this.getValidityStateData = (element) => {
54
- let validityState = '';
55
- let validityMessage = '';
56
- for (const state in element.validity) {
57
- if (element.validity[state]) {
58
- validityState = state;
59
- if (this[state + 'Message']) {
60
- validityMessage = this[state + 'Message'];
61
- return { validityState, validityMessage };
62
- }
63
- validityMessage = element.validationMessage;
64
- }
65
- }
66
- return { validityState, validityMessage };
67
- };
68
- this.validateFormElement = (element) => {
69
- if (element === null)
70
- return;
71
- if (this.isNoValidate)
72
- return;
73
- if (this.error)
74
- return;
75
- const { validityState, validityMessage } = this.getValidityStateData(element.shadowRoot.querySelector('input'));
76
- this.validityState = validityState;
77
- this.validityMessage = validityMessage;
78
- const isValid = this.validityState === 'valid';
79
- this.valid = isValid;
80
- this.invalid = !isValid;
81
- this.rValidate.emit({
82
- state: this.validityState,
83
- message: this.validityMessage
84
- });
85
- };
86
- this.contributeToFormData = (event) => {
87
- appendControlToFormData(this.nativeElement || this.host, event.formData);
88
- };
89
- this.onResetForm = () => {
90
- if (this.readonly)
91
- return;
92
- this.validityState = null;
93
- this.validityMessage = null;
94
- this.value = this.initial['value'];
95
- this.invalid = this.initial['invalid'];
96
- this.valid = !this.invalid;
97
- const { host, value } = this;
98
- this.rReset.emit({ element: host, value });
99
- };
100
- this.onSubmitForm = async (event) => {
101
- if (this.isNoValidate)
102
- return;
103
- this.validateFormElement(this.nativeElement);
104
- if (this.invalid) {
105
- event.preventDefault();
106
- event.stopPropagation();
107
- }
108
- };
109
- this.handleKeyup = async (event) => {
110
- var _a, _b;
111
- if (this.readonly)
112
- return;
113
- if (event.code !== 'Enter')
114
- return;
115
- this.validateFormElement(this.nativeElement);
116
- if (this.invalid && !this.isNoValidate)
117
- return;
118
- const submitEl = this.host.querySelector('[type="submit"]') ||
119
- ((_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.querySelector('[type="submit"]'));
120
- if (submitEl && 'triggerClick' in submitEl) {
121
- submitEl === null || submitEl === void 0 ? void 0 : submitEl.triggerClick();
122
- }
123
- else {
124
- (_b = this.parentFormEl) === null || _b === void 0 ? void 0 : _b.requestSubmit();
125
- }
126
- };
127
- this.handleBlur = () => {
128
- if (this.readonly)
129
- return;
130
- this.validateFormElement(this.nativeElement);
131
- };
132
- }
133
- /**
134
- * Toggle password text visibility.
135
- * */
136
- async toggleShow() {
137
- this.showed ? await this.hidePassword() : await this.showPassword();
138
- }
139
- /**
140
- * Show password text.
141
- * */
142
- async showPassword() {
143
- this.showed = true;
144
- this.alertOnPasswordVisibilityChange();
145
- this.rVisibilityChange.emit({ element: this.host, visible: true });
146
- }
147
- /**
148
- * Hide password text.
149
- * */
150
- async hidePassword() {
151
- this.showed = false;
152
- this.alertOnPasswordVisibilityChange();
153
- this.rVisibilityChange.emit({ element: this.host, visible: false });
154
- }
155
- /** Get the input value */
156
- async getValue() {
157
- return this.value || '';
158
- }
159
- /** Set the input value */
160
- async setValue(value) {
161
- if (this.readonly)
162
- return;
163
- this.value = value;
164
- this.validateFormElement(this.nativeElement);
165
- }
166
- /**
167
- * Validates the input password without triggering UI and returns a boolean indicating its validity.
168
- * @returns A boolean indicating whether the input password is valid.
169
- */
170
- async checkValidity() {
171
- const { validityState } = this.getValidityStateData(this.nativeElement.shadowRoot.querySelector('input'));
172
- return validityState === 'valid';
173
- }
174
- /** Identify wrapping form element */
175
- get parentFormEl() {
176
- return this.host.closest('form') || document.querySelector(`#${this.form}`) || null;
177
- }
178
- /**
179
- * Determine whether this element should be ignored
180
- * during Constraint Validation API validation.
181
- * */
182
- get isNoValidate() {
183
- var _a;
184
- return (((_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.hasAttribute('novalidate')) ||
185
- this.novalidate ||
186
- false);
187
- }
188
- get hasError() {
189
- var _a;
190
- return this.invalid && !!((_a = this.error) === null || _a === void 0 ? void 0 : _a.length);
191
- }
192
- get hasValidationError() {
193
- var _a, _b;
194
- return this.validityState !== 'valid' && (!!((_a = this.customErrorMessage) === null || _a === void 0 ? void 0 : _a.length) || !!((_b = this.validityMessage) === null || _b === void 0 ? void 0 : _b.length));
195
- }
196
- get hasMessage() {
197
- return this.hasError || this.hasValidationError;
198
- }
199
- componentWillLoad() {
200
- this.initial['value'] = this.value;
201
- this.initial['invalid'] = this.invalid;
202
- }
203
- connectFormEventListeners() {
204
- var _a, _b, _c;
205
- (_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.addEventListener('formdata', this.contributeToFormData);
206
- (_b = this.parentFormEl) === null || _b === void 0 ? void 0 : _b.addEventListener('submit', this.onSubmitForm, { capture: true });
207
- (_c = this.parentFormEl) === null || _c === void 0 ? void 0 : _c.addEventListener('reset', this.onResetForm);
208
- }
209
- disconnectFormEventListeners() {
210
- var _a, _b, _c;
211
- (_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.removeEventListener('formdata', this.contributeToFormData);
212
- (_b = this.parentFormEl) === null || _b === void 0 ? void 0 : _b.removeEventListener('submit', this.onSubmitForm);
213
- (_c = this.parentFormEl) === null || _c === void 0 ? void 0 : _c.removeEventListener('reset', this.onResetForm);
214
- }
215
- connectedCallback() {
216
- this.connectFormEventListeners();
217
- }
218
- disconnectedCallback() {
219
- this.disconnectFormEventListeners();
220
- }
221
- render() {
222
- const { name, placeholder, required, minlength, maxlength, pattern, fieldIndicator, value, disabled, form, invalid, valid, hint, label, fullWidth, showPasswordAriaLabel, hidePasswordAriaLabel, showed, readonly, passwordrules, autocomplete, tooLongMessage, tooShortMessage, patternMismatchMessage } = this;
223
- const inputAttrs = {
224
- name,
225
- placeholder,
226
- required,
227
- minlength,
228
- maxlength,
229
- pattern,
230
- fieldIndicator,
231
- value,
232
- disabled,
233
- form,
234
- invalid,
235
- valid,
236
- hint,
237
- label,
238
- fullWidth,
239
- novalidate: true,
240
- readonly,
241
- passwordrules,
242
- autocomplete,
243
- tooLongMessage,
244
- tooShortMessage,
245
- patternMismatchMessage
246
- };
247
- return (h(Host, { key: 'c4f877854375e558677df5f33682e37e048382be' }, h("r-input", Object.assign({ key: '97941b514a5f4f48b7c043ea0641cc5f26ab2ced' }, inputAttrs, { ref: (el) => this.nativeElement = el, type: showed ? 'text' : 'password', onRInput: this.onInput, onRChange: this.onChange, onKeyUp: this.handleKeyup, onRBlur: this.handleBlur }), h("r-icon", { key: '6c59c76305a41bcd4c0bfc109f7e207a871118e5', name: "padlock-closed", size: "s", slot: "leading" }), h("slot", { key: '921c7c3309a362a0e1d273e382bc43fe9a627257', name: "popover", slot: "popover" }), h("r-icon-button", { key: 'cd258b86fec5b52818fe711b078514feee825866', slot: "trailing", name: showed ? 'eye-crossed-out' : 'eye', size: "s", disabled: disabled, label: showed ? hidePasswordAriaLabel : showPasswordAriaLabel, onClick: this.onShowClick }), this.hasMessage &&
248
- h("r-hint", { key: '667984f03375ec43be01732309020c45c81d9306', slot: "message", variant: "error" }, this.hasError && this.error, this.hasValidationError && (this.customErrorMessage || this.validityMessage))), h("div", { key: '6d950d7eb59905342e328047f45f9b5ae3f6f8cb', class: "visually-hidden", ref: el => this.passwordVisibilityChangeAlertContainer = el, "aria-live": "polite" })));
249
- }
250
- static get is() { return "r-input-password"; }
251
- static get encapsulation() { return "shadow"; }
252
- static get originalStyleUrls() {
253
- return {
254
- "$": ["input-password.css"]
255
- };
256
- }
257
- static get styleUrls() {
258
- return {
259
- "$": ["input-password.css"]
260
- };
261
- }
262
- static get properties() {
263
- return {
264
- "form": {
265
- "type": "string",
266
- "attribute": "form",
267
- "mutable": false,
268
- "complexType": {
269
- "original": "string",
270
- "resolved": "string",
271
- "references": {}
272
- },
273
- "required": false,
274
- "optional": true,
275
- "docs": {
276
- "tags": [],
277
- "text": "Specifies the `id` of the `<form>` to which the element belongs"
278
- },
279
- "getter": false,
280
- "setter": false,
281
- "reflect": false
282
- },
283
- "novalidate": {
284
- "type": "boolean",
285
- "attribute": "novalidate",
286
- "mutable": false,
287
- "complexType": {
288
- "original": "boolean",
289
- "resolved": "boolean",
290
- "references": {}
291
- },
292
- "required": false,
293
- "optional": true,
294
- "docs": {
295
- "tags": [],
296
- "text": "Specifies if element must be ignored during validation of the form elements"
297
- },
298
- "getter": false,
299
- "setter": false,
300
- "reflect": false
301
- },
302
- "name": {
303
- "type": "string",
304
- "attribute": "name",
305
- "mutable": false,
306
- "complexType": {
307
- "original": "string",
308
- "resolved": "string",
309
- "references": {}
310
- },
311
- "required": false,
312
- "optional": false,
313
- "docs": {
314
- "tags": [],
315
- "text": "Specifies a name for a input"
316
- },
317
- "getter": false,
318
- "setter": false,
319
- "reflect": true
320
- },
321
- "value": {
322
- "type": "string",
323
- "attribute": "value",
324
- "mutable": true,
325
- "complexType": {
326
- "original": "string | null",
327
- "resolved": "string",
328
- "references": {}
329
- },
330
- "required": false,
331
- "optional": true,
332
- "docs": {
333
- "tags": [],
334
- "text": "The value of the password input"
335
- },
336
- "getter": false,
337
- "setter": false,
338
- "reflect": true,
339
- "defaultValue": "''"
340
- },
341
- "placeholder": {
342
- "type": "string",
343
- "attribute": "placeholder",
344
- "mutable": false,
345
- "complexType": {
346
- "original": "string",
347
- "resolved": "string",
348
- "references": {}
349
- },
350
- "required": false,
351
- "optional": true,
352
- "docs": {
353
- "tags": [],
354
- "text": "Specifies a short hint that describes the expected value of a input"
355
- },
356
- "getter": false,
357
- "setter": false,
358
- "reflect": false
359
- },
360
- "label": {
361
- "type": "string",
362
- "attribute": "label",
363
- "mutable": false,
364
- "complexType": {
365
- "original": "string",
366
- "resolved": "string",
367
- "references": {}
368
- },
369
- "required": true,
370
- "optional": false,
371
- "docs": {
372
- "tags": [],
373
- "text": "The text on the label"
374
- },
375
- "getter": false,
376
- "setter": false,
377
- "reflect": true
378
- },
379
- "fieldIndicator": {
380
- "type": "string",
381
- "attribute": "field-indicator",
382
- "mutable": false,
383
- "complexType": {
384
- "original": "string",
385
- "resolved": "string",
386
- "references": {}
387
- },
388
- "required": false,
389
- "optional": true,
390
- "docs": {
391
- "tags": [],
392
- "text": "Text of an additional marker in the label"
393
- },
394
- "getter": false,
395
- "setter": false,
396
- "reflect": false
397
- },
398
- "hint": {
399
- "type": "string",
400
- "attribute": "hint",
401
- "mutable": false,
402
- "complexType": {
403
- "original": "string",
404
- "resolved": "string",
405
- "references": {}
406
- },
407
- "required": false,
408
- "optional": true,
409
- "docs": {
410
- "tags": [],
411
- "text": "Optional hint, visually presented under the input,\ngiving additional context to the user"
412
- },
413
- "getter": false,
414
- "setter": false,
415
- "reflect": false
416
- },
417
- "fullWidth": {
418
- "type": "boolean",
419
- "attribute": "full-width",
420
- "mutable": false,
421
- "complexType": {
422
- "original": "boolean",
423
- "resolved": "boolean",
424
- "references": {}
425
- },
426
- "required": false,
427
- "optional": true,
428
- "docs": {
429
- "tags": [],
430
- "text": "Defines if the component suppose to occupy 100% width"
431
- },
432
- "getter": false,
433
- "setter": false,
434
- "reflect": true
435
- },
436
- "valid": {
437
- "type": "boolean",
438
- "attribute": "valid",
439
- "mutable": true,
440
- "complexType": {
441
- "original": "boolean",
442
- "resolved": "boolean",
443
- "references": {}
444
- },
445
- "required": false,
446
- "optional": true,
447
- "docs": {
448
- "tags": [],
449
- "text": "Visual indication of valid state"
450
- },
451
- "getter": false,
452
- "setter": false,
453
- "reflect": true
454
- },
455
- "invalid": {
456
- "type": "boolean",
457
- "attribute": "invalid",
458
- "mutable": true,
459
- "complexType": {
460
- "original": "boolean",
461
- "resolved": "boolean",
462
- "references": {}
463
- },
464
- "required": false,
465
- "optional": true,
466
- "docs": {
467
- "tags": [],
468
- "text": "Validity indicator, serving to change UI of the component"
469
- },
470
- "getter": false,
471
- "setter": false,
472
- "reflect": true
473
- },
474
- "error": {
475
- "type": "string",
476
- "attribute": "error",
477
- "mutable": false,
478
- "complexType": {
479
- "original": "string",
480
- "resolved": "string",
481
- "references": {}
482
- },
483
- "required": false,
484
- "optional": true,
485
- "docs": {
486
- "tags": [],
487
- "text": "The way to provide error message separately from Constraint Validation API."
488
- },
489
- "getter": false,
490
- "setter": false,
491
- "reflect": false
492
- },
493
- "disabled": {
494
- "type": "boolean",
495
- "attribute": "disabled",
496
- "mutable": false,
497
- "complexType": {
498
- "original": "boolean",
499
- "resolved": "boolean",
500
- "references": {}
501
- },
502
- "required": false,
503
- "optional": true,
504
- "docs": {
505
- "tags": [],
506
- "text": "Prevents user interaction and applies disabled style"
507
- },
508
- "getter": false,
509
- "setter": false,
510
- "reflect": true
511
- },
512
- "readonly": {
513
- "type": "boolean",
514
- "attribute": "readonly",
515
- "mutable": false,
516
- "complexType": {
517
- "original": "boolean",
518
- "resolved": "boolean",
519
- "references": {}
520
- },
521
- "required": false,
522
- "optional": true,
523
- "docs": {
524
- "tags": [],
525
- "text": "Makes the input read-only: users can focus and copy the value,\nbut cannot modify it (value still submitted with the form unlike disabled)."
526
- },
527
- "getter": false,
528
- "setter": false,
529
- "reflect": true
530
- },
531
- "required": {
532
- "type": "boolean",
533
- "attribute": "required",
534
- "mutable": false,
535
- "complexType": {
536
- "original": "boolean",
537
- "resolved": "boolean",
538
- "references": {}
539
- },
540
- "required": false,
541
- "optional": true,
542
- "docs": {
543
- "tags": [],
544
- "text": "Specifies that an input is required/must be filled out"
545
- },
546
- "getter": false,
547
- "setter": false,
548
- "reflect": true
549
- },
550
- "maxlength": {
551
- "type": "number",
552
- "attribute": "maxlength",
553
- "mutable": false,
554
- "complexType": {
555
- "original": "number",
556
- "resolved": "number",
557
- "references": {}
558
- },
559
- "required": false,
560
- "optional": true,
561
- "docs": {
562
- "tags": [],
563
- "text": "Maximum character length (enforced by native input)."
564
- },
565
- "getter": false,
566
- "setter": false,
567
- "reflect": false
568
- },
569
- "minlength": {
570
- "type": "number",
571
- "attribute": "minlength",
572
- "mutable": false,
573
- "complexType": {
574
- "original": "number",
575
- "resolved": "number",
576
- "references": {}
577
- },
578
- "required": false,
579
- "optional": true,
580
- "docs": {
581
- "tags": [],
582
- "text": "Minimum character length (validation only)."
583
- },
584
- "getter": false,
585
- "setter": false,
586
- "reflect": false
587
- },
588
- "pattern": {
589
- "type": "string",
590
- "attribute": "pattern",
591
- "mutable": false,
592
- "complexType": {
593
- "original": "string",
594
- "resolved": "string",
595
- "references": {}
596
- },
597
- "required": false,
598
- "optional": true,
599
- "docs": {
600
- "tags": [],
601
- "text": "Regex pattern the value must match (string form)."
602
- },
603
- "getter": false,
604
- "setter": false,
605
- "reflect": false
606
- },
607
- "valueMissingMessage": {
608
- "type": "string",
609
- "attribute": "value-missing-message",
610
- "mutable": false,
611
- "complexType": {
612
- "original": "string",
613
- "resolved": "string",
614
- "references": {}
615
- },
616
- "required": false,
617
- "optional": true,
618
- "docs": {
619
- "tags": [],
620
- "text": "Set custom message for `valueMissing` property of a ValidityState object (set by `required`) within Constrain Validation API"
621
- },
622
- "getter": false,
623
- "setter": false,
624
- "reflect": false
625
- },
626
- "tooLongMessage": {
627
- "type": "string",
628
- "attribute": "too-long-message",
629
- "mutable": false,
630
- "complexType": {
631
- "original": "string",
632
- "resolved": "string",
633
- "references": {}
634
- },
635
- "required": false,
636
- "optional": true,
637
- "docs": {
638
- "tags": [],
639
- "text": "Custom message for `tooLong`."
640
- },
641
- "getter": false,
642
- "setter": false,
643
- "reflect": false
644
- },
645
- "tooShortMessage": {
646
- "type": "string",
647
- "attribute": "too-short-message",
648
- "mutable": false,
649
- "complexType": {
650
- "original": "string",
651
- "resolved": "string",
652
- "references": {}
653
- },
654
- "required": false,
655
- "optional": true,
656
- "docs": {
657
- "tags": [],
658
- "text": "Custom message for `tooShort`."
659
- },
660
- "getter": false,
661
- "setter": false,
662
- "reflect": false
663
- },
664
- "patternMismatchMessage": {
665
- "type": "string",
666
- "attribute": "pattern-mismatch-message",
667
- "mutable": false,
668
- "complexType": {
669
- "original": "string",
670
- "resolved": "string",
671
- "references": {}
672
- },
673
- "required": false,
674
- "optional": true,
675
- "docs": {
676
- "tags": [],
677
- "text": "Custom message for `patternMismatch`."
678
- },
679
- "getter": false,
680
- "setter": false,
681
- "reflect": false
682
- },
683
- "customErrorMessage": {
684
- "type": "string",
685
- "attribute": "custom-error-message",
686
- "mutable": false,
687
- "complexType": {
688
- "original": "string",
689
- "resolved": "string",
690
- "references": {}
691
- },
692
- "required": false,
693
- "optional": true,
694
- "docs": {
695
- "tags": [],
696
- "text": "Custom error message displayed for any validation failures in the input."
697
- },
698
- "getter": false,
699
- "setter": false,
700
- "reflect": false
701
- },
702
- "showPasswordAriaLabel": {
703
- "type": "string",
704
- "attribute": "show-password-aria-label",
705
- "mutable": false,
706
- "complexType": {
707
- "original": "string",
708
- "resolved": "string",
709
- "references": {}
710
- },
711
- "required": false,
712
- "optional": false,
713
- "docs": {
714
- "tags": [],
715
- "text": "Defines label for characters show button."
716
- },
717
- "getter": false,
718
- "setter": false,
719
- "reflect": false,
720
- "defaultValue": "'Show password.'"
721
- },
722
- "hidePasswordAriaLabel": {
723
- "type": "string",
724
- "attribute": "hide-password-aria-label",
725
- "mutable": false,
726
- "complexType": {
727
- "original": "string",
728
- "resolved": "string",
729
- "references": {}
730
- },
731
- "required": false,
732
- "optional": false,
733
- "docs": {
734
- "tags": [],
735
- "text": "Defines label for characters hide button."
736
- },
737
- "getter": false,
738
- "setter": false,
739
- "reflect": false,
740
- "defaultValue": "'Hide password.'"
741
- },
742
- "shownPasswordMessage": {
743
- "type": "string",
744
- "attribute": "shown-password-message",
745
- "mutable": false,
746
- "complexType": {
747
- "original": "string",
748
- "resolved": "string",
749
- "references": {}
750
- },
751
- "required": false,
752
- "optional": false,
753
- "docs": {
754
- "tags": [],
755
- "text": "Custom message when the password is shown to alert screen reader users."
756
- },
757
- "getter": false,
758
- "setter": false,
759
- "reflect": false,
760
- "defaultValue": "\"Your password is shown.\""
761
- },
762
- "hiddenPasswordMessage": {
763
- "type": "string",
764
- "attribute": "hidden-password-message",
765
- "mutable": false,
766
- "complexType": {
767
- "original": "string",
768
- "resolved": "string",
769
- "references": {}
770
- },
771
- "required": false,
772
- "optional": false,
773
- "docs": {
774
- "tags": [],
775
- "text": "Custom message when the password is hidden to alert screen reader users."
776
- },
777
- "getter": false,
778
- "setter": false,
779
- "reflect": false,
780
- "defaultValue": "\"Your password is hidden.\""
781
- },
782
- "passwordrules": {
783
- "type": "string",
784
- "attribute": "passwordrules",
785
- "mutable": false,
786
- "complexType": {
787
- "original": "string",
788
- "resolved": "string",
789
- "references": {}
790
- },
791
- "required": false,
792
- "optional": true,
793
- "docs": {
794
- "tags": [],
795
- "text": "Safari-specific password rules for strong password generation.\nFormat: \"minlength: X; required: lower; required: upper; required: digit; required: special;\"\nExample: \"minlength: 8; required: lower; required: upper; required: digit; required: special;\"\nNote: This attribute is Safari-specific and will be ignored by other browsers.\nSee: https://developer.apple.com/documentation/security/password_autofill/customizing_password_autofill_rules"
796
- },
797
- "getter": false,
798
- "setter": false,
799
- "reflect": false
800
- },
801
- "autocomplete": {
802
- "type": "string",
803
- "attribute": "autocomplete",
804
- "mutable": false,
805
- "complexType": {
806
- "original": "PasswordAutocomplete",
807
- "resolved": "\"current-password\" | \"new-password\" | \"off\"",
808
- "references": {
809
- "PasswordAutocomplete": {
810
- "location": "import",
811
- "path": "./exports",
812
- "id": "src/components/input-password/exports.ts::PasswordAutocomplete"
813
- }
814
- }
815
- },
816
- "required": false,
817
- "optional": true,
818
- "docs": {
819
- "tags": [{
820
- "name": "example",
821
- "text": "**Usage Guidelines:**\n- `'current-password'`: Use in login forms where users enter their existing password\n- `'new-password'`: Use in registration forms or password change forms for the new password field\n- `'off'`: Disable autofill in sensitive contexts where password managers should not suggest values\n\n**Common Patterns:**\n```tsx\n// Login form\n<r-input-password autocomplete=\"current-password\" />\n\n// Registration form\n<r-input-password autocomplete=\"new-password\" />\n\n// Sensitive form (e.g., admin panel)\n<r-input-password autocomplete=\"off\" />\n```"
822
- }],
823
- "text": "Password-specific autocomplete behavior for browser password managers."
824
- },
825
- "getter": false,
826
- "setter": false,
827
- "reflect": false
828
- }
829
- };
830
- }
831
- static get states() {
832
- return {
833
- "showed": {},
834
- "validityState": {},
835
- "validityMessage": {},
836
- "passwordVisibilityTimer": {}
837
- };
838
- }
839
- static get events() {
840
- return [{
841
- "method": "rValidate",
842
- "name": "rValidate",
843
- "bubbles": true,
844
- "cancelable": true,
845
- "composed": true,
846
- "docs": {
847
- "tags": [],
848
- "text": "Emits event after each validation"
849
- },
850
- "complexType": {
851
- "original": "{\n state: string,\n message: string\n }",
852
- "resolved": "{ state: string; message: string; }",
853
- "references": {}
854
- }
855
- }, {
856
- "method": "rInput",
857
- "name": "rInput",
858
- "bubbles": true,
859
- "cancelable": true,
860
- "composed": true,
861
- "docs": {
862
- "tags": [],
863
- "text": "Emits 'rInput' event when value of the component is changing"
864
- },
865
- "complexType": {
866
- "original": "{\n element: HTMLRInputPasswordElement,\n value: any\n }",
867
- "resolved": "{ element: HTMLRInputPasswordElement; value: any; }",
868
- "references": {
869
- "HTMLRInputPasswordElement": {
870
- "location": "global",
871
- "id": "global::HTMLRInputPasswordElement"
872
- }
873
- }
874
- }
875
- }, {
876
- "method": "rChange",
877
- "name": "rChange",
878
- "bubbles": true,
879
- "cancelable": true,
880
- "composed": true,
881
- "docs": {
882
- "tags": [],
883
- "text": "Emits 'rChange' event when value of the component has been changed"
884
- },
885
- "complexType": {
886
- "original": "{\n element: HTMLRInputPasswordElement,\n value: any\n }",
887
- "resolved": "{ element: HTMLRInputPasswordElement; value: any; }",
888
- "references": {
889
- "HTMLRInputPasswordElement": {
890
- "location": "global",
891
- "id": "global::HTMLRInputPasswordElement"
892
- }
893
- }
894
- }
895
- }, {
896
- "method": "rReset",
897
- "name": "rReset",
898
- "bubbles": true,
899
- "cancelable": true,
900
- "composed": true,
901
- "docs": {
902
- "tags": [],
903
- "text": "Emits 'rReset' event when form containing the component was reset"
904
- },
905
- "complexType": {
906
- "original": "{\n element: HTMLRInputPasswordElement,\n value: any\n }",
907
- "resolved": "{ element: HTMLRInputPasswordElement; value: any; }",
908
- "references": {
909
- "HTMLRInputPasswordElement": {
910
- "location": "global",
911
- "id": "global::HTMLRInputPasswordElement"
912
- }
913
- }
914
- }
915
- }, {
916
- "method": "rVisibilityChange",
917
- "name": "rVisibilityChange",
918
- "bubbles": true,
919
- "cancelable": true,
920
- "composed": true,
921
- "docs": {
922
- "tags": [],
923
- "text": "Emits 'rVisibilityChange' event when password visibility is toggled"
924
- },
925
- "complexType": {
926
- "original": "{\n element: HTMLRInputPasswordElement,\n visible: boolean\n }",
927
- "resolved": "{ element: HTMLRInputPasswordElement; visible: boolean; }",
928
- "references": {
929
- "HTMLRInputPasswordElement": {
930
- "location": "global",
931
- "id": "global::HTMLRInputPasswordElement"
932
- }
933
- }
934
- }
935
- }];
936
- }
937
- static get methods() {
938
- return {
939
- "toggleShow": {
940
- "complexType": {
941
- "signature": "() => Promise<void>",
942
- "parameters": [],
943
- "references": {
944
- "Promise": {
945
- "location": "global",
946
- "id": "global::Promise"
947
- }
948
- },
949
- "return": "Promise<void>"
950
- },
951
- "docs": {
952
- "text": "Toggle password text visibility.",
953
- "tags": []
954
- }
955
- },
956
- "showPassword": {
957
- "complexType": {
958
- "signature": "() => Promise<void>",
959
- "parameters": [],
960
- "references": {
961
- "Promise": {
962
- "location": "global",
963
- "id": "global::Promise"
964
- }
965
- },
966
- "return": "Promise<void>"
967
- },
968
- "docs": {
969
- "text": "Show password text.",
970
- "tags": []
971
- }
972
- },
973
- "hidePassword": {
974
- "complexType": {
975
- "signature": "() => Promise<void>",
976
- "parameters": [],
977
- "references": {
978
- "Promise": {
979
- "location": "global",
980
- "id": "global::Promise"
981
- }
982
- },
983
- "return": "Promise<void>"
984
- },
985
- "docs": {
986
- "text": "Hide password text.",
987
- "tags": []
988
- }
989
- },
990
- "getValue": {
991
- "complexType": {
992
- "signature": "() => Promise<string>",
993
- "parameters": [],
994
- "references": {
995
- "Promise": {
996
- "location": "global",
997
- "id": "global::Promise"
998
- }
999
- },
1000
- "return": "Promise<string>"
1001
- },
1002
- "docs": {
1003
- "text": "Get the input value",
1004
- "tags": []
1005
- }
1006
- },
1007
- "setValue": {
1008
- "complexType": {
1009
- "signature": "(value: string) => Promise<void>",
1010
- "parameters": [{
1011
- "name": "value",
1012
- "type": "string",
1013
- "docs": ""
1014
- }],
1015
- "references": {
1016
- "Promise": {
1017
- "location": "global",
1018
- "id": "global::Promise"
1019
- }
1020
- },
1021
- "return": "Promise<void>"
1022
- },
1023
- "docs": {
1024
- "text": "Set the input value",
1025
- "tags": []
1026
- }
1027
- },
1028
- "checkValidity": {
1029
- "complexType": {
1030
- "signature": "() => Promise<boolean>",
1031
- "parameters": [],
1032
- "references": {
1033
- "Promise": {
1034
- "location": "global",
1035
- "id": "global::Promise"
1036
- }
1037
- },
1038
- "return": "Promise<boolean>"
1039
- },
1040
- "docs": {
1041
- "text": "Validates the input password without triggering UI and returns a boolean indicating its validity.",
1042
- "tags": [{
1043
- "name": "returns",
1044
- "text": "A boolean indicating whether the input password is valid."
1045
- }]
1046
- }
1047
- }
1048
- };
1049
- }
1050
- static get elementRef() { return "host"; }
1051
- }