@public-ui/components 2.2.8 → 3.0.0-887b7986b55acd713750f46753265f8330a1342a.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 (1224) hide show
  1. package/custom-elements.json +147 -685
  2. package/dist/cjs/Alert-f4a6700e.js +4 -0
  3. package/dist/cjs/Alert-f4a6700e.js.map +1 -0
  4. package/dist/cjs/Collapsible-9187f373.js +4 -0
  5. package/dist/cjs/Collapsible-9187f373.js.map +1 -0
  6. package/dist/cjs/CustomSuggestionsOptionsGroup-8086f8f7.js +4 -0
  7. package/dist/cjs/CustomSuggestionsOptionsGroup-8086f8f7.js.map +1 -0
  8. package/dist/cjs/FieldControlStateWrapper-746761e3.js +4 -0
  9. package/dist/cjs/FieldControlStateWrapper-746761e3.js.map +1 -0
  10. package/dist/cjs/Heading-0caf905d.js +4 -0
  11. package/dist/cjs/Heading-0caf905d.js.map +1 -0
  12. package/dist/cjs/Icon-a7c72b23.js +4 -0
  13. package/dist/cjs/Icon-a7c72b23.js.map +1 -0
  14. package/dist/cjs/Input-5005eb27.js +4 -0
  15. package/dist/cjs/Input-5005eb27.js.map +1 -0
  16. package/dist/cjs/InputStateWrapper-981e8079.js +4 -0
  17. package/dist/cjs/InputStateWrapper-981e8079.js.map +1 -0
  18. package/dist/cjs/InternalUnderlinedBadgeText-ba062a73.js +4 -0
  19. package/dist/cjs/InternalUnderlinedBadgeText-ba062a73.js.map +1 -0
  20. package/dist/cjs/Span-4e268602.js +4 -0
  21. package/dist/cjs/Span-4e268602.js.map +1 -0
  22. package/dist/cjs/{align-floating-elements-1d37261b.js → align-floating-elements-8bc6ec37.js} +1 -1
  23. package/dist/cjs/{align-floating-elements-1d37261b.js.map → align-floating-elements-8bc6ec37.js.map} +1 -1
  24. package/dist/cjs/{app-globals-40c11b44.js → app-globals-64421db6.js} +1 -1
  25. package/dist/cjs/{app-globals-40c11b44.js.map → app-globals-64421db6.js.map} +1 -1
  26. package/dist/cjs/{aria-expanded-7d8d2aca.js → button-variant-fb9c6afd.js} +1 -1
  27. package/dist/cjs/button-variant-fb9c6afd.js.map +1 -0
  28. package/dist/cjs/callback-00e57b93.js +4 -0
  29. package/dist/cjs/callback-00e57b93.js.map +1 -0
  30. package/dist/cjs/component-names-74abfa2e.js +4 -0
  31. package/dist/cjs/component-names-74abfa2e.js.map +1 -0
  32. package/dist/cjs/{controller-d91f5077.js → controller-46a8468d.js} +1 -1
  33. package/dist/cjs/{controller-d91f5077.js.map → controller-46a8468d.js.map} +1 -1
  34. package/dist/cjs/controller-b840d423.js +4 -0
  35. package/dist/cjs/{controller-ee67ec39.js.map → controller-b840d423.js.map} +1 -1
  36. package/dist/cjs/{controller-91763b20.js → controller-e2c86d64.js} +1 -1
  37. package/dist/cjs/{controller-91763b20.js.map → controller-e2c86d64.js.map} +1 -1
  38. package/dist/cjs/{controller-563984db.js → controller-fb006831.js} +1 -1
  39. package/dist/cjs/{controller-563984db.js.map → controller-fb006831.js.map} +1 -1
  40. package/dist/cjs/controller-icon-6057f1e7.js +4 -0
  41. package/dist/cjs/controller-icon-6057f1e7.js.map +1 -0
  42. package/dist/cjs/{dev.utils-0273f400.js → dev.utils-736cd9ec.js} +1 -1
  43. package/dist/cjs/{dev.utils-0273f400.js.map → dev.utils-736cd9ec.js.map} +1 -1
  44. package/dist/cjs/{devtools-56637486.js → devtools-84cb83e9.js} +1 -1
  45. package/dist/cjs/{devtools-56637486.js.map → devtools-84cb83e9.js.map} +1 -1
  46. package/dist/cjs/events-fc641593.js +4 -0
  47. package/dist/cjs/events-fc641593.js.map +1 -0
  48. package/dist/cjs/getRenderStates-e446553f.js +4 -0
  49. package/dist/cjs/getRenderStates-e446553f.js.map +1 -0
  50. package/dist/cjs/i18n-583e3c4b.js +4 -0
  51. package/dist/cjs/i18n-583e3c4b.js.map +1 -0
  52. package/dist/cjs/{i18n-1d085d07.js → i18n-c745fb7d.js} +1 -1
  53. package/dist/cjs/{i18n-1d085d07.js.map → i18n-c745fb7d.js.map} +1 -1
  54. package/dist/cjs/{icons-f0f3f9c5.js → icons-3ad822d9.js} +1 -1
  55. package/dist/cjs/icons-3ad822d9.js.map +1 -0
  56. package/dist/cjs/index-7b35e085.js +4 -0
  57. package/dist/cjs/{index-399c8b52.js.map → index-7b35e085.js.map} +1 -1
  58. package/dist/cjs/index.cjs.js +1 -1
  59. package/dist/cjs/index.cjs.js.map +1 -1
  60. package/dist/cjs/isObject-6090b636.js +4 -0
  61. package/dist/cjs/isObject-6090b636.js.map +1 -0
  62. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  63. package/dist/cjs/kol-abbr.cjs.entry.js.map +1 -1
  64. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  65. package/dist/cjs/kol-accordion.cjs.entry.js.map +1 -1
  66. package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
  67. package/dist/cjs/kol-alert-wc.cjs.entry.js.map +1 -1
  68. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  69. package/dist/cjs/kol-alert.cjs.entry.js.map +1 -1
  70. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  71. package/dist/cjs/kol-avatar-wc.cjs.entry.js.map +1 -1
  72. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  73. package/dist/cjs/kol-avatar.cjs.entry.js.map +1 -1
  74. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  75. package/dist/cjs/kol-badge.cjs.entry.js.map +1 -1
  76. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  77. package/dist/cjs/kol-breadcrumb.cjs.entry.js.map +1 -1
  78. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  79. package/dist/cjs/kol-button-link.cjs.entry.js.map +1 -1
  80. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  81. package/dist/cjs/kol-button-wc.cjs.entry.js.map +1 -1
  82. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-button.cjs.entry.js.map +1 -1
  84. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-card.cjs.entry.js.map +1 -1
  86. package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
  87. package/dist/cjs/kol-combobox.cjs.entry.js.map +1 -1
  88. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  89. package/dist/cjs/kol-details.cjs.entry.js.map +1 -1
  90. package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
  91. package/dist/cjs/kol-drawer.cjs.entry.js.map +1 -1
  92. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  93. package/dist/cjs/kol-form.cjs.entry.js.map +1 -1
  94. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  95. package/dist/cjs/kol-heading.cjs.entry.js.map +1 -1
  96. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  97. package/dist/cjs/kol-icon.cjs.entry.js.map +1 -1
  98. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  99. package/dist/cjs/kol-image.cjs.entry.js.map +1 -1
  100. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
  102. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  103. package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
  104. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  105. package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
  106. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  107. package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
  108. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  109. package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
  110. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  111. package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
  112. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  113. package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
  114. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  115. package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
  116. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  117. package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
  118. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  119. package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
  120. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  121. package/dist/cjs/kol-kolibri.cjs.entry.js.map +1 -1
  122. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  123. package/dist/cjs/kol-link-button.cjs.entry.js.map +1 -1
  124. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  125. package/dist/cjs/kol-link-wc.cjs.entry.js.map +1 -1
  126. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  127. package/dist/cjs/kol-link.cjs.entry.js.map +1 -1
  128. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  129. package/dist/cjs/kol-modal.cjs.entry.js.map +1 -1
  130. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  131. package/dist/cjs/kol-nav.cjs.entry.js.map +1 -1
  132. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  133. package/dist/cjs/kol-pagination.cjs.entry.js.map +1 -1
  134. package/dist/cjs/kol-popover-button.cjs.entry.js +1 -1
  135. package/dist/cjs/kol-popover-button.cjs.entry.js.map +1 -1
  136. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  137. package/dist/cjs/kol-popover-wc.cjs.entry.js.map +1 -1
  138. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  139. package/dist/cjs/kol-progress.cjs.entry.js.map +1 -1
  140. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  141. package/dist/cjs/kol-quote.cjs.entry.js.map +1 -1
  142. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  143. package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
  144. package/dist/cjs/kol-single-select.cjs.entry.js +1 -1
  145. package/dist/cjs/kol-single-select.cjs.entry.js.map +1 -1
  146. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  147. package/dist/cjs/kol-skip-nav.cjs.entry.js.map +1 -1
  148. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  149. package/dist/cjs/kol-spin.cjs.entry.js.map +1 -1
  150. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  151. package/dist/cjs/kol-split-button.cjs.entry.js.map +1 -1
  152. package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
  153. package/dist/cjs/kol-table-stateful.cjs.entry.js.map +1 -1
  154. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
  155. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js.map +1 -1
  156. package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
  157. package/dist/cjs/kol-table-stateless.cjs.entry.js.map +1 -1
  158. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  159. package/dist/cjs/kol-tabs.cjs.entry.js.map +1 -1
  160. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  161. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  162. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  163. package/dist/cjs/kol-toast-container.cjs.entry.js.map +1 -1
  164. package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
  165. package/dist/cjs/kol-toolbar.cjs.entry.js.map +1 -1
  166. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  167. package/dist/cjs/kol-tooltip-wc.cjs.entry.js.map +1 -1
  168. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
  169. package/dist/cjs/kol-tree-item-wc.cjs.entry.js.map +1 -1
  170. package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
  171. package/dist/cjs/kol-tree-item.cjs.entry.js.map +1 -1
  172. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  173. package/dist/cjs/kol-tree-wc.cjs.entry.js.map +1 -1
  174. package/dist/cjs/kol-tree.cjs.entry.js +1 -1
  175. package/dist/cjs/kol-tree.cjs.entry.js.map +1 -1
  176. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  177. package/dist/cjs/kol-version.cjs.entry.js.map +1 -1
  178. package/dist/cjs/kolibri.cjs.js +1 -1
  179. package/dist/cjs/loader.cjs.js +1 -1
  180. package/dist/cjs/reuse-8650ea4e.js +4 -0
  181. package/dist/cjs/reuse-8650ea4e.js.map +1 -0
  182. package/dist/cjs/test-component.cjs.entry.js +1 -1
  183. package/dist/cjs/tslib.es6-5e301284.js.map +1 -0
  184. package/dist/components/Alert.js +1 -1
  185. package/dist/components/Alert.js.map +1 -1
  186. package/dist/components/Collapsible.js +1 -1
  187. package/dist/components/Collapsible.js.map +1 -1
  188. package/dist/components/CustomSuggestionsOptionsGroup.js +4 -0
  189. package/dist/components/CustomSuggestionsOptionsGroup.js.map +1 -0
  190. package/dist/components/FieldControlStateWrapper.js +4 -0
  191. package/dist/components/FieldControlStateWrapper.js.map +1 -0
  192. package/dist/components/Heading.js +4 -0
  193. package/dist/components/Heading.js.map +1 -0
  194. package/dist/components/Icon.js +4 -0
  195. package/dist/components/Icon.js.map +1 -0
  196. package/dist/components/Input.js +4 -0
  197. package/dist/components/Input.js.map +1 -0
  198. package/dist/components/InputContainerStateWrapper.js +4 -0
  199. package/dist/components/InputContainerStateWrapper.js.map +1 -0
  200. package/dist/components/InputStateWrapper.js +4 -0
  201. package/dist/components/InputStateWrapper.js.map +1 -0
  202. package/dist/components/InternalUnderlinedBadgeText.js +1 -1
  203. package/dist/components/InternalUnderlinedBadgeText.js.map +1 -1
  204. package/dist/components/Span.js +4 -0
  205. package/dist/components/Span.js.map +1 -0
  206. package/dist/components/{aria-expanded.js → button-variant.js} +1 -1
  207. package/dist/components/button-variant.js.map +1 -0
  208. package/dist/components/callback.js +4 -0
  209. package/dist/components/callback.js.map +1 -0
  210. package/dist/components/component-names.js +1 -1
  211. package/dist/components/component-names.js.map +1 -1
  212. package/dist/components/controller.js +1 -1
  213. package/dist/components/controller2.js +1 -1
  214. package/dist/components/controller2.js.map +1 -1
  215. package/dist/components/controller3.js +1 -1
  216. package/dist/components/controller3.js.map +1 -1
  217. package/dist/components/controller4.js +1 -1
  218. package/dist/components/controller4.js.map +1 -1
  219. package/dist/components/events.js +1 -1
  220. package/dist/components/events.js.map +1 -1
  221. package/dist/components/getRenderStates.js +4 -0
  222. package/dist/components/getRenderStates.js.map +1 -0
  223. package/dist/components/i18n.js +1 -1
  224. package/dist/components/i18n.js.map +1 -1
  225. package/dist/components/icons.js +1 -1
  226. package/dist/components/icons.js.map +1 -1
  227. package/dist/components/index.js +1 -1
  228. package/dist/components/index.js.map +1 -1
  229. package/dist/components/isObject.js +4 -0
  230. package/dist/components/isObject.js.map +1 -0
  231. package/dist/components/kol-abbr.js +1 -1
  232. package/dist/components/kol-abbr.js.map +1 -1
  233. package/dist/components/kol-accordion.js +1 -1
  234. package/dist/components/kol-accordion.js.map +1 -1
  235. package/dist/components/kol-alert-wc.js +1 -1
  236. package/dist/components/kol-alert-wc.js.map +1 -1
  237. package/dist/components/kol-alert.js +1 -1
  238. package/dist/components/kol-alert.js.map +1 -1
  239. package/dist/components/kol-avatar-wc.js +1 -1
  240. package/dist/components/kol-avatar-wc.js.map +1 -1
  241. package/dist/components/kol-avatar.js +1 -1
  242. package/dist/components/kol-avatar.js.map +1 -1
  243. package/dist/components/kol-badge.js +1 -1
  244. package/dist/components/kol-badge.js.map +1 -1
  245. package/dist/components/kol-breadcrumb.js +1 -1
  246. package/dist/components/kol-breadcrumb.js.map +1 -1
  247. package/dist/components/kol-button-link.js +1 -1
  248. package/dist/components/kol-button-link.js.map +1 -1
  249. package/dist/components/kol-button-wc.js +1 -1
  250. package/dist/components/kol-button-wc.js.map +1 -1
  251. package/dist/components/kol-button.js +1 -1
  252. package/dist/components/kol-button.js.map +1 -1
  253. package/dist/components/kol-card.js +1 -1
  254. package/dist/components/kol-card.js.map +1 -1
  255. package/dist/components/kol-combobox.js +1 -1
  256. package/dist/components/kol-combobox.js.map +1 -1
  257. package/dist/components/kol-details.js +1 -1
  258. package/dist/components/kol-details.js.map +1 -1
  259. package/dist/components/kol-drawer.js +1 -1
  260. package/dist/components/kol-drawer.js.map +1 -1
  261. package/dist/components/kol-form.js +1 -1
  262. package/dist/components/kol-form.js.map +1 -1
  263. package/dist/components/kol-heading.js +1 -1
  264. package/dist/components/kol-heading.js.map +1 -1
  265. package/dist/components/kol-icon.js +1 -1
  266. package/dist/components/kol-icon.js.map +1 -1
  267. package/dist/components/kol-image.js +1 -1
  268. package/dist/components/kol-image.js.map +1 -1
  269. package/dist/components/kol-input-checkbox.js +1 -1
  270. package/dist/components/kol-input-checkbox.js.map +1 -1
  271. package/dist/components/kol-input-color.js +1 -1
  272. package/dist/components/kol-input-color.js.map +1 -1
  273. package/dist/components/kol-input-date.js +1 -1
  274. package/dist/components/kol-input-date.js.map +1 -1
  275. package/dist/components/kol-input-email.js +1 -1
  276. package/dist/components/kol-input-email.js.map +1 -1
  277. package/dist/components/kol-input-file.js +1 -1
  278. package/dist/components/kol-input-file.js.map +1 -1
  279. package/dist/components/kol-input-number.js +1 -1
  280. package/dist/components/kol-input-number.js.map +1 -1
  281. package/dist/components/kol-input-password.js +1 -1
  282. package/dist/components/kol-input-password.js.map +1 -1
  283. package/dist/components/kol-input-radio.js +1 -1
  284. package/dist/components/kol-input-radio.js.map +1 -1
  285. package/dist/components/kol-input-range.js +1 -1
  286. package/dist/components/kol-input-range.js.map +1 -1
  287. package/dist/components/kol-input-text.js +1 -1
  288. package/dist/components/kol-input-text.js.map +1 -1
  289. package/dist/components/kol-kolibri.js +1 -1
  290. package/dist/components/kol-kolibri.js.map +1 -1
  291. package/dist/components/kol-link-button.js +1 -1
  292. package/dist/components/kol-link-button.js.map +1 -1
  293. package/dist/components/kol-link-wc.js +1 -1
  294. package/dist/components/kol-link-wc.js.map +1 -1
  295. package/dist/components/kol-link.js +1 -1
  296. package/dist/components/kol-link.js.map +1 -1
  297. package/dist/components/kol-modal.js +1 -1
  298. package/dist/components/kol-modal.js.map +1 -1
  299. package/dist/components/kol-nav.js +1 -1
  300. package/dist/components/kol-nav.js.map +1 -1
  301. package/dist/components/kol-pagination.js +1 -1
  302. package/dist/components/kol-pagination.js.map +1 -1
  303. package/dist/components/kol-popover-button.js +1 -1
  304. package/dist/components/kol-popover-button.js.map +1 -1
  305. package/dist/components/kol-popover-wc.js +1 -1
  306. package/dist/components/kol-popover-wc.js.map +1 -1
  307. package/dist/components/kol-progress.js +1 -1
  308. package/dist/components/kol-progress.js.map +1 -1
  309. package/dist/components/kol-quote.js +1 -1
  310. package/dist/components/kol-quote.js.map +1 -1
  311. package/dist/components/kol-select.js +1 -1
  312. package/dist/components/kol-select.js.map +1 -1
  313. package/dist/components/kol-single-select.js +1 -1
  314. package/dist/components/kol-single-select.js.map +1 -1
  315. package/dist/components/kol-skip-nav.js +1 -1
  316. package/dist/components/kol-skip-nav.js.map +1 -1
  317. package/dist/components/kol-spin.js +1 -1
  318. package/dist/components/kol-spin.js.map +1 -1
  319. package/dist/components/kol-split-button.js +1 -1
  320. package/dist/components/kol-split-button.js.map +1 -1
  321. package/dist/components/kol-table-stateful.js +1 -1
  322. package/dist/components/kol-table-stateful.js.map +1 -1
  323. package/dist/components/kol-table-stateless-wc.js +1 -1
  324. package/dist/components/kol-table-stateless-wc.js.map +1 -1
  325. package/dist/components/kol-table-stateless.js +1 -1
  326. package/dist/components/kol-table-stateless.js.map +1 -1
  327. package/dist/components/kol-tabs.js +1 -1
  328. package/dist/components/kol-tabs.js.map +1 -1
  329. package/dist/components/kol-textarea.js +1 -1
  330. package/dist/components/kol-textarea.js.map +1 -1
  331. package/dist/components/kol-toast-container.js +1 -1
  332. package/dist/components/kol-toast-container.js.map +1 -1
  333. package/dist/components/kol-toolbar.js +1 -1
  334. package/dist/components/kol-toolbar.js.map +1 -1
  335. package/dist/components/kol-tooltip-wc.js +1 -1
  336. package/dist/components/kol-tooltip-wc.js.map +1 -1
  337. package/dist/components/kol-tree-item-wc.js +1 -1
  338. package/dist/components/kol-tree-item-wc.js.map +1 -1
  339. package/dist/components/kol-tree-item.js +1 -1
  340. package/dist/components/kol-tree-item.js.map +1 -1
  341. package/dist/components/kol-tree-wc.js +1 -1
  342. package/dist/components/kol-tree-wc.js.map +1 -1
  343. package/dist/components/kol-tree.js +1 -1
  344. package/dist/components/kol-tree.js.map +1 -1
  345. package/dist/components/kol-version.js +1 -1
  346. package/dist/components/kol-version.js.map +1 -1
  347. package/dist/components/reuse.js +1 -1
  348. package/dist/components/reuse.js.map +1 -1
  349. package/dist/components/tslib.es6.js.map +1 -1
  350. package/dist/esm/Alert-0f69eea1.js +4 -0
  351. package/dist/esm/Alert-0f69eea1.js.map +1 -0
  352. package/dist/esm/Collapsible-951c7b56.js +4 -0
  353. package/dist/esm/Collapsible-951c7b56.js.map +1 -0
  354. package/dist/esm/CustomSuggestionsOptionsGroup-515a2540.js +4 -0
  355. package/dist/esm/CustomSuggestionsOptionsGroup-515a2540.js.map +1 -0
  356. package/dist/esm/FieldControlStateWrapper-5af39a4b.js +4 -0
  357. package/dist/esm/FieldControlStateWrapper-5af39a4b.js.map +1 -0
  358. package/dist/esm/Heading-a618bdb4.js +4 -0
  359. package/dist/esm/Heading-a618bdb4.js.map +1 -0
  360. package/dist/esm/Icon-461f168a.js +4 -0
  361. package/dist/esm/Icon-461f168a.js.map +1 -0
  362. package/dist/esm/Input-bc300ed0.js +4 -0
  363. package/dist/esm/Input-bc300ed0.js.map +1 -0
  364. package/dist/esm/InputStateWrapper-9fa8916e.js +4 -0
  365. package/dist/esm/InputStateWrapper-9fa8916e.js.map +1 -0
  366. package/dist/esm/InternalUnderlinedBadgeText-f50a35ad.js +4 -0
  367. package/dist/esm/InternalUnderlinedBadgeText-f50a35ad.js.map +1 -0
  368. package/dist/esm/Span-74e5ea8f.js +4 -0
  369. package/dist/esm/Span-74e5ea8f.js.map +1 -0
  370. package/dist/esm/{align-878fb132.js → align-60c95351.js} +1 -1
  371. package/dist/esm/{align-878fb132.js.map → align-60c95351.js.map} +1 -1
  372. package/dist/esm/{align-floating-elements-db77d917.js → align-floating-elements-387a1e9b.js} +1 -1
  373. package/dist/esm/{align-floating-elements-db77d917.js.map → align-floating-elements-387a1e9b.js.map} +1 -1
  374. package/dist/esm/{app-globals-3e243dfb.js → app-globals-1e7f1d4a.js} +1 -1
  375. package/dist/esm/{app-globals-3e243dfb.js.map → app-globals-1e7f1d4a.js.map} +1 -1
  376. package/dist/esm/{aria-expanded-9f877821.js → button-variant-87a9d78a.js} +1 -1
  377. package/dist/esm/button-variant-87a9d78a.js.map +1 -0
  378. package/dist/esm/callback-2c4e1e78.js +4 -0
  379. package/dist/esm/callback-2c4e1e78.js.map +1 -0
  380. package/dist/esm/{common-0f1f2276.js → common-54bf85ba.js} +1 -1
  381. package/dist/esm/{common-0f1f2276.js.map → common-54bf85ba.js.map} +1 -1
  382. package/dist/esm/component-names-545d6582.js +4 -0
  383. package/dist/esm/component-names-545d6582.js.map +1 -0
  384. package/dist/esm/controller-5e9f32ca.js +4 -0
  385. package/dist/esm/{controller-4a9a50f2.js.map → controller-5e9f32ca.js.map} +1 -1
  386. package/dist/esm/{controller-a3c1b90d.js → controller-868d4820.js} +1 -1
  387. package/dist/esm/{controller-a3c1b90d.js.map → controller-868d4820.js.map} +1 -1
  388. package/dist/esm/{controller-96d99a72.js → controller-88aff6ff.js} +1 -1
  389. package/dist/esm/{controller-96d99a72.js.map → controller-88aff6ff.js.map} +1 -1
  390. package/dist/esm/{controller-afbd59b5.js → controller-c6361758.js} +1 -1
  391. package/dist/esm/{controller-afbd59b5.js.map → controller-c6361758.js.map} +1 -1
  392. package/dist/esm/controller-icon-4031c3ea.js +4 -0
  393. package/dist/esm/controller-icon-4031c3ea.js.map +1 -0
  394. package/dist/esm/{dev.utils-0b748391.js → dev.utils-930d9493.js} +1 -1
  395. package/dist/esm/{dev.utils-0b748391.js.map → dev.utils-930d9493.js.map} +1 -1
  396. package/dist/esm/{devtools-3291e772.js → devtools-878bf068.js} +1 -1
  397. package/dist/esm/{devtools-3291e772.js.map → devtools-878bf068.js.map} +1 -1
  398. package/dist/esm/events-5adf6b62.js +4 -0
  399. package/dist/esm/events-5adf6b62.js.map +1 -0
  400. package/dist/esm/getRenderStates-8a9e5504.js +4 -0
  401. package/dist/esm/getRenderStates-8a9e5504.js.map +1 -0
  402. package/dist/esm/{i18n-5fe08f1c.js → i18n-005310a7.js} +1 -1
  403. package/dist/esm/{i18n-5fe08f1c.js.map → i18n-005310a7.js.map} +1 -1
  404. package/dist/esm/i18n-c120df5c.js +4 -0
  405. package/dist/esm/i18n-c120df5c.js.map +1 -0
  406. package/dist/esm/icons-458eee6a.js +4 -0
  407. package/dist/esm/icons-458eee6a.js.map +1 -0
  408. package/dist/esm/index-5ec1eac2.js +4 -0
  409. package/dist/esm/{index-f0de5c73.js.map → index-5ec1eac2.js.map} +1 -1
  410. package/dist/esm/index.js +1 -1
  411. package/dist/esm/index.js.map +1 -1
  412. package/dist/esm/isObject-ffcbbb76.js +4 -0
  413. package/dist/esm/isObject-ffcbbb76.js.map +1 -0
  414. package/dist/esm/kol-abbr.entry.js +1 -1
  415. package/dist/esm/kol-abbr.entry.js.map +1 -1
  416. package/dist/esm/kol-accordion.entry.js +1 -1
  417. package/dist/esm/kol-accordion.entry.js.map +1 -1
  418. package/dist/esm/kol-alert-wc.entry.js +1 -1
  419. package/dist/esm/kol-alert-wc.entry.js.map +1 -1
  420. package/dist/esm/kol-alert.entry.js +1 -1
  421. package/dist/esm/kol-alert.entry.js.map +1 -1
  422. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  423. package/dist/esm/kol-avatar-wc.entry.js.map +1 -1
  424. package/dist/esm/kol-avatar.entry.js +1 -1
  425. package/dist/esm/kol-avatar.entry.js.map +1 -1
  426. package/dist/esm/kol-badge.entry.js +1 -1
  427. package/dist/esm/kol-badge.entry.js.map +1 -1
  428. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  429. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  430. package/dist/esm/kol-button-link.entry.js +1 -1
  431. package/dist/esm/kol-button-link.entry.js.map +1 -1
  432. package/dist/esm/kol-button-wc.entry.js +1 -1
  433. package/dist/esm/kol-button-wc.entry.js.map +1 -1
  434. package/dist/esm/kol-button.entry.js +1 -1
  435. package/dist/esm/kol-button.entry.js.map +1 -1
  436. package/dist/esm/kol-card.entry.js +1 -1
  437. package/dist/esm/kol-card.entry.js.map +1 -1
  438. package/dist/esm/kol-combobox.entry.js +1 -1
  439. package/dist/esm/kol-combobox.entry.js.map +1 -1
  440. package/dist/esm/kol-details.entry.js +1 -1
  441. package/dist/esm/kol-details.entry.js.map +1 -1
  442. package/dist/esm/kol-drawer.entry.js +1 -1
  443. package/dist/esm/kol-drawer.entry.js.map +1 -1
  444. package/dist/esm/kol-form.entry.js +1 -1
  445. package/dist/esm/kol-form.entry.js.map +1 -1
  446. package/dist/esm/kol-heading.entry.js +1 -1
  447. package/dist/esm/kol-heading.entry.js.map +1 -1
  448. package/dist/esm/kol-icon.entry.js +1 -1
  449. package/dist/esm/kol-icon.entry.js.map +1 -1
  450. package/dist/esm/kol-image.entry.js +1 -1
  451. package/dist/esm/kol-image.entry.js.map +1 -1
  452. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  453. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  454. package/dist/esm/kol-input-color.entry.js +1 -1
  455. package/dist/esm/kol-input-color.entry.js.map +1 -1
  456. package/dist/esm/kol-input-date.entry.js +1 -1
  457. package/dist/esm/kol-input-date.entry.js.map +1 -1
  458. package/dist/esm/kol-input-email.entry.js +1 -1
  459. package/dist/esm/kol-input-email.entry.js.map +1 -1
  460. package/dist/esm/kol-input-file.entry.js +1 -1
  461. package/dist/esm/kol-input-file.entry.js.map +1 -1
  462. package/dist/esm/kol-input-number.entry.js +1 -1
  463. package/dist/esm/kol-input-number.entry.js.map +1 -1
  464. package/dist/esm/kol-input-password.entry.js +1 -1
  465. package/dist/esm/kol-input-password.entry.js.map +1 -1
  466. package/dist/esm/kol-input-radio.entry.js +1 -1
  467. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  468. package/dist/esm/kol-input-range.entry.js +1 -1
  469. package/dist/esm/kol-input-range.entry.js.map +1 -1
  470. package/dist/esm/kol-input-text.entry.js +1 -1
  471. package/dist/esm/kol-input-text.entry.js.map +1 -1
  472. package/dist/esm/kol-kolibri.entry.js +1 -1
  473. package/dist/esm/kol-kolibri.entry.js.map +1 -1
  474. package/dist/esm/kol-link-button.entry.js +1 -1
  475. package/dist/esm/kol-link-button.entry.js.map +1 -1
  476. package/dist/esm/kol-link-wc.entry.js +1 -1
  477. package/dist/esm/kol-link-wc.entry.js.map +1 -1
  478. package/dist/esm/kol-link.entry.js +1 -1
  479. package/dist/esm/kol-link.entry.js.map +1 -1
  480. package/dist/esm/kol-modal.entry.js +1 -1
  481. package/dist/esm/kol-modal.entry.js.map +1 -1
  482. package/dist/esm/kol-nav.entry.js +1 -1
  483. package/dist/esm/kol-nav.entry.js.map +1 -1
  484. package/dist/esm/kol-pagination.entry.js +1 -1
  485. package/dist/esm/kol-pagination.entry.js.map +1 -1
  486. package/dist/esm/kol-popover-button.entry.js +1 -1
  487. package/dist/esm/kol-popover-button.entry.js.map +1 -1
  488. package/dist/esm/kol-popover-wc.entry.js +1 -1
  489. package/dist/esm/kol-popover-wc.entry.js.map +1 -1
  490. package/dist/esm/kol-progress.entry.js +1 -1
  491. package/dist/esm/kol-progress.entry.js.map +1 -1
  492. package/dist/esm/kol-quote.entry.js +1 -1
  493. package/dist/esm/kol-quote.entry.js.map +1 -1
  494. package/dist/esm/kol-select.entry.js +1 -1
  495. package/dist/esm/kol-select.entry.js.map +1 -1
  496. package/dist/esm/kol-single-select.entry.js +1 -1
  497. package/dist/esm/kol-single-select.entry.js.map +1 -1
  498. package/dist/esm/kol-skip-nav.entry.js +1 -1
  499. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  500. package/dist/esm/kol-spin.entry.js +1 -1
  501. package/dist/esm/kol-spin.entry.js.map +1 -1
  502. package/dist/esm/kol-split-button.entry.js +1 -1
  503. package/dist/esm/kol-split-button.entry.js.map +1 -1
  504. package/dist/esm/kol-table-stateful.entry.js +1 -1
  505. package/dist/esm/kol-table-stateful.entry.js.map +1 -1
  506. package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
  507. package/dist/esm/kol-table-stateless-wc.entry.js.map +1 -1
  508. package/dist/esm/kol-table-stateless.entry.js +1 -1
  509. package/dist/esm/kol-table-stateless.entry.js.map +1 -1
  510. package/dist/esm/kol-tabs.entry.js +1 -1
  511. package/dist/esm/kol-tabs.entry.js.map +1 -1
  512. package/dist/esm/kol-textarea.entry.js +1 -1
  513. package/dist/esm/kol-textarea.entry.js.map +1 -1
  514. package/dist/esm/kol-toast-container.entry.js +1 -1
  515. package/dist/esm/kol-toast-container.entry.js.map +1 -1
  516. package/dist/esm/kol-toolbar.entry.js +1 -1
  517. package/dist/esm/kol-toolbar.entry.js.map +1 -1
  518. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  519. package/dist/esm/kol-tooltip-wc.entry.js.map +1 -1
  520. package/dist/esm/kol-tree-item-wc.entry.js +1 -1
  521. package/dist/esm/kol-tree-item-wc.entry.js.map +1 -1
  522. package/dist/esm/kol-tree-item.entry.js +1 -1
  523. package/dist/esm/kol-tree-item.entry.js.map +1 -1
  524. package/dist/esm/kol-tree-wc.entry.js +1 -1
  525. package/dist/esm/kol-tree-wc.entry.js.map +1 -1
  526. package/dist/esm/kol-tree.entry.js +1 -1
  527. package/dist/esm/kol-tree.entry.js.map +1 -1
  528. package/dist/esm/kol-version.entry.js +1 -1
  529. package/dist/esm/kol-version.entry.js.map +1 -1
  530. package/dist/esm/kolibri.js +1 -1
  531. package/dist/esm/loader.js +1 -1
  532. package/dist/esm/reuse-f46e7e35.js +4 -0
  533. package/dist/esm/reuse-f46e7e35.js.map +1 -0
  534. package/dist/esm/test-component.entry.js +1 -1
  535. package/dist/esm/{tooltip-align-5902aa96.js → tooltip-align-c6eb75ce.js} +1 -1
  536. package/dist/esm/{tooltip-align-5902aa96.js.map → tooltip-align-c6eb75ce.js.map} +1 -1
  537. package/dist/esm/tslib.es6-1173d062.js.map +1 -0
  538. package/dist/kolibri/Alert-0f69eea1.js +4 -0
  539. package/dist/kolibri/Alert-0f69eea1.js.map +1 -0
  540. package/dist/kolibri/Collapsible-951c7b56.js +4 -0
  541. package/dist/kolibri/Collapsible-951c7b56.js.map +1 -0
  542. package/dist/kolibri/CustomSuggestionsOptionsGroup-515a2540.js +4 -0
  543. package/dist/kolibri/CustomSuggestionsOptionsGroup-515a2540.js.map +1 -0
  544. package/dist/kolibri/FieldControlStateWrapper-5af39a4b.js +4 -0
  545. package/dist/kolibri/FieldControlStateWrapper-5af39a4b.js.map +1 -0
  546. package/dist/kolibri/Heading-a618bdb4.js +4 -0
  547. package/dist/kolibri/Heading-a618bdb4.js.map +1 -0
  548. package/dist/kolibri/Icon-461f168a.js +4 -0
  549. package/dist/kolibri/Icon-461f168a.js.map +1 -0
  550. package/dist/kolibri/Input-bc300ed0.js +4 -0
  551. package/dist/kolibri/Input-bc300ed0.js.map +1 -0
  552. package/dist/kolibri/InputStateWrapper-9fa8916e.js +4 -0
  553. package/dist/kolibri/InputStateWrapper-9fa8916e.js.map +1 -0
  554. package/dist/kolibri/InternalUnderlinedBadgeText-f50a35ad.js +4 -0
  555. package/dist/kolibri/InternalUnderlinedBadgeText-f50a35ad.js.map +1 -0
  556. package/dist/kolibri/Span-74e5ea8f.js +4 -0
  557. package/dist/kolibri/Span-74e5ea8f.js.map +1 -0
  558. package/dist/kolibri/{align-878fb132.js → align-60c95351.js} +1 -1
  559. package/dist/kolibri/{align-floating-elements-db77d917.js → align-floating-elements-387a1e9b.js} +1 -1
  560. package/dist/kolibri/{app-globals-3e243dfb.js → app-globals-1e7f1d4a.js} +1 -1
  561. package/dist/kolibri/button-variant-87a9d78a.js +4 -0
  562. package/dist/kolibri/button-variant-87a9d78a.js.map +1 -0
  563. package/dist/kolibri/callback-2c4e1e78.js +4 -0
  564. package/dist/kolibri/callback-2c4e1e78.js.map +1 -0
  565. package/dist/kolibri/{common-0f1f2276.js → common-54bf85ba.js} +1 -1
  566. package/dist/kolibri/component-names-545d6582.js +4 -0
  567. package/dist/kolibri/component-names-545d6582.js.map +1 -0
  568. package/dist/kolibri/controller-5e9f32ca.js +4 -0
  569. package/dist/kolibri/{controller-4a9a50f2.js.map → controller-5e9f32ca.js.map} +1 -1
  570. package/dist/kolibri/{controller-a3c1b90d.js → controller-868d4820.js} +1 -1
  571. package/dist/kolibri/{controller-96d99a72.js → controller-88aff6ff.js} +1 -1
  572. package/dist/kolibri/{controller-afbd59b5.js → controller-c6361758.js} +1 -1
  573. package/dist/kolibri/controller-icon-4031c3ea.js +4 -0
  574. package/dist/kolibri/controller-icon-4031c3ea.js.map +1 -0
  575. package/dist/kolibri/{dev.utils-0b748391.js → dev.utils-930d9493.js} +1 -1
  576. package/dist/kolibri/{devtools-3291e772.js → devtools-878bf068.js} +1 -1
  577. package/dist/kolibri/events-5adf6b62.js +4 -0
  578. package/dist/kolibri/events-5adf6b62.js.map +1 -0
  579. package/dist/kolibri/getRenderStates-8a9e5504.js +4 -0
  580. package/dist/kolibri/getRenderStates-8a9e5504.js.map +1 -0
  581. package/dist/kolibri/i18n-005310a7.js +4 -0
  582. package/dist/kolibri/i18n-c120df5c.js +4 -0
  583. package/dist/kolibri/i18n-c120df5c.js.map +1 -0
  584. package/dist/kolibri/icons-458eee6a.js +4 -0
  585. package/dist/kolibri/icons-458eee6a.js.map +1 -0
  586. package/dist/kolibri/{index-f0de5c73.js → index-5ec1eac2.js} +2 -2
  587. package/dist/kolibri/index-5ec1eac2.js.map +1 -0
  588. package/dist/kolibri/index.esm.js +1 -1
  589. package/dist/kolibri/index.esm.js.map +1 -1
  590. package/dist/kolibri/isObject-ffcbbb76.js +4 -0
  591. package/dist/kolibri/isObject-ffcbbb76.js.map +1 -0
  592. package/dist/kolibri/kol-abbr.entry.js +1 -1
  593. package/dist/kolibri/kol-abbr.entry.js.map +1 -1
  594. package/dist/kolibri/kol-accordion.entry.js +1 -1
  595. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  596. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  597. package/dist/kolibri/kol-alert-wc.entry.js.map +1 -1
  598. package/dist/kolibri/kol-alert.entry.js +1 -1
  599. package/dist/kolibri/kol-alert.entry.js.map +1 -1
  600. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  601. package/dist/kolibri/kol-avatar-wc.entry.js.map +1 -1
  602. package/dist/kolibri/kol-avatar.entry.js +1 -1
  603. package/dist/kolibri/kol-avatar.entry.js.map +1 -1
  604. package/dist/kolibri/kol-badge.entry.js +1 -1
  605. package/dist/kolibri/kol-badge.entry.js.map +1 -1
  606. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  607. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  608. package/dist/kolibri/kol-button-link.entry.js +1 -1
  609. package/dist/kolibri/kol-button-link.entry.js.map +1 -1
  610. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  611. package/dist/kolibri/kol-button-wc.entry.js.map +1 -1
  612. package/dist/kolibri/kol-button.entry.js +1 -1
  613. package/dist/kolibri/kol-button.entry.js.map +1 -1
  614. package/dist/kolibri/kol-card.entry.js +1 -1
  615. package/dist/kolibri/kol-card.entry.js.map +1 -1
  616. package/dist/kolibri/kol-combobox.entry.js +1 -1
  617. package/dist/kolibri/kol-combobox.entry.js.map +1 -1
  618. package/dist/kolibri/kol-details.entry.js +1 -1
  619. package/dist/kolibri/kol-details.entry.js.map +1 -1
  620. package/dist/kolibri/kol-drawer.entry.js +1 -1
  621. package/dist/kolibri/kol-drawer.entry.js.map +1 -1
  622. package/dist/kolibri/kol-form.entry.js +1 -1
  623. package/dist/kolibri/kol-form.entry.js.map +1 -1
  624. package/dist/kolibri/kol-heading.entry.js +1 -1
  625. package/dist/kolibri/kol-heading.entry.js.map +1 -1
  626. package/dist/kolibri/kol-icon.entry.js +1 -1
  627. package/dist/kolibri/kol-icon.entry.js.map +1 -1
  628. package/dist/kolibri/kol-image.entry.js +1 -1
  629. package/dist/kolibri/kol-image.entry.js.map +1 -1
  630. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  631. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  632. package/dist/kolibri/kol-input-color.entry.js +1 -1
  633. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  634. package/dist/kolibri/kol-input-date.entry.js +1 -1
  635. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  636. package/dist/kolibri/kol-input-email.entry.js +1 -1
  637. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  638. package/dist/kolibri/kol-input-file.entry.js +1 -1
  639. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  640. package/dist/kolibri/kol-input-number.entry.js +1 -1
  641. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  642. package/dist/kolibri/kol-input-password.entry.js +1 -1
  643. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  644. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  645. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  646. package/dist/kolibri/kol-input-range.entry.js +1 -1
  647. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  648. package/dist/kolibri/kol-input-text.entry.js +1 -1
  649. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  650. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  651. package/dist/kolibri/kol-kolibri.entry.js.map +1 -1
  652. package/dist/kolibri/kol-link-button.entry.js +1 -1
  653. package/dist/kolibri/kol-link-button.entry.js.map +1 -1
  654. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  655. package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
  656. package/dist/kolibri/kol-link.entry.js +1 -1
  657. package/dist/kolibri/kol-link.entry.js.map +1 -1
  658. package/dist/kolibri/kol-modal.entry.js +1 -1
  659. package/dist/kolibri/kol-modal.entry.js.map +1 -1
  660. package/dist/kolibri/kol-nav.entry.js +1 -1
  661. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  662. package/dist/kolibri/kol-pagination.entry.js +1 -1
  663. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  664. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  665. package/dist/kolibri/kol-popover-button.entry.js.map +1 -1
  666. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  667. package/dist/kolibri/kol-popover-wc.entry.js.map +1 -1
  668. package/dist/kolibri/kol-progress.entry.js +1 -1
  669. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  670. package/dist/kolibri/kol-quote.entry.js +1 -1
  671. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  672. package/dist/kolibri/kol-select.entry.js +1 -1
  673. package/dist/kolibri/kol-select.entry.js.map +1 -1
  674. package/dist/kolibri/kol-single-select.entry.js +1 -1
  675. package/dist/kolibri/kol-single-select.entry.js.map +1 -1
  676. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  677. package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
  678. package/dist/kolibri/kol-spin.entry.js +1 -1
  679. package/dist/kolibri/kol-spin.entry.js.map +1 -1
  680. package/dist/kolibri/kol-split-button.entry.js +1 -1
  681. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  682. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  683. package/dist/kolibri/kol-table-stateful.entry.js.map +1 -1
  684. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  685. package/dist/kolibri/kol-table-stateless-wc.entry.js.map +1 -1
  686. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  687. package/dist/kolibri/kol-table-stateless.entry.js.map +1 -1
  688. package/dist/kolibri/kol-tabs.entry.js +1 -1
  689. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  690. package/dist/kolibri/kol-textarea.entry.js +1 -1
  691. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  692. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  693. package/dist/kolibri/kol-toast-container.entry.js.map +1 -1
  694. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  695. package/dist/kolibri/kol-toolbar.entry.js.map +1 -1
  696. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  697. package/dist/kolibri/kol-tooltip-wc.entry.js.map +1 -1
  698. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  699. package/dist/kolibri/kol-tree-item-wc.entry.js.map +1 -1
  700. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  701. package/dist/kolibri/kol-tree-item.entry.js.map +1 -1
  702. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  703. package/dist/kolibri/kol-tree-wc.entry.js.map +1 -1
  704. package/dist/kolibri/kol-tree.entry.js +1 -1
  705. package/dist/kolibri/kol-tree.entry.js.map +1 -1
  706. package/dist/kolibri/kol-version.entry.js +1 -1
  707. package/dist/kolibri/kol-version.entry.js.map +1 -1
  708. package/dist/kolibri/kolibri.esm.js +1 -1
  709. package/dist/kolibri/kolibri.esm.js.map +1 -1
  710. package/dist/kolibri/reuse-f46e7e35.js +4 -0
  711. package/dist/kolibri/reuse-f46e7e35.js.map +1 -0
  712. package/dist/kolibri/test-component.entry.js +1 -1
  713. package/dist/kolibri/tooltip-align-c6eb75ce.js +4 -0
  714. package/dist/kolibri/tslib.es6-1173d062.js.map +1 -0
  715. package/dist/types/components/@deprecated/input/controller-icon.d.ts +2 -2
  716. package/dist/types/components/@deprecated/input/controller.d.ts +3 -3
  717. package/dist/types/components/@deprecated/input/types-icon.d.ts +4 -2
  718. package/dist/types/components/@deprecated/input/types.d.ts +1 -2
  719. package/dist/types/components/abbr/shadow.d.ts +2 -5
  720. package/dist/types/components/accordion/shadow.d.ts +1 -1
  721. package/dist/types/components/alert/component.d.ts +1 -0
  722. package/dist/types/components/badge/shadow.d.ts +1 -0
  723. package/dist/types/components/button/component.d.ts +1 -0
  724. package/dist/types/components/button/shadow.d.ts +0 -2
  725. package/dist/types/components/button-link/shadow.d.ts +0 -2
  726. package/dist/types/components/card/shadow.d.ts +2 -1
  727. package/dist/types/components/combobox/shadow.d.ts +7 -9
  728. package/dist/types/components/component-list.d.ts +16 -2
  729. package/dist/types/components/details/shadow.d.ts +1 -2
  730. package/dist/types/components/drawer/shadow.d.ts +5 -5
  731. package/dist/types/components/form/shadow.d.ts +1 -0
  732. package/dist/types/components/heading/shadow.d.ts +9 -3
  733. package/dist/types/components/input/controller.d.ts +1 -1
  734. package/dist/types/components/input/types.d.ts +3 -2
  735. package/dist/types/components/input-adapter-leanup/controller.d.ts +0 -1
  736. package/dist/types/components/input-adapter-leanup/types.d.ts +0 -1
  737. package/dist/types/components/input-checkbox/shadow.d.ts +7 -11
  738. package/dist/types/components/input-color/shadow.d.ts +18 -13
  739. package/dist/types/components/input-date/shadow.d.ts +9 -12
  740. package/dist/types/components/input-email/shadow.d.ts +7 -12
  741. package/dist/types/components/input-file/controller.d.ts +0 -1
  742. package/dist/types/components/input-file/shadow.d.ts +12 -14
  743. package/dist/types/components/input-number/shadow.d.ts +14 -18
  744. package/dist/types/components/input-password/shadow.d.ts +8 -12
  745. package/dist/types/components/input-radio/shadow.d.ts +7 -11
  746. package/dist/types/components/input-range/shadow.d.ts +10 -12
  747. package/dist/types/components/input-text/shadow.d.ts +9 -12
  748. package/dist/types/components/link/component.d.ts +6 -1
  749. package/dist/types/components/link/shadow.d.ts +0 -2
  750. package/dist/types/components/link-button/shadow.d.ts +0 -2
  751. package/dist/types/components/modal/shadow.d.ts +5 -3
  752. package/dist/types/components/pagination/shadow.d.ts +1 -0
  753. package/dist/types/components/select/shadow.d.ts +8 -12
  754. package/dist/types/components/single-select/shadow.d.ts +8 -9
  755. package/dist/types/components/split-button/shadow.d.ts +0 -1
  756. package/dist/types/components/table-stateful/shadow.d.ts +3 -6
  757. package/dist/types/components/table-stateless/component.d.ts +9 -2
  758. package/dist/types/components/table-stateless/shadow.d.ts +3 -2
  759. package/dist/types/components/textarea/shadow.d.ts +7 -12
  760. package/dist/types/components.d.ts +215 -1299
  761. package/dist/types/core/component-names.d.ts +1 -11
  762. package/dist/types/e2e/index.d.ts +1 -0
  763. package/dist/types/e2e/input-callbacks-and-events.d.ts +9 -0
  764. package/dist/types/e2e/input-value-reflection.d.ts +5 -0
  765. package/dist/types/e2e/utils/FillAction.d.ts +4 -0
  766. package/dist/types/e2e/utils/inputsSelector.d.ts +2 -0
  767. package/dist/types/functional-component-wrappers/CheckboxStateWrapper/CheckboxStateWrapper.d.ts +10 -0
  768. package/dist/types/functional-component-wrappers/CheckboxStateWrapper/index.d.ts +1 -0
  769. package/dist/types/functional-component-wrappers/FieldControlStateWrapper/FieldControlStateWrapper.d.ts +9 -0
  770. package/dist/types/functional-component-wrappers/FieldControlStateWrapper/index.d.ts +1 -0
  771. package/dist/types/functional-component-wrappers/FormFieldStateWrapper/FormFieldStateWrapper.d.ts +9 -0
  772. package/dist/types/functional-component-wrappers/FormFieldStateWrapper/index.d.ts +1 -0
  773. package/dist/types/functional-component-wrappers/InputContainerStateWrapper/InputContainerStateWrapper.d.ts +9 -0
  774. package/dist/types/functional-component-wrappers/InputContainerStateWrapper/index.d.ts +1 -0
  775. package/dist/types/functional-component-wrappers/InputStateWrapper/InputStateWrapper.d.ts +10 -0
  776. package/dist/types/functional-component-wrappers/InputStateWrapper/index.d.ts +1 -0
  777. package/dist/types/functional-component-wrappers/SelectStateWrapper/SelectStateWrapper.d.ts +8 -0
  778. package/dist/types/functional-component-wrappers/SelectStateWrapper/index.d.ts +1 -0
  779. package/dist/types/functional-component-wrappers/TextAreaStateWrapper/TextAreaStateWrapper.d.ts +8 -0
  780. package/dist/types/functional-component-wrappers/TextAreaStateWrapper/index.d.ts +1 -0
  781. package/dist/types/functional-component-wrappers/_helpers/getRenderStates.d.ts +11 -0
  782. package/dist/types/functional-components/Alert/Alert.d.ts +1 -1
  783. package/dist/types/functional-components/Button/Button.d.ts +9 -0
  784. package/dist/types/functional-components/Button/index.d.ts +1 -0
  785. package/dist/types/functional-components/Button/tests/snapshot.test.d.ts +1 -0
  786. package/dist/types/functional-components/Collapsible/Collapsible.d.ts +1 -1
  787. package/dist/types/functional-components/CustomSuggestionsOption/CustomSuggestionsOption.d.ts +11 -0
  788. package/dist/types/functional-components/CustomSuggestionsOption/index.d.ts +1 -0
  789. package/dist/types/functional-components/CustomSuggestionsOption/test/snapshot.test.d.ts +1 -0
  790. package/dist/types/functional-components/CustomSuggestionsOptionsGroup/CustomSuggestionsOptionsGroup.d.ts +7 -0
  791. package/dist/types/functional-components/CustomSuggestionsOptionsGroup/index.d.ts +1 -0
  792. package/dist/types/functional-components/CustomSuggestionsOptionsGroup/test/snapshot.test.d.ts +1 -0
  793. package/dist/types/functional-components/CustomSuggestionsToggle/CustomSuggestionsToggle.d.ts +7 -0
  794. package/dist/types/functional-components/CustomSuggestionsToggle/index.d.ts +1 -0
  795. package/dist/types/functional-components/CustomSuggestionsToggle/test/snapshot.test.d.ts +1 -0
  796. package/dist/types/functional-components/FieldControl/FieldControl.d.ts +31 -0
  797. package/dist/types/functional-components/FieldControl/index.d.ts +1 -0
  798. package/dist/types/functional-components/FormField/FormField.d.ts +41 -0
  799. package/dist/types/functional-components/FormField/index.d.ts +1 -0
  800. package/dist/types/functional-components/FormField/tests/snapshot.test.d.ts +1 -0
  801. package/dist/types/functional-components/FormFieldCounter/FormFieldCounter.d.ts +8 -0
  802. package/dist/types/functional-components/FormFieldCounter/index.d.ts +1 -0
  803. package/dist/types/functional-components/FormFieldCounter/tests/snapshot.test.d.ts +1 -0
  804. package/dist/types/functional-components/FormFieldHint/FormFieldHint.d.ts +8 -0
  805. package/dist/types/functional-components/FormFieldHint/index.d.ts +1 -0
  806. package/dist/types/functional-components/FormFieldHint/tests/snapshot.test.d.ts +1 -0
  807. package/dist/types/functional-components/FormFieldLabel/FormFieldLabel.d.ts +18 -0
  808. package/dist/types/functional-components/FormFieldLabel/index.d.ts +1 -0
  809. package/dist/types/functional-components/FormFieldLabel/tests/snapshot.test.d.ts +1 -0
  810. package/dist/types/functional-components/FormFieldMsg/FormFieldMsg.d.ts +7 -6
  811. package/dist/types/functional-components/FormFieldMsg/tests/snapshort.test.d.ts +1 -0
  812. package/dist/types/functional-components/FormFieldTooltip/FormFieldTooltip.d.ts +12 -0
  813. package/dist/types/functional-components/FormFieldTooltip/index.d.ts +1 -0
  814. package/dist/types/functional-components/FormFieldTooltip/tests/snapshort.test.d.ts +1 -0
  815. package/dist/types/functional-components/Heading/Heading.d.ts +21 -0
  816. package/dist/types/functional-components/Heading/index.d.ts +1 -0
  817. package/dist/types/functional-components/Heading/test/Heading.test.d.ts +1 -0
  818. package/dist/types/functional-components/Heading/test/snapshot.test.d.ts +1 -0
  819. package/dist/types/functional-components/Icon/Icon.d.ts +11 -0
  820. package/dist/types/functional-components/Icon/index.d.ts +1 -0
  821. package/dist/types/functional-components/Icon/tests/snapshot.test.d.ts +1 -0
  822. package/dist/types/functional-components/IconButton/IconButton.d.ts +19 -0
  823. package/dist/types/functional-components/IconButton/index.d.ts +1 -0
  824. package/dist/types/functional-components/IconButton/tests/snapshot.test.d.ts +1 -0
  825. package/dist/types/functional-components/InputAdornment/InputAdornment.d.ts +7 -0
  826. package/dist/types/functional-components/InputAdornment/index.d.ts +1 -0
  827. package/dist/types/functional-components/InputAdornment/tests/snapshot.test.d.ts +1 -0
  828. package/dist/types/functional-components/InputContainer/InputContainer.d.ts +16 -0
  829. package/dist/types/functional-components/InputContainer/index.d.ts +1 -0
  830. package/dist/types/functional-components/InputContainer/tests/snapshot.test.d.ts +1 -0
  831. package/dist/types/functional-components/InternalUnderlinedBadgeText/InternalUnderlinedBadgeText.d.ts +8 -0
  832. package/dist/types/functional-components/InternalUnderlinedBadgeText/index.d.ts +1 -0
  833. package/dist/types/functional-components/Span/IconHelper.d.ts +6 -0
  834. package/dist/types/functional-components/Span/LabelHelper.d.ts +9 -0
  835. package/dist/types/functional-components/Span/Span.d.ts +12 -0
  836. package/dist/types/functional-components/Span/SpanCoreHelper.d.ts +9 -0
  837. package/dist/types/functional-components/Span/index.d.ts +1 -0
  838. package/dist/types/functional-components/Span/test/snapshot.test.d.ts +1 -0
  839. package/dist/types/functional-components/Suggestions/Suggestions.d.ts +9 -0
  840. package/dist/types/functional-components/Suggestions/index.d.ts +1 -0
  841. package/dist/types/functional-components/Suggestions/tests/snapshot.test.d.ts +1 -0
  842. package/dist/types/functional-components/ToastItem/ToastItem.d.ts +10 -0
  843. package/dist/types/functional-components/ToastItem/index.d.ts +1 -0
  844. package/dist/types/functional-components/ToastItem/tests/snapshot.test.d.ts +1 -0
  845. package/dist/types/functional-components/index.d.ts +1 -1
  846. package/dist/types/functional-components/inputs/Checkbox/Checkbox.d.ts +10 -0
  847. package/dist/types/functional-components/inputs/Checkbox/index.d.ts +1 -0
  848. package/dist/types/functional-components/inputs/Combobox/Combobox.d.ts +10 -0
  849. package/dist/types/functional-components/inputs/Input/Input.d.ts +16 -0
  850. package/dist/types/functional-components/inputs/Input/index.d.ts +1 -0
  851. package/dist/types/functional-components/inputs/Input/tests/snapshot.test.d.ts +1 -0
  852. package/dist/types/functional-components/inputs/NativeOption/NativeOption.d.ts +12 -0
  853. package/dist/types/functional-components/inputs/NativeOption/index.d.ts +1 -0
  854. package/dist/types/functional-components/inputs/NativeOption/tests/snapshot.test.d.ts +1 -0
  855. package/dist/types/functional-components/inputs/NativeOptionList/NativeOptionList.d.ts +14 -0
  856. package/dist/types/functional-components/inputs/NativeOptionList/index.d.ts +1 -0
  857. package/dist/types/functional-components/inputs/NativeOptionList/tests/snapshot.test.d.ts +1 -0
  858. package/dist/types/functional-components/inputs/NativeSelect/NativeSelect.d.ts +12 -0
  859. package/dist/types/functional-components/inputs/NativeSelect/index.d.ts +1 -0
  860. package/dist/types/functional-components/inputs/NativeSelect/tests/snapshot.test.d.ts +1 -0
  861. package/dist/types/functional-components/inputs/TextArea/TextArea.d.ts +11 -0
  862. package/dist/types/functional-components/inputs/TextArea/index.d.ts +1 -0
  863. package/dist/types/functional-components/inputs/TextArea/tests/snapshot.test.d.ts +1 -0
  864. package/dist/types/functional-components/inputs/_helpers/getDefaultProps.d.ts +11 -0
  865. package/dist/types/functional-components/inputs/_helpers/getDefaultProps.test.d.ts +1 -0
  866. package/dist/types/functional-components/inputs/_types/index.d.ts +6 -0
  867. package/dist/types/index.d.ts +1 -0
  868. package/dist/types/locales/de.d.ts +2 -0
  869. package/dist/types/locales/en.d.ts +2 -0
  870. package/dist/types/schema/components/abbr.d.ts +3 -3
  871. package/dist/types/schema/components/badge.d.ts +5 -3
  872. package/dist/types/schema/components/button.d.ts +1 -0
  873. package/dist/types/schema/components/combobox.d.ts +7 -8
  874. package/dist/types/schema/components/form.d.ts +3 -3
  875. package/dist/types/schema/components/icon.d.ts +1 -0
  876. package/dist/types/schema/components/index.d.ts +1 -1
  877. package/dist/types/schema/components/input-checkbox.d.ts +3 -8
  878. package/dist/types/schema/components/input-color.d.ts +7 -10
  879. package/dist/types/schema/components/input-date.d.ts +6 -8
  880. package/dist/types/schema/components/input-email.d.ts +7 -10
  881. package/dist/types/schema/components/input-file.d.ts +7 -12
  882. package/dist/types/schema/components/input-number.d.ts +6 -8
  883. package/dist/types/schema/components/input-password.d.ts +8 -11
  884. package/dist/types/schema/components/input-radio.d.ts +3 -8
  885. package/dist/types/schema/components/input-range.d.ts +7 -10
  886. package/dist/types/schema/components/input-text.d.ts +7 -10
  887. package/dist/types/schema/components/input.d.ts +4 -4
  888. package/dist/types/schema/components/link-button.d.ts +2 -2
  889. package/dist/types/schema/components/link.d.ts +2 -2
  890. package/dist/types/schema/components/modal.d.ts +3 -4
  891. package/dist/types/schema/components/pagination.d.ts +2 -2
  892. package/dist/types/schema/components/select.d.ts +8 -10
  893. package/dist/types/schema/components/single-select.d.ts +7 -9
  894. package/dist/types/schema/components/table.d.ts +7 -16
  895. package/dist/types/schema/components/tableStateless.d.ts +5 -8
  896. package/dist/types/schema/components/tabs.d.ts +3 -3
  897. package/dist/types/schema/components/textarea.d.ts +8 -12
  898. package/dist/types/schema/components/toaster.d.ts +0 -2
  899. package/dist/types/schema/enums/{events.d.ts → callback.d.ts} +6 -4
  900. package/dist/types/schema/enums/index.d.ts +1 -1
  901. package/dist/types/schema/index.d.ts +1 -1
  902. package/dist/types/schema/interfaces/EventDetail.d.ts +4 -0
  903. package/dist/types/schema/props/accordion-callbacks.d.ts +2 -2
  904. package/dist/types/schema/props/alert.d.ts +0 -2
  905. package/dist/types/schema/props/button-callbacks.d.ts +3 -3
  906. package/dist/types/schema/props/details-callbacks.d.ts +2 -2
  907. package/dist/types/schema/props/hide-msg.d.ts +7 -0
  908. package/dist/types/schema/props/icons.d.ts +1 -5
  909. package/dist/types/schema/props/index.d.ts +1 -1
  910. package/dist/types/schema/props/link-on-callbacks.d.ts +2 -2
  911. package/dist/types/schema/props/min-width.d.ts +7 -0
  912. package/dist/types/schema/props/msg.d.ts +6 -1
  913. package/dist/types/schema/props/popover-callbacks.d.ts +2 -2
  914. package/dist/types/schema/props/table-callbacks.d.ts +4 -4
  915. package/dist/types/schema/props/variant/modal.d.ts +8 -0
  916. package/dist/types/schema/tag-names.d.ts +45 -48
  917. package/dist/types/schema/types/icons.d.ts +1 -5
  918. package/dist/types/schema/types/input/control/number.d.ts +4 -6
  919. package/dist/types/schema/types/input/types.d.ts +6 -6
  920. package/dist/types/schema/types/table.d.ts +1 -1
  921. package/dist/types/utils/events.d.ts +19 -5
  922. package/doc/abbr.md +7 -48
  923. package/doc/accordion.md +1 -118
  924. package/doc/alert.md +2 -86
  925. package/doc/avatar.md +1 -45
  926. package/doc/badge.md +1 -96
  927. package/doc/breadcrumb.md +1 -84
  928. package/doc/button-link.md +1 -59
  929. package/doc/button.md +1 -128
  930. package/doc/card.md +2 -66
  931. package/doc/combobox.md +21 -72
  932. package/doc/components.md +1 -1
  933. package/doc/details.md +1 -99
  934. package/doc/drawer.md +1 -127
  935. package/doc/form.md +1 -21
  936. package/doc/heading.md +5 -38
  937. package/doc/icon.md +1 -43
  938. package/doc/image.md +1 -51
  939. package/doc/input-checkbox.md +26 -116
  940. package/doc/input-color.md +21 -77
  941. package/doc/input-date.md +27 -138
  942. package/doc/input-email.md +28 -105
  943. package/doc/input-file.md +21 -98
  944. package/doc/input-number.md +27 -95
  945. package/doc/input-password.md +27 -96
  946. package/doc/input-radio.md +20 -129
  947. package/doc/input-range.md +23 -110
  948. package/doc/input-text.md +29 -121
  949. package/doc/kolibri.md +1 -18
  950. package/doc/link-button.md +1 -37
  951. package/doc/link.md +1 -82
  952. package/doc/modal.md +7 -97
  953. package/doc/nav.md +1 -110
  954. package/doc/pagination.md +1 -42
  955. package/doc/progress.md +1 -41
  956. package/doc/quote.md +1 -63
  957. package/doc/select.md +23 -148
  958. package/doc/single-select.md +21 -51
  959. package/doc/skip-nav.md +1 -50
  960. package/doc/spin.md +1 -113
  961. package/doc/split-button.md +1 -25
  962. package/doc/table-stateful.md +13 -200
  963. package/doc/table-stateless.md +10 -81
  964. package/doc/tabs.md +1 -89
  965. package/doc/textarea.md +5 -90
  966. package/doc/toaster.md +4 -74
  967. package/doc/toolbar.md +1 -46
  968. package/doc/tree-item.md +1 -3
  969. package/doc/tree.md +1 -70
  970. package/doc/version.md +1 -23
  971. package/package.json +2 -1
  972. package/vscode-custom-data.json +146 -522
  973. package/dist/cjs/Alert-75d85d8a.js +0 -4
  974. package/dist/cjs/Alert-75d85d8a.js.map +0 -1
  975. package/dist/cjs/Collapsible-17d8df23.js +0 -4
  976. package/dist/cjs/Collapsible-17d8df23.js.map +0 -1
  977. package/dist/cjs/FormFieldMsg-5ce558f2.js +0 -4
  978. package/dist/cjs/FormFieldMsg-5ce558f2.js.map +0 -1
  979. package/dist/cjs/InternalUnderlinedBadgeText-baf02c90.js +0 -4
  980. package/dist/cjs/InternalUnderlinedBadgeText-baf02c90.js.map +0 -1
  981. package/dist/cjs/aria-expanded-7d8d2aca.js.map +0 -1
  982. package/dist/cjs/badge-text-8d3864bd.js +0 -4
  983. package/dist/cjs/badge-text-8d3864bd.js.map +0 -1
  984. package/dist/cjs/bund-4be96755.js +0 -4
  985. package/dist/cjs/bund-4be96755.js.map +0 -1
  986. package/dist/cjs/component-names-2c750b1b.js +0 -4
  987. package/dist/cjs/component-names-2c750b1b.js.map +0 -1
  988. package/dist/cjs/controller-4c62765f.js +0 -4
  989. package/dist/cjs/controller-4c62765f.js.map +0 -1
  990. package/dist/cjs/controller-ee67ec39.js +0 -4
  991. package/dist/cjs/controller-icon-b978babc.js +0 -4
  992. package/dist/cjs/controller-icon-b978babc.js.map +0 -1
  993. package/dist/cjs/events-221fcb43.js +0 -4
  994. package/dist/cjs/events-221fcb43.js.map +0 -1
  995. package/dist/cjs/events-275a2a5e.js +0 -4
  996. package/dist/cjs/events-275a2a5e.js.map +0 -1
  997. package/dist/cjs/i18n-737701e2.js +0 -4
  998. package/dist/cjs/i18n-737701e2.js.map +0 -1
  999. package/dist/cjs/icons-f0f3f9c5.js.map +0 -1
  1000. package/dist/cjs/index-399c8b52.js +0 -4
  1001. package/dist/cjs/kol-button-group-wc.cjs.entry.js +0 -4
  1002. package/dist/cjs/kol-button-group-wc.cjs.entry.js.map +0 -1
  1003. package/dist/cjs/kol-button-group.cjs.entry.js +0 -4
  1004. package/dist/cjs/kol-button-group.cjs.entry.js.map +0 -1
  1005. package/dist/cjs/kol-heading-wc.cjs.entry.js +0 -4
  1006. package/dist/cjs/kol-heading-wc.cjs.entry.js.map +0 -1
  1007. package/dist/cjs/kol-indented-text-wc.cjs.entry.js +0 -4
  1008. package/dist/cjs/kol-indented-text-wc.cjs.entry.js.map +0 -1
  1009. package/dist/cjs/kol-indented-text.cjs.entry.js +0 -4
  1010. package/dist/cjs/kol-indented-text.cjs.entry.js.map +0 -1
  1011. package/dist/cjs/kol-input.cjs.entry.js +0 -4
  1012. package/dist/cjs/kol-input.cjs.entry.js.map +0 -1
  1013. package/dist/cjs/kol-link-group.cjs.entry.js +0 -4
  1014. package/dist/cjs/kol-link-group.cjs.entry.js.map +0 -1
  1015. package/dist/cjs/kol-logo.cjs.entry.js +0 -4
  1016. package/dist/cjs/kol-logo.cjs.entry.js.map +0 -1
  1017. package/dist/cjs/kol-span-wc.cjs.entry.js +0 -4
  1018. package/dist/cjs/kol-span-wc.cjs.entry.js.map +0 -1
  1019. package/dist/cjs/kol-symbol.cjs.entry.js +0 -4
  1020. package/dist/cjs/kol-symbol.cjs.entry.js.map +0 -1
  1021. package/dist/cjs/kol-table.cjs.entry.js +0 -4
  1022. package/dist/cjs/kol-table.cjs.entry.js.map +0 -1
  1023. package/dist/cjs/reuse-8cfefa9b.js +0 -4
  1024. package/dist/cjs/reuse-8cfefa9b.js.map +0 -1
  1025. package/dist/cjs/tslib.es6-16e4524f.js.map +0 -1
  1026. package/dist/components/FormFieldMsg.js +0 -4
  1027. package/dist/components/FormFieldMsg.js.map +0 -1
  1028. package/dist/components/aria-expanded.js.map +0 -1
  1029. package/dist/components/badge-text.js +0 -4
  1030. package/dist/components/badge-text.js.map +0 -1
  1031. package/dist/components/bund.js +0 -4
  1032. package/dist/components/bund.js.map +0 -1
  1033. package/dist/components/controller-icon.js +0 -4
  1034. package/dist/components/controller-icon.js.map +0 -1
  1035. package/dist/components/controller5.js +0 -4
  1036. package/dist/components/controller5.js.map +0 -1
  1037. package/dist/components/events2.js +0 -4
  1038. package/dist/components/events2.js.map +0 -1
  1039. package/dist/components/kol-button-group-wc.d.ts +0 -11
  1040. package/dist/components/kol-button-group-wc.js +0 -4
  1041. package/dist/components/kol-button-group-wc.js.map +0 -1
  1042. package/dist/components/kol-button-group.d.ts +0 -11
  1043. package/dist/components/kol-button-group.js +0 -4
  1044. package/dist/components/kol-button-group.js.map +0 -1
  1045. package/dist/components/kol-heading-wc.d.ts +0 -11
  1046. package/dist/components/kol-heading-wc.js +0 -4
  1047. package/dist/components/kol-heading-wc.js.map +0 -1
  1048. package/dist/components/kol-indented-text-wc.d.ts +0 -11
  1049. package/dist/components/kol-indented-text-wc.js +0 -4
  1050. package/dist/components/kol-indented-text-wc.js.map +0 -1
  1051. package/dist/components/kol-indented-text.d.ts +0 -11
  1052. package/dist/components/kol-indented-text.js +0 -4
  1053. package/dist/components/kol-indented-text.js.map +0 -1
  1054. package/dist/components/kol-input.d.ts +0 -11
  1055. package/dist/components/kol-input.js +0 -4
  1056. package/dist/components/kol-input.js.map +0 -1
  1057. package/dist/components/kol-link-group.d.ts +0 -11
  1058. package/dist/components/kol-link-group.js +0 -4
  1059. package/dist/components/kol-link-group.js.map +0 -1
  1060. package/dist/components/kol-logo.d.ts +0 -11
  1061. package/dist/components/kol-logo.js +0 -4
  1062. package/dist/components/kol-logo.js.map +0 -1
  1063. package/dist/components/kol-span-wc.d.ts +0 -11
  1064. package/dist/components/kol-span-wc.js +0 -4
  1065. package/dist/components/kol-span-wc.js.map +0 -1
  1066. package/dist/components/kol-symbol.d.ts +0 -11
  1067. package/dist/components/kol-symbol.js +0 -4
  1068. package/dist/components/kol-symbol.js.map +0 -1
  1069. package/dist/components/kol-table.d.ts +0 -11
  1070. package/dist/components/kol-table.js +0 -4
  1071. package/dist/components/kol-table.js.map +0 -1
  1072. package/dist/esm/Alert-6efb8352.js +0 -4
  1073. package/dist/esm/Alert-6efb8352.js.map +0 -1
  1074. package/dist/esm/Collapsible-9a236c55.js +0 -4
  1075. package/dist/esm/Collapsible-9a236c55.js.map +0 -1
  1076. package/dist/esm/FormFieldMsg-02436ede.js +0 -4
  1077. package/dist/esm/FormFieldMsg-02436ede.js.map +0 -1
  1078. package/dist/esm/InternalUnderlinedBadgeText-6a05da16.js +0 -4
  1079. package/dist/esm/InternalUnderlinedBadgeText-6a05da16.js.map +0 -1
  1080. package/dist/esm/aria-expanded-9f877821.js.map +0 -1
  1081. package/dist/esm/badge-text-65c680b2.js +0 -4
  1082. package/dist/esm/badge-text-65c680b2.js.map +0 -1
  1083. package/dist/esm/bund-ad41b762.js +0 -4
  1084. package/dist/esm/bund-ad41b762.js.map +0 -1
  1085. package/dist/esm/component-names-6ca7e863.js +0 -4
  1086. package/dist/esm/component-names-6ca7e863.js.map +0 -1
  1087. package/dist/esm/controller-1a0e05c9.js +0 -4
  1088. package/dist/esm/controller-1a0e05c9.js.map +0 -1
  1089. package/dist/esm/controller-4a9a50f2.js +0 -4
  1090. package/dist/esm/controller-icon-f9b7e1f9.js +0 -4
  1091. package/dist/esm/controller-icon-f9b7e1f9.js.map +0 -1
  1092. package/dist/esm/events-29e84d75.js +0 -4
  1093. package/dist/esm/events-29e84d75.js.map +0 -1
  1094. package/dist/esm/events-5b899bd2.js +0 -4
  1095. package/dist/esm/events-5b899bd2.js.map +0 -1
  1096. package/dist/esm/i18n-7ea9f137.js +0 -4
  1097. package/dist/esm/i18n-7ea9f137.js.map +0 -1
  1098. package/dist/esm/icons-c857b77d.js +0 -4
  1099. package/dist/esm/icons-c857b77d.js.map +0 -1
  1100. package/dist/esm/index-f0de5c73.js +0 -4
  1101. package/dist/esm/kol-button-group-wc.entry.js +0 -4
  1102. package/dist/esm/kol-button-group-wc.entry.js.map +0 -1
  1103. package/dist/esm/kol-button-group.entry.js +0 -4
  1104. package/dist/esm/kol-button-group.entry.js.map +0 -1
  1105. package/dist/esm/kol-heading-wc.entry.js +0 -4
  1106. package/dist/esm/kol-heading-wc.entry.js.map +0 -1
  1107. package/dist/esm/kol-indented-text-wc.entry.js +0 -4
  1108. package/dist/esm/kol-indented-text-wc.entry.js.map +0 -1
  1109. package/dist/esm/kol-indented-text.entry.js +0 -4
  1110. package/dist/esm/kol-indented-text.entry.js.map +0 -1
  1111. package/dist/esm/kol-input.entry.js +0 -4
  1112. package/dist/esm/kol-input.entry.js.map +0 -1
  1113. package/dist/esm/kol-link-group.entry.js +0 -4
  1114. package/dist/esm/kol-link-group.entry.js.map +0 -1
  1115. package/dist/esm/kol-logo.entry.js +0 -4
  1116. package/dist/esm/kol-logo.entry.js.map +0 -1
  1117. package/dist/esm/kol-span-wc.entry.js +0 -4
  1118. package/dist/esm/kol-span-wc.entry.js.map +0 -1
  1119. package/dist/esm/kol-symbol.entry.js +0 -4
  1120. package/dist/esm/kol-symbol.entry.js.map +0 -1
  1121. package/dist/esm/kol-table.entry.js +0 -4
  1122. package/dist/esm/kol-table.entry.js.map +0 -1
  1123. package/dist/esm/reuse-32931294.js +0 -4
  1124. package/dist/esm/reuse-32931294.js.map +0 -1
  1125. package/dist/esm/tslib.es6-2e5096f8.js.map +0 -1
  1126. package/dist/kolibri/Alert-6efb8352.js +0 -4
  1127. package/dist/kolibri/Alert-6efb8352.js.map +0 -1
  1128. package/dist/kolibri/Collapsible-9a236c55.js +0 -4
  1129. package/dist/kolibri/Collapsible-9a236c55.js.map +0 -1
  1130. package/dist/kolibri/FormFieldMsg-02436ede.js +0 -4
  1131. package/dist/kolibri/FormFieldMsg-02436ede.js.map +0 -1
  1132. package/dist/kolibri/InternalUnderlinedBadgeText-6a05da16.js +0 -4
  1133. package/dist/kolibri/InternalUnderlinedBadgeText-6a05da16.js.map +0 -1
  1134. package/dist/kolibri/aria-expanded-9f877821.js +0 -4
  1135. package/dist/kolibri/aria-expanded-9f877821.js.map +0 -1
  1136. package/dist/kolibri/badge-text-65c680b2.js +0 -4
  1137. package/dist/kolibri/badge-text-65c680b2.js.map +0 -1
  1138. package/dist/kolibri/bund-ad41b762.js +0 -4
  1139. package/dist/kolibri/bund-ad41b762.js.map +0 -1
  1140. package/dist/kolibri/component-names-6ca7e863.js +0 -4
  1141. package/dist/kolibri/component-names-6ca7e863.js.map +0 -1
  1142. package/dist/kolibri/controller-1a0e05c9.js +0 -4
  1143. package/dist/kolibri/controller-1a0e05c9.js.map +0 -1
  1144. package/dist/kolibri/controller-4a9a50f2.js +0 -4
  1145. package/dist/kolibri/controller-icon-f9b7e1f9.js +0 -4
  1146. package/dist/kolibri/controller-icon-f9b7e1f9.js.map +0 -1
  1147. package/dist/kolibri/events-29e84d75.js +0 -4
  1148. package/dist/kolibri/events-29e84d75.js.map +0 -1
  1149. package/dist/kolibri/events-5b899bd2.js +0 -4
  1150. package/dist/kolibri/events-5b899bd2.js.map +0 -1
  1151. package/dist/kolibri/i18n-5fe08f1c.js +0 -4
  1152. package/dist/kolibri/i18n-7ea9f137.js +0 -4
  1153. package/dist/kolibri/i18n-7ea9f137.js.map +0 -1
  1154. package/dist/kolibri/icons-c857b77d.js +0 -4
  1155. package/dist/kolibri/icons-c857b77d.js.map +0 -1
  1156. package/dist/kolibri/index-f0de5c73.js.map +0 -1
  1157. package/dist/kolibri/kol-button-group-wc.entry.js +0 -4
  1158. package/dist/kolibri/kol-button-group-wc.entry.js.map +0 -1
  1159. package/dist/kolibri/kol-button-group.entry.js +0 -4
  1160. package/dist/kolibri/kol-button-group.entry.js.map +0 -1
  1161. package/dist/kolibri/kol-heading-wc.entry.js +0 -4
  1162. package/dist/kolibri/kol-heading-wc.entry.js.map +0 -1
  1163. package/dist/kolibri/kol-indented-text-wc.entry.js +0 -4
  1164. package/dist/kolibri/kol-indented-text-wc.entry.js.map +0 -1
  1165. package/dist/kolibri/kol-indented-text.entry.js +0 -4
  1166. package/dist/kolibri/kol-indented-text.entry.js.map +0 -1
  1167. package/dist/kolibri/kol-input.entry.js +0 -4
  1168. package/dist/kolibri/kol-input.entry.js.map +0 -1
  1169. package/dist/kolibri/kol-link-group.entry.js +0 -4
  1170. package/dist/kolibri/kol-link-group.entry.js.map +0 -1
  1171. package/dist/kolibri/kol-logo.entry.js +0 -4
  1172. package/dist/kolibri/kol-logo.entry.js.map +0 -1
  1173. package/dist/kolibri/kol-span-wc.entry.js +0 -4
  1174. package/dist/kolibri/kol-span-wc.entry.js.map +0 -1
  1175. package/dist/kolibri/kol-symbol.entry.js +0 -4
  1176. package/dist/kolibri/kol-symbol.entry.js.map +0 -1
  1177. package/dist/kolibri/kol-table.entry.js +0 -4
  1178. package/dist/kolibri/kol-table.entry.js.map +0 -1
  1179. package/dist/kolibri/reuse-32931294.js +0 -4
  1180. package/dist/kolibri/reuse-32931294.js.map +0 -1
  1181. package/dist/kolibri/tooltip-align-5902aa96.js +0 -4
  1182. package/dist/kolibri/tslib.es6-2e5096f8.js.map +0 -1
  1183. package/dist/types/components/button-group/component.d.ts +0 -6
  1184. package/dist/types/components/button-group/shadow.d.ts +0 -5
  1185. package/dist/types/components/heading/component.d.ts +0 -17
  1186. package/dist/types/components/indented-text/component.d.ts +0 -6
  1187. package/dist/types/components/indented-text/shadow.d.ts +0 -5
  1188. package/dist/types/components/input/component.d.ts +0 -35
  1189. package/dist/types/components/link-group/shadow.d.ts +0 -17
  1190. package/dist/types/components/logo/shadow.d.ts +0 -10
  1191. package/dist/types/components/logo/types.d.ts +0 -11
  1192. package/dist/types/components/span/InternalUnderlinedBadgeText.d.ts +0 -7
  1193. package/dist/types/components/span/component.d.ts +0 -17
  1194. package/dist/types/components/symbol/component.d.ts +0 -11
  1195. package/dist/types/components/table/shadow.d.ts +0 -15
  1196. package/dist/types/components/toaster/InternalToast.d.ts +0 -9
  1197. package/dist/types/schema/components/button-group.d.ts +0 -9
  1198. package/dist/types/schema/components/indented-text.d.ts +0 -9
  1199. package/dist/types/schema/components/link-group.d.ts +0 -22
  1200. package/dist/types/schema/components/symbol.d.ts +0 -12
  1201. package/dist/types/schema/props/hide-error.d.ts +0 -7
  1202. package/doc/button-group.md +0 -96
  1203. package/doc/indented-text.md +0 -52
  1204. package/doc/link-group.md +0 -98
  1205. package/doc/logo.md +0 -67
  1206. package/doc/popover.md +0 -26
  1207. package/doc/span.md +0 -32
  1208. package/doc/symbol.md +0 -44
  1209. package/doc/table.md +0 -201
  1210. package/doc/tooltip.md +0 -47
  1211. /package/dist/cjs/{tslib.es6-16e4524f.js → tslib.es6-5e301284.js} +0 -0
  1212. /package/dist/esm/{tslib.es6-2e5096f8.js → tslib.es6-1173d062.js} +0 -0
  1213. /package/dist/kolibri/{align-878fb132.js.map → align-60c95351.js.map} +0 -0
  1214. /package/dist/kolibri/{align-floating-elements-db77d917.js.map → align-floating-elements-387a1e9b.js.map} +0 -0
  1215. /package/dist/kolibri/{app-globals-3e243dfb.js.map → app-globals-1e7f1d4a.js.map} +0 -0
  1216. /package/dist/kolibri/{common-0f1f2276.js.map → common-54bf85ba.js.map} +0 -0
  1217. /package/dist/kolibri/{controller-a3c1b90d.js.map → controller-868d4820.js.map} +0 -0
  1218. /package/dist/kolibri/{controller-96d99a72.js.map → controller-88aff6ff.js.map} +0 -0
  1219. /package/dist/kolibri/{controller-afbd59b5.js.map → controller-c6361758.js.map} +0 -0
  1220. /package/dist/kolibri/{dev.utils-0b748391.js.map → dev.utils-930d9493.js.map} +0 -0
  1221. /package/dist/kolibri/{devtools-3291e772.js.map → devtools-878bf068.js.map} +0 -0
  1222. /package/dist/kolibri/{i18n-5fe08f1c.js.map → i18n-005310a7.js.map} +0 -0
  1223. /package/dist/kolibri/{tooltip-align-5902aa96.js.map → tooltip-align-c6eb75ce.js.map} +0 -0
  1224. /package/dist/kolibri/{tslib.es6-2e5096f8.js → tslib.es6-1173d062.js} +0 -0
