@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,215 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import { __decorate } from "tslib";
5
- import { h, Host } from "@stencil/core";
6
- import { BaseWebComponent } from "../../internal/functional-components/base-web-component";
7
- import { skeletonPropsConfig } from "../../internal/functional-components/skeleton/api";
8
- import { SkeletonFC } from "../../internal/functional-components/skeleton/component";
9
- import { nameProp } from "../../internal/props";
10
- import { Log } from "../../schema";
11
- import { createCtaRef, delegateFocus } from "../../utils/element-interaction";
12
- export class KolSkeleton extends BaseWebComponent {
13
- constructor() {
14
- this.count = 0;
15
- this.label = 'Label';
16
- this.show = true;
17
- this.buttonRef = createCtaRef();
18
- this.propsConfig = skeletonPropsConfig;
19
- this.handleClick = () => {
20
- var _a;
21
- Log.debug('Button clicked, count should be increased');
22
- this.setState('count', ((_a = this.getState('count')) !== null && _a !== void 0 ? _a : 0) + 1);
23
- };
24
- super();
25
- }
26
- watchName(value) {
27
- nameProp.apply(value, (v) => this.setRenderProp('name', v));
28
- }
29
- focus(options) {
30
- void options;
31
- return Promise.resolve();
32
- }
33
- async toggle() {
34
- var _a;
35
- this.setState('show', !((_a = this.getState('show')) !== null && _a !== void 0 ? _a : false));
36
- return Promise.resolve();
37
- }
38
- componentWillLoad() {
39
- nameProp.apply(this._name, (v) => this.setRenderProp('name', v));
40
- this.intervalId = setInterval(() => {
41
- var _a;
42
- this.loaded.emit((_a = this.getState('count')) !== null && _a !== void 0 ? _a : 0);
43
- }, 2000);
44
- }
45
- componentDidLoad() {
46
- requestAnimationFrame(() => {
47
- this.rendered.emit();
48
- });
49
- }
50
- disconnectedCallback() {
51
- if (this.intervalId) {
52
- clearInterval(this.intervalId);
53
- this.intervalId = undefined;
54
- }
55
- }
56
- handleKeyDown(event) {
57
- if (event.key === 'Enter' || event.key === ' ') {
58
- Log.debug('button pressed');
59
- this.handleClick();
60
- }
61
- }
62
- onKeydown(event) {
63
- if (event.key === 'Escape') {
64
- Log.debug('Show should be toggled');
65
- void this.toggle();
66
- }
67
- }
68
- render() {
69
- return (h(Host, { key: '2271ed7e088c9b6a22a993bdc0b1404cd732b7e8' }, h(SkeletonFC, { key: '011fa40defd6913b8156dd4eca6a65cf551d233a', count: this.count, label: this.label, name: this.getRenderProp('name'), handleClick: this.handleClick, onLoaded: this.loaded, onRendered: this.rendered, show: this.show, refButton: this.buttonRef })));
70
- }
71
- static get is() { return "kol-skeleton"; }
72
- static get encapsulation() { return "shadow"; }
73
- static get properties() {
74
- return {
75
- "_name": {
76
- "type": "string",
77
- "mutable": false,
78
- "complexType": {
79
- "original": "NamePropType",
80
- "resolved": "string",
81
- "references": {
82
- "NamePropType": {
83
- "location": "import",
84
- "path": "../../schema",
85
- "id": "src/schema/index.ts::NamePropType",
86
- "referenceLocation": "NamePropType"
87
- }
88
- }
89
- },
90
- "required": true,
91
- "optional": false,
92
- "docs": {
93
- "tags": [],
94
- "text": "Sets the name of the skeleton component."
95
- },
96
- "getter": false,
97
- "setter": false,
98
- "reflect": false,
99
- "attribute": "_name"
100
- }
101
- };
102
- }
103
- static get states() {
104
- return {
105
- "count": {},
106
- "label": {},
107
- "show": {}
108
- };
109
- }
110
- static get events() {
111
- return [{
112
- "method": "loaded",
113
- "name": "loaded",
114
- "bubbles": true,
115
- "cancelable": true,
116
- "composed": true,
117
- "docs": {
118
- "tags": [],
119
- "text": "Emitted when the skeleton has finished loading."
120
- },
121
- "complexType": {
122
- "original": "number",
123
- "resolved": "number",
124
- "references": {}
125
- }
126
- }, {
127
- "method": "rendered",
128
- "name": "rendered",
129
- "bubbles": true,
130
- "cancelable": true,
131
- "composed": true,
132
- "docs": {
133
- "tags": [],
134
- "text": "Emitted when the skeleton has been rendered for the first time."
135
- },
136
- "complexType": {
137
- "original": "void",
138
- "resolved": "void",
139
- "references": {}
140
- }
141
- }];
142
- }
143
- static get methods() {
144
- return {
145
- "focus": {
146
- "complexType": {
147
- "signature": "(options?: KolFocusOptions) => Promise<void>",
148
- "parameters": [{
149
- "name": "options",
150
- "type": "KolFocusOptions | undefined",
151
- "docs": ""
152
- }],
153
- "references": {
154
- "Promise": {
155
- "location": "global",
156
- "id": "global::Promise"
157
- },
158
- "KolFocusOptions": {
159
- "location": "import",
160
- "path": "../../schema",
161
- "id": "src/schema/index.ts::KolFocusOptions",
162
- "referenceLocation": "KolFocusOptions"
163
- }
164
- },
165
- "return": "Promise<void>"
166
- },
167
- "docs": {
168
- "text": "Focuses the interactive element of the component.",
169
- "tags": []
170
- }
171
- },
172
- "toggle": {
173
- "complexType": {
174
- "signature": "() => Promise<void>",
175
- "parameters": [],
176
- "references": {
177
- "Promise": {
178
- "location": "global",
179
- "id": "global::Promise"
180
- }
181
- },
182
- "return": "Promise<void>"
183
- },
184
- "docs": {
185
- "text": "Toggles the visibility of the skeleton component.",
186
- "tags": []
187
- }
188
- }
189
- };
190
- }
191
- static get watchers() {
192
- return [{
193
- "propName": "_name",
194
- "methodName": "watchName"
195
- }];
196
- }
197
- static get listeners() {
198
- return [{
199
- "name": "keydown",
200
- "method": "handleKeyDown",
201
- "target": undefined,
202
- "capture": false,
203
- "passive": false
204
- }, {
205
- "name": "keydown",
206
- "method": "onKeydown",
207
- "target": "window",
208
- "capture": false,
209
- "passive": false
210
- }];
211
- }
212
- }
213
- __decorate([
214
- delegateFocus('buttonRef')
215
- ], KolSkeleton.prototype, "focus", null);
@@ -1,7 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import { labelProp } from "../../props";
5
- export const clickButtonPropsConfig = {
6
- required: [labelProp],
7
- };
@@ -1,9 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import { h } from "@stencil/core";
5
- import { bem } from "../../../schema/bem-registry";
6
- const clickButtonBem = bem.forBlock('kol-click-button');
7
- const BEM_CLASS_CLICK_BUTTON = clickButtonBem();
8
- const BEM_CLASS_CLICK_BUTTON__LABEL = clickButtonBem('label');
9
- export const ClickButtonFC = ({ label, handleClick, refButton }) => (h("button", { class: BEM_CLASS_CLICK_BUTTON, ref: refButton, onClick: handleClick }, h("span", { class: BEM_CLASS_CLICK_BUTTON__LABEL }, label)));
@@ -1,7 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import { nameProp } from "../../props";
5
- export const skeletonPropsConfig = {
6
- required: [nameProp],
7
- };
@@ -1,20 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import { h } from "@stencil/core";
5
- import { bem } from "../../../schema/bem-registry";
6
- import { ClickButtonFC } from "../click-button/component";
7
- const skeletonBem = bem.forBlock('kol-skeleton');
8
- const BEM_CLASS_SKELETON__ACTIONS = skeletonBem('actions');
9
- const BEM_CLASS_SKELETON__CONTAINER = skeletonBem('container');
10
- const BEM_CLASS_SKELETON__COUNTER = skeletonBem('counter');
11
- const BEM_CLASS_SKELETON__NAME = skeletonBem('name');
12
- export const SkeletonFC = (props) => {
13
- const { count, label, name, show, handleClick, refButton } = props;
14
- const hasName = !!(show && (name === null || name === void 0 ? void 0 : name.trim()));
15
- const BEM_CLASS_ROOT = skeletonBem({
16
- 'has-name': hasName,
17
- 'is-hidden': !show,
18
- });
19
- return (h("div", { class: BEM_CLASS_ROOT }, h("div", { class: BEM_CLASS_SKELETON__CONTAINER }, hasName && h("span", { class: BEM_CLASS_SKELETON__NAME }, name), h("div", { class: BEM_CLASS_SKELETON__COUNTER }, "Count: ", count)), h("div", { class: BEM_CLASS_SKELETON__ACTIONS }, h(ClickButtonFC, { label: label, handleClick: handleClick, refButton: refButton }))));
20
- };
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{h as s,Fragment as n}from"@stencil/core/internal/client";import{t as a}from"./i18n.js";import{b as r}from"./bem-registry.js";import{B as o}from"./component.js";import{c as e,n as t,b as l,r as i}from"./props-from-config.js";import{l as c}from"./label.js";const p=e("show",!1,t),m=["dot","cycle","none"],u=e("variant","dot",(s=>{const n=l(s);if(m.includes(n))return n;throw new Error(`Invalid spin variant: ${n}`)}),(()=>!0)),f={optional:[c,p,u]},d=r.forBlock("kol-spin"),b=d("loader"),v=["1","2","3","neutral"],y=r=>{const{show:e,label:t,variant:l}=i(f,r);return s(o,{block:"kol-spin"},e?s(n,null,s("span",{class:d("spinner",{[l]:!0})},function(n){switch(n){case"cycle":return s("span",{class:b});case"none":return s("slot",{name:"expert"});default:return v.map((n=>s("span",{class:d("spinner-element",{[n]:!0})})))}}(l)),s("span",{"aria-busy":"true",class:"visually-hidden",role:"alert"},t||a("kol-action-running"))):s("span",{"aria-busy":"false",class:"visually-hidden",role:"alert"},t||a("kol-action-done")))};export{y as S,p as a,f as s,u as v}
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface KolClickButton extends Components.KolClickButton, HTMLElement {}
4
- export const KolClickButton: {
5
- prototype: KolClickButton;
6
- new (): KolClickButton;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{proxyCustomElement as t,h as e,Host as s,transformTag as o}from"@stencil/core/internal/client";import{_ as l}from"./tslib.es6.js";import{B as i}from"./base-web-component.js";import"./bem-registry.js";import"./props-from-config.js";import{l as n}from"./label.js";import{C as r}from"./component9.js";import{c,d as a}from"./element-interaction.js";const m={required:[n]},b=t(class extends i{constructor(t){super(!1),!1!==t&&this.__registerHost(),this.__attachShadow(),this.buttonRef=c(),this.propsConfig=m,this.handleClick=()=>{console.log(this,"button clicked")}}watchLabel(t){n.apply(t,(t=>this.setRenderProp("label",t)),this.isRequired("label"))}focus(t){return Promise.resolve()}componentWillLoad(){n.apply(this._label,(t=>this.setRenderProp("label",t)),this.isRequired("label"))}render(){return e(s,{key:"68662016b5d2179edaae6a9e66b3e72c5f2fd348"},e(r,{key:"57077649088fd0de8425ab61f4923d317a15a7f5",label:this.getRenderProp("label"),refButton:this.buttonRef,handleClick:this.handleClick}))}static get watchers(){return{_label:[{watchLabel:0}]}}},[513,"kol-click-button",{_label:[1],focus:[64]},void 0,{_label:[{watchLabel:0}]}]);l([a("buttonRef")],b.prototype,"focus",null);const f=b,u=function(){"undefined"!=typeof customElements&&["kol-click-button"].forEach((t=>{"kol-click-button"===t&&(customElements.get(o(t))||customElements.define(o(t),b))}))};export{f as KolClickButton,u as defineCustomElement}
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface KolSkeleton extends Components.KolSkeleton, HTMLElement {}
4
- export const KolSkeleton: {
5
- prototype: KolSkeleton;
6
- new (): KolSkeleton;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{h as e,proxyCustomElement as t,createEvent as s,Host as n,transformTag as o}from"@stencil/core/internal/client";import{_ as i}from"./tslib.es6.js";import{B as a}from"./base-web-component.js";import{b as l,L as r}from"./bem-registry.js";import"./props-from-config.js";import{n as c}from"./name.js";import{C as h}from"./component9.js";import{c as d,d as m}from"./element-interaction.js";const u={required:[c]},f=l.forBlock("kol-skeleton"),b=f("actions"),p=f("container"),k=f("counter"),w=f("name"),v=t=>{const{count:s,label:n,name:o,show:i,handleClick:a,refButton:l}=t,r=!(!i||!(null==o?void 0:o.trim())),c=f({"has-name":r,"is-hidden":!i});return e("div",{class:c},e("div",{class:p},r&&e("span",{class:w},o),e("div",{class:k},"Count: ",s)),e("div",{class:b},e(h,{label:n,handleClick:a,refButton:l})))},y=t(class extends a{constructor(e){super(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.loaded=s(this,"loaded",7),this.rendered=s(this,"rendered",7),this.count=0,this.label="Label",this.show=!0,this.buttonRef=d(),this.propsConfig=u,this.handleClick=()=>{var e;r.debug("Button clicked, count should be increased"),this.setState("count",(null!==(e=this.getState("count"))&&void 0!==e?e:0)+1)}}watchName(e){c.apply(e,(e=>this.setRenderProp("name",e)))}focus(e){return Promise.resolve()}async toggle(){var e;return this.setState("show",!(null!==(e=this.getState("show"))&&void 0!==e&&e)),Promise.resolve()}componentWillLoad(){c.apply(this._name,(e=>this.setRenderProp("name",e))),this.intervalId=setInterval((()=>{var e;this.loaded.emit(null!==(e=this.getState("count"))&&void 0!==e?e:0)}),2e3)}componentDidLoad(){requestAnimationFrame((()=>{this.rendered.emit()}))}disconnectedCallback(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=void 0)}handleKeyDown(e){"Enter"!==e.key&&" "!==e.key||(r.debug("button pressed"),this.handleClick())}onKeydown(e){"Escape"===e.key&&(r.debug("Show should be toggled"),this.toggle())}render(){return e(n,{key:"2271ed7e088c9b6a22a993bdc0b1404cd732b7e8"},e(v,{key:"011fa40defd6913b8156dd4eca6a65cf551d233a",count:this.count,label:this.label,name:this.getRenderProp("name"),handleClick:this.handleClick,onLoaded:this.loaded,onRendered:this.rendered,show:this.show,refButton:this.buttonRef}))}static get watchers(){return{_name:[{watchName:0}]}}},[513,"kol-skeleton",{_name:[1],count:[32],label:[32],show:[32],focus:[64],toggle:[64]},[[0,"keydown","handleKeyDown"],[8,"keydown","onKeydown"]],{_name:[{watchName:0}]}]);i([m("buttonRef")],y.prototype,"focus",null);const g=y,j=function(){"undefined"!=typeof customElements&&["kol-skeleton"].forEach((e=>{"kol-skeleton"===e&&(customElements.get(o(e))||customElements.define(o(e),y))}))};export{g as KolSkeleton,j as defineCustomElement}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{c as o,b as s}from"./props-from-config.js";const r=o("name","",s);export{r as n}
@@ -1,12 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import { h } from './index-D_P2XoAc.js';
5
- import { b as bem } from './bem-registry-CWN7_O1L.js';
6
-
7
- const clickButtonBem = bem.forBlock('kol-click-button');
8
- const BEM_CLASS_CLICK_BUTTON = clickButtonBem();
9
- const BEM_CLASS_CLICK_BUTTON__LABEL = clickButtonBem('label');
10
- const ClickButtonFC = ({ label, handleClick, refButton }) => (h("button", { class: BEM_CLASS_CLICK_BUTTON, ref: refButton, onClick: handleClick }, h("span", { class: BEM_CLASS_CLICK_BUTTON__LABEL }, label)));
11
-
12
- export { ClickButtonFC as C };
@@ -1,53 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import { r as registerInstance, h, H as Host } from './index-D_P2XoAc.js';
5
- import { _ as __decorate } from './tslib.es6-QNbPBOk5.js';
6
- import { B as BaseWebComponent } from './base-web-component-XgI4wUyN.js';
7
- import './common-OzsC_6kt.js';
8
- import './props-from-config-Ci0dILpz.js';
9
- import { l as labelProp } from './label-BRosRgdX.js';
10
- import { C as ClickButtonFC } from './component-Db9HadXA.js';
11
- import { d as delegateFocus, c as createCtaRef } from './element-interaction-sGYdEpmv.js';
12
- import './validators-BVM40IEr.js';
13
- import './label-hints-Jn18RUT-.js';
14
- import './bem-registry-CWN7_O1L.js';
15
- import './element-focus-BIRmGg5W.js';
16
-
17
- const clickButtonPropsConfig = {
18
- required: [labelProp],
19
- };
20
-
21
- const KolClickButton = class extends BaseWebComponent {
22
- constructor(hostRef) {
23
- super();
24
- registerInstance(this, hostRef);
25
- this.buttonRef = createCtaRef();
26
- this.propsConfig = clickButtonPropsConfig;
27
- this.handleClick = () => {
28
- console.log(this, 'button clicked');
29
- };
30
- }
31
- watchLabel(value) {
32
- labelProp.apply(value, (v) => this.setRenderProp('label', v), this.isRequired('label'));
33
- }
34
- focus(options) {
35
- return Promise.resolve();
36
- }
37
- componentWillLoad() {
38
- labelProp.apply(this._label, (v) => this.setRenderProp('label', v), this.isRequired('label'));
39
- }
40
- render() {
41
- return (h(Host, { key: '68662016b5d2179edaae6a9e66b3e72c5f2fd348' }, h(ClickButtonFC, { key: '57077649088fd0de8425ab61f4923d317a15a7f5', label: this.getRenderProp('label'), refButton: this.buttonRef, handleClick: this.handleClick })));
42
- }
43
- static get watchers() { return {
44
- "_label": [{
45
- "watchLabel": 0
46
- }]
47
- }; }
48
- };
49
- __decorate([
50
- delegateFocus('buttonRef')
51
- ], KolClickButton.prototype, "focus", null);
52
-
53
- export { KolClickButton as kol_click_button };
@@ -1,105 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import { h, r as registerInstance, c as createEvent, H as Host } from './index-D_P2XoAc.js';
5
- import { _ as __decorate } from './tslib.es6-QNbPBOk5.js';
6
- import { B as BaseWebComponent } from './base-web-component-XgI4wUyN.js';
7
- import { L as Log } from './common-OzsC_6kt.js';
8
- import './props-from-config-Ci0dILpz.js';
9
- import { n as nameProp } from './name-B2Yf3EpX.js';
10
- import { b as bem } from './bem-registry-CWN7_O1L.js';
11
- import { C as ClickButtonFC } from './component-Db9HadXA.js';
12
- import { d as delegateFocus, c as createCtaRef } from './element-interaction-sGYdEpmv.js';
13
- import './element-focus-BIRmGg5W.js';
14
-
15
- const skeletonPropsConfig = {
16
- required: [nameProp],
17
- };
18
-
19
- const skeletonBem = bem.forBlock('kol-skeleton');
20
- const BEM_CLASS_SKELETON__ACTIONS = skeletonBem('actions');
21
- const BEM_CLASS_SKELETON__CONTAINER = skeletonBem('container');
22
- const BEM_CLASS_SKELETON__COUNTER = skeletonBem('counter');
23
- const BEM_CLASS_SKELETON__NAME = skeletonBem('name');
24
- const SkeletonFC = (props) => {
25
- const { count, label, name, show, handleClick, refButton } = props;
26
- const hasName = !!(show && (name === null || name === void 0 ? void 0 : name.trim()));
27
- const BEM_CLASS_ROOT = skeletonBem({
28
- 'has-name': hasName,
29
- 'is-hidden': !show,
30
- });
31
- return (h("div", { class: BEM_CLASS_ROOT }, h("div", { class: BEM_CLASS_SKELETON__CONTAINER }, hasName && h("span", { class: BEM_CLASS_SKELETON__NAME }, name), h("div", { class: BEM_CLASS_SKELETON__COUNTER }, "Count: ", count)), h("div", { class: BEM_CLASS_SKELETON__ACTIONS }, h(ClickButtonFC, { label: label, handleClick: handleClick, refButton: refButton }))));
32
- };
33
-
34
- const KolSkeleton = class extends BaseWebComponent {
35
- constructor(hostRef) {
36
- super();
37
- registerInstance(this, hostRef);
38
- this.loaded = createEvent(this, "loaded");
39
- this.rendered = createEvent(this, "rendered");
40
- this.count = 0;
41
- this.label = 'Label';
42
- this.show = true;
43
- this.buttonRef = createCtaRef();
44
- this.propsConfig = skeletonPropsConfig;
45
- this.handleClick = () => {
46
- var _a;
47
- Log.debug('Button clicked, count should be increased');
48
- this.setState('count', ((_a = this.getState('count')) !== null && _a !== void 0 ? _a : 0) + 1);
49
- };
50
- }
51
- watchName(value) {
52
- nameProp.apply(value, (v) => this.setRenderProp('name', v));
53
- }
54
- focus(options) {
55
- return Promise.resolve();
56
- }
57
- async toggle() {
58
- var _a;
59
- this.setState('show', !((_a = this.getState('show')) !== null && _a !== void 0 ? _a : false));
60
- return Promise.resolve();
61
- }
62
- componentWillLoad() {
63
- nameProp.apply(this._name, (v) => this.setRenderProp('name', v));
64
- this.intervalId = setInterval(() => {
65
- var _a;
66
- this.loaded.emit((_a = this.getState('count')) !== null && _a !== void 0 ? _a : 0);
67
- }, 2000);
68
- }
69
- componentDidLoad() {
70
- requestAnimationFrame(() => {
71
- this.rendered.emit();
72
- });
73
- }
74
- disconnectedCallback() {
75
- if (this.intervalId) {
76
- clearInterval(this.intervalId);
77
- this.intervalId = undefined;
78
- }
79
- }
80
- handleKeyDown(event) {
81
- if (event.key === 'Enter' || event.key === ' ') {
82
- Log.debug('button pressed');
83
- this.handleClick();
84
- }
85
- }
86
- onKeydown(event) {
87
- if (event.key === 'Escape') {
88
- Log.debug('Show should be toggled');
89
- void this.toggle();
90
- }
91
- }
92
- render() {
93
- return (h(Host, { key: '2271ed7e088c9b6a22a993bdc0b1404cd732b7e8' }, h(SkeletonFC, { key: '011fa40defd6913b8156dd4eca6a65cf551d233a', count: this.count, label: this.label, name: this.getRenderProp('name'), handleClick: this.handleClick, onLoaded: this.loaded, onRendered: this.rendered, show: this.show, refButton: this.buttonRef })));
94
- }
95
- static get watchers() { return {
96
- "_name": [{
97
- "watchName": 0
98
- }]
99
- }; }
100
- };
101
- __decorate([
102
- delegateFocus('buttonRef')
103
- ], KolSkeleton.prototype, "focus", null);
104
-
105
- export { KolSkeleton as kol_skeleton };
@@ -1,8 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import { c as createPropDefinition, b as normalizeString } from './props-from-config-Ci0dILpz.js';
5
-
6
- const nameProp = createPropDefinition('name', '', normalizeString);
7
-
8
- export { nameProp as n };
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{a as e}from"./tslib.es6-QNbPBOk5.js";import{h as s}from"./index-D_P2XoAc.js";import{c as l}from"./clsx-COFh-Vc8.js";const a=1;function o(e){return function(e){return e>=a&&e<=6}(e)?`h${e}`:"strong"}const r=(r,n)=>{var{class:c,level:t=a}=r,i=e(r,["class","level"]);const d=o(t);return s(d,Object.assign({class:l("kol-headline",`kol-headline--${d}`,c)},i),n)},n=(a,o)=>{var{class:r}=a,n=e(a,["class"]);return s("p",Object.assign({class:l("kol-headline kol-headline--group kol-headline--secondary",r)},n),o)},c=(o,c)=>{var{secondaryHeadline:t,level:i=a,class:d,HeadingGroupProps:p={},SecondaryHeadlineProps:u={}}=o,h=e(o,["secondaryHeadline","level","class","HeadingGroupProps","SecondaryHeadlineProps"]);const j=Object.assign({level:i},h);if(!t)return s(r,Object.assign({class:l(d,"kol-headline--single")},j),c);const{class:b}=p,g=e(p,["class"]),k=Object.assign({class:l("kol-heading-group",b)},g);return s("hgroup",Object.assign({},k),s(r,Object.assign({class:l(d,"kol-headline--group","kol-headline--primary")},j),c),s(n,Object.assign({},u),t))};export{c as K,o as g}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{a as e}from"./tslib.es6-QNbPBOk5.js";import{p as i,j as t,D as o}from"./common-OzsC_6kt.js";import{S as s,b as l,s as r}from"./component-C0zMsvYl.js";import{r as a}from"./aria-labelledby-CLehu03h.js";import{c as n,n as d,b as h,a as c,t as p}from"./props-from-config-Ci0dILpz.js";import{a as u,c as m,n as v}from"./dev.utils-CwXr_J8N.js";import{K as b,d as f}from"./events-CRHxtwup.js";import{F as g,a as y}from"./behavior-BMXrK4gj.js";import{d as j}from"./disabled-Cqhc40CU.js";import{j as B,h as _,e as L}from"./component-BvvE8aim.js";import{l as O}from"./label-with-expert-slot-CicRes-W.js";import{n as C}from"./name-B2Yf3EpX.js";import{B as N}from"./base-web-component-XgI4wUyN.js";import{c as x}from"./item-e4SzwxHe.js";import{c as F}from"./item-BMniY_My.js";import{T}from"./behavior-B4IW5_Qt.js";import{h as w}from"./index-D_P2XoAc.js";import{t as K}from"./i18n-DtLKn3Xt.js";import{b as P}from"./bem-registry-CWN7_O1L.js";import{c as k}from"./clsx-COFh-Vc8.js";import{B as A}from"./component-scm3PBuq.js";import{T as D}from"./component-BKfXEtN0.js";import{P as M}from"./component-Drxdk3mb.js";import{A as I}from"./component-BiYFPpjn.js";function H(e,i){return Boolean(e)&&!0===i}function S(e){var i;return"string"==typeof e?"error":null!==(i=null==e?void 0:e._type)&&void 0!==i?i:"error"}const E=n("hideMsg",!1,d),q=n("hint","",h),z=n("infoPopover",void 0,(function(e){if("object"==typeof e&&null!==e)return e;throw new Error("Invalid info popover: "+typeof e)})),X=c(),$=n("msg",void 0,(function(e){if("string"==typeof e)try{return i(e)}catch(i){return e}return e}),(function(e){return void 0===e||("string"==typeof e?e.length>0:t(e)&&o(e._description,1))})),Y=n("touched",!1,d),R=i=>{var{id:t,class:o,hint:s,baseClassName:l="kol-form-field"}=i,r=e(i,["id","class","hint","baseClassName"]);return s?w("span",Object.assign({class:k(`${l}__hint`,o),id:u(t||"","hint")},r),s):null},W=i=>{var{component:t="label",id:o,baseClassName:r="kol-form-field",class:a,accessKey:n,shortKey:d,label:h,hideLabel:c,hasExpertSlot:p,omitId:m,showBadge:v=!0,readOnly:b,infoPopover:f}=i,g=e(i,["component","id","baseClassName","class","accessKey","shortKey","label","hideLabel","hasExpertSlot","omitId","showBadge","readOnly","infoPopover"]);const y=!p&&c,j=!1===v?void 0:l(n,d);return w(t,Object.assign({},g,{class:k(`${r}__label`,a),id:y||m?void 0:u(o,"label"),hidden:y,htmlFor:"legend"===t?void 0:o}),w(s,{class:`${r}__label-text`,label:p?"":null!=h?h:"",badgeText:j},w("slot",{name:"expert"})),!p&&b&&w("span",{class:`${r}__label__read-only`,"aria-hidden":"true"},"(",K("kol-readonly"),")"),!p&&f&&w("span",null,w(M,Object.assign({},f.popoverButton),w("div",{class:"kol-popover-button__popover--styled"},f.content))))},Q=t=>{var o,s,{alert:l,hideMsg:r,msg:a,id:n,class:d}=t,h=e(t,["alert","hideMsg","msg","id","class"]);const c=function(e){if("string"==typeof e)try{return i(e)}catch(i){return{_description:e,_type:"error"}}return e&&"object"==typeof e&&!("_type"in e)?Object.assign(Object.assign({},e),{_type:"error"}):e}(a);return w(I,Object.assign({alert:!r&&(null!==(o=null==c?void 0:c._alert)&&void 0!==o?o:!0===l),class:k("kol-form-field__msg",r&&"visually-hidden",d),closerAriaDescriptionId:v(),handleCloserClick:()=>{},hasCloser:!1,headingId:m("alert-heading"),id:u(n,"msg"),label:"",level:0,refCloserButton:()=>{},refCloserTooltip:()=>{},type:null!==(s=null==c?void 0:c._type)&&void 0!==s?s:"error",variant:"msg"},h),(null==c?void 0:c._description)||void 0)},U=P.forBlock("kol-form-field"),V=({hideLabel:e,label:i,renderNoTooltip:t})=>!t&&!r(i)&&!0===e,J=e=>{const i=S(e);return{[i]:!0,[`msg-type-${i}`]:!0}},G=(i,t)=>{const{renderNoLabel:o,renderNoTooltip:s,renderNoHint:a,id:n,required:d,alert:h,disabled:c,class:p,msg:m,hideMsg:v,hideLabel:b,label:f,infoPopover:g,hint:y,accessKey:j,shortKey:_,counter:L,readOnly:O,touched:C,maxLength:N,ariaDescribedBy:x,showBadge:F,tooltipAlign:T,variant:P,component:M="div",orientation:I,refInput:S,refTooltip:E}=i,q=e(i,["renderNoLabel","renderNoTooltip","renderNoHint","id","required","alert","disabled","class","msg","hideMsg","hideLabel","label","infoPopover","hint","accessKey","shortKey","counter","readOnly","touched","maxLength","ariaDescribedBy","showBadge","tooltipAlign","variant","component","orientation","refInput","refTooltip"]),z=r(f),X=H(m,C),$=l(j,_),Y=V({hideLabel:b,label:f,renderNoTooltip:s}),G="fieldset"===M;return w(A,Object.assign({component:M,block:"kol-form-field",modifiers:Object.assign({disabled:Boolean(c),required:Boolean(d),touched:Boolean(C),"hide-label":Boolean(b),"read-only":Boolean(O),"hidden-msg":Boolean(v)},X?J(m):{}),class:k(P&&B(P,"form-field"),p),disabled:!(!G||!c)||void 0,"aria-describedby":x},q),!o&&w(W,{component:G?"legend":"label",class:G?"kol-form-field__label--legend":void 0,id:n,hasExpertSlot:z,hideLabel:b,label:f,accessKey:j,shortKey:_,readOnly:O,showBadge:F,infoPopover:g}),w("div",{class:U("input",{"orientation-horizontal":"horizontal"===I,"orientation-vertical":"vertical"===I}),ref:S},t,Y&&w("div",{class:U("tooltip")},w(D,{badgeText:$||"",label:f,align:T,id:u(n,"label"),refFloating:E}))),L&&!("soft"===L.maxLengthBehavior&&"number"!=typeof L.maxLength)&&w("div",{class:U("counter")},w("span",{"aria-hidden":"true",class:U("counter"),ref:L.visualRef}),w("span",{"aria-live":"polite",class:"visually-hidden",id:u(n,"counter"),ref:L.ariaRef})),X&&w(Q,{id:n,alert:h,hideMsg:v,msg:m}),!a&&w(R,{id:n,hint:y}),"number"==typeof N&&!L&&w("span",{id:u(n,"character-limit-hint"),class:"visually-hidden"},K("kol-character-limit-hint",{placeholders:{limit:String(N)}})))};class Z extends N{constructor(){super(...arguments),this.tooltipBehavior=new T(N.stateLess),this.smartButton=x((()=>this.host)),this.infoPopover=F({getFlagHost:()=>this.host,getOpen:()=>!0===this.infoPopoverOpen,setOpen:e=>{this.infoPopoverOpen=e}}),this.focusEventSent=!1,this.handleChange=(e,i)=>{var t,o;e.stopPropagation(),void 0===i&&(i=e.target.value),this.emit(b.change,i),null===(o=null===(t=this._on)||void 0===t?void 0:t.onChange)||void 0===o||o.call(t,e,i)},this.handleInput=(e,i)=>{var t,o;e.stopPropagation(),void 0===i&&(i=e.target.value),this.emit(b.input,i),this.formAssociation.setFormAssociatedValue(i),null===(o=null===(t=this._on)||void 0===t?void 0:t.onInput)||void 0===o||o.call(t,e,i)},this.handleClick=e=>{var i,t;this.emit(b.click),null===(t=null===(i=this._on)||void 0===i?void 0:i.onClick)||void 0===t||t.call(i,e)},this.handleFocus=e=>{var i,t;this.focusEventSent||(this.emit(b.focus),null===(t=null===(i=this._on)||void 0===i?void 0:i.onFocus)||void 0===t||t.call(i,e),this.focusEventSent=!0),this.shared.setState("inputHasFocus",!0)},this.handleBlur=e=>{this.handleFocusLeave(e),this.shared.setState("inputHasFocus",!1)},this.handleKeyDown=e=>{var i,t;this.emit(b.keydown),null===(t=null===(i=this._on)||void 0===i?void 0:i.onKeyDown)||void 0===t||t.call(i,e)},this.setInputRef=e=>{this.tooltipAnchor=e,e&&this.isTooltipShown()&&(this.tooltipBehavior.initContext(e),this.tooltipBehavior.syncListeners(void 0,e,!0))},this.setTooltipRef=e=>{this.tooltipBehavior.setTooltipElementRef(e)}}get shared(){return this}initFormAssociation(e,i){this.formAssociation=new g(N.stateLess,{host:this.host,type:e,name:i})}syncFormField(){this.smartButton.syncListeners(),this.infoPopover.syncListeners(),this.syncAriaDetails()}destroyFormField(){this.tooltipBehavior.destroy(),this.smartButton.destroy(),this.infoPopover.destroy()}connectedCallback(){this.syncFormField(),this.tooltipAnchor&&this.isTooltipShown()&&(this.tooltipBehavior.initContext(this.tooltipAnchor),this.tooltipBehavior.syncListeners(void 0,this.tooltipAnchor,!0))}getInfoPopover(){const i=this.shared.getRenderProp("infoPopover");if(!i)return;const{_content:t}=i,o=e(i,["_content"]);return{popoverButton:this.infoPopover.getFcProps(Object.assign(Object.assign({_variant:"ghost"},o),{_hideLabel:!0,_inline:!0})),content:t}}getSmartButtonFcProps(e,i){if("object"==typeof e&&null!==e)return this.smartButton.getFcProps(Object.assign({_hideLabel:!0,_disabled:i},e),{class:"kol-input-container__smart-button"})}applyAriaDetails(e){y.apply(e,(e=>this.shared.setRenderProp("ariaDetails",e))),this.formAssociation.watchAriaDetails(e),this.syncAriaDetails()}syncAriaDetails(){var e,i,t,o;const s=null===(i=null===(e=this.host)||void 0===e?void 0:e.shadowRoot)||void 0===i?void 0:i.querySelector("input, select, textarea");if(!s||!("ariaDetailsElements"in s))return;const l=a(this.host,this.shared.getRenderProp("ariaDetails")),r=this.pushedDetailsElements;(s!==this.ariaDetailsTarget||(null!==(t=null==r?void 0:r.length)&&void 0!==t?t:0)!==l.length||null!==(o=null==r?void 0:r.some(((e,i)=>e!==l[i])))&&void 0!==o&&o)&&(this.ariaDetailsTarget=s,this.pushedDetailsElements=l,s.ariaDetailsElements=l.length?l:null)}applyDisabled(e){j.apply(e,(e=>this.shared.setRenderProp("disabled",e)))}applyHideLabel(e){_.apply(e,(e=>this.shared.setRenderProp("hideLabel",e)))}applyHideMsg(e){E.apply(e,(e=>this.shared.setRenderProp("hideMsg",e)))}applyHint(e){q.apply(e,(e=>this.shared.setRenderProp("hint",e)))}applyInfoPopover(e){z.apply(e,(e=>this.shared.setRenderProp("infoPopover",e)))}applyLabel(e){O.apply(e,(e=>this.shared.setRenderProp("label",e)),this.isRequired("label"))}applyMsg(e){$.apply(e,(e=>this.shared.setRenderProp("msg",e)))}applyName(e){C.apply(e,(e=>this.shared.setRenderProp("name",e))),this.formAssociation.watchName(e)}applyOn(e){X.apply(e,(e=>this.shared.setRenderProp("on",e)))}applySyncValueBySelector(e){this.formAssociation.watchSyncValueBySelector(e)}applyTooltipAlign(e){L.apply(null!=e?e:"top",(e=>this.shared.setRenderProp("tooltipAlign",e)))}applyTouched(e){Y.apply(e,(e=>this.shared.setRenderProp("touched",e)))}get eventHost(){var e,i;return null!==(i=null===(e=this.formAssociation)||void 0===e?void 0:e.host)&&void 0!==i?i:this.host}emit(e,i){this.eventHost&&f(this.eventHost,e,i)}handleFocusLeave(e){var i,t;if(this._disabled)return;const o=this.eventHost,s=(null==o?void 0:o.shadowRoot)||o,l=(null==s?void 0:s.contains(e.relatedTarget))||o===e.relatedTarget;this.focusEventSent&&!l&&(this._touched=!0,this.emit(b.blur),null===(t=null===(i=this._on)||void 0===i?void 0:i.onBlur)||void 0===t||t.call(i,e),this.focusEventSent=!1)}getAria(){const e=this.shared;return(({id:e,msg:i,hint:t,touched:o})=>{const s="string"==typeof i?i:null==i?void 0:i._description,l=Boolean(s&&s.length>0),r="error"===S(i)&&l&&!0===o,a="string"==typeof t&&t.length>0,n=[];return l&&!0===o&&n.push(u(e,"msg")),a&&n.push(u(e,"hint")),{hasError:r,hasHint:a,ariaDescribedBy:n}})({id:e.getState("id"),msg:e.getRenderProp("msg"),hint:e.getRenderProp("hint"),touched:e.getRenderProp("touched")})}showAsAlert(){return Boolean(this.shared.getRenderProp("touched"))&&!this.shared.getState("inputHasFocus")}isTooltipShown(){const e=this.shared;return V({hideLabel:e.getRenderProp("hideLabel"),label:p(e.getRenderProp("label"))})}getLabelTooltipRefs(){return{refInput:this.setInputRef,refTooltip:this.setTooltipRef}}getFormFieldProps({class:e,accessKey:i,shortKey:t,variant:o,counter:s,maxLength:r,readOnly:a,renderNoLabel:n,renderNoTooltip:d,required:h}){const c=this.shared,p=c.getState("id"),m=c.getRenderProp("label"),v=c.getRenderProp("tooltipAlign");return this.isTooltipShown()?(this.tooltipBehavior.watchAlign(v),this.tooltipBehavior.watchBadgeText(l(i,t)||""),this.tooltipBehavior.watchId(u(p,"label")),this.tooltipBehavior.watchLabel(m)):this.tooltipBehavior.destroy(),{id:p,disabled:c.getRenderProp("disabled"),msg:c.getRenderProp("msg"),hint:c.getRenderProp("hint"),label:m,hideLabel:c.getRenderProp("hideLabel"),hideMsg:c.getRenderProp("hideMsg"),touched:c.getRenderProp("touched"),showBadge:Boolean(i)||Boolean(t),required:h,readOnly:a,accessKey:i,shortKey:t,maxLength:r,counter:s,variant:o,class:e,tooltipAlign:v,alert:this.showAsAlert(),infoPopover:this.getInfoPopover(),renderNoLabel:n,renderNoTooltip:d,refInput:d?void 0:this.setInputRef,refTooltip:this.setTooltipRef}}}function ee({ariaDescribedBy:e,hideLabel:i,label:t}){return{title:"",autoCapitalize:"off",autoCorrect:"off","aria-describedby":(null==e?void 0:e.length)?e.join(" "):void 0,"aria-label":i&&t?p(t):void 0}}const ie={required:[O],optional:[y,j,_,E,q,z,X,$,C,L,Y]};export{Z as B,G as F,R as a,W as b,ee as c,ie as f,S as g,H as i}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{L as o,d as t,w as s}from"./common-OzsC_6kt.js";import{a}from"./index-D_P2XoAc.js";const e=(()=>{a((o=>{try{o.shadowRoot instanceof ShadowRoot&&t(o,s(o))}catch(o){}return"default"})),import("./devtools-QEDvmhav.js").then((o=>{"object"==typeof o&&null!==o&&"function"==typeof o.initialize&&o.initialize()})).catch((t=>{o.error(t)}))})||(()=>{});export{e as g}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- import{r as t}from"./aria-labelledby-CLehu03h.js";import{G as e,L as o,p as l}from"./common-OzsC_6kt.js";import{h as i,F as s,f as n}from"./index-D_P2XoAc.js";import{B as a}from"./base-web-component-XgI4wUyN.js";import{c as r}from"./item-e4SzwxHe.js";import{c}from"./item-pool-BOxAYePG.js";import{c as d}from"./item-DRC1CmzC.js";import{c as h,e as b,n as u,a as p,r as v,t as f,v as m}from"./props-from-config-Ci0dILpz.js";import{l as y}from"./label-lang-segment-2_GnxjFp.js";import{v as g,j as k}from"./component-BvvE8aim.js";import{c as j,d as C,e as w}from"./component-names-Dhbtt0mX.js";import{t as _}from"./i18n-DtLKn3Xt.js";import{b as S}from"./bem-registry-CWN7_O1L.js";import{B as x}from"./component-scm3PBuq.js";import{B as O}from"./component-Dt6efHXY.js";import{I as $}from"./component-C5QCCLLa.js";import{L}from"./component-Ua7-J4C-.js";import{r as F}from"./component-C0zMsvYl.js";import{S as D}from"./component-ChtW1HQv.js";import{T as z}from"./component-BKfXEtN0.js";import{a as B}from"./tslib.es6-QNbPBOk5.js";import{n as I,c as A}from"./dev.utils-CwXr_J8N.js";import{d as E,K as T}from"./events-CRHxtwup.js";import{A as M}from"./component-BiYFPpjn.js";import{l as H}from"./level-CA1s1_Mf.js";import{c as N}from"./element-interaction-sGYdEpmv.js";import{u as K,l as P,d as W,D as X}from"./scroll-lock-CKnC0y0o.js";import{h as Y}from"./tooltip-open-tracking-D3tCiiGP.js";import{d as R,w as G}from"./width-CgYY17tL.js";import{r as Q,C as U}from"./component-gj7TBL0i.js";import{T as q}from"./behavior-B4IW5_Qt.js";import{C as J}from"./keyboard-DNd73LVa.js";const V=(l,i,s,n)=>{const a=t=>"string"==typeof t||void 0===t;if(e(l,"_ariaLabelledby",a,new Set(["string"]),n),!a(n))return[];const r=t(i,n);if(s){try{s.ariaLabelledByElements=r}catch(t){}o.debug(["WebComponent internals",s])}return r},Z=t=>"number"==typeof t&&Number.isInteger(t)&&t>=0,tt=h("fixedCols",[0,0],(t=>b(t)),(t=>2===t.length&&t.every(Z))),et=h("hasSettingsMenu",!1,u),ot=p();function lt(t){const e="string"==typeof t?l(t):t;if(Array.isArray(e))return e;throw new Error("Invalid table data: expected an array of row objects.")}function it(t){return t.every((t=>"object"==typeof t&&null!==t))}const st=h("data",[],lt,it),nt=h("dataFoot",[],lt,it),at=t=>Array.isArray(t)&&t.every((t=>Array.isArray(t))),rt=h("headers",{horizontal:[],vertical:[]},(function(t){const e="string"==typeof t?l(t):t;if("object"!=typeof e||null===e)throw new Error("Invalid table headers: expected an object.");const{horizontal:o=[],vertical:i=[]}=e;if(!at(o)||!at(i))throw new Error("Invalid table headers: horizontal and vertical must be arrays of header rows.");return{horizontal:o,vertical:i}}),(function({horizontal:t,vertical:e}){return[...t,...e].every((t=>t.every((t=>void 0===t.width||"number"==typeof t.width))))})),ct=h("loading",!1,u),dt=h("selection",!1,(function(t){const e="string"==typeof t?l(t):t;if("object"==typeof e&&null!==e)return e;throw new Error("Invalid table selection: expected an object.")}),(function(t){return!1===t||"function"==typeof t.label&&(!t.selectedKeys||Array.isArray(t.selectedKeys))})),ht={required:[y,st],optional:[tt,et,ot,nt,rt,ct,dt,g]},bt=t=>t.flatMap((t=>t.filter((t=>"string"==typeof t.key||"function"==typeof t.render)))),ut=t=>{const e=bt(t.horizontal);if(e.length>0)return{cells:e,horizontal:!0};const o=bt(t.vertical);return{cells:o,horizontal:0===o.length}},pt=(t,e)=>{let o=0;return Array.isArray(t)&&t.forEach((t=>{var l;o+=null!==(l=t[e])&&void 0!==l?l:1})),o},vt=(t,e)=>{const o=Math.max(0,...t.map((t=>pt(t,"colSpan"))));return 0===o?e.length:o},ft=t=>{var e;return null!==(e=null==t?void 0:t.reduce(((t,e)=>"visible"in e&&!1===e.visible?t:t+(e.colSpan||1)),0))&&void 0!==e?e:0},mt=(t,e,o,l)=>{if(void 0!==l&&!e)return l<t[0]?"left":t[1]>0&&l>=o-t[1]?"right":void 0},yt=(t,e,o,l)=>{var i,s,n,a,r,c;const d=[];for(let a=0;a<e;a++)"left"===mt(o,l,e,a)&&(d[a]=(null!==(i=d[a-1])&&void 0!==i?i:0)+(null!==(n=null===(s=t[a-1])||void 0===s?void 0:s.width)&&void 0!==n?n:0));for(let i=e-1;i>=0;i--)"right"===mt(o,l,e,i)&&(d[i]=(null!==(a=d[i+1])&&void 0!==a?a:0)+(null!==(c=null===(r=t[i+1])||void 0===r?void 0:r.width)&&void 0!==c?c:0));return d},gt=(t,e,o,l)=>{const i=void 0===e?void 0:t[e];return o&&l?`calc( var(--kol-table-selection-col-width) + ${i}px)`:`${i}px`},kt=(t,e,o,l)=>{if(0===(e.horizontal?t.horizontal:t.vertical).length)return;const i=e.cells[o];return(null==i?void 0:i.type)===l?i:void 0},jt=({data:t,dataFoot:e,headers:o,isFoot:l,noEntriesLabel:i,primaryHeaders:s})=>{const n=vt(o.horizontal,t),a=s.cells;let r=((t,e,o)=>{const l=Math.max(0,...t.map((t=>pt(t,"rowSpan"))));return 0===l?e.length:l-o})(o.vertical,t,e.length),c=0;l&&(c=r,r+=e.length);const d=[],h=[],b=[];o.vertical.forEach(((t,e)=>{h[e]=0,b[e]=[]}));for(let i=c;i<r;i++){const r=[];o.vertical.forEach(((t,e)=>{let o=0;if(b[e].forEach((t=>o+=t)),o<=i){const l=t[i-o+h[e]];if("object"==typeof l){r.push(Object.assign(Object.assign({},l),{headerCell:!0,data:{}}));let t=1;if("number"==typeof l.rowSpan&&l.rowSpan>1&&(t=l.rowSpan),b[e].push(t),"number"==typeof l.colSpan&&l.colSpan>1)for(let o=1;o<l.colSpan;o++)b[e+o].push(t);h[e]++}}}));for(let o=0;o<n;o++)if(s.horizontal){const s=l?e[i-c]:t[i],n=a[o];"object"==typeof n&&null!==n&&"object"==typeof s&&null!==s&&r.push(Object.assign(Object.assign({},n),{colIndex:o,colSpan:void 0,rowSpan:void 0,data:s,label:s[n.key]}))}else{const e=a[i];"object"==typeof e&&null!==e&&"object"==typeof t[o]&&null!==t[o]&&r.push(Object.assign(Object.assign({},e),{colIndex:o,colSpan:void 0,rowSpan:void 0,data:t[o],label:t[o][e.key]}))}d.push(r)}if(0===t.length){let t=ft(o.horizontal[0]),e=0;o.vertical.length>0&&(t-=o.vertical.length,o.vertical[0].forEach((t=>{e+=t.rowSpan||1})));const l={colSpan:t,label:i,render:void 0,rowSpan:Math.max(e,1)};0===d.length?d.push([l]):d[0].push(l)}return d},Ct=({horizontal:t,vertical:e})=>{const o=t.flatMap((t=>t.filter((t=>!1!==t.visible&&void 0!==t.width&&t.width>0)).map((t=>t.width)))),l=[...e.flatMap((t=>t.filter((t=>void 0!==t.width&&t.width>0)).map((t=>t.width)))),...o];return 0===l.length?"0px":1===l.length?`${l[0]}px`:`calc(${l.map((t=>`${t}px`)).join(" + ")})`},wt=t=>void 0===t?[]:Array.isArray(t)?t:[t],_t=t=>{var e;return null!==(e=t?t.keyPropertyName:void 0)&&void 0!==e?e:"id"},St=t=>{const e=t?wt(t.selectedKeys):[];return{disabledKeys:new Set((t?wt(t.disabledKeys):[]).map(String)),keyPropertyName:_t(t),selectedKeys:e,selectedKeysSet:new Set(e.map(String))}},xt=(t,e)=>t.filter((t=>!e.disabledKeys.has(String(t[e.keyPropertyName])))),Ot=S.forBlock("kol-table"),$t=Ot("body"),Lt=Ot("cell-actions"),Ft=Ot("cell-states"),Dt=Ot("footer"),zt=Ot("head"),Bt=Ot("head-row"),It=Ot("scroll-container"),At=Ot("selection-icon"),Et=Ot("selection-input-tooltip"),Tt=Ot("sort"),Mt=Ot("sort-button"),Ht=Ot("sort-order"),Nt=Ot("table"),Kt=`${Ot("focus-element")} ${Ot("caption")}`,Pt="caption",Wt=(t,e)=>mt(t.fixedCols,t.stickyColsDisabled,t.maxCols,e),Xt=(t,e,o)=>({left:"left"===e?gt(t.fixedOffsets,o,!0,!1!==t.selection):void 0,right:"right"===e?gt(t.fixedOffsets,o,!1,!1!==t.selection):void 0}),Yt=(t,e,o)=>{var l,i;return null!==(i=t.primaryHeaders.horizontal&&(null===(l=e[0])||void 0===l?void 0:l.data)?t.rowKeys.get(e[0].data):void 0)&&void 0!==i?i:String(o)},Rt=t=>{const e=_("kol-sort");return"number"==typeof t&&t>0?`${e} – ${_("kol-table-sort-order").replace("{{order}}",`${t}`)}`:e},Gt=(t,e,o,l,s)=>{if(!1===e.visible)return"";const n=!1!==(null==e?void 0:e.sortable)&&"string"==typeof e.sortDirection;let a="none",r="kolicon-sort-neutral";if(n&&e.sortDirection)switch(e.sortDirection){case"ASC":r="kolicon-sort-asc",a="ascending";break;case"DESC":r="kolicon-sort-desc",a="descending";break;default:a="none"}const c=s?"row":"number"==typeof e.colSpan&&e.colSpan>1?"colgroup":"col",d="number"==typeof e.sortOrder&&e.sortOrder>0?e.sortOrder:void 0,h=void 0!==e.width?`${e.width}px`:void 0,b=Wt(t,l),{left:u,right:p}=Xt(t,b,l),v=e.textAlign,f=n?e.sortDirection:void 0;return i("th",{key:`${o}-${l}-${e.label}`,class:Ot("cell",{[a]:!0,"align-center":"center"===v,"align-justify":"justify"===v,"align-left":"left"===v,"align-right":"right"===v,header:!0,"sticky-left":"left"===b,"sticky-right":"right"===b}),scope:c,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{width:h,left:u,right:p},"aria-sort":a,"data-sort":f?`sort-${f}`:void 0},f?i("span",{class:Tt},i(O,Object.assign({},t.getButtonFcProps(`sort-${s?"vertical":"horizontal"}-${o}-${l}`,{_icons:{right:r},_label:e.label,_ariaDescription:Rt(d),_on:{onClick:o=>{t.handleSort(o,{key:e.key,currentSortDirection:f})}}},{class:Mt}))),d&&i("span",{"aria-hidden":"true",class:Ht},d)):e.label)},Qt=(t,e,o,l,s=!1)=>i("tr",{class:Ot("row",{body:!s,footer:s}),key:`row-${Yt(t,e,o)}`},((t,e,o)=>{var l;const{handleSelectionChange:s,selection:n,selectionModel:a}=t;if(!n)return"";const r=null===(l=e[0])||void 0===l?void 0:l.data;if(!r)return"";const c=r[a.keyPropertyName],d=n.multiple||void 0===n.multiple,h=String(c),b=a.selectedKeysSet.has(h),u=a.disabledKeys.has(h),p=n.label(r),v={name:"selection",checked:b,disabled:u,id:String(c),"aria-label":p};return i("td",{key:`tbody-${o}-selection`,class:Ot("cell",{selection:!0})},i("div",{class:Ot("selection",{checked:b})},d?i("label",{class:Ot("selection-label",{disabled:u})},i($,{class:At,icons:"kolicon "+(b?"kolicon-check":""),label:""}),i("input",Object.assign({class:Ot("selection-input",{checkbox:!0})},v,{type:"checkbox",onInput:t=>{const e=b?a.selectedKeys.filter((t=>String(t)!==h)):[...a.selectedKeys,c];s(t,e)}}))):i("label",{class:Ot("selection-label")},i("input",Object.assign({class:Ot("selection-input",{radio:!0})},v,{type:"radio",onInput:t=>{s(t,[c])}}))),i("div",{class:Et},i(z,{label:p,badgeText:"",id:`${c}-label`,refFloating:()=>{}}))))})(t,e,o),e.map(((e,s)=>((t,e,o,l,s)=>{if(!1===e.visible)return"";let n=`${o}-${l}-${e.label}`;if(e.data){const i=t.rowKeys.get(e.data);n=i?`${i}-${t.primaryHeaders.horizontal?l:o}`:n}if(e.headerCell)return Gt(t,e,o,l,s);const a="function"!=typeof e.render&&e.label===t.translateNoEntries,r=kt(t.headers,t.primaryHeaders,l,"action"),c=Boolean(r&&e.data),d=kt(t.headers,t.primaryHeaders,l,"state"),h=Boolean(d&&e.data),b=Wt(t,l),{left:u,right:p}=Xt(t,b,e.colIndex),v="function"==typeof e.render,f=e.textAlign;return i("td",{key:`cell-${n}-${t.settingsChangedCounter}`,class:Ot("cell",{actions:c,"align-center":"center"===f,"align-justify":"justify"===f,"align-left":"left"===f,"align-right":"right"===f,body:!0,states:h,"sticky-left":"left"===b,"sticky-right":"right"===b}),"aria-atomic":a?"false":void 0,"aria-live":a?"polite":void 0,"aria-relevant":a?"text":void 0,colSpan:e.colSpan,rowSpan:e.rowSpan,style:{textAlign:f,left:u,right:p},ref:v?o=>t.handleRenderCell(e,o):void 0},c&&r&&e.data?((t,e,o,l)=>i("div",{class:Lt},e.actions(o).map(((e,o)=>{const s=`action-${l}-${o}`;return"button"===e.type?i("span",{key:s},i(O,Object.assign({},t.getButtonFcProps(s,e)))):"link"===e.type?i("span",{key:s},i(L,Object.assign({},t.getLinkFcProps(s,e)))):null}))))(t,r,e.data,n):h&&d&&e.data?((t,e,o)=>{const l=t.key;if(!l)return"";const s=e[l];return s?i("div",{class:Ft},s.map(((t,e)=>"badge"===t.type?i(j,Object.assign({key:`state-${o}-${e}`},t)):null))):""})(d,e.data,n):v?"":e.label)})(t,e,o,s,l)))),Ut=(t,e,o)=>{const l=t.headers.vertical.length+ft(null==o?void 0:o[0])+(t.selection?1:0);return i("tr",{"aria-hidden":"true",class:Ot("spacer",{[e]:!0})},i("td",{class:Ot("spacer-line",{[e]:!0}),colSpan:l}))},qt=t=>{const e=v(ht,t),{data:o,dataFoot:l,externalLabelElements:n,fixedCols:a,hasScrollbar:r,hasSettingsMenu:c,headers:d,label:h,loading:b,refScrollContainer:u,refTable:p,selection:m,stickyColsDisabled:y,variant:g}=e,j=_("kol-no-entries"),C=ut(d),w=vt(d.horizontal,o),S=Object.assign(Object.assign({},e),{fixedOffsets:yt(C.cells,w,a,y),maxCols:w,primaryHeaders:C,selectionModel:St(m),translateNoEntries:j}),O=jt({data:o,dataFoot:l,headers:d,isFoot:!1,noEntriesLabel:j,primaryHeaders:C}),L=0===n.length;return i(x,{block:"kol-table",class:k(g,"table")},c&&t.renderSettings(d.horizontal),i("div",{ref:u,class:It,tabindex:r?L?"-1":"0":void 0},i("table",{ref:p,"aria-labelledby":L?Pt:void 0,class:Nt,style:{minWidth:Ct(d)}},L&&i("caption",{class:Kt,id:Pt,ref:t=>{t&&(r?t.tabIndex=0:t.removeAttribute("tabindex"))}},F(h)),i("thead",{class:zt},[d.horizontal.map(((t,e)=>i("tr",{class:Bt,key:`thead-${e}`},m&&(t=>{const{data:e,handleSelectionChange:o,selection:l,selectionModel:s}=t;if(!l)return i("td",{class:Ot("cell",{header:!0}),key:"thead-0"});if(!1===l.multiple)return i("th",{scope:"col",key:"thead-0-selection",class:Ot("cell",{header:!0,selection:!0})},i("span",{class:"visually-hidden"},_("kol-table-selection")));const n=s.selectedKeys.filter((t=>!s.disabledKeys.has(String(t)))).length,a=n===xt(e,s).length,r=0!==n&&!a;let c;return c=_(0===n?"kol-table-selection-all":a&&!r?"kol-table-selection-none":"kol-table-selection-indeterminate"),i("th",{scope:"col",key:"thead-0-selection",class:Ot("cell",{header:!0,selection:!0})},i("span",{class:"visually-hidden"},_("kol-table-selection")),i("div",{class:Ot("selection",{checked:a,indeterminate:r})},i("label",{class:Ot("selection-label")},i($,{class:At,icons:"kolicon "+(r?"kolicon-minus":a?"kolicon-check":""),label:""}),i("input",{class:Ot("selection-input",{checkbox:!0}),name:"selection",checked:a&&!r,indeterminate:r,"aria-label":c,type:"checkbox",onInput:t=>{o(t,((t,e,o)=>{const l=e.selectedKeys.filter((t=>e.disabledKeys.has(String(t))));return o&&l.push(...xt(t,e).map((t=>null==t?void 0:t[e.keyPropertyName]))),l})(e,s,!a))}})),i("div",{class:Et},i(z,{label:c,badgeText:"",refFloating:()=>{}}))))})(S),0===e&&(({headers:t})=>{const{horizontal:e,vertical:o}=t;if(0===e.length||0===o.length)return i(s,null);const l=o.reduce(((t,e)=>{var o,l;return t+(null!==(l=null===(o=null==e?void 0:e[0])||void 0===o?void 0:o.width)&&void 0!==l?l:0)}),0);return i("td",{"aria-hidden":"true",colSpan:o.length,rowSpan:e.length,style:l>0?{width:`${l}px`}:void 0})})(S),Array.isArray(t)&&t.map(((t,o)=>Gt(S,t,e,o,!1)))))),Ut(S,"head",d.horizontal)]),i("tbody",{class:$t},i("div",{class:Ot("loader",{shown:b})},i(D,{label:_(b?"kol-table-data-loading":"kol-table-data-loaded").replace("{{caption}}",f(h)),show:b,variant:"cycle"})),O.map(((t,e)=>Qt(S,t,e,!0)))),(t=>{const{dataFoot:e,headers:o,primaryHeaders:l,translateNoEntries:s}=t;if(0===e.length)return null;const n=jt({data:e,dataFoot:e,headers:o,isFoot:!0,noEntriesLabel:s,primaryHeaders:l}),a=vt(o.horizontal,e),r=Object.assign(Object.assign({},t),{fixedOffsets:yt(l.cells,a,t.fixedCols,t.stickyColsDisabled),maxCols:a});return i("tfoot",{class:Dt},[Ut(t,"foot",n),n.map(((t,e)=>Qt(r,t,e,!0,!0)))])})(S))))},Jt=({dialog:t,card:e},o)=>i(X,Object.assign({},t),e?i(U,Object.assign({},e),o):o),Vt=S.forBlock("kol-table")("settings"),Zt=t=>Number.isFinite(t)&&void 0!==t&&t>0?t:void 0,te=()=>{},ee=(t,e)=>{const o=_("kol-table-settings"),l=_("kol-table-settings-cancel"),s=_("kol-table-settings-apply"),n=_("kol-table-settings-error-all-invisible");let d,h=!1,b=!1;const u=()=>{h=!0,e()},p=c((()=>r(t)),(t=>t.syncListeners()),(t=>t.destroy())),v=((t,e)=>{const o=N(),l=N(),i=new q(a.stateLess),s=I(),n=A("dialog-heading"),r={};let c,h=!0,b={};const u=t=>!d||E(d,t),p=()=>{var t,e;null===(e=null===(t=o.el)||void 0===t?void 0:t.close)||void 0===e||e.call(t)},v=t=>{var e;Y(t),t.defaultPrevented||(null===(e=b.onCancel)||void 0===e||e.call(b,t),t.defaultPrevented||u(T.cancel)||t.preventDefault())},g=t=>{var e;t.target===o.el&&(K(r),null===(e=b.onClose)||void 0===e||e.call(b),u(T.close))},k=()=>{i.hideTooltip(),p(),u(T.close)};return{getFcProps:e=>{var a,r,d;let u="",p=0,j="blank",C="100%";y.apply(e.label,(t=>{u=t})),H.apply(null!==(a=e.level)&&void 0!==a?a:0,(t=>{p=t})),R.apply(e.on,(t=>{b=t})),m.apply(null!==(r=e.variant)&&void 0!==r?r:"blank",(t=>{j=t})),G.apply(null!==(d=e.width)&&void 0!==d?d:"100%",(t=>{C=t}));const w="card"===j;return w&&!c&&(c=Q(t()),i.componentWillLoad({label:c.label,align:c.tooltipAlign})),{dialog:{blockClass:W(j),handleCancel:v,handleClose:g,label:f(u),labelledBy:w?n:void 0,modal:h,refDialog:o,width:C},card:w&&c?{ariaDescriptionId:s,closeButtonProps:c,handleClose:k,hasCloser:!0,headingId:n,label:u,level:p,refCloseButton:l,refTooltip:i.setTooltipElementRef}:void 0}},show:t=>{var l,i;const s=o.el;(null==s?void 0:s.open)||(h!==t&&(h=t,e()),t?(null===(l=null==s?void 0:s.showModal)||void 0===l||l.call(s),s&&P(r)):null===(i=null==s?void 0:s.show)||void 0===i||i.call(s))},close:p,syncListeners:()=>{l.el&&i.syncListeners(void 0,l.el,!0)},destroy:()=>{p(),K(r),i.destroy()}}})(t,u),g=A("alert-heading"),k=I();let j,S=[],x=[],$=null;const L=()=>{var t;return null!==(t=x[x.length-1])&&void 0!==t?t:[]},F=t=>{x=x.map(((e,o,l)=>o===l.length-1?t:e)),u()},D=(t,e)=>{const o=[...L()],l=o.findIndex((e=>e.key===t));if(-1===l)return;let i;if("up"===e){if(0===l)return;i=l-1}else{if(l===o.length-1)return;i=l+1}const[s]=o.splice(l,1);o.splice(i,0,s),F(o)},z=t=>{if(t.preventDefault(),!L().some((t=>!1!==t.visible)))return $=n,void u();if(d){$=null,S=x.map((t=>t.map((t=>Object.assign({},t))))),u();const t=x.map((t=>t.map((t=>{const e=t,{hidable:o,resizable:l,sortable:i,visible:s,width:n}=e,a=B(e,["hidable","resizable","sortable","visible","width"]),r=Object.assign({},a);return void 0!==s&&(r.visible=s),void 0!==o&&(r.hidable=o),void 0!==i&&(r.sortable=i),void 0!==l&&(r.resizable=l),null!=n&&(r.width=n),r}))));E(d,T.changeHeaderCells,t),v.close()}},X=t=>{t&&(d=t)};return{beginRender:()=>{p.beginRender(),b=h,h=!1},render:t=>{var e;b||t===j||(j=t,S=(e=t).map((t=>[...t])),x=e.map((t=>t.map((t=>Object.assign({},t))))));const n=L();return i("div",{class:Vt,ref:X},i("div",{class:"kol-table-settings"},i(O,Object.assign({},p.get("toggle").getFcProps({_icons:"kolicon-settings",_label:o,_hideLabel:!0,_on:{onClick:()=>v.show(!0)}})))),i(Jt,Object.assign({},v.getFcProps({label:o,variant:"card",width:"fit-content"})),i("div",{class:"kol-table-settings__content"},$&&i("div",{class:"kol-table-settings__error-message"},i(M,{alert:!1,closerAriaDescriptionId:k,handleCloserClick:te,hasCloser:!1,headingId:g,label:$,level:0,refCloserButton:te,refCloserTooltip:te,type:"error",variant:"msg"})),i("form",{onSubmit:z},i("div",{class:"kol-table-settings__columns"},n.map(((t,e)=>((t,e,o)=>i("div",{key:t.key,class:"kol-table-settings__column"},i(w,{_checked:!1!==t.visible,_label:_(t.hidable?"kol-table-settings-column-hidable":"kol-table-settings-column-not-hidable",{placeholders:{column:t.label}}),_value:!0,_hideLabel:!0,_disabled:!1===t.hidable,_on:{onInput:(e,o)=>{var l;return((t,e)=>{const o=L().map((o=>o.key===t&&!1!==o.hidable?Object.assign(Object.assign({},o),{visible:Boolean(e)}):o));F(o)})(null!==(l=t.key)&&void 0!==l?l:"",o)}}}),i("span",{class:"kol-table-settings__column-label"},t.label),i(C,{_hideLabel:!0,_value:Zt(t.width),_label:_("kol-table-settings-column-width",{placeholders:{column:t.label}}),_min:1,_disabled:!1===t.resizable,_on:{onInput:(e,o)=>{var l;return((t,e)=>{const o=Zt(Number(e)),l=L().map((e=>e.key===t&&!1!==e.resizable?Object.assign(Object.assign({},e),{width:o}):e));F(l)})(null!==(l=t.key)&&void 0!==l?l:"",o)}}}),i(O,Object.assign({},p.get(`move-up-${t.key}`).getFcProps({_icons:"kolicon-chevron-up",_label:_(!1===t.sortable||0===e?"kol-table-settings-not-move":"kol-table-settings-move-up",{placeholders:{column:t.label}}),_hideLabel:!0,_variant:"ghost",_on:{onClick:()=>{var e;return D(null!==(e=t.key)&&void 0!==e?e:"","up")}},_disabled:!1===t.sortable||0===e}))),i(O,Object.assign({},p.get(`move-down-${t.key}`).getFcProps({_icons:"kolicon-chevron-down",_label:_(!1===t.sortable||e===o.length-1?"kol-table-settings-not-move":"kol-table-settings-move-down",{placeholders:{column:t.label}}),_hideLabel:!0,_variant:"ghost",_on:{onClick:()=>{var e;return D(null!==(e=t.key)&&void 0!==e?e:"","down")}},_disabled:!1===t.sortable||e===o.length-1})))))(t,e,n)))),i("div",{class:"kol-table-settings__actions"},i(O,Object.assign({},p.get("cancel").getFcProps({_label:l,_variant:"secondary",_on:{onClick:()=>(x=S.map((t=>[...t])),$=null,u(),void v.close())}}))),i(O,Object.assign({},p.get("apply").getFcProps({_label:s,_variant:"primary",_type:"submit"}))))))))},sync:()=>{p.endRender(),v.syncListeners()},destroy:()=>{p.destroy(),v.destroy()}}};class oe extends a{constructor(){super(...arguments),this.hasExternalTableLabelRefs=!1,this.cellRenderTimeouts=new Map,this.buttonItems=c((()=>r((()=>this.host))),(t=>t.syncListeners()),(t=>t.destroy())),this.settings=ee((()=>this.host),(()=>n(this))),this.linkItems=c((()=>d((()=>n(this)))),(t=>t.syncListeners()),(t=>t.destroy())),this.propsConfig=ht,this.handleResize=()=>{this.updateScrollbarState(),clearTimeout(this.resizeDebounceTimeout),this.resizeDebounceTimeout=setTimeout((()=>{this.updateStickyColsDisabled()}),150)},this.handleSelectionChange=(t,e)=>{this.emitSelectionChange(t,e)},this.handleSort=(t,e)=>{this.emitSort(t,e)},this.handleRenderCell=(t,e)=>{e&&(clearTimeout(this.cellRenderTimeouts.get(e)),this.cellRenderTimeouts.set(e,setTimeout((()=>{if("function"==typeof t.render){const o=t.render(e,t,t.data,this.getRenderProp("data"));"string"==typeof o&&(e.textContent=o)}}))))},this.refScrollContainer=t=>{this.scrollContainerElement=t},this.refTable=t=>{this.tableElement=t,this.syncTableLabel(this.getState("externalLabelElements"))},this.getButtonFcProps=(t,e,o)=>this.buttonItems.get(t).getFcProps(e,o),this.renderSettings=t=>this.settings.render(t),this.getLinkFcProps=(t,e)=>this.linkItems.get(t).getFcProps(e)}observeScrollContainer(){this.scrollContainerElement&&ResizeObserver&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.scrollContainerElement)),this.updateStickyColsDisabled()}teardownTable(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect(),clearTimeout(this.resizeDebounceTimeout),this.buttonItems.destroy(),this.linkItems.destroy(),this.settings.destroy()}syncTableItems(){this.buttonItems.endRender(),this.linkItems.endRender(),this.settings.sync()}applyData(t){st.apply(t,(t=>{this.setRenderProp("data",t),this.setState("rowKeys",((t,e)=>new Map(t.map((t=>{var o;return[t,null!==(o=e.get(t))&&void 0!==o?o:I()]}))))(t,this.getState("rowKeys")))}))}applyDataFoot(t){nt.apply(t,(t=>this.setRenderProp("dataFoot",t)))}applyFixedCols(t){tt.apply(t,(t=>this.setRenderProp("fixedCols",t))),this.updateStickyColsDisabled()}applyHasSettingsMenu(t){et.apply(t,(t=>this.setRenderProp("hasSettingsMenu",t)))}applyHeaders(t){rt.apply(t,(t=>this.setRenderProp("headers",(t=>0===t.horizontal.length?t:Object.assign(Object.assign({},t),{horizontal:t.horizontal.map((t=>t.map((t=>Object.assign(Object.assign({},t),{visible:"boolean"!=typeof t.visible||t.visible,hidable:"boolean"!=typeof t.hidable||t.hidable})))))}))(t))))}applyLabel(t){y.apply(t,(t=>this.setRenderProp("label",t)),this.isRequired("label"))}applyLoading(t){ct.apply(t,(t=>this.setRenderProp("loading",t)))}applyOn(t){ot.apply(t,(t=>this.setRenderProp("on",t)))}applySelection(t){dt.apply(t,(t=>this.setRenderProp("selection",t))),this.updateStickyColsDisabled()}applyVariant(t){g.apply(t,(t=>this.setRenderProp("variant",t)))}syncTableLabel(t){this.tableElement&&"ariaLabelledByElements"in this.tableElement&&((null==t?void 0:t.length)?(this.tableElement.ariaLabelledByElements=t,this.hasExternalTableLabelRefs=!0,o.debug([this.tableElement,t,this.tableElement.ariaLabelledByElements])):this.hasExternalTableLabelRefs&&(this.hasExternalTableLabelRefs=!1,this.tableElement.ariaLabelledByElements=null,this.tableElement.setAttribute("aria-labelledby",Pt)))}moveCheckboxFocus(t){var e,o,l;if("ArrowUp"!==t.key&&"ArrowDown"!==t.key)return;const i=Array.from(null!==(o=null===(e=this.scrollContainerElement)||void 0===e?void 0:e.querySelectorAll(".kol-table__selection-input--checkbox"))&&void 0!==o?o:[]),s=null===(l=this.scrollContainerElement)||void 0===l?void 0:l.querySelector(":focus");let n=i.indexOf(s);n>-1&&(t.preventDefault(),n=(n+("ArrowDown"===t.key?1:i.length-1))%i.length,i[n].focus())}applyChangedHeaderCells(t){const e=Object.assign(Object.assign({},this.getRenderProp("headers")),{horizontal:t.detail});this.setRenderProp("headers",e),this.setState("settingsChangedCounter",this.getState("settingsChangedCounter")+1);const o=this.getRenderProp("on")[J.onChangeHeaderCells];"function"==typeof o&&o(t,e)}updateScrollbarState(){if(this.scrollContainerElement){const{clientHeight:t,clientWidth:e,scrollHeight:o,scrollWidth:l}=this.scrollContainerElement;this.setState("hasScrollbar",l>e||o>t&&["auto","scroll"].includes(getComputedStyle(this.scrollContainerElement).overflowY))}}calculateFixedColsWidth(){var t,e,o,l,i,s;const[n,a]=this.getRenderProp("fixedCols"),r=this.getRenderProp("headers"),c=ut(r).cells,d=vt(r.horizontal,this.getRenderProp("data"));let h=0;for(let o=0;o<n&&o<c.length;o++)h+=null!==(e=null===(t=c[o])||void 0===t?void 0:t.width)&&void 0!==e?e:0;for(let t=d-a;t<d&&t<c.length;t++)h+=null!==(l=null===(o=c[t])||void 0===o?void 0:o.width)&&void 0!==l?l:0;if(this.getRenderProp("selection")){const t=null===(i=this.scrollContainerElement)||void 0===i?void 0:i.querySelector(".kol-table__cell--selection");h+=null!==(s=null==t?void 0:t.offsetWidth)&&void 0!==s?s:0}return h}updateStickyColsDisabled(){if(!this.scrollContainerElement)return void this.setState("stickyColsDisabled",!1);const t=this.calculateFixedColsWidth();this.setState("stickyColsDisabled",t>0&&t>=this.scrollContainerElement.clientWidth)}emitSelectionChange(t,e){const o=this.getRenderProp("on")[J.onSelectionChange];"function"==typeof o&&o(t,e),this.host&&E(this.host,T.selectionChange,e)}emitSort(t,e){const o=this.getRenderProp("on")[J.onSort];"function"==typeof o&&e.key&&o(t,e),this.host&&E(this.host,T.sort,e)}renderTableStatelessFC(){return this.buttonItems.beginRender(),this.linkItems.beginRender(),this.settings.beginRender(),i(qt,{data:this.getRenderProp("data"),dataFoot:this.getRenderProp("dataFoot"),externalLabelElements:this.getState("externalLabelElements"),fixedCols:this.getRenderProp("fixedCols"),getButtonFcProps:this.getButtonFcProps,getLinkFcProps:this.getLinkFcProps,renderSettings:this.renderSettings,handleRenderCell:this.handleRenderCell,handleSelectionChange:this.handleSelectionChange,handleSort:this.handleSort,hasScrollbar:this.getState("hasScrollbar"),hasSettingsMenu:this.getRenderProp("hasSettingsMenu"),headers:this.getRenderProp("headers"),label:this.getRenderProp("label"),loading:this.getRenderProp("loading"),on:this.getRenderProp("on"),refScrollContainer:this.refScrollContainer,refTable:this.refTable,rowKeys:this.getState("rowKeys"),selection:this.getRenderProp("selection"),settingsChangedCounter:this.getState("settingsChangedCounter"),stickyColsDisabled:this.getState("stickyColsDisabled"),variant:this.getRenderProp("variant")})}}export{oe as B,nt as a,st as t,V as v}