@public-ui/components 4.6.0-rc.3 → 4.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (671) 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 +2 -2
  7. package/dist/cjs/{Heading-DqZXie2T.js → Heading-CnnBHLhu.js} +7 -7
  8. package/dist/cjs/{api-Cc1hT-oO.js → api-C-uDDxcA.js} +24 -26
  9. package/dist/cjs/{app-globals-DtXiFJRj.js → app-globals-BfpVa0Lg.js} +2 -2
  10. package/dist/cjs/{base-B-wbGF-X.js → base-BIbzHEVE.js} +47 -40
  11. package/dist/cjs/{base-BKsPSdXS.js → base-BZ3x1Yaj.js} +10 -10
  12. package/dist/cjs/{base-CoMrpiHg.js → base-Cc2tyQoy.js} +10 -10
  13. package/dist/cjs/{base-BjiXfuju.js → base-CeaAJa72.js} +10 -10
  14. package/dist/cjs/{base-web-component-DXCN-Sp3.js → base-web-component-B_zszxEg.js} +1 -1
  15. package/dist/cjs/{base-web-component-DApRK7Vs.js → base-web-component-CpqYvVDi.js} +14 -15
  16. package/dist/cjs/{base-web-component-BXtl3Nmq.js → base-web-component-Dk-So1FD.js} +12 -14
  17. package/dist/cjs/{behavior-GG5TOrTV.js → behavior--ZjzmIB4.js} +4 -4
  18. package/dist/cjs/{behavior-DtHCmCCv.js → behavior-CYg7XOXd.js} +4 -4
  19. package/dist/cjs/{behavior-DIv2ciyM.js → behavior-cEIf2evT.js} +4 -4
  20. package/dist/cjs/{bem-registry-h_moyLBn.js → bem-registry-CtnO3zCW.js} +22 -0
  21. package/dist/cjs/{bootstrap-HU5YhM_w.js → bootstrap-DOzWgRGX.js} +1 -1
  22. package/dist/cjs/{color-C3xsA3Uk.js → color-BJ776mPh.js} +2 -2
  23. package/dist/cjs/{component-BOI4FdZE.js → component-5ABjFE_U.js} +6 -7
  24. package/dist/cjs/{component-CNNGo5gU.js → component-BSx0ZVSD.js} +10 -12
  25. package/dist/cjs/component-BTfaB8W5.js +19 -0
  26. package/dist/cjs/{component-DlyhBQIa.js → component-BacsMsF-.js} +4 -4
  27. package/dist/cjs/component-C_9WksgV.js +53 -0
  28. package/dist/cjs/{component-CsnTf_45.js → component-D65WOH6c.js} +8 -10
  29. package/dist/cjs/{component-C9B-yJ93.js → component-DE4OHvyu.js} +7 -8
  30. package/dist/cjs/{component-D0uxhuF3.js → component-DVf7tz1e.js} +6 -5
  31. package/dist/cjs/{component-CxwSVBBv.js → component-Ddp-Luc6.js} +11 -12
  32. package/dist/cjs/{component-BE_fK-Xu.js → component-DuknrIKz.js} +14 -16
  33. package/dist/cjs/{component-Cnc2NyzE.js → component-DwuAKOV_.js} +4 -4
  34. package/dist/cjs/{contrast-6Nku3lih.js → contrast-DrGTr5zd.js} +1 -1
  35. package/dist/cjs/{dev.utils-DTQy7QrG.js → dev.utils-EwVibOKw.js} +1 -1
  36. package/dist/cjs/{devtools-BAChPN0l.js → devtools-CEqUJI9f.js} +2 -2
  37. package/dist/cjs/{disabled-CilmJ-p-.js → disabled-DBnI2OR4.js} +1 -1
  38. package/dist/cjs/{field-control-Bxj6Xuu8.js → field-control-Jhzreo_j.js} +12 -12
  39. package/dist/cjs/{group-BUdQbdkp.js → group-DDmENjNB.js} +7 -8
  40. package/dist/cjs/{has-closer-iSIrv52u.js → has-closer-DIk_toj-.js} +1 -1
  41. package/dist/cjs/{href-xojo1zy_.js → href-_UE7179j.js} +1 -1
  42. package/dist/cjs/{i18n-D7UmRsV8.js → i18n-4lKONPdP.js} +1 -1
  43. package/dist/cjs/{i18n-DgHI4-xa.js → i18n-CuXZ7SEi.js} +2 -1
  44. package/dist/cjs/{id-DP-w6i4q.js → id-JbinnWCW.js} +1 -1
  45. package/dist/cjs/{index-BaB_2Z5W.js → index-P8gY4ccL.js} +1 -1
  46. package/dist/cjs/index.cjs.js +3 -3
  47. package/dist/cjs/input-BYfPasa5.js +19 -0
  48. package/dist/cjs/{input-container-BcwbGU2R.js → input-container-BQlNjdk3.js} +8 -10
  49. package/dist/cjs/{item-DJ-XUS77.js → item-C6gnuMjx.js} +4 -4
  50. package/dist/cjs/{item-BLrLbhAD.js → item-CvvVUcQZ.js} +11 -11
  51. package/dist/cjs/{item-BYKMN41a.js → item-DSSJt2YS.js} +4 -4
  52. package/dist/cjs/{item-BXt0-A5j.js → item-Dgikq96R.js} +20 -21
  53. package/dist/cjs/kol-abbr.cjs.entry.js +8 -12
  54. package/dist/cjs/kol-accordion.cjs.entry.js +15 -17
  55. package/dist/cjs/kol-alert.cjs.entry.js +27 -30
  56. package/dist/cjs/kol-avatar.cjs.entry.js +14 -15
  57. package/dist/cjs/kol-badge.cjs.entry.js +23 -26
  58. package/dist/cjs/kol-breadcrumb.cjs.entry.js +26 -30
  59. package/dist/cjs/kol-button-link.cjs.entry.js +22 -25
  60. package/dist/cjs/kol-button.cjs.entry.js +22 -25
  61. package/dist/cjs/kol-card.cjs.entry.js +27 -30
  62. package/dist/cjs/kol-combobox.cjs.entry.js +37 -40
  63. package/dist/cjs/kol-details.cjs.entry.js +15 -17
  64. package/dist/cjs/kol-dialog.cjs.entry.js +30 -33
  65. package/dist/cjs/kol-drawer.cjs.entry.js +30 -33
  66. package/dist/cjs/kol-form.cjs.entry.js +24 -27
  67. package/dist/cjs/kol-heading.cjs.entry.js +13 -15
  68. package/dist/cjs/kol-icon.cjs.entry.js +8 -9
  69. package/dist/cjs/kol-image.cjs.entry.js +7 -9
  70. package/dist/cjs/kol-input-checkbox.cjs.entry.js +38 -41
  71. package/dist/cjs/kol-input-color.cjs.entry.js +35 -38
  72. package/dist/cjs/kol-input-date.cjs.entry.js +41 -45
  73. package/dist/cjs/kol-input-email.cjs.entry.js +42 -45
  74. package/dist/cjs/kol-input-file.cjs.entry.js +36 -39
  75. package/dist/cjs/kol-input-number.cjs.entry.js +40 -43
  76. package/dist/cjs/kol-input-password.cjs.entry.js +41 -44
  77. package/dist/cjs/kol-input-radio.cjs.entry.js +37 -40
  78. package/dist/cjs/kol-input-range.cjs.entry.js +35 -38
  79. package/dist/cjs/kol-input-text.cjs.entry.js +43 -46
  80. package/dist/cjs/kol-kolibri.cjs.entry.js +8 -12
  81. package/dist/cjs/kol-link-button.cjs.entry.js +23 -26
  82. package/dist/cjs/kol-link.cjs.entry.js +23 -26
  83. package/dist/cjs/kol-meter.cjs.entry.js +14 -15
  84. package/dist/cjs/kol-modal.cjs.entry.js +30 -33
  85. package/dist/cjs/kol-nav.cjs.entry.js +35 -38
  86. package/dist/cjs/kol-pagination.cjs.entry.js +41 -44
  87. package/dist/cjs/kol-popover-button.cjs.entry.js +23 -26
  88. package/dist/cjs/kol-progress.cjs.entry.js +13 -14
  89. package/dist/cjs/kol-quote.cjs.entry.js +9 -10
  90. package/dist/cjs/kol-select.cjs.entry.js +34 -37
  91. package/dist/cjs/kol-single-select.cjs.entry.js +37 -40
  92. package/dist/cjs/kol-skip-nav.cjs.entry.js +26 -30
  93. package/dist/cjs/kol-spin.cjs.entry.js +11 -15
  94. package/dist/cjs/kol-split-button.cjs.entry.js +28 -31
  95. package/dist/cjs/kol-table-stateful.cjs.entry.js +53 -54
  96. package/dist/cjs/kol-table-stateless.cjs.entry.js +37 -40
  97. package/dist/cjs/kol-tabs.cjs.entry.js +23 -26
  98. package/dist/cjs/kol-textarea.cjs.entry.js +39 -42
  99. package/dist/cjs/kol-toast-container.cjs.entry.js +20 -23
  100. package/dist/cjs/kol-toolbar.cjs.entry.js +29 -32
  101. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +11 -12
  102. package/dist/cjs/kol-tree-item.cjs.entry.js +22 -26
  103. package/dist/cjs/kol-tree.cjs.entry.js +9 -10
  104. package/dist/cjs/kol-version.cjs.entry.js +21 -24
  105. package/dist/cjs/kolibri.cjs.js +3 -3
  106. package/dist/cjs/{label-D6c6jfqK.js → label-BAULqhwq.js} +3 -3
  107. package/dist/cjs/{label-hints-q3XenWLW.js → label-hints-BHw-UcMt.js} +1 -1
  108. package/dist/cjs/{label-lang-segment-k4OY9qRY.js → label-lang-segment-D_UYFhgr.js} +2 -2
  109. package/dist/cjs/{label-with-expert-slot-CJoz7BLw.js → label-with-expert-slot-XZTOiRp-.js} +3 -3
  110. package/dist/cjs/{level-B6vFMm9s.js → level-CaJUuMiH.js} +1 -1
  111. package/dist/cjs/{link-target-0qSVsAb2.js → link-target-EZq24qVX.js} +1 -1
  112. package/dist/cjs/{links-Ur1e9DOK.js → links-CNPivOpm.js} +1 -1
  113. package/dist/cjs/loader.cjs.js +3 -3
  114. package/dist/cjs/{multiple-CCxtzqez.js → multiple-D4ktp4Q2.js} +1 -1
  115. package/dist/cjs/{number-value-DzAHCwlP.js → number-value-BzIR1UvL.js} +1 -1
  116. package/dist/cjs/{open-Gxr_K7HK.js → open-BYh5VAA1.js} +1 -1
  117. package/dist/cjs/{options-BT0m0gRT.js → options-DkF38kx_.js} +1 -1
  118. package/dist/cjs/{orientation-CeHU4dT8.js → orientation-D4yopkvP.js} +1 -1
  119. package/dist/cjs/{placeholder-22xUUFff.js → placeholder-CZOGOuLS.js} +1 -1
  120. package/dist/cjs/{props-from-config-D1qhXS9j.js → props-from-config-CiU21EHb.js} +86 -5
  121. package/dist/cjs/{read-only-iHApMQEg.js → read-only-PNG5jHgh.js} +1 -1
  122. package/dist/cjs/{required-BYdSI25I.js → required-mj54_vO_.js} +1 -1
  123. package/dist/cjs/{resolve-props-B7klWjLx.js → resolve-props-CH6OL2es.js} +7 -7
  124. package/dist/cjs/{resolve-props-c-uwDulF.js → resolve-props-DOnocHFi.js} +6 -6
  125. package/dist/cjs/{rows-C9vBSQK1.js → rows-YaAnXjAm.js} +1 -1
  126. package/dist/cjs/{scroll-lock-daUQqmx_.js → scroll-lock-D3pgiG8q.js} +8 -7
  127. package/dist/cjs/{smart-button-DRMmUyQ5.js → smart-button-BU7mWP5H.js} +1 -1
  128. package/dist/cjs/{spell-check-CxgvHcGA.js → spell-check-CZWiLkQE.js} +1 -1
  129. package/dist/cjs/{src-Bmd7gQCS.js → src-rB2yGTSn.js} +1 -1
  130. package/dist/cjs/{step-CCqgsPCX.js → step-Bo6ILIqa.js} +1 -1
  131. package/dist/cjs/{suggestions-CoUp7HmN.js → suggestions-BO4EvOXc.js} +1 -1
  132. package/dist/cjs/{suggestions-D3snLGL_.js → suggestions-Ca575hi-.js} +3 -3
  133. package/dist/cjs/test-component.cjs.entry.js +1 -1
  134. package/dist/cjs/{toggle-handler-B0xib7fH.js → toggle-handler-ByJYSOdb.js} +11 -13
  135. package/dist/cjs/{unique-nav-labels-CgxOyb6V.js → unique-nav-labels-_EHPpYUR.js} +1 -1
  136. package/dist/cjs/{unit-_oDj-vIB.js → unit-Bl0Lyk08.js} +1 -1
  137. package/dist/cjs/{validators-CpCJvM4r.js → validators-rLs6tEWo.js} +1 -1
  138. package/dist/cjs/{value-string-CKppMGVM.js → value-string-BKsvZy1q.js} +1 -1
  139. package/dist/cjs/{width-e7f3wHF3.js → width-DegQFxQB.js} +1 -1
  140. package/dist/collection/components/abbr/style.css +21 -0
  141. package/dist/collection/components/accordion/style.css +23 -2
  142. package/dist/collection/components/alert/component.js +6 -5
  143. package/dist/collection/components/alert/style.css +23 -2
  144. package/dist/collection/components/avatar/style.css +21 -0
  145. package/dist/collection/components/badge/style.css +23 -2
  146. package/dist/collection/components/breadcrumb/style.css +23 -2
  147. package/dist/collection/components/button/style.css +23 -2
  148. package/dist/collection/components/button-link/style.css +23 -2
  149. package/dist/collection/components/card/style.css +23 -2
  150. package/dist/collection/components/combobox/style.css +23 -2
  151. package/dist/collection/components/details/style.css +23 -2
  152. package/dist/collection/components/dialog/base.js +2 -2
  153. package/dist/collection/components/dialog/style.css +23 -2
  154. package/dist/collection/components/drawer/style.css +23 -2
  155. package/dist/collection/components/form/style.css +23 -2
  156. package/dist/collection/components/heading/style.css +21 -0
  157. package/dist/collection/components/icon/style.css +2 -2
  158. package/dist/collection/components/image/style.css +21 -0
  159. package/dist/collection/components/input-checkbox/style.css +23 -2
  160. package/dist/collection/components/input-color/style.css +23 -2
  161. package/dist/collection/components/input-date/component.js +6 -6
  162. package/dist/collection/components/input-date/style.css +23 -2
  163. package/dist/collection/components/input-email/style.css +23 -2
  164. package/dist/collection/components/input-file/component.js +1 -1
  165. package/dist/collection/components/input-file/style.css +23 -2
  166. package/dist/collection/components/input-number/style.css +23 -2
  167. package/dist/collection/components/input-password/style.css +23 -2
  168. package/dist/collection/components/input-radio/style.css +23 -2
  169. package/dist/collection/components/input-range/style.css +23 -2
  170. package/dist/collection/components/input-text/style.css +23 -2
  171. package/dist/collection/components/kolibri/style.css +21 -0
  172. package/dist/collection/components/link/style.css +23 -2
  173. package/dist/collection/components/link-button/style.css +23 -2
  174. package/dist/collection/components/meter/style.css +21 -0
  175. package/dist/collection/components/modal/style.css +23 -2
  176. package/dist/collection/components/nav/style.css +23 -2
  177. package/dist/collection/components/pagination/component.js +5 -5
  178. package/dist/collection/components/pagination/style.css +23 -2
  179. package/dist/collection/components/popover-button/style.css +23 -2
  180. package/dist/collection/components/progress/style.css +21 -0
  181. package/dist/collection/components/quote/style.css +21 -0
  182. package/dist/collection/components/select/style.css +23 -2
  183. package/dist/collection/components/single-select/style.css +23 -2
  184. package/dist/collection/components/skip-nav/style.css +23 -2
  185. package/dist/collection/components/spin/style.css +21 -0
  186. package/dist/collection/components/split-button/style.css +23 -2
  187. package/dist/collection/components/table-stateful/component.js +5 -2
  188. package/dist/collection/components/table-stateful/style.css +23 -2
  189. package/dist/collection/components/table-stateless/style.css +23 -2
  190. package/dist/collection/components/tabs/style.css +23 -2
  191. package/dist/collection/components/textarea/style.css +23 -2
  192. package/dist/collection/components/toaster/style.css +23 -2
  193. package/dist/collection/components/toolbar/style.css +23 -2
  194. package/dist/collection/components/tree/style.css +21 -0
  195. package/dist/collection/components/tree-item/style.css +23 -2
  196. package/dist/collection/components/version/style.css +23 -2
  197. package/dist/collection/core/i18n.js +2 -1
  198. package/dist/collection/internal/functional-components/alert/component.js +2 -1
  199. package/dist/collection/internal/functional-components/avatar/component.js +2 -2
  200. package/dist/collection/internal/functional-components/badge/component.js +2 -1
  201. package/dist/collection/internal/functional-components/bem-root-node/component.js +16 -6
  202. package/dist/collection/internal/functional-components/breadcrumb/component.js +2 -2
  203. package/dist/collection/internal/functional-components/card/component.js +3 -1
  204. package/dist/collection/internal/functional-components/collapsible/component.js +3 -2
  205. package/dist/collection/internal/functional-components/dialog/component.js +6 -3
  206. package/dist/collection/internal/functional-components/dialog/item.js +2 -2
  207. package/dist/collection/internal/functional-components/drawer/component.js +1 -1
  208. package/dist/collection/internal/functional-components/heading/component.js +3 -4
  209. package/dist/collection/internal/functional-components/icon/component.js +2 -2
  210. package/dist/collection/internal/functional-components/image/component.js +2 -4
  211. package/dist/collection/internal/functional-components/link/component.js +1 -1
  212. package/dist/collection/internal/functional-components/meter/component.js +2 -1
  213. package/dist/collection/internal/functional-components/pagination/item.js +6 -6
  214. package/dist/collection/internal/functional-components/progress/component.js +2 -1
  215. package/dist/collection/internal/functional-components/quote/component.js +2 -2
  216. package/dist/collection/internal/functional-components/skip-nav/component.js +2 -2
  217. package/dist/collection/internal/functional-components/span/component.js +3 -2
  218. package/dist/collection/internal/functional-components/table-stateless/settings.js +12 -4
  219. package/dist/collection/internal/functional-components/tree/component.js +2 -2
  220. package/dist/collection/internal/functional-components/tree-item/component.js +2 -2
  221. package/dist/collection/schema/bem-registry.js +22 -0
  222. package/dist/components/Heading.js +1 -1
  223. package/dist/components/base-web-component2.js +1 -1
  224. package/dist/components/base-web-component3.js +1 -1
  225. package/dist/components/base-web-component4.js +1 -1
  226. package/dist/components/base.js +1 -1
  227. package/dist/components/base2.js +1 -1
  228. package/dist/components/base3.js +1 -1
  229. package/dist/components/base4.js +1 -1
  230. package/dist/components/behavior.js +1 -1
  231. package/dist/components/behavior2.js +1 -1
  232. package/dist/components/behavior3.js +1 -1
  233. package/dist/components/behavior4.js +1 -1
  234. package/dist/components/bem-registry.js +1 -1
  235. package/dist/components/component.js +1 -1
  236. package/dist/components/component10.js +1 -1
  237. package/dist/components/component2.js +1 -1
  238. package/dist/components/component3.js +1 -1
  239. package/dist/components/component4.js +1 -1
  240. package/dist/components/component5.js +1 -1
  241. package/dist/components/component6.js +1 -1
  242. package/dist/components/component7.js +1 -1
  243. package/dist/components/component8.js +1 -1
  244. package/dist/components/component9.js +1 -1
  245. package/dist/components/contrast.js +1 -1
  246. package/dist/components/field-control.js +1 -1
  247. package/dist/components/group.js +1 -1
  248. package/dist/components/i18n2.js +1 -1
  249. package/dist/components/input-container.js +1 -1
  250. package/dist/components/input.js +1 -1
  251. package/dist/components/item2.js +1 -1
  252. package/dist/components/item4.js +1 -1
  253. package/dist/components/kol-abbr.js +1 -1
  254. package/dist/components/kol-accordion.js +1 -1
  255. package/dist/components/kol-alert.js +1 -1
  256. package/dist/components/kol-avatar.js +1 -1
  257. package/dist/components/kol-badge.js +1 -1
  258. package/dist/components/kol-breadcrumb.js +1 -1
  259. package/dist/components/kol-button-link.js +1 -1
  260. package/dist/components/kol-button.js +1 -1
  261. package/dist/components/kol-card.js +1 -1
  262. package/dist/components/kol-combobox.js +1 -1
  263. package/dist/components/kol-details.js +1 -1
  264. package/dist/components/kol-dialog.js +1 -1
  265. package/dist/components/kol-drawer.js +1 -1
  266. package/dist/components/kol-form.js +1 -1
  267. package/dist/components/kol-heading.js +1 -1
  268. package/dist/components/kol-icon.js +1 -1
  269. package/dist/components/kol-image.js +1 -1
  270. package/dist/components/kol-input-checkbox.js +1 -1
  271. package/dist/components/kol-input-color.js +1 -1
  272. package/dist/components/kol-input-date.js +1 -1
  273. package/dist/components/kol-input-email.js +1 -1
  274. package/dist/components/kol-input-file.js +1 -1
  275. package/dist/components/kol-input-number.js +1 -1
  276. package/dist/components/kol-input-password.js +1 -1
  277. package/dist/components/kol-input-radio.js +1 -1
  278. package/dist/components/kol-input-range.js +1 -1
  279. package/dist/components/kol-input-text.js +1 -1
  280. package/dist/components/kol-kolibri.js +1 -1
  281. package/dist/components/kol-link-button.js +1 -1
  282. package/dist/components/kol-link.js +1 -1
  283. package/dist/components/kol-meter.js +1 -1
  284. package/dist/components/kol-modal.js +1 -1
  285. package/dist/components/kol-nav.js +1 -1
  286. package/dist/components/kol-pagination.js +1 -1
  287. package/dist/components/kol-popover-button.js +1 -1
  288. package/dist/components/kol-progress.js +1 -1
  289. package/dist/components/kol-quote.js +1 -1
  290. package/dist/components/kol-select.js +1 -1
  291. package/dist/components/kol-single-select.js +1 -1
  292. package/dist/components/kol-skip-nav.js +1 -1
  293. package/dist/components/kol-spin.js +1 -1
  294. package/dist/components/kol-split-button.js +1 -1
  295. package/dist/components/kol-table-stateful.js +1 -1
  296. package/dist/components/kol-table-stateless.js +1 -1
  297. package/dist/components/kol-tabs.js +1 -1
  298. package/dist/components/kol-textarea.js +1 -1
  299. package/dist/components/kol-toast-container.js +1 -1
  300. package/dist/components/kol-toolbar.js +1 -1
  301. package/dist/components/kol-tooltip-wc.js +1 -1
  302. package/dist/components/kol-tree-item.js +1 -1
  303. package/dist/components/kol-tree.js +1 -1
  304. package/dist/components/kol-version.js +1 -1
  305. package/dist/components/label-hints.js +1 -1
  306. package/dist/components/label-lang-segment.js +1 -1
  307. package/dist/components/label-with-expert-slot.js +1 -1
  308. package/dist/components/level.js +1 -1
  309. package/dist/components/links.js +1 -1
  310. package/dist/components/number-value.js +1 -1
  311. package/dist/components/props-from-config.js +1 -1
  312. package/dist/components/resolve-props.js +1 -1
  313. package/dist/components/resolve-props2.js +1 -1
  314. package/dist/components/rows.js +1 -1
  315. package/dist/components/scroll-lock.js +1 -1
  316. package/dist/components/step.js +1 -1
  317. package/dist/components/toggle-handler.js +1 -1
  318. package/dist/components/unit.js +1 -1
  319. package/dist/components/validators.js +1 -1
  320. package/dist/esm/{Heading-GZb1f2pZ.js → Heading-BubZbykM.js} +2 -2
  321. package/dist/esm/{api-CBPlj155.js → api-D0RNr-zh.js} +18 -20
  322. package/dist/esm/{app-globals-DRl9A82c.js → app-globals-DYRte_jr.js} +2 -2
  323. package/dist/esm/{base-C7BBsrYZ.js → base-BP5SdLvQ.js} +35 -28
  324. package/dist/esm/{base-BByRnpRm.js → base-BbGt9eYx.js} +10 -10
  325. package/dist/esm/{base-Dtxcvto_.js → base-CLsKm3-e.js} +10 -10
  326. package/dist/esm/{base-DO0KvOv9.js → base-Cz00snD6.js} +10 -10
  327. package/dist/esm/{base-web-component-CC_gpyDb.js → base-web-component-CYPdDdRn.js} +1 -1
  328. package/dist/esm/{base-web-component-BxXLva5d.js → base-web-component-CdSFFCst.js} +8 -10
  329. package/dist/esm/{base-web-component-CfPyCJDJ.js → base-web-component-DP9_OPgV.js} +13 -14
  330. package/dist/esm/{behavior-CKU2tmCj.js → behavior-B6y5Gofe.js} +4 -4
  331. package/dist/esm/{behavior-CsNDRS2z.js → behavior-BJR8CKBx.js} +4 -4
  332. package/dist/esm/{behavior-ewHvUWVk.js → behavior-DlH8byIw.js} +4 -4
  333. package/dist/esm/{bem-registry-D1KgKnyz.js → bem-registry-SKACeCny.js} +22 -0
  334. package/dist/esm/{bootstrap-tgQ2nQQI.js → bootstrap-Bp7i4RJQ.js} +1 -1
  335. package/dist/esm/{color-D1gM-F2l.js → color-BbljGuAW.js} +2 -2
  336. package/dist/esm/component-6_YiKr2Z.js +48 -0
  337. package/dist/esm/{component-D6_K50vT.js → component-B8UMedaK.js} +4 -4
  338. package/dist/esm/{component-6l69Jvwl.js → component-CMHB3reH.js} +6 -5
  339. package/dist/esm/{component-B3OziaRC.js → component-CNgECeRi.js} +9 -11
  340. package/dist/esm/{component-By8ggItU.js → component-CSsUaL_h.js} +6 -8
  341. package/dist/esm/{component-CF8uFG0A.js → component-CiJGQTU0.js} +13 -15
  342. package/dist/esm/{component-D4-NVnsT.js → component-DEwcJKDA.js} +4 -4
  343. package/dist/esm/{component-D6lo0LzE.js → component-NOe28NXD.js} +5 -6
  344. package/dist/esm/{component-Cmi6iGfA.js → component-ZdHnXLLI.js} +10 -11
  345. package/dist/esm/component-bIIx1x7q.js +17 -0
  346. package/dist/esm/{component-D9NreIlK.js → component-hiabKVP3.js} +6 -7
  347. package/dist/esm/{contrast-BNoQruBh.js → contrast-DtK0a6X2.js} +1 -1
  348. package/dist/esm/{dev.utils-BwYCy1rP.js → dev.utils-B0t4rcBV.js} +1 -1
  349. package/dist/esm/{devtools-CGP3Nzsw.js → devtools-DuJRc6wJ.js} +2 -2
  350. package/dist/esm/{disabled-BZXlWAgK.js → disabled-B2o4Ctgy.js} +1 -1
  351. package/dist/esm/{field-control-0TRmF7Ea.js → field-control-C9dIXnES.js} +7 -7
  352. package/dist/esm/{group-DapkT_Yh.js → group-DydT1Z92.js} +5 -6
  353. package/dist/esm/{has-closer-DUB0QcS9.js → has-closer-BrG00xL7.js} +1 -1
  354. package/dist/esm/{href-CxokGOJ2.js → href-CfNF4pHX.js} +1 -1
  355. package/dist/esm/{i18n-ePBcLlCr.js → i18n-BLkzMf6D.js} +1 -1
  356. package/dist/esm/{i18n-4J6U3ZDc.js → i18n-BRgvVqCf.js} +2 -1
  357. package/dist/esm/{id-BI0ZuK17.js → id-Bh4FF8c0.js} +1 -1
  358. package/dist/esm/{index-DEcM8BEc.js → index-Bbr6Os1b.js} +1 -1
  359. package/dist/esm/index.js +4 -4
  360. package/dist/esm/{input-CDUCo1S5.js → input-C1YsxnDL.js} +4 -5
  361. package/dist/esm/{input-container-BipAkWn4.js → input-container-zXl_6y52.js} +6 -8
  362. package/dist/esm/{item-BvnZc8uV.js → item-DXDEHrEg.js} +4 -4
  363. package/dist/esm/{item-Boe3t0Dm.js → item-Dms_59sU.js} +11 -11
  364. package/dist/esm/{item-B0oQTeju.js → item-hsQoejqZ.js} +4 -4
  365. package/dist/esm/{item-UgJ2uikD.js → item-zXunNZh5.js} +17 -18
  366. package/dist/esm/kol-abbr.entry.js +7 -11
  367. package/dist/esm/kol-accordion.entry.js +15 -17
  368. package/dist/esm/kol-alert.entry.js +27 -30
  369. package/dist/esm/kol-avatar.entry.js +14 -15
  370. package/dist/esm/kol-badge.entry.js +23 -26
  371. package/dist/esm/kol-breadcrumb.entry.js +26 -30
  372. package/dist/esm/kol-button-link.entry.js +22 -25
  373. package/dist/esm/kol-button.entry.js +22 -25
  374. package/dist/esm/kol-card.entry.js +27 -30
  375. package/dist/esm/kol-combobox.entry.js +36 -39
  376. package/dist/esm/kol-details.entry.js +15 -17
  377. package/dist/esm/kol-dialog.entry.js +30 -33
  378. package/dist/esm/kol-drawer.entry.js +30 -33
  379. package/dist/esm/kol-form.entry.js +23 -26
  380. package/dist/esm/kol-heading.entry.js +13 -15
  381. package/dist/esm/kol-icon.entry.js +8 -9
  382. package/dist/esm/kol-image.entry.js +7 -9
  383. package/dist/esm/kol-input-checkbox.entry.js +32 -35
  384. package/dist/esm/kol-input-color.entry.js +35 -38
  385. package/dist/esm/kol-input-date.entry.js +40 -44
  386. package/dist/esm/kol-input-email.entry.js +41 -44
  387. package/dist/esm/kol-input-file.entry.js +35 -38
  388. package/dist/esm/kol-input-number.entry.js +39 -42
  389. package/dist/esm/kol-input-password.entry.js +39 -42
  390. package/dist/esm/kol-input-radio.entry.js +34 -37
  391. package/dist/esm/kol-input-range.entry.js +35 -38
  392. package/dist/esm/kol-input-text.entry.js +41 -44
  393. package/dist/esm/kol-kolibri.entry.js +7 -11
  394. package/dist/esm/kol-link-button.entry.js +23 -26
  395. package/dist/esm/kol-link.entry.js +23 -26
  396. package/dist/esm/kol-meter.entry.js +14 -15
  397. package/dist/esm/kol-modal.entry.js +30 -33
  398. package/dist/esm/kol-nav.entry.js +30 -33
  399. package/dist/esm/kol-pagination.entry.js +41 -44
  400. package/dist/esm/kol-popover-button.entry.js +23 -26
  401. package/dist/esm/kol-progress.entry.js +13 -14
  402. package/dist/esm/kol-quote.entry.js +9 -10
  403. package/dist/esm/kol-select.entry.js +34 -37
  404. package/dist/esm/kol-single-select.entry.js +36 -39
  405. package/dist/esm/kol-skip-nav.entry.js +26 -30
  406. package/dist/esm/kol-spin.entry.js +11 -15
  407. package/dist/esm/kol-split-button.entry.js +26 -29
  408. package/dist/esm/kol-table-stateful.entry.js +53 -54
  409. package/dist/esm/kol-table-stateless.entry.js +37 -40
  410. package/dist/esm/kol-tabs.entry.js +22 -25
  411. package/dist/esm/kol-textarea.entry.js +37 -40
  412. package/dist/esm/kol-toast-container.entry.js +19 -22
  413. package/dist/esm/kol-toolbar.entry.js +27 -30
  414. package/dist/esm/kol-tooltip-wc.entry.js +11 -12
  415. package/dist/esm/kol-tree-item.entry.js +22 -26
  416. package/dist/esm/kol-tree.entry.js +9 -10
  417. package/dist/esm/kol-version.entry.js +20 -23
  418. package/dist/esm/kolibri.js +4 -4
  419. package/dist/esm/{label-B-Dr7VaP.js → label-BQVd3bkc.js} +3 -3
  420. package/dist/esm/{label-hints-CLMiVvfk.js → label-hints-CZGo9ZD5.js} +1 -1
  421. package/dist/esm/{label-lang-segment-iVD9hoM3.js → label-lang-segment-C5LYGOHt.js} +2 -2
  422. package/dist/esm/label-with-expert-slot-D1tpX9DI.js +12 -0
  423. package/dist/esm/{level-DsQ_pcyD.js → level-BVXGgbSM.js} +1 -1
  424. package/dist/esm/{link-target-D7lYILOV.js → link-target-BWPSEd9a.js} +1 -1
  425. package/dist/esm/{links-IkK4zoXw.js → links-BbsnNXfa.js} +1 -1
  426. package/dist/esm/loader.js +4 -4
  427. package/dist/esm/{multiple--ay1C1n3.js → multiple-S3Ol1G6Z.js} +1 -1
  428. package/dist/esm/{number-value-Dl9-2O4r.js → number-value-DmOl1z7z.js} +1 -1
  429. package/dist/esm/{open-CNHJhHsy.js → open-DPP79Urq.js} +1 -1
  430. package/dist/esm/{options-DwO32GBF.js → options-aA3M-QV2.js} +1 -1
  431. package/dist/esm/{orientation-ChJ0S24M.js → orientation-DlsgaY1v.js} +1 -1
  432. package/dist/esm/{placeholder-UxmBJ4Vl.js → placeholder-DlHbiVjz.js} +1 -1
  433. package/dist/esm/{props-from-config-ytxYrJUY.js → props-from-config-BOUcpF7e.js} +84 -6
  434. package/dist/esm/{read-only-DytZ5HZJ.js → read-only-DSBWEPED.js} +1 -1
  435. package/dist/esm/{required-BriHhuO4.js → required-xw5BBPvV.js} +1 -1
  436. package/dist/esm/{resolve-props-kM9N-fzf.js → resolve-props-CL8wxjtP.js} +7 -7
  437. package/dist/esm/{resolve-props-DTXKtzir.js → resolve-props-DAVb5BM3.js} +6 -6
  438. package/dist/esm/{rows-I1jrTjzU.js → rows-DRV8YlQv.js} +1 -1
  439. package/dist/esm/{scroll-lock-Bv-U2FHM.js → scroll-lock-BxAe0gL5.js} +9 -7
  440. package/dist/esm/{smart-button-DM5g48-g.js → smart-button-CQps8AlL.js} +1 -1
  441. package/dist/esm/{spell-check-BWCnJG5v.js → spell-check-hy6xFhmT.js} +1 -1
  442. package/dist/esm/{src-ziOwSglN.js → src-AwoM1pRe.js} +1 -1
  443. package/dist/esm/{step-BcyhvRtu.js → step-CopA0_m7.js} +1 -1
  444. package/dist/esm/{suggestions-D0u80DtA.js → suggestions-BsiiaAxK.js} +3 -3
  445. package/dist/esm/{suggestions-LO267l8F.js → suggestions-CY8BJMOa.js} +1 -1
  446. package/dist/esm/test-component.entry.js +1 -1
  447. package/dist/esm/{toggle-handler-mPlmvrq7.js → toggle-handler-ZMs2rBXc.js} +10 -12
  448. package/dist/esm/{unique-nav-labels-CxFUYSVY.js → unique-nav-labels-BV-M3fPR.js} +1 -1
  449. package/dist/esm/{unit-1ix-K9SD.js → unit-hmMwqE9a.js} +1 -1
  450. package/dist/esm/{validators-CTjxOidB.js → validators-BgDmq-Qt.js} +1 -1
  451. package/dist/esm/{value-string-CxDz7dhD.js → value-string-Dy8zJxlP.js} +1 -1
  452. package/dist/esm/{width-C1_yZHyL.js → width-BHn7XHj_.js} +1 -1
  453. package/dist/kolibri/Heading-BubZbykM.js +4 -0
  454. package/dist/kolibri/api-D0RNr-zh.js +4 -0
  455. package/dist/kolibri/app-globals-DYRte_jr.js +4 -0
  456. package/dist/kolibri/base-BP5SdLvQ.js +4 -0
  457. package/dist/kolibri/{base-BByRnpRm.js → base-BbGt9eYx.js} +1 -1
  458. package/dist/kolibri/base-CLsKm3-e.js +4 -0
  459. package/dist/kolibri/base-Cz00snD6.js +4 -0
  460. package/dist/kolibri/{base-web-component-CC_gpyDb.js → base-web-component-CYPdDdRn.js} +1 -1
  461. package/dist/kolibri/base-web-component-CdSFFCst.js +4 -0
  462. package/dist/kolibri/base-web-component-DP9_OPgV.js +4 -0
  463. package/dist/kolibri/{behavior-CKU2tmCj.js → behavior-B6y5Gofe.js} +1 -1
  464. package/dist/kolibri/{behavior-CsNDRS2z.js → behavior-BJR8CKBx.js} +1 -1
  465. package/dist/kolibri/{behavior-ewHvUWVk.js → behavior-DlH8byIw.js} +1 -1
  466. package/dist/kolibri/bem-registry-SKACeCny.js +4 -0
  467. package/dist/kolibri/{bootstrap-tgQ2nQQI.js → bootstrap-Bp7i4RJQ.js} +1 -1
  468. package/dist/kolibri/{color-D1gM-F2l.js → color-BbljGuAW.js} +1 -1
  469. package/dist/kolibri/component-6_YiKr2Z.js +4 -0
  470. package/dist/kolibri/{component-D6_K50vT.js → component-B8UMedaK.js} +1 -1
  471. package/dist/kolibri/component-CMHB3reH.js +4 -0
  472. package/dist/kolibri/component-CNgECeRi.js +4 -0
  473. package/dist/kolibri/{component-By8ggItU.js → component-CSsUaL_h.js} +1 -1
  474. package/dist/kolibri/component-CiJGQTU0.js +4 -0
  475. package/dist/kolibri/component-DEwcJKDA.js +4 -0
  476. package/dist/kolibri/component-NOe28NXD.js +4 -0
  477. package/dist/kolibri/component-ZdHnXLLI.js +4 -0
  478. package/dist/kolibri/component-bIIx1x7q.js +4 -0
  479. package/dist/kolibri/component-hiabKVP3.js +4 -0
  480. package/dist/kolibri/contrast-DtK0a6X2.js +4 -0
  481. package/dist/kolibri/{dev.utils-BwYCy1rP.js → dev.utils-B0t4rcBV.js} +1 -1
  482. package/dist/kolibri/{devtools-CGP3Nzsw.js → devtools-DuJRc6wJ.js} +1 -1
  483. package/dist/kolibri/disabled-B2o4Ctgy.js +4 -0
  484. package/dist/kolibri/field-control-C9dIXnES.js +4 -0
  485. package/dist/kolibri/group-DydT1Z92.js +4 -0
  486. package/dist/kolibri/has-closer-BrG00xL7.js +4 -0
  487. package/dist/kolibri/href-CfNF4pHX.js +4 -0
  488. package/dist/kolibri/{i18n-ePBcLlCr.js → i18n-BLkzMf6D.js} +1 -1
  489. package/dist/kolibri/{i18n-4J6U3ZDc.js → i18n-BRgvVqCf.js} +1 -1
  490. package/dist/kolibri/id-Bh4FF8c0.js +4 -0
  491. package/dist/kolibri/index-Bbr6Os1b.js +6 -0
  492. package/dist/kolibri/index.esm.js +1 -1
  493. package/dist/kolibri/input-C1YsxnDL.js +4 -0
  494. package/dist/kolibri/input-container-zXl_6y52.js +4 -0
  495. package/dist/kolibri/item-DXDEHrEg.js +4 -0
  496. package/dist/kolibri/item-Dms_59sU.js +4 -0
  497. package/dist/kolibri/item-hsQoejqZ.js +4 -0
  498. package/dist/kolibri/item-zXunNZh5.js +4 -0
  499. package/dist/kolibri/kol-abbr.entry.js +1 -1
  500. package/dist/kolibri/kol-accordion.entry.js +1 -1
  501. package/dist/kolibri/kol-alert.entry.js +1 -1
  502. package/dist/kolibri/kol-avatar.entry.js +1 -1
  503. package/dist/kolibri/kol-badge.entry.js +1 -1
  504. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  505. package/dist/kolibri/kol-button-link.entry.js +1 -1
  506. package/dist/kolibri/kol-button.entry.js +1 -1
  507. package/dist/kolibri/kol-card.entry.js +1 -1
  508. package/dist/kolibri/kol-combobox.entry.js +1 -1
  509. package/dist/kolibri/kol-details.entry.js +1 -1
  510. package/dist/kolibri/kol-dialog.entry.js +1 -1
  511. package/dist/kolibri/kol-drawer.entry.js +1 -1
  512. package/dist/kolibri/kol-form.entry.js +1 -1
  513. package/dist/kolibri/kol-heading.entry.js +1 -1
  514. package/dist/kolibri/kol-icon.entry.js +1 -1
  515. package/dist/kolibri/kol-image.entry.js +1 -1
  516. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  517. package/dist/kolibri/kol-input-color.entry.js +1 -1
  518. package/dist/kolibri/kol-input-date.entry.js +1 -1
  519. package/dist/kolibri/kol-input-email.entry.js +1 -1
  520. package/dist/kolibri/kol-input-file.entry.js +1 -1
  521. package/dist/kolibri/kol-input-number.entry.js +1 -1
  522. package/dist/kolibri/kol-input-password.entry.js +1 -1
  523. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  524. package/dist/kolibri/kol-input-range.entry.js +1 -1
  525. package/dist/kolibri/kol-input-text.entry.js +1 -1
  526. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  527. package/dist/kolibri/kol-link-button.entry.js +1 -1
  528. package/dist/kolibri/kol-link.entry.js +1 -1
  529. package/dist/kolibri/kol-meter.entry.js +1 -1
  530. package/dist/kolibri/kol-modal.entry.js +1 -1
  531. package/dist/kolibri/kol-nav.entry.js +1 -1
  532. package/dist/kolibri/kol-pagination.entry.js +1 -1
  533. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  534. package/dist/kolibri/kol-progress.entry.js +1 -1
  535. package/dist/kolibri/kol-quote.entry.js +1 -1
  536. package/dist/kolibri/kol-select.entry.js +1 -1
  537. package/dist/kolibri/kol-single-select.entry.js +1 -1
  538. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  539. package/dist/kolibri/kol-spin.entry.js +1 -1
  540. package/dist/kolibri/kol-split-button.entry.js +1 -1
  541. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  542. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  543. package/dist/kolibri/kol-tabs.entry.js +1 -1
  544. package/dist/kolibri/kol-textarea.entry.js +1 -1
  545. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  546. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  547. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  548. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  549. package/dist/kolibri/kol-tree.entry.js +1 -1
  550. package/dist/kolibri/kol-version.entry.js +1 -1
  551. package/dist/kolibri/kolibri.esm.js +1 -1
  552. package/dist/kolibri/label-BQVd3bkc.js +4 -0
  553. package/dist/kolibri/label-hints-CZGo9ZD5.js +4 -0
  554. package/dist/kolibri/label-lang-segment-C5LYGOHt.js +4 -0
  555. package/dist/kolibri/label-with-expert-slot-D1tpX9DI.js +4 -0
  556. package/dist/kolibri/level-BVXGgbSM.js +4 -0
  557. package/dist/kolibri/link-target-BWPSEd9a.js +4 -0
  558. package/dist/kolibri/{links-IkK4zoXw.js → links-BbsnNXfa.js} +1 -1
  559. package/dist/kolibri/multiple-S3Ol1G6Z.js +4 -0
  560. package/dist/kolibri/number-value-DmOl1z7z.js +4 -0
  561. package/dist/kolibri/open-DPP79Urq.js +4 -0
  562. package/dist/kolibri/{options-DwO32GBF.js → options-aA3M-QV2.js} +1 -1
  563. package/dist/kolibri/orientation-DlsgaY1v.js +4 -0
  564. package/dist/kolibri/placeholder-DlHbiVjz.js +4 -0
  565. package/dist/kolibri/props-from-config-BOUcpF7e.js +4 -0
  566. package/dist/kolibri/read-only-DSBWEPED.js +4 -0
  567. package/dist/kolibri/required-xw5BBPvV.js +4 -0
  568. package/dist/kolibri/resolve-props-CL8wxjtP.js +4 -0
  569. package/dist/kolibri/resolve-props-DAVb5BM3.js +4 -0
  570. package/dist/kolibri/rows-DRV8YlQv.js +4 -0
  571. package/dist/kolibri/scroll-lock-BxAe0gL5.js +4 -0
  572. package/dist/kolibri/{smart-button-DM5g48-g.js → smart-button-CQps8AlL.js} +1 -1
  573. package/dist/kolibri/spell-check-hy6xFhmT.js +4 -0
  574. package/dist/kolibri/src-AwoM1pRe.js +4 -0
  575. package/dist/kolibri/step-CopA0_m7.js +4 -0
  576. package/dist/kolibri/{suggestions-D0u80DtA.js → suggestions-BsiiaAxK.js} +1 -1
  577. package/dist/kolibri/{suggestions-LO267l8F.js → suggestions-CY8BJMOa.js} +1 -1
  578. package/dist/kolibri/test-component.entry.js +1 -1
  579. package/dist/kolibri/toggle-handler-ZMs2rBXc.js +4 -0
  580. package/dist/kolibri/unique-nav-labels-BV-M3fPR.js +4 -0
  581. package/dist/kolibri/unit-hmMwqE9a.js +4 -0
  582. package/dist/kolibri/validators-BgDmq-Qt.js +4 -0
  583. package/dist/kolibri/value-string-Dy8zJxlP.js +4 -0
  584. package/dist/kolibri/{width-C1_yZHyL.js → width-BHn7XHj_.js} +1 -1
  585. package/dist/types/components/alert/component.d.ts +1 -0
  586. package/dist/types/components/input-date/component.d.ts +1 -1
  587. package/dist/types/components.d.ts +2 -2
  588. package/dist/types/internal/functional-components/bem-root-node/component.d.ts +8 -4
  589. package/dist/types/internal/functional-components/button/item.d.ts +1 -1
  590. package/dist/types/internal/functional-components/dialog/component.d.ts +7 -3
  591. package/dist/types/internal/functional-components/pagination/item.d.ts +4 -2
  592. package/dist/types/schema/bem-registry.d.ts +40 -0
  593. package/doc/pagination.md +13 -13
  594. package/package.json +10 -5
  595. package/vscode-custom-data.json +1 -1
  596. package/dist/cjs/block-bem-BVBM34Tu.js +0 -18
  597. package/dist/cjs/clsx-Bm_HQUnh.js +0 -54
  598. package/dist/cjs/component-CVLJJvvd.js +0 -53
  599. package/dist/cjs/component-DNQW0lG8.js +0 -18
  600. package/dist/cjs/component-DfGgpwuP.js +0 -20
  601. package/dist/cjs/input-CtqTozTO.js +0 -20
  602. package/dist/components/block-bem.js +0 -4
  603. package/dist/components/clsx.js +0 -4
  604. package/dist/components/component11.js +0 -4
  605. package/dist/esm/block-bem-D3ixJyOY.js +0 -16
  606. package/dist/esm/clsx-COFh-Vc8.js +0 -52
  607. package/dist/esm/component-Ccv2lqNq.js +0 -16
  608. package/dist/esm/component-DAk3R8NN.js +0 -48
  609. package/dist/esm/component-EDDTMC-J.js +0 -18
  610. package/dist/esm/label-with-expert-slot-BbZ9nx0l.js +0 -12
  611. package/dist/kolibri/Heading-GZb1f2pZ.js +0 -4
  612. package/dist/kolibri/api-CBPlj155.js +0 -4
  613. package/dist/kolibri/app-globals-DRl9A82c.js +0 -4
  614. package/dist/kolibri/base-C7BBsrYZ.js +0 -4
  615. package/dist/kolibri/base-DO0KvOv9.js +0 -4
  616. package/dist/kolibri/base-Dtxcvto_.js +0 -4
  617. package/dist/kolibri/base-web-component-BxXLva5d.js +0 -4
  618. package/dist/kolibri/base-web-component-CfPyCJDJ.js +0 -4
  619. package/dist/kolibri/bem-registry-D1KgKnyz.js +0 -4
  620. package/dist/kolibri/block-bem-D3ixJyOY.js +0 -4
  621. package/dist/kolibri/clsx-COFh-Vc8.js +0 -4
  622. package/dist/kolibri/component-6l69Jvwl.js +0 -4
  623. package/dist/kolibri/component-B3OziaRC.js +0 -4
  624. package/dist/kolibri/component-CF8uFG0A.js +0 -4
  625. package/dist/kolibri/component-Ccv2lqNq.js +0 -4
  626. package/dist/kolibri/component-Cmi6iGfA.js +0 -4
  627. package/dist/kolibri/component-D4-NVnsT.js +0 -4
  628. package/dist/kolibri/component-D6lo0LzE.js +0 -4
  629. package/dist/kolibri/component-D9NreIlK.js +0 -4
  630. package/dist/kolibri/component-DAk3R8NN.js +0 -4
  631. package/dist/kolibri/component-EDDTMC-J.js +0 -4
  632. package/dist/kolibri/contrast-BNoQruBh.js +0 -4
  633. package/dist/kolibri/disabled-BZXlWAgK.js +0 -4
  634. package/dist/kolibri/field-control-0TRmF7Ea.js +0 -4
  635. package/dist/kolibri/group-DapkT_Yh.js +0 -4
  636. package/dist/kolibri/has-closer-DUB0QcS9.js +0 -4
  637. package/dist/kolibri/href-CxokGOJ2.js +0 -4
  638. package/dist/kolibri/id-BI0ZuK17.js +0 -4
  639. package/dist/kolibri/index-DEcM8BEc.js +0 -6
  640. package/dist/kolibri/input-CDUCo1S5.js +0 -4
  641. package/dist/kolibri/input-container-BipAkWn4.js +0 -4
  642. package/dist/kolibri/item-B0oQTeju.js +0 -4
  643. package/dist/kolibri/item-Boe3t0Dm.js +0 -4
  644. package/dist/kolibri/item-BvnZc8uV.js +0 -4
  645. package/dist/kolibri/item-UgJ2uikD.js +0 -4
  646. package/dist/kolibri/label-B-Dr7VaP.js +0 -4
  647. package/dist/kolibri/label-hints-CLMiVvfk.js +0 -4
  648. package/dist/kolibri/label-lang-segment-iVD9hoM3.js +0 -4
  649. package/dist/kolibri/label-with-expert-slot-BbZ9nx0l.js +0 -4
  650. package/dist/kolibri/level-DsQ_pcyD.js +0 -4
  651. package/dist/kolibri/link-target-D7lYILOV.js +0 -4
  652. package/dist/kolibri/multiple--ay1C1n3.js +0 -4
  653. package/dist/kolibri/number-value-Dl9-2O4r.js +0 -4
  654. package/dist/kolibri/open-CNHJhHsy.js +0 -4
  655. package/dist/kolibri/orientation-ChJ0S24M.js +0 -4
  656. package/dist/kolibri/placeholder-UxmBJ4Vl.js +0 -4
  657. package/dist/kolibri/props-from-config-ytxYrJUY.js +0 -4
  658. package/dist/kolibri/read-only-DytZ5HZJ.js +0 -4
  659. package/dist/kolibri/required-BriHhuO4.js +0 -4
  660. package/dist/kolibri/resolve-props-DTXKtzir.js +0 -4
  661. package/dist/kolibri/resolve-props-kM9N-fzf.js +0 -4
  662. package/dist/kolibri/rows-I1jrTjzU.js +0 -4
  663. package/dist/kolibri/scroll-lock-Bv-U2FHM.js +0 -4
  664. package/dist/kolibri/spell-check-BWCnJG5v.js +0 -4
  665. package/dist/kolibri/src-ziOwSglN.js +0 -4
  666. package/dist/kolibri/step-BcyhvRtu.js +0 -4
  667. package/dist/kolibri/toggle-handler-mPlmvrq7.js +0 -4
  668. package/dist/kolibri/unique-nav-labels-CxFUYSVY.js +0 -4
  669. package/dist/kolibri/unit-1ix-K9SD.js +0 -4
  670. package/dist/kolibri/validators-CTjxOidB.js +0 -4
  671. package/dist/kolibri/value-string-CxDz7dhD.js +0 -4