@@ -1 +1 @@
1
- {"file":"kol-kolibri.entry.js","mappings":";;;;;;;;;;;;AAAA,MAAM,eAAe,GAAG,w5IAAw5I,CAAC;AACj7I,gCAAe,eAAe;;MCkBjB,UAAU;;;QAyCd,sBAAiB,GAA2C,CAAC,SAAkB,EAAE,SAA+B;YACvH,IAAI,OAAO,SAAS,KAAK,QAAQ,EAAE;gBAClC,MAAM,IAAI,GAAG,SAAS,CAAC,SAAS,CAAC,CAAC;gBAClC,SAAS,CAAC,GAAG,CAAC,QAAQ,EAAE;oBACvB,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC;oBACZ,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;oBACd,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;iBACb,CAAC,CAAC;aACH;iBAAM;gBACN,OAAO,CAAC,sGAAsG,CAAC,CA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AY,EAAE,IAAI;SAClB,CAAC,CAAC;KACH;IAEM,iBAAiB;QACvB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;KACpC;;;;;;;;;;;;","names":[],"sources":["src/components/kolibri/style.scss?tag=kol-kolibri&mode=default&encapsulation=shadow","src/components/kolibri/shadow.tsx"],"sourcesContent":["@use '../@shared/mixins' as *;\n@use '../style' as *;\n\n@layer kol-component {\n\t:host {\n\t\tdisplay: inline-block;\n\t}\n\n\ttext {\n\t\tfont-size: rem(90);\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 { devHint, validateColor, watchBoolean } from '../../schema';\nimport { Component, Host, Prop, State, Watch, h } from '@stencil/core';\n\nimport { colorRgba } from './color-rgba';\n\nimport { translate } from '../../i18n';\n\nimport type { JSX } from '@stencil/core';\nimport type { Generic } from 'adopted-style-sheets';\n\nimport type { KolibriAPI, KolibriStates, PropColor, Stringified } from '../../schema';\n\n@Component({\n\ttag: 'kol-kolibri',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolKolibri implements KolibriAPI {\n\tpublic render(): JSX.Element {\n\t\tconst fillColor = `rgb(${this.state._color.red},${this.state._color.green},${this.state._color.blue})`;\n\t\treturn (\n\t\t\t<Host class=\"kol-kolibri\">\n\t\t\t\t<svg role=\"img\" aria-label={translate('kol-kolibri-logo')} xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 600 600\" fill={fillColor}>\n\t\t\t\t\t<path d=\"M353 322L213 304V434L353 322Z\" />\n\t\t\t\t\t<path d=\"M209 564V304L149 434L209 564Z\" />\n\t\t\t\t\t<path d=\"M357 316L417 250L361 210L275 244L357 316Z\" />\n\t\t\t\t\t<path d=\"M329 218L237 92L250 222L272 241L329 218Z\" />\n\t\t\t\t\t<path d=\"M353 318L35 36L213 300L353 318Z\" />\n\t\t\t\t\t<path d=\"M391 286L565 272L421 252L391 286Z\" />\n\t\t\t\t\t{this.state._labeled === true && (\n\t\t\t\t\t\t<text x=\"250\" y=\"525\" fill={fillColor}>\n\t\t\t\t\t\t\tKoliBri\n\t\t\t\t\t\t</text>\n\t\t\t\t\t)}\n\t\t\t\t</svg>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the color of the logo and label.\n\t */\n\t@Prop() public _color?: Stringified<PropColor> = '#003c78';\n\n\t/**\n\t * Defines whether the component has a label.\n\t */\n\t@Prop() public _labeled?: boolean = true;\n\n\t@State() public state: KolibriStates = {\n\t\t_color: {\n\t\t\tred: 0,\n\t\t\tgreen: 60,\n\t\t\tblue: 120,\n\t\t},\n\t\t_labeled: true,\n\t};\n\n\tprivate handleColorChange: Generic.Element.NextStateHooksCallback = (nextValue: unknown, nextState: Map<string, unknown>): void => {\n\t\tif (typeof nextValue === 'string') {\n\t\t\tconst rgba = colorRgba(nextValue);\n\t\t\tnextState.set('_color', {\n\t\t\t\tred: rgba[0],\n\t\t\t\tgreen: rgba[1],\n\t\t\t\tblue: rgba[2],\n\t\t\t});\n\t\t} else {\n\t\t\tdevHint(`[KolKolibri] You used the complex color schema. For the KoliBri we use need the color as hex string.`);\n\t\t}\n\t};\n\n\t@Watch('_color')\n\tpublic validateColor(value?: Stringified<PropColor>): void {\n\t\tvalidateColor(this, value, {\n\t\t\tdefaultValue: '#003c78',\n\t\t\thooks: {\n\t\t\t\tbeforePatch: this.handleColorChange,\n\t\t\t},\n\t\t});\n\t}\n\n\t@Watch('_labeled')\n\tpublic validateLabeled(value?: boolean): void {\n\t\twatchBoolean(this, '_labeled', value, {\n\t\t\tdefaultValue: true,\n\t\t});\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateColor(this._color);\n\t\tthis.validateLabeled(this._labeled);\n\t}\n}\n"],"version":3}
1
+ {"file":"kol-kolibri.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AG,EAC5C,6DAAM,CAAC,EAAC,mCAAmC,GAAG,EAC7C,IAAI,CAAC,KAAK,CAAC,QAAQ,KAAK,IAAI,KAC5B,6DAAM,KAAK,EAAC,mBAAmB,EAAC,CAAC,EAAC,KAAK,EAAC,CAAC,EAAC,KAAK,EAAC,IAAI,EAAE,SAAS,cAExD,CACP,CACI,EACL;KACF;IAmCM,aAAa,CAAC,KAA8B;QAClD,aAAa,CAAC,IAAI,EAAE,KAAK,EAAE;YAC1B,YAAY,EAAE,SAAS;YACvB,KAAK,EAAE;gBACN,WAAW,EAAE,IAAI,CAAC,iBAAiB;aACnC;SACD,CAAC,CAAC;KACH;IAGM,eAAe,CAAC,KAAe;QACrC,YAAY,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE;YACrC,YAAY,EAAE,IAAI;SAClB,CAAC,CAAC;KACH;IAEM,iBAAiB;QACvB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;KACpC;;;;;;;;;;;;","names":[],"sources":["src/components/kolibri/style.scss?tag=kol-kolibri&mode=default&encapsulation=shadow","src/components/kolibri/shadow.tsx"],"sourcesContent":["@use '../@shared/mixins' as *;\n@use '../../styles/global' as *;\n\n@layer kol-component {\n\t.kol-kolibri {\n\t\tdisplay: inline-block;\n\t\tfont-size: rem(16);\n\t\tmax-height: 100%;\n\n\t\t&__text {\n\t\t\tfont-size: rem(90);\n\t\t\tletter-spacing: normal;\n\t\t\tword-spacing: normal;\n\t\t}\n\t}\n}\n","import { devHint, validateColor, watchBoolean } from '../../schema';\nimport { Component, Prop, State, Watch, h } from '@stencil/core';\n\nimport { colorRgba } from './color-rgba';\n\nimport { translate } from '../../i18n';\n\nimport type { JSX } from '@stencil/core';\nimport type { Generic } from 'adopted-style-sheets';\n\nimport type { KolibriAPI, KolibriStates, PropColor, Stringified } from '../../schema';\n\n@Component({\n\ttag: 'kol-kolibri',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolKolibri implements KolibriAPI {\n\tpublic render(): JSX.Element {\n\t\tconst fillColor = `rgb(${this.state._color.red},${this.state._color.green},${this.state._color.blue})`;\n\t\treturn (\n\t\t\t<svg class=\"kol-kolibri\" role=\"img\" aria-label={translate('kol-kolibri-logo')} xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 600 600\" fill={fillColor}>\n\t\t\t\t<path d=\"M353 322L213 304V434L353 322Z\" />\n\t\t\t\t<path d=\"M209 564V304L149 434L209 564Z\" />\n\t\t\t\t<path d=\"M357 316L417 250L361 210L275 244L357 316Z\" />\n\t\t\t\t<path d=\"M329 218L237 92L250 222L272 241L329 218Z\" />\n\t\t\t\t<path d=\"M353 318L35 36L213 300L353 318Z\" />\n\t\t\t\t<path d=\"M391 286L565 272L421 252L391 286Z\" />\n\t\t\t\t{this.state._labeled === true && (\n\t\t\t\t\t<text class=\"kol-kolibri__text\" x=\"250\" y=\"525\" fill={fillColor}>\n\t\t\t\t\t\tKoliBri\n\t\t\t\t\t</text>\n\t\t\t\t)}\n\t\t\t</svg>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the color of the logo and label.\n\t */\n\t@Prop() public _color?: Stringified<PropColor> = '#003c78';\n\n\t/**\n\t * Defines whether the component has a label.\n\t */\n\t@Prop() public _labeled?: boolean = true;\n\n\t@State() public state: KolibriStates = {\n\t\t_color: {\n\t\t\tred: 0,\n\t\t\tgreen: 60,\n\t\t\tblue: 120,\n\t\t},\n\t\t_labeled: true,\n\t};\n\n\tprivate handleColorChange: Generic.Element.NextStateHooksCallback = (nextValue: unknown, nextState: Map<string, unknown>): void => {\n\t\tif (typeof nextValue === 'string') {\n\t\t\tconst rgba = colorRgba(nextValue);\n\t\t\tnextState.set('_color', {\n\t\t\t\tred: rgba[0],\n\t\t\t\tgreen: rgba[1],\n\t\t\t\tblue: rgba[2],\n\t\t\t});\n\t\t} else {\n\t\t\tdevHint(`[KolKolibri] You used the complex color schema. For the KoliBri we use need the color as hex string.`);\n\t\t}\n\t};\n\n\t@Watch('_color')\n\tpublic validateColor(value?: Stringified<PropColor>): void {\n\t\tvalidateColor(this, value, {\n\t\t\tdefaultValue: '#003c78',\n\t\t\thooks: {\n\t\t\t\tbeforePatch: this.handleColorChange,\n\t\t\t},\n\t\t});\n\t}\n\n\t@Watch('_labeled')\n\tpublic validateLabeled(value?: boolean): void {\n\t\twatchBoolean(this, '_labeled', value, {\n\t\t\tdefaultValue: true,\n\t\t});\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateColor(this._color);\n\t\tthis.validateLabeled(this._labeled);\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as registerInstance,h,H as Host}from"./index-f0de5c73.js";import{j as KolLinkWcTag}from"./component-names-6ca7e863.js";const defaultStyleCss="@charset \"UTF-8\";\n/*\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: calc(44rem / var(--kolibri-root-font-size, 16));\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 rem(44).\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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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 font-size: calc(16rem / var(--kolibri-root-font-size, 16));\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 /* 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 .kol-tooltip-wc {\n display: contents;\n }\n .kol-tooltip-wc .tooltip-floating {\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n /* Shared between content and arrow */\n .kol-tooltip-wc .tooltip-area {\n background-color: #fff;\n color: #000;\n }\n .kol-tooltip-wc .tooltip-arrow {\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip-wc .tooltip-content {\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n :host {\n display: inline-block;\n }\n :is(a, button) {\n display: inline-flex;\n place-items: center;\n text-align: center;\n text-decoration-line: none;\n }\n :is(a, button)::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: \"​\";\n }\n /* TODO: Why we need this? */\n :is(a, button) > .kol-span-wc {\n margin: auto;\n width: 100%;\n }\n}",KolLinkButtonDefaultStyle0=defaultStyleCss,KolLinkButton=class{constructor(n){registerInstance(this,n),this.catchRef=n=>{this.linkWcRef=n},this._accessKey=void 0,this._ariaCurrentValue=void 0,this._ariaDescription=void 0,this._customClass=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._shortKey=void 0,this._tabIndex=void 0,this._target=void 0,this._tooltipAlign="right",this._variant="normal"}async focus(){await this.kolFocus()}async kolFocus(){var n;await(null===(n=this.linkWcRef)||void 0===n?void 0:n.kolFocus())}render(){return h(Host,{key:"17537a98e3d3e082a833b0fd8970d8ed6d5121f0",class:"kol-link-button"},h(KolLinkWcTag,{key:"43c8c70e85b0bb2ef1db7b643ef0d7e5ee01023d",ref:this.catchRef,class:{button:!0,[this._variant]:"custom"!==this._variant,[this._customClass]:"custom"===this._variant&&"string"==typeof this._customClass&&this._customClass.length>0},_accessKey:this._accessKey,_ariaCurrentValue:this._ariaCurrentValue,_ariaDescription:this._ariaDescription,_disabled:this._disabled,_download:this._download,_hideLabel:this._hideLabel,_href:this._href,_icons:this._icons,_label:this._label,_on:this._on,_role:"button",_shortKey:this._shortKey,_tabIndex:this._tabIndex,_target:this._target,_tooltipAlign:this._tooltipAlign},h("slot",{key:"e151c7bb451e3a092885d7a41414084e9ffb58d3",name:"expert",slot:"expert"})))}static get delegatesFocus(){return!0}};KolLinkButton.style={default:KolLinkButtonDefaultStyle0};export{KolLinkButton as kol_link_button};
4
+ import{r as registerInstance,h}from"./index-5ec1eac2.js";import{f as KolLinkWcTag}from"./component-names-545d6582.js";const defaultStyleCss="@charset \"UTF-8\";\n/*\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: calc(44rem / var(--kolibri-root-font-size, 16));\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 rem(44).\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 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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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 .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: grid;\n place-items: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\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,\n [disabled]:focus .kol-span {\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 .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n .kol-tooltip__arrow {\n background-color: #fff;\n color: #000;\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip__content {\n background-color: #fff;\n color: #000;\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n :host {\n display: inline-block;\n }\n .kol-link {\n font-style: calc(16rem / var(--kolibri-root-font-size, 16));\n display: inline-flex;\n place-items: center;\n text-align: center;\n text-decoration-line: none;\n }\n .kol-link::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: \"​\";\n }\n .kol-link__text {\n margin: auto;\n width: 100%;\n }\n}",KolLinkButtonDefaultStyle0=defaultStyleCss,KolLinkButton=class{constructor(n){registerInstance(this,n),this.catchRef=n=>{this.linkWcRef=n},this._accessKey=void 0,this._ariaCurrentValue=void 0,this._ariaDescription=void 0,this._customClass=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._shortKey=void 0,this._target=void 0,this._tooltipAlign="right",this._variant="normal"}async kolFocus(){var n;await(null===(n=this.linkWcRef)||void 0===n?void 0:n.kolFocus())}render(){return h(KolLinkWcTag,{key:"63b766a0b393724d79e346a7d23318b5a044d5b8",ref:this.catchRef,_accessKey:this._accessKey,_ariaCurrentValue:this._ariaCurrentValue,_ariaDescription:this._ariaDescription,_customClass:this._customClass,_disabled:this._disabled,_download:this._download,_hideLabel:this._hideLabel,_href:this._href,_icons:this._icons,_label:this._label,_on:this._on,_role:"button",_shortKey:this._shortKey,_target:this._target,_tooltipAlign:this._tooltipAlign,_variant:this._variant},h("slot",{key:"c2cdcf59de68e99b8fa026bb7f2f5e99169b945c",name:"expert",slot:"expert"}))}static get delegatesFocus(){return!0}};KolLinkButton.style={default:KolLinkButtonDefaultStyle0};export{KolLinkButton as kol_link_button};
@@ -1 +1 @@
1
- {"file":"kol-link-button.entry.js","mappings":";;;;;;AAAA,MAAM,eAAe,GAAG,g0LAAg0L,CAAC;AACz1L,mCAAe,eAAe;;MC8BjB,aAAa;;;QAGR,aAAQ,GAAG,CAAC,GAA0B;YACtD,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC;SACrB,CAAC;;;;;yBAsEmC,KAAK;;0BAYJ,KAAK;;;;;;;;;6BA6CW,OAAO;wBAKX,QAAQ;;IA9HnD,MAAM,KAAK;QACjB,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;KACtB;IAGM,MAAM,QAAQ;;QACpB,OAAM,MAAA,IAAI,CAAC,SAAS,0CAAE,QAAQ,EAAE,CAAA,CAAC;KACjC;IAEM,MAAM;QACZ,QACC,EAAC,IAAI,qDAAC,KAAK,EAAC,iBAAiB,IAC5B,EAAC,YAAY,qDACZ,GAAG,EAAE,IAAI,CAAC,QAAQ,EAClB,KAAK,EAAE;gBACN,MAAM,EAAE,IAAI;gBACZ,CAAC,IAAI,CAAC,QAAkB,GAAG,IAAI,CAAC,QAAQ,KAAK,QAAQ;gBACrD,CAAC,IAAI,CAAC,YAAsB,GAAG,IAAI,CAAC,QAAQ,KAAK,QAAQ,IAAI,OAAO,IAAI,CAAC,YAAY,KAAK,QAAQ,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC;aAClI,EACD,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,EACzC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EACvC,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,KAAK,EAAC,QAAQ,EACd,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,aAAa,EAAE,IAAI,CAAC,aAAa,IAEjC,6DAAM,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,GAAQ,CAC3B,CACT,EACN;KACF;;;;;;;;;","names":[],"sources":["src/components/link-button/style.scss?tag=kol-link-button&mode=default&encapsulation=shadow","src/components/link-button/shadow.tsx"],"sourcesContent":["@use '../style' as *;\n@use '../button' as *;\n","import type {\n\tAccessKeyPropType,\n\tAlternativeButtonLinkRolePropType,\n\tAriaCurrentValuePropType,\n\tAriaDescriptionPropType,\n\tButtonVariantPropType,\n\tCustomClassPropType,\n\tDownloadPropType,\n\tFocusableElement,\n\tHrefPropType,\n\tIconsPropType,\n\tLabelWithExpertSlotPropType,\n\tLinkButtonProps,\n\tLinkOnCallbacksPropType,\n\tLinkTargetPropType,\n\tShortKeyPropType,\n\tTooltipAlignPropType,\n} from '../../schema';\nimport type { JSX } from '@stencil/core';\nimport { Component, h, Host, Method, Prop } from '@stencil/core';\nimport { KolLinkWcTag } from '../../core/component-names';\n\n@Component({\n\ttag: 'kol-link-button',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: {\n\t\tdelegatesFocus: true,\n\t},\n})\nexport class KolLinkButton implements LinkButtonProps, FocusableElement {\n\tprivate linkWcRef?: HTMLKolLinkWcElement;\n\n\tprivate readonly catchRef = (ref?: HTMLKolLinkWcElement) => {\n\t\tthis.linkWcRef = ref;\n\t};\n\n\t/**\n\t * @deprecated Use kolFocus instead.\n\t */\n\t@Method()\n\tpublic async focus() {\n\t\tawait this.kolFocus();\n\t}\n\n\t@Method()\n\tpublic async kolFocus() {\n\t\tawait this.linkWcRef?.kolFocus();\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-link-button\">\n\t\t\t\t<KolLinkWcTag\n\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\tclass={{\n\t\t\t\t\t\tbutton: true,\n\t\t\t\t\t\t[this._variant as string]: this._variant !== 'custom',\n\t\t\t\t\t\t[this._customClass as string]: this._variant === 'custom' && typeof this._customClass === 'string' && this._customClass.length > 0,\n\t\t\t\t\t}}\n\t\t\t\t\t_accessKey={this._accessKey}\n\t\t\t\t\t_ariaCurrentValue={this._ariaCurrentValue}\n\t\t\t\t\t_ariaDescription={this._ariaDescription}\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=\"button\"\n\t\t\t\t\t_shortKey={this._shortKey}\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<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 which key combination can be used to trigger or focus the interactive element of the component.\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 * Defines the value for the aria-description attribute.\n\t */\n\t@Prop() public _ariaDescription?: AriaDescriptionPropType;\n\n\t/**\n\t * Defines the custom class attribute if _variant=\"custom\" is set.\n\t */\n\t@Prop() public _customClass?: CustomClassPropType;\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 * Defines the target URI of the link.\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?: IconsPropType;\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 * Adds a visual short key hint to the component.\n\t */\n\t@Prop() public _shortKey?: ShortKeyPropType;\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/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: ButtonVariantPropType = 'normal';\n}\n"],"version":3}
1
+ {"file":"kol-link-button.entry.js","mappings":";;;;;;AAAA,MAAM,eAAe,GAAG,suLAAsuL,CAAC;AAC/vL,mCAAe,eAAe;;MC8BjB,aAAa;;;QAGR,aAAQ,GAAG,CAAC,GAA0B;YACtD,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC;SACrB,CAAC;;;;;yBAwDmC,KAAK;;0BAYJ,KAAK;;;;;;;;6BAwCW,OAAO;wBAKX,QAAQ;;IA9GnD,MAAM,QAAQ;;QACpB,OAAM,MAAA,IAAI,CAAC,SAAS,0CAAE,QAAQ,EAAE,CAAA,CAAC;KACjC;IAEM,MAAM;QACZ,QACC,EAAC,YAAY,qDACZ,GAAG,EAAE,IAAI,CAAC,QAAQ,EAClB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,EACzC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EACvC,YAAY,EAAE,IAAI,CAAC,YAAY,EAC/B,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,KAAK,EAAC,QAAQ,EACd,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAEvB,6DAAM,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,GAAQ,CAC3B,EACd;KACF;;;;;;;;;","names":[],"sources":["src/components/link-button/style.scss?tag=kol-link-button&mode=default&encapsulation=shadow","src/components/link-button/shadow.tsx"],"sourcesContent":["@use '../@shared/mixins' as *;\n@use '../../styles/global' as *;\n@use '../@shared/kol-button-mixin' as *;\n\n@include kol-button-styles('kol-link');\n","import type {\n\tAccessKeyPropType,\n\tAlternativeButtonLinkRolePropType,\n\tAriaCurrentValuePropType,\n\tAriaDescriptionPropType,\n\tButtonVariantPropType,\n\tCustomClassPropType,\n\tDownloadPropType,\n\tFocusableElement,\n\tHrefPropType,\n\tIconsPropType,\n\tLabelWithExpertSlotPropType,\n\tLinkButtonProps,\n\tLinkOnCallbacksPropType,\n\tLinkTargetPropType,\n\tShortKeyPropType,\n\tTooltipAlignPropType,\n} from '../../schema';\nimport type { JSX } from '@stencil/core';\nimport { Component, h, Method, Prop } from '@stencil/core';\nimport { KolLinkWcTag } from '../../core/component-names';\n\n@Component({\n\ttag: 'kol-link-button',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: {\n\t\tdelegatesFocus: true,\n\t},\n})\nexport class KolLinkButton implements LinkButtonProps, FocusableElement {\n\tprivate linkWcRef?: HTMLKolLinkWcElement;\n\n\tprivate readonly catchRef = (ref?: HTMLKolLinkWcElement) => {\n\t\tthis.linkWcRef = ref;\n\t};\n\n\t@Method()\n\tpublic async kolFocus() {\n\t\tawait this.linkWcRef?.kolFocus();\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<KolLinkWcTag\n\t\t\t\tref={this.catchRef}\n\t\t\t\t_accessKey={this._accessKey}\n\t\t\t\t_ariaCurrentValue={this._ariaCurrentValue}\n\t\t\t\t_ariaDescription={this._ariaDescription}\n\t\t\t\t_customClass={this._customClass}\n\t\t\t\t_disabled={this._disabled}\n\t\t\t\t_download={this._download}\n\t\t\t\t_hideLabel={this._hideLabel}\n\t\t\t\t_href={this._href}\n\t\t\t\t_icons={this._icons}\n\t\t\t\t_label={this._label}\n\t\t\t\t_on={this._on}\n\t\t\t\t_role=\"button\"\n\t\t\t\t_shortKey={this._shortKey}\n\t\t\t\t_target={this._target}\n\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t_variant={this._variant}\n\t\t\t>\n\t\t\t\t<slot name=\"expert\" slot=\"expert\"></slot>\n\t\t\t</KolLinkWcTag>\n\t\t);\n\t}\n\n\t/**\n\t * Defines which key combination can be used to trigger or focus the interactive element of the component.\n\t */\n\t@Prop() public _accessKey?: 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 * Defines the value for the aria-description attribute.\n\t */\n\t@Prop() public _ariaDescription?: AriaDescriptionPropType;\n\n\t/**\n\t * Defines the custom class attribute if _variant=\"custom\" is set.\n\t */\n\t@Prop() public _customClass?: CustomClassPropType;\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 * Defines the target URI of the link.\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?: IconsPropType;\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 * Adds a visual short key hint to the component.\n\t */\n\t@Prop() public _shortKey?: ShortKeyPropType;\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/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: ButtonVariantPropType = 'normal';\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as registerInstance,h,H as Host}from"./index-f0de5c73.js";import{o as onLocationChange}from"./ariaCurrentService-6fe36ebc.js";import{p as preventDefaultAndStopPropagation}from"./events-29e84d75.js";import{n as nonce}from"./dev.utils-0b748391.js";import{a as KolTooltipWcTag,f as KolSpanWcTag,g as KolIconTag}from"./component-names-6ca7e863.js";import{t as translate}from"./i18n-5fe08f1c.js";import{v as validateAccessKey,a as validateAccessAndShortKey,b as validateShortKey,c as validateTabIndex}from"./access-and-short-key-e094398d.js";import{w as watchValidator,i as watchString,n as setEventTarget,j as devHint}from"./prop.validators-64749272.js";import{v as validateHref}from"./href-cec41fcd.js";import{s as showExpertSlot}from"./reuse-32931294.js";import{v as validateAriaDescription,a as validateAriaExpanded,b as validateAlternativeButtonLinkRole}from"./aria-expanded-9f877821.js";import{v as validateDisabled}from"./disabled-e9084205.js";import{v as validateHideLabel}from"./hide-label-8c202307.js";import{v as validateIcons}from"./icons-c857b77d.js";import{a as validateLabelWithExpertSlot}from"./label-e8ec0e3a.js";import{v as validateTooltipAlign}from"./tooltip-align-5902aa96.js";import"./dev.utils-fab45cbc.js";import"./i18n-7ea9f137.js";import"./index-da3e0c00.js";import"./common-0f1f2276.js";import"./align-878fb132.js";const ariaCurrentValuePropTypeOptions=["date","location","page","step","time","true","false"],validateAriaCurrentValue=(a,t)=>{watchValidator(a,"_ariaCurrentValue",(a=>"string"==typeof a&&ariaCurrentValuePropTypeOptions.includes(a)),new Set([`AriaCurrentValue {${ariaCurrentValuePropTypeOptions.join(", ")}`]),t,{defaultValue:"page"})},validateAriaOwns=(a,t)=>{watchString(a,"_ariaOwns",t,{defaultValue:void 0})},validateDownload=(a,t)=>{watchString(a,"_download",t)},validateLinkCallbacks=(a,t)=>{"object"==typeof t&&"function"==typeof(null==t?void 0:t.onClick)&&(a.state=Object.assign(Object.assign({},a.state),{_on:t}))},validateLinkTarget=(a,t)=>{watchString(a,"_target",t)},KolLinkWc=class{constructor(a){registerInstance(this,a),this.internalDescriptionById=nonce(),this.catchRef=a=>{this.anchorRef=a},this.onClick=a=>{var t,e;!0===this.state._disabled?preventDefaultAndStopPropagation(a):"function"==typeof(null===(t=this.state._on)||void 0===t?void 0:t.onClick)&&(a.preventDefault(),a.stopPropagation(),setEventTarget(a,this.anchorRef),null===(e=this.state._on)||void 0===e||e.onClick(a,this.state._href))},this.getRenderValues=()=>{const a="string"==typeof this.state._target&&"_self"!==this.state._target,t={href:"string"==typeof this.state._href&&this.state._href.length>0?this.state._href:"javascript:void(0);",target:"string"==typeof this.state._target&&this.state._target.length>0?this.state._target:void 0,rel:a?"noopener":void 0,download:"string"==typeof this.state._download?this.state._download:void 0};return!0!==this.state._hideLabel||this.state._label||devHint("[KolLink] An aria-label must be set when _hide-label is set."),{isExternal:a,tagAttrs:t}},this._accessKey=void 0,this._ariaCurrentValue=void 0,this._ariaDescription=void 0,this._ariaExpanded=void 0,this._ariaOwns=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._shortKey=void 0,this._tabIndex=void 0,this._target=void 0,this._tooltipAlign="right",this.state={_ariaCurrentValue:"page",_href:"",_icons:{}}}async kolFocus(){var a;null===(a=this.anchorRef)||void 0===a||a.focus()}render(){var a,t;const{isExternal:e,tagAttrs:i}=this.getRenderValues(),s=showExpertSlot(this.state._label),l=Boolean(null===(t=null===(a=this.state._ariaDescription)||void 0===a?void 0:a.trim())||void 0===t?void 0:t.length);return h(Host,{key:"5da2a89adb469aa00911016bf83da8bc811d6afb",class:"kol-link-wc"},h("a",Object.assign({key:"5ba27442fb12021bcd40b2bbea3458ba90319ee7",ref:this.catchRef},i,{accessKey:this.state._accessKey,"aria-current":this.state._ariaCurrent,"aria-describedby":l?this.internalDescriptionById:void 0,"aria-disabled":this.state._disabled?"true":void 0,"aria-expanded":"boolean"==typeof this.state._ariaExpanded?String(this.state._ariaExpanded):void 0,"aria-owns":this.state._ariaOwns,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?`${this.state._label}${e?` (${translate("kol-open-link-in-tab")})`:""}`:void 0,class:{disabled:!0===this.state._disabled,"external-link":e,"hide-label":!0===this.state._hideLabel}},this.state._on,{onClick:this.onClick,onKeyPress:this.onClick,role:this.state._role,tabIndex:this.state._disabled?-1:this.state._tabIndex}),h(KolSpanWcTag,{key:"cff45aabbf830b45a1606d21b310946fc4107c25",_badgeText:this.state._accessKey||this.state._shortKey,_icons:this.state._icons,_hideLabel:this.state._hideLabel,_label:s?"":this.state._label||this.state._href},h("slot",{key:"e1e4856db3aae514a7cfab6221171f64a9ad786e",name:"expert",slot:"expert"})),e&&h(KolIconTag,{key:"3baff63f0c231d434d7b7b00bd561ce9c4388c44",class:"external-link-icon",_label:this.state._hideLabel?"":translate("kol-open-link-in-tab"),_icons:"codicon codicon-link-external","aria-hidden":this.state._hideLabel})),h(KolTooltipWcTag,{key:"e40f46350a2b28542eddc16bf75378cc66e5eb42","aria-hidden":"true",hidden:s||!this.state._hideLabel,_badgeText:this.state._accessKey||this.state._shortKey,_align:this.state._tooltipAlign,_label:this.state._label||this.state._href}),l&&h("span",{key:"da48986516bb270a3077d5c98c5603e55f9a9f42",class:"visually-hidden",id:this.internalDescriptionById},this.state._ariaDescription))}validateAccessKey(a){validateAccessKey(this,a),validateAccessAndShortKey(a,this._shortKey)}validateAriaCurrentValue(a){validateAriaCurrentValue(this,a)}validateAriaDescription(a){validateAriaDescription(this,a)}validateAriaExpanded(a){validateAriaExpanded(this,a)}validateAriaOwns(a){validateAriaOwns(this,a)}validateDisabled(a){validateDisabled(this,a)}validateDownload(a){validateDownload(this,a)}validateHideLabel(a){validateHideLabel(this,a)}validateHref(a){validateHref(this,a,{required:!0})}validateIcons(a){validateIcons(this,a)}validateLabel(a){validateLabelWithExpertSlot(this,a)}validateOn(a){validateLinkCallbacks(this,a)}validateRole(a){validateAlternativeButtonLinkRole(this,a)}validateShortKey(a){validateShortKey(this,a),validateAccessAndShortKey(this._accessKey,a)}validateTabIndex(a){validateTabIndex(this,a)}validateTarget(a){validateLinkTarget(this,a)}validateTooltipAlign(a){validateTooltipAlign(this,a)}componentWillLoad(){this.validateAccessKey(this._accessKey),this.validateAriaCurrentValue(this._ariaCurrentValue),this.validateAriaDescription(this._ariaDescription),this.validateAriaExpanded(this._ariaExpanded),this.validateAriaOwns(this._ariaOwns),this.validateDisabled(this._disabled),this.validateDownload(this._download),this.validateHideLabel(this._hideLabel),this.validateHref(this._href),this.validateIcons(this._icons),this.validateLabel(this._label),this.validateOn(this._on),this.validateRole(this._role),this.validateShortKey(this._shortKey),this.validateTabIndex(this._tabIndex),this.validateTarget(this._target),this.validateTooltipAlign(this._tooltipAlign),this.unsubscribeOnLocationChange=onLocationChange((a=>{this.state._ariaCurrent=a===this.state._href?this.state._ariaCurrentValue:void 0})),validateAccessAndShortKey(this._accessKey,this._shortKey)}disconnectedCallback(){this.unsubscribeOnLocationChange&&this.unsubscribeOnLocationChange()}static get watchers(){return{_accessKey:["validateAccessKey"],_ariaCurrentValue:["validateAriaCurrentValue"],_ariaDescription:["validateAriaDescription"],_ariaExpanded:["validateAriaExpanded"],_ariaOwns:["validateAriaOwns"],_disabled:["validateDisabled"],_download:["validateDownload"],_hideLabel:["validateHideLabel"],_href:["validateHref"],_icons:["validateIcons"],_label:["validateLabel"],_on:["validateOn"],_role:["validateRole"],_shortKey:["validateShortKey"],_tabIndex:["validateTabIndex"],_target:["validateTarget"],_tooltipAlign:["validateTooltipAlign"]}}};export{KolLinkWc as kol_link_wc};
4
+ import{r as registerInstance,h,H as Host,g as getElement}from"./index-5ec1eac2.js";import{o as onLocationChange}from"./ariaCurrentService-6fe36ebc.js";import{d as dispatchDomEvent,K as KolEvent}from"./events-5adf6b62.js";import{n as nonce}from"./dev.utils-930d9493.js";import{g as KolTooltipWcTag,d as KolIconTag}from"./component-names-545d6582.js";import{t as translate}from"./i18n-005310a7.js";import{v as validateAccessKey,a as validateAccessAndShortKey,b as validateShortKey,c as validateTabIndex}from"./access-and-short-key-e094398d.js";import{c as clsx}from"./clsx-09a06a12.js";import{K as KolSpanFc}from"./Span-74e5ea8f.js";import{w as watchValidator,i as watchString,n as setEventTarget,j as devHint}from"./prop.validators-64749272.js";import{v as validateHref}from"./href-cec41fcd.js";import{s as showExpertSlot}from"./reuse-f46e7e35.js";import{v as validateAriaDescription,a as validateAriaExpanded,b as validateAlternativeButtonLinkRole,c as validateButtonVariant}from"./button-variant-87a9d78a.js";import{v as validateCustomClass}from"./custom-class-cedc9f43.js";import{v as validateDisabled}from"./disabled-e9084205.js";import{v as validateHideLabel}from"./hide-label-8c202307.js";import{v as validateIcons}from"./icons-458eee6a.js";import{a as validateLabelWithExpertSlot}from"./label-e8ec0e3a.js";import{v as validateTooltipAlign}from"./tooltip-align-c6eb75ce.js";import"./dev.utils-fab45cbc.js";import"./i18n-c120df5c.js";import"./tslib.es6-1173d062.js";import"./Icon-461f168a.js";import"./InternalUnderlinedBadgeText-f50a35ad.js";import"./isObject-ffcbbb76.js";import"./index-da3e0c00.js";import"./common-54bf85ba.js";import"./align-60c95351.js";const ariaCurrentValuePropTypeOptions=["date","location","page","step","time","true","false"],validateAriaCurrentValue=(t,a)=>{watchValidator(t,"_ariaCurrentValue",(t=>"string"==typeof t&&ariaCurrentValuePropTypeOptions.includes(t)),new Set([`AriaCurrentValue {${ariaCurrentValuePropTypeOptions.join(", ")}`]),a,{defaultValue:"page"})},validateAriaOwns=(t,a)=>{watchString(t,"_ariaOwns",a,{defaultValue:void 0})},validateDownload=(t,a)=>{watchString(t,"_download",a)},validateLinkCallbacks=(t,a)=>{"object"==typeof a&&"function"==typeof(null==a?void 0:a.onClick)&&(t.state=Object.assign(Object.assign({},t.state),{_on:a}))},validateLinkTarget=(t,a)=>{watchString(t,"_target",a)},KolLinkWc=class{constructor(t){registerInstance(this,t),this.internalDescriptionById=nonce(),this.catchRef=t=>{this.anchorRef=t},this.onClick=t=>{var a,e;!0===this.state._disabled?t.preventDefault():("function"==typeof(null===(a=this.state._on)||void 0===a?void 0:a.onClick)&&(t.preventDefault(),setEventTarget(t,this.anchorRef),null===(e=this.state._on)||void 0===e||e.onClick(t,this.state._href)),this.host&&dispatchDomEvent(this.host,KolEvent.click,this.state._href))},this.getRenderValues=()=>{const t="string"==typeof this.state._target&&"_self"!==this.state._target,a={href:"string"==typeof this.state._href&&this.state._href.length>0?this.state._href:"javascript:void(0);",target:"string"==typeof this.state._target&&this.state._target.length>0?this.state._target:void 0,rel:t?"noopener":void 0,download:"string"==typeof this.state._download?this.state._download:void 0};return!0!==this.state._hideLabel||this.state._label||devHint("[KolLink] An aria-label must be set when _hide-label is set."),{isExternal:t,tagAttrs:a}},this._accessKey=void 0,this._ariaCurrentValue=void 0,this._ariaDescription=void 0,this._ariaExpanded=void 0,this._ariaOwns=void 0,this._customClass=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._shortKey=void 0,this._tabIndex=void 0,this._target=void 0,this._tooltipAlign="right",this._variant="normal",this.state={_ariaCurrentValue:"page",_href:"",_icons:{}}}async kolFocus(){var t;null===(t=this.anchorRef)||void 0===t||t.focus()}render(){var t,a;const{isExternal:e,tagAttrs:i}=this.getRenderValues(),s=showExpertSlot(this.state._label),l=Boolean(null===(a=null===(t=this.state._ariaDescription)||void 0===t?void 0:t.trim())||void 0===a?void 0:a.length);return h(Host,{key:"587357d002a1ea7744990f5ce802f96af6baef5a"},h("a",Object.assign({key:"7f3fc17c83bbcfdc184b5edea97d25ce06f55227",ref:this.catchRef},i,{accessKey:this.state._accessKey,"aria-current":this.state._ariaCurrent,"aria-describedby":l?this.internalDescriptionById:void 0,"aria-disabled":this.state._disabled?"true":void 0,"aria-expanded":"boolean"==typeof this.state._ariaExpanded?String(this.state._ariaExpanded):void 0,"aria-owns":this.state._ariaOwns,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?`${this.state._label}${e?` (${translate("kol-open-link-in-tab")})`:""}`:void 0,class:clsx("kol-link",{"kol-link--disabled":!0===this.state._disabled,"kol-link--external-link":e,"kol-link--hide-label":!0===this.state._hideLabel,[`kol-link--${this.state._variant}`]:"button"===this.state._role&&"custom"!==this.state._variant,[this.state._customClass]:"custom"===this.state._variant&&"string"==typeof this.state._customClass&&this.state._customClass.length>0})},this.state._on,{onClick:this.onClick,onKeyPress:this.onClick,role:this.state._role,tabIndex:this.state._disabled?-1:this.state._tabIndex}),h(KolSpanFc,{key:"b806611a5bb089b415a07d55dd6c070c9703c886",class:"kol-link__text",badgeText:this.state._accessKey||this.state._shortKey,icons:this.state._icons,hideLabel:this.state._hideLabel,label:s?"":this.state._label||this.state._href},h("slot",{key:"5a40e834255ae54cf719dd51a521e92874c89c47",name:"expert",slot:"expert"})),e&&h(KolIconTag,{key:"f757a3dc5c051df590dc7048ae15a26e8c28ea8b",class:"kol-link__icon",_label:this.state._hideLabel?"":translate("kol-open-link-in-tab"),_icons:"codicon codicon-link-external","aria-hidden":this.state._hideLabel})),h(KolTooltipWcTag,{key:"1fd1e9b9fcae9a8505f29cc6962d742670d96f84","aria-hidden":"true",class:"kol-link__tooltip",hidden:s||!this.state._hideLabel,_badgeText:this.state._accessKey||this.state._shortKey,_align:this.state._tooltipAlign,_label:this.state._label||this.state._href}),l&&h("span",{key:"4d5d88f8b21c251476b31533e8c54318fd087b27",class:"visually-hidden",id:this.internalDescriptionById},this.state._ariaDescription))}validateAccessKey(t){validateAccessKey(this,t),validateAccessAndShortKey(t,this._shortKey)}validateAriaCurrentValue(t){validateAriaCurrentValue(this,t)}validateAriaDescription(t){validateAriaDescription(this,t)}validateAriaExpanded(t){validateAriaExpanded(this,t)}validateAriaOwns(t){validateAriaOwns(this,t)}validateCustomClass(t){validateCustomClass(this,t)}validateDisabled(t){validateDisabled(this,t)}validateDownload(t){validateDownload(this,t)}validateHideLabel(t){validateHideLabel(this,t)}validateHref(t){validateHref(this,t,{required:!0})}validateIcons(t){validateIcons(this,t)}validateLabel(t){validateLabelWithExpertSlot(this,t)}validateOn(t){validateLinkCallbacks(this,t)}validateRole(t){validateAlternativeButtonLinkRole(this,t)}validateShortKey(t){validateShortKey(this,t),validateAccessAndShortKey(this._accessKey,t)}validateTabIndex(t){validateTabIndex(this,t)}validateTarget(t){validateLinkTarget(this,t)}validateTooltipAlign(t){validateTooltipAlign(this,t)}validateVariant(t){validateButtonVariant(this,t)}componentWillLoad(){this.validateAccessKey(this._accessKey),this.validateAriaCurrentValue(this._ariaCurrentValue),this.validateAriaDescription(this._ariaDescription),this.validateAriaExpanded(this._ariaExpanded),this.validateAriaOwns(this._ariaOwns),this.validateCustomClass(this._customClass),this.validateDisabled(this._disabled),this.validateDownload(this._download),this.validateHideLabel(this._hideLabel),this.validateHref(this._href),this.validateIcons(this._icons),this.validateLabel(this._label),this.validateOn(this._on),this.validateRole(this._role),this.validateShortKey(this._shortKey),this.validateTabIndex(this._tabIndex),this.validateTarget(this._target),this.validateTooltipAlign(this._tooltipAlign),this.validateVariant(this._variant),this.unsubscribeOnLocationChange=onLocationChange((t=>{this.state._ariaCurrent=t===this.state._href?this.state._ariaCurrentValue:void 0})),validateAccessAndShortKey(this._accessKey,this._shortKey)}disconnectedCallback(){this.unsubscribeOnLocationChange&&this.unsubscribeOnLocationChange()}get host(){return getElement(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_ariaCurrentValue:["validateAriaCurrentValue"],_ariaDescription:["validateAriaDescription"],_ariaExpanded:["validateAriaExpanded"],_ariaOwns:["validateAriaOwns"],_customClass:["validateCustomClass"],_disabled:["validateDisabled"],_download:["validateDownload"],_hideLabel:["validateHideLabel"],_href:["validateHref"],_icons:["validateIcons"],_label:["validateLabel"],_on:["validateOn"],_role:["validateRole"],_shortKey:["validateShortKey"],_tabIndex:["validateTabIndex"],_target:["validateTarget"],_tooltipAlign:["validateTooltipAlign"],_variant:["validateVariant"]}}};export{KolLinkWc as kol_link_wc};
@@ -1 +1 @@
1
- {"file":"kol-link-wc.entry.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AASA,MAAM,+BAA+B,GAAG,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAU,CAAC;AAQxG,MAAM,wBAAwB,GAAG,CAAC,SAAoC,EAAE,KAAgC;IAC9G,cAAc,CACb,SAAS,EACT,mBAAmB,EACnB,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,+BAA+B,CAAC,QAAQ,CAAC,KAAK,CAAC,EACvF,IAAI,GAAG,CAAC,CAAC,qBAAqB,+BAA+B,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EAC5E,KAAK,EACL;QACC,YAAY,EAAE,MAAM;KACpB,CACD,CAAC;AAC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AAC,KAAK,CAAC,CAAC;QAC9B,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACtC,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACtC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClC,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC9C,IAAI,CAAC,2BAA2B,GAAG,gBAAgB,CAAC,CAAC,QAAQ;YAC5D,IAAI,CAAC,KAAK,CAAC,YAAY,GAAG,QAAQ,KAAK,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,iBAAiB,GAAG,SAAS,CAAC;SACnG,CAAC,CAAC;QACH,yBAAyB,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;KAC3D;IAEM,oBAAoB;QAC1B,IAAI,IAAI,CAAC,2BAA2B,EAAE;YACrC,IAAI,CAAC,2BAA2B,EAAE,CAAC;SACnC;KACD;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/schema/props/aria-current-value.ts","src/schema/props/aria-owns.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","/* types */\nimport type { Generic } from 'adopted-style-sheets';\nimport { watchString } from '../utils';\n\n/**\n * Defines the contextual relationship between a parent and its child elements.\n * @see https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-owns\n */\nexport type AriaOwnsPropType = string;\n\nexport type PropAriaOwns = {\n\tariaOwns: AriaOwnsPropType;\n};\n\n/* validator */\nexport const validateAriaOwns = (component: Generic.Element.Component, value?: AriaOwnsPropType): void => {\n\twatchString(component, '_ariaOwns', value, {\n\t\tdefaultValue: undefined,\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\tAriaDescriptionPropType,\n\tAriaExpandedPropType,\n\tAriaOwnsPropType,\n\tDisabledPropType,\n\tDownloadPropType,\n\tFocusableElement,\n\tHrefPropType,\n\tKoliBriIconsProp,\n\tLabelWithExpertSlotPropType,\n\tLinkAPI,\n\tLinkOnCallbacksPropType,\n\tLinkStates,\n\tLinkTargetPropType,\n\tShortKeyPropType,\n\tStringified,\n\tTooltipAlignPropType,\n} from '../../schema';\nimport {\n\tdevHint,\n\tsetEventTarget,\n\tshowExpertSlot,\n\tvalidateAccessKey,\n\tvalidateAlternativeButtonLinkRole,\n\tvalidateAriaCurrentValue,\n\tvalidateAriaDescription,\n\tvalidateAriaExpanded,\n\tvalidateAriaOwns,\n\tvalidateDisabled,\n\tvalidateDownload,\n\tvalidateHideLabel,\n\tvalidateHref,\n\tvalidateIcons,\n\tvalidateLabelWithExpertSlot,\n\tvalidateLinkCallbacks,\n\tvalidateLinkTarget,\n\tvalidateShortKey,\n\tvalidateTabIndex,\n\tvalidateTooltipAlign,\n} from '../../schema';\nimport type { JSX } from '@stencil/core';\nimport { Component, h, Host, Method, Prop, State, Watch } from '@stencil/core';\nimport type { UnsubscribeFunction } from './ariaCurrentService';\nimport { onLocationChange } from './ariaCurrentService';\nimport { preventDefaultAndStopPropagation } from '../../utils/events';\nimport { nonce } from '../../utils/dev.utils';\nimport { KolIconTag, KolSpanWcTag, KolTooltipWcTag } from '../../core/component-names';\n\nimport { translate } from '../../i18n';\nimport { validateAccessAndShortKey } from '../../schema/validators/access-and-short-key';\n\n/**\n * @internal\n */\n@Component({\n\ttag: 'kol-link-wc',\n\tshadow: false,\n})\nexport class KolLinkWc implements LinkAPI, FocusableElement {\n\tprivate anchorRef?: HTMLAnchorElement;\n\tprivate unsubscribeOnLocationChange?: UnsubscribeFunction;\n\n\tprivate readonly internalDescriptionById = nonce();\n\n\tprivate readonly catchRef = (ref?: HTMLAnchorElement) => {\n\t\tthis.anchorRef = ref;\n\t};\n\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async kolFocus() {\n\t\tthis.anchorRef?.focus();\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.anchorRef);\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] An aria-label must be set when _hide-label is set.`);\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\tconst hasAriaDescription = Boolean(this.state._ariaDescription?.trim()?.length);\n\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-describedby={hasAriaDescription ? this.internalDescriptionById : undefined}\n\t\t\t\t\taria-disabled={this.state._disabled ? 'true' : undefined}\n\t\t\t\t\taria-expanded={typeof this.state._ariaExpanded === 'boolean' ? String(this.state._ariaExpanded) : undefined}\n\t\t\t\t\taria-owns={this.state._ariaOwns}\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_badgeText={this.state._accessKey || this.state._shortKey}\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_badgeText={this.state._accessKey || this.state._shortKey}\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\t{hasAriaDescription && (\n\t\t\t\t\t<span class=\"visually-hidden\" id={this.internalDescriptionById}>\n\t\t\t\t\t\t{this.state._ariaDescription}\n\t\t\t\t\t</span>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines which key combination can be used to trigger or focus the interactive element of the component.\n\t */\n\t@Prop() public _accessKey?: 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 * Defines the value for the aria-description attribute.\n\t */\n\t@Prop() public _ariaDescription?: AriaDescriptionPropType;\n\n\t/**\n\t * Marks this element as open/expanded, or that the connected element (aria-controls/aria-owns) is open/expanded.\n\t * @TODO: Change type to `AriaExpandedPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _ariaExpanded?: boolean;\n\n\t/**\n\t * Defines the contextual relationship between a parent and its child elements.\n\t */\n\t@Prop() public _ariaOwns?: AriaOwnsPropType;\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 * Adds a visual short key hint to the component.\n\t */\n\t@Prop() public _shortKey?: ShortKeyPropType;\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\tvalidateAccessAndShortKey(value, this._shortKey);\n\t}\n\n\t@Watch('_ariaCurrentValue')\n\tpublic validateAriaCurrentValue(value?: AriaCurrentValuePropType): void {\n\t\tvalidateAriaCurrentValue(this, value);\n\t}\n\n\t@Watch('_ariaDescription')\n\tpublic validateAriaDescription(value?: AriaDescriptionPropType): void {\n\t\tvalidateAriaDescription(this, value);\n\t}\n\n\t@Watch('_ariaExpanded')\n\tpublic validateAriaExpanded(value?: AriaExpandedPropType): void {\n\t\tvalidateAriaExpanded(this, value);\n\t}\n\n\t@Watch('_ariaOwns')\n\tpublic validateAriaOwns(value?: AriaOwnsPropType): void {\n\t\tvalidateAriaOwns(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('_shortKey')\n\tpublic validateShortKey(value?: ShortKeyPropType): void {\n\t\tvalidateShortKey(this, value);\n\t\tvalidateAccessAndShortKey(this._accessKey, 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.validateAriaDescription(this._ariaDescription);\n\t\tthis.validateAriaExpanded(this._ariaExpanded);\n\t\tthis.validateAriaOwns(this._ariaOwns);\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.validateShortKey(this._shortKey);\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\tvalidateAccessAndShortKey(this._accessKey, this._shortKey);\n\t}\n\n\tpublic disconnectedCallback(): void {\n\t\tif (this.unsubscribeOnLocationChange) {\n\t\t\tthis.unsubscribeOnLocationChange();\n\t\t}\n\t}\n}\n"],"version":3}
1
+ {"file":"kol-link-wc.entry.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,MAAM,+BAA+B,GAAG,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAU,CAAC;AAQxG,MAAM,wBAAwB,GAAG,CAAC,SAAoC,EAAE,KAAgC;IAC9G,cAAc,CACb,SAAS,EACT,mBAAmB,EACnB,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,+BAA+B,CAAC,QAAQ,CAAC,KAAK,CAAC,EACvF,IAAI,GAAG,CAAC,CAAC,qBAAqB,+BAA+B,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EAC5E,KAAK,EACL;QACC,YAAY,EAAE,MAAM;KACpB,CACD,CAAC;AACH,CAAC;;ACbM,MAAM,gBAAgB,GAAG,CAAC,SAAoC,EAAE,KAAwB;IAC9F,WAAW,CAAC,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE;QAC1C,YAAY,EAAE,SAAS;KACvB,CAAC,CAAC;AACJ,CAAC;;ACHM,MAAM,gBAAgB,GAAG,CAAC,SAAoC,EAAE,KAAwB;IAC9F,WAAW,CAAC,SAAS,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;AAC5C,CAAC;;ACDM,MAAM,qBAAqB,GAAG,CAAC,SAAoC,EAAE,KAA+B;IAC1G,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,QAAO,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,CAAA,KAAK,UAAU,EAAE;QACtE,SAAS,CAAC,KAAK,mCACX,SAAS,CAA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AAC,CAAC;QACxC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC9B,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC9B,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACtC,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACtC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClC,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC9C,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACpC,IAAI,CAAC,2BAA2B,GAAG,gBAAgB,CAAC,CAAC,QAAQ;YAC5D,IAAI,CAAC,KAAK,CAAC,YAAY,GAAG,QAAQ,KAAK,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,iBAAiB,GAAG,SAAS,CAAC;SACnG,CAAC,CAAC;QACH,yBAAyB,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;KAC3D;IAEM,oBAAoB;QAC1B,IAAI,IAAI,CAAC,2BAA2B,EAAE;YACrC,IAAI,CAAC,2BAA2B,EAAE,CAAC;SACnC;KACD;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/schema/props/aria-current-value.ts","src/schema/props/aria-owns.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","/* types */\nimport type { Generic } from 'adopted-style-sheets';\nimport { watchString } from '../utils';\n\n/**\n * Defines the contextual relationship between a parent and its child elements.\n * @see https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-owns\n */\nexport type AriaOwnsPropType = string;\n\nexport type PropAriaOwns = {\n\tariaOwns: AriaOwnsPropType;\n};\n\n/* validator */\nexport const validateAriaOwns = (component: Generic.Element.Component, value?: AriaOwnsPropType): void => {\n\twatchString(component, '_ariaOwns', value, {\n\t\tdefaultValue: undefined,\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 { Callback } from '../enums';\nimport type { EventValueOrEventCallback } from '../types/callbacks';\n\n/* types */\nexport type LinkOnCallbacksPropType = {\n\t[Callback.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\tAriaDescriptionPropType,\n\tAriaExpandedPropType,\n\tAriaOwnsPropType,\n\tButtonVariantPropType,\n\tCustomClassPropType,\n\tDisabledPropType,\n\tDownloadPropType,\n\tFocusableElement,\n\tHrefPropType,\n\tKoliBriIconsProp,\n\tLabelWithExpertSlotPropType,\n\tLinkAPI,\n\tLinkOnCallbacksPropType,\n\tLinkStates,\n\tLinkTargetPropType,\n\tShortKeyPropType,\n\tStringified,\n\tTooltipAlignPropType,\n} from '../../schema';\nimport {\n\tdevHint,\n\tsetEventTarget,\n\tshowExpertSlot,\n\tvalidateAccessKey,\n\tvalidateAlternativeButtonLinkRole,\n\tvalidateAriaCurrentValue,\n\tvalidateAriaDescription,\n\tvalidateAriaExpanded,\n\tvalidateAriaOwns,\n\tvalidateButtonVariant,\n\tvalidateCustomClass,\n\tvalidateDisabled,\n\tvalidateDownload,\n\tvalidateHideLabel,\n\tvalidateHref,\n\tvalidateIcons,\n\tvalidateLabelWithExpertSlot,\n\tvalidateLinkCallbacks,\n\tvalidateLinkTarget,\n\tvalidateShortKey,\n\tvalidateTabIndex,\n\tvalidateTooltipAlign,\n} from '../../schema';\nimport type { JSX } from '@stencil/core';\nimport { Component, Element, h, Host, Method, Prop, State, Watch } from '@stencil/core';\nimport type { UnsubscribeFunction } from './ariaCurrentService';\nimport { onLocationChange } from './ariaCurrentService';\nimport { dispatchDomEvent, KolEvent } from '../../utils/events';\nimport { nonce } from '../../utils/dev.utils';\nimport { KolIconTag, KolTooltipWcTag } from '../../core/component-names';\n\nimport { translate } from '../../i18n';\nimport { validateAccessAndShortKey } from '../../schema/validators/access-and-short-key';\nimport { KolSpanFc } from '../../functional-components';\nimport clsx from 'clsx';\n\n/**\n * @internal\n */\n@Component({\n\ttag: 'kol-link-wc',\n\tshadow: false,\n})\nexport class KolLinkWc implements LinkAPI, FocusableElement {\n\t@Element() private readonly host?: HTMLKolLinkElement;\n\n\tprivate anchorRef?: HTMLAnchorElement;\n\tprivate unsubscribeOnLocationChange?: UnsubscribeFunction;\n\n\tprivate readonly internalDescriptionById = nonce();\n\n\tprivate readonly catchRef = (ref?: HTMLAnchorElement) => {\n\t\tthis.anchorRef = ref;\n\t};\n\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async kolFocus() {\n\t\tthis.anchorRef?.focus();\n\t}\n\n\tprivate readonly onClick = (event: Event) => {\n\t\tif (this.state._disabled === true) {\n\t\t\tevent.preventDefault();\n\t\t} else {\n\t\t\tif (typeof this.state._on?.onClick === 'function') {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tsetEventTarget(event, this.anchorRef);\n\t\t\t\tthis.state._on?.onClick(event, this.state._href);\n\t\t\t}\n\t\t\tif (this.host) {\n\t\t\t\tdispatchDomEvent(this.host, KolEvent.click, this.state._href);\n\t\t\t}\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] An aria-label must be set when _hide-label is set.`);\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\tconst hasAriaDescription = Boolean(this.state._ariaDescription?.trim()?.length);\n\n\t\treturn (\n\t\t\t<Host>\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-describedby={hasAriaDescription ? this.internalDescriptionById : undefined}\n\t\t\t\t\taria-disabled={this.state._disabled ? 'true' : undefined}\n\t\t\t\t\taria-expanded={typeof this.state._ariaExpanded === 'boolean' ? String(this.state._ariaExpanded) : undefined}\n\t\t\t\t\taria-owns={this.state._ariaOwns}\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={clsx('kol-link', {\n\t\t\t\t\t\t'kol-link--disabled': this.state._disabled === true,\n\t\t\t\t\t\t'kol-link--external-link': isExternal,\n\t\t\t\t\t\t'kol-link--hide-label': this.state._hideLabel === true,\n\t\t\t\t\t\t[`kol-link--${this.state._variant as string}`]: this.state._role === 'button' && this.state._variant !== 'custom',\n\t\t\t\t\t\t[this.state._customClass as string]:\n\t\t\t\t\t\t\tthis.state._variant === 'custom' && typeof this.state._customClass === 'string' && this.state._customClass.length > 0,\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<KolSpanFc\n\t\t\t\t\t\tclass=\"kol-link__text\"\n\t\t\t\t\t\tbadgeText={this.state._accessKey || this.state._shortKey}\n\t\t\t\t\t\ticons={this.state._icons}\n\t\t\t\t\t\thideLabel={this.state._hideLabel}\n\t\t\t\t\t\tlabel={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</KolSpanFc>\n\t\t\t\t\t{isExternal && (\n\t\t\t\t\t\t<KolIconTag\n\t\t\t\t\t\t\tclass=\"kol-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\tclass=\"kol-link__tooltip\"\n\t\t\t\t\thidden={hasExpertSlot || !this.state._hideLabel}\n\t\t\t\t\t_badgeText={this.state._accessKey || this.state._shortKey}\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\t{hasAriaDescription && (\n\t\t\t\t\t<span class=\"visually-hidden\" id={this.internalDescriptionById}>\n\t\t\t\t\t\t{this.state._ariaDescription}\n\t\t\t\t\t</span>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines which key combination can be used to trigger or focus the interactive element of the component.\n\t */\n\t@Prop() public _accessKey?: 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 * Defines the value for the aria-description attribute.\n\t */\n\t@Prop() public _ariaDescription?: AriaDescriptionPropType;\n\n\t/**\n\t * Marks this element as open/expanded, or that the connected element (aria-controls/aria-owns) is open/expanded.\n\t * @TODO: Change type to `AriaExpandedPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _ariaExpanded?: boolean;\n\n\t/**\n\t * Defines the contextual relationship between a parent and its child elements.\n\t */\n\t@Prop() public _ariaOwns?: AriaOwnsPropType;\n\n\t/**\n\t * Defines the custom class attribute if _variant=\"custom\" is set.\n\t */\n\t@Prop() public _customClass?: CustomClassPropType;\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 * Adds a visual short key hint to the component.\n\t */\n\t@Prop() public _shortKey?: ShortKeyPropType;\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/**\n\t * Defines which button variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: ButtonVariantPropType = 'normal';\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\tvalidateAccessAndShortKey(value, this._shortKey);\n\t}\n\n\t@Watch('_ariaCurrentValue')\n\tpublic validateAriaCurrentValue(value?: AriaCurrentValuePropType): void {\n\t\tvalidateAriaCurrentValue(this, value);\n\t}\n\n\t@Watch('_ariaDescription')\n\tpublic validateAriaDescription(value?: AriaDescriptionPropType): void {\n\t\tvalidateAriaDescription(this, value);\n\t}\n\n\t@Watch('_ariaExpanded')\n\tpublic validateAriaExpanded(value?: AriaExpandedPropType): void {\n\t\tvalidateAriaExpanded(this, value);\n\t}\n\n\t@Watch('_ariaOwns')\n\tpublic validateAriaOwns(value?: AriaOwnsPropType): void {\n\t\tvalidateAriaOwns(this, value);\n\t}\n\n\t@Watch('_customClass')\n\tpublic validateCustomClass(value?: CustomClassPropType): void {\n\t\tvalidateCustomClass(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('_shortKey')\n\tpublic validateShortKey(value?: ShortKeyPropType): void {\n\t\tvalidateShortKey(this, value);\n\t\tvalidateAccessAndShortKey(this._accessKey, 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\t@Watch('_variant')\n\tpublic validateVariant(value?: ButtonVariantPropType): void {\n\t\tvalidateButtonVariant(this, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateAccessKey(this._accessKey);\n\t\tthis.validateAriaCurrentValue(this._ariaCurrentValue);\n\t\tthis.validateAriaDescription(this._ariaDescription);\n\t\tthis.validateAriaExpanded(this._ariaExpanded);\n\t\tthis.validateAriaOwns(this._ariaOwns);\n\t\tthis.validateCustomClass(this._customClass);\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.validateShortKey(this._shortKey);\n\t\tthis.validateTabIndex(this._tabIndex);\n\t\tthis.validateTarget(this._target);\n\t\tthis.validateTooltipAlign(this._tooltipAlign);\n\t\tthis.validateVariant(this._variant);\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\tvalidateAccessAndShortKey(this._accessKey, this._shortKey);\n\t}\n\n\tpublic disconnectedCallback(): void {\n\t\tif (this.unsubscribeOnLocationChange) {\n\t\t\tthis.unsubscribeOnLocationChange();\n\t\t}\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as registerInstance,h,H as Host}from"./index-f0de5c73.js";import{j as KolLinkWcTag}from"./component-names-6ca7e863.js";const defaultStyleCss="/*\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: calc(44rem / var(--kolibri-root-font-size, 16));\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 rem(44).\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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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 font-size: calc(16rem / var(--kolibri-root-font-size, 16));\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 /* 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 .kol-tooltip-wc {\n display: contents;\n }\n .kol-tooltip-wc .tooltip-floating {\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n /* Shared between content and arrow */\n .kol-tooltip-wc .tooltip-area {\n background-color: #fff;\n color: #000;\n }\n .kol-tooltip-wc .tooltip-arrow {\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip-wc .tooltip-content {\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n :host {\n display: inline-block;\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: none;\n }\n :is(a, button) .kol-span-wc .span-label {\n text-decoration-line: underline;\n }\n a:is(:focus, :hover):not([aria-disabled]) .kol-span-wc .span-label,\n button:is(:focus, :hover):not([disabled]) .kol-span-wc .span-label {\n text-decoration-thickness: 0.2em;\n }\n .skip {\n left: calc(-99999rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n z-index: 9999999;\n line-height: 1;\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 margin-left: calc(8rem / var(--kolibri-root-font-size, 16));\n }\n}",KolLinkDefaultStyle0=defaultStyleCss,KolLink=class{constructor(n){registerInstance(this,n),this.catchRef=n=>{this.linkWcRef=n},this._accessKey=void 0,this._ariaCurrentValue=void 0,this._ariaDescription=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._shortKey=void 0,this._tabIndex=void 0,this._target=void 0,this._tooltipAlign="right"}async focus(){await this.kolFocus()}async kolFocus(){var n;await(null===(n=this.linkWcRef)||void 0===n?void 0:n.kolFocus())}render(){return h(Host,{key:"6b3f8dd9d9322e31bd85fd4529d320350b0eeccc",class:"kol-link"},h(KolLinkWcTag,{key:"1422cf7d8a14bc995a02c50bdd30ce8b9266108f",ref:this.catchRef,_accessKey:this._accessKey,_ariaCurrentValue:this._ariaCurrentValue,_ariaDescription:this._ariaDescription,_disabled:this._disabled,_download:this._download,_hideLabel:this._hideLabel,_href:this._href,_icons:this._icons,_label:this._label,_on:this._on,_role:this._role,_shortKey:this._shortKey,_tabIndex:this._tabIndex,_target:this._target,_tooltipAlign:this._tooltipAlign},h("slot",{key:"90491037eccc9ef4e8b4591f48e5d1dd51b5ad9d",name:"expert",slot:"expert"})))}static get delegatesFocus(){return!0}};KolLink.style={default:KolLinkDefaultStyle0};export{KolLink as kol_link};
4
+ import{r as registerInstance,h}from"./index-5ec1eac2.js";import{f as KolLinkWcTag}from"./component-names-545d6582.js";const defaultStyleCss="/*\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: calc(44rem / var(--kolibri-root-font-size, 16));\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 rem(44).\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 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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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 .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: grid;\n place-items: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\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,\n [disabled]:focus .kol-span {\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 .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n .kol-tooltip__arrow {\n background-color: #fff;\n color: #000;\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip__content {\n background-color: #fff;\n color: #000;\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n :host {\n display: inline-block;\n }\n .kol-link {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n align-items: baseline;\n display: inline-flex;\n place-items: center;\n text-align: left;\n text-decoration-line: none;\n }\n .kol-link__text .kol-span__label {\n text-decoration-line: underline;\n }\n .kol-link:is(:focus, :hover):not([aria-disabled], [disabled]) .kol-link__text .kol-span__label {\n text-decoration-thickness: 0.2em;\n }\n .kol-link__icon {\n display: inline-flex;\n margin-left: calc(8rem / var(--kolibri-root-font-size, 16));\n }\n}",KolLinkDefaultStyle0=defaultStyleCss,KolLink=class{constructor(n){registerInstance(this,n),this.catchRef=n=>{this.linkWcRef=n},this._accessKey=void 0,this._ariaCurrentValue=void 0,this._ariaDescription=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._shortKey=void 0,this._target=void 0,this._tooltipAlign="right"}async kolFocus(){var n;await(null===(n=this.linkWcRef)||void 0===n?void 0:n.kolFocus())}render(){return h(KolLinkWcTag,{key:"965a19f20c69923d4a0891604fba8aa15f9a1973",ref:this.catchRef,_accessKey:this._accessKey,_ariaCurrentValue:this._ariaCurrentValue,_ariaDescription:this._ariaDescription,_disabled:this._disabled,_download:this._download,_hideLabel:this._hideLabel,_href:this._href,_icons:this._icons,_label:this._label,_on:this._on,_role:this._role,_shortKey:this._shortKey,_target:this._target,_tooltipAlign:this._tooltipAlign},h("slot",{key:"86e618b375530f5c25757599f3ba713392a3a1f3",name:"expert",slot:"expert"}))}static get delegatesFocus(){return!0}};KolLink.style={default:KolLinkDefaultStyle0};export{KolLink as kol_link};
@@ -1 +1 @@
1
- {"file":"kol-link.entry.js","mappings":";;;;;;AAAA,MAAM,eAAe,GAAG,2vMAA2vM,CAAC;AACpxM,6BAAe,eAAe;;MC6BjB,OAAO;;;QAGF,aAAQ,GAAG,CAAC,GAA0B;YACtD,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC;SACrB,CAAC;;;;yBAgEmC,KAAK;;0BAYJ,KAAK;;;;;;;;;6BA6CW,OAAO;;IAnHtD,MAAM,KAAK;QACjB,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;KACtB;IAGM,MAAM,QAAQ;;QACpB,OAAM,MAAA,IAAI,CAAC,SAAS,0CAAE,QAAQ,EAAE,CAAA,CAAC;KACjC;IAEM,MAAM;QACZ,QACC,EAAC,IAAI,qDAAC,KAAK,EAAC,UAAU,IACrB,EAAC,YAAY,qDACZ,GAAG,EAAE,IAAI,CAAC,QAAQ,EAClB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,EACzC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EACvC,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,aAAa,EAAE,IAAI,CAAC,aAAa,IAMjC,6DAAM,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,GAAQ,CAC3B,CACT,EACN;KACF;;;;;;;;;","names":[],"sources":["src/components/link/style.scss?tag=kol-link&mode=default&encapsulation=shadow","src/components/link/shadow.tsx"],"sourcesContent":["@use '../style' as *;\n@use '../link' as *;\n","import type {\n\tAccessKeyPropType,\n\tAlternativeButtonLinkRolePropType,\n\tAriaCurrentValuePropType,\n\tAriaDescriptionPropType,\n\tDownloadPropType,\n\tFocusableElement,\n\tHrefPropType,\n\tKoliBriIconsProp,\n\tLabelWithExpertSlotPropType,\n\tLinkOnCallbacksPropType,\n\tLinkProps,\n\tLinkTargetPropType,\n\tShortKeyPropType,\n\tStringified,\n\tTooltipAlignPropType,\n} from '../../schema';\nimport type { JSX } from '@stencil/core';\nimport { Component, h, Host, Method, Prop } from '@stencil/core';\nimport { KolLinkWcTag } from '../../core/component-names';\n\n@Component({\n\ttag: 'kol-link',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: {\n\t\tdelegatesFocus: true,\n\t},\n})\nexport class KolLink implements LinkProps, FocusableElement {\n\tprivate linkWcRef?: HTMLKolLinkWcElement;\n\n\tprivate readonly catchRef = (ref?: HTMLKolLinkWcElement) => {\n\t\tthis.linkWcRef = ref;\n\t};\n\n\t/**\n\t * @deprecated Use kolFocus instead.\n\t */\n\t@Method()\n\tpublic async focus() {\n\t\tawait this.kolFocus();\n\t}\n\n\t@Method()\n\tpublic async kolFocus() {\n\t\tawait this.linkWcRef?.kolFocus();\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_ariaDescription={this._ariaDescription}\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_shortKey={this._shortKey}\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 which key combination can be used to trigger or focus the interactive element of the component.\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 * Defines the value for the aria-description attribute.\n\t */\n\t@Prop() public _ariaDescription?: AriaDescriptionPropType;\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 * Adds a visual short key hint to the component.\n\t */\n\t@Prop() public _shortKey?: ShortKeyPropType;\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"],"version":3}
1
+ {"file":"kol-link.entry.js","mappings":";;;;;;AAAA,MAAM,eAAe,GAAG,23LAA23L,CAAC;AACp5L,6BAAe,eAAe;;MC6BjB,OAAO;;;QAGF,aAAQ,GAAG,CAAC,GAA0B;YACtD,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC;SACrB,CAAC;;;;yBAqDmC,KAAK;;0BAYJ,KAAK;;;;;;;;6BAwCW,OAAO;;IAtGtD,MAAM,QAAQ;;QACpB,OAAM,MAAA,IAAI,CAAC,SAAS,0CAAE,QAAQ,EAAE,CAAA,CAAC;KACjC;IAEM,MAAM;QACZ,QACC,EAAC,YAAY,qDACZ,GAAG,EAAE,IAAI,CAAC,QAAQ,EAClB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,EACzC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EACvC,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,aAAa,EAAE,IAAI,CAAC,aAAa,IAMjC,6DAAM,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,GAAQ,CAC3B,EACd;KACF;;;;;;;;;","names":[],"sources":["src/components/link/style.scss?tag=kol-link&mode=default&encapsulation=shadow","src/components/link/shadow.tsx"],"sourcesContent":["@use '../@shared/mixins' as *;\n@use '../../styles/global' as *;\n@use '../@shared/kol-link-mixin' as *;\n\n@include kol-link-styles('kol-link');\n","import type {\n\tAccessKeyPropType,\n\tAlternativeButtonLinkRolePropType,\n\tAriaCurrentValuePropType,\n\tAriaDescriptionPropType,\n\tDownloadPropType,\n\tFocusableElement,\n\tHrefPropType,\n\tKoliBriIconsProp,\n\tLabelWithExpertSlotPropType,\n\tLinkOnCallbacksPropType,\n\tLinkProps,\n\tLinkTargetPropType,\n\tShortKeyPropType,\n\tStringified,\n\tTooltipAlignPropType,\n} from '../../schema';\nimport type { JSX } from '@stencil/core';\nimport { Component, h, Method, Prop } from '@stencil/core';\nimport { KolLinkWcTag } from '../../core/component-names';\n\n@Component({\n\ttag: 'kol-link',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: {\n\t\tdelegatesFocus: true,\n\t},\n})\nexport class KolLink implements LinkProps, FocusableElement {\n\tprivate linkWcRef?: HTMLKolLinkWcElement;\n\n\tprivate readonly catchRef = (ref?: HTMLKolLinkWcElement) => {\n\t\tthis.linkWcRef = ref;\n\t};\n\n\t@Method()\n\tpublic async kolFocus() {\n\t\tawait this.linkWcRef?.kolFocus();\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<KolLinkWcTag\n\t\t\t\tref={this.catchRef}\n\t\t\t\t_accessKey={this._accessKey}\n\t\t\t\t_ariaCurrentValue={this._ariaCurrentValue}\n\t\t\t\t_ariaDescription={this._ariaDescription}\n\t\t\t\t_disabled={this._disabled}\n\t\t\t\t_download={this._download}\n\t\t\t\t_hideLabel={this._hideLabel}\n\t\t\t\t_href={this._href}\n\t\t\t\t_icons={this._icons}\n\t\t\t\t_label={this._label}\n\t\t\t\t_on={this._on}\n\t\t\t\t_role={this._role}\n\t\t\t\t_shortKey={this._shortKey}\n\t\t\t\t_target={this._target}\n\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t>\n\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<slot name=\"expert\" slot=\"expert\"></slot>\n\t\t\t</KolLinkWcTag>\n\t\t);\n\t}\n\n\t/**\n\t * Defines which key combination can be used to trigger or focus the interactive element of the component.\n\t */\n\t@Prop() public _accessKey?: 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 * Defines the value for the aria-description attribute.\n\t */\n\t@Prop() public _ariaDescription?: AriaDescriptionPropType;\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 * Adds a visual short key hint to the component.\n\t */\n\t@Prop() public _shortKey?: ShortKeyPropType;\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"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as registerInstance,h}from"./index-f0de5c73.js";import{w as watchValidator,s as setState,i as watchString}from"./prop.validators-64749272.js";import{v as validateLabel}from"./label-e8ec0e3a.js";import"./index-da3e0c00.js";import"./dev.utils-fab45cbc.js";const defaultStyleCss="/*\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: calc(44rem / var(--kolibri-root-font-size, 16));\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 rem(44).\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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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 font-size: calc(16rem / var(--kolibri-root-font-size, 16));\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 /* 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 .kol-modal {\n border: 0;\n padding: 0;\n }\n .kol-modal::backdrop {\n background-color: rgba(0, 0, 0, 0.33);\n }\n}",KolModalDefaultStyle0=defaultStyleCss,KolModal=class{constructor(e){registerInstance(this,e),this._activeElement=void 0,this._label=void 0,this._on=void 0,this._width="100%",this.state={_activeElement:null,_label:"",_width:"100%"}}componentDidRender(){var e;this.state._activeElement&&(null===(e=this.refDialog)||void 0===e||e.showModal())}disconnectedCallback(){this.closeModal()}handleNativeCloseEvent(){var e,n;null===(n=null===(e=this.state._on)||void 0===e?void 0:e.onClose)||void 0===n||n.call(e)}async openModal(){var e;null===(e=this.refDialog)||void 0===e||e.showModal()}async closeModal(){var e,n;this._activeElement=null,null===(n=null===(e=this.refDialog)||void 0===e?void 0:e.close)||void 0===n||n.call(e)}render(){return h("dialog",{key:"60cb0446cef2f09e240cf1c726c291b9ed7d236d",class:"kol-modal",ref:e=>{this.refDialog=e},style:{width:this.state._width},"aria-label":this.state._label,onClose:this.handleNativeCloseEvent.bind(this)},h("div",{key:"58dab73678e09f898a432f3a22879a1f150a98a5"},h("slot",{key:"ea74a2c036fd070e2ed21731888a24b4846174fe"})))}validateActiveElement(e){watchValidator(this,"_activeElement",(e=>"object"==typeof e||null===e),new Set(["HTMLElement","null"]),e,{defaultValue:null,hooks:{afterPatch:()=>{this.state._activeElement?this.openModal():this.closeModal()}}})}validateLabel(e){validateLabel(this,e,{required:!0})}validateOn(e){if("object"==typeof e&&null!==e){const n={};"function"!=typeof e.onClose&&!0!==e.onClose||(n.onClose=e.onClose),setState(this,"_on",n)}}validateWidth(e){watchString(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"]}}};KolModal.style={default:KolModalDefaultStyle0};export{KolModal as kol_modal};
4
+ import{r as registerInstance,h,g as getElement}from"./index-5ec1eac2.js";import{d as dispatchDomEvent,K as KolEvent}from"./events-5adf6b62.js";import{w as watchValidator,s as setState,i as watchString}from"./prop.validators-64749272.js";import{a as KolButtonWcTag}from"./component-names-545d6582.js";import{t as translate}from"./i18n-005310a7.js";import{c as clsx}from"./clsx-09a06a12.js";import{v as validateLabel}from"./label-e8ec0e3a.js";import"./index-da3e0c00.js";import"./dev.utils-fab45cbc.js";import"./i18n-c120df5c.js";import"./reuse-f46e7e35.js";const ModalVariantPropTypeOptions=["blank","card"],validateModalVariant=(n,t)=>{watchValidator(n,"_variant",(n=>"string"==typeof n&&ModalVariantPropTypeOptions.includes(n)),new Set(ModalVariantPropTypeOptions),t)},defaultStyleCss="/*\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: calc(44rem / var(--kolibri-root-font-size, 16));\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 rem(44).\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 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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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 .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: grid;\n place-items: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\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,\n [disabled]:focus .kol-span {\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 .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n .kol-tooltip__arrow {\n background-color: #fff;\n color: #000;\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip__content {\n background-color: #fff;\n color: #000;\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-modal {\n border: 0;\n padding: 0;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n position: relative;\n }\n .kol-modal::backdrop {\n background-color: rgba(0, 0, 0, 0.33);\n }\n .kol-modal__close-button {\n position: absolute;\n top: calc(1rem / var(--kolibri-root-font-size, 16));\n right: calc(1rem / var(--kolibri-root-font-size, 16));\n z-index: 1;\n }\n}",KolModalDefaultStyle0=defaultStyleCss,KolModal=class{constructor(n){registerInstance(this,n),this.on={onClick:async()=>{await this.closeModal()}},this._label=void 0,this._on=void 0,this._width="100%",this._variant="blank",this.state={_label:"",_width:"100%"}}disconnectedCallback(){this.closeModal()}handleNativeCloseEvent(){var n,t;null===(t=null===(n=this.state._on)||void 0===n?void 0:n.onClose)||void 0===t||t.call(n),this.host&&dispatchDomEvent(this.host,KolEvent.close)}async openModal(){var n;null===(n=this.refDialog)||void 0===n||n.showModal()}async closeModal(){var n,t;null===(t=null===(n=this.refDialog)||void 0===n?void 0:n.close)||void 0===t||t.call(n)}render(){return h("dialog",{key:"a7746d9555c2d6e0172e184e370562e7bf7d8967",class:clsx("kol-modal",{"kol-modal__card":"card"===this.state._variant}),ref:n=>{this.refDialog=n},style:{width:this.state._width},"aria-label":this.state._label,onClose:this.handleNativeCloseEvent.bind(this)},h("div",{key:"af55fc367328cff9c1495518b39b92941101d9be",tabindex:"-1"},h("slot",{key:"e83efa707edf86463258ec35c174f2553a8405bf"})),"card"===this.state._variant&&h(KolButtonWcTag,{key:"234abb9a34c39e748a74471fb87595f9d144b994",class:"kol-modal__close-button","data-testid":"modal-close-button",_hideLabel:!0,_icons:{left:{icon:"codicon codicon-close"}},_label:translate("kol-close"),_on:this.on,_tooltipAlign:"left"}))}validateLabel(n){validateLabel(this,n,{required:!0})}validateOn(n){if("object"==typeof n&&null!==n){const t={};"function"!=typeof n.onClose&&!0!==n.onClose||(t.onClose=n.onClose),setState(this,"_on",t)}}validateWidth(n){watchString(this,"_width",n,{defaultValue:"100%"})}validateVariant(n){validateModalVariant(this,n)}componentWillLoad(){this.validateLabel(this._label),this.validateOn(this._on),this.validateWidth(this._width),this.validateVariant(this._variant)}get host(){return getElement(this)}static get watchers(){return{_label:["validateLabel"],_on:["validateOn"],_width:["validateWidth"],_variant:["validateVariant"]}}};KolModal.style={default:KolModalDefaultStyle0};export{KolModal as kol_modal};
@@ -1 +1 @@
1
- {"file":"kol-modal.entry.js","mappings":";;;;;;;;;AAAA,MAAM,eAAe,GAAG,g0IAAg0I,CAAC;AACz1I,8BAAe,eAAe;;MCiBjB,QAAQ;;;;;;sBAwEa,MAAM;qBAEF;YACpC,cAAc,EAAE,IAAI;YACpB,MAAM,EAAE,EAAE;YACV,MAAM,EAAE,MAAM;SACd;;IA3EM,kBAAkB;;QACxB,IAAI,IAAI,CAAC,KAAK,CAAC,cAAc,EAAE;YAC9B,MAAA,IAAI,CAAC,SAAS,0CAAE,SAAS,EAAE,CAAC;SAC5B;KACD;IAEM,oBAAoB;QAC1B,KAAK,IAAI,CAAC,UAAU,EAAE,CAAC;KACvB;IAEO,sBAAsB;;QAC7B,MAAA,MAAA,IAAI,CAAC,KAAK,CAAC,GAAG,0CAAE,OAAO,kDAAI,CAAC;KAC5B;IAID,MAAM,SAAS;;QACd,MAAA,IAAI,CAAC,SAAS,0CAAE,SAAS,EAAE,CAAC;KAC5B;IAIM,MAAM,UAAU;;QACtB,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;QAG3B,MAAA,MAAA,IAAI,CAAC,SAAS,0CAAE,KAAK,kDAAI,CAAC;KAC1B;IAEM,MAAM;QACZ,QACC,+DACC,KAAK,EAAC,WAAW,EACjB,GAAG,EAAE,CAAC,EAAE;gBACP,IAAI,CAAC,S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I,EAAE,QAAQ,EAAE,KAAK,EAAE;YAClC,YAAY,EAAE,MAAM;SACpB,CAAC,CAAC;KACH;IAEM,iBAAiB;QACvB,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAChD,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1B,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;KAChC;;;;;;;;;;;;;;","names":[],"sources":["src/components/modal/style.scss?tag=kol-modal&mode=default&encapsulation=shadow","src/components/modal/shadow.tsx"],"sourcesContent":["@use '../style' as *;\n\n@layer kol-component {\n\t.kol-modal {\n\t\tborder: 0;\n\t\tpadding: 0;\n\n\t\t&::backdrop {\n\t\t\tbackground-color: rgba(0, 0, 0, 0.33);\n\t\t}\n\t}\n}\n","import type { KoliBriModalEventCallbacks, LabelPropType, ModalAPI, ModalStates } from '../../schema';\nimport { setState, validateLabel, watchString, watchValidator } from '../../schema';\nimport type { JSX } from '@stencil/core';\nimport { Method } from '@stencil/core';\nimport { Component, h, Prop, State, Watch } from '@stencil/core';\n\n/**\n * https://en.wikipedia.org/wiki/Modal_window\n *\n * @slot - The modal's contents.\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 refDialog?: HTMLDialogElement;\n\n\tpublic componentDidRender(): void {\n\t\tif (this.state._activeElement) {\n\t\t\tthis.refDialog?.showModal();\n\t\t}\n\t}\n\n\tpublic disconnectedCallback(): void {\n\t\tvoid this.closeModal();\n\t}\n\n\tprivate handleNativeCloseEvent() {\n\t\tthis.state._on?.onClose?.();\n\t}\n\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tasync openModal() {\n\t\tthis.refDialog?.showModal();\n\t}\n\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async closeModal() {\n\t\tthis._activeElement = null;\n\n\t\t/* The optional chaining for the `close` method is not strictly necessary, but a simple/lazy workaround for HTMLDialog not being implemented in jsdom, causing Jest tests to fail. It may be removed in the future. */\n\t\tthis.refDialog?.close?.();\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<dialog\n\t\t\t\tclass=\"kol-modal\"\n\t\t\t\tref={(el) => {\n\t\t\t\t\tthis.refDialog = el;\n\t\t\t\t}}\n\t\t\t\tstyle={{\n\t\t\t\t\twidth: this.state._width,\n\t\t\t\t}}\n\t\t\t\taria-label={this.state._label}\n\t\t\t\tonClose={this.handleNativeCloseEvent.bind(this)}\n\t\t\t>\n\t\t\t\t{/* It's necessary to have a block element container for cross-browser compatibility. The display property for the slot content is unknown and could be inline. */}\n\t\t\t\t<div>\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t</dialog>\n\t\t);\n\t}\n\n\t/**\n\t * Legacy property - while set to an HTMLElement, the modal is open.\n\t * @deprecated Use methode `openModal` and `closeModal` instead.\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 * Defines the modal callback functions.\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\tif (this.state._activeElement) {\n\t\t\t\t\t\tvoid this.openModal();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvoid this.closeModal();\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\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"],"version":3}
1
+ {"file":"kol-modal.entry.js","mappings":";;;;;;;;;;;;;;;AAIA,MAAM,2BAA2B,GAAG,CAAC,OAAO,EAAE,MAAM,CAAU,CAAC;AAWxD,MAAM,oBAAoB,GAAG,CAAC,SAAoC,EAAE,KAA4B;IACtG,cAAc,CACb,SAAS,EACT,UAAU,EACV,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,2BAA2B,CAAC,QAAQ,CAAC,KAAK,CAAC,EACnF,IAAI,GAAG,CAAC,2BAA2B,CAAC,EACpC,KAAK,CACL,CAAC;AACH,CAAC;;ACvBD,MAAM,eAAe,GAAG,urLAAurL,CAAC;AAChtL,8BAAe,eAAe;;MCsBjB,QAAQ;;;QA4BH,OA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AE;oBACL,IAAI,EAAE,uBAAuB;iBAC7B;aACD,EACD,MAAM,EAAE,SAAS,CAAC,WAAW,CAAC,EAC9B,GAAG,EAAE,IAAI,CAAC,EAAE,EACZ,aAAa,EAAC,MAAM,GACH,CAClB,CACO,EACR;KACF;IA4BM,aAAa,CAAC,KAAqB;QACzC,aAAa,CAAC,IAAI,EAAE,KAAK,EAAE;YAC1B,QAAQ,EAAE,IAAI;SACd,CAAC,CAAC;KACH;IAGM,UAAU,CAAC,KAAkC;QACnD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE;YAChD,MAAM,SAAS,GAA+B,EAAE,CAAC;YACjD,IAAI,OAAO,KAAK,CAAC,OAAO,KAAK,UAAU,IAAI,KAAK,CAAC,OAAO,KAAK,IAAI,EAAE;gBAClE,SAAS,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;aAClC;YACD,QAAQ,CAA6B,IAAI,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;SAC7D;KACD;IAGM,aAAa,CAAC,KAAc;QAClC,WAAW,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE;YAClC,YAAY,EAAE,MAAM;SACpB,CAAC,CAAC;KACH;IAGM,eAAe,CAAC,KAA4B;QAClD,oBAAoB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;KAClC;IAEM,iBAAiB;QACvB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1B,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;KACpC;;;;;;;;;;;;;;;","names":[],"sources":["src/schema/props/variant/modal.ts","src/components/modal/style.scss?tag=kol-modal&mode=default&encapsulation=shadow","src/components/modal/shadow.tsx"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchValidator } from '../../utils/prop.validators';\n\nconst ModalVariantPropTypeOptions = ['blank', 'card'] as const;\nexport type ModalVariantPropType = (typeof ModalVariantPropTypeOptions)[number];\n\n/**\n * Defines the different variants for displaying the Modal.\n */\nexport type PropModalVariant = {\n\tvariant: ModalVariantPropType;\n};\n\n/* validator */\nexport const validateModalVariant = (component: Generic.Element.Component, value?: ModalVariantPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t'_variant',\n\t\t(value) => typeof value === 'string' && ModalVariantPropTypeOptions.includes(value),\n\t\tnew Set(ModalVariantPropTypeOptions),\n\t\tvalue,\n\t);\n};\n","@use '../@shared/mixins' as *;\n@use '../../styles/global' as *;\n@use '../tooltip/style.scss' as *;\n\n@layer kol-component {\n\t.kol-modal {\n\t\tborder: 0;\n\t\tpadding: 0;\n\t\tfont-size: rem(16);\n\t\tposition: relative;\n\n\t\t&::backdrop {\n\t\t\tbackground-color: rgba(0, 0, 0, 0.33);\n\t\t}\n\n\t\t&__close-button {\n\t\t\tposition: absolute;\n\t\t\ttop: rem(1);\n\t\t\tright: rem(1);\n\t\t\tz-index: 1;\n\t\t}\n\t}\n}\n","import type { KoliBriModalEventCallbacks, LabelPropType, ModalAPI, ModalStates } from '../../schema';\nimport { setState, validateLabel, watchString } from '../../schema';\nimport type { JSX } from '@stencil/core';\nimport { Component, Element, h, Method, Prop, State, Watch } from '@stencil/core';\nimport { dispatchDomEvent, KolEvent } from '../../utils/events';\nimport type { ModalVariantPropType } from '../../schema/props/variant/modal';\nimport { validateModalVariant } from '../../schema/props/variant/modal';\nimport { KolButtonWcTag } from '../../core/component-names';\nimport { translate } from '../../i18n';\nimport clsx from 'clsx';\n\n/**\n * https://en.wikipedia.org/wiki/Modal_window\n *\n * @slot - The modal's contents.\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\t@Element() private readonly host?: HTMLKolModalElement;\n\tprivate refDialog?: HTMLDialogElement;\n\n\tpublic disconnectedCallback(): void {\n\t\tvoid this.closeModal();\n\t}\n\n\tprivate handleNativeCloseEvent() {\n\t\tthis.state._on?.onClose?.();\n\t\tif (this.host) {\n\t\t\tdispatchDomEvent(this.host, KolEvent.close);\n\t\t}\n\t}\n\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tasync openModal() {\n\t\tthis.refDialog?.showModal();\n\t}\n\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async closeModal() {\n\t\t/* The optional chaining for the `close` method is not strictly necessary, but a simple/lazy workaround for HTMLDialog not being implemented in jsdom, causing Jest tests to fail. It may be removed in the future. */\n\t\tthis.refDialog?.close?.();\n\t}\n\n\tprivate readonly on = {\n\t\tonClick: async () => {\n\t\t\tawait this.closeModal();\n\t\t},\n\t};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<dialog\n\t\t\t\tclass={clsx('kol-modal', { 'kol-modal__card': this.state._variant === 'card' })}\n\t\t\t\tref={(el) => {\n\t\t\t\t\tthis.refDialog = el;\n\t\t\t\t}}\n\t\t\t\tstyle={{\n\t\t\t\t\twidth: this.state._width,\n\t\t\t\t}}\n\t\t\t\taria-label={this.state._label}\n\t\t\t\tonClose={this.handleNativeCloseEvent.bind(this)}\n\t\t\t>\n\t\t\t\t{/* It's necessary to have a block element container for cross-browser compatibility. The display property for the slot content is unknown and could be inline. */}\n\t\t\t\t<div tabindex=\"-1\">\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t\t{this.state._variant === 'card' && (\n\t\t\t\t\t<KolButtonWcTag\n\t\t\t\t\t\tclass=\"kol-modal__close-button\"\n\t\t\t\t\t\tdata-testid=\"modal-close-button\"\n\t\t\t\t\t\t_hideLabel\n\t\t\t\t\t\t_icons={{\n\t\t\t\t\t\t\tleft: {\n\t\t\t\t\t\t\t\ticon: 'codicon codicon-close',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t}}\n\t\t\t\t\t\t_label={translate('kol-close')}\n\t\t\t\t\t\t_on={this.on}\n\t\t\t\t\t\t_tooltipAlign=\"left\"\n\t\t\t\t\t></KolButtonWcTag>\n\t\t\t\t)}\n\t\t\t</dialog>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label!: LabelPropType;\n\n\t/**\n\t * Defines the modal callback functions.\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/**\n\t * Defines the variant of the modal.\n\t */\n\t@Prop() public _variant?: ModalVariantPropType = 'blank';\n\n\t@State() public state: ModalStates = {\n\t\t_label: '', // required\n\t\t_width: '100%',\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\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\t@Watch('_variant')\n\tpublic validateVariant(value?: ModalVariantPropType): void {\n\t\tvalidateModalVariant(this, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateOn(this._on);\n\t\tthis.validateWidth(this._width);\n\t\tthis.validateVariant(this._variant);\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as registerInstance,h,H as Host}from"./index-f0de5c73.js";import{t as translate}from"./i18n-5fe08f1c.js";import{r as removeNavLabel,a as addNavLabel}from"./unique-nav-labels-768d04e9.js";import{w as watchNavLinks}from"./validation-3ba0e439.js";import{j as KolLinkWcTag,c as KolButtonWcTag,n as KolButtonTag}from"./component-names-6ca7e863.js";import{b as watchBoolean,l as devWarning,e as a11yHintLabelingLandmarks,j as devHint,w as watchValidator}from"./prop.validators-64749272.js";import{v as validateHideLabel}from"./hide-label-8c202307.js";import{v as validateLabel}from"./label-e8ec0e3a.js";import"./i18n-7ea9f137.js";import"./reuse-32931294.js";import"./dev.utils-fab45cbc.js";import"./index-da3e0c00.js";const validateCollapsible=(n,e)=>{watchBoolean(n,"_collapsible",e)},validateHasCompactButton=(n,e)=>{watchBoolean(n,"_hasCompactButton",e)},validateHasIconsWhenExpanded=(n,e)=>{watchBoolean(n,"_hasIconsWhenExpanded",e)},defaultStyleCss="/*\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: calc(44rem / var(--kolibri-root-font-size, 16));\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 rem(44).\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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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 font-size: calc(16rem / var(--kolibri-root-font-size, 16));\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 /* 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 .kol-tooltip-wc {\n display: contents;\n }\n .kol-tooltip-wc .tooltip-floating {\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n /* Shared between content and arrow */\n .kol-tooltip-wc .tooltip-area {\n background-color: #fff;\n color: #000;\n }\n .kol-tooltip-wc .tooltip-arrow {\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip-wc .tooltip-content {\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n :host > div {\n display: flex;\n flex-direction: column;\n align-items: center;\n place-items: center;\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 .list.horizontal {\n flex-wrap: wrap;\n }\n .entry {\n display: flex;\n }\n .entry-item {\n flex-grow: 1;\n }\n}",KolNavDefaultStyle0=defaultStyleCss,entryIsLink=n=>"string"==typeof n._href,entryIsButton=n=>{var e;return void 0===n._href&&"function"==typeof(null===(e=n._on)||void 0===e?void 0:e.onClick)},KolNav=class{constructor(n){registerInstance(this,n),this.handleToggleExpansionClick=n=>{n&&(this.state._expandedChildren.includes(n)?this.collapseChildren(n):this.expandChildren(n))},this.linkList=n=>h("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(n){this.state=Object.assign(Object.assign({},this.state),{_expandedChildren:[...this.state._expandedChildren,n]})}collapseChildren(n){this.state=Object.assign(Object.assign({},this.state),{_expandedChildren:this.state._expandedChildren.filter((e=>e!=n))})}entry(n,e,t,i,a){const o=this.state._hasIconsWhenExpanded||this.state._hideLabel?i._icons||(this.state._hideLabel?"codicon codicon-symbol-method":void 0):void 0;return h("div",{class:{entry:!0,"hide-label":e}},entryIsLink(i)?h(KolLinkWcTag,Object.assign({class:"entry-item"},i,{_hideLabel:e,_icons:o})):h(KolButtonWcTag,{class:"entry-item",_label:i._label,_hideLabel:e,_icons:o,_on:{onClick:(n,e)=>{entryIsButton(i)&&"function"==typeof i._on.onClick?i._on.onClick(n,e):this.handleToggleExpansionClick(i._children)}}}),t?this.expandButton(n,i,a):"")}expandButton(n,e,t){return h(KolButtonWcTag,{class:"expand-button",_ariaExpanded:t,_disabled:!n,_icons:"codicon codicon-"+(t?"remove":"add"),_hideLabel:!0,_label:`${translate(t?"kol-nav-label-close":"kol-nav-label-open",{placeholders:{label:e._label}})}`,_on:{onClick:()=>this.handleToggleExpansionClick(e._children)}})}li(n,e,t,i,a,o){const l=!!a._active,s=Array.isArray(a._children)&&a._children.length>0,d=Boolean(a._children&&this.state._expandedChildren.includes(a._children));return h("li",{class:{active:l,expanded:d,"has-children":s},key:i},this.entry(n,e,s,a,d),d&&h(this.linkList,{collapsible:n,hideLabel:e,deep:t+1,links:a._children||[],orientation:o}))}initializeExpandedChildren(){const n=e=>{if(e._active)return e._children&&this.expandChildren(e._children),!0;if(e._children)for(const t of e._children)if(n(t))return this.expandChildren(e._children),!0;return!1};this.state._links.forEach(n)}render(){let n=this.state._hasCompactButton;"horizontal"===this.state._orientation&&!0===this.state._hasCompactButton&&(n=!1,devWarning("[KolNav] Wenn eine horizontale Navigation verwendet wird, kann die Option _hasCompactButton nicht aktiviert werden."));const e=!0===this.state._collapsible,t=!0===this.state._hideLabel,i=this.state._orientation;return h(Host,{key:"15caf1d6555a0a681971c8c5c954e8ce953f9062",class:"kol-nav"},h("div",{key:"5b56881e031a680795cf41245a3f794468ded92b",class:{nav:!0,[i]:!0,"is-compact":this.state._hideLabel}},h("nav",{key:"9ad6ca299ff178c8e6642fe9aa433d9629a1bf30","aria-label":this.state._label,id:"nav"},h(this.linkList,{key:"cd88455dab0988db51ad06ff3a9dd9b53d486ab3",collapsible:e,hideLabel:t,deep:0,links:this.state._links,orientation:i})),n&&h("div",{key:"f0fb3fcc467aa38e7d407493bf27880083106fe0",class:"compact"},h(KolButtonTag,{key:"2b8dfdd6df4e1ec6923fdab79b8d5cdfedf06299",_ariaControls:"nav",_ariaExpanded:!t,_icons:t?"codicon codicon-chevron-right":"codicon codicon-chevron-left",_hideLabel:!0,_label:translate(t?"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(n){validateCollapsible(this,n)}validateHasCompactButton(n){validateHasCompactButton(this,n)}validateHasIconsWhenExpanded(n){validateHasIconsWhenExpanded(this,n)}validateHideLabel(n){validateHideLabel(this,n)}validateLabel(n,e,t=!1){t||removeNavLabel(this.state._label),validateLabel(this,n,{required:!0}),a11yHintLabelingLandmarks(n),addNavLabel(this.state._label)}validateLinks(n){watchNavLinks("KolNav",this,n),devHint("[KolNav] The navigation structure is not yet validated recursively.")}validateOrientation(n){watchValidator(this,"_orientation",(n=>"horizontal"===n||"vertical"===n),new Set(["Orientation {horizontal, vertical}"]),n,{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(){removeNavLabel(this.state._label)}static get watchers(){return{_collapsible:["validateCollapsible"],_hasCompactButton:["validateHasCompactButton"],_hasIconsWhenExpanded:["validateHasIconsWhenExpanded"],_hideLabel:["validateHideLabel"],_label:["validateLabel"],_links:["validateLinks"],_orientation:["validateOrientation"]}}};KolNav.style={default:KolNavDefaultStyle0};export{KolNav as kol_nav};
4
+ import{r as registerInstance,h}from"./index-5ec1eac2.js";import{t as translate}from"./i18n-005310a7.js";import{r as removeNavLabel,a as addNavLabel}from"./unique-nav-labels-768d04e9.js";import{w as watchNavLinks}from"./validation-3ba0e439.js";import{f as KolLinkWcTag,a as KolButtonWcTag,i as KolButtonTag}from"./component-names-545d6582.js";import{c as clsx}from"./clsx-09a06a12.js";import{b as watchBoolean,l as devWarning,e as a11yHintLabelingLandmarks,j as devHint,w as watchValidator}from"./prop.validators-64749272.js";import{v as validateHideLabel}from"./hide-label-8c202307.js";import{v as validateLabel}from"./label-e8ec0e3a.js";import"./i18n-c120df5c.js";import"./reuse-f46e7e35.js";import"./dev.utils-fab45cbc.js";import"./index-da3e0c00.js";const validateCollapsible=(n,e)=>{watchBoolean(n,"_collapsible",e)},validateHasCompactButton=(n,e)=>{watchBoolean(n,"_hasCompactButton",e)},validateHasIconsWhenExpanded=(n,e)=>{watchBoolean(n,"_hasIconsWhenExpanded",e)},defaultStyleCss="/*\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: calc(44rem / var(--kolibri-root-font-size, 16));\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 rem(44).\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 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: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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 .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: grid;\n place-items: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\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,\n [disabled]:focus .kol-span {\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 .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n box-sizing: border-box;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n .kol-tooltip__arrow {\n background-color: #fff;\n color: #000;\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip__content {\n background-color: #fff;\n color: #000;\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-nav {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n display: grid;\n place-items: center;\n }\n .kol-nav--horizontal {\n width: 100%;\n }\n .kol-nav:not(.kol-nav--is-compact) .kol-nav__navigation {\n width: 100%;\n }\n .kol-nav__list {\n display: flex;\n list-style: none;\n margin: 0;\n padding: 0;\n }\n .kol-nav__list--vertical {\n flex-direction: column;\n }\n .kol-nav__list--horizontal {\n flex-wrap: wrap;\n }\n .kol-nav__entry-wrapper {\n display: flex;\n }\n .kol-nav__entry {\n flex-grow: 1;\n }\n}",KolNavDefaultStyle0=defaultStyleCss,entryIsLink=n=>"string"==typeof n._href,entryIsButton=n=>{var e;return void 0===n._href&&"function"==typeof(null===(e=n._on)||void 0===e?void 0:e.onClick)},KolNav=class{constructor(n){registerInstance(this,n),this.handleToggleExpansionClick=n=>{n&&(this.state._expandedChildren.includes(n)?this.collapseChildren(n):this.expandChildren(n))},this.linkList=n=>h("ul",{class:clsx("kol-nav__list",{"kol-nav__list--nested":n.deep>0,"kol-nav__list--horizontal":0===n.deep&&"horizontal"===n.orientation,"kol-nav__list--vertical":0!==n.deep||"vertical"===n.orientation}),"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(n){this.state=Object.assign(Object.assign({},this.state),{_expandedChildren:[...this.state._expandedChildren,n]})}collapseChildren(n){this.state=Object.assign(Object.assign({},this.state),{_expandedChildren:this.state._expandedChildren.filter((e=>e!=n))})}entry(n,e,t,a,i){const o=this.state._hasIconsWhenExpanded||this.state._hideLabel?a._icons||(this.state._hideLabel?"codicon codicon-symbol-method":void 0):void 0;return h("div",{class:"kol-nav__entry-wrapper"},entryIsLink(a)?h(KolLinkWcTag,Object.assign({class:"kol-nav__entry kol-nav__entry--link"},a,{_hideLabel:e,_icons:o})):h(KolButtonWcTag,{class:"kol-nav__entry kol-nav__entry--button",_label:a._label,_hideLabel:e,_icons:o,_on:{onClick:(n,e)=>{entryIsButton(a)&&"function"==typeof a._on.onClick?a._on.onClick(n,e):this.handleToggleExpansionClick(a._children)}}}),t?this.expandButton(n,a,i):"")}expandButton(n,e,t){return h(KolButtonWcTag,{class:clsx("kol-nav__expand-button",{"kol-nav__expand-button--expanded":t}),_ariaExpanded:t,_disabled:!n,_icons:"codicon codicon-"+(t?"remove":"add"),_hideLabel:!0,_label:`${translate(t?"kol-nav-label-close":"kol-nav-label-open",{placeholders:{label:e._label}})}`,_on:{onClick:()=>this.handleToggleExpansionClick(e._children)}})}li(n,e,t,a,i,o){const l=!!i._active,s=Array.isArray(i._children)&&i._children.length>0,d=Boolean(i._children&&this.state._expandedChildren.includes(i._children));return h("li",{class:clsx("kol-nav__list-item",{"kol-nav__list-item--active":l,"kol-nav__list-item--expanded":d,"kol-nav__list-item--has-children":s}),key:a},this.entry(n,e,s,i,d),d&&h(this.linkList,{collapsible:n,hideLabel:e,deep:t+1,links:i._children||[],orientation:o}))}initializeExpandedChildren(){const n=e=>{if(e._active)return e._children&&this.expandChildren(e._children),!0;if(e._children)for(const t of e._children)if(n(t))return this.expandChildren(e._children),!0;return!1};this.state._links.forEach(n)}render(){let n=this.state._hasCompactButton;"horizontal"===this.state._orientation&&!0===this.state._hasCompactButton&&(n=!1,devWarning("[KolNav] Wenn eine horizontale Navigation verwendet wird, kann die Option _hasCompactButton nicht aktiviert werden."));const e=!0===this.state._collapsible,t=!0===this.state._hideLabel,a=this.state._orientation;return h("div",{key:"52f1ba2a69870cd208aa9514b5cf8b4a99c8d3ab",class:clsx("kol-nav",`kol-nav--${a}`,{"kol-nav--is-compact":this.state._hideLabel})},h("nav",{key:"0ae9239598bde270bfefe8ee1e3077e9a2e80f88",class:"kol-nav__navigation","aria-label":this.state._label,id:"nav"},h(this.linkList,{key:"5b0555e0638e3029604e32d3e5496b88b6af288c",collapsible:e,hideLabel:t,deep:0,links:this.state._links,orientation:a})),n&&h("div",{key:"6e9f2a774c4b77eee0b2dcc306868e7b69bfcb5b",class:"kol-nav__compact"},h(KolButtonTag,{key:"5c87da3c9b3e6884dbba58e5e29c2db9dfa04455",_ariaControls:"nav",_ariaExpanded:!t,_icons:t?"codicon codicon-chevron-right":"codicon codicon-chevron-left",_hideLabel:!0,_label:translate(t?"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(n){validateCollapsible(this,n)}validateHasCompactButton(n){validateHasCompactButton(this,n)}validateHasIconsWhenExpanded(n){validateHasIconsWhenExpanded(this,n)}validateHideLabel(n){validateHideLabel(this,n)}validateLabel(n,e,t=!1){t||removeNavLabel(this.state._label),validateLabel(this,n,{required:!0}),a11yHintLabelingLandmarks(n),addNavLabel(this.state._label)}validateLinks(n){watchNavLinks("KolNav",this,n),devHint("[KolNav] The navigation structure is not yet validated recursively.")}validateOrientation(n){watchValidator(this,"_orientation",(n=>"horizontal"===n||"vertical"===n),new Set(["Orientation {horizontal, vertical}"]),n,{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(){removeNavLabel(this.state._label)}static get watchers(){return{_collapsible:["validateCollapsible"],_hasCompactButton:["validateHasCompactButton"],_hasIconsWhenExpanded:["validateHasIconsWhenExpanded"],_hideLabel:["validateHideLabel"],_label:["validateLabel"],_links:["validateLinks"],_orientation:["validateOrientation"]}}};KolNav.style={default:KolNavDefaultStyle0};export{KolNav as kol_nav};