@public-ui/components 2.0.0-rc.9 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1251) hide show
  1. package/custom-elements.json +132 -44
  2. package/dist/cjs/{InternalUnderlinedAccessKey-1daef254.js → InternalUnderlinedAccessKey-db20fe4c.js} +1 -1
  3. package/dist/cjs/{InternalUnderlinedAccessKey-1daef254.js.map → InternalUnderlinedAccessKey-db20fe4c.js.map} +1 -1
  4. package/dist/cjs/{a11y.tipps-66b901eb.js → a11y.tipps-5093e030.js} +1 -1
  5. package/dist/cjs/{a11y.tipps-66b901eb.js.map → a11y.tipps-5093e030.js.map} +1 -1
  6. package/dist/cjs/access-key-08e22c70.js +4 -0
  7. package/dist/cjs/access-key-08e22c70.js.map +1 -0
  8. package/dist/cjs/{align-floating-elements-01d5ad38.js → align-floating-elements-dca98687.js} +1 -1
  9. package/dist/cjs/align-floating-elements-dca98687.js.map +1 -0
  10. package/dist/cjs/{alignment-f93afb43.js → alignment-da95c567.js} +1 -1
  11. package/dist/cjs/alignment-da95c567.js.map +1 -0
  12. package/dist/cjs/alternative-button-link-role-46c7e9ff.js +4 -0
  13. package/dist/cjs/alternative-button-link-role-46c7e9ff.js.map +1 -0
  14. package/dist/cjs/app-globals-dbba0fd7.js +4 -0
  15. package/dist/cjs/app-globals-dbba0fd7.js.map +1 -0
  16. package/dist/cjs/ariaCurrentService-53afa476.js +4 -0
  17. package/dist/cjs/ariaCurrentService-53afa476.js.map +1 -0
  18. package/dist/cjs/{associated.controller-ea7c9a34.js → associated.controller-665c978d.js} +1 -1
  19. package/dist/cjs/associated.controller-665c978d.js.map +1 -0
  20. package/dist/cjs/{bund-f5184e9e.js.map → bund-4be96755.js.map} +1 -1
  21. package/dist/cjs/{color-20a8ea11.js → color-f3eb202a.js} +1 -1
  22. package/dist/cjs/color-f3eb202a.js.map +1 -0
  23. package/dist/cjs/{controller-20760a3a.js → controller-318aaac7.js} +1 -1
  24. package/dist/cjs/controller-318aaac7.js.map +1 -0
  25. package/dist/cjs/{controller-8a029669.js → controller-3a053b42.js} +1 -1
  26. package/dist/cjs/controller-3a053b42.js.map +1 -0
  27. package/dist/cjs/controller-5a5b8671.js +4 -0
  28. package/dist/cjs/controller-5a5b8671.js.map +1 -0
  29. package/dist/cjs/controller-644ec366.js +4 -0
  30. package/dist/cjs/controller-644ec366.js.map +1 -0
  31. package/dist/cjs/controller-8f3bdef3.js +4 -0
  32. package/dist/cjs/controller-8f3bdef3.js.map +1 -0
  33. package/dist/cjs/{controller-icon-aeb3e728.js → controller-icon-870a91fe.js} +1 -1
  34. package/dist/cjs/controller-icon-870a91fe.js.map +1 -0
  35. package/dist/cjs/custom-class-fe018ec9.js +4 -0
  36. package/dist/cjs/custom-class-fe018ec9.js.map +1 -0
  37. package/dist/cjs/{details-synced-open-state-01d46fbc.js.map → details-synced-open-state-e88811c7.js.map} +1 -1
  38. package/dist/cjs/dev.utils-dd133f0a.js +4 -0
  39. package/dist/cjs/dev.utils-dd133f0a.js.map +1 -0
  40. package/dist/cjs/{devtools-63f43f2c.js → devtools-59e9f930.js} +1 -1
  41. package/dist/cjs/devtools-59e9f930.js.map +1 -0
  42. package/dist/cjs/{events-a0c291ce.js.map → events-e348a615.js.map} +1 -1
  43. package/dist/cjs/has-closer-e0792c7f.js +4 -0
  44. package/dist/cjs/has-closer-e0792c7f.js.map +1 -0
  45. package/dist/cjs/hide-label-69a12ef6.js +4 -0
  46. package/dist/cjs/hide-label-69a12ef6.js.map +1 -0
  47. package/dist/cjs/i18n-9b1797b5.js +4 -0
  48. package/dist/cjs/i18n-9b1797b5.js.map +1 -0
  49. package/dist/cjs/{icons-29e6ea06.js → icons-7d782feb.js} +1 -1
  50. package/dist/cjs/icons-7d782feb.js.map +1 -0
  51. package/dist/cjs/image-source-9b7df5ba.js +4 -0
  52. package/dist/cjs/image-source-9b7df5ba.js.map +1 -0
  53. package/dist/cjs/index-759bf886.js +4 -0
  54. package/dist/cjs/{index-07f69fb0.js.map → index-759bf886.js.map} +1 -1
  55. package/dist/cjs/index-814a048a.js +4 -0
  56. package/dist/cjs/index-814a048a.js.map +1 -0
  57. package/dist/cjs/index-de77e597.js +5 -0
  58. package/dist/cjs/index-de77e597.js.map +1 -0
  59. package/dist/cjs/index.cjs.js +1 -1
  60. package/dist/cjs/index.cjs.js.map +1 -1
  61. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  62. package/dist/cjs/kol-abbr.cjs.entry.js.map +1 -1
  63. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  64. package/dist/cjs/kol-accordion.cjs.entry.js.map +1 -1
  65. package/dist/cjs/kol-alert-wc_2.cjs.entry.js +1 -1
  66. package/dist/cjs/kol-alert-wc_2.cjs.entry.js.map +1 -1
  67. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  68. package/dist/cjs/kol-alert.cjs.entry.js.map +1 -1
  69. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-avatar-wc.cjs.entry.js.map +1 -1
  71. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-avatar.cjs.entry.js.map +1 -1
  73. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  74. package/dist/cjs/kol-badge.cjs.entry.js.map +1 -1
  75. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-breadcrumb.cjs.entry.js.map +1 -1
  77. package/dist/cjs/kol-button-group-wc.cjs.entry.js +1 -1
  78. package/dist/cjs/kol-button-group-wc.cjs.entry.js.map +1 -1
  79. package/dist/cjs/kol-button-group.cjs.entry.js +1 -1
  80. package/dist/cjs/kol-button-group.cjs.entry.js.map +1 -1
  81. package/dist/cjs/kol-button-link-text-switch.cjs.entry.js +1 -1
  82. package/dist/cjs/kol-button-link-text-switch.cjs.entry.js.map +1 -1
  83. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  84. package/dist/cjs/kol-button-link.cjs.entry.js.map +1 -1
  85. package/dist/cjs/kol-button-wc_2.cjs.entry.js +1 -1
  86. package/dist/cjs/kol-button-wc_2.cjs.entry.js.map +1 -1
  87. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  88. package/dist/cjs/kol-button.cjs.entry.js.map +1 -1
  89. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  90. package/dist/cjs/kol-card.cjs.entry.js.map +1 -1
  91. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-details.cjs.entry.js.map +1 -1
  93. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  94. package/dist/cjs/kol-form.cjs.entry.js.map +1 -1
  95. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  96. package/dist/cjs/kol-heading.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-checkbox.cjs.entry.js +1 -1
  104. package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
  105. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  106. package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
  107. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  108. package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
  109. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  110. package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
  111. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  112. package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
  113. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  114. package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
  115. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  116. package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
  117. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  118. package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
  119. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  120. package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
  121. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  122. package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
  123. package/dist/cjs/kol-input.cjs.entry.js +1 -1
  124. package/dist/cjs/kol-input.cjs.entry.js.map +1 -1
  125. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  126. package/dist/cjs/kol-kolibri.cjs.entry.js.map +1 -1
  127. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  128. package/dist/cjs/kol-link-button.cjs.entry.js.map +1 -1
  129. package/dist/cjs/kol-link-group.cjs.entry.js +1 -1
  130. package/dist/cjs/kol-link-group.cjs.entry.js.map +1 -1
  131. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  132. package/dist/cjs/kol-link-wc.cjs.entry.js.map +1 -1
  133. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  134. package/dist/cjs/kol-link.cjs.entry.js.map +1 -1
  135. package/dist/cjs/kol-logo.cjs.entry.js +1 -1
  136. package/dist/cjs/kol-logo.cjs.entry.js.map +1 -1
  137. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  138. package/dist/cjs/kol-modal.cjs.entry.js.map +1 -1
  139. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  140. package/dist/cjs/kol-nav.cjs.entry.js.map +1 -1
  141. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  142. package/dist/cjs/kol-pagination.cjs.entry.js.map +1 -1
  143. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  144. package/dist/cjs/kol-popover-wc.cjs.entry.js.map +1 -1
  145. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  146. package/dist/cjs/kol-progress.cjs.entry.js.map +1 -1
  147. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  148. package/dist/cjs/kol-quote.cjs.entry.js.map +1 -1
  149. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  150. package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
  151. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  152. package/dist/cjs/kol-skip-nav.cjs.entry.js.map +1 -1
  153. package/dist/cjs/kol-span-wc.cjs.entry.js +1 -1
  154. package/dist/cjs/kol-span-wc.cjs.entry.js.map +1 -1
  155. package/dist/cjs/kol-span.cjs.entry.js +1 -1
  156. package/dist/cjs/kol-span.cjs.entry.js.map +1 -1
  157. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  158. package/dist/cjs/kol-spin.cjs.entry.js.map +1 -1
  159. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  160. package/dist/cjs/kol-split-button.cjs.entry.js.map +1 -1
  161. package/dist/cjs/kol-symbol.cjs.entry.js +1 -1
  162. package/dist/cjs/kol-symbol.cjs.entry.js.map +1 -1
  163. package/dist/cjs/kol-table.cjs.entry.js +1 -1
  164. package/dist/cjs/kol-table.cjs.entry.js.map +1 -1
  165. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  166. package/dist/cjs/kol-tabs.cjs.entry.js.map +1 -1
  167. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  168. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  169. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  170. package/dist/cjs/kol-toast-container.cjs.entry.js.map +1 -1
  171. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  172. package/dist/cjs/kol-version.cjs.entry.js.map +1 -1
  173. package/dist/cjs/kolibri.cjs.js +1 -1
  174. package/dist/cjs/kolibri.cjs.js.map +1 -1
  175. package/dist/cjs/{label-66a72f53.js → label-1ffb616a.js} +1 -1
  176. package/dist/cjs/label-1ffb616a.js.map +1 -0
  177. package/dist/cjs/loader.cjs.js +1 -1
  178. package/dist/cjs/open-4fe1ba4b.js +4 -0
  179. package/dist/cjs/open-4fe1ba4b.js.map +1 -0
  180. package/dist/cjs/prop.validators-85dcd797.js +4 -0
  181. package/dist/cjs/prop.validators-85dcd797.js.map +1 -0
  182. package/dist/cjs/reprod-accordion-does-not-toggle-with-open-092e559d.js.map +1 -0
  183. package/dist/cjs/reuse-a4c8450e.js.map +1 -0
  184. package/dist/cjs/rows-e1b2cbc4.js +4 -0
  185. package/dist/cjs/rows-e1b2cbc4.js.map +1 -0
  186. package/dist/cjs/show-5514164d.js +4 -0
  187. package/dist/cjs/show-5514164d.js.map +1 -0
  188. package/dist/cjs/{suggestions-d3601151.js → suggestions-c6f511ef.js} +1 -1
  189. package/dist/cjs/suggestions-c6f511ef.js.map +1 -0
  190. package/dist/cjs/{tab-index-93d08e52.js → tab-index-9a2f9acd.js} +1 -1
  191. package/dist/cjs/tab-index-9a2f9acd.js.map +1 -0
  192. package/dist/cjs/toaster-29a344ee.js +4 -0
  193. package/dist/cjs/toaster-29a344ee.js.map +1 -0
  194. package/dist/cjs/{toaster-e3a1416c.js → toaster-693c93ec.js} +1 -1
  195. package/dist/cjs/{toaster-e3a1416c.js.map → toaster-693c93ec.js.map} +1 -1
  196. package/dist/cjs/{tooltip-align-650165f7.js → tooltip-align-231659b9.js} +1 -1
  197. package/dist/cjs/tooltip-align-231659b9.js.map +1 -0
  198. package/dist/cjs/{unique-nav-labels-9784a4c5.js.map → unique-nav-labels-363e1d71.js.map} +1 -1
  199. package/dist/cjs/{validation-0c023741.js → validation-fb5cac9f.js} +1 -1
  200. package/dist/cjs/validation-fb5cac9f.js.map +1 -0
  201. package/dist/cjs/{validation-0dc33189.js → validation-ffe8a5ab.js} +1 -1
  202. package/dist/cjs/validation-ffe8a5ab.js.map +1 -0
  203. package/dist/components/align-floating-elements.js.map +1 -1
  204. package/dist/components/ariaCurrentService.js +4 -0
  205. package/dist/components/ariaCurrentService.js.map +1 -0
  206. package/dist/components/bund.js.map +1 -1
  207. package/dist/components/color.js +1 -1
  208. package/dist/components/color.js.map +1 -1
  209. package/dist/components/component.js +1 -1
  210. package/dist/components/component.js.map +1 -1
  211. package/dist/components/component10.js.map +1 -1
  212. package/dist/components/component11.js.map +1 -1
  213. package/dist/components/component12.js +1 -1
  214. package/dist/components/component12.js.map +1 -1
  215. package/dist/components/component13.js +1 -1
  216. package/dist/components/component13.js.map +1 -1
  217. package/dist/components/component14.js +1 -1
  218. package/dist/components/component14.js.map +1 -1
  219. package/dist/components/component15.js +1 -1
  220. package/dist/components/component15.js.map +1 -1
  221. package/dist/components/component2.js +1 -1
  222. package/dist/components/component2.js.map +1 -1
  223. package/dist/components/component3.js +1 -1
  224. package/dist/components/component3.js.map +1 -1
  225. package/dist/components/component4.js +1 -1
  226. package/dist/components/component4.js.map +1 -1
  227. package/dist/components/component5.js +1 -1
  228. package/dist/components/component5.js.map +1 -1
  229. package/dist/components/component6.js +1 -1
  230. package/dist/components/component6.js.map +1 -1
  231. package/dist/components/component7.js +1 -1
  232. package/dist/components/component7.js.map +1 -1
  233. package/dist/components/component8.js +1 -1
  234. package/dist/components/component8.js.map +1 -1
  235. package/dist/components/component9.js +1 -1
  236. package/dist/components/component9.js.map +1 -1
  237. package/dist/components/controller-icon.js +1 -1
  238. package/dist/components/controller-icon.js.map +1 -1
  239. package/dist/components/controller.js +1 -1
  240. package/dist/components/controller.js.map +1 -1
  241. package/dist/components/controller2.js +1 -1
  242. package/dist/components/controller2.js.map +1 -1
  243. package/dist/components/controller3.js +1 -1
  244. package/dist/components/controller3.js.map +1 -1
  245. package/dist/components/controller4.js +1 -1
  246. package/dist/components/controller4.js.map +1 -1
  247. package/dist/components/details-synced-open-state.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/events.js.map +1 -1
  251. package/dist/components/has-closer.js +1 -1
  252. package/dist/components/has-closer.js.map +1 -1
  253. package/dist/components/i18n.js +1 -1
  254. package/dist/components/i18n.js.map +1 -1
  255. package/dist/components/image-source.js +1 -1
  256. package/dist/components/image-source.js.map +1 -1
  257. package/dist/components/index.js +1 -1
  258. package/dist/components/index.js.map +1 -1
  259. package/dist/components/index2.js.map +1 -1
  260. package/dist/components/kol-abbr.d.ts +2 -2
  261. package/dist/components/kol-abbr.js +1 -1
  262. package/dist/components/kol-abbr.js.map +1 -1
  263. package/dist/components/kol-accordion.d.ts +2 -2
  264. package/dist/components/kol-accordion.js +1 -1
  265. package/dist/components/kol-accordion.js.map +1 -1
  266. package/dist/components/kol-alert-wc.d.ts +2 -2
  267. package/dist/components/kol-alert.d.ts +2 -2
  268. package/dist/components/kol-avatar-wc.d.ts +2 -2
  269. package/dist/components/kol-avatar.d.ts +2 -2
  270. package/dist/components/kol-avatar.js +1 -1
  271. package/dist/components/kol-avatar.js.map +1 -1
  272. package/dist/components/kol-badge.d.ts +2 -2
  273. package/dist/components/kol-breadcrumb.d.ts +2 -2
  274. package/dist/components/kol-breadcrumb.js +1 -1
  275. package/dist/components/kol-breadcrumb.js.map +1 -1
  276. package/dist/components/kol-button-group-wc.d.ts +2 -2
  277. package/dist/components/kol-button-group.d.ts +2 -2
  278. package/dist/components/kol-button-group.js +1 -1
  279. package/dist/components/kol-button-group.js.map +1 -1
  280. package/dist/components/kol-button-link-text-switch.d.ts +2 -2
  281. package/dist/components/kol-button-link.d.ts +2 -2
  282. package/dist/components/kol-button-link.js +1 -1
  283. package/dist/components/kol-button-link.js.map +1 -1
  284. package/dist/components/kol-button-wc.d.ts +2 -2
  285. package/dist/components/kol-button.d.ts +2 -2
  286. package/dist/components/kol-card.d.ts +2 -2
  287. package/dist/components/kol-card.js +1 -1
  288. package/dist/components/kol-card.js.map +1 -1
  289. package/dist/components/kol-details.d.ts +2 -2
  290. package/dist/components/kol-details.js +1 -1
  291. package/dist/components/kol-details.js.map +1 -1
  292. package/dist/components/kol-form.d.ts +2 -2
  293. package/dist/components/kol-form.js +1 -1
  294. package/dist/components/kol-form.js.map +1 -1
  295. package/dist/components/kol-heading-wc.d.ts +2 -2
  296. package/dist/components/kol-heading.d.ts +2 -2
  297. package/dist/components/kol-heading.js +1 -1
  298. package/dist/components/kol-heading.js.map +1 -1
  299. package/dist/components/kol-icon.d.ts +2 -2
  300. package/dist/components/kol-image.d.ts +2 -2
  301. package/dist/components/kol-image.js +1 -1
  302. package/dist/components/kol-image.js.map +1 -1
  303. package/dist/components/kol-indented-text.d.ts +2 -2
  304. package/dist/components/kol-input-checkbox.d.ts +2 -2
  305. package/dist/components/kol-input-checkbox.js +1 -1
  306. package/dist/components/kol-input-checkbox.js.map +1 -1
  307. package/dist/components/kol-input-color.d.ts +2 -2
  308. package/dist/components/kol-input-color.js +1 -1
  309. package/dist/components/kol-input-color.js.map +1 -1
  310. package/dist/components/kol-input-date.d.ts +2 -2
  311. package/dist/components/kol-input-date.js +1 -1
  312. package/dist/components/kol-input-date.js.map +1 -1
  313. package/dist/components/kol-input-email.d.ts +2 -2
  314. package/dist/components/kol-input-email.js +1 -1
  315. package/dist/components/kol-input-email.js.map +1 -1
  316. package/dist/components/kol-input-file.d.ts +2 -2
  317. package/dist/components/kol-input-file.js +1 -1
  318. package/dist/components/kol-input-file.js.map +1 -1
  319. package/dist/components/kol-input-number.d.ts +2 -2
  320. package/dist/components/kol-input-number.js +1 -1
  321. package/dist/components/kol-input-number.js.map +1 -1
  322. package/dist/components/kol-input-password.d.ts +2 -2
  323. package/dist/components/kol-input-password.js +1 -1
  324. package/dist/components/kol-input-password.js.map +1 -1
  325. package/dist/components/kol-input-radio.d.ts +2 -2
  326. package/dist/components/kol-input-radio.js +1 -1
  327. package/dist/components/kol-input-radio.js.map +1 -1
  328. package/dist/components/kol-input-range.d.ts +2 -2
  329. package/dist/components/kol-input-range.js +1 -1
  330. package/dist/components/kol-input-range.js.map +1 -1
  331. package/dist/components/kol-input-text.d.ts +2 -2
  332. package/dist/components/kol-input-text.js +1 -1
  333. package/dist/components/kol-input-text.js.map +1 -1
  334. package/dist/components/kol-input.d.ts +2 -2
  335. package/dist/components/kol-kolibri.d.ts +2 -2
  336. package/dist/components/kol-kolibri.js +1 -1
  337. package/dist/components/kol-kolibri.js.map +1 -1
  338. package/dist/components/kol-link-button.d.ts +2 -2
  339. package/dist/components/kol-link-button.js +1 -1
  340. package/dist/components/kol-link-button.js.map +1 -1
  341. package/dist/components/kol-link-group.d.ts +2 -2
  342. package/dist/components/kol-link-group.js +1 -1
  343. package/dist/components/kol-link-group.js.map +1 -1
  344. package/dist/components/kol-link-wc.d.ts +2 -2
  345. package/dist/components/kol-link.d.ts +2 -2
  346. package/dist/components/kol-logo.d.ts +2 -2
  347. package/dist/components/kol-logo.js +1 -1
  348. package/dist/components/kol-logo.js.map +1 -1
  349. package/dist/components/kol-modal.d.ts +2 -2
  350. package/dist/components/kol-modal.js +1 -1
  351. package/dist/components/kol-modal.js.map +1 -1
  352. package/dist/components/kol-nav.d.ts +2 -2
  353. package/dist/components/kol-nav.js +1 -1
  354. package/dist/components/kol-nav.js.map +1 -1
  355. package/dist/components/kol-pagination.d.ts +2 -2
  356. package/dist/components/kol-popover-wc.d.ts +2 -2
  357. package/dist/components/kol-popover-wc.js +1 -1
  358. package/dist/components/kol-popover-wc.js.map +1 -1
  359. package/dist/components/kol-progress.d.ts +2 -2
  360. package/dist/components/kol-progress.js +1 -1
  361. package/dist/components/kol-progress.js.map +1 -1
  362. package/dist/components/kol-quote.d.ts +2 -2
  363. package/dist/components/kol-quote.js +1 -1
  364. package/dist/components/kol-quote.js.map +1 -1
  365. package/dist/components/kol-select.d.ts +2 -2
  366. package/dist/components/kol-skip-nav.d.ts +2 -2
  367. package/dist/components/kol-skip-nav.js +1 -1
  368. package/dist/components/kol-skip-nav.js.map +1 -1
  369. package/dist/components/kol-span-wc.d.ts +2 -2
  370. package/dist/components/kol-span.d.ts +2 -2
  371. package/dist/components/kol-span.js +1 -1
  372. package/dist/components/kol-span.js.map +1 -1
  373. package/dist/components/kol-spin.d.ts +2 -2
  374. package/dist/components/kol-spin.js +1 -1
  375. package/dist/components/kol-spin.js.map +1 -1
  376. package/dist/components/kol-split-button.d.ts +2 -2
  377. package/dist/components/kol-split-button.js +1 -1
  378. package/dist/components/kol-split-button.js.map +1 -1
  379. package/dist/components/kol-symbol.d.ts +2 -2
  380. package/dist/components/kol-symbol.js +1 -1
  381. package/dist/components/kol-symbol.js.map +1 -1
  382. package/dist/components/kol-table.d.ts +2 -2
  383. package/dist/components/kol-table.js +1 -1
  384. package/dist/components/kol-table.js.map +1 -1
  385. package/dist/components/kol-tabs.d.ts +2 -2
  386. package/dist/components/kol-tabs.js +1 -1
  387. package/dist/components/kol-tabs.js.map +1 -1
  388. package/dist/components/kol-textarea.d.ts +2 -2
  389. package/dist/components/kol-textarea.js +1 -1
  390. package/dist/components/kol-textarea.js.map +1 -1
  391. package/dist/components/kol-toast-container.d.ts +2 -2
  392. package/dist/components/kol-toast-container.js +1 -1
  393. package/dist/components/kol-toast-container.js.map +1 -1
  394. package/dist/components/kol-tooltip-wc.d.ts +2 -2
  395. package/dist/components/kol-version.d.ts +2 -2
  396. package/dist/components/kol-version.js +1 -1
  397. package/dist/components/kol-version.js.map +1 -1
  398. package/dist/components/label.js +1 -1
  399. package/dist/components/label.js.map +1 -1
  400. package/dist/components/open.js +1 -1
  401. package/dist/components/open.js.map +1 -1
  402. package/dist/components/prop.validators.js +1 -1
  403. package/dist/components/prop.validators.js.map +1 -1
  404. package/dist/components/reprod-accordion-does-not-toggle-with-open.js.map +1 -1
  405. package/dist/components/rows.js +1 -1
  406. package/dist/components/rows.js.map +1 -1
  407. package/dist/components/shadow.js +1 -1
  408. package/dist/components/shadow.js.map +1 -1
  409. package/dist/components/shadow2.js +1 -1
  410. package/dist/components/shadow2.js.map +1 -1
  411. package/dist/components/shadow3.js +1 -1
  412. package/dist/components/shadow3.js.map +1 -1
  413. package/dist/components/show.js +1 -1
  414. package/dist/components/show.js.map +1 -1
  415. package/dist/components/suggestions.js +1 -1
  416. package/dist/components/suggestions.js.map +1 -1
  417. package/dist/components/tab-index.js +1 -1
  418. package/dist/components/tab-index.js.map +1 -1
  419. package/dist/components/toaster.js.map +1 -1
  420. package/dist/components/tooltip-align.js.map +1 -1
  421. package/dist/components/unique-nav-labels.js.map +1 -1
  422. package/dist/components/validation.js +1 -1
  423. package/dist/components/validation.js.map +1 -1
  424. package/dist/esm/{InternalUnderlinedAccessKey-8b996006.js → InternalUnderlinedAccessKey-e3698cee.js} +1 -1
  425. package/dist/esm/{InternalUnderlinedAccessKey-8b996006.js.map → InternalUnderlinedAccessKey-e3698cee.js.map} +1 -1
  426. package/dist/esm/{a11y.tipps-db7fb79f.js → a11y.tipps-f367a979.js} +1 -1
  427. package/dist/esm/{a11y.tipps-db7fb79f.js.map → a11y.tipps-f367a979.js.map} +1 -1
  428. package/dist/esm/{access-key-878199ab.js → access-key-d70aa275.js} +1 -1
  429. package/dist/esm/access-key-d70aa275.js.map +1 -0
  430. package/dist/esm/{align-floating-elements-ebf0712d.js → align-floating-elements-cadb5c5b.js} +1 -1
  431. package/dist/esm/align-floating-elements-cadb5c5b.js.map +1 -0
  432. package/dist/esm/{alignment-40e15b6f.js → alignment-493b6c84.js} +1 -1
  433. package/dist/esm/alignment-493b6c84.js.map +1 -0
  434. package/dist/esm/alternative-button-link-role-0fc029bf.js +4 -0
  435. package/dist/esm/alternative-button-link-role-0fc029bf.js.map +1 -0
  436. package/dist/esm/app-globals-f7f4352c.js +4 -0
  437. package/dist/esm/app-globals-f7f4352c.js.map +1 -0
  438. package/dist/esm/ariaCurrentService-6fe36ebc.js +4 -0
  439. package/dist/esm/ariaCurrentService-6fe36ebc.js.map +1 -0
  440. package/dist/esm/{associated.controller-262c54a1.js → associated.controller-700d5133.js} +1 -1
  441. package/dist/esm/associated.controller-700d5133.js.map +1 -0
  442. package/dist/esm/{bund-056aa89a.js.map → bund-ad41b762.js.map} +1 -1
  443. package/dist/esm/{color-c062183a.js → color-afc2e34f.js} +1 -1
  444. package/dist/esm/color-afc2e34f.js.map +1 -0
  445. package/dist/esm/controller-17eb7878.js +4 -0
  446. package/dist/esm/controller-17eb7878.js.map +1 -0
  447. package/dist/esm/controller-60b830eb.js +4 -0
  448. package/dist/esm/controller-60b830eb.js.map +1 -0
  449. package/dist/esm/controller-6e772d91.js +4 -0
  450. package/dist/esm/controller-6e772d91.js.map +1 -0
  451. package/dist/esm/controller-ae07d1c7.js +4 -0
  452. package/dist/esm/controller-ae07d1c7.js.map +1 -0
  453. package/dist/esm/{controller-18ea7b97.js → controller-e23535f2.js} +1 -1
  454. package/dist/esm/controller-e23535f2.js.map +1 -0
  455. package/dist/esm/{controller-icon-c6452eb6.js → controller-icon-01cabd99.js} +1 -1
  456. package/dist/esm/controller-icon-01cabd99.js.map +1 -0
  457. package/dist/esm/custom-class-603a7fda.js +4 -0
  458. package/dist/esm/custom-class-603a7fda.js.map +1 -0
  459. package/dist/esm/{details-synced-open-state-66c07ea5.js.map → details-synced-open-state-45ecc035.js.map} +1 -1
  460. package/dist/esm/dev.utils-da51d5d8.js +4 -0
  461. package/dist/esm/dev.utils-da51d5d8.js.map +1 -0
  462. package/dist/esm/{devtools-7e61d88e.js → devtools-308d0386.js} +1 -1
  463. package/dist/esm/devtools-308d0386.js.map +1 -0
  464. package/dist/esm/{events-2bb1065b.js.map → events-fa760b68.js.map} +1 -1
  465. package/dist/esm/{has-closer-20151565.js → has-closer-091d5cc7.js} +1 -1
  466. package/dist/esm/has-closer-091d5cc7.js.map +1 -0
  467. package/dist/esm/{hide-label-77f04b95.js → hide-label-e711f812.js} +1 -1
  468. package/dist/esm/hide-label-e711f812.js.map +1 -0
  469. package/dist/esm/i18n-d92de40a.js +4 -0
  470. package/dist/esm/i18n-d92de40a.js.map +1 -0
  471. package/dist/esm/{icons-b8a4d706.js → icons-1ad89985.js} +1 -1
  472. package/dist/esm/icons-1ad89985.js.map +1 -0
  473. package/dist/esm/{image-source-b0d375f8.js → image-source-f76f6ad4.js} +1 -1
  474. package/dist/esm/image-source-f76f6ad4.js.map +1 -0
  475. package/dist/esm/index-6ea18cec.js +5 -0
  476. package/dist/esm/index-6ea18cec.js.map +1 -0
  477. package/dist/esm/index-9fc5c44a.js +4 -0
  478. package/dist/esm/index-9fc5c44a.js.map +1 -0
  479. package/dist/esm/index-a4a4df51.js +4 -0
  480. package/dist/esm/{index-9b519d08.js.map → index-a4a4df51.js.map} +1 -1
  481. package/dist/esm/index.js +1 -1
  482. package/dist/esm/index.js.map +1 -1
  483. package/dist/esm/kol-abbr.entry.js +1 -1
  484. package/dist/esm/kol-abbr.entry.js.map +1 -1
  485. package/dist/esm/kol-accordion.entry.js +1 -1
  486. package/dist/esm/kol-accordion.entry.js.map +1 -1
  487. package/dist/esm/kol-alert-wc_2.entry.js +1 -1
  488. package/dist/esm/kol-alert-wc_2.entry.js.map +1 -1
  489. package/dist/esm/kol-alert.entry.js +1 -1
  490. package/dist/esm/kol-alert.entry.js.map +1 -1
  491. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  492. package/dist/esm/kol-avatar-wc.entry.js.map +1 -1
  493. package/dist/esm/kol-avatar.entry.js +1 -1
  494. package/dist/esm/kol-avatar.entry.js.map +1 -1
  495. package/dist/esm/kol-badge.entry.js +1 -1
  496. package/dist/esm/kol-badge.entry.js.map +1 -1
  497. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  498. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  499. package/dist/esm/kol-button-group-wc.entry.js +1 -1
  500. package/dist/esm/kol-button-group-wc.entry.js.map +1 -1
  501. package/dist/esm/kol-button-group.entry.js +1 -1
  502. package/dist/esm/kol-button-group.entry.js.map +1 -1
  503. package/dist/esm/kol-button-link-text-switch.entry.js +1 -1
  504. package/dist/esm/kol-button-link-text-switch.entry.js.map +1 -1
  505. package/dist/esm/kol-button-link.entry.js +1 -1
  506. package/dist/esm/kol-button-link.entry.js.map +1 -1
  507. package/dist/esm/kol-button-wc_2.entry.js +1 -1
  508. package/dist/esm/kol-button-wc_2.entry.js.map +1 -1
  509. package/dist/esm/kol-button.entry.js +1 -1
  510. package/dist/esm/kol-button.entry.js.map +1 -1
  511. package/dist/esm/kol-card.entry.js +1 -1
  512. package/dist/esm/kol-card.entry.js.map +1 -1
  513. package/dist/esm/kol-details.entry.js +1 -1
  514. package/dist/esm/kol-details.entry.js.map +1 -1
  515. package/dist/esm/kol-form.entry.js +1 -1
  516. package/dist/esm/kol-form.entry.js.map +1 -1
  517. package/dist/esm/kol-heading.entry.js +1 -1
  518. package/dist/esm/kol-heading.entry.js.map +1 -1
  519. package/dist/esm/kol-icon.entry.js +1 -1
  520. package/dist/esm/kol-icon.entry.js.map +1 -1
  521. package/dist/esm/kol-image.entry.js +1 -1
  522. package/dist/esm/kol-image.entry.js.map +1 -1
  523. package/dist/esm/kol-indented-text.entry.js +1 -1
  524. package/dist/esm/kol-indented-text.entry.js.map +1 -1
  525. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  526. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  527. package/dist/esm/kol-input-color.entry.js +1 -1
  528. package/dist/esm/kol-input-color.entry.js.map +1 -1
  529. package/dist/esm/kol-input-date.entry.js +1 -1
  530. package/dist/esm/kol-input-date.entry.js.map +1 -1
  531. package/dist/esm/kol-input-email.entry.js +1 -1
  532. package/dist/esm/kol-input-email.entry.js.map +1 -1
  533. package/dist/esm/kol-input-file.entry.js +1 -1
  534. package/dist/esm/kol-input-file.entry.js.map +1 -1
  535. package/dist/esm/kol-input-number.entry.js +1 -1
  536. package/dist/esm/kol-input-number.entry.js.map +1 -1
  537. package/dist/esm/kol-input-password.entry.js +1 -1
  538. package/dist/esm/kol-input-password.entry.js.map +1 -1
  539. package/dist/esm/kol-input-radio.entry.js +1 -1
  540. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  541. package/dist/esm/kol-input-range.entry.js +1 -1
  542. package/dist/esm/kol-input-range.entry.js.map +1 -1
  543. package/dist/esm/kol-input-text.entry.js +1 -1
  544. package/dist/esm/kol-input-text.entry.js.map +1 -1
  545. package/dist/esm/kol-input.entry.js +1 -1
  546. package/dist/esm/kol-input.entry.js.map +1 -1
  547. package/dist/esm/kol-kolibri.entry.js +1 -1
  548. package/dist/esm/kol-kolibri.entry.js.map +1 -1
  549. package/dist/esm/kol-link-button.entry.js +1 -1
  550. package/dist/esm/kol-link-button.entry.js.map +1 -1
  551. package/dist/esm/kol-link-group.entry.js +1 -1
  552. package/dist/esm/kol-link-group.entry.js.map +1 -1
  553. package/dist/esm/kol-link-wc.entry.js +1 -1
  554. package/dist/esm/kol-link-wc.entry.js.map +1 -1
  555. package/dist/esm/kol-link.entry.js +1 -1
  556. package/dist/esm/kol-link.entry.js.map +1 -1
  557. package/dist/esm/kol-logo.entry.js +1 -1
  558. package/dist/esm/kol-logo.entry.js.map +1 -1
  559. package/dist/esm/kol-modal.entry.js +1 -1
  560. package/dist/esm/kol-modal.entry.js.map +1 -1
  561. package/dist/esm/kol-nav.entry.js +1 -1
  562. package/dist/esm/kol-nav.entry.js.map +1 -1
  563. package/dist/esm/kol-pagination.entry.js +1 -1
  564. package/dist/esm/kol-pagination.entry.js.map +1 -1
  565. package/dist/esm/kol-popover-wc.entry.js +1 -1
  566. package/dist/esm/kol-popover-wc.entry.js.map +1 -1
  567. package/dist/esm/kol-progress.entry.js +1 -1
  568. package/dist/esm/kol-progress.entry.js.map +1 -1
  569. package/dist/esm/kol-quote.entry.js +1 -1
  570. package/dist/esm/kol-quote.entry.js.map +1 -1
  571. package/dist/esm/kol-select.entry.js +1 -1
  572. package/dist/esm/kol-select.entry.js.map +1 -1
  573. package/dist/esm/kol-skip-nav.entry.js +1 -1
  574. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  575. package/dist/esm/kol-span-wc.entry.js +1 -1
  576. package/dist/esm/kol-span-wc.entry.js.map +1 -1
  577. package/dist/esm/kol-span.entry.js +1 -1
  578. package/dist/esm/kol-span.entry.js.map +1 -1
  579. package/dist/esm/kol-spin.entry.js +1 -1
  580. package/dist/esm/kol-spin.entry.js.map +1 -1
  581. package/dist/esm/kol-split-button.entry.js +1 -1
  582. package/dist/esm/kol-split-button.entry.js.map +1 -1
  583. package/dist/esm/kol-symbol.entry.js +1 -1
  584. package/dist/esm/kol-symbol.entry.js.map +1 -1
  585. package/dist/esm/kol-table.entry.js +1 -1
  586. package/dist/esm/kol-table.entry.js.map +1 -1
  587. package/dist/esm/kol-tabs.entry.js +1 -1
  588. package/dist/esm/kol-tabs.entry.js.map +1 -1
  589. package/dist/esm/kol-textarea.entry.js +1 -1
  590. package/dist/esm/kol-textarea.entry.js.map +1 -1
  591. package/dist/esm/kol-toast-container.entry.js +1 -1
  592. package/dist/esm/kol-toast-container.entry.js.map +1 -1
  593. package/dist/esm/kol-version.entry.js +1 -1
  594. package/dist/esm/kol-version.entry.js.map +1 -1
  595. package/dist/esm/kolibri.js +1 -1
  596. package/dist/esm/kolibri.js.map +1 -1
  597. package/dist/esm/{label-8090b77e.js → label-8ddb917e.js} +1 -1
  598. package/dist/esm/label-8ddb917e.js.map +1 -0
  599. package/dist/esm/loader.js +1 -1
  600. package/dist/esm/{open-79862e90.js → open-0bdcff02.js} +1 -1
  601. package/dist/esm/open-0bdcff02.js.map +1 -0
  602. package/dist/esm/prop.validators-f887ad3b.js +4 -0
  603. package/dist/esm/prop.validators-f887ad3b.js.map +1 -0
  604. package/dist/esm/reprod-accordion-does-not-toggle-with-open-930fccf8.js.map +1 -0
  605. package/dist/esm/reuse-d79ab469.js.map +1 -0
  606. package/dist/esm/{rows-dcbe61f8.js → rows-77cd583c.js} +1 -1
  607. package/dist/esm/rows-77cd583c.js.map +1 -0
  608. package/dist/esm/{show-77b6a5a1.js → show-8341c904.js} +1 -1
  609. package/dist/esm/show-8341c904.js.map +1 -0
  610. package/dist/esm/{suggestions-7899c154.js → suggestions-40d68773.js} +1 -1
  611. package/dist/esm/suggestions-40d68773.js.map +1 -0
  612. package/dist/esm/{tab-index-675a3daa.js → tab-index-2206620f.js} +1 -1
  613. package/dist/esm/tab-index-2206620f.js.map +1 -0
  614. package/dist/esm/toaster-bd34d3c2.js +4 -0
  615. package/dist/esm/toaster-bd34d3c2.js.map +1 -0
  616. package/dist/esm/{toaster-ce50f062.js → toaster-f89ddf4f.js} +1 -1
  617. package/dist/esm/{toaster-ce50f062.js.map → toaster-f89ddf4f.js.map} +1 -1
  618. package/dist/esm/{tooltip-align-9cb0b18e.js → tooltip-align-00398d75.js} +1 -1
  619. package/dist/esm/tooltip-align-00398d75.js.map +1 -0
  620. package/dist/esm/{unique-nav-labels-c6750f60.js.map → unique-nav-labels-62d9802d.js.map} +1 -1
  621. package/dist/esm/validation-34db9bcf.js +4 -0
  622. package/dist/esm/validation-34db9bcf.js.map +1 -0
  623. package/dist/esm/{validation-24372ccc.js → validation-503191a4.js} +1 -1
  624. package/dist/esm/validation-503191a4.js.map +1 -0
  625. package/dist/kolibri/InternalUnderlinedAccessKey-e3698cee.js +4 -0
  626. package/dist/kolibri/{a11y.tipps-db7fb79f.js → a11y.tipps-f367a979.js} +1 -1
  627. package/dist/kolibri/access-key-d70aa275.js +4 -0
  628. package/dist/kolibri/access-key-d70aa275.js.map +1 -0
  629. package/dist/kolibri/{align-floating-elements-ebf0712d.js → align-floating-elements-cadb5c5b.js} +1 -1
  630. package/dist/kolibri/{alignment-40e15b6f.js → alignment-493b6c84.js} +1 -1
  631. package/dist/kolibri/alignment-493b6c84.js.map +1 -0
  632. package/dist/kolibri/alternative-button-link-role-0fc029bf.js +4 -0
  633. package/dist/kolibri/alternative-button-link-role-0fc029bf.js.map +1 -0
  634. package/dist/kolibri/app-globals-f7f4352c.js +4 -0
  635. package/dist/kolibri/app-globals-f7f4352c.js.map +1 -0
  636. package/dist/kolibri/ariaCurrentService-6fe36ebc.js +4 -0
  637. package/dist/kolibri/ariaCurrentService-6fe36ebc.js.map +1 -0
  638. package/dist/kolibri/assets/simulations/table-simulation.js +1 -1
  639. package/dist/kolibri/{associated.controller-262c54a1.js → associated.controller-700d5133.js} +1 -1
  640. package/dist/kolibri/associated.controller-700d5133.js.map +1 -0
  641. package/dist/kolibri/{color-c062183a.js → color-afc2e34f.js} +1 -1
  642. package/dist/kolibri/{color-c062183a.js.map → color-afc2e34f.js.map} +1 -1
  643. package/dist/kolibri/controller-17eb7878.js +4 -0
  644. package/dist/kolibri/controller-17eb7878.js.map +1 -0
  645. package/dist/kolibri/controller-60b830eb.js +4 -0
  646. package/dist/kolibri/controller-60b830eb.js.map +1 -0
  647. package/dist/kolibri/controller-6e772d91.js +4 -0
  648. package/dist/kolibri/controller-6e772d91.js.map +1 -0
  649. package/dist/kolibri/controller-ae07d1c7.js +4 -0
  650. package/dist/kolibri/controller-ae07d1c7.js.map +1 -0
  651. package/dist/kolibri/{controller-18ea7b97.js → controller-e23535f2.js} +1 -1
  652. package/dist/kolibri/controller-icon-01cabd99.js +4 -0
  653. package/dist/kolibri/controller-icon-01cabd99.js.map +1 -0
  654. package/dist/kolibri/custom-class-603a7fda.js +4 -0
  655. package/dist/kolibri/custom-class-603a7fda.js.map +1 -0
  656. package/dist/kolibri/dev.utils-da51d5d8.js +4 -0
  657. package/dist/kolibri/dev.utils-da51d5d8.js.map +1 -0
  658. package/dist/kolibri/devtools-308d0386.js +4 -0
  659. package/dist/kolibri/has-closer-091d5cc7.js +4 -0
  660. package/dist/kolibri/has-closer-091d5cc7.js.map +1 -0
  661. package/dist/kolibri/hide-label-e711f812.js +4 -0
  662. package/dist/kolibri/hide-label-e711f812.js.map +1 -0
  663. package/dist/kolibri/i18n-d92de40a.js +4 -0
  664. package/dist/kolibri/i18n-d92de40a.js.map +1 -0
  665. package/dist/kolibri/icons-1ad89985.js +4 -0
  666. package/dist/kolibri/icons-1ad89985.js.map +1 -0
  667. package/dist/kolibri/image-source-f76f6ad4.js +4 -0
  668. package/dist/kolibri/image-source-f76f6ad4.js.map +1 -0
  669. package/dist/kolibri/index-6ea18cec.js +5 -0
  670. package/dist/kolibri/index-6ea18cec.js.map +1 -0
  671. package/dist/kolibri/index-9fc5c44a.js +4 -0
  672. package/dist/kolibri/index-9fc5c44a.js.map +1 -0
  673. package/dist/kolibri/index-a4a4df51.js +4 -0
  674. package/dist/kolibri/index.esm.js +1 -1
  675. package/dist/kolibri/kol-abbr.entry.js +1 -1
  676. package/dist/kolibri/kol-abbr.entry.js.map +1 -1
  677. package/dist/kolibri/kol-accordion.entry.js +1 -1
  678. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  679. package/dist/kolibri/kol-alert-wc_2.entry.js +1 -1
  680. package/dist/kolibri/kol-alert-wc_2.entry.js.map +1 -1
  681. package/dist/kolibri/kol-alert.entry.js +1 -1
  682. package/dist/kolibri/kol-alert.entry.js.map +1 -1
  683. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  684. package/dist/kolibri/kol-avatar-wc.entry.js.map +1 -1
  685. package/dist/kolibri/kol-avatar.entry.js +1 -1
  686. package/dist/kolibri/kol-avatar.entry.js.map +1 -1
  687. package/dist/kolibri/kol-badge.entry.js +1 -1
  688. package/dist/kolibri/kol-badge.entry.js.map +1 -1
  689. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  690. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  691. package/dist/kolibri/kol-button-group-wc.entry.js +1 -1
  692. package/dist/kolibri/kol-button-group.entry.js +1 -1
  693. package/dist/kolibri/kol-button-group.entry.js.map +1 -1
  694. package/dist/kolibri/kol-button-link-text-switch.entry.js +1 -1
  695. package/dist/kolibri/kol-button-link.entry.js +1 -1
  696. package/dist/kolibri/kol-button-link.entry.js.map +1 -1
  697. package/dist/kolibri/kol-button-wc_2.entry.js +1 -1
  698. package/dist/kolibri/kol-button-wc_2.entry.js.map +1 -1
  699. package/dist/kolibri/kol-button.entry.js +1 -1
  700. package/dist/kolibri/kol-button.entry.js.map +1 -1
  701. package/dist/kolibri/kol-card.entry.js +1 -1
  702. package/dist/kolibri/kol-card.entry.js.map +1 -1
  703. package/dist/kolibri/kol-details.entry.js +1 -1
  704. package/dist/kolibri/kol-details.entry.js.map +1 -1
  705. package/dist/kolibri/kol-form.entry.js +1 -1
  706. package/dist/kolibri/kol-heading.entry.js +1 -1
  707. package/dist/kolibri/kol-heading.entry.js.map +1 -1
  708. package/dist/kolibri/kol-icon.entry.js +1 -1
  709. package/dist/kolibri/kol-image.entry.js +1 -1
  710. package/dist/kolibri/kol-image.entry.js.map +1 -1
  711. package/dist/kolibri/kol-indented-text.entry.js +1 -1
  712. package/dist/kolibri/kol-indented-text.entry.js.map +1 -1
  713. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  714. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  715. package/dist/kolibri/kol-input-color.entry.js +1 -1
  716. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  717. package/dist/kolibri/kol-input-date.entry.js +1 -1
  718. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  719. package/dist/kolibri/kol-input-email.entry.js +1 -1
  720. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  721. package/dist/kolibri/kol-input-file.entry.js +1 -1
  722. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  723. package/dist/kolibri/kol-input-number.entry.js +1 -1
  724. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  725. package/dist/kolibri/kol-input-password.entry.js +1 -1
  726. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  727. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  728. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  729. package/dist/kolibri/kol-input-range.entry.js +1 -1
  730. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  731. package/dist/kolibri/kol-input-text.entry.js +1 -1
  732. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  733. package/dist/kolibri/kol-input.entry.js +1 -1
  734. package/dist/kolibri/kol-input.entry.js.map +1 -1
  735. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  736. package/dist/kolibri/kol-kolibri.entry.js.map +1 -1
  737. package/dist/kolibri/kol-link-button.entry.js +1 -1
  738. package/dist/kolibri/kol-link-button.entry.js.map +1 -1
  739. package/dist/kolibri/kol-link-group.entry.js +1 -1
  740. package/dist/kolibri/kol-link-group.entry.js.map +1 -1
  741. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  742. package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
  743. package/dist/kolibri/kol-link.entry.js +1 -1
  744. package/dist/kolibri/kol-link.entry.js.map +1 -1
  745. package/dist/kolibri/kol-logo.entry.js +1 -1
  746. package/dist/kolibri/kol-logo.entry.js.map +1 -1
  747. package/dist/kolibri/kol-modal.entry.js +1 -1
  748. package/dist/kolibri/kol-modal.entry.js.map +1 -1
  749. package/dist/kolibri/kol-nav.entry.js +1 -1
  750. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  751. package/dist/kolibri/kol-pagination.entry.js +1 -1
  752. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  753. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  754. package/dist/kolibri/kol-popover-wc.entry.js.map +1 -1
  755. package/dist/kolibri/kol-progress.entry.js +1 -1
  756. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  757. package/dist/kolibri/kol-quote.entry.js +1 -1
  758. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  759. package/dist/kolibri/kol-select.entry.js +1 -1
  760. package/dist/kolibri/kol-select.entry.js.map +1 -1
  761. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  762. package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
  763. package/dist/kolibri/kol-span-wc.entry.js +1 -1
  764. package/dist/kolibri/kol-span.entry.js +1 -1
  765. package/dist/kolibri/kol-span.entry.js.map +1 -1
  766. package/dist/kolibri/kol-spin.entry.js +1 -1
  767. package/dist/kolibri/kol-spin.entry.js.map +1 -1
  768. package/dist/kolibri/kol-split-button.entry.js +1 -1
  769. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  770. package/dist/kolibri/kol-symbol.entry.js +1 -1
  771. package/dist/kolibri/kol-table.entry.js +1 -1
  772. package/dist/kolibri/kol-table.entry.js.map +1 -1
  773. package/dist/kolibri/kol-tabs.entry.js +1 -1
  774. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  775. package/dist/kolibri/kol-textarea.entry.js +1 -1
  776. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  777. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  778. package/dist/kolibri/kol-toast-container.entry.js.map +1 -1
  779. package/dist/kolibri/kol-version.entry.js +1 -1
  780. package/dist/kolibri/kol-version.entry.js.map +1 -1
  781. package/dist/kolibri/kolibri.esm.js +1 -1
  782. package/dist/kolibri/kolibri.esm.js.map +1 -1
  783. package/dist/kolibri/{label-8090b77e.js → label-8ddb917e.js} +1 -1
  784. package/dist/kolibri/label-8ddb917e.js.map +1 -0
  785. package/dist/kolibri/open-0bdcff02.js +4 -0
  786. package/dist/kolibri/open-0bdcff02.js.map +1 -0
  787. package/dist/kolibri/prop.validators-f887ad3b.js +4 -0
  788. package/dist/kolibri/prop.validators-f887ad3b.js.map +1 -0
  789. package/dist/kolibri/rows-77cd583c.js +4 -0
  790. package/dist/kolibri/rows-77cd583c.js.map +1 -0
  791. package/dist/kolibri/show-8341c904.js +4 -0
  792. package/dist/kolibri/show-8341c904.js.map +1 -0
  793. package/dist/kolibri/{suggestions-7899c154.js → suggestions-40d68773.js} +1 -1
  794. package/dist/kolibri/suggestions-40d68773.js.map +1 -0
  795. package/dist/kolibri/tab-index-2206620f.js +4 -0
  796. package/dist/kolibri/tab-index-2206620f.js.map +1 -0
  797. package/dist/kolibri/toaster-bd34d3c2.js +4 -0
  798. package/dist/kolibri/toaster-bd34d3c2.js.map +1 -0
  799. package/dist/kolibri/toaster-f89ddf4f.js +4 -0
  800. package/dist/kolibri/tooltip-align-00398d75.js +4 -0
  801. package/dist/kolibri/tooltip-align-00398d75.js.map +1 -0
  802. package/dist/kolibri/validation-34db9bcf.js +4 -0
  803. package/dist/kolibri/validation-34db9bcf.js.map +1 -0
  804. package/dist/kolibri/{validation-24372ccc.js → validation-503191a4.js} +1 -1
  805. package/dist/kolibri/validation-503191a4.js.map +1 -0
  806. package/dist/types/components/@deprecated/input/controller-icon.d.ts +6 -6
  807. package/dist/types/components/@deprecated/input/controller.d.ts +29 -28
  808. package/dist/types/components/@deprecated/input/types-icon.d.ts +3 -3
  809. package/dist/types/components/@deprecated/input/types.d.ts +13 -12
  810. package/dist/types/components/@else/all/component.d.ts +3 -3
  811. package/dist/types/components/@else/counter/component.d.ts +6 -6
  812. package/dist/types/components/abbr/component.d.ts +8 -8
  813. package/dist/types/components/abbr/types.d.ts +1 -1
  814. package/dist/types/components/accordion/component.d.ts +15 -15
  815. package/dist/types/components/accordion/test/html.mock.d.ts +2 -2
  816. package/dist/types/components/accordion/types.d.ts +4 -4
  817. package/dist/types/components/alert/component.d.ts +20 -20
  818. package/dist/types/components/alert/shadow.d.ts +9 -9
  819. package/dist/types/components/alert/types.d.ts +6 -6
  820. package/dist/types/components/avatar/component.d.ts +7 -7
  821. package/dist/types/components/avatar/shadow.d.ts +3 -3
  822. package/dist/types/components/avatar/types.d.ts +1 -1
  823. package/dist/types/components/badge/component.d.ts +14 -14
  824. package/dist/types/components/badge/contrast.d.ts +3 -3
  825. package/dist/types/components/badge/types.d.ts +6 -6
  826. package/dist/types/components/breadcrumb/component.d.ts +9 -9
  827. package/dist/types/components/breadcrumb/types.d.ts +3 -3
  828. package/dist/types/components/button/component.d.ts +47 -47
  829. package/dist/types/components/button/shadow.d.ts +23 -22
  830. package/dist/types/components/button/test/html.mock.d.ts +1 -1
  831. package/dist/types/components/button/types.d.ts +4 -4
  832. package/dist/types/components/button-group/component.d.ts +2 -2
  833. package/dist/types/components/button-group/shadow.d.ts +1 -1
  834. package/dist/types/components/button-group/types.d.ts +1 -1
  835. package/dist/types/components/button-link/component.d.ts +21 -20
  836. package/dist/types/components/button-link/types.d.ts +1 -1
  837. package/dist/types/components/button-link-text-switch/component.d.ts +6 -6
  838. package/dist/types/components/button-link-text-switch/types.d.ts +4 -4
  839. package/dist/types/components/card/component.d.ts +14 -14
  840. package/dist/types/components/card/types.d.ts +4 -4
  841. package/dist/types/components/details/DetailsAnimationController.d.ts +13 -13
  842. package/dist/types/components/details/component.d.ts +17 -17
  843. package/dist/types/components/details/test/html.mock.d.ts +1 -1
  844. package/dist/types/components/details/types.d.ts +3 -3
  845. package/dist/types/components/form/component.d.ts +9 -9
  846. package/dist/types/components/form/controller.d.ts +4 -4
  847. package/dist/types/components/form/types.d.ts +5 -5
  848. package/dist/types/components/heading/component.d.ts +14 -11
  849. package/dist/types/components/heading/shadow.d.ts +6 -4
  850. package/dist/types/components/heading/test/html.mock.d.ts +2 -2
  851. package/dist/types/components/heading/types.d.ts +8 -7
  852. package/dist/types/components/heading/validation.d.ts +1 -1
  853. package/dist/types/components/icon/component.d.ts +7 -7
  854. package/dist/types/components/icon/types.d.ts +2 -2
  855. package/dist/types/components/image/shadow.d.ts +13 -13
  856. package/dist/types/components/image/types.d.ts +8 -8
  857. package/dist/types/components/indented-text/component.d.ts +2 -2
  858. package/dist/types/components/indented-text/test/html.mock.d.ts +1 -1
  859. package/dist/types/components/indented-text/types.d.ts +1 -1
  860. package/dist/types/components/input/component.d.ts +27 -27
  861. package/dist/types/components/input/controller.d.ts +7 -7
  862. package/dist/types/components/input/types.d.ts +8 -8
  863. package/dist/types/components/input-adapter-leanup/associated.controller.d.ts +16 -16
  864. package/dist/types/components/input-adapter-leanup/controller.d.ts +6 -6
  865. package/dist/types/components/input-adapter-leanup/types.d.ts +3 -3
  866. package/dist/types/components/input-checkbox/component.d.ts +51 -50
  867. package/dist/types/components/input-checkbox/controller.d.ts +10 -12
  868. package/dist/types/components/input-checkbox/types.d.ts +32 -32
  869. package/dist/types/components/input-color/component.d.ts +48 -47
  870. package/dist/types/components/input-color/controller.d.ts +7 -9
  871. package/dist/types/components/input-color/types.d.ts +23 -23
  872. package/dist/types/components/input-date/component.d.ts +61 -60
  873. package/dist/types/components/input-date/controller.d.ts +25 -27
  874. package/dist/types/components/input-date/types.d.ts +19 -19
  875. package/dist/types/components/input-email/component.d.ts +63 -62
  876. package/dist/types/components/input-email/controller.d.ts +5 -7
  877. package/dist/types/components/input-email/types.d.ts +30 -30
  878. package/dist/types/components/input-file/component.d.ts +51 -50
  879. package/dist/types/components/input-file/controller.d.ts +8 -10
  880. package/dist/types/components/input-file/types.d.ts +21 -21
  881. package/dist/types/components/input-number/component.d.ts +61 -60
  882. package/dist/types/components/input-number/controller.d.ts +18 -20
  883. package/dist/types/components/input-number/types.d.ts +18 -18
  884. package/dist/types/components/input-password/component.d.ts +59 -58
  885. package/dist/types/components/input-password/controller.d.ts +15 -17
  886. package/dist/types/components/input-password/types.d.ts +29 -29
  887. package/dist/types/components/input-radio/component.d.ts +47 -45
  888. package/dist/types/components/input-radio/controller.d.ts +17 -19
  889. package/dist/types/components/input-radio/types.d.ts +18 -18
  890. package/dist/types/components/input-range/component.d.ts +58 -53
  891. package/dist/types/components/input-range/controller.d.ts +10 -12
  892. package/dist/types/components/input-range/types.d.ts +26 -26
  893. package/dist/types/components/input-text/component.d.ts +66 -65
  894. package/dist/types/components/input-text/controller.d.ts +12 -14
  895. package/dist/types/components/input-text/types.d.ts +32 -32
  896. package/dist/types/components/kolibri/component.d.ts +8 -13
  897. package/dist/types/components/kolibri/types.d.ts +9 -11
  898. package/dist/types/components/link/ariaCurrentService.d.ts +5 -0
  899. package/dist/types/components/link/component.d.ts +37 -38
  900. package/dist/types/components/link/shadow.d.ts +17 -17
  901. package/dist/types/components/link/types.d.ts +9 -7
  902. package/dist/types/components/link-button/component.d.ts +19 -19
  903. package/dist/types/components/link-button/types.d.ts +1 -1
  904. package/dist/types/components/link-group/component.d.ts +13 -13
  905. package/dist/types/components/link-group/types.d.ts +7 -7
  906. package/dist/types/components/logo/component.d.ts +5 -5
  907. package/dist/types/components/logo/types.d.ts +2 -2
  908. package/dist/types/components/modal/component.d.ts +15 -15
  909. package/dist/types/components/modal/service.d.ts +9 -9
  910. package/dist/types/components/modal/types.d.ts +7 -7
  911. package/dist/types/components/nav/component.d.ts +22 -25
  912. package/dist/types/components/nav/types.d.ts +5 -8
  913. package/dist/types/components/nav/validation.d.ts +4 -4
  914. package/dist/types/components/pagination/component.d.ts +41 -41
  915. package/dist/types/components/pagination/types.d.ts +22 -22
  916. package/dist/types/components/popover/component.d.ts +20 -20
  917. package/dist/types/components/popover/test/html.mock.d.ts +1 -1
  918. package/dist/types/components/popover/types.d.ts +2 -2
  919. package/dist/types/components/progress/component.d.ts +15 -15
  920. package/dist/types/components/progress/types.d.ts +8 -8
  921. package/dist/types/components/quote/shadow.d.ts +11 -11
  922. package/dist/types/components/quote/test/html.mock.d.ts +1 -1
  923. package/dist/types/components/quote/types.d.ts +5 -5
  924. package/dist/types/components/select/component.d.ts +52 -51
  925. package/dist/types/components/select/controller.d.ts +15 -17
  926. package/dist/types/components/select/types.d.ts +19 -19
  927. package/dist/types/components/skip-nav/component.d.ts +8 -8
  928. package/dist/types/components/skip-nav/types.d.ts +3 -3
  929. package/dist/types/components/span/InternalUnderlinedAccessKey.d.ts +2 -2
  930. package/dist/types/components/span/component.d.ts +13 -13
  931. package/dist/types/components/span/shadow.d.ts +5 -5
  932. package/dist/types/components/span/test/html.mock.d.ts +4 -4
  933. package/dist/types/components/span/types.d.ts +10 -10
  934. package/dist/types/components/spin/component.d.ts +8 -8
  935. package/dist/types/components/spin/types.d.ts +1 -1
  936. package/dist/types/components/split-button/component.d.ts +28 -28
  937. package/dist/types/components/split-button/types.d.ts +2 -2
  938. package/dist/types/components/symbol/component.d.ts +7 -7
  939. package/dist/types/components/symbol/types.d.ts +2 -2
  940. package/dist/types/components/table/component.d.ts +42 -38
  941. package/dist/types/components/table/types.d.ts +39 -35
  942. package/dist/types/components/tabs/component.d.ts +32 -32
  943. package/dist/types/components/tabs/types.d.ts +13 -13
  944. package/dist/types/components/textarea/component.d.ts +57 -56
  945. package/dist/types/components/textarea/controller.d.ts +13 -15
  946. package/dist/types/components/textarea/types.d.ts +24 -24
  947. package/dist/types/components/toaster/InternalToast.d.ts +3 -3
  948. package/dist/types/components/toaster/component.d.ts +5 -5
  949. package/dist/types/components/toaster/toaster.d.ts +10 -9
  950. package/dist/types/components/toaster/types.d.ts +16 -12
  951. package/dist/types/components/tooltip/component.d.ts +34 -34
  952. package/dist/types/components/tooltip/types.d.ts +1 -1
  953. package/dist/types/components/version/component.d.ts +5 -5
  954. package/dist/types/components/version/types.d.ts +1 -1
  955. package/dist/types/components.d.ts +68 -44
  956. package/dist/types/core/declare.d.ts +1 -1
  957. package/dist/types/core/i18n.d.ts +14 -13
  958. package/dist/types/core/index.d.ts +1 -1
  959. package/dist/types/enums/bund.d.ts +58 -58
  960. package/dist/types/enums/events.d.ts +17 -17
  961. package/dist/types/i18n.d.ts +6 -6
  962. package/dist/types/index.d.ts +11 -1
  963. package/dist/types/locales/de.d.ts +39 -34
  964. package/dist/types/locales/en.d.ts +39 -34
  965. package/dist/types/stencil-public-runtime.d.ts +8 -0
  966. package/dist/types/types/button-link-text.d.ts +6 -6
  967. package/dist/types/types/icons.d.ts +6 -6
  968. package/dist/types/types/input/control/number.d.ts +19 -19
  969. package/dist/types/types/input/types.d.ts +10 -10
  970. package/dist/types/types/modal.d.ts +1 -1
  971. package/dist/types/types/progress.d.ts +4 -4
  972. package/dist/types/types/props/access-key.d.ts +2 -2
  973. package/dist/types/types/props/adjust-height.d.ts +2 -2
  974. package/dist/types/types/props/alert.d.ts +2 -2
  975. package/dist/types/types/props/align.d.ts +2 -2
  976. package/dist/types/types/props/alternative-button-link-role.d.ts +2 -2
  977. package/dist/types/types/props/aria-controls.d.ts +2 -2
  978. package/dist/types/types/props/aria-current-value.d.ts +8 -0
  979. package/dist/types/types/props/aria-expanded.d.ts +2 -2
  980. package/dist/types/types/props/aria-selected.d.ts +2 -2
  981. package/dist/types/types/props/button-callbacks.d.ts +4 -4
  982. package/dist/types/types/props/button-type.d.ts +2 -2
  983. package/dist/types/types/props/button-variant.d.ts +2 -2
  984. package/dist/types/types/props/checked.d.ts +2 -2
  985. package/dist/types/types/props/collapsible.d.ts +2 -2
  986. package/dist/types/types/props/color.d.ts +6 -6
  987. package/dist/types/types/props/custom-class.d.ts +2 -2
  988. package/dist/types/types/props/disabled.d.ts +2 -2
  989. package/dist/types/types/props/download.d.ts +2 -2
  990. package/dist/types/types/props/has-closer.d.ts +2 -2
  991. package/dist/types/types/props/has-compact-button.d.ts +2 -2
  992. package/dist/types/types/props/has-counter.d.ts +2 -2
  993. package/dist/types/types/props/heading-variant.d.ts +8 -0
  994. package/dist/types/types/props/hide-error.d.ts +2 -2
  995. package/dist/types/types/props/hide-label.d.ts +2 -2
  996. package/dist/types/types/props/href.d.ts +2 -2
  997. package/dist/types/types/props/icons.d.ts +2 -2
  998. package/dist/types/types/props/id.d.ts +2 -2
  999. package/dist/types/types/props/image-source.d.ts +2 -2
  1000. package/dist/types/types/props/indeterminate.d.ts +2 -2
  1001. package/dist/types/types/props/label.d.ts +3 -3
  1002. package/dist/types/types/props/link-on-callbacks.d.ts +3 -3
  1003. package/dist/types/types/props/link-target.d.ts +2 -2
  1004. package/dist/types/types/props/max.d.ts +2 -2
  1005. package/dist/types/types/props/multiple.d.ts +2 -2
  1006. package/dist/types/types/props/name.d.ts +2 -2
  1007. package/dist/types/types/props/open.d.ts +2 -2
  1008. package/dist/types/types/props/options.d.ts +3 -3
  1009. package/dist/types/types/props/read-only.d.ts +2 -2
  1010. package/dist/types/types/props/required.d.ts +2 -2
  1011. package/dist/types/types/props/rows.d.ts +2 -2
  1012. package/dist/types/types/props/show.d.ts +2 -2
  1013. package/dist/types/types/props/suggestions.d.ts +2 -2
  1014. package/dist/types/types/props/sync-value-by-selector.d.ts +1 -1
  1015. package/dist/types/types/props/tooltip-align.d.ts +2 -2
  1016. package/dist/types/types/props/touched.d.ts +2 -2
  1017. package/dist/types/types/props/variant/spin.d.ts +2 -2
  1018. package/dist/types/utils/a11y.tipps.d.ts +2 -2
  1019. package/dist/types/utils/align-floating-elements.d.ts +4 -4
  1020. package/dist/types/utils/color.utils.d.ts +8 -8
  1021. package/dist/types/utils/dev.utils.d.ts +14 -15
  1022. package/dist/types/utils/prop.validators.d.ts +26 -33
  1023. package/dist/types/utils/validators/alignment.d.ts +1 -1
  1024. package/dist/types/utils/validators/loading.d.ts +1 -1
  1025. package/dist/types/utils/validators/tab-index.d.ts +1 -1
  1026. package/doc/alert.md +2 -2
  1027. package/doc/badge.md +17 -0
  1028. package/doc/button-link.md +13 -0
  1029. package/doc/button.md +13 -0
  1030. package/doc/components.md +40 -2
  1031. package/doc/heading.md +6 -5
  1032. package/doc/input-checkbox.md +13 -0
  1033. package/doc/input-color.md +15 -1
  1034. package/doc/input-date.md +13 -0
  1035. package/doc/input-email.md +13 -0
  1036. package/doc/input-file.md +13 -0
  1037. package/doc/input-number.md +13 -0
  1038. package/doc/input-password.md +13 -0
  1039. package/doc/input-radio.md +13 -0
  1040. package/doc/input-range.md +13 -0
  1041. package/doc/input-text.md +13 -0
  1042. package/doc/kolibri.md +5 -11
  1043. package/doc/link-button.md +17 -17
  1044. package/doc/link.md +41 -30
  1045. package/doc/nav.md +8 -9
  1046. package/doc/select.md +13 -0
  1047. package/doc/spin.md +4 -2
  1048. package/doc/table.md +9 -8
  1049. package/doc/textarea.md +13 -0
  1050. package/doc/toaster.md +4 -1
  1051. package/doc/tooltip.md +11 -0
  1052. package/package.json +1 -1
  1053. package/vscode-custom-data.json +113 -68
  1054. package/dist/cjs/access-key-7c361c23.js +0 -4
  1055. package/dist/cjs/access-key-7c361c23.js.map +0 -1
  1056. package/dist/cjs/align-floating-elements-01d5ad38.js.map +0 -1
  1057. package/dist/cjs/alignment-f93afb43.js.map +0 -1
  1058. package/dist/cjs/alternative-button-link-role-55f0cb00.js +0 -4
  1059. package/dist/cjs/alternative-button-link-role-55f0cb00.js.map +0 -1
  1060. package/dist/cjs/app-globals-495412bf.js +0 -4
  1061. package/dist/cjs/app-globals-495412bf.js.map +0 -1
  1062. package/dist/cjs/associated.controller-ea7c9a34.js.map +0 -1
  1063. package/dist/cjs/color-20a8ea11.js.map +0 -1
  1064. package/dist/cjs/controller-20760a3a.js.map +0 -1
  1065. package/dist/cjs/controller-5a96ebd6.js +0 -4
  1066. package/dist/cjs/controller-5a96ebd6.js.map +0 -1
  1067. package/dist/cjs/controller-8a029669.js.map +0 -1
  1068. package/dist/cjs/controller-a73cbfc0.js +0 -4
  1069. package/dist/cjs/controller-a73cbfc0.js.map +0 -1
  1070. package/dist/cjs/controller-d8d4c7a3.js +0 -4
  1071. package/dist/cjs/controller-d8d4c7a3.js.map +0 -1
  1072. package/dist/cjs/controller-icon-aeb3e728.js.map +0 -1
  1073. package/dist/cjs/custom-class-570da71e.js +0 -4
  1074. package/dist/cjs/custom-class-570da71e.js.map +0 -1
  1075. package/dist/cjs/dev.utils-0983598b.js +0 -4
  1076. package/dist/cjs/dev.utils-0983598b.js.map +0 -1
  1077. package/dist/cjs/devtools-63f43f2c.js.map +0 -1
  1078. package/dist/cjs/has-closer-8630e908.js +0 -4
  1079. package/dist/cjs/has-closer-8630e908.js.map +0 -1
  1080. package/dist/cjs/hide-label-2c319081.js +0 -4
  1081. package/dist/cjs/hide-label-2c319081.js.map +0 -1
  1082. package/dist/cjs/i18n-6e067df2.js +0 -4
  1083. package/dist/cjs/i18n-6e067df2.js.map +0 -1
  1084. package/dist/cjs/icons-29e6ea06.js.map +0 -1
  1085. package/dist/cjs/image-source-33fa6c81.js +0 -4
  1086. package/dist/cjs/image-source-33fa6c81.js.map +0 -1
  1087. package/dist/cjs/index-07f69fb0.js +0 -4
  1088. package/dist/cjs/index-462c3213.js +0 -4
  1089. package/dist/cjs/index-462c3213.js.map +0 -1
  1090. package/dist/cjs/index-a0085191.js +0 -5
  1091. package/dist/cjs/index-a0085191.js.map +0 -1
  1092. package/dist/cjs/label-66a72f53.js.map +0 -1
  1093. package/dist/cjs/open-b60f66b5.js +0 -4
  1094. package/dist/cjs/open-b60f66b5.js.map +0 -1
  1095. package/dist/cjs/prop.validators-56106b69.js +0 -4
  1096. package/dist/cjs/prop.validators-56106b69.js.map +0 -1
  1097. package/dist/cjs/reprod-accordion-does-not-toggle-with-open-53004853.js.map +0 -1
  1098. package/dist/cjs/reuse-786396d6.js.map +0 -1
  1099. package/dist/cjs/rows-482ea8a6.js +0 -4
  1100. package/dist/cjs/rows-482ea8a6.js.map +0 -1
  1101. package/dist/cjs/show-8874264b.js +0 -4
  1102. package/dist/cjs/show-8874264b.js.map +0 -1
  1103. package/dist/cjs/suggestions-d3601151.js.map +0 -1
  1104. package/dist/cjs/tab-index-93d08e52.js.map +0 -1
  1105. package/dist/cjs/toaster-812c9c9b.js +0 -4
  1106. package/dist/cjs/toaster-812c9c9b.js.map +0 -1
  1107. package/dist/cjs/tooltip-align-650165f7.js.map +0 -1
  1108. package/dist/cjs/validation-0c023741.js.map +0 -1
  1109. package/dist/cjs/validation-0dc33189.js.map +0 -1
  1110. package/dist/esm/access-key-878199ab.js.map +0 -1
  1111. package/dist/esm/align-floating-elements-ebf0712d.js.map +0 -1
  1112. package/dist/esm/alignment-40e15b6f.js.map +0 -1
  1113. package/dist/esm/alternative-button-link-role-71624d2c.js +0 -4
  1114. package/dist/esm/alternative-button-link-role-71624d2c.js.map +0 -1
  1115. package/dist/esm/app-globals-e75cd996.js +0 -4
  1116. package/dist/esm/app-globals-e75cd996.js.map +0 -1
  1117. package/dist/esm/associated.controller-262c54a1.js.map +0 -1
  1118. package/dist/esm/color-c062183a.js.map +0 -1
  1119. package/dist/esm/controller-0ff708bd.js +0 -4
  1120. package/dist/esm/controller-0ff708bd.js.map +0 -1
  1121. package/dist/esm/controller-18ea7b97.js.map +0 -1
  1122. package/dist/esm/controller-6cf7290f.js +0 -4
  1123. package/dist/esm/controller-6cf7290f.js.map +0 -1
  1124. package/dist/esm/controller-7a31f90c.js +0 -4
  1125. package/dist/esm/controller-7a31f90c.js.map +0 -1
  1126. package/dist/esm/controller-a6ee4b4e.js +0 -4
  1127. package/dist/esm/controller-a6ee4b4e.js.map +0 -1
  1128. package/dist/esm/controller-icon-c6452eb6.js.map +0 -1
  1129. package/dist/esm/custom-class-88b26aed.js +0 -4
  1130. package/dist/esm/custom-class-88b26aed.js.map +0 -1
  1131. package/dist/esm/dev.utils-0ab1db26.js +0 -4
  1132. package/dist/esm/dev.utils-0ab1db26.js.map +0 -1
  1133. package/dist/esm/devtools-7e61d88e.js.map +0 -1
  1134. package/dist/esm/has-closer-20151565.js.map +0 -1
  1135. package/dist/esm/hide-label-77f04b95.js.map +0 -1
  1136. package/dist/esm/i18n-6d198e44.js +0 -4
  1137. package/dist/esm/i18n-6d198e44.js.map +0 -1
  1138. package/dist/esm/icons-b8a4d706.js.map +0 -1
  1139. package/dist/esm/image-source-b0d375f8.js.map +0 -1
  1140. package/dist/esm/index-0bc40dc4.js +0 -5
  1141. package/dist/esm/index-0bc40dc4.js.map +0 -1
  1142. package/dist/esm/index-328ae082.js +0 -4
  1143. package/dist/esm/index-328ae082.js.map +0 -1
  1144. package/dist/esm/index-9b519d08.js +0 -4
  1145. package/dist/esm/label-8090b77e.js.map +0 -1
  1146. package/dist/esm/open-79862e90.js.map +0 -1
  1147. package/dist/esm/prop.validators-4ca765d6.js +0 -4
  1148. package/dist/esm/prop.validators-4ca765d6.js.map +0 -1
  1149. package/dist/esm/reprod-accordion-does-not-toggle-with-open-542a45b3.js.map +0 -1
  1150. package/dist/esm/reuse-b3566e4c.js.map +0 -1
  1151. package/dist/esm/rows-dcbe61f8.js.map +0 -1
  1152. package/dist/esm/show-77b6a5a1.js.map +0 -1
  1153. package/dist/esm/suggestions-7899c154.js.map +0 -1
  1154. package/dist/esm/tab-index-675a3daa.js.map +0 -1
  1155. package/dist/esm/toaster-eb99e2fa.js +0 -4
  1156. package/dist/esm/toaster-eb99e2fa.js.map +0 -1
  1157. package/dist/esm/tooltip-align-9cb0b18e.js.map +0 -1
  1158. package/dist/esm/validation-24372ccc.js.map +0 -1
  1159. package/dist/esm/validation-4f6082a5.js +0 -4
  1160. package/dist/esm/validation-4f6082a5.js.map +0 -1
  1161. package/dist/kolibri/InternalUnderlinedAccessKey-8b996006.js +0 -4
  1162. package/dist/kolibri/access-key-878199ab.js +0 -4
  1163. package/dist/kolibri/access-key-878199ab.js.map +0 -1
  1164. package/dist/kolibri/alignment-40e15b6f.js.map +0 -1
  1165. package/dist/kolibri/alternative-button-link-role-71624d2c.js +0 -4
  1166. package/dist/kolibri/alternative-button-link-role-71624d2c.js.map +0 -1
  1167. package/dist/kolibri/app-globals-e75cd996.js +0 -4
  1168. package/dist/kolibri/app-globals-e75cd996.js.map +0 -1
  1169. package/dist/kolibri/associated.controller-262c54a1.js.map +0 -1
  1170. package/dist/kolibri/controller-0ff708bd.js +0 -4
  1171. package/dist/kolibri/controller-0ff708bd.js.map +0 -1
  1172. package/dist/kolibri/controller-6cf7290f.js +0 -4
  1173. package/dist/kolibri/controller-6cf7290f.js.map +0 -1
  1174. package/dist/kolibri/controller-7a31f90c.js +0 -4
  1175. package/dist/kolibri/controller-7a31f90c.js.map +0 -1
  1176. package/dist/kolibri/controller-a6ee4b4e.js +0 -4
  1177. package/dist/kolibri/controller-a6ee4b4e.js.map +0 -1
  1178. package/dist/kolibri/controller-icon-c6452eb6.js +0 -4
  1179. package/dist/kolibri/controller-icon-c6452eb6.js.map +0 -1
  1180. package/dist/kolibri/custom-class-88b26aed.js +0 -4
  1181. package/dist/kolibri/custom-class-88b26aed.js.map +0 -1
  1182. package/dist/kolibri/dev.utils-0ab1db26.js +0 -4
  1183. package/dist/kolibri/dev.utils-0ab1db26.js.map +0 -1
  1184. package/dist/kolibri/devtools-7e61d88e.js +0 -4
  1185. package/dist/kolibri/has-closer-20151565.js +0 -4
  1186. package/dist/kolibri/has-closer-20151565.js.map +0 -1
  1187. package/dist/kolibri/hide-label-77f04b95.js +0 -4
  1188. package/dist/kolibri/hide-label-77f04b95.js.map +0 -1
  1189. package/dist/kolibri/i18n-6d198e44.js +0 -4
  1190. package/dist/kolibri/i18n-6d198e44.js.map +0 -1
  1191. package/dist/kolibri/icons-b8a4d706.js +0 -4
  1192. package/dist/kolibri/icons-b8a4d706.js.map +0 -1
  1193. package/dist/kolibri/image-source-b0d375f8.js +0 -4
  1194. package/dist/kolibri/image-source-b0d375f8.js.map +0 -1
  1195. package/dist/kolibri/index-0bc40dc4.js +0 -5
  1196. package/dist/kolibri/index-0bc40dc4.js.map +0 -1
  1197. package/dist/kolibri/index-328ae082.js +0 -4
  1198. package/dist/kolibri/index-328ae082.js.map +0 -1
  1199. package/dist/kolibri/index-9b519d08.js +0 -4
  1200. package/dist/kolibri/label-8090b77e.js.map +0 -1
  1201. package/dist/kolibri/open-79862e90.js +0 -4
  1202. package/dist/kolibri/open-79862e90.js.map +0 -1
  1203. package/dist/kolibri/prop.validators-4ca765d6.js +0 -4
  1204. package/dist/kolibri/prop.validators-4ca765d6.js.map +0 -1
  1205. package/dist/kolibri/rows-dcbe61f8.js +0 -4
  1206. package/dist/kolibri/rows-dcbe61f8.js.map +0 -1
  1207. package/dist/kolibri/show-77b6a5a1.js +0 -4
  1208. package/dist/kolibri/show-77b6a5a1.js.map +0 -1
  1209. package/dist/kolibri/suggestions-7899c154.js.map +0 -1
  1210. package/dist/kolibri/tab-index-675a3daa.js +0 -4
  1211. package/dist/kolibri/tab-index-675a3daa.js.map +0 -1
  1212. package/dist/kolibri/toaster-ce50f062.js +0 -4
  1213. package/dist/kolibri/toaster-eb99e2fa.js +0 -4
  1214. package/dist/kolibri/toaster-eb99e2fa.js.map +0 -1
  1215. package/dist/kolibri/tooltip-align-9cb0b18e.js +0 -4
  1216. package/dist/kolibri/tooltip-align-9cb0b18e.js.map +0 -1
  1217. package/dist/kolibri/validation-24372ccc.js.map +0 -1
  1218. package/dist/kolibri/validation-4f6082a5.js +0 -4
  1219. package/dist/kolibri/validation-4f6082a5.js.map +0 -1
  1220. package/dist/types/types/props/aria-current.d.ts +0 -12
  1221. /package/dist/cjs/{bund-f5184e9e.js → bund-4be96755.js} +0 -0
  1222. /package/dist/cjs/{details-synced-open-state-01d46fbc.js → details-synced-open-state-e88811c7.js} +0 -0
  1223. /package/dist/cjs/{events-a0c291ce.js → events-e348a615.js} +0 -0
  1224. /package/dist/cjs/{reprod-accordion-does-not-toggle-with-open-53004853.js → reprod-accordion-does-not-toggle-with-open-092e559d.js} +0 -0
  1225. /package/dist/cjs/{reuse-786396d6.js → reuse-a4c8450e.js} +0 -0
  1226. /package/dist/cjs/{unique-nav-labels-9784a4c5.js → unique-nav-labels-363e1d71.js} +0 -0
  1227. /package/dist/esm/{bund-056aa89a.js → bund-ad41b762.js} +0 -0
  1228. /package/dist/esm/{details-synced-open-state-66c07ea5.js → details-synced-open-state-45ecc035.js} +0 -0
  1229. /package/dist/esm/{events-2bb1065b.js → events-fa760b68.js} +0 -0
  1230. /package/dist/esm/{reprod-accordion-does-not-toggle-with-open-542a45b3.js → reprod-accordion-does-not-toggle-with-open-930fccf8.js} +0 -0
  1231. /package/dist/esm/{reuse-b3566e4c.js → reuse-d79ab469.js} +0 -0
  1232. /package/dist/esm/{unique-nav-labels-c6750f60.js → unique-nav-labels-62d9802d.js} +0 -0
  1233. /package/dist/kolibri/{InternalUnderlinedAccessKey-8b996006.js.map → InternalUnderlinedAccessKey-e3698cee.js.map} +0 -0
  1234. /package/dist/kolibri/{a11y.tipps-db7fb79f.js.map → a11y.tipps-f367a979.js.map} +0 -0
  1235. /package/dist/kolibri/{align-floating-elements-ebf0712d.js.map → align-floating-elements-cadb5c5b.js.map} +0 -0
  1236. /package/dist/kolibri/{bund-056aa89a.js → bund-ad41b762.js} +0 -0
  1237. /package/dist/kolibri/{bund-056aa89a.js.map → bund-ad41b762.js.map} +0 -0
  1238. /package/dist/kolibri/{controller-18ea7b97.js.map → controller-e23535f2.js.map} +0 -0
  1239. /package/dist/kolibri/{details-synced-open-state-66c07ea5.js → details-synced-open-state-45ecc035.js} +0 -0
  1240. /package/dist/kolibri/{details-synced-open-state-66c07ea5.js.map → details-synced-open-state-45ecc035.js.map} +0 -0
  1241. /package/dist/kolibri/{devtools-7e61d88e.js.map → devtools-308d0386.js.map} +0 -0
  1242. /package/dist/kolibri/{events-2bb1065b.js → events-fa760b68.js} +0 -0
  1243. /package/dist/kolibri/{events-2bb1065b.js.map → events-fa760b68.js.map} +0 -0
  1244. /package/dist/kolibri/{index-9b519d08.js.map → index-a4a4df51.js.map} +0 -0
  1245. /package/dist/kolibri/{reprod-accordion-does-not-toggle-with-open-542a45b3.js → reprod-accordion-does-not-toggle-with-open-930fccf8.js} +0 -0
  1246. /package/dist/kolibri/{reprod-accordion-does-not-toggle-with-open-542a45b3.js.map → reprod-accordion-does-not-toggle-with-open-930fccf8.js.map} +0 -0
  1247. /package/dist/kolibri/{reuse-b3566e4c.js → reuse-d79ab469.js} +0 -0
  1248. /package/dist/kolibri/{reuse-b3566e4c.js.map → reuse-d79ab469.js.map} +0 -0
  1249. /package/dist/kolibri/{toaster-ce50f062.js.map → toaster-f89ddf4f.js.map} +0 -0
  1250. /package/dist/kolibri/{unique-nav-labels-c6750f60.js → unique-nav-labels-62d9802d.js} +0 -0
  1251. /package/dist/kolibri/{unique-nav-labels-c6750f60.js.map → unique-nav-labels-62d9802d.js.map} +0 -0