@@ -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 s}from"./tslib.es6.js";import{t as n}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 b}from"./component9.js";import{c as f}from"./item.js";import{h as m,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,m,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("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=f((()=>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){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){m.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"),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:"e97d74740ca2641fc9e91808f9823a434f329ebe"},t(v,Object.assign({key:"427af456c8f187427acac404fec841b03e32fea4"},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:"0f292e23326941a0aab511890178b149dc9c4d44",disabled:i,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:n,endAdornment:l},t(j,{key:"86094880cdb9246187fca259826e3a8d7772c7e9",block:"kol-single-select"},t(B,Object.assign({key:"66de3c681eccffe2a7bad31fcf62b9af5a3be5ee"},this.getInputProps())),this.inputValue&&this.getRenderProp("hasClearButton")&&t(b,Object.assign({key:"8c45914b4492116e1c3065b552a2bc03a5ae905f"},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:"149196f27fb6d7b239ec867c90665ac4d9f811e3",disabled:i,handleClick:this.toggleListbox})),t(O,{key:"927d007b04a6e25651dd25abb2d2baba3b1b4375",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:"98763dadb3abece49ebfcf4a0c07b73302cddd2f",message:this.translateNoResultsMessage}),t(N,{key:"b8783feb1b6693c0ddab9add1e1123624f30a578",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-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=1794913000943"); src: url("kolicons.eot?t=1794913000943#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794913000943") format("woff2"), url("kolicons.woff?t=1794913000943") format("woff"), url("kolicons.ttf?t=1794913000943") format("truetype"), url("kolicons.svg?t=1794913000943#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}
4
+ import{h as t,proxyCustomElement as e,Host as o,transformTag as i}from"@stencil/core/internal/client";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{e as a}from"./props-from-config.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"./component8.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{b as C}from"./bem-registry.js";import{a as K,d as T,v as A}from"./component2.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"./component4.js";const q=D(),F={required:[...v.required,q],optional:[...v.optional,K,w,f,S,V,I,T,A]},L=C.forBlock("kol-single-select"),M=C.forBlock("kol-custom-suggestions-toggle"),P=L("delete"),R=L("no-results-message"),E=({disabled:e,handleClick:o})=>t(H,{icons:"kolicon-chevron-down",label:"",class:M({disabled:e}),onClick:o}),G=({message:e})=>t("div",{class:R},e," "),N=({message:e})=>t("span",{class:"visually-hidden",role:"status"},e),W=e(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 e;if(null==t||t.preventDefault(),!0!==this.getRenderProp("disabled"))if(null===(e=this.ctaRef.el)||void 0===e||e.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 e=t.target.value;this.inputValue=e,this.isOpen=!0,this.setFilteredOptionsByQuery(e),this.focusedIndex=-1},this.handleSingleSelectChange=t=>{this.isOpen||this.handleChange(t,this._value)},this.handleSingleSelectClick=t=>{var e;this.toggleListbox(t),null===(e=this.ctaRef.el)||void 0===e||e.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){K.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){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 e;this.applyOptions(t),this.filteredOptions=[...null!==(e=this.getRenderProp("options"))&&void 0!==e?e:[]],this.isOpen?this.setFilteredOptionsByQuery(this.inputValue):this.updateInputValue(this._value)}watchRequired(t){V.apply(t,(t=>this.setRenderProp("required",t)))}watchShortKey(t){T.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){A.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,e=1){this.filteredOptions&&this.moveFocusSkippingDisabled(t,e,(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 e;this.clearButtonFocused?(this.clearSelection(),t.preventDefault()):this.isOpen?this.selectFocusedOption()&&(null===(e=this.ctaRef.el)||void 0===e||e.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 e=t.toLowerCase(),o=Array.isArray(this.filteredOptions)&&this.filteredOptions.findIndex((t=>t.label.toLowerCase().startsWith(e)&&!t.disabled));"number"==typeof o&&o>=0&&this.focusOption(o)}setFilteredOptionsByQuery(t){if(void 0===t)return;const e=this.getRenderProp("options");""===t.trim()?this.filteredOptions=[...e]:Array.isArray(e)&&e.length>0&&t.length>0&&(this.filteredOptions=e.filter((e=>{var o,i;return null===(i=null===(o=e.label)||void 0===o?void 0:o.toLowerCase())||void 0===i?void 0:i.includes(t.toLowerCase())})))}updateInputValue(t){var e;const o=null===(e=this.getRenderProp("options"))||void 0===e?void 0:e.find((e=>e.value===t));this.inputValue=o?o.label+"":""}selectOption(t){var e;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 o={name:null!==(e=this.getRenderProp("name"))&&void 0!==e?e:"",value:t.value};this.handleInput(k(p.input,o,this.ctaRef.el),t.value),this.handleChange(k(p.change,o,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 e=null;this.focusedIndex=-1,this._value=e,this.inputValue="",this.filteredOptions=[...this.getRenderProp("options")];const o={name:this.getRenderProp("name"),value:e};this.handleInput(k(p.input,o,this.ctaRef.el),e),this.handleChange(k(p.change,o,this.ctaRef.el),e),null===(t=this.ctaRef.el)||void 0===t||t.focus(),this.isOpen=!0}selectOptionByInputValue(){const t=this.getRenderProp("options"),e=null==t?void 0:t.find((t=>{var e,o;return(null===(e=t.label)||void 0===e?void 0:e.toLowerCase())===(null===(o=this.inputValue)||void 0===o?void 0:o.toLowerCase())}));e?this.selectOption(e):null!=this._value&&(this.filteredOptions=[...null!=t?t:[]])}getInputProps(){const{ariaDescribedBy:t,hasError:e}=this.getAria(),o=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:o,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(o,"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(o,"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":e?"true":void 0})}hasNoResults(){return!Array.isArray(this.filteredOptions)||0===this.filteredOptions.length}renderOptions(){return this.hasNoResults()?[]:this.filteredOptions.map(((e,o)=>t(z,{id:this.getOptionId(o),index:o,option:e.label,searchTerm:this.inputValue,ref:t=>{t&&(this.optionRefs[o]=t)},selected:this._value===e.value,disabled:!!e.disabled,onClick:t=>{var o;e.disabled||(t.preventDefault(),this.selectOption(e),this.isOpen=!1,null===(o=this.ctaRef.el)||void 0===o||o.focus())},onMouseOver:()=>{this.blockSuggestionMouseOver||e.disabled||this.focusOption(o)},onFocus:()=>{e.disabled||this.focusOption(o)}})))}applyOptions(t){q.apply(t,(t=>this.setRenderProp("options",t)))}render(){var e;const i=!0===this.getRenderProp("disabled"),s=this.isOpen&&!i&&this.hasNoResults(),{startAdornment:n,endAdornment:l}=g({icons:this.getRenderProp("icons")});return t(o,{key:"e97d74740ca2641fc9e91808f9823a434f329ebe"},t(y,Object.assign({key:"427af456c8f187427acac404fec841b03e32fea4"},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:"0f292e23326941a0aab511890178b149dc9c4d44",disabled:i,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:n,endAdornment:l},t(j,{key:"86094880cdb9246187fca259826e3a8d7772c7e9",block:"kol-single-select"},t(B,Object.assign({key:"66de3c681eccffe2a7bad31fcf62b9af5a3be5ee"},this.getInputProps())),this.inputValue&&this.getRenderProp("hasClearButton")&&t(m,Object.assign({key:"8c45914b4492116e1c3065b552a2bc03a5ae905f"},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:"149196f27fb6d7b239ec867c90665ac4d9f811e3",disabled:i,handleClick:this.toggleListbox})),t(O,{key:"927d007b04a6e25651dd25abb2d2baba3b1b4375",blockSuggestionMouseOver:this.blockSuggestionMouseOver,onKeyDown:this.handleDropdownKeyDown,style:{"--visible-options":""+(null!==(e=this.getRenderProp("rows"))&&void 0!==e?e:5)},hidden:!this.isOpen||i,id:c(this.id,"listbox"),"aria-labelledby":c(this.id,"label")},this.renderOptions()),s&&t(G,{key:"98763dadb3abece49ebfcf4a0c07b73302cddd2f",message:this.translateNoResultsMessage}),t(N,{key:"b8783feb1b6693c0ddab9add1e1123624f30a578",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=1794998877659"); src: url("kolicons.eot?t=1794998877659#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794998877659") format("woff2"), url("kolicons.woff?t=1794998877659") format("woff"), url("kolicons.ttf?t=1794998877659") format("truetype"), url("kolicons.svg?t=1794998877659#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:"8aa2d416755d0d5b85469b5b5c194ff21a1b8098"},o(V,{key:"55846a133762dcd8855fc6684801ad4afefbde7e",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=1794913000943"); src: url("kolicons.eot?t=1794913000943#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794913000943") format("woff2"), url("kolicons.woff?t=1794913000943") format("woff"), url("kolicons.ttf?t=1794913000943") format("truetype"), url("kolicons.svg?t=1794913000943#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,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{B as c,d as k}from"./props-from-config.js";import{l as d}from"./label.js";import{c as b}from"./links.js";import{L as m,l as f,a as p,d as h,b as u}from"./component5.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"./component2.js";import{d as S}from"./disabled.js";import{h as q}from"./href.js";import{l as F}from"./label-with-expert-slot.js";import{l as K}from"./link-target.js";import{T as P}from"./behavior.js";import{r as R,a as A}from"./unique-nav-labels.js";const D=b("KolSkipNav"),H={required:[D,d]},N=a.forBlock("kol-skip-nav"),O=N("list"),U=N("list-item"),V=({label:e,linkItems:t})=>o(c,{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=e(class extends l{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.linkItems=[],this.ctaRef=y(),this.propsConfig=H}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())),R(this.getRenderProp("label"))}applyLabel(o,e=!1){e||R(this.getRenderProp("label")),d.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label")),s(o),A(this.getRenderProp("label"))}applyLinks(o){D.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 P(l.stateLess),n=y(),a=k(f);a.tabIndex=void 0;const s=(o,e)=>o.apply(e,(e=>{a[o.propName]=e}));return s(z,o._accessKey),s(j,o._ariaControls),s(p,o._ariaCurrentValue),s(T,o._ariaDescription),s(S,o._disabled),s(h,o._download),s(L,o._hideLabel),s(q,o._href),s(C,o._icons),s(B,null===(t=o._inline)||void 0===t||t),s(F,o._label),s(u,o._on),s(G,o._shortKey),"number"==typeof o._tabIndex&&s(I,o._tabIndex),s(K,o._target),s(E,o._tooltipAlign),g(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=v(),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&&x(s,w.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:"8aa2d416755d0d5b85469b5b5c194ff21a1b8098"},o(V,{key:"55846a133762dcd8855fc6684801ad4afefbde7e",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=1794998877659"); src: url("kolicons.eot?t=1794998877659#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794998877659") format("woff2"), url("kolicons.woff?t=1794998877659") format("woff"), url("kolicons.ttf?t=1794998877659") format("truetype"), url("kolicons.svg?t=1794998877659#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}
@@ -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:"d301a0a20e36b30c8ad1cc52835514071cf7363b"},i(s,{key:"5d77cbe0d1f9de8148e1a848799cdf2a7bf42d95",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{proxyCustomElement as o,h as e,Host as i,transformTag as r}from"@stencil/core/internal/client";import{B as t}from"./base-web-component.js";import{s as a,a as l,v as n,S as s}from"./component10.js";import"./bem-registry.js";import"./props-from-config.js";import{l as c}from"./label.js";const d=o(class extends t{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:"d301a0a20e36b30c8ad1cc52835514071cf7363b"},e(s,{key:"5d77cbe0d1f9de8148e1a848799cdf2a7bf42d95",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(r(o))||customElements.define(r(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"./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:"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=1794913000943"); src: url("kolicons.eot?t=1794913000943#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794913000943") format("woff2"), url("kolicons.woff?t=1794913000943") format("woff"), url("kolicons.ttf?t=1794913000943") format("truetype"), url("kolicons.svg?t=1794913000943#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,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{B as l,e as r}from"./props-from-config.js";import{B as s}from"./component8.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(l,{block:"kol-split-button",class:n},o("div",{class:_},o("div",{class:r(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 r({[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-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=1794998877659"); src: url("kolicons.eot?t=1794998877659#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794998877659") format("woff2"), url("kolicons.woff?t=1794998877659") format("woff"), url("kolicons.ttf?t=1794998877659") format("truetype"), url("kolicons.svg?t=1794998877659#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{B as c,t as d,a as h,v as k}from"./base4.js";import{c as p,n as b,b as _,a as f,t as u}from"./props-from-config.js";import{C as m}from"./keyboard.js";import{d as g,K as v}from"./events.js";const y=p("allowMultiSort",!1,b),x=["both","bottom","top"],w=p("paginationPosition","bottom",(t=>{const e=_(t);if(x.includes(e))return e;throw Error("Invalid pagination position: "+e)})),z=t=>{try{return r(t)}catch(e){return t}},S=p("pagination",{_page:1,_pageSize:10,_max:0},(t=>{const e=z(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.")})),j=f(),C=p("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.")})),O=t=>void 0===t.type||"default"===t.type;function P(t,e,o){if(O(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 T(t,e,o,i){if(O(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 D=[10,20,50,100],L=t(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(!O(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)},this.handleChangeHeaderCells=t=>{this.adjustedHeaderCells=t}}watchAriaLabelledby(t){this.resolveExternalLabel(t)}watchAllowMultiSort(t){y.apply(t,(t=>{this.allowMultiSort=t}))}watchData(t){d.apply(t,(t=>{this.data=t,setTimeout(this.updateSortedData)}))}watchDataFoot(t){h.apply(t,(t=>{this.setRenderProp("dataFoot",t),setTimeout(this.updateSortedData)}))}watchFixedCols(t){this.applyFixedCols(t)}watchHeaders(t){C.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=z(t);return!0===e||""===e||"object"==typeof e&&null!==e})(t),S.apply(t,(t=>{this.pagination=t}))}watchPaginationPosition(t){w.apply(t,(t=>{this.paginationPosition=t}))}watchSelection(t){this.applySelection(t)}watchOn(t){j.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:o,missingKey:i}=function(t,e){var o,i;let n=[],l=!1,a=!1;const r=t=>{n=[],t.forEach((t=>{if(!O(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:P(t,o,i),sortOrder:T(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[m.onSelectionChange];"function"==typeof l&&l(t,n),this.host&&g(this.host,v.selectionChange,n)}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||D,siblingCount:this.pagination._siblingCount,tooltipAlign:"bottom",max:this.pagination._max||this.data.length,label:n("kol-table-pagination-label",{placeholders:{label:`${u(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=k(this,this.host,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:"60dc07fde1e596eb092cb09fdb69c34b93114f6c",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=1794913000943"); src: url("kolicons.eot?t=1794913000943#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794913000943") format("woff2"), url("kolicons.woff?t=1794913000943") format("woff"), url("kolicons.ttf?t=1794913000943") format("truetype"), url("kolicons.svg?t=1794913000943#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}]}]),M=L,A=function(){"undefined"!=typeof customElements&&["kol-table-stateful"].forEach((t=>{"kol-table-stateful"===t&&(customElements.get(i(t))||customElements.define(i(t),L))}))};export{M as KolTableStateful,A as defineCustomElement}
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,b as s,g as c}from"./bem-registry.js";import{B as d,t as k,a as h,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}},C=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.")})),j=u(),T=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.")})),O=t=>void 0===t.type||"default"===t.type;function P(t,e,o){if(O(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(O(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=s.forBlock("kol-table-stateful"),M=L("pagination-wrapper"),A=[10,20,50,100],F=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(!O(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)},this.handleChangeHeaderCells=t=>{this.adjustedHeaderCells=t}}watchAriaLabelledby(t){this.resolveExternalLabel(t)}watchAllowMultiSort(t){x.apply(t,(t=>{this.allowMultiSort=t}))}watchData(t){k.apply(t,(t=>{this.data=t,setTimeout(this.updateSortedData)}))}watchDataFoot(t){h.apply(t,(t=>{this.setRenderProp("dataFoot",t),setTimeout(this.updateSortedData)}))}watchFixedCols(t){this.applyFixedCols(t)}watchHeaders(t){T.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,c("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),C.apply(t,(t=>{this.pagination=t}))}watchPaginationPosition(t){z.apply(t,(t=>{this.paginationPosition=t}))}watchSelection(t){this.applySelection(t)}watchOn(t){j.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:o,missingKey:i}=function(t,e){var o,i;let n=[],l=!1,a=!1;const r=t=>{n=[],t.forEach((t=>{if(!O(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&&c("[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:P(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)}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||A,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,t),this.syncTableLabel(this.externalLabelElements)}renderPagination(t){const o=this.paginationItems[t];return o&&e("div",{class:L("pagination",{[this.paginationPosition]:!0})},e("div",{class:M},e(a,Object.assign({},o.getFcProps()))))}render(){return e(o,{key:"0bd29f01e9299380eff33e26d02fa1ca105e37a3",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=1794998877659"); src: url("kolicons.eot?t=1794998877659#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794998877659") format("woff2"), url("kolicons.woff?t=1794998877659") format("woff"), url("kolicons.ttf?t=1794998877659") format("truetype"), url("kolicons.svg?t=1794998877659#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}]}]),E=F,H=function(){"undefined"!=typeof customElements&&["kol-table-stateful"].forEach((t=>{"kol-table-stateful"===t&&(customElements.get(i(t))||customElements.define(i(t),F))}))};export{E as KolTableStateful,H as defineCustomElement}