@public-ui/components 1.6.0-rc.2 → 1.6.0-rc.21

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 (1179) hide show
  1. package/custom-elements.json +523 -92
  2. package/dist/cjs/a11y.tipps-b6c69152.js +4 -0
  3. package/dist/cjs/a11y.tipps-b6c69152.js.map +1 -0
  4. package/dist/cjs/align-cddf5d25.js +4 -0
  5. package/dist/cjs/align-cddf5d25.js.map +1 -0
  6. package/dist/cjs/{app-globals-f9bd7c4a.js → app-globals-feb1b3c4.js} +1 -1
  7. package/dist/cjs/app-globals-feb1b3c4.js.map +1 -0
  8. package/dist/cjs/aria-current-3a6c3799.js +4 -0
  9. package/dist/cjs/aria-current-3a6c3799.js.map +1 -0
  10. package/dist/cjs/aria-selected-3951e1df.js +4 -0
  11. package/dist/cjs/aria-selected-3951e1df.js.map +1 -0
  12. package/dist/cjs/bund-f5184e9e.js.map +1 -0
  13. package/dist/cjs/{button-link-153007e8.js → button-link-31b32833.js} +1 -1
  14. package/dist/cjs/button-link-31b32833.js.map +1 -0
  15. package/dist/cjs/{color-8faddadf.js → color-1f2c934b.js} +1 -1
  16. package/dist/cjs/{color-8faddadf.js.map → color-1f2c934b.js.map} +1 -1
  17. package/dist/cjs/controller-292ec4c4.js +4 -0
  18. package/dist/cjs/controller-292ec4c4.js.map +1 -0
  19. package/dist/cjs/controller-39ffcc0a.js +4 -0
  20. package/dist/cjs/controller-39ffcc0a.js.map +1 -0
  21. package/dist/cjs/controller-402687c8.js +4 -0
  22. package/dist/cjs/controller-402687c8.js.map +1 -0
  23. package/dist/cjs/controller-489fdcc0.js +4 -0
  24. package/dist/cjs/controller-489fdcc0.js.map +1 -0
  25. package/dist/cjs/controller-71b8adda.js +4 -0
  26. package/dist/cjs/controller-71b8adda.js.map +1 -0
  27. package/dist/cjs/{controller-f34b5d63.js → controller-8e5cfc47.js} +1 -1
  28. package/dist/cjs/{controller-f34b5d63.js.map → controller-8e5cfc47.js.map} +1 -1
  29. package/dist/cjs/{controller-icon-d3ae7955.js → controller-icon-c201c7d5.js} +1 -1
  30. package/dist/cjs/{controller-icon-d3ae7955.js.map → controller-icon-c201c7d5.js.map} +1 -1
  31. package/dist/cjs/dev.utils-5f0e00ab.js +4 -0
  32. package/dist/cjs/dev.utils-5f0e00ab.js.map +1 -0
  33. package/dist/cjs/{devtools-19dae7ed.js → devtools-cc92674a.js} +1 -1
  34. package/dist/cjs/devtools-cc92674a.js.map +1 -0
  35. package/dist/cjs/{disabled-503e85ce.js → disabled-38b96861.js} +1 -1
  36. package/dist/cjs/disabled-38b96861.js.map +1 -0
  37. package/dist/cjs/events-b49161e2.js +4 -0
  38. package/dist/cjs/events-b49161e2.js.map +1 -0
  39. package/dist/cjs/floating-ui.dom.esm-09852e47.js +4 -0
  40. package/dist/cjs/floating-ui.dom.esm-09852e47.js.map +1 -0
  41. package/dist/cjs/has-closer-0d182990.js +4 -0
  42. package/dist/cjs/has-closer-0d182990.js.map +1 -0
  43. package/dist/cjs/hide-label-847476f3.js +4 -0
  44. package/dist/cjs/hide-label-847476f3.js.map +1 -0
  45. package/dist/cjs/i18n-65c01ca1.js +4 -0
  46. package/dist/cjs/i18n-65c01ca1.js.map +1 -0
  47. package/dist/cjs/{icon-ac20975f.js → icon-ff2d91d2.js} +1 -1
  48. package/dist/cjs/icon-ff2d91d2.js.map +1 -0
  49. package/dist/cjs/image-source-cf475786.js +4 -0
  50. package/dist/cjs/image-source-cf475786.js.map +1 -0
  51. package/dist/cjs/index-68e17b5d.js +4 -0
  52. package/dist/cjs/index-68e17b5d.js.map +1 -0
  53. package/dist/cjs/index-6a24b8dc.js.map +1 -0
  54. package/dist/cjs/index-b63c6785.js +5 -0
  55. package/dist/cjs/index-b63c6785.js.map +1 -0
  56. package/dist/cjs/index.cjs.js +1 -1
  57. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  58. package/dist/cjs/kol-abbr.cjs.entry.js.map +1 -1
  59. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  60. package/dist/cjs/kol-accordion.cjs.entry.js.map +1 -1
  61. package/dist/cjs/kol-alert-wc_2.cjs.entry.js +1 -1
  62. package/dist/cjs/kol-alert-wc_2.cjs.entry.js.map +1 -1
  63. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  64. package/dist/cjs/kol-alert.cjs.entry.js.map +1 -1
  65. package/dist/cjs/kol-avatar-wc.cjs.entry.js +4 -0
  66. package/dist/cjs/kol-avatar-wc.cjs.entry.js.map +1 -0
  67. package/dist/cjs/kol-avatar.cjs.entry.js +4 -0
  68. package/dist/cjs/kol-avatar.cjs.entry.js.map +1 -0
  69. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-badge.cjs.entry.js.map +1 -1
  71. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-breadcrumb.cjs.entry.js.map +1 -1
  73. package/dist/cjs/kol-button-group-wc.cjs.entry.js +1 -1
  74. package/dist/cjs/kol-button-group-wc.cjs.entry.js.map +1 -1
  75. package/dist/cjs/kol-button-group.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-button-group.cjs.entry.js.map +1 -1
  77. package/dist/cjs/kol-button-link-text-switch.cjs.entry.js +4 -0
  78. package/dist/cjs/kol-button-link-text-switch.cjs.entry.js.map +1 -0
  79. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  80. package/dist/cjs/kol-button-link.cjs.entry.js.map +1 -1
  81. package/dist/cjs/kol-button-wc_2.cjs.entry.js +4 -0
  82. package/dist/cjs/kol-button-wc_2.cjs.entry.js.map +1 -0
  83. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  84. package/dist/cjs/kol-button.cjs.entry.js.map +1 -1
  85. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  86. package/dist/cjs/kol-card.cjs.entry.js.map +1 -1
  87. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  88. package/dist/cjs/kol-details.cjs.entry.js.map +1 -1
  89. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  90. package/dist/cjs/kol-form.cjs.entry.js.map +1 -1
  91. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-heading.cjs.entry.js.map +1 -1
  93. package/dist/cjs/kol-icon-font-awesome.cjs.entry.js +1 -1
  94. package/dist/cjs/kol-icon-font-awesome.cjs.entry.js.map +1 -1
  95. package/dist/cjs/kol-icon-icofont.cjs.entry.js +1 -1
  96. package/dist/cjs/kol-icon-icofont.cjs.entry.js.map +1 -1
  97. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  98. package/dist/cjs/kol-icon.cjs.entry.js.map +1 -1
  99. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  100. package/dist/cjs/kol-image.cjs.entry.js.map +1 -1
  101. package/dist/cjs/kol-indented-text.cjs.entry.js +1 -1
  102. package/dist/cjs/kol-indented-text.cjs.entry.js.map +1 -1
  103. package/dist/cjs/kol-input-adapter-leanup.cjs.entry.js +1 -1
  104. package/dist/cjs/kol-input-adapter-leanup.cjs.entry.js.map +1 -1
  105. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  106. package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
  107. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  108. package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
  109. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  110. package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
  111. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  112. package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
  113. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  114. package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
  115. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  116. package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
  117. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  118. package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
  119. package/dist/cjs/kol-input-radio-group.cjs.entry.js +1 -1
  120. package/dist/cjs/kol-input-radio-group.cjs.entry.js.map +1 -1
  121. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  122. package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
  123. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  124. package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
  125. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  126. package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
  127. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  128. package/dist/cjs/kol-kolibri.cjs.entry.js.map +1 -1
  129. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  130. package/dist/cjs/kol-link-button.cjs.entry.js.map +1 -1
  131. package/dist/cjs/kol-link-group.cjs.entry.js +1 -1
  132. package/dist/cjs/kol-link-group.cjs.entry.js.map +1 -1
  133. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  134. package/dist/cjs/kol-link-wc.cjs.entry.js.map +1 -1
  135. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  136. package/dist/cjs/kol-link.cjs.entry.js.map +1 -1
  137. package/dist/cjs/kol-logo.cjs.entry.js +1 -1
  138. package/dist/cjs/kol-logo.cjs.entry.js.map +1 -1
  139. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  140. package/dist/cjs/kol-modal.cjs.entry.js.map +1 -1
  141. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  142. package/dist/cjs/kol-nav.cjs.entry.js.map +1 -1
  143. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  144. package/dist/cjs/kol-pagination.cjs.entry.js.map +1 -1
  145. package/dist/cjs/kol-popover.cjs.entry.js +1 -1
  146. package/dist/cjs/kol-popover.cjs.entry.js.map +1 -1
  147. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  148. package/dist/cjs/kol-progress.cjs.entry.js.map +1 -1
  149. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  150. package/dist/cjs/kol-quote.cjs.entry.js.map +1 -1
  151. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  152. package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
  153. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  154. package/dist/cjs/kol-skip-nav.cjs.entry.js.map +1 -1
  155. package/dist/cjs/kol-span-wc.cjs.entry.js +4 -0
  156. package/dist/cjs/kol-span-wc.cjs.entry.js.map +1 -0
  157. package/dist/cjs/kol-span.cjs.entry.js +1 -1
  158. package/dist/cjs/kol-span.cjs.entry.js.map +1 -1
  159. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  160. package/dist/cjs/kol-spin.cjs.entry.js.map +1 -1
  161. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  162. package/dist/cjs/kol-split-button.cjs.entry.js.map +1 -1
  163. package/dist/cjs/kol-symbol.cjs.entry.js +1 -1
  164. package/dist/cjs/kol-symbol.cjs.entry.js.map +1 -1
  165. package/dist/cjs/kol-table.cjs.entry.js +1 -1
  166. package/dist/cjs/kol-table.cjs.entry.js.map +1 -1
  167. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  168. package/dist/cjs/kol-tabs.cjs.entry.js.map +1 -1
  169. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  170. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  171. package/dist/cjs/kol-toast.cjs.entry.js +1 -1
  172. package/dist/cjs/kol-toast.cjs.entry.js.map +1 -1
  173. package/dist/cjs/kol-tooltip.cjs.entry.js +1 -1
  174. package/dist/cjs/kol-tooltip.cjs.entry.js.map +1 -1
  175. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  176. package/dist/cjs/kol-version.cjs.entry.js.map +1 -1
  177. package/dist/cjs/kolibri.cjs.js +1 -1
  178. package/dist/cjs/kolibri.cjs.js.map +1 -1
  179. package/dist/cjs/label-81c2b4d8.js +4 -0
  180. package/dist/cjs/label-81c2b4d8.js.map +1 -0
  181. package/dist/cjs/loader.cjs.js +1 -1
  182. package/dist/cjs/loader.cjs.js.map +1 -1
  183. package/dist/cjs/prop.validators-f5b2df4a.js +4 -0
  184. package/dist/cjs/prop.validators-f5b2df4a.js.map +1 -0
  185. package/dist/cjs/reuse-5fad9b6e.js +4 -0
  186. package/dist/cjs/reuse-5fad9b6e.js.map +1 -0
  187. package/dist/cjs/rows-9ba1be1b.js +4 -0
  188. package/dist/cjs/rows-9ba1be1b.js.map +1 -0
  189. package/dist/cjs/show-fc77c66d.js +4 -0
  190. package/dist/cjs/show-fc77c66d.js.map +1 -0
  191. package/dist/cjs/suggestions-aaab103a.js +4 -0
  192. package/dist/cjs/suggestions-aaab103a.js.map +1 -0
  193. package/dist/cjs/{tab-index-48c54f71.js → tab-index-65890b01.js} +1 -1
  194. package/dist/cjs/{tab-index-48c54f71.js.map → tab-index-65890b01.js.map} +1 -1
  195. package/dist/cjs/{validation-b985d357.js → validation-e8f9410c.js} +1 -1
  196. package/dist/cjs/{validation-b985d357.js.map → validation-e8f9410c.js.map} +1 -1
  197. package/dist/cjs/validation-f547a58e.js +4 -0
  198. package/dist/cjs/validation-f547a58e.js.map +1 -0
  199. package/dist/components/align.js +4 -0
  200. package/dist/components/align.js.map +1 -0
  201. package/dist/components/aria-selected.js +1 -1
  202. package/dist/components/aria-selected.js.map +1 -1
  203. package/dist/components/bund.js.map +1 -1
  204. package/dist/components/color.js +1 -1
  205. package/dist/components/color.js.map +1 -1
  206. package/dist/components/component.js +1 -1
  207. package/dist/components/component.js.map +1 -1
  208. package/dist/components/component10.js +1 -1
  209. package/dist/components/component10.js.map +1 -1
  210. package/dist/components/component11.js +1 -1
  211. package/dist/components/component11.js.map +1 -1
  212. package/dist/components/component12.js +1 -1
  213. package/dist/components/component12.js.map +1 -1
  214. package/dist/components/component13.js +1 -1
  215. package/dist/components/component13.js.map +1 -1
  216. package/dist/components/component14.js +1 -1
  217. package/dist/components/component14.js.map +1 -1
  218. package/dist/components/component15.js +4 -0
  219. package/dist/components/component15.js.map +1 -0
  220. package/dist/components/component16.js +4 -0
  221. package/dist/components/component16.js.map +1 -0
  222. package/dist/components/component2.js +1 -1
  223. package/dist/components/component2.js.map +1 -1
  224. package/dist/components/component3.js +1 -1
  225. package/dist/components/component3.js.map +1 -1
  226. package/dist/components/component4.js +1 -1
  227. package/dist/components/component4.js.map +1 -1
  228. package/dist/components/component5.js +1 -1
  229. package/dist/components/component5.js.map +1 -1
  230. package/dist/components/component6.js +1 -1
  231. package/dist/components/component6.js.map +1 -1
  232. package/dist/components/component7.js +1 -1
  233. package/dist/components/component7.js.map +1 -1
  234. package/dist/components/component8.js +1 -1
  235. package/dist/components/component8.js.map +1 -1
  236. package/dist/components/component9.js +1 -1
  237. package/dist/components/component9.js.map +1 -1
  238. package/dist/components/controller-icon.js +1 -1
  239. package/dist/components/controller-icon.js.map +1 -1
  240. package/dist/components/controller.js +1 -1
  241. package/dist/components/controller.js.map +1 -1
  242. package/dist/components/controller2.js +1 -1
  243. package/dist/components/controller2.js.map +1 -1
  244. package/dist/components/controller3.js +1 -1
  245. package/dist/components/controller3.js.map +1 -1
  246. package/dist/components/controller4.js +1 -1
  247. package/dist/components/controller4.js.map +1 -1
  248. package/dist/components/devtools.js +1 -1
  249. package/dist/components/devtools.js.map +1 -1
  250. package/dist/components/floating-ui.dom.esm.js +1 -1
  251. package/dist/components/floating-ui.dom.esm.js.map +1 -1
  252. package/dist/components/i18n.js +1 -1
  253. package/dist/components/i18n.js.map +1 -1
  254. package/dist/components/image-source.js +4 -0
  255. package/dist/components/image-source.js.map +1 -0
  256. package/dist/components/index.js.map +1 -1
  257. package/dist/components/kol-abbr.js +1 -1
  258. package/dist/components/kol-abbr.js.map +1 -1
  259. package/dist/components/kol-accordion.js +1 -1
  260. package/dist/components/kol-accordion.js.map +1 -1
  261. package/dist/components/kol-avatar-wc.d.ts +11 -0
  262. package/dist/components/kol-avatar-wc.js +4 -0
  263. package/dist/components/kol-avatar-wc.js.map +1 -0
  264. package/dist/components/kol-avatar.d.ts +11 -0
  265. package/dist/components/kol-avatar.js +4 -0
  266. package/dist/components/kol-avatar.js.map +1 -0
  267. package/dist/components/kol-badge.js +1 -1
  268. package/dist/components/kol-breadcrumb.js +1 -1
  269. package/dist/components/kol-breadcrumb.js.map +1 -1
  270. package/dist/components/kol-button-group-wc.js +1 -1
  271. package/dist/components/kol-button-group.js +1 -1
  272. package/dist/components/kol-button-group.js.map +1 -1
  273. package/dist/components/kol-button-link-text-switch.d.ts +11 -0
  274. package/dist/components/kol-button-link-text-switch.js +4 -0
  275. package/dist/components/kol-button-link-text-switch.js.map +1 -0
  276. package/dist/components/kol-button-link.js +1 -1
  277. package/dist/components/kol-button-link.js.map +1 -1
  278. package/dist/components/kol-card.js +1 -1
  279. package/dist/components/kol-card.js.map +1 -1
  280. package/dist/components/kol-details.js +1 -1
  281. package/dist/components/kol-details.js.map +1 -1
  282. package/dist/components/kol-form.js +1 -1
  283. package/dist/components/kol-form.js.map +1 -1
  284. package/dist/components/kol-heading.js +1 -1
  285. package/dist/components/kol-heading.js.map +1 -1
  286. package/dist/components/kol-icon-font-awesome.js +1 -1
  287. package/dist/components/kol-icon-font-awesome.js.map +1 -1
  288. package/dist/components/kol-icon-icofont.js +1 -1
  289. package/dist/components/kol-icon-icofont.js.map +1 -1
  290. package/dist/components/kol-image.js +1 -1
  291. package/dist/components/kol-image.js.map +1 -1
  292. package/dist/components/kol-indented-text.js +1 -1
  293. package/dist/components/kol-input-adapter-leanup.js +1 -1
  294. package/dist/components/kol-input-adapter-leanup.js.map +1 -1
  295. package/dist/components/kol-input-checkbox.js +1 -1
  296. package/dist/components/kol-input-checkbox.js.map +1 -1
  297. package/dist/components/kol-input-color.js +1 -1
  298. package/dist/components/kol-input-color.js.map +1 -1
  299. package/dist/components/kol-input-date.js +1 -1
  300. package/dist/components/kol-input-date.js.map +1 -1
  301. package/dist/components/kol-input-email.js +1 -1
  302. package/dist/components/kol-input-email.js.map +1 -1
  303. package/dist/components/kol-input-file.js +1 -1
  304. package/dist/components/kol-input-file.js.map +1 -1
  305. package/dist/components/kol-input-number.js +1 -1
  306. package/dist/components/kol-input-number.js.map +1 -1
  307. package/dist/components/kol-input-password.js +1 -1
  308. package/dist/components/kol-input-password.js.map +1 -1
  309. package/dist/components/kol-input-radio-group.js +1 -1
  310. package/dist/components/kol-input-radio-group.js.map +1 -1
  311. package/dist/components/kol-input-radio.js +1 -1
  312. package/dist/components/kol-input-range.js +1 -1
  313. package/dist/components/kol-input-range.js.map +1 -1
  314. package/dist/components/kol-input-text.js +1 -1
  315. package/dist/components/kol-input-text.js.map +1 -1
  316. package/dist/components/kol-input.js +1 -1
  317. package/dist/components/kol-kolibri.js +1 -1
  318. package/dist/components/kol-kolibri.js.map +1 -1
  319. package/dist/components/kol-link-button.js +1 -1
  320. package/dist/components/kol-link-button.js.map +1 -1
  321. package/dist/components/kol-link-group.js +1 -1
  322. package/dist/components/kol-link-group.js.map +1 -1
  323. package/dist/components/kol-link-wc.js +1 -1
  324. package/dist/components/kol-logo.js +1 -1
  325. package/dist/components/kol-logo.js.map +1 -1
  326. package/dist/components/kol-modal.js +1 -1
  327. package/dist/components/kol-modal.js.map +1 -1
  328. package/dist/components/kol-nav.js +1 -1
  329. package/dist/components/kol-nav.js.map +1 -1
  330. package/dist/components/kol-pagination.js +1 -1
  331. package/dist/components/kol-popover.js +1 -1
  332. package/dist/components/kol-popover.js.map +1 -1
  333. package/dist/components/kol-progress.js +1 -1
  334. package/dist/components/kol-progress.js.map +1 -1
  335. package/dist/components/kol-quote.js +1 -1
  336. package/dist/components/kol-quote.js.map +1 -1
  337. package/dist/components/kol-select.js +1 -1
  338. package/dist/components/kol-skip-nav.js +1 -1
  339. package/dist/components/kol-skip-nav.js.map +1 -1
  340. package/dist/components/kol-span.js +1 -1
  341. package/dist/components/kol-span.js.map +1 -1
  342. package/dist/components/kol-spin.js +1 -1
  343. package/dist/components/kol-spin.js.map +1 -1
  344. package/dist/components/kol-split-button.js +1 -1
  345. package/dist/components/kol-split-button.js.map +1 -1
  346. package/dist/components/kol-symbol.js +1 -1
  347. package/dist/components/kol-symbol.js.map +1 -1
  348. package/dist/components/kol-table.js +1 -1
  349. package/dist/components/kol-table.js.map +1 -1
  350. package/dist/components/kol-tabs.js +1 -1
  351. package/dist/components/kol-tabs.js.map +1 -1
  352. package/dist/components/kol-textarea.js +1 -1
  353. package/dist/components/kol-textarea.js.map +1 -1
  354. package/dist/components/kol-toast.js +1 -1
  355. package/dist/components/kol-toast.js.map +1 -1
  356. package/dist/components/kol-version.js +1 -1
  357. package/dist/components/kol-version.js.map +1 -1
  358. package/dist/components/label.js +4 -0
  359. package/dist/components/label.js.map +1 -0
  360. package/dist/components/prop.validators.js +1 -1
  361. package/dist/components/prop.validators.js.map +1 -1
  362. package/dist/components/rows.js +4 -0
  363. package/dist/components/rows.js.map +1 -0
  364. package/dist/components/shadow.js +1 -1
  365. package/dist/components/shadow.js.map +1 -1
  366. package/dist/components/shadow2.js +1 -1
  367. package/dist/components/shadow2.js.map +1 -1
  368. package/dist/components/shadow3.js +1 -1
  369. package/dist/components/shadow3.js.map +1 -1
  370. package/dist/components/show.js +1 -1
  371. package/dist/components/show.js.map +1 -1
  372. package/dist/components/suggestions.js +4 -0
  373. package/dist/components/suggestions.js.map +1 -0
  374. package/dist/components/tab-index.js +1 -1
  375. package/dist/components/tab-index.js.map +1 -1
  376. package/dist/components/validation.js +1 -1
  377. package/dist/components/validation.js.map +1 -1
  378. package/dist/declare.d.ts +26 -0
  379. package/dist/esm/a11y.tipps-5aaa4b49.js +4 -0
  380. package/dist/esm/a11y.tipps-5aaa4b49.js.map +1 -0
  381. package/dist/esm/align-46b557d8.js +4 -0
  382. package/dist/esm/align-46b557d8.js.map +1 -0
  383. package/dist/esm/app-globals-8544fc2e.js +4 -0
  384. package/dist/esm/app-globals-8544fc2e.js.map +1 -0
  385. package/dist/esm/aria-current-8612e789.js +4 -0
  386. package/dist/esm/aria-current-8612e789.js.map +1 -0
  387. package/dist/esm/aria-selected-207d2ea4.js +4 -0
  388. package/dist/esm/aria-selected-207d2ea4.js.map +1 -0
  389. package/dist/esm/bund-056aa89a.js.map +1 -0
  390. package/dist/esm/{button-link-283b2d32.js → button-link-9942db79.js} +1 -1
  391. package/dist/esm/button-link-9942db79.js.map +1 -0
  392. package/dist/esm/{color-abc2fa9c.js → color-a7490f10.js} +1 -1
  393. package/dist/esm/{color-abc2fa9c.js.map → color-a7490f10.js.map} +1 -1
  394. package/dist/esm/controller-069ae0d1.js +4 -0
  395. package/dist/esm/controller-069ae0d1.js.map +1 -0
  396. package/dist/esm/controller-1c487267.js +4 -0
  397. package/dist/esm/controller-1c487267.js.map +1 -0
  398. package/dist/esm/{controller-ec771280.js → controller-5f60dd72.js} +1 -1
  399. package/dist/esm/{controller-ec771280.js.map → controller-5f60dd72.js.map} +1 -1
  400. package/dist/esm/controller-80b38097.js +4 -0
  401. package/dist/esm/controller-80b38097.js.map +1 -0
  402. package/dist/esm/controller-e464a0e5.js +4 -0
  403. package/dist/esm/controller-e464a0e5.js.map +1 -0
  404. package/dist/esm/controller-fc8c559f.js +4 -0
  405. package/dist/esm/controller-fc8c559f.js.map +1 -0
  406. package/dist/esm/{controller-icon-65f3377a.js → controller-icon-bdcafd14.js} +1 -1
  407. package/dist/esm/{controller-icon-65f3377a.js.map → controller-icon-bdcafd14.js.map} +1 -1
  408. package/dist/esm/dev.utils-465c4239.js +4 -0
  409. package/dist/esm/dev.utils-465c4239.js.map +1 -0
  410. package/dist/esm/devtools-1313f714.js +4 -0
  411. package/dist/esm/devtools-1313f714.js.map +1 -0
  412. package/dist/esm/{disabled-6200e69c.js → disabled-5bc12dcc.js} +1 -1
  413. package/dist/esm/disabled-5bc12dcc.js.map +1 -0
  414. package/dist/esm/events-3762d15f.js +4 -0
  415. package/dist/esm/events-3762d15f.js.map +1 -0
  416. package/dist/esm/floating-ui.dom.esm-26e61da8.js +4 -0
  417. package/dist/esm/floating-ui.dom.esm-26e61da8.js.map +1 -0
  418. package/dist/esm/has-closer-4c62df54.js +4 -0
  419. package/dist/esm/has-closer-4c62df54.js.map +1 -0
  420. package/dist/esm/{hide-label-2baeb5c5.js → hide-label-00f5fca6.js} +1 -1
  421. package/dist/esm/hide-label-00f5fca6.js.map +1 -0
  422. package/dist/esm/i18n-3e70fd9b.js +4 -0
  423. package/dist/esm/i18n-3e70fd9b.js.map +1 -0
  424. package/dist/esm/{icon-83ced735.js → icon-a7f1237b.js} +1 -1
  425. package/dist/esm/icon-a7f1237b.js.map +1 -0
  426. package/dist/esm/image-source-f4078f95.js +4 -0
  427. package/dist/esm/image-source-f4078f95.js.map +1 -0
  428. package/dist/esm/index-2c046ff1.js +5 -0
  429. package/dist/esm/index-2c046ff1.js.map +1 -0
  430. package/dist/esm/index-37b5cbcf.js.map +1 -0
  431. package/dist/esm/index-d8ac1088.js +4 -0
  432. package/dist/esm/index-d8ac1088.js.map +1 -0
  433. package/dist/esm/index.js +1 -1
  434. package/dist/esm/kol-abbr.entry.js +1 -1
  435. package/dist/esm/kol-abbr.entry.js.map +1 -1
  436. package/dist/esm/kol-accordion.entry.js +1 -1
  437. package/dist/esm/kol-accordion.entry.js.map +1 -1
  438. package/dist/esm/kol-alert-wc_2.entry.js +1 -1
  439. package/dist/esm/kol-alert-wc_2.entry.js.map +1 -1
  440. package/dist/esm/kol-alert.entry.js +1 -1
  441. package/dist/esm/kol-alert.entry.js.map +1 -1
  442. package/dist/esm/kol-avatar-wc.entry.js +4 -0
  443. package/dist/esm/kol-avatar-wc.entry.js.map +1 -0
  444. package/dist/esm/kol-avatar.entry.js +4 -0
  445. package/dist/esm/kol-avatar.entry.js.map +1 -0
  446. package/dist/esm/kol-badge.entry.js +1 -1
  447. package/dist/esm/kol-badge.entry.js.map +1 -1
  448. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  449. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  450. package/dist/esm/kol-button-group-wc.entry.js +1 -1
  451. package/dist/esm/kol-button-group-wc.entry.js.map +1 -1
  452. package/dist/esm/kol-button-group.entry.js +1 -1
  453. package/dist/esm/kol-button-group.entry.js.map +1 -1
  454. package/dist/esm/kol-button-link-text-switch.entry.js +4 -0
  455. package/dist/esm/kol-button-link-text-switch.entry.js.map +1 -0
  456. package/dist/esm/kol-button-link.entry.js +1 -1
  457. package/dist/esm/kol-button-link.entry.js.map +1 -1
  458. package/dist/esm/kol-button-wc_2.entry.js +4 -0
  459. package/dist/esm/kol-button-wc_2.entry.js.map +1 -0
  460. package/dist/esm/kol-button.entry.js +1 -1
  461. package/dist/esm/kol-button.entry.js.map +1 -1
  462. package/dist/esm/kol-card.entry.js +1 -1
  463. package/dist/esm/kol-card.entry.js.map +1 -1
  464. package/dist/esm/kol-details.entry.js +1 -1
  465. package/dist/esm/kol-details.entry.js.map +1 -1
  466. package/dist/esm/kol-form.entry.js +1 -1
  467. package/dist/esm/kol-form.entry.js.map +1 -1
  468. package/dist/esm/kol-heading.entry.js +1 -1
  469. package/dist/esm/kol-heading.entry.js.map +1 -1
  470. package/dist/esm/kol-icon-font-awesome.entry.js +1 -1
  471. package/dist/esm/kol-icon-font-awesome.entry.js.map +1 -1
  472. package/dist/esm/kol-icon-icofont.entry.js +1 -1
  473. package/dist/esm/kol-icon-icofont.entry.js.map +1 -1
  474. package/dist/esm/kol-icon.entry.js +1 -1
  475. package/dist/esm/kol-icon.entry.js.map +1 -1
  476. package/dist/esm/kol-image.entry.js +1 -1
  477. package/dist/esm/kol-image.entry.js.map +1 -1
  478. package/dist/esm/kol-indented-text.entry.js +1 -1
  479. package/dist/esm/kol-indented-text.entry.js.map +1 -1
  480. package/dist/esm/kol-input-adapter-leanup.entry.js +1 -1
  481. package/dist/esm/kol-input-adapter-leanup.entry.js.map +1 -1
  482. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  483. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  484. package/dist/esm/kol-input-color.entry.js +1 -1
  485. package/dist/esm/kol-input-color.entry.js.map +1 -1
  486. package/dist/esm/kol-input-date.entry.js +1 -1
  487. package/dist/esm/kol-input-date.entry.js.map +1 -1
  488. package/dist/esm/kol-input-email.entry.js +1 -1
  489. package/dist/esm/kol-input-email.entry.js.map +1 -1
  490. package/dist/esm/kol-input-file.entry.js +1 -1
  491. package/dist/esm/kol-input-file.entry.js.map +1 -1
  492. package/dist/esm/kol-input-number.entry.js +1 -1
  493. package/dist/esm/kol-input-number.entry.js.map +1 -1
  494. package/dist/esm/kol-input-password.entry.js +1 -1
  495. package/dist/esm/kol-input-password.entry.js.map +1 -1
  496. package/dist/esm/kol-input-radio-group.entry.js +1 -1
  497. package/dist/esm/kol-input-radio-group.entry.js.map +1 -1
  498. package/dist/esm/kol-input-radio.entry.js +1 -1
  499. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  500. package/dist/esm/kol-input-range.entry.js +1 -1
  501. package/dist/esm/kol-input-range.entry.js.map +1 -1
  502. package/dist/esm/kol-input-text.entry.js +1 -1
  503. package/dist/esm/kol-input-text.entry.js.map +1 -1
  504. package/dist/esm/kol-kolibri.entry.js +1 -1
  505. package/dist/esm/kol-kolibri.entry.js.map +1 -1
  506. package/dist/esm/kol-link-button.entry.js +1 -1
  507. package/dist/esm/kol-link-button.entry.js.map +1 -1
  508. package/dist/esm/kol-link-group.entry.js +1 -1
  509. package/dist/esm/kol-link-group.entry.js.map +1 -1
  510. package/dist/esm/kol-link-wc.entry.js +1 -1
  511. package/dist/esm/kol-link-wc.entry.js.map +1 -1
  512. package/dist/esm/kol-link.entry.js +1 -1
  513. package/dist/esm/kol-link.entry.js.map +1 -1
  514. package/dist/esm/kol-logo.entry.js +1 -1
  515. package/dist/esm/kol-logo.entry.js.map +1 -1
  516. package/dist/esm/kol-modal.entry.js +1 -1
  517. package/dist/esm/kol-modal.entry.js.map +1 -1
  518. package/dist/esm/kol-nav.entry.js +1 -1
  519. package/dist/esm/kol-nav.entry.js.map +1 -1
  520. package/dist/esm/kol-pagination.entry.js +1 -1
  521. package/dist/esm/kol-pagination.entry.js.map +1 -1
  522. package/dist/esm/kol-popover.entry.js +1 -1
  523. package/dist/esm/kol-popover.entry.js.map +1 -1
  524. package/dist/esm/kol-progress.entry.js +1 -1
  525. package/dist/esm/kol-progress.entry.js.map +1 -1
  526. package/dist/esm/kol-quote.entry.js +1 -1
  527. package/dist/esm/kol-quote.entry.js.map +1 -1
  528. package/dist/esm/kol-select.entry.js +1 -1
  529. package/dist/esm/kol-select.entry.js.map +1 -1
  530. package/dist/esm/kol-skip-nav.entry.js +1 -1
  531. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  532. package/dist/esm/kol-span-wc.entry.js +4 -0
  533. package/dist/esm/kol-span-wc.entry.js.map +1 -0
  534. package/dist/esm/kol-span.entry.js +1 -1
  535. package/dist/esm/kol-span.entry.js.map +1 -1
  536. package/dist/esm/kol-spin.entry.js +1 -1
  537. package/dist/esm/kol-spin.entry.js.map +1 -1
  538. package/dist/esm/kol-split-button.entry.js +1 -1
  539. package/dist/esm/kol-split-button.entry.js.map +1 -1
  540. package/dist/esm/kol-symbol.entry.js +1 -1
  541. package/dist/esm/kol-symbol.entry.js.map +1 -1
  542. package/dist/esm/kol-table.entry.js +1 -1
  543. package/dist/esm/kol-table.entry.js.map +1 -1
  544. package/dist/esm/kol-tabs.entry.js +1 -1
  545. package/dist/esm/kol-tabs.entry.js.map +1 -1
  546. package/dist/esm/kol-textarea.entry.js +1 -1
  547. package/dist/esm/kol-textarea.entry.js.map +1 -1
  548. package/dist/esm/kol-toast.entry.js +1 -1
  549. package/dist/esm/kol-toast.entry.js.map +1 -1
  550. package/dist/esm/kol-tooltip.entry.js +1 -1
  551. package/dist/esm/kol-tooltip.entry.js.map +1 -1
  552. package/dist/esm/kol-version.entry.js +1 -1
  553. package/dist/esm/kol-version.entry.js.map +1 -1
  554. package/dist/esm/kolibri.js +1 -1
  555. package/dist/esm/kolibri.js.map +1 -1
  556. package/dist/esm/label-e3523fd1.js +4 -0
  557. package/dist/esm/label-e3523fd1.js.map +1 -0
  558. package/dist/esm/loader.js +1 -1
  559. package/dist/esm/loader.js.map +1 -1
  560. package/dist/esm/prop.validators-05d07b50.js +4 -0
  561. package/dist/esm/prop.validators-05d07b50.js.map +1 -0
  562. package/dist/esm/reuse-c2156413.js +4 -0
  563. package/dist/esm/reuse-c2156413.js.map +1 -0
  564. package/dist/esm/rows-d1f8df71.js +4 -0
  565. package/dist/esm/rows-d1f8df71.js.map +1 -0
  566. package/dist/esm/{show-a9e2d4c4.js → show-25c06c08.js} +1 -1
  567. package/dist/esm/show-25c06c08.js.map +1 -0
  568. package/dist/esm/suggestions-16a1bf61.js +4 -0
  569. package/dist/esm/suggestions-16a1bf61.js.map +1 -0
  570. package/dist/esm/{tab-index-ff5374b8.js → tab-index-fcb7ecac.js} +1 -1
  571. package/dist/esm/{tab-index-ff5374b8.js.map → tab-index-fcb7ecac.js.map} +1 -1
  572. package/dist/esm/{validation-2cc1bb89.js → validation-77718ded.js} +1 -1
  573. package/dist/esm/{validation-2cc1bb89.js.map → validation-77718ded.js.map} +1 -1
  574. package/dist/esm/validation-82792e37.js +4 -0
  575. package/dist/esm/validation-82792e37.js.map +1 -0
  576. package/dist/kolibri/a11y.tipps-5aaa4b49.js +4 -0
  577. package/dist/kolibri/a11y.tipps-5aaa4b49.js.map +1 -0
  578. package/dist/kolibri/align-46b557d8.js +4 -0
  579. package/dist/kolibri/align-46b557d8.js.map +1 -0
  580. package/dist/kolibri/app-globals-8544fc2e.js +4 -0
  581. package/dist/kolibri/app-globals-8544fc2e.js.map +1 -0
  582. package/dist/kolibri/aria-current-8612e789.js +4 -0
  583. package/dist/kolibri/aria-current-8612e789.js.map +1 -0
  584. package/dist/kolibri/aria-selected-207d2ea4.js +4 -0
  585. package/dist/kolibri/aria-selected-207d2ea4.js.map +1 -0
  586. package/dist/kolibri/assets/simulations/alert-simulation.js +1 -0
  587. package/dist/kolibri/assets/simulations/button-simulation.js +1 -0
  588. package/dist/kolibri/assets/{form-simulation.js → simulations/form-simulation.js} +1 -1
  589. package/dist/kolibri/assets/simulations/form-simulation.textarea.js +1 -0
  590. package/dist/kolibri/assets/simulations/modal-simulation.js +1 -0
  591. package/dist/kolibri/assets/{nav-simulation.js → simulations/nav-simulation.js} +1 -1
  592. package/dist/kolibri/assets/{progress-simulation.js → simulations/progress-simulation.js} +1 -1
  593. package/dist/kolibri/assets/simulations/smart-button-simulation.js +1 -0
  594. package/dist/kolibri/assets/simulations/spin-simulation.js +1 -0
  595. package/dist/kolibri/assets/simulations/table-simulation.js +1 -0
  596. package/dist/kolibri/assets/{tabs-simulation.js → simulations/tabs-simulation.js} +1 -1
  597. package/dist/kolibri/assets/simulations/toast-simulation.js +1 -0
  598. package/dist/kolibri/assets/style.css +0 -5
  599. package/dist/kolibri/bund-056aa89a.js.map +1 -0
  600. package/dist/kolibri/button-link-9942db79.js +4 -0
  601. package/dist/kolibri/button-link-9942db79.js.map +1 -0
  602. package/dist/kolibri/color-a7490f10.js +4 -0
  603. package/dist/kolibri/color-a7490f10.js.map +1 -0
  604. package/dist/kolibri/controller-069ae0d1.js +4 -0
  605. package/dist/kolibri/controller-069ae0d1.js.map +1 -0
  606. package/dist/kolibri/controller-1c487267.js +4 -0
  607. package/dist/kolibri/controller-1c487267.js.map +1 -0
  608. package/dist/kolibri/controller-5f60dd72.js +4 -0
  609. package/dist/kolibri/{controller-ec771280.js.map → controller-5f60dd72.js.map} +1 -1
  610. package/dist/kolibri/controller-80b38097.js +4 -0
  611. package/dist/kolibri/controller-80b38097.js.map +1 -0
  612. package/dist/kolibri/controller-e464a0e5.js +4 -0
  613. package/dist/kolibri/controller-e464a0e5.js.map +1 -0
  614. package/dist/kolibri/controller-fc8c559f.js +4 -0
  615. package/dist/kolibri/controller-fc8c559f.js.map +1 -0
  616. package/dist/kolibri/controller-icon-bdcafd14.js +4 -0
  617. package/dist/kolibri/{controller-icon-65f3377a.js.map → controller-icon-bdcafd14.js.map} +1 -1
  618. package/dist/kolibri/dev.utils-465c4239.js +4 -0
  619. package/dist/kolibri/dev.utils-465c4239.js.map +1 -0
  620. package/dist/kolibri/devtools-1313f714.js +4 -0
  621. package/dist/kolibri/devtools-1313f714.js.map +1 -0
  622. package/dist/kolibri/disabled-5bc12dcc.js +4 -0
  623. package/dist/kolibri/disabled-5bc12dcc.js.map +1 -0
  624. package/dist/kolibri/events-3762d15f.js +4 -0
  625. package/dist/kolibri/events-3762d15f.js.map +1 -0
  626. package/dist/kolibri/floating-ui.dom.esm-26e61da8.js +4 -0
  627. package/dist/kolibri/floating-ui.dom.esm-26e61da8.js.map +1 -0
  628. package/dist/kolibri/has-closer-4c62df54.js +4 -0
  629. package/dist/kolibri/has-closer-4c62df54.js.map +1 -0
  630. package/dist/kolibri/hide-label-00f5fca6.js +4 -0
  631. package/dist/kolibri/hide-label-00f5fca6.js.map +1 -0
  632. package/dist/kolibri/i18n-3e70fd9b.js +4 -0
  633. package/dist/kolibri/i18n-3e70fd9b.js.map +1 -0
  634. package/dist/kolibri/{icon-83ced735.js → icon-a7f1237b.js} +1 -1
  635. package/dist/kolibri/icon-a7f1237b.js.map +1 -0
  636. package/dist/kolibri/image-source-f4078f95.js +4 -0
  637. package/dist/kolibri/image-source-f4078f95.js.map +1 -0
  638. package/dist/kolibri/index-2c046ff1.js +5 -0
  639. package/dist/kolibri/index-2c046ff1.js.map +1 -0
  640. package/dist/kolibri/index-37b5cbcf.js.map +1 -0
  641. package/dist/kolibri/index-d8ac1088.js +4 -0
  642. package/dist/kolibri/index-d8ac1088.js.map +1 -0
  643. package/dist/kolibri/index.esm.js +1 -1
  644. package/dist/kolibri/kol-abbr.entry.js +1 -1
  645. package/dist/kolibri/kol-abbr.entry.js.map +1 -1
  646. package/dist/kolibri/kol-accordion.entry.js +1 -1
  647. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  648. package/dist/kolibri/kol-alert-wc_2.entry.js +1 -1
  649. package/dist/kolibri/kol-alert-wc_2.entry.js.map +1 -1
  650. package/dist/kolibri/kol-alert.entry.js +1 -1
  651. package/dist/kolibri/kol-alert.entry.js.map +1 -1
  652. package/dist/kolibri/kol-avatar-wc.entry.js +4 -0
  653. package/dist/kolibri/kol-avatar-wc.entry.js.map +1 -0
  654. package/dist/kolibri/kol-avatar.entry.js +4 -0
  655. package/dist/kolibri/kol-avatar.entry.js.map +1 -0
  656. package/dist/kolibri/kol-badge.entry.js +1 -1
  657. package/dist/kolibri/kol-badge.entry.js.map +1 -1
  658. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  659. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  660. package/dist/kolibri/kol-button-group-wc.entry.js +1 -1
  661. package/dist/kolibri/kol-button-group-wc.entry.js.map +1 -1
  662. package/dist/kolibri/kol-button-group.entry.js +1 -1
  663. package/dist/kolibri/kol-button-group.entry.js.map +1 -1
  664. package/dist/kolibri/kol-button-link-text-switch.entry.js +4 -0
  665. package/dist/kolibri/kol-button-link-text-switch.entry.js.map +1 -0
  666. package/dist/kolibri/kol-button-link.entry.js +1 -1
  667. package/dist/kolibri/kol-button-link.entry.js.map +1 -1
  668. package/dist/kolibri/kol-button-wc_2.entry.js +4 -0
  669. package/dist/kolibri/kol-button-wc_2.entry.js.map +1 -0
  670. package/dist/kolibri/kol-button.entry.js +1 -1
  671. package/dist/kolibri/kol-button.entry.js.map +1 -1
  672. package/dist/kolibri/kol-card.entry.js +1 -1
  673. package/dist/kolibri/kol-card.entry.js.map +1 -1
  674. package/dist/kolibri/kol-details.entry.js +1 -1
  675. package/dist/kolibri/kol-details.entry.js.map +1 -1
  676. package/dist/kolibri/kol-form.entry.js +1 -1
  677. package/dist/kolibri/kol-form.entry.js.map +1 -1
  678. package/dist/kolibri/kol-heading.entry.js +1 -1
  679. package/dist/kolibri/kol-heading.entry.js.map +1 -1
  680. package/dist/kolibri/kol-icon-font-awesome.entry.js +1 -1
  681. package/dist/kolibri/kol-icon-font-awesome.entry.js.map +1 -1
  682. package/dist/kolibri/kol-icon-icofont.entry.js +1 -1
  683. package/dist/kolibri/kol-icon-icofont.entry.js.map +1 -1
  684. package/dist/kolibri/kol-icon.entry.js +1 -1
  685. package/dist/kolibri/kol-icon.entry.js.map +1 -1
  686. package/dist/kolibri/kol-image.entry.js +1 -1
  687. package/dist/kolibri/kol-image.entry.js.map +1 -1
  688. package/dist/kolibri/kol-indented-text.entry.js +1 -1
  689. package/dist/kolibri/kol-indented-text.entry.js.map +1 -1
  690. package/dist/kolibri/kol-input-adapter-leanup.entry.js +1 -1
  691. package/dist/kolibri/kol-input-adapter-leanup.entry.js.map +1 -1
  692. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  693. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  694. package/dist/kolibri/kol-input-color.entry.js +1 -1
  695. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  696. package/dist/kolibri/kol-input-date.entry.js +1 -1
  697. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  698. package/dist/kolibri/kol-input-email.entry.js +1 -1
  699. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  700. package/dist/kolibri/kol-input-file.entry.js +1 -1
  701. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  702. package/dist/kolibri/kol-input-number.entry.js +1 -1
  703. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  704. package/dist/kolibri/kol-input-password.entry.js +1 -1
  705. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  706. package/dist/kolibri/kol-input-radio-group.entry.js +1 -1
  707. package/dist/kolibri/kol-input-radio-group.entry.js.map +1 -1
  708. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  709. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  710. package/dist/kolibri/kol-input-range.entry.js +1 -1
  711. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  712. package/dist/kolibri/kol-input-text.entry.js +1 -1
  713. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  714. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  715. package/dist/kolibri/kol-kolibri.entry.js.map +1 -1
  716. package/dist/kolibri/kol-link-button.entry.js +1 -1
  717. package/dist/kolibri/kol-link-button.entry.js.map +1 -1
  718. package/dist/kolibri/kol-link-group.entry.js +1 -1
  719. package/dist/kolibri/kol-link-group.entry.js.map +1 -1
  720. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  721. package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
  722. package/dist/kolibri/kol-link.entry.js +1 -1
  723. package/dist/kolibri/kol-link.entry.js.map +1 -1
  724. package/dist/kolibri/kol-logo.entry.js +1 -1
  725. package/dist/kolibri/kol-logo.entry.js.map +1 -1
  726. package/dist/kolibri/kol-modal.entry.js +1 -1
  727. package/dist/kolibri/kol-modal.entry.js.map +1 -1
  728. package/dist/kolibri/kol-nav.entry.js +1 -1
  729. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  730. package/dist/kolibri/kol-pagination.entry.js +1 -1
  731. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  732. package/dist/kolibri/kol-popover.entry.js +1 -1
  733. package/dist/kolibri/kol-popover.entry.js.map +1 -1
  734. package/dist/kolibri/kol-progress.entry.js +1 -1
  735. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  736. package/dist/kolibri/kol-quote.entry.js +1 -1
  737. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  738. package/dist/kolibri/kol-select.entry.js +1 -1
  739. package/dist/kolibri/kol-select.entry.js.map +1 -1
  740. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  741. package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
  742. package/dist/kolibri/kol-span-wc.entry.js +4 -0
  743. package/dist/kolibri/kol-span-wc.entry.js.map +1 -0
  744. package/dist/kolibri/kol-span.entry.js +1 -1
  745. package/dist/kolibri/kol-span.entry.js.map +1 -1
  746. package/dist/kolibri/kol-spin.entry.js +1 -1
  747. package/dist/kolibri/kol-spin.entry.js.map +1 -1
  748. package/dist/kolibri/kol-split-button.entry.js +1 -1
  749. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  750. package/dist/kolibri/kol-symbol.entry.js +1 -1
  751. package/dist/kolibri/kol-symbol.entry.js.map +1 -1
  752. package/dist/kolibri/kol-table.entry.js +1 -1
  753. package/dist/kolibri/kol-table.entry.js.map +1 -1
  754. package/dist/kolibri/kol-tabs.entry.js +1 -1
  755. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  756. package/dist/kolibri/kol-textarea.entry.js +1 -1
  757. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  758. package/dist/kolibri/kol-toast.entry.js +1 -1
  759. package/dist/kolibri/kol-toast.entry.js.map +1 -1
  760. package/dist/kolibri/kol-tooltip.entry.js +1 -1
  761. package/dist/kolibri/kol-tooltip.entry.js.map +1 -1
  762. package/dist/kolibri/kol-version.entry.js +1 -1
  763. package/dist/kolibri/kol-version.entry.js.map +1 -1
  764. package/dist/kolibri/kolibri.esm.js +1 -1
  765. package/dist/kolibri/kolibri.esm.js.map +1 -1
  766. package/dist/kolibri/label-e3523fd1.js +4 -0
  767. package/dist/kolibri/label-e3523fd1.js.map +1 -0
  768. package/dist/kolibri/prop.validators-05d07b50.js +4 -0
  769. package/dist/kolibri/prop.validators-05d07b50.js.map +1 -0
  770. package/dist/kolibri/reuse-c2156413.js +4 -0
  771. package/dist/kolibri/reuse-c2156413.js.map +1 -0
  772. package/dist/kolibri/rows-d1f8df71.js +4 -0
  773. package/dist/kolibri/rows-d1f8df71.js.map +1 -0
  774. package/dist/kolibri/show-25c06c08.js +4 -0
  775. package/dist/kolibri/{show-a9e2d4c4.js.map → show-25c06c08.js.map} +1 -1
  776. package/dist/kolibri/suggestions-16a1bf61.js +4 -0
  777. package/dist/kolibri/suggestions-16a1bf61.js.map +1 -0
  778. package/dist/kolibri/tab-index-fcb7ecac.js +4 -0
  779. package/dist/kolibri/{tab-index-ff5374b8.js.map → tab-index-fcb7ecac.js.map} +1 -1
  780. package/dist/kolibri/validation-77718ded.js +4 -0
  781. package/dist/kolibri/{validation-2cc1bb89.js.map → validation-77718ded.js.map} +1 -1
  782. package/dist/kolibri/validation-82792e37.js +4 -0
  783. package/dist/kolibri/validation-82792e37.js.map +1 -0
  784. package/dist/loader/index.d.ts +1 -1
  785. package/dist/types/components/@deprecated/input/controller.d.ts +2 -1
  786. package/dist/types/components/@deprecated/input/types-icon.d.ts +2 -2
  787. package/dist/types/components/@deprecated/input/types.d.ts +5 -3
  788. package/dist/types/components/@else/all/component.d.ts +1 -1
  789. package/dist/types/components/abbr/component.d.ts +5 -2
  790. package/dist/types/components/abbr/types.d.ts +6 -6
  791. package/dist/types/components/accordion/component.d.ts +4 -1
  792. package/dist/types/components/accordion/types.d.ts +7 -7
  793. package/dist/types/components/alert/component.d.ts +4 -3
  794. package/dist/types/components/alert/shadow.d.ts +2 -0
  795. package/dist/types/components/alert/types.d.ts +4 -3
  796. package/dist/types/components/avatar/component.d.ts +13 -0
  797. package/dist/types/components/avatar/controller.d.ts +1 -0
  798. package/dist/types/components/avatar/shadow.d.ts +7 -0
  799. package/dist/types/components/avatar/test/html.mock.d.ts +2 -0
  800. package/dist/types/components/avatar/types.d.ts +15 -0
  801. package/dist/types/components/badge/component.d.ts +8 -25
  802. package/dist/types/components/badge/test/html.mock.d.ts +2 -2
  803. package/dist/types/components/badge/types.d.ts +24 -0
  804. package/dist/types/components/breadcrumb/component.d.ts +9 -18
  805. package/dist/types/components/breadcrumb/test/html.mock.d.ts +2 -2
  806. package/dist/types/components/breadcrumb/types.d.ts +18 -0
  807. package/dist/types/components/button/component.d.ts +13 -8
  808. package/dist/types/components/button/shadow.d.ts +9 -5
  809. package/dist/types/components/button-group/component.d.ts +1 -1
  810. package/dist/types/components/button-link/component.d.ts +9 -5
  811. package/dist/types/components/button-link-text-switch/component.d.ts +11 -0
  812. package/dist/types/components/button-link-text-switch/types.d.ts +12 -0
  813. package/dist/types/components/card/component.d.ts +7 -17
  814. package/dist/types/components/card/test/html.mock.d.ts +2 -2
  815. package/dist/types/components/card/types.d.ts +16 -0
  816. package/dist/types/components/details/component.d.ts +7 -15
  817. package/dist/types/components/details/test/html.mock.d.ts +2 -2
  818. package/dist/types/components/details/types.d.ts +13 -0
  819. package/dist/types/components/form/component.d.ts +3 -19
  820. package/dist/types/components/form/test/html.mock.d.ts +2 -2
  821. package/dist/types/components/form/types.d.ts +18 -0
  822. package/dist/types/components/heading/component.d.ts +6 -22
  823. package/dist/types/components/heading/shadow.d.ts +4 -3
  824. package/dist/types/components/heading/test/html.mock.d.ts +3 -3
  825. package/dist/types/components/heading/types.d.ts +18 -0
  826. package/dist/types/components/icon/component.d.ts +8 -17
  827. package/dist/types/components/icon/test/html.mock.d.ts +2 -2
  828. package/dist/types/components/icon/types.d.ts +15 -0
  829. package/dist/types/components/icon-font-awesome/component.d.ts +3 -3
  830. package/dist/types/components/icon-icofont/component.d.ts +3 -3
  831. package/dist/types/components/image/shadow.d.ts +3 -2
  832. package/dist/types/components/image/test/html.mock.d.ts +1 -1
  833. package/dist/types/components/image/types.d.ts +2 -1
  834. package/dist/types/components/indented-text/component.d.ts +1 -1
  835. package/dist/types/components/input/component.d.ts +7 -2
  836. package/dist/types/components/input/types.d.ts +17 -4
  837. package/dist/types/components/input-adapter-leanup/controller.d.ts +8 -3
  838. package/dist/types/components/input-adapter-leanup/types.d.ts +1 -0
  839. package/dist/types/components/input-checkbox/component.d.ts +10 -4
  840. package/dist/types/components/input-checkbox/controller.d.ts +3 -1
  841. package/dist/types/components/input-checkbox/types.d.ts +10 -5
  842. package/dist/types/components/input-color/component.d.ts +13 -5
  843. package/dist/types/components/input-color/controller.d.ts +3 -2
  844. package/dist/types/components/input-color/types.d.ts +9 -6
  845. package/dist/types/components/input-date/component.d.ts +12 -4
  846. package/dist/types/components/input-date/controller.d.ts +3 -2
  847. package/dist/types/components/input-date/types.d.ts +11 -7
  848. package/dist/types/components/input-email/component.d.ts +13 -3
  849. package/dist/types/components/input-email/types.d.ts +13 -6
  850. package/dist/types/components/input-file/component.d.ts +8 -3
  851. package/dist/types/components/input-file/types.d.ts +5 -4
  852. package/dist/types/components/input-number/component.d.ts +11 -3
  853. package/dist/types/components/input-number/controller.d.ts +3 -2
  854. package/dist/types/components/input-number/types.d.ts +10 -6
  855. package/dist/types/components/input-password/component.d.ts +11 -4
  856. package/dist/types/components/input-password/controller.d.ts +1 -0
  857. package/dist/types/components/input-password/types.d.ts +8 -4
  858. package/dist/types/components/input-radio/component.d.ts +13 -4
  859. package/dist/types/components/input-radio/controller.d.ts +7 -5
  860. package/dist/types/components/input-radio/types.d.ts +9 -8
  861. package/dist/types/components/input-radio-group/component.d.ts +2 -1
  862. package/dist/types/components/input-range/component.d.ts +16 -5
  863. package/dist/types/components/input-range/controller.d.ts +4 -1
  864. package/dist/types/components/input-range/types.d.ts +9 -6
  865. package/dist/types/components/input-text/component.d.ts +14 -4
  866. package/dist/types/components/input-text/controller.d.ts +9 -7
  867. package/dist/types/components/input-text/types.d.ts +11 -5
  868. package/dist/types/components/kolibri/component.d.ts +4 -22
  869. package/dist/types/components/kolibri/types.d.ts +22 -0
  870. package/dist/types/components/link/component.d.ts +13 -6
  871. package/dist/types/components/link/shadow.d.ts +8 -5
  872. package/dist/types/components/link-button/component.d.ts +8 -5
  873. package/dist/types/components/link-group/component.d.ts +8 -30
  874. package/dist/types/components/link-group/types.d.ts +31 -0
  875. package/dist/types/components/logo/component.d.ts +3 -13
  876. package/dist/types/components/logo/types.d.ts +13 -0
  877. package/dist/types/components/modal/component.d.ts +7 -20
  878. package/dist/types/components/modal/types.d.ts +20 -0
  879. package/dist/types/components/nav/component.d.ts +12 -31
  880. package/dist/types/components/nav/types.d.ts +32 -0
  881. package/dist/types/components/nav/validation.d.ts +5 -2
  882. package/dist/types/components/pagination/component.d.ts +5 -41
  883. package/dist/types/components/pagination/types.d.ts +41 -0
  884. package/dist/types/components/popover/component.d.ts +4 -14
  885. package/dist/types/components/popover/test/html.mock.d.ts +2 -2
  886. package/dist/types/components/popover/types.d.ts +13 -0
  887. package/dist/types/components/progress/component.d.ts +11 -29
  888. package/dist/types/components/progress/types.d.ts +22 -0
  889. package/dist/types/components/quote/shadow.d.ts +6 -3
  890. package/dist/types/components/quote/test/html.mock.d.ts +2 -2
  891. package/dist/types/components/quote/types.d.ts +9 -11
  892. package/dist/types/components/select/component.d.ts +14 -3
  893. package/dist/types/components/select/controller.d.ts +6 -4
  894. package/dist/types/components/select/types.d.ts +12 -10
  895. package/dist/types/components/skip-nav/component.d.ts +7 -16
  896. package/dist/types/components/skip-nav/types.d.ts +16 -0
  897. package/dist/types/components/span/component.d.ts +9 -27
  898. package/dist/types/components/span/shadow.d.ts +5 -3
  899. package/dist/types/components/span/test/html.mock.d.ts +3 -3
  900. package/dist/types/components/span/types.d.ts +25 -0
  901. package/dist/types/components/spin/component.d.ts +4 -12
  902. package/dist/types/components/spin/test/html.mock.d.ts +2 -2
  903. package/dist/types/components/spin/types.d.ts +11 -0
  904. package/dist/types/components/split-button/component.d.ts +11 -8
  905. package/dist/types/components/split-button/types.d.ts +3 -3
  906. package/dist/types/components/symbol/component.d.ts +7 -14
  907. package/dist/types/components/symbol/test/html.mock.d.ts +2 -2
  908. package/dist/types/components/symbol/types.d.ts +13 -0
  909. package/dist/types/components/table/component.d.ts +16 -29
  910. package/dist/types/components/table/types.d.ts +70 -0
  911. package/dist/types/components/tabs/component.d.ts +10 -46
  912. package/dist/types/components/tabs/types.d.ts +43 -0
  913. package/dist/types/components/textarea/component.d.ts +10 -4
  914. package/dist/types/components/textarea/controller.d.ts +2 -1
  915. package/dist/types/components/textarea/types.d.ts +8 -6
  916. package/dist/types/components/toast/component.d.ts +7 -19
  917. package/dist/types/components/toast/test/html.mock.d.ts +2 -2
  918. package/dist/types/components/toast/toaster.d.ts +3 -1
  919. package/dist/types/components/toast/types.d.ts +22 -0
  920. package/dist/types/components/tooltip/component.d.ts +11 -20
  921. package/dist/types/components/tooltip/test/html.mock.d.ts +2 -2
  922. package/dist/types/components/tooltip/types.d.ts +14 -0
  923. package/dist/types/components/version/component.d.ts +7 -13
  924. package/dist/types/components/version/test/html.mock.d.ts +2 -2
  925. package/dist/types/components/version/types.d.ts +14 -0
  926. package/dist/types/components.d.ts +944 -204
  927. package/dist/types/i18n.d.ts +1 -1
  928. package/dist/types/locales/de.d.ts +4 -0
  929. package/dist/types/locales/en.d.ts +4 -0
  930. package/dist/types/stencil-public-runtime.d.ts +3 -1
  931. package/dist/types/types/button-link-text.d.ts +8 -7
  932. package/dist/types/types/button-link.d.ts +40 -33
  933. package/dist/types/types/input/control/number.d.ts +1 -1
  934. package/dist/types/types/progress.d.ts +7 -1
  935. package/dist/types/types/props/aria-controls.d.ts +5 -0
  936. package/dist/types/types/props/aria-current.d.ts +4 -0
  937. package/dist/types/types/props/aria-label.d.ts +3 -0
  938. package/dist/types/types/props/compact.d.ts +0 -2
  939. package/dist/types/types/props/hide-label.d.ts +2 -1
  940. package/dist/types/types/props/href.d.ts +7 -0
  941. package/dist/types/types/props/icon.d.ts +2 -2
  942. package/dist/types/types/props/id.d.ts +6 -0
  943. package/dist/types/types/props/image-source.d.ts +4 -0
  944. package/dist/types/types/props/label.d.ts +8 -4
  945. package/dist/types/types/props/options.d.ts +15 -0
  946. package/dist/types/types/props/rows.d.ts +6 -0
  947. package/dist/types/types/props/suggestions.d.ts +8 -0
  948. package/dist/types/types/unknown.d.ts +1 -0
  949. package/dist/types/utils/a11y.tipps.d.ts +11 -6
  950. package/dist/types/utils/dev.utils.d.ts +1 -1
  951. package/dist/types/utils/events.d.ts +1 -0
  952. package/dist/types/utils/prop.validators.d.ts +10 -1
  953. package/dist/types/utils/validator.d.ts +0 -1
  954. package/dist/types/utils/validators/alignment.d.ts +1 -1
  955. package/dist/types/utils/validators/options.d.ts +2 -0
  956. package/doc/abbr.md +15 -18
  957. package/doc/accordion.md +13 -12
  958. package/doc/alert.md +7 -7
  959. package/doc/avatar.md +71 -0
  960. package/doc/badge.md +10 -11
  961. package/doc/breadcrumb.md +11 -10
  962. package/doc/button-group.md +3 -3
  963. package/doc/button-link.md +20 -19
  964. package/doc/button.md +26 -25
  965. package/doc/card.md +11 -10
  966. package/doc/details.md +11 -10
  967. package/doc/heading.md +1 -5
  968. package/doc/icon-font-awesome.md +1 -1
  969. package/doc/icon-icofont.md +1 -1
  970. package/doc/icon.md +15 -14
  971. package/doc/image.md +4 -4
  972. package/doc/indented-text.md +1 -1
  973. package/doc/input-checkbox.md +12 -7
  974. package/doc/input-color.md +26 -22
  975. package/doc/input-date.md +35 -31
  976. package/doc/input-email.md +35 -30
  977. package/doc/input-file.md +29 -24
  978. package/doc/input-number.md +33 -29
  979. package/doc/input-password.md +31 -27
  980. package/doc/input-radio-group.md +2 -1
  981. package/doc/input-radio.md +31 -27
  982. package/doc/input-range.md +18 -5
  983. package/doc/input-text.md +34 -29
  984. package/doc/kolibri.md +4 -6
  985. package/doc/link-button.md +34 -32
  986. package/doc/link-group.md +13 -14
  987. package/doc/link.md +27 -29
  988. package/doc/logo.md +2 -10
  989. package/doc/modal.md +35 -19
  990. package/doc/nav.md +20 -19
  991. package/doc/pagination.md +2 -5
  992. package/doc/progress.md +10 -10
  993. package/doc/quote.md +13 -12
  994. package/doc/select.md +36 -31
  995. package/doc/skip-nav.md +10 -10
  996. package/doc/span.md +8 -7
  997. package/doc/spin.md +20 -22
  998. package/doc/split-button.md +23 -23
  999. package/doc/symbol.md +45 -0
  1000. package/doc/table.md +33 -30
  1001. package/doc/tabs.md +13 -11
  1002. package/doc/textarea.md +7 -4
  1003. package/doc/toast.md +5 -6
  1004. package/doc/tooltip.md +26 -2
  1005. package/doc/version.md +4 -11
  1006. package/jest-test-results.json +1 -1
  1007. package/package.json +1 -1
  1008. package/vscode-custom-data.json +561 -39
  1009. package/dist/cjs/a11y.tipps-251f022e.js +0 -4
  1010. package/dist/cjs/a11y.tipps-251f022e.js.map +0 -1
  1011. package/dist/cjs/app-globals-f9bd7c4a.js.map +0 -1
  1012. package/dist/cjs/aria-selected-cb5d8460.js +0 -4
  1013. package/dist/cjs/aria-selected-cb5d8460.js.map +0 -1
  1014. package/dist/cjs/bund-e238647c.js.map +0 -1
  1015. package/dist/cjs/button-link-153007e8.js.map +0 -1
  1016. package/dist/cjs/controller-1b763c05.js +0 -4
  1017. package/dist/cjs/controller-1b763c05.js.map +0 -1
  1018. package/dist/cjs/controller-31f22d30.js +0 -4
  1019. package/dist/cjs/controller-31f22d30.js.map +0 -1
  1020. package/dist/cjs/controller-77a2ce9f.js +0 -4
  1021. package/dist/cjs/controller-77a2ce9f.js.map +0 -1
  1022. package/dist/cjs/controller-93165ab9.js +0 -4
  1023. package/dist/cjs/controller-93165ab9.js.map +0 -1
  1024. package/dist/cjs/controller-abf026e3.js +0 -4
  1025. package/dist/cjs/controller-abf026e3.js.map +0 -1
  1026. package/dist/cjs/dev.utils-d69c0a9f.js +0 -4
  1027. package/dist/cjs/dev.utils-d69c0a9f.js.map +0 -1
  1028. package/dist/cjs/devtools-19dae7ed.js.map +0 -1
  1029. package/dist/cjs/disabled-503e85ce.js.map +0 -1
  1030. package/dist/cjs/floating-ui.dom.esm-03ac0b3f.js +0 -4
  1031. package/dist/cjs/floating-ui.dom.esm-03ac0b3f.js.map +0 -1
  1032. package/dist/cjs/hide-label-cb7ae994.js +0 -4
  1033. package/dist/cjs/hide-label-cb7ae994.js.map +0 -1
  1034. package/dist/cjs/i18n-8b3f04f3.js +0 -4
  1035. package/dist/cjs/i18n-8b3f04f3.js.map +0 -1
  1036. package/dist/cjs/icon-ac20975f.js.map +0 -1
  1037. package/dist/cjs/index-36fd94bb.js.map +0 -1
  1038. package/dist/cjs/index-75a7808a.js +0 -4
  1039. package/dist/cjs/index-75a7808a.js.map +0 -1
  1040. package/dist/cjs/index-94bf4fa8.js +0 -5
  1041. package/dist/cjs/index-94bf4fa8.js.map +0 -1
  1042. package/dist/cjs/kol-button-wc_3.cjs.entry.js +0 -4
  1043. package/dist/cjs/kol-button-wc_3.cjs.entry.js.map +0 -1
  1044. package/dist/cjs/label-e8736aba.js +0 -4
  1045. package/dist/cjs/label-e8736aba.js.map +0 -1
  1046. package/dist/cjs/prop.validators-5e04ba38.js +0 -4
  1047. package/dist/cjs/prop.validators-5e04ba38.js.map +0 -1
  1048. package/dist/cjs/reuse-0fe7470f.js +0 -4
  1049. package/dist/cjs/reuse-0fe7470f.js.map +0 -1
  1050. package/dist/cjs/show-975e9dba.js +0 -4
  1051. package/dist/cjs/show-975e9dba.js.map +0 -1
  1052. package/dist/cjs/validation-b25e2db5.js +0 -4
  1053. package/dist/cjs/validation-b25e2db5.js.map +0 -1
  1054. package/dist/components/hide-label.js +0 -4
  1055. package/dist/components/hide-label.js.map +0 -1
  1056. package/dist/esm/a11y.tipps-2e27f8e6.js +0 -4
  1057. package/dist/esm/a11y.tipps-2e27f8e6.js.map +0 -1
  1058. package/dist/esm/app-globals-db727ab2.js +0 -4
  1059. package/dist/esm/app-globals-db727ab2.js.map +0 -1
  1060. package/dist/esm/aria-selected-efb464e1.js +0 -4
  1061. package/dist/esm/aria-selected-efb464e1.js.map +0 -1
  1062. package/dist/esm/bund-fe1f3789.js.map +0 -1
  1063. package/dist/esm/button-link-283b2d32.js.map +0 -1
  1064. package/dist/esm/controller-2847846e.js +0 -4
  1065. package/dist/esm/controller-2847846e.js.map +0 -1
  1066. package/dist/esm/controller-5a459788.js +0 -4
  1067. package/dist/esm/controller-5a459788.js.map +0 -1
  1068. package/dist/esm/controller-cad0ac5e.js +0 -4
  1069. package/dist/esm/controller-cad0ac5e.js.map +0 -1
  1070. package/dist/esm/controller-cb6b97eb.js +0 -4
  1071. package/dist/esm/controller-cb6b97eb.js.map +0 -1
  1072. package/dist/esm/controller-cc18d25f.js +0 -4
  1073. package/dist/esm/controller-cc18d25f.js.map +0 -1
  1074. package/dist/esm/dev.utils-157f0499.js +0 -4
  1075. package/dist/esm/dev.utils-157f0499.js.map +0 -1
  1076. package/dist/esm/devtools-1d838b34.js +0 -4
  1077. package/dist/esm/devtools-1d838b34.js.map +0 -1
  1078. package/dist/esm/disabled-6200e69c.js.map +0 -1
  1079. package/dist/esm/floating-ui.dom.esm-74010e65.js +0 -4
  1080. package/dist/esm/floating-ui.dom.esm-74010e65.js.map +0 -1
  1081. package/dist/esm/hide-label-2baeb5c5.js.map +0 -1
  1082. package/dist/esm/i18n-87a7ecb7.js +0 -4
  1083. package/dist/esm/i18n-87a7ecb7.js.map +0 -1
  1084. package/dist/esm/icon-83ced735.js.map +0 -1
  1085. package/dist/esm/index-34c3d6f8.js +0 -5
  1086. package/dist/esm/index-34c3d6f8.js.map +0 -1
  1087. package/dist/esm/index-bacdc4cb.js +0 -4
  1088. package/dist/esm/index-bacdc4cb.js.map +0 -1
  1089. package/dist/esm/index-ff788b4b.js.map +0 -1
  1090. package/dist/esm/kol-button-wc_3.entry.js +0 -4
  1091. package/dist/esm/kol-button-wc_3.entry.js.map +0 -1
  1092. package/dist/esm/label-559ca626.js +0 -4
  1093. package/dist/esm/label-559ca626.js.map +0 -1
  1094. package/dist/esm/polyfills/css-shim.js +0 -1
  1095. package/dist/esm/prop.validators-f81af56e.js +0 -4
  1096. package/dist/esm/prop.validators-f81af56e.js.map +0 -1
  1097. package/dist/esm/reuse-3a02afb9.js +0 -4
  1098. package/dist/esm/reuse-3a02afb9.js.map +0 -1
  1099. package/dist/esm/show-a9e2d4c4.js.map +0 -1
  1100. package/dist/esm/validation-b0e97f6c.js +0 -4
  1101. package/dist/esm/validation-b0e97f6c.js.map +0 -1
  1102. package/dist/kolibri/a11y.tipps-2e27f8e6.js +0 -4
  1103. package/dist/kolibri/a11y.tipps-2e27f8e6.js.map +0 -1
  1104. package/dist/kolibri/app-globals-db727ab2.js +0 -4
  1105. package/dist/kolibri/app-globals-db727ab2.js.map +0 -1
  1106. package/dist/kolibri/aria-selected-efb464e1.js +0 -4
  1107. package/dist/kolibri/aria-selected-efb464e1.js.map +0 -1
  1108. package/dist/kolibri/assets/accordion-simulation.js +0 -1
  1109. package/dist/kolibri/assets/alert-simulation.js +0 -1
  1110. package/dist/kolibri/assets/button-simulation.js +0 -1
  1111. package/dist/kolibri/assets/form-simulation.textarea.js +0 -1
  1112. package/dist/kolibri/assets/link-simulation.js +0 -1
  1113. package/dist/kolibri/assets/modal-simulation.js +0 -1
  1114. package/dist/kolibri/assets/smart-button-simulation.js +0 -1
  1115. package/dist/kolibri/assets/spin-simulation.js +0 -1
  1116. package/dist/kolibri/assets/table-simulation.js +0 -1
  1117. package/dist/kolibri/assets/toast-simulation.js +0 -1
  1118. package/dist/kolibri/assets/tooltip-simulation.js +0 -1
  1119. package/dist/kolibri/bund-fe1f3789.js.map +0 -1
  1120. package/dist/kolibri/button-link-283b2d32.js +0 -4
  1121. package/dist/kolibri/button-link-283b2d32.js.map +0 -1
  1122. package/dist/kolibri/color-abc2fa9c.js +0 -4
  1123. package/dist/kolibri/color-abc2fa9c.js.map +0 -1
  1124. package/dist/kolibri/controller-2847846e.js +0 -4
  1125. package/dist/kolibri/controller-2847846e.js.map +0 -1
  1126. package/dist/kolibri/controller-5a459788.js +0 -4
  1127. package/dist/kolibri/controller-5a459788.js.map +0 -1
  1128. package/dist/kolibri/controller-cad0ac5e.js +0 -4
  1129. package/dist/kolibri/controller-cad0ac5e.js.map +0 -1
  1130. package/dist/kolibri/controller-cb6b97eb.js +0 -4
  1131. package/dist/kolibri/controller-cb6b97eb.js.map +0 -1
  1132. package/dist/kolibri/controller-cc18d25f.js +0 -4
  1133. package/dist/kolibri/controller-cc18d25f.js.map +0 -1
  1134. package/dist/kolibri/controller-ec771280.js +0 -4
  1135. package/dist/kolibri/controller-icon-65f3377a.js +0 -4
  1136. package/dist/kolibri/dev.utils-157f0499.js +0 -4
  1137. package/dist/kolibri/dev.utils-157f0499.js.map +0 -1
  1138. package/dist/kolibri/devtools-1d838b34.js +0 -4
  1139. package/dist/kolibri/devtools-1d838b34.js.map +0 -1
  1140. package/dist/kolibri/disabled-6200e69c.js +0 -4
  1141. package/dist/kolibri/disabled-6200e69c.js.map +0 -1
  1142. package/dist/kolibri/floating-ui.dom.esm-74010e65.js +0 -4
  1143. package/dist/kolibri/floating-ui.dom.esm-74010e65.js.map +0 -1
  1144. package/dist/kolibri/hide-label-2baeb5c5.js +0 -4
  1145. package/dist/kolibri/hide-label-2baeb5c5.js.map +0 -1
  1146. package/dist/kolibri/i18n-87a7ecb7.js +0 -4
  1147. package/dist/kolibri/i18n-87a7ecb7.js.map +0 -1
  1148. package/dist/kolibri/icon-83ced735.js.map +0 -1
  1149. package/dist/kolibri/index-34c3d6f8.js +0 -5
  1150. package/dist/kolibri/index-34c3d6f8.js.map +0 -1
  1151. package/dist/kolibri/index-bacdc4cb.js +0 -4
  1152. package/dist/kolibri/index-bacdc4cb.js.map +0 -1
  1153. package/dist/kolibri/index-ff788b4b.js.map +0 -1
  1154. package/dist/kolibri/kol-button-wc_3.entry.js +0 -4
  1155. package/dist/kolibri/kol-button-wc_3.entry.js.map +0 -1
  1156. package/dist/kolibri/label-559ca626.js +0 -4
  1157. package/dist/kolibri/label-559ca626.js.map +0 -1
  1158. package/dist/kolibri/prop.validators-f81af56e.js +0 -4
  1159. package/dist/kolibri/prop.validators-f81af56e.js.map +0 -1
  1160. package/dist/kolibri/reuse-3a02afb9.js +0 -4
  1161. package/dist/kolibri/reuse-3a02afb9.js.map +0 -1
  1162. package/dist/kolibri/show-a9e2d4c4.js +0 -4
  1163. package/dist/kolibri/tab-index-ff5374b8.js +0 -4
  1164. package/dist/kolibri/validation-2cc1bb89.js +0 -4
  1165. package/dist/kolibri/validation-b0e97f6c.js +0 -4
  1166. package/dist/kolibri/validation-b0e97f6c.js.map +0 -1
  1167. package/dist/types/types/aria-label.d.ts +0 -3
  1168. package/dist/types/types/props/index.d.ts +0 -1
  1169. package/dist/types/types/table.d.ts +0 -37
  1170. package/dist/types/utils/validators/list.d.ts +0 -2
  1171. /package/dist/cjs/{bund-e238647c.js → bund-f5184e9e.js} +0 -0
  1172. /package/dist/cjs/{index-36fd94bb.js → index-6a24b8dc.js} +0 -0
  1173. /package/dist/esm/{bund-fe1f3789.js → bund-056aa89a.js} +0 -0
  1174. /package/dist/esm/{index-ff788b4b.js → index-37b5cbcf.js} +0 -0
  1175. /package/dist/kolibri/assets/{form-simulation.weitere-cases.js → simulations/form-simulation.weitere-cases.js} +0 -0
  1176. /package/dist/kolibri/assets/{pagination-simulation.js → simulations/pagination-simulation.js} +0 -0
  1177. /package/dist/kolibri/assets/{popover-simulation.js → simulations/popover-simulation.js} +0 -0
  1178. /package/dist/kolibri/{bund-fe1f3789.js → bund-056aa89a.js} +0 -0
  1179. /package/dist/kolibri/{index-ff788b4b.js → index-37b5cbcf.js} +0 -0
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{a as watchString,f as watchBoolean,F as watchJsonArrayString,N as STATE_CHANGE_EVENT,v as propagateFocus,n as nonce}from"./prop.validators.js";import{g as getRenderStates}from"./controller.js";import{f as fillKeyOptionMap,v as validateOptionsWithOptgroup}from"./controller2.js";import{v as validateRows}from"./rows.js";import{I as InputIconController}from"./controller-icon.js";import{d as defineCustomElement$8}from"./shadow.js";import{d as defineCustomElement$7}from"./component6.js";import{d as defineCustomElement$6}from"./component5.js";import{d as defineCustomElement$5}from"./component4.js";import{d as defineCustomElement$4}from"./component2.js";import{d as defineCustomElement$3}from"./component13.js";import{d as defineCustomElement$2}from"./component3.js";import{d as defineCustomElement$1}from"./component.js";class SelectController extends InputIconController{constructor(t,e,i){super(t,e,i),this.keyOptionMap=new Map,this.getOptionByKey=t=>this.keyOptionMap.get(t),this.isValueInOptions=(t,e)=>void 0!==e.find((e=>"string"==typeof e.value?e.value===t:!!Array.isArray(e.options)&&this.isValueInOptions(t,e.options))),this.filterValuesInOptions=(t,e)=>t.filter((t=>void 0!==this.isValueInOptions(t,e))),this.beforePatchOptions=(t,e)=>{const i=e.has("_options")?e.get("_options"):this.component.state._options;if(Array.isArray(i)&&i.length>0){this.keyOptionMap.clear(),fillKeyOptionMap(this.keyOptionMap,i);const t=e.has("_value")?e.get("_value"):this.component.state._value,o=this.filterValuesInOptions(Array.isArray(t)&&t.length>0?t:[],i);!1===this.component._multiple&&0===o.length?(e.set("_value",[i[0].value]),this.onStateChange()):Array.isArray(t)&&o.length<t.length&&(e.set("_value",o),this.onStateChange())}},this.component=t}validateHeight(t){watchString(this.component,"_height",t)}validateOptions(t){validateOptionsWithOptgroup(this.component,t,{hooks:{beforePatch:this.beforePatchOptions}})}validateMultiple(t){watchBoolean(this.component,"_multiple",t,{hooks:{beforePatch:this.beforePatchOptions}})}validateRequired(t){watchBoolean(this.component,"_required",t)}validateRows(t){validateRows(this.component,t)}validateValue(t){watchJsonArrayString(this.component,"_value",(()=>!0),t,void 0,{hooks:{beforePatch:this.beforePatchOptions}}),this.setFormAssociatedValue(this.component._value)}componentWillLoad(t){super.componentWillLoad(),this.onStateChange=()=>{if("function"==typeof t){const e=setTimeout((()=>{clearTimeout(e),t(STATE_CHANGE_EVENT)}))}},this.validateHeight(this.component._height),this.validateOptions(this.component._options||this.component._list),this.validateMultiple(this.component._multiple),this.validateRequired(this.component._required),this.validateRows(this.component._rows||this.component._size),this.validateValue(this.component._value)}}const defaultStyleCss=":host{--a11y-min-size:44px;font-size:inherit}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role='button'],button:not([role='link']),kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}:host{max-width:100%}*{box-sizing:border-box}kol-span-wc{display:grid;place-items:center}kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}button,input,option,select,textarea{font-family:inherit}.icon-only>kol-span-wc>span>span{display:none}.required label>span::after,.required legend>span::after{content:'*'}:host{display:block}input,textarea{cursor:text}input[type='checkbox'],input[type='color'],input[type='file'],input[type='radio'],input[type='range'],label,option,select{cursor:pointer}input[type='color'],input[type='date'],input[type='datetime-local'],input[type='email'],input[type='file'],input[type='month'],input[type='number'],input[type='password'],input[type='search'],input[type='tel'],input[type='text'],input[type='time'],input[type='url'],input[type='week'],select:not([multiple]),select[multiple] option,textarea{font-size:1rem;width:100%}input[type='file']{padding:calc((var(--a11y-min-size) - 1rem) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - 1rem) / 2) 0.5em}kol-input.disabled :is(button,input,label,option,select,textarea){cursor:not-allowed;opacity:0.5}kol-input{display:grid}kol-input [slot='input']{flex-grow:1}input:not([type='checkbox'],[type='radio']),select:not([multiple],[size]){height:2.75em}input:focus,option:focus,select:focus,textarea:focus{outline:0}.input{display:flex;align-items:center}.input>kol-icon{display:grid;height:var(--a11y-min-size);place-items:center}",isSelected=(t,e)=>Array.isArray(t)&&t.includes(e),KolSelect=proxyCustomElement(class extends HTMLElement{renderOptgroup(t,e){var i;return h("optgroup",{disabled:!0===t.disabled,label:t.label},null===(i=t.options)||void 0===i?void 0:i.map(((t,i)=>{const o=`${e}-${i}`;return Array.isArray(t.options)?this.renderOptgroup(t,o):h("option",{disabled:!0===t.disabled,key:o,selected:isSelected(this.state._value,t.value),value:o},t.label)})))}render(){const{ariaDescribedBy:t}=getRenderStates(this.state),e=!1===this.state._label;return h(Host,{class:{"has-value":this.state._hasValue}},h("kol-input",{class:{"hide-label":!!this.state._hideLabel,select:!0},_disabled:this.state._disabled,_error:this.state._error,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_icon:this.state._icon,_id:this.state._id,_required:this.state._required,_touched:this.state._touched,onClick:()=>{var t;return null===(t=this.ref)||void 0===t?void 0:t.focus()}},h("span",{slot:"label"},e?h("slot",null):this.state._label),h("div",{slot:"input"},h("select",Object.assign({ref:this.catchRef,title:"",accessKey:this.state._accessKey,"aria-describedby":t.length>0?t.join(" "):void 0,"aria-labelledby":`${this.state._id}-label`,autoCapitalize:"off",autoCorrect:"off",disabled:this.state._disabled,id:this.state._id,multiple:this.state._multiple,name:this.state._name,required:this.state._required,size:this.state._rows,spellcheck:"false",style:{height:this.state._height}},{onClick:this.controller.onFacade.onClick,onBlur:this.controller.onFacade.onBlur,onFocus:this.controller.onFacade.onFocus},{onChange:this.onChange}),this.state._options.map(((t,e)=>{const i=`-${e}`;return Array.isArray(t.options)?this.renderOptgroup(t,i):h("option",{disabled:!0===t.disabled,key:i,selected:isSelected(this.state._value,t.value),value:i},t.label)}))),h("kol-tooltip",{"aria-hidden":"true",hidden:e||!this.state._hideLabel,_align:this._tooltipAlign,_id:`${this.state._id}-tooltip`,_label:"string"==typeof this.state._label?this.state._label:""}))))}constructor(){super(),this.__registerHost(),this.__attachShadow(),this.catchRef=t=>{this.ref=t,propagateFocus(this.host,this.ref)},this.onChange=t=>{var e,i;this._value=Array.from((null===(e=this.ref)||void 0===e?void 0:e.options)||[]).filter((t=>!0===t.selected)).map((t=>{var e;return null===(e=this.controller.getOptionByKey(t.value))||void 0===e?void 0:e.value})),this.controller.setFormAssociatedValue(this._value),"function"==typeof(null===(i=this.state._on)||void 0===i?void 0:i.onChange)&&this.state._on.onChange(t,this._value)},this._accessKey=void 0,this._alert=!0,this._disabled=void 0,this._error=void 0,this._height=void 0,this._hideLabel=void 0,this._hint="",this._icon=void 0,this._id=void 0,this._label=void 0,this._list=void 0,this._multiple=!1,this._name=void 0,this._on=void 0,this._options=void 0,this._required=void 0,this._rows=void 0,this._size=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this.state={_hasValue:!1,_height:"",_id:`id-${nonce()}`,_label:!1,_options:[],_multiple:!1,_value:[]},this.controller=new SelectController(this,"select",this.host)}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAlert(t){this.controller.validateAlert(t)}validateDisabled(t){this.controller.validateDisabled(t)}validateError(t){this.controller.validateError(t)}validateHeight(t){this.controller.validateHeight(t)}validateHideLabel(t){this.controller.validateHideLabel(t)}validateHint(t){this.controller.validateHint(t)}validateIcon(t){this.controller.validateIcon(t)}validateId(t){this.controller.validateId(t)}validateLabel(t){this.controller.validateLabel(t)}validateList(t){this.validateOptions(t)}validateMultiple(t){this.controller.validateMultiple(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validateOptions(t){this.controller.validateOptions(t)}validateRequired(t){this.controller.validateRequired(t)}validateRows(t){this.controller.validateRows(t)}validateSize(t){this.controller.validateRows(t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){this.controller.validateTabIndex(t)}validateTouched(t){this.controller.validateTouched(t)}validateValue(t){this.controller.validateValue(t)}componentWillLoad(){this._alert=!0===this._alert,this._touched=!0===this._touched,this.controller.componentWillLoad(this.onChange),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener((t=>this.state._hasValue=!!t))}get host(){return this}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_disabled:["validateDisabled"],_error:["validateError"],_height:["validateHeight"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icon:["validateIcon"],_id:["validateId"],_label:["validateLabel"],_list:["validateList"],_multiple:["validateMultiple"],_name:["validateName"],_on:["validateOn"],_options:["validateOptions"],_required:["validateRequired"],_rows:["validateRows"],_size:["validateSize"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}static get style(){return{default:defaultStyleCss}}},[33,"kol-select",{_accessKey:[1,"_access-key"],_alert:[1540],_disabled:[4],_error:[1],_height:[1],_hideLabel:[4,"_hide-label"],_hint:[1],_icon:[1],_id:[1],_label:[8],_list:[1],_multiple:[4],_name:[1],_on:[16],_options:[1],_required:[4],_rows:[2],_size:[2],_syncValueBySelector:[1,"_sync-value-by-selector"],_tabIndex:[2,"_tab-index"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1025],state:[32]}]);function defineCustomElement(){if("undefined"==typeof customElements)return;["kol-select","kol-alert","kol-alert-wc","kol-button-wc","kol-heading-wc","kol-icon","kol-input","kol-span-wc","kol-tooltip"].forEach((t=>{switch(t){case"kol-select":customElements.get(t)||customElements.define(t,KolSelect);break;case"kol-alert":customElements.get(t)||defineCustomElement$8();break;case"kol-alert-wc":customElements.get(t)||defineCustomElement$7();break;case"kol-button-wc":customElements.get(t)||defineCustomElement$6();break;case"kol-heading-wc":customElements.get(t)||defineCustomElement$5();break;case"kol-icon":customElements.get(t)||defineCustomElement$4();break;case"kol-input":customElements.get(t)||defineCustomElement$3();break;case"kol-span-wc":customElements.get(t)||defineCustomElement$2();break;case"kol-tooltip":customElements.get(t)||defineCustomElement$1()}}))}export{KolSelect as K,defineCustomElement as d};
@@ -0,0 +1 @@
1
+ {"file":"component16.js","mappings":";;;;;;;;;;;;;;;;;;MAaa,gBAAiB,SAAQ,mBAAmB;EAKxD,YAAmB,SAA4C,EAAE,IAAY,EAAE,IAAkB;IAChG,KAAK,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IAHb,iBAAY,GAAG,IAAI,GAAG,EAAiC,CAAC;IAOzD,mBAAc,GAAG,CAAC,GAAW,KAAwC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAE/F,qBAAgB,GAAG,CAAC,KAAa,EAAE,OAAsC;MACzF,QACC,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,KACnB,OAAQ,MAAgC,CAAC,KAAK,KAAK,QAAQ;UACvD,MAAgC,CAAC,KAAK,KAAK,KAAK;UACjD,KAAK,CAAC,OAAO,CAAE,MAA2B,CAAC,OAAO,CAAC;YACnD,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAG,MAA2B,CAAC,OAAO,CAAC;YAClE,KAAK,CACR,KAAK,SAAS,EACd;KACF,CAAC;IAEe,0BAAqB,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C,UAAU,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;GACxC;EAGM,eAAe,CAAC,KAAe;IACrC,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;GACvC;EAGM,aAAa,CAAC,KAAoC;IACxD,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;GACrC;EAEM,iBAAiB;IACvB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC;IACnC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC;IACvC,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAEjD,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;IAC3C,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;GAC5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/select/controller.ts","src/components/select/style.css?tag=kol-select&mode=default&encapsulation=shadow","src/components/select/component.tsx"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { Stringified } from '../../types/common';\nimport { Optgroup, Option, SelectOption } from '../../types/input/types';\nimport { OptionsWithOptgroupPropType, validateOptionsWithOptgroup } from '../../types/props/options';\nimport { RowsPropType, validateRows } from '../../types/props/rows';\nimport { W3CInputValue } from '../../types/w3c';\nimport { watchBoolean, watchJsonArrayString, 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';\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 beforePatchOptions = (_value: unknown, nextState: Map<string, unknown>): void => {\n\t\tconst options = nextState.has('_options') ? nextState.get('_options') : this.component.state._options;\n\t\tif (Array.isArray(options) && options.length > 0) {\n\t\t\tthis.keyOptionMap.clear();\n\t\t\tfillKeyOptionMap(this.keyOptionMap, options 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(\n\t\t\t\tArray.isArray(value) && value.length > 0 ? (value as string[]) : [],\n\t\t\t\toptions as SelectOption<W3CInputValue>[]\n\t\t\t);\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\toptions[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\tpublic validateOptions(value?: OptionsWithOptgroupPropType): void {\n\t\tvalidateOptionsWithOptgroup(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tbeforePatch: this.beforePatchOptions,\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic validateMultiple(value?: boolean): void {\n\t\twatchBoolean(this.component, '_multiple', value, {\n\t\t\thooks: {\n\t\t\t\tbeforePatch: this.beforePatchOptions,\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\tpublic validateRequired(value?: boolean): void {\n\t\twatchBoolean(this.component, '_required', value);\n\t}\n\n\tpublic validateRows(value?: RowsPropType) {\n\t\tvalidateRows(this.component, value);\n\t}\n\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.beforePatchOptions,\n\t\t\t},\n\t\t});\n\t\tthis.setFormAssociatedValue(this.component._value as string);\n\t}\n\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.validateOptions(this.component._options || this.component._list);\n\t\tthis.validateMultiple(this.component._multiple);\n\t\tthis.validateRequired(this.component._required);\n\t\tthis.validateRows(this.component._rows || this.component._size);\n\t\tthis.validateValue(this.component._value);\n\t}\n}\n","@import url(../input-line.css);\n","import { Component, Element, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { Stringified } from '../../types/common';\nimport { KoliBriHorizontalIcon } from '../../types/icon';\nimport { InputTypeOnDefault, Optgroup, Option, SelectOption } from '../../types/input/types';\nimport { Align } from '../../types/props/align';\nimport { LabelWithExpertSlotPropType } from '../../types/props/label';\nimport { OptionsWithOptgroupPropType } from '../../types/props/options';\nimport { RowsPropType } from '../../types/props/rows';\nimport { W3CInputValue } from '../../types/w3c';\nimport { nonce } from '../../utils/dev.utils';\nimport { propagateFocus } from '../../utils/reuse';\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 * @slot - Die Beschriftung des Eingabefeldes.\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\tpropagateFocus(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 { ariaDescribedBy } = getRenderStates(this.state);\n\t\tconst hasExpertSlot = this.state._label === false; // _label=\"\" or _label\n\n\t\treturn (\n\t\t\t<Host class={{ 'has-value': this.state._hasValue }}>\n\t\t\t\t<kol-input\n\t\t\t\t\tclass={{\n\t\t\t\t\t\t'hide-label': !!this.state._hideLabel,\n\t\t\t\t\t\tselect: true,\n\t\t\t\t\t}}\n\t\t\t\t\t_disabled={this.state._disabled}\n\t\t\t\t\t_error={this.state._error}\n\t\t\t\t\t_hideLabel={this.state._hideLabel}\n\t\t\t\t\t_hint={this.state._hint}\n\t\t\t\t\t_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\tonClick={() => this.ref?.focus()}\n\t\t\t\t>\n\t\t\t\t\t{/* TODO: der folgende Slot ohne Name muss später entfernt werden */}\n\t\t\t\t\t<span slot=\"label\">{hasExpertSlot ? <slot></slot> : this.state._label}</span>\n\t\t\t\t\t<div slot=\"input\">\n\t\t\t\t\t\t<select\n\t\t\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\t\t\ttitle=\"\"\n\t\t\t\t\t\t\taccessKey={this.state._accessKey}\n\t\t\t\t\t\t\taria-describedby={ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined}\n\t\t\t\t\t\t\taria-labelledby={`${this.state._id}-label`}\n\t\t\t\t\t\t\tautoCapitalize=\"off\"\n\t\t\t\t\t\t\tautoCorrect=\"off\"\n\t\t\t\t\t\t\tdisabled={this.state._disabled}\n\t\t\t\t\t\t\tid={this.state._id}\n\t\t\t\t\t\t\tmultiple={this.state._multiple}\n\t\t\t\t\t\t\tname={this.state._name}\n\t\t\t\t\t\t\trequired={this.state._required}\n\t\t\t\t\t\t\tsize={this.state._rows}\n\t\t\t\t\t\t\tspellcheck=\"false\"\n\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\theight: this.state._height,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t{...{\n\t\t\t\t\t\t\t\tonClick: this.controller.onFacade.onClick,\n\t\t\t\t\t\t\t\tonBlur: this.controller.onFacade.onBlur,\n\t\t\t\t\t\t\t\tonFocus: this.controller.onFacade.onFocus,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\tonChange={this.onChange}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{this.state._options.map((option, index) => {\n\t\t\t\t\t\t\t\t/**\n\t\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\t * muss man auf HTML-Ebene den Value auf einen String-Wert\n\t\t\t\t\t\t\t\t * mappen. Das tun wir mittels der Map.\n\t\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\t\tconst key = `-${index}`;\n\t\t\t\t\t\t\t\tif (Array.isArray((option as unknown as Optgroup<string>).options)) {\n\t\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\t} else {\n\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t<option\n\t\t\t\t\t\t\t\t\t\t\tdisabled={option.disabled === true}\n\t\t\t\t\t\t\t\t\t\t\tkey={key}\n\t\t\t\t\t\t\t\t\t\t\t// label={option.label}\n\t\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\t\tvalue={key}\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t{option.label}\n\t\t\t\t\t\t\t\t\t\t</option>\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t</select>\n\t\t\t\t\t\t<kol-tooltip\n\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t * Dieses Aria-Hidden verhindert das doppelte Vorlesen des Labels,\n\t\t\t\t\t\t\t * verhindert aber nicht das Aria-Labelledby vorgelesen wird.\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\t\t\thidden={hasExpertSlot || !this.state._hideLabel}\n\t\t\t\t\t\t\t_align={this._tooltipAlign}\n\t\t\t\t\t\t\t_id={`${this.state._id}-tooltip`}\n\t\t\t\t\t\t\t_label={typeof this.state._label === 'string' ? this.state._label : ''}\n\t\t\t\t\t\t></kol-tooltip>\n\t\t\t\t\t</div>\n\t\t\t\t</kol-input>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate readonly controller: SelectController;\n\n\t/**\n\t * Gibt an, mit welcher Tastenkombination man das interaktive Element der Komponente auslösen oder fokussieren kann.\n\t */\n\t@Prop() public _accessKey?: string;\n\n\t/**\n\t * Gibt an, ob der Screenreader die Meldung aktiv vorlesen soll.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _alert?: boolean = true;\n\n\t/**\n\t * Deaktiviert das interaktive Element in der Komponente und erlaubt keine Interaktion mehr damit.\n\t */\n\t@Prop() 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 _rows instead.\n\t */\n\t@Prop() public _height?: string;\n\n\t/**\n\t * Blendet die Beschriftung (Label) aus und zeigt sie stattdessen mittels eines Tooltips an.\n\t */\n\t@Prop() public _hideLabel?: boolean;\n\n\t/**\n\t * Gibt den Hinweistext an.\n\t */\n\t@Prop() public _hint?: string = '';\n\n\t/**\n\t * Setzt die Iconklasse (z.B.: `_icon=\"codicon codicon-home`).\n\t */\n\t@Prop() public _icon?: Stringified<KoliBriHorizontalIcon>;\n\n\t/**\n\t * Gibt die interne ID des primären Elements in der Komponente an.\n\t */\n\t@Prop() public _id?: string;\n\n\t/**\n\t * Setzt die sichtbare oder semantische Beschriftung der Komponente (z.B. Aria-Label, Label, Headline, Caption, Summary usw.).\n\t */\n\t@Prop() public _label!: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Options the user can choose from, also supporting Optgroup.\n\t * @deprecated use _options\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() 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 * Options the user can choose from, also supporting Optgroup.\n\t */\n\t@Prop() public _options?: OptionsWithOptgroupPropType;\n\n\t/**\n\t * Macht das Eingabeelementzu einem Pflichtfeld.\n\t */\n\t@Prop() public _required?: boolean;\n\n\t/**\n\t * Defines how many rows of options should be visible at the same time.\n\t */\n\t@Prop() public _rows?: number;\n\n\t/**\n\t * Wechselt das Eingabeelement in den Auswahlfeld modus und setzt die Höhe des Feldes.\n\t */\n\t@Prop() public _size?: number;\n\n\t/**\n\t * Selector for synchronizing the value with another input element.\n\t * @internal\n\t */\n\t@Prop() public _syncValueBySelector?: string;\n\n\t/**\n\t * Gibt an, welchen Tab-Index das primäre Element in der Komponente hat. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)\n\t */\n\t@Prop() public _tabIndex?: number;\n\n\t/**\n\t * Gibt an, ob der Tooltip bevorzugt entweder oben, rechts, unten oder links angezeigt werden soll.\n\t */\n\t@Prop() public _tooltipAlign?: Align = 'top';\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@State() public state: States = {\n\t\t_hasValue: false,\n\t\t_height: '',\n\t\t_id: `id-${nonce()}`, // ⚠ required\n\t\t_label: false, // ⚠ required\n\t\t_options: [],\n\t\t_multiple: false,\n\t\t_value: [],\n\t};\n\n\tpublic constructor() {\n\t\tthis.controller = new SelectController(this, 'select', this.host);\n\t}\n\n\t@Watch('_accessKey')\n\tpublic validateAccessKey(value?: string): void {\n\t\tthis.controller.validateAccessKey(value);\n\t}\n\n\t@Watch('_alert')\n\tpublic validateAlert(value?: boolean): void {\n\t\tthis.controller.validateAlert(value);\n\t}\n\n\t@Watch('_disabled')\n\tpublic validateDisabled(value?: boolean): void {\n\t\tthis.controller.validateDisabled(value);\n\t}\n\n\t@Watch('_error')\n\tpublic validateError(value?: string): void {\n\t\tthis.controller.validateError(value);\n\t}\n\n\t@Watch('_height')\n\tpublic validateHeight(value?: string): void {\n\t\tthis.controller.validateHeight(value);\n\t}\n\n\t@Watch('_hideLabel')\n\tpublic validateHideLabel(value?: boolean): void {\n\t\tthis.controller.validateHideLabel(value);\n\t}\n\n\t@Watch('_hint')\n\tpublic validateHint(value?: string): void {\n\t\tthis.controller.validateHint(value);\n\t}\n\n\t@Watch('_icon')\n\tpublic validateIcon(value?: Stringified<KoliBriHorizontalIcon>): void {\n\t\tthis.controller.validateIcon(value);\n\t}\n\n\t@Watch('_id')\n\tpublic validateId(value?: string): void {\n\t\tthis.controller.validateId(value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelWithExpertSlotPropType): void {\n\t\tthis.controller.validateLabel(value);\n\t}\n\n\t@Watch('_list')\n\tpublic validateList(value?: Stringified<SelectOption<W3CInputValue>[]>): void {\n\t\tthis.validateOptions(value);\n\t}\n\n\t@Watch('_multiple')\n\tpublic validateMultiple(value?: boolean): void {\n\t\tthis.controller.validateMultiple(value);\n\t}\n\n\t@Watch('_name')\n\tpublic validateName(value?: string): void {\n\t\tthis.controller.validateName(value);\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(value?: InputTypeOnDefault): void {\n\t\tthis.controller.validateOn(value);\n\t}\n\n\t@Watch('_options')\n\tpublic validateOptions(value?: OptionsWithOptgroupPropType): void {\n\t\tthis.controller.validateOptions(value);\n\t}\n\n\t@Watch('_required')\n\tpublic validateRequired(value?: boolean): void {\n\t\tthis.controller.validateRequired(value);\n\t}\n\n\t@Watch('_rows')\n\tpublic validateRows(value?: RowsPropType): void {\n\t\tthis.controller.validateRows(value);\n\t}\n\n\t@Watch('_size')\n\tpublic validateSize(value?: number): void {\n\t\tthis.controller.validateRows(value);\n\t}\n\n\t@Watch('_syncValueBySelector')\n\tpublic validateSyncValueBySelector(value?: string): void {\n\t\tthis.controller.validateSyncValueBySelector(value);\n\t}\n\n\t@Watch('_tabIndex')\n\tpublic validateTabIndex(value?: number): void {\n\t\tthis.controller.validateTabIndex(value);\n\t}\n\n\t@Watch('_touched')\n\tpublic validateTouched(value?: boolean): void {\n\t\tthis.controller.validateTouched(value);\n\t}\n\n\t@Watch('_value')\n\tpublic validateValue(value?: Stringified<W3CInputValue[]>): void {\n\t\tthis.controller.validateValue(value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis._alert = this._alert === true;\n\t\tthis._touched = this._touched === true;\n\t\tthis.controller.componentWillLoad(this.onChange);\n\n\t\tthis.state._hasValue = !!this.state._value;\n\t\tthis.controller.addValueChangeListener((v) => (this.state._hasValue = !!v));\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"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{w as watchString,d as devHint}from"./prop.validators.js";const defaultStyleCss='@font-face{font-family:"codicon";font-display:block;src:url("./codicon.ttf?0e5b0adf625a37fbcd638d31f0fe72aa") format("truetype")}.codicon[class*=\'codicon-\']{font:normal normal normal 16px/1 codicon;display:inline-block;text-decoration:none;text-rendering:auto;text-align:center;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;user-select:none;-webkit-user-select:none;-ms-user-select:none}@keyframes codicon-spin{100%{transform:rotate(360deg)}}.codicon-sync.codicon-modifier-spin,.codicon-loading.codicon-modifier-spin,.codicon-gear.codicon-modifier-spin{animation:codicon-spin 1.5s steps(30) infinite}.codicon-modifier-disabled{opacity:0.5}.codicon-modifier-hidden{opacity:0}.codicon-loading{animation-duration:1s !important;animation-timing-function:cubic-bezier(0.53, 0.21, 0.29, 0.67) !important}.codicon-add:before{content:"\\ea60"}.codicon-plus:before{content:"\\ea60"}.codicon-gist-new:before{content:"\\ea60"}.codicon-repo-create:before{content:"\\ea60"}.codicon-lightbulb:before{content:"\\ea61"}.codicon-light-bulb:before{content:"\\ea61"}.codicon-repo:before{content:"\\ea62"}.codicon-repo-delete:before{content:"\\ea62"}.codicon-gist-fork:before{content:"\\ea63"}.codicon-repo-forked:before{content:"\\ea63"}.codicon-git-pull-request:before{content:"\\ea64"}.codicon-git-pull-request-abandoned:before{content:"\\ea64"}.codicon-record-keys:before{content:"\\ea65"}.codicon-keyboard:before{content:"\\ea65"}.codicon-tag:before{content:"\\ea66"}.codicon-tag-add:before{content:"\\ea66"}.codicon-tag-remove:before{content:"\\ea66"}.codicon-person:before{content:"\\ea67"}.codicon-person-follow:before{content:"\\ea67"}.codicon-person-outline:before{content:"\\ea67"}.codicon-person-filled:before{content:"\\ea67"}.codicon-git-branch:before{content:"\\ea68"}.codicon-git-branch-create:before{content:"\\ea68"}.codicon-git-branch-delete:before{content:"\\ea68"}.codicon-source-control:before{content:"\\ea68"}.codicon-mirror:before{content:"\\ea69"}.codicon-mirror-public:before{content:"\\ea69"}.codicon-star:before{content:"\\ea6a"}.codicon-star-add:before{content:"\\ea6a"}.codicon-star-delete:before{content:"\\ea6a"}.codicon-star-empty:before{content:"\\ea6a"}.codicon-comment:before{content:"\\ea6b"}.codicon-comment-add:before{content:"\\ea6b"}.codicon-alert:before{content:"\\ea6c"}.codicon-warning:before{content:"\\ea6c"}.codicon-search:before{content:"\\ea6d"}.codicon-search-save:before{content:"\\ea6d"}.codicon-log-out:before{content:"\\ea6e"}.codicon-sign-out:before{content:"\\ea6e"}.codicon-log-in:before{content:"\\ea6f"}.codicon-sign-in:before{content:"\\ea6f"}.codicon-eye:before{content:"\\ea70"}.codicon-eye-unwatch:before{content:"\\ea70"}.codicon-eye-watch:before{content:"\\ea70"}.codicon-circle-filled:before{content:"\\ea71"}.codicon-primitive-dot:before{content:"\\ea71"}.codicon-close-dirty:before{content:"\\ea71"}.codicon-debug-breakpoint:before{content:"\\ea71"}.codicon-debug-breakpoint-disabled:before{content:"\\ea71"}.codicon-debug-hint:before{content:"\\ea71"}.codicon-primitive-square:before{content:"\\ea72"}.codicon-edit:before{content:"\\ea73"}.codicon-pencil:before{content:"\\ea73"}.codicon-info:before{content:"\\ea74"}.codicon-issue-opened:before{content:"\\ea74"}.codicon-gist-private:before{content:"\\ea75"}.codicon-git-fork-private:before{content:"\\ea75"}.codicon-lock:before{content:"\\ea75"}.codicon-mirror-private:before{content:"\\ea75"}.codicon-close:before{content:"\\ea76"}.codicon-remove-close:before{content:"\\ea76"}.codicon-x:before{content:"\\ea76"}.codicon-repo-sync:before{content:"\\ea77"}.codicon-sync:before{content:"\\ea77"}.codicon-clone:before{content:"\\ea78"}.codicon-desktop-download:before{content:"\\ea78"}.codicon-beaker:before{content:"\\ea79"}.codicon-microscope:before{content:"\\ea79"}.codicon-vm:before{content:"\\ea7a"}.codicon-device-desktop:before{content:"\\ea7a"}.codicon-file:before{content:"\\ea7b"}.codicon-file-text:before{content:"\\ea7b"}.codicon-more:before{content:"\\ea7c"}.codicon-ellipsis:before{content:"\\ea7c"}.codicon-kebab-horizontal:before{content:"\\ea7c"}.codicon-mail-reply:before{content:"\\ea7d"}.codicon-reply:before{content:"\\ea7d"}.codicon-organization:before{content:"\\ea7e"}.codicon-organization-filled:before{content:"\\ea7e"}.codicon-organization-outline:before{content:"\\ea7e"}.codicon-new-file:before{content:"\\ea7f"}.codicon-file-add:before{content:"\\ea7f"}.codicon-new-folder:before{content:"\\ea80"}.codicon-file-directory-create:before{content:"\\ea80"}.codicon-trash:before{content:"\\ea81"}.codicon-trashcan:before{content:"\\ea81"}.codicon-history:before{content:"\\ea82"}.codicon-clock:before{content:"\\ea82"}.codicon-folder:before{content:"\\ea83"}.codicon-file-directory:before{content:"\\ea83"}.codicon-symbol-folder:before{content:"\\ea83"}.codicon-logo-github:before{content:"\\ea84"}.codicon-mark-github:before{content:"\\ea84"}.codicon-github:before{content:"\\ea84"}.codicon-terminal:before{content:"\\ea85"}.codicon-console:before{content:"\\ea85"}.codicon-repl:before{content:"\\ea85"}.codicon-zap:before{content:"\\ea86"}.codicon-symbol-event:before{content:"\\ea86"}.codicon-error:before{content:"\\ea87"}.codicon-stop:before{content:"\\ea87"}.codicon-variable:before{content:"\\ea88"}.codicon-symbol-variable:before{content:"\\ea88"}.codicon-array:before{content:"\\ea8a"}.codicon-symbol-array:before{content:"\\ea8a"}.codicon-symbol-module:before{content:"\\ea8b"}.codicon-symbol-package:before{content:"\\ea8b"}.codicon-symbol-namespace:before{content:"\\ea8b"}.codicon-symbol-object:before{content:"\\ea8b"}.codicon-symbol-method:before{content:"\\ea8c"}.codicon-symbol-function:before{content:"\\ea8c"}.codicon-symbol-constructor:before{content:"\\ea8c"}.codicon-symbol-boolean:before{content:"\\ea8f"}.codicon-symbol-null:before{content:"\\ea8f"}.codicon-symbol-numeric:before{content:"\\ea90"}.codicon-symbol-number:before{content:"\\ea90"}.codicon-symbol-structure:before{content:"\\ea91"}.codicon-symbol-struct:before{content:"\\ea91"}.codicon-symbol-parameter:before{content:"\\ea92"}.codicon-symbol-type-parameter:before{content:"\\ea92"}.codicon-symbol-key:before{content:"\\ea93"}.codicon-symbol-text:before{content:"\\ea93"}.codicon-symbol-reference:before{content:"\\ea94"}.codicon-go-to-file:before{content:"\\ea94"}.codicon-symbol-enum:before{content:"\\ea95"}.codicon-symbol-value:before{content:"\\ea95"}.codicon-symbol-ruler:before{content:"\\ea96"}.codicon-symbol-unit:before{content:"\\ea96"}.codicon-activate-breakpoints:before{content:"\\ea97"}.codicon-archive:before{content:"\\ea98"}.codicon-arrow-both:before{content:"\\ea99"}.codicon-arrow-down:before{content:"\\ea9a"}.codicon-arrow-left:before{content:"\\ea9b"}.codicon-arrow-right:before{content:"\\ea9c"}.codicon-arrow-small-down:before{content:"\\ea9d"}.codicon-arrow-small-left:before{content:"\\ea9e"}.codicon-arrow-small-right:before{content:"\\ea9f"}.codicon-arrow-small-up:before{content:"\\eaa0"}.codicon-arrow-up:before{content:"\\eaa1"}.codicon-bell:before{content:"\\eaa2"}.codicon-bold:before{content:"\\eaa3"}.codicon-book:before{content:"\\eaa4"}.codicon-bookmark:before{content:"\\eaa5"}.codicon-debug-breakpoint-conditional-unverified:before{content:"\\eaa6"}.codicon-debug-breakpoint-conditional:before{content:"\\eaa7"}.codicon-debug-breakpoint-conditional-disabled:before{content:"\\eaa7"}.codicon-debug-breakpoint-data-unverified:before{content:"\\eaa8"}.codicon-debug-breakpoint-data:before{content:"\\eaa9"}.codicon-debug-breakpoint-data-disabled:before{content:"\\eaa9"}.codicon-debug-breakpoint-log-unverified:before{content:"\\eaaa"}.codicon-debug-breakpoint-log:before{content:"\\eaab"}.codicon-debug-breakpoint-log-disabled:before{content:"\\eaab"}.codicon-briefcase:before{content:"\\eaac"}.codicon-broadcast:before{content:"\\eaad"}.codicon-browser:before{content:"\\eaae"}.codicon-bug:before{content:"\\eaaf"}.codicon-calendar:before{content:"\\eab0"}.codicon-case-sensitive:before{content:"\\eab1"}.codicon-check:before{content:"\\eab2"}.codicon-checklist:before{content:"\\eab3"}.codicon-chevron-down:before{content:"\\eab4"}.codicon-chevron-left:before{content:"\\eab5"}.codicon-chevron-right:before{content:"\\eab6"}.codicon-chevron-up:before{content:"\\eab7"}.codicon-chrome-close:before{content:"\\eab8"}.codicon-chrome-maximize:before{content:"\\eab9"}.codicon-chrome-minimize:before{content:"\\eaba"}.codicon-chrome-restore:before{content:"\\eabb"}.codicon-circle-outline:before{content:"\\eabc"}.codicon-debug-breakpoint-unverified:before{content:"\\eabc"}.codicon-circle-slash:before{content:"\\eabd"}.codicon-circuit-board:before{content:"\\eabe"}.codicon-clear-all:before{content:"\\eabf"}.codicon-clippy:before{content:"\\eac0"}.codicon-close-all:before{content:"\\eac1"}.codicon-cloud-download:before{content:"\\eac2"}.codicon-cloud-upload:before{content:"\\eac3"}.codicon-code:before{content:"\\eac4"}.codicon-collapse-all:before{content:"\\eac5"}.codicon-color-mode:before{content:"\\eac6"}.codicon-comment-discussion:before{content:"\\eac7"}.codicon-credit-card:before{content:"\\eac9"}.codicon-dash:before{content:"\\eacc"}.codicon-dashboard:before{content:"\\eacd"}.codicon-database:before{content:"\\eace"}.codicon-debug-continue:before{content:"\\eacf"}.codicon-debug-disconnect:before{content:"\\ead0"}.codicon-debug-pause:before{content:"\\ead1"}.codicon-debug-restart:before{content:"\\ead2"}.codicon-debug-start:before{content:"\\ead3"}.codicon-debug-step-into:before{content:"\\ead4"}.codicon-debug-step-out:before{content:"\\ead5"}.codicon-debug-step-over:before{content:"\\ead6"}.codicon-debug-stop:before{content:"\\ead7"}.codicon-debug:before{content:"\\ead8"}.codicon-device-camera-video:before{content:"\\ead9"}.codicon-device-camera:before{content:"\\eada"}.codicon-device-mobile:before{content:"\\eadb"}.codicon-diff-added:before{content:"\\eadc"}.codicon-diff-ignored:before{content:"\\eadd"}.codicon-diff-modified:before{content:"\\eade"}.codicon-diff-removed:before{content:"\\eadf"}.codicon-diff-renamed:before{content:"\\eae0"}.codicon-diff:before{content:"\\eae1"}.codicon-discard:before{content:"\\eae2"}.codicon-editor-layout:before{content:"\\eae3"}.codicon-empty-window:before{content:"\\eae4"}.codicon-exclude:before{content:"\\eae5"}.codicon-extensions:before{content:"\\eae6"}.codicon-eye-closed:before{content:"\\eae7"}.codicon-file-binary:before{content:"\\eae8"}.codicon-file-code:before{content:"\\eae9"}.codicon-file-media:before{content:"\\eaea"}.codicon-file-pdf:before{content:"\\eaeb"}.codicon-file-submodule:before{content:"\\eaec"}.codicon-file-symlink-directory:before{content:"\\eaed"}.codicon-file-symlink-file:before{content:"\\eaee"}.codicon-file-zip:before{content:"\\eaef"}.codicon-files:before{content:"\\eaf0"}.codicon-filter:before{content:"\\eaf1"}.codicon-flame:before{content:"\\eaf2"}.codicon-fold-down:before{content:"\\eaf3"}.codicon-fold-up:before{content:"\\eaf4"}.codicon-fold:before{content:"\\eaf5"}.codicon-folder-active:before{content:"\\eaf6"}.codicon-folder-opened:before{content:"\\eaf7"}.codicon-gear:before{content:"\\eaf8"}.codicon-gift:before{content:"\\eaf9"}.codicon-gist-secret:before{content:"\\eafa"}.codicon-gist:before{content:"\\eafb"}.codicon-git-commit:before{content:"\\eafc"}.codicon-git-compare:before{content:"\\eafd"}.codicon-compare-changes:before{content:"\\eafd"}.codicon-git-merge:before{content:"\\eafe"}.codicon-github-action:before{content:"\\eaff"}.codicon-github-alt:before{content:"\\eb00"}.codicon-globe:before{content:"\\eb01"}.codicon-grabber:before{content:"\\eb02"}.codicon-graph:before{content:"\\eb03"}.codicon-gripper:before{content:"\\eb04"}.codicon-heart:before{content:"\\eb05"}.codicon-home:before{content:"\\eb06"}.codicon-horizontal-rule:before{content:"\\eb07"}.codicon-hubot:before{content:"\\eb08"}.codicon-inbox:before{content:"\\eb09"}.codicon-issue-reopened:before{content:"\\eb0b"}.codicon-issues:before{content:"\\eb0c"}.codicon-italic:before{content:"\\eb0d"}.codicon-jersey:before{content:"\\eb0e"}.codicon-json:before{content:"\\eb0f"}.codicon-kebab-vertical:before{content:"\\eb10"}.codicon-key:before{content:"\\eb11"}.codicon-law:before{content:"\\eb12"}.codicon-lightbulb-autofix:before{content:"\\eb13"}.codicon-link-external:before{content:"\\eb14"}.codicon-link:before{content:"\\eb15"}.codicon-list-ordered:before{content:"\\eb16"}.codicon-list-unordered:before{content:"\\eb17"}.codicon-live-share:before{content:"\\eb18"}.codicon-loading:before{content:"\\eb19"}.codicon-location:before{content:"\\eb1a"}.codicon-mail-read:before{content:"\\eb1b"}.codicon-mail:before{content:"\\eb1c"}.codicon-markdown:before{content:"\\eb1d"}.codicon-megaphone:before{content:"\\eb1e"}.codicon-mention:before{content:"\\eb1f"}.codicon-milestone:before{content:"\\eb20"}.codicon-mortar-board:before{content:"\\eb21"}.codicon-move:before{content:"\\eb22"}.codicon-multiple-windows:before{content:"\\eb23"}.codicon-mute:before{content:"\\eb24"}.codicon-no-newline:before{content:"\\eb25"}.codicon-note:before{content:"\\eb26"}.codicon-octoface:before{content:"\\eb27"}.codicon-open-preview:before{content:"\\eb28"}.codicon-package:before{content:"\\eb29"}.codicon-paintcan:before{content:"\\eb2a"}.codicon-pin:before{content:"\\eb2b"}.codicon-play:before{content:"\\eb2c"}.codicon-run:before{content:"\\eb2c"}.codicon-plug:before{content:"\\eb2d"}.codicon-preserve-case:before{content:"\\eb2e"}.codicon-preview:before{content:"\\eb2f"}.codicon-project:before{content:"\\eb30"}.codicon-pulse:before{content:"\\eb31"}.codicon-question:before{content:"\\eb32"}.codicon-quote:before{content:"\\eb33"}.codicon-radio-tower:before{content:"\\eb34"}.codicon-reactions:before{content:"\\eb35"}.codicon-references:before{content:"\\eb36"}.codicon-refresh:before{content:"\\eb37"}.codicon-regex:before{content:"\\eb38"}.codicon-remote-explorer:before{content:"\\eb39"}.codicon-remote:before{content:"\\eb3a"}.codicon-remove:before{content:"\\eb3b"}.codicon-replace-all:before{content:"\\eb3c"}.codicon-replace:before{content:"\\eb3d"}.codicon-repo-clone:before{content:"\\eb3e"}.codicon-repo-force-push:before{content:"\\eb3f"}.codicon-repo-pull:before{content:"\\eb40"}.codicon-repo-push:before{content:"\\eb41"}.codicon-report:before{content:"\\eb42"}.codicon-request-changes:before{content:"\\eb43"}.codicon-rocket:before{content:"\\eb44"}.codicon-root-folder-opened:before{content:"\\eb45"}.codicon-root-folder:before{content:"\\eb46"}.codicon-rss:before{content:"\\eb47"}.codicon-ruby:before{content:"\\eb48"}.codicon-save-all:before{content:"\\eb49"}.codicon-save-as:before{content:"\\eb4a"}.codicon-save:before{content:"\\eb4b"}.codicon-screen-full:before{content:"\\eb4c"}.codicon-screen-normal:before{content:"\\eb4d"}.codicon-search-stop:before{content:"\\eb4e"}.codicon-server:before{content:"\\eb50"}.codicon-settings-gear:before{content:"\\eb51"}.codicon-settings:before{content:"\\eb52"}.codicon-shield:before{content:"\\eb53"}.codicon-smiley:before{content:"\\eb54"}.codicon-sort-precedence:before{content:"\\eb55"}.codicon-split-horizontal:before{content:"\\eb56"}.codicon-split-vertical:before{content:"\\eb57"}.codicon-squirrel:before{content:"\\eb58"}.codicon-star-full:before{content:"\\eb59"}.codicon-star-half:before{content:"\\eb5a"}.codicon-symbol-class:before{content:"\\eb5b"}.codicon-symbol-color:before{content:"\\eb5c"}.codicon-symbol-constant:before{content:"\\eb5d"}.codicon-symbol-enum-member:before{content:"\\eb5e"}.codicon-symbol-field:before{content:"\\eb5f"}.codicon-symbol-file:before{content:"\\eb60"}.codicon-symbol-interface:before{content:"\\eb61"}.codicon-symbol-keyword:before{content:"\\eb62"}.codicon-symbol-misc:before{content:"\\eb63"}.codicon-symbol-operator:before{content:"\\eb64"}.codicon-symbol-property:before{content:"\\eb65"}.codicon-wrench:before{content:"\\eb65"}.codicon-wrench-subaction:before{content:"\\eb65"}.codicon-symbol-snippet:before{content:"\\eb66"}.codicon-tasklist:before{content:"\\eb67"}.codicon-telescope:before{content:"\\eb68"}.codicon-text-size:before{content:"\\eb69"}.codicon-three-bars:before{content:"\\eb6a"}.codicon-thumbsdown:before{content:"\\eb6b"}.codicon-thumbsup:before{content:"\\eb6c"}.codicon-tools:before{content:"\\eb6d"}.codicon-triangle-down:before{content:"\\eb6e"}.codicon-triangle-left:before{content:"\\eb6f"}.codicon-triangle-right:before{content:"\\eb70"}.codicon-triangle-up:before{content:"\\eb71"}.codicon-twitter:before{content:"\\eb72"}.codicon-unfold:before{content:"\\eb73"}.codicon-unlock:before{content:"\\eb74"}.codicon-unmute:before{content:"\\eb75"}.codicon-unverified:before{content:"\\eb76"}.codicon-verified:before{content:"\\eb77"}.codicon-versions:before{content:"\\eb78"}.codicon-vm-active:before{content:"\\eb79"}.codicon-vm-outline:before{content:"\\eb7a"}.codicon-vm-running:before{content:"\\eb7b"}.codicon-watch:before{content:"\\eb7c"}.codicon-whitespace:before{content:"\\eb7d"}.codicon-whole-word:before{content:"\\eb7e"}.codicon-window:before{content:"\\eb7f"}.codicon-word-wrap:before{content:"\\eb80"}.codicon-zoom-in:before{content:"\\eb81"}.codicon-zoom-out:before{content:"\\eb82"}.codicon-list-filter:before{content:"\\eb83"}.codicon-list-flat:before{content:"\\eb84"}.codicon-list-selection:before{content:"\\eb85"}.codicon-selection:before{content:"\\eb85"}.codicon-list-tree:before{content:"\\eb86"}.codicon-debug-breakpoint-function-unverified:before{content:"\\eb87"}.codicon-debug-breakpoint-function:before{content:"\\eb88"}.codicon-debug-breakpoint-function-disabled:before{content:"\\eb88"}.codicon-debug-stackframe-active:before{content:"\\eb89"}.codicon-circle-small-filled:before{content:"\\eb8a"}.codicon-debug-stackframe-dot:before{content:"\\eb8a"}.codicon-debug-stackframe:before{content:"\\eb8b"}.codicon-debug-stackframe-focused:before{content:"\\eb8b"}.codicon-debug-breakpoint-unsupported:before{content:"\\eb8c"}.codicon-symbol-string:before{content:"\\eb8d"}.codicon-debug-reverse-continue:before{content:"\\eb8e"}.codicon-debug-step-back:before{content:"\\eb8f"}.codicon-debug-restart-frame:before{content:"\\eb90"}.codicon-debug-alt:before{content:"\\eb91"}.codicon-call-incoming:before{content:"\\eb92"}.codicon-call-outgoing:before{content:"\\eb93"}.codicon-menu:before{content:"\\eb94"}.codicon-expand-all:before{content:"\\eb95"}.codicon-feedback:before{content:"\\eb96"}.codicon-group-by-ref-type:before{content:"\\eb97"}.codicon-ungroup-by-ref-type:before{content:"\\eb98"}.codicon-account:before{content:"\\eb99"}.codicon-bell-dot:before{content:"\\eb9a"}.codicon-debug-console:before{content:"\\eb9b"}.codicon-library:before{content:"\\eb9c"}.codicon-output:before{content:"\\eb9d"}.codicon-run-all:before{content:"\\eb9e"}.codicon-sync-ignored:before{content:"\\eb9f"}.codicon-pinned:before{content:"\\eba0"}.codicon-github-inverted:before{content:"\\eba1"}.codicon-server-process:before{content:"\\eba2"}.codicon-server-environment:before{content:"\\eba3"}.codicon-pass:before{content:"\\eba4"}.codicon-issue-closed:before{content:"\\eba4"}.codicon-stop-circle:before{content:"\\eba5"}.codicon-play-circle:before{content:"\\eba6"}.codicon-record:before{content:"\\eba7"}.codicon-debug-alt-small:before{content:"\\eba8"}.codicon-vm-connect:before{content:"\\eba9"}.codicon-cloud:before{content:"\\ebaa"}.codicon-merge:before{content:"\\ebab"}.codicon-export:before{content:"\\ebac"}.codicon-graph-left:before{content:"\\ebad"}.codicon-magnet:before{content:"\\ebae"}.codicon-notebook:before{content:"\\ebaf"}.codicon-redo:before{content:"\\ebb0"}.codicon-check-all:before{content:"\\ebb1"}.codicon-pinned-dirty:before{content:"\\ebb2"}.codicon-pass-filled:before{content:"\\ebb3"}.codicon-circle-large-filled:before{content:"\\ebb4"}.codicon-circle-large-outline:before{content:"\\ebb5"}.codicon-combine:before{content:"\\ebb6"}.codicon-gather:before{content:"\\ebb6"}.codicon-table:before{content:"\\ebb7"}.codicon-variable-group:before{content:"\\ebb8"}.codicon-type-hierarchy:before{content:"\\ebb9"}.codicon-type-hierarchy-sub:before{content:"\\ebba"}.codicon-type-hierarchy-super:before{content:"\\ebbb"}.codicon-git-pull-request-create:before{content:"\\ebbc"}.codicon-run-above:before{content:"\\ebbd"}.codicon-run-below:before{content:"\\ebbe"}.codicon-notebook-template:before{content:"\\ebbf"}.codicon-debug-rerun:before{content:"\\ebc0"}.codicon-workspace-trusted:before{content:"\\ebc1"}.codicon-workspace-untrusted:before{content:"\\ebc2"}.codicon-workspace-unknown:before{content:"\\ebc3"}.codicon-terminal-cmd:before{content:"\\ebc4"}.codicon-terminal-debian:before{content:"\\ebc5"}.codicon-terminal-linux:before{content:"\\ebc6"}.codicon-terminal-powershell:before{content:"\\ebc7"}.codicon-terminal-tmux:before{content:"\\ebc8"}.codicon-terminal-ubuntu:before{content:"\\ebc9"}.codicon-terminal-bash:before{content:"\\ebca"}.codicon-arrow-swap:before{content:"\\ebcb"}.codicon-copy:before{content:"\\ebcc"}.codicon-person-add:before{content:"\\ebcd"}.codicon-filter-filled:before{content:"\\ebce"}.codicon-wand:before{content:"\\ebcf"}.codicon-debug-line-by-line:before{content:"\\ebd0"}.codicon-inspect:before{content:"\\ebd1"}.codicon-layers:before{content:"\\ebd2"}.codicon-layers-dot:before{content:"\\ebd3"}.codicon-layers-active:before{content:"\\ebd4"}.codicon-compass:before{content:"\\ebd5"}.codicon-compass-dot:before{content:"\\ebd6"}.codicon-compass-active:before{content:"\\ebd7"}.codicon-azure:before{content:"\\ebd8"}.codicon-issue-draft:before{content:"\\ebd9"}.codicon-git-pull-request-closed:before{content:"\\ebda"}.codicon-git-pull-request-draft:before{content:"\\ebdb"}.codicon-debug-all:before{content:"\\ebdc"}.codicon-debug-coverage:before{content:"\\ebdd"}.codicon-run-errors:before{content:"\\ebde"}.codicon-folder-library:before{content:"\\ebdf"}.codicon-debug-continue-small:before{content:"\\ebe0"}.codicon-beaker-stop:before{content:"\\ebe1"}.codicon-graph-line:before{content:"\\ebe2"}.codicon-graph-scatter:before{content:"\\ebe3"}.codicon-pie-chart:before{content:"\\ebe4"}.codicon-bracket:before{content:"\\eb0f"}.codicon-bracket-dot:before{content:"\\ebe5"}.codicon-bracket-error:before{content:"\\ebe6"}.codicon-lock-small:before{content:"\\ebe7"}.codicon-azure-devops:before{content:"\\ebe8"}.codicon-verified-filled:before{content:"\\ebe9"}.codicon-newline:before{content:"\\ebea"}.codicon-layout:before{content:"\\ebeb"}.codicon-layout-activitybar-left:before{content:"\\ebec"}.codicon-layout-activitybar-right:before{content:"\\ebed"}.codicon-layout-panel-left:before{content:"\\ebee"}.codicon-layout-panel-center:before{content:"\\ebef"}.codicon-layout-panel-justify:before{content:"\\ebf0"}.codicon-layout-panel-right:before{content:"\\ebf1"}.codicon-layout-panel:before{content:"\\ebf2"}.codicon-layout-sidebar-left:before{content:"\\ebf3"}.codicon-layout-sidebar-right:before{content:"\\ebf4"}.codicon-layout-statusbar:before{content:"\\ebf5"}.codicon-layout-menubar:before{content:"\\ebf6"}.codicon-layout-centered:before{content:"\\ebf7"}.codicon-target:before{content:"\\ebf8"}.codicon-indent:before{content:"\\ebf9"}.codicon-record-small:before{content:"\\ebfa"}.codicon-error-small:before{content:"\\ebfb"}.codicon-arrow-circle-down:before{content:"\\ebfc"}.codicon-arrow-circle-left:before{content:"\\ebfd"}.codicon-arrow-circle-right:before{content:"\\ebfe"}.codicon-arrow-circle-up:before{content:"\\ebff"}.codicon-layout-sidebar-right-off:before{content:"\\ec00"}.codicon-layout-panel-off:before{content:"\\ec01"}.codicon-layout-sidebar-left-off:before{content:"\\ec02"}.codicon-blank:before{content:"\\ec03"}.codicon-heart-filled:before{content:"\\ec04"}.codicon-map:before{content:"\\ec05"}.codicon-map-filled:before{content:"\\ec06"}.codicon-circle-small:before{content:"\\ec07"}.codicon-bell-slash:before{content:"\\ec08"}.codicon-bell-slash-dot:before{content:"\\ec09"}.codicon-comment-unresolved:before{content:"\\ec0a"}.codicon-git-pull-request-go-to-changes:before{content:"\\ec0b"}.codicon-git-pull-request-new-changes:before{content:"\\ec0c"}:host{color:inherit;display:contents;height:1em;line-height:inherit;width:1em}:host>i{height:1em;width:1em}:host>i,:host>i:before{font-size:inherit !important}',KolIcon=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this._ariaLabel=void 0,this._icon=void 0,this._part=void 0,this.state={_ariaLabel:"…",_icon:"codicon codicon-home"}}render(){return h(Host,{exportparts:"icon"},h("i",{"aria-hidden":this.state._ariaLabel.length>0?void 0:"true","aria-label":this.state._ariaLabel.length>0?this.state._ariaLabel:void 0,class:this.state._icon,part:"icon",role:"img"}))}validateAriaLabel(e){watchString(this,"_ariaLabel",e,{required:!0})}validateIcon(e){watchString(this,"_icon",e,{required:!0})}validatePart(){devHint("ICON: The usage of the part attribute is deprecated and has no effect.")}componentWillLoad(){this.validateAriaLabel(this._ariaLabel),this.validateIcon(this._icon),this.validatePart()}static get watchers(){return{_ariaLabel:["validateAriaLabel"],_icon:["validateIcon"],_part:["validatePart"]}}static get style(){return{default:defaultStyleCss}}},[33,"kol-icon",{_ariaLabel:[1,"_aria-label"],_icon:[1],_part:[1],state:[32]}]);function defineCustomElement(){if("undefined"==typeof customElements)return;["kol-icon"].forEach((e=>{if("kol-icon"===e)customElements.get(e)||customElements.define(e,KolIcon)}))}export{KolIcon as K,defineCustomElement as d};
4
+ import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{v as validateLabel}from"./label.js";import{a as watchString,d as devHint}from"./prop.validators.js";const defaultStyleCss='@font-face{font-family:"codicon";font-display:block;src:url("./codicon.ttf?0e5b0adf625a37fbcd638d31f0fe72aa") format("truetype")}.codicon[class*=\'codicon-\']{font:normal normal normal 16px/1 codicon;display:inline-block;text-decoration:none;text-rendering:auto;text-align:center;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;user-select:none;-webkit-user-select:none;-ms-user-select:none}@keyframes codicon-spin{100%{transform:rotate(360deg)}}.codicon-sync.codicon-modifier-spin,.codicon-loading.codicon-modifier-spin,.codicon-gear.codicon-modifier-spin{animation:codicon-spin 1.5s steps(30) infinite}.codicon-modifier-disabled{opacity:0.5}.codicon-modifier-hidden{opacity:0}.codicon-loading{animation-duration:1s !important;animation-timing-function:cubic-bezier(0.53, 0.21, 0.29, 0.67) !important}.codicon-add:before{content:"\\ea60"}.codicon-plus:before{content:"\\ea60"}.codicon-gist-new:before{content:"\\ea60"}.codicon-repo-create:before{content:"\\ea60"}.codicon-lightbulb:before{content:"\\ea61"}.codicon-light-bulb:before{content:"\\ea61"}.codicon-repo:before{content:"\\ea62"}.codicon-repo-delete:before{content:"\\ea62"}.codicon-gist-fork:before{content:"\\ea63"}.codicon-repo-forked:before{content:"\\ea63"}.codicon-git-pull-request:before{content:"\\ea64"}.codicon-git-pull-request-abandoned:before{content:"\\ea64"}.codicon-record-keys:before{content:"\\ea65"}.codicon-keyboard:before{content:"\\ea65"}.codicon-tag:before{content:"\\ea66"}.codicon-tag-add:before{content:"\\ea66"}.codicon-tag-remove:before{content:"\\ea66"}.codicon-person:before{content:"\\ea67"}.codicon-person-follow:before{content:"\\ea67"}.codicon-person-outline:before{content:"\\ea67"}.codicon-person-filled:before{content:"\\ea67"}.codicon-git-branch:before{content:"\\ea68"}.codicon-git-branch-create:before{content:"\\ea68"}.codicon-git-branch-delete:before{content:"\\ea68"}.codicon-source-control:before{content:"\\ea68"}.codicon-mirror:before{content:"\\ea69"}.codicon-mirror-public:before{content:"\\ea69"}.codicon-star:before{content:"\\ea6a"}.codicon-star-add:before{content:"\\ea6a"}.codicon-star-delete:before{content:"\\ea6a"}.codicon-star-empty:before{content:"\\ea6a"}.codicon-comment:before{content:"\\ea6b"}.codicon-comment-add:before{content:"\\ea6b"}.codicon-alert:before{content:"\\ea6c"}.codicon-warning:before{content:"\\ea6c"}.codicon-search:before{content:"\\ea6d"}.codicon-search-save:before{content:"\\ea6d"}.codicon-log-out:before{content:"\\ea6e"}.codicon-sign-out:before{content:"\\ea6e"}.codicon-log-in:before{content:"\\ea6f"}.codicon-sign-in:before{content:"\\ea6f"}.codicon-eye:before{content:"\\ea70"}.codicon-eye-unwatch:before{content:"\\ea70"}.codicon-eye-watch:before{content:"\\ea70"}.codicon-circle-filled:before{content:"\\ea71"}.codicon-primitive-dot:before{content:"\\ea71"}.codicon-close-dirty:before{content:"\\ea71"}.codicon-debug-breakpoint:before{content:"\\ea71"}.codicon-debug-breakpoint-disabled:before{content:"\\ea71"}.codicon-debug-hint:before{content:"\\ea71"}.codicon-primitive-square:before{content:"\\ea72"}.codicon-edit:before{content:"\\ea73"}.codicon-pencil:before{content:"\\ea73"}.codicon-info:before{content:"\\ea74"}.codicon-issue-opened:before{content:"\\ea74"}.codicon-gist-private:before{content:"\\ea75"}.codicon-git-fork-private:before{content:"\\ea75"}.codicon-lock:before{content:"\\ea75"}.codicon-mirror-private:before{content:"\\ea75"}.codicon-close:before{content:"\\ea76"}.codicon-remove-close:before{content:"\\ea76"}.codicon-x:before{content:"\\ea76"}.codicon-repo-sync:before{content:"\\ea77"}.codicon-sync:before{content:"\\ea77"}.codicon-clone:before{content:"\\ea78"}.codicon-desktop-download:before{content:"\\ea78"}.codicon-beaker:before{content:"\\ea79"}.codicon-microscope:before{content:"\\ea79"}.codicon-vm:before{content:"\\ea7a"}.codicon-device-desktop:before{content:"\\ea7a"}.codicon-file:before{content:"\\ea7b"}.codicon-file-text:before{content:"\\ea7b"}.codicon-more:before{content:"\\ea7c"}.codicon-ellipsis:before{content:"\\ea7c"}.codicon-kebab-horizontal:before{content:"\\ea7c"}.codicon-mail-reply:before{content:"\\ea7d"}.codicon-reply:before{content:"\\ea7d"}.codicon-organization:before{content:"\\ea7e"}.codicon-organization-filled:before{content:"\\ea7e"}.codicon-organization-outline:before{content:"\\ea7e"}.codicon-new-file:before{content:"\\ea7f"}.codicon-file-add:before{content:"\\ea7f"}.codicon-new-folder:before{content:"\\ea80"}.codicon-file-directory-create:before{content:"\\ea80"}.codicon-trash:before{content:"\\ea81"}.codicon-trashcan:before{content:"\\ea81"}.codicon-history:before{content:"\\ea82"}.codicon-clock:before{content:"\\ea82"}.codicon-folder:before{content:"\\ea83"}.codicon-file-directory:before{content:"\\ea83"}.codicon-symbol-folder:before{content:"\\ea83"}.codicon-logo-github:before{content:"\\ea84"}.codicon-mark-github:before{content:"\\ea84"}.codicon-github:before{content:"\\ea84"}.codicon-terminal:before{content:"\\ea85"}.codicon-console:before{content:"\\ea85"}.codicon-repl:before{content:"\\ea85"}.codicon-zap:before{content:"\\ea86"}.codicon-symbol-event:before{content:"\\ea86"}.codicon-error:before{content:"\\ea87"}.codicon-stop:before{content:"\\ea87"}.codicon-variable:before{content:"\\ea88"}.codicon-symbol-variable:before{content:"\\ea88"}.codicon-array:before{content:"\\ea8a"}.codicon-symbol-array:before{content:"\\ea8a"}.codicon-symbol-module:before{content:"\\ea8b"}.codicon-symbol-package:before{content:"\\ea8b"}.codicon-symbol-namespace:before{content:"\\ea8b"}.codicon-symbol-object:before{content:"\\ea8b"}.codicon-symbol-method:before{content:"\\ea8c"}.codicon-symbol-function:before{content:"\\ea8c"}.codicon-symbol-constructor:before{content:"\\ea8c"}.codicon-symbol-boolean:before{content:"\\ea8f"}.codicon-symbol-null:before{content:"\\ea8f"}.codicon-symbol-numeric:before{content:"\\ea90"}.codicon-symbol-number:before{content:"\\ea90"}.codicon-symbol-structure:before{content:"\\ea91"}.codicon-symbol-struct:before{content:"\\ea91"}.codicon-symbol-parameter:before{content:"\\ea92"}.codicon-symbol-type-parameter:before{content:"\\ea92"}.codicon-symbol-key:before{content:"\\ea93"}.codicon-symbol-text:before{content:"\\ea93"}.codicon-symbol-reference:before{content:"\\ea94"}.codicon-go-to-file:before{content:"\\ea94"}.codicon-symbol-enum:before{content:"\\ea95"}.codicon-symbol-value:before{content:"\\ea95"}.codicon-symbol-ruler:before{content:"\\ea96"}.codicon-symbol-unit:before{content:"\\ea96"}.codicon-activate-breakpoints:before{content:"\\ea97"}.codicon-archive:before{content:"\\ea98"}.codicon-arrow-both:before{content:"\\ea99"}.codicon-arrow-down:before{content:"\\ea9a"}.codicon-arrow-left:before{content:"\\ea9b"}.codicon-arrow-right:before{content:"\\ea9c"}.codicon-arrow-small-down:before{content:"\\ea9d"}.codicon-arrow-small-left:before{content:"\\ea9e"}.codicon-arrow-small-right:before{content:"\\ea9f"}.codicon-arrow-small-up:before{content:"\\eaa0"}.codicon-arrow-up:before{content:"\\eaa1"}.codicon-bell:before{content:"\\eaa2"}.codicon-bold:before{content:"\\eaa3"}.codicon-book:before{content:"\\eaa4"}.codicon-bookmark:before{content:"\\eaa5"}.codicon-debug-breakpoint-conditional-unverified:before{content:"\\eaa6"}.codicon-debug-breakpoint-conditional:before{content:"\\eaa7"}.codicon-debug-breakpoint-conditional-disabled:before{content:"\\eaa7"}.codicon-debug-breakpoint-data-unverified:before{content:"\\eaa8"}.codicon-debug-breakpoint-data:before{content:"\\eaa9"}.codicon-debug-breakpoint-data-disabled:before{content:"\\eaa9"}.codicon-debug-breakpoint-log-unverified:before{content:"\\eaaa"}.codicon-debug-breakpoint-log:before{content:"\\eaab"}.codicon-debug-breakpoint-log-disabled:before{content:"\\eaab"}.codicon-briefcase:before{content:"\\eaac"}.codicon-broadcast:before{content:"\\eaad"}.codicon-browser:before{content:"\\eaae"}.codicon-bug:before{content:"\\eaaf"}.codicon-calendar:before{content:"\\eab0"}.codicon-case-sensitive:before{content:"\\eab1"}.codicon-check:before{content:"\\eab2"}.codicon-checklist:before{content:"\\eab3"}.codicon-chevron-down:before{content:"\\eab4"}.codicon-chevron-left:before{content:"\\eab5"}.codicon-chevron-right:before{content:"\\eab6"}.codicon-chevron-up:before{content:"\\eab7"}.codicon-chrome-close:before{content:"\\eab8"}.codicon-chrome-maximize:before{content:"\\eab9"}.codicon-chrome-minimize:before{content:"\\eaba"}.codicon-chrome-restore:before{content:"\\eabb"}.codicon-circle-outline:before{content:"\\eabc"}.codicon-debug-breakpoint-unverified:before{content:"\\eabc"}.codicon-circle-slash:before{content:"\\eabd"}.codicon-circuit-board:before{content:"\\eabe"}.codicon-clear-all:before{content:"\\eabf"}.codicon-clippy:before{content:"\\eac0"}.codicon-close-all:before{content:"\\eac1"}.codicon-cloud-download:before{content:"\\eac2"}.codicon-cloud-upload:before{content:"\\eac3"}.codicon-code:before{content:"\\eac4"}.codicon-collapse-all:before{content:"\\eac5"}.codicon-color-mode:before{content:"\\eac6"}.codicon-comment-discussion:before{content:"\\eac7"}.codicon-credit-card:before{content:"\\eac9"}.codicon-dash:before{content:"\\eacc"}.codicon-dashboard:before{content:"\\eacd"}.codicon-database:before{content:"\\eace"}.codicon-debug-continue:before{content:"\\eacf"}.codicon-debug-disconnect:before{content:"\\ead0"}.codicon-debug-pause:before{content:"\\ead1"}.codicon-debug-restart:before{content:"\\ead2"}.codicon-debug-start:before{content:"\\ead3"}.codicon-debug-step-into:before{content:"\\ead4"}.codicon-debug-step-out:before{content:"\\ead5"}.codicon-debug-step-over:before{content:"\\ead6"}.codicon-debug-stop:before{content:"\\ead7"}.codicon-debug:before{content:"\\ead8"}.codicon-device-camera-video:before{content:"\\ead9"}.codicon-device-camera:before{content:"\\eada"}.codicon-device-mobile:before{content:"\\eadb"}.codicon-diff-added:before{content:"\\eadc"}.codicon-diff-ignored:before{content:"\\eadd"}.codicon-diff-modified:before{content:"\\eade"}.codicon-diff-removed:before{content:"\\eadf"}.codicon-diff-renamed:before{content:"\\eae0"}.codicon-diff:before{content:"\\eae1"}.codicon-discard:before{content:"\\eae2"}.codicon-editor-layout:before{content:"\\eae3"}.codicon-empty-window:before{content:"\\eae4"}.codicon-exclude:before{content:"\\eae5"}.codicon-extensions:before{content:"\\eae6"}.codicon-eye-closed:before{content:"\\eae7"}.codicon-file-binary:before{content:"\\eae8"}.codicon-file-code:before{content:"\\eae9"}.codicon-file-media:before{content:"\\eaea"}.codicon-file-pdf:before{content:"\\eaeb"}.codicon-file-submodule:before{content:"\\eaec"}.codicon-file-symlink-directory:before{content:"\\eaed"}.codicon-file-symlink-file:before{content:"\\eaee"}.codicon-file-zip:before{content:"\\eaef"}.codicon-files:before{content:"\\eaf0"}.codicon-filter:before{content:"\\eaf1"}.codicon-flame:before{content:"\\eaf2"}.codicon-fold-down:before{content:"\\eaf3"}.codicon-fold-up:before{content:"\\eaf4"}.codicon-fold:before{content:"\\eaf5"}.codicon-folder-active:before{content:"\\eaf6"}.codicon-folder-opened:before{content:"\\eaf7"}.codicon-gear:before{content:"\\eaf8"}.codicon-gift:before{content:"\\eaf9"}.codicon-gist-secret:before{content:"\\eafa"}.codicon-gist:before{content:"\\eafb"}.codicon-git-commit:before{content:"\\eafc"}.codicon-git-compare:before{content:"\\eafd"}.codicon-compare-changes:before{content:"\\eafd"}.codicon-git-merge:before{content:"\\eafe"}.codicon-github-action:before{content:"\\eaff"}.codicon-github-alt:before{content:"\\eb00"}.codicon-globe:before{content:"\\eb01"}.codicon-grabber:before{content:"\\eb02"}.codicon-graph:before{content:"\\eb03"}.codicon-gripper:before{content:"\\eb04"}.codicon-heart:before{content:"\\eb05"}.codicon-home:before{content:"\\eb06"}.codicon-horizontal-rule:before{content:"\\eb07"}.codicon-hubot:before{content:"\\eb08"}.codicon-inbox:before{content:"\\eb09"}.codicon-issue-reopened:before{content:"\\eb0b"}.codicon-issues:before{content:"\\eb0c"}.codicon-italic:before{content:"\\eb0d"}.codicon-jersey:before{content:"\\eb0e"}.codicon-json:before{content:"\\eb0f"}.codicon-kebab-vertical:before{content:"\\eb10"}.codicon-key:before{content:"\\eb11"}.codicon-law:before{content:"\\eb12"}.codicon-lightbulb-autofix:before{content:"\\eb13"}.codicon-link-external:before{content:"\\eb14"}.codicon-link:before{content:"\\eb15"}.codicon-list-ordered:before{content:"\\eb16"}.codicon-list-unordered:before{content:"\\eb17"}.codicon-live-share:before{content:"\\eb18"}.codicon-loading:before{content:"\\eb19"}.codicon-location:before{content:"\\eb1a"}.codicon-mail-read:before{content:"\\eb1b"}.codicon-mail:before{content:"\\eb1c"}.codicon-markdown:before{content:"\\eb1d"}.codicon-megaphone:before{content:"\\eb1e"}.codicon-mention:before{content:"\\eb1f"}.codicon-milestone:before{content:"\\eb20"}.codicon-mortar-board:before{content:"\\eb21"}.codicon-move:before{content:"\\eb22"}.codicon-multiple-windows:before{content:"\\eb23"}.codicon-mute:before{content:"\\eb24"}.codicon-no-newline:before{content:"\\eb25"}.codicon-note:before{content:"\\eb26"}.codicon-octoface:before{content:"\\eb27"}.codicon-open-preview:before{content:"\\eb28"}.codicon-package:before{content:"\\eb29"}.codicon-paintcan:before{content:"\\eb2a"}.codicon-pin:before{content:"\\eb2b"}.codicon-play:before{content:"\\eb2c"}.codicon-run:before{content:"\\eb2c"}.codicon-plug:before{content:"\\eb2d"}.codicon-preserve-case:before{content:"\\eb2e"}.codicon-preview:before{content:"\\eb2f"}.codicon-project:before{content:"\\eb30"}.codicon-pulse:before{content:"\\eb31"}.codicon-question:before{content:"\\eb32"}.codicon-quote:before{content:"\\eb33"}.codicon-radio-tower:before{content:"\\eb34"}.codicon-reactions:before{content:"\\eb35"}.codicon-references:before{content:"\\eb36"}.codicon-refresh:before{content:"\\eb37"}.codicon-regex:before{content:"\\eb38"}.codicon-remote-explorer:before{content:"\\eb39"}.codicon-remote:before{content:"\\eb3a"}.codicon-remove:before{content:"\\eb3b"}.codicon-replace-all:before{content:"\\eb3c"}.codicon-replace:before{content:"\\eb3d"}.codicon-repo-clone:before{content:"\\eb3e"}.codicon-repo-force-push:before{content:"\\eb3f"}.codicon-repo-pull:before{content:"\\eb40"}.codicon-repo-push:before{content:"\\eb41"}.codicon-report:before{content:"\\eb42"}.codicon-request-changes:before{content:"\\eb43"}.codicon-rocket:before{content:"\\eb44"}.codicon-root-folder-opened:before{content:"\\eb45"}.codicon-root-folder:before{content:"\\eb46"}.codicon-rss:before{content:"\\eb47"}.codicon-ruby:before{content:"\\eb48"}.codicon-save-all:before{content:"\\eb49"}.codicon-save-as:before{content:"\\eb4a"}.codicon-save:before{content:"\\eb4b"}.codicon-screen-full:before{content:"\\eb4c"}.codicon-screen-normal:before{content:"\\eb4d"}.codicon-search-stop:before{content:"\\eb4e"}.codicon-server:before{content:"\\eb50"}.codicon-settings-gear:before{content:"\\eb51"}.codicon-settings:before{content:"\\eb52"}.codicon-shield:before{content:"\\eb53"}.codicon-smiley:before{content:"\\eb54"}.codicon-sort-precedence:before{content:"\\eb55"}.codicon-split-horizontal:before{content:"\\eb56"}.codicon-split-vertical:before{content:"\\eb57"}.codicon-squirrel:before{content:"\\eb58"}.codicon-star-full:before{content:"\\eb59"}.codicon-star-half:before{content:"\\eb5a"}.codicon-symbol-class:before{content:"\\eb5b"}.codicon-symbol-color:before{content:"\\eb5c"}.codicon-symbol-constant:before{content:"\\eb5d"}.codicon-symbol-enum-member:before{content:"\\eb5e"}.codicon-symbol-field:before{content:"\\eb5f"}.codicon-symbol-file:before{content:"\\eb60"}.codicon-symbol-interface:before{content:"\\eb61"}.codicon-symbol-keyword:before{content:"\\eb62"}.codicon-symbol-misc:before{content:"\\eb63"}.codicon-symbol-operator:before{content:"\\eb64"}.codicon-symbol-property:before{content:"\\eb65"}.codicon-wrench:before{content:"\\eb65"}.codicon-wrench-subaction:before{content:"\\eb65"}.codicon-symbol-snippet:before{content:"\\eb66"}.codicon-tasklist:before{content:"\\eb67"}.codicon-telescope:before{content:"\\eb68"}.codicon-text-size:before{content:"\\eb69"}.codicon-three-bars:before{content:"\\eb6a"}.codicon-thumbsdown:before{content:"\\eb6b"}.codicon-thumbsup:before{content:"\\eb6c"}.codicon-tools:before{content:"\\eb6d"}.codicon-triangle-down:before{content:"\\eb6e"}.codicon-triangle-left:before{content:"\\eb6f"}.codicon-triangle-right:before{content:"\\eb70"}.codicon-triangle-up:before{content:"\\eb71"}.codicon-twitter:before{content:"\\eb72"}.codicon-unfold:before{content:"\\eb73"}.codicon-unlock:before{content:"\\eb74"}.codicon-unmute:before{content:"\\eb75"}.codicon-unverified:before{content:"\\eb76"}.codicon-verified:before{content:"\\eb77"}.codicon-versions:before{content:"\\eb78"}.codicon-vm-active:before{content:"\\eb79"}.codicon-vm-outline:before{content:"\\eb7a"}.codicon-vm-running:before{content:"\\eb7b"}.codicon-watch:before{content:"\\eb7c"}.codicon-whitespace:before{content:"\\eb7d"}.codicon-whole-word:before{content:"\\eb7e"}.codicon-window:before{content:"\\eb7f"}.codicon-word-wrap:before{content:"\\eb80"}.codicon-zoom-in:before{content:"\\eb81"}.codicon-zoom-out:before{content:"\\eb82"}.codicon-list-filter:before{content:"\\eb83"}.codicon-list-flat:before{content:"\\eb84"}.codicon-list-selection:before{content:"\\eb85"}.codicon-selection:before{content:"\\eb85"}.codicon-list-tree:before{content:"\\eb86"}.codicon-debug-breakpoint-function-unverified:before{content:"\\eb87"}.codicon-debug-breakpoint-function:before{content:"\\eb88"}.codicon-debug-breakpoint-function-disabled:before{content:"\\eb88"}.codicon-debug-stackframe-active:before{content:"\\eb89"}.codicon-circle-small-filled:before{content:"\\eb8a"}.codicon-debug-stackframe-dot:before{content:"\\eb8a"}.codicon-debug-stackframe:before{content:"\\eb8b"}.codicon-debug-stackframe-focused:before{content:"\\eb8b"}.codicon-debug-breakpoint-unsupported:before{content:"\\eb8c"}.codicon-symbol-string:before{content:"\\eb8d"}.codicon-debug-reverse-continue:before{content:"\\eb8e"}.codicon-debug-step-back:before{content:"\\eb8f"}.codicon-debug-restart-frame:before{content:"\\eb90"}.codicon-debug-alt:before{content:"\\eb91"}.codicon-call-incoming:before{content:"\\eb92"}.codicon-call-outgoing:before{content:"\\eb93"}.codicon-menu:before{content:"\\eb94"}.codicon-expand-all:before{content:"\\eb95"}.codicon-feedback:before{content:"\\eb96"}.codicon-group-by-ref-type:before{content:"\\eb97"}.codicon-ungroup-by-ref-type:before{content:"\\eb98"}.codicon-account:before{content:"\\eb99"}.codicon-bell-dot:before{content:"\\eb9a"}.codicon-debug-console:before{content:"\\eb9b"}.codicon-library:before{content:"\\eb9c"}.codicon-output:before{content:"\\eb9d"}.codicon-run-all:before{content:"\\eb9e"}.codicon-sync-ignored:before{content:"\\eb9f"}.codicon-pinned:before{content:"\\eba0"}.codicon-github-inverted:before{content:"\\eba1"}.codicon-server-process:before{content:"\\eba2"}.codicon-server-environment:before{content:"\\eba3"}.codicon-pass:before{content:"\\eba4"}.codicon-issue-closed:before{content:"\\eba4"}.codicon-stop-circle:before{content:"\\eba5"}.codicon-play-circle:before{content:"\\eba6"}.codicon-record:before{content:"\\eba7"}.codicon-debug-alt-small:before{content:"\\eba8"}.codicon-vm-connect:before{content:"\\eba9"}.codicon-cloud:before{content:"\\ebaa"}.codicon-merge:before{content:"\\ebab"}.codicon-export:before{content:"\\ebac"}.codicon-graph-left:before{content:"\\ebad"}.codicon-magnet:before{content:"\\ebae"}.codicon-notebook:before{content:"\\ebaf"}.codicon-redo:before{content:"\\ebb0"}.codicon-check-all:before{content:"\\ebb1"}.codicon-pinned-dirty:before{content:"\\ebb2"}.codicon-pass-filled:before{content:"\\ebb3"}.codicon-circle-large-filled:before{content:"\\ebb4"}.codicon-circle-large-outline:before{content:"\\ebb5"}.codicon-combine:before{content:"\\ebb6"}.codicon-gather:before{content:"\\ebb6"}.codicon-table:before{content:"\\ebb7"}.codicon-variable-group:before{content:"\\ebb8"}.codicon-type-hierarchy:before{content:"\\ebb9"}.codicon-type-hierarchy-sub:before{content:"\\ebba"}.codicon-type-hierarchy-super:before{content:"\\ebbb"}.codicon-git-pull-request-create:before{content:"\\ebbc"}.codicon-run-above:before{content:"\\ebbd"}.codicon-run-below:before{content:"\\ebbe"}.codicon-notebook-template:before{content:"\\ebbf"}.codicon-debug-rerun:before{content:"\\ebc0"}.codicon-workspace-trusted:before{content:"\\ebc1"}.codicon-workspace-untrusted:before{content:"\\ebc2"}.codicon-workspace-unknown:before{content:"\\ebc3"}.codicon-terminal-cmd:before{content:"\\ebc4"}.codicon-terminal-debian:before{content:"\\ebc5"}.codicon-terminal-linux:before{content:"\\ebc6"}.codicon-terminal-powershell:before{content:"\\ebc7"}.codicon-terminal-tmux:before{content:"\\ebc8"}.codicon-terminal-ubuntu:before{content:"\\ebc9"}.codicon-terminal-bash:before{content:"\\ebca"}.codicon-arrow-swap:before{content:"\\ebcb"}.codicon-copy:before{content:"\\ebcc"}.codicon-person-add:before{content:"\\ebcd"}.codicon-filter-filled:before{content:"\\ebce"}.codicon-wand:before{content:"\\ebcf"}.codicon-debug-line-by-line:before{content:"\\ebd0"}.codicon-inspect:before{content:"\\ebd1"}.codicon-layers:before{content:"\\ebd2"}.codicon-layers-dot:before{content:"\\ebd3"}.codicon-layers-active:before{content:"\\ebd4"}.codicon-compass:before{content:"\\ebd5"}.codicon-compass-dot:before{content:"\\ebd6"}.codicon-compass-active:before{content:"\\ebd7"}.codicon-azure:before{content:"\\ebd8"}.codicon-issue-draft:before{content:"\\ebd9"}.codicon-git-pull-request-closed:before{content:"\\ebda"}.codicon-git-pull-request-draft:before{content:"\\ebdb"}.codicon-debug-all:before{content:"\\ebdc"}.codicon-debug-coverage:before{content:"\\ebdd"}.codicon-run-errors:before{content:"\\ebde"}.codicon-folder-library:before{content:"\\ebdf"}.codicon-debug-continue-small:before{content:"\\ebe0"}.codicon-beaker-stop:before{content:"\\ebe1"}.codicon-graph-line:before{content:"\\ebe2"}.codicon-graph-scatter:before{content:"\\ebe3"}.codicon-pie-chart:before{content:"\\ebe4"}.codicon-bracket:before{content:"\\eb0f"}.codicon-bracket-dot:before{content:"\\ebe5"}.codicon-bracket-error:before{content:"\\ebe6"}.codicon-lock-small:before{content:"\\ebe7"}.codicon-azure-devops:before{content:"\\ebe8"}.codicon-verified-filled:before{content:"\\ebe9"}.codicon-newline:before{content:"\\ebea"}.codicon-layout:before{content:"\\ebeb"}.codicon-layout-activitybar-left:before{content:"\\ebec"}.codicon-layout-activitybar-right:before{content:"\\ebed"}.codicon-layout-panel-left:before{content:"\\ebee"}.codicon-layout-panel-center:before{content:"\\ebef"}.codicon-layout-panel-justify:before{content:"\\ebf0"}.codicon-layout-panel-right:before{content:"\\ebf1"}.codicon-layout-panel:before{content:"\\ebf2"}.codicon-layout-sidebar-left:before{content:"\\ebf3"}.codicon-layout-sidebar-right:before{content:"\\ebf4"}.codicon-layout-statusbar:before{content:"\\ebf5"}.codicon-layout-menubar:before{content:"\\ebf6"}.codicon-layout-centered:before{content:"\\ebf7"}.codicon-target:before{content:"\\ebf8"}.codicon-indent:before{content:"\\ebf9"}.codicon-record-small:before{content:"\\ebfa"}.codicon-error-small:before{content:"\\ebfb"}.codicon-arrow-circle-down:before{content:"\\ebfc"}.codicon-arrow-circle-left:before{content:"\\ebfd"}.codicon-arrow-circle-right:before{content:"\\ebfe"}.codicon-arrow-circle-up:before{content:"\\ebff"}.codicon-layout-sidebar-right-off:before{content:"\\ec00"}.codicon-layout-panel-off:before{content:"\\ec01"}.codicon-layout-sidebar-left-off:before{content:"\\ec02"}.codicon-blank:before{content:"\\ec03"}.codicon-heart-filled:before{content:"\\ec04"}.codicon-map:before{content:"\\ec05"}.codicon-map-filled:before{content:"\\ec06"}.codicon-circle-small:before{content:"\\ec07"}.codicon-bell-slash:before{content:"\\ec08"}.codicon-bell-slash-dot:before{content:"\\ec09"}.codicon-comment-unresolved:before{content:"\\ec0a"}.codicon-git-pull-request-go-to-changes:before{content:"\\ec0b"}.codicon-git-pull-request-new-changes:before{content:"\\ec0c"}:host{color:inherit;display:contents;height:1em;line-height:inherit;width:1em}:host>i{height:1em;width:1em}:host>i,:host>i:before{font-size:inherit !important}',KolIcon=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this._ariaLabel=void 0,this._icon=void 0,this._label=void 0,this._part=void 0,this.state={_icon:"codicon codicon-home"}}render(){const e="string"==typeof this.state._label&&this.state._label.length>0;return h(Host,{exportparts:"icon"},h("i",{"aria-hidden":e?void 0:"true","aria-label":e?this.state._label:void 0,class:this.state._icon,part:"icon",role:"img"}))}validateAriaLabel(e){this.validateLabel(e)}validateIcon(e){watchString(this,"_icon",e,{required:!0})}validateLabel(e){validateLabel(this,e)}validatePart(e){e&&devHint("ICON: The usage of the part attribute is deprecated and has no effect.")}componentWillLoad(){this.validateIcon(this._icon),this.validateLabel(this._label||this._ariaLabel),this.validatePart(this._part)}static get watchers(){return{_ariaLabel:["validateAriaLabel"],_icon:["validateIcon"],_label:["validateLabel"],_part:["validatePart"]}}static get style(){return{default:defaultStyleCss}}},[33,"kol-icon",{_ariaLabel:[1,"_aria-label"],_icon:[1],_label:[1],_part:[1],state:[32]}]);function defineCustomElement(){if("undefined"==typeof customElements)return;["kol-icon"].forEach((e=>{if("kol-icon"===e)customElements.get(e)||customElements.define(e,KolIcon)}))}export{KolIcon as K,defineCustomElement as d};
@@ -1 +1 @@
1
- {"file":"component2.js","mappings":";;;;;;AAAA,MAAM,eAAe,GAAG,+lxBAA+lxB;;MCiC1mxB,OAAO;;;;;;;;iBAsCa;MAC/B,UAAU,EAAE,GAAG;MACf,KAAK,EAAE,sBAAsB;KAC7B;;EAxCM,MAAM;IACZ,QACC,EAAC,IAAI,IAAC,WAAW,EAAC,MAAM,IACvB,wBACc,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,GAAG,SAAS,GAAG,MAAM,gBAOtD,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,SAAS,EAChF,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,IAAI,EAAC,MAAM,EACX,IAAI,EAAC,KAAK,GACN,CACC,EACN;GACF;EAyBM,iBAAiB,CAAC,KAAc;IACtC,WAAW,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE;MACtC,QAAQ,EAAE,IAAI;KACd,CAAC,CAAC;GACH;EAGM,YAAY,CAAC,KAAc;IACjC,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE;MACjC,QAAQ,EAAE,IAAI;KACd,CAAC,CAAC;GACH;EAMM,YAAY;IAClB,OAAO,CAAC,wEAAwE,CAAC,CAAC;GAClF;EAEM,iBAAiB;IACvB,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACxC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC9B,IAAI,CAAC,YAAY,EAAE,CAAC;GACpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./src/components/icon/style.css?tag=kol-icon&mode=default&encapsulation=shadow","./src/components/icon/component.tsx"],"sourcesContent":["@import url(../../assets/codicons/codicon.css);\n:host {\n\tcolor: inherit;\n\tdisplay: contents;\n\theight: 1em;\n\tline-height: inherit;\n\twidth: 1em;\n}\n:host > i {\n\theight: 1em;\n\twidth: 1em;\n}\n/*\n * The <code>:important</code> is important, because we should always override the font icon style.\n */\n:host > i,\n:host > i:before {\n\tfont-size: inherit !important;\n}\n","import { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { Generic } from '@a11y-ui/core';\nimport { AriaLabel } from '../../types/aria-label';\nimport { watchString } from '../../utils/prop.validators';\nimport { devHint } from '../../utils/a11y.tipps';\n\ntype RequiredProps = AriaLabel & {\n\ticon: string;\n};\ntype OptionalProps = {\n\tpart: string;\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/**\n * TODO: Wy we provide not a icon-wc component instead?!\n */\n\n/**\n * @part icon - Ermöglicht das Styling des inneren Icons.\n */\n@Component({\n\ttag: 'kol-icon',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolIcon implements Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates> {\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host exportparts=\"icon\">\n\t\t\t\t<i\n\t\t\t\t\taria-hidden={this.state._ariaLabel.length > 0 ? undefined : 'true'}\n\t\t\t\t\t/**\n\t\t\t\t\t * Die Auszeichnung `aria-hidden` ist eigentlich nicht erforderlich, da die aktuellen\n\t\t\t\t\t * Screenreader, wie NVDA und JAWS, es auch ohne `aria-hidden` nicht vorlesen.\n\t\t\t\t\t *\n\t\t\t\t\t * Referenz: https://www.w3.org/TR/wai-aria/states_and_properties#aria-hidden\n\t\t\t\t\t */\n\t\t\t\t\taria-label={this.state._ariaLabel.length > 0 ? this.state._ariaLabel : undefined}\n\t\t\t\t\tclass={this.state._icon}\n\t\t\t\t\tpart=\"icon\"\n\t\t\t\t\trole=\"img\"\n\t\t\t\t></i>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Setzt die sichtbare oder semantische Beschriftung der Komponente (z.B. Aria-Label, Label, Headline, Caption, Summary usw.).\n\t */\n\t@Prop() public _ariaLabel!: string;\n\n\t/**\n\t * Setzt die Iconklasse (z.B.: `_icon=\"codicon codicon-home`).\n\t */\n\t@Prop() public _icon!: string;\n\n\t/**\n\t * Gibt den Identifier für den CSS-Part an, um das Icon von Außen ändern zu können. (https://meowni.ca/posts/part-theme-explainer/)\n\t *\n\t * @deprecated Das Styling sollte stets über CSS erfolgen.\n\t */\n\t@Prop() public _part?: string;\n\n\t@State() public state: States = {\n\t\t_ariaLabel: '', // ⚠ required\n\t\t_icon: 'codicon codicon-home',\n\t};\n\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@Watch('_icon')\n\tpublic validateIcon(value?: string): void {\n\t\twatchString(this, '_icon', value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t/**\n\t * @deprecated\n\t */\n\t@Watch('_part')\n\tpublic validatePart(): void {\n\t\tdevHint(`ICON: The usage of the part attribute is deprecated and has no effect.`);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateAriaLabel(this._ariaLabel);\n\t\tthis.validateIcon(this._icon);\n\t\tthis.validatePart();\n\t}\n}\n"],"version":3}
1
+ {"file":"component2.js","mappings":";;;;;;;AAAA,MAAM,eAAe,GAAG,+lxBAA+lxB;;MCiB1mxB,OAAO;;;;;;;;;iBA6CwB;MAC1C,KAAK,EAAE,sBAAsB;KAE7B;;EA/CM,MAAM;IACZ,MAAM,QAAQ,GAAG,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,KAAK,QAAQ,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;IACvF,QACC,EAAC,IAAI,IAAC,WAAW,EAAC,MAAM,IACvB,wBACc,QAAQ,GAAG,SAAS,GAAG,MAAM,gBAO9B,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,EACpD,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,IAAI,EAAC,MAAM,EACX,IAAI,EAAC,KAAK,GACN,CACC,EACN;GACF;EAkCM,iBAAiB,CAAC,KAAc;IACtC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;GAC1B;EAGM,YAAY,CAAC,KAAc;IACjC,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;GACtD;EAGM,aAAa,CAAC,KAAqB;IACzC,aAAa,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;GAC3B;EAMM,YAAY,CAAC,KAAc;IACjC,IAAI,KAAK,EAAE;MACV,OAAO,CAAC,wEAAwE,CAAC,CAAC;KAClF;GACD;EAEM,iBAAiB;IACvB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC9B,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC;IACnD,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;GAC9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/icon/style.css?tag=kol-icon&mode=default&encapsulation=shadow","src/components/icon/component.tsx"],"sourcesContent":["@import url(../../assets/codicons/codicon.css);\n:host {\n\tcolor: inherit;\n\tdisplay: contents;\n\theight: 1em;\n\tline-height: inherit;\n\twidth: 1em;\n}\n:host > i {\n\theight: 1em;\n\twidth: 1em;\n}\n/*\n * The <code>:important</code> is important, because we should always override the font icon style.\n */\n:host > i,\n:host > i:before {\n\tfont-size: inherit !important;\n}\n","import { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { LabelPropType, validateLabel } from '../../types/props/label';\nimport { devHint } from '../../utils/a11y.tipps';\nimport { watchString } from '../../utils/prop.validators';\nimport { KoliBriIconAPI, KoliBriIconStates } from './types';\n\n/**\n * @part icon - Ermöglicht das Styling des inneren Icons.\n */\n@Component({\n\ttag: 'kol-icon',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolIcon implements KoliBriIconAPI {\n\tpublic render(): JSX.Element {\n\t\tconst ariaShow = typeof this.state._label === 'string' && this.state._label.length > 0;\n\t\treturn (\n\t\t\t<Host exportparts=\"icon\">\n\t\t\t\t<i\n\t\t\t\t\taria-hidden={ariaShow ? undefined : 'true'}\n\t\t\t\t\t/**\n\t\t\t\t\t * Die Auszeichnung `aria-hidden` ist eigentlich nicht erforderlich, da die aktuellen\n\t\t\t\t\t * Screenreader, wie NVDA und JAWS, es auch ohne `aria-hidden` nicht vorlesen.\n\t\t\t\t\t *\n\t\t\t\t\t * Referenz: https://www.w3.org/TR/wai-aria/states_and_properties#aria-hidden\n\t\t\t\t\t */\n\t\t\t\t\taria-label={ariaShow ? this.state._label : undefined}\n\t\t\t\t\tclass={this.state._icon}\n\t\t\t\t\tpart=\"icon\"\n\t\t\t\t\trole=\"img\"\n\t\t\t\t></i>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Setzt die sichtbare oder semantische Beschriftung der Komponente (z.B. Aria-Label, Label, Headline, Caption, Summary usw.).\n\t * @deprecated use _label instead\n\t */\n\t@Prop() public _ariaLabel?: string;\n\n\t/**\n\t * Setzt die Iconklasse (z.B.: `_icon=\"codicon codicon-home`).\n\t */\n\t@Prop() public _icon!: string;\n\n\t/**\n\t * Setzt die sichtbare oder semantische Beschriftung der Komponente (z.B. Aria-Label, Label, Headline, Caption, Summary usw.).\n\t */\n\t@Prop() public _label?: LabelPropType; // TODO: required in v2\n\n\t/**\n\t * Gibt den Identifier für den CSS-Part an, um das Icon von Außen ändern zu können. (https://meowni.ca/posts/part-theme-explainer/)\n\t *\n\t * @deprecated Das Styling sollte stets über CSS erfolgen.\n\t */\n\t@Prop() public _part?: string;\n\n\t@State() public state: KoliBriIconStates = {\n\t\t_icon: 'codicon codicon-home',\n\t\t// _label: false, // ⚠ required TODO: required in v2\n\t};\n\n\t/**\n\t * @deprecated\n\t */\n\t@Watch('_ariaLabel')\n\tpublic validateAriaLabel(value?: string): void {\n\t\tthis.validateLabel(value);\n\t}\n\n\t@Watch('_icon')\n\tpublic validateIcon(value?: string): void {\n\t\twatchString(this, '_icon', value, { required: true });\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelPropType): void {\n\t\tvalidateLabel(this, value);\n\t}\n\n\t/**\n\t * @deprecated\n\t */\n\t@Watch('_part')\n\tpublic validatePart(value?: string): void {\n\t\tif (value) {\n\t\t\tdevHint(`ICON: The usage of the part attribute is deprecated and has no effect.`);\n\t\t}\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateIcon(this._icon);\n\t\tthis.validateLabel(this._label || this._ariaLabel);\n\t\tthis.validatePart(this._part);\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{o as objectObjectHandler,e as parseJson,a as watchValidator,i as isString,f as isStyle,h as isObject,w as watchString,j as a11yHint,u as uiUxHint,k as isEmptyOrPrefixOf,l as watchBoolean}from"./prop.validators.js";import{d as defineCustomElement$1}from"./component2.js";const mapCustomIcon=(t,e,a)=>{isObject(a)?t[e]=a:isString(a,1)&&(t[e]={icon:a})},mapIconProp2State=(t,e)=>{let a={};if(isString(t,1))if("right"===e)a={right:{icon:t}};else a={left:{icon:t}};else"object"==typeof t&&null!==t&&(mapCustomIcon(a,"top",t.top),mapCustomIcon(a,"right",t.right),mapCustomIcon(a,"bottom",t.bottom),mapCustomIcon(a,"left",t.left));return a},beforePatchIcon=t=>{var e,a,o,i,n,l,s;if(null===(e=t.nextState)||void 0===e?void 0:e.has("_icon")){const e=null===(a=t.nextState)||void 0===a?void 0:a.get("_icon"),n=(null===(o=t.nextState)||void 0===o?void 0:o.get("_iconAlign"))||t.state._iconAlign;null===(i=t.nextState)||void 0===i||i.set("_icon",mapIconProp2State(e,n))}else if(null===(n=t.nextState)||void 0===n?void 0:n.has("_iconAlign")){const e=t.state._iconAlign;null===(l=t.nextState)||void 0===l||l.set("_icon",{[e]:void 0,[null===(s=t.nextState)||void 0===s?void 0:s.get("_iconAlign")]:t.state._icon[e]})}},isIcon=t=>"object"==typeof t&&null!==t&&(void 0===t.style||isStyle(t.style))&&isString(t.icon,1),validateIcon=(t,e)=>{objectObjectHandler(e,(()=>{try{e=parseJson(e)}catch(t){}watchValidator(t,"_icon",(t=>null===t||isString(t,1)||"object"==typeof t&&null!==t&&(isString(t.left,1)||isIcon(t.left)||isString(t.right,1)||isIcon(t.right)||isString(t.top,1)||isIcon(t.top)||isString(t.bottom,1)||isIcon(t.bottom))),new Set(["KoliBriIcon"]),e,{hooks:{beforePatch:(e,a)=>{null===e&&a.set("_icon",{}),beforePatchIcon(t)}},required:!0})}))},watchIconAlign=(t,e)=>{watchValidator(t,"_iconAlign",(t=>"left"===t||"right"===t),new Set(["Alignment {left, right, top, bottom}"]),e,{hooks:{beforePatch:()=>{beforePatchIcon(t)}}})},READABLE_CHARS=/[a-zA-Z0-9äöüÄÖÜß]/g,ONLY_NUMBERS=/^\d+$/;function countReadableChars(t){var e;return"string"==typeof t&&(null===(e=t.match(READABLE_CHARS))||void 0===e?void 0:e.length)||0}function hasEnoughReadableChars(t,e=1){return countReadableChars(t)>=e}function containsOnlyNumbers(t){return ONLY_NUMBERS.test(t)}const syncAriaLabelBeforePatch=(t,e,a,o)=>{const i=e.has("_ariaLabel")?e.get("_ariaLabel"):a.state._ariaLabel;if("string"==typeof i){const t=e.has("_label")?e.get("_label"):a.state._label;!1===isEmptyOrPrefixOf(t,i)&&("_ariaLabel"===o?e.set("_label",i):e.set("_ariaLabel",void 0),a11yHint("The different Aria label is not barrier-free. A different Aria label must start with the label text for reasons of accessibility for voice control."))}},validateAriaLabel=(t,e,a={})=>{var o;watchString(t,"_ariaLabel",e,{hooks:{afterPatch:(t,e,o,i)=>{var n,l;"function"==typeof(null===(n=a.hooks)||void 0===n?void 0:n.afterPatch)&&(null===(l=a.hooks)||void 0===l||l.afterPatch(t,e,o,i)),"string"==typeof t&&t.length>0&&!1===hasEnoughReadableChars(t,3)&&!1===containsOnlyNumbers(t)&&a11yHint(`The different aria label ("${t}") is not accessible. A different aria label should consist of at least three readable characters.`)},beforePatch:null===(o=a.hooks)||void 0===o?void 0:o.beforePatch}})},validateAriaLabelWithLabel=(t,e)=>{validateAriaLabel(t,e,{hooks:{beforePatch:syncAriaLabelBeforePatch}})},validateLabel=(t,e,a={})=>{var o;watchString(t,"_label",e,{hooks:{afterPatch:(t,e,o,i)=>{var n,l;"function"==typeof(null===(n=a.hooks)||void 0===n?void 0:n.afterPatch)&&(null===(l=a.hooks)||void 0===l||l.afterPatch(t,e,o,i)),"string"==typeof t&&!1===hasEnoughReadableChars(t,3)&&!1===containsOnlyNumbers(t)&&a11yHint(`The heading or label ("${t}") is not accessible. A label should consist of at least three readable characters.`),"string"==typeof t&&t.length>80&&uiUxHint("A heading or label should not be longer than 80 characters.")},beforePatch:null===(o=a.hooks)||void 0===o?void 0:o.beforePatch},required:!0})},validateLabelWithAriaLabel=(t,e)=>{validateLabel(t,e,{hooks:{beforePatch:syncAriaLabelBeforePatch}})},KolSpanWc=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this._icon=void 0,this._iconOnly=!1,this._label=void 0,this.state={_icon:{},_iconOnly:!1,_label:"…"}}render(){const t=this.state._label.length>0;return h(Host,{class:{"icon-only":this.state._iconOnly}},this.state._icon.top&&h("kol-icon",{class:"icon top",style:this.state._icon.top.style,_ariaLabel:"",_icon:this.state._icon.top.icon}),h("span",null,this.state._icon.left&&h("kol-icon",{class:"icon left",style:this.state._icon.left.style,_ariaLabel:"",_icon:this.state._icon.left.icon}),!0!==this.state._iconOnly&&this.state._label.length>0?h("span",null,this.state._label):"",h("span",{"aria-hidden":t?"true":void 0,hidden:t},h("slot",{name:"expert"})),this.state._icon.right&&h("kol-icon",{class:"icon right",style:this.state._icon.right.style,_ariaLabel:"",_icon:this.state._icon.right.icon})),this.state._icon.bottom&&h("kol-icon",{class:"icon bottom",style:this.state._icon.bottom.style,_ariaLabel:"",_icon:this.state._icon.bottom.icon}))}validateIcon(t){validateIcon(this,t)}validateIconOnly(t){watchBoolean(this,"_iconOnly",t)}validateLabel(t){validateLabelWithAriaLabel(this,t)}componentWillLoad(){this.validateIcon(this._icon),this.validateIconOnly(this._iconOnly),this.validateLabel(this._label)}static get watchers(){return{_icon:["validateIcon"],_iconOnly:["validateIconOnly"],_label:["validateLabel"]}}},[4,"kol-span-wc",{_icon:[1],_iconOnly:[516,"_icon-only"],_label:[1],state:[32]}]);function defineCustomElement(){if("undefined"==typeof customElements)return;["kol-span-wc","kol-icon"].forEach((t=>{switch(t){case"kol-span-wc":customElements.get(t)||customElements.define(t,KolSpanWc);break;case"kol-icon":customElements.get(t)||defineCustomElement$1()}}))}export{KolSpanWc as K,validateIcon as a,validateLabelWithAriaLabel as b,validateLabel as c,defineCustomElement as d,containsOnlyNumbers as e,hasEnoughReadableChars as h,isIcon as i,validateAriaLabelWithLabel as v,watchIconAlign as w};
4
+ import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{f as watchBoolean,o as objectObjectHandler,h as parseJson,w as watchValidator,i as isString,j as isStyle,k as isObject}from"./prop.validators.js";import{a as validateLabelWithExpertSlot}from"./label.js";import{d as defineCustomElement$1}from"./component2.js";const validateHideLabel=(t,e)=>{watchBoolean(t,"_hideLabel",e)},mapCustomIcon=(t,e,i)=>{isObject(i)?t[e]=i:isString(i,1)&&(t[e]={icon:i})},mapIconProp2State=(t,e)=>{let i={};if(isString(t,1))if("right"===e)i={right:{icon:t}};else i={left:{icon:t}};else"object"==typeof t&&null!==t&&(mapCustomIcon(i,"top",t.top),mapCustomIcon(i,"right",t.right),mapCustomIcon(i,"bottom",t.bottom),mapCustomIcon(i,"left",t.left));return i},beforePatchIcon=t=>{var e,i,o,n,l,a,s;if(null===(e=t.nextState)||void 0===e?void 0:e.has("_icon")){const e=null===(i=t.nextState)||void 0===i?void 0:i.get("_icon"),l=(null===(o=t.nextState)||void 0===o?void 0:o.get("_iconAlign"))||t.state._iconAlign;null===(n=t.nextState)||void 0===n||n.set("_icon",mapIconProp2State(e,l))}else if(null===(l=t.nextState)||void 0===l?void 0:l.has("_iconAlign")){const e=t.state._iconAlign;null===(a=t.nextState)||void 0===a||a.set("_icon",{[e]:void 0,[null===(s=t.nextState)||void 0===s?void 0:s.get("_iconAlign")]:t.state._icon[e]})}},isIcon=t=>"object"==typeof t&&null!==t&&(void 0===t.style||isStyle(t.style))&&isString(t.icon,1),validateIcon=(t,e)=>{objectObjectHandler(e,(()=>{try{e=parseJson(e)}catch(t){}watchValidator(t,"_icon",(t=>null===t||isString(t,1)||"object"==typeof t&&null!==t&&(isString(t.left,1)||isIcon(t.left)||isString(t.right,1)||isIcon(t.right)||isString(t.top,1)||isIcon(t.top)||isString(t.bottom,1)||isIcon(t.bottom))),new Set(["KoliBriIcon"]),e,{hooks:{beforePatch:(e,i)=>{null===e&&i.set("_icon",{}),beforePatchIcon(t)}},required:!0})}))},watchIconAlign=(t,e)=>{watchValidator(t,"_iconAlign",(t=>"left"===t||"right"===t),new Set(["Alignment {left, right, top, bottom}"]),e,{hooks:{beforePatch:()=>{beforePatchIcon(t)}}})},KolSpanWc=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this._hideLabel=!1,this._icon=void 0,this._iconOnly=void 0,this._label=void 0,this.state={_hideLabel:!1,_icon:{},_label:!1}}render(){const t="string"==typeof this.state._label;return h(Host,{class:{"icon-only":!!this.state._hideLabel,"hide-label":!!this.state._hideLabel}},this.state._icon.top&&h("kol-icon",{class:"icon top",style:this.state._icon.top.style,_label:"",_icon:this.state._icon.top.icon}),h("span",null,this.state._icon.left&&h("kol-icon",{class:"icon left",style:this.state._icon.left.style,_label:"",_icon:this.state._icon.left.icon}),!this.state._hideLabel&&t?h("span",null,this.state._label):"",h("span",{"aria-hidden":t?"true":void 0,hidden:t},h("slot",{name:"expert"})),this.state._icon.right&&h("kol-icon",{class:"icon right",style:this.state._icon.right.style,_label:"",_icon:this.state._icon.right.icon})),this.state._icon.bottom&&h("kol-icon",{class:"icon bottom",style:this.state._icon.bottom.style,_label:"",_icon:this.state._icon.bottom.icon}))}validateHideLabel(t){validateHideLabel(this,t)}validateIcon(t){validateIcon(this,t)}validateIconOnly(t){this.validateHideLabel(t)}validateLabel(t){validateLabelWithExpertSlot(this,t)}componentWillLoad(){this.validateHideLabel(this._hideLabel||this._iconOnly),this.validateIcon(this._icon),this.validateLabel(this._label)}static get watchers(){return{_hideLabel:["validateHideLabel"],_icon:["validateIcon"],_iconOnly:["validateIconOnly"],_label:["validateLabel"]}}},[4,"kol-span-wc",{_hideLabel:[4,"_hide-label"],_icon:[1],_iconOnly:[4,"_icon-only"],_label:[8],state:[32]}]);function defineCustomElement(){if("undefined"==typeof customElements)return;["kol-span-wc","kol-icon"].forEach((t=>{switch(t){case"kol-span-wc":customElements.get(t)||customElements.define(t,KolSpanWc);break;case"kol-icon":customElements.get(t)||defineCustomElement$1()}}))}export{KolSpanWc as K,validateIcon as a,defineCustomElement as d,isIcon as i,validateHideLabel as v,watchIconAlign as w};
@@ -1 +1 @@
1
- {"file":"component3.js","mappings":";;;;;;;AAqBA,MAAM,aAAa,GAAG,CAAC,KAAuB,EAAE,SAAgB,EAAE,IAA2C;EAC5G,IAAI,QAAQ,CAAC,IAAI,CAAC,EAAE;IACnB,KAAK,CAAC,SAAS,CAAC,GAAG,IAAyB,CAAC;GAC7C;OAAM,IAAI,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE;IAC7B,KAAK,CAAC,SAAS,CAAC,GAAG;MAClB,IAAI,EAAE,IAAwB;KAC9B,CAAC;GACF;AACF,CAAC,CAAC;AAEK,MAAM,iBAAiB,GAAG,CAAC,IAAqB,EAAE,SAAiB;EACzE,IAAI,KAAK,GAAqB,EAAE,CAAC;EACjC,IAAI,QAAQ,CAAC,IAAI,EAAE,CA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C,KAAK,CAAC,KAAK,IAAI,gBAAU,KAAK,EAAC,YAAY,EAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,UAAU,EAAC,EAAE,EAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,GAAI,CAC3I,EACN,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,IAAI,gBAAU,KAAK,EAAC,aAAa,EAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,UAAU,EAAC,EAAE,EAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,GAAI,CAC/I,EACN;GACF;EAwBM,YAAY,CAAC,KAAuB;IAC1C,YAAY,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;GAC1B;EAGM,gBAAgB,CAAC,KAAe;IACtC,YAAY,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;GACvC;EAGM,aAAa,CAAC,KAAc;IAClC,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;GACxC;EAEM,iBAAiB;IACvB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC9B,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACtC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;GAChC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./src/types/props/icon.ts","./src/types/props/label.ts","./src/components/span/component.tsx"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\nimport { ButtonStates } from '../button-link';\nimport { AnyIconFontClass, KoliBriCustomIcon, KoliBriIconProp, KoliBriIconState } from '../icon';\nimport { Align } from '.';\nimport { objectObjectHandler, parseJson, watchValidator } from '../../utils/prop.validators';\nimport { isObject, isString, isStyle } from '../../utils/validator';\nimport { Stringified } from '../common';\n\n/* types */\n/** de\n * Setzt den unbestimmten Zustand auf der Checkbox, hat keine Auswirkung auf _checked.\n */\n/** en\n * Puts the checkbox in the indeterminate state, does not change the value of _checked.\n */\nexport type PropIcon = {\n\ticon: Stringified<KoliBriIconProp>;\n};\n\n/* validator */\n\nconst mapCustomIcon = (state: KoliBriIconState, alignment: Align, icon?: AnyIconFontClass | KoliBriCustomIcon) => {\n\tif (isObject(icon)) {\n\t\tstate[alignment] = icon as KoliBriCustomIcon;\n\t} else if (isString(icon, 1)) {\n\t\tstate[alignment] = {\n\t\t\ticon: icon as AnyIconFontClass,\n\t\t};\n\t}\n};\n\nexport const mapIconProp2State = (icon: KoliBriIconProp, iconAlign?: Align): KoliBriIconState => {\n\tlet state: KoliBriIconState = {};\n\tif (isString(icon, 1)) {\n\t\tswitch (iconAlign) {\n\t\t\tcase 'right':\n\t\t\t\tstate = {\n\t\t\t\t\tright: {\n\t\t\t\t\t\ticon: icon as AnyIconFontClass,\n\t\t\t\t\t},\n\t\t\t\t};\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tstate = {\n\t\t\t\t\tleft: {\n\t\t\t\t\t\ticon: icon as AnyIconFontClass,\n\t\t\t\t\t},\n\t\t\t\t};\n\t\t}\n\t} else if (typeof icon === 'object' && icon !== null) {\n\t\tmapCustomIcon(state, 'top', icon.top);\n\t\tmapCustomIcon(state, 'right', icon.right);\n\t\tmapCustomIcon(state, 'bottom', icon.bottom);\n\t\tmapCustomIcon(state, 'left', icon.left);\n\t}\n\treturn state;\n};\n\nconst beforePatchIcon = (component: Generic.Element.Component): void => {\n\tif (component.nextState?.has('_icon')) {\n\t\tconst icon = component.nextState?.get('_icon') as KoliBriIconProp;\n\t\tconst iconAlign = (component.nextState?.get('_iconAlign') as Align) || (component.state as ButtonStates)._iconAlign;\n\t\tcomponent.nextState?.set('_icon', mapIconProp2State(icon, iconAlign));\n\t} else if (component.nextState?.has('_iconAlign')) {\n\t\tconst lastIconAlign = (component.state as ButtonStates)._iconAlign as Align;\n\t\tcomponent.nextState?.set('_icon', {\n\t\t\t[lastIconAlign]: undefined,\n\t\t\t[component.nextState?.get('_iconAlign') as Align]: (component.state as ButtonStates)._icon[lastIconAlign],\n\t\t});\n\t}\n};\n\nexport const isIcon = (value?: unknown): boolean =>\n\ttypeof value === 'object' &&\n\tvalue !== null &&\n\t(typeof (value as KoliBriCustomIcon).style === 'undefined' || isStyle((value as KoliBriCustomIcon).style)) &&\n\tisString((value as KoliBriCustomIcon).icon, 1);\n\nexport const validateIcon = (component: Generic.Element.Component, value?: KoliBriIconProp): void => {\n\tobjectObjectHandler(value, () => {\n\t\ttry {\n\t\t\tvalue = parseJson<KoliBriIconProp>(value as string);\n\t\t} catch (e) {\n\t\t\t// value behält den ursprünglichen Wert\n\t\t}\n\t\twatchValidator(\n\t\t\tcomponent,\n\t\t\t'_icon',\n\t\t\t(value): boolean => {\n\t\t\t\treturn (\n\t\t\t\t\tvalue === null ||\n\t\t\t\t\tisString(value, 1) ||\n\t\t\t\t\t(typeof value === 'object' &&\n\t\t\t\t\t\tvalue !== null &&\n\t\t\t\t\t\t(isString(value.left, 1) ||\n\t\t\t\t\t\t\tisIcon(value.left) ||\n\t\t\t\t\t\t\tisString(value.right, 1) ||\n\t\t\t\t\t\t\tisIcon(value.right) ||\n\t\t\t\t\t\t\tisString(value.top, 1) ||\n\t\t\t\t\t\t\tisIcon(value.top) ||\n\t\t\t\t\t\t\tisString(value.bottom, 1) ||\n\t\t\t\t\t\t\tisIcon(value.bottom)))\n\t\t\t\t);\n\t\t\t},\n\t\t\tnew Set(['KoliBriIcon']),\n\t\t\tvalue,\n\t\t\t{\n\t\t\t\thooks: {\n\t\t\t\t\tbeforePatch: (nextValue: unknown, nextState: Map<string, unknown>) => {\n\t\t\t\t\t\tif (nextValue === null) {\n\t\t\t\t\t\t\tnextState.set('_icon', {});\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbeforePatchIcon(component);\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\trequired: true,\n\t\t\t}\n\t\t);\n\t});\n};\n\nexport const watchIconAlign = (component: Generic.Element.Component, value?: Align): void => {\n\twatchValidator(component, '_iconAlign', (value) => value === 'left' || value === 'right', new Set(['Alignment {left, right, top, bottom}']), value, {\n\t\thooks: {\n\t\t\tbeforePatch: () => {\n\t\t\t\tbeforePatchIcon(component);\n\t\t\t},\n\t\t},\n\t});\n};\n","import { Generic } from '@a11y-ui/core';\nimport { a11yHint, uiUxHint } from '../../utils/a11y.tipps';\nimport { watchString, WatchStringOptions } from '../../utils/prop.validators';\nimport { isEmptyOrPrefixOf } from '../../utils/validator';\n\n/* types */\n\n/**\n * This is a regular expression that matches all readable characters.\n *\n * Interesting: https://stackoverflow.com/questions/150033/regular-expression-to-match-non-english-characters\n */\nconst READABLE_CHARS = /[a-zA-Z0-9äöüÄÖÜß]/g;\n\n/**\n * This is a regular expression that matches only numbers.\n */\nconst ONLY_NUMBERS = /^\\d+$/;\n\n/**\n * This function counts the number of readable characters in a string.\n * @param str The string to count.\n * @returns The number of readable characters in the string.\n */\nfunction countReadableChars(str: string): number {\n\treturn typeof str === 'string' ? str.match(READABLE_CHARS)?.length || 0 : 0;\n}\n\n/**\n * This function checks if a string has at least a certain number of readable characters.\n * @param str The string to check.\n * @param min The minimum number of readable characters.\n * @returns True if the string has at least the minimum number of readable characters, false otherwise.\n */\nexport function hasEnoughReadableChars(str: string, min = 1): boolean {\n\treturn countReadableChars(str) >= min;\n}\n\n/**\n * This function checks if a string contains only numbers.\n * @param str The string to check.\n * @returns True if the string contains only numbers, false otherwise.\n */\nexport function containsOnlyNumbers(str: string): boolean {\n\treturn ONLY_NUMBERS.test(str);\n}\n\n/** de\n * Das Label dient der Beschriftung unterschiedlicher Elemente.\n * - Button -> label text\n * - Heading -> headline text\n * - Input, Select und Textarea -> label text\n * - Summary -> summary text\n * - Table -> caption text\n * - etc.\n *\n * Das Label ist häufig ein Pflichtattribut und kann leer gesetzt werden,\n * wenn man das Label mittels dem Expert-Slot überschreiben will.\n */\n/** en\n * The label is used to label different elements.\n * -Button -> label text\n * -Heading -> headline text\n * -Input, Select and Textarea -> label text\n * -Summary -> summary text\n * -Table -> caption text\n * -Etc.\n *\n * The label is often a mandatory attribute and can be set empty,\n * if you want to overwrite the label using the expert slot.\n */\nexport type PropLabel = {\n\tlabel: string;\n};\n\nexport type LabelProp = Generic.Element.Members<PropLabel, unknown>;\n\n/* validator */\n/**\n * Ein abweichendes Aria-Label muss aus Gründern der Barrierefreiheit für\n * die Sprachsteuerung mit dem Label-Text beginnen.\n */\nconst syncAriaLabelBeforePatch: Generic.Element.NextStateHooksCallback = (_nextValue, nextState, component: Generic.Element.Component, key): void => {\n\tconst ariaLabel: string | undefined = nextState.has('_ariaLabel') ? (nextState.get('_ariaLabel') as string) : (component.state._ariaLabel as string);\n\tif (typeof ariaLabel === 'string') {\n\t\tconst label: string = nextState.has('_label') ? (nextState.get('_label') as string) : (component.state._label as string);\n\t\tif (isEmptyOrPrefixOf(label, ariaLabel) === false) {\n\t\t\tif (key === '_ariaLabel') {\n\t\t\t\tnextState.set('_label', ariaLabel);\n\t\t\t\t// smartSetTimeout(() => ((component as Generic.Element.Component & { _label: string })._label = ariaLabel), 50);\n\t\t\t} else {\n\t\t\t\tnextState.set('_ariaLabel', undefined);\n\t\t\t\t// smartSetTimeout(() => ((component as Generic.Element.Component & { _ariaLabel: string })._ariaLabel = label), 50);\n\t\t\t}\n\t\t\ta11yHint(\n\t\t\t\t`The different Aria label is not barrier-free. A different Aria label must start with the label text for reasons of accessibility for voice control.`\n\t\t\t);\n\t\t}\n\t}\n};\n\nconst validateAriaLabel = (component: Generic.Element.Component, value?: string, options: WatchStringOptions = {}): void => {\n\twatchString(component, '_ariaLabel', value, {\n\t\thooks: {\n\t\t\tafterPatch: (value, state, component, key) => {\n\t\t\t\tif (typeof options.hooks?.afterPatch === 'function') {\n\t\t\t\t\toptions.hooks?.afterPatch(value, state, component, key);\n\t\t\t\t}\n\t\t\t\tif (typeof value === 'string' && value.length > 0 && hasEnoughReadableChars(value, 3) === false && containsOnlyNumbers(value) === false) {\n\t\t\t\t\ta11yHint(`The different aria label (\"${value}\") is not accessible. A different aria label should consist of at least three readable characters.`);\n\t\t\t\t}\n\t\t\t},\n\t\t\tbeforePatch: options.hooks?.beforePatch,\n\t\t},\n\t});\n};\n\nexport const validateAriaLabelWithLabel = (component: Generic.Element.Component, value?: string): void => {\n\tvalidateAriaLabel(component, value, {\n\t\thooks: {\n\t\t\tbeforePatch: syncAriaLabelBeforePatch,\n\t\t},\n\t});\n};\n\nexport const validateLabel = (component: Generic.Element.Component, value?: string, options: WatchStringOptions = {}): void => {\n\twatchString(component, '_label', value, {\n\t\thooks: {\n\t\t\tafterPatch: (value, state, component, key) => {\n\t\t\t\tif (typeof options.hooks?.afterPatch === 'function') {\n\t\t\t\t\toptions.hooks?.afterPatch(value, state, component, key);\n\t\t\t\t}\n\t\t\t\tif (typeof value === 'string' && hasEnoughReadableChars(value, 3) === false && containsOnlyNumbers(value) === false) {\n\t\t\t\t\ta11yHint(`The heading or label (\"${value}\") is not accessible. A label should consist of at least three readable characters.`);\n\t\t\t\t}\n\t\t\t\tif (typeof value === 'string' && value.length > 80) {\n\t\t\t\t\tuiUxHint(`A heading or label should not be longer than 80 characters.`);\n\t\t\t\t}\n\t\t\t},\n\t\t\tbeforePatch: options.hooks?.beforePatch,\n\t\t},\n\t\trequired: true,\n\t});\n};\n\nexport const validateLabelWithAriaLabel = (component: Generic.Element.Component, value?: string): void => {\n\tvalidateLabel(component, value, {\n\t\thooks: {\n\t\t\tbeforePatch: syncAriaLabelBeforePatch,\n\t\t},\n\t});\n};\n","import { Generic } from '@a11y-ui/core';\nimport { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\nimport { Stringified } from '../../types/common';\n\nimport { KoliBriCustomIcon, KoliBriIconProp } from '../../types/icon';\nimport { validateIcon } from '../../types/props/icon';\nimport { validateLabelWithAriaLabel } from '../../types/props/label';\nimport { watchBoolean } from '../../utils/prop.validators';\n\ntype RequiredProps = {\n\tlabel: string;\n};\ntype OptionalProps = {\n\ticon: Stringified<KoliBriIconProp>;\n\ticonOnly: boolean;\n};\nexport type Props = Generic.Element.Members<RequiredProps, OptionalProps>;\n\ntype RequiredStates = {\n\ticon: {\n\t\ttop?: KoliBriCustomIcon;\n\t\tright?: KoliBriCustomIcon;\n\t\tbottom?: KoliBriCustomIcon;\n\t\tleft?: KoliBriCustomIcon;\n\t};\n\ticonOnly: boolean;\n\tlabel: string;\n};\ntype OptionalStates = unknown;\nexport type States = Generic.Element.Members<RequiredStates, OptionalStates>;\n\n/**\n * @internal\n */\n@Component({\n\ttag: 'kol-span-wc',\n\tshadow: false,\n})\nexport class KolSpanWc implements Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates> {\n\tpublic render(): JSX.Element {\n\t\tconst hideExpertSlot = this.state._label.length > 0;\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={{\n\t\t\t\t\t'icon-only': this.state._iconOnly,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{this.state._icon.top && <kol-icon class=\"icon top\" style={this.state._icon.top.style} _ariaLabel=\"\" _icon={this.state._icon.top.icon} />}\n\t\t\t\t<span>\n\t\t\t\t\t{this.state._icon.left && <kol-icon class=\"icon left\" style={this.state._icon.left.style} _ariaLabel=\"\" _icon={this.state._icon.left.icon} />}\n\t\t\t\t\t{this.state._iconOnly !== true && this.state._label.length > 0 ? <span>{this.state._label}</span> : ''}\n\t\t\t\t\t<span aria-hidden={hideExpertSlot ? 'true' : undefined} hidden={hideExpertSlot}>\n\t\t\t\t\t\t<slot name=\"expert\" />\n\t\t\t\t\t</span>\n\t\t\t\t\t{this.state._icon.right && <kol-icon class=\"icon right\" style={this.state._icon.right.style} _ariaLabel=\"\" _icon={this.state._icon.right.icon} />}\n\t\t\t\t</span>\n\t\t\t\t{this.state._icon.bottom && <kol-icon class=\"icon bottom\" style={this.state._icon.bottom.style} _ariaLabel=\"\" _icon={this.state._icon.bottom.icon} />}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Setzt die Iconklasse (z.B.: `_icon=\"codicon codicon-home`).\n\t */\n\t@Prop() public _icon?: Stringified<KoliBriIconProp>;\n\n\t/**\n\t * Blendet die Beschriftung (Label) aus und zeigt sie stattdessen mittels eines Tooltips an.\n\t */\n\t@Prop({ reflect: true }) public _iconOnly?: boolean = false;\n\n\t/**\n\t * Setzt die sichtbare oder semantische Beschriftung der Komponente (z.B. Aria-Label, Label, Headline, Caption, Summary usw.).\n\t */\n\t@Prop() public _label!: string;\n\n\t@State() public state: States = {\n\t\t_icon: {},\n\t\t_iconOnly: false,\n\t\t_label: '…', // ⚠ required\n\t};\n\n\t@Watch('_icon')\n\tpublic validateIcon(value?: KoliBriIconProp): void {\n\t\tvalidateIcon(this, value);\n\t}\n\n\t@Watch('_iconOnly')\n\tpublic validateIconOnly(value?: boolean): void {\n\t\twatchBoolean(this, '_iconOnly', value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: string): void {\n\t\tvalidateLabelWithAriaLabel(this, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateIcon(this._icon);\n\t\tthis.validateIconOnly(this._iconOnly);\n\t\tthis.validateLabel(this._label);\n\t}\n}\n"],"version":3}
1
+ {"file":"component3.js","mappings":";;;;;;;;MAmBa,iBAAiB,GAAG,CAAC,SAAoC,EAAE,KAAe;EACtF,YAAY,CAAC,SAAS,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC;AAC9C;;ACCA,MAAM,aAAa,GAAG,CAAC,KAAuB,EAAE,SAAgB,EAAE,IAA2C;EAC5G,IAAI,QAAQ,CAAC,IAAI,CAAC,EAAE;IACnB,KAAK,CAAC,SAAS,CAAC,GAAG,IAAyB,CAAC;GAC7C;OAAM,IAAI,QAAQ,CAAC,IAAI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MAAM,EAAC,EAAE,EAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,GAAI,CAC3I,EACN;GACF;EA8BM,iBAAiB,CAAC,KAAe;IACvC,iBAAiB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;GAC/B;EAGM,YAAY,CAAC,KAAuB;IAC1C,YAAY,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;GAC1B;EAMM,gBAAgB,CAAC,KAAe;IACtC,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;GAC9B;EAGM,aAAa,CAAC,KAAmC;IACvD,2BAA2B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;GACzC;EAEM,iBAAiB;IACvB,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC;IAC1D,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC9B,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;GAChC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/types/props/hide-label.ts","src/types/props/icon.ts","src/components/span/component.tsx"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { watchBoolean } from '../../utils/prop.validators';\n\n/* types */\n\nexport type HideLabelPropType = boolean;\n\n/** de\n * Lässt das Element das Label ausblenden.\n */\n/** en\n * Tells the element to hide the label.\n */\nexport type PropHideLabel = {\n\thideLabel: HideLabelPropType;\n};\n\n/* validator */\nexport const validateHideLabel = (component: Generic.Element.Component, value?: boolean): void => {\n\twatchBoolean(component, '_hideLabel', value);\n};\n","import { Generic } from '@a11y-ui/core';\n\nimport { objectObjectHandler, parseJson, watchValidator } from '../../utils/prop.validators';\nimport { isObject, isString, isStyle } from '../../utils/validator';\nimport { ButtonStates } from '../button-link';\nimport { Stringified } from '../common';\nimport { AnyIconFontClass, KoliBriCustomIcon, KoliBriIconProp, KoliBriIconState } from '../icon';\nimport { Align } from './align';\n\n/* types */\n/** de\n * Setzt den unbestimmten Zustand auf der Checkbox, hat keine Auswirkung auf _checked.\n */\n/** en\n * Puts the checkbox in the indeterminate state, does not change the value of _checked.\n */\nexport type PropIcon = {\n\ticon: Stringified<KoliBriIconProp>;\n};\n\n/* validator */\n\nconst mapCustomIcon = (state: KoliBriIconState, alignment: Align, icon?: AnyIconFontClass | KoliBriCustomIcon) => {\n\tif (isObject(icon)) {\n\t\tstate[alignment] = icon as KoliBriCustomIcon;\n\t} else if (isString(icon, 1)) {\n\t\tstate[alignment] = {\n\t\t\ticon: icon as AnyIconFontClass,\n\t\t};\n\t}\n};\n\nexport const mapIconProp2State = (icon: KoliBriIconProp, iconAlign?: Align): KoliBriIconState => {\n\tlet state: KoliBriIconState = {};\n\tif (isString(icon, 1)) {\n\t\tswitch (iconAlign) {\n\t\t\tcase 'right':\n\t\t\t\tstate = {\n\t\t\t\t\tright: {\n\t\t\t\t\t\ticon: icon as AnyIconFontClass,\n\t\t\t\t\t},\n\t\t\t\t};\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tstate = {\n\t\t\t\t\tleft: {\n\t\t\t\t\t\ticon: icon as AnyIconFontClass,\n\t\t\t\t\t},\n\t\t\t\t};\n\t\t}\n\t} else if (typeof icon === 'object' && icon !== null) {\n\t\tmapCustomIcon(state, 'top', icon.top);\n\t\tmapCustomIcon(state, 'right', icon.right);\n\t\tmapCustomIcon(state, 'bottom', icon.bottom);\n\t\tmapCustomIcon(state, 'left', icon.left);\n\t}\n\treturn state;\n};\n\nconst beforePatchIcon = (component: Generic.Element.Component): void => {\n\tif (component.nextState?.has('_icon')) {\n\t\tconst icon = component.nextState?.get('_icon') as KoliBriIconProp;\n\t\tconst iconAlign = (component.nextState?.get('_iconAlign') as Align) || (component.state as ButtonStates)._iconAlign;\n\t\tcomponent.nextState?.set('_icon', mapIconProp2State(icon, iconAlign));\n\t} else if (component.nextState?.has('_iconAlign')) {\n\t\tconst lastIconAlign = (component.state as ButtonStates)._iconAlign as Align;\n\t\tcomponent.nextState?.set('_icon', {\n\t\t\t[lastIconAlign]: undefined,\n\t\t\t[component.nextState?.get('_iconAlign') as Align]: (component.state as ButtonStates)._icon[lastIconAlign],\n\t\t});\n\t}\n};\n\nexport const isIcon = (value?: unknown): boolean =>\n\ttypeof value === 'object' &&\n\tvalue !== null &&\n\t(typeof (value as KoliBriCustomIcon).style === 'undefined' || isStyle((value as KoliBriCustomIcon).style)) &&\n\tisString((value as KoliBriCustomIcon).icon, 1);\n\nexport const validateIcon = (component: Generic.Element.Component, value?: KoliBriIconProp): void => {\n\tobjectObjectHandler(value, () => {\n\t\ttry {\n\t\t\tvalue = parseJson<KoliBriIconProp>(value as string);\n\t\t} catch (e) {\n\t\t\t// value behält den ursprünglichen Wert\n\t\t}\n\t\twatchValidator(\n\t\t\tcomponent,\n\t\t\t'_icon',\n\t\t\t(value): boolean => {\n\t\t\t\treturn (\n\t\t\t\t\tvalue === null ||\n\t\t\t\t\tisString(value, 1) ||\n\t\t\t\t\t(typeof value === 'object' &&\n\t\t\t\t\t\tvalue !== null &&\n\t\t\t\t\t\t(isString(value.left, 1) ||\n\t\t\t\t\t\t\tisIcon(value.left) ||\n\t\t\t\t\t\t\tisString(value.right, 1) ||\n\t\t\t\t\t\t\tisIcon(value.right) ||\n\t\t\t\t\t\t\tisString(value.top, 1) ||\n\t\t\t\t\t\t\tisIcon(value.top) ||\n\t\t\t\t\t\t\tisString(value.bottom, 1) ||\n\t\t\t\t\t\t\tisIcon(value.bottom)))\n\t\t\t\t);\n\t\t\t},\n\t\t\tnew Set(['KoliBriIcon']),\n\t\t\tvalue,\n\t\t\t{\n\t\t\t\thooks: {\n\t\t\t\t\tbeforePatch: (nextValue: unknown, nextState: Map<string, unknown>) => {\n\t\t\t\t\t\tif (nextValue === null) {\n\t\t\t\t\t\t\tnextState.set('_icon', {});\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbeforePatchIcon(component);\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\trequired: true,\n\t\t\t}\n\t\t);\n\t});\n};\n\nexport const watchIconAlign = (component: Generic.Element.Component, value?: Align): void => {\n\twatchValidator(component, '_iconAlign', (value) => value === 'left' || value === 'right', new Set(['Alignment {left, right, top, bottom}']), value, {\n\t\thooks: {\n\t\t\tbeforePatch: () => {\n\t\t\t\tbeforePatchIcon(component);\n\t\t\t},\n\t\t},\n\t});\n};\n","import { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { Stringified } from '../../types/common';\nimport { KoliBriIconProp } from '../../types/icon';\nimport { validateHideLabel } from '../../types/props/hide-label';\nimport { validateIcon } from '../../types/props/icon';\nimport { LabelWithExpertSlotPropType, validateLabelWithExpertSlot } from '../../types/props/label';\nimport { KolibriSpanAPI, KolibriSpanStates } from './types';\n\n/**\n * @internal\n */\n@Component({\n\ttag: 'kol-span-wc',\n\tshadow: false,\n})\nexport class KolSpanWc implements KolibriSpanAPI {\n\tpublic render(): JSX.Element {\n\t\tconst hideExpertSlot: boolean = typeof this.state._label === 'string';\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={{\n\t\t\t\t\t'icon-only': !!this.state._hideLabel, // @deprecated in v2\n\t\t\t\t\t'hide-label': !!this.state._hideLabel,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{this.state._icon.top && <kol-icon class=\"icon top\" style={this.state._icon.top.style} _label=\"\" _icon={this.state._icon.top.icon} />}\n\t\t\t\t<span>\n\t\t\t\t\t{this.state._icon.left && <kol-icon class=\"icon left\" style={this.state._icon.left.style} _label=\"\" _icon={this.state._icon.left.icon} />}\n\t\t\t\t\t{!this.state._hideLabel && hideExpertSlot ? <span>{this.state._label}</span> : ''}\n\t\t\t\t\t<span aria-hidden={hideExpertSlot ? 'true' : undefined} hidden={hideExpertSlot}>\n\t\t\t\t\t\t<slot name=\"expert\" />\n\t\t\t\t\t</span>\n\t\t\t\t\t{this.state._icon.right && <kol-icon class=\"icon right\" style={this.state._icon.right.style} _label=\"\" _icon={this.state._icon.right.icon} />}\n\t\t\t\t</span>\n\t\t\t\t{this.state._icon.bottom && <kol-icon class=\"icon bottom\" style={this.state._icon.bottom.style} _label=\"\" _icon={this.state._icon.bottom.icon} />}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Blendet die Beschriftung (Label) aus und zeigt sie stattdessen mittels eines Tooltips an.\n\t */\n\t@Prop() public _hideLabel?: boolean = false;\n\n\t/**\n\t * Setzt die Iconklasse (z.B.: `_icon=\"codicon codicon-home`).\n\t */\n\t@Prop() public _icon?: Stringified<KoliBriIconProp>;\n\n\t/**\n\t * Blendet die Beschriftung (Label) aus und zeigt sie stattdessen mittels eines Tooltips an.\n\t * @deprecated use _hide-label\n\t */\n\t@Prop() public _iconOnly?: boolean;\n\n\t/**\n\t * Setzt die sichtbare oder semantische Beschriftung der Komponente (z.B. Aria-Label, Label, Headline, Caption, Summary usw.).\n\t */\n\t@Prop() public _label!: LabelWithExpertSlotPropType;\n\n\t@State() public state: KolibriSpanStates = {\n\t\t_hideLabel: false,\n\t\t_icon: {},\n\t\t_label: false, // ⚠ required\n\t};\n\n\t@Watch('_hideLabel')\n\tpublic validateHideLabel(value?: boolean): void {\n\t\tvalidateHideLabel(this, value);\n\t}\n\n\t@Watch('_icon')\n\tpublic validateIcon(value?: KoliBriIconProp): void {\n\t\tvalidateIcon(this, value);\n\t}\n\n\t/**\n\t * @deprecated use _hide-label\n\t */\n\t@Watch('_iconOnly')\n\tpublic validateIconOnly(value?: boolean): void {\n\t\tthis.validateHideLabel(value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelWithExpertSlotPropType): void {\n\t\tvalidateLabelWithExpertSlot(this, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateHideLabel(this._hideLabel || this._iconOnly);\n\t\tthis.validateIcon(this._icon);\n\t\tthis.validateLabel(this._label);\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{a as watchValidator,w as watchString}from"./prop.validators.js";const watchHeadingLevel=(e,a)=>{watchValidator(e,"_level",(e=>"number"==typeof e&&0<=e&&e<=6),new Set(["Number {0, 1, 2, 3, 4, 5, 6}"]),a,{defaultValue:1,required:!0})},KolHeadingWc=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.renderHeadline=(e,a)=>{switch(a){case 1:return h("h1",{class:"headline"},e,h("slot",null));case 2:return h("h2",{class:"headline"},e,h("slot",null));case 3:return h("h3",{class:"headline"},e,h("slot",null));case 4:return h("h4",{class:"headline"},e,h("slot",null));case 5:return h("h5",{class:"headline"},e,h("slot",null));case 6:return h("h6",{class:"headline"},e,h("slot",null));default:return h("strong",{class:"headline"},e,h("slot",null))}},this.renderSecondaryHeadline=(e,a)=>{switch(a){case 1:return h("span",{class:"secondary-headline"},e);case 2:return h("h2",{class:"secondary-headline"},e);case 3:return h("h3",{class:"secondary-headline"},e);case 4:return h("h4",{class:"secondary-headline"},e);case 5:return h("h5",{class:"secondary-headline"},e);case 6:return h("h6",{class:"secondary-headline"},e);default:return h("strong",{class:"secondary-headline"},e)}},this._label=void 0,this._level=1,this._secondaryHeadline=void 0,this.state={_label:"…",_level:1}}validateLabel(e){watchString(this,"_label",e)}validateLevel(e){watchHeadingLevel(this,e)}validateSecondaryHeadline(e){watchString(this,"_secondaryHeadline",e)}componentWillLoad(){this.validateLabel(this._label),this.validateLevel(this._level),this.validateSecondaryHeadline(this._secondaryHeadline)}render(){return h(Host,null,"string"==typeof this.state._secondaryHeadline&&this.state._secondaryHeadline.length>0?h("hgroup",null,this.renderHeadline(this.state._label,this.state._level),this.state._secondaryHeadline&&this.renderSecondaryHeadline(this.state._secondaryHeadline,this.state._level+1)):this.renderHeadline(this.state._label,this.state._level))}static get watchers(){return{_label:["validateLabel"],_level:["validateLevel"],_secondaryHeadline:["validateSecondaryHeadline"]}}},[4,"kol-heading-wc",{_label:[1],_level:[2],_secondaryHeadline:[1,"_secondary-headline"],state:[32]}]);function defineCustomElement(){if("undefined"==typeof customElements)return;["kol-heading-wc"].forEach((e=>{if("kol-heading-wc"===e)customElements.get(e)||customElements.define(e,KolHeadingWc)}))}export{KolHeadingWc as K,defineCustomElement as d,watchHeadingLevel as w};
4
+ import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{a as validateLabelWithExpertSlot}from"./label.js";import{w as watchValidator,a as watchString}from"./prop.validators.js";const watchHeadingLevel=(e,a)=>{watchValidator(e,"_level",(e=>"number"==typeof e&&0<=e&&e<=6),new Set(["Number {0, 1, 2, 3, 4, 5, 6}"]),a,{defaultValue:1,required:!0})},KolHeadingWc=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.renderHeadline=(e,a)=>{switch(a){case 1:return h("h1",{class:"headline"},e,h("slot",null));case 2:return h("h2",{class:"headline"},e,h("slot",null));case 3:return h("h3",{class:"headline"},e,h("slot",null));case 4:return h("h4",{class:"headline"},e,h("slot",null));case 5:return h("h5",{class:"headline"},e,h("slot",null));case 6:return h("h6",{class:"headline"},e,h("slot",null));default:return h("strong",{class:"headline"},e,h("slot",null))}},this.renderSecondaryHeadline=(e,a)=>{switch(a){case 1:return h("span",{class:"secondary-headline"},e);case 2:return h("h2",{class:"secondary-headline"},e);case 3:return h("h3",{class:"secondary-headline"},e);case 4:return h("h4",{class:"secondary-headline"},e);case 5:return h("h5",{class:"secondary-headline"},e);case 6:return h("h6",{class:"secondary-headline"},e);default:return h("strong",{class:"secondary-headline"},e)}},this._label=void 0,this._level=1,this._secondaryHeadline=void 0,this.state={_label:!1,_level:1}}validateLabel(e){validateLabelWithExpertSlot(this,e)}validateLevel(e){watchHeadingLevel(this,e)}validateSecondaryHeadline(e){watchString(this,"_secondaryHeadline",e)}componentWillLoad(){this.validateLabel(this._label),this.validateLevel(this._level),this.validateSecondaryHeadline(this._secondaryHeadline)}render(){return h(Host,null,"string"==typeof this.state._secondaryHeadline&&this.state._secondaryHeadline.length>0?h("hgroup",null,this.renderHeadline(this.state._label,this.state._level),this.state._secondaryHeadline&&this.renderSecondaryHeadline(this.state._secondaryHeadline,this.state._level+1)):this.renderHeadline(this.state._label,this.state._level))}static get watchers(){return{_label:["validateLabel"],_level:["validateLevel"],_secondaryHeadline:["validateSecondaryHeadline"]}}},[4,"kol-heading-wc",{_label:[8],_level:[2],_secondaryHeadline:[1,"_secondary-headline"],state:[32]}]);function defineCustomElement(){if("undefined"==typeof customElements)return;["kol-heading-wc"].forEach((e=>{if("kol-heading-wc"===e)customElements.get(e)||customElements.define(e,KolHeadingWc)}))}export{KolHeadingWc as K,defineCustomElement as d,watchHeadingLevel as w};
@@ -1 +1 @@
1
- {"file":"component4.js","mappings":";;;;;;MAGa,iBAAiB,GAAG,CAAC,SAAoC,EAAE,KAAc;EACrF,cAAc,CACb,SAAS,EACT,QAAQ,EACR,CAAC,KAAK;IACL,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,IAAI,KAAK,IAAI,KAAK,IAAI,CAAC,CAAC;GAC7D,EACD,IAAI,GAAG,CAAC,CAAC,8BAA8B,CAAC,CAAC,EACzC,KAAK,EACL;IAEC,YAAY,EAAE,CAAC;IACf,QAAQ,EAAE,IAAI;GACd,CACD,CAAC;AACH;;MCca,YAAY;;;;IA0CP,mBAAc,GAAG,CAAC,QAAgB,EAAE,KAAc;MAClE,QAAQ,KAAK;QACZ,KAAK,CAAC;UACL,QACC,UAAI,KAAK,EAAC,UAAU,IAClB,QAAQ,EACT,eAAQ,CACJ,EACJ;QACH,KAAK,CAAC;UACL,QACC,UAAI,KAAK,EAAC,UAAU,IAClB,QAAQ,EACT,eAAQ,CACJ,EACJ;QACH,KAAK,CAAC;UACL,QACC,UAAI,KAAK,EAAC,UAAU,IAClB,QAAQ,EACT,eA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,EAAE,KAAK,CAAC,CAAC;GAC/B;EAGM,yBAAyB,CAAC,KAAc;IAC9C,WAAW,CAAC,IAAI,EAAE,oBAAoB,EAAE,KAAK,CAAC,CAAC;GAC/C;EAEM,iBAAiB;IACvB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAChC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAChC,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;GACxD;EA2EM,MAAM;IACZ,QACC,EAAC,IAAI,QACH,OAAO,IAAI,CAAC,KAAK,CAAC,kBAAkB,KAAK,QAAQ,IAAI,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC,MAAM,GAAG,CAAC,IAC7F,kBACE,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EACzD,IAAI,CAAC,KAAK,CAAC,kBAAkB,IAAI,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,KAAK,CAAC,kBAAkB,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAC5G,KAET,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CACzD,CACK,EACN;GACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./src/components/heading/validation.ts","./src/components/heading/component.tsx"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\nimport { watchValidator } from '../../utils/prop.validators';\n\nexport const watchHeadingLevel = (component: Generic.Element.Component, value?: number): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t'_level',\n\t\t(value): boolean => {\n\t\t\treturn typeof value === 'number' && 0 <= value && value <= 6;\n\t\t},\n\t\tnew Set(['Number {0, 1, 2, 3, 4, 5, 6}']),\n\t\tvalue,\n\t\t{\n\t\t\t// TODO: options not in the validator\n\t\t\tdefaultValue: 1,\n\t\t\trequired: true,\n\t\t}\n\t);\n};\n","import { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { Generic } from '@a11y-ui/core';\nimport { HeadingLevel } from '../../types/heading-level';\nimport { watchString } from '../../utils/prop.validators';\nimport { watchHeadingLevel } from './validation';\n\ntype RequiredProps = {\n\tlabel: string;\n};\ntype OptionalProps = {\n\tsecondaryHeadline: string;\n\tlevel: HeadingLevel;\n};\nexport type Props = Generic.Element.Members<RequiredProps, OptionalProps>;\n\ntype RequiredStates = {\n\tlabel: string;\n\tlevel: HeadingLevel;\n};\ntype OptionalStates = {\n\tsecondaryHeadline: string;\n};\nexport type States = Generic.Element.Members<RequiredStates, OptionalStates>;\n\n/**\n * @slot - Inhalt der Überschrift.\n */\n@Component({\n\ttag: 'kol-heading-wc',\n\tshadow: false,\n})\nexport class KolHeadingWc implements Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates> {\n\t/**\n\t * Setzt die sichtbare oder semantische Beschriftung der Komponente (z.B. Aria-Label, Label, Headline, Caption, Summary usw.).\n\t */\n\t@Prop() public _label!: string;\n\n\t/**\n\t * Gibt an, welchen H-Level von 1 bis 6 die Überschrift hat. Oder bei 0, ob es keine Überschrift ist und als fett gedruckter Text angezeigt werden soll.\n\t */\n\t@Prop() public _level?: HeadingLevel = 1;\n\n\t/**\n\t * Setzt den Text einer weiteren Überschrift, einen Level kleiner, unter der Ersten.\n\t */\n\t@Prop() public _secondaryHeadline?: string;\n\n\t@State() public state: States = {\n\t\t_label: '…', // ⚠ required\n\t\t_level: 1,\n\t};\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: string): void {\n\t\twatchString(this, '_label', value);\n\t}\n\n\t@Watch('_level')\n\tpublic validateLevel(value?: HeadingLevel): void {\n\t\twatchHeadingLevel(this, value);\n\t}\n\n\t@Watch('_secondaryHeadline')\n\tpublic validateSecondaryHeadline(value?: string): void {\n\t\twatchString(this, '_secondaryHeadline', value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateLevel(this._level);\n\t\tthis.validateSecondaryHeadline(this._secondaryHeadline);\n\t}\n\n\tprivate readonly renderHeadline = (headline: string, level?: number): JSX.Element => {\n\t\tswitch (level) {\n\t\t\tcase 1:\n\t\t\t\treturn (\n\t\t\t\t\t<h1 class=\"headline\">\n\t\t\t\t\t\t{headline}\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</h1>\n\t\t\t\t);\n\t\t\tcase 2:\n\t\t\t\treturn (\n\t\t\t\t\t<h2 class=\"headline\">\n\t\t\t\t\t\t{headline}\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</h2>\n\t\t\t\t);\n\t\t\tcase 3:\n\t\t\t\treturn (\n\t\t\t\t\t<h3 class=\"headline\">\n\t\t\t\t\t\t{headline}\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</h3>\n\t\t\t\t);\n\t\t\tcase 4:\n\t\t\t\treturn (\n\t\t\t\t\t<h4 class=\"headline\">\n\t\t\t\t\t\t{headline}\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</h4>\n\t\t\t\t);\n\t\t\tcase 5:\n\t\t\t\treturn (\n\t\t\t\t\t<h5 class=\"headline\">\n\t\t\t\t\t\t{headline}\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</h5>\n\t\t\t\t);\n\t\t\tcase 6:\n\t\t\t\treturn (\n\t\t\t\t\t<h6 class=\"headline\">\n\t\t\t\t\t\t{headline}\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</h6>\n\t\t\t\t);\n\t\t\tdefault:\n\t\t\t\treturn (\n\t\t\t\t\t<strong class=\"headline\">\n\t\t\t\t\t\t{headline}\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</strong>\n\t\t\t\t);\n\t\t}\n\t};\n\n\tprivate readonly renderSecondaryHeadline = (headline: string, level?: number): JSX.Element => {\n\t\tswitch (level) {\n\t\t\tcase 1: // if the headline is only strong\n\t\t\t\treturn <span class=\"secondary-headline\">{headline}</span>;\n\t\t\tcase 2: // if the headline is h1\n\t\t\t\treturn <h2 class=\"secondary-headline\">{headline}</h2>;\n\t\t\tcase 3: // if the headline is h2\n\t\t\t\treturn <h3 class=\"secondary-headline\">{headline}</h3>;\n\t\t\tcase 4: // if the headline is h3\n\t\t\t\treturn <h4 class=\"secondary-headline\">{headline}</h4>;\n\t\t\tcase 5: // if the headline is h4\n\t\t\t\treturn <h5 class=\"secondary-headline\">{headline}</h5>;\n\t\t\tcase 6: // if the headline is h5\n\t\t\t\treturn <h6 class=\"secondary-headline\">{headline}</h6>;\n\t\t\tdefault: // if the headline is h6\n\t\t\t\treturn <strong class=\"secondary-headline\">{headline}</strong>;\n\t\t}\n\t};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t{typeof this.state._secondaryHeadline === 'string' && this.state._secondaryHeadline.length > 0 ? (\n\t\t\t\t\t<hgroup>\n\t\t\t\t\t\t{this.renderHeadline(this.state._label, this.state._level)}\n\t\t\t\t\t\t{this.state._secondaryHeadline && this.renderSecondaryHeadline(this.state._secondaryHeadline, this.state._level + 1)}\n\t\t\t\t\t</hgroup>\n\t\t\t\t) : (\n\t\t\t\t\tthis.renderHeadline(this.state._label, this.state._level)\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"version":3}
1
+ {"file":"component4.js","mappings":";;;;;;;MAIa,iBAAiB,GAAG,CAAC,SAAoC,EAAE,KAAc;EACrF,cAAc,CACb,SAAS,EACT,QAAQ,EACR,CAAC,KAAK;IACL,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,IAAI,KAAK,IAAI,KAAK,IAAI,CAAC,CAAC;GAC7D,EACD,IAAI,GAAG,CAAC,CAAC,8BAA8B,CAAC,CAAC,EACzC,KAAK,EACL;IAEC,YAAY,EAAE,CAAC;IACf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,CACK,EACN;GACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/heading/validation.ts","src/components/heading/component.tsx"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { watchValidator } from '../../utils/prop.validators';\n\nexport const watchHeadingLevel = (component: Generic.Element.Component, value?: number): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t'_level',\n\t\t(value): boolean => {\n\t\t\treturn typeof value === 'number' && 0 <= value && value <= 6;\n\t\t},\n\t\tnew Set(['Number {0, 1, 2, 3, 4, 5, 6}']),\n\t\tvalue,\n\t\t{\n\t\t\t// TODO: options not in the validator\n\t\t\tdefaultValue: 1,\n\t\t\trequired: true,\n\t\t}\n\t);\n};\n","import { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { HeadingLevel } from '../../types/heading-level';\nimport { LabelWithExpertSlotPropType, validateLabelWithExpertSlot } from '../../types/props/label';\nimport { watchString } from '../../utils/prop.validators';\nimport { KoliBriHeadingAPI, KoliBriHeadingStates } from './types';\nimport { watchHeadingLevel } from './validation';\n\n/**\n * @slot - Inhalt der Überschrift.\n */\n@Component({\n\ttag: 'kol-heading-wc',\n\tshadow: false,\n})\nexport class KolHeadingWc implements KoliBriHeadingAPI {\n\t/**\n\t * Setzt die sichtbare oder semantische Beschriftung der Komponente (z.B. Aria-Label, Label, Headline, Caption, Summary usw.).\n\t */\n\t@Prop() public _label!: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Gibt an, welchen H-Level von 1 bis 6 die Überschrift hat. Oder bei 0, ob es keine Überschrift ist und als fett gedruckter Text angezeigt werden soll.\n\t */\n\t@Prop() public _level?: HeadingLevel = 1;\n\n\t/**\n\t * Setzt den Text einer weiteren Überschrift, einen Level kleiner, unter der Ersten.\n\t */\n\t@Prop() public _secondaryHeadline?: string;\n\n\t@State() public state: KoliBriHeadingStates = {\n\t\t_label: false, // ⚠ required\n\t\t_level: 1,\n\t};\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelWithExpertSlotPropType): void {\n\t\tvalidateLabelWithExpertSlot(this, value);\n\t}\n\n\t@Watch('_level')\n\tpublic validateLevel(value?: HeadingLevel): void {\n\t\twatchHeadingLevel(this, value);\n\t}\n\n\t@Watch('_secondaryHeadline')\n\tpublic validateSecondaryHeadline(value?: string): void {\n\t\twatchString(this, '_secondaryHeadline', value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateLevel(this._level);\n\t\tthis.validateSecondaryHeadline(this._secondaryHeadline);\n\t}\n\n\tprivate readonly renderHeadline = (headline: LabelWithExpertSlotPropType, level?: number): JSX.Element => {\n\t\tswitch (level) {\n\t\t\tcase 1:\n\t\t\t\treturn (\n\t\t\t\t\t<h1 class=\"headline\">\n\t\t\t\t\t\t{headline}\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</h1>\n\t\t\t\t);\n\t\t\tcase 2:\n\t\t\t\treturn (\n\t\t\t\t\t<h2 class=\"headline\">\n\t\t\t\t\t\t{headline}\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</h2>\n\t\t\t\t);\n\t\t\tcase 3:\n\t\t\t\treturn (\n\t\t\t\t\t<h3 class=\"headline\">\n\t\t\t\t\t\t{headline}\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</h3>\n\t\t\t\t);\n\t\t\tcase 4:\n\t\t\t\treturn (\n\t\t\t\t\t<h4 class=\"headline\">\n\t\t\t\t\t\t{headline}\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</h4>\n\t\t\t\t);\n\t\t\tcase 5:\n\t\t\t\treturn (\n\t\t\t\t\t<h5 class=\"headline\">\n\t\t\t\t\t\t{headline}\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</h5>\n\t\t\t\t);\n\t\t\tcase 6:\n\t\t\t\treturn (\n\t\t\t\t\t<h6 class=\"headline\">\n\t\t\t\t\t\t{headline}\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</h6>\n\t\t\t\t);\n\t\t\tdefault:\n\t\t\t\treturn (\n\t\t\t\t\t<strong class=\"headline\">\n\t\t\t\t\t\t{headline}\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</strong>\n\t\t\t\t);\n\t\t}\n\t};\n\n\tprivate readonly renderSecondaryHeadline = (headline: string, level?: number): JSX.Element => {\n\t\tswitch (level) {\n\t\t\tcase 1: // if the headline is only strong\n\t\t\t\treturn <span class=\"secondary-headline\">{headline}</span>;\n\t\t\tcase 2: // if the headline is h1\n\t\t\t\treturn <h2 class=\"secondary-headline\">{headline}</h2>;\n\t\t\tcase 3: // if the headline is h2\n\t\t\t\treturn <h3 class=\"secondary-headline\">{headline}</h3>;\n\t\t\tcase 4: // if the headline is h3\n\t\t\t\treturn <h4 class=\"secondary-headline\">{headline}</h4>;\n\t\t\tcase 5: // if the headline is h4\n\t\t\t\treturn <h5 class=\"secondary-headline\">{headline}</h5>;\n\t\t\tcase 6: // if the headline is h5\n\t\t\t\treturn <h6 class=\"secondary-headline\">{headline}</h6>;\n\t\t\tdefault: // if the headline is h6\n\t\t\t\treturn <strong class=\"secondary-headline\">{headline}</strong>;\n\t\t}\n\t};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t{typeof this.state._secondaryHeadline === 'string' && this.state._secondaryHeadline.length > 0 ? (\n\t\t\t\t\t<hgroup>\n\t\t\t\t\t\t{this.renderHeadline(this.state._label, this.state._level)}\n\t\t\t\t\t\t{this.state._secondaryHeadline && this.renderSecondaryHeadline(this.state._secondaryHeadline, this.state._level + 1)}\n\t\t\t\t\t</hgroup>\n\t\t\t\t) : (\n\t\t\t\t\tthis.renderHeadline(this.state._label, this.state._level)\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{proxyCustomElement,HTMLElement as HTMLElement$1,h,Host}from"@stencil/core/internal/client";import{w as watchTooltipAlignment,d as defineCustomElement$1}from"./component.js";import{l as watchBoolean,t as setEventTarget,K as KoliBriDevHelper,v as getExperimalMode,d as devHint,a as watchValidator,n as nonce,x as propagateFocus,y as devWarning,z as mapStringOrBoolean2String,A as mapBoolean2String,w as watchString,B as a11yHintDisabled,q as setState}from"./prop.validators.js";import{v as validateAriaLabelWithLabel,a as validateIcon,w as watchIconAlign,b as validateLabelWithAriaLabel,d as defineCustomElement$2}from"./component3.js";import{v as validateTabIndex}from"./tab-index.js";import{d as defineCustomElement$3}from"./component2.js";const validateAriaExpanded=(t,a)=>{watchBoolean(t,"_ariaExpanded",a)},validateDisabled=(t,a)=>{watchBoolean(t,"_disabled",a)},searchFormElement=t=>{for(getExperimalMode()&&(devHint("↓ Search form element start."),console.log(t));t instanceof HTMLElement&&"FORM"!==t.tagName&&"KOL-FORM"!==t.tagName;)t=t.parentElement instanceof HTMLElement?t.parentElement:t.parentNode instanceof ShadowRoot?t.parentNode.host:null,getExperimalMode()&&console.log(t);return getExperimalMode()&&devHint("↑ Search form element finished."),t},propagateResetEventToForm=(t={})=>{const a=searchFormElement(t.form);if(a instanceof HTMLElement){const t=new Event("reset",{bubbles:!0,cancelable:!0});if("FORM"===a.tagName)setEventTarget(t,a),a.dispatchEvent(t);else if("KOL-FORM"===a.tagName){setEventTarget(t,KoliBriDevHelper.querySelector("form",a));const e=a;"object"==typeof e._on&&null!==typeof e._on&&"function"==typeof e._on.onReset&&e._on.onReset(t)}}},propagateSubmitEventToForm=(t={})=>{const a=searchFormElement(t.form);if(a instanceof HTMLElement){const t=new SubmitEvent("submit",{bubbles:!0,cancelable:!0,submitter:a});if("FORM"===a.tagName)setEventTarget(t,a),a.dispatchEvent(t);else if("KOL-FORM"===a.tagName){setEventTarget(t,KoliBriDevHelper.querySelector("form",a));const e=a;"object"==typeof e._on&&null!==typeof e._on&&"function"==typeof e._on.onSubmit&&e._on.onSubmit(t)}}},watchButtonType=(t,a,e)=>{watchValidator(t,a,(t=>"button"===t||"reset"===t||"submit"===t),new Set(["KoliBriButtonType {button, reset, submit}"]),e)},watchButtonVariant=(t,a,e)=>{watchValidator(t,a,(t=>"primary"===t||"secondary"===t||"normal"===t||"danger"===t||"ghost"===t||"custom"===t),new Set(["KoliBriButtonVariant {primary, secondary, normal, danger, ghost, custom}"]),e,{defaultValue:"normal"})},KolButtonWc=proxyCustomElement(class extends HTMLElement$1{constructor(){super(),this.__registerHost(),this.nonce=nonce(),this.catchRef=t=>{this.ref=t,propagateFocus(this.host,this.ref)},this.onClick=t=>{var a,e;"submit"===this.state._type?propagateSubmitEventToForm({form:this.host,ref:this.ref}):"reset"===this.state._type?propagateResetEventToForm({form:this.host,ref:this.ref}):"function"==typeof(null===(a=this.state._on)||void 0===a?void 0:a.onClick)?(t.stopPropagation(),setEventTarget(t,this.ref),null===(e=this.state._on)||void 0===e||e.onClick(t,this.state._value)):devWarning("There was no button click callback configured! (_on.onClick)")},this._accessKey=void 0,this._ariaControls=void 0,this._ariaCurrent=void 0,this._ariaExpanded=void 0,this._ariaLabel=void 0,this._ariaSelected=void 0,this._customClass=void 0,this._disabled=!1,this._icon=void 0,this._iconAlign=void 0,this._iconOnly=!1,this._id=void 0,this._label=void 0,this._on=void 0,this._role=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._type="button",this._value=void 0,this._variant="normal",this.state={_icon:{},_label:"…",_on:{},_type:"button",_variant:"normal"}}render(){return h(Host,null,h("button",Object.assign({ref:this.catchRef,accessKey:this.state._accessKey,"aria-controls":this.state._ariaControls,"aria-current":mapStringOrBoolean2String(this.state._ariaCurrent),"aria-expanded":mapBoolean2String(this.state._ariaExpanded),"aria-label":!1===this.state._iconOnly?this.state._ariaLabel:void 0,"aria-labelledby":!0===this.state._iconOnly?this.nonce:void 0,"aria-selected":mapStringOrBoolean2String(this.state._ariaSelected),class:{[this.state._variant]:"custom"!==this.state._variant,[this.state._customClass]:"custom"===this.state._variant&&"string"==typeof this.state._customClass&&this.state._customClass.length>0,"icon-only":!0===this.state._iconOnly},disabled:this.state._disabled,id:this.state._id},this.state._on,{onClick:this.onClick,role:this.state._role,tabIndex:this.state._tabIndex,type:this.state._type}),h("kol-span-wc",{_icon:this._icon,_iconOnly:this._iconOnly,_label:this.state._label},h("slot",{name:"expert",slot:"expert"}))),!0===this.state._iconOnly&&h("kol-tooltip",{"aria-hidden":"true",_align:this.state._tooltipAlign,_id:this.nonce,_label:this.state._ariaLabel||this.state._label}))}validateAccessKey(t){watchString(this,"_accessKey",t)}validateAriaControls(t){watchString(this,"_ariaControls",t)}validateAriaCurrent(t){watchValidator(this,"_ariaControls",(t=>!0===t||"date"===t||"location"===t||"page"===t||"step"===t||"time"===t),new Set(["boolean","String {data, location, page, step, time}"]),t)}validateAriaExpanded(t){validateAriaExpanded(this,t)}validateAriaLabel(t){validateAriaLabelWithLabel(this,t)}validateAriaSelected(t){watchBoolean(this,"_ariaSelected",t)}validateCustomClass(t){watchString(this,"_customClass",t,{defaultValue:void 0})}validateDisabled(t){validateDisabled(this,t),!0===t&&a11yHintDisabled()}validateIcon(t){validateIcon(this,t)}validateIconAlign(t){watchIconAlign(this,t)}validateIconOnly(t){watchBoolean(this,"_iconOnly",t,{defaultValue:!1})}validateId(t){watchString(this,"_id",t)}validateLabel(t){validateLabelWithAriaLabel(this,t)}validateOn(t){"object"==typeof t&&null!==t&&(this.state=Object.assign(Object.assign({},this.state),{_on:t}))}validateRole(t){watchString(this,"_role",t)}validateTabIndex(t){validateTabIndex(this,t)}validateTooltipAlign(t){watchTooltipAlignment(this,"_tooltipAlign",t)}validateType(t){watchButtonType(this,"_type",t)}validateValue(t){setState(this,"_value",t)}validateVariant(t){watchButtonVariant(this,"_variant",t)}componentWillLoad(){this.validateAccessKey(this._accessKey),this.validateAriaControls(this._ariaControls),this.validateAriaCurrent(this._ariaCurrent),this.validateAriaExpanded(this._ariaExpanded),this.validateAriaLabel(this._ariaLabel),this.validateAriaSelected(this._ariaSelected),this.validateCustomClass(this._customClass),this.validateDisabled(this._disabled),this.validateIcon(this._icon),this.validateIconAlign(this._iconAlign),this.validateIconOnly(this._iconOnly),this.validateId(this._id),this.validateLabel(this._label),this.validateOn(this._on),this.validateRole(this._role),this.validateTabIndex(this._tabIndex),this.validateTooltipAlign(this._tooltipAlign),this.validateType(this._type),this.validateValue(this._value),this.validateVariant(this._variant)}get host(){return this}static get watchers(){return{_accessKey:["validateAccessKey"],_ariaControls:["validateAriaControls"],_ariaCurrent:["validateAriaCurrent"],_ariaExpanded:["validateAriaExpanded"],_ariaLabel:["validateAriaLabel"],_ariaSelected:["validateAriaSelected"],_customClass:["validateCustomClass"],_disabled:["validateDisabled"],_icon:["validateIcon"],_iconAlign:["validateIconAlign"],_iconOnly:["validateIconOnly"],_id:["validateId"],_label:["validateLabel"],_on:["validateOn"],_role:["validateRole"],_tabIndex:["validateTabIndex"],_tooltipAlign:["validateTooltipAlign"],_type:["validateType"],_value:["validateValue"],_variant:["validateVariant"]}}},[4,"kol-button-wc",{_accessKey:[1,"_access-key"],_ariaControls:[1,"_aria-controls"],_ariaCurrent:[8,"_aria-current"],_ariaExpanded:[516,"_aria-expanded"],_ariaLabel:[1025,"_aria-label"],_ariaSelected:[516,"_aria-selected"],_customClass:[1,"_custom-class"],_disabled:[516],_icon:[1],_iconAlign:[1,"_icon-align"],_iconOnly:[516,"_icon-only"],_id:[1],_label:[1025],_on:[16],_role:[1],_tabIndex:[2,"_tab-index"],_tooltipAlign:[1,"_tooltip-align"],_type:[1],_value:[16],_variant:[1],state:[32]}]);function defineCustomElement(){if("undefined"==typeof customElements)return;["kol-button-wc","kol-icon","kol-span-wc","kol-tooltip"].forEach((t=>{switch(t){case"kol-button-wc":customElements.get(t)||customElements.define(t,KolButtonWc);break;case"kol-icon":customElements.get(t)||defineCustomElement$3();break;case"kol-span-wc":customElements.get(t)||defineCustomElement$2();break;case"kol-tooltip":customElements.get(t)||defineCustomElement$1()}}))}export{KolButtonWc as K,validateDisabled as a,watchButtonType as b,defineCustomElement as d,propagateSubmitEventToForm as p,validateAriaExpanded as v,watchButtonVariant as w};
4
+ import{proxyCustomElement,HTMLElement as HTMLElement$1,h,Host}from"@stencil/core/internal/client";import{w as watchTooltipAlignment,d as defineCustomElement$1}from"./component.js";import{v as validateAriaControls,a as validateAriaCurrent,b as validateTabIndex}from"./tab-index.js";import{f as watchBoolean,q as setEventTarget,K as KoliBriDevHelper,t as getExperimentalMode,d as devHint,w as watchValidator,n as nonce,v as propagateFocus,x as devWarning,y as mapStringOrBoolean2String,z as mapBoolean2String,a as watchString,A as a11yHintDisabled,m as setState}from"./prop.validators.js";import{v as validateHideLabel,a as validateIcon,w as watchIconAlign,d as defineCustomElement$2}from"./component3.js";import{a as validateLabelWithExpertSlot}from"./label.js";import{d as defineCustomElement$3}from"./component2.js";const validateAriaExpanded=(t,e)=>{watchBoolean(t,"_ariaExpanded",e)},validateDisabled=(t,e)=>{watchBoolean(t,"_disabled",e)};function createKoliBriEvent(t,e){const a=new CustomEvent(`kol-${t}`,{bubbles:!0,cancelable:!0,composed:!0,detail:e});return console.log("createKoliBriEvent",t,e,"=>",a),a}function dispatchKoliBriEvent(t,e,a){const i=t.dispatchEvent(createKoliBriEvent(e,a));return console.log("dispatchKoliBriEvent",t,e,a,"=>",i),i}const searchFormElement=t=>{for(getExperimentalMode()&&(devHint("↓ Search form element start."),console.log(t));t instanceof HTMLElement&&"FORM"!==t.tagName&&"KOL-FORM"!==t.tagName;)t=t.parentElement instanceof HTMLElement?t.parentElement:t.parentNode instanceof ShadowRoot?t.parentNode.host:null,getExperimentalMode()&&console.log(t);return getExperimentalMode()&&devHint("↑ Search form element finished."),t},propagateResetEventToForm=(t={})=>{var e,a;const i=searchFormElement(t.form);if(i instanceof HTMLElement){const t=new Event("reset",{bubbles:!0,cancelable:!0});if("FORM"===i.tagName)setEventTarget(t,i),i.dispatchEvent(t);else if("KOL-FORM"===i.tagName){setEventTarget(t,KoliBriDevHelper.querySelector("form",i));const s=i;"function"==typeof(null===(e=s._on)||void 0===e?void 0:e.onReset)&&(null===(a=s._on)||void 0===a||a.onReset(t))}}},propagateSubmitEventToForm=(t={})=>{var e,a;const i=searchFormElement(t.form);if(i instanceof HTMLElement){const t=new SubmitEvent("submit",{bubbles:!0,cancelable:!0,submitter:i});if("FORM"===i.tagName)setEventTarget(t,i),i.dispatchEvent(t);else if("KOL-FORM"===i.tagName){setEventTarget(t,KoliBriDevHelper.querySelector("form",i));const s=i;"function"==typeof(null===(e=s._on)||void 0===e?void 0:e.onSubmit)&&(null===(a=s._on)||void 0===a||a.onSubmit(t))}}},watchButtonType=(t,e,a)=>{watchValidator(t,e,(t=>"button"===t||"reset"===t||"submit"===t),new Set(["KoliBriButtonType {button, reset, submit}"]),a)},watchButtonVariant=(t,e,a)=>{watchValidator(t,e,(t=>"primary"===t||"secondary"===t||"normal"===t||"danger"===t||"ghost"===t||"custom"===t),new Set(["KoliBriButtonVariant {primary, secondary, normal, danger, ghost, custom}"]),a,{defaultValue:"normal"})},KolButtonWc=proxyCustomElement(class extends HTMLElement$1{constructor(){super(),this.__registerHost(),this.nonce=nonce(),this.catchRef=t=>{this.ref=t,propagateFocus(this.host,this.ref)},this.onClick=t=>{var e,a;"submit"===this.state._type?propagateSubmitEventToForm({form:this.host,ref:this.ref}):"reset"===this.state._type?propagateResetEventToForm({form:this.host,ref:this.ref}):(t.preventDefault(),t.stopPropagation(),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onClick)?(setEventTarget(t,this.ref),null===(a=this.state._on)||void 0===a||a.onClick(t,this.state._value)):(console.log("dispatchKoliBriEvent",this.host,"click",this.state._value),this.host&&dispatchKoliBriEvent(this.host,"click",this.state._value),devWarning("There was no button click callback configured! (_on.onClick)")))},this._accessKey=void 0,this._ariaControls=void 0,this._ariaCurrent=void 0,this._ariaExpanded=void 0,this._ariaLabel=void 0,this._ariaSelected=void 0,this._customClass=void 0,this._disabled=!1,this._hideLabel=!1,this._icon=void 0,this._iconAlign=void 0,this._iconOnly=void 0,this._id=void 0,this._label=void 0,this._on=void 0,this._role=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._type="button",this._value=void 0,this._variant="normal",this.state={_icon:{},_label:!1,_on:{},_type:"button",_variant:"normal"}}render(){const t=!1===this.state._label;return h(Host,null,h("button",Object.assign({ref:this.catchRef,accessKey:this.state._accessKey,"aria-controls":this.state._ariaControls,"aria-current":mapStringOrBoolean2String(this.state._ariaCurrent),"aria-expanded":mapBoolean2String(this.state._ariaExpanded),"aria-labelledby":this.state._hideLabel?this.nonce:void 0,"aria-selected":mapStringOrBoolean2String(this.state._ariaSelected),class:{[this.state._variant]:"custom"!==this.state._variant,[this.state._customClass]:"custom"===this.state._variant&&"string"==typeof this.state._customClass&&this.state._customClass.length>0,"icon-only":!0===this.state._hideLabel,"hide-label":!0===this.state._hideLabel},disabled:this.state._disabled,id:this.state._id},this.state._on,{onClick:this.onClick,role:this.state._role,tabIndex:this.state._tabIndex,type:this.state._type}),h("kol-span-wc",{_icon:this.state._icon,_hideLabel:this.state._hideLabel,_label:!t&&this.state._label},h("slot",{name:"expert",slot:"expert"}))),h("kol-tooltip",{"aria-hidden":"true",hidden:t||!this.state._hideLabel,_align:this.state._tooltipAlign,_id:this.nonce,_label:"string"==typeof this.state._label?this.state._label:""}))}validateAccessKey(t){watchString(this,"_accessKey",t)}validateAriaControls(t){validateAriaControls(this,t)}validateAriaCurrent(t){validateAriaCurrent(this,t)}validateAriaExpanded(t){validateAriaExpanded(this,t)}validateAriaLabel(t){this.validateLabel(t)}validateAriaSelected(t){watchBoolean(this,"_ariaSelected",t)}validateCustomClass(t){watchString(this,"_customClass",t,{defaultValue:void 0})}validateDisabled(t){validateDisabled(this,t),!0===t&&a11yHintDisabled()}validateHideLabel(t){validateHideLabel(this,t)}validateIcon(t){validateIcon(this,t)}validateIconAlign(t){watchIconAlign(this,t)}validateIconOnly(t){this.validateHideLabel(t)}validateId(t){watchString(this,"_id",t)}validateLabel(t){validateLabelWithExpertSlot(this,t)}validateOn(t){"object"==typeof t&&null!==t&&(this.state=Object.assign(Object.assign({},this.state),{_on:t}))}validateRole(t){watchString(this,"_role",t)}validateTabIndex(t){validateTabIndex(this,t)}validateTooltipAlign(t){watchTooltipAlignment(this,"_tooltipAlign",t)}validateType(t){watchButtonType(this,"_type",t)}validateValue(t){setState(this,"_value",t)}validateVariant(t){watchButtonVariant(this,"_variant",t)}componentWillLoad(){this.validateAccessKey(this._accessKey),this.validateAriaControls(this._ariaControls),this.validateAriaCurrent(this._ariaCurrent),this.validateAriaExpanded(this._ariaExpanded),this.validateAriaSelected(this._ariaSelected),this.validateCustomClass(this._customClass),this.validateDisabled(this._disabled),this.validateHideLabel(this._hideLabel||this._iconOnly),this.validateIcon(this._icon),this.validateIconAlign(this._iconAlign),this.validateId(this._id),this.validateLabel(this._label||this._ariaLabel),this.validateOn(this._on),this.validateRole(this._role),this.validateTabIndex(this._tabIndex),this.validateTooltipAlign(this._tooltipAlign),this.validateType(this._type),this.validateValue(this._value),this.validateVariant(this._variant)}get host(){return this}static get watchers(){return{_accessKey:["validateAccessKey"],_ariaControls:["validateAriaControls"],_ariaCurrent:["validateAriaCurrent"],_ariaExpanded:["validateAriaExpanded"],_ariaLabel:["validateAriaLabel"],_ariaSelected:["validateAriaSelected"],_customClass:["validateCustomClass"],_disabled:["validateDisabled"],_hideLabel:["validateHideLabel"],_icon:["validateIcon"],_iconAlign:["validateIconAlign"],_iconOnly:["validateIconOnly"],_id:["validateId"],_label:["validateLabel"],_on:["validateOn"],_role:["validateRole"],_tabIndex:["validateTabIndex"],_tooltipAlign:["validateTooltipAlign"],_type:["validateType"],_value:["validateValue"],_variant:["validateVariant"]}}},[4,"kol-button-wc",{_accessKey:[1,"_access-key"],_ariaControls:[1,"_aria-controls"],_ariaCurrent:[8,"_aria-current"],_ariaExpanded:[4,"_aria-expanded"],_ariaLabel:[1,"_aria-label"],_ariaSelected:[4,"_aria-selected"],_customClass:[1,"_custom-class"],_disabled:[4],_hideLabel:[4,"_hide-label"],_icon:[1],_iconAlign:[1,"_icon-align"],_iconOnly:[4,"_icon-only"],_id:[1],_label:[8],_on:[16],_role:[1],_tabIndex:[2,"_tab-index"],_tooltipAlign:[1,"_tooltip-align"],_type:[1],_value:[8],_variant:[1],state:[32]}]);function defineCustomElement(){if("undefined"==typeof customElements)return;["kol-button-wc","kol-icon","kol-span-wc","kol-tooltip"].forEach((t=>{switch(t){case"kol-button-wc":customElements.get(t)||customElements.define(t,KolButtonWc);break;case"kol-icon":customElements.get(t)||defineCustomElement$3();break;case"kol-span-wc":customElements.get(t)||defineCustomElement$2();break;case"kol-tooltip":customElements.get(t)||defineCustomElement$1()}}))}export{KolButtonWc as K,dispatchKoliBriEvent as a,validateDisabled as b,watchButtonType as c,defineCustomElement as d,propagateSubmitEventToForm as p,validateAriaExpanded as v,watchButtonVariant as w};