@public-ui/components 1.7.6-rc.2 → 1.7.7

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 (1237) hide show
  1. package/custom-elements.json +1 -1
  2. package/dist/cjs/{a11y.tipps-411d547d.js → a11y.tipps-10621b84.js} +1 -1
  3. package/dist/cjs/{a11y.tipps-411d547d.js.map → a11y.tipps-10621b84.js.map} +1 -1
  4. package/dist/cjs/align-4ae68610.js +4 -0
  5. package/dist/cjs/align-4ae68610.js.map +1 -0
  6. package/dist/cjs/{alignment-62eb6ada.js → alignment-f0b8580b.js} +1 -1
  7. package/dist/cjs/alignment-f0b8580b.js.map +1 -0
  8. package/dist/cjs/app-globals-eccdbb21.js +4 -0
  9. package/dist/cjs/app-globals-eccdbb21.js.map +1 -0
  10. package/dist/cjs/aria-current-a9ea535c.js +4 -0
  11. package/dist/cjs/aria-current-a9ea535c.js.map +1 -0
  12. package/dist/cjs/{associated.controller-48c858f3.js → associated.controller-1e5961e7.js} +1 -1
  13. package/dist/cjs/associated.controller-1e5961e7.js.map +1 -0
  14. package/dist/cjs/{bund-f5184e9e.js.map → bund-4be96755.js.map} +1 -1
  15. package/dist/cjs/{color-61c2d789.js → color-5f5137ec.js} +1 -1
  16. package/dist/cjs/color-5f5137ec.js.map +1 -0
  17. package/dist/cjs/controller-1ed14875.js +4 -0
  18. package/dist/cjs/controller-1ed14875.js.map +1 -0
  19. package/dist/cjs/controller-6bc6c6de.js +4 -0
  20. package/dist/cjs/controller-6bc6c6de.js.map +1 -0
  21. package/dist/cjs/{controller-fd19ada2.js → controller-90c85ada.js} +1 -1
  22. package/dist/cjs/controller-90c85ada.js.map +1 -0
  23. package/dist/cjs/{controller-166aba29.js → controller-f1a96e9b.js} +1 -1
  24. package/dist/cjs/controller-f1a96e9b.js.map +1 -0
  25. package/dist/cjs/controller-fccb3f9c.js +4 -0
  26. package/dist/cjs/controller-fccb3f9c.js.map +1 -0
  27. package/dist/cjs/{controller-icon-7ac2c453.js → controller-icon-a8e9360a.js} +1 -1
  28. package/dist/cjs/controller-icon-a8e9360a.js.map +1 -0
  29. package/dist/cjs/{custom-class-a1281e0c.js → custom-class-0079b593.js} +1 -1
  30. package/dist/cjs/custom-class-0079b593.js.map +1 -0
  31. package/dist/cjs/{details-synced-open-state-f06dc47c.js.map → details-synced-open-state-a66cbea0.js.map} +1 -1
  32. package/dist/cjs/{dev.utils-6f091d59.js → dev.utils-a4966e14.js} +1 -1
  33. package/dist/cjs/dev.utils-a4966e14.js.map +1 -0
  34. package/dist/cjs/{devtools-5f571cd3.js → devtools-77551c40.js} +1 -1
  35. package/dist/cjs/devtools-77551c40.js.map +1 -0
  36. package/dist/cjs/{events-a0c291ce.js.map → events-e348a615.js.map} +1 -1
  37. package/dist/cjs/has-closer-13ce904d.js +4 -0
  38. package/dist/cjs/has-closer-13ce904d.js.map +1 -0
  39. package/dist/cjs/hide-label-1f4e6c13.js +4 -0
  40. package/dist/cjs/hide-label-1f4e6c13.js.map +1 -0
  41. package/dist/cjs/{i18n-b352d30e.js → i18n-a9c2a6ff.js} +1 -1
  42. package/dist/cjs/i18n-a9c2a6ff.js.map +1 -0
  43. package/dist/cjs/{icons-da95da9d.js → icons-7edd3934.js} +1 -1
  44. package/dist/cjs/icons-7edd3934.js.map +1 -0
  45. package/dist/cjs/image-source-7a46211b.js +4 -0
  46. package/dist/cjs/image-source-7a46211b.js.map +1 -0
  47. package/dist/cjs/index-3145a30d.js +5 -0
  48. package/dist/cjs/index-3145a30d.js.map +1 -0
  49. package/dist/cjs/index-803d469e.js +4 -0
  50. package/dist/cjs/index-803d469e.js.map +1 -0
  51. package/dist/cjs/index-84f67516.js +4 -0
  52. package/dist/cjs/{index-c3cd3623.js.map → index-84f67516.js.map} +1 -1
  53. package/dist/cjs/index-dd6c9315.js +4 -0
  54. package/dist/cjs/index-dd6c9315.js.map +1 -0
  55. package/dist/cjs/index.cjs.js +1 -1
  56. package/dist/cjs/index.cjs.js.map +1 -1
  57. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  58. package/dist/cjs/kol-abbr.cjs.entry.js.map +1 -1
  59. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  60. package/dist/cjs/kol-accordion.cjs.entry.js.map +1 -1
  61. package/dist/cjs/kol-alert-wc_3.cjs.entry.js +1 -1
  62. package/dist/cjs/kol-alert-wc_3.cjs.entry.js.map +1 -1
  63. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  64. package/dist/cjs/kol-alert.cjs.entry.js.map +1 -1
  65. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  66. package/dist/cjs/kol-avatar-wc.cjs.entry.js.map +1 -1
  67. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  68. package/dist/cjs/kol-avatar.cjs.entry.js.map +1 -1
  69. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-badge.cjs.entry.js.map +1 -1
  71. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-breadcrumb.cjs.entry.js.map +1 -1
  73. package/dist/cjs/kol-button-group-wc.cjs.entry.js +1 -1
  74. package/dist/cjs/kol-button-group-wc.cjs.entry.js.map +1 -1
  75. package/dist/cjs/kol-button-group.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-button-group.cjs.entry.js.map +1 -1
  77. package/dist/cjs/kol-button-link-text-switch.cjs.entry.js +1 -1
  78. package/dist/cjs/kol-button-link-text-switch.cjs.entry.js.map +1 -1
  79. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  80. package/dist/cjs/kol-button-link.cjs.entry.js.map +1 -1
  81. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  82. package/dist/cjs/kol-button.cjs.entry.js.map +1 -1
  83. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  84. package/dist/cjs/kol-card.cjs.entry.js.map +1 -1
  85. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  86. package/dist/cjs/kol-details.cjs.entry.js.map +1 -1
  87. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  88. package/dist/cjs/kol-form.cjs.entry.js.map +1 -1
  89. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  90. package/dist/cjs/kol-heading.cjs.entry.js.map +1 -1
  91. package/dist/cjs/kol-icon-font-awesome.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-icon-font-awesome.cjs.entry.js.map +1 -1
  93. package/dist/cjs/kol-icon-icofont.cjs.entry.js +1 -1
  94. package/dist/cjs/kol-icon-icofont.cjs.entry.js.map +1 -1
  95. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  96. package/dist/cjs/kol-icon.cjs.entry.js.map +1 -1
  97. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  98. package/dist/cjs/kol-image.cjs.entry.js.map +1 -1
  99. package/dist/cjs/kol-indented-text.cjs.entry.js +1 -1
  100. package/dist/cjs/kol-indented-text.cjs.entry.js.map +1 -1
  101. package/dist/cjs/kol-input-adapter-leanup.cjs.entry.js +1 -1
  102. package/dist/cjs/kol-input-adapter-leanup.cjs.entry.js.map +1 -1
  103. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  104. package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
  105. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  106. package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
  107. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  108. package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
  109. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  110. package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
  111. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  112. package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
  113. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  114. package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
  115. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  116. package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
  117. package/dist/cjs/kol-input-radio-group.cjs.entry.js +1 -1
  118. package/dist/cjs/kol-input-radio-group.cjs.entry.js.map +1 -1
  119. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  120. package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
  121. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  122. package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
  123. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  124. package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
  125. package/dist/cjs/kol-input.cjs.entry.js +1 -1
  126. package/dist/cjs/kol-input.cjs.entry.js.map +1 -1
  127. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  128. package/dist/cjs/kol-kolibri.cjs.entry.js.map +1 -1
  129. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  130. package/dist/cjs/kol-link-button.cjs.entry.js.map +1 -1
  131. package/dist/cjs/kol-link-group.cjs.entry.js +1 -1
  132. package/dist/cjs/kol-link-group.cjs.entry.js.map +1 -1
  133. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  134. package/dist/cjs/kol-link-wc.cjs.entry.js.map +1 -1
  135. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  136. package/dist/cjs/kol-link.cjs.entry.js.map +1 -1
  137. package/dist/cjs/kol-logo.cjs.entry.js +1 -1
  138. package/dist/cjs/kol-logo.cjs.entry.js.map +1 -1
  139. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  140. package/dist/cjs/kol-modal.cjs.entry.js.map +1 -1
  141. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  142. package/dist/cjs/kol-nav.cjs.entry.js.map +1 -1
  143. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  144. package/dist/cjs/kol-pagination.cjs.entry.js.map +1 -1
  145. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  146. package/dist/cjs/kol-popover-wc.cjs.entry.js.map +1 -1
  147. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  148. package/dist/cjs/kol-progress.cjs.entry.js.map +1 -1
  149. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  150. package/dist/cjs/kol-quote.cjs.entry.js.map +1 -1
  151. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  152. package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
  153. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  154. package/dist/cjs/kol-skip-nav.cjs.entry.js.map +1 -1
  155. package/dist/cjs/kol-span-wc_2.cjs.entry.js +1 -1
  156. package/dist/cjs/kol-span-wc_2.cjs.entry.js.map +1 -1
  157. package/dist/cjs/kol-span.cjs.entry.js +1 -1
  158. package/dist/cjs/kol-span.cjs.entry.js.map +1 -1
  159. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  160. package/dist/cjs/kol-spin.cjs.entry.js.map +1 -1
  161. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  162. package/dist/cjs/kol-split-button.cjs.entry.js.map +1 -1
  163. package/dist/cjs/kol-symbol.cjs.entry.js +1 -1
  164. package/dist/cjs/kol-symbol.cjs.entry.js.map +1 -1
  165. package/dist/cjs/kol-table.cjs.entry.js +1 -1
  166. package/dist/cjs/kol-table.cjs.entry.js.map +1 -1
  167. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  168. package/dist/cjs/kol-tabs.cjs.entry.js.map +1 -1
  169. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  170. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  171. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  172. package/dist/cjs/kol-toast-container.cjs.entry.js.map +1 -1
  173. package/dist/cjs/kol-toast.cjs.entry.js +1 -1
  174. package/dist/cjs/kol-toast.cjs.entry.js.map +1 -1
  175. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  176. package/dist/cjs/kol-version.cjs.entry.js.map +1 -1
  177. package/dist/cjs/kolibri.cjs.js +1 -1
  178. package/dist/cjs/kolibri.cjs.js.map +1 -1
  179. package/dist/cjs/{label-83605bf9.js → label-577d2337.js} +1 -1
  180. package/dist/cjs/label-577d2337.js.map +1 -0
  181. package/dist/cjs/loader.cjs.js +1 -1
  182. package/dist/cjs/open-9206a321.js +4 -0
  183. package/dist/cjs/open-9206a321.js.map +1 -0
  184. package/dist/cjs/{prop.validators-c681a995.js → prop.validators-e97b81b8.js} +1 -1
  185. package/dist/cjs/prop.validators-e97b81b8.js.map +1 -0
  186. package/dist/cjs/reprod-accordion-does-not-toggle-with-open-092e559d.js.map +1 -0
  187. package/dist/cjs/reuse-a4c8450e.js.map +1 -0
  188. package/dist/cjs/rows-d44f404d.js +4 -0
  189. package/dist/cjs/rows-d44f404d.js.map +1 -0
  190. package/dist/cjs/show-fb9b76a1.js +4 -0
  191. package/dist/cjs/show-fb9b76a1.js.map +1 -0
  192. package/dist/cjs/{suggestions-e61abf24.js → suggestions-d81b84b5.js} +1 -1
  193. package/dist/cjs/suggestions-d81b84b5.js.map +1 -0
  194. package/dist/cjs/{tab-index-7f4077e8.js → tab-index-226ac183.js} +1 -1
  195. package/dist/cjs/tab-index-226ac183.js.map +1 -0
  196. package/dist/cjs/{toaster-2958db57.js → toaster-ddf8c471.js} +1 -1
  197. package/dist/cjs/{toaster-2958db57.js.map → toaster-ddf8c471.js.map} +1 -1
  198. package/dist/cjs/toaster-fc0622bd.js.map +1 -0
  199. package/dist/cjs/{tooltip-align-a083b98c.js → tooltip-align-6b3f4298.js} +1 -1
  200. package/dist/cjs/tooltip-align-6b3f4298.js.map +1 -0
  201. package/dist/cjs/{unique-nav-labels-9784a4c5.js.map → unique-nav-labels-363e1d71.js.map} +1 -1
  202. package/dist/cjs/{validation-bc917572.js → validation-1f78e32f.js} +1 -1
  203. package/dist/cjs/validation-1f78e32f.js.map +1 -0
  204. package/dist/cjs/{validation-ca6af306.js → validation-f18cf982.js} +1 -1
  205. package/dist/cjs/validation-f18cf982.js.map +1 -0
  206. package/dist/components/align.js.map +1 -1
  207. package/dist/components/bund.js.map +1 -1
  208. package/dist/components/color.js +1 -1
  209. package/dist/components/color.js.map +1 -1
  210. package/dist/components/component.js +1 -1
  211. package/dist/components/component.js.map +1 -1
  212. package/dist/components/component10.js.map +1 -1
  213. package/dist/components/component11.js.map +1 -1
  214. package/dist/components/component12.js +1 -1
  215. package/dist/components/component12.js.map +1 -1
  216. package/dist/components/component13.js +1 -1
  217. package/dist/components/component13.js.map +1 -1
  218. package/dist/components/component14.js +1 -1
  219. package/dist/components/component14.js.map +1 -1
  220. package/dist/components/component15.js +1 -1
  221. package/dist/components/component15.js.map +1 -1
  222. package/dist/components/component16.js +1 -1
  223. package/dist/components/component16.js.map +1 -1
  224. package/dist/components/component2.js +1 -1
  225. package/dist/components/component2.js.map +1 -1
  226. package/dist/components/component3.js +1 -1
  227. package/dist/components/component3.js.map +1 -1
  228. package/dist/components/component4.js +1 -1
  229. package/dist/components/component4.js.map +1 -1
  230. package/dist/components/component5.js +1 -1
  231. package/dist/components/component5.js.map +1 -1
  232. package/dist/components/component6.js +1 -1
  233. package/dist/components/component6.js.map +1 -1
  234. package/dist/components/component7.js.map +1 -1
  235. package/dist/components/component8.js +1 -1
  236. package/dist/components/component8.js.map +1 -1
  237. package/dist/components/component9.js +1 -1
  238. package/dist/components/component9.js.map +1 -1
  239. package/dist/components/controller-icon.js +1 -1
  240. package/dist/components/controller-icon.js.map +1 -1
  241. package/dist/components/controller.js +1 -1
  242. package/dist/components/controller.js.map +1 -1
  243. package/dist/components/controller2.js +1 -1
  244. package/dist/components/controller2.js.map +1 -1
  245. package/dist/components/controller3.js +1 -1
  246. package/dist/components/controller3.js.map +1 -1
  247. package/dist/components/controller4.js +1 -1
  248. package/dist/components/controller4.js.map +1 -1
  249. package/dist/components/details-synced-open-state.js.map +1 -1
  250. package/dist/components/devtools.js +1 -1
  251. package/dist/components/devtools.js.map +1 -1
  252. package/dist/components/events.js.map +1 -1
  253. package/dist/components/has-closer.js +1 -1
  254. package/dist/components/has-closer.js.map +1 -1
  255. package/dist/components/i18n.js +1 -1
  256. package/dist/components/i18n.js.map +1 -1
  257. package/dist/components/image-source.js +1 -1
  258. package/dist/components/image-source.js.map +1 -1
  259. package/dist/components/index.js +1 -1
  260. package/dist/components/index.js.map +1 -1
  261. package/dist/components/index2.js.map +1 -1
  262. package/dist/components/kol-abbr.d.ts +2 -2
  263. package/dist/components/kol-abbr.js +1 -1
  264. package/dist/components/kol-abbr.js.map +1 -1
  265. package/dist/components/kol-accordion.d.ts +2 -2
  266. package/dist/components/kol-accordion.js +1 -1
  267. package/dist/components/kol-accordion.js.map +1 -1
  268. package/dist/components/kol-alert-wc.d.ts +2 -2
  269. package/dist/components/kol-alert.d.ts +2 -2
  270. package/dist/components/kol-avatar-wc.d.ts +2 -2
  271. package/dist/components/kol-avatar.d.ts +2 -2
  272. package/dist/components/kol-avatar.js +1 -1
  273. package/dist/components/kol-avatar.js.map +1 -1
  274. package/dist/components/kol-badge.d.ts +2 -2
  275. package/dist/components/kol-breadcrumb.d.ts +2 -2
  276. package/dist/components/kol-breadcrumb.js +1 -1
  277. package/dist/components/kol-breadcrumb.js.map +1 -1
  278. package/dist/components/kol-button-group-wc.d.ts +2 -2
  279. package/dist/components/kol-button-group.d.ts +2 -2
  280. package/dist/components/kol-button-group.js +1 -1
  281. package/dist/components/kol-button-group.js.map +1 -1
  282. package/dist/components/kol-button-link-text-switch.d.ts +2 -2
  283. package/dist/components/kol-button-link.d.ts +2 -2
  284. package/dist/components/kol-button-link.js +1 -1
  285. package/dist/components/kol-button-link.js.map +1 -1
  286. package/dist/components/kol-button-wc.d.ts +2 -2
  287. package/dist/components/kol-button.d.ts +2 -2
  288. package/dist/components/kol-card.d.ts +2 -2
  289. package/dist/components/kol-card.js +1 -1
  290. package/dist/components/kol-card.js.map +1 -1
  291. package/dist/components/kol-details.d.ts +2 -2
  292. package/dist/components/kol-details.js +1 -1
  293. package/dist/components/kol-details.js.map +1 -1
  294. package/dist/components/kol-form.d.ts +2 -2
  295. package/dist/components/kol-form.js +1 -1
  296. package/dist/components/kol-form.js.map +1 -1
  297. package/dist/components/kol-heading-wc.d.ts +2 -2
  298. package/dist/components/kol-heading.d.ts +2 -2
  299. package/dist/components/kol-heading.js +1 -1
  300. package/dist/components/kol-heading.js.map +1 -1
  301. package/dist/components/kol-icon-font-awesome.d.ts +2 -2
  302. package/dist/components/kol-icon-font-awesome.js.map +1 -1
  303. package/dist/components/kol-icon-icofont.d.ts +2 -2
  304. package/dist/components/kol-icon-icofont.js.map +1 -1
  305. package/dist/components/kol-icon.d.ts +2 -2
  306. package/dist/components/kol-image.d.ts +2 -2
  307. package/dist/components/kol-image.js +1 -1
  308. package/dist/components/kol-image.js.map +1 -1
  309. package/dist/components/kol-indented-text.d.ts +2 -2
  310. package/dist/components/kol-input-adapter-leanup.d.ts +2 -2
  311. package/dist/components/kol-input-adapter-leanup.js +1 -1
  312. package/dist/components/kol-input-adapter-leanup.js.map +1 -1
  313. package/dist/components/kol-input-checkbox.d.ts +2 -2
  314. package/dist/components/kol-input-checkbox.js +1 -1
  315. package/dist/components/kol-input-checkbox.js.map +1 -1
  316. package/dist/components/kol-input-color.d.ts +2 -2
  317. package/dist/components/kol-input-color.js +1 -1
  318. package/dist/components/kol-input-color.js.map +1 -1
  319. package/dist/components/kol-input-date.d.ts +2 -2
  320. package/dist/components/kol-input-date.js +1 -1
  321. package/dist/components/kol-input-date.js.map +1 -1
  322. package/dist/components/kol-input-email.d.ts +2 -2
  323. package/dist/components/kol-input-email.js +1 -1
  324. package/dist/components/kol-input-email.js.map +1 -1
  325. package/dist/components/kol-input-file.d.ts +2 -2
  326. package/dist/components/kol-input-file.js +1 -1
  327. package/dist/components/kol-input-file.js.map +1 -1
  328. package/dist/components/kol-input-number.d.ts +2 -2
  329. package/dist/components/kol-input-number.js +1 -1
  330. package/dist/components/kol-input-number.js.map +1 -1
  331. package/dist/components/kol-input-password.d.ts +2 -2
  332. package/dist/components/kol-input-password.js +1 -1
  333. package/dist/components/kol-input-password.js.map +1 -1
  334. package/dist/components/kol-input-radio-group.d.ts +2 -2
  335. package/dist/components/kol-input-radio-group.js +1 -1
  336. package/dist/components/kol-input-radio-group.js.map +1 -1
  337. package/dist/components/kol-input-radio.d.ts +2 -2
  338. package/dist/components/kol-input-range.d.ts +2 -2
  339. package/dist/components/kol-input-range.js +1 -1
  340. package/dist/components/kol-input-range.js.map +1 -1
  341. package/dist/components/kol-input-text.d.ts +2 -2
  342. package/dist/components/kol-input-text.js +1 -1
  343. package/dist/components/kol-input-text.js.map +1 -1
  344. package/dist/components/kol-input.d.ts +2 -2
  345. package/dist/components/kol-kolibri.d.ts +2 -2
  346. package/dist/components/kol-kolibri.js +1 -1
  347. package/dist/components/kol-kolibri.js.map +1 -1
  348. package/dist/components/kol-link-button.d.ts +2 -2
  349. package/dist/components/kol-link-button.js +1 -1
  350. package/dist/components/kol-link-button.js.map +1 -1
  351. package/dist/components/kol-link-group.d.ts +2 -2
  352. package/dist/components/kol-link-group.js +1 -1
  353. package/dist/components/kol-link-group.js.map +1 -1
  354. package/dist/components/kol-link-wc.d.ts +2 -2
  355. package/dist/components/kol-link.d.ts +2 -2
  356. package/dist/components/kol-logo.d.ts +2 -2
  357. package/dist/components/kol-logo.js +1 -1
  358. package/dist/components/kol-logo.js.map +1 -1
  359. package/dist/components/kol-modal.d.ts +2 -2
  360. package/dist/components/kol-modal.js +1 -1
  361. package/dist/components/kol-modal.js.map +1 -1
  362. package/dist/components/kol-nav.d.ts +2 -2
  363. package/dist/components/kol-nav.js +1 -1
  364. package/dist/components/kol-nav.js.map +1 -1
  365. package/dist/components/kol-pagination.d.ts +2 -2
  366. package/dist/components/kol-popover-wc.d.ts +2 -2
  367. package/dist/components/kol-popover-wc.js +1 -1
  368. package/dist/components/kol-popover-wc.js.map +1 -1
  369. package/dist/components/kol-progress.d.ts +2 -2
  370. package/dist/components/kol-progress.js +1 -1
  371. package/dist/components/kol-progress.js.map +1 -1
  372. package/dist/components/kol-quote.d.ts +2 -2
  373. package/dist/components/kol-quote.js +1 -1
  374. package/dist/components/kol-quote.js.map +1 -1
  375. package/dist/components/kol-select.d.ts +2 -2
  376. package/dist/components/kol-skip-nav.d.ts +2 -2
  377. package/dist/components/kol-skip-nav.js +1 -1
  378. package/dist/components/kol-skip-nav.js.map +1 -1
  379. package/dist/components/kol-span-wc.d.ts +2 -2
  380. package/dist/components/kol-span.d.ts +2 -2
  381. package/dist/components/kol-span.js +1 -1
  382. package/dist/components/kol-span.js.map +1 -1
  383. package/dist/components/kol-spin.d.ts +2 -2
  384. package/dist/components/kol-spin.js +1 -1
  385. package/dist/components/kol-spin.js.map +1 -1
  386. package/dist/components/kol-split-button.d.ts +2 -2
  387. package/dist/components/kol-split-button.js +1 -1
  388. package/dist/components/kol-split-button.js.map +1 -1
  389. package/dist/components/kol-symbol.d.ts +2 -2
  390. package/dist/components/kol-symbol.js +1 -1
  391. package/dist/components/kol-symbol.js.map +1 -1
  392. package/dist/components/kol-table.d.ts +2 -2
  393. package/dist/components/kol-table.js +1 -1
  394. package/dist/components/kol-table.js.map +1 -1
  395. package/dist/components/kol-tabs.d.ts +2 -2
  396. package/dist/components/kol-tabs.js +1 -1
  397. package/dist/components/kol-tabs.js.map +1 -1
  398. package/dist/components/kol-textarea.d.ts +2 -2
  399. package/dist/components/kol-textarea.js +1 -1
  400. package/dist/components/kol-textarea.js.map +1 -1
  401. package/dist/components/kol-toast-container.d.ts +2 -2
  402. package/dist/components/kol-toast-container.js.map +1 -1
  403. package/dist/components/kol-toast.d.ts +2 -2
  404. package/dist/components/kol-toast.js +1 -1
  405. package/dist/components/kol-toast.js.map +1 -1
  406. package/dist/components/kol-tooltip-wc.d.ts +2 -2
  407. package/dist/components/kol-version.d.ts +2 -2
  408. package/dist/components/kol-version.js +1 -1
  409. package/dist/components/kol-version.js.map +1 -1
  410. package/dist/components/label.js +1 -1
  411. package/dist/components/label.js.map +1 -1
  412. package/dist/components/open.js +1 -1
  413. package/dist/components/open.js.map +1 -1
  414. package/dist/components/prop.validators.js +1 -1
  415. package/dist/components/prop.validators.js.map +1 -1
  416. package/dist/components/reprod-accordion-does-not-toggle-with-open.js.map +1 -1
  417. package/dist/components/rows.js +1 -1
  418. package/dist/components/rows.js.map +1 -1
  419. package/dist/components/shadow.js +1 -1
  420. package/dist/components/shadow.js.map +1 -1
  421. package/dist/components/shadow2.js +1 -1
  422. package/dist/components/shadow2.js.map +1 -1
  423. package/dist/components/shadow3.js +1 -1
  424. package/dist/components/shadow3.js.map +1 -1
  425. package/dist/components/show.js +1 -1
  426. package/dist/components/show.js.map +1 -1
  427. package/dist/components/suggestions.js +1 -1
  428. package/dist/components/suggestions.js.map +1 -1
  429. package/dist/components/tab-index.js +1 -1
  430. package/dist/components/tab-index.js.map +1 -1
  431. package/dist/components/toaster.js.map +1 -1
  432. package/dist/components/tooltip-align.js.map +1 -1
  433. package/dist/components/unique-nav-labels.js.map +1 -1
  434. package/dist/components/validation.js +1 -1
  435. package/dist/components/validation.js.map +1 -1
  436. package/dist/esm/{a11y.tipps-786571db.js → a11y.tipps-b72d567f.js} +1 -1
  437. package/dist/esm/{a11y.tipps-786571db.js.map → a11y.tipps-b72d567f.js.map} +1 -1
  438. package/dist/esm/{align-86dcec9a.js → align-f09b70de.js} +1 -1
  439. package/dist/esm/align-f09b70de.js.map +1 -0
  440. package/dist/esm/{alignment-d55c5a70.js → alignment-89a66c90.js} +1 -1
  441. package/dist/esm/alignment-89a66c90.js.map +1 -0
  442. package/dist/esm/app-globals-239ecc91.js +4 -0
  443. package/dist/esm/app-globals-239ecc91.js.map +1 -0
  444. package/dist/esm/{aria-current-4178d859.js → aria-current-982165c0.js} +1 -1
  445. package/dist/esm/aria-current-982165c0.js.map +1 -0
  446. package/dist/esm/{associated.controller-90adea5d.js → associated.controller-e82ccadd.js} +1 -1
  447. package/dist/esm/associated.controller-e82ccadd.js.map +1 -0
  448. package/dist/esm/{bund-056aa89a.js.map → bund-ad41b762.js.map} +1 -1
  449. package/dist/esm/{color-acf7a646.js → color-a73f383b.js} +1 -1
  450. package/dist/esm/color-a73f383b.js.map +1 -0
  451. package/dist/esm/{controller-36de320d.js → controller-35567a81.js} +1 -1
  452. package/dist/esm/controller-35567a81.js.map +1 -0
  453. package/dist/esm/controller-6a323a54.js +4 -0
  454. package/dist/esm/controller-6a323a54.js.map +1 -0
  455. package/dist/esm/controller-9e65999c.js +4 -0
  456. package/dist/esm/controller-9e65999c.js.map +1 -0
  457. package/dist/esm/controller-c0324c56.js +4 -0
  458. package/dist/esm/controller-c0324c56.js.map +1 -0
  459. package/dist/esm/controller-cc5560bb.js +4 -0
  460. package/dist/esm/controller-cc5560bb.js.map +1 -0
  461. package/dist/esm/{controller-icon-105c05dd.js → controller-icon-f6d5ee93.js} +1 -1
  462. package/dist/esm/controller-icon-f6d5ee93.js.map +1 -0
  463. package/dist/esm/{custom-class-8f63371a.js → custom-class-de440fac.js} +1 -1
  464. package/dist/esm/custom-class-de440fac.js.map +1 -0
  465. package/dist/esm/{details-synced-open-state-8c4176c9.js.map → details-synced-open-state-e1e2be6f.js.map} +1 -1
  466. package/dist/esm/{dev.utils-b8a2ec94.js → dev.utils-41a91551.js} +1 -1
  467. package/dist/esm/dev.utils-41a91551.js.map +1 -0
  468. package/dist/esm/{devtools-f0e85af4.js → devtools-dda97008.js} +1 -1
  469. package/dist/esm/devtools-dda97008.js.map +1 -0
  470. package/dist/esm/{events-2bb1065b.js.map → events-fa760b68.js.map} +1 -1
  471. package/dist/esm/{has-closer-ed97581f.js → has-closer-8ece4fc4.js} +1 -1
  472. package/dist/esm/has-closer-8ece4fc4.js.map +1 -0
  473. package/dist/esm/{hide-label-f059671e.js → hide-label-a37738db.js} +1 -1
  474. package/dist/esm/hide-label-a37738db.js.map +1 -0
  475. package/dist/esm/{i18n-69ff3115.js → i18n-c10542e5.js} +1 -1
  476. package/dist/esm/i18n-c10542e5.js.map +1 -0
  477. package/dist/esm/{icons-5b410219.js → icons-70fec733.js} +1 -1
  478. package/dist/esm/icons-70fec733.js.map +1 -0
  479. package/dist/esm/{image-source-2aef1440.js → image-source-bc311528.js} +1 -1
  480. package/dist/esm/image-source-bc311528.js.map +1 -0
  481. package/dist/esm/index-5a2fb9e0.js +4 -0
  482. package/dist/esm/index-5a2fb9e0.js.map +1 -0
  483. package/dist/esm/index-5dfe6d77.js +5 -0
  484. package/dist/esm/index-5dfe6d77.js.map +1 -0
  485. package/dist/esm/index-5f832c94.js +4 -0
  486. package/dist/esm/{index-fb9ac195.js.map → index-5f832c94.js.map} +1 -1
  487. package/dist/esm/index-b580aa97.js +4 -0
  488. package/dist/esm/index-b580aa97.js.map +1 -0
  489. package/dist/esm/index.js +1 -1
  490. package/dist/esm/index.js.map +1 -1
  491. package/dist/esm/kol-abbr.entry.js +1 -1
  492. package/dist/esm/kol-abbr.entry.js.map +1 -1
  493. package/dist/esm/kol-accordion.entry.js +1 -1
  494. package/dist/esm/kol-accordion.entry.js.map +1 -1
  495. package/dist/esm/kol-alert-wc_3.entry.js +1 -1
  496. package/dist/esm/kol-alert-wc_3.entry.js.map +1 -1
  497. package/dist/esm/kol-alert.entry.js +1 -1
  498. package/dist/esm/kol-alert.entry.js.map +1 -1
  499. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  500. package/dist/esm/kol-avatar-wc.entry.js.map +1 -1
  501. package/dist/esm/kol-avatar.entry.js +1 -1
  502. package/dist/esm/kol-avatar.entry.js.map +1 -1
  503. package/dist/esm/kol-badge.entry.js +1 -1
  504. package/dist/esm/kol-badge.entry.js.map +1 -1
  505. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  506. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  507. package/dist/esm/kol-button-group-wc.entry.js +1 -1
  508. package/dist/esm/kol-button-group-wc.entry.js.map +1 -1
  509. package/dist/esm/kol-button-group.entry.js +1 -1
  510. package/dist/esm/kol-button-group.entry.js.map +1 -1
  511. package/dist/esm/kol-button-link-text-switch.entry.js +1 -1
  512. package/dist/esm/kol-button-link-text-switch.entry.js.map +1 -1
  513. package/dist/esm/kol-button-link.entry.js +1 -1
  514. package/dist/esm/kol-button-link.entry.js.map +1 -1
  515. package/dist/esm/kol-button.entry.js +1 -1
  516. package/dist/esm/kol-button.entry.js.map +1 -1
  517. package/dist/esm/kol-card.entry.js +1 -1
  518. package/dist/esm/kol-card.entry.js.map +1 -1
  519. package/dist/esm/kol-details.entry.js +1 -1
  520. package/dist/esm/kol-details.entry.js.map +1 -1
  521. package/dist/esm/kol-form.entry.js +1 -1
  522. package/dist/esm/kol-form.entry.js.map +1 -1
  523. package/dist/esm/kol-heading.entry.js +1 -1
  524. package/dist/esm/kol-heading.entry.js.map +1 -1
  525. package/dist/esm/kol-icon-font-awesome.entry.js +1 -1
  526. package/dist/esm/kol-icon-font-awesome.entry.js.map +1 -1
  527. package/dist/esm/kol-icon-icofont.entry.js +1 -1
  528. package/dist/esm/kol-icon-icofont.entry.js.map +1 -1
  529. package/dist/esm/kol-icon.entry.js +1 -1
  530. package/dist/esm/kol-icon.entry.js.map +1 -1
  531. package/dist/esm/kol-image.entry.js +1 -1
  532. package/dist/esm/kol-image.entry.js.map +1 -1
  533. package/dist/esm/kol-indented-text.entry.js +1 -1
  534. package/dist/esm/kol-indented-text.entry.js.map +1 -1
  535. package/dist/esm/kol-input-adapter-leanup.entry.js +1 -1
  536. package/dist/esm/kol-input-adapter-leanup.entry.js.map +1 -1
  537. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  538. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  539. package/dist/esm/kol-input-color.entry.js +1 -1
  540. package/dist/esm/kol-input-color.entry.js.map +1 -1
  541. package/dist/esm/kol-input-date.entry.js +1 -1
  542. package/dist/esm/kol-input-date.entry.js.map +1 -1
  543. package/dist/esm/kol-input-email.entry.js +1 -1
  544. package/dist/esm/kol-input-email.entry.js.map +1 -1
  545. package/dist/esm/kol-input-file.entry.js +1 -1
  546. package/dist/esm/kol-input-file.entry.js.map +1 -1
  547. package/dist/esm/kol-input-number.entry.js +1 -1
  548. package/dist/esm/kol-input-number.entry.js.map +1 -1
  549. package/dist/esm/kol-input-password.entry.js +1 -1
  550. package/dist/esm/kol-input-password.entry.js.map +1 -1
  551. package/dist/esm/kol-input-radio-group.entry.js +1 -1
  552. package/dist/esm/kol-input-radio-group.entry.js.map +1 -1
  553. package/dist/esm/kol-input-radio.entry.js +1 -1
  554. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  555. package/dist/esm/kol-input-range.entry.js +1 -1
  556. package/dist/esm/kol-input-range.entry.js.map +1 -1
  557. package/dist/esm/kol-input-text.entry.js +1 -1
  558. package/dist/esm/kol-input-text.entry.js.map +1 -1
  559. package/dist/esm/kol-input.entry.js +1 -1
  560. package/dist/esm/kol-input.entry.js.map +1 -1
  561. package/dist/esm/kol-kolibri.entry.js +1 -1
  562. package/dist/esm/kol-kolibri.entry.js.map +1 -1
  563. package/dist/esm/kol-link-button.entry.js +1 -1
  564. package/dist/esm/kol-link-button.entry.js.map +1 -1
  565. package/dist/esm/kol-link-group.entry.js +1 -1
  566. package/dist/esm/kol-link-group.entry.js.map +1 -1
  567. package/dist/esm/kol-link-wc.entry.js +1 -1
  568. package/dist/esm/kol-link-wc.entry.js.map +1 -1
  569. package/dist/esm/kol-link.entry.js +1 -1
  570. package/dist/esm/kol-link.entry.js.map +1 -1
  571. package/dist/esm/kol-logo.entry.js +1 -1
  572. package/dist/esm/kol-logo.entry.js.map +1 -1
  573. package/dist/esm/kol-modal.entry.js +1 -1
  574. package/dist/esm/kol-modal.entry.js.map +1 -1
  575. package/dist/esm/kol-nav.entry.js +1 -1
  576. package/dist/esm/kol-nav.entry.js.map +1 -1
  577. package/dist/esm/kol-pagination.entry.js +1 -1
  578. package/dist/esm/kol-pagination.entry.js.map +1 -1
  579. package/dist/esm/kol-popover-wc.entry.js +1 -1
  580. package/dist/esm/kol-popover-wc.entry.js.map +1 -1
  581. package/dist/esm/kol-progress.entry.js +1 -1
  582. package/dist/esm/kol-progress.entry.js.map +1 -1
  583. package/dist/esm/kol-quote.entry.js +1 -1
  584. package/dist/esm/kol-quote.entry.js.map +1 -1
  585. package/dist/esm/kol-select.entry.js +1 -1
  586. package/dist/esm/kol-select.entry.js.map +1 -1
  587. package/dist/esm/kol-skip-nav.entry.js +1 -1
  588. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  589. package/dist/esm/kol-span-wc_2.entry.js +1 -1
  590. package/dist/esm/kol-span-wc_2.entry.js.map +1 -1
  591. package/dist/esm/kol-span.entry.js +1 -1
  592. package/dist/esm/kol-span.entry.js.map +1 -1
  593. package/dist/esm/kol-spin.entry.js +1 -1
  594. package/dist/esm/kol-spin.entry.js.map +1 -1
  595. package/dist/esm/kol-split-button.entry.js +1 -1
  596. package/dist/esm/kol-split-button.entry.js.map +1 -1
  597. package/dist/esm/kol-symbol.entry.js +1 -1
  598. package/dist/esm/kol-symbol.entry.js.map +1 -1
  599. package/dist/esm/kol-table.entry.js +1 -1
  600. package/dist/esm/kol-table.entry.js.map +1 -1
  601. package/dist/esm/kol-tabs.entry.js +1 -1
  602. package/dist/esm/kol-tabs.entry.js.map +1 -1
  603. package/dist/esm/kol-textarea.entry.js +1 -1
  604. package/dist/esm/kol-textarea.entry.js.map +1 -1
  605. package/dist/esm/kol-toast-container.entry.js +1 -1
  606. package/dist/esm/kol-toast-container.entry.js.map +1 -1
  607. package/dist/esm/kol-toast.entry.js +1 -1
  608. package/dist/esm/kol-toast.entry.js.map +1 -1
  609. package/dist/esm/kol-version.entry.js +1 -1
  610. package/dist/esm/kol-version.entry.js.map +1 -1
  611. package/dist/esm/kolibri.js +1 -1
  612. package/dist/esm/kolibri.js.map +1 -1
  613. package/dist/esm/{label-d69274a4.js → label-3290121e.js} +1 -1
  614. package/dist/esm/label-3290121e.js.map +1 -0
  615. package/dist/esm/loader.js +1 -1
  616. package/dist/esm/{open-fd7a0838.js → open-a2fc514b.js} +1 -1
  617. package/dist/esm/open-a2fc514b.js.map +1 -0
  618. package/dist/esm/prop.validators-26c53e8e.js +4 -0
  619. package/dist/esm/prop.validators-26c53e8e.js.map +1 -0
  620. package/dist/esm/reprod-accordion-does-not-toggle-with-open-930fccf8.js.map +1 -0
  621. package/dist/esm/reuse-d79ab469.js.map +1 -0
  622. package/dist/esm/{rows-a15fdd10.js → rows-0e2fc05c.js} +1 -1
  623. package/dist/esm/rows-0e2fc05c.js.map +1 -0
  624. package/dist/esm/{show-a5ea5a25.js → show-41755036.js} +1 -1
  625. package/dist/esm/show-41755036.js.map +1 -0
  626. package/dist/esm/{suggestions-de4b0c1b.js → suggestions-cde6e476.js} +1 -1
  627. package/dist/esm/suggestions-cde6e476.js.map +1 -0
  628. package/dist/esm/{tab-index-c779bf01.js → tab-index-b5f129ef.js} +1 -1
  629. package/dist/esm/tab-index-b5f129ef.js.map +1 -0
  630. package/dist/esm/toaster-832ff321.js.map +1 -0
  631. package/dist/esm/{toaster-5d1ee30b.js → toaster-9c6c5ae2.js} +1 -1
  632. package/dist/esm/{toaster-5d1ee30b.js.map → toaster-9c6c5ae2.js.map} +1 -1
  633. package/dist/esm/{tooltip-align-8b359fe1.js → tooltip-align-00b5589a.js} +1 -1
  634. package/dist/esm/tooltip-align-00b5589a.js.map +1 -0
  635. package/dist/esm/{unique-nav-labels-c6750f60.js.map → unique-nav-labels-62d9802d.js.map} +1 -1
  636. package/dist/esm/validation-bf8400da.js +4 -0
  637. package/dist/esm/validation-bf8400da.js.map +1 -0
  638. package/dist/esm/{validation-7dc6350a.js → validation-e53d5d37.js} +1 -1
  639. package/dist/esm/validation-e53d5d37.js.map +1 -0
  640. package/dist/kolibri/{a11y.tipps-786571db.js → a11y.tipps-b72d567f.js} +1 -1
  641. package/dist/kolibri/align-f09b70de.js +4 -0
  642. package/dist/kolibri/align-f09b70de.js.map +1 -0
  643. package/dist/kolibri/alignment-89a66c90.js +4 -0
  644. package/dist/kolibri/alignment-89a66c90.js.map +1 -0
  645. package/dist/kolibri/app-globals-239ecc91.js +4 -0
  646. package/dist/kolibri/app-globals-239ecc91.js.map +1 -0
  647. package/dist/kolibri/{aria-current-4178d859.js → aria-current-982165c0.js} +1 -1
  648. package/dist/kolibri/aria-current-982165c0.js.map +1 -0
  649. package/dist/kolibri/{associated.controller-90adea5d.js → associated.controller-e82ccadd.js} +1 -1
  650. package/dist/kolibri/associated.controller-e82ccadd.js.map +1 -0
  651. package/dist/kolibri/{color-acf7a646.js → color-a73f383b.js} +1 -1
  652. package/dist/kolibri/{color-acf7a646.js.map → color-a73f383b.js.map} +1 -1
  653. package/dist/kolibri/{controller-36de320d.js → controller-35567a81.js} +1 -1
  654. package/dist/kolibri/controller-6a323a54.js +4 -0
  655. package/dist/kolibri/controller-6a323a54.js.map +1 -0
  656. package/dist/kolibri/controller-9e65999c.js +4 -0
  657. package/dist/kolibri/controller-9e65999c.js.map +1 -0
  658. package/dist/kolibri/controller-c0324c56.js +4 -0
  659. package/dist/kolibri/controller-c0324c56.js.map +1 -0
  660. package/dist/kolibri/controller-cc5560bb.js +4 -0
  661. package/dist/kolibri/controller-cc5560bb.js.map +1 -0
  662. package/dist/kolibri/controller-icon-f6d5ee93.js +4 -0
  663. package/dist/kolibri/controller-icon-f6d5ee93.js.map +1 -0
  664. package/dist/kolibri/{custom-class-8f63371a.js → custom-class-de440fac.js} +1 -1
  665. package/dist/kolibri/custom-class-de440fac.js.map +1 -0
  666. package/dist/kolibri/{dev.utils-b8a2ec94.js → dev.utils-41a91551.js} +1 -1
  667. package/dist/kolibri/dev.utils-41a91551.js.map +1 -0
  668. package/dist/kolibri/devtools-dda97008.js +4 -0
  669. package/dist/kolibri/has-closer-8ece4fc4.js +4 -0
  670. package/dist/kolibri/has-closer-8ece4fc4.js.map +1 -0
  671. package/dist/kolibri/hide-label-a37738db.js +4 -0
  672. package/dist/kolibri/hide-label-a37738db.js.map +1 -0
  673. package/dist/kolibri/{i18n-69ff3115.js → i18n-c10542e5.js} +1 -1
  674. package/dist/kolibri/{i18n-69ff3115.js.map → i18n-c10542e5.js.map} +1 -1
  675. package/dist/kolibri/icons-70fec733.js +4 -0
  676. package/dist/kolibri/icons-70fec733.js.map +1 -0
  677. package/dist/kolibri/image-source-bc311528.js +4 -0
  678. package/dist/kolibri/image-source-bc311528.js.map +1 -0
  679. package/dist/kolibri/index-5a2fb9e0.js +4 -0
  680. package/dist/kolibri/index-5a2fb9e0.js.map +1 -0
  681. package/dist/kolibri/index-5dfe6d77.js +5 -0
  682. package/dist/kolibri/index-5dfe6d77.js.map +1 -0
  683. package/dist/kolibri/index-5f832c94.js +4 -0
  684. package/dist/kolibri/index-b580aa97.js +4 -0
  685. package/dist/kolibri/index-b580aa97.js.map +1 -0
  686. package/dist/kolibri/index.esm.js +1 -1
  687. package/dist/kolibri/kol-abbr.entry.js +1 -1
  688. package/dist/kolibri/kol-abbr.entry.js.map +1 -1
  689. package/dist/kolibri/kol-accordion.entry.js +1 -1
  690. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  691. package/dist/kolibri/kol-alert-wc_3.entry.js +1 -1
  692. package/dist/kolibri/kol-alert-wc_3.entry.js.map +1 -1
  693. package/dist/kolibri/kol-alert.entry.js +1 -1
  694. package/dist/kolibri/kol-alert.entry.js.map +1 -1
  695. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  696. package/dist/kolibri/kol-avatar.entry.js +1 -1
  697. package/dist/kolibri/kol-avatar.entry.js.map +1 -1
  698. package/dist/kolibri/kol-badge.entry.js +1 -1
  699. package/dist/kolibri/kol-badge.entry.js.map +1 -1
  700. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  701. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  702. package/dist/kolibri/kol-button-group-wc.entry.js +1 -1
  703. package/dist/kolibri/kol-button-group.entry.js +1 -1
  704. package/dist/kolibri/kol-button-group.entry.js.map +1 -1
  705. package/dist/kolibri/kol-button-link-text-switch.entry.js +1 -1
  706. package/dist/kolibri/kol-button-link.entry.js +1 -1
  707. package/dist/kolibri/kol-button-link.entry.js.map +1 -1
  708. package/dist/kolibri/kol-button.entry.js +1 -1
  709. package/dist/kolibri/kol-button.entry.js.map +1 -1
  710. package/dist/kolibri/kol-card.entry.js +1 -1
  711. package/dist/kolibri/kol-card.entry.js.map +1 -1
  712. package/dist/kolibri/kol-details.entry.js +1 -1
  713. package/dist/kolibri/kol-details.entry.js.map +1 -1
  714. package/dist/kolibri/kol-form.entry.js +1 -1
  715. package/dist/kolibri/kol-heading.entry.js +1 -1
  716. package/dist/kolibri/kol-heading.entry.js.map +1 -1
  717. package/dist/kolibri/kol-icon-font-awesome.entry.js +1 -1
  718. package/dist/kolibri/kol-icon-font-awesome.entry.js.map +1 -1
  719. package/dist/kolibri/kol-icon-icofont.entry.js +1 -1
  720. package/dist/kolibri/kol-icon-icofont.entry.js.map +1 -1
  721. package/dist/kolibri/kol-icon.entry.js +1 -1
  722. package/dist/kolibri/kol-image.entry.js +1 -1
  723. package/dist/kolibri/kol-image.entry.js.map +1 -1
  724. package/dist/kolibri/kol-indented-text.entry.js +1 -1
  725. package/dist/kolibri/kol-indented-text.entry.js.map +1 -1
  726. package/dist/kolibri/kol-input-adapter-leanup.entry.js +1 -1
  727. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  728. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  729. package/dist/kolibri/kol-input-color.entry.js +1 -1
  730. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  731. package/dist/kolibri/kol-input-date.entry.js +1 -1
  732. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  733. package/dist/kolibri/kol-input-email.entry.js +1 -1
  734. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  735. package/dist/kolibri/kol-input-file.entry.js +1 -1
  736. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  737. package/dist/kolibri/kol-input-number.entry.js +1 -1
  738. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  739. package/dist/kolibri/kol-input-password.entry.js +1 -1
  740. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  741. package/dist/kolibri/kol-input-radio-group.entry.js +1 -1
  742. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  743. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  744. package/dist/kolibri/kol-input-range.entry.js +1 -1
  745. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  746. package/dist/kolibri/kol-input-text.entry.js +1 -1
  747. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  748. package/dist/kolibri/kol-input.entry.js +1 -1
  749. package/dist/kolibri/kol-input.entry.js.map +1 -1
  750. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  751. package/dist/kolibri/kol-kolibri.entry.js.map +1 -1
  752. package/dist/kolibri/kol-link-button.entry.js +1 -1
  753. package/dist/kolibri/kol-link-button.entry.js.map +1 -1
  754. package/dist/kolibri/kol-link-group.entry.js +1 -1
  755. package/dist/kolibri/kol-link-group.entry.js.map +1 -1
  756. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  757. package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
  758. package/dist/kolibri/kol-link.entry.js +1 -1
  759. package/dist/kolibri/kol-link.entry.js.map +1 -1
  760. package/dist/kolibri/kol-logo.entry.js +1 -1
  761. package/dist/kolibri/kol-logo.entry.js.map +1 -1
  762. package/dist/kolibri/kol-modal.entry.js +1 -1
  763. package/dist/kolibri/kol-modal.entry.js.map +1 -1
  764. package/dist/kolibri/kol-nav.entry.js +1 -1
  765. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  766. package/dist/kolibri/kol-pagination.entry.js +1 -1
  767. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  768. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  769. package/dist/kolibri/kol-popover-wc.entry.js.map +1 -1
  770. package/dist/kolibri/kol-progress.entry.js +1 -1
  771. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  772. package/dist/kolibri/kol-quote.entry.js +1 -1
  773. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  774. package/dist/kolibri/kol-select.entry.js +1 -1
  775. package/dist/kolibri/kol-select.entry.js.map +1 -1
  776. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  777. package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
  778. package/dist/kolibri/kol-span-wc_2.entry.js +1 -1
  779. package/dist/kolibri/kol-span-wc_2.entry.js.map +1 -1
  780. package/dist/kolibri/kol-span.entry.js +1 -1
  781. package/dist/kolibri/kol-span.entry.js.map +1 -1
  782. package/dist/kolibri/kol-spin.entry.js +1 -1
  783. package/dist/kolibri/kol-spin.entry.js.map +1 -1
  784. package/dist/kolibri/kol-split-button.entry.js +1 -1
  785. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  786. package/dist/kolibri/kol-symbol.entry.js +1 -1
  787. package/dist/kolibri/kol-table.entry.js +1 -1
  788. package/dist/kolibri/kol-table.entry.js.map +1 -1
  789. package/dist/kolibri/kol-tabs.entry.js +1 -1
  790. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  791. package/dist/kolibri/kol-textarea.entry.js +1 -1
  792. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  793. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  794. package/dist/kolibri/kol-toast.entry.js +1 -1
  795. package/dist/kolibri/kol-toast.entry.js.map +1 -1
  796. package/dist/kolibri/kol-version.entry.js +1 -1
  797. package/dist/kolibri/kol-version.entry.js.map +1 -1
  798. package/dist/kolibri/kolibri.esm.js +1 -1
  799. package/dist/kolibri/kolibri.esm.js.map +1 -1
  800. package/dist/kolibri/label-3290121e.js +4 -0
  801. package/dist/kolibri/label-3290121e.js.map +1 -0
  802. package/dist/kolibri/open-a2fc514b.js +4 -0
  803. package/dist/kolibri/open-a2fc514b.js.map +1 -0
  804. package/dist/kolibri/{prop.validators-e20b06c5.js → prop.validators-26c53e8e.js} +1 -1
  805. package/dist/kolibri/prop.validators-26c53e8e.js.map +1 -0
  806. package/dist/kolibri/rows-0e2fc05c.js +4 -0
  807. package/dist/kolibri/rows-0e2fc05c.js.map +1 -0
  808. package/dist/kolibri/show-41755036.js +4 -0
  809. package/dist/kolibri/show-41755036.js.map +1 -0
  810. package/dist/kolibri/suggestions-cde6e476.js +4 -0
  811. package/dist/kolibri/suggestions-cde6e476.js.map +1 -0
  812. package/dist/kolibri/{tab-index-c779bf01.js → tab-index-b5f129ef.js} +1 -1
  813. package/dist/kolibri/tab-index-b5f129ef.js.map +1 -0
  814. package/dist/kolibri/toaster-9c6c5ae2.js +4 -0
  815. package/dist/kolibri/tooltip-align-00b5589a.js +4 -0
  816. package/dist/kolibri/tooltip-align-00b5589a.js.map +1 -0
  817. package/dist/kolibri/validation-bf8400da.js +4 -0
  818. package/dist/kolibri/validation-bf8400da.js.map +1 -0
  819. package/dist/kolibri/{validation-7dc6350a.js → validation-e53d5d37.js} +1 -1
  820. package/dist/kolibri/validation-e53d5d37.js.map +1 -0
  821. package/dist/types/components/@deprecated/input/controller-icon.d.ts +6 -6
  822. package/dist/types/components/@deprecated/input/controller.d.ts +30 -28
  823. package/dist/types/components/@deprecated/input/types-icon.d.ts +3 -3
  824. package/dist/types/components/@deprecated/input/types.d.ts +13 -12
  825. package/dist/types/components/@else/all/component.d.ts +3 -3
  826. package/dist/types/components/@else/color/component.d.ts +2 -2
  827. package/dist/types/components/@else/counter/component.d.ts +6 -6
  828. package/dist/types/components/abbr/component.d.ts +10 -10
  829. package/dist/types/components/abbr/types.d.ts +2 -2
  830. package/dist/types/components/accordion/component.d.ts +17 -17
  831. package/dist/types/components/accordion/test/html.mock.d.ts +3 -3
  832. package/dist/types/components/accordion/types.d.ts +5 -5
  833. package/dist/types/components/alert/component.d.ts +20 -20
  834. package/dist/types/components/alert/shadow.d.ts +10 -10
  835. package/dist/types/components/alert/types.d.ts +7 -7
  836. package/dist/types/components/avatar/component.d.ts +7 -7
  837. package/dist/types/components/avatar/shadow.d.ts +3 -3
  838. package/dist/types/components/avatar/types.d.ts +1 -1
  839. package/dist/types/components/badge/component.d.ts +17 -17
  840. package/dist/types/components/badge/contrast.d.ts +3 -3
  841. package/dist/types/components/badge/types.d.ts +8 -8
  842. package/dist/types/components/breadcrumb/component.d.ts +11 -11
  843. package/dist/types/components/breadcrumb/types.d.ts +3 -3
  844. package/dist/types/components/button/component.d.ts +57 -57
  845. package/dist/types/components/button/shadow.d.ts +27 -27
  846. package/dist/types/components/button/test/html.mock.d.ts +1 -1
  847. package/dist/types/components/button/types.d.ts +8 -8
  848. package/dist/types/components/button-group/component.d.ts +2 -2
  849. package/dist/types/components/button-group/shadow.d.ts +1 -1
  850. package/dist/types/components/button-group/types.d.ts +1 -1
  851. package/dist/types/components/button-link/component.d.ts +24 -24
  852. package/dist/types/components/button-link/types.d.ts +1 -1
  853. package/dist/types/components/button-link-text-switch/component.d.ts +6 -6
  854. package/dist/types/components/button-link-text-switch/types.d.ts +4 -4
  855. package/dist/types/components/card/component.d.ts +20 -20
  856. package/dist/types/components/card/types.d.ts +6 -6
  857. package/dist/types/components/details/DetailsAnimationController.d.ts +13 -13
  858. package/dist/types/components/details/component.d.ts +19 -19
  859. package/dist/types/components/details/test/html.mock.d.ts +1 -1
  860. package/dist/types/components/details/types.d.ts +4 -4
  861. package/dist/types/components/form/component.d.ts +9 -9
  862. package/dist/types/components/form/controller.d.ts +4 -4
  863. package/dist/types/components/form/types.d.ts +5 -5
  864. package/dist/types/components/heading/component.d.ts +11 -11
  865. package/dist/types/components/heading/shadow.d.ts +4 -4
  866. package/dist/types/components/heading/test/html.mock.d.ts +2 -2
  867. package/dist/types/components/heading/types.d.ts +5 -5
  868. package/dist/types/components/heading/validation.d.ts +1 -1
  869. package/dist/types/components/icon/component.d.ts +13 -13
  870. package/dist/types/components/icon/types.d.ts +4 -4
  871. package/dist/types/components/icon-font-awesome/component.d.ts +9 -9
  872. package/dist/types/components/icon-icofont/component.d.ts +7 -7
  873. package/dist/types/components/image/shadow.d.ts +13 -13
  874. package/dist/types/components/image/types.d.ts +8 -8
  875. package/dist/types/components/indented-text/component.d.ts +2 -2
  876. package/dist/types/components/indented-text/test/html.mock.d.ts +1 -1
  877. package/dist/types/components/indented-text/types.d.ts +1 -1
  878. package/dist/types/components/input/component.d.ts +28 -28
  879. package/dist/types/components/input/controller.d.ts +7 -7
  880. package/dist/types/components/input/types.d.ts +9 -9
  881. package/dist/types/components/input-adapter-leanup/associated.controller.d.ts +16 -16
  882. package/dist/types/components/input-adapter-leanup/component.d.ts +2 -2
  883. package/dist/types/components/input-adapter-leanup/controller.d.ts +6 -6
  884. package/dist/types/components/input-adapter-leanup/types.d.ts +3 -3
  885. package/dist/types/components/input-checkbox/component.d.ts +53 -54
  886. package/dist/types/components/input-checkbox/controller.d.ts +12 -14
  887. package/dist/types/components/input-checkbox/types.d.ts +34 -34
  888. package/dist/types/components/input-color/component.d.ts +51 -51
  889. package/dist/types/components/input-color/controller.d.ts +8 -10
  890. package/dist/types/components/input-color/types.d.ts +25 -25
  891. package/dist/types/components/input-date/component.d.ts +64 -64
  892. package/dist/types/components/input-date/controller.d.ts +26 -28
  893. package/dist/types/components/input-date/types.d.ts +20 -20
  894. package/dist/types/components/input-email/component.d.ts +68 -68
  895. package/dist/types/components/input-email/controller.d.ts +5 -7
  896. package/dist/types/components/input-email/types.d.ts +34 -34
  897. package/dist/types/components/input-file/component.d.ts +52 -52
  898. package/dist/types/components/input-file/controller.d.ts +8 -10
  899. package/dist/types/components/input-file/types.d.ts +22 -22
  900. package/dist/types/components/input-number/component.d.ts +66 -66
  901. package/dist/types/components/input-number/controller.d.ts +20 -22
  902. package/dist/types/components/input-number/types.d.ts +21 -21
  903. package/dist/types/components/input-password/component.d.ts +62 -62
  904. package/dist/types/components/input-password/controller.d.ts +16 -18
  905. package/dist/types/components/input-password/types.d.ts +32 -32
  906. package/dist/types/components/input-radio/component.d.ts +47 -47
  907. package/dist/types/components/input-radio/controller.d.ts +17 -19
  908. package/dist/types/components/input-radio/types.d.ts +19 -19
  909. package/dist/types/components/input-radio-group/component.d.ts +17 -17
  910. package/dist/types/components/input-range/component.d.ts +57 -57
  911. package/dist/types/components/input-range/controller.d.ts +11 -13
  912. package/dist/types/components/input-range/types.d.ts +28 -28
  913. package/dist/types/components/input-text/component.d.ts +71 -71
  914. package/dist/types/components/input-text/controller.d.ts +14 -16
  915. package/dist/types/components/input-text/types.d.ts +36 -36
  916. package/dist/types/components/kolibri/component.d.ts +13 -13
  917. package/dist/types/components/kolibri/types.d.ts +11 -11
  918. package/dist/types/components/link/component.d.ts +58 -58
  919. package/dist/types/components/link/shadow.d.ts +27 -27
  920. package/dist/types/components/link/types.d.ts +8 -8
  921. package/dist/types/components/link-button/component.d.ts +24 -24
  922. package/dist/types/components/link-button/types.d.ts +1 -1
  923. package/dist/types/components/link-group/component.d.ts +21 -21
  924. package/dist/types/components/link-group/types.d.ts +13 -13
  925. package/dist/types/components/logo/component.d.ts +7 -7
  926. package/dist/types/components/logo/types.d.ts +3 -3
  927. package/dist/types/components/modal/component.d.ts +17 -17
  928. package/dist/types/components/modal/service.d.ts +9 -9
  929. package/dist/types/components/modal/types.d.ts +7 -7
  930. package/dist/types/components/nav/component.d.ts +30 -30
  931. package/dist/types/components/nav/types.d.ts +10 -10
  932. package/dist/types/components/nav/validation.d.ts +4 -4
  933. package/dist/types/components/pagination/component.d.ts +45 -45
  934. package/dist/types/components/pagination/types.d.ts +23 -23
  935. package/dist/types/components/popover/component.d.ts +22 -22
  936. package/dist/types/components/popover/test/html.mock.d.ts +1 -1
  937. package/dist/types/components/popover/types.d.ts +2 -2
  938. package/dist/types/components/progress/component.d.ts +17 -17
  939. package/dist/types/components/progress/types.d.ts +9 -9
  940. package/dist/types/components/quote/shadow.d.ts +13 -13
  941. package/dist/types/components/quote/test/html.mock.d.ts +1 -1
  942. package/dist/types/components/quote/types.d.ts +6 -6
  943. package/dist/types/components/select/component.d.ts +59 -59
  944. package/dist/types/components/select/controller.d.ts +16 -18
  945. package/dist/types/components/select/types.d.ts +25 -25
  946. package/dist/types/components/skip-nav/component.d.ts +10 -10
  947. package/dist/types/components/skip-nav/types.d.ts +3 -3
  948. package/dist/types/components/span/component.d.ts +15 -15
  949. package/dist/types/components/span/shadow.d.ts +6 -6
  950. package/dist/types/components/span/test/html.mock.d.ts +3 -3
  951. package/dist/types/components/span/types.d.ts +13 -13
  952. package/dist/types/components/spin/component.d.ts +8 -8
  953. package/dist/types/components/spin/types.d.ts +1 -1
  954. package/dist/types/components/split-button/component.d.ts +38 -38
  955. package/dist/types/components/split-button/types.d.ts +5 -5
  956. package/dist/types/components/symbol/component.d.ts +9 -9
  957. package/dist/types/components/symbol/types.d.ts +2 -2
  958. package/dist/types/components/table/component.d.ts +40 -40
  959. package/dist/types/components/table/types.d.ts +36 -36
  960. package/dist/types/components/tabs/component.d.ts +36 -36
  961. package/dist/types/components/tabs/types.d.ts +16 -16
  962. package/dist/types/components/textarea/component.d.ts +56 -56
  963. package/dist/types/components/textarea/controller.d.ts +13 -15
  964. package/dist/types/components/textarea/types.d.ts +24 -24
  965. package/dist/types/components/toast/component.d.ts +25 -25
  966. package/dist/types/components/toast/toaster.d.ts +14 -14
  967. package/dist/types/components/toast/types.d.ts +7 -7
  968. package/dist/types/components/toaster/InternalToast.d.ts +3 -3
  969. package/dist/types/components/toaster/component.d.ts +5 -5
  970. package/dist/types/components/toaster/toaster.d.ts +8 -8
  971. package/dist/types/components/toaster/types.d.ts +11 -11
  972. package/dist/types/components/tooltip/component.d.ts +32 -32
  973. package/dist/types/components/tooltip/types.d.ts +1 -1
  974. package/dist/types/components/version/component.d.ts +7 -7
  975. package/dist/types/components/version/types.d.ts +3 -3
  976. package/dist/types/core/declare.d.ts +1 -1
  977. package/dist/types/core/i18n.d.ts +14 -14
  978. package/dist/types/core/index.d.ts +1 -1
  979. package/dist/types/enums/bund.d.ts +58 -58
  980. package/dist/types/enums/color.d.ts +17 -17
  981. package/dist/types/enums/events.d.ts +17 -17
  982. package/dist/types/i18n.d.ts +5 -5
  983. package/dist/types/locales/de.d.ts +34 -34
  984. package/dist/types/locales/en.d.ts +34 -34
  985. package/dist/types/stencil-public-runtime.d.ts +8 -0
  986. package/dist/types/types/button-link-text.d.ts +7 -7
  987. package/dist/types/types/icons.d.ts +6 -6
  988. package/dist/types/types/input/control/number.d.ts +21 -21
  989. package/dist/types/types/input/types.d.ts +10 -10
  990. package/dist/types/types/modal.d.ts +1 -1
  991. package/dist/types/types/progress.d.ts +4 -4
  992. package/dist/types/types/props/adjust-height.d.ts +2 -2
  993. package/dist/types/types/props/alert.d.ts +2 -2
  994. package/dist/types/types/props/align.d.ts +2 -2
  995. package/dist/types/types/props/alternative-button-link-role.d.ts +2 -2
  996. package/dist/types/types/props/aria-controls.d.ts +2 -2
  997. package/dist/types/types/props/aria-current.d.ts +3 -3
  998. package/dist/types/types/props/aria-expanded.d.ts +2 -2
  999. package/dist/types/types/props/aria-label.d.ts +1 -1
  1000. package/dist/types/types/props/aria-selected.d.ts +2 -2
  1001. package/dist/types/types/props/button-callbacks.d.ts +4 -4
  1002. package/dist/types/types/props/button-type.d.ts +2 -2
  1003. package/dist/types/types/props/button-variant.d.ts +2 -2
  1004. package/dist/types/types/props/checked.d.ts +2 -2
  1005. package/dist/types/types/props/collapsible.d.ts +2 -2
  1006. package/dist/types/types/props/color.d.ts +8 -8
  1007. package/dist/types/types/props/compact.d.ts +1 -1
  1008. package/dist/types/types/props/custom-class.d.ts +2 -2
  1009. package/dist/types/types/props/disabled.d.ts +2 -2
  1010. package/dist/types/types/props/download.d.ts +2 -2
  1011. package/dist/types/types/props/has-closer.d.ts +2 -2
  1012. package/dist/types/types/props/has-compact-button.d.ts +2 -2
  1013. package/dist/types/types/props/has-counter.d.ts +2 -2
  1014. package/dist/types/types/props/has-footer.d.ts +2 -2
  1015. package/dist/types/types/props/hide-error.d.ts +2 -2
  1016. package/dist/types/types/props/hide-label.d.ts +2 -2
  1017. package/dist/types/types/props/href.d.ts +2 -2
  1018. package/dist/types/types/props/icons.d.ts +2 -2
  1019. package/dist/types/types/props/id.d.ts +2 -2
  1020. package/dist/types/types/props/image-source.d.ts +2 -2
  1021. package/dist/types/types/props/indeterminate.d.ts +2 -2
  1022. package/dist/types/types/props/label.d.ts +3 -3
  1023. package/dist/types/types/props/link-on-callbacks.d.ts +3 -3
  1024. package/dist/types/types/props/link-target.d.ts +2 -2
  1025. package/dist/types/types/props/max.d.ts +2 -2
  1026. package/dist/types/types/props/multiple.d.ts +2 -2
  1027. package/dist/types/types/props/name.d.ts +2 -2
  1028. package/dist/types/types/props/open.d.ts +2 -2
  1029. package/dist/types/types/props/options.d.ts +3 -3
  1030. package/dist/types/types/props/read-only.d.ts +2 -2
  1031. package/dist/types/types/props/required.d.ts +2 -2
  1032. package/dist/types/types/props/rows.d.ts +2 -2
  1033. package/dist/types/types/props/show.d.ts +2 -2
  1034. package/dist/types/types/props/stealth.d.ts +2 -2
  1035. package/dist/types/types/props/suggestions.d.ts +2 -2
  1036. package/dist/types/types/props/sync-value-by-selector.d.ts +1 -1
  1037. package/dist/types/types/props/tooltip-align.d.ts +2 -2
  1038. package/dist/types/types/props/touched.d.ts +2 -2
  1039. package/dist/types/types/props/variant/spin.d.ts +2 -2
  1040. package/dist/types/types/toast.d.ts +1 -1
  1041. package/dist/types/utils/a11y.tipps.d.ts +2 -2
  1042. package/dist/types/utils/color.utils.d.ts +8 -8
  1043. package/dist/types/utils/dev.utils.d.ts +14 -15
  1044. package/dist/types/utils/prop.validators.d.ts +30 -30
  1045. package/dist/types/utils/validators/alignment.d.ts +1 -1
  1046. package/dist/types/utils/validators/loading.d.ts +1 -1
  1047. package/dist/types/utils/validators/tab-index.d.ts +1 -1
  1048. package/doc/alert.md +2 -2
  1049. package/doc/toaster.md +6 -0
  1050. package/doc/tooltip.md +11 -0
  1051. package/package.json +1 -1
  1052. package/dist/cjs/align-9188853a.js +0 -4
  1053. package/dist/cjs/align-9188853a.js.map +0 -1
  1054. package/dist/cjs/alignment-62eb6ada.js.map +0 -1
  1055. package/dist/cjs/app-globals-a003081e.js +0 -4
  1056. package/dist/cjs/app-globals-a003081e.js.map +0 -1
  1057. package/dist/cjs/aria-current-814a3dc4.js +0 -4
  1058. package/dist/cjs/aria-current-814a3dc4.js.map +0 -1
  1059. package/dist/cjs/associated.controller-48c858f3.js.map +0 -1
  1060. package/dist/cjs/color-61c2d789.js.map +0 -1
  1061. package/dist/cjs/controller-0ec38672.js +0 -4
  1062. package/dist/cjs/controller-0ec38672.js.map +0 -1
  1063. package/dist/cjs/controller-166aba29.js.map +0 -1
  1064. package/dist/cjs/controller-7f159844.js +0 -4
  1065. package/dist/cjs/controller-7f159844.js.map +0 -1
  1066. package/dist/cjs/controller-a0322805.js +0 -4
  1067. package/dist/cjs/controller-a0322805.js.map +0 -1
  1068. package/dist/cjs/controller-fd19ada2.js.map +0 -1
  1069. package/dist/cjs/controller-icon-7ac2c453.js.map +0 -1
  1070. package/dist/cjs/custom-class-a1281e0c.js.map +0 -1
  1071. package/dist/cjs/dev.utils-6f091d59.js.map +0 -1
  1072. package/dist/cjs/devtools-5f571cd3.js.map +0 -1
  1073. package/dist/cjs/has-closer-7fab148c.js +0 -4
  1074. package/dist/cjs/has-closer-7fab148c.js.map +0 -1
  1075. package/dist/cjs/hide-label-5dd90b4b.js +0 -4
  1076. package/dist/cjs/hide-label-5dd90b4b.js.map +0 -1
  1077. package/dist/cjs/i18n-b352d30e.js.map +0 -1
  1078. package/dist/cjs/icons-da95da9d.js.map +0 -1
  1079. package/dist/cjs/image-source-ac98802d.js +0 -4
  1080. package/dist/cjs/image-source-ac98802d.js.map +0 -1
  1081. package/dist/cjs/index-0d2cfb70.js +0 -4
  1082. package/dist/cjs/index-0d2cfb70.js.map +0 -1
  1083. package/dist/cjs/index-7988944a.js +0 -4
  1084. package/dist/cjs/index-7988944a.js.map +0 -1
  1085. package/dist/cjs/index-82b810c3.js +0 -5
  1086. package/dist/cjs/index-82b810c3.js.map +0 -1
  1087. package/dist/cjs/index-c3cd3623.js +0 -4
  1088. package/dist/cjs/label-83605bf9.js.map +0 -1
  1089. package/dist/cjs/open-e3bdad37.js +0 -4
  1090. package/dist/cjs/open-e3bdad37.js.map +0 -1
  1091. package/dist/cjs/prop.validators-c681a995.js.map +0 -1
  1092. package/dist/cjs/reprod-accordion-does-not-toggle-with-open-53004853.js.map +0 -1
  1093. package/dist/cjs/reuse-786396d6.js.map +0 -1
  1094. package/dist/cjs/rows-e4592ff3.js +0 -4
  1095. package/dist/cjs/rows-e4592ff3.js.map +0 -1
  1096. package/dist/cjs/show-20042042.js +0 -4
  1097. package/dist/cjs/show-20042042.js.map +0 -1
  1098. package/dist/cjs/suggestions-e61abf24.js.map +0 -1
  1099. package/dist/cjs/tab-index-7f4077e8.js.map +0 -1
  1100. package/dist/cjs/toaster-d55e9636.js.map +0 -1
  1101. package/dist/cjs/tooltip-align-a083b98c.js.map +0 -1
  1102. package/dist/cjs/validation-bc917572.js.map +0 -1
  1103. package/dist/cjs/validation-ca6af306.js.map +0 -1
  1104. package/dist/esm/align-86dcec9a.js.map +0 -1
  1105. package/dist/esm/alignment-d55c5a70.js.map +0 -1
  1106. package/dist/esm/app-globals-2d7e80b2.js +0 -4
  1107. package/dist/esm/app-globals-2d7e80b2.js.map +0 -1
  1108. package/dist/esm/aria-current-4178d859.js.map +0 -1
  1109. package/dist/esm/associated.controller-90adea5d.js.map +0 -1
  1110. package/dist/esm/color-acf7a646.js.map +0 -1
  1111. package/dist/esm/controller-3444f586.js +0 -4
  1112. package/dist/esm/controller-3444f586.js.map +0 -1
  1113. package/dist/esm/controller-36de320d.js.map +0 -1
  1114. package/dist/esm/controller-377660f4.js +0 -4
  1115. package/dist/esm/controller-377660f4.js.map +0 -1
  1116. package/dist/esm/controller-50ef7aa2.js +0 -4
  1117. package/dist/esm/controller-50ef7aa2.js.map +0 -1
  1118. package/dist/esm/controller-d6393b5d.js +0 -4
  1119. package/dist/esm/controller-d6393b5d.js.map +0 -1
  1120. package/dist/esm/controller-icon-105c05dd.js.map +0 -1
  1121. package/dist/esm/custom-class-8f63371a.js.map +0 -1
  1122. package/dist/esm/dev.utils-b8a2ec94.js.map +0 -1
  1123. package/dist/esm/devtools-f0e85af4.js.map +0 -1
  1124. package/dist/esm/has-closer-ed97581f.js.map +0 -1
  1125. package/dist/esm/hide-label-f059671e.js.map +0 -1
  1126. package/dist/esm/i18n-69ff3115.js.map +0 -1
  1127. package/dist/esm/icons-5b410219.js.map +0 -1
  1128. package/dist/esm/image-source-2aef1440.js.map +0 -1
  1129. package/dist/esm/index-312dcd4f.js +0 -4
  1130. package/dist/esm/index-312dcd4f.js.map +0 -1
  1131. package/dist/esm/index-d46a1c6a.js +0 -5
  1132. package/dist/esm/index-d46a1c6a.js.map +0 -1
  1133. package/dist/esm/index-d56bfd0f.js +0 -4
  1134. package/dist/esm/index-d56bfd0f.js.map +0 -1
  1135. package/dist/esm/index-fb9ac195.js +0 -4
  1136. package/dist/esm/label-d69274a4.js.map +0 -1
  1137. package/dist/esm/open-fd7a0838.js.map +0 -1
  1138. package/dist/esm/prop.validators-e20b06c5.js +0 -4
  1139. package/dist/esm/prop.validators-e20b06c5.js.map +0 -1
  1140. package/dist/esm/reprod-accordion-does-not-toggle-with-open-542a45b3.js.map +0 -1
  1141. package/dist/esm/reuse-b3566e4c.js.map +0 -1
  1142. package/dist/esm/rows-a15fdd10.js.map +0 -1
  1143. package/dist/esm/show-a5ea5a25.js.map +0 -1
  1144. package/dist/esm/suggestions-de4b0c1b.js.map +0 -1
  1145. package/dist/esm/tab-index-c779bf01.js.map +0 -1
  1146. package/dist/esm/toaster-210e0b2c.js.map +0 -1
  1147. package/dist/esm/tooltip-align-8b359fe1.js.map +0 -1
  1148. package/dist/esm/validation-46f2e0d7.js +0 -4
  1149. package/dist/esm/validation-46f2e0d7.js.map +0 -1
  1150. package/dist/esm/validation-7dc6350a.js.map +0 -1
  1151. package/dist/kolibri/align-86dcec9a.js +0 -4
  1152. package/dist/kolibri/align-86dcec9a.js.map +0 -1
  1153. package/dist/kolibri/alignment-d55c5a70.js +0 -4
  1154. package/dist/kolibri/alignment-d55c5a70.js.map +0 -1
  1155. package/dist/kolibri/app-globals-2d7e80b2.js +0 -4
  1156. package/dist/kolibri/app-globals-2d7e80b2.js.map +0 -1
  1157. package/dist/kolibri/aria-current-4178d859.js.map +0 -1
  1158. package/dist/kolibri/associated.controller-90adea5d.js.map +0 -1
  1159. package/dist/kolibri/controller-3444f586.js +0 -4
  1160. package/dist/kolibri/controller-3444f586.js.map +0 -1
  1161. package/dist/kolibri/controller-377660f4.js +0 -4
  1162. package/dist/kolibri/controller-377660f4.js.map +0 -1
  1163. package/dist/kolibri/controller-50ef7aa2.js +0 -4
  1164. package/dist/kolibri/controller-50ef7aa2.js.map +0 -1
  1165. package/dist/kolibri/controller-d6393b5d.js +0 -4
  1166. package/dist/kolibri/controller-d6393b5d.js.map +0 -1
  1167. package/dist/kolibri/controller-icon-105c05dd.js +0 -4
  1168. package/dist/kolibri/controller-icon-105c05dd.js.map +0 -1
  1169. package/dist/kolibri/custom-class-8f63371a.js.map +0 -1
  1170. package/dist/kolibri/dev.utils-b8a2ec94.js.map +0 -1
  1171. package/dist/kolibri/devtools-f0e85af4.js +0 -4
  1172. package/dist/kolibri/has-closer-ed97581f.js +0 -4
  1173. package/dist/kolibri/has-closer-ed97581f.js.map +0 -1
  1174. package/dist/kolibri/hide-label-f059671e.js +0 -4
  1175. package/dist/kolibri/hide-label-f059671e.js.map +0 -1
  1176. package/dist/kolibri/icons-5b410219.js +0 -4
  1177. package/dist/kolibri/icons-5b410219.js.map +0 -1
  1178. package/dist/kolibri/image-source-2aef1440.js +0 -4
  1179. package/dist/kolibri/image-source-2aef1440.js.map +0 -1
  1180. package/dist/kolibri/index-312dcd4f.js +0 -4
  1181. package/dist/kolibri/index-312dcd4f.js.map +0 -1
  1182. package/dist/kolibri/index-d46a1c6a.js +0 -5
  1183. package/dist/kolibri/index-d46a1c6a.js.map +0 -1
  1184. package/dist/kolibri/index-d56bfd0f.js +0 -4
  1185. package/dist/kolibri/index-d56bfd0f.js.map +0 -1
  1186. package/dist/kolibri/index-fb9ac195.js +0 -4
  1187. package/dist/kolibri/label-d69274a4.js +0 -4
  1188. package/dist/kolibri/label-d69274a4.js.map +0 -1
  1189. package/dist/kolibri/open-fd7a0838.js +0 -4
  1190. package/dist/kolibri/open-fd7a0838.js.map +0 -1
  1191. package/dist/kolibri/prop.validators-e20b06c5.js.map +0 -1
  1192. package/dist/kolibri/rows-a15fdd10.js +0 -4
  1193. package/dist/kolibri/rows-a15fdd10.js.map +0 -1
  1194. package/dist/kolibri/show-a5ea5a25.js +0 -4
  1195. package/dist/kolibri/show-a5ea5a25.js.map +0 -1
  1196. package/dist/kolibri/suggestions-de4b0c1b.js +0 -4
  1197. package/dist/kolibri/suggestions-de4b0c1b.js.map +0 -1
  1198. package/dist/kolibri/tab-index-c779bf01.js.map +0 -1
  1199. package/dist/kolibri/toaster-5d1ee30b.js +0 -4
  1200. package/dist/kolibri/tooltip-align-8b359fe1.js +0 -4
  1201. package/dist/kolibri/tooltip-align-8b359fe1.js.map +0 -1
  1202. package/dist/kolibri/validation-46f2e0d7.js +0 -4
  1203. package/dist/kolibri/validation-46f2e0d7.js.map +0 -1
  1204. package/dist/kolibri/validation-7dc6350a.js.map +0 -1
  1205. /package/dist/cjs/{bund-f5184e9e.js → bund-4be96755.js} +0 -0
  1206. /package/dist/cjs/{details-synced-open-state-f06dc47c.js → details-synced-open-state-a66cbea0.js} +0 -0
  1207. /package/dist/cjs/{events-a0c291ce.js → events-e348a615.js} +0 -0
  1208. /package/dist/cjs/{reprod-accordion-does-not-toggle-with-open-53004853.js → reprod-accordion-does-not-toggle-with-open-092e559d.js} +0 -0
  1209. /package/dist/cjs/{reuse-786396d6.js → reuse-a4c8450e.js} +0 -0
  1210. /package/dist/cjs/{toaster-d55e9636.js → toaster-fc0622bd.js} +0 -0
  1211. /package/dist/cjs/{unique-nav-labels-9784a4c5.js → unique-nav-labels-363e1d71.js} +0 -0
  1212. /package/dist/esm/{bund-056aa89a.js → bund-ad41b762.js} +0 -0
  1213. /package/dist/esm/{details-synced-open-state-8c4176c9.js → details-synced-open-state-e1e2be6f.js} +0 -0
  1214. /package/dist/esm/{events-2bb1065b.js → events-fa760b68.js} +0 -0
  1215. /package/dist/esm/{reprod-accordion-does-not-toggle-with-open-542a45b3.js → reprod-accordion-does-not-toggle-with-open-930fccf8.js} +0 -0
  1216. /package/dist/esm/{reuse-b3566e4c.js → reuse-d79ab469.js} +0 -0
  1217. /package/dist/esm/{toaster-210e0b2c.js → toaster-832ff321.js} +0 -0
  1218. /package/dist/esm/{unique-nav-labels-c6750f60.js → unique-nav-labels-62d9802d.js} +0 -0
  1219. /package/dist/kolibri/{a11y.tipps-786571db.js.map → a11y.tipps-b72d567f.js.map} +0 -0
  1220. /package/dist/kolibri/{bund-056aa89a.js → bund-ad41b762.js} +0 -0
  1221. /package/dist/kolibri/{bund-056aa89a.js.map → bund-ad41b762.js.map} +0 -0
  1222. /package/dist/kolibri/{controller-36de320d.js.map → controller-35567a81.js.map} +0 -0
  1223. /package/dist/kolibri/{details-synced-open-state-8c4176c9.js → details-synced-open-state-e1e2be6f.js} +0 -0
  1224. /package/dist/kolibri/{details-synced-open-state-8c4176c9.js.map → details-synced-open-state-e1e2be6f.js.map} +0 -0
  1225. /package/dist/kolibri/{devtools-f0e85af4.js.map → devtools-dda97008.js.map} +0 -0
  1226. /package/dist/kolibri/{events-2bb1065b.js → events-fa760b68.js} +0 -0
  1227. /package/dist/kolibri/{events-2bb1065b.js.map → events-fa760b68.js.map} +0 -0
  1228. /package/dist/kolibri/{index-fb9ac195.js.map → index-5f832c94.js.map} +0 -0
  1229. /package/dist/kolibri/{reprod-accordion-does-not-toggle-with-open-542a45b3.js → reprod-accordion-does-not-toggle-with-open-930fccf8.js} +0 -0
  1230. /package/dist/kolibri/{reprod-accordion-does-not-toggle-with-open-542a45b3.js.map → reprod-accordion-does-not-toggle-with-open-930fccf8.js.map} +0 -0
  1231. /package/dist/kolibri/{reuse-b3566e4c.js → reuse-d79ab469.js} +0 -0
  1232. /package/dist/kolibri/{reuse-b3566e4c.js.map → reuse-d79ab469.js.map} +0 -0
  1233. /package/dist/kolibri/{toaster-210e0b2c.js → toaster-832ff321.js} +0 -0
  1234. /package/dist/kolibri/{toaster-210e0b2c.js.map → toaster-832ff321.js.map} +0 -0
  1235. /package/dist/kolibri/{toaster-5d1ee30b.js.map → toaster-9c6c5ae2.js.map} +0 -0
  1236. /package/dist/kolibri/{unique-nav-labels-c6750f60.js → unique-nav-labels-62d9802d.js} +0 -0
  1237. /package/dist/kolibri/{unique-nav-labels-c6750f60.js.map → unique-nav-labels-62d9802d.js.map} +0 -0
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as t,H as e,r as i,g as s}from"./index-d46a1c6a.js";import{n as a}from"./dev.utils-b8a2ec94.js";import{a as n,s as d}from"./reuse-b3566e4c.js";import{p as l}from"./controller-36de320d.js";import{v as o,g as r}from"./controller-3444f586.js";import{a as h,w as u,s as p,e as c}from"./prop.validators-e20b06c5.js";import{v as f}from"./suggestions-de4b0c1b.js";import{a as m}from"./a11y.tipps-786571db.js";import{I as v}from"./controller-icon-105c05dd.js";import"./hide-label-f059671e.js";import"./label-d69274a4.js";import"./events-2bb1065b.js";import"./tab-index-c779bf01.js";import"./associated.controller-90adea5d.js";import"./index-d56bfd0f.js";import"./icons-5b410219.js";const y=(t,e)=>{h(t,"_readOnly",e)};class b extends v{constructor(t,e,i){super(t,e,i),this.validateIso8601=(t,e,i)=>u(this.component,t,(t=>void 0===t||null==t||""===t||this.validateDateString(t)),new Set(["Date","string{ISO-8601}"]),this.tryParseToString(e),{hooks:{afterPatch:t=>{"string"==typeof t&&i&&i(t)}}}),this.component=t}validateAutoComplete(t){u(this.component,"_autoComplete",(t=>"string"==typeof t&&("on"===t||"off"===t)),new Set(["on | off"]),t)}validateHideError(t){o(this.component,t,{hooks:{afterPatch:()=>{this.component.state._hideError&&m("Property hide-error for inputs: Only use when the error message is shown outside of the input component.")}}})}validateList(){}validateSuggestions(t){f(this.component,t)}tryParseToString(t,e){const i=null!=t?t:e;if("string"==typeof i)return i;if("object"==typeof i&&i instanceof Date)switch(this.component._type){case"date":return`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`;case"datetime-local":return`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}T${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`;case"month":return`${i.getFullYear()}-${i.getMonth()+1}`;case"time":return void 0===this.component._step||"string"==typeof this.component._step&&"60"===this.component._step||"number"==typeof this.component._step&&60===this.component._step?`${i.getHours()}:${i.getMinutes()}`:`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`;case"week":throw new Error("Auto convert to week is not supported!")}return null===t?null:void 0}validateDateString(t){switch(this.component._type){case"date":return b.isoDateRegex.test(t);case"datetime-local":return b.isoLocalDateTimeRegex.test(t);case"month":return b.isoMonthRegex.test(t);case"time":return b.isoTimeRegex.test(t);case"week":return b.isoWeekRegex.test(t);default:return!1}}onChange(t){super.onChange(t),!!t.target.value!=!!this.component._value&&(this.component._value=t.target.value)}validateMax(t){u(this.component,"_max",(t=>void 0===t||null!==t&&this.validateDateString(t)),new Set(["Iso8601","Date"]),this.tryParseToString(t,"date"===this.component._type||"month"===this.component._type||"datetime-local"===this.component._type?b.DEFAULT_MAX_DATE:void 0))}validateMin(t){u(this.component,"_min",(t=>void 0===t||null!==t&&this.validateDateString(t)),new Set(["Iso8601","Date"]),this.tryParseToString(t))}validateOn(t){p(this.component,"_on",Object.assign(Object.assign({},t),{onChange:(e,i)=>{!!i!=!!this.component._value&&(this.component._value=i),(null==t?void 0:t.onChange)&&t.onChange(e,i)}}))}validateReadOnly(t){y(this.component,t)}validateRequired(t){h(this.component,"_required",t)}validateStep(t){c(this.component,"_step",t)}validateType(t){u(this.component,"_type",(t=>"string"==typeof t&&("date"===t||"datetime-local"===t||"month"===t||"number"===t||"time"===t||"week"===t)),new Set(["String {date, datetime-local, month, number, time, week}"]),t)}validateValue(t){this.validateValueEx(t)}validateValueEx(t,e){this.validateIso8601("_value",t,e),this.setFormAssociatedValue(this.component.state._value)}componentWillLoad(){super.componentWillLoad(),this.validateAutoComplete(this.component._autoComplete),this.validateMax(this.component._max),this.validateMin(this.component._min),this.validateHideError(this.component._hideError),this.validateLabel(this.component._label),this.validateSuggestions(this.component._suggestions||this.component._list),this.validateOn(this.component._on),this.validateReadOnly(this.component._readOnly),this.validateRequired(this.component._required),this.validateStep(this.component._step),this.validateType(this.component._type),this.validateValue(this.component._value)}}b.isoDateRegex=/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])/,b.isoLocalDateTimeRegex=/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])[T ][0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/,b.isoMonthRegex=/^\d{4}-([0]\d|1[0-2])/,b.isoTimeRegex=/^[0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/,b.isoWeekRegex=/^\d{4}-W(?:[0-4]\d|5[0-3])$/,b.DEFAULT_MAX_DATE=new Date(9999,11,31,23,59,59);const _=":host{--a11y-min-size:44px;font-family:Verdana}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role='button'],button:not([role='link']),kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}:host{max-width:100%}*{box-sizing:border-box}kol-span-wc{display:grid;place-items:center}kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}.icon-only>kol-span-wc>span>span{display:none}.required label>span::after,.required legend>span::after{content:'*'}:host{display:block}input,textarea{cursor:text}input[type='checkbox'],input[type='color'],input[type='file'],input[type='radio'],input[type='range'],label,option,select{cursor:pointer}input[type='color'],input[type='date'],input[type='datetime-local'],input[type='email'],input[type='file'],input[type='month'],input[type='number'],input[type='password'],input[type='search'],input[type='tel'],input[type='text'],input[type='time'],input[type='url'],input[type='week'],select,select[multiple] option,textarea{font-size:1rem;width:100%}input[type='file']{padding:calc((var(--a11y-min-size) - 1rem) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - 1rem) / 2) 0.5em}kol-input.disabled :is(button,input,label,option,select,textarea){cursor:not-allowed;opacity:0.5}kol-input{display:grid}kol-input .input-slot{flex-grow:1}input:not([type='checkbox'],[type='radio']),select:not([multiple],[size]){height:2.75em}input:focus,option:focus,select:focus,textarea:focus{outline:0}.input{display:flex;align-items:center}.input>kol-icon{display:grid;height:var(--a11y-min-size);place-items:center}kol-input.required .input-tooltip .span-label::after{content:'*'}kol-input-number{display:block}.error.hidden{display:none}",g=class{render(){const{ariaDescribedBy:i}=r(this.state),a=Array.isArray(this.state._suggestions)&&this.state._suggestions.length>0,s=d(this.state._label);return t(e,{class:{"has-value":this.state._hasValue}},t("kol-input",{class:{[this.state._type]:!0,"hide-label":!!this.state._hideLabel},_disabled:this.state._disabled,_error:this.state._error,_hideError:this.state._hideError,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_icons:this.state._icons,_id:this.state._id,_label:this.state._label,_suggestions:this.state._suggestions,_readOnly:this.state._readOnly,_required:this.state._required,_smartButton:this.state._smartButton,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched},t("span",{slot:"label"},s?t("slot",null):this.state._label),t("div",{slot:"input"},t("input",Object.assign({ref:this.catchRef,title:"",accessKey:this.state._accessKey,"aria-describedby":i.length>0?i.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,autoCapitalize:"off",autoComplete:this.state._autoComplete,autoCorrect:"off",disabled:this.state._disabled,id:this.state._id,list:a?`${this.state._id}-list`:void 0,max:this.state._max,min:this.state._min,name:this.state._name,readOnly:this.state._readOnly,required:this.state._required,step:this.state._step,spellcheck:"false",type:this.state._type,value:this.state._value},this.controller.onFacade,{onKeyUp:this.onKeyUp})))))}constructor(t){i(this,t),this.catchRef=t=>{this.ref=t,n(this.host,this.ref)},this.onKeyUp=t=>{"Enter"===t.code?l({form:this.host,ref:this.ref}):this.controller.onFacade.onChange(t)},this._accessKey=void 0,this._alert=!0,this._autoComplete=void 0,this._disabled=!1,this._error=void 0,this._hideError=!1,this._hideLabel=!1,this._hint="",this._icon=void 0,this._icons=void 0,this._id=void 0,this._label=void 0,this._list=void 0,this._max=void 0,this._min=void 0,this._name=void 0,this._on=void 0,this._readOnly=!1,this._required=!1,this._smartButton=void 0,this._suggestions=void 0,this._syncValueBySelector=void 0,this._step=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._type="date",this._value=void 0,this.state={_autoComplete:"off",_hasValue:!1,_hideError:!1,_id:`id-${a()}`,_label:"",_suggestions:[],_type:"datetime-local"},this.controller=new b(this,"input-date",this.host)}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAlert(t){this.controller.validateAlert(t)}validateAutoComplete(t){this.controller.validateAutoComplete(t)}validateDisabled(t){this.controller.validateDisabled(t)}validateError(t){this.controller.validateError(t)}validateHideError(t){this.controller.validateHideError(t)}validateHideLabel(t){this.controller.validateHideLabel(t)}validateHint(t){this.controller.validateHint(t)}validateIcon(t){this.validateIcons(t)}validateIcons(t){this.controller.validateIcons(t)}validateId(t){this.controller.validateId(t)}validateLabel(t){this.controller.validateLabel(t)}validateList(t){this.validateSuggestions(t)}validateMax(t){this.controller.validateMax(t)}validateMin(t){this.controller.validateMin(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validateReadOnly(t){this.controller.validateReadOnly(t)}validateRequired(t){this.controller.validateRequired(t)}validateSmartButton(t){this.controller.validateSmartButton(t)}validateSuggestions(t){this.controller.validateSuggestions(t)}validateStep(t){this.controller.validateStep(t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){this.controller.validateTabIndex(t)}validateTouched(t){this.controller.validateTouched(t)}validateType(t){this.controller.validateType(t)}validateValue(t){this.controller.validateValueEx(t,(t=>{""===t&&this.ref&&(this.ref.value="")}))}componentWillLoad(){this._alert=!0===this._alert,this._touched=!0===this._touched,this.controller.componentWillLoad(),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener((t=>this.state._hasValue=!!t))}get host(){return s(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_autoComplete:["validateAutoComplete"],_disabled:["validateDisabled"],_error:["validateError"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icon:["validateIcon"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_list:["validateList"],_max:["validateMax"],_min:["validateMin"],_name:["validateName"],_on:["validateOn"],_readOnly:["validateReadOnly"],_required:["validateRequired"],_smartButton:["validateSmartButton"],_suggestions:["validateSuggestions"],_step:["validateStep"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_type:["validateType"],_value:["validateValue"]}}};g.style={default:_};export{g as kol_input_date};
4
+ import{h as t,H as e,r as i,g as s}from"./index-5dfe6d77.js";import{n as a}from"./dev.utils-41a91551.js";import{a as n,s as l}from"./reuse-d79ab469.js";import{p as d}from"./controller-35567a81.js";import{g as o}from"./controller-c0324c56.js";import{a as r,w as h,s as u,e as p}from"./prop.validators-26c53e8e.js";import{v as c}from"./suggestions-cde6e476.js";import{I as f}from"./controller-icon-f6d5ee93.js";import"./a11y.tipps-b72d567f.js";import"./hide-label-a37738db.js";import"./label-3290121e.js";import"./events-fa760b68.js";import"./tab-index-b5f129ef.js";import"./associated.controller-e82ccadd.js";import"./index-b580aa97.js";import"./icons-70fec733.js";const m=(t,e)=>{r(t,"_readOnly",e)};class v extends f{constructor(t,e,i){super(t,e,i),this.validateIso8601=(t,e,i)=>h(this.component,t,(t=>void 0===t||null==t||""===t||this.validateDateString(t)),new Set(["Date","string{ISO-8601}"]),this.tryParseToString(e),{hooks:{afterPatch:t=>{"string"==typeof t&&i&&i(t)}}}),this.component=t}validateAutoComplete(t){h(this.component,"_autoComplete",(t=>"string"==typeof t&&("on"===t||"off"===t)),new Set(["on | off"]),t)}validateList(){}validateSuggestions(t){c(this.component,t)}tryParseToString(t,e){const i=null!=t?t:e;if("string"==typeof i)return i;if("object"==typeof i&&i instanceof Date)switch(this.component._type){case"date":return`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`;case"datetime-local":return`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}T${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`;case"month":return`${i.getFullYear()}-${i.getMonth()+1}`;case"time":return void 0===this.component._step||"string"==typeof this.component._step&&"60"===this.component._step||"number"==typeof this.component._step&&60===this.component._step?`${i.getHours()}:${i.getMinutes()}`:`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`;case"week":throw new Error("Auto convert to week is not supported!")}return null===t?null:void 0}validateDateString(t){switch(this.component._type){case"date":return v.isoDateRegex.test(t);case"datetime-local":return v.isoLocalDateTimeRegex.test(t);case"month":return v.isoMonthRegex.test(t);case"time":return v.isoTimeRegex.test(t);case"week":return v.isoWeekRegex.test(t);default:return!1}}onChange(t){super.onChange(t),!!t.target.value!=!!this.component._value&&(this.component._value=t.target.value)}validateMax(t){h(this.component,"_max",(t=>void 0===t||null!==t&&this.validateDateString(t)),new Set(["Iso8601","Date"]),this.tryParseToString(t,"date"===this.component._type||"month"===this.component._type||"datetime-local"===this.component._type?v.DEFAULT_MAX_DATE:void 0))}validateMin(t){h(this.component,"_min",(t=>void 0===t||null!==t&&this.validateDateString(t)),new Set(["Iso8601","Date"]),this.tryParseToString(t))}validateOn(t){u(this.component,"_on",Object.assign(Object.assign({},t),{onChange:(e,i)=>{!!i!=!!this.component._value&&(this.component._value=i),(null==t?void 0:t.onChange)&&t.onChange(e,i)}}))}validateReadOnly(t){m(this.component,t)}validateRequired(t){r(this.component,"_required",t)}validateStep(t){p(this.component,"_step",t)}validateType(t){h(this.component,"_type",(t=>"string"==typeof t&&("date"===t||"datetime-local"===t||"month"===t||"number"===t||"time"===t||"week"===t)),new Set(["String {date, datetime-local, month, number, time, week}"]),t)}validateValue(t){this.validateValueEx(t)}validateValueEx(t,e){this.validateIso8601("_value",t,e),this.setFormAssociatedValue(this.component.state._value)}componentWillLoad(){super.componentWillLoad(),this.validateAutoComplete(this.component._autoComplete),this.validateMax(this.component._max),this.validateMin(this.component._min),this.validateLabel(this.component._label),this.validateSuggestions(this.component._suggestions||this.component._list),this.validateOn(this.component._on),this.validateReadOnly(this.component._readOnly),this.validateRequired(this.component._required),this.validateStep(this.component._step),this.validateType(this.component._type),this.validateValue(this.component._value)}}v.isoDateRegex=/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])/,v.isoLocalDateTimeRegex=/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])[T ][0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/,v.isoMonthRegex=/^\d{4}-([0]\d|1[0-2])/,v.isoTimeRegex=/^[0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/,v.isoWeekRegex=/^\d{4}-W(?:[0-4]\d|5[0-3])$/,v.DEFAULT_MAX_DATE=new Date(9999,11,31,23,59,59);const y=":host{--a11y-min-size:44px;background-color:white;color:black;font-family:Verdana}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role='button'],button:not([role='link']),kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}[hidden]{display:none !important}:host{max-width:100%}*{box-sizing:border-box}kol-span-wc{display:grid;place-items:center}kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}.icon-only>kol-span-wc>span>span{display:none}.required label>span::after,.required legend>span::after{content:'*'}:host{display:block}input,textarea{cursor:text}input[type='checkbox'],input[type='color'],input[type='file'],input[type='radio'],input[type='range'],label,option,select{cursor:pointer}input[type='color'],input[type='date'],input[type='datetime-local'],input[type='email'],input[type='file'],input[type='month'],input[type='number'],input[type='password'],input[type='search'],input[type='tel'],input[type='text'],input[type='time'],input[type='url'],input[type='week'],select,select[multiple] option,textarea{font-size:1rem;width:100%}input[type='file']{padding:calc((var(--a11y-min-size) - 1rem) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - 1rem) / 2) 0.5em}kol-input.disabled :is(button,input,option,select,textarea,.input-label){cursor:not-allowed;opacity:0.5}kol-input{display:grid}kol-input .input-slot{flex-grow:1}input:not([type='checkbox'],[type='radio']),select:not([multiple],[size]){height:2.75em}input:focus,option:focus,select:focus,textarea:focus{outline:0}.input{display:flex;align-items:center}.input>kol-icon{display:grid;height:var(--a11y-min-size);place-items:center}kol-input.required .input-tooltip .span-label::after{content:'*'}kol-input-number{display:block}.error.hidden{display:none}",b=class{render(){const{ariaDescribedBy:i}=o(this.state),a=Array.isArray(this.state._suggestions)&&this.state._suggestions.length>0,s=l(this.state._label);return t(e,{class:{"has-value":this.state._hasValue}},t("kol-input",{class:{[this.state._type]:!0,"hide-label":!!this.state._hideLabel},_disabled:this.state._disabled,_error:this.state._error,_hideError:this.state._hideError,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_icons:this.state._icons,_id:this.state._id,_label:this.state._label,_suggestions:this.state._suggestions,_readOnly:this.state._readOnly,_required:this.state._required,_smartButton:this.state._smartButton,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched},t("span",{slot:"label"},s?t("slot",null):this.state._label),t("div",{slot:"input"},t("input",Object.assign({ref:this.catchRef,title:"",accessKey:this.state._accessKey,"aria-describedby":i.length>0?i.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,autoCapitalize:"off",autoComplete:this.state._autoComplete,autoCorrect:"off",disabled:this.state._disabled,id:this.state._id,list:a?`${this.state._id}-list`:void 0,max:this.state._max,min:this.state._min,name:this.state._name,readOnly:this.state._readOnly,required:this.state._required,step:this.state._step,spellcheck:"false",type:this.state._type,value:this.state._value},this.controller.onFacade,{onKeyUp:this.onKeyUp})))))}constructor(t){i(this,t),this.catchRef=t=>{this.ref=t,n(this.host,this.ref)},this.onKeyUp=t=>{"Enter"===t.code?d({form:this.host,ref:this.ref}):this.controller.onFacade.onChange(t)},this._accessKey=void 0,this._alert=!0,this._autoComplete=void 0,this._disabled=!1,this._error=void 0,this._hideError=!1,this._hideLabel=!1,this._hint="",this._icon=void 0,this._icons=void 0,this._id=void 0,this._label=void 0,this._list=void 0,this._max=void 0,this._min=void 0,this._name=void 0,this._on=void 0,this._readOnly=!1,this._required=!1,this._smartButton=void 0,this._suggestions=void 0,this._syncValueBySelector=void 0,this._step=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._type="date",this._value=void 0,this.state={_autoComplete:"off",_hasValue:!1,_hideError:!1,_id:`id-${a()}`,_label:"",_suggestions:[],_type:"datetime-local"},this.controller=new v(this,"input-date",this.host)}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAlert(t){this.controller.validateAlert(t)}validateAutoComplete(t){this.controller.validateAutoComplete(t)}validateDisabled(t){this.controller.validateDisabled(t)}validateError(t){this.controller.validateError(t)}validateHideError(t){this.controller.validateHideError(t)}validateHideLabel(t){this.controller.validateHideLabel(t)}validateHint(t){this.controller.validateHint(t)}validateIcon(t){this.validateIcons(t)}validateIcons(t){this.controller.validateIcons(t)}validateId(t){this.controller.validateId(t)}validateLabel(t){this.controller.validateLabel(t)}validateList(t){this.validateSuggestions(t)}validateMax(t){this.controller.validateMax(t)}validateMin(t){this.controller.validateMin(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validateReadOnly(t){this.controller.validateReadOnly(t)}validateRequired(t){this.controller.validateRequired(t)}validateSmartButton(t){this.controller.validateSmartButton(t)}validateSuggestions(t){this.controller.validateSuggestions(t)}validateStep(t){this.controller.validateStep(t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){this.controller.validateTabIndex(t)}validateTouched(t){this.controller.validateTouched(t)}validateType(t){this.controller.validateType(t)}validateValue(t){this.controller.validateValueEx(t,(t=>{""===t&&this.ref&&(this.ref.value="")}))}componentWillLoad(){this._alert=!0===this._alert,this._touched=!0===this._touched,this.controller.componentWillLoad(),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener((t=>this.state._hasValue=!!t))}get host(){return s(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_autoComplete:["validateAutoComplete"],_disabled:["validateDisabled"],_error:["validateError"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icon:["validateIcon"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_list:["validateList"],_max:["validateMax"],_min:["validateMin"],_name:["validateName"],_on:["validateOn"],_readOnly:["validateReadOnly"],_required:["validateRequired"],_smartButton:["validateSmartButton"],_suggestions:["validateSuggestions"],_step:["validateStep"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_type:["validateType"],_value:["validateValue"]}}};b.style={default:y};export{b as kol_input_date};
@@ -1 +1 @@
1
- {"version":3,"names":["validateReadOnly","component","value","watchBoolean","InputDateController","InputIconController","constructor","name","host","super","this","validateIso8601","propName","afterPatch","watchValidator","undefined","validateDateString","Set","tryParseToString","hooks","validateAutoComplete","validateHideError","state","_hideError","a11yHint","validateList","validateSuggestions","defaultValue","v","Date","_type","getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","_step","Error","isoDateRegex","test","isoLocalDateTimeRegex","isoMonthRegex","isoTimeRegex","isoWeekRegex","onChange","event","target","_value","validateMax","DEFAULT_MAX_DATE","validateMin","validateOn","setState","Object","assign","e","validateRequired","validateStep","watchNumber","validateType","validateValue","validateValueEx","setFormAssociatedValue","componentWillLoad","_autoComplete","_max","_min","validateLabel","_label","_suggestions","_list","_on","_readOnly","_required","defaultStyleCss","KolInputDate","render","ariaDescribedBy","getRenderStates","hasSuggestions","Array","isArray","length","hasExpertSlot","showExpertSlot","h","Host","class","_hasValue","_hideLabel","_disabled","_error","_hint","_icons","_id","_smartButton","_tooltipAlign","_touched","slot","ref","catchRef","title","accessKey","_accessKey","join","autoCapitalize","autoComplete","autoCorrect","disabled","id","list","max","min","_name","readOnly","required","step","spellcheck","type","controller","onFacade","onKeyUp","hostRef","propagateFocus","code","propagateSubmitEventToForm","form","nonce","validateAccessKey","validateAlert","validateDisabled","validateError","validateHideLabel","validateHint","validateIcon","validateIcons","validateId","validateName","validateSmartButton","validateSyncValueBySelector","validateTabIndex","validateTouched","_alert","addValueChangeListener"],"sources":["src/types/props/read-only.ts","src/components/input-date/controller.ts","src/components/input-date/style.css?tag=kol-input-date&mode=default&encapsulation=shadow","src/components/input-date/component.tsx"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { watchBoolean } from '../../utils/prop.validators';\n\n/* types */\nexport type ReadOnlyPropType = boolean;\n\n/**\n * Makes the input element read only.\n */\nexport type PropReadOnly = {\n\treadOnly: ReadOnlyPropType;\n};\n\n/* validator */\nexport const validateReadOnly = (component: Generic.Element.Component, value?: ReadOnlyPropType): void => {\n\twatchBoolean(component, '_readOnly', value);\n};\n","import { Generic } from '@a11y-ui/core';\n\nimport { InputNumberType } from '../../types/input/control/number';\nimport { Iso8601 } from '../../types/input/iso8601';\nimport { InputTypeOnDefault, InputTypeOnOff } from '../../types/input/types';\nimport { HideErrorPropType, validateHideError } from '../../types/props/hide-error';\nimport { ReadOnlyPropType, validateReadOnly } from '../../types/props/read-only';\nimport { SuggestionsPropType, validateSuggestions } from '../../types/props/suggestions';\nimport { a11yHint } from '../../utils/a11y.tipps';\nimport { setState, watchBoolean, watchNumber, watchValidator } from '../../utils/prop.validators';\nimport { InputIconController } from '../@deprecated/input/controller-icon';\nimport { Props, Watches } from './types';\n\nexport class InputDateController extends InputIconController implements Watches {\n\t// test: https://regex101.com/r/NTVh4L/1\n\tprivate static readonly isoDateRegex = /^\\d{4}-([0]\\d|1[0-2])-([0-2]\\d|3[01])/;\n\tprivate static readonly isoLocalDateTimeRegex = /^\\d{4}-([0]\\d|1[0-2])-([0-2]\\d|3[01])[T ][0-2]\\d:[0-5]\\d(:[0-5]\\d(?:\\.\\d+)?)?/;\n\tprivate static readonly isoMonthRegex = /^\\d{4}-([0]\\d|1[0-2])/;\n\tprivate static readonly isoTimeRegex = /^[0-2]\\d:[0-5]\\d(:[0-5]\\d(?:\\.\\d+)?)?/;\n\tprivate static readonly isoWeekRegex = /^\\d{4}-W(?:[0-4]\\d|5[0-3])$/;\n\n\tprivate static readonly DEFAULT_MAX_DATE = new Date(9999, 11, 31, 23, 59, 59);\n\n\tprotected readonly component: Generic.Element.Component & Props;\n\n\tpublic constructor(component: Generic.Element.Component & Props, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateAutoComplete(value?: InputTypeOnOff): void {\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_autoComplete',\n\t\t\t(value): boolean => typeof value === 'string' && (value === 'on' || value === 'off'),\n\t\t\tnew Set(['on | off']),\n\t\t\tvalue\n\t\t);\n\t}\n\n\tpublic validateHideError(value?: HideErrorPropType): void {\n\t\tvalidateHideError(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: () => {\n\t\t\t\t\tif (this.component.state._hideError) {\n\t\t\t\t\t\ta11yHint('Property hide-error for inputs: Only use when the error message is shown outside of the input component.');\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t}\n\n\t/**\n\t * @deprecated remains to satisfy `Watches` interface\n\t */\n\t// eslint-disable-next-line @typescript-eslint/no-empty-function\n\tpublic validateList(): void {}\n\n\tpublic validateSuggestions(value?: SuggestionsPropType): void {\n\t\tvalidateSuggestions(this.component, value);\n\t}\n\n\tprivate tryParseToString(value?: Iso8601 | Date | null, defaultValue?: Date): string | null | undefined {\n\t\tconst v: Iso8601 | Date | undefined = value ?? defaultValue;\n\t\tif (typeof v === 'string') {\n\t\t\treturn v;\n\t\t}\n\t\tif (typeof v === 'object' && v instanceof Date) {\n\t\t\tswitch (this.component._type) {\n\t\t\t\tcase 'date':\n\t\t\t\t\treturn `${v.getFullYear()}-${v.getMonth() + 1}-${v.getDate()}`;\n\t\t\t\tcase 'datetime-local':\n\t\t\t\t\treturn `${v.getFullYear()}-${v.getMonth() + 1}-${v.getDate()}T${v.getHours()}:${v.getMinutes()}:${v.getSeconds()}`;\n\t\t\t\tcase 'month':\n\t\t\t\t\treturn `${v.getFullYear()}-${v.getMonth() + 1}`;\n\t\t\t\tcase 'time':\n\t\t\t\t\t// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/time#using_the_step_attribute\n\t\t\t\t\tif (\n\t\t\t\t\t\tthis.component._step === undefined ||\n\t\t\t\t\t\t(typeof this.component._step === 'string' && this.component._step === '60') ||\n\t\t\t\t\t\t(typeof this.component._step === 'number' && this.component._step === 60)\n\t\t\t\t\t) {\n\t\t\t\t\t\treturn `${v.getHours()}:${v.getMinutes()}`;\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn `${v.getHours()}:${v.getMinutes()}:${v.getSeconds()}`;\n\t\t\t\t\t}\n\t\t\t\tcase 'week':\n\t\t\t\t\tthrow new Error('Auto convert to week is not supported!');\n\t\t\t}\n\t\t}\n\t\tif (value === null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn undefined;\n\t}\n\n\tprivate validateDateString(value: string): boolean {\n\t\tswitch (this.component._type) {\n\t\t\tcase 'date':\n\t\t\t\treturn InputDateController.isoDateRegex.test(value);\n\t\t\tcase 'datetime-local':\n\t\t\t\treturn InputDateController.isoLocalDateTimeRegex.test(value);\n\t\t\tcase 'month':\n\t\t\t\treturn InputDateController.isoMonthRegex.test(value);\n\t\t\tcase 'time':\n\t\t\t\treturn InputDateController.isoTimeRegex.test(value);\n\t\t\tcase 'week':\n\t\t\t\treturn InputDateController.isoWeekRegex.test(value);\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t}\n\t}\n\n\tprivate readonly validateIso8601 = (propName: string, value?: Date | Iso8601 | null, afterPatch?: (v: string) => void) => {\n\t\treturn watchValidator(\n\t\t\tthis.component,\n\t\t\tpropName,\n\t\t\t(value): boolean => value === undefined || value == null || value === '' || this.validateDateString(value),\n\t\t\tnew Set(['Date', 'string{ISO-8601}']),\n\t\t\tthis.tryParseToString(value),\n\t\t\t{\n\t\t\t\thooks: {\n\t\t\t\t\tafterPatch: (value) => {\n\t\t\t\t\t\tif (typeof value === 'string' && afterPatch) {\n\t\t\t\t\t\t\tafterPatch(value);\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t}\n\t\t);\n\t};\n\n\tprotected onChange(event: Event): void {\n\t\tsuper.onChange(event);\n\n\t\t// set the value here when the value is switched between blank and set (or vice versa) to enable value resets via setting null as value.\n\t\tif (!!(event.target as HTMLInputElement).value !== !!this.component._value) {\n\t\t\tthis.component._value = (event.target as HTMLInputElement).value as Iso8601;\n\t\t}\n\t}\n\n\tpublic validateMax(value?: Iso8601 | Date): void {\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_max',\n\t\t\t(value): boolean => value === undefined || (value !== null && this.validateDateString(value)),\n\t\t\tnew Set(['Iso8601', 'Date']),\n\t\t\tthis.tryParseToString(\n\t\t\t\tvalue,\n\t\t\t\tthis.component._type === 'date' || this.component._type === 'month' || this.component._type === 'datetime-local'\n\t\t\t\t\t? InputDateController.DEFAULT_MAX_DATE\n\t\t\t\t\t: undefined\n\t\t\t)\n\t\t);\n\t}\n\n\tpublic validateMin(value?: Iso8601 | Date): void {\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_min',\n\t\t\t(value): boolean => value === undefined || (value !== null && this.validateDateString(value)),\n\t\t\tnew Set(['Iso8601', 'Date']),\n\t\t\tthis.tryParseToString(value)\n\t\t);\n\t}\n\n\tpublic validateOn(value?: InputTypeOnDefault) {\n\t\tsetState(this.component, '_on', {\n\t\t\t...value,\n\t\t\tonChange: (e: Event, v: unknown) => {\n\t\t\t\t// set the value here when the value is switched between blank and set (or vice versa) to enable value resets via setting null as value.\n\t\t\t\tif (!!v !== !!this.component._value) {\n\t\t\t\t\tthis.component._value = v as Iso8601;\n\t\t\t\t}\n\n\t\t\t\tif (value?.onChange) {\n\t\t\t\t\tvalue.onChange(e, v);\n\t\t\t\t}\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic validateReadOnly(value?: ReadOnlyPropType): void {\n\t\tvalidateReadOnly(this.component, value);\n\t}\n\n\tpublic validateRequired(value?: boolean): void {\n\t\twatchBoolean(this.component, '_required', value);\n\t}\n\n\tpublic validateStep(value?: number): void {\n\t\twatchNumber(this.component, '_step', value);\n\t}\n\n\tpublic validateType(value?: InputNumberType): void {\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_type',\n\t\t\t(value): boolean =>\n\t\t\t\ttypeof value === 'string' &&\n\t\t\t\t(value === 'date' || value === 'datetime-local' || value === 'month' || value === 'number' || value === 'time' || value === 'week'),\n\t\t\tnew Set(['String {date, datetime-local, month, number, time, week}']),\n\t\t\tvalue\n\t\t);\n\t}\n\n\tpublic validateValue(value?: Iso8601 | Date | null): void {\n\t\tthis.validateValueEx(value);\n\t}\n\n\t/**\n\t * Overload of validate value. Extends by an after patch callback function.\n\t */\n\tpublic validateValueEx(value?: Iso8601 | Date | null, afterPatch?: (v: string) => void): void {\n\t\tthis.validateIso8601('_value', value, afterPatch);\n\t\tthis.setFormAssociatedValue(this.component.state._value as string);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateAutoComplete(this.component._autoComplete);\n\t\tthis.validateMax(this.component._max);\n\t\tthis.validateMin(this.component._min);\n\t\tthis.validateHideError(this.component._hideError);\n\t\tthis.validateLabel(this.component._label);\n\t\tthis.validateSuggestions(this.component._suggestions || this.component._list);\n\t\tthis.validateOn(this.component._on);\n\t\tthis.validateReadOnly(this.component._readOnly);\n\t\tthis.validateRequired(this.component._required);\n\t\tthis.validateStep(this.component._step);\n\t\tthis.validateType(this.component._type);\n\t\tthis.validateValue(this.component._value);\n\t}\n}\n","@import url(../input-line.css);\nkol-input-number {\n\tdisplay: block;\n}\n.error.hidden {\n\tdisplay: none;\n}\n","import { Component, Element, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { Stringified } from '../../types/common';\nimport { KoliBriHorizontalIcons } from '../../types/icons';\nimport { InputDateType } from '../../types/input/control/number';\nimport { Iso8601 } from '../../types/input/iso8601';\nimport { InputTypeOnDefault, InputTypeOnOff } from '../../types/input/types';\nimport { HideErrorPropType } from '../../types/props/hide-error';\nimport { IdPropType } from '../../types/props/id';\nimport { LabelWithExpertSlotPropType } from '../../types/props/label';\nimport { NamePropType } from '../../types/props/name';\nimport { ReadOnlyPropType } from '../../types/props/read-only';\nimport { SuggestionsPropType } from '../../types/props/suggestions';\nimport { SyncValueBySelectorPropType } from '../../types/props/sync-value-by-selector';\nimport { TooltipAlignPropType } from '../../types/props/tooltip-align';\nimport { nonce } from '../../utils/dev.utils';\nimport { propagateFocus, showExpertSlot } from '../../utils/reuse';\nimport { Props as ButtonProps } from '../button/types';\nimport { propagateSubmitEventToForm } from '../form/controller';\nimport { getRenderStates } from '../input/controller';\nimport { InputDateController } from './controller';\nimport { ComponentApi, States } from './types';\n\n/**\n * @slot - Die Beschriftung des Eingabefeldes.\n */\n@Component({\n\ttag: 'kol-input-date',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolInputDate implements ComponentApi {\n\t@Element() private readonly host?: HTMLKolInputDateElement;\n\tprivate ref?: HTMLInputElement;\n\n\tprivate readonly catchRef = (ref?: HTMLInputElement) => {\n\t\tthis.ref = ref;\n\t\tpropagateFocus(this.host, this.ref);\n\t};\n\n\tprivate readonly onKeyUp = (event: KeyboardEvent) => {\n\t\tif (event.code === 'Enter') {\n\t\t\tpropagateSubmitEventToForm({\n\t\t\t\tform: this.host,\n\t\t\t\tref: this.ref,\n\t\t\t});\n\t\t} else {\n\t\t\tthis.controller.onFacade.onChange(event);\n\t\t}\n\t};\n\n\tpublic render(): JSX.Element {\n\t\tconst { ariaDescribedBy } = getRenderStates(this.state);\n\t\tconst hasSuggestions = Array.isArray(this.state._suggestions) && this.state._suggestions.length > 0;\n\t\tconst hasExpertSlot = showExpertSlot(this.state._label);\n\n\t\treturn (\n\t\t\t<Host class={{ 'has-value': this.state._hasValue }}>\n\t\t\t\t<kol-input\n\t\t\t\t\tclass={{\n\t\t\t\t\t\t[this.state._type]: true,\n\t\t\t\t\t\t'hide-label': !!this.state._hideLabel,\n\t\t\t\t\t}}\n\t\t\t\t\t_disabled={this.state._disabled}\n\t\t\t\t\t_error={this.state._error}\n\t\t\t\t\t_hideError={this.state._hideError}\n\t\t\t\t\t_hideLabel={this.state._hideLabel}\n\t\t\t\t\t_hint={this.state._hint}\n\t\t\t\t\t_icons={this.state._icons}\n\t\t\t\t\t_id={this.state._id}\n\t\t\t\t\t_label={this.state._label}\n\t\t\t\t\t_suggestions={this.state._suggestions}\n\t\t\t\t\t_readOnly={this.state._readOnly}\n\t\t\t\t\t_required={this.state._required}\n\t\t\t\t\t_smartButton={this.state._smartButton}\n\t\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t\t_touched={this.state._touched}\n\t\t\t\t>\n\t\t\t\t\t{/* TODO: der folgende Slot ohne Name muss später entfernt werden */}\n\t\t\t\t\t<span slot=\"label\">{hasExpertSlot ? <slot></slot> : this.state._label}</span>\n\t\t\t\t\t<div slot=\"input\">\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\t\t\ttitle=\"\"\n\t\t\t\t\t\t\taccessKey={this.state._accessKey}\n\t\t\t\t\t\t\taria-describedby={ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined}\n\t\t\t\t\t\t\taria-label={this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined}\n\t\t\t\t\t\t\tautoCapitalize=\"off\"\n\t\t\t\t\t\t\tautoComplete={this.state._autoComplete}\n\t\t\t\t\t\t\tautoCorrect=\"off\"\n\t\t\t\t\t\t\tdisabled={this.state._disabled}\n\t\t\t\t\t\t\tid={this.state._id}\n\t\t\t\t\t\t\tlist={hasSuggestions ? `${this.state._id}-list` : undefined}\n\t\t\t\t\t\t\tmax={this.state._max}\n\t\t\t\t\t\t\tmin={this.state._min}\n\t\t\t\t\t\t\tname={this.state._name}\n\t\t\t\t\t\t\treadOnly={this.state._readOnly}\n\t\t\t\t\t\t\trequired={this.state._required}\n\t\t\t\t\t\t\tstep={this.state._step}\n\t\t\t\t\t\t\tspellcheck=\"false\"\n\t\t\t\t\t\t\ttype={this.state._type}\n\t\t\t\t\t\t\tvalue={this.state._value as string}\n\t\t\t\t\t\t\t{...this.controller.onFacade}\n\t\t\t\t\t\t\tonKeyUp={this.onKeyUp}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t</kol-input>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate readonly controller: InputDateController;\n\n\t/**\n\t * Defines which key combination can be used to trigger or focus the interactive element of the component.\n\t */\n\t@Prop() public _accessKey?: string;\n\n\t/**\n\t * Defines whether the screen-readers should read out the notification.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _alert?: boolean = true;\n\n\t/**\n\t * Defines whether the input can be auto-completed.\n\t */\n\t@Prop() public _autoComplete?: InputTypeOnOff;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t * @TODO: Change type back to `DisabledPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Defines the error message text.\n\t */\n\t@Prop() public _error?: string;\n\n\t/**\n\t * Hides the error message but leaves it in the DOM for the input's aria-describedby.\n\t * @TODO: Change type back to `HideErrorPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _hideError?: boolean = false;\n\n\t/**\n\t * Hides the caption by default and displays the caption text with a tooltip when the\n\t * interactive element is focused or the mouse is over it.\n\t * @TODO: Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hideLabel?: boolean = false;\n\n\t/**\n\t * Defines the hint text.\n\t */\n\t@Prop() public _hint?: string = '';\n\n\t/**\n\t * @deprecated Use _icons.\n\t */\n\t@Prop() public _icon?: Stringified<KoliBriHorizontalIcons>; /**\n\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: Stringified<KoliBriHorizontalIcons>;\n\n\t/**\n\t * Defines the internal ID of the primary component element.\n\t */\n\t@Prop() public _id?: IdPropType;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label?: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Deprecated: Gibt die Liste der Vorschlagszahlen an.\n\t * @deprecated Use _suggestions instead.\n\t */\n\t@Prop() public _list?: Stringified<string[]>;\n\n\t/**\n\t * Defines the largest possible input value.\n\t */\n\t@Prop() public _max?: Iso8601 | Date;\n\n\t/**\n\t * Defines the smallest possible input value.\n\t */\n\t@Prop() public _min?: Iso8601 | Date;\n\n\t/**\n\t * Defines the technical name of an input field.\n\t */\n\t@Prop() public _name?: NamePropType;\n\n\t/**\n\t * Gibt die EventCallback-Funktionen für das Input-Event an.\n\t */\n\t@Prop() public _on?: InputTypeOnDefault;\n\n\t/**\n\t * Makes the input element read only.\n\t * @TODO: Change type back to `ReadOnlyPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _readOnly?: boolean = false;\n\n\t/**\n\t * Makes the input element required.\n\t * @TODO: Change type back to `RequiredPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _required?: boolean = false;\n\n\t/**\n\t * Allows to add a button with an arbitrary action within the element (_hide-label only).\n\t */\n\t@Prop() public _smartButton?: Stringified<ButtonProps>;\n\n\t/**\n\t * Suggestions to provide for the input.\n\t */\n\t@Prop() public _suggestions?: SuggestionsPropType;\n\n\t/**\n\t * Selector for synchronizing the value with another input element.\n\t * @internal\n\t */\n\t@Prop() public _syncValueBySelector?: SyncValueBySelectorPropType;\n\n\t/**\n\t * Defines the step size for value changes.\n\t */\n\t@Prop() public _step?: number;\n\n\t/**\n\t * Defines which tab-index the primary element of the component has. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)\n\t */\n\t@Prop() public _tabIndex?: number;\n\n\t/**\n\t * Defines where to show the Tooltip preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _tooltipAlign?: TooltipAlignPropType = 'top';\n\n\t/**\n\t * Shows if the input was touched by a user.\n\t * @TODO: Change type back to `TouchedPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _touched?: boolean = false;\n\n\t/**\n\t * Defines either the type of the component or of the components interactive element.\n\t */\n\t@Prop() public _type: InputDateType = 'date';\n\n\t/**\n\t * Defines the value of the input.\n\t */\n\t@Prop({ mutable: true }) public _value?: Iso8601 | Date | null;\n\n\t@State() public state: States = {\n\t\t_autoComplete: 'off',\n\t\t_hasValue: false,\n\t\t_hideError: false,\n\t\t_id: `id-${nonce()}`, // ⚠ required\n\t\t_label: '', // ⚠ required\n\t\t_suggestions: [],\n\t\t_type: 'datetime-local',\n\t};\n\n\tpublic constructor() {\n\t\tthis.controller = new InputDateController(this, 'input-date', this.host);\n\t}\n\n\t@Watch('_accessKey')\n\tpublic validateAccessKey(value?: string): void {\n\t\tthis.controller.validateAccessKey(value);\n\t}\n\n\t@Watch('_alert')\n\tpublic validateAlert(value?: boolean): void {\n\t\tthis.controller.validateAlert(value);\n\t}\n\n\t@Watch('_autoComplete')\n\tpublic validateAutoComplete(value?: InputTypeOnOff): void {\n\t\tthis.controller.validateAutoComplete(value);\n\t}\n\n\t@Watch('_disabled')\n\tpublic validateDisabled(value?: boolean): void {\n\t\tthis.controller.validateDisabled(value);\n\t}\n\n\t@Watch('_error')\n\tpublic validateError(value?: string): void {\n\t\tthis.controller.validateError(value);\n\t}\n\n\t@Watch('_hideError')\n\tpublic validateHideError(value?: HideErrorPropType): void {\n\t\tthis.controller.validateHideError(value);\n\t}\n\n\t@Watch('_hideLabel')\n\tpublic validateHideLabel(value?: boolean): void {\n\t\tthis.controller.validateHideLabel(value);\n\t}\n\n\t@Watch('_hint')\n\tpublic validateHint(value?: string): void {\n\t\tthis.controller.validateHint(value);\n\t}\n\n\t@Watch('_icon')\n\tpublic validateIcon(value?: Stringified<KoliBriHorizontalIcons>): void {\n\t\tthis.validateIcons(value);\n\t}\n\n\t@Watch('_icons')\n\tpublic validateIcons(value?: Stringified<KoliBriHorizontalIcons>): void {\n\t\tthis.controller.validateIcons(value);\n\t}\n\n\t@Watch('_id')\n\tpublic validateId(value?: string): void {\n\t\tthis.controller.validateId(value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelWithExpertSlotPropType): void {\n\t\tthis.controller.validateLabel(value);\n\t}\n\n\t@Watch('_list')\n\tpublic validateList(value?: Stringified<string[]>): void {\n\t\tthis.validateSuggestions(value);\n\t}\n\n\t@Watch('_max')\n\tpublic validateMax(value?: Iso8601 | Date): void {\n\t\tthis.controller.validateMax(value);\n\t}\n\n\t@Watch('_min')\n\tpublic validateMin(value?: Iso8601 | Date): void {\n\t\tthis.controller.validateMin(value);\n\t}\n\n\t@Watch('_name')\n\tpublic validateName(value?: string): void {\n\t\tthis.controller.validateName(value);\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(value?: InputTypeOnDefault): void {\n\t\tthis.controller.validateOn(value);\n\t}\n\n\t@Watch('_readOnly')\n\tpublic validateReadOnly(value?: ReadOnlyPropType): void {\n\t\tthis.controller.validateReadOnly(value);\n\t}\n\n\t@Watch('_required')\n\tpublic validateRequired(value?: boolean): void {\n\t\tthis.controller.validateRequired(value);\n\t}\n\n\t@Watch('_smartButton')\n\tpublic validateSmartButton(value?: ButtonProps | string): void {\n\t\tthis.controller.validateSmartButton(value);\n\t}\n\n\t@Watch('_suggestions')\n\tpublic validateSuggestions(value?: SuggestionsPropType): void {\n\t\tthis.controller.validateSuggestions(value);\n\t}\n\n\t@Watch('_step')\n\tpublic validateStep(value?: number): void {\n\t\tthis.controller.validateStep(value);\n\t}\n\n\t@Watch('_syncValueBySelector')\n\tpublic validateSyncValueBySelector(value?: SyncValueBySelectorPropType): void {\n\t\tthis.controller.validateSyncValueBySelector(value);\n\t}\n\n\t@Watch('_tabIndex')\n\tpublic validateTabIndex(value?: number): void {\n\t\tthis.controller.validateTabIndex(value);\n\t}\n\n\t@Watch('_touched')\n\tpublic validateTouched(value?: boolean): void {\n\t\tthis.controller.validateTouched(value);\n\t}\n\n\t@Watch('_type')\n\tpublic validateType(value?: InputDateType): void {\n\t\tthis.controller.validateType(value);\n\t}\n\n\t@Watch('_value')\n\tpublic validateValue(value?: Iso8601 | Date | null): void {\n\t\tthis.controller.validateValueEx(value, (v) => {\n\t\t\tif (v === '' && this.ref) {\n\t\t\t\tthis.ref.value = '';\n\t\t\t}\n\t\t});\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis._alert = this._alert === true;\n\t\tthis._touched = this._touched === true;\n\t\tthis.controller.componentWillLoad();\n\n\t\tthis.state._hasValue = !!this.state._value;\n\t\tthis.controller.addValueChangeListener((v) => (this.state._hasValue = !!v));\n\t}\n}\n"],"mappings":";;;2qBAeO,MAAMA,EAAmB,CAACC,EAAsCC,KACtEC,EAAaF,EAAW,YAAaC,EAAM,E,MCH/BE,UAA4B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AAWpE,WAAWlD,E,CAIrB,gBAAAF,CAAiBE,GACvBQ,KAAK8G,WAAWxH,iBAAiBE,E,CAI3B,gBAAAuD,CAAiBvD,GACvBQ,KAAK8G,WAAW/D,iBAAiBvD,E,CAI3B,mBAAAyI,CAAoBzI,GAC1BQ,KAAK8G,WAAWmB,oBAAoBzI,E,CAI9B,mBAAAwB,CAAoBxB,GAC1BQ,KAAK8G,WAAW9F,oBAAoBxB,E,CAI9B,YAAAwD,CAAaxD,GACnBQ,KAAK8G,WAAW9D,aAAaxD,E,CAIvB,2BAAA0I,CAA4B1I,GAClCQ,KAAK8G,WAAWoB,4BAA4B1I,E,CAItC,gBAAA2I,CAAiB3I,GACvBQ,KAAK8G,WAAWqB,iBAAiB3I,E,CAI3B,eAAA4I,CAAgB5I,GACtBQ,KAAK8G,WAAWsB,gBAAgB5I,E,CAI1B,YAAA0D,CAAa1D,GACnBQ,KAAK8G,WAAW5D,aAAa1D,E,CAIvB,aAAA2D,CAAc3D,GACpBQ,KAAK8G,WAAW1D,gBAAgB5D,GAAQ0B,IACvC,GAAIA,IAAM,IAAMlB,KAAK0F,IAAK,CACzB1F,KAAK0F,IAAIlG,MAAQ,E,KAKb,iBAAA8D,GACNtD,KAAKqI,OAASrI,KAAKqI,SAAW,KAC9BrI,KAAKwF,SAAWxF,KAAKwF,WAAa,KAClCxF,KAAK8G,WAAWxD,oBAEhBtD,KAAKY,MAAMmE,YAAc/E,KAAKY,MAAM0B,OACpCtC,KAAK8G,WAAWwB,wBAAwBpH,GAAOlB,KAAKY,MAAMmE,YAAc7D,G"}
1
+ {"version":3,"names":["validateReadOnly","component","value","watchBoolean","InputDateController","InputIconController","constructor","name","host","super","this","validateIso8601","propName","afterPatch","watchValidator","undefined","validateDateString","Set","tryParseToString","hooks","validateAutoComplete","validateList","validateSuggestions","defaultValue","v","Date","_type","getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","_step","Error","isoDateRegex","test","isoLocalDateTimeRegex","isoMonthRegex","isoTimeRegex","isoWeekRegex","onChange","event","target","_value","validateMax","DEFAULT_MAX_DATE","validateMin","validateOn","setState","Object","assign","e","validateRequired","validateStep","watchNumber","validateType","validateValue","validateValueEx","setFormAssociatedValue","state","componentWillLoad","_autoComplete","_max","_min","validateLabel","_label","_suggestions","_list","_on","_readOnly","_required","defaultStyleCss","KolInputDate","render","ariaDescribedBy","getRenderStates","hasSuggestions","Array","isArray","length","hasExpertSlot","showExpertSlot","h","Host","class","_hasValue","_hideLabel","_disabled","_error","_hideError","_hint","_icons","_id","_smartButton","_tooltipAlign","_touched","slot","ref","catchRef","title","accessKey","_accessKey","join","autoCapitalize","autoComplete","autoCorrect","disabled","id","list","max","min","_name","readOnly","required","step","spellcheck","type","controller","onFacade","onKeyUp","hostRef","propagateFocus","code","propagateSubmitEventToForm","form","nonce","validateAccessKey","validateAlert","validateDisabled","validateError","validateHideError","validateHideLabel","validateHint","validateIcon","validateIcons","validateId","validateName","validateSmartButton","validateSyncValueBySelector","validateTabIndex","validateTouched","_alert","addValueChangeListener"],"sources":["src/types/props/read-only.ts","src/components/input-date/controller.ts","src/components/input-date/style.css?tag=kol-input-date&mode=default&encapsulation=shadow","src/components/input-date/component.tsx"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchBoolean } from '../../utils/prop.validators';\n\n/* types */\nexport type ReadOnlyPropType = boolean;\n\n/**\n * Makes the input element read only.\n */\nexport type PropReadOnly = {\n\treadOnly: ReadOnlyPropType;\n};\n\n/* validator */\nexport const validateReadOnly = (component: Generic.Element.Component, value?: ReadOnlyPropType): void => {\n\twatchBoolean(component, '_readOnly', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { InputNumberType } from '../../types/input/control/number';\nimport { Iso8601 } from '../../types/input/iso8601';\nimport { InputTypeOnDefault, InputTypeOnOff } from '../../types/input/types';\nimport { ReadOnlyPropType, validateReadOnly } from '../../types/props/read-only';\nimport { SuggestionsPropType, validateSuggestions } from '../../types/props/suggestions';\nimport { setState, watchBoolean, watchNumber, watchValidator } from '../../utils/prop.validators';\nimport { InputIconController } from '../@deprecated/input/controller-icon';\nimport { Props, Watches } from './types';\n\nexport class InputDateController extends InputIconController implements Watches {\n\t// test: https://regex101.com/r/NTVh4L/1\n\tprivate static readonly isoDateRegex = /^\\d{4}-([0]\\d|1[0-2])-([0-2]\\d|3[01])/;\n\tprivate static readonly isoLocalDateTimeRegex = /^\\d{4}-([0]\\d|1[0-2])-([0-2]\\d|3[01])[T ][0-2]\\d:[0-5]\\d(:[0-5]\\d(?:\\.\\d+)?)?/;\n\tprivate static readonly isoMonthRegex = /^\\d{4}-([0]\\d|1[0-2])/;\n\tprivate static readonly isoTimeRegex = /^[0-2]\\d:[0-5]\\d(:[0-5]\\d(?:\\.\\d+)?)?/;\n\tprivate static readonly isoWeekRegex = /^\\d{4}-W(?:[0-4]\\d|5[0-3])$/;\n\n\tprivate static readonly DEFAULT_MAX_DATE = new Date(9999, 11, 31, 23, 59, 59);\n\n\tprotected readonly component: Generic.Element.Component & Props;\n\n\tpublic constructor(component: Generic.Element.Component & Props, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateAutoComplete(value?: InputTypeOnOff): void {\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_autoComplete',\n\t\t\t(value): boolean => typeof value === 'string' && (value === 'on' || value === 'off'),\n\t\t\tnew Set(['on | off']),\n\t\t\tvalue\n\t\t);\n\t}\n\n\t/**\n\t * @deprecated remains to satisfy `Watches` interface\n\t */\n\t// eslint-disable-next-line @typescript-eslint/no-empty-function\n\tpublic validateList(): void {}\n\n\tpublic validateSuggestions(value?: SuggestionsPropType): void {\n\t\tvalidateSuggestions(this.component, value);\n\t}\n\n\tprivate tryParseToString(value?: Iso8601 | Date | null, defaultValue?: Date): string | null | undefined {\n\t\tconst v: Iso8601 | Date | undefined = value ?? defaultValue;\n\t\tif (typeof v === 'string') {\n\t\t\treturn v;\n\t\t}\n\t\tif (typeof v === 'object' && v instanceof Date) {\n\t\t\tswitch (this.component._type) {\n\t\t\t\tcase 'date':\n\t\t\t\t\treturn `${v.getFullYear()}-${v.getMonth() + 1}-${v.getDate()}`;\n\t\t\t\tcase 'datetime-local':\n\t\t\t\t\treturn `${v.getFullYear()}-${v.getMonth() + 1}-${v.getDate()}T${v.getHours()}:${v.getMinutes()}:${v.getSeconds()}`;\n\t\t\t\tcase 'month':\n\t\t\t\t\treturn `${v.getFullYear()}-${v.getMonth() + 1}`;\n\t\t\t\tcase 'time':\n\t\t\t\t\t// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/time#using_the_step_attribute\n\t\t\t\t\tif (\n\t\t\t\t\t\tthis.component._step === undefined ||\n\t\t\t\t\t\t(typeof this.component._step === 'string' && this.component._step === '60') ||\n\t\t\t\t\t\t(typeof this.component._step === 'number' && this.component._step === 60)\n\t\t\t\t\t) {\n\t\t\t\t\t\treturn `${v.getHours()}:${v.getMinutes()}`;\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn `${v.getHours()}:${v.getMinutes()}:${v.getSeconds()}`;\n\t\t\t\t\t}\n\t\t\t\tcase 'week':\n\t\t\t\t\tthrow new Error('Auto convert to week is not supported!');\n\t\t\t}\n\t\t}\n\t\tif (value === null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn undefined;\n\t}\n\n\tprivate validateDateString(value: string): boolean {\n\t\tswitch (this.component._type) {\n\t\t\tcase 'date':\n\t\t\t\treturn InputDateController.isoDateRegex.test(value);\n\t\t\tcase 'datetime-local':\n\t\t\t\treturn InputDateController.isoLocalDateTimeRegex.test(value);\n\t\t\tcase 'month':\n\t\t\t\treturn InputDateController.isoMonthRegex.test(value);\n\t\t\tcase 'time':\n\t\t\t\treturn InputDateController.isoTimeRegex.test(value);\n\t\t\tcase 'week':\n\t\t\t\treturn InputDateController.isoWeekRegex.test(value);\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t}\n\t}\n\n\tprivate readonly validateIso8601 = (propName: string, value?: Date | Iso8601 | null, afterPatch?: (v: string) => void) => {\n\t\treturn watchValidator(\n\t\t\tthis.component,\n\t\t\tpropName,\n\t\t\t(value): boolean => value === undefined || value == null || value === '' || this.validateDateString(value),\n\t\t\tnew Set(['Date', 'string{ISO-8601}']),\n\t\t\tthis.tryParseToString(value),\n\t\t\t{\n\t\t\t\thooks: {\n\t\t\t\t\tafterPatch: (value) => {\n\t\t\t\t\t\tif (typeof value === 'string' && afterPatch) {\n\t\t\t\t\t\t\tafterPatch(value);\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t}\n\t\t);\n\t};\n\n\tprotected onChange(event: Event): void {\n\t\tsuper.onChange(event);\n\n\t\t// set the value here when the value is switched between blank and set (or vice versa) to enable value resets via setting null as value.\n\t\tif (!!(event.target as HTMLInputElement).value !== !!this.component._value) {\n\t\t\tthis.component._value = (event.target as HTMLInputElement).value as Iso8601;\n\t\t}\n\t}\n\n\tpublic validateMax(value?: Iso8601 | Date): void {\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_max',\n\t\t\t(value): boolean => value === undefined || (value !== null && this.validateDateString(value)),\n\t\t\tnew Set(['Iso8601', 'Date']),\n\t\t\tthis.tryParseToString(\n\t\t\t\tvalue,\n\t\t\t\tthis.component._type === 'date' || this.component._type === 'month' || this.component._type === 'datetime-local'\n\t\t\t\t\t? InputDateController.DEFAULT_MAX_DATE\n\t\t\t\t\t: undefined\n\t\t\t)\n\t\t);\n\t}\n\n\tpublic validateMin(value?: Iso8601 | Date): void {\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_min',\n\t\t\t(value): boolean => value === undefined || (value !== null && this.validateDateString(value)),\n\t\t\tnew Set(['Iso8601', 'Date']),\n\t\t\tthis.tryParseToString(value)\n\t\t);\n\t}\n\n\tpublic validateOn(value?: InputTypeOnDefault) {\n\t\tsetState(this.component, '_on', {\n\t\t\t...value,\n\t\t\tonChange: (e: Event, v: unknown) => {\n\t\t\t\t// set the value here when the value is switched between blank and set (or vice versa) to enable value resets via setting null as value.\n\t\t\t\tif (!!v !== !!this.component._value) {\n\t\t\t\t\tthis.component._value = v as Iso8601;\n\t\t\t\t}\n\n\t\t\t\tif (value?.onChange) {\n\t\t\t\t\tvalue.onChange(e, v);\n\t\t\t\t}\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic validateReadOnly(value?: ReadOnlyPropType): void {\n\t\tvalidateReadOnly(this.component, value);\n\t}\n\n\tpublic validateRequired(value?: boolean): void {\n\t\twatchBoolean(this.component, '_required', value);\n\t}\n\n\tpublic validateStep(value?: number): void {\n\t\twatchNumber(this.component, '_step', value);\n\t}\n\n\tpublic validateType(value?: InputNumberType): void {\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_type',\n\t\t\t(value): boolean =>\n\t\t\t\ttypeof value === 'string' &&\n\t\t\t\t(value === 'date' || value === 'datetime-local' || value === 'month' || value === 'number' || value === 'time' || value === 'week'),\n\t\t\tnew Set(['String {date, datetime-local, month, number, time, week}']),\n\t\t\tvalue\n\t\t);\n\t}\n\n\tpublic validateValue(value?: Iso8601 | Date | null): void {\n\t\tthis.validateValueEx(value);\n\t}\n\n\t/**\n\t * Overload of validate value. Extends by an after patch callback function.\n\t */\n\tpublic validateValueEx(value?: Iso8601 | Date | null, afterPatch?: (v: string) => void): void {\n\t\tthis.validateIso8601('_value', value, afterPatch);\n\t\tthis.setFormAssociatedValue(this.component.state._value as string);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateAutoComplete(this.component._autoComplete);\n\t\tthis.validateMax(this.component._max);\n\t\tthis.validateMin(this.component._min);\n\t\tthis.validateLabel(this.component._label);\n\t\tthis.validateSuggestions(this.component._suggestions || this.component._list);\n\t\tthis.validateOn(this.component._on);\n\t\tthis.validateReadOnly(this.component._readOnly);\n\t\tthis.validateRequired(this.component._required);\n\t\tthis.validateStep(this.component._step);\n\t\tthis.validateType(this.component._type);\n\t\tthis.validateValue(this.component._value);\n\t}\n}\n","@import url(../input-line.css);\nkol-input-number {\n\tdisplay: block;\n}\n.error.hidden {\n\tdisplay: none;\n}\n","import { Component, Element, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { Stringified } from '../../types/common';\nimport { KoliBriHorizontalIcons } from '../../types/icons';\nimport { InputDateType } from '../../types/input/control/number';\nimport { Iso8601 } from '../../types/input/iso8601';\nimport { InputTypeOnDefault, InputTypeOnOff } from '../../types/input/types';\nimport { HideErrorPropType } from '../../types/props/hide-error';\nimport { IdPropType } from '../../types/props/id';\nimport { LabelWithExpertSlotPropType } from '../../types/props/label';\nimport { NamePropType } from '../../types/props/name';\nimport { ReadOnlyPropType } from '../../types/props/read-only';\nimport { SuggestionsPropType } from '../../types/props/suggestions';\nimport { SyncValueBySelectorPropType } from '../../types/props/sync-value-by-selector';\nimport { TooltipAlignPropType } from '../../types/props/tooltip-align';\nimport { nonce } from '../../utils/dev.utils';\nimport { propagateFocus, showExpertSlot } from '../../utils/reuse';\nimport { Props as ButtonProps } from '../button/types';\nimport { propagateSubmitEventToForm } from '../form/controller';\nimport { getRenderStates } from '../input/controller';\nimport { InputDateController } from './controller';\nimport { ComponentApi, States } from './types';\n\n/**\n * @slot - Die Beschriftung des Eingabefeldes.\n */\n@Component({\n\ttag: 'kol-input-date',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolInputDate implements ComponentApi {\n\t@Element() private readonly host?: HTMLKolInputDateElement;\n\tprivate ref?: HTMLInputElement;\n\n\tprivate readonly catchRef = (ref?: HTMLInputElement) => {\n\t\tthis.ref = ref;\n\t\tpropagateFocus(this.host, this.ref);\n\t};\n\n\tprivate readonly onKeyUp = (event: KeyboardEvent) => {\n\t\tif (event.code === 'Enter') {\n\t\t\tpropagateSubmitEventToForm({\n\t\t\t\tform: this.host,\n\t\t\t\tref: this.ref,\n\t\t\t});\n\t\t} else {\n\t\t\tthis.controller.onFacade.onChange(event);\n\t\t}\n\t};\n\n\tpublic render(): JSX.Element {\n\t\tconst { ariaDescribedBy } = getRenderStates(this.state);\n\t\tconst hasSuggestions = Array.isArray(this.state._suggestions) && this.state._suggestions.length > 0;\n\t\tconst hasExpertSlot = showExpertSlot(this.state._label);\n\n\t\treturn (\n\t\t\t<Host class={{ 'has-value': this.state._hasValue }}>\n\t\t\t\t<kol-input\n\t\t\t\t\tclass={{\n\t\t\t\t\t\t[this.state._type]: true,\n\t\t\t\t\t\t'hide-label': !!this.state._hideLabel,\n\t\t\t\t\t}}\n\t\t\t\t\t_disabled={this.state._disabled}\n\t\t\t\t\t_error={this.state._error}\n\t\t\t\t\t_hideError={this.state._hideError}\n\t\t\t\t\t_hideLabel={this.state._hideLabel}\n\t\t\t\t\t_hint={this.state._hint}\n\t\t\t\t\t_icons={this.state._icons}\n\t\t\t\t\t_id={this.state._id}\n\t\t\t\t\t_label={this.state._label}\n\t\t\t\t\t_suggestions={this.state._suggestions}\n\t\t\t\t\t_readOnly={this.state._readOnly}\n\t\t\t\t\t_required={this.state._required}\n\t\t\t\t\t_smartButton={this.state._smartButton}\n\t\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t\t_touched={this.state._touched}\n\t\t\t\t>\n\t\t\t\t\t{/* TODO: der folgende Slot ohne Name muss später entfernt werden */}\n\t\t\t\t\t<span slot=\"label\">{hasExpertSlot ? <slot></slot> : this.state._label}</span>\n\t\t\t\t\t<div slot=\"input\">\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\t\t\ttitle=\"\"\n\t\t\t\t\t\t\taccessKey={this.state._accessKey}\n\t\t\t\t\t\t\taria-describedby={ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined}\n\t\t\t\t\t\t\taria-label={this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined}\n\t\t\t\t\t\t\tautoCapitalize=\"off\"\n\t\t\t\t\t\t\tautoComplete={this.state._autoComplete}\n\t\t\t\t\t\t\tautoCorrect=\"off\"\n\t\t\t\t\t\t\tdisabled={this.state._disabled}\n\t\t\t\t\t\t\tid={this.state._id}\n\t\t\t\t\t\t\tlist={hasSuggestions ? `${this.state._id}-list` : undefined}\n\t\t\t\t\t\t\tmax={this.state._max}\n\t\t\t\t\t\t\tmin={this.state._min}\n\t\t\t\t\t\t\tname={this.state._name}\n\t\t\t\t\t\t\treadOnly={this.state._readOnly}\n\t\t\t\t\t\t\trequired={this.state._required}\n\t\t\t\t\t\t\tstep={this.state._step}\n\t\t\t\t\t\t\tspellcheck=\"false\"\n\t\t\t\t\t\t\ttype={this.state._type}\n\t\t\t\t\t\t\tvalue={this.state._value as string}\n\t\t\t\t\t\t\t{...this.controller.onFacade}\n\t\t\t\t\t\t\tonKeyUp={this.onKeyUp}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t</kol-input>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate readonly controller: InputDateController;\n\n\t/**\n\t * Defines which key combination can be used to trigger or focus the interactive element of the component.\n\t */\n\t@Prop() public _accessKey?: string;\n\n\t/**\n\t * Defines whether the screen-readers should read out the notification.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _alert?: boolean = true;\n\n\t/**\n\t * Defines whether the input can be auto-completed.\n\t */\n\t@Prop() public _autoComplete?: InputTypeOnOff;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t * @TODO: Change type back to `DisabledPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Defines the error message text.\n\t */\n\t@Prop() public _error?: string;\n\n\t/**\n\t * Hides the error message but leaves it in the DOM for the input's aria-describedby.\n\t * @TODO: Change type back to `HideErrorPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _hideError?: boolean = false;\n\n\t/**\n\t * Hides the caption by default and displays the caption text with a tooltip when the\n\t * interactive element is focused or the mouse is over it.\n\t * @TODO: Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hideLabel?: boolean = false;\n\n\t/**\n\t * Defines the hint text.\n\t */\n\t@Prop() public _hint?: string = '';\n\n\t/**\n\t * @deprecated Use _icons.\n\t */\n\t@Prop() public _icon?: Stringified<KoliBriHorizontalIcons>; /**\n\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: Stringified<KoliBriHorizontalIcons>;\n\n\t/**\n\t * Defines the internal ID of the primary component element.\n\t */\n\t@Prop() public _id?: IdPropType;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label?: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Deprecated: Gibt die Liste der Vorschlagszahlen an.\n\t * @deprecated Use _suggestions instead.\n\t */\n\t@Prop() public _list?: Stringified<string[]>;\n\n\t/**\n\t * Defines the largest possible input value.\n\t */\n\t@Prop() public _max?: Iso8601 | Date;\n\n\t/**\n\t * Defines the smallest possible input value.\n\t */\n\t@Prop() public _min?: Iso8601 | Date;\n\n\t/**\n\t * Defines the technical name of an input field.\n\t */\n\t@Prop() public _name?: NamePropType;\n\n\t/**\n\t * Gibt die EventCallback-Funktionen für das Input-Event an.\n\t */\n\t@Prop() public _on?: InputTypeOnDefault;\n\n\t/**\n\t * Makes the input element read only.\n\t * @TODO: Change type back to `ReadOnlyPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _readOnly?: boolean = false;\n\n\t/**\n\t * Makes the input element required.\n\t * @TODO: Change type back to `RequiredPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _required?: boolean = false;\n\n\t/**\n\t * Allows to add a button with an arbitrary action within the element (_hide-label only).\n\t */\n\t@Prop() public _smartButton?: Stringified<ButtonProps>;\n\n\t/**\n\t * Suggestions to provide for the input.\n\t */\n\t@Prop() public _suggestions?: SuggestionsPropType;\n\n\t/**\n\t * Selector for synchronizing the value with another input element.\n\t * @internal\n\t */\n\t@Prop() public _syncValueBySelector?: SyncValueBySelectorPropType;\n\n\t/**\n\t * Defines the step size for value changes.\n\t */\n\t@Prop() public _step?: number;\n\n\t/**\n\t * Defines which tab-index the primary element of the component has. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)\n\t */\n\t@Prop() public _tabIndex?: number;\n\n\t/**\n\t * Defines where to show the Tooltip preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _tooltipAlign?: TooltipAlignPropType = 'top';\n\n\t/**\n\t * Shows if the input was touched by a user.\n\t * @TODO: Change type back to `TouchedPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _touched?: boolean = false;\n\n\t/**\n\t * Defines either the type of the component or of the components interactive element.\n\t */\n\t@Prop() public _type: InputDateType = 'date';\n\n\t/**\n\t * Defines the value of the input.\n\t */\n\t@Prop({ mutable: true }) public _value?: Iso8601 | Date | null;\n\n\t@State() public state: States = {\n\t\t_autoComplete: 'off',\n\t\t_hasValue: false,\n\t\t_hideError: false,\n\t\t_id: `id-${nonce()}`, // ⚠ required\n\t\t_label: '', // ⚠ required\n\t\t_suggestions: [],\n\t\t_type: 'datetime-local',\n\t};\n\n\tpublic constructor() {\n\t\tthis.controller = new InputDateController(this, 'input-date', this.host);\n\t}\n\n\t@Watch('_accessKey')\n\tpublic validateAccessKey(value?: string): void {\n\t\tthis.controller.validateAccessKey(value);\n\t}\n\n\t@Watch('_alert')\n\tpublic validateAlert(value?: boolean): void {\n\t\tthis.controller.validateAlert(value);\n\t}\n\n\t@Watch('_autoComplete')\n\tpublic validateAutoComplete(value?: InputTypeOnOff): void {\n\t\tthis.controller.validateAutoComplete(value);\n\t}\n\n\t@Watch('_disabled')\n\tpublic validateDisabled(value?: boolean): void {\n\t\tthis.controller.validateDisabled(value);\n\t}\n\n\t@Watch('_error')\n\tpublic validateError(value?: string): void {\n\t\tthis.controller.validateError(value);\n\t}\n\n\t@Watch('_hideError')\n\tpublic validateHideError(value?: HideErrorPropType): void {\n\t\tthis.controller.validateHideError(value);\n\t}\n\n\t@Watch('_hideLabel')\n\tpublic validateHideLabel(value?: boolean): void {\n\t\tthis.controller.validateHideLabel(value);\n\t}\n\n\t@Watch('_hint')\n\tpublic validateHint(value?: string): void {\n\t\tthis.controller.validateHint(value);\n\t}\n\n\t@Watch('_icon')\n\tpublic validateIcon(value?: Stringified<KoliBriHorizontalIcons>): void {\n\t\tthis.validateIcons(value);\n\t}\n\n\t@Watch('_icons')\n\tpublic validateIcons(value?: Stringified<KoliBriHorizontalIcons>): void {\n\t\tthis.controller.validateIcons(value);\n\t}\n\n\t@Watch('_id')\n\tpublic validateId(value?: string): void {\n\t\tthis.controller.validateId(value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelWithExpertSlotPropType): void {\n\t\tthis.controller.validateLabel(value);\n\t}\n\n\t@Watch('_list')\n\tpublic validateList(value?: Stringified<string[]>): void {\n\t\tthis.validateSuggestions(value);\n\t}\n\n\t@Watch('_max')\n\tpublic validateMax(value?: Iso8601 | Date): void {\n\t\tthis.controller.validateMax(value);\n\t}\n\n\t@Watch('_min')\n\tpublic validateMin(value?: Iso8601 | Date): void {\n\t\tthis.controller.validateMin(value);\n\t}\n\n\t@Watch('_name')\n\tpublic validateName(value?: string): void {\n\t\tthis.controller.validateName(value);\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(value?: InputTypeOnDefault): void {\n\t\tthis.controller.validateOn(value);\n\t}\n\n\t@Watch('_readOnly')\n\tpublic validateReadOnly(value?: ReadOnlyPropType): void {\n\t\tthis.controller.validateReadOnly(value);\n\t}\n\n\t@Watch('_required')\n\tpublic validateRequired(value?: boolean): void {\n\t\tthis.controller.validateRequired(value);\n\t}\n\n\t@Watch('_smartButton')\n\tpublic validateSmartButton(value?: ButtonProps | string): void {\n\t\tthis.controller.validateSmartButton(value);\n\t}\n\n\t@Watch('_suggestions')\n\tpublic validateSuggestions(value?: SuggestionsPropType): void {\n\t\tthis.controller.validateSuggestions(value);\n\t}\n\n\t@Watch('_step')\n\tpublic validateStep(value?: number): void {\n\t\tthis.controller.validateStep(value);\n\t}\n\n\t@Watch('_syncValueBySelector')\n\tpublic validateSyncValueBySelector(value?: SyncValueBySelectorPropType): void {\n\t\tthis.controller.validateSyncValueBySelector(value);\n\t}\n\n\t@Watch('_tabIndex')\n\tpublic validateTabIndex(value?: number): void {\n\t\tthis.controller.validateTabIndex(value);\n\t}\n\n\t@Watch('_touched')\n\tpublic validateTouched(value?: boolean): void {\n\t\tthis.controller.validateTouched(value);\n\t}\n\n\t@Watch('_type')\n\tpublic validateType(value?: InputDateType): void {\n\t\tthis.controller.validateType(value);\n\t}\n\n\t@Watch('_value')\n\tpublic validateValue(value?: Iso8601 | Date | null): void {\n\t\tthis.controller.validateValueEx(value, (v) => {\n\t\t\tif (v === '' && this.ref) {\n\t\t\t\tthis.ref.value = '';\n\t\t\t}\n\t\t});\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis._alert = this._alert === true;\n\t\tthis._touched = this._touched === true;\n\t\tthis.controller.componentWillLoad();\n\n\t\tthis.state._hasValue = !!this.state._value;\n\t\tthis.controller.addValueChangeListener((v) => (this.state._hasValue = !!v));\n\t}\n}\n"],"mappings":";;;wpBAeO,MAAMA,EAAmB,CAACC,EAAsCC,KACtEC,EAAaF,EAAW,YAAaC,EAAM,E,MCL/BE,UAA4BC,EAYxC,WAAAC,CAAmBL,EAA8CM,EAAcC,GAC9EC,MAAMR,EAAWM,EAAMC,GA2EPE,KAAAC,gBAAkB,CAACC,EAAkBV,EAA+BW,IAC7EC,EACNJ,KAAKT,UACLW,GACCV,GAAmBA,IAAUa,WAAab,GAAS,MAAQA,IAAU,IAAMQ,KAAKM,mBAAmBd,IACpG,IAAIe,IAAI,CAAC,OAAQ,qBACjBP,KAAKQ,iBAAiBhB,GACtB,CAC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sB,iBAAiB1I,E,CAI3B,eAAA2I,CAAgB3I,GACtBQ,KAAK4G,WAAWuB,gBAAgB3I,E,CAI1B,YAAAsD,CAAatD,GACnBQ,KAAK4G,WAAW9D,aAAatD,E,CAIvB,aAAAuD,CAAcvD,GACpBQ,KAAK4G,WAAW5D,gBAAgBxD,GAAQsB,IACvC,GAAIA,IAAM,IAAMd,KAAKwF,IAAK,CACzBxF,KAAKwF,IAAIhG,MAAQ,E,KAKb,iBAAA2D,GACNnD,KAAKoI,OAASpI,KAAKoI,SAAW,KAC9BpI,KAAKsF,SAAWtF,KAAKsF,WAAa,KAClCtF,KAAK4G,WAAWzD,oBAEhBnD,KAAKkD,MAAM0B,YAAc5E,KAAKkD,MAAMhB,OACpClC,KAAK4G,WAAWyB,wBAAwBvH,GAAOd,KAAKkD,MAAM0B,YAAc9D,G"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as t,H as e,r as i,g as a}from"./index-d46a1c6a.js";import{n as s}from"./dev.utils-b8a2ec94.js";import{a as l,s as n}from"./prop.validators-e20b06c5.js";import{a as o,s as r}from"./reuse-b3566e4c.js";import{p as d}from"./controller-36de320d.js";import{v as h,g as p}from"./controller-3444f586.js";import{a as u}from"./a11y.tipps-786571db.js";import{I as c}from"./controller-377660f4.js";import"./index-d56bfd0f.js";import"./hide-label-f059671e.js";import"./label-d69274a4.js";import"./events-2bb1065b.js";import"./tab-index-c779bf01.js";import"./associated.controller-90adea5d.js";import"./controller-d6393b5d.js";import"./controller-icon-105c05dd.js";import"./icons-5b410219.js";import"./suggestions-de4b0c1b.js";const m=(t,e)=>{l(t,"_multiple",e)};class f extends c{constructor(t,e,i){super(t,e,i),this.component=t}validateHideError(t){h(this.component,t,{hooks:{afterPatch:()=>{this.component.state._hideError&&u("Property hide-error for inputs: Only use when the error message is shown outside of the input component.")}}})}validateMultiple(t){m(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateHideError(this.component._hideError),this.validateMultiple(this.component._multiple)}}const v=":host{--a11y-min-size:44px;font-family:Verdana}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role='button'],button:not([role='link']),kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}:host{max-width:100%}*{box-sizing:border-box}kol-span-wc{display:grid;place-items:center}kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}.icon-only>kol-span-wc>span>span{display:none}.required label>span::after,.required legend>span::after{content:'*'}:host{display:block}input,textarea{cursor:text}input[type='checkbox'],input[type='color'],input[type='file'],input[type='radio'],input[type='range'],label,option,select{cursor:pointer}input[type='color'],input[type='date'],input[type='datetime-local'],input[type='email'],input[type='file'],input[type='month'],input[type='number'],input[type='password'],input[type='search'],input[type='tel'],input[type='text'],input[type='time'],input[type='url'],input[type='week'],select,select[multiple] option,textarea{font-size:1rem;width:100%}input[type='file']{padding:calc((var(--a11y-min-size) - 1rem) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - 1rem) / 2) 0.5em}kol-input.disabled :is(button,input,label,option,select,textarea){cursor:not-allowed;opacity:0.5}kol-input{display:grid}kol-input .input-slot{flex-grow:1}input:not([type='checkbox'],[type='radio']),select:not([multiple],[size]){height:2.75em}input:focus,option:focus,select:focus,textarea:focus{outline:0}.input{display:flex;align-items:center}.input>kol-icon{display:grid;height:var(--a11y-min-size);place-items:center}kol-input.required .input-tooltip .span-label::after{content:'*'}.error.hidden{display:none}",y=class{render(){const{ariaDescribedBy:i}=p(this.state),a=Array.isArray(this.state._suggestions)&&this.state._suggestions.length>0,l=r(this.state._label);return t(e,{class:{"has-value":this.state._hasValue}},t("kol-input",{class:{email:!0,"hide-label":!!this.state._hideLabel},_alert:this.state._alert,_currentLength:this.state._currentLength,_disabled:this.state._disabled,_error:this.state._error,_hideError:this.state._hideError,_hasCounter:this.state._hasCounter,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_icons:this.state._icons,_id:this.state._id,_label:this.state._label,_suggestions:this.state._suggestions,_maxLength:this.state._maxLength,_readOnly:this.state._readOnly,_required:this.state._required,_smartButton:this.state._smartButton,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched,onClick:()=>{var t;return null===(t=this.ref)||void 0===t?void 0:t.focus()}},t("span",{slot:"label"},l?t("slot",null):this.state._label),t("div",{slot:"input"},t("input",Object.assign({ref:this.catchRef,title:"",accessKey:this.state._accessKey,"aria-describedby":i.length>0?i.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,autoCapitalize:"off",autoComplete:this.state._autoComplete,autoCorrect:"off",disabled:this.state._disabled,multiple:this.state._multiple,id:this.state._id,list:a?`${this.state._id}-list`:void 0,maxlength:this.state._maxLength,name:this.state._name,pattern:this.state._pattern,placeholder:this.state._placeholder,readOnly:this.state._readOnly,required:this.state._required,size:this.state._size,spellcheck:"false",type:"email",value:this.state._value},this.controller.onFacade,{onKeyUp:this.onKeyUp})))))}constructor(t){i(this,t),this.catchRef=t=>{this.ref=t,o(this.host,this.ref)},this.onKeyUp=t=>{n(this,"_currentLength",t.target.value.length),"Enter"===t.code?d({form:this.host,ref:this.ref}):this.controller.onFacade.onChange(t)},this._accessKey=void 0,this._alert=!0,this._autoComplete=void 0,this._disabled=!1,this._error=void 0,this._hasCounter=!1,this._hideError=!1,this._hideLabel=!1,this._hint="",this._icon=void 0,this._icons=void 0,this._id=void 0,this._label=void 0,this._list=void 0,this._maxLength=void 0,this._multiple=!1,this._name=void 0,this._on=void 0,this._pattern=void 0,this._placeholder=void 0,this._readOnly=!1,this._required=!1,this._size=void 0,this._smartButton=void 0,this._suggestions=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this.state={_autoComplete:"off",_currentLength:0,_hasValue:!1,_hideError:!1,_id:`id-${s()}`,_label:"",_suggestions:[]},this.controller=new f(this,"input-email",this.host)}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAlert(t){this.controller.validateAlert(t)}validateAutoComplete(t){this.controller.validateAutoComplete(t)}validateDisabled(t){this.controller.validateDisabled(t)}validateError(t){this.controller.validateError(t)}validateHasCounter(t){this.controller.validateHasCounter(t)}validateHideError(t){this.controller.validateHideError(t)}validateHideLabel(t){this.controller.validateHideLabel(t)}validateHint(t){this.controller.validateHint(t)}validateIcon(t){this.validateIcons(t)}validateIcons(t){this.controller.validateIcons(t)}validateId(t){this.controller.validateId(t)}validateLabel(t){this.controller.validateLabel(t)}validateList(t){this.validateSuggestions(t)}validateMaxLength(t){this.controller.validateMaxLength(t)}validateMultiple(t){this.controller.validateMultiple(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validatePattern(t){this.controller.validatePattern(t)}validatePlaceholder(t){this.controller.validatePlaceholder(t)}validateReadOnly(t){this.controller.validateReadOnly(t)}validateRequired(t){this.controller.validateRequired(t)}validateSize(t){this.controller.validateSize(t)}validateSuggestions(t){this.controller.validateSuggestions(t)}validateSmartButton(t){this.controller.validateSmartButton(t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){this.controller.validateTabIndex(t)}validateTouched(t){this.controller.validateTouched(t)}validateValue(t){this.controller.validateValue(t)}componentWillLoad(){this._alert=!0===this._alert,this._touched=!0===this._touched,this.controller.componentWillLoad(),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener((t=>this.state._hasValue=!!t))}get host(){return a(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_autoComplete:["validateAutoComplete"],_disabled:["validateDisabled"],_error:["validateError"],_hasCounter:["validateHasCounter"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icon:["validateIcon"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_list:["validateList"],_maxLength:["validateMaxLength"],_multiple:["validateMultiple"],_name:["validateName"],_on:["validateOn"],_pattern:["validatePattern"],_placeholder:["validatePlaceholder"],_readOnly:["validateReadOnly"],_required:["validateRequired"],_size:["validateSize"],_suggestions:["validateSuggestions"],_smartButton:["validateSmartButton"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};y.style={default:v};export{y as kol_input_email};
4
+ import{h as t,H as e,r as i,g as a}from"./index-5dfe6d77.js";import{n as s}from"./dev.utils-41a91551.js";import{a as l,s as n}from"./prop.validators-26c53e8e.js";import{a as o,s as d}from"./reuse-d79ab469.js";import{p as r}from"./controller-35567a81.js";import{g as h}from"./controller-c0324c56.js";import{I as p}from"./controller-cc5560bb.js";import"./index-b580aa97.js";import"./a11y.tipps-b72d567f.js";import"./hide-label-a37738db.js";import"./label-3290121e.js";import"./events-fa760b68.js";import"./tab-index-b5f129ef.js";import"./associated.controller-e82ccadd.js";import"./controller-6a323a54.js";import"./controller-icon-f6d5ee93.js";import"./icons-70fec733.js";import"./suggestions-cde6e476.js";const u=(t,e)=>{l(t,"_multiple",e)};class c extends p{constructor(t,e,i){super(t,e,i),this.component=t}validateMultiple(t){u(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateMultiple(this.component._multiple)}}const m=":host{--a11y-min-size:44px;background-color:white;color:black;font-family:Verdana}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role='button'],button:not([role='link']),kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}[hidden]{display:none !important}:host{max-width:100%}*{box-sizing:border-box}kol-span-wc{display:grid;place-items:center}kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}.icon-only>kol-span-wc>span>span{display:none}.required label>span::after,.required legend>span::after{content:'*'}:host{display:block}input,textarea{cursor:text}input[type='checkbox'],input[type='color'],input[type='file'],input[type='radio'],input[type='range'],label,option,select{cursor:pointer}input[type='color'],input[type='date'],input[type='datetime-local'],input[type='email'],input[type='file'],input[type='month'],input[type='number'],input[type='password'],input[type='search'],input[type='tel'],input[type='text'],input[type='time'],input[type='url'],input[type='week'],select,select[multiple] option,textarea{font-size:1rem;width:100%}input[type='file']{padding:calc((var(--a11y-min-size) - 1rem) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - 1rem) / 2) 0.5em}kol-input.disabled :is(button,input,option,select,textarea,.input-label){cursor:not-allowed;opacity:0.5}kol-input{display:grid}kol-input .input-slot{flex-grow:1}input:not([type='checkbox'],[type='radio']),select:not([multiple],[size]){height:2.75em}input:focus,option:focus,select:focus,textarea:focus{outline:0}.input{display:flex;align-items:center}.input>kol-icon{display:grid;height:var(--a11y-min-size);place-items:center}kol-input.required .input-tooltip .span-label::after{content:'*'}.error.hidden{display:none}",f=class{render(){const{ariaDescribedBy:i}=h(this.state),a=Array.isArray(this.state._suggestions)&&this.state._suggestions.length>0,l=d(this.state._label);return t(e,{class:{"has-value":this.state._hasValue}},t("kol-input",{class:{email:!0,"hide-label":!!this.state._hideLabel},_alert:this.state._alert,_currentLength:this.state._currentLength,_disabled:this.state._disabled,_error:this.state._error,_hideError:this.state._hideError,_hasCounter:this.state._hasCounter,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_icons:this.state._icons,_id:this.state._id,_label:this.state._label,_suggestions:this.state._suggestions,_maxLength:this.state._maxLength,_readOnly:this.state._readOnly,_required:this.state._required,_smartButton:this.state._smartButton,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched,onClick:()=>{var t;return null===(t=this.ref)||void 0===t?void 0:t.focus()}},t("span",{slot:"label"},l?t("slot",null):this.state._label),t("div",{slot:"input"},t("input",Object.assign({ref:this.catchRef,title:"",accessKey:this.state._accessKey,"aria-describedby":i.length>0?i.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,autoCapitalize:"off",autoComplete:this.state._autoComplete,autoCorrect:"off",disabled:this.state._disabled,multiple:this.state._multiple,id:this.state._id,list:a?`${this.state._id}-list`:void 0,maxlength:this.state._maxLength,name:this.state._name,pattern:this.state._pattern,placeholder:this.state._placeholder,readOnly:this.state._readOnly,required:this.state._required,size:this.state._size,spellcheck:"false",type:"email",value:this.state._value},this.controller.onFacade,{onKeyUp:this.onKeyUp})))))}constructor(t){i(this,t),this.catchRef=t=>{this.ref=t,o(this.host,this.ref)},this.onKeyUp=t=>{n(this,"_currentLength",t.target.value.length),"Enter"===t.code?r({form:this.host,ref:this.ref}):this.controller.onFacade.onChange(t)},this._accessKey=void 0,this._alert=!0,this._autoComplete=void 0,this._disabled=!1,this._error=void 0,this._hasCounter=!1,this._hideError=!1,this._hideLabel=!1,this._hint="",this._icon=void 0,this._icons=void 0,this._id=void 0,this._label=void 0,this._list=void 0,this._maxLength=void 0,this._multiple=!1,this._name=void 0,this._on=void 0,this._pattern=void 0,this._placeholder=void 0,this._readOnly=!1,this._required=!1,this._size=void 0,this._smartButton=void 0,this._suggestions=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this.state={_autoComplete:"off",_currentLength:0,_hasValue:!1,_hideError:!1,_id:`id-${s()}`,_label:"",_suggestions:[]},this.controller=new c(this,"input-email",this.host)}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAlert(t){this.controller.validateAlert(t)}validateAutoComplete(t){this.controller.validateAutoComplete(t)}validateDisabled(t){this.controller.validateDisabled(t)}validateError(t){this.controller.validateError(t)}validateHasCounter(t){this.controller.validateHasCounter(t)}validateHideError(t){this.controller.validateHideError(t)}validateHideLabel(t){this.controller.validateHideLabel(t)}validateHint(t){this.controller.validateHint(t)}validateIcon(t){this.validateIcons(t)}validateIcons(t){this.controller.validateIcons(t)}validateId(t){this.controller.validateId(t)}validateLabel(t){this.controller.validateLabel(t)}validateList(t){this.validateSuggestions(t)}validateMaxLength(t){this.controller.validateMaxLength(t)}validateMultiple(t){this.controller.validateMultiple(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validatePattern(t){this.controller.validatePattern(t)}validatePlaceholder(t){this.controller.validatePlaceholder(t)}validateReadOnly(t){this.controller.validateReadOnly(t)}validateRequired(t){this.controller.validateRequired(t)}validateSize(t){this.controller.validateSize(t)}validateSuggestions(t){this.controller.validateSuggestions(t)}validateSmartButton(t){this.controller.validateSmartButton(t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){this.controller.validateTabIndex(t)}validateTouched(t){this.controller.validateTouched(t)}validateValue(t){this.controller.validateValue(t)}componentWillLoad(){this._alert=!0===this._alert,this._touched=!0===this._touched,this.controller.componentWillLoad(),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener((t=>this.state._hasValue=!!t))}get host(){return a(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_autoComplete:["validateAutoComplete"],_disabled:["validateDisabled"],_error:["validateError"],_hasCounter:["validateHasCounter"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icon:["validateIcon"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_list:["validateList"],_maxLength:["validateMaxLength"],_multiple:["validateMultiple"],_name:["validateName"],_on:["validateOn"],_pattern:["validatePattern"],_placeholder:["validatePlaceholder"],_readOnly:["validateReadOnly"],_required:["validateRequired"],_size:["validateSize"],_suggestions:["validateSuggestions"],_smartButton:["validateSmartButton"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};f.style={default:m};export{f as kol_input_email};
@@ -1 +1 @@
1
- {"version":3,"names":["validateMultiple","component","value","watchBoolean","InputEmailController","InputTextEmailController","constructor","name","host","super","this","validateHideError","hooks","afterPatch","state","_hideError","a11yHint","componentWillLoad","_multiple","defaultStyleCss","KolInputEmail","render","ariaDescribedBy","getRenderStates","hasSuggestions","Array","isArray","_suggestions","length","hasExpertSlot","showExpertSlot","_label","h","Host","class","_hasValue","email","_hideLabel","_alert","_currentLength","_disabled","_error","_hasCounter","_hint","_icons","_id","_maxLength","_readOnly","_required","_smartButton","_tooltipAlign","_touched","onClick","_a","ref","focus","slot","Object","assign","catchRef","title","accessKey","_accessKey","join","undefined","autoCapitalize","autoComplete","_autoComplete","autoCorrect","disabled","multiple","id","list","maxlength","_name","pattern","_pattern","placeholder","_placeholder","readOnly","required","size","_size","spellcheck","type","_value","controller","onFacade","onKeyUp","hostRef","propagateFocus","event","setState","target","code","propagateSubmitEventToForm","form","onChange","nonce","validateAccessKey","validateAlert","validateAutoComplete","validateDisabled","validateError","validateHasCounter","validateHideLabel","validateHint","validateIcon","validateIcons","validateId","validateLabel","validateList","validateSuggestions","validateMaxLength","validateName","validateOn","validatePattern","validatePlaceholder","validateReadOnly","validateRequired","validateSize","validateSmartButton","validateSyncValueBySelector","validateTabIndex","validateTouched","validateValue","addValueChangeListener","v"],"sources":["src/types/props/multiple.ts","src/components/input-email/controller.ts","src/components/input-email/style.css?tag=kol-input-email&mode=default&encapsulation=shadow","src/components/input-email/component.tsx"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { watchBoolean } from '../../utils/prop.validators';\n\n/* types */\nexport type MultiplePropType = boolean;\n\n/**\n * Makes the input accept multiple inputs.\n */\nexport type PropMultiple = {\n\tmultiple: MultiplePropType;\n};\n\n/* validator */\nexport const validateMultiple = (component: Generic.Element.Component, value?: MultiplePropType): void => {\n\twatchBoolean(component, '_multiple', value);\n};\n","import { Generic } from '@a11y-ui/core';\n\nimport { HideErrorPropType, validateHideError } from '../../types/props/hide-error';\nimport { MultiplePropType, validateMultiple } from '../../types/props/multiple';\nimport { a11yHint } from '../../utils/a11y.tipps';\nimport { InputTextEmailController } from '../input-text/controller';\nimport { Props, Watches } from './types';\n\nexport class InputEmailController extends InputTextEmailController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props;\n\n\tpublic constructor(component: Generic.Element.Component & Props, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateHideError(value?: HideErrorPropType): void {\n\t\tvalidateHideError(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: () => {\n\t\t\t\t\tif (this.component.state._hideError) {\n\t\t\t\t\t\ta11yHint('Property hide-error for inputs: Only use when the error message is shown outside of the input component.');\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic validateMultiple(value?: MultiplePropType): void {\n\t\tvalidateMultiple(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateHideError(this.component._hideError);\n\t\tthis.validateMultiple(this.component._multiple);\n\t}\n}\n","@import url(../input-line.css);\n.error.hidden {\n\tdisplay: none;\n}\n","import { Component, Element, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { Stringified } from '../../types/common';\nimport { KoliBriHorizontalIcons } from '../../types/icons';\nimport { InputTypeOnDefault, InputTypeOnOff } from '../../types/input/types';\nimport { HideErrorPropType } from '../../types/props/hide-error';\nimport { IdPropType } from '../../types/props/id';\nimport { LabelWithExpertSlotPropType } from '../../types/props/label';\nimport { MultiplePropType } from '../../types/props/multiple';\nimport { NamePropType } from '../../types/props/name';\nimport { SuggestionsPropType } from '../../types/props/suggestions';\nimport { SyncValueBySelectorPropType } from '../../types/props/sync-value-by-selector';\nimport { TooltipAlignPropType } from '../../types/props/tooltip-align';\nimport { nonce } from '../../utils/dev.utils';\nimport { setState } from '../../utils/prop.validators';\nimport { propagateFocus, showExpertSlot } from '../../utils/reuse';\nimport { Props as ButtonProps } from '../button/types';\nimport { propagateSubmitEventToForm } from '../form/controller';\nimport { getRenderStates } from '../input/controller';\nimport { InputEmailController } from './controller';\nimport { API, States } from './types';\n\n/**\n * @slot - Die Beschriftung des Eingabefeldes.\n */\n@Component({\n\ttag: 'kol-input-email',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolInputEmail implements API {\n\t@Element() private readonly host?: HTMLKolInputEmailElement;\n\tprivate ref?: HTMLInputElement;\n\n\tprivate readonly catchRef = (ref?: HTMLInputElement) => {\n\t\tthis.ref = ref;\n\t\tpropagateFocus(this.host, this.ref);\n\t};\n\n\tprivate readonly onKeyUp = (event: KeyboardEvent) => {\n\t\tsetState(this, '_currentLength', (event.target as HTMLInputElement).value.length);\n\t\tif (event.code === 'Enter') {\n\t\t\tpropagateSubmitEventToForm({\n\t\t\t\tform: this.host,\n\t\t\t\tref: this.ref,\n\t\t\t});\n\t\t} else {\n\t\t\tthis.controller.onFacade.onChange(event);\n\t\t}\n\t};\n\n\tpublic render(): JSX.Element {\n\t\tconst { ariaDescribedBy } = getRenderStates(this.state);\n\t\tconst hasSuggestions = Array.isArray(this.state._suggestions) && this.state._suggestions.length > 0;\n\t\tconst hasExpertSlot = showExpertSlot(this.state._label);\n\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={{\n\t\t\t\t\t'has-value': this.state._hasValue,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<kol-input\n\t\t\t\t\tclass={{ email: true, 'hide-label': !!this.state._hideLabel }}\n\t\t\t\t\t_alert={this.state._alert}\n\t\t\t\t\t_currentLength={this.state._currentLength}\n\t\t\t\t\t_disabled={this.state._disabled}\n\t\t\t\t\t_error={this.state._error}\n\t\t\t\t\t_hideError={this.state._hideError}\n\t\t\t\t\t_hasCounter={this.state._hasCounter}\n\t\t\t\t\t_hideLabel={this.state._hideLabel}\n\t\t\t\t\t_hint={this.state._hint}\n\t\t\t\t\t_icons={this.state._icons}\n\t\t\t\t\t_id={this.state._id}\n\t\t\t\t\t_label={this.state._label}\n\t\t\t\t\t_suggestions={this.state._suggestions}\n\t\t\t\t\t_maxLength={this.state._maxLength}\n\t\t\t\t\t_readOnly={this.state._readOnly}\n\t\t\t\t\t_required={this.state._required}\n\t\t\t\t\t_smartButton={this.state._smartButton}\n\t\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t\t_touched={this.state._touched}\n\t\t\t\t\tonClick={() => this.ref?.focus()}\n\t\t\t\t>\n\t\t\t\t\t{/* TODO: der folgende Slot ohne Name muss später entfernt werden */}\n\t\t\t\t\t<span slot=\"label\">{hasExpertSlot ? <slot></slot> : this.state._label}</span>\n\t\t\t\t\t<div slot=\"input\">\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\t\t\ttitle=\"\"\n\t\t\t\t\t\t\taccessKey={this.state._accessKey}\n\t\t\t\t\t\t\taria-describedby={ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined}\n\t\t\t\t\t\t\taria-label={this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined}\n\t\t\t\t\t\t\tautoCapitalize=\"off\"\n\t\t\t\t\t\t\tautoComplete={this.state._autoComplete}\n\t\t\t\t\t\t\tautoCorrect=\"off\"\n\t\t\t\t\t\t\tdisabled={this.state._disabled}\n\t\t\t\t\t\t\tmultiple={this.state._multiple}\n\t\t\t\t\t\t\tid={this.state._id}\n\t\t\t\t\t\t\tlist={hasSuggestions ? `${this.state._id}-list` : undefined}\n\t\t\t\t\t\t\tmaxlength={this.state._maxLength}\n\t\t\t\t\t\t\tname={this.state._name}\n\t\t\t\t\t\t\tpattern={this.state._pattern}\n\t\t\t\t\t\t\tplaceholder={this.state._placeholder}\n\t\t\t\t\t\t\treadOnly={this.state._readOnly}\n\t\t\t\t\t\t\trequired={this.state._required}\n\t\t\t\t\t\t\tsize={this.state._size}\n\t\t\t\t\t\t\tspellcheck=\"false\"\n\t\t\t\t\t\t\ttype=\"email\"\n\t\t\t\t\t\t\tvalue={this.state._value as string}\n\t\t\t\t\t\t\t{...this.controller.onFacade}\n\t\t\t\t\t\t\tonKeyUp={this.onKeyUp}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t</kol-input>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate readonly controller: InputEmailController;\n\n\t/**\n\t * Defines which key combination can be used to trigger or focus the interactive element of the component.\n\t */\n\t@Prop() public _accessKey?: string;\n\n\t/**\n\t * Defines whether the screen-readers should read out the notification.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _alert?: boolean = true;\n\n\t/**\n\t * Defines whether the input can be auto-completed.\n\t */\n\t@Prop() public _autoComplete?: InputTypeOnOff;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t * @TODO: Change type back to `DisabledPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Defines the error message text.\n\t */\n\t@Prop() public _error?: string;\n\n\t/**\n\t * Shows the character count on the lower border of the input.\n\t * @TODO: Change type back to `HasCounterPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hasCounter?: boolean = false;\n\n\t/**\n\t * Hides the error message but leaves it in the DOM for the input's aria-describedby.\n\t * @TODO: Change type back to `HideErrorPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _hideError?: boolean = false;\n\n\t/**\n\t * Hides the caption by default and displays the caption text with a tooltip when the\n\t * interactive element is focused or the mouse is over it.\n\t * @TODO: Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hideLabel?: boolean = false;\n\n\t/**\n\t * Defines the hint text.\n\t */\n\t@Prop() public _hint?: string = '';\n\n\t/**\n\t * @deprecated Use _icons.\n\t */\n\t@Prop() public _icon?: Stringified<KoliBriHorizontalIcons>; /**\n\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: Stringified<KoliBriHorizontalIcons>;\n\n\t/**\n\t * Defines the internal ID of the primary component element.\n\t */\n\t@Prop() public _id?: IdPropType;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label?: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Deprecated: Gibt die Liste der Vorschlagswörter an.\n\t * @deprecated Use _suggestions.\n\t */\n\t@Prop() public _list?: Stringified<string[]>;\n\n\t/**\n\t * Defines the maximum number of input characters.\n\t */\n\t@Prop() public _maxLength?: number;\n\n\t/**\n\t * Makes the input accept multiple inputs.\n\t * @TODO: Change type back to `MultiplePropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _multiple?: boolean = false;\n\n\t/**\n\t * Defines the technical name of an input field.\n\t */\n\t@Prop() public _name?: NamePropType;\n\n\t/**\n\t * Gibt die EventCallback-Funktionen für das Input-Event an.\n\t */\n\t@Prop() public _on?: InputTypeOnDefault;\n\n\t/**\n\t * Defines a validation pattern for the input field.\n\t */\n\t@Prop() public _pattern?: string;\n\n\t/**\n\t * Defines the placeholder for input field. To be shown when there's no value.\n\t */\n\t@Prop() public _placeholder?: string;\n\n\t/**\n\t * Makes the input element read only.\n\t * @TODO: Change type back to `ReadOnlyPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _readOnly?: boolean = false;\n\n\t/**\n\t * Makes the input element required.\n\t * @TODO: Change type back to `RequiredPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _required?: boolean = false;\n\n\t/**\n\t * Setzt die Breite des Eingabefeldes in Buchstabenbreiten.\n\t */\n\t@Prop() public _size?: number;\n\n\t/**\n\t * Allows to add a button with an arbitrary action within the element (_hide-label only).\n\t */\n\t@Prop() public _smartButton?: Stringified<ButtonProps>;\n\n\t/**\n\t * Suggestions to provide for the input.\n\t */\n\t@Prop() public _suggestions?: SuggestionsPropType;\n\n\t/**\n\t * Selector for synchronizing the value with another input element.\n\t * @internal\n\t */\n\t@Prop() public _syncValueBySelector?: SyncValueBySelectorPropType;\n\n\t/**\n\t * Defines which tab-index the primary element of the component has. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)\n\t */\n\t@Prop() public _tabIndex?: number;\n\n\t/**\n\t * Defines where to show the Tooltip preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _tooltipAlign?: TooltipAlignPropType = 'top';\n\n\t/**\n\t * Shows if the input was touched by a user.\n\t * @TODO: Change type back to `TouchedPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _touched?: boolean = false;\n\n\t/**\n\t * Defines the value of the input.\n\t */\n\t@Prop() public _value?: string;\n\n\t@State() public state: States = {\n\t\t_autoComplete: 'off',\n\t\t_currentLength: 0,\n\t\t_hasValue: false,\n\t\t_hideError: false,\n\t\t_id: `id-${nonce()}`, // ⚠ required\n\t\t_label: '', // ⚠ required\n\t\t_suggestions: [],\n\t};\n\n\tpublic constructor() {\n\t\tthis.controller = new InputEmailController(this, 'input-email', this.host);\n\t}\n\n\t@Watch('_accessKey')\n\tpublic validateAccessKey(value?: string): void {\n\t\tthis.controller.validateAccessKey(value);\n\t}\n\n\t@Watch('_alert')\n\tpublic validateAlert(value?: boolean): void {\n\t\tthis.controller.validateAlert(value);\n\t}\n\n\t@Watch('_autoComplete')\n\tpublic validateAutoComplete(value?: InputTypeOnOff): void {\n\t\tthis.controller.validateAutoComplete(value);\n\t}\n\n\t@Watch('_disabled')\n\tpublic validateDisabled(value?: boolean): void {\n\t\tthis.controller.validateDisabled(value);\n\t}\n\n\t@Watch('_error')\n\tpublic validateError(value?: string): void {\n\t\tthis.controller.validateError(value);\n\t}\n\n\t@Watch('_hasCounter')\n\tpublic validateHasCounter(value?: boolean): void {\n\t\tthis.controller.validateHasCounter(value);\n\t}\n\n\t@Watch('_hideError')\n\tpublic validateHideError(value?: HideErrorPropType): void {\n\t\tthis.controller.validateHideError(value);\n\t}\n\n\t@Watch('_hideLabel')\n\tpublic validateHideLabel(value?: boolean): void {\n\t\tthis.controller.validateHideLabel(value);\n\t}\n\n\t@Watch('_hint')\n\tpublic validateHint(value?: string): void {\n\t\tthis.controller.validateHint(value);\n\t}\n\n\t@Watch('_icon')\n\tpublic validateIcon(value?: Stringified<KoliBriHorizontalIcons>): void {\n\t\tthis.validateIcons(value);\n\t}\n\n\t@Watch('_icons')\n\tpublic validateIcons(value?: Stringified<KoliBriHorizontalIcons>): void {\n\t\tthis.controller.validateIcons(value);\n\t}\n\n\t@Watch('_id')\n\tpublic validateId(value?: string): void {\n\t\tthis.controller.validateId(value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelWithExpertSlotPropType): void {\n\t\tthis.controller.validateLabel(value);\n\t}\n\n\t/**\n\t * @deprecated\n\t */\n\t@Watch('_list')\n\tpublic validateList(value?: Stringified<string[]>): void {\n\t\tthis.validateSuggestions(value);\n\t}\n\n\t@Watch('_maxLength')\n\tpublic validateMaxLength(value?: number): void {\n\t\tthis.controller.validateMaxLength(value);\n\t}\n\n\t@Watch('_multiple')\n\tpublic validateMultiple(value?: MultiplePropType): void {\n\t\tthis.controller.validateMultiple(value);\n\t}\n\n\t@Watch('_name')\n\tpublic validateName(value?: string): void {\n\t\tthis.controller.validateName(value);\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(value?: InputTypeOnDefault): void {\n\t\tthis.controller.validateOn(value);\n\t}\n\n\t@Watch('_pattern')\n\tpublic validatePattern(value?: string): void {\n\t\tthis.controller.validatePattern(value);\n\t}\n\n\t@Watch('_placeholder')\n\tpublic validatePlaceholder(value?: string): void {\n\t\tthis.controller.validatePlaceholder(value);\n\t}\n\n\t@Watch('_readOnly')\n\tpublic validateReadOnly(value?: boolean): void {\n\t\tthis.controller.validateReadOnly(value);\n\t}\n\n\t@Watch('_required')\n\tpublic validateRequired(value?: boolean): void {\n\t\tthis.controller.validateRequired(value);\n\t}\n\n\t/**\n\t * @deprecated\n\t */\n\t@Watch('_size')\n\tpublic validateSize(value?: number): void {\n\t\tthis.controller.validateSize(value);\n\t}\n\n\t@Watch('_suggestions')\n\tpublic validateSuggestions(value?: SuggestionsPropType): void {\n\t\tthis.controller.validateSuggestions(value);\n\t}\n\n\t@Watch('_smartButton')\n\tpublic validateSmartButton(value?: ButtonProps | string): void {\n\t\tthis.controller.validateSmartButton(value);\n\t}\n\n\t@Watch('_syncValueBySelector')\n\tpublic validateSyncValueBySelector(value?: SyncValueBySelectorPropType): void {\n\t\tthis.controller.validateSyncValueBySelector(value);\n\t}\n\n\t@Watch('_tabIndex')\n\tpublic validateTabIndex(value?: number): void {\n\t\tthis.controller.validateTabIndex(value);\n\t}\n\n\t@Watch('_touched')\n\tpublic validateTouched(value?: boolean): void {\n\t\tthis.controller.validateTouched(value);\n\t}\n\n\t@Watch('_value')\n\tpublic validateValue(value?: string): void {\n\t\tthis.controller.validateValue(value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis._alert = this._alert === true;\n\t\tthis._touched = this._touched === true;\n\t\tthis.controller.componentWillLoad();\n\n\t\tthis.state._hasValue = !!this.state._value;\n\t\tthis.controller.addValueChangeListener((v) => (this.state._hasValue = !!v));\n\t}\n}\n"],"mappings":";;;mtBAeO,MAAMA,EAAmB,CAACC,EAAsCC,KACtEC,EAAaF,EAAW,YAAaC,EAAM,E,MCR/BE,UAA6BC,EAGzC,WAAAC,CAAmBL,EAA8CM,EAAcC,GAC9EC,MAAMR,EAAWM,EAAMC,GACvBE,KAAKT,UAAYA,C,CAGX,iBAAAU,CAAkBT,GACxBS,EAAkBD,KAAKT,UAAWC,EAAO,CACxCU,MAAO,CACNC,WAAY,KACX,GAAIH,KAAKT,UAAUa,MAAMC,WAAY,CACpCC,EAAS,2G,MAOP,gBAAAhB,CAAiBE,GACvBF,EAAiBU,KAAKT,UAAWC,E,CAG3B,iBAAAe,GACNR,MAAMQ,oBACNP,KAAKC,kBAAkBD,KAAKT,UAAUc,YACt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AAkH,CAAgBlH,GACtBQ,KAAK4E,WAAW8B,gBAAgBlH,E,CAI1B,mBAAAmH,CAAoBnH,GAC1BQ,KAAK4E,WAAW+B,oBAAoBnH,E,CAI9B,gBAAAoH,CAAiBpH,GACvBQ,KAAK4E,WAAWgC,iBAAiBpH,E,CAI3B,gBAAAqH,CAAiBrH,GACvBQ,KAAK4E,WAAWiC,iBAAiBrH,E,CAO3B,YAAAsH,CAAatH,GACnBQ,KAAK4E,WAAWkC,aAAatH,E,CAIvB,mBAAA8G,CAAoB9G,GAC1BQ,KAAK4E,WAAW0B,oBAAoB9G,E,CAI9B,mBAAAuH,CAAoBvH,GAC1BQ,KAAK4E,WAAWmC,oBAAoBvH,E,CAI9B,2BAAAwH,CAA4BxH,GAClCQ,KAAK4E,WAAWoC,4BAA4BxH,E,CAItC,gBAAAyH,CAAiBzH,GACvBQ,KAAK4E,WAAWqC,iBAAiBzH,E,CAI3B,eAAA0H,CAAgB1H,GACtBQ,KAAK4E,WAAWsC,gBAAgB1H,E,CAI1B,aAAA2H,CAAc3H,GACpBQ,KAAK4E,WAAWuC,cAAc3H,E,CAGxB,iBAAAe,GACNP,KAAK4B,OAAS5B,KAAK4B,SAAW,KAC9B5B,KAAKyC,SAAWzC,KAAKyC,WAAa,KAClCzC,KAAK4E,WAAWrE,oBAEhBP,KAAKI,MAAMqB,YAAczB,KAAKI,MAAMuE,OACpC3E,KAAK4E,WAAWwC,wBAAwBC,GAAOrH,KAAKI,MAAMqB,YAAc4F,G"}
1
+ {"version":3,"names":["validateMultiple","component","value","watchBoolean","InputEmailController","InputTextEmailController","constructor","name","host","super","this","componentWillLoad","_multiple","defaultStyleCss","KolInputEmail","render","ariaDescribedBy","getRenderStates","state","hasSuggestions","Array","isArray","_suggestions","length","hasExpertSlot","showExpertSlot","_label","h","Host","class","_hasValue","email","_hideLabel","_alert","_currentLength","_disabled","_error","_hideError","_hasCounter","_hint","_icons","_id","_maxLength","_readOnly","_required","_smartButton","_tooltipAlign","_touched","onClick","_a","ref","focus","slot","Object","assign","catchRef","title","accessKey","_accessKey","join","undefined","autoCapitalize","autoComplete","_autoComplete","autoCorrect","disabled","multiple","id","list","maxlength","_name","pattern","_pattern","placeholder","_placeholder","readOnly","required","size","_size","spellcheck","type","_value","controller","onFacade","onKeyUp","hostRef","propagateFocus","event","setState","target","code","propagateSubmitEventToForm","form","onChange","nonce","validateAccessKey","validateAlert","validateAutoComplete","validateDisabled","validateError","validateHasCounter","validateHideError","validateHideLabel","validateHint","validateIcon","validateIcons","validateId","validateLabel","validateList","validateSuggestions","validateMaxLength","validateName","validateOn","validatePattern","validatePlaceholder","validateReadOnly","validateRequired","validateSize","validateSmartButton","validateSyncValueBySelector","validateTabIndex","validateTouched","validateValue","addValueChangeListener","v"],"sources":["src/types/props/multiple.ts","src/components/input-email/controller.ts","src/components/input-email/style.css?tag=kol-input-email&mode=default&encapsulation=shadow","src/components/input-email/component.tsx"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchBoolean } from '../../utils/prop.validators';\n\n/* types */\nexport type MultiplePropType = boolean;\n\n/**\n * Makes the input accept multiple inputs.\n */\nexport type PropMultiple = {\n\tmultiple: MultiplePropType;\n};\n\n/* validator */\nexport const validateMultiple = (component: Generic.Element.Component, value?: MultiplePropType): void => {\n\twatchBoolean(component, '_multiple', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { MultiplePropType, validateMultiple } from '../../types/props/multiple';\nimport { InputTextEmailController } from '../input-text/controller';\nimport { Props, Watches } from './types';\n\nexport class InputEmailController extends InputTextEmailController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props;\n\n\tpublic constructor(component: Generic.Element.Component & Props, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateMultiple(value?: MultiplePropType): void {\n\t\tvalidateMultiple(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateMultiple(this.component._multiple);\n\t}\n}\n","@import url(../input-line.css);\n.error.hidden {\n\tdisplay: none;\n}\n","import { Component, Element, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { Stringified } from '../../types/common';\nimport { KoliBriHorizontalIcons } from '../../types/icons';\nimport { InputTypeOnDefault, InputTypeOnOff } from '../../types/input/types';\nimport { HideErrorPropType } from '../../types/props/hide-error';\nimport { IdPropType } from '../../types/props/id';\nimport { LabelWithExpertSlotPropType } from '../../types/props/label';\nimport { MultiplePropType } from '../../types/props/multiple';\nimport { NamePropType } from '../../types/props/name';\nimport { SuggestionsPropType } from '../../types/props/suggestions';\nimport { SyncValueBySelectorPropType } from '../../types/props/sync-value-by-selector';\nimport { TooltipAlignPropType } from '../../types/props/tooltip-align';\nimport { nonce } from '../../utils/dev.utils';\nimport { setState } from '../../utils/prop.validators';\nimport { propagateFocus, showExpertSlot } from '../../utils/reuse';\nimport { Props as ButtonProps } from '../button/types';\nimport { propagateSubmitEventToForm } from '../form/controller';\nimport { getRenderStates } from '../input/controller';\nimport { InputEmailController } from './controller';\nimport { API, States } from './types';\n\n/**\n * @slot - Die Beschriftung des Eingabefeldes.\n */\n@Component({\n\ttag: 'kol-input-email',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolInputEmail implements API {\n\t@Element() private readonly host?: HTMLKolInputEmailElement;\n\tprivate ref?: HTMLInputElement;\n\n\tprivate readonly catchRef = (ref?: HTMLInputElement) => {\n\t\tthis.ref = ref;\n\t\tpropagateFocus(this.host, this.ref);\n\t};\n\n\tprivate readonly onKeyUp = (event: KeyboardEvent) => {\n\t\tsetState(this, '_currentLength', (event.target as HTMLInputElement).value.length);\n\t\tif (event.code === 'Enter') {\n\t\t\tpropagateSubmitEventToForm({\n\t\t\t\tform: this.host,\n\t\t\t\tref: this.ref,\n\t\t\t});\n\t\t} else {\n\t\t\tthis.controller.onFacade.onChange(event);\n\t\t}\n\t};\n\n\tpublic render(): JSX.Element {\n\t\tconst { ariaDescribedBy } = getRenderStates(this.state);\n\t\tconst hasSuggestions = Array.isArray(this.state._suggestions) && this.state._suggestions.length > 0;\n\t\tconst hasExpertSlot = showExpertSlot(this.state._label);\n\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={{\n\t\t\t\t\t'has-value': this.state._hasValue,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<kol-input\n\t\t\t\t\tclass={{ email: true, 'hide-label': !!this.state._hideLabel }}\n\t\t\t\t\t_alert={this.state._alert}\n\t\t\t\t\t_currentLength={this.state._currentLength}\n\t\t\t\t\t_disabled={this.state._disabled}\n\t\t\t\t\t_error={this.state._error}\n\t\t\t\t\t_hideError={this.state._hideError}\n\t\t\t\t\t_hasCounter={this.state._hasCounter}\n\t\t\t\t\t_hideLabel={this.state._hideLabel}\n\t\t\t\t\t_hint={this.state._hint}\n\t\t\t\t\t_icons={this.state._icons}\n\t\t\t\t\t_id={this.state._id}\n\t\t\t\t\t_label={this.state._label}\n\t\t\t\t\t_suggestions={this.state._suggestions}\n\t\t\t\t\t_maxLength={this.state._maxLength}\n\t\t\t\t\t_readOnly={this.state._readOnly}\n\t\t\t\t\t_required={this.state._required}\n\t\t\t\t\t_smartButton={this.state._smartButton}\n\t\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t\t_touched={this.state._touched}\n\t\t\t\t\tonClick={() => this.ref?.focus()}\n\t\t\t\t>\n\t\t\t\t\t{/* TODO: der folgende Slot ohne Name muss später entfernt werden */}\n\t\t\t\t\t<span slot=\"label\">{hasExpertSlot ? <slot></slot> : this.state._label}</span>\n\t\t\t\t\t<div slot=\"input\">\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\t\t\ttitle=\"\"\n\t\t\t\t\t\t\taccessKey={this.state._accessKey}\n\t\t\t\t\t\t\taria-describedby={ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined}\n\t\t\t\t\t\t\taria-label={this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined}\n\t\t\t\t\t\t\tautoCapitalize=\"off\"\n\t\t\t\t\t\t\tautoComplete={this.state._autoComplete}\n\t\t\t\t\t\t\tautoCorrect=\"off\"\n\t\t\t\t\t\t\tdisabled={this.state._disabled}\n\t\t\t\t\t\t\tmultiple={this.state._multiple}\n\t\t\t\t\t\t\tid={this.state._id}\n\t\t\t\t\t\t\tlist={hasSuggestions ? `${this.state._id}-list` : undefined}\n\t\t\t\t\t\t\tmaxlength={this.state._maxLength}\n\t\t\t\t\t\t\tname={this.state._name}\n\t\t\t\t\t\t\tpattern={this.state._pattern}\n\t\t\t\t\t\t\tplaceholder={this.state._placeholder}\n\t\t\t\t\t\t\treadOnly={this.state._readOnly}\n\t\t\t\t\t\t\trequired={this.state._required}\n\t\t\t\t\t\t\tsize={this.state._size}\n\t\t\t\t\t\t\tspellcheck=\"false\"\n\t\t\t\t\t\t\ttype=\"email\"\n\t\t\t\t\t\t\tvalue={this.state._value as string}\n\t\t\t\t\t\t\t{...this.controller.onFacade}\n\t\t\t\t\t\t\tonKeyUp={this.onKeyUp}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t</kol-input>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate readonly controller: InputEmailController;\n\n\t/**\n\t * Defines which key combination can be used to trigger or focus the interactive element of the component.\n\t */\n\t@Prop() public _accessKey?: string;\n\n\t/**\n\t * Defines whether the screen-readers should read out the notification.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _alert?: boolean = true;\n\n\t/**\n\t * Defines whether the input can be auto-completed.\n\t */\n\t@Prop() public _autoComplete?: InputTypeOnOff;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t * @TODO: Change type back to `DisabledPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Defines the error message text.\n\t */\n\t@Prop() public _error?: string;\n\n\t/**\n\t * Shows the character count on the lower border of the input.\n\t * @TODO: Change type back to `HasCounterPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hasCounter?: boolean = false;\n\n\t/**\n\t * Hides the error message but leaves it in the DOM for the input's aria-describedby.\n\t * @TODO: Change type back to `HideErrorPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _hideError?: boolean = false;\n\n\t/**\n\t * Hides the caption by default and displays the caption text with a tooltip when the\n\t * interactive element is focused or the mouse is over it.\n\t * @TODO: Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hideLabel?: boolean = false;\n\n\t/**\n\t * Defines the hint text.\n\t */\n\t@Prop() public _hint?: string = '';\n\n\t/**\n\t * @deprecated Use _icons.\n\t */\n\t@Prop() public _icon?: Stringified<KoliBriHorizontalIcons>; /**\n\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: Stringified<KoliBriHorizontalIcons>;\n\n\t/**\n\t * Defines the internal ID of the primary component element.\n\t */\n\t@Prop() public _id?: IdPropType;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label?: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Deprecated: Gibt die Liste der Vorschlagswörter an.\n\t * @deprecated Use _suggestions.\n\t */\n\t@Prop() public _list?: Stringified<string[]>;\n\n\t/**\n\t * Defines the maximum number of input characters.\n\t */\n\t@Prop() public _maxLength?: number;\n\n\t/**\n\t * Makes the input accept multiple inputs.\n\t * @TODO: Change type back to `MultiplePropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _multiple?: boolean = false;\n\n\t/**\n\t * Defines the technical name of an input field.\n\t */\n\t@Prop() public _name?: NamePropType;\n\n\t/**\n\t * Gibt die EventCallback-Funktionen für das Input-Event an.\n\t */\n\t@Prop() public _on?: InputTypeOnDefault;\n\n\t/**\n\t * Defines a validation pattern for the input field.\n\t */\n\t@Prop() public _pattern?: string;\n\n\t/**\n\t * Defines the placeholder for input field. To be shown when there's no value.\n\t */\n\t@Prop() public _placeholder?: string;\n\n\t/**\n\t * Makes the input element read only.\n\t * @TODO: Change type back to `ReadOnlyPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _readOnly?: boolean = false;\n\n\t/**\n\t * Makes the input element required.\n\t * @TODO: Change type back to `RequiredPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _required?: boolean = false;\n\n\t/**\n\t * Setzt die Breite des Eingabefeldes in Buchstabenbreiten.\n\t */\n\t@Prop() public _size?: number;\n\n\t/**\n\t * Allows to add a button with an arbitrary action within the element (_hide-label only).\n\t */\n\t@Prop() public _smartButton?: Stringified<ButtonProps>;\n\n\t/**\n\t * Suggestions to provide for the input.\n\t */\n\t@Prop() public _suggestions?: SuggestionsPropType;\n\n\t/**\n\t * Selector for synchronizing the value with another input element.\n\t * @internal\n\t */\n\t@Prop() public _syncValueBySelector?: SyncValueBySelectorPropType;\n\n\t/**\n\t * Defines which tab-index the primary element of the component has. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)\n\t */\n\t@Prop() public _tabIndex?: number;\n\n\t/**\n\t * Defines where to show the Tooltip preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _tooltipAlign?: TooltipAlignPropType = 'top';\n\n\t/**\n\t * Shows if the input was touched by a user.\n\t * @TODO: Change type back to `TouchedPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _touched?: boolean = false;\n\n\t/**\n\t * Defines the value of the input.\n\t */\n\t@Prop() public _value?: string;\n\n\t@State() public state: States = {\n\t\t_autoComplete: 'off',\n\t\t_currentLength: 0,\n\t\t_hasValue: false,\n\t\t_hideError: false,\n\t\t_id: `id-${nonce()}`, // ⚠ required\n\t\t_label: '', // ⚠ required\n\t\t_suggestions: [],\n\t};\n\n\tpublic constructor() {\n\t\tthis.controller = new InputEmailController(this, 'input-email', this.host);\n\t}\n\n\t@Watch('_accessKey')\n\tpublic validateAccessKey(value?: string): void {\n\t\tthis.controller.validateAccessKey(value);\n\t}\n\n\t@Watch('_alert')\n\tpublic validateAlert(value?: boolean): void {\n\t\tthis.controller.validateAlert(value);\n\t}\n\n\t@Watch('_autoComplete')\n\tpublic validateAutoComplete(value?: InputTypeOnOff): void {\n\t\tthis.controller.validateAutoComplete(value);\n\t}\n\n\t@Watch('_disabled')\n\tpublic validateDisabled(value?: boolean): void {\n\t\tthis.controller.validateDisabled(value);\n\t}\n\n\t@Watch('_error')\n\tpublic validateError(value?: string): void {\n\t\tthis.controller.validateError(value);\n\t}\n\n\t@Watch('_hasCounter')\n\tpublic validateHasCounter(value?: boolean): void {\n\t\tthis.controller.validateHasCounter(value);\n\t}\n\n\t@Watch('_hideError')\n\tpublic validateHideError(value?: HideErrorPropType): void {\n\t\tthis.controller.validateHideError(value);\n\t}\n\n\t@Watch('_hideLabel')\n\tpublic validateHideLabel(value?: boolean): void {\n\t\tthis.controller.validateHideLabel(value);\n\t}\n\n\t@Watch('_hint')\n\tpublic validateHint(value?: string): void {\n\t\tthis.controller.validateHint(value);\n\t}\n\n\t@Watch('_icon')\n\tpublic validateIcon(value?: Stringified<KoliBriHorizontalIcons>): void {\n\t\tthis.validateIcons(value);\n\t}\n\n\t@Watch('_icons')\n\tpublic validateIcons(value?: Stringified<KoliBriHorizontalIcons>): void {\n\t\tthis.controller.validateIcons(value);\n\t}\n\n\t@Watch('_id')\n\tpublic validateId(value?: string): void {\n\t\tthis.controller.validateId(value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelWithExpertSlotPropType): void {\n\t\tthis.controller.validateLabel(value);\n\t}\n\n\t/**\n\t * @deprecated\n\t */\n\t@Watch('_list')\n\tpublic validateList(value?: Stringified<string[]>): void {\n\t\tthis.validateSuggestions(value);\n\t}\n\n\t@Watch('_maxLength')\n\tpublic validateMaxLength(value?: number): void {\n\t\tthis.controller.validateMaxLength(value);\n\t}\n\n\t@Watch('_multiple')\n\tpublic validateMultiple(value?: MultiplePropType): void {\n\t\tthis.controller.validateMultiple(value);\n\t}\n\n\t@Watch('_name')\n\tpublic validateName(value?: string): void {\n\t\tthis.controller.validateName(value);\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(value?: InputTypeOnDefault): void {\n\t\tthis.controller.validateOn(value);\n\t}\n\n\t@Watch('_pattern')\n\tpublic validatePattern(value?: string): void {\n\t\tthis.controller.validatePattern(value);\n\t}\n\n\t@Watch('_placeholder')\n\tpublic validatePlaceholder(value?: string): void {\n\t\tthis.controller.validatePlaceholder(value);\n\t}\n\n\t@Watch('_readOnly')\n\tpublic validateReadOnly(value?: boolean): void {\n\t\tthis.controller.validateReadOnly(value);\n\t}\n\n\t@Watch('_required')\n\tpublic validateRequired(value?: boolean): void {\n\t\tthis.controller.validateRequired(value);\n\t}\n\n\t/**\n\t * @deprecated\n\t */\n\t@Watch('_size')\n\tpublic validateSize(value?: number): void {\n\t\tthis.controller.validateSize(value);\n\t}\n\n\t@Watch('_suggestions')\n\tpublic validateSuggestions(value?: SuggestionsPropType): void {\n\t\tthis.controller.validateSuggestions(value);\n\t}\n\n\t@Watch('_smartButton')\n\tpublic validateSmartButton(value?: ButtonProps | string): void {\n\t\tthis.controller.validateSmartButton(value);\n\t}\n\n\t@Watch('_syncValueBySelector')\n\tpublic validateSyncValueBySelector(value?: SyncValueBySelectorPropType): void {\n\t\tthis.controller.validateSyncValueBySelector(value);\n\t}\n\n\t@Watch('_tabIndex')\n\tpublic validateTabIndex(value?: number): void {\n\t\tthis.controller.validateTabIndex(value);\n\t}\n\n\t@Watch('_touched')\n\tpublic validateTouched(value?: boolean): void {\n\t\tthis.controller.validateTouched(value);\n\t}\n\n\t@Watch('_value')\n\tpublic validateValue(value?: string): void {\n\t\tthis.controller.validateValue(value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis._alert = this._alert === true;\n\t\tthis._touched = this._touched === true;\n\t\tthis.controller.componentWillLoad();\n\n\t\tthis.state._hasValue = !!this.state._value;\n\t\tthis.controller.addValueChangeListener((v) => (this.state._hasValue = !!v));\n\t}\n}\n"],"mappings":";;;gsBAeO,MAAMA,EAAmB,CAACC,EAAsCC,KACtEC,EAAaF,EAAW,YAAaC,EAAM,E,MCV/BE,UAA6BC,EAGzC,WAAAC,CAAmBL,EAA8CM,EAAcC,GAC9EC,MAAMR,EAAWM,EAAMC,GACvBE,KAAKT,UAAYA,C,CAGX,gBAAAD,CAAiBE,GACvBF,EAAiBU,KAAKT,UAAWC,E,CAG3B,iBAAAS,GACNF,MAAME,oBACND,KAAKV,iBAAiBU,KAAKT,UAAUW,U,ECpBvC,MAAMC,EAAkB,mkE,MCgCXC,EAAa,MAqBlB,MAAAC,GACN,MAAMC,gBAAEA,GAAoBC,EAAgBP,KAAKQ,OACjD,MAAMC,EAAiBC,MAAMC,QAAQX,KAAKQ,MAAMI,eAAiBZ,KAAKQ,MAAMI,aAAaC,OAAS,EAClG,MAAMC,EAAgBC,EAAef,KAAKQ,MAAMQ,QAEhD,OACCC,EAACC,EAAI,CACJC,MAAO,CACN,YAAanB,KAAKQ,MAAMY,YAGzBH,EAAA,aACCE,MAAO,CAAEE,MAAO,KAAM,eAAgBrB,KAAKQ,MAAMc,YACjDC,OAAQvB,KAAKQ,MAAMe,OACnBC,eAAgBxB,KAAKQ,MAAMgB,eAC3BC,UAAWzB,KAAKQ,MAAMiB,UACtBC,OAAQ1B,KAAKQ,MAAMkB,OACnBC,WAAY3B,KAAKQ,MAAMmB,WACvBC,YAAa5B,KAAKQ,MAAMoB,YACxBN,WAAYtB,KAAKQ,MAAMc,WACvBO,MAAO7B,KAAKQ,MAAMqB,MAClBC,OAAQ9B,KAAKQ,MAAMsB,OACnBC,IAAK/B,KAAKQ,MAAMuB,IAChBf,OAAQhB,KAAKQ,MAAMQ,OACnBJ,aAAcZ,KAAKQ,MAAMI,a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,SAAWrC,KAAKqC,WAAa,KAClCrC,KAAKwE,WAAWvE,oBAEhBD,KAAKQ,MAAMY,YAAcpB,KAAKQ,MAAM+D,OACpCvE,KAAKwE,WAAWyC,wBAAwBC,GAAOlH,KAAKQ,MAAMY,YAAc8F,G"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as t,H as e,r as i,g as a}from"./index-d46a1c6a.js";import{n as s}from"./dev.utils-b8a2ec94.js";import{s as n,t as l}from"./events-2bb1065b.js";import{a as o,s as r}from"./reuse-b3566e4c.js";import{v as d,g as h}from"./controller-3444f586.js";import{a as p}from"./a11y.tipps-786571db.js";import{d as u,a as c}from"./prop.validators-e20b06c5.js";import{I as f}from"./controller-icon-105c05dd.js";import"./hide-label-f059671e.js";import"./label-d69274a4.js";import"./tab-index-c779bf01.js";import"./associated.controller-90adea5d.js";import"./index-d56bfd0f.js";import"./icons-5b410219.js";class m extends f{constructor(t,e,i){super(t,e,i),this.component=t}validateAccept(t){u(this.component,"_accept",t)}validateHideError(t){d(this.component,t,{hooks:{afterPatch:()=>{this.component.state._hideError&&p("Property hide-error for inputs: Only use when the error message is shown outside of the input component.")}}})}validateMultiple(t){c(this.component,"_multiple",t)}validateRequired(t){c(this.component,"_required",t)}validateValue(t){u(this.component,"_value",t),this.setFormAssociatedValue(this.component._value)}componentWillLoad(){super.componentWillLoad(),this.validateAccept(this.component._accept),this.validateHideError(this.component._hideError),this.validateMultiple(this.component._multiple),this.validateRequired(this.component._required),this.validateValue(this.component._value)}}const v=":host{--a11y-min-size:44px;font-family:Verdana}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role='button'],button:not([role='link']),kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}:host{max-width:100%}*{box-sizing:border-box}kol-span-wc{display:grid;place-items:center}kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}.icon-only>kol-span-wc>span>span{display:none}.required label>span::after,.required legend>span::after{content:'*'}:host{display:block}input,textarea{cursor:text}input[type='checkbox'],input[type='color'],input[type='file'],input[type='radio'],input[type='range'],label,option,select{cursor:pointer}input[type='color'],input[type='date'],input[type='datetime-local'],input[type='email'],input[type='file'],input[type='month'],input[type='number'],input[type='password'],input[type='search'],input[type='tel'],input[type='text'],input[type='time'],input[type='url'],input[type='week'],select,select[multiple] option,textarea{font-size:1rem;width:100%}input[type='file']{padding:calc((var(--a11y-min-size) - 1rem) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - 1rem) / 2) 0.5em}kol-input.disabled :is(button,input,label,option,select,textarea){cursor:not-allowed;opacity:0.5}kol-input{display:grid}kol-input .input-slot{flex-grow:1}input:not([type='checkbox'],[type='radio']),select:not([multiple],[size]){height:2.75em}input:focus,option:focus,select:focus,textarea:focus{outline:0}.input{display:flex;align-items:center}.input>kol-icon{display:grid;height:var(--a11y-min-size);place-items:center}kol-input.required .input-tooltip .span-label::after{content:'*'}label input[type='file']::-webkit-file-upload-button{display:none}label input[type='file']:before{content:'Datei auswählen'}label input[multiple]:before{content:'Dateien auswählen'}div.input{cursor:pointer}.error.hidden{display:none}",b=class{render(){const{ariaDescribedBy:i}=h(this.state),a=r(this.state._label);return t(e,null,t("kol-input",{class:{file:!0,"hide-label":!!this.state._hideLabel},_disabled:this.state._disabled,_error:this.state._error,_hideError:this.state._hideError,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_icons:this.state._icons,_id:this.state._id,_label:this.state._label,_required:this.state._required,_smartButton:this.state._smartButton,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched,onClick:()=>{var t;return null===(t=this.ref)||void 0===t?void 0:t.focus()}},t("span",{slot:"label"},a?t("slot",null):this.state._label),t("div",{slot:"input"},t("input",Object.assign({ref:this.catchRef,title:"",accept:this.state._accept,accessKey:this.state._accessKey,"aria-describedby":i.length>0?i.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,autoCapitalize:"off",autoCorrect:"off",disabled:this.state._disabled,id:this.state._id,multiple:this.state._multiple,name:this.state._name,required:this.state._required,spellcheck:"false",type:"file",value:this.state._value},this.controller.onFacade,{onChange:this.onChange})))))}constructor(t){i(this,t),this.catchRef=t=>{this.ref=t,o(this.host,this.ref)},this.onChange=t=>{var e;if(this.ref instanceof HTMLInputElement&&"file"===this.ref.type){const i=this.ref.files;n(t),l("change",this.host,i),this.controller.setFormAssociatedValue(i),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onChange)&&this.state._on.onChange(t,i)}},this._accept=void 0,this._accessKey=void 0,this._alert=!0,this._disabled=!1,this._error=void 0,this._hideError=!1,this._hideLabel=!1,this._hint="",this._icon=void 0,this._icons=void 0,this._id=void 0,this._label=void 0,this._multiple=!1,this._name=void 0,this._on=void 0,this._required=!1,this._smartButton=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this.state={_hideError:!1,_id:`id-${s()}`,_label:""},this.controller=new m(this,"input-file",this.host)}validateAccept(t){this.controller.validateAccept(t)}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAlert(t){this.controller.validateAlert(t)}validateDisabled(t){this.controller.validateDisabled(t)}validateError(t){this.controller.validateError(t)}validateHideError(t){this.controller.validateHideError(t)}validateHideLabel(t){this.controller.validateHideLabel(t)}validateHint(t){this.controller.validateHint(t)}validateIcon(t){this.validateIcons(t)}validateIcons(t){this.controller.validateIcons(t)}validateId(t){this.controller.validateId(t)}validateLabel(t){this.controller.validateLabel(t)}validateMultiple(t){this.controller.validateMultiple(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validateRequired(t){this.controller.validateRequired(t)}validateSmartButton(t){this.controller.validateSmartButton(t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){this.controller.validateTabIndex(t)}validateTouched(t){this.controller.validateTouched(t)}validateValue(t){this.controller.validateValue(t)}componentWillLoad(){this._alert=!0===this._alert,this._touched=!0===this._touched,this.controller.componentWillLoad()}get host(){return a(this)}static get watchers(){return{_accept:["validateAccept"],_accessKey:["validateAccessKey"],_alert:["validateAlert"],_disabled:["validateDisabled"],_error:["validateError"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icon:["validateIcon"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_multiple:["validateMultiple"],_name:["validateName"],_on:["validateOn"],_required:["validateRequired"],_smartButton:["validateSmartButton"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};b.style={default:v};export{b as kol_input_file};
4
+ import{h as t,H as e,r as i,g as a}from"./index-5dfe6d77.js";import{n as s}from"./dev.utils-41a91551.js";import{s as l,t as n}from"./events-fa760b68.js";import{a as o,s as d}from"./reuse-d79ab469.js";import{g as r}from"./controller-c0324c56.js";import{d as h,a as p}from"./prop.validators-26c53e8e.js";import{I as u}from"./controller-icon-f6d5ee93.js";import"./hide-label-a37738db.js";import"./label-3290121e.js";import"./a11y.tipps-b72d567f.js";import"./tab-index-b5f129ef.js";import"./associated.controller-e82ccadd.js";import"./index-b580aa97.js";import"./icons-70fec733.js";class c extends u{constructor(t,e,i){super(t,e,i),this.component=t}validateAccept(t){h(this.component,"_accept",t)}validateMultiple(t){p(this.component,"_multiple",t)}validateRequired(t){p(this.component,"_required",t)}validateValue(t){h(this.component,"_value",t),this.setFormAssociatedValue(this.component._value)}componentWillLoad(){super.componentWillLoad(),this.validateAccept(this.component._accept),this.validateMultiple(this.component._multiple),this.validateRequired(this.component._required),this.validateValue(this.component._value)}}const f=":host{--a11y-min-size:44px;background-color:white;color:black;font-family:Verdana}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role='button'],button:not([role='link']),kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}[hidden]{display:none !important}:host{max-width:100%}*{box-sizing:border-box}kol-span-wc{display:grid;place-items:center}kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}.icon-only>kol-span-wc>span>span{display:none}.required label>span::after,.required legend>span::after{content:'*'}:host{display:block}input,textarea{cursor:text}input[type='checkbox'],input[type='color'],input[type='file'],input[type='radio'],input[type='range'],label,option,select{cursor:pointer}input[type='color'],input[type='date'],input[type='datetime-local'],input[type='email'],input[type='file'],input[type='month'],input[type='number'],input[type='password'],input[type='search'],input[type='tel'],input[type='text'],input[type='time'],input[type='url'],input[type='week'],select,select[multiple] option,textarea{font-size:1rem;width:100%}input[type='file']{padding:calc((var(--a11y-min-size) - 1rem) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - 1rem) / 2) 0.5em}kol-input.disabled :is(button,input,option,select,textarea,.input-label){cursor:not-allowed;opacity:0.5}kol-input{display:grid}kol-input .input-slot{flex-grow:1}input:not([type='checkbox'],[type='radio']),select:not([multiple],[size]){height:2.75em}input:focus,option:focus,select:focus,textarea:focus{outline:0}.input{display:flex;align-items:center}.input>kol-icon{display:grid;height:var(--a11y-min-size);place-items:center}kol-input.required .input-tooltip .span-label::after{content:'*'}label input[type='file']::-webkit-file-upload-button{display:none}label input[type='file']:before{content:'Datei auswählen'}label input[multiple]:before{content:'Dateien auswählen'}div.input{cursor:pointer}.error.hidden{display:none}",m=class{render(){const{ariaDescribedBy:i}=r(this.state),a=d(this.state._label);return t(e,null,t("kol-input",{class:{file:!0,"hide-label":!!this.state._hideLabel},_disabled:this.state._disabled,_error:this.state._error,_hideError:this.state._hideError,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_icons:this.state._icons,_id:this.state._id,_label:this.state._label,_required:this.state._required,_smartButton:this.state._smartButton,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched,onClick:()=>{var t;return null===(t=this.ref)||void 0===t?void 0:t.focus()}},t("span",{slot:"label"},a?t("slot",null):this.state._label),t("div",{slot:"input"},t("input",Object.assign({ref:this.catchRef,title:"",accept:this.state._accept,accessKey:this.state._accessKey,"aria-describedby":i.length>0?i.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,autoCapitalize:"off",autoCorrect:"off",disabled:this.state._disabled,id:this.state._id,multiple:this.state._multiple,name:this.state._name,required:this.state._required,spellcheck:"false",type:"file",value:this.state._value},this.controller.onFacade,{onChange:this.onChange})))))}constructor(t){i(this,t),this.catchRef=t=>{this.ref=t,o(this.host,this.ref)},this.onChange=t=>{var e;if(this.ref instanceof HTMLInputElement&&"file"===this.ref.type){const i=this.ref.files;l(t),n("change",this.host,i),this.controller.setFormAssociatedValue(i),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onChange)&&this.state._on.onChange(t,i)}},this._accept=void 0,this._accessKey=void 0,this._alert=!0,this._disabled=!1,this._error=void 0,this._hideError=!1,this._hideLabel=!1,this._hint="",this._icon=void 0,this._icons=void 0,this._id=void 0,this._label=void 0,this._multiple=!1,this._name=void 0,this._on=void 0,this._required=!1,this._smartButton=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this.state={_hideError:!1,_id:`id-${s()}`,_label:""},this.controller=new c(this,"input-file",this.host)}validateAccept(t){this.controller.validateAccept(t)}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAlert(t){this.controller.validateAlert(t)}validateDisabled(t){this.controller.validateDisabled(t)}validateError(t){this.controller.validateError(t)}validateHideError(t){this.controller.validateHideError(t)}validateHideLabel(t){this.controller.validateHideLabel(t)}validateHint(t){this.controller.validateHint(t)}validateIcon(t){this.validateIcons(t)}validateIcons(t){this.controller.validateIcons(t)}validateId(t){this.controller.validateId(t)}validateLabel(t){this.controller.validateLabel(t)}validateMultiple(t){this.controller.validateMultiple(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validateRequired(t){this.controller.validateRequired(t)}validateSmartButton(t){this.controller.validateSmartButton(t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){this.controller.validateTabIndex(t)}validateTouched(t){this.controller.validateTouched(t)}validateValue(t){this.controller.validateValue(t)}componentWillLoad(){this._alert=!0===this._alert,this._touched=!0===this._touched,this.controller.componentWillLoad()}get host(){return a(this)}static get watchers(){return{_accept:["validateAccept"],_accessKey:["validateAccessKey"],_alert:["validateAlert"],_disabled:["validateDisabled"],_error:["validateError"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icon:["validateIcon"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_multiple:["validateMultiple"],_name:["validateName"],_on:["validateOn"],_required:["validateRequired"],_smartButton:["validateSmartButton"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};m.style={default:f};export{m as kol_input_file};
@@ -1 +1 @@
1
- {"version":3,"names":["InputFileController","InputIconController","constructor","component","name","host","super","this","validateAccept","value","watchString","validateHideError","hooks","afterPatch","state","_hideError","a11yHint","validateMultiple","watchBoolean","validateRequired","validateValue","setFormAssociatedValue","_value","componentWillLoad","_accept","_multiple","_required","defaultStyleCss","KolInputFile","render","ariaDescribedBy","getRenderStates","hasExpertSlot","showExpertSlot","_label","h","Host","class","file","_hideLabel","_disabled","_error","_hint","_icons","_id","_smartButton","_tooltipAlign","_touched","onClick","_a","ref","focus","slot","Object","assign","catchRef","title","accept","accessKey","_accessKey","length","join","undefined","autoCapitalize","autoCorrect","disabled","id","multiple","_name","required","spellcheck","type","controller","onFacade","onChange","hostRef","propagateFocus","event","HTMLInputElement","files","stopPropagation","tryToDispatchKoliBriEvent","_on","nonce","validateAccessKey","validateAlert","validateDisabled","validateError","validateHideLabel","validateHint","validateIcon","validateIcons","validateId","validateLabel","validateName","validateOn","validateSmartButton","validateSyncValueBySelector","validateTabIndex","validateTouched","_alert"],"sources":["src/components/input-file/controller.ts","src/components/input-file/style.css?tag=kol-input-file&mode=default&encapsulation=shadow","src/components/input-file/component.tsx"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { HideErrorPropType, validateHideError } from '../../types/props/hide-error';\nimport { a11yHint } from '../../utils/a11y.tipps';\nimport { watchBoolean, watchString } from '../../utils/prop.validators';\nimport { InputIconController } from '../@deprecated/input/controller-icon';\nimport { Props, Watches } from './types';\n\nexport class InputFileController extends InputIconController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props;\n\n\tpublic constructor(component: Generic.Element.Component & Props, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateAccept(value?: string): void {\n\t\twatchString(this.component, '_accept', value);\n\t}\n\n\tpublic validateHideError(value?: HideErrorPropType): void {\n\t\tvalidateHideError(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: () => {\n\t\t\t\t\tif (this.component.state._hideError) {\n\t\t\t\t\t\ta11yHint('Property hide-error for inputs: Only use when the error message is shown outside of the input component.');\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic validateMultiple(value?: boolean): void {\n\t\twatchBoolean(this.component, '_multiple', value);\n\t}\n\n\tpublic validateRequired(value?: boolean): void {\n\t\twatchBoolean(this.component, '_required', value);\n\t}\n\n\tpublic validateValue(value?: string): void {\n\t\twatchString(this.component, '_value', value);\n\t\tthis.setFormAssociatedValue(this.component._value as string);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateAccept(this.component._accept);\n\t\tthis.validateHideError(this.component._hideError);\n\t\tthis.validateMultiple(this.component._multiple);\n\t\tthis.validateRequired(this.component._required);\n\t\tthis.validateValue(this.component._value);\n\t}\n}\n","@import url(../input-line.css);\nlabel input[type='file']::-webkit-file-upload-button {\n\tdisplay: none;\n}\nlabel input[type='file']:before {\n\tcontent: 'Datei auswählen';\n}\nlabel input[multiple]:before {\n\tcontent: 'Dateien auswählen';\n}\ndiv.input {\n\tcursor: pointer;\n}\n.error.hidden {\n\tdisplay: none;\n}\n","import { Component, Element, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { Stringified } from '../../types/common';\nimport { KoliBriHorizontalIcons } from '../../types/icons';\nimport { InputTypeOnDefault } from '../../types/input/types';\nimport { HideErrorPropType } from '../../types/props/hide-error';\nimport { IdPropType } from '../../types/props/id';\nimport { LabelWithExpertSlotPropType } from '../../types/props/label';\nimport { NamePropType } from '../../types/props/name';\nimport { SyncValueBySelectorPropType } from '../../types/props/sync-value-by-selector';\nimport { TooltipAlignPropType } from '../../types/props/tooltip-align';\nimport { nonce } from '../../utils/dev.utils';\nimport { stopPropagation, tryToDispatchKoliBriEvent } from '../../utils/events';\nimport { propagateFocus, showExpertSlot } from '../../utils/reuse';\nimport { Props as ButtonProps } from '../button/types';\nimport { getRenderStates } from '../input/controller';\nimport { InputFileController } from './controller';\nimport { API, States } from './types';\n\n/**\n * @slot - Die Beschriftung des Eingabefeldes.\n */\n@Component({\n\ttag: 'kol-input-file',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolInputFile implements API {\n\t@Element() private readonly host?: HTMLKolInputFileElement;\n\tprivate ref?: HTMLInputElement;\n\n\tprivate readonly catchRef = (ref?: HTMLInputElement) => {\n\t\tthis.ref = ref;\n\t\tpropagateFocus(this.host, this.ref);\n\t};\n\n\tpublic render(): JSX.Element {\n\t\tconst { ariaDescribedBy } = getRenderStates(this.state);\n\t\tconst hasExpertSlot = showExpertSlot(this.state._label);\n\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<kol-input\n\t\t\t\t\tclass={{\n\t\t\t\t\t\tfile: true,\n\t\t\t\t\t\t'hide-label': !!this.state._hideLabel,\n\t\t\t\t\t}}\n\t\t\t\t\t_disabled={this.state._disabled}\n\t\t\t\t\t_error={this.state._error}\n\t\t\t\t\t_hideError={this.state._hideError}\n\t\t\t\t\t_hideLabel={this.state._hideLabel}\n\t\t\t\t\t_hint={this.state._hint}\n\t\t\t\t\t_icons={this.state._icons}\n\t\t\t\t\t_id={this.state._id}\n\t\t\t\t\t_label={this.state._label}\n\t\t\t\t\t_required={this.state._required}\n\t\t\t\t\t_smartButton={this.state._smartButton}\n\t\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t\t_touched={this.state._touched}\n\t\t\t\t\tonClick={() => this.ref?.focus()}\n\t\t\t\t>\n\t\t\t\t\t{/* TODO: der folgende Slot ohne Name muss später entfernt werden */}\n\t\t\t\t\t<span slot=\"label\">{hasExpertSlot ? <slot></slot> : this.state._label}</span>\n\t\t\t\t\t<div slot=\"input\">\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\t\t\ttitle=\"\"\n\t\t\t\t\t\t\taccept={this.state._accept}\n\t\t\t\t\t\t\taccessKey={this.state._accessKey}\n\t\t\t\t\t\t\taria-describedby={ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined}\n\t\t\t\t\t\t\taria-label={this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined}\n\t\t\t\t\t\t\tautoCapitalize=\"off\"\n\t\t\t\t\t\t\tautoCorrect=\"off\"\n\t\t\t\t\t\t\tdisabled={this.state._disabled}\n\t\t\t\t\t\t\tid={this.state._id}\n\t\t\t\t\t\t\tmultiple={this.state._multiple}\n\t\t\t\t\t\t\tname={this.state._name}\n\t\t\t\t\t\t\trequired={this.state._required}\n\t\t\t\t\t\t\tspellcheck=\"false\"\n\t\t\t\t\t\t\ttype=\"file\"\n\t\t\t\t\t\t\tvalue={this.state._value as string}\n\t\t\t\t\t\t\t{...this.controller.onFacade}\n\t\t\t\t\t\t\tonChange={this.onChange}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t</kol-input>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate readonly controller: InputFileController;\n\n\t/**\n\t * Defines which file formats are accepted.\n\t */\n\t@Prop() public _accept?: string;\n\n\t/**\n\t * Defines which key combination can be used to trigger or focus the interactive element of the component.\n\t */\n\t@Prop() public _accessKey?: string;\n\n\t/**\n\t * Defines whether the screen-readers should read out the notification.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _alert?: boolean = true;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t * @TODO: Change type back to `DisabledPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Defines the error message text.\n\t */\n\t@Prop() public _error?: string;\n\n\t/**\n\t * Hides the error message but leaves it in the DOM for the input's aria-describedby.\n\t * @TODO: Change type back to `HideErrorPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _hideError?: boolean = false;\n\n\t/**\n\t * Hides the caption by default and displays the caption text with a tooltip when the\n\t * interactive element is focused or the mouse is over it.\n\t * @TODO: Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hideLabel?: boolean = false;\n\n\t/**\n\t * Defines the hint text.\n\t */\n\t@Prop() public _hint?: string = '';\n\n\t/**\n\t * @deprecated Use _icons.\n\t */\n\t@Prop() public _icon?: Stringified<KoliBriHorizontalIcons>;\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: Stringified<KoliBriHorizontalIcons>;\n\n\t/**\n\t * Defines the internal ID of the primary component element.\n\t */\n\t@Prop() public _id?: IdPropType;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label?: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Makes the input accept multiple inputs.\n\t * @TODO: Change type back to `MultiplePropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _multiple?: boolean = false;\n\n\t/**\n\t * Defines the technical name of an input field.\n\t */\n\t@Prop() public _name?: NamePropType;\n\n\t/**\n\t * Gibt die EventCallback-Funktionen für das Input-Event an.\n\t */\n\t@Prop() public _on?: InputTypeOnDefault;\n\n\t/**\n\t * Makes the input element required.\n\t * @TODO: Change type back to `RequiredPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _required?: boolean = false;\n\n\t/**\n\t * Allows to add a button with an arbitrary action within the element (_hide-label only).\n\t */\n\t@Prop() public _smartButton?: Stringified<ButtonProps>;\n\n\t/**\n\t * Selector for synchronizing the value with another input element.\n\t * @internal\n\t */\n\t@Prop() public _syncValueBySelector?: SyncValueBySelectorPropType;\n\n\t/**\n\t * Defines which tab-index the primary element of the component has. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)\n\t */\n\t@Prop() public _tabIndex?: number;\n\n\t/**\n\t * Defines where to show the Tooltip preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _tooltipAlign?: TooltipAlignPropType = 'top';\n\n\t/**\n\t * Shows if the input was touched by a user.\n\t * @TODO: Change type back to `TouchedPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _touched?: boolean = false;\n\n\t/**\n\t * Defines the value of the input.\n\t */\n\t@Prop() public _value?: string;\n\n\t@State() public state: States = {\n\t\t_hideError: false,\n\t\t_id: `id-${nonce()}`, // ⚠ required\n\t\t_label: '', // ⚠ required\n\t};\n\n\tpublic constructor() {\n\t\tthis.controller = new InputFileController(this, 'input-file', this.host);\n\t}\n\n\t@Watch('_accept')\n\tpublic validateAccept(value?: string): void {\n\t\tthis.controller.validateAccept(value);\n\t}\n\n\t@Watch('_accessKey')\n\tpublic validateAccessKey(value?: string): void {\n\t\tthis.controller.validateAccessKey(value);\n\t}\n\n\t@Watch('_alert')\n\tpublic validateAlert(value?: boolean): void {\n\t\tthis.controller.validateAlert(value);\n\t}\n\n\t@Watch('_disabled')\n\tpublic validateDisabled(value?: boolean): void {\n\t\tthis.controller.validateDisabled(value);\n\t}\n\n\t@Watch('_error')\n\tpublic validateError(value?: string): void {\n\t\tthis.controller.validateError(value);\n\t}\n\n\t@Watch('_hideError')\n\tpublic validateHideError(value?: HideErrorPropType): void {\n\t\tthis.controller.validateHideError(value);\n\t}\n\n\t@Watch('_hideLabel')\n\tpublic validateHideLabel(value?: boolean): void {\n\t\tthis.controller.validateHideLabel(value);\n\t}\n\n\t@Watch('_hint')\n\tpublic validateHint(value?: string): void {\n\t\tthis.controller.validateHint(value);\n\t}\n\n\t@Watch('_icon')\n\tpublic validateIcon(value?: Stringified<KoliBriHorizontalIcons>): void {\n\t\tthis.validateIcons(value);\n\t}\n\n\t@Watch('_icons')\n\tpublic validateIcons(value?: Stringified<KoliBriHorizontalIcons>): void {\n\t\tthis.controller.validateIcons(value);\n\t}\n\n\t@Watch('_id')\n\tpublic validateId(value?: string): void {\n\t\tthis.controller.validateId(value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelWithExpertSlotPropType): void {\n\t\tthis.controller.validateLabel(value);\n\t}\n\n\t@Watch('_multiple')\n\tpublic validateMultiple(value?: boolean): void {\n\t\tthis.controller.validateMultiple(value);\n\t}\n\n\t@Watch('_name')\n\tpublic validateName(value?: string): void {\n\t\tthis.controller.validateName(value);\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(value?: InputTypeOnDefault): void {\n\t\tthis.controller.validateOn(value);\n\t}\n\n\t@Watch('_required')\n\tpublic validateRequired(value?: boolean): void {\n\t\tthis.controller.validateRequired(value);\n\t}\n\n\t@Watch('_smartButton')\n\tpublic validateSmartButton(value?: ButtonProps | string): void {\n\t\tthis.controller.validateSmartButton(value);\n\t}\n\n\t@Watch('_syncValueBySelector')\n\tpublic validateSyncValueBySelector(value?: SyncValueBySelectorPropType): void {\n\t\tthis.controller.validateSyncValueBySelector(value);\n\t}\n\n\t@Watch('_tabIndex')\n\tpublic validateTabIndex(value?: number): void {\n\t\tthis.controller.validateTabIndex(value);\n\t}\n\n\t@Watch('_touched')\n\tpublic validateTouched(value?: boolean): void {\n\t\tthis.controller.validateTouched(value);\n\t}\n\n\t@Watch('_value')\n\tpublic validateValue(value?: string): void {\n\t\tthis.controller.validateValue(value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis._alert = this._alert === true;\n\t\tthis._touched = this._touched === true;\n\t\tthis.controller.componentWillLoad();\n\t}\n\n\tprivate onChange = (event: Event): void => {\n\t\tif (this.ref instanceof HTMLInputElement && this.ref.type === 'file') {\n\t\t\tconst value = this.ref.files;\n\n\t\t\t// Event handling\n\t\t\tstopPropagation(event);\n\t\t\ttryToDispatchKoliBriEvent('change', this.host, value);\n\n\t\t\t// Static form handling\n\t\t\tthis.controller.setFormAssociatedValue(value);\n\n\t\t\t// Callback\n\t\t\tif (typeof this.state._on?.onChange === 'function') {\n\t\t\t\tthis.state._on.onChange(event, value);\n\t\t\t}\n\t\t}\n\t};\n}\n"],"mappings":";;;2lBAQaA,UAA4BC,EAGxC,WAAAC,CAAmBC,EAA8CC,EAAcC,GAC9EC,MAAMH,EAAWC,EAAMC,GACvBE,KAAKJ,UAAYA,C,CAGX,cAAAK,CAAeC,GACrBC,EAAYH,KAAKJ,UAAW,UAAWM,E,CAGjC,iBAAAE,CAAkBF,GACxBE,EAAkBJ,KAAKJ,UAAWM,EAAO,CACxCG,MAAO,CACNC,WAAY,KACX,GAAIN,KAAKJ,UAAUW,MAAMC,WAAY,CACpCC,EAAS,2G,MAOP,gBAAAC,CAAiBR,GACvBS,EAAaX,KAAKJ,UAAW,YAAaM,E,CAGpC,gBAAAU,CAAiBV,GACvBS,EAAaX,KAA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iBAAAc,GACNhB,KAAK6F,OAAS7F,KAAK6F,SAAW,KAC9B7F,KAAKwC,SAAWxC,KAAKwC,WAAa,KAClCxC,KAAKiE,WAAWjD,mB"}
1
+ {"version":3,"names":["InputFileController","InputIconController","constructor","component","name","host","super","this","validateAccept","value","watchString","validateMultiple","watchBoolean","validateRequired","validateValue","setFormAssociatedValue","_value","componentWillLoad","_accept","_multiple","_required","defaultStyleCss","KolInputFile","render","ariaDescribedBy","getRenderStates","state","hasExpertSlot","showExpertSlot","_label","h","Host","class","file","_hideLabel","_disabled","_error","_hideError","_hint","_icons","_id","_smartButton","_tooltipAlign","_touched","onClick","_a","ref","focus","slot","Object","assign","catchRef","title","accept","accessKey","_accessKey","length","join","undefined","autoCapitalize","autoCorrect","disabled","id","multiple","_name","required","spellcheck","type","controller","onFacade","onChange","hostRef","propagateFocus","event","HTMLInputElement","files","stopPropagation","tryToDispatchKoliBriEvent","_on","nonce","validateAccessKey","validateAlert","validateDisabled","validateError","validateHideError","validateHideLabel","validateHint","validateIcon","validateIcons","validateId","validateLabel","validateName","validateOn","validateSmartButton","validateSyncValueBySelector","validateTabIndex","validateTouched","_alert"],"sources":["src/components/input-file/controller.ts","src/components/input-file/style.css?tag=kol-input-file&mode=default&encapsulation=shadow","src/components/input-file/component.tsx"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchBoolean, watchString } from '../../utils/prop.validators';\nimport { InputIconController } from '../@deprecated/input/controller-icon';\nimport { Props, Watches } from './types';\n\nexport class InputFileController extends InputIconController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props;\n\n\tpublic constructor(component: Generic.Element.Component & Props, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateAccept(value?: string): void {\n\t\twatchString(this.component, '_accept', value);\n\t}\n\n\tpublic validateMultiple(value?: boolean): void {\n\t\twatchBoolean(this.component, '_multiple', value);\n\t}\n\n\tpublic validateRequired(value?: boolean): void {\n\t\twatchBoolean(this.component, '_required', value);\n\t}\n\n\tpublic validateValue(value?: string): void {\n\t\twatchString(this.component, '_value', value);\n\t\tthis.setFormAssociatedValue(this.component._value as string);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateAccept(this.component._accept);\n\t\tthis.validateMultiple(this.component._multiple);\n\t\tthis.validateRequired(this.component._required);\n\t\tthis.validateValue(this.component._value);\n\t}\n}\n","@import url(../input-line.css);\nlabel input[type='file']::-webkit-file-upload-button {\n\tdisplay: none;\n}\nlabel input[type='file']:before {\n\tcontent: 'Datei auswählen';\n}\nlabel input[multiple]:before {\n\tcontent: 'Dateien auswählen';\n}\ndiv.input {\n\tcursor: pointer;\n}\n.error.hidden {\n\tdisplay: none;\n}\n","import { Component, Element, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { Stringified } from '../../types/common';\nimport { KoliBriHorizontalIcons } from '../../types/icons';\nimport { InputTypeOnDefault } from '../../types/input/types';\nimport { HideErrorPropType } from '../../types/props/hide-error';\nimport { IdPropType } from '../../types/props/id';\nimport { LabelWithExpertSlotPropType } from '../../types/props/label';\nimport { NamePropType } from '../../types/props/name';\nimport { SyncValueBySelectorPropType } from '../../types/props/sync-value-by-selector';\nimport { TooltipAlignPropType } from '../../types/props/tooltip-align';\nimport { nonce } from '../../utils/dev.utils';\nimport { stopPropagation, tryToDispatchKoliBriEvent } from '../../utils/events';\nimport { propagateFocus, showExpertSlot } from '../../utils/reuse';\nimport { Props as ButtonProps } from '../button/types';\nimport { getRenderStates } from '../input/controller';\nimport { InputFileController } from './controller';\nimport { API, States } from './types';\n\n/**\n * @slot - Die Beschriftung des Eingabefeldes.\n */\n@Component({\n\ttag: 'kol-input-file',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolInputFile implements API {\n\t@Element() private readonly host?: HTMLKolInputFileElement;\n\tprivate ref?: HTMLInputElement;\n\n\tprivate readonly catchRef = (ref?: HTMLInputElement) => {\n\t\tthis.ref = ref;\n\t\tpropagateFocus(this.host, this.ref);\n\t};\n\n\tpublic render(): JSX.Element {\n\t\tconst { ariaDescribedBy } = getRenderStates(this.state);\n\t\tconst hasExpertSlot = showExpertSlot(this.state._label);\n\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<kol-input\n\t\t\t\t\tclass={{\n\t\t\t\t\t\tfile: true,\n\t\t\t\t\t\t'hide-label': !!this.state._hideLabel,\n\t\t\t\t\t}}\n\t\t\t\t\t_disabled={this.state._disabled}\n\t\t\t\t\t_error={this.state._error}\n\t\t\t\t\t_hideError={this.state._hideError}\n\t\t\t\t\t_hideLabel={this.state._hideLabel}\n\t\t\t\t\t_hint={this.state._hint}\n\t\t\t\t\t_icons={this.state._icons}\n\t\t\t\t\t_id={this.state._id}\n\t\t\t\t\t_label={this.state._label}\n\t\t\t\t\t_required={this.state._required}\n\t\t\t\t\t_smartButton={this.state._smartButton}\n\t\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t\t_touched={this.state._touched}\n\t\t\t\t\tonClick={() => this.ref?.focus()}\n\t\t\t\t>\n\t\t\t\t\t{/* TODO: der folgende Slot ohne Name muss später entfernt werden */}\n\t\t\t\t\t<span slot=\"label\">{hasExpertSlot ? <slot></slot> : this.state._label}</span>\n\t\t\t\t\t<div slot=\"input\">\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\t\t\ttitle=\"\"\n\t\t\t\t\t\t\taccept={this.state._accept}\n\t\t\t\t\t\t\taccessKey={this.state._accessKey}\n\t\t\t\t\t\t\taria-describedby={ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined}\n\t\t\t\t\t\t\taria-label={this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined}\n\t\t\t\t\t\t\tautoCapitalize=\"off\"\n\t\t\t\t\t\t\tautoCorrect=\"off\"\n\t\t\t\t\t\t\tdisabled={this.state._disabled}\n\t\t\t\t\t\t\tid={this.state._id}\n\t\t\t\t\t\t\tmultiple={this.state._multiple}\n\t\t\t\t\t\t\tname={this.state._name}\n\t\t\t\t\t\t\trequired={this.state._required}\n\t\t\t\t\t\t\tspellcheck=\"false\"\n\t\t\t\t\t\t\ttype=\"file\"\n\t\t\t\t\t\t\tvalue={this.state._value as string}\n\t\t\t\t\t\t\t{...this.controller.onFacade}\n\t\t\t\t\t\t\tonChange={this.onChange}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t</kol-input>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate readonly controller: InputFileController;\n\n\t/**\n\t * Defines which file formats are accepted.\n\t */\n\t@Prop() public _accept?: string;\n\n\t/**\n\t * Defines which key combination can be used to trigger or focus the interactive element of the component.\n\t */\n\t@Prop() public _accessKey?: string;\n\n\t/**\n\t * Defines whether the screen-readers should read out the notification.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _alert?: boolean = true;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t * @TODO: Change type back to `DisabledPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Defines the error message text.\n\t */\n\t@Prop() public _error?: string;\n\n\t/**\n\t * Hides the error message but leaves it in the DOM for the input's aria-describedby.\n\t * @TODO: Change type back to `HideErrorPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _hideError?: boolean = false;\n\n\t/**\n\t * Hides the caption by default and displays the caption text with a tooltip when the\n\t * interactive element is focused or the mouse is over it.\n\t * @TODO: Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hideLabel?: boolean = false;\n\n\t/**\n\t * Defines the hint text.\n\t */\n\t@Prop() public _hint?: string = '';\n\n\t/**\n\t * @deprecated Use _icons.\n\t */\n\t@Prop() public _icon?: Stringified<KoliBriHorizontalIcons>;\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: Stringified<KoliBriHorizontalIcons>;\n\n\t/**\n\t * Defines the internal ID of the primary component element.\n\t */\n\t@Prop() public _id?: IdPropType;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label?: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Makes the input accept multiple inputs.\n\t * @TODO: Change type back to `MultiplePropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _multiple?: boolean = false;\n\n\t/**\n\t * Defines the technical name of an input field.\n\t */\n\t@Prop() public _name?: NamePropType;\n\n\t/**\n\t * Gibt die EventCallback-Funktionen für das Input-Event an.\n\t */\n\t@Prop() public _on?: InputTypeOnDefault;\n\n\t/**\n\t * Makes the input element required.\n\t * @TODO: Change type back to `RequiredPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _required?: boolean = false;\n\n\t/**\n\t * Allows to add a button with an arbitrary action within the element (_hide-label only).\n\t */\n\t@Prop() public _smartButton?: Stringified<ButtonProps>;\n\n\t/**\n\t * Selector for synchronizing the value with another input element.\n\t * @internal\n\t */\n\t@Prop() public _syncValueBySelector?: SyncValueBySelectorPropType;\n\n\t/**\n\t * Defines which tab-index the primary element of the component has. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)\n\t */\n\t@Prop() public _tabIndex?: number;\n\n\t/**\n\t * Defines where to show the Tooltip preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _tooltipAlign?: TooltipAlignPropType = 'top';\n\n\t/**\n\t * Shows if the input was touched by a user.\n\t * @TODO: Change type back to `TouchedPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _touched?: boolean = false;\n\n\t/**\n\t * Defines the value of the input.\n\t */\n\t@Prop() public _value?: string;\n\n\t@State() public state: States = {\n\t\t_hideError: false,\n\t\t_id: `id-${nonce()}`, // ⚠ required\n\t\t_label: '', // ⚠ required\n\t};\n\n\tpublic constructor() {\n\t\tthis.controller = new InputFileController(this, 'input-file', this.host);\n\t}\n\n\t@Watch('_accept')\n\tpublic validateAccept(value?: string): void {\n\t\tthis.controller.validateAccept(value);\n\t}\n\n\t@Watch('_accessKey')\n\tpublic validateAccessKey(value?: string): void {\n\t\tthis.controller.validateAccessKey(value);\n\t}\n\n\t@Watch('_alert')\n\tpublic validateAlert(value?: boolean): void {\n\t\tthis.controller.validateAlert(value);\n\t}\n\n\t@Watch('_disabled')\n\tpublic validateDisabled(value?: boolean): void {\n\t\tthis.controller.validateDisabled(value);\n\t}\n\n\t@Watch('_error')\n\tpublic validateError(value?: string): void {\n\t\tthis.controller.validateError(value);\n\t}\n\n\t@Watch('_hideError')\n\tpublic validateHideError(value?: HideErrorPropType): void {\n\t\tthis.controller.validateHideError(value);\n\t}\n\n\t@Watch('_hideLabel')\n\tpublic validateHideLabel(value?: boolean): void {\n\t\tthis.controller.validateHideLabel(value);\n\t}\n\n\t@Watch('_hint')\n\tpublic validateHint(value?: string): void {\n\t\tthis.controller.validateHint(value);\n\t}\n\n\t@Watch('_icon')\n\tpublic validateIcon(value?: Stringified<KoliBriHorizontalIcons>): void {\n\t\tthis.validateIcons(value);\n\t}\n\n\t@Watch('_icons')\n\tpublic validateIcons(value?: Stringified<KoliBriHorizontalIcons>): void {\n\t\tthis.controller.validateIcons(value);\n\t}\n\n\t@Watch('_id')\n\tpublic validateId(value?: string): void {\n\t\tthis.controller.validateId(value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelWithExpertSlotPropType): void {\n\t\tthis.controller.validateLabel(value);\n\t}\n\n\t@Watch('_multiple')\n\tpublic validateMultiple(value?: boolean): void {\n\t\tthis.controller.validateMultiple(value);\n\t}\n\n\t@Watch('_name')\n\tpublic validateName(value?: string): void {\n\t\tthis.controller.validateName(value);\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(value?: InputTypeOnDefault): void {\n\t\tthis.controller.validateOn(value);\n\t}\n\n\t@Watch('_required')\n\tpublic validateRequired(value?: boolean): void {\n\t\tthis.controller.validateRequired(value);\n\t}\n\n\t@Watch('_smartButton')\n\tpublic validateSmartButton(value?: ButtonProps | string): void {\n\t\tthis.controller.validateSmartButton(value);\n\t}\n\n\t@Watch('_syncValueBySelector')\n\tpublic validateSyncValueBySelector(value?: SyncValueBySelectorPropType): void {\n\t\tthis.controller.validateSyncValueBySelector(value);\n\t}\n\n\t@Watch('_tabIndex')\n\tpublic validateTabIndex(value?: number): void {\n\t\tthis.controller.validateTabIndex(value);\n\t}\n\n\t@Watch('_touched')\n\tpublic validateTouched(value?: boolean): void {\n\t\tthis.controller.validateTouched(value);\n\t}\n\n\t@Watch('_value')\n\tpublic validateValue(value?: string): void {\n\t\tthis.controller.validateValue(value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis._alert = this._alert === true;\n\t\tthis._touched = this._touched === true;\n\t\tthis.controller.componentWillLoad();\n\t}\n\n\tprivate onChange = (event: Event): void => {\n\t\tif (this.ref instanceof HTMLInputElement && this.ref.type === 'file') {\n\t\t\tconst value = this.ref.files;\n\n\t\t\t// Event handling\n\t\t\tstopPropagation(event);\n\t\t\ttryToDispatchKoliBriEvent('change', this.host, value);\n\n\t\t\t// Static form handling\n\t\t\tthis.controller.setFormAssociatedValue(value);\n\n\t\t\t// Callback\n\t\t\tif (typeof this.state._on?.onChange === 'function') {\n\t\t\t\tthis.state._on.onChange(event, value);\n\t\t\t}\n\t\t}\n\t};\n}\n"],"mappings":";;;wkBAMaA,UAA4BC,EAGxC,WAAAC,CAAmBC,EAA8CC,EAAcC,GAC9EC,MAAMH,EAAWC,EAAMC,GACvBE,KAAKJ,UAAYA,C,CAGX,cAAAK,CAAeC,GACrBC,EAAYH,KAAKJ,UAAW,UAAWM,E,CAGjC,gBAAAE,CAAiBF,GACvBG,EAAaL,KAAKJ,UAAW,YAAaM,E,CAGpC,gBAAA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