@public-ui/components 5.0.0-beta.1 → 5.0.0-beta.2

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 (969) hide show
  1. package/assets/kolicons/kolicons.eot +0 -0
  2. package/assets/kolicons/kolicons.ttf +0 -0
  3. package/assets/kolicons/kolicons.woff +0 -0
  4. package/assets/kolicons/kolicons.woff2 +0 -0
  5. package/assets/kolicons/style.css +6 -6
  6. package/custom-elements.json +9 -55
  7. package/dist/cjs/{Heading-C9osvqjY.js → Heading-o_m1bQbh.js} +7 -7
  8. package/dist/cjs/{access-and-short-key-D40HWCJe.js → access-and-short-key-BrLP4fF_.js} +2 -0
  9. package/dist/cjs/{api-U7I3XBPI.js → api-SFTkHR9W.js} +32 -34
  10. package/dist/cjs/{app-globals-DsADKGEe.js → app-globals-BVGzsN2O.js} +6 -5
  11. package/dist/cjs/{aria-labelledby-BRMgWRVp.js → aria-labelledby-CgJJS0K5.js} +2 -13
  12. package/dist/cjs/ariaCurrentService-aysGX58T.js +30 -0
  13. package/dist/cjs/{base-DCxbMk0f.js → base-4xLnw9ep.js} +17 -19
  14. package/dist/cjs/{base-l99dGLYo.js → base-DGpJZOXm.js} +67 -73
  15. package/dist/cjs/{base-DcN_YC72.js → base-DJhwvwdo.js} +13 -14
  16. package/dist/cjs/{base-CyqDmoZZ.js → base-DoujJ-Xz.js} +14 -15
  17. package/dist/cjs/{base-web-component-BnaxS2Z3.js → base-web-component-BgX5i_fc.js} +16 -19
  18. package/dist/cjs/{base-web-component-B6mwGD0m.js → base-web-component-DSCg1arP.js} +2 -1
  19. package/dist/cjs/{base-web-component-DxJ0hQ9u.js → base-web-component-nGb9E-GX.js} +17 -19
  20. package/dist/cjs/{behavior-BNyFQ_B5.js → behavior-CBwUdaXu.js} +10 -10
  21. package/dist/cjs/{behavior-CTaw4dj3.js → behavior-DhfuU2HF.js} +5 -5
  22. package/dist/cjs/{behavior-DrFJy0QC.js → behavior-S2U8skNd.js} +33 -33
  23. package/dist/cjs/{bem-registry-CyxrH26c.js → bem-registry-CMf1T2kb.js} +61 -15
  24. package/dist/cjs/bootstrap-C4GRmpTI.js +59 -0
  25. package/dist/cjs/{color-BW4t1Cif.js → color-BWamMCyw.js} +4 -4
  26. package/dist/cjs/{component-lmJOXuD6.js → component-BGIFlgKu.js} +8 -11
  27. package/dist/cjs/component-BM6eWMuC.js +177 -0
  28. package/dist/cjs/{component-Cvjqbxf4.js → component-CKc_-O64.js} +15 -18
  29. package/dist/cjs/{component-Cty_HlJR.js → component-CweSM_ze.js} +6 -5
  30. package/dist/cjs/{component-4OErV1Bg.js → component-DPCpVWBj.js} +11 -13
  31. package/dist/cjs/{component-DAQ1XSNA.js → component-DSlW2KVw.js} +6 -8
  32. package/dist/cjs/component-DTC3WbHR.js +52 -0
  33. package/dist/cjs/{component-DF5q9ssd.js → component-DUvRV4FE.js} +13 -14
  34. package/dist/cjs/component-SeQac11p.js +19 -0
  35. package/dist/cjs/component-names-CyEXMjv9.js +121 -0
  36. package/dist/cjs/{component-DtxKrISb.js → component-t6Upgw7f.js} +6 -7
  37. package/dist/cjs/{contrast-4mAdSLs0.js → contrast-CXinV5ii.js} +5 -5
  38. package/dist/cjs/{controller-tEyAFJN9.js → controller-D4usgPg-.js} +20 -20
  39. package/dist/cjs/{dev.utils-D5qh-RLT.js → dev.utils-glOxiW4E.js} +9 -10
  40. package/dist/cjs/{devtools-Dtv-Apvj.js → devtools-VDx5moKY.js} +24 -25
  41. package/dist/cjs/{disabled-jYcvcwjv.js → disabled-CZJO6fbW.js} +2 -1
  42. package/dist/cjs/{element-focus-CzkKMwtn.js → element-focus-IBv4yiNw.js} +1 -0
  43. package/dist/cjs/{element-interaction-BtYQAbhu.js → element-interaction-CvCJFwUh.js} +2 -1
  44. package/dist/cjs/{events-BJC5JJcU.js → events-fafEzzml.js} +2 -0
  45. package/dist/cjs/{field-control-Btb5zapE.js → field-control-xEw1WZFL.js} +12 -13
  46. package/dist/cjs/{group-Dg2gJze5.js → group-CMns8Vns.js} +8 -9
  47. package/dist/cjs/{has-closer-CvNa5gqv.js → has-closer-Cs7BCj4r.js} +2 -1
  48. package/dist/cjs/{href-BBhiVyPb.js → href-C93ktLo4.js} +2 -1
  49. package/dist/cjs/{i18n-BSWM5nea.js → i18n-DXYL9rIn.js} +11 -6
  50. package/dist/cjs/{i18n-BnOWw1MQ.js → i18n-YdI7_XKo.js} +3 -3
  51. package/dist/cjs/{id-D1VZsLkg.js → id-CtES_I0D.js} +2 -1
  52. package/dist/cjs/{index-BacpU-d0.js → index-B65pR1Ir.js} +1807 -61
  53. package/dist/cjs/index.cjs.js +20 -14
  54. package/dist/cjs/input-Bi8Zo8Bv.js +18 -0
  55. package/dist/cjs/{input-container-PaL4ZNf3.js → input-container-BErSDYvG.js} +17 -20
  56. package/dist/cjs/{item-CLnIJY4J.js → item-BHQRF4Sp.js} +9 -9
  57. package/dist/cjs/{item-CErU-EPA.js → item-BLhkAIub.js} +9 -9
  58. package/dist/cjs/{item-Cckqxc6T.js → item-BVHbqXo2.js} +56 -35
  59. package/dist/cjs/{item-CPxmIcoq.js → item-N9AmF46D.js} +16 -17
  60. package/dist/cjs/{item-pool-CY0WyGOL.js → item-pool-ecjkEvCG.js} +2 -0
  61. package/dist/cjs/{keyboard-Ca1I5RM2.js → keyboard-DHPlsLs0.js} +2 -0
  62. package/dist/cjs/kol-abbr.cjs.entry.js +12 -16
  63. package/dist/cjs/kol-accordion.cjs.entry.js +23 -25
  64. package/dist/cjs/kol-alert.cjs.entry.js +34 -36
  65. package/dist/cjs/kol-avatar.cjs.entry.js +19 -19
  66. package/dist/cjs/kol-badge.cjs.entry.js +34 -37
  67. package/dist/cjs/kol-breadcrumb.cjs.entry.js +39 -42
  68. package/dist/cjs/kol-button-link.cjs.entry.js +33 -35
  69. package/dist/cjs/kol-button.cjs.entry.js +33 -35
  70. package/dist/cjs/kol-card.cjs.entry.js +35 -38
  71. package/dist/cjs/kol-combobox.cjs.entry.js +52 -54
  72. package/dist/cjs/kol-details.cjs.entry.js +23 -25
  73. package/dist/cjs/kol-dialog.cjs.entry.js +38 -41
  74. package/dist/cjs/kol-drawer.cjs.entry.js +38 -41
  75. package/dist/cjs/kol-form.cjs.entry.js +32 -35
  76. package/dist/cjs/kol-heading.cjs.entry.js +17 -19
  77. package/dist/cjs/kol-icon.cjs.entry.js +19 -17
  78. package/dist/cjs/kol-image.cjs.entry.js +12 -14
  79. package/dist/cjs/kol-input-checkbox.cjs.entry.js +62 -63
  80. package/dist/cjs/kol-input-color.cjs.entry.js +51 -52
  81. package/dist/cjs/kol-input-date.cjs.entry.js +54 -56
  82. package/dist/cjs/kol-input-email.cjs.entry.js +54 -55
  83. package/dist/cjs/kol-input-file.cjs.entry.js +49 -50
  84. package/dist/cjs/kol-input-number.cjs.entry.js +56 -57
  85. package/dist/cjs/kol-input-password.cjs.entry.js +54 -55
  86. package/dist/cjs/kol-input-radio.cjs.entry.js +50 -53
  87. package/dist/cjs/kol-input-range.cjs.entry.js +48 -50
  88. package/dist/cjs/kol-input-text.cjs.entry.js +55 -56
  89. package/dist/cjs/kol-kolibri.cjs.entry.js +13 -16
  90. package/dist/cjs/kol-link-button.cjs.entry.js +34 -36
  91. package/dist/cjs/kol-link.cjs.entry.js +33 -35
  92. package/dist/cjs/kol-meter.cjs.entry.js +22 -25
  93. package/dist/cjs/kol-modal.cjs.entry.js +38 -41
  94. package/dist/cjs/kol-nav.cjs.entry.js +50 -53
  95. package/dist/cjs/kol-pagination.cjs.entry.js +55 -58
  96. package/dist/cjs/kol-popover-button.cjs.entry.js +34 -36
  97. package/dist/cjs/kol-progress.cjs.entry.js +22 -19
  98. package/dist/cjs/kol-quote.cjs.entry.js +13 -15
  99. package/dist/cjs/kol-select.cjs.entry.js +47 -49
  100. package/dist/cjs/kol-single-select.cjs.entry.js +59 -56
  101. package/dist/cjs/kol-skip-nav.cjs.entry.js +37 -40
  102. package/dist/cjs/kol-spin.cjs.entry.js +16 -19
  103. package/dist/cjs/kol-split-button.cjs.entry.js +39 -41
  104. package/dist/cjs/kol-table-stateful.cjs.entry.js +74 -75
  105. package/dist/cjs/kol-table-stateless.cjs.entry.js +54 -66
  106. package/dist/cjs/kol-tabs.cjs.entry.js +50 -56
  107. package/dist/cjs/kol-textarea.cjs.entry.js +55 -55
  108. package/dist/cjs/kol-toast-container.cjs.entry.js +24 -28
  109. package/dist/cjs/kol-toolbar.cjs.entry.js +57 -56
  110. package/dist/cjs/kol-tree-item.cjs.entry.js +38 -38
  111. package/dist/cjs/kol-tree.cjs.entry.js +35 -25
  112. package/dist/cjs/kol-version.cjs.entry.js +25 -28
  113. package/dist/cjs/kolibri.cjs.js +6 -5
  114. package/dist/cjs/{label-vVOiX4dC.js → label-0j3-2J3C.js} +4 -3
  115. package/dist/cjs/{label-hints-D6EBRW9T.js → label-hints-DEiM49uy.js} +4 -4
  116. package/dist/cjs/{label-lang-segment-CYlAqtUl.js → label-lang-segment-BBCLeyBy.js} +3 -2
  117. package/dist/cjs/{label-with-expert-slot-B9z4nqW1.js → label-with-expert-slot-D0wokf7-.js} +4 -3
  118. package/dist/cjs/{level-BAiEYu4U.js → level-xVivGv7t.js} +2 -1
  119. package/dist/cjs/{link-target-4AzB3I84.js → link-target-D9qpCovV.js} +2 -1
  120. package/dist/cjs/{links-CPNK7VZo.js → links-DlW9up_d.js} +3 -3
  121. package/dist/cjs/loader.cjs.js +5 -4
  122. package/dist/cjs/{multiple-B3ZpkzWu.js → multiple-DO-asa_4.js} +2 -1
  123. package/dist/cjs/{number-value-B2yoKlvx.js → number-value-BUKMKQvN.js} +2 -1
  124. package/dist/cjs/{open-CvoX_qxD.js → open-BVqlpoxd.js} +2 -1
  125. package/dist/cjs/{open-items-cache-B6hP2Aqy.js → open-items-cache-DuXVixiW.js} +2 -0
  126. package/dist/cjs/{options-z7FKffHh.js → options-Dg3zz7Wo.js} +2 -0
  127. package/dist/cjs/{options-B2pQC9w2.js → options-vneqbPL0.js} +3 -3
  128. package/dist/cjs/{orientation-u2cvwgBc.js → orientation-DL6G4K4r.js} +2 -1
  129. package/dist/cjs/{placeholder-C9Ngp2tQ.js → placeholder-C-ecB96f.js} +2 -1
  130. package/dist/cjs/{props-from-config-BQ2SOZlz.js → props-from-config-Bm6Pf2tK.js} +96 -16
  131. package/dist/cjs/{read-only-DfWF-Coi.js → read-only-D__auxXg.js} +2 -1
  132. package/dist/cjs/{required-CdXn16dq.js → required-DqW-WueJ.js} +2 -1
  133. package/dist/cjs/{resolve-props-B8kPPEMw.js → resolve-props-CjhxUwj-.js} +9 -9
  134. package/dist/cjs/{resolve-props-B5MED90T.js → resolve-props-DKYD6i56.js} +9 -10
  135. package/dist/cjs/{rows-Ca5ya9tG.js → rows-Z8UDqY9u.js} +2 -1
  136. package/dist/cjs/{scroll-lock-jojYHBR3.js → scroll-lock-DgqKifg3.js} +8 -7
  137. package/dist/cjs/shared-state-C2e8sL5f.js +16 -0
  138. package/dist/cjs/{smart-button-CB8qIzgQ.js → smart-button-C_S63qaB.js} +3 -3
  139. package/dist/cjs/{spell-check-DKRC8xbW.js → spell-check-CT0WE9tq.js} +2 -1
  140. package/dist/cjs/{src-C3NG0rLO.js → src-Bwu1rJi2.js} +2 -1
  141. package/dist/cjs/{step-CZNyTb2h.js → step-W8T4AA1l.js} +2 -1
  142. package/dist/cjs/{suggestions-BRclldK2.js → suggestions-C-tM7INY.js} +4 -4
  143. package/dist/cjs/{suggestions-CRyB_YCX.js → suggestions-DvPhi4lP.js} +3 -3
  144. package/dist/cjs/test-component.cjs.entry.js +3 -3
  145. package/dist/cjs/theme-store-CHGfvYB-.js +13 -0
  146. package/dist/cjs/{toggle-handler-DRPltZqQ.js → toggle-handler-DHEfrMM0.js} +13 -16
  147. package/dist/cjs/{tooltip-open-tracking-Ba0udJRU.js → tooltip-open-tracking-DaQFzT-b.js} +8 -5
  148. package/dist/cjs/{unique-nav-labels-CIAwid5V.js → unique-nav-labels-CpJcPNBO.js} +3 -3
  149. package/dist/cjs/{unit-bsoemclF.js → unit-CNVBdvOH.js} +2 -1
  150. package/dist/cjs/{validators-DuLdbf2D.js → validators-BM9XrnzJ.js} +4 -1
  151. package/dist/cjs/{value-string-DZ_FFaUt.js → value-string-DXRes-dR.js} +2 -1
  152. package/dist/cjs/{width-BklaRCqt.js → width-BAwXHART.js} +2 -1
  153. package/dist/collection/collection-manifest.json +1 -8
  154. package/dist/collection/components/abbr/component.js +2 -2
  155. package/dist/collection/components/abbr/style.css +21 -0
  156. package/dist/collection/components/accordion/component.js +2 -2
  157. package/dist/collection/components/accordion/style.css +23 -2
  158. package/dist/collection/components/alert/component.js +6 -4
  159. package/dist/collection/components/alert/style.css +23 -2
  160. package/dist/collection/components/avatar/component.js +2 -2
  161. package/dist/collection/components/avatar/style.css +21 -0
  162. package/dist/collection/components/badge/component.js +2 -2
  163. package/dist/collection/components/badge/style.css +23 -2
  164. package/dist/collection/components/breadcrumb/component.js +2 -2
  165. package/dist/collection/components/breadcrumb/style.css +23 -2
  166. package/dist/collection/components/button/component.js +1 -1
  167. package/dist/collection/components/button/style.css +23 -2
  168. package/dist/collection/components/button-link/component.js +1 -1
  169. package/dist/collection/components/button-link/style.css +23 -2
  170. package/dist/collection/components/card/component.js +2 -2
  171. package/dist/collection/components/card/style.css +26 -2
  172. package/dist/collection/components/combobox/component.js +4 -4
  173. package/dist/collection/components/combobox/style.css +23 -2
  174. package/dist/collection/components/details/component.js +2 -2
  175. package/dist/collection/components/details/style.css +23 -2
  176. package/dist/collection/components/dialog/base.js +2 -2
  177. package/dist/collection/components/dialog/component.js +2 -2
  178. package/dist/collection/components/dialog/style.css +26 -2
  179. package/dist/collection/components/drawer/component.js +2 -2
  180. package/dist/collection/components/drawer/style.css +26 -2
  181. package/dist/collection/components/form/component.js +2 -2
  182. package/dist/collection/components/form/controller.js +4 -3
  183. package/dist/collection/components/form/style.css +23 -2
  184. package/dist/collection/components/heading/component.js +2 -2
  185. package/dist/collection/components/heading/style.css +21 -0
  186. package/dist/collection/components/icon/component.js +5 -5
  187. package/dist/collection/components/icon/style.css +2 -2
  188. package/dist/collection/components/image/component.js +2 -2
  189. package/dist/collection/components/image/style.css +21 -0
  190. package/dist/collection/components/input-checkbox/component.js +13 -11
  191. package/dist/collection/components/input-checkbox/style.css +23 -2
  192. package/dist/collection/components/input-color/component.js +6 -4
  193. package/dist/collection/components/input-color/style.css +23 -2
  194. package/dist/collection/components/input-date/component.js +9 -7
  195. package/dist/collection/components/input-date/style.css +23 -2
  196. package/dist/collection/components/input-email/component.js +4 -1
  197. package/dist/collection/components/input-email/style.css +23 -2
  198. package/dist/collection/components/input-file/component.js +6 -3
  199. package/dist/collection/components/input-file/style.css +23 -2
  200. package/dist/collection/components/input-number/component.js +6 -4
  201. package/dist/collection/components/input-number/style.css +23 -2
  202. package/dist/collection/components/input-password/component.js +5 -2
  203. package/dist/collection/components/input-password/style.css +23 -2
  204. package/dist/collection/components/input-radio/component.js +2 -3
  205. package/dist/collection/components/input-radio/style.css +23 -2
  206. package/dist/collection/components/input-range/component.js +2 -2
  207. package/dist/collection/components/input-range/style.css +23 -2
  208. package/dist/collection/components/input-text/component.js +4 -2
  209. package/dist/collection/components/input-text/style.css +23 -2
  210. package/dist/collection/components/kolibri/component.js +2 -2
  211. package/dist/collection/components/kolibri/style.css +21 -0
  212. package/dist/collection/components/link/ariaCurrentService.js +9 -9
  213. package/dist/collection/components/link/component.js +2 -2
  214. package/dist/collection/components/link/style.css +23 -2
  215. package/dist/collection/components/link-button/component.js +2 -2
  216. package/dist/collection/components/link-button/style.css +23 -2
  217. package/dist/collection/components/meter/component.js +2 -2
  218. package/dist/collection/components/meter/style.css +21 -0
  219. package/dist/collection/components/modal/component.js +2 -2
  220. package/dist/collection/components/modal/style.css +26 -2
  221. package/dist/collection/components/nav/component.js +2 -2
  222. package/dist/collection/components/nav/style.css +23 -2
  223. package/dist/collection/components/pagination/component.js +10 -12
  224. package/dist/collection/components/pagination/style.css +23 -2
  225. package/dist/collection/components/popover-button/component.js +1 -1
  226. package/dist/collection/components/popover-button/style.css +23 -2
  227. package/dist/collection/components/progress/component.js +6 -3
  228. package/dist/collection/components/progress/style.css +21 -0
  229. package/dist/collection/components/quote/component.js +2 -2
  230. package/dist/collection/components/quote/style.css +21 -0
  231. package/dist/collection/components/select/component.js +1 -1
  232. package/dist/collection/components/select/style.css +23 -2
  233. package/dist/collection/components/single-select/component.js +10 -6
  234. package/dist/collection/components/single-select/style.css +23 -2
  235. package/dist/collection/components/skip-nav/component.js +2 -2
  236. package/dist/collection/components/skip-nav/style.css +23 -2
  237. package/dist/collection/components/spin/component.js +2 -2
  238. package/dist/collection/components/spin/style.css +21 -0
  239. package/dist/collection/components/split-button/component.js +1 -1
  240. package/dist/collection/components/split-button/style.css +23 -2
  241. package/dist/collection/components/table-stateful/component.js +13 -18
  242. package/dist/collection/components/table-stateful/style.css +26 -2
  243. package/dist/collection/components/table-stateless/base.js +4 -1
  244. package/dist/collection/components/table-stateless/component.js +14 -55
  245. package/dist/collection/components/table-stateless/style.css +26 -2
  246. package/dist/collection/components/tabs/component.js +8 -17
  247. package/dist/collection/components/tabs/style.css +23 -2
  248. package/dist/collection/components/textarea/component.js +5 -3
  249. package/dist/collection/components/textarea/style.css +23 -2
  250. package/dist/collection/components/toaster/shadow.js +1 -2
  251. package/dist/collection/components/toaster/style.css +23 -2
  252. package/dist/collection/components/toaster/toaster.js +2 -1
  253. package/dist/collection/components/toolbar/component.js +14 -10
  254. package/dist/collection/components/toolbar/style.css +23 -2
  255. package/dist/collection/components/tree/component.js +22 -11
  256. package/dist/collection/components/tree/style.css +21 -0
  257. package/dist/collection/components/tree-item/component.js +9 -6
  258. package/dist/collection/components/tree-item/style.css +23 -2
  259. package/dist/collection/components/version/component.js +2 -2
  260. package/dist/collection/components/version/style.css +23 -2
  261. package/dist/collection/core/bootstrap.js +8 -5
  262. package/dist/collection/core/component-names.js +52 -106
  263. package/dist/collection/core/i18n.js +7 -6
  264. package/dist/collection/core/shared-state.js +10 -0
  265. package/dist/collection/core/tag-transformer.js +27 -0
  266. package/dist/collection/core/theme-store.js +8 -0
  267. package/dist/collection/global/script.js +2 -0
  268. package/dist/collection/index.js +2 -0
  269. package/dist/collection/internal/functional-components/alert/component.js +2 -1
  270. package/dist/collection/internal/functional-components/avatar/component.js +2 -2
  271. package/dist/collection/internal/functional-components/badge/component.js +2 -1
  272. package/dist/collection/internal/functional-components/bem-root-node/component.js +16 -6
  273. package/dist/collection/internal/functional-components/breadcrumb/component.js +2 -2
  274. package/dist/collection/internal/functional-components/card/component.js +3 -1
  275. package/dist/collection/internal/functional-components/collapsible/component.js +3 -2
  276. package/dist/collection/internal/functional-components/dialog/component.js +6 -3
  277. package/dist/collection/internal/functional-components/dialog/item.js +2 -2
  278. package/dist/collection/internal/functional-components/drawer/component.js +1 -1
  279. package/dist/collection/internal/functional-components/form-association/api.js +2 -2
  280. package/dist/collection/internal/functional-components/form-association/behavior.js +18 -15
  281. package/dist/collection/internal/functional-components/form-field/base-web-component.js +0 -1
  282. package/dist/collection/internal/functional-components/form-field/custom-suggestions.js +1 -1
  283. package/dist/collection/internal/functional-components/heading/component.js +3 -4
  284. package/dist/collection/internal/functional-components/icon/api.js +2 -2
  285. package/dist/collection/internal/functional-components/icon/component.js +2 -2
  286. package/dist/collection/internal/functional-components/image/component.js +2 -4
  287. package/dist/collection/internal/functional-components/link/component.js +1 -1
  288. package/dist/collection/internal/functional-components/meter/component.js +5 -7
  289. package/dist/collection/internal/functional-components/pagination/api.js +2 -2
  290. package/dist/collection/internal/functional-components/pagination/component.js +2 -3
  291. package/dist/collection/internal/functional-components/pagination/item.js +26 -11
  292. package/dist/collection/internal/functional-components/pagination/page-size-select.js +8 -0
  293. package/dist/collection/internal/functional-components/progress/component.js +2 -1
  294. package/dist/collection/internal/functional-components/quote/component.js +2 -3
  295. package/dist/collection/internal/functional-components/single-select/component.js +2 -1
  296. package/dist/collection/internal/functional-components/skip-nav/component.js +2 -2
  297. package/dist/collection/internal/functional-components/span/component.js +3 -2
  298. package/dist/collection/internal/functional-components/table-stateless/api.js +2 -2
  299. package/dist/collection/internal/functional-components/table-stateless/component.js +5 -5
  300. package/dist/collection/internal/functional-components/table-stateless/settings.js +10 -5
  301. package/dist/collection/internal/functional-components/table-stateless/table-model.js +2 -6
  302. package/dist/collection/internal/functional-components/tabs/component.js +7 -1
  303. package/dist/collection/internal/functional-components/tree/component.js +2 -2
  304. package/dist/collection/internal/functional-components/tree-item/component.js +2 -2
  305. package/dist/collection/internal/props/helpers/validators.js +1 -0
  306. package/dist/collection/internal/props/index.js +1 -0
  307. package/dist/collection/internal/props/label-decorative.js +10 -0
  308. package/dist/collection/locales/de.js +1 -0
  309. package/dist/collection/locales/en.js +1 -0
  310. package/dist/collection/schema/bem-registry.js +59 -13
  311. package/dist/collection/schema/i18n-keys.js +29 -28
  312. package/dist/collection/schema/props/aria-details.js +1 -22
  313. package/dist/collection/schema/props/aria-labelledby.js +3 -12
  314. package/dist/collection/schema/props/index.js +1 -1
  315. package/dist/collection/schema/props/table-headers.js +1 -0
  316. package/dist/collection/utils/aria-labelledby.js +0 -12
  317. package/dist/collection/utils/markdown.js +49 -3
  318. package/dist/collection/utils/tooltip-open-tracking.js +6 -5
  319. package/dist/components/Heading.js +1 -1
  320. package/dist/components/access-and-short-key.js +1 -1
  321. package/dist/components/ariaCurrentService.js +1 -1
  322. package/dist/components/base-web-component.js +1 -1
  323. package/dist/components/base-web-component2.js +1 -1
  324. package/dist/components/base-web-component3.js +1 -1
  325. package/dist/components/base-web-component4.js +1 -1
  326. package/dist/components/base.js +1 -1
  327. package/dist/components/base2.js +1 -1
  328. package/dist/components/base3.js +1 -1
  329. package/dist/components/base4.js +1 -1
  330. package/dist/components/behavior.js +1 -1
  331. package/dist/components/behavior2.js +1 -1
  332. package/dist/components/behavior3.js +1 -1
  333. package/dist/components/behavior4.js +1 -1
  334. package/dist/components/bem-registry.js +1 -1
  335. package/dist/components/bootstrap.js +1 -1
  336. package/dist/components/color.js +1 -1
  337. package/dist/components/common.js +4 -0
  338. package/dist/components/component-names.js +1 -1
  339. package/dist/components/component.js +1 -1
  340. package/dist/components/component10.js +1 -1
  341. package/dist/components/component11.js +1 -1
  342. package/dist/components/component12.js +4 -0
  343. package/dist/components/component13.js +4 -0
  344. package/dist/components/component14.js +4 -0
  345. package/dist/components/component2.js +1 -1
  346. package/dist/components/component3.js +1 -1
  347. package/dist/components/component4.js +1 -1
  348. package/dist/components/component5.js +1 -1
  349. package/dist/components/component6.js +1 -1
  350. package/dist/components/component7.js +1 -1
  351. package/dist/components/component8.js +1 -1
  352. package/dist/components/component9.js +1 -1
  353. package/dist/components/contrast.js +1 -1
  354. package/dist/components/controller.js +1 -1
  355. package/dist/components/dev.utils.js +1 -1
  356. package/dist/components/devtools.js +1 -1
  357. package/dist/components/disabled.js +1 -1
  358. package/dist/components/element-focus.js +1 -1
  359. package/dist/components/element-interaction.js +1 -1
  360. package/dist/components/events.js +1 -1
  361. package/dist/components/field-control.js +1 -1
  362. package/dist/components/group.js +1 -1
  363. package/dist/components/has-closer.js +1 -1
  364. package/dist/components/i18n.js +1 -1
  365. package/dist/components/i18n2.js +1 -1
  366. package/dist/components/id.js +1 -1
  367. package/dist/components/index.js +1 -1
  368. package/dist/components/input-container.js +1 -1
  369. package/dist/components/input.js +1 -1
  370. package/dist/components/item-pool.js +1 -1
  371. package/dist/components/item.js +1 -1
  372. package/dist/components/item2.js +1 -1
  373. package/dist/components/item3.js +1 -1
  374. package/dist/components/item4.js +1 -1
  375. package/dist/components/keyboard.js +1 -1
  376. package/dist/components/kol-abbr.js +1 -1
  377. package/dist/components/kol-accordion.js +1 -1
  378. package/dist/components/kol-alert.js +1 -1
  379. package/dist/components/kol-avatar.js +1 -1
  380. package/dist/components/kol-badge.js +1 -1
  381. package/dist/components/kol-breadcrumb.js +1 -1
  382. package/dist/components/kol-button-link.js +1 -1
  383. package/dist/components/kol-button.js +1 -1
  384. package/dist/components/kol-card.js +1 -1
  385. package/dist/components/kol-combobox.js +1 -1
  386. package/dist/components/kol-details.js +1 -1
  387. package/dist/components/kol-dialog.js +1 -1
  388. package/dist/components/kol-drawer.js +1 -1
  389. package/dist/components/kol-form.js +1 -1
  390. package/dist/components/kol-heading.js +1 -1
  391. package/dist/components/kol-icon.js +1 -1
  392. package/dist/components/kol-image.js +1 -1
  393. package/dist/components/kol-input-checkbox.js +1 -1
  394. package/dist/components/kol-input-color.js +1 -1
  395. package/dist/components/kol-input-date.js +1 -1
  396. package/dist/components/kol-input-email.js +1 -1
  397. package/dist/components/kol-input-file.js +1 -1
  398. package/dist/components/kol-input-number.js +1 -1
  399. package/dist/components/kol-input-password.js +1 -1
  400. package/dist/components/kol-input-radio.js +1 -1
  401. package/dist/components/kol-input-range.js +1 -1
  402. package/dist/components/kol-input-text.js +1 -1
  403. package/dist/components/kol-kolibri.js +1 -1
  404. package/dist/components/kol-link-button.js +1 -1
  405. package/dist/components/kol-link.js +1 -1
  406. package/dist/components/kol-meter.js +1 -1
  407. package/dist/components/kol-modal.js +1 -1
  408. package/dist/components/kol-nav.js +1 -1
  409. package/dist/components/kol-pagination.js +1 -1
  410. package/dist/components/kol-popover-button.js +1 -1
  411. package/dist/components/kol-progress.js +1 -1
  412. package/dist/components/kol-quote.js +1 -1
  413. package/dist/components/kol-select.js +1 -1
  414. package/dist/components/kol-single-select.js +1 -1
  415. package/dist/components/kol-skip-nav.js +1 -1
  416. package/dist/components/kol-spin.js +1 -1
  417. package/dist/components/kol-split-button.js +1 -1
  418. package/dist/components/kol-table-stateful.js +1 -1
  419. package/dist/components/kol-table-stateless.js +1 -1
  420. package/dist/components/kol-tabs.js +1 -1
  421. package/dist/components/kol-textarea.js +1 -1
  422. package/dist/components/kol-toast-container.js +1 -1
  423. package/dist/components/kol-toolbar.js +1 -1
  424. package/dist/components/kol-tree-item.js +1 -1
  425. package/dist/components/kol-tree.js +1 -1
  426. package/dist/components/kol-version.js +1 -1
  427. package/dist/components/label-hints.js +1 -1
  428. package/dist/components/label-lang-segment.js +1 -1
  429. package/dist/components/label-with-expert-slot.js +1 -1
  430. package/dist/components/label.js +1 -1
  431. package/dist/components/level.js +1 -1
  432. package/dist/components/link-target.js +1 -1
  433. package/dist/components/links.js +1 -1
  434. package/dist/components/multiple.js +1 -1
  435. package/dist/components/number-value.js +1 -1
  436. package/dist/components/open-items-cache.js +1 -1
  437. package/dist/components/open.js +1 -1
  438. package/dist/components/options.js +1 -1
  439. package/dist/components/options2.js +1 -1
  440. package/dist/components/orientation.js +1 -1
  441. package/dist/components/placeholder.js +1 -1
  442. package/dist/components/read-only.js +1 -1
  443. package/dist/components/required.js +1 -1
  444. package/dist/components/resolve-props.js +1 -1
  445. package/dist/components/resolve-props2.js +1 -1
  446. package/dist/components/rows.js +1 -1
  447. package/dist/components/scroll-lock.js +1 -1
  448. package/dist/components/shared-state.js +4 -0
  449. package/dist/components/smart-button.js +1 -1
  450. package/dist/components/spell-check.js +1 -1
  451. package/dist/components/src.js +1 -1
  452. package/dist/components/step.js +1 -1
  453. package/dist/components/suggestions.js +1 -1
  454. package/dist/components/suggestions2.js +1 -1
  455. package/dist/components/test-component.js +1 -1
  456. package/dist/components/toggle-handler.js +1 -1
  457. package/dist/components/tooltip-open-tracking.js +1 -1
  458. package/dist/components/unique-nav-labels.js +1 -1
  459. package/dist/components/unit.js +1 -1
  460. package/dist/components/validators.js +1 -1
  461. package/dist/components/value-string.js +1 -1
  462. package/dist/components/width.js +1 -1
  463. package/dist/esm/{Heading-BVhjT9av.js → Heading-Cynkalqu.js} +2 -2
  464. package/dist/esm/{access-and-short-key-ijzCZfHm.js → access-and-short-key-CW0oxi_q.js} +2 -0
  465. package/dist/esm/{api-D92_O-0H.js → api-B76-Osk1.js} +21 -23
  466. package/dist/esm/{app-globals-CBGjgNge.js → app-globals-Dtu1AIr1.js} +4 -3
  467. package/dist/esm/{aria-labelledby-CLehu03h.js → aria-labelledby-DQov9uSv.js} +3 -13
  468. package/dist/esm/ariaCurrentService-B9TgWLEw.js +27 -0
  469. package/dist/esm/{base-DIcqHqMz.js → base-BZCFxul4.js} +13 -14
  470. package/dist/esm/{base-BLBSJu_1.js → base-BpgzOuy3.js} +13 -14
  471. package/dist/esm/{base-qvPPg-dn.js → base-CAiOx0qs.js} +52 -58
  472. package/dist/esm/{base-CHmdLgoO.js → base-DJ3lTPYp.js} +14 -16
  473. package/dist/esm/{base-web-component-XgI4wUyN.js → base-web-component-D16FuHFf.js} +2 -1
  474. package/dist/esm/{base-web-component-CaAexWy_.js → base-web-component-E9cH8tf8.js} +16 -18
  475. package/dist/esm/{base-web-component-DbagnM7m.js → base-web-component-aOhHFXxF.js} +10 -13
  476. package/dist/esm/{behavior-DW7_5Wxp.js → behavior-ByyBa-o8.js} +5 -5
  477. package/dist/esm/{behavior-CwUUkdaP.js → behavior-DJQFXyfi.js} +6 -6
  478. package/dist/esm/{behavior-B08CXmI4.js → behavior-DnTJtQBK.js} +29 -28
  479. package/dist/esm/{bem-registry-CWN7_O1L.js → bem-registry-CK2s_XZ4.js} +60 -14
  480. package/dist/esm/bootstrap-DUmk0ILT.js +52 -0
  481. package/dist/esm/{color-eAL9I7Wq.js → color-CEoIhjJR.js} +3 -3
  482. package/dist/esm/{component-8ALsFV4i.js → component-BPL1Mikq.js} +5 -6
  483. package/dist/esm/{component-D0mBOGjS.js → component-C0ijstyp.js} +10 -12
  484. package/dist/esm/component-C58IwTEf.js +47 -0
  485. package/dist/esm/{component-nR5Bf9G5.js → component-CAEpgoSo.js} +6 -5
  486. package/dist/esm/component-CDyoNoJe.js +17 -0
  487. package/dist/esm/{component-CdKSiR5P.js → component-CiTw4ODP.js} +6 -9
  488. package/dist/esm/component-DTV1Kuf1.js +172 -0
  489. package/dist/esm/{component-DCw1ZAE5.js → component-DeFANBua.js} +5 -7
  490. package/dist/esm/{component-DBAicJ2u.js → component-S6ib3O8N.js} +13 -16
  491. package/dist/esm/{component-BTMWoACz.js → component-XbTjo2nm.js} +11 -13
  492. package/dist/esm/component-names-Ur_UbEzI.js +115 -0
  493. package/dist/esm/{contrast-D78VGPFR.js → contrast-Ujnfz49m.js} +2 -2
  494. package/dist/esm/{controller-C3O9ohSP.js → controller-BdPVgWDs.js} +5 -5
  495. package/dist/esm/{dev.utils-wYkYn08d.js → dev.utils--eVyQ4zr.js} +1 -2
  496. package/dist/esm/{devtools-DrBkkLdP.js → devtools-CosbyboJ.js} +4 -5
  497. package/dist/esm/{disabled-Cqhc40CU.js → disabled-Cu0e92-b.js} +2 -1
  498. package/dist/esm/{element-focus-BIRmGg5W.js → element-focus-BYLFG-oz.js} +1 -0
  499. package/dist/esm/{element-interaction-sGYdEpmv.js → element-interaction-C2pgnQ6t.js} +2 -1
  500. package/dist/esm/{events-BIT-JUP2.js → events-B2UzbUT7.js} +2 -0
  501. package/dist/esm/{field-control-Cs5VvsYo.js → field-control-DbmtKHc1.js} +7 -8
  502. package/dist/esm/{group-uNo1CfbK.js → group-CqAFhkgE.js} +6 -7
  503. package/dist/esm/{has-closer-B9NQY7BK.js → has-closer-DOs1CXhp.js} +2 -1
  504. package/dist/esm/{href-JqLbNBsW.js → href-DQbHtp6T.js} +2 -1
  505. package/dist/esm/{i18n-Dl6Jjofb.js → i18n-Bcb0tuyF.js} +11 -6
  506. package/dist/esm/{i18n-DtLKn3Xt.js → i18n-Cf0DhAke.js} +2 -2
  507. package/dist/esm/{id-CIYvVaNr.js → id-BXwy9iRy.js} +2 -1
  508. package/dist/esm/{index-BKEJuyFi.js → index-Bsx5X6jK.js} +1745 -46
  509. package/dist/esm/index.js +14 -12
  510. package/dist/esm/{input-Dja5Qioc.js → input-RvLnUp6C.js} +4 -6
  511. package/dist/esm/{input-container-C2Am7LEP.js → input-container-BpG3WHug.js} +6 -9
  512. package/dist/esm/{item-D627ShRd.js → item-Cw_jdgc6.js} +14 -15
  513. package/dist/esm/{item-DIAFIFSy.js → item-DMttg5uX.js} +51 -30
  514. package/dist/esm/{item-ConW1c81.js → item-DibV9jD7.js} +8 -8
  515. package/dist/esm/{item-C4AmpdVD.js → item-KqTsA-5a.js} +8 -8
  516. package/dist/esm/{item-pool-BOxAYePG.js → item-pool-C_4Isquh.js} +2 -0
  517. package/dist/esm/{keyboard-Cnv7zP3N.js → keyboard-Cc1-_wSt.js} +2 -0
  518. package/dist/esm/kol-abbr.entry.js +11 -15
  519. package/dist/esm/kol-accordion.entry.js +22 -24
  520. package/dist/esm/kol-alert.entry.js +34 -36
  521. package/dist/esm/kol-avatar.entry.js +19 -19
  522. package/dist/esm/kol-badge.entry.js +31 -34
  523. package/dist/esm/kol-breadcrumb.entry.js +36 -39
  524. package/dist/esm/kol-button-link.entry.js +33 -35
  525. package/dist/esm/kol-button.entry.js +33 -35
  526. package/dist/esm/kol-card.entry.js +35 -38
  527. package/dist/esm/kol-combobox.entry.js +51 -53
  528. package/dist/esm/kol-details.entry.js +22 -24
  529. package/dist/esm/kol-dialog.entry.js +38 -41
  530. package/dist/esm/kol-drawer.entry.js +38 -41
  531. package/dist/esm/kol-form.entry.js +30 -33
  532. package/dist/esm/kol-heading.entry.js +17 -19
  533. package/dist/esm/kol-icon.entry.js +19 -17
  534. package/dist/esm/kol-image.entry.js +12 -14
  535. package/dist/esm/kol-input-checkbox.entry.js +57 -58
  536. package/dist/esm/kol-input-color.entry.js +51 -52
  537. package/dist/esm/kol-input-date.entry.js +53 -55
  538. package/dist/esm/kol-input-email.entry.js +54 -55
  539. package/dist/esm/kol-input-file.entry.js +49 -50
  540. package/dist/esm/kol-input-number.entry.js +55 -56
  541. package/dist/esm/kol-input-password.entry.js +53 -54
  542. package/dist/esm/kol-input-radio.entry.js +47 -50
  543. package/dist/esm/kol-input-range.entry.js +48 -50
  544. package/dist/esm/kol-input-text.entry.js +55 -56
  545. package/dist/esm/kol-kolibri.entry.js +12 -15
  546. package/dist/esm/kol-link-button.entry.js +33 -35
  547. package/dist/esm/kol-link.entry.js +33 -35
  548. package/dist/esm/kol-meter.entry.js +22 -25
  549. package/dist/esm/kol-modal.entry.js +38 -41
  550. package/dist/esm/kol-nav.entry.js +43 -46
  551. package/dist/esm/kol-pagination.entry.js +55 -58
  552. package/dist/esm/kol-popover-button.entry.js +34 -36
  553. package/dist/esm/kol-progress.entry.js +22 -19
  554. package/dist/esm/kol-quote.entry.js +13 -15
  555. package/dist/esm/kol-select.entry.js +47 -49
  556. package/dist/esm/kol-single-select.entry.js +58 -55
  557. package/dist/esm/kol-skip-nav.entry.js +35 -38
  558. package/dist/esm/kol-spin.entry.js +16 -19
  559. package/dist/esm/kol-split-button.entry.js +37 -39
  560. package/dist/esm/kol-table-stateful.entry.js +70 -71
  561. package/dist/esm/kol-table-stateless.entry.js +54 -66
  562. package/dist/esm/kol-tabs.entry.js +46 -52
  563. package/dist/esm/kol-textarea.entry.js +53 -53
  564. package/dist/esm/kol-toast-container.entry.js +22 -26
  565. package/dist/esm/kol-toolbar.entry.js +52 -51
  566. package/dist/esm/kol-tree-item.entry.js +38 -38
  567. package/dist/esm/kol-tree.entry.js +35 -25
  568. package/dist/esm/kol-version.entry.js +24 -27
  569. package/dist/esm/kolibri.js +7 -6
  570. package/dist/esm/{label-BRosRgdX.js → label-DEZIsnKw.js} +4 -3
  571. package/dist/esm/{label-hints-Jn18RUT-.js → label-hints-C--ftrg_.js} +2 -2
  572. package/dist/esm/{label-lang-segment-2_GnxjFp.js → label-lang-segment-B8ayoizG.js} +3 -2
  573. package/dist/esm/label-with-expert-slot-DXi27J4o.js +13 -0
  574. package/dist/esm/{level-CA1s1_Mf.js → level-BV6M_zmM.js} +2 -1
  575. package/dist/esm/{link-target-FX94oqMo.js → link-target-C9qzQAQg.js} +2 -1
  576. package/dist/esm/{links-DwucTqcR.js → links-Dt0OhMXb.js} +2 -2
  577. package/dist/esm/loader.js +6 -5
  578. package/dist/esm/{multiple-DqrZxybx.js → multiple-DQdOCIyW.js} +2 -1
  579. package/dist/esm/{number-value-B-SJ1dRo.js → number-value-DtZloH4P.js} +2 -1
  580. package/dist/esm/{open-DRRv1KFK.js → open-DaO7wXMr.js} +2 -1
  581. package/dist/esm/{open-items-cache-D-kml1h6.js → open-items-cache-C98FzYQ9.js} +2 -0
  582. package/dist/esm/{options-DCaUcfAu.js → options-C8BsBGBl.js} +2 -2
  583. package/dist/esm/{options-B0rBHetL.js → options-CKAHQbcF.js} +2 -0
  584. package/dist/esm/{orientation-XNOCaPwy.js → orientation-VvJMCd9m.js} +2 -1
  585. package/dist/esm/{placeholder-BeLIzdJv.js → placeholder-7pbjAn-x.js} +2 -1
  586. package/dist/esm/{props-from-config-Ci0dILpz.js → props-from-config-DVxNB2Lx.js} +84 -7
  587. package/dist/esm/{read-only-Bby9r6ZX.js → read-only-3XuQIAB8.js} +2 -1
  588. package/dist/esm/{required-hoaT7UmZ.js → required-CNgdXJ8H.js} +2 -1
  589. package/dist/esm/{resolve-props-BLZxWC3j.js → resolve-props-B1DQKjTD.js} +7 -8
  590. package/dist/esm/{resolve-props-D2KiItuv.js → resolve-props-DOaJCd7Y.js} +9 -9
  591. package/dist/esm/{rows-B0x8CR7K.js → rows-DL1whQNh.js} +2 -1
  592. package/dist/esm/{scroll-lock-Y2hf47KW.js → scroll-lock-CF_Z7MzO.js} +9 -7
  593. package/dist/esm/shared-state-sWI1upS8.js +14 -0
  594. package/dist/esm/{smart-button-CS_ZriPt.js → smart-button-BdA5-cUG.js} +2 -2
  595. package/dist/esm/{spell-check-DzgftyqL.js → spell-check-B7J-eU5K.js} +2 -1
  596. package/dist/esm/{src-DaGhmCL1.js → src-C2baLPDp.js} +2 -1
  597. package/dist/esm/{step-Bdj89bGO.js → step-DmzcVFZB.js} +2 -1
  598. package/dist/esm/{suggestions-Dy1X-Pc3.js → suggestions-BJxNFtkL.js} +2 -2
  599. package/dist/esm/{suggestions-DuqzGDve.js → suggestions-BXp8OhOi.js} +3 -3
  600. package/dist/esm/test-component.entry.js +3 -3
  601. package/dist/esm/theme-store-CEu5d_EK.js +11 -0
  602. package/dist/esm/{toggle-handler-BRLmxe1J.js → toggle-handler-D7oFDKvq.js} +12 -15
  603. package/dist/esm/tooltip-open-tracking-DXhnfmA2.js +21 -0
  604. package/dist/esm/{unique-nav-labels-h2KOu5Qy.js → unique-nav-labels-BOqpcYk4.js} +2 -2
  605. package/dist/esm/{unit-BUhhJbhT.js → unit-BFYz7QfA.js} +2 -1
  606. package/dist/esm/{validators-BVM40IEr.js → validators-DPSQyOeQ.js} +4 -2
  607. package/dist/esm/{value-string-e9pwLcS-.js → value-string-Cmozozek.js} +2 -1
  608. package/dist/esm/{width-CgYY17tL.js → width-D5-Licpp.js} +2 -1
  609. package/dist/kolibri/Heading-Cynkalqu.js +4 -0
  610. package/dist/kolibri/access-and-short-key-CW0oxi_q.js +4 -0
  611. package/dist/kolibri/api-B76-Osk1.js +4 -0
  612. package/dist/kolibri/app-globals-Dtu1AIr1.js +4 -0
  613. package/dist/kolibri/aria-labelledby-DQov9uSv.js +4 -0
  614. package/dist/kolibri/ariaCurrentService-B9TgWLEw.js +4 -0
  615. package/dist/kolibri/base-BZCFxul4.js +4 -0
  616. package/dist/kolibri/base-BpgzOuy3.js +4 -0
  617. package/dist/kolibri/base-CAiOx0qs.js +4 -0
  618. package/dist/kolibri/base-DJ3lTPYp.js +4 -0
  619. package/dist/kolibri/base-web-component-D16FuHFf.js +4 -0
  620. package/dist/kolibri/base-web-component-E9cH8tf8.js +4 -0
  621. package/dist/kolibri/base-web-component-aOhHFXxF.js +4 -0
  622. package/dist/kolibri/behavior-ByyBa-o8.js +4 -0
  623. package/dist/kolibri/behavior-DJQFXyfi.js +4 -0
  624. package/dist/kolibri/behavior-DnTJtQBK.js +4 -0
  625. package/dist/kolibri/bem-registry-CK2s_XZ4.js +4 -0
  626. package/dist/kolibri/bootstrap-DUmk0ILT.js +4 -0
  627. package/dist/kolibri/color-CEoIhjJR.js +4 -0
  628. package/dist/kolibri/component-BPL1Mikq.js +4 -0
  629. package/dist/kolibri/component-C0ijstyp.js +4 -0
  630. package/dist/kolibri/component-C58IwTEf.js +4 -0
  631. package/dist/kolibri/component-CAEpgoSo.js +4 -0
  632. package/dist/kolibri/component-CDyoNoJe.js +4 -0
  633. package/dist/kolibri/component-CiTw4ODP.js +4 -0
  634. package/dist/kolibri/component-DTV1Kuf1.js +4 -0
  635. package/dist/kolibri/component-DeFANBua.js +4 -0
  636. package/dist/kolibri/component-S6ib3O8N.js +4 -0
  637. package/dist/kolibri/component-XbTjo2nm.js +4 -0
  638. package/dist/kolibri/component-names-Ur_UbEzI.js +4 -0
  639. package/dist/kolibri/contrast-Ujnfz49m.js +4 -0
  640. package/dist/kolibri/controller-BdPVgWDs.js +4 -0
  641. package/dist/kolibri/dev.utils--eVyQ4zr.js +4 -0
  642. package/dist/kolibri/devtools-CosbyboJ.js +4 -0
  643. package/dist/kolibri/disabled-Cu0e92-b.js +4 -0
  644. package/dist/kolibri/element-focus-BYLFG-oz.js +4 -0
  645. package/dist/kolibri/element-interaction-C2pgnQ6t.js +4 -0
  646. package/dist/kolibri/events-B2UzbUT7.js +4 -0
  647. package/dist/kolibri/field-control-DbmtKHc1.js +4 -0
  648. package/dist/kolibri/group-CqAFhkgE.js +4 -0
  649. package/dist/kolibri/has-closer-DOs1CXhp.js +4 -0
  650. package/dist/kolibri/href-DQbHtp6T.js +4 -0
  651. package/dist/kolibri/i18n-Bcb0tuyF.js +4 -0
  652. package/dist/kolibri/i18n-Cf0DhAke.js +4 -0
  653. package/dist/kolibri/id-BXwy9iRy.js +4 -0
  654. package/dist/kolibri/index-Bsx5X6jK.js +6 -0
  655. package/dist/kolibri/index.esm.js +1 -1
  656. package/dist/kolibri/input-RvLnUp6C.js +4 -0
  657. package/dist/kolibri/input-container-BpG3WHug.js +4 -0
  658. package/dist/kolibri/item-Cw_jdgc6.js +4 -0
  659. package/dist/kolibri/item-DMttg5uX.js +4 -0
  660. package/dist/kolibri/item-DibV9jD7.js +4 -0
  661. package/dist/kolibri/item-KqTsA-5a.js +4 -0
  662. package/dist/kolibri/item-pool-C_4Isquh.js +4 -0
  663. package/dist/kolibri/keyboard-Cc1-_wSt.js +4 -0
  664. package/dist/kolibri/kol-abbr.entry.js +1 -1
  665. package/dist/kolibri/kol-accordion.entry.js +1 -1
  666. package/dist/kolibri/kol-alert.entry.js +1 -1
  667. package/dist/kolibri/kol-avatar.entry.js +1 -1
  668. package/dist/kolibri/kol-badge.entry.js +1 -1
  669. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  670. package/dist/kolibri/kol-button-link.entry.js +1 -1
  671. package/dist/kolibri/kol-button.entry.js +1 -1
  672. package/dist/kolibri/kol-card.entry.js +1 -1
  673. package/dist/kolibri/kol-combobox.entry.js +1 -1
  674. package/dist/kolibri/kol-details.entry.js +1 -1
  675. package/dist/kolibri/kol-dialog.entry.js +1 -1
  676. package/dist/kolibri/kol-drawer.entry.js +1 -1
  677. package/dist/kolibri/kol-form.entry.js +1 -1
  678. package/dist/kolibri/kol-heading.entry.js +1 -1
  679. package/dist/kolibri/kol-icon.entry.js +1 -1
  680. package/dist/kolibri/kol-image.entry.js +1 -1
  681. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  682. package/dist/kolibri/kol-input-color.entry.js +1 -1
  683. package/dist/kolibri/kol-input-date.entry.js +1 -1
  684. package/dist/kolibri/kol-input-email.entry.js +1 -1
  685. package/dist/kolibri/kol-input-file.entry.js +1 -1
  686. package/dist/kolibri/kol-input-number.entry.js +1 -1
  687. package/dist/kolibri/kol-input-password.entry.js +1 -1
  688. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  689. package/dist/kolibri/kol-input-range.entry.js +1 -1
  690. package/dist/kolibri/kol-input-text.entry.js +1 -1
  691. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  692. package/dist/kolibri/kol-link-button.entry.js +1 -1
  693. package/dist/kolibri/kol-link.entry.js +1 -1
  694. package/dist/kolibri/kol-meter.entry.js +1 -1
  695. package/dist/kolibri/kol-modal.entry.js +1 -1
  696. package/dist/kolibri/kol-nav.entry.js +1 -1
  697. package/dist/kolibri/kol-pagination.entry.js +1 -1
  698. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  699. package/dist/kolibri/kol-progress.entry.js +1 -1
  700. package/dist/kolibri/kol-quote.entry.js +1 -1
  701. package/dist/kolibri/kol-select.entry.js +1 -1
  702. package/dist/kolibri/kol-single-select.entry.js +1 -1
  703. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  704. package/dist/kolibri/kol-spin.entry.js +1 -1
  705. package/dist/kolibri/kol-split-button.entry.js +1 -1
  706. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  707. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  708. package/dist/kolibri/kol-tabs.entry.js +1 -1
  709. package/dist/kolibri/kol-textarea.entry.js +1 -1
  710. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  711. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  712. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  713. package/dist/kolibri/kol-tree.entry.js +1 -1
  714. package/dist/kolibri/kol-version.entry.js +1 -1
  715. package/dist/kolibri/kolibri.esm.js +1 -1
  716. package/dist/kolibri/label-DEZIsnKw.js +4 -0
  717. package/dist/kolibri/label-hints-C--ftrg_.js +4 -0
  718. package/dist/kolibri/label-lang-segment-B8ayoizG.js +4 -0
  719. package/dist/kolibri/label-with-expert-slot-DXi27J4o.js +4 -0
  720. package/dist/kolibri/level-BV6M_zmM.js +4 -0
  721. package/dist/kolibri/link-target-C9qzQAQg.js +4 -0
  722. package/dist/kolibri/links-Dt0OhMXb.js +4 -0
  723. package/dist/kolibri/multiple-DQdOCIyW.js +4 -0
  724. package/dist/kolibri/number-value-DtZloH4P.js +4 -0
  725. package/dist/kolibri/open-DaO7wXMr.js +4 -0
  726. package/dist/kolibri/open-items-cache-C98FzYQ9.js +4 -0
  727. package/dist/kolibri/options-C8BsBGBl.js +4 -0
  728. package/dist/kolibri/options-CKAHQbcF.js +4 -0
  729. package/dist/kolibri/orientation-VvJMCd9m.js +4 -0
  730. package/dist/kolibri/placeholder-7pbjAn-x.js +4 -0
  731. package/dist/kolibri/props-from-config-DVxNB2Lx.js +4 -0
  732. package/dist/kolibri/read-only-3XuQIAB8.js +4 -0
  733. package/dist/kolibri/required-CNgdXJ8H.js +4 -0
  734. package/dist/kolibri/resolve-props-B1DQKjTD.js +4 -0
  735. package/dist/kolibri/resolve-props-DOaJCd7Y.js +4 -0
  736. package/dist/kolibri/rows-DL1whQNh.js +4 -0
  737. package/dist/kolibri/scroll-lock-CF_Z7MzO.js +4 -0
  738. package/dist/kolibri/shared-state-sWI1upS8.js +4 -0
  739. package/dist/kolibri/smart-button-BdA5-cUG.js +4 -0
  740. package/dist/kolibri/spell-check-B7J-eU5K.js +4 -0
  741. package/dist/kolibri/src-C2baLPDp.js +4 -0
  742. package/dist/kolibri/step-DmzcVFZB.js +4 -0
  743. package/dist/kolibri/suggestions-BJxNFtkL.js +4 -0
  744. package/dist/kolibri/suggestions-BXp8OhOi.js +4 -0
  745. package/dist/kolibri/test-component.entry.js +1 -1
  746. package/dist/kolibri/theme-store-CEu5d_EK.js +4 -0
  747. package/dist/kolibri/toggle-handler-D7oFDKvq.js +4 -0
  748. package/dist/kolibri/tooltip-open-tracking-DXhnfmA2.js +4 -0
  749. package/dist/kolibri/unique-nav-labels-BOqpcYk4.js +4 -0
  750. package/dist/kolibri/unit-BFYz7QfA.js +4 -0
  751. package/dist/kolibri/validators-DPSQyOeQ.js +4 -0
  752. package/dist/kolibri/value-string-Cmozozek.js +4 -0
  753. package/dist/kolibri/width-D5-Licpp.js +4 -0
  754. package/dist/types/components/alert/component.d.ts +1 -0
  755. package/dist/types/components/input-date/component.d.ts +1 -1
  756. package/dist/types/components/pagination/component.d.ts +1 -1
  757. package/dist/types/components/progress/component.d.ts +1 -0
  758. package/dist/types/components/single-select/component.d.ts +1 -0
  759. package/dist/types/components/table-stateful/component.d.ts +3 -4
  760. package/dist/types/components/table-stateless/base.d.ts +2 -2
  761. package/dist/types/components/table-stateless/component.d.ts +3 -6
  762. package/dist/types/components/tabs/component.d.ts +1 -2
  763. package/dist/types/components/tree/component.d.ts +1 -0
  764. package/dist/types/components.d.ts +18 -125
  765. package/dist/types/core/component-names.d.ts +52 -53
  766. package/dist/types/core/i18n.d.ts +1 -1
  767. package/dist/types/core/shared-state.d.ts +1 -0
  768. package/dist/types/core/tag-transformer.d.ts +4 -0
  769. package/dist/types/core/theme-store.d.ts +1 -0
  770. package/dist/types/index.d.ts +3 -1
  771. package/dist/types/internal/functional-components/bem-root-node/component.d.ts +8 -4
  772. package/dist/types/internal/functional-components/button/item.d.ts +1 -1
  773. package/dist/types/internal/functional-components/dialog/component.d.ts +7 -3
  774. package/dist/types/internal/functional-components/form-association/api.d.ts +1 -1
  775. package/dist/types/internal/functional-components/form-association/behavior.d.ts +2 -2
  776. package/dist/types/internal/functional-components/form-field/custom-suggestions.d.ts +1 -0
  777. package/dist/types/internal/functional-components/icon/api.d.ts +1 -1
  778. package/dist/types/internal/functional-components/pagination/api.d.ts +2 -2
  779. package/dist/types/internal/functional-components/pagination/item.d.ts +5 -3
  780. package/dist/types/internal/functional-components/pagination/page-size-select.d.ts +1 -0
  781. package/dist/types/internal/functional-components/single-select/component.d.ts +3 -0
  782. package/dist/types/internal/functional-components/table-stateful/model.d.ts +2 -2
  783. package/dist/types/internal/functional-components/table-stateless/api.d.ts +2 -2
  784. package/dist/types/internal/functional-components/table-stateless/table-model.d.ts +4 -4
  785. package/dist/types/internal/props/helpers/validators.d.ts +2 -1
  786. package/dist/types/internal/props/index.d.ts +1 -0
  787. package/dist/types/internal/props/label-decorative.d.ts +4 -0
  788. package/dist/types/internal/props/table-headers.d.ts +2 -2
  789. package/dist/types/internal/props/table-stateful-headers.d.ts +2 -2
  790. package/dist/types/locales/de.d.ts +1 -0
  791. package/dist/types/locales/en.d.ts +1 -0
  792. package/dist/types/schema/bem-registry.d.ts +87 -23
  793. package/dist/types/schema/components/pagination.d.ts +2 -2
  794. package/dist/types/schema/components/table.d.ts +2 -3
  795. package/dist/types/schema/components/tableStateless.d.ts +5 -4
  796. package/dist/types/schema/i18n-keys.d.ts +29 -28
  797. package/dist/types/schema/index.d.ts +1 -1
  798. package/dist/types/schema/props/aria-details.d.ts +0 -2
  799. package/dist/types/schema/props/aria-labelledby.d.ts +1 -2
  800. package/dist/types/schema/props/index.d.ts +1 -1
  801. package/dist/types/schema/props/label.d.ts +1 -0
  802. package/dist/types/schema/props/table-callbacks.d.ts +3 -3
  803. package/dist/types/schema/props/table-headers.d.ts +3 -0
  804. package/dist/types/stencil-public-runtime.d.ts +1 -1
  805. package/dist/types/utils/aria-labelledby.d.ts +0 -6
  806. package/doc/badge.md +15 -0
  807. package/doc/button.md +13 -0
  808. package/doc/input-checkbox.md +15 -0
  809. package/doc/input-number.md +15 -0
  810. package/doc/link.md +13 -0
  811. package/doc/pagination.md +13 -13
  812. package/doc/quote.md +13 -0
  813. package/doc/table-stateful.md +33 -16
  814. package/doc/table-stateless.md +31 -15
  815. package/package.json +23 -15
  816. package/vscode-custom-data.json +3 -20
  817. package/dist/cjs/ariaCurrentService-3051l6MI.js +0 -28
  818. package/dist/cjs/block-bem-BI7yfoFU.js +0 -18
  819. package/dist/cjs/bootstrap-DkgMbRSL.js +0 -33
  820. package/dist/cjs/clsx-Bm_HQUnh.js +0 -54
  821. package/dist/cjs/common-C-hcIfzh.js +0 -1755
  822. package/dist/cjs/component-BEzksV1U.js +0 -9300
  823. package/dist/cjs/component-BQUKg-qY.js +0 -53
  824. package/dist/cjs/component-BlAPlTfV.js +0 -20
  825. package/dist/cjs/component-DMfcX1br.js +0 -14
  826. package/dist/cjs/component-Dkx5Zyhq.js +0 -18
  827. package/dist/cjs/component-names-BMpML1sX.js +0 -113
  828. package/dist/cjs/input-CgTL2oH6.js +0 -20
  829. package/dist/cjs/kol-click-button.cjs.entry.js +0 -55
  830. package/dist/cjs/kol-skeleton.cjs.entry.js +0 -107
  831. package/dist/cjs/name-D4qpL1m-.js +0 -10
  832. package/dist/collection/components/click-button/component.js +0 -105
  833. package/dist/collection/components/skeleton/component.js +0 -215
  834. package/dist/collection/internal/functional-components/click-button/api.js +0 -7
  835. package/dist/collection/internal/functional-components/click-button/component.js +0 -9
  836. package/dist/collection/internal/functional-components/skeleton/api.js +0 -7
  837. package/dist/collection/internal/functional-components/skeleton/component.js +0 -20
  838. package/dist/collection/schema/props/table-header-cells.js +0 -36
  839. package/dist/components/aria-labelledby.js +0 -4
  840. package/dist/components/block-bem.js +0 -4
  841. package/dist/components/clsx.js +0 -4
  842. package/dist/components/href.js +0 -4
  843. package/dist/components/kol-click-button.d.ts +0 -11
  844. package/dist/components/kol-click-button.js +0 -4
  845. package/dist/components/kol-skeleton.d.ts +0 -11
  846. package/dist/components/kol-skeleton.js +0 -4
  847. package/dist/components/name.js +0 -4
  848. package/dist/components/props-from-config.js +0 -4
  849. package/dist/esm/ariaCurrentService-YoLNpD5S.js +0 -25
  850. package/dist/esm/block-bem-BpQSY04L.js +0 -16
  851. package/dist/esm/bootstrap-B9DtStuh.js +0 -28
  852. package/dist/esm/clsx-COFh-Vc8.js +0 -52
  853. package/dist/esm/common-OzsC_6kt.js +0 -1709
  854. package/dist/esm/component-Bc1n82Y8.js +0 -16
  855. package/dist/esm/component-CZZNha2e.js +0 -9295
  856. package/dist/esm/component-Cdnq5GYF.js +0 -18
  857. package/dist/esm/component-DLSlbWg8.js +0 -12
  858. package/dist/esm/component-DeMf195P.js +0 -48
  859. package/dist/esm/component-names-CrfBV37S.js +0 -111
  860. package/dist/esm/kol-click-button.entry.js +0 -53
  861. package/dist/esm/kol-skeleton.entry.js +0 -105
  862. package/dist/esm/label-with-expert-slot-CicRes-W.js +0 -12
  863. package/dist/esm/name-B2Yf3EpX.js +0 -8
  864. package/dist/esm/tooltip-open-tracking-D3tCiiGP.js +0 -18
  865. package/dist/kolibri/Heading-BVhjT9av.js +0 -4
  866. package/dist/kolibri/access-and-short-key-ijzCZfHm.js +0 -4
  867. package/dist/kolibri/api-D92_O-0H.js +0 -4
  868. package/dist/kolibri/app-globals-CBGjgNge.js +0 -4
  869. package/dist/kolibri/aria-labelledby-CLehu03h.js +0 -4
  870. package/dist/kolibri/ariaCurrentService-YoLNpD5S.js +0 -4
  871. package/dist/kolibri/base-BLBSJu_1.js +0 -4
  872. package/dist/kolibri/base-CHmdLgoO.js +0 -4
  873. package/dist/kolibri/base-DIcqHqMz.js +0 -4
  874. package/dist/kolibri/base-qvPPg-dn.js +0 -4
  875. package/dist/kolibri/base-web-component-CaAexWy_.js +0 -4
  876. package/dist/kolibri/base-web-component-DbagnM7m.js +0 -4
  877. package/dist/kolibri/base-web-component-XgI4wUyN.js +0 -4
  878. package/dist/kolibri/behavior-B08CXmI4.js +0 -4
  879. package/dist/kolibri/behavior-CwUUkdaP.js +0 -4
  880. package/dist/kolibri/behavior-DW7_5Wxp.js +0 -4
  881. package/dist/kolibri/bem-registry-CWN7_O1L.js +0 -4
  882. package/dist/kolibri/block-bem-BpQSY04L.js +0 -4
  883. package/dist/kolibri/bootstrap-B9DtStuh.js +0 -4
  884. package/dist/kolibri/clsx-COFh-Vc8.js +0 -4
  885. package/dist/kolibri/color-eAL9I7Wq.js +0 -4
  886. package/dist/kolibri/common-OzsC_6kt.js +0 -4
  887. package/dist/kolibri/component-8ALsFV4i.js +0 -4
  888. package/dist/kolibri/component-BTMWoACz.js +0 -4
  889. package/dist/kolibri/component-Bc1n82Y8.js +0 -4
  890. package/dist/kolibri/component-CZZNha2e.js +0 -4
  891. package/dist/kolibri/component-CdKSiR5P.js +0 -4
  892. package/dist/kolibri/component-Cdnq5GYF.js +0 -4
  893. package/dist/kolibri/component-D0mBOGjS.js +0 -4
  894. package/dist/kolibri/component-DBAicJ2u.js +0 -4
  895. package/dist/kolibri/component-DCw1ZAE5.js +0 -4
  896. package/dist/kolibri/component-DLSlbWg8.js +0 -4
  897. package/dist/kolibri/component-DeMf195P.js +0 -4
  898. package/dist/kolibri/component-nR5Bf9G5.js +0 -4
  899. package/dist/kolibri/component-names-CrfBV37S.js +0 -4
  900. package/dist/kolibri/contrast-D78VGPFR.js +0 -4
  901. package/dist/kolibri/controller-C3O9ohSP.js +0 -4
  902. package/dist/kolibri/dev.utils-wYkYn08d.js +0 -4
  903. package/dist/kolibri/devtools-DrBkkLdP.js +0 -4
  904. package/dist/kolibri/disabled-Cqhc40CU.js +0 -4
  905. package/dist/kolibri/element-focus-BIRmGg5W.js +0 -4
  906. package/dist/kolibri/element-interaction-sGYdEpmv.js +0 -4
  907. package/dist/kolibri/events-BIT-JUP2.js +0 -4
  908. package/dist/kolibri/field-control-Cs5VvsYo.js +0 -4
  909. package/dist/kolibri/group-uNo1CfbK.js +0 -4
  910. package/dist/kolibri/has-closer-B9NQY7BK.js +0 -4
  911. package/dist/kolibri/href-JqLbNBsW.js +0 -4
  912. package/dist/kolibri/i18n-Dl6Jjofb.js +0 -4
  913. package/dist/kolibri/i18n-DtLKn3Xt.js +0 -4
  914. package/dist/kolibri/id-CIYvVaNr.js +0 -4
  915. package/dist/kolibri/index-BKEJuyFi.js +0 -6
  916. package/dist/kolibri/input-Dja5Qioc.js +0 -4
  917. package/dist/kolibri/input-container-C2Am7LEP.js +0 -4
  918. package/dist/kolibri/item-C4AmpdVD.js +0 -4
  919. package/dist/kolibri/item-ConW1c81.js +0 -4
  920. package/dist/kolibri/item-D627ShRd.js +0 -4
  921. package/dist/kolibri/item-DIAFIFSy.js +0 -4
  922. package/dist/kolibri/item-pool-BOxAYePG.js +0 -4
  923. package/dist/kolibri/keyboard-Cnv7zP3N.js +0 -4
  924. package/dist/kolibri/kol-click-button.entry.js +0 -4
  925. package/dist/kolibri/kol-skeleton.entry.js +0 -4
  926. package/dist/kolibri/label-BRosRgdX.js +0 -4
  927. package/dist/kolibri/label-hints-Jn18RUT-.js +0 -4
  928. package/dist/kolibri/label-lang-segment-2_GnxjFp.js +0 -4
  929. package/dist/kolibri/label-with-expert-slot-CicRes-W.js +0 -4
  930. package/dist/kolibri/level-CA1s1_Mf.js +0 -4
  931. package/dist/kolibri/link-target-FX94oqMo.js +0 -4
  932. package/dist/kolibri/links-DwucTqcR.js +0 -4
  933. package/dist/kolibri/multiple-DqrZxybx.js +0 -4
  934. package/dist/kolibri/name-B2Yf3EpX.js +0 -4
  935. package/dist/kolibri/number-value-B-SJ1dRo.js +0 -4
  936. package/dist/kolibri/open-DRRv1KFK.js +0 -4
  937. package/dist/kolibri/open-items-cache-D-kml1h6.js +0 -4
  938. package/dist/kolibri/options-B0rBHetL.js +0 -4
  939. package/dist/kolibri/options-DCaUcfAu.js +0 -4
  940. package/dist/kolibri/orientation-XNOCaPwy.js +0 -4
  941. package/dist/kolibri/placeholder-BeLIzdJv.js +0 -4
  942. package/dist/kolibri/props-from-config-Ci0dILpz.js +0 -4
  943. package/dist/kolibri/read-only-Bby9r6ZX.js +0 -4
  944. package/dist/kolibri/required-hoaT7UmZ.js +0 -4
  945. package/dist/kolibri/resolve-props-BLZxWC3j.js +0 -4
  946. package/dist/kolibri/resolve-props-D2KiItuv.js +0 -4
  947. package/dist/kolibri/rows-B0x8CR7K.js +0 -4
  948. package/dist/kolibri/scroll-lock-Y2hf47KW.js +0 -4
  949. package/dist/kolibri/smart-button-CS_ZriPt.js +0 -4
  950. package/dist/kolibri/spell-check-DzgftyqL.js +0 -4
  951. package/dist/kolibri/src-DaGhmCL1.js +0 -4
  952. package/dist/kolibri/step-Bdj89bGO.js +0 -4
  953. package/dist/kolibri/suggestions-DuqzGDve.js +0 -4
  954. package/dist/kolibri/suggestions-Dy1X-Pc3.js +0 -4
  955. package/dist/kolibri/toggle-handler-BRLmxe1J.js +0 -4
  956. package/dist/kolibri/tooltip-open-tracking-D3tCiiGP.js +0 -4
  957. package/dist/kolibri/unique-nav-labels-h2KOu5Qy.js +0 -4
  958. package/dist/kolibri/unit-BUhhJbhT.js +0 -4
  959. package/dist/kolibri/validators-BVM40IEr.js +0 -4
  960. package/dist/kolibri/value-string-e9pwLcS-.js +0 -4
  961. package/dist/kolibri/width-CgYY17tL.js +0 -4
  962. package/dist/types/components/click-button/component.d.ts +0 -15
  963. package/dist/types/components/skeleton/component.d.ts +0 -26
  964. package/dist/types/internal/functional-components/click-button/api.d.ts +0 -15
  965. package/dist/types/internal/functional-components/click-button/component.d.ts +0 -4
  966. package/dist/types/internal/functional-components/skeleton/api.d.ts +0 -29
  967. package/dist/types/internal/functional-components/skeleton/component.d.ts +0 -4
  968. package/dist/types/schema/props/table-header-cells.d.ts +0 -11
  969. package/doc/skeleton.md +0 -54
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as t,proxyCustomElement as o,Host as e,transformTag as i}from"@stencil/core/internal/client";import{_ as n}from"./tslib.es6.js";import{t as s}from"./i18n.js";import{v as l}from"./access-and-short-key.js";import{c as a}from"./clsx.js";import{c as r,a as c}from"./dev.utils.js";import{c as h}from"./element-focus.js";import{c as d,d as u}from"./element-interaction.js";import{c as p,K as k}from"./events.js";import{B as f}from"./component10.js";import{c as m}from"./item.js";import{h as b,g,I as _}from"./input-container.js";import{f as y,F as v}from"./base-web-component2.js";import{h as w,B as x,C as z,L as j,a as O}from"./group.js";import{I as B}from"./input.js";import{b as K}from"./bem-registry.js";import{a as T,d as A,v as C}from"./component3.js";import"./props-from-config.js";import{p as S}from"./placeholder.js";import{r as V}from"./required.js";import{r as I}from"./rows.js";import{c as D}from"./options2.js";import{I as H}from"./component5.js";const q=D(),F={required:[...y.required,q],optional:[...y.optional,T,w,b,S,V,I,A,C]},L=K.forBlock("kol-single-select"),M=K.forBlock("kol-custom-suggestions-toggle"),P=L("delete"),R=L("no-results-message"),E=({disabled:o,handleClick:e})=>t(H,{icons:"kolicon-chevron-down",label:"",class:M({disabled:o}),onClick:e}),G=({message:o})=>t("li",{class:R,role:"alert"},o," "),N=o(class extends x{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=r("single-select"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.isOpen=!1,this.blockSuggestionMouseOver=!1,this.filteredOptions=[],this.inputValue="",this.clearButton=m((()=>this.host)),this.ctaRef=d(),this.translateDeleteSelection=s("kol-delete-selection"),this.translateNoResultsMessage=s("kol-no-results-message"),this.propsConfig=F,this._accessKey=void 0,this._ariaDetails=void 0,this._placeholder=void 0,this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._msg=void 0,this._name=void 0,this._on=void 0,this._required=!1,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=null,this._hasClearButton=!0,this._rows=void 0,this._variant=void 0,this.toggleListbox=t=>{var o;if(null==t||t.preventDefault(),!0!==this.getRenderProp("disabled"))if(null===(o=this.ctaRef.el)||void 0===o||o.focus(),this.isOpen)this.isOpen=!1;else{this.isOpen=!0;const t=Array.isArray(this.filteredOptions)?this.filteredOptions.findIndex((t=>t.label===this.inputValue)):-1;this.focusOption(t>=0?t:-1)}},this.handleSingleSelectInput=t=>{const o=t.target.value;this.inputValue=o,this.isOpen=!0,this.setFilteredOptionsByQuery(o),this.focusedIndex=-1},this.handleSingleSelectChange=t=>{this.isOpen||this.handleChange(t,this._value)},this.handleSingleSelectClick=t=>{var o;this.toggleListbox(t),null===(o=this.ctaRef.el)||void 0===o||o.focus(),this.handleClick(t)},this.handleInputBlur=t=>{this.handleFocusLeave(t)},this.handleDropdownKeyDown=t=>{1===t.key.length&&/[a-z0-9]/i.test(t.key)&&(t.preventDefault(),this.isOpen=!0,this.focusOptionStartingWith(t.key))},this.handleClearButtonClick=()=>{var t;this.clearSelection(),null===(t=this.ctaRef.el)||void 0===t||t.focus(),this.clearButtonFocused=!1},this.initFormAssociation("single-select",this._name)}watchAccessKey(t){T.apply(t,(t=>this.setRenderProp("accessKey",t))),l(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchPlaceholder(t){S.apply(t,(t=>this.setRenderProp("placeholder",t)))}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){b.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchOptions(t){var o;this.applyOptions(t),this.filteredOptions=[...null!==(o=this.getRenderProp("options"))&&void 0!==o?o:[]],this.isOpen?this.setFilteredOptionsByQuery(this.inputValue):this.updateInputValue(this._value)}watchRequired(t){V.apply(t,(t=>this.setRenderProp("required",t)))}watchShortKey(t){A.apply(t,(t=>this.setRenderProp("shortKey",t))),l(this._accessKey,t)}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){this.updateInputValue(t)}watchHasClearButton(t){w.apply(t,(t=>this.setRenderProp("hasClearButton",t)))}watchRows(t){I.apply(t,(t=>this.setRenderProp("rows",t)))}watchVariant(t){C.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){return Promise.resolve(this._value)}focus(t){return Promise.resolve()}componentWillLoad(){this.optionRefs=[],this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),this.watchMsg(this._msg),this.watchDisabled(this._disabled),this.watchHideMsg(this._hideMsg),this.watchHideLabel(this._hideLabel),this.watchHint(this._hint),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchShortKey(this._shortKey),this.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant),this.watchIcons(this._icons),this.applyOptions(this._options),this.watchRequired(this._required),this.watchPlaceholder(this._placeholder),this.watchHasClearButton(this._hasClearButton),this.watchRows(this._rows),this.filteredOptions=this.getRenderProp("options"),this.updateInputValue(this._value)}componentDidRender(){this.syncFormField(),this.clearButton.syncListeners()}disconnectedCallback(){this.clearButton.destroy(),this.destroyFormField()}handleHostKeyDown(t){this.handleListboxKeyDown(t)}handleMouseEvent(){this.handleListboxMouseMove()}handleFocusIn(t){setTimeout((()=>{h(this.host)&&!this.inputHasFocus&&this.handleFocus(t)}))}handleFocusOut(t){this.selectOptionByInputValue(),setTimeout((()=>{this.inputHasFocus&&!h(this.host)&&(this.handleBlur(t),this.isOpen=!1)}))}getOptionCount(){return Array.isArray(this.filteredOptions)?this.filteredOptions.length:0}moveFocus(t,o=1){this.filteredOptions&&this.moveFocusSkippingDisabled(t,o,(t=>!!this.filteredOptions[t].disabled))}focusFirstOption(){this.moveFocus(-1*this.focusedIndex)}focusLastOption(){this.moveFocus(this.filteredOptions?this.filteredOptions.length-1-this.focusedIndex:0,-1)}handleConfirmKey(t){var o;this.clearButtonFocused?(this.clearSelection(),t.preventDefault()):this.isOpen?this.selectFocusedOption()&&(null===(o=this.ctaRef.el)||void 0===o||o.focus(),this.handleListboxEvent(t,!1)):this.toggleListbox(t)}selectFocusedOption(){if(Array.isArray(this.filteredOptions)&&this.filteredOptions.length>0&&this.focusedIndex>=0){const t=this.filteredOptions[this.focusedIndex];return!(null==t?void 0:t.disabled)&&(this.selectOption(t),!0)}return!1}focusOptionStartingWith(t){const o=t.toLowerCase(),e=Array.isArray(this.filteredOptions)&&this.filteredOptions.findIndex((t=>t.label.toLowerCase().startsWith(o)&&!t.disabled));"number"==typeof e&&e>=0&&this.focusOption(e)}setFilteredOptionsByQuery(t){if(void 0===t)return;const o=this.getRenderProp("options");""===t.trim()?this.filteredOptions=[...o]:Array.isArray(o)&&o.length>0&&t.length>0&&(this.filteredOptions=o.filter((o=>{var e,i;return null===(i=null===(e=o.label)||void 0===e?void 0:e.toLowerCase())||void 0===i?void 0:i.includes(t.toLowerCase())})))}updateInputValue(t){var o;const e=null===(o=this.getRenderProp("options"))||void 0===o?void 0:o.find((o=>o.value===t));this.inputValue=e?e.label+"":""}selectOption(t){var o;if(t.value===this._value)return this.inputValue=t.label,void(this.filteredOptions=[...this.getRenderProp("options")]);this._value=t.value,this.inputValue=t.label;const e={name:null!==(o=this.getRenderProp("name"))&&void 0!==o?o:"",value:t.value};this.handleInput(p(k.input,e,this.ctaRef.el),t.value),this.handleChange(p(k.change,e,this.ctaRef.el),t.value),this.filteredOptions=[...this.getRenderProp("options")],this.formAssociation.setFormAssociatedValue(this._value)}clearSelection(){var t;if(!0===this.getRenderProp("disabled"))return;const o=null;this.focusedIndex=-1,this._value=o,this.inputValue="",this.filteredOptions=[...this.getRenderProp("options")];const e={name:this.getRenderProp("name"),value:o};this.handleInput(p(k.input,e,this.ctaRef.el),o),this.handleChange(p(k.change,e,this.ctaRef.el),o),null===(t=this.ctaRef.el)||void 0===t||t.focus(),this.isOpen=!0}selectOptionByInputValue(){const t=this.getRenderProp("options"),o=null==t?void 0:t.find((t=>{var o,e;return(null===(o=t.label)||void 0===o?void 0:o.toLowerCase())===(null===(e=this.inputValue)||void 0===e?void 0:e.toLowerCase())}));o?this.selectOption(o):null!=this._value&&(this.filteredOptions=[...null!=t?t:[]])}getInputProps(){const{ariaDescribedBy:t,hasError:o}=this.getAria(),e=this.id,i=!0===this.getRenderProp("disabled"),n=this.getRenderProp("accessKey")||void 0,s=this.getRenderProp("placeholder"),l=this.getRenderProp("shortKey")||void 0,a=this.getRenderProp("hideLabel"),r=this.getRenderProp("label");return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:e,hideLabel:a,label:r,disabled:i,name:this.getRenderProp("name")||void 0},n?{accessKey:n}:{}),{value:this.inputValue,required:this.getRenderProp("required")}),s?{placeholder:s}:{}),{touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),l?{"aria-keyshortcuts":l}:{}),{"aria-activedescendant":this.getActiveDescendant(),"aria-autocomplete":"both","aria-controls":c(e,"listbox"),"aria-describedby":t.length>0?t.join(" "):void 0,"aria-expanded":this.isOpen?"true":"false","aria-label":a&&"string"==typeof r?r:void 0,"aria-labelledby":c(e,"label"),autocapitalize:"off",autocorrect:"off",autocomplete:"off",class:"kol-single-select__input",ref:this.ctaRef,role:"combobox",type:"text",onBlur:this.handleInputBlur,onChange:this.handleSingleSelectChange,onClick:this.handleSingleSelectClick,onFocus:this.handleFocus,onInput:this.handleSingleSelectInput,onKeyDown:this.handleKeyDown,ariaDescribedBy:t,"aria-invalid":o?"true":void 0})}renderOptions(){return Array.isArray(this.filteredOptions)&&0!==this.filteredOptions.length?this.filteredOptions.map(((o,e)=>t(z,{id:this.getOptionId(e),index:e,option:o.label,searchTerm:this.inputValue,ref:t=>{t&&(this.optionRefs[e]=t)},selected:this._value===o.value,disabled:!!o.disabled,onClick:t=>{var e;o.disabled||(t.preventDefault(),this.selectOption(o),this.isOpen=!1,null===(e=this.ctaRef.el)||void 0===e||e.focus())},onMouseOver:()=>{this.blockSuggestionMouseOver||o.disabled||this.focusOption(e)},onFocus:()=>{o.disabled||this.focusOption(e)}}))):t(G,{message:this.translateNoResultsMessage})}applyOptions(t){q.apply(t,(t=>this.setRenderProp("options",t)))}render(){var o;const i=!0===this.getRenderProp("disabled"),{startAdornment:n,endAdornment:s}=g({icons:this.getRenderProp("icons")});return t(e,{key:"b8ebfaa422916a95773899383cc3d235142a293a"},t(v,Object.assign({key:"5c6da6a4ae4862369b8c446418c1cf9af8cc3153"},this.getFormFieldProps({class:a("kol-single-select",{"kol-single-select--open":this.isOpen}),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,required:this.getRenderProp("required"),variant:this.getRenderProp("variant")})),t(_,{key:"887f1f4edf4d90adebb588a01945fa1fc7839d44",disabled:i,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:n,endAdornment:s},t(j,{key:"853594f9fa4079cd607aaec45cdbb8419ee28793",block:"kol-single-select"},t(B,Object.assign({key:"f82e20bf5a8261d3102e9678342cc54a4fd2513d"},this.getInputProps())),this.inputValue&&this.getRenderProp("hasClearButton")&&t(f,Object.assign({key:"6732fe57f45c238ab6f3dbd1308a82a20fd843a7"},this.clearButton.getFcProps({_icons:"kolicon-cross",_label:this.translateDeleteSelection,_hideLabel:!0,_variant:"ghost",_disabled:i,_on:{onClick:this.handleClearButtonClick,onFocus:this.handleClearButtonFocus,onBlur:this.handleClearButtonBlur}},{class:P,hidden:i}))),t(E,{key:"5865253a7e0e37d8a276526df20e4cafb90d0f91",disabled:i,handleClick:this.toggleListbox})),t(O,{key:"23b069f956c600452e5cbc2a5c7817facf2c8449",blockSuggestionMouseOver:this.blockSuggestionMouseOver,onKeyDown:this.handleDropdownKeyDown,style:{"--visible-options":""+(null!==(o=this.getRenderProp("rows"))&&void 0!==o?o:5)},hidden:!this.isOpen||i,id:c(this.id,"listbox")},this.renderOptions()))))}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_placeholder:[{watchPlaceholder:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_options:[{watchOptions:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_hasClearButton:[{watchHasClearButton:0}],_rows:[{watchRows:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794497133718"); src: url("kolicons.eot?t=1794497133718#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794497133718") format("woff2"), url("kolicons.woff?t=1794497133718") format("woff"), url("kolicons.ttf?t=1794497133718") format("truetype"), url("kolicons.svg?t=1794497133718#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: "​"; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-custom-suggestions-option { line-height: 1.5; white-space: normal; overflow-wrap: break-word; } .kol-custom-suggestions-option:not(.kol-custom-suggestions-option--disabled) { cursor: pointer; } .kol-custom-suggestions-options-group--cursor-hidden .kol-custom-suggestions-option { cursor: none !important; } .kol-custom-suggestions-option--disabled, .kol-custom-suggestions-option--disabled * { cursor: not-allowed; } .kol-custom-suggestions-options-group { background-color: white; display: block; position: absolute; z-index: 2; max-height: calc(250 * 1rem / var(--kolibri-root-font-size, 16)); margin: 0; padding: 0; overflow-x: hidden; overflow-y: auto; list-style-type: none; } .kol-input-container:has(.kol-custom-suggestions-options-group--open) { z-index: 10; } .kol-custom-suggestions-toggle { display: flex; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; justify-content: center; cursor: default; } .kol-custom-suggestions-toggle.kol-custom-suggestions-toggle--disabled { cursor: not-allowed; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-input { background-color: transparent; width: 100%; min-width: var(--a11y-min-size); } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-single-select { } .kol-single-select__group .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-single-select__group :host { display: inline-block; } .kol-single-select__group .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-single-select__group .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-single-select__group .kol-button__interactive-element::before { content: "​"; } .kol-single-select__group .kol-button__text { flex: 1 0 100%; } .kol-single-select__group .kol-button { } .kol-single-select__group .kol-button__tooltip { height: 0; } .kol-single-select__group .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-single-select__group .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-single-select__no-results-message { display: flex; min-height: calc(50 * 1rem / var(--kolibri-root-font-size, 16)); align-items: center; justify-content: center; cursor: default; } .kol-single-select .kol-custom-suggestions-options-group { max-height: calc(40 * 1rem / var(--kolibri-root-font-size, 16) * var(--visible-options, 5) + 2 * 1rem / var(--kolibri-root-font-size, 16)) !important; } .kol-single-select--open .kol-custom-suggestions-toggle { transform: rotate(180deg); } .kol-custom-suggestions-toggle:not(.kol-custom-suggestions-toggle--disabled) { cursor: pointer; } }'}}},[545,"kol-single-select",{_accessKey:[1,"_access-key"],_ariaDetails:[1,"_aria-details"],_placeholder:[1],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_label:[1],_msg:[1],_name:[1],_on:[16],_options:[1],_required:[4],_shortKey:[1,"_short-key"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1032],_hasClearButton:[4,"_has-clear-button"],_rows:[2],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],isOpen:[32],blockSuggestionMouseOver:[32],filteredOptions:[32],inputValue:[32],getValue:[64],focus:[64]},[[0,"keydown","handleHostKeyDown"],[1,"mousemove","handleMouseEvent"],[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"]],{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_placeholder:[{watchPlaceholder:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_options:[{watchOptions:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_hasClearButton:[{watchHasClearButton:0}],_rows:[{watchRows:0}],_variant:[{watchVariant:0}]}]);n([u("ctaRef")],N.prototype,"focus",null);const W=N,Q=function(){"undefined"!=typeof customElements&&["kol-single-select"].forEach((t=>{"kol-single-select"===t&&(customElements.get(i(t))||customElements.define(i(t),N))}))};export{W as KolSingleSelect,Q as defineCustomElement}
4
+ import{h as t,p as o,H as e,t as i}from"./common.js";import{_ as s}from"./tslib.es6.js";import{t as n}from"./i18n.js";import{v as l}from"./access-and-short-key.js";import{f as a}from"./base-web-component.js";import{c as r,a as c}from"./dev.utils.js";import{c as h}from"./element-focus.js";import{c as d,d as u}from"./element-interaction.js";import{c as k,K as p}from"./events.js";import{B as m}from"./component9.js";import{c as b}from"./item.js";import{h as f,g,I as _}from"./input-container.js";import{f as v,F as y}from"./base-web-component2.js";import{h as w,B as x,C as z,L as j,a as O}from"./group.js";import{I as B}from"./input.js";import{a as C,d as K,v as T}from"./component6.js";import{p as A}from"./placeholder.js";import{r as S}from"./required.js";import{r as V}from"./rows.js";import{c as H}from"./options2.js";import{b as I}from"./bem-registry.js";import{I as D}from"./component3.js";const q=H(),F={required:[...v.required,q],optional:[...v.optional,C,w,f,A,S,V,K,T]},L=I.forBlock("kol-single-select"),M=I.forBlock("kol-custom-suggestions-toggle"),P=L("delete"),R=L("no-results-message"),E=({disabled:o,handleClick:e})=>t(D,{icons:"kolicon-chevron-down",label:"",class:M({disabled:o}),onClick:e}),G=({message:o})=>t("div",{class:R},o," "),N=({message:o})=>t("span",{class:"visually-hidden",role:"status"},o),W=o(class extends x{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=r("single-select"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.isOpen=!1,this.blockSuggestionMouseOver=!1,this.filteredOptions=[],this.inputValue="",this.clearButton=b((()=>this.host)),this.ctaRef=d(),this.translateDeleteSelection=n("kol-delete-selection"),this.translateNoResultsMessage=n("kol-no-results-message"),this.propsConfig=F,this._accessKey=void 0,this._ariaDetails=void 0,this._placeholder=void 0,this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._msg=void 0,this._name=void 0,this._on=void 0,this._required=!1,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=null,this._hasClearButton=!0,this._rows=void 0,this._variant=void 0,this.toggleListbox=t=>{var o;if(null==t||t.preventDefault(),!0!==this.getRenderProp("disabled"))if(null===(o=this.ctaRef.el)||void 0===o||o.focus(),this.isOpen)this.isOpen=!1;else{this.isOpen=!0;const t=Array.isArray(this.filteredOptions)?this.filteredOptions.findIndex((t=>t.label===this.inputValue)):-1;this.focusOption(t>=0?t:-1)}},this.handleSingleSelectInput=t=>{const o=t.target.value;this.inputValue=o,this.isOpen=!0,this.setFilteredOptionsByQuery(o),this.focusedIndex=-1},this.handleSingleSelectChange=t=>{this.isOpen||this.handleChange(t,this._value)},this.handleSingleSelectClick=t=>{var o;this.toggleListbox(t),null===(o=this.ctaRef.el)||void 0===o||o.focus(),this.handleClick(t)},this.handleInputBlur=t=>{this.handleFocusLeave(t)},this.handleDropdownKeyDown=t=>{1===t.key.length&&/[a-z0-9]/i.test(t.key)&&(t.preventDefault(),this.isOpen=!0,this.focusOptionStartingWith(t.key))},this.handleClearButtonClick=()=>{var t;this.clearSelection(),null===(t=this.ctaRef.el)||void 0===t||t.focus(),this.clearButtonFocused=!1},this.initFormAssociation("single-select",this._name)}watchAccessKey(t){C.apply(t,(t=>this.setRenderProp("accessKey",t))),l(t,this._shortKey)}watchAriaDetails(t){this.applyAriaDetails(t)}watchPlaceholder(t){A.apply(t,(t=>this.setRenderProp("placeholder",t)))}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){f.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchOptions(t){var o;this.applyOptions(t),this.filteredOptions=[...null!==(o=this.getRenderProp("options"))&&void 0!==o?o:[]],this.isOpen?this.setFilteredOptionsByQuery(this.inputValue):this.updateInputValue(this._value)}watchRequired(t){S.apply(t,(t=>this.setRenderProp("required",t)))}watchShortKey(t){K.apply(t,(t=>this.setRenderProp("shortKey",t))),l(this._accessKey,t)}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){this.updateInputValue(t)}watchHasClearButton(t){w.apply(t,(t=>this.setRenderProp("hasClearButton",t)))}watchRows(t){V.apply(t,(t=>this.setRenderProp("rows",t)))}watchVariant(t){T.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){return Promise.resolve(this._value)}focus(t){return Promise.resolve()}componentWillLoad(){this.optionRefs=[],this._touched=!0===this._touched,this.watchAriaDetails(this._ariaDetails),this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),this.watchMsg(this._msg),this.watchDisabled(this._disabled),this.watchHideMsg(this._hideMsg),this.watchHideLabel(this._hideLabel),this.watchHint(this._hint),this.watchInfoPopover(this._infoPopover),this.watchLabel(this._label),this.watchShortKey(this._shortKey),this.watchOn(this._on),this.watchTooltipAlign(this._tooltipAlign),this.watchVariant(this._variant),this.watchIcons(this._icons),this.applyOptions(this._options),this.watchRequired(this._required),this.watchPlaceholder(this._placeholder),this.watchHasClearButton(this._hasClearButton),this.watchRows(this._rows),this.filteredOptions=this.getRenderProp("options"),this.updateInputValue(this._value)}componentDidRender(){this.syncFormField(),this.clearButton.syncListeners()}disconnectedCallback(){this.clearButton.destroy(),this.destroyFormField()}handleHostKeyDown(t){this.handleListboxKeyDown(t)}handleMouseEvent(){this.handleListboxMouseMove()}handleFocusIn(t){setTimeout((()=>{h(this.host)&&!this.inputHasFocus&&this.handleFocus(t)}))}handleFocusOut(t){this.selectOptionByInputValue(),setTimeout((()=>{this.inputHasFocus&&!h(this.host)&&(this.handleBlur(t),this.isOpen=!1)}))}getOptionCount(){return Array.isArray(this.filteredOptions)?this.filteredOptions.length:0}moveFocus(t,o=1){this.filteredOptions&&this.moveFocusSkippingDisabled(t,o,(t=>!!this.filteredOptions[t].disabled))}focusFirstOption(){this.moveFocus(-1*this.focusedIndex)}focusLastOption(){this.moveFocus(this.filteredOptions?this.filteredOptions.length-1-this.focusedIndex:0,-1)}handleConfirmKey(t){var o;this.clearButtonFocused?(this.clearSelection(),t.preventDefault()):this.isOpen?this.selectFocusedOption()&&(null===(o=this.ctaRef.el)||void 0===o||o.focus(),this.handleListboxEvent(t,!1)):this.toggleListbox(t)}selectFocusedOption(){if(Array.isArray(this.filteredOptions)&&this.filteredOptions.length>0&&this.focusedIndex>=0){const t=this.filteredOptions[this.focusedIndex];return!(null==t?void 0:t.disabled)&&(this.selectOption(t),!0)}return!1}focusOptionStartingWith(t){const o=t.toLowerCase(),e=Array.isArray(this.filteredOptions)&&this.filteredOptions.findIndex((t=>t.label.toLowerCase().startsWith(o)&&!t.disabled));"number"==typeof e&&e>=0&&this.focusOption(e)}setFilteredOptionsByQuery(t){if(void 0===t)return;const o=this.getRenderProp("options");""===t.trim()?this.filteredOptions=[...o]:Array.isArray(o)&&o.length>0&&t.length>0&&(this.filteredOptions=o.filter((o=>{var e,i;return null===(i=null===(e=o.label)||void 0===e?void 0:e.toLowerCase())||void 0===i?void 0:i.includes(t.toLowerCase())})))}updateInputValue(t){var o;const e=null===(o=this.getRenderProp("options"))||void 0===o?void 0:o.find((o=>o.value===t));this.inputValue=e?e.label+"":""}selectOption(t){var o;if(t.value===this._value)return this.inputValue=t.label,void(this.filteredOptions=[...this.getRenderProp("options")]);this._value=t.value,this.inputValue=t.label;const e={name:null!==(o=this.getRenderProp("name"))&&void 0!==o?o:"",value:t.value};this.handleInput(k(p.input,e,this.ctaRef.el),t.value),this.handleChange(k(p.change,e,this.ctaRef.el),t.value),this.filteredOptions=[...this.getRenderProp("options")],this.formAssociation.setFormAssociatedValue(this._value)}clearSelection(){var t;if(!0===this.getRenderProp("disabled"))return;const o=null;this.focusedIndex=-1,this._value=o,this.inputValue="",this.filteredOptions=[...this.getRenderProp("options")];const e={name:this.getRenderProp("name"),value:o};this.handleInput(k(p.input,e,this.ctaRef.el),o),this.handleChange(k(p.change,e,this.ctaRef.el),o),null===(t=this.ctaRef.el)||void 0===t||t.focus(),this.isOpen=!0}selectOptionByInputValue(){const t=this.getRenderProp("options"),o=null==t?void 0:t.find((t=>{var o,e;return(null===(o=t.label)||void 0===o?void 0:o.toLowerCase())===(null===(e=this.inputValue)||void 0===e?void 0:e.toLowerCase())}));o?this.selectOption(o):null!=this._value&&(this.filteredOptions=[...null!=t?t:[]])}getInputProps(){const{ariaDescribedBy:t,hasError:o}=this.getAria(),e=this.id,i=!0===this.getRenderProp("disabled"),s=this.getRenderProp("accessKey")||void 0,n=this.getRenderProp("placeholder"),l=this.getRenderProp("shortKey")||void 0,a=this.getRenderProp("hideLabel"),r=this.getRenderProp("label");return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:e,hideLabel:a,label:r,disabled:i,name:this.getRenderProp("name")||void 0},s?{accessKey:s}:{}),{value:this.inputValue,required:this.getRenderProp("required")}),n?{placeholder:n}:{}),{touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg")}),l?{"aria-keyshortcuts":l}:{}),{"aria-activedescendant":this.getActiveDescendant(),"aria-autocomplete":"both","aria-controls":c(e,"listbox"),"aria-describedby":t.length>0?t.join(" "):void 0,"aria-expanded":this.isOpen?"true":"false","aria-label":a&&"string"==typeof r?r:void 0,"aria-labelledby":c(e,"label"),autocapitalize:"off",autocorrect:"off",autocomplete:"off",class:"kol-single-select__input",ref:this.ctaRef,role:"combobox",type:"text",onBlur:this.handleInputBlur,onChange:this.handleSingleSelectChange,onClick:this.handleSingleSelectClick,onFocus:this.handleFocus,onInput:this.handleSingleSelectInput,onKeyDown:this.handleKeyDown,ariaDescribedBy:t,"aria-invalid":o?"true":void 0})}hasNoResults(){return!Array.isArray(this.filteredOptions)||0===this.filteredOptions.length}renderOptions(){return this.hasNoResults()?[]:this.filteredOptions.map(((o,e)=>t(z,{id:this.getOptionId(e),index:e,option:o.label,searchTerm:this.inputValue,ref:t=>{t&&(this.optionRefs[e]=t)},selected:this._value===o.value,disabled:!!o.disabled,onClick:t=>{var e;o.disabled||(t.preventDefault(),this.selectOption(o),this.isOpen=!1,null===(e=this.ctaRef.el)||void 0===e||e.focus())},onMouseOver:()=>{this.blockSuggestionMouseOver||o.disabled||this.focusOption(e)},onFocus:()=>{o.disabled||this.focusOption(e)}})))}applyOptions(t){q.apply(t,(t=>this.setRenderProp("options",t)))}render(){var o;const i=!0===this.getRenderProp("disabled"),s=this.isOpen&&!i&&this.hasNoResults(),{startAdornment:n,endAdornment:l}=g({icons:this.getRenderProp("icons")});return t(e,{key:"667a886db03289adf0f7c091048cd628690da581"},t(y,Object.assign({key:"ef855986dd101017ca182c40c2b6e632d4d71315"},this.getFormFieldProps({class:a("kol-single-select",{"kol-single-select--open":this.isOpen}),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,required:this.getRenderProp("required"),variant:this.getRenderProp("variant")})),t(_,{key:"153e855f05131d88bbe280d3078cbdd960c881b9",disabled:i,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:n,endAdornment:l},t(j,{key:"0d101aa66c5b3ec1d0901e1191a2d85160e5e391",block:"kol-single-select"},t(B,Object.assign({key:"853eed32101cf2b6a85a311f346a4ca5bb084fac"},this.getInputProps())),this.inputValue&&this.getRenderProp("hasClearButton")&&t(m,Object.assign({key:"3630716d5e2fcfe5f4c096835f0fa55cb36e10f6"},this.clearButton.getFcProps({_icons:"kolicon-cross",_label:this.translateDeleteSelection,_hideLabel:!0,_variant:"ghost",_disabled:i,_on:{onClick:this.handleClearButtonClick,onFocus:this.handleClearButtonFocus,onBlur:this.handleClearButtonBlur}},{class:P,hidden:i}))),t(E,{key:"1c2f36e7a06567c88ee4b922593a7969d238d5f4",disabled:i,handleClick:this.toggleListbox})),t(O,{key:"06856cc0df537602ef4cd2e461f7321af7a2454c",blockSuggestionMouseOver:this.blockSuggestionMouseOver,onKeyDown:this.handleDropdownKeyDown,style:{"--visible-options":""+(null!==(o=this.getRenderProp("rows"))&&void 0!==o?o:5)},hidden:!this.isOpen||i,id:c(this.id,"listbox"),"aria-labelledby":c(this.id,"label")},this.renderOptions()),s&&t(G,{key:"68c16e149befddf268b96004739702d8401d48b4",message:this.translateNoResultsMessage}),t(N,{key:"03d1b713f6aac23794335fd62c7a82e2aa26d4ec",message:s?this.translateNoResultsMessage:""}))))}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_placeholder:[{watchPlaceholder:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_options:[{watchOptions:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_hasClearButton:[{watchHasClearButton:0}],_rows:[{watchRows:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1795175086587"); src: url("kolicons.eot?t=1795175086587#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1795175086587") format("woff2"), url("kolicons.woff?t=1795175086587") format("woff"), url("kolicons.ttf?t=1795175086587") format("truetype"), url("kolicons.svg?t=1795175086587#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: "​"; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-custom-suggestions-option { line-height: 1.5; white-space: normal; overflow-wrap: break-word; } .kol-custom-suggestions-option:not(.kol-custom-suggestions-option--disabled) { cursor: pointer; } .kol-custom-suggestions-options-group--cursor-hidden .kol-custom-suggestions-option { cursor: none !important; } .kol-custom-suggestions-option--disabled, .kol-custom-suggestions-option--disabled * { cursor: not-allowed; } .kol-custom-suggestions-options-group { background-color: white; display: block; position: absolute; z-index: 2; max-height: calc(250 * 1rem / var(--kolibri-root-font-size, 16)); margin: 0; padding: 0; overflow-x: hidden; overflow-y: auto; list-style-type: none; } .kol-input-container:has(.kol-custom-suggestions-options-group--open) { z-index: 10; } .kol-custom-suggestions-toggle { display: flex; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; justify-content: center; cursor: default; } .kol-custom-suggestions-toggle.kol-custom-suggestions-toggle--disabled { cursor: not-allowed; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-input { background-color: transparent; width: 100%; min-width: var(--a11y-min-size); } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-single-select { } .kol-single-select__group .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-single-select__group :host { display: inline-block; } .kol-single-select__group .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-single-select__group .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-single-select__group .kol-button__interactive-element::before { content: "​"; } .kol-single-select__group .kol-button__text { flex: 1 0 100%; } .kol-single-select__group .kol-button { } .kol-single-select__group .kol-button__tooltip { height: 0; } .kol-single-select__group .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-single-select__group .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-single-select__no-results-message { display: flex; min-height: calc(50 * 1rem / var(--kolibri-root-font-size, 16)); align-items: center; justify-content: center; cursor: default; } .kol-single-select .kol-custom-suggestions-options-group { max-height: calc(40 * 1rem / var(--kolibri-root-font-size, 16) * var(--visible-options, 5) + 2 * 1rem / var(--kolibri-root-font-size, 16)) !important; } .kol-single-select--open .kol-custom-suggestions-toggle { transform: rotate(180deg); } .kol-custom-suggestions-toggle:not(.kol-custom-suggestions-toggle--disabled) { cursor: pointer; } }'}}},[545,"kol-single-select",{_accessKey:[1,"_access-key"],_ariaDetails:[1,"_aria-details"],_placeholder:[1],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_label:[1],_msg:[1],_name:[1],_on:[16],_options:[1],_required:[4],_shortKey:[1,"_short-key"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1032],_hasClearButton:[4,"_has-clear-button"],_rows:[2],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],isOpen:[32],blockSuggestionMouseOver:[32],filteredOptions:[32],inputValue:[32],getValue:[64],focus:[64]},[[0,"keydown","handleHostKeyDown"],[1,"mousemove","handleMouseEvent"],[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"]],{_accessKey:[{watchAccessKey:0}],_ariaDetails:[{watchAriaDetails:0}],_placeholder:[{watchPlaceholder:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_options:[{watchOptions:0}],_required:[{watchRequired:0}],_shortKey:[{watchShortKey:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_hasClearButton:[{watchHasClearButton:0}],_rows:[{watchRows:0}],_variant:[{watchVariant:0}]}]);s([u("ctaRef")],W.prototype,"focus",null);const Q=W,U=function(){"undefined"!=typeof customElements&&["kol-single-select"].forEach((t=>{"kol-single-select"===t&&(customElements.get(i(t))||customElements.define(i(t),W))}))};export{Q as KolSingleSelect,U as defineCustomElement}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as o,proxyCustomElement as e,Host as t,transformTag as i}from"@stencil/core/internal/client";import{_ as n}from"./tslib.es6.js";import{B as l}from"./base-web-component.js";import{b as a,s as r,c as s}from"./bem-registry.js";import{d as c}from"./props-from-config.js";import{l as d}from"./label.js";import{c as k}from"./links.js";import{L as f,l as b,a as m,d as h,b as p}from"./component6.js";import{v as u}from"./access-and-short-key.js";import{n as g}from"./dev.utils.js";import{c as y,d as _}from"./element-interaction.js";import{d as v,K as x}from"./events.js";import{a as w,b as z,c as j,h as T,s as L,i as B,d as G,t as I,e as C}from"./component3.js";import{d as E}from"./disabled.js";import{h as S}from"./href.js";import{l as q}from"./label-with-expert-slot.js";import{l as F}from"./link-target.js";import{T as K}from"./behavior.js";import{r as P,a as R}from"./unique-nav-labels.js";const A=k("KolSkipNav"),D={required:[A,d]},H=a.forBlock("kol-skip-nav"),N=H(),O=H("list"),U=H("list-item"),V=({label:e,linkItems:t})=>o("nav",{class:N,"aria-label":e},o("ul",{class:O},t.map(((e,t)=>o("li",{class:U,key:t},o(f,Object.assign({},e.fcProps))))))),W=e(class extends l{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.linkItems=[],this.ctaRef=y(),this.propsConfig=D}watchLabel(o){this.applyLabel(o)}watchLinks(o){this.applyLinks(o)}focus(o){return Promise.resolve()}componentWillLoad(){this.applyLabel(this._label,!0),this.applyLinks(this._links)}componentDidRender(){var o;this.ctaRef(null===(o=this.linkItems[0])||void 0===o?void 0:o.getAnchor()),this.linkItems.forEach((o=>o.syncTooltipListeners()))}disconnectedCallback(){this.linkItems.forEach((o=>o.destroy())),P(this.getRenderProp("label"))}applyLabel(o,e=!1){e||P(this.getRenderProp("label")),d.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label")),s(o),R(this.getRenderProp("label"))}applyLinks(o){A.apply(o,(o=>{this.setRenderProp("links",o),this.linkItems.forEach((o=>o.destroy())),this.linkItems=o.map((o=>((o,e)=>{var t;const i=new K(l.stateLess),n=y(),a=c(b);a.tabIndex=void 0;const s=(o,e)=>o.apply(e,(e=>{a[o.propName]=e}));return s(w,o._accessKey),s(z,o._ariaControls),s(m,o._ariaCurrentValue),s(j,o._ariaDescription),s(E,o._disabled),s(h,o._download),s(T,o._hideLabel),s(S,o._href),s(L,o._icons),s(B,null===(t=o._inline)||void 0===t||t),s(q,o._label),s(p,o._on),s(G,o._shortKey),"number"==typeof o._tabIndex&&s(I,o._tabIndex),s(F,o._target),s(C,o._tooltipAlign),u(o._accessKey,o._shortKey),i.componentWillLoad({label:(()=>{const o=a.label;if("string"==typeof o&&o.length>0)return o;const e=a.href;return"string"==typeof e?e:""})(),align:a.tooltipAlign}),a.ariaCurrent="",a.ariaDescriptionId=g(),a.expertSlot=""===o._label,a.handleAnchorClick=o=>{if(i.hideTooltip(),!0===a.disabled)return void o.preventDefault();const t="string"==typeof a.href?a.href:"",l=a.on;"function"==typeof(null==l?void 0:l.onClick)&&(r(o,n.el),l.onClick(o,t));const s=e();s&&v(s,x.click,t)},a.refAnchor=o=>{n(o)},a.refTooltip=i.setTooltipElementRef,{fcProps:a,getAnchor:()=>n.el,syncTooltipListeners:()=>{n.el&&i.syncListeners(void 0,n.el,!0)},destroy:()=>{i.destroy()}}})(o,(()=>this.host))))}))}render(){return o(t,{key:"87a2082411d6e0a8350897cffd1af54682bef711"},o(V,{key:"754035100bfe30e976a1593574750657b74c73bf",label:this.getRenderProp("label"),links:this.getRenderProp("links"),linkItems:this.linkItems}))}get host(){return this}static get watchers(){return{_label:[{watchLabel:0}],_links:[{watchLinks:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794497133718"); src: url("kolicons.eot?t=1794497133718#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794497133718") format("woff2"), url("kolicons.woff?t=1794497133718") format("woff"), url("kolicons.ttf?t=1794497133718") format("truetype"), url("kolicons.svg?t=1794497133718#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } :host { display: inline-block; } .kol-link { display: inline-flex; max-width: fit-content; } .kol-link--standalone { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: stretch; } .kol-link--standalone .kol-link__interactive-element { align-items: stretch; } .kol-link--standalone .kol-link__text { display: inline-flex; flex: 1 1 100%; place-items: center; } .kol-link__interactive-element { display: inline-flex; flex: 1; align-items: baseline; place-items: center; text-align: left; text-decoration-line: none; } .kol-link__interactive-element:focus:not([aria-disabled], [disabled]) .kol-span__label, .kol-link__interactive-element:hover:not([aria-disabled], [disabled]) .kol-span__label { text-decoration-thickness: 0.2em; } .kol-link .kol-span__label { text-decoration-line: underline; } .kol-link__icon { display: inline-flex; } .kol-skip-nav__list { display: grid; place-items: center; list-style: none; } .kol-skip-nav__list-item { height: 0; } .kol-skip-nav .kol-link { position: absolute; left: calc(-99999 * 1rem / var(--kolibri-root-font-size, 16)); z-index: 9999999; line-height: 1; } .kol-skip-nav .kol-link:focus-within { position: unset; left: unset; } .kol-skip-nav .kol-link__interactive-element:focus { background-color: white; } }'}}},[545,"kol-skip-nav",{_label:[1],_links:[1],linkItems:[32],focus:[64]},void 0,{_label:[{watchLabel:0}],_links:[{watchLinks:0}]}]);n([_("ctaRef")],W.prototype,"focus",null);const J=W,M=function(){"undefined"!=typeof customElements&&["kol-skip-nav"].forEach((o=>{"kol-skip-nav"===o&&(customElements.get(i(o))||customElements.define(i(o),W))}))};export{J as KolSkipNav,M as defineCustomElement}
4
+ import{h as o,i as e,p as t,j as i,H as n,t as l}from"./common.js";import{_ as a}from"./tslib.es6.js";import{B as r,a as s,e as c}from"./base-web-component.js";import{l as k}from"./label.js";import{c as d}from"./links.js";import{b}from"./bem-registry.js";import{L as m,l as f,a as h,d as p,b as u}from"./component4.js";import{v as g}from"./access-and-short-key.js";import{n as v}from"./dev.utils.js";import{c as y,d as _}from"./element-interaction.js";import{d as x,K as w}from"./events.js";import{a as z,b as j,c as T,h as L,s as C,i as B,d as G,t as I,e as E}from"./component6.js";import{d as S}from"./disabled.js";import{h as q,l as F}from"./link-target.js";import{l as H}from"./label-with-expert-slot.js";import{T as K}from"./behavior.js";import{r as P,a as R}from"./unique-nav-labels.js";const A=d("KolSkipNav"),D={required:[A,k]},N=b.forBlock("kol-skip-nav"),O=N("list"),U=N("list-item"),V=({label:e,linkItems:t})=>o(r,{component:"nav",block:"kol-skip-nav","aria-label":e},o("ul",{class:O},t.map(((e,t)=>o("li",{class:U,key:t},o(m,Object.assign({},e.fcProps))))))),W=t(class extends s{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.linkItems=[],this.ctaRef=y(),this.propsConfig=D}watchLabel(o){this.applyLabel(o)}watchLinks(o){this.applyLinks(o)}focus(o){return Promise.resolve()}componentWillLoad(){this.applyLabel(this._label,!0),this.applyLinks(this._links)}componentDidRender(){var o;this.ctaRef(null===(o=this.linkItems[0])||void 0===o?void 0:o.getAnchor()),this.linkItems.forEach((o=>o.syncTooltipListeners()))}disconnectedCallback(){this.linkItems.forEach((o=>o.destroy())),P(this.getRenderProp("label"))}applyLabel(o,e=!1){e||P(this.getRenderProp("label")),k.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label")),i(o),R(this.getRenderProp("label"))}applyLinks(o){A.apply(o,(o=>{this.setRenderProp("links",o),this.linkItems.forEach((o=>o.destroy())),this.linkItems=o.map((o=>((o,t)=>{var i;const n=new K(s.stateLess),l=y(),a=c(f);a.tabIndex=void 0;const r=(o,e)=>o.apply(e,(e=>{a[o.propName]=e}));return r(z,o._accessKey),r(j,o._ariaControls),r(h,o._ariaCurrentValue),r(T,o._ariaDescription),r(S,o._disabled),r(p,o._download),r(L,o._hideLabel),r(q,o._href),r(C,o._icons),r(B,null===(i=o._inline)||void 0===i||i),r(H,o._label),r(u,o._on),r(G,o._shortKey),"number"==typeof o._tabIndex&&r(I,o._tabIndex),r(F,o._target),r(E,o._tooltipAlign),g(o._accessKey,o._shortKey),n.componentWillLoad({label:(()=>{const o=a.label;if("string"==typeof o&&o.length>0)return o;const e=a.href;return"string"==typeof e?e:""})(),align:a.tooltipAlign}),a.ariaCurrent="",a.ariaDescriptionId=v(),a.expertSlot=""===o._label,a.handleAnchorClick=o=>{if(n.hideTooltip(),!0===a.disabled)return void o.preventDefault();const i="string"==typeof a.href?a.href:"",r=a.on;"function"==typeof(null==r?void 0:r.onClick)&&(e(o,l.el),r.onClick(o,i));const s=t();s&&x(s,w.click,i)},a.refAnchor=o=>{l(o)},a.refTooltip=n.setTooltipElementRef,{fcProps:a,getAnchor:()=>l.el,syncTooltipListeners:()=>{l.el&&n.syncListeners(void 0,l.el,!0)},destroy:()=>{n.destroy()}}})(o,(()=>this.host))))}))}render(){return o(n,{key:"a891a42379dce802379fa4c4807723d00af45c52"},o(V,{key:"3fc3c0c519bb836699e86b12e19ddd15718e1cc2",label:this.getRenderProp("label"),links:this.getRenderProp("links"),linkItems:this.linkItems}))}get host(){return this}static get watchers(){return{_label:[{watchLabel:0}],_links:[{watchLinks:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1795175086587"); src: url("kolicons.eot?t=1795175086587#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1795175086587") format("woff2"), url("kolicons.woff?t=1795175086587") format("woff"), url("kolicons.ttf?t=1795175086587") format("truetype"), url("kolicons.svg?t=1795175086587#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } :host { display: inline-block; } .kol-link { display: inline-flex; max-width: fit-content; } .kol-link--standalone { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: stretch; } .kol-link--standalone .kol-link__interactive-element { align-items: stretch; } .kol-link--standalone .kol-link__text { display: inline-flex; flex: 1 1 100%; place-items: center; } .kol-link__interactive-element { display: inline-flex; flex: 1; align-items: baseline; place-items: center; text-align: left; text-decoration-line: none; } .kol-link__interactive-element:focus:not([aria-disabled], [disabled]) .kol-span__label, .kol-link__interactive-element:hover:not([aria-disabled], [disabled]) .kol-span__label { text-decoration-thickness: 0.2em; } .kol-link .kol-span__label { text-decoration-line: underline; } .kol-link__icon { display: inline-flex; } .kol-skip-nav__list { display: grid; place-items: center; list-style: none; } .kol-skip-nav__list-item { height: 0; } .kol-skip-nav .kol-link { position: absolute; left: calc(-99999 * 1rem / var(--kolibri-root-font-size, 16)); z-index: 9999999; line-height: 1; } .kol-skip-nav .kol-link:focus-within { position: unset; left: unset; } .kol-skip-nav .kol-link__interactive-element:focus { background-color: white; } }'}}},[545,"kol-skip-nav",{_label:[1],_links:[1],linkItems:[32],focus:[64]},void 0,{_label:[{watchLabel:0}],_links:[{watchLinks:0}]}]);a([_("ctaRef")],W.prototype,"focus",null);const J=W,M=function(){"undefined"!=typeof customElements&&["kol-skip-nav"].forEach((o=>{"kol-skip-nav"===o&&(customElements.get(l(o))||customElements.define(l(o),W))}))};export{J as KolSkipNav,M as defineCustomElement}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{proxyCustomElement as o,h as i,Host as e,transformTag as t}from"@stencil/core/internal/client";import{B as r}from"./base-web-component.js";import{s as a,a as n,v as l,S as s}from"./component11.js";import"./bem-registry.js";import"./props-from-config.js";import{l as c}from"./label.js";const d=o(class extends r{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.propsConfig=a,this._show=void 0,this._label=void 0,this._variant=void 0}watchShow(o){n.apply(o,(o=>this.setRenderProp("show",o)))}watchLabel(o){c.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}watchVariant(o){l.apply(o,(o=>this.setRenderProp("variant",o)))}componentWillLoad(){n.apply(this._show,(o=>this.setRenderProp("show",o))),c.apply(this._label,(o=>this.setRenderProp("label",o)),this.isRequired("label")),l.apply(this._variant,(o=>this.setRenderProp("variant",o)))}render(){return i(e,{key:"fb419a3965dd30d5e436b1961c15930a7f2cfc16"},i(s,{key:"130af75cca70c922708d22573b66aee02ef25d03",show:this.getRenderProp("show"),label:this.getRenderProp("label"),variant:this.getRenderProp("variant")}))}static get watchers(){return{_show:[{watchShow:0}],_label:[{watchLabel:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { @keyframes rotate { to { transform: rotate(1turn); } } @keyframes growingCircle { 0% { opacity: 0.5; border-color: white; clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0); } 25% { opacity: 0.75; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, #000)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0); } 50% { opacity: 1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%); } 75% { opacity: 1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%); } 100% { opacity: 0.1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0); } } .kol-spin__spinner--cycle { width: calc(var(--kol-spin-size, 48) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(var(--kol-spin-size, 48) * 1rem / var(--kolibri-root-font-size, 16)); } .kol-spin__spinner--cycle .kol-spin__loader { border-radius: 50%; display: block; position: relative; width: 100%; height: 100%; animation: 2s linear infinite rotate; } @media (prefers-reduced-motion) { .kol-spin__spinner--cycle .kol-spin__loader { animation-duration: 4s !important; } } .kol-spin__spinner--cycle .kol-spin__loader::before { border-radius: 50%; position: absolute; inset: 0; content: ""; animation: 3s linear infinite growingCircle; border: 5px solid var(--kol-spin-color, var(--kol-theme-spin-color, #333)); } @media (prefers-reduced-motion) { .kol-spin__spinner--cycle .kol-spin__loader::before { animation-duration: 6s !important; } } } @layer kol-component { @keyframes spin1 { 0% { transform: scale(0); } 100% { transform: scale(1); } } @keyframes spin2 { 0% { transform: translate(0, 0); } 100% { transform: translate(calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)), 0); } } @keyframes spin3 { 0% { transform: scale(1); } 100% { transform: scale(0); } } @media (prefers-reduced-motion) { .kol-spin__spinner-element { animation-duration: 2s !important; } } .kol-spin__spinner--dot { --kol-spin-border-width: calc(var(--kol-spin-size, 13) / 10); width: calc(calc(var(--kol-spin-size, 13) * 3 + 2) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(calc(var(--kol-spin-size, 13) + var(--kol-spin-border-width) * 2) * 1rem / var(--kolibri-root-font-size, 16)); } .kol-spin__spinner--dot .kol-spin__spinner-element { background-color: var(--kol-spin-color, var(--kol-theme-spin-color, #000)); border-radius: 50%; position: absolute; top: 1px; width: calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)); animation-timing-function: cubic-bezier(0, 1, 1, 0); border: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)) solid white; } .kol-spin__spinner--dot .kol-spin__spinner-element--1 { left: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 0; animation: 1s infinite spin1; } .kol-spin__spinner--dot .kol-spin__spinner-element--2 { left: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; animation: 1s infinite spin2; } .kol-spin__spinner--dot .kol-spin__spinner-element--3 { left: calc(calc(var(--kol-spin-size, 13) + var(--kol-spin-border-width)) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; animation: 1s infinite spin2; } .kol-spin__spinner--dot .kol-spin__spinner-element--neutral { opacity: 0.6; left: calc(calc(var(--kol-spin-size, 13) * 2 + var(--kol-spin-border-width)) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 0; animation: 1s infinite spin3; } } @layer kol-component { .kol-spin { display: contents; } .kol-spin__spinner { display: block; position: relative; } }'}}},[545,"kol-spin",{_show:[4],_label:[1],_variant:[1]},void 0,{_show:[{watchShow:0}],_label:[{watchLabel:0}],_variant:[{watchVariant:0}]}]),p=d,k=function(){"undefined"!=typeof customElements&&["kol-spin"].forEach((o=>{"kol-spin"===o&&(customElements.get(t(o))||customElements.define(t(o),d))}))};export{p as KolSpin,k as defineCustomElement}
4
+ import{p as o,h as e,H as i,t}from"./common.js";import{a as r}from"./base-web-component.js";import{s as a,a as l,v as n,S as s}from"./component14.js";import{l as c}from"./label.js";const d=o(class extends r{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.propsConfig=a,this._show=void 0,this._label=void 0,this._variant=void 0}watchShow(o){l.apply(o,(o=>this.setRenderProp("show",o)))}watchLabel(o){c.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}watchVariant(o){n.apply(o,(o=>this.setRenderProp("variant",o)))}componentWillLoad(){l.apply(this._show,(o=>this.setRenderProp("show",o))),c.apply(this._label,(o=>this.setRenderProp("label",o)),this.isRequired("label")),n.apply(this._variant,(o=>this.setRenderProp("variant",o)))}render(){return e(i,{key:"79ccabb878e63a508c5b37d46af444dd67edb806"},e(s,{key:"623a589f960f2cc97d31966df4a8b88d1ced4b36",show:this.getRenderProp("show"),label:this.getRenderProp("label"),variant:this.getRenderProp("variant")}))}static get watchers(){return{_show:[{watchShow:0}],_label:[{watchLabel:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { @keyframes rotate { to { transform: rotate(1turn); } } @keyframes growingCircle { 0% { opacity: 0.5; border-color: white; clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0); } 25% { opacity: 0.75; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, #000)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0); } 50% { opacity: 1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%); } 75% { opacity: 1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%); } 100% { opacity: 0.1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0); } } .kol-spin__spinner--cycle { width: calc(var(--kol-spin-size, 48) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(var(--kol-spin-size, 48) * 1rem / var(--kolibri-root-font-size, 16)); } .kol-spin__spinner--cycle .kol-spin__loader { border-radius: 50%; display: block; position: relative; width: 100%; height: 100%; animation: 2s linear infinite rotate; } @media (prefers-reduced-motion) { .kol-spin__spinner--cycle .kol-spin__loader { animation-duration: 4s !important; } } .kol-spin__spinner--cycle .kol-spin__loader::before { border-radius: 50%; position: absolute; inset: 0; content: ""; animation: 3s linear infinite growingCircle; border: 5px solid var(--kol-spin-color, var(--kol-theme-spin-color, #333)); } @media (prefers-reduced-motion) { .kol-spin__spinner--cycle .kol-spin__loader::before { animation-duration: 6s !important; } } } @layer kol-component { @keyframes spin1 { 0% { transform: scale(0); } 100% { transform: scale(1); } } @keyframes spin2 { 0% { transform: translate(0, 0); } 100% { transform: translate(calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)), 0); } } @keyframes spin3 { 0% { transform: scale(1); } 100% { transform: scale(0); } } @media (prefers-reduced-motion) { .kol-spin__spinner-element { animation-duration: 2s !important; } } .kol-spin__spinner--dot { --kol-spin-border-width: calc(var(--kol-spin-size, 13) / 10); width: calc(calc(var(--kol-spin-size, 13) * 3 + 2) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(calc(var(--kol-spin-size, 13) + var(--kol-spin-border-width) * 2) * 1rem / var(--kolibri-root-font-size, 16)); } .kol-spin__spinner--dot .kol-spin__spinner-element { background-color: var(--kol-spin-color, var(--kol-theme-spin-color, #000)); border-radius: 50%; position: absolute; top: 1px; width: calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)); animation-timing-function: cubic-bezier(0, 1, 1, 0); border: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)) solid white; } .kol-spin__spinner--dot .kol-spin__spinner-element--1 { left: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 0; animation: 1s infinite spin1; } .kol-spin__spinner--dot .kol-spin__spinner-element--2 { left: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; animation: 1s infinite spin2; } .kol-spin__spinner--dot .kol-spin__spinner-element--3 { left: calc(calc(var(--kol-spin-size, 13) + var(--kol-spin-border-width)) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; animation: 1s infinite spin2; } .kol-spin__spinner--dot .kol-spin__spinner-element--neutral { opacity: 0.6; left: calc(calc(var(--kol-spin-size, 13) * 2 + var(--kol-spin-border-width)) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 0; animation: 1s infinite spin3; } } @layer kol-component { .kol-spin { display: contents; } .kol-spin__spinner { display: block; position: relative; } }'}}},[545,"kol-spin",{_show:[4],_label:[1],_variant:[1]},void 0,{_show:[{watchShow:0}],_label:[{watchLabel:0}],_variant:[{watchVariant:0}]}]),p=d,k=function(){"undefined"!=typeof customElements&&["kol-spin"].forEach((o=>{"kol-spin"===o&&(customElements.get(t(o))||customElements.define(t(o),d))}))};export{p as KolSpin,k as defineCustomElement}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as o,proxyCustomElement as t,transformTag as e}from"@stencil/core/internal/client";import{_ as i}from"./tslib.es6.js";import{c as n}from"./item2.js";import{b as a}from"./bem-registry.js";import{c as l}from"./clsx.js";import{B as r}from"./component.js";import{B as s}from"./component10.js";import{P as c}from"./behavior4.js";import{t as h}from"./i18n.js";import{n as d}from"./dev.utils.js";import{d as p,a as b}from"./element-interaction.js";import{B as k}from"./base.js";const u=a.forBlock("kol-split-button"),m=u("button"),f=u("horizontal-line"),_=u("root"),w=u("secondary-button"),y=t=>{const{buttonProps:e,buttonWrapperClass:i,class:n,dropdownProps:a,refDropdown:h}=t;return o(r,{block:"kol-split-button",class:n},o("div",{class:_},o("div",{class:l(m,i)},o(s,Object.assign({},e))),o("div",{class:f}),o("div",{class:w,ref:h},o(c,Object.assign({},a)))))},g=t(class extends k{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.ariaDescriptionId=d(),this.dropdownOpen=!1,this._accessKey=void 0,this._ariaControls=void 0,this._ariaDescription=void 0,this._ariaExpanded=void 0,this._ariaSelected=void 0,this._customClass=void 0,this._disabled=!1,this._hideLabel=!1,this._icons=void 0,this._name=void 0,this._on=void 0,this._role=void 0,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._type="button",this._value=void 0,this._variant="normal",this.setDropdownRef=o=>{this.dropdownElement=o},this.initFormAssociation()}watchAccessKey(o){this.applyAccessKey(o,this._shortKey)}watchAriaControls(o){this.applyAriaControls(o)}watchAriaDescription(o){this.applyAriaDescription(o)}watchAriaExpanded(o){this.applyAriaExpanded(o)}watchAriaSelected(o){this.applyAriaSelected(o)}watchCustomClass(o){this.applyCustomClass(o)}watchDisabled(o){var t;this.applyDisabled(o),null===(t=this.dropdownItem)||void 0===t||t.setDisabled(o)}watchHideLabel(o){this.applyHideLabel(o)}watchIcons(o){this.applyIcons(o)}watchLabel(o){this.applyLabel(o)}watchName(o){this.applyName(o)}watchOn(o){this.applyOn({onClick:null==o?void 0:o.onClick})}watchRole(){}watchShortKey(o){this.applyShortKey(o,this._accessKey)}watchSyncValueBySelector(o){this.applySyncValueBySelector(o)}watchTooltipAlign(o){this.applyTooltipAlign(o)}watchType(o){this.applyType(o)}watchValue(o){this.applyValue(o)}watchVariant(o){this.applyVariant(o)}getValue(){return Promise.resolve(this._value)}focus(o){return Promise.resolve()}async click(){return Promise.resolve()}closePopup(){return this.dropdownItem.hide(),Promise.resolve()}componentWillLoad(){this.unsetButtonTabIndex(),this.watchAccessKey(this._accessKey),this.watchAriaControls(this._ariaControls),this.watchAriaDescription(this._ariaDescription),this.watchAriaExpanded(this._ariaExpanded),this.watchAriaSelected(this._ariaSelected),this.watchCustomClass(this._customClass),this.watchDisabled(this._disabled),this.watchHideLabel(this._hideLabel),this.watchIcons(this._icons),this.applyInline(!1),this.watchLabel(this._label),this.watchName(this._name),this.watchOn(this._on),this.watchShortKey(this._shortKey),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTooltipAlign(this._tooltipAlign),this.watchType(this._type),this.watchValue(this._value),this.watchVariant(this._variant),this.initTooltipBehavior(),this.dropdownItem=n({disabled:this._disabled,getEventTarget:()=>this.dropdownElement,getFlagHost:()=>this.host,getOpen:()=>this.dropdownOpen,hideLabel:!0,icons:"kolicon-chevron-down",label:h("kol-split-button-dropdown-label-open"),popoverAlign:"bottom",setOpen:o=>{this.dropdownOpen=o}})}componentDidRender(){this.syncTooltipListeners(),this.dropdownItem.syncListeners()}disconnectedCallback(){this.destroyTooltipBehavior(),this.dropdownItem.destroy()}getButtonWrapperClass(){return l({[this._variant]:"custom"!==this._variant,[this._customClass]:"custom"===this._variant&&"string"==typeof this._customClass&&this._customClass.length>0})}render(){return o(y,{key:"21bc7a574f5c58d2959a4f653514c9156211b4b4",buttonProps:this.getButtonFCProps(),buttonWrapperClass:this.getButtonWrapperClass(),dropdownProps:this.dropdownItem.getFcProps(),refDropdown:this.setDropdownRef})}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaControls:[{watchAriaControls:0}],_ariaDescription:[{watchAriaDescription:0}],_ariaExpanded:[{watchAriaExpanded:0}],_ariaSelected:[{watchAriaSelected:0}],_customClass:[{watchCustomClass:0}],_disabled:[{watchDisabled:0}],_hideLabel:[{watchHideLabel:0}],_icons:[{watchIcons:0}],_label:[{watchLabel:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_role:[{watchRole:0}],_shortKey:[{watchShortKey:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_type:[{watchType:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794497133718"); src: url("kolicons.eot?t=1794497133718#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794497133718") format("woff2"), url("kolicons.woff?t=1794497133718") format("woff"), url("kolicons.ttf?t=1794497133718") format("truetype"), url("kolicons.svg?t=1794497133718#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-popover-button { display: inline; } .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-popover-button--inline { display: inline-block; } .kol-popover-button--inline .kol-button, .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-split-button { display: flex; position: relative; width: 100%; } .kol-split-button__root { display: flex; position: relative; width: 100%; align-items: stretch; } .kol-split-button__button { min-width: 0; flex: 1 1 auto; text-align: left; } }'}}},[545,"kol-split-button",{_accessKey:[1,"_access-key"],_ariaControls:[1,"_aria-controls"],_ariaDescription:[1,"_aria-description"],_ariaExpanded:[4,"_aria-expanded"],_ariaSelected:[4,"_aria-selected"],_customClass:[1,"_custom-class"],_disabled:[4],_hideLabel:[4,"_hide-label"],_icons:[1],_label:[1],_name:[1],_on:[16],_role:[1],_shortKey:[1,"_short-key"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_type:[1],_value:[8],_variant:[1],ariaDescriptionId:[32],dropdownOpen:[32],getValue:[64],focus:[64],click:[64],closePopup:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_ariaControls:[{watchAriaControls:0}],_ariaDescription:[{watchAriaDescription:0}],_ariaExpanded:[{watchAriaExpanded:0}],_ariaSelected:[{watchAriaSelected:0}],_customClass:[{watchCustomClass:0}],_disabled:[{watchDisabled:0}],_hideLabel:[{watchHideLabel:0}],_icons:[{watchIcons:0}],_label:[{watchLabel:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_role:[{watchRole:0}],_shortKey:[{watchShortKey:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_type:[{watchType:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);i([p("ctaRef")],g.prototype,"focus",null),i([b("ctaRef")],g.prototype,"click",null);const v=g,x=function(){"undefined"!=typeof customElements&&["kol-split-button"].forEach((o=>{"kol-split-button"===o&&(customElements.get(e(o))||customElements.define(e(o),g))}))};export{v as KolSplitButton,x as defineCustomElement}
4
+ import{h as o,p as t,t as e}from"./common.js";import{_ as i}from"./tslib.es6.js";import{c as n}from"./item2.js";import{b as a}from"./bem-registry.js";import{f as l,B as r}from"./base-web-component.js";import{B as s}from"./component9.js";import{P as c}from"./behavior4.js";import{t as h}from"./i18n.js";import{n as d}from"./dev.utils.js";import{d as p,a as b}from"./element-interaction.js";import{B as k}from"./base.js";const u=a.forBlock("kol-split-button"),m=u("button"),f=u("horizontal-line"),_=u("root"),w=u("secondary-button"),y=t=>{const{buttonProps:e,buttonWrapperClass:i,class:n,dropdownProps:a,refDropdown:h}=t;return o(r,{block:"kol-split-button",class:n},o("div",{class:_},o("div",{class:l(m,i)},o(s,Object.assign({},e))),o("div",{class:f}),o("div",{class:w,ref:h},o(c,Object.assign({},a)))))},g=t(class extends k{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.ariaDescriptionId=d(),this.dropdownOpen=!1,this._accessKey=void 0,this._ariaControls=void 0,this._ariaDescription=void 0,this._ariaExpanded=void 0,this._ariaSelected=void 0,this._customClass=void 0,this._disabled=!1,this._hideLabel=!1,this._icons=void 0,this._name=void 0,this._on=void 0,this._role=void 0,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._type="button",this._value=void 0,this._variant="normal",this.setDropdownRef=o=>{this.dropdownElement=o},this.initFormAssociation()}watchAccessKey(o){this.applyAccessKey(o,this._shortKey)}watchAriaControls(o){this.applyAriaControls(o)}watchAriaDescription(o){this.applyAriaDescription(o)}watchAriaExpanded(o){this.applyAriaExpanded(o)}watchAriaSelected(o){this.applyAriaSelected(o)}watchCustomClass(o){this.applyCustomClass(o)}watchDisabled(o){var t;this.applyDisabled(o),null===(t=this.dropdownItem)||void 0===t||t.setDisabled(o)}watchHideLabel(o){this.applyHideLabel(o)}watchIcons(o){this.applyIcons(o)}watchLabel(o){this.applyLabel(o)}watchName(o){this.applyName(o)}watchOn(o){this.applyOn({onClick:null==o?void 0:o.onClick})}watchRole(){}watchShortKey(o){this.applyShortKey(o,this._accessKey)}watchSyncValueBySelector(o){this.applySyncValueBySelector(o)}watchTooltipAlign(o){this.applyTooltipAlign(o)}watchType(o){this.applyType(o)}watchValue(o){this.applyValue(o)}watchVariant(o){this.applyVariant(o)}getValue(){return Promise.resolve(this._value)}focus(o){return Promise.resolve()}async click(){return Promise.resolve()}closePopup(){return this.dropdownItem.hide(),Promise.resolve()}componentWillLoad(){this.unsetButtonTabIndex(),this.watchAccessKey(this._accessKey),this.watchAriaControls(this._ariaControls),this.watchAriaDescription(this._ariaDescription),this.watchAriaExpanded(this._ariaExpanded),this.watchAriaSelected(this._ariaSelected),this.watchCustomClass(this._customClass),this.watchDisabled(this._disabled),this.watchHideLabel(this._hideLabel),this.watchIcons(this._icons),this.applyInline(!1),this.watchLabel(this._label),this.watchName(this._name),this.watchOn(this._on),this.watchShortKey(this._shortKey),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTooltipAlign(this._tooltipAlign),this.watchType(this._type),this.watchValue(this._value),this.watchVariant(this._variant),this.initTooltipBehavior(),this.dropdownItem=n({disabled:this._disabled,getEventTarget:()=>this.dropdownElement,getFlagHost:()=>this.host,getOpen:()=>this.dropdownOpen,hideLabel:!0,icons:"kolicon-chevron-down",label:h("kol-split-button-dropdown-label-open"),popoverAlign:"bottom",setOpen:o=>{this.dropdownOpen=o}})}componentDidRender(){this.syncTooltipListeners(),this.dropdownItem.syncListeners()}disconnectedCallback(){this.destroyTooltipBehavior(),this.dropdownItem.destroy()}getButtonWrapperClass(){return l({[this._variant]:"custom"!==this._variant,[this._customClass]:"custom"===this._variant&&"string"==typeof this._customClass&&this._customClass.length>0})}render(){return o(y,{key:"2296cf3338e670d37620c935573711c7cef43c83",buttonProps:this.getButtonFCProps(),buttonWrapperClass:this.getButtonWrapperClass(),dropdownProps:this.dropdownItem.getFcProps(),refDropdown:this.setDropdownRef})}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_ariaControls:[{watchAriaControls:0}],_ariaDescription:[{watchAriaDescription:0}],_ariaExpanded:[{watchAriaExpanded:0}],_ariaSelected:[{watchAriaSelected:0}],_customClass:[{watchCustomClass:0}],_disabled:[{watchDisabled:0}],_hideLabel:[{watchHideLabel:0}],_icons:[{watchIcons:0}],_label:[{watchLabel:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_role:[{watchRole:0}],_shortKey:[{watchShortKey:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_type:[{watchType:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1795175086587"); src: url("kolicons.eot?t=1795175086587#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1795175086587") format("woff2"), url("kolicons.woff?t=1795175086587") format("woff"), url("kolicons.ttf?t=1795175086587") format("truetype"), url("kolicons.svg?t=1795175086587#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-button { background-color: transparent; display: inline-block; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); margin: 0; padding: 0; text-align: center; } .kol-button__interactive-element { border-style: none; display: block; border-width: medium; font-weight: inherit; font-style: inherit; text-align: inherit; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-popover-button { display: inline; } .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-popover-button--inline { display: inline-block; } .kol-popover-button--inline .kol-button, .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-split-button { display: flex; position: relative; width: 100%; } .kol-split-button__root { display: flex; position: relative; width: 100%; align-items: stretch; } .kol-split-button__button { min-width: 0; flex: 1 1 auto; text-align: left; } }'}}},[545,"kol-split-button",{_accessKey:[1,"_access-key"],_ariaControls:[1,"_aria-controls"],_ariaDescription:[1,"_aria-description"],_ariaExpanded:[4,"_aria-expanded"],_ariaSelected:[4,"_aria-selected"],_customClass:[1,"_custom-class"],_disabled:[4],_hideLabel:[4,"_hide-label"],_icons:[1],_label:[1],_name:[1],_on:[16],_role:[1],_shortKey:[1,"_short-key"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_type:[1],_value:[8],_variant:[1],ariaDescriptionId:[32],dropdownOpen:[32],getValue:[64],focus:[64],click:[64],closePopup:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_ariaControls:[{watchAriaControls:0}],_ariaDescription:[{watchAriaDescription:0}],_ariaExpanded:[{watchAriaExpanded:0}],_ariaSelected:[{watchAriaSelected:0}],_customClass:[{watchCustomClass:0}],_disabled:[{watchDisabled:0}],_hideLabel:[{watchHideLabel:0}],_icons:[{watchIcons:0}],_label:[{watchLabel:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_role:[{watchRole:0}],_shortKey:[{watchShortKey:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_type:[{watchType:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);i([p("ctaRef")],g.prototype,"focus",null),i([b("ctaRef")],g.prototype,"click",null);const v=g,x=function(){"undefined"!=typeof customElements&&["kol-split-button"].forEach((o=>{"kol-split-button"===o&&(customElements.get(e(o))||customElements.define(e(o),g))}))};export{v as KolSplitButton,x as defineCustomElement}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{proxyCustomElement as t,h as e,Host as o,transformTag as i}from"@stencil/core/internal/client";import{t as n}from"./i18n.js";import{c as l,P as a}from"./item4.js";import{p as r,g as s}from"./bem-registry.js";import{a as c}from"./aria-labelledby.js";import{B as d,t as h,a as k,v as p}from"./base4.js";import{c as b,n as _,b as f,a as u,t as m}from"./props-from-config.js";import{C as g}from"./keyboard.js";import{d as v,K as y}from"./events.js";const x=b("allowMultiSort",!1,_),w=["both","bottom","top"],z=b("paginationPosition","bottom",(t=>{const e=f(t);if(w.includes(e))return e;throw Error("Invalid pagination position: "+e)})),S=t=>{try{return r(t)}catch(e){return t}},j=b("pagination",{_page:1,_pageSize:10,_max:0},(t=>{const e=S(t);if(!0===e||""===e)return{};if("object"==typeof e&&null!==e)return e;throw Error("Invalid table pagination: expected true, an empty string or a pagination object.")})),C=u(),O=b("headers",{horizontal:[],vertical:[]},(t=>{const e="string"==typeof t?r(t):t;if("object"==typeof e&&null!==e)return e;throw Error("Invalid table headers: expected an object.")})),P=t=>void 0===t.type||"default"===t.type;function T(t,e,o){if(P(t)&&!o&&"function"==typeof t.compareFn){if(t.key){const o=e.find((e=>e.key===t.key));if(null==o?void 0:o.direction)return o.direction}return"NOS"}}function D(t,e,o,i){if(P(t)&&!o&&i&&"function"==typeof t.compareFn&&t.key){const o=e.findIndex((e=>e.key===t.key));if(o>=0)return o+1}}const L=[10,20,50,100],M=t(class extends d{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.pagination={_page:1,_pageSize:10,_max:0},this.renderCount=0,this.externalLabelElements=[],this.hasScrollbar=!1,this.settingsChangedCounter=0,this.sortedData=[],this.stickyColsDisabled=!1,this.data=[],this.headers={horizontal:[],vertical:[]},this.allowMultiSort=!1,this.paginationPosition="bottom",this.statefulOn={},this.sortData=[],this.disableSort=!1,this.showPagination=!1,this.pageEndSlice=10,this.paginationItems={},this.rowKeys=new Map,this.statelessOn={onSort:(t,{key:e})=>{const o=function(t,e){var o,i;const n=[];for(const e of[...null!==(o=t.horizontal)&&void 0!==o?o:[],...null!==(i=t.vertical)&&void 0!==i?i:[]])Array.isArray(e)&&n.push(...e);return n.find((t=>t.key===e))}(this.headers,e);if(o){const t=function(t,e,o){var i;if(!P(e)||"function"!=typeof e.compareFn)return;let n=o||e.key===(null===(i=t[0])||void 0===i?void 0:i.key)?t.map((t=>Object.assign({},t))):[];const l=n.findIndex((t=>t.key===e.key));if(l>=0){const t=n[l];switch(t.direction){case"ASC":t.direction="DESC";break;case"DESC":n=n.filter(((t,e)=>e!==l));break;default:t.direction="ASC"}}else e.key&&n.push({label:e.label,key:e.key,compareFn:e.compareFn,direction:"ASC"});return n}(this.sortData,o,this.allowMultiSort);t&&(this.sortData=t,this.updateSortedData())}}},this.handlePagination={onClick:(t,e)=>{var o;"function"==typeof(null===(o=this.pagination._on)||void 0===o?void 0:o.onClick)&&this.pagination._on.onClick(t,e),this.pagination=Object.assign(Object.assign({},this.pagination),{_page:e})},onChangePage:(t,e)=>{var o;"function"==typeof(null===(o=this.pagination._on)||void 0===o?void 0:o.onChangePage)&&this.pagination._on.onChangePage(t,e),this.pagination=Object.assign(Object.assign({},this.pagination),{_page:e})},onChangePageSize:(t,e)=>{var o;"function"==typeof(null===(o=this.pagination._on)||void 0===o?void 0:o.onChangePageSize)&&this.pagination._on.onChangePageSize(t,e),this.pagination=Object.assign(Object.assign({},this.pagination),{_pageSize:e})}},this._ariaLabelledby=void 0,this._allowMultiSort=void 0,this._dataFoot=void 0,this._fixedCols=void 0,this._loading=void 0,this._pagination=void 0,this._paginationPosition="bottom",this._selection=void 0,this._on=void 0,this._hasSettingsMenu=void 0,this._variant=void 0,this.updateSortedData=()=>{this.sortedData=function(t,e,o){if(o)return t;const i=[...t];return e.length>0&&i.sort(((t,o)=>{for(const i of e){const e=i.compareFn(t,o,i.direction);if(0!==e)return"ASC"===i.direction?e:-e}return 0})),i}(this.data,this.sortData,this.disableSort);const t={headers:this.getRenderProp("headers"),sortedData:this.sortedData};this.emitSortChange(t)},this.handleChangeHeaderCells=t=>{this.adjustedHeaderCells=t}}watchAriaLabelledby(t){this.resolveExternalLabel(t)}watchAllowMultiSort(t){x.apply(t,(t=>{this.allowMultiSort=t}))}watchData(t){h.apply(t,(t=>{this.data=t,setTimeout(this.updateSortedData)}))}watchDataFoot(t){k.apply(t,(t=>{this.setRenderProp("dataFoot",t),setTimeout(this.updateSortedData)}))}watchFixedCols(t){this.applyFixedCols(t)}watchHeaders(t){O.apply(t,(t=>{(function(t,e){const o=t=>{var e,o,i,n;return[...null!==(o=null===(e=t.horizontal)||void 0===e?void 0:e.flatMap((t=>t.map((t=>null==t?void 0:t.key)).filter((t=>!!t)))))&&void 0!==o?o:[],...null!==(n=null===(i=t.vertical)||void 0===i?void 0:i.flatMap((t=>t.map((t=>null==t?void 0:t.key)).filter((t=>!!t)))))&&void 0!==n?n:[]]},i=o(t),n=o(e);return i.length!==n.length||i.some(((t,e)=>t!==n[e]))})(this.headers,t)&&(this.adjustedHeaderCells=void 0),this.initializeSort(t)&&setTimeout((()=>this.updateSortedData())),function(t){return!!(t.horizontal&&t.vertical&&t.horizontal.length>0&&t.vertical.length>0)}(t)&&(this.disableSort=!0,s("Table: You can not sort the table data, if horizontal and vertical headers are defined at the same time. (https://github.com/public-ui/kolibri/issues/2372)")),this.headers=t}))}watchLabel(t){this.applyLabel(t)}watchLoading(t){this.applyLoading(t)}watchPagination(t){this.showPagination=(t=>{const e=S(t);return!0===e||""===e||"object"==typeof e&&null!==e})(t),j.apply(t,(t=>{this.pagination=t}))}watchPaginationPosition(t){z.apply(t,(t=>{this.paginationPosition=t}))}watchSelection(t){this.applySelection(t)}watchOn(t){C.apply(t,(t=>{this.statefulOn=t}))}watchHasSettingsMenu(t){this.applyHasSettingsMenu(t)}watchVariant(t){this.applyVariant(t)}getSelection(){var t;return Promise.resolve(this.getSelectedData((null===(t=this.getRenderProp("selection")||void 0)||void 0===t?void 0:t.selectedKeys)||[]))}resetSort(){return this.initializeSort(this.headers),this.updateSortedData(),Promise.resolve()}componentWillLoad(){this.applyOn(this.statelessOn),this.internals=c(this.host),this.resolveExternalLabel(this._ariaLabelledby),this.watchAllowMultiSort(this._allowMultiSort),this.watchData(this._data),this.watchDataFoot(this._dataFoot),this.watchFixedCols(this._fixedCols),this.watchHeaders(this._headers),this.watchLabel(this._label),this.watchLoading(this._loading),this.watchOn(this._on),this.watchPagination(this._pagination),this.watchPaginationPosition(this._paginationPosition),this.watchSelection(this._selection),this.watchHasSettingsMenu(this._hasSettingsMenu),this.watchVariant(this._variant)}componentDidLoad(){this.externalLabelElements.length||this.resolveExternalLabel(this._ariaLabelledby),this.observeScrollContainer()}componentWillRender(){var t;const{rows:e,end:o}=function(t,e,o){if("number"==typeof e&&e>0&&"number"==typeof o&&o>0){const i=e*o>t.length?t.length:e*o;return{rows:t.slice(e*(o-1),i),end:i}}return{rows:t,end:t.length}}(this.sortedData,this.showPagination?null!==(t=this.pagination._pageSize)&&void 0!==t?t:10:this.sortedData.length,this.pagination._page||1);this.pageEndSlice=o,this.applyData(e),this.applyHeaders(this.buildHeaderCells()),this.syncPagination("top","top"===this._paginationPosition||"both"===this._paginationPosition),this.syncPagination("bottom","bottom"===this._paginationPosition||"both"===this._paginationPosition)}componentDidRender(){var t,e;this.updateScrollbarState(),this.syncTableItems(),null===(t=this.paginationItems.top)||void 0===t||t.sync(),null===(e=this.paginationItems.bottom)||void 0===e||e.sync()}disconnectedCallback(){var t,e;this.teardownTable(),null===(t=this.paginationItems.top)||void 0===t||t.destroy(),null===(e=this.paginationItems.bottom)||void 0===e||e.destroy()}onChangeHeaderCells(t){this.handleChangeHeaderCells(Object.assign(Object.assign({},this.getRenderProp("headers")),{horizontal:t.detail})),this.applyChangedHeaderCells(t)}onKeydown(t){this.moveCheckboxFocus(t)}initializeSort(t){const{sortData:e,hasSortedCells:o,missingKey:i}=function(t,e){var o,i;let n=[],l=!1,a=!1;const r=t=>{n=[],t.forEach((t=>{if(!P(t))return;if("function"==typeof t.compareFn&&!t.key)return void(a=!0);const o=t.key;if(!o)return;const i=t.sortDirection;"ASC"!==i&&"DESC"!==i||"function"!=typeof t.compareFn||((e||0===n.length)&&n.push({label:t.label,key:o,compareFn:t.compareFn,direction:i}),l=!0)}))};return null===(o=t.horizontal)||void 0===o||o.forEach(r),null===(i=t.vertical)||void 0===i||i.forEach(r),{sortData:n,hasSortedCells:l,missingKey:a}}(t,this.allowMultiSort);return i&&s("[KolTableStateful] A sortable column requires the 'key' property."),this.sortData=e,o}buildHeaderCells(){return function(t,e,o,i,n){var l,a,r;const s=t=>t?Object.assign(Object.assign({},t),{sortDirection:T(t,o,i),sortOrder:D(t,o,i,n)}):t,c=(null==e?void 0:e.horizontal)?function(t,e){var o;const i=new Map;return null===(o=t.horizontal)||void 0===o||o.forEach((t=>t.forEach((t=>{(null==t?void 0:t.key)&&i.set(t.key,t)})))),e.map((t=>t.map((t=>{const e=(null==t?void 0:t.key)?i.get(t.key):void 0;if(!e)return t;const o=Object.assign({},e);return void 0!==t.visible&&(o.visible=t.visible),void 0!==t.width&&(o.width=t.width),void 0!==t.hidable&&(o.hidable=t.hidable),void 0!==t.sortable&&(o.sortable=t.sortable),void 0!==t.resizable&&(o.resizable=t.resizable),o}))))}(t,e.horizontal):t.horizontal;return{horizontal:null!==(l=null==c?void 0:c.map((t=>t.map(s))))&&void 0!==l?l:[],vertical:null!==(r=null===(a=t.vertical)||void 0===a?void 0:a.map((t=>t.map(s))))&&void 0!==r?r:[]}}(this.headers,this.adjustedHeaderCells,this.sortData,this.disableSort,this.allowMultiSort)}getSelectedData(t){return function(t,e,o){var i;if(t){const n=null!==(i=t.keyPropertyName)&&void 0!==i?i:"id",l=new Set(o.map(String)),a=e.filter((t=>l.has(t[n]+"")));if(n)return a}return null}(this.getRenderProp("selection")||void 0,this.sortedData,t)}emitSelectionChange(t,e){const o=e,i=this.getRenderProp("selection");i&&(this.applySelection(Object.assign(Object.assign({},i),{selectedKeys:o})),this.renderCount++);const n=this.getSelectedData(o),l=this.statefulOn[g.onSelectionChange];"function"==typeof l&&l(t,n),this.host&&v(this.host,y.selectionChange,n)}emitSortChange(t){const e=this.statefulOn[g.onSortChange];"function"==typeof e&&e(new CustomEvent(y.sortChange),t),this.host&&v(this.host,y.sortChange,t)}getPaginationInput(t){const e=n("top"===t?"kol-pagination-position-top":"kol-pagination-position-bottom");return{boundaryCount:this.pagination._boundaryCount,customClass:this.pagination._customClass,hasButtons:this.pagination._hasButtons,on:this.handlePagination,page:this.pagination._page,pageSize:this.pagination._pageSize,pageSizeOptions:this.pagination._pageSizeOptions||L,siblingCount:this.pagination._siblingCount,tooltipAlign:"bottom",max:this.pagination._max||this.data.length,label:n("kol-table-pagination-label",{placeholders:{label:`${m(this.getRenderProp("label"))} (${e})`}})}}syncPagination(t,e){const o=this.paginationItems[t];if(this.pageEndSlice>0&&this.showPagination&&e){const e=this.getPaginationInput(t);if(o)o.update(e);else{const o=l({getEventTarget:()=>this.host,requestRender:()=>{this.renderCount++}});o.load(e),this.paginationItems[t]=o}}else o&&(o.destroy(),delete this.paginationItems[t])}resolveExternalLabel(t){this.externalLabelElements=p(this,this.host,this.internals,t),this.syncTableLabel(this.externalLabelElements)}renderPagination(t){const o=this.paginationItems[t];return o&&e("div",{class:"kol-table-stateful__pagination kol-table-stateful__pagination--"+this.paginationPosition},e("div",{class:"kol-table-stateful__pagination-wrapper"},e(a,Object.assign({},o.getFcProps()))))}render(){return e(o,{key:"453c121753229127c4e1f23fe98a4ba14cffa900",class:"kol-table-stateful"},this.renderPagination("top"),this.renderTableStatelessFC(),this.renderPagination("bottom"))}get host(){return this}static get watchers(){return{_ariaLabelledby:[{watchAriaLabelledby:0}],_allowMultiSort:[{watchAllowMultiSort:0}],_data:[{watchData:0}],_dataFoot:[{watchDataFoot:0}],_fixedCols:[{watchFixedCols:0}],_headers:[{watchHeaders:0}],_label:[{watchLabel:0}],_loading:[{watchLoading:0}],_pagination:[{watchPagination:0}],_paginationPosition:[{watchPaginationPosition:0}],_selection:[{watchSelection:0}],_on:[{watchOn:0}],_hasSettingsMenu:[{watchHasSettingsMenu:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794497133718"); src: url("kolicons.eot?t=1794497133718#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794497133718") format("woff2"), url("kolicons.woff?t=1794497133718") format("woff"), url("kolicons.ttf?t=1794497133718") format("truetype"), url("kolicons.svg?t=1794497133718#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { @keyframes rotate { to { transform: rotate(1turn); } } @keyframes growingCircle { 0% { opacity: 0.5; border-color: white; clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0); } 25% { opacity: 0.75; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, #000)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0); } 50% { opacity: 1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%); } 75% { opacity: 1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%); } 100% { opacity: 0.1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0); } } .kol-spin__spinner--cycle { width: calc(var(--kol-spin-size, 48) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(var(--kol-spin-size, 48) * 1rem / var(--kolibri-root-font-size, 16)); } .kol-spin__spinner--cycle .kol-spin__loader { border-radius: 50%; display: block; position: relative; width: 100%; height: 100%; animation: 2s linear infinite rotate; } @media (prefers-reduced-motion) { .kol-spin__spinner--cycle .kol-spin__loader { animation-duration: 4s !important; } } .kol-spin__spinner--cycle .kol-spin__loader::before { border-radius: 50%; position: absolute; inset: 0; content: ""; animation: 3s linear infinite growingCircle; border: 5px solid var(--kol-spin-color, var(--kol-theme-spin-color, #333)); } @media (prefers-reduced-motion) { .kol-spin__spinner--cycle .kol-spin__loader::before { animation-duration: 6s !important; } } } @layer kol-component { @keyframes spin1 { 0% { transform: scale(0); } 100% { transform: scale(1); } } @keyframes spin2 { 0% { transform: translate(0, 0); } 100% { transform: translate(calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)), 0); } } @keyframes spin3 { 0% { transform: scale(1); } 100% { transform: scale(0); } } @media (prefers-reduced-motion) { .kol-spin__spinner-element { animation-duration: 2s !important; } } .kol-spin__spinner--dot { --kol-spin-border-width: calc(var(--kol-spin-size, 13) / 10); width: calc(calc(var(--kol-spin-size, 13) * 3 + 2) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(calc(var(--kol-spin-size, 13) + var(--kol-spin-border-width) * 2) * 1rem / var(--kolibri-root-font-size, 16)); } .kol-spin__spinner--dot .kol-spin__spinner-element { background-color: var(--kol-spin-color, var(--kol-theme-spin-color, #000)); border-radius: 50%; position: absolute; top: 1px; width: calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)); animation-timing-function: cubic-bezier(0, 1, 1, 0); border: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)) solid white; } .kol-spin__spinner--dot .kol-spin__spinner-element--1 { left: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 0; animation: 1s infinite spin1; } .kol-spin__spinner--dot .kol-spin__spinner-element--2 { left: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; animation: 1s infinite spin2; } .kol-spin__spinner--dot .kol-spin__spinner-element--3 { left: calc(calc(var(--kol-spin-size, 13) + var(--kol-spin-border-width)) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; animation: 1s infinite spin2; } .kol-spin__spinner--dot .kol-spin__spinner-element--neutral { opacity: 0.6; left: calc(calc(var(--kol-spin-size, 13) * 2 + var(--kol-spin-border-width)) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 0; animation: 1s infinite spin3; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-card .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-card :host { display: inline-block; } .kol-card .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-card .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-card .kol-button__interactive-element::before { content: "​"; } .kol-card .kol-button__text { flex: 1 0 100%; } .kol-card .kol-button { } .kol-card .kol-button__tooltip { height: 0; } .kol-card .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-card .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-card { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); display: grid; height: 100%; overflow: visible; grid-template-areas: "header close" "content content"; grid-template-columns: 1fr min-content; grid-template-rows: min-content 1fr; } .kol-card__header { align-self: start; grid-area: header; } .kol-card__content { align-self: stretch; grid-area: content; } .kol-card__close-button { grid-area: close; } .kol-card:has(.kol-card__link) { position: relative; } .kol-card__link::after { position: absolute; inset: 0; content: ""; cursor: pointer; } .kol-dialog, .kol-modal { min-height: var(--a11y-min-size); padding: 0; border: 0; overscroll-behavior: contain; } .kol-dialog__close-button, .kol-modal__close-button { position: absolute; top: calc(1 * 1rem / var(--kolibri-root-font-size, 16)); right: calc(1 * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: "​"; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } :host { display: inline-block; } .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-button__interactive-element::before { content: "​"; } .kol-button__text { flex: 1 0 100%; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-popover-button { display: inline; } .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-popover-button--inline { display: inline-block; } .kol-popover-button--inline .kol-button, .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-table-settings { position: absolute; top: 0; right: 0; z-index: 1; } .kol-table-settings .kol-popover-button__popover { background: white; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); border-radius: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); border: 1px solid black; } .kol-table-settings__columns { display: grid; max-height: calc(200 * 1rem / var(--kolibri-root-font-size, 16)); overflow: auto; grid-auto-rows: min-content; grid-template-columns: min-content minmax(max-content, 1fr) calc(140 * 1rem / var(--kolibri-root-font-size, 16)) auto auto; } .kol-table-settings__column { display: grid; align-items: center; grid-template-columns: subgrid; grid-column: 1/6; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-table { --kol-table-selection-col-width: var(--a11y-min-size); display: block; position: relative; max-width: 100%; } .kol-table:has(.kol-table__focus-element:focus) .kol-table__scroll-container { outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color; outline-offset: 2px; } .kol-table__scroll-container { overflow-x: auto; overflow-y: hidden; } .kol-table__table { table-layout: fixed; } .kol-table__caption { min-height: var(--a11y-min-size); text-align: start; } .kol-table__settings:not(:has(~ .kol-table__scroll-container .kol-table__caption)) { min-height: var(--a11y-min-size); } .kol-table__sort-button.kol-button { color: inherit; } .kol-table__sort { display: inline-flex; align-items: center; } .kol-table__sort-order { display: inline-flex; align-items: center; justify-content: center; } .kol-table__body { text-align: left; } .kol-table__body .kol-button__text { justify-items: start; } .kol-table__body:has(.kol-table__loader--shown) { position: relative; min-height: calc(var(--a11y-min-size) * 3); } .kol-table__cell--align-left { text-align: left; } .kol-table__cell--align-left .kol-table__sort-button .kol-button__text { align-items: start; text-align: start; } .kol-table__cell--align-left .kol-table__cell-actions { justify-content: flex-start; } .kol-table__cell--align-center { text-align: center; } .kol-table__cell--align-center .kol-table__sort-button .kol-button__text { align-items: center; } .kol-table__cell--align-right { text-align: right; } .kol-table__cell--align-right .kol-table__sort-button .kol-button__text { align-items: end; text-align: end; } .kol-table__cell--align-right .kol-table__cell-actions { justify-content: flex-end; } .kol-table__cell--selection { background-color: white; position: sticky !important; left: 0; z-index: 2; width: var(--kol-table-selection-col-width, auto); min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); white-space: nowrap; } .kol-table__cell--actions { white-space: nowrap; } .kol-table__cell--actions .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-table__cell--actions :host { display: inline-block; } .kol-table__cell--actions .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-table__cell--actions .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-table__cell--actions .kol-button__interactive-element::before { content: "​"; } .kol-table__cell--actions .kol-button__text { flex: 1 0 100%; } .kol-table__cell--actions .kol-button { } .kol-table__cell--actions .kol-button__tooltip { height: 0; } .kol-table__cell--actions .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-table__cell--actions .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-table__cell--actions .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-table__cell--actions :host { display: inline-block; } .kol-table__cell--actions .kol-link { display: inline-flex; max-width: fit-content; } .kol-table__cell--actions .kol-link--standalone { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: stretch; } .kol-table__cell--actions .kol-link--standalone .kol-link__interactive-element { align-items: stretch; } .kol-table__cell--actions .kol-link--standalone .kol-link__text { display: inline-flex; flex: 1 1 100%; place-items: center; } .kol-table__cell--actions .kol-link__interactive-element { display: inline-flex; flex: 1; align-items: baseline; place-items: center; text-align: left; text-decoration-line: none; } .kol-table__cell--actions .kol-link__interactive-element:focus:not([aria-disabled], [disabled]) .kol-span__label, .kol-table__cell--actions .kol-link__interactive-element:hover:not([aria-disabled], [disabled]) .kol-span__label { text-decoration-thickness: 0.2em; } .kol-table__cell--actions .kol-link .kol-span__label { text-decoration-line: underline; } .kol-table__cell--actions .kol-link__icon { display: inline-flex; } .kol-table__cell--sticky-left, .kol-table__cell--sticky-right { background-color: white; position: sticky !important; z-index: 1; } .kol-table__cell--sticky-left:nth-last-child(1 of .kol-table__cell--sticky-left) { border-right: 2px solid black; } .kol-table__cell--sticky-right:nth-child(1 of .kol-table__cell--sticky-left) { border-left: 2px solid black; } .kol-table__cell-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; } .kol-table__cell-states { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; } .kol-table__spacer { display: none; } .kol-table__selection { position: relative; } .kol-table__selection-label { display: flex; position: relative; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; justify-content: center; } .kol-table__selection-label:not(.kol-table__selection-label--disabled) { cursor: pointer; } .kol-table__selection-label--disabled { cursor: not-allowed; } .kol-table__selection-icon { display: block; position: absolute; inset: auto; z-index: 1; } .kol-table__selection-input { border-style: solid; margin: 0; appearance: none; cursor: pointer; } .kol-table__selection-input:disabled { cursor: not-allowed; } .kol-table__selection-input:before { content: ""; } .kol-table__selection-input--checkbox { background-color: white; display: flex; position: relative; min-width: calc(var(--a11y-min-size) / 2); min-height: calc(var(--a11y-min-size) / 2); border-width: 2px; align-items: center; justify-content: center; line-height: 1.5; } .kol-table__selection-input--radio { border-radius: 100%; display: flex; width: 1.5em; min-width: 1.5em; height: 1.5em; min-height: 1.5em; padding: 0; border-width: 2px; } .kol-table__selection-input--radio:before { border-radius: 100%; width: 0.75em; height: 0.75em; margin: auto; } .kol-table__selection-input--radio:checked:before { background-color: black; } @media (forced-colors: active) { .kol-table__selection-input--radio:checked:before { background-color: selectedItem !important; } } .kol-table__loader--shown { background: white; display: flex; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; align-items: center; justify-content: center; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: "​"; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-select { background-color: transparent; width: 100%; padding: 0; } .kol-select:not(:disabled) { cursor: pointer; } .kol-select:not([multiple], [size]) { height: 2.75em; } .kol-select[multiple][size="1"] { height: 2.75em; } .kol-select__option:checked::before { content: "✓ "; } .kol-select[multiple] option { display: flex; min-height: var(--a11y-min-size); align-items: center; } .kol-select[multiple][size="1"] option::checkmark { height: 100%; } .kol-select[multiple][size="1"] option:checked::before { display: none; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; container: paging/inline-size; } .kol-pagination__navigation-list { display: inline-flex; margin: 0; padding: 0; flex-wrap: wrap; align-items: center; list-style: none; } .kol-pagination__separator:before { content: "•••"; } .kol-pagination__page-size-select .kol-form-field-select { align-items: center; grid-template-columns: 1fr max-content; } @container paging (width < 600px) { .kol-pagination:has(.kol-pagination__button--first) li:has(.kol-pagination__button--numbers), .kol-pagination:has(.kol-pagination__button--first) li:has(.kol-pagination__separator) { display: none; } } .kol-spin { display: contents; } .kol-spin__spinner { display: block; position: relative; } }'}}},[545,"kol-table-stateful",{_ariaLabelledby:[1,"_aria-labelledby"],_allowMultiSort:[4,"_allow-multi-sort"],_data:[1],_dataFoot:[1,"_data-foot"],_fixedCols:[16],_headers:[1],_label:[1],_loading:[4],_pagination:[8],_paginationPosition:[1,"_pagination-position"],_selection:[1],_on:[16],_hasSettingsMenu:[4,"_has-settings-menu"],_variant:[1],adjustedHeaderCells:[32],pagination:[32],renderCount:[32],externalLabelElements:[32],hasScrollbar:[32],settingsChangedCounter:[32],sortedData:[32],stickyColsDisabled:[32],getSelection:[64],resetSort:[64]},[[0,"changeheadercells","onChangeHeaderCells"],[0,"keydown","onKeydown"]],{_ariaLabelledby:[{watchAriaLabelledby:0}],_allowMultiSort:[{watchAllowMultiSort:0}],_data:[{watchData:0}],_dataFoot:[{watchDataFoot:0}],_fixedCols:[{watchFixedCols:0}],_headers:[{watchHeaders:0}],_label:[{watchLabel:0}],_loading:[{watchLoading:0}],_pagination:[{watchPagination:0}],_paginationPosition:[{watchPaginationPosition:0}],_selection:[{watchSelection:0}],_on:[{watchOn:0}],_hasSettingsMenu:[{watchHasSettingsMenu:0}],_variant:[{watchVariant:0}]}]),A=M,F=function(){"undefined"!=typeof customElements&&["kol-table-stateful"].forEach((t=>{"kol-table-stateful"===t&&(customElements.get(i(t))||customElements.define(i(t),M))}))};export{A as KolTableStateful,F as defineCustomElement}
4
+ import{O as t,p as e,l as o,h as i,H as n,t as l}from"./common.js";import{t as a}from"./i18n.js";import{c as r,P as s}from"./item4.js";import{B as c,t as d,a as k,v as h}from"./base4.js";import{c as p,n as b,d as _,b as u,t as f}from"./base-web-component.js";import{b as m}from"./bem-registry.js";import{C as g}from"./keyboard.js";import{d as v,K as y}from"./events.js";import{d as x}from"./component2.js";import{d as w}from"./component10.js";import{d as z}from"./component11.js";const S=p("allowMultiSort",!1,b),C=["both","bottom","top"],j=p("paginationPosition","bottom",(t=>{const e=_(t);if(C.includes(e))return e;throw Error("Invalid pagination position: "+e)})),T=e=>{try{return t(e)}catch(t){return e}},O=p("pagination",{_page:1,_pageSize:10,_max:0},(t=>{const e=T(t);if(!0===e||""===e)return{};if("object"==typeof e&&null!==e)return e;throw Error("Invalid table pagination: expected true, an empty string or a pagination object.")})),P=u(),D=p("headers",{horizontal:[],vertical:[]},(e=>{const o="string"==typeof e?t(e):e;if("object"==typeof o&&null!==o)return o;throw Error("Invalid table headers: expected an object.")})),E=t=>void 0===t.type||"default"===t.type;function L(t,e,o){if(E(t)&&!o&&"function"==typeof t.compareFn){if(t.key){const o=e.find((e=>e.key===t.key));if(null==o?void 0:o.direction)return o.direction}return"NOS"}}function M(t,e,o,i){if(E(t)&&!o&&i&&"function"==typeof t.compareFn&&t.key){const o=e.findIndex((e=>e.key===t.key));if(o>=0)return o+1}}const A=m.forBlock("kol-table-stateful"),F=A("pagination-wrapper"),H=[10,20,50,100],B=e(class extends c{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.pagination={_page:1,_pageSize:10,_max:0},this.renderCount=0,this.externalLabelElements=[],this.hasScrollbar=!1,this.settingsChangedCounter=0,this.sortedData=[],this.stickyColsDisabled=!1,this.data=[],this.headers={horizontal:[],vertical:[]},this.allowMultiSort=!1,this.paginationPosition="bottom",this.statefulOn={},this.sortData=[],this.disableSort=!1,this.showPagination=!1,this.pageEndSlice=10,this.paginationItems={},this.rowKeys=new Map,this.statelessOn={onSort:(t,{key:e})=>{const o=function(t,e){var o,i;const n=[];for(const e of[...null!==(o=t.horizontal)&&void 0!==o?o:[],...null!==(i=t.vertical)&&void 0!==i?i:[]])Array.isArray(e)&&n.push(...e);return n.find((t=>t.key===e))}(this.headers,e);if(o){const t=function(t,e,o){var i;if(!E(e)||"function"!=typeof e.compareFn)return;let n=o||e.key===(null===(i=t[0])||void 0===i?void 0:i.key)?t.map((t=>Object.assign({},t))):[];const l=n.findIndex((t=>t.key===e.key));if(l>=0){const t=n[l];switch(t.direction){case"ASC":t.direction="DESC";break;case"DESC":n=n.filter(((t,e)=>e!==l));break;default:t.direction="ASC"}}else e.key&&n.push({label:e.label,key:e.key,compareFn:e.compareFn,direction:"ASC"});return n}(this.sortData,o,this.allowMultiSort);t&&(this.sortData=t,this.updateSortedData())}}},this.handlePagination={onClick:(t,e)=>{var o;"function"==typeof(null===(o=this.pagination._on)||void 0===o?void 0:o.onClick)&&this.pagination._on.onClick(t,e),this.pagination=Object.assign(Object.assign({},this.pagination),{_page:e})},onChangePage:(t,e)=>{var o;"function"==typeof(null===(o=this.pagination._on)||void 0===o?void 0:o.onChangePage)&&this.pagination._on.onChangePage(t,e),this.pagination=Object.assign(Object.assign({},this.pagination),{_page:e})},onChangePageSize:(t,e)=>{var o;"function"==typeof(null===(o=this.pagination._on)||void 0===o?void 0:o.onChangePageSize)&&this.pagination._on.onChangePageSize(t,e),this.pagination=Object.assign(Object.assign({},this.pagination),{_pageSize:e})}},this._ariaLabelledby=void 0,this._allowMultiSort=void 0,this._dataFoot=void 0,this._fixedCols=void 0,this._loading=void 0,this._pagination=void 0,this._paginationPosition="bottom",this._selection=void 0,this._on=void 0,this._hasSettingsMenu=void 0,this._variant=void 0,this.updateSortedData=()=>{this.sortedData=function(t,e,o){if(o)return t;const i=[...t];return e.length>0&&i.sort(((t,o)=>{for(const i of e){const e=i.compareFn(t,o,i.direction);if(0!==e)return"ASC"===i.direction?e:-e}return 0})),i}(this.data,this.sortData,this.disableSort);const t={headers:this.getRenderProp("headers"),sortedData:this.sortedData};this.emitSortChange(t)},this.handleChangeHeaderCells=t=>{this.adjustedHeaderCells=t}}watchAriaLabelledby(t){this.resolveExternalLabel(t)}watchAllowMultiSort(t){S.apply(t,(t=>{this.allowMultiSort=t}))}watchData(t){d.apply(t,(t=>{this.data=t,setTimeout(this.updateSortedData)}))}watchDataFoot(t){k.apply(t,(t=>{this.setRenderProp("dataFoot",t),setTimeout(this.updateSortedData)}))}watchFixedCols(t){this.applyFixedCols(t)}watchHeaders(t){D.apply(t,(t=>{(function(t,e){const o=t=>{var e,o,i,n;return[...null!==(o=null===(e=t.horizontal)||void 0===e?void 0:e.flatMap((t=>t.map((t=>null==t?void 0:t.key)).filter((t=>!!t)))))&&void 0!==o?o:[],...null!==(n=null===(i=t.vertical)||void 0===i?void 0:i.flatMap((t=>t.map((t=>null==t?void 0:t.key)).filter((t=>!!t)))))&&void 0!==n?n:[]]},i=o(t),n=o(e);return i.length!==n.length||i.some(((t,e)=>t!==n[e]))})(this.headers,t)&&(this.adjustedHeaderCells=void 0),this.initializeSort(t)&&setTimeout((()=>this.updateSortedData())),function(t){return!!(t.horizontal&&t.vertical&&t.horizontal.length>0&&t.vertical.length>0)}(t)&&(this.disableSort=!0,o("Table: You can not sort the table data, if horizontal and vertical headers are defined at the same time. (https://github.com/public-ui/kolibri/issues/2372)")),this.headers=t}))}watchLabel(t){this.applyLabel(t)}watchLoading(t){this.applyLoading(t)}watchPagination(t){this.showPagination=(t=>{const e=T(t);return!0===e||""===e||"object"==typeof e&&null!==e})(t),O.apply(t,(t=>{this.pagination=t}))}watchPaginationPosition(t){j.apply(t,(t=>{this.paginationPosition=t}))}watchSelection(t){this.applySelection(t)}watchOn(t){P.apply(t,(t=>{this.statefulOn=t}))}watchHasSettingsMenu(t){this.applyHasSettingsMenu(t)}watchVariant(t){this.applyVariant(t)}getSelection(){var t;return Promise.resolve(this.getSelectedData((null===(t=this.getRenderProp("selection")||void 0)||void 0===t?void 0:t.selectedKeys)||[]))}resetSort(){return this.initializeSort(this.headers),this.updateSortedData(),Promise.resolve()}componentWillLoad(){this.applyOn(this.statelessOn),this.resolveExternalLabel(this._ariaLabelledby),this.watchAllowMultiSort(this._allowMultiSort),this.watchData(this._data),this.watchDataFoot(this._dataFoot),this.watchFixedCols(this._fixedCols),this.watchHeaders(this._headers),this.watchLabel(this._label),this.watchLoading(this._loading),this.watchOn(this._on),this.watchPagination(this._pagination),this.watchPaginationPosition(this._paginationPosition),this.watchSelection(this._selection),this.watchHasSettingsMenu(this._hasSettingsMenu),this.watchVariant(this._variant)}componentDidLoad(){this.externalLabelElements.length||this.resolveExternalLabel(this._ariaLabelledby),this.observeScrollContainer()}componentWillRender(){var t;const{rows:e,end:o}=function(t,e,o){if("number"==typeof e&&e>0&&"number"==typeof o&&o>0){const i=e*o>t.length?t.length:e*o;return{rows:t.slice(e*(o-1),i),end:i}}return{rows:t,end:t.length}}(this.sortedData,this.showPagination?null!==(t=this.pagination._pageSize)&&void 0!==t?t:10:this.sortedData.length,this.pagination._page||1);this.pageEndSlice=o,this.applyData(e),this.applyHeaders(this.buildHeaderCells()),this.syncPagination("top","top"===this._paginationPosition||"both"===this._paginationPosition),this.syncPagination("bottom","bottom"===this._paginationPosition||"both"===this._paginationPosition)}componentDidRender(){var t,e;this.updateScrollbarState(),this.syncTableItems(),null===(t=this.paginationItems.top)||void 0===t||t.sync(),null===(e=this.paginationItems.bottom)||void 0===e||e.sync()}disconnectedCallback(){var t,e;this.teardownTable(),null===(t=this.paginationItems.top)||void 0===t||t.destroy(),null===(e=this.paginationItems.bottom)||void 0===e||e.destroy()}onChangeHeaderCells(t){this.handleChangeHeaderCells(Object.assign(Object.assign({},this.getRenderProp("headers")),{horizontal:t.detail})),this.applyChangedHeaderCells(t)}onKeydown(t){this.moveCheckboxFocus(t)}initializeSort(t){const{sortData:e,hasSortedCells:i,missingKey:n}=function(t,e){var o,i;let n=[],l=!1,a=!1;const r=t=>{n=[],t.forEach((t=>{if(!E(t))return;if("function"==typeof t.compareFn&&!t.key)return void(a=!0);const o=t.key;if(!o)return;const i=t.sortDirection;"ASC"!==i&&"DESC"!==i||"function"!=typeof t.compareFn||((e||0===n.length)&&n.push({label:t.label,key:o,compareFn:t.compareFn,direction:i}),l=!0)}))};return null===(o=t.horizontal)||void 0===o||o.forEach(r),null===(i=t.vertical)||void 0===i||i.forEach(r),{sortData:n,hasSortedCells:l,missingKey:a}}(t,this.allowMultiSort);return n&&o("[KolTableStateful] A sortable column requires the 'key' property."),this.sortData=e,i}buildHeaderCells(){return function(t,e,o,i,n){var l,a,r;const s=t=>t?Object.assign(Object.assign({},t),{sortDirection:L(t,o,i),sortOrder:M(t,o,i,n)}):t,c=(null==e?void 0:e.horizontal)?function(t,e){var o;const i=new Map;return null===(o=t.horizontal)||void 0===o||o.forEach((t=>t.forEach((t=>{(null==t?void 0:t.key)&&i.set(t.key,t)})))),e.map((t=>t.map((t=>{const e=(null==t?void 0:t.key)?i.get(t.key):void 0;if(!e)return t;const o=Object.assign({},e);return void 0!==t.visible&&(o.visible=t.visible),void 0!==t.width&&(o.width=t.width),void 0!==t.hidable&&(o.hidable=t.hidable),void 0!==t.sortable&&(o.sortable=t.sortable),void 0!==t.resizable&&(o.resizable=t.resizable),o}))))}(t,e.horizontal):t.horizontal;return{horizontal:null!==(l=null==c?void 0:c.map((t=>t.map(s))))&&void 0!==l?l:[],vertical:null!==(r=null===(a=t.vertical)||void 0===a?void 0:a.map((t=>t.map(s))))&&void 0!==r?r:[]}}(this.headers,this.adjustedHeaderCells,this.sortData,this.disableSort,this.allowMultiSort)}getSelectedData(t){return function(t,e,o){var i;if(t){const n=null!==(i=t.keyPropertyName)&&void 0!==i?i:"id",l=new Set(o.map(String)),a=e.filter((t=>l.has(t[n]+"")));if(n)return a}return null}(this.getRenderProp("selection")||void 0,this.sortedData,t)}emitSelectionChange(t,e){const o=e,i=this.getRenderProp("selection");i&&(this.applySelection(Object.assign(Object.assign({},i),{selectedKeys:o})),this.renderCount++);const n=this.getSelectedData(o),l=this.statefulOn[g.onSelectionChange];"function"==typeof l&&l(t,n),this.host&&v(this.host,y.selectionChange,n)}emitSortChange(t){const e=this.statefulOn[g.onSortChange];"function"==typeof e&&e(new CustomEvent(y.sortChange),t),this.host&&v(this.host,y.sortChange,t)}getPaginationInput(t){const e=a("top"===t?"kol-pagination-position-top":"kol-pagination-position-bottom");return{boundaryCount:this.pagination._boundaryCount,customClass:this.pagination._customClass,hasButtons:this.pagination._hasButtons,on:this.handlePagination,page:this.pagination._page,pageSize:this.pagination._pageSize,pageSizeOptions:this.pagination._pageSizeOptions||H,siblingCount:this.pagination._siblingCount,tooltipAlign:"bottom",max:this.pagination._max||this.data.length,label:a("kol-table-pagination-label",{placeholders:{label:`${f(this.getRenderProp("label"))} (${e})`}})}}syncPagination(t,e){const o=this.paginationItems[t];if(this.pageEndSlice>0&&this.showPagination&&e){const e=this.getPaginationInput(t);if(o)o.update(e);else{const o=r({getEventTarget:()=>this.host,requestRender:()=>{this.renderCount++}});o.load(e),this.paginationItems[t]=o}}else o&&(o.destroy(),delete this.paginationItems[t])}resolveExternalLabel(t){this.externalLabelElements=h(this,this.host,t),this.syncTableLabel(this.externalLabelElements)}renderPagination(t){const e=this.paginationItems[t];return e&&i("div",{class:A("pagination",{[this.paginationPosition]:!0})},i("div",{class:F},i(s,Object.assign({},e.getFcProps()))))}render(){return i(n,{key:"2e6a4ac442e509a3a07c403b0218d6b3f8bf8af7",class:"kol-table-stateful"},this.renderPagination("top"),this.renderTableStatelessFC(),this.renderPagination("bottom"))}get host(){return this}static get watchers(){return{_ariaLabelledby:[{watchAriaLabelledby:0}],_allowMultiSort:[{watchAllowMultiSort:0}],_data:[{watchData:0}],_dataFoot:[{watchDataFoot:0}],_fixedCols:[{watchFixedCols:0}],_headers:[{watchHeaders:0}],_label:[{watchLabel:0}],_loading:[{watchLoading:0}],_pagination:[{watchPagination:0}],_paginationPosition:[{watchPaginationPosition:0}],_selection:[{watchSelection:0}],_on:[{watchOn:0}],_hasSettingsMenu:[{watchHasSettingsMenu:0}],_variant:[{watchVariant:0}]}}static get style(){return{default:'@charset "UTF-8"; @layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component, kol-forced-colors, kol-theme-forced-colors; @layer kol-a11y { :host { --a11y-min-size: max(calc(44 * 1rem / var(--kolibri-root-font-size, 16)), 44px); --kol-a11y-font-color: black; --kol-a11y-background-color: white; color: var(--kol-a11y-font-color); background-color: var(--kol-a11y-background-color); --kol-a11y-font-family: Verdana; font-family: var(--kol-a11y-font-family); letter-spacing: inherit; word-spacing: inherit; text-align: left; } * { hyphens: auto; word-break: break-word; } button, .kol-input .input { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); } a, button, h1, h2, h3, h4, h5, h6, input, option, select, textarea { color: inherit; font-family: inherit; font-size: inherit; letter-spacing: inherit; word-spacing: inherit; } .visually-hidden { position: fixed !important; top: 0; left: 0; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); } } @layer kol-forced-colors { @media (forced-colors: active) { .kol-button__text { color: ButtonText; background-color: ButtonFace; border: 2px solid ButtonBorder; } .kol-button--disabled .kol-button__text { color: GrayText; border-color: GrayText; } .kol-link__interactive-element[aria-disabled=true], .kol-accordion__heading[aria-disabled=true], .kol-details__heading[aria-disabled=true] { color: GrayText; } .kol-link__interactive-element[aria-disabled=true] .kol-icon, .kol-link__interactive-element[aria-disabled=true] .kol-span__label, .kol-accordion__heading[aria-disabled=true] .kol-icon, .kol-accordion__heading[aria-disabled=true] .kol-span__label, .kol-details__heading[aria-disabled=true] .kol-icon, .kol-details__heading[aria-disabled=true] .kol-span__label { color: GrayText; } input:disabled, select:disabled, textarea:disabled { color: GrayText; border-color: GrayText; } .kol-card, .kol-dialog, .kol-modal { color: CanvasText; background-color: Canvas; border: 1px solid ButtonBorder; } .kol-meter meter { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-bar { background-color: Canvas; border-color: CanvasText; } .kol-meter meter::-webkit-meter-optimum-value, .kol-meter meter::-webkit-meter-suboptimum-value, .kol-meter meter::-webkit-meter-even-less-good-value { background-color: CanvasText; } .kol-meter meter::-moz-meter-bar { background-color: CanvasText; } .kol-pagination__button--selected .kol-button { opacity: 1; } .kol-pagination__button--selected .kol-button__text { color: SelectedItemText; background-color: SelectedItem; } .kol-button__interactive-element:focus-visible, .kol-link__interactive-element:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; } } } @layer kol-global { :is(a, button) { background-color: transparent; width: 100%; margin: 0; padding: 0; border: none; } [hidden] { display: none !important; } .badge-text-hint { color: black; background-color: white; } } @layer kol-global { :host { max-width: 100%; font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16)); } * { box-sizing: border-box; } .kol-span { display: flex; flex-flow: column; align-items: center; justify-content: center; } .kol-span__container { display: flex; align-items: center; } a, button { cursor: pointer; } button:disabled { color: unset; } .disabled label, .disabled:focus-within label, [aria-disabled=true], [aria-disabled=true]:focus, [disabled]:where(:not(fieldset)), [disabled]:where(:not(fieldset)):focus { outline: none; cursor: not-allowed; } [aria-disabled=true]:focus .kol-span, [disabled]:focus .kol-span { outline: none !important; } .hastooltip { z-index: 900 !important; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1795175086587"); src: url("kolicons.eot?t=1795175086587#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1795175086587") format("woff2"), url("kolicons.woff?t=1795175086587") format("woff"), url("kolicons.ttf?t=1795175086587") format("truetype"), url("kolicons.svg?t=1795175086587#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { @keyframes rotate { to { transform: rotate(1turn); } } @keyframes growingCircle { 0% { opacity: 0.5; border-color: white; clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0); } 25% { opacity: 0.75; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, #000)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0); } 50% { opacity: 1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%); } 75% { opacity: 1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%); } 100% { opacity: 0.1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0); } } .kol-spin__spinner--cycle { width: calc(var(--kol-spin-size, 48) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(var(--kol-spin-size, 48) * 1rem / var(--kolibri-root-font-size, 16)); } .kol-spin__spinner--cycle .kol-spin__loader { border-radius: 50%; display: block; position: relative; width: 100%; height: 100%; animation: 2s linear infinite rotate; } @media (prefers-reduced-motion) { .kol-spin__spinner--cycle .kol-spin__loader { animation-duration: 4s !important; } } .kol-spin__spinner--cycle .kol-spin__loader::before { border-radius: 50%; position: absolute; inset: 0; content: ""; animation: 3s linear infinite growingCircle; border: 5px solid var(--kol-spin-color, var(--kol-theme-spin-color, #333)); } @media (prefers-reduced-motion) { .kol-spin__spinner--cycle .kol-spin__loader::before { animation-duration: 6s !important; } } } @layer kol-component { @keyframes spin1 { 0% { transform: scale(0); } 100% { transform: scale(1); } } @keyframes spin2 { 0% { transform: translate(0, 0); } 100% { transform: translate(calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)), 0); } } @keyframes spin3 { 0% { transform: scale(1); } 100% { transform: scale(0); } } @media (prefers-reduced-motion) { .kol-spin__spinner-element { animation-duration: 2s !important; } } .kol-spin__spinner--dot { --kol-spin-border-width: calc(var(--kol-spin-size, 13) / 10); width: calc(calc(var(--kol-spin-size, 13) * 3 + 2) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(calc(var(--kol-spin-size, 13) + var(--kol-spin-border-width) * 2) * 1rem / var(--kolibri-root-font-size, 16)); } .kol-spin__spinner--dot .kol-spin__spinner-element { background-color: var(--kol-spin-color, var(--kol-theme-spin-color, #000)); border-radius: 50%; position: absolute; top: 1px; width: calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)); animation-timing-function: cubic-bezier(0, 1, 1, 0); border: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)) solid white; } .kol-spin__spinner--dot .kol-spin__spinner-element--1 { left: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 0; animation: 1s infinite spin1; } .kol-spin__spinner--dot .kol-spin__spinner-element--2 { left: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; animation: 1s infinite spin2; } .kol-spin__spinner--dot .kol-spin__spinner-element--3 { left: calc(calc(var(--kol-spin-size, 13) + var(--kol-spin-border-width)) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; animation: 1s infinite spin2; } .kol-spin__spinner--dot .kol-spin__spinner-element--neutral { opacity: 0.6; left: calc(calc(var(--kol-spin-size, 13) * 2 + var(--kol-spin-border-width)) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 0; animation: 1s infinite spin3; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-card .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-card :host { display: inline-block; } .kol-card .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-card .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-card .kol-button__interactive-element::before { content: "​"; } .kol-card .kol-button__text { flex: 1 0 100%; } .kol-card .kol-button { } .kol-card .kol-button__tooltip { height: 0; } .kol-card .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-card .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-card { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); display: grid; height: 100%; overflow: visible; grid-template-areas: "header close" "content content"; grid-template-columns: 1fr min-content; grid-template-rows: min-content 1fr; } .kol-card__header { align-self: start; grid-area: header; } .kol-card__content { align-self: stretch; grid-area: content; } .kol-card__close-button { position: relative; z-index: 1; grid-area: close; } .kol-card:has(.kol-card__link) { position: relative; } .kol-card__link::after { position: absolute; inset: 0; content: ""; cursor: pointer; } .kol-dialog, .kol-modal { min-height: var(--a11y-min-size); padding: 0; border: 0; overscroll-behavior: contain; } .kol-dialog__close-button, .kol-modal__close-button { position: absolute; top: calc(1 * 1rem / var(--kolibri-root-font-size, 16)); right: calc(1 * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: "​"; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } :host { display: inline-block; } .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-button__interactive-element::before { content: "​"; } .kol-button__text { flex: 1 0 100%; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-popover-button { display: inline; } .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-popover-button--inline { display: inline-block; } .kol-popover-button--inline .kol-button, .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-table-settings { position: absolute; top: 0; right: 0; z-index: 1; } .kol-table-settings .kol-popover-button__popover { background: white; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); border-radius: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); border: 1px solid black; } .kol-table-settings__columns { display: grid; max-height: calc(200 * 1rem / var(--kolibri-root-font-size, 16)); overflow: auto; grid-auto-rows: min-content; grid-template-columns: min-content minmax(max-content, 1fr) calc(140 * 1rem / var(--kolibri-root-font-size, 16)) auto auto; } .kol-table-settings__column { display: grid; align-items: center; grid-template-columns: subgrid; grid-column: 1/6; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-table { --kol-table-selection-col-width: var(--a11y-min-size); display: block; position: relative; max-width: 100%; } .kol-table:has(.kol-table__focus-element:focus) .kol-table__scroll-container { outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color; outline-offset: 2px; } .kol-table__scroll-container { overflow-x: auto; overflow-y: hidden; } .kol-table__table { table-layout: fixed; } .kol-table__caption { min-height: var(--a11y-min-size); text-align: start; } .kol-table__settings:not(:has(~ .kol-table__scroll-container .kol-table__caption)) { min-height: var(--a11y-min-size); } .kol-table__sort-button.kol-button { color: inherit; } .kol-table__sort { display: inline-flex; align-items: center; } .kol-table__sort-order { display: inline-flex; align-items: center; justify-content: center; } .kol-table__body { text-align: left; } .kol-table__body .kol-button__text { justify-items: start; } .kol-table__body:has(.kol-table__loader--shown) { position: relative; min-height: calc(var(--a11y-min-size) * 3); } .kol-table__cell--align-left { text-align: left; } .kol-table__cell--align-left .kol-table__sort-button .kol-button__text { align-items: start; text-align: start; } .kol-table__cell--align-left .kol-table__cell-actions { justify-content: flex-start; } .kol-table__cell--align-center { text-align: center; } .kol-table__cell--align-center .kol-table__sort-button .kol-button__text { align-items: center; } .kol-table__cell--align-right { text-align: right; } .kol-table__cell--align-right .kol-table__sort-button .kol-button__text { align-items: end; text-align: end; } .kol-table__cell--align-right .kol-table__cell-actions { justify-content: flex-end; } .kol-table__cell--selection { background-color: white; position: sticky !important; left: 0; z-index: 2; width: var(--kol-table-selection-col-width, auto); min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); white-space: nowrap; } .kol-table__cell--actions { white-space: nowrap; } .kol-table__cell--actions .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-table__cell--actions :host { display: inline-block; } .kol-table__cell--actions .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-table__cell--actions .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-table__cell--actions .kol-button__interactive-element::before { content: "​"; } .kol-table__cell--actions .kol-button__text { flex: 1 0 100%; } .kol-table__cell--actions .kol-button { } .kol-table__cell--actions .kol-button__tooltip { height: 0; } .kol-table__cell--actions .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-table__cell--actions .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-table__cell--actions .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-table__cell--actions :host { display: inline-block; } .kol-table__cell--actions .kol-link { display: inline-flex; max-width: fit-content; } .kol-table__cell--actions .kol-link--standalone { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: stretch; } .kol-table__cell--actions .kol-link--standalone .kol-link__interactive-element { align-items: stretch; } .kol-table__cell--actions .kol-link--standalone .kol-link__text { display: inline-flex; flex: 1 1 100%; place-items: center; } .kol-table__cell--actions .kol-link__interactive-element { display: inline-flex; flex: 1; align-items: baseline; place-items: center; text-align: left; text-decoration-line: none; } .kol-table__cell--actions .kol-link__interactive-element:focus:not([aria-disabled], [disabled]) .kol-span__label, .kol-table__cell--actions .kol-link__interactive-element:hover:not([aria-disabled], [disabled]) .kol-span__label { text-decoration-thickness: 0.2em; } .kol-table__cell--actions .kol-link .kol-span__label { text-decoration-line: underline; } .kol-table__cell--actions .kol-link__icon { display: inline-flex; } .kol-table__cell--sticky-left, .kol-table__cell--sticky-right { background-color: white; position: sticky !important; z-index: 1; } .kol-table__cell--sticky-left:nth-last-child(1 of .kol-table__cell--sticky-left) { border-right: 2px solid black; } .kol-table__cell--sticky-right:nth-child(1 of .kol-table__cell--sticky-left) { border-left: 2px solid black; } .kol-table__cell-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; } .kol-table__cell-states { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; } .kol-table__spacer { display: none; } .kol-table__selection { position: relative; } .kol-table__selection-label { display: flex; position: relative; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; justify-content: center; } .kol-table__selection-label:not(.kol-table__selection-label--disabled) { cursor: pointer; } .kol-table__selection-label--disabled { cursor: not-allowed; } .kol-table__selection-icon { display: block; position: absolute; inset: auto; z-index: 1; } .kol-table__selection-input { border-style: solid; margin: 0; appearance: none; cursor: pointer; } .kol-table__selection-input:disabled { cursor: not-allowed; } .kol-table__selection-input:before { content: ""; } .kol-table__selection-input--checkbox { background-color: white; display: flex; position: relative; min-width: calc(var(--a11y-min-size) / 2); min-height: calc(var(--a11y-min-size) / 2); border-width: 2px; align-items: center; justify-content: center; line-height: 1.5; } .kol-table__selection-input--radio { border-radius: 100%; display: flex; width: 1.5em; min-width: 1.5em; height: 1.5em; min-height: 1.5em; padding: 0; border-width: 2px; } .kol-table__selection-input--radio:before { border-radius: 100%; width: 0.75em; height: 0.75em; margin: auto; } .kol-table__selection-input--radio:checked:before { background-color: black; } @media (forced-colors: active) { .kol-table__selection-input--radio:checked:before { background-color: selectedItem !important; } } .kol-table__loader--shown { background: white; display: flex; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; align-items: center; justify-content: center; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: "​"; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-form-field .kol-popover-button { display: inline; } .kol-form-field .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-form-field .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-form-field .kol-popover-button--inline { display: inline-block; } .kol-form-field .kol-popover-button--inline .kol-button, .kol-form-field .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-form-field .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-form-field .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-form-field { display: grid; } .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label { cursor: pointer; } .kol-form-field__label { display: flex; } .kol-form-field__label-text { flex-flow: row; align-items: flex-start; justify-content: flex-start; } .kol-form-field--required .kol-form-field__label-text:has(.kol-span__slot[hidden]) .kol-span__label::after, .kol-form-field--required:not(:has(.kol-form-field__label--legend)) .kol-form-field__input .kol-tooltip__content .kol-span__label::after { content: "*"/""; } .kol-input-container { background-color: transparent; display: grid; position: relative; width: 100%; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; grid-template-columns: 1fr; } .kol-input-container:has(> .kol-input-container__adornment--start) { grid-template-columns: auto 1fr auto; } .kol-input-container__container { position: relative; z-index: 1; } .kol-input-container__adornment { display: flex; align-items: center; } .kol-input-container__adornment .kol-icon { display: grid; place-items: center; } .kol-select { background-color: transparent; width: 100%; padding: 0; } .kol-select:not(:disabled) { cursor: pointer; } .kol-select:not([multiple], [size]) { height: 2.75em; } .kol-select[multiple][size="1"] { height: 2.75em; } .kol-select__option:checked::before { content: "✓ "; } .kol-select[multiple] option { display: flex; min-height: var(--a11y-min-size); align-items: center; } .kol-select[multiple][size="1"] option::checkmark { height: 100%; } .kol-select[multiple][size="1"] option:checked::before { display: none; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; container: paging/inline-size; } .kol-pagination__navigation-list { display: inline-flex; margin: 0; padding: 0; flex-wrap: wrap; align-items: center; list-style: none; } .kol-pagination__separator:before { content: "•••"; } .kol-pagination__page-size-select .kol-form-field-select { align-items: center; grid-template-columns: 1fr max-content; } @container paging (width < 600px) { .kol-pagination:has(.kol-pagination__button--first) li:has(.kol-pagination__button--numbers), .kol-pagination:has(.kol-pagination__button--first) li:has(.kol-pagination__separator) { display: none; } } .kol-spin { display: contents; } .kol-spin__spinner { display: block; position: relative; } }'}}},[545,"kol-table-stateful",{_ariaLabelledby:[1,"_aria-labelledby"],_allowMultiSort:[4,"_allow-multi-sort"],_data:[1],_dataFoot:[1,"_data-foot"],_fixedCols:[16],_headers:[1],_label:[1],_loading:[4],_pagination:[8],_paginationPosition:[1,"_pagination-position"],_selection:[1],_on:[16],_hasSettingsMenu:[4,"_has-settings-menu"],_variant:[1],adjustedHeaderCells:[32],pagination:[32],renderCount:[32],externalLabelElements:[32],hasScrollbar:[32],settingsChangedCounter:[32],sortedData:[32],stickyColsDisabled:[32],getSelection:[64],resetSort:[64]},[[0,"changeheadercells","onChangeHeaderCells"],[0,"keydown","onKeydown"]],{_ariaLabelledby:[{watchAriaLabelledby:0}],_allowMultiSort:[{watchAllowMultiSort:0}],_data:[{watchData:0}],_dataFoot:[{watchDataFoot:0}],_fixedCols:[{watchFixedCols:0}],_headers:[{watchHeaders:0}],_label:[{watchLabel:0}],_loading:[{watchLoading:0}],_pagination:[{watchPagination:0}],_paginationPosition:[{watchPaginationPosition:0}],_selection:[{watchSelection:0}],_on:[{watchOn:0}],_hasSettingsMenu:[{watchHasSettingsMenu:0}],_variant:[{watchVariant:0}]}]),I=B,K=function(){"undefined"!=typeof customElements&&["kol-table-stateful","kol-badge","kol-input-checkbox","kol-input-number"].forEach((t=>{switch(t){case"kol-table-stateful":customElements.get(l(t))||customElements.define(l(t),B);break;case"kol-badge":customElements.get(l(t))||x();break;case"kol-input-checkbox":customElements.get(l(t))||w();break;case"kol-input-number":customElements.get(l(t))||z()}}))};export{I as KolTableStateful,K as defineCustomElement}