@public-ui/components 4.6.0-rc.0 → 4.6.0-rc.1

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 (547) 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 +4 -42
  7. package/dist/cjs/{Heading-CSxHzc97.js → Heading-DpKpW9_U.js} +1 -1
  8. package/dist/cjs/{api-CgWeKMMq.js → api-DSnFV5pX.js} +16 -16
  9. package/dist/cjs/{app-globals-pY-Cyxgv.js → app-globals-DWk29tH4.js} +2 -2
  10. package/dist/cjs/{base-qwdvh9pf.js → base-B1L6tTOu.js} +4 -4
  11. package/dist/cjs/{base-YsLg9vB1.js → base-Cdk10fDz.js} +4 -4
  12. package/dist/cjs/{base-Bza2102z.js → base-DB-5MCfF.js} +6 -7
  13. package/dist/cjs/{base-CYqcl2o4.js → base-uTtcb6OV.js} +17 -17
  14. package/dist/cjs/{base-web-component-CkEUtzNr.js → base-web-component-BdHm5Oq9.js} +5 -5
  15. package/dist/cjs/{base-web-component-Cp4fQ2Mh.js → base-web-component-CyF5QpIH.js} +6 -6
  16. package/dist/cjs/{behavior-DV-LMyJJ.js → behavior-BnUihLzw.js} +4 -4
  17. package/dist/cjs/{behavior-BqwUv55g.js → behavior-C3w_8ifK.js} +2 -2
  18. package/dist/cjs/{behavior-DvLNQY2U.js → behavior-D5F_9gEC.js} +1 -1
  19. package/dist/cjs/{bem-registry-CyxrH26c.js → bem-registry-ZJZujhCi.js} +0 -15
  20. package/dist/cjs/{block-bem-BI7yfoFU.js → block-bem-CMvCkLkl.js} +1 -1
  21. package/dist/cjs/{component-DtmmNGjm.js → component-B2l8N5t_.js} +4 -4
  22. package/dist/cjs/{component-COEAaB_B.js → component-BE_gS80r.js} +2 -2
  23. package/dist/cjs/{component-B9y7UnKg.js → component-BXz1XtoE.js} +7 -7
  24. package/dist/cjs/{component-DXBzTkOY.js → component-BwrQID5A.js} +3 -3
  25. package/dist/cjs/{component-D_9ZydZA.js → component-C46QQbMS.js} +10 -8
  26. package/dist/cjs/{component-q87oQHev.js → component-CWEYNtAH.js} +3 -3
  27. package/dist/cjs/{component-CRDSSR7G.js → component-CrW05zUq.js} +2 -2
  28. package/dist/cjs/{component-BM0H6uUo.js → component-DfChjUi8.js} +7 -7
  29. package/dist/cjs/{component-CeT2UQLF.js → component-DsWMXDya.js} +3 -3
  30. package/dist/cjs/{component-Br2jlQXL.js → component-N-3XFtFS.js} +6 -6
  31. package/dist/cjs/{component-CKMtvWhe.js → component-_p4OHWcc.js} +6 -6
  32. package/dist/cjs/{component-D5PYQ9Ku.js → component-eYoUHQ64.js} +2 -2
  33. package/dist/cjs/{dev.utils-DOgQN_zk.js → dev.utils-Bxq7b-n1.js} +1 -1
  34. package/dist/cjs/{devtools-CG9Ov5FS.js → devtools-BLvPSoCH.js} +2 -2
  35. package/dist/cjs/{field-control-BT1ZyKNR.js → field-control-D9t3USqP.js} +7 -7
  36. package/dist/cjs/{group-0C7hEZpp.js → group-CFBPF3hG.js} +5 -5
  37. package/dist/cjs/{index-14cLFAPd.js → index-CNhjOFBg.js} +2 -32
  38. package/dist/cjs/index.cjs.js +1 -1
  39. package/dist/cjs/{input-DOHuLJaE.js → input-C3F73RZW.js} +4 -4
  40. package/dist/cjs/{input-container-Ddovz1-b.js → input-container-B5-_NcRy.js} +6 -6
  41. package/dist/cjs/{item--tny4oQM.js → item-CfCrfeQL.js} +3 -3
  42. package/dist/cjs/{item-CWoQfEPo.js → item-DvddzW3M.js} +3 -3
  43. package/dist/cjs/{item-aV2WKcK3.js → item-dlea1NHr.js} +13 -13
  44. package/dist/cjs/{item-ZLQ1Yy47.js → item-nAB1wPvv.js} +7 -8
  45. package/dist/cjs/kol-abbr.cjs.entry.js +5 -5
  46. package/dist/cjs/kol-accordion.cjs.entry.js +10 -10
  47. package/dist/cjs/kol-alert.cjs.entry.js +15 -16
  48. package/dist/cjs/kol-avatar.cjs.entry.js +3 -3
  49. package/dist/cjs/kol-badge.cjs.entry.js +15 -16
  50. package/dist/cjs/kol-breadcrumb.cjs.entry.js +13 -13
  51. package/dist/cjs/kol-button-link.cjs.entry.js +15 -16
  52. package/dist/cjs/kol-button.cjs.entry.js +15 -16
  53. package/dist/cjs/kol-card.cjs.entry.js +16 -17
  54. package/dist/cjs/kol-combobox.cjs.entry.js +26 -27
  55. package/dist/cjs/kol-details.cjs.entry.js +10 -10
  56. package/dist/cjs/kol-dialog.cjs.entry.js +18 -19
  57. package/dist/cjs/kol-drawer.cjs.entry.js +17 -18
  58. package/dist/cjs/kol-form.cjs.entry.js +15 -16
  59. package/dist/cjs/kol-heading.cjs.entry.js +5 -5
  60. package/dist/cjs/kol-icon.cjs.entry.js +5 -5
  61. package/dist/cjs/kol-image.cjs.entry.js +3 -3
  62. package/dist/cjs/kol-input-checkbox.cjs.entry.js +29 -30
  63. package/dist/cjs/kol-input-color.cjs.entry.js +25 -26
  64. package/dist/cjs/kol-input-date.cjs.entry.js +25 -26
  65. package/dist/cjs/kol-input-email.cjs.entry.js +31 -32
  66. package/dist/cjs/kol-input-file.cjs.entry.js +24 -25
  67. package/dist/cjs/kol-input-number.cjs.entry.js +25 -26
  68. package/dist/cjs/kol-input-password.cjs.entry.js +26 -27
  69. package/dist/cjs/kol-input-radio.cjs.entry.js +24 -25
  70. package/dist/cjs/kol-input-range.cjs.entry.js +25 -26
  71. package/dist/cjs/kol-input-text.cjs.entry.js +26 -27
  72. package/dist/cjs/kol-kolibri.cjs.entry.js +5 -5
  73. package/dist/cjs/kol-link-button.cjs.entry.js +14 -14
  74. package/dist/cjs/kol-link.cjs.entry.js +14 -14
  75. package/dist/cjs/kol-meter.cjs.entry.js +5 -5
  76. package/dist/cjs/kol-modal.cjs.entry.js +18 -19
  77. package/dist/cjs/kol-nav.cjs.entry.js +18 -19
  78. package/dist/cjs/kol-pagination.cjs.entry.js +26 -28
  79. package/dist/cjs/kol-popover-button.cjs.entry.js +16 -17
  80. package/dist/cjs/kol-progress.cjs.entry.js +5 -5
  81. package/dist/cjs/kol-quote.cjs.entry.js +3 -3
  82. package/dist/cjs/kol-select.cjs.entry.js +23 -24
  83. package/dist/cjs/kol-single-select.cjs.entry.js +26 -27
  84. package/dist/cjs/kol-skip-nav.cjs.entry.js +13 -13
  85. package/dist/cjs/kol-spin.cjs.entry.js +6 -6
  86. package/dist/cjs/kol-split-button.cjs.entry.js +18 -19
  87. package/dist/cjs/kol-table-stateful.cjs.entry.js +31 -32
  88. package/dist/cjs/kol-table-stateless.cjs.entry.js +24 -25
  89. package/dist/cjs/kol-tabs.cjs.entry.js +14 -15
  90. package/dist/cjs/kol-textarea.cjs.entry.js +24 -25
  91. package/dist/cjs/kol-toast-container.cjs.entry.js +14 -15
  92. package/dist/cjs/kol-toolbar.cjs.entry.js +16 -17
  93. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +7 -7
  94. package/dist/cjs/kol-tree-item.cjs.entry.js +12 -12
  95. package/dist/cjs/kol-tree.cjs.entry.js +3 -3
  96. package/dist/cjs/kol-version.cjs.entry.js +12 -13
  97. package/dist/cjs/kolibri.cjs.js +3 -3
  98. package/dist/cjs/loader.cjs.js +3 -3
  99. package/dist/cjs/{resolve-props-DhLgYN4l.js → resolve-props-BUSerQcI.js} +2 -2
  100. package/dist/cjs/{resolve-props-BpLJmK75.js → resolve-props-ClWlRbhz.js} +3 -4
  101. package/dist/cjs/{scroll-lock-C7PeigI_.js → scroll-lock-CSW_wA0P.js} +2 -2
  102. package/dist/cjs/{suggestions-CZjGY0Eu.js → suggestions-CIGYxDps.js} +2 -2
  103. package/dist/cjs/test-component.cjs.entry.js +1 -1
  104. package/dist/cjs/{toggle-handler-rQkcX4QY.js → toggle-handler-Cy5RcTS_.js} +4 -4
  105. package/dist/collection/collection-manifest.json +0 -7
  106. package/dist/collection/components/abbr/component.js +1 -1
  107. package/dist/collection/components/accordion/component.js +1 -1
  108. package/dist/collection/components/accordion/style.css +2 -2
  109. package/dist/collection/components/alert/component.js +1 -1
  110. package/dist/collection/components/alert/style.css +2 -2
  111. package/dist/collection/components/avatar/component.js +1 -1
  112. package/dist/collection/components/badge/component.js +1 -1
  113. package/dist/collection/components/badge/style.css +2 -2
  114. package/dist/collection/components/breadcrumb/component.js +1 -1
  115. package/dist/collection/components/breadcrumb/style.css +2 -2
  116. package/dist/collection/components/button/component.js +1 -1
  117. package/dist/collection/components/button/style.css +2 -2
  118. package/dist/collection/components/button-link/component.js +1 -1
  119. package/dist/collection/components/button-link/style.css +2 -2
  120. package/dist/collection/components/card/component.js +1 -1
  121. package/dist/collection/components/card/style.css +2 -2
  122. package/dist/collection/components/combobox/component.js +3 -3
  123. package/dist/collection/components/combobox/style.css +2 -2
  124. package/dist/collection/components/details/component.js +1 -1
  125. package/dist/collection/components/details/style.css +2 -2
  126. package/dist/collection/components/dialog/component.js +1 -1
  127. package/dist/collection/components/dialog/style.css +2 -2
  128. package/dist/collection/components/drawer/component.js +1 -1
  129. package/dist/collection/components/drawer/style.css +2 -2
  130. package/dist/collection/components/form/component.js +1 -1
  131. package/dist/collection/components/form/style.css +2 -2
  132. package/dist/collection/components/heading/component.js +1 -1
  133. package/dist/collection/components/icon/component.js +1 -1
  134. package/dist/collection/components/icon/style.css +2 -2
  135. package/dist/collection/components/image/component.js +1 -1
  136. package/dist/collection/components/input-checkbox/component.js +3 -3
  137. package/dist/collection/components/input-checkbox/style.css +2 -2
  138. package/dist/collection/components/input-color/component.js +2 -2
  139. package/dist/collection/components/input-color/style.css +2 -2
  140. package/dist/collection/components/input-date/component.js +2 -2
  141. package/dist/collection/components/input-date/style.css +2 -2
  142. package/dist/collection/components/input-email/component.js +1 -1
  143. package/dist/collection/components/input-email/style.css +2 -2
  144. package/dist/collection/components/input-file/component.js +2 -2
  145. package/dist/collection/components/input-file/style.css +2 -2
  146. package/dist/collection/components/input-number/component.js +2 -2
  147. package/dist/collection/components/input-number/style.css +2 -2
  148. package/dist/collection/components/input-password/component.js +1 -1
  149. package/dist/collection/components/input-password/style.css +2 -2
  150. package/dist/collection/components/input-radio/component.js +1 -1
  151. package/dist/collection/components/input-radio/style.css +2 -2
  152. package/dist/collection/components/input-range/component.js +2 -2
  153. package/dist/collection/components/input-range/style.css +2 -2
  154. package/dist/collection/components/input-text/component.js +1 -1
  155. package/dist/collection/components/input-text/style.css +2 -2
  156. package/dist/collection/components/kolibri/component.js +1 -1
  157. package/dist/collection/components/link/component.js +1 -1
  158. package/dist/collection/components/link/style.css +2 -2
  159. package/dist/collection/components/link-button/component.js +1 -1
  160. package/dist/collection/components/link-button/style.css +2 -2
  161. package/dist/collection/components/meter/component.js +1 -1
  162. package/dist/collection/components/modal/component.js +1 -1
  163. package/dist/collection/components/modal/style.css +2 -2
  164. package/dist/collection/components/nav/component.js +1 -1
  165. package/dist/collection/components/nav/style.css +2 -2
  166. package/dist/collection/components/pagination/component.js +7 -9
  167. package/dist/collection/components/pagination/style.css +2 -2
  168. package/dist/collection/components/popover-button/component.js +1 -1
  169. package/dist/collection/components/popover-button/style.css +2 -2
  170. package/dist/collection/components/progress/component.js +1 -1
  171. package/dist/collection/components/quote/component.js +1 -1
  172. package/dist/collection/components/select/component.js +1 -1
  173. package/dist/collection/components/select/style.css +2 -2
  174. package/dist/collection/components/single-select/component.js +3 -3
  175. package/dist/collection/components/single-select/style.css +2 -2
  176. package/dist/collection/components/skip-nav/component.js +1 -1
  177. package/dist/collection/components/skip-nav/style.css +2 -2
  178. package/dist/collection/components/spin/component.js +1 -1
  179. package/dist/collection/components/split-button/component.js +1 -1
  180. package/dist/collection/components/split-button/style.css +2 -2
  181. package/dist/collection/components/table-stateful/component.js +2 -2
  182. package/dist/collection/components/table-stateful/style.css +2 -2
  183. package/dist/collection/components/table-stateless/component.js +1 -1
  184. package/dist/collection/components/table-stateless/style.css +2 -2
  185. package/dist/collection/components/tabs/component.js +1 -1
  186. package/dist/collection/components/tabs/style.css +2 -2
  187. package/dist/collection/components/textarea/component.js +2 -2
  188. package/dist/collection/components/textarea/style.css +2 -2
  189. package/dist/collection/components/toaster/shadow.js +1 -1
  190. package/dist/collection/components/toaster/style.css +2 -2
  191. package/dist/collection/components/toolbar/component.js +1 -1
  192. package/dist/collection/components/toolbar/style.css +2 -2
  193. package/dist/collection/components/tooltip/component.js +1 -1
  194. package/dist/collection/components/tree/component.js +1 -1
  195. package/dist/collection/components/tree-item/component.js +1 -1
  196. package/dist/collection/components/tree-item/style.css +2 -2
  197. package/dist/collection/components/version/component.js +1 -1
  198. package/dist/collection/components/version/style.css +2 -2
  199. package/dist/collection/internal/functional-components/pagination/api.js +2 -2
  200. package/dist/collection/internal/functional-components/pagination/item.js +3 -3
  201. package/dist/collection/schema/bem-registry.js +0 -15
  202. package/dist/components/base-web-component2.js +1 -1
  203. package/dist/components/base-web-component4.js +1 -1
  204. package/dist/components/base.js +1 -1
  205. package/dist/components/base2.js +1 -1
  206. package/dist/components/base4.js +1 -1
  207. package/dist/components/behavior.js +1 -1
  208. package/dist/components/behavior2.js +1 -1
  209. package/dist/components/behavior3.js +1 -1
  210. package/dist/components/behavior4.js +1 -1
  211. package/dist/components/bem-registry.js +1 -1
  212. package/dist/components/component10.js +1 -1
  213. package/dist/components/component11.js +1 -1
  214. package/dist/components/component2.js +1 -1
  215. package/dist/components/component3.js +1 -1
  216. package/dist/components/component4.js +1 -1
  217. package/dist/components/component6.js +1 -1
  218. package/dist/components/component7.js +1 -1
  219. package/dist/components/component8.js +1 -1
  220. package/dist/components/component9.js +1 -1
  221. package/dist/components/contrast.js +1 -1
  222. package/dist/components/field-control.js +1 -1
  223. package/dist/components/input-container.js +1 -1
  224. package/dist/components/item2.js +1 -1
  225. package/dist/components/item4.js +1 -1
  226. package/dist/components/kol-abbr.js +1 -1
  227. package/dist/components/kol-accordion.js +1 -1
  228. package/dist/components/kol-alert.js +1 -1
  229. package/dist/components/kol-avatar.js +1 -1
  230. package/dist/components/kol-badge.js +1 -1
  231. package/dist/components/kol-breadcrumb.js +1 -1
  232. package/dist/components/kol-button-link.js +1 -1
  233. package/dist/components/kol-button.js +1 -1
  234. package/dist/components/kol-card.js +1 -1
  235. package/dist/components/kol-combobox.js +1 -1
  236. package/dist/components/kol-details.js +1 -1
  237. package/dist/components/kol-dialog.js +1 -1
  238. package/dist/components/kol-drawer.js +1 -1
  239. package/dist/components/kol-form.js +1 -1
  240. package/dist/components/kol-heading.js +1 -1
  241. package/dist/components/kol-icon.js +1 -1
  242. package/dist/components/kol-image.js +1 -1
  243. package/dist/components/kol-input-checkbox.js +1 -1
  244. package/dist/components/kol-input-color.js +1 -1
  245. package/dist/components/kol-input-date.js +1 -1
  246. package/dist/components/kol-input-email.js +1 -1
  247. package/dist/components/kol-input-file.js +1 -1
  248. package/dist/components/kol-input-number.js +1 -1
  249. package/dist/components/kol-input-password.js +1 -1
  250. package/dist/components/kol-input-radio.js +1 -1
  251. package/dist/components/kol-input-range.js +1 -1
  252. package/dist/components/kol-input-text.js +1 -1
  253. package/dist/components/kol-kolibri.js +1 -1
  254. package/dist/components/kol-link-button.js +1 -1
  255. package/dist/components/kol-link.js +1 -1
  256. package/dist/components/kol-meter.js +1 -1
  257. package/dist/components/kol-modal.js +1 -1
  258. package/dist/components/kol-nav.js +1 -1
  259. package/dist/components/kol-pagination.js +1 -1
  260. package/dist/components/kol-popover-button.js +1 -1
  261. package/dist/components/kol-progress.js +1 -1
  262. package/dist/components/kol-quote.js +1 -1
  263. package/dist/components/kol-select.js +1 -1
  264. package/dist/components/kol-single-select.js +1 -1
  265. package/dist/components/kol-skip-nav.js +1 -1
  266. package/dist/components/kol-spin.js +1 -1
  267. package/dist/components/kol-split-button.js +1 -1
  268. package/dist/components/kol-table-stateful.js +1 -1
  269. package/dist/components/kol-table-stateless.js +1 -1
  270. package/dist/components/kol-tabs.js +1 -1
  271. package/dist/components/kol-textarea.js +1 -1
  272. package/dist/components/kol-toast-container.js +1 -1
  273. package/dist/components/kol-toolbar.js +1 -1
  274. package/dist/components/kol-tooltip-wc.js +1 -1
  275. package/dist/components/kol-tree-item.js +1 -1
  276. package/dist/components/kol-tree.js +1 -1
  277. package/dist/components/kol-version.js +1 -1
  278. package/dist/components/label-hints.js +1 -1
  279. package/dist/components/label-lang-segment.js +1 -1
  280. package/dist/components/label-with-expert-slot.js +1 -1
  281. package/dist/components/level.js +1 -1
  282. package/dist/components/props-from-config.js +1 -1
  283. package/dist/components/resolve-props.js +1 -1
  284. package/dist/components/rows.js +1 -1
  285. package/dist/components/unit.js +1 -1
  286. package/dist/components/validators.js +1 -1
  287. package/dist/esm/{Heading-Bj2Ma7Tr.js → Heading-wrhAEuG3.js} +1 -1
  288. package/dist/esm/{api-DhMNvXtN.js → api-7B_iI89k.js} +14 -14
  289. package/dist/esm/{app-globals-Dpmwwlv-.js → app-globals-tRqgHq3P.js} +2 -2
  290. package/dist/esm/{base-IzdO60L1.js → base-BDYPTFjC.js} +4 -4
  291. package/dist/esm/{base-CJ5WCVaj.js → base-BVztEKgJ.js} +17 -17
  292. package/dist/esm/{base-DV_Pzm7z.js → base-C32RNC8q.js} +5 -6
  293. package/dist/esm/{base-Ba-xzpOT.js → base-D_-9Lzkd.js} +4 -4
  294. package/dist/esm/{base-web-component-BB3dHStd.js → base-web-component-BUu68byc.js} +6 -6
  295. package/dist/esm/{base-web-component-ug9DZUOx.js → base-web-component-DdY5aIHN.js} +5 -5
  296. package/dist/esm/{behavior-BMXrK4gj.js → behavior-DN-22cB1.js} +2 -2
  297. package/dist/esm/{behavior-BgmZcrK6.js → behavior-DsTiTiJC.js} +2 -2
  298. package/dist/esm/{behavior-B4IW5_Qt.js → behavior-fGxZN96S.js} +1 -1
  299. package/dist/esm/{bem-registry-CWN7_O1L.js → bem-registry-Crcs_65u.js} +0 -15
  300. package/dist/esm/{block-bem-BpQSY04L.js → block-bem-DehcAQZQ.js} +1 -1
  301. package/dist/esm/{component-BiYFPpjn.js → component-0IO2wu9i.js} +7 -7
  302. package/dist/esm/{component-DdIOGRgB.js → component-4xXBb7K-.js} +4 -4
  303. package/dist/esm/{component-scm3PBuq.js → component-BJ4gGOph.js} +2 -2
  304. package/dist/esm/{component-BvvE8aim.js → component-CPq3i3I_.js} +2 -2
  305. package/dist/esm/{component-ChtW1HQv.js → component-CTOYF3q6.js} +3 -3
  306. package/dist/esm/{component-BKfXEtN0.js → component-ChuoBFI-.js} +3 -3
  307. package/dist/esm/{component-Dt6efHXY.js → component-Cxdi6on4.js} +9 -8
  308. package/dist/esm/{component-Drxdk3mb.js → component-DHNcVTi0.js} +6 -6
  309. package/dist/esm/{component-gj7TBL0i.js → component-DWywPG_a.js} +6 -6
  310. package/dist/esm/{component-Ua7-J4C-.js → component-EK9BJR6z.js} +7 -7
  311. package/dist/esm/{component-C0zMsvYl.js → component-NEw1tN3M.js} +3 -3
  312. package/dist/esm/{component-C5QCCLLa.js → component-et0GdBuf.js} +2 -2
  313. package/dist/esm/{dev.utils-CwXr_J8N.js → dev.utils-Bg7nZBMk.js} +1 -1
  314. package/dist/esm/{devtools-QEDvmhav.js → devtools-nUT3JVTV.js} +2 -2
  315. package/dist/esm/{field-control-BOsAM8BW.js → field-control-D2tOd14v.js} +7 -7
  316. package/dist/esm/{group-D4WbZY27.js → group-CxWsx0aJ.js} +5 -5
  317. package/dist/esm/{index-D_P2XoAc.js → index-B_bJG8-2.js} +3 -32
  318. package/dist/esm/index.js +1 -1
  319. package/dist/esm/{input-C0kj1MmP.js → input-Ia9Z3AP7.js} +4 -4
  320. package/dist/esm/{input-container-B4TgBfDz.js → input-container-Y_8n5Sen.js} +6 -6
  321. package/dist/esm/{item-WrCdQw7F.js → item-BKVeXzUO.js} +13 -13
  322. package/dist/esm/{item-DRC1CmzC.js → item-BZtI88zF.js} +3 -3
  323. package/dist/esm/{item-e4SzwxHe.js → item-BjriQHQl.js} +3 -3
  324. package/dist/esm/{item-BMniY_My.js → item-BuqBMSYI.js} +6 -7
  325. package/dist/esm/kol-abbr.entry.js +5 -5
  326. package/dist/esm/kol-accordion.entry.js +10 -10
  327. package/dist/esm/kol-alert.entry.js +15 -16
  328. package/dist/esm/kol-avatar.entry.js +3 -3
  329. package/dist/esm/kol-badge.entry.js +15 -16
  330. package/dist/esm/kol-breadcrumb.entry.js +13 -13
  331. package/dist/esm/kol-button-link.entry.js +15 -16
  332. package/dist/esm/kol-button.entry.js +15 -16
  333. package/dist/esm/kol-card.entry.js +16 -17
  334. package/dist/esm/kol-combobox.entry.js +26 -27
  335. package/dist/esm/kol-details.entry.js +10 -10
  336. package/dist/esm/kol-dialog.entry.js +18 -19
  337. package/dist/esm/kol-drawer.entry.js +17 -18
  338. package/dist/esm/kol-form.entry.js +15 -16
  339. package/dist/esm/kol-heading.entry.js +5 -5
  340. package/dist/esm/kol-icon.entry.js +5 -5
  341. package/dist/esm/kol-image.entry.js +3 -3
  342. package/dist/esm/kol-input-checkbox.entry.js +29 -30
  343. package/dist/esm/kol-input-color.entry.js +25 -26
  344. package/dist/esm/kol-input-date.entry.js +25 -26
  345. package/dist/esm/kol-input-email.entry.js +31 -32
  346. package/dist/esm/kol-input-file.entry.js +24 -25
  347. package/dist/esm/kol-input-number.entry.js +25 -26
  348. package/dist/esm/kol-input-password.entry.js +26 -27
  349. package/dist/esm/kol-input-radio.entry.js +24 -25
  350. package/dist/esm/kol-input-range.entry.js +25 -26
  351. package/dist/esm/kol-input-text.entry.js +26 -27
  352. package/dist/esm/kol-kolibri.entry.js +5 -5
  353. package/dist/esm/kol-link-button.entry.js +14 -14
  354. package/dist/esm/kol-link.entry.js +14 -14
  355. package/dist/esm/kol-meter.entry.js +5 -5
  356. package/dist/esm/kol-modal.entry.js +18 -19
  357. package/dist/esm/kol-nav.entry.js +18 -19
  358. package/dist/esm/kol-pagination.entry.js +26 -28
  359. package/dist/esm/kol-popover-button.entry.js +16 -17
  360. package/dist/esm/kol-progress.entry.js +5 -5
  361. package/dist/esm/kol-quote.entry.js +3 -3
  362. package/dist/esm/kol-select.entry.js +23 -24
  363. package/dist/esm/kol-single-select.entry.js +26 -27
  364. package/dist/esm/kol-skip-nav.entry.js +13 -13
  365. package/dist/esm/kol-spin.entry.js +6 -6
  366. package/dist/esm/kol-split-button.entry.js +18 -19
  367. package/dist/esm/kol-table-stateful.entry.js +31 -32
  368. package/dist/esm/kol-table-stateless.entry.js +24 -25
  369. package/dist/esm/kol-tabs.entry.js +14 -15
  370. package/dist/esm/kol-textarea.entry.js +24 -25
  371. package/dist/esm/kol-toast-container.entry.js +14 -15
  372. package/dist/esm/kol-toolbar.entry.js +16 -17
  373. package/dist/esm/kol-tooltip-wc.entry.js +7 -7
  374. package/dist/esm/kol-tree-item.entry.js +12 -12
  375. package/dist/esm/kol-tree.entry.js +3 -3
  376. package/dist/esm/kol-version.entry.js +12 -13
  377. package/dist/esm/kolibri.js +4 -4
  378. package/dist/esm/loader.js +4 -4
  379. package/dist/esm/{resolve-props-CqTztQhV.js → resolve-props-BkF1VBBB.js} +2 -2
  380. package/dist/esm/{resolve-props-B-67viId.js → resolve-props-CHPFh7Tn.js} +2 -3
  381. package/dist/esm/{scroll-lock-CKnC0y0o.js → scroll-lock-D7Zo0QLt.js} +2 -2
  382. package/dist/esm/{suggestions-Be1_H9fA.js → suggestions-GEr-cvbz.js} +2 -2
  383. package/dist/esm/test-component.entry.js +1 -1
  384. package/dist/esm/{toggle-handler-Cjc991vd.js → toggle-handler-Bqoo8tCo.js} +4 -4
  385. package/dist/kolibri/Heading-wrhAEuG3.js +4 -0
  386. package/dist/kolibri/api-7B_iI89k.js +4 -0
  387. package/dist/kolibri/app-globals-tRqgHq3P.js +4 -0
  388. package/dist/kolibri/{base-IzdO60L1.js → base-BDYPTFjC.js} +1 -1
  389. package/dist/kolibri/base-BVztEKgJ.js +4 -0
  390. package/dist/kolibri/base-C32RNC8q.js +4 -0
  391. package/dist/kolibri/{base-Ba-xzpOT.js → base-D_-9Lzkd.js} +1 -1
  392. package/dist/kolibri/{base-web-component-BB3dHStd.js → base-web-component-BUu68byc.js} +1 -1
  393. package/dist/kolibri/{base-web-component-ug9DZUOx.js → base-web-component-DdY5aIHN.js} +1 -1
  394. package/dist/kolibri/behavior-DN-22cB1.js +4 -0
  395. package/dist/kolibri/{behavior-BgmZcrK6.js → behavior-DsTiTiJC.js} +1 -1
  396. package/dist/kolibri/{behavior-B4IW5_Qt.js → behavior-fGxZN96S.js} +1 -1
  397. package/dist/kolibri/bem-registry-Crcs_65u.js +4 -0
  398. package/dist/kolibri/block-bem-DehcAQZQ.js +4 -0
  399. package/dist/kolibri/component-0IO2wu9i.js +4 -0
  400. package/dist/kolibri/{component-DdIOGRgB.js → component-4xXBb7K-.js} +1 -1
  401. package/dist/kolibri/component-BJ4gGOph.js +4 -0
  402. package/dist/kolibri/component-CPq3i3I_.js +4 -0
  403. package/dist/kolibri/component-CTOYF3q6.js +4 -0
  404. package/dist/kolibri/{component-BKfXEtN0.js → component-ChuoBFI-.js} +1 -1
  405. package/dist/kolibri/component-Cxdi6on4.js +4 -0
  406. package/dist/kolibri/{component-Drxdk3mb.js → component-DHNcVTi0.js} +1 -1
  407. package/dist/kolibri/component-DWywPG_a.js +4 -0
  408. package/dist/kolibri/component-EK9BJR6z.js +4 -0
  409. package/dist/kolibri/{component-C0zMsvYl.js → component-NEw1tN3M.js} +1 -1
  410. package/dist/kolibri/{component-C5QCCLLa.js → component-et0GdBuf.js} +1 -1
  411. package/dist/kolibri/{dev.utils-CwXr_J8N.js → dev.utils-Bg7nZBMk.js} +1 -1
  412. package/dist/kolibri/{devtools-QEDvmhav.js → devtools-nUT3JVTV.js} +1 -1
  413. package/dist/kolibri/field-control-D2tOd14v.js +4 -0
  414. package/dist/kolibri/{group-D4WbZY27.js → group-CxWsx0aJ.js} +1 -1
  415. package/dist/kolibri/{index-D_P2XoAc.js → index-B_bJG8-2.js} +2 -2
  416. package/dist/kolibri/index.esm.js +1 -1
  417. package/dist/kolibri/input-Ia9Z3AP7.js +4 -0
  418. package/dist/kolibri/{input-container-B4TgBfDz.js → input-container-Y_8n5Sen.js} +1 -1
  419. package/dist/kolibri/item-BKVeXzUO.js +4 -0
  420. package/dist/kolibri/item-BZtI88zF.js +4 -0
  421. package/dist/kolibri/item-BjriQHQl.js +4 -0
  422. package/dist/kolibri/item-BuqBMSYI.js +4 -0
  423. package/dist/kolibri/kol-abbr.entry.js +1 -1
  424. package/dist/kolibri/kol-accordion.entry.js +1 -1
  425. package/dist/kolibri/kol-alert.entry.js +1 -1
  426. package/dist/kolibri/kol-avatar.entry.js +1 -1
  427. package/dist/kolibri/kol-badge.entry.js +1 -1
  428. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  429. package/dist/kolibri/kol-button-link.entry.js +1 -1
  430. package/dist/kolibri/kol-button.entry.js +1 -1
  431. package/dist/kolibri/kol-card.entry.js +1 -1
  432. package/dist/kolibri/kol-combobox.entry.js +1 -1
  433. package/dist/kolibri/kol-details.entry.js +1 -1
  434. package/dist/kolibri/kol-dialog.entry.js +1 -1
  435. package/dist/kolibri/kol-drawer.entry.js +1 -1
  436. package/dist/kolibri/kol-form.entry.js +1 -1
  437. package/dist/kolibri/kol-heading.entry.js +1 -1
  438. package/dist/kolibri/kol-icon.entry.js +1 -1
  439. package/dist/kolibri/kol-image.entry.js +1 -1
  440. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  441. package/dist/kolibri/kol-input-color.entry.js +1 -1
  442. package/dist/kolibri/kol-input-date.entry.js +1 -1
  443. package/dist/kolibri/kol-input-email.entry.js +1 -1
  444. package/dist/kolibri/kol-input-file.entry.js +1 -1
  445. package/dist/kolibri/kol-input-number.entry.js +1 -1
  446. package/dist/kolibri/kol-input-password.entry.js +1 -1
  447. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  448. package/dist/kolibri/kol-input-range.entry.js +1 -1
  449. package/dist/kolibri/kol-input-text.entry.js +1 -1
  450. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  451. package/dist/kolibri/kol-link-button.entry.js +1 -1
  452. package/dist/kolibri/kol-link.entry.js +1 -1
  453. package/dist/kolibri/kol-meter.entry.js +1 -1
  454. package/dist/kolibri/kol-modal.entry.js +1 -1
  455. package/dist/kolibri/kol-nav.entry.js +1 -1
  456. package/dist/kolibri/kol-pagination.entry.js +1 -1
  457. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  458. package/dist/kolibri/kol-progress.entry.js +1 -1
  459. package/dist/kolibri/kol-quote.entry.js +1 -1
  460. package/dist/kolibri/kol-select.entry.js +1 -1
  461. package/dist/kolibri/kol-single-select.entry.js +1 -1
  462. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  463. package/dist/kolibri/kol-spin.entry.js +1 -1
  464. package/dist/kolibri/kol-split-button.entry.js +1 -1
  465. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  466. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  467. package/dist/kolibri/kol-tabs.entry.js +1 -1
  468. package/dist/kolibri/kol-textarea.entry.js +1 -1
  469. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  470. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  471. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  472. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  473. package/dist/kolibri/kol-tree.entry.js +1 -1
  474. package/dist/kolibri/kol-version.entry.js +1 -1
  475. package/dist/kolibri/kolibri.esm.js +1 -1
  476. package/dist/kolibri/resolve-props-BkF1VBBB.js +4 -0
  477. package/dist/kolibri/resolve-props-CHPFh7Tn.js +4 -0
  478. package/dist/kolibri/{scroll-lock-CKnC0y0o.js → scroll-lock-D7Zo0QLt.js} +1 -1
  479. package/dist/kolibri/suggestions-GEr-cvbz.js +4 -0
  480. package/dist/kolibri/test-component.entry.js +1 -1
  481. package/dist/kolibri/toggle-handler-Bqoo8tCo.js +4 -0
  482. package/dist/types/components/pagination/component.d.ts +1 -1
  483. package/dist/types/components.d.ts +3 -97
  484. package/dist/types/internal/functional-components/pagination/api.d.ts +2 -2
  485. package/dist/types/internal/functional-components/pagination/item.d.ts +1 -1
  486. package/dist/types/schema/bem-registry.d.ts +0 -25
  487. package/dist/types/schema/components/pagination.d.ts +2 -2
  488. package/doc/pagination.md +13 -13
  489. package/doc/table-stateful.md +1 -1
  490. package/package.json +3 -3
  491. package/vscode-custom-data.json +0 -13
  492. package/dist/cjs/component-r497oHWq.js +0 -14
  493. package/dist/cjs/kol-click-button.cjs.entry.js +0 -55
  494. package/dist/cjs/kol-skeleton.cjs.entry.js +0 -107
  495. package/dist/cjs/name-D4qpL1m-.js +0 -10
  496. package/dist/collection/components/click-button/component.js +0 -105
  497. package/dist/collection/components/skeleton/component.js +0 -215
  498. package/dist/collection/internal/functional-components/click-button/api.js +0 -7
  499. package/dist/collection/internal/functional-components/click-button/component.js +0 -9
  500. package/dist/collection/internal/functional-components/skeleton/api.js +0 -7
  501. package/dist/collection/internal/functional-components/skeleton/component.js +0 -20
  502. package/dist/components/component12.js +0 -4
  503. package/dist/components/kol-click-button.d.ts +0 -11
  504. package/dist/components/kol-click-button.js +0 -4
  505. package/dist/components/kol-skeleton.d.ts +0 -11
  506. package/dist/components/kol-skeleton.js +0 -4
  507. package/dist/components/name.js +0 -4
  508. package/dist/esm/component-Db9HadXA.js +0 -12
  509. package/dist/esm/kol-click-button.entry.js +0 -53
  510. package/dist/esm/kol-skeleton.entry.js +0 -105
  511. package/dist/esm/name-B2Yf3EpX.js +0 -8
  512. package/dist/kolibri/Heading-Bj2Ma7Tr.js +0 -4
  513. package/dist/kolibri/api-DhMNvXtN.js +0 -4
  514. package/dist/kolibri/app-globals-Dpmwwlv-.js +0 -4
  515. package/dist/kolibri/base-CJ5WCVaj.js +0 -4
  516. package/dist/kolibri/base-DV_Pzm7z.js +0 -4
  517. package/dist/kolibri/behavior-BMXrK4gj.js +0 -4
  518. package/dist/kolibri/bem-registry-CWN7_O1L.js +0 -4
  519. package/dist/kolibri/block-bem-BpQSY04L.js +0 -4
  520. package/dist/kolibri/component-BiYFPpjn.js +0 -4
  521. package/dist/kolibri/component-BvvE8aim.js +0 -4
  522. package/dist/kolibri/component-ChtW1HQv.js +0 -4
  523. package/dist/kolibri/component-Db9HadXA.js +0 -4
  524. package/dist/kolibri/component-Dt6efHXY.js +0 -4
  525. package/dist/kolibri/component-Ua7-J4C-.js +0 -4
  526. package/dist/kolibri/component-gj7TBL0i.js +0 -4
  527. package/dist/kolibri/component-scm3PBuq.js +0 -4
  528. package/dist/kolibri/field-control-BOsAM8BW.js +0 -4
  529. package/dist/kolibri/input-C0kj1MmP.js +0 -4
  530. package/dist/kolibri/item-BMniY_My.js +0 -4
  531. package/dist/kolibri/item-DRC1CmzC.js +0 -4
  532. package/dist/kolibri/item-WrCdQw7F.js +0 -4
  533. package/dist/kolibri/item-e4SzwxHe.js +0 -4
  534. package/dist/kolibri/kol-click-button.entry.js +0 -4
  535. package/dist/kolibri/kol-skeleton.entry.js +0 -4
  536. package/dist/kolibri/name-B2Yf3EpX.js +0 -4
  537. package/dist/kolibri/resolve-props-B-67viId.js +0 -4
  538. package/dist/kolibri/resolve-props-CqTztQhV.js +0 -4
  539. package/dist/kolibri/suggestions-Be1_H9fA.js +0 -4
  540. package/dist/kolibri/toggle-handler-Cjc991vd.js +0 -4
  541. package/dist/types/components/click-button/component.d.ts +0 -15
  542. package/dist/types/components/skeleton/component.d.ts +0 -26
  543. package/dist/types/internal/functional-components/click-button/api.d.ts +0 -15
  544. package/dist/types/internal/functional-components/click-button/component.d.ts +0 -4
  545. package/dist/types/internal/functional-components/skeleton/api.d.ts +0 -29
  546. package/dist/types/internal/functional-components/skeleton/component.d.ts +0 -4
  547. package/doc/skeleton.md +0 -54
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{proxyCustomElement as e,h as o,Host as t,transformTag as i}from"@stencil/core/internal/client";import{B as l,v as n}from"./base4.js";import{a}from"./aria-labelledby.js";const r=e(class extends l{constructor(e){super(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.externalLabelElements=[],this.hasScrollbar=!1,this.rowKeys=new Map,this.settingsChangedCounter=0,this.stickyColsDisabled=!1,this._ariaLabelledby=void 0,this._dataFoot=void 0,this._fixedCols=void 0,this._headers=void 0,this._headerCells=void 0,this._loading=void 0,this._on=void 0,this._selection=void 0,this._hasSettingsMenu=void 0,this._variant=void 0}watchAriaLabelledby(e){this.resolveExternalLabel(e)}watchData(e){this.applyData(e)}watchDataFoot(e){this.applyDataFoot(e)}watchFixedCols(e){this.applyFixedCols(e)}watchHeaders(e){this.applyHeaders(e||this._headerCells)}watchHeaderCells(e){this.applyHeaders(this._headers?this._headers:e)}watchLabel(e){this.applyLabel(e)}watchLoading(e){this.applyLoading(e)}watchOn(e){this.applyOn(e)}watchSelection(e){this.applySelection(e)}watchHasSettingsMenu(e){this.applyHasSettingsMenu(e)}watchVariant(e){this.applyVariant(e)}componentWillLoad(){this.watchData(this._data),this.watchDataFoot(this._dataFoot),this.watchFixedCols(this._fixedCols),this.watchHasSettingsMenu(this._hasSettingsMenu),this.watchHeaders(this._headers),this.watchLabel(this._label),this.watchLoading(this._loading),this.watchOn(this._on),this.watchSelection(this._selection),this.watchVariant(this._variant),this.internals=a(this.host),this.resolveExternalLabel(this._ariaLabelledby)}componentDidLoad(){this.externalLabelElements.length||this.resolveExternalLabel(this._ariaLabelledby),this.observeScrollContainer()}componentDidRender(){this.updateScrollbarState(),this.syncTableItems()}disconnectedCallback(){this.teardownTable()}onChangeHeaderCells(e){this.applyChangedHeaderCells(e)}onKeydown(e){this.moveCheckboxFocus(e)}resolveExternalLabel(e){this.externalLabelElements=n(this,this.host,this.internals,e),this.syncTableLabel(this.externalLabelElements)}render(){return o(t,{key:"da1fb6a0799e0f065d45d98b44b1b25576067eaa"},this.renderTableStatelessFC())}get host(){return this}static get watchers(){return{_ariaLabelledby:[{watchAriaLabelledby:0}],_data:[{watchData:0}],_dataFoot:[{watchDataFoot:0}],_fixedCols:[{watchFixedCols:0}],_headers:[{watchHeaders:0}],_headerCells:[{watchHeaderCells:0}],_label:[{watchLabel:0}],_loading:[{watchLoading:0}],_on:[{watchOn:0}],_selection:[{watchSelection: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=1794028903670"); src: url("kolicons.eot?t=1794028903670#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794028903670") format("woff2"), url("kolicons.woff?t=1794028903670") format("woff"), url("kolicons.ttf?t=1794028903670") format("truetype"), url("kolicons.svg?t=1794028903670#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { @keyframes rotate { to { transform: rotate(1turn); } } @keyframes growingCircle { 0% { opacity: 0.5; border-color: white; clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0); } 25% { opacity: 0.75; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, #000)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0); } 50% { opacity: 1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%); } 75% { opacity: 1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%); } 100% { opacity: 0.1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0); } } .kol-spin__spinner--cycle { width: calc(var(--kol-spin-size, 48) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(var(--kol-spin-size, 48) * 1rem / var(--kolibri-root-font-size, 16)); } .kol-spin__spinner--cycle .kol-spin__loader { border-radius: 50%; display: block; position: relative; width: 100%; height: 100%; animation: 2s linear infinite rotate; } @media (prefers-reduced-motion) { .kol-spin__spinner--cycle .kol-spin__loader { animation-duration: 4s !important; } } .kol-spin__spinner--cycle .kol-spin__loader::before { border-radius: 50%; position: absolute; inset: 0; content: ""; animation: 3s linear infinite growingCircle; border: 5px solid var(--kol-spin-color, var(--kol-theme-spin-color, #333)); } @media (prefers-reduced-motion) { .kol-spin__spinner--cycle .kol-spin__loader::before { animation-duration: 6s !important; } } } @layer kol-component { @keyframes spin1 { 0% { transform: scale(0); } 100% { transform: scale(1); } } @keyframes spin2 { 0% { transform: translate(0, 0); } 100% { transform: translate(calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)), 0); } } @keyframes spin3 { 0% { transform: scale(1); } 100% { transform: scale(0); } } @media (prefers-reduced-motion) { .kol-spin__spinner-element { animation-duration: 2s !important; } } .kol-spin__spinner--dot { --kol-spin-border-width: calc(var(--kol-spin-size, 13) / 10); width: calc(calc(var(--kol-spin-size, 13) * 3 + 2) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(calc(var(--kol-spin-size, 13) + var(--kol-spin-border-width) * 2) * 1rem / var(--kolibri-root-font-size, 16)); } .kol-spin__spinner--dot .kol-spin__spinner-element { background-color: var(--kol-spin-color, var(--kol-theme-spin-color, #000)); border-radius: 50%; position: absolute; top: 1px; width: calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)); animation-timing-function: cubic-bezier(0, 1, 1, 0); border: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)) solid white; } .kol-spin__spinner--dot .kol-spin__spinner-element--1 { left: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 0; animation: 1s infinite spin1; } .kol-spin__spinner--dot .kol-spin__spinner-element--2 { left: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; animation: 1s infinite spin2; } .kol-spin__spinner--dot .kol-spin__spinner-element--3 { left: calc(calc(var(--kol-spin-size, 13) + var(--kol-spin-border-width)) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; animation: 1s infinite spin2; } .kol-spin__spinner--dot .kol-spin__spinner-element--neutral { opacity: 0.6; left: calc(calc(var(--kol-spin-size, 13) * 2 + var(--kol-spin-border-width)) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 0; animation: 1s infinite spin3; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-card .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-card :host { display: inline-block; } .kol-card .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-card .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-card .kol-button__interactive-element::before { content: "​"; } .kol-card .kol-button__text { flex: 1 0 100%; } .kol-card .kol-button { } .kol-card .kol-button__tooltip { height: 0; } .kol-card .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-card .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-card { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); display: grid; height: 100%; overflow: visible; grid-template-areas: "header close" "content content"; grid-template-columns: 1fr min-content; grid-template-rows: min-content 1fr; } .kol-card__header { align-self: start; grid-area: header; } .kol-card__content { align-self: stretch; grid-area: content; } .kol-card__close-button { grid-area: close; } .kol-card:has(.kol-card__link) { position: relative; } .kol-card__link::after { position: absolute; inset: 0; content: ""; cursor: pointer; } .kol-dialog, .kol-modal { min-height: var(--a11y-min-size); padding: 0; border: 0; overscroll-behavior: contain; } .kol-dialog__close-button, .kol-modal__close-button { position: absolute; top: calc(1 * 1rem / var(--kolibri-root-font-size, 16)); right: calc(1 * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: "​"; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } :host { display: inline-block; } .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-button__interactive-element::before { content: "​"; } .kol-button__text { flex: 1 0 100%; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-popover-button { display: inline; } .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-popover-button--inline { display: inline-block; } .kol-popover-button--inline .kol-button, .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-table-settings { position: absolute; top: 0; right: 0; z-index: 1; } .kol-table-settings .kol-popover-button__popover { background: white; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); border-radius: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); border: 1px solid black; } .kol-table-settings__columns { display: grid; max-height: calc(200 * 1rem / var(--kolibri-root-font-size, 16)); overflow: auto; grid-auto-rows: min-content; grid-template-columns: min-content minmax(max-content, 1fr) calc(140 * 1rem / var(--kolibri-root-font-size, 16)) auto auto; } .kol-table-settings__column { display: grid; align-items: center; grid-template-columns: subgrid; grid-column: 1/6; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-table { --kol-table-selection-col-width: var(--a11y-min-size); display: block; position: relative; max-width: 100%; } .kol-table:has(.kol-table__focus-element:focus) .kol-table__scroll-container { outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color; outline-offset: 2px; } .kol-table__scroll-container { overflow-x: auto; overflow-y: hidden; } .kol-table__table { table-layout: fixed; } .kol-table__caption { min-height: var(--a11y-min-size); text-align: start; } .kol-table__settings:not(:has(~ .kol-table__scroll-container .kol-table__caption)) { min-height: var(--a11y-min-size); } .kol-table__sort-button.kol-button { color: inherit; } .kol-table__sort { display: inline-flex; align-items: center; } .kol-table__sort-order { display: inline-flex; align-items: center; justify-content: center; } .kol-table__body { text-align: left; } .kol-table__body .kol-button__text { justify-items: start; } .kol-table__body:has(.kol-table__loader--shown) { position: relative; min-height: calc(var(--a11y-min-size) * 3); } .kol-table__cell--align-left { text-align: left; } .kol-table__cell--align-left .kol-table__sort-button .kol-button__text { align-items: start; text-align: start; } .kol-table__cell--align-left .kol-table__cell-actions { justify-content: flex-start; } .kol-table__cell--align-center { text-align: center; } .kol-table__cell--align-center .kol-table__sort-button .kol-button__text { align-items: center; } .kol-table__cell--align-right { text-align: right; } .kol-table__cell--align-right .kol-table__sort-button .kol-button__text { align-items: end; text-align: end; } .kol-table__cell--align-right .kol-table__cell-actions { justify-content: flex-end; } .kol-table__cell--selection { background-color: white; position: sticky !important; left: 0; z-index: 2; width: var(--kol-table-selection-col-width, auto); min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); white-space: nowrap; } .kol-table__cell--actions { white-space: nowrap; } .kol-table__cell--actions .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-table__cell--actions :host { display: inline-block; } .kol-table__cell--actions .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-table__cell--actions .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-table__cell--actions .kol-button__interactive-element::before { content: "​"; } .kol-table__cell--actions .kol-button__text { flex: 1 0 100%; } .kol-table__cell--actions .kol-button { } .kol-table__cell--actions .kol-button__tooltip { height: 0; } .kol-table__cell--actions .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-table__cell--actions .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-table__cell--actions .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-table__cell--actions :host { display: inline-block; } .kol-table__cell--actions .kol-link { display: inline-flex; max-width: fit-content; } .kol-table__cell--actions .kol-link--standalone { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: stretch; } .kol-table__cell--actions .kol-link--standalone .kol-link__interactive-element { align-items: stretch; } .kol-table__cell--actions .kol-link--standalone .kol-link__text { display: inline-flex; flex: 1 1 100%; place-items: center; } .kol-table__cell--actions .kol-link__interactive-element { display: inline-flex; flex: 1; align-items: baseline; place-items: center; text-align: left; text-decoration-line: none; } .kol-table__cell--actions .kol-link__interactive-element:focus:not([aria-disabled], [disabled]) .kol-span__label, .kol-table__cell--actions .kol-link__interactive-element:hover:not([aria-disabled], [disabled]) .kol-span__label { text-decoration-thickness: 0.2em; } .kol-table__cell--actions .kol-link .kol-span__label { text-decoration-line: underline; } .kol-table__cell--actions .kol-link__icon { display: inline-flex; } .kol-table__cell--sticky-left, .kol-table__cell--sticky-right { background-color: white; position: sticky !important; z-index: 1; } .kol-table__cell--sticky-left:nth-last-child(1 of .kol-table__cell--sticky-left) { border-right: 2px solid black; } .kol-table__cell--sticky-right:nth-child(1 of .kol-table__cell--sticky-left) { border-left: 2px solid black; } .kol-table__cell-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; } .kol-table__cell-states { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; } .kol-table__spacer { display: none; } .kol-table__selection { position: relative; } .kol-table__selection-label { display: flex; position: relative; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; justify-content: center; } .kol-table__selection-label:not(.kol-table__selection-label--disabled) { cursor: pointer; } .kol-table__selection-label--disabled { cursor: not-allowed; } .kol-table__selection-icon { display: block; position: absolute; inset: auto; z-index: 1; } .kol-table__selection-input { border-style: solid; margin: 0; appearance: none; cursor: pointer; } .kol-table__selection-input:disabled { cursor: not-allowed; } .kol-table__selection-input:before { content: ""; } .kol-table__selection-input--checkbox { background-color: white; display: flex; position: relative; min-width: calc(var(--a11y-min-size) / 2); min-height: calc(var(--a11y-min-size) / 2); border-width: 2px; align-items: center; justify-content: center; line-height: 1.5; } .kol-table__selection-input--radio { border-radius: 100%; display: flex; width: 1.5em; min-width: 1.5em; height: 1.5em; min-height: 1.5em; padding: 0; border-width: 2px; } .kol-table__selection-input--radio:before { border-radius: 100%; width: 0.75em; height: 0.75em; margin: auto; } .kol-table__selection-input--radio:checked:before { background-color: black; } @media (forced-colors: active) { .kol-table__selection-input--radio:checked:before { background-color: selectedItem !important; } } .kol-table__loader--shown { background: white; display: flex; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; align-items: center; justify-content: center; } .kol-spin { display: contents; } .kol-spin__spinner { display: block; position: relative; } }'}}},[545,"kol-table-stateless",{_ariaLabelledby:[1,"_aria-labelledby"],_data:[1],_dataFoot:[1,"_data-foot"],_fixedCols:[16],_headers:[1],_headerCells:[1,"_header-cells"],_label:[1],_loading:[4],_on:[16],_selection:[1],_hasSettingsMenu:[4,"_has-settings-menu"],_variant:[1],externalLabelElements:[32],hasScrollbar:[32],rowKeys:[32],settingsChangedCounter:[32],stickyColsDisabled:[32]},[[0,"changeheadercells","onChangeHeaderCells"],[0,"keydown","onKeydown"]],{_ariaLabelledby:[{watchAriaLabelledby:0}],_data:[{watchData:0}],_dataFoot:[{watchDataFoot:0}],_fixedCols:[{watchFixedCols:0}],_headers:[{watchHeaders:0}],_headerCells:[{watchHeaderCells:0}],_label:[{watchLabel:0}],_loading:[{watchLoading:0}],_on:[{watchOn:0}],_selection:[{watchSelection:0}],_hasSettingsMenu:[{watchHasSettingsMenu:0}],_variant:[{watchVariant:0}]}]),s=r,c=function(){"undefined"!=typeof customElements&&["kol-table-stateless"].forEach((e=>{"kol-table-stateless"===e&&(customElements.get(i(e))||customElements.define(i(e),r))}))};export{s as KolTableStateless,c as defineCustomElement}
4
+ import{proxyCustomElement as e,h as o,Host as t,transformTag as i}from"@stencil/core/internal/client";import{B as l,v as n}from"./base4.js";import{a}from"./aria-labelledby.js";const r=e(class extends l{constructor(e){super(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.externalLabelElements=[],this.hasScrollbar=!1,this.rowKeys=new Map,this.settingsChangedCounter=0,this.stickyColsDisabled=!1,this._ariaLabelledby=void 0,this._dataFoot=void 0,this._fixedCols=void 0,this._headers=void 0,this._headerCells=void 0,this._loading=void 0,this._on=void 0,this._selection=void 0,this._hasSettingsMenu=void 0,this._variant=void 0}watchAriaLabelledby(e){this.resolveExternalLabel(e)}watchData(e){this.applyData(e)}watchDataFoot(e){this.applyDataFoot(e)}watchFixedCols(e){this.applyFixedCols(e)}watchHeaders(e){this.applyHeaders(e||this._headerCells)}watchHeaderCells(e){this.applyHeaders(this._headers?this._headers:e)}watchLabel(e){this.applyLabel(e)}watchLoading(e){this.applyLoading(e)}watchOn(e){this.applyOn(e)}watchSelection(e){this.applySelection(e)}watchHasSettingsMenu(e){this.applyHasSettingsMenu(e)}watchVariant(e){this.applyVariant(e)}componentWillLoad(){this.watchData(this._data),this.watchDataFoot(this._dataFoot),this.watchFixedCols(this._fixedCols),this.watchHasSettingsMenu(this._hasSettingsMenu),this.watchHeaders(this._headers),this.watchLabel(this._label),this.watchLoading(this._loading),this.watchOn(this._on),this.watchSelection(this._selection),this.watchVariant(this._variant),this.internals=a(this.host),this.resolveExternalLabel(this._ariaLabelledby)}componentDidLoad(){this.externalLabelElements.length||this.resolveExternalLabel(this._ariaLabelledby),this.observeScrollContainer()}componentDidRender(){this.updateScrollbarState(),this.syncTableItems()}disconnectedCallback(){this.teardownTable()}onChangeHeaderCells(e){this.applyChangedHeaderCells(e)}onKeydown(e){this.moveCheckboxFocus(e)}resolveExternalLabel(e){this.externalLabelElements=n(this,this.host,this.internals,e),this.syncTableLabel(this.externalLabelElements)}render(){return o(t,{key:"85fa27c67c20a216cce348faa3d2b4c84848b8cb"},this.renderTableStatelessFC())}get host(){return this}static get watchers(){return{_ariaLabelledby:[{watchAriaLabelledby:0}],_data:[{watchData:0}],_dataFoot:[{watchDataFoot:0}],_fixedCols:[{watchFixedCols:0}],_headers:[{watchHeaders:0}],_headerCells:[{watchHeaderCells:0}],_label:[{watchLabel:0}],_loading:[{watchLoading:0}],_on:[{watchOn:0}],_selection:[{watchSelection: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=1794493099910"); src: url("kolicons.eot?t=1794493099910#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794493099910") format("woff2"), url("kolicons.woff?t=1794493099910") format("woff"), url("kolicons.ttf?t=1794493099910") format("truetype"), url("kolicons.svg?t=1794493099910#kolicons") format("svg"); } @layer kol-component { [class^=kolicon-], [class*=" kolicon-"] { font-family: "kolicons"; font-style: normal; font-weight: 400; line-height: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .kolicon-alert-error::before { content: "\\ea01"; } .kolicon-alert-info::before { content: "\\ea02"; } .kolicon-alert-success::before { content: "\\ea03"; } .kolicon-alert-warning::before { content: "\\ea04"; } .kolicon-check::before { content: "\\ea05"; } .kolicon-chevron-double-left::before { content: "\\ea06"; } .kolicon-chevron-double-right::before { content: "\\ea07"; } .kolicon-chevron-down::before { content: "\\ea08"; } .kolicon-chevron-left::before { content: "\\ea09"; } .kolicon-chevron-right::before { content: "\\ea0a"; } .kolicon-chevron-up::before { content: "\\ea0b"; } .kolicon-cogwheel::before { content: "\\ea0c"; } .kolicon-cross::before { content: "\\ea0d"; } .kolicon-eye-closed::before { content: "\\ea0e"; } .kolicon-eye::before { content: "\\ea0f"; } .kolicon-house::before { content: "\\ea10"; } .kolicon-kolibri::before { content: "\\ea11"; } .kolicon-link-external::before { content: "\\ea12"; } .kolicon-link::before { content: "\\ea13"; } .kolicon-minus::before { content: "\\ea14"; } .kolicon-pin-pinned::before { content: "\\ea15"; } .kolicon-pin-unpinned::before { content: "\\ea16"; } .kolicon-plus::before { content: "\\ea17"; } .kolicon-settings::before { content: "\\ea18"; } .kolicon-sort-asc::before { content: "\\ea19"; } .kolicon-sort-desc::before { content: "\\ea1a"; } .kolicon-sort-neutral::before { content: "\\ea1b"; } .kolicon-up::before { content: "\\ea1c"; } .kolicon-version::before { content: "\\ea1d"; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-tooltip { display: contents; } .kol-tooltip__floating { opacity: 0; display: none; position: fixed; top: 0; left: 0; width: var(--kol-tooltip-width, max-content); min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); max-width: 90vw; max-height: 90vh; animation-direction: normal; animation-duration: var(--kolibri-tooltip-animation-duration, 250ms); animation-fill-mode: forwards; animation-iteration-count: 1; animation-timing-function: ease-in; } .kol-tooltip__floating.hide { animation-name: hideTooltip; } .kol-tooltip__floating.show { animation-name: showTooltip; } .kol-tooltip__arrow { transform: rotate(45deg); color: black; background-color: white; position: absolute; z-index: 999; width: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); height: calc(10 * 1rem / var(--kolibri-root-font-size, 16)); } .kol-tooltip__content { color: black; background-color: white; position: relative; z-index: 1000; } @keyframes hideTooltip { 0% { opacity: 1; } 100% { opacity: 0; display: none; } } @keyframes showTooltip { 0% { opacity: 0; } 100% { opacity: 1; } } } @layer kol-component { @keyframes rotate { to { transform: rotate(1turn); } } @keyframes growingCircle { 0% { opacity: 0.5; border-color: white; clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0); } 25% { opacity: 0.75; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, #000)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0); } 50% { opacity: 1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%); } 75% { opacity: 1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%); } 100% { opacity: 0.1; border-color: var(--kol-spin-color, var(--kol-theme-spin-color, black)); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0); } } .kol-spin__spinner--cycle { width: calc(var(--kol-spin-size, 48) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(var(--kol-spin-size, 48) * 1rem / var(--kolibri-root-font-size, 16)); } .kol-spin__spinner--cycle .kol-spin__loader { border-radius: 50%; display: block; position: relative; width: 100%; height: 100%; animation: 2s linear infinite rotate; } @media (prefers-reduced-motion) { .kol-spin__spinner--cycle .kol-spin__loader { animation-duration: 4s !important; } } .kol-spin__spinner--cycle .kol-spin__loader::before { border-radius: 50%; position: absolute; inset: 0; content: ""; animation: 3s linear infinite growingCircle; border: 5px solid var(--kol-spin-color, var(--kol-theme-spin-color, #333)); } @media (prefers-reduced-motion) { .kol-spin__spinner--cycle .kol-spin__loader::before { animation-duration: 6s !important; } } } @layer kol-component { @keyframes spin1 { 0% { transform: scale(0); } 100% { transform: scale(1); } } @keyframes spin2 { 0% { transform: translate(0, 0); } 100% { transform: translate(calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)), 0); } } @keyframes spin3 { 0% { transform: scale(1); } 100% { transform: scale(0); } } @media (prefers-reduced-motion) { .kol-spin__spinner-element { animation-duration: 2s !important; } } .kol-spin__spinner--dot { --kol-spin-border-width: calc(var(--kol-spin-size, 13) / 10); width: calc(calc(var(--kol-spin-size, 13) * 3 + 2) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(calc(var(--kol-spin-size, 13) + var(--kol-spin-border-width) * 2) * 1rem / var(--kolibri-root-font-size, 16)); } .kol-spin__spinner--dot .kol-spin__spinner-element { background-color: var(--kol-spin-color, var(--kol-theme-spin-color, #000)); border-radius: 50%; position: absolute; top: 1px; width: calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)); height: calc(var(--kol-spin-size, 13) * 1rem / var(--kolibri-root-font-size, 16)); animation-timing-function: cubic-bezier(0, 1, 1, 0); border: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)) solid white; } .kol-spin__spinner--dot .kol-spin__spinner-element--1 { left: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 0; animation: 1s infinite spin1; } .kol-spin__spinner--dot .kol-spin__spinner-element--2 { left: calc(var(--kol-spin-border-width) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; animation: 1s infinite spin2; } .kol-spin__spinner--dot .kol-spin__spinner-element--3 { left: calc(calc(var(--kol-spin-size, 13) + var(--kol-spin-border-width)) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; animation: 1s infinite spin2; } .kol-spin__spinner--dot .kol-spin__spinner-element--neutral { opacity: 0.6; left: calc(calc(var(--kol-spin-size, 13) * 2 + var(--kol-spin-border-width)) * 1rem / var(--kolibri-root-font-size, 16)); z-index: 0; animation: 1s infinite spin3; } } @layer kol-component { .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-card .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-card :host { display: inline-block; } .kol-card .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-card .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-card .kol-button__interactive-element::before { content: "​"; } .kol-card .kol-button__text { flex: 1 0 100%; } .kol-card .kol-button { } .kol-card .kol-button__tooltip { height: 0; } .kol-card .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-card .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-card { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); display: grid; height: 100%; overflow: visible; grid-template-areas: "header close" "content content"; grid-template-columns: 1fr min-content; grid-template-rows: min-content 1fr; } .kol-card__header { align-self: start; grid-area: header; } .kol-card__content { align-self: stretch; grid-area: content; } .kol-card__close-button { grid-area: close; } .kol-card:has(.kol-card__link) { position: relative; } .kol-card__link::after { position: absolute; inset: 0; content: ""; cursor: pointer; } .kol-dialog, .kol-modal { min-height: var(--a11y-min-size); padding: 0; border: 0; overscroll-behavior: contain; } .kol-dialog__close-button, .kol-modal__close-button { position: absolute; top: calc(1 * 1rem / var(--kolibri-root-font-size, 16)); right: calc(1 * 1rem / var(--kolibri-root-font-size, 16)); z-index: 1; } .kol-alert .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-alert :host { display: inline-block; } .kol-alert .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-alert .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-alert .kol-button__interactive-element::before { content: "​"; } .kol-alert .kol-button__text { flex: 1 0 100%; } .kol-alert .kol-button { } .kol-alert .kol-button__tooltip { height: 0; } .kol-alert .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-alert .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-alert { display: grid; grid-template-areas: "icon heading close" "icon content close"; grid-template-columns: min-content 1fr min-content; grid-template-rows: min-content min-content; } .kol-alert__icon { grid-area: icon; } .kol-alert__heading { grid-area: heading; } .kol-alert__closer { outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16)); grid-area: close; } .kol-alert__content { grid-area: content; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } :host { display: inline-block; } .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-button__interactive-element::before { content: "​"; } .kol-button__text { flex: 1 0 100%; } .kol-button { } .kol-button__tooltip { height: 0; } .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-popover-button { display: inline; } .kol-popover-button__popover { margin: 0; padding: 0; border: 0; } .kol-popover-button--open .kol-button__tooltip { display: none; } .kol-popover-button--inline { display: inline-block; } .kol-popover-button--inline .kol-button, .kol-popover-button--inline .kol-button .kol-button__interactive-element { min-width: 0; min-height: 1em; } .kol-popover { opacity: 0; transition: 0.2s ease-out opacity; } .kol-popover-button--open .kol-popover-button__popover { opacity: 1; } .kol-table-settings { position: absolute; top: 0; right: 0; z-index: 1; } .kol-table-settings .kol-popover-button__popover { background: white; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); border-radius: calc(8 * 1rem / var(--kolibri-root-font-size, 16)); border: 1px solid black; } .kol-table-settings__columns { display: grid; max-height: calc(200 * 1rem / var(--kolibri-root-font-size, 16)); overflow: auto; grid-auto-rows: min-content; grid-template-columns: min-content minmax(max-content, 1fr) calc(140 * 1rem / var(--kolibri-root-font-size, 16)) auto auto; } .kol-table-settings__column { display: grid; align-items: center; grid-template-columns: subgrid; grid-column: 1/6; } .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-table { --kol-table-selection-col-width: var(--a11y-min-size); display: block; position: relative; max-width: 100%; } .kol-table:has(.kol-table__focus-element:focus) .kol-table__scroll-container { outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color; outline-offset: 2px; } .kol-table__scroll-container { overflow-x: auto; overflow-y: hidden; } .kol-table__table { table-layout: fixed; } .kol-table__caption { min-height: var(--a11y-min-size); text-align: start; } .kol-table__settings:not(:has(~ .kol-table__scroll-container .kol-table__caption)) { min-height: var(--a11y-min-size); } .kol-table__sort-button.kol-button { color: inherit; } .kol-table__sort { display: inline-flex; align-items: center; } .kol-table__sort-order { display: inline-flex; align-items: center; justify-content: center; } .kol-table__body { text-align: left; } .kol-table__body .kol-button__text { justify-items: start; } .kol-table__body:has(.kol-table__loader--shown) { position: relative; min-height: calc(var(--a11y-min-size) * 3); } .kol-table__cell--align-left { text-align: left; } .kol-table__cell--align-left .kol-table__sort-button .kol-button__text { align-items: start; text-align: start; } .kol-table__cell--align-left .kol-table__cell-actions { justify-content: flex-start; } .kol-table__cell--align-center { text-align: center; } .kol-table__cell--align-center .kol-table__sort-button .kol-button__text { align-items: center; } .kol-table__cell--align-right { text-align: right; } .kol-table__cell--align-right .kol-table__sort-button .kol-button__text { align-items: end; text-align: end; } .kol-table__cell--align-right .kol-table__cell-actions { justify-content: flex-end; } .kol-table__cell--selection { background-color: white; position: sticky !important; left: 0; z-index: 2; width: var(--kol-table-selection-col-width, auto); min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); white-space: nowrap; } .kol-table__cell--actions { white-space: nowrap; } .kol-table__cell--actions .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-table__cell--actions :host { display: inline-block; } .kol-table__cell--actions .kol-button { display: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-table__cell--actions .kol-button__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-table__cell--actions .kol-button__interactive-element::before { content: "​"; } .kol-table__cell--actions .kol-button__text { flex: 1 0 100%; } .kol-table__cell--actions .kol-button { } .kol-table__cell--actions .kol-button__tooltip { height: 0; } .kol-table__cell--actions .kol-button--external-link > .kolicon-link-external::before { content: none; } .kol-table__cell--actions .kol-button--external-link .kol-button__interactive-element > .kolicon-link-external::before { content: none; } .kol-table__cell--actions .kol-icon { color: inherit; display: inline-block; font-size: inherit; font-weight: inherit; line-height: inherit; } .kol-table__cell--actions :host { display: inline-block; } .kol-table__cell--actions .kol-link { display: inline-flex; max-width: fit-content; } .kol-table__cell--actions .kol-link--standalone { min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: stretch; } .kol-table__cell--actions .kol-link--standalone .kol-link__interactive-element { align-items: stretch; } .kol-table__cell--actions .kol-link--standalone .kol-link__text { display: inline-flex; flex: 1 1 100%; place-items: center; } .kol-table__cell--actions .kol-link__interactive-element { display: inline-flex; flex: 1; align-items: baseline; place-items: center; text-align: left; text-decoration-line: none; } .kol-table__cell--actions .kol-link__interactive-element:focus:not([aria-disabled], [disabled]) .kol-span__label, .kol-table__cell--actions .kol-link__interactive-element:hover:not([aria-disabled], [disabled]) .kol-span__label { text-decoration-thickness: 0.2em; } .kol-table__cell--actions .kol-link .kol-span__label { text-decoration-line: underline; } .kol-table__cell--actions .kol-link__icon { display: inline-flex; } .kol-table__cell--sticky-left, .kol-table__cell--sticky-right { background-color: white; position: sticky !important; z-index: 1; } .kol-table__cell--sticky-left:nth-last-child(1 of .kol-table__cell--sticky-left) { border-right: 2px solid black; } .kol-table__cell--sticky-right:nth-child(1 of .kol-table__cell--sticky-left) { border-left: 2px solid black; } .kol-table__cell-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; } .kol-table__cell-states { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; } .kol-table__spacer { display: none; } .kol-table__selection { position: relative; } .kol-table__selection-label { display: flex; position: relative; min-width: var(--a11y-min-size); min-height: var(--a11y-min-size); align-items: center; justify-content: center; } .kol-table__selection-label:not(.kol-table__selection-label--disabled) { cursor: pointer; } .kol-table__selection-label--disabled { cursor: not-allowed; } .kol-table__selection-icon { display: block; position: absolute; inset: auto; z-index: 1; } .kol-table__selection-input { border-style: solid; margin: 0; appearance: none; cursor: pointer; } .kol-table__selection-input:disabled { cursor: not-allowed; } .kol-table__selection-input:before { content: ""; } .kol-table__selection-input--checkbox { background-color: white; display: flex; position: relative; min-width: calc(var(--a11y-min-size) / 2); min-height: calc(var(--a11y-min-size) / 2); border-width: 2px; align-items: center; justify-content: center; line-height: 1.5; } .kol-table__selection-input--radio { border-radius: 100%; display: flex; width: 1.5em; min-width: 1.5em; height: 1.5em; min-height: 1.5em; padding: 0; border-width: 2px; } .kol-table__selection-input--radio:before { border-radius: 100%; width: 0.75em; height: 0.75em; margin: auto; } .kol-table__selection-input--radio:checked:before { background-color: black; } @media (forced-colors: active) { .kol-table__selection-input--radio:checked:before { background-color: selectedItem !important; } } .kol-table__loader--shown { background: white; display: flex; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; align-items: center; justify-content: center; } .kol-spin { display: contents; } .kol-spin__spinner { display: block; position: relative; } }'}}},[545,"kol-table-stateless",{_ariaLabelledby:[1,"_aria-labelledby"],_data:[1],_dataFoot:[1,"_data-foot"],_fixedCols:[16],_headers:[1],_headerCells:[1,"_header-cells"],_label:[1],_loading:[4],_on:[16],_selection:[1],_hasSettingsMenu:[4,"_has-settings-menu"],_variant:[1],externalLabelElements:[32],hasScrollbar:[32],rowKeys:[32],settingsChangedCounter:[32],stickyColsDisabled:[32]},[[0,"changeheadercells","onChangeHeaderCells"],[0,"keydown","onKeydown"]],{_ariaLabelledby:[{watchAriaLabelledby:0}],_data:[{watchData:0}],_dataFoot:[{watchDataFoot:0}],_fixedCols:[{watchFixedCols:0}],_headers:[{watchHeaders:0}],_headerCells:[{watchHeaderCells:0}],_label:[{watchLabel:0}],_loading:[{watchLoading:0}],_on:[{watchOn:0}],_selection:[{watchSelection:0}],_hasSettingsMenu:[{watchHasSettingsMenu:0}],_variant:[{watchVariant:0}]}]),s=r,c=function(){"undefined"!=typeof customElements&&["kol-table-stateless"].forEach((e=>{"kol-table-stateless"===e&&(customElements.get(i(e))||customElements.define(i(e),r))}))};export{s as KolTableStateless,c as defineCustomElement}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as t,proxyCustomElement as o,Host as e,transformTag as i}from"@stencil/core/internal/client";import{_ as n}from"./tslib.es6.js";import{B as a}from"./base-web-component.js";import{D as l,s,b as r,g as c,J as h}from"./bem-registry.js";import{a as d,T as b}from"./behavior.js";import{c as u,n as f,B as p,i as k,b as m,e as g,F as _}from"./props-from-config.js";import{l as v}from"./label.js";import{n as y,c as w}from"./dev.utils.js";import{d as x,K as B}from"./events.js";import{r as T}from"./resolve-props.js";import{B as C}from"./component.js";import{B as j}from"./component10.js";import{t as z}from"./i18n.js";import{K as $}from"./keyboard.js";import{c as S,d as A,a as D}from"./element-interaction.js";const K=u("hasCreateButton",!1,f),L=u("selected",0,p),O=["select-automatic","select-manual"],F=u("behavior","select-automatic",(t=>m(t)),(t=>k(t,O))),H=u("tabs",[],(t=>g(t)),(t=>t.every((t=>"object"==typeof t&&null!==t&&(Array.isArray(t._label)||"string"==typeof t._label&&t._label.length>0)))),{hints:(t,o)=>l("KolTabs",o.length)}),I=u("on",{},(t=>{const o=_(t),e={};return"function"==typeof o.onCreate&&(e.onCreate=o.onCreate),"function"==typeof o.onSelect&&(e.onSelect=o.onSelect),e})),P={required:[v,H],optional:[d,K,L,F,I]},G=()=>{const t=new b(a.stateLess),o=y();let e,i,n,l;const r=(t,o)=>{n&&x(n,t,o)},c=o=>{o.stopPropagation(),t.hideTooltip();const n=null==e?void 0:e.on.onClick;"function"==typeof n&&(s(o,l),n(o,i)),r(B.click,i)},h=t=>{var o,i;null===(i=null==e?void 0:(o=e.on).onMouseDown)||void 0===i||i.call(o,t),r(B.mousedown)},d=t=>{var o,i;null===(i=null==e?void 0:(o=e.on).onFocus)||void 0===i||i.call(o,t),r(B.focus)},u=t=>{var o,i;null===(i=null==e?void 0:(o=e.on).onBlur)||void 0===i||i.call(o,t),r(B.blur)},f=t=>{n=t},p=t=>{l=t};return{getButton:(n,a)=>(e=T(n,a),i=n._value,t.componentWillLoad({label:e.label,align:e.tooltipAlign}),{buttonProps:Object.assign(Object.assign({},e),{ariaDescriptionId:o,handleBlur:u,handleClick:c,handleFocus:d,handleMouseDown:h,refButton:p,refTooltip:t.setTooltipElementRef}),refBox:f}),getButtonElement:()=>l,syncListeners:()=>{l&&t.syncListeners(void 0,l,!0)},destroy:()=>{t.destroy()}}},R=r.forBlock("kol-tabs"),E=R("button-create"),M=R("button-group"),N=R("content"),V=R("tab"),W=R("tablist"),q=o=>{const{align:e,class:i,createButton:n,handleBlur:a,handleKeyDown:l,hasCreateButton:s,label:r,refContent:c,refRoot:h,tabButtons:d}=o;return t(C,{block:"kol-tabs",modifiers:{["align-"+e]:!0},class:i,ref:h},t("div",{class:M},t("div",{"aria-label":r,class:W,role:"tablist",tabIndex:-1,onKeyDown:l,onBlur:a},d.map((({buttonProps:o,refBox:e})=>t("div",{class:V,ref:e},t(j,Object.assign({},o)))))),s&&t("div",{class:E,ref:n.refBox},t(j,Object.assign({},n.buttonProps)))),t("div",{class:N,ref:c}))},J=o(class extends a{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.onCreateLabel=z("kol-new")+" …",this.ctaRef=S(),this.id=w("tabs"),this.tabButtonItems=[],this.createButtonItem=G(),this.onClickSelect=(t,o)=>{this.selectNextTabEvent(t,o)},this.onMouseDown=t=>{t.preventDefault()},this.tabButtonCallbacks={onClick:this.onClickSelect,onMouseDown:this.onMouseDown},this.tabButtons=[],this.propsConfig=P,this._align="top",this._behavior=void 0,this._hasCreateButton=!1,this._on=void 0,this._selected=0,this.nextPossibleTabIndex=(t,o,e=1)=>this.selectNextNotDisabledTab(o+e,t,!0),this.prevPossibleTabIndex=(t,o,e=1)=>this.selectNextNotDisabledTab(o-e,t,!1),this.selectNextNotDisabledTab=(t,o,e=!0,i)=>{if(t>o.length-1&&(t=0),t<0&&(t=o.length-1),Array.isArray(o)&&o[t]&&o[t]._disabled){if(!0===e){if(t<o.length-1)return this.selectNextNotDisabledTab(t+1,o,!0,i||t);t=i||t,e=!1}if(!1===e){if(t>0)return this.selectNextNotDisabledTab(t-1,o,!1,i||t);c("[KolTabs] All tabs are disabled, and therefore no tab can be displayed.")}}return t},this.handleKeyDown=t=>{switch(t.key){case $.ArrowRight:this.goToNextTab(t);break;case $.ArrowLeft:this.goToPreviousTab(t);break;case $.Space:case $.Enter:this.activateFocusedTab(t)}},this.handleBlur=()=>{this.currentFocusIndex=void 0},this.onCreate=t=>{var o,e;t.preventDefault(),null===(e=(o=this.getRenderProp("on")).onCreate)||void 0===e||e.call(o,t),this.host&&x(this.host,B.create)},this.setRootRef=t=>{this.rootElement=t},this.setContentRef=t=>{this.tabPanelHost=t}}watchAlign(t){d.apply(t,(t=>this.setRenderProp("align",t)))}watchBehavior(t){F.apply(t,(t=>this.setRenderProp("behavior",t)))}watchHasCreateButton(t){K.apply(t,(t=>this.setRenderProp("hasCreateButton",t)))}watchLabel(t){v.apply(t,(t=>this.setRenderProp("label",t)),this.isRequired("label"))}watchOn(t){I.apply(t,(t=>this.setRenderProp("on",t)))}watchSelected(t){this.applySelected(t)}watchTabs(t){this.applyTabs(t)}focus(t){return Promise.resolve()}click(){return Promise.resolve()}componentWillLoad(){d.apply(this._align,(t=>this.setRenderProp("align",t))),F.apply(this._behavior,(t=>this.setRenderProp("behavior",t))),K.apply(this._hasCreateButton,(t=>this.setRenderProp("hasCreateButton",t))),v.apply(this._label,(t=>this.setRenderProp("label",t)),this.isRequired("label")),I.apply(this._on,(t=>this.setRenderProp("on",t))),this.applySelected(this._selected),this.applyTabs(this._tabs)}componentWillRender(){this.resolveButtons()}componentDidRender(){var t;this.ctaRef(null===(t=this.tabButtonItems[this.getRenderProp("selected")])||void 0===t?void 0:t.getButtonElement()),this.tabButtonItems.forEach((t=>t.syncListeners())),this.createButtonItem.syncListeners(),this.refreshTabPanels()}disconnectedCallback(){this.tabButtonItems.forEach((t=>t.destroy())),this.createButtonItem.destroy()}syncSelected(){const t=this.getRenderProp("tabs");t.length>0&&this.setRenderProp("selected",this.selectNextNotDisabledTab(this.getRenderProp("selected"),t))}getCurrentFocusIndex(){return"number"==typeof this.currentFocusIndex?this.currentFocusIndex:this.getRenderProp("selected")}getKeyboardTabChangeMode(){return"select-manual"===this.getRenderProp("behavior")?"selectFocusOnly":"activateCompletely"}goToNextTab(t){const o=this.nextPossibleTabIndex(this.getRenderProp("tabs"),this.getCurrentFocusIndex());this.selectNextTabEvent(t,o,this.getKeyboardTabChangeMode())}goToPreviousTab(t){const o=this.prevPossibleTabIndex(this.getRenderProp("tabs"),this.getCurrentFocusIndex());this.selectNextTabEvent(t,o,this.getKeyboardTabChangeMode())}activateFocusedTab(t){"number"==typeof this.currentFocusIndex&&this.onSelect(t,this.currentFocusIndex)}selectNextTabEvent(t,o,e="activateCompletely"){var i,n;this.currentFocusIndex=o,this.focusTabById(o),"activateCompletely"===e&&(this._selected=o,null===(n=null===(i=this.getRenderProp("tabs")[o]._on)||void 0===i?void 0:i.onSelect)||void 0===n||n.call(i,t,o),this.onSelect(t,o))}focusTabById(t){if(this.rootElement){const o=h(`button#${this.id}-tab-${t}`,this.rootElement);null==o||o.focus()}}onSelect(t,o){var e,i;null===(i=(e=this.getRenderProp("on")).onSelect)||void 0===i||i.call(e,t,o),this.host&&x(this.host,B.select,o),this.focusTabById(o)}refreshTabPanels(){var t,o;if(!this.tabPanelHost)return;for(;this.tabPanelHost.firstChild;)this.tabPanelHost.removeChild(this.tabPanelHost.firstChild);const e=this.getRenderProp("tabs");for(let i=0;i<e.length;i++){const e=document.createElement("div");e.setAttribute("aria-labelledby",`${this.id}-tab-${i}`),e.setAttribute("id",`${this.id}-panel-${i}`),e.setAttribute("role","tabpanel"),e.setAttribute("hidden","");const n=document.createElement("slot");n.setAttribute("name","tabpanel-slot-"+i),e.appendChild(n),this.tabPanelHost.appendChild(e),"undefined"!=typeof HTMLCollection&&(null===(t=this.host)||void 0===t?void 0:t.children)instanceof HTMLCollection&&(null===(o=this.host)||void 0===o?void 0:o.children[i])&&this.host.children[i].setAttribute("slot","tabpanel-slot-"+i)}this.updateVisiblePanel()}updateVisiblePanel(){if(!this.tabPanelHost)return;const t=this.getRenderProp("selected");Array.from(this.tabPanelHost.children).forEach(((o,e)=>{e===t?o.removeAttribute("hidden"):o.setAttribute("hidden","")}))}resolveButtons(){const t=this.getRenderProp("selected"),o=this.getRenderProp("tabs");this.tabButtons=this.tabButtonItems.map(((e,i)=>{const n=o[i],a=t===i;return e.getButton({_ariaControls:`${this.id}-panel-${i}`,_ariaSelected:a,_customClass:a?"selected":"",_disabled:n._disabled,_hideLabel:n._hideLabel,_icons:n._icons,_id:`${this.id}-tab-${i}`,_label:n._label,_on:this.tabButtonCallbacks,_role:"tab",_tabIndex:a?0:-1,_tooltipAlign:n._tooltipAlign,_value:i,_variant:a?"custom":void 0},this.host)})),this.createButton=this.createButtonItem.getButton({_icons:"kolicon-plus",_label:this.onCreateLabel,_on:{onClick:this.onCreate}},this.host)}applySelected(t){L.apply(t,(t=>{this.setRenderProp("selected",t),this.syncSelected()}))}applyTabs(t){H.apply(t,(t=>{this.setRenderProp("tabs",t),this.tabButtonItems.forEach((t=>t.destroy())),this.tabButtonItems=t.map((()=>G())),this.syncSelected()}))}render(){return t(e,{key:"4026ec6813dc19bfee4e739741ac2235d6818507"},t(q,{key:"d8c41ffab5f5d1baa44809d1f8db8adc065a16f3",align:this.getRenderProp("align"),behavior:this.getRenderProp("behavior"),createButton:this.createButton,handleBlur:this.handleBlur,handleKeyDown:this.handleKeyDown,hasCreateButton:this.getRenderProp("hasCreateButton"),label:this.getRenderProp("label"),on:this.getRenderProp("on"),refContent:this.setContentRef,refRoot:this.setRootRef,selected:this.getRenderProp("selected"),tabButtons:this.tabButtons,tabs:this.getRenderProp("tabs")}))}get host(){return this}static get watchers(){return{_align:[{watchAlign:0}],_behavior:[{watchBehavior:0}],_hasCreateButton:[{watchHasCreateButton:0}],_label:[{watchLabel:0}],_on:[{watchOn:0}],_selected:[{watchSelected:0}],_tabs:[{watchTabs: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=1794028903670"); src: url("kolicons.eot?t=1794028903670#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794028903670") format("woff2"), url("kolicons.woff?t=1794028903670") format("woff"), url("kolicons.ttf?t=1794028903670") format("truetype"), url("kolicons.svg?t=1794028903670#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-tabs { display: var(--display); grid-template-columns: var(--grid-template-columns); grid-template-rows: var(--grid-template-rows); } .kol-tabs--align-right { --display: grid; --grid-template-columns: 1fr auto; --button-group-flex-direction: column; --button-group-order: 2; } .kol-tabs--align-left { --display: grid; --grid-template-columns: auto 1fr; --button-group-flex-direction: column; --button-group-order: 0; } .kol-tabs--align-bottom { --display: grid; --grid-template-rows: 1fr auto; --button-group-order: 2; } .kol-tabs__tabs-align-top { --display: grid; --grid-template-rows: auto 1fr; --button-group-order: 0; } .kol-tabs__button-group { display: flex; order: var(--button-group-order); flex-direction: var(--button-group-flex-direction); flex-wrap: wrap; } .kol-tabs__button-group .kol-button { display: block; } .kol-tabs__button-group .kol-button .kol-button__interactive-element { border-bottom-color: transparent; border-bottom-style: solid; } @media (forced-colors: active) { .kol-tabs__button-group .kol-button.selected { outline: 3px solid Highlight; outline-offset: -3px; } .kol-tabs__button-group .kol-button.selected:has(.kol-button__interactive-element:focus-visible) { outline-style: dashed; } } .kol-tabs__tablist { display: flex; flex-direction: var(--button-group-flex-direction); flex-wrap: wrap; } .kol-tabs__panel { height: 100%; } }'}}},[801,"kol-tabs",{_align:[1],_behavior:[1],_hasCreateButton:[4,"_has-create-button"],_label:[1],_on:[16],_selected:[1538],_tabs:[1],focus:[64],click:[64]},void 0,{_align:[{watchAlign:0}],_behavior:[{watchBehavior:0}],_hasCreateButton:[{watchHasCreateButton:0}],_label:[{watchLabel:0}],_on:[{watchOn:0}],_selected:[{watchSelected:0}],_tabs:[{watchTabs:0}]}]);n([A("ctaRef")],J.prototype,"focus",null),n([D("ctaRef")],J.prototype,"click",null);const U=J,Q=function(){"undefined"!=typeof customElements&&["kol-tabs"].forEach((t=>{"kol-tabs"===t&&(customElements.get(i(t))||customElements.define(i(t),J))}))};export{U as KolTabs,Q as defineCustomElement}
4
+ import{h as t,proxyCustomElement as o,Host as e,transformTag as i}from"@stencil/core/internal/client";import{_ as n}from"./tslib.es6.js";import{B as a}from"./base-web-component.js";import{D as l,s,b as r,g as c,J as h}from"./bem-registry.js";import{a as d,T as b}from"./behavior.js";import{c as u,n as f,j as p,i as k,b as m,e as g,F as _}from"./props-from-config.js";import{l as v}from"./label.js";import{n as y,c as w}from"./dev.utils.js";import{d as x,K as B}from"./events.js";import{r as T}from"./resolve-props.js";import{B as C}from"./component.js";import{B as j}from"./component9.js";import{t as z}from"./i18n.js";import{K as $}from"./keyboard.js";import{c as S,d as A,a as D}from"./element-interaction.js";const K=u("hasCreateButton",!1,f),L=u("selected",0,p),O=["select-automatic","select-manual"],F=u("behavior","select-automatic",(t=>m(t)),(t=>k(t,O))),H=u("tabs",[],(t=>g(t)),(t=>t.every((t=>"object"==typeof t&&null!==t&&(Array.isArray(t._label)||"string"==typeof t._label&&t._label.length>0)))),{hints:(t,o)=>l("KolTabs",o.length)}),I=u("on",{},(t=>{const o=_(t),e={};return"function"==typeof o.onCreate&&(e.onCreate=o.onCreate),"function"==typeof o.onSelect&&(e.onSelect=o.onSelect),e})),P={required:[v,H],optional:[d,K,L,F,I]},G=()=>{const t=new b(a.stateLess),o=y();let e,i,n,l;const r=(t,o)=>{n&&x(n,t,o)},c=o=>{o.stopPropagation(),t.hideTooltip();const n=null==e?void 0:e.on.onClick;"function"==typeof n&&(s(o,l),n(o,i)),r(B.click,i)},h=t=>{var o,i;null===(i=null==e?void 0:(o=e.on).onMouseDown)||void 0===i||i.call(o,t),r(B.mousedown)},d=t=>{var o,i;null===(i=null==e?void 0:(o=e.on).onFocus)||void 0===i||i.call(o,t),r(B.focus)},u=t=>{var o,i;null===(i=null==e?void 0:(o=e.on).onBlur)||void 0===i||i.call(o,t),r(B.blur)},f=t=>{n=t},p=t=>{l=t};return{getButton:(n,a)=>(e=T(n,a),i=n._value,t.componentWillLoad({label:e.label,align:e.tooltipAlign}),{buttonProps:Object.assign(Object.assign({},e),{ariaDescriptionId:o,handleBlur:u,handleClick:c,handleFocus:d,handleMouseDown:h,refButton:p,refTooltip:t.setTooltipElementRef}),refBox:f}),getButtonElement:()=>l,syncListeners:()=>{l&&t.syncListeners(void 0,l,!0)},destroy:()=>{t.destroy()}}},R=r.forBlock("kol-tabs"),E=R("button-create"),M=R("button-group"),N=R("content"),V=R("tab"),W=R("tablist"),q=o=>{const{align:e,class:i,createButton:n,handleBlur:a,handleKeyDown:l,hasCreateButton:s,label:r,refContent:c,refRoot:h,tabButtons:d}=o;return t(C,{block:"kol-tabs",modifiers:{["align-"+e]:!0},class:i,ref:h},t("div",{class:M},t("div",{"aria-label":r,class:W,role:"tablist",tabIndex:-1,onKeyDown:l,onBlur:a},d.map((({buttonProps:o,refBox:e})=>t("div",{class:V,ref:e},t(j,Object.assign({},o)))))),s&&t("div",{class:E,ref:n.refBox},t(j,Object.assign({},n.buttonProps)))),t("div",{class:N,ref:c}))},J=o(class extends a{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.onCreateLabel=z("kol-new")+" …",this.ctaRef=S(),this.id=w("tabs"),this.tabButtonItems=[],this.createButtonItem=G(),this.onClickSelect=(t,o)=>{this.selectNextTabEvent(t,o)},this.onMouseDown=t=>{t.preventDefault()},this.tabButtonCallbacks={onClick:this.onClickSelect,onMouseDown:this.onMouseDown},this.tabButtons=[],this.propsConfig=P,this._align="top",this._behavior=void 0,this._hasCreateButton=!1,this._on=void 0,this._selected=0,this.nextPossibleTabIndex=(t,o,e=1)=>this.selectNextNotDisabledTab(o+e,t,!0),this.prevPossibleTabIndex=(t,o,e=1)=>this.selectNextNotDisabledTab(o-e,t,!1),this.selectNextNotDisabledTab=(t,o,e=!0,i)=>{if(t>o.length-1&&(t=0),t<0&&(t=o.length-1),Array.isArray(o)&&o[t]&&o[t]._disabled){if(!0===e){if(t<o.length-1)return this.selectNextNotDisabledTab(t+1,o,!0,i||t);t=i||t,e=!1}if(!1===e){if(t>0)return this.selectNextNotDisabledTab(t-1,o,!1,i||t);c("[KolTabs] All tabs are disabled, and therefore no tab can be displayed.")}}return t},this.handleKeyDown=t=>{switch(t.key){case $.ArrowRight:this.goToNextTab(t);break;case $.ArrowLeft:this.goToPreviousTab(t);break;case $.Space:case $.Enter:this.activateFocusedTab(t)}},this.handleBlur=()=>{this.currentFocusIndex=void 0},this.onCreate=t=>{var o,e;t.preventDefault(),null===(e=(o=this.getRenderProp("on")).onCreate)||void 0===e||e.call(o,t),this.host&&x(this.host,B.create)},this.setRootRef=t=>{this.rootElement=t},this.setContentRef=t=>{this.tabPanelHost=t}}watchAlign(t){d.apply(t,(t=>this.setRenderProp("align",t)))}watchBehavior(t){F.apply(t,(t=>this.setRenderProp("behavior",t)))}watchHasCreateButton(t){K.apply(t,(t=>this.setRenderProp("hasCreateButton",t)))}watchLabel(t){v.apply(t,(t=>this.setRenderProp("label",t)),this.isRequired("label"))}watchOn(t){I.apply(t,(t=>this.setRenderProp("on",t)))}watchSelected(t){this.applySelected(t)}watchTabs(t){this.applyTabs(t)}focus(t){return Promise.resolve()}click(){return Promise.resolve()}componentWillLoad(){d.apply(this._align,(t=>this.setRenderProp("align",t))),F.apply(this._behavior,(t=>this.setRenderProp("behavior",t))),K.apply(this._hasCreateButton,(t=>this.setRenderProp("hasCreateButton",t))),v.apply(this._label,(t=>this.setRenderProp("label",t)),this.isRequired("label")),I.apply(this._on,(t=>this.setRenderProp("on",t))),this.applySelected(this._selected),this.applyTabs(this._tabs)}componentWillRender(){this.resolveButtons()}componentDidRender(){var t;this.ctaRef(null===(t=this.tabButtonItems[this.getRenderProp("selected")])||void 0===t?void 0:t.getButtonElement()),this.tabButtonItems.forEach((t=>t.syncListeners())),this.createButtonItem.syncListeners(),this.refreshTabPanels()}disconnectedCallback(){this.tabButtonItems.forEach((t=>t.destroy())),this.createButtonItem.destroy()}syncSelected(){const t=this.getRenderProp("tabs");t.length>0&&this.setRenderProp("selected",this.selectNextNotDisabledTab(this.getRenderProp("selected"),t))}getCurrentFocusIndex(){return"number"==typeof this.currentFocusIndex?this.currentFocusIndex:this.getRenderProp("selected")}getKeyboardTabChangeMode(){return"select-manual"===this.getRenderProp("behavior")?"selectFocusOnly":"activateCompletely"}goToNextTab(t){const o=this.nextPossibleTabIndex(this.getRenderProp("tabs"),this.getCurrentFocusIndex());this.selectNextTabEvent(t,o,this.getKeyboardTabChangeMode())}goToPreviousTab(t){const o=this.prevPossibleTabIndex(this.getRenderProp("tabs"),this.getCurrentFocusIndex());this.selectNextTabEvent(t,o,this.getKeyboardTabChangeMode())}activateFocusedTab(t){"number"==typeof this.currentFocusIndex&&this.onSelect(t,this.currentFocusIndex)}selectNextTabEvent(t,o,e="activateCompletely"){var i,n;this.currentFocusIndex=o,this.focusTabById(o),"activateCompletely"===e&&(this._selected=o,null===(n=null===(i=this.getRenderProp("tabs")[o]._on)||void 0===i?void 0:i.onSelect)||void 0===n||n.call(i,t,o),this.onSelect(t,o))}focusTabById(t){if(this.rootElement){const o=h(`button#${this.id}-tab-${t}`,this.rootElement);null==o||o.focus()}}onSelect(t,o){var e,i;null===(i=(e=this.getRenderProp("on")).onSelect)||void 0===i||i.call(e,t,o),this.host&&x(this.host,B.select,o),this.focusTabById(o)}refreshTabPanels(){var t,o;if(!this.tabPanelHost)return;for(;this.tabPanelHost.firstChild;)this.tabPanelHost.removeChild(this.tabPanelHost.firstChild);const e=this.getRenderProp("tabs");for(let i=0;i<e.length;i++){const e=document.createElement("div");e.setAttribute("aria-labelledby",`${this.id}-tab-${i}`),e.setAttribute("id",`${this.id}-panel-${i}`),e.setAttribute("role","tabpanel"),e.setAttribute("hidden","");const n=document.createElement("slot");n.setAttribute("name","tabpanel-slot-"+i),e.appendChild(n),this.tabPanelHost.appendChild(e),"undefined"!=typeof HTMLCollection&&(null===(t=this.host)||void 0===t?void 0:t.children)instanceof HTMLCollection&&(null===(o=this.host)||void 0===o?void 0:o.children[i])&&this.host.children[i].setAttribute("slot","tabpanel-slot-"+i)}this.updateVisiblePanel()}updateVisiblePanel(){if(!this.tabPanelHost)return;const t=this.getRenderProp("selected");Array.from(this.tabPanelHost.children).forEach(((o,e)=>{e===t?o.removeAttribute("hidden"):o.setAttribute("hidden","")}))}resolveButtons(){const t=this.getRenderProp("selected"),o=this.getRenderProp("tabs");this.tabButtons=this.tabButtonItems.map(((e,i)=>{const n=o[i],a=t===i;return e.getButton({_ariaControls:`${this.id}-panel-${i}`,_ariaSelected:a,_customClass:a?"selected":"",_disabled:n._disabled,_hideLabel:n._hideLabel,_icons:n._icons,_id:`${this.id}-tab-${i}`,_label:n._label,_on:this.tabButtonCallbacks,_role:"tab",_tabIndex:a?0:-1,_tooltipAlign:n._tooltipAlign,_value:i,_variant:a?"custom":void 0},this.host)})),this.createButton=this.createButtonItem.getButton({_icons:"kolicon-plus",_label:this.onCreateLabel,_on:{onClick:this.onCreate}},this.host)}applySelected(t){L.apply(t,(t=>{this.setRenderProp("selected",t),this.syncSelected()}))}applyTabs(t){H.apply(t,(t=>{this.setRenderProp("tabs",t),this.tabButtonItems.forEach((t=>t.destroy())),this.tabButtonItems=t.map((()=>G())),this.syncSelected()}))}render(){return t(e,{key:"0abd643c8bb617f9b21ad72e136fea8e42e23eaf"},t(q,{key:"82d3bdac38a70eac65b57de4a6a6c45f59fdec6c",align:this.getRenderProp("align"),behavior:this.getRenderProp("behavior"),createButton:this.createButton,handleBlur:this.handleBlur,handleKeyDown:this.handleKeyDown,hasCreateButton:this.getRenderProp("hasCreateButton"),label:this.getRenderProp("label"),on:this.getRenderProp("on"),refContent:this.setContentRef,refRoot:this.setRootRef,selected:this.getRenderProp("selected"),tabButtons:this.tabButtons,tabs:this.getRenderProp("tabs")}))}get host(){return this}static get watchers(){return{_align:[{watchAlign:0}],_behavior:[{watchBehavior:0}],_hasCreateButton:[{watchHasCreateButton:0}],_label:[{watchLabel:0}],_on:[{watchOn:0}],_selected:[{watchSelected:0}],_tabs:[{watchTabs: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=1794493099910"); src: url("kolicons.eot?t=1794493099910#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794493099910") format("woff2"), url("kolicons.woff?t=1794493099910") format("woff"), url("kolicons.ttf?t=1794493099910") format("truetype"), url("kolicons.svg?t=1794493099910#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-tabs { display: var(--display); grid-template-columns: var(--grid-template-columns); grid-template-rows: var(--grid-template-rows); } .kol-tabs--align-right { --display: grid; --grid-template-columns: 1fr auto; --button-group-flex-direction: column; --button-group-order: 2; } .kol-tabs--align-left { --display: grid; --grid-template-columns: auto 1fr; --button-group-flex-direction: column; --button-group-order: 0; } .kol-tabs--align-bottom { --display: grid; --grid-template-rows: 1fr auto; --button-group-order: 2; } .kol-tabs__tabs-align-top { --display: grid; --grid-template-rows: auto 1fr; --button-group-order: 0; } .kol-tabs__button-group { display: flex; order: var(--button-group-order); flex-direction: var(--button-group-flex-direction); flex-wrap: wrap; } .kol-tabs__button-group .kol-button { display: block; } .kol-tabs__button-group .kol-button .kol-button__interactive-element { border-bottom-color: transparent; border-bottom-style: solid; } @media (forced-colors: active) { .kol-tabs__button-group .kol-button.selected { outline: 3px solid Highlight; outline-offset: -3px; } .kol-tabs__button-group .kol-button.selected:has(.kol-button__interactive-element:focus-visible) { outline-style: dashed; } } .kol-tabs__tablist { display: flex; flex-direction: var(--button-group-flex-direction); flex-wrap: wrap; } .kol-tabs__panel { height: 100%; } }'}}},[801,"kol-tabs",{_align:[1],_behavior:[1],_hasCreateButton:[4,"_has-create-button"],_label:[1],_on:[16],_selected:[1538],_tabs:[1],focus:[64],click:[64]},void 0,{_align:[{watchAlign:0}],_behavior:[{watchBehavior:0}],_hasCreateButton:[{watchHasCreateButton:0}],_label:[{watchLabel:0}],_on:[{watchOn:0}],_selected:[{watchSelected:0}],_tabs:[{watchTabs:0}]}]);n([A("ctaRef")],J.prototype,"focus",null),n([D("ctaRef")],J.prototype,"click",null);const U=J,Q=function(){"undefined"!=typeof customElements&&["kol-tabs"].forEach((t=>{"kol-tabs"===t&&(customElements.get(i(t))||customElements.define(i(t),J))}))};export{U as KolTabs,Q as defineCustomElement}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as t,proxyCustomElement as e,Host as o,transformTag as i}from"@stencil/core/internal/client";import{a,_ as n}from"./tslib.es6.js";import{v as l}from"./access-and-short-key.js";import{B as s}from"./base-web-component.js";import{C as r}from"./behavior2.js";import{h,g as c,I as d}from"./input-container.js";import{i as k,g as u,c as b,f as m,B as p,F as f}from"./base-web-component2.js";import"./bem-registry.js";import{c as _}from"./clsx.js";import{g}from"./block-bem.js";import{a as w,d as y,v}from"./component3.js";import{c as x,n as j,b as z,i as L}from"./props-from-config.js";import{p as B}from"./placeholder.js";import{r as T}from"./read-only.js";import{r as H}from"./required.js";import{r as K}from"./rows.js";import{s as O}from"./spell-check.js";import{s as A}from"./value-string.js";import{c as C}from"./dev.utils.js";import{c as q,d as D,a as M}from"./element-interaction.js";const R=["vertical","none"],S=x("adjustHeight",!1,j),V=x("resize","vertical",(function(t){const e=z(t);if(L(e,R))return e;throw Error("Invalid resize option: "+e)})),P=e=>{const{class:o,msg:i,touched:n,readonly:l,disabled:s,required:r,ariaDescribedBy:h,hideLabel:c,label:d}=e,m=a(e,["class","msg","touched","readonly","disabled","required","ariaDescribedBy","hideLabel","label"]),p=Object.assign(Object.assign({class:_(g("kol-textarea")(Object.assign({disabled:!!s,required:!!r,touched:!!n,readonly:!!l},k(i,n)?{[u(i)]:!0}:{})),o),required:r,disabled:s,readonly:l},b({ariaDescribedBy:h,hideLabel:c,label:d})),m);return t("textarea",Object.assign({},p))},I={required:[...m.required],optional:[...m.optional,w,S,h,B,T,H,V,K,y,O,A,v]},E=e(class extends p{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=C("textarea"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=q(),this.counter=new r(s.stateLess),this.needsImmediateCounterUpdate=!1,this.hasValue=!1,this.isWritingRows=!1,this.propsConfig=I,this._accessKey=void 0,this._adjustHeight=!1,this._ariaDetails=void 0,this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._maxLength=void 0,this._hasCounter=!1,this._maxLengthBehavior="hard",this._msg=void 0,this._name=void 0,this._on=void 0,this._placeholder=void 0,this._readOnly=!1,this._resize="vertical",this._required=!1,this._rows=void 0,this._shortKey=void 0,this._spellCheck=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this._variant=void 0,this.handleTextareaInput=t=>{this.ctaRef.el instanceof HTMLTextAreaElement&&(this._value=this.ctaRef.el.value,this.getRenderProp("adjustHeight")&&this.writeRows(this.measureTextareaRows(this.ctaRef.el)),this.handleInput(t))},this.handleTextareaChange=t=>{this.handleChange(t)},this.handleTextareaFocus=t=>{var e,o;this.handleFocus(t),this.counter.retriggerAria(null!==(o=null===(e=this._value)||void 0===e?void 0:e.length)&&void 0!==o?o:0)},this.handleTextareaKeyDown=t=>{var e,o;this.handleKeyDown(t),this.counter.handleKeyDown(t,null!==(o=null===(e=this.ctaRef.el)||void 0===e?void 0:e.value.length)&&void 0!==o?o:0)},this.initFormAssociation("textarea",this._name)}watchAccessKey(t){w.apply(t,(t=>this.setRenderProp("accessKey",t))),l(t,this._shortKey)}watchAdjustHeight(t){S.apply(t,(t=>this.setRenderProp("adjustHeight",t)))}watchAriaDetails(t){this.applyAriaDetails(t)}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){h.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMaxLength(t){var e,o;this.counter.watchMaxLength(t),this.counter.updateImmediate(null!==(o=null===(e=this._value)||void 0===e?void 0:e.length)&&void 0!==o?o:0)}watchHasCounter(t){this.counter.watchHasCounter(t),this.needsImmediateCounterUpdate=!0}watchMaxLengthBehavior(t){this.counter.watchMaxLengthBehavior(t),this.needsImmediateCounterUpdate=!0}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchPlaceholder(t){B.apply(t,(t=>this.setRenderProp("placeholder",t)))}watchReadOnly(t){T.apply(t,(t=>this.setRenderProp("readOnly",t)))}watchResize(t){V.apply(t,(t=>this.setRenderProp("resize",t)))}watchRequired(t){H.apply(t,(t=>this.setRenderProp("required",t)))}watchRows(t){K.apply(t,(t=>{this.setRenderProp("rows",t),this.isWritingRows||(this.minRows=t)}))}watchShortKey(t){y.apply(t,(t=>this.setRenderProp("shortKey",t))),l(this._accessKey,t)}watchSpellCheck(t){O.apply(t,(t=>this.setRenderProp("spellCheck",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){var e;this.applyValue(t),this.counter.update(null!==(e=null==t?void 0:t.length)&&void 0!==e?e:0)}watchVariant(t){v.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){var t;return Promise.resolve(null===(t=this.ctaRef.el)||void 0===t?void 0:t.value)}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}componentWillLoad(){this.watchAriaDetails(this._ariaDetails),this._touched=!0===this._touched,this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),this.watchAdjustHeight(this._adjustHeight),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.watchHasCounter(this._hasCounter),this.watchMaxLengthBehavior(this._maxLengthBehavior),this.counter.watchMaxLength(this._maxLength),this.watchPlaceholder(this._placeholder),this.watchReadOnly(this._readOnly),this.watchRequired(this._required),this.watchResize(this._resize),this.watchRows(this._rows),this.watchSpellCheck(this._spellCheck),this.applyValue(this._value)}componentDidLoad(){var t,e;this.needsImmediateCounterUpdate=!1,(this.counter.hasCounter()||this.counter.hasSoftLimit())&&this.counter.updateImmediate(null!==(e=null===(t=this._value)||void 0===t?void 0:t.length)&&void 0!==e?e:0),setTimeout((()=>{!0===this._adjustHeight&&this.ctaRef.el?this.writeRows(this.measureTextareaRows(this.ctaRef.el)):this._rows||this.writeRows(1)}))}componentDidUpdate(){var t,e;this.needsImmediateCounterUpdate&&(this.needsImmediateCounterUpdate=!1,(this.counter.hasCounter()||this.counter.hasSoftLimit())&&this.counter.updateImmediate(null!==(e=null===(t=this._value)||void 0===t?void 0:t.length)&&void 0!==e?e:0))}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField(),this.counter.destroy()}writeRows(t){this.isWritingRows=!0,this._rows=t,this.isWritingRows=!1}measureTextareaRows(t){t.style.overflow="hidden",t.style.padding="0";const e=t.rows,o=t.clientHeight/e;t.rows=1;const i=Math.round(t.scrollHeight/o);t.rows=e,t.style.padding="";const a=this.minRows;return a&&a>i?a:i}getTextareaProps(){const t=this.id,e=this.getRenderProp("shortKey"),o=this.counter.getMaxLengthAttribute(),i=this.counter.getCharacterLimitHintId(t),{ariaDescribedBy:a,hasError:n}=this.getAria();return Object.assign(Object.assign({id:t,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),value:this.getRenderProp("value"),accessKey:this.getRenderProp("accessKey")||void 0,disabled:this.getRenderProp("disabled"),name:this.getRenderProp("name")||void 0,rows:this.getRenderProp("rows"),readonly:this.getRenderProp("readOnly"),required:this.getRenderProp("required"),placeholder:this.getRenderProp("placeholder"),spellcheck:this.getRenderProp("spellCheck"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg"),ref:this.ctaRef,style:{resize:this.getRenderProp("resize")},onBlur:this.handleBlur,onChange:this.handleTextareaChange,onClick:this.handleClick,onFocus:this.handleTextareaFocus,onInput:this.handleTextareaInput,onKeyDown:this.handleTextareaKeyDown,ariaDescribedBy:i?[...a,i]:a,"aria-invalid":n?"true":void 0},void 0!==o?{maxLength:o}:{}),e?{"aria-keyshortcuts":e}:{})}applyValue(t){A.apply(t,(t=>this.setRenderProp("value",t))),this.hasValue=!!this.getRenderProp("value"),this.formAssociation.setFormAssociatedValue(this.getRenderProp("value"))}render(){const e=this.getRenderProp("disabled"),{startAdornment:i,endAdornment:a}=c({icons:this.getRenderProp("icons")});return t(o,{key:"9d1ef511eb6801f5de983a549f984a5c65df423b"},t(f,Object.assign({key:"ebc9b05e594a30e4df82d7419b6953cfb303c243"},this.getFormFieldProps({class:_("kol-form-field-textarea",{"kol-form-field--has-value":this.hasValue,"kol-form-field--has-counter":this.counter.hasSoftLimit()||this.counter.hasCounter()}),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant"),required:this.getRenderProp("required"),readOnly:this.getRenderProp("readOnly"),maxLength:this.counter.getRenderProp("maxLength"),counter:this.counter.getCounterProps()})),t(d,{key:"acb86069bf883539a6248d98144a595ccebd874b",disabled:e,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:a},t(P,Object.assign({key:"5062314ac6122a95a609bad1db25884b60716638"},this.getTextareaProps())))))}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_adjustHeight:[{watchAdjustHeight:0}],_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_maxLength:[{watchMaxLength:0}],_hasCounter:[{watchHasCounter:0}],_maxLengthBehavior:[{watchMaxLengthBehavior:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_placeholder:[{watchPlaceholder:0}],_readOnly:[{watchReadOnly:0}],_resize:[{watchResize:0}],_required:[{watchRequired:0}],_rows:[{watchRows:0}],_shortKey:[{watchShortKey:0}],_spellCheck:[{watchSpellCheck:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched: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; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794028903670"); src: url("kolicons.eot?t=1794028903670#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794028903670") format("woff2"), url("kolicons.woff?t=1794028903670") format("woff"), url("kolicons.ttf?t=1794028903670") format("truetype"), url("kolicons.svg?t=1794028903670#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-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-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-textarea { width: 100%; } }'}}},[545,"kol-textarea",{_accessKey:[1,"_access-key"],_adjustHeight:[4,"_adjust-height"],_ariaDetails:[1,"_aria-details"],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_label:[1],_maxLength:[2,"_max-length"],_hasCounter:[4,"_has-counter"],_maxLengthBehavior:[1,"_max-length-behavior"],_msg:[1],_name:[1],_on:[16],_placeholder:[1],_readOnly:[4,"_read-only"],_resize:[1],_required:[4],_rows:[1026],_shortKey:[1,"_short-key"],_spellCheck:[4,"_spell-check"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1537],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64],click:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_adjustHeight:[{watchAdjustHeight:0}],_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_maxLength:[{watchMaxLength:0}],_hasCounter:[{watchHasCounter:0}],_maxLengthBehavior:[{watchMaxLengthBehavior:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_placeholder:[{watchPlaceholder:0}],_readOnly:[{watchReadOnly:0}],_resize:[{watchResize:0}],_required:[{watchRequired:0}],_rows:[{watchRows:0}],_shortKey:[{watchShortKey:0}],_spellCheck:[{watchSpellCheck:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);n([D("ctaRef")],E.prototype,"focus",null),n([M("ctaRef")],E.prototype,"click",null);const G=E,F=function(){"undefined"!=typeof customElements&&["kol-textarea"].forEach((t=>{"kol-textarea"===t&&(customElements.get(i(t))||customElements.define(i(t),E))}))};export{G as KolTextarea,F as defineCustomElement}
4
+ import{h as t,proxyCustomElement as e,Host as o,transformTag as i}from"@stencil/core/internal/client";import{a,_ as n}from"./tslib.es6.js";import{v as l}from"./access-and-short-key.js";import{B as s}from"./base-web-component.js";import{C as r}from"./behavior2.js";import{h,g as c,I as d}from"./input-container.js";import{i as k,g as u,c as m,f as b,B as p,F as f}from"./base-web-component2.js";import"./bem-registry.js";import{c as _}from"./clsx.js";import{g}from"./block-bem.js";import{a as w,d as y,v}from"./component3.js";import{c as x,n as j,b as z,i as L}from"./props-from-config.js";import{p as B}from"./placeholder.js";import{r as T}from"./read-only.js";import{r as H}from"./required.js";import{r as K}from"./rows.js";import{s as O}from"./spell-check.js";import{s as A}from"./value-string.js";import{c as C}from"./dev.utils.js";import{c as q,d as D,a as M}from"./element-interaction.js";const R=["vertical","none"],S=x("adjustHeight",!1,j),V=x("resize","vertical",(function(t){const e=z(t);if(L(e,R))return e;throw Error("Invalid resize option: "+e)})),P=e=>{const{class:o,msg:i,touched:n,readonly:l,disabled:s,required:r,ariaDescribedBy:h,hideLabel:c,label:d}=e,b=a(e,["class","msg","touched","readonly","disabled","required","ariaDescribedBy","hideLabel","label"]),p=Object.assign(Object.assign({class:_(g("kol-textarea")(Object.assign({disabled:!!s,required:!!r,touched:!!n,readonly:!!l},k(i,n)?{[u(i)]:!0}:{})),o),required:r,disabled:s,readonly:l},m({ariaDescribedBy:h,hideLabel:c,label:d})),b);return t("textarea",Object.assign({},p))},I={required:[...b.required],optional:[...b.optional,w,S,h,B,T,H,V,K,y,O,A,v]},E=e(class extends p{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.id=C("textarea"),this.infoPopoverOpen=!1,this.inputHasFocus=!1,this.ctaRef=q(),this.counter=new r(s.stateLess),this.needsImmediateCounterUpdate=!1,this.hasValue=!1,this.isWritingRows=!1,this.propsConfig=I,this._accessKey=void 0,this._adjustHeight=!1,this._ariaDetails=void 0,this._disabled=!1,this._hideMsg=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._infoPopover=void 0,this._maxLength=void 0,this._hasCounter=!1,this._maxLengthBehavior="hard",this._msg=void 0,this._name=void 0,this._on=void 0,this._placeholder=void 0,this._readOnly=!1,this._resize="vertical",this._required=!1,this._rows=void 0,this._shortKey=void 0,this._spellCheck=void 0,this._syncValueBySelector=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this._variant=void 0,this.handleTextareaInput=t=>{this.ctaRef.el instanceof HTMLTextAreaElement&&(this._value=this.ctaRef.el.value,this.getRenderProp("adjustHeight")&&this.writeRows(this.measureTextareaRows(this.ctaRef.el)),this.handleInput(t))},this.handleTextareaChange=t=>{this.handleChange(t)},this.handleTextareaFocus=t=>{var e,o;this.handleFocus(t),this.counter.retriggerAria(null!==(o=null===(e=this._value)||void 0===e?void 0:e.length)&&void 0!==o?o:0)},this.handleTextareaKeyDown=t=>{var e,o;this.handleKeyDown(t),this.counter.handleKeyDown(t,null!==(o=null===(e=this.ctaRef.el)||void 0===e?void 0:e.value.length)&&void 0!==o?o:0)},this.initFormAssociation("textarea",this._name)}watchAccessKey(t){w.apply(t,(t=>this.setRenderProp("accessKey",t))),l(t,this._shortKey)}watchAdjustHeight(t){S.apply(t,(t=>this.setRenderProp("adjustHeight",t)))}watchAriaDetails(t){this.applyAriaDetails(t)}watchDisabled(t){this.applyDisabled(t)}watchHideMsg(t){this.applyHideMsg(t)}watchHideLabel(t){this.applyHideLabel(t)}watchHint(t){this.applyHint(t)}watchIcons(t){h.apply(t,(t=>this.setRenderProp("icons",t)))}watchInfoPopover(t){this.applyInfoPopover(t)}watchLabel(t){this.applyLabel(t)}watchMaxLength(t){var e,o;this.counter.watchMaxLength(t),this.counter.updateImmediate(null!==(o=null===(e=this._value)||void 0===e?void 0:e.length)&&void 0!==o?o:0)}watchHasCounter(t){this.counter.watchHasCounter(t),this.needsImmediateCounterUpdate=!0}watchMaxLengthBehavior(t){this.counter.watchMaxLengthBehavior(t),this.needsImmediateCounterUpdate=!0}watchMsg(t){this.applyMsg(t)}watchName(t){this.applyName(t)}watchOn(t){this.applyOn(t)}watchPlaceholder(t){B.apply(t,(t=>this.setRenderProp("placeholder",t)))}watchReadOnly(t){T.apply(t,(t=>this.setRenderProp("readOnly",t)))}watchResize(t){V.apply(t,(t=>this.setRenderProp("resize",t)))}watchRequired(t){H.apply(t,(t=>this.setRenderProp("required",t)))}watchRows(t){K.apply(t,(t=>{this.setRenderProp("rows",t),this.isWritingRows||(this.minRows=t)}))}watchShortKey(t){y.apply(t,(t=>this.setRenderProp("shortKey",t))),l(this._accessKey,t)}watchSpellCheck(t){O.apply(t,(t=>this.setRenderProp("spellCheck",t)))}watchSyncValueBySelector(t){this.applySyncValueBySelector(t)}watchTooltipAlign(t){this.applyTooltipAlign(t)}watchTouched(t){this.applyTouched(t)}watchValue(t){var e;this.applyValue(t),this.counter.update(null!==(e=null==t?void 0:t.length)&&void 0!==e?e:0)}watchVariant(t){v.apply(t,(t=>this.setRenderProp("variant",t)))}getValue(){var t;return Promise.resolve(null===(t=this.ctaRef.el)||void 0===t?void 0:t.value)}focus(t){return Promise.resolve()}async click(){return Promise.resolve()}componentWillLoad(){this.watchAriaDetails(this._ariaDetails),this._touched=!0===this._touched,this.watchName(this._name),this.watchSyncValueBySelector(this._syncValueBySelector),this.watchTouched(this._touched),this.watchAccessKey(this._accessKey),this.watchAdjustHeight(this._adjustHeight),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.watchHasCounter(this._hasCounter),this.watchMaxLengthBehavior(this._maxLengthBehavior),this.counter.watchMaxLength(this._maxLength),this.watchPlaceholder(this._placeholder),this.watchReadOnly(this._readOnly),this.watchRequired(this._required),this.watchResize(this._resize),this.watchRows(this._rows),this.watchSpellCheck(this._spellCheck),this.applyValue(this._value)}componentDidLoad(){var t,e;this.needsImmediateCounterUpdate=!1,(this.counter.hasCounter()||this.counter.hasSoftLimit())&&this.counter.updateImmediate(null!==(e=null===(t=this._value)||void 0===t?void 0:t.length)&&void 0!==e?e:0),setTimeout((()=>{!0===this._adjustHeight&&this.ctaRef.el?this.writeRows(this.measureTextareaRows(this.ctaRef.el)):this._rows||this.writeRows(1)}))}componentDidUpdate(){var t,e;this.needsImmediateCounterUpdate&&(this.needsImmediateCounterUpdate=!1,(this.counter.hasCounter()||this.counter.hasSoftLimit())&&this.counter.updateImmediate(null!==(e=null===(t=this._value)||void 0===t?void 0:t.length)&&void 0!==e?e:0))}componentDidRender(){this.syncFormField()}disconnectedCallback(){this.destroyFormField(),this.counter.destroy()}writeRows(t){this.isWritingRows=!0,this._rows=t,this.isWritingRows=!1}measureTextareaRows(t){t.style.overflow="hidden",t.style.padding="0";const e=t.rows,o=t.clientHeight/e;t.rows=1;const i=Math.round(t.scrollHeight/o);t.rows=e,t.style.padding="";const a=this.minRows;return a&&a>i?a:i}getTextareaProps(){const t=this.id,e=this.getRenderProp("shortKey"),o=this.counter.getMaxLengthAttribute(),i=this.counter.getCharacterLimitHintId(t),{ariaDescribedBy:a,hasError:n}=this.getAria();return Object.assign(Object.assign({id:t,hideLabel:this.getRenderProp("hideLabel"),label:this.getRenderProp("label"),value:this.getRenderProp("value"),accessKey:this.getRenderProp("accessKey")||void 0,disabled:this.getRenderProp("disabled"),name:this.getRenderProp("name")||void 0,rows:this.getRenderProp("rows"),readonly:this.getRenderProp("readOnly"),required:this.getRenderProp("required"),placeholder:this.getRenderProp("placeholder"),spellcheck:this.getRenderProp("spellCheck"),touched:this.getRenderProp("touched"),msg:this.getRenderProp("msg"),ref:this.ctaRef,style:{resize:this.getRenderProp("resize")},onBlur:this.handleBlur,onChange:this.handleTextareaChange,onClick:this.handleClick,onFocus:this.handleTextareaFocus,onInput:this.handleTextareaInput,onKeyDown:this.handleTextareaKeyDown,ariaDescribedBy:i?[...a,i]:a,"aria-invalid":n?"true":void 0},void 0!==o?{maxLength:o}:{}),e?{"aria-keyshortcuts":e}:{})}applyValue(t){A.apply(t,(t=>this.setRenderProp("value",t))),this.hasValue=!!this.getRenderProp("value"),this.formAssociation.setFormAssociatedValue(this.getRenderProp("value"))}render(){const e=this.getRenderProp("disabled"),{startAdornment:i,endAdornment:a}=c({icons:this.getRenderProp("icons")});return t(o,{key:"86a1b4d82b3354c4e3f1f478d8cf2b3f9a9947b1"},t(f,Object.assign({key:"d993ae8887564c1c8ad04ecf3322b487009c56e4"},this.getFormFieldProps({class:_("kol-form-field-textarea",{"kol-form-field--has-value":this.hasValue,"kol-form-field--has-counter":this.counter.hasSoftLimit()||this.counter.hasCounter()}),accessKey:this.getRenderProp("accessKey")||void 0,shortKey:this.getRenderProp("shortKey")||void 0,variant:this.getRenderProp("variant"),required:this.getRenderProp("required"),readOnly:this.getRenderProp("readOnly"),maxLength:this.counter.getRenderProp("maxLength"),counter:this.counter.getCounterProps()})),t(d,{key:"da2e2e23a310a622a6c3b55b6e5884087abaf803",disabled:e,msg:this.getRenderProp("msg"),touched:this.getRenderProp("touched"),startAdornment:i,endAdornment:a},t(P,Object.assign({key:"8b97860a62ce968dc09a6cda294f3579fc9ad0d9"},this.getTextareaProps())))))}get host(){return this}static get watchers(){return{_accessKey:[{watchAccessKey:0}],_adjustHeight:[{watchAdjustHeight:0}],_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_maxLength:[{watchMaxLength:0}],_hasCounter:[{watchHasCounter:0}],_maxLengthBehavior:[{watchMaxLengthBehavior:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_placeholder:[{watchPlaceholder:0}],_readOnly:[{watchReadOnly:0}],_resize:[{watchResize:0}],_required:[{watchRequired:0}],_rows:[{watchRows:0}],_shortKey:[{watchShortKey:0}],_spellCheck:[{watchSpellCheck:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched: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; } } @layer kol-component { :host { display: block; } } @font-face { font-family: "kolicons"; src: url("kolicons.eot?t=1794493099910"); src: url("kolicons.eot?t=1794493099910#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794493099910") format("woff2"), url("kolicons.woff?t=1794493099910") format("woff"), url("kolicons.ttf?t=1794493099910") format("truetype"), url("kolicons.svg?t=1794493099910#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-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-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-textarea { width: 100%; } }'}}},[545,"kol-textarea",{_accessKey:[1,"_access-key"],_adjustHeight:[4,"_adjust-height"],_ariaDetails:[1,"_aria-details"],_disabled:[4],_hideMsg:[4,"_hide-msg"],_hideLabel:[4,"_hide-label"],_hint:[1],_icons:[1],_infoPopover:[16],_label:[1],_maxLength:[2,"_max-length"],_hasCounter:[4,"_has-counter"],_maxLengthBehavior:[1,"_max-length-behavior"],_msg:[1],_name:[1],_on:[16],_placeholder:[1],_readOnly:[4,"_read-only"],_resize:[1],_required:[4],_rows:[1026],_shortKey:[1,"_short-key"],_spellCheck:[4,"_spell-check"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tooltipAlign:[1,"_tooltip-align"],_touched:[1540],_value:[1537],_variant:[1],id:[32],infoPopoverOpen:[32],inputHasFocus:[32],getValue:[64],focus:[64],click:[64]},void 0,{_accessKey:[{watchAccessKey:0}],_adjustHeight:[{watchAdjustHeight:0}],_ariaDetails:[{watchAriaDetails:0}],_disabled:[{watchDisabled:0}],_hideMsg:[{watchHideMsg:0}],_hideLabel:[{watchHideLabel:0}],_hint:[{watchHint:0}],_icons:[{watchIcons:0}],_infoPopover:[{watchInfoPopover:0}],_label:[{watchLabel:0}],_maxLength:[{watchMaxLength:0}],_hasCounter:[{watchHasCounter:0}],_maxLengthBehavior:[{watchMaxLengthBehavior:0}],_msg:[{watchMsg:0}],_name:[{watchName:0}],_on:[{watchOn:0}],_placeholder:[{watchPlaceholder:0}],_readOnly:[{watchReadOnly:0}],_resize:[{watchResize:0}],_required:[{watchRequired:0}],_rows:[{watchRows:0}],_shortKey:[{watchShortKey:0}],_spellCheck:[{watchSpellCheck:0}],_syncValueBySelector:[{watchSyncValueBySelector:0}],_tooltipAlign:[{watchTooltipAlign:0}],_touched:[{watchTouched:0}],_value:[{watchValue:0}],_variant:[{watchVariant:0}]}]);n([D("ctaRef")],E.prototype,"focus",null),n([M("ctaRef")],E.prototype,"click",null);const G=E,F=function(){"undefined"!=typeof customElements&&["kol-textarea"].forEach((t=>{"kol-textarea"===t&&(customElements.get(i(t))||customElements.define(i(t),E))}))};export{G as KolTextarea,F 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,HTMLElement as e,Host as i,transformTag as n}from"@stencil/core/internal/client";import{t as l}from"./i18n.js";import{c as a,n as r}from"./dev.utils.js";import{f as s}from"./component-names.js";import{a as c}from"./tslib.es6.js";import{A as d}from"./component2.js";import{c as k}from"./clsx.js";import{L as b}from"./bem-registry.js";const f=t=>{var{status:e,toast:i,onClose:n}=t,l=c(t,["status","toast","onClose"]);const{type:s,label:b,description:f,variant:h}=i;return o("div",{class:k("kol-toast-item","kol-toast-item--"+e)},o(d,{alert:!0,class:"kol-toast-item__alert",closerAriaDescriptionId:r(),handleCloserClick:n,hasCloser:!0,headingId:a("alert-heading"),label:b,level:0,refCloserButton:()=>{},refCloserTooltip:()=>{},type:s,variant:h||"card"},o("div",Object.assign({},l),f)))},h=t(class extends e{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow(),this.state={_toastStates:[]},this.translateToastCloseAll=l("kol-toast-close-all"),this.knownRenderFunctions=new Set}enqueue(o){const t={toast:Object.assign(Object.assign({},o),{variant:"card"}),status:"adding",id:a("toast")};return this.state=Object.assign(Object.assign({},this.state),{_toastStates:[t,...this.state._toastStates]}),setTimeout((()=>{this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.map((o=>o.id===t.id&&"removing"!==o.status?Object.assign(Object.assign({},o),{status:"settled"}):o))})}),300),Promise.resolve((()=>{this.handleClose(t)}))}closeAll(o=!1){if(o)this.state=Object.assign(Object.assign({},this.state),{_toastStates:[]}),this.knownRenderFunctions.clear();else{const o=[...this.state._toastStates];this.state=Object.assign(Object.assign({},this.state),{_toastStates:o.map((o=>Object.assign(Object.assign({},o),{status:"removing"})))}),setTimeout((()=>{this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.filter((t=>o.every((o=>o.id!==t.id))))}),o.forEach((o=>{var t,e;"function"==typeof o.toast.render&&this.knownRenderFunctions.delete(o.toast.render),null===(e=(t=o.toast).onClose)||void 0===e||e.call(t)}))}),300)}return Promise.resolve()}componentWillLoad(){b.warn("kol-toast-container is deprecated and will be removed in the next major version. Use kol-alert for inline notifications or kol-dialog for interactive messages instead. See https://github.com/public-ui/kolibri/issues/8372")}handleClose(o){const t=this.state._toastStates.find((t=>t.id===o.id));t&&"removing"!==t.status&&(this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.map((t=>t.id===o.id?Object.assign(Object.assign({},t),{status:"removing"}):t))}),setTimeout((()=>{var t,e;this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.filter((t=>t.id!==o.id))}),"function"==typeof o.toast.render&&this.knownRenderFunctions.delete(o.toast.render),null===(e=(t=o.toast).onClose)||void 0===e||e.call(t)}),300))}handleToastRef(o,t){t&&"function"==typeof o.toast.render&&!this.knownRenderFunctions.has(o.toast.render)&&(this.knownRenderFunctions.add(o.toast.render),o.toast.render(t,{close:()=>this.handleClose(o)}))}render(){return o(i,{key:"3b5da8b356ddf16039ec5cdd9171d9729a963661",class:"kol-toast-container"},this.state._toastStates.length>1&&o(s,{key:"f8ee9ae5e56eaeecec34bd765b523141caa90787",_label:this.translateToastCloseAll,class:"kol-toast-container__button-close-all",_on:{onClick:()=>{this.closeAll()}}}),this.state._toastStates.map((t=>o(f,{key:t.id,onClose:()=>this.handleClose(t),ref:o=>this.handleToastRef(t,o),toast:t.toast,status:t.status}))))}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=1794028903670"); src: url("kolicons.eot?t=1794028903670#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794028903670") format("woff2"), url("kolicons.woff?t=1794028903670") format("woff"), url("kolicons.ttf?t=1794028903670") format("truetype"), url("kolicons.svg?t=1794028903670#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; } :host { display: flex; position: fixed; z-index: 200; max-width: 90vw; flex-direction: column; } .kol-toast-container__close-all { align-self: flex-end; } }'}}},[33,"kol-toast-container",{state:[32],enqueue:[64],closeAll:[64]}]),m=h,u=function(){"undefined"!=typeof customElements&&["kol-toast-container"].forEach((o=>{"kol-toast-container"===o&&(customElements.get(n(o))||customElements.define(n(o),h))}))};export{m as KolToastContainer,u as defineCustomElement}
4
+ import{h as o,proxyCustomElement as t,HTMLElement as e,Host as i,transformTag as n}from"@stencil/core/internal/client";import{t as l}from"./i18n.js";import{c as a,n as r}from"./dev.utils.js";import{f as s}from"./component-names.js";import{a as c}from"./tslib.es6.js";import{A as d}from"./component2.js";import{c as k}from"./clsx.js";import{L as b}from"./bem-registry.js";const f=t=>{var{status:e,toast:i,onClose:n}=t,l=c(t,["status","toast","onClose"]);const{type:s,label:b,description:f,variant:h}=i;return o("div",{class:k("kol-toast-item","kol-toast-item--"+e)},o(d,{alert:!0,class:"kol-toast-item__alert",closerAriaDescriptionId:r(),handleCloserClick:n,hasCloser:!0,headingId:a("alert-heading"),label:b,level:0,refCloserButton:()=>{},refCloserTooltip:()=>{},type:s,variant:h||"card"},o("div",Object.assign({},l),f)))},h=t(class extends e{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow(),this.state={_toastStates:[]},this.translateToastCloseAll=l("kol-toast-close-all"),this.knownRenderFunctions=new Set}enqueue(o){const t={toast:Object.assign(Object.assign({},o),{variant:"card"}),status:"adding",id:a("toast")};return this.state=Object.assign(Object.assign({},this.state),{_toastStates:[t,...this.state._toastStates]}),setTimeout((()=>{this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.map((o=>o.id===t.id&&"removing"!==o.status?Object.assign(Object.assign({},o),{status:"settled"}):o))})}),300),Promise.resolve((()=>{this.handleClose(t)}))}closeAll(o=!1){if(o)this.state=Object.assign(Object.assign({},this.state),{_toastStates:[]}),this.knownRenderFunctions.clear();else{const o=[...this.state._toastStates];this.state=Object.assign(Object.assign({},this.state),{_toastStates:o.map((o=>Object.assign(Object.assign({},o),{status:"removing"})))}),setTimeout((()=>{this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.filter((t=>o.every((o=>o.id!==t.id))))}),o.forEach((o=>{var t,e;"function"==typeof o.toast.render&&this.knownRenderFunctions.delete(o.toast.render),null===(e=(t=o.toast).onClose)||void 0===e||e.call(t)}))}),300)}return Promise.resolve()}componentWillLoad(){b.warn("kol-toast-container is deprecated and will be removed in the next major version. Use kol-alert for inline notifications or kol-dialog for interactive messages instead. See https://github.com/public-ui/kolibri/issues/8372")}handleClose(o){const t=this.state._toastStates.find((t=>t.id===o.id));t&&"removing"!==t.status&&(this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.map((t=>t.id===o.id?Object.assign(Object.assign({},t),{status:"removing"}):t))}),setTimeout((()=>{var t,e;this.state=Object.assign(Object.assign({},this.state),{_toastStates:this.state._toastStates.filter((t=>t.id!==o.id))}),"function"==typeof o.toast.render&&this.knownRenderFunctions.delete(o.toast.render),null===(e=(t=o.toast).onClose)||void 0===e||e.call(t)}),300))}handleToastRef(o,t){t&&"function"==typeof o.toast.render&&!this.knownRenderFunctions.has(o.toast.render)&&(this.knownRenderFunctions.add(o.toast.render),o.toast.render(t,{close:()=>this.handleClose(o)}))}render(){return o(i,{key:"56aed44373c55a99b27ba0a087480b03c36e3f49",class:"kol-toast-container"},this.state._toastStates.length>1&&o(s,{key:"524283493e8d81895eea1d6696ff0d4889d5d61a",_label:this.translateToastCloseAll,class:"kol-toast-container__button-close-all",_on:{onClick:()=>{this.closeAll()}}}),this.state._toastStates.map((t=>o(f,{key:t.id,onClose:()=>this.handleClose(t),ref:o=>this.handleToastRef(t,o),toast:t.toast,status:t.status}))))}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=1794493099910"); src: url("kolicons.eot?t=1794493099910#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794493099910") format("woff2"), url("kolicons.woff?t=1794493099910") format("woff"), url("kolicons.ttf?t=1794493099910") format("truetype"), url("kolicons.svg?t=1794493099910#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; } :host { display: flex; position: fixed; z-index: 200; max-width: 90vw; flex-direction: column; } .kol-toast-container__close-all { align-self: flex-end; } }'}}},[33,"kol-toast-container",{state:[32],enqueue:[64],closeAll:[64]}]),m=h,u=function(){"undefined"!=typeof customElements&&["kol-toast-container"].forEach((o=>{"kol-toast-container"===o&&(customElements.get(n(o))||customElements.define(n(o),h))}))};export{m as KolToastContainer,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 n}from"@stencil/core/internal/client";import{B as i}from"./base-web-component.js";import{b as l,X as r,s as a}from"./bem-registry.js";import{c as s,e as c}from"./props-from-config.js";import{l as d}from"./label.js";import{o as k}from"./orientation.js";import{B as h}from"./component.js";import{B as b}from"./component10.js";import{L as f}from"./component6.js";import{p as m,a as p}from"./controller.js";import{n as u}from"./dev.utils.js";import{c as y,b as g,s as _}from"./element-interaction.js";import{d as x,K as v}from"./events.js";import{r as w}from"./resolve-props.js";import{r as j}from"./resolve-props2.js";import{T as z}from"./behavior.js";import{K as I}from"./keyboard.js";import{d as T,s as B}from"./element-focus.js";import{o as O}from"./ariaCurrentService.js";const E=s("items",[],(o=>c(o)),(o=>o.every((o=>"object"==typeof o&&null!==o)))),C={required:[d,E],optional:[k]},F=l.forBlock("kol-toolbar")("item"),L=({class:e,currentIndex:t,itemRecords:n,label:i,location:l,orientation:r})=>o(h,{block:"kol-toolbar",class:e,modifiers:{"orientation-horizontal":"horizontal"===r,"orientation-vertical":"vertical"===r},role:"toolbar","aria-label":i},n.map(((e,n)=>((e,t,n,i)=>{const l=t!==n||e.disabled?-1:0;return o("div",{class:F,key:t,ref:e.refWrapper},"link"===e.type?o(f,Object.assign({},e.getFcProps(l,i))):"button"===e.type?o(b,Object.assign({},e.getFcProps(l))):o("hr",null))})(e,n,t,l)))),D=[I.ArrowUp,I.ArrowDown,I.ArrowRight,I.ArrowLeft],G=e(class extends i{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.currentIndex=0,this.itemRecords=[],this.location="",this.propsConfig=C,this._orientation=void 0}watchLabel(o){d.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}watchItems(o){E.apply(o,(o=>{this.setRenderProp("items",o),this.itemRecords.forEach((o=>o.destroy())),this.itemRecords=o.map((o=>((o,e)=>"link"===o.type?((o,e)=>{var t,n,l;const s=new z(i.stateLess),c=y(),d=u();let k;const h=o,b=j(Object.assign(Object.assign({},h),{_inline:null!==(t=h._inline)&&void 0!==t&&t,_variant:null!==(l=null!==(n=h._variant)&&void 0!==n?n:r("buttonVariantDefault",e()))&&void 0!==l?l:"normal"}));s.componentWillLoad({label:b.label.length>0?b.label:b.href,align:b.tooltipAlign});const f=o=>{s.hideTooltip(),b.disabled?o.preventDefault():("function"==typeof b.on.onClick&&(a(o,c.el),b.on.onClick(o,b.href)),k&&x(k,v.click,b.href))};return{type:"link",disabled:b.disabled,getElement:()=>c.el,getFcProps:(e,t)=>Object.assign(Object.assign({},b),{ariaCurrent:""!==t&&t===b.href?b.ariaCurrentValue:"",ariaDescriptionId:d,expertSlot:""===o._label,handleAnchorClick:f,refAnchor:c,refTooltip:s.setTooltipElementRef,tabIndex:"number"==typeof o._tabIndex?b.tabIndex:e}),refWrapper:o=>{k=o},syncListeners:()=>{c.el&&s.syncListeners(void 0,c.el,!0)},destroy:()=>s.destroy()}})(o,e):"button"===o.type?((o,e)=>{const t=new z(i.stateLess),n=y(),l=u();let r;const s=w(o,e()),c=o._value;t.componentWillLoad({label:s.label,align:s.tooltipAlign});const d=(o,e)=>{r&&x(r,o,e)},k=o=>{o.stopPropagation(),t.hideTooltip(),"submit"===s.type?m({form:r}):"reset"===s.type?p({form:r}):"function"==typeof s.on.onClick&&(a(o,n.el),s.on.onClick(o,c)),d(v.click,c)},h=o=>{var e,t;null===(t=(e=s.on).onMouseDown)||void 0===t||t.call(e,o),d(v.mousedown)},b=o=>{var e,t;null===(t=(e=s.on).onFocus)||void 0===t||t.call(e,o),d(v.focus)},f=o=>{var e,t;null===(t=(e=s.on).onBlur)||void 0===t||t.call(e,o),d(v.blur)};return{type:"button",disabled:s.disabled,getElement:()=>n.el,getFcProps:e=>Object.assign(Object.assign({},s),{ariaDescriptionId:l,handleBlur:f,handleClick:k,handleFocus:b,handleMouseDown:h,refButton:n,refTooltip:t.setTooltipElementRef,tabIndex:"number"==typeof o._tabIndex?s.tabIndex:e}),refWrapper:o=>{r=o},syncListeners:()=>{n.el&&t.syncListeners(void 0,n.el,!0)},destroy:()=>t.destroy()}})(o,e):(()=>{const o=y();return{type:"hr",disabled:!0,getElement:()=>o.el,refWrapper:()=>{},syncListeners:()=>{},destroy:()=>{}}})())(o,(()=>this.host)))),this.setFirstEnabledItemIndex()}))}watchOrientation(o){k.apply(o,(o=>this.setRenderProp("orientation",o)))}async focus(o){const e=this.getCurrentItemElement();if(e)return T(this.host,(()=>B(e,o)))}async click(){const o=this.getCurrentItemElement();if(o)return g(this.host,(async()=>_(o)))}componentWillLoad(){this.watchLabel(this._label),this.watchItems(this._items),this.watchOrientation(this._orientation),this.unsubscribeOnLocationChange=O((o=>{this.location=o}))}componentDidRender(){this.itemRecords.forEach((o=>o.syncListeners()))}disconnectedCallback(){this.unsubscribeOnLocationChange&&(this.unsubscribeOnLocationChange(),this.unsubscribeOnLocationChange=void 0),this.itemRecords.forEach((o=>o.destroy()))}handleKeyDown(o){var e;const t=o.code;if(!D.includes(t))return;if(o.preventDefault(),0===this.itemRecords.length)return;const n=this.findNextEnabledItemIndex(this.currentIndex,t===I.ArrowUp||t===I.ArrowLeft?-1:1);void 0!==n&&n!==this.currentIndex&&(this.currentIndex=n,null===(e=this.itemRecords[n].getElement())||void 0===e||e.focus())}handleFocusout(o){o.target===this.host&&this.setFirstEnabledItemIndex()}getCurrentItemElement(){const o=this.itemRecords[this.currentIndex];return o&&!o.disabled?o.getElement():void 0}setFirstEnabledItemIndex(){this.currentIndex=this.itemRecords.findIndex((o=>!o.disabled))}findNextEnabledItemIndex(o,e){const t=this.itemRecords.length;for(let n=1;n<=t;n++){const i=((o+e*n)%t+t)%t;if(!this.itemRecords[i].disabled)return i}}render(){return o(t,{key:"b5a67890c9bbb9272de72ec673a325dba649b259"},o(L,{key:"3460aa6e21700c6b10d77ce725ca6d771b43a808",currentIndex:this.currentIndex,itemRecords:this.itemRecords,label:this.getRenderProp("label"),location:this.location,orientation:this.getRenderProp("orientation")}))}get host(){return this}static get watchers(){return{_label:[{watchLabel:0}],_items:[{watchItems:0}],_orientation:[{watchOrientation: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=1794028903670"); src: url("kolicons.eot?t=1794028903670#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794028903670") format("woff2"), url("kolicons.woff?t=1794028903670") format("woff"), url("kolicons.ttf?t=1794028903670") format("truetype"), url("kolicons.svg?t=1794028903670#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: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-link__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-link__interactive-element::before { content: "​"; } .kol-link__text { flex: 1 0 100%; } .kol-link { } .kol-link__tooltip { height: 0; } .kol-link--external-link > .kolicon-link-external::before { content: none; } .kol-link--external-link .kol-link__interactive-element > .kolicon-link-external::before { content: none; } .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-toolbar { display: flex; flex-wrap: wrap; align-items: stretch; } .kol-toolbar--orientation-horizontal .kol-toolbar__item hr { height: 100%; } .kol-toolbar--orientation-vertical { flex-direction: column; align-items: stretch; } .kol-toolbar--orientation-vertical .kol-span { align-items: flex-start; } .kol-toolbar__item hr { margin: 0; } .kol-toolbar:focus-within { outline: 1px solid; outline-offset: 2px; } }'}}},[545,"kol-toolbar",{_label:[1],_items:[16],_orientation:[1],currentIndex:[32],itemRecords:[32],location:[32],focus:[64],click:[64]},[[0,"keydown","handleKeyDown"],[2,"focusout","handleFocusout"]],{_label:[{watchLabel:0}],_items:[{watchItems:0}],_orientation:[{watchOrientation:0}]}]),K=G,R=function(){"undefined"!=typeof customElements&&["kol-toolbar"].forEach((o=>{"kol-toolbar"===o&&(customElements.get(n(o))||customElements.define(n(o),G))}))};export{K as KolToolbar,R as defineCustomElement}
4
+ import{h as o,proxyCustomElement as e,Host as t,transformTag as n}from"@stencil/core/internal/client";import{B as i}from"./base-web-component.js";import{b as l,X as r,s as a}from"./bem-registry.js";import{c as s,e as c}from"./props-from-config.js";import{l as d}from"./label.js";import{o as k}from"./orientation.js";import{B as h}from"./component.js";import{B as b}from"./component9.js";import{L as f}from"./component6.js";import{p as m,a as p}from"./controller.js";import{n as u}from"./dev.utils.js";import{c as y,b as g,s as _}from"./element-interaction.js";import{d as x,K as v}from"./events.js";import{r as w}from"./resolve-props.js";import{r as j}from"./resolve-props2.js";import{T as z}from"./behavior.js";import{K as I}from"./keyboard.js";import{d as T,s as B}from"./element-focus.js";import{o as O}from"./ariaCurrentService.js";const E=s("items",[],(o=>c(o)),(o=>o.every((o=>"object"==typeof o&&null!==o)))),C={required:[d,E],optional:[k]},F=l.forBlock("kol-toolbar")("item"),L=({class:e,currentIndex:t,itemRecords:n,label:i,location:l,orientation:r})=>o(h,{block:"kol-toolbar",class:e,modifiers:{"orientation-horizontal":"horizontal"===r,"orientation-vertical":"vertical"===r},role:"toolbar","aria-label":i},n.map(((e,n)=>((e,t,n,i)=>{const l=t!==n||e.disabled?-1:0;return o("div",{class:F,key:t,ref:e.refWrapper},"link"===e.type?o(f,Object.assign({},e.getFcProps(l,i))):"button"===e.type?o(b,Object.assign({},e.getFcProps(l))):o("hr",null))})(e,n,t,l)))),D=[I.ArrowUp,I.ArrowDown,I.ArrowRight,I.ArrowLeft],G=e(class extends i{constructor(o){super(!1),!1!==o&&this.__registerHost(),this.__attachShadow(),this.currentIndex=0,this.itemRecords=[],this.location="",this.propsConfig=C,this._orientation=void 0}watchLabel(o){d.apply(o,(o=>this.setRenderProp("label",o)),this.isRequired("label"))}watchItems(o){E.apply(o,(o=>{this.setRenderProp("items",o),this.itemRecords.forEach((o=>o.destroy())),this.itemRecords=o.map((o=>((o,e)=>"link"===o.type?((o,e)=>{var t,n,l;const s=new z(i.stateLess),c=y(),d=u();let k;const h=o,b=j(Object.assign(Object.assign({},h),{_inline:null!==(t=h._inline)&&void 0!==t&&t,_variant:null!==(l=null!==(n=h._variant)&&void 0!==n?n:r("buttonVariantDefault",e()))&&void 0!==l?l:"normal"}));s.componentWillLoad({label:b.label.length>0?b.label:b.href,align:b.tooltipAlign});const f=o=>{s.hideTooltip(),b.disabled?o.preventDefault():("function"==typeof b.on.onClick&&(a(o,c.el),b.on.onClick(o,b.href)),k&&x(k,v.click,b.href))};return{type:"link",disabled:b.disabled,getElement:()=>c.el,getFcProps:(e,t)=>Object.assign(Object.assign({},b),{ariaCurrent:""!==t&&t===b.href?b.ariaCurrentValue:"",ariaDescriptionId:d,expertSlot:""===o._label,handleAnchorClick:f,refAnchor:c,refTooltip:s.setTooltipElementRef,tabIndex:"number"==typeof o._tabIndex?b.tabIndex:e}),refWrapper:o=>{k=o},syncListeners:()=>{c.el&&s.syncListeners(void 0,c.el,!0)},destroy:()=>s.destroy()}})(o,e):"button"===o.type?((o,e)=>{const t=new z(i.stateLess),n=y(),l=u();let r;const s=w(o,e()),c=o._value;t.componentWillLoad({label:s.label,align:s.tooltipAlign});const d=(o,e)=>{r&&x(r,o,e)},k=o=>{o.stopPropagation(),t.hideTooltip(),"submit"===s.type?m({form:r}):"reset"===s.type?p({form:r}):"function"==typeof s.on.onClick&&(a(o,n.el),s.on.onClick(o,c)),d(v.click,c)},h=o=>{var e,t;null===(t=(e=s.on).onMouseDown)||void 0===t||t.call(e,o),d(v.mousedown)},b=o=>{var e,t;null===(t=(e=s.on).onFocus)||void 0===t||t.call(e,o),d(v.focus)},f=o=>{var e,t;null===(t=(e=s.on).onBlur)||void 0===t||t.call(e,o),d(v.blur)};return{type:"button",disabled:s.disabled,getElement:()=>n.el,getFcProps:e=>Object.assign(Object.assign({},s),{ariaDescriptionId:l,handleBlur:f,handleClick:k,handleFocus:b,handleMouseDown:h,refButton:n,refTooltip:t.setTooltipElementRef,tabIndex:"number"==typeof o._tabIndex?s.tabIndex:e}),refWrapper:o=>{r=o},syncListeners:()=>{n.el&&t.syncListeners(void 0,n.el,!0)},destroy:()=>t.destroy()}})(o,e):(()=>{const o=y();return{type:"hr",disabled:!0,getElement:()=>o.el,refWrapper:()=>{},syncListeners:()=>{},destroy:()=>{}}})())(o,(()=>this.host)))),this.setFirstEnabledItemIndex()}))}watchOrientation(o){k.apply(o,(o=>this.setRenderProp("orientation",o)))}async focus(o){const e=this.getCurrentItemElement();if(e)return T(this.host,(()=>B(e,o)))}async click(){const o=this.getCurrentItemElement();if(o)return g(this.host,(async()=>_(o)))}componentWillLoad(){this.watchLabel(this._label),this.watchItems(this._items),this.watchOrientation(this._orientation),this.unsubscribeOnLocationChange=O((o=>{this.location=o}))}componentDidRender(){this.itemRecords.forEach((o=>o.syncListeners()))}disconnectedCallback(){this.unsubscribeOnLocationChange&&(this.unsubscribeOnLocationChange(),this.unsubscribeOnLocationChange=void 0),this.itemRecords.forEach((o=>o.destroy()))}handleKeyDown(o){var e;const t=o.code;if(!D.includes(t))return;if(o.preventDefault(),0===this.itemRecords.length)return;const n=this.findNextEnabledItemIndex(this.currentIndex,t===I.ArrowUp||t===I.ArrowLeft?-1:1);void 0!==n&&n!==this.currentIndex&&(this.currentIndex=n,null===(e=this.itemRecords[n].getElement())||void 0===e||e.focus())}handleFocusout(o){o.target===this.host&&this.setFirstEnabledItemIndex()}getCurrentItemElement(){const o=this.itemRecords[this.currentIndex];return o&&!o.disabled?o.getElement():void 0}setFirstEnabledItemIndex(){this.currentIndex=this.itemRecords.findIndex((o=>!o.disabled))}findNextEnabledItemIndex(o,e){const t=this.itemRecords.length;for(let n=1;n<=t;n++){const i=((o+e*n)%t+t)%t;if(!this.itemRecords[i].disabled)return i}}render(){return o(t,{key:"4c4c890db0d62196978f35293c3c5a04866727bc"},o(L,{key:"cc849b18f9614f0ae878dbaba6ac9aef46f15ce6",currentIndex:this.currentIndex,itemRecords:this.itemRecords,label:this.getRenderProp("label"),location:this.location,orientation:this.getRenderProp("orientation")}))}get host(){return this}static get watchers(){return{_label:[{watchLabel:0}],_items:[{watchItems:0}],_orientation:[{watchOrientation: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=1794493099910"); src: url("kolicons.eot?t=1794493099910#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1794493099910") format("woff2"), url("kolicons.woff?t=1794493099910") format("woff"), url("kolicons.ttf?t=1794493099910") format("truetype"), url("kolicons.svg?t=1794493099910#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: flex; height: 100%; min-height: var(--a11y-min-size); text-decoration-line: none; } .kol-link__interactive-element { display: flex; flex: 1; text-align: left; text-decoration-line: none; } .kol-link__interactive-element::before { content: "​"; } .kol-link__text { flex: 1 0 100%; } .kol-link { } .kol-link__tooltip { height: 0; } .kol-link--external-link > .kolicon-link-external::before { content: none; } .kol-link--external-link .kol-link__interactive-element > .kolicon-link-external::before { content: none; } .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-toolbar { display: flex; flex-wrap: wrap; align-items: stretch; } .kol-toolbar--orientation-horizontal .kol-toolbar__item hr { height: 100%; } .kol-toolbar--orientation-vertical { flex-direction: column; align-items: stretch; } .kol-toolbar--orientation-vertical .kol-span { align-items: flex-start; } .kol-toolbar__item hr { margin: 0; } .kol-toolbar:focus-within { outline: 1px solid; outline-offset: 2px; } }'}}},[545,"kol-toolbar",{_label:[1],_items:[16],_orientation:[1],currentIndex:[32],itemRecords:[32],location:[32],focus:[64],click:[64]},[[0,"keydown","handleKeyDown"],[2,"focusout","handleFocusout"]],{_label:[{watchLabel:0}],_items:[{watchItems:0}],_orientation:[{watchOrientation:0}]}]),K=G,R=function(){"undefined"!=typeof customElements&&["kol-toolbar"].forEach((o=>{"kol-toolbar"===o&&(customElements.get(n(o))||customElements.define(n(o),G))}))};export{K as KolToolbar,R as defineCustomElement}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{proxyCustomElement as i,HTMLElement as t,h as e,Host as l,transformTag as o}from"@stencil/core/internal/client";import{B as a}from"./base-web-component.js";import{T as d}from"./behavior.js";import{T as n}from"./component11.js";const s=i(class extends t{constructor(i){super(),!1!==i&&this.__registerHost(),this.tooltipBehavior=new d(a.stateLess),this._badgeText=void 0,this._align="top",this._id=void 0}validateAlign(i){var t;null===(t=this.tooltipBehavior)||void 0===t||t.watchAlign(i)}validateId(i){var t;null===(t=this.tooltipBehavior)||void 0===t||t.watchId(i)}validateLabel(i){var t;null===(t=this.tooltipBehavior)||void 0===t||t.watchLabel(i)}hideTooltip(){var i;return Promise.resolve(null===(i=this.tooltipBehavior)||void 0===i?void 0:i.hideTooltip())}connectedCallback(){var i,t,e;null===(i=this.tooltipBehavior)||void 0===i||i.initContext(null!==(e=null===(t=this.host)||void 0===t?void 0:t.previousElementSibling)&&void 0!==e?e:void 0)}componentWillLoad(){this.tooltipBehavior.componentWillLoad({label:this._label,align:this._align,badgeText:this._badgeText,id:this._id})}componentDidRender(){var i;this.host&&(null===(i=this.tooltipBehavior)||void 0===i||i.handleEventListeners(this.host))}disconnectedCallback(){var i;null===(i=this.tooltipBehavior)||void 0===i||i.destroy()}render(){return e(l,{key:"6ffda12c3e129ff18b403dffaab9f67d1d313899",class:"kol-tooltip"},e(n,{key:"be042acda49e6b7b42f443d622184c4f544e036e",label:this.tooltipBehavior.getRenderProp("label"),badgeText:this._badgeText,id:this.tooltipBehavior.getRenderProp("id"),refFloating:i=>{var t;return null===(t=this.tooltipBehavior)||void 0===t?void 0:t.setTooltipElementRef(i)}}))}get host(){return this}static get watchers(){return{_align:[{validateAlign:0}],_id:[{validateId:0}],_label:[{validateLabel:0}]}}},[0,"kol-tooltip-wc",{_badgeText:[1,"_badge-text"],_align:[1],_id:[1],_label:[1],hideTooltip:[64]},void 0,{_align:[{validateAlign:0}],_id:[{validateId:0}],_label:[{validateLabel:0}]}]),r=s,v=function(){"undefined"!=typeof customElements&&["kol-tooltip-wc"].forEach((i=>{"kol-tooltip-wc"===i&&(customElements.get(o(i))||customElements.define(o(i),s))}))};export{r as KolTooltipWc,v as defineCustomElement}
4
+ import{proxyCustomElement as i,HTMLElement as t,h as e,Host as l,transformTag as o}from"@stencil/core/internal/client";import{B as a}from"./base-web-component.js";import{T as d}from"./behavior.js";import{T as n}from"./component10.js";const s=i(class extends t{constructor(i){super(),!1!==i&&this.__registerHost(),this.tooltipBehavior=new d(a.stateLess),this._badgeText=void 0,this._align="top",this._id=void 0}validateAlign(i){var t;null===(t=this.tooltipBehavior)||void 0===t||t.watchAlign(i)}validateId(i){var t;null===(t=this.tooltipBehavior)||void 0===t||t.watchId(i)}validateLabel(i){var t;null===(t=this.tooltipBehavior)||void 0===t||t.watchLabel(i)}hideTooltip(){var i;return Promise.resolve(null===(i=this.tooltipBehavior)||void 0===i?void 0:i.hideTooltip())}connectedCallback(){var i,t,e;null===(i=this.tooltipBehavior)||void 0===i||i.initContext(null!==(e=null===(t=this.host)||void 0===t?void 0:t.previousElementSibling)&&void 0!==e?e:void 0)}componentWillLoad(){this.tooltipBehavior.componentWillLoad({label:this._label,align:this._align,badgeText:this._badgeText,id:this._id})}componentDidRender(){var i;this.host&&(null===(i=this.tooltipBehavior)||void 0===i||i.handleEventListeners(this.host))}disconnectedCallback(){var i;null===(i=this.tooltipBehavior)||void 0===i||i.destroy()}render(){return e(l,{key:"d36c595b4ac8424320bc5ecaae1080197521c8b1",class:"kol-tooltip"},e(n,{key:"6ba8643d938bed5ccfadd4579acc6478426f3c5e",label:this.tooltipBehavior.getRenderProp("label"),badgeText:this._badgeText,id:this.tooltipBehavior.getRenderProp("id"),refFloating:i=>{var t;return null===(t=this.tooltipBehavior)||void 0===t?void 0:t.setTooltipElementRef(i)}}))}get host(){return this}static get watchers(){return{_align:[{validateAlign:0}],_id:[{validateId:0}],_label:[{validateLabel:0}]}}},[0,"kol-tooltip-wc",{_badgeText:[1,"_badge-text"],_align:[1],_id:[1],_label:[1],hideTooltip:[64]},void 0,{_align:[{validateAlign:0}],_id:[{validateId:0}],_label:[{validateLabel:0}]}]),r=s,c=function(){"undefined"!=typeof customElements&&["kol-tooltip-wc"].forEach((i=>{"kol-tooltip-wc"===i&&(customElements.get(o(i))||customElements.define(o(i),s))}))};export{r as KolTooltipWc,c as defineCustomElement}