@@ -1 +1 @@
1
- {"file":"kol-button-link.js","mappings":";;;;;;;;;;AAAA,MAAM,eAAe,GAAG,66GAA66G;;MCwBx7GA,eAAa;;;;;IAGR,aAAQ,GAAG,CAAC,GAA4B;MACxD,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;KAC/B,CAAC;;;;;qBAyDmC,KAAK;sBAOJ,KAAK;;;;;;;;;yBA8CW,KAAK;iBAKf,QAAQ;;;EAjH7C,MAAM;IACZ,QACC,EAAC,IAAI,QACJ,qBACC,GAAG,EAAE,IAAI,CAAC,QAAQ,EAClB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,KAAK,EAAC,MAAM,EACZ,oBAAoB,EAAE,IAAI,CAAC,oBAAoB,EAC/C,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,MAAM,EAAE,IAAI,CAAC,MAAM,IAEnB,YAAM,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,GAAQ,CAC1B,CACV,EACN;GACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["KolButtonLink"],"sources":["src/components/button-link/style.css?tag=kol-button-link&mode=default&encapsulation=shadow","src/components/button-link/component.tsx"],"sourcesContent":["@import url(../link.css);\n","import { Component, Element, h, Host, JSX, Prop } from '@stencil/core';\n\nimport { Stringified } from '../../types/common';\nimport { AlternativeButtonLinkRolePropType } from '../../types/props/alternative-button-link-role';\nimport { ButtonCallbacksPropType } from '../../types/props/button-callbacks';\nimport { ButtonTypePropType } from '../../types/props/button-type';\nimport { IconsPropType } from '../../types/props/icons';\nimport { IdPropType } from '../../types/props/id';\nimport { LabelWithExpertSlotPropType } from '../../types/props/label';\nimport { NamePropType } from '../../types/props/name';\nimport { SyncValueBySelectorPropType } from '../../types/props/sync-value-by-selector';\nimport { TooltipAlignPropType } from '../../types/props/tooltip-align';\nimport { StencilUnknown } from '../../types/unknown';\nimport { propagateFocus } from '../../utils/reuse';\nimport { Props } from './types';\nimport { AccessKeyPropType } from '../../types/props/access-key';\n\n@Component({\n\ttag: 'kol-button-link',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolButtonLink implements Props {\n\t@Element() private readonly host?: HTMLKolButtonLinkElement;\n\n\tprivate readonly catchRef = (ref?: HTMLKolButtonWcElement) => {\n\t\tpropagateFocus(this.host, ref);\n\t};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<kol-button-wc\n\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\t_accessKey={this._accessKey}\n\t\t\t\t\t_ariaControls={this._ariaControls}\n\t\t\t\t\t_ariaExpanded={this._ariaExpanded}\n\t\t\t\t\t_ariaSelected={this._ariaSelected}\n\t\t\t\t\t_disabled={this._disabled}\n\t\t\t\t\t_icons={this._icons}\n\t\t\t\t\t_hideLabel={this._hideLabel}\n\t\t\t\t\t_id={this._id}\n\t\t\t\t\t_label={this._label}\n\t\t\t\t\t_name={this._name}\n\t\t\t\t\t_on={this._on}\n\t\t\t\t\t_role=\"link\"\n\t\t\t\t\t_syncValueBySelector={this._syncValueBySelector}\n\t\t\t\t\t_tabIndex={this._tabIndex}\n\t\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t\t_type={this._type}\n\t\t\t\t\t_value={this._value}\n\t\t\t\t>\n\t\t\t\t\t<slot name=\"expert\" slot=\"expert\"></slot>\n\t\t\t\t</kol-button-wc>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the elements access key.\n\t */\n\t@Prop() public _accessKey?: AccessKeyPropType;\n\n\t/**\n\t * Defines which elements are controlled by this component. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls)\n\t */\n\t@Prop() public _ariaControls?: string;\n\n\t/**\n\t * Defines whether the interactive element of the component expanded something. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)\n\t * @TODO: Change type back to `AriaExpandedPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _ariaExpanded?: boolean;\n\n\t/**\n\t * Defines whether the interactive element of the component is selected (e.g. role=tab). (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected)\n\t * @TODO: Change type back to `AriaSelectedPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _ariaSelected?: boolean;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t * @TODO: Change type back to `DisabledPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Hides the caption by default and displays the caption text with a tooltip when the\n\t * interactive element is focused or the mouse is over it.\n\t * @TODO: Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hideLabel?: boolean = false;\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: IconsPropType;\n\n\t/**\n\t * Defines the internal ID of the primary component element.\n\t */\n\t@Prop() public _id?: IdPropType;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label!: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Defines the technical name of an input field.\n\t */\n\t@Prop() public _name?: NamePropType;\n\n\t/**\n\t * Gibt die EventCallback-Funktionen für die Button-Events an.\n\t */\n\t@Prop() public _on?: ButtonCallbacksPropType<StencilUnknown>;\n\n\t/**\n\t * Defines the role of the components primary element.\n\t */\n\t@Prop() public _role?: AlternativeButtonLinkRolePropType;\n\n\t/**\n\t * Selector for synchronizing the value with another input element.\n\t * @internal\n\t */\n\t@Prop() public _syncValueBySelector?: SyncValueBySelectorPropType;\n\n\t/**\n\t * Defines which tab-index the primary element of the component has. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)\n\t */\n\t@Prop() public _tabIndex?: number;\n\n\t/**\n\t * Defines where to show the Tooltip preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _tooltipAlign?: TooltipAlignPropType = 'top';\n\n\t/**\n\t * Defines either the type of the component or of the components interactive element.\n\t */\n\t@Prop() public _type?: ButtonTypePropType = 'button';\n\n\t/**\n\t * Defines the value that the button emits on click.\n\t */\n\t@Prop() public _value?: Stringified<StencilUnknown>;\n}\n"],"version":3}
1
+ {"file":"kol-button-link.js","mappings":";;;;;;;;;;AAAA,MAAM,eAAe,GAAG,4xIAA4xI;;MCwBvyIA,eAAa;;;;;QAGR,aAAQ,GAAG,CAAC,GAA4B;YACxD,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;SAC/B,CAAC;;;;;yBA+DmC,KAAK;0BAOJ,KAAK;;;;;;;;;6BA8CW,KAAK;qBAKf,QAAQ;;;IArH7C,MAAM,QAAQ;QACpB,OAAO,IAAI,CAAC,MAAM,CAAC;KACnB;IAEM,MAAM;QACZ,QACC,EAAC,IAAI,QACJ,qBACC,GAAG,EAAE,IAAI,CAAC,QAAQ,EAClB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,KAAK,EAAC,MAAM,EACZ,oBAAoB,EAAE,IAAI,CAAC,oBAAoB,EAC/C,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,MAAM,EAAE,IAAI,CAAC,MAAM,IAEnB,YAAM,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,GAAQ,CAC1B,CACV,EACN;KACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["KolButtonLink"],"sources":["src/components/button-link/style.css?tag=kol-button-link&mode=default&encapsulation=shadow","src/components/button-link/component.tsx"],"sourcesContent":["@import url(../link.css);\n","import { Component, Element, h, Host, JSX, Method, Prop } from '@stencil/core';\n\nimport { Stringified } from '../../types/common';\nimport { AlternativeButtonLinkRolePropType } from '../../types/props/alternative-button-link-role';\nimport { ButtonCallbacksPropType } from '../../types/props/button-callbacks';\nimport { ButtonTypePropType } from '../../types/props/button-type';\nimport { IconsPropType } from '../../types/props/icons';\nimport { IdPropType } from '../../types/props/id';\nimport { LabelWithExpertSlotPropType } from '../../types/props/label';\nimport { NamePropType } from '../../types/props/name';\nimport { SyncValueBySelectorPropType } from '../../types/props/sync-value-by-selector';\nimport { TooltipAlignPropType } from '../../types/props/tooltip-align';\nimport { StencilUnknown } from '../../types/unknown';\nimport { propagateFocus } from '../../utils/reuse';\nimport { Props } from './types';\nimport { AccessKeyPropType } from '../../types/props/access-key';\n\n@Component({\n\ttag: 'kol-button-link',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolButtonLink implements Props {\n\t@Element() private readonly host?: HTMLKolButtonLinkElement;\n\n\tprivate readonly catchRef = (ref?: HTMLKolButtonWcElement) => {\n\t\tpropagateFocus(this.host, ref);\n\t};\n\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\t@Method()\n\tpublic async getValue(): Promise<Stringified<StencilUnknown> | undefined> {\n\t\treturn this._value;\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<kol-button-wc\n\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\t_accessKey={this._accessKey}\n\t\t\t\t\t_ariaControls={this._ariaControls}\n\t\t\t\t\t_ariaExpanded={this._ariaExpanded}\n\t\t\t\t\t_ariaSelected={this._ariaSelected}\n\t\t\t\t\t_disabled={this._disabled}\n\t\t\t\t\t_icons={this._icons}\n\t\t\t\t\t_hideLabel={this._hideLabel}\n\t\t\t\t\t_id={this._id}\n\t\t\t\t\t_label={this._label}\n\t\t\t\t\t_name={this._name}\n\t\t\t\t\t_on={this._on}\n\t\t\t\t\t_role=\"link\"\n\t\t\t\t\t_syncValueBySelector={this._syncValueBySelector}\n\t\t\t\t\t_tabIndex={this._tabIndex}\n\t\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t\t_type={this._type}\n\t\t\t\t\t_value={this._value}\n\t\t\t\t>\n\t\t\t\t\t<slot name=\"expert\" slot=\"expert\"></slot>\n\t\t\t\t</kol-button-wc>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the elements access key.\n\t */\n\t@Prop() public _accessKey?: AccessKeyPropType;\n\n\t/**\n\t * Defines which elements are controlled by this component. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls)\n\t */\n\t@Prop() public _ariaControls?: string;\n\n\t/**\n\t * Defines whether the interactive element of the component expanded something. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)\n\t * @TODO: Change type back to `AriaExpandedPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _ariaExpanded?: boolean;\n\n\t/**\n\t * Defines whether the interactive element of the component is selected (e.g. role=tab). (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected)\n\t * @TODO: Change type back to `AriaSelectedPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _ariaSelected?: boolean;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t * @TODO: Change type back to `DisabledPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Hides the caption by default and displays the caption text with a tooltip when the\n\t * interactive element is focused or the mouse is over it.\n\t * @TODO: Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hideLabel?: boolean = false;\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: IconsPropType;\n\n\t/**\n\t * Defines the internal ID of the primary component element.\n\t */\n\t@Prop() public _id?: IdPropType;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label!: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Defines the technical name of an input field.\n\t */\n\t@Prop() public _name?: NamePropType;\n\n\t/**\n\t * Gibt die EventCallback-Funktionen für die Button-Events an.\n\t */\n\t@Prop() public _on?: ButtonCallbacksPropType<StencilUnknown>;\n\n\t/**\n\t * Defines the role of the components primary element.\n\t */\n\t@Prop() public _role?: AlternativeButtonLinkRolePropType;\n\n\t/**\n\t * Selector for synchronizing the value with another input element.\n\t * @internal\n\t */\n\t@Prop() public _syncValueBySelector?: SyncValueBySelectorPropType;\n\n\t/**\n\t * Defines which tab-index the primary element of the component has. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)\n\t */\n\t@Prop() public _tabIndex?: number;\n\n\t/**\n\t * Defines where to show the Tooltip preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _tooltipAlign?: TooltipAlignPropType = 'top';\n\n\t/**\n\t * Defines either the type of the component or of the components interactive element.\n\t */\n\t@Prop() public _type?: ButtonTypePropType = 'button';\n\n\t/**\n\t * Defines the value that the button emits on click.\n\t */\n\t@Prop() public _value?: Stringified<StencilUnknown>;\n}\n"],"version":3}
@@ -2,8 +2,8 @@ import type { Components, JSX } from "../types/components";
2
2
 
3
3
  interface KolButtonWc extends Components.KolButtonWc, HTMLElement {}
4
4
  export const KolButtonWc: {
5
- prototype: KolButtonWc;
6
- new (): KolButtonWc;
5
+ prototype: KolButtonWc;
6
+ new (): KolButtonWc;
7
7
  };
8
8
  /**
9
9
  * Used to define this component and all nested components recursively.
@@ -2,8 +2,8 @@ import type { Components, JSX } from "../types/components";
2
2
 
3
3
  interface KolButton extends Components.KolButton, HTMLElement {}
4
4
  export const KolButton: {
5
- prototype: KolButton;
6
- new (): KolButton;
5
+ prototype: KolButton;
6
+ new (): KolButton;
7
7
  };
8
8
  /**
9
9
  * Used to define this component and all nested components recursively.
@@ -2,8 +2,8 @@ import type { Components, JSX } from "../types/components";
2
2
 
3
3
  interface KolCard extends Components.KolCard, HTMLElement {}
4
4
  export const KolCard: {
5
- prototype: KolCard;
6
- new (): KolCard;
5
+ prototype: KolCard;
6
+ new (): KolCard;
7
7
  };
8
8
  /**
9
9
  * Used to define this component and all nested components recursively.
@@ -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 translate}from"./i18n.js";import{v as validateHasCloser}from"./has-closer.js";import{v as validateLabel}from"./label.js";import{v as setState}from"./prop.validators.js";import{w as watchHeadingLevel,d as defineCustomElement$5}from"./component4.js";import{d as defineCustomElement$6}from"./component5.js";import{d as defineCustomElement$4}from"./component.js";import{d as defineCustomElement$3}from"./component2.js";import{d as defineCustomElement$2}from"./component3.js";const defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\t:host > div.card {\n\t\theight: 100%;\n\t\tposition: relative;\n\t}\n\n\t.close {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tright: 0;\n\t}\n}\n",KolCard$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.close=()=>{var t;void 0!==(null===(t=this._on)||void 0===t?void 0:t.onClose)&&this._on.onClose(new Event("Close"))},this.on={onClick:this.close},this.validateOnValue=t=>"object"==typeof t&&null!==t&&"function"==typeof t.onClose,this._on=void 0,this._hasCloser=!1,this._label=void 0,this._level=1,this.state={_label:"…"}}render(){return h(Host,null,h("div",{class:"card"},h("div",{class:"header"},h("kol-heading-wc",{_label:this.state._label,_level:this.state._level})),h("div",{class:"content"},h("slot",null)),this.state._hasCloser&&h("kol-button-wc",{class:"close",_hideLabel:!0,_icons:{left:{icon:"codicon codicon-close"}},_label:translate("kol-close"),_on:this.on,_tooltipAlign:"left"})))}validateOn(t){this.validateOnValue(t)&&setState(this,"_on",{onClose:t.onClose})}validateHasCloser(t){validateHasCloser(this,t)}validateLabel(t){validateLabel(this,t)}validateLevel(t){watchHeadingLevel(this,t)}componentWillLoad(){this.validateHasCloser(this._hasCloser),this.validateLabel(this._label),this.validateLevel(this._level),this.validateOn(this._on)}static get watchers(){return{_on:["validateOn"],_hasCloser:["validateHasCloser"],_label:["validateLabel"],_level:["validateLevel"]}}static get style(){return{default:defaultStyleCss}}},[33,"kol-card",{_on:[16],_hasCloser:[4,"_has-closer"],_label:[1],_level:[2],state:[32]},void 0,{_on:["validateOn"],_hasCloser:["validateHasCloser"],_label:["validateLabel"],_level:["validateLevel"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-card","kol-button-wc","kol-heading-wc","kol-icon","kol-span-wc","kol-tooltip-wc"].forEach((t=>{switch(t){case"kol-card":customElements.get(t)||customElements.define(t,KolCard$1);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-span-wc":customElements.get(t)||defineCustomElement$3();break;case"kol-tooltip-wc":customElements.get(t)||defineCustomElement$2()}}))}const KolCard=KolCard$1,defineCustomElement=defineCustomElement$1;export{KolCard,defineCustomElement};
4
+ import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{a as translate}from"./i18n.js";import{v as validateHasCloser}from"./has-closer.js";import{v as validateLabel}from"./label.js";import{t as setState}from"./prop.validators.js";import{w as watchHeadingLevel,d as defineCustomElement$5}from"./component4.js";import{d as defineCustomElement$6}from"./component5.js";import{d as defineCustomElement$4}from"./component.js";import{d as defineCustomElement$3}from"./component2.js";import{d as defineCustomElement$2}from"./component3.js";const defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * No element should be used without a background and font color whose contrast ratio has\n\t\t * not been checked. By initially setting the background color to white and the font color\n\t\t * to black, the contrast ratio is ensured and explicit adjustment is forced.\n\t\t */\n\t\tbackground-color: white;\n\t\tcolor: black;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\n\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n\tclip: rect(0 0 0 0);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tposition: absolute;\n\twhite-space: nowrap;\n\twidth: 1px;\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n\n\t/*\n\t * Ensure elements with hidden attribute to be actually not visible\n\t * @see https://meowni.ca/hidden.is.a.lie.html\n\t */\n\t[hidden] {\n\t\tdisplay: none !important;\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\t:host > div.card {\n\t\theight: 100%;\n\t\tposition: relative;\n\t\toutline: transparent solid 1px; /* Visible with forced colors */\n\t}\n\n\t.close {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tright: 0;\n\t}\n}\n",KolCard$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.close=()=>{var t;void 0!==(null===(t=this._on)||void 0===t?void 0:t.onClose)&&this._on.onClose(new Event("Close"))},this.on={onClick:this.close},this.validateOnValue=t=>"object"==typeof t&&null!==t&&"function"==typeof t.onClose,this._on=void 0,this._hasCloser=!1,this._label=void 0,this._level=1,this.state={_label:"…"}}render(){return h(Host,null,h("div",{class:"card"},h("div",{class:"header"},h("kol-heading-wc",{_label:this.state._label,_level:this.state._level})),h("div",{class:"content"},h("slot",null)),this.state._hasCloser&&h("kol-button-wc",{class:"close",_hideLabel:!0,_icons:{left:{icon:"codicon codicon-close"}},_label:translate("kol-close"),_on:this.on,_tooltipAlign:"left"})))}validateOn(t){this.validateOnValue(t)&&setState(this,"_on",{onClose:t.onClose})}validateHasCloser(t){validateHasCloser(this,t)}validateLabel(t){validateLabel(this,t)}validateLevel(t){watchHeadingLevel(this,t)}componentWillLoad(){this.validateHasCloser(this._hasCloser),this.validateLabel(this._label),this.validateLevel(this._level),this.validateOn(this._on)}static get watchers(){return{_on:["validateOn"],_hasCloser:["validateHasCloser"],_label:["validateLabel"],_level:["validateLevel"]}}static get style(){return{default:defaultStyleCss}}},[33,"kol-card",{_on:[16],_hasCloser:[4,"_has-closer"],_label:[1],_level:[2],state:[32]},void 0,{_on:["validateOn"],_hasCloser:["validateHasCloser"],_label:["validateLabel"],_level:["validateLevel"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-card","kol-button-wc","kol-heading-wc","kol-icon","kol-span-wc","kol-tooltip-wc"].forEach((t=>{switch(t){case"kol-card":customElements.get(t)||customElements.define(t,KolCard$1);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-span-wc":customElements.get(t)||defineCustomElement$3();break;case"kol-tooltip-wc":customElements.get(t)||defineCustomElement$2()}}))}const KolCard=KolCard$1,defineCustomElement=defineCustomElement$1;export{KolCard,defineCustomElement};
@@ -1 +1 @@
1
- {"file":"kol-card.js","mappings":";;;;;;;;;;;;;;AAAA,MAAM,eAAe,GAAG,u5FAAu5F;;MCqBl6FA,SAAO;;;;;IACF,UAAK,GAAG;;MACxB,IAAI,CAAA,MAAA,IAAI,CAAC,GAAG,0CAAE,OAAO,MAAK,SAAS,EAAE;QACpC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;OACrC;KACD,CAAC;IAEe,OAAE,GAAG;MACrB,OAAO,EAAE,IAAI,CAAC,KAAK;KACnB,CAAC;IAwDM,oBAAe,GAAG,CAAC,KAAc,KACxC,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,OAAQ,KAAmC,CAAC,OAAO,KAAK,UAAU,CAAC;;sBAjB7E,KAAK;;kBAUJ,CAAC;iBAER;MAC/B,MAAM,EAAE,GAAG;KACX;;EApDM,MAAM;IACZ,QACC,EAAC,IAAI,QACJ,WAAK,KAAK,EAAC,MAAM,IAChB,WAAK,KAAK,EAAC,QAAQ,IAClB,sBAAgB,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,GAAmB,CAClF,EACN,WAAK,KAAK,EAAC,SAAS,IACnB,eAAQ,CACH,EACL,IAAI,CAAC,KAAK,CAAC,UAAU,KACrB,qBACC,KAAK,EAAC,OAAO,EACb,UAAU,QACV,MAAM,EAAE;QACP,IAAI,EAAE;UACL,IAAI,EAAE,uBAAuB;SAC7B;OACD,EACD,MAAM,EAAE,SAAS,CAAC,WAAW,CAAC,EAC9B,GAAG,EAAE,IAAI,CAAC,EAAE,EACZ,aAAa,EAAC,MAAM,GACJ,CACjB,CACI,CACA,EACN;GACF;EA+BM,UAAU,CAAC,KAAiC;IAClD,IAAI,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE;MAChC,QAAQ,CAA4B,IAAI,EAAE,KAAK,EAAE;QAChD,OAAO,EAAG,KAAoC,CAAC,OAAO;OACtD,CAAC,CAAC;KACH;GACD;EAGM,iBAAiB,CAAC,KAAyB;IACjD,iBAAiB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;GAC/B;EAGM,aAAa,CAAC,KAAqB;IACzC,aAAa,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;GAC3B;EAGM,aAAa,CAAC,KAAoB;IACxC,iBAAiB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;GAC/B;EAEM,iBAAiB;IACvB,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACxC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAChC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAChC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;GAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["KolCard"],"sources":["src/components/card/style.css?tag=kol-card&mode=default&encapsulation=shadow","src/components/card/component.tsx"],"sourcesContent":["@import url(../style.css);\n@layer kol-component {\n\t:host > div.card {\n\t\theight: 100%;\n\t\tposition: relative;\n\t}\n\n\t.close {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tright: 0;\n\t}\n}\n","import { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { translate } from '../../i18n';\nimport { HeadingLevel } from '../../types/heading-level';\nimport { HasCloserPropType, validateHasCloser } from '../../types/props/has-closer';\nimport { LabelPropType, validateLabel } from '../../types/props/label';\nimport { setState } from '../../utils/prop.validators';\nimport { KoliBriAlertEventCallbacks } from '../alert/types';\nimport { watchHeadingLevel } from '../heading/validation';\nimport { API, KoliBriCardEventCallbacks, States } from './types';\n\n/**\n * @slot - Ermöglicht das Einfügen beliebigen HTML's in den Inhaltsbereich der Card.\n */\n@Component({\n\ttag: 'kol-card',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolCard implements API {\n\tprivate readonly close = () => {\n\t\tif (this._on?.onClose !== undefined) {\n\t\t\tthis._on.onClose(new Event('Close'));\n\t\t}\n\t};\n\n\tprivate readonly on = {\n\t\tonClick: this.close,\n\t};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<div class=\"card\">\n\t\t\t\t\t<div class=\"header\">\n\t\t\t\t\t\t<kol-heading-wc _label={this.state._label} _level={this.state._level}></kol-heading-wc>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"content\">\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t\t{this.state._hasCloser && (\n\t\t\t\t\t\t<kol-button-wc\n\t\t\t\t\t\t\tclass=\"close\"\n\t\t\t\t\t\t\t_hideLabel\n\t\t\t\t\t\t\t_icons={{\n\t\t\t\t\t\t\t\tleft: {\n\t\t\t\t\t\t\t\t\ticon: 'codicon codicon-close',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t_label={translate('kol-close')}\n\t\t\t\t\t\t\t_on={this.on}\n\t\t\t\t\t\t\t_tooltipAlign=\"left\"\n\t\t\t\t\t\t></kol-button-wc>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the event callback functions for the component.\n\t */\n\t@Prop() public _on?: KoliBriCardEventCallbacks;\n\n\t/**\n\t * Defines whether the element can be closed.\n\t * @TODO: Change type back to `HasCloserPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hasCloser?: boolean = false;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label!: LabelPropType;\n\n\t/**\n\t * Defines which H-level from 1-6 the heading has. 0 specifies no heading and is shown as bold text.\n\t */\n\t@Prop() public _level?: HeadingLevel = 1;\n\n\t@State() public state: States = {\n\t\t_label: '…', // '⚠'\n\t};\n\n\tprivate validateOnValue = (value: unknown): boolean =>\n\t\ttypeof value === 'object' && value !== null && typeof (value as KoliBriCardEventCallbacks).onClose === 'function';\n\n\t@Watch('_on')\n\tpublic validateOn(value?: KoliBriCardEventCallbacks): void {\n\t\tif (this.validateOnValue(value)) {\n\t\t\tsetState<KoliBriCardEventCallbacks>(this, '_on', {\n\t\t\t\tonClose: (value as KoliBriAlertEventCallbacks).onClose,\n\t\t\t});\n\t\t}\n\t}\n\n\t@Watch('_hasCloser')\n\tpublic validateHasCloser(value?: HasCloserPropType): void {\n\t\tvalidateHasCloser(this, value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelPropType): void {\n\t\tvalidateLabel(this, value);\n\t}\n\n\t@Watch('_level')\n\tpublic validateLevel(value?: HeadingLevel): void {\n\t\twatchHeadingLevel(this, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateHasCloser(this._hasCloser);\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateLevel(this._level);\n\t\tthis.validateOn(this._on);\n\t}\n}\n"],"version":3}
1
+ {"file":"kol-card.js","mappings":";;;;;;;;;;;;;;AAAA,MAAM,eAAe,GAAG,60HAA60H;;MCqBx1HA,SAAO;;;;;QACF,UAAK,GAAG;;YACxB,IAAI,CAAA,MAAA,IAAI,CAAC,GAAG,0CAAE,OAAO,MAAK,SAAS,EAAE;gBACpC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;aACrC;SACD,CAAC;QAEe,OAAE,GAAG;YACrB,OAAO,EAAE,IAAI,CAAC,KAAK;SACnB,CAAC;QAwDM,oBAAe,GAAG,CAAC,KAAc,KACxC,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,OAAQ,KAAmC,CAAC,OAAO,KAAK,UAAU,CAAC;;0BAjB7E,KAAK;;sBAUJ,CAAC;qBAER;YAC/B,MAAM,EAAE,GAAG;SACX;;IApDM,MAAM;QACZ,QACC,EAAC,IAAI,QACJ,WAAK,KAAK,EAAC,MAAM,IAChB,WAAK,KAAK,EAAC,QAAQ,IAClB,sBAAgB,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,GAAmB,CAClF,EACN,WAAK,KAAK,EAAC,SAAS,IACnB,eAAQ,CACH,EACL,IAAI,CAAC,KAAK,CAAC,UAAU,KACrB,qBACC,KAAK,EAAC,OAAO,EACb,UAAU,QACV,MAAM,EAAE;gBACP,IAAI,EAAE;oBACL,IAAI,EAAE,uBAAuB;iBAC7B;aACD,EACD,MAAM,EAAE,SAAS,CAAC,WAAW,CAAC,EAC9B,GAAG,EAAE,IAAI,CAAC,EAAE,EACZ,aAAa,EAAC,MAAM,GACJ,CACjB,CACI,CACA,EACN;KACF;IA+BM,UAAU,CAAC,KAAiC;QAClD,IAAI,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE;YAChC,QAAQ,CAA4B,IAAI,EAAE,KAAK,EAAE;gBAChD,OAAO,EAAG,KAAoC,CAAC,OAAO;aACtD,CAAC,CAAC;SACH;KACD;IAGM,iBAAiB,CAAC,KAAyB;QACjD,iBAAiB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;KAC/B;IAGM,aAAa,CAAC,KAAqB;QACzC,aAAa,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;KAC3B;IAGM,aAAa,CAAC,KAAoB;QACxC,iBAAiB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;KAC/B;IAEM,iBAAiB;QACvB,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACxC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["KolCard"],"sources":["src/components/card/style.css?tag=kol-card&mode=default&encapsulation=shadow","src/components/card/component.tsx"],"sourcesContent":["@import url(../style.css);\n@layer kol-component {\n\t:host > div.card {\n\t\theight: 100%;\n\t\tposition: relative;\n\t\toutline: transparent solid 1px; /* Visible with forced colors */\n\t}\n\n\t.close {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tright: 0;\n\t}\n}\n","import { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { translate } from '../../i18n';\nimport { HeadingLevel } from '../../types/heading-level';\nimport { HasCloserPropType, validateHasCloser } from '../../types/props/has-closer';\nimport { LabelPropType, validateLabel } from '../../types/props/label';\nimport { setState } from '../../utils/prop.validators';\nimport { KoliBriAlertEventCallbacks } from '../alert/types';\nimport { watchHeadingLevel } from '../heading/validation';\nimport { API, KoliBriCardEventCallbacks, States } from './types';\n\n/**\n * @slot - Ermöglicht das Einfügen beliebigen HTML's in den Inhaltsbereich der Card.\n */\n@Component({\n\ttag: 'kol-card',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolCard implements API {\n\tprivate readonly close = () => {\n\t\tif (this._on?.onClose !== undefined) {\n\t\t\tthis._on.onClose(new Event('Close'));\n\t\t}\n\t};\n\n\tprivate readonly on = {\n\t\tonClick: this.close,\n\t};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<div class=\"card\">\n\t\t\t\t\t<div class=\"header\">\n\t\t\t\t\t\t<kol-heading-wc _label={this.state._label} _level={this.state._level}></kol-heading-wc>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"content\">\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t\t{this.state._hasCloser && (\n\t\t\t\t\t\t<kol-button-wc\n\t\t\t\t\t\t\tclass=\"close\"\n\t\t\t\t\t\t\t_hideLabel\n\t\t\t\t\t\t\t_icons={{\n\t\t\t\t\t\t\t\tleft: {\n\t\t\t\t\t\t\t\t\ticon: 'codicon codicon-close',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t_label={translate('kol-close')}\n\t\t\t\t\t\t\t_on={this.on}\n\t\t\t\t\t\t\t_tooltipAlign=\"left\"\n\t\t\t\t\t\t></kol-button-wc>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the event callback functions for the component.\n\t */\n\t@Prop() public _on?: KoliBriCardEventCallbacks;\n\n\t/**\n\t * Defines whether the element can be closed.\n\t * @TODO: Change type back to `HasCloserPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hasCloser?: boolean = false;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label!: LabelPropType;\n\n\t/**\n\t * Defines which H-level from 1-6 the heading has. 0 specifies no heading and is shown as bold text.\n\t */\n\t@Prop() public _level?: HeadingLevel = 1;\n\n\t@State() public state: States = {\n\t\t_label: '…', // '⚠'\n\t};\n\n\tprivate validateOnValue = (value: unknown): boolean =>\n\t\ttypeof value === 'object' && value !== null && typeof (value as KoliBriCardEventCallbacks).onClose === 'function';\n\n\t@Watch('_on')\n\tpublic validateOn(value?: KoliBriCardEventCallbacks): void {\n\t\tif (this.validateOnValue(value)) {\n\t\t\tsetState<KoliBriCardEventCallbacks>(this, '_on', {\n\t\t\t\tonClose: (value as KoliBriAlertEventCallbacks).onClose,\n\t\t\t});\n\t\t}\n\t}\n\n\t@Watch('_hasCloser')\n\tpublic validateHasCloser(value?: HasCloserPropType): void {\n\t\tvalidateHasCloser(this, value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelPropType): void {\n\t\tvalidateLabel(this, value);\n\t}\n\n\t@Watch('_level')\n\tpublic validateLevel(value?: HeadingLevel): void {\n\t\twatchHeadingLevel(this, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateHasCloser(this._hasCloser);\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateLevel(this._level);\n\t\tthis.validateOn(this._on);\n\t}\n}\n"],"version":3}
@@ -2,8 +2,8 @@ import type { Components, JSX } from "../types/components";
2
2
 
3
3
  interface KolDetails extends Components.KolDetails, HTMLElement {}
4
4
  export const KolDetails: {
5
- prototype: KolDetails;
6
- new (): KolDetails;
5
+ prototype: KolDetails;
6
+ new (): KolDetails;
7
7
  };
8
8
  /**
9
9
  * Used to define this component and all nested components recursively.
@@ -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{v as validateLabel}from"./label.js";import{v as validateOpen}from"./open.js";import{t as tryToDispatchKoliBriEvent}from"./events.js";import{t as propagateFocus,v as setState}from"./prop.validators.js";import{d as defineCustomElement$3}from"./component.js";import{d as defineCustomElement$2}from"./component12.js";class DetailsAnimationController{constructor(t,e,n){this.detailsElement=t,this.summaryElement=e,this.contentElement=n,this.isClosing=!1,this.isExpanding=!1,this.summaryElement.addEventListener("click",this.handleSummaryClick.bind(this))}handleSummaryClick(t){t.preventDefault(),this.detailsElement.style.overflow="hidden",this.isClosing||!this.detailsElement.open?this.open():(this.isExpanding||this.detailsElement.open)&&this.collapse()}open(){var t;this.detailsElement.style.height=`${null!==(t=this.detailsElement.offsetHeight)&&void 0!==t?t:0}px`,this.detailsElement.open=!0,window.requestAnimationFrame(this.expand.bind(this))}expand(){this.isExpanding=!0,this.animateDetailsHeight(this.summaryElement.offsetHeight+this.contentElement.offsetHeight,"expand")}collapse(){this.isClosing=!0,this.animateDetailsHeight(this.summaryElement.offsetHeight,"collapse")}animateDetailsHeight(t,e){const n=this.detailsElement.offsetHeight;this.animation&&this.animation.cancel(),this.animation=this.detailsElement.animate({height:[`${n}px`,`${t}px`]},{duration:matchMedia("(prefers-reduced-motion)").matches?0:250,easing:"ease-out"}),this.animation.addEventListener("finish",(()=>{this.onAnimationFinish()}),{once:!0}),this.animation.addEventListener("cancel",(()=>{"expand"===e?this.isExpanding=!1:this.isClosing=!1}),{once:!0})}onAnimationFinish(){this.detailsElement.open=this.isExpanding,this.animation=void 0,this.isClosing=!1,this.isExpanding=!1,this.detailsElement.style.removeProperty("height"),this.detailsElement.style.removeProperty("overview")}}const defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\t:host {\n\t\tdisplay: block;\n\t}\n}\n\n@layer kol-component {\n\tdetails {\n\t\tdisplay: grid;\n\t}\n\n\tdetails > summary {\n\t\tcursor: pointer;\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\tdetails > summary > span {\n\t\tborder-bottom-color: grey;\n\t\tborder-bottom-style: solid;\n\t}\n\n\tdetails > summary:focus > span,\n\tdetails > summary:hover > span,\n\tdetails[open] > summary > span {\n\t\tborder-bottom-color: #000;\n\t}\n\n\tdetails > kol-indented-text {\n\t\tmargin: 0.25em 0 0 0.5em;\n\t}\n}\n.icon.is-open::part(icon) {\n\ttransform: rotate(90deg);\n}\n",KolDetails$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.catchRef=t=>{this.summaryElement=t,propagateFocus(this.host,this.summaryElement)},this.handleToggle=t=>{clearTimeout(this.toggleTimeout),this.toggleTimeout=setTimeout((()=>{var e,n,i,s;Boolean(null===(e=this.detailsElement)||void 0===e?void 0:e.open)!==this.state._open&&(this._open=Boolean(null===(n=this.detailsElement)||void 0===n?void 0:n.open),tryToDispatchKoliBriEvent("toggle",this.host,this._open),"function"==typeof(null===(i=this.state._on)||void 0===i?void 0:i.onToggle)&&(null===(s=this.state._on)||void 0===s||s.onToggle(t,this._open)))}),25)},this._label=void 0,this._on=void 0,this._open=!1,this.state={_label:"…",_on:{}}}render(){return h(Host,null,h("details",{ref:t=>{this.detailsElement=t},onToggle:this.handleToggle},h("summary",{ref:this.catchRef},h("kol-icon",{_label:"",_icons:"codicon codicon-chevron-right",class:"icon "+(this.state._open?"is-open":"")}),h("span",null,this.state._label)),h("div",{"aria-hidden":!1===this.state._open?"true":void 0,class:"content",ref:t=>this.contentElement=t},h("kol-indented-text",null,h("slot",null)))))}validateLabel(t){validateLabel(this,t)}validateOn(t){"object"==typeof t&&null!==t&&"function"==typeof t.onToggle&&setState(this,"_on",t)}validateOpen(t){validateOpen(this,t)}componentWillLoad(){this.validateLabel(this._label),this.validateOn(this._on),this.validateOpen(this._open)}componentDidLoad(){if(this.detailsElement&&this.summaryElement&&this.contentElement){const t=new DetailsAnimationController(this.detailsElement,this.summaryElement,this.contentElement);this.state._open&&t.open()}}get host(){return this}static get watchers(){return{_label:["validateLabel"],_on:["validateOn"],_open:["validateOpen"]}}static get style(){return{default:defaultStyleCss}}},[33,"kol-details",{_label:[1],_on:[16],_open:[1540],state:[32]},void 0,{_label:["validateLabel"],_on:["validateOn"],_open:["validateOpen"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-details","kol-icon","kol-indented-text"].forEach((t=>{switch(t){case"kol-details":customElements.get(t)||customElements.define(t,KolDetails$1);break;case"kol-icon":customElements.get(t)||defineCustomElement$3();break;case"kol-indented-text":customElements.get(t)||defineCustomElement$2()}}))}const KolDetails=KolDetails$1,defineCustomElement=defineCustomElement$1;export{KolDetails,defineCustomElement};
4
+ import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{v as validateLabel}from"./label.js";import{v as validateOpen}from"./open.js";import{t as tryToDispatchKoliBriEvent}from"./events.js";import{r as propagateFocus,t as setState}from"./prop.validators.js";import{d as defineCustomElement$3}from"./component.js";import{d as defineCustomElement$2}from"./component12.js";class DetailsAnimationController{constructor(t,n,e){this.detailsElement=t,this.summaryElement=n,this.contentElement=e,this.isClosing=!1,this.isExpanding=!1,this.summaryElement.addEventListener("click",this.handleSummaryClick.bind(this))}handleSummaryClick(t){t.preventDefault(),this.isClosing||!this.detailsElement.open?this.open():(this.isExpanding||this.detailsElement.open)&&this.collapse()}open(){this.detailsElement.open=!0,window.requestAnimationFrame(this.expand.bind(this))}expand(){this.isExpanding=!0,this.animateContentHeight("expand")}collapse(){this.isClosing=!0,this.animateContentHeight("collapse")}animateContentHeight(t){let n="expand"===t?0:this.contentElement.offsetHeight,e="expand"===t?this.contentElement.offsetHeight:0;this.animation&&(n=this.contentElement.offsetHeight,this.animation.cancel(),"expand"===t&&(e=this.contentElement.offsetHeight)),this.animation=this.contentElement.animate({height:[`${n}px`,`${e}px`]},{duration:matchMedia("(prefers-reduced-motion)").matches?0:250,easing:"ease-out"}),this.animation.addEventListener("finish",(()=>{this.onAnimationFinish()}),{once:!0}),this.animation.addEventListener("cancel",(()=>{"expand"===t?this.isExpanding=!1:this.isClosing=!1}),{once:!0})}onAnimationFinish(){this.detailsElement.open=this.isExpanding,this.animation=void 0,this.isClosing=!1,this.isExpanding=!1}}const defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * No element should be used without a background and font color whose contrast ratio has\n\t\t * not been checked. By initially setting the background color to white and the font color\n\t\t * to black, the contrast ratio is ensured and explicit adjustment is forced.\n\t\t */\n\t\tbackground-color: white;\n\t\tcolor: black;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\n\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n\tclip: rect(0 0 0 0);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tposition: absolute;\n\twhite-space: nowrap;\n\twidth: 1px;\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n\n\t/*\n\t * Ensure elements with hidden attribute to be actually not visible\n\t * @see https://meowni.ca/hidden.is.a.lie.html\n\t */\n\t[hidden] {\n\t\tdisplay: none !important;\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\t:host {\n\t\tdisplay: block;\n\t}\n}\n\n@layer kol-component {\n\tdetails {\n\t\tdisplay: grid;\n\t}\n\n\tdetails > summary {\n\t\tcursor: pointer;\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\tdetails > summary > span {\n\t\tborder-bottom-color: grey;\n\t\tborder-bottom-style: solid;\n\t}\n\n\tdetails > summary:focus > span,\n\tdetails > summary:hover > span,\n\tdetails[open] > summary > span {\n\t\tborder-bottom-color: #000;\n\t}\n\n\t.content {\n\t\toverflow: hidden;\n\t}\n\n\tdetails > kol-indented-text {\n\t\tmargin: 0.25em 0 0 0.5em;\n\t}\n\n\t.icon.is-open::part(icon) {\n\t\ttransform: rotate(90deg);\n\t}\n}\n",KolDetails$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.catchRef=t=>{this.summaryElement=t,propagateFocus(this.host,this.summaryElement)},this.handleToggle=t=>{clearTimeout(this.toggleTimeout),this.toggleTimeout=setTimeout((()=>{var n,e,i,o;Boolean(null===(n=this.detailsElement)||void 0===n?void 0:n.open)!==this.state._open&&(this._open=Boolean(null===(e=this.detailsElement)||void 0===e?void 0:e.open),tryToDispatchKoliBriEvent("toggle",this.host,this._open),"function"==typeof(null===(i=this.state._on)||void 0===i?void 0:i.onToggle)&&(null===(o=this.state._on)||void 0===o||o.onToggle(t,this._open)))}),25)},this._label=void 0,this._on=void 0,this._open=!1,this.state={_label:"…",_on:{}}}render(){return h(Host,null,h("details",{ref:t=>{this.detailsElement=t},onToggle:this.handleToggle},h("summary",{ref:this.catchRef},h("kol-icon",{_label:"",_icons:"codicon codicon-chevron-right",class:"icon "+(this.state._open?"is-open":"")}),h("span",null,this.state._label)),h("div",{"aria-hidden":!1===this.state._open?"true":void 0,class:"content",ref:t=>this.contentElement=t},h("kol-indented-text",null,h("slot",null)))))}validateLabel(t){validateLabel(this,t)}validateOn(t){"object"==typeof t&&null!==t&&"function"==typeof t.onToggle&&setState(this,"_on",t)}validateOpen(t){validateOpen(this,t)}componentWillLoad(){this.validateLabel(this._label),this.validateOn(this._on),this.validateOpen(this._open)}componentDidLoad(){if(this.detailsElement&&this.summaryElement&&this.contentElement){const t=new DetailsAnimationController(this.detailsElement,this.summaryElement,this.contentElement);this.state._open&&t.open()}}get host(){return this}static get watchers(){return{_label:["validateLabel"],_on:["validateOn"],_open:["validateOpen"]}}static get style(){return{default:defaultStyleCss}}},[33,"kol-details",{_label:[1],_on:[16],_open:[1540],state:[32]},void 0,{_label:["validateLabel"],_on:["validateOn"],_open:["validateOpen"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-details","kol-icon","kol-indented-text"].forEach((t=>{switch(t){case"kol-details":customElements.get(t)||customElements.define(t,KolDetails$1);break;case"kol-icon":customElements.get(t)||defineCustomElement$3();break;case"kol-indented-text":customElements.get(t)||defineCustomElement$2()}}))}const KolDetails=KolDetails$1,defineCustomElement=defineCustomElement$1;export{KolDetails,defineCustomElement};
@@ -1 +1 @@
1
- {"file":"kol-details.js","mappings":";;;;;;;;;;;MAEqB,0BAA0B;EAK9C,YAAoB,cAAkC,EAAU,cAA2B,EAAU,cAA2B;IAA5G,mBAAc,GAAd,cAAc,CAAoB;IAAU,mBAAc,GAAd,cAAc,CAAa;IAAU,mBAAc,GAAd,cAAc,CAAa;IAHxH,cAAS,GAAG,KAAK,CAAC;IAClB,gBAAW,GAAG,KAAK,CAAC;IAG3B,IAAI,CAAC,cAAc,CAAC,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;GAClF;EAEO,kBAAkB,CAAC,KAAiB;IAC3C,KAAK,CAAC,cAAc,EAAE,CAAC;IAEvB,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC9C,IAAI,IAAI,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE;MAChD,IAAI,CAAC,IAAI,EAAE,CAAC;KACZ;SAAM,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE;MACxD,IAAI,CAAC,QAAQ,EAAE,CAAC;KAChB;GACD;EAEM,IAAI;;IAKV,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,MAAM,GAAG,GAAG,MAAA,IAAI,CAAC,cAAc,CAAC,YAAY,mCAAI,CAAC,IAAI,CAAC;IAChF,IAAI,CAAC,cAAc,CAAC,IAAI,GAAG,IAAI,CAAC;IAChC,MAAM,CAAC,qBAAqB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;GACrD;EAEO,MAAM;IACb,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;IACxB,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,cAAc,CAAC,YAAY,GAAG,IAAI,CAAC,cAAc,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;GACzG;EAEO,QAAQ;IACf,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;IACtB,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,cAAc,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;GACxE;EAEO,oBAAoB,CAAC,SAAiB,EAAE,SAAgC;IAC/E,MAAM,WAAW,GAAG,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC;IAErD,IAAI,IAAI,CAAC,SAAS,EAAE;MACnB,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC;KACxB;IAED,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,CAC3C;MACC,MAAM,EAAE,CAAC,GAAG,WAAW,IAAI,EAAE,GAAG,SAAS,IAAI,CAAC;KAC9C,EACD;MACC,QAAQ,EAAE,UAAU,CAAC,0BAA0B,CAAC,CAAC,OAAO,GAAG,CAAC,GAAG,GAAG;MAClE,MAAM,EAAE,UAAU;KAClB,CACD,CAAC;IAEF,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAC9B,QAAQ,EACR;MACC,IAAI,CAAC,iBAAiB,EAAE,CAAC;KACzB,EACD,EAAE,IAAI,EAAE,IAAI,EAAE,CACd,CAAC;IACF,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAC9B,QAAQ,EACR;MACC,IAAI,SAAS,KAAK,QAAQ,EAAE;QAC3B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;OACzB;WAAM;QACN,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;OACvB;KACD,EACD,EAAE,IAAI,EAAE,IAAI,EAAE,CACd,CAAC;GACF;EAEO,iBAAiB;IACxB,IAAI,CAAC,cAAc,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC;IAC5C,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC3B,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;IACvB,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;IACzB,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;IACnD,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;GACrD;;;ACtFF,MAAM,eAAe,GAAG,60GAA60G;;MCoBx1GA,YAAU;;;;;IAML,aAAQ,GAAG,CAAC,GAAiB;MAC7C,IAAI,CAAC,cAAc,GAAG,GAAG,CAAC;MAC1B,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;KAC/C,CAAC;IAgFM,iBAAY,GAAG,CAAC,KAAY;MACnC,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;MACjC,IAAI,CAAC,aAAa,GAAG,UAAU,CAAC;;QAC/B,MAAM,IAAI,GAAG,OAAO,CAAC,MAAA,IAAI,CAAC,cAAc,0CAAE,IAAI,CAAC,CAAC;QAChD,IAAI,IAAI,KAAK,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE;UAE9B,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,MAAA,IAAI,CAAC,cAAc,0CAAE,IAAI,CAAC,CAAC;UAGhD,yBAAyB,CAAC,QAAQ,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;UAG3D,IAAI,QAAO,MAAA,IAAI,CAAC,KAAK,CAAC,GAAG,0CAAE,QAAQ,CAAA,KAAK,UAAU,EAAE;YACnD,MAAA,IAAI,CAAC,KAAK,CAAC,GAAG,0CAAE,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;WAC5C;SACD;OACD,EAAE,EAAE,CAAC,CAAC;KACP,CAAC;;;iBA1D+D,KAAK;iBAEtC;MAC/B,MAAM,EAAE,GAAG;MACX,GAAG,EAAE,EAAE;KACP;;EA1CM,MAAM;IACZ,QACC,EAAC,IAAI,QACJ,eACC,GAAG,EAAE,CAAC,EAAE;QACP,IAAI,CAAC,cAAc,GAAG,EAAwB,CAAC;OAC/C,EACD,QAAQ,EAAE,IAAI,CAAC,YAAY,IAE3B,eAAS,GAAG,EAAE,IAAI,CAAC,QAAQ,IAC1B,gBAAU,MAAM,EAAC,EAAE,EAAC,MAAM,EAAC,+BAA+B,EAAC,KAAK,EAAE,QAAQ,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,SAAS,GAAG,EAAE,EAAE,GAAI,EACjH,gBAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAQ,CACvB,EACV,0BAAkB,IAAI,CAAC,KAAK,CAAC,KAAK,KAAK,KAAK,GAAG,MAAM,GAAG,SAAS,EAAE,KAAK,EAAC,SAAS,EAAC,GAAG,EAAE,CAAC,OAAO,MAAM,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC,IACnI,6BACC,eAAQ,CACW,CACf,CACG,CACJ,EACN;GACF;EAwBM,aAAa,CAAC,KAAqB;IACzC,aAAa,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;GAC3B;EAGM,UAAU,CAAC,EAAmB;IACpC,IAAI,OAAO,EAAE,KAAK,QAAQ,IAAI,EAAE,KAAK,IAAI,IAAI,OAAO,EAAE,CAAC,QAAQ,KAAK,UAAU,EAAE;MAC/E,QAAQ,CAAiB,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;KAC1C;GACD;EAGM,YAAY,CAAC,KAAe;IAClC,YAAY,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;GAC1B;EAEM,iBAAiB;IACvB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAChC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC1B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;GAC9B;EAEM,gBAAgB;IACtB,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,cAAc,EAAE;MACtE,MAAM,mBAAmB,GAAG,IAAI,0BAA0B,CAAC,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;MAC1H,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE;QACrB,mBAAmB,CAAC,IAAI,EAAE,CAAC;OAC3B;KACD;GACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["KolDetails"],"sources":["src/components/details/DetailsAnimationController.ts","src/components/details/style.css?tag=kol-details&mode=default&encapsulation=shadow","src/components/details/component.tsx"],"sourcesContent":["/* Heavily inspired by: https://codepen.io/Mamboleoo/pen/QWEpLqm */\n\nexport default class DetailsAnimationController {\n\tprivate animation?: Animation;\n\tprivate isClosing = false;\n\tprivate isExpanding = false;\n\n\tconstructor(private detailsElement: HTMLDetailsElement, private summaryElement: HTMLElement, private contentElement: HTMLElement) {\n\t\tthis.summaryElement.addEventListener('click', this.handleSummaryClick.bind(this));\n\t}\n\n\tprivate handleSummaryClick(event: MouseEvent) {\n\t\tevent.preventDefault();\n\n\t\tthis.detailsElement.style.overflow = 'hidden';\n\t\tif (this.isClosing || !this.detailsElement.open) {\n\t\t\tthis.open();\n\t\t} else if (this.isExpanding || this.detailsElement.open) {\n\t\t\tthis.collapse();\n\t\t}\n\t}\n\n\tpublic open() {\n\t\t/**\n\t\t * The Jest test framework does not support the `offsetHeight` property on the `details` element.\n\t\t * This is a workaround to make the tests pass (?? 0).\n\t\t */\n\t\tthis.detailsElement.style.height = `${this.detailsElement.offsetHeight ?? 0}px`;\n\t\tthis.detailsElement.open = true;\n\t\twindow.requestAnimationFrame(this.expand.bind(this));\n\t}\n\n\tprivate expand() {\n\t\tthis.isExpanding = true;\n\t\tthis.animateDetailsHeight(this.summaryElement.offsetHeight + this.contentElement.offsetHeight, 'expand');\n\t}\n\n\tprivate collapse() {\n\t\tthis.isClosing = true;\n\t\tthis.animateDetailsHeight(this.summaryElement.offsetHeight, 'collapse');\n\t}\n\n\tprivate animateDetailsHeight(endHeight: number, direction: 'expand' | 'collapse') {\n\t\tconst startHeight = this.detailsElement.offsetHeight;\n\n\t\tif (this.animation) {\n\t\t\tthis.animation.cancel();\n\t\t}\n\n\t\tthis.animation = this.detailsElement.animate(\n\t\t\t{\n\t\t\t\theight: [`${startHeight}px`, `${endHeight}px`],\n\t\t\t},\n\t\t\t{\n\t\t\t\tduration: matchMedia('(prefers-reduced-motion)').matches ? 0 : 250,\n\t\t\t\teasing: 'ease-out',\n\t\t\t}\n\t\t);\n\n\t\tthis.animation.addEventListener(\n\t\t\t'finish',\n\t\t\t() => {\n\t\t\t\tthis.onAnimationFinish();\n\t\t\t},\n\t\t\t{ once: true }\n\t\t);\n\t\tthis.animation.addEventListener(\n\t\t\t'cancel',\n\t\t\t() => {\n\t\t\t\tif (direction === 'expand') {\n\t\t\t\t\tthis.isExpanding = false;\n\t\t\t\t} else {\n\t\t\t\t\tthis.isClosing = false;\n\t\t\t\t}\n\t\t\t},\n\t\t\t{ once: true }\n\t\t);\n\t}\n\n\tprivate onAnimationFinish() {\n\t\tthis.detailsElement.open = this.isExpanding;\n\t\tthis.animation = undefined;\n\t\tthis.isClosing = false;\n\t\tthis.isExpanding = false;\n\t\tthis.detailsElement.style.removeProperty('height');\n\t\tthis.detailsElement.style.removeProperty('overview');\n\t}\n}\n","@import url(../style.css);\n@import url(../host-display-block.css);\n@layer kol-component {\n\tdetails {\n\t\tdisplay: grid;\n\t}\n\n\tdetails > summary {\n\t\tcursor: pointer;\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\tdetails > summary > span {\n\t\tborder-bottom-color: grey;\n\t\tborder-bottom-style: solid;\n\t}\n\n\tdetails > summary:focus > span,\n\tdetails > summary:hover > span,\n\tdetails[open] > summary > span {\n\t\tborder-bottom-color: #000;\n\t}\n\n\tdetails > kol-indented-text {\n\t\tmargin: 0.25em 0 0 0.5em;\n\t}\n}\n.icon.is-open::part(icon) {\n\ttransform: rotate(90deg);\n}\n","import { Component, Element, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { LabelPropType, validateLabel } from '../../types/props/label';\nimport { validateOpen } from '../../types/props/open';\nimport { tryToDispatchKoliBriEvent } from '../../utils/events';\nimport { setState } from '../../utils/prop.validators';\nimport DetailsAnimationController from './DetailsAnimationController';\nimport { API, EventCallbacks, States } from './types';\nimport { propagateFocus } from '../../utils/reuse';\n\n/**\n * @slot - Der Inhalt, der in der Detailbeschreibung angezeigt wird.\n */\n@Component({\n\ttag: 'kol-details',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolDetails implements API {\n\t@Element() private readonly host?: HTMLKolDetailsElement;\n\tprivate detailsElement?: HTMLDetailsElement;\n\tprivate summaryElement?: HTMLElement;\n\tprivate contentElement?: HTMLElement;\n\n\tprivate readonly catchRef = (ref?: HTMLElement) => {\n\t\tthis.summaryElement = ref;\n\t\tpropagateFocus(this.host, this.summaryElement);\n\t};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<details\n\t\t\t\t\tref={(el) => {\n\t\t\t\t\t\tthis.detailsElement = el as HTMLDetailsElement;\n\t\t\t\t\t}}\n\t\t\t\t\tonToggle={this.handleToggle}\n\t\t\t\t>\n\t\t\t\t\t<summary ref={this.catchRef}>\n\t\t\t\t\t\t<kol-icon _label=\"\" _icons=\"codicon codicon-chevron-right\" class={`icon ${this.state._open ? 'is-open' : ''}`} />\n\t\t\t\t\t\t<span>{this.state._label}</span>\n\t\t\t\t\t</summary>\n\t\t\t\t\t<div aria-hidden={this.state._open === false ? 'true' : undefined} class=\"content\" ref={(element) => (this.contentElement = element)}>\n\t\t\t\t\t\t<kol-indented-text>\n\t\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t</kol-indented-text>\n\t\t\t\t\t</div>\n\t\t\t\t</details>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label!: LabelPropType;\n\n\t/**\n\t * Defines the callback functions for details.\n\t */\n\t@Prop() public _on?: EventCallbacks;\n\n\t/**\n\t * If set (to true) opens/expands the element, closes if not set (or set to false).\n\t * @TODO: Change type back to `OpenPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _open?: boolean = false;\n\n\t@State() public state: States = {\n\t\t_label: '…', // '⚠'\n\t\t_on: {},\n\t};\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelPropType): void {\n\t\tvalidateLabel(this, value);\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(on?: EventCallbacks) {\n\t\tif (typeof on === 'object' && on !== null && typeof on.onToggle === 'function') {\n\t\t\tsetState<EventCallbacks>(this, '_on', on);\n\t\t}\n\t}\n\n\t@Watch('_open')\n\tpublic validateOpen(value?: boolean): void {\n\t\tvalidateOpen(this, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateOn(this._on);\n\t\tthis.validateOpen(this._open);\n\t}\n\n\tpublic componentDidLoad() {\n\t\tif (this.detailsElement && this.summaryElement && this.contentElement) {\n\t\t\tconst animationController = new DetailsAnimationController(this.detailsElement, this.summaryElement, this.contentElement);\n\t\t\tif (this.state._open) {\n\t\t\t\tanimationController.open();\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate toggleTimeout?: ReturnType<typeof setTimeout>;\n\n\tprivate handleToggle = (event: Event) => {\n\t\tclearTimeout(this.toggleTimeout);\n\t\tthis.toggleTimeout = setTimeout(() => {\n\t\t\tconst open = Boolean(this.detailsElement?.open);\n\t\t\tif (open !== this.state._open) {\n\t\t\t\t// Update state\n\t\t\t\tthis._open = Boolean(this.detailsElement?.open);\n\n\t\t\t\t// Event handling\n\t\t\t\ttryToDispatchKoliBriEvent('toggle', this.host, this._open);\n\n\t\t\t\t// Callback\n\t\t\t\tif (typeof this.state._on?.onToggle === 'function') {\n\t\t\t\t\tthis.state._on?.onToggle(event, this._open);\n\t\t\t\t}\n\t\t\t}\n\t\t}, 25);\n\t};\n}\n"],"version":3}
1
+ {"file":"kol-details.js","mappings":";;;;;;;;;;;MAEqB,0BAA0B;IAK9C,YAAoB,cAAkC,EAAU,cAA2B,EAAU,cAA2B;QAA5G,mBAAc,GAAd,cAAc,CAAoB;QAAU,mBAAc,GAAd,cAAc,CAAa;QAAU,mBAAc,GAAd,cAAc,CAAa;QAHxH,cAAS,GAAG,KAAK,CAAC;QAClB,gBAAW,GAAG,KAAK,CAAC;QAG3B,IAAI,CAAC,cAAc,CAAC,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;KAClF;IAEO,kBAAkB,CAAC,KAAiB;QAC3C,KAAK,CAAC,cAAc,EAAE,CAAC;QAEvB,IAAI,IAAI,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE;YAChD,IAAI,CAAC,IAAI,EAAE,CAAC;SACZ;aAAM,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE;YACxD,IAAI,CAAC,QAAQ,EAAE,CAAC;SAChB;KACD;IAEM,IAAI;QACV,IAAI,CAAC,cAAc,CAAC,IAAI,GAAG,IAAI,CAAC;QAChC,MAAM,CAAC,qBAAqB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;KACrD;IAEO,MAAM;QACb,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;QACxB,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC;KACpC;IAEO,QAAQ;QACf,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC;KACtC;IAEO,oBAAoB,CAAC,SAAgC;QAC5D,IAAI,WAAW,GAAG,SAAS,KAAK,QAAQ,GAAG,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC;QAChF,IAAI,SAAS,GAAG,SAAS,KAAK,QAAQ,GAAG,IAAI,CAAC,cAAc,CAAC,YAAY,GAAG,CAAC,CAAC;QAM9E,IAAI,IAAI,CAAC,SAAS,EAAE;YACnB,WAAW,GAAG,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC;YAC/C,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC;YACxB,IAAI,SAAS,KAAK,QAAQ,EAAE;gBAC3B,SAAS,GAAG,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC;aAC7C;SACD;QAED,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,CAC3C;YACC,MAAM,EAAE,CAAC,GAAG,WAAW,IAAI,EAAE,GAAG,SAAS,IAAI,CAAC;SAC9C,EACD;YACC,QAAQ,EAAE,UAAU,CAAC,0BAA0B,CAAC,CAAC,OAAO,GAAG,CAAC,GAAG,GAAG;YAClE,MAAM,EAAE,UAAU;SAClB,CACD,CAAC;QAEF,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAC9B,QAAQ,EACR;YACC,IAAI,CAAC,iBAAiB,EAAE,CAAC;SACzB,EACD,EAAE,IAAI,EAAE,IAAI,EAAE,CACd,CAAC;QACF,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAC9B,QAAQ,EACR;YACC,IAAI,SAAS,KAAK,QAAQ,EAAE;gBAC3B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;aACzB;iBAAM;gBACN,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;aACvB;SACD,EACD,EAAE,IAAI,EAAE,IAAI,EAAE,CACd,CAAC;KACF;IAEO,iBAAiB;QACxB,IAAI,CAAC,cAAc,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC;QAC5C,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QACvB,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;KACzB;;;ACvFF,MAAM,eAAe,GAAG,gvIAAgvI;;MCoB3vIA,YAAU;;;;;QAML,aAAQ,GAAG,CAAC,GAAiB;YAC7C,IAAI,CAAC,cAAc,GAAG,GAAG,CAAC;YAC1B,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;SAC/C,CAAC;QAgFM,iBAAY,GAAG,CAAC,KAAY;YACnC,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;YACjC,IAAI,CAAC,aAAa,GAAG,UAAU,CAAC;;gBAC/B,MAAM,IAAI,GAAG,OAAO,CAAC,MAAA,IAAI,CAAC,cAAc,0CAAE,IAAI,CAAC,CAAC;gBAChD,IAAI,IAAI,KAAK,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE;oBAE9B,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,MAAA,IAAI,CAAC,cAAc,0CAAE,IAAI,CAAC,CAAC;oBAGhD,yBAAyB,CAAC,QAAQ,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;oBAG3D,IAAI,QAAO,MAAA,IAAI,CAAC,KAAK,CAAC,GAAG,0CAAE,QAAQ,CAAA,KAAK,UAAU,EAAE;wBACnD,MAAA,IAAI,CAAC,KAAK,CAAC,GAAG,0CAAE,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;qBAC5C;iBACD;aACD,EAAE,EAAE,CAAC,CAAC;SACP,CAAC;;;qBA1D+D,KAAK;qBAEtC;YAC/B,MAAM,EAAE,GAAG;YACX,GAAG,EAAE,EAAE;SACP;;IA1CM,MAAM;QACZ,QACC,EAAC,IAAI,QACJ,eACC,GAAG,EAAE,CAAC,EAAE;gBACP,IAAI,CAAC,cAAc,GAAG,EAAwB,CAAC;aAC/C,EACD,QAAQ,EAAE,IAAI,CAAC,YAAY,IAE3B,eAAS,GAAG,EAAE,IAAI,CAAC,QAAQ,IAC1B,gBAAU,MAAM,EAAC,EAAE,EAAC,MAAM,EAAC,+BAA+B,EAAC,KAAK,EAAE,QAAQ,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,SAAS,GAAG,EAAE,EAAE,GAAI,EACjH,gBAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAQ,CACvB,EACV,0BAAkB,IAAI,CAAC,KAAK,CAAC,KAAK,KAAK,KAAK,GAAG,MAAM,GAAG,SAAS,EAAE,KAAK,EAAC,SAAS,EAAC,GAAG,EAAE,CAAC,OAAO,MAAM,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC,IACnI,6BACC,eAAQ,CACW,CACf,CACG,CACJ,EACN;KACF;IAwBM,aAAa,CAAC,KAAqB;QACzC,aAAa,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;KAC3B;IAGM,UAAU,CAAC,EAAmB;QACpC,IAAI,OAAO,EAAE,KAAK,QAAQ,IAAI,EAAE,KAAK,IAAI,IAAI,OAAO,EAAE,CAAC,QAAQ,KAAK,UAAU,EAAE;YAC/E,QAAQ,CAAiB,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;SAC1C;KACD;IAGM,YAAY,CAAC,KAAe;QAClC,YAAY,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;KAC1B;IAEM,iBAAiB;QACvB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAC9B;IAEM,gBAAgB;QACtB,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,cAAc,EAAE;YACtE,MAAM,mBAAmB,GAAG,IAAI,0BAA0B,CAAC,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;YAC1H,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE;gBACrB,mBAAmB,CAAC,IAAI,EAAE,CAAC;aAC3B;SACD;KACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["KolDetails"],"sources":["src/components/details/DetailsAnimationController.ts","src/components/details/style.css?tag=kol-details&mode=default&encapsulation=shadow","src/components/details/component.tsx"],"sourcesContent":["/* Heavily inspired by: https://codepen.io/Mamboleoo/pen/QWEpLqm */\n\nexport default class DetailsAnimationController {\n\tprivate animation?: Animation;\n\tprivate isClosing = false;\n\tprivate isExpanding = false;\n\n\tconstructor(private detailsElement: HTMLDetailsElement, private summaryElement: HTMLElement, private contentElement: HTMLElement) {\n\t\tthis.summaryElement.addEventListener('click', this.handleSummaryClick.bind(this));\n\t}\n\n\tprivate handleSummaryClick(event: MouseEvent) {\n\t\tevent.preventDefault();\n\n\t\tif (this.isClosing || !this.detailsElement.open) {\n\t\t\tthis.open();\n\t\t} else if (this.isExpanding || this.detailsElement.open) {\n\t\t\tthis.collapse();\n\t\t}\n\t}\n\n\tpublic open() {\n\t\tthis.detailsElement.open = true;\n\t\twindow.requestAnimationFrame(this.expand.bind(this));\n\t}\n\n\tprivate expand() {\n\t\tthis.isExpanding = true;\n\t\tthis.animateContentHeight('expand');\n\t}\n\n\tprivate collapse() {\n\t\tthis.isClosing = true;\n\t\tthis.animateContentHeight('collapse');\n\t}\n\n\tprivate animateContentHeight(direction: 'expand' | 'collapse') {\n\t\tlet startHeight = direction === 'expand' ? 0 : this.contentElement.offsetHeight;\n\t\tlet endHeight = direction === 'expand' ? this.contentElement.offsetHeight : 0;\n\n\t\t/**\n\t\t * Override start and end height, when an animation is ongoing. During the animation, offsetHeight reflects the actual current height as it's being animated.\n\t\t * After canceling the animation, it reverts to the full height of the content container.\n\t\t */\n\t\tif (this.animation) {\n\t\t\tstartHeight = this.contentElement.offsetHeight;\n\t\t\tthis.animation.cancel();\n\t\t\tif (direction === 'expand') {\n\t\t\t\tendHeight = this.contentElement.offsetHeight;\n\t\t\t}\n\t\t}\n\n\t\tthis.animation = this.contentElement.animate(\n\t\t\t{\n\t\t\t\theight: [`${startHeight}px`, `${endHeight}px`],\n\t\t\t},\n\t\t\t{\n\t\t\t\tduration: matchMedia('(prefers-reduced-motion)').matches ? 0 : 250,\n\t\t\t\teasing: 'ease-out',\n\t\t\t}\n\t\t);\n\n\t\tthis.animation.addEventListener(\n\t\t\t'finish',\n\t\t\t() => {\n\t\t\t\tthis.onAnimationFinish();\n\t\t\t},\n\t\t\t{ once: true }\n\t\t);\n\t\tthis.animation.addEventListener(\n\t\t\t'cancel',\n\t\t\t() => {\n\t\t\t\tif (direction === 'expand') {\n\t\t\t\t\tthis.isExpanding = false;\n\t\t\t\t} else {\n\t\t\t\t\tthis.isClosing = false;\n\t\t\t\t}\n\t\t\t},\n\t\t\t{ once: true }\n\t\t);\n\t}\n\n\tprivate onAnimationFinish() {\n\t\tthis.detailsElement.open = this.isExpanding;\n\t\tthis.animation = undefined;\n\t\tthis.isClosing = false;\n\t\tthis.isExpanding = false;\n\t}\n}\n","@import url(../style.css);\n@import url(../host-display-block.css);\n@layer kol-component {\n\tdetails {\n\t\tdisplay: grid;\n\t}\n\n\tdetails > summary {\n\t\tcursor: pointer;\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\tdetails > summary > span {\n\t\tborder-bottom-color: grey;\n\t\tborder-bottom-style: solid;\n\t}\n\n\tdetails > summary:focus > span,\n\tdetails > summary:hover > span,\n\tdetails[open] > summary > span {\n\t\tborder-bottom-color: #000;\n\t}\n\n\t.content {\n\t\toverflow: hidden;\n\t}\n\n\tdetails > kol-indented-text {\n\t\tmargin: 0.25em 0 0 0.5em;\n\t}\n\n\t.icon.is-open::part(icon) {\n\t\ttransform: rotate(90deg);\n\t}\n}\n","import { Component, Element, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { LabelPropType, validateLabel } from '../../types/props/label';\nimport { validateOpen } from '../../types/props/open';\nimport { tryToDispatchKoliBriEvent } from '../../utils/events';\nimport { setState } from '../../utils/prop.validators';\nimport DetailsAnimationController from './DetailsAnimationController';\nimport { API, EventCallbacks, States } from './types';\nimport { propagateFocus } from '../../utils/reuse';\n\n/**\n * @slot - Der Inhalt, der in der Detailbeschreibung angezeigt wird.\n */\n@Component({\n\ttag: 'kol-details',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolDetails implements API {\n\t@Element() private readonly host?: HTMLKolDetailsElement;\n\tprivate detailsElement?: HTMLDetailsElement;\n\tprivate summaryElement?: HTMLElement;\n\tprivate contentElement?: HTMLElement;\n\n\tprivate readonly catchRef = (ref?: HTMLElement) => {\n\t\tthis.summaryElement = ref;\n\t\tpropagateFocus(this.host, this.summaryElement);\n\t};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<details\n\t\t\t\t\tref={(el) => {\n\t\t\t\t\t\tthis.detailsElement = el as HTMLDetailsElement;\n\t\t\t\t\t}}\n\t\t\t\t\tonToggle={this.handleToggle}\n\t\t\t\t>\n\t\t\t\t\t<summary ref={this.catchRef}>\n\t\t\t\t\t\t<kol-icon _label=\"\" _icons=\"codicon codicon-chevron-right\" class={`icon ${this.state._open ? 'is-open' : ''}`} />\n\t\t\t\t\t\t<span>{this.state._label}</span>\n\t\t\t\t\t</summary>\n\t\t\t\t\t<div aria-hidden={this.state._open === false ? 'true' : undefined} class=\"content\" ref={(element) => (this.contentElement = element)}>\n\t\t\t\t\t\t<kol-indented-text>\n\t\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t</kol-indented-text>\n\t\t\t\t\t</div>\n\t\t\t\t</details>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label!: LabelPropType;\n\n\t/**\n\t * Defines the callback functions for details.\n\t */\n\t@Prop() public _on?: EventCallbacks;\n\n\t/**\n\t * If set (to true) opens/expands the element, closes if not set (or set to false).\n\t * @TODO: Change type back to `OpenPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _open?: boolean = false;\n\n\t@State() public state: States = {\n\t\t_label: '…', // '⚠'\n\t\t_on: {},\n\t};\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelPropType): void {\n\t\tvalidateLabel(this, value);\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(on?: EventCallbacks) {\n\t\tif (typeof on === 'object' && on !== null && typeof on.onToggle === 'function') {\n\t\t\tsetState<EventCallbacks>(this, '_on', on);\n\t\t}\n\t}\n\n\t@Watch('_open')\n\tpublic validateOpen(value?: boolean): void {\n\t\tvalidateOpen(this, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateOn(this._on);\n\t\tthis.validateOpen(this._open);\n\t}\n\n\tpublic componentDidLoad() {\n\t\tif (this.detailsElement && this.summaryElement && this.contentElement) {\n\t\t\tconst animationController = new DetailsAnimationController(this.detailsElement, this.summaryElement, this.contentElement);\n\t\t\tif (this.state._open) {\n\t\t\t\tanimationController.open();\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate toggleTimeout?: ReturnType<typeof setTimeout>;\n\n\tprivate handleToggle = (event: Event) => {\n\t\tclearTimeout(this.toggleTimeout);\n\t\tthis.toggleTimeout = setTimeout(() => {\n\t\t\tconst open = Boolean(this.detailsElement?.open);\n\t\t\tif (open !== this.state._open) {\n\t\t\t\t// Update state\n\t\t\t\tthis._open = Boolean(this.detailsElement?.open);\n\n\t\t\t\t// Event handling\n\t\t\t\ttryToDispatchKoliBriEvent('toggle', this.host, this._open);\n\n\t\t\t\t// Callback\n\t\t\t\tif (typeof this.state._on?.onToggle === 'function') {\n\t\t\t\t\tthis.state._on?.onToggle(event, this._open);\n\t\t\t\t}\n\t\t\t}\n\t\t}, 25);\n\t};\n}\n"],"version":3}
@@ -2,8 +2,8 @@ import type { Components, JSX } from "../types/components";
2
2
 
3
3
  interface KolForm extends Components.KolForm, HTMLElement {}
4
4
  export const KolForm: {
5
- prototype: KolForm;
6
- new (): KolForm;
5
+ prototype: KolForm;
6
+ new (): KolForm;
7
7
  };
8
8
  /**
9
9
  * Used to define this component and all nested components recursively.
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{proxyCustomElement,HTMLElement,h}from"@stencil/core/internal/client";import{a as translate}from"./i18n.js";import{e as watchBoolean,b as watchString}from"./prop.validators.js";import{d as defineCustomElement$2}from"./component12.js";const KolForm$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.onSubmit=t=>{var e,o;t.preventDefault(),t.stopPropagation(),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onSubmit)&&(null===(o=this.state._on)||void 0===o||o.onSubmit(t))},this.onReset=t=>{var e,o;t.preventDefault(),t.stopPropagation(),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onReset)&&(null===(o=this.state._on)||void 0===o||o.onReset(t))},this._on=void 0,this._requiredText=!0,this.state={}}render(){return h("form",{method:"post",onSubmit:this.onSubmit,onReset:this.onReset,autoComplete:"off",noValidate:!0},!0===this.state._requiredText?h("p",null,h("kol-indented-text",null,translate("kol-form-description"))):"string"==typeof this.state._requiredText&&this.state._requiredText.length>0?h("p",null,h("kol-indented-text",null,this.state._requiredText)):null,h("slot",null))}validateOn(t){"object"==typeof t&&null!==t&&(this.state=Object.assign(Object.assign({},this.state),{_on:t}))}validateRequiredText(t){"boolean"==typeof t?watchBoolean(this,"_requiredText",t):watchString(this,"_requiredText",t)}componentWillLoad(){this.validateOn(this._on),this.validateRequiredText(this._requiredText)}static get watchers(){return{_on:["validateOn"],_requiredText:["validateRequiredText"]}}},[1,"kol-form",{_on:[16],_requiredText:[8,"_required-text"],state:[32]},void 0,{_on:["validateOn"],_requiredText:["validateRequiredText"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-form","kol-indented-text"].forEach((t=>{switch(t){case"kol-form":customElements.get(t)||customElements.define(t,KolForm$1);break;case"kol-indented-text":customElements.get(t)||defineCustomElement$2()}}))}const KolForm=KolForm$1,defineCustomElement=defineCustomElement$1;export{KolForm,defineCustomElement};
4
+ import{proxyCustomElement,HTMLElement,h}from"@stencil/core/internal/client";import{a as translate}from"./i18n.js";import{g as watchBoolean,f as watchString}from"./prop.validators.js";import{d as defineCustomElement$2}from"./component12.js";const KolForm$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.onSubmit=t=>{var e,o;t.preventDefault(),t.stopPropagation(),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onSubmit)&&(null===(o=this.state._on)||void 0===o||o.onSubmit(t))},this.onReset=t=>{var e,o;t.preventDefault(),t.stopPropagation(),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onReset)&&(null===(o=this.state._on)||void 0===o||o.onReset(t))},this._on=void 0,this._requiredText=!0,this.state={}}render(){return h("form",{method:"post",onSubmit:this.onSubmit,onReset:this.onReset,autoComplete:"off",noValidate:!0},!0===this.state._requiredText?h("p",null,h("kol-indented-text",null,translate("kol-form-description"))):"string"==typeof this.state._requiredText&&this.state._requiredText.length>0?h("p",null,h("kol-indented-text",null,this.state._requiredText)):null,h("slot",null))}validateOn(t){"object"==typeof t&&null!==t&&(this.state=Object.assign(Object.assign({},this.state),{_on:t}))}validateRequiredText(t){"boolean"==typeof t?watchBoolean(this,"_requiredText",t):watchString(this,"_requiredText",t)}componentWillLoad(){this.validateOn(this._on),this.validateRequiredText(this._requiredText)}static get watchers(){return{_on:["validateOn"],_requiredText:["validateRequiredText"]}}},[1,"kol-form",{_on:[16],_requiredText:[8,"_required-text"],state:[32]},void 0,{_on:["validateOn"],_requiredText:["validateRequiredText"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-form","kol-indented-text"].forEach((t=>{switch(t){case"kol-form":customElements.get(t)||customElements.define(t,KolForm$1);break;case"kol-indented-text":customElements.get(t)||defineCustomElement$2()}}))}const KolForm=KolForm$1,defineCustomElement=defineCustomElement$1;export{KolForm,defineCustomElement};
@@ -1 +1 @@
1
- {"file":"kol-form.js","mappings":";;;;;;;;MAcaA,SAAO;;;;;IACF,aAAQ,GAAG,CAAC,KAAY;;MACxC,KAAK,CAAC,cAAc,EAAE,CAAC;MACvB,KAAK,CAAC,eAAe,EAAE,CAAC;MACxB,IAAI,QAAO,MAAA,IAAI,CAAC,KAAK,CAAC,GAAG,0CAAE,QAAQ,CAAA,KAAK,UAAU,EAAE;QACnD,MAAA,IAAI,CAAC,KAAK,CAAC,GAAG,0CAAE,QAAQ,CAAC,KAAoB,CAAC,CAAC;OAC/C;KACD,CAAC;IACe,YAAO,GAAG,CAAC,KAAY;;MACvC,KAAK,CAAC,cAAc,EAAE,CAAC;MACvB,KAAK,CAAC,eAAe,EAAE,CAAC;MACxB,IAAI,QAAO,MAAA,IAAI,CAAC,KAAK,CAAC,GAAG,0CAAE,OAAO,CAAA,KAAK,UAAU,EAAE;QAClD,MAAA,IAAI,CAAC,KAAK,CAAC,GAAG,0CAAE,OAAO,CAAC,KAAK,CAAC,CAAC;OAC/B;KACD,CAAC;;yBA2BoD,IAAI;iBAE1B,EAAE;;EA3B3B,MAAM;IACZ,QACC,YAAM,MAAM,EAAC,MAAM,EAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,YAAY,EAAC,KAAK,EAAC,UAAU,UAC/F,IAAI,CAAC,KAAK,CAAC,aAAa,KAAK,IAAI,IACjC,aACC,6BAAoB,SAAS,CAAC,sBAAsB,CAAC,CAAqB,CACvE,IACD,OAAO,IAAI,CAAC,KAAK,CAAC,aAAa,KAAK,QAAQ,IAAI,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,IACtF,aACC,6BAAoB,IAAI,CAAC,KAAK,CAAC,aAAa,CAAqB,CAC9D,IACD,IAAI,EACR,eAAQ,CACF,EACN;GACF;EAeM,UAAU,CAAC,KAA4B;IAC7C,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE;MAChD,IAAI,CAAC,KAAK,mCACN,IAAI,CAAC,KAAK,KACb,GAAG,EAAE,KAAK,GACV,CAAC;KACF;GACD;EAGM,oBAAoB,CAAC,KAA4B;IACvD,IAAI,OAAO,KAAK,KAAK,SAAS,EAAE;MAC/B,YAAY,CAAC,IAAI,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC;KAC3C;SAAM;MACN,WAAW,CAAC,IAAI,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC;KAC1C;GACD;EAEM,iBAAiB;IACvB,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC1B,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;GAC9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["KolForm"],"sources":["src/components/form/component.tsx"],"sourcesContent":["import { Component, h, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { translate } from '../../i18n';\nimport { Stringified } from '../../types/common';\nimport { watchBoolean, watchString } from '../../utils/prop.validators';\nimport { API, KoliBriFormCallbacks, States } from './types';\n\n/**\n * @slot - Inhalt der Form.\n */\n@Component({\n\ttag: 'kol-form',\n\tshadow: true,\n})\nexport class KolForm implements API {\n\tprivate readonly onSubmit = (event: Event) => {\n\t\tevent.preventDefault();\n\t\tevent.stopPropagation();\n\t\tif (typeof this.state._on?.onSubmit === 'function') {\n\t\t\tthis.state._on?.onSubmit(event as SubmitEvent);\n\t\t}\n\t};\n\tprivate readonly onReset = (event: Event) => {\n\t\tevent.preventDefault();\n\t\tevent.stopPropagation();\n\t\tif (typeof this.state._on?.onReset === 'function') {\n\t\t\tthis.state._on?.onReset(event);\n\t\t}\n\t};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<form method=\"post\" onSubmit={this.onSubmit} onReset={this.onReset} autoComplete=\"off\" noValidate>\n\t\t\t\t{this.state._requiredText === true ? (\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<kol-indented-text>{translate('kol-form-description')}</kol-indented-text>\n\t\t\t\t\t</p>\n\t\t\t\t) : typeof this.state._requiredText === 'string' && this.state._requiredText.length > 0 ? (\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<kol-indented-text>{this.state._requiredText}</kol-indented-text>\n\t\t\t\t\t</p>\n\t\t\t\t) : null}\n\t\t\t\t<slot />\n\t\t\t</form>\n\t\t);\n\t}\n\n\t/**\n\t * Gibt die EventCallback-Funktionen für die Form-Events an.\n\t */\n\t@Prop() public _on?: KoliBriFormCallbacks;\n\n\t/**\n\t * Defines whether the mandatory-fields-hint should be shown. A string overrides the default text.\n\t */\n\t@Prop() public _requiredText?: Stringified<boolean> = true;\n\n\t@State() public state: States = {};\n\n\t@Watch('_on')\n\tpublic validateOn(value?: KoliBriFormCallbacks): void {\n\t\tif (typeof value === 'object' && value !== null) {\n\t\t\tthis.state = {\n\t\t\t\t...this.state,\n\t\t\t\t_on: value,\n\t\t\t};\n\t\t}\n\t}\n\n\t@Watch('_requiredText')\n\tpublic validateRequiredText(value?: Stringified<boolean>): void {\n\t\tif (typeof value === 'boolean') {\n\t\t\twatchBoolean(this, '_requiredText', value);\n\t\t} else {\n\t\t\twatchString(this, '_requiredText', value);\n\t\t}\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateOn(this._on);\n\t\tthis.validateRequiredText(this._requiredText);\n\t}\n}\n"],"version":3}
1
+ {"file":"kol-form.js","mappings":";;;;;;;;MAcaA,SAAO;;;;;QACF,aAAQ,GAAG,CAAC,KAAY;;YACxC,KAAK,CAAC,cAAc,EAAE,CAAC;YACvB,KAAK,CAAC,eAAe,EAAE,CAAC;YACxB,IAAI,QAAO,MAAA,IAAI,CAAC,KAAK,CAAC,GAAG,0CAAE,QAAQ,CAAA,KAAK,UAAU,EAAE;gBACnD,MAAA,IAAI,CAAC,KAAK,CAAC,GAAG,0CAAE,QAAQ,CAAC,KAAoB,CAAC,CAAC;aAC/C;SACD,CAAC;QACe,YAAO,GAAG,CAAC,KAAY;;YACvC,KAAK,CAAC,cAAc,EAAE,CAAC;YACvB,KAAK,CAAC,eAAe,EAAE,CAAC;YACxB,IAAI,QAAO,MAAA,IAAI,CAAC,KAAK,CAAC,GAAG,0CAAE,OAAO,CAAA,KAAK,UAAU,EAAE;gBAClD,MAAA,IAAI,CAAC,KAAK,CAAC,GAAG,0CAAE,OAAO,CAAC,KAAK,CAAC,CAAC;aAC/B;SACD,CAAC;;6BA2BoD,IAAI;qBAE1B,EAAE;;IA3B3B,MAAM;QACZ,QACC,YAAM,MAAM,EAAC,MAAM,EAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,YAAY,EAAC,KAAK,EAAC,UAAU,UAC/F,IAAI,CAAC,KAAK,CAAC,aAAa,KAAK,IAAI,IACjC,aACC,6BAAoB,SAAS,CAAC,sBAAsB,CAAC,CAAqB,CACvE,IACD,OAAO,IAAI,CAAC,KAAK,CAAC,aAAa,KAAK,QAAQ,IAAI,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,IACtF,aACC,6BAAoB,IAAI,CAAC,KAAK,CAAC,aAAa,CAAqB,CAC9D,IACD,IAAI,EACR,eAAQ,CACF,EACN;KACF;IAeM,UAAU,CAAC,KAA4B;QAC7C,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE;YAChD,IAAI,CAAC,KAAK,mCACN,IAAI,CAAC,KAAK,KACb,GAAG,EAAE,KAAK,GACV,CAAC;SACF;KACD;IAGM,oBAAoB,CAAC,KAA4B;QACvD,IAAI,OAAO,KAAK,KAAK,SAAS,EAAE;YAC/B,YAAY,CAAC,IAAI,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC;SAC3C;aAAM;YACN,WAAW,CAAC,IAAI,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC;SAC1C;KACD;IAEM,iBAAiB;QACvB,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1B,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;KAC9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["KolForm"],"sources":["src/components/form/component.tsx"],"sourcesContent":["import { Component, h, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { translate } from '../../i18n';\nimport { Stringified } from '../../types/common';\nimport { watchBoolean, watchString } from '../../utils/prop.validators';\nimport { API, KoliBriFormCallbacks, States } from './types';\n\n/**\n * @slot - Inhalt der Form.\n */\n@Component({\n\ttag: 'kol-form',\n\tshadow: true,\n})\nexport class KolForm implements API {\n\tprivate readonly onSubmit = (event: Event) => {\n\t\tevent.preventDefault();\n\t\tevent.stopPropagation();\n\t\tif (typeof this.state._on?.onSubmit === 'function') {\n\t\t\tthis.state._on?.onSubmit(event as SubmitEvent);\n\t\t}\n\t};\n\tprivate readonly onReset = (event: Event) => {\n\t\tevent.preventDefault();\n\t\tevent.stopPropagation();\n\t\tif (typeof this.state._on?.onReset === 'function') {\n\t\t\tthis.state._on?.onReset(event);\n\t\t}\n\t};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<form method=\"post\" onSubmit={this.onSubmit} onReset={this.onReset} autoComplete=\"off\" noValidate>\n\t\t\t\t{this.state._requiredText === true ? (\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<kol-indented-text>{translate('kol-form-description')}</kol-indented-text>\n\t\t\t\t\t</p>\n\t\t\t\t) : typeof this.state._requiredText === 'string' && this.state._requiredText.length > 0 ? (\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<kol-indented-text>{this.state._requiredText}</kol-indented-text>\n\t\t\t\t\t</p>\n\t\t\t\t) : null}\n\t\t\t\t<slot />\n\t\t\t</form>\n\t\t);\n\t}\n\n\t/**\n\t * Gibt die EventCallback-Funktionen für die Form-Events an.\n\t */\n\t@Prop() public _on?: KoliBriFormCallbacks;\n\n\t/**\n\t * Defines whether the mandatory-fields-hint should be shown. A string overrides the default text.\n\t */\n\t@Prop() public _requiredText?: Stringified<boolean> = true;\n\n\t@State() public state: States = {};\n\n\t@Watch('_on')\n\tpublic validateOn(value?: KoliBriFormCallbacks): void {\n\t\tif (typeof value === 'object' && value !== null) {\n\t\t\tthis.state = {\n\t\t\t\t...this.state,\n\t\t\t\t_on: value,\n\t\t\t};\n\t\t}\n\t}\n\n\t@Watch('_requiredText')\n\tpublic validateRequiredText(value?: Stringified<boolean>): void {\n\t\tif (typeof value === 'boolean') {\n\t\t\twatchBoolean(this, '_requiredText', value);\n\t\t} else {\n\t\t\twatchString(this, '_requiredText', value);\n\t\t}\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateOn(this._on);\n\t\tthis.validateRequiredText(this._requiredText);\n\t}\n}\n"],"version":3}
@@ -2,8 +2,8 @@ import type { Components, JSX } from "../types/components";
2
2
 
3
3
  interface KolHeadingWc extends Components.KolHeadingWc, HTMLElement {}
4
4
  export const KolHeadingWc: {
5
- prototype: KolHeadingWc;
6
- new (): KolHeadingWc;
5
+ prototype: KolHeadingWc;
6
+ new (): KolHeadingWc;
7
7
  };
8
8
  /**
9
9
  * Used to define this component and all nested components recursively.
@@ -2,8 +2,8 @@ import type { Components, JSX } from "../types/components";
2
2
 
3
3
  interface KolHeading extends Components.KolHeading, HTMLElement {}
4
4
  export const KolHeading: {
5
- prototype: KolHeading;
6
- new (): KolHeading;
5
+ prototype: KolHeading;
6
+ new (): KolHeading;
7
7
  };
8
8
  /**
9
9
  * Used to define this component and all nested components recursively.
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{proxyCustomElement,HTMLElement,h}from"@stencil/core/internal/client";import{d as defineCustomElement$2}from"./component4.js";const defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\t:host > kol-heading-wc {\n\t\tdisplay: grid;\n\t}\n\n\t:host > kol-heading-wc > .overline {\n\t\torder: 1;\n\t}\n\n\t:host > kol-heading-wc > .headline {\n\t\torder: 2;\n\t}\n}\n",KolHeading$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this._label=void 0,this._level=void 0,this._secondaryHeadline=void 0}render(){return h("kol-heading-wc",{_label:this._label,_level:this._level,_secondaryHeadline:this._secondaryHeadline},h("slot",{name:"expert",slot:"expert"}))}static get style(){return{default:defaultStyleCss}}},[33,"kol-heading",{_label:[1],_level:[2],_secondaryHeadline:[1,"_secondary-headline"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-heading","kol-heading-wc"].forEach((t=>{switch(t){case"kol-heading":customElements.get(t)||customElements.define(t,KolHeading$1);break;case"kol-heading-wc":customElements.get(t)||defineCustomElement$2()}}))}const KolHeading=KolHeading$1,defineCustomElement=defineCustomElement$1;export{KolHeading,defineCustomElement};
4
+ import{proxyCustomElement,HTMLElement,h}from"@stencil/core/internal/client";import{d as defineCustomElement$2}from"./component4.js";const defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * No element should be used without a background and font color whose contrast ratio has\n\t\t * not been checked. By initially setting the background color to white and the font color\n\t\t * to black, the contrast ratio is ensured and explicit adjustment is forced.\n\t\t */\n\t\tbackground-color: white;\n\t\tcolor: black;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\n\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n\tclip: rect(0 0 0 0);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tposition: absolute;\n\twhite-space: nowrap;\n\twidth: 1px;\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n\n\t/*\n\t * Ensure elements with hidden attribute to be actually not visible\n\t * @see https://meowni.ca/hidden.is.a.lie.html\n\t */\n\t[hidden] {\n\t\tdisplay: none !important;\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n",KolHeading$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this._label=void 0,this._level=void 0,this._secondaryHeadline=void 0,this._variant=void 0}render(){return h("kol-heading-wc",{_label:this._label,_level:this._level,_secondaryHeadline:this._secondaryHeadline,_variant:this._variant},h("slot",{name:"expert",slot:"expert"}))}static get style(){return{default:defaultStyleCss}}},[33,"kol-heading",{_label:[1],_level:[2],_secondaryHeadline:[1,"_secondary-headline"],_variant:[1]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-heading","kol-heading-wc"].forEach((t=>{switch(t){case"kol-heading":customElements.get(t)||customElements.define(t,KolHeading$1);break;case"kol-heading-wc":customElements.get(t)||defineCustomElement$2()}}))}const KolHeading=KolHeading$1,defineCustomElement=defineCustomElement$1;export{KolHeading,defineCustomElement};
@@ -1 +1 @@
1
- {"file":"kol-heading.js","mappings":";;;;;;AAAA,MAAM,eAAe,GAAG,y7FAAy7F;;MCgBp8FA,YAAU;;;;;;;;;EACf,MAAM;IACZ,QACC,sBAAgB,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,kBAAkB,EAAE,IAAI,CAAC,kBAAkB,IACpG,YAAM,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,GAAG,CACpB,EAChB;GACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["KolHeading"],"sources":["src/components/heading/style.css?tag=kol-heading&mode=default&encapsulation=shadow","src/components/heading/shadow.tsx"],"sourcesContent":["@import url(../style.css);\n@layer kol-component {\n\t:host > kol-heading-wc {\n\t\tdisplay: grid;\n\t}\n\n\t:host > kol-heading-wc > .overline {\n\t\torder: 1;\n\t}\n\n\t:host > kol-heading-wc > .headline {\n\t\torder: 2;\n\t}\n}\n","import { Component, h, JSX, Prop } from '@stencil/core';\n\nimport { HeadingLevel } from '../../types/heading-level';\nimport { LabelWithExpertSlotPropType } from '../../types/props/label';\nimport { Props } from './types';\n\n/**\n * @slot - Inhalt der Überschrift.\n */\n@Component({\n\ttag: 'kol-heading',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolHeading implements Props {\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<kol-heading-wc _label={this._label} _level={this._level} _secondaryHeadline={this._secondaryHeadline}>\n\t\t\t\t<slot name=\"expert\" slot=\"expert\" />\n\t\t\t</kol-heading-wc>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label!: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Defines which H-level from 1-6 the heading has. 0 specifies no heading and is shown as bold text.\n\t */\n\t@Prop() public _level?: HeadingLevel;\n\n\t/**\n\t * Defines the text of the secondary headline.\n\t */\n\t@Prop() public _secondaryHeadline?: string;\n}\n"],"version":3}
1
+ {"file":"kol-heading.js","mappings":";;;;;;AAAA,MAAM,eAAe,GAAG,4lHAA4lH;;MCiBvmHA,YAAU;;;;;;;;;;IACf,MAAM;QACZ,QACC,sBAAgB,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,kBAAkB,EAAE,IAAI,CAAC,kBAAkB,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAC7H,YAAM,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,GAAG,CACpB,EAChB;KACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["KolHeading"],"sources":["src/components/heading/style.css?tag=kol-heading&mode=default&encapsulation=shadow","src/components/heading/shadow.tsx"],"sourcesContent":["@import url(../style.css);\n","import { Component, h, JSX, Prop } from '@stencil/core';\n\nimport { HeadingLevel } from '../../types/heading-level';\nimport { LabelWithExpertSlotPropType } from '../../types/props/label';\nimport { Props } from './types';\nimport { HeadingVariantPropType } from '../../types/props/heading-variant';\n\n/**\n * @slot headline - Content of the headline.\n */\n@Component({\n\ttag: 'kol-heading',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolHeading implements Props {\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<kol-heading-wc _label={this._label} _level={this._level} _secondaryHeadline={this._secondaryHeadline} _variant={this._variant}>\n\t\t\t\t<slot name=\"expert\" slot=\"expert\" />\n\t\t\t</kol-heading-wc>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label!: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Defines which H-level from 1-6 the heading has. 0 specifies no heading and is shown as bold text.\n\t */\n\t@Prop() public _level?: HeadingLevel;\n\n\t/**\n\t * Defines the text of the secondary headline.\n\t */\n\t@Prop() public _secondaryHeadline?: string;\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: HeadingVariantPropType;\n}\n"],"version":3}
@@ -2,8 +2,8 @@ import type { Components, JSX } from "../types/components";
2
2
 
3
3
  interface KolIcon extends Components.KolIcon, HTMLElement {}
4
4
  export const KolIcon: {
5
- prototype: KolIcon;
6
- new (): KolIcon;
5
+ prototype: KolIcon;
6
+ new (): KolIcon;
7
7
  };
8
8
  /**
9
9
  * Used to define this component and all nested components recursively.
@@ -2,8 +2,8 @@ import type { Components, JSX } from "../types/components";
2
2
 
3
3
  interface KolImage extends Components.KolImage, HTMLElement {}
4
4
  export const KolImage: {
5
- prototype: KolImage;
6
- new (): KolImage;
5
+ prototype: KolImage;
6
+ new (): KolImage;
7
7
  };
8
8
  /**
9
9
  * Used to define this component and all nested components recursively.
@@ -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{v as validateImageSource}from"./image-source.js";import{w as watchValidator,b as watchString}from"./prop.validators.js";const loadingOptions=["eager","lazy"];function validateLoading(t,e){watchValidator(t,"_loading",(t=>"string"==typeof t&&loadingOptions.includes(t)),new Set(loadingOptions),e)}const defaultStyleCss="@layer kol-component {\n\t:host {\n\t\tdisplay: inline-block;\n\t}\n\timg {\n\t\tmax-height: 100%;\n\t\tmax-width: 100%;\n\t}\n}\n",KolImage$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this._alt=void 0,this._loading="lazy",this._sizes=void 0,this._src=void 0,this._srcset=void 0,this.state={_alt:"…",_loading:"lazy",_src:"…"}}validateAlt(t){watchString(this,"_alt",t,{required:!0})}validateLoading(t){validateLoading(this,t)}validateSizes(t){watchString(this,"_sizes",t)}validateSrc(t){validateImageSource(this,t,{required:!0})}validateSrcset(t){watchString(this,"_srcset",t)}componentWillLoad(){this.validateAlt(this._alt),this.validateLoading(this._loading),this.validateSizes(this._sizes),this.validateSrc(this._src),this.validateSrcset(this._srcset)}render(){return h(Host,null,h("img",{alt:this.state._alt,loading:this.state._loading,sizes:this.state._sizes,src:this.state._src,srcset:this.state._srcset}))}static get watchers(){return{_alt:["validateAlt"],_loading:["validateLoading"],_sizes:["validateSizes"],_src:["validateSrc"],_srcset:["validateSrcset"]}}static get style(){return{default:defaultStyleCss}}},[33,"kol-image",{_alt:[1],_loading:[1],_sizes:[1],_src:[1],_srcset:[1],state:[32]},void 0,{_alt:["validateAlt"],_loading:["validateLoading"],_sizes:["validateSizes"],_src:["validateSrc"],_srcset:["validateSrcset"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-image"].forEach((t=>{if("kol-image"===t)customElements.get(t)||customElements.define(t,KolImage$1)}))}const KolImage=KolImage$1,defineCustomElement=defineCustomElement$1;export{KolImage,defineCustomElement};
4
+ import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{v as validateImageSource}from"./image-source.js";import{w as watchValidator,f as watchString}from"./prop.validators.js";const loadingOptions=["eager","lazy"];function validateLoading(t,e){watchValidator(t,"_loading",(t=>"string"==typeof t&&loadingOptions.includes(t)),new Set(loadingOptions),e)}const defaultStyleCss="@layer kol-component {\n\t:host {\n\t\tdisplay: inline-block;\n\t}\n\timg {\n\t\tmax-height: 100%;\n\t\tmax-width: 100%;\n\t}\n}\n",KolImage$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this._alt=void 0,this._loading="lazy",this._sizes=void 0,this._src=void 0,this._srcset=void 0,this.state={_alt:"…",_loading:"lazy",_src:"…"}}validateAlt(t){watchString(this,"_alt",t,{required:!0})}validateLoading(t){validateLoading(this,t)}validateSizes(t){watchString(this,"_sizes",t)}validateSrc(t){validateImageSource(this,t,{required:!0})}validateSrcset(t){watchString(this,"_srcset",t)}componentWillLoad(){this.validateAlt(this._alt),this.validateLoading(this._loading),this.validateSizes(this._sizes),this.validateSrc(this._src),this.validateSrcset(this._srcset)}render(){return h(Host,null,h("img",{alt:this.state._alt,loading:this.state._loading,sizes:this.state._sizes,src:this.state._src,srcset:this.state._srcset}))}static get watchers(){return{_alt:["validateAlt"],_loading:["validateLoading"],_sizes:["validateSizes"],_src:["validateSrc"],_srcset:["validateSrcset"]}}static get style(){return{default:defaultStyleCss}}},[33,"kol-image",{_alt:[1],_loading:[1],_sizes:[1],_src:[1],_srcset:[1],state:[32]},void 0,{_alt:["validateAlt"],_loading:["validateLoading"],_sizes:["validateSizes"],_src:["validateSrc"],_srcset:["validateSrcset"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-image"].forEach((t=>{if("kol-image"===t)customElements.get(t)||customElements.define(t,KolImage$1)}))}const KolImage=KolImage$1,defineCustomElement=defineCustomElement$1;export{KolImage,defineCustomElement};
@@ -1 +1 @@
1
- {"file":"kol-image.js","mappings":";;;;;;;AAIA,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE,MAAM,CAAU,CAAC;SAGlC,eAAe,CAAC,SAAoC,EAAE,KAAe;EACpF,cAAc,CAAU,SAAS,EAAE,UAAU,EAAE,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,cAAc,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,IAAI,GAAG,CAAC,cAAc,CAAC,EAAE,KAAK,CAAC,CAAC;AACxJ;;ACTA,MAAM,eAAe,GAAG,oIAAoI;;MCc/IA,UAAQ;;;;;;oBASgB,MAAM;;;;iBAiBV;MAC/B,IAAI,EAAE,GAAG;MACT,QAAQ,EAAE,MAAM;MAChB,IAAI,EAAE,GAAG;KACT;;EAGM,WAAW,CAAC,KAAc;IAChC,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE;MAChC,QAAQ,EAAE,IAAI;KACd,CAAC,CAAC;GACH;EAGM,eAAe,CAAC,KAAe;IACrC,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;GAC7B;EAGM,aAAa,CAAC,KAAc;IAClC,WAAW,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;GACnC;EAGM,WAAW,CAAC,KAA2B;IAC7C,mBAAmB,CAAC,IAAI,EAAE,KAAK,EAAE;MAChC,QAAQ,EAAE,IAAI;KACd,CAAC,CAAC;GACH;EAGM,cAAc,CAAC,KAAc;IACnC,WAAW,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;GACpC;EAEM,iBAAiB;IACvB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5B,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACpC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAChC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5B,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;GAClC;EAEM,MAAM;IACZ,QACC,EAAC,IAAI,QACJ,WAAK,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,GAAQ,CACrI,EACN;GACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["KolImage"],"sources":["src/utils/validators/loading.ts","src/components/image/style.css?tag=kol-image&mode=default&encapsulation=shadow","src/components/image/shadow.tsx"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { watchValidator } from '../prop.validators';\n\nconst loadingOptions = ['eager', 'lazy'] as const;\nexport type Loading = (typeof loadingOptions)[number];\n\nexport function validateLoading(component: Generic.Element.Component, value?: Loading): void {\n\twatchValidator<Loading>(component, '_loading', (value) => typeof value === 'string' && loadingOptions.includes(value), new Set(loadingOptions), value);\n}\n","@layer kol-component {\n\t:host {\n\t\tdisplay: inline-block;\n\t}\n\timg {\n\t\tmax-height: 100%;\n\t\tmax-width: 100%;\n\t}\n}\n","import { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { ImageSourcePropType, validateImageSource } from '../../types/props/image-source';\nimport { watchString } from '../../utils/prop.validators';\nimport { Loading, validateLoading } from '../../utils/validators/loading';\nimport { API, States } from './types';\n\n@Component({\n\ttag: 'kol-image',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolImage implements API {\n\t/**\n\t * Setzt den alternativen Text.\n\t */\n\t@Prop() public _alt!: string;\n\n\t/**\n\t * Defines the loading mode for the image.\n\t */\n\t@Prop() public _loading?: Loading = 'lazy';\n\n\t/**\n\t * Defines the image sizes for different screen resolutions, supporting _srcset.\n\t */\n\t@Prop() public _sizes?: string;\n\n\t/**\n\t * Sets the image `src` attribute to the given string.\n\t */\n\t@Prop() public _src!: ImageSourcePropType;\n\n\t/**\n\t * Setzt eine Liste von Quell-URLs mit Breiten der Bilder.\n\t */\n\t@Prop() public _srcset?: string;\n\n\t@State() public state: States = {\n\t\t_alt: '…', // ⚠ required\n\t\t_loading: 'lazy',\n\t\t_src: '…', // ⚠ required\n\t};\n\n\t@Watch('_alt')\n\tpublic validateAlt(value?: string): void {\n\t\twatchString(this, '_alt', value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_loading')\n\tpublic validateLoading(value?: Loading): void {\n\t\tvalidateLoading(this, value);\n\t}\n\n\t@Watch('_sizes')\n\tpublic validateSizes(value?: string): void {\n\t\twatchString(this, '_sizes', value);\n\t}\n\n\t@Watch('_src')\n\tpublic validateSrc(value?: ImageSourcePropType): void {\n\t\tvalidateImageSource(this, value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_srcset')\n\tpublic validateSrcset(value?: string): void {\n\t\twatchString(this, '_srcset', value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateAlt(this._alt);\n\t\tthis.validateLoading(this._loading);\n\t\tthis.validateSizes(this._sizes);\n\t\tthis.validateSrc(this._src);\n\t\tthis.validateSrcset(this._srcset);\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<img alt={this.state._alt} loading={this.state._loading} sizes={this.state._sizes} src={this.state._src} srcset={this.state._srcset}></img>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"version":3}
1
+ {"file":"kol-image.js","mappings":";;;;;;;AAIA,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE,MAAM,CAAU,CAAC;SAGlC,eAAe,CAAC,SAAoC,EAAE,KAAe;IACpF,cAAc,CAAU,SAAS,EAAE,UAAU,EAAE,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,cAAc,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,IAAI,GAAG,CAAC,cAAc,CAAC,EAAE,KAAK,CAAC,CAAC;AACxJ;;ACTA,MAAM,eAAe,GAAG,oIAAoI;;MCc/IA,UAAQ;;;;;;wBASgB,MAAM;;;;qBAiBV;YAC/B,IAAI,EAAE,GAAG;YACT,QAAQ,EAAE,MAAM;YAChB,IAAI,EAAE,GAAG;SACT;;IAGM,WAAW,CAAC,KAAc;QAChC,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE;YAChC,QAAQ,EAAE,IAAI;SACd,CAAC,CAAC;KACH;IAGM,eAAe,CAAC,KAAe;QACrC,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;KAC7B;IAGM,aAAa,CAAC,KAAc;QAClC,WAAW,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;KACnC;IAGM,WAAW,CAAC,KAA2B;QAC7C,mBAAmB,CAAC,IAAI,EAAE,KAAK,EAAE;YAChC,QAAQ,EAAE,IAAI;SACd,CAAC,CAAC;KACH;IAGM,cAAc,CAAC,KAAc;QACnC,WAAW,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;KACpC;IAEM,iBAAiB;QACvB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC5B,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACpC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC5B,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KAClC;IAEM,MAAM;QACZ,QACC,EAAC,IAAI,QACJ,WAAK,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,GAAQ,CACrI,EACN;KACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["KolImage"],"sources":["src/utils/validators/loading.ts","src/components/image/style.css?tag=kol-image&mode=default&encapsulation=shadow","src/components/image/shadow.tsx"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchValidator } from '../prop.validators';\n\nconst loadingOptions = ['eager', 'lazy'] as const;\nexport type Loading = (typeof loadingOptions)[number];\n\nexport function validateLoading(component: Generic.Element.Component, value?: Loading): void {\n\twatchValidator<Loading>(component, '_loading', (value) => typeof value === 'string' && loadingOptions.includes(value), new Set(loadingOptions), value);\n}\n","@layer kol-component {\n\t:host {\n\t\tdisplay: inline-block;\n\t}\n\timg {\n\t\tmax-height: 100%;\n\t\tmax-width: 100%;\n\t}\n}\n","import { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { ImageSourcePropType, validateImageSource } from '../../types/props/image-source';\nimport { watchString } from '../../utils/prop.validators';\nimport { Loading, validateLoading } from '../../utils/validators/loading';\nimport { API, States } from './types';\n\n@Component({\n\ttag: 'kol-image',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolImage implements API {\n\t/**\n\t * Setzt den alternativen Text.\n\t */\n\t@Prop() public _alt!: string;\n\n\t/**\n\t * Defines the loading mode for the image.\n\t */\n\t@Prop() public _loading?: Loading = 'lazy';\n\n\t/**\n\t * Defines the image sizes for different screen resolutions, supporting _srcset.\n\t */\n\t@Prop() public _sizes?: string;\n\n\t/**\n\t * Sets the image `src` attribute to the given string.\n\t */\n\t@Prop() public _src!: ImageSourcePropType;\n\n\t/**\n\t * Setzt eine Liste von Quell-URLs mit Breiten der Bilder.\n\t */\n\t@Prop() public _srcset?: string;\n\n\t@State() public state: States = {\n\t\t_alt: '…', // ⚠ required\n\t\t_loading: 'lazy',\n\t\t_src: '…', // ⚠ required\n\t};\n\n\t@Watch('_alt')\n\tpublic validateAlt(value?: string): void {\n\t\twatchString(this, '_alt', value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_loading')\n\tpublic validateLoading(value?: Loading): void {\n\t\tvalidateLoading(this, value);\n\t}\n\n\t@Watch('_sizes')\n\tpublic validateSizes(value?: string): void {\n\t\twatchString(this, '_sizes', value);\n\t}\n\n\t@Watch('_src')\n\tpublic validateSrc(value?: ImageSourcePropType): void {\n\t\tvalidateImageSource(this, value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_srcset')\n\tpublic validateSrcset(value?: string): void {\n\t\twatchString(this, '_srcset', value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateAlt(this._alt);\n\t\tthis.validateLoading(this._loading);\n\t\tthis.validateSizes(this._sizes);\n\t\tthis.validateSrc(this._src);\n\t\tthis.validateSrcset(this._srcset);\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<img alt={this.state._alt} loading={this.state._loading} sizes={this.state._sizes} src={this.state._src} srcset={this.state._srcset}></img>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"version":3}
@@ -2,8 +2,8 @@ import type { Components, JSX } from "../types/components";
2
2
 
3
3
  interface KolIndentedText extends Components.KolIndentedText, HTMLElement {}
4
4
  export const KolIndentedText: {
5
- prototype: KolIndentedText;
6
- new (): KolIndentedText;
5
+ prototype: KolIndentedText;
6
+ new (): KolIndentedText;
7
7
  };
8
8
  /**
9
9
  * Used to define this component and all nested components recursively.
@@ -2,8 +2,8 @@ import type { Components, JSX } from "../types/components";
2
2
 
3
3
  interface KolInputCheckbox extends Components.KolInputCheckbox, HTMLElement {}
4
4
  export const KolInputCheckbox: {
5
- prototype: KolInputCheckbox;
6
- new (): KolInputCheckbox;
5
+ prototype: KolInputCheckbox;
6
+ new (): KolInputCheckbox;
7
7
  };
8
8
  /**
9
9
  * Used to define this component and all nested components recursively.
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{proxyCustomElement,HTMLElement,h,Host,Fragment}from"@stencil/core/internal/client";import{e as watchBoolean,w as watchValidator,i as isString,v as setState,a as a11yHint,t as propagateFocus,n as nonce,l as showExpertSlot}from"./prop.validators.js";import{s as stopPropagation,t as tryToDispatchKoliBriEvent}from"./events.js";import{v as validateHideError,g as getRenderStates}from"./controller.js";import{I as InputCheckboxRadioController}from"./controller2.js";import{I as InternalUnderlinedAccessKey,d as defineCustomElement$3}from"./component2.js";import{d as defineCustomElement$9}from"./shadow.js";import{d as defineCustomElement$8}from"./component6.js";import{d as defineCustomElement$7}from"./component5.js";import{d as defineCustomElement$6}from"./component4.js";import{d as defineCustomElement$5}from"./component.js";import{d as defineCustomElement$4}from"./component13.js";import{d as defineCustomElement$2}from"./component3.js";const validateChecked=(t,e)=>{watchBoolean(t,"_checked",e)},validateIndeterminate=(t,e)=>{watchBoolean(t,"_indeterminate",e)},inputCheckboxVariantOptions=["button","default","switch"];class InputCheckboxController extends InputCheckboxRadioController{constructor(t,e,n){super(t,e,n),this.setFormAssociatedCheckboxValue=t=>{this.component._checked?this.setFormAssociatedValue(t):this.setFormAssociatedValue(null)},this.component=t}validateChecked(t){validateChecked(this.component,t),this.setFormAssociatedCheckboxValue(this.component.state._value)}validateHideError(t){validateHideError(this.component,t,{hooks:{afterPatch:()=>{this.component.state._hideError&&a11yHint("Property hide-error for inputs: Only use when the error message is shown outside of the input component.")}}})}validateIcons(t){watchValidator(this.component,"_icons",(t=>"object"==typeof t&&null!==t&&(isString(t.checked,1)||isString(t.indeterminate,1)||isString(t.unchecked,1))),new Set(["InputCheckboxIcons"]),t,{hooks:{beforePatch:(t,e,n)=>{e.set("_icons",Object.assign(Object.assign({},n.state._icons),t))}}})}validateIndeterminate(t){validateIndeterminate(this.component,t)}validateValue(t){setState(this.component,"_value",t),this.setFormAssociatedCheckboxValue(this.component.state._value)}validateVariant(t){watchValidator(this.component,"_variant",(t=>"string"==typeof t&&inputCheckboxVariantOptions.includes(t)),new Set([`String {${inputCheckboxVariantOptions.join(", ")}`]),t)}componentWillLoad(){super.componentWillLoad(),this.validateChecked(this.component._checked),this.validateHideError(this.component._hideError),this.validateIcons(this.component._icons),this.validateIndeterminate(this.component._indeterminate),this.validateValue(this.component._value),this.validateVariant(this.component._variant)}}const defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\t.required label > span::after,\n\t.required legend > span::after {\n\t\tcontent: '*';\n\t}\n}\n\n@layer kol-component {\n\t:host {\n\t\tdisplay: block;\n\t}\n}\n\n@layer kol-component {\n\tinput,\n\ttextarea {\n\t\tcursor: text;\n\t}\n\n\tinput[type='checkbox'],\n\tinput[type='color'],\n\tinput[type='file'],\n\tinput[type='radio'],\n\tinput[type='range'],\n\tlabel,\n\toption,\n\tselect {\n\t\tcursor: pointer;\n\t}\n\n\t/* input[type='checkbox'], */\n\t/* input[type='radio'], */\n\t/* input[type='range'], */\n\tinput[type='color'],\n\tinput[type='date'],\n\tinput[type='datetime-local'],\n\tinput[type='email'],\n\tinput[type='file'],\n\tinput[type='month'],\n\tinput[type='number'],\n\tinput[type='password'],\n\tinput[type='search'],\n\tinput[type='tel'],\n\tinput[type='text'],\n\tinput[type='time'],\n\tinput[type='url'],\n\tinput[type='week'],\n\tselect,\n\tselect[multiple] option,\n\ttextarea {\n\t\tfont-size: 1rem;\n\t\twidth: 100%;\n\t}\n\n\t/* needed hack for vertical alignment */\n\tinput[type='file'] {\n\t\tpadding: calc((var(--a11y-min-size) - 1rem) / 10) 0.5em;\n\t}\n\n\t/* needed hack for vertical alignment */\n\tselect[multiple] option {\n\t\tpadding: calc((var(--a11y-min-size) - 1rem) / 2) 0.5em;\n\t}\n\n\tkol-input.disabled :is(button, input, label, option, select, textarea) {\n\t\tcursor: not-allowed;\n\t\topacity: 0.5;\n\t}\n}\n\n@layer kol-component {\n\tlabel {\n\t\tcursor: pointer;\n\t}\n\n\tkol-input {\n\t\talign-items: center;\n\t\tdisplay: grid;\n\t\tjustify-items: left;\n\t}\n\n\tkol-input.default,\n\tkol-input.switch {\n\t\tgrid-template-columns: auto 1fr;\n\t}\n\n\tkol-input .input {\n\t\talign-items: center;\n\t\tdisplay: grid;\n\t\torder: 1;\n\t}\n\n\tkol-input .input div {\n\t\tdisplay: inline-flex;\n\t}\n\n\tkol-input .input input {\n\t\tmargin: 0;\n\t}\n\n\tkol-input label {\n\t\torder: 2;\n\t}\n\n\tkol-input .hint,\n\tkol-input.error > kol-alert {\n\t\tgrid-column: span 2;\n\t}\n\n\tkol-input kol-alert.error {\n\t\torder: 3;\n\t}\n\n\tkol-input .hint {\n\t\torder: 4;\n\t}\n\n\t.error.hidden {\n\t\tdisplay: none;\n\t}\n\n\tinput {\n\t\tborder-style: solid;\n\t\tborder-width: 2px;\n\t\tline-height: 24px;\n\t}\n\n\tinput[type='checkbox'] {\n\t\tappearance: none;\n\t\tbackground-color: #fff;\n\t\tcursor: pointer;\n\t\ttransition: 0.5s;\n\t}\n\n\tinput[type='checkbox'].kol-disabled:before {\n\t\tcursor: not-allowed;\n\t}\n\n\tinput[type='checkbox']:before {\n\t\tcontent: '';\n\t\tcursor: pointer;\n\t}\n\n\t.default kol-icon {\n\t\tdisplay: none;\n\t}\n\n\tkol-input.required .tooltip-content .span-label::after {\n\t\tcontent: '*';\n\t}\n}\n\n@layer kol-component {\n\t.button {\n\t\tdisplay: grid;\n\t\tgrid-template-columns: var(--a11y-min-size) auto;\n\t\tgrid-template-areas: 'error error' 'input label' 'hint hint';\n\t}\n\n\t.button[tabindex]:focus {\n\t\t/* override global `[tabindex]:focus` style */\n\t\tcursor: inherit;\n\t}\n\n\t.button input {\n\t\tdisplay: none;\n\t}\n\n\t.button > .error {\n\t\tgrid-area: error;\n\t}\n\n\t.button > label {\n\t\tgrid-area: label;\n\t}\n\n\t.button > .input {\n\t\tgrid-area: input;\n\t}\n\n\t.button > .hint {\n\t\tgrid-area: hint;\n\t}\n\n\t.button .icon {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\twidth: var(--a11y-min-size);\n\t\theight: var(--a11y-min-size);\n\t}\n}\n\n@layer kol-component {\n\t.default input[type='checkbox'] {\n\t\theight: 1.5em;\n\t\twidth: 1.5em;\n\t}\n\n\t.default input[type='checkbox']:before {\n\t\tdisplay: block;\n\t\theight: 1.5em;\n\t\tposition: relative;\n\t\twidth: 1.5em;\n\t}\n\n\t.default input[type='checkbox']:checked:before {\n\t\tborder-radius: 1px;\n\t\tborder-style: solid;\n\t\tborder-width: 0 3px 3px 0;\n\t\theight: 0.75em;\n\t\tleft: calc(0.375em - 2px);\n\t\ttransform: rotate(40deg) translate(-50%, -50%);\n\t\ttop: calc(0.7125em - 2px);\n\t\twidth: 0.375em;\n\t}\n\n\t.default input[type='checkbox']:indeterminate:before {\n\t\tbackground-color: #000;\n\t\theight: 0.2em;\n\t\tleft: 0.24em;\n\t\ttop: 0.575em;\n\t\twidth: 0.8em;\n\t}\n}\n\n@layer kol-component {\n\t.switch .input {\n\t\tposition: relative;\n\t}\n\n\t.switch input[type='checkbox'] {\n\t\tdisplay: inline-block;\n\t\theight: 1.7em;\n\t\tmin-width: 3.2em;\n\t\tposition: relative;\n\t\twidth: 3.2em;\n\t}\n\n\t.switch input[type='checkbox']::before {\n\t\tbackground-color: #000;\n\t\theight: 1.2em;\n\t\tleft: calc(0.25em - 2px);\n\t\ttop: calc(0.25em - 2px);\n\t\tposition: absolute;\n\t\ttransition: 0.5s;\n\t\twidth: 1.2em;\n\t}\n\n\t.switch input[type='checkbox']:checked::before {\n\t\ttransform: translateX(1.5em);\n\t}\n\n\t.switch input[type='checkbox']:indeterminate::before {\n\t\ttransform: translateX(0.75em);\n\t}\n\n\t.switch .icon {\n\t\tcursor: pointer;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\twidth: 1.2em;\n\t\theight: 1.2em;\n\t\tposition: absolute;\n\t\tz-index: 1;\n\t\ttop: 50%;\n\t\tleft: 4px;\n\t\ttransform: translate(0, -50%);\n\t\ttransition: 0.5s;\n\t\tcolor: #000;\n\t}\n\n\t.switch:has(input:checked) .icon {\n\t\ttransform: translate(1.5em, -50%);\n\t}\n\n\t.switch:has(input:indeterminate) .icon {\n\t\ttransform: translate(0.75em, -50%);\n\t}\n}\n\n",KolInputCheckbox$1=proxyCustomElement(class extends HTMLElement{render(){const{ariaDescribedBy:t}=getRenderStates(this.state),e=showExpertSlot(this.state._label);return h(Host,null,h("kol-input",{class:{checkbox:!0,[this.state._variant]:!0,"hide-label":!!this.state._hideLabel,checked:this.state._checked},"data-role":"button"===this.state._variant?"button":void 0,onKeyPress:"button"===this.state._variant?this.onChange:void 0,tabIndex:"button"!==this.state._variant||this.state._disabled?void 0:0,_accessKey:this.state._accessKey,_alert:this.state._alert,_disabled:this.state._disabled,_error:this.state._error,_hideError:this.state._hideError,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_id:this.state._id,_label:this.state._label,_required:this.state._required,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched},h("span",{slot:"label"},e?h("slot",{name:"expert"}):"string"==typeof this.state._accessKey?h(Fragment,null,h(InternalUnderlinedAccessKey,{accessKey:this.state._accessKey,label:this.state._label})," ",h("span",{class:"access-key-hint","aria-hidden":"true"},this.state._accessKey)):h("span",null,this.state._label)),h("div",{slot:"input"},h("kol-icon",{class:"icon",onClick:this.handleIconClick.bind(this),_icons:this.state._indeterminate?this.state._icons.indeterminate:this.state._checked?this.state._icons.checked:this.state._icons.unchecked,_label:""}),h("input",Object.assign({ref:this.catchRef,title:"",accessKey:this.state._accessKey,"aria-describedby":t.length>0?t.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,checked:this.state._checked,disabled:this.state._disabled,id:this.state._id,indeterminate:this.state._indeterminate,name:this.state._name,required:this.state._required,tabIndex:this.state._tabIndex,type:"checkbox"},this.controller.onFacade,{onChange:this.onChange,onClick:void 0})))))}constructor(){super(),this.__registerHost(),this.__attachShadow(),this.catchRef=t=>{propagateFocus(this.host,t)},this.onChange=t=>{var e;this._checked=!this._checked,this._indeterminate=!1;const n=this._checked?this.state._value:null;stopPropagation(t),tryToDispatchKoliBriEvent("change",this.host,n),this.controller.setFormAssociatedValue(n),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onChange)&&this.state._on.onChange(t,n)},this._accessKey=void 0,this._alert=!0,this._checked=!1,this._hideError=!1,this._disabled=!1,this._error=void 0,this._hideLabel=!1,this._hint="",this._icons=void 0,this._id=void 0,this._indeterminate=void 0,this._label=void 0,this._name=void 0,this._on=void 0,this._required=!1,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._value=!0,this._variant="default",this.state={_checked:!1,_hideError:!1,_icons:{checked:"codicon codicon-check",indeterminate:"codicon codicon-remove",unchecked:"codicon codicon-add"},_id:`id-${nonce()}`,_indeterminate:!1,_label:"",_value:!0,_variant:"default"},this.controller=new InputCheckboxController(this,"input-checkbox",this.host)}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAlert(t){this.controller.validateAlert(t)}validateChecked(t){this.controller.validateChecked(t)}validateDisabled(t){this.controller.validateDisabled(t)}validateError(t){this.controller.validateError(t)}validateHideError(t){this.controller.validateHideError(t)}validateHideLabel(t){this.controller.validateHideLabel(t)}validateHint(t){this.controller.validateHint(t)}validateIcons(t){this.controller.validateIcons(t)}validateId(t){this.controller.validateId(t)}validateIndeterminate(t){this.controller.validateIndeterminate(t)}validateLabel(t){this.controller.validateLabel(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validateRequired(t){this.controller.validateRequired(t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){this.controller.validateTabIndex(t)}validateTouched(t){this.controller.validateTouched(t)}validateValue(t){this.controller.validateValue(t)}validateVariant(t){this.controller.validateVariant(t)}componentWillLoad(){this._alert=!0===this._alert,this._touched=!0===this._touched,this.controller.componentWillLoad()}handleIconClick(t){this.state._disabled||this.onChange(t)}get host(){return this}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_checked:["validateChecked"],_disabled:["validateDisabled"],_error:["validateError"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icons:["validateIcons"],_id:["validateId"],_indeterminate:["validateIndeterminate"],_label:["validateLabel"],_name:["validateName"],_on:["validateOn"],_required:["validateRequired"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"],_variant:["validateVariant"]}}static get style(){return{default:defaultStyleCss}}},[33,"kol-input-checkbox",{_accessKey:[1,"_access-key"],_alert:[1540],_checked:[1540],_hideError:[1540,"_hide-error"],_disabled:[4],_error:[1],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_id:[1],_indeterminate:[1540],_label:[1],_name:[1],_on:[16],_required:[4],_syncValueBySelector:[1,"_sync-value-by-selector"],_tabIndex:[2,"_tab-index"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[8],_variant:[1],state:[32]},void 0,{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_checked:["validateChecked"],_disabled:["validateDisabled"],_error:["validateError"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icons:["validateIcons"],_id:["validateId"],_indeterminate:["validateIndeterminate"],_label:["validateLabel"],_name:["validateName"],_on:["validateOn"],_required:["validateRequired"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"],_variant:["validateVariant"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-input-checkbox","kol-alert","kol-alert-wc","kol-button-wc","kol-heading-wc","kol-icon","kol-input","kol-span-wc","kol-tooltip-wc"].forEach((t=>{switch(t){case"kol-input-checkbox":customElements.get(t)||customElements.define(t,KolInputCheckbox$1);break;case"kol-alert":customElements.get(t)||defineCustomElement$9();break;case"kol-alert-wc":customElements.get(t)||defineCustomElement$8();break;case"kol-button-wc":customElements.get(t)||defineCustomElement$7();break;case"kol-heading-wc":customElements.get(t)||defineCustomElement$6();break;case"kol-icon":customElements.get(t)||defineCustomElement$5();break;case"kol-input":customElements.get(t)||defineCustomElement$4();break;case"kol-span-wc":customElements.get(t)||defineCustomElement$3();break;case"kol-tooltip-wc":customElements.get(t)||defineCustomElement$2()}}))}const KolInputCheckbox=KolInputCheckbox$1,defineCustomElement=defineCustomElement$1;export{KolInputCheckbox,defineCustomElement};
4
+ import{proxyCustomElement,HTMLElement,h,Host,Fragment}from"@stencil/core/internal/client";import{g as watchBoolean,w as watchValidator,i as isString,t as setState,r as propagateFocus,n as nonce,s as showExpertSlot}from"./prop.validators.js";import{s as stopPropagation,t as tryToDispatchKoliBriEvent}from"./events.js";import{g as getRenderStates}from"./controller.js";import{I as InputCheckboxRadioController}from"./controller2.js";import{I as InternalUnderlinedAccessKey,d as defineCustomElement$3}from"./component2.js";import{d as defineCustomElement$9}from"./shadow.js";import{d as defineCustomElement$8}from"./component6.js";import{d as defineCustomElement$7}from"./component5.js";import{d as defineCustomElement$6}from"./component4.js";import{d as defineCustomElement$5}from"./component.js";import{d as defineCustomElement$4}from"./component13.js";import{d as defineCustomElement$2}from"./component3.js";const validateChecked=(t,e)=>{watchBoolean(t,"_checked",e)},validateIndeterminate=(t,e)=>{watchBoolean(t,"_indeterminate",e)},inputCheckboxVariantOptions=["button","default","switch"];class InputCheckboxController extends InputCheckboxRadioController{constructor(t,e,n){super(t,e,n),this.setFormAssociatedCheckboxValue=t=>{this.component._checked?this.setFormAssociatedValue(t):this.setFormAssociatedValue(null)},this.component=t}validateChecked(t){validateChecked(this.component,t),this.setFormAssociatedCheckboxValue(this.component.state._value)}validateIcons(t){watchValidator(this.component,"_icons",(t=>"object"==typeof t&&null!==t&&(isString(t.checked,1)||isString(t.indeterminate,1)||isString(t.unchecked,1))),new Set(["InputCheckboxIcons"]),t,{hooks:{beforePatch:(t,e,n)=>{e.set("_icons",Object.assign(Object.assign({},n.state._icons),t))}}})}validateIndeterminate(t){validateIndeterminate(this.component,t)}validateValue(t){setState(this.component,"_value",t),this.setFormAssociatedCheckboxValue(this.component.state._value)}validateVariant(t){watchValidator(this.component,"_variant",(t=>"string"==typeof t&&inputCheckboxVariantOptions.includes(t)),new Set([`String {${inputCheckboxVariantOptions.join(", ")}`]),t)}componentWillLoad(){super.componentWillLoad(),this.validateChecked(this.component._checked),this.validateIcons(this.component._icons),this.validateIndeterminate(this.component._indeterminate),this.validateValue(this.component._value),this.validateVariant(this.component._variant)}}const defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * No element should be used without a background and font color whose contrast ratio has\n\t\t * not been checked. By initially setting the background color to white and the font color\n\t\t * to black, the contrast ratio is ensured and explicit adjustment is forced.\n\t\t */\n\t\tbackground-color: white;\n\t\tcolor: black;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\n\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n\tclip: rect(0 0 0 0);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tposition: absolute;\n\twhite-space: nowrap;\n\twidth: 1px;\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n\n\t/*\n\t * Ensure elements with hidden attribute to be actually not visible\n\t * @see https://meowni.ca/hidden.is.a.lie.html\n\t */\n\t[hidden] {\n\t\tdisplay: none !important;\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\t.required label > span::after,\n\t.required legend > span::after {\n\t\tcontent: '*';\n\t}\n}\n\n@layer kol-component {\n\t:host {\n\t\tdisplay: block;\n\t}\n}\n\n@layer kol-component {\n\tinput,\n\ttextarea {\n\t\tcursor: text;\n\t}\n\n\tinput[type='checkbox'],\n\tinput[type='color'],\n\tinput[type='file'],\n\tinput[type='radio'],\n\tinput[type='range'],\n\tlabel,\n\toption,\n\tselect {\n\t\tcursor: pointer;\n\t}\n\n\t/* input[type='checkbox'], */\n\t/* input[type='radio'], */\n\t/* input[type='range'], */\n\tinput[type='color'],\n\tinput[type='date'],\n\tinput[type='datetime-local'],\n\tinput[type='email'],\n\tinput[type='file'],\n\tinput[type='month'],\n\tinput[type='number'],\n\tinput[type='password'],\n\tinput[type='search'],\n\tinput[type='tel'],\n\tinput[type='text'],\n\tinput[type='time'],\n\tinput[type='url'],\n\tinput[type='week'],\n\tselect,\n\tselect[multiple] option,\n\ttextarea {\n\t\tfont-size: 1rem;\n\t\twidth: 100%;\n\t}\n\n\t/* needed hack for vertical alignment */\n\tinput[type='file'] {\n\t\tpadding: calc((var(--a11y-min-size) - 1rem) / 10) 0.5em;\n\t}\n\n\t/* needed hack for vertical alignment */\n\tselect[multiple] option {\n\t\tpadding: calc((var(--a11y-min-size) - 1rem) / 2) 0.5em;\n\t}\n\n\tkol-input.disabled :is(button, input, option, select, textarea, .input-label) {\n\t\tcursor: not-allowed;\n\t\topacity: 0.5;\n\t}\n}\n\n@layer kol-component {\n\tlabel {\n\t\tcursor: pointer;\n\t}\n\n\tkol-input {\n\t\talign-items: center;\n\t\tdisplay: grid;\n\t\tjustify-items: left;\n\t}\n\n\tkol-input.default,\n\tkol-input.switch {\n\t\tgrid-template-columns: auto 1fr;\n\t}\n\n\tkol-input .input {\n\t\talign-items: center;\n\t\tdisplay: grid;\n\t\torder: 1;\n\t}\n\n\tkol-input .input div {\n\t\tdisplay: inline-flex;\n\t}\n\n\tkol-input .input input {\n\t\tmargin: 0;\n\t}\n\n\tkol-input label {\n\t\torder: 2;\n\t}\n\n\tkol-input .hint,\n\tkol-input.error > kol-alert {\n\t\tgrid-column: span 2;\n\t}\n\n\tkol-input kol-alert.error {\n\t\torder: 3;\n\t}\n\n\tkol-input .hint {\n\t\torder: 4;\n\t}\n\n\t.error.hidden {\n\t\tdisplay: none;\n\t}\n\n\tinput {\n\t\tborder-style: solid;\n\t\tborder-width: 2px;\n\t\tline-height: 24px;\n\t}\n\n\tinput[type='checkbox'] {\n\t\tappearance: none;\n\t\tbackground-color: #fff;\n\t\tcursor: pointer;\n\t\ttransition: 0.5s;\n\t}\n\n\tinput[type='checkbox']:before {\n\t\tcontent: '';\n\t\tcursor: pointer;\n\t}\n\n\tinput[type='checkbox']:disabled:before {\n\t\tcursor: not-allowed;\n\t}\n\n\tkol-input.required .tooltip-content .span-label::after {\n\t\tcontent: '*';\n\t}\n}\n\n@layer kol-component {\n\t.button {\n\t\tdisplay: grid;\n\t\tgrid-template-columns: var(--a11y-min-size) auto;\n\t\tgrid-template-areas: 'error error' 'input label' 'hint hint';\n\t}\n\t.button:focus-within {\n\t\t/* override global `[tabindex]:focus` style */\n\t\tcursor: inherit;\n\t\toutline-color: black;\n\t\toutline-style: solid;\n\t}\n\n\t.button > .error {\n\t\tgrid-area: error;\n\t}\n\n\t.button > label {\n\t\tgrid-area: label;\n\t}\n\n\t.button > .input {\n\t\tgrid-area: input;\n\t}\n\n\t.button > .hint {\n\t\tgrid-area: hint;\n\t}\n\n\t.button .icon {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\twidth: var(--a11y-min-size);\n\t\theight: var(--a11y-min-size);\n\t}\n}\n\n@layer kol-component {\n\t.default {\n\t\t& .checkbox-container {\n\t\t\talign-items: center;\n\t\t\tdisplay: flex;\n\t\t\theight: var(--a11y-min-size);\n\t\t\tjustify-content: center;\n\t\t\tposition: relative;\n\t\t\twidth: var(--a11y-min-size);\n\t\t}\n\n\t\t& .icon {\n\t\t\tdisplay: block;\n\t\t\tinset: auto;\n\t\t\tposition: absolute;\n\t\t\tz-index: 1;\n\t\t}\n\t\t&:not(.checked):not(.indeterminate) .icon::part(icon) {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t& .checkbox-input-element {\n\t\t\twidth: 22px;\n\t\t\theight: 22px;\n\t\t}\n\t}\n}\n\n@layer kol-component {\n\t.switch .input {\n\t\tposition: relative;\n\t}\n\n\t.switch input[type='checkbox'] {\n\t\tdisplay: inline-block;\n\t\theight: 1.7em;\n\t\tmin-width: 3.2em;\n\t\tposition: relative;\n\t\twidth: 3.2em;\n\t}\n\n\t.switch input[type='checkbox']::before {\n\t\tbackground-color: #000;\n\t\theight: 1.2em;\n\t\tleft: calc(0.25em - 2px);\n\t\ttop: calc(0.25em - 2px);\n\t\tposition: absolute;\n\t\ttransition: 0.5s;\n\t\twidth: 1.2em;\n\t}\n\n\t.switch input[type='checkbox']:checked::before {\n\t\ttransform: translateX(1.5em);\n\t}\n\n\t.switch input[type='checkbox']:indeterminate::before {\n\t\ttransform: translateX(0.75em);\n\t}\n\n\t.switch .icon {\n\t\tcursor: pointer;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\twidth: 1.2em;\n\t\theight: 1.2em;\n\t\tposition: absolute;\n\t\tz-index: 1;\n\t\ttop: 50%;\n\t\tleft: 4px;\n\t\ttransform: translate(0, -50%);\n\t\ttransition: 0.5s;\n\t\tcolor: #000;\n\t}\n\n\t.switch.checked .icon {\n\t\ttransform: translate(1.5em, -50%);\n\t}\n\n\t.switch.indeterminate .icon {\n\t\ttransform: translate(0.75em, -50%);\n\t}\n}\n\n",KolInputCheckbox$1=proxyCustomElement(class extends HTMLElement{async getValue(){var t;return null===(t=this.ref)||void 0===t?void 0:t.checked}render(){const{ariaDescribedBy:t}=getRenderStates(this.state),e=showExpertSlot(this.state._label);return h(Host,null,h("kol-input",{class:{checkbox:!0,[this.state._variant]:!0,"hide-label":!!this.state._hideLabel,checked:this.state._checked,indeterminate:this.state._indeterminate},"data-role":"button"===this.state._variant?"button":void 0,onKeyPress:"button"===this.state._variant?this.onChange:void 0,_accessKey:this.state._accessKey,_alert:this.state._alert,_disabled:this.state._disabled,_error:this.state._error,_hideError:this.state._hideError,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_id:this.state._id,_label:this.state._label,_required:this.state._required,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched},h("span",{slot:"label"},e?h("slot",{name:"expert"}):"string"==typeof this.state._accessKey?h(Fragment,null,h(InternalUnderlinedAccessKey,{accessKey:this.state._accessKey,label:this.state._label})," ",h("span",{class:"access-key-hint","aria-hidden":"true"},this.state._accessKey)):h("span",null,this.state._label)),h("label",{slot:"input",class:"checkbox-container"},h("kol-icon",{class:"icon",_icons:this.state._indeterminate?this.state._icons.indeterminate:this.state._checked?this.state._icons.checked:this.state._icons.unchecked,_label:""}),h("input",Object.assign({class:"checkbox-input-element"+("button"===this.state._variant?" visually-hidden":""),ref:this.catchRef,title:"",accessKey:this.state._accessKey,"aria-describedby":t.length>0?t.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,checked:this.state._checked,disabled:this.state._disabled,id:this.state._id,indeterminate:this.state._indeterminate,name:this.state._name,required:this.state._required,tabIndex:this.state._tabIndex,type:"checkbox"},this.controller.onFacade,{onChange:this.onChange,onClick:void 0})))))}constructor(){super(),this.__registerHost(),this.__attachShadow(),this.catchRef=t=>{this.ref=t,propagateFocus(this.host,t)},this.onChange=t=>{var e;this._checked=!this._checked,this._indeterminate=!1;const n=this._checked?this.state._value:null;stopPropagation(t),tryToDispatchKoliBriEvent("change",this.host,n),this.controller.setFormAssociatedValue(n),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onChange)&&this.state._on.onChange(t,n)},this._accessKey=void 0,this._alert=!0,this._checked=!1,this._hideError=!1,this._disabled=!1,this._error=void 0,this._hideLabel=!1,this._hint="",this._icons=void 0,this._id=void 0,this._indeterminate=void 0,this._label=void 0,this._name=void 0,this._on=void 0,this._required=!1,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._value=!0,this._variant="default",this.state={_checked:!1,_hideError:!1,_icons:{checked:"codicon codicon-check",indeterminate:"codicon codicon-remove",unchecked:"codicon codicon-add"},_id:`id-${nonce()}`,_indeterminate:!1,_label:"",_value:!0,_variant:"default"},this.controller=new InputCheckboxController(this,"input-checkbox",this.host)}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAlert(t){this.controller.validateAlert(t)}validateChecked(t){this.controller.validateChecked(t)}validateDisabled(t){this.controller.validateDisabled(t)}validateError(t){this.controller.validateError(t)}validateHideError(t){this.controller.validateHideError(t)}validateHideLabel(t){this.controller.validateHideLabel(t)}validateHint(t){this.controller.validateHint(t)}validateIcons(t){this.controller.validateIcons(t)}validateId(t){this.controller.validateId(t)}validateIndeterminate(t){this.controller.validateIndeterminate(t)}validateLabel(t){this.controller.validateLabel(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validateRequired(t){this.controller.validateRequired(t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){this.controller.validateTabIndex(t)}validateTouched(t){this.controller.validateTouched(t)}validateValue(t){this.controller.validateValue(t)}validateVariant(t){this.controller.validateVariant(t)}componentWillLoad(){this._alert=!0===this._alert,this._touched=!0===this._touched,this.controller.componentWillLoad()}get host(){return this}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_checked:["validateChecked"],_disabled:["validateDisabled"],_error:["validateError"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icons:["validateIcons"],_id:["validateId"],_indeterminate:["validateIndeterminate"],_label:["validateLabel"],_name:["validateName"],_on:["validateOn"],_required:["validateRequired"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"],_variant:["validateVariant"]}}static get style(){return{default:defaultStyleCss}}},[33,"kol-input-checkbox",{_accessKey:[1,"_access-key"],_alert:[1540],_checked:[1540],_hideError:[1540,"_hide-error"],_disabled:[4],_error:[1],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_id:[1],_indeterminate:[1540],_label:[1],_name:[1],_on:[16],_required:[4],_syncValueBySelector:[1,"_sync-value-by-selector"],_tabIndex:[2,"_tab-index"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[8],_variant:[1],state:[32],getValue:[64]},void 0,{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_checked:["validateChecked"],_disabled:["validateDisabled"],_error:["validateError"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icons:["validateIcons"],_id:["validateId"],_indeterminate:["validateIndeterminate"],_label:["validateLabel"],_name:["validateName"],_on:["validateOn"],_required:["validateRequired"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"],_variant:["validateVariant"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-input-checkbox","kol-alert","kol-alert-wc","kol-button-wc","kol-heading-wc","kol-icon","kol-input","kol-span-wc","kol-tooltip-wc"].forEach((t=>{switch(t){case"kol-input-checkbox":customElements.get(t)||customElements.define(t,KolInputCheckbox$1);break;case"kol-alert":customElements.get(t)||defineCustomElement$9();break;case"kol-alert-wc":customElements.get(t)||defineCustomElement$8();break;case"kol-button-wc":customElements.get(t)||defineCustomElement$7();break;case"kol-heading-wc":customElements.get(t)||defineCustomElement$6();break;case"kol-icon":customElements.get(t)||defineCustomElement$5();break;case"kol-input":customElements.get(t)||defineCustomElement$4();break;case"kol-span-wc":customElements.get(t)||defineCustomElement$3();break;case"kol-tooltip-wc":customElements.get(t)||defineCustomElement$2()}}))}const KolInputCheckbox=KolInputCheckbox$1,defineCustomElement=defineCustomElement$1;export{KolInputCheckbox,defineCustomElement};