@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,1228 +0,0 @@
1
- import { Host, h, Fragment } from "@stencil/core";
2
- import dayjs from "dayjs";
3
- import customParseFormat from "dayjs/plugin/customParseFormat";
4
- import { appendControlToFormData } from "../../utils/formData";
5
- export class InputDate {
6
- constructor() {
7
- /** Specifies a date format */
8
- this.format = 'DD/MM/YYYY';
9
- /** The value of the date input */
10
- this.value = '';
11
- /** Defines label for the input for the day */
12
- this.dayAriaLabel = 'Day';
13
- /** Defines label for the input for the month */
14
- this.monthAriaLabel = 'Month';
15
- /** Defines label for the input for the year */
16
- this.yearAriaLabel = 'Year';
17
- /** Save current value */
18
- this.currentValues = {};
19
- /** Defines date delimiter */
20
- this.delimiter = '/';
21
- /** Validity state passed from validateFormElement function after validation */
22
- this.validityState = '';
23
- /** Validity message passed from validateFormElement function after validation */
24
- this.validityMessage = '';
25
- /** Defines if the component has been touched by user */
26
- this.touched = false;
27
- /** Defines if the value has been changed by user interaction */
28
- this.dirty = false;
29
- /**
30
- * Initial attributes state
31
- * */
32
- this.initial = {};
33
- this.uniqueId = `r-input-date-${Date.now().toString(32)}${Math.random().toString(32)}`.replace(/\./g, '');
34
- this.nativeElement = null;
35
- this.getDateComponent = (input) => {
36
- switch (input.toUpperCase()) {
37
- case 'DD':
38
- return this.currentValues.day;
39
- case 'MM':
40
- case 'M':
41
- return this.currentValues.month;
42
- case 'YYYY':
43
- case 'YY':
44
- return this.currentValues.year;
45
- default:
46
- return '';
47
- }
48
- };
49
- this.setDateComponent = (input, value) => {
50
- switch (input.toUpperCase()) {
51
- case 'DD':
52
- this.currentValues.day = value;
53
- break;
54
- case 'MM':
55
- case 'M':
56
- this.currentValues.month = value;
57
- break;
58
- case 'YYYY':
59
- case 'YY':
60
- this.currentValues.year = value;
61
- break;
62
- default:
63
- return '';
64
- }
65
- };
66
- this.getInputAttrs = (input) => {
67
- const label = (type) => {
68
- switch (type) {
69
- case 'DD':
70
- return this.dayAriaLabel;
71
- case 'MM':
72
- case 'M':
73
- return this.monthAriaLabel;
74
- case 'YYYY':
75
- case 'YY':
76
- return this.yearAriaLabel;
77
- default:
78
- return '';
79
- }
80
- };
81
- const type = input.toUpperCase();
82
- return {
83
- placeholder: input,
84
- maxlength: input.length > 2 ? input.length : 2,
85
- size: input.length,
86
- inputmode: 'numeric',
87
- disabled: this.disabled,
88
- required: this.required,
89
- readonly: this.readonly,
90
- 'aria-label': label(type),
91
- 'data-date-type': type
92
- };
93
- };
94
- this.getDelimiter = (value) => {
95
- var _a;
96
- return ((_a = value.replace(/[^.\-/]/g, '')) === null || _a === void 0 ? void 0 : _a.charAt(0)) || '/';
97
- };
98
- this.updateValue = () => {
99
- if (this.readonly)
100
- return;
101
- this.delimiter = this.getDelimiter(this.format);
102
- this.value = this.value ? this.inputOrder.map((input) => this.getDateComponent(input)).join(this.delimiter) : '';
103
- };
104
- this.onHostClick = () => {
105
- const input = this.firstEmptyInput || this.inputs[this.inputs.length - 1];
106
- input === null || input === void 0 ? void 0 : input.focus();
107
- };
108
- this.onInputClick = (event) => {
109
- event.stopPropagation();
110
- };
111
- this.createKeyDownHandler = (index) => {
112
- return (e) => this.handleKeyDown(index, e);
113
- };
114
- this.handleKeyDown = (index, event) => {
115
- var _a, _b, _c, _d, _e, _f;
116
- if (this.readonly)
117
- return;
118
- if (event.code === 'Enter') {
119
- this.touched = true;
120
- this.validateFormElement(this.nativeElement);
121
- if (this.invalid && !this.isNoValidate)
122
- return;
123
- const submitEl = this.host.querySelector('[type="submit"]') ||
124
- ((_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.querySelector('[type="submit"]'));
125
- if (submitEl && 'triggerClick' in submitEl) {
126
- submitEl === null || submitEl === void 0 ? void 0 : submitEl.triggerClick();
127
- }
128
- else {
129
- (_b = this.parentFormEl) === null || _b === void 0 ? void 0 : _b.requestSubmit();
130
- }
131
- }
132
- if (event.code === 'Backspace') {
133
- const cursorPosition = (_c = this.inputs[index]) === null || _c === void 0 ? void 0 : _c.selectionStart;
134
- if (cursorPosition === 0 && index > 0) {
135
- (_d = this.inputs[index - 1]) === null || _d === void 0 ? void 0 : _d.focus();
136
- }
137
- }
138
- if (event.code === 'ArrowLeft') {
139
- const input = this.inputs[index];
140
- const cursorPosition = input === null || input === void 0 ? void 0 : input.selectionStart;
141
- if (cursorPosition === 0 && index > 0) {
142
- const previousInputValue = this.inputs[index - 1].value;
143
- const length = previousInputValue === null || previousInputValue === void 0 ? void 0 : previousInputValue.length;
144
- (_e = this.inputs[index - 1]) === null || _e === void 0 ? void 0 : _e.focus();
145
- if (length) {
146
- setTimeout(() => {
147
- var _a;
148
- (_a = this.inputs[index - 1]) === null || _a === void 0 ? void 0 : _a.setSelectionRange(length, length);
149
- }, 0);
150
- }
151
- }
152
- }
153
- if (event.code === 'ArrowRight') {
154
- const input = this.inputs[index];
155
- const cursorPosition = input === null || input === void 0 ? void 0 : input.selectionStart;
156
- const value = input === null || input === void 0 ? void 0 : input.value;
157
- if ((!value || cursorPosition === value.length) && index < this.inputOrder.length - 1) {
158
- (_f = this.inputs[index + 1]) === null || _f === void 0 ? void 0 : _f.focus();
159
- setTimeout(() => {
160
- var _a;
161
- (_a = this.inputs[index + 1]) === null || _a === void 0 ? void 0 : _a.setSelectionRange(0, 0);
162
- }, 0);
163
- }
164
- }
165
- };
166
- this.handlePaste = (event) => {
167
- if (this.readonly)
168
- return;
169
- this.value = event.clipboardData.getData('text');
170
- this.touched = true;
171
- this.dirty = true;
172
- event.preventDefault();
173
- };
174
- this.createInputHandler = (input, index) => {
175
- return (e) => this.handleInput(input, index, e);
176
- };
177
- this.handleInput = (input, index, event) => {
178
- var _a, _b, _c;
179
- if (this.readonly)
180
- return;
181
- const value = (_a = event.target.value) === null || _a === void 0 ? void 0 : _a.replace(/[^0-9]/g, '');
182
- event.target.value = value;
183
- this.setDateComponent(input, value);
184
- this.value = this.inputOrder.map((el) => this.getDateComponent(el)).join(this.delimiter);
185
- if ((value === null || value === void 0 ? void 0 : value.length) === ((_b = this.inputs[index]) === null || _b === void 0 ? void 0 : _b.maxLength) &&
186
- index < this.inputOrder.length - 1) {
187
- (_c = this.inputs[index + 1]) === null || _c === void 0 ? void 0 : _c.focus();
188
- }
189
- this.touched = true;
190
- this.dirty = true;
191
- this.rInput.emit({ element: this.host, value: this.value });
192
- this.validateFormElement(this.nativeElement);
193
- };
194
- this.createChangeHandler = (input) => {
195
- return (e) => this.handleChange(input, e);
196
- };
197
- this.handleChange = (input, event) => {
198
- var _a;
199
- if (this.readonly)
200
- return;
201
- const value = (_a = event.target.value) === null || _a === void 0 ? void 0 : _a.replace(/[^0-9]/g, '');
202
- event.target.value = value;
203
- this.setDateComponent(input, value);
204
- this.value = this.inputOrder.map((el) => this.getDateComponent(el)).join(this.delimiter);
205
- this.touched = true;
206
- this.dirty = true;
207
- this.rChange.emit({ element: this.host, value: this.value });
208
- this.validateFormElement(this.nativeElement);
209
- };
210
- this.handleBlur = () => {
211
- this.touched = true;
212
- this.validateFormElement(this.nativeElement);
213
- };
214
- this.getValidityStateData = (element) => {
215
- let validityState = '';
216
- let validityMessage = '';
217
- if (this.required && element.value.length === 0) {
218
- validityState = 'valueMissing';
219
- validityMessage = this.valueMissingMessage;
220
- return { validityState, validityMessage };
221
- }
222
- const valid = this.value ? dayjs(this.value, this.format, true).isValid() : true;
223
- if (!valid) {
224
- validityState = 'invalid';
225
- validityMessage = this.invalidDateMessage;
226
- return { validityState, validityMessage };
227
- }
228
- // Check min/max constraints only if date is valid and has a value
229
- // Note: min and max are expected to be in the same format as this.format
230
- // If format changes, the developer should update min/max accordingly
231
- if (this.value && valid) {
232
- const currentDate = dayjs(this.value, this.format, true);
233
- // Check minimum date constraint
234
- if (this.min) {
235
- const minDate = dayjs(this.min, this.format, true);
236
- if (minDate.isValid() && currentDate.isBefore(minDate, 'day')) {
237
- validityState = 'rangeUnderflow';
238
- validityMessage = this.rangeUnderflowMessage;
239
- return { validityState, validityMessage };
240
- }
241
- }
242
- // Check maximum date constraint
243
- if (this.max) {
244
- const maxDate = dayjs(this.max, this.format, true);
245
- if (maxDate.isValid() && currentDate.isAfter(maxDate, 'day')) {
246
- validityState = 'rangeOverflow';
247
- validityMessage = this.rangeOverflowMessage;
248
- return { validityState, validityMessage };
249
- }
250
- }
251
- }
252
- validityState = 'valid';
253
- return { validityState, validityMessage };
254
- };
255
- this.validateFormElement = (element) => {
256
- if (element === null)
257
- return;
258
- if (this.isNoValidate)
259
- return;
260
- const { validityState, validityMessage } = this.getValidityStateData(element);
261
- this.validityState = validityState;
262
- this.validityMessage = validityMessage;
263
- const isValid = this.validityState === 'valid';
264
- this.valid = isValid;
265
- this.invalid = !isValid;
266
- this.rValidate.emit({
267
- state: this.validityState,
268
- message: this.validityMessage
269
- });
270
- };
271
- this.onResetForm = async () => {
272
- if (this.readonly)
273
- return;
274
- this.reset();
275
- this.validityState = null;
276
- this.validityMessage = null;
277
- this.invalid = null;
278
- this.valid = null;
279
- const { host, value } = this;
280
- this.rReset.emit({ element: host, value });
281
- };
282
- this.onSubmitForm = (event) => {
283
- if (this.isNoValidate)
284
- return;
285
- if (this.disabled)
286
- return;
287
- this.validateFormElement(this.nativeElement);
288
- if (this.invalid) {
289
- event.preventDefault();
290
- event.stopPropagation();
291
- }
292
- };
293
- this.contributeToFormData = (event) => {
294
- appendControlToFormData(this.nativeElement || this.host, event.formData);
295
- };
296
- this.setCurrentValues = () => {
297
- var _a;
298
- const valueDelimiter = this.getDelimiter(this.value);
299
- const valueInOrder = ((_a = this.value) === null || _a === void 0 ? void 0 : _a.split(valueDelimiter)) || [];
300
- this.value = valueInOrder.join(this.delimiter);
301
- this.inputOrder.forEach((el, i) => {
302
- this.setDateComponent(el, valueInOrder[i] || '');
303
- });
304
- };
305
- }
306
- handleFormatChange() {
307
- this.updateValue();
308
- }
309
- handleValueChange() {
310
- this.setCurrentValues();
311
- if (this.touched)
312
- this.validateFormElement(this.nativeElement);
313
- }
314
- /** Get the date value */
315
- async getValue() {
316
- return this.value;
317
- }
318
- /** Sets the date value */
319
- async setValue(value) {
320
- this.nativeElement.value = value;
321
- this.value = value;
322
- }
323
- /** Gets the current date format */
324
- async getFormat() {
325
- return this.format;
326
- }
327
- /** Sets the date format */
328
- async setFormat(format) {
329
- this.format = format;
330
- }
331
- /** Gets the touched state (whether user has interacted with the input) */
332
- async isTouched() {
333
- return this.touched;
334
- }
335
- /** Gets the dirty state (whether value has been changed by user) */
336
- async isDirty() {
337
- return this.dirty;
338
- }
339
- /** Resets touched and dirty states to pristine (untouched/clean) */
340
- async markAsPristine() {
341
- this.touched = false;
342
- this.dirty = false;
343
- }
344
- /**
345
- * Resets the component by clearing all input values and focusing the first input.
346
- * @returns Promise that resolves when reset is complete
347
- */
348
- async reset() {
349
- if (this.readonly)
350
- return;
351
- this.markAsPristine();
352
- this.validityState = null;
353
- this.validityMessage = null;
354
- this.value = this.initial['value'];
355
- this.invalid = this.initial['invalid'];
356
- this.format = this.initial['format'];
357
- this.valid = !this.invalid;
358
- }
359
- /**
360
- * Validates the input date without triggering UI and returns a boolean indicating its validity.
361
- * @returns A boolean indicating whether the input date is valid.
362
- */
363
- async checkValidity() {
364
- const { validityState } = this.getValidityStateData(this.nativeElement);
365
- return validityState === 'valid';
366
- }
367
- get inputs() {
368
- return Array.from(this.host.shadowRoot.querySelectorAll('input[data-date-type]'));
369
- }
370
- get inputOrder() {
371
- return this.format.split(this.delimiter);
372
- }
373
- get message() {
374
- if (this.invalid && this.error) {
375
- return this.error;
376
- }
377
- return (this.validityState && this.validityState !== 'valid' ?
378
- (this.customErrorMessage || this.validityMessage)
379
- : null);
380
- }
381
- get hasMessage() {
382
- return this.message !== null;
383
- }
384
- get ariaDescribedBy() {
385
- const messageId = this.message ? `${this.uniqueId}-message` : null;
386
- return this.hint ? `${this.uniqueId}-hint ${messageId}` : messageId;
387
- }
388
- /** Identify wrapping form element */
389
- get parentFormEl() {
390
- return this.host.closest('form') || document.querySelector(`#${this.form}`) || null;
391
- }
392
- /**
393
- * Determine whether this element should be ignored
394
- * during Constraint Validation API validation.
395
- * */
396
- get isNoValidate() {
397
- var _a;
398
- return (((_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.hasAttribute('novalidate')) ||
399
- this.novalidate ||
400
- this.disabled ||
401
- false);
402
- }
403
- get firstEmptyInput() {
404
- return this.inputs.find(input => !input.value) || null;
405
- }
406
- get hasTrailingSlot() {
407
- return !!this.host.querySelector('[slot="trailing"]');
408
- }
409
- componentWillLoad() {
410
- dayjs.extend(customParseFormat);
411
- this.delimiter = this.getDelimiter(this.format);
412
- this.initial['value'] = this.value;
413
- this.initial['invalid'] = this.invalid;
414
- this.initial['format'] = this.format;
415
- this.setCurrentValues();
416
- }
417
- connectFormEventListeners() {
418
- var _a, _b, _c;
419
- (_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.addEventListener('formdata', this.contributeToFormData);
420
- (_b = this.parentFormEl) === null || _b === void 0 ? void 0 : _b.addEventListener('submit', this.onSubmitForm, { capture: true });
421
- (_c = this.parentFormEl) === null || _c === void 0 ? void 0 : _c.addEventListener('reset', this.onResetForm);
422
- }
423
- disconnectFormEventListeners() {
424
- var _a, _b, _c;
425
- (_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.removeEventListener('formdata', this.contributeToFormData);
426
- (_b = this.parentFormEl) === null || _b === void 0 ? void 0 : _b.removeEventListener('submit', this.onSubmitForm);
427
- (_c = this.parentFormEl) === null || _c === void 0 ? void 0 : _c.removeEventListener('reset', this.onResetForm);
428
- }
429
- connectedCallback() {
430
- this.connectFormEventListeners();
431
- }
432
- disconnectedCallback() {
433
- this.disconnectFormEventListeners();
434
- }
435
- render() {
436
- const { form, name, required, disabled, label, fieldIndicator, hint, uniqueId, invalid, valid, readonly } = this;
437
- const groupAttrs = {
438
- 'aria-invalid': `${invalid || false}`,
439
- 'aria-describedby': this.ariaDescribedBy
440
- };
441
- const dateInputAttrs = {
442
- id: uniqueId,
443
- form,
444
- name,
445
- required,
446
- disabled,
447
- readonly,
448
- 'aria-describedby': this.ariaDescribedBy
449
- };
450
- const labelAttr = label ? {
451
- id: `${uniqueId}-label`,
452
- fieldIndicator
453
- } : {};
454
- return (h(Host, { key: '1fe0cc5598857ca719ef334807da6e2540c4a399', onClick: this.onHostClick, "data-touched": `${this.touched}`, "data-dirty": `${this.dirty}` }, h("fieldset", Object.assign({ key: 'a7ad4075376fc3d08cc59be2f4340c9327e05f82', class: "r-input-date" }, groupAttrs), h("div", { key: 'ec18205fad6069d54715807529a145d03f8bdebb', class: "r-input-date--legend-container" }, h("legend", { key: '59c4384b37a3a845eb5cb0c2955b8a12777b2320', class: "r-input-date--legend" }, h("label", { key: '8b5502aeb26daa26d3f32d3669406b87e2eb29ca', htmlFor: uniqueId }, label ?
455
- h("r-label", Object.assign({}, labelAttr), label)
456
- :
457
- h("slot", { name: "label" }))), h("slot", { key: '7a5b5ad6401bb8199d94c36383e4219fd3556db5', name: "popover" })), hint &&
458
- h("r-hint", { key: '1226c6002eb581811e419db7518e02d5fbc18b5b', id: `${uniqueId}-hint`, role: "note" }, hint), h("div", { key: '5581e3cbb731a4a23a243118f2840563352e6df1', class: "r-input-date--container" }, h("r-icon", { key: 'e8b52fc6fcb1d4f22fd24e7e26e55218a1b6ee80', name: "calendar", size: "s", class: "r-input-date--calendar-icon" }), h("div", { key: '4b97bab9a65f4a9d1958287f23940b7ee4d7143e', class: "r-input-date--inputs" }, this.inputOrder.map((input, i) => (h(Fragment, null, h("input", Object.assign({ class: "r-input-date--input" }, this.getInputAttrs(input), { key: input, value: this.getDateComponent(input), onInput: this.createInputHandler(input, i), onChange: this.createChangeHandler(input), onClick: this.onInputClick, onBlur: this.handleBlur, onKeyDown: this.createKeyDownHandler(i), onPaste: this.handlePaste })), i < this.inputOrder.length - 1 &&
459
- h("span", { "aria-hidden": "true", class: "r-input-date--delimiter" }, this.delimiter)))), h("input", Object.assign({ key: 'fdebeb8a48fd0fc10233166db94e928fc4b424de', type: "hidden" }, dateInputAttrs, { value: this.value, ref: (el) => this.nativeElement = el }))), h("div", { key: '4324ae4593512d0bd16f843e60c2058859cc1ba1', class: "r-input-date--trailing" }, this.readonly &&
460
- h("r-icon", { key: '673fb144899c62d9b5d9267b35ce1f197b1f6549', class: "r-input-date--readonly-icon", name: "pen-disabled", size: "s" }), valid &&
461
- h("r-icon", { key: '26828285dad4ccae6ebc8d29a2f4e1e6a5d92a6d', name: "circled-check", size: "s", color: "var(--r-status-success-regular)" }), this.hasTrailingSlot && h("slot", { key: 'bda392fa837a8fba6917fed22ff356c4e6f15b85', name: "trailing" }))), h("div", { key: 'a6d891a2f2bf3456d5cbb3ec27c6cef0bce7d434', id: `${uniqueId}-message`, "aria-live": "polite", class: "r-input-date--message" }, this.hasMessage && h("r-hint", { key: '8a3316ce851bfa02b9ca1a1fad8fde6f48a7fab6', variant: "error" }, this.message)))));
462
- }
463
- static get is() { return "r-input-date"; }
464
- static get encapsulation() { return "shadow"; }
465
- static get originalStyleUrls() {
466
- return {
467
- "$": ["input-date.css"]
468
- };
469
- }
470
- static get styleUrls() {
471
- return {
472
- "$": ["input-date.css"]
473
- };
474
- }
475
- static get properties() {
476
- return {
477
- "form": {
478
- "type": "string",
479
- "attribute": "form",
480
- "mutable": false,
481
- "complexType": {
482
- "original": "string",
483
- "resolved": "string",
484
- "references": {}
485
- },
486
- "required": false,
487
- "optional": true,
488
- "docs": {
489
- "tags": [],
490
- "text": "Specifies the `id` of the `<form>` to which the element belongs"
491
- },
492
- "getter": false,
493
- "setter": false,
494
- "reflect": false
495
- },
496
- "novalidate": {
497
- "type": "boolean",
498
- "attribute": "novalidate",
499
- "mutable": false,
500
- "complexType": {
501
- "original": "boolean",
502
- "resolved": "boolean",
503
- "references": {}
504
- },
505
- "required": false,
506
- "optional": true,
507
- "docs": {
508
- "tags": [],
509
- "text": "Specifies if element must be ignored during validation of the form elements"
510
- },
511
- "getter": false,
512
- "setter": false,
513
- "reflect": false
514
- },
515
- "name": {
516
- "type": "string",
517
- "attribute": "name",
518
- "mutable": false,
519
- "complexType": {
520
- "original": "string",
521
- "resolved": "string",
522
- "references": {}
523
- },
524
- "required": false,
525
- "optional": false,
526
- "docs": {
527
- "tags": [],
528
- "text": "Specifies a name for a input"
529
- },
530
- "getter": false,
531
- "setter": false,
532
- "reflect": true
533
- },
534
- "format": {
535
- "type": "string",
536
- "attribute": "format",
537
- "mutable": true,
538
- "complexType": {
539
- "original": "string",
540
- "resolved": "string",
541
- "references": {}
542
- },
543
- "required": false,
544
- "optional": false,
545
- "docs": {
546
- "tags": [],
547
- "text": "Specifies a date format"
548
- },
549
- "getter": false,
550
- "setter": false,
551
- "reflect": true,
552
- "defaultValue": "'DD/MM/YYYY'"
553
- },
554
- "value": {
555
- "type": "string",
556
- "attribute": "value",
557
- "mutable": true,
558
- "complexType": {
559
- "original": "string | null",
560
- "resolved": "string",
561
- "references": {}
562
- },
563
- "required": false,
564
- "optional": true,
565
- "docs": {
566
- "tags": [],
567
- "text": "The value of the date input"
568
- },
569
- "getter": false,
570
- "setter": false,
571
- "reflect": true,
572
- "defaultValue": "''"
573
- },
574
- "label": {
575
- "type": "string",
576
- "attribute": "label",
577
- "mutable": false,
578
- "complexType": {
579
- "original": "string",
580
- "resolved": "string",
581
- "references": {}
582
- },
583
- "required": true,
584
- "optional": false,
585
- "docs": {
586
- "tags": [],
587
- "text": "The text on the label"
588
- },
589
- "getter": false,
590
- "setter": false,
591
- "reflect": true
592
- },
593
- "fieldIndicator": {
594
- "type": "string",
595
- "attribute": "field-indicator",
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": "Text of an additional marker in the label"
607
- },
608
- "getter": false,
609
- "setter": false,
610
- "reflect": false
611
- },
612
- "hint": {
613
- "type": "string",
614
- "attribute": "hint",
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": "Optional hint, visually presented under the input,\ngiving additional context to the user"
626
- },
627
- "getter": false,
628
- "setter": false,
629
- "reflect": false
630
- },
631
- "fullWidth": {
632
- "type": "boolean",
633
- "attribute": "full-width",
634
- "mutable": false,
635
- "complexType": {
636
- "original": "boolean",
637
- "resolved": "boolean",
638
- "references": {}
639
- },
640
- "required": false,
641
- "optional": true,
642
- "docs": {
643
- "tags": [],
644
- "text": "Defines if the component suppose to occupy 100% width"
645
- },
646
- "getter": false,
647
- "setter": false,
648
- "reflect": true
649
- },
650
- "dayAriaLabel": {
651
- "type": "string",
652
- "attribute": "day-aria-label",
653
- "mutable": false,
654
- "complexType": {
655
- "original": "string",
656
- "resolved": "string",
657
- "references": {}
658
- },
659
- "required": false,
660
- "optional": false,
661
- "docs": {
662
- "tags": [],
663
- "text": "Defines label for the input for the day"
664
- },
665
- "getter": false,
666
- "setter": false,
667
- "reflect": true,
668
- "defaultValue": "'Day'"
669
- },
670
- "monthAriaLabel": {
671
- "type": "string",
672
- "attribute": "month-aria-label",
673
- "mutable": false,
674
- "complexType": {
675
- "original": "string",
676
- "resolved": "string",
677
- "references": {}
678
- },
679
- "required": false,
680
- "optional": false,
681
- "docs": {
682
- "tags": [],
683
- "text": "Defines label for the input for the month"
684
- },
685
- "getter": false,
686
- "setter": false,
687
- "reflect": true,
688
- "defaultValue": "'Month'"
689
- },
690
- "yearAriaLabel": {
691
- "type": "string",
692
- "attribute": "year-aria-label",
693
- "mutable": false,
694
- "complexType": {
695
- "original": "string",
696
- "resolved": "string",
697
- "references": {}
698
- },
699
- "required": false,
700
- "optional": false,
701
- "docs": {
702
- "tags": [],
703
- "text": "Defines label for the input for the year"
704
- },
705
- "getter": false,
706
- "setter": false,
707
- "reflect": true,
708
- "defaultValue": "'Year'"
709
- },
710
- "valid": {
711
- "type": "boolean",
712
- "attribute": "valid",
713
- "mutable": true,
714
- "complexType": {
715
- "original": "boolean",
716
- "resolved": "boolean",
717
- "references": {}
718
- },
719
- "required": false,
720
- "optional": true,
721
- "docs": {
722
- "tags": [],
723
- "text": "Visual indication of valid state"
724
- },
725
- "getter": false,
726
- "setter": false,
727
- "reflect": true
728
- },
729
- "invalid": {
730
- "type": "boolean",
731
- "attribute": "invalid",
732
- "mutable": true,
733
- "complexType": {
734
- "original": "boolean",
735
- "resolved": "boolean",
736
- "references": {}
737
- },
738
- "required": false,
739
- "optional": true,
740
- "docs": {
741
- "tags": [],
742
- "text": "Validity indicator, serving to change UI of the component"
743
- },
744
- "getter": false,
745
- "setter": false,
746
- "reflect": true
747
- },
748
- "error": {
749
- "type": "string",
750
- "attribute": "error",
751
- "mutable": false,
752
- "complexType": {
753
- "original": "string",
754
- "resolved": "string",
755
- "references": {}
756
- },
757
- "required": false,
758
- "optional": true,
759
- "docs": {
760
- "tags": [],
761
- "text": "The way to provide error message separately from Constraint Validation API."
762
- },
763
- "getter": false,
764
- "setter": false,
765
- "reflect": false
766
- },
767
- "disabled": {
768
- "type": "boolean",
769
- "attribute": "disabled",
770
- "mutable": false,
771
- "complexType": {
772
- "original": "boolean",
773
- "resolved": "boolean",
774
- "references": {}
775
- },
776
- "required": false,
777
- "optional": true,
778
- "docs": {
779
- "tags": [],
780
- "text": "Prevents user interaction and applies disabled style"
781
- },
782
- "getter": false,
783
- "setter": false,
784
- "reflect": true
785
- },
786
- "readonly": {
787
- "type": "boolean",
788
- "attribute": "readonly",
789
- "mutable": false,
790
- "complexType": {
791
- "original": "boolean",
792
- "resolved": "boolean",
793
- "references": {}
794
- },
795
- "required": false,
796
- "optional": true,
797
- "docs": {
798
- "tags": [],
799
- "text": "Makes the date inputs read-only: users can focus and copy the value,\nbut cannot modify it (value still submitted with the form unlike disabled)."
800
- },
801
- "getter": false,
802
- "setter": false,
803
- "reflect": true
804
- },
805
- "required": {
806
- "type": "boolean",
807
- "attribute": "required",
808
- "mutable": false,
809
- "complexType": {
810
- "original": "boolean",
811
- "resolved": "boolean",
812
- "references": {}
813
- },
814
- "required": false,
815
- "optional": true,
816
- "docs": {
817
- "tags": [],
818
- "text": "Specifies that an input is required/must be filled out"
819
- },
820
- "getter": false,
821
- "setter": false,
822
- "reflect": true
823
- },
824
- "valueMissingMessage": {
825
- "type": "string",
826
- "attribute": "value-missing-message",
827
- "mutable": false,
828
- "complexType": {
829
- "original": "string",
830
- "resolved": "string",
831
- "references": {}
832
- },
833
- "required": false,
834
- "optional": true,
835
- "docs": {
836
- "tags": [],
837
- "text": "Set custom message for `valueMissing` property of a ValidityState object (set by `required`)"
838
- },
839
- "getter": false,
840
- "setter": false,
841
- "reflect": false
842
- },
843
- "invalidDateMessage": {
844
- "type": "string",
845
- "attribute": "invalid-date-message",
846
- "mutable": false,
847
- "complexType": {
848
- "original": "string",
849
- "resolved": "string",
850
- "references": {}
851
- },
852
- "required": false,
853
- "optional": true,
854
- "docs": {
855
- "tags": [],
856
- "text": "Custom error message displayed when date is not valid."
857
- },
858
- "getter": false,
859
- "setter": false,
860
- "reflect": false
861
- },
862
- "min": {
863
- "type": "string",
864
- "attribute": "min",
865
- "mutable": false,
866
- "complexType": {
867
- "original": "string",
868
- "resolved": "string",
869
- "references": {}
870
- },
871
- "required": false,
872
- "optional": true,
873
- "docs": {
874
- "tags": [],
875
- "text": "Minimum date value (in the same format as the date input).\nNote: When changing the `format` prop, ensure `min` is also updated to match the new format."
876
- },
877
- "getter": false,
878
- "setter": false,
879
- "reflect": true
880
- },
881
- "max": {
882
- "type": "string",
883
- "attribute": "max",
884
- "mutable": false,
885
- "complexType": {
886
- "original": "string",
887
- "resolved": "string",
888
- "references": {}
889
- },
890
- "required": false,
891
- "optional": true,
892
- "docs": {
893
- "tags": [],
894
- "text": "Maximum date value (in the same format as the date input).\nNote: When changing the `format` prop, ensure `max` is also updated to match the new format."
895
- },
896
- "getter": false,
897
- "setter": false,
898
- "reflect": true
899
- },
900
- "rangeUnderflowMessage": {
901
- "type": "string",
902
- "attribute": "range-underflow-message",
903
- "mutable": false,
904
- "complexType": {
905
- "original": "string",
906
- "resolved": "string",
907
- "references": {}
908
- },
909
- "required": false,
910
- "optional": true,
911
- "docs": {
912
- "tags": [],
913
- "text": "Custom error message displayed when date is before the minimum date."
914
- },
915
- "getter": false,
916
- "setter": false,
917
- "reflect": false
918
- },
919
- "rangeOverflowMessage": {
920
- "type": "string",
921
- "attribute": "range-overflow-message",
922
- "mutable": false,
923
- "complexType": {
924
- "original": "string",
925
- "resolved": "string",
926
- "references": {}
927
- },
928
- "required": false,
929
- "optional": true,
930
- "docs": {
931
- "tags": [],
932
- "text": "Custom error message displayed when date is after the maximum date."
933
- },
934
- "getter": false,
935
- "setter": false,
936
- "reflect": false
937
- },
938
- "customErrorMessage": {
939
- "type": "string",
940
- "attribute": "custom-error-message",
941
- "mutable": false,
942
- "complexType": {
943
- "original": "string",
944
- "resolved": "string",
945
- "references": {}
946
- },
947
- "required": false,
948
- "optional": true,
949
- "docs": {
950
- "tags": [],
951
- "text": "Custom error message displayed for any validation failures in the input."
952
- },
953
- "getter": false,
954
- "setter": false,
955
- "reflect": false
956
- }
957
- };
958
- }
959
- static get states() {
960
- return {
961
- "currentValues": {},
962
- "delimiter": {},
963
- "validityState": {},
964
- "validityMessage": {},
965
- "touched": {},
966
- "dirty": {}
967
- };
968
- }
969
- static get events() {
970
- return [{
971
- "method": "rValidate",
972
- "name": "rValidate",
973
- "bubbles": true,
974
- "cancelable": true,
975
- "composed": true,
976
- "docs": {
977
- "tags": [],
978
- "text": "Emits event after each validation"
979
- },
980
- "complexType": {
981
- "original": "{\n state: string,\n message: string\n }",
982
- "resolved": "{ state: string; message: string; }",
983
- "references": {}
984
- }
985
- }, {
986
- "method": "rInput",
987
- "name": "rInput",
988
- "bubbles": true,
989
- "cancelable": true,
990
- "composed": true,
991
- "docs": {
992
- "tags": [],
993
- "text": "Emits 'rInput' event when value of the component is changing"
994
- },
995
- "complexType": {
996
- "original": "{\n element: HTMLRInputDateElement,\n value: any\n }",
997
- "resolved": "{ element: HTMLRInputDateElement; value: any; }",
998
- "references": {
999
- "HTMLRInputDateElement": {
1000
- "location": "global",
1001
- "id": "global::HTMLRInputDateElement"
1002
- }
1003
- }
1004
- }
1005
- }, {
1006
- "method": "rChange",
1007
- "name": "rChange",
1008
- "bubbles": true,
1009
- "cancelable": true,
1010
- "composed": true,
1011
- "docs": {
1012
- "tags": [],
1013
- "text": "Emits 'rChange' event when value of the component has been changed"
1014
- },
1015
- "complexType": {
1016
- "original": "{\n element: HTMLRInputDateElement,\n value: any\n }",
1017
- "resolved": "{ element: HTMLRInputDateElement; value: any; }",
1018
- "references": {
1019
- "HTMLRInputDateElement": {
1020
- "location": "global",
1021
- "id": "global::HTMLRInputDateElement"
1022
- }
1023
- }
1024
- }
1025
- }, {
1026
- "method": "rReset",
1027
- "name": "rReset",
1028
- "bubbles": true,
1029
- "cancelable": true,
1030
- "composed": true,
1031
- "docs": {
1032
- "tags": [],
1033
- "text": "Emits 'rReset' event when form containing the component was reset"
1034
- },
1035
- "complexType": {
1036
- "original": "{\n element: HTMLRInputDateElement,\n value: any\n }",
1037
- "resolved": "{ element: HTMLRInputDateElement; value: any; }",
1038
- "references": {
1039
- "HTMLRInputDateElement": {
1040
- "location": "global",
1041
- "id": "global::HTMLRInputDateElement"
1042
- }
1043
- }
1044
- }
1045
- }];
1046
- }
1047
- static get methods() {
1048
- return {
1049
- "getValue": {
1050
- "complexType": {
1051
- "signature": "() => Promise<string>",
1052
- "parameters": [],
1053
- "references": {
1054
- "Promise": {
1055
- "location": "global",
1056
- "id": "global::Promise"
1057
- }
1058
- },
1059
- "return": "Promise<string>"
1060
- },
1061
- "docs": {
1062
- "text": "Get the date value",
1063
- "tags": []
1064
- }
1065
- },
1066
- "setValue": {
1067
- "complexType": {
1068
- "signature": "(value: string) => Promise<void>",
1069
- "parameters": [{
1070
- "name": "value",
1071
- "type": "string",
1072
- "docs": ""
1073
- }],
1074
- "references": {
1075
- "Promise": {
1076
- "location": "global",
1077
- "id": "global::Promise"
1078
- }
1079
- },
1080
- "return": "Promise<void>"
1081
- },
1082
- "docs": {
1083
- "text": "Sets the date value",
1084
- "tags": []
1085
- }
1086
- },
1087
- "getFormat": {
1088
- "complexType": {
1089
- "signature": "() => Promise<string>",
1090
- "parameters": [],
1091
- "references": {
1092
- "Promise": {
1093
- "location": "global",
1094
- "id": "global::Promise"
1095
- }
1096
- },
1097
- "return": "Promise<string>"
1098
- },
1099
- "docs": {
1100
- "text": "Gets the current date format",
1101
- "tags": []
1102
- }
1103
- },
1104
- "setFormat": {
1105
- "complexType": {
1106
- "signature": "(format: string) => Promise<void>",
1107
- "parameters": [{
1108
- "name": "format",
1109
- "type": "string",
1110
- "docs": ""
1111
- }],
1112
- "references": {
1113
- "Promise": {
1114
- "location": "global",
1115
- "id": "global::Promise"
1116
- }
1117
- },
1118
- "return": "Promise<void>"
1119
- },
1120
- "docs": {
1121
- "text": "Sets the date format",
1122
- "tags": []
1123
- }
1124
- },
1125
- "isTouched": {
1126
- "complexType": {
1127
- "signature": "() => Promise<boolean>",
1128
- "parameters": [],
1129
- "references": {
1130
- "Promise": {
1131
- "location": "global",
1132
- "id": "global::Promise"
1133
- }
1134
- },
1135
- "return": "Promise<boolean>"
1136
- },
1137
- "docs": {
1138
- "text": "Gets the touched state (whether user has interacted with the input)",
1139
- "tags": []
1140
- }
1141
- },
1142
- "isDirty": {
1143
- "complexType": {
1144
- "signature": "() => Promise<boolean>",
1145
- "parameters": [],
1146
- "references": {
1147
- "Promise": {
1148
- "location": "global",
1149
- "id": "global::Promise"
1150
- }
1151
- },
1152
- "return": "Promise<boolean>"
1153
- },
1154
- "docs": {
1155
- "text": "Gets the dirty state (whether value has been changed by user)",
1156
- "tags": []
1157
- }
1158
- },
1159
- "markAsPristine": {
1160
- "complexType": {
1161
- "signature": "() => Promise<void>",
1162
- "parameters": [],
1163
- "references": {
1164
- "Promise": {
1165
- "location": "global",
1166
- "id": "global::Promise"
1167
- }
1168
- },
1169
- "return": "Promise<void>"
1170
- },
1171
- "docs": {
1172
- "text": "Resets touched and dirty states to pristine (untouched/clean)",
1173
- "tags": []
1174
- }
1175
- },
1176
- "reset": {
1177
- "complexType": {
1178
- "signature": "() => Promise<void>",
1179
- "parameters": [],
1180
- "references": {
1181
- "Promise": {
1182
- "location": "global",
1183
- "id": "global::Promise"
1184
- }
1185
- },
1186
- "return": "Promise<void>"
1187
- },
1188
- "docs": {
1189
- "text": "Resets the component by clearing all input values and focusing the first input.",
1190
- "tags": [{
1191
- "name": "returns",
1192
- "text": "Promise that resolves when reset is complete"
1193
- }]
1194
- }
1195
- },
1196
- "checkValidity": {
1197
- "complexType": {
1198
- "signature": "() => Promise<boolean>",
1199
- "parameters": [],
1200
- "references": {
1201
- "Promise": {
1202
- "location": "global",
1203
- "id": "global::Promise"
1204
- }
1205
- },
1206
- "return": "Promise<boolean>"
1207
- },
1208
- "docs": {
1209
- "text": "Validates the input date without triggering UI and returns a boolean indicating its validity.",
1210
- "tags": [{
1211
- "name": "returns",
1212
- "text": "A boolean indicating whether the input date is valid."
1213
- }]
1214
- }
1215
- }
1216
- };
1217
- }
1218
- static get elementRef() { return "host"; }
1219
- static get watchers() {
1220
- return [{
1221
- "propName": "format",
1222
- "methodName": "handleFormatChange"
1223
- }, {
1224
- "propName": "value",
1225
- "methodName": "handleValueChange"
1226
- }];
1227
- }
1228
- }