@roadtrip/components 3.40.0 → 3.41.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 (370) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/road-alert.cjs.entry.js +62 -2
  3. package/dist/cjs/road-alert.cjs.entry.js.map +1 -1
  4. package/dist/cjs/road-area-code.cjs.entry.js +1 -1
  5. package/dist/cjs/road-aspect-ratio.cjs.entry.js +1 -1
  6. package/dist/cjs/road-autocomplete.cjs.entry.js +2 -2
  7. package/dist/cjs/road-avatar.cjs.entry.js +1 -1
  8. package/dist/cjs/road-badge_14.cjs.entry.js +23 -18
  9. package/dist/cjs/road-badge_14.cjs.entry.js.map +1 -1
  10. package/dist/cjs/road-banner.cjs.entry.js +1 -1
  11. package/dist/cjs/road-button-floating.cjs.entry.js +1 -1
  12. package/dist/cjs/road-card.cjs.entry.js +1 -1
  13. package/dist/cjs/road-carousel-item.cjs.entry.js +2 -2
  14. package/dist/cjs/road-carousel.cjs.entry.js +1 -1
  15. package/dist/cjs/road-checkbox.cjs.entry.js +1 -1
  16. package/dist/cjs/road-chip.cjs.entry.js +1 -1
  17. package/dist/cjs/road-collapse.cjs.entry.js +1 -1
  18. package/dist/cjs/road-content-card.cjs.entry.js +1 -1
  19. package/dist/cjs/road-dialog.cjs.entry.js +3 -3
  20. package/dist/cjs/road-dropdown.cjs.entry.js +1 -1
  21. package/dist/cjs/road-duration.cjs.entry.js +1 -1
  22. package/dist/cjs/road-flap.cjs.entry.js +1 -1
  23. package/dist/cjs/road-global-navigation-v2.cjs.entry.js +1 -1
  24. package/dist/cjs/road-global-navigation.cjs.entry.js +1 -1
  25. package/dist/cjs/road-img.cjs.entry.js +1 -1
  26. package/dist/cjs/road-modal.cjs.entry.js +1 -1
  27. package/dist/cjs/road-navbar-item-v2.cjs.entry.js +2 -2
  28. package/dist/cjs/road-navbar-item.cjs.entry.js +2 -2
  29. package/dist/cjs/road-navbar-v2.cjs.entry.js +1 -1
  30. package/dist/cjs/road-navbar.cjs.entry.js +1 -1
  31. package/dist/cjs/road-phone-number-input.cjs.entry.js +2 -2
  32. package/dist/cjs/road-plate-number.cjs.entry.js +2 -2
  33. package/dist/cjs/road-profil-dropdown.cjs.entry.js +1 -1
  34. package/dist/cjs/road-progress-indicator-horizontal.cjs.entry.js +1 -1
  35. package/dist/cjs/road-progress-indicator-vertical-item.cjs.entry.js +1 -1
  36. package/dist/cjs/road-progress-indicator-vertical.cjs.entry.js +1 -1
  37. package/dist/cjs/road-progress-tracker-item.cjs.entry.js +1 -1
  38. package/dist/cjs/road-progress-tracker.cjs.entry.js +1 -1
  39. package/dist/cjs/road-progress.cjs.entry.js +1 -1
  40. package/dist/cjs/road-radio-card.cjs.entry.js +1 -1
  41. package/dist/cjs/road-radio-group.cjs.entry.js +1 -1
  42. package/dist/cjs/road-radio.cjs.entry.js +1 -1
  43. package/dist/cjs/road-range.cjs.entry.js +2 -2
  44. package/dist/cjs/road-rating.cjs.entry.js +1 -1
  45. package/dist/cjs/road-segmented-button-bar.cjs.entry.js +1 -1
  46. package/dist/cjs/road-segmented-button.cjs.entry.js +2 -2
  47. package/dist/cjs/road-segmented-buttons.cjs.entry.js +1 -1
  48. package/dist/cjs/road-select-filter.cjs.entry.js +1 -1
  49. package/dist/cjs/road-select.cjs.entry.js +1 -1
  50. package/dist/cjs/road-skeleton.cjs.entry.js +1 -1
  51. package/dist/cjs/road-spinner.cjs.entry.js +1 -1
  52. package/dist/cjs/road-status-chip.cjs.entry.js +1 -1
  53. package/dist/cjs/road-switch.cjs.entry.js +2 -2
  54. package/dist/cjs/road-tab-bar.cjs.entry.js +2 -2
  55. package/dist/cjs/road-tab-button.cjs.entry.js +2 -2
  56. package/dist/cjs/road-tab.cjs.entry.js +2 -2
  57. package/dist/cjs/road-table.cjs.entry.js +1 -1
  58. package/dist/cjs/road-tabs.cjs.entry.js +1 -1
  59. package/dist/cjs/road-tag.cjs.entry.js +1 -1
  60. package/dist/cjs/road-text.cjs.entry.js +1 -1
  61. package/dist/cjs/road-textarea.cjs.entry.js +1 -1
  62. package/dist/cjs/road-time-range-picker.cjs.entry.js +1 -1
  63. package/dist/cjs/road-toast.cjs.entry.js +1 -1
  64. package/dist/cjs/road-toggle.cjs.entry.js +2 -2
  65. package/dist/cjs/road-toolbar-title-page.cjs.entry.js +1 -1
  66. package/dist/cjs/road-toolbar-title.cjs.entry.js +1 -1
  67. package/dist/cjs/road-toolbar-v2.cjs.entry.js +1 -1
  68. package/dist/cjs/road-tooltip.cjs.entry.js +3 -3
  69. package/dist/cjs/roadtrip.cjs.js +1 -1
  70. package/dist/collection/components/alert/alert.css +68 -2
  71. package/dist/collection/components/alert/alert.js +185 -1
  72. package/dist/collection/components/alert/alert.js.map +1 -1
  73. package/dist/collection/components/alert/alert.stories.js +43 -12
  74. package/dist/collection/components/area-code/area-code.js +1 -1
  75. package/dist/collection/components/aspect-ratio/aspect-ratio.js +1 -1
  76. package/dist/collection/components/autocomplete/autocomplete.js +2 -2
  77. package/dist/collection/components/avatar/avatar.js +1 -1
  78. package/dist/collection/components/badge/badge.js +1 -1
  79. package/dist/collection/components/banner/banner.js +1 -1
  80. package/dist/collection/components/button/button.js +1 -1
  81. package/dist/collection/components/button-floating/button-floating.js +1 -1
  82. package/dist/collection/components/card/card.js +1 -1
  83. package/dist/collection/components/carousel/carousel.js +1 -1
  84. package/dist/collection/components/carousel-item/carousel-item.js +2 -2
  85. package/dist/collection/components/checkbox/checkbox.js +1 -1
  86. package/dist/collection/components/chip/chip.js +1 -1
  87. package/dist/collection/components/col/col.js +1 -1
  88. package/dist/collection/components/collapse/collapse.js +1 -1
  89. package/dist/collection/components/content-card/content-card.js +1 -1
  90. package/dist/collection/components/counter/counter.js +1 -1
  91. package/dist/collection/components/dialog/dialog.js +3 -3
  92. package/dist/collection/components/drawer/drawer.js +1 -1
  93. package/dist/collection/components/dropdown/dropdown.js +1 -1
  94. package/dist/collection/components/duration/duration.js +1 -1
  95. package/dist/collection/components/flap/flap.js +1 -1
  96. package/dist/collection/components/global-navigation/global-navigation.js +1 -1
  97. package/dist/collection/components/global-navigation-v2/global-navigation-v2.js +1 -1
  98. package/dist/collection/components/grid/grid.js +1 -1
  99. package/dist/collection/components/img/img.js +1 -1
  100. package/dist/collection/components/input/input.css +8 -0
  101. package/dist/collection/components/input/input.js +27 -2
  102. package/dist/collection/components/input/input.js.map +1 -1
  103. package/dist/collection/components/input/input.stories.js +11 -0
  104. package/dist/collection/components/input-group/input-group.js +1 -1
  105. package/dist/collection/components/item/item.js +3 -3
  106. package/dist/collection/components/label/label.js +1 -1
  107. package/dist/collection/components/list/list.js +2 -2
  108. package/dist/collection/components/modal/modal.js +1 -1
  109. package/dist/collection/components/navbar/navbar.js +1 -1
  110. package/dist/collection/components/navbar-item/navbar-item.js +2 -2
  111. package/dist/collection/components/navbar-item-v2/navbar-item-v2.js +2 -2
  112. package/dist/collection/components/navbar-v2/navbar-v2.js +1 -1
  113. package/dist/collection/components/phone-number-input/phone-number-input.js +2 -2
  114. package/dist/collection/components/plate-number/plate-number.js +2 -2
  115. package/dist/collection/components/profil-dropdown/profil-dropdown.js +1 -1
  116. package/dist/collection/components/progress/progress.js +1 -1
  117. package/dist/collection/components/progress-indicator-horizontal/progress-indicator-horizontal.js +1 -1
  118. package/dist/collection/components/progress-indicator-vertical/progress-indicator-vertical.js +1 -1
  119. package/dist/collection/components/progress-indicator-vertical-item/progress-indicator-vertical-item.js +1 -1
  120. package/dist/collection/components/progress-tracker/progress-tracker.js +1 -1
  121. package/dist/collection/components/progress-tracker-item/progress-tracker-item.js +1 -1
  122. package/dist/collection/components/radio/radio.js +1 -1
  123. package/dist/collection/components/radio-card/radio-card.js +1 -1
  124. package/dist/collection/components/radio-group/radio-group.js +1 -1
  125. package/dist/collection/components/range/range.js +2 -2
  126. package/dist/collection/components/rating/rating.js +1 -1
  127. package/dist/collection/components/row/row.js +1 -1
  128. package/dist/collection/components/segmented-button/segmented-button.js +2 -2
  129. package/dist/collection/components/segmented-button-bar/segmented-button-bar.js +1 -1
  130. package/dist/collection/components/segmented-buttons/segmented-buttons.js +1 -1
  131. package/dist/collection/components/select/select.js +1 -1
  132. package/dist/collection/components/select-filter/select-filter.js +1 -1
  133. package/dist/collection/components/skeleton/skeleton.js +1 -1
  134. package/dist/collection/components/spinner/spinner.js +1 -1
  135. package/dist/collection/components/status-chip/status-chip.js +1 -1
  136. package/dist/collection/components/switch/switch.js +2 -2
  137. package/dist/collection/components/tab/tab.js +2 -2
  138. package/dist/collection/components/tab-bar/tab-bar.js +2 -2
  139. package/dist/collection/components/tab-button/tab-button.js +2 -2
  140. package/dist/collection/components/table/table.js +1 -1
  141. package/dist/collection/components/tabs/tabs.js +1 -1
  142. package/dist/collection/components/tag/tag.js +1 -1
  143. package/dist/collection/components/text/text.js +1 -1
  144. package/dist/collection/components/textarea/textarea.js +1 -1
  145. package/dist/collection/components/time-range-picker/time-range-picker.js +1 -1
  146. package/dist/collection/components/toast/toast.js +1 -1
  147. package/dist/collection/components/toggle/toggle.js +2 -2
  148. package/dist/collection/components/toolbar/toolbar.js +1 -1
  149. package/dist/collection/components/toolbar-title/toolbar-title.js +1 -1
  150. package/dist/collection/components/toolbar-title-page/toolbar-title-page.js +1 -1
  151. package/dist/collection/components/toolbar-v2/toolbar-v2.js +1 -1
  152. package/dist/collection/components/tooltip/tooltip.js +3 -3
  153. package/dist/esm/loader.js +1 -1
  154. package/dist/esm/road-alert.entry.js +63 -3
  155. package/dist/esm/road-alert.entry.js.map +1 -1
  156. package/dist/esm/road-area-code.entry.js +1 -1
  157. package/dist/esm/road-aspect-ratio.entry.js +1 -1
  158. package/dist/esm/road-autocomplete.entry.js +2 -2
  159. package/dist/esm/road-avatar.entry.js +1 -1
  160. package/dist/esm/road-badge_14.entry.js +23 -18
  161. package/dist/esm/road-badge_14.entry.js.map +1 -1
  162. package/dist/esm/road-banner.entry.js +1 -1
  163. package/dist/esm/road-button-floating.entry.js +1 -1
  164. package/dist/esm/road-card.entry.js +1 -1
  165. package/dist/esm/road-carousel-item.entry.js +2 -2
  166. package/dist/esm/road-carousel.entry.js +1 -1
  167. package/dist/esm/road-checkbox.entry.js +1 -1
  168. package/dist/esm/road-chip.entry.js +1 -1
  169. package/dist/esm/road-collapse.entry.js +1 -1
  170. package/dist/esm/road-content-card.entry.js +1 -1
  171. package/dist/esm/road-dialog.entry.js +3 -3
  172. package/dist/esm/road-dropdown.entry.js +1 -1
  173. package/dist/esm/road-duration.entry.js +1 -1
  174. package/dist/esm/road-flap.entry.js +1 -1
  175. package/dist/esm/road-global-navigation-v2.entry.js +1 -1
  176. package/dist/esm/road-global-navigation.entry.js +1 -1
  177. package/dist/esm/road-img.entry.js +1 -1
  178. package/dist/esm/road-modal.entry.js +1 -1
  179. package/dist/esm/road-navbar-item-v2.entry.js +2 -2
  180. package/dist/esm/road-navbar-item.entry.js +2 -2
  181. package/dist/esm/road-navbar-v2.entry.js +1 -1
  182. package/dist/esm/road-navbar.entry.js +1 -1
  183. package/dist/esm/road-phone-number-input.entry.js +2 -2
  184. package/dist/esm/road-plate-number.entry.js +2 -2
  185. package/dist/esm/road-profil-dropdown.entry.js +1 -1
  186. package/dist/esm/road-progress-indicator-horizontal.entry.js +1 -1
  187. package/dist/esm/road-progress-indicator-vertical-item.entry.js +1 -1
  188. package/dist/esm/road-progress-indicator-vertical.entry.js +1 -1
  189. package/dist/esm/road-progress-tracker-item.entry.js +1 -1
  190. package/dist/esm/road-progress-tracker.entry.js +1 -1
  191. package/dist/esm/road-progress.entry.js +1 -1
  192. package/dist/esm/road-radio-card.entry.js +1 -1
  193. package/dist/esm/road-radio-group.entry.js +1 -1
  194. package/dist/esm/road-radio.entry.js +1 -1
  195. package/dist/esm/road-range.entry.js +2 -2
  196. package/dist/esm/road-rating.entry.js +1 -1
  197. package/dist/esm/road-segmented-button-bar.entry.js +1 -1
  198. package/dist/esm/road-segmented-button.entry.js +2 -2
  199. package/dist/esm/road-segmented-buttons.entry.js +1 -1
  200. package/dist/esm/road-select-filter.entry.js +1 -1
  201. package/dist/esm/road-select.entry.js +1 -1
  202. package/dist/esm/road-skeleton.entry.js +1 -1
  203. package/dist/esm/road-spinner.entry.js +1 -1
  204. package/dist/esm/road-status-chip.entry.js +1 -1
  205. package/dist/esm/road-switch.entry.js +2 -2
  206. package/dist/esm/road-tab-bar.entry.js +2 -2
  207. package/dist/esm/road-tab-button.entry.js +2 -2
  208. package/dist/esm/road-tab.entry.js +2 -2
  209. package/dist/esm/road-table.entry.js +1 -1
  210. package/dist/esm/road-tabs.entry.js +1 -1
  211. package/dist/esm/road-tag.entry.js +1 -1
  212. package/dist/esm/road-text.entry.js +1 -1
  213. package/dist/esm/road-textarea.entry.js +1 -1
  214. package/dist/esm/road-time-range-picker.entry.js +1 -1
  215. package/dist/esm/road-toast.entry.js +1 -1
  216. package/dist/esm/road-toggle.entry.js +2 -2
  217. package/dist/esm/road-toolbar-title-page.entry.js +1 -1
  218. package/dist/esm/road-toolbar-title.entry.js +1 -1
  219. package/dist/esm/road-toolbar-v2.entry.js +1 -1
  220. package/dist/esm/road-tooltip.entry.js +3 -3
  221. package/dist/esm/roadtrip.js +1 -1
  222. package/dist/html.html-data.json +27 -0
  223. package/dist/roadtrip/{p-017a76a9.entry.js → p-07db2ee1.entry.js} +3 -3
  224. package/dist/roadtrip/p-07db2ee1.entry.js.map +1 -0
  225. package/dist/roadtrip/{p-2757cbd1.entry.js → p-11d896b1.entry.js} +2 -2
  226. package/dist/roadtrip/{p-31837e5f.entry.js → p-1449b7c8.entry.js} +2 -2
  227. package/dist/roadtrip/{p-4401f218.entry.js → p-24196fd2.entry.js} +2 -2
  228. package/dist/roadtrip/{p-c2e6b479.entry.js → p-26b852e2.entry.js} +2 -2
  229. package/dist/roadtrip/{p-651105d3.entry.js → p-2797e2f2.entry.js} +2 -2
  230. package/dist/roadtrip/{p-71ea3c01.entry.js → p-29ac611e.entry.js} +2 -2
  231. package/dist/roadtrip/p-2ae82371.entry.js +2 -0
  232. package/dist/roadtrip/{p-2722edab.entry.js → p-302f51c6.entry.js} +2 -2
  233. package/dist/roadtrip/{p-58c773c3.entry.js → p-36288d23.entry.js} +2 -2
  234. package/dist/roadtrip/{p-3c63b7db.entry.js → p-36f8563a.entry.js} +2 -2
  235. package/dist/roadtrip/{p-21adfb3f.entry.js → p-377d6b5b.entry.js} +2 -2
  236. package/dist/roadtrip/{p-fef9b54c.entry.js → p-39173ac2.entry.js} +2 -2
  237. package/dist/roadtrip/{p-6020b36a.entry.js → p-3a310d3d.entry.js} +2 -2
  238. package/dist/roadtrip/{p-fd19056c.entry.js → p-3dc22d00.entry.js} +2 -2
  239. package/dist/roadtrip/p-4182495e.entry.js +2 -0
  240. package/dist/roadtrip/p-4182495e.entry.js.map +1 -0
  241. package/dist/roadtrip/p-4334d85b.entry.js +2 -0
  242. package/dist/roadtrip/{p-4543ebe4.entry.js → p-45b9521f.entry.js} +2 -2
  243. package/dist/roadtrip/{p-4f1d3834.entry.js → p-45cabcdf.entry.js} +2 -2
  244. package/dist/roadtrip/{p-a4aa3628.entry.js → p-4bb49a92.entry.js} +2 -2
  245. package/dist/roadtrip/{p-a4e4986d.entry.js → p-4e3cc7e9.entry.js} +2 -2
  246. package/dist/roadtrip/{p-7546dadc.entry.js → p-509ba166.entry.js} +2 -2
  247. package/dist/roadtrip/{p-2ff1292b.entry.js → p-52d56ed2.entry.js} +2 -2
  248. package/dist/roadtrip/{p-47996b6e.entry.js → p-58b20099.entry.js} +2 -2
  249. package/dist/roadtrip/{p-9fd1a846.entry.js → p-5b738d24.entry.js} +2 -2
  250. package/dist/roadtrip/{p-14761790.entry.js → p-5f6771e5.entry.js} +2 -2
  251. package/dist/roadtrip/p-61191773.entry.js +2 -0
  252. package/dist/roadtrip/{p-db5107c4.entry.js.map → p-61191773.entry.js.map} +1 -1
  253. package/dist/roadtrip/{p-610216c6.entry.js → p-65dfd1e8.entry.js} +2 -2
  254. package/dist/roadtrip/{p-a21bce75.entry.js → p-6e9fac54.entry.js} +2 -2
  255. package/dist/roadtrip/{p-974b5313.entry.js → p-70f4387a.entry.js} +2 -2
  256. package/dist/roadtrip/{p-111df7a1.entry.js → p-75ebf102.entry.js} +2 -2
  257. package/dist/roadtrip/{p-f514f186.entry.js → p-7955499d.entry.js} +2 -2
  258. package/dist/roadtrip/{p-daeb9c8d.entry.js → p-79c3152e.entry.js} +2 -2
  259. package/dist/roadtrip/{p-84dc220e.entry.js → p-7e0bdcf9.entry.js} +2 -2
  260. package/dist/roadtrip/{p-bb7583ee.entry.js → p-8753beba.entry.js} +2 -2
  261. package/dist/roadtrip/{p-fa0d3620.entry.js → p-875b5999.entry.js} +2 -2
  262. package/dist/roadtrip/{p-29485fb3.entry.js → p-8cd69117.entry.js} +2 -2
  263. package/dist/roadtrip/{p-c1f1efd9.entry.js → p-927cf307.entry.js} +2 -2
  264. package/dist/roadtrip/{p-255f2276.entry.js → p-9cbd5ae9.entry.js} +2 -2
  265. package/dist/roadtrip/{p-64928ea0.entry.js → p-a264377a.entry.js} +2 -2
  266. package/dist/roadtrip/{p-64b638e1.entry.js → p-a4e45088.entry.js} +2 -2
  267. package/dist/roadtrip/{p-6eb30876.entry.js → p-b292d3fc.entry.js} +2 -2
  268. package/dist/roadtrip/{p-5cd3095d.entry.js → p-b5b2e36c.entry.js} +2 -2
  269. package/dist/roadtrip/{p-324522a1.entry.js → p-b61abebd.entry.js} +2 -2
  270. package/dist/roadtrip/{p-d91eccca.entry.js → p-b8132587.entry.js} +2 -2
  271. package/dist/roadtrip/{p-998e28b4.entry.js → p-c28fbcc0.entry.js} +2 -2
  272. package/dist/roadtrip/{p-aed4bf52.entry.js → p-c4550384.entry.js} +2 -2
  273. package/dist/roadtrip/{p-c441209e.entry.js → p-c7dd579d.entry.js} +2 -2
  274. package/dist/roadtrip/{p-cd0c64cb.entry.js → p-c9527301.entry.js} +2 -2
  275. package/dist/roadtrip/{p-d62ae6e9.entry.js → p-ca3460a4.entry.js} +2 -2
  276. package/dist/roadtrip/{p-71fe2f8e.entry.js → p-d1517c27.entry.js} +2 -2
  277. package/dist/roadtrip/{p-74b17bd6.entry.js → p-d6a7644e.entry.js} +2 -2
  278. package/dist/roadtrip/{p-ea7ad722.entry.js → p-d881a66c.entry.js} +2 -2
  279. package/dist/roadtrip/{p-1352bc34.entry.js → p-de35fded.entry.js} +2 -2
  280. package/dist/roadtrip/{p-df353cb6.entry.js → p-e2ba76f7.entry.js} +2 -2
  281. package/dist/roadtrip/p-e56c84ec.entry.js +2 -0
  282. package/dist/roadtrip/{p-2ae9b559.entry.js.map → p-e56c84ec.entry.js.map} +1 -1
  283. package/dist/roadtrip/{p-824b4a68.entry.js → p-e7b4f257.entry.js} +2 -2
  284. package/dist/roadtrip/{p-b7dc61c8.entry.js → p-e97c8d7f.entry.js} +2 -2
  285. package/dist/roadtrip/p-eca24e7d.entry.js +2 -0
  286. package/dist/roadtrip/{p-fbbe77e0.entry.js.map → p-eca24e7d.entry.js.map} +1 -1
  287. package/dist/roadtrip/{p-6e09a2ef.entry.js → p-edf07985.entry.js} +2 -2
  288. package/dist/roadtrip/{p-f7a3a65c.entry.js → p-ef883f08.entry.js} +2 -2
  289. package/dist/roadtrip/{p-83ea3a4e.entry.js → p-f30f96c2.entry.js} +2 -2
  290. package/dist/roadtrip/{p-6bba72da.entry.js → p-f58f43d0.entry.js} +2 -2
  291. package/dist/roadtrip/{p-090b84ec.entry.js → p-fdcebcc3.entry.js} +2 -2
  292. package/dist/roadtrip/p-ff189f73.entry.js +2 -0
  293. package/dist/roadtrip/roadtrip.esm.js +1 -1
  294. package/dist/roadtrip/roadtrip.esm.js.map +1 -1
  295. package/dist/types/components/alert/alert.d.ts +41 -0
  296. package/dist/types/components/input/input.d.ts +4 -0
  297. package/dist/types/components.d.ts +75 -0
  298. package/hydrate/index.d.ts +24 -38
  299. package/hydrate/index.js +19982 -20280
  300. package/hydrate/index.mjs +19982 -20280
  301. package/package.json +1 -1
  302. package/dist/roadtrip/p-017a76a9.entry.js.map +0 -1
  303. package/dist/roadtrip/p-2ae9b559.entry.js +0 -2
  304. package/dist/roadtrip/p-32685310.entry.js +0 -2
  305. package/dist/roadtrip/p-9e22fa54.entry.js +0 -2
  306. package/dist/roadtrip/p-a8cfee66.entry.js +0 -2
  307. package/dist/roadtrip/p-a8cfee66.entry.js.map +0 -1
  308. package/dist/roadtrip/p-db5107c4.entry.js +0 -2
  309. package/dist/roadtrip/p-f4b23455.entry.js +0 -2
  310. package/dist/roadtrip/p-fbbe77e0.entry.js +0 -2
  311. /package/dist/roadtrip/{p-2757cbd1.entry.js.map → p-11d896b1.entry.js.map} +0 -0
  312. /package/dist/roadtrip/{p-31837e5f.entry.js.map → p-1449b7c8.entry.js.map} +0 -0
  313. /package/dist/roadtrip/{p-4401f218.entry.js.map → p-24196fd2.entry.js.map} +0 -0
  314. /package/dist/roadtrip/{p-c2e6b479.entry.js.map → p-26b852e2.entry.js.map} +0 -0
  315. /package/dist/roadtrip/{p-651105d3.entry.js.map → p-2797e2f2.entry.js.map} +0 -0
  316. /package/dist/roadtrip/{p-71ea3c01.entry.js.map → p-29ac611e.entry.js.map} +0 -0
  317. /package/dist/roadtrip/{p-32685310.entry.js.map → p-2ae82371.entry.js.map} +0 -0
  318. /package/dist/roadtrip/{p-2722edab.entry.js.map → p-302f51c6.entry.js.map} +0 -0
  319. /package/dist/roadtrip/{p-58c773c3.entry.js.map → p-36288d23.entry.js.map} +0 -0
  320. /package/dist/roadtrip/{p-3c63b7db.entry.js.map → p-36f8563a.entry.js.map} +0 -0
  321. /package/dist/roadtrip/{p-21adfb3f.entry.js.map → p-377d6b5b.entry.js.map} +0 -0
  322. /package/dist/roadtrip/{p-fef9b54c.entry.js.map → p-39173ac2.entry.js.map} +0 -0
  323. /package/dist/roadtrip/{p-6020b36a.entry.js.map → p-3a310d3d.entry.js.map} +0 -0
  324. /package/dist/roadtrip/{p-fd19056c.entry.js.map → p-3dc22d00.entry.js.map} +0 -0
  325. /package/dist/roadtrip/{p-9e22fa54.entry.js.map → p-4334d85b.entry.js.map} +0 -0
  326. /package/dist/roadtrip/{p-4543ebe4.entry.js.map → p-45b9521f.entry.js.map} +0 -0
  327. /package/dist/roadtrip/{p-4f1d3834.entry.js.map → p-45cabcdf.entry.js.map} +0 -0
  328. /package/dist/roadtrip/{p-a4aa3628.entry.js.map → p-4bb49a92.entry.js.map} +0 -0
  329. /package/dist/roadtrip/{p-a4e4986d.entry.js.map → p-4e3cc7e9.entry.js.map} +0 -0
  330. /package/dist/roadtrip/{p-7546dadc.entry.js.map → p-509ba166.entry.js.map} +0 -0
  331. /package/dist/roadtrip/{p-2ff1292b.entry.js.map → p-52d56ed2.entry.js.map} +0 -0
  332. /package/dist/roadtrip/{p-47996b6e.entry.js.map → p-58b20099.entry.js.map} +0 -0
  333. /package/dist/roadtrip/{p-9fd1a846.entry.js.map → p-5b738d24.entry.js.map} +0 -0
  334. /package/dist/roadtrip/{p-14761790.entry.js.map → p-5f6771e5.entry.js.map} +0 -0
  335. /package/dist/roadtrip/{p-610216c6.entry.js.map → p-65dfd1e8.entry.js.map} +0 -0
  336. /package/dist/roadtrip/{p-a21bce75.entry.js.map → p-6e9fac54.entry.js.map} +0 -0
  337. /package/dist/roadtrip/{p-974b5313.entry.js.map → p-70f4387a.entry.js.map} +0 -0
  338. /package/dist/roadtrip/{p-111df7a1.entry.js.map → p-75ebf102.entry.js.map} +0 -0
  339. /package/dist/roadtrip/{p-f514f186.entry.js.map → p-7955499d.entry.js.map} +0 -0
  340. /package/dist/roadtrip/{p-daeb9c8d.entry.js.map → p-79c3152e.entry.js.map} +0 -0
  341. /package/dist/roadtrip/{p-84dc220e.entry.js.map → p-7e0bdcf9.entry.js.map} +0 -0
  342. /package/dist/roadtrip/{p-bb7583ee.entry.js.map → p-8753beba.entry.js.map} +0 -0
  343. /package/dist/roadtrip/{p-fa0d3620.entry.js.map → p-875b5999.entry.js.map} +0 -0
  344. /package/dist/roadtrip/{p-29485fb3.entry.js.map → p-8cd69117.entry.js.map} +0 -0
  345. /package/dist/roadtrip/{p-c1f1efd9.entry.js.map → p-927cf307.entry.js.map} +0 -0
  346. /package/dist/roadtrip/{p-255f2276.entry.js.map → p-9cbd5ae9.entry.js.map} +0 -0
  347. /package/dist/roadtrip/{p-64928ea0.entry.js.map → p-a264377a.entry.js.map} +0 -0
  348. /package/dist/roadtrip/{p-64b638e1.entry.js.map → p-a4e45088.entry.js.map} +0 -0
  349. /package/dist/roadtrip/{p-6eb30876.entry.js.map → p-b292d3fc.entry.js.map} +0 -0
  350. /package/dist/roadtrip/{p-5cd3095d.entry.js.map → p-b5b2e36c.entry.js.map} +0 -0
  351. /package/dist/roadtrip/{p-324522a1.entry.js.map → p-b61abebd.entry.js.map} +0 -0
  352. /package/dist/roadtrip/{p-d91eccca.entry.js.map → p-b8132587.entry.js.map} +0 -0
  353. /package/dist/roadtrip/{p-998e28b4.entry.js.map → p-c28fbcc0.entry.js.map} +0 -0
  354. /package/dist/roadtrip/{p-aed4bf52.entry.js.map → p-c4550384.entry.js.map} +0 -0
  355. /package/dist/roadtrip/{p-c441209e.entry.js.map → p-c7dd579d.entry.js.map} +0 -0
  356. /package/dist/roadtrip/{p-cd0c64cb.entry.js.map → p-c9527301.entry.js.map} +0 -0
  357. /package/dist/roadtrip/{p-d62ae6e9.entry.js.map → p-ca3460a4.entry.js.map} +0 -0
  358. /package/dist/roadtrip/{p-71fe2f8e.entry.js.map → p-d1517c27.entry.js.map} +0 -0
  359. /package/dist/roadtrip/{p-74b17bd6.entry.js.map → p-d6a7644e.entry.js.map} +0 -0
  360. /package/dist/roadtrip/{p-ea7ad722.entry.js.map → p-d881a66c.entry.js.map} +0 -0
  361. /package/dist/roadtrip/{p-1352bc34.entry.js.map → p-de35fded.entry.js.map} +0 -0
  362. /package/dist/roadtrip/{p-df353cb6.entry.js.map → p-e2ba76f7.entry.js.map} +0 -0
  363. /package/dist/roadtrip/{p-824b4a68.entry.js.map → p-e7b4f257.entry.js.map} +0 -0
  364. /package/dist/roadtrip/{p-b7dc61c8.entry.js.map → p-e97c8d7f.entry.js.map} +0 -0
  365. /package/dist/roadtrip/{p-6e09a2ef.entry.js.map → p-edf07985.entry.js.map} +0 -0
  366. /package/dist/roadtrip/{p-f7a3a65c.entry.js.map → p-ef883f08.entry.js.map} +0 -0
  367. /package/dist/roadtrip/{p-83ea3a4e.entry.js.map → p-f30f96c2.entry.js.map} +0 -0
  368. /package/dist/roadtrip/{p-6bba72da.entry.js.map → p-f58f43d0.entry.js.map} +0 -0
  369. /package/dist/roadtrip/{p-090b84ec.entry.js.map → p-fdcebcc3.entry.js.map} +0 -0
  370. /package/dist/roadtrip/{p-f4b23455.entry.js.map → p-ff189f73.entry.js.map} +0 -0
