@public-ui/components 2.0.15 → 2.1.0

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 (1216) hide show
  1. package/custom-elements.json +1 -1
  2. package/dist/cjs/access-key-29c8f473.js +4 -0
  3. package/dist/cjs/access-key-29c8f473.js.map +1 -0
  4. package/dist/cjs/align-716634b6.js +4 -0
  5. package/dist/cjs/align-716634b6.js.map +1 -0
  6. package/dist/cjs/{align-floating-elements-a4f32471.js → align-floating-elements-bc6be189.js} +1 -1
  7. package/dist/cjs/{align-floating-elements-a4f32471.js.map → align-floating-elements-bc6be189.js.map} +1 -1
  8. package/dist/cjs/alternative-button-link-role-91c25ec3.js +4 -0
  9. package/dist/cjs/alternative-button-link-role-91c25ec3.js.map +1 -0
  10. package/dist/cjs/app-globals-4f5190d8.js +4 -0
  11. package/dist/cjs/app-globals-4f5190d8.js.map +1 -0
  12. package/dist/cjs/associated.controller-3ba641a8.js +4 -0
  13. package/dist/cjs/associated.controller-3ba641a8.js.map +1 -0
  14. package/dist/cjs/color-ed9292d8.js +4 -0
  15. package/dist/cjs/color-ed9292d8.js.map +1 -0
  16. package/dist/cjs/controller-3b2e3d4d.js +4 -0
  17. package/dist/cjs/controller-3b2e3d4d.js.map +1 -0
  18. package/dist/cjs/controller-411155c7.js +4 -0
  19. package/dist/cjs/controller-411155c7.js.map +1 -0
  20. package/dist/cjs/controller-4d211a58.js +4 -0
  21. package/dist/cjs/controller-4d211a58.js.map +1 -0
  22. package/dist/cjs/controller-95705083.js +4 -0
  23. package/dist/cjs/controller-95705083.js.map +1 -0
  24. package/dist/cjs/controller-98af2f0b.js +4 -0
  25. package/dist/cjs/controller-98af2f0b.js.map +1 -0
  26. package/dist/cjs/controller-icon-dea18467.js +4 -0
  27. package/dist/cjs/controller-icon-dea18467.js.map +1 -0
  28. package/dist/cjs/custom-class-8298d456.js +4 -0
  29. package/dist/cjs/custom-class-8298d456.js.map +1 -0
  30. package/dist/cjs/dev.utils-3e595d38.js +4 -0
  31. package/dist/cjs/dev.utils-3e595d38.js.map +1 -0
  32. package/dist/cjs/dev.utils-b48ac291.js +4 -0
  33. package/dist/cjs/dev.utils-b48ac291.js.map +1 -0
  34. package/dist/cjs/devtools-d68258e5.js +4 -0
  35. package/dist/cjs/devtools-d68258e5.js.map +1 -0
  36. package/dist/cjs/disabled-67c674b5.js +4 -0
  37. package/dist/cjs/disabled-67c674b5.js.map +1 -0
  38. package/dist/cjs/form-field-msg-2e2600d7.js.map +1 -1
  39. package/dist/cjs/has-closer-ff878289.js +4 -0
  40. package/dist/cjs/has-closer-ff878289.js.map +1 -0
  41. package/dist/cjs/hide-label-5d971414.js +4 -0
  42. package/dist/cjs/hide-label-5d971414.js.map +1 -0
  43. package/dist/cjs/href-add3090a.js +4 -0
  44. package/dist/cjs/href-add3090a.js.map +1 -0
  45. package/dist/cjs/{i18n-db3c5520.js → i18n-4f73c04e.js} +1 -1
  46. package/dist/cjs/{i18n-db3c5520.js.map → i18n-4f73c04e.js.map} +1 -1
  47. package/dist/cjs/icons-1c0ab99c.js +4 -0
  48. package/dist/cjs/icons-1c0ab99c.js.map +1 -0
  49. package/dist/cjs/image-source-83159d74.js +4 -0
  50. package/dist/cjs/image-source-83159d74.js.map +1 -0
  51. package/dist/cjs/index-8d8858f3.js +4 -0
  52. package/dist/cjs/index-8d8858f3.js.map +1 -0
  53. package/dist/cjs/{index-443b07fc.js → index-b30289da.js} +1 -1
  54. package/dist/cjs/{index-443b07fc.js.map → index-b30289da.js.map} +1 -1
  55. package/dist/cjs/index.cjs.js +1 -1
  56. package/dist/cjs/index.cjs.js.map +1 -1
  57. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  58. package/dist/cjs/kol-abbr.cjs.entry.js.map +1 -1
  59. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  60. package/dist/cjs/kol-accordion.cjs.entry.js.map +1 -1
  61. package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
  62. package/dist/cjs/kol-alert-wc.cjs.entry.js.map +1 -1
  63. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  64. package/dist/cjs/kol-alert.cjs.entry.js.map +1 -1
  65. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  66. package/dist/cjs/kol-avatar-wc.cjs.entry.js.map +1 -1
  67. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  68. package/dist/cjs/kol-avatar.cjs.entry.js.map +1 -1
  69. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-badge.cjs.entry.js.map +1 -1
  71. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-breadcrumb.cjs.entry.js.map +1 -1
  73. package/dist/cjs/kol-button-group-wc.cjs.entry.js +1 -1
  74. package/dist/cjs/kol-button-group-wc.cjs.entry.js.map +1 -1
  75. package/dist/cjs/kol-button-group.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-button-group.cjs.entry.js.map +1 -1
  77. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  78. package/dist/cjs/kol-button-link.cjs.entry.js.map +1 -1
  79. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  80. package/dist/cjs/kol-button-wc.cjs.entry.js.map +1 -1
  81. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  82. package/dist/cjs/kol-button.cjs.entry.js.map +1 -1
  83. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  84. package/dist/cjs/kol-card.cjs.entry.js.map +1 -1
  85. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  86. package/dist/cjs/kol-details.cjs.entry.js.map +1 -1
  87. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  88. package/dist/cjs/kol-form.cjs.entry.js.map +1 -1
  89. package/dist/cjs/kol-heading-wc.cjs.entry.js +1 -1
  90. package/dist/cjs/kol-heading-wc.cjs.entry.js.map +1 -1
  91. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-heading.cjs.entry.js.map +1 -1
  93. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  94. package/dist/cjs/kol-icon.cjs.entry.js.map +1 -1
  95. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  96. package/dist/cjs/kol-image.cjs.entry.js.map +1 -1
  97. package/dist/cjs/kol-indented-text.cjs.entry.js +1 -1
  98. package/dist/cjs/kol-indented-text.cjs.entry.js.map +1 -1
  99. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  100. package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
  101. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  102. package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
  103. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  104. package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
  105. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  106. package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
  107. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  108. package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
  109. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  110. package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
  111. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  112. package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
  113. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  114. package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
  115. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  116. package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
  117. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  118. package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
  119. package/dist/cjs/kol-input.cjs.entry.js +1 -1
  120. package/dist/cjs/kol-input.cjs.entry.js.map +1 -1
  121. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  122. package/dist/cjs/kol-kolibri.cjs.entry.js.map +1 -1
  123. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  124. package/dist/cjs/kol-link-button.cjs.entry.js.map +1 -1
  125. package/dist/cjs/kol-link-group.cjs.entry.js +1 -1
  126. package/dist/cjs/kol-link-group.cjs.entry.js.map +1 -1
  127. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  128. package/dist/cjs/kol-link-wc.cjs.entry.js.map +1 -1
  129. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  130. package/dist/cjs/kol-link.cjs.entry.js.map +1 -1
  131. package/dist/cjs/kol-logo.cjs.entry.js +1 -1
  132. package/dist/cjs/kol-logo.cjs.entry.js.map +1 -1
  133. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  134. package/dist/cjs/kol-modal.cjs.entry.js.map +1 -1
  135. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  136. package/dist/cjs/kol-nav.cjs.entry.js.map +1 -1
  137. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  138. package/dist/cjs/kol-pagination.cjs.entry.js.map +1 -1
  139. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  140. package/dist/cjs/kol-popover-wc.cjs.entry.js.map +1 -1
  141. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  142. package/dist/cjs/kol-progress.cjs.entry.js.map +1 -1
  143. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  144. package/dist/cjs/kol-quote.cjs.entry.js.map +1 -1
  145. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  146. package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
  147. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  148. package/dist/cjs/kol-skip-nav.cjs.entry.js.map +1 -1
  149. package/dist/cjs/kol-span-wc.cjs.entry.js +1 -1
  150. package/dist/cjs/kol-span-wc.cjs.entry.js.map +1 -1
  151. package/dist/cjs/kol-span.cjs.entry.js +1 -1
  152. package/dist/cjs/kol-span.cjs.entry.js.map +1 -1
  153. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  154. package/dist/cjs/kol-spin.cjs.entry.js.map +1 -1
  155. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  156. package/dist/cjs/kol-split-button.cjs.entry.js.map +1 -1
  157. package/dist/cjs/kol-symbol.cjs.entry.js +1 -1
  158. package/dist/cjs/kol-symbol.cjs.entry.js.map +1 -1
  159. package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
  160. package/dist/cjs/kol-table-stateful.cjs.entry.js.map +1 -1
  161. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
  162. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js.map +1 -1
  163. package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
  164. package/dist/cjs/kol-table-stateless.cjs.entry.js.map +1 -1
  165. package/dist/cjs/kol-table.cjs.entry.js +1 -1
  166. package/dist/cjs/kol-table.cjs.entry.js.map +1 -1
  167. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  168. package/dist/cjs/kol-tabs.cjs.entry.js.map +1 -1
  169. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  170. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  171. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  172. package/dist/cjs/kol-toast-container.cjs.entry.js.map +1 -1
  173. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  174. package/dist/cjs/kol-tooltip-wc.cjs.entry.js.map +1 -1
  175. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
  176. package/dist/cjs/kol-tree-item-wc.cjs.entry.js.map +1 -1
  177. package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
  178. package/dist/cjs/kol-tree-item.cjs.entry.js.map +1 -1
  179. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  180. package/dist/cjs/kol-tree-wc.cjs.entry.js.map +1 -1
  181. package/dist/cjs/kol-tree.cjs.entry.js +1 -1
  182. package/dist/cjs/kol-tree.cjs.entry.js.map +1 -1
  183. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  184. package/dist/cjs/kol-version.cjs.entry.js.map +1 -1
  185. package/dist/cjs/kolibri.cjs.js +1 -1
  186. package/dist/cjs/kolibri.cjs.js.map +1 -1
  187. package/dist/cjs/label-23abf417.js +4 -0
  188. package/dist/cjs/label-23abf417.js.map +1 -0
  189. package/dist/cjs/loader.cjs.js +1 -1
  190. package/dist/cjs/loader.cjs.js.map +1 -1
  191. package/dist/cjs/open-a2cab99b.js +4 -0
  192. package/dist/cjs/open-a2cab99b.js.map +1 -0
  193. package/dist/cjs/prop.validators-5eb93968.js +4 -0
  194. package/dist/cjs/prop.validators-5eb93968.js.map +1 -0
  195. package/dist/cjs/reuse-daa2baf3.js +4 -0
  196. package/dist/cjs/reuse-daa2baf3.js.map +1 -0
  197. package/dist/cjs/rows-d2f243a5.js +4 -0
  198. package/dist/cjs/rows-d2f243a5.js.map +1 -0
  199. package/dist/cjs/show-8898a23d.js +4 -0
  200. package/dist/cjs/show-8898a23d.js.map +1 -0
  201. package/dist/cjs/suggestions-8bd45259.js +4 -0
  202. package/dist/cjs/suggestions-8bd45259.js.map +1 -0
  203. package/dist/cjs/tab-index-0e013513.js +4 -0
  204. package/dist/cjs/tab-index-0e013513.js.map +1 -0
  205. package/dist/cjs/table-data-foot-5fe6c5bf.js +4 -0
  206. package/dist/cjs/table-data-foot-5fe6c5bf.js.map +1 -0
  207. package/dist/cjs/table-render-function-7d9ebadc.js.map +1 -1
  208. package/dist/cjs/{toaster-7cd54f74.js → toaster-143bd150.js} +1 -1
  209. package/dist/cjs/{toaster-7cd54f74.js.map → toaster-143bd150.js.map} +1 -1
  210. package/dist/cjs/{toaster-e899a47f.js → toaster-de2cd2c8.js} +1 -1
  211. package/dist/cjs/{toaster-e899a47f.js.map → toaster-de2cd2c8.js.map} +1 -1
  212. package/dist/cjs/tooltip-align-b968ab9c.js +4 -0
  213. package/dist/cjs/tooltip-align-b968ab9c.js.map +1 -0
  214. package/dist/cjs/validation-3cdd4d53.js +4 -0
  215. package/dist/cjs/validation-3cdd4d53.js.map +1 -0
  216. package/dist/cjs/validation-80c0b59f.js +4 -0
  217. package/dist/cjs/validation-80c0b59f.js.map +1 -0
  218. package/dist/components/access-key.js +4 -0
  219. package/dist/components/access-key.js.map +1 -0
  220. package/dist/components/align-floating-elements.js +1 -1
  221. package/dist/components/align-floating-elements.js.map +1 -1
  222. package/dist/components/align.js +4 -0
  223. package/dist/components/align.js.map +1 -0
  224. package/dist/components/alternative-button-link-role.js +4 -0
  225. package/dist/components/alternative-button-link-role.js.map +1 -0
  226. package/dist/components/associated.controller.js +1 -1
  227. package/dist/components/associated.controller.js.map +1 -1
  228. package/dist/components/color.js +4 -0
  229. package/dist/components/color.js.map +1 -0
  230. package/dist/components/controller-icon.js +1 -1
  231. package/dist/components/controller-icon.js.map +1 -1
  232. package/dist/components/controller.js +1 -1
  233. package/dist/components/controller.js.map +1 -1
  234. package/dist/components/controller2.js +1 -1
  235. package/dist/components/controller2.js.map +1 -1
  236. package/dist/components/controller3.js +1 -1
  237. package/dist/components/controller3.js.map +1 -1
  238. package/dist/components/controller4.js +1 -1
  239. package/dist/components/controller4.js.map +1 -1
  240. package/dist/components/controller5.js +1 -1
  241. package/dist/components/controller5.js.map +1 -1
  242. package/dist/components/custom-class.js +4 -0
  243. package/dist/components/custom-class.js.map +1 -0
  244. package/dist/components/dev.utils.js +1 -1
  245. package/dist/components/dev.utils.js.map +1 -1
  246. package/dist/components/dev.utils2.js +4 -0
  247. package/dist/components/dev.utils2.js.map +1 -0
  248. package/dist/components/devtools.js +1 -1
  249. package/dist/components/devtools.js.map +1 -1
  250. package/dist/components/disabled.js +4 -0
  251. package/dist/components/disabled.js.map +1 -0
  252. package/dist/components/form-field-msg.js.map +1 -1
  253. package/dist/components/has-closer.js +4 -0
  254. package/dist/components/has-closer.js.map +1 -0
  255. package/dist/components/hide-label.js +4 -0
  256. package/dist/components/hide-label.js.map +1 -0
  257. package/dist/components/href.js +4 -0
  258. package/dist/components/href.js.map +1 -0
  259. package/dist/components/i18n2.js +1 -1
  260. package/dist/components/i18n2.js.map +1 -1
  261. package/dist/components/icons.js +4 -0
  262. package/dist/components/icons.js.map +1 -0
  263. package/dist/components/image-source.js +4 -0
  264. package/dist/components/image-source.js.map +1 -0
  265. package/dist/components/index.js +1 -1
  266. package/dist/components/index.js.map +1 -1
  267. package/dist/components/index2.js +1 -1
  268. package/dist/components/index2.js.map +1 -1
  269. package/dist/components/kol-abbr.js +1 -1
  270. package/dist/components/kol-abbr.js.map +1 -1
  271. package/dist/components/kol-accordion.js +1 -1
  272. package/dist/components/kol-accordion.js.map +1 -1
  273. package/dist/components/kol-alert-wc.js +1 -1
  274. package/dist/components/kol-alert-wc.js.map +1 -1
  275. package/dist/components/kol-alert.js +1 -1
  276. package/dist/components/kol-alert.js.map +1 -1
  277. package/dist/components/kol-avatar-wc.js +1 -1
  278. package/dist/components/kol-avatar-wc.js.map +1 -1
  279. package/dist/components/kol-avatar.js +1 -1
  280. package/dist/components/kol-avatar.js.map +1 -1
  281. package/dist/components/kol-badge.js +1 -1
  282. package/dist/components/kol-badge.js.map +1 -1
  283. package/dist/components/kol-breadcrumb.js +1 -1
  284. package/dist/components/kol-breadcrumb.js.map +1 -1
  285. package/dist/components/kol-button-group-wc.js +1 -1
  286. package/dist/components/kol-button-group-wc.js.map +1 -1
  287. package/dist/components/kol-button-group.js +1 -1
  288. package/dist/components/kol-button-group.js.map +1 -1
  289. package/dist/components/kol-button-link.js +1 -1
  290. package/dist/components/kol-button-link.js.map +1 -1
  291. package/dist/components/kol-button-wc.js +1 -1
  292. package/dist/components/kol-button-wc.js.map +1 -1
  293. package/dist/components/kol-button.js +1 -1
  294. package/dist/components/kol-button.js.map +1 -1
  295. package/dist/components/kol-card.js +1 -1
  296. package/dist/components/kol-card.js.map +1 -1
  297. package/dist/components/kol-details.js +1 -1
  298. package/dist/components/kol-details.js.map +1 -1
  299. package/dist/components/kol-form.js +1 -1
  300. package/dist/components/kol-form.js.map +1 -1
  301. package/dist/components/kol-heading-wc.js +1 -1
  302. package/dist/components/kol-heading-wc.js.map +1 -1
  303. package/dist/components/kol-heading.js +1 -1
  304. package/dist/components/kol-heading.js.map +1 -1
  305. package/dist/components/kol-icon.js +1 -1
  306. package/dist/components/kol-icon.js.map +1 -1
  307. package/dist/components/kol-image.js +1 -1
  308. package/dist/components/kol-image.js.map +1 -1
  309. package/dist/components/kol-indented-text.js +1 -1
  310. package/dist/components/kol-indented-text.js.map +1 -1
  311. package/dist/components/kol-input-checkbox.js +1 -1
  312. package/dist/components/kol-input-checkbox.js.map +1 -1
  313. package/dist/components/kol-input-color.js +1 -1
  314. package/dist/components/kol-input-color.js.map +1 -1
  315. package/dist/components/kol-input-date.js +1 -1
  316. package/dist/components/kol-input-date.js.map +1 -1
  317. package/dist/components/kol-input-email.js +1 -1
  318. package/dist/components/kol-input-email.js.map +1 -1
  319. package/dist/components/kol-input-file.js +1 -1
  320. package/dist/components/kol-input-file.js.map +1 -1
  321. package/dist/components/kol-input-number.js +1 -1
  322. package/dist/components/kol-input-number.js.map +1 -1
  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.js +1 -1
  326. package/dist/components/kol-input-radio.js.map +1 -1
  327. package/dist/components/kol-input-range.js +1 -1
  328. package/dist/components/kol-input-range.js.map +1 -1
  329. package/dist/components/kol-input-text.js +1 -1
  330. package/dist/components/kol-input-text.js.map +1 -1
  331. package/dist/components/kol-input.js +1 -1
  332. package/dist/components/kol-input.js.map +1 -1
  333. package/dist/components/kol-kolibri.js +1 -1
  334. package/dist/components/kol-kolibri.js.map +1 -1
  335. package/dist/components/kol-link-button.js +1 -1
  336. package/dist/components/kol-link-button.js.map +1 -1
  337. package/dist/components/kol-link-group.js +1 -1
  338. package/dist/components/kol-link-group.js.map +1 -1
  339. package/dist/components/kol-link-wc.js +1 -1
  340. package/dist/components/kol-link-wc.js.map +1 -1
  341. package/dist/components/kol-link.js +1 -1
  342. package/dist/components/kol-link.js.map +1 -1
  343. package/dist/components/kol-logo.js +1 -1
  344. package/dist/components/kol-logo.js.map +1 -1
  345. package/dist/components/kol-modal.js +1 -1
  346. package/dist/components/kol-modal.js.map +1 -1
  347. package/dist/components/kol-nav.js +1 -1
  348. package/dist/components/kol-nav.js.map +1 -1
  349. package/dist/components/kol-pagination.js +1 -1
  350. package/dist/components/kol-pagination.js.map +1 -1
  351. package/dist/components/kol-popover-wc.js +1 -1
  352. package/dist/components/kol-popover-wc.js.map +1 -1
  353. package/dist/components/kol-progress.js +1 -1
  354. package/dist/components/kol-progress.js.map +1 -1
  355. package/dist/components/kol-quote.js +1 -1
  356. package/dist/components/kol-quote.js.map +1 -1
  357. package/dist/components/kol-select.js +1 -1
  358. package/dist/components/kol-select.js.map +1 -1
  359. package/dist/components/kol-skip-nav.js +1 -1
  360. package/dist/components/kol-skip-nav.js.map +1 -1
  361. package/dist/components/kol-span-wc.js +1 -1
  362. package/dist/components/kol-span-wc.js.map +1 -1
  363. package/dist/components/kol-span.js +1 -1
  364. package/dist/components/kol-span.js.map +1 -1
  365. package/dist/components/kol-spin.js +1 -1
  366. package/dist/components/kol-spin.js.map +1 -1
  367. package/dist/components/kol-split-button.js +1 -1
  368. package/dist/components/kol-split-button.js.map +1 -1
  369. package/dist/components/kol-symbol.js +1 -1
  370. package/dist/components/kol-symbol.js.map +1 -1
  371. package/dist/components/kol-table-stateful.js +1 -1
  372. package/dist/components/kol-table-stateful.js.map +1 -1
  373. package/dist/components/kol-table-stateless-wc.js +1 -1
  374. package/dist/components/kol-table-stateless-wc.js.map +1 -1
  375. package/dist/components/kol-table-stateless.js +1 -1
  376. package/dist/components/kol-table-stateless.js.map +1 -1
  377. package/dist/components/kol-table.js +1 -1
  378. package/dist/components/kol-table.js.map +1 -1
  379. package/dist/components/kol-tabs.js +1 -1
  380. package/dist/components/kol-tabs.js.map +1 -1
  381. package/dist/components/kol-textarea.js +1 -1
  382. package/dist/components/kol-textarea.js.map +1 -1
  383. package/dist/components/kol-toast-container.js +1 -1
  384. package/dist/components/kol-toast-container.js.map +1 -1
  385. package/dist/components/kol-tooltip-wc.js +1 -1
  386. package/dist/components/kol-tooltip-wc.js.map +1 -1
  387. package/dist/components/kol-tree-item-wc.js +1 -1
  388. package/dist/components/kol-tree-item-wc.js.map +1 -1
  389. package/dist/components/kol-tree-item.js +1 -1
  390. package/dist/components/kol-tree-item.js.map +1 -1
  391. package/dist/components/kol-tree-wc.js +1 -1
  392. package/dist/components/kol-tree-wc.js.map +1 -1
  393. package/dist/components/kol-tree.js +1 -1
  394. package/dist/components/kol-tree.js.map +1 -1
  395. package/dist/components/kol-version.js +1 -1
  396. package/dist/components/kol-version.js.map +1 -1
  397. package/dist/components/label.js +4 -0
  398. package/dist/components/label.js.map +1 -0
  399. package/dist/components/open.js +4 -0
  400. package/dist/components/open.js.map +1 -0
  401. package/dist/components/prop.validators.js +4 -0
  402. package/dist/components/prop.validators.js.map +1 -0
  403. package/dist/components/reuse.js +4 -0
  404. package/dist/components/reuse.js.map +1 -0
  405. package/dist/components/rows.js +4 -0
  406. package/dist/components/rows.js.map +1 -0
  407. package/dist/components/show.js +4 -0
  408. package/dist/components/show.js.map +1 -0
  409. package/dist/components/suggestions.js +4 -0
  410. package/dist/components/suggestions.js.map +1 -0
  411. package/dist/components/tab-index.js +4 -0
  412. package/dist/components/tab-index.js.map +1 -0
  413. package/dist/components/table-data-foot.js +4 -0
  414. package/dist/components/table-data-foot.js.map +1 -0
  415. package/dist/components/table-render-function.js.map +1 -1
  416. package/dist/components/tooltip-align.js +4 -0
  417. package/dist/components/tooltip-align.js.map +1 -0
  418. package/dist/components/validation.js +1 -1
  419. package/dist/components/validation.js.map +1 -1
  420. package/dist/components/validation2.js +1 -1
  421. package/dist/components/validation2.js.map +1 -1
  422. package/dist/declare.d.ts +22 -0
  423. package/dist/esm/access-key-04ca8172.js +4 -0
  424. package/dist/esm/access-key-04ca8172.js.map +1 -0
  425. package/dist/esm/align-fc528dec.js +4 -0
  426. package/dist/esm/align-fc528dec.js.map +1 -0
  427. package/dist/esm/{align-floating-elements-f7d913f4.js → align-floating-elements-0cd5dc51.js} +1 -1
  428. package/dist/esm/{align-floating-elements-f7d913f4.js.map → align-floating-elements-0cd5dc51.js.map} +1 -1
  429. package/dist/esm/alternative-button-link-role-97826181.js +4 -0
  430. package/dist/esm/alternative-button-link-role-97826181.js.map +1 -0
  431. package/dist/esm/app-globals-d78b8e64.js +4 -0
  432. package/dist/esm/app-globals-d78b8e64.js.map +1 -0
  433. package/dist/esm/associated.controller-b0ff2f30.js +4 -0
  434. package/dist/esm/associated.controller-b0ff2f30.js.map +1 -0
  435. package/dist/esm/color-5129ba78.js +4 -0
  436. package/dist/esm/color-5129ba78.js.map +1 -0
  437. package/dist/esm/controller-04329990.js +4 -0
  438. package/dist/esm/controller-04329990.js.map +1 -0
  439. package/dist/esm/controller-3340473e.js +4 -0
  440. package/dist/esm/controller-3340473e.js.map +1 -0
  441. package/dist/esm/controller-423fae71.js +4 -0
  442. package/dist/esm/controller-423fae71.js.map +1 -0
  443. package/dist/esm/controller-942cc80a.js +4 -0
  444. package/dist/esm/controller-942cc80a.js.map +1 -0
  445. package/dist/esm/controller-af9c691f.js +4 -0
  446. package/dist/esm/controller-af9c691f.js.map +1 -0
  447. package/dist/esm/controller-icon-b040c27e.js +4 -0
  448. package/dist/esm/controller-icon-b040c27e.js.map +1 -0
  449. package/dist/esm/custom-class-f88bc94b.js +4 -0
  450. package/dist/esm/custom-class-f88bc94b.js.map +1 -0
  451. package/dist/esm/dev.utils-1ca991a2.js +4 -0
  452. package/dist/esm/dev.utils-1ca991a2.js.map +1 -0
  453. package/dist/esm/dev.utils-37559a2c.js +4 -0
  454. package/dist/esm/dev.utils-37559a2c.js.map +1 -0
  455. package/dist/esm/devtools-a2ed4171.js +4 -0
  456. package/dist/esm/devtools-a2ed4171.js.map +1 -0
  457. package/dist/esm/disabled-fbc49ac0.js +4 -0
  458. package/dist/esm/disabled-fbc49ac0.js.map +1 -0
  459. package/dist/esm/form-field-msg-244f6083.js.map +1 -1
  460. package/dist/esm/has-closer-f9cf9bc4.js +4 -0
  461. package/dist/esm/has-closer-f9cf9bc4.js.map +1 -0
  462. package/dist/esm/hide-label-c461d8fe.js +4 -0
  463. package/dist/esm/hide-label-c461d8fe.js.map +1 -0
  464. package/dist/esm/href-7d17954a.js +4 -0
  465. package/dist/esm/href-7d17954a.js.map +1 -0
  466. package/dist/esm/{i18n-7bf2bd6f.js → i18n-37baa421.js} +1 -1
  467. package/dist/esm/{i18n-7bf2bd6f.js.map → i18n-37baa421.js.map} +1 -1
  468. package/dist/esm/icons-d2e01be4.js +4 -0
  469. package/dist/esm/icons-d2e01be4.js.map +1 -0
  470. package/dist/esm/image-source-36b5abe9.js +4 -0
  471. package/dist/esm/image-source-36b5abe9.js.map +1 -0
  472. package/dist/esm/index-4a3076fc.js +4 -0
  473. package/dist/esm/index-4a3076fc.js.map +1 -0
  474. package/dist/{kolibri/index-e9e31210.js → esm/index-a55b574c.js} +1 -1
  475. package/dist/esm/{index-e9e31210.js.map → index-a55b574c.js.map} +1 -1
  476. package/dist/esm/index.js +1 -1
  477. package/dist/esm/index.js.map +1 -1
  478. package/dist/esm/kol-abbr.entry.js +1 -1
  479. package/dist/esm/kol-abbr.entry.js.map +1 -1
  480. package/dist/esm/kol-accordion.entry.js +1 -1
  481. package/dist/esm/kol-accordion.entry.js.map +1 -1
  482. package/dist/esm/kol-alert-wc.entry.js +1 -1
  483. package/dist/esm/kol-alert-wc.entry.js.map +1 -1
  484. package/dist/esm/kol-alert.entry.js +1 -1
  485. package/dist/esm/kol-alert.entry.js.map +1 -1
  486. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  487. package/dist/esm/kol-avatar-wc.entry.js.map +1 -1
  488. package/dist/esm/kol-avatar.entry.js +1 -1
  489. package/dist/esm/kol-avatar.entry.js.map +1 -1
  490. package/dist/esm/kol-badge.entry.js +1 -1
  491. package/dist/esm/kol-badge.entry.js.map +1 -1
  492. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  493. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  494. package/dist/esm/kol-button-group-wc.entry.js +1 -1
  495. package/dist/esm/kol-button-group-wc.entry.js.map +1 -1
  496. package/dist/esm/kol-button-group.entry.js +1 -1
  497. package/dist/esm/kol-button-group.entry.js.map +1 -1
  498. package/dist/esm/kol-button-link.entry.js +1 -1
  499. package/dist/esm/kol-button-link.entry.js.map +1 -1
  500. package/dist/esm/kol-button-wc.entry.js +1 -1
  501. package/dist/esm/kol-button-wc.entry.js.map +1 -1
  502. package/dist/esm/kol-button.entry.js +1 -1
  503. package/dist/esm/kol-button.entry.js.map +1 -1
  504. package/dist/esm/kol-card.entry.js +1 -1
  505. package/dist/esm/kol-card.entry.js.map +1 -1
  506. package/dist/esm/kol-details.entry.js +1 -1
  507. package/dist/esm/kol-details.entry.js.map +1 -1
  508. package/dist/esm/kol-form.entry.js +1 -1
  509. package/dist/esm/kol-form.entry.js.map +1 -1
  510. package/dist/esm/kol-heading-wc.entry.js +1 -1
  511. package/dist/esm/kol-heading-wc.entry.js.map +1 -1
  512. package/dist/esm/kol-heading.entry.js +1 -1
  513. package/dist/esm/kol-heading.entry.js.map +1 -1
  514. package/dist/esm/kol-icon.entry.js +1 -1
  515. package/dist/esm/kol-icon.entry.js.map +1 -1
  516. package/dist/esm/kol-image.entry.js +1 -1
  517. package/dist/esm/kol-image.entry.js.map +1 -1
  518. package/dist/esm/kol-indented-text.entry.js +1 -1
  519. package/dist/esm/kol-indented-text.entry.js.map +1 -1
  520. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  521. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  522. package/dist/esm/kol-input-color.entry.js +1 -1
  523. package/dist/esm/kol-input-color.entry.js.map +1 -1
  524. package/dist/esm/kol-input-date.entry.js +1 -1
  525. package/dist/esm/kol-input-date.entry.js.map +1 -1
  526. package/dist/esm/kol-input-email.entry.js +1 -1
  527. package/dist/esm/kol-input-email.entry.js.map +1 -1
  528. package/dist/esm/kol-input-file.entry.js +1 -1
  529. package/dist/esm/kol-input-file.entry.js.map +1 -1
  530. package/dist/esm/kol-input-number.entry.js +1 -1
  531. package/dist/esm/kol-input-number.entry.js.map +1 -1
  532. package/dist/esm/kol-input-password.entry.js +1 -1
  533. package/dist/esm/kol-input-password.entry.js.map +1 -1
  534. package/dist/esm/kol-input-radio.entry.js +1 -1
  535. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  536. package/dist/esm/kol-input-range.entry.js +1 -1
  537. package/dist/esm/kol-input-range.entry.js.map +1 -1
  538. package/dist/esm/kol-input-text.entry.js +1 -1
  539. package/dist/esm/kol-input-text.entry.js.map +1 -1
  540. package/dist/esm/kol-input.entry.js +1 -1
  541. package/dist/esm/kol-input.entry.js.map +1 -1
  542. package/dist/esm/kol-kolibri.entry.js +1 -1
  543. package/dist/esm/kol-kolibri.entry.js.map +1 -1
  544. package/dist/esm/kol-link-button.entry.js +1 -1
  545. package/dist/esm/kol-link-button.entry.js.map +1 -1
  546. package/dist/esm/kol-link-group.entry.js +1 -1
  547. package/dist/esm/kol-link-group.entry.js.map +1 -1
  548. package/dist/esm/kol-link-wc.entry.js +1 -1
  549. package/dist/esm/kol-link-wc.entry.js.map +1 -1
  550. package/dist/esm/kol-link.entry.js +1 -1
  551. package/dist/esm/kol-link.entry.js.map +1 -1
  552. package/dist/esm/kol-logo.entry.js +1 -1
  553. package/dist/esm/kol-logo.entry.js.map +1 -1
  554. package/dist/esm/kol-modal.entry.js +1 -1
  555. package/dist/esm/kol-modal.entry.js.map +1 -1
  556. package/dist/esm/kol-nav.entry.js +1 -1
  557. package/dist/esm/kol-nav.entry.js.map +1 -1
  558. package/dist/esm/kol-pagination.entry.js +1 -1
  559. package/dist/esm/kol-pagination.entry.js.map +1 -1
  560. package/dist/esm/kol-popover-wc.entry.js +1 -1
  561. package/dist/esm/kol-popover-wc.entry.js.map +1 -1
  562. package/dist/esm/kol-progress.entry.js +1 -1
  563. package/dist/esm/kol-progress.entry.js.map +1 -1
  564. package/dist/esm/kol-quote.entry.js +1 -1
  565. package/dist/esm/kol-quote.entry.js.map +1 -1
  566. package/dist/esm/kol-select.entry.js +1 -1
  567. package/dist/esm/kol-select.entry.js.map +1 -1
  568. package/dist/esm/kol-skip-nav.entry.js +1 -1
  569. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  570. package/dist/esm/kol-span-wc.entry.js +1 -1
  571. package/dist/esm/kol-span-wc.entry.js.map +1 -1
  572. package/dist/esm/kol-span.entry.js +1 -1
  573. package/dist/esm/kol-span.entry.js.map +1 -1
  574. package/dist/esm/kol-spin.entry.js +1 -1
  575. package/dist/esm/kol-spin.entry.js.map +1 -1
  576. package/dist/esm/kol-split-button.entry.js +1 -1
  577. package/dist/esm/kol-split-button.entry.js.map +1 -1
  578. package/dist/esm/kol-symbol.entry.js +1 -1
  579. package/dist/esm/kol-symbol.entry.js.map +1 -1
  580. package/dist/esm/kol-table-stateful.entry.js +1 -1
  581. package/dist/esm/kol-table-stateful.entry.js.map +1 -1
  582. package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
  583. package/dist/esm/kol-table-stateless-wc.entry.js.map +1 -1
  584. package/dist/esm/kol-table-stateless.entry.js +1 -1
  585. package/dist/esm/kol-table-stateless.entry.js.map +1 -1
  586. package/dist/esm/kol-table.entry.js +1 -1
  587. package/dist/esm/kol-table.entry.js.map +1 -1
  588. package/dist/esm/kol-tabs.entry.js +1 -1
  589. package/dist/esm/kol-tabs.entry.js.map +1 -1
  590. package/dist/esm/kol-textarea.entry.js +1 -1
  591. package/dist/esm/kol-textarea.entry.js.map +1 -1
  592. package/dist/esm/kol-toast-container.entry.js +1 -1
  593. package/dist/esm/kol-toast-container.entry.js.map +1 -1
  594. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  595. package/dist/esm/kol-tooltip-wc.entry.js.map +1 -1
  596. package/dist/esm/kol-tree-item-wc.entry.js +1 -1
  597. package/dist/esm/kol-tree-item-wc.entry.js.map +1 -1
  598. package/dist/esm/kol-tree-item.entry.js +1 -1
  599. package/dist/esm/kol-tree-item.entry.js.map +1 -1
  600. package/dist/esm/kol-tree-wc.entry.js +1 -1
  601. package/dist/esm/kol-tree-wc.entry.js.map +1 -1
  602. package/dist/esm/kol-tree.entry.js +1 -1
  603. package/dist/esm/kol-tree.entry.js.map +1 -1
  604. package/dist/esm/kol-version.entry.js +1 -1
  605. package/dist/esm/kol-version.entry.js.map +1 -1
  606. package/dist/esm/kolibri.js +1 -1
  607. package/dist/esm/kolibri.js.map +1 -1
  608. package/dist/esm/label-e56ffdc6.js +4 -0
  609. package/dist/esm/label-e56ffdc6.js.map +1 -0
  610. package/dist/esm/loader.js +1 -1
  611. package/dist/esm/loader.js.map +1 -1
  612. package/dist/esm/open-deacfbd7.js +4 -0
  613. package/dist/esm/open-deacfbd7.js.map +1 -0
  614. package/dist/esm/prop.validators-29d576d2.js +4 -0
  615. package/dist/esm/prop.validators-29d576d2.js.map +1 -0
  616. package/dist/esm/reuse-b66836de.js +4 -0
  617. package/dist/esm/reuse-b66836de.js.map +1 -0
  618. package/dist/esm/rows-005ad248.js +4 -0
  619. package/dist/esm/rows-005ad248.js.map +1 -0
  620. package/dist/esm/show-34226103.js +4 -0
  621. package/dist/esm/show-34226103.js.map +1 -0
  622. package/dist/esm/suggestions-d97a6ab9.js +4 -0
  623. package/dist/esm/suggestions-d97a6ab9.js.map +1 -0
  624. package/dist/esm/tab-index-2cbc1ad1.js +4 -0
  625. package/dist/esm/tab-index-2cbc1ad1.js.map +1 -0
  626. package/dist/esm/table-data-foot-ed56b062.js +4 -0
  627. package/dist/esm/table-data-foot-ed56b062.js.map +1 -0
  628. package/dist/esm/table-render-function-835a18a0.js.map +1 -1
  629. package/dist/esm/{toaster-12097d83.js → toaster-18d16ce1.js} +1 -1
  630. package/dist/esm/{toaster-12097d83.js.map → toaster-18d16ce1.js.map} +1 -1
  631. package/dist/esm/{toaster-4eb33f18.js → toaster-b6d0fa6b.js} +1 -1
  632. package/dist/esm/{toaster-4eb33f18.js.map → toaster-b6d0fa6b.js.map} +1 -1
  633. package/dist/esm/tooltip-align-c13a7aa7.js +4 -0
  634. package/dist/esm/tooltip-align-c13a7aa7.js.map +1 -0
  635. package/dist/esm/validation-561836d9.js +4 -0
  636. package/dist/esm/validation-561836d9.js.map +1 -0
  637. package/dist/esm/validation-c2d11c8c.js +4 -0
  638. package/dist/esm/validation-c2d11c8c.js.map +1 -0
  639. package/dist/kolibri/access-key-04ca8172.js +4 -0
  640. package/dist/kolibri/access-key-04ca8172.js.map +1 -0
  641. package/dist/kolibri/align-fc528dec.js +4 -0
  642. package/dist/kolibri/align-fc528dec.js.map +1 -0
  643. package/dist/kolibri/{align-floating-elements-f7d913f4.js → align-floating-elements-0cd5dc51.js} +1 -1
  644. package/dist/kolibri/{align-floating-elements-f7d913f4.js.map → align-floating-elements-0cd5dc51.js.map} +1 -1
  645. package/dist/kolibri/alternative-button-link-role-97826181.js +4 -0
  646. package/dist/kolibri/alternative-button-link-role-97826181.js.map +1 -0
  647. package/dist/kolibri/app-globals-d78b8e64.js +4 -0
  648. package/dist/kolibri/app-globals-d78b8e64.js.map +1 -0
  649. package/dist/kolibri/associated.controller-b0ff2f30.js +4 -0
  650. package/dist/kolibri/associated.controller-b0ff2f30.js.map +1 -0
  651. package/dist/kolibri/color-5129ba78.js +4 -0
  652. package/dist/kolibri/color-5129ba78.js.map +1 -0
  653. package/dist/kolibri/controller-04329990.js +4 -0
  654. package/dist/{esm/controller-09ce054b.js.map → kolibri/controller-04329990.js.map} +1 -1
  655. package/dist/kolibri/controller-3340473e.js +4 -0
  656. package/dist/kolibri/controller-3340473e.js.map +1 -0
  657. package/dist/kolibri/controller-423fae71.js +4 -0
  658. package/dist/kolibri/controller-423fae71.js.map +1 -0
  659. package/dist/kolibri/controller-942cc80a.js +4 -0
  660. package/dist/kolibri/controller-942cc80a.js.map +1 -0
  661. package/dist/kolibri/controller-af9c691f.js +4 -0
  662. package/dist/kolibri/controller-af9c691f.js.map +1 -0
  663. package/dist/kolibri/controller-icon-b040c27e.js +4 -0
  664. package/dist/kolibri/controller-icon-b040c27e.js.map +1 -0
  665. package/dist/kolibri/custom-class-f88bc94b.js +4 -0
  666. package/dist/kolibri/custom-class-f88bc94b.js.map +1 -0
  667. package/dist/kolibri/dev.utils-1ca991a2.js +4 -0
  668. package/dist/kolibri/dev.utils-1ca991a2.js.map +1 -0
  669. package/dist/kolibri/dev.utils-37559a2c.js +4 -0
  670. package/dist/kolibri/dev.utils-37559a2c.js.map +1 -0
  671. package/dist/kolibri/devtools-a2ed4171.js +4 -0
  672. package/dist/kolibri/devtools-a2ed4171.js.map +1 -0
  673. package/dist/kolibri/disabled-fbc49ac0.js +4 -0
  674. package/dist/kolibri/disabled-fbc49ac0.js.map +1 -0
  675. package/dist/kolibri/form-field-msg-244f6083.js.map +1 -1
  676. package/dist/kolibri/has-closer-f9cf9bc4.js +4 -0
  677. package/dist/kolibri/has-closer-f9cf9bc4.js.map +1 -0
  678. package/dist/kolibri/hide-label-c461d8fe.js +4 -0
  679. package/dist/kolibri/hide-label-c461d8fe.js.map +1 -0
  680. package/dist/kolibri/href-7d17954a.js +4 -0
  681. package/dist/kolibri/href-7d17954a.js.map +1 -0
  682. package/dist/kolibri/{i18n-7bf2bd6f.js → i18n-37baa421.js} +1 -1
  683. package/dist/kolibri/{i18n-7bf2bd6f.js.map → i18n-37baa421.js.map} +1 -1
  684. package/dist/kolibri/icons-d2e01be4.js +4 -0
  685. package/dist/kolibri/icons-d2e01be4.js.map +1 -0
  686. package/dist/kolibri/image-source-36b5abe9.js +4 -0
  687. package/dist/kolibri/image-source-36b5abe9.js.map +1 -0
  688. package/dist/kolibri/index-4a3076fc.js +4 -0
  689. package/dist/kolibri/index-4a3076fc.js.map +1 -0
  690. package/dist/{esm/index-e9e31210.js → kolibri/index-a55b574c.js} +1 -1
  691. package/dist/kolibri/index.esm.js +1 -1
  692. package/dist/kolibri/index.esm.js.map +1 -1
  693. package/dist/kolibri/kol-abbr.entry.js +1 -1
  694. package/dist/kolibri/kol-abbr.entry.js.map +1 -1
  695. package/dist/kolibri/kol-accordion.entry.js +1 -1
  696. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  697. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  698. package/dist/kolibri/kol-alert-wc.entry.js.map +1 -1
  699. package/dist/kolibri/kol-alert.entry.js +1 -1
  700. package/dist/kolibri/kol-alert.entry.js.map +1 -1
  701. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  702. package/dist/kolibri/kol-avatar-wc.entry.js.map +1 -1
  703. package/dist/kolibri/kol-avatar.entry.js +1 -1
  704. package/dist/kolibri/kol-avatar.entry.js.map +1 -1
  705. package/dist/kolibri/kol-badge.entry.js +1 -1
  706. package/dist/kolibri/kol-badge.entry.js.map +1 -1
  707. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  708. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  709. package/dist/kolibri/kol-button-group-wc.entry.js +1 -1
  710. package/dist/kolibri/kol-button-group-wc.entry.js.map +1 -1
  711. package/dist/kolibri/kol-button-group.entry.js +1 -1
  712. package/dist/kolibri/kol-button-group.entry.js.map +1 -1
  713. package/dist/kolibri/kol-button-link.entry.js +1 -1
  714. package/dist/kolibri/kol-button-link.entry.js.map +1 -1
  715. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  716. package/dist/kolibri/kol-button-wc.entry.js.map +1 -1
  717. package/dist/kolibri/kol-button.entry.js +1 -1
  718. package/dist/kolibri/kol-button.entry.js.map +1 -1
  719. package/dist/kolibri/kol-card.entry.js +1 -1
  720. package/dist/kolibri/kol-card.entry.js.map +1 -1
  721. package/dist/kolibri/kol-details.entry.js +1 -1
  722. package/dist/kolibri/kol-details.entry.js.map +1 -1
  723. package/dist/kolibri/kol-form.entry.js +1 -1
  724. package/dist/kolibri/kol-form.entry.js.map +1 -1
  725. package/dist/kolibri/kol-heading-wc.entry.js +1 -1
  726. package/dist/kolibri/kol-heading-wc.entry.js.map +1 -1
  727. package/dist/kolibri/kol-heading.entry.js +1 -1
  728. package/dist/kolibri/kol-heading.entry.js.map +1 -1
  729. package/dist/kolibri/kol-icon.entry.js +1 -1
  730. package/dist/kolibri/kol-icon.entry.js.map +1 -1
  731. package/dist/kolibri/kol-image.entry.js +1 -1
  732. package/dist/kolibri/kol-image.entry.js.map +1 -1
  733. package/dist/kolibri/kol-indented-text.entry.js +1 -1
  734. package/dist/kolibri/kol-indented-text.entry.js.map +1 -1
  735. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  736. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  737. package/dist/kolibri/kol-input-color.entry.js +1 -1
  738. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  739. package/dist/kolibri/kol-input-date.entry.js +1 -1
  740. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  741. package/dist/kolibri/kol-input-email.entry.js +1 -1
  742. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  743. package/dist/kolibri/kol-input-file.entry.js +1 -1
  744. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  745. package/dist/kolibri/kol-input-number.entry.js +1 -1
  746. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  747. package/dist/kolibri/kol-input-password.entry.js +1 -1
  748. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  749. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  750. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  751. package/dist/kolibri/kol-input-range.entry.js +1 -1
  752. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  753. package/dist/kolibri/kol-input-text.entry.js +1 -1
  754. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  755. package/dist/kolibri/kol-input.entry.js +1 -1
  756. package/dist/kolibri/kol-input.entry.js.map +1 -1
  757. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  758. package/dist/kolibri/kol-kolibri.entry.js.map +1 -1
  759. package/dist/kolibri/kol-link-button.entry.js +1 -1
  760. package/dist/kolibri/kol-link-button.entry.js.map +1 -1
  761. package/dist/kolibri/kol-link-group.entry.js +1 -1
  762. package/dist/kolibri/kol-link-group.entry.js.map +1 -1
  763. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  764. package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
  765. package/dist/kolibri/kol-link.entry.js +1 -1
  766. package/dist/kolibri/kol-link.entry.js.map +1 -1
  767. package/dist/kolibri/kol-logo.entry.js +1 -1
  768. package/dist/kolibri/kol-logo.entry.js.map +1 -1
  769. package/dist/kolibri/kol-modal.entry.js +1 -1
  770. package/dist/kolibri/kol-modal.entry.js.map +1 -1
  771. package/dist/kolibri/kol-nav.entry.js +1 -1
  772. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  773. package/dist/kolibri/kol-pagination.entry.js +1 -1
  774. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  775. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  776. package/dist/kolibri/kol-popover-wc.entry.js.map +1 -1
  777. package/dist/kolibri/kol-progress.entry.js +1 -1
  778. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  779. package/dist/kolibri/kol-quote.entry.js +1 -1
  780. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  781. package/dist/kolibri/kol-select.entry.js +1 -1
  782. package/dist/kolibri/kol-select.entry.js.map +1 -1
  783. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  784. package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
  785. package/dist/kolibri/kol-span-wc.entry.js +1 -1
  786. package/dist/kolibri/kol-span-wc.entry.js.map +1 -1
  787. package/dist/kolibri/kol-span.entry.js +1 -1
  788. package/dist/kolibri/kol-span.entry.js.map +1 -1
  789. package/dist/kolibri/kol-spin.entry.js +1 -1
  790. package/dist/kolibri/kol-spin.entry.js.map +1 -1
  791. package/dist/kolibri/kol-split-button.entry.js +1 -1
  792. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  793. package/dist/kolibri/kol-symbol.entry.js +1 -1
  794. package/dist/kolibri/kol-symbol.entry.js.map +1 -1
  795. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  796. package/dist/kolibri/kol-table-stateful.entry.js.map +1 -1
  797. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  798. package/dist/kolibri/kol-table-stateless-wc.entry.js.map +1 -1
  799. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  800. package/dist/kolibri/kol-table-stateless.entry.js.map +1 -1
  801. package/dist/kolibri/kol-table.entry.js +1 -1
  802. package/dist/kolibri/kol-table.entry.js.map +1 -1
  803. package/dist/kolibri/kol-tabs.entry.js +1 -1
  804. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  805. package/dist/kolibri/kol-textarea.entry.js +1 -1
  806. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  807. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  808. package/dist/kolibri/kol-toast-container.entry.js.map +1 -1
  809. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  810. package/dist/kolibri/kol-tooltip-wc.entry.js.map +1 -1
  811. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  812. package/dist/kolibri/kol-tree-item-wc.entry.js.map +1 -1
  813. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  814. package/dist/kolibri/kol-tree-item.entry.js.map +1 -1
  815. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  816. package/dist/kolibri/kol-tree-wc.entry.js.map +1 -1
  817. package/dist/kolibri/kol-tree.entry.js +1 -1
  818. package/dist/kolibri/kol-tree.entry.js.map +1 -1
  819. package/dist/kolibri/kol-version.entry.js +1 -1
  820. package/dist/kolibri/kol-version.entry.js.map +1 -1
  821. package/dist/kolibri/kolibri.esm.js +1 -1
  822. package/dist/kolibri/kolibri.esm.js.map +1 -1
  823. package/dist/kolibri/label-e56ffdc6.js +4 -0
  824. package/dist/kolibri/label-e56ffdc6.js.map +1 -0
  825. package/dist/kolibri/open-deacfbd7.js +4 -0
  826. package/dist/kolibri/open-deacfbd7.js.map +1 -0
  827. package/dist/kolibri/prop.validators-29d576d2.js +4 -0
  828. package/dist/kolibri/prop.validators-29d576d2.js.map +1 -0
  829. package/dist/kolibri/reuse-b66836de.js +4 -0
  830. package/dist/kolibri/reuse-b66836de.js.map +1 -0
  831. package/dist/kolibri/rows-005ad248.js +4 -0
  832. package/dist/kolibri/rows-005ad248.js.map +1 -0
  833. package/dist/kolibri/show-34226103.js +4 -0
  834. package/dist/kolibri/show-34226103.js.map +1 -0
  835. package/dist/kolibri/suggestions-d97a6ab9.js +4 -0
  836. package/dist/kolibri/suggestions-d97a6ab9.js.map +1 -0
  837. package/dist/kolibri/tab-index-2cbc1ad1.js +4 -0
  838. package/dist/kolibri/tab-index-2cbc1ad1.js.map +1 -0
  839. package/dist/kolibri/table-data-foot-ed56b062.js +4 -0
  840. package/dist/kolibri/table-data-foot-ed56b062.js.map +1 -0
  841. package/dist/kolibri/table-render-function-835a18a0.js.map +1 -1
  842. package/dist/kolibri/{toaster-12097d83.js → toaster-18d16ce1.js} +1 -1
  843. package/dist/kolibri/toaster-18d16ce1.js.map +1 -0
  844. package/dist/kolibri/{toaster-4eb33f18.js → toaster-b6d0fa6b.js} +1 -1
  845. package/dist/kolibri/tooltip-align-c13a7aa7.js +4 -0
  846. package/dist/kolibri/tooltip-align-c13a7aa7.js.map +1 -0
  847. package/dist/kolibri/validation-561836d9.js +4 -0
  848. package/dist/kolibri/validation-561836d9.js.map +1 -0
  849. package/dist/kolibri/validation-c2d11c8c.js +4 -0
  850. package/dist/kolibri/validation-c2d11c8c.js.map +1 -0
  851. package/dist/types/components/@deprecated/input/controller-icon.d.ts +1 -1
  852. package/dist/types/components/@deprecated/input/controller.d.ts +1 -1
  853. package/dist/types/components/@deprecated/input/types-icon.d.ts +1 -1
  854. package/dist/types/components/@deprecated/input/types.d.ts +1 -1
  855. package/dist/types/components/@shared/form-field-msg.d.ts +1 -1
  856. package/dist/types/components/abbr/component.d.ts +1 -1
  857. package/dist/types/components/abbr/test/html.mock.d.ts +1 -1
  858. package/dist/types/components/accordion/component.d.ts +1 -1
  859. package/dist/types/components/accordion/test/html.mock.d.ts +1 -1
  860. package/dist/types/components/alert/component.d.ts +1 -1
  861. package/dist/types/components/alert/shadow.d.ts +1 -1
  862. package/dist/types/components/alert/test/html.mock.d.ts +1 -1
  863. package/dist/types/components/avatar/component.d.ts +1 -1
  864. package/dist/types/components/avatar/shadow.d.ts +1 -1
  865. package/dist/types/components/avatar/test/html.mock.d.ts +1 -1
  866. package/dist/types/components/badge/component.d.ts +1 -1
  867. package/dist/types/components/badge/test/html.mock.d.ts +1 -1
  868. package/dist/types/components/breadcrumb/component.d.ts +1 -1
  869. package/dist/types/components/breadcrumb/test/html.mock.d.ts +1 -1
  870. package/dist/types/components/button/component.d.ts +1 -1
  871. package/dist/types/components/button/shadow.d.ts +1 -1
  872. package/dist/types/components/button/test/html.mock.d.ts +1 -1
  873. package/dist/types/components/button-group/component.d.ts +1 -1
  874. package/dist/types/components/button-group/shadow.d.ts +1 -1
  875. package/dist/types/components/button-link/component.d.ts +1 -1
  876. package/dist/types/components/button-link/test/html.mock.d.ts +1 -1
  877. package/dist/types/components/card/component.d.ts +1 -1
  878. package/dist/types/components/card/test/html.mock.d.ts +1 -1
  879. package/dist/types/components/details/component.d.ts +2 -2
  880. package/dist/types/components/details/test/html.mock.d.ts +1 -1
  881. package/dist/types/components/form/component.d.ts +1 -1
  882. package/dist/types/components/form/test/html.mock.d.ts +1 -1
  883. package/dist/types/components/heading/component.d.ts +1 -1
  884. package/dist/types/components/heading/shadow.d.ts +1 -1
  885. package/dist/types/components/heading/test/html.mock.d.ts +1 -1
  886. package/dist/types/components/heading/validation.d.ts +1 -1
  887. package/dist/types/components/icon/component.d.ts +1 -1
  888. package/dist/types/components/icon/test/html.mock.d.ts +1 -1
  889. package/dist/types/components/image/shadow.d.ts +1 -1
  890. package/dist/types/components/image/test/html.mock.d.ts +1 -1
  891. package/dist/types/components/indented-text/component.d.ts +1 -1
  892. package/dist/types/components/indented-text/test/html.mock.d.ts +1 -1
  893. package/dist/types/components/input/component.d.ts +2 -2
  894. package/dist/types/components/input/controller.d.ts +1 -1
  895. package/dist/types/components/input/test/html.mock.d.ts +1 -1
  896. package/dist/types/components/input/types.d.ts +1 -1
  897. package/dist/types/components/input-adapter-leanup/associated.controller.d.ts +1 -1
  898. package/dist/types/components/input-checkbox/component.d.ts +1 -1
  899. package/dist/types/components/input-checkbox/controller.d.ts +1 -1
  900. package/dist/types/components/input-checkbox/test/html.mock.d.ts +1 -1
  901. package/dist/types/components/input-color/component.d.ts +1 -1
  902. package/dist/types/components/input-color/controller.d.ts +1 -1
  903. package/dist/types/components/input-color/test/html.mock.d.ts +1 -1
  904. package/dist/types/components/input-date/component.d.ts +2 -2
  905. package/dist/types/components/input-date/controller.d.ts +1 -1
  906. package/dist/types/components/input-date/test/html.mock.d.ts +1 -1
  907. package/dist/types/components/input-email/component.d.ts +1 -1
  908. package/dist/types/components/input-email/controller.d.ts +1 -1
  909. package/dist/types/components/input-email/test/html.mock.d.ts +1 -1
  910. package/dist/types/components/input-file/component.d.ts +1 -1
  911. package/dist/types/components/input-file/controller.d.ts +1 -1
  912. package/dist/types/components/input-file/test/html.mock.d.ts +1 -1
  913. package/dist/types/components/input-number/component.d.ts +1 -1
  914. package/dist/types/components/input-number/controller.d.ts +1 -1
  915. package/dist/types/components/input-number/test/html.mock.d.ts +1 -1
  916. package/dist/types/components/input-password/component.d.ts +1 -1
  917. package/dist/types/components/input-password/controller.d.ts +1 -1
  918. package/dist/types/components/input-password/test/html.mock.d.ts +1 -1
  919. package/dist/types/components/input-radio/component.d.ts +1 -1
  920. package/dist/types/components/input-radio/controller.d.ts +1 -1
  921. package/dist/types/components/input-radio/test/html.mock.d.ts +1 -1
  922. package/dist/types/components/input-range/component.d.ts +1 -1
  923. package/dist/types/components/input-range/controller.d.ts +1 -1
  924. package/dist/types/components/input-range/test/html.mock.d.ts +1 -1
  925. package/dist/types/components/input-text/component.d.ts +1 -1
  926. package/dist/types/components/input-text/controller.d.ts +1 -1
  927. package/dist/types/components/input-text/test/html.mock.d.ts +1 -1
  928. package/dist/types/components/kolibri/component.d.ts +1 -1
  929. package/dist/types/components/link/component.d.ts +1 -1
  930. package/dist/types/components/link/shadow.d.ts +1 -1
  931. package/dist/types/components/link/test/html.mock.d.ts +1 -1
  932. package/dist/types/components/link-button/component.d.ts +1 -1
  933. package/dist/types/components/link-group/component.d.ts +1 -1
  934. package/dist/types/components/modal/component.d.ts +1 -1
  935. package/dist/types/components/nav/component.d.ts +1 -1
  936. package/dist/types/components/nav/validation.d.ts +1 -1
  937. package/dist/types/components/pagination/component.d.ts +1 -1
  938. package/dist/types/components/popover/component.d.ts +1 -1
  939. package/dist/types/components/popover/test/html.mock.d.ts +1 -1
  940. package/dist/types/components/progress/component.d.ts +1 -1
  941. package/dist/types/components/quote/shadow.d.ts +1 -1
  942. package/dist/types/components/quote/test/html.mock.d.ts +1 -1
  943. package/dist/types/components/select/component.d.ts +1 -1
  944. package/dist/types/components/select/controller.d.ts +1 -1
  945. package/dist/types/components/skip-nav/component.d.ts +1 -1
  946. package/dist/types/components/span/component.d.ts +1 -1
  947. package/dist/types/components/span/shadow.d.ts +1 -1
  948. package/dist/types/components/span/test/html.mock.d.ts +1 -1
  949. package/dist/types/components/spin/component.d.ts +1 -1
  950. package/dist/types/components/spin/test/html.mock.d.ts +1 -1
  951. package/dist/types/components/split-button/component.d.ts +1 -1
  952. package/dist/types/components/symbol/component.d.ts +1 -1
  953. package/dist/types/components/symbol/test/html.mock.d.ts +1 -1
  954. package/dist/types/components/table/component.d.ts +1 -1
  955. package/dist/types/components/table-stateful/component.d.ts +1 -1
  956. package/dist/types/components/table-stateless/component.d.ts +1 -1
  957. package/dist/types/components/table-stateless/shadow.d.ts +1 -1
  958. package/dist/types/components/tabs/component.d.ts +1 -1
  959. package/dist/types/components/textarea/component.d.ts +1 -1
  960. package/dist/types/components/textarea/controller.d.ts +1 -1
  961. package/dist/types/components/toaster/InternalToast.d.ts +1 -1
  962. package/dist/types/components/toaster/component.d.ts +1 -1
  963. package/dist/types/components/toaster/toaster.d.ts +1 -1
  964. package/dist/types/components/tooltip/component.d.ts +1 -1
  965. package/dist/types/components/tooltip/test/html.mock.d.ts +1 -1
  966. package/dist/types/components/tree/component.d.ts +1 -1
  967. package/dist/types/components/tree/shadow.d.ts +1 -1
  968. package/dist/types/components/tree-item/component.d.ts +1 -1
  969. package/dist/types/components/tree-item/shadow.d.ts +1 -1
  970. package/dist/types/components/version/component.d.ts +1 -1
  971. package/dist/types/components/version/test/html.mock.d.ts +1 -1
  972. package/dist/types/components.d.ts +2 -2
  973. package/dist/types/index.d.ts +3 -3
  974. package/dist/types/schema/components/abbr.d.ts +10 -0
  975. package/dist/types/schema/components/accordion.d.ts +18 -0
  976. package/dist/types/schema/components/alert.d.ts +23 -0
  977. package/dist/types/schema/components/avatar.d.ts +10 -0
  978. package/dist/types/schema/components/badge.d.ts +23 -0
  979. package/dist/types/schema/components/breadcrumb.d.ts +17 -0
  980. package/dist/types/schema/components/button-group.d.ts +9 -0
  981. package/dist/types/schema/components/button-link.d.ts +8 -0
  982. package/dist/types/schema/components/button.d.ts +15 -0
  983. package/dist/types/schema/components/card.d.ts +17 -0
  984. package/dist/types/schema/components/details.d.ts +16 -0
  985. package/dist/types/schema/components/form.d.ts +19 -0
  986. package/dist/types/schema/components/heading.d.ts +17 -0
  987. package/dist/types/schema/components/icon.d.ts +12 -0
  988. package/dist/types/schema/components/image.d.ts +21 -0
  989. package/dist/types/schema/components/indented-text.d.ts +9 -0
  990. package/dist/types/schema/components/index.d.ts +1 -0
  991. package/dist/types/schema/components/input-checkbox.d.ts +53 -0
  992. package/dist/types/schema/components/input-color.d.ts +37 -0
  993. package/dist/types/schema/components/input-date.d.ts +34 -0
  994. package/dist/types/schema/components/input-email.d.ts +44 -0
  995. package/dist/types/schema/components/input-file.d.ts +34 -0
  996. package/dist/types/schema/components/input-number.d.ts +33 -0
  997. package/dist/types/schema/components/input-password.d.ts +43 -0
  998. package/dist/types/schema/components/input-radio.d.ts +31 -0
  999. package/dist/types/schema/components/input-range.d.ts +39 -0
  1000. package/dist/types/schema/components/input-text.d.ts +46 -0
  1001. package/dist/types/schema/components/input.d.ts +16 -0
  1002. package/dist/types/schema/components/kolibri.d.ts +21 -0
  1003. package/dist/types/schema/components/link-button.d.ts +7 -0
  1004. package/dist/types/schema/components/link-group.d.ts +22 -0
  1005. package/dist/types/schema/components/link.d.ts +14 -0
  1006. package/dist/types/schema/components/modal.d.ts +20 -0
  1007. package/dist/types/schema/components/nav.d.ts +19 -0
  1008. package/dist/types/schema/components/pagination.d.ts +41 -0
  1009. package/dist/types/schema/components/popover.d.ts +12 -0
  1010. package/dist/types/schema/components/progress.d.ts +22 -0
  1011. package/dist/types/schema/components/quote.d.ts +19 -0
  1012. package/dist/types/schema/components/select.d.ts +33 -0
  1013. package/dist/types/schema/components/skip-nav.d.ts +16 -0
  1014. package/dist/types/schema/components/span.d.ts +22 -0
  1015. package/dist/types/schema/components/spin.d.ts +10 -0
  1016. package/dist/types/schema/components/split-button.d.ts +13 -0
  1017. package/dist/types/schema/components/symbol.d.ts +12 -0
  1018. package/dist/types/schema/components/table.d.ts +56 -0
  1019. package/dist/types/schema/components/tableStateless.d.ts +20 -0
  1020. package/dist/types/schema/components/tabs.d.ts +35 -0
  1021. package/dist/types/schema/components/textarea.d.ts +40 -0
  1022. package/dist/types/schema/components/toaster.d.ts +33 -0
  1023. package/dist/types/schema/components/tooltip.d.ts +10 -0
  1024. package/dist/types/schema/components/tree-item.d.ts +12 -0
  1025. package/dist/types/schema/components/tree.d.ts +10 -0
  1026. package/dist/types/schema/components/version.d.ts +10 -0
  1027. package/dist/types/schema/enums/events.d.ts +20 -0
  1028. package/dist/types/schema/enums/index.d.ts +1 -0
  1029. package/dist/types/schema/i18n-keys.d.ts +27 -0
  1030. package/dist/types/schema/index.d.ts +7 -0
  1031. package/dist/types/schema/props/access-key.d.ts +6 -0
  1032. package/dist/types/schema/props/active.d.ts +7 -0
  1033. package/dist/types/schema/props/adjust-height.d.ts +6 -0
  1034. package/dist/types/schema/props/alert.d.ts +6 -0
  1035. package/dist/types/schema/props/align.d.ts +12 -0
  1036. package/dist/types/schema/props/alternative-button-link-role.d.ts +6 -0
  1037. package/dist/types/schema/props/aria-controls.d.ts +7 -0
  1038. package/dist/types/schema/props/aria-current-value.d.ts +8 -0
  1039. package/dist/types/schema/props/aria-expanded.d.ts +7 -0
  1040. package/dist/types/schema/props/aria-selected.d.ts +7 -0
  1041. package/dist/types/schema/props/button-callbacks.d.ts +12 -0
  1042. package/dist/types/schema/props/button-type.d.ts +8 -0
  1043. package/dist/types/schema/props/button-variant.d.ts +8 -0
  1044. package/dist/types/schema/props/checked.d.ts +6 -0
  1045. package/dist/types/schema/props/collapsible.d.ts +6 -0
  1046. package/dist/types/schema/props/color.d.ts +16 -0
  1047. package/dist/types/schema/props/custom-class.d.ts +6 -0
  1048. package/dist/types/schema/props/disabled.d.ts +6 -0
  1049. package/dist/types/schema/props/download.d.ts +6 -0
  1050. package/dist/types/schema/props/error-list.d.ts +9 -0
  1051. package/dist/types/schema/props/has-closer.d.ts +6 -0
  1052. package/dist/types/schema/props/has-compact-button.d.ts +7 -0
  1053. package/dist/types/schema/props/has-counter.d.ts +6 -0
  1054. package/dist/types/schema/props/has-icons-when-expanded.d.ts +6 -0
  1055. package/dist/types/schema/props/heading-variant.d.ts +8 -0
  1056. package/dist/types/schema/props/hide-error.d.ts +7 -0
  1057. package/dist/types/schema/props/hide-label.d.ts +7 -0
  1058. package/dist/types/schema/props/href.d.ts +8 -0
  1059. package/dist/types/schema/props/icons.d.ts +11 -0
  1060. package/dist/types/schema/props/id.d.ts +6 -0
  1061. package/dist/types/schema/props/image-source.d.ts +7 -0
  1062. package/dist/types/schema/props/indeterminate.d.ts +6 -0
  1063. package/dist/types/schema/props/index.d.ts +1 -0
  1064. package/dist/types/schema/props/label.d.ts +17 -0
  1065. package/dist/types/schema/props/link-on-callbacks.d.ts +10 -0
  1066. package/dist/types/schema/props/link-target.d.ts +6 -0
  1067. package/dist/types/schema/props/loading.d.ts +5 -0
  1068. package/dist/types/schema/props/max.d.ts +8 -0
  1069. package/dist/types/schema/props/msg.d.ts +9 -0
  1070. package/dist/types/schema/props/multiple.d.ts +6 -0
  1071. package/dist/types/schema/props/name.d.ts +7 -0
  1072. package/dist/types/schema/props/open.d.ts +7 -0
  1073. package/dist/types/schema/props/options.d.ts +14 -0
  1074. package/dist/types/schema/props/pagination-position.d.ts +8 -0
  1075. package/dist/types/schema/props/read-only.d.ts +6 -0
  1076. package/dist/types/schema/props/required.d.ts +7 -0
  1077. package/dist/types/schema/props/rows.d.ts +6 -0
  1078. package/dist/types/schema/props/show.d.ts +7 -0
  1079. package/dist/types/schema/props/suggestions.d.ts +8 -0
  1080. package/dist/types/schema/props/sync-value-by-selector.d.ts +4 -0
  1081. package/dist/types/schema/props/table-callbacks.d.ts +15 -0
  1082. package/dist/types/schema/props/table-data-foot.d.ts +8 -0
  1083. package/dist/types/schema/props/table-data.d.ts +8 -0
  1084. package/dist/types/schema/props/table-header-cells.d.ts +11 -0
  1085. package/dist/types/schema/props/tooltip-align.d.ts +7 -0
  1086. package/dist/types/schema/props/touched.d.ts +6 -0
  1087. package/dist/types/schema/props/variant/spin.d.ts +8 -0
  1088. package/dist/types/schema/tag-names.d.ts +54 -0
  1089. package/dist/types/schema/types/button-link-text.d.ts +23 -0
  1090. package/dist/types/schema/types/callbacks.d.ts +5 -0
  1091. package/dist/types/schema/types/common.d.ts +1 -0
  1092. package/dist/types/schema/types/icons.d.ts +19 -0
  1093. package/dist/types/schema/types/index.d.ts +1 -0
  1094. package/dist/types/schema/types/input/control/number.d.ts +27 -0
  1095. package/dist/types/schema/types/input/control/text.d.ts +2 -0
  1096. package/dist/types/schema/types/input/iso8601.d.ts +14 -0
  1097. package/dist/types/schema/types/input/types.d.ts +32 -0
  1098. package/dist/types/schema/types/modal.d.ts +3 -0
  1099. package/dist/types/schema/types/orientation.d.ts +2 -0
  1100. package/dist/types/schema/types/progress.d.ts +5 -0
  1101. package/dist/types/schema/types/table.d.ts +17 -0
  1102. package/dist/types/schema/types/unknown.d.ts +1 -0
  1103. package/dist/types/schema/types/w3c.d.ts +1 -0
  1104. package/dist/types/schema/utils/a11y.tipps.d.ts +13 -0
  1105. package/dist/types/schema/utils/contrast/color-rgba.d.ts +1 -0
  1106. package/dist/types/schema/utils/contrast/contrast.d.ts +13 -0
  1107. package/dist/types/schema/utils/contrast/index.d.ts +1 -0
  1108. package/dist/types/schema/utils/contrast/rgba-convert.d.ts +1 -0
  1109. package/dist/types/schema/utils/dev.utils.d.ts +29 -0
  1110. package/dist/types/schema/utils/index.d.ts +1 -0
  1111. package/dist/types/schema/utils/prop.validators.d.ts +63 -0
  1112. package/dist/types/schema/utils/reuse.d.ts +7 -0
  1113. package/dist/types/schema/validators/alignment.d.ts +3 -0
  1114. package/dist/types/schema/validators/common.d.ts +4 -0
  1115. package/dist/types/schema/validators/index.d.ts +1 -0
  1116. package/dist/types/schema/validators/options.d.ts +2 -0
  1117. package/dist/types/schema/validators/tab-index.d.ts +2 -0
  1118. package/dist/types/schema/validators/window.d.ts +0 -0
  1119. package/dist/types/utils/align-floating-elements.d.ts +1 -1
  1120. package/doc/input-checkbox.md +1 -1
  1121. package/doc/input-color.md +1 -1
  1122. package/doc/input-date.md +1 -1
  1123. package/doc/input-email.md +1 -1
  1124. package/doc/input-file.md +1 -1
  1125. package/doc/input-number.md +1 -1
  1126. package/doc/input-password.md +1 -1
  1127. package/doc/input-radio.md +1 -1
  1128. package/doc/input-range.md +1 -1
  1129. package/doc/input-text.md +1 -1
  1130. package/doc/select.md +1 -1
  1131. package/doc/tabs.md +1 -1
  1132. package/doc/textarea.md +1 -1
  1133. package/doc/toaster.md +1 -1
  1134. package/package.json +1 -1
  1135. package/dist/cjs/app-globals-08227ea9.js +0 -4
  1136. package/dist/cjs/app-globals-08227ea9.js.map +0 -1
  1137. package/dist/cjs/associated.controller-0defb8ca.js +0 -4
  1138. package/dist/cjs/associated.controller-0defb8ca.js.map +0 -1
  1139. package/dist/cjs/controller-2a04b820.js +0 -4
  1140. package/dist/cjs/controller-2a04b820.js.map +0 -1
  1141. package/dist/cjs/controller-5d8d3f88.js +0 -4
  1142. package/dist/cjs/controller-5d8d3f88.js.map +0 -1
  1143. package/dist/cjs/controller-69d0b6e3.js +0 -4
  1144. package/dist/cjs/controller-69d0b6e3.js.map +0 -1
  1145. package/dist/cjs/controller-cb2152bf.js +0 -4
  1146. package/dist/cjs/controller-cb2152bf.js.map +0 -1
  1147. package/dist/cjs/controller-dc7f3a60.js +0 -4
  1148. package/dist/cjs/controller-dc7f3a60.js.map +0 -1
  1149. package/dist/cjs/controller-icon-e9a7c0dd.js +0 -4
  1150. package/dist/cjs/controller-icon-e9a7c0dd.js.map +0 -1
  1151. package/dist/cjs/dev.utils-1e67d391.js +0 -4
  1152. package/dist/cjs/dev.utils-1e67d391.js.map +0 -1
  1153. package/dist/cjs/devtools-23724a90.js +0 -4
  1154. package/dist/cjs/devtools-23724a90.js.map +0 -1
  1155. package/dist/cjs/index-26a11fc3.js +0 -4
  1156. package/dist/cjs/index-26a11fc3.js.map +0 -1
  1157. package/dist/cjs/validation-89c93141.js +0 -4
  1158. package/dist/cjs/validation-89c93141.js.map +0 -1
  1159. package/dist/cjs/validation-db50789a.js +0 -4
  1160. package/dist/cjs/validation-db50789a.js.map +0 -1
  1161. package/dist/components/index3.js +0 -4
  1162. package/dist/components/index3.js.map +0 -1
  1163. package/dist/esm/app-globals-a87698fc.js +0 -4
  1164. package/dist/esm/app-globals-a87698fc.js.map +0 -1
  1165. package/dist/esm/associated.controller-47f177a8.js +0 -4
  1166. package/dist/esm/associated.controller-47f177a8.js.map +0 -1
  1167. package/dist/esm/controller-06b047bd.js +0 -4
  1168. package/dist/esm/controller-06b047bd.js.map +0 -1
  1169. package/dist/esm/controller-09ce054b.js +0 -4
  1170. package/dist/esm/controller-5207185b.js +0 -4
  1171. package/dist/esm/controller-5207185b.js.map +0 -1
  1172. package/dist/esm/controller-603b7d2b.js +0 -4
  1173. package/dist/esm/controller-603b7d2b.js.map +0 -1
  1174. package/dist/esm/controller-9c8cf4ce.js +0 -4
  1175. package/dist/esm/controller-9c8cf4ce.js.map +0 -1
  1176. package/dist/esm/controller-icon-23f9943c.js +0 -4
  1177. package/dist/esm/controller-icon-23f9943c.js.map +0 -1
  1178. package/dist/esm/dev.utils-ba0ad340.js +0 -4
  1179. package/dist/esm/dev.utils-ba0ad340.js.map +0 -1
  1180. package/dist/esm/devtools-8b54d55c.js +0 -4
  1181. package/dist/esm/devtools-8b54d55c.js.map +0 -1
  1182. package/dist/esm/index-44da6e7f.js +0 -4
  1183. package/dist/esm/index-44da6e7f.js.map +0 -1
  1184. package/dist/esm/validation-61bf6538.js +0 -4
  1185. package/dist/esm/validation-61bf6538.js.map +0 -1
  1186. package/dist/esm/validation-daa38230.js +0 -4
  1187. package/dist/esm/validation-daa38230.js.map +0 -1
  1188. package/dist/kolibri/app-globals-a87698fc.js +0 -4
  1189. package/dist/kolibri/app-globals-a87698fc.js.map +0 -1
  1190. package/dist/kolibri/associated.controller-47f177a8.js +0 -4
  1191. package/dist/kolibri/associated.controller-47f177a8.js.map +0 -1
  1192. package/dist/kolibri/controller-06b047bd.js +0 -4
  1193. package/dist/kolibri/controller-06b047bd.js.map +0 -1
  1194. package/dist/kolibri/controller-09ce054b.js +0 -4
  1195. package/dist/kolibri/controller-09ce054b.js.map +0 -1
  1196. package/dist/kolibri/controller-5207185b.js +0 -4
  1197. package/dist/kolibri/controller-5207185b.js.map +0 -1
  1198. package/dist/kolibri/controller-603b7d2b.js +0 -4
  1199. package/dist/kolibri/controller-603b7d2b.js.map +0 -1
  1200. package/dist/kolibri/controller-9c8cf4ce.js +0 -4
  1201. package/dist/kolibri/controller-9c8cf4ce.js.map +0 -1
  1202. package/dist/kolibri/controller-icon-23f9943c.js +0 -4
  1203. package/dist/kolibri/controller-icon-23f9943c.js.map +0 -1
  1204. package/dist/kolibri/dev.utils-ba0ad340.js +0 -4
  1205. package/dist/kolibri/dev.utils-ba0ad340.js.map +0 -1
  1206. package/dist/kolibri/devtools-8b54d55c.js +0 -4
  1207. package/dist/kolibri/devtools-8b54d55c.js.map +0 -1
  1208. package/dist/kolibri/index-44da6e7f.js +0 -4
  1209. package/dist/kolibri/index-44da6e7f.js.map +0 -1
  1210. package/dist/kolibri/toaster-12097d83.js.map +0 -1
  1211. package/dist/kolibri/validation-61bf6538.js +0 -4
  1212. package/dist/kolibri/validation-61bf6538.js.map +0 -1
  1213. package/dist/kolibri/validation-daa38230.js +0 -4
  1214. package/dist/kolibri/validation-daa38230.js.map +0 -1
  1215. /package/dist/kolibri/{index-e9e31210.js.map → index-a55b574c.js.map} +0 -0
  1216. /package/dist/kolibri/{toaster-4eb33f18.js.map → toaster-b6d0fa6b.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"names":["KolLinkWc","this","catchRef","ref","propagateFocus","host","onClick","event","state","_disabled","preventDefaultAndStopPropagation","_a","_on","preventDefault","stopPropagation","setEventTarget","_b","_href","getRenderValues","isExternal","_target","tagAttrs","href","length","target","undefined","rel","download","_download","_hideLabel","_label","devHint","_ariaCurrentValue","_icons","render","hasExpertSlot","showExpertSlot","h","Host","key","class","Object","assign","accessKey","_accessKey","_ariaCurrent","translate","disabled","onKeyPress","role","_role","tabIndex","_tabIndex","KolSpanWcTag","name","slot","KolIconTag","KolTooltipWcTag","hidden","_align","_tooltipAlign","validateAccessKey","value","validateAriaCurrentValue","validateDisabled","validateDownload","validateHideLabel","validateHref","required","validateIcons","validateLabel","validateLabelWithExpertSlot","validateOn","validateLinkCallbacks","validateRole","validateAlternativeButtonLinkRole","validateTabIndex","validateTarget","validateLinkTarget","validateTooltipAlign","componentWillLoad","unsubscribeOnLocationChange","onLocationChange","location","disconnectedCallback"],"sources":["src/components/link/component.tsx"],"sourcesContent":["import type {\n\tAccessKeyPropType,\n\tAlternativeButtonLinkRolePropType,\n\tAriaCurrentValuePropType,\n\tDownloadPropType,\n\tHrefPropType,\n\tKoliBriIconsProp,\n\tLabelWithExpertSlotPropType,\n\tLinkAPI,\n\tLinkOnCallbacksPropType,\n\tLinkStates,\n\tLinkTargetPropType,\n\tStringified,\n\tTooltipAlignPropType,\n\tDisabledPropType,\n} from '@public-ui/schema';\nimport {\n\tdevHint,\n\tpropagateFocus,\n\tsetEventTarget,\n\tshowExpertSlot,\n\tvalidateAccessKey,\n\tvalidateAlternativeButtonLinkRole,\n\tvalidateAriaCurrentValue,\n\tvalidateDownload,\n\tvalidateHideLabel,\n\tvalidateHref,\n\tvalidateIcons,\n\tvalidateLabelWithExpertSlot,\n\tvalidateLinkCallbacks,\n\tvalidateLinkTarget,\n\tvalidateTabIndex,\n\tvalidateTooltipAlign,\n} from '@public-ui/schema';\nimport { Component, Element, Host, Prop, State, Watch, h } from '@stencil/core';\n\nimport { translate } from '../../i18n';\nimport { onLocationChange } from './ariaCurrentService';\n\nimport { validateDisabled } from '@public-ui/schema';\nimport type { JSX } from '@stencil/core';\nimport type { UnsubscribeFunction } from './ariaCurrentService';\nimport { preventDefaultAndStopPropagation } from '../../utils/events';\nimport { KolIconTag, KolSpanWcTag, KolTooltipWcTag } from '../../core/component-names';\n/**\n * @internal\n */\n@Component({\n\ttag: 'kol-link-wc',\n\tshadow: false,\n})\nexport class KolLinkWc implements LinkAPI {\n\t@Element() private readonly host?: HTMLKolLinkWcElement;\n\tprivate ref?: HTMLAnchorElement;\n\tprivate unsubscribeOnLocationChange?: UnsubscribeFunction;\n\n\tprivate readonly catchRef = (ref?: HTMLAnchorElement) => {\n\t\tthis.ref = ref;\n\t\tpropagateFocus(this.host, this.ref);\n\t};\n\n\tprivate readonly onClick = (event: Event) => {\n\t\tif (this.state._disabled === true) {\n\t\t\tpreventDefaultAndStopPropagation(event);\n\t\t} else if (typeof this.state._on?.onClick === 'function') {\n\t\t\tevent.preventDefault();\n\t\t\tevent.stopPropagation();\n\t\t\tsetEventTarget(event, this.ref);\n\t\t\tthis.state._on?.onClick(event, this.state._href);\n\t\t}\n\t};\n\n\tprivate readonly getRenderValues = () => {\n\t\t/**\n\t\t * DX\n\t\t * Das möchte ich ungern für HTML machen, sondern nur für Barrierefreiheitsthemen.\n\t\t */\n\t\t// if (typeof this.state._href === 'string' && this.state._href.length > 0) {\n\t\t// console.error('Setz den URL.');\n\t\t// throw new Error('Setz den URL.');\n\t\t// }\n\n\t\t// switch (this.state._target) {\n\t\t// case '_blank':\n\t\t// case '_self':\n\t\t// break;\n\t\t// default:\n\t\t// console.error('Fehlerhaftes Target.');\n\t\t// throw new Error('Fehlerhaftes Target.');\n\t\t// }\n\n\t\t// ROBUSTHEIT durch Validierung\n\t\tconst isExternal = typeof this.state._target === 'string' && this.state._target !== '_self';\n\n\t\tconst tagAttrs = {\n\t\t\thref: typeof this.state._href === 'string' && this.state._href.length > 0 ? this.state._href : 'javascript:void(0);',\n\t\t\ttarget: typeof this.state._target === 'string' && this.state._target.length > 0 ? this.state._target : undefined,\n\t\t\trel: isExternal ? 'noopener' : undefined,\n\t\t\tdownload: typeof this.state._download === 'string' ? this.state._download : undefined,\n\t\t};\n\n\t\tif (this.state._hideLabel === true && !this.state._label) {\n\t\t\tdevHint(`[KolLink] Es muss ein Aria-Label gesetzt werden, wenn _hide-label gesetzt ist.`);\n\t\t}\n\t\treturn { isExternal, tagAttrs };\n\t};\n\n\tpublic render(): JSX.Element {\n\t\tconst { isExternal, tagAttrs } = this.getRenderValues();\n\t\tconst hasExpertSlot = showExpertSlot(this.state._label);\n\t\treturn (\n\t\t\t<Host class=\"kol-link-wc\">\n\t\t\t\t<a\n\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\t{...tagAttrs}\n\t\t\t\t\taccessKey={this.state._accessKey}\n\t\t\t\t\taria-current={this.state._ariaCurrent}\n\t\t\t\t\taria-disabled={this.state._disabled ? 'true' : undefined}\n\t\t\t\t\taria-label={\n\t\t\t\t\t\tthis.state._hideLabel && typeof this.state._label === 'string'\n\t\t\t\t\t\t\t? `${this.state._label}${isExternal ? ` (${translate('kol-open-link-in-tab')})` : ''}`\n\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t}\n\t\t\t\t\tclass={{\n\t\t\t\t\t\tdisabled: this.state._disabled === true,\n\t\t\t\t\t\t'external-link': isExternal,\n\t\t\t\t\t\t'hide-label': this.state._hideLabel === true,\n\t\t\t\t\t}}\n\t\t\t\t\t{...this.state._on}\n\t\t\t\t\t// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/docs/rules/click-events-have-key-events.md\n\t\t\t\t\tonClick={this.onClick}\n\t\t\t\t\tonKeyPress={this.onClick}\n\t\t\t\t\trole={this.state._role}\n\t\t\t\t\ttabIndex={this.state._disabled ? -1 : this.state._tabIndex}\n\t\t\t\t>\n\t\t\t\t\t<KolSpanWcTag\n\t\t\t\t\t\t_accessKey={this.state._accessKey}\n\t\t\t\t\t\t_icons={this.state._icons}\n\t\t\t\t\t\t_hideLabel={this.state._hideLabel}\n\t\t\t\t\t\t_label={hasExpertSlot ? '' : this.state._label || this.state._href}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot name=\"expert\" slot=\"expert\"></slot>\n\t\t\t\t\t</KolSpanWcTag>\n\t\t\t\t\t{isExternal && (\n\t\t\t\t\t\t<KolIconTag\n\t\t\t\t\t\t\tclass=\"external-link-icon\"\n\t\t\t\t\t\t\t_label={this.state._hideLabel ? '' : translate('kol-open-link-in-tab')}\n\t\t\t\t\t\t\t_icons={'codicon codicon-link-external'}\n\t\t\t\t\t\t\taria-hidden={this.state._hideLabel}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\t\t\t\t</a>\n\t\t\t\t<KolTooltipWcTag\n\t\t\t\t\t/**\n\t\t\t\t\t * Dieses Aria-Hidden verhindert das doppelte Vorlesen des Labels,\n\t\t\t\t\t * verhindert aber nicht das Aria-Labelledby vorgelesen wird.\n\t\t\t\t\t */\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\thidden={hasExpertSlot || !this.state._hideLabel}\n\t\t\t\t\t_accessKey={this.state._accessKey}\n\t\t\t\t\t_align={this.state._tooltipAlign}\n\t\t\t\t\t_label={this.state._label || this.state._href}\n\t\t\t\t></KolTooltipWcTag>\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 the value for the aria-current attribute.\n\t */\n\t@Prop() public _ariaCurrentValue?: AriaCurrentValuePropType;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Tells the browser that the link contains a file. Optionally sets the filename.\n\t */\n\t@Prop() public _download?: DownloadPropType;\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 * Sets the target URI of the link or citation source.\n\t */\n\t@Prop() public _href!: HrefPropType;\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: Stringified<KoliBriIconsProp>;\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 callback functions for links.\n\t */\n\t@Prop() public _on?: LinkOnCallbacksPropType;\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 * 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 open the link.\n\t */\n\t@Prop() public _target?: LinkTargetPropType;\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 = 'right';\n\n\t@State() public state: LinkStates = {\n\t\t_ariaCurrentValue: 'page',\n\t\t_href: '', // ⚠ required\n\t\t_icons: {},\n\t};\n\n\t@Watch('_accessKey')\n\tpublic validateAccessKey(value?: AccessKeyPropType): void {\n\t\tvalidateAccessKey(this, value);\n\t}\n\n\t@Watch('_ariaCurrentValue')\n\tpublic validateAriaCurrentValue(value?: AriaCurrentValuePropType): void {\n\t\tvalidateAriaCurrentValue(this, value);\n\t}\n\n\t@Watch('_disabled')\n\tpublic validateDisabled(value?: DisabledPropType): void {\n\t\tvalidateDisabled(this, value);\n\t}\n\n\t@Watch('_download')\n\tpublic validateDownload(value?: DownloadPropType): void {\n\t\tvalidateDownload(this, value);\n\t}\n\n\t@Watch('_hideLabel')\n\tpublic validateHideLabel(value?: boolean): void {\n\t\tvalidateHideLabel(this, value);\n\t}\n\n\t@Watch('_href')\n\tpublic validateHref(value?: string): void {\n\t\tvalidateHref(this, value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_icons')\n\tpublic validateIcons(value?: KoliBriIconsProp): void {\n\t\tvalidateIcons(this, value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelWithExpertSlotPropType): void {\n\t\tvalidateLabelWithExpertSlot(this, value);\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(value?: LinkOnCallbacksPropType): void {\n\t\tvalidateLinkCallbacks(this, value);\n\t}\n\n\t@Watch('_role')\n\tpublic validateRole(value?: AlternativeButtonLinkRolePropType): void {\n\t\tvalidateAlternativeButtonLinkRole(this, value);\n\t}\n\n\t@Watch('_tabIndex')\n\tpublic validateTabIndex(value?: number): void {\n\t\tvalidateTabIndex(this, value);\n\t}\n\n\t@Watch('_target')\n\tpublic validateTarget(value?: LinkTargetPropType): void {\n\t\tvalidateLinkTarget(this, value);\n\t}\n\n\t@Watch('_tooltipAlign')\n\tpublic validateTooltipAlign(value?: TooltipAlignPropType): void {\n\t\tvalidateTooltipAlign(this, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateAccessKey(this._accessKey);\n\t\tthis.validateAriaCurrentValue(this._ariaCurrentValue);\n\t\tthis.validateDisabled(this._disabled);\n\t\tthis.validateDownload(this._download);\n\t\tthis.validateHideLabel(this._hideLabel);\n\t\tthis.validateHref(this._href);\n\t\tthis.validateIcons(this._icons);\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateOn(this._on);\n\t\tthis.validateRole(this._role);\n\t\tthis.validateTabIndex(this._tabIndex);\n\t\tthis.validateTarget(this._target);\n\t\tthis.validateTooltipAlign(this._tooltipAlign);\n\t\tthis.unsubscribeOnLocationChange = onLocationChange((location) => {\n\t\t\tthis.state._ariaCurrent = location === this.state._href ? this.state._ariaCurrentValue : undefined;\n\t\t});\n\t}\n\n\tpublic disconnectedCallback(): void {\n\t\tif (this.unsubscribeOnLocationChange) {\n\t\t\tthis.unsubscribeOnLocationChange();\n\t\t}\n\t}\n}\n"],"mappings":"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"}
