@public-ui/components 1.4.2 → 1.5.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (634) hide show
  1. package/README.md +7 -0
  2. package/cheat-sheet.html +54 -25
  3. package/custom-elements.json +52 -17
  4. package/dist/cjs/app-globals-c6303780.js +4 -0
  5. package/dist/cjs/app-globals-c6303780.js.map +1 -0
  6. package/dist/cjs/bund-e238647c.js +4 -0
  7. package/dist/cjs/bund-e238647c.js.map +1 -0
  8. package/dist/cjs/button-link-89ed5382.js +4 -0
  9. package/dist/cjs/button-link-89ed5382.js.map +1 -0
  10. package/dist/cjs/{controller-af70d3a1.js → controller-2405dd04.js} +1 -1
  11. package/dist/cjs/{controller-af70d3a1.js.map → controller-2405dd04.js.map} +1 -1
  12. package/dist/cjs/{controller-1c9293c6.js → controller-8e2cebc1.js} +1 -1
  13. package/dist/cjs/{controller-1c9293c6.js.map → controller-8e2cebc1.js.map} +1 -1
  14. package/dist/cjs/{controller-c831bc96.js → controller-94b357a3.js} +1 -1
  15. package/dist/cjs/{controller-c831bc96.js.map → controller-94b357a3.js.map} +1 -1
  16. package/dist/cjs/{controller-f7dd8dc0.js → controller-ce13f0a2.js} +1 -1
  17. package/dist/cjs/{controller-f7dd8dc0.js.map → controller-ce13f0a2.js.map} +1 -1
  18. package/dist/cjs/{controller-2176883f.js → controller-d0743a95.js} +1 -1
  19. package/dist/cjs/{controller-2176883f.js.map → controller-d0743a95.js.map} +1 -1
  20. package/dist/cjs/{controller-7254416e.js → controller-dbbddbe7.js} +1 -1
  21. package/dist/cjs/{controller-7254416e.js.map → controller-dbbddbe7.js.map} +1 -1
  22. package/dist/cjs/{controller-icon-7980fc53.js → controller-icon-b87565c4.js} +1 -1
  23. package/dist/cjs/{controller-icon-7980fc53.js.map → controller-icon-b87565c4.js.map} +1 -1
  24. package/dist/cjs/{devtools-910a0fd1.js → devtools-a9a95b0a.js} +1 -1
  25. package/dist/cjs/{devtools-910a0fd1.js.map → devtools-a9a95b0a.js.map} +1 -1
  26. package/dist/cjs/i18n-5d946612.js +4 -0
  27. package/dist/cjs/i18n-5d946612.js.map +1 -0
  28. package/dist/cjs/icon-ccf4ad42.js +4 -0
  29. package/dist/cjs/icon-ccf4ad42.js.map +1 -0
  30. package/dist/cjs/index-29c5d3c6.js.map +1 -1
  31. package/dist/cjs/{index-cc5674d0.js → index-e9fcaeca.js} +1 -1
  32. package/dist/cjs/index-e9fcaeca.js.map +1 -0
  33. package/dist/cjs/index-ecda65e0.js +4 -0
  34. package/dist/cjs/{i18n-ca8f5c94.js.map → index-ecda65e0.js.map} +1 -1
  35. package/dist/cjs/index.cjs.js +1 -1
  36. package/dist/cjs/index.cjs.js.map +1 -1
  37. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  38. package/dist/cjs/kol-abbr.cjs.entry.js.map +1 -1
  39. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  40. package/dist/cjs/kol-accordion.cjs.entry.js.map +1 -1
  41. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  42. package/dist/cjs/kol-alert.cjs.entry.js.map +1 -1
  43. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  44. package/dist/cjs/kol-badge.cjs.entry.js.map +1 -1
  45. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  46. package/dist/cjs/kol-breadcrumb.cjs.entry.js.map +1 -1
  47. package/dist/cjs/kol-button-group.cjs.entry.js +1 -1
  48. package/dist/cjs/kol-button-group.cjs.entry.js.map +1 -1
  49. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  50. package/dist/cjs/kol-button-link.cjs.entry.js.map +1 -1
  51. package/dist/cjs/kol-button-wc_2.cjs.entry.js +1 -1
  52. package/dist/cjs/kol-button-wc_2.cjs.entry.js.map +1 -1
  53. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  54. package/dist/cjs/kol-button.cjs.entry.js.map +1 -1
  55. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  56. package/dist/cjs/kol-card.cjs.entry.js.map +1 -1
  57. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  58. package/dist/cjs/kol-details.cjs.entry.js.map +1 -1
  59. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  60. package/dist/cjs/kol-form.cjs.entry.js.map +1 -1
  61. package/dist/cjs/kol-heading-wc_2.cjs.entry.js +1 -1
  62. package/dist/cjs/kol-heading-wc_2.cjs.entry.js.map +1 -1
  63. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  64. package/dist/cjs/kol-heading.cjs.entry.js.map +1 -1
  65. package/dist/cjs/kol-icon-icofont.cjs.entry.js.map +1 -1
  66. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  67. package/dist/cjs/kol-icon.cjs.entry.js.map +1 -1
  68. package/dist/cjs/kol-image.cjs.entry.js +4 -0
  69. package/dist/cjs/kol-image.cjs.entry.js.map +1 -0
  70. package/dist/cjs/kol-indented-text.cjs.entry.js +1 -1
  71. package/dist/cjs/kol-indented-text.cjs.entry.js.map +1 -1
  72. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  73. package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
  74. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  75. package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
  76. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  77. package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
  78. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  79. package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
  80. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  81. package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
  82. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
  84. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
  86. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  87. package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
  88. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  89. package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
  90. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  91. package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
  92. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  93. package/dist/cjs/kol-kolibri.cjs.entry.js.map +1 -1
  94. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  95. package/dist/cjs/kol-link-button.cjs.entry.js.map +1 -1
  96. package/dist/cjs/kol-link-group.cjs.entry.js +1 -1
  97. package/dist/cjs/kol-link-group.cjs.entry.js.map +1 -1
  98. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  99. package/dist/cjs/kol-link-wc.cjs.entry.js.map +1 -1
  100. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-link.cjs.entry.js.map +1 -1
  102. package/dist/cjs/kol-logo.cjs.entry.js +1 -1
  103. package/dist/cjs/kol-logo.cjs.entry.js.map +1 -1
  104. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  105. package/dist/cjs/kol-modal.cjs.entry.js.map +1 -1
  106. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  107. package/dist/cjs/kol-nav.cjs.entry.js.map +1 -1
  108. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  109. package/dist/cjs/kol-pagination.cjs.entry.js.map +1 -1
  110. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  111. package/dist/cjs/kol-progress.cjs.entry.js.map +1 -1
  112. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  113. package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
  114. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  115. package/dist/cjs/kol-skip-nav.cjs.entry.js.map +1 -1
  116. package/dist/cjs/kol-span.cjs.entry.js +1 -1
  117. package/dist/cjs/kol-span.cjs.entry.js.map +1 -1
  118. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  119. package/dist/cjs/kol-spin.cjs.entry.js.map +1 -1
  120. package/dist/cjs/kol-symbol.cjs.entry.js +1 -1
  121. package/dist/cjs/kol-symbol.cjs.entry.js.map +1 -1
  122. package/dist/cjs/kol-table.cjs.entry.js +1 -1
  123. package/dist/cjs/kol-table.cjs.entry.js.map +1 -1
  124. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  125. package/dist/cjs/kol-tabs.cjs.entry.js.map +1 -1
  126. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  127. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  128. package/dist/cjs/kol-toast.cjs.entry.js +1 -1
  129. package/dist/cjs/kol-toast.cjs.entry.js.map +1 -1
  130. package/dist/cjs/kol-tooltip.cjs.entry.js +1 -1
  131. package/dist/cjs/kol-tooltip.cjs.entry.js.map +1 -1
  132. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  133. package/dist/cjs/kol-version.cjs.entry.js.map +1 -1
  134. package/dist/cjs/kolibri.cjs.js +1 -1
  135. package/dist/cjs/kolibri.cjs.js.map +1 -1
  136. package/dist/cjs/label-ce9fe285.js +4 -0
  137. package/dist/cjs/{label-3818e25c.js.map → label-ce9fe285.js.map} +1 -1
  138. package/dist/cjs/loader.cjs.js +1 -1
  139. package/dist/cjs/loader.cjs.js.map +1 -1
  140. package/dist/cjs/prop.validators-69d5cf89.js +4 -0
  141. package/dist/cjs/prop.validators-69d5cf89.js.map +1 -0
  142. package/dist/cjs/{tab-index-0ff2fc1d.js → tab-index-1d448ede.js} +1 -1
  143. package/dist/cjs/{tab-index-0ff2fc1d.js.map → tab-index-1d448ede.js.map} +1 -1
  144. package/dist/cjs/{validation-ccaf8393.js → validation-1e8663e2.js} +1 -1
  145. package/dist/cjs/{validation-ccaf8393.js.map → validation-1e8663e2.js.map} +1 -1
  146. package/dist/cjs/{validation-a59108e9.js → validation-2b3c81d9.js} +1 -1
  147. package/dist/cjs/{validation-a59108e9.js.map → validation-2b3c81d9.js.map} +1 -1
  148. package/dist/components/bund.js +1 -1
  149. package/dist/components/bund.js.map +1 -1
  150. package/dist/components/component.js +1 -1
  151. package/dist/components/component.js.map +1 -1
  152. package/dist/components/component10.js +1 -1
  153. package/dist/components/component10.js.map +1 -1
  154. package/dist/components/component11.js +1 -1
  155. package/dist/components/component11.js.map +1 -1
  156. package/dist/components/component12.js +1 -1
  157. package/dist/components/component12.js.map +1 -1
  158. package/dist/components/component13.js +1 -1
  159. package/dist/components/component13.js.map +1 -1
  160. package/dist/components/component2.js +1 -1
  161. package/dist/components/component2.js.map +1 -1
  162. package/dist/components/component3.js +1 -1
  163. package/dist/components/component3.js.map +1 -1
  164. package/dist/components/component4.js +1 -1
  165. package/dist/components/component4.js.map +1 -1
  166. package/dist/components/component5.js +1 -1
  167. package/dist/components/component5.js.map +1 -1
  168. package/dist/components/component6.js +1 -1
  169. package/dist/components/component6.js.map +1 -1
  170. package/dist/components/component8.js +1 -1
  171. package/dist/components/component8.js.map +1 -1
  172. package/dist/components/controller-icon.js +1 -1
  173. package/dist/components/controller.js +1 -1
  174. package/dist/components/controller2.js +1 -1
  175. package/dist/components/controller3.js +1 -1
  176. package/dist/components/controller4.js +1 -1
  177. package/dist/components/devtools.js +1 -1
  178. package/dist/components/i18n.js +1 -1
  179. package/dist/components/i18n.js.map +1 -1
  180. package/dist/components/index.js +1 -1
  181. package/dist/components/index.js.map +1 -1
  182. package/dist/components/kol-abbr.js +1 -1
  183. package/dist/components/kol-abbr.js.map +1 -1
  184. package/dist/components/kol-accordion.js +1 -1
  185. package/dist/components/kol-accordion.js.map +1 -1
  186. package/dist/components/kol-breadcrumb.js +1 -1
  187. package/dist/components/kol-breadcrumb.js.map +1 -1
  188. package/dist/components/kol-button-group.js +1 -1
  189. package/dist/components/kol-button-group.js.map +1 -1
  190. package/dist/components/kol-button-link.js +1 -1
  191. package/dist/components/kol-button-link.js.map +1 -1
  192. package/dist/components/kol-card.js +1 -1
  193. package/dist/components/kol-card.js.map +1 -1
  194. package/dist/components/kol-details.js +1 -1
  195. package/dist/components/kol-details.js.map +1 -1
  196. package/dist/components/kol-form.js +1 -1
  197. package/dist/components/kol-heading.js +1 -1
  198. package/dist/components/kol-heading.js.map +1 -1
  199. package/dist/components/kol-icon-icofont.js.map +1 -1
  200. package/dist/components/kol-image.d.ts +11 -0
  201. package/dist/components/kol-image.js +4 -0
  202. package/dist/components/kol-image.js.map +1 -0
  203. package/dist/components/kol-input-adapter-leanup.js +1 -1
  204. package/dist/components/kol-input-checkbox.js +1 -1
  205. package/dist/components/kol-input-checkbox.js.map +1 -1
  206. package/dist/components/kol-input-color.js +1 -1
  207. package/dist/components/kol-input-color.js.map +1 -1
  208. package/dist/components/kol-input-date.js +1 -1
  209. package/dist/components/kol-input-date.js.map +1 -1
  210. package/dist/components/kol-input-email.js +1 -1
  211. package/dist/components/kol-input-email.js.map +1 -1
  212. package/dist/components/kol-input-file.js +1 -1
  213. package/dist/components/kol-input-file.js.map +1 -1
  214. package/dist/components/kol-input-password.js +1 -1
  215. package/dist/components/kol-input-password.js.map +1 -1
  216. package/dist/components/kol-input-radio-group.js +1 -1
  217. package/dist/components/kol-input-range.js +1 -1
  218. package/dist/components/kol-input-range.js.map +1 -1
  219. package/dist/components/kol-input-text.js +1 -1
  220. package/dist/components/kol-input-text.js.map +1 -1
  221. package/dist/components/kol-kolibri.js +1 -1
  222. package/dist/components/kol-kolibri.js.map +1 -1
  223. package/dist/components/kol-link-button.js +1 -1
  224. package/dist/components/kol-link-button.js.map +1 -1
  225. package/dist/components/kol-link-group.js +1 -1
  226. package/dist/components/kol-link-group.js.map +1 -1
  227. package/dist/components/kol-logo.js +1 -1
  228. package/dist/components/kol-logo.js.map +1 -1
  229. package/dist/components/kol-modal.js +1 -1
  230. package/dist/components/kol-modal.js.map +1 -1
  231. package/dist/components/kol-nav.js +1 -1
  232. package/dist/components/kol-nav.js.map +1 -1
  233. package/dist/components/kol-progress.js +1 -1
  234. package/dist/components/kol-progress.js.map +1 -1
  235. package/dist/components/kol-skip-nav.js +1 -1
  236. package/dist/components/kol-skip-nav.js.map +1 -1
  237. package/dist/components/kol-span.js +1 -1
  238. package/dist/components/kol-span.js.map +1 -1
  239. package/dist/components/kol-spin.js +1 -1
  240. package/dist/components/kol-spin.js.map +1 -1
  241. package/dist/components/kol-symbol.js +1 -1
  242. package/dist/components/kol-symbol.js.map +1 -1
  243. package/dist/components/kol-table.js +1 -1
  244. package/dist/components/kol-table.js.map +1 -1
  245. package/dist/components/kol-tabs.js +1 -1
  246. package/dist/components/kol-tabs.js.map +1 -1
  247. package/dist/components/kol-textarea.js +1 -1
  248. package/dist/components/kol-textarea.js.map +1 -1
  249. package/dist/components/kol-toast.js +1 -1
  250. package/dist/components/kol-toast.js.map +1 -1
  251. package/dist/components/kol-version.js +1 -1
  252. package/dist/components/kol-version.js.map +1 -1
  253. package/dist/components/prop.validators.js +1 -1
  254. package/dist/components/prop.validators.js.map +1 -1
  255. package/dist/components/shadow.js +1 -1
  256. package/dist/components/shadow.js.map +1 -1
  257. package/dist/components/shadow2.js +1 -1
  258. package/dist/components/shadow2.js.map +1 -1
  259. package/dist/esm/app-globals-81f5e91d.js +4 -0
  260. package/dist/esm/app-globals-81f5e91d.js.map +1 -0
  261. package/dist/esm/bund-fe1f3789.js +4 -0
  262. package/dist/esm/bund-fe1f3789.js.map +1 -0
  263. package/dist/esm/{button-link-54acc67b.js → button-link-3d1888e3.js} +1 -1
  264. package/dist/esm/button-link-3d1888e3.js.map +1 -0
  265. package/dist/esm/{controller-08e3801e.js → controller-04bee517.js} +1 -1
  266. package/dist/esm/{controller-08e3801e.js.map → controller-04bee517.js.map} +1 -1
  267. package/dist/esm/{controller-9fc2799d.js → controller-32fdeebb.js} +1 -1
  268. package/dist/esm/{controller-9fc2799d.js.map → controller-32fdeebb.js.map} +1 -1
  269. package/dist/esm/{controller-31f6d372.js → controller-5bd06546.js} +1 -1
  270. package/dist/esm/{controller-31f6d372.js.map → controller-5bd06546.js.map} +1 -1
  271. package/dist/esm/{controller-af8a55fa.js → controller-944c3e03.js} +1 -1
  272. package/dist/esm/{controller-af8a55fa.js.map → controller-944c3e03.js.map} +1 -1
  273. package/dist/esm/{controller-d46544b6.js → controller-9926eaee.js} +1 -1
  274. package/dist/esm/{controller-d46544b6.js.map → controller-9926eaee.js.map} +1 -1
  275. package/dist/esm/{controller-6aa9b1d6.js → controller-ea28fcf8.js} +1 -1
  276. package/dist/esm/{controller-6aa9b1d6.js.map → controller-ea28fcf8.js.map} +1 -1
  277. package/dist/esm/{controller-icon-d1bf5df0.js → controller-icon-2a9f5c13.js} +1 -1
  278. package/dist/esm/{controller-icon-d1bf5df0.js.map → controller-icon-2a9f5c13.js.map} +1 -1
  279. package/dist/esm/{devtools-a2b3092f.js → devtools-640ace8d.js} +1 -1
  280. package/dist/esm/{devtools-a2b3092f.js.map → devtools-640ace8d.js.map} +1 -1
  281. package/dist/esm/i18n-8e14d822.js +4 -0
  282. package/dist/esm/i18n-8e14d822.js.map +1 -0
  283. package/dist/esm/icon-cab2d129.js +4 -0
  284. package/dist/esm/icon-cab2d129.js.map +1 -0
  285. package/dist/esm/index-4f2a12cc.js +4 -0
  286. package/dist/esm/{i18n-1305db0e.js.map → index-4f2a12cc.js.map} +1 -1
  287. package/dist/esm/index-50adf9a0.js.map +1 -1
  288. package/dist/esm/{index-599f5430.js → index-676dbf61.js} +1 -1
  289. package/dist/esm/index-676dbf61.js.map +1 -0
  290. package/dist/esm/index.js +1 -1
  291. package/dist/esm/index.js.map +1 -1
  292. package/dist/esm/kol-abbr.entry.js +1 -1
  293. package/dist/esm/kol-abbr.entry.js.map +1 -1
  294. package/dist/esm/kol-accordion.entry.js +1 -1
  295. package/dist/esm/kol-accordion.entry.js.map +1 -1
  296. package/dist/esm/kol-alert.entry.js +1 -1
  297. package/dist/esm/kol-alert.entry.js.map +1 -1
  298. package/dist/esm/kol-badge.entry.js +1 -1
  299. package/dist/esm/kol-badge.entry.js.map +1 -1
  300. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  301. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  302. package/dist/esm/kol-button-group.entry.js +1 -1
  303. package/dist/esm/kol-button-group.entry.js.map +1 -1
  304. package/dist/esm/kol-button-link.entry.js +1 -1
  305. package/dist/esm/kol-button-link.entry.js.map +1 -1
  306. package/dist/esm/kol-button-wc_2.entry.js +1 -1
  307. package/dist/esm/kol-button-wc_2.entry.js.map +1 -1
  308. package/dist/esm/kol-button.entry.js +1 -1
  309. package/dist/esm/kol-button.entry.js.map +1 -1
  310. package/dist/esm/kol-card.entry.js +1 -1
  311. package/dist/esm/kol-card.entry.js.map +1 -1
  312. package/dist/esm/kol-details.entry.js +1 -1
  313. package/dist/esm/kol-details.entry.js.map +1 -1
  314. package/dist/esm/kol-form.entry.js +1 -1
  315. package/dist/esm/kol-form.entry.js.map +1 -1
  316. package/dist/esm/kol-heading-wc_2.entry.js +1 -1
  317. package/dist/esm/kol-heading-wc_2.entry.js.map +1 -1
  318. package/dist/esm/kol-heading.entry.js +1 -1
  319. package/dist/esm/kol-heading.entry.js.map +1 -1
  320. package/dist/esm/kol-icon-icofont.entry.js.map +1 -1
  321. package/dist/esm/kol-icon.entry.js +1 -1
  322. package/dist/esm/kol-icon.entry.js.map +1 -1
  323. package/dist/esm/kol-image.entry.js +4 -0
  324. package/dist/esm/kol-image.entry.js.map +1 -0
  325. package/dist/esm/kol-indented-text.entry.js +1 -1
  326. package/dist/esm/kol-indented-text.entry.js.map +1 -1
  327. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  328. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  329. package/dist/esm/kol-input-color.entry.js +1 -1
  330. package/dist/esm/kol-input-color.entry.js.map +1 -1
  331. package/dist/esm/kol-input-date.entry.js +1 -1
  332. package/dist/esm/kol-input-date.entry.js.map +1 -1
  333. package/dist/esm/kol-input-email.entry.js +1 -1
  334. package/dist/esm/kol-input-email.entry.js.map +1 -1
  335. package/dist/esm/kol-input-file.entry.js +1 -1
  336. package/dist/esm/kol-input-file.entry.js.map +1 -1
  337. package/dist/esm/kol-input-number.entry.js +1 -1
  338. package/dist/esm/kol-input-number.entry.js.map +1 -1
  339. package/dist/esm/kol-input-password.entry.js +1 -1
  340. package/dist/esm/kol-input-password.entry.js.map +1 -1
  341. package/dist/esm/kol-input-radio.entry.js +1 -1
  342. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  343. package/dist/esm/kol-input-range.entry.js +1 -1
  344. package/dist/esm/kol-input-range.entry.js.map +1 -1
  345. package/dist/esm/kol-input-text.entry.js +1 -1
  346. package/dist/esm/kol-input-text.entry.js.map +1 -1
  347. package/dist/esm/kol-kolibri.entry.js +1 -1
  348. package/dist/esm/kol-kolibri.entry.js.map +1 -1
  349. package/dist/esm/kol-link-button.entry.js +1 -1
  350. package/dist/esm/kol-link-button.entry.js.map +1 -1
  351. package/dist/esm/kol-link-group.entry.js +1 -1
  352. package/dist/esm/kol-link-group.entry.js.map +1 -1
  353. package/dist/esm/kol-link-wc.entry.js +1 -1
  354. package/dist/esm/kol-link-wc.entry.js.map +1 -1
  355. package/dist/esm/kol-link.entry.js +1 -1
  356. package/dist/esm/kol-link.entry.js.map +1 -1
  357. package/dist/esm/kol-logo.entry.js +1 -1
  358. package/dist/esm/kol-logo.entry.js.map +1 -1
  359. package/dist/esm/kol-modal.entry.js +1 -1
  360. package/dist/esm/kol-modal.entry.js.map +1 -1
  361. package/dist/esm/kol-nav.entry.js +1 -1
  362. package/dist/esm/kol-nav.entry.js.map +1 -1
  363. package/dist/esm/kol-pagination.entry.js +1 -1
  364. package/dist/esm/kol-pagination.entry.js.map +1 -1
  365. package/dist/esm/kol-progress.entry.js +1 -1
  366. package/dist/esm/kol-progress.entry.js.map +1 -1
  367. package/dist/esm/kol-select.entry.js +1 -1
  368. package/dist/esm/kol-select.entry.js.map +1 -1
  369. package/dist/esm/kol-skip-nav.entry.js +1 -1
  370. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  371. package/dist/esm/kol-span.entry.js +1 -1
  372. package/dist/esm/kol-span.entry.js.map +1 -1
  373. package/dist/esm/kol-spin.entry.js +1 -1
  374. package/dist/esm/kol-spin.entry.js.map +1 -1
  375. package/dist/esm/kol-symbol.entry.js +1 -1
  376. package/dist/esm/kol-symbol.entry.js.map +1 -1
  377. package/dist/esm/kol-table.entry.js +1 -1
  378. package/dist/esm/kol-table.entry.js.map +1 -1
  379. package/dist/esm/kol-tabs.entry.js +1 -1
  380. package/dist/esm/kol-tabs.entry.js.map +1 -1
  381. package/dist/esm/kol-textarea.entry.js +1 -1
  382. package/dist/esm/kol-textarea.entry.js.map +1 -1
  383. package/dist/esm/kol-toast.entry.js +1 -1
  384. package/dist/esm/kol-toast.entry.js.map +1 -1
  385. package/dist/esm/kol-tooltip.entry.js +1 -1
  386. package/dist/esm/kol-tooltip.entry.js.map +1 -1
  387. package/dist/esm/kol-version.entry.js +1 -1
  388. package/dist/esm/kol-version.entry.js.map +1 -1
  389. package/dist/esm/kolibri.js +1 -1
  390. package/dist/esm/kolibri.js.map +1 -1
  391. package/dist/esm/label-ea9f2a1a.js +4 -0
  392. package/dist/esm/{label-d850cbb4.js.map → label-ea9f2a1a.js.map} +1 -1
  393. package/dist/esm/loader.js +1 -1
  394. package/dist/esm/loader.js.map +1 -1
  395. package/dist/esm/prop.validators-769a843a.js +4 -0
  396. package/dist/esm/prop.validators-769a843a.js.map +1 -0
  397. package/dist/esm/{tab-index-2ca912cf.js → tab-index-22c62334.js} +1 -1
  398. package/dist/esm/{tab-index-2ca912cf.js.map → tab-index-22c62334.js.map} +1 -1
  399. package/dist/esm/validation-d9821b54.js +4 -0
  400. package/dist/esm/{validation-af1d04b2.js.map → validation-d9821b54.js.map} +1 -1
  401. package/dist/esm/{validation-8149b359.js → validation-f13f1eed.js} +1 -1
  402. package/dist/esm/{validation-8149b359.js.map → validation-f13f1eed.js.map} +1 -1
  403. package/dist/kolibri/app-globals-81f5e91d.js +4 -0
  404. package/dist/kolibri/app-globals-81f5e91d.js.map +1 -0
  405. package/dist/kolibri/assets/images/abgrenzung.jpg +0 -0
  406. package/dist/kolibri/bund-fe1f3789.js +4 -0
  407. package/dist/kolibri/bund-fe1f3789.js.map +1 -0
  408. package/dist/kolibri/button-link-3d1888e3.js +4 -0
  409. package/dist/kolibri/button-link-3d1888e3.js.map +1 -0
  410. package/dist/kolibri/{controller-08e3801e.js → controller-04bee517.js} +1 -1
  411. package/dist/kolibri/{controller-9fc2799d.js → controller-32fdeebb.js} +1 -1
  412. package/dist/kolibri/controller-5bd06546.js +4 -0
  413. package/dist/kolibri/{controller-af8a55fa.js → controller-944c3e03.js} +1 -1
  414. package/dist/kolibri/{controller-d46544b6.js → controller-9926eaee.js} +1 -1
  415. package/dist/kolibri/{controller-6aa9b1d6.js → controller-ea28fcf8.js} +1 -1
  416. package/dist/kolibri/{controller-icon-d1bf5df0.js → controller-icon-2a9f5c13.js} +1 -1
  417. package/dist/kolibri/{devtools-a2b3092f.js → devtools-640ace8d.js} +1 -1
  418. package/dist/kolibri/i18n-8e14d822.js +4 -0
  419. package/dist/kolibri/i18n-8e14d822.js.map +1 -0
  420. package/dist/kolibri/icon-cab2d129.js +4 -0
  421. package/dist/kolibri/icon-cab2d129.js.map +1 -0
  422. package/dist/kolibri/index-4f2a12cc.js +4 -0
  423. package/dist/kolibri/index-4f2a12cc.js.map +1 -0
  424. package/dist/kolibri/index-50adf9a0.js.map +1 -1
  425. package/dist/kolibri/index-676dbf61.js +4 -0
  426. package/dist/kolibri/index-676dbf61.js.map +1 -0
  427. package/dist/kolibri/index.esm.js +1 -1
  428. package/dist/kolibri/index.esm.js.map +1 -1
  429. package/dist/kolibri/kol-abbr.entry.js +1 -1
  430. package/dist/kolibri/kol-abbr.entry.js.map +1 -1
  431. package/dist/kolibri/kol-accordion.entry.js +1 -1
  432. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  433. package/dist/kolibri/kol-alert.entry.js +1 -1
  434. package/dist/kolibri/kol-alert.entry.js.map +1 -1
  435. package/dist/kolibri/kol-badge.entry.js +1 -1
  436. package/dist/kolibri/kol-badge.entry.js.map +1 -1
  437. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  438. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  439. package/dist/kolibri/kol-button-group.entry.js +1 -1
  440. package/dist/kolibri/kol-button-group.entry.js.map +1 -1
  441. package/dist/kolibri/kol-button-link.entry.js +1 -1
  442. package/dist/kolibri/kol-button-link.entry.js.map +1 -1
  443. package/dist/kolibri/kol-button-wc_2.entry.js +1 -1
  444. package/dist/kolibri/kol-button-wc_2.entry.js.map +1 -1
  445. package/dist/kolibri/kol-button.entry.js +1 -1
  446. package/dist/kolibri/kol-button.entry.js.map +1 -1
  447. package/dist/kolibri/kol-card.entry.js +1 -1
  448. package/dist/kolibri/kol-card.entry.js.map +1 -1
  449. package/dist/kolibri/kol-details.entry.js +1 -1
  450. package/dist/kolibri/kol-details.entry.js.map +1 -1
  451. package/dist/kolibri/kol-form.entry.js +1 -1
  452. package/dist/kolibri/kol-form.entry.js.map +1 -1
  453. package/dist/kolibri/kol-heading-wc_2.entry.js +1 -1
  454. package/dist/kolibri/kol-heading-wc_2.entry.js.map +1 -1
  455. package/dist/kolibri/kol-heading.entry.js +1 -1
  456. package/dist/kolibri/kol-heading.entry.js.map +1 -1
  457. package/dist/kolibri/kol-icon-icofont.entry.js.map +1 -1
  458. package/dist/kolibri/kol-icon.entry.js +1 -1
  459. package/dist/kolibri/kol-icon.entry.js.map +1 -1
  460. package/dist/kolibri/kol-image.entry.js +4 -0
  461. package/dist/kolibri/kol-image.entry.js.map +1 -0
  462. package/dist/kolibri/kol-indented-text.entry.js +1 -1
  463. package/dist/kolibri/kol-indented-text.entry.js.map +1 -1
  464. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  465. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  466. package/dist/kolibri/kol-input-color.entry.js +1 -1
  467. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  468. package/dist/kolibri/kol-input-date.entry.js +1 -1
  469. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  470. package/dist/kolibri/kol-input-email.entry.js +1 -1
  471. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  472. package/dist/kolibri/kol-input-file.entry.js +1 -1
  473. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  474. package/dist/kolibri/kol-input-number.entry.js +1 -1
  475. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  476. package/dist/kolibri/kol-input-password.entry.js +1 -1
  477. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  478. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  479. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  480. package/dist/kolibri/kol-input-range.entry.js +1 -1
  481. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  482. package/dist/kolibri/kol-input-text.entry.js +1 -1
  483. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  484. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  485. package/dist/kolibri/kol-kolibri.entry.js.map +1 -1
  486. package/dist/kolibri/kol-link-button.entry.js +1 -1
  487. package/dist/kolibri/kol-link-button.entry.js.map +1 -1
  488. package/dist/kolibri/kol-link-group.entry.js +1 -1
  489. package/dist/kolibri/kol-link-group.entry.js.map +1 -1
  490. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  491. package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
  492. package/dist/kolibri/kol-link.entry.js +1 -1
  493. package/dist/kolibri/kol-link.entry.js.map +1 -1
  494. package/dist/kolibri/kol-logo.entry.js +1 -1
  495. package/dist/kolibri/kol-logo.entry.js.map +1 -1
  496. package/dist/kolibri/kol-modal.entry.js +1 -1
  497. package/dist/kolibri/kol-modal.entry.js.map +1 -1
  498. package/dist/kolibri/kol-nav.entry.js +1 -1
  499. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  500. package/dist/kolibri/kol-pagination.entry.js +1 -1
  501. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  502. package/dist/kolibri/kol-progress.entry.js +1 -1
  503. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  504. package/dist/kolibri/kol-select.entry.js +1 -1
  505. package/dist/kolibri/kol-select.entry.js.map +1 -1
  506. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  507. package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
  508. package/dist/kolibri/kol-span.entry.js +1 -1
  509. package/dist/kolibri/kol-span.entry.js.map +1 -1
  510. package/dist/kolibri/kol-spin.entry.js +1 -1
  511. package/dist/kolibri/kol-spin.entry.js.map +1 -1
  512. package/dist/kolibri/kol-symbol.entry.js +1 -1
  513. package/dist/kolibri/kol-symbol.entry.js.map +1 -1
  514. package/dist/kolibri/kol-table.entry.js +1 -1
  515. package/dist/kolibri/kol-table.entry.js.map +1 -1
  516. package/dist/kolibri/kol-tabs.entry.js +1 -1
  517. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  518. package/dist/kolibri/kol-textarea.entry.js +1 -1
  519. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  520. package/dist/kolibri/kol-toast.entry.js +1 -1
  521. package/dist/kolibri/kol-toast.entry.js.map +1 -1
  522. package/dist/kolibri/kol-tooltip.entry.js +1 -1
  523. package/dist/kolibri/kol-tooltip.entry.js.map +1 -1
  524. package/dist/kolibri/kol-version.entry.js +1 -1
  525. package/dist/kolibri/kol-version.entry.js.map +1 -1
  526. package/dist/kolibri/kolibri.esm.js +1 -1
  527. package/dist/kolibri/kolibri.esm.js.map +1 -1
  528. package/dist/kolibri/label-ea9f2a1a.js +4 -0
  529. package/dist/kolibri/label-ea9f2a1a.js.map +1 -0
  530. package/dist/kolibri/prop.validators-769a843a.js +4 -0
  531. package/dist/kolibri/prop.validators-769a843a.js.map +1 -0
  532. package/dist/kolibri/tab-index-22c62334.js +4 -0
  533. package/dist/kolibri/{tab-index-2ca912cf.js.map → tab-index-22c62334.js.map} +1 -1
  534. package/dist/kolibri/{validation-af1d04b2.js → validation-d9821b54.js} +1 -1
  535. package/dist/kolibri/validation-f13f1eed.js +4 -0
  536. package/dist/types/components/accordion/component.d.ts +0 -3
  537. package/dist/types/components/button/test/html.mock.d.ts +7 -0
  538. package/dist/types/components/heading/component.d.ts +15 -9
  539. package/dist/types/components/heading/shadow.d.ts +2 -2
  540. package/dist/types/components/icon-icofont/component.d.ts +0 -1
  541. package/dist/types/components/image/shadow.d.ts +18 -0
  542. package/dist/types/components/image/types.d.ts +21 -0
  543. package/dist/types/components/link-group/component.d.ts +0 -1
  544. package/dist/types/components/pagination/component.d.ts +4 -4
  545. package/dist/types/components.d.ts +67 -12
  546. package/dist/types/core/i18n.d.ts +18 -0
  547. package/dist/types/core/index.d.ts +4 -0
  548. package/dist/types/enums/bund.d.ts +2 -2
  549. package/dist/types/global/script.d.ts +1 -1
  550. package/dist/types/index.d.ts +1 -1
  551. package/dist/types/schema/i18n-keys.d.ts +29 -0
  552. package/dist/types/schema/index.d.ts +2 -0
  553. package/dist/types/schema/tag-names.d.ts +50 -0
  554. package/dist/types/types/button-link.d.ts +14 -12
  555. package/dist/types/utils/prop.validators.d.ts +1 -1
  556. package/dist/types/utils/validators/loading.d.ts +3 -0
  557. package/doc/accordion.md +8 -2
  558. package/doc/badge.md +1 -1
  559. package/doc/button-link.md +1 -1
  560. package/doc/button.md +2 -2
  561. package/doc/heading.md +5 -5
  562. package/doc/icon-font-awesome.md +1 -1
  563. package/doc/icon-icofont.md +1 -1
  564. package/doc/icon.md +0 -2
  565. package/doc/image.md +60 -0
  566. package/doc/input-color.md +1 -1
  567. package/doc/input-date.md +1 -1
  568. package/doc/input-email.md +1 -1
  569. package/doc/input-file.md +1 -1
  570. package/doc/input-number.md +1 -1
  571. package/doc/input-password.md +1 -1
  572. package/doc/input-text.md +1 -1
  573. package/doc/link.md +2 -2
  574. package/doc/logo.md +1 -1
  575. package/jest-test-results.json +1 -1
  576. package/package.json +2 -2
  577. package/vscode-custom-data.json +52 -15
  578. package/dist/cjs/app-globals-c4419a36.js +0 -4
  579. package/dist/cjs/app-globals-c4419a36.js.map +0 -1
  580. package/dist/cjs/bund-5ad49011.js +0 -4
  581. package/dist/cjs/bund-5ad49011.js.map +0 -1
  582. package/dist/cjs/button-link-06ab7d7c.js +0 -4
  583. package/dist/cjs/button-link-06ab7d7c.js.map +0 -1
  584. package/dist/cjs/i18n-ca8f5c94.js +0 -4
  585. package/dist/cjs/icon-d0e921c9.js +0 -4
  586. package/dist/cjs/icon-d0e921c9.js.map +0 -1
  587. package/dist/cjs/index-cc5674d0.js.map +0 -1
  588. package/dist/cjs/label-3818e25c.js +0 -4
  589. package/dist/cjs/prop.validators-7154e3f9.js +0 -4
  590. package/dist/cjs/prop.validators-7154e3f9.js.map +0 -1
  591. package/dist/esm/app-globals-addf78f2.js +0 -4
  592. package/dist/esm/app-globals-addf78f2.js.map +0 -1
  593. package/dist/esm/bund-7a6ffb62.js +0 -4
  594. package/dist/esm/bund-7a6ffb62.js.map +0 -1
  595. package/dist/esm/button-link-54acc67b.js.map +0 -1
  596. package/dist/esm/i18n-1305db0e.js +0 -4
  597. package/dist/esm/icon-f44df3c5.js +0 -4
  598. package/dist/esm/icon-f44df3c5.js.map +0 -1
  599. package/dist/esm/index-599f5430.js.map +0 -1
  600. package/dist/esm/label-d850cbb4.js +0 -4
  601. package/dist/esm/prop.validators-15724e89.js +0 -4
  602. package/dist/esm/prop.validators-15724e89.js.map +0 -1
  603. package/dist/esm/validation-af1d04b2.js +0 -4
  604. package/dist/kolibri/app-globals-addf78f2.js +0 -4
  605. package/dist/kolibri/app-globals-addf78f2.js.map +0 -1
  606. package/dist/kolibri/bund-7a6ffb62.js +0 -4
  607. package/dist/kolibri/bund-7a6ffb62.js.map +0 -1
  608. package/dist/kolibri/button-link-54acc67b.js +0 -4
  609. package/dist/kolibri/button-link-54acc67b.js.map +0 -1
  610. package/dist/kolibri/controller-31f6d372.js +0 -4
  611. package/dist/kolibri/i18n-1305db0e.js +0 -4
  612. package/dist/kolibri/i18n-1305db0e.js.map +0 -1
  613. package/dist/kolibri/icon-f44df3c5.js +0 -4
  614. package/dist/kolibri/icon-f44df3c5.js.map +0 -1
  615. package/dist/kolibri/index-599f5430.js +0 -4
  616. package/dist/kolibri/index-599f5430.js.map +0 -1
  617. package/dist/kolibri/label-d850cbb4.js +0 -4
  618. package/dist/kolibri/label-d850cbb4.js.map +0 -1
  619. package/dist/kolibri/prop.validators-15724e89.js +0 -4
  620. package/dist/kolibri/prop.validators-15724e89.js.map +0 -1
  621. package/dist/kolibri/tab-index-2ca912cf.js +0 -4
  622. package/dist/kolibri/validation-8149b359.js +0 -4
  623. package/dist/types/components/icon-icofont/test/html.mock.d.ts +0 -2
  624. package/dist/types/components/link-group/test/html.mock.d.ts +0 -2
  625. /package/dist/kolibri/{controller-08e3801e.js.map → controller-04bee517.js.map} +0 -0
  626. /package/dist/kolibri/{controller-9fc2799d.js.map → controller-32fdeebb.js.map} +0 -0
  627. /package/dist/kolibri/{controller-31f6d372.js.map → controller-5bd06546.js.map} +0 -0
  628. /package/dist/kolibri/{controller-af8a55fa.js.map → controller-944c3e03.js.map} +0 -0
  629. /package/dist/kolibri/{controller-d46544b6.js.map → controller-9926eaee.js.map} +0 -0
  630. /package/dist/kolibri/{controller-6aa9b1d6.js.map → controller-ea28fcf8.js.map} +0 -0
  631. /package/dist/kolibri/{controller-icon-d1bf5df0.js.map → controller-icon-2a9f5c13.js.map} +0 -0
  632. /package/dist/kolibri/{devtools-a2b3092f.js.map → devtools-640ace8d.js.map} +0 -0
  633. /package/dist/kolibri/{validation-af1d04b2.js.map → validation-d9821b54.js.map} +0 -0
  634. /package/dist/kolibri/{validation-8149b359.js.map → validation-f13f1eed.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"names":["validateInputSelectList","option","label","length","disabled","trim","hasEnoughReadableChars","containsOnlyNumbers","a11yHint","Array","isArray","options","find","item","undefined","SelectController","InputIconController","constructor","component","name","host","super","this","keyOptionMap","Map","getOptionByKey","key","get","isValueInOptions","value","filterValuesInOptions","values","filter","beforePatchListValue","_value","nextState","list","has","state","_list","clear","fillKeyOptionMap","selected","_multiple","set","onStateChange","validateHeight","watchString","validateList","watchJsonArrayString","hooks","beforePatch","validateMultiple","watchBoolean","validateRequired","validateSize","watchNumber","min","validateValue","setFormAssociatedValue","componentWillLoad","onChange","timeout","setTimeout","clearTimeout","STATE_CHANGE_EVENT","_height","_required","_size","defaultStyleCss","isSelected","valueList","optionValue","includes","KolSelect","renderOptgroup","optgroup","preKey","h","_a","map","index","render","ariaDiscribedBy","getRenderStates","Host","_disabled","_error","_hideLabel","_hint","_icon","_id","_touched","slot","Object","assign","ref","catchRef","part","title","accessKey","_accessKey","join","autoCapitalize","autoCorrect","id","multiple","_name","required","size","spellcheck","style","height","onClick","controller","onFacade","onBlur","onFocus","hostRef","propergateFocus","event","from","_b","_on","validateAccessKey","validateAlert","validateDisabled","validateError","validateHideLabel","validateHint","validateIcon","validateId","validateName","validateOn","validateTabIndex","validateTouched","_alert"],"sources":["./src/utils/validators/list.ts","./src/components/select/controller.ts","./src/components/select/style.css?tag=kol-select&mode=default&encapsulation=shadow","./src/components/select/component.tsx"],"sourcesContent":["import { Optgroup, SelectOption } from '../../types/input/types';\nimport { a11yHint } from '../a11y.tipps';\nimport { containsOnlyNumbers, hasEnoughReadableChars } from './label';\n\nexport const validateInputSelectList = <T>(option: SelectOption<T>): boolean => {\n\tif (typeof option === 'object' && option !== null) {\n\t\tif (typeof option.label === 'string' && option.label.length > 0) {\n\t\t\toption.disabled = option.disabled === true;\n\t\t\toption.label = `${option.label}`.trim();\n\t\t\tif (hasEnoughReadableChars(option.label, 3) === false && containsOnlyNumbers(option.label) === false) {\n\t\t\t\ta11yHint(\n\t\t\t\t\t`Ein abweichendes Aria-Label (${option.label}) ist nicht barrierefrei. Ein abweichendes Aria-Label sollte aus mindestens drei lesbaren Zeichen bestehen.`\n\t\t\t\t);\n\t\t\t}\n\t\t\tif (Array.isArray((option as Optgroup<T>).options)) {\n\t\t\t\treturn (\n\t\t\t\t\t(option as Optgroup<T>).options.find((item) => {\n\t\t\t\t\t\treturn validateInputSelectList(item) === false;\n\t\t\t\t\t}) === undefined\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn true;\n\t\t} else if (typeof option.label === 'number') {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n};\n","import { Generic } from '@a11y-ui/core';\nimport { Stringified } from '../../types/common';\nimport { Optgroup, Option, SelectOption } from '../../types/input/types';\nimport { W3CInputValue } from '../../types/w3c';\nimport { watchBoolean, watchJsonArrayString, watchNumber, watchString } from '../../utils/prop.validators';\nimport { STATE_CHANGE_EVENT } from '../../utils/validator';\nimport { InputIconController } from '../@deprecated/input/controller-icon';\nimport { fillKeyOptionMap } from '../input-radio/controller';\nimport { Props, Watches } from './types';\nimport { validateInputSelectList } from '../../utils/validators/list';\n\nexport class SelectController extends InputIconController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props;\n\tprivate onStateChange!: () => void;\n\tprivate readonly keyOptionMap = new Map<string, Option<W3CInputValue>>();\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 getOptionByKey = (key: string): Option<W3CInputValue> | undefined => this.keyOptionMap.get(key);\n\n\tprivate readonly isValueInOptions = (value: string, options: SelectOption<W3CInputValue>[]): boolean => {\n\t\treturn (\n\t\t\toptions.find((option) =>\n\t\t\t\ttypeof (option as Option<W3CInputValue>).value === 'string'\n\t\t\t\t\t? (option as Option<W3CInputValue>).value === value\n\t\t\t\t\t: Array.isArray((option as Optgroup<string>).options)\n\t\t\t\t\t? this.isValueInOptions(value, (option as Optgroup<string>).options)\n\t\t\t\t\t: false\n\t\t\t) !== undefined\n\t\t);\n\t};\n\n\tprivate readonly filterValuesInOptions = (values: string[], options: SelectOption<W3CInputValue>[]): string[] => {\n\t\treturn values.filter((value) => this.isValueInOptions(value, options) !== undefined);\n\t};\n\n\tprivate readonly beforePatchListValue = (_value: unknown, nextState: Map<string, unknown>): void => {\n\t\tconst list = nextState.has('_list') ? nextState.get('_list') : this.component.state._list;\n\t\tif (Array.isArray(list) && list.length > 0) {\n\t\t\tthis.keyOptionMap.clear();\n\t\t\tfillKeyOptionMap(this.keyOptionMap, list as SelectOption<W3CInputValue>[]);\n\t\t\tconst value = nextState.has('_value') ? nextState.get('_value') : this.component.state._value;\n\t\t\tconst selected = this.filterValuesInOptions(Array.isArray(value) && value.length > 0 ? (value as string[]) : [], list as SelectOption<W3CInputValue>[]);\n\t\t\tif (this.component._multiple === false && selected.length === 0) {\n\t\t\t\tnextState.set('_value', [\n\t\t\t\t\t(\n\t\t\t\t\t\tlist[0] as {\n\t\t\t\t\t\t\tvalue: string;\n\t\t\t\t\t\t}\n\t\t\t\t\t).value,\n\t\t\t\t]);\n\t\t\t\tthis.onStateChange();\n\t\t\t} else if (Array.isArray(value) && selected.length < value.length) {\n\t\t\t\tnextState.set('_value', selected);\n\t\t\t\tthis.onStateChange();\n\t\t\t}\n\t\t}\n\t};\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t * @deprecated Use _size instead.\n\t */\n\tpublic validateHeight(value?: string): void {\n\t\twatchString(this.component, '_height', value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateList<T>(value?: SelectOption<T>[] | string): void {\n\t\twatchJsonArrayString(this.component, '_list', validateInputSelectList, value, undefined, {\n\t\t\thooks: {\n\t\t\t\tbeforePatch: this.beforePatchListValue,\n\t\t\t},\n\t\t});\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateMultiple(value?: boolean): void {\n\t\twatchBoolean(this.component, '_multiple', value, {\n\t\t\thooks: {\n\t\t\t\tbeforePatch: this.beforePatchListValue,\n\t\t\t},\n\t\t});\n\t\t// if (value === true) {\n\t\t// \tdevHint(\n\t\t// \t\t'[KolSelect] Aktuell wird die Mehrfachauswahl noch nicht unterstützt. Wir sind dran die Mehrfachauswahl funktionsfähig zu implementieren, da der Browser-Standard hier ein paar Lücken hat.'\n\t\t// \t);\n\t\t// \tdevHint('[KolSelect] Bei der Mehrfachauswahl sollte zusätzlich auch die Listenlänge (size) gesetzt werden.');\n\t\t// }\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateRequired(value?: boolean): void {\n\t\twatchBoolean(this.component, '_required', value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateSize(value?: number): void {\n\t\twatchNumber(this.component, '_size', value, {\n\t\t\tmin: 1,\n\t\t});\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateValue(value?: Stringified<W3CInputValue[]>): void {\n\t\twatchJsonArrayString(this.component, '_value', () => true, value, undefined, {\n\t\t\thooks: {\n\t\t\t\tbeforePatch: this.beforePatchListValue,\n\t\t\t},\n\t\t});\n\t\tthis.setFormAssociatedValue(this.component._value as string);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (componentWillLoad)\n\t */\n\tpublic componentWillLoad(onChange?: (event: Event) => void): void {\n\t\tsuper.componentWillLoad();\n\n\t\tthis.onStateChange = () => {\n\t\t\tif (typeof onChange === 'function') {\n\t\t\t\tconst timeout = setTimeout(() => {\n\t\t\t\t\tclearTimeout(timeout);\n\t\t\t\t\tonChange(STATE_CHANGE_EVENT);\n\t\t\t\t});\n\t\t\t}\n\t\t};\n\n\t\tthis.validateHeight(this.component._height);\n\t\tthis.validateList(this.component._list);\n\t\tthis.validateMultiple(this.component._multiple);\n\t\tthis.validateRequired(this.component._required);\n\t\tthis.validateSize(this.component._size);\n\t\tthis.validateValue(this.component._value);\n\t}\n}\n","@import '../input-line.css';\n","import { Component, Element, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\nimport { Stringified } from '../../types/common';\n\nimport { InputTypeOnDefault, Optgroup, Option, SelectOption } from '../../types/input/types';\nimport { W3CInputValue } from '../../types/w3c';\nimport { propergateFocus } from '../../utils/reuse';\nimport { KoliBriHorizontalIcon } from '../../types/icon';\nimport { getRenderStates } from '../input/controller';\nimport { SelectController } from './controller';\nimport { ComponentApi, States } from './types';\n\nconst isSelected = (valueList: unknown[] | null, optionValue: unknown): boolean => {\n\treturn Array.isArray(valueList) && valueList.includes(optionValue);\n};\n\n/**\n * @part select - Ermöglicht das Stylen des select-Knotens.\n */\n@Component({\n\ttag: 'kol-select',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolSelect implements ComponentApi {\n\t@Element() private readonly host?: HTMLKolSelectElement;\n\tprivate ref?: HTMLSelectElement;\n\n\tprivate readonly catchRef = (ref?: HTMLSelectElement) => {\n\t\tthis.ref = ref;\n\t\tpropergateFocus(this.host, this.ref);\n\t};\n\n\tprivate renderOptgroup(optgroup: Optgroup<string>, preKey: string): JSX.Element {\n\t\treturn (\n\t\t\t<optgroup disabled={optgroup.disabled === true} label={optgroup.label}>\n\t\t\t\t{optgroup.options?.map((option: SelectOption<W3CInputValue>, index: number) => {\n\t\t\t\t\tconst key = `${preKey}-${index}`;\n\t\t\t\t\tif (Array.isArray((option as Optgroup<string>).options)) {\n\t\t\t\t\t\treturn this.renderOptgroup(option as Optgroup<string>, key);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<option\n\t\t\t\t\t\t\t\tdisabled={option.disabled === true}\n\t\t\t\t\t\t\t\tkey={key}\n\t\t\t\t\t\t\t\t// label={option.label}\n\t\t\t\t\t\t\t\tselected={isSelected(this.state._value, (option as Option<W3CInputValue>).value)}\n\t\t\t\t\t\t\t\tvalue={key}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{option.label}\n\t\t\t\t\t\t\t</option>\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t})}\n\t\t\t</optgroup>\n\t\t);\n\t}\n\n\tpublic render(): JSX.Element {\n\t\tconst { ariaDiscribedBy } = getRenderStates(this.state);\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<kol-input\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_icon={this.state._icon}\n\t\t\t\t\t_id={this.state._id}\n\t\t\t\t\t_required={this.state._required}\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<slot />\n\t\t\t\t\t</span>\n\t\t\t\t\t<select\n\t\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\t\tpart=\"select\"\n\t\t\t\t\t\ttitle=\"\"\n\t\t\t\t\t\taccessKey={this.state._accessKey}\n\t\t\t\t\t\taria-describedby={ariaDiscribedBy.length > 0 ? ariaDiscribedBy.join(' ') : undefined}\n\t\t\t\t\t\taria-labelledby={`${this.state._id}-label`}\n\t\t\t\t\t\tautoCapitalize=\"off\"\n\t\t\t\t\t\tautoCorrect=\"off\"\n\t\t\t\t\t\tdisabled={this.state._disabled}\n\t\t\t\t\t\tid={this.state._id}\n\t\t\t\t\t\tmultiple={this.state._multiple}\n\t\t\t\t\t\tname={this.state._name}\n\t\t\t\t\t\trequired={this.state._required}\n\t\t\t\t\t\tsize={this.state._size}\n\t\t\t\t\t\tslot=\"input\"\n\t\t\t\t\t\tspellcheck=\"false\"\n\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\theight: this.state._height,\n\t\t\t\t\t\t}}\n\t\t\t\t\t\t{...{\n\t\t\t\t\t\t\tonClick: this.controller.onFacade.onClick,\n\t\t\t\t\t\t\tonBlur: this.controller.onFacade.onBlur,\n\t\t\t\t\t\t\tonFocus: this.controller.onFacade.onFocus,\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tonChange={this.onChange}\n\t\t\t\t\t>\n\t\t\t\t\t\t{this.state._list.map((option, index) => {\n\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t * Damit der Value einer Option ein beliebigen Typ haben kann\n\t\t\t\t\t\t\t * muss man auf HTML-Ebene den Value auf einen String-Wert\n\t\t\t\t\t\t\t * mappen. Das tun wir mittels der Map.\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tconst key = `-${index}`;\n\t\t\t\t\t\t\tif (Array.isArray((option as unknown as Optgroup<string>).options)) {\n\t\t\t\t\t\t\t\treturn this.renderOptgroup(option as unknown as Optgroup<string>, key);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t<option\n\t\t\t\t\t\t\t\t\t\tdisabled={option.disabled === true}\n\t\t\t\t\t\t\t\t\t\tkey={key}\n\t\t\t\t\t\t\t\t\t\t// label={option.label}\n\t\t\t\t\t\t\t\t\t\tselected={isSelected(this.state._value, (option as unknown as Option<W3CInputValue>).value)}\n\t\t\t\t\t\t\t\t\t\tvalue={key}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{option.label}\n\t\t\t\t\t\t\t\t\t</option>\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})}\n\t\t\t\t\t</select>\n\t\t\t\t</kol-input>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate readonly controller: SelectController;\n\n\t/**\n\t * Gibt an, mit welcher Tastenkombination man das Input auslösen oder fokussieren kann.\n\t */\n\t@Prop() public _accessKey?: string;\n\n\t/**\n\t * Gibt an, ob die Fehlermeldung vorgelesen werden soll, wenn es eine gibt.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _alert?: boolean = true;\n\n\t/**\n\t * Gibt an, ob das Eingabefeld aktiviert oder deaktiviert ist.\n\t */\n\t@Prop({ reflect: true }) public _disabled?: boolean;\n\n\t/**\n\t * Gibt den Text für eine Fehlermeldung an.\n\t */\n\t@Prop() public _error?: string;\n\n\t/**\n\t * Gibt an, ob eine individuelle Höhe übergeben werden soll.\n\t *\n\t * @deprecated Use _size instead.\n\t */\n\t@Prop() public _height?: string;\n\n\t/**\n\t * Gibt an, ob das Eingabefeld kein sichtbares Label haben soll.\n\t */\n\t@Prop({ reflect: true }) public _hideLabel?: boolean;\n\n\t/**\n\t * Gibt den Text für eine Hinweistext an.\n\t */\n\t@Prop() public _hint?: string = '';\n\n\t/**\n\t * Ermöglicht das Anzeigen von Icons links und/oder rechts am Rand des Eingabefeldes.\n\t */\n\t@Prop() public _icon?: Stringified<KoliBriHorizontalIcon>;\n\n\t/**\n\t * Gibt die technische ID des Eingabefeldes an.\n\t */\n\t@Prop() public _id!: string;\n\n\t/**\n\t * Gibt den technischen Namen des Eingabefeldes an.\n\t */\n\t@Prop() public _list!: Stringified<SelectOption<W3CInputValue>[]>;\n\n\t/**\n\t * Gibt an, ob mehrere Werte eingegeben werden können.\n\t */\n\t@Prop({ reflect: true }) public _multiple?: boolean = false;\n\n\t/**\n\t * Gibt den technischen Namen des Eingabefeldes an.\n\t */\n\t@Prop() public _name?: string;\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 * Gibt an, ob die Selectbox ein Pflichtfeld ist.\n\t */\n\t@Prop({ reflect: true }) public _required?: boolean;\n\n\t/**\n\t * Gibt an, wie viele Optionen im Drop-Down-Menü sichtbar sein sollen.\n\t */\n\t@Prop() public _size?: number;\n\n\t/**\n\t * Gibt an, welchen Tab-Index dieses Input hat.\n\t */\n\t@Prop() public _tabIndex?: number;\n\n\t/**\n\t * Gibt an, ob dieses Eingabefeld von Nutzer:innen einmal besucht/berührt wurde.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _touched?: boolean = false;\n\n\t/**\n\t * Gibt den Wert des Eingabefeldes an.\n\t */\n\t@Prop({ mutable: true, reflect: false }) public _value?: Stringified<W3CInputValue[]>;\n\n\t/**\n\t * @see: components/abbr/component.tsx (@State)\n\t */\n\t@State() public state: States = {\n\t\t_height: '',\n\t\t_id: '⚠',\n\t\t_list: [],\n\t\t_multiple: false,\n\t\t_value: [],\n\t};\n\n\tpublic constructor() {\n\t\tthis.controller = new SelectController(this, 'textarea', this.host);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_accessKey')\n\tpublic validateAccessKey(value?: string): void {\n\t\tthis.controller.validateAccessKey(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_alert')\n\tpublic validateAlert(value?: boolean): void {\n\t\tthis.controller.validateAlert(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_disabled')\n\tpublic validateDisabled(value?: boolean): void {\n\t\tthis.controller.validateDisabled(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_error')\n\tpublic validateError(value?: string): void {\n\t\tthis.controller.validateError(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_height')\n\tpublic validateHeight(value?: string): void {\n\t\tthis.controller.validateHeight(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_hideLabel')\n\tpublic validateHideLabel(value?: boolean): void {\n\t\tthis.controller.validateHideLabel(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_hint')\n\tpublic validateHint(value?: string): void {\n\t\tthis.controller.validateHint(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_icon')\n\tpublic validateIcon(value?: Stringified<KoliBriHorizontalIcon>): void {\n\t\tthis.controller.validateIcon(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_id')\n\tpublic validateId(value?: string): void {\n\t\tthis.controller.validateId(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_list')\n\tpublic validateList(value?: Stringified<SelectOption<W3CInputValue>[]>): void {\n\t\tthis.controller.validateList(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_multiple')\n\tpublic validateMultiple(value?: boolean): void {\n\t\tthis.controller.validateMultiple(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_name')\n\tpublic validateName(value?: string): void {\n\t\tthis.controller.validateName(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_on')\n\tpublic validateOn(value?: InputTypeOnDefault): void {\n\t\tthis.controller.validateOn(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_required')\n\tpublic validateRequired(value?: boolean): void {\n\t\tthis.controller.validateRequired(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_size')\n\tpublic validateSize(value?: number): void {\n\t\tthis.controller.validateSize(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_tabIndex')\n\tpublic validateTabIndex(value?: number): void {\n\t\tthis.controller.validateTabIndex(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_touched')\n\tpublic validateTouched(value?: boolean): void {\n\t\tthis.controller.validateTouched(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_value')\n\tpublic validateValue(value?: Stringified<W3CInputValue[]>): void {\n\t\tthis.controller.validateValue(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (componentWillLoad)\n\t */\n\tpublic componentWillLoad(): void {\n\t\tthis._alert = this._alert === true;\n\t\tthis._touched = this._touched === true;\n\t\tthis.controller.componentWillLoad(this.onChange);\n\t}\n\n\tprivate onChange = (event: Event): void => {\n\t\t/**\n\t\t * TODO: Find values via value keys.\n\t\t */\n\t\tthis._value = Array.from(this.ref?.options || [])\n\t\t\t.filter((option) => option.selected === true)\n\t\t\t.map((option) => this.controller.getOptionByKey(option.value)?.value as string);\n\t\tthis.controller.setFormAssociatedValue(this._value as unknown as string);\n\t\tif (typeof this.state._on?.onChange === 'function') {\n\t\t\tthis.state._on.onChange(event, this._value);\n\t\t}\n\t};\n}\n"],"mappings":"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"}