@@ -42,7 +42,7 @@ export class Duration {
42
42
  this.isOpen = false;
43
43
  }
44
44
  render() {
45
- return (h("road-drawer", { key: '8c6994a2336d91e1b2c53ee243e7913298f6e0ff', "is-open": this.isOpen, position: "bottom", "drawer-title": this.header }, h("road-grid", { key: '8eb993171f652d6bf2bfbe22ed4faa92ff94ce69' }, h("road-row", { key: 'bb12063e6c07e0d459c39a78626ed1991a07dbab', class: "duration-values" }, Array(Math.floor((this.max - this.min) / this.step) + 1).fill(this.min).map(((item, index) => (item + index * this.step))).map(item => h("road-col", { class: "col-3 col-md-2" }, h("road-card", { button: true, value: item }, h("road-label", null, Math.floor(item / 60).toLocaleString("en-GB", { minimumIntegerDigits: 2, useGrouping: false }), ":", (item % 60).toLocaleString("en-GB", { minimumIntegerDigits: 2, useGrouping: false })))))))));
45
+ return (h("road-drawer", { key: '2485f665f08be8b983893075cb687c0db04c8add', "is-open": this.isOpen, position: "bottom", "drawer-title": this.header }, h("road-grid", { key: 'a3cfb812b1127a32eb31e1344944a8d52dd59f70' }, h("road-row", { key: '1742b311e96f8140ffbe88f45a4f42ede7940cc9', class: "duration-values" }, Array(Math.floor((this.max - this.min) / this.step) + 1).fill(this.min).map(((item, index) => (item + index * this.step))).map(item => h("road-col", { class: "col-3 col-md-2" }, h("road-card", { button: true, value: item }, h("road-label", null, Math.floor(item / 60).toLocaleString("en-GB", { minimumIntegerDigits: 2, useGrouping: false }), ":", (item % 60).toLocaleString("en-GB", { minimumIntegerDigits: 2, useGrouping: false })))))))));
46
46
  }
