@riverty/web-components 6.3.0 → 6.3.1

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