@public-ui/components 2.0.0-rc.0 → 2.0.0-rc.10

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 (948) hide show
  1. package/custom-elements.json +85 -79
  2. package/dist/cjs/InternalUnderlinedAccessKey-1daef254.js +4 -0
  3. package/dist/cjs/InternalUnderlinedAccessKey-1daef254.js.map +1 -0
  4. package/dist/cjs/{a11y.tipps-417b66df.js → a11y.tipps-52924c12.js} +1 -1
  5. package/dist/cjs/{a11y.tipps-417b66df.js.map → a11y.tipps-52924c12.js.map} +1 -1
  6. package/dist/cjs/access-key-abeed865.js +4 -0
  7. package/dist/cjs/access-key-abeed865.js.map +1 -0
  8. package/dist/cjs/align-floating-elements-01d5ad38.js +4 -0
  9. package/dist/cjs/align-floating-elements-01d5ad38.js.map +1 -0
  10. package/dist/cjs/alignment-16eddf21.js +4 -0
  11. package/dist/cjs/alignment-16eddf21.js.map +1 -0
  12. package/dist/cjs/alternative-button-link-role-899ccab0.js +4 -0
  13. package/dist/cjs/{alternative-button-link-role-76fc0537.js.map → alternative-button-link-role-899ccab0.js.map} +1 -1
  14. package/dist/cjs/app-globals-9f9c65d2.js +4 -0
  15. package/dist/cjs/app-globals-9f9c65d2.js.map +1 -0
  16. package/dist/cjs/{associated.controller-0729954e.js → associated.controller-4e3e28de.js} +1 -1
  17. package/dist/cjs/{associated.controller-0729954e.js.map → associated.controller-4e3e28de.js.map} +1 -1
  18. package/dist/cjs/{color-71d1c910.js → color-5e9f04c6.js} +1 -1
  19. package/dist/cjs/{color-71d1c910.js.map → color-5e9f04c6.js.map} +1 -1
  20. package/dist/cjs/controller-0ab1842e.js +4 -0
  21. package/dist/cjs/controller-0ab1842e.js.map +1 -0
  22. package/dist/cjs/{controller-2fb82656.js → controller-22c05ddc.js} +1 -1
  23. package/dist/cjs/{controller-2fb82656.js.map → controller-22c05ddc.js.map} +1 -1
  24. package/dist/cjs/controller-343d56b2.js +4 -0
  25. package/dist/cjs/controller-343d56b2.js.map +1 -0
  26. package/dist/cjs/{controller-f05f47fe.js → controller-843f334b.js} +1 -1
  27. package/dist/cjs/{controller-f05f47fe.js.map → controller-843f334b.js.map} +1 -1
  28. package/dist/cjs/controller-964c90bb.js +4 -0
  29. package/dist/cjs/controller-964c90bb.js.map +1 -0
  30. package/dist/cjs/{controller-icon-3ace6f32.js → controller-icon-aa22cad7.js} +1 -1
  31. package/dist/cjs/{controller-icon-3ace6f32.js.map → controller-icon-aa22cad7.js.map} +1 -1
  32. package/dist/cjs/custom-class-36ae66f7.js +4 -0
  33. package/dist/cjs/custom-class-36ae66f7.js.map +1 -0
  34. package/dist/cjs/details-synced-open-state-01d46fbc.js +4 -0
  35. package/dist/cjs/details-synced-open-state-01d46fbc.js.map +1 -0
  36. package/dist/cjs/dev.utils-dd0de607.js +4 -0
  37. package/dist/cjs/dev.utils-dd0de607.js.map +1 -0
  38. package/dist/cjs/{devtools-8a3aba37.js → devtools-d6fd6f49.js} +1 -1
  39. package/dist/cjs/{devtools-8a3aba37.js.map → devtools-d6fd6f49.js.map} +1 -1
  40. package/dist/cjs/has-closer-8e3de657.js +4 -0
  41. package/dist/cjs/{has-closer-3f258cb1.js.map → has-closer-8e3de657.js.map} +1 -1
  42. package/dist/cjs/hide-label-2e529fc2.js +4 -0
  43. package/dist/cjs/{hide-label-a1359f24.js.map → hide-label-2e529fc2.js.map} +1 -1
  44. package/dist/cjs/i18n-3c9b849c.js +4 -0
  45. package/dist/cjs/i18n-3c9b849c.js.map +1 -0
  46. package/dist/cjs/{icons-ef0868ed.js → icons-9051b859.js} +1 -1
  47. package/dist/cjs/{icons-ef0868ed.js.map → icons-9051b859.js.map} +1 -1
  48. package/dist/cjs/image-source-940c2634.js +4 -0
  49. package/dist/cjs/{image-source-30ac0359.js.map → image-source-940c2634.js.map} +1 -1
  50. package/dist/cjs/{index-d94c6297.js → index-07f69fb0.js} +1 -1
  51. package/dist/cjs/{index-d94c6297.js.map → index-07f69fb0.js.map} +1 -1
  52. package/dist/cjs/index-8b7eb8e5.js +4 -0
  53. package/dist/cjs/index-8b7eb8e5.js.map +1 -0
  54. package/dist/cjs/index-a0085191.js +5 -0
  55. package/dist/cjs/index-a0085191.js.map +1 -0
  56. package/dist/cjs/index.cjs.js +1 -1
  57. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  58. package/dist/cjs/kol-abbr.cjs.entry.js.map +1 -1
  59. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  60. package/dist/cjs/kol-accordion.cjs.entry.js.map +1 -1
  61. package/dist/cjs/kol-alert-wc_2.cjs.entry.js +4 -0
  62. package/dist/cjs/kol-alert-wc_2.cjs.entry.js.map +1 -0
  63. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  64. package/dist/cjs/kol-alert.cjs.entry.js.map +1 -1
  65. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  66. package/dist/cjs/kol-avatar.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.cjs.entry.js +1 -1
  74. package/dist/cjs/kol-button-group.cjs.entry.js.map +1 -1
  75. package/dist/cjs/kol-button-link-text-switch.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-button-link-text-switch.cjs.entry.js.map +1 -1
  77. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  78. package/dist/cjs/kol-button-link.cjs.entry.js.map +1 -1
  79. package/dist/cjs/kol-button-wc_2.cjs.entry.js +4 -0
  80. package/dist/cjs/kol-button-wc_2.cjs.entry.js.map +1 -0
  81. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  82. package/dist/cjs/kol-button.cjs.entry.js.map +1 -1
  83. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  84. package/dist/cjs/kol-card.cjs.entry.js.map +1 -1
  85. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  86. package/dist/cjs/kol-details.cjs.entry.js.map +1 -1
  87. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  88. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  89. package/dist/cjs/kol-heading.cjs.entry.js.map +1 -1
  90. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  91. package/dist/cjs/kol-icon.cjs.entry.js.map +1 -1
  92. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  93. package/dist/cjs/kol-image.cjs.entry.js.map +1 -1
  94. package/dist/cjs/kol-indented-text.cjs.entry.js +1 -1
  95. package/dist/cjs/kol-indented-text.cjs.entry.js.map +1 -1
  96. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  97. package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
  98. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  99. package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
  100. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
  102. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  103. package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
  104. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  105. package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
  106. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  107. package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
  108. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  109. package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
  110. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  111. package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
  112. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  113. package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
  114. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  115. package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
  116. package/dist/cjs/kol-input.cjs.entry.js +1 -1
  117. package/dist/cjs/kol-input.cjs.entry.js.map +1 -1
  118. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  119. package/dist/cjs/kol-kolibri.cjs.entry.js.map +1 -1
  120. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  121. package/dist/cjs/kol-link-button.cjs.entry.js.map +1 -1
  122. package/dist/cjs/kol-link-group.cjs.entry.js +1 -1
  123. package/dist/cjs/kol-link-group.cjs.entry.js.map +1 -1
  124. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  125. package/dist/cjs/kol-link-wc.cjs.entry.js.map +1 -1
  126. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  127. package/dist/cjs/kol-link.cjs.entry.js.map +1 -1
  128. package/dist/cjs/kol-logo.cjs.entry.js +1 -1
  129. package/dist/cjs/kol-logo.cjs.entry.js.map +1 -1
  130. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  131. package/dist/cjs/kol-modal.cjs.entry.js.map +1 -1
  132. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  133. package/dist/cjs/kol-nav.cjs.entry.js.map +1 -1
  134. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  135. package/dist/cjs/kol-pagination.cjs.entry.js.map +1 -1
  136. package/dist/cjs/kol-popover-wc.cjs.entry.js +4 -0
  137. package/dist/cjs/kol-popover-wc.cjs.entry.js.map +1 -0
  138. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  139. package/dist/cjs/kol-progress.cjs.entry.js.map +1 -1
  140. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  141. package/dist/cjs/kol-quote.cjs.entry.js.map +1 -1
  142. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  143. package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
  144. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  145. package/dist/cjs/kol-skip-nav.cjs.entry.js.map +1 -1
  146. package/dist/cjs/kol-span-wc.cjs.entry.js +4 -0
  147. package/dist/cjs/kol-span-wc.cjs.entry.js.map +1 -0
  148. package/dist/cjs/kol-span.cjs.entry.js +1 -1
  149. package/dist/cjs/kol-span.cjs.entry.js.map +1 -1
  150. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  151. package/dist/cjs/kol-spin.cjs.entry.js.map +1 -1
  152. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  153. package/dist/cjs/kol-split-button.cjs.entry.js.map +1 -1
  154. package/dist/cjs/kol-symbol.cjs.entry.js +1 -1
  155. package/dist/cjs/kol-table.cjs.entry.js +1 -1
  156. package/dist/cjs/kol-table.cjs.entry.js.map +1 -1
  157. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  158. package/dist/cjs/kol-tabs.cjs.entry.js.map +1 -1
  159. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  160. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  161. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  162. package/dist/cjs/kol-toast-container.cjs.entry.js.map +1 -1
  163. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  164. package/dist/cjs/kol-version.cjs.entry.js.map +1 -1
  165. package/dist/cjs/kolibri.cjs.js +1 -1
  166. package/dist/cjs/kolibri.cjs.js.map +1 -1
  167. package/dist/cjs/{label-f59591d3.js → label-ba827b7b.js} +1 -1
  168. package/dist/cjs/{label-f59591d3.js.map → label-ba827b7b.js.map} +1 -1
  169. package/dist/cjs/loader.cjs.js +1 -1
  170. package/dist/cjs/open-3a09e626.js +4 -0
  171. package/dist/cjs/{open-1c4dcfb7.js.map → open-3a09e626.js.map} +1 -1
  172. package/dist/cjs/{prop.validators-40b03d45.js → prop.validators-ef9875d5.js} +1 -1
  173. package/dist/cjs/prop.validators-ef9875d5.js.map +1 -0
  174. package/dist/cjs/rows-6c1fae6a.js +4 -0
  175. package/dist/cjs/{rows-49957d39.js.map → rows-6c1fae6a.js.map} +1 -1
  176. package/dist/cjs/show-431f9be5.js +4 -0
  177. package/dist/cjs/{show-2a7af4da.js.map → show-431f9be5.js.map} +1 -1
  178. package/dist/cjs/{suggestions-ac1779ec.js → suggestions-b83bb79e.js} +1 -1
  179. package/dist/cjs/{suggestions-ac1779ec.js.map → suggestions-b83bb79e.js.map} +1 -1
  180. package/dist/cjs/{tab-index-62a72b67.js → tab-index-8e513fa5.js} +1 -1
  181. package/dist/cjs/{tab-index-62a72b67.js.map → tab-index-8e513fa5.js.map} +1 -1
  182. package/dist/cjs/{toaster-d370fe6a.js → toaster-812c9c9b.js} +1 -1
  183. package/dist/cjs/toaster-812c9c9b.js.map +1 -0
  184. package/dist/cjs/{toaster-82cf12c5.js → toaster-e3a1416c.js} +1 -1
  185. package/dist/cjs/toaster-e3a1416c.js.map +1 -0
  186. package/dist/cjs/{tooltip-align-f7332f5b.js → tooltip-align-862b0558.js} +1 -1
  187. package/dist/cjs/{tooltip-align-f7332f5b.js.map → tooltip-align-862b0558.js.map} +1 -1
  188. package/dist/cjs/{validation-d8756daa.js → validation-3812c183.js} +1 -1
  189. package/dist/cjs/{validation-d8756daa.js.map → validation-3812c183.js.map} +1 -1
  190. package/dist/cjs/validation-8623ec51.js +4 -0
  191. package/dist/cjs/validation-8623ec51.js.map +1 -0
  192. package/dist/components/align-floating-elements.js +4 -0
  193. package/dist/components/align-floating-elements.js.map +1 -0
  194. package/dist/components/color.js +1 -1
  195. package/dist/components/component.js +1 -1
  196. package/dist/components/component.js.map +1 -1
  197. package/dist/components/component11.js +1 -1
  198. package/dist/components/component11.js.map +1 -1
  199. package/dist/components/component12.js +1 -1
  200. package/dist/components/component12.js.map +1 -1
  201. package/dist/components/component13.js +1 -1
  202. package/dist/components/component13.js.map +1 -1
  203. package/dist/components/component14.js +1 -1
  204. package/dist/components/component14.js.map +1 -1
  205. package/dist/components/component15.js +1 -1
  206. package/dist/components/component15.js.map +1 -1
  207. package/dist/components/component2.js +1 -1
  208. package/dist/components/component2.js.map +1 -1
  209. package/dist/components/component3.js +1 -1
  210. package/dist/components/component3.js.map +1 -1
  211. package/dist/components/component4.js +1 -1
  212. package/dist/components/component4.js.map +1 -1
  213. package/dist/components/component5.js +1 -1
  214. package/dist/components/component5.js.map +1 -1
  215. package/dist/components/component6.js +1 -1
  216. package/dist/components/component6.js.map +1 -1
  217. package/dist/components/component8.js +1 -1
  218. package/dist/components/component8.js.map +1 -1
  219. package/dist/components/component9.js +1 -1
  220. package/dist/components/component9.js.map +1 -1
  221. package/dist/components/controller.js +1 -1
  222. package/dist/components/controller2.js +1 -1
  223. package/dist/components/controller2.js.map +1 -1
  224. package/dist/components/controller3.js +1 -1
  225. package/dist/components/controller3.js.map +1 -1
  226. package/dist/components/details-synced-open-state.js +1 -1
  227. package/dist/components/details-synced-open-state.js.map +1 -1
  228. package/dist/components/devtools.js +1 -1
  229. package/dist/components/i18n.js +1 -1
  230. package/dist/components/i18n.js.map +1 -1
  231. package/dist/components/index.js +1 -1
  232. package/dist/components/index.js.map +1 -1
  233. package/dist/components/kol-abbr.js +1 -1
  234. package/dist/components/kol-abbr.js.map +1 -1
  235. package/dist/components/kol-accordion.js +1 -1
  236. package/dist/components/kol-accordion.js.map +1 -1
  237. package/dist/components/kol-avatar.js +1 -1
  238. package/dist/components/kol-avatar.js.map +1 -1
  239. package/dist/components/kol-breadcrumb.js +1 -1
  240. package/dist/components/kol-breadcrumb.js.map +1 -1
  241. package/dist/components/kol-button-group.js +1 -1
  242. package/dist/components/kol-button-group.js.map +1 -1
  243. package/dist/components/kol-button-link.js +1 -1
  244. package/dist/components/kol-button-link.js.map +1 -1
  245. package/dist/components/kol-card.js +1 -1
  246. package/dist/components/kol-card.js.map +1 -1
  247. package/dist/components/kol-details.js +1 -1
  248. package/dist/components/kol-details.js.map +1 -1
  249. package/dist/components/kol-heading.js +1 -1
  250. package/dist/components/kol-heading.js.map +1 -1
  251. package/dist/components/kol-image.js +1 -1
  252. package/dist/components/kol-image.js.map +1 -1
  253. package/dist/components/kol-input-checkbox.js +1 -1
  254. package/dist/components/kol-input-checkbox.js.map +1 -1
  255. package/dist/components/kol-input-color.js +1 -1
  256. package/dist/components/kol-input-color.js.map +1 -1
  257. package/dist/components/kol-input-date.js +1 -1
  258. package/dist/components/kol-input-date.js.map +1 -1
  259. package/dist/components/kol-input-email.js +1 -1
  260. package/dist/components/kol-input-email.js.map +1 -1
  261. package/dist/components/kol-input-file.js +1 -1
  262. package/dist/components/kol-input-file.js.map +1 -1
  263. package/dist/components/kol-input-number.js +1 -1
  264. package/dist/components/kol-input-number.js.map +1 -1
  265. package/dist/components/kol-input-password.js +1 -1
  266. package/dist/components/kol-input-password.js.map +1 -1
  267. package/dist/components/kol-input-radio.js +1 -1
  268. package/dist/components/kol-input-radio.js.map +1 -1
  269. package/dist/components/kol-input-range.js +1 -1
  270. package/dist/components/kol-input-range.js.map +1 -1
  271. package/dist/components/kol-input-text.js +1 -1
  272. package/dist/components/kol-input-text.js.map +1 -1
  273. package/dist/components/kol-kolibri.js +1 -1
  274. package/dist/components/kol-kolibri.js.map +1 -1
  275. package/dist/components/kol-link-button.js +1 -1
  276. package/dist/components/kol-link-button.js.map +1 -1
  277. package/dist/components/kol-link-group.js +1 -1
  278. package/dist/components/kol-link-group.js.map +1 -1
  279. package/dist/components/kol-logo.js +1 -1
  280. package/dist/components/kol-logo.js.map +1 -1
  281. package/dist/components/kol-modal.js +1 -1
  282. package/dist/components/kol-modal.js.map +1 -1
  283. package/dist/components/kol-nav.js +1 -1
  284. package/dist/components/kol-nav.js.map +1 -1
  285. package/dist/components/{kol-popover.d.ts → kol-popover-wc.d.ts} +4 -4
  286. package/dist/components/kol-popover-wc.js +4 -0
  287. package/dist/components/kol-popover-wc.js.map +1 -0
  288. package/dist/components/kol-progress.js +1 -1
  289. package/dist/components/kol-progress.js.map +1 -1
  290. package/dist/components/kol-quote.js +1 -1
  291. package/dist/components/kol-quote.js.map +1 -1
  292. package/dist/components/kol-skip-nav.js +1 -1
  293. package/dist/components/kol-skip-nav.js.map +1 -1
  294. package/dist/components/kol-span.js +1 -1
  295. package/dist/components/kol-span.js.map +1 -1
  296. package/dist/components/kol-spin.js +1 -1
  297. package/dist/components/kol-spin.js.map +1 -1
  298. package/dist/components/kol-split-button.js +1 -1
  299. package/dist/components/kol-split-button.js.map +1 -1
  300. package/dist/components/kol-table.js +1 -1
  301. package/dist/components/kol-table.js.map +1 -1
  302. package/dist/components/kol-tabs.js +1 -1
  303. package/dist/components/kol-tabs.js.map +1 -1
  304. package/dist/components/kol-textarea.js +1 -1
  305. package/dist/components/kol-textarea.js.map +1 -1
  306. package/dist/components/kol-toast-container.js +1 -1
  307. package/dist/components/kol-toast-container.js.map +1 -1
  308. package/dist/components/kol-version.js +1 -1
  309. package/dist/components/kol-version.js.map +1 -1
  310. package/dist/components/prop.validators.js +1 -1
  311. package/dist/components/prop.validators.js.map +1 -1
  312. package/dist/components/shadow.js +1 -1
  313. package/dist/components/shadow.js.map +1 -1
  314. package/dist/components/shadow2.js +1 -1
  315. package/dist/components/shadow2.js.map +1 -1
  316. package/dist/components/shadow3.js +1 -1
  317. package/dist/components/shadow3.js.map +1 -1
  318. package/dist/components/toaster.js.map +1 -1
  319. package/dist/components/tooltip-align.js +1 -1
  320. package/dist/esm/InternalUnderlinedAccessKey-8b996006.js +4 -0
  321. package/dist/esm/InternalUnderlinedAccessKey-8b996006.js.map +1 -0
  322. package/dist/esm/{a11y.tipps-7143f6fd.js → a11y.tipps-1e89ea61.js} +1 -1
  323. package/dist/esm/{a11y.tipps-7143f6fd.js.map → a11y.tipps-1e89ea61.js.map} +1 -1
  324. package/dist/esm/access-key-3f233e98.js +4 -0
  325. package/dist/esm/access-key-3f233e98.js.map +1 -0
  326. package/dist/esm/align-floating-elements-ebf0712d.js +4 -0
  327. package/dist/esm/align-floating-elements-ebf0712d.js.map +1 -0
  328. package/dist/esm/alignment-32a9ec52.js +4 -0
  329. package/dist/esm/alignment-32a9ec52.js.map +1 -0
  330. package/dist/esm/alternative-button-link-role-1c319b0c.js +4 -0
  331. package/dist/esm/{alternative-button-link-role-5e1ea5eb.js.map → alternative-button-link-role-1c319b0c.js.map} +1 -1
  332. package/dist/esm/app-globals-0c1a662e.js +4 -0
  333. package/dist/esm/app-globals-0c1a662e.js.map +1 -0
  334. package/dist/esm/{associated.controller-d70c8be1.js → associated.controller-89ab9c94.js} +1 -1
  335. package/dist/esm/{associated.controller-d70c8be1.js.map → associated.controller-89ab9c94.js.map} +1 -1
  336. package/dist/esm/{color-048551d8.js → color-3208b6fe.js} +1 -1
  337. package/dist/esm/{color-048551d8.js.map → color-3208b6fe.js.map} +1 -1
  338. package/dist/esm/{controller-757cd887.js → controller-85e5be61.js} +1 -1
  339. package/dist/esm/{controller-757cd887.js.map → controller-85e5be61.js.map} +1 -1
  340. package/dist/esm/controller-88531ae3.js +4 -0
  341. package/dist/esm/controller-88531ae3.js.map +1 -0
  342. package/dist/esm/controller-b8518ebb.js +4 -0
  343. package/dist/esm/controller-b8518ebb.js.map +1 -0
  344. package/dist/esm/{controller-313148a2.js → controller-d31e838e.js} +1 -1
  345. package/dist/esm/{controller-313148a2.js.map → controller-d31e838e.js.map} +1 -1
  346. package/dist/esm/controller-f2d3b802.js +4 -0
  347. package/dist/esm/controller-f2d3b802.js.map +1 -0
  348. package/dist/esm/{controller-icon-d4a91832.js → controller-icon-9794a8aa.js} +1 -1
  349. package/dist/esm/{controller-icon-d4a91832.js.map → controller-icon-9794a8aa.js.map} +1 -1
  350. package/dist/esm/custom-class-768ff923.js +4 -0
  351. package/dist/esm/custom-class-768ff923.js.map +1 -0
  352. package/dist/esm/details-synced-open-state-66c07ea5.js +4 -0
  353. package/dist/esm/details-synced-open-state-66c07ea5.js.map +1 -0
  354. package/dist/esm/dev.utils-babc1742.js +4 -0
  355. package/dist/esm/dev.utils-babc1742.js.map +1 -0
  356. package/dist/esm/{devtools-188764ec.js → devtools-c6c87b9a.js} +1 -1
  357. package/dist/esm/{devtools-188764ec.js.map → devtools-c6c87b9a.js.map} +1 -1
  358. package/dist/esm/{has-closer-20ad2566.js → has-closer-c8f3520a.js} +1 -1
  359. package/dist/esm/{has-closer-20ad2566.js.map → has-closer-c8f3520a.js.map} +1 -1
  360. package/dist/esm/{hide-label-27292184.js → hide-label-c9289ea1.js} +1 -1
  361. package/dist/esm/{hide-label-27292184.js.map → hide-label-c9289ea1.js.map} +1 -1
  362. package/dist/esm/i18n-1b5afe13.js +4 -0
  363. package/dist/esm/i18n-1b5afe13.js.map +1 -0
  364. package/dist/esm/{icons-b6a6d907.js → icons-97af6e5f.js} +1 -1
  365. package/dist/esm/{icons-b6a6d907.js.map → icons-97af6e5f.js.map} +1 -1
  366. package/dist/esm/{image-source-fa985240.js → image-source-f72463d3.js} +1 -1
  367. package/dist/esm/{image-source-fa985240.js.map → image-source-f72463d3.js.map} +1 -1
  368. package/dist/esm/index-0bc40dc4.js +5 -0
  369. package/dist/esm/index-0bc40dc4.js.map +1 -0
  370. package/dist/{cjs/index-55ab202d.js → esm/index-48743821.js} +1 -1
  371. package/dist/esm/index-48743821.js.map +1 -0
  372. package/dist/esm/{index-e51de689.js → index-9b519d08.js} +1 -1
  373. package/dist/esm/{index-e51de689.js.map → index-9b519d08.js.map} +1 -1
  374. package/dist/esm/index.js +1 -1
  375. package/dist/esm/kol-abbr.entry.js +1 -1
  376. package/dist/esm/kol-abbr.entry.js.map +1 -1
  377. package/dist/esm/kol-accordion.entry.js +1 -1
  378. package/dist/esm/kol-accordion.entry.js.map +1 -1
  379. package/dist/esm/kol-alert-wc_2.entry.js +4 -0
  380. package/dist/esm/kol-alert-wc_2.entry.js.map +1 -0
  381. package/dist/esm/kol-alert.entry.js +1 -1
  382. package/dist/esm/kol-alert.entry.js.map +1 -1
  383. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  384. package/dist/esm/kol-avatar.entry.js +1 -1
  385. package/dist/esm/kol-avatar.entry.js.map +1 -1
  386. package/dist/esm/kol-badge.entry.js +1 -1
  387. package/dist/esm/kol-badge.entry.js.map +1 -1
  388. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  389. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  390. package/dist/esm/kol-button-group-wc.entry.js +1 -1
  391. package/dist/esm/kol-button-group.entry.js +1 -1
  392. package/dist/esm/kol-button-group.entry.js.map +1 -1
  393. package/dist/esm/kol-button-link-text-switch.entry.js +1 -1
  394. package/dist/esm/kol-button-link-text-switch.entry.js.map +1 -1
  395. package/dist/esm/kol-button-link.entry.js +1 -1
  396. package/dist/esm/kol-button-link.entry.js.map +1 -1
  397. package/dist/esm/kol-button-wc_2.entry.js +4 -0
  398. package/dist/esm/kol-button-wc_2.entry.js.map +1 -0
  399. package/dist/esm/kol-button.entry.js +1 -1
  400. package/dist/esm/kol-button.entry.js.map +1 -1
  401. package/dist/esm/kol-card.entry.js +1 -1
  402. package/dist/esm/kol-card.entry.js.map +1 -1
  403. package/dist/esm/kol-details.entry.js +1 -1
  404. package/dist/esm/kol-details.entry.js.map +1 -1
  405. package/dist/esm/kol-form.entry.js +1 -1
  406. package/dist/esm/kol-heading.entry.js +1 -1
  407. package/dist/esm/kol-heading.entry.js.map +1 -1
  408. package/dist/esm/kol-icon.entry.js +1 -1
  409. package/dist/esm/kol-icon.entry.js.map +1 -1
  410. package/dist/esm/kol-image.entry.js +1 -1
  411. package/dist/esm/kol-image.entry.js.map +1 -1
  412. package/dist/esm/kol-indented-text.entry.js +1 -1
  413. package/dist/esm/kol-indented-text.entry.js.map +1 -1
  414. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  415. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  416. package/dist/esm/kol-input-color.entry.js +1 -1
  417. package/dist/esm/kol-input-color.entry.js.map +1 -1
  418. package/dist/esm/kol-input-date.entry.js +1 -1
  419. package/dist/esm/kol-input-date.entry.js.map +1 -1
  420. package/dist/esm/kol-input-email.entry.js +1 -1
  421. package/dist/esm/kol-input-email.entry.js.map +1 -1
  422. package/dist/esm/kol-input-file.entry.js +1 -1
  423. package/dist/esm/kol-input-file.entry.js.map +1 -1
  424. package/dist/esm/kol-input-number.entry.js +1 -1
  425. package/dist/esm/kol-input-number.entry.js.map +1 -1
  426. package/dist/esm/kol-input-password.entry.js +1 -1
  427. package/dist/esm/kol-input-password.entry.js.map +1 -1
  428. package/dist/esm/kol-input-radio.entry.js +1 -1
  429. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  430. package/dist/esm/kol-input-range.entry.js +1 -1
  431. package/dist/esm/kol-input-range.entry.js.map +1 -1
  432. package/dist/esm/kol-input-text.entry.js +1 -1
  433. package/dist/esm/kol-input-text.entry.js.map +1 -1
  434. package/dist/esm/kol-input.entry.js +1 -1
  435. package/dist/esm/kol-input.entry.js.map +1 -1
  436. package/dist/esm/kol-kolibri.entry.js +1 -1
  437. package/dist/esm/kol-kolibri.entry.js.map +1 -1
  438. package/dist/esm/kol-link-button.entry.js +1 -1
  439. package/dist/esm/kol-link-button.entry.js.map +1 -1
  440. package/dist/esm/kol-link-group.entry.js +1 -1
  441. package/dist/esm/kol-link-group.entry.js.map +1 -1
  442. package/dist/esm/kol-link-wc.entry.js +1 -1
  443. package/dist/esm/kol-link-wc.entry.js.map +1 -1
  444. package/dist/esm/kol-link.entry.js +1 -1
  445. package/dist/esm/kol-link.entry.js.map +1 -1
  446. package/dist/esm/kol-logo.entry.js +1 -1
  447. package/dist/esm/kol-logo.entry.js.map +1 -1
  448. package/dist/esm/kol-modal.entry.js +1 -1
  449. package/dist/esm/kol-modal.entry.js.map +1 -1
  450. package/dist/esm/kol-nav.entry.js +1 -1
  451. package/dist/esm/kol-nav.entry.js.map +1 -1
  452. package/dist/esm/kol-pagination.entry.js +1 -1
  453. package/dist/esm/kol-pagination.entry.js.map +1 -1
  454. package/dist/esm/kol-popover-wc.entry.js +4 -0
  455. package/dist/esm/kol-popover-wc.entry.js.map +1 -0
  456. package/dist/esm/kol-progress.entry.js +1 -1
  457. package/dist/esm/kol-progress.entry.js.map +1 -1
  458. package/dist/esm/kol-quote.entry.js +1 -1
  459. package/dist/esm/kol-quote.entry.js.map +1 -1
  460. package/dist/esm/kol-select.entry.js +1 -1
  461. package/dist/esm/kol-select.entry.js.map +1 -1
  462. package/dist/esm/kol-skip-nav.entry.js +1 -1
  463. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  464. package/dist/esm/kol-span-wc.entry.js +4 -0
  465. package/dist/esm/kol-span-wc.entry.js.map +1 -0
  466. package/dist/esm/kol-span.entry.js +1 -1
  467. package/dist/esm/kol-span.entry.js.map +1 -1
  468. package/dist/esm/kol-spin.entry.js +1 -1
  469. package/dist/esm/kol-spin.entry.js.map +1 -1
  470. package/dist/esm/kol-split-button.entry.js +1 -1
  471. package/dist/esm/kol-split-button.entry.js.map +1 -1
  472. package/dist/esm/kol-symbol.entry.js +1 -1
  473. package/dist/esm/kol-table.entry.js +1 -1
  474. package/dist/esm/kol-table.entry.js.map +1 -1
  475. package/dist/esm/kol-tabs.entry.js +1 -1
  476. package/dist/esm/kol-tabs.entry.js.map +1 -1
  477. package/dist/esm/kol-textarea.entry.js +1 -1
  478. package/dist/esm/kol-textarea.entry.js.map +1 -1
  479. package/dist/esm/kol-toast-container.entry.js +1 -1
  480. package/dist/esm/kol-toast-container.entry.js.map +1 -1
  481. package/dist/esm/kol-version.entry.js +1 -1
  482. package/dist/esm/kol-version.entry.js.map +1 -1
  483. package/dist/esm/kolibri.js +1 -1
  484. package/dist/esm/kolibri.js.map +1 -1
  485. package/dist/esm/{label-84d4c0b2.js → label-cdb96413.js} +1 -1
  486. package/dist/esm/{label-84d4c0b2.js.map → label-cdb96413.js.map} +1 -1
  487. package/dist/esm/loader.js +1 -1
  488. package/dist/esm/{open-978d23f7.js → open-dcda42b6.js} +1 -1
  489. package/dist/esm/{open-978d23f7.js.map → open-dcda42b6.js.map} +1 -1
  490. package/dist/esm/prop.validators-445950f8.js +4 -0
  491. package/dist/esm/prop.validators-445950f8.js.map +1 -0
  492. package/dist/esm/{rows-9e354f5e.js → rows-0d6d152b.js} +1 -1
  493. package/dist/esm/{rows-9e354f5e.js.map → rows-0d6d152b.js.map} +1 -1
  494. package/dist/esm/{show-eeff7c91.js → show-bfbd8b47.js} +1 -1
  495. package/dist/esm/{show-eeff7c91.js.map → show-bfbd8b47.js.map} +1 -1
  496. package/dist/esm/{suggestions-7c5183fe.js → suggestions-59d82dad.js} +1 -1
  497. package/dist/esm/{suggestions-7c5183fe.js.map → suggestions-59d82dad.js.map} +1 -1
  498. package/dist/esm/{tab-index-3ce2c695.js → tab-index-d2087b2a.js} +1 -1
  499. package/dist/esm/{tab-index-3ce2c695.js.map → tab-index-d2087b2a.js.map} +1 -1
  500. package/dist/esm/{toaster-1ee75e55.js → toaster-ce50f062.js} +1 -1
  501. package/dist/esm/{toaster-1ee75e55.js.map → toaster-ce50f062.js.map} +1 -1
  502. package/dist/esm/{toaster-2dda6584.js → toaster-eb99e2fa.js} +1 -1
  503. package/dist/esm/toaster-eb99e2fa.js.map +1 -0
  504. package/dist/esm/{tooltip-align-0d2f0b3d.js → tooltip-align-04e6e467.js} +1 -1
  505. package/dist/esm/{tooltip-align-0d2f0b3d.js.map → tooltip-align-04e6e467.js.map} +1 -1
  506. package/dist/esm/validation-c79b130c.js +4 -0
  507. package/dist/esm/validation-c79b130c.js.map +1 -0
  508. package/dist/esm/validation-d50d6d9f.js +4 -0
  509. package/dist/esm/{validation-97376ad0.js.map → validation-d50d6d9f.js.map} +1 -1
  510. package/dist/kolibri/InternalUnderlinedAccessKey-8b996006.js +4 -0
  511. package/dist/kolibri/InternalUnderlinedAccessKey-8b996006.js.map +1 -0
  512. package/dist/kolibri/{a11y.tipps-7143f6fd.js → a11y.tipps-1e89ea61.js} +1 -1
  513. package/dist/kolibri/access-key-3f233e98.js +4 -0
  514. package/dist/kolibri/access-key-3f233e98.js.map +1 -0
  515. package/dist/kolibri/align-floating-elements-ebf0712d.js +4 -0
  516. package/dist/{components/align.js.map → kolibri/align-floating-elements-ebf0712d.js.map} +1 -1
  517. package/dist/kolibri/alignment-32a9ec52.js +4 -0
  518. package/dist/kolibri/alignment-32a9ec52.js.map +1 -0
  519. package/dist/kolibri/alternative-button-link-role-1c319b0c.js +4 -0
  520. package/dist/kolibri/app-globals-0c1a662e.js +4 -0
  521. package/dist/kolibri/app-globals-0c1a662e.js.map +1 -0
  522. package/dist/kolibri/{associated.controller-d70c8be1.js → associated.controller-89ab9c94.js} +1 -1
  523. package/dist/kolibri/{color-048551d8.js → color-3208b6fe.js} +1 -1
  524. package/dist/kolibri/{controller-757cd887.js → controller-85e5be61.js} +1 -1
  525. package/dist/kolibri/controller-88531ae3.js +4 -0
  526. package/dist/kolibri/controller-88531ae3.js.map +1 -0
  527. package/dist/kolibri/controller-b8518ebb.js +4 -0
  528. package/dist/kolibri/controller-b8518ebb.js.map +1 -0
  529. package/dist/kolibri/controller-d31e838e.js +4 -0
  530. package/dist/kolibri/{controller-313148a2.js.map → controller-d31e838e.js.map} +1 -1
  531. package/dist/kolibri/controller-f2d3b802.js +4 -0
  532. package/dist/kolibri/controller-f2d3b802.js.map +1 -0
  533. package/dist/kolibri/controller-icon-9794a8aa.js +4 -0
  534. package/dist/kolibri/custom-class-768ff923.js +4 -0
  535. package/dist/kolibri/custom-class-768ff923.js.map +1 -0
  536. package/dist/kolibri/details-synced-open-state-66c07ea5.js +4 -0
  537. package/dist/kolibri/details-synced-open-state-66c07ea5.js.map +1 -0
  538. package/dist/kolibri/dev.utils-babc1742.js +4 -0
  539. package/dist/kolibri/dev.utils-babc1742.js.map +1 -0
  540. package/dist/kolibri/{devtools-188764ec.js → devtools-c6c87b9a.js} +1 -1
  541. package/dist/kolibri/has-closer-c8f3520a.js +4 -0
  542. package/dist/kolibri/{has-closer-20ad2566.js.map → has-closer-c8f3520a.js.map} +1 -1
  543. package/dist/kolibri/hide-label-c9289ea1.js +4 -0
  544. package/dist/kolibri/i18n-1b5afe13.js +4 -0
  545. package/dist/kolibri/i18n-1b5afe13.js.map +1 -0
  546. package/dist/kolibri/icons-97af6e5f.js +4 -0
  547. package/dist/kolibri/{icons-b6a6d907.js.map → icons-97af6e5f.js.map} +1 -1
  548. package/dist/kolibri/image-source-f72463d3.js +4 -0
  549. package/dist/kolibri/index-0bc40dc4.js +5 -0
  550. package/dist/kolibri/index-0bc40dc4.js.map +1 -0
  551. package/dist/kolibri/index-48743821.js +4 -0
  552. package/dist/kolibri/index-48743821.js.map +1 -0
  553. package/dist/kolibri/{index-e51de689.js → index-9b519d08.js} +1 -1
  554. package/dist/kolibri/index.esm.js +1 -1
  555. package/dist/kolibri/kol-abbr.entry.js +1 -1
  556. package/dist/kolibri/kol-abbr.entry.js.map +1 -1
  557. package/dist/kolibri/kol-accordion.entry.js +1 -1
  558. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  559. package/dist/kolibri/kol-alert-wc_2.entry.js +4 -0
  560. package/dist/kolibri/kol-alert-wc_2.entry.js.map +1 -0
  561. package/dist/kolibri/kol-alert.entry.js +1 -1
  562. package/dist/kolibri/kol-alert.entry.js.map +1 -1
  563. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  564. package/dist/kolibri/kol-avatar.entry.js +1 -1
  565. package/dist/kolibri/kol-avatar.entry.js.map +1 -1
  566. package/dist/kolibri/kol-badge.entry.js +1 -1
  567. package/dist/kolibri/kol-badge.entry.js.map +1 -1
  568. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  569. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  570. package/dist/kolibri/kol-button-group-wc.entry.js +1 -1
  571. package/dist/kolibri/kol-button-group.entry.js +1 -1
  572. package/dist/kolibri/kol-button-group.entry.js.map +1 -1
  573. package/dist/kolibri/kol-button-link-text-switch.entry.js +1 -1
  574. package/dist/kolibri/kol-button-link-text-switch.entry.js.map +1 -1
  575. package/dist/kolibri/kol-button-link.entry.js +1 -1
  576. package/dist/kolibri/kol-button-link.entry.js.map +1 -1
  577. package/dist/kolibri/kol-button-wc_2.entry.js +4 -0
  578. package/dist/kolibri/kol-button-wc_2.entry.js.map +1 -0
  579. package/dist/kolibri/kol-button.entry.js +1 -1
  580. package/dist/kolibri/kol-button.entry.js.map +1 -1
  581. package/dist/kolibri/kol-card.entry.js +1 -1
  582. package/dist/kolibri/kol-card.entry.js.map +1 -1
  583. package/dist/kolibri/kol-details.entry.js +1 -1
  584. package/dist/kolibri/kol-details.entry.js.map +1 -1
  585. package/dist/kolibri/kol-form.entry.js +1 -1
  586. package/dist/kolibri/kol-heading.entry.js +1 -1
  587. package/dist/kolibri/kol-heading.entry.js.map +1 -1
  588. package/dist/kolibri/kol-icon.entry.js +1 -1
  589. package/dist/kolibri/kol-icon.entry.js.map +1 -1
  590. package/dist/kolibri/kol-image.entry.js +1 -1
  591. package/dist/kolibri/kol-image.entry.js.map +1 -1
  592. package/dist/kolibri/kol-indented-text.entry.js +1 -1
  593. package/dist/kolibri/kol-indented-text.entry.js.map +1 -1
  594. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  595. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  596. package/dist/kolibri/kol-input-color.entry.js +1 -1
  597. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  598. package/dist/kolibri/kol-input-date.entry.js +1 -1
  599. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  600. package/dist/kolibri/kol-input-email.entry.js +1 -1
  601. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  602. package/dist/kolibri/kol-input-file.entry.js +1 -1
  603. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  604. package/dist/kolibri/kol-input-number.entry.js +1 -1
  605. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  606. package/dist/kolibri/kol-input-password.entry.js +1 -1
  607. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  608. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  609. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  610. package/dist/kolibri/kol-input-range.entry.js +1 -1
  611. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  612. package/dist/kolibri/kol-input-text.entry.js +1 -1
  613. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  614. package/dist/kolibri/kol-input.entry.js +1 -1
  615. package/dist/kolibri/kol-input.entry.js.map +1 -1
  616. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  617. package/dist/kolibri/kol-kolibri.entry.js.map +1 -1
  618. package/dist/kolibri/kol-link-button.entry.js +1 -1
  619. package/dist/kolibri/kol-link-button.entry.js.map +1 -1
  620. package/dist/kolibri/kol-link-group.entry.js +1 -1
  621. package/dist/kolibri/kol-link-group.entry.js.map +1 -1
  622. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  623. package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
  624. package/dist/kolibri/kol-link.entry.js +1 -1
  625. package/dist/kolibri/kol-link.entry.js.map +1 -1
  626. package/dist/kolibri/kol-logo.entry.js +1 -1
  627. package/dist/kolibri/kol-logo.entry.js.map +1 -1
  628. package/dist/kolibri/kol-modal.entry.js +1 -1
  629. package/dist/kolibri/kol-modal.entry.js.map +1 -1
  630. package/dist/kolibri/kol-nav.entry.js +1 -1
  631. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  632. package/dist/kolibri/kol-pagination.entry.js +1 -1
  633. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  634. package/dist/kolibri/kol-popover-wc.entry.js +4 -0
  635. package/dist/kolibri/kol-popover-wc.entry.js.map +1 -0
  636. package/dist/kolibri/kol-progress.entry.js +1 -1
  637. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  638. package/dist/kolibri/kol-quote.entry.js +1 -1
  639. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  640. package/dist/kolibri/kol-select.entry.js +1 -1
  641. package/dist/kolibri/kol-select.entry.js.map +1 -1
  642. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  643. package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
  644. package/dist/kolibri/kol-span-wc.entry.js +4 -0
  645. package/dist/kolibri/kol-span-wc.entry.js.map +1 -0
  646. package/dist/kolibri/kol-span.entry.js +1 -1
  647. package/dist/kolibri/kol-span.entry.js.map +1 -1
  648. package/dist/kolibri/kol-spin.entry.js +1 -1
  649. package/dist/kolibri/kol-spin.entry.js.map +1 -1
  650. package/dist/kolibri/kol-split-button.entry.js +1 -1
  651. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  652. package/dist/kolibri/kol-symbol.entry.js +1 -1
  653. package/dist/kolibri/kol-table.entry.js +1 -1
  654. package/dist/kolibri/kol-table.entry.js.map +1 -1
  655. package/dist/kolibri/kol-tabs.entry.js +1 -1
  656. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  657. package/dist/kolibri/kol-textarea.entry.js +1 -1
  658. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  659. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  660. package/dist/kolibri/kol-toast-container.entry.js.map +1 -1
  661. package/dist/kolibri/kol-version.entry.js +1 -1
  662. package/dist/kolibri/kol-version.entry.js.map +1 -1
  663. package/dist/kolibri/kolibri.esm.js +1 -1
  664. package/dist/kolibri/kolibri.esm.js.map +1 -1
  665. package/dist/kolibri/{label-84d4c0b2.js → label-cdb96413.js} +1 -1
  666. package/dist/kolibri/open-dcda42b6.js +4 -0
  667. package/dist/kolibri/prop.validators-445950f8.js +4 -0
  668. package/dist/kolibri/prop.validators-445950f8.js.map +1 -0
  669. package/dist/kolibri/rows-0d6d152b.js +4 -0
  670. package/dist/kolibri/show-bfbd8b47.js +4 -0
  671. package/dist/kolibri/suggestions-59d82dad.js +4 -0
  672. package/dist/kolibri/{tab-index-3ce2c695.js → tab-index-d2087b2a.js} +1 -1
  673. package/dist/kolibri/toaster-ce50f062.js +4 -0
  674. package/dist/kolibri/toaster-ce50f062.js.map +1 -0
  675. package/dist/kolibri/toaster-eb99e2fa.js +4 -0
  676. package/dist/kolibri/toaster-eb99e2fa.js.map +1 -0
  677. package/dist/kolibri/tooltip-align-04e6e467.js +4 -0
  678. package/dist/kolibri/validation-c79b130c.js +4 -0
  679. package/dist/kolibri/validation-c79b130c.js.map +1 -0
  680. package/dist/kolibri/validation-d50d6d9f.js +4 -0
  681. package/dist/types/components/accordion/component.d.ts +2 -0
  682. package/dist/types/components/alert/types.d.ts +4 -2
  683. package/dist/types/components/button/component.d.ts +3 -0
  684. package/dist/types/components/button/shadow.d.ts +2 -1
  685. package/dist/types/components/button/types.d.ts +2 -1
  686. package/dist/types/components/button-link/component.d.ts +2 -1
  687. package/dist/types/components/details/DetailsAnimationController.d.ts +1 -1
  688. package/dist/types/components/details/component.d.ts +1 -0
  689. package/dist/types/components/heading/test/html.mock.d.ts +2 -2
  690. package/dist/types/components/heading/validation.d.ts +2 -1
  691. package/dist/types/components/input/component.d.ts +2 -0
  692. package/dist/types/components/input/types.d.ts +2 -1
  693. package/dist/types/components/input-checkbox/component.d.ts +1 -2
  694. package/dist/types/components/input-checkbox/types.d.ts +2 -1
  695. package/dist/types/components/input-color/component.d.ts +1 -1
  696. package/dist/types/components/input-date/component.d.ts +1 -1
  697. package/dist/types/components/input-date/controller.d.ts +2 -2
  698. package/dist/types/components/input-email/component.d.ts +1 -1
  699. package/dist/types/components/input-file/component.d.ts +1 -1
  700. package/dist/types/components/input-number/component.d.ts +1 -1
  701. package/dist/types/components/input-password/component.d.ts +1 -1
  702. package/dist/types/components/input-radio/component.d.ts +1 -2
  703. package/dist/types/components/input-range/component.d.ts +1 -1
  704. package/dist/types/components/input-text/component.d.ts +1 -1
  705. package/dist/types/components/link/component.d.ts +3 -0
  706. package/dist/types/components/link/shadow.d.ts +2 -1
  707. package/dist/types/components/link/types.d.ts +2 -1
  708. package/dist/types/components/link-button/component.d.ts +2 -1
  709. package/dist/types/components/nav/component.d.ts +2 -0
  710. package/dist/types/components/nav/types.d.ts +3 -2
  711. package/dist/types/components/pagination/component.d.ts +0 -3
  712. package/dist/types/components/pagination/types.d.ts +3 -4
  713. package/dist/types/components/popover/component.d.ts +0 -2
  714. package/dist/types/components/quote/types.d.ts +2 -1
  715. package/dist/types/components/select/component.d.ts +1 -1
  716. package/dist/types/components/span/InternalUnderlinedAccessKey.d.ts +6 -0
  717. package/dist/types/components/span/component.d.ts +3 -0
  718. package/dist/types/components/span/shadow.d.ts +2 -0
  719. package/dist/types/components/span/test/html.mock.d.ts +1 -0
  720. package/dist/types/components/span/types.d.ts +3 -2
  721. package/dist/types/components/textarea/component.d.ts +1 -1
  722. package/dist/types/components/textarea/types.d.ts +2 -1
  723. package/dist/types/components/toaster/InternalToast.d.ts +8 -0
  724. package/dist/types/components/{toast-container → toaster}/component.d.ts +2 -2
  725. package/dist/types/components/{toast → toaster}/toaster.d.ts +3 -2
  726. package/dist/types/components/{toast-container → toaster}/types.d.ts +6 -3
  727. package/dist/types/components/tooltip/component.d.ts +3 -0
  728. package/dist/types/components/tooltip/types.d.ts +4 -3
  729. package/dist/types/components.d.ts +127 -91
  730. package/dist/types/i18n.d.ts +1 -1
  731. package/dist/types/index.d.ts +1 -1
  732. package/dist/types/locales/de.d.ts +2 -0
  733. package/dist/types/locales/en.d.ts +2 -0
  734. package/dist/types/stencil-public-runtime.d.ts +21 -0
  735. package/dist/types/types/heading-level.d.ts +2 -1
  736. package/dist/types/types/input/control/number.d.ts +2 -2
  737. package/dist/types/types/input/control/text.d.ts +2 -1
  738. package/dist/types/types/input/types.d.ts +2 -1
  739. package/dist/types/types/orientation.d.ts +2 -1
  740. package/dist/types/types/props/access-key.d.ts +6 -0
  741. package/dist/types/types/props/align.d.ts +5 -2
  742. package/dist/types/types/props/aria-current.d.ts +3 -1
  743. package/dist/types/types/props/button-type.d.ts +3 -1
  744. package/dist/types/types/props/button-variant.d.ts +3 -1
  745. package/dist/types/types/props/has-compact-button.d.ts +7 -0
  746. package/dist/types/types/props/variant/spin.d.ts +3 -1
  747. package/dist/types/utils/align-floating-elements.d.ts +9 -0
  748. package/dist/types/utils/prop.validators.d.ts +2 -1
  749. package/dist/types/utils/validators/loading.d.ts +3 -1
  750. package/doc/badge.md +6 -6
  751. package/doc/button-link.md +1 -0
  752. package/doc/button.md +4 -3
  753. package/doc/input-checkbox.md +22 -22
  754. package/doc/input-color.md +21 -21
  755. package/doc/input-date.md +27 -27
  756. package/doc/input-email.md +29 -29
  757. package/doc/input-file.md +22 -22
  758. package/doc/input-number.md +27 -27
  759. package/doc/input-password.md +26 -26
  760. package/doc/input-radio.md +20 -20
  761. package/doc/input-range.md +23 -23
  762. package/doc/input-text.md +28 -28
  763. package/doc/link-button.md +1 -0
  764. package/doc/link.md +13 -15
  765. package/doc/nav.md +4 -0
  766. package/doc/pagination.md +2 -6
  767. package/doc/select.md +22 -22
  768. package/doc/span.md +1 -0
  769. package/doc/spin.md +4 -2
  770. package/doc/table.md +9 -10
  771. package/doc/textarea.md +25 -25
  772. package/doc/toaster.md +120 -0
  773. package/doc/tooltip.md +6 -5
  774. package/package.json +1 -1
  775. package/vscode-custom-data.json +246 -86
  776. package/dist/cjs/align-c8de133d.js +0 -4
  777. package/dist/cjs/align-c8de133d.js.map +0 -1
  778. package/dist/cjs/alignment-932ba637.js +0 -4
  779. package/dist/cjs/alignment-932ba637.js.map +0 -1
  780. package/dist/cjs/alternative-button-link-role-76fc0537.js +0 -4
  781. package/dist/cjs/app-globals-d1b411c4.js +0 -4
  782. package/dist/cjs/app-globals-d1b411c4.js.map +0 -1
  783. package/dist/cjs/controller-93e44df5.js +0 -4
  784. package/dist/cjs/controller-93e44df5.js.map +0 -1
  785. package/dist/cjs/controller-da2eaa2f.js +0 -4
  786. package/dist/cjs/controller-da2eaa2f.js.map +0 -1
  787. package/dist/cjs/controller-f4272866.js +0 -4
  788. package/dist/cjs/controller-f4272866.js.map +0 -1
  789. package/dist/cjs/custom-class-8ad48dce.js +0 -4
  790. package/dist/cjs/custom-class-8ad48dce.js.map +0 -1
  791. package/dist/cjs/details-synced-open-state-f06dc47c.js +0 -4
  792. package/dist/cjs/details-synced-open-state-f06dc47c.js.map +0 -1
  793. package/dist/cjs/dev.utils-1fb4135a.js +0 -4
  794. package/dist/cjs/dev.utils-1fb4135a.js.map +0 -1
  795. package/dist/cjs/floating-ui.dom.esm-c21c7751.js +0 -4
  796. package/dist/cjs/floating-ui.dom.esm-c21c7751.js.map +0 -1
  797. package/dist/cjs/has-closer-3f258cb1.js +0 -4
  798. package/dist/cjs/hide-label-a1359f24.js +0 -4
  799. package/dist/cjs/i18n-8316536d.js +0 -4
  800. package/dist/cjs/i18n-8316536d.js.map +0 -1
  801. package/dist/cjs/image-source-30ac0359.js +0 -4
  802. package/dist/cjs/index-2feae351.js +0 -5
  803. package/dist/cjs/index-2feae351.js.map +0 -1
  804. package/dist/cjs/index-55ab202d.js.map +0 -1
  805. package/dist/cjs/kol-alert-wc_3.cjs.entry.js +0 -4
  806. package/dist/cjs/kol-alert-wc_3.cjs.entry.js.map +0 -1
  807. package/dist/cjs/kol-popover.cjs.entry.js +0 -4
  808. package/dist/cjs/kol-popover.cjs.entry.js.map +0 -1
  809. package/dist/cjs/kol-span-wc_2.cjs.entry.js +0 -4
  810. package/dist/cjs/kol-span-wc_2.cjs.entry.js.map +0 -1
  811. package/dist/cjs/kol-toast.cjs.entry.js +0 -4
  812. package/dist/cjs/kol-toast.cjs.entry.js.map +0 -1
  813. package/dist/cjs/open-1c4dcfb7.js +0 -4
  814. package/dist/cjs/prop.validators-40b03d45.js.map +0 -1
  815. package/dist/cjs/rows-49957d39.js +0 -4
  816. package/dist/cjs/show-2a7af4da.js +0 -4
  817. package/dist/cjs/toaster-82cf12c5.js.map +0 -1
  818. package/dist/cjs/toaster-d370fe6a.js.map +0 -1
  819. package/dist/cjs/validation-c48f88d5.js +0 -4
  820. package/dist/cjs/validation-c48f88d5.js.map +0 -1
  821. package/dist/components/align.js +0 -4
  822. package/dist/components/component16.js +0 -4
  823. package/dist/components/component16.js.map +0 -1
  824. package/dist/components/kol-popover.js +0 -4
  825. package/dist/components/kol-popover.js.map +0 -1
  826. package/dist/components/kol-toast.d.ts +0 -11
  827. package/dist/components/kol-toast.js +0 -4
  828. package/dist/components/kol-toast.js.map +0 -1
  829. package/dist/esm/align-be0d4128.js +0 -4
  830. package/dist/esm/align-be0d4128.js.map +0 -1
  831. package/dist/esm/alignment-480cdfba.js +0 -4
  832. package/dist/esm/alignment-480cdfba.js.map +0 -1
  833. package/dist/esm/alternative-button-link-role-5e1ea5eb.js +0 -4
  834. package/dist/esm/app-globals-7a11b8ee.js +0 -4
  835. package/dist/esm/app-globals-7a11b8ee.js.map +0 -1
  836. package/dist/esm/controller-8bf7eac9.js +0 -4
  837. package/dist/esm/controller-8bf7eac9.js.map +0 -1
  838. package/dist/esm/controller-d5d0c61a.js +0 -4
  839. package/dist/esm/controller-d5d0c61a.js.map +0 -1
  840. package/dist/esm/controller-f1d4f4d4.js +0 -4
  841. package/dist/esm/controller-f1d4f4d4.js.map +0 -1
  842. package/dist/esm/custom-class-6b0cb37f.js +0 -4
  843. package/dist/esm/custom-class-6b0cb37f.js.map +0 -1
  844. package/dist/esm/details-synced-open-state-8c4176c9.js +0 -4
  845. package/dist/esm/details-synced-open-state-8c4176c9.js.map +0 -1
  846. package/dist/esm/dev.utils-b5b1c70d.js +0 -4
  847. package/dist/esm/dev.utils-b5b1c70d.js.map +0 -1
  848. package/dist/esm/floating-ui.dom.esm-e435ab9f.js +0 -4
  849. package/dist/esm/floating-ui.dom.esm-e435ab9f.js.map +0 -1
  850. package/dist/esm/i18n-94ea09e2.js +0 -4
  851. package/dist/esm/i18n-94ea09e2.js.map +0 -1
  852. package/dist/esm/index-536799d5.js +0 -5
  853. package/dist/esm/index-536799d5.js.map +0 -1
  854. package/dist/esm/index-93da6c3d.js +0 -4
  855. package/dist/esm/index-93da6c3d.js.map +0 -1
  856. package/dist/esm/kol-alert-wc_3.entry.js +0 -4
  857. package/dist/esm/kol-alert-wc_3.entry.js.map +0 -1
  858. package/dist/esm/kol-popover.entry.js +0 -4
  859. package/dist/esm/kol-popover.entry.js.map +0 -1
  860. package/dist/esm/kol-span-wc_2.entry.js +0 -4
  861. package/dist/esm/kol-span-wc_2.entry.js.map +0 -1
  862. package/dist/esm/kol-toast.entry.js +0 -4
  863. package/dist/esm/kol-toast.entry.js.map +0 -1
  864. package/dist/esm/prop.validators-fa5eb5c5.js +0 -4
  865. package/dist/esm/prop.validators-fa5eb5c5.js.map +0 -1
  866. package/dist/esm/toaster-2dda6584.js.map +0 -1
  867. package/dist/esm/validation-97376ad0.js +0 -4
  868. package/dist/esm/validation-a54b3e91.js +0 -4
  869. package/dist/esm/validation-a54b3e91.js.map +0 -1
  870. package/dist/kolibri/align-be0d4128.js +0 -4
  871. package/dist/kolibri/align-be0d4128.js.map +0 -1
  872. package/dist/kolibri/alignment-480cdfba.js +0 -4
  873. package/dist/kolibri/alignment-480cdfba.js.map +0 -1
  874. package/dist/kolibri/alternative-button-link-role-5e1ea5eb.js +0 -4
  875. package/dist/kolibri/app-globals-7a11b8ee.js +0 -4
  876. package/dist/kolibri/app-globals-7a11b8ee.js.map +0 -1
  877. package/dist/kolibri/controller-313148a2.js +0 -4
  878. package/dist/kolibri/controller-8bf7eac9.js +0 -4
  879. package/dist/kolibri/controller-8bf7eac9.js.map +0 -1
  880. package/dist/kolibri/controller-d5d0c61a.js +0 -4
  881. package/dist/kolibri/controller-d5d0c61a.js.map +0 -1
  882. package/dist/kolibri/controller-f1d4f4d4.js +0 -4
  883. package/dist/kolibri/controller-f1d4f4d4.js.map +0 -1
  884. package/dist/kolibri/controller-icon-d4a91832.js +0 -4
  885. package/dist/kolibri/custom-class-6b0cb37f.js +0 -4
  886. package/dist/kolibri/custom-class-6b0cb37f.js.map +0 -1
  887. package/dist/kolibri/details-synced-open-state-8c4176c9.js +0 -4
  888. package/dist/kolibri/details-synced-open-state-8c4176c9.js.map +0 -1
  889. package/dist/kolibri/dev.utils-b5b1c70d.js +0 -4
  890. package/dist/kolibri/dev.utils-b5b1c70d.js.map +0 -1
  891. package/dist/kolibri/floating-ui.dom.esm-e435ab9f.js +0 -4
  892. package/dist/kolibri/floating-ui.dom.esm-e435ab9f.js.map +0 -1
  893. package/dist/kolibri/has-closer-20ad2566.js +0 -4
  894. package/dist/kolibri/hide-label-27292184.js +0 -4
  895. package/dist/kolibri/i18n-94ea09e2.js +0 -4
  896. package/dist/kolibri/i18n-94ea09e2.js.map +0 -1
  897. package/dist/kolibri/icons-b6a6d907.js +0 -4
  898. package/dist/kolibri/image-source-fa985240.js +0 -4
  899. package/dist/kolibri/index-536799d5.js +0 -5
  900. package/dist/kolibri/index-536799d5.js.map +0 -1
  901. package/dist/kolibri/index-93da6c3d.js +0 -4
  902. package/dist/kolibri/index-93da6c3d.js.map +0 -1
  903. package/dist/kolibri/kol-alert-wc_3.entry.js +0 -4
  904. package/dist/kolibri/kol-alert-wc_3.entry.js.map +0 -1
  905. package/dist/kolibri/kol-popover.entry.js +0 -4
  906. package/dist/kolibri/kol-popover.entry.js.map +0 -1
  907. package/dist/kolibri/kol-span-wc_2.entry.js +0 -4
  908. package/dist/kolibri/kol-span-wc_2.entry.js.map +0 -1
  909. package/dist/kolibri/kol-toast.entry.js +0 -4
  910. package/dist/kolibri/kol-toast.entry.js.map +0 -1
  911. package/dist/kolibri/open-978d23f7.js +0 -4
  912. package/dist/kolibri/prop.validators-fa5eb5c5.js +0 -4
  913. package/dist/kolibri/prop.validators-fa5eb5c5.js.map +0 -1
  914. package/dist/kolibri/rows-9e354f5e.js +0 -4
  915. package/dist/kolibri/show-eeff7c91.js +0 -4
  916. package/dist/kolibri/suggestions-7c5183fe.js +0 -4
  917. package/dist/kolibri/toaster-1ee75e55.js +0 -4
  918. package/dist/kolibri/toaster-1ee75e55.js.map +0 -1
  919. package/dist/kolibri/toaster-2dda6584.js +0 -4
  920. package/dist/kolibri/toaster-2dda6584.js.map +0 -1
  921. package/dist/kolibri/tooltip-align-0d2f0b3d.js +0 -4
  922. package/dist/kolibri/validation-97376ad0.js +0 -4
  923. package/dist/kolibri/validation-a54b3e91.js +0 -4
  924. package/dist/kolibri/validation-a54b3e91.js.map +0 -1
  925. package/dist/types/components/toast/component.d.ts +0 -21
  926. package/dist/types/components/toast/test/html.mock.d.ts +0 -2
  927. package/dist/types/components/toast/types.d.ts +0 -18
  928. package/dist/types/types/toast.d.ts +0 -4
  929. package/doc/toast-container.md +0 -46
  930. package/doc/toast.md +0 -94
  931. /package/dist/kolibri/{a11y.tipps-7143f6fd.js.map → a11y.tipps-1e89ea61.js.map} +0 -0
  932. /package/dist/kolibri/{alternative-button-link-role-5e1ea5eb.js.map → alternative-button-link-role-1c319b0c.js.map} +0 -0
  933. /package/dist/kolibri/{associated.controller-d70c8be1.js.map → associated.controller-89ab9c94.js.map} +0 -0
  934. /package/dist/kolibri/{color-048551d8.js.map → color-3208b6fe.js.map} +0 -0
  935. /package/dist/kolibri/{controller-757cd887.js.map → controller-85e5be61.js.map} +0 -0
  936. /package/dist/kolibri/{controller-icon-d4a91832.js.map → controller-icon-9794a8aa.js.map} +0 -0
  937. /package/dist/kolibri/{devtools-188764ec.js.map → devtools-c6c87b9a.js.map} +0 -0
  938. /package/dist/kolibri/{hide-label-27292184.js.map → hide-label-c9289ea1.js.map} +0 -0
  939. /package/dist/kolibri/{image-source-fa985240.js.map → image-source-f72463d3.js.map} +0 -0
  940. /package/dist/kolibri/{index-e51de689.js.map → index-9b519d08.js.map} +0 -0
  941. /package/dist/kolibri/{label-84d4c0b2.js.map → label-cdb96413.js.map} +0 -0
  942. /package/dist/kolibri/{open-978d23f7.js.map → open-dcda42b6.js.map} +0 -0
  943. /package/dist/kolibri/{rows-9e354f5e.js.map → rows-0d6d152b.js.map} +0 -0
  944. /package/dist/kolibri/{show-eeff7c91.js.map → show-bfbd8b47.js.map} +0 -0
  945. /package/dist/kolibri/{suggestions-7c5183fe.js.map → suggestions-59d82dad.js.map} +0 -0
  946. /package/dist/kolibri/{tab-index-3ce2c695.js.map → tab-index-d2087b2a.js.map} +0 -0
  947. /package/dist/kolibri/{tooltip-align-0d2f0b3d.js.map → tooltip-align-04e6e467.js.map} +0 -0
  948. /package/dist/kolibri/{validation-97376ad0.js.map → validation-d50d6d9f.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"names":["AVAILABLE_LOADING_VALUES","Set","validateLoading","component","value","watchValidator","defaultStyleCss","KolImage","_alt","_loading","_src","validateAlt","watchString","this","required","validateSizes","validateSrc","validateImageSource","validateSrcset","componentWillLoad","_sizes","_srcset","render","h","Host","alt","state","loading","sizes","src","srcset"],"sources":["src/utils/validators/loading.ts","src/components/image/style.css?tag=kol-image&mode=default&encapsulation=shadow","src/components/image/shadow.tsx"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { watchValidator } from '../prop.validators';\n\nexport type Loading = 'eager' | 'lazy';\n\nconst AVAILABLE_LOADING_VALUES = new Set(['\"eager\", \"lazy\"']);\nexport function validateLoading(component: Generic.Element.Component, value?: Loading): void {\n\twatchValidator<Loading>(component, '_loading', (value) => value === 'eager' || value === 'lazy', AVAILABLE_LOADING_VALUES, value);\n}\n","img {\n\tmax-height: 100%;\n\tmax-width: 100%;\n}\n","import { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { ImageSourcePropType, validateImageSource } from '../../types/props/image-source';\nimport { watchString } from '../../utils/prop.validators';\nimport { Loading, validateLoading } from '../../utils/validators/loading';\nimport { API, States } from './types';\n\n@Component({\n\ttag: 'kol-image',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolImage implements API {\n\t/**\n\t * Setzt den alternativen Text.\n\t */\n\t@Prop() public _alt!: string;\n\n\t/**\n\t * Defines the loading mode for the image.\n\t */\n\t@Prop() public _loading?: Loading = 'lazy';\n\n\t/**\n\t * Defines the image sizes for different screen resolutions, supporting _srcset.\n\t */\n\t@Prop() public _sizes?: string;\n\n\t/**\n\t * Sets the image `src` attribute to the given string.\n\t */\n\t@Prop() public _src!: ImageSourcePropType;\n\n\t/**\n\t * Setzt eine Liste von Quell-URLs mit Breiten der Bilder.\n\t */\n\t@Prop() public _srcset?: string;\n\n\t@State() public state: States = {\n\t\t_alt: '…', // ⚠ required\n\t\t_loading: 'lazy',\n\t\t_src: '…', // ⚠ required\n\t};\n\n\t@Watch('_alt')\n\tpublic validateAlt(value?: string): void {\n\t\twatchString(this, '_alt', value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_loading')\n\tpublic validateLoading(value?: Loading): void {\n\t\tvalidateLoading(this, value);\n\t}\n\n\t@Watch('_sizes')\n\tpublic validateSizes(value?: string): void {\n\t\twatchString(this, '_sizes', value);\n\t}\n\n\t@Watch('_src')\n\tpublic validateSrc(value?: ImageSourcePropType): void {\n\t\tvalidateImageSource(this, value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_srcset')\n\tpublic validateSrcset(value?: string): void {\n\t\twatchString(this, '_srcset', value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateAlt(this._alt);\n\t\tthis.validateLoading(this._loading);\n\t\tthis.validateSizes(this._sizes);\n\t\tthis.validateSrc(this._src);\n\t\tthis.validateSrcset(this._srcset);\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<img alt={this.state._alt} loading={this.state._loading} sizes={this.state._sizes} src={this.state._src} srcset={this.state._srcset}></img>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"mappings":";;;2PAMA,MAAMA,EAA2B,IAAIC,IAAI,CAAC,oB,SAC1BC,EAAgBC,EAAsCC,GACrEC,EAAwBF,EAAW,YAAaC,GAAUA,IAAU,SAAWA,IAAU,QAAQJ,EAA0BI,EAC5H,CCTA,MAAME,EAAkB,sC,MCcXC,EAAQ,M,2DASgB,O,4EAiBJ,CAC/BC,KAAM,IACNC,SAAU,OACVC,KAAM,I,CAIA,WAAAC,CAAYP,GAClBQ,EAAYC,KAAM,OAAQT,EAAO,CAChCU,SAAU,M,CAKL,eAAAZ,CAAgBE,GACtBF,EAAgBW,KAAMT,E,CAIhB,aAAAW,CAAcX,GACpBQ,EAAYC,KAAM,SAAUT,E,CAItB,WAAAY,CAAYZ,GAClBa,EAAoBJ,KAAMT,EAAO,CAChCU,SAAU,M,CAKL,cAAAI,CAAed,GACrBQ,EAAYC,KAAM,UAAWT,E,CAGvB,iBAAAe,GACNN,KAAKF,YAAYE,KAAKL,MACtBK,KAAKX,gBAAgBW,KAAKJ,UAC1BI,KAAKE,cAAcF,KAAKO,QACxBP,KAAKG,YAAYH,KAAKH,MACtBG,KAAKK,eAAeL,KAAKQ,Q,CAGnB,MAAAC,GACN,OACCC,EAACC,EAAI,KACJD,EAAA,OAAKE,IAAKZ,KAAKa,MAAMlB,KAAMmB,QAASd,KAAKa,MAAMjB,SAAUmB,MAAOf,KAAKa,MAAMN,OAAQS,IAAKhB,KAAKa,MAAMhB,KAAMoB,OAAQjB,KAAKa,MAAML,U"}
1
+ {"version":3,"names":["loadingOptions","validateLoading","component","value","watchValidator","includes","Set","defaultStyleCss","KolImage","_alt","_loading","_src","validateAlt","watchString","this","required","validateSizes","validateSrc","validateImageSource","validateSrcset","componentWillLoad","_sizes","_srcset","render","h","Host","alt","state","loading","sizes","src","srcset"],"sources":["src/utils/validators/loading.ts","src/components/image/style.css?tag=kol-image&mode=default&encapsulation=shadow","src/components/image/shadow.tsx"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { watchValidator } from '../prop.validators';\n\nconst loadingOptions = ['eager', 'lazy'] as const;\nexport type Loading = (typeof loadingOptions)[number];\n\nexport function validateLoading(component: Generic.Element.Component, value?: Loading): void {\n\twatchValidator<Loading>(component, '_loading', (value) => typeof value === 'string' && loadingOptions.includes(value), new Set(loadingOptions), value);\n}\n","@layer kol-component {\n\t:host {\n\t\tdisplay: inline-block;\n\t}\n\timg {\n\t\tmax-height: 100%;\n\t\tmax-width: 100%;\n\t}\n}\n","import { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { ImageSourcePropType, validateImageSource } from '../../types/props/image-source';\nimport { watchString } from '../../utils/prop.validators';\nimport { Loading, validateLoading } from '../../utils/validators/loading';\nimport { API, States } from './types';\n\n@Component({\n\ttag: 'kol-image',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolImage implements API {\n\t/**\n\t * Setzt den alternativen Text.\n\t */\n\t@Prop() public _alt!: string;\n\n\t/**\n\t * Defines the loading mode for the image.\n\t */\n\t@Prop() public _loading?: Loading = 'lazy';\n\n\t/**\n\t * Defines the image sizes for different screen resolutions, supporting _srcset.\n\t */\n\t@Prop() public _sizes?: string;\n\n\t/**\n\t * Sets the image `src` attribute to the given string.\n\t */\n\t@Prop() public _src!: ImageSourcePropType;\n\n\t/**\n\t * Setzt eine Liste von Quell-URLs mit Breiten der Bilder.\n\t */\n\t@Prop() public _srcset?: string;\n\n\t@State() public state: States = {\n\t\t_alt: '…', // ⚠ required\n\t\t_loading: 'lazy',\n\t\t_src: '…', // ⚠ required\n\t};\n\n\t@Watch('_alt')\n\tpublic validateAlt(value?: string): void {\n\t\twatchString(this, '_alt', value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_loading')\n\tpublic validateLoading(value?: Loading): void {\n\t\tvalidateLoading(this, value);\n\t}\n\n\t@Watch('_sizes')\n\tpublic validateSizes(value?: string): void {\n\t\twatchString(this, '_sizes', value);\n\t}\n\n\t@Watch('_src')\n\tpublic validateSrc(value?: ImageSourcePropType): void {\n\t\tvalidateImageSource(this, value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_srcset')\n\tpublic validateSrcset(value?: string): void {\n\t\twatchString(this, '_srcset', value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateAlt(this._alt);\n\t\tthis.validateLoading(this._loading);\n\t\tthis.validateSizes(this._sizes);\n\t\tthis.validateSrc(this._src);\n\t\tthis.validateSrcset(this._srcset);\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<img alt={this.state._alt} loading={this.state._loading} sizes={this.state._sizes} src={this.state._src} srcset={this.state._srcset}></img>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"mappings":";;;2PAIA,MAAMA,EAAiB,CAAC,QAAS,Q,SAGjBC,EAAgBC,EAAsCC,GACrEC,EAAwBF,EAAW,YAAaC,UAAiBA,IAAU,UAAYH,EAAeK,SAASF,IAAQ,IAAIG,IAAIN,GAAiBG,EACjJ,CCTA,MAAMI,EAAkB,qI,MCcXC,EAAQ,M,2DASgB,O,4EAiBJ,CAC/BC,KAAM,IACNC,SAAU,OACVC,KAAM,I,CAIA,WAAAC,CAAYT,GAClBU,EAAYC,KAAM,OAAQX,EAAO,CAChCY,SAAU,M,CAKL,eAAAd,CAAgBE,GACtBF,EAAgBa,KAAMX,E,CAIhB,aAAAa,CAAcb,GACpBU,EAAYC,KAAM,SAAUX,E,CAItB,WAAAc,CAAYd,GAClBe,EAAoBJ,KAAMX,EAAO,CAChCY,SAAU,M,CAKL,cAAAI,CAAehB,GACrBU,EAAYC,KAAM,UAAWX,E,CAGvB,iBAAAiB,GACNN,KAAKF,YAAYE,KAAKL,MACtBK,KAAKb,gBAAgBa,KAAKJ,UAC1BI,KAAKE,cAAcF,KAAKO,QACxBP,KAAKG,YAAYH,KAAKH,MACtBG,KAAKK,eAAeL,KAAKQ,Q,CAGnB,MAAAC,GACN,OACCC,EAACC,EAAI,KACJD,EAAA,OAAKE,IAAKZ,KAAKa,MAAMlB,KAAMmB,QAASd,KAAKa,MAAMjB,SAAUmB,MAAOf,KAAKa,MAAMN,OAAQS,IAAKhB,KAAKa,MAAMhB,KAAMoB,OAAQjB,KAAKa,MAAML,U"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as t,h as n,H as i}from"./index-536799d5.js";const e=":host{--a11y-min-size:44px;font-size:inherit}*{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}button,input,option,select,textarea{font-family:inherit}.icon-only>kol-span-wc>span>span{display:none}:host{display:block}:host>div{border-left-style:solid;padding-left:0.5em}",o=class{constructor(n){t(this,n),this.state={}}render(){return n(i,null,n("div",null,n("slot",null)))}};o.style={default:e};export{o as kol_indented_text};
4
+ import{r as t,h as n,H as e}from"./index-0bc40dc4.js";const i="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\t:host {\n\t\tdisplay: block;\n\t}\n}\n\n@layer kol-component {\n\t:host > div {\n\t\tborder-left-style: solid;\n\t\tpadding-left: 0.5em;\n\t}\n}\n",o=class{constructor(n){t(this,n),this.state={}}render(){return n(e,null,n("div",null,n("slot",null)))}};o.style={default:i};export{o as kol_indented_text};
@@ -1 +1 @@
1
- {"version":3,"names":["defaultStyleCss","KolIndentedText","render","h","Host"],"sources":["src/components/indented-text/style.css?tag=kol-indented-text&mode=default&encapsulation=shadow","src/components/indented-text/component.tsx"],"sourcesContent":["@import url(../style.css);\n@import url(../host-display-block.css);\n:host > div {\n\tborder-left-style: solid;\n\tpadding-left: 0.5em;\n}\n","import { Component, h, Host, JSX, State } from '@stencil/core';\n\nimport { API, States } from './types';\n\n/**\n * @slot - Der Text.\n */\n@Component({\n\ttag: 'kol-indented-text',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolIndentedText implements API {\n\t@State() public state: States = {};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<div>\n\t\t\t\t\t{/* TODO: Für was wird dieses div benötigt? */}\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"mappings":";;;sDAAA,MAAMA,EAAkB,oxB,MCcXC,EAAe,M,oCACK,E,CAEzB,MAAAC,GACN,OACCC,EAACC,EAAI,KACJD,EAAA,WAECA,EAAA,c"}
1
+ {"version":3,"names":["defaultStyleCss","KolIndentedText","render","h","Host"],"sources":["src/components/indented-text/style.css?tag=kol-indented-text&mode=default&encapsulation=shadow","src/components/indented-text/component.tsx"],"sourcesContent":["@import url(../style.css);\n@import url(../host-display-block.css);\n@layer kol-component {\n\t:host > div {\n\t\tborder-left-style: solid;\n\t\tpadding-left: 0.5em;\n\t}\n}\n","import { Component, h, Host, JSX, State } from '@stencil/core';\n\nimport { API, States } from './types';\n\n/**\n * @slot - Der Text.\n */\n@Component({\n\ttag: 'kol-indented-text',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolIndentedText implements API {\n\t@State() public state: States = {};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<div>\n\t\t\t\t\t{/* TODO: Für was wird dieses div benötigt? */}\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"mappings":";;;sDAAA,MAAMA,EAAkB,05F,MCcXC,EAAe,M,oCACK,E,CAEzB,MAAAC,GACN,OACCC,EAACC,EAAI,KACJD,EAAA,WAECA,EAAA,c"}
@@ -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-536799d5.js";import{n}from"./dev.utils-b5b1c70d.js";import{s,t as o}from"./events-2bb1065b.js";import{i as r,a as l,s as d}from"./reuse-b3566e4c.js";import{v as h,g as c}from"./controller-757cd887.js";import{a as p,w as u,s as b}from"./prop.validators-fa5eb5c5.js";import{a as m}from"./a11y.tipps-7143f6fd.js";import{I as f}from"./controller-f1d4f4d4.js";import"./hide-label-27292184.js";import"./label-84d4c0b2.js";import"./tab-index-3ce2c695.js";import"./associated.controller-d70c8be1.js";const y=(t,e)=>{p(t,"_checked",e)},v=(t,e)=>{p(t,"_indeterminate",e)};class k extends f{constructor(t,e,i){super(t,e,i),this.setFormAssociatedCheckboxValue=t=>{this.component._checked?this.setFormAssociatedValue(t):this.setFormAssociatedValue(null)},this.component=t}validateChecked(t){y(this.component,t),this.setFormAssociatedCheckboxValue(this.component.state._value)}validateHideError(t){h(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.")}}})}validateIcons(t){u(this.component,"_icons",(t=>"object"==typeof t&&null!==t&&(r(t.checked,1)||r(t.indeterminate,1)||r(t.unchecked,1))),new Set(["InputCheckboxIcons"]),t,{hooks:{beforePatch:(t,e,i)=>{e.set("_icons",Object.assign(Object.assign({},i.state._icons),t))}}})}validateIndeterminate(t){v(this.component,t)}validateValue(t){b(this.component,"_value",t),this.setFormAssociatedCheckboxValue(this.component.state._value)}validateVariant(t){u(this.component,"_variant",(t=>"string"==typeof t&&("button"===t||"default"===t||"switch"===t)),new Set(["String {button, default, switch}"]),t)}componentWillLoad(){super.componentWillLoad(),this.validateChecked(this.component._checked),this.validateHideError(this.component._hideError),this.validateIcons(this.component._icons),this.validateIndeterminate(this.component._indeterminate),this.validateValue(this.component._value),this.validateVariant(this.component._variant)}}const x=":host{--a11y-min-size:44px;font-size:inherit}*{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}button,input,option,select,textarea{font-family:inherit}.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}label{cursor:pointer}kol-input{align-items:center;display:grid;justify-items:left}kol-input.default,kol-input.switch{grid-template-columns:auto 1fr}kol-input .input{align-items:center;display:grid;order:1}kol-input .input div{display:inline-flex}kol-input .input input{margin:0}kol-input label{order:2}kol-input .hint,kol-input.error>kol-alert{grid-column:span 2}kol-input kol-alert.error{order:3}kol-input .hint{order:4}.error.hidden{display:none}input{border-style:solid;border-width:2px;line-height:24px}input[type='checkbox']{appearance:none;background-color:#fff;cursor:pointer;transition:0.5s}input[type='checkbox'].kol-disabled:before{cursor:not-allowed}input[type='checkbox']:before{content:'';cursor:pointer}.default kol-icon{display:none}kol-input.required .tooltip-content .span-label::after{content:'*'}.button{display:grid;grid-template-columns:var(--a11y-min-size) auto;grid-template-areas:'error error' 'input label' 'hint hint'}.button[tabindex]:focus{cursor:inherit}.button input{display:none}.button>.error{grid-area:error}.button>label{grid-area:label}.button>.input{grid-area:input}.button>.hint{grid-area:hint}.button .icon{display:flex;align-items:center;justify-content:center;width:var(--a11y-min-size);height:var(--a11y-min-size)}.default input[type='checkbox']{height:1.5em;width:1.5em}.default input[type='checkbox']:before{display:block;height:1.5em;position:relative;width:1.5em}.default input[type='checkbox']:checked:before{border-radius:1px;border-style:solid;border-width:0 3px 3px 0;height:0.75em;left:calc(0.375em - 2px);transform:rotate(40deg) translate(-50%, -50%);top:calc(0.7125em - 2px);width:0.375em}.default input[type='checkbox']:indeterminate:before{background-color:#000;height:0.2em;left:0.24em;top:0.575em;width:0.8em}.switch .input{position:relative}.switch input[type='checkbox']{display:inline-block;height:1.7em;min-width:3.2em;position:relative;width:3.2em}.switch input[type='checkbox']::before{background-color:#000;height:1.2em;left:calc(0.25em - 2px);top:calc(0.25em - 2px);position:absolute;transition:0.5s;width:1.2em}.switch input[type='checkbox']:checked::before{transform:translateX(1.5em)}.switch input[type='checkbox']:indeterminate::before{transform:translateX(0.75em)}.switch .icon{cursor:pointer;display:flex;align-items:center;justify-content:center;width:1.2em;height:1.2em;position:absolute;z-index:1;top:50%;left:4px;transform:translate(0, -50%);transition:0.5s;color:#000}.switch:has(input:checked) .icon{transform:translate(1.5em, -50%)}.switch:has(input:indeterminate) .icon{transform:translate(0.75em, -50%)}",g=class{render(){const{ariaDescribedBy:i}=c(this.state),a=d(this.state._label);return t(e,null,t("kol-input",{class:{checkbox:!0,[this.state._variant]:!0,"hide-label":!!this.state._hideLabel,checked:this.state._checked},"data-role":"button"===this.state._variant?"button":void 0,onKeyPress:"button"===this.state._variant?this.onChange:void 0,tabIndex:"button"===this.state._variant?0:void 0,_alert:this.state._alert,_disabled:this.state._disabled,_error:this.state._error,_hideError:this.state._hideError,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_id:this.state._id,_label:this.state._label,_required:this.state._required,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched},t("span",{slot:"label"},a?t("slot",{name:"expert"}):this.state._label),t("div",{slot:"input"},t("kol-icon",{class:"icon",onClick:this.handleIconClick.bind(this),_icons:this.state._indeterminate?this.state._icons.indeterminate:this.state._checked?this.state._icons.checked:this.state._icons.unchecked,_label:""}),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,checked:this.state._checked,disabled:this.state._disabled,id:this.state._id,indeterminate:this.state._indeterminate,name:this.state._name,required:this.state._required,tabIndex:this.state._tabIndex,type:"checkbox"},this.controller.onFacade,{onChange:this.onChange,onClick:void 0})))))}constructor(t){i(this,t),this.catchRef=t=>{this.ref=t,l(this.host,this.ref)},this.onChange=t=>{var e;this._checked=!this._checked,this._indeterminate=!1;const i=this._checked?this.state._value:null;s(t),o("change",this.host,i),this.controller.setFormAssociatedValue(i),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onChange)&&this.state._on.onChange(t,i)},this._accessKey=void 0,this._alert=!0,this._checked=!1,this._hideError=!1,this._disabled=!1,this._error=void 0,this._hideLabel=!1,this._hint="",this._icons=void 0,this._id=void 0,this._indeterminate=void 0,this._label=void 0,this._name=void 0,this._on=void 0,this._required=!1,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._value=!0,this._variant="default",this.state={_checked:!1,_hideError:!1,_icons:{checked:"codicon codicon-check",indeterminate:"codicon codicon-remove",unchecked:"codicon codicon-add"},_id:`id-${n()}`,_indeterminate:!1,_label:"",_value:!0,_variant:"default"},this.controller=new k(this,"input-checkbox",this.host)}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAlert(t){this.controller.validateAlert(t)}validateChecked(t){this.controller.validateChecked(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)}validateIcons(t){this.controller.validateIcons(t)}validateId(t){this.controller.validateId(t)}validateIndeterminate(t){this.controller.validateIndeterminate(t)}validateLabel(t){this.controller.validateLabel(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validateRequired(t){this.controller.validateRequired(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)}validateVariant(t){this.controller.validateVariant(t)}componentWillLoad(){this._alert=!0===this._alert,this._touched=!0===this._touched,this.controller.componentWillLoad()}handleIconClick(t){this.state._disabled||this.onChange(t)}get host(){return a(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_checked:["validateChecked"],_disabled:["validateDisabled"],_error:["validateError"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icons:["validateIcons"],_id:["validateId"],_indeterminate:["validateIndeterminate"],_label:["validateLabel"],_name:["validateName"],_on:["validateOn"],_required:["validateRequired"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"],_variant:["validateVariant"]}}};g.style={default:x};export{g as kol_input_checkbox};
4
+ import{h as t,F as n,H as e,r as i,g as a}from"./index-0bc40dc4.js";import{n as s}from"./dev.utils-babc1742.js";import{s as o,t as r}from"./events-2bb1065b.js";import{i as l,a as d,s as h}from"./reuse-b3566e4c.js";import{v as c,g as p}from"./controller-85e5be61.js";import{a as u,w as m,s as b}from"./prop.validators-445950f8.js";import{a as f}from"./a11y.tipps-1e89ea61.js";import{I as y}from"./controller-b8518ebb.js";import{I as k}from"./InternalUnderlinedAccessKey-8b996006.js";import"./hide-label-c9289ea1.js";import"./label-cdb96413.js";import"./tab-index-d2087b2a.js";import"./associated.controller-89ab9c94.js";const v=(t,e)=>{u(t,"_checked",e)},g=(t,e)=>{u(t,"_indeterminate",e)},x=["button","default","switch"];class w extends y{constructor(t,e,n){super(t,e,n),this.setFormAssociatedCheckboxValue=t=>{this.component._checked?this.setFormAssociatedValue(t):this.setFormAssociatedValue(null)},this.component=t}validateChecked(t){v(this.component,t),this.setFormAssociatedCheckboxValue(this.component.state._value)}validateHideError(t){c(this.component,t,{hooks:{afterPatch:()=>{this.component.state._hideError&&f("Property hide-error for inputs: Only use when the error message is shown outside of the input component.")}}})}validateIcons(t){m(this.component,"_icons",(t=>"object"==typeof t&&null!==t&&(l(t.checked,1)||l(t.indeterminate,1)||l(t.unchecked,1))),new Set(["InputCheckboxIcons"]),t,{hooks:{beforePatch:(t,e,n)=>{e.set("_icons",Object.assign(Object.assign({},n.state._icons),t))}}})}validateIndeterminate(t){g(this.component,t)}validateValue(t){b(this.component,"_value",t),this.setFormAssociatedCheckboxValue(this.component.state._value)}validateVariant(t){m(this.component,"_variant",(t=>"string"==typeof t&&x.includes(t)),new Set([`String {${x.join(", ")}`]),t)}componentWillLoad(){super.componentWillLoad(),this.validateChecked(this.component._checked),this.validateHideError(this.component._hideError),this.validateIcons(this.component._icons),this.validateIndeterminate(this.component._indeterminate),this.validateValue(this.component._value),this.validateVariant(this.component._variant)}}const _="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\t.required label > span::after,\n\t.required legend > span::after {\n\t\tcontent: '*';\n\t}\n}\n\n@layer kol-component {\n\t:host {\n\t\tdisplay: block;\n\t}\n}\n\n@layer kol-component {\n\tinput,\n\ttextarea {\n\t\tcursor: text;\n\t}\n\n\tinput[type='checkbox'],\n\tinput[type='color'],\n\tinput[type='file'],\n\tinput[type='radio'],\n\tinput[type='range'],\n\tlabel,\n\toption,\n\tselect {\n\t\tcursor: pointer;\n\t}\n\n\t/* input[type='checkbox'], */\n\t/* input[type='radio'], */\n\t/* input[type='range'], */\n\tinput[type='color'],\n\tinput[type='date'],\n\tinput[type='datetime-local'],\n\tinput[type='email'],\n\tinput[type='file'],\n\tinput[type='month'],\n\tinput[type='number'],\n\tinput[type='password'],\n\tinput[type='search'],\n\tinput[type='tel'],\n\tinput[type='text'],\n\tinput[type='time'],\n\tinput[type='url'],\n\tinput[type='week'],\n\tselect,\n\tselect[multiple] option,\n\ttextarea {\n\t\tfont-size: 1rem;\n\t\twidth: 100%;\n\t}\n\n\t/* needed hack for vertical alignment */\n\tinput[type='file'] {\n\t\tpadding: calc((var(--a11y-min-size) - 1rem) / 10) 0.5em;\n\t}\n\n\t/* needed hack for vertical alignment */\n\tselect[multiple] option {\n\t\tpadding: calc((var(--a11y-min-size) - 1rem) / 2) 0.5em;\n\t}\n\n\tkol-input.disabled :is(button, input, label, option, select, textarea) {\n\t\tcursor: not-allowed;\n\t\topacity: 0.5;\n\t}\n}\n\n@layer kol-component {\n\tlabel {\n\t\tcursor: pointer;\n\t}\n\n\tkol-input {\n\t\talign-items: center;\n\t\tdisplay: grid;\n\t\tjustify-items: left;\n\t}\n\n\tkol-input.default,\n\tkol-input.switch {\n\t\tgrid-template-columns: auto 1fr;\n\t}\n\n\tkol-input .input {\n\t\talign-items: center;\n\t\tdisplay: grid;\n\t\torder: 1;\n\t}\n\n\tkol-input .input div {\n\t\tdisplay: inline-flex;\n\t}\n\n\tkol-input .input input {\n\t\tmargin: 0;\n\t}\n\n\tkol-input label {\n\t\torder: 2;\n\t}\n\n\tkol-input .hint,\n\tkol-input.error > kol-alert {\n\t\tgrid-column: span 2;\n\t}\n\n\tkol-input kol-alert.error {\n\t\torder: 3;\n\t}\n\n\tkol-input .hint {\n\t\torder: 4;\n\t}\n\n\t.error.hidden {\n\t\tdisplay: none;\n\t}\n\n\tinput {\n\t\tborder-style: solid;\n\t\tborder-width: 2px;\n\t\tline-height: 24px;\n\t}\n\n\tinput[type='checkbox'] {\n\t\tappearance: none;\n\t\tbackground-color: #fff;\n\t\tcursor: pointer;\n\t\ttransition: 0.5s;\n\t}\n\n\tinput[type='checkbox'].kol-disabled:before {\n\t\tcursor: not-allowed;\n\t}\n\n\tinput[type='checkbox']:before {\n\t\tcontent: '';\n\t\tcursor: pointer;\n\t}\n\n\t.default kol-icon {\n\t\tdisplay: none;\n\t}\n\n\tkol-input.required .tooltip-content .span-label::after {\n\t\tcontent: '*';\n\t}\n}\n\n@layer kol-component {\n\t.button {\n\t\tdisplay: grid;\n\t\tgrid-template-columns: var(--a11y-min-size) auto;\n\t\tgrid-template-areas: 'error error' 'input label' 'hint hint';\n\t}\n\n\t.button[tabindex]:focus {\n\t\t/* override global `[tabindex]:focus` style */\n\t\tcursor: inherit;\n\t}\n\n\t.button input {\n\t\tdisplay: none;\n\t}\n\n\t.button > .error {\n\t\tgrid-area: error;\n\t}\n\n\t.button > label {\n\t\tgrid-area: label;\n\t}\n\n\t.button > .input {\n\t\tgrid-area: input;\n\t}\n\n\t.button > .hint {\n\t\tgrid-area: hint;\n\t}\n\n\t.button .icon {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\twidth: var(--a11y-min-size);\n\t\theight: var(--a11y-min-size);\n\t}\n}\n\n@layer kol-component {\n\t.default input[type='checkbox'] {\n\t\theight: 1.5em;\n\t\twidth: 1.5em;\n\t}\n\n\t.default input[type='checkbox']:before {\n\t\tdisplay: block;\n\t\theight: 1.5em;\n\t\tposition: relative;\n\t\twidth: 1.5em;\n\t}\n\n\t.default input[type='checkbox']:checked:before {\n\t\tborder-radius: 1px;\n\t\tborder-style: solid;\n\t\tborder-width: 0 3px 3px 0;\n\t\theight: 0.75em;\n\t\tleft: calc(0.375em - 2px);\n\t\ttransform: rotate(40deg) translate(-50%, -50%);\n\t\ttop: calc(0.7125em - 2px);\n\t\twidth: 0.375em;\n\t}\n\n\t.default input[type='checkbox']:indeterminate:before {\n\t\tbackground-color: #000;\n\t\theight: 0.2em;\n\t\tleft: 0.24em;\n\t\ttop: 0.575em;\n\t\twidth: 0.8em;\n\t}\n}\n\n@layer kol-component {\n\t.switch .input {\n\t\tposition: relative;\n\t}\n\n\t.switch input[type='checkbox'] {\n\t\tdisplay: inline-block;\n\t\theight: 1.7em;\n\t\tmin-width: 3.2em;\n\t\tposition: relative;\n\t\twidth: 3.2em;\n\t}\n\n\t.switch input[type='checkbox']::before {\n\t\tbackground-color: #000;\n\t\theight: 1.2em;\n\t\tleft: calc(0.25em - 2px);\n\t\ttop: calc(0.25em - 2px);\n\t\tposition: absolute;\n\t\ttransition: 0.5s;\n\t\twidth: 1.2em;\n\t}\n\n\t.switch input[type='checkbox']:checked::before {\n\t\ttransform: translateX(1.5em);\n\t}\n\n\t.switch input[type='checkbox']:indeterminate::before {\n\t\ttransform: translateX(0.75em);\n\t}\n\n\t.switch .icon {\n\t\tcursor: pointer;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\twidth: 1.2em;\n\t\theight: 1.2em;\n\t\tposition: absolute;\n\t\tz-index: 1;\n\t\ttop: 50%;\n\t\tleft: 4px;\n\t\ttransform: translate(0, -50%);\n\t\ttransition: 0.5s;\n\t\tcolor: #000;\n\t}\n\n\t.switch:has(input:checked) .icon {\n\t\ttransform: translate(1.5em, -50%);\n\t}\n\n\t.switch:has(input:indeterminate) .icon {\n\t\ttransform: translate(0.75em, -50%);\n\t}\n}\n\n",j=class{render(){const{ariaDescribedBy:i}=p(this.state),a=h(this.state._label);return t(e,null,t("kol-input",{class:{checkbox:!0,[this.state._variant]:!0,"hide-label":!!this.state._hideLabel,checked:this.state._checked},"data-role":"button"===this.state._variant?"button":void 0,onKeyPress:"button"===this.state._variant?this.onChange:void 0,tabIndex:"button"!==this.state._variant||this.state._disabled?void 0:0,_accessKey:this.state._accessKey,_alert:this.state._alert,_disabled:this.state._disabled,_error:this.state._error,_hideError:this.state._hideError,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_id:this.state._id,_label:this.state._label,_required:this.state._required,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched},t("span",{slot:"label"},a?t("slot",{name:"expert"}):"string"==typeof this.state._accessKey?t(n,null,t(k,{accessKey:this.state._accessKey,label:this.state._label})," ",t("span",{class:"access-key-hint","aria-hidden":"true"},this.state._accessKey)):t("span",null,this.state._label)),t("div",{slot:"input"},t("kol-icon",{class:"icon",onClick:this.handleIconClick.bind(this),_icons:this.state._indeterminate?this.state._icons.indeterminate:this.state._checked?this.state._icons.checked:this.state._icons.unchecked,_label:""}),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,checked:this.state._checked,disabled:this.state._disabled,id:this.state._id,indeterminate:this.state._indeterminate,name:this.state._name,required:this.state._required,tabIndex:this.state._tabIndex,type:"checkbox"},this.controller.onFacade,{onChange:this.onChange,onClick:void 0})))))}constructor(t){i(this,t),this.catchRef=t=>{d(this.host,t)},this.onChange=t=>{var e;this._checked=!this._checked,this._indeterminate=!1;const n=this._checked?this.state._value:null;o(t),r("change",this.host,n),this.controller.setFormAssociatedValue(n),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onChange)&&this.state._on.onChange(t,n)},this._accessKey=void 0,this._alert=!0,this._checked=!1,this._hideError=!1,this._disabled=!1,this._error=void 0,this._hideLabel=!1,this._hint="",this._icons=void 0,this._id=void 0,this._indeterminate=void 0,this._label=void 0,this._name=void 0,this._on=void 0,this._required=!1,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._value=!0,this._variant="default",this.state={_checked:!1,_hideError:!1,_icons:{checked:"codicon codicon-check",indeterminate:"codicon codicon-remove",unchecked:"codicon codicon-add"},_id:`id-${s()}`,_indeterminate:!1,_label:"",_value:!0,_variant:"default"},this.controller=new w(this,"input-checkbox",this.host)}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAlert(t){this.controller.validateAlert(t)}validateChecked(t){this.controller.validateChecked(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)}validateIcons(t){this.controller.validateIcons(t)}validateId(t){this.controller.validateId(t)}validateIndeterminate(t){this.controller.validateIndeterminate(t)}validateLabel(t){this.controller.validateLabel(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validateRequired(t){this.controller.validateRequired(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)}validateVariant(t){this.controller.validateVariant(t)}componentWillLoad(){this._alert=!0===this._alert,this._touched=!0===this._touched,this.controller.componentWillLoad()}handleIconClick(t){this.state._disabled||this.onChange(t)}get host(){return a(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_checked:["validateChecked"],_disabled:["validateDisabled"],_error:["validateError"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icons:["validateIcons"],_id:["validateId"],_indeterminate:["validateIndeterminate"],_label:["validateLabel"],_name:["validateName"],_on:["validateOn"],_required:["validateRequired"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"],_variant:["validateVariant"]}}};j.style={default:_};export{j as kol_input_checkbox};
@@ -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","validateIcons","watchValidator","isString","checked","indeterminate","unchecked","Set","beforePatch","nextValue","nextState","set","Object","assign","_icons","validateValue","setState","validateVariant","componentWillLoad","_indeterminate","_variant","defaultStyleCss","KolInputCheckbox","render","ariaDescribedBy","getRenderStates","hasExpertSlot","showExpertSlot","_label","h","Host","class","checkbox","_hideLabel","undefined","onKeyPress","onChange","tabIndex","_alert","_disabled","_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 } 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 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\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\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);\n\t\tthis.validateIndeterminate(this.component._indeterminate);\n\t\tthis.validateValue(this.component._value);\n\t\tthis.validateVariant(this.component._variant);\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 expert - 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\tprivate ref?: HTMLInputElement;\n\n\tprivate readonly catchRef = (ref?: HTMLInputElement) => {\n\t\tthis.ref = ref;\n\t\tpropagateFocus(this.host, this.ref);\n\t};\n\n\tpublic render(): JSX.Element {\n\t\tconst { ariaDescribedBy } = getRenderStates(this.state);\n\t\tconst hasExpertSlot = showExpertSlot(this.state._label);\n\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<kol-input\n\t\t\t\t\tclass={{\n\t\t\t\t\t\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' ? 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<span slot=\"label\">{hasExpertSlot ? <slot name=\"expert\"></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 * 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 * 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 = 'default';\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('_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('_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":"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"}
1
+ {"version":3,"names":["validateChecked","component","value","watchBoolean","validateIndeterminate","inputCheckboxVariantOptions","InputCheckboxController","InputCheckboxRadioController","constructor","name","host","super","this","setFormAssociatedCheckboxValue","_checked","setFormAssociatedValue","state","_value","validateHideError","hooks","afterPatch","_hideError","a11yHint","validateIcons","watchValidator","isString","checked","indeterminate","unchecked","Set","beforePatch","nextValue","nextState","set","Object","assign","_icons","validateValue","setState","validateVariant","includes","join","componentWillLoad","_indeterminate","_variant","defaultStyleCss","KolInputCheckbox","render","ariaDescribedBy","getRenderStates","hasExpertSlot","showExpertSlot","_label","h","Host","class","checkbox","_hideLabel","undefined","onKeyPress","onChange","tabIndex","_disabled","_accessKey","_alert","_error","_hint","_id","_required","_tooltipAlign","_touched","slot","Fragment","InternalUnderlinedAccessKey","accessKey","label","onClick","handleIconClick","bind","ref","catchRef","title","length","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/types.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 { AnyIconFontClass } from '../../types/icons';\nimport { InputTypeOnDefault } from '../../types/input/types';\nimport { PropChecked } from '../../types/props/checked';\nimport { PropDisabled } from '../../types/props/disabled';\nimport { PropHideError } from '../../types/props/hide-error';\nimport { PropHideLabel } from '../../types/props/hide-label';\nimport { PropIndeterminate } from '../../types/props/indeterminate';\nimport { PropLabelWithExpertSlot } from '../../types/props/label';\nimport { PropName } from '../../types/props/name';\nimport { PropRequired } from '../../types/props/required';\nimport { PropSyncValueBySelector } from '../../types/props/sync-value-by-selector';\nimport { PropTouched } from '../../types/props/touched';\nimport { StencilUnknown } from '../../types/unknown';\n\nexport const inputCheckboxVariantOptions = ['button', 'default', 'switch'] as const;\nexport type InputCheckboxVariant = (typeof inputCheckboxVariantOptions)[number];\n\nexport type InputCheckboxIconsProp =\n\t| {\n\t\t\tchecked: AnyIconFontClass;\n\t\t\tindeterminate?: AnyIconFontClass;\n\t\t\tunchecked?: AnyIconFontClass;\n\t }\n\t| {\n\t\t\tchecked?: AnyIconFontClass;\n\t\t\tindeterminate: AnyIconFontClass;\n\t\t\tunchecked?: AnyIconFontClass;\n\t }\n\t| {\n\t\t\tchecked?: AnyIconFontClass;\n\t\t\tindeterminate?: AnyIconFontClass;\n\t\t\tunchecked: AnyIconFontClass;\n\t };\n\nexport type InputCheckboxIconsState = {\n\tchecked: AnyIconFontClass;\n\tindeterminate: AnyIconFontClass;\n\tunchecked: AnyIconFontClass;\n};\n\ntype RequiredProps = NonNullable<unknown>;\ntype OptionalProps = {\n\taccessKey: string;\n\talert: boolean;\n\terror: string;\n\thint: string;\n\ticons: Stringified<InputCheckboxIconsProp>;\n\ton: InputTypeOnDefault;\n\ttabIndex: number;\n\tvalue: Stringified<StencilUnknown>;\n\tvariant: InputCheckboxVariant;\n} & PropChecked &\n\tPropDisabled &\n\tPropHideError &\n\tPropHideLabel &\n\tPropIndeterminate &\n\tPropLabelWithExpertSlot &\n\tPropName &\n\tPropRequired &\n\tPropSyncValueBySelector &\n\tPropTouched;\nexport type Props = Generic.Element.Members<RequiredProps, OptionalProps>;\n\ntype RequiredStates = {\n\ticons: InputCheckboxIconsState;\n\tid: string;\n\tvalue: StencilUnknown;\n\tvariant: InputCheckboxVariant;\n} & PropChecked &\n\tPropHideError &\n\tPropIndeterminate &\n\tPropLabelWithExpertSlot;\ntype OptionalStates = {\n\taccessKey: string;\n\talert: boolean;\n\terror: string;\n\thint: string;\n\ton: InputTypeOnDefault;\n\ttabIndex: number;\n} & PropDisabled &\n\tPropHideLabel &\n\tPropName &\n\tPropRequired &\n\tPropTouched;\n\nexport type States = Generic.Element.Members<RequiredStates, OptionalStates>;\n\nexport type Watches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\nexport type API = Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates>;\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 } 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, inputCheckboxVariantOptions, 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 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\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\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_variant',\n\t\t\t(value): boolean => typeof value === 'string' && inputCheckboxVariantOptions.includes(value),\n\t\t\tnew Set([`String {${inputCheckboxVariantOptions.join(', ')}`]),\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);\n\t\tthis.validateIndeterminate(this.component._indeterminate);\n\t\tthis.validateValue(this.component._value);\n\t\tthis.validateVariant(this.component._variant);\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, Fragment, 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';\nimport { InternalUnderlinedAccessKey } from '../span/InternalUnderlinedAccessKey';\n\n/**\n * @slot expert - 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_accessKey={this.state._accessKey}\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<span slot=\"label\">\n\t\t\t\t\t\t{hasExpertSlot ? (\n\t\t\t\t\t\t\t<slot name=\"expert\"></slot>\n\t\t\t\t\t\t) : typeof this.state._accessKey === 'string' ? (\n\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t<InternalUnderlinedAccessKey accessKey={this.state._accessKey} label={this.state._label} />{' '}\n\t\t\t\t\t\t\t\t<span class=\"access-key-hint\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t\t\t{this.state._accessKey}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<span>{this.state._label}</span>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</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 * 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 * 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 = 'default';\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('_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('_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":"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"}
@@ -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-536799d5.js";import{n as a}from"./dev.utils-b5b1c70d.js";import{a as n,s as o}from"./reuse-b3566e4c.js";import{v as l,g as r}from"./controller-757cd887.js";import{v as d}from"./suggestions-7c5183fe.js";import{a as h}from"./a11y.tipps-7143f6fd.js";import{w as p,d as u}from"./prop.validators-fa5eb5c5.js";import{I as c}from"./controller-icon-d4a91832.js";import"./hide-label-27292184.js";import"./label-84d4c0b2.js";import"./events-2bb1065b.js";import"./tab-index-3ce2c695.js";import"./associated.controller-d70c8be1.js";import"./icons-b6a6d907.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)}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.validateValue(this.component._value)}}const m=":host{--a11y-min-size:44px;font-size:inherit}*{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}button,input,option,select,textarea{font-family:inherit}.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}",y=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",{name:"expert"}):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._icons=void 0,this._id=void 0,this._label=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)}validateIcons(t){this.controller.validateIcons(t)}validateId(t){this.controller.validateId(t)}validateLabel(t){this.controller.validateLabel(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"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_name:["validateName"],_on:["validateOn"],_smartButton:["validateSmartButton"],_suggestions:["validateSuggestions"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};y.style={default:m};export{y as kol_input_color};
4
+ import{h as t,F as n,H as e,r as i,g as a}from"./index-0bc40dc4.js";import{n as s}from"./dev.utils-babc1742.js";import{a as o,s as l}from"./reuse-b3566e4c.js";import{v as r,g as d}from"./controller-85e5be61.js";import{v as h}from"./suggestions-59d82dad.js";import{a as p}from"./a11y.tipps-1e89ea61.js";import{w as u,d as c}from"./prop.validators-445950f8.js";import{I as m}from"./controller-icon-9794a8aa.js";import{I as f}from"./InternalUnderlinedAccessKey-8b996006.js";import"./hide-label-c9289ea1.js";import"./label-cdb96413.js";import"./events-2bb1065b.js";import"./tab-index-d2087b2a.js";import"./associated.controller-89ab9c94.js";import"./icons-97af6e5f.js";const y=["on","off"];class b extends m{constructor(t,e,n){super(t,e,n),this.component=t}validateAutoComplete(t){u(this.component,"_autoComplete",(t=>"string"==typeof t&&y.includes(t)),new Set(y),t)}validateSuggestions(t){h(this.component,t)}validateValue(t){c(this.component,"_value",t),this.setFormAssociatedValue(this.component.state._value)}validateHideError(t){r(this.component,t,{hooks:{afterPatch:()=>{this.component.state._hideError&&p("Property hide-error for inputs: Only use when the error message is shown outside of the input component.")}}})}componentWillLoad(){super.componentWillLoad(),this.validateAutoComplete(this.component._autoComplete),this.validateHideError(this.component._hideError),this.validateSuggestions(this.component._suggestions),this.validateValue(this.component._value)}}const v="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\t.required label > span::after,\n\t.required legend > span::after {\n\t\tcontent: '*';\n\t}\n}\n\n@layer kol-component {\n\t:host {\n\t\tdisplay: block;\n\t}\n}\n\n@layer kol-component {\n\tinput,\n\ttextarea {\n\t\tcursor: text;\n\t}\n\n\tinput[type='checkbox'],\n\tinput[type='color'],\n\tinput[type='file'],\n\tinput[type='radio'],\n\tinput[type='range'],\n\tlabel,\n\toption,\n\tselect {\n\t\tcursor: pointer;\n\t}\n\n\t/* input[type='checkbox'], */\n\t/* input[type='radio'], */\n\t/* input[type='range'], */\n\tinput[type='color'],\n\tinput[type='date'],\n\tinput[type='datetime-local'],\n\tinput[type='email'],\n\tinput[type='file'],\n\tinput[type='month'],\n\tinput[type='number'],\n\tinput[type='password'],\n\tinput[type='search'],\n\tinput[type='tel'],\n\tinput[type='text'],\n\tinput[type='time'],\n\tinput[type='url'],\n\tinput[type='week'],\n\tselect,\n\tselect[multiple] option,\n\ttextarea {\n\t\tfont-size: 1rem;\n\t\twidth: 100%;\n\t}\n\n\t/* needed hack for vertical alignment */\n\tinput[type='file'] {\n\t\tpadding: calc((var(--a11y-min-size) - 1rem) / 10) 0.5em;\n\t}\n\n\t/* needed hack for vertical alignment */\n\tselect[multiple] option {\n\t\tpadding: calc((var(--a11y-min-size) - 1rem) / 2) 0.5em;\n\t}\n\n\tkol-input.disabled :is(button, input, label, option, select, textarea) {\n\t\tcursor: not-allowed;\n\t\topacity: 0.5;\n\t}\n}\n\n@layer kol-component {\n\tkol-input {\n\t\tdisplay: grid;\n\t}\n\n\tkol-input .input-slot {\n\t\tflex-grow: 1;\n\t}\n\n\tinput:not([type='checkbox'], [type='radio']),\n\tselect:not([multiple], [size]) {\n\t\theight: 2.75em;\n\t}\n\n\tinput:focus,\n\toption:focus,\n\tselect:focus,\n\ttextarea:focus {\n\t\toutline: 0;\n\t}\n\n\t.input {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t}\n\n\t.input > kol-icon {\n\t\tdisplay: grid;\n\t\theight: var(--a11y-min-size);\n\t\tplace-items: center;\n\t}\n\n\tkol-input.required .input-tooltip .span-label::after {\n\t\tcontent: '*';\n\t}\n}\n\n@layer kol-component {\n\tdiv.input {\n\t\tcursor: pointer;\n\t}\n\n\t.error.hidden {\n\t\tdisplay: none;\n\t}\n}\n",g=class{render(){const{ariaDescribedBy:i}=d(this.state),a=Array.isArray(this.state._suggestions)&&this.state._suggestions.length>0,o=l(this.state._label);return t(e,null,t("kol-input",{class:{color:!0,"hide-label":!!this.state._hideLabel},_accessKey:this.state._accessKey,_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"},o?t("slot",{name:"expert"}):"string"==typeof this.state._accessKey?t(n,null,t(f,{accessKey:this.state._accessKey,label:this.state._label})," ",t("span",{class:"access-key-hint","aria-hidden":"true"},this.state._accessKey)):t("span",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,o(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._icons=void 0,this._id=void 0,this._label=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-${s()}`,_label:"",_suggestions:[]},this.controller=new b(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)}validateIcons(t){this.controller.validateIcons(t)}validateId(t){this.controller.validateId(t)}validateLabel(t){this.controller.validateLabel(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 a(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_autoComplete:["validateAutoComplete"],_disabled:["validateDisabled"],_error:["validateError"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_name:["validateName"],_on:["validateOn"],_smartButton:["validateSmartButton"],_suggestions:["validateSuggestions"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};g.style={default:v};export{g as kol_input_color};
@@ -1 +1 @@
1
- {"version":3,"names":["InputColorController","InputIconController","constructor","component","name","host","super","this","validateAutoComplete","value","watchValidator","Set","validateSuggestions","validateValue","watchString","setFormAssociatedValue","state","_value","validateHideError","hooks","afterPatch","_hideError","a11yHint","componentWillLoad","_autoComplete","_suggestions","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","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\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);\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<span slot=\"label\">{hasExpertSlot ? <slot name=\"expert\"></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 * 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 * 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('_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('_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":"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"}
1
+ {"version":3,"names":["inputTypeOnOffOptions","InputColorController","InputIconController","constructor","component","name","host","super","this","validateAutoComplete","value","watchValidator","includes","Set","validateSuggestions","validateValue","watchString","setFormAssociatedValue","state","_value","validateHideError","hooks","afterPatch","_hideError","a11yHint","componentWillLoad","_autoComplete","_suggestions","defaultStyleCss","KolInputColor","render","ariaDescribedBy","getRenderStates","hasSuggestions","Array","isArray","length","hasExpertSlot","showExpertSlot","_label","h","Host","class","color","_hideLabel","_accessKey","_disabled","_error","_hint","_icons","_id","_smartButton","_tooltipAlign","_touched","onClick","_a","ref","focus","slot","Fragment","InternalUnderlinedAccessKey","accessKey","label","Object","assign","catchRef","title","join","undefined","autoCapitalize","autoComplete","autoCorrect","disabled","id","list","_name","spellcheck","type","controller","onFacade","hostRef","propagateFocus","nonce","validateAccessKey","validateAlert","validateDisabled","validateError","validateHideLabel","validateHint","validateIcons","validateId","validateLabel","validateName","validateOn","validateSmartButton","validateSyncValueBySelector","validateTabIndex","validateTouched","_alert"],"sources":["src/types/input/types.ts","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 { Events } from '../../enums/events';\nimport { EventCallback, EventValueOrEventCallback } from '../callbacks';\n\nexport const inputTypeOnOffOptions = ['on', 'off'] as const;\nexport type InputTypeOnOff = (typeof inputTypeOnOffOptions)[number];\n\ntype InputTypeOnBlur = {\n\t[Events.onBlur]?: EventCallback<Event>;\n};\n\ntype InputTypeOnClick = {\n\t[Events.onClick]?: EventCallback<Event>;\n};\n\ntype InputTypeOnChange = {\n\t[Events.onChange]?: EventValueOrEventCallback<Event, unknown>;\n};\n\ntype InputTypeOnFocus = {\n\t[Events.onFocus]?: EventCallback<Event>;\n};\n\n// https://html.spec.whatwg.org/multipage/form-elements.html#the-option-element\nexport type Option<T> = {\n\tdisabled?: boolean;\n\tlabel: string | number;\n\t// selected?: boolean; // wird über den value der *-Komponente gesteuert\n\tvalue: T;\n};\n\nexport type Optgroup<T> = {\n\tdisabled?: boolean;\n\tlabel: string;\n\toptions: Option<T>[];\n};\n\nexport type SelectOption<T> = Option<T> | Optgroup<T>;\n\nexport type InputTypeOnDefault = InputTypeOnBlur & InputTypeOnClick & InputTypeOnChange & InputTypeOnFocus;\n","import { Generic } from '@a11y-ui/core';\n\nimport { InputTypeOnOff, inputTypeOnOffOptions } 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' && inputTypeOnOffOptions.includes(value),\n\t\t\tnew Set(inputTypeOnOffOptions),\n\t\t\tvalue\n\t\t);\n\t}\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);\n\t\tthis.validateValue(this.component._value);\n\t}\n}\n","@import url(../input-line.css);\n@layer kol-component {\n\tdiv.input {\n\t\tcursor: pointer;\n\t}\n\n\t.error.hidden {\n\t\tdisplay: none;\n\t}\n}\n","import { Component, Element, Fragment, 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';\nimport { InternalUnderlinedAccessKey } from '../span/InternalUnderlinedAccessKey';\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_accessKey={this.state._accessKey}\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<span slot=\"label\">\n\t\t\t\t\t\t{hasExpertSlot ? (\n\t\t\t\t\t\t\t<slot name=\"expert\"></slot>\n\t\t\t\t\t\t) : typeof this.state._accessKey === 'string' ? (\n\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t<InternalUnderlinedAccessKey accessKey={this.state._accessKey} label={this.state._label} />{' '}\n\t\t\t\t\t\t\t\t<span class=\"access-key-hint\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t\t\t{this.state._accessKey}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<span>{this.state._label}</span>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</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 * 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 * 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('_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('_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":"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"}
@@ -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-536799d5.js";import{n as a}from"./dev.utils-b5b1c70d.js";import{a as n,s as l}from"./reuse-b3566e4c.js";import{p as o}from"./controller-8bf7eac9.js";import{v as d,g as r}from"./controller-757cd887.js";import{a as h,w as u,s as p,e as c}from"./prop.validators-fa5eb5c5.js";import{v as f}from"./suggestions-7c5183fe.js";import{a as m}from"./a11y.tipps-7143f6fd.js";import{I as y}from"./controller-icon-d4a91832.js";import"./hide-label-27292184.js";import"./label-84d4c0b2.js";import"./events-2bb1065b.js";import"./tab-index-3ce2c695.js";import"./associated.controller-d70c8be1.js";import"./icons-b6a6d907.js";const v=(t,e)=>{h(t,"_readOnly",e)};class b extends y{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){d(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.")}}})}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){v(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.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-size:inherit}*{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}button,input,option,select,textarea{font-family:inherit}.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=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",{name:"expert"}):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?o({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._icons=void 0,this._id=void 0,this._label=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)}validateIcons(t){this.controller.validateIcons(t)}validateId(t){this.controller.validateId(t)}validateLabel(t){this.controller.validateLabel(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"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_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,F as e,H as n,r as i,g as s}from"./index-0bc40dc4.js";import{n as a}from"./dev.utils-babc1742.js";import{a as l,s as o}from"./reuse-b3566e4c.js";import{p as r}from"./controller-88531ae3.js";import{v as d,g as h}from"./controller-85e5be61.js";import{a as p,w as u,s as c,e as f}from"./prop.validators-445950f8.js";import{v as m}from"./suggestions-59d82dad.js";import{a as y}from"./a11y.tipps-1e89ea61.js";import{I as v}from"./controller-icon-9794a8aa.js";import{I as b}from"./InternalUnderlinedAccessKey-8b996006.js";import"./hide-label-c9289ea1.js";import"./label-cdb96413.js";import"./events-2bb1065b.js";import"./tab-index-d2087b2a.js";import"./associated.controller-89ab9c94.js";import"./icons-97af6e5f.js";const g=["date","datetime-local","month","time","week"],_=(t,e)=>{p(t,"_readOnly",e)};class x extends v{constructor(t,e,n){super(t,e,n),this.validateIso8601=(t,e,n)=>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&&n&&n(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){d(this.component,t,{hooks:{afterPatch:()=>{this.component.state._hideError&&y("Property hide-error for inputs: Only use when the error message is shown outside of the input component.")}}})}validateSuggestions(t){m(this.component,t)}tryParseToString(t,e){const n=null!=t?t:e;if("string"==typeof n)return n;if("object"==typeof n&&n instanceof Date)switch(this.component._type){case"date":return`${n.getFullYear()}-${n.getMonth()+1}-${n.getDate()}`;case"datetime-local":return`${n.getFullYear()}-${n.getMonth()+1}-${n.getDate()}T${n.getHours()}:${n.getMinutes()}:${n.getSeconds()}`;case"month":return`${n.getFullYear()}-${n.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?`${n.getHours()}:${n.getMinutes()}`:`${n.getHours()}:${n.getMinutes()}:${n.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 x.isoDateRegex.test(t);case"datetime-local":return x.isoLocalDateTimeRegex.test(t);case"month":return x.isoMonthRegex.test(t);case"time":return x.isoTimeRegex.test(t);case"week":return x.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?x.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){c(this.component,"_on",Object.assign(Object.assign({},t),{onChange:(e,n)=>{!!n!=!!this.component._value&&(this.component._value=n),(null==t?void 0:t.onChange)&&t.onChange(e,n)}}))}validateReadOnly(t){_(this.component,t)}validateRequired(t){p(this.component,"_required",t)}validateStep(t){f(this.component,"_step",t)}validateType(t){u(this.component,"_type",(t=>"string"==typeof t&&g.includes(t)),new Set([`String {${g.join(", ")}`]),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.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)}}x.isoDateRegex=/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])/,x.isoLocalDateTimeRegex=/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])[T ][0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/,x.isoMonthRegex=/^\d{4}-([0]\d|1[0-2])/,x.isoTimeRegex=/^[0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/,x.isoWeekRegex=/^\d{4}-W(?:[0-4]\d|5[0-3])$/,x.DEFAULT_MAX_DATE=new Date(9999,11,31,23,59,59);const w="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\t.required label > span::after,\n\t.required legend > span::after {\n\t\tcontent: '*';\n\t}\n}\n\n@layer kol-component {\n\t:host {\n\t\tdisplay: block;\n\t}\n}\n\n@layer kol-component {\n\tinput,\n\ttextarea {\n\t\tcursor: text;\n\t}\n\n\tinput[type='checkbox'],\n\tinput[type='color'],\n\tinput[type='file'],\n\tinput[type='radio'],\n\tinput[type='range'],\n\tlabel,\n\toption,\n\tselect {\n\t\tcursor: pointer;\n\t}\n\n\t/* input[type='checkbox'], */\n\t/* input[type='radio'], */\n\t/* input[type='range'], */\n\tinput[type='color'],\n\tinput[type='date'],\n\tinput[type='datetime-local'],\n\tinput[type='email'],\n\tinput[type='file'],\n\tinput[type='month'],\n\tinput[type='number'],\n\tinput[type='password'],\n\tinput[type='search'],\n\tinput[type='tel'],\n\tinput[type='text'],\n\tinput[type='time'],\n\tinput[type='url'],\n\tinput[type='week'],\n\tselect,\n\tselect[multiple] option,\n\ttextarea {\n\t\tfont-size: 1rem;\n\t\twidth: 100%;\n\t}\n\n\t/* needed hack for vertical alignment */\n\tinput[type='file'] {\n\t\tpadding: calc((var(--a11y-min-size) - 1rem) / 10) 0.5em;\n\t}\n\n\t/* needed hack for vertical alignment */\n\tselect[multiple] option {\n\t\tpadding: calc((var(--a11y-min-size) - 1rem) / 2) 0.5em;\n\t}\n\n\tkol-input.disabled :is(button, input, label, option, select, textarea) {\n\t\tcursor: not-allowed;\n\t\topacity: 0.5;\n\t}\n}\n\n@layer kol-component {\n\tkol-input {\n\t\tdisplay: grid;\n\t}\n\n\tkol-input .input-slot {\n\t\tflex-grow: 1;\n\t}\n\n\tinput:not([type='checkbox'], [type='radio']),\n\tselect:not([multiple], [size]) {\n\t\theight: 2.75em;\n\t}\n\n\tinput:focus,\n\toption:focus,\n\tselect:focus,\n\ttextarea:focus {\n\t\toutline: 0;\n\t}\n\n\t.input {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t}\n\n\t.input > kol-icon {\n\t\tdisplay: grid;\n\t\theight: var(--a11y-min-size);\n\t\tplace-items: center;\n\t}\n\n\tkol-input.required .input-tooltip .span-label::after {\n\t\tcontent: '*';\n\t}\n}\n\n@layer kol-component {\n\tkol-input-number {\n\t\tdisplay: block;\n\t}\n\n\t.error.hidden {\n\t\tdisplay: none;\n\t}\n}\n",k=class{render(){const{ariaDescribedBy:i}=h(this.state),a=Array.isArray(this.state._suggestions)&&this.state._suggestions.length>0,s=o(this.state._label);return t(n,{class:{"has-value":this.state._hasValue}},t("kol-input",{class:{[this.state._type]:!0,"hide-label":!!this.state._hideLabel},_accessKey:this.state._accessKey,_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",{name:"expert"}):"string"==typeof this.state._accessKey?t(e,null,t(b,{accessKey:this.state._accessKey,label:this.state._label})," ",t("span",{class:"access-key-hint","aria-hidden":"true"},this.state._accessKey)):t("span",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,l(this.host,this.ref)},this.onKeyUp=t=>{"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._hideError=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._id=void 0,this._label=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 x(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)}validateIcons(t){this.controller.validateIcons(t)}validateId(t){this.controller.validateId(t)}validateLabel(t){this.controller.validateLabel(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"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_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"]}}};k.style={default:w};export{k as kol_input_date};