47
47
  static get is() { return "road-duration"; }
48
48
  static get encapsulation() { return "shadow"; }
@@ -19,7 +19,7 @@ export class Flap {
19
19
  }
20
20
  render() {
21
21
  const colorClass = this.filled ? `flap-${this.color}-filled` : `flap-${this.color}`;
22
- return (h(Host, { key: '0ef7e9f8c55fc49a34182d944f71c9a75d0fb7be', class: `${colorClass} flap-${this.size}` }, h("slot", { key: 'fa1995ace426d5410cde6003d42d5b689db64bb3' })));
22
+ return (h(Host, { key: 'acecc88123e94f737aef8b2d1026e8a9ce196a7d', class: `${colorClass} flap-${this.size}` }, h("slot", { key: '6ce8eccf19a94ca9e7c8b75f9da8b7a8df00376b' })));
23
23
  }
24
24
  static get is() { return "road-flap"; }
25
25
  static get encapsulation() { return "shadow"; }
@@ -21,7 +21,7 @@ export class GlobalNavigation {
21
21
  this.selectedTabChanged();
22
22
  }
23
23
  render() {
24
- return (h(Host, { key: '9164170163b7e298ac0556cdcd3e0d47b2480791', role: "application" }, h("slot", { key: '150faf3c05b028772e695f0eaf836ec250ac775b' })));
24
+ return (h(Host, { key: 'bae96f32bd732721cbf401db21708a3bb601016b', role: "application" }, h("slot", { key: '65e4a67511fd702e3daaa1ba206fbb8ff67df6da' })));
25
25
  }
26
26
  static get is() { return "road-global-navigation"; }
27
27
  static get encapsulation() { return "shadow"; }
@@ -122,7 +122,7 @@ export class GlobalNavigationV2 {
122
122
  this.selectedTabChanged();
123
123
  }
124
124
  render() {
125
- return (h(Host, { key: 'e96a242247541fb01c652fba58dfa6e69e7257f0', role: "application" }, h("slot", { key: 'abfd9632f3b3d616095fc573e110a062cfcb5bad' })));
125
+ return (h(Host, { key: '1a523fcd448db62eb7a676184a22c7ae96e2d39e', role: "application" }, h("slot", { key: '7c46cc17b02a4425161d99b54ef1bca9711f179a' })));
126
126
  }
127
127
  static get is() { return "road-global-navigation-v2"; }
128
128
  static get encapsulation() { return "shadow"; }
@@ -4,7 +4,7 @@ import { h } from "@stencil/core";
4
4
  */
5
5
  export class Grid {
6
6
  render() {
7
- return (h("slot", { key: 'b9907edc844e7e9249634561fba9dfb7c3c5b260' }));
7
+ return (h("slot", { key: '8f4662a444e12323e10cda6ecc7a2fe9b2199ff3' }));
8
8
  }
9
9
  static get is() { return "road-grid"; }
10
10
  static get encapsulation() { return "shadow"; }
@@ -58,7 +58,7 @@ export class Img {
58
58
  }
59
59
  render() {
60
60
  const placeholder = this.loadSrc !== undefined ? '' : 'placeholder';
61
- return (h(Host, { key: '33a36ddb77496e0f119c9ea2d18df0e2d0977248', class: placeholder }, h("img", { key: '583ac1095cd055d8b455738344d2472cb6e61af3', class: "native-img", decoding: "async", src: this.loadSrc, alt: this.alt, onLoad: this.onLoad, onError: this.loadError, part: "image" })));
61
+ return (h(Host, { key: '6fd414b74c5d8cfef4b87847bef754c117a41803', class: placeholder }, h("img", { key: '5f3bcae6d677124b042535c8a52d2870262db16c', class: "native-img", decoding: "async", src: this.loadSrc, alt: this.alt, onLoad: this.onLoad, onError: this.loadError, part: "image" })));
62
62
  }
63
63
  static get is() { return "road-img"; }
64
64
  static get encapsulation() { return "shadow"; }
@@ -236,6 +236,14 @@
236
236
  display: flex;
237
237
  }
238
238
 
239
+ /* SUCCESS
240
+ -------------------- */
241
+
242
+ .form-control.is-valid,
243
+ .was-validated .form-control:valid {
244
+ border-color: var(--road-success-outline);
245
+ }
246
+
239
247
  /* HELPER
240
248
  -------------------- */
241
249
 