1
+ {"version":3,"names":["validateInputSelectList","option","label","length","disabled","trim","hasEnoughReadableChars","containsOnlyNumbers","a11yHint","Array","isArray","options","find","item","undefined","SelectController","InputIconController","constructor","component","name","host","super","this","keyOptionMap","Map","getOptionByKey","key","get","isValueInOptions","value","filterValuesInOptions","values","filter","beforePatchListValue","_value","nextState","list","has","state","_list","clear","fillKeyOptionMap","selected","_multiple","set","onStateChange","validateHeight","watchString","validateList","watchJsonArrayString","hooks","beforePatch","validateMultiple","watchBoolean","validateRequired","validateSize","watchNumber","min","validateValue","setFormAssociatedValue","componentWillLoad","onChange","timeout","setTimeout","clearTimeout","STATE_CHANGE_EVENT","_height","_required","_size","defaultStyleCss","isSelected","valueList","optionValue","includes","KolSelect","renderOptgroup","optgroup","preKey","h","_a","map","index","render","ariaDiscribedBy","getRenderStates","Host","_disabled","_error","_hideLabel","_hint","_icon","_id","_touched","slot","Object","assign","ref","catchRef","part","title","accessKey","_accessKey","join","autoCapitalize","autoCorrect","id","multiple","_name","required","size","spellcheck","style","height","onClick","controller","onFacade","onBlur","onFocus","hostRef","propergateFocus","event","from","_b","_on","validateAccessKey","validateAlert","validateDisabled","validateError","validateHideLabel","validateHint","validateIcon","validateId","validateName","validateOn","validateTabIndex","validateTouched","_alert"],"sources":["./src/utils/validators/list.ts","./src/components/select/controller.ts","./src/components/select/style.css?tag=kol-select&mode=default&encapsulation=shadow","./src/components/select/component.tsx"],"sourcesContent":["import { Optgroup, SelectOption } from '../../types/input/types';\nimport { a11yHint } from '../a11y.tipps';\nimport { containsOnlyNumbers, hasEnoughReadableChars } from './label';\n\nexport const validateInputSelectList = <T>(option: SelectOption<T>): boolean => {\n\tif (typeof option === 'object' && option !== null) {\n\t\tif (typeof option.label === 'string' && option.label.length > 0) {\n\t\t\toption.disabled = option.disabled === true;\n\t\t\toption.label = `${option.label}`.trim();\n\t\t\tif (hasEnoughReadableChars(option.label, 3) === false && containsOnlyNumbers(option.label) === false) {\n\t\t\t\ta11yHint(\n\t\t\t\t\t`Ein abweichendes Aria-Label (${option.label}) ist nicht barrierefrei. Ein abweichendes Aria-Label sollte aus mindestens drei lesbaren Zeichen bestehen.`\n\t\t\t\t);\n\t\t\t}\n\t\t\tif (Array.isArray((option as Optgroup<T>).options)) {\n\t\t\t\treturn (\n\t\t\t\t\t(option as Optgroup<T>).options.find((item) => {\n\t\t\t\t\t\treturn validateInputSelectList(item) === false;\n\t\t\t\t\t}) === undefined\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn true;\n\t\t} else if (typeof option.label === 'number') {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n};\n","import { Generic } from '@a11y-ui/core';\nimport { Stringified } from '../../types/common';\nimport { Optgroup, Option, SelectOption } from '../../types/input/types';\nimport { W3CInputValue } from '../../types/w3c';\nimport { watchBoolean, watchJsonArrayString, watchNumber, watchString } from '../../utils/prop.validators';\nimport { STATE_CHANGE_EVENT } from '../../utils/validator';\nimport { InputIconController } from '../@deprecated/input/controller-icon';\nimport { fillKeyOptionMap } from '../input-radio/controller';\nimport { Props, Watches } from './types';\nimport { validateInputSelectList } from '../../utils/validators/list';\n\nexport class SelectController extends InputIconController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props;\n\tprivate onStateChange!: () => void;\n\tprivate readonly keyOptionMap = new Map<string, Option<W3CInputValue>>();\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 getOptionByKey = (key: string): Option<W3CInputValue> | undefined => this.keyOptionMap.get(key);\n\n\tprivate readonly isValueInOptions = (value: string, options: SelectOption<W3CInputValue>[]): boolean => {\n\t\treturn (\n\t\t\toptions.find((option) =>\n\t\t\t\ttypeof (option as Option<W3CInputValue>).value === 'string'\n\t\t\t\t\t? (option as Option<W3CInputValue>).value === value\n\t\t\t\t\t: Array.isArray((option as Optgroup<string>).options)\n\t\t\t\t\t? this.isValueInOptions(value, (option as Optgroup<string>).options)\n\t\t\t\t\t: false\n\t\t\t) !== undefined\n\t\t);\n\t};\n\n\tprivate readonly filterValuesInOptions = (values: string[], options: SelectOption<W3CInputValue>[]): string[] => {\n\t\treturn values.filter((value) => this.isValueInOptions(value, options) !== undefined);\n\t};\n\n\tprivate readonly beforePatchListValue = (_value: unknown, nextState: Map<string, unknown>): void => {\n\t\tconst list = nextState.has('_list') ? nextState.get('_list') : this.component.state._list;\n\t\tif (Array.isArray(list) && list.length > 0) {\n\t\t\tthis.keyOptionMap.clear();\n\t\t\tfillKeyOptionMap(this.keyOptionMap, list as SelectOption<W3CInputValue>[]);\n\t\t\tconst value = nextState.has('_value') ? nextState.get('_value') : this.component.state._value;\n\t\t\tconst selected = this.filterValuesInOptions(Array.isArray(value) && value.length > 0 ? (value as string[]) : [], list as SelectOption<W3CInputValue>[]);\n\t\t\tif (this.component._multiple === false && selected.length === 0) {\n\t\t\t\tnextState.set('_value', [\n\t\t\t\t\t(\n\t\t\t\t\t\tlist[0] as {\n\t\t\t\t\t\t\tvalue: string;\n\t\t\t\t\t\t}\n\t\t\t\t\t).value,\n\t\t\t\t]);\n\t\t\t\tthis.onStateChange();\n\t\t\t} else if (Array.isArray(value) && selected.length < value.length) {\n\t\t\t\tnextState.set('_value', selected);\n\t\t\t\tthis.onStateChange();\n\t\t\t}\n\t\t}\n\t};\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t * @deprecated Use _size instead.\n\t */\n\tpublic validateHeight(value?: string): void {\n\t\twatchString(this.component, '_height', value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateList<T>(value?: SelectOption<T>[] | string): void {\n\t\twatchJsonArrayString(this.component, '_list', validateInputSelectList, value, undefined, {\n\t\t\thooks: {\n\t\t\t\tbeforePatch: this.beforePatchListValue,\n\t\t\t},\n\t\t});\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateMultiple(value?: boolean): void {\n\t\twatchBoolean(this.component, '_multiple', value, {\n\t\t\thooks: {\n\t\t\t\tbeforePatch: this.beforePatchListValue,\n\t\t\t},\n\t\t});\n\t\t// if (value === true) {\n\t\t// \tdevHint(\n\t\t// \t\t'[KolSelect] Aktuell wird die Mehrfachauswahl noch nicht unterstützt. Wir sind dran die Mehrfachauswahl funktionsfähig zu implementieren, da der Browser-Standard hier ein paar Lücken hat.'\n\t\t// \t);\n\t\t// \tdevHint('[KolSelect] Bei der Mehrfachauswahl sollte zusätzlich auch die Listenlänge (size) gesetzt werden.');\n\t\t// }\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateRequired(value?: boolean): void {\n\t\twatchBoolean(this.component, '_required', value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateSize(value?: number): void {\n\t\twatchNumber(this.component, '_size', value, {\n\t\t\tmin: 1,\n\t\t});\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateValue(value?: Stringified<W3CInputValue[]>): void {\n\t\twatchJsonArrayString(this.component, '_value', () => true, value, undefined, {\n\t\t\thooks: {\n\t\t\t\tbeforePatch: this.beforePatchListValue,\n\t\t\t},\n\t\t});\n\t\tthis.setFormAssociatedValue(this.component._value as string);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (componentWillLoad)\n\t */\n\tpublic componentWillLoad(onChange?: (event: Event) => void): void {\n\t\tsuper.componentWillLoad();\n\n\t\tthis.onStateChange = () => {\n\t\t\tif (typeof onChange === 'function') {\n\t\t\t\tconst timeout = setTimeout(() => {\n\t\t\t\t\tclearTimeout(timeout);\n\t\t\t\t\tonChange(STATE_CHANGE_EVENT);\n\t\t\t\t});\n\t\t\t}\n\t\t};\n\n\t\tthis.validateHeight(this.component._height);\n\t\tthis.validateList(this.component._list);\n\t\tthis.validateMultiple(this.component._multiple);\n\t\tthis.validateRequired(this.component._required);\n\t\tthis.validateSize(this.component._size);\n\t\tthis.validateValue(this.component._value);\n\t}\n}\n","@import '../input-line.css';\n","import { Component, Element, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\nimport { Stringified } from '../../types/common';\n\nimport { InputTypeOnDefault, Optgroup, Option, SelectOption } from '../../types/input/types';\nimport { W3CInputValue } from '../../types/w3c';\nimport { propergateFocus } from '../../utils/reuse';\nimport { KoliBriHorizontalIcon } from '../../types/icon';\nimport { getRenderStates } from '../input/controller';\nimport { SelectController } from './controller';\nimport { ComponentApi, States } from './types';\n\nconst isSelected = (valueList: unknown[] | null, optionValue: unknown): boolean => {\n\treturn Array.isArray(valueList) && valueList.includes(optionValue);\n};\n\n/**\n * @part select - Ermöglicht das Stylen des select-Knotens.\n */\n@Component({\n\ttag: 'kol-select',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolSelect implements ComponentApi {\n\t@Element() private readonly host?: HTMLKolSelectElement;\n\tprivate ref?: HTMLSelectElement;\n\n\tprivate readonly catchRef = (ref?: HTMLSelectElement) => {\n\t\tthis.ref = ref;\n\t\tpropergateFocus(this.host, this.ref);\n\t};\n\n\tprivate renderOptgroup(optgroup: Optgroup<string>, preKey: string): JSX.Element {\n\t\treturn (\n\t\t\t<optgroup disabled={optgroup.disabled === true} label={optgroup.label}>\n\t\t\t\t{optgroup.options?.map((option: SelectOption<W3CInputValue>, index: number) => {\n\t\t\t\t\tconst key = `${preKey}-${index}`;\n\t\t\t\t\tif (Array.isArray((option as Optgroup<string>).options)) {\n\t\t\t\t\t\treturn this.renderOptgroup(option as Optgroup<string>, key);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<option\n\t\t\t\t\t\t\t\tdisabled={option.disabled === true}\n\t\t\t\t\t\t\t\tkey={key}\n\t\t\t\t\t\t\t\t// label={option.label}\n\t\t\t\t\t\t\t\tselected={isSelected(this.state._value, (option as Option<W3CInputValue>).value)}\n\t\t\t\t\t\t\t\tvalue={key}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{option.label}\n\t\t\t\t\t\t\t</option>\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t})}\n\t\t\t</optgroup>\n\t\t);\n\t}\n\n\tpublic render(): JSX.Element {\n\t\tconst { ariaDiscribedBy } = getRenderStates(this.state);\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<kol-input\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_icon={this.state._icon}\n\t\t\t\t\t_id={this.state._id}\n\t\t\t\t\t_required={this.state._required}\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<slot />\n\t\t\t\t\t</span>\n\t\t\t\t\t<select\n\t\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\t\tpart=\"select\"\n\t\t\t\t\t\ttitle=\"\"\n\t\t\t\t\t\taccessKey={this.state._accessKey}\n\t\t\t\t\t\taria-describedby={ariaDiscribedBy.length > 0 ? ariaDiscribedBy.join(' ') : undefined}\n\t\t\t\t\t\taria-labelledby={`${this.state._id}-label`}\n\t\t\t\t\t\tautoCapitalize=\"off\"\n\t\t\t\t\t\tautoCorrect=\"off\"\n\t\t\t\t\t\tdisabled={this.state._disabled}\n\t\t\t\t\t\tid={this.state._id}\n\t\t\t\t\t\tmultiple={this.state._multiple}\n\t\t\t\t\t\tname={this.state._name}\n\t\t\t\t\t\trequired={this.state._required}\n\t\t\t\t\t\tsize={this.state._size}\n\t\t\t\t\t\tslot=\"input\"\n\t\t\t\t\t\tspellcheck=\"false\"\n\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\theight: this.state._height,\n\t\t\t\t\t\t}}\n\t\t\t\t\t\t{...{\n\t\t\t\t\t\t\tonClick: this.controller.onFacade.onClick,\n\t\t\t\t\t\t\tonBlur: this.controller.onFacade.onBlur,\n\t\t\t\t\t\t\tonFocus: this.controller.onFacade.onFocus,\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tonChange={this.onChange}\n\t\t\t\t\t>\n\t\t\t\t\t\t{this.state._list.map((option, index) => {\n\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t * Damit der Value einer Option ein beliebigen Typ haben kann\n\t\t\t\t\t\t\t * muss man auf HTML-Ebene den Value auf einen String-Wert\n\t\t\t\t\t\t\t * mappen. Das tun wir mittels der Map.\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tconst key = `-${index}`;\n\t\t\t\t\t\t\tif (Array.isArray((option as unknown as Optgroup<string>).options)) {\n\t\t\t\t\t\t\t\treturn this.renderOptgroup(option as unknown as Optgroup<string>, key);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t<option\n\t\t\t\t\t\t\t\t\t\tdisabled={option.disabled === true}\n\t\t\t\t\t\t\t\t\t\tkey={key}\n\t\t\t\t\t\t\t\t\t\t// label={option.label}\n\t\t\t\t\t\t\t\t\t\tselected={isSelected(this.state._value, (option as unknown as Option<W3CInputValue>).value)}\n\t\t\t\t\t\t\t\t\t\tvalue={key}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{option.label}\n\t\t\t\t\t\t\t\t\t</option>\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})}\n\t\t\t\t\t</select>\n\t\t\t\t</kol-input>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate readonly controller: SelectController;\n\n\t/**\n\t * Gibt an, mit welcher Tastenkombination man das Input auslösen oder fokussieren kann.\n\t */\n\t@Prop() public _accessKey?: string;\n\n\t/**\n\t * Gibt an, ob die Fehlermeldung vorgelesen werden soll, wenn es eine gibt.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _alert?: boolean = true;\n\n\t/**\n\t * Gibt an, ob das Eingabefeld aktiviert oder deaktiviert ist.\n\t */\n\t@Prop({ reflect: true }) public _disabled?: boolean;\n\n\t/**\n\t * Gibt den Text für eine Fehlermeldung an.\n\t */\n\t@Prop() public _error?: string;\n\n\t/**\n\t * Gibt an, ob eine individuelle Höhe übergeben werden soll.\n\t *\n\t * @deprecated Use _size instead.\n\t */\n\t@Prop() public _height?: string;\n\n\t/**\n\t * Gibt an, ob das Eingabefeld kein sichtbares Label haben soll.\n\t */\n\t@Prop({ reflect: true }) public _hideLabel?: boolean;\n\n\t/**\n\t * Gibt den Text für eine Hinweistext an.\n\t */\n\t@Prop() public _hint?: string = '';\n\n\t/**\n\t * Ermöglicht das Anzeigen von Icons links und/oder rechts am Rand des Eingabefeldes.\n\t */\n\t@Prop() public _icon?: Stringified<KoliBriHorizontalIcon>;\n\n\t/**\n\t * Gibt die technische ID des Eingabefeldes an.\n\t */\n\t@Prop() public _id!: string;\n\n\t/**\n\t * Gibt den technischen Namen des Eingabefeldes an.\n\t */\n\t@Prop() public _list!: Stringified<SelectOption<W3CInputValue>[]>;\n\n\t/**\n\t * Gibt an, ob mehrere Werte eingegeben werden können.\n\t */\n\t@Prop({ reflect: true }) public _multiple?: boolean = false;\n\n\t/**\n\t * Gibt den technischen Namen des Eingabefeldes an.\n\t */\n\t@Prop() public _name?: string;\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 * Gibt an, ob die Selectbox ein Pflichtfeld ist.\n\t */\n\t@Prop({ reflect: true }) public _required?: boolean;\n\n\t/**\n\t * Gibt an, wie viele Optionen im Drop-Down-Menü sichtbar sein sollen.\n\t */\n\t@Prop() public _size?: number;\n\n\t/**\n\t * Gibt an, welchen Tab-Index dieses Input hat.\n\t */\n\t@Prop() public _tabIndex?: number;\n\n\t/**\n\t * Gibt an, ob dieses Eingabefeld von Nutzer:innen einmal besucht/berührt wurde.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _touched?: boolean = false;\n\n\t/**\n\t * Gibt den Wert des Eingabefeldes an.\n\t */\n\t@Prop({ mutable: true, reflect: false }) public _value?: Stringified<W3CInputValue[]>;\n\n\t/**\n\t * @see: components/abbr/component.tsx (@State)\n\t */\n\t@State() public state: States = {\n\t\t_height: '',\n\t\t_id: '…', // ⚠ required\n\t\t_list: [],\n\t\t_multiple: false,\n\t\t_value: [],\n\t};\n\n\tpublic constructor() {\n\t\tthis.controller = new SelectController(this, 'textarea', this.host);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_accessKey')\n\tpublic validateAccessKey(value?: string): void {\n\t\tthis.controller.validateAccessKey(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_alert')\n\tpublic validateAlert(value?: boolean): void {\n\t\tthis.controller.validateAlert(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_disabled')\n\tpublic validateDisabled(value?: boolean): void {\n\t\tthis.controller.validateDisabled(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_error')\n\tpublic validateError(value?: string): void {\n\t\tthis.controller.validateError(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_height')\n\tpublic validateHeight(value?: string): void {\n\t\tthis.controller.validateHeight(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_hideLabel')\n\tpublic validateHideLabel(value?: boolean): void {\n\t\tthis.controller.validateHideLabel(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_hint')\n\tpublic validateHint(value?: string): void {\n\t\tthis.controller.validateHint(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_icon')\n\tpublic validateIcon(value?: Stringified<KoliBriHorizontalIcon>): void {\n\t\tthis.controller.validateIcon(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_id')\n\tpublic validateId(value?: string): void {\n\t\tthis.controller.validateId(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_list')\n\tpublic validateList(value?: Stringified<SelectOption<W3CInputValue>[]>): void {\n\t\tthis.controller.validateList(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_multiple')\n\tpublic validateMultiple(value?: boolean): void {\n\t\tthis.controller.validateMultiple(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_name')\n\tpublic validateName(value?: string): void {\n\t\tthis.controller.validateName(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_on')\n\tpublic validateOn(value?: InputTypeOnDefault): void {\n\t\tthis.controller.validateOn(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_required')\n\tpublic validateRequired(value?: boolean): void {\n\t\tthis.controller.validateRequired(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_size')\n\tpublic validateSize(value?: number): void {\n\t\tthis.controller.validateSize(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_tabIndex')\n\tpublic validateTabIndex(value?: number): void {\n\t\tthis.controller.validateTabIndex(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_touched')\n\tpublic validateTouched(value?: boolean): void {\n\t\tthis.controller.validateTouched(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_value')\n\tpublic validateValue(value?: Stringified<W3CInputValue[]>): void {\n\t\tthis.controller.validateValue(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (componentWillLoad)\n\t */\n\tpublic componentWillLoad(): void {\n\t\tthis._alert = this._alert === true;\n\t\tthis._touched = this._touched === true;\n\t\tthis.controller.componentWillLoad(this.onChange);\n\t}\n\n\tprivate onChange = (event: Event): void => {\n\t\t/**\n\t\t * TODO: Find values via value keys.\n\t\t */\n\t\tthis._value = Array.from(this.ref?.options || [])\n\t\t\t.filter((option) => option.selected === true)\n\t\t\t.map((option) => this.controller.getOptionByKey(option.value)?.value as string);\n\t\tthis.controller.setFormAssociatedValue(this._value as unknown as string);\n\t\tif (typeof this.state._on?.onChange === 'function') {\n\t\t\tthis.state._on.onChange(event, this._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{r as i,h as o}from"./index-50adf9a0.js";import{b as r}from"./a11y.tipps-5cdbd5e2.js";import{w as a}from"./prop.validators-15724e89.js";import{w as e}from"./validation-8149b359.js";import"./dev.utils-05f4e663.js";import"./reuse-56bb5a4b.js";import"./index-599f5430.js";const l=":host{--kolibri-border-color:#666;--kolibri-border-radius:0.125rem;--kolibri-border-width:1px;--kolibri-color-error:#f44336;--kolibri-color-info:#2196f3;--kolibri-color-success:#4caf50;--kolibri-color-warning:#ff9800;--kolibri-color-primary:#3f51b5;--kolibri-color-secondary:#ff4081;--kolibri-color-normal:#9e9e9e;--kolibri-color-danger:#f44336;--kolibri-color-ghost:#f5f5f5;--kolibri-color-disabled:#bdbdbd;--kolibri-color-text:#222222;--kolibri-color-visited:#9c27b0;--kolibri-font-family:Verdana, Arial, Tahoma, Helvetica, sans-serif;--kolibri-font-size:16px;--kolibri-spacing:0.25rem}:host{font-family:inherit;font-size:inherit}:host *{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}:host{display:inline-block}a,button{background-color:transparent;border:none;font-size:inherit;margin:0;padding:0;transition-duration:0.5s;transition-property:background-color, color, border-color}:host{font-family:var(--kolibri-font-family);font-size:inherit}*{box-sizing:border-box}kol-icon{color:inherit}kol-span-wc{display:grid;gap:var(--kolibri-spacing);place-items:center}kol-span-wc>span{display:flex;gap:var(--kolibri-spacing);place-items:center}kol-span-wc>kol-icon,kol-span-wc>span>kol-icon{display:inline-grid;place-items:center;width:1em;height:1em}a,button,input,select,textarea{appearance:none;cursor:pointer}a.icon-only>kol-span-wc>span>span,button.icon-only>kol-span-wc>span>span{display:none}h1,h2,h3,h4,h5,h6{font-family:var(--kolibri-font-family);font-size:var(--kolibri-font-size);margin:0;padding:0}ul{display:grid;list-style:none;place-items:center}ul li{height:0}",n=class{constructor(o){i(this,o),this._ariaLabel=void 0,this._links=void 0,this.state={_ariaLabel:"…",_links:[]}}render(){return o("nav",{"aria-label":this.state._ariaLabel},o("ul",null,this.state._links.map(((i,r)=>o("li",{key:r},o("kol-link",Object.assign({},i,{_stealth:!0})))))))}validateAriaLabel(i){a(this,"_ariaLabel",i,{required:!0}),r(i)}validateLinks(i){e("KolSkipNav",this,i)}componentWillLoad(){this.validateAriaLabel(this._ariaLabel),this.validateLinks(this._links)}static get watchers(){return{_ariaLabel:["validateAriaLabel"],_links:["validateLinks"]}}};n.style={default:l};export{n as kol_skip_nav};
4
+ import{r as i,h as o}from"./index-50adf9a0.js";import{b as r}from"./a11y.tipps-5cdbd5e2.js";import{w as a}from"./prop.validators-769a843a.js";import{w as e}from"./validation-f13f1eed.js";import"./dev.utils-05f4e663.js";import"./reuse-56bb5a4b.js";import"./index-676dbf61.js";const l=":host{--kolibri-border-color:#666;--kolibri-border-radius:0.125rem;--kolibri-border-width:1px;--kolibri-color-error:#f44336;--kolibri-color-info:#2196f3;--kolibri-color-success:#4caf50;--kolibri-color-warning:#ff9800;--kolibri-color-primary:#3f51b5;--kolibri-color-secondary:#ff4081;--kolibri-color-normal:#9e9e9e;--kolibri-color-danger:#f44336;--kolibri-color-ghost:#f5f5f5;--kolibri-color-disabled:#bdbdbd;--kolibri-color-text:#222222;--kolibri-color-visited:#9c27b0;--kolibri-font-family:Verdana, Arial, Tahoma, Helvetica, sans-serif;--kolibri-font-size:16px;--kolibri-spacing:0.25rem}:host *{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}a,button{background-color:transparent;border:none;font-size:inherit;margin:0;padding:0;transition-duration:0.5s;transition-property:background-color, color, border-color}:host{font-family:var(--kolibri-font-family);font-size:var(--kolibri-font-size)}*{box-sizing:border-box}kol-icon{color:inherit}kol-span-wc{display:grid;gap:var(--kolibri-spacing);place-items:center}kol-span-wc>span{display:flex;gap:var(--kolibri-spacing);place-items:center}kol-span-wc>kol-icon,kol-span-wc>span>kol-icon{display:inline-grid;place-items:center;width:1em;height:1em}a,button,input,select,textarea{appearance:none;cursor:pointer}.icon-only>kol-span-wc>span>span{display:none}h1,h2,h3,h4,h5,h6{font-family:var(--kolibri-font-family);font-size:var(--kolibri-font-size);margin:0;padding:0}ul{display:grid;list-style:none;place-items:center}ul li{height:0}",t=class{constructor(o){i(this,o),this._ariaLabel=void 0,this._links=void 0,this.state={_ariaLabel:"…",_links:[]}}render(){return o("nav",{"aria-label":this.state._ariaLabel},o("ul",null,this.state._links.map(((i,r)=>o("li",{key:r},o("kol-link",Object.assign({},i,{_stealth:!0})))))))}validateAriaLabel(i){a(this,"_ariaLabel",i,{required:!0}),r(i)}validateLinks(i){e("KolSkipNav",this,i)}componentWillLoad(){this.validateAriaLabel(this._ariaLabel),this.validateLinks(this._links)}static get watchers(){return{_ariaLabel:["validateAriaLabel"],_links:["validateLinks"]}}};t.style={default:l};export{t as kol_skip_nav};
@@ -1 +1 @@
1
- {"version":3,"names":["defaultStyleCss","KolSkipNav","_ariaLabel","_links","render","h","this","state","map","link","index","key","Object","assign","_stealth","validateAriaLabel","value","watchString","required","a11yHintLabelingLandmarks","validateLinks","watchNavLinks","componentWillLoad"],"sources":["./src/components/skip-nav/style.css?tag=kol-skip-nav&mode=default&encapsulation=shadow","./src/components/skip-nav/component.tsx"],"sourcesContent":["@import '../style.css';\n\nul {\n\tdisplay: grid;\n\tlist-style: none;\n\tplace-items: center;\n}\nul li {\n\theight: 0;\n}\n","import { Component, h, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { Generic } from '@a11y-ui/core';\nimport { a11yHintLabelingLandmarks } from '../../utils/a11y.tipps';\nimport { watchString } from '../../utils/prop.validators';\nimport { NavLinkProps } from '../link/component';\nimport { watchNavLinks } from '../nav/validation';\nimport { Stringified } from '../../types/common';\n\n/**\n * API\n */\ntype RequiredProps = {\n\tariaLabel: string;\n\tlinks: Stringified<NavLinkProps[]>;\n};\ntype OptionalProps = unknown;\n// type Props = Generic.Element.Members<RequiredProps, OptionalProps>;\n\ntype RequiredStates = {\n\tariaLabel: string;\n\tlinks: NavLinkProps[];\n};\ntype OptionalStates = OptionalProps;\ntype States = Generic.Element.Members<RequiredStates, OptionalStates>;\n\n/**\n * @part link - Ermöglicht das Stylen der Links.\n */\n@Component({\n\ttag: 'kol-skip-nav',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolSkipNav implements Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates> {\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<nav aria-label={this.state._ariaLabel}>\n\t\t\t\t<ul>\n\t\t\t\t\t{this.state._links.map((link: NavLinkProps, index: number) => {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<li key={index}>\n\t\t\t\t\t\t\t\t<kol-link {...link} _stealth={true}></kol-link>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t);\n\t\t\t\t\t})}\n\t\t\t\t</ul>\n\t\t\t</nav>\n\t\t);\n\t}\n\n\t/**\n\t * Gibt den Text an, der die Navigation von anderen Navigationen differenziert.\n\t */\n\t@Prop() public _ariaLabel!: string;\n\n\t/**\n\t * Ist die Liste der unsichtbaren Links.\n\t */\n\t@Prop() public _links!: Stringified<NavLinkProps[]>;\n\n\t/**\n\t * @see: components/abbr/component.tsx (@State)\n\t */\n\t@State() public state: States = {\n\t\t_ariaLabel: '…', // '⚠'\n\t\t_links: [],\n\t};\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_ariaLabel')\n\tpublic validateAriaLabel(value?: string): void {\n\t\twatchString(this, '_ariaLabel', value, {\n\t\t\trequired: true,\n\t\t});\n\t\ta11yHintLabelingLandmarks(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_links')\n\tpublic validateLinks(value?: Stringified<NavLinkProps[]>): void {\n\t\twatchNavLinks('KolSkipNav', this, value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (componentWillLoad)\n\t */\n\tpublic componentWillLoad(): void {\n\t\tthis.validateAriaLabel(this._ariaLabel);\n\t\tthis.validateLinks(this._links);\n\t}\n}\n"],"mappings":";;;mRAAA,MAAMA,EAAkB,wkD,MCoCXC,EAAU,M,oFA8BU,CAC/BC,WAAY,IACZC,OAAQ,G,CA/BFC,SACN,OACCC,EAAA,oBAAiBC,KAAKC,MAAML,YAC3BG,EAAA,UACEC,KAAKC,MAAMJ,OAAOK,KAAI,CAACC,EAAoBC,IAE1CL,EAAA,MAAIM,IAAKD,GACRL,EAAA,WAAAO,OAAAC,OAAA,GAAcJ,EAAI,CAAEK,SAAU,Y,CA+B9BC,kBAAkBC,GACxBC,EAAYX,KAAM,aAAcU,EAAO,CACtCE,SAAU,OAEXC,EAA0BH,E,CAOpBI,cAAcJ,GACpBK,EAAc,aAAcf,KAAMU,E,CAM5BM,oBACNhB,KAAKS,kBAAkBT,KAAKJ,YAC5BI,KAAKc,cAAcd,KAAKH,O"}
1
+ {"version":3,"names":["defaultStyleCss","KolSkipNav","_ariaLabel","_links","render","h","this","state","map","link","index","key","Object","assign","_stealth","validateAriaLabel","value","watchString","required","a11yHintLabelingLandmarks","validateLinks","watchNavLinks","componentWillLoad"],"sources":["./src/components/skip-nav/style.css?tag=kol-skip-nav&mode=default&encapsulation=shadow","./src/components/skip-nav/component.tsx"],"sourcesContent":["@import '../style.css';\n\nul {\n\tdisplay: grid;\n\tlist-style: none;\n\tplace-items: center;\n}\nul li {\n\theight: 0;\n}\n","import { Component, h, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { Generic } from '@a11y-ui/core';\nimport { a11yHintLabelingLandmarks } from '../../utils/a11y.tipps';\nimport { watchString } from '../../utils/prop.validators';\nimport { NavLinkProps } from '../link/component';\nimport { watchNavLinks } from '../nav/validation';\nimport { Stringified } from '../../types/common';\n\n/**\n * API\n */\ntype RequiredProps = {\n\tariaLabel: string;\n\tlinks: Stringified<NavLinkProps[]>;\n};\ntype OptionalProps = unknown;\n// type Props = Generic.Element.Members<RequiredProps, OptionalProps>;\n\ntype RequiredStates = {\n\tariaLabel: string;\n\tlinks: NavLinkProps[];\n};\ntype OptionalStates = OptionalProps;\ntype States = Generic.Element.Members<RequiredStates, OptionalStates>;\n\n/**\n * @part link - Ermöglicht das Stylen der Links.\n */\n@Component({\n\ttag: 'kol-skip-nav',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolSkipNav implements Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates> {\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<nav aria-label={this.state._ariaLabel}>\n\t\t\t\t<ul>\n\t\t\t\t\t{this.state._links.map((link: NavLinkProps, index: number) => {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<li key={index}>\n\t\t\t\t\t\t\t\t<kol-link {...link} _stealth={true}></kol-link>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t);\n\t\t\t\t\t})}\n\t\t\t\t</ul>\n\t\t\t</nav>\n\t\t);\n\t}\n\n\t/**\n\t * Gibt den Text an, der die Navigation von anderen Navigationen differenziert.\n\t */\n\t@Prop() public _ariaLabel!: string;\n\n\t/**\n\t * Ist die Liste der unsichtbaren Links.\n\t */\n\t@Prop() public _links!: Stringified<NavLinkProps[]>;\n\n\t/**\n\t * @see: components/abbr/component.tsx (@State)\n\t */\n\t@State() public state: States = {\n\t\t_ariaLabel: '…', // '⚠'\n\t\t_links: [],\n\t};\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_ariaLabel')\n\tpublic validateAriaLabel(value?: string): void {\n\t\twatchString(this, '_ariaLabel', value, {\n\t\t\trequired: true,\n\t\t});\n\t\ta11yHintLabelingLandmarks(value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_links')\n\tpublic validateLinks(value?: Stringified<NavLinkProps[]>): void {\n\t\twatchNavLinks('KolSkipNav', this, value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (componentWillLoad)\n\t */\n\tpublic componentWillLoad(): void {\n\t\tthis.validateAriaLabel(this._ariaLabel);\n\t\tthis.validateLinks(this._links);\n\t}\n}\n"],"mappings":";;;mRAAA,MAAMA,EAAkB,0+C,MCoCXC,EAAU,M,oFA8BU,CAC/BC,WAAY,IACZC,OAAQ,G,CA/BFC,SACN,OACCC,EAAA,oBAAiBC,KAAKC,MAAML,YAC3BG,EAAA,UACEC,KAAKC,MAAMJ,OAAOK,KAAI,CAACC,EAAoBC,IAE1CL,EAAA,MAAIM,IAAKD,GACRL,EAAA,WAAAO,OAAAC,OAAA,GAAcJ,EAAI,CAAEK,SAAU,Y,CA+B9BC,kBAAkBC,GACxBC,EAAYX,KAAM,aAAcU,EAAO,CACtCE,SAAU,OAEXC,EAA0BH,E,CAOpBI,cAAcJ,GACpBK,EAAc,aAAcf,KAAMU,E,CAM5BM,oBACNhB,KAAKS,kBAAkBT,KAAKJ,YAC5BI,KAAKc,cAAcd,KAAKH,O"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as o,h as i}from"./index-50adf9a0.js";const r=":host{--kolibri-border-color:#666;--kolibri-border-radius:0.125rem;--kolibri-border-width:1px;--kolibri-color-error:#f44336;--kolibri-color-info:#2196f3;--kolibri-color-success:#4caf50;--kolibri-color-warning:#ff9800;--kolibri-color-primary:#3f51b5;--kolibri-color-secondary:#ff4081;--kolibri-color-normal:#9e9e9e;--kolibri-color-danger:#f44336;--kolibri-color-ghost:#f5f5f5;--kolibri-color-disabled:#bdbdbd;--kolibri-color-text:#222222;--kolibri-color-visited:#9c27b0;--kolibri-font-family:Verdana, Arial, Tahoma, Helvetica, sans-serif;--kolibri-font-size:16px;--kolibri-spacing:0.25rem}:host{font-family:inherit;font-size:inherit}:host *{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}:host{display:inline-block}a,button{background-color:transparent;border:none;font-size:inherit;margin:0;padding:0;transition-duration:0.5s;transition-property:background-color, color, border-color}:host{font-family:var(--kolibri-font-family);font-size:inherit}*{box-sizing:border-box}kol-icon{color:inherit}kol-span-wc{display:grid;gap:var(--kolibri-spacing);place-items:center}kol-span-wc>span{display:flex;gap:var(--kolibri-spacing);place-items:center}kol-span-wc>kol-icon,kol-span-wc>span>kol-icon{display:inline-grid;place-items:center;width:1em;height:1em}a,button,input,select,textarea{appearance:none;cursor:pointer}a.icon-only>kol-span-wc>span>span,button.icon-only>kol-span-wc>span>span{display:none}h1,h2,h3,h4,h5,h6{font-family:var(--kolibri-font-family);font-size:var(--kolibri-font-size);margin:0;padding:0}",n=class{constructor(i){o(this,i),this._icon=void 0,this._iconOnly=!1,this._label=void 0}render(){return i("kol-span-wc",{_icon:this._icon,_iconOnly:this._iconOnly,_label:this._label},i("slot",{name:"expert",slot:"expert"}))}};n.style={default:r};export{n as kol_span};
4
+ import{r as o,h as i}from"./index-50adf9a0.js";const r=":host{--kolibri-border-color:#666;--kolibri-border-radius:0.125rem;--kolibri-border-width:1px;--kolibri-color-error:#f44336;--kolibri-color-info:#2196f3;--kolibri-color-success:#4caf50;--kolibri-color-warning:#ff9800;--kolibri-color-primary:#3f51b5;--kolibri-color-secondary:#ff4081;--kolibri-color-normal:#9e9e9e;--kolibri-color-danger:#f44336;--kolibri-color-ghost:#f5f5f5;--kolibri-color-disabled:#bdbdbd;--kolibri-color-text:#222222;--kolibri-color-visited:#9c27b0;--kolibri-font-family:Verdana, Arial, Tahoma, Helvetica, sans-serif;--kolibri-font-size:16px;--kolibri-spacing:0.25rem}:host *{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}a,button{background-color:transparent;border:none;font-size:inherit;margin:0;padding:0;transition-duration:0.5s;transition-property:background-color, color, border-color}:host{font-family:var(--kolibri-font-family);font-size:var(--kolibri-font-size)}*{box-sizing:border-box}kol-icon{color:inherit}kol-span-wc{display:grid;gap:var(--kolibri-spacing);place-items:center}kol-span-wc>span{display:flex;gap:var(--kolibri-spacing);place-items:center}kol-span-wc>kol-icon,kol-span-wc>span>kol-icon{display:inline-grid;place-items:center;width:1em;height:1em}a,button,input,select,textarea{appearance:none;cursor:pointer}.icon-only>kol-span-wc>span>span{display:none}h1,h2,h3,h4,h5,h6{font-family:var(--kolibri-font-family);font-size:var(--kolibri-font-size);margin:0;padding:0}",n=class{constructor(i){o(this,i),this._icon=void 0,this._iconOnly=!1,this._label=void 0}render(){return i("kol-span-wc",{_icon:this._icon,_iconOnly:this._iconOnly,_label:this._label},i("slot",{name:"expert",slot:"expert"}))}};n.style={default:r};export{n as kol_span};
@@ -1 +1 @@
1
- {"version":3,"names":["defaultStyleCss","KolSpan","render","h","_icon","this","_iconOnly","_label","name","slot"],"sources":["./src/components/span/style.css?tag=kol-span&mode=default&encapsulation=shadow","./src/components/span/shadow.tsx"],"sourcesContent":["@import '../style.css';\n","import { Component, h, JSX, Prop } from '@stencil/core';\nimport { Stringified } from '../../types/common';\n\nimport { KoliBriIconProp } from '../../types/icon';\nimport { Props } from './component';\n\n@Component({\n\ttag: 'kol-span',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolSpan implements Props {\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<kol-span-wc _icon={this._icon} _iconOnly={this._iconOnly} _label={this._label}>\n\t\t\t\t{/*\n\t\t\t\t\tEs ist keine gute Idee hier einen Slot einzufügen, da dadurch ermöglicht wird,\n\t\t\t\t\tdie Unterstützung hinsichtlich der Barrierefreiheit der Komponente zu umgehen.\n\t\t\t\t*/}\n\t\t\t\t<slot name=\"expert\" slot=\"expert\" />\n\t\t\t</kol-span-wc>\n\t\t);\n\t}\n\n\t/**\n\t * Gibt den Class-Identifier eines Icons eine eingebunden Icofont an. (z.B. https://icofont.com/)\n\t */\n\t@Prop() public _icon?: Stringified<KoliBriIconProp>;\n\n\t/**\n\t * Gibt an, ob nur das Icon angezeigt wird.\n\t */\n\t@Prop({ reflect: true }) public _iconOnly?: boolean = false;\n\n\t/**\n\t * Gibt einen beschreibenden Text für das Text-Element an.\n\t */\n\t@Prop() public _label!: string;\n}\n"],"mappings":";;;+CAAA,MAAMA,EAAkB,sgD,MCaXC,EAAO,M,6DAqBmC,M,sBApB/CC,SACN,OACCC,EAAA,eAAaC,MAAOC,KAAKD,MAAOE,UAAWD,KAAKC,UAAWC,OAAQF,KAAKE,QAKvEJ,EAAA,QAAMK,KAAK,SAASC,KAAK,W"}
1
+ {"version":3,"names":["defaultStyleCss","KolSpan","render","h","_icon","this","_iconOnly","_label","name","slot"],"sources":["./src/components/span/style.css?tag=kol-span&mode=default&encapsulation=shadow","./src/components/span/shadow.tsx"],"sourcesContent":["@import '../style.css';\n","import { Component, h, JSX, Prop } from '@stencil/core';\nimport { Stringified } from '../../types/common';\n\nimport { KoliBriIconProp } from '../../types/icon';\nimport { Props } from './component';\n\n@Component({\n\ttag: 'kol-span',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolSpan implements Props {\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<kol-span-wc _icon={this._icon} _iconOnly={this._iconOnly} _label={this._label}>\n\t\t\t\t<slot name=\"expert\" slot=\"expert\" />\n\t\t\t</kol-span-wc>\n\t\t);\n\t}\n\n\t/**\n\t * Gibt den Class-Identifier eines Icons eine eingebunden Icofont an. (z.B. https://icofont.com/)\n\t */\n\t@Prop() public _icon?: Stringified<KoliBriIconProp>;\n\n\t/**\n\t * Gibt an, ob nur das Icon angezeigt wird.\n\t */\n\t@Prop({ reflect: true }) public _iconOnly?: boolean = false;\n\n\t/**\n\t * Gibt einen beschreibenden Text für das Text-Element an.\n\t */\n\t@Prop() public _label!: string;\n}\n"],"mappings":";;;+CAAA,MAAMA,EAAkB,w6C,MCaXC,EAAO,M,6DAiBmC,M,sBAhB/CC,SACN,OACCC,EAAA,eAAaC,MAAOC,KAAKD,MAAOE,UAAWD,KAAKC,UAAWC,OAAQF,KAAKE,QACvEJ,EAAA,QAAMK,KAAK,SAASC,KAAK,W"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as i,h as o,H as r}from"./index-50adf9a0.js";import{b as n}from"./prop.validators-15724e89.js";import{a}from"./i18n-1305db0e.js";import"./index-599f5430.js";import"./a11y.tipps-5cdbd5e2.js";import"./dev.utils-05f4e663.js";import"./reuse-56bb5a4b.js";const s=":host{--kolibri-border-color:#666;--kolibri-border-radius:0.125rem;--kolibri-border-width:1px;--kolibri-color-error:#f44336;--kolibri-color-info:#2196f3;--kolibri-color-success:#4caf50;--kolibri-color-warning:#ff9800;--kolibri-color-primary:#3f51b5;--kolibri-color-secondary:#ff4081;--kolibri-color-normal:#9e9e9e;--kolibri-color-danger:#f44336;--kolibri-color-ghost:#f5f5f5;--kolibri-color-disabled:#bdbdbd;--kolibri-color-text:#222222;--kolibri-color-visited:#9c27b0;--kolibri-font-family:Verdana, Arial, Tahoma, Helvetica, sans-serif;--kolibri-font-size:16px;--kolibri-spacing:0.25rem}:host{font-family:inherit;font-size:inherit}:host *{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}:host{display:inline-block}a,button{background-color:transparent;border:none;font-size:inherit;margin:0;padding:0;transition-duration:0.5s;transition-property:background-color, color, border-color}:host{font-family:var(--kolibri-font-family);font-size:inherit}*{box-sizing:border-box}kol-icon{color:inherit}kol-span-wc{display:grid;gap:var(--kolibri-spacing);place-items:center}kol-span-wc>span{display:flex;gap:var(--kolibri-spacing);place-items:center}kol-span-wc>kol-icon,kol-span-wc>span>kol-icon{display:inline-grid;place-items:center;width:1em;height:1em}a,button,input,select,textarea{appearance:none;cursor:pointer}a.icon-only>kol-span-wc>span>span,button.icon-only>kol-span-wc>span>span{display:none}h1,h2,h3,h4,h5,h6{font-family:var(--kolibri-font-family);font-size:var(--kolibri-font-size);margin:0;padding:0}.spin{display:inline-block;height:1rem;position:relative;width:3rem}.spin span{animation-timing-function:cubic-bezier(0, 1, 1, 0);border-color:#fff;border-radius:50%;border-style:solid;border-width:0.1rem;height:0.8rem;position:absolute;top:0.1rem;width:0.8rem}.spin span:nth-child(1){background-color:#fc0;z-index:0;animation:spin1 2s infinite;left:0.1rem}.spin span:nth-child(2){background-color:#f00;z-index:1;animation:spin2 2s infinite;left:0.1rem}.spin span:nth-child(3){background-color:#000;z-index:1;animation:spin2 2s infinite;left:1.1rem}.spin span:nth-child(4){background-color:#666;z-index:0;animation:spin3 2s infinite;left:2.1rem}@keyframes spin1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes spin2{0%{transform:translate(0, 0)}100%{transform:translate(1rem, 0)}}@keyframes spin3{0%{transform:scale(1)}100%{transform:scale(0)}}",e=class{constructor(o){i(this,o),this.showToggled=!1,this._show=!1,this.state={}}render(){return o(r,null,this.state._show?o("span",{"aria-busy":"true","aria-label":a("kol-action-running"),"aria-live":"polite",class:"spin",role:"alert"},o("span",{class:"bg-spin-1"}),o("span",{class:"bg-spin-2"}),o("span",{class:"bg-spin-3"}),o("span",{class:"bg-neutral"})):this.showToggled&&o("span",{"aria-label":a("kol-action-done"),"aria-busy":"false","aria-live":"polite",role:"alert"}))}validateShow(i){this.showToggled=!0===this.state._show&&!1===this._show,n(this,"_show",i)}componentWillLoad(){this.validateShow(this._show)}static get watchers(){return{_show:["validateShow"]}}};e.style={default:s};export{e as kol_spin};
4
+ import{r as i,h as r,H as o}from"./index-50adf9a0.js";import{b as a}from"./prop.validators-769a843a.js";import{a as n}from"./i18n-8e14d822.js";import"./index-676dbf61.js";import"./a11y.tipps-5cdbd5e2.js";import"./dev.utils-05f4e663.js";import"./reuse-56bb5a4b.js";import"./index-4f2a12cc.js";const s=":host{--kolibri-border-color:#666;--kolibri-border-radius:0.125rem;--kolibri-border-width:1px;--kolibri-color-error:#f44336;--kolibri-color-info:#2196f3;--kolibri-color-success:#4caf50;--kolibri-color-warning:#ff9800;--kolibri-color-primary:#3f51b5;--kolibri-color-secondary:#ff4081;--kolibri-color-normal:#9e9e9e;--kolibri-color-danger:#f44336;--kolibri-color-ghost:#f5f5f5;--kolibri-color-disabled:#bdbdbd;--kolibri-color-text:#222222;--kolibri-color-visited:#9c27b0;--kolibri-font-family:Verdana, Arial, Tahoma, Helvetica, sans-serif;--kolibri-font-size:16px;--kolibri-spacing:0.25rem}:host *{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}a,button{background-color:transparent;border:none;font-size:inherit;margin:0;padding:0;transition-duration:0.5s;transition-property:background-color, color, border-color}:host{font-family:var(--kolibri-font-family);font-size:var(--kolibri-font-size)}*{box-sizing:border-box}kol-icon{color:inherit}kol-span-wc{display:grid;gap:var(--kolibri-spacing);place-items:center}kol-span-wc>span{display:flex;gap:var(--kolibri-spacing);place-items:center}kol-span-wc>kol-icon,kol-span-wc>span>kol-icon{display:inline-grid;place-items:center;width:1em;height:1em}a,button,input,select,textarea{appearance:none;cursor:pointer}.icon-only>kol-span-wc>span>span{display:none}h1,h2,h3,h4,h5,h6{font-family:var(--kolibri-font-family);font-size:var(--kolibri-font-size);margin:0;padding:0}.spin{display:inline-block;height:1rem;position:relative;width:3rem}.spin span{animation-timing-function:cubic-bezier(0, 1, 1, 0);border-color:#fff;border-radius:50%;border-style:solid;border-width:0.1rem;height:0.8rem;position:absolute;top:0.1rem;width:0.8rem}.spin span:nth-child(1){background-color:#fc0;z-index:0;animation:spin1 2s infinite;left:0.1rem}.spin span:nth-child(2){background-color:#f00;z-index:1;animation:spin2 2s infinite;left:0.1rem}.spin span:nth-child(3){background-color:#000;z-index:1;animation:spin2 2s infinite;left:1.1rem}.spin span:nth-child(4){background-color:#666;z-index:0;animation:spin3 2s infinite;left:2.1rem}@keyframes spin1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes spin2{0%{transform:translate(0, 0)}100%{transform:translate(1rem, 0)}}@keyframes spin3{0%{transform:scale(1)}100%{transform:scale(0)}}",e=class{constructor(o){i(this,o),this.showToggled=!1,this._show=!1,this.state={}}render(){return r(o,null,this.state._show?r("span",{"aria-busy":"true","aria-label":n("kol-action-running"),"aria-live":"polite",class:"spin",role:"alert"},r("span",{class:"bg-spin-1"}),r("span",{class:"bg-spin-2"}),r("span",{class:"bg-spin-3"}),r("span",{class:"bg-neutral"})):this.showToggled&&r("span",{"aria-label":n("kol-action-done"),"aria-busy":"false","aria-live":"polite",role:"alert"}))}validateShow(i){this.showToggled=!0===this.state._show&&!1===this._show,a(this,"_show",i)}componentWillLoad(){this.validateShow(this._show)}static get watchers(){return{_show:["validateShow"]}}};e.style={default:s};export{e as kol_spin};
@@ -1 +1 @@
1
- {"version":3,"names":["defaultStyleCss","KolSpin","this","showToggled","render","h","Host","state","_show","translate","class","role","validateShow","value","watchBoolean","componentWillLoad"],"sources":["./src/components/spin/style.css?tag=kol-spin&mode=default&encapsulation=shadow","./src/components/spin/component.tsx"],"sourcesContent":["@import '../style.css';\n\n.spin {\n\tdisplay: inline-block;\n\theight: 1rem;\n\tposition: relative;\n\twidth: 3rem;\n}\n.spin span {\n\tanimation-timing-function: cubic-bezier(0, 1, 1, 0);\n\tborder-color: #fff;\n\tborder-radius: 50%;\n\tborder-style: solid;\n\tborder-width: 0.1rem;\n\theight: 0.8rem;\n\tposition: absolute;\n\ttop: 0.1rem;\n\twidth: 0.8rem;\n}\n.spin span:nth-child(1) {\n\tbackground-color: #fc0;\n\tz-index: 0;\n\tanimation: spin1 2s infinite;\n\tleft: 0.1rem;\n}\n.spin span:nth-child(2) {\n\tbackground-color: #f00;\n\tz-index: 1;\n\tanimation: spin2 2s infinite;\n\tleft: 0.1rem;\n}\n.spin span:nth-child(3) {\n\tbackground-color: #000;\n\tz-index: 1;\n\tanimation: spin2 2s infinite;\n\tleft: 1.1rem;\n}\n.spin span:nth-child(4) {\n\tbackground-color: #666;\n\tz-index: 0;\n\tanimation: spin3 2s infinite;\n\tleft: 2.1rem;\n}\n\n@keyframes spin1 {\n\t0% {\n\t\ttransform: scale(0);\n\t}\n\t100% {\n\t\ttransform: scale(1);\n\t}\n}\n\n@keyframes spin2 {\n\t0% {\n\t\ttransform: translate(0, 0);\n\t}\n\t100% {\n\t\ttransform: translate(1rem, 0);\n\t}\n}\n\n@keyframes spin3 {\n\t0% {\n\t\ttransform: scale(1);\n\t}\n\t100% {\n\t\ttransform: scale(0);\n\t}\n}\n","import { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { Generic } from '@a11y-ui/core';\nimport { watchBoolean } from '../../utils/prop.validators';\nimport { translate } from '../../i18n';\n\n/**\n * API\n */\ntype RequiredProps = unknown;\ntype OptionalProps = {\n\tshow: boolean;\n};\nexport type Props = Generic.Element.Members<RequiredProps, OptionalProps>;\n\ntype RequiredStates = RequiredProps;\ntype OptionalStates = OptionalProps;\ntype States = Generic.Element.Members<RequiredStates, OptionalStates>;\n\n@Component({\n\ttag: 'kol-spin',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolSpin implements Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates> {\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t{this.state._show ? (\n\t\t\t\t\t<span aria-busy=\"true\" aria-label={translate('kol-action-running')} aria-live=\"polite\" class=\"spin\" role=\"alert\">\n\t\t\t\t\t\t<span class=\"bg-spin-1\"></span>\n\t\t\t\t\t\t<span class=\"bg-spin-2\"></span>\n\t\t\t\t\t\t<span class=\"bg-spin-3\"></span>\n\t\t\t\t\t\t<span class=\"bg-neutral\"></span>\n\t\t\t\t\t</span>\n\t\t\t\t) : (\n\t\t\t\t\tthis.showToggled && <span aria-label={translate('kol-action-done')} aria-busy=\"false\" aria-live=\"polite\" role=\"alert\"></span>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Gibt an, ob die Ladeanzeige eingeblendet wird oder nicht.\n\t */\n\t@Prop({ reflect: true }) public _show?: boolean = false;\n\n\t/**\n\t * @see: components/abbr/component.tsx (@State)\n\t */\n\t@State() public state: States = {};\n\n\tprivate showToggled = false;\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_show')\n\tpublic validateShow(value?: boolean): void {\n\t\tthis.showToggled = this.state._show === true && this._show === false;\n\t\twatchBoolean(this, '_show', value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (componentWillLoad)\n\t */\n\tpublic componentWillLoad(): void {\n\t\tthis.validateShow(this._show);\n\t}\n}\n"],"mappings":";;;mQAAA,MAAMA,EAAkB,41E,MC0BXC,EAAO,M,yBA4BXC,KAAAC,YAAc,M,WAP4B,M,WAKlB,E,CAzBzBC,SACN,OACCC,EAACC,EAAI,KACHJ,KAAKK,MAAMC,MACXH,EAAA,oBAAgB,OAAM,aAAaI,EAAU,sBAAqB,YAAY,SAASC,MAAM,OAAOC,KAAK,SACxGN,EAAA,QAAMK,MAAM,cACZL,EAAA,QAAMK,MAAM,cACZL,EAAA,QAAMK,MAAM,cACZL,EAAA,QAAMK,MAAM,gBAGbR,KAAKC,aAAeE,EAAA,qBAAkBI,EAAU,mBAAkB,YAAY,QAAO,YAAW,SAASE,KAAK,U,CAsB3GC,aAAaC,GACnBX,KAAKC,YAAcD,KAAKK,MAAMC,QAAU,MAAQN,KAAKM,QAAU,MAC/DM,EAAaZ,KAAM,QAASW,E,CAMtBE,oBACNb,KAAKU,aAAaV,KAAKM,M"}
1
+ {"version":3,"names":["defaultStyleCss","KolSpin","this","showToggled","render","h","Host","state","_show","translate","class","role","validateShow","value","watchBoolean","componentWillLoad"],"sources":["./src/components/spin/style.css?tag=kol-spin&mode=default&encapsulation=shadow","./src/components/spin/component.tsx"],"sourcesContent":["@import '../style.css';\n\n.spin {\n\tdisplay: inline-block;\n\theight: 1rem;\n\tposition: relative;\n\twidth: 3rem;\n}\n.spin span {\n\tanimation-timing-function: cubic-bezier(0, 1, 1, 0);\n\tborder-color: #fff;\n\tborder-radius: 50%;\n\tborder-style: solid;\n\tborder-width: 0.1rem;\n\theight: 0.8rem;\n\tposition: absolute;\n\ttop: 0.1rem;\n\twidth: 0.8rem;\n}\n.spin span:nth-child(1) {\n\tbackground-color: #fc0;\n\tz-index: 0;\n\tanimation: spin1 2s infinite;\n\tleft: 0.1rem;\n}\n.spin span:nth-child(2) {\n\tbackground-color: #f00;\n\tz-index: 1;\n\tanimation: spin2 2s infinite;\n\tleft: 0.1rem;\n}\n.spin span:nth-child(3) {\n\tbackground-color: #000;\n\tz-index: 1;\n\tanimation: spin2 2s infinite;\n\tleft: 1.1rem;\n}\n.spin span:nth-child(4) {\n\tbackground-color: #666;\n\tz-index: 0;\n\tanimation: spin3 2s infinite;\n\tleft: 2.1rem;\n}\n\n@keyframes spin1 {\n\t0% {\n\t\ttransform: scale(0);\n\t}\n\t100% {\n\t\ttransform: scale(1);\n\t}\n}\n\n@keyframes spin2 {\n\t0% {\n\t\ttransform: translate(0, 0);\n\t}\n\t100% {\n\t\ttransform: translate(1rem, 0);\n\t}\n}\n\n@keyframes spin3 {\n\t0% {\n\t\ttransform: scale(1);\n\t}\n\t100% {\n\t\ttransform: scale(0);\n\t}\n}\n","import { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { Generic } from '@a11y-ui/core';\nimport { watchBoolean } from '../../utils/prop.validators';\nimport { translate } from '../../i18n';\n\n/**\n * API\n */\ntype RequiredProps = unknown;\ntype OptionalProps = {\n\tshow: boolean;\n};\nexport type Props = Generic.Element.Members<RequiredProps, OptionalProps>;\n\ntype RequiredStates = RequiredProps;\ntype OptionalStates = OptionalProps;\ntype States = Generic.Element.Members<RequiredStates, OptionalStates>;\n\n@Component({\n\ttag: 'kol-spin',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolSpin implements Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates> {\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t{this.state._show ? (\n\t\t\t\t\t<span aria-busy=\"true\" aria-label={translate('kol-action-running')} aria-live=\"polite\" class=\"spin\" role=\"alert\">\n\t\t\t\t\t\t<span class=\"bg-spin-1\"></span>\n\t\t\t\t\t\t<span class=\"bg-spin-2\"></span>\n\t\t\t\t\t\t<span class=\"bg-spin-3\"></span>\n\t\t\t\t\t\t<span class=\"bg-neutral\"></span>\n\t\t\t\t\t</span>\n\t\t\t\t) : (\n\t\t\t\t\tthis.showToggled && <span aria-label={translate('kol-action-done')} aria-busy=\"false\" aria-live=\"polite\" role=\"alert\"></span>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Gibt an, ob die Ladeanzeige eingeblendet wird oder nicht.\n\t */\n\t@Prop({ reflect: true }) public _show?: boolean = false;\n\n\t/**\n\t * @see: components/abbr/component.tsx (@State)\n\t */\n\t@State() public state: States = {};\n\n\tprivate showToggled = false;\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_show')\n\tpublic validateShow(value?: boolean): void {\n\t\tthis.showToggled = this.state._show === true && this._show === false;\n\t\twatchBoolean(this, '_show', value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (componentWillLoad)\n\t */\n\tpublic componentWillLoad(): void {\n\t\tthis.validateShow(this._show);\n\t}\n}\n"],"mappings":";;;oSAAA,MAAMA,EAAkB,8vE,MC0BXC,EAAO,M,yBA4BXC,KAAAC,YAAc,M,WAP4B,M,WAKlB,E,CAzBzBC,SACN,OACCC,EAACC,EAAI,KACHJ,KAAKK,MAAMC,MACXH,EAAA,oBAAgB,OAAM,aAAaI,EAAU,sBAAqB,YAAY,SAASC,MAAM,OAAOC,KAAK,SACxGN,EAAA,QAAMK,MAAM,cACZL,EAAA,QAAMK,MAAM,cACZL,EAAA,QAAMK,MAAM,cACZL,EAAA,QAAMK,MAAM,gBAGbR,KAAKC,aAAeE,EAAA,qBAAkBI,EAAU,mBAAkB,YAAY,QAAO,YAAW,SAASE,KAAK,U,CAsB3GC,aAAaC,GACnBX,KAAKC,YAAcD,KAAKK,MAAMC,QAAU,MAAQN,KAAKM,QAAU,MAC/DM,EAAaZ,KAAM,QAASW,E,CAMtBE,oBACNb,KAAKU,aAAaV,KAAKM,M"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as a,h as i,H as t}from"./index-50adf9a0.js";import{w as e}from"./prop.validators-15724e89.js";import{a as r}from"./i18n-1305db0e.js";import"./index-599f5430.js";import"./a11y.tipps-5cdbd5e2.js";import"./dev.utils-05f4e663.js";import"./reuse-56bb5a4b.js";const s=class{constructor(i){a(this,i),this._ariaLabel=void 0,this._symbol=void 0,this.state={_ariaLabel:r("kol-warning"),_symbol:""}}render(){return i(t,null,i("span",{"aria-label":this.state._ariaLabel,role:"term"},this.state._symbol))}validateAriaLabel(a){e(this,"_ariaLabel",a,{required:!0})}validateSymbol(a){e(this,"_symbol",a,{required:!0})}componentWillLoad(){this.validateAriaLabel(this._ariaLabel),this.validateSymbol(this._symbol)}static get watchers(){return{_ariaLabel:["validateAriaLabel"],_symbol:["validateSymbol"]}}};export{s as kol_symbol};
4
+ import{r as a,h as i,H as t}from"./index-50adf9a0.js";import{w as r}from"./prop.validators-769a843a.js";import{a as s}from"./i18n-8e14d822.js";import"./index-676dbf61.js";import"./a11y.tipps-5cdbd5e2.js";import"./dev.utils-05f4e663.js";import"./reuse-56bb5a4b.js";import"./index-4f2a12cc.js";const e=class{constructor(i){a(this,i),this._ariaLabel=void 0,this._symbol=void 0,this.state={_ariaLabel:s("kol-warning"),_symbol:""}}render(){return i(t,null,i("span",{"aria-label":this.state._ariaLabel,role:"term"},this.state._symbol))}validateAriaLabel(a){r(this,"_ariaLabel",a,{required:!0})}validateSymbol(a){r(this,"_symbol",a,{required:!0})}componentWillLoad(){this.validateAriaLabel(this._ariaLabel),this.validateSymbol(this._symbol)}static get watchers(){return{_ariaLabel:["validateAriaLabel"],_symbol:["validateSymbol"]}}};export{e as kol_symbol};
@@ -1 +1 @@
1
- {"version":3,"names":["KolSymbol","_ariaLabel","translate","_symbol","render","h","Host","this","state","role","validateAriaLabel","value","watchString","required","validateSymbol","componentWillLoad"],"sources":["./src/components/symbol/component.tsx"],"sourcesContent":["import { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { Generic } from '@a11y-ui/core';\nimport { watchString } from '../../utils/prop.validators';\nimport { translate } from '../../i18n';\n\n/**\n * API\n */\ntype RequiredProps = {\n\tariaLabel: string;\n\tsymbol: string;\n};\ntype OptionalProps = unknown;\nexport type Props = Generic.Element.Members<RequiredProps, OptionalProps>;\n\ntype RequiredStates = RequiredProps;\ntype OptionalStates = OptionalProps;\ntype States = Generic.Element.Members<RequiredStates, OptionalStates>;\n\n@Component({\n\ttag: 'kol-symbol',\n\tshadow: false,\n})\nexport class KolSymbol implements Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates> {\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<span aria-label={this.state._ariaLabel} role=\"term\">\n\t\t\t\t\t{this.state._symbol}\n\t\t\t\t</span>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Gibt an, was der Screenreader ausgeben soll\n\t */\n\t@Prop() public _ariaLabel!: string;\n\n\t/**\n\t * Dieses Property gibt den String an der angezeigt werden soll.\n\t */\n\t@Prop() public _symbol!: string;\n\n\t/**\n\t * @see: components/abbr/component.tsx (@State)\n\t */\n\t@State() public state: States = {\n\t\t_ariaLabel: translate('kol-warning'),\n\t\t_symbol: '⚠',\n\t};\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_ariaLabel')\n\tpublic validateAriaLabel(value?: string): void {\n\t\twatchString(this, '_ariaLabel', value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_symbol')\n\tpublic validateSymbol(value?: string): void {\n\t\twatchString(this, '_symbol', value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (componentWillLoad)\n\t */\n\tpublic componentWillLoad(): void {\n\t\tthis.validateAriaLabel(this._ariaLabel);\n\t\tthis.validateSymbol(this._symbol);\n\t}\n}\n"],"mappings":";;;8QAwBaA,EAAS,M,qFAwBW,CAC/BC,WAAYC,EAAU,eACtBC,QAAS,I,CAzBHC,SACN,OACCC,EAACC,EAAI,KACJD,EAAA,qBAAkBE,KAAKC,MAAMP,WAAYQ,KAAK,QAC5CF,KAAKC,MAAML,S,CA4BTO,kBAAkBC,GACxBC,EAAYL,KAAM,aAAcI,EAAO,CACtCE,SAAU,M,CAQLC,eAAeH,GACrBC,EAAYL,KAAM,UAAWI,EAAO,CACnCE,SAAU,M,CAOLE,oBACNR,KAAKG,kBAAkBH,KAAKN,YAC5BM,KAAKO,eAAeP,KAAKJ,Q"}
1
+ {"version":3,"names":["KolSymbol","_ariaLabel","translate","_symbol","render","h","Host","this","state","role","validateAriaLabel","value","watchString","required","validateSymbol","componentWillLoad"],"sources":["./src/components/symbol/component.tsx"],"sourcesContent":["import { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { Generic } from '@a11y-ui/core';\nimport { watchString } from '../../utils/prop.validators';\nimport { translate } from '../../i18n';\n\n/**\n * API\n */\ntype RequiredProps = {\n\tariaLabel: string;\n\tsymbol: string;\n};\ntype OptionalProps = unknown;\nexport type Props = Generic.Element.Members<RequiredProps, OptionalProps>;\n\ntype RequiredStates = RequiredProps;\ntype OptionalStates = OptionalProps;\ntype States = Generic.Element.Members<RequiredStates, OptionalStates>;\n\n@Component({\n\ttag: 'kol-symbol',\n\tshadow: false,\n})\nexport class KolSymbol implements Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates> {\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<span aria-label={this.state._ariaLabel} role=\"term\">\n\t\t\t\t\t{this.state._symbol}\n\t\t\t\t</span>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Gibt an, was der Screenreader ausgeben soll\n\t */\n\t@Prop() public _ariaLabel!: string;\n\n\t/**\n\t * Dieses Property gibt den String an der angezeigt werden soll.\n\t */\n\t@Prop() public _symbol!: string;\n\n\t/**\n\t * @see: components/abbr/component.tsx (@State)\n\t */\n\t@State() public state: States = {\n\t\t_ariaLabel: translate('kol-warning'),\n\t\t_symbol: '…', // required\n\t};\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_ariaLabel')\n\tpublic validateAriaLabel(value?: string): void {\n\t\twatchString(this, '_ariaLabel', value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\t@Watch('_symbol')\n\tpublic validateSymbol(value?: string): void {\n\t\twatchString(this, '_symbol', value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (componentWillLoad)\n\t */\n\tpublic componentWillLoad(): void {\n\t\tthis.validateAriaLabel(this._ariaLabel);\n\t\tthis.validateSymbol(this._symbol);\n\t}\n}\n"],"mappings":";;;0SAwBaA,EAAS,M,qFAwBW,CAC/BC,WAAYC,EAAU,eACtBC,QAAS,I,CAzBHC,SACN,OACCC,EAACC,EAAI,KACJD,EAAA,qBAAkBE,KAAKC,MAAMP,WAAYQ,KAAK,QAC5CF,KAAKC,MAAML,S,CA4BTO,kBAAkBC,GACxBC,EAAYL,KAAM,aAAcI,EAAO,CACtCE,SAAU,M,CAQLC,eAAeH,GACrBC,EAAYL,KAAM,UAAWI,EAAO,CACnCE,SAAU,M,CAOLE,oBACNR,KAAKG,kBAAkBH,KAAKN,YAC5BM,KAAKO,eAAeP,KAAKJ,Q"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as t,h as i,H as e}from"./index-50adf9a0.js";import{s as o,w as n,g as a,p as s,a as r,o as l}from"./prop.validators-15724e89.js";import{a as h}from"./i18n-1305db0e.js";import"./index-599f5430.js";import"./a11y.tipps-5cdbd5e2.js";import"./dev.utils-05f4e663.js";import"./reuse-56bb5a4b.js";const d=":host{--kolibri-border-color:#666;--kolibri-border-radius:0.125rem;--kolibri-border-width:1px;--kolibri-color-error:#f44336;--kolibri-color-info:#2196f3;--kolibri-color-success:#4caf50;--kolibri-color-warning:#ff9800;--kolibri-color-primary:#3f51b5;--kolibri-color-secondary:#ff4081;--kolibri-color-normal:#9e9e9e;--kolibri-color-danger:#f44336;--kolibri-color-ghost:#f5f5f5;--kolibri-color-disabled:#bdbdbd;--kolibri-color-text:#222222;--kolibri-color-visited:#9c27b0;--kolibri-font-family:Verdana, Arial, Tahoma, Helvetica, sans-serif;--kolibri-font-size:16px;--kolibri-spacing:0.25rem}:host{font-family:inherit;font-size:inherit}:host *{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}:host{display:inline-block}a,button{background-color:transparent;border:none;font-size:inherit;margin:0;padding:0;transition-duration:0.5s;transition-property:background-color, color, border-color}:host{font-family:var(--kolibri-font-family);font-size:inherit}*{box-sizing:border-box}kol-icon{color:inherit}kol-span-wc{display:grid;gap:var(--kolibri-spacing);place-items:center}kol-span-wc>span{display:flex;gap:var(--kolibri-spacing);place-items:center}kol-span-wc>kol-icon,kol-span-wc>span>kol-icon{display:inline-grid;place-items:center;width:1em;height:1em}a,button,input,select,textarea{appearance:none;cursor:pointer}a.icon-only>kol-span-wc>span>span,button.icon-only>kol-span-wc>span>span{display:none}h1,h2,h3,h4,h5,h6{font-family:var(--kolibri-font-family);font-size:var(--kolibri-font-size);margin:0;padding:0}:host>div{overflow-x:auto;overflow-y:hidden}table{width:100%}th>div{display:grid;grid-template-columns:1fr auto;place-items:center;gap:0.25em}div.pagination{padding:0.5em}div.pagination,div.pagination>div:last-child{display:grid;place-items:center;gap:0.5em}@media (min-width: 1024px){div.pagination,div.pagination>div:last-child{grid-auto-flow:column}div.pagination kol-pagination{display:flex;gap:calc(4 * var(--kolibri-spacing))}}",c=[10,20,50,100],f=new Map,p=class{constructor(i){t(this,i),this.horizontal=!0,this.sortDirections=new Map,this.showPagination=!1,this.pageStartSlice=0,this.pageEndSlice=10,this.setSortDirection=(t,i)=>{this.sortDirections.clear(),this.sortDirections.set(t,i),this.sortFunction=t},this.handlePagination={onClick:(t,i)=>{var a;"function"==typeof(null===(a=this.state._pagination._on)||void 0===a?void 0:a.onClick)&&this.state._pagination._on.onClick(t,i),o(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_page:i}))},onChangePage:(t,i)=>{var a;"function"==typeof(null===(a=this.state._pagination._on)||void 0===a?void 0:a.onChangePage)&&this.state._pagination._on.onChangePage(t,i),o(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_page:i}))},onChangePageSize:(t,i)=>{var a;"function"==typeof(null===(a=this.state._pagination._on)||void 0===a?void 0:a.onChangePageSize)&&this.state._pagination._on.onChangePageSize(t,i),o(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_pageSize:i})),o(this,"_pageSize",i)}},this.beforePatchPagination=(t,i,o,a)=>{"_pagination"===a&&(this.showPagination=!0===t||""===t||"object"==typeof t&&null!==t)},this.updateSortedData=()=>{let t=this.state._data;if("function"==typeof this.sortFunction)switch(this.sortDirections.get(this.sortFunction)){case"NOS":t=[...this.state._data];break;case"ASC":t=this.sortFunction([...this.state._data]);break;default:t=this.sortFunction([...this.state._data]).reverse()}o(this,"_sortedData",t)},this._caption=void 0,this._data=void 0,this._headers=void 0,this._minWidth=void 0,this._pagination=void 0,this.state={_caption:"",_data:[],_headers:{horizontal:[],vertical:[]},_pagination:{_page:1,_pageSize:10,_total:0},_sortedData:[]}}validateCaption(t){n(this,"_caption",t,{required:!0})}validateData(t){a(t,(()=>{l(t,(()=>{void 0===t&&(t=[]);try{t=s(t)}catch(t){}Array.isArray(t)&&void 0===t.find((t=>!("object"==typeof t&&null!==t)))&&o(this,"_data",t,{afterPatch:()=>{const t=setTimeout((()=>{clearTimeout(t),this.updateSortedData()}))}})}))}))}validateHeaders(t){a(t,(()=>{l(t,(()=>{try{t=s(t)}catch(t){}r(this,"_headers",(t=>"object"==typeof t&&null!==t),new Set(["KoliBriTableHeaders"]),t,{hooks:{beforePatch:t=>{var i,o;const a=t;null===(i=a.horizontal)||void 0===i||i.forEach((t=>{t.forEach((t=>{"function"==typeof t.sort&&"string"==typeof t.sortDirection&&this.setSortDirection(t.sort,t.sortDirection)}))})),null===(o=a.vertical)||void 0===o||o.forEach((t=>{t.forEach((t=>{"function"==typeof t.sort&&"string"==typeof t.sortDirection&&this.setSortDirection(t.sort,t.sortDirection)}))}))}}})}))}))}validateMinWidth(t){n(this,"_minWidth",t,{defaultValue:void 0})}validatePagination(t){try{t=s(t)}catch(t){}r(this,"_pagination",(()=>!0),new Set(["boolean","KoliBriTablePagination"]),t,{hooks:{beforePatch:this.beforePatchPagination}})}componentWillLoad(){this.validateCaption(this._caption),this.validateData(this._data),this.validateHeaders(this._headers),this.validateMinWidth(this._minWidth),this.validatePagination(this._pagination)}getNumberOfCols(t,i){let o=0;return t.forEach((t=>{let i=0;t.forEach((t=>{var o;return i+=null!==(o=t.colSpan)&&void 0!==o?o:1})),o<i&&(o=i)})),0===o&&(o=i.length),o}getNumberOfRows(t,i){let o=0;return t.forEach((t=>{let i=0;t.forEach((t=>{var o;return i+=null!==(o=t.rowSpan)&&void 0!==o?o:1})),o<i&&(o=i)})),0===o&&(o=i.length),o}filterHeaderKeys(t){const i=[];return t.forEach((t=>{t.forEach((t=>{"string"==typeof t.key&&i.push(t)}))})),i}getPrimaryHeader(t){var i,o;let a=this.filterHeaderKeys(null!==(i=t.horizontal)&&void 0!==i?i:[]);return this.horizontal=!0,0===a.length&&(a=this.filterHeaderKeys(null!==(o=t.vertical)&&void 0!==o?o:[]),a.length>0&&(this.horizontal=!1)),a}createDataField(t,i){i.horizontal=Array.isArray(null==i?void 0:i.horizontal)?i.horizontal:[],i.vertical=Array.isArray(null==i?void 0:i.vertical)?i.vertical:[];const o=this.getPrimaryHeader(i),a=this.getNumberOfCols(i.horizontal,t),e=this.getNumberOfRows(i.vertical,t),n=[],s=[],r=[];i.vertical.forEach(((t,i)=>{s[i]=0,r[i]=[]}));for(let l=0;l<e;l++){const e=[];i.vertical.forEach(((t,i)=>{let o=0;if(r[i].forEach((t=>o+=t)),o<=l){const a=t[l-o+s[i]];if("object"==typeof a){e.push(Object.assign(Object.assign({},a),{asTd:!1,data:{}}));let t=1;if("number"==typeof a.rowSpan&&a.rowSpan>1&&(t=a.rowSpan),r[i].push(t),"number"==typeof a.colSpan&&a.colSpan>1)for(let o=1;o<a.colSpan;o++)r[i+o].push(t);s[i]++}}}));for(let i=0;i<a;i++)!0===this.horizontal?"object"==typeof o[i]&&null!==o[i]&&"string"==typeof o[i].key&&"object"==typeof t[l]&&null!==t[l]&&e.push(Object.assign(Object.assign({},o[i]),{colSpan:void 0,data:t[l],label:t[l][o[i].key],rowSpan:void 0})):"object"==typeof o[l]&&null!==o[l]&&"string"==typeof o[l].key&&"object"==typeof t[i]&&null!==t[i]&&e.push(Object.assign(Object.assign({},o[l]),{colSpan:void 0,data:t[i],label:t[i][o[l].key],rowSpan:void 0}));n.push(e)}if(0===t.length){let t=0,o=0;Array.isArray(i.horizontal)&&i.horizontal.length>0&&i.horizontal[0].forEach((i=>{t+=i.colSpan||1})),Array.isArray(i.vertical)&&i.vertical.length>0&&(t-=i.vertical.length,i.vertical[0].forEach((t=>{o+=t.rowSpan||1})));const a={colSpan:t,label:h("kol-no-entries"),render:void 0,rowSpan:Math.max(o,1)};0===n.length?n.push([a]):n[0].push(a)}return n}selectDisplayedData(t,i,o){return"number"==typeof i&&i>0&&"number"==typeof o&&o>0?(this.pageStartSlice=i*(o-1),this.pageEndSlice=i*o>t.length?t.length:i*o,t.slice(this.pageStartSlice,this.pageEndSlice)):(this.pageStartSlice=0,this.pageEndSlice=t.length,t)}cellRender(t,i){i&&(clearTimeout(f.get(i)),f.set(i,setTimeout((()=>{if(clearTimeout(f.get(i)),"function"==typeof t.render){const o=t.render(i,{asTd:t.asTd,label:t.label,textAlign:t.textAlign,width:t.width},t.data,this.state._data);"string"==typeof o&&(i.innerHTML=o)}}))))}render(){var t,o;const a=this.selectDisplayedData(this.state._sortedData,this.showPagination?null!==(o=null===(t=this.state._pagination)||void 0===t?void 0:t._pageSize)&&void 0!==o?o:10:this.state._sortedData.length,this.state._pagination._page||1),n=this.createDataField(a,this.state._headers);return i(e,null,i("div",{tabindex:"0"},i("table",{style:{minWidth:this.state._minWidth}},i("caption",null,this.state._caption),Array.isArray(this.state._headers.horizontal)&&i("thead",null,this.state._headers.horizontal.map(((t,o)=>i("tr",{key:`thead-${o}`},t.map(((t,a)=>!0===t.asTd?i("td",{key:`thead-${o}-${a}-${t.label}`,class:{[t.textAlign]:"string"==typeof t.textAlign&&t.textAlign.length>0},colSpan:t.colSpan,rowSpan:t.rowSpan,style:{textAlign:t.textAlign,width:t.width},ref:"function"==typeof t.render?i=>{this.cellRender(t,i)}:void 0,innerHTML:"function"!=typeof t.render?t.label:""}):i("th",{key:`thead-${o}-${a}-${t.label}`,scope:"number"==typeof t.colSpan&&t.colSpan>1?"colgroup":"col",colSpan:t.colSpan,rowSpan:t.rowSpan,style:{textAlign:t.textAlign,width:t.width},"aria-sort":"function"==typeof t.sort?t.sort!==this.sortFunction||"NOS"===this.sortDirections.get(t.sort)||void 0===this.sortDirections.get(t.sort)?"none":"ASC"===this.sortDirections.get(t.sort)?"ascending":"descending":void 0,"data-sort":`sort-${this.sortDirections.get(t.sort)}`},i("div",{class:"w-full flex gap-1 items-center"},i("div",{class:{"w-full":!0,[t.textAlign]:"string"==typeof t.textAlign&&t.textAlign.length>0},innerHTML:t.label,style:{textAlign:t.textAlign}}),"function"==typeof t.sort&&i("kol-button",{exportparts:"button,ghost",_ariaLabel:h("kol-change-order",{placeholders:{colLabel:t.label}}),_icon:t.sort!==this.sortFunction||"NOS"===this.sortDirections.get(t.sort)||void 0===this.sortDirections.get(t.sort)?"fas fa-sort":"ASC"===this.sortDirections.get(t.sort)?"fas fa-sort-up":"fas fa-sort-down",_iconOnly:!0,_label:h("kol-change-order",{placeholders:{colLabel:t.label}}),_on:{onClick:()=>{if("function"==typeof t.sort){switch(this.sortFunction=t.sort,this.sortDirections.get(this.sortFunction)){case"ASC":this.setSortDirection(this.sortFunction,"DESC");break;case"DESC":this.setSortDirection(this.sortFunction,"NOS");break;default:this.setSortDirection(this.sortFunction,"ASC")}this.updateSortedData()}}},_variant:"ghost"}))))))))),i("tbody",null,n.map(((t,o)=>i("tr",{key:`tbody-${o}`},t.map(((t,a)=>!1===t.asTd?i("th",{key:`tbody-${o}-${a}-${t.label}`,scope:"number"==typeof t.rowSpan&&t.rowSpan>1?"rowgroup":"row",colSpan:t.colSpan,rowSpan:t.rowSpan,style:{textAlign:t.textAlign,width:t.width},"aria-sort":"function"==typeof t.sort?t.sort!==this.sortFunction||"NOS"===this.sortDirections.get(t.sort)||void 0===this.sortDirections.get(t.sort)?"none":"ASC"===this.sortDirections.get(t.sort)?"ascending":"descending":void 0,"data-sort":`sort-${this.sortDirections.get(t.sort)}`},i("div",{class:"w-full flex gap-1 items-center"},i("div",{class:{"w-full":!0,[t.textAlign]:"string"==typeof t.textAlign&&t.textAlign.length>0},innerHTML:t.label,style:{textAlign:t.textAlign}}),"function"==typeof t.sort&&i("kol-button",{exportparts:"button,ghost",_ariaLabel:h("kol-change-order",{placeholders:{colLabel:t.label}}),_icon:t.sort!==this.sortFunction||"NOS"===this.sortDirections.get(t.sort)||void 0===this.sortDirections.get(t.sort)?"fas fa-sort":"ASC"===this.sortDirections.get(t.sort)?"fas fa-sort-up":"fas fa-sort-down",_iconOnly:!0,_label:h("kol-change-order",{placeholders:{colLabel:t.label}}),_on:{onClick:()=>{if("function"==typeof t.sort){switch(this.sortFunction=t.sort,this.sortDirections.get(this.sortFunction)){case"ASC":this.setSortDirection(this.sortFunction,"DESC");break;case"DESC":this.setSortDirection(this.sortFunction,"NOS");break;default:this.setSortDirection(this.sortFunction,"ASC")}this.updateSortedData()}}},_variant:"ghost"}))):i("td",{key:`tbody-${o}-${a}-${t.label}`,class:{[t.textAlign]:"string"==typeof t.textAlign&&t.textAlign.length>0},colSpan:t.colSpan,rowSpan:t.rowSpan,style:{textAlign:t.textAlign,width:t.width},ref:"function"==typeof t.render?i=>{this.cellRender(t,i)}:void 0,innerHTML:"function"!=typeof t.render?t.label:""}))))))))),this.pageEndSlice>0&&this.showPagination&&i("div",{class:"pagination"},i("span",null,"Einträge ",this.pageEndSlice>0?this.pageStartSlice+1:0," bis ",this.pageEndSlice," von"," ",this.state._pagination._total||(Array.isArray(this.state._data)?this.state._data.length:0)," angezeigt"),i("div",null,i("kol-pagination",{_boundaryCount:this.state._pagination._boundaryCount,_customClass:this.state._pagination._customClass,_on:this.handlePagination,_page:this.state._pagination._page,_pageSize:this.state._pagination._pageSize,_pageSizeOptions:this.state._pagination._pageSizeOptions||c,_siblingCount:this.state._pagination._siblingCount,_tooltipAlign:"bottom",_total:this.state._pagination._total||this.state._data.length}))))}static get watchers(){return{_caption:["validateCaption"],_data:["validateData"],_headers:["validateHeaders"],_minWidth:["validateMinWidth"],_pagination:["validatePagination"]}}};p.style={default:d};export{p as kol_table};
4
+ import{r as t,h as i,H as e}from"./index-50adf9a0.js";import{s as o,w as n,g as a,p as s,a as r,o as l}from"./prop.validators-769a843a.js";import{a as h}from"./i18n-8e14d822.js";import"./index-676dbf61.js";import"./a11y.tipps-5cdbd5e2.js";import"./dev.utils-05f4e663.js";import"./reuse-56bb5a4b.js";import"./index-4f2a12cc.js";const d=":host{--kolibri-border-color:#666;--kolibri-border-radius:0.125rem;--kolibri-border-width:1px;--kolibri-color-error:#f44336;--kolibri-color-info:#2196f3;--kolibri-color-success:#4caf50;--kolibri-color-warning:#ff9800;--kolibri-color-primary:#3f51b5;--kolibri-color-secondary:#ff4081;--kolibri-color-normal:#9e9e9e;--kolibri-color-danger:#f44336;--kolibri-color-ghost:#f5f5f5;--kolibri-color-disabled:#bdbdbd;--kolibri-color-text:#222222;--kolibri-color-visited:#9c27b0;--kolibri-font-family:Verdana, Arial, Tahoma, Helvetica, sans-serif;--kolibri-font-size:16px;--kolibri-spacing:0.25rem}:host *{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}a,button{background-color:transparent;border:none;font-size:inherit;margin:0;padding:0;transition-duration:0.5s;transition-property:background-color, color, border-color}:host{font-family:var(--kolibri-font-family);font-size:var(--kolibri-font-size)}*{box-sizing:border-box}kol-icon{color:inherit}kol-span-wc{display:grid;gap:var(--kolibri-spacing);place-items:center}kol-span-wc>span{display:flex;gap:var(--kolibri-spacing);place-items:center}kol-span-wc>kol-icon,kol-span-wc>span>kol-icon{display:inline-grid;place-items:center;width:1em;height:1em}a,button,input,select,textarea{appearance:none;cursor:pointer}.icon-only>kol-span-wc>span>span{display:none}h1,h2,h3,h4,h5,h6{font-family:var(--kolibri-font-family);font-size:var(--kolibri-font-size);margin:0;padding:0}:host{max-width:100%}:host>div{overflow-x:auto;overflow-y:hidden}table{width:100%}th>div{display:grid;grid-template-columns:1fr auto;place-items:center;gap:0.25em}div.pagination{padding:0.5em}div.pagination,div.pagination>div:last-child{display:grid;place-items:center;gap:0.5em}@media (min-width: 1024px){div.pagination,div.pagination>div:last-child{grid-auto-flow:column}div.pagination kol-pagination{display:flex;gap:calc(4 * var(--kolibri-spacing))}}",c=[10,20,50,100],f=new Map,p=class{constructor(i){t(this,i),this.horizontal=!0,this.sortDirections=new Map,this.showPagination=!1,this.pageStartSlice=0,this.pageEndSlice=10,this.setSortDirection=(t,i)=>{this.sortDirections.clear(),this.sortDirections.set(t,i),this.sortFunction=t},this.handlePagination={onClick:(t,i)=>{var a;"function"==typeof(null===(a=this.state._pagination._on)||void 0===a?void 0:a.onClick)&&this.state._pagination._on.onClick(t,i),o(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_page:i}))},onChangePage:(t,i)=>{var a;"function"==typeof(null===(a=this.state._pagination._on)||void 0===a?void 0:a.onChangePage)&&this.state._pagination._on.onChangePage(t,i),o(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_page:i}))},onChangePageSize:(t,i)=>{var a;"function"==typeof(null===(a=this.state._pagination._on)||void 0===a?void 0:a.onChangePageSize)&&this.state._pagination._on.onChangePageSize(t,i),o(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_pageSize:i})),o(this,"_pageSize",i)}},this.beforePatchPagination=(t,i,o,a)=>{"_pagination"===a&&(this.showPagination=!0===t||""===t||"object"==typeof t&&null!==t)},this.updateSortedData=()=>{let t=this.state._data;if("function"==typeof this.sortFunction)switch(this.sortDirections.get(this.sortFunction)){case"NOS":t=[...this.state._data];break;case"ASC":t=this.sortFunction([...this.state._data]);break;default:t=this.sortFunction([...this.state._data]).reverse()}o(this,"_sortedData",t)},this._caption=void 0,this._data=void 0,this._headers=void 0,this._minWidth=void 0,this._pagination=void 0,this.state={_caption:"…",_data:[],_headers:{horizontal:[],vertical:[]},_pagination:{_page:1,_pageSize:10,_total:0},_sortedData:[]}}validateCaption(t){n(this,"_caption",t,{required:!0})}validateData(t){a(t,(()=>{l(t,(()=>{void 0===t&&(t=[]);try{t=s(t)}catch(t){}Array.isArray(t)&&void 0===t.find((t=>!("object"==typeof t&&null!==t)))&&o(this,"_data",t,{afterPatch:()=>{const t=setTimeout((()=>{clearTimeout(t),this.updateSortedData()}))}})}))}))}validateHeaders(t){a(t,(()=>{l(t,(()=>{try{t=s(t)}catch(t){}r(this,"_headers",(t=>"object"==typeof t&&null!==t),new Set(["KoliBriTableHeaders"]),t,{hooks:{beforePatch:t=>{var i,o;const a=t;null===(i=a.horizontal)||void 0===i||i.forEach((t=>{t.forEach((t=>{"function"==typeof t.sort&&"string"==typeof t.sortDirection&&this.setSortDirection(t.sort,t.sortDirection)}))})),null===(o=a.vertical)||void 0===o||o.forEach((t=>{t.forEach((t=>{"function"==typeof t.sort&&"string"==typeof t.sortDirection&&this.setSortDirection(t.sort,t.sortDirection)}))}))}}})}))}))}validateMinWidth(t){n(this,"_minWidth",t,{defaultValue:void 0})}validatePagination(t){try{t=s(t)}catch(t){}r(this,"_pagination",(()=>!0),new Set(["boolean","KoliBriTablePagination"]),t,{hooks:{beforePatch:this.beforePatchPagination}})}componentWillLoad(){this.validateCaption(this._caption),this.validateData(this._data),this.validateHeaders(this._headers),this.validateMinWidth(this._minWidth),this.validatePagination(this._pagination)}getNumberOfCols(t,i){let o=0;return t.forEach((t=>{let i=0;t.forEach((t=>{var o;return i+=null!==(o=t.colSpan)&&void 0!==o?o:1})),o<i&&(o=i)})),0===o&&(o=i.length),o}getNumberOfRows(t,i){let o=0;return t.forEach((t=>{let i=0;t.forEach((t=>{var o;return i+=null!==(o=t.rowSpan)&&void 0!==o?o:1})),o<i&&(o=i)})),0===o&&(o=i.length),o}filterHeaderKeys(t){const i=[];return t.forEach((t=>{t.forEach((t=>{"string"==typeof t.key&&i.push(t)}))})),i}getPrimaryHeader(t){var i,o;let a=this.filterHeaderKeys(null!==(i=t.horizontal)&&void 0!==i?i:[]);return this.horizontal=!0,0===a.length&&(a=this.filterHeaderKeys(null!==(o=t.vertical)&&void 0!==o?o:[]),a.length>0&&(this.horizontal=!1)),a}createDataField(t,i){i.horizontal=Array.isArray(null==i?void 0:i.horizontal)?i.horizontal:[],i.vertical=Array.isArray(null==i?void 0:i.vertical)?i.vertical:[];const o=this.getPrimaryHeader(i),a=this.getNumberOfCols(i.horizontal,t),e=this.getNumberOfRows(i.vertical,t),n=[],s=[],r=[];i.vertical.forEach(((t,i)=>{s[i]=0,r[i]=[]}));for(let l=0;l<e;l++){const e=[];i.vertical.forEach(((t,i)=>{let o=0;if(r[i].forEach((t=>o+=t)),o<=l){const a=t[l-o+s[i]];if("object"==typeof a){e.push(Object.assign(Object.assign({},a),{asTd:!1,data:{}}));let t=1;if("number"==typeof a.rowSpan&&a.rowSpan>1&&(t=a.rowSpan),r[i].push(t),"number"==typeof a.colSpan&&a.colSpan>1)for(let o=1;o<a.colSpan;o++)r[i+o].push(t);s[i]++}}}));for(let i=0;i<a;i++)!0===this.horizontal?"object"==typeof o[i]&&null!==o[i]&&"string"==typeof o[i].key&&"object"==typeof t[l]&&null!==t[l]&&e.push(Object.assign(Object.assign({},o[i]),{colSpan:void 0,data:t[l],label:t[l][o[i].key],rowSpan:void 0})):"object"==typeof o[l]&&null!==o[l]&&"string"==typeof o[l].key&&"object"==typeof t[i]&&null!==t[i]&&e.push(Object.assign(Object.assign({},o[l]),{colSpan:void 0,data:t[i],label:t[i][o[l].key],rowSpan:void 0}));n.push(e)}if(0===t.length){let t=0,o=0;Array.isArray(i.horizontal)&&i.horizontal.length>0&&i.horizontal[0].forEach((i=>{t+=i.colSpan||1})),Array.isArray(i.vertical)&&i.vertical.length>0&&(t-=i.vertical.length,i.vertical[0].forEach((t=>{o+=t.rowSpan||1})));const a={colSpan:t,label:h("kol-no-entries"),render:void 0,rowSpan:Math.max(o,1)};0===n.length?n.push([a]):n[0].push(a)}return n}selectDisplayedData(t,i,o){return"number"==typeof i&&i>0&&"number"==typeof o&&o>0?(this.pageStartSlice=i*(o-1),this.pageEndSlice=i*o>t.length?t.length:i*o,t.slice(this.pageStartSlice,this.pageEndSlice)):(this.pageStartSlice=0,this.pageEndSlice=t.length,t)}cellRender(t,i){i&&(clearTimeout(f.get(i)),f.set(i,setTimeout((()=>{if(clearTimeout(f.get(i)),"function"==typeof t.render){const o=t.render(i,{asTd:t.asTd,label:t.label,textAlign:t.textAlign,width:t.width},t.data,this.state._data);"string"==typeof o&&(i.innerHTML=o)}}))))}render(){var t,o;const a=this.selectDisplayedData(this.state._sortedData,this.showPagination?null!==(o=null===(t=this.state._pagination)||void 0===t?void 0:t._pageSize)&&void 0!==o?o:10:this.state._sortedData.length,this.state._pagination._page||1),n=this.createDataField(a,this.state._headers);return i(e,null,i("div",{tabindex:"0"},i("table",{style:{minWidth:this.state._minWidth}},i("caption",null,this.state._caption),Array.isArray(this.state._headers.horizontal)&&i("thead",null,this.state._headers.horizontal.map(((t,o)=>i("tr",{key:`thead-${o}`},t.map(((t,a)=>!0===t.asTd?i("td",{key:`thead-${o}-${a}-${t.label}`,class:{[t.textAlign]:"string"==typeof t.textAlign&&t.textAlign.length>0},colSpan:t.colSpan,rowSpan:t.rowSpan,style:{textAlign:t.textAlign,width:t.width},ref:"function"==typeof t.render?i=>{this.cellRender(t,i)}:void 0,innerHTML:"function"!=typeof t.render?t.label:""}):i("th",{key:`thead-${o}-${a}-${t.label}`,scope:"number"==typeof t.colSpan&&t.colSpan>1?"colgroup":"col",colSpan:t.colSpan,rowSpan:t.rowSpan,style:{textAlign:t.textAlign,width:t.width},"aria-sort":"function"==typeof t.sort?t.sort!==this.sortFunction||"NOS"===this.sortDirections.get(t.sort)||void 0===this.sortDirections.get(t.sort)?"none":"ASC"===this.sortDirections.get(t.sort)?"ascending":"descending":void 0,"data-sort":`sort-${this.sortDirections.get(t.sort)}`},i("div",{class:"w-full flex gap-1 items-center"},i("div",{class:{"w-full":!0,[t.textAlign]:"string"==typeof t.textAlign&&t.textAlign.length>0},innerHTML:t.label,style:{textAlign:t.textAlign}}),"function"==typeof t.sort&&i("kol-button",{exportparts:"button,ghost",_ariaLabel:h("kol-change-order",{placeholders:{colLabel:t.label}}),_icon:t.sort!==this.sortFunction||"NOS"===this.sortDirections.get(t.sort)||void 0===this.sortDirections.get(t.sort)?"fas fa-sort":"ASC"===this.sortDirections.get(t.sort)?"fas fa-sort-up":"fas fa-sort-down",_iconOnly:!0,_label:h("kol-change-order",{placeholders:{colLabel:t.label}}),_on:{onClick:()=>{if("function"==typeof t.sort){switch(this.sortFunction=t.sort,this.sortDirections.get(this.sortFunction)){case"ASC":this.setSortDirection(this.sortFunction,"DESC");break;case"DESC":this.setSortDirection(this.sortFunction,"NOS");break;default:this.setSortDirection(this.sortFunction,"ASC")}this.updateSortedData()}}},_variant:"ghost"}))))))))),i("tbody",null,n.map(((t,o)=>i("tr",{key:`tbody-${o}`},t.map(((t,a)=>!1===t.asTd?i("th",{key:`tbody-${o}-${a}-${t.label}`,scope:"number"==typeof t.rowSpan&&t.rowSpan>1?"rowgroup":"row",colSpan:t.colSpan,rowSpan:t.rowSpan,style:{textAlign:t.textAlign,width:t.width},"aria-sort":"function"==typeof t.sort?t.sort!==this.sortFunction||"NOS"===this.sortDirections.get(t.sort)||void 0===this.sortDirections.get(t.sort)?"none":"ASC"===this.sortDirections.get(t.sort)?"ascending":"descending":void 0,"data-sort":`sort-${this.sortDirections.get(t.sort)}`},i("div",{class:"w-full flex gap-1 items-center"},i("div",{class:{"w-full":!0,[t.textAlign]:"string"==typeof t.textAlign&&t.textAlign.length>0},innerHTML:t.label,style:{textAlign:t.textAlign}}),"function"==typeof t.sort&&i("kol-button",{exportparts:"button,ghost",_ariaLabel:h("kol-change-order",{placeholders:{colLabel:t.label}}),_icon:t.sort!==this.sortFunction||"NOS"===this.sortDirections.get(t.sort)||void 0===this.sortDirections.get(t.sort)?"fas fa-sort":"ASC"===this.sortDirections.get(t.sort)?"fas fa-sort-up":"fas fa-sort-down",_iconOnly:!0,_label:h("kol-change-order",{placeholders:{colLabel:t.label}}),_on:{onClick:()=>{if("function"==typeof t.sort){switch(this.sortFunction=t.sort,this.sortDirections.get(this.sortFunction)){case"ASC":this.setSortDirection(this.sortFunction,"DESC");break;case"DESC":this.setSortDirection(this.sortFunction,"NOS");break;default:this.setSortDirection(this.sortFunction,"ASC")}this.updateSortedData()}}},_variant:"ghost"}))):i("td",{key:`tbody-${o}-${a}-${t.label}`,class:{[t.textAlign]:"string"==typeof t.textAlign&&t.textAlign.length>0},colSpan:t.colSpan,rowSpan:t.rowSpan,style:{textAlign:t.textAlign,width:t.width},ref:"function"==typeof t.render?i=>{this.cellRender(t,i)}:void 0,innerHTML:"function"!=typeof t.render?t.label:""}))))))))),this.pageEndSlice>0&&this.showPagination&&i("div",{class:"pagination"},i("span",null,"Einträge ",this.pageEndSlice>0?this.pageStartSlice+1:0," bis ",this.pageEndSlice," von"," ",this.state._pagination._total||(Array.isArray(this.state._data)?this.state._data.length:0)," angezeigt"),i("div",null,i("kol-pagination",{_boundaryCount:this.state._pagination._boundaryCount,_customClass:this.state._pagination._customClass,_on:this.handlePagination,_page:this.state._pagination._page,_pageSize:this.state._pagination._pageSize,_pageSizeOptions:this.state._pagination._pageSizeOptions||c,_siblingCount:this.state._pagination._siblingCount,_tooltipAlign:"bottom",_total:this.state._pagination._total||this.state._data.length}))))}static get watchers(){return{_caption:["validateCaption"],_data:["validateData"],_headers:["validateHeaders"],_minWidth:["validateMinWidth"],_pagination:["validatePagination"]}}};p.style={default:d};export{p as kol_table};