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

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 (1127) hide show
  1. package/custom-elements.json +1 -1
  2. package/dist/cjs/{a11y.tipps-411d547d.js → a11y.tipps-92411c71.js} +1 -1
  3. package/dist/cjs/{a11y.tipps-411d547d.js.map → a11y.tipps-92411c71.js.map} +1 -1
  4. package/dist/cjs/align-3d31e5d6.js +4 -0
  5. package/dist/cjs/{align-9188853a.js.map → align-3d31e5d6.js.map} +1 -1
  6. package/dist/cjs/{alignment-62eb6ada.js → alignment-c5614ef1.js} +1 -1
  7. package/dist/cjs/{alignment-62eb6ada.js.map → alignment-c5614ef1.js.map} +1 -1
  8. package/dist/cjs/{app-globals-a003081e.js → app-globals-5d8470ed.js} +1 -1
  9. package/dist/cjs/{app-globals-a003081e.js.map → app-globals-5d8470ed.js.map} +1 -1
  10. package/dist/cjs/aria-current-c3f2bebe.js +4 -0
  11. package/dist/cjs/{aria-current-814a3dc4.js.map → aria-current-c3f2bebe.js.map} +1 -1
  12. package/dist/cjs/{associated.controller-48c858f3.js → associated.controller-56d9e762.js} +1 -1
  13. package/dist/cjs/associated.controller-56d9e762.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-0a7cfd01.js} +1 -1
  16. package/dist/cjs/color-0a7cfd01.js.map +1 -0
  17. package/dist/cjs/controller-8ae79249.js +4 -0
  18. package/dist/cjs/controller-8ae79249.js.map +1 -0
  19. package/dist/cjs/{controller-166aba29.js → controller-9a0673b6.js} +1 -1
  20. package/dist/cjs/controller-9a0673b6.js.map +1 -0
  21. package/dist/cjs/{controller-fd19ada2.js → controller-9f9ddc96.js} +1 -1
  22. package/dist/cjs/controller-9f9ddc96.js.map +1 -0
  23. package/dist/cjs/controller-b091f60e.js +4 -0
  24. package/dist/cjs/controller-b091f60e.js.map +1 -0
  25. package/dist/cjs/controller-e3a82ff0.js +4 -0
  26. package/dist/cjs/controller-e3a82ff0.js.map +1 -0
  27. package/dist/cjs/{controller-icon-7ac2c453.js → controller-icon-d1b86ea5.js} +1 -1
  28. package/dist/cjs/controller-icon-d1b86ea5.js.map +1 -0
  29. package/dist/cjs/{custom-class-a1281e0c.js → custom-class-5acfb25f.js} +1 -1
  30. package/dist/cjs/{custom-class-a1281e0c.js.map → custom-class-5acfb25f.js.map} +1 -1
  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-c29072e2.js} +1 -1
  33. package/dist/cjs/dev.utils-c29072e2.js.map +1 -0
  34. package/dist/cjs/{devtools-5f571cd3.js → devtools-5711f93a.js} +1 -1
  35. package/dist/cjs/devtools-5711f93a.js.map +1 -0
  36. package/dist/cjs/{events-a0c291ce.js.map → events-e348a615.js.map} +1 -1
  37. package/dist/cjs/floating-ui.dom.esm-079798c6.js +4 -0
  38. package/dist/cjs/floating-ui.dom.esm-079798c6.js.map +1 -0
  39. package/dist/cjs/has-closer-ac74a785.js +4 -0
  40. package/dist/cjs/{has-closer-7fab148c.js.map → has-closer-ac74a785.js.map} +1 -1
  41. package/dist/cjs/hide-label-badb4945.js +4 -0
  42. package/dist/cjs/{hide-label-5dd90b4b.js.map → hide-label-badb4945.js.map} +1 -1
  43. package/dist/cjs/{i18n-b352d30e.js → i18n-f9e68722.js} +1 -1
  44. package/dist/cjs/{i18n-b352d30e.js.map → i18n-f9e68722.js.map} +1 -1
  45. package/dist/cjs/{icons-da95da9d.js → icons-b09e9f57.js} +1 -1
  46. package/dist/cjs/icons-b09e9f57.js.map +1 -0
  47. package/dist/cjs/image-source-db0ac5db.js +4 -0
  48. package/dist/cjs/{image-source-ac98802d.js.map → image-source-db0ac5db.js.map} +1 -1
  49. package/dist/cjs/index-84f67516.js +4 -0
  50. package/dist/cjs/{index-c3cd3623.js.map → index-84f67516.js.map} +1 -1
  51. package/dist/cjs/{index-82b810c3.js → index-a2400b65.js} +1 -1
  52. package/dist/cjs/index-a2400b65.js.map +1 -0
  53. package/dist/cjs/{index-7988944a.js.map → index-f8b26787.js.map} +1 -1
  54. package/dist/cjs/index.cjs.js +1 -1
  55. package/dist/cjs/index.cjs.js.map +1 -1
  56. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  57. package/dist/cjs/kol-abbr.cjs.entry.js.map +1 -1
  58. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  59. package/dist/cjs/kol-accordion.cjs.entry.js.map +1 -1
  60. package/dist/cjs/kol-alert-wc_3.cjs.entry.js +1 -1
  61. package/dist/cjs/kol-alert-wc_3.cjs.entry.js.map +1 -1
  62. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  63. package/dist/cjs/kol-alert.cjs.entry.js.map +1 -1
  64. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  65. package/dist/cjs/kol-avatar-wc.cjs.entry.js.map +1 -1
  66. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  67. package/dist/cjs/kol-avatar.cjs.entry.js.map +1 -1
  68. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  69. package/dist/cjs/kol-badge.cjs.entry.js.map +1 -1
  70. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  71. package/dist/cjs/kol-breadcrumb.cjs.entry.js.map +1 -1
  72. package/dist/cjs/kol-button-group-wc.cjs.entry.js +1 -1
  73. package/dist/cjs/kol-button-group-wc.cjs.entry.js.map +1 -1
  74. package/dist/cjs/kol-button-group.cjs.entry.js +1 -1
  75. package/dist/cjs/kol-button-group.cjs.entry.js.map +1 -1
  76. package/dist/cjs/kol-button-link-text-switch.cjs.entry.js +1 -1
  77. package/dist/cjs/kol-button-link-text-switch.cjs.entry.js.map +1 -1
  78. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  79. package/dist/cjs/kol-button-link.cjs.entry.js.map +1 -1
  80. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  81. package/dist/cjs/kol-button.cjs.entry.js.map +1 -1
  82. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-card.cjs.entry.js.map +1 -1
  84. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-details.cjs.entry.js.map +1 -1
  86. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  87. package/dist/cjs/kol-form.cjs.entry.js.map +1 -1
  88. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  89. package/dist/cjs/kol-heading.cjs.entry.js.map +1 -1
  90. package/dist/cjs/kol-icon-font-awesome.cjs.entry.js +1 -1
  91. package/dist/cjs/kol-icon-font-awesome.cjs.entry.js.map +1 -1
  92. package/dist/cjs/kol-icon-icofont.cjs.entry.js +1 -1
  93. package/dist/cjs/kol-icon-icofont.cjs.entry.js.map +1 -1
  94. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  95. package/dist/cjs/kol-icon.cjs.entry.js.map +1 -1
  96. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  97. package/dist/cjs/kol-image.cjs.entry.js.map +1 -1
  98. package/dist/cjs/kol-indented-text.cjs.entry.js +1 -1
  99. package/dist/cjs/kol-indented-text.cjs.entry.js.map +1 -1
  100. package/dist/cjs/kol-input-adapter-leanup.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-input-adapter-leanup.cjs.entry.js.map +1 -1
  102. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  103. package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
  104. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  105. package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
  106. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  107. package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
  108. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  109. package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
  110. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  111. package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
  112. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  113. package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
  114. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  115. package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
  116. package/dist/cjs/kol-input-radio-group.cjs.entry.js +1 -1
  117. package/dist/cjs/kol-input-radio-group.cjs.entry.js.map +1 -1
  118. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  119. package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
  120. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  121. package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
  122. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  123. package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
  124. package/dist/cjs/kol-input.cjs.entry.js +1 -1
  125. package/dist/cjs/kol-input.cjs.entry.js.map +1 -1
  126. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  127. package/dist/cjs/kol-kolibri.cjs.entry.js.map +1 -1
  128. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  129. package/dist/cjs/kol-link-button.cjs.entry.js.map +1 -1
  130. package/dist/cjs/kol-link-group.cjs.entry.js +1 -1
  131. package/dist/cjs/kol-link-group.cjs.entry.js.map +1 -1
  132. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  133. package/dist/cjs/kol-link-wc.cjs.entry.js.map +1 -1
  134. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  135. package/dist/cjs/kol-link.cjs.entry.js.map +1 -1
  136. package/dist/cjs/kol-logo.cjs.entry.js +1 -1
  137. package/dist/cjs/kol-logo.cjs.entry.js.map +1 -1
  138. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  139. package/dist/cjs/kol-modal.cjs.entry.js.map +1 -1
  140. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  141. package/dist/cjs/kol-nav.cjs.entry.js.map +1 -1
  142. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  143. package/dist/cjs/kol-pagination.cjs.entry.js.map +1 -1
  144. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  145. package/dist/cjs/kol-popover-wc.cjs.entry.js.map +1 -1
  146. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  147. package/dist/cjs/kol-progress.cjs.entry.js.map +1 -1
  148. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  149. package/dist/cjs/kol-quote.cjs.entry.js.map +1 -1
  150. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  151. package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
  152. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  153. package/dist/cjs/kol-skip-nav.cjs.entry.js.map +1 -1
  154. package/dist/cjs/kol-span-wc_2.cjs.entry.js +1 -1
  155. package/dist/cjs/kol-span-wc_2.cjs.entry.js.map +1 -1
  156. package/dist/cjs/kol-span.cjs.entry.js +1 -1
  157. package/dist/cjs/kol-span.cjs.entry.js.map +1 -1
  158. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  159. package/dist/cjs/kol-spin.cjs.entry.js.map +1 -1
  160. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  161. package/dist/cjs/kol-split-button.cjs.entry.js.map +1 -1
  162. package/dist/cjs/kol-symbol.cjs.entry.js +1 -1
  163. package/dist/cjs/kol-symbol.cjs.entry.js.map +1 -1
  164. package/dist/cjs/kol-table.cjs.entry.js +1 -1
  165. package/dist/cjs/kol-table.cjs.entry.js.map +1 -1
  166. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  167. package/dist/cjs/kol-tabs.cjs.entry.js.map +1 -1
  168. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  169. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  170. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  171. package/dist/cjs/kol-toast-container.cjs.entry.js.map +1 -1
  172. package/dist/cjs/kol-toast.cjs.entry.js +1 -1
  173. package/dist/cjs/kol-toast.cjs.entry.js.map +1 -1
  174. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  175. package/dist/cjs/kol-version.cjs.entry.js.map +1 -1
  176. package/dist/cjs/kolibri.cjs.js +1 -1
  177. package/dist/cjs/kolibri.cjs.js.map +1 -1
  178. package/dist/cjs/{label-83605bf9.js → label-03b63bfd.js} +1 -1
  179. package/dist/cjs/label-03b63bfd.js.map +1 -0
  180. package/dist/cjs/loader.cjs.js +1 -1
  181. package/dist/cjs/open-94bf5fc5.js +4 -0
  182. package/dist/cjs/{open-e3bdad37.js.map → open-94bf5fc5.js.map} +1 -1
  183. package/dist/cjs/{prop.validators-c681a995.js → prop.validators-1f99e6ff.js} +1 -1
  184. package/dist/cjs/prop.validators-1f99e6ff.js.map +1 -0
  185. package/dist/cjs/reprod-accordion-does-not-toggle-with-open-092e559d.js.map +1 -0
  186. package/dist/cjs/reuse-a4c8450e.js.map +1 -0
  187. package/dist/cjs/rows-d098de97.js +4 -0
  188. package/dist/cjs/{rows-e4592ff3.js.map → rows-d098de97.js.map} +1 -1
  189. package/dist/cjs/show-f96935a0.js +4 -0
  190. package/dist/cjs/{show-20042042.js.map → show-f96935a0.js.map} +1 -1
  191. package/dist/cjs/{suggestions-e61abf24.js → suggestions-879c67e1.js} +1 -1
  192. package/dist/cjs/suggestions-879c67e1.js.map +1 -0
  193. package/dist/cjs/{tab-index-7f4077e8.js → tab-index-96b0307a.js} +1 -1
  194. package/dist/cjs/tab-index-96b0307a.js.map +1 -0
  195. package/dist/cjs/{toaster-2958db57.js → toaster-ddf8c471.js} +1 -1
  196. package/dist/cjs/{toaster-2958db57.js.map → toaster-ddf8c471.js.map} +1 -1
  197. package/dist/cjs/toaster-fc0622bd.js.map +1 -0
  198. package/dist/cjs/{tooltip-align-a083b98c.js → tooltip-align-fe56af06.js} +1 -1
  199. package/dist/cjs/{tooltip-align-a083b98c.js.map → tooltip-align-fe56af06.js.map} +1 -1
  200. package/dist/cjs/{unique-nav-labels-9784a4c5.js.map → unique-nav-labels-363e1d71.js.map} +1 -1
  201. package/dist/cjs/{validation-ca6af306.js → validation-5c13ca37.js} +1 -1
  202. package/dist/cjs/{validation-ca6af306.js.map → validation-5c13ca37.js.map} +1 -1
  203. package/dist/cjs/{validation-bc917572.js → validation-f1cde09d.js} +1 -1
  204. package/dist/cjs/{validation-bc917572.js.map → validation-f1cde09d.js.map} +1 -1
  205. package/dist/components/align.js +1 -1
  206. package/dist/components/align.js.map +1 -1
  207. package/dist/components/bund.js.map +1 -1
  208. package/dist/components/color.js.map +1 -1
  209. package/dist/components/component.js.map +1 -1
  210. package/dist/components/component10.js.map +1 -1
  211. package/dist/components/component11.js.map +1 -1
  212. package/dist/components/component12.js +1 -1
  213. package/dist/components/component12.js.map +1 -1
  214. package/dist/components/component13.js +1 -1
  215. package/dist/components/component13.js.map +1 -1
  216. package/dist/components/component14.js +1 -1
  217. package/dist/components/component14.js.map +1 -1
  218. package/dist/components/component15.js +1 -1
  219. package/dist/components/component15.js.map +1 -1
  220. package/dist/components/component16.js +1 -1
  221. package/dist/components/component16.js.map +1 -1
  222. package/dist/components/component2.js +1 -1
  223. package/dist/components/component2.js.map +1 -1
  224. package/dist/components/component3.js +1 -1
  225. package/dist/components/component3.js.map +1 -1
  226. package/dist/components/component4.js.map +1 -1
  227. package/dist/components/component5.js.map +1 -1
  228. package/dist/components/component6.js.map +1 -1
  229. package/dist/components/component7.js.map +1 -1
  230. package/dist/components/component8.js +1 -1
  231. package/dist/components/component8.js.map +1 -1
  232. package/dist/components/component9.js.map +1 -1
  233. package/dist/components/controller-icon.js.map +1 -1
  234. package/dist/components/controller.js +1 -1
  235. package/dist/components/controller.js.map +1 -1
  236. package/dist/components/controller2.js +1 -1
  237. package/dist/components/controller2.js.map +1 -1
  238. package/dist/components/controller3.js +1 -1
  239. package/dist/components/controller3.js.map +1 -1
  240. package/dist/components/controller4.js +1 -1
  241. package/dist/components/controller4.js.map +1 -1
  242. package/dist/components/details-synced-open-state.js.map +1 -1
  243. package/dist/components/devtools.js.map +1 -1
  244. package/dist/components/events.js.map +1 -1
  245. package/dist/components/has-closer.js.map +1 -1
  246. package/dist/components/i18n.js.map +1 -1
  247. package/dist/components/image-source.js.map +1 -1
  248. package/dist/components/index.js.map +1 -1
  249. package/dist/components/index2.js.map +1 -1
  250. package/dist/components/kol-abbr.d.ts +2 -2
  251. package/dist/components/kol-abbr.js +1 -1
  252. package/dist/components/kol-abbr.js.map +1 -1
  253. package/dist/components/kol-accordion.d.ts +2 -2
  254. package/dist/components/kol-accordion.js +1 -1
  255. package/dist/components/kol-accordion.js.map +1 -1
  256. package/dist/components/kol-alert-wc.d.ts +2 -2
  257. package/dist/components/kol-alert.d.ts +2 -2
  258. package/dist/components/kol-avatar-wc.d.ts +2 -2
  259. package/dist/components/kol-avatar.d.ts +2 -2
  260. package/dist/components/kol-avatar.js +1 -1
  261. package/dist/components/kol-avatar.js.map +1 -1
  262. package/dist/components/kol-badge.d.ts +2 -2
  263. package/dist/components/kol-breadcrumb.d.ts +2 -2
  264. package/dist/components/kol-breadcrumb.js +1 -1
  265. package/dist/components/kol-breadcrumb.js.map +1 -1
  266. package/dist/components/kol-button-group-wc.d.ts +2 -2
  267. package/dist/components/kol-button-group.d.ts +2 -2
  268. package/dist/components/kol-button-group.js +1 -1
  269. package/dist/components/kol-button-group.js.map +1 -1
  270. package/dist/components/kol-button-link-text-switch.d.ts +2 -2
  271. package/dist/components/kol-button-link.d.ts +2 -2
  272. package/dist/components/kol-button-link.js +1 -1
  273. package/dist/components/kol-button-link.js.map +1 -1
  274. package/dist/components/kol-button-wc.d.ts +2 -2
  275. package/dist/components/kol-button.d.ts +2 -2
  276. package/dist/components/kol-card.d.ts +2 -2
  277. package/dist/components/kol-card.js +1 -1
  278. package/dist/components/kol-card.js.map +1 -1
  279. package/dist/components/kol-details.d.ts +2 -2
  280. package/dist/components/kol-details.js +1 -1
  281. package/dist/components/kol-details.js.map +1 -1
  282. package/dist/components/kol-form.d.ts +2 -2
  283. package/dist/components/kol-form.js.map +1 -1
  284. package/dist/components/kol-heading-wc.d.ts +2 -2
  285. package/dist/components/kol-heading.d.ts +2 -2
  286. package/dist/components/kol-heading.js +1 -1
  287. package/dist/components/kol-heading.js.map +1 -1
  288. package/dist/components/kol-icon-font-awesome.d.ts +2 -2
  289. package/dist/components/kol-icon-font-awesome.js.map +1 -1
  290. package/dist/components/kol-icon-icofont.d.ts +2 -2
  291. package/dist/components/kol-icon-icofont.js.map +1 -1
  292. package/dist/components/kol-icon.d.ts +2 -2
  293. package/dist/components/kol-image.d.ts +2 -2
  294. package/dist/components/kol-image.js.map +1 -1
  295. package/dist/components/kol-indented-text.d.ts +2 -2
  296. package/dist/components/kol-input-adapter-leanup.d.ts +2 -2
  297. package/dist/components/kol-input-adapter-leanup.js.map +1 -1
  298. package/dist/components/kol-input-checkbox.d.ts +2 -2
  299. package/dist/components/kol-input-checkbox.js +1 -1
  300. package/dist/components/kol-input-checkbox.js.map +1 -1
  301. package/dist/components/kol-input-color.d.ts +2 -2
  302. package/dist/components/kol-input-color.js +1 -1
  303. package/dist/components/kol-input-color.js.map +1 -1
  304. package/dist/components/kol-input-date.d.ts +2 -2
  305. package/dist/components/kol-input-date.js +1 -1
  306. package/dist/components/kol-input-date.js.map +1 -1
  307. package/dist/components/kol-input-email.d.ts +2 -2
  308. package/dist/components/kol-input-email.js +1 -1
  309. package/dist/components/kol-input-email.js.map +1 -1
  310. package/dist/components/kol-input-file.d.ts +2 -2
  311. package/dist/components/kol-input-file.js +1 -1
  312. package/dist/components/kol-input-file.js.map +1 -1
  313. package/dist/components/kol-input-number.d.ts +2 -2
  314. package/dist/components/kol-input-number.js +1 -1
  315. package/dist/components/kol-input-number.js.map +1 -1
  316. package/dist/components/kol-input-password.d.ts +2 -2
  317. package/dist/components/kol-input-password.js +1 -1
  318. package/dist/components/kol-input-password.js.map +1 -1
  319. package/dist/components/kol-input-radio-group.d.ts +2 -2
  320. package/dist/components/kol-input-radio-group.js.map +1 -1
  321. package/dist/components/kol-input-radio.d.ts +2 -2
  322. package/dist/components/kol-input-range.d.ts +2 -2
  323. package/dist/components/kol-input-range.js +1 -1
  324. package/dist/components/kol-input-range.js.map +1 -1
  325. package/dist/components/kol-input-text.d.ts +2 -2
  326. package/dist/components/kol-input-text.js +1 -1
  327. package/dist/components/kol-input-text.js.map +1 -1
  328. package/dist/components/kol-input.d.ts +2 -2
  329. package/dist/components/kol-kolibri.d.ts +2 -2
  330. package/dist/components/kol-kolibri.js +1 -1
  331. package/dist/components/kol-kolibri.js.map +1 -1
  332. package/dist/components/kol-link-button.d.ts +2 -2
  333. package/dist/components/kol-link-button.js +1 -1
  334. package/dist/components/kol-link-button.js.map +1 -1
  335. package/dist/components/kol-link-group.d.ts +2 -2
  336. package/dist/components/kol-link-group.js +1 -1
  337. package/dist/components/kol-link-group.js.map +1 -1
  338. package/dist/components/kol-link-wc.d.ts +2 -2
  339. package/dist/components/kol-link.d.ts +2 -2
  340. package/dist/components/kol-logo.d.ts +2 -2
  341. package/dist/components/kol-logo.js +1 -1
  342. package/dist/components/kol-logo.js.map +1 -1
  343. package/dist/components/kol-modal.d.ts +2 -2
  344. package/dist/components/kol-modal.js +1 -1
  345. package/dist/components/kol-modal.js.map +1 -1
  346. package/dist/components/kol-nav.d.ts +2 -2
  347. package/dist/components/kol-nav.js +1 -1
  348. package/dist/components/kol-nav.js.map +1 -1
  349. package/dist/components/kol-pagination.d.ts +2 -2
  350. package/dist/components/kol-popover-wc.d.ts +2 -2
  351. package/dist/components/kol-popover-wc.js +1 -1
  352. package/dist/components/kol-popover-wc.js.map +1 -1
  353. package/dist/components/kol-progress.d.ts +2 -2
  354. package/dist/components/kol-progress.js +1 -1
  355. package/dist/components/kol-progress.js.map +1 -1
  356. package/dist/components/kol-quote.d.ts +2 -2
  357. package/dist/components/kol-quote.js +1 -1
  358. package/dist/components/kol-quote.js.map +1 -1
  359. package/dist/components/kol-select.d.ts +2 -2
  360. package/dist/components/kol-skip-nav.d.ts +2 -2
  361. package/dist/components/kol-skip-nav.js +1 -1
  362. package/dist/components/kol-skip-nav.js.map +1 -1
  363. package/dist/components/kol-span-wc.d.ts +2 -2
  364. package/dist/components/kol-span.d.ts +2 -2
  365. package/dist/components/kol-span.js +1 -1
  366. package/dist/components/kol-span.js.map +1 -1
  367. package/dist/components/kol-spin.d.ts +2 -2
  368. package/dist/components/kol-spin.js +1 -1
  369. package/dist/components/kol-spin.js.map +1 -1
  370. package/dist/components/kol-split-button.d.ts +2 -2
  371. package/dist/components/kol-split-button.js +1 -1
  372. package/dist/components/kol-split-button.js.map +1 -1
  373. package/dist/components/kol-symbol.d.ts +2 -2
  374. package/dist/components/kol-symbol.js.map +1 -1
  375. package/dist/components/kol-table.d.ts +2 -2
  376. package/dist/components/kol-table.js +1 -1
  377. package/dist/components/kol-table.js.map +1 -1
  378. package/dist/components/kol-tabs.d.ts +2 -2
  379. package/dist/components/kol-tabs.js +1 -1
  380. package/dist/components/kol-tabs.js.map +1 -1
  381. package/dist/components/kol-textarea.d.ts +2 -2
  382. package/dist/components/kol-textarea.js +1 -1
  383. package/dist/components/kol-textarea.js.map +1 -1
  384. package/dist/components/kol-toast-container.d.ts +2 -2
  385. package/dist/components/kol-toast-container.js.map +1 -1
  386. package/dist/components/kol-toast.d.ts +2 -2
  387. package/dist/components/kol-toast.js +1 -1
  388. package/dist/components/kol-toast.js.map +1 -1
  389. package/dist/components/kol-tooltip-wc.d.ts +2 -2
  390. package/dist/components/kol-version.d.ts +2 -2
  391. package/dist/components/kol-version.js +1 -1
  392. package/dist/components/kol-version.js.map +1 -1
  393. package/dist/components/label.js.map +1 -1
  394. package/dist/components/open.js.map +1 -1
  395. package/dist/components/prop.validators.js +1 -1
  396. package/dist/components/prop.validators.js.map +1 -1
  397. package/dist/components/reprod-accordion-does-not-toggle-with-open.js.map +1 -1
  398. package/dist/components/rows.js.map +1 -1
  399. package/dist/components/shadow.js +1 -1
  400. package/dist/components/shadow.js.map +1 -1
  401. package/dist/components/shadow2.js +1 -1
  402. package/dist/components/shadow2.js.map +1 -1
  403. package/dist/components/shadow3.js +1 -1
  404. package/dist/components/shadow3.js.map +1 -1
  405. package/dist/components/show.js.map +1 -1
  406. package/dist/components/suggestions.js.map +1 -1
  407. package/dist/components/tab-index.js.map +1 -1
  408. package/dist/components/toaster.js.map +1 -1
  409. package/dist/components/tooltip-align.js.map +1 -1
  410. package/dist/components/unique-nav-labels.js.map +1 -1
  411. package/dist/components/validation.js.map +1 -1
  412. package/dist/esm/{a11y.tipps-786571db.js → a11y.tipps-42463a61.js} +1 -1
  413. package/dist/esm/{a11y.tipps-786571db.js.map → a11y.tipps-42463a61.js.map} +1 -1
  414. package/dist/esm/{align-86dcec9a.js → align-6ce8ea2d.js} +1 -1
  415. package/dist/esm/{align-86dcec9a.js.map → align-6ce8ea2d.js.map} +1 -1
  416. package/dist/esm/{alignment-d55c5a70.js → alignment-b3613da2.js} +1 -1
  417. package/dist/esm/{alignment-d55c5a70.js.map → alignment-b3613da2.js.map} +1 -1
  418. package/dist/esm/{app-globals-2d7e80b2.js → app-globals-4f3a6f5e.js} +1 -1
  419. package/dist/esm/{app-globals-2d7e80b2.js.map → app-globals-4f3a6f5e.js.map} +1 -1
  420. package/dist/esm/{aria-current-4178d859.js → aria-current-01b90ab1.js} +1 -1
  421. package/dist/esm/{aria-current-4178d859.js.map → aria-current-01b90ab1.js.map} +1 -1
  422. package/dist/esm/{associated.controller-90adea5d.js → associated.controller-4d29e8ed.js} +1 -1
  423. package/dist/esm/associated.controller-4d29e8ed.js.map +1 -0
  424. package/dist/esm/{bund-056aa89a.js.map → bund-ad41b762.js.map} +1 -1
  425. package/dist/esm/{color-acf7a646.js → color-4a54ac3f.js} +1 -1
  426. package/dist/esm/color-4a54ac3f.js.map +1 -0
  427. package/dist/esm/controller-1aaf6ed9.js +4 -0
  428. package/dist/esm/controller-1aaf6ed9.js.map +1 -0
  429. package/dist/esm/controller-3436387a.js +4 -0
  430. package/dist/esm/controller-3436387a.js.map +1 -0
  431. package/dist/esm/controller-34e3505b.js +4 -0
  432. package/dist/esm/controller-34e3505b.js.map +1 -0
  433. package/dist/esm/controller-7592ddb2.js +4 -0
  434. package/dist/esm/controller-7592ddb2.js.map +1 -0
  435. package/dist/esm/{controller-36de320d.js → controller-e18b0591.js} +1 -1
  436. package/dist/esm/controller-e18b0591.js.map +1 -0
  437. package/dist/esm/{controller-icon-105c05dd.js → controller-icon-e49f46ec.js} +1 -1
  438. package/dist/esm/controller-icon-e49f46ec.js.map +1 -0
  439. package/dist/esm/{custom-class-8f63371a.js → custom-class-9a4f82a2.js} +1 -1
  440. package/dist/esm/{custom-class-8f63371a.js.map → custom-class-9a4f82a2.js.map} +1 -1
  441. package/dist/esm/{details-synced-open-state-8c4176c9.js.map → details-synced-open-state-e1e2be6f.js.map} +1 -1
  442. package/dist/esm/{dev.utils-b8a2ec94.js → dev.utils-808b02af.js} +1 -1
  443. package/dist/esm/dev.utils-808b02af.js.map +1 -0
  444. package/dist/esm/{devtools-f0e85af4.js → devtools-6f72340c.js} +1 -1
  445. package/dist/esm/devtools-6f72340c.js.map +1 -0
  446. package/dist/esm/{events-2bb1065b.js.map → events-fa760b68.js.map} +1 -1
  447. package/dist/esm/floating-ui.dom.esm-dedb9a02.js +4 -0
  448. package/dist/esm/floating-ui.dom.esm-dedb9a02.js.map +1 -0
  449. package/dist/esm/{has-closer-ed97581f.js → has-closer-e33eb81d.js} +1 -1
  450. package/dist/esm/{has-closer-ed97581f.js.map → has-closer-e33eb81d.js.map} +1 -1
  451. package/dist/esm/{hide-label-f059671e.js → hide-label-c1cd274b.js} +1 -1
  452. package/dist/esm/{hide-label-f059671e.js.map → hide-label-c1cd274b.js.map} +1 -1
  453. package/dist/esm/{i18n-69ff3115.js → i18n-680a56fe.js} +1 -1
  454. package/dist/esm/{i18n-69ff3115.js.map → i18n-680a56fe.js.map} +1 -1
  455. package/dist/esm/{icons-5b410219.js → icons-6c80b022.js} +1 -1
  456. package/dist/esm/icons-6c80b022.js.map +1 -0
  457. package/dist/esm/{image-source-2aef1440.js → image-source-520ea2c2.js} +1 -1
  458. package/dist/esm/{image-source-2aef1440.js.map → image-source-520ea2c2.js.map} +1 -1
  459. package/dist/esm/{index-312dcd4f.js.map → index-3bbb36da.js.map} +1 -1
  460. package/dist/esm/index-5f832c94.js +4 -0
  461. package/dist/esm/{index-fb9ac195.js.map → index-5f832c94.js.map} +1 -1
  462. package/dist/esm/{index-d46a1c6a.js → index-e9d20d00.js} +1 -1
  463. package/dist/esm/index-e9d20d00.js.map +1 -0
  464. package/dist/esm/index.js +1 -1
  465. package/dist/esm/index.js.map +1 -1
  466. package/dist/esm/kol-abbr.entry.js +1 -1
  467. package/dist/esm/kol-abbr.entry.js.map +1 -1
  468. package/dist/esm/kol-accordion.entry.js +1 -1
  469. package/dist/esm/kol-accordion.entry.js.map +1 -1
  470. package/dist/esm/kol-alert-wc_3.entry.js +1 -1
  471. package/dist/esm/kol-alert-wc_3.entry.js.map +1 -1
  472. package/dist/esm/kol-alert.entry.js +1 -1
  473. package/dist/esm/kol-alert.entry.js.map +1 -1
  474. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  475. package/dist/esm/kol-avatar-wc.entry.js.map +1 -1
  476. package/dist/esm/kol-avatar.entry.js +1 -1
  477. package/dist/esm/kol-avatar.entry.js.map +1 -1
  478. package/dist/esm/kol-badge.entry.js +1 -1
  479. package/dist/esm/kol-badge.entry.js.map +1 -1
  480. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  481. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  482. package/dist/esm/kol-button-group-wc.entry.js +1 -1
  483. package/dist/esm/kol-button-group-wc.entry.js.map +1 -1
  484. package/dist/esm/kol-button-group.entry.js +1 -1
  485. package/dist/esm/kol-button-group.entry.js.map +1 -1
  486. package/dist/esm/kol-button-link-text-switch.entry.js +1 -1
  487. package/dist/esm/kol-button-link-text-switch.entry.js.map +1 -1
  488. package/dist/esm/kol-button-link.entry.js +1 -1
  489. package/dist/esm/kol-button-link.entry.js.map +1 -1
  490. package/dist/esm/kol-button.entry.js +1 -1
  491. package/dist/esm/kol-button.entry.js.map +1 -1
  492. package/dist/esm/kol-card.entry.js +1 -1
  493. package/dist/esm/kol-card.entry.js.map +1 -1
  494. package/dist/esm/kol-details.entry.js +1 -1
  495. package/dist/esm/kol-details.entry.js.map +1 -1
  496. package/dist/esm/kol-form.entry.js +1 -1
  497. package/dist/esm/kol-form.entry.js.map +1 -1
  498. package/dist/esm/kol-heading.entry.js +1 -1
  499. package/dist/esm/kol-heading.entry.js.map +1 -1
  500. package/dist/esm/kol-icon-font-awesome.entry.js +1 -1
  501. package/dist/esm/kol-icon-font-awesome.entry.js.map +1 -1
  502. package/dist/esm/kol-icon-icofont.entry.js +1 -1
  503. package/dist/esm/kol-icon-icofont.entry.js.map +1 -1
  504. package/dist/esm/kol-icon.entry.js +1 -1
  505. package/dist/esm/kol-icon.entry.js.map +1 -1
  506. package/dist/esm/kol-image.entry.js +1 -1
  507. package/dist/esm/kol-image.entry.js.map +1 -1
  508. package/dist/esm/kol-indented-text.entry.js +1 -1
  509. package/dist/esm/kol-indented-text.entry.js.map +1 -1
  510. package/dist/esm/kol-input-adapter-leanup.entry.js +1 -1
  511. package/dist/esm/kol-input-adapter-leanup.entry.js.map +1 -1
  512. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  513. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  514. package/dist/esm/kol-input-color.entry.js +1 -1
  515. package/dist/esm/kol-input-color.entry.js.map +1 -1
  516. package/dist/esm/kol-input-date.entry.js +1 -1
  517. package/dist/esm/kol-input-date.entry.js.map +1 -1
  518. package/dist/esm/kol-input-email.entry.js +1 -1
  519. package/dist/esm/kol-input-email.entry.js.map +1 -1
  520. package/dist/esm/kol-input-file.entry.js +1 -1
  521. package/dist/esm/kol-input-file.entry.js.map +1 -1
  522. package/dist/esm/kol-input-number.entry.js +1 -1
  523. package/dist/esm/kol-input-number.entry.js.map +1 -1
  524. package/dist/esm/kol-input-password.entry.js +1 -1
  525. package/dist/esm/kol-input-password.entry.js.map +1 -1
  526. package/dist/esm/kol-input-radio-group.entry.js +1 -1
  527. package/dist/esm/kol-input-radio-group.entry.js.map +1 -1
  528. package/dist/esm/kol-input-radio.entry.js +1 -1
  529. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  530. package/dist/esm/kol-input-range.entry.js +1 -1
  531. package/dist/esm/kol-input-range.entry.js.map +1 -1
  532. package/dist/esm/kol-input-text.entry.js +1 -1
  533. package/dist/esm/kol-input-text.entry.js.map +1 -1
  534. package/dist/esm/kol-input.entry.js +1 -1
  535. package/dist/esm/kol-input.entry.js.map +1 -1
  536. package/dist/esm/kol-kolibri.entry.js +1 -1
  537. package/dist/esm/kol-kolibri.entry.js.map +1 -1
  538. package/dist/esm/kol-link-button.entry.js +1 -1
  539. package/dist/esm/kol-link-button.entry.js.map +1 -1
  540. package/dist/esm/kol-link-group.entry.js +1 -1
  541. package/dist/esm/kol-link-group.entry.js.map +1 -1
  542. package/dist/esm/kol-link-wc.entry.js +1 -1
  543. package/dist/esm/kol-link-wc.entry.js.map +1 -1
  544. package/dist/esm/kol-link.entry.js +1 -1
  545. package/dist/esm/kol-link.entry.js.map +1 -1
  546. package/dist/esm/kol-logo.entry.js +1 -1
  547. package/dist/esm/kol-logo.entry.js.map +1 -1
  548. package/dist/esm/kol-modal.entry.js +1 -1
  549. package/dist/esm/kol-modal.entry.js.map +1 -1
  550. package/dist/esm/kol-nav.entry.js +1 -1
  551. package/dist/esm/kol-nav.entry.js.map +1 -1
  552. package/dist/esm/kol-pagination.entry.js +1 -1
  553. package/dist/esm/kol-pagination.entry.js.map +1 -1
  554. package/dist/esm/kol-popover-wc.entry.js +1 -1
  555. package/dist/esm/kol-popover-wc.entry.js.map +1 -1
  556. package/dist/esm/kol-progress.entry.js +1 -1
  557. package/dist/esm/kol-progress.entry.js.map +1 -1
  558. package/dist/esm/kol-quote.entry.js +1 -1
  559. package/dist/esm/kol-quote.entry.js.map +1 -1
  560. package/dist/esm/kol-select.entry.js +1 -1
  561. package/dist/esm/kol-select.entry.js.map +1 -1
  562. package/dist/esm/kol-skip-nav.entry.js +1 -1
  563. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  564. package/dist/esm/kol-span-wc_2.entry.js +1 -1
  565. package/dist/esm/kol-span-wc_2.entry.js.map +1 -1
  566. package/dist/esm/kol-span.entry.js +1 -1
  567. package/dist/esm/kol-span.entry.js.map +1 -1
  568. package/dist/esm/kol-spin.entry.js +1 -1
  569. package/dist/esm/kol-spin.entry.js.map +1 -1
  570. package/dist/esm/kol-split-button.entry.js +1 -1
  571. package/dist/esm/kol-split-button.entry.js.map +1 -1
  572. package/dist/esm/kol-symbol.entry.js +1 -1
  573. package/dist/esm/kol-symbol.entry.js.map +1 -1
  574. package/dist/esm/kol-table.entry.js +1 -1
  575. package/dist/esm/kol-table.entry.js.map +1 -1
  576. package/dist/esm/kol-tabs.entry.js +1 -1
  577. package/dist/esm/kol-tabs.entry.js.map +1 -1
  578. package/dist/esm/kol-textarea.entry.js +1 -1
  579. package/dist/esm/kol-textarea.entry.js.map +1 -1
  580. package/dist/esm/kol-toast-container.entry.js +1 -1
  581. package/dist/esm/kol-toast-container.entry.js.map +1 -1
  582. package/dist/esm/kol-toast.entry.js +1 -1
  583. package/dist/esm/kol-toast.entry.js.map +1 -1
  584. package/dist/esm/kol-version.entry.js +1 -1
  585. package/dist/esm/kol-version.entry.js.map +1 -1
  586. package/dist/esm/kolibri.js +1 -1
  587. package/dist/esm/kolibri.js.map +1 -1
  588. package/dist/esm/{label-d69274a4.js → label-485bdf3e.js} +1 -1
  589. package/dist/esm/label-485bdf3e.js.map +1 -0
  590. package/dist/esm/loader.js +1 -1
  591. package/dist/esm/{open-fd7a0838.js → open-01a637c6.js} +1 -1
  592. package/dist/esm/{open-fd7a0838.js.map → open-01a637c6.js.map} +1 -1
  593. package/dist/esm/{prop.validators-e20b06c5.js → prop.validators-8dc620b0.js} +1 -1
  594. package/dist/esm/prop.validators-8dc620b0.js.map +1 -0
  595. package/dist/esm/reprod-accordion-does-not-toggle-with-open-930fccf8.js.map +1 -0
  596. package/dist/esm/reuse-d79ab469.js.map +1 -0
  597. package/dist/esm/{rows-a15fdd10.js → rows-8affe873.js} +1 -1
  598. package/dist/esm/{rows-a15fdd10.js.map → rows-8affe873.js.map} +1 -1
  599. package/dist/esm/{show-a5ea5a25.js → show-65609af0.js} +1 -1
  600. package/dist/esm/{show-a5ea5a25.js.map → show-65609af0.js.map} +1 -1
  601. package/dist/esm/{suggestions-de4b0c1b.js → suggestions-292845f9.js} +1 -1
  602. package/dist/esm/suggestions-292845f9.js.map +1 -0
  603. package/dist/esm/{tab-index-c779bf01.js → tab-index-ff0d1137.js} +1 -1
  604. package/dist/esm/tab-index-ff0d1137.js.map +1 -0
  605. package/dist/esm/toaster-832ff321.js.map +1 -0
  606. package/dist/esm/{toaster-5d1ee30b.js → toaster-9c6c5ae2.js} +1 -1
  607. package/dist/esm/{toaster-5d1ee30b.js.map → toaster-9c6c5ae2.js.map} +1 -1
  608. package/dist/esm/{tooltip-align-8b359fe1.js → tooltip-align-33ca8332.js} +1 -1
  609. package/dist/esm/{tooltip-align-8b359fe1.js.map → tooltip-align-33ca8332.js.map} +1 -1
  610. package/dist/esm/{unique-nav-labels-c6750f60.js.map → unique-nav-labels-62d9802d.js.map} +1 -1
  611. package/dist/esm/validation-32870760.js +4 -0
  612. package/dist/esm/{validation-46f2e0d7.js.map → validation-32870760.js.map} +1 -1
  613. package/dist/esm/{validation-7dc6350a.js → validation-f7b0e97e.js} +1 -1
  614. package/dist/esm/{validation-7dc6350a.js.map → validation-f7b0e97e.js.map} +1 -1
  615. package/dist/kolibri/{a11y.tipps-786571db.js → a11y.tipps-42463a61.js} +1 -1
  616. package/dist/kolibri/align-6ce8ea2d.js +4 -0
  617. package/dist/kolibri/{alignment-d55c5a70.js → alignment-b3613da2.js} +1 -1
  618. package/dist/kolibri/app-globals-4f3a6f5e.js +4 -0
  619. package/dist/kolibri/aria-current-01b90ab1.js +4 -0
  620. package/dist/kolibri/{associated.controller-90adea5d.js → associated.controller-4d29e8ed.js} +1 -1
  621. package/dist/kolibri/{color-acf7a646.js → color-4a54ac3f.js} +1 -1
  622. package/dist/kolibri/controller-1aaf6ed9.js +4 -0
  623. package/dist/kolibri/controller-1aaf6ed9.js.map +1 -0
  624. package/dist/kolibri/controller-3436387a.js +4 -0
  625. package/dist/kolibri/controller-3436387a.js.map +1 -0
  626. package/dist/kolibri/controller-34e3505b.js +4 -0
  627. package/dist/kolibri/controller-34e3505b.js.map +1 -0
  628. package/dist/kolibri/controller-7592ddb2.js +4 -0
  629. package/dist/kolibri/controller-7592ddb2.js.map +1 -0
  630. package/dist/kolibri/{controller-36de320d.js → controller-e18b0591.js} +1 -1
  631. package/dist/kolibri/controller-icon-e49f46ec.js +4 -0
  632. package/dist/kolibri/{custom-class-8f63371a.js → custom-class-9a4f82a2.js} +1 -1
  633. package/dist/kolibri/{dev.utils-b8a2ec94.js → dev.utils-808b02af.js} +1 -1
  634. package/dist/kolibri/{dev.utils-b8a2ec94.js.map → dev.utils-808b02af.js.map} +1 -1
  635. package/dist/kolibri/{devtools-f0e85af4.js → devtools-6f72340c.js} +1 -1
  636. package/dist/kolibri/floating-ui.dom.esm-dedb9a02.js +4 -0
  637. package/dist/kolibri/floating-ui.dom.esm-dedb9a02.js.map +1 -0
  638. package/dist/kolibri/has-closer-e33eb81d.js +4 -0
  639. package/dist/kolibri/hide-label-c1cd274b.js +4 -0
  640. package/dist/kolibri/{i18n-69ff3115.js → i18n-680a56fe.js} +1 -1
  641. package/dist/kolibri/icons-6c80b022.js +4 -0
  642. package/dist/kolibri/image-source-520ea2c2.js +4 -0
  643. package/dist/kolibri/index-5f832c94.js +4 -0
  644. package/dist/kolibri/{index-d46a1c6a.js → index-e9d20d00.js} +1 -1
  645. package/dist/kolibri/index-e9d20d00.js.map +1 -0
  646. package/dist/kolibri/index.esm.js +1 -1
  647. package/dist/kolibri/kol-abbr.entry.js +1 -1
  648. package/dist/kolibri/kol-abbr.entry.js.map +1 -1
  649. package/dist/kolibri/kol-accordion.entry.js +1 -1
  650. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  651. package/dist/kolibri/kol-alert-wc_3.entry.js +1 -1
  652. package/dist/kolibri/kol-alert.entry.js +1 -1
  653. package/dist/kolibri/kol-alert.entry.js.map +1 -1
  654. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  655. package/dist/kolibri/kol-avatar.entry.js +1 -1
  656. package/dist/kolibri/kol-avatar.entry.js.map +1 -1
  657. package/dist/kolibri/kol-badge.entry.js +1 -1
  658. package/dist/kolibri/kol-badge.entry.js.map +1 -1
  659. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  660. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  661. package/dist/kolibri/kol-button-group-wc.entry.js +1 -1
  662. package/dist/kolibri/kol-button-group.entry.js +1 -1
  663. package/dist/kolibri/kol-button-group.entry.js.map +1 -1
  664. package/dist/kolibri/kol-button-link-text-switch.entry.js +1 -1
  665. package/dist/kolibri/kol-button-link.entry.js +1 -1
  666. package/dist/kolibri/kol-button-link.entry.js.map +1 -1
  667. package/dist/kolibri/kol-button.entry.js +1 -1
  668. package/dist/kolibri/kol-button.entry.js.map +1 -1
  669. package/dist/kolibri/kol-card.entry.js +1 -1
  670. package/dist/kolibri/kol-card.entry.js.map +1 -1
  671. package/dist/kolibri/kol-details.entry.js +1 -1
  672. package/dist/kolibri/kol-details.entry.js.map +1 -1
  673. package/dist/kolibri/kol-form.entry.js +1 -1
  674. package/dist/kolibri/kol-heading.entry.js +1 -1
  675. package/dist/kolibri/kol-heading.entry.js.map +1 -1
  676. package/dist/kolibri/kol-icon-font-awesome.entry.js +1 -1
  677. package/dist/kolibri/kol-icon-icofont.entry.js +1 -1
  678. package/dist/kolibri/kol-icon.entry.js +1 -1
  679. package/dist/kolibri/kol-image.entry.js +1 -1
  680. package/dist/kolibri/kol-indented-text.entry.js +1 -1
  681. package/dist/kolibri/kol-indented-text.entry.js.map +1 -1
  682. package/dist/kolibri/kol-input-adapter-leanup.entry.js +1 -1
  683. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  684. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  685. package/dist/kolibri/kol-input-color.entry.js +1 -1
  686. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  687. package/dist/kolibri/kol-input-date.entry.js +1 -1
  688. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  689. package/dist/kolibri/kol-input-email.entry.js +1 -1
  690. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  691. package/dist/kolibri/kol-input-file.entry.js +1 -1
  692. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  693. package/dist/kolibri/kol-input-number.entry.js +1 -1
  694. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  695. package/dist/kolibri/kol-input-password.entry.js +1 -1
  696. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  697. package/dist/kolibri/kol-input-radio-group.entry.js +1 -1
  698. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  699. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  700. package/dist/kolibri/kol-input-range.entry.js +1 -1
  701. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  702. package/dist/kolibri/kol-input-text.entry.js +1 -1
  703. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  704. package/dist/kolibri/kol-input.entry.js +1 -1
  705. package/dist/kolibri/kol-input.entry.js.map +1 -1
  706. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  707. package/dist/kolibri/kol-kolibri.entry.js.map +1 -1
  708. package/dist/kolibri/kol-link-button.entry.js +1 -1
  709. package/dist/kolibri/kol-link-button.entry.js.map +1 -1
  710. package/dist/kolibri/kol-link-group.entry.js +1 -1
  711. package/dist/kolibri/kol-link-group.entry.js.map +1 -1
  712. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  713. package/dist/kolibri/kol-link.entry.js +1 -1
  714. package/dist/kolibri/kol-link.entry.js.map +1 -1
  715. package/dist/kolibri/kol-logo.entry.js +1 -1
  716. package/dist/kolibri/kol-logo.entry.js.map +1 -1
  717. package/dist/kolibri/kol-modal.entry.js +1 -1
  718. package/dist/kolibri/kol-modal.entry.js.map +1 -1
  719. package/dist/kolibri/kol-nav.entry.js +1 -1
  720. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  721. package/dist/kolibri/kol-pagination.entry.js +1 -1
  722. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  723. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  724. package/dist/kolibri/kol-popover-wc.entry.js.map +1 -1
  725. package/dist/kolibri/kol-progress.entry.js +1 -1
  726. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  727. package/dist/kolibri/kol-quote.entry.js +1 -1
  728. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  729. package/dist/kolibri/kol-select.entry.js +1 -1
  730. package/dist/kolibri/kol-select.entry.js.map +1 -1
  731. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  732. package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
  733. package/dist/kolibri/kol-span-wc_2.entry.js +1 -1
  734. package/dist/kolibri/kol-span-wc_2.entry.js.map +1 -1
  735. package/dist/kolibri/kol-span.entry.js +1 -1
  736. package/dist/kolibri/kol-span.entry.js.map +1 -1
  737. package/dist/kolibri/kol-spin.entry.js +1 -1
  738. package/dist/kolibri/kol-spin.entry.js.map +1 -1
  739. package/dist/kolibri/kol-split-button.entry.js +1 -1
  740. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  741. package/dist/kolibri/kol-symbol.entry.js +1 -1
  742. package/dist/kolibri/kol-table.entry.js +1 -1
  743. package/dist/kolibri/kol-table.entry.js.map +1 -1
  744. package/dist/kolibri/kol-tabs.entry.js +1 -1
  745. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  746. package/dist/kolibri/kol-textarea.entry.js +1 -1
  747. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  748. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  749. package/dist/kolibri/kol-toast.entry.js +1 -1
  750. package/dist/kolibri/kol-toast.entry.js.map +1 -1
  751. package/dist/kolibri/kol-version.entry.js +1 -1
  752. package/dist/kolibri/kol-version.entry.js.map +1 -1
  753. package/dist/kolibri/kolibri.esm.js +1 -1
  754. package/dist/kolibri/kolibri.esm.js.map +1 -1
  755. package/dist/kolibri/{label-d69274a4.js → label-485bdf3e.js} +1 -1
  756. package/dist/kolibri/open-01a637c6.js +4 -0
  757. package/dist/kolibri/{prop.validators-e20b06c5.js → prop.validators-8dc620b0.js} +1 -1
  758. package/dist/kolibri/rows-8affe873.js +4 -0
  759. package/dist/kolibri/show-65609af0.js +4 -0
  760. package/dist/kolibri/{suggestions-de4b0c1b.js → suggestions-292845f9.js} +1 -1
  761. package/dist/kolibri/{tab-index-c779bf01.js → tab-index-ff0d1137.js} +1 -1
  762. package/dist/kolibri/toaster-9c6c5ae2.js +4 -0
  763. package/dist/kolibri/tooltip-align-33ca8332.js +4 -0
  764. package/dist/kolibri/validation-32870760.js +4 -0
  765. package/dist/kolibri/{validation-7dc6350a.js → validation-f7b0e97e.js} +1 -1
  766. package/dist/types/components/@deprecated/input/controller-icon.d.ts +5 -5
  767. package/dist/types/components/@deprecated/input/controller.d.ts +29 -27
  768. package/dist/types/components/@deprecated/input/types-icon.d.ts +2 -2
  769. package/dist/types/components/@deprecated/input/types.d.ts +12 -11
  770. package/dist/types/components/@else/all/component.d.ts +2 -2
  771. package/dist/types/components/@else/color/component.d.ts +2 -2
  772. package/dist/types/components/@else/counter/component.d.ts +6 -6
  773. package/dist/types/components/abbr/component.d.ts +10 -10
  774. package/dist/types/components/abbr/types.d.ts +1 -1
  775. package/dist/types/components/accordion/component.d.ts +17 -17
  776. package/dist/types/components/accordion/test/html.mock.d.ts +3 -3
  777. package/dist/types/components/accordion/types.d.ts +4 -4
  778. package/dist/types/components/alert/component.d.ts +20 -20
  779. package/dist/types/components/alert/shadow.d.ts +10 -10
  780. package/dist/types/components/alert/types.d.ts +6 -6
  781. package/dist/types/components/avatar/component.d.ts +7 -7
  782. package/dist/types/components/avatar/shadow.d.ts +3 -3
  783. package/dist/types/components/badge/component.d.ts +17 -17
  784. package/dist/types/components/badge/contrast.d.ts +3 -3
  785. package/dist/types/components/badge/types.d.ts +7 -7
  786. package/dist/types/components/breadcrumb/component.d.ts +11 -11
  787. package/dist/types/components/breadcrumb/types.d.ts +2 -2
  788. package/dist/types/components/button/component.d.ts +57 -57
  789. package/dist/types/components/button/shadow.d.ts +27 -27
  790. package/dist/types/components/button/test/html.mock.d.ts +1 -1
  791. package/dist/types/components/button/types.d.ts +7 -7
  792. package/dist/types/components/button-group/component.d.ts +2 -2
  793. package/dist/types/components/button-group/shadow.d.ts +1 -1
  794. package/dist/types/components/button-link/component.d.ts +24 -24
  795. package/dist/types/components/button-link-text-switch/component.d.ts +6 -6
  796. package/dist/types/components/button-link-text-switch/types.d.ts +3 -3
  797. package/dist/types/components/card/component.d.ts +20 -20
  798. package/dist/types/components/card/types.d.ts +5 -5
  799. package/dist/types/components/details/DetailsAnimationController.d.ts +13 -13
  800. package/dist/types/components/details/component.d.ts +19 -19
  801. package/dist/types/components/details/test/html.mock.d.ts +1 -1
  802. package/dist/types/components/details/types.d.ts +3 -3
  803. package/dist/types/components/form/component.d.ts +9 -9
  804. package/dist/types/components/form/controller.d.ts +4 -4
  805. package/dist/types/components/form/types.d.ts +4 -4
  806. package/dist/types/components/heading/component.d.ts +11 -11
  807. package/dist/types/components/heading/shadow.d.ts +4 -4
  808. package/dist/types/components/heading/test/html.mock.d.ts +2 -2
  809. package/dist/types/components/heading/types.d.ts +4 -4
  810. package/dist/types/components/icon/component.d.ts +13 -13
  811. package/dist/types/components/icon/types.d.ts +3 -3
  812. package/dist/types/components/icon-font-awesome/component.d.ts +8 -8
  813. package/dist/types/components/icon-icofont/component.d.ts +6 -6
  814. package/dist/types/components/image/shadow.d.ts +13 -13
  815. package/dist/types/components/image/types.d.ts +7 -7
  816. package/dist/types/components/indented-text/component.d.ts +2 -2
  817. package/dist/types/components/indented-text/test/html.mock.d.ts +1 -1
  818. package/dist/types/components/input/component.d.ts +28 -28
  819. package/dist/types/components/input/controller.d.ts +7 -7
  820. package/dist/types/components/input/types.d.ts +8 -8
  821. package/dist/types/components/input-adapter-leanup/associated.controller.d.ts +15 -15
  822. package/dist/types/components/input-adapter-leanup/component.d.ts +2 -2
  823. package/dist/types/components/input-adapter-leanup/controller.d.ts +5 -5
  824. package/dist/types/components/input-adapter-leanup/types.d.ts +2 -2
  825. package/dist/types/components/input-checkbox/component.d.ts +54 -54
  826. package/dist/types/components/input-checkbox/controller.d.ts +11 -13
  827. package/dist/types/components/input-checkbox/types.d.ts +33 -33
  828. package/dist/types/components/input-color/component.d.ts +51 -51
  829. package/dist/types/components/input-color/controller.d.ts +7 -9
  830. package/dist/types/components/input-color/types.d.ts +24 -24
  831. package/dist/types/components/input-date/component.d.ts +64 -64
  832. package/dist/types/components/input-date/controller.d.ts +25 -27
  833. package/dist/types/components/input-date/types.d.ts +19 -19
  834. package/dist/types/components/input-email/component.d.ts +68 -68
  835. package/dist/types/components/input-email/controller.d.ts +4 -6
  836. package/dist/types/components/input-email/types.d.ts +33 -33
  837. package/dist/types/components/input-file/component.d.ts +52 -52
  838. package/dist/types/components/input-file/controller.d.ts +7 -9
  839. package/dist/types/components/input-file/types.d.ts +21 -21
  840. package/dist/types/components/input-number/component.d.ts +66 -66
  841. package/dist/types/components/input-number/controller.d.ts +19 -21
  842. package/dist/types/components/input-number/types.d.ts +20 -20
  843. package/dist/types/components/input-password/component.d.ts +62 -62
  844. package/dist/types/components/input-password/controller.d.ts +15 -17
  845. package/dist/types/components/input-password/types.d.ts +31 -31
  846. package/dist/types/components/input-radio/component.d.ts +47 -47
  847. package/dist/types/components/input-radio/controller.d.ts +16 -18
  848. package/dist/types/components/input-radio/types.d.ts +18 -18
  849. package/dist/types/components/input-radio-group/component.d.ts +17 -17
  850. package/dist/types/components/input-range/component.d.ts +57 -57
  851. package/dist/types/components/input-range/controller.d.ts +10 -12
  852. package/dist/types/components/input-range/types.d.ts +27 -27
  853. package/dist/types/components/input-text/component.d.ts +71 -71
  854. package/dist/types/components/input-text/controller.d.ts +13 -15
  855. package/dist/types/components/input-text/types.d.ts +35 -35
  856. package/dist/types/components/kolibri/component.d.ts +13 -13
  857. package/dist/types/components/kolibri/types.d.ts +10 -10
  858. package/dist/types/components/link/component.d.ts +58 -58
  859. package/dist/types/components/link/shadow.d.ts +27 -27
  860. package/dist/types/components/link/types.d.ts +7 -7
  861. package/dist/types/components/link-button/component.d.ts +24 -24
  862. package/dist/types/components/link-group/component.d.ts +21 -21
  863. package/dist/types/components/link-group/types.d.ts +12 -12
  864. package/dist/types/components/logo/component.d.ts +7 -7
  865. package/dist/types/components/logo/types.d.ts +2 -2
  866. package/dist/types/components/modal/component.d.ts +17 -17
  867. package/dist/types/components/modal/service.d.ts +9 -9
  868. package/dist/types/components/modal/types.d.ts +6 -6
  869. package/dist/types/components/nav/component.d.ts +30 -30
  870. package/dist/types/components/nav/types.d.ts +9 -9
  871. package/dist/types/components/nav/validation.d.ts +3 -3
  872. package/dist/types/components/pagination/component.d.ts +45 -45
  873. package/dist/types/components/pagination/types.d.ts +22 -22
  874. package/dist/types/components/popover/component.d.ts +22 -22
  875. package/dist/types/components/popover/test/html.mock.d.ts +1 -1
  876. package/dist/types/components/popover/types.d.ts +1 -1
  877. package/dist/types/components/progress/component.d.ts +17 -17
  878. package/dist/types/components/progress/types.d.ts +8 -8
  879. package/dist/types/components/quote/shadow.d.ts +13 -13
  880. package/dist/types/components/quote/test/html.mock.d.ts +1 -1
  881. package/dist/types/components/quote/types.d.ts +5 -5
  882. package/dist/types/components/select/component.d.ts +59 -59
  883. package/dist/types/components/select/controller.d.ts +15 -17
  884. package/dist/types/components/select/types.d.ts +24 -24
  885. package/dist/types/components/skip-nav/component.d.ts +10 -10
  886. package/dist/types/components/skip-nav/types.d.ts +2 -2
  887. package/dist/types/components/span/component.d.ts +15 -15
  888. package/dist/types/components/span/shadow.d.ts +6 -6
  889. package/dist/types/components/span/test/html.mock.d.ts +3 -3
  890. package/dist/types/components/span/types.d.ts +12 -12
  891. package/dist/types/components/spin/component.d.ts +8 -8
  892. package/dist/types/components/split-button/component.d.ts +38 -38
  893. package/dist/types/components/split-button/types.d.ts +4 -4
  894. package/dist/types/components/symbol/component.d.ts +9 -9
  895. package/dist/types/components/symbol/types.d.ts +1 -1
  896. package/dist/types/components/table/component.d.ts +40 -40
  897. package/dist/types/components/table/types.d.ts +35 -35
  898. package/dist/types/components/tabs/component.d.ts +36 -36
  899. package/dist/types/components/tabs/types.d.ts +15 -15
  900. package/dist/types/components/textarea/component.d.ts +56 -56
  901. package/dist/types/components/textarea/controller.d.ts +12 -14
  902. package/dist/types/components/textarea/types.d.ts +23 -23
  903. package/dist/types/components/toast/component.d.ts +25 -25
  904. package/dist/types/components/toast/toaster.d.ts +14 -14
  905. package/dist/types/components/toast/types.d.ts +6 -6
  906. package/dist/types/components/toaster/InternalToast.d.ts +3 -3
  907. package/dist/types/components/toaster/component.d.ts +5 -5
  908. package/dist/types/components/toaster/toaster.d.ts +8 -8
  909. package/dist/types/components/toaster/types.d.ts +10 -10
  910. package/dist/types/components/tooltip/component.d.ts +32 -32
  911. package/dist/types/components/version/component.d.ts +7 -7
  912. package/dist/types/components/version/types.d.ts +2 -2
  913. package/dist/types/core/i18n.d.ts +13 -13
  914. package/dist/types/enums/bund.d.ts +58 -58
  915. package/dist/types/enums/color.d.ts +17 -17
  916. package/dist/types/enums/events.d.ts +17 -17
  917. package/dist/types/i18n.d.ts +4 -4
  918. package/dist/types/locales/de.d.ts +34 -34
  919. package/dist/types/locales/en.d.ts +34 -34
  920. package/dist/types/stencil-public-runtime.d.ts +8 -0
  921. package/dist/types/types/button-link-text.d.ts +6 -6
  922. package/dist/types/types/icons.d.ts +6 -6
  923. package/dist/types/types/input/control/number.d.ts +21 -21
  924. package/dist/types/types/input/types.d.ts +10 -10
  925. package/dist/types/types/modal.d.ts +1 -1
  926. package/dist/types/types/progress.d.ts +4 -4
  927. package/dist/types/types/props/adjust-height.d.ts +1 -1
  928. package/dist/types/types/props/alert.d.ts +1 -1
  929. package/dist/types/types/props/align.d.ts +1 -1
  930. package/dist/types/types/props/alternative-button-link-role.d.ts +1 -1
  931. package/dist/types/types/props/aria-controls.d.ts +1 -1
  932. package/dist/types/types/props/aria-current.d.ts +2 -2
  933. package/dist/types/types/props/aria-expanded.d.ts +1 -1
  934. package/dist/types/types/props/aria-label.d.ts +1 -1
  935. package/dist/types/types/props/aria-selected.d.ts +1 -1
  936. package/dist/types/types/props/button-callbacks.d.ts +3 -3
  937. package/dist/types/types/props/button-type.d.ts +1 -1
  938. package/dist/types/types/props/button-variant.d.ts +1 -1
  939. package/dist/types/types/props/checked.d.ts +1 -1
  940. package/dist/types/types/props/collapsible.d.ts +1 -1
  941. package/dist/types/types/props/color.d.ts +7 -7
  942. package/dist/types/types/props/compact.d.ts +1 -1
  943. package/dist/types/types/props/custom-class.d.ts +1 -1
  944. package/dist/types/types/props/disabled.d.ts +1 -1
  945. package/dist/types/types/props/download.d.ts +1 -1
  946. package/dist/types/types/props/has-closer.d.ts +1 -1
  947. package/dist/types/types/props/has-compact-button.d.ts +1 -1
  948. package/dist/types/types/props/has-counter.d.ts +1 -1
  949. package/dist/types/types/props/has-footer.d.ts +1 -1
  950. package/dist/types/types/props/hide-error.d.ts +1 -1
  951. package/dist/types/types/props/hide-label.d.ts +1 -1
  952. package/dist/types/types/props/href.d.ts +1 -1
  953. package/dist/types/types/props/icons.d.ts +1 -1
  954. package/dist/types/types/props/id.d.ts +1 -1
  955. package/dist/types/types/props/image-source.d.ts +1 -1
  956. package/dist/types/types/props/indeterminate.d.ts +1 -1
  957. package/dist/types/types/props/label.d.ts +2 -2
  958. package/dist/types/types/props/link-on-callbacks.d.ts +2 -2
  959. package/dist/types/types/props/link-target.d.ts +1 -1
  960. package/dist/types/types/props/max.d.ts +1 -1
  961. package/dist/types/types/props/multiple.d.ts +1 -1
  962. package/dist/types/types/props/name.d.ts +1 -1
  963. package/dist/types/types/props/open.d.ts +1 -1
  964. package/dist/types/types/props/options.d.ts +2 -2
  965. package/dist/types/types/props/read-only.d.ts +1 -1
  966. package/dist/types/types/props/required.d.ts +1 -1
  967. package/dist/types/types/props/rows.d.ts +1 -1
  968. package/dist/types/types/props/show.d.ts +1 -1
  969. package/dist/types/types/props/stealth.d.ts +1 -1
  970. package/dist/types/types/props/suggestions.d.ts +1 -1
  971. package/dist/types/types/props/sync-value-by-selector.d.ts +1 -1
  972. package/dist/types/types/props/tooltip-align.d.ts +1 -1
  973. package/dist/types/types/props/touched.d.ts +1 -1
  974. package/dist/types/types/props/variant/spin.d.ts +1 -1
  975. package/dist/types/types/toast.d.ts +1 -1
  976. package/dist/types/utils/a11y.tipps.d.ts +2 -2
  977. package/dist/types/utils/color.utils.d.ts +8 -8
  978. package/dist/types/utils/dev.utils.d.ts +13 -13
  979. package/dist/types/utils/prop.validators.d.ts +29 -29
  980. package/doc/alert.md +2 -2
  981. package/package.json +1 -1
  982. package/dist/cjs/align-9188853a.js +0 -4
  983. package/dist/cjs/aria-current-814a3dc4.js +0 -4
  984. package/dist/cjs/associated.controller-48c858f3.js.map +0 -1
  985. package/dist/cjs/color-61c2d789.js.map +0 -1
  986. package/dist/cjs/controller-0ec38672.js +0 -4
  987. package/dist/cjs/controller-0ec38672.js.map +0 -1
  988. package/dist/cjs/controller-166aba29.js.map +0 -1
  989. package/dist/cjs/controller-7f159844.js +0 -4
  990. package/dist/cjs/controller-7f159844.js.map +0 -1
  991. package/dist/cjs/controller-a0322805.js +0 -4
  992. package/dist/cjs/controller-a0322805.js.map +0 -1
  993. package/dist/cjs/controller-fd19ada2.js.map +0 -1
  994. package/dist/cjs/controller-icon-7ac2c453.js.map +0 -1
  995. package/dist/cjs/dev.utils-6f091d59.js.map +0 -1
  996. package/dist/cjs/devtools-5f571cd3.js.map +0 -1
  997. package/dist/cjs/floating-ui.dom.esm-c21c7751.js +0 -4
  998. package/dist/cjs/floating-ui.dom.esm-c21c7751.js.map +0 -1
  999. package/dist/cjs/has-closer-7fab148c.js +0 -4
  1000. package/dist/cjs/hide-label-5dd90b4b.js +0 -4
  1001. package/dist/cjs/icons-da95da9d.js.map +0 -1
  1002. package/dist/cjs/image-source-ac98802d.js +0 -4
  1003. package/dist/cjs/index-82b810c3.js.map +0 -1
  1004. package/dist/cjs/index-c3cd3623.js +0 -4
  1005. package/dist/cjs/label-83605bf9.js.map +0 -1
  1006. package/dist/cjs/open-e3bdad37.js +0 -4
  1007. package/dist/cjs/prop.validators-c681a995.js.map +0 -1
  1008. package/dist/cjs/reprod-accordion-does-not-toggle-with-open-53004853.js.map +0 -1
  1009. package/dist/cjs/reuse-786396d6.js.map +0 -1
  1010. package/dist/cjs/rows-e4592ff3.js +0 -4
  1011. package/dist/cjs/show-20042042.js +0 -4
  1012. package/dist/cjs/suggestions-e61abf24.js.map +0 -1
  1013. package/dist/cjs/tab-index-7f4077e8.js.map +0 -1
  1014. package/dist/cjs/toaster-d55e9636.js.map +0 -1
  1015. package/dist/esm/associated.controller-90adea5d.js.map +0 -1
  1016. package/dist/esm/color-acf7a646.js.map +0 -1
  1017. package/dist/esm/controller-3444f586.js +0 -4
  1018. package/dist/esm/controller-3444f586.js.map +0 -1
  1019. package/dist/esm/controller-36de320d.js.map +0 -1
  1020. package/dist/esm/controller-377660f4.js +0 -4
  1021. package/dist/esm/controller-377660f4.js.map +0 -1
  1022. package/dist/esm/controller-50ef7aa2.js +0 -4
  1023. package/dist/esm/controller-50ef7aa2.js.map +0 -1
  1024. package/dist/esm/controller-d6393b5d.js +0 -4
  1025. package/dist/esm/controller-d6393b5d.js.map +0 -1
  1026. package/dist/esm/controller-icon-105c05dd.js.map +0 -1
  1027. package/dist/esm/dev.utils-b8a2ec94.js.map +0 -1
  1028. package/dist/esm/devtools-f0e85af4.js.map +0 -1
  1029. package/dist/esm/floating-ui.dom.esm-e435ab9f.js +0 -4
  1030. package/dist/esm/floating-ui.dom.esm-e435ab9f.js.map +0 -1
  1031. package/dist/esm/icons-5b410219.js.map +0 -1
  1032. package/dist/esm/index-d46a1c6a.js.map +0 -1
  1033. package/dist/esm/index-fb9ac195.js +0 -4
  1034. package/dist/esm/label-d69274a4.js.map +0 -1
  1035. package/dist/esm/prop.validators-e20b06c5.js.map +0 -1
  1036. package/dist/esm/reprod-accordion-does-not-toggle-with-open-542a45b3.js.map +0 -1
  1037. package/dist/esm/reuse-b3566e4c.js.map +0 -1
  1038. package/dist/esm/suggestions-de4b0c1b.js.map +0 -1
  1039. package/dist/esm/tab-index-c779bf01.js.map +0 -1
  1040. package/dist/esm/toaster-210e0b2c.js.map +0 -1
  1041. package/dist/esm/validation-46f2e0d7.js +0 -4
  1042. package/dist/kolibri/align-86dcec9a.js +0 -4
  1043. package/dist/kolibri/app-globals-2d7e80b2.js +0 -4
  1044. package/dist/kolibri/aria-current-4178d859.js +0 -4
  1045. package/dist/kolibri/controller-3444f586.js +0 -4
  1046. package/dist/kolibri/controller-3444f586.js.map +0 -1
  1047. package/dist/kolibri/controller-377660f4.js +0 -4
  1048. package/dist/kolibri/controller-377660f4.js.map +0 -1
  1049. package/dist/kolibri/controller-50ef7aa2.js +0 -4
  1050. package/dist/kolibri/controller-50ef7aa2.js.map +0 -1
  1051. package/dist/kolibri/controller-d6393b5d.js +0 -4
  1052. package/dist/kolibri/controller-d6393b5d.js.map +0 -1
  1053. package/dist/kolibri/controller-icon-105c05dd.js +0 -4
  1054. package/dist/kolibri/floating-ui.dom.esm-e435ab9f.js +0 -4
  1055. package/dist/kolibri/floating-ui.dom.esm-e435ab9f.js.map +0 -1
  1056. package/dist/kolibri/has-closer-ed97581f.js +0 -4
  1057. package/dist/kolibri/hide-label-f059671e.js +0 -4
  1058. package/dist/kolibri/icons-5b410219.js +0 -4
  1059. package/dist/kolibri/image-source-2aef1440.js +0 -4
  1060. package/dist/kolibri/index-d46a1c6a.js.map +0 -1
  1061. package/dist/kolibri/index-fb9ac195.js +0 -4
  1062. package/dist/kolibri/open-fd7a0838.js +0 -4
  1063. package/dist/kolibri/rows-a15fdd10.js +0 -4
  1064. package/dist/kolibri/show-a5ea5a25.js +0 -4
  1065. package/dist/kolibri/toaster-5d1ee30b.js +0 -4
  1066. package/dist/kolibri/tooltip-align-8b359fe1.js +0 -4
  1067. package/dist/kolibri/validation-46f2e0d7.js +0 -4
  1068. /package/dist/cjs/{bund-f5184e9e.js → bund-4be96755.js} +0 -0
  1069. /package/dist/cjs/{details-synced-open-state-f06dc47c.js → details-synced-open-state-a66cbea0.js} +0 -0
  1070. /package/dist/cjs/{events-a0c291ce.js → events-e348a615.js} +0 -0
  1071. /package/dist/cjs/{index-7988944a.js → index-f8b26787.js} +0 -0
  1072. /package/dist/cjs/{reprod-accordion-does-not-toggle-with-open-53004853.js → reprod-accordion-does-not-toggle-with-open-092e559d.js} +0 -0
  1073. /package/dist/cjs/{reuse-786396d6.js → reuse-a4c8450e.js} +0 -0
  1074. /package/dist/cjs/{toaster-d55e9636.js → toaster-fc0622bd.js} +0 -0
  1075. /package/dist/cjs/{unique-nav-labels-9784a4c5.js → unique-nav-labels-363e1d71.js} +0 -0
  1076. /package/dist/esm/{bund-056aa89a.js → bund-ad41b762.js} +0 -0
  1077. /package/dist/esm/{details-synced-open-state-8c4176c9.js → details-synced-open-state-e1e2be6f.js} +0 -0
  1078. /package/dist/esm/{events-2bb1065b.js → events-fa760b68.js} +0 -0
  1079. /package/dist/esm/{index-312dcd4f.js → index-3bbb36da.js} +0 -0
  1080. /package/dist/esm/{reprod-accordion-does-not-toggle-with-open-542a45b3.js → reprod-accordion-does-not-toggle-with-open-930fccf8.js} +0 -0
  1081. /package/dist/esm/{reuse-b3566e4c.js → reuse-d79ab469.js} +0 -0
  1082. /package/dist/esm/{toaster-210e0b2c.js → toaster-832ff321.js} +0 -0
  1083. /package/dist/esm/{unique-nav-labels-c6750f60.js → unique-nav-labels-62d9802d.js} +0 -0
  1084. /package/dist/kolibri/{a11y.tipps-786571db.js.map → a11y.tipps-42463a61.js.map} +0 -0
  1085. /package/dist/kolibri/{align-86dcec9a.js.map → align-6ce8ea2d.js.map} +0 -0
  1086. /package/dist/kolibri/{alignment-d55c5a70.js.map → alignment-b3613da2.js.map} +0 -0
  1087. /package/dist/kolibri/{app-globals-2d7e80b2.js.map → app-globals-4f3a6f5e.js.map} +0 -0
  1088. /package/dist/kolibri/{aria-current-4178d859.js.map → aria-current-01b90ab1.js.map} +0 -0
  1089. /package/dist/kolibri/{associated.controller-90adea5d.js.map → associated.controller-4d29e8ed.js.map} +0 -0
  1090. /package/dist/kolibri/{bund-056aa89a.js → bund-ad41b762.js} +0 -0
  1091. /package/dist/kolibri/{bund-056aa89a.js.map → bund-ad41b762.js.map} +0 -0
  1092. /package/dist/kolibri/{color-acf7a646.js.map → color-4a54ac3f.js.map} +0 -0
  1093. /package/dist/kolibri/{controller-36de320d.js.map → controller-e18b0591.js.map} +0 -0
  1094. /package/dist/kolibri/{controller-icon-105c05dd.js.map → controller-icon-e49f46ec.js.map} +0 -0
  1095. /package/dist/kolibri/{custom-class-8f63371a.js.map → custom-class-9a4f82a2.js.map} +0 -0
  1096. /package/dist/kolibri/{details-synced-open-state-8c4176c9.js → details-synced-open-state-e1e2be6f.js} +0 -0
  1097. /package/dist/kolibri/{details-synced-open-state-8c4176c9.js.map → details-synced-open-state-e1e2be6f.js.map} +0 -0
  1098. /package/dist/kolibri/{devtools-f0e85af4.js.map → devtools-6f72340c.js.map} +0 -0
  1099. /package/dist/kolibri/{events-2bb1065b.js → events-fa760b68.js} +0 -0
  1100. /package/dist/kolibri/{events-2bb1065b.js.map → events-fa760b68.js.map} +0 -0
  1101. /package/dist/kolibri/{has-closer-ed97581f.js.map → has-closer-e33eb81d.js.map} +0 -0
  1102. /package/dist/kolibri/{hide-label-f059671e.js.map → hide-label-c1cd274b.js.map} +0 -0
  1103. /package/dist/kolibri/{i18n-69ff3115.js.map → i18n-680a56fe.js.map} +0 -0
  1104. /package/dist/kolibri/{icons-5b410219.js.map → icons-6c80b022.js.map} +0 -0
  1105. /package/dist/kolibri/{image-source-2aef1440.js.map → image-source-520ea2c2.js.map} +0 -0
  1106. /package/dist/kolibri/{index-312dcd4f.js → index-3bbb36da.js} +0 -0
  1107. /package/dist/kolibri/{index-312dcd4f.js.map → index-3bbb36da.js.map} +0 -0
  1108. /package/dist/kolibri/{index-fb9ac195.js.map → index-5f832c94.js.map} +0 -0
  1109. /package/dist/kolibri/{label-d69274a4.js.map → label-485bdf3e.js.map} +0 -0
  1110. /package/dist/kolibri/{open-fd7a0838.js.map → open-01a637c6.js.map} +0 -0
  1111. /package/dist/kolibri/{prop.validators-e20b06c5.js.map → prop.validators-8dc620b0.js.map} +0 -0
  1112. /package/dist/kolibri/{reprod-accordion-does-not-toggle-with-open-542a45b3.js → reprod-accordion-does-not-toggle-with-open-930fccf8.js} +0 -0
  1113. /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
  1114. /package/dist/kolibri/{reuse-b3566e4c.js → reuse-d79ab469.js} +0 -0
  1115. /package/dist/kolibri/{reuse-b3566e4c.js.map → reuse-d79ab469.js.map} +0 -0
  1116. /package/dist/kolibri/{rows-a15fdd10.js.map → rows-8affe873.js.map} +0 -0
  1117. /package/dist/kolibri/{show-a5ea5a25.js.map → show-65609af0.js.map} +0 -0
  1118. /package/dist/kolibri/{suggestions-de4b0c1b.js.map → suggestions-292845f9.js.map} +0 -0
  1119. /package/dist/kolibri/{tab-index-c779bf01.js.map → tab-index-ff0d1137.js.map} +0 -0
  1120. /package/dist/kolibri/{toaster-210e0b2c.js → toaster-832ff321.js} +0 -0
  1121. /package/dist/kolibri/{toaster-210e0b2c.js.map → toaster-832ff321.js.map} +0 -0
  1122. /package/dist/kolibri/{toaster-5d1ee30b.js.map → toaster-9c6c5ae2.js.map} +0 -0
  1123. /package/dist/kolibri/{tooltip-align-8b359fe1.js.map → tooltip-align-33ca8332.js.map} +0 -0
  1124. /package/dist/kolibri/{unique-nav-labels-c6750f60.js → unique-nav-labels-62d9802d.js} +0 -0
  1125. /package/dist/kolibri/{unique-nav-labels-c6750f60.js.map → unique-nav-labels-62d9802d.js.map} +0 -0
  1126. /package/dist/kolibri/{validation-46f2e0d7.js.map → validation-32870760.js.map} +0 -0
  1127. /package/dist/kolibri/{validation-7dc6350a.js.map → validation-f7b0e97e.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"names":["validateChecked","component","value","watchBoolean","validateIndeterminate","InputCheckboxController","InputCheckboxRadioController","constructor","name","host","super","this","setFormAssociatedCheckboxValue","_checked","setFormAssociatedValue","state","_value","validateHideError","hooks","afterPatch","_hideError","a11yHint","validateIcon","validateIcons","watchValidator","isString","checked","indeterminate","unchecked","Set","beforePatch","nextValue","nextState","set","Object","assign","_icons","validateType","devHint","validateVariant","validateValue","setState","componentWillLoad","_icon","_indeterminate","_variant","_type","defaultStyleCss","KolInputCheckbox","render","ariaDescribedBy","getRenderStates","hasExpertSlot","showExpertSlot","_label","h","Host","class","checkbox","_hideLabel","undefined","onKeyPress","onChange","tabIndex","_disabled","_alert","_error","_hint","_id","_required","_tooltipAlign","_touched","slot","onClick","handleIconClick","bind","ref","catchRef","title","accessKey","_accessKey","length","join","disabled","id","_name","required","_tabIndex","type","controller","onFacade","hostRef","propagateFocus","event","stopPropagation","tryToDispatchKoliBriEvent","_a","_on","nonce","validateAccessKey","validateAlert","validateDisabled","validateError","validateHideLabel","validateHint","validateId","validateLabel","validateName","validateOn","validateRequired","validateSyncValueBySelector","validateTabIndex","validateTouched"],"sources":["src/types/props/checked.ts","src/types/props/indeterminate.ts","src/components/input-checkbox/controller.ts","src/components/input-checkbox/style.css?tag=kol-input-checkbox&mode=default&encapsulation=shadow","src/components/input-checkbox/component.tsx"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { watchBoolean } from '../../utils/prop.validators';\n\n/* types */\nexport type CheckedPropType = boolean;\n\n/**\n * Defines whether the checkbox is checked or not. Can be read and written.\n */\nexport type PropChecked = {\n\tchecked: CheckedPropType;\n};\n\n/* validator */\nexport const validateChecked = (component: Generic.Element.Component, value?: CheckedPropType): void => {\n\twatchBoolean(component, '_checked', value);\n};\n","import { Generic } from '@a11y-ui/core';\n\nimport { watchBoolean } from '../../utils/prop.validators';\n\n/* types */\nexport type IndeterminatePropType = boolean;\n\n/**\n * Puts the checkbox in the indeterminate state, does not change the value of _checked.\n */\nexport type PropIndeterminate = {\n\tindeterminate: IndeterminatePropType;\n};\n\n/* validator */\nexport const validateIndeterminate = (component: Generic.Element.Component, value?: IndeterminatePropType): void => {\n\twatchBoolean(component, '_indeterminate', value);\n};\n","import { Generic } from '@a11y-ui/core';\n\nimport { Stringified } from '../../types/common';\nimport { CheckedPropType, validateChecked } from '../../types/props/checked';\nimport { HideErrorPropType, validateHideError } from '../../types/props/hide-error';\nimport { IndeterminatePropType, validateIndeterminate } from '../../types/props/indeterminate';\nimport { StencilUnknown } from '../../types/unknown';\nimport { a11yHint, devHint } from '../../utils/a11y.tipps';\nimport { setState, watchValidator } from '../../utils/prop.validators';\nimport { isString } from '../../utils/validator';\nimport { InputCheckboxRadioController } from '../input-radio/controller';\nimport { InputCheckboxIconsProp, InputCheckboxIconsState, InputCheckboxVariant, Props, Watches } from './types';\n\nexport class InputCheckboxController extends InputCheckboxRadioController 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 readonly setFormAssociatedCheckboxValue = (value: StencilUnknown) => {\n\t\tif (this.component._checked) {\n\t\t\tthis.setFormAssociatedValue(value);\n\t\t} else {\n\t\t\tthis.setFormAssociatedValue(null);\n\t\t}\n\t};\n\n\tpublic validateChecked(value?: CheckedPropType): void {\n\t\tvalidateChecked(this.component, value);\n\t\tthis.setFormAssociatedCheckboxValue(this.component.state._value as StencilUnknown);\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 validateIcon(value?: Stringified<InputCheckboxIconsProp>): void {\n\t\tthis.validateIcons(value);\n\t}\n\n\tpublic validateIcons(value?: Stringified<InputCheckboxIconsProp>): void {\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_icons',\n\t\t\t(value): boolean => {\n\t\t\t\treturn typeof value === 'object' && value !== null && (isString(value.checked, 1) || isString(value.indeterminate, 1) || isString(value.unchecked, 1));\n\t\t\t},\n\t\t\tnew Set(['InputCheckboxIcons']),\n\t\t\tvalue,\n\t\t\t{\n\t\t\t\thooks: {\n\t\t\t\t\tbeforePatch: (nextValue: unknown, nextState: Map<string, unknown>, component: Generic.Element.Component) => {\n\t\t\t\t\t\tnextState.set('_icons', {\n\t\t\t\t\t\t\t...(component.state._icons as InputCheckboxIconsState),\n\t\t\t\t\t\t\t...(nextValue as InputCheckboxIconsProp),\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\tpublic validateIndeterminate(value?: IndeterminatePropType): void {\n\t\tvalidateIndeterminate(this.component, value);\n\t}\n\n\t/**\n\t * @deprecated\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateType(value?: InputCheckboxVariant): void {\n\t\tdevHint(`The \"_type\" prop is deprecated. Use \"_variant\" instead.`);\n\t\tthis.validateVariant(value);\n\t}\n\n\tpublic validateValue(value?: Stringified<StencilUnknown>): void {\n\t\tsetState(this.component, '_value', value);\n\t\tthis.setFormAssociatedCheckboxValue(this.component.state._value as StencilUnknown);\n\t}\n\n\tpublic validateVariant(value?: InputCheckboxVariant): void {\n\t\tif (value === 'checkbox') {\n\t\t\tdevHint(`[KolCheckbox] The \"_variant\" value 'checkbox' is deprecated. Use the new value 'default' instead.`);\n\t\t\tvalue = 'default';\n\t\t}\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_variant',\n\t\t\t(value): boolean => typeof value === 'string' && (value === 'button' || value === 'default' || value === 'switch'),\n\t\t\tnew Set(['String {button, default, switch}']),\n\t\t\tvalue\n\t\t);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateChecked(this.component._checked);\n\t\tthis.validateHideError(this.component._hideError);\n\t\tthis.validateIcons(this.component._icons || this.component._icon);\n\t\tthis.validateIndeterminate(this.component._indeterminate);\n\t\tthis.validateValue(this.component._value);\n\t\tthis.validateVariant(this.component._variant || this.component._type);\n\t}\n}\n","@import url(../input.css);\n@import url(common.css);\n@import url(button.css);\n@import url(checkbox.css);\n@import url(switch.css);\n","import { Component, Element, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { Stringified } from '../../types/common';\nimport { InputTypeOnDefault } from '../../types/input/types';\nimport { CheckedPropType } from '../../types/props/checked';\nimport { HideErrorPropType } from '../../types/props/hide-error';\nimport { IdPropType } from '../../types/props/id';\nimport { IndeterminatePropType } from '../../types/props/indeterminate';\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 { StencilUnknown } from '../../types/unknown';\nimport { nonce } from '../../utils/dev.utils';\nimport { stopPropagation, tryToDispatchKoliBriEvent } from '../../utils/events';\nimport { propagateFocus, showExpertSlot } from '../../utils/reuse';\nimport { getRenderStates } from '../input/controller';\nimport { InputCheckboxController } from './controller';\nimport { API, InputCheckboxIconsProp, InputCheckboxVariant, States } from './types';\n\n/**\n * @slot - Die Beschriftung der Checkbox.\n */\n@Component({\n\ttag: 'kol-input-checkbox',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolInputCheckbox implements API {\n\t@Element() private readonly host?: HTMLKolInputCheckboxElement;\n\n\tprivate readonly catchRef = (ref?: HTMLInputElement) => {\n\t\tpropagateFocus(this.host, 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\tcheckbox: true,\n\t\t\t\t\t\t[this.state._variant]: true,\n\t\t\t\t\t\t'hide-label': !!this.state._hideLabel,\n\t\t\t\t\t\tchecked: this.state._checked,\n\t\t\t\t\t}}\n\t\t\t\t\tdata-role={this.state._variant === 'button' ? 'button' : undefined}\n\t\t\t\t\tonKeyPress={this.state._variant === 'button' ? this.onChange : undefined}\n\t\t\t\t\ttabIndex={this.state._variant === 'button' && !this.state._disabled ? 0 : undefined}\n\t\t\t\t\t_alert={this.state._alert}\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_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_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<kol-icon\n\t\t\t\t\t\t\tclass=\"icon\"\n\t\t\t\t\t\t\tonClick={this.handleIconClick.bind(this)}\n\t\t\t\t\t\t\t_icons={\n\t\t\t\t\t\t\t\tthis.state._indeterminate ? this.state._icons.indeterminate : this.state._checked ? this.state._icons.checked : this.state._icons.unchecked\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t_label=\"\"\n\t\t\t\t\t\t/>\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} // by checkbox?!\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\tchecked={this.state._checked}\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\tindeterminate={this.state._indeterminate}\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\ttabIndex={this.state._tabIndex}\n\t\t\t\t\t\t\ttype=\"checkbox\"\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\tonClick={undefined} // onClick is not needed since onChange already triggers the correct event\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: InputCheckboxController;\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 checkbox is checked or not. Can be read and written.\n\t * @TODO: Change type back to `CheckedPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _checked?: 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 * 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 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<InputCheckboxIconsProp>;\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: Stringified<InputCheckboxIconsProp>;\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 * Puts the checkbox in the indeterminate state, does not change the value of _checked.\n\t * @TODO: Change type back to `IndeterminatePropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _indeterminate?: boolean;\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 * 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 * 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 * Deprecated: Defines which variant should be used for presentation.\n\t *\n\t * @deprecated Verwende stattdessen das Attribute _variant.\n\t */\n\t@Prop() public _type?: InputCheckboxVariant;\n\n\t/**\n\t * Defines the value of the input.\n\t */\n\t@Prop() public _value?: Stringified<StencilUnknown> = true;\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: InputCheckboxVariant; // TODO: = 'default'; in v2 setzen\n\n\t@State() public state: States = {\n\t\t_checked: false,\n\t\t_hideError: false,\n\t\t_icons: {\n\t\t\tchecked: 'codicon codicon-check',\n\t\t\tindeterminate: 'codicon codicon-remove',\n\t\t\tunchecked: 'codicon codicon-add',\n\t\t},\n\t\t_id: `id-${nonce()}`,\n\t\t_indeterminate: false,\n\t\t_label: '', // ⚠ required\n\t\t_value: true,\n\t\t_variant: 'default',\n\t};\n\n\tpublic constructor() {\n\t\tthis.controller = new InputCheckboxController(this, 'input-checkbox', 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('_checked')\n\tpublic validateChecked(value?: CheckedPropType): void {\n\t\tthis.controller.validateChecked(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<InputCheckboxIconsProp>): void {\n\t\tthis.validateIcons(value);\n\t}\n\n\t@Watch('_icons')\n\tpublic validateIcons(value?: Stringified<InputCheckboxIconsProp>): 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('_indeterminate')\n\tpublic validateIndeterminate(value?: IndeterminatePropType): void {\n\t\tthis.controller.validateIndeterminate(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('_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('_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?: InputCheckboxVariant): void {\n\t\tthis.controller.validateType(value);\n\t}\n\n\t@Watch('_value')\n\tpublic validateValue(value?: Stringified<StencilUnknown>): void {\n\t\tthis.controller.validateValue(value);\n\t}\n\n\t@Watch('_variant')\n\tpublic validateVariant(value?: InputCheckboxVariant): void {\n\t\tthis.controller.validateVariant(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 handleIconClick(event: Event): void {\n\t\tif (!this.state._disabled) {\n\t\t\tthis.onChange(event);\n\t\t}\n\t}\n\n\tprivate onChange = (event: Event): void => {\n\t\tthis._checked = !this._checked;\n\t\tthis._indeterminate = false;\n\n\t\tconst value = this._checked ? this.state._value : null;\n\n\t\t// Event handling\n\t\tstopPropagation(event);\n\t\ttryToDispatchKoliBriEvent('change', this.host, value);\n\n\t\t// Static form handling\n\t\tthis.controller.setFormAssociatedValue(value);\n\t\tthis.controller.setFormAssociatedCheckboxValue;\n\n\t\t// Callback\n\t\tif (typeof this.state._on?.onChange === 'function') {\n\t\t\tthis.state._on.onChange(event, value);\n\t\t}\n\t};\n}\n"],"mappings":";;;+jBAeO,MAAMA,EAA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,CAAsBF,GAC5BS,KAAK8E,WAAWrF,sBAAsBF,E,CAIhC,aAAAwG,CAAcxG,GACpBS,KAAK8E,WAAWiB,cAAcxG,E,CAIxB,YAAAyG,CAAazG,GACnBS,KAAK8E,WAAWkB,aAAazG,E,CAIvB,UAAA0G,CAAW1G,GACjBS,KAAK8E,WAAWmB,WAAW1G,E,CAIrB,gBAAA2G,CAAiB3G,GACvBS,KAAK8E,WAAWoB,iBAAiB3G,E,CAI3B,2BAAA4G,CAA4B5G,GAClCS,KAAK8E,WAAWqB,4BAA4B5G,E,CAItC,gBAAA6G,CAAiB7G,GACvBS,KAAK8E,WAAWsB,iBAAiB7G,E,CAI3B,eAAA8G,CAAgB9G,GACtBS,KAAK8E,WAAWuB,gBAAgB9G,E,CAI1B,YAAAmC,CAAanC,GACnBS,KAAK8E,WAAWpD,aAAanC,E,CAIvB,aAAAsC,CAActC,GACpBS,KAAK8E,WAAWjD,cAActC,E,CAIxB,eAAAqC,CAAgBrC,GACtBS,KAAK8E,WAAWlD,gBAAgBrC,E,CAG1B,iBAAAwC,GACN/B,KAAKsD,OAAStD,KAAKsD,SAAW,KAC9BtD,KAAK4D,SAAW5D,KAAK4D,WAAa,KAClC5D,KAAK8E,WAAW/C,mB,CAGT,eAAAgC,CAAgBmB,GACvB,IAAKlF,KAAKI,MAAMiD,UAAW,CAC1BrD,KAAKmD,SAAS+B,E"}
1
+ {"version":3,"names":["validateChecked","component","value","watchBoolean","validateIndeterminate","InputCheckboxController","InputCheckboxRadioController","constructor","name","host","super","this","setFormAssociatedCheckboxValue","_checked","setFormAssociatedValue","state","_value","validateIcon","validateIcons","watchValidator","isString","checked","indeterminate","unchecked","Set","hooks","beforePatch","nextValue","nextState","set","Object","assign","_icons","validateType","devHint","validateVariant","validateValue","setState","componentWillLoad","_icon","_indeterminate","_variant","_type","defaultStyleCss","KolInputCheckbox","render","ariaDescribedBy","getRenderStates","hasExpertSlot","showExpertSlot","_label","h","Host","class","checkbox","_hideLabel","undefined","onKeyPress","onChange","_alert","_disabled","_error","_hideError","_hint","_id","_required","_tooltipAlign","_touched","slot","onClick","handleIconClick","bind","ref","catchRef","title","accessKey","_accessKey","length","join","disabled","id","_name","required","tabIndex","_tabIndex","type","controller","onFacade","hostRef","propagateFocus","event","stopPropagation","tryToDispatchKoliBriEvent","_a","_on","nonce","validateAccessKey","validateAlert","validateDisabled","validateError","validateHideError","validateHideLabel","validateHint","validateId","validateLabel","validateName","validateOn","validateRequired","validateSyncValueBySelector","validateTabIndex","validateTouched"],"sources":["src/types/props/checked.ts","src/types/props/indeterminate.ts","src/components/input-checkbox/controller.ts","src/components/input-checkbox/style.css?tag=kol-input-checkbox&mode=default&encapsulation=shadow","src/components/input-checkbox/component.tsx"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { watchBoolean } from '../../utils/prop.validators';\n\n/* types */\nexport type CheckedPropType = boolean;\n\n/**\n * Defines whether the checkbox is checked or not. Can be read and written.\n */\nexport type PropChecked = {\n\tchecked: CheckedPropType;\n};\n\n/* validator */\nexport const validateChecked = (component: Generic.Element.Component, value?: CheckedPropType): void => {\n\twatchBoolean(component, '_checked', value);\n};\n","import { Generic } from '@a11y-ui/core';\n\nimport { watchBoolean } from '../../utils/prop.validators';\n\n/* types */\nexport type IndeterminatePropType = boolean;\n\n/**\n * Puts the checkbox in the indeterminate state, does not change the value of _checked.\n */\nexport type PropIndeterminate = {\n\tindeterminate: IndeterminatePropType;\n};\n\n/* validator */\nexport const validateIndeterminate = (component: Generic.Element.Component, value?: IndeterminatePropType): void => {\n\twatchBoolean(component, '_indeterminate', value);\n};\n","import { Generic } from '@a11y-ui/core';\n\nimport { Stringified } from '../../types/common';\nimport { CheckedPropType, validateChecked } from '../../types/props/checked';\nimport { IndeterminatePropType, validateIndeterminate } from '../../types/props/indeterminate';\nimport { StencilUnknown } from '../../types/unknown';\nimport { devHint } from '../../utils/a11y.tipps';\nimport { setState, watchValidator } from '../../utils/prop.validators';\nimport { isString } from '../../utils/validator';\nimport { InputCheckboxRadioController } from '../input-radio/controller';\nimport { InputCheckboxIconsProp, InputCheckboxIconsState, InputCheckboxVariant, Props, Watches } from './types';\n\nexport class InputCheckboxController extends InputCheckboxRadioController 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 readonly setFormAssociatedCheckboxValue = (value: StencilUnknown) => {\n\t\tif (this.component._checked) {\n\t\t\tthis.setFormAssociatedValue(value);\n\t\t} else {\n\t\t\tthis.setFormAssociatedValue(null);\n\t\t}\n\t};\n\n\tpublic validateChecked(value?: CheckedPropType): void {\n\t\tvalidateChecked(this.component, value);\n\t\tthis.setFormAssociatedCheckboxValue(this.component.state._value as StencilUnknown);\n\t}\n\n\tpublic validateIcon(value?: Stringified<InputCheckboxIconsProp>): void {\n\t\tthis.validateIcons(value);\n\t}\n\n\tpublic validateIcons(value?: Stringified<InputCheckboxIconsProp>): void {\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_icons',\n\t\t\t(value): boolean => {\n\t\t\t\treturn typeof value === 'object' && value !== null && (isString(value.checked, 1) || isString(value.indeterminate, 1) || isString(value.unchecked, 1));\n\t\t\t},\n\t\t\tnew Set(['InputCheckboxIcons']),\n\t\t\tvalue,\n\t\t\t{\n\t\t\t\thooks: {\n\t\t\t\t\tbeforePatch: (nextValue: unknown, nextState: Map<string, unknown>, component: Generic.Element.Component) => {\n\t\t\t\t\t\tnextState.set('_icons', {\n\t\t\t\t\t\t\t...(component.state._icons as InputCheckboxIconsState),\n\t\t\t\t\t\t\t...(nextValue as InputCheckboxIconsProp),\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\tpublic validateIndeterminate(value?: IndeterminatePropType): void {\n\t\tvalidateIndeterminate(this.component, value);\n\t}\n\n\t/**\n\t * @deprecated\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateType(value?: InputCheckboxVariant): void {\n\t\tdevHint(`The \"_type\" prop is deprecated. Use \"_variant\" instead.`);\n\t\tthis.validateVariant(value);\n\t}\n\n\tpublic validateValue(value?: Stringified<StencilUnknown>): void {\n\t\tsetState(this.component, '_value', value);\n\t\tthis.setFormAssociatedCheckboxValue(this.component.state._value as StencilUnknown);\n\t}\n\n\tpublic validateVariant(value?: InputCheckboxVariant): void {\n\t\tif (value === 'checkbox') {\n\t\t\tdevHint(`[KolCheckbox] The \"_variant\" value 'checkbox' is deprecated. Use the new value 'default' instead.`);\n\t\t\tvalue = 'default';\n\t\t}\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_variant',\n\t\t\t(value): boolean => typeof value === 'string' && (value === 'button' || value === 'default' || value === 'switch'),\n\t\t\tnew Set(['String {button, default, switch}']),\n\t\t\tvalue\n\t\t);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateChecked(this.component._checked);\n\t\tthis.validateIcons(this.component._icons || this.component._icon);\n\t\tthis.validateIndeterminate(this.component._indeterminate);\n\t\tthis.validateValue(this.component._value);\n\t\tthis.validateVariant(this.component._variant || this.component._type);\n\t}\n}\n","@import url(../input.css);\n@import url(common.css);\n@import url(button.css);\n@import url(checkbox.css);\n@import url(switch.css);\n","import { Component, Element, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { Stringified } from '../../types/common';\nimport { InputTypeOnDefault } from '../../types/input/types';\nimport { CheckedPropType } from '../../types/props/checked';\nimport { HideErrorPropType } from '../../types/props/hide-error';\nimport { IdPropType } from '../../types/props/id';\nimport { IndeterminatePropType } from '../../types/props/indeterminate';\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 { StencilUnknown } from '../../types/unknown';\nimport { nonce } from '../../utils/dev.utils';\nimport { stopPropagation, tryToDispatchKoliBriEvent } from '../../utils/events';\nimport { propagateFocus, showExpertSlot } from '../../utils/reuse';\nimport { getRenderStates } from '../input/controller';\nimport { InputCheckboxController } from './controller';\nimport { API, InputCheckboxIconsProp, InputCheckboxVariant, States } from './types';\n\n/**\n * @slot - Die Beschriftung der Checkbox.\n */\n@Component({\n\ttag: 'kol-input-checkbox',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolInputCheckbox implements API {\n\t@Element() private readonly host?: HTMLKolInputCheckboxElement;\n\n\tprivate readonly catchRef = (ref?: HTMLInputElement) => {\n\t\tpropagateFocus(this.host, 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\tcheckbox: true,\n\t\t\t\t\t\t[this.state._variant]: true,\n\t\t\t\t\t\t'hide-label': !!this.state._hideLabel,\n\t\t\t\t\t\tchecked: this.state._checked,\n\t\t\t\t\t}}\n\t\t\t\t\tdata-role={this.state._variant === 'button' ? 'button' : undefined}\n\t\t\t\t\tonKeyPress={this.state._variant === 'button' ? this.onChange : undefined}\n\t\t\t\t\t_alert={this.state._alert}\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_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_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<kol-icon\n\t\t\t\t\t\t\tclass=\"icon\"\n\t\t\t\t\t\t\tonClick={this.handleIconClick.bind(this)}\n\t\t\t\t\t\t\t_icons={\n\t\t\t\t\t\t\t\tthis.state._indeterminate ? this.state._icons.indeterminate : this.state._checked ? this.state._icons.checked : this.state._icons.unchecked\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t_label=\"\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tclass={this.state._variant === 'button' ? 'visually-hidden' : undefined}\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} // by checkbox?!\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\tchecked={this.state._checked}\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\tindeterminate={this.state._indeterminate}\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\ttabIndex={this.state._tabIndex}\n\t\t\t\t\t\t\ttype=\"checkbox\"\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\tonClick={undefined} // onClick is not needed since onChange already triggers the correct event\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: InputCheckboxController;\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 checkbox is checked or not. Can be read and written.\n\t * @TODO: Change type back to `CheckedPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _checked?: 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 * 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 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<InputCheckboxIconsProp>;\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: Stringified<InputCheckboxIconsProp>;\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 * Puts the checkbox in the indeterminate state, does not change the value of _checked.\n\t * @TODO: Change type back to `IndeterminatePropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _indeterminate?: boolean;\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 * 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 * 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 * Deprecated: Defines which variant should be used for presentation.\n\t *\n\t * @deprecated Verwende stattdessen das Attribute _variant.\n\t */\n\t@Prop() public _type?: InputCheckboxVariant;\n\n\t/**\n\t * Defines the value of the input.\n\t */\n\t@Prop() public _value?: Stringified<StencilUnknown> = true;\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: InputCheckboxVariant; // TODO: = 'default'; in v2 setzen\n\n\t@State() public state: States = {\n\t\t_checked: false,\n\t\t_hideError: false,\n\t\t_icons: {\n\t\t\tchecked: 'codicon codicon-check',\n\t\t\tindeterminate: 'codicon codicon-remove',\n\t\t\tunchecked: 'codicon codicon-add',\n\t\t},\n\t\t_id: `id-${nonce()}`,\n\t\t_indeterminate: false,\n\t\t_label: '', // ⚠ required\n\t\t_value: true,\n\t\t_variant: 'default',\n\t};\n\n\tpublic constructor() {\n\t\tthis.controller = new InputCheckboxController(this, 'input-checkbox', 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('_checked')\n\tpublic validateChecked(value?: CheckedPropType): void {\n\t\tthis.controller.validateChecked(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<InputCheckboxIconsProp>): void {\n\t\tthis.validateIcons(value);\n\t}\n\n\t@Watch('_icons')\n\tpublic validateIcons(value?: Stringified<InputCheckboxIconsProp>): 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('_indeterminate')\n\tpublic validateIndeterminate(value?: IndeterminatePropType): void {\n\t\tthis.controller.validateIndeterminate(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('_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('_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?: InputCheckboxVariant): void {\n\t\tthis.controller.validateType(value);\n\t}\n\n\t@Watch('_value')\n\tpublic validateValue(value?: Stringified<StencilUnknown>): void {\n\t\tthis.controller.validateValue(value);\n\t}\n\n\t@Watch('_variant')\n\tpublic validateVariant(value?: InputCheckboxVariant): void {\n\t\tthis.controller.validateVariant(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 handleIconClick(event: Event): void {\n\t\tif (!this.state._disabled) {\n\t\t\tthis.onChange(event);\n\t\t}\n\t}\n\n\tprivate onChange = (event: Event): void => {\n\t\tthis._checked = !this._checked;\n\t\tthis._indeterminate = false;\n\n\t\tconst value = this._checked ? this.state._value : null;\n\n\t\t// Event handling\n\t\tstopPropagation(event);\n\t\ttryToDispatchKoliBriEvent('change', this.host, value);\n\n\t\t// Static form handling\n\t\tthis.controller.setFormAssociatedValue(value);\n\t\tthis.controller.setFormAssociatedCheckboxValue;\n\n\t\t// Callback\n\t\tif (typeof this.state._on?.onChange === 'function') {\n\t\t\tthis.state._on.onChange(event, value);\n\t\t}\n\t};\n}\n"],"mappings":";;;ijBAeO,MAAMA,EAAkB,CAACC,EAAsCC,KACrEC,EAAaF,EAAW,W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G,GACvBS,KAAK2E,WAAWqB,iBAAiBzG,E,CAI3B,2BAAA0G,CAA4B1G,GAClCS,KAAK2E,WAAWsB,4BAA4B1G,E,CAItC,gBAAA2G,CAAiB3G,GACvBS,KAAK2E,WAAWuB,iBAAiB3G,E,CAI3B,eAAA4G,CAAgB5G,GACtBS,KAAK2E,WAAWwB,gBAAgB5G,E,CAI1B,YAAA+B,CAAa/B,GACnBS,KAAK2E,WAAWrD,aAAa/B,E,CAIvB,aAAAkC,CAAclC,GACpBS,KAAK2E,WAAWlD,cAAclC,E,CAIxB,eAAAiC,CAAgBjC,GACtBS,KAAK2E,WAAWnD,gBAAgBjC,E,CAG1B,iBAAAoC,GACN3B,KAAKgD,OAAShD,KAAKgD,SAAW,KAC9BhD,KAAKwD,SAAWxD,KAAKwD,WAAa,KAClCxD,KAAK2E,WAAWhD,mB,CAGT,eAAAgC,CAAgBoB,GACvB,IAAK/E,KAAKI,MAAM6C,UAAW,CAC1BjD,KAAK+C,SAASgC,E"}
@@ -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 o}from"./reuse-b3566e4c.js";import{v as l,g as r}from"./controller-3444f586.js";import{v as d}from"./suggestions-de4b0c1b.js";import{a as h}from"./a11y.tipps-786571db.js";import{w as p,d as u}from"./prop.validators-e20b06c5.js";import{I as c}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";class f extends c{constructor(t,e,i){super(t,e,i),this.component=t}validateAutoComplete(t){p(this.component,"_autoComplete",(t=>"string"==typeof t&&("on"===t||"off"===t)),new Set(["on | off"]),t)}validateList(){}validateSuggestions(t){d(this.component,t)}validateValue(t){u(this.component,"_value",t),this.setFormAssociatedValue(this.component.state._value)}validateHideError(t){l(this.component,t,{hooks:{afterPatch:()=>{this.component.state._hideError&&h("Property hide-error for inputs: Only use when the error message is shown outside of the input component.")}}})}componentWillLoad(){super.componentWillLoad(),this.validateAutoComplete(this.component._autoComplete),this.validateHideError(this.component._hideError),this.validateSuggestions(this.component._suggestions||this.component._list),this.validateValue(this.component._value)}}const m=":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:'*'}div.input{cursor:pointer}.error.hidden{display:none}",v=class{render(){const{ariaDescribedBy:i}=r(this.state),a=Array.isArray(this.state._suggestions)&&this.state._suggestions.length>0,s=o(this.state._label);return t(e,null,t("kol-input",{class:{color:!0,"hide-label":!!this.state._hideLabel},_disabled:this.state._disabled,_error:this.state._error,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_icons:this.state._icons,_hideError:this.state._hideError,_id:this.state._id,_label:this.state._label,_suggestions:this.state._suggestions,_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"},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,name:this.state._name,slot:"input",spellcheck:"false",type:"color",value:this.state._value},this.controller.onFacade)))))}constructor(t){i(this,t),this.catchRef=t=>{this.ref=t,n(this.host,this.ref)},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._name=void 0,this._on=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",_hideError:!1,_id:`id-${a()}`,_label:"",_suggestions:[]},this.controller=new f(this,"input-color",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)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validateSmartButton(t){this.controller.validateSmartButton(t)}validateSuggestions(t){this.controller.validateSuggestions(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 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"],_name:["validateName"],_on:["validateOn"],_smartButton:["validateSmartButton"],_suggestions:["validateSuggestions"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};v.style={default:m};export{v as kol_input_color};
4
+ import{h as t,H as i,r as e,g as s}from"./index-e9d20d00.js";import{n as a}from"./dev.utils-808b02af.js";import{a as n,s as o}from"./reuse-d79ab469.js";import{g as l}from"./controller-34e3505b.js";import{v as d}from"./suggestions-292845f9.js";import{w as r,d as h}from"./prop.validators-8dc620b0.js";import{I as p}from"./controller-icon-e49f46ec.js";import"./hide-label-c1cd274b.js";import"./label-485bdf3e.js";import"./a11y.tipps-42463a61.js";import"./events-fa760b68.js";import"./tab-index-ff0d1137.js";import"./associated.controller-4d29e8ed.js";import"./index-d56bfd0f.js";import"./icons-6c80b022.js";class u extends p{constructor(t,e,i){super(t,e,i),this.component=t}validateAutoComplete(t){r(this.component,"_autoComplete",(t=>"string"==typeof t&&("on"===t||"off"===t)),new Set(["on | off"]),t)}validateList(){}validateSuggestions(t){d(this.component,t)}validateValue(t){h(this.component,"_value",t),this.setFormAssociatedValue(this.component.state._value)}componentWillLoad(){super.componentWillLoad(),this.validateAutoComplete(this.component._autoComplete),this.validateSuggestions(this.component._suggestions||this.component._list),this.validateValue(this.component._value)}}const c=":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}.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%;}: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:'*'}div.input{cursor:pointer}.error.hidden{display:none}",f=class{render(){const{ariaDescribedBy:e}=l(this.state),a=Array.isArray(this.state._suggestions)&&this.state._suggestions.length>0,s=o(this.state._label);return t(i,null,t("kol-input",{class:{color:!0,"hide-label":!!this.state._hideLabel},_disabled:this.state._disabled,_error:this.state._error,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_icons:this.state._icons,_hideError:this.state._hideError,_id:this.state._id,_label:this.state._label,_suggestions:this.state._suggestions,_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"},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":e.length>0?e.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,name:this.state._name,slot:"input",spellcheck:"false",type:"color",value:this.state._value},this.controller.onFacade)))))}constructor(t){e(this,t),this.catchRef=t=>{this.ref=t,n(this.host,this.ref)},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._name=void 0,this._on=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",_hideError:!1,_id:`id-${a()}`,_label:"",_suggestions:[]},this.controller=new u(this,"input-color",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)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validateSmartButton(t){this.controller.validateSmartButton(t)}validateSuggestions(t){this.controller.validateSuggestions(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 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"],_name:["validateName"],_on:["validateOn"],_smartButton:["validateSmartButton"],_suggestions:["validateSuggestions"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};f.style={default:c};export{f as kol_input_color};
@@ -1 +1 @@
1
- {"version":3,"names":["InputColorController","InputIconController","constructor","component","name","host","super","this","validateAutoComplete","value","watchValidator","Set","validateList","validateSuggestions","validateValue","watchString","setFormAssociatedValue","state","_value","validateHideError","hooks","afterPatch","_hideError","a11yHint","componentWillLoad","_autoComplete","_suggestions","_list","defaultStyleCss","KolInputColor","render","ariaDescribedBy","getRenderStates","hasSuggestions","Array","isArray","length","hasExpertSlot","showExpertSlot","_label","h","Host","class","color","_hideLabel","_disabled","_error","_hint","_icons","_id","_smartButton","_tooltipAlign","_touched","onClick","_a","ref","focus","slot","Object","assign","catchRef","title","accessKey","_accessKey","join","undefined","autoCapitalize","autoComplete","autoCorrect","disabled","id","list","_name","spellcheck","type","controller","onFacade","hostRef","propagateFocus","nonce","validateAccessKey","validateAlert","validateDisabled","validateError","validateHideLabel","validateHint","validateIcon","validateIcons","validateId","validateLabel","validateName","validateOn","validateSmartButton","validateSyncValueBySelector","validateTabIndex","validateTouched","_alert"],"sources":["src/components/input-color/controller.ts","src/components/input-color/style.css?tag=kol-input-color&mode=default&encapsulation=shadow","src/components/input-color/component.tsx"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { InputTypeOnOff } from '../../types/input/types';\nimport { HideErrorPropType, validateHideError } from '../../types/props/hide-error';\nimport { SuggestionsPropType, validateSuggestions } from '../../types/props/suggestions';\nimport { a11yHint } from '../../utils/a11y.tipps';\nimport { watchString, watchValidator } from '../../utils/prop.validators';\nimport { InputIconController } from '../@deprecated/input/controller-icon';\nimport { Props, Watches } from './types';\n\nexport class InputColorController 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 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\tpublic validateValue(value?: string): void {\n\t\twatchString(this.component, '_value', value);\n\t\tthis.setFormAssociatedValue(this.component.state._value as string);\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 componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateAutoComplete(this.component._autoComplete);\n\t\tthis.validateHideError(this.component._hideError);\n\t\tthis.validateSuggestions(this.component._suggestions || this.component._list);\n\t\tthis.validateValue(this.component._value);\n\t}\n}\n","@import url(../input-line.css);\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, 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 { 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 { getRenderStates } from '../input/controller';\nimport { InputColorController } from './controller';\nimport { API, States } from './types';\n\n/**\n * @slot - Die Beschriftung des Eingabefeldes.\n */\n@Component({\n\ttag: 'kol-input-color',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolInputColor implements API {\n\t@Element() private readonly host?: HTMLKolInputColorElement;\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 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\t<kol-input\n\t\t\t\t\tclass={{\n\t\t\t\t\t\tcolor: 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_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_hideError={this.state._hideError}\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_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\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\tname={this.state._name}\n\t\t\t\t\t\t\tslot=\"input\"\n\t\t\t\t\t\t\tspellcheck=\"false\"\n\t\t\t\t\t\t\ttype=\"color\"\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/>\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: InputColorController;\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/**\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 instead.\n\t */\n\t@Prop() public _list?: SuggestionsPropType;\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 * 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_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 InputColorController(this, 'input-color', 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?: SuggestionsPropType): void {\n\t\tthis.validateSuggestions(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('_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('_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"],"mappings":";;;snBAUaA,UAA6BC,EAGzC,WAAAC,CAAmBC,EAA8CC,EAAcC,GAC9EC,MAAMH,EAAWC,EAAMC,GACvBE,KAAKJ,UAAYA,C,CAGX,oBAAAK,CAAqBC,GAC3BC,EACCH,KAAKJ,UACL,iBACCM,UAA0BA,IAAU,WAAaA,IAAU,MAAQA,IAAU,QAC9E,IAAIE,IAAI,CAAC,aACTF,E,CAQK,YAAAG,GAAY,CAEZ,mBAAAC,CAAoBJ,GAC1BI,EAAoBN,KAAKJ,UAAWM,E,CAG9B,aAAAK,CAAcL,GACpBM,EAAYR,KAA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,E,CAI3B,aAAA0E,CAAc1E,GACpBF,KAAKoE,WAAWQ,cAAc1E,E,CAIxB,iBAAAU,CAAkBV,GACxBF,KAAKoE,WAAWxD,kBAAkBV,E,CAI5B,iBAAA2E,CAAkB3E,GACxBF,KAAKoE,WAAWS,kBAAkB3E,E,CAI5B,YAAA4E,CAAa5E,GACnBF,KAAKoE,WAAWU,aAAa5E,E,CAIvB,YAAA6E,CAAa7E,GACnBF,KAAKgF,cAAc9E,E,CAIb,aAAA8E,CAAc9E,GACpBF,KAAKoE,WAAWY,cAAc9E,E,CAIxB,UAAA+E,CAAW/E,GACjBF,KAAKoE,WAAWa,WAAW/E,E,CAIrB,aAAAgF,CAAchF,GACpBF,KAAKoE,WAAWc,cAAchF,E,CAIxB,YAAAG,CAAaH,GACnBF,KAAKM,oBAAoBJ,E,CAInB,YAAAiF,CAAajF,GACnBF,KAAKoE,WAAWe,aAAajF,E,CAIvB,UAAAkF,CAAWlF,GACjBF,KAAKoE,WAAWgB,WAAWlF,E,CAIrB,mBAAAmF,CAAoBnF,GAC1BF,KAAKoE,WAAWiB,oBAAoBnF,E,CAI9B,mBAAAI,CAAoBJ,GAC1BF,KAAKoE,WAAW9D,oBAAoBJ,E,CAI9B,2BAAAoF,CAA4BpF,GAClCF,KAAKoE,WAAWkB,4BAA4BpF,E,CAItC,gBAAAqF,CAAiBrF,GACvBF,KAAKoE,WAAWmB,iBAAiBrF,E,CAI3B,eAAAsF,CAAgBtF,GACtBF,KAAKoE,WAAWoB,gBAAgBtF,E,CAI1B,aAAAK,CAAcL,GACpBF,KAAKoE,WAAW7D,cAAcL,E,CAGxB,iBAAAe,GACNjB,KAAKyF,OAASzF,KAAKyF,SAAW,KAC9BzF,KAAK6C,SAAW7C,KAAK6C,WAAa,KAClC7C,KAAKoE,WAAWnD,mB"}
1
+ {"version":3,"names":["InputColorController","InputIconController","constructor","component","name","host","super","this","validateAutoComplete","value","watchValidator","Set","validateList","validateSuggestions","validateValue","watchString","setFormAssociatedValue","state","_value","componentWillLoad","_autoComplete","_suggestions","_list","defaultStyleCss","KolInputColor","render","ariaDescribedBy","getRenderStates","hasSuggestions","Array","isArray","length","hasExpertSlot","showExpertSlot","_label","h","Host","class","color","_hideLabel","_disabled","_error","_hint","_icons","_hideError","_id","_smartButton","_tooltipAlign","_touched","onClick","_a","ref","focus","slot","Object","assign","catchRef","title","accessKey","_accessKey","join","undefined","autoCapitalize","autoComplete","autoCorrect","disabled","id","list","_name","spellcheck","type","controller","onFacade","hostRef","propagateFocus","nonce","validateAccessKey","validateAlert","validateDisabled","validateError","validateHideError","validateHideLabel","validateHint","validateIcon","validateIcons","validateId","validateLabel","validateName","validateOn","validateSmartButton","validateSyncValueBySelector","validateTabIndex","validateTouched","_alert"],"sources":["src/components/input-color/controller.ts","src/components/input-color/style.css?tag=kol-input-color&mode=default&encapsulation=shadow","src/components/input-color/component.tsx"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { InputTypeOnOff } from '../../types/input/types';\nimport { SuggestionsPropType, validateSuggestions } from '../../types/props/suggestions';\nimport { watchString, watchValidator } from '../../utils/prop.validators';\nimport { InputIconController } from '../@deprecated/input/controller-icon';\nimport { Props, Watches } from './types';\n\nexport class InputColorController 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 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\tpublic validateValue(value?: string): void {\n\t\twatchString(this.component, '_value', value);\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.validateSuggestions(this.component._suggestions || this.component._list);\n\t\tthis.validateValue(this.component._value);\n\t}\n}\n","@import url(../input-line.css);\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, 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 { 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 { getRenderStates } from '../input/controller';\nimport { InputColorController } from './controller';\nimport { API, States } from './types';\n\n/**\n * @slot - Die Beschriftung des Eingabefeldes.\n */\n@Component({\n\ttag: 'kol-input-color',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolInputColor implements API {\n\t@Element() private readonly host?: HTMLKolInputColorElement;\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 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\t<kol-input\n\t\t\t\t\tclass={{\n\t\t\t\t\t\tcolor: 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_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_hideError={this.state._hideError}\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_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\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\tname={this.state._name}\n\t\t\t\t\t\t\tslot=\"input\"\n\t\t\t\t\t\t\tspellcheck=\"false\"\n\t\t\t\t\t\t\ttype=\"color\"\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/>\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: InputColorController;\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/**\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 instead.\n\t */\n\t@Prop() public _list?: SuggestionsPropType;\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 * 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_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 InputColorController(this, 'input-color', 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?: SuggestionsPropType): void {\n\t\tthis.validateSuggestions(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('_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('_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"],"mappings":";;;mmBAQaA,UAA6BC,EAGzC,WAAAC,CAAmBC,EAA8CC,EAAcC,GAC9EC,MAAMH,EAAWC,EAAMC,GACvBE,KAAKJ,UAAYA,C,CAGX,oBAAAK,CAAqBC,GAC3BC,EACCH,KAAKJ,UACL,iBACCM,UAA0BA,IAAU,WAAaA,IAAU,MAAQA,IAAU,QAC9E,IAAIE,IAAI,CAAC,aACTF,E,CAQK,YAAAG,GAAY,CAEZ,mBAAAC,CAAoBJ,GAC1BI,EAAoBN,KAAKJ,UAAWM,E,CAG9B,aAAAK,CAAcL,GACpBM,EAAYR,KAAKJ,UAAW,SAAUM,GACtCF,KAAKS,uBAAuBT,KAAKJ,UAAUc,MAAMC,O,CAG3C,iBAAAC,GACNb,MAAMa,oBACNZ,KAAKC,qBAAqBD,KAAKJ,UAAUiB,eACzCb,KAAKM,oBAAoBN,KAAKJ,UAAUkB,cAAgBd,KAAKJ,UAAUmB,OACvEf,KAAKO,cAAcP,KAAKJ,UAAUe,O,EC7CpC,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,cAAc7E,E,CAIxB,YAAAG,CAAaH,GACnBF,KAAKM,oBAAoBJ,E,CAInB,YAAA8E,CAAa9E,GACnBF,KAAKgE,WAAWgB,aAAa9E,E,CAIvB,UAAA+E,CAAW/E,GACjBF,KAAKgE,WAAWiB,WAAW/E,E,CAIrB,mBAAAgF,CAAoBhF,GAC1BF,KAAKgE,WAAWkB,oBAAoBhF,E,CAI9B,mBAAAI,CAAoBJ,GAC1BF,KAAKgE,WAAW1D,oBAAoBJ,E,CAI9B,2BAAAiF,CAA4BjF,GAClCF,KAAKgE,WAAWmB,4BAA4BjF,E,CAItC,gBAAAkF,CAAiBlF,GACvBF,KAAKgE,WAAWoB,iBAAiBlF,E,CAI3B,eAAAmF,CAAgBnF,GACtBF,KAAKgE,WAAWqB,gBAAgBnF,E,CAI1B,aAAAK,CAAcL,GACpBF,KAAKgE,WAAWzD,cAAcL,E,CAGxB,iBAAAU,GACNZ,KAAKsF,OAAStF,KAAKsF,SAAW,KAC9BtF,KAAKyC,SAAWzC,KAAKyC,WAAa,KAClCzC,KAAKgE,WAAWpD,mB"}
@@ -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-e9d20d00.js";import{n as a}from"./dev.utils-808b02af.js";import{a as n,s as l}from"./reuse-d79ab469.js";import{p as d}from"./controller-e18b0591.js";import{g as o}from"./controller-34e3505b.js";import{a as r,w as h,s as u,e as p}from"./prop.validators-8dc620b0.js";import{v as c}from"./suggestions-292845f9.js";import{I as f}from"./controller-icon-e49f46ec.js";import"./a11y.tipps-42463a61.js";import"./hide-label-c1cd274b.js";import"./label-485bdf3e.js";import"./events-fa760b68.js";import"./tab-index-ff0d1137.js";import"./associated.controller-4d29e8ed.js";import"./index-d56bfd0f.js";import"./icons-6c80b022.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;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%;}: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}",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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vE,YAAY/C,E,CAItB,WAAAiD,CAAYjD,GAClBQ,KAAK8G,WAAWrE,YAAYjD,E,CAItB,YAAAwI,CAAaxI,GACnBQ,KAAK8G,WAAWkB,aAAaxI,E,CAIvB,UAAAkD,CAAWlD,GACjBQ,KAAK8G,WAAWpE,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 { 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 { 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,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CAI9B,YAAAoD,CAAapD,GACnBQ,KAAK4G,WAAWhE,aAAapD,E,CAIvB,2BAAAyI,CAA4BzI,GAClCQ,KAAK4G,WAAWqB,4BAA4BzI,E,CAItC,gBAAA0I,CAAiB1I,GACvBQ,KAAK4G,WAAWsB,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-e9d20d00.js";import{n as s}from"./dev.utils-808b02af.js";import{a as l,s as n}from"./prop.validators-8dc620b0.js";import{a as d,s as o}from"./reuse-d79ab469.js";import{p as r}from"./controller-e18b0591.js";import{g as h}from"./controller-34e3505b.js";import{I as p}from"./controller-1aaf6ed9.js";import"./a11y.tipps-42463a61.js";import"./index-d56bfd0f.js";import"./hide-label-c1cd274b.js";import"./label-485bdf3e.js";import"./events-fa760b68.js";import"./tab-index-ff0d1137.js";import"./associated.controller-4d29e8ed.js";import"./controller-7592ddb2.js";import"./controller-icon-e49f46ec.js";import"./icons-6c80b022.js";import"./suggestions-292845f9.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 f=":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}.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%;}: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}",m=class{render(){const{ariaDescribedBy:i}=h(this.state),a=Array.isArray(this.state._suggestions)&&this.state._suggestions.length>0,l=o(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,d(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"]}}};m.style={default:f};export{m as kol_input_email};