@public-ui/components 3.0.0 → 3.0.1-3b313a0f2df6c512e868df86f443d016defc56fa.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 (716) hide show
  1. package/custom-elements.json +7 -19
  2. package/dist/cjs/{Alert-22c49278.js → Alert-1d2a5161.js} +1 -1
  3. package/dist/cjs/{Alert-22c49278.js.map → Alert-1d2a5161.js.map} +1 -1
  4. package/dist/cjs/{Collapsible-04d07ae5.js → Collapsible-402ca69a.js} +1 -1
  5. package/dist/cjs/{Collapsible-04d07ae5.js.map → Collapsible-402ca69a.js.map} +1 -1
  6. package/dist/cjs/CustomSuggestionsOptionsGroup-b28f436b.js +4 -0
  7. package/dist/cjs/{CustomSuggestionsOptionsGroup-60ec84bd.js.map → CustomSuggestionsOptionsGroup-b28f436b.js.map} +1 -1
  8. package/dist/cjs/FieldControlStateWrapper-26882a7e.js +4 -0
  9. package/dist/cjs/FieldControlStateWrapper-26882a7e.js.map +1 -0
  10. package/dist/cjs/Heading-a6ce4a7e.js +4 -0
  11. package/dist/cjs/Heading-a6ce4a7e.js.map +1 -0
  12. package/dist/cjs/{Icon-9e0021e7.js → Icon-45cefad5.js} +1 -1
  13. package/dist/cjs/{Icon-9e0021e7.js.map → Icon-45cefad5.js.map} +1 -1
  14. package/dist/cjs/{Input-c953eb09.js → Input-f19be604.js} +1 -1
  15. package/dist/cjs/{Input-c953eb09.js.map → Input-f19be604.js.map} +1 -1
  16. package/dist/cjs/InputStateWrapper-b2bde079.js +4 -0
  17. package/dist/cjs/InputStateWrapper-b2bde079.js.map +1 -0
  18. package/dist/cjs/{InternalUnderlinedBadgeText-6c8700f2.js → InternalUnderlinedBadgeText-746ed3a6.js} +1 -1
  19. package/dist/cjs/{InternalUnderlinedBadgeText-6c8700f2.js.map → InternalUnderlinedBadgeText-746ed3a6.js.map} +1 -1
  20. package/dist/cjs/{Span-77749bd7.js → Span-fb4cec1c.js} +1 -1
  21. package/dist/cjs/{Span-77749bd7.js.map → Span-fb4cec1c.js.map} +1 -1
  22. package/dist/cjs/{access-and-short-key-2167fc7c.js → access-and-short-key-ba5dc318.js} +1 -1
  23. package/dist/cjs/{access-and-short-key-2167fc7c.js.map → access-and-short-key-ba5dc318.js.map} +1 -1
  24. package/dist/cjs/{align-4abb9b20.js → align-6dbf7621.js} +1 -1
  25. package/dist/cjs/{align-4abb9b20.js.map → align-6dbf7621.js.map} +1 -1
  26. package/dist/cjs/align-floating-elements-7e50809a.js +4 -0
  27. package/dist/cjs/align-floating-elements-7e50809a.js.map +1 -0
  28. package/dist/cjs/app-globals-5784eae5.js +4 -0
  29. package/dist/cjs/{app-globals-46af1a24.js.map → app-globals-5784eae5.js.map} +1 -1
  30. package/dist/cjs/{associated.controller-949dd4e2.js → associated.controller-03ae298d.js} +1 -1
  31. package/dist/cjs/{associated.controller-949dd4e2.js.map → associated.controller-03ae298d.js.map} +1 -1
  32. package/dist/cjs/{bootstrap-7c830737.js → bootstrap-e11bb4f7.js} +1 -1
  33. package/dist/cjs/{bootstrap-7c830737.js.map → bootstrap-e11bb4f7.js.map} +1 -1
  34. package/dist/cjs/{button-variant-d57323f9.js → button-variant-1871e63b.js} +1 -1
  35. package/dist/cjs/{button-variant-d57323f9.js.map → button-variant-1871e63b.js.map} +1 -1
  36. package/dist/cjs/{color-e458d959.js → color-9f3a33be.js} +1 -1
  37. package/dist/cjs/{color-e458d959.js.map → color-9f3a33be.js.map} +1 -1
  38. package/dist/cjs/{controller-849b3844.js → controller-42c2042a.js} +1 -1
  39. package/dist/cjs/{controller-849b3844.js.map → controller-42c2042a.js.map} +1 -1
  40. package/dist/cjs/{controller-d834122a.js → controller-5a757e92.js} +1 -1
  41. package/dist/cjs/{controller-d834122a.js.map → controller-5a757e92.js.map} +1 -1
  42. package/dist/cjs/{controller-7c72bfb5.js → controller-cb68b652.js} +1 -1
  43. package/dist/cjs/{controller-7c72bfb5.js.map → controller-cb68b652.js.map} +1 -1
  44. package/dist/cjs/controller-fcbb871b.js +4 -0
  45. package/dist/cjs/controller-fcbb871b.js.map +1 -0
  46. package/dist/cjs/{controller-icon-e2f8e416.js → controller-icon-1057532f.js} +1 -1
  47. package/dist/cjs/{controller-icon-e2f8e416.js.map → controller-icon-1057532f.js.map} +1 -1
  48. package/dist/cjs/{custom-class-cfe6094f.js → custom-class-65fdabdc.js} +1 -1
  49. package/dist/cjs/{custom-class-cfe6094f.js.map → custom-class-65fdabdc.js.map} +1 -1
  50. package/dist/cjs/{dev.utils-f6da9b54.js → dev.utils-6362f657.js} +1 -1
  51. package/dist/cjs/{dev.utils-f6da9b54.js.map → dev.utils-6362f657.js.map} +1 -1
  52. package/dist/cjs/{devtools-ff9824c8.js → devtools-df614926.js} +1 -1
  53. package/dist/cjs/{devtools-ff9824c8.js.map → devtools-df614926.js.map} +1 -1
  54. package/dist/cjs/{disabled-71a44266.js → disabled-1872d3f6.js} +1 -1
  55. package/dist/cjs/{disabled-71a44266.js.map → disabled-1872d3f6.js.map} +1 -1
  56. package/dist/cjs/{getRenderStates-8e102335.js → getRenderStates-48fc8449.js} +1 -1
  57. package/dist/cjs/getRenderStates-48fc8449.js.map +1 -0
  58. package/dist/cjs/{has-closer-eda2f56e.js → has-closer-b9c139d3.js} +1 -1
  59. package/dist/cjs/{has-closer-eda2f56e.js.map → has-closer-b9c139d3.js.map} +1 -1
  60. package/dist/cjs/{has-counter-c7ed1940.js → has-counter-edfb692b.js} +1 -1
  61. package/dist/cjs/{has-counter-c7ed1940.js.map → has-counter-edfb692b.js.map} +1 -1
  62. package/dist/cjs/{hide-label-5889f019.js → hide-label-18d6d9e2.js} +1 -1
  63. package/dist/cjs/{hide-label-5889f019.js.map → hide-label-18d6d9e2.js.map} +1 -1
  64. package/dist/cjs/{href-273fdbde.js → href-b36c8e1d.js} +1 -1
  65. package/dist/cjs/{href-273fdbde.js.map → href-b36c8e1d.js.map} +1 -1
  66. package/dist/cjs/{i18n-b9d16ebc.js → i18n-b01aa5d0.js} +1 -1
  67. package/dist/cjs/{i18n-b9d16ebc.js.map → i18n-b01aa5d0.js.map} +1 -1
  68. package/dist/cjs/{icons-9df3131b.js → icons-99569c9b.js} +1 -1
  69. package/dist/cjs/{icons-9df3131b.js.map → icons-99569c9b.js.map} +1 -1
  70. package/dist/cjs/image-source-481ea03a.js +4 -0
  71. package/dist/cjs/{image-source-f24a4569.js.map → image-source-481ea03a.js.map} +1 -1
  72. package/dist/cjs/index-18da097e.js +4 -0
  73. package/dist/cjs/index-18da097e.js.map +1 -0
  74. package/dist/cjs/index-94c17ce6.js +4 -0
  75. package/dist/cjs/index-94c17ce6.js.map +1 -0
  76. package/dist/cjs/index.cjs.js +1 -1
  77. package/dist/cjs/index.cjs.js.map +1 -1
  78. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  79. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  80. package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
  81. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  82. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  84. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  86. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  87. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  88. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  89. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  90. package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
  91. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
  93. package/dist/cjs/kol-form.cjs.entry.js +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-image.cjs.entry.js +1 -1
  98. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  99. package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
  100. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  102. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  103. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  104. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  105. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  106. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  107. package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
  108. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  109. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  110. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  111. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  112. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  113. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  114. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  115. package/dist/cjs/kol-modal.cjs.entry.js.map +1 -1
  116. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  117. package/dist/cjs/kol-nav.cjs.entry.js.map +1 -1
  118. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  119. package/dist/cjs/kol-pagination.cjs.entry.js.map +1 -1
  120. package/dist/cjs/kol-popover-button-wc.cjs.entry.js +1 -1
  121. package/dist/cjs/kol-popover-button.cjs.entry.js +1 -1
  122. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  123. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  124. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  125. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  126. package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
  127. package/dist/cjs/kol-single-select.cjs.entry.js +1 -1
  128. package/dist/cjs/kol-single-select.cjs.entry.js.map +1 -1
  129. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  130. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  131. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  132. package/dist/cjs/kol-table-settings-wc.cjs.entry.js +1 -1
  133. package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
  134. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
  135. package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
  136. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  137. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  138. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  139. package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
  140. package/dist/cjs/kol-toolbar.cjs.entry.js.map +1 -1
  141. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  142. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
  143. package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
  144. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  145. package/dist/cjs/kol-tree.cjs.entry.js +1 -1
  146. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  147. package/dist/cjs/kolibri.cjs.js +1 -1
  148. package/dist/cjs/{label-21c38949.js → label-7b22af75.js} +1 -1
  149. package/dist/cjs/{label-21c38949.js.map → label-7b22af75.js.map} +1 -1
  150. package/dist/cjs/loader.cjs.js +1 -1
  151. package/dist/cjs/{open-4dee9006.js → open-350f3b99.js} +1 -1
  152. package/dist/cjs/{open-4dee9006.js.map → open-350f3b99.js.map} +1 -1
  153. package/dist/cjs/orientation-7bef64eb.js +4 -0
  154. package/dist/cjs/orientation-7bef64eb.js.map +1 -0
  155. package/dist/cjs/{rows-f8c639c4.js → rows-00510978.js} +1 -1
  156. package/dist/cjs/{rows-f8c639c4.js.map → rows-00510978.js.map} +1 -1
  157. package/dist/cjs/{show-f24ad825.js → show-0449c2d9.js} +1 -1
  158. package/dist/cjs/{show-f24ad825.js.map → show-0449c2d9.js.map} +1 -1
  159. package/dist/cjs/spell-check-e7bda657.js +4 -0
  160. package/dist/cjs/{spell-check-0419d7d7.js.map → spell-check-e7bda657.js.map} +1 -1
  161. package/dist/cjs/{suggestions-69a79ec5.js → suggestions-88f8f404.js} +1 -1
  162. package/dist/cjs/{suggestions-69a79ec5.js.map → suggestions-88f8f404.js.map} +1 -1
  163. package/dist/cjs/{table-settings-ab716c5d.js → table-settings-3f1de70e.js} +1 -1
  164. package/dist/cjs/{table-settings-ab716c5d.js.map → table-settings-3f1de70e.js.map} +1 -1
  165. package/dist/cjs/test-component.cjs.entry.js +1 -1
  166. package/dist/cjs/tooltip-align-6938fb01.js +4 -0
  167. package/dist/cjs/{tooltip-align-4446177f.js.map → tooltip-align-6938fb01.js.map} +1 -1
  168. package/dist/cjs/unique-nav-labels-eee92e0a.js +4 -0
  169. package/dist/cjs/unique-nav-labels-eee92e0a.js.map +1 -0
  170. package/dist/cjs/validation-515de18a.js +4 -0
  171. package/dist/cjs/{validation-2d282d7c.js.map → validation-515de18a.js.map} +1 -1
  172. package/dist/cjs/{validation-6b01b0ae.js → validation-8f012860.js} +1 -1
  173. package/dist/cjs/{validation-6b01b0ae.js.map → validation-8f012860.js.map} +1 -1
  174. package/dist/components/FieldControlStateWrapper.js +1 -1
  175. package/dist/components/FieldControlStateWrapper.js.map +1 -1
  176. package/dist/components/Heading.js +1 -1
  177. package/dist/components/Heading.js.map +1 -1
  178. package/dist/components/InputStateWrapper.js +1 -1
  179. package/dist/components/InputStateWrapper.js.map +1 -1
  180. package/dist/components/Span.js +1 -1
  181. package/dist/components/access-and-short-key.js +1 -1
  182. package/dist/components/align-floating-elements.js +1 -1
  183. package/dist/components/align-floating-elements.js.map +1 -1
  184. package/dist/components/associated.controller.js +1 -1
  185. package/dist/components/button-variant.js +1 -1
  186. package/dist/components/color.js +1 -1
  187. package/dist/components/color.js.map +1 -1
  188. package/dist/components/controller2.js +1 -1
  189. package/dist/components/controller2.js.map +1 -1
  190. package/dist/components/controller4.js +1 -1
  191. package/dist/components/custom-class.js +1 -1
  192. package/dist/components/dev.utils.js +1 -1
  193. package/dist/components/devtools.js +1 -1
  194. package/dist/components/disabled.js +1 -1
  195. package/dist/components/getRenderStates.js +1 -1
  196. package/dist/components/getRenderStates.js.map +1 -1
  197. package/dist/components/has-closer.js +1 -1
  198. package/dist/components/has-counter.js +1 -1
  199. package/dist/components/hide-label.js +1 -1
  200. package/dist/components/href.js +1 -1
  201. package/dist/components/icons.js +1 -1
  202. package/dist/components/image-source.js +1 -1
  203. package/dist/components/index.js +1 -1
  204. package/dist/components/index.js.map +1 -1
  205. package/dist/components/index2.js +1 -1
  206. package/dist/components/index2.js.map +1 -1
  207. package/dist/components/kol-alert-wc.js +1 -1
  208. package/dist/components/kol-badge.js +1 -1
  209. package/dist/components/kol-breadcrumb.js +1 -1
  210. package/dist/components/kol-button-wc.js +1 -1
  211. package/dist/components/kol-card.js +1 -1
  212. package/dist/components/kol-combobox.js +1 -1
  213. package/dist/components/kol-drawer.js +1 -1
  214. package/dist/components/kol-form.js +1 -1
  215. package/dist/components/kol-heading.js +1 -1
  216. package/dist/components/kol-heading.js.map +1 -1
  217. package/dist/components/kol-icon.js +1 -1
  218. package/dist/components/kol-image.js +1 -1
  219. package/dist/components/kol-input-checkbox.js +1 -1
  220. package/dist/components/kol-input-color.js +1 -1
  221. package/dist/components/kol-input-date.js +1 -1
  222. package/dist/components/kol-input-email.js +1 -1
  223. package/dist/components/kol-input-file.js +1 -1
  224. package/dist/components/kol-input-number.js +1 -1
  225. package/dist/components/kol-input-password.js +1 -1
  226. package/dist/components/kol-input-radio.js +1 -1
  227. package/dist/components/kol-input-radio.js.map +1 -1
  228. package/dist/components/kol-input-text.js +1 -1
  229. package/dist/components/kol-kolibri.js +1 -1
  230. package/dist/components/kol-link-wc.js +1 -1
  231. package/dist/components/kol-modal.js +1 -1
  232. package/dist/components/kol-modal.js.map +1 -1
  233. package/dist/components/kol-nav.js +1 -1
  234. package/dist/components/kol-nav.js.map +1 -1
  235. package/dist/components/kol-pagination.js +1 -1
  236. package/dist/components/kol-pagination.js.map +1 -1
  237. package/dist/components/kol-progress.js +1 -1
  238. package/dist/components/kol-quote.js +1 -1
  239. package/dist/components/kol-select.js +1 -1
  240. package/dist/components/kol-single-select.js +1 -1
  241. package/dist/components/kol-table-stateful.js +1 -1
  242. package/dist/components/kol-table-stateless-wc.js +1 -1
  243. package/dist/components/kol-tabs.js +1 -1
  244. package/dist/components/kol-textarea.js +1 -1
  245. package/dist/components/kol-toolbar.js +1 -1
  246. package/dist/components/kol-toolbar.js.map +1 -1
  247. package/dist/components/kol-tooltip-wc.js +1 -1
  248. package/dist/components/kol-tree-item-wc.js +1 -1
  249. package/dist/components/label.js +1 -1
  250. package/dist/components/open.js +1 -1
  251. package/dist/components/orientation.js +4 -0
  252. package/dist/components/orientation.js.map +1 -0
  253. package/dist/components/show.js +1 -1
  254. package/dist/components/spell-check.js +1 -1
  255. package/dist/components/suggestions.js +1 -1
  256. package/dist/components/table-settings.js +1 -1
  257. package/dist/components/unique-nav-labels.js +1 -1
  258. package/dist/components/unique-nav-labels.js.map +1 -1
  259. package/dist/components/validation2.js +1 -1
  260. package/dist/esm/Alert-05f95bd6.js +4 -0
  261. package/dist/esm/{Alert-3c98a2ff.js.map → Alert-05f95bd6.js.map} +1 -1
  262. package/dist/esm/{Collapsible-e6c95e1f.js → Collapsible-7e53a94c.js} +1 -1
  263. package/dist/esm/{Collapsible-e6c95e1f.js.map → Collapsible-7e53a94c.js.map} +1 -1
  264. package/dist/esm/CustomSuggestionsOptionsGroup-042dc702.js +4 -0
  265. package/dist/esm/{CustomSuggestionsOptionsGroup-6b0631f5.js.map → CustomSuggestionsOptionsGroup-042dc702.js.map} +1 -1
  266. package/dist/esm/{FieldControlStateWrapper-7397d965.js → FieldControlStateWrapper-b973bfc3.js} +1 -1
  267. package/dist/esm/FieldControlStateWrapper-b973bfc3.js.map +1 -0
  268. package/dist/esm/Heading-d8ed192d.js +4 -0
  269. package/dist/esm/Heading-d8ed192d.js.map +1 -0
  270. package/dist/esm/{Icon-faa6cbca.js → Icon-b74f22a2.js} +1 -1
  271. package/dist/esm/{Icon-faa6cbca.js.map → Icon-b74f22a2.js.map} +1 -1
  272. package/dist/esm/{Input-ce53cfae.js → Input-80c438fc.js} +1 -1
  273. package/dist/esm/{Input-ce53cfae.js.map → Input-80c438fc.js.map} +1 -1
  274. package/dist/esm/InputStateWrapper-0b8a1a3e.js +4 -0
  275. package/dist/esm/InputStateWrapper-0b8a1a3e.js.map +1 -0
  276. package/dist/esm/{InternalUnderlinedBadgeText-2e08c7cb.js → InternalUnderlinedBadgeText-7028c03e.js} +1 -1
  277. package/dist/esm/{InternalUnderlinedBadgeText-2e08c7cb.js.map → InternalUnderlinedBadgeText-7028c03e.js.map} +1 -1
  278. package/dist/esm/{Span-89b9ae45.js → Span-550d722f.js} +1 -1
  279. package/dist/esm/{Span-89b9ae45.js.map → Span-550d722f.js.map} +1 -1
  280. package/dist/esm/{access-and-short-key-753466cb.js → access-and-short-key-f743a5c4.js} +1 -1
  281. package/dist/esm/{access-and-short-key-753466cb.js.map → access-and-short-key-f743a5c4.js.map} +1 -1
  282. package/dist/esm/{align-a05c3d17.js → align-d2572387.js} +1 -1
  283. package/dist/esm/{align-a05c3d17.js.map → align-d2572387.js.map} +1 -1
  284. package/dist/esm/align-floating-elements-526ce555.js +4 -0
  285. package/dist/esm/align-floating-elements-526ce555.js.map +1 -0
  286. package/dist/esm/app-globals-e2bc9b44.js +4 -0
  287. package/dist/esm/{app-globals-7a7161e6.js.map → app-globals-e2bc9b44.js.map} +1 -1
  288. package/dist/esm/{associated.controller-4efb16f5.js → associated.controller-43abc1c0.js} +1 -1
  289. package/dist/esm/{associated.controller-4efb16f5.js.map → associated.controller-43abc1c0.js.map} +1 -1
  290. package/dist/esm/{bootstrap-874afb5b.js → bootstrap-7fca1a52.js} +1 -1
  291. package/dist/esm/{bootstrap-874afb5b.js.map → bootstrap-7fca1a52.js.map} +1 -1
  292. package/dist/esm/{button-variant-d6a980cf.js → button-variant-4fc69b59.js} +1 -1
  293. package/dist/esm/{button-variant-d6a980cf.js.map → button-variant-4fc69b59.js.map} +1 -1
  294. package/dist/esm/{color-066d384d.js → color-1228dab7.js} +1 -1
  295. package/dist/esm/{color-066d384d.js.map → color-1228dab7.js.map} +1 -1
  296. package/dist/esm/{controller-1beb6ffa.js → controller-460d12d6.js} +1 -1
  297. package/dist/esm/{controller-1beb6ffa.js.map → controller-460d12d6.js.map} +1 -1
  298. package/dist/esm/{controller-4227bd3b.js → controller-b4a4d397.js} +1 -1
  299. package/dist/esm/{controller-4227bd3b.js.map → controller-b4a4d397.js.map} +1 -1
  300. package/dist/esm/controller-c6ea1cc4.js +4 -0
  301. package/dist/esm/controller-c6ea1cc4.js.map +1 -0
  302. package/dist/esm/{controller-d626a16d.js → controller-d1cd494d.js} +1 -1
  303. package/dist/esm/{controller-d626a16d.js.map → controller-d1cd494d.js.map} +1 -1
  304. package/dist/esm/{controller-icon-bb92519e.js → controller-icon-86ecd871.js} +1 -1
  305. package/dist/esm/{controller-icon-bb92519e.js.map → controller-icon-86ecd871.js.map} +1 -1
  306. package/dist/esm/{custom-class-30e531d5.js → custom-class-d73b81b1.js} +1 -1
  307. package/dist/esm/{custom-class-30e531d5.js.map → custom-class-d73b81b1.js.map} +1 -1
  308. package/dist/esm/{dev.utils-77f0b548.js → dev.utils-0ac8aabc.js} +1 -1
  309. package/dist/esm/{dev.utils-77f0b548.js.map → dev.utils-0ac8aabc.js.map} +1 -1
  310. package/dist/esm/{devtools-3a667970.js → devtools-be4a2647.js} +1 -1
  311. package/dist/esm/{devtools-3a667970.js.map → devtools-be4a2647.js.map} +1 -1
  312. package/dist/esm/disabled-e1038f54.js +4 -0
  313. package/dist/esm/{disabled-e64a9155.js.map → disabled-e1038f54.js.map} +1 -1
  314. package/dist/esm/{getRenderStates-dba2a9a8.js → getRenderStates-d37b86aa.js} +1 -1
  315. package/dist/esm/getRenderStates-d37b86aa.js.map +1 -0
  316. package/dist/esm/has-closer-798e8f4d.js +4 -0
  317. package/dist/esm/{has-closer-ca9bcd36.js.map → has-closer-798e8f4d.js.map} +1 -1
  318. package/dist/esm/has-counter-3fc44829.js +4 -0
  319. package/dist/esm/{has-counter-a7dccaa5.js.map → has-counter-3fc44829.js.map} +1 -1
  320. package/dist/esm/hide-label-8b3a8709.js +4 -0
  321. package/dist/esm/{hide-label-418cc5c0.js.map → hide-label-8b3a8709.js.map} +1 -1
  322. package/dist/esm/href-d9ccbbdf.js +4 -0
  323. package/dist/esm/{href-7f134614.js.map → href-d9ccbbdf.js.map} +1 -1
  324. package/dist/esm/i18n-260f0fe9.js +4 -0
  325. package/dist/esm/{i18n-01abf777.js.map → i18n-260f0fe9.js.map} +1 -1
  326. package/dist/esm/{icons-acf365fd.js → icons-a9c52ed8.js} +1 -1
  327. package/dist/esm/{icons-acf365fd.js.map → icons-a9c52ed8.js.map} +1 -1
  328. package/dist/esm/{image-source-00f34574.js → image-source-8079f8a5.js} +1 -1
  329. package/dist/esm/{image-source-00f34574.js.map → image-source-8079f8a5.js.map} +1 -1
  330. package/dist/esm/index-bf880eba.js +4 -0
  331. package/dist/esm/index-bf880eba.js.map +1 -0
  332. package/dist/esm/index-ebe5a881.js +4 -0
  333. package/dist/esm/index-ebe5a881.js.map +1 -0
  334. package/dist/esm/index.js +1 -1
  335. package/dist/esm/index.js.map +1 -1
  336. package/dist/esm/kol-abbr.entry.js +1 -1
  337. package/dist/esm/kol-accordion.entry.js +1 -1
  338. package/dist/esm/kol-alert-wc.entry.js +1 -1
  339. package/dist/esm/kol-alert.entry.js +1 -1
  340. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  341. package/dist/esm/kol-avatar.entry.js +1 -1
  342. package/dist/esm/kol-badge.entry.js +1 -1
  343. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  344. package/dist/esm/kol-button-link.entry.js +1 -1
  345. package/dist/esm/kol-button-wc.entry.js +1 -1
  346. package/dist/esm/kol-button.entry.js +1 -1
  347. package/dist/esm/kol-card.entry.js +1 -1
  348. package/dist/esm/kol-combobox.entry.js +1 -1
  349. package/dist/esm/kol-details.entry.js +1 -1
  350. package/dist/esm/kol-drawer.entry.js +1 -1
  351. package/dist/esm/kol-form.entry.js +1 -1
  352. package/dist/esm/kol-heading.entry.js +1 -1
  353. package/dist/esm/kol-heading.entry.js.map +1 -1
  354. package/dist/esm/kol-icon.entry.js +1 -1
  355. package/dist/esm/kol-image.entry.js +1 -1
  356. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  357. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  358. package/dist/esm/kol-input-color.entry.js +1 -1
  359. package/dist/esm/kol-input-date.entry.js +1 -1
  360. package/dist/esm/kol-input-email.entry.js +1 -1
  361. package/dist/esm/kol-input-file.entry.js +1 -1
  362. package/dist/esm/kol-input-number.entry.js +1 -1
  363. package/dist/esm/kol-input-password.entry.js +1 -1
  364. package/dist/esm/kol-input-radio.entry.js +1 -1
  365. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  366. package/dist/esm/kol-input-range.entry.js +1 -1
  367. package/dist/esm/kol-input-text.entry.js +1 -1
  368. package/dist/esm/kol-kolibri.entry.js +1 -1
  369. package/dist/esm/kol-link-button.entry.js +1 -1
  370. package/dist/esm/kol-link-wc.entry.js +1 -1
  371. package/dist/esm/kol-link.entry.js +1 -1
  372. package/dist/esm/kol-modal.entry.js +1 -1
  373. package/dist/esm/kol-modal.entry.js.map +1 -1
  374. package/dist/esm/kol-nav.entry.js +1 -1
  375. package/dist/esm/kol-nav.entry.js.map +1 -1
  376. package/dist/esm/kol-pagination.entry.js +1 -1
  377. package/dist/esm/kol-pagination.entry.js.map +1 -1
  378. package/dist/esm/kol-popover-button-wc.entry.js +1 -1
  379. package/dist/esm/kol-popover-button.entry.js +1 -1
  380. package/dist/esm/kol-popover-wc.entry.js +1 -1
  381. package/dist/esm/kol-progress.entry.js +1 -1
  382. package/dist/esm/kol-quote.entry.js +1 -1
  383. package/dist/esm/kol-select.entry.js +1 -1
  384. package/dist/esm/kol-select.entry.js.map +1 -1
  385. package/dist/esm/kol-single-select.entry.js +1 -1
  386. package/dist/esm/kol-single-select.entry.js.map +1 -1
  387. package/dist/esm/kol-skip-nav.entry.js +1 -1
  388. package/dist/esm/kol-spin.entry.js +1 -1
  389. package/dist/esm/kol-split-button.entry.js +1 -1
  390. package/dist/esm/kol-table-settings-wc.entry.js +1 -1
  391. package/dist/esm/kol-table-stateful.entry.js +1 -1
  392. package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
  393. package/dist/esm/kol-table-stateless.entry.js +1 -1
  394. package/dist/esm/kol-tabs.entry.js +1 -1
  395. package/dist/esm/kol-textarea.entry.js +1 -1
  396. package/dist/esm/kol-toast-container.entry.js +1 -1
  397. package/dist/esm/kol-toolbar.entry.js +1 -1
  398. package/dist/esm/kol-toolbar.entry.js.map +1 -1
  399. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  400. package/dist/esm/kol-tree-item-wc.entry.js +1 -1
  401. package/dist/esm/kol-tree-item.entry.js +1 -1
  402. package/dist/esm/kol-tree-wc.entry.js +1 -1
  403. package/dist/esm/kol-tree.entry.js +1 -1
  404. package/dist/esm/kol-version.entry.js +1 -1
  405. package/dist/esm/kolibri.js +1 -1
  406. package/dist/esm/{label-5982d241.js → label-bf9966d0.js} +1 -1
  407. package/dist/esm/{label-5982d241.js.map → label-bf9966d0.js.map} +1 -1
  408. package/dist/esm/loader.js +1 -1
  409. package/dist/esm/{open-a64bb227.js → open-385de2c9.js} +1 -1
  410. package/dist/esm/{open-a64bb227.js.map → open-385de2c9.js.map} +1 -1
  411. package/dist/esm/orientation-409d844a.js +4 -0
  412. package/dist/esm/orientation-409d844a.js.map +1 -0
  413. package/dist/esm/{rows-4ad04320.js → rows-225b4f43.js} +1 -1
  414. package/dist/esm/{rows-4ad04320.js.map → rows-225b4f43.js.map} +1 -1
  415. package/dist/esm/{show-96e68a00.js → show-fabfe6d7.js} +1 -1
  416. package/dist/esm/{show-96e68a00.js.map → show-fabfe6d7.js.map} +1 -1
  417. package/dist/esm/{spell-check-3f34625f.js → spell-check-5559a801.js} +1 -1
  418. package/dist/esm/{spell-check-3f34625f.js.map → spell-check-5559a801.js.map} +1 -1
  419. package/dist/esm/{suggestions-021d2964.js → suggestions-198125b7.js} +1 -1
  420. package/dist/esm/{suggestions-021d2964.js.map → suggestions-198125b7.js.map} +1 -1
  421. package/dist/esm/{table-settings-b08f49c1.js → table-settings-c12356ed.js} +1 -1
  422. package/dist/esm/{table-settings-b08f49c1.js.map → table-settings-c12356ed.js.map} +1 -1
  423. package/dist/esm/test-component.entry.js +1 -1
  424. package/dist/esm/tooltip-align-465a8590.js +4 -0
  425. package/dist/esm/{tooltip-align-4c18152e.js.map → tooltip-align-465a8590.js.map} +1 -1
  426. package/dist/esm/unique-nav-labels-e20db0b7.js +4 -0
  427. package/dist/esm/unique-nav-labels-e20db0b7.js.map +1 -0
  428. package/dist/esm/{validation-66c33ff5.js → validation-152ea092.js} +1 -1
  429. package/dist/esm/{validation-66c33ff5.js.map → validation-152ea092.js.map} +1 -1
  430. package/dist/esm/validation-9d549145.js +4 -0
  431. package/dist/esm/{validation-7cc70d5a.js.map → validation-9d549145.js.map} +1 -1
  432. package/dist/kolibri/{Alert-3c98a2ff.js → Alert-05f95bd6.js} +1 -1
  433. package/dist/kolibri/{Collapsible-e6c95e1f.js → Collapsible-7e53a94c.js} +1 -1
  434. package/dist/kolibri/{CustomSuggestionsOptionsGroup-6b0631f5.js → CustomSuggestionsOptionsGroup-042dc702.js} +1 -1
  435. package/dist/kolibri/FieldControlStateWrapper-b973bfc3.js +4 -0
  436. package/dist/kolibri/{FieldControlStateWrapper-7397d965.js.map → FieldControlStateWrapper-b973bfc3.js.map} +1 -1
  437. package/dist/kolibri/Heading-d8ed192d.js +4 -0
  438. package/dist/kolibri/Heading-d8ed192d.js.map +1 -0
  439. package/dist/kolibri/Icon-b74f22a2.js +4 -0
  440. package/dist/kolibri/{Input-ce53cfae.js → Input-80c438fc.js} +1 -1
  441. package/dist/kolibri/InputStateWrapper-0b8a1a3e.js +4 -0
  442. package/dist/kolibri/InputStateWrapper-0b8a1a3e.js.map +1 -0
  443. package/dist/kolibri/InternalUnderlinedBadgeText-7028c03e.js +4 -0
  444. package/dist/kolibri/Span-550d722f.js +4 -0
  445. package/dist/kolibri/{Span-89b9ae45.js.map → Span-550d722f.js.map} +1 -1
  446. package/dist/kolibri/{access-and-short-key-753466cb.js → access-and-short-key-f743a5c4.js} +1 -1
  447. package/dist/kolibri/align-d2572387.js +4 -0
  448. package/dist/kolibri/align-floating-elements-526ce555.js +4 -0
  449. package/dist/kolibri/align-floating-elements-526ce555.js.map +1 -0
  450. package/dist/kolibri/app-globals-e2bc9b44.js +4 -0
  451. package/dist/kolibri/{app-globals-7a7161e6.js.map → app-globals-e2bc9b44.js.map} +1 -1
  452. package/dist/kolibri/{associated.controller-4efb16f5.js → associated.controller-43abc1c0.js} +1 -1
  453. package/dist/kolibri/bootstrap-7fca1a52.js +4 -0
  454. package/dist/kolibri/{button-variant-d6a980cf.js → button-variant-4fc69b59.js} +1 -1
  455. package/dist/kolibri/{color-066d384d.js → color-1228dab7.js} +1 -1
  456. package/dist/kolibri/color-1228dab7.js.map +1 -0
  457. package/dist/kolibri/{controller-1beb6ffa.js → controller-460d12d6.js} +1 -1
  458. package/dist/kolibri/{controller-4227bd3b.js → controller-b4a4d397.js} +1 -1
  459. package/dist/kolibri/controller-c6ea1cc4.js +4 -0
  460. package/dist/kolibri/controller-c6ea1cc4.js.map +1 -0
  461. package/dist/kolibri/{controller-d626a16d.js → controller-d1cd494d.js} +1 -1
  462. package/dist/kolibri/{controller-icon-bb92519e.js → controller-icon-86ecd871.js} +1 -1
  463. package/dist/kolibri/custom-class-d73b81b1.js +4 -0
  464. package/dist/kolibri/{dev.utils-77f0b548.js → dev.utils-0ac8aabc.js} +1 -1
  465. package/dist/kolibri/{devtools-3a667970.js → devtools-be4a2647.js} +1 -1
  466. package/dist/kolibri/disabled-e1038f54.js +4 -0
  467. package/dist/kolibri/{getRenderStates-dba2a9a8.js → getRenderStates-d37b86aa.js} +1 -1
  468. package/dist/kolibri/{getRenderStates-dba2a9a8.js.map → getRenderStates-d37b86aa.js.map} +1 -1
  469. package/dist/kolibri/has-closer-798e8f4d.js +4 -0
  470. package/dist/kolibri/has-counter-3fc44829.js +4 -0
  471. package/dist/kolibri/hide-label-8b3a8709.js +4 -0
  472. package/dist/kolibri/href-d9ccbbdf.js +4 -0
  473. package/dist/kolibri/i18n-260f0fe9.js +4 -0
  474. package/dist/kolibri/{icons-acf365fd.js → icons-a9c52ed8.js} +1 -1
  475. package/dist/kolibri/image-source-8079f8a5.js +4 -0
  476. package/dist/kolibri/{index-136f59ac.js → index-bf880eba.js} +1 -1
  477. package/dist/kolibri/index-bf880eba.js.map +1 -0
  478. package/dist/kolibri/index-ebe5a881.js +4 -0
  479. package/dist/kolibri/index-ebe5a881.js.map +1 -0
  480. package/dist/kolibri/index.esm.js +1 -1
  481. package/dist/kolibri/index.esm.js.map +1 -1
  482. package/dist/kolibri/kol-abbr.entry.js +1 -1
  483. package/dist/kolibri/kol-accordion.entry.js +1 -1
  484. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  485. package/dist/kolibri/kol-alert-wc.entry.js.map +1 -1
  486. package/dist/kolibri/kol-alert.entry.js +1 -1
  487. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  488. package/dist/kolibri/kol-avatar.entry.js +1 -1
  489. package/dist/kolibri/kol-badge.entry.js +1 -1
  490. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  491. package/dist/kolibri/kol-button-link.entry.js +1 -1
  492. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  493. package/dist/kolibri/kol-button.entry.js +1 -1
  494. package/dist/kolibri/kol-card.entry.js +1 -1
  495. package/dist/kolibri/kol-combobox.entry.js +1 -1
  496. package/dist/kolibri/kol-details.entry.js +1 -1
  497. package/dist/kolibri/kol-drawer.entry.js +1 -1
  498. package/dist/kolibri/kol-form.entry.js +1 -1
  499. package/dist/kolibri/kol-heading.entry.js +1 -1
  500. package/dist/kolibri/kol-heading.entry.js.map +1 -1
  501. package/dist/kolibri/kol-icon.entry.js +1 -1
  502. package/dist/kolibri/kol-image.entry.js +1 -1
  503. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  504. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  505. package/dist/kolibri/kol-input-color.entry.js +1 -1
  506. package/dist/kolibri/kol-input-date.entry.js +1 -1
  507. package/dist/kolibri/kol-input-email.entry.js +1 -1
  508. package/dist/kolibri/kol-input-file.entry.js +1 -1
  509. package/dist/kolibri/kol-input-number.entry.js +1 -1
  510. package/dist/kolibri/kol-input-password.entry.js +1 -1
  511. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  512. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  513. package/dist/kolibri/kol-input-range.entry.js +1 -1
  514. package/dist/kolibri/kol-input-text.entry.js +1 -1
  515. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  516. package/dist/kolibri/kol-link-button.entry.js +1 -1
  517. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  518. package/dist/kolibri/kol-link.entry.js +1 -1
  519. package/dist/kolibri/kol-modal.entry.js +1 -1
  520. package/dist/kolibri/kol-modal.entry.js.map +1 -1
  521. package/dist/kolibri/kol-nav.entry.js +1 -1
  522. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  523. package/dist/kolibri/kol-pagination.entry.js +1 -1
  524. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  525. package/dist/kolibri/kol-popover-button-wc.entry.js +1 -1
  526. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  527. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  528. package/dist/kolibri/kol-progress.entry.js +1 -1
  529. package/dist/kolibri/kol-quote.entry.js +1 -1
  530. package/dist/kolibri/kol-select.entry.js +1 -1
  531. package/dist/kolibri/kol-select.entry.js.map +1 -1
  532. package/dist/kolibri/kol-single-select.entry.js +1 -1
  533. package/dist/kolibri/kol-single-select.entry.js.map +1 -1
  534. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  535. package/dist/kolibri/kol-spin.entry.js +1 -1
  536. package/dist/kolibri/kol-split-button.entry.js +1 -1
  537. package/dist/kolibri/kol-table-settings-wc.entry.js +1 -1
  538. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  539. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  540. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  541. package/dist/kolibri/kol-tabs.entry.js +1 -1
  542. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  543. package/dist/kolibri/kol-textarea.entry.js +1 -1
  544. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  545. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  546. package/dist/kolibri/kol-toolbar.entry.js.map +1 -1
  547. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  548. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  549. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  550. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  551. package/dist/kolibri/kol-tree.entry.js +1 -1
  552. package/dist/kolibri/kol-version.entry.js +1 -1
  553. package/dist/kolibri/kolibri.esm.js +1 -1
  554. package/dist/kolibri/kolibri.esm.js.map +1 -1
  555. package/dist/kolibri/{label-5982d241.js → label-bf9966d0.js} +1 -1
  556. package/dist/kolibri/open-385de2c9.js +4 -0
  557. package/dist/kolibri/orientation-409d844a.js +4 -0
  558. package/dist/kolibri/orientation-409d844a.js.map +1 -0
  559. package/dist/kolibri/rows-225b4f43.js +4 -0
  560. package/dist/kolibri/show-fabfe6d7.js +4 -0
  561. package/dist/kolibri/spell-check-5559a801.js +4 -0
  562. package/dist/kolibri/{suggestions-021d2964.js → suggestions-198125b7.js} +1 -1
  563. package/dist/kolibri/{table-settings-b08f49c1.js → table-settings-c12356ed.js} +1 -1
  564. package/dist/kolibri/test-component.entry.js +1 -1
  565. package/dist/kolibri/tooltip-align-465a8590.js +4 -0
  566. package/dist/kolibri/unique-nav-labels-e20db0b7.js +4 -0
  567. package/dist/kolibri/unique-nav-labels-e20db0b7.js.map +1 -0
  568. package/dist/kolibri/validation-152ea092.js +4 -0
  569. package/dist/kolibri/validation-9d549145.js +4 -0
  570. package/dist/types/components/heading/shadow.d.ts +1 -3
  571. package/dist/types/components/input-radio/controller.d.ts +3 -2
  572. package/dist/types/components/input-radio/shadow.d.ts +4 -7
  573. package/dist/types/components/nav/shadow.d.ts +4 -3
  574. package/dist/types/components/toolbar/shadow.d.ts +3 -0
  575. package/dist/types/components.d.ts +16 -30
  576. package/dist/types/functional-component-wrappers/RadioStateWrapper/RadioStateWrapper.d.ts +10 -0
  577. package/dist/types/functional-component-wrappers/RadioStateWrapper/index.d.ts +1 -0
  578. package/dist/types/functional-components/Heading/Heading.d.ts +2 -4
  579. package/dist/types/functional-components/inputs/Radio/Radio.d.ts +8 -0
  580. package/dist/types/functional-components/inputs/Radio/index.d.ts +1 -0
  581. package/dist/types/schema/components/heading.d.ts +3 -3
  582. package/dist/types/schema/components/input-radio.d.ts +6 -7
  583. package/dist/types/schema/components/nav.d.ts +4 -6
  584. package/dist/types/schema/components/toolbar.d.ts +2 -1
  585. package/dist/types/schema/props/index.d.ts +1 -1
  586. package/dist/types/schema/props/orientation.d.ts +8 -0
  587. package/dist/types/schema/types/index.d.ts +1 -1
  588. package/doc/heading.md +5 -6
  589. package/doc/input-radio.md +0 -2
  590. package/doc/toolbar.md +5 -4
  591. package/package.json +4 -4
  592. package/vscode-custom-data.json +12 -35
  593. package/dist/cjs/CustomSuggestionsOptionsGroup-60ec84bd.js +0 -4
  594. package/dist/cjs/FieldControlStateWrapper-b83a1e2e.js +0 -4
  595. package/dist/cjs/FieldControlStateWrapper-b83a1e2e.js.map +0 -1
  596. package/dist/cjs/Heading-b8bbd132.js +0 -4
  597. package/dist/cjs/Heading-b8bbd132.js.map +0 -1
  598. package/dist/cjs/InputStateWrapper-89c220eb.js +0 -4
  599. package/dist/cjs/InputStateWrapper-89c220eb.js.map +0 -1
  600. package/dist/cjs/align-floating-elements-44e9ce7f.js +0 -4
  601. package/dist/cjs/align-floating-elements-44e9ce7f.js.map +0 -1
  602. package/dist/cjs/app-globals-46af1a24.js +0 -4
  603. package/dist/cjs/controller-3eecbf98.js +0 -4
  604. package/dist/cjs/controller-3eecbf98.js.map +0 -1
  605. package/dist/cjs/getRenderStates-8e102335.js.map +0 -1
  606. package/dist/cjs/image-source-f24a4569.js +0 -4
  607. package/dist/cjs/index-03ef29aa.js +0 -4
  608. package/dist/cjs/index-03ef29aa.js.map +0 -1
  609. package/dist/cjs/index-8b802221.js +0 -4
  610. package/dist/cjs/index-8b802221.js.map +0 -1
  611. package/dist/cjs/spell-check-0419d7d7.js +0 -4
  612. package/dist/cjs/tooltip-align-4446177f.js +0 -4
  613. package/dist/cjs/unique-nav-labels-879c42cf.js +0 -4
  614. package/dist/cjs/unique-nav-labels-879c42cf.js.map +0 -1
  615. package/dist/cjs/validation-2d282d7c.js +0 -4
  616. package/dist/esm/Alert-3c98a2ff.js +0 -4
  617. package/dist/esm/CustomSuggestionsOptionsGroup-6b0631f5.js +0 -4
  618. package/dist/esm/FieldControlStateWrapper-7397d965.js.map +0 -1
  619. package/dist/esm/Heading-bb974fcc.js +0 -4
  620. package/dist/esm/Heading-bb974fcc.js.map +0 -1
  621. package/dist/esm/InputStateWrapper-8dd66762.js +0 -4
  622. package/dist/esm/InputStateWrapper-8dd66762.js.map +0 -1
  623. package/dist/esm/align-floating-elements-14bb4167.js +0 -4
  624. package/dist/esm/align-floating-elements-14bb4167.js.map +0 -1
  625. package/dist/esm/app-globals-7a7161e6.js +0 -4
  626. package/dist/esm/controller-6c0e1b56.js +0 -4
  627. package/dist/esm/controller-6c0e1b56.js.map +0 -1
  628. package/dist/esm/disabled-e64a9155.js +0 -4
  629. package/dist/esm/getRenderStates-dba2a9a8.js.map +0 -1
  630. package/dist/esm/has-closer-ca9bcd36.js +0 -4
  631. package/dist/esm/has-counter-a7dccaa5.js +0 -4
  632. package/dist/esm/hide-label-418cc5c0.js +0 -4
  633. package/dist/esm/href-7f134614.js +0 -4
  634. package/dist/esm/i18n-01abf777.js +0 -4
  635. package/dist/esm/index-136f59ac.js +0 -4
  636. package/dist/esm/index-136f59ac.js.map +0 -1
  637. package/dist/esm/index-88dea7b1.js +0 -4
  638. package/dist/esm/index-88dea7b1.js.map +0 -1
  639. package/dist/esm/tooltip-align-4c18152e.js +0 -4
  640. package/dist/esm/unique-nav-labels-de957b96.js +0 -4
  641. package/dist/esm/unique-nav-labels-de957b96.js.map +0 -1
  642. package/dist/esm/validation-7cc70d5a.js +0 -4
  643. package/dist/kolibri/FieldControlStateWrapper-7397d965.js +0 -4
  644. package/dist/kolibri/Heading-bb974fcc.js +0 -4
  645. package/dist/kolibri/Heading-bb974fcc.js.map +0 -1
  646. package/dist/kolibri/Icon-faa6cbca.js +0 -4
  647. package/dist/kolibri/InputStateWrapper-8dd66762.js +0 -4
  648. package/dist/kolibri/InputStateWrapper-8dd66762.js.map +0 -1
  649. package/dist/kolibri/InternalUnderlinedBadgeText-2e08c7cb.js +0 -4
  650. package/dist/kolibri/Span-89b9ae45.js +0 -4
  651. package/dist/kolibri/align-a05c3d17.js +0 -4
  652. package/dist/kolibri/align-floating-elements-14bb4167.js +0 -4
  653. package/dist/kolibri/align-floating-elements-14bb4167.js.map +0 -1
  654. package/dist/kolibri/app-globals-7a7161e6.js +0 -4
  655. package/dist/kolibri/bootstrap-874afb5b.js +0 -4
  656. package/dist/kolibri/color-066d384d.js.map +0 -1
  657. package/dist/kolibri/controller-6c0e1b56.js +0 -4
  658. package/dist/kolibri/controller-6c0e1b56.js.map +0 -1
  659. package/dist/kolibri/custom-class-30e531d5.js +0 -4
  660. package/dist/kolibri/disabled-e64a9155.js +0 -4
  661. package/dist/kolibri/has-closer-ca9bcd36.js +0 -4
  662. package/dist/kolibri/has-counter-a7dccaa5.js +0 -4
  663. package/dist/kolibri/hide-label-418cc5c0.js +0 -4
  664. package/dist/kolibri/href-7f134614.js +0 -4
  665. package/dist/kolibri/i18n-01abf777.js +0 -4
  666. package/dist/kolibri/image-source-00f34574.js +0 -4
  667. package/dist/kolibri/index-136f59ac.js.map +0 -1
  668. package/dist/kolibri/index-88dea7b1.js +0 -4
  669. package/dist/kolibri/index-88dea7b1.js.map +0 -1
  670. package/dist/kolibri/open-a64bb227.js +0 -4
  671. package/dist/kolibri/rows-4ad04320.js +0 -4
  672. package/dist/kolibri/show-96e68a00.js +0 -4
  673. package/dist/kolibri/spell-check-3f34625f.js +0 -4
  674. package/dist/kolibri/tooltip-align-4c18152e.js +0 -4
  675. package/dist/kolibri/unique-nav-labels-de957b96.js +0 -4
  676. package/dist/kolibri/unique-nav-labels-de957b96.js.map +0 -1
  677. package/dist/kolibri/validation-66c33ff5.js +0 -4
  678. package/dist/kolibri/validation-7cc70d5a.js +0 -4
  679. package/dist/types/schema/props/heading-variant.d.ts +0 -8
  680. package/dist/types/schema/types/orientation.d.ts +0 -2
  681. /package/dist/kolibri/{Alert-3c98a2ff.js.map → Alert-05f95bd6.js.map} +0 -0
  682. /package/dist/kolibri/{Collapsible-e6c95e1f.js.map → Collapsible-7e53a94c.js.map} +0 -0
  683. /package/dist/kolibri/{CustomSuggestionsOptionsGroup-6b0631f5.js.map → CustomSuggestionsOptionsGroup-042dc702.js.map} +0 -0
  684. /package/dist/kolibri/{Icon-faa6cbca.js.map → Icon-b74f22a2.js.map} +0 -0
  685. /package/dist/kolibri/{Input-ce53cfae.js.map → Input-80c438fc.js.map} +0 -0
  686. /package/dist/kolibri/{InternalUnderlinedBadgeText-2e08c7cb.js.map → InternalUnderlinedBadgeText-7028c03e.js.map} +0 -0
  687. /package/dist/kolibri/{access-and-short-key-753466cb.js.map → access-and-short-key-f743a5c4.js.map} +0 -0
  688. /package/dist/kolibri/{align-a05c3d17.js.map → align-d2572387.js.map} +0 -0
  689. /package/dist/kolibri/{associated.controller-4efb16f5.js.map → associated.controller-43abc1c0.js.map} +0 -0
  690. /package/dist/kolibri/{bootstrap-874afb5b.js.map → bootstrap-7fca1a52.js.map} +0 -0
  691. /package/dist/kolibri/{button-variant-d6a980cf.js.map → button-variant-4fc69b59.js.map} +0 -0
  692. /package/dist/kolibri/{controller-1beb6ffa.js.map → controller-460d12d6.js.map} +0 -0
  693. /package/dist/kolibri/{controller-4227bd3b.js.map → controller-b4a4d397.js.map} +0 -0
  694. /package/dist/kolibri/{controller-d626a16d.js.map → controller-d1cd494d.js.map} +0 -0
  695. /package/dist/kolibri/{controller-icon-bb92519e.js.map → controller-icon-86ecd871.js.map} +0 -0
  696. /package/dist/kolibri/{custom-class-30e531d5.js.map → custom-class-d73b81b1.js.map} +0 -0
  697. /package/dist/kolibri/{dev.utils-77f0b548.js.map → dev.utils-0ac8aabc.js.map} +0 -0
  698. /package/dist/kolibri/{devtools-3a667970.js.map → devtools-be4a2647.js.map} +0 -0
  699. /package/dist/kolibri/{disabled-e64a9155.js.map → disabled-e1038f54.js.map} +0 -0
  700. /package/dist/kolibri/{has-closer-ca9bcd36.js.map → has-closer-798e8f4d.js.map} +0 -0
  701. /package/dist/kolibri/{has-counter-a7dccaa5.js.map → has-counter-3fc44829.js.map} +0 -0
  702. /package/dist/kolibri/{hide-label-418cc5c0.js.map → hide-label-8b3a8709.js.map} +0 -0
  703. /package/dist/kolibri/{href-7f134614.js.map → href-d9ccbbdf.js.map} +0 -0
  704. /package/dist/kolibri/{i18n-01abf777.js.map → i18n-260f0fe9.js.map} +0 -0
  705. /package/dist/kolibri/{icons-acf365fd.js.map → icons-a9c52ed8.js.map} +0 -0
  706. /package/dist/kolibri/{image-source-00f34574.js.map → image-source-8079f8a5.js.map} +0 -0
  707. /package/dist/kolibri/{label-5982d241.js.map → label-bf9966d0.js.map} +0 -0
  708. /package/dist/kolibri/{open-a64bb227.js.map → open-385de2c9.js.map} +0 -0
  709. /package/dist/kolibri/{rows-4ad04320.js.map → rows-225b4f43.js.map} +0 -0
  710. /package/dist/kolibri/{show-96e68a00.js.map → show-fabfe6d7.js.map} +0 -0
  711. /package/dist/kolibri/{spell-check-3f34625f.js.map → spell-check-5559a801.js.map} +0 -0
  712. /package/dist/kolibri/{suggestions-021d2964.js.map → suggestions-198125b7.js.map} +0 -0
  713. /package/dist/kolibri/{table-settings-b08f49c1.js.map → table-settings-c12356ed.js.map} +0 -0
  714. /package/dist/kolibri/{tooltip-align-4c18152e.js.map → tooltip-align-465a8590.js.map} +0 -0
  715. /package/dist/kolibri/{validation-66c33ff5.js.map → validation-152ea092.js.map} +0 -0
  716. /package/dist/kolibri/{validation-7cc70d5a.js.map → validation-9d549145.js.map} +0 -0
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{proxyCustomElement,HTMLElement,h}from"@stencil/core/internal/client";import{h as watchBoolean,j as setState,w as watchValidator}from"./index2.js";import{w as watchHeadingLevel}from"./validation.js";import{K as KolAlertFc}from"./Alert.js";import{d as dispatchDomEvent,K as KolEvent}from"./events.js";import{v as validateHasCloser}from"./has-closer.js";import{v as validateLabel}from"./label.js";const alertTypeOptions=["default","info","success","warning","error"],alertVariantOptions=["card","msg"],KolAlertWc$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.close=()=>{var e,t;null===(t=null===(e=this._on)||void 0===e?void 0:e.onClose)||void 0===t||t.call(e,new Event("Close")),this.host&&dispatchDomEvent(this.host,KolEvent.close)},this.handleAlertTimeout=()=>{this.validateAlert(!1)},this.validateOnValue=e=>"object"==typeof e&&null!==e&&"function"==typeof e.onClose,this._alert=!1,this._hasCloser=!1,this._label=void 0,this._level=0,this._on=void 0,this._type="default",this._variant="msg",this.state={_level:0}}render(){const{_alert:e,_hasCloser:t,_label:a,_level:l,_type:i,_variant:s}=this.state,o={alert:e,hasCloser:t,label:a,level:l,type:i,variant:s,onCloserClick:this.close,onAlertTimeout:this.handleAlertTimeout};return h(KolAlertFc,Object.assign({key:"9038051f21b86a9c83c8ac5619e723dff5ebcbeb"},o),h("slot",{key:"cfd116176ab783db5232d9d5520f8ae890ca44db"}))}validateAlert(e){watchBoolean(this,"_alert",e)}validateHasCloser(e){validateHasCloser(this,e)}validateLabel(e){validateLabel(this,e)}validateLevel(e){watchHeadingLevel(this,e)}validateOn(e){this.validateOnValue(e)&&setState(this,"_on",{onClose:e.onClose})}validateType(e){watchValidator(this,"_type",(e=>"string"==typeof e&&alertTypeOptions.includes(e)),new Set(`String {${alertTypeOptions.join(", ")}`),e)}validateVariant(e){watchValidator(this,"_variant",(e=>"string"==typeof e&&alertVariantOptions.includes(e)),new Set(`AlertVariant {${alertVariantOptions.join(", ")}`),e)}componentWillLoad(){this.validateAlert(this._alert),this.validateHasCloser(this._hasCloser),this.validateLabel(this._label),this.validateLevel(this._level),this.validateOn(this._on),this.validateType(this._type),this.validateVariant(this._variant)}get host(){return this}static get watchers(){return{_alert:["validateAlert"],_hasCloser:["validateHasCloser"],_label:["validateLabel"],_level:["validateLevel"],_on:["validateOn"],_type:["validateType"],_variant:["validateVariant"]}}},[4,"kol-alert-wc",{_alert:[4],_hasCloser:[4,"_has-closer"],_label:[1],_level:[2],_on:[16],_type:[1],_variant:[1],state:[32]},void 0,{_alert:["validateAlert"],_hasCloser:["validateHasCloser"],_label:["validateLabel"],_level:["validateLevel"],_on:["validateOn"],_type:["validateType"],_variant:["validateVariant"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-alert-wc"].forEach((e=>{if("kol-alert-wc"===e)customElements.get(e)||customElements.define(e,KolAlertWc$1)}))}const KolAlertWc=KolAlertWc$1,defineCustomElement=defineCustomElement$1;export{KolAlertWc,defineCustomElement};
4
+ import{proxyCustomElement,HTMLElement,h}from"@stencil/core/internal/client";import{i as watchBoolean,k as setState,w as watchValidator}from"./index2.js";import{w as watchHeadingLevel}from"./validation.js";import{K as KolAlertFc}from"./Alert.js";import{d as dispatchDomEvent,K as KolEvent}from"./events.js";import{v as validateHasCloser}from"./has-closer.js";import{v as validateLabel}from"./label.js";const alertTypeOptions=["default","info","success","warning","error"],alertVariantOptions=["card","msg"],KolAlertWc$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.close=()=>{var e,t;null===(t=null===(e=this._on)||void 0===e?void 0:e.onClose)||void 0===t||t.call(e,new Event("Close")),this.host&&dispatchDomEvent(this.host,KolEvent.close)},this.handleAlertTimeout=()=>{this.validateAlert(!1)},this.validateOnValue=e=>"object"==typeof e&&null!==e&&"function"==typeof e.onClose,this._alert=!1,this._hasCloser=!1,this._label=void 0,this._level=0,this._on=void 0,this._type="default",this._variant="msg",this.state={_level:0}}render(){const{_alert:e,_hasCloser:t,_label:a,_level:l,_type:i,_variant:s}=this.state,o={alert:e,hasCloser:t,label:a,level:l,type:i,variant:s,onCloserClick:this.close,onAlertTimeout:this.handleAlertTimeout};return h(KolAlertFc,Object.assign({key:"9038051f21b86a9c83c8ac5619e723dff5ebcbeb"},o),h("slot",{key:"cfd116176ab783db5232d9d5520f8ae890ca44db"}))}validateAlert(e){watchBoolean(this,"_alert",e)}validateHasCloser(e){validateHasCloser(this,e)}validateLabel(e){validateLabel(this,e)}validateLevel(e){watchHeadingLevel(this,e)}validateOn(e){this.validateOnValue(e)&&setState(this,"_on",{onClose:e.onClose})}validateType(e){watchValidator(this,"_type",(e=>"string"==typeof e&&alertTypeOptions.includes(e)),new Set(`String {${alertTypeOptions.join(", ")}`),e)}validateVariant(e){watchValidator(this,"_variant",(e=>"string"==typeof e&&alertVariantOptions.includes(e)),new Set(`AlertVariant {${alertVariantOptions.join(", ")}`),e)}componentWillLoad(){this.validateAlert(this._alert),this.validateHasCloser(this._hasCloser),this.validateLabel(this._label),this.validateLevel(this._level),this.validateOn(this._on),this.validateType(this._type),this.validateVariant(this._variant)}get host(){return this}static get watchers(){return{_alert:["validateAlert"],_hasCloser:["validateHasCloser"],_label:["validateLabel"],_level:["validateLevel"],_on:["validateOn"],_type:["validateType"],_variant:["validateVariant"]}}},[4,"kol-alert-wc",{_alert:[4],_hasCloser:[4,"_has-closer"],_label:[1],_level:[2],_on:[16],_type:[1],_variant:[1],state:[32]},void 0,{_alert:["validateAlert"],_hasCloser:["validateHasCloser"],_label:["validateLabel"],_level:["validateLevel"],_on:["validateOn"],_type:["validateType"],_variant:["validateVariant"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-alert-wc"].forEach((e=>{if("kol-alert-wc"===e)customElements.get(e)||customElements.define(e,KolAlertWc$1)}))}const KolAlertWc=KolAlertWc$1,defineCustomElement=defineCustomElement$1;export{KolAlertWc,defineCustomElement};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{proxyCustomElement,HTMLElement,h}from"@stencil/core/internal/client";import{f as featureHint,o as objectObjectHandler,l as parseJson,j as setState}from"./index2.js";import{c as clsx}from"./clsx.js";import{a as KolButtonWcTag}from"./component-names.js";import"./i18n2.js";import"./bem.js";import{K as KolSpanFc}from"./Span.js";import{n as nonce}from"./dev.utils.js";import{h as handleColorChange,v as validateColor}from"./color.js";import{v as validateIcons}from"./icons.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%;\n /* 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 .badge-text-hint {\n background-color: lightgray;\n color: black;\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-badge {\n display: inline-flex;\n place-items: center;\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-badge .kol-badge__smart-button .button {\n color: inherit;\n }\n}",KolBadgeDefaultStyle0=defaultStyleCss;featureHint("[KolBadge] Optimierung des _color-Properties (rgba, rgb, hex usw.).");const KolBadge$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.bgColorStr="#000",this.colorStr="#fff",this.id=nonce(),this.handleColorChange=n=>{const t=handleColorChange(n);this.bgColorStr=t.backgroundColor,this.colorStr=t.foregroundColor},this._color="#000",this._icons=void 0,this._label=void 0,this._smartButton=void 0,this.state={_color:{backgroundColor:"#000",foregroundColor:"#fff"},_icons:{}}}renderSmartButton(n){return h(KolButtonWcTag,{class:"kol-badge__smart-button",_ariaControls:this.id,_customClass:n._customClass,_disabled:n._disabled,_hideLabel:!0,_icons:n._icons,_id:n._id,_label:n._label,_on:n._on,_tooltipAlign:n._tooltipAlign,_variant:n._variant})}render(){const n="object"==typeof this.state._smartButton&&null!==this.state._smartButton;return h("span",{key:"c04540b377e88484c6c982be4d411937ef3618ef",class:clsx("kol-badge",{"kol-badge--has-smart-button":"object"==typeof this.state._smartButton&&null!==this.state._smartButton}),style:{backgroundColor:this.bgColorStr,color:this.colorStr}},h(KolSpanFc,{key:"d01ea028555a90f21229d1584bfb93a5c2a00c25",class:"kol-badge__label",id:n?this.id:void 0,allowMarkdown:!0,icons:this.state._icons,label:this._label}),n&&this.renderSmartButton(this.state._smartButton))}validateIcons(n){validateIcons(this,n)}validateColor(n){validateColor(this,n,{defaultValue:"#000",hooks:{beforePatch:this.handleColorChange}})}validateSmartButton(n){objectObjectHandler(n,(()=>{try{n=parseJson(n)}catch(n){}setState(this,"_smartButton",n)}))}componentWillLoad(){this.validateIcons(this._icons),this.validateColor(this._color),this.validateSmartButton(this._smartButton)}static get watchers(){return{_icons:["validateIcons"],_color:["validateColor"],_smartButton:["validateSmartButton"]}}static get style(){return{default:KolBadgeDefaultStyle0}}},[33,"kol-badge",{_color:[1],_icons:[1],_label:[1],_smartButton:[1,"_smart-button"],state:[32]},void 0,{_icons:["validateIcons"],_color:["validateColor"],_smartButton:["validateSmartButton"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-badge"].forEach((n=>{if("kol-badge"===n)customElements.get(n)||customElements.define(n,KolBadge$1)}))}const KolBadge=KolBadge$1,defineCustomElement=defineCustomElement$1;export{KolBadge,defineCustomElement};
4
+ import{proxyCustomElement,HTMLElement,h}from"@stencil/core/internal/client";import{f as featureHint,o as objectObjectHandler,m as parseJson,k as setState}from"./index2.js";import{c as clsx}from"./clsx.js";import{a as KolButtonWcTag}from"./component-names.js";import"./i18n2.js";import"./bem.js";import{K as KolSpanFc}from"./Span.js";import{n as nonce}from"./dev.utils.js";import{h as handleColorChange,v as validateColor}from"./color.js";import{v as validateIcons}from"./icons.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%;\n /* 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 .badge-text-hint {\n background-color: lightgray;\n color: black;\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-badge {\n display: inline-flex;\n place-items: center;\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-badge .kol-badge__smart-button .button {\n color: inherit;\n }\n}",KolBadgeDefaultStyle0=defaultStyleCss;featureHint("[KolBadge] Optimierung des _color-Properties (rgba, rgb, hex usw.).");const KolBadge$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.bgColorStr="#000",this.colorStr="#fff",this.id=nonce(),this.handleColorChange=n=>{const t=handleColorChange(n);this.bgColorStr=t.backgroundColor,this.colorStr=t.foregroundColor},this._color="#000",this._icons=void 0,this._label=void 0,this._smartButton=void 0,this.state={_color:{backgroundColor:"#000",foregroundColor:"#fff"},_icons:{}}}renderSmartButton(n){return h(KolButtonWcTag,{class:"kol-badge__smart-button",_ariaControls:this.id,_customClass:n._customClass,_disabled:n._disabled,_hideLabel:!0,_icons:n._icons,_id:n._id,_label:n._label,_on:n._on,_tooltipAlign:n._tooltipAlign,_variant:n._variant})}render(){const n="object"==typeof this.state._smartButton&&null!==this.state._smartButton;return h("span",{key:"c04540b377e88484c6c982be4d411937ef3618ef",class:clsx("kol-badge",{"kol-badge--has-smart-button":"object"==typeof this.state._smartButton&&null!==this.state._smartButton}),style:{backgroundColor:this.bgColorStr,color:this.colorStr}},h(KolSpanFc,{key:"d01ea028555a90f21229d1584bfb93a5c2a00c25",class:"kol-badge__label",id:n?this.id:void 0,allowMarkdown:!0,icons:this.state._icons,label:this._label}),n&&this.renderSmartButton(this.state._smartButton))}validateIcons(n){validateIcons(this,n)}validateColor(n){validateColor(this,n,{defaultValue:"#000",hooks:{beforePatch:this.handleColorChange}})}validateSmartButton(n){objectObjectHandler(n,(()=>{try{n=parseJson(n)}catch(n){}setState(this,"_smartButton",n)}))}componentWillLoad(){this.validateIcons(this._icons),this.validateColor(this._color),this.validateSmartButton(this._smartButton)}static get watchers(){return{_icons:["validateIcons"],_color:["validateColor"],_smartButton:["validateSmartButton"]}}static get style(){return{default:KolBadgeDefaultStyle0}}},[33,"kol-badge",{_color:[1],_icons:[1],_label:[1],_smartButton:[1,"_smart-button"],state:[32]},void 0,{_icons:["validateIcons"],_color:["validateColor"],_smartButton:["validateSmartButton"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-badge"].forEach((n=>{if("kol-badge"===n)customElements.get(n)||customElements.define(n,KolBadge$1)}))}const KolBadge=KolBadge$1,defineCustomElement=defineCustomElement$1;export{KolBadge,defineCustomElement};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{proxyCustomElement,HTMLElement,h,Fragment}from"@stencil/core/internal/client";import{y as a11yHintLabelingLandmarks}from"./index2.js";import{r as removeNavLabel,a as addNavLabel}from"./unique-nav-labels.js";import{w as watchNavLinks}from"./validation2.js";import{c as KolIconTag,e as KolLinkWcTag}from"./component-names.js";import{v as validateLabel}from"./label.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%;\n /* 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 .badge-text-hint {\n background-color: lightgray;\n color: black;\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}\n@layer kol-component {\n .kol-breadcrumb {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-breadcrumb__list, .kol-breadcrumb__list-element {\n margin: 0;\n padding: 0;\n list-style: none;\n display: flex;\n gap: 0.5em;\n flex-wrap: wrap;\n place-items: center;\n }\n .kol-breadcrumb__icon::part(separator) {\n font-weight: 900;\n font-size: 0.7em;\n }\n .kol-breadcrumb__icon::part(separator):before {\n content: \"\\f054\";\n font-family: \"Font Awesome 6 Free\";\n }\n}",KolBreadcrumbDefaultStyle0=defaultStyleCss,KolBreadcrumb$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.renderLink=(n,e)=>{const t=this.state._links.length-1;return h("li",{class:"kol-breadcrumb__list-element",key:e},0!==e&&h(KolIconTag,{class:"kol-breadcrumb__icon",_label:"",_icons:"codicon codicon-chevron-right"}),e===t?h("span",{class:"kol-breadcrumb__list-element-span"},n._hideLabel?h(KolIconTag,{class:"kol-breadcrumb__icon",_label:n._label,_icons:"string"==typeof n._icons?n._icons:"codicon codicon-symbol-event"}):h(Fragment,null,n._label)):h(KolLinkWcTag,Object.assign({class:"kol-breadcrumb__link"},n)))},this._label=void 0,this._links=void 0,this.state={_label:"",_links:[]}}render(){return h("nav",{key:"ec5c76bf09d3c9feaaf2e54dea8849f3df35f8cf",class:"kol-breadcrumb","aria-label":this.state._label},h("ul",{key:"58258d0d211e35b1c10ea81d57ce664b5b365da1",class:"kol-breadcrumb__list"},0===this.state._links.length&&h("li",{key:"380473fa2c97a40a8f36042a7859edc30a13dcea"},h(KolIconTag,{key:"6f9289fa4d708da3b9bfbb7da105db05807dce39",class:"kol-breadcrumb_icon",_label:"",_icons:"codicon codicon-home"}),"…"),this.state._links.map(this.renderLink)))}validateLabel(n,e,t=!1){t||removeNavLabel(this.state._label),validateLabel(this,n,{required:!0}),a11yHintLabelingLandmarks(n),addNavLabel(this.state._label)}validateLinks(n){watchNavLinks("KolBreadcrumb",this,n)}componentWillLoad(){this.validateLabel(this._label,void 0,!0),this.validateLinks(this._links)}disconnectedCallback(){removeNavLabel(this.state._label)}static get watchers(){return{_label:["validateLabel"],_links:["validateLinks"]}}static get style(){return{default:KolBreadcrumbDefaultStyle0}}},[33,"kol-breadcrumb",{_label:[1],_links:[1],state:[32]},void 0,{_label:["validateLabel"],_links:["validateLinks"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-breadcrumb"].forEach((n=>{if("kol-breadcrumb"===n)customElements.get(n)||customElements.define(n,KolBreadcrumb$1)}))}const KolBreadcrumb=KolBreadcrumb$1,defineCustomElement=defineCustomElement$1;export{KolBreadcrumb,defineCustomElement};
4
+ import{proxyCustomElement,HTMLElement,h,Fragment}from"@stencil/core/internal/client";import{z as a11yHintLabelingLandmarks}from"./index2.js";import{r as removeNavLabel,a as addNavLabel}from"./unique-nav-labels.js";import{w as watchNavLinks}from"./validation2.js";import{c as KolIconTag,e as KolLinkWcTag}from"./component-names.js";import{v as validateLabel}from"./label.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%;\n /* 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 .badge-text-hint {\n background-color: lightgray;\n color: black;\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}\n@layer kol-component {\n .kol-breadcrumb {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-breadcrumb__list, .kol-breadcrumb__list-element {\n margin: 0;\n padding: 0;\n list-style: none;\n display: flex;\n gap: 0.5em;\n flex-wrap: wrap;\n place-items: center;\n }\n .kol-breadcrumb__icon::part(separator) {\n font-weight: 900;\n font-size: 0.7em;\n }\n .kol-breadcrumb__icon::part(separator):before {\n content: \"\\f054\";\n font-family: \"Font Awesome 6 Free\";\n }\n}",KolBreadcrumbDefaultStyle0=defaultStyleCss,KolBreadcrumb$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.renderLink=(n,e)=>{const t=this.state._links.length-1;return h("li",{class:"kol-breadcrumb__list-element",key:e},0!==e&&h(KolIconTag,{class:"kol-breadcrumb__icon",_label:"",_icons:"codicon codicon-chevron-right"}),e===t?h("span",{class:"kol-breadcrumb__list-element-span"},n._hideLabel?h(KolIconTag,{class:"kol-breadcrumb__icon",_label:n._label,_icons:"string"==typeof n._icons?n._icons:"codicon codicon-symbol-event"}):h(Fragment,null,n._label)):h(KolLinkWcTag,Object.assign({class:"kol-breadcrumb__link"},n)))},this._label=void 0,this._links=void 0,this.state={_label:"",_links:[]}}render(){return h("nav",{key:"ec5c76bf09d3c9feaaf2e54dea8849f3df35f8cf",class:"kol-breadcrumb","aria-label":this.state._label},h("ul",{key:"58258d0d211e35b1c10ea81d57ce664b5b365da1",class:"kol-breadcrumb__list"},0===this.state._links.length&&h("li",{key:"380473fa2c97a40a8f36042a7859edc30a13dcea"},h(KolIconTag,{key:"6f9289fa4d708da3b9bfbb7da105db05807dce39",class:"kol-breadcrumb_icon",_label:"",_icons:"codicon codicon-home"}),"…"),this.state._links.map(this.renderLink)))}validateLabel(n,e,t=!1){t||removeNavLabel(this.state._label),validateLabel(this,n,{required:!0}),a11yHintLabelingLandmarks(n),addNavLabel(this.state._label)}validateLinks(n){watchNavLinks("KolBreadcrumb",this,n)}componentWillLoad(){this.validateLabel(this._label,void 0,!0),this.validateLinks(this._links)}disconnectedCallback(){removeNavLabel(this.state._label)}static get watchers(){return{_label:["validateLabel"],_links:["validateLinks"]}}static get style(){return{default:KolBreadcrumbDefaultStyle0}}},[33,"kol-breadcrumb",{_label:[1],_links:[1],state:[32]},void 0,{_label:["validateLabel"],_links:["validateLinks"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-breadcrumb"].forEach((n=>{if("kol-breadcrumb"===n)customElements.get(n)||customElements.define(n,KolBreadcrumb$1)}))}const KolBreadcrumb=KolBreadcrumb$1,defineCustomElement=defineCustomElement$1;export{KolBreadcrumb,defineCustomElement};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{k as watchString,h as watchBoolean,w as watchValidator,B as mapBoolean2String,D as mapStringOrBoolean2String,E as setEventTarget,j as setState,m as showExpertSlot}from"./index2.js";import{d as dispatchDomEvent,K as KolEvent}from"./events.js";import{n as nonce}from"./dev.utils.js";import{p as propagateSubmitEventToForm,a as propagateResetEventToForm}from"./controller.js";import{A as AssociatedInputController}from"./associated.controller.js";import{f as KolTooltipWcTag}from"./component-names.js";import{v as validateAccessKey,a as validateAccessAndShortKey,b as validateShortKey,c as validateTabIndex}from"./access-and-short-key.js";import{c as clsx}from"./clsx.js";import"./i18n2.js";import"./bem.js";import{K as KolSpanFc}from"./Span.js";import{v as validateAriaDescription,a as validateAriaExpanded,b as validateAlternativeButtonLinkRole,c as validateButtonVariant}from"./button-variant.js";import{v as validateCustomClass}from"./custom-class.js";import{v as validateHideLabel}from"./hide-label.js";import{a as validateLabelWithExpertSlot}from"./label.js";import{v as validateTooltipAlign}from"./tooltip-align.js";import{v as validateDisabled}from"./disabled.js";import{v as validateIcons}from"./icons.js";const validateAriaControls=(t,a)=>{watchString(t,"_ariaControls",a)},validateAriaSelected=(t,a)=>{watchBoolean(t,"_ariaSelected",a)},validateButtonCallbacks=(t,a)=>{watchValidator(t,"_on",(t=>"object"==typeof t&&null!==t),new Set(["ButtonCallbacksPropType {Events.onClick, Events.onMouseDown}"]),a)},buttonTypePropTypeOptions=["button","reset","submit"],validateButtonType=(t,a)=>{watchValidator(t,"_type",(t=>"string"==typeof t&&buttonTypePropTypeOptions.includes(t)),new Set([`KoliBriButtonType {${buttonTypePropTypeOptions.join(", ")}`]),a)},KolButtonWc$1=proxyCustomElement(class extends HTMLElement{async kolFocus(){var t;null===(t=this.buttonRef)||void 0===t||t.focus()}render(){var t,a;const e=showExpertSlot(this.state._label),i=Boolean(null===(a=null===(t=this.state._ariaDescription)||void 0===t?void 0:t.trim())||void 0===a?void 0:a.length),s=this.state._accessKey||this.state._shortKey;return h(Host,{key:"d94296c447c53cca42b7528040a6e133f984e5ee"},h("button",{key:"06b70077d51672e90774f8342e383007252bafd4",ref:this.catchRef,accessKey:this.state._accessKey||void 0,"aria-controls":this.state._ariaControls,"aria-describedby":i?this.internalDescriptionById:void 0,"aria-expanded":mapBoolean2String(this.state._ariaExpanded),"aria-haspopup":this._ariaHasPopup,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,"aria-selected":mapStringOrBoolean2String(this.state._ariaSelected),class:clsx("kol-button",{"kol-button--disabled":!0===this.state._disabled,[`kol-button--${this.state._variant}`]:"custom"!==this.state._variant,"kol-button--hide-label":!0===this.state._hideLabel,[this.state._customClass]:"custom"===this.state._variant&&"string"==typeof this.state._customClass&&this.state._customClass.length>0}),disabled:this.state._disabled,id:this.state._id,name:this.state._name,onClick:this.onClick,onMouseDown:this.onMouseDown,role:this.state._role,tabIndex:this.state._tabIndex,type:this.state._type},h(KolSpanFc,{key:"730ec14988b2731caafdf350485e3da7164eb9a2",class:"kol-button__text",badgeText:s,icons:this.state._icons,hideLabel:this.state._hideLabel,label:e?"":this.state._label},h("slot",{key:"d4340b53b690ec8cbc8b0a7cafcbe614352432a0",name:"expert",slot:"expert"}))),h(KolTooltipWcTag,{key:"b18fdaa2da5d12cab05f514ef719f7a08a2da0c8","aria-hidden":"true",hidden:e||!this.state._hideLabel,class:"kol-button__tooltip",_badgeText:s,_align:this.state._tooltipAlign,_label:"string"==typeof this.state._label?this.state._label:""}),i&&h("span",{key:"8ff3b675471a480a6a5cdb940cb79739af92e13d",class:"visually-hidden",id:this.internalDescriptionById},this.state._ariaDescription))}constructor(){super(),this.__registerHost(),this.internalDescriptionById=nonce(),this.catchRef=t=>{this.buttonRef=t},this.onClick=t=>{var a,e;"submit"===this.state._type?propagateSubmitEventToForm({form:this.host,ref:this.buttonRef}):"reset"===this.state._type?propagateResetEventToForm({form:this.host,ref:this.buttonRef}):(this.controller.setFormAssociatedValue(this.state._value),"function"==typeof(null===(a=this.state._on)||void 0===a?void 0:a.onClick)&&(setEventTarget(t,this.buttonRef),null===(e=this.state._on)||void 0===e||e.onClick(t,this.state._value))),this.host&&dispatchDomEvent(this.host,KolEvent.click,this.state._value)},this.onMouseDown=t=>{var a,e,i;null===(i=null===(e=null===(a=this.state)||void 0===a?void 0:a._on)||void 0===e?void 0:e.onMouseDown)||void 0===i||i.call(e,t),this.host&&dispatchDomEvent(this.host,KolEvent.mousedown)},this._accessKey=void 0,this._ariaControls=void 0,this._ariaDescription=void 0,this._ariaExpanded=void 0,this._ariaHasPopup=void 0,this._ariaSelected=void 0,this._customClass=void 0,this._disabled=!1,this._hideLabel=!1,this._icons=void 0,this._id=void 0,this._label=void 0,this._name=void 0,this._on=void 0,this._role=void 0,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._type="button",this._value=void 0,this._variant="normal",this.state={_icons:{},_label:"",_on:{},_type:"button",_variant:"normal"},this.controller=new AssociatedInputController(this,"button",this.host)}validateAccessKey(t){validateAccessKey(this,t),validateAccessAndShortKey(t,this._shortKey)}validateAriaControls(t){validateAriaControls(this,t)}validateAriaDescription(t){validateAriaDescription(this,t)}validateAriaExpanded(t){validateAriaExpanded(this,t)}validateAriaSelected(t){validateAriaSelected(this,t)}validateCustomClass(t){validateCustomClass(this,t)}validateDisabled(t){validateDisabled(this,t)}validateHideLabel(t){validateHideLabel(this,t)}validateIcons(t){validateIcons(this,t)}validateId(t){watchString(this,"_id",t)}validateLabel(t){validateLabelWithExpertSlot(this,t,{required:!0})}validateName(t){this.controller.validateName(t)}validateOn(t){validateButtonCallbacks(this,t)}validateRole(t){validateAlternativeButtonLinkRole(this,t)}validateShortKey(t){validateShortKey(this,t),validateAccessAndShortKey(this._accessKey,t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){validateTabIndex(this,t)}validateTooltipAlign(t){validateTooltipAlign(this,t)}validateType(t){validateButtonType(this,t)}validateValue(t){setState(this,"_value",t),this.controller.setFormAssociatedValue(this.state._value)}validateVariant(t){validateButtonVariant(this,t)}componentWillLoad(){this.validateAccessKey(this._accessKey),this.validateAriaControls(this._ariaControls),this.validateAriaDescription(this._ariaDescription),this.validateAriaExpanded(this._ariaExpanded),this.validateAriaSelected(this._ariaSelected),this.validateCustomClass(this._customClass),this.validateDisabled(this._disabled),this.validateHideLabel(this._hideLabel),this.validateIcons(this._icons),this.validateId(this._id),this.validateLabel(this._label),this.validateName(this._name),this.validateOn(this._on),this.validateRole(this._role),this.validateShortKey(this._shortKey),this.validateSyncValueBySelector(this._syncValueBySelector),this.validateTabIndex(this._tabIndex),this.validateTooltipAlign(this._tooltipAlign),this.validateType(this._type),this.validateValue(this._value),this.validateVariant(this._variant),validateAccessAndShortKey(this._accessKey,this._shortKey)}get host(){return this}static get watchers(){return{_accessKey:["validateAccessKey"],_ariaControls:["validateAriaControls"],_ariaDescription:["validateAriaDescription"],_ariaExpanded:["validateAriaExpanded"],_ariaSelected:["validateAriaSelected"],_customClass:["validateCustomClass"],_disabled:["validateDisabled"],_hideLabel:["validateHideLabel"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_name:["validateName"],_on:["validateOn"],_role:["validateRole"],_shortKey:["validateShortKey"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_tooltipAlign:["validateTooltipAlign"],_type:["validateType"],_value:["validateValue"],_variant:["validateVariant"]}}},[4,"kol-button-wc",{_accessKey:[1,"_access-key"],_ariaControls:[1,"_aria-controls"],_ariaDescription:[1,"_aria-description"],_ariaExpanded:[4,"_aria-expanded"],_ariaHasPopup:[1,"_aria-has-popup"],_ariaSelected:[4,"_aria-selected"],_customClass:[1,"_custom-class"],_disabled:[4],_hideLabel:[4,"_hide-label"],_icons:[1],_id:[1],_label:[1],_name:[1],_on:[16],_role:[1],_shortKey:[1,"_short-key"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tabIndex:[2,"_tab-index"],_tooltipAlign:[1,"_tooltip-align"],_type:[1],_value:[8],_variant:[1],state:[32],kolFocus:[64]},void 0,{_accessKey:["validateAccessKey"],_ariaControls:["validateAriaControls"],_ariaDescription:["validateAriaDescription"],_ariaExpanded:["validateAriaExpanded"],_ariaSelected:["validateAriaSelected"],_customClass:["validateCustomClass"],_disabled:["validateDisabled"],_hideLabel:["validateHideLabel"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_name:["validateName"],_on:["validateOn"],_role:["validateRole"],_shortKey:["validateShortKey"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_tooltipAlign:["validateTooltipAlign"],_type:["validateType"],_value:["validateValue"],_variant:["validateVariant"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-button-wc"].forEach((t=>{if("kol-button-wc"===t)customElements.get(t)||customElements.define(t,KolButtonWc$1)}))}const KolButtonWc=KolButtonWc$1,defineCustomElement=defineCustomElement$1;export{KolButtonWc,defineCustomElement};
4
+ import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{l as watchString,i as watchBoolean,w as watchValidator,C as mapBoolean2String,D as mapStringOrBoolean2String,E as setEventTarget,k as setState,q as showExpertSlot}from"./index2.js";import{d as dispatchDomEvent,K as KolEvent}from"./events.js";import{n as nonce}from"./dev.utils.js";import{p as propagateSubmitEventToForm,a as propagateResetEventToForm}from"./controller.js";import{A as AssociatedInputController}from"./associated.controller.js";import{f as KolTooltipWcTag}from"./component-names.js";import{v as validateAccessKey,a as validateAccessAndShortKey,b as validateShortKey,c as validateTabIndex}from"./access-and-short-key.js";import{c as clsx}from"./clsx.js";import"./i18n2.js";import"./bem.js";import{K as KolSpanFc}from"./Span.js";import{v as validateAriaDescription,a as validateAriaExpanded,b as validateAlternativeButtonLinkRole,c as validateButtonVariant}from"./button-variant.js";import{v as validateCustomClass}from"./custom-class.js";import{v as validateHideLabel}from"./hide-label.js";import{a as validateLabelWithExpertSlot}from"./label.js";import{v as validateTooltipAlign}from"./tooltip-align.js";import{v as validateDisabled}from"./disabled.js";import{v as validateIcons}from"./icons.js";const validateAriaControls=(t,a)=>{watchString(t,"_ariaControls",a)},validateAriaSelected=(t,a)=>{watchBoolean(t,"_ariaSelected",a)},validateButtonCallbacks=(t,a)=>{watchValidator(t,"_on",(t=>"object"==typeof t&&null!==t),new Set(["ButtonCallbacksPropType {Events.onClick, Events.onMouseDown}"]),a)},buttonTypePropTypeOptions=["button","reset","submit"],validateButtonType=(t,a)=>{watchValidator(t,"_type",(t=>"string"==typeof t&&buttonTypePropTypeOptions.includes(t)),new Set([`KoliBriButtonType {${buttonTypePropTypeOptions.join(", ")}`]),a)},KolButtonWc$1=proxyCustomElement(class extends HTMLElement{async kolFocus(){var t;null===(t=this.buttonRef)||void 0===t||t.focus()}render(){var t,a;const e=showExpertSlot(this.state._label),i=Boolean(null===(a=null===(t=this.state._ariaDescription)||void 0===t?void 0:t.trim())||void 0===a?void 0:a.length),s=this.state._accessKey||this.state._shortKey;return h(Host,{key:"d94296c447c53cca42b7528040a6e133f984e5ee"},h("button",{key:"06b70077d51672e90774f8342e383007252bafd4",ref:this.catchRef,accessKey:this.state._accessKey||void 0,"aria-controls":this.state._ariaControls,"aria-describedby":i?this.internalDescriptionById:void 0,"aria-expanded":mapBoolean2String(this.state._ariaExpanded),"aria-haspopup":this._ariaHasPopup,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,"aria-selected":mapStringOrBoolean2String(this.state._ariaSelected),class:clsx("kol-button",{"kol-button--disabled":!0===this.state._disabled,[`kol-button--${this.state._variant}`]:"custom"!==this.state._variant,"kol-button--hide-label":!0===this.state._hideLabel,[this.state._customClass]:"custom"===this.state._variant&&"string"==typeof this.state._customClass&&this.state._customClass.length>0}),disabled:this.state._disabled,id:this.state._id,name:this.state._name,onClick:this.onClick,onMouseDown:this.onMouseDown,role:this.state._role,tabIndex:this.state._tabIndex,type:this.state._type},h(KolSpanFc,{key:"730ec14988b2731caafdf350485e3da7164eb9a2",class:"kol-button__text",badgeText:s,icons:this.state._icons,hideLabel:this.state._hideLabel,label:e?"":this.state._label},h("slot",{key:"d4340b53b690ec8cbc8b0a7cafcbe614352432a0",name:"expert",slot:"expert"}))),h(KolTooltipWcTag,{key:"b18fdaa2da5d12cab05f514ef719f7a08a2da0c8","aria-hidden":"true",hidden:e||!this.state._hideLabel,class:"kol-button__tooltip",_badgeText:s,_align:this.state._tooltipAlign,_label:"string"==typeof this.state._label?this.state._label:""}),i&&h("span",{key:"8ff3b675471a480a6a5cdb940cb79739af92e13d",class:"visually-hidden",id:this.internalDescriptionById},this.state._ariaDescription))}constructor(){super(),this.__registerHost(),this.internalDescriptionById=nonce(),this.catchRef=t=>{this.buttonRef=t},this.onClick=t=>{var a,e;"submit"===this.state._type?propagateSubmitEventToForm({form:this.host,ref:this.buttonRef}):"reset"===this.state._type?propagateResetEventToForm({form:this.host,ref:this.buttonRef}):(this.controller.setFormAssociatedValue(this.state._value),"function"==typeof(null===(a=this.state._on)||void 0===a?void 0:a.onClick)&&(setEventTarget(t,this.buttonRef),null===(e=this.state._on)||void 0===e||e.onClick(t,this.state._value))),this.host&&dispatchDomEvent(this.host,KolEvent.click,this.state._value)},this.onMouseDown=t=>{var a,e,i;null===(i=null===(e=null===(a=this.state)||void 0===a?void 0:a._on)||void 0===e?void 0:e.onMouseDown)||void 0===i||i.call(e,t),this.host&&dispatchDomEvent(this.host,KolEvent.mousedown)},this._accessKey=void 0,this._ariaControls=void 0,this._ariaDescription=void 0,this._ariaExpanded=void 0,this._ariaHasPopup=void 0,this._ariaSelected=void 0,this._customClass=void 0,this._disabled=!1,this._hideLabel=!1,this._icons=void 0,this._id=void 0,this._label=void 0,this._name=void 0,this._on=void 0,this._role=void 0,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._type="button",this._value=void 0,this._variant="normal",this.state={_icons:{},_label:"",_on:{},_type:"button",_variant:"normal"},this.controller=new AssociatedInputController(this,"button",this.host)}validateAccessKey(t){validateAccessKey(this,t),validateAccessAndShortKey(t,this._shortKey)}validateAriaControls(t){validateAriaControls(this,t)}validateAriaDescription(t){validateAriaDescription(this,t)}validateAriaExpanded(t){validateAriaExpanded(this,t)}validateAriaSelected(t){validateAriaSelected(this,t)}validateCustomClass(t){validateCustomClass(this,t)}validateDisabled(t){validateDisabled(this,t)}validateHideLabel(t){validateHideLabel(this,t)}validateIcons(t){validateIcons(this,t)}validateId(t){watchString(this,"_id",t)}validateLabel(t){validateLabelWithExpertSlot(this,t,{required:!0})}validateName(t){this.controller.validateName(t)}validateOn(t){validateButtonCallbacks(this,t)}validateRole(t){validateAlternativeButtonLinkRole(this,t)}validateShortKey(t){validateShortKey(this,t),validateAccessAndShortKey(this._accessKey,t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){validateTabIndex(this,t)}validateTooltipAlign(t){validateTooltipAlign(this,t)}validateType(t){validateButtonType(this,t)}validateValue(t){setState(this,"_value",t),this.controller.setFormAssociatedValue(this.state._value)}validateVariant(t){validateButtonVariant(this,t)}componentWillLoad(){this.validateAccessKey(this._accessKey),this.validateAriaControls(this._ariaControls),this.validateAriaDescription(this._ariaDescription),this.validateAriaExpanded(this._ariaExpanded),this.validateAriaSelected(this._ariaSelected),this.validateCustomClass(this._customClass),this.validateDisabled(this._disabled),this.validateHideLabel(this._hideLabel),this.validateIcons(this._icons),this.validateId(this._id),this.validateLabel(this._label),this.validateName(this._name),this.validateOn(this._on),this.validateRole(this._role),this.validateShortKey(this._shortKey),this.validateSyncValueBySelector(this._syncValueBySelector),this.validateTabIndex(this._tabIndex),this.validateTooltipAlign(this._tooltipAlign),this.validateType(this._type),this.validateValue(this._value),this.validateVariant(this._variant),validateAccessAndShortKey(this._accessKey,this._shortKey)}get host(){return this}static get watchers(){return{_accessKey:["validateAccessKey"],_ariaControls:["validateAriaControls"],_ariaDescription:["validateAriaDescription"],_ariaExpanded:["validateAriaExpanded"],_ariaSelected:["validateAriaSelected"],_customClass:["validateCustomClass"],_disabled:["validateDisabled"],_hideLabel:["validateHideLabel"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_name:["validateName"],_on:["validateOn"],_role:["validateRole"],_shortKey:["validateShortKey"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_tooltipAlign:["validateTooltipAlign"],_type:["validateType"],_value:["validateValue"],_variant:["validateVariant"]}}},[4,"kol-button-wc",{_accessKey:[1,"_access-key"],_ariaControls:[1,"_aria-controls"],_ariaDescription:[1,"_aria-description"],_ariaExpanded:[4,"_aria-expanded"],_ariaHasPopup:[1,"_aria-has-popup"],_ariaSelected:[4,"_aria-selected"],_customClass:[1,"_custom-class"],_disabled:[4],_hideLabel:[4,"_hide-label"],_icons:[1],_id:[1],_label:[1],_name:[1],_on:[16],_role:[1],_shortKey:[1,"_short-key"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tabIndex:[2,"_tab-index"],_tooltipAlign:[1,"_tooltip-align"],_type:[1],_value:[8],_variant:[1],state:[32],kolFocus:[64]},void 0,{_accessKey:["validateAccessKey"],_ariaControls:["validateAriaControls"],_ariaDescription:["validateAriaDescription"],_ariaExpanded:["validateAriaExpanded"],_ariaSelected:["validateAriaSelected"],_customClass:["validateCustomClass"],_disabled:["validateDisabled"],_hideLabel:["validateHideLabel"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_name:["validateName"],_on:["validateOn"],_role:["validateRole"],_shortKey:["validateShortKey"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_tooltipAlign:["validateTooltipAlign"],_type:["validateType"],_value:["validateValue"],_variant:["validateVariant"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-button-wc"].forEach((t=>{if("kol-button-wc"===t)customElements.get(t)||customElements.define(t,KolButtonWc$1)}))}const KolButtonWc=KolButtonWc$1,defineCustomElement=defineCustomElement$1;export{KolButtonWc,defineCustomElement};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{proxyCustomElement,HTMLElement,h}from"@stencil/core/internal/client";import{j as setState}from"./index2.js";import{t as translate}from"./i18n2.js";import{w as watchHeadingLevel}from"./validation.js";import{a as KolButtonWcTag}from"./component-names.js";import"./bem.js";import{K as KolHeadingFc}from"./Heading.js";import"./markdown.js";import{d as dispatchDomEvent,K as KolEvent}from"./events.js";import{v as validateHasCloser}from"./has-closer.js";import{v as validateLabel}from"./label.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%;\n /* 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 .badge-text-hint {\n background-color: lightgray;\n color: black;\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-card {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n height: 100%;\n position: relative;\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-card__close-button {\n position: absolute;\n top: 0;\n right: 0;\n }\n}",KolCardDefaultStyle0=defaultStyleCss,KolCard$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.close=()=>{var e;void 0!==(null===(e=this._on)||void 0===e?void 0:e.onClose)&&this._on.onClose(new Event("Close")),this.host&&dispatchDomEvent(this.host,KolEvent.close)},this.on={onClick:this.close},this.validateOnValue=e=>"object"==typeof e&&null!==e&&"function"==typeof e.onClose,this._on=void 0,this._hasCloser=!1,this._label=void 0,this._level=0,this.state={_label:""}}render(){return h("div",{key:"9b3f3c20c9f8873638f5b814a0bb975d35c6755f",class:"kol-card"},h("div",{key:"c27dd41fa36b132eb59a6f04079ea6f4449ccfa3",class:"kol-card__header"},h(KolHeadingFc,{key:"2b20ac61c90422eed8000a20fd280e420a3a5baf",class:"kol-card__headline",level:this.state._level},this.state._label)),h("div",{key:"1603a72a02901b29effa7169aa8e50eb2c99ee05",class:"kol-card__content"},h("slot",{key:"97db416900df4d84d0d5060d9c0a0bf926c02dd3"})),this.state._hasCloser&&h(KolButtonWcTag,{key:"b3fd968a5063de19f354be783e37c2674ede03ef",class:"kol-card__close-button","data-testid":"card-close-button",_hideLabel:!0,_icons:{left:{icon:"codicon codicon-close"}},_label:translate("kol-close"),_on:this.on,_tooltipAlign:"left"}))}validateOn(e){this.validateOnValue(e)&&setState(this,"_on",{onClose:e.onClose})}validateHasCloser(e){validateHasCloser(this,e)}validateLabel(e){validateLabel(this,e,{required:!0})}validateLevel(e){watchHeadingLevel(this,e)}componentWillLoad(){this.validateHasCloser(this._hasCloser),this.validateLabel(this._label),this.validateLevel(this._level),this.validateOn(this._on)}get host(){return this}static get watchers(){return{_on:["validateOn"],_hasCloser:["validateHasCloser"],_label:["validateLabel"],_level:["validateLevel"]}}static get style(){return{default:KolCardDefaultStyle0}}},[33,"kol-card",{_on:[16],_hasCloser:[4,"_has-closer"],_label:[1],_level:[2],state:[32]},void 0,{_on:["validateOn"],_hasCloser:["validateHasCloser"],_label:["validateLabel"],_level:["validateLevel"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-card"].forEach((e=>{if("kol-card"===e)customElements.get(e)||customElements.define(e,KolCard$1)}))}const KolCard=KolCard$1,defineCustomElement=defineCustomElement$1;export{KolCard,defineCustomElement};
4
+ import{proxyCustomElement,HTMLElement,h}from"@stencil/core/internal/client";import{k as setState}from"./index2.js";import{t as translate}from"./i18n2.js";import{w as watchHeadingLevel}from"./validation.js";import{a as KolButtonWcTag}from"./component-names.js";import"./bem.js";import{K as KolHeadingFc}from"./Heading.js";import"./markdown.js";import{d as dispatchDomEvent,K as KolEvent}from"./events.js";import{v as validateHasCloser}from"./has-closer.js";import{v as validateLabel}from"./label.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%;\n /* 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 .badge-text-hint {\n background-color: lightgray;\n color: black;\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-card {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n height: 100%;\n position: relative;\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-card__close-button {\n position: absolute;\n top: 0;\n right: 0;\n }\n}",KolCardDefaultStyle0=defaultStyleCss,KolCard$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.close=()=>{var e;void 0!==(null===(e=this._on)||void 0===e?void 0:e.onClose)&&this._on.onClose(new Event("Close")),this.host&&dispatchDomEvent(this.host,KolEvent.close)},this.on={onClick:this.close},this.validateOnValue=e=>"object"==typeof e&&null!==e&&"function"==typeof e.onClose,this._on=void 0,this._hasCloser=!1,this._label=void 0,this._level=0,this.state={_label:""}}render(){return h("div",{key:"9b3f3c20c9f8873638f5b814a0bb975d35c6755f",class:"kol-card"},h("div",{key:"c27dd41fa36b132eb59a6f04079ea6f4449ccfa3",class:"kol-card__header"},h(KolHeadingFc,{key:"2b20ac61c90422eed8000a20fd280e420a3a5baf",class:"kol-card__headline",level:this.state._level},this.state._label)),h("div",{key:"1603a72a02901b29effa7169aa8e50eb2c99ee05",class:"kol-card__content"},h("slot",{key:"97db416900df4d84d0d5060d9c0a0bf926c02dd3"})),this.state._hasCloser&&h(KolButtonWcTag,{key:"b3fd968a5063de19f354be783e37c2674ede03ef",class:"kol-card__close-button","data-testid":"card-close-button",_hideLabel:!0,_icons:{left:{icon:"codicon codicon-close"}},_label:translate("kol-close"),_on:this.on,_tooltipAlign:"left"}))}validateOn(e){this.validateOnValue(e)&&setState(this,"_on",{onClose:e.onClose})}validateHasCloser(e){validateHasCloser(this,e)}validateLabel(e){validateLabel(this,e,{required:!0})}validateLevel(e){watchHeadingLevel(this,e)}componentWillLoad(){this.validateHasCloser(this._hasCloser),this.validateLabel(this._label),this.validateLevel(this._level),this.validateOn(this._on)}get host(){return this}static get watchers(){return{_on:["validateOn"],_hasCloser:["validateHasCloser"],_label:["validateLabel"],_level:["validateLevel"]}}static get style(){return{default:KolCardDefaultStyle0}}},[33,"kol-card",{_on:[16],_hasCloser:[4,"_has-closer"],_label:[1],_level:[2],state:[32]},void 0,{_on:["validateOn"],_hasCloser:["validateHasCloser"],_label:["validateLabel"],_level:["validateLevel"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-card"].forEach((e=>{if("kol-card"===e)customElements.get(e)||customElements.define(e,KolCard$1)}))}const KolCard=KolCard$1,defineCustomElement=defineCustomElement$1;export{KolCard,defineCustomElement};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{proxyCustomElement,HTMLElement,h}from"@stencil/core/internal/client";import{c as clsx}from"./clsx.js";import{n as nonce}from"./dev.utils.js";import{F as FormFieldStateWrapper}from"./getRenderStates.js";import{k as watchString,h as watchBoolean}from"./index2.js";import{I as InputIconController,a as InputContainerStateWrapperFc}from"./InputContainerStateWrapper.js";import{v as validateSuggestions}from"./suggestions.js";import{C as CustomSuggestionsToggleFc,a as CustomSuggestionsOptionsGroupFc,b as CustomSuggestionsOptionFc,g as getRenderStates}from"./CustomSuggestionsOptionsGroup.js";import{I as InputStateWrapper}from"./InputStateWrapper.js";class ComboboxController extends InputIconController{constructor(e,t,n){super(e,t,n),this.component=e}validatePlaceholder(e){watchString(this.component,"_placeholder",e)}validateRequired(e){watchBoolean(this.component,"_required",e)}validateSuggestions(e){validateSuggestions(this.component,e)}validateValue(e){watchString(this.component,"_value",e)}componentWillLoad(){super.componentWillLoad(),this.validatePlaceholder(this.component._placeholder),this.validateRequired(this.component._required),this.validateSuggestions(this.component._suggestions),this.validateValue(this.component._value)}}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%;\n /* 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 .badge-text-hint {\n background-color: lightgray;\n color: black;\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 display: block;\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-alert {\n display: grid;\n }\n .kol-alert__container {\n place-items: center;\n display: flex;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-custom-suggestions-option {\n cursor: pointer;\n white-space: normal;\n overflow-wrap: break-word;\n word-wrap: break-word;\n line-height: 1.5;\n box-sizing: border-box;\n }\n .kol-custom-suggestions-options-group--cursor-hidden .kol-custom-suggestions-option {\n cursor: none !important;\n }\n}\n@layer kol-component {\n .kol-custom-suggestions-options-group {\n display: block;\n position: absolute;\n list-style-type: none;\n margin: 0;\n padding: 0;\n overflow-y: auto;\n overflow-x: hidden;\n z-index: 2;\n background-color: white;\n max-height: calc(250rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-custom-suggestions-toggle {\n align-items: center;\n display: flex;\n height: var(--a11y-min-size);\n width: var(--a11y-min-size);\n }\n .kol-custom-suggestions-toggle:not(:disabled) {\n cursor: pointer;\n }\n}\n@layer kol-component {\n .kol-form-field {\n display: grid;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: \"*\";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n .kol-input-container {\n align-items: center;\n background-color: white;\n display: grid;\n grid-template-columns: 1fr;\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__container {\n position: relative;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n}\n@layer kol-component {\n .kol-input {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input:focus {\n outline: none;\n }\n}",KolComboboxDefaultStyle0=defaultStyleCss,KolCombobox$1=proxyCustomElement(class extends HTMLElement{async getValue(){return this.state._value}async kolFocus(){var e;null===(e=this.refInput)||void 0===e||e.focus()}selectOption(e){var t;this.controller.onFacade.onInput(new CustomEvent("input",{bubbles:!0,detail:{name:this.state._name,value:e}}),!0,e),this.controller.onFacade.onChange(new CustomEvent("change",{bubbles:!0,detail:{name:this.state._name,value:e}}),e),this.controller.setFormAssociatedValue(e),this.state._value=e,null===(t=this.refInput)||void 0===t||t.focus()}onInput(e){const t=e.target;this.state._value=t.value,this._value=t.value,this.controller.onFacade.onInput(e),this.setFilteredSuggestionsByQuery(t.value),this._focusedOptionIndex=-1}handleKeyDownDropdown(e){1===e.key.length&&/[a-z0-9]/i.test(e.key)&&(this._isOpen=!0,this.focusSuggestionStartingWith(e.key))}setFilteredSuggestionsByQuery(e){""===e.trim()?this._filteredSuggestions=[...this._suggestions]:(this._filteredSuggestions=Array.isArray(this._suggestions)?this._suggestions.filter((t=>t.toLowerCase().includes(e.toLowerCase()))):this._filteredSuggestions,this._isOpen=!!(this._filteredSuggestions&&this._filteredSuggestions.length>0))}moveFocus(e){if(!this._filteredSuggestions)return;let t=this._focusedOptionIndex+e;t>=this._filteredSuggestions.length&&(t=0),t<0&&(t=this._filteredSuggestions.length-1),this.focusOption(t)}focusOption(e){if(this._focusedOptionIndex=e,this.refSuggestions){const t=this.refSuggestions[e];null==t||t.focus()}}focusSuggestionStartingWith(e){const t=e.toLowerCase(),n=Array.isArray(this._filteredSuggestions)&&this._filteredSuggestions.length>0&&this._filteredSuggestions.findIndex((e=>e.toLowerCase().startsWith(t)));"number"==typeof n&&this.focusOption(n)}getFormFieldProps(){return{state:this.state,class:clsx("kol-combobox",{"has-value":this.state._hasValue}),tooltipAlign:this._tooltipAlign,onClick:()=>{var e;return null===(e=this.refInput)||void 0===e?void 0:e.focus()},alert:this.showAsAlert()}}getInputProps(){const{ariaDescribedBy:e}=getRenderStates(this.state);return Object.assign(Object.assign({ref:this.catchRef,state:this.state,class:"kol-combobox__input",type:"text",role:"combobox","aria-autocomplete":"both","aria-expanded":this._isOpen?"true":"false","aria-controls":"listbox","aria-describedby":e.length>0?e.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,"aria-labelledby":this.state._id,"aria-activedescendant":this._isOpen&&this._focusedOptionIndex>=0?`option-${this._focusedOptionIndex}`:void 0,value:this.state._value,accessKey:this.state._accessKey,autocapitalize:"off",autocorrect:"off",disabled:this.state._disabled,customSuggestions:!0,id:this.state._id,name:this.state._name,required:this.state._required},this.controller.onFacade),{onFocus:e=>{this.controller.onFacade.onFocus(e),this.inputHasFocus=!0},onBlur:e=>{this.controller.onFacade.onBlur(e),this.inputHasFocus=!1},onChange:this.onChange.bind(this),onInput:this.onInput.bind(this),placeholder:this.state._placeholder})}render(){return h(FormFieldStateWrapper,Object.assign({key:"7518c6b1ba75658aa9b3101ebfb371ed8ad3409e"},this.getFormFieldProps()),h(InputContainerStateWrapperFc,{key:"b8cf517f39abdac1f97a497e7dab07beb6b146c7",state:this.state},h("div",{key:"3ec383f5f9c883b6bb555811ec8901ff98709a05",class:"kol-combobox__group"},h(InputStateWrapper,Object.assign({key:"58838796460e841e2ae6d2a322c9c2409f18653e"},this.getInputProps())),h(CustomSuggestionsToggleFc,{key:"b585a1dcb6a8a23b31e2a639f6dfaa8f3286be73",onClick:this.toggleListbox.bind(this),disabled:this.state._disabled})),this._isOpen&&!(!0===this.state._disabled)&&h(CustomSuggestionsOptionsGroupFc,{key:"e2e27ed383625650c0349b091d7e766829e3cd4b",blockSuggestionMouseOver:this.blockSuggestionMouseOver,onKeyDown:this.handleKeyDownDropdown.bind(this)},Array.isArray(this._filteredSuggestions)&&this._filteredSuggestions.length>0&&this._filteredSuggestions.map(((e,t)=>h(CustomSuggestionsOptionFc,{index:t,option:e,ref:e=>{e&&(this.refSuggestions[t]=e)},selected:this.state._value===e,onClick:()=>{this.selectOption(e),this.toggleListbox(),this._isOpen=!1,this._hasOpened=!1},onMouseOver:()=>{this.blockSuggestionMouseOver||this.focusOption(t)},onFocus:()=>{this.focusOption(t)},onKeyDown:t=>{"Enter"!==t.key&&"NumpadEnter"!==t.key||(this.selectOption(e),this.toggleListbox(),t.preventDefault())}}))))))}handleKeyDown(e){var t,n;const i=(t,n)=>{var i;e.preventDefault(),void 0!==t&&(this._isOpen=t,t||null===(i=this.refInput)||void 0===i||i.focus()),null==n||n()};switch(e.key){case"Down":case"ArrowDown":this.blockSuggestionMouseOver=!0,i(!0,(()=>this.moveFocus(1)));break;case"Up":case"ArrowUp":this.blockSuggestionMouseOver=!0,i(!0,(()=>this.moveFocus(-1)));break;case"Tab":this._isOpen&&(this._isOpen=!1,null===(t=this.refInput)||void 0===t||t.focus());break;case"Esc":case"Escape":this._hasOpened=!1,this._isOpen=!1,e.preventDefault(),null===(n=this.refInput)||void 0===n||n.focus();break;case"NumpadEnter":case"Enter":this._isOpen&&this._focusedOptionIndex>=0?(this._filteredSuggestions&&this.selectOption(this._filteredSuggestions[this._focusedOptionIndex]),this._isOpen=!1,this._hasOpened=!1):this.toggleListbox(),e.preventDefault();break;case"Home":this.blockSuggestionMouseOver=!0,i(void 0,(()=>{this._isOpen&&this.focusOption(0)}));break;case"End":this.blockSuggestionMouseOver=!0,i(void 0,(()=>{this._isOpen&&this.focusOption(this._filteredSuggestions?this._filteredSuggestions.length-1:0)}));break;case"PageUp":this.blockSuggestionMouseOver=!0,i(void 0,(()=>this._isOpen&&this.moveFocus(-10)));break;case"PageDown":this.blockSuggestionMouseOver=!0,i(void 0,(()=>this._isOpen&&this.moveFocus(10)))}}handleWindowClick(e){null==this.host||this.host.contains(e.target)||(this._isOpen=!1)}constructor(){super(),this.__registerHost(),this.__attachShadow(),this.refSuggestions=[],this._focusedOptionIndex=-1,this.toggleListbox=()=>{var e;if(!0===this.state._disabled)this._isOpen=!1;else if(null===(e=this.refInput)||void 0===e||e.focus(),!this._hasOpened&&Array.isArray(this._filteredSuggestions)&&this._filteredSuggestions.length>0){this._isOpen=!0,this._hasOpened=!0;const e=this._filteredSuggestions.findIndex((e=>e===this.state._value));this._focusedOptionIndex=e>=0?e:-1,this.focusOption(this._focusedOptionIndex)}},this.catchRef=e=>{this.refInput=e},this.blockSuggestionMouseOver=!1,this._isOpen=!1,this._filteredSuggestions=void 0,this._hasOpened=!1,this._accessKey=void 0,this._placeholder=void 0,this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._id=void 0,this._label=void 0,this._msg=void 0,this._name=void 0,this._on=void 0,this._suggestions=void 0,this._required=!1,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this.state={_hasValue:!1,_hideMsg:!1,_id:`id-${nonce()}`,_label:"",_suggestions:[],_value:""},this.inputHasFocus=!1,this.controller=new ComboboxController(this,"combobox",this.host),this.onInput=this.onInput.bind(this)}showAsAlert(){return Boolean(this.state._touched)&&!this.inputHasFocus}validatePlaceholder(e){this.controller.validatePlaceholder(e)}validateAccessKey(e){this.controller.validateAccessKey(e)}validateDisabled(e){this.controller.validateDisabled(e)}validateHideMsg(e){this.controller.validateHideMsg(e)}validateHideLabel(e){this.controller.validateHideLabel(e)}validateHint(e){this.controller.validateHint(e)}validateIcons(e){this.controller.validateIcons(e)}validateId(e){this.controller.validateId(e)}validateLabel(e){this.controller.validateLabel(e)}validateMsg(e){this.controller.validateMsg(e)}validateName(e){this.controller.validateName(e)}validateOn(e){this.controller.validateOn(e)}validateShortKey(e){this.controller.validateShortKey(e)}validateSuggestions(e){this.controller.validateSuggestions(e),this._filteredSuggestions=e}validateRequired(e){this.controller.validateRequired(e)}validateSyncValueBySelector(e){this.controller.validateSyncValueBySelector(e)}validateTouched(e){this.controller.validateTouched(e)}validateValue(e){this.controller.validateValue(e),this.controller.setFormAssociatedValue(e)}componentWillLoad(){this.refSuggestions=[],this._touched=!0===this._touched,this.controller.componentWillLoad(),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener((e=>this.state._hasValue=!!e)),this._filteredSuggestions=this.state._suggestions}handleMouseEvent(){this.blockSuggestionMouseOver=!1}handleFocusOut(){setTimeout((()=>{var e;(null===(e=this.host)||void 0===e?void 0:e.contains(document.activeElement))||this.onBlur()}),0)}handleWindowBlur(){this.onBlur()}onBlur(){var e;this._hasOpened=!1,this._isOpen&&(this._isOpen=!this._isOpen,null===(e=this.refInput)||void 0===e||e.focus())}onChange(e){this.controller.onFacade.onChange(e),this.controller.setFormAssociatedValue(this.state._value)}static get delegatesFocus(){return!0}get host(){return this}static get watchers(){return{_placeholder:["validatePlaceholder"],_accessKey:["validateAccessKey"],_disabled:["validateDisabled"],_hideMsg:["validateHideMsg"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_msg:["validateMsg"],_name:["validateName"],_on:["validateOn"],_shortKey:["validateShortKey"],_suggestions:["validateSuggestions"],_required:["validateRequired"],_syncValueBySelector:["validateSyncValueBySelector"],_touched:["validateTouched"],_value:["validateValue"]}}static get style(){return{default:KolComboboxDefaultStyle0}}},[49,"kol-combobox",{_accessKey:[1,"_access-key"],_placeholder:[1],_disabled:[4],_hideMsg:[1540,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_id:[1],_label:[1],_msg:[1],_name:[1],_on:[16],_suggestions:[1],_required:[4],_shortKey:[1,"_short-key"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1537],blockSuggestionMouseOver:[32],_isOpen:[32],_filteredSuggestions:[32],_hasOpened:[32],state:[32],inputHasFocus:[32],getValue:[64],kolFocus:[64]},[[0,"keydown","handleKeyDown"],[8,"click","handleWindowClick"],[1,"mousemove","handleMouseEvent"],[8,"focusout","handleFocusOut"],[8,"blur","handleWindowBlur"]],{_placeholder:["validatePlaceholder"],_accessKey:["validateAccessKey"],_disabled:["validateDisabled"],_hideMsg:["validateHideMsg"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_msg:["validateMsg"],_name:["validateName"],_on:["validateOn"],_shortKey:["validateShortKey"],_suggestions:["validateSuggestions"],_required:["validateRequired"],_syncValueBySelector:["validateSyncValueBySelector"],_touched:["validateTouched"],_value:["validateValue"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-combobox"].forEach((e=>{if("kol-combobox"===e)customElements.get(e)||customElements.define(e,KolCombobox$1)}))}const KolCombobox=KolCombobox$1,defineCustomElement=defineCustomElement$1;export{KolCombobox,defineCustomElement};
4
+ import{proxyCustomElement,HTMLElement,h}from"@stencil/core/internal/client";import{c as clsx}from"./clsx.js";import{n as nonce}from"./dev.utils.js";import{F as FormFieldStateWrapper}from"./getRenderStates.js";import{l as watchString,i as watchBoolean}from"./index2.js";import{I as InputIconController,a as InputContainerStateWrapperFc}from"./InputContainerStateWrapper.js";import{v as validateSuggestions}from"./suggestions.js";import{C as CustomSuggestionsToggleFc,a as CustomSuggestionsOptionsGroupFc,b as CustomSuggestionsOptionFc,g as getRenderStates}from"./CustomSuggestionsOptionsGroup.js";import{I as InputStateWrapper}from"./InputStateWrapper.js";class ComboboxController extends InputIconController{constructor(e,t,n){super(e,t,n),this.component=e}validatePlaceholder(e){watchString(this.component,"_placeholder",e)}validateRequired(e){watchBoolean(this.component,"_required",e)}validateSuggestions(e){validateSuggestions(this.component,e)}validateValue(e){watchString(this.component,"_value",e)}componentWillLoad(){super.componentWillLoad(),this.validatePlaceholder(this.component._placeholder),this.validateRequired(this.component._required),this.validateSuggestions(this.component._suggestions),this.validateValue(this.component._value)}}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%;\n /* 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 .badge-text-hint {\n background-color: lightgray;\n color: black;\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 display: block;\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-alert {\n display: grid;\n }\n .kol-alert__container {\n place-items: center;\n display: flex;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-custom-suggestions-option {\n cursor: pointer;\n white-space: normal;\n overflow-wrap: break-word;\n word-wrap: break-word;\n line-height: 1.5;\n box-sizing: border-box;\n }\n .kol-custom-suggestions-options-group--cursor-hidden .kol-custom-suggestions-option {\n cursor: none !important;\n }\n}\n@layer kol-component {\n .kol-custom-suggestions-options-group {\n display: block;\n position: absolute;\n list-style-type: none;\n margin: 0;\n padding: 0;\n overflow-y: auto;\n overflow-x: hidden;\n z-index: 2;\n background-color: white;\n max-height: calc(250rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-custom-suggestions-toggle {\n align-items: center;\n display: flex;\n height: var(--a11y-min-size);\n width: var(--a11y-min-size);\n }\n .kol-custom-suggestions-toggle:not(:disabled) {\n cursor: pointer;\n }\n}\n@layer kol-component {\n .kol-form-field {\n display: grid;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field--disabled .kol-form-field__label {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__label-text::after {\n content: \"*\";\n }\n .kol-form-field--disabled .kol-form-field__hint {\n opacity: 0.5;\n }\n .kol-form-field--required .kol-form-field__tooltip .span-label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n .kol-input-container {\n align-items: center;\n background-color: white;\n display: grid;\n grid-template-columns: 1fr;\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start) {\n grid-template-columns: auto 1fr;\n }\n .kol-input-container:has(> .kol-input-container__adornment--end) {\n grid-template-columns: 1fr auto;\n }\n .kol-input-container:has(> .kol-input-container__adornment--start):has(> .kol-input-container__adornment--end) {\n grid-template-columns: auto 1fr auto;\n }\n .kol-input-container__container {\n position: relative;\n }\n .kol-input-container__adornment {\n display: flex;\n align-items: center;\n }\n .kol-input-container__adornment .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n}\n@layer kol-component {\n .kol-input {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n min-width: var(--a11y-min-size);\n width: 100%;\n }\n .kol-input:focus {\n outline: none;\n }\n}",KolComboboxDefaultStyle0=defaultStyleCss,KolCombobox$1=proxyCustomElement(class extends HTMLElement{async getValue(){return this.state._value}async kolFocus(){var e;null===(e=this.refInput)||void 0===e||e.focus()}selectOption(e){var t;this.controller.onFacade.onInput(new CustomEvent("input",{bubbles:!0,detail:{name:this.state._name,value:e}}),!0,e),this.controller.onFacade.onChange(new CustomEvent("change",{bubbles:!0,detail:{name:this.state._name,value:e}}),e),this.controller.setFormAssociatedValue(e),this.state._value=e,null===(t=this.refInput)||void 0===t||t.focus()}onInput(e){const t=e.target;this.state._value=t.value,this._value=t.value,this.controller.onFacade.onInput(e),this.setFilteredSuggestionsByQuery(t.value),this._focusedOptionIndex=-1}handleKeyDownDropdown(e){1===e.key.length&&/[a-z0-9]/i.test(e.key)&&(this._isOpen=!0,this.focusSuggestionStartingWith(e.key))}setFilteredSuggestionsByQuery(e){""===e.trim()?this._filteredSuggestions=[...this._suggestions]:(this._filteredSuggestions=Array.isArray(this._suggestions)?this._suggestions.filter((t=>t.toLowerCase().includes(e.toLowerCase()))):this._filteredSuggestions,this._isOpen=!!(this._filteredSuggestions&&this._filteredSuggestions.length>0))}moveFocus(e){if(!this._filteredSuggestions)return;let t=this._focusedOptionIndex+e;t>=this._filteredSuggestions.length&&(t=0),t<0&&(t=this._filteredSuggestions.length-1),this.focusOption(t)}focusOption(e){if(this._focusedOptionIndex=e,this.refSuggestions){const t=this.refSuggestions[e];null==t||t.focus()}}focusSuggestionStartingWith(e){const t=e.toLowerCase(),n=Array.isArray(this._filteredSuggestions)&&this._filteredSuggestions.length>0&&this._filteredSuggestions.findIndex((e=>e.toLowerCase().startsWith(t)));"number"==typeof n&&this.focusOption(n)}getFormFieldProps(){return{state:this.state,class:clsx("kol-combobox",{"has-value":this.state._hasValue}),tooltipAlign:this._tooltipAlign,onClick:()=>{var e;return null===(e=this.refInput)||void 0===e?void 0:e.focus()},alert:this.showAsAlert()}}getInputProps(){const{ariaDescribedBy:e}=getRenderStates(this.state);return Object.assign(Object.assign({ref:this.catchRef,state:this.state,class:"kol-combobox__input",type:"text",role:"combobox","aria-autocomplete":"both","aria-expanded":this._isOpen?"true":"false","aria-controls":"listbox","aria-describedby":e.length>0?e.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,"aria-labelledby":this.state._id,"aria-activedescendant":this._isOpen&&this._focusedOptionIndex>=0?`option-${this._focusedOptionIndex}`:void 0,value:this.state._value,accessKey:this.state._accessKey,autocapitalize:"off",autocorrect:"off",disabled:this.state._disabled,customSuggestions:!0,id:this.state._id,name:this.state._name,required:this.state._required},this.controller.onFacade),{onFocus:e=>{this.controller.onFacade.onFocus(e),this.inputHasFocus=!0},onBlur:e=>{this.controller.onFacade.onBlur(e),this.inputHasFocus=!1},onChange:this.onChange.bind(this),onInput:this.onInput.bind(this),placeholder:this.state._placeholder})}render(){return h(FormFieldStateWrapper,Object.assign({key:"7518c6b1ba75658aa9b3101ebfb371ed8ad3409e"},this.getFormFieldProps()),h(InputContainerStateWrapperFc,{key:"b8cf517f39abdac1f97a497e7dab07beb6b146c7",state:this.state},h("div",{key:"3ec383f5f9c883b6bb555811ec8901ff98709a05",class:"kol-combobox__group"},h(InputStateWrapper,Object.assign({key:"58838796460e841e2ae6d2a322c9c2409f18653e"},this.getInputProps())),h(CustomSuggestionsToggleFc,{key:"b585a1dcb6a8a23b31e2a639f6dfaa8f3286be73",onClick:this.toggleListbox.bind(this),disabled:this.state._disabled})),this._isOpen&&!(!0===this.state._disabled)&&h(CustomSuggestionsOptionsGroupFc,{key:"e2e27ed383625650c0349b091d7e766829e3cd4b",blockSuggestionMouseOver:this.blockSuggestionMouseOver,onKeyDown:this.handleKeyDownDropdown.bind(this)},Array.isArray(this._filteredSuggestions)&&this._filteredSuggestions.length>0&&this._filteredSuggestions.map(((e,t)=>h(CustomSuggestionsOptionFc,{index:t,option:e,ref:e=>{e&&(this.refSuggestions[t]=e)},selected:this.state._value===e,onClick:()=>{this.selectOption(e),this.toggleListbox(),this._isOpen=!1,this._hasOpened=!1},onMouseOver:()=>{this.blockSuggestionMouseOver||this.focusOption(t)},onFocus:()=>{this.focusOption(t)},onKeyDown:t=>{"Enter"!==t.key&&"NumpadEnter"!==t.key||(this.selectOption(e),this.toggleListbox(),t.preventDefault())}}))))))}handleKeyDown(e){var t,n;const i=(t,n)=>{var i;e.preventDefault(),void 0!==t&&(this._isOpen=t,t||null===(i=this.refInput)||void 0===i||i.focus()),null==n||n()};switch(e.key){case"Down":case"ArrowDown":this.blockSuggestionMouseOver=!0,i(!0,(()=>this.moveFocus(1)));break;case"Up":case"ArrowUp":this.blockSuggestionMouseOver=!0,i(!0,(()=>this.moveFocus(-1)));break;case"Tab":this._isOpen&&(this._isOpen=!1,null===(t=this.refInput)||void 0===t||t.focus());break;case"Esc":case"Escape":this._hasOpened=!1,this._isOpen=!1,e.preventDefault(),null===(n=this.refInput)||void 0===n||n.focus();break;case"NumpadEnter":case"Enter":this._isOpen&&this._focusedOptionIndex>=0?(this._filteredSuggestions&&this.selectOption(this._filteredSuggestions[this._focusedOptionIndex]),this._isOpen=!1,this._hasOpened=!1):this.toggleListbox(),e.preventDefault();break;case"Home":this.blockSuggestionMouseOver=!0,i(void 0,(()=>{this._isOpen&&this.focusOption(0)}));break;case"End":this.blockSuggestionMouseOver=!0,i(void 0,(()=>{this._isOpen&&this.focusOption(this._filteredSuggestions?this._filteredSuggestions.length-1:0)}));break;case"PageUp":this.blockSuggestionMouseOver=!0,i(void 0,(()=>this._isOpen&&this.moveFocus(-10)));break;case"PageDown":this.blockSuggestionMouseOver=!0,i(void 0,(()=>this._isOpen&&this.moveFocus(10)))}}handleWindowClick(e){null==this.host||this.host.contains(e.target)||(this._isOpen=!1)}constructor(){super(),this.__registerHost(),this.__attachShadow(),this.refSuggestions=[],this._focusedOptionIndex=-1,this.toggleListbox=()=>{var e;if(!0===this.state._disabled)this._isOpen=!1;else if(null===(e=this.refInput)||void 0===e||e.focus(),!this._hasOpened&&Array.isArray(this._filteredSuggestions)&&this._filteredSuggestions.length>0){this._isOpen=!0,this._hasOpened=!0;const e=this._filteredSuggestions.findIndex((e=>e===this.state._value));this._focusedOptionIndex=e>=0?e:-1,this.focusOption(this._focusedOptionIndex)}},this.catchRef=e=>{this.refInput=e},this.blockSuggestionMouseOver=!1,this._isOpen=!1,this._filteredSuggestions=void 0,this._hasOpened=!1,this._accessKey=void 0,this._placeholder=void 0,this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._id=void 0,this._label=void 0,this._msg=void 0,this._name=void 0,this._on=void 0,this._suggestions=void 0,this._required=!1,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this.state={_hasValue:!1,_hideMsg:!1,_id:`id-${nonce()}`,_label:"",_suggestions:[],_value:""},this.inputHasFocus=!1,this.controller=new ComboboxController(this,"combobox",this.host),this.onInput=this.onInput.bind(this)}showAsAlert(){return Boolean(this.state._touched)&&!this.inputHasFocus}validatePlaceholder(e){this.controller.validatePlaceholder(e)}validateAccessKey(e){this.controller.validateAccessKey(e)}validateDisabled(e){this.controller.validateDisabled(e)}validateHideMsg(e){this.controller.validateHideMsg(e)}validateHideLabel(e){this.controller.validateHideLabel(e)}validateHint(e){this.controller.validateHint(e)}validateIcons(e){this.controller.validateIcons(e)}validateId(e){this.controller.validateId(e)}validateLabel(e){this.controller.validateLabel(e)}validateMsg(e){this.controller.validateMsg(e)}validateName(e){this.controller.validateName(e)}validateOn(e){this.controller.validateOn(e)}validateShortKey(e){this.controller.validateShortKey(e)}validateSuggestions(e){this.controller.validateSuggestions(e),this._filteredSuggestions=e}validateRequired(e){this.controller.validateRequired(e)}validateSyncValueBySelector(e){this.controller.validateSyncValueBySelector(e)}validateTouched(e){this.controller.validateTouched(e)}validateValue(e){this.controller.validateValue(e),this.controller.setFormAssociatedValue(e)}componentWillLoad(){this.refSuggestions=[],this._touched=!0===this._touched,this.controller.componentWillLoad(),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener((e=>this.state._hasValue=!!e)),this._filteredSuggestions=this.state._suggestions}handleMouseEvent(){this.blockSuggestionMouseOver=!1}handleFocusOut(){setTimeout((()=>{var e;(null===(e=this.host)||void 0===e?void 0:e.contains(document.activeElement))||this.onBlur()}),0)}handleWindowBlur(){this.onBlur()}onBlur(){var e;this._hasOpened=!1,this._isOpen&&(this._isOpen=!this._isOpen,null===(e=this.refInput)||void 0===e||e.focus())}onChange(e){this.controller.onFacade.onChange(e),this.controller.setFormAssociatedValue(this.state._value)}static get delegatesFocus(){return!0}get host(){return this}static get watchers(){return{_placeholder:["validatePlaceholder"],_accessKey:["validateAccessKey"],_disabled:["validateDisabled"],_hideMsg:["validateHideMsg"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_msg:["validateMsg"],_name:["validateName"],_on:["validateOn"],_shortKey:["validateShortKey"],_suggestions:["validateSuggestions"],_required:["validateRequired"],_syncValueBySelector:["validateSyncValueBySelector"],_touched:["validateTouched"],_value:["validateValue"]}}static get style(){return{default:KolComboboxDefaultStyle0}}},[49,"kol-combobox",{_accessKey:[1,"_access-key"],_placeholder:[1],_disabled:[4],_hideMsg:[1540,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_id:[1],_label:[1],_msg:[1],_name:[1],_on:[16],_suggestions:[1],_required:[4],_shortKey:[1,"_short-key"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1537],blockSuggestionMouseOver:[32],_isOpen:[32],_filteredSuggestions:[32],_hasOpened:[32],state:[32],inputHasFocus:[32],getValue:[64],kolFocus:[64]},[[0,"keydown","handleKeyDown"],[8,"click","handleWindowClick"],[1,"mousemove","handleMouseEvent"],[8,"focusout","handleFocusOut"],[8,"blur","handleWindowBlur"]],{_placeholder:["validatePlaceholder"],_accessKey:["validateAccessKey"],_disabled:["validateDisabled"],_hideMsg:["validateHideMsg"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_msg:["validateMsg"],_name:["validateName"],_on:["validateOn"],_shortKey:["validateShortKey"],_suggestions:["validateSuggestions"],_required:["validateRequired"],_syncValueBySelector:["validateSyncValueBySelector"],_touched:["validateTouched"],_value:["validateValue"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-combobox"].forEach((e=>{if("kol-combobox"===e)customElements.get(e)||customElements.define(e,KolCombobox$1)}))}const KolCombobox=KolCombobox$1,defineCustomElement=defineCustomElement$1;export{KolCombobox,defineCustomElement};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{j as setState}from"./index2.js";import{d as dispatchDomEvent,K as KolEvent}from"./events.js";import{c as clsx}from"./clsx.js";import{a as validateAlign}from"./align.js";import{v as validateLabel}from"./label.js";import{v as validateOpen}from"./open.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%;\n /* 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 .badge-text-hint {\n background-color: lightgray;\n color: black;\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 .kol-drawer {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-drawer__dialog {\n padding: 0;\n border: none;\n }\n .kol-drawer__wrapper {\n position: fixed;\n width: auto;\n overflow: auto;\n background-color: white;\n }\n .kol-drawer__wrapper--left {\n top: 0;\n left: 0;\n height: 100vh;\n max-height: 100%;\n }\n .kol-drawer__wrapper--left .kol-drawer__content {\n height: 100%;\n }\n .kol-drawer__wrapper--right {\n top: 0;\n right: 0;\n height: 100vh;\n max-height: 100%;\n }\n .kol-drawer__wrapper--right .kol-drawer__content {\n height: 100%;\n }\n .kol-drawer__wrapper--top {\n left: 0;\n top: 0;\n width: 100vw;\n max-width: 100%;\n }\n .kol-drawer__wrapper--top .kol-drawer__content {\n width: 100%;\n }\n .kol-drawer__wrapper--bottom {\n left: 0;\n bottom: 0;\n width: 100vw;\n max-width: 100%;\n }\n .kol-drawer__wrapper--bottom .kol-drawer__content {\n width: 100%;\n }\n .kol-drawer__content {\n position: relative;\n padding: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n}",KolDrawerDefaultStyle0=defaultStyleCss,KolDrawer$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.getWrapperRef=e=>this.dialogWrapperElement=e,this.getRef=e=>{this.dialogElement=e,setTimeout((()=>{this.openOrCloseBasedOnState()}))},this._open=void 0,this._align=void 0,this._label=void 0,this._on=void 0,this.state={_label:"",_open:!1,_align:"left"}}async open(){var e;this.state=Object.assign(Object.assign({},this.state),{_open:!0}),null===(e=this.dialogElement)||void 0===e||e.showModal()}async close(){this.state=Object.assign(Object.assign({},this.state),{_open:!1});const e=this.dialogWrapperElement;if(!e)return;"none"===window.getComputedStyle(e).animationName&&this.handleCloseDialog()}renderDialogContent(){const e=this.state._align;return h("div",{ref:this.getWrapperRef,class:clsx("kol-drawer__wrapper",`kol-drawer__wrapper--${e}`,{"kol-drawer__wrapper--open":this.state._open,"kol-drawer__wrapper--is-closing":!1===this.state._open}),"aria-label":this.state._label},h("div",{class:"kol-drawer__content"},h("slot",null)))}render(){return h(Host,{key:"4e33d8dec59c5c93cab94c35812db4fce6bf84c3",class:"kol-drawer"},h("dialog",{key:"8e5db5cc7ee900ffba6f5cd5dafafbee2dc7636c",class:"kol-drawer__dialog",ref:this.getRef},this.renderDialogContent()))}validateLabel(e){validateLabel(this,e,{required:!0})}validateAlign(e){validateAlign(this,e)}validateOpen(e){"boolean"==typeof e&&(validateOpen(this,e),this.dialogElement&&this.openOrCloseBasedOnState())}async openOrCloseBasedOnState(){this.state._open?await this.open():await this.close()}validateOn(e){if("object"==typeof e&&null!==e){const n={};"function"==typeof e.onClose&&(n.onClose=e.onClose),setState(this,"_on",n)}}handleCloseDialog(){var e,n,t;null===(e=this.dialogElement)||void 0===e||e.close(),null===(t=null===(n=this._on)||void 0===n?void 0:n.onClose)||void 0===t||t.call(n),this.host&&dispatchDomEvent(this.host,KolEvent.close)}handleClose(){(async()=>{await this.close(),this.handleCloseDialog()})()}handleAnimationEnd(e){e.animationName.includes("slideOut")&&this.handleCloseDialog()}componentDidLoad(){var e,n;null===(e=this.dialogElement)||void 0===e||e.addEventListener("animationend",this.handleAnimationEnd.bind(this)),null===(n=this.dialogElement)||void 0===n||n.addEventListener("close",this.handleClose.bind(this))}disconnectedCallback(){var e,n;null===(e=this.dialogElement)||void 0===e||e.removeEventListener("animationend",this.handleAnimationEnd.bind(this)),null===(n=this.dialogElement)||void 0===n||n.removeEventListener("close",this.handleClose.bind(this))}componentWillLoad(){this.validateLabel(this._label),this.validateOpen(this._open),this.validateAlign(this._align),this.validateOn(this._on)}get host(){return this}static get watchers(){return{_label:["validateLabel"],_align:["validateAlign"],_open:["validateOpen"],_on:["validateOn"]}}static get style(){return{default:KolDrawerDefaultStyle0}}},[33,"kol-drawer",{_open:[4],_align:[1],_label:[1],_on:[16],state:[32],open:[64],close:[64]},void 0,{_label:["validateLabel"],_align:["validateAlign"],_open:["validateOpen"],_on:["validateOn"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-drawer"].forEach((e=>{if("kol-drawer"===e)customElements.get(e)||customElements.define(e,KolDrawer$1)}))}const KolDrawer=KolDrawer$1,defineCustomElement=defineCustomElement$1;export{KolDrawer,defineCustomElement};
4
+ import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{k as setState}from"./index2.js";import{d as dispatchDomEvent,K as KolEvent}from"./events.js";import{c as clsx}from"./clsx.js";import{a as validateAlign}from"./align.js";import{v as validateLabel}from"./label.js";import{v as validateOpen}from"./open.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%;\n /* 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 .badge-text-hint {\n background-color: lightgray;\n color: black;\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 .kol-drawer {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-drawer__dialog {\n padding: 0;\n border: none;\n }\n .kol-drawer__wrapper {\n position: fixed;\n width: auto;\n overflow: auto;\n background-color: white;\n }\n .kol-drawer__wrapper--left {\n top: 0;\n left: 0;\n height: 100vh;\n max-height: 100%;\n }\n .kol-drawer__wrapper--left .kol-drawer__content {\n height: 100%;\n }\n .kol-drawer__wrapper--right {\n top: 0;\n right: 0;\n height: 100vh;\n max-height: 100%;\n }\n .kol-drawer__wrapper--right .kol-drawer__content {\n height: 100%;\n }\n .kol-drawer__wrapper--top {\n left: 0;\n top: 0;\n width: 100vw;\n max-width: 100%;\n }\n .kol-drawer__wrapper--top .kol-drawer__content {\n width: 100%;\n }\n .kol-drawer__wrapper--bottom {\n left: 0;\n bottom: 0;\n width: 100vw;\n max-width: 100%;\n }\n .kol-drawer__wrapper--bottom .kol-drawer__content {\n width: 100%;\n }\n .kol-drawer__content {\n position: relative;\n padding: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n}",KolDrawerDefaultStyle0=defaultStyleCss,KolDrawer$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.getWrapperRef=e=>this.dialogWrapperElement=e,this.getRef=e=>{this.dialogElement=e,setTimeout((()=>{this.openOrCloseBasedOnState()}))},this._open=void 0,this._align=void 0,this._label=void 0,this._on=void 0,this.state={_label:"",_open:!1,_align:"left"}}async open(){var e;this.state=Object.assign(Object.assign({},this.state),{_open:!0}),null===(e=this.dialogElement)||void 0===e||e.showModal()}async close(){this.state=Object.assign(Object.assign({},this.state),{_open:!1});const e=this.dialogWrapperElement;if(!e)return;"none"===window.getComputedStyle(e).animationName&&this.handleCloseDialog()}renderDialogContent(){const e=this.state._align;return h("div",{ref:this.getWrapperRef,class:clsx("kol-drawer__wrapper",`kol-drawer__wrapper--${e}`,{"kol-drawer__wrapper--open":this.state._open,"kol-drawer__wrapper--is-closing":!1===this.state._open}),"aria-label":this.state._label},h("div",{class:"kol-drawer__content"},h("slot",null)))}render(){return h(Host,{key:"4e33d8dec59c5c93cab94c35812db4fce6bf84c3",class:"kol-drawer"},h("dialog",{key:"8e5db5cc7ee900ffba6f5cd5dafafbee2dc7636c",class:"kol-drawer__dialog",ref:this.getRef},this.renderDialogContent()))}validateLabel(e){validateLabel(this,e,{required:!0})}validateAlign(e){validateAlign(this,e)}validateOpen(e){"boolean"==typeof e&&(validateOpen(this,e),this.dialogElement&&this.openOrCloseBasedOnState())}async openOrCloseBasedOnState(){this.state._open?await this.open():await this.close()}validateOn(e){if("object"==typeof e&&null!==e){const n={};"function"==typeof e.onClose&&(n.onClose=e.onClose),setState(this,"_on",n)}}handleCloseDialog(){var e,n,t;null===(e=this.dialogElement)||void 0===e||e.close(),null===(t=null===(n=this._on)||void 0===n?void 0:n.onClose)||void 0===t||t.call(n),this.host&&dispatchDomEvent(this.host,KolEvent.close)}handleClose(){(async()=>{await this.close(),this.handleCloseDialog()})()}handleAnimationEnd(e){e.animationName.includes("slideOut")&&this.handleCloseDialog()}componentDidLoad(){var e,n;null===(e=this.dialogElement)||void 0===e||e.addEventListener("animationend",this.handleAnimationEnd.bind(this)),null===(n=this.dialogElement)||void 0===n||n.addEventListener("close",this.handleClose.bind(this))}disconnectedCallback(){var e,n;null===(e=this.dialogElement)||void 0===e||e.removeEventListener("animationend",this.handleAnimationEnd.bind(this)),null===(n=this.dialogElement)||void 0===n||n.removeEventListener("close",this.handleClose.bind(this))}componentWillLoad(){this.validateLabel(this._label),this.validateOpen(this._open),this.validateAlign(this._align),this.validateOn(this._on)}get host(){return this}static get watchers(){return{_label:["validateLabel"],_align:["validateAlign"],_open:["validateOpen"],_on:["validateOn"]}}static get style(){return{default:KolDrawerDefaultStyle0}}},[33,"kol-drawer",{_open:[4],_align:[1],_label:[1],_on:[16],state:[32],open:[64],close:[64]},void 0,{_label:["validateLabel"],_align:["validateAlign"],_open:["validateOpen"],_on:["validateOn"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-drawer"].forEach((e=>{if("kol-drawer"===e)customElements.get(e)||customElements.define(e,KolDrawer$1)}))}const KolDrawer=KolDrawer$1,defineCustomElement=defineCustomElement$1;export{KolDrawer,defineCustomElement};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{w as watchValidator,h as watchBoolean,k as watchString}from"./index2.js";import{t as translate}from"./i18n2.js";import{e as KolLinkWcTag}from"./component-names.js";import{K as KolAlertFc}from"./Alert.js";import{d as dispatchDomEvent,K as KolEvent}from"./events.js";const validateErrorList=(n,e)=>{watchValidator(n,"errorList",(n=>Array.isArray(n)&&void 0===n.find((n=>!("string"==typeof n||"function"==typeof n)))),new Set(["string","function"]),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%;\n /* 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 .badge-text-hint {\n background-color: lightgray;\n color: black;\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 display: block;\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 @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 }\n @layer kol-component {\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n place-items: center;\n display: flex;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n }\n .kol-form {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n}",KolFormDefaultStyle0=defaultStyleCss,KolForm$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.onSubmit=n=>{var e,t;n.preventDefault(),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onSubmit)&&(null===(t=this.state._on)||void 0===t||t.onSubmit(n)),this.host&&dispatchDomEvent(this.host,KolEvent.submit)},this.onReset=n=>{var e,t;n.preventDefault(),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onReset)&&(null===(t=this.state._on)||void 0===t||t.onReset(n)),this.host&&dispatchDomEvent(this.host,KolEvent.reset)},this.handleLinkClick=n=>{const e=document.querySelector(n);e&&"function"==typeof e.focus&&(e.scrollIntoView({behavior:"smooth"}),e.focus())},this.setBlockElement=n=>this.errorListBlock=n,this.setFirstLinkElement=n=>this.errorListFirstLink=n,this._on=void 0,this._requiredText=!0,this._errorList=void 0,this.state={}}renderErrorList(n){return h(KolAlertFc,{class:"kol-form__alert",ref:this.setBlockElement,type:"error",variant:"card",label:translate("kol-error-list-message")},h("nav",{"aria-label":translate("kol-error-list")},h("ul",null,null==n?void 0:n.map(((n,e)=>h("li",{key:e},h(KolLinkWcTag,{class:"kol-form__link",_href:"",_label:n.message,_on:{onClick:"string"==typeof n.selector?()=>this.handleLinkClick(String(n.selector)):n.selector},ref:0===e?this.setFirstLinkElement:void 0})))))))}renderFormElement(){return h("form",{class:"kol-form",method:"post",onSubmit:this.onSubmit,onReset:this.onReset,autoComplete:"off",noValidate:!0},!0===this.state._requiredText?h("p",null,h("div",{class:"kol-form__mandatory-fields-hint"},translate("kol-form-description"))):"string"==typeof this.state._requiredText&&this.state._requiredText.length>0?h("p",null,h("div",{class:"kol-form__mandatory-fields-hint"},this.state._requiredText)):null,h("slot",null))}render(){const n=Array.isArray(this._errorList)&&this._errorList.length>0;return h(Host,{key:"3cfeeb7596783c154fadf43a4646dcd74070a920"},n&&this.renderErrorList(this._errorList),this.renderFormElement())}scrollToErrorList(){var n;null===(n=this.errorListBlock)||void 0===n||n.scrollIntoView({behavior:"smooth",block:"start"}),setTimeout((()=>{var n,e;null===(e=null===(n=this.errorListFirstLink)||void 0===n?void 0:n.querySelector("a"))||void 0===e||e.focus()}),250)}async focusErrorList(){return this.scrollToErrorList(),Promise.resolve()}validateOn(n){"object"==typeof n&&null!==n&&(this.state=Object.assign(Object.assign({},this.state),{_on:n}))}validateRequiredText(n){"boolean"==typeof n?watchBoolean(this,"_requiredText",n):watchString(this,"_requiredText",n)}validateErrorList(n){validateErrorList(this,n)}componentWillLoad(){this.validateOn(this._on),this.validateRequiredText(this._requiredText),this.validateErrorList(this._errorList)}get host(){return this}static get watchers(){return{_on:["validateOn"],_requiredText:["validateRequiredText"],_errorList:["validateErrorList"]}}static get style(){return{default:KolFormDefaultStyle0}}},[33,"kol-form",{_on:[16],_requiredText:[8,"_required-text"],_errorList:[16],state:[32],focusErrorList:[64]},void 0,{_on:["validateOn"],_requiredText:["validateRequiredText"],_errorList:["validateErrorList"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-form"].forEach((n=>{if("kol-form"===n)customElements.get(n)||customElements.define(n,KolForm$1)}))}const KolForm=KolForm$1,defineCustomElement=defineCustomElement$1;export{KolForm,defineCustomElement};
4
+ import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{w as watchValidator,i as watchBoolean,l as watchString}from"./index2.js";import{t as translate}from"./i18n2.js";import{e as KolLinkWcTag}from"./component-names.js";import{K as KolAlertFc}from"./Alert.js";import{d as dispatchDomEvent,K as KolEvent}from"./events.js";const validateErrorList=(n,e)=>{watchValidator(n,"errorList",(n=>Array.isArray(n)&&void 0===n.find((n=>!("string"==typeof n||"function"==typeof n)))),new Set(["string","function"]),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%;\n /* 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 .badge-text-hint {\n background-color: lightgray;\n color: black;\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 display: block;\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 @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 }\n @layer kol-component {\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n place-items: center;\n display: flex;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n }\n .kol-form {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n}",KolFormDefaultStyle0=defaultStyleCss,KolForm$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.onSubmit=n=>{var e,t;n.preventDefault(),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onSubmit)&&(null===(t=this.state._on)||void 0===t||t.onSubmit(n)),this.host&&dispatchDomEvent(this.host,KolEvent.submit)},this.onReset=n=>{var e,t;n.preventDefault(),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onReset)&&(null===(t=this.state._on)||void 0===t||t.onReset(n)),this.host&&dispatchDomEvent(this.host,KolEvent.reset)},this.handleLinkClick=n=>{const e=document.querySelector(n);e&&"function"==typeof e.focus&&(e.scrollIntoView({behavior:"smooth"}),e.focus())},this.setBlockElement=n=>this.errorListBlock=n,this.setFirstLinkElement=n=>this.errorListFirstLink=n,this._on=void 0,this._requiredText=!0,this._errorList=void 0,this.state={}}renderErrorList(n){return h(KolAlertFc,{class:"kol-form__alert",ref:this.setBlockElement,type:"error",variant:"card",label:translate("kol-error-list-message")},h("nav",{"aria-label":translate("kol-error-list")},h("ul",null,null==n?void 0:n.map(((n,e)=>h("li",{key:e},h(KolLinkWcTag,{class:"kol-form__link",_href:"",_label:n.message,_on:{onClick:"string"==typeof n.selector?()=>this.handleLinkClick(String(n.selector)):n.selector},ref:0===e?this.setFirstLinkElement:void 0})))))))}renderFormElement(){return h("form",{class:"kol-form",method:"post",onSubmit:this.onSubmit,onReset:this.onReset,autoComplete:"off",noValidate:!0},!0===this.state._requiredText?h("p",null,h("div",{class:"kol-form__mandatory-fields-hint"},translate("kol-form-description"))):"string"==typeof this.state._requiredText&&this.state._requiredText.length>0?h("p",null,h("div",{class:"kol-form__mandatory-fields-hint"},this.state._requiredText)):null,h("slot",null))}render(){const n=Array.isArray(this._errorList)&&this._errorList.length>0;return h(Host,{key:"3cfeeb7596783c154fadf43a4646dcd74070a920"},n&&this.renderErrorList(this._errorList),this.renderFormElement())}scrollToErrorList(){var n;null===(n=this.errorListBlock)||void 0===n||n.scrollIntoView({behavior:"smooth",block:"start"}),setTimeout((()=>{var n,e;null===(e=null===(n=this.errorListFirstLink)||void 0===n?void 0:n.querySelector("a"))||void 0===e||e.focus()}),250)}async focusErrorList(){return this.scrollToErrorList(),Promise.resolve()}validateOn(n){"object"==typeof n&&null!==n&&(this.state=Object.assign(Object.assign({},this.state),{_on:n}))}validateRequiredText(n){"boolean"==typeof n?watchBoolean(this,"_requiredText",n):watchString(this,"_requiredText",n)}validateErrorList(n){validateErrorList(this,n)}componentWillLoad(){this.validateOn(this._on),this.validateRequiredText(this._requiredText),this.validateErrorList(this._errorList)}get host(){return this}static get watchers(){return{_on:["validateOn"],_requiredText:["validateRequiredText"],_errorList:["validateErrorList"]}}static get style(){return{default:KolFormDefaultStyle0}}},[33,"kol-form",{_on:[16],_requiredText:[8,"_required-text"],_errorList:[16],state:[32],focusErrorList:[64]},void 0,{_on:["validateOn"],_requiredText:["validateRequiredText"],_errorList:["validateErrorList"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-form"].forEach((n=>{if("kol-form"===n)customElements.get(n)||customElements.define(n,KolForm$1)}))}const KolForm=KolForm$1,defineCustomElement=defineCustomElement$1;export{KolForm,defineCustomElement};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{proxyCustomElement,HTMLElement,h}from"@stencil/core/internal/client";import{w as watchValidator,k as watchString}from"./index2.js";import"./i18n2.js";import"./bem.js";import{K as KolHeadingFc}from"./Heading.js";import"./markdown.js";import{w as watchHeadingLevel}from"./validation.js";import{a as validateLabelWithExpertSlot}from"./label.js";const headingVariantPropTypeOptions=["h1","h2","h3","h4","h5","h6","strong"],validateHeadingVariant=(e,n)=>{watchValidator(e,"_variant",(e=>"string"==typeof e&&headingVariantPropTypeOptions.includes(e)),new Set([`KoliBriHeadingVariant {${headingVariantPropTypeOptions.join(", ")}`]),n)},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%;\n /* 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 .badge-text-hint {\n background-color: lightgray;\n color: black;\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 .kol-headline {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n}",KolHeadingDefaultStyle0=defaultStyleCss,KolHeading$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this._label=void 0,this._level=0,this._secondaryHeadline=void 0,this._variant=void 0,this.state={_label:"",_level:0}}validateLabel(e){validateLabelWithExpertSlot(this,e)}validateLevel(e){watchHeadingLevel(this,e)}validateSecondaryHeadline(e){watchString(this,"_secondaryHeadline",e)}validateVariant(e){validateHeadingVariant(this,e)}componentWillLoad(){this.validateLabel(this._label),this.validateLevel(this._level),this.validateSecondaryHeadline(this._secondaryHeadline),this.validateVariant(this._variant)}render(){const{_secondaryHeadline:e,_label:n,_level:t,_variant:a}=this.state;return h(KolHeadingFc,{key:"d1dd0a780ae7d78f46ef8e084617a1bb656d5af0",secondaryHeadline:e,level:t,variant:a},n,h("slot",{key:"d00d1f029000cbda86b3b64ab461a06e449837ba",name:"expert",slot:"expert"}))}static get watchers(){return{_label:["validateLabel"],_level:["validateLevel"],_secondaryHeadline:["validateSecondaryHeadline"],_variant:["validateVariant"]}}static get style(){return{default:KolHeadingDefaultStyle0}}},[33,"kol-heading",{_label:[1],_level:[2],_secondaryHeadline:[1,"_secondary-headline"],_variant:[1],state:[32]},void 0,{_label:["validateLabel"],_level:["validateLevel"],_secondaryHeadline:["validateSecondaryHeadline"],_variant:["validateVariant"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-heading"].forEach((e=>{if("kol-heading"===e)customElements.get(e)||customElements.define(e,KolHeading$1)}))}const KolHeading=KolHeading$1,defineCustomElement=defineCustomElement$1;export{KolHeading,defineCustomElement};
4
+ import{proxyCustomElement,HTMLElement,h}from"@stencil/core/internal/client";import{l as watchString}from"./index2.js";import"./i18n2.js";import"./bem.js";import{K as KolHeadingFc}from"./Heading.js";import"./markdown.js";import{w as watchHeadingLevel}from"./validation.js";import{a as validateLabelWithExpertSlot}from"./label.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%;\n /* 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 .badge-text-hint {\n background-color: lightgray;\n color: black;\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 .kol-headline {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n}",KolHeadingDefaultStyle0=defaultStyleCss,KolHeading$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this._label=void 0,this._level=0,this._secondaryHeadline=void 0,this.state={_label:"",_level:0}}validateLabel(e){validateLabelWithExpertSlot(this,e)}validateLevel(e){watchHeadingLevel(this,e)}validateSecondaryHeadline(e){watchString(this,"_secondaryHeadline",e)}componentWillLoad(){this.validateLabel(this._label),this.validateLevel(this._level),this.validateSecondaryHeadline(this._secondaryHeadline)}render(){const{_secondaryHeadline:e,_label:n,_level:t}=this.state;return h(KolHeadingFc,{key:"4acb20dadb12cf9f57642b5a3f686e48a69b7c3c",secondaryHeadline:e,level:t},n,h("slot",{key:"1b27358b50f7dc744d5a9d06321d63218c524e22",name:"expert",slot:"expert"}))}static get watchers(){return{_label:["validateLabel"],_level:["validateLevel"],_secondaryHeadline:["validateSecondaryHeadline"]}}static get style(){return{default:KolHeadingDefaultStyle0}}},[33,"kol-heading",{_label:[1],_level:[2],_secondaryHeadline:[1,"_secondary-headline"],state:[32]},void 0,{_label:["validateLabel"],_level:["validateLevel"],_secondaryHeadline:["validateSecondaryHeadline"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-heading"].forEach((e=>{if("kol-heading"===e)customElements.get(e)||customElements.define(e,KolHeading$1)}))}const KolHeading=KolHeading$1,defineCustomElement=defineCustomElement$1;export{KolHeading,defineCustomElement};
@@ -1 +1 @@
1
- {"file":"kol-heading.js","mappings":";;;;;;;;;;;;AAIA,MAAM,6BAA6B,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,CAAU,CAAC;AAWvF,MAAM,sBAAsB,GAAG,CAAC,SAAoC,EAAE,KAA8B;IAC1G,cAAc,CACb,SAAS,EACT,UAAU,EACV,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,6BAA6B,CAAC,QAAQ,CAAC,KAAK,CAAC,EACrF,IAAI,GAAG,CAAC,CAAC,0BAA0B,6BAA6B,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EAC/E,KAAK,CACL,CAAC;AACH,CAAC;;ACvBD,MAAM,eAAe,GAAG,gwIAAgwI,CAAC;AACzxI,gCAAe,eAAe;;MCiBjBA,YAAU;;;;;;sBASiB,CAAC;;;qBAYD;YACtC,MAAM,EAAE,EAAE;YACV,MAAM,EAAE,CAAC;SACT;;IAGM,aAAa,CAAC,KAAmC;QACvD,2BAA2B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;KACzC;IAGM,aAAa,CAAC,KAAoB;QACxC,iBAAiB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;KAC/B;IAGM,yBAAyB,CAAC,KAAc;QAC9C,WAAW,CAAC,IAAI,EAAE,oBAAoB,EAAE,KAAK,CAAC,CAAC;KAC/C;IAGM,eAAe,CAAC,KAA8B;QACpD,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;KACpC;IAEM,iBAAiB;QACvB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;QACxD,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;KACpC;IAEM,MAAM;QACZ,MAAM,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAEpE,QACC,EAAC,YAAY,qDAAC,iBAAiB,EAAE,kBAAkB,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,IACnF,MAAM,EACP,6DAAM,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,GAAG,CACtB,EACd;KACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["KolHeading"],"sources":["src/schema/props/heading-variant.ts","src/components/heading/style.scss?tag=kol-heading&mode=default&encapsulation=shadow","src/components/heading/shadow.tsx"],"sourcesContent":["/* types */\nimport type { Generic } from 'adopted-style-sheets';\nimport { watchValidator } from '../utils';\n\nconst headingVariantPropTypeOptions = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'strong'] as const;\nexport type HeadingVariantPropType = (typeof headingVariantPropTypeOptions)[number];\n\n/**\n * Defines which variant should be used for presentation.\n */\nexport type PropHeadingVariant = {\n\tvariant: HeadingVariantPropType;\n};\n\n/* validator */\nexport const validateHeadingVariant = (component: Generic.Element.Component, value?: HeadingVariantPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t`_variant`,\n\t\t(value) => typeof value === 'string' && headingVariantPropTypeOptions.includes(value),\n\t\tnew Set([`KoliBriHeadingVariant {${headingVariantPropTypeOptions.join(', ')}`]),\n\t\tvalue,\n\t);\n};\n","@use '../@shared/mixins' as *;\n@use '../../styles/global' as *;\n\n@layer kol-component {\n\t.kol-headline {\n\t\tfont-size: rem(16);\n\t}\n}\n","import { Component, h, Prop, State, Watch } from '@stencil/core';\nimport type { JSX } from '@stencil/core';\nimport type { HeadingAPI, HeadingLevel, HeadingStates, HeadingVariantPropType, LabelWithExpertSlotPropType } from '../../schema';\nimport { validateHeadingVariant, validateLabelWithExpertSlot, watchString } from '../../schema';\nimport { KolHeadingFc } from '../../functional-components';\nimport { watchHeadingLevel } from './validation';\n\n/**\n *\n * @slot - Inhalt der Überschrift.\n */\n@Component({\n\ttag: 'kol-heading',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolHeading implements HeadingAPI {\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label!: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Defines which H-level from 1-6 the heading has. 0 specifies no heading and is shown as bold text.\n\t */\n\t@Prop() public _level?: HeadingLevel = 0;\n\n\t/**\n\t * Defines the text of the secondary headline.\n\t */\n\t@Prop() public _secondaryHeadline?: string;\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: HeadingVariantPropType;\n\n\t@State() public state: HeadingStates = {\n\t\t_label: '', // ⚠ required\n\t\t_level: 0,\n\t};\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelWithExpertSlotPropType): void {\n\t\tvalidateLabelWithExpertSlot(this, value);\n\t}\n\n\t@Watch('_level')\n\tpublic validateLevel(value?: HeadingLevel): void {\n\t\twatchHeadingLevel(this, value);\n\t}\n\n\t@Watch('_secondaryHeadline')\n\tpublic validateSecondaryHeadline(value?: string): void {\n\t\twatchString(this, '_secondaryHeadline', value);\n\t}\n\n\t@Watch('_variant')\n\tpublic validateVariant(value?: HeadingVariantPropType): void {\n\t\tvalidateHeadingVariant(this, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateLevel(this._level);\n\t\tthis.validateSecondaryHeadline(this._secondaryHeadline);\n\t\tthis.validateVariant(this._variant);\n\t}\n\n\tpublic render(): JSX.Element {\n\t\tconst { _secondaryHeadline, _label, _level, _variant } = this.state;\n\n\t\treturn (\n\t\t\t<KolHeadingFc secondaryHeadline={_secondaryHeadline} level={_level} variant={_variant}>\n\t\t\t\t{_label}\n\t\t\t\t<slot name=\"expert\" slot=\"expert\" />\n\t\t\t</KolHeadingFc>\n\t\t);\n\t}\n}\n"],"version":3}
1
+ {"file":"kol-heading.js","mappings":";;;;;;;;;;;;AAAA,MAAM,eAAe,GAAG,gwIAAgwI,CAAC;AACzxI,gCAAe,eAAe;;MCiBjBA,YAAU;;;;;;sBASiB,CAAC;;qBAOD;YACtC,MAAM,EAAE,EAAE;YACV,MAAM,EAAE,CAAC;SACT;;IAGM,aAAa,CAAC,KAAmC;QACvD,2BAA2B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;KACzC;IAGM,aAAa,CAAC,KAAoB;QACxC,iBAAiB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;KAC/B;IAGM,yBAAyB,CAAC,KAAc;QAC9C,WAAW,CAAC,IAAI,EAAE,oBAAoB,EAAE,KAAK,CAAC,CAAC;KAC/C;IAEM,iBAAiB;QACvB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;KACxD;IAEM,MAAM;QACZ,MAAM,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAE1D,QACC,EAAC,YAAY,qDAAC,iBAAiB,EAAE,kBAAkB,EAAE,KAAK,EAAE,MAAM,IAChE,MAAM,EACP,6DAAM,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,GAAG,CACtB,EACd;KACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["KolHeading"],"sources":["src/components/heading/style.scss?tag=kol-heading&mode=default&encapsulation=shadow","src/components/heading/shadow.tsx"],"sourcesContent":["@use '../@shared/mixins' as *;\n@use '../../styles/global' as *;\n\n@layer kol-component {\n\t.kol-headline {\n\t\tfont-size: rem(16);\n\t}\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, h, Prop, State, Watch } from '@stencil/core';\nimport type { HeadingAPI, HeadingLevel, HeadingStates, LabelWithExpertSlotPropType } from '../../schema';\nimport { validateLabelWithExpertSlot, watchString } from '../../schema';\nimport { KolHeadingFc } from '../../functional-components';\nimport { watchHeadingLevel } from './validation';\n\n/**\n *\n * @slot - Inhalt der Überschrift.\n */\n@Component({\n\ttag: 'kol-heading',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolHeading implements HeadingAPI {\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label!: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Defines which H-level from 1-6 the heading has. 0 specifies no heading and is shown as bold text.\n\t */\n\t@Prop() public _level?: HeadingLevel = 0;\n\n\t/**\n\t * Defines the text of the secondary headline.\n\t */\n\t@Prop() public _secondaryHeadline?: string;\n\n\t@State() public state: HeadingStates = {\n\t\t_label: '', // ⚠ required\n\t\t_level: 0,\n\t};\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelWithExpertSlotPropType): void {\n\t\tvalidateLabelWithExpertSlot(this, value);\n\t}\n\n\t@Watch('_level')\n\tpublic validateLevel(value?: HeadingLevel): void {\n\t\twatchHeadingLevel(this, value);\n\t}\n\n\t@Watch('_secondaryHeadline')\n\tpublic validateSecondaryHeadline(value?: string): void {\n\t\twatchString(this, '_secondaryHeadline', value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateLevel(this._level);\n\t\tthis.validateSecondaryHeadline(this._secondaryHeadline);\n\t}\n\n\tpublic render(): JSX.Element {\n\t\tconst { _secondaryHeadline, _label, _level } = this.state;\n\n\t\treturn (\n\t\t\t<KolHeadingFc secondaryHeadline={_secondaryHeadline} level={_level}>\n\t\t\t\t{_label}\n\t\t\t\t<slot name=\"expert\" slot=\"expert\" />\n\t\t\t</KolHeadingFc>\n\t\t);\n\t}\n}\n"],"version":3}