@@ -75,6 +75,10 @@ export class Input {
75
75
  * Label for the field
76
76
  */
77
77
  this.label = '';
78
+ /**
79
+ * The valid fields adopt an appearance that helps the user confirm that their data is formatted properly.
80
+ */
81
+ this.success = false;
78
82
  /**
79
83
  * Set the amount of time, in milliseconds, to wait to trigger the `roadChange` event after each keystroke.
80
84
  */
@@ -208,11 +212,12 @@ export class Input {
208
212
  const hasValueClass = this.value !== '' && this.value !== null ? 'has-value' : '';
209
213
  const lessLabelClass = this.label !== '' ? '' : 'less-label';
210
214
  const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
211
- return (h(Host, { key: 'd019b1873a3e1c5757c977ae55192cdc0a66c4eb', "aria-disabled": this.disabled ? 'true' : null, class: this.sizes && `input-${this.sizes}`, value: value, blockdecimal: this.blockdecimal }, h("input", { key: '37a9106a95c0f211fce126474d5cb44a8160173d', class: `form-control ${hasValueClass} ${isInvalidClass} ${lessLabelClass}`, id: this.inputId, "aria-disabled": this.disabled ? 'true' : null, "aria-labelledby": labelId, disabled: this.disabled, autoCapitalize: this.autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, enterKeyHint: this.enterkeyhint, autoFocus: this.autofocus, inputMode: this.inputmode, min: this.min, max: this.max, minLength: this.minlength, maxLength: this.maxlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, spellcheck: this.spellcheck, step: this.step, size: this.size, type: this.type, value: value, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.type === 'number' ? (event) => this.handleKeyDown(event) : undefined, "data-cy": 'road-input', ref: el => (this.inputEl = el) }), h("label", { key: '4dbcf9261d01528924480686246e9e1bd0b7b1fe', class: "form-label", id: labelId, htmlFor: this.inputId }, this.label), this.error && this.error !== '' && (Array.isArray(this.error)
215
+ const isValidClass = this.success == true ? 'is-valid' : '';
216
+ return (h(Host, { key: 'e1c39fcb1d557fa2317201767d3d8ab78f9d3a49', "aria-disabled": this.disabled ? 'true' : null, class: this.sizes && `input-${this.sizes}`, value: value, blockdecimal: this.blockdecimal }, h("input", { key: '5ae23298f7781fa0480e1d34d50add334f1ab10f', class: `form-control ${hasValueClass} ${isInvalidClass} ${isValidClass} ${lessLabelClass}`, id: this.inputId, "aria-disabled": this.disabled ? 'true' : null, "aria-labelledby": labelId, disabled: this.disabled, autoCapitalize: this.autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, enterKeyHint: this.enterkeyhint, autoFocus: this.autofocus, inputMode: this.inputmode, min: this.min, max: this.max, minLength: this.minlength, maxLength: this.maxlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, spellcheck: this.spellcheck, step: this.step, size: this.size, type: this.type, value: value, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.type === 'number' ? (event) => this.handleKeyDown(event) : undefined, "data-cy": 'road-input', ref: el => (this.inputEl = el) }), h("label", { key: 'd6f5b0aa7e14eb4c06fb3af037f9bda656a98282', class: "form-label", id: labelId, htmlFor: this.inputId }, this.label), this.error && this.error !== '' && (Array.isArray(this.error)
212
217
  ? // Si error est un tableau, on itère et génère un <p> pour chaque élément
213
218
  this.error.map((err, index) => (h("p", { key: index, class: "invalid-feedback" }, h("road-icon", { slot: "start", name: "alert-error-solid", "aria-hidden": "true", size: "sm" }), err.trim(), " ")))
214
219
  : // Si error est une chaîne, on la divise avec split et génère un <p> pour chaque élément
215
- this.error.split(',').map((err, index) => (h("p", { key: index, class: "invalid-feedback" }, h("road-icon", { slot: "start", name: "alert-error-solid", "aria-hidden": "true", size: "sm" }), err.trim(), " ")))), this.helper && this.helper !== '' && h("p", { key: 'ee3378bbe749156f5348babd0a20032f576357b8', class: "helper" }, this.helper), this.type && this.type == 'password' && h("slot", { key: 'a69022948c4fb3d15cdad7666d14533320b70215', name: "checklistPassword" })));
220
+ this.error.split(',').map((err, index) => (h("p", { key: index, class: "invalid-feedback" }, h("road-icon", { slot: "start", name: "alert-error-solid", "aria-hidden": "true", size: "sm" }), err.trim(), " ")))), this.helper && this.helper !== '' && h("p", { key: '049438b598d8a81b1d8bdadfbd615f66914db3e1', class: "helper" }, this.helper), this.type && this.type == 'password' && h("slot", { key: 'f804b3b5727fa91623defc4f5209d865bc461f21', name: "checklistPassword" })));
216
221
  }
217
222
  static get is() { return "road-input"; }
218
223
  static get encapsulation() { return "scoped"; }
@@ -749,6 +754,26 @@ export class Input {
749
754
  "attribute": "error",
750
755
  "reflect": false
751
756
  },
757
+ "success": {
758
+ "type": "boolean",
759
+ "mutable": false,
760
+ "complexType": {
761
+ "original": "boolean",
762
+ "resolved": "boolean",
763
+ "references": {}
764
+ },
765
+ "required": false,
766
+ "optional": false,
767
+ "docs": {
768
+ "tags": [],
769
+ "text": "The valid fields adopt an appearance that helps the user confirm that their data is formatted properly."
770
+ },
771
+ "getter": false,
772
+ "setter": false,
773
+ "attribute": "success",
774
+ "reflect": false,
775
+ "defaultValue": "false"
776
+ },
752
777
  "helper": {
753
778
  "type": "string",
754
779
  "mutable": false,
@@ -1 +1 @@
1
- {"version":3,"file":"input.js","sourceRoot":"","sources":["../../../src/components/input/input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC7F,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,QAAQ,CAAC;AAGpD;;;;;;;;;;;;GAYG;AAOH,MAAM,OAAO,KAAK;IALlB;QAME;;WAEG;QACK,YAAO,GAAW,cAAc,QAAQ,EAAE,EAAE,CAAC;QAErD;;WAEG;QACK,mBAAc,GAAG,KAAK,CAAC;QAE/B;;WAEG;QACK,iBAAY,GAAsB,KAAK,CAAC;QAEhD;;WAEG;QACK,iBAAY,GAAG,KAAK,CAAC;QAG7B;;WAEG;QACK,gBAAW,GAAiB,KAAK,CAAC;QAE1C;;WAEG;QACK,cAAS,GAAG,KAAK,CAAC;QAE1B;;WAEG;QACK,aAAQ,GAAG,KAAK,CAAC;QAmCzB;;WAEG;QACK,SAAI,GAAW,IAAI,CAAC,OAAO,CAAC;QAYpC;;WAEG;QACK,aAAQ,GAAG,KAAK,CAAC;QAEzB;;WAEG;QACK,aAAQ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lodashDebounce } from 'lodash';\nimport { AutocompleteTypes, TextFieldTypes } from '../../interface';\n\n/**\n * @slot checklistPassword - Content the checklist Password exemple.\n * `<div class=\"checklist-password mt-16\" slot=\"checklistPassword\">`\n * `<span class=\"checklist-password-label\"><strong>Low Safety</strong></span>`\n * `<road-progress color=\"danger\" value=\"25\" class=\"mt-8 mb-16\"></road-progress>`\n * `<p class=\"text-medium mb-8\">For optimal safety your password must have at least :</p>`\n * `<ul class=\"m-0 pl-16\">`\n * `<li id=\"letter\" class=\"invalid mb-8\">1 lowercase and 1 uppercase</li>`\n * `<li id=\"number\" class=\"invalid mb-8\">1 digit</li>`\n * `<li id=\"length\" class=\"invalid\">8 characters minimum</li>`\n * `</ul>`\n * `</div>`\n */\n\n@Component({\n tag: 'road-input',\n styleUrl: 'input.css',\n scoped: true,\n})\nexport class Input {\n /**\n * The id of input\n */\n @Prop() inputId: string = `road-input-${inputIds++}`;\n\n /**\n * Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user.\n */\n @Prop() autocapitalize = 'off';\n\n /**\n * Indicates whether the value of the control can be automatically completed by the browser.\n */\n @Prop() autocomplete: AutocompleteTypes = 'off';\n\n /**\n * If `true`, block decimal.\n */\n @Prop() blockdecimal = false;\n\n\n /**\n * Whether auto correction should be enabled when the user is entering/editing the text value.\n */\n @Prop() autocorrect: 'on' | 'off' = 'off';\n\n /**\n * This Boolean attribute lets you specify that a form control should have input focus when the page loads.\n */\n @Prop() autofocus = false;\n\n /**\n * If `true`, the user cannot interact with the input.\n */\n @Prop() disabled = false;\n\n /**\n * A hint to the browser for which enter key to display.\n * Possible values: `\"enter\"`, `\"done\"`, `\"go\"`, `\"next\"`,\n * `\"previous\"`, `\"search\"`, and `\"send\"`.\n */\n @Prop() enterkeyhint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';\n\n /**\n * A hint to the browser for which keyboard to display.\n * This attribute applies when the value of the type attribute is `\"text\"`, `\"password\"`, `\"email\"`, or `\"url\"`. Possible values are: `\"verbatim\"`, `\"latin\"`, `\"latin-name\"`, `\"latin-prose\"`, `\"full-width-latin\"`, `\"kana\"`, `\"katakana\"`, `\"numeric\"`, `\"tel\"`, `\"email\"`, `\"url\"`.\n */\n @Prop() inputmode?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search';\n\n /**\n * The maximum value, which must not be less than its minimum (min attribute) value.\n */\n @Prop() max?: string;\n\n /**\n * If the value of the type attribute is `text`, `email`, `search`, `password`, `tel`, or `url`, this attribute specifies the maximum number of characters that the user can enter.\n */\n @Prop() maxlength?: number;\n\n /**\n * The minimum value, which must not be greater than its maximum (max attribute) value.\n */\n @Prop() min?: string;\n\n /**\n * If the value of the type attribute is `text`, `email`, `search`, `password`, `tel`, or `url`, this attribute specifies the minimum number of characters that the user can enter.\n */\n @Prop() minlength?: number;\n\n /**\n * The name of the control, which is submitted with the form data.\n */\n @Prop() name: string = this.inputId;\n\n /**\n * A regular expression that the value is checked against. The pattern must match the entire value, not just some subset. Use the title attribute to describe the pattern to help the user. This attribute applies when the value of the type attribute is `\"text\"`, `\"search\"`, `\"tel\"`, `\"url\"`, `\"email\"`, or `\"password\"`, otherwise it is ignored.\n */\n @Prop() pattern?: string;\n\n /**\n * Instructional text that shows before the input has a value.\n */\n @Prop() placeholder?: string;\n\n /**\n * If `true`, the user cannot modify the value.\n */\n @Prop() readonly = false;\n\n /**\n * If `true`, the user must fill in a value before submitting a form.\n */\n @Prop() required = false;\n\n /**\n * If `true`, the element will have its spelling and grammar checked.\n */\n @Prop() spellcheck = false;\n\n /**\n * Works with the min and max attributes to limit the increments at which a value can be set.\n * Possible values are: `\"any\"` or a positive floating point number.\n */\n @Prop() step?: string;\n\n /**\n * The initial size of the control. This value is in pixels unless the value of the type attribute is `\"text\"` or `\"password\"`, in which case it is an integer number of characters. This attribute applies only when the `type` attribute is set to `\"text\"`, `\"search\"`, `\"tel\"`, `\"url\"`, `\"email\"`, or `\"password\"`, otherwise it is ignored.\n */\n @Prop() size?: number;\n\n /**\n * The sizes of the input.\n */\n @Prop() sizes: 'lg' | 'xl' = 'lg';\n\n /**\n * The type of control to display. The default type is text.\n */\n @Prop() type: TextFieldTypes = 'text';\n\n /**\n * The value of the input.(for dynamic use use v-model for vue instead)\n */\n @Prop({ mutable: true }) value?: string | number | null = '';\n\n /**\n * Label for the field\n */\n @Prop() label?: string = '';\n\n /**\n * Error message for the field, for multiple error messages separate by ','\n */\n @Prop() error?: string | string[];\n\n /**\n * Helper message for the field\n */\n @Prop() helper?: string;\n\n /**\n * Set the amount of time, in milliseconds, to wait to trigger the `roadChange` event after each keystroke.\n */\n @Prop() debounce = 0;\n\n private handleKeyDown(event: KeyboardEvent) {\n if (this.type === 'number' && this.blockdecimal) {\n const forbiddenKeys = ['.', ',', 'e', '-', '¨', '^', '`', '+'];\n if (forbiddenKeys.includes(event.key)) {\n event.preventDefault();\n }\n }\n }\n\n\n private debouncedRoadChange = this.createDebouncedRoadChange();\n\n private createDebouncedRoadChange() {\n return lodashDebounce((value: any) => {\n this.roadChange.emit({ value: value == null ? value : value.toString() });\n }, this.debounce);\n }\n\n @Watch('debounce')\n debounceChanged() {\n // Créez une nouvelle fonction debouncedRoadChange avec la nouvelle valeur de debounce\n this.debouncedRoadChange = this.createDebouncedRoadChange();\n }\n\n /**\n * Update the native input element when the value changes\n */\n @Watch('value')\n protected valueChanged(newValue: string | number | null, oldValue: string | number | null) {\n if (newValue !== oldValue) {\n this.debouncedRoadChange(newValue);\n }\n }\n\n @Method()\n async enforceMinMaxValue() {\n let value = this.getValue();\n\n const minValue = this.min !== undefined ? parseFloat(this.min) : undefined;\n const maxValue = this.max !== undefined ? parseFloat(this.max) : undefined;\n let numericValue = parseFloat(value);\n\n if (!isNaN(numericValue)) {\n if (minValue !== undefined && numericValue < minValue) {\n numericValue = minValue;\n }\n if (maxValue !== undefined && numericValue > maxValue) {\n numericValue = maxValue;\n }\n value = numericValue.toString();\n }\n\n if (this.type === 'number' && this.value !== value) {\n this.value = value; // Déclenche @Watch('value')\n }\n }\n\n /**\n * Emitted when a keyboard input occurred.\n */\n\n /** @internal */\n @Event() roadInput!: EventEmitter<KeyboardEvent>;\n\n /**\n * Emitted when the value has changed.\n */\n\n /** @internal */\n @Event() roadChange!: EventEmitter<{\n value: string | undefined | null;\n }>;\n\n /**\n * Emitted when the input loses focus.\n */\n\n /** @internal */\n @Event() roadBlur!: EventEmitter<string | null>;\n\n /**\n * Emitted when the input has focus.\n */\n\n /** @internal */\n @Event() roadFocus!: EventEmitter<void>;\n\n\n\n\n\n private getValue(): string {\n return typeof this.value === 'number'\n ? this.value.toString()\n : (this.value || '').toString();\n }\n\n private onInput = (ev: Event) => {\n const input = ev.target as HTMLInputElement;\n let newValue = input.value;\n \n if (this.type === 'number' && this.blockdecimal) {\n newValue = newValue.replace(/[.,]/g, ''); // Supprime les décimales si `blockdecimal` est activé\n }\n \n\n\n \n if (this.type === 'number') {\n // Convertir en nombre et ajuster selon min/max\n let numericValue = parseFloat(newValue);\n const minValue = this.min !== undefined ? parseFloat(this.min) : undefined;\n const maxValue = this.max !== undefined ? parseFloat(this.max) : undefined;\n \n if (!isNaN(numericValue)) {\n if (minValue !== undefined && numericValue < minValue) {\n numericValue = minValue;\n }\n if (maxValue !== undefined && numericValue > maxValue) {\n numericValue = maxValue;\n }\n newValue = numericValue.toString();\n input.value = newValue; // Force l'affichage de la valeur max\n ev.preventDefault(); // Empêche la saisie supplémentaire\n }\n this.value = newValue;\n }\n \n // Vérification si la valeur a réellement changé avant de la mettre à jour\n if (this.value !== newValue) {\n this.value = newValue;\n this.roadInput.emit(ev as KeyboardEvent);\n }\n\n // Appeler enforceMinMaxValue à chaque modification de la valeur\n this.enforceMinMaxValue();\n }; \n \n\n private onBlur = () => {\n let value = this.getValue();\n \n \n \n if (this.type === 'number') {\n const minValue = this.min !== undefined ? parseFloat(this.min) : undefined;\n const maxValue = this.max !== undefined ? parseFloat(this.max) : undefined;\n let numericValue = parseFloat(value);\n \n if (!isNaN(numericValue)) {\n if (minValue !== undefined && numericValue < minValue) {\n numericValue = minValue;\n }\n if (maxValue !== undefined && numericValue > maxValue) {\n numericValue = maxValue;\n }\n value = numericValue.toString();\n }\n this.value = value;\n const input = document.getElementById(this.inputId) as HTMLInputElement;\n input.value = value;\n }\n \n // Vérification si la valeur a changé avant mise à jour\n if (this.value !== value) {\n this.value = value;\n this.roadBlur.emit(value);\n this.roadChange.emit({ value });\n }else{\n this.roadBlur.emit(value);\n }\n \n // Appeler enforceMinMaxValue lors de la perte de focus\n this.enforceMinMaxValue();\n };\n \n\n private onFocus = () => {\n this.roadFocus.emit();\n };\n\n private inputEl?: HTMLInputElement;\n\n @Method()\n async focus() {\n this.inputEl?.focus();\n }\n\n componentWillLoad() {\n this.debounceChanged(); // Initialize debounce on component load\n }\n\n render() {\n const value = this.getValue();\n const labelId = this.inputId + '-label';\n const hasValueClass = this.value !== '' && this.value !== null ? 'has-value' : '';\n const lessLabelClass = this.label !== '' ? '' : 'less-label';\n const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';\n\n return (\n <Host aria-disabled={this.disabled ? 'true' : null} class={this.sizes && `input-${this.sizes}`} value={value} blockdecimal={this.blockdecimal}>\n <input\n class={`form-control ${hasValueClass} ${isInvalidClass} ${lessLabelClass}`}\n id={this.inputId}\n aria-disabled={this.disabled ? 'true' : null}\n aria-labelledby={labelId}\n disabled={this.disabled}\n autoCapitalize={this.autocapitalize}\n autoComplete={this.autocomplete}\n autoCorrect={this.autocorrect}\n enterKeyHint={this.enterkeyhint}\n autoFocus={this.autofocus}\n inputMode={this.inputmode}\n min={this.min}\n max={this.max}\n minLength={this.minlength}\n maxLength={this.maxlength}\n name={this.name}\n pattern={this.pattern}\n placeholder={this.placeholder}\n readOnly={this.readonly}\n required={this.required}\n spellcheck={this.spellcheck}\n step={this.step}\n size={this.size}\n type={this.type}\n value={value}\n onInput={this.onInput}\n onBlur={this.onBlur}\n onFocus={this.onFocus}\n onKeyDown={this.type === 'number' ? (event: KeyboardEvent) => this.handleKeyDown(event) : undefined}\n data-cy='road-input'\n ref={el => (this.inputEl = el as HTMLInputElement)}\n />\n <label class=\"form-label\" id={labelId} htmlFor={this.inputId}>{this.label}</label>\n \n {this.error && this.error !== '' && (\n Array.isArray(this.error) \n ? // Si error est un tableau, on itère et génère un <p> pour chaque élément\n this.error.map((err, index) => (\n <p key={index} class=\"invalid-feedback\">\n <road-icon slot=\"start\" name=\"alert-error-solid\" aria-hidden=\"true\" size=\"sm\"></road-icon>\n {err.trim()} {/* Enlever les espaces superflus */}\n </p>\n ))\n : // Si error est une chaîne, on la divise avec split et génère un <p> pour chaque élément\n this.error.split(',').map((err, index) => (\n <p key={index} class=\"invalid-feedback\">\n <road-icon slot=\"start\" name=\"alert-error-solid\" aria-hidden=\"true\" size=\"sm\"></road-icon>\n {err.trim()} {/* Enlever les espaces superflus */}\n </p>\n ))\n )}\n\n {this.helper && this.helper !== '' && <p class=\"helper\">{this.helper}</p>}\n {this.type && this.type == 'password' && <slot name=\"checklistPassword\" />}\n </Host>\n );\n }\n}\n\nlet inputIds = 0;\n"]}
1
+ {"version":3,"file":"input.js","sourceRoot":"","sources":["../../../src/components/input/input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC7F,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,QAAQ,CAAC;AAGpD;;;;;;;;;;;;GAYG;AAOH,MAAM,OAAO,KAAK;IALlB;QAME;;WAEG;QACK,YAAO,GAAW,cAAc,QAAQ,EAAE,EAAE,CAAC;QAErD;;WAEG;QACK,mBAAc,GAAG,KAAK,CAAC;QAE/B;;WAEG;QACK,iBAAY,GAAsB,KAAK,CAAC;QAEhD;;WAEG;QACK,iBAAY,GAAG,KAAK,CAAC;QAG7B;;WAEG;QACK,gBAAW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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF;AAED,IAAI,QAAQ,GAAG,CAAC,CAAC","sourcesContent":["import { Component, Event, EventEmitter, Host, Prop, Watch, h, Method } from '@stencil/core';\nimport { debounce as lodashDebounce } from 'lodash';\nimport { AutocompleteTypes, TextFieldTypes } from '../../interface';\n\n/**\n * @slot checklistPassword - Content the checklist Password exemple.\n * `<div class=\"checklist-password mt-16\" slot=\"checklistPassword\">`\n * `<span class=\"checklist-password-label\"><strong>Low Safety</strong></span>`\n * `<road-progress color=\"danger\" value=\"25\" class=\"mt-8 mb-16\"></road-progress>`\n * `<p class=\"text-medium mb-8\">For optimal safety your password must have at least :</p>`\n * `<ul class=\"m-0 pl-16\">`\n * `<li id=\"letter\" class=\"invalid mb-8\">1 lowercase and 1 uppercase</li>`\n * `<li id=\"number\" class=\"invalid mb-8\">1 digit</li>`\n * `<li id=\"length\" class=\"invalid\">8 characters minimum</li>`\n * `</ul>`\n * `</div>`\n */\n\n@Component({\n tag: 'road-input',\n styleUrl: 'input.css',\n scoped: true,\n})\nexport class Input {\n /**\n * The id of input\n */\n @Prop() inputId: string = `road-input-${inputIds++}`;\n\n /**\n * Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user.\n */\n @Prop() autocapitalize = 'off';\n\n /**\n * Indicates whether the value of the control can be automatically completed by the browser.\n */\n @Prop() autocomplete: AutocompleteTypes = 'off';\n\n /**\n * If `true`, block decimal.\n */\n @Prop() blockdecimal = false;\n\n\n /**\n * Whether auto correction should be enabled when the user is entering/editing the text value.\n */\n @Prop() autocorrect: 'on' | 'off' = 'off';\n\n /**\n * This Boolean attribute lets you specify that a form control should have input focus when the page loads.\n */\n @Prop() autofocus = false;\n\n /**\n * If `true`, the user cannot interact with the input.\n */\n @Prop() disabled = false;\n\n /**\n * A hint to the browser for which enter key to display.\n * Possible values: `\"enter\"`, `\"done\"`, `\"go\"`, `\"next\"`,\n * `\"previous\"`, `\"search\"`, and `\"send\"`.\n */\n @Prop() enterkeyhint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';\n\n /**\n * A hint to the browser for which keyboard to display.\n * This attribute applies when the value of the type attribute is `\"text\"`, `\"password\"`, `\"email\"`, or `\"url\"`. Possible values are: `\"verbatim\"`, `\"latin\"`, `\"latin-name\"`, `\"latin-prose\"`, `\"full-width-latin\"`, `\"kana\"`, `\"katakana\"`, `\"numeric\"`, `\"tel\"`, `\"email\"`, `\"url\"`.\n */\n @Prop() inputmode?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search';\n\n /**\n * The maximum value, which must not be less than its minimum (min attribute) value.\n */\n @Prop() max?: string;\n\n /**\n * If the value of the type attribute is `text`, `email`, `search`, `password`, `tel`, or `url`, this attribute specifies the maximum number of characters that the user can enter.\n */\n @Prop() maxlength?: number;\n\n /**\n * The minimum value, which must not be greater than its maximum (max attribute) value.\n */\n @Prop() min?: string;\n\n /**\n * If the value of the type attribute is `text`, `email`, `search`, `password`, `tel`, or `url`, this attribute specifies the minimum number of characters that the user can enter.\n */\n @Prop() minlength?: number;\n\n /**\n * The name of the control, which is submitted with the form data.\n */\n @Prop() name: string = this.inputId;\n\n /**\n * A regular expression that the value is checked against. The pattern must match the entire value, not just some subset. Use the title attribute to describe the pattern to help the user. This attribute applies when the value of the type attribute is `\"text\"`, `\"search\"`, `\"tel\"`, `\"url\"`, `\"email\"`, or `\"password\"`, otherwise it is ignored.\n */\n @Prop() pattern?: string;\n\n /**\n * Instructional text that shows before the input has a value.\n */\n @Prop() placeholder?: string;\n\n /**\n * If `true`, the user cannot modify the value.\n */\n @Prop() readonly = false;\n\n /**\n * If `true`, the user must fill in a value before submitting a form.\n */\n @Prop() required = false;\n\n /**\n * If `true`, the element will have its spelling and grammar checked.\n */\n @Prop() spellcheck = false;\n\n /**\n * Works with the min and max attributes to limit the increments at which a value can be set.\n * Possible values are: `\"any\"` or a positive floating point number.\n */\n @Prop() step?: string;\n\n /**\n * The initial size of the control. This value is in pixels unless the value of the type attribute is `\"text\"` or `\"password\"`, in which case it is an integer number of characters. This attribute applies only when the `type` attribute is set to `\"text\"`, `\"search\"`, `\"tel\"`, `\"url\"`, `\"email\"`, or `\"password\"`, otherwise it is ignored.\n */\n @Prop() size?: number;\n\n /**\n * The sizes of the input.\n */\n @Prop() sizes: 'lg' | 'xl' = 'lg';\n\n /**\n * The type of control to display. The default type is text.\n */\n @Prop() type: TextFieldTypes = 'text';\n\n /**\n * The value of the input.(for dynamic use use v-model for vue instead)\n */\n @Prop({ mutable: true }) value?: string | number | null = '';\n\n /**\n * Label for the field\n */\n @Prop() label?: string = '';\n\n /**\n * Error message for the field, for multiple error messages separate by ','\n */\n @Prop() error?: string | string[];\n\n /**\n * The valid fields adopt an appearance that helps the user confirm that their data is formatted properly.\n */\n @Prop() success = false;\n\n /**\n * Helper message for the field\n */\n @Prop() helper?: string;\n\n /**\n * Set the amount of time, in milliseconds, to wait to trigger the `roadChange` event after each keystroke.\n */\n @Prop() debounce = 0;\n\n private handleKeyDown(event: KeyboardEvent) {\n if (this.type === 'number' && this.blockdecimal) {\n const forbiddenKeys = ['.', ',', 'e', '-', '¨', '^', '`', '+'];\n if (forbiddenKeys.includes(event.key)) {\n event.preventDefault();\n }\n }\n }\n\n\n private debouncedRoadChange = this.createDebouncedRoadChange();\n\n private createDebouncedRoadChange() {\n return lodashDebounce((value: any) => {\n this.roadChange.emit({ value: value == null ? value : value.toString() });\n }, this.debounce);\n }\n\n @Watch('debounce')\n debounceChanged() {\n // Créez une nouvelle fonction debouncedRoadChange avec la nouvelle valeur de debounce\n this.debouncedRoadChange = this.createDebouncedRoadChange();\n }\n\n /**\n * Update the native input element when the value changes\n */\n @Watch('value')\n protected valueChanged(newValue: string | number | null, oldValue: string | number | null) {\n if (newValue !== oldValue) {\n this.debouncedRoadChange(newValue);\n }\n }\n\n @Method()\n async enforceMinMaxValue() {\n let value = this.getValue();\n\n const minValue = this.min !== undefined ? parseFloat(this.min) : undefined;\n const maxValue = this.max !== undefined ? parseFloat(this.max) : undefined;\n let numericValue = parseFloat(value);\n\n if (!isNaN(numericValue)) {\n if (minValue !== undefined && numericValue < minValue) {\n numericValue = minValue;\n }\n if (maxValue !== undefined && numericValue > maxValue) {\n numericValue = maxValue;\n }\n value = numericValue.toString();\n }\n\n if (this.type === 'number' && this.value !== value) {\n this.value = value; // Déclenche @Watch('value')\n }\n }\n\n /**\n * Emitted when a keyboard input occurred.\n */\n\n /** @internal */\n @Event() roadInput!: EventEmitter<KeyboardEvent>;\n\n /**\n * Emitted when the value has changed.\n */\n\n /** @internal */\n @Event() roadChange!: EventEmitter<{\n value: string | undefined | null;\n }>;\n\n /**\n * Emitted when the input loses focus.\n */\n\n /** @internal */\n @Event() roadBlur!: EventEmitter<string | null>;\n\n /**\n * Emitted when the input has focus.\n */\n\n /** @internal */\n @Event() roadFocus!: EventEmitter<void>;\n\n\n\n\n\n private getValue(): string {\n return typeof this.value === 'number'\n ? this.value.toString()\n : (this.value || '').toString();\n }\n\n private onInput = (ev: Event) => {\n const input = ev.target as HTMLInputElement;\n let newValue = input.value;\n \n if (this.type === 'number' && this.blockdecimal) {\n newValue = newValue.replace(/[.,]/g, ''); // Supprime les décimales si `blockdecimal` est activé\n }\n \n\n\n \n if (this.type === 'number') {\n // Convertir en nombre et ajuster selon min/max\n let numericValue = parseFloat(newValue);\n const minValue = this.min !== undefined ? parseFloat(this.min) : undefined;\n const maxValue = this.max !== undefined ? parseFloat(this.max) : undefined;\n \n if (!isNaN(numericValue)) {\n if (minValue !== undefined && numericValue < minValue) {\n numericValue = minValue;\n }\n if (maxValue !== undefined && numericValue > maxValue) {\n numericValue = maxValue;\n }\n newValue = numericValue.toString();\n input.value = newValue; // Force l'affichage de la valeur max\n ev.preventDefault(); // Empêche la saisie supplémentaire\n }\n this.value = newValue;\n }\n \n // Vérification si la valeur a réellement changé avant de la mettre à jour\n if (this.value !== newValue) {\n this.value = newValue;\n this.roadInput.emit(ev as KeyboardEvent);\n }\n\n // Appeler enforceMinMaxValue à chaque modification de la valeur\n this.enforceMinMaxValue();\n }; \n \n\n private onBlur = () => {\n let value = this.getValue();\n \n \n \n if (this.type === 'number') {\n const minValue = this.min !== undefined ? parseFloat(this.min) : undefined;\n const maxValue = this.max !== undefined ? parseFloat(this.max) : undefined;\n let numericValue = parseFloat(value);\n \n if (!isNaN(numericValue)) {\n if (minValue !== undefined && numericValue < minValue) {\n numericValue = minValue;\n }\n if (maxValue !== undefined && numericValue > maxValue) {\n numericValue = maxValue;\n }\n value = numericValue.toString();\n }\n this.value = value;\n const input = document.getElementById(this.inputId) as HTMLInputElement;\n input.value = value;\n }\n \n // Vérification si la valeur a changé avant mise à jour\n if (this.value !== value) {\n this.value = value;\n this.roadBlur.emit(value);\n this.roadChange.emit({ value });\n }else{\n this.roadBlur.emit(value);\n }\n \n // Appeler enforceMinMaxValue lors de la perte de focus\n this.enforceMinMaxValue();\n };\n \n\n private onFocus = () => {\n this.roadFocus.emit();\n };\n\n private inputEl?: HTMLInputElement;\n\n @Method()\n async focus() {\n this.inputEl?.focus();\n }\n\n componentWillLoad() {\n this.debounceChanged(); // Initialize debounce on component load\n }\n\n render() {\n const value = this.getValue();\n const labelId = this.inputId + '-label';\n const hasValueClass = this.value !== '' && this.value !== null ? 'has-value' : '';\n const lessLabelClass = this.label !== '' ? '' : 'less-label';\n const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';\n const isValidClass = this.success == true ? 'is-valid' : '';\n\n return (\n <Host aria-disabled={this.disabled ? 'true' : null} class={this.sizes && `input-${this.sizes}`} value={value} blockdecimal={this.blockdecimal}>\n <input\n class={`form-control ${hasValueClass} ${isInvalidClass} ${isValidClass} ${lessLabelClass}`}\n id={this.inputId}\n aria-disabled={this.disabled ? 'true' : null}\n aria-labelledby={labelId}\n disabled={this.disabled}\n autoCapitalize={this.autocapitalize}\n autoComplete={this.autocomplete}\n autoCorrect={this.autocorrect}\n enterKeyHint={this.enterkeyhint}\n autoFocus={this.autofocus}\n inputMode={this.inputmode}\n min={this.min}\n max={this.max}\n minLength={this.minlength}\n maxLength={this.maxlength}\n name={this.name}\n pattern={this.pattern}\n placeholder={this.placeholder}\n readOnly={this.readonly}\n required={this.required}\n spellcheck={this.spellcheck}\n step={this.step}\n size={this.size}\n type={this.type}\n value={value}\n onInput={this.onInput}\n onBlur={this.onBlur}\n onFocus={this.onFocus}\n onKeyDown={this.type === 'number' ? (event: KeyboardEvent) => this.handleKeyDown(event) : undefined}\n data-cy='road-input'\n ref={el => (this.inputEl = el as HTMLInputElement)}\n />\n <label class=\"form-label\" id={labelId} htmlFor={this.inputId}>{this.label}</label>\n \n {this.error && this.error !== '' && (\n Array.isArray(this.error) \n ? // Si error est un tableau, on itère et génère un <p> pour chaque élément\n this.error.map((err, index) => (\n <p key={index} class=\"invalid-feedback\">\n <road-icon slot=\"start\" name=\"alert-error-solid\" aria-hidden=\"true\" size=\"sm\"></road-icon>\n {err.trim()} {/* Enlever les espaces superflus */}\n </p>\n ))\n : // Si error est une chaîne, on la divise avec split et génère un <p> pour chaque élément\n this.error.split(',').map((err, index) => (\n <p key={index} class=\"invalid-feedback\">\n <road-icon slot=\"start\" name=\"alert-error-solid\" aria-hidden=\"true\" size=\"sm\"></road-icon>\n {err.trim()} {/* Enlever les espaces superflus */}\n </p>\n ))\n )}\n\n {this.helper && this.helper !== '' && <p class=\"helper\">{this.helper}</p>}\n {this.type && this.type == 'password' && <slot name=\"checklistPassword\" />}\n </Host>\n );\n }\n}\n\nlet inputIds = 0;\n"]}
@@ -39,6 +39,10 @@ export default {
39
39
  description: "Error message for the field, for multiple error messages separate by ','",
40
40
  control: 'text',
41
41
  },
42
+ success: {
43
+ description: "If `true`, The valid fields adopt an appearance that helps the user confirm that their data is formatted properly.",
44
+ control: 'boolean',
45
+ },
42
46
  helper: {
43
47
  description: "Helper message for the field",
44
48
  control: 'text',
@@ -225,6 +229,7 @@ export default {
225
229
  disabled: null,
226
230
  readonly: null,
227
231
  required: null,
232
+ success: null,
228
233
  autofocus: null,
229
234
  spellcheck: null,
230
235
  blockdecimal: null,
@@ -238,6 +243,7 @@ const Template = (args) => html`
238
243
  label="${ifDefined(args.label)}"
239
244
  disabled="${ifDefined(args.disabled)}"
240
245
  required="${ifDefined(args.required)}"
246
+ success="${ifDefined(args.success)}"
241
247
  autofocus="${ifDefined(args.autofocus)}"
242
248
  error="${ifDefined(args.error)}"
243
249
  helper="${ifDefined(args.helper)}"
@@ -303,6 +309,11 @@ Error.args = {
303
309
  error: 'This field is required',
304
310
  };
305
311
 
312
+ export const Success = Template.bind({});
313
+ Success.args = {
314
+ success: true,
315
+ };
316
+
306
317
  export const MultipleErrors = Template.bind({});
307
318
  MultipleErrors.args = {
308
319
  error: ['Champ requis', 'Doit contenir au moins 8 caractères'],
@@ -58,7 +58,7 @@ export class InputGroup {
58
58
  ? `size-${this.el.querySelector('road-input').sizes}`
59
59
  : '';
60
60
  const disabledClass = this.disabled ? 'is-disabled' : '';
61
- return (h("div", { key: 'e5669c39b4c4d0d760797fac436e3f412bd98484', class: `input-group ${errorClass} ${disabledClass} ${sizeClass}` }, h("div", { key: 'e7b9878ffaefe2c47ab335e622cf0a4055463494', class: "input-group-prepend" }, h("slot", { key: '058abc4cf531ebc2618d00d003e247056b69efc6', name: "prepend" })), h("slot", { key: '173e96ad66826900cabf549e73da58c16ed0be52' }), h("div", { key: '6cc0416927fd6c8cb103dda53dfe08028ec2f0e0', class: "input-group-append" }, h("slot", { key: '5c860ee978a4eeceb0bb51e060d02783d94d6428', name: "append" }))));
61
+ return (h("div", { key: 'c789f52752140cc0f396a8e2e2fcf9725ca974d2', class: `input-group ${errorClass} ${disabledClass} ${sizeClass}` }, h("div", { key: '41870e22ddc72cd42c6b737962c11e075af78f91', class: "input-group-prepend" }, h("slot", { key: '80322c2acb0bfe220cef11df0a7fd03aad98186a', name: "prepend" })), h("slot", { key: '3b3c02a69bba482658a95f26fa46cb365ab373a5' }), h("div", { key: '2551b5848533d7564872892e04380a68216a4979', class: "input-group-append" }, h("slot", { key: 'c030afa5616bf26d7bcf99f09adc644fc2eeb2ca', name: "append" }))));
62
62
  }
63
63
  static get is() { return "road-input-group"; }
64
64
  static get encapsulation() { return "shadow"; }
@@ -57,13 +57,13 @@ export class Item {
57
57
  target,
58
58
  };
59
59
  const showDetail = detail !== undefined && detail;
60
- return (h(Host, { key: '9259fa99977924426712f7ee15a5682f02169405', "aria-disabled": disabled ? 'true' : null, class: {
60
+ return (h(Host, { key: '0aea3486ca34a04bfa7e0690181466e0f563ecdd', "aria-disabled": disabled ? 'true' : null, class: {
61
61
  [`item-lines-${lines}`]: lines !== undefined,
62
- } }, h(TagType, Object.assign({ key: '9cb8745d6101b92e3e78b109162ab553264c77b1' }, attrs, { class: {
62
+ } }, h(TagType, Object.assign({ key: 'a2b491a400eb88b4af1ac7a26a5a00e32fde08cb' }, attrs, { class: {
63
63
  'item-native': true,
64
64
  'item-active': this.active,
65
65
  [`layout-${layout}`]: layout !== undefined,
66
- }, part: "native", disabled: disabled }), h("slot", { key: '3bd615ec7ca9a34c52d48e0064fff1c20201fbc4', name: "start" }), h("div", { key: '686b9fe5bea511fc6c5dbdbbf54b357242fb5eae', class: "item-inner" }, h("div", { key: 'f443d8c131f47e3b1a884c038f02ff16fb787b5e', class: "input-wrapper" }, h("slot", { key: '0c694f293f2cb663360c092991e047ece261e11d' }), h("div", { key: '3b63e2654c7b5d07bede2920c2ad9bcc652d139c', class: "input-wrapper-info" }, h("road-label", { key: '383661f5be57349babd599419e0d39ab89aff47b', class: "input-wrapper-info-title" }, this.titleItem), h("p", { key: '238616644fa4771c4f1b037999f564889617a362', class: "input-wrapper-info-text" }, this.text))), h("slot", { key: 'c40987509754fd69dacb0728bd498871ea867c82', name: "end" }), showDetail && h("road-icon", { key: '75e65156e78c475adeddaf152ffe47dd6e55c24e', icon: detailIcon, lazy: false, class: "item-detail-icon" })))));
66
+ }, part: "native", disabled: disabled }), h("slot", { key: 'b78e532a469747c50da1368932d4f582eb87f28b', name: "start" }), h("div", { key: 'de095dfd6b972de3daebc9217842f3b5b2f593c8', class: "item-inner" }, h("div", { key: '9f43e5afd0c887e8f5df8fee8b6a4e95b205fbd0', class: "input-wrapper" }, h("slot", { key: '29497de23731ee53ee5e7665a03959e7fdc5df9b' }), h("div", { key: '16a247a409fa1803a0026c6923fc2b99b64b351b', class: "input-wrapper-info" }, h("road-label", { key: 'aefe0b6c06109bd0c17d405968344c24549332e7', class: "input-wrapper-info-title" }, this.titleItem), h("p", { key: '9296d6542fee43a933193b284bc7cc8a1e1c5048', class: "input-wrapper-info-text" }, this.text))), h("slot", { key: 'f66a05fb104f8ddf9553a99e8a75a59b0f24d9d7', name: "end" }), showDetail && h("road-icon", { key: '5eab0e8ca80203ec5d276a8403aba93746953b7e', icon: detailIcon, lazy: false, class: "item-detail-icon" })))));
67
67
  }
68
68
  static get is() { return "road-item"; }
69
69
  static get encapsulation() { return "shadow"; }
@@ -4,7 +4,7 @@ import { h } from "@stencil/core";
4
4
  */
5
5
  export class Label {
6
6
  render() {
7
- return (h("slot", { key: '7b38ec4e17b246e6625f361419d19d8d34793609' }));
7
+ return (h("slot", { key: 'f59ac081c472add0201c72c48c5146a231bf05fd' }));
8
8
  }
9
9
  static get is() { return "road-label"; }
10
10
  static get encapsulation() { return "shadow"; }
@@ -5,9 +5,9 @@ import { Host, h } from "@stencil/core";
5
5
  export class List {
6
6
  render() {
7
7
  const { lines } = this;
8
- return (h(Host, { key: 'eed6c97be3b96a23d563989e1a848664ef2ae6ba', class: {
8
+ return (h(Host, { key: '2c2537547489eb97f46ccb6306d3d697773ab719', class: {
9
9
  [`list-lines-${lines}`]: lines !== undefined,
10
- } }, h("slot", { key: '1e96c87c4f15aca5f1a1d288019fd082467d5d67' })));
10
+ } }, h("slot", { key: 'f4449d3df668e2d77f83103bb2e87915ef101efc' })));
11
11
  }
12
12
  static get is() { return "road-list"; }
13
13
  static get encapsulation() { return "shadow"; }
@@ -65,7 +65,7 @@ export class Modal {
65
65
  const modalIsOpenClass = this.isOpen ? 'modal-open' : '';
66
66
  const inverseHeaderClass = this.hasInverseHeader ? 'modal-header-inverse' : '';
67
67
  const closeIconElement = this.hasCloseIcon ? h("button", { type: "button", class: "modal-close", onClick: this.onClick, "aria-label": "Close" }, h("road-icon", { icon: navigationClose, "aria-hidden": "true" })) : '';
68
- return (h(Host, { key: 'f495749b049a101712c36bbf083cba6ef886bd2c', class: `modal ${modalIsOpenClass}`, tabindex: "-1", role: "dialog", "aria-label": "modal" }, h("div", { key: 'd7287dfb02da7d29fb838e77aca55e76f8009669', class: "modal-overlay", onClick: this.onClick, tabindex: "-1" }), h("div", { key: '75f817fb82cd837bc4d3e270aa5c4126ae77e182', class: "modal-dialog", style: { maxWidth: `${this.maxWidth}px` }, role: "document", tabindex: "0" }, h("div", { key: '7d1040a31a6b3308686d7e0d27b4cd3c4046db18', class: "modal-content" }, h("header", { key: 'fcb04fae3a8c10341e7d9c75c452cb715b6ce67a', class: `modal-header ${inverseHeaderClass}` }, h("h2", { key: '5db438cbfba352f3ddeb4f34bec97162c41f7857', class: "modal-title" }, this.modalTitle), closeIconElement), h("div", { key: '239560ae955d26e202913eff34c6a2f0e9a6977c', class: "modal-body" }, h("slot", { key: '576db6c4b765c85bbe8e693a1ac4ad5359aef848' }))))));
68
+ return (h(Host, { key: 'fadc5b7f130b78ce930508f169a77c36c592a8b7', class: `modal ${modalIsOpenClass}`, tabindex: "-1", role: "dialog", "aria-label": "modal" }, h("div", { key: 'b06a7795a91860febafb941215dfffd796fda4c8', class: "modal-overlay", onClick: this.onClick, tabindex: "-1" }), h("div", { key: 'ddd6999c2e6069518d634b60502eb9cc0b311aba', class: "modal-dialog", style: { maxWidth: `${this.maxWidth}px` }, role: "document", tabindex: "0" }, h("div", { key: '17bb4a3d1281d71b0b4d3f3e1765491f768aa460', class: "modal-content" }, h("header", { key: '5d1cb9be50df022c0e0ce59e82f3df6f2ec45369', class: `modal-header ${inverseHeaderClass}` }, h("h2", { key: '51fd0108264ba6a54c93047dbccf9e69ae7b3032', class: "modal-title" }, this.modalTitle), closeIconElement), h("div", { key: 'f966e33d28c4e59dee755dc4ac2c225c778cf782', class: "modal-body" }, h("slot", { key: '50b4fe9fb58ee3eace39f5ce8f07a83fb05df81b' }))))));
69
69
  }
70
70
  static get is() { return "road-modal"; }
71
71
  static get encapsulation() { return "shadow"; }
@@ -21,7 +21,7 @@ export class Navbar {
21
21
  this.selectedTabChanged();
22
22
  }
23
23
  render() {
24
- return (h(Host, { key: 'a57dfc3bd1c2a35ae5f0a7d84da9aae803f3248e', role: "menubar" }, h("slot", { key: '87d7969b28fa712be5cf8d6c2c1d0140f946182a' })));
24
+ return (h(Host, { key: '61786009c0bb1357257674a72b0f3dbf3f5c38a8', role: "menubar" }, h("slot", { key: '2f3cdbc13d1bf0d3535035bd2098ed20d048dee0' })));
25
25
  }
26
26
  static get is() { return "road-navbar"; }
27
27
  static get encapsulation() { return "shadow"; }
@@ -61,11 +61,11 @@ export class NavbarItem {
61
61
  rel,
62
62
  target,
63
63
  };
64
- return (h(Host, { key: '2786c8b9e115ddfe0667fe725c7950f8dcc69077', onClick: this.onClick, onKeyup: this.onKeyUp, role: "menuitem", tabindex: "0", "aria-selected": selected ? 'true' : null, id: tab !== undefined ? `navbar-item-${tab}` : null, disabled: disabled, class: {
64
+ return (h(Host, { key: 'c392c7788ef068bff267fbc3508d3a9b9fe753d0', onClick: this.onClick, onKeyup: this.onKeyUp, role: "menuitem", tabindex: "0", "aria-selected": selected ? 'true' : null, id: tab !== undefined ? `navbar-item-${tab}` : null, disabled: disabled, class: {
65
65
  'navbar-item': true,
66
66
  'tab-selected': selected,
67
67
  'tab-disabled': disabled,
68
- } }, h("a", Object.assign({ key: 'd105d65f5219bfb11780eaad9a7ed229b60e0ff7' }, attrs, { tabIndex: -1, class: "button-native", part: "native" }), h("span", { key: '3d18dcc0854e9d3abd1111d158ee1b406df6e388', class: "button-inner" }, h("slot", { key: '4e289b3871d38ac9c04c812c45b6f0e1ab7b4672' })))));
68
+ } }, h("a", Object.assign({ key: '96d3d1d8ce173906c6427a4b53dff251f2ad2d28' }, attrs, { tabIndex: -1, class: "button-native", part: "native" }), h("span", { key: '2a9dd73feff76d436c37f27fc1b9a1c2678c2b6e', class: "button-inner" }, h("slot", { key: '603703ddc7865278113ec4d953ab1fc71bbc08d7' })))));
69
69
  }
70
70
  static get is() { return "road-navbar-item"; }
71
71
  static get encapsulation() { return "shadow"; }
@@ -61,11 +61,11 @@ export class NavbarItem {
61
61
  rel,
62
62
  target,
63
63
  };
64
- return (h(Host, { key: '2439281a2a7bbbf05b9be794013bb9ff02ea8161', onClick: this.onClick, onKeyup: this.onKeyUp, role: "menuitem", tabindex: "0", "aria-selected": selected ? 'true' : null, id: tab !== undefined ? `navbar-item-${tab}` : null, disabled: disabled, class: {
64
+ return (h(Host, { key: '50cadf50d920c724b646d0ef5dfb1bf994b42891', onClick: this.onClick, onKeyup: this.onKeyUp, role: "menuitem", tabindex: "0", "aria-selected": selected ? 'true' : null, id: tab !== undefined ? `navbar-item-${tab}` : null, disabled: disabled, class: {
65
65
  'navbar-item': true,
66
66
  'tab-selected': selected,
67
67
  'tab-disabled': disabled,
68
- } }, h("a", Object.assign({ key: 'b559354e071b580fe0956accfdd0bc8d52b6bb7c' }, attrs, { tabIndex: -1, class: "button-native", part: "native" }), h("span", { key: '9dc9d81e6f1844500f2cb220b611ab05f84d1125', class: "button-inner" }, h("slot", { key: '8b107ac8cc0d522c85aee1a1ad60c4f138c544e5' })))));
68
+ } }, h("a", Object.assign({ key: 'b8915357668428324fddc6dc6cf038dc8f55cfeb' }, attrs, { tabIndex: -1, class: "button-native", part: "native" }), h("span", { key: '103bfedba55dab13e169d5806fa5ae3873ed860b', class: "button-inner" }, h("slot", { key: 'd1e8a5fd74c0b42550b050e4212a99e5df04902b' })))));
69
69
  }
70
70
  static get is() { return "road-navbar-item-v2"; }
71
71
  static get encapsulation() { return "shadow"; }
@@ -28,7 +28,7 @@ export class NavbarV2 {
28
28
  }
29
29
  render() {
30
30
  const compactClass = this.compact ? 'compact' : '';
31
- return (h(Host, { key: 'f0864eac8a491150b1ef02a46fcf46b8fa4fc2d9', role: "menubar", class: `${compactClass}` }, h("slot", { key: '2a5bd884d6ee88c0ee73c3e48d7f9670fffc986e' })));
31
+ return (h(Host, { key: '43aff9eafd66ec2fb7c45a4707c758b3b182f64b', role: "menubar", class: `${compactClass}` }, h("slot", { key: '66b8748a5d4395bd03edff1b9490bdc0fe63f01a' })));
32
32
  }
33
33
  static get is() { return "road-navbar-v2"; }
34
34
  static get encapsulation() { return "shadow"; }
@@ -154,9 +154,9 @@ export class RoadPhoneNumberInput {
154
154
  const isErrorClass = this.errorMessage.length ? 'is-error' : '';
155
155
  const hasValueClass = this.hasValue() ? 'has-value' : '';
156
156
  const sizes = 'xl';
157
- return (h(Host, { key: '6484c3286ae67049e9bc24a0e3db17e5e93b7014' }, h("div", { key: 'f96292d1fa43ec2f4906d50b90a0ba3a17415efb', class: 'phone-number-inputs-container' }, h("div", { key: 'b30839876469719ce35173992099324238f4ec4c', class: `road-phone-input-select ${isErrorClass} ${isInvalidClass}`, slot: "prepend" }, h("select", { key: '1bf90e0a150f635f9767a85ad2c2ff93c93bd84b', id: selectId, class: `form-select-area has-value`, "aria-disabled": this.disabled ? 'true' : null, disabled: this.disabled, onChange: (event) => this.handleSelect(event), "aria-label": this.codeLabel, tabIndex: this.disabled ? -1 : 0 }, this.countryOptions && this.countryOptions.map(option => (h("option", { value: option.value, disabled: option.disabled, selected: option.selected }, option.label)))), h("label", { key: '133877fea8231cea94b93d8f41d81fa19d3c9a3f', class: "form-select-area-label", id: labelId, htmlFor: selectId }, this.codeLabel), h("label", { key: '7358d197f64ad8764ca5e026af67af841f38851f', class: "form-select-area-value", id: valueId, htmlFor: selectId }, "+", this.selectedCountryCode)), h("input", { key: 'ff03e87a9197bd48792c19ab28914fae980fc743', type: 'tel', id: inputId, class: `input-${sizes} phone-number-input-field ${hasValueClass} ${isErrorClass}`, value: this.phoneValue, required: this.required, tabIndex: 0, onInput: (event) => this.handleInput(event) }), h("label", { key: '078d25b45ec64f653002b9d2302c555eea3f2c18', class: "phone-number-input-label", id: labelId, htmlFor: inputId }, this.phoneLabel)), this.errorMessage
157
+ return (h(Host, { key: 'b35e9d16e6e4f29defef7bdcd5cf8c2a2bd2c861' }, h("div", { key: '4c2a4f6b4d6d28bfc90b2cc85d9ab3a2c5989a2b', class: 'phone-number-inputs-container' }, h("div", { key: '5c94cfdfb637deabaaee01375f80276bb37f2ac3', class: `road-phone-input-select ${isErrorClass} ${isInvalidClass}`, slot: "prepend" }, h("select", { key: '8b226ae681f17788d5c476d531614b6063eff700', id: selectId, class: `form-select-area has-value`, "aria-disabled": this.disabled ? 'true' : null, disabled: this.disabled, onChange: (event) => this.handleSelect(event), "aria-label": this.codeLabel, tabIndex: this.disabled ? -1 : 0 }, this.countryOptions && this.countryOptions.map(option => (h("option", { value: option.value, disabled: option.disabled, selected: option.selected }, option.label)))), h("label", { key: 'b12b6fcbf96de164bca500332d9f9b363e6af4bc', class: "form-select-area-label", id: labelId, htmlFor: selectId }, this.codeLabel), h("label", { key: '04843eb39336e241d60d5983c1e92a6af3edead4', class: "form-select-area-value", id: valueId, htmlFor: selectId }, "+", this.selectedCountryCode)), h("input", { key: 'fb9a9b002c1638df2eb593c6f95181cca6b91c14', type: 'tel', id: inputId, class: `input-${sizes} phone-number-input-field ${hasValueClass} ${isErrorClass}`, value: this.phoneValue, required: this.required, tabIndex: 0, onInput: (event) => this.handleInput(event) }), h("label", { key: '83bafd94dea321d0a8ab7cd50cc6d29f71d83d34', class: "phone-number-input-label", id: labelId, htmlFor: inputId }, this.phoneLabel)), this.errorMessage
158
158
  && this.errorMessage !== ''
159
- && h("p", { key: '845c8c6c41455aa8f172c835c9ea382461d60974', class: "invalid-feedback" }, h("road-icon", { key: 'f9ad73e78eb3a099e5b28dd23d57cc729491ca7a', slot: "start", color: 'danger', name: "alert-error-solid", "aria-hidden": "true", size: "sm" }), this.errorMessage)));
159
+ && h("p", { key: '01aafef72de6d89f0f8bbd912759ea98b3992e87', class: "invalid-feedback" }, h("road-icon", { key: '02a98a05942b1c096a70a4112c0f074faa5843d7', slot: "start", color: 'danger', name: "alert-error-solid", "aria-hidden": "true", size: "sm" }), this.errorMessage)));
160
160
  }
161
161
  static get is() { return "road-phone-number-input"; }
162
162
  static get encapsulation() { return "scoped"; }
@@ -92,10 +92,10 @@ export class PlateNumber {
92
92
  render() {
93
93
  const value = this.getValue();
94
94
  const motorbikeClass = this.motorbike ? 'motorbike-plate' : '';
95
- return (h("road-input-group", { key: 'ad922da7a29eb59b3add23952cf559f8f26401e0', class: `plate-number plate-number-${this.country.toLowerCase()} ${motorbikeClass}` }, h("label", { key: 'ed0cec493069943e524a6e1030096e7632f050d8', slot: "prepend", class: "input-group-prepend" }, h("div", { key: 'dc913e16afacb76d9c4a87bf17c00f67d6ec3202', class: "plate-number-start" }, h("road-icon", { key: 'f2042fdf0a83c2db908190e286812878f6f50195', class: "plate-number-icon", icon: licensePlateStarEu }), h("div", { key: 'a5d86d712badf1d58c7ed639b35977024659270b', class: "plate-number-location", "aria-label": this.country, role: "img" }, this.countries
95
+ return (h("road-input-group", { key: 'ff8a8904113c2ba38d351de6d7e8a5ca6552344e', class: `plate-number plate-number-${this.country.toLowerCase()} ${motorbikeClass}` }, h("label", { key: '00a82c0c874d044dffae46bcd3c125cabf93871e', slot: "prepend", class: "input-group-prepend" }, h("div", { key: 'f19852dda75eead5634c48bdd95db8e69b3fcf2d', class: "plate-number-start" }, h("road-icon", { key: '9e8ec737ee80c35402b26ac104a31f9df199fe86', class: "plate-number-icon", icon: licensePlateStarEu }), h("div", { key: '2f3483237c65a1cb542ebd3abd7caa43c8d0fb60', class: "plate-number-location", "aria-label": this.country, role: "img" }, this.countries
96
96
  .filter(item => item.country === this.country)[0].letter))), this.motorbike
97
97
  ? (h("textarea", { class: "form-control plate-number-input mb-0", disabled: this.disabled, placeholder: this.placeholder != null ? this.placeholder : this.countries.filter(item => item.country === this.country)[0].placeholder, readOnly: this.readonly, maxlength: "9", rows: 2, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus }))
98
- : (h("input", { class: "plate-number-input mb-0", disabled: this.disabled, placeholder: this.placeholder != null ? this.placeholder : this.countries.filter(item => item.country === this.country)[0].placeholder, readOnly: this.readonly, value: value, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus })), h("label", { key: '8019dc8f6742725e7f98d0c2dd8a14c237aeaf5a', slot: "append", class: "input-group-append" }, h("div", { key: '3fa83252e8743dc64bbe74bf0e56f2794ac6d7bc', class: "plate-number-end" }))));
98
+ : (h("input", { class: "plate-number-input mb-0", disabled: this.disabled, placeholder: this.placeholder != null ? this.placeholder : this.countries.filter(item => item.country === this.country)[0].placeholder, readOnly: this.readonly, value: value, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus })), h("label", { key: '0378a2bbcaa0fd90f7a3f195f1a4e31806e2ff13', slot: "append", class: "input-group-append" }, h("div", { key: 'fddb65007529730731c4410cf407bdcbcfcbbf93', class: "plate-number-end" }))));
99
99
  }
100
100
  static get is() { return "road-plate-number"; }
101
101
  static get encapsulation() { return "scoped"; }
@@ -31,7 +31,7 @@ export class Dropdown {
31
31
  this.isOpen = false;
32
32
  }
33
33
  render() {
34
- return (h("details", { key: '4c6962a4781dd3d5a6e6eef529f048f13de405ac', class: "dropdown", open: this.isOpen }, h("summary", { key: 'a90e142e8508b169a9e7f08faba4e87fee14bedf', "aria-expanded": `${this.isOpen}`, tabindex: "0", role: "button", onClick: this.onClick }, h("div", { key: 'c53e854e8a9584ad3fbcbe970a09e08d5880d6e5', class: `d-flex` }, h("div", { key: '9acbc23adba42ac6322f12c100c6691df0947234' }, h("road-avatar", { key: '3447cf1cc5bc838dfcf0f6711845bd70e255b5b1' }, h("slot", { key: '99c11772dc9b2355394a65133fcbbbf890f809da', name: "avatar" }))))), h("div", { key: '026dca27e856092b7f649a87b6808e47a497c44a', class: `dropdown-menu` }, h("div", { key: '1399d368e674f8c35c15f78a7d5751b9b9be062c', class: "profil-item" }, h("road-avatar", { key: '0571aecb63ccb518d6987e22dcdc00a857ff2c86', size: "sm" }, h("slot", { key: '848ca5a83485fdc1754dce1a1fb3cb5b297a5416', name: "avatarItem" })), h("div", { key: '5327823b0e03cae6b8ebe0ead29dd40e6f131429', class: "profil-item-info" }, h("span", { key: '834775e093e0db9d6e0cc97b133e0e3397c1a6b1', class: "profil-item-info-name" }, h("slot", { key: '01c8c2278afc8daccc8bc29dae4ec100761891ed', name: "name" })), h("road-label", { key: '7e5c94cadda56ed66aba93607cf70caf2fca5240' }, h("slot", { key: '56b80c83fd4b63679489ca8e43f0dd2a10f4b1fb', name: "email" })))), h("slot", { key: '3371b449984237cf223f4da5f2636829deb233b7', name: "list" }))));
34
+ return (h("details", { key: 'b87c57717a2b24c36a021566c0caf902be2dc730', class: "dropdown", open: this.isOpen }, h("summary", { key: '5b8a7a636d992b9f7cf087de5792f77570b031a7', "aria-expanded": `${this.isOpen}`, tabindex: "0", role: "button", onClick: this.onClick }, h("div", { key: '8fa86bcbcb09361bbddbdaf02e239c1a6ee439b2', class: `d-flex` }, h("div", { key: '8f72235d6d44e20671022d84718aecf76cb0f2a2' }, h("road-avatar", { key: '5a3075b025e47fd0c5e092863fae3a111ca5b737' }, h("slot", { key: 'e736fe17013d86ca78a4bca99af10e6a595c151c', name: "avatar" }))))), h("div", { key: 'c12f79bff86f7674764ff9f498394a172044997a', class: `dropdown-menu` }, h("div", { key: '9ea9939892d5b0b21a45d99120981887ee7816ed', class: "profil-item" }, h("road-avatar", { key: '3c24e96cf92bc6979c0d5212cb58285b35598de9', size: "sm" }, h("slot", { key: 'c8ce0ac4929af5c830628c477cec9dbfc584fd7e', name: "avatarItem" })), h("div", { key: '981466eec9a42648620fa4d77d0294bdde264316', class: "profil-item-info" }, h("span", { key: 'aca08ad4ffb9439e649a5f83d3b34a4813465372', class: "profil-item-info-name" }, h("slot", { key: 'c7fa79f90c906e705cb89b1b1eea664f7852aa60', name: "name" })), h("road-label", { key: '77410fe9d9f4af29ecc59f787840a39490ebbf26' }, h("slot", { key: '5055c32f3bfefc68084e42417ab54959e2d1fae7', name: "email" })))), h("slot", { key: '656ad0ffc1bb8ebb1725ddf823ffc29384448a0a', name: "list" }))));
35
35
  }
36
36
  static get is() { return "road-profil-dropdown"; }
37
37
  static get encapsulation() { return "shadow"; }
@@ -40,7 +40,7 @@ export class ProgressBar {
40
40
  const fullwidth = this.fullwidth ? 'progress-element-info-full-width' : 'progress-element-info';
41
41
  const light = this.light ? 'progress progress-light' : 'progress';
42
42
  const animation = this.animation ? 'animation' : '';
43
- return (h(Host, { key: '080af439e45c901c8a033c66bbb5681746e371fb', class: "progress-element" }, h("div", { key: 'efcafa89891a4d9f62c50816d5fc357fa0431569', class: `${light} progress-${this.color} ${animation}` }, h("div", { key: '03ae558c17cae1c974160626509ce7abd0a5be48', class: "progress-bar", role: "progressbar", style: { width: `${this.value}%` }, "aria-valuenow": this.value, "aria-valuemin": "0", "aria-valuemax": "100", "aria-label": "progress bar" })), h("div", { key: 'c5e0c2bb85b8e9fbe624dcd6feb7aab1ec807883', class: `${fullwidth}` }, h("span", { key: '050c1d441d79a81cd3b0d9a77a3358ccfa0e3112', class: "progress-element-label" }, this.label), this.showstep && h("span", { key: 'e46a1315cb8cfd61a62bd64c88b7403a28b54e51', class: "progress-element-step" }, valueRound, "/", this.numbersteps))));
43
+ return (h(Host, { key: '61241f17f6940f6952d6167024a884a1c568384b', class: "progress-element" }, h("div", { key: '97d64b38a2f46e9805bb76fa73d67fcd28a54dba', class: `${light} progress-${this.color} ${animation}` }, h("div", { key: '275c170d8a016e4db0a840e65aa42bfca9f75f45', class: "progress-bar", role: "progressbar", style: { width: `${this.value}%` }, "aria-valuenow": this.value, "aria-valuemin": "0", "aria-valuemax": "100", "aria-label": "progress bar" })), h("div", { key: '50d933874085cb3831ae6950fc1377ecece5724f', class: `${fullwidth}` }, h("span", { key: '166a60c0f771060852783af7f932892bdb16c0b7', class: "progress-element-label" }, this.label), this.showstep && h("span", { key: 'e7ba9b328ddff0d722e0ee5e22aef7746f0e085a', class: "progress-element-step" }, valueRound, "/", this.numbersteps))));
44
44
  }
45
45
  static get is() { return "road-progress"; }
46
46
  static get encapsulation() { return "shadow"; }
@@ -29,7 +29,7 @@ export class Stepper {
29
29
  const urlStep1 = this.urlStep1 !== undefined ? `${this.urlStep1}` : '#';
30
30
  const urlStep2 = this.urlStep2 !== undefined ? `${this.urlStep2}` : '#';
31
31
  const urlStep3 = this.urlStep3 !== undefined ? `${this.urlStep3}` : '#';
32
- return (h(Host, { key: 'c7b533fd5241dbaf0c3275844b411d2a6c4a57ec' }, h("nav", { key: '3679fc96e8af765c77d79cd66100c9d038d675ff' }, h("ul", { key: '88c8020ee996810f49725b51f5fb4118fbffe4a7', class: `${colorClass}` }, h("li", { key: '961e19ae0950052ba5ca3653fde8e66254b600aa', class: `${stateClass}` }, h("a", { key: '339beb73a406c196770f0c832fbe7b1d4452e97f', class: "progress-indicator-horizontal-link", href: `${urlStep1}` }, h("span", { key: '910003e080c3c111613120cd7c09ce925b32925b', class: "progress-indicator-horizontal-icon" }, h("slot", { key: '264e33aab1b7b4776a8b8535a923bfc6311be561', name: "progress-indicator-horizontal-icon" })), h("span", { key: '2bf6210a8a99fb0c766cd895e889bf463ea0d1fc', class: "progress-indicator-horizontal-title" }, h("slot", { key: '8b10230923c8a6051592bfd740dcc31c3617ff36', name: "progress-indicator-horizontal-title" })))), h("li", { key: '829f421c2f7b8342a951037f369eb792128c48d0', class: `${stateSecondStepClass}` }, h("a", { key: 'fa0f0c8b6151121db0b050fbcde512364073566a', class: "progress-indicator-horizontal-link", href: `${urlStep2}` }, h("span", { key: 'b7621f5a2018cc48dee843757c219e4d0a803c7f', class: "progress-indicator-horizontal-icon" }, h("slot", { key: 'f849e2604e24e7dc403451f1f285f7366cf28f09', name: "progress-indicator-horizontal-icon2" })), h("span", { key: 'efc1eb034b566279037db371d480c9344390f957', class: "progress-indicator-horizontal-title" }, h("slot", { key: 'b274a56147cb164a44780d7c4a02043d123012a6', name: "progress-indicator-horizontal-title2" })))), this.numberStep == 3 && h("li", { key: '6cd846d302ea7fed863b59a8954803d5591602cb', class: `${stateThirdStepClass}` }, h("a", { key: 'dd94c6d10ec7f36ea98994a277282a721d290b15', class: "progress-indicator-horizontal-link", href: `${urlStep3}` }, h("span", { key: '64c4471bb5f2098e188866b83907557c296d59d6', class: "progress-indicator-horizontal-icon" }, h("slot", { key: '471413fe74772fba4724c93791c59d4353be1c50', name: "progress-indicator-horizontal-icon3" })), h("span", { key: '9339d6d80e7f30e15335000dabba92c976a43a92', class: "progress-indicator-horizontal-title" }, h("slot", { key: 'a8055c4f80695160b3ef9210a060f5b4d2039b67', name: "progress-indicator-horizontal-title3" }))))))));
32
+ return (h(Host, { key: '2f7ef35d5517a148676c46d55561a47092ed0ff3' }, h("nav", { key: 'efe3d51a472a7472a9f2f0da1403e223bca22513' }, h("ul", { key: 'f4046d581b8ed717bda8be93efa0870bfa7e4369', class: `${colorClass}` }, h("li", { key: 'fb431196011a0cd284847f13b1d5999e69487b5b', class: `${stateClass}` }, h("a", { key: '28b3e5b0c12593b2c26832777766524f5342c253', class: "progress-indicator-horizontal-link", href: `${urlStep1}` }, h("span", { key: '535d3f5fc73aa22f87a9284ee4498dd975c3e977', class: "progress-indicator-horizontal-icon" }, h("slot", { key: '492dbf0cfff34689a1513714c475a9f2b4cc6727', name: "progress-indicator-horizontal-icon" })), h("span", { key: 'ecaf988f2dec663478169103b34820cdf7da4702', class: "progress-indicator-horizontal-title" }, h("slot", { key: '4443bf77b78b0fcbb44046b95a9121abe0e22226', name: "progress-indicator-horizontal-title" })))), h("li", { key: '15328f9d9a15ada2ff751b651084bfa0e83f7d5a', class: `${stateSecondStepClass}` }, h("a", { key: '441f9a53903b3a14d0fab8296213ce10f16dc5b6', class: "progress-indicator-horizontal-link", href: `${urlStep2}` }, h("span", { key: '31b6487818279d37e486acb20363b527762481da', class: "progress-indicator-horizontal-icon" }, h("slot", { key: 'b03d967c5a09640253b5edb8425f855d8eb790bc', name: "progress-indicator-horizontal-icon2" })), h("span", { key: 'bfcd4994aa5fb7eee27419033b87f0e248ddeb81', class: "progress-indicator-horizontal-title" }, h("slot", { key: 'f5a493c800b9f7466ffb85d37d460844cbb05573', name: "progress-indicator-horizontal-title2" })))), this.numberStep == 3 && h("li", { key: 'bca52096f27dc5e9ae3e12419882b4dd7a8bc1d9', class: `${stateThirdStepClass}` }, h("a", { key: '74f8d7e8fef0f43a07d1cca3f5233d364e77eca5', class: "progress-indicator-horizontal-link", href: `${urlStep3}` }, h("span", { key: 'f37905f33aa30a1fe5d64bea3ed352bd22faf729', class: "progress-indicator-horizontal-icon" }, h("slot", { key: '27666dc115efe677af2bf91d73dd5a1f35c28518', name: "progress-indicator-horizontal-icon3" })), h("span", { key: 'cd081a852ac065372324b17e8a3992429b87b16e', class: "progress-indicator-horizontal-title" }, h("slot", { key: 'fd71af01b710df38a3a06ed75757d2df1d8193ea', name: "progress-indicator-horizontal-title3" }))))))));
33
33
  }
34
34
  static get is() { return "road-progress-indicator-horizontal"; }
35
35
  static get encapsulation() { return "shadow"; }
@@ -12,7 +12,7 @@ import { Host, h } from "@stencil/core";
12
12
  */
13
13
  export class ProgressIndicatorVertical {
14
14
  render() {
15
- return (h(Host, { key: '5fe5373acd2c35744a9b60bc7e91ed5bbb2a1ada' }, h("nav", { key: '7d7a3bfac49b57a6a4c57726c855d8e50801fcc5' }, h("ul", { key: '4205db5a5873f0f0bcef1d735d7c44e8690c3442' }, h("li", { key: '49cce64e4e60bc908af6febbdf077b361307f8a4' }, h("slot", { key: '00c252a9949779a2d3148a3eb404410cfec6a466' }))))));
15
+ return (h(Host, { key: '8df70b09eb63e027b39c4843ae497cef5e39c2ed' }, h("nav", { key: '0d6025a44bd845363096fc6e002a334263dac3c9' }, h("ul", { key: '4d81713de26f798637118ee3af681eb6f668513f' }, h("li", { key: 'bb4bf5dd01f940e3811ab5adf4a90d05ef4fab8c' }, h("slot", { key: '18e8f5f3cddb2a2c6816127596d469a93ca2430c' }))))));
16
16
  }
17
17
  static get is() { return "road-progress-indicator-vertical"; }
18
18
  static get encapsulation() { return "shadow"; }
@@ -4,7 +4,7 @@ import { Host, h } from "@stencil/core";
4
4
  */
5
5
  export class ProgressIndicatorVerticalItem {
6
6
  render() {
7
- return (h(Host, { key: '7cafa7410a58d53c1e369efa22cdc994fa961082' }, h("slot", { key: '1c7bfb9947f8db82d1248b61a2e59a261a015576' })));
7
+ return (h(Host, { key: '17ae276834ff832dcf77111aeeda48b8ca9dc72e' }, h("slot", { key: '624e68ac134752cb835e1cfdba7aa1db8d1f5152' })));
8
8
  }
9
9
  static get is() { return "road-progress-indicator-vertical-item"; }
10
10
  static get originalStyleUrls() {
@@ -9,7 +9,7 @@ import { Host, h } from "@stencil/core";
9
9
  */
10
10
  export class ProgressTracker {
11
11
  render() {
12
- return (h(Host, { key: '4b800c967f9856eb3f9300052bb2bf25923d89d2' }, h("nav", { key: '3fb92e245b3e9e6b7fea1c32243a57abcbaa12e7' }, h("ul", { key: '969719a6a169ab1746c651f8585d75ef3149adc3' }, h("li", { key: '9f9a1f612e18de1589be43f60a1543288d100c02' }, h("slot", { key: 'ad39bd1a8e16ca349a2de0b100d5202130f0c362' }))))));
12
+ return (h(Host, { key: '558bbc6dc32d8f5e29cd9dd0e33ff210bc8e231f' }, h("nav", { key: '386429b7b2670bd9e1cfde6eb895fcdb9fc26a66' }, h("ul", { key: '67357a2d0f7777b39b390a6fc1f2609f7e504f0d' }, h("li", { key: '6bd942a3d6c358f1988b58b16c65bc1f635c690f' }, h("slot", { key: '47ab21f544caa20f3623d7a6b299a84cb17b2927' }))))));
13
13
  }
14
14
  static get is() { return "road-progress-tracker"; }
15
15
  static get encapsulation() { return "shadow"; }
@@ -12,7 +12,7 @@ import { Host, h } from "@stencil/core";
12
12
  */
13
13
  export class ProgressTrackerItem {
14
14
  render() {
15
- return (h(Host, { key: '0c16e41e50d438bad6afb7e663a70543aeaa8676' }, h("slot", { key: '416aee7102487a9a8aed3c0ea8558852bb823818' })));
15
+ return (h(Host, { key: 'f0323f8e11d15162868f6679d958a7eb3c732c94' }, h("slot", { key: 'f723c3ff78b34c68bbe3f675d93ff61a6eb24a27' })));
16
16
  }
17
17
  static get is() { return "road-progress-tracker-item"; }
18
18
  static get originalStyleUrls() {
@@ -72,7 +72,7 @@ export class Radio {
72
72
  const inverseClass = this.inverse && 'form-radio-inverse';
73
73
  const isInvalidClass = this.error ? 'is-invalid' : '';
74
74
  const inlineClass = this.inline ? 'form-radio-inline' : '';
75
- return (h(Host, { key: 'f5b027dc16bc641585e97550ad766623135e9c41', class: `form-radio ${inlineClass}` }, h("input", { key: '3b00622bdf8dd0f896e894fc467371d7f4457150', class: `form-radio-input ${isInvalidClass}`, type: "radio", id: this.radioId, name: this.name, required: this.required, disabled: this.disabled, "aria-disabled": this.disabled ? 'true' : null, checked: this.checked, "aria-checked": `${this.checked}`, "aria-labelledby": labelId, value: this.value, onFocus: this.onFocus, onBlur: this.onBlur }), h("label", { key: '52ab130dbc0eba9dd863a8a0265933ee0ff5319b', class: `form-radio-label ${inverseClass}`, id: labelId, htmlFor: this.radioId }, this.label, " ", h("span", { key: 'b7dd11638e9de4e2a9fd248c3c6dcbabc1ce8767', class: "form-radio-label-span" }, this.secondaryLabel))));
75
+ return (h(Host, { key: '586f04a19cf450f18483a2b9efa5b28d44e1677c', class: `form-radio ${inlineClass}` }, h("input", { key: 'd66ab388470a1c6e2f4ae3ceb5ae8aa8c85eecf5', class: `form-radio-input ${isInvalidClass}`, type: "radio", id: this.radioId, name: this.name, required: this.required, disabled: this.disabled, "aria-disabled": this.disabled ? 'true' : null, checked: this.checked, "aria-checked": `${this.checked}`, "aria-labelledby": labelId, value: this.value, onFocus: this.onFocus, onBlur: this.onBlur }), h("label", { key: '709969471cc1db265d7eb44e608ed0ef496cc72d', class: `form-radio-label ${inverseClass}`, id: labelId, htmlFor: this.radioId }, this.label, " ", h("span", { key: 'd551c29f4895ca78cb7bb331861d783281416749', class: "form-radio-label-span" }, this.secondaryLabel))));
76
76
  }
77
77
  static get is() { return "road-radio"; }
78
78
  static get encapsulation() { return "scoped"; }