1
+ {"version":3,"names":["ariaCurrentValuePropTypeOptions","validateAriaCurrentValue","component","value","watchValidator","includes","Set","join","defaultValue","validateDownload","watchString","validateLinkCallbacks","onClick","state","Object","assign","_on","validateLinkTarget","KolLinkWc","this","catchRef","ref","propagateFocus","host","event","_disabled","preventDefaultAndStopPropagation","_a","preventDefault","stopPropagation","setEventTarget","_b","_href","getRenderValues","isExternal","_target","tagAttrs","href","length","target","undefined","rel","download","_download","_hideLabel","_label","devHint","_ariaCurrentValue","_icons","render","hasExpertSlot","showExpertSlot","h","Host","key","class","accessKey","_accessKey","_ariaCurrent","translate","disabled","onKeyPress","role","_role","tabIndex","_tabIndex","KolSpanWcTag","name","slot","KolIconTag","KolTooltipWcTag","hidden","_align","_tooltipAlign","validateAccessKey","validateDisabled","validateHideLabel","validateHref","required","validateIcons","validateLabel","validateLabelWithExpertSlot","validateOn","validateRole","validateAlternativeButtonLinkRole","validateTabIndex","validateTarget","validateTooltipAlign","componentWillLoad","unsubscribeOnLocationChange","onLocationChange","location","disconnectedCallback"],"sources":["src/schema/props/aria-current-value.ts","src/schema/props/download.ts","src/schema/props/link-on-callbacks.ts","src/schema/props/link-target.ts","src/components/link/component.tsx"],"sourcesContent":["/* types */\nimport type { Generic } from 'adopted-style-sheets';\nimport { watchValidator } from '../utils';\n\n/**\n * Defines the value for the aria-current attribute.\n * @see https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-current\n * @see https://www.aditus.io/aria/aria-current/\n */\nconst ariaCurrentValuePropTypeOptions = ['date', 'location', 'page', 'step', 'time', 'true', 'false'] as const;\nexport type AriaCurrentValuePropType = (typeof ariaCurrentValuePropTypeOptions)[number];\n\nexport type PropAriaCurrentValue = {\n\tariaCurrentValue: AriaCurrentValuePropType;\n};\n\n/* validator */\nexport const validateAriaCurrentValue = (component: Generic.Element.Component, value?: AriaCurrentValuePropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t`_ariaCurrentValue`,\n\t\t(value) => typeof value === 'string' && ariaCurrentValuePropTypeOptions.includes(value),\n\t\tnew Set([`AriaCurrentValue {${ariaCurrentValuePropTypeOptions.join(', ')}`]),\n\t\tvalue,\n\t\t{\n\t\t\tdefaultValue: 'page',\n\t\t},\n\t);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { watchString } from '../utils';\n\n/* types */\n\nexport type DownloadPropType = string;\n\n/**\n * Tells the browser that the link contains a file. Optionally sets the filename.\n */\nexport type PropDownload = {\n\tdownload?: DownloadPropType;\n};\n\n/* validator */\nexport const validateDownload = (component: Generic.Element.Component, value?: DownloadPropType): void => {\n\twatchString(component, '_download', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\nimport type { Events } from '../enums';\nimport type { EventValueOrEventCallback } from '../types/callbacks';\n\n/* types */\nexport type LinkOnCallbacksPropType = {\n\t[Events.onClick]?: EventValueOrEventCallback<Event, string>;\n};\n\n/**\n * Defines the callback functions for links.\n */\nexport type PropLinkOnCallbacks = {\n\ton: LinkOnCallbacksPropType;\n};\n\n/* validator */\nexport const validateLinkCallbacks = (component: Generic.Element.Component, value?: LinkOnCallbacksPropType): void => {\n\tif (typeof value === 'object' && typeof value?.onClick === 'function') {\n\t\tcomponent.state = {\n\t\t\t...component.state,\n\t\t\t_on: value,\n\t\t};\n\t}\n};\n","/* types */\n\n// https://www.w3schools.com/tags/att_a_target.asp\nimport type { Generic } from 'adopted-style-sheets';\nimport { watchString } from '../utils';\n\nexport type LinkTargetPropType = '_blank' | '_parent' | '_self' | '_top' | string;\n\n/**\n * Defines where to open the link.\n */\nexport type PropLinkTarget = {\n\ttarget: LinkTargetPropType;\n};\n\n/* validator */\nexport const validateLinkTarget = (component: Generic.Element.Component, value?: LinkTargetPropType): void => {\n\twatchString(component, '_target', value);\n};\n","import type {\n\tAccessKeyPropType,\n\tAlternativeButtonLinkRolePropType,\n\tAriaCurrentValuePropType,\n\tDownloadPropType,\n\tHrefPropType,\n\tKoliBriIconsProp,\n\tLabelWithExpertSlotPropType,\n\tLinkAPI,\n\tLinkOnCallbacksPropType,\n\tLinkStates,\n\tLinkTargetPropType,\n\tStringified,\n\tTooltipAlignPropType,\n\tDisabledPropType,\n} from '../../schema';\nimport {\n\tdevHint,\n\tpropagateFocus,\n\tsetEventTarget,\n\tshowExpertSlot,\n\tvalidateAccessKey,\n\tvalidateAlternativeButtonLinkRole,\n\tvalidateAriaCurrentValue,\n\tvalidateDownload,\n\tvalidateHideLabel,\n\tvalidateHref,\n\tvalidateIcons,\n\tvalidateLabelWithExpertSlot,\n\tvalidateLinkCallbacks,\n\tvalidateLinkTarget,\n\tvalidateTabIndex,\n\tvalidateTooltipAlign,\n} from '../../schema';\nimport { Component, Element, Host, Prop, State, Watch, h } from '@stencil/core';\n\nimport { translate } from '../../i18n';\nimport { onLocationChange } from './ariaCurrentService';\n\nimport { validateDisabled } from '../../schema';\nimport type { JSX } from '@stencil/core';\nimport type { UnsubscribeFunction } from './ariaCurrentService';\nimport { preventDefaultAndStopPropagation } from '../../utils/events';\nimport { KolIconTag, KolSpanWcTag, KolTooltipWcTag } from '../../core/component-names';\n/**\n * @internal\n */\n@Component({\n\ttag: 'kol-link-wc',\n\tshadow: false,\n})\nexport class KolLinkWc implements LinkAPI {\n\t@Element() private readonly host?: HTMLKolLinkWcElement;\n\tprivate ref?: HTMLAnchorElement;\n\tprivate unsubscribeOnLocationChange?: UnsubscribeFunction;\n\n\tprivate readonly catchRef = (ref?: HTMLAnchorElement) => {\n\t\tthis.ref = ref;\n\t\tpropagateFocus(this.host, this.ref);\n\t};\n\n\tprivate readonly onClick = (event: Event) => {\n\t\tif (this.state._disabled === true) {\n\t\t\tpreventDefaultAndStopPropagation(event);\n\t\t} else if (typeof this.state._on?.onClick === 'function') {\n\t\t\tevent.preventDefault();\n\t\t\tevent.stopPropagation();\n\t\t\tsetEventTarget(event, this.ref);\n\t\t\tthis.state._on?.onClick(event, this.state._href);\n\t\t}\n\t};\n\n\tprivate readonly getRenderValues = () => {\n\t\t/**\n\t\t * DX\n\t\t * Das möchte ich ungern für HTML machen, sondern nur für Barrierefreiheitsthemen.\n\t\t */\n\t\t// if (typeof this.state._href === 'string' && this.state._href.length > 0) {\n\t\t// console.error('Setz den URL.');\n\t\t// throw new Error('Setz den URL.');\n\t\t// }\n\n\t\t// switch (this.state._target) {\n\t\t// case '_blank':\n\t\t// case '_self':\n\t\t// break;\n\t\t// default:\n\t\t// console.error('Fehlerhaftes Target.');\n\t\t// throw new Error('Fehlerhaftes Target.');\n\t\t// }\n\n\t\t// ROBUSTHEIT durch Validierung\n\t\tconst isExternal = typeof this.state._target === 'string' && this.state._target !== '_self';\n\n\t\tconst tagAttrs = {\n\t\t\thref: typeof this.state._href === 'string' && this.state._href.length > 0 ? this.state._href : 'javascript:void(0);',\n\t\t\ttarget: typeof this.state._target === 'string' && this.state._target.length > 0 ? this.state._target : undefined,\n\t\t\trel: isExternal ? 'noopener' : undefined,\n\t\t\tdownload: typeof this.state._download === 'string' ? this.state._download : undefined,\n\t\t};\n\n\t\tif (this.state._hideLabel === true && !this.state._label) {\n\t\t\tdevHint(`[KolLink] Es muss ein Aria-Label gesetzt werden, wenn _hide-label gesetzt ist.`);\n\t\t}\n\t\treturn { isExternal, tagAttrs };\n\t};\n\n\tpublic render(): JSX.Element {\n\t\tconst { isExternal, tagAttrs } = this.getRenderValues();\n\t\tconst hasExpertSlot = showExpertSlot(this.state._label);\n\t\treturn (\n\t\t\t<Host class=\"kol-link-wc\">\n\t\t\t\t<a\n\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\t{...tagAttrs}\n\t\t\t\t\taccessKey={this.state._accessKey}\n\t\t\t\t\taria-current={this.state._ariaCurrent}\n\t\t\t\t\taria-disabled={this.state._disabled ? 'true' : undefined}\n\t\t\t\t\taria-label={\n\t\t\t\t\t\tthis.state._hideLabel && typeof this.state._label === 'string'\n\t\t\t\t\t\t\t? `${this.state._label}${isExternal ? ` (${translate('kol-open-link-in-tab')})` : ''}`\n\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t}\n\t\t\t\t\tclass={{\n\t\t\t\t\t\tdisabled: this.state._disabled === true,\n\t\t\t\t\t\t'external-link': isExternal,\n\t\t\t\t\t\t'hide-label': this.state._hideLabel === true,\n\t\t\t\t\t}}\n\t\t\t\t\t{...this.state._on}\n\t\t\t\t\t// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/docs/rules/click-events-have-key-events.md\n\t\t\t\t\tonClick={this.onClick}\n\t\t\t\t\tonKeyPress={this.onClick}\n\t\t\t\t\trole={this.state._role}\n\t\t\t\t\ttabIndex={this.state._disabled ? -1 : this.state._tabIndex}\n\t\t\t\t>\n\t\t\t\t\t<KolSpanWcTag\n\t\t\t\t\t\t_accessKey={this.state._accessKey}\n\t\t\t\t\t\t_icons={this.state._icons}\n\t\t\t\t\t\t_hideLabel={this.state._hideLabel}\n\t\t\t\t\t\t_label={hasExpertSlot ? '' : this.state._label || this.state._href}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot name=\"expert\" slot=\"expert\"></slot>\n\t\t\t\t\t</KolSpanWcTag>\n\t\t\t\t\t{isExternal && (\n\t\t\t\t\t\t<KolIconTag\n\t\t\t\t\t\t\tclass=\"external-link-icon\"\n\t\t\t\t\t\t\t_label={this.state._hideLabel ? '' : translate('kol-open-link-in-tab')}\n\t\t\t\t\t\t\t_icons={'codicon codicon-link-external'}\n\t\t\t\t\t\t\taria-hidden={this.state._hideLabel}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\t\t\t\t</a>\n\t\t\t\t<KolTooltipWcTag\n\t\t\t\t\t/**\n\t\t\t\t\t * Dieses Aria-Hidden verhindert das doppelte Vorlesen des Labels,\n\t\t\t\t\t * verhindert aber nicht das Aria-Labelledby vorgelesen wird.\n\t\t\t\t\t */\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\thidden={hasExpertSlot || !this.state._hideLabel}\n\t\t\t\t\t_accessKey={this.state._accessKey}\n\t\t\t\t\t_align={this.state._tooltipAlign}\n\t\t\t\t\t_label={this.state._label || this.state._href}\n\t\t\t\t></KolTooltipWcTag>\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 the value for the aria-current attribute.\n\t */\n\t@Prop() public _ariaCurrentValue?: AriaCurrentValuePropType;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Tells the browser that the link contains a file. Optionally sets the filename.\n\t */\n\t@Prop() public _download?: DownloadPropType;\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 * Sets the target URI of the link or citation source.\n\t */\n\t@Prop() public _href!: HrefPropType;\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: Stringified<KoliBriIconsProp>;\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 callback functions for links.\n\t */\n\t@Prop() public _on?: LinkOnCallbacksPropType;\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 * 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 open the link.\n\t */\n\t@Prop() public _target?: LinkTargetPropType;\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 = 'right';\n\n\t@State() public state: LinkStates = {\n\t\t_ariaCurrentValue: 'page',\n\t\t_href: '', // ⚠ required\n\t\t_icons: {},\n\t};\n\n\t@Watch('_accessKey')\n\tpublic validateAccessKey(value?: AccessKeyPropType): void {\n\t\tvalidateAccessKey(this, value);\n\t}\n\n\t@Watch('_ariaCurrentValue')\n\tpublic validateAriaCurrentValue(value?: AriaCurrentValuePropType): void {\n\t\tvalidateAriaCurrentValue(this, value);\n\t}\n\n\t@Watch('_disabled')\n\tpublic validateDisabled(value?: DisabledPropType): void {\n\t\tvalidateDisabled(this, value);\n\t}\n\n\t@Watch('_download')\n\tpublic validateDownload(value?: DownloadPropType): void {\n\t\tvalidateDownload(this, value);\n\t}\n\n\t@Watch('_hideLabel')\n\tpublic validateHideLabel(value?: boolean): void {\n\t\tvalidateHideLabel(this, value);\n\t}\n\n\t@Watch('_href')\n\tpublic validateHref(value?: string): void {\n\t\tvalidateHref(this, value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_icons')\n\tpublic validateIcons(value?: KoliBriIconsProp): void {\n\t\tvalidateIcons(this, value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelWithExpertSlotPropType): void {\n\t\tvalidateLabelWithExpertSlot(this, value);\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(value?: LinkOnCallbacksPropType): void {\n\t\tvalidateLinkCallbacks(this, value);\n\t}\n\n\t@Watch('_role')\n\tpublic validateRole(value?: AlternativeButtonLinkRolePropType): void {\n\t\tvalidateAlternativeButtonLinkRole(this, value);\n\t}\n\n\t@Watch('_tabIndex')\n\tpublic validateTabIndex(value?: number): void {\n\t\tvalidateTabIndex(this, value);\n\t}\n\n\t@Watch('_target')\n\tpublic validateTarget(value?: LinkTargetPropType): void {\n\t\tvalidateLinkTarget(this, value);\n\t}\n\n\t@Watch('_tooltipAlign')\n\tpublic validateTooltipAlign(value?: TooltipAlignPropType): void {\n\t\tvalidateTooltipAlign(this, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateAccessKey(this._accessKey);\n\t\tthis.validateAriaCurrentValue(this._ariaCurrentValue);\n\t\tthis.validateDisabled(this._disabled);\n\t\tthis.validateDownload(this._download);\n\t\tthis.validateHideLabel(this._hideLabel);\n\t\tthis.validateHref(this._href);\n\t\tthis.validateIcons(this._icons);\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateOn(this._on);\n\t\tthis.validateRole(this._role);\n\t\tthis.validateTabIndex(this._tabIndex);\n\t\tthis.validateTarget(this._target);\n\t\tthis.validateTooltipAlign(this._tooltipAlign);\n\t\tthis.unsubscribeOnLocationChange = onLocationChange((location) => {\n\t\t\tthis.state._ariaCurrent = location === this.state._href ? this.state._ariaCurrentValue : undefined;\n\t\t});\n\t}\n\n\tpublic disconnectedCallback(): void {\n\t\tif (this.unsubscribeOnLocationChange) {\n\t\t\tthis.unsubscribeOnLocationChange();\n\t\t}\n\t}\n}\n"],"mappings":"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"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as n,h as e,H as t,g as i}from"./index-3fbcceca.js";import{h as o}from"./index-44da6e7f.js";import{m as s}from"./component-names-ed22f86e.js";const a="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: 44px;\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of 44px.\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\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 clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .hidden {\n display: none;\n visibility: hidden;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: inline-block;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n :is(a, button) {\n align-items: baseline;\n display: inline-flex;\n place-items: center;\n text-align: left;\n text-decoration-line: underline;\n }\n a:is(:focus, :hover):not([aria-disabled]),\n button:is(:focus, :hover):not([disabled]) {\n text-decoration-thickness: 0.2em;\n }\n .skip {\n left: -99999px;\n overflow: hidden;\n position: absolute;\n z-index: 9999999;\n line-height: 1em;\n }\n .skip:focus {\n background-color: #fff;\n left: unset;\n padding: 1em;\n position: unset;\n }\n .kol-icon.external-link-icon {\n display: inline-flex;\n }\n}",l=a,r=class{constructor(e){n(this,e),this.catchRef=n=>{o(this.host,n)},this._accessKey=void 0,this._ariaCurrentValue=void 0,this._disabled=!1,this._download=void 0,this._hideLabel=!1,this._href=void 0,this._icons=void 0,this._label=void 0,this._on=void 0,this._role=void 0,this._tabIndex=void 0,this._target=void 0,this._tooltipAlign="right"}render(){return e(t,{key:"1943de6c5e79f400f4b9f2d549c00b0a3044ee1b",class:"kol-link"},e(s,{key:"60c7b98abc5685710cb0494d17332bf98323fb63",ref:this.catchRef,_accessKey:this._accessKey,_ariaCurrentValue:this._ariaCurrentValue,_disabled:this._disabled,_download:this._download,_hideLabel:this._hideLabel,_href:this._href,_icons:this._icons,_label:this._label,_on:this._on,_role:this._role,_tabIndex:this._tabIndex,_target:this._target,_tooltipAlign:this._tooltipAlign},e("slot",{key:"eba837915423de9498203313f8910e61f9959c8d",name:"expert",slot:"expert"})))}get host(){return i(this)}};r.style={default:l};export{r as kol_link};
4
+ import{r as n,h as e,H as t,g as i}from"./index-3fbcceca.js";import{m as o}from"./component-names-ed22f86e.js";import{a as s}from"./reuse-b66836de.js";const a="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: 44px;\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of 44px.\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\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 clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .hidden {\n display: none;\n visibility: hidden;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: inline-block;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n :is(a, button) {\n align-items: baseline;\n display: inline-flex;\n place-items: center;\n text-align: left;\n text-decoration-line: underline;\n }\n a:is(:focus, :hover):not([aria-disabled]),\n button:is(:focus, :hover):not([disabled]) {\n text-decoration-thickness: 0.2em;\n }\n .skip {\n left: -99999px;\n overflow: hidden;\n position: absolute;\n z-index: 9999999;\n line-height: 1em;\n }\n .skip:focus {\n background-color: #fff;\n left: unset;\n padding: 1em;\n position: unset;\n }\n .kol-icon.external-link-icon {\n display: inline-flex;\n }\n}",l=a,r=class{constructor(e){n(this,e),this.catchRef=n=>{s(this.host,n)},this._accessKey=void 0,this._ariaCurrentValue=void 0,this._disabled=!1,this._download=void 0,this._hideLabel=!1,this._href=void 0,this._icons=void 0,this._label=void 0,this._on=void 0,this._role=void 0,this._tabIndex=void 0,this._target=void 0,this._tooltipAlign="right"}render(){return e(t,{key:"8a381f4c68eeb1a70ab27f86dcca9328cc98c50f",class:"kol-link"},e(o,{key:"67b91c5efc3478cf0682711554f9ba8932375667",ref:this.catchRef,_accessKey:this._accessKey,_ariaCurrentValue:this._ariaCurrentValue,_disabled:this._disabled,_download:this._download,_hideLabel:this._hideLabel,_href:this._href,_icons:this._icons,_label:this._label,_on:this._on,_role:this._role,_tabIndex:this._tabIndex,_target:this._target,_tooltipAlign:this._tooltipAlign},e("slot",{key:"2e275aa4ead87791588f79f80b49b39390ab9c70",name:"expert",slot:"expert"})))}get host(){return i(this)}};r.style={default:l};export{r as kol_link};
@@ -1 +1 @@
1
- {"version":3,"names":["defaultStyleCss","KolLinkDefaultStyle0","KolLink","this","catchRef","ref","propagateFocus","host","render","h","Host","key","class","KolLinkWcTag","_accessKey","_ariaCurrentValue","_disabled","_download","_hideLabel","_href","_icons","_label","_on","_role","_tabIndex","_target","_tooltipAlign","name","slot"],"sources":["src/components/link/style.scss?tag=kol-link&mode=default&encapsulation=shadow","src/components/link/shadow.tsx"],"sourcesContent":["@import '../link';\n","import type {\n\tAccessKeyPropType,\n\tAlternativeButtonLinkRolePropType,\n\tAriaCurrentValuePropType,\n\tDownloadPropType,\n\tHrefPropType,\n\tKoliBriIconsProp,\n\tLabelWithExpertSlotPropType,\n\tLinkOnCallbacksPropType,\n\tLinkProps,\n\tLinkTargetPropType,\n\tStringified,\n\tTooltipAlignPropType,\n} from '@public-ui/schema';\nimport { propagateFocus } from '@public-ui/schema';\nimport { Component, Element, h, Host, Prop } from '@stencil/core';\n\nimport type { JSX } from '@stencil/core';\nimport { KolLinkWcTag } from '../../core/component-names';\n@Component({\n\ttag: 'kol-link',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolLink implements LinkProps {\n\t@Element() private readonly host?: HTMLKolLinkElement;\n\n\tprivate readonly catchRef = (ref?: HTMLKolLinkWcElement) => {\n\t\tpropagateFocus(this.host, ref);\n\t};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-link\">\n\t\t\t\t<KolLinkWcTag\n\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\t_accessKey={this._accessKey}\n\t\t\t\t\t_ariaCurrentValue={this._ariaCurrentValue}\n\t\t\t\t\t_disabled={this._disabled}\n\t\t\t\t\t_download={this._download}\n\t\t\t\t\t_hideLabel={this._hideLabel}\n\t\t\t\t\t_href={this._href}\n\t\t\t\t\t_icons={this._icons}\n\t\t\t\t\t_label={this._label}\n\t\t\t\t\t_on={this._on}\n\t\t\t\t\t_role={this._role}\n\t\t\t\t\t_tabIndex={this._tabIndex}\n\t\t\t\t\t_target={this._target}\n\t\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t>\n\t\t\t\t\t{/*\n\t\t\t\t\t\tEs ist keine gute Idee hier einen Slot einzufügen, da dadurch ermöglicht wird,\n\t\t\t\t\t\tdie Unterstützung hinsichtlich der Barrierefreiheit der Komponente zu umgehen.\n\t\t\t\t\t*/}\n\t\t\t\t\t<slot name=\"expert\" slot=\"expert\"></slot>\n\t\t\t\t</KolLinkWcTag>\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 the value for the aria-current attribute.\n\t */\n\t@Prop() public _ariaCurrentValue?: AriaCurrentValuePropType;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Tells the browser that the link contains a file. Optionally sets the filename.\n\t */\n\t@Prop() public _download?: DownloadPropType;\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 * Sets the target URI of the link or citation source.\n\t */\n\t@Prop() public _href!: HrefPropType;\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: Stringified<KoliBriIconsProp>;\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 callback functions for links.\n\t */\n\t@Prop() public _on?: LinkOnCallbacksPropType;\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 * 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 open the link.\n\t */\n\t@Prop() public _target?: LinkTargetPropType;\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 = 'right';\n}\n"],"mappings":";;;uJAAA,MAAMA,EAAkB,0wJACxB,MAAAC,EAAeD,E,MCyBFE,EAAO,M,yBAGFC,KAAAC,SAAYC,IAC5BC,EAAeH,KAAKI,KAAMF,EAAI,E,0EA6CM,M,yCAYC,M,4KAwCgB,O,CA9F/C,MAAAG,GACN,OACCC,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAM,YACXH,EAACI,EAAY,CAAAF,IAAA,2CACZN,IAAKF,KAAKC,SACVU,WAAYX,KAAKW,WACjBC,kBAAmBZ,KAAKY,kBACxBC,UAAWb,KAAKa,UAChBC,UAAWd,KAAKc,UAChBC,WAAYf,KAAKe,WACjBC,MAAOhB,KAAKgB,MACZC,OAAQjB,KAAKiB,OACbC,OAAQlB,KAAKkB,OACbC,IAAKnB,KAAKmB,IACVC,MAAOpB,KAAKoB,MACZC,UAAWrB,KAAKqB,UAChBC,QAAStB,KAAKsB,QACdC,cAAevB,KAAKuB,eAMpBjB,EAAA,QAAAE,IAAA,2CAAMgB,KAAK,SAASC,KAAK,Y"}
1
+ {"version":3,"names":["defaultStyleCss","KolLinkDefaultStyle0","KolLink","this","catchRef","ref","propagateFocus","host","render","h","Host","key","class","KolLinkWcTag","_accessKey","_ariaCurrentValue","_disabled","_download","_hideLabel","_href","_icons","_label","_on","_role","_tabIndex","_target","_tooltipAlign","name","slot"],"sources":["src/components/link/style.scss?tag=kol-link&mode=default&encapsulation=shadow","src/components/link/shadow.tsx"],"sourcesContent":["@import '../link';\n","import type {\n\tAccessKeyPropType,\n\tAlternativeButtonLinkRolePropType,\n\tAriaCurrentValuePropType,\n\tDownloadPropType,\n\tHrefPropType,\n\tKoliBriIconsProp,\n\tLabelWithExpertSlotPropType,\n\tLinkOnCallbacksPropType,\n\tLinkProps,\n\tLinkTargetPropType,\n\tStringified,\n\tTooltipAlignPropType,\n} from '../../schema';\nimport { propagateFocus } from '../../schema';\nimport { Component, Element, h, Host, Prop } from '@stencil/core';\n\nimport type { JSX } from '@stencil/core';\nimport { KolLinkWcTag } from '../../core/component-names';\n@Component({\n\ttag: 'kol-link',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolLink implements LinkProps {\n\t@Element() private readonly host?: HTMLKolLinkElement;\n\n\tprivate readonly catchRef = (ref?: HTMLKolLinkWcElement) => {\n\t\tpropagateFocus(this.host, ref);\n\t};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-link\">\n\t\t\t\t<KolLinkWcTag\n\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\t_accessKey={this._accessKey}\n\t\t\t\t\t_ariaCurrentValue={this._ariaCurrentValue}\n\t\t\t\t\t_disabled={this._disabled}\n\t\t\t\t\t_download={this._download}\n\t\t\t\t\t_hideLabel={this._hideLabel}\n\t\t\t\t\t_href={this._href}\n\t\t\t\t\t_icons={this._icons}\n\t\t\t\t\t_label={this._label}\n\t\t\t\t\t_on={this._on}\n\t\t\t\t\t_role={this._role}\n\t\t\t\t\t_tabIndex={this._tabIndex}\n\t\t\t\t\t_target={this._target}\n\t\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t>\n\t\t\t\t\t{/*\n\t\t\t\t\t\tEs ist keine gute Idee hier einen Slot einzufügen, da dadurch ermöglicht wird,\n\t\t\t\t\t\tdie Unterstützung hinsichtlich der Barrierefreiheit der Komponente zu umgehen.\n\t\t\t\t\t*/}\n\t\t\t\t\t<slot name=\"expert\" slot=\"expert\"></slot>\n\t\t\t\t</KolLinkWcTag>\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 the value for the aria-current attribute.\n\t */\n\t@Prop() public _ariaCurrentValue?: AriaCurrentValuePropType;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Tells the browser that the link contains a file. Optionally sets the filename.\n\t */\n\t@Prop() public _download?: DownloadPropType;\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 * Sets the target URI of the link or citation source.\n\t */\n\t@Prop() public _href!: HrefPropType;\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: Stringified<KoliBriIconsProp>;\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 callback functions for links.\n\t */\n\t@Prop() public _on?: LinkOnCallbacksPropType;\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 * 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 open the link.\n\t */\n\t@Prop() public _target?: LinkTargetPropType;\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 = 'right';\n}\n"],"mappings":";;;uJAAA,MAAMA,EAAkB,0wJACxB,MAAAC,EAAeD,E,MCyBFE,EAAO,M,yBAGFC,KAAAC,SAAYC,IAC5BC,EAAeH,KAAKI,KAAMF,EAAI,E,0EA6CM,M,yCAYC,M,4KAwCgB,O,CA9F/C,MAAAG,GACN,OACCC,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAM,YACXH,EAACI,EAAY,CAAAF,IAAA,2CACZN,IAAKF,KAAKC,SACVU,WAAYX,KAAKW,WACjBC,kBAAmBZ,KAAKY,kBACxBC,UAAWb,KAAKa,UAChBC,UAAWd,KAAKc,UAChBC,WAAYf,KAAKe,WACjBC,MAAOhB,KAAKgB,MACZC,OAAQjB,KAAKiB,OACbC,OAAQlB,KAAKkB,OACbC,IAAKnB,KAAKmB,IACVC,MAAOpB,KAAKoB,MACZC,UAAWrB,KAAKqB,UAChBC,QAAStB,KAAKsB,QACdC,cAAevB,KAAKuB,eAMpBjB,EAAA,QAAAE,IAAA,2CAAMgB,KAAK,SAASC,KAAK,Y"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as n,h as e,H as c}from"./index-3fbcceca.js";import{k as t,R as i}from"./index-44da6e7f.js";import{d as o,B as a,b as l,f as s}from"./bund-ad41b762.js";import{t as r}from"./i18n-7bf2bd6f.js";import"./i18n-0c047df5.js";const d="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: 44px;\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of 44px.\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\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 clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .hidden {\n display: none;\n visibility: hidden;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: inline-block;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n text {\n font-size: 16px;\n letter-spacing: normal;\n word-spacing: normal;\n }\n svg {\n max-height: 100%;\n }\n}",h=d;function b(n,e=new Map){return Object.entries(n).map((([n,t])=>{e.set(t,n)})),e}const f=b(l,b(o,b(a)));function p(n){return f.has(n)?f.get(n):""}const m=()=>e("path",{d:"M21.72,12.77c0.04-0.33,0.06-0.67,0.06-1c0-0.2,0-0.43,0-0.69c3.06,0,5.74-2.25,5.74-4.78\nc-0.09-1.07-0.56-2.08-1.32-2.84l0.32-0.07c1,0.89,1.61,2.14,1.7,3.48c0,3-3,5.85-6.5,5.92 M18.64,2.21\nc-0.05-0.33-0.19-0.64-0.39-0.91c0-0.31,0.14-0.61,0.64-0.36c-0.27,0.27-0.06,0.76-0.06,0.76s0.55-0.26,0.44-0.62\nC20.09,1.28,19.5,2.38,18.64,2.21 M17.93,3.77c-0.12-0.47-0.34-0.9-0.64-1.27c-0.3-0.42-0.77-0.69-1.29-0.73\nc-0.34,0.03-0.68,0.12-1,0.25c-0.16-0.28-0.27-0.58-0.32-0.9c0-0.22,0.38-0.44,1.1-0.44c1.58,0,2.52,0.71,2.52,1.91\nC18.26,3.01,18.14,3.41,17.93,3.77 M22,24.16c0.13,0,0.26,0.02,0.38,0.07c0.64,1.3,1.4,2.53,2.29,3.68l0,0l0,0\nc0.81-0.14,1.63-0.22,2.45-0.24l0,0c0.1-0.01,0.2,0.01,0.28,0.07c0.07,0.09,0.1,0.2,0.09,0.31c-0.01,0.28-0.08,0.55-0.21,0.79\nc-0.46-0.4-1.07-0.59-1.68-0.51c-0.24,0.01-0.48,0.05-0.71,0.12h-0.07h-0.07l0.48,0.49c0.77,0.83,1.44,1.43,1.44,1.83\nc-0.04,0.31-0.22,0.58-0.48,0.74c-0.22-0.98-0.8-1.84-1.62-2.42h-0.06v0.27c0,0.19,0,0.47,0,0.77c0,1.49-0.15,1.72-0.67,1.72\nc-0.09,0.01-0.19,0.01-0.28,0c0.33-0.49,0.48-1.08,0.41-1.67v-0.7c0-0.27,0.03-0.53,0.06-0.8v-0.11h-0.08\nc-0.33-0.05-0.67-0.09-1-0.1c-0.57-0.07-1.14,0.07-1.6,0.41c-0.24-0.18-0.41-0.44-0.48-0.73c0-0.32,0.19-0.34,0.45-0.34\nc0.14-0.01,0.27-0.01,0.41,0c0.59,0.09,1.18,0.13,1.78,0.12h0.06v-0.06c-0.5-1.13-1.18-2.17-2-3.09c0.1-0.35,0.2-0.59,0.54-0.59\nM12.64,27.87v0.06h0.06c0.55-0.01,1.1-0.06,1.64-0.16c0.14-0.01,0.27-0.01,0.41,0c0.26,0,0.45,0,0.45,0.34\nc-0.07,0.29-0.24,0.55-0.48,0.73c-0.46-0.34-1.03-0.49-1.6-0.41c-0.33,0.01-0.67,0.05-1,0.1H12v0.11\nc0.03,0.27,0.06,0.53,0.06,0.8v0.7c-0.05,0.58,0.1,1.15,0.42,1.63c-0.09,0.01-0.19,0.01-0.28,0c-0.52,0-0.67-0.23-0.67-1.72\nc0-0.3,0-0.58,0-0.77V29l-0.06,0.05c-0.82,0.58-1.39,1.44-1.61,2.42c-0.28-0.14-0.47-0.4-0.53-0.7c0-0.43,0.65-1.07,1.39-1.81\nl0.43-0.43v-0.06h-0.14c-0.23-0.07-0.47-0.11-0.71-0.12c-0.61-0.08-1.22,0.11-1.68,0.51c-0.13-0.24-0.2-0.51-0.21-0.79\nc0.01-0.11,0.06-0.22,0.14-0.3c0.08-0.06,0.18-0.08,0.28-0.07l0,0c0.82,0.02,1.64,0.1,2.45,0.24l0,0l0,0\nc0.88-1.15,1.64-2.38,2.28-3.68c0.12-0.05,0.25-0.07,0.38-0.07c0.35,0,0.44,0.24,0.54,0.59c-0.82,0.92-1.5,1.96-2,3.09\nM7.78,6.87c0.08-1.36,0.7-2.62,1.72-3.52l0.32,0.07C9.06,4.19,8.6,5.19,8.51,6.26c0,2.56,2.73,4.78,5.82,4.78\nc0,0.22,0,0.45,0,0.69c-0.01,0.35,0,0.69,0.03,1.04c-3.5,0-6.58-2.86-6.58-5.92 M31.25,12.23c1.57,2.49,2.8,2.45,4.66,2.45\nc-1.19-0.97-2.21-2.14-3-3.46L30,6.65c-0.29-1.44-1.03-2.75-2.12-3.73c0.31-0.1,0.6-0.24,0.87-0.42c-1.88,0-3.73-1-4.75-1\nc-0.55-0.05-1.03,0.36-1.08,0.91c0,0.58,0.63,1.16,1.73,1.16c0.31,0,0.62-0.04,0.92-0.09c0.65,0.74,1.03,1.67,1.08,2.65\nc0,2-2.41,3.58-4.83,3.58h-0.41c-0.5-0.67-0.84-1.45-1-2.28c0-1.6,1.05-2.9,1.05-4.48c0-0.68-0.24-1.33-0.67-1.85\nc0.29-0.23,0.53-0.52,0.7-0.85c-0.22,0.08-0.45,0.11-0.68,0.09c-1.16,0-2.11-0.3-3-0.3c-0.53,0-0.67,0.16-0.67,0.31\nc-0.01,0.05-0.01,0.1,0,0.15c-0.19-0.08-0.39-0.13-0.59-0.17c-0.29-0.05-0.58-0.08-0.88-0.08c-1.13,0-1.52,0.47-1.52,0.87\nc0.07,0.52,0.27,1.01,0.57,1.44c0.4-0.2,0.84-0.31,1.28-0.34c0.6,0,1.13,0.57,1.41,1.24c-0.29,0.05-0.59,0.07-0.88,0.07\nc-0.68-0.03-1.36-0.16-2-0.39l0,0c0,0,0.31,0.56,0.92,0.78c0.72,0.22,1.46,0.37,2.21,0.45c-0.08,0.21-0.23,0.38-0.43,0.49\nc-0.05,0.02-0.09,0.02-0.14,0c-0.74-0.14-1.45-0.35-2.14-0.65H14.9c0,0.42,1.09,1.35,2.07,1.71c-1.06,1.1-1.87,2.41-2.39,3.85\nh-0.41c-2.42,0-4.82-1.57-4.82-3.58c0.05-0.98,0.43-1.91,1.07-2.65c0.3,0.05,0.61,0.09,0.92,0.09c1.1,0,1.69-0.58,1.74-1.16\nc-0.04-0.55-0.52-0.96-1.07-0.92c0,0,0,0-0.01,0c-1,0-2.88,1-4.76,1C7.51,2.73,7.8,2.87,8.11,2.97C7.03,3.94,6.29,5.23,6,6.65\nl-2.87,4.59c-0.79,1.32-1.81,2.49-3,3.46c1.86,0,3.09,0,4.66-2.45L6.26,9.9c0.11,0.31,0.24,0.61,0.4,0.9l-2.97,4.67\nc-0.79,1.32-1.8,2.49-3,3.46c1.85,0,3.08,0,4.65-2.44l2.52-4c0.19,0.2,0.39,0.4,0.6,0.58l-3.59,5.7c-0.79,1.32-1.8,2.49-3,3.45\nc1.85,0,3.08,0.05,4.65-2.44L10,14.2c0.22,0.14,0.46,0.28,0.7,0.41l-4.27,6.77c-0.79,1.31-1.81,2.48-3,3.45\nc1.85,0,3.08,0,4.65-2.44l4.36-7c0.25,0.1,0.51,0.2,0.78,0.28l-4.95,7.9c-0.79,1.31-1.81,2.48-3,3.45c1.85,0,3.08,0.05,4.65-2.43\nl5.24-8.39h0.16c0.14,0.42,0.22,0.86,0.24,1.3c0,2.64-1.73,5-3.8,6.76c0.19,0.06,0.38,0.09,0.58,0.08c0.3,0.01,0.6-0.01,0.9-0.05\nc-0.57,1.13-1.24,2.21-2,3.23c-0.77-0.13-1.54-0.2-2.32-0.22c-0.67,0-0.75,0.4-0.75,0.75c-0.01,0.53,0.22,1.03,0.62,1.38\nc0.13-0.31,0.38-0.73,1.63-0.73h0.13C10.11,29.13,9,30.06,9,30.77c0.06,0.66,0.59,1.18,1.25,1.24c-0.02-0.14-0.02-0.28,0-0.42\nc0.13-0.69,0.48-1.33,1-1.8c-0.01,0.1-0.01,0.2,0,0.3c0,1.43,0.13,2.08,1,2.08c0.31-0.01,0.61-0.12,0.86-0.31\nc-0.5-0.44-0.73-1.11-0.62-1.77c0-0.21,0-0.41,0-0.69c0.02-0.2,0.02-0.41,0-0.61c0.24-0.02,0.47-0.02,0.71,0\nc0,0,1.29-0.1,1.6,0.57c0.35-0.32,0.86-0.78,0.86-1.27c0-0.33-0.16-0.71-0.83-0.71c-0.25,0-1,0.16-1.7,0.16\nc0.48-0.84,1.04-1.64,1.66-2.39c0.1,0.39,0.31,0.74,0.62,1c0.12-1.17,0.54-2.28,1.21-3.24c0.16,0.93,0.24,1.87,0.23,2.82\nc0,3.55-0.85,6.17-2.66,6.67c0.26,0.46,0.73,0.75,1.25,0.78c0.66,0,1-0.75,1.39-1.46c0.19,0.53,0.72,1.8,1.25,1.8\ns1.06-1.27,1.25-1.8c0.37,0.71,0.73,1.46,1.39,1.46c0.52-0.03,1-0.33,1.26-0.78c-1.82-0.5-2.67-3.12-2.67-6.67\nc-0.01-0.95,0.07-1.89,0.23-2.82c0.68,0.96,1.1,2.07,1.21,3.24c0.31-0.26,0.53-0.61,0.63-1c0.61,0.75,1.15,1.54,1.62,2.38\nc-0.66,0-1.45-0.16-1.7-0.16c-0.67,0-0.82,0.38-0.82,0.71c0,0.49,0.51,1,0.86,1.27c0.3-0.67,1.59-0.57,1.59-0.57\nc0.24-0.02,0.47-0.02,0.71,0c-0.02,0.2-0.02,0.41,0,0.61v0.69c0.11,0.66-0.12,1.33-0.62,1.77c0.25,0.19,0.55,0.3,0.86,0.31\nc0.91,0,1-0.65,1-2.08c0.01-0.1,0.01-0.2,0-0.3c0.52,0.47,0.87,1.11,1,1.8c0.02,0.14,0.02,0.28,0,0.42\nc0.61-0.11,1.06-0.62,1.12-1.23c0-0.74-1.15-1.67-1.52-2.08h0.13c1.25,0,1.5,0.42,1.63,0.73c0.4-0.35,0.63-0.85,0.62-1.38\nc0-0.35-0.07-0.75-0.75-0.75c-0.78,0.02-1.55,0.09-2.32,0.22c-0.76-1.02-1.43-2.1-2-3.23c0.3,0.04,0.6,0.06,0.9,0.05\nc0.19,0.01,0.39-0.02,0.57-0.08c-2.07-1.79-3.8-4.12-3.8-6.76c0.02-0.44,0.1-0.88,0.24-1.3h0.16l5.24,8.39\nc1.57,2.48,2.8,2.43,4.65,2.43c-1.19-0.97-2.21-2.14-3-3.45l-4.92-7.87c0.27-0.08,0.53-0.18,0.79-0.28l4.35,7\nc1.57,2.48,2.8,2.44,4.65,2.44c-1.19-0.97-2.21-2.14-3-3.45l-4.23-6.77c0.24-0.13,0.48-0.27,0.7-0.41l3.42,5.55\nc1.57,2.49,2.8,2.44,4.65,2.44c-1.19-0.97-2.21-2.13-3-3.45l-3.55-5.69c0.2-0.18,0.4-0.38,0.59-0.58l2.52,4\nc1.57,2.48,2.8,2.44,4.65,2.44c-1.2-0.97-2.21-2.14-3-3.46l-2.99-4.7c0.16-0.29,0.29-0.59,0.4-0.9L31.25,12.23z"}),u=class{constructor(e){n(this,e),this._org=void 0,this.state={_org:o["Informationstechnikzentrum Bund"]}}validateOrg(n){"string"==typeof n&&f.has(n)?t(this,"_org",n):i(`Die verwendete Abkürzung (${n}) ist nicht definiert!`)}componentWillLoad(){this.validateOrg(this._org)}render(){var n;return e(c,{key:"b22bb390038db55b19becb3b5a7c07286fe6802e",class:"kol-logo"},e("svg",{key:"d043984b885458cffaaab20b87aff94ca76d6cb3","aria-label":r("kol-logo-description",{placeholders:{orgShort:this.state._org,orgLong:p(this.state._org)}}),role:"img",viewBox:"0 0 225 100"},e("rect",{key:"77cf2cfe14aaf7ad2171af8b48f8516c462fe7b8",width:"100%",height:"100%",fill:"white"}),e("svg",{key:"ded3c8f86cfe1e5ed0072d4a02eec46d65bb1cbb",x:"0",y:"4",height:"75"},e(m,{key:"73750e236421e7bd8469290ff190df5c81c2c5b4"})),e("svg",{key:"423cac2465f5b54cdbe2e990b44030867faf4eba",x:"40.5",y:"3.5",height:"100"},e("rect",{key:"db677551f809c4c40e2e71f5c225f3e62f35d2b1",width:"5",height:"30"}),e("rect",{key:"9cac865f410a974e74e33eae4efffa1fc7b00dca",y:"30",width:"5",height:"30",fill:"red"}),e("rect",{key:"0b7d7fd9b8eb41b8401b5ed3d88b0ef5b43d02b6",y:"60",width:"5",height:"30",fill:"#fc0"})),e("svg",{key:"0b8a3e24294ac09963ce5ae4308f084724f1ebe0",x:"50",y:"0"},e("text",{key:"468bf4e4ab40e4dc05a30c51a32cfc6b4c5987dc",x:"0",y:"-0.05em","font-family":"BundesSans Web",style:{backgroundColor:"white",color:"black"}},s.has(this.state._org)?e("tspan",null,null===(n=s.get(this.state._org))||void 0===n?void 0:n.map(((n,t)=>e("tspan",{x:"0",dy:"1.1em",key:`kol-logo-text-${t}`},n)))):e("tspan",{fill:"red"},e("tspan",{x:"0",dy:"1.1em"},"Der Schlüsselwert"),e("tspan",{x:"0",dy:"1.1em","font-weight":"bold"},"'",this.state._org,"'"),e("tspan",{x:"0",dy:"1.1em"},"ist nicht definiert."),e("tspan",{x:"0",dy:"1.1em"},"oder freigegeben."))))))}static get watchers(){return{_org:["validateOrg"]}}};u.style={default:h};export{u as kol_logo};
4
+ import{r as n,h as e,H as t}from"./index-3fbcceca.js";import{d as c,B as i,b as o,f as a}from"./bund-ad41b762.js";import{t as l}from"./i18n-37baa421.js";import{s,j as r}from"./prop.validators-29d576d2.js";import"./i18n-0c047df5.js";import"./reuse-b66836de.js";import"./index-4a3076fc.js";import"./dev.utils-1ca991a2.js";const d="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: 44px;\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of 44px.\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\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 clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .hidden {\n display: none;\n visibility: hidden;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: inline-block;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n text {\n font-size: 16px;\n letter-spacing: normal;\n word-spacing: normal;\n }\n svg {\n max-height: 100%;\n }\n}",h=d;function b(n,e=new Map){return Object.entries(n).map((([n,t])=>{e.set(t,n)})),e}const p=b(o,b(c,b(i)));function f(n){return p.has(n)?p.get(n):""}const m=()=>e("path",{d:"M21.72,12.77c0.04-0.33,0.06-0.67,0.06-1c0-0.2,0-0.43,0-0.69c3.06,0,5.74-2.25,5.74-4.78\nc-0.09-1.07-0.56-2.08-1.32-2.84l0.32-0.07c1,0.89,1.61,2.14,1.7,3.48c0,3-3,5.85-6.5,5.92 M18.64,2.21\nc-0.05-0.33-0.19-0.64-0.39-0.91c0-0.31,0.14-0.61,0.64-0.36c-0.27,0.27-0.06,0.76-0.06,0.76s0.55-0.26,0.44-0.62\nC20.09,1.28,19.5,2.38,18.64,2.21 M17.93,3.77c-0.12-0.47-0.34-0.9-0.64-1.27c-0.3-0.42-0.77-0.69-1.29-0.73\nc-0.34,0.03-0.68,0.12-1,0.25c-0.16-0.28-0.27-0.58-0.32-0.9c0-0.22,0.38-0.44,1.1-0.44c1.58,0,2.52,0.71,2.52,1.91\nC18.26,3.01,18.14,3.41,17.93,3.77 M22,24.16c0.13,0,0.26,0.02,0.38,0.07c0.64,1.3,1.4,2.53,2.29,3.68l0,0l0,0\nc0.81-0.14,1.63-0.22,2.45-0.24l0,0c0.1-0.01,0.2,0.01,0.28,0.07c0.07,0.09,0.1,0.2,0.09,0.31c-0.01,0.28-0.08,0.55-0.21,0.79\nc-0.46-0.4-1.07-0.59-1.68-0.51c-0.24,0.01-0.48,0.05-0.71,0.12h-0.07h-0.07l0.48,0.49c0.77,0.83,1.44,1.43,1.44,1.83\nc-0.04,0.31-0.22,0.58-0.48,0.74c-0.22-0.98-0.8-1.84-1.62-2.42h-0.06v0.27c0,0.19,0,0.47,0,0.77c0,1.49-0.15,1.72-0.67,1.72\nc-0.09,0.01-0.19,0.01-0.28,0c0.33-0.49,0.48-1.08,0.41-1.67v-0.7c0-0.27,0.03-0.53,0.06-0.8v-0.11h-0.08\nc-0.33-0.05-0.67-0.09-1-0.1c-0.57-0.07-1.14,0.07-1.6,0.41c-0.24-0.18-0.41-0.44-0.48-0.73c0-0.32,0.19-0.34,0.45-0.34\nc0.14-0.01,0.27-0.01,0.41,0c0.59,0.09,1.18,0.13,1.78,0.12h0.06v-0.06c-0.5-1.13-1.18-2.17-2-3.09c0.1-0.35,0.2-0.59,0.54-0.59\nM12.64,27.87v0.06h0.06c0.55-0.01,1.1-0.06,1.64-0.16c0.14-0.01,0.27-0.01,0.41,0c0.26,0,0.45,0,0.45,0.34\nc-0.07,0.29-0.24,0.55-0.48,0.73c-0.46-0.34-1.03-0.49-1.6-0.41c-0.33,0.01-0.67,0.05-1,0.1H12v0.11\nc0.03,0.27,0.06,0.53,0.06,0.8v0.7c-0.05,0.58,0.1,1.15,0.42,1.63c-0.09,0.01-0.19,0.01-0.28,0c-0.52,0-0.67-0.23-0.67-1.72\nc0-0.3,0-0.58,0-0.77V29l-0.06,0.05c-0.82,0.58-1.39,1.44-1.61,2.42c-0.28-0.14-0.47-0.4-0.53-0.7c0-0.43,0.65-1.07,1.39-1.81\nl0.43-0.43v-0.06h-0.14c-0.23-0.07-0.47-0.11-0.71-0.12c-0.61-0.08-1.22,0.11-1.68,0.51c-0.13-0.24-0.2-0.51-0.21-0.79\nc0.01-0.11,0.06-0.22,0.14-0.3c0.08-0.06,0.18-0.08,0.28-0.07l0,0c0.82,0.02,1.64,0.1,2.45,0.24l0,0l0,0\nc0.88-1.15,1.64-2.38,2.28-3.68c0.12-0.05,0.25-0.07,0.38-0.07c0.35,0,0.44,0.24,0.54,0.59c-0.82,0.92-1.5,1.96-2,3.09\nM7.78,6.87c0.08-1.36,0.7-2.62,1.72-3.52l0.32,0.07C9.06,4.19,8.6,5.19,8.51,6.26c0,2.56,2.73,4.78,5.82,4.78\nc0,0.22,0,0.45,0,0.69c-0.01,0.35,0,0.69,0.03,1.04c-3.5,0-6.58-2.86-6.58-5.92 M31.25,12.23c1.57,2.49,2.8,2.45,4.66,2.45\nc-1.19-0.97-2.21-2.14-3-3.46L30,6.65c-0.29-1.44-1.03-2.75-2.12-3.73c0.31-0.1,0.6-0.24,0.87-0.42c-1.88,0-3.73-1-4.75-1\nc-0.55-0.05-1.03,0.36-1.08,0.91c0,0.58,0.63,1.16,1.73,1.16c0.31,0,0.62-0.04,0.92-0.09c0.65,0.74,1.03,1.67,1.08,2.65\nc0,2-2.41,3.58-4.83,3.58h-0.41c-0.5-0.67-0.84-1.45-1-2.28c0-1.6,1.05-2.9,1.05-4.48c0-0.68-0.24-1.33-0.67-1.85\nc0.29-0.23,0.53-0.52,0.7-0.85c-0.22,0.08-0.45,0.11-0.68,0.09c-1.16,0-2.11-0.3-3-0.3c-0.53,0-0.67,0.16-0.67,0.31\nc-0.01,0.05-0.01,0.1,0,0.15c-0.19-0.08-0.39-0.13-0.59-0.17c-0.29-0.05-0.58-0.08-0.88-0.08c-1.13,0-1.52,0.47-1.52,0.87\nc0.07,0.52,0.27,1.01,0.57,1.44c0.4-0.2,0.84-0.31,1.28-0.34c0.6,0,1.13,0.57,1.41,1.24c-0.29,0.05-0.59,0.07-0.88,0.07\nc-0.68-0.03-1.36-0.16-2-0.39l0,0c0,0,0.31,0.56,0.92,0.78c0.72,0.22,1.46,0.37,2.21,0.45c-0.08,0.21-0.23,0.38-0.43,0.49\nc-0.05,0.02-0.09,0.02-0.14,0c-0.74-0.14-1.45-0.35-2.14-0.65H14.9c0,0.42,1.09,1.35,2.07,1.71c-1.06,1.1-1.87,2.41-2.39,3.85\nh-0.41c-2.42,0-4.82-1.57-4.82-3.58c0.05-0.98,0.43-1.91,1.07-2.65c0.3,0.05,0.61,0.09,0.92,0.09c1.1,0,1.69-0.58,1.74-1.16\nc-0.04-0.55-0.52-0.96-1.07-0.92c0,0,0,0-0.01,0c-1,0-2.88,1-4.76,1C7.51,2.73,7.8,2.87,8.11,2.97C7.03,3.94,6.29,5.23,6,6.65\nl-2.87,4.59c-0.79,1.32-1.81,2.49-3,3.46c1.86,0,3.09,0,4.66-2.45L6.26,9.9c0.11,0.31,0.24,0.61,0.4,0.9l-2.97,4.67\nc-0.79,1.32-1.8,2.49-3,3.46c1.85,0,3.08,0,4.65-2.44l2.52-4c0.19,0.2,0.39,0.4,0.6,0.58l-3.59,5.7c-0.79,1.32-1.8,2.49-3,3.45\nc1.85,0,3.08,0.05,4.65-2.44L10,14.2c0.22,0.14,0.46,0.28,0.7,0.41l-4.27,6.77c-0.79,1.31-1.81,2.48-3,3.45\nc1.85,0,3.08,0,4.65-2.44l4.36-7c0.25,0.1,0.51,0.2,0.78,0.28l-4.95,7.9c-0.79,1.31-1.81,2.48-3,3.45c1.85,0,3.08,0.05,4.65-2.43\nl5.24-8.39h0.16c0.14,0.42,0.22,0.86,0.24,1.3c0,2.64-1.73,5-3.8,6.76c0.19,0.06,0.38,0.09,0.58,0.08c0.3,0.01,0.6-0.01,0.9-0.05\nc-0.57,1.13-1.24,2.21-2,3.23c-0.77-0.13-1.54-0.2-2.32-0.22c-0.67,0-0.75,0.4-0.75,0.75c-0.01,0.53,0.22,1.03,0.62,1.38\nc0.13-0.31,0.38-0.73,1.63-0.73h0.13C10.11,29.13,9,30.06,9,30.77c0.06,0.66,0.59,1.18,1.25,1.24c-0.02-0.14-0.02-0.28,0-0.42\nc0.13-0.69,0.48-1.33,1-1.8c-0.01,0.1-0.01,0.2,0,0.3c0,1.43,0.13,2.08,1,2.08c0.31-0.01,0.61-0.12,0.86-0.31\nc-0.5-0.44-0.73-1.11-0.62-1.77c0-0.21,0-0.41,0-0.69c0.02-0.2,0.02-0.41,0-0.61c0.24-0.02,0.47-0.02,0.71,0\nc0,0,1.29-0.1,1.6,0.57c0.35-0.32,0.86-0.78,0.86-1.27c0-0.33-0.16-0.71-0.83-0.71c-0.25,0-1,0.16-1.7,0.16\nc0.48-0.84,1.04-1.64,1.66-2.39c0.1,0.39,0.31,0.74,0.62,1c0.12-1.17,0.54-2.28,1.21-3.24c0.16,0.93,0.24,1.87,0.23,2.82\nc0,3.55-0.85,6.17-2.66,6.67c0.26,0.46,0.73,0.75,1.25,0.78c0.66,0,1-0.75,1.39-1.46c0.19,0.53,0.72,1.8,1.25,1.8\ns1.06-1.27,1.25-1.8c0.37,0.71,0.73,1.46,1.39,1.46c0.52-0.03,1-0.33,1.26-0.78c-1.82-0.5-2.67-3.12-2.67-6.67\nc-0.01-0.95,0.07-1.89,0.23-2.82c0.68,0.96,1.1,2.07,1.21,3.24c0.31-0.26,0.53-0.61,0.63-1c0.61,0.75,1.15,1.54,1.62,2.38\nc-0.66,0-1.45-0.16-1.7-0.16c-0.67,0-0.82,0.38-0.82,0.71c0,0.49,0.51,1,0.86,1.27c0.3-0.67,1.59-0.57,1.59-0.57\nc0.24-0.02,0.47-0.02,0.71,0c-0.02,0.2-0.02,0.41,0,0.61v0.69c0.11,0.66-0.12,1.33-0.62,1.77c0.25,0.19,0.55,0.3,0.86,0.31\nc0.91,0,1-0.65,1-2.08c0.01-0.1,0.01-0.2,0-0.3c0.52,0.47,0.87,1.11,1,1.8c0.02,0.14,0.02,0.28,0,0.42\nc0.61-0.11,1.06-0.62,1.12-1.23c0-0.74-1.15-1.67-1.52-2.08h0.13c1.25,0,1.5,0.42,1.63,0.73c0.4-0.35,0.63-0.85,0.62-1.38\nc0-0.35-0.07-0.75-0.75-0.75c-0.78,0.02-1.55,0.09-2.32,0.22c-0.76-1.02-1.43-2.1-2-3.23c0.3,0.04,0.6,0.06,0.9,0.05\nc0.19,0.01,0.39-0.02,0.57-0.08c-2.07-1.79-3.8-4.12-3.8-6.76c0.02-0.44,0.1-0.88,0.24-1.3h0.16l5.24,8.39\nc1.57,2.48,2.8,2.43,4.65,2.43c-1.19-0.97-2.21-2.14-3-3.45l-4.92-7.87c0.27-0.08,0.53-0.18,0.79-0.28l4.35,7\nc1.57,2.48,2.8,2.44,4.65,2.44c-1.19-0.97-2.21-2.14-3-3.45l-4.23-6.77c0.24-0.13,0.48-0.27,0.7-0.41l3.42,5.55\nc1.57,2.49,2.8,2.44,4.65,2.44c-1.19-0.97-2.21-2.13-3-3.45l-3.55-5.69c0.2-0.18,0.4-0.38,0.59-0.58l2.52,4\nc1.57,2.48,2.8,2.44,4.65,2.44c-1.2-0.97-2.21-2.14-3-3.46l-2.99-4.7c0.16-0.29,0.29-0.59,0.4-0.9L31.25,12.23z"}),u=class{constructor(e){n(this,e),this._org=void 0,this.state={_org:c["Informationstechnikzentrum Bund"]}}validateOrg(n){"string"==typeof n&&p.has(n)?s(this,"_org",n):r(`Die verwendete Abkürzung (${n}) ist nicht definiert!`)}componentWillLoad(){this.validateOrg(this._org)}render(){var n;return e(t,{key:"f90b9eb725f5b4f91f75bac9b4dfaf1133f8b811",class:"kol-logo"},e("svg",{key:"964e79a52eeed741a496d403c3091ee777274f22","aria-label":l("kol-logo-description",{placeholders:{orgShort:this.state._org,orgLong:f(this.state._org)}}),role:"img",viewBox:"0 0 225 100"},e("rect",{key:"d2a5552316874a4e7227d97161e24c218fd9075b",width:"100%",height:"100%",fill:"white"}),e("svg",{key:"a2eec4b28bd7914394488fc1254a2c06112cd654",x:"0",y:"4",height:"75"},e(m,{key:"237cda1d159ca7a744a2a95db53b1d984540a5d7"})),e("svg",{key:"a0ce2abe404ba2aa2d3d08738b130a333990ad75",x:"40.5",y:"3.5",height:"100"},e("rect",{key:"51cc93247982b30b6c340385d86f7e81b13265aa",width:"5",height:"30"}),e("rect",{key:"a39a2992ab3ea869026c065b9d85b6eb6552fc17",y:"30",width:"5",height:"30",fill:"red"}),e("rect",{key:"7be8ea205996ee15a2969e68547ff93d4c32b02e",y:"60",width:"5",height:"30",fill:"#fc0"})),e("svg",{key:"fe5a7fcbf4e373e85cb0e42eb4766f53d0369161",x:"50",y:"0"},e("text",{key:"a48b054b6c6cd67d5d55895d3c5d78434737ee6b",x:"0",y:"-0.05em","font-family":"BundesSans Web",style:{backgroundColor:"white",color:"black"}},a.has(this.state._org)?e("tspan",null,null===(n=a.get(this.state._org))||void 0===n?void 0:n.map(((n,t)=>e("tspan",{x:"0",dy:"1.1em",key:`kol-logo-text-${t}`},n)))):e("tspan",{fill:"red"},e("tspan",{x:"0",dy:"1.1em"},"Der Schlüsselwert"),e("tspan",{x:"0",dy:"1.1em","font-weight":"bold"},"'",this.state._org,"'"),e("tspan",{x:"0",dy:"1.1em"},"ist nicht definiert."),e("tspan",{x:"0",dy:"1.1em"},"oder freigegeben."))))))}static get watchers(){return{_org:["validateOrg"]}}};u.style={default:h};export{u as kol_logo};
@@ -1 +1 @@
1
- {"version":3,"names":["defaultStyleCss","KolLogoDefaultStyle0","enumToArray","enumeration","enumAsMap","Map","Object","entries","map","key","value","set","ENUM_AS_MAP","Bundesamt","Bundesanstalt","Bundesministerium","getAriaLabel","organ","has","get","Adler","h","d","KolLogo","_org","validateOrg","setState","this","devHint","componentWillLoad","render","Host","class","translate","placeholders","orgShort","state","orgLong","role","viewBox","width","height","fill","x","y","style","backgroundColor","color","BUND_LOGO_TEXT_MAP","_a","text","index","dy"],"sources":["src/components/logo/style.scss?tag=kol-logo&mode=default&encapsulation=shadow","src/components/logo/component.tsx"],"sourcesContent":["@import '../@shared/mixins';\n@import '../style';\n\n@layer kol-component {\n\t:host {\n\t\tdisplay: inline-block;\n\t\tfont-size: rem(16);\n\t}\n\n\ttext {\n\t\tfont-size: 16px;\n\t\tletter-spacing: normal;\n\t\tword-spacing: normal;\n\t}\n\n\tsvg {\n\t\tmax-height: 100%;\n\t}\n}\n","import type { JSX } from '@stencil/core';\nimport { devHint, setState } from '@public-ui/schema';\nimport { Component, h, Host, Prop, State, Watch } from '@stencil/core';\n\nimport { BUND_LOGO_TEXT_MAP, Bundesamt, Bundesanstalt, Bundesministerium } from '../../enums/bund';\nimport { translate } from '../../i18n';\n\nimport type { API, States } from './types';\nfunction enumToArray(enumeration: Record<string, string>, enumAsMap: Map<string, string> = new Map()): Map<string, string> {\n\tObject.entries(enumeration).map(([key, value]) => {\n\t\tenumAsMap.set(value, key);\n\t});\n\treturn enumAsMap;\n}\n\nconst ENUM_AS_MAP = enumToArray(Bundesamt, enumToArray(Bundesanstalt, enumToArray(Bundesministerium)));\n\nfunction getAriaLabel(organ: string): string {\n\tif (ENUM_AS_MAP.has(organ)) {\n\t\treturn ENUM_AS_MAP.get(organ) as string;\n\t} else {\n\t\treturn '';\n\t}\n}\n\nconst Adler = (): JSX.Element => (\n\t<path\n\t\td=\"M21.72,12.77c0.04-0.33,0.06-0.67,0.06-1c0-0.2,0-0.43,0-0.69c3.06,0,5.74-2.25,5.74-4.78\nc-0.09-1.07-0.56-2.08-1.32-2.84l0.32-0.07c1,0.89,1.61,2.14,1.7,3.48c0,3-3,5.85-6.5,5.92 M18.64,2.21\nc-0.05-0.33-0.19-0.64-0.39-0.91c0-0.31,0.14-0.61,0.64-0.36c-0.27,0.27-0.06,0.76-0.06,0.76s0.55-0.26,0.44-0.62\nC20.09,1.28,19.5,2.38,18.64,2.21 M17.93,3.77c-0.12-0.47-0.34-0.9-0.64-1.27c-0.3-0.42-0.77-0.69-1.29-0.73\nc-0.34,0.03-0.68,0.12-1,0.25c-0.16-0.28-0.27-0.58-0.32-0.9c0-0.22,0.38-0.44,1.1-0.44c1.58,0,2.52,0.71,2.52,1.91\nC18.26,3.01,18.14,3.41,17.93,3.77 M22,24.16c0.13,0,0.26,0.02,0.38,0.07c0.64,1.3,1.4,2.53,2.29,3.68l0,0l0,0\nc0.81-0.14,1.63-0.22,2.45-0.24l0,0c0.1-0.01,0.2,0.01,0.28,0.07c0.07,0.09,0.1,0.2,0.09,0.31c-0.01,0.28-0.08,0.55-0.21,0.79\nc-0.46-0.4-1.07-0.59-1.68-0.51c-0.24,0.01-0.48,0.05-0.71,0.12h-0.07h-0.07l0.48,0.49c0.77,0.83,1.44,1.43,1.44,1.83\nc-0.04,0.31-0.22,0.58-0.48,0.74c-0.22-0.98-0.8-1.84-1.62-2.42h-0.06v0.27c0,0.19,0,0.47,0,0.77c0,1.49-0.15,1.72-0.67,1.72\nc-0.09,0.01-0.19,0.01-0.28,0c0.33-0.49,0.48-1.08,0.41-1.67v-0.7c0-0.27,0.03-0.53,0.06-0.8v-0.11h-0.08\nc-0.33-0.05-0.67-0.09-1-0.1c-0.57-0.07-1.14,0.07-1.6,0.41c-0.24-0.18-0.41-0.44-0.48-0.73c0-0.32,0.19-0.34,0.45-0.34\nc0.14-0.01,0.27-0.01,0.41,0c0.59,0.09,1.18,0.13,1.78,0.12h0.06v-0.06c-0.5-1.13-1.18-2.17-2-3.09c0.1-0.35,0.2-0.59,0.54-0.59\nM12.64,27.87v0.06h0.06c0.55-0.01,1.1-0.06,1.64-0.16c0.14-0.01,0.27-0.01,0.41,0c0.26,0,0.45,0,0.45,0.34\nc-0.07,0.29-0.24,0.55-0.48,0.73c-0.46-0.34-1.03-0.49-1.6-0.41c-0.33,0.01-0.67,0.05-1,0.1H12v0.11\nc0.03,0.27,0.06,0.53,0.06,0.8v0.7c-0.05,0.58,0.1,1.15,0.42,1.63c-0.09,0.01-0.19,0.01-0.28,0c-0.52,0-0.67-0.23-0.67-1.72\nc0-0.3,0-0.58,0-0.77V29l-0.06,0.05c-0.82,0.58-1.39,1.44-1.61,2.42c-0.28-0.14-0.47-0.4-0.53-0.7c0-0.43,0.65-1.07,1.39-1.81\nl0.43-0.43v-0.06h-0.14c-0.23-0.07-0.47-0.11-0.71-0.12c-0.61-0.08-1.22,0.11-1.68,0.51c-0.13-0.24-0.2-0.51-0.21-0.79\nc0.01-0.11,0.06-0.22,0.14-0.3c0.08-0.06,0.18-0.08,0.28-0.07l0,0c0.82,0.02,1.64,0.1,2.45,0.24l0,0l0,0\nc0.88-1.15,1.64-2.38,2.28-3.68c0.12-0.05,0.25-0.07,0.38-0.07c0.35,0,0.44,0.24,0.54,0.59c-0.82,0.92-1.5,1.96-2,3.09\nM7.78,6.87c0.08-1.36,0.7-2.62,1.72-3.52l0.32,0.07C9.06,4.19,8.6,5.19,8.51,6.26c0,2.56,2.73,4.78,5.82,4.78\nc0,0.22,0,0.45,0,0.69c-0.01,0.35,0,0.69,0.03,1.04c-3.5,0-6.58-2.86-6.58-5.92 M31.25,12.23c1.57,2.49,2.8,2.45,4.66,2.45\nc-1.19-0.97-2.21-2.14-3-3.46L30,6.65c-0.29-1.44-1.03-2.75-2.12-3.73c0.31-0.1,0.6-0.24,0.87-0.42c-1.88,0-3.73-1-4.75-1\nc-0.55-0.05-1.03,0.36-1.08,0.91c0,0.58,0.63,1.16,1.73,1.16c0.31,0,0.62-0.04,0.92-0.09c0.65,0.74,1.03,1.67,1.08,2.65\nc0,2-2.41,3.58-4.83,3.58h-0.41c-0.5-0.67-0.84-1.45-1-2.28c0-1.6,1.05-2.9,1.05-4.48c0-0.68-0.24-1.33-0.67-1.85\nc0.29-0.23,0.53-0.52,0.7-0.85c-0.22,0.08-0.45,0.11-0.68,0.09c-1.16,0-2.11-0.3-3-0.3c-0.53,0-0.67,0.16-0.67,0.31\nc-0.01,0.05-0.01,0.1,0,0.15c-0.19-0.08-0.39-0.13-0.59-0.17c-0.29-0.05-0.58-0.08-0.88-0.08c-1.13,0-1.52,0.47-1.52,0.87\nc0.07,0.52,0.27,1.01,0.57,1.44c0.4-0.2,0.84-0.31,1.28-0.34c0.6,0,1.13,0.57,1.41,1.24c-0.29,0.05-0.59,0.07-0.88,0.07\nc-0.68-0.03-1.36-0.16-2-0.39l0,0c0,0,0.31,0.56,0.92,0.78c0.72,0.22,1.46,0.37,2.21,0.45c-0.08,0.21-0.23,0.38-0.43,0.49\nc-0.05,0.02-0.09,0.02-0.14,0c-0.74-0.14-1.45-0.35-2.14-0.65H14.9c0,0.42,1.09,1.35,2.07,1.71c-1.06,1.1-1.87,2.41-2.39,3.85\nh-0.41c-2.42,0-4.82-1.57-4.82-3.58c0.05-0.98,0.43-1.91,1.07-2.65c0.3,0.05,0.61,0.09,0.92,0.09c1.1,0,1.69-0.58,1.74-1.16\nc-0.04-0.55-0.52-0.96-1.07-0.92c0,0,0,0-0.01,0c-1,0-2.88,1-4.76,1C7.51,2.73,7.8,2.87,8.11,2.97C7.03,3.94,6.29,5.23,6,6.65\nl-2.87,4.59c-0.79,1.32-1.81,2.49-3,3.46c1.86,0,3.09,0,4.66-2.45L6.26,9.9c0.11,0.31,0.24,0.61,0.4,0.9l-2.97,4.67\nc-0.79,1.32-1.8,2.49-3,3.46c1.85,0,3.08,0,4.65-2.44l2.52-4c0.19,0.2,0.39,0.4,0.6,0.58l-3.59,5.7c-0.79,1.32-1.8,2.49-3,3.45\nc1.85,0,3.08,0.05,4.65-2.44L10,14.2c0.22,0.14,0.46,0.28,0.7,0.41l-4.27,6.77c-0.79,1.31-1.81,2.48-3,3.45\nc1.85,0,3.08,0,4.65-2.44l4.36-7c0.25,0.1,0.51,0.2,0.78,0.28l-4.95,7.9c-0.79,1.31-1.81,2.48-3,3.45c1.85,0,3.08,0.05,4.65-2.43\nl5.24-8.39h0.16c0.14,0.42,0.22,0.86,0.24,1.3c0,2.64-1.73,5-3.8,6.76c0.19,0.06,0.38,0.09,0.58,0.08c0.3,0.01,0.6-0.01,0.9-0.05\nc-0.57,1.13-1.24,2.21-2,3.23c-0.77-0.13-1.54-0.2-2.32-0.22c-0.67,0-0.75,0.4-0.75,0.75c-0.01,0.53,0.22,1.03,0.62,1.38\nc0.13-0.31,0.38-0.73,1.63-0.73h0.13C10.11,29.13,9,30.06,9,30.77c0.06,0.66,0.59,1.18,1.25,1.24c-0.02-0.14-0.02-0.28,0-0.42\nc0.13-0.69,0.48-1.33,1-1.8c-0.01,0.1-0.01,0.2,0,0.3c0,1.43,0.13,2.08,1,2.08c0.31-0.01,0.61-0.12,0.86-0.31\nc-0.5-0.44-0.73-1.11-0.62-1.77c0-0.21,0-0.41,0-0.69c0.02-0.2,0.02-0.41,0-0.61c0.24-0.02,0.47-0.02,0.71,0\nc0,0,1.29-0.1,1.6,0.57c0.35-0.32,0.86-0.78,0.86-1.27c0-0.33-0.16-0.71-0.83-0.71c-0.25,0-1,0.16-1.7,0.16\nc0.48-0.84,1.04-1.64,1.66-2.39c0.1,0.39,0.31,0.74,0.62,1c0.12-1.17,0.54-2.28,1.21-3.24c0.16,0.93,0.24,1.87,0.23,2.82\nc0,3.55-0.85,6.17-2.66,6.67c0.26,0.46,0.73,0.75,1.25,0.78c0.66,0,1-0.75,1.39-1.46c0.19,0.53,0.72,1.8,1.25,1.8\ns1.06-1.27,1.25-1.8c0.37,0.71,0.73,1.46,1.39,1.46c0.52-0.03,1-0.33,1.26-0.78c-1.82-0.5-2.67-3.12-2.67-6.67\nc-0.01-0.95,0.07-1.89,0.23-2.82c0.68,0.96,1.1,2.07,1.21,3.24c0.31-0.26,0.53-0.61,0.63-1c0.61,0.75,1.15,1.54,1.62,2.38\nc-0.66,0-1.45-0.16-1.7-0.16c-0.67,0-0.82,0.38-0.82,0.71c0,0.49,0.51,1,0.86,1.27c0.3-0.67,1.59-0.57,1.59-0.57\nc0.24-0.02,0.47-0.02,0.71,0c-0.02,0.2-0.02,0.41,0,0.61v0.69c0.11,0.66-0.12,1.33-0.62,1.77c0.25,0.19,0.55,0.3,0.86,0.31\nc0.91,0,1-0.65,1-2.08c0.01-0.1,0.01-0.2,0-0.3c0.52,0.47,0.87,1.11,1,1.8c0.02,0.14,0.02,0.28,0,0.42\nc0.61-0.11,1.06-0.62,1.12-1.23c0-0.74-1.15-1.67-1.52-2.08h0.13c1.25,0,1.5,0.42,1.63,0.73c0.4-0.35,0.63-0.85,0.62-1.38\nc0-0.35-0.07-0.75-0.75-0.75c-0.78,0.02-1.55,0.09-2.32,0.22c-0.76-1.02-1.43-2.1-2-3.23c0.3,0.04,0.6,0.06,0.9,0.05\nc0.19,0.01,0.39-0.02,0.57-0.08c-2.07-1.79-3.8-4.12-3.8-6.76c0.02-0.44,0.1-0.88,0.24-1.3h0.16l5.24,8.39\nc1.57,2.48,2.8,2.43,4.65,2.43c-1.19-0.97-2.21-2.14-3-3.45l-4.92-7.87c0.27-0.08,0.53-0.18,0.79-0.28l4.35,7\nc1.57,2.48,2.8,2.44,4.65,2.44c-1.19-0.97-2.21-2.14-3-3.45l-4.23-6.77c0.24-0.13,0.48-0.27,0.7-0.41l3.42,5.55\nc1.57,2.49,2.8,2.44,4.65,2.44c-1.19-0.97-2.21-2.13-3-3.45l-3.55-5.69c0.2-0.18,0.4-0.38,0.59-0.58l2.52,4\nc1.57,2.48,2.8,2.44,4.65,2.44c-1.2-0.97-2.21-2.14-3-3.46l-2.99-4.7c0.16-0.29,0.29-0.59,0.4-0.9L31.25,12.23z\"\n\t></path>\n);\n\n@Component({\n\ttag: 'kol-logo',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolLogo implements API {\n\t/**\n\t * Gibt die Abkürzung eines Ministeriums, eines Amts oder einer Bundesanstalt an.\n\t */\n\t@Prop() public _org!: Bundesministerium | Bundesamt | Bundesanstalt;\n\n\t@State() public state: States = {\n\t\t_org: Bundesanstalt['Informationstechnikzentrum Bund'],\n\t};\n\n\t@Watch('_org')\n\tpublic validateOrg(value?: Bundesministerium | Bundesamt | Bundesanstalt): void {\n\t\tif (typeof value === 'string' && ENUM_AS_MAP.has(value)) {\n\t\t\tsetState(this, '_org', value);\n\t\t} else {\n\t\t\tdevHint(`Die verwendete Abkürzung (${value as string}) ist nicht definiert!`);\n\t\t}\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateOrg(this._org);\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-logo\">\n\t\t\t\t<svg\n\t\t\t\t\taria-label={translate('kol-logo-description', { placeholders: { orgShort: this.state._org, orgLong: getAriaLabel(this.state._org) } })}\n\t\t\t\t\trole=\"img\"\n\t\t\t\t\tviewBox=\"0 0 225 100\"\n\t\t\t\t>\n\t\t\t\t\t<rect width=\"100%\" height=\"100%\" fill=\"white\"></rect>\n\t\t\t\t\t<svg x=\"0\" y=\"4\" height=\"75\">\n\t\t\t\t\t\t<Adler />\n\t\t\t\t\t</svg>\n\t\t\t\t\t<svg x=\"40.5\" y=\"3.5\" height=\"100\">\n\t\t\t\t\t\t<rect width=\"5\" height=\"30\"></rect>\n\t\t\t\t\t\t<rect y=\"30\" width=\"5\" height=\"30\" fill=\"red\"></rect>\n\t\t\t\t\t\t<rect y=\"60\" width=\"5\" height=\"30\" fill=\"#fc0\"></rect>\n\t\t\t\t\t</svg>\n\t\t\t\t\t<svg x=\"50\" y=\"0\">\n\t\t\t\t\t\t<text x=\"0\" y=\"-0.05em\" font-family=\"BundesSans Web\" style={{ backgroundColor: 'white', color: 'black' }}>\n\t\t\t\t\t\t\t{BUND_LOGO_TEXT_MAP.has(this.state._org) ? (\n\t\t\t\t\t\t\t\t<tspan>\n\t\t\t\t\t\t\t\t\t{BUND_LOGO_TEXT_MAP.get(this.state._org)?.map((text: string, index: number) => {\n\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t<tspan x=\"0\" dy=\"1.1em\" key={`kol-logo-text-${index}`}>\n\t\t\t\t\t\t\t\t\t\t\t\t{text}\n\t\t\t\t\t\t\t\t\t\t\t</tspan>\n\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\t</tspan>\n\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t<tspan fill=\"red\">\n\t\t\t\t\t\t\t\t\t<tspan x=\"0\" dy=\"1.1em\">\n\t\t\t\t\t\t\t\t\t\tDer Schlüsselwert\n\t\t\t\t\t\t\t\t\t</tspan>\n\t\t\t\t\t\t\t\t\t<tspan x=\"0\" dy=\"1.1em\" font-weight=\"bold\">\n\t\t\t\t\t\t\t\t\t\t'{this.state._org}'\n\t\t\t\t\t\t\t\t\t</tspan>\n\t\t\t\t\t\t\t\t\t<tspan x=\"0\" dy=\"1.1em\">\n\t\t\t\t\t\t\t\t\t\tist nicht definiert.\n\t\t\t\t\t\t\t\t\t</tspan>\n\t\t\t\t\t\t\t\t\t<tspan x=\"0\" dy=\"1.1em\">\n\t\t\t\t\t\t\t\t\t\toder freigegeben.\n\t\t\t\t\t\t\t\t\t</tspan>\n\t\t\t\t\t\t\t\t</tspan>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</text>\n\t\t\t\t\t</svg>\n\t\t\t\t</svg>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"mappings":";;;mOAAA,MAAMA,EAAkB,yyIACxB,MAAAC,EAAeD,ECOf,SAASE,EAAYC,EAAqCC,EAAiC,IAAIC,KAC9FC,OAAOC,QAAQJ,GAAaK,KAAI,EAAEC,EAAKC,MACtCN,EAAUO,IAAID,EAAOD,EAAI,IAE1B,OAAOL,CACR,CAEA,MAAMQ,EAAcV,EAAYW,EAAWX,EAAYY,EAAeZ,EAAYa,KAElF,SAASC,EAAaC,GACrB,GAAIL,EAAYM,IAAID,GAAQ,CAC3B,OAAOL,EAAYO,IAAIF,E,KACjB,CACN,MAAO,E,CAET,CAEA,MAAMG,EAAQ,IACbC,EAAA,QACCC,EAAE,slM,MAiESC,EAAO,M,wDAMa,CAC/BC,KAAMV,EAAc,mC,CAId,WAAAW,CAAYf,GAClB,UAAWA,IAAU,UAAYE,EAAYM,IAAIR,GAAQ,CACxDgB,EAASC,KAAM,OAAQjB,E,KACjB,CACNkB,EAAQ,6BAA6BlB,0B,EAIhC,iBAAAmB,GACNF,KAAKF,YAAYE,KAAKH,K,CAGhB,MAAAM,G,MACN,OACCT,EAACU,EAAI,CAAAtB,IAAA,2CAACuB,MAAM,YACXX,EAAA,OAAAZ,IAAA,wDACawB,EAAU,uBAAwB,CAAEC,aAAc,CAAEC,SAAUR,KAAKS,MAAMZ,KAAMa,QAASrB,EAAaW,KAAKS,MAAMZ,SAC5Hc,KAAK,MACLC,QAAQ,eAERlB,EAAA,QAAAZ,IAAA,2CAAM+B,MAAM,OAAOC,OAAO,OAAOC,KAAK,UACtCrB,EAAA,OAAAZ,IAAA,2CAAKkC,EAAE,IAAIC,EAAE,IAAIH,OAAO,MACvBpB,EAACD,EAAK,CAAAX,IAAA,8CAEPY,EAAA,OAAAZ,IAAA,2CAAKkC,EAAE,OAAOC,EAAE,MAAMH,OAAO,OAC5BpB,EAAA,QAAAZ,IAAA,2CAAM+B,MAAM,IAAIC,OAAO,OACvBpB,EAAA,QAAAZ,IAAA,2CAAMmC,EAAE,KAAKJ,MAAM,IAAIC,OAAO,KAAKC,KAAK,QACxCrB,EAAA,QAAAZ,IAAA,2CAAMmC,EAAE,KAAKJ,MAAM,IAAIC,OAAO,KAAKC,KAAK,UAEzCrB,EAAA,OAAAZ,IAAA,2CAAKkC,EAAE,KAAKC,EAAE,KACbvB,EAAA,QAAAZ,IAAA,2CAAMkC,EAAE,IAAIC,EAAE,UAAS,cAAa,iBAAiBC,MAAO,CAAEC,gBAAiB,QAASC,MAAO,UAC7FC,EAAmB9B,IAAIS,KAAKS,MAAMZ,MAClCH,EAAA,cACE4B,EAAAD,EAAmB7B,IAAIQ,KAAKS,MAAMZ,SAAK,MAAAyB,SAAA,SAAAA,EAAEzC,KAAI,CAAC0C,EAAcC,IAE3D9B,EAAA,SAAOsB,EAAE,IAAIS,GAAG,QAAQ3C,IAAK,iBAAiB0C,KAC5CD,MAML7B,EAAA,SAAOqB,KAAK,OACXrB,EAAA,SAAOsB,EAAE,IAAIS,GAAG,SAAO,qBAGvB/B,EAAA,SAAOsB,EAAE,IAAIS,GAAG,QAAO,cAAa,QAAM,IACvCzB,KAAKS,MAAMZ,KAAI,KAElBH,EAAA,SAAOsB,EAAE,IAAIS,GAAG,SAAO,wBAGvB/B,EAAA,SAAOsB,EAAE,IAAIS,GAAG,SAAO,yB"}
1
+ {"version":3,"names":["defaultStyleCss","KolLogoDefaultStyle0","enumToArray","enumeration","enumAsMap","Map","Object","entries","map","key","value","set","ENUM_AS_MAP","Bundesamt","Bundesanstalt","Bundesministerium","getAriaLabel","organ","has","get","Adler","h","d","KolLogo","_org","validateOrg","setState","this","devHint","componentWillLoad","render","Host","class","translate","placeholders","orgShort","state","orgLong","role","viewBox","width","height","fill","x","y","style","backgroundColor","color","BUND_LOGO_TEXT_MAP","_a","text","index","dy"],"sources":["src/components/logo/style.scss?tag=kol-logo&mode=default&encapsulation=shadow","src/components/logo/component.tsx"],"sourcesContent":["@import '../@shared/mixins';\n@import '../style';\n\n@layer kol-component {\n\t:host {\n\t\tdisplay: inline-block;\n\t\tfont-size: rem(16);\n\t}\n\n\ttext {\n\t\tfont-size: 16px;\n\t\tletter-spacing: normal;\n\t\tword-spacing: normal;\n\t}\n\n\tsvg {\n\t\tmax-height: 100%;\n\t}\n}\n","import type { JSX } from '@stencil/core';\nimport { devHint, setState } from '../../schema';\nimport { Component, h, Host, Prop, State, Watch } from '@stencil/core';\n\nimport { BUND_LOGO_TEXT_MAP, Bundesamt, Bundesanstalt, Bundesministerium } from '../../enums/bund';\nimport { translate } from '../../i18n';\n\nimport type { API, States } from './types';\nfunction enumToArray(enumeration: Record<string, string>, enumAsMap: Map<string, string> = new Map()): Map<string, string> {\n\tObject.entries(enumeration).map(([key, value]) => {\n\t\tenumAsMap.set(value, key);\n\t});\n\treturn enumAsMap;\n}\n\nconst ENUM_AS_MAP = enumToArray(Bundesamt, enumToArray(Bundesanstalt, enumToArray(Bundesministerium)));\n\nfunction getAriaLabel(organ: string): string {\n\tif (ENUM_AS_MAP.has(organ)) {\n\t\treturn ENUM_AS_MAP.get(organ) as string;\n\t} else {\n\t\treturn '';\n\t}\n}\n\nconst Adler = (): JSX.Element => (\n\t<path\n\t\td=\"M21.72,12.77c0.04-0.33,0.06-0.67,0.06-1c0-0.2,0-0.43,0-0.69c3.06,0,5.74-2.25,5.74-4.78\nc-0.09-1.07-0.56-2.08-1.32-2.84l0.32-0.07c1,0.89,1.61,2.14,1.7,3.48c0,3-3,5.85-6.5,5.92 M18.64,2.21\nc-0.05-0.33-0.19-0.64-0.39-0.91c0-0.31,0.14-0.61,0.64-0.36c-0.27,0.27-0.06,0.76-0.06,0.76s0.55-0.26,0.44-0.62\nC20.09,1.28,19.5,2.38,18.64,2.21 M17.93,3.77c-0.12-0.47-0.34-0.9-0.64-1.27c-0.3-0.42-0.77-0.69-1.29-0.73\nc-0.34,0.03-0.68,0.12-1,0.25c-0.16-0.28-0.27-0.58-0.32-0.9c0-0.22,0.38-0.44,1.1-0.44c1.58,0,2.52,0.71,2.52,1.91\nC18.26,3.01,18.14,3.41,17.93,3.77 M22,24.16c0.13,0,0.26,0.02,0.38,0.07c0.64,1.3,1.4,2.53,2.29,3.68l0,0l0,0\nc0.81-0.14,1.63-0.22,2.45-0.24l0,0c0.1-0.01,0.2,0.01,0.28,0.07c0.07,0.09,0.1,0.2,0.09,0.31c-0.01,0.28-0.08,0.55-0.21,0.79\nc-0.46-0.4-1.07-0.59-1.68-0.51c-0.24,0.01-0.48,0.05-0.71,0.12h-0.07h-0.07l0.48,0.49c0.77,0.83,1.44,1.43,1.44,1.83\nc-0.04,0.31-0.22,0.58-0.48,0.74c-0.22-0.98-0.8-1.84-1.62-2.42h-0.06v0.27c0,0.19,0,0.47,0,0.77c0,1.49-0.15,1.72-0.67,1.72\nc-0.09,0.01-0.19,0.01-0.28,0c0.33-0.49,0.48-1.08,0.41-1.67v-0.7c0-0.27,0.03-0.53,0.06-0.8v-0.11h-0.08\nc-0.33-0.05-0.67-0.09-1-0.1c-0.57-0.07-1.14,0.07-1.6,0.41c-0.24-0.18-0.41-0.44-0.48-0.73c0-0.32,0.19-0.34,0.45-0.34\nc0.14-0.01,0.27-0.01,0.41,0c0.59,0.09,1.18,0.13,1.78,0.12h0.06v-0.06c-0.5-1.13-1.18-2.17-2-3.09c0.1-0.35,0.2-0.59,0.54-0.59\nM12.64,27.87v0.06h0.06c0.55-0.01,1.1-0.06,1.64-0.16c0.14-0.01,0.27-0.01,0.41,0c0.26,0,0.45,0,0.45,0.34\nc-0.07,0.29-0.24,0.55-0.48,0.73c-0.46-0.34-1.03-0.49-1.6-0.41c-0.33,0.01-0.67,0.05-1,0.1H12v0.11\nc0.03,0.27,0.06,0.53,0.06,0.8v0.7c-0.05,0.58,0.1,1.15,0.42,1.63c-0.09,0.01-0.19,0.01-0.28,0c-0.52,0-0.67-0.23-0.67-1.72\nc0-0.3,0-0.58,0-0.77V29l-0.06,0.05c-0.82,0.58-1.39,1.44-1.61,2.42c-0.28-0.14-0.47-0.4-0.53-0.7c0-0.43,0.65-1.07,1.39-1.81\nl0.43-0.43v-0.06h-0.14c-0.23-0.07-0.47-0.11-0.71-0.12c-0.61-0.08-1.22,0.11-1.68,0.51c-0.13-0.24-0.2-0.51-0.21-0.79\nc0.01-0.11,0.06-0.22,0.14-0.3c0.08-0.06,0.18-0.08,0.28-0.07l0,0c0.82,0.02,1.64,0.1,2.45,0.24l0,0l0,0\nc0.88-1.15,1.64-2.38,2.28-3.68c0.12-0.05,0.25-0.07,0.38-0.07c0.35,0,0.44,0.24,0.54,0.59c-0.82,0.92-1.5,1.96-2,3.09\nM7.78,6.87c0.08-1.36,0.7-2.62,1.72-3.52l0.32,0.07C9.06,4.19,8.6,5.19,8.51,6.26c0,2.56,2.73,4.78,5.82,4.78\nc0,0.22,0,0.45,0,0.69c-0.01,0.35,0,0.69,0.03,1.04c-3.5,0-6.58-2.86-6.58-5.92 M31.25,12.23c1.57,2.49,2.8,2.45,4.66,2.45\nc-1.19-0.97-2.21-2.14-3-3.46L30,6.65c-0.29-1.44-1.03-2.75-2.12-3.73c0.31-0.1,0.6-0.24,0.87-0.42c-1.88,0-3.73-1-4.75-1\nc-0.55-0.05-1.03,0.36-1.08,0.91c0,0.58,0.63,1.16,1.73,1.16c0.31,0,0.62-0.04,0.92-0.09c0.65,0.74,1.03,1.67,1.08,2.65\nc0,2-2.41,3.58-4.83,3.58h-0.41c-0.5-0.67-0.84-1.45-1-2.28c0-1.6,1.05-2.9,1.05-4.48c0-0.68-0.24-1.33-0.67-1.85\nc0.29-0.23,0.53-0.52,0.7-0.85c-0.22,0.08-0.45,0.11-0.68,0.09c-1.16,0-2.11-0.3-3-0.3c-0.53,0-0.67,0.16-0.67,0.31\nc-0.01,0.05-0.01,0.1,0,0.15c-0.19-0.08-0.39-0.13-0.59-0.17c-0.29-0.05-0.58-0.08-0.88-0.08c-1.13,0-1.52,0.47-1.52,0.87\nc0.07,0.52,0.27,1.01,0.57,1.44c0.4-0.2,0.84-0.31,1.28-0.34c0.6,0,1.13,0.57,1.41,1.24c-0.29,0.05-0.59,0.07-0.88,0.07\nc-0.68-0.03-1.36-0.16-2-0.39l0,0c0,0,0.31,0.56,0.92,0.78c0.72,0.22,1.46,0.37,2.21,0.45c-0.08,0.21-0.23,0.38-0.43,0.49\nc-0.05,0.02-0.09,0.02-0.14,0c-0.74-0.14-1.45-0.35-2.14-0.65H14.9c0,0.42,1.09,1.35,2.07,1.71c-1.06,1.1-1.87,2.41-2.39,3.85\nh-0.41c-2.42,0-4.82-1.57-4.82-3.58c0.05-0.98,0.43-1.91,1.07-2.65c0.3,0.05,0.61,0.09,0.92,0.09c1.1,0,1.69-0.58,1.74-1.16\nc-0.04-0.55-0.52-0.96-1.07-0.92c0,0,0,0-0.01,0c-1,0-2.88,1-4.76,1C7.51,2.73,7.8,2.87,8.11,2.97C7.03,3.94,6.29,5.23,6,6.65\nl-2.87,4.59c-0.79,1.32-1.81,2.49-3,3.46c1.86,0,3.09,0,4.66-2.45L6.26,9.9c0.11,0.31,0.24,0.61,0.4,0.9l-2.97,4.67\nc-0.79,1.32-1.8,2.49-3,3.46c1.85,0,3.08,0,4.65-2.44l2.52-4c0.19,0.2,0.39,0.4,0.6,0.58l-3.59,5.7c-0.79,1.32-1.8,2.49-3,3.45\nc1.85,0,3.08,0.05,4.65-2.44L10,14.2c0.22,0.14,0.46,0.28,0.7,0.41l-4.27,6.77c-0.79,1.31-1.81,2.48-3,3.45\nc1.85,0,3.08,0,4.65-2.44l4.36-7c0.25,0.1,0.51,0.2,0.78,0.28l-4.95,7.9c-0.79,1.31-1.81,2.48-3,3.45c1.85,0,3.08,0.05,4.65-2.43\nl5.24-8.39h0.16c0.14,0.42,0.22,0.86,0.24,1.3c0,2.64-1.73,5-3.8,6.76c0.19,0.06,0.38,0.09,0.58,0.08c0.3,0.01,0.6-0.01,0.9-0.05\nc-0.57,1.13-1.24,2.21-2,3.23c-0.77-0.13-1.54-0.2-2.32-0.22c-0.67,0-0.75,0.4-0.75,0.75c-0.01,0.53,0.22,1.03,0.62,1.38\nc0.13-0.31,0.38-0.73,1.63-0.73h0.13C10.11,29.13,9,30.06,9,30.77c0.06,0.66,0.59,1.18,1.25,1.24c-0.02-0.14-0.02-0.28,0-0.42\nc0.13-0.69,0.48-1.33,1-1.8c-0.01,0.1-0.01,0.2,0,0.3c0,1.43,0.13,2.08,1,2.08c0.31-0.01,0.61-0.12,0.86-0.31\nc-0.5-0.44-0.73-1.11-0.62-1.77c0-0.21,0-0.41,0-0.69c0.02-0.2,0.02-0.41,0-0.61c0.24-0.02,0.47-0.02,0.71,0\nc0,0,1.29-0.1,1.6,0.57c0.35-0.32,0.86-0.78,0.86-1.27c0-0.33-0.16-0.71-0.83-0.71c-0.25,0-1,0.16-1.7,0.16\nc0.48-0.84,1.04-1.64,1.66-2.39c0.1,0.39,0.31,0.74,0.62,1c0.12-1.17,0.54-2.28,1.21-3.24c0.16,0.93,0.24,1.87,0.23,2.82\nc0,3.55-0.85,6.17-2.66,6.67c0.26,0.46,0.73,0.75,1.25,0.78c0.66,0,1-0.75,1.39-1.46c0.19,0.53,0.72,1.8,1.25,1.8\ns1.06-1.27,1.25-1.8c0.37,0.71,0.73,1.46,1.39,1.46c0.52-0.03,1-0.33,1.26-0.78c-1.82-0.5-2.67-3.12-2.67-6.67\nc-0.01-0.95,0.07-1.89,0.23-2.82c0.68,0.96,1.1,2.07,1.21,3.24c0.31-0.26,0.53-0.61,0.63-1c0.61,0.75,1.15,1.54,1.62,2.38\nc-0.66,0-1.45-0.16-1.7-0.16c-0.67,0-0.82,0.38-0.82,0.71c0,0.49,0.51,1,0.86,1.27c0.3-0.67,1.59-0.57,1.59-0.57\nc0.24-0.02,0.47-0.02,0.71,0c-0.02,0.2-0.02,0.41,0,0.61v0.69c0.11,0.66-0.12,1.33-0.62,1.77c0.25,0.19,0.55,0.3,0.86,0.31\nc0.91,0,1-0.65,1-2.08c0.01-0.1,0.01-0.2,0-0.3c0.52,0.47,0.87,1.11,1,1.8c0.02,0.14,0.02,0.28,0,0.42\nc0.61-0.11,1.06-0.62,1.12-1.23c0-0.74-1.15-1.67-1.52-2.08h0.13c1.25,0,1.5,0.42,1.63,0.73c0.4-0.35,0.63-0.85,0.62-1.38\nc0-0.35-0.07-0.75-0.75-0.75c-0.78,0.02-1.55,0.09-2.32,0.22c-0.76-1.02-1.43-2.1-2-3.23c0.3,0.04,0.6,0.06,0.9,0.05\nc0.19,0.01,0.39-0.02,0.57-0.08c-2.07-1.79-3.8-4.12-3.8-6.76c0.02-0.44,0.1-0.88,0.24-1.3h0.16l5.24,8.39\nc1.57,2.48,2.8,2.43,4.65,2.43c-1.19-0.97-2.21-2.14-3-3.45l-4.92-7.87c0.27-0.08,0.53-0.18,0.79-0.28l4.35,7\nc1.57,2.48,2.8,2.44,4.65,2.44c-1.19-0.97-2.21-2.14-3-3.45l-4.23-6.77c0.24-0.13,0.48-0.27,0.7-0.41l3.42,5.55\nc1.57,2.49,2.8,2.44,4.65,2.44c-1.19-0.97-2.21-2.13-3-3.45l-3.55-5.69c0.2-0.18,0.4-0.38,0.59-0.58l2.52,4\nc1.57,2.48,2.8,2.44,4.65,2.44c-1.2-0.97-2.21-2.14-3-3.46l-2.99-4.7c0.16-0.29,0.29-0.59,0.4-0.9L31.25,12.23z\"\n\t></path>\n);\n\n@Component({\n\ttag: 'kol-logo',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolLogo implements API {\n\t/**\n\t * Gibt die Abkürzung eines Ministeriums, eines Amts oder einer Bundesanstalt an.\n\t */\n\t@Prop() public _org!: Bundesministerium | Bundesamt | Bundesanstalt;\n\n\t@State() public state: States = {\n\t\t_org: Bundesanstalt['Informationstechnikzentrum Bund'],\n\t};\n\n\t@Watch('_org')\n\tpublic validateOrg(value?: Bundesministerium | Bundesamt | Bundesanstalt): void {\n\t\tif (typeof value === 'string' && ENUM_AS_MAP.has(value)) {\n\t\t\tsetState(this, '_org', value);\n\t\t} else {\n\t\t\tdevHint(`Die verwendete Abkürzung (${value as string}) ist nicht definiert!`);\n\t\t}\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateOrg(this._org);\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-logo\">\n\t\t\t\t<svg\n\t\t\t\t\taria-label={translate('kol-logo-description', { placeholders: { orgShort: this.state._org, orgLong: getAriaLabel(this.state._org) } })}\n\t\t\t\t\trole=\"img\"\n\t\t\t\t\tviewBox=\"0 0 225 100\"\n\t\t\t\t>\n\t\t\t\t\t<rect width=\"100%\" height=\"100%\" fill=\"white\"></rect>\n\t\t\t\t\t<svg x=\"0\" y=\"4\" height=\"75\">\n\t\t\t\t\t\t<Adler />\n\t\t\t\t\t</svg>\n\t\t\t\t\t<svg x=\"40.5\" y=\"3.5\" height=\"100\">\n\t\t\t\t\t\t<rect width=\"5\" height=\"30\"></rect>\n\t\t\t\t\t\t<rect y=\"30\" width=\"5\" height=\"30\" fill=\"red\"></rect>\n\t\t\t\t\t\t<rect y=\"60\" width=\"5\" height=\"30\" fill=\"#fc0\"></rect>\n\t\t\t\t\t</svg>\n\t\t\t\t\t<svg x=\"50\" y=\"0\">\n\t\t\t\t\t\t<text x=\"0\" y=\"-0.05em\" font-family=\"BundesSans Web\" style={{ backgroundColor: 'white', color: 'black' }}>\n\t\t\t\t\t\t\t{BUND_LOGO_TEXT_MAP.has(this.state._org) ? (\n\t\t\t\t\t\t\t\t<tspan>\n\t\t\t\t\t\t\t\t\t{BUND_LOGO_TEXT_MAP.get(this.state._org)?.map((text: string, index: number) => {\n\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t<tspan x=\"0\" dy=\"1.1em\" key={`kol-logo-text-${index}`}>\n\t\t\t\t\t\t\t\t\t\t\t\t{text}\n\t\t\t\t\t\t\t\t\t\t\t</tspan>\n\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\t</tspan>\n\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t<tspan fill=\"red\">\n\t\t\t\t\t\t\t\t\t<tspan x=\"0\" dy=\"1.1em\">\n\t\t\t\t\t\t\t\t\t\tDer Schlüsselwert\n\t\t\t\t\t\t\t\t\t</tspan>\n\t\t\t\t\t\t\t\t\t<tspan x=\"0\" dy=\"1.1em\" font-weight=\"bold\">\n\t\t\t\t\t\t\t\t\t\t'{this.state._org}'\n\t\t\t\t\t\t\t\t\t</tspan>\n\t\t\t\t\t\t\t\t\t<tspan x=\"0\" dy=\"1.1em\">\n\t\t\t\t\t\t\t\t\t\tist nicht definiert.\n\t\t\t\t\t\t\t\t\t</tspan>\n\t\t\t\t\t\t\t\t\t<tspan x=\"0\" dy=\"1.1em\">\n\t\t\t\t\t\t\t\t\t\toder freigegeben.\n\t\t\t\t\t\t\t\t\t</tspan>\n\t\t\t\t\t\t\t\t</tspan>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</text>\n\t\t\t\t\t</svg>\n\t\t\t\t</svg>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"mappings":";;;gUAAA,MAAMA,EAAkB,yyIACxB,MAAAC,EAAeD,ECOf,SAASE,EAAYC,EAAqCC,EAAiC,IAAIC,KAC9FC,OAAOC,QAAQJ,GAAaK,KAAI,EAAEC,EAAKC,MACtCN,EAAUO,IAAID,EAAOD,EAAI,IAE1B,OAAOL,CACR,CAEA,MAAMQ,EAAcV,EAAYW,EAAWX,EAAYY,EAAeZ,EAAYa,KAElF,SAASC,EAAaC,GACrB,GAAIL,EAAYM,IAAID,GAAQ,CAC3B,OAAOL,EAAYO,IAAIF,E,KACjB,CACN,MAAO,E,CAET,CAEA,MAAMG,EAAQ,IACbC,EAAA,QACCC,EAAE,slM,MAiESC,EAAO,M,wDAMa,CAC/BC,KAAMV,EAAc,mC,CAId,WAAAW,CAAYf,GAClB,UAAWA,IAAU,UAAYE,EAAYM,IAAIR,GAAQ,CACxDgB,EAASC,KAAM,OAAQjB,E,KACjB,CACNkB,EAAQ,6BAA6BlB,0B,EAIhC,iBAAAmB,GACNF,KAAKF,YAAYE,KAAKH,K,CAGhB,MAAAM,G,MACN,OACCT,EAACU,EAAI,CAAAtB,IAAA,2CAACuB,MAAM,YACXX,EAAA,OAAAZ,IAAA,wDACawB,EAAU,uBAAwB,CAAEC,aAAc,CAAEC,SAAUR,KAAKS,MAAMZ,KAAMa,QAASrB,EAAaW,KAAKS,MAAMZ,SAC5Hc,KAAK,MACLC,QAAQ,eAERlB,EAAA,QAAAZ,IAAA,2CAAM+B,MAAM,OAAOC,OAAO,OAAOC,KAAK,UACtCrB,EAAA,OAAAZ,IAAA,2CAAKkC,EAAE,IAAIC,EAAE,IAAIH,OAAO,MACvBpB,EAACD,EAAK,CAAAX,IAAA,8CAEPY,EAAA,OAAAZ,IAAA,2CAAKkC,EAAE,OAAOC,EAAE,MAAMH,OAAO,OAC5BpB,EAAA,QAAAZ,IAAA,2CAAM+B,MAAM,IAAIC,OAAO,OACvBpB,EAAA,QAAAZ,IAAA,2CAAMmC,EAAE,KAAKJ,MAAM,IAAIC,OAAO,KAAKC,KAAK,QACxCrB,EAAA,QAAAZ,IAAA,2CAAMmC,EAAE,KAAKJ,MAAM,IAAIC,OAAO,KAAKC,KAAK,UAEzCrB,EAAA,OAAAZ,IAAA,2CAAKkC,EAAE,KAAKC,EAAE,KACbvB,EAAA,QAAAZ,IAAA,2CAAMkC,EAAE,IAAIC,EAAE,UAAS,cAAa,iBAAiBC,MAAO,CAAEC,gBAAiB,QAASC,MAAO,UAC7FC,EAAmB9B,IAAIS,KAAKS,MAAMZ,MAClCH,EAAA,cACE4B,EAAAD,EAAmB7B,IAAIQ,KAAKS,MAAMZ,SAAK,MAAAyB,SAAA,SAAAA,EAAEzC,KAAI,CAAC0C,EAAcC,IAE3D9B,EAAA,SAAOsB,EAAE,IAAIS,GAAG,QAAQ3C,IAAK,iBAAiB0C,KAC5CD,MAML7B,EAAA,SAAOqB,KAAK,OACXrB,EAAA,SAAOsB,EAAE,IAAIS,GAAG,SAAO,qBAGvB/B,EAAA,SAAOsB,EAAE,IAAIS,GAAG,QAAO,cAAa,QAAM,IACvCzB,KAAKS,MAAMZ,KAAI,KAElBH,EAAA,SAAOsB,EAAE,IAAIS,GAAG,SAAO,wBAGvB/B,EAAA,SAAOsB,EAAE,IAAIS,GAAG,SAAO,yB"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as n,h as e,H as t}from"./index-3fbcceca.js";import{g as i,L as a,w as s,v as o,f as l,k as d,A as r}from"./index-44da6e7f.js";class h{constructor(){this.lockedElements=new Map,this.modalStack=new Map}lockElement(e){const n=e.getAttribute("tabindex");(e instanceof HTMLAnchorElement||e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||"string"==typeof n||void 0!==e.dataset.kolModal)&&("string"==typeof n?this.lockedElements.set(e,{tabIndex:n}):this.lockedElements.set(e,{}),e.setAttribute("tabindex","-1"),e.setAttribute("aria-hidden","true"),e.style.userSelect="none")}unlockElement(e,n){"string"==typeof e.tabIndex?n.setAttribute("tabindex",e.tabIndex):n.removeAttribute("tabindex"),n.removeAttribute("aria-hidden"),n.style.userSelect="unset",this.lockedElements.delete(n)}unlockLockedElements(e){e.forEach(this.unlockElement.bind(this))}lockFocus(e,n){try{if(e!==n&&(e instanceof HTMLElement||e instanceof ShadowRoot)){e instanceof HTMLElement&&(this.lockElement(e),this.lockFocus(e.shadowRoot,n));for(let t=0;t<e.children.length;t++)this.lockFocus(e.children[t],n)}}catch(e){}}renderModalIfExists(e){if(e instanceof HTMLElement){this.lockedElements.has(e)&&this.unlockElement(this.lockedElements.get(e),e);const n=setTimeout((()=>{clearTimeout(n),e.focus()}),500)}if(this.unlockLockedElements(this.lockedElements),this.modalStack.size>0){const e=Array.from(this.modalStack.keys()),n=e[e.length-1];this.modalStack.forEach(((e,t)=>{t.style.display=n===t?"inline":"none"})),i().body.style.maxHeight="100vh",i().body.style.overflow="hidden",this.lockFocus(i().body,n)}else i().body.style.maxHeight="unset",i().body.style.overflow="unset"}openModal(e,n){e instanceof HTMLElement==!1?a.warn("[KolModalService] Die DOM-Referenz des Modals ist nicht valide."):(this.modalStack.set(e,{activeElement:n}),this.renderModalIfExists())}closeModal(e){var n;if(e instanceof HTMLElement==!1)a.warn("[KolModalService] Die DOM-Referenz des Modals ist nicht valide.");else{const t=null===(n=this.modalStack.get(e))||void 0===n?void 0:n.activeElement;this.modalStack.delete(e),this.renderModalIfExists(t)}}}const c="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: 44px;\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of 44px.\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\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 clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .hidden {\n display: none;\n visibility: hidden;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .overlay {\n background-color: rgba(0, 0, 0, 0.33);\n display: flex;\n height: 100%;\n inset: 0;\n position: fixed;\n width: 100%;\n z-index: 100;\n }\n .modal {\n margin: auto;\n max-height: 100%;\n max-width: 100%;\n }\n}",f=c,u=new h,m=class{constructor(e){n(this,e),this.onKeyDown=e=>{e&&"Escape"===e.code&&(this._activeElement=null)},this._activeElement=void 0,this._label=void 0,this._on=void 0,this._width="100%",this.state={_activeElement:null,_label:"",_width:"100%"}}componentDidRender(){this.hostElement&&(this.state._activeElement?u.openModal(this.hostElement,this.state._activeElement):u.closeModal(this.hostElement))}disconnectedCallback(){this.hostElement&&u.closeModal(this.hostElement)}render(){return e(t,{key:"823d0d36a88aa730a81d73a9007d6d5a7866a1c0",class:"kol-modal",ref:e=>{this.hostElement=e}},this.state._activeElement&&e("div",{key:"1489545d109e0a82397291dbb582259e73dab952",class:"overlay"},e("div",{key:"ccc4f3ce8d91b922e89c708df5087af76a203c8d",class:"modal",style:{width:this.state._width},"aria-label":this.state._label,"aria-modal":"true",role:"dialog",onKeyDown:this.onKeyDown,ref:e=>{e&&(e.setAttribute("tabindex","0"),setTimeout((()=>e.focus()),250))}},e("slot",{key:"77a31b65806fae411401e7ce9963eeb3a6bfc975"}))))}validateActiveElement(e){s(this,"_activeElement",(e=>"object"==typeof e||null===e),new Set(["HTMLElement","null"]),e,{defaultValue:null,hooks:{afterPatch:()=>{var e;null===this._activeElement&&(null===(e=this.state._on)||void 0===e?void 0:e.onClose)&&this.state._on.onClose()}}})}validateLabel(e){o(this,e,{required:!0})}validateOn(e){if("object"==typeof e&&null!==e){l("[KolTabs] Prüfen, wie man auch einen EventCallback einzeln ändern kann.");const n={};"function"!=typeof e.onClose&&!0!==e.onClose||(n.onClose=e.onClose),d(this,"_on",n)}}validateWidth(e){r(this,"_width",e,{defaultValue:"100%"})}componentWillLoad(){this.validateActiveElement(this._activeElement),this.validateLabel(this._label),this.validateOn(this._on),this.validateWidth(this._width)}static get watchers(){return{_activeElement:["validateActiveElement"],_label:["validateLabel"],_on:["validateOn"],_width:["validateWidth"]}}};m.style={default:f};export{m as kol_modal};
4
+ import{r as n,h as e,H as t}from"./index-3fbcceca.js";import{g as i,L as a}from"./dev.utils-1ca991a2.js";import{w as o,f as s,s as l,i as d}from"./prop.validators-29d576d2.js";import{v as r}from"./label-e56ffdc6.js";import"./index-4a3076fc.js";class h{constructor(){this.lockedElements=new Map,this.modalStack=new Map}lockElement(e){const n=e.getAttribute("tabindex");(e instanceof HTMLAnchorElement||e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||"string"==typeof n||void 0!==e.dataset.kolModal)&&("string"==typeof n?this.lockedElements.set(e,{tabIndex:n}):this.lockedElements.set(e,{}),e.setAttribute("tabindex","-1"),e.setAttribute("aria-hidden","true"),e.style.userSelect="none")}unlockElement(e,n){"string"==typeof e.tabIndex?n.setAttribute("tabindex",e.tabIndex):n.removeAttribute("tabindex"),n.removeAttribute("aria-hidden"),n.style.userSelect="unset",this.lockedElements.delete(n)}unlockLockedElements(e){e.forEach(this.unlockElement.bind(this))}lockFocus(e,n){try{if(e!==n&&(e instanceof HTMLElement||e instanceof ShadowRoot)){e instanceof HTMLElement&&(this.lockElement(e),this.lockFocus(e.shadowRoot,n));for(let t=0;t<e.children.length;t++)this.lockFocus(e.children[t],n)}}catch(e){}}renderModalIfExists(e){if(e instanceof HTMLElement){this.lockedElements.has(e)&&this.unlockElement(this.lockedElements.get(e),e);const n=setTimeout((()=>{clearTimeout(n),e.focus()}),500)}if(this.unlockLockedElements(this.lockedElements),this.modalStack.size>0){const e=Array.from(this.modalStack.keys()),n=e[e.length-1];this.modalStack.forEach(((e,t)=>{t.style.display=n===t?"inline":"none"})),i().body.style.maxHeight="100vh",i().body.style.overflow="hidden",this.lockFocus(i().body,n)}else i().body.style.maxHeight="unset",i().body.style.overflow="unset"}openModal(e,n){e instanceof HTMLElement==!1?a.warn("[KolModalService] Die DOM-Referenz des Modals ist nicht valide."):(this.modalStack.set(e,{activeElement:n}),this.renderModalIfExists())}closeModal(e){var n;if(e instanceof HTMLElement==!1)a.warn("[KolModalService] Die DOM-Referenz des Modals ist nicht valide.");else{const t=null===(n=this.modalStack.get(e))||void 0===n?void 0:n.activeElement;this.modalStack.delete(e),this.renderModalIfExists(t)}}}const c="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: 44px;\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of 44px.\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\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 clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .hidden {\n display: none;\n visibility: hidden;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .overlay {\n background-color: rgba(0, 0, 0, 0.33);\n display: flex;\n height: 100%;\n inset: 0;\n position: fixed;\n width: 100%;\n z-index: 100;\n }\n .modal {\n margin: auto;\n max-height: 100%;\n max-width: 100%;\n }\n}",f=c,u=new h,m=class{constructor(e){n(this,e),this.onKeyDown=e=>{e&&"Escape"===e.code&&(this._activeElement=null)},this._activeElement=void 0,this._label=void 0,this._on=void 0,this._width="100%",this.state={_activeElement:null,_label:"",_width:"100%"}}componentDidRender(){this.hostElement&&(this.state._activeElement?u.openModal(this.hostElement,this.state._activeElement):u.closeModal(this.hostElement))}disconnectedCallback(){this.hostElement&&u.closeModal(this.hostElement)}render(){return e(t,{key:"cdf90127b1e3a6494acc2cd6f9e70245f0e78327",class:"kol-modal",ref:e=>{this.hostElement=e}},this.state._activeElement&&e("div",{key:"786de2516f2d40b3d31fa8fd89e905bf4d05c35f",class:"overlay"},e("div",{key:"22425204eaa3a2a133c8ea8e272356d0ffcb4aee",class:"modal",style:{width:this.state._width},"aria-label":this.state._label,"aria-modal":"true",role:"dialog",onKeyDown:this.onKeyDown,ref:e=>{e&&(e.setAttribute("tabindex","0"),setTimeout((()=>e.focus()),250))}},e("slot",{key:"9762249853efc9159e664ff78bbb503fe7165d4e"}))))}validateActiveElement(e){o(this,"_activeElement",(e=>"object"==typeof e||null===e),new Set(["HTMLElement","null"]),e,{defaultValue:null,hooks:{afterPatch:()=>{var e;null===this._activeElement&&(null===(e=this.state._on)||void 0===e?void 0:e.onClose)&&this.state._on.onClose()}}})}validateLabel(e){r(this,e,{required:!0})}validateOn(e){if("object"==typeof e&&null!==e){s("[KolTabs] Prüfen, wie man auch einen EventCallback einzeln ändern kann.");const n={};"function"!=typeof e.onClose&&!0!==e.onClose||(n.onClose=e.onClose),l(this,"_on",n)}}validateWidth(e){d(this,"_width",e,{defaultValue:"100%"})}componentWillLoad(){this.validateActiveElement(this._activeElement),this.validateLabel(this._label),this.validateOn(this._on),this.validateWidth(this._width)}static get watchers(){return{_activeElement:["validateActiveElement"],_label:["validateLabel"],_on:["validateOn"],_width:["validateWidth"]}}};m.style={default:f};export{m as kol_modal};
@@ -1 +1 @@
1
- {"version":3,"names":["ModalService","constructor","this","lockedElements","Map","modalStack","lockElement","htmlElement","tabIndex","getAttribute","HTMLAnchorElement","HTMLButtonElement","HTMLInputElement","HTMLSelectElement","HTMLTextAreaElement","dataset","kolModal","undefined","set","setAttribute","style","userSelect","unlockElement","value","removeAttribute","delete","unlockLockedElements","forEach","bind","lockFocus","hostElement","excludeElement","HTMLElement","ShadowRoot","shadowRoot","i","children","length","error","renderModalIfExists","activeElement","has","get","timeout","setTimeout","clearTimeout","focus","size","modalKeys","Array","from","keys","modalRef","_value","display","getDocument","body","maxHeight","overflow","openModal","Log","warn","closeModal","_a","defaultStyleCss","KolModalDefaultStyle0","modalService","KolModal","onKeyDown","event","code","_activeElement","_label","_width","componentDidRender","state","disconnectedCallback","render","h","Host","key","class","ref","el","width","role","validateActiveElement","watchValidator","Set","defaultValue","hooks","afterPatch","_on","onClose","validateLabel","required","validateOn","featureHint","callbacks","setState","validateWidth","watchString","componentWillLoad"],"sources":["src/components/modal/service.ts","src/components/modal/style.scss?tag=kol-modal&mode=default&encapsulation=shadow","src/components/modal/component.tsx"],"sourcesContent":["import { Log, getDocument } from '@public-ui/schema';\n\ntype ModalContext = {\n\tactiveElement?: HTMLElement;\n};\n\ntype LockedElementContext = {\n\ttabIndex?: string;\n};\n\n/**\n * The modal service is only working client-side!\n */\nexport class ModalService {\n\tprivate lockedElements: Map<HTMLElement, LockedElementContext> = new Map();\n\tprivate modalStack: Map<HTMLElement, ModalContext> = new Map();\n\n\tprivate lockElement(htmlElement: HTMLElement) {\n\t\tconst tabIndex: string | null = htmlElement.getAttribute('tabindex');\n\t\tif (\n\t\t\thtmlElement instanceof HTMLAnchorElement ||\n\t\t\thtmlElement instanceof HTMLButtonElement ||\n\t\t\thtmlElement instanceof HTMLInputElement ||\n\t\t\thtmlElement instanceof HTMLSelectElement ||\n\t\t\thtmlElement instanceof HTMLTextAreaElement ||\n\t\t\ttypeof tabIndex === 'string' ||\n\t\t\thtmlElement.dataset.kolModal !== undefined\n\t\t) {\n\t\t\tif (typeof tabIndex === 'string') {\n\t\t\t\tthis.lockedElements.set(htmlElement, {\n\t\t\t\t\ttabIndex,\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tthis.lockedElements.set(htmlElement, {});\n\t\t\t}\n\t\t\thtmlElement.setAttribute('tabindex', '-1');\n\t\t\thtmlElement.setAttribute('aria-hidden', 'true');\n\t\t\thtmlElement.style.userSelect = 'none';\n\t\t}\n\t}\n\n\tprivate unlockElement(value: LockedElementContext, htmlElement: HTMLElement) {\n\t\tif (typeof value.tabIndex === 'string') {\n\t\t\thtmlElement.setAttribute('tabindex', value.tabIndex);\n\t\t} else {\n\t\t\thtmlElement.removeAttribute('tabindex');\n\t\t}\n\t\thtmlElement.removeAttribute('aria-hidden');\n\t\thtmlElement.style.userSelect = 'unset';\n\t\tthis.lockedElements.delete(htmlElement);\n\t}\n\n\tprivate unlockLockedElements(lockedElements: Map<HTMLElement, LockedElementContext>) {\n\t\tlockedElements.forEach(this.unlockElement.bind(this));\n\t}\n\n\tprivate lockFocus(hostElement: HTMLElement | ShadowRoot | null, excludeElement?: HTMLElement) {\n\t\ttry {\n\t\t\tif (hostElement !== excludeElement && (hostElement instanceof HTMLElement || hostElement instanceof ShadowRoot)) {\n\t\t\t\tif (hostElement instanceof HTMLElement) {\n\t\t\t\t\tthis.lockElement(hostElement);\n\t\t\t\t\tthis.lockFocus(hostElement.shadowRoot, excludeElement);\n\t\t\t\t}\n\t\t\t\tfor (let i = 0; i < hostElement.children.length; i++) {\n\t\t\t\t\tthis.lockFocus(hostElement.children[i] as HTMLElement, excludeElement);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (error) {\n\t\t\t/**\n\t\t\t * Try is needed for SSR.\n\t\t\t * - no HTMLElement is available\n\t\t\t * - no ShadowRoot is available\n\t\t\t */\n\t\t}\n\t}\n\n\tprivate renderModalIfExists(activeElement?: HTMLElement) {\n\t\tif (activeElement instanceof HTMLElement) {\n\t\t\tif (this.lockedElements.has(activeElement)) {\n\t\t\t\tthis.unlockElement(this.lockedElements.get(activeElement) as LockedElementContext, activeElement);\n\t\t\t}\n\t\t\tconst timeout = setTimeout(() => {\n\t\t\t\tclearTimeout(timeout);\n\t\t\t\tactiveElement.focus();\n\t\t\t}, 500);\n\t\t}\n\t\tthis.unlockLockedElements(this.lockedElements);\n\t\tif (this.modalStack.size > 0) {\n\t\t\tconst modalKeys = Array.from(this.modalStack.keys());\n\t\t\tconst modalRef = modalKeys[modalKeys.length - 1] as HTMLElement & {\n\t\t\t\t_activeElement: HTMLElement | null; // typo sugger\n\t\t\t};\n\t\t\tthis.modalStack.forEach((_value: ModalContext, htmlElement: HTMLElement) => {\n\t\t\t\tif (modalRef === htmlElement) {\n\t\t\t\t\thtmlElement.style.display = 'inline';\n\t\t\t\t} else {\n\t\t\t\t\thtmlElement.style.display = `none`;\n\t\t\t\t}\n\t\t\t});\n\t\t\tgetDocument().body.style.maxHeight = '100vh';\n\t\t\tgetDocument().body.style.overflow = 'hidden';\n\t\t\tthis.lockFocus(getDocument().body, modalRef);\n\t\t} else {\n\t\t\tgetDocument().body.style.maxHeight = 'unset';\n\t\t\tgetDocument().body.style.overflow = 'unset';\n\t\t}\n\t}\n\n\tpublic openModal(modalRef: HTMLElement, activeElement?: HTMLElement): void {\n\t\tif (modalRef instanceof HTMLElement === false) {\n\t\t\tLog.warn(`[KolModalService] Die DOM-Referenz des Modals ist nicht valide.`);\n\t\t} else {\n\t\t\tthis.modalStack.set(modalRef, {\n\t\t\t\tactiveElement,\n\t\t\t});\n\t\t\tthis.renderModalIfExists();\n\t\t}\n\t}\n\n\tpublic closeModal(modalRef: HTMLElement): void {\n\t\tif (modalRef instanceof HTMLElement === false) {\n\t\t\tLog.warn(`[KolModalService] Die DOM-Referenz des Modals ist nicht valide.`);\n\t\t} else {\n\t\t\tconst activeElement = this.modalStack.get(modalRef)?.activeElement;\n\t\t\tthis.modalStack.delete(modalRef);\n\t\t\tthis.renderModalIfExists(activeElement);\n\t\t}\n\t}\n}\n","@import '../@shared/mixins';\n@import '../style';\n\n@layer kol-component {\n\t:host {\n\t\tfont-size: rem(16);\n\t}\n\n\t.overlay {\n\t\tbackground-color: rgba(0, 0, 0, 0.33);\n\t\tdisplay: flex;\n\t\theight: 100%;\n\t\tinset: 0;\n\t\tposition: fixed;\n\t\twidth: 100%;\n\t\tz-index: 100;\n\t}\n\n\t.modal {\n\t\tmargin: auto;\n\t\tmax-height: 100%;\n\t\tmax-width: 100%;\n\t}\n}\n","/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */\nimport type { KoliBriModalEventCallbacks, LabelPropType, ModalAPI, ModalStates } from '@public-ui/schema';\nimport { featureHint, setState, validateLabel, watchString, watchValidator } from '@public-ui/schema';\nimport { Component, Host, Prop, State, Watch, h } from '@stencil/core';\n\nimport type { JSX } from '@stencil/core';\nimport { ModalService } from './service';\n\nconst modalService = new ModalService();\n\n/**\n * https://en.wikipedia.org/wiki/Modal_window\n * @deprecated use the native <dialog> instead\n */\n\n/**\n * @slot - Der Inhalt des Modals.\n */\n@Component({\n\ttag: 'kol-modal',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolModal implements ModalAPI {\n\tprivate hostElement?: HTMLElement;\n\n\tpublic componentDidRender(): void {\n\t\tif (this.hostElement /* SSR instanceof HTMLElement */) {\n\t\t\tif (this.state._activeElement /* SSR instanceof HTMLElement */) {\n\t\t\t\tmodalService.openModal(this.hostElement, this.state._activeElement);\n\t\t\t} else {\n\t\t\t\tmodalService.closeModal(this.hostElement);\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic disconnectedCallback(): void {\n\t\tif (this.hostElement /* SSR instanceof HTMLElement */) {\n\t\t\tmodalService.closeModal(this.hostElement);\n\t\t}\n\t}\n\n\tprivate readonly onKeyDown = (event: KeyboardEvent) => {\n\t\tif (event && event.code === 'Escape') {\n\t\t\tthis._activeElement = null;\n\t\t}\n\t};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass=\"kol-modal\"\n\t\t\t\tref={(el) => {\n\t\t\t\t\tthis.hostElement = el as HTMLElement;\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{this.state._activeElement /* SSR instanceof HTMLElement */ && (\n\t\t\t\t\t<div class=\"overlay\">\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass=\"modal\"\n\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\twidth: this.state._width,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\taria-label={this.state._label}\n\t\t\t\t\t\t\taria-modal=\"true\"\n\t\t\t\t\t\t\trole=\"dialog\"\n\t\t\t\t\t\t\tonKeyDown={this.onKeyDown}\n\t\t\t\t\t\t\tref={(el) => {\n\t\t\t\t\t\t\t\tif (el /* SSR instanceof HTMLElement */) {\n\t\t\t\t\t\t\t\t\tel.setAttribute('tabindex', '0');\n\t\t\t\t\t\t\t\t\tsetTimeout(() => el.focus(), 250);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Gibt die Referenz auf das auslösende HTML-Element an, wodurch das Modal geöffnet wurde.\n\t */\n\t@Prop({ mutable: true }) public _activeElement?: HTMLElement | null;\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 * Gibt die EventCallback-Function für das Schließen des Modals an.\n\t */\n\t@Prop() public _on?: KoliBriModalEventCallbacks;\n\n\t/**\n\t * Defines the width of the modal. (max-width: 100%)\n\t */\n\t@Prop() public _width?: string = '100%';\n\n\t@State() public state: ModalStates = {\n\t\t_activeElement: null,\n\t\t_label: '', // ⚠ required\n\t\t_width: '100%',\n\t};\n\n\t@Watch('_activeElement')\n\tpublic validateActiveElement(value?: HTMLElement | null): void {\n\t\twatchValidator(this, '_activeElement', (value): boolean => typeof value === 'object' || value === null, new Set(['HTMLElement', 'null']), value, {\n\t\t\tdefaultValue: null,\n\t\t\thooks: {\n\t\t\t\tafterPatch: () => {\n\t\t\t\t\t/* Call onClose event in the _activeElement watcher because activeElement can be set internally and from the outside and closes the modal when set to null. */\n\t\t\t\t\tif (this._activeElement === null && this.state._on?.onClose) {\n\t\t\t\t\t\tthis.state._on.onClose();\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelPropType): void {\n\t\tvalidateLabel(this, value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(value?: KoliBriModalEventCallbacks): void {\n\t\tif (typeof value === 'object' && value !== null) {\n\t\t\tfeatureHint('[KolTabs] Prüfen, wie man auch einen EventCallback einzeln ändern kann.');\n\t\t\tconst callbacks: KoliBriModalEventCallbacks = {};\n\t\t\tif (typeof value.onClose === 'function' || value.onClose === true) {\n\t\t\t\tcallbacks.onClose = value.onClose;\n\t\t\t}\n\t\t\tsetState<KoliBriModalEventCallbacks>(this, '_on', callbacks);\n\t\t}\n\t}\n\n\t@Watch('_width')\n\tpublic validateWidth(value?: string): void {\n\t\twatchString(this, '_width', value, {\n\t\t\tdefaultValue: '100%',\n\t\t});\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateActiveElement(this._activeElement);\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateOn(this._on);\n\t\tthis.validateWidth(this._width);\n\t}\n}\n"],"mappings":"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"}
1
+ {"version":3,"names":["ModalService","constructor","this","lockedElements","Map","modalStack","lockElement","htmlElement","tabIndex","getAttribute","HTMLAnchorElement","HTMLButtonElement","HTMLInputElement","HTMLSelectElement","HTMLTextAreaElement","dataset","kolModal","undefined","set","setAttribute","style","userSelect","unlockElement","value","removeAttribute","delete","unlockLockedElements","forEach","bind","lockFocus","hostElement","excludeElement","HTMLElement","ShadowRoot","shadowRoot","i","children","length","error","renderModalIfExists","activeElement","has","get","timeout","setTimeout","clearTimeout","focus","size","modalKeys","Array","from","keys","modalRef","_value","display","getDocument","body","maxHeight","overflow","openModal","Log","warn","closeModal","_a","defaultStyleCss","KolModalDefaultStyle0","modalService","KolModal","onKeyDown","event","code","_activeElement","_label","_width","componentDidRender","state","disconnectedCallback","render","h","Host","key","class","ref","el","width","role","validateActiveElement","watchValidator","Set","defaultValue","hooks","afterPatch","_on","onClose","validateLabel","required","validateOn","featureHint","callbacks","setState","validateWidth","watchString","componentWillLoad"],"sources":["src/components/modal/service.ts","src/components/modal/style.scss?tag=kol-modal&mode=default&encapsulation=shadow","src/components/modal/component.tsx"],"sourcesContent":["import { Log, getDocument } from '../../schema';\n\ntype ModalContext = {\n\tactiveElement?: HTMLElement;\n};\n\ntype LockedElementContext = {\n\ttabIndex?: string;\n};\n\n/**\n * The modal service is only working client-side!\n */\nexport class ModalService {\n\tprivate lockedElements: Map<HTMLElement, LockedElementContext> = new Map();\n\tprivate modalStack: Map<HTMLElement, ModalContext> = new Map();\n\n\tprivate lockElement(htmlElement: HTMLElement) {\n\t\tconst tabIndex: string | null = htmlElement.getAttribute('tabindex');\n\t\tif (\n\t\t\thtmlElement instanceof HTMLAnchorElement ||\n\t\t\thtmlElement instanceof HTMLButtonElement ||\n\t\t\thtmlElement instanceof HTMLInputElement ||\n\t\t\thtmlElement instanceof HTMLSelectElement ||\n\t\t\thtmlElement instanceof HTMLTextAreaElement ||\n\t\t\ttypeof tabIndex === 'string' ||\n\t\t\thtmlElement.dataset.kolModal !== undefined\n\t\t) {\n\t\t\tif (typeof tabIndex === 'string') {\n\t\t\t\tthis.lockedElements.set(htmlElement, {\n\t\t\t\t\ttabIndex,\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tthis.lockedElements.set(htmlElement, {});\n\t\t\t}\n\t\t\thtmlElement.setAttribute('tabindex', '-1');\n\t\t\thtmlElement.setAttribute('aria-hidden', 'true');\n\t\t\thtmlElement.style.userSelect = 'none';\n\t\t}\n\t}\n\n\tprivate unlockElement(value: LockedElementContext, htmlElement: HTMLElement) {\n\t\tif (typeof value.tabIndex === 'string') {\n\t\t\thtmlElement.setAttribute('tabindex', value.tabIndex);\n\t\t} else {\n\t\t\thtmlElement.removeAttribute('tabindex');\n\t\t}\n\t\thtmlElement.removeAttribute('aria-hidden');\n\t\thtmlElement.style.userSelect = 'unset';\n\t\tthis.lockedElements.delete(htmlElement);\n\t}\n\n\tprivate unlockLockedElements(lockedElements: Map<HTMLElement, LockedElementContext>) {\n\t\tlockedElements.forEach(this.unlockElement.bind(this));\n\t}\n\n\tprivate lockFocus(hostElement: HTMLElement | ShadowRoot | null, excludeElement?: HTMLElement) {\n\t\ttry {\n\t\t\tif (hostElement !== excludeElement && (hostElement instanceof HTMLElement || hostElement instanceof ShadowRoot)) {\n\t\t\t\tif (hostElement instanceof HTMLElement) {\n\t\t\t\t\tthis.lockElement(hostElement);\n\t\t\t\t\tthis.lockFocus(hostElement.shadowRoot, excludeElement);\n\t\t\t\t}\n\t\t\t\tfor (let i = 0; i < hostElement.children.length; i++) {\n\t\t\t\t\tthis.lockFocus(hostElement.children[i] as HTMLElement, excludeElement);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (error) {\n\t\t\t/**\n\t\t\t * Try is needed for SSR.\n\t\t\t * - no HTMLElement is available\n\t\t\t * - no ShadowRoot is available\n\t\t\t */\n\t\t}\n\t}\n\n\tprivate renderModalIfExists(activeElement?: HTMLElement) {\n\t\tif (activeElement instanceof HTMLElement) {\n\t\t\tif (this.lockedElements.has(activeElement)) {\n\t\t\t\tthis.unlockElement(this.lockedElements.get(activeElement) as LockedElementContext, activeElement);\n\t\t\t}\n\t\t\tconst timeout = setTimeout(() => {\n\t\t\t\tclearTimeout(timeout);\n\t\t\t\tactiveElement.focus();\n\t\t\t}, 500);\n\t\t}\n\t\tthis.unlockLockedElements(this.lockedElements);\n\t\tif (this.modalStack.size > 0) {\n\t\t\tconst modalKeys = Array.from(this.modalStack.keys());\n\t\t\tconst modalRef = modalKeys[modalKeys.length - 1] as HTMLElement & {\n\t\t\t\t_activeElement: HTMLElement | null; // typo sugger\n\t\t\t};\n\t\t\tthis.modalStack.forEach((_value: ModalContext, htmlElement: HTMLElement) => {\n\t\t\t\tif (modalRef === htmlElement) {\n\t\t\t\t\thtmlElement.style.display = 'inline';\n\t\t\t\t} else {\n\t\t\t\t\thtmlElement.style.display = `none`;\n\t\t\t\t}\n\t\t\t});\n\t\t\tgetDocument().body.style.maxHeight = '100vh';\n\t\t\tgetDocument().body.style.overflow = 'hidden';\n\t\t\tthis.lockFocus(getDocument().body, modalRef);\n\t\t} else {\n\t\t\tgetDocument().body.style.maxHeight = 'unset';\n\t\t\tgetDocument().body.style.overflow = 'unset';\n\t\t}\n\t}\n\n\tpublic openModal(modalRef: HTMLElement, activeElement?: HTMLElement): void {\n\t\tif (modalRef instanceof HTMLElement === false) {\n\t\t\tLog.warn(`[KolModalService] Die DOM-Referenz des Modals ist nicht valide.`);\n\t\t} else {\n\t\t\tthis.modalStack.set(modalRef, {\n\t\t\t\tactiveElement,\n\t\t\t});\n\t\t\tthis.renderModalIfExists();\n\t\t}\n\t}\n\n\tpublic closeModal(modalRef: HTMLElement): void {\n\t\tif (modalRef instanceof HTMLElement === false) {\n\t\t\tLog.warn(`[KolModalService] Die DOM-Referenz des Modals ist nicht valide.`);\n\t\t} else {\n\t\t\tconst activeElement = this.modalStack.get(modalRef)?.activeElement;\n\t\t\tthis.modalStack.delete(modalRef);\n\t\t\tthis.renderModalIfExists(activeElement);\n\t\t}\n\t}\n}\n","@import '../@shared/mixins';\n@import '../style';\n\n@layer kol-component {\n\t:host {\n\t\tfont-size: rem(16);\n\t}\n\n\t.overlay {\n\t\tbackground-color: rgba(0, 0, 0, 0.33);\n\t\tdisplay: flex;\n\t\theight: 100%;\n\t\tinset: 0;\n\t\tposition: fixed;\n\t\twidth: 100%;\n\t\tz-index: 100;\n\t}\n\n\t.modal {\n\t\tmargin: auto;\n\t\tmax-height: 100%;\n\t\tmax-width: 100%;\n\t}\n}\n","/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */\nimport type { KoliBriModalEventCallbacks, LabelPropType, ModalAPI, ModalStates } from '../../schema';\nimport { featureHint, setState, validateLabel, watchString, watchValidator } from '../../schema';\nimport { Component, Host, Prop, State, Watch, h } from '@stencil/core';\n\nimport type { JSX } from '@stencil/core';\nimport { ModalService } from './service';\n\nconst modalService = new ModalService();\n\n/**\n * https://en.wikipedia.org/wiki/Modal_window\n * @deprecated use the native <dialog> instead\n */\n\n/**\n * @slot - Der Inhalt des Modals.\n */\n@Component({\n\ttag: 'kol-modal',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolModal implements ModalAPI {\n\tprivate hostElement?: HTMLElement;\n\n\tpublic componentDidRender(): void {\n\t\tif (this.hostElement /* SSR instanceof HTMLElement */) {\n\t\t\tif (this.state._activeElement /* SSR instanceof HTMLElement */) {\n\t\t\t\tmodalService.openModal(this.hostElement, this.state._activeElement);\n\t\t\t} else {\n\t\t\t\tmodalService.closeModal(this.hostElement);\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic disconnectedCallback(): void {\n\t\tif (this.hostElement /* SSR instanceof HTMLElement */) {\n\t\t\tmodalService.closeModal(this.hostElement);\n\t\t}\n\t}\n\n\tprivate readonly onKeyDown = (event: KeyboardEvent) => {\n\t\tif (event && event.code === 'Escape') {\n\t\t\tthis._activeElement = null;\n\t\t}\n\t};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass=\"kol-modal\"\n\t\t\t\tref={(el) => {\n\t\t\t\t\tthis.hostElement = el as HTMLElement;\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{this.state._activeElement /* SSR instanceof HTMLElement */ && (\n\t\t\t\t\t<div class=\"overlay\">\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass=\"modal\"\n\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\twidth: this.state._width,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\taria-label={this.state._label}\n\t\t\t\t\t\t\taria-modal=\"true\"\n\t\t\t\t\t\t\trole=\"dialog\"\n\t\t\t\t\t\t\tonKeyDown={this.onKeyDown}\n\t\t\t\t\t\t\tref={(el) => {\n\t\t\t\t\t\t\t\tif (el /* SSR instanceof HTMLElement */) {\n\t\t\t\t\t\t\t\t\tel.setAttribute('tabindex', '0');\n\t\t\t\t\t\t\t\t\tsetTimeout(() => el.focus(), 250);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Gibt die Referenz auf das auslösende HTML-Element an, wodurch das Modal geöffnet wurde.\n\t */\n\t@Prop({ mutable: true }) public _activeElement?: HTMLElement | null;\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 * Gibt die EventCallback-Function für das Schließen des Modals an.\n\t */\n\t@Prop() public _on?: KoliBriModalEventCallbacks;\n\n\t/**\n\t * Defines the width of the modal. (max-width: 100%)\n\t */\n\t@Prop() public _width?: string = '100%';\n\n\t@State() public state: ModalStates = {\n\t\t_activeElement: null,\n\t\t_label: '', // ⚠ required\n\t\t_width: '100%',\n\t};\n\n\t@Watch('_activeElement')\n\tpublic validateActiveElement(value?: HTMLElement | null): void {\n\t\twatchValidator(this, '_activeElement', (value): boolean => typeof value === 'object' || value === null, new Set(['HTMLElement', 'null']), value, {\n\t\t\tdefaultValue: null,\n\t\t\thooks: {\n\t\t\t\tafterPatch: () => {\n\t\t\t\t\t/* Call onClose event in the _activeElement watcher because activeElement can be set internally and from the outside and closes the modal when set to null. */\n\t\t\t\t\tif (this._activeElement === null && this.state._on?.onClose) {\n\t\t\t\t\t\tthis.state._on.onClose();\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelPropType): void {\n\t\tvalidateLabel(this, value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(value?: KoliBriModalEventCallbacks): void {\n\t\tif (typeof value === 'object' && value !== null) {\n\t\t\tfeatureHint('[KolTabs] Prüfen, wie man auch einen EventCallback einzeln ändern kann.');\n\t\t\tconst callbacks: KoliBriModalEventCallbacks = {};\n\t\t\tif (typeof value.onClose === 'function' || value.onClose === true) {\n\t\t\t\tcallbacks.onClose = value.onClose;\n\t\t\t}\n\t\t\tsetState<KoliBriModalEventCallbacks>(this, '_on', callbacks);\n\t\t}\n\t}\n\n\t@Watch('_width')\n\tpublic validateWidth(value?: string): void {\n\t\twatchString(this, '_width', value, {\n\t\t\tdefaultValue: '100%',\n\t\t});\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateActiveElement(this._activeElement);\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateOn(this._on);\n\t\tthis.validateWidth(this._width);\n\t}\n}\n"],"mappings":"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"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as n,h as e,H as t}from"./index-3fbcceca.js";import{$ as i,ad as a,ae as s,af as o,P as l,v as r,t as d,R as h,w as c}from"./index-44da6e7f.js";import{t as f}from"./i18n-7bf2bd6f.js";import{r as p,a as b}from"./unique-nav-labels-62d9802d.js";import{w as u}from"./validation-daa38230.js";import{m,c as v,n as y}from"./component-names-ed22f86e.js";import"./i18n-0c047df5.js";const w="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: 44px;\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of 44px.\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\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 clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .hidden {\n display: none;\n visibility: hidden;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n :host > div {\n display: grid;\n place-items: center;\n }\n :not(.is-compact) nav {\n width: 100%;\n }\n .list {\n display: flex;\n list-style: none;\n margin: 0;\n padding: 0;\n }\n .list.vertical {\n flex-direction: column;\n }\n .entry {\n display: flex;\n }\n .entry-item {\n flex-grow: 1;\n }\n}",k=w,x=e=>"string"==typeof e._href,g=e=>{var n;return void 0===e._href&&"function"==typeof(null===(n=e._on)||void 0===n?void 0:n.onClick)},_=class{constructor(t){n(this,t),this.handleToggleExpansionClick=e=>{e&&(this.state._expandedChildren.includes(e)?this.collapseChildren(e):this.expandChildren(e))},this.linkList=n=>e("ul",{class:"list "+(0===n.deep&&"horizontal"===n.orientation?" horizontal":" vertical"),"data-deep":n.deep},n.links.map(((e,t)=>this.li(n.collapsible,n.hideLabel,n.deep,t,e,n.orientation)))),this._collapsible=!0,this._hasCompactButton=!1,this._hasIconsWhenExpanded=!1,this._hideLabel=!1,this._label=void 0,this._links=void 0,this._orientation="vertical",this.state={_collapsible:!0,_hasCompactButton:!1,_hasIconsWhenExpanded:!1,_hideLabel:!1,_label:"",_links:[],_orientation:"vertical",_expandedChildren:[]}}expandChildren(e){this.state=Object.assign(Object.assign({},this.state),{_expandedChildren:[...this.state._expandedChildren,e]})}collapseChildren(e){this.state=Object.assign(Object.assign({},this.state),{_expandedChildren:this.state._expandedChildren.filter((n=>n!=e))})}entry(n,t,i,a,s){const l=this.state._hasIconsWhenExpanded||this.state._hideLabel?a._icons||(this.state._hideLabel?"codicon codicon-symbol-method":void 0):void 0;return e("div",{class:{entry:!0,"hide-label":t}},x(a)?e(m,Object.assign({class:"entry-item"},a,{_hideLabel:t,_icons:l})):e(v,{class:"entry-item",_label:a._label,_hideLabel:t,_icons:l,_on:{onClick:(e,n)=>{g(a)&&"function"==typeof a._on.onClick?a._on.onClick(e,n):this.handleToggleExpansionClick(a._children)}}}),i?this.expandButton(n,a,s):"")}expandButton(n,t,i){return e(v,{class:"expand-button",_ariaExpanded:i,_disabled:!n,_icons:"codicon codicon-"+(i?"remove":"add"),_hideLabel:!0,_label:`Untermenü zu ${t._label} ${i?"schließen":"öffnen"}`,_on:{onClick:()=>this.handleToggleExpansionClick(t._children)}})}li(n,t,i,a,s,l){const o=!!s._active,d=Array.isArray(s._children)&&s._children.length>0,r=Boolean(s._children&&this.state._expandedChildren.includes(s._children));return e("li",{class:{active:o,expanded:r,"has-children":d},key:a},this.entry(n,t,d,s,r),r&&e(this.linkList,{collapsible:n,hideLabel:t,deep:i+1,links:s._children||[],orientation:l}))}initializeExpandedChildren(){const e=n=>{if(n._active)return n._children&&this.expandChildren(n._children),!0;if(n._children)for(const t of n._children)if(e(t))return this.expandChildren(n._children),!0;return!1};this.state._links.forEach(e)}render(){let n=this.state._hasCompactButton;"horizontal"===this.state._orientation&&!0===this.state._hasCompactButton&&(n=!1,i("[KolNav] Wenn eine horizontale Navigation verwendet wird, kann die Option _hasCompactButton nicht aktiviert werden."));const a=!0===this.state._collapsible,s=!0===this.state._hideLabel,l=this.state._orientation;return e(t,{key:"183535b1ea254c589c41a6f7b13c23b93bf41379",class:"kol-nav"},e("div",{key:"ef813951ec5ddfd2139476f7320236c92000ed4e",class:{nav:!0,[l]:!0,"is-compact":this.state._hideLabel}},e("nav",{key:"ff607ae4541711d1debc47d8f7b2e2f90b3c7848","aria-label":this.state._label,id:"nav"},e(this.linkList,{key:"1458f14eed003f51efaffca7fc573a70b487f687",collapsible:a,hideLabel:s,deep:0,links:this.state._links,orientation:l})),n&&e("div",{key:"a45d8778000d659cb3fa28b59b1117d0a35d68e2",class:"compact"},e(y,{key:"cee20b7e768e41f856451c4f85c42f2ebcfe2fc6",_ariaControls:"nav",_ariaExpanded:!s,_icons:s?"codicon codicon-chevron-right":"codicon codicon-chevron-left",_hideLabel:!0,_label:f(s?"kol-nav-maximize":"kol-nav-minimize"),_on:{onClick:()=>{this.state=Object.assign(Object.assign({},this.state),{_hideLabel:!1===this.state._hideLabel})}},_tooltipAlign:"right",_variant:"ghost"}))))}validateCollapsible(e){a(this,e)}validateHasCompactButton(e){s(this,e)}validateHasIconsWhenExpanded(e){o(this,e)}validateHideLabel(e){l(this,e)}validateLabel(e,n,t=!1){t||p(this.state._label),r(this,e,{required:!0}),d(e),b(this.state._label)}validateLinks(e){u("KolNav",this,e),h("[KolNav] Die Navigationsstruktur wird noch nicht rekursiv validiert.")}validateOrientation(e){c(this,"_orientation",(e=>"horizontal"===e||"vertical"===e),new Set(["Orientation {horizontal, vertical}"]),e,{defaultValue:"vertical"})}componentWillLoad(){this.validateCollapsible(this._collapsible),this.validateHideLabel(this._hideLabel),this.validateHasCompactButton(this._hasCompactButton),this.validateHasIconsWhenExpanded(this._hasIconsWhenExpanded),this.validateLabel(this._label,void 0,!0),this.validateLinks(this._links),this.validateOrientation(this._orientation),this.initializeExpandedChildren()}disconnectedCallback(){p(this.state._label)}static get watchers(){return{_collapsible:["validateCollapsible"],_hasCompactButton:["validateHasCompactButton"],_hasIconsWhenExpanded:["validateHasIconsWhenExpanded"],_hideLabel:["validateHideLabel"],_label:["validateLabel"],_links:["validateLinks"],_orientation:["validateOrientation"]}}};_.style={default:k};export{_ as kol_nav};
4
+ import{r as n,h as e,H as t}from"./index-3fbcceca.js";import{t as i}from"./i18n-37baa421.js";import{r as a,a as s}from"./unique-nav-labels-62d9802d.js";import{w as o}from"./validation-561836d9.js";import{m as l,c as r,n as d}from"./component-names-ed22f86e.js";import{b as h,l as c,e as p,j as b,w as u}from"./prop.validators-29d576d2.js";import{v as f}from"./hide-label-c461d8fe.js";import{v as m}from"./label-e56ffdc6.js";import"./i18n-0c047df5.js";import"./reuse-b66836de.js";import"./index-4a3076fc.js";import"./dev.utils-1ca991a2.js";const v=(e,n)=>{h(e,"_collapsible",n)},y=(e,n)=>{h(e,"_hasCompactButton",n)},w=(e,n)=>{h(e,"_hasIconsWhenExpanded",n)},k="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: 44px;\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of 44px.\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\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 clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .hidden {\n display: none;\n visibility: hidden;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n :host > div {\n display: grid;\n place-items: center;\n }\n :not(.is-compact) nav {\n width: 100%;\n }\n .list {\n display: flex;\n list-style: none;\n margin: 0;\n padding: 0;\n }\n .list.vertical {\n flex-direction: column;\n }\n .entry {\n display: flex;\n }\n .entry-item {\n flex-grow: 1;\n }\n}",x=k,_=e=>"string"==typeof e._href,g=e=>{var n;return void 0===e._href&&"function"==typeof(null===(n=e._on)||void 0===n?void 0:n.onClick)},z=class{constructor(t){n(this,t),this.handleToggleExpansionClick=e=>{e&&(this.state._expandedChildren.includes(e)?this.collapseChildren(e):this.expandChildren(e))},this.linkList=n=>e("ul",{class:"list "+(0===n.deep&&"horizontal"===n.orientation?" horizontal":" vertical"),"data-deep":n.deep},n.links.map(((e,t)=>this.li(n.collapsible,n.hideLabel,n.deep,t,e,n.orientation)))),this._collapsible=!0,this._hasCompactButton=!1,this._hasIconsWhenExpanded=!1,this._hideLabel=!1,this._label=void 0,this._links=void 0,this._orientation="vertical",this.state={_collapsible:!0,_hasCompactButton:!1,_hasIconsWhenExpanded:!1,_hideLabel:!1,_label:"",_links:[],_orientation:"vertical",_expandedChildren:[]}}expandChildren(e){this.state=Object.assign(Object.assign({},this.state),{_expandedChildren:[...this.state._expandedChildren,e]})}collapseChildren(e){this.state=Object.assign(Object.assign({},this.state),{_expandedChildren:this.state._expandedChildren.filter((n=>n!=e))})}entry(n,t,i,a,s){const o=this.state._hasIconsWhenExpanded||this.state._hideLabel?a._icons||(this.state._hideLabel?"codicon codicon-symbol-method":void 0):void 0;return e("div",{class:{entry:!0,"hide-label":t}},_(a)?e(l,Object.assign({class:"entry-item"},a,{_hideLabel:t,_icons:o})):e(r,{class:"entry-item",_label:a._label,_hideLabel:t,_icons:o,_on:{onClick:(e,n)=>{g(a)&&"function"==typeof a._on.onClick?a._on.onClick(e,n):this.handleToggleExpansionClick(a._children)}}}),i?this.expandButton(n,a,s):"")}expandButton(n,t,i){return e(r,{class:"expand-button",_ariaExpanded:i,_disabled:!n,_icons:"codicon codicon-"+(i?"remove":"add"),_hideLabel:!0,_label:`Untermenü zu ${t._label} ${i?"schließen":"öffnen"}`,_on:{onClick:()=>this.handleToggleExpansionClick(t._children)}})}li(n,t,i,a,s,l){const o=!!s._active,d=Array.isArray(s._children)&&s._children.length>0,r=Boolean(s._children&&this.state._expandedChildren.includes(s._children));return e("li",{class:{active:o,expanded:r,"has-children":d},key:a},this.entry(n,t,d,s,r),r&&e(this.linkList,{collapsible:n,hideLabel:t,deep:i+1,links:s._children||[],orientation:l}))}initializeExpandedChildren(){const e=n=>{if(n._active)return n._children&&this.expandChildren(n._children),!0;if(n._children)for(const t of n._children)if(e(t))return this.expandChildren(n._children),!0;return!1};this.state._links.forEach(e)}render(){let n=this.state._hasCompactButton;"horizontal"===this.state._orientation&&!0===this.state._hasCompactButton&&(n=!1,c("[KolNav] Wenn eine horizontale Navigation verwendet wird, kann die Option _hasCompactButton nicht aktiviert werden."));const a=!0===this.state._collapsible,s=!0===this.state._hideLabel,l=this.state._orientation;return e(t,{key:"e1283eeb0574940f509d54be36e39b04bb961da4",class:"kol-nav"},e("div",{key:"1c46dd45b99ca748a2624d17f359a3cfc7809852",class:{nav:!0,[l]:!0,"is-compact":this.state._hideLabel}},e("nav",{key:"d23205b77dfed032f7f44f2e7d36bce5450c7ac2","aria-label":this.state._label,id:"nav"},e(this.linkList,{key:"bb988b5cea41ad49060a4b5e5081bae0eae1576c",collapsible:a,hideLabel:s,deep:0,links:this.state._links,orientation:l})),n&&e("div",{key:"ea122511b46cddbb705f829c2edb2a75c951c2b7",class:"compact"},e(d,{key:"0e8c5c86aea8f2c626c62b5eba3e8dfe2b4e45c7",_ariaControls:"nav",_ariaExpanded:!s,_icons:s?"codicon codicon-chevron-right":"codicon codicon-chevron-left",_hideLabel:!0,_label:i(s?"kol-nav-maximize":"kol-nav-minimize"),_on:{onClick:()=>{this.state=Object.assign(Object.assign({},this.state),{_hideLabel:!1===this.state._hideLabel})}},_tooltipAlign:"right",_variant:"ghost"}))))}validateCollapsible(e){v(this,e)}validateHasCompactButton(e){y(this,e)}validateHasIconsWhenExpanded(e){w(this,e)}validateHideLabel(e){f(this,e)}validateLabel(e,n,t=!1){t||a(this.state._label),m(this,e,{required:!0}),p(e),s(this.state._label)}validateLinks(e){o("KolNav",this,e),b("[KolNav] Die Navigationsstruktur wird noch nicht rekursiv validiert.")}validateOrientation(e){u(this,"_orientation",(e=>"horizontal"===e||"vertical"===e),new Set(["Orientation {horizontal, vertical}"]),e,{defaultValue:"vertical"})}componentWillLoad(){this.validateCollapsible(this._collapsible),this.validateHideLabel(this._hideLabel),this.validateHasCompactButton(this._hasCompactButton),this.validateHasIconsWhenExpanded(this._hasIconsWhenExpanded),this.validateLabel(this._label,void 0,!0),this.validateLinks(this._links),this.validateOrientation(this._orientation),this.initializeExpandedChildren()}disconnectedCallback(){a(this.state._label)}static get watchers(){return{_collapsible:["validateCollapsible"],_hasCompactButton:["validateHasCompactButton"],_hasIconsWhenExpanded:["validateHasIconsWhenExpanded"],_hideLabel:["validateHideLabel"],_label:["validateLabel"],_links:["validateLinks"],_orientation:["validateOrientation"]}}};z.style={default:x};export{z as kol_nav};