@public-ui/components 2.2.15-rc.0 → 2.2.15-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 (888) hide show
  1. package/custom-elements.json +15 -15
  2. package/dist/cjs/{Alert-3a359428.js → Alert-1315f082.js} +1 -1
  3. package/dist/cjs/{Alert-3a359428.js.map → Alert-1315f082.js.map} +1 -1
  4. package/dist/cjs/{Collapsible-98f58705.js → Collapsible-f02af310.js} +1 -1
  5. package/dist/cjs/{Collapsible-98f58705.js.map → Collapsible-f02af310.js.map} +1 -1
  6. package/dist/cjs/FormFieldMsg-4deaead3.js +4 -0
  7. package/dist/cjs/{FormFieldMsg-b2f580b4.js.map → FormFieldMsg-4deaead3.js.map} +1 -1
  8. package/dist/cjs/{InternalUnderlinedBadgeText-e27319f9.js → InternalUnderlinedBadgeText-2077b207.js} +1 -1
  9. package/dist/cjs/{InternalUnderlinedBadgeText-e27319f9.js.map → InternalUnderlinedBadgeText-2077b207.js.map} +1 -1
  10. package/dist/cjs/{access-and-short-key-5bfd764e.js → access-and-short-key-18fca6a6.js} +1 -1
  11. package/dist/cjs/{access-and-short-key-5bfd764e.js.map → access-and-short-key-18fca6a6.js.map} +1 -1
  12. package/dist/cjs/align-5570f44b.js +4 -0
  13. package/dist/cjs/{align-033dd3ec.js.map → align-5570f44b.js.map} +1 -1
  14. package/dist/cjs/align-floating-elements-3592f6e5.js +4 -0
  15. package/dist/cjs/align-floating-elements-3592f6e5.js.map +1 -0
  16. package/dist/cjs/app-globals-be674536.js +4 -0
  17. package/dist/cjs/{app-globals-7bef0af1.js.map → app-globals-be674536.js.map} +1 -1
  18. package/dist/cjs/ariaCurrentService-53afa476.js +1 -1
  19. package/dist/cjs/associated.controller-7bf7ebae.js +4 -0
  20. package/dist/cjs/{associated.controller-52a935b6.js.map → associated.controller-7bf7ebae.js.map} +1 -1
  21. package/dist/cjs/{badge-text-8dec676c.js → badge-text-d8267257.js} +1 -1
  22. package/dist/cjs/{badge-text-8dec676c.js.map → badge-text-d8267257.js.map} +1 -1
  23. package/dist/cjs/button-variant-6f472994.js +4 -0
  24. package/dist/cjs/button-variant-6f472994.js.map +1 -0
  25. package/dist/cjs/color-33704603.js +4 -0
  26. package/dist/cjs/{color-162ea61e.js.map → color-33704603.js.map} +1 -1
  27. package/dist/cjs/controller-66c9b9d7.js +4 -0
  28. package/dist/cjs/{controller-5bb59938.js.map → controller-66c9b9d7.js.map} +1 -1
  29. package/dist/cjs/{controller-5f8b2d27.js → controller-70c9d7c2.js} +1 -1
  30. package/dist/cjs/{controller-5f8b2d27.js.map → controller-70c9d7c2.js.map} +1 -1
  31. package/dist/cjs/controller-a6b357c8.js +4 -0
  32. package/dist/cjs/{controller-87180834.js.map → controller-a6b357c8.js.map} +1 -1
  33. package/dist/cjs/controller-f76e8bae.js +4 -0
  34. package/dist/cjs/{controller-e781902d.js.map → controller-f76e8bae.js.map} +1 -1
  35. package/dist/cjs/controller-fd34b4a7.js +4 -0
  36. package/dist/cjs/{controller-b58f6250.js.map → controller-fd34b4a7.js.map} +1 -1
  37. package/dist/cjs/{controller-icon-bc9c25ac.js → controller-icon-4142a807.js} +1 -1
  38. package/dist/cjs/{controller-icon-bc9c25ac.js.map → controller-icon-4142a807.js.map} +1 -1
  39. package/dist/cjs/{custom-class-0e90f691.js → custom-class-7d2088ba.js} +1 -1
  40. package/dist/cjs/{custom-class-0e90f691.js.map → custom-class-7d2088ba.js.map} +1 -1
  41. package/dist/cjs/{debounce-7857c4b4.js → debounce-2d8b0d58.js} +1 -1
  42. package/dist/cjs/{debounce-7857c4b4.js.map → debounce-2d8b0d58.js.map} +1 -1
  43. package/dist/cjs/{dev.utils-5242a5d1.js → dev.utils-1101f05f.js} +1 -1
  44. package/dist/cjs/{dev.utils-5242a5d1.js.map → dev.utils-1101f05f.js.map} +1 -1
  45. package/dist/cjs/devtools-30b932f6.js +4 -0
  46. package/dist/cjs/{devtools-849b79d3.js.map → devtools-30b932f6.js.map} +1 -1
  47. package/dist/cjs/{disabled-a4caeaf0.js → disabled-279af650.js} +1 -1
  48. package/dist/cjs/{disabled-a4caeaf0.js.map → disabled-279af650.js.map} +1 -1
  49. package/dist/cjs/{has-closer-418d6eb6.js → has-closer-2942fb46.js} +1 -1
  50. package/dist/cjs/{has-closer-418d6eb6.js.map → has-closer-2942fb46.js.map} +1 -1
  51. package/dist/cjs/hide-label-8179f9f6.js +4 -0
  52. package/dist/cjs/{hide-label-c4e4da8c.js.map → hide-label-8179f9f6.js.map} +1 -1
  53. package/dist/cjs/{href-a57999b2.js → href-6df10f9d.js} +1 -1
  54. package/dist/cjs/{href-a57999b2.js.map → href-6df10f9d.js.map} +1 -1
  55. package/dist/cjs/{i18n-fb7587bc.js → i18n-0d2737f4.js} +1 -1
  56. package/dist/cjs/{i18n-fb7587bc.js.map → i18n-0d2737f4.js.map} +1 -1
  57. package/dist/cjs/i18n-1c001171.js +1 -1
  58. package/dist/cjs/icons-8b64c1ab.js +4 -0
  59. package/dist/cjs/{icons-f339f0f3.js.map → icons-8b64c1ab.js.map} +1 -1
  60. package/dist/cjs/{image-source-92ea226a.js → image-source-23d371c3.js} +1 -1
  61. package/dist/cjs/{image-source-92ea226a.js.map → image-source-23d371c3.js.map} +1 -1
  62. package/dist/cjs/index-4974b34f.js +4 -0
  63. package/dist/cjs/index-4974b34f.js.map +1 -0
  64. package/dist/cjs/index-4cec6984.js +4 -0
  65. package/dist/cjs/{index-2999bd56.js.map → index-4cec6984.js.map} +1 -1
  66. package/dist/cjs/index.cjs.js +1 -1
  67. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  68. package/dist/cjs/kol-abbr.cjs.entry.js.map +1 -1
  69. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-accordion.cjs.entry.js.map +1 -1
  71. package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  73. package/dist/cjs/kol-alert.cjs.entry.js.map +1 -1
  74. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  75. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-avatar.cjs.entry.js.map +1 -1
  77. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  78. package/dist/cjs/kol-badge.cjs.entry.js.map +1 -1
  79. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  80. package/dist/cjs/kol-breadcrumb.cjs.entry.js.map +1 -1
  81. package/dist/cjs/kol-button-group-wc.cjs.entry.js +1 -1
  82. package/dist/cjs/kol-button-group.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-button-group.cjs.entry.js.map +1 -1
  84. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-button-link.cjs.entry.js.map +1 -1
  86. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  87. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  88. package/dist/cjs/kol-button.cjs.entry.js.map +1 -1
  89. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  90. package/dist/cjs/kol-card.cjs.entry.js.map +1 -1
  91. package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-combobox.cjs.entry.js.map +1 -1
  93. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  94. package/dist/cjs/kol-details.cjs.entry.js.map +1 -1
  95. package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
  96. package/dist/cjs/kol-drawer.cjs.entry.js.map +1 -1
  97. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  98. package/dist/cjs/kol-form.cjs.entry.js.map +1 -1
  99. package/dist/cjs/kol-heading-wc.cjs.entry.js +1 -1
  100. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-heading.cjs.entry.js.map +1 -1
  102. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  103. package/dist/cjs/kol-icon.cjs.entry.js.map +1 -1
  104. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  105. package/dist/cjs/kol-image.cjs.entry.js.map +1 -1
  106. package/dist/cjs/kol-indented-text-wc.cjs.entry.js +1 -1
  107. package/dist/cjs/kol-indented-text.cjs.entry.js +1 -1
  108. package/dist/cjs/kol-indented-text.cjs.entry.js.map +1 -1
  109. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  110. package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
  111. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  112. package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
  113. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  114. package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
  115. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  116. package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
  117. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  118. package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
  119. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  120. package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
  121. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  122. package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
  123. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  124. package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
  125. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  126. package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
  127. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  128. package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
  129. package/dist/cjs/kol-input.cjs.entry.js +1 -1
  130. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  131. package/dist/cjs/kol-kolibri.cjs.entry.js.map +1 -1
  132. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  133. package/dist/cjs/kol-link-button.cjs.entry.js.map +1 -1
  134. package/dist/cjs/kol-link-group.cjs.entry.js +1 -1
  135. package/dist/cjs/kol-link-group.cjs.entry.js.map +1 -1
  136. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  137. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  138. package/dist/cjs/kol-link.cjs.entry.js.map +1 -1
  139. package/dist/cjs/kol-logo.cjs.entry.js +1 -1
  140. package/dist/cjs/kol-logo.cjs.entry.js.map +1 -1
  141. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  142. package/dist/cjs/kol-modal.cjs.entry.js.map +1 -1
  143. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  144. package/dist/cjs/kol-nav.cjs.entry.js.map +1 -1
  145. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  146. package/dist/cjs/kol-pagination.cjs.entry.js.map +1 -1
  147. package/dist/cjs/kol-popover-button.cjs.entry.js +1 -1
  148. package/dist/cjs/kol-popover-button.cjs.entry.js.map +1 -1
  149. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  150. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  151. package/dist/cjs/kol-progress.cjs.entry.js.map +1 -1
  152. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  153. package/dist/cjs/kol-quote.cjs.entry.js.map +1 -1
  154. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  155. package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
  156. package/dist/cjs/kol-single-select.cjs.entry.js +1 -1
  157. package/dist/cjs/kol-single-select.cjs.entry.js.map +1 -1
  158. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  159. package/dist/cjs/kol-skip-nav.cjs.entry.js.map +1 -1
  160. package/dist/cjs/kol-span-wc.cjs.entry.js +1 -1
  161. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  162. package/dist/cjs/kol-spin.cjs.entry.js.map +1 -1
  163. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  164. package/dist/cjs/kol-split-button.cjs.entry.js.map +1 -1
  165. package/dist/cjs/kol-symbol.cjs.entry.js +1 -1
  166. package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
  167. package/dist/cjs/kol-table-stateful.cjs.entry.js.map +1 -1
  168. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
  169. package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
  170. package/dist/cjs/kol-table-stateless.cjs.entry.js.map +1 -1
  171. package/dist/cjs/kol-table.cjs.entry.js +1 -1
  172. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  173. package/dist/cjs/kol-tabs.cjs.entry.js.map +1 -1
  174. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  175. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  176. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  177. package/dist/cjs/kol-toast-container.cjs.entry.js.map +1 -1
  178. package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
  179. package/dist/cjs/kol-toolbar.cjs.entry.js.map +1 -1
  180. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  181. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
  182. package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
  183. package/dist/cjs/kol-tree-item.cjs.entry.js.map +1 -1
  184. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  185. package/dist/cjs/kol-tree.cjs.entry.js +1 -1
  186. package/dist/cjs/kol-tree.cjs.entry.js.map +1 -1
  187. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  188. package/dist/cjs/kol-version.cjs.entry.js.map +1 -1
  189. package/dist/cjs/kolibri.cjs.js +1 -1
  190. package/dist/cjs/{label-32668ef6.js → label-d59f00da.js} +1 -1
  191. package/dist/cjs/{label-32668ef6.js.map → label-d59f00da.js.map} +1 -1
  192. package/dist/cjs/loader.cjs.js +1 -1
  193. package/dist/cjs/{open-0bd660ad.js → open-8fd22de9.js} +1 -1
  194. package/dist/cjs/{open-0bd660ad.js.map → open-8fd22de9.js.map} +1 -1
  195. package/dist/cjs/{rows-945eef57.js → rows-6c52bd09.js} +1 -1
  196. package/dist/cjs/{rows-945eef57.js.map → rows-6c52bd09.js.map} +1 -1
  197. package/dist/cjs/show-a03afc44.js +4 -0
  198. package/dist/cjs/{show-7c9e5406.js.map → show-a03afc44.js.map} +1 -1
  199. package/dist/cjs/spell-check-36878731.js +4 -0
  200. package/dist/cjs/{spell-check-2d7ed9c3.js.map → spell-check-36878731.js.map} +1 -1
  201. package/dist/cjs/suggestions-938f9775.js +4 -0
  202. package/dist/cjs/{suggestions-7567310b.js.map → suggestions-938f9775.js.map} +1 -1
  203. package/dist/cjs/table-selection-95681775.js +4 -0
  204. package/dist/cjs/{table-selection-106f5d36.js.map → table-selection-95681775.js.map} +1 -1
  205. package/dist/cjs/test-component.cjs.entry.js +1 -1
  206. package/dist/cjs/tooltip-align-ee316e05.js +4 -0
  207. package/dist/cjs/{tooltip-align-cf8829c6.js.map → tooltip-align-ee316e05.js.map} +1 -1
  208. package/dist/cjs/{unique-nav-labels-b8a16446.js → unique-nav-labels-55c761cb.js} +1 -1
  209. package/dist/cjs/{unique-nav-labels-b8a16446.js.map → unique-nav-labels-55c761cb.js.map} +1 -1
  210. package/dist/cjs/validation-57ce93c5.js +4 -0
  211. package/dist/cjs/{validation-4fab29ff.js.map → validation-57ce93c5.js.map} +1 -1
  212. package/dist/cjs/validation-cb2634f6.js +4 -0
  213. package/dist/cjs/{validation-5256cf18.js.map → validation-cb2634f6.js.map} +1 -1
  214. package/dist/components/Alert.js +1 -1
  215. package/dist/components/FormFieldMsg.js +1 -1
  216. package/dist/components/align-floating-elements.js +1 -1
  217. package/dist/components/align-floating-elements.js.map +1 -1
  218. package/dist/components/align.js +1 -1
  219. package/dist/components/ariaCurrentService.js +1 -1
  220. package/dist/components/associated.controller.js +1 -1
  221. package/dist/components/button-variant.js +1 -1
  222. package/dist/components/button-variant.js.map +1 -1
  223. package/dist/components/color.js +1 -1
  224. package/dist/components/controller.js +1 -1
  225. package/dist/components/controller2.js +1 -1
  226. package/dist/components/controller3.js +1 -1
  227. package/dist/components/controller4.js +1 -1
  228. package/dist/components/controller5.js +1 -1
  229. package/dist/components/devtools.js +1 -1
  230. package/dist/components/i18n.js +1 -1
  231. package/dist/components/icons.js +1 -1
  232. package/dist/components/index.js +1 -1
  233. package/dist/components/index2.js +1 -1
  234. package/dist/components/index2.js.map +1 -1
  235. package/dist/components/kol-abbr.js +1 -1
  236. package/dist/components/kol-abbr.js.map +1 -1
  237. package/dist/components/kol-accordion.js +1 -1
  238. package/dist/components/kol-accordion.js.map +1 -1
  239. package/dist/components/kol-alert-wc.js +1 -1
  240. package/dist/components/kol-alert.js +1 -1
  241. package/dist/components/kol-alert.js.map +1 -1
  242. package/dist/components/kol-avatar-wc.js +1 -1
  243. package/dist/components/kol-avatar.js +1 -1
  244. package/dist/components/kol-avatar.js.map +1 -1
  245. package/dist/components/kol-badge.js +1 -1
  246. package/dist/components/kol-badge.js.map +1 -1
  247. package/dist/components/kol-breadcrumb.js +1 -1
  248. package/dist/components/kol-breadcrumb.js.map +1 -1
  249. package/dist/components/kol-button-group-wc.js +1 -1
  250. package/dist/components/kol-button-group.js +1 -1
  251. package/dist/components/kol-button-group.js.map +1 -1
  252. package/dist/components/kol-button-link.js +1 -1
  253. package/dist/components/kol-button-link.js.map +1 -1
  254. package/dist/components/kol-button-wc.js +1 -1
  255. package/dist/components/kol-button.js +1 -1
  256. package/dist/components/kol-button.js.map +1 -1
  257. package/dist/components/kol-card.js +1 -1
  258. package/dist/components/kol-card.js.map +1 -1
  259. package/dist/components/kol-combobox.js +1 -1
  260. package/dist/components/kol-combobox.js.map +1 -1
  261. package/dist/components/kol-details.js +1 -1
  262. package/dist/components/kol-details.js.map +1 -1
  263. package/dist/components/kol-drawer.js +1 -1
  264. package/dist/components/kol-drawer.js.map +1 -1
  265. package/dist/components/kol-form.js +1 -1
  266. package/dist/components/kol-form.js.map +1 -1
  267. package/dist/components/kol-heading-wc.js +1 -1
  268. package/dist/components/kol-heading.js +1 -1
  269. package/dist/components/kol-heading.js.map +1 -1
  270. package/dist/components/kol-icon.js +1 -1
  271. package/dist/components/kol-icon.js.map +1 -1
  272. package/dist/components/kol-image.js +1 -1
  273. package/dist/components/kol-image.js.map +1 -1
  274. package/dist/components/kol-indented-text-wc.js +1 -1
  275. package/dist/components/kol-indented-text.js +1 -1
  276. package/dist/components/kol-indented-text.js.map +1 -1
  277. package/dist/components/kol-input-checkbox.js +1 -1
  278. package/dist/components/kol-input-checkbox.js.map +1 -1
  279. package/dist/components/kol-input-color.js +1 -1
  280. package/dist/components/kol-input-color.js.map +1 -1
  281. package/dist/components/kol-input-date.js +1 -1
  282. package/dist/components/kol-input-date.js.map +1 -1
  283. package/dist/components/kol-input-email.js +1 -1
  284. package/dist/components/kol-input-email.js.map +1 -1
  285. package/dist/components/kol-input-file.js +1 -1
  286. package/dist/components/kol-input-file.js.map +1 -1
  287. package/dist/components/kol-input-number.js +1 -1
  288. package/dist/components/kol-input-number.js.map +1 -1
  289. package/dist/components/kol-input-password.js +1 -1
  290. package/dist/components/kol-input-password.js.map +1 -1
  291. package/dist/components/kol-input-radio.js +1 -1
  292. package/dist/components/kol-input-radio.js.map +1 -1
  293. package/dist/components/kol-input-range.js +1 -1
  294. package/dist/components/kol-input-range.js.map +1 -1
  295. package/dist/components/kol-input-text.js +1 -1
  296. package/dist/components/kol-input-text.js.map +1 -1
  297. package/dist/components/kol-input.js +1 -1
  298. package/dist/components/kol-kolibri.js +1 -1
  299. package/dist/components/kol-kolibri.js.map +1 -1
  300. package/dist/components/kol-link-button.js +1 -1
  301. package/dist/components/kol-link-button.js.map +1 -1
  302. package/dist/components/kol-link-group.js +1 -1
  303. package/dist/components/kol-link-group.js.map +1 -1
  304. package/dist/components/kol-link-wc.js +1 -1
  305. package/dist/components/kol-link.js +1 -1
  306. package/dist/components/kol-link.js.map +1 -1
  307. package/dist/components/kol-logo.js +1 -1
  308. package/dist/components/kol-logo.js.map +1 -1
  309. package/dist/components/kol-modal.js +1 -1
  310. package/dist/components/kol-modal.js.map +1 -1
  311. package/dist/components/kol-nav.js +1 -1
  312. package/dist/components/kol-nav.js.map +1 -1
  313. package/dist/components/kol-pagination.js +1 -1
  314. package/dist/components/kol-pagination.js.map +1 -1
  315. package/dist/components/kol-popover-button.js +1 -1
  316. package/dist/components/kol-popover-button.js.map +1 -1
  317. package/dist/components/kol-popover-wc.js +1 -1
  318. package/dist/components/kol-progress.js +1 -1
  319. package/dist/components/kol-progress.js.map +1 -1
  320. package/dist/components/kol-quote.js +1 -1
  321. package/dist/components/kol-quote.js.map +1 -1
  322. package/dist/components/kol-select.js +1 -1
  323. package/dist/components/kol-select.js.map +1 -1
  324. package/dist/components/kol-single-select.js +1 -1
  325. package/dist/components/kol-single-select.js.map +1 -1
  326. package/dist/components/kol-skip-nav.js +1 -1
  327. package/dist/components/kol-skip-nav.js.map +1 -1
  328. package/dist/components/kol-span-wc.js +1 -1
  329. package/dist/components/kol-spin.js +1 -1
  330. package/dist/components/kol-spin.js.map +1 -1
  331. package/dist/components/kol-split-button.js +1 -1
  332. package/dist/components/kol-split-button.js.map +1 -1
  333. package/dist/components/kol-symbol.js +1 -1
  334. package/dist/components/kol-table-stateful.js +1 -1
  335. package/dist/components/kol-table-stateful.js.map +1 -1
  336. package/dist/components/kol-table-stateless-wc.js +1 -1
  337. package/dist/components/kol-table-stateless.js +1 -1
  338. package/dist/components/kol-table-stateless.js.map +1 -1
  339. package/dist/components/kol-table.js +1 -1
  340. package/dist/components/kol-tabs.js +1 -1
  341. package/dist/components/kol-tabs.js.map +1 -1
  342. package/dist/components/kol-textarea.js +1 -1
  343. package/dist/components/kol-textarea.js.map +1 -1
  344. package/dist/components/kol-toast-container.js +1 -1
  345. package/dist/components/kol-toast-container.js.map +1 -1
  346. package/dist/components/kol-toolbar.js +1 -1
  347. package/dist/components/kol-toolbar.js.map +1 -1
  348. package/dist/components/kol-tooltip-wc.js +1 -1
  349. package/dist/components/kol-tree-item-wc.js +1 -1
  350. package/dist/components/kol-tree-item.js +1 -1
  351. package/dist/components/kol-tree-item.js.map +1 -1
  352. package/dist/components/kol-tree-wc.js +1 -1
  353. package/dist/components/kol-tree.js +1 -1
  354. package/dist/components/kol-tree.js.map +1 -1
  355. package/dist/components/kol-version.js +1 -1
  356. package/dist/components/kol-version.js.map +1 -1
  357. package/dist/components/label.js +1 -1
  358. package/dist/components/suggestions.js +1 -1
  359. package/dist/components/table-selection.js +1 -1
  360. package/dist/components/validation.js +1 -1
  361. package/dist/components/validation2.js +1 -1
  362. package/dist/esm/{Alert-ea5205e8.js → Alert-146e4bbf.js} +1 -1
  363. package/dist/esm/{Alert-ea5205e8.js.map → Alert-146e4bbf.js.map} +1 -1
  364. package/dist/esm/{Collapsible-40f90188.js → Collapsible-ce96a6f4.js} +1 -1
  365. package/dist/esm/{Collapsible-40f90188.js.map → Collapsible-ce96a6f4.js.map} +1 -1
  366. package/dist/esm/FormFieldMsg-c923f0ec.js +4 -0
  367. package/dist/esm/{FormFieldMsg-ac98caad.js.map → FormFieldMsg-c923f0ec.js.map} +1 -1
  368. package/dist/esm/{InternalUnderlinedBadgeText-4b7bd697.js → InternalUnderlinedBadgeText-0bee9998.js} +1 -1
  369. package/dist/esm/{InternalUnderlinedBadgeText-4b7bd697.js.map → InternalUnderlinedBadgeText-0bee9998.js.map} +1 -1
  370. package/dist/esm/{access-and-short-key-a34a0af0.js → access-and-short-key-360ff997.js} +1 -1
  371. package/dist/esm/{access-and-short-key-a34a0af0.js.map → access-and-short-key-360ff997.js.map} +1 -1
  372. package/dist/esm/align-ef25bf72.js +4 -0
  373. package/dist/esm/{align-bc8d98ac.js.map → align-ef25bf72.js.map} +1 -1
  374. package/dist/esm/align-floating-elements-4d750669.js +4 -0
  375. package/dist/esm/align-floating-elements-4d750669.js.map +1 -0
  376. package/dist/esm/app-globals-e679e588.js +4 -0
  377. package/dist/esm/{app-globals-f4ebdb75.js.map → app-globals-e679e588.js.map} +1 -1
  378. package/dist/esm/ariaCurrentService-6fe36ebc.js +1 -1
  379. package/dist/esm/associated.controller-7e8760a4.js +4 -0
  380. package/dist/esm/{associated.controller-3dab1e00.js.map → associated.controller-7e8760a4.js.map} +1 -1
  381. package/dist/esm/{badge-text-c7f39390.js → badge-text-920f8e25.js} +1 -1
  382. package/dist/esm/{badge-text-c7f39390.js.map → badge-text-920f8e25.js.map} +1 -1
  383. package/dist/esm/button-variant-f3bae820.js +4 -0
  384. package/dist/esm/button-variant-f3bae820.js.map +1 -0
  385. package/dist/esm/color-0c64809c.js +4 -0
  386. package/dist/esm/{color-a464afb7.js.map → color-0c64809c.js.map} +1 -1
  387. package/dist/esm/{controller-87dfc9ee.js → controller-08b97a5b.js} +1 -1
  388. package/dist/esm/{controller-87dfc9ee.js.map → controller-08b97a5b.js.map} +1 -1
  389. package/dist/esm/controller-17a2fd4e.js +4 -0
  390. package/dist/esm/{controller-4fa871d2.js.map → controller-17a2fd4e.js.map} +1 -1
  391. package/dist/esm/controller-9a8498ba.js +4 -0
  392. package/dist/esm/{controller-e97b79b7.js.map → controller-9a8498ba.js.map} +1 -1
  393. package/dist/esm/controller-ea3c27ba.js +4 -0
  394. package/dist/esm/{controller-8ace9659.js.map → controller-ea3c27ba.js.map} +1 -1
  395. package/dist/esm/controller-f2dc1020.js +4 -0
  396. package/dist/esm/{controller-cfa11279.js.map → controller-f2dc1020.js.map} +1 -1
  397. package/dist/esm/{controller-icon-811adcf4.js → controller-icon-faf40010.js} +1 -1
  398. package/dist/esm/{controller-icon-811adcf4.js.map → controller-icon-faf40010.js.map} +1 -1
  399. package/dist/esm/{custom-class-6eaba98d.js → custom-class-aa04d105.js} +1 -1
  400. package/dist/esm/{custom-class-6eaba98d.js.map → custom-class-aa04d105.js.map} +1 -1
  401. package/dist/esm/{debounce-112fa67e.js → debounce-87469330.js} +1 -1
  402. package/dist/esm/{debounce-112fa67e.js.map → debounce-87469330.js.map} +1 -1
  403. package/dist/esm/{dev.utils-3a332b59.js → dev.utils-7d7ddeeb.js} +1 -1
  404. package/dist/esm/{dev.utils-3a332b59.js.map → dev.utils-7d7ddeeb.js.map} +1 -1
  405. package/dist/esm/devtools-77a1d588.js +4 -0
  406. package/dist/esm/{devtools-62562887.js.map → devtools-77a1d588.js.map} +1 -1
  407. package/dist/esm/disabled-3bfa3898.js +4 -0
  408. package/dist/esm/{disabled-f923601e.js.map → disabled-3bfa3898.js.map} +1 -1
  409. package/dist/esm/{has-closer-a7dc359b.js → has-closer-c90da2b1.js} +1 -1
  410. package/dist/esm/{has-closer-a7dc359b.js.map → has-closer-c90da2b1.js.map} +1 -1
  411. package/dist/esm/{hide-label-2b46168f.js → hide-label-6f1ea82b.js} +1 -1
  412. package/dist/esm/{hide-label-2b46168f.js.map → hide-label-6f1ea82b.js.map} +1 -1
  413. package/dist/esm/{href-823c69d8.js → href-e07672da.js} +1 -1
  414. package/dist/esm/{href-823c69d8.js.map → href-e07672da.js.map} +1 -1
  415. package/dist/esm/i18n-b14e6088.js +1 -1
  416. package/dist/esm/{i18n-820d85c7.js → i18n-b4507b80.js} +1 -1
  417. package/dist/esm/{i18n-820d85c7.js.map → i18n-b4507b80.js.map} +1 -1
  418. package/dist/esm/icons-26be7462.js +4 -0
  419. package/dist/esm/{icons-d29928c3.js.map → icons-26be7462.js.map} +1 -1
  420. package/dist/esm/{image-source-bd7ca7b4.js → image-source-44a71276.js} +1 -1
  421. package/dist/esm/{image-source-bd7ca7b4.js.map → image-source-44a71276.js.map} +1 -1
  422. package/dist/esm/index-3bfee590.js +4 -0
  423. package/dist/esm/{index-1766e6f4.js.map → index-3bfee590.js.map} +1 -1
  424. package/dist/esm/index-50898179.js +4 -0
  425. package/dist/esm/index-50898179.js.map +1 -0
  426. package/dist/esm/index.js +1 -1
  427. package/dist/esm/kol-abbr.entry.js +1 -1
  428. package/dist/esm/kol-abbr.entry.js.map +1 -1
  429. package/dist/esm/kol-accordion.entry.js +1 -1
  430. package/dist/esm/kol-accordion.entry.js.map +1 -1
  431. package/dist/esm/kol-alert-wc.entry.js +1 -1
  432. package/dist/esm/kol-alert.entry.js +1 -1
  433. package/dist/esm/kol-alert.entry.js.map +1 -1
  434. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  435. package/dist/esm/kol-avatar.entry.js +1 -1
  436. package/dist/esm/kol-avatar.entry.js.map +1 -1
  437. package/dist/esm/kol-badge.entry.js +1 -1
  438. package/dist/esm/kol-badge.entry.js.map +1 -1
  439. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  440. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  441. package/dist/esm/kol-button-group-wc.entry.js +1 -1
  442. package/dist/esm/kol-button-group.entry.js +1 -1
  443. package/dist/esm/kol-button-group.entry.js.map +1 -1
  444. package/dist/esm/kol-button-link.entry.js +1 -1
  445. package/dist/esm/kol-button-link.entry.js.map +1 -1
  446. package/dist/esm/kol-button-wc.entry.js +1 -1
  447. package/dist/esm/kol-button.entry.js +1 -1
  448. package/dist/esm/kol-button.entry.js.map +1 -1
  449. package/dist/esm/kol-card.entry.js +1 -1
  450. package/dist/esm/kol-card.entry.js.map +1 -1
  451. package/dist/esm/kol-combobox.entry.js +1 -1
  452. package/dist/esm/kol-combobox.entry.js.map +1 -1
  453. package/dist/esm/kol-details.entry.js +1 -1
  454. package/dist/esm/kol-details.entry.js.map +1 -1
  455. package/dist/esm/kol-drawer.entry.js +1 -1
  456. package/dist/esm/kol-drawer.entry.js.map +1 -1
  457. package/dist/esm/kol-form.entry.js +1 -1
  458. package/dist/esm/kol-form.entry.js.map +1 -1
  459. package/dist/esm/kol-heading-wc.entry.js +1 -1
  460. package/dist/esm/kol-heading.entry.js +1 -1
  461. package/dist/esm/kol-heading.entry.js.map +1 -1
  462. package/dist/esm/kol-icon.entry.js +1 -1
  463. package/dist/esm/kol-icon.entry.js.map +1 -1
  464. package/dist/esm/kol-image.entry.js +1 -1
  465. package/dist/esm/kol-image.entry.js.map +1 -1
  466. package/dist/esm/kol-indented-text-wc.entry.js +1 -1
  467. package/dist/esm/kol-indented-text.entry.js +1 -1
  468. package/dist/esm/kol-indented-text.entry.js.map +1 -1
  469. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  470. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  471. package/dist/esm/kol-input-color.entry.js +1 -1
  472. package/dist/esm/kol-input-color.entry.js.map +1 -1
  473. package/dist/esm/kol-input-date.entry.js +1 -1
  474. package/dist/esm/kol-input-date.entry.js.map +1 -1
  475. package/dist/esm/kol-input-email.entry.js +1 -1
  476. package/dist/esm/kol-input-email.entry.js.map +1 -1
  477. package/dist/esm/kol-input-file.entry.js +1 -1
  478. package/dist/esm/kol-input-file.entry.js.map +1 -1
  479. package/dist/esm/kol-input-number.entry.js +1 -1
  480. package/dist/esm/kol-input-number.entry.js.map +1 -1
  481. package/dist/esm/kol-input-password.entry.js +1 -1
  482. package/dist/esm/kol-input-password.entry.js.map +1 -1
  483. package/dist/esm/kol-input-radio.entry.js +1 -1
  484. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  485. package/dist/esm/kol-input-range.entry.js +1 -1
  486. package/dist/esm/kol-input-range.entry.js.map +1 -1
  487. package/dist/esm/kol-input-text.entry.js +1 -1
  488. package/dist/esm/kol-input-text.entry.js.map +1 -1
  489. package/dist/esm/kol-input.entry.js +1 -1
  490. package/dist/esm/kol-kolibri.entry.js +1 -1
  491. package/dist/esm/kol-kolibri.entry.js.map +1 -1
  492. package/dist/esm/kol-link-button.entry.js +1 -1
  493. package/dist/esm/kol-link-button.entry.js.map +1 -1
  494. package/dist/esm/kol-link-group.entry.js +1 -1
  495. package/dist/esm/kol-link-group.entry.js.map +1 -1
  496. package/dist/esm/kol-link-wc.entry.js +1 -1
  497. package/dist/esm/kol-link.entry.js +1 -1
  498. package/dist/esm/kol-link.entry.js.map +1 -1
  499. package/dist/esm/kol-logo.entry.js +1 -1
  500. package/dist/esm/kol-logo.entry.js.map +1 -1
  501. package/dist/esm/kol-modal.entry.js +1 -1
  502. package/dist/esm/kol-modal.entry.js.map +1 -1
  503. package/dist/esm/kol-nav.entry.js +1 -1
  504. package/dist/esm/kol-nav.entry.js.map +1 -1
  505. package/dist/esm/kol-pagination.entry.js +1 -1
  506. package/dist/esm/kol-pagination.entry.js.map +1 -1
  507. package/dist/esm/kol-popover-button.entry.js +1 -1
  508. package/dist/esm/kol-popover-button.entry.js.map +1 -1
  509. package/dist/esm/kol-popover-wc.entry.js +1 -1
  510. package/dist/esm/kol-progress.entry.js +1 -1
  511. package/dist/esm/kol-progress.entry.js.map +1 -1
  512. package/dist/esm/kol-quote.entry.js +1 -1
  513. package/dist/esm/kol-quote.entry.js.map +1 -1
  514. package/dist/esm/kol-select.entry.js +1 -1
  515. package/dist/esm/kol-select.entry.js.map +1 -1
  516. package/dist/esm/kol-single-select.entry.js +1 -1
  517. package/dist/esm/kol-single-select.entry.js.map +1 -1
  518. package/dist/esm/kol-skip-nav.entry.js +1 -1
  519. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  520. package/dist/esm/kol-span-wc.entry.js +1 -1
  521. package/dist/esm/kol-spin.entry.js +1 -1
  522. package/dist/esm/kol-spin.entry.js.map +1 -1
  523. package/dist/esm/kol-split-button.entry.js +1 -1
  524. package/dist/esm/kol-split-button.entry.js.map +1 -1
  525. package/dist/esm/kol-symbol.entry.js +1 -1
  526. package/dist/esm/kol-table-stateful.entry.js +1 -1
  527. package/dist/esm/kol-table-stateful.entry.js.map +1 -1
  528. package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
  529. package/dist/esm/kol-table-stateless.entry.js +1 -1
  530. package/dist/esm/kol-table-stateless.entry.js.map +1 -1
  531. package/dist/esm/kol-table.entry.js +1 -1
  532. package/dist/esm/kol-tabs.entry.js +1 -1
  533. package/dist/esm/kol-tabs.entry.js.map +1 -1
  534. package/dist/esm/kol-textarea.entry.js +1 -1
  535. package/dist/esm/kol-textarea.entry.js.map +1 -1
  536. package/dist/esm/kol-toast-container.entry.js +1 -1
  537. package/dist/esm/kol-toast-container.entry.js.map +1 -1
  538. package/dist/esm/kol-toolbar.entry.js +1 -1
  539. package/dist/esm/kol-toolbar.entry.js.map +1 -1
  540. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  541. package/dist/esm/kol-tree-item-wc.entry.js +1 -1
  542. package/dist/esm/kol-tree-item.entry.js +1 -1
  543. package/dist/esm/kol-tree-item.entry.js.map +1 -1
  544. package/dist/esm/kol-tree-wc.entry.js +1 -1
  545. package/dist/esm/kol-tree.entry.js +1 -1
  546. package/dist/esm/kol-tree.entry.js.map +1 -1
  547. package/dist/esm/kol-version.entry.js +1 -1
  548. package/dist/esm/kol-version.entry.js.map +1 -1
  549. package/dist/esm/kolibri.js +1 -1
  550. package/dist/esm/{label-51d66c9d.js → label-2d7e2d68.js} +1 -1
  551. package/dist/esm/{label-51d66c9d.js.map → label-2d7e2d68.js.map} +1 -1
  552. package/dist/esm/loader.js +1 -1
  553. package/dist/esm/{open-47cb3e2a.js → open-ae55f20a.js} +1 -1
  554. package/dist/esm/{open-47cb3e2a.js.map → open-ae55f20a.js.map} +1 -1
  555. package/dist/esm/{rows-92682fe5.js → rows-87b2a0e8.js} +1 -1
  556. package/dist/esm/{rows-92682fe5.js.map → rows-87b2a0e8.js.map} +1 -1
  557. package/dist/esm/{show-82afe4f8.js → show-03f9068a.js} +1 -1
  558. package/dist/esm/{show-82afe4f8.js.map → show-03f9068a.js.map} +1 -1
  559. package/dist/esm/{spell-check-5b365d45.js → spell-check-0db58373.js} +1 -1
  560. package/dist/esm/{spell-check-5b365d45.js.map → spell-check-0db58373.js.map} +1 -1
  561. package/dist/esm/suggestions-68834329.js +4 -0
  562. package/dist/esm/{suggestions-7e70d4e3.js.map → suggestions-68834329.js.map} +1 -1
  563. package/dist/esm/table-selection-e9061dc2.js +4 -0
  564. package/dist/esm/{table-selection-eaee72ee.js.map → table-selection-e9061dc2.js.map} +1 -1
  565. package/dist/esm/test-component.entry.js +1 -1
  566. package/dist/esm/tooltip-align-6c3169e7.js +4 -0
  567. package/dist/esm/{tooltip-align-de415afb.js.map → tooltip-align-6c3169e7.js.map} +1 -1
  568. package/dist/esm/{unique-nav-labels-917eec2b.js → unique-nav-labels-ff53a6d0.js} +1 -1
  569. package/dist/esm/{unique-nav-labels-917eec2b.js.map → unique-nav-labels-ff53a6d0.js.map} +1 -1
  570. package/dist/esm/validation-0a3825a7.js +4 -0
  571. package/dist/esm/{validation-db4e7b56.js.map → validation-0a3825a7.js.map} +1 -1
  572. package/dist/esm/validation-a88d38d8.js +4 -0
  573. package/dist/esm/{validation-c4177384.js.map → validation-a88d38d8.js.map} +1 -1
  574. package/dist/kolibri/{Alert-ea5205e8.js → Alert-146e4bbf.js} +1 -1
  575. package/dist/kolibri/{Collapsible-40f90188.js → Collapsible-ce96a6f4.js} +1 -1
  576. package/dist/kolibri/FormFieldMsg-c923f0ec.js +4 -0
  577. package/dist/kolibri/{InternalUnderlinedBadgeText-4b7bd697.js → InternalUnderlinedBadgeText-0bee9998.js} +1 -1
  578. package/dist/kolibri/{access-and-short-key-a34a0af0.js → access-and-short-key-360ff997.js} +1 -1
  579. package/dist/kolibri/align-ef25bf72.js +4 -0
  580. package/dist/kolibri/align-floating-elements-4d750669.js +4 -0
  581. package/dist/kolibri/align-floating-elements-4d750669.js.map +1 -0
  582. package/dist/kolibri/app-globals-e679e588.js +4 -0
  583. package/dist/kolibri/ariaCurrentService-6fe36ebc.js +1 -1
  584. package/dist/kolibri/associated.controller-7e8760a4.js +4 -0
  585. package/dist/kolibri/badge-text-920f8e25.js +4 -0
  586. package/dist/kolibri/button-variant-f3bae820.js +4 -0
  587. package/dist/kolibri/button-variant-f3bae820.js.map +1 -0
  588. package/dist/kolibri/color-0c64809c.js +4 -0
  589. package/dist/kolibri/controller-08b97a5b.js +4 -0
  590. package/dist/kolibri/controller-17a2fd4e.js +4 -0
  591. package/dist/kolibri/controller-9a8498ba.js +4 -0
  592. package/dist/kolibri/controller-ea3c27ba.js +4 -0
  593. package/dist/kolibri/controller-f2dc1020.js +4 -0
  594. package/dist/kolibri/{controller-icon-811adcf4.js → controller-icon-faf40010.js} +1 -1
  595. package/dist/kolibri/custom-class-aa04d105.js +4 -0
  596. package/dist/kolibri/{debounce-112fa67e.js → debounce-87469330.js} +1 -1
  597. package/dist/kolibri/{dev.utils-3a332b59.js → dev.utils-7d7ddeeb.js} +1 -1
  598. package/dist/kolibri/devtools-77a1d588.js +4 -0
  599. package/dist/kolibri/disabled-3bfa3898.js +4 -0
  600. package/dist/kolibri/has-closer-c90da2b1.js +4 -0
  601. package/dist/kolibri/hide-label-6f1ea82b.js +4 -0
  602. package/dist/kolibri/href-e07672da.js +4 -0
  603. package/dist/kolibri/i18n-b14e6088.js +1 -1
  604. package/dist/kolibri/{i18n-820d85c7.js → i18n-b4507b80.js} +1 -1
  605. package/dist/kolibri/icons-26be7462.js +4 -0
  606. package/dist/kolibri/image-source-44a71276.js +4 -0
  607. package/dist/kolibri/index-3bfee590.js +5 -0
  608. package/dist/kolibri/{index-1766e6f4.js.map → index-3bfee590.js.map} +1 -1
  609. package/dist/kolibri/index-50898179.js +4 -0
  610. package/dist/kolibri/index-50898179.js.map +1 -0
  611. package/dist/kolibri/index.esm.js +1 -1
  612. package/dist/kolibri/kol-abbr.entry.js +1 -1
  613. package/dist/kolibri/kol-abbr.entry.js.map +1 -1
  614. package/dist/kolibri/kol-accordion.entry.js +1 -1
  615. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  616. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  617. package/dist/kolibri/kol-alert.entry.js +1 -1
  618. package/dist/kolibri/kol-alert.entry.js.map +1 -1
  619. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  620. package/dist/kolibri/kol-avatar.entry.js +1 -1
  621. package/dist/kolibri/kol-avatar.entry.js.map +1 -1
  622. package/dist/kolibri/kol-badge.entry.js +1 -1
  623. package/dist/kolibri/kol-badge.entry.js.map +1 -1
  624. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  625. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  626. package/dist/kolibri/kol-button-group-wc.entry.js +1 -1
  627. package/dist/kolibri/kol-button-group.entry.js +1 -1
  628. package/dist/kolibri/kol-button-group.entry.js.map +1 -1
  629. package/dist/kolibri/kol-button-link.entry.js +1 -1
  630. package/dist/kolibri/kol-button-link.entry.js.map +1 -1
  631. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  632. package/dist/kolibri/kol-button.entry.js +1 -1
  633. package/dist/kolibri/kol-button.entry.js.map +1 -1
  634. package/dist/kolibri/kol-card.entry.js +1 -1
  635. package/dist/kolibri/kol-card.entry.js.map +1 -1
  636. package/dist/kolibri/kol-combobox.entry.js +1 -1
  637. package/dist/kolibri/kol-combobox.entry.js.map +1 -1
  638. package/dist/kolibri/kol-details.entry.js +1 -1
  639. package/dist/kolibri/kol-details.entry.js.map +1 -1
  640. package/dist/kolibri/kol-drawer.entry.js +1 -1
  641. package/dist/kolibri/kol-drawer.entry.js.map +1 -1
  642. package/dist/kolibri/kol-form.entry.js +1 -1
  643. package/dist/kolibri/kol-form.entry.js.map +1 -1
  644. package/dist/kolibri/kol-heading-wc.entry.js +1 -1
  645. package/dist/kolibri/kol-heading.entry.js +1 -1
  646. package/dist/kolibri/kol-heading.entry.js.map +1 -1
  647. package/dist/kolibri/kol-icon.entry.js +1 -1
  648. package/dist/kolibri/kol-icon.entry.js.map +1 -1
  649. package/dist/kolibri/kol-image.entry.js +1 -1
  650. package/dist/kolibri/kol-image.entry.js.map +1 -1
  651. package/dist/kolibri/kol-indented-text-wc.entry.js +1 -1
  652. package/dist/kolibri/kol-indented-text.entry.js +1 -1
  653. package/dist/kolibri/kol-indented-text.entry.js.map +1 -1
  654. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  655. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  656. package/dist/kolibri/kol-input-color.entry.js +1 -1
  657. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  658. package/dist/kolibri/kol-input-date.entry.js +1 -1
  659. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  660. package/dist/kolibri/kol-input-email.entry.js +1 -1
  661. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  662. package/dist/kolibri/kol-input-file.entry.js +1 -1
  663. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  664. package/dist/kolibri/kol-input-number.entry.js +1 -1
  665. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  666. package/dist/kolibri/kol-input-password.entry.js +1 -1
  667. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  668. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  669. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  670. package/dist/kolibri/kol-input-range.entry.js +1 -1
  671. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  672. package/dist/kolibri/kol-input-text.entry.js +1 -1
  673. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  674. package/dist/kolibri/kol-input.entry.js +1 -1
  675. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  676. package/dist/kolibri/kol-kolibri.entry.js.map +1 -1
  677. package/dist/kolibri/kol-link-button.entry.js +1 -1
  678. package/dist/kolibri/kol-link-button.entry.js.map +1 -1
  679. package/dist/kolibri/kol-link-group.entry.js +1 -1
  680. package/dist/kolibri/kol-link-group.entry.js.map +1 -1
  681. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  682. package/dist/kolibri/kol-link.entry.js +1 -1
  683. package/dist/kolibri/kol-link.entry.js.map +1 -1
  684. package/dist/kolibri/kol-logo.entry.js +1 -1
  685. package/dist/kolibri/kol-logo.entry.js.map +1 -1
  686. package/dist/kolibri/kol-modal.entry.js +1 -1
  687. package/dist/kolibri/kol-modal.entry.js.map +1 -1
  688. package/dist/kolibri/kol-nav.entry.js +1 -1
  689. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  690. package/dist/kolibri/kol-pagination.entry.js +1 -1
  691. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  692. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  693. package/dist/kolibri/kol-popover-button.entry.js.map +1 -1
  694. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  695. package/dist/kolibri/kol-progress.entry.js +1 -1
  696. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  697. package/dist/kolibri/kol-quote.entry.js +1 -1
  698. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  699. package/dist/kolibri/kol-select.entry.js +1 -1
  700. package/dist/kolibri/kol-select.entry.js.map +1 -1
  701. package/dist/kolibri/kol-single-select.entry.js +1 -1
  702. package/dist/kolibri/kol-single-select.entry.js.map +1 -1
  703. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  704. package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
  705. package/dist/kolibri/kol-span-wc.entry.js +1 -1
  706. package/dist/kolibri/kol-spin.entry.js +1 -1
  707. package/dist/kolibri/kol-spin.entry.js.map +1 -1
  708. package/dist/kolibri/kol-split-button.entry.js +1 -1
  709. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  710. package/dist/kolibri/kol-symbol.entry.js +1 -1
  711. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  712. package/dist/kolibri/kol-table-stateful.entry.js.map +1 -1
  713. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  714. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  715. package/dist/kolibri/kol-table-stateless.entry.js.map +1 -1
  716. package/dist/kolibri/kol-table.entry.js +1 -1
  717. package/dist/kolibri/kol-tabs.entry.js +1 -1
  718. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  719. package/dist/kolibri/kol-textarea.entry.js +1 -1
  720. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  721. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  722. package/dist/kolibri/kol-toast-container.entry.js.map +1 -1
  723. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  724. package/dist/kolibri/kol-toolbar.entry.js.map +1 -1
  725. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  726. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  727. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  728. package/dist/kolibri/kol-tree-item.entry.js.map +1 -1
  729. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  730. package/dist/kolibri/kol-tree.entry.js +1 -1
  731. package/dist/kolibri/kol-tree.entry.js.map +1 -1
  732. package/dist/kolibri/kol-version.entry.js +1 -1
  733. package/dist/kolibri/kol-version.entry.js.map +1 -1
  734. package/dist/kolibri/kolibri.esm.js +1 -1
  735. package/dist/kolibri/{label-51d66c9d.js → label-2d7e2d68.js} +1 -1
  736. package/dist/kolibri/open-ae55f20a.js +4 -0
  737. package/dist/kolibri/rows-87b2a0e8.js +4 -0
  738. package/dist/kolibri/show-03f9068a.js +4 -0
  739. package/dist/kolibri/spell-check-0db58373.js +4 -0
  740. package/dist/kolibri/suggestions-68834329.js +4 -0
  741. package/dist/kolibri/table-selection-e9061dc2.js +4 -0
  742. package/dist/kolibri/test-component.entry.js +1 -1
  743. package/dist/kolibri/tooltip-align-6c3169e7.js +4 -0
  744. package/dist/kolibri/{unique-nav-labels-917eec2b.js → unique-nav-labels-ff53a6d0.js} +1 -1
  745. package/dist/kolibri/validation-0a3825a7.js +4 -0
  746. package/dist/kolibri/validation-a88d38d8.js +4 -0
  747. package/dist/types/components/single-select/shadow.d.ts +1 -0
  748. package/dist/types/components.d.ts +12 -0
  749. package/dist/types/schema/props/alternative-button-link-role.d.ts +1 -1
  750. package/doc/badge.md +6 -6
  751. package/doc/button-link.md +21 -21
  752. package/doc/button.md +23 -23
  753. package/doc/input-color.md +23 -23
  754. package/doc/input-date.md +29 -29
  755. package/doc/input-email.md +30 -30
  756. package/doc/input-file.md +24 -24
  757. package/doc/input-number.md +29 -29
  758. package/doc/input-password.md +29 -29
  759. package/doc/input-text.md +31 -31
  760. package/doc/link-button.md +20 -20
  761. package/doc/link.md +18 -18
  762. package/doc/popover-button.md +22 -22
  763. package/doc/split-button.md +19 -19
  764. package/package.json +6 -6
  765. package/vscode-custom-data.json +0 -84
  766. package/dist/cjs/FormFieldMsg-b2f580b4.js +0 -4
  767. package/dist/cjs/align-033dd3ec.js +0 -4
  768. package/dist/cjs/align-floating-elements-fd0cbb89.js +0 -4
  769. package/dist/cjs/align-floating-elements-fd0cbb89.js.map +0 -1
  770. package/dist/cjs/app-globals-7bef0af1.js +0 -4
  771. package/dist/cjs/associated.controller-52a935b6.js +0 -4
  772. package/dist/cjs/button-variant-88579d18.js +0 -4
  773. package/dist/cjs/button-variant-88579d18.js.map +0 -1
  774. package/dist/cjs/color-162ea61e.js +0 -4
  775. package/dist/cjs/controller-5bb59938.js +0 -4
  776. package/dist/cjs/controller-87180834.js +0 -4
  777. package/dist/cjs/controller-b58f6250.js +0 -4
  778. package/dist/cjs/controller-e781902d.js +0 -4
  779. package/dist/cjs/devtools-849b79d3.js +0 -4
  780. package/dist/cjs/hide-label-c4e4da8c.js +0 -4
  781. package/dist/cjs/icons-f339f0f3.js +0 -4
  782. package/dist/cjs/index-2999bd56.js +0 -4
  783. package/dist/cjs/index-4d023d25.js +0 -4
  784. package/dist/cjs/index-4d023d25.js.map +0 -1
  785. package/dist/cjs/show-7c9e5406.js +0 -4
  786. package/dist/cjs/spell-check-2d7ed9c3.js +0 -4
  787. package/dist/cjs/suggestions-7567310b.js +0 -4
  788. package/dist/cjs/table-selection-106f5d36.js +0 -4
  789. package/dist/cjs/tooltip-align-cf8829c6.js +0 -4
  790. package/dist/cjs/validation-4fab29ff.js +0 -4
  791. package/dist/cjs/validation-5256cf18.js +0 -4
  792. package/dist/esm/FormFieldMsg-ac98caad.js +0 -4
  793. package/dist/esm/align-bc8d98ac.js +0 -4
  794. package/dist/esm/align-floating-elements-f88f945f.js +0 -4
  795. package/dist/esm/align-floating-elements-f88f945f.js.map +0 -1
  796. package/dist/esm/app-globals-f4ebdb75.js +0 -4
  797. package/dist/esm/associated.controller-3dab1e00.js +0 -4
  798. package/dist/esm/button-variant-fe0f7f45.js +0 -4
  799. package/dist/esm/button-variant-fe0f7f45.js.map +0 -1
  800. package/dist/esm/color-a464afb7.js +0 -4
  801. package/dist/esm/controller-4fa871d2.js +0 -4
  802. package/dist/esm/controller-8ace9659.js +0 -4
  803. package/dist/esm/controller-cfa11279.js +0 -4
  804. package/dist/esm/controller-e97b79b7.js +0 -4
  805. package/dist/esm/devtools-62562887.js +0 -4
  806. package/dist/esm/disabled-f923601e.js +0 -4
  807. package/dist/esm/icons-d29928c3.js +0 -4
  808. package/dist/esm/index-1766e6f4.js +0 -4
  809. package/dist/esm/index-4fb06bbb.js +0 -4
  810. package/dist/esm/index-4fb06bbb.js.map +0 -1
  811. package/dist/esm/suggestions-7e70d4e3.js +0 -4
  812. package/dist/esm/table-selection-eaee72ee.js +0 -4
  813. package/dist/esm/tooltip-align-de415afb.js +0 -4
  814. package/dist/esm/validation-c4177384.js +0 -4
  815. package/dist/esm/validation-db4e7b56.js +0 -4
  816. package/dist/kolibri/FormFieldMsg-ac98caad.js +0 -4
  817. package/dist/kolibri/align-bc8d98ac.js +0 -4
  818. package/dist/kolibri/align-floating-elements-f88f945f.js +0 -4
  819. package/dist/kolibri/align-floating-elements-f88f945f.js.map +0 -1
  820. package/dist/kolibri/app-globals-f4ebdb75.js +0 -4
  821. package/dist/kolibri/associated.controller-3dab1e00.js +0 -4
  822. package/dist/kolibri/badge-text-c7f39390.js +0 -4
  823. package/dist/kolibri/button-variant-fe0f7f45.js +0 -4
  824. package/dist/kolibri/button-variant-fe0f7f45.js.map +0 -1
  825. package/dist/kolibri/color-a464afb7.js +0 -4
  826. package/dist/kolibri/controller-4fa871d2.js +0 -4
  827. package/dist/kolibri/controller-87dfc9ee.js +0 -4
  828. package/dist/kolibri/controller-8ace9659.js +0 -4
  829. package/dist/kolibri/controller-cfa11279.js +0 -4
  830. package/dist/kolibri/controller-e97b79b7.js +0 -4
  831. package/dist/kolibri/custom-class-6eaba98d.js +0 -4
  832. package/dist/kolibri/devtools-62562887.js +0 -4
  833. package/dist/kolibri/disabled-f923601e.js +0 -4
  834. package/dist/kolibri/has-closer-a7dc359b.js +0 -4
  835. package/dist/kolibri/hide-label-2b46168f.js +0 -4
  836. package/dist/kolibri/href-823c69d8.js +0 -4
  837. package/dist/kolibri/icons-d29928c3.js +0 -4
  838. package/dist/kolibri/image-source-bd7ca7b4.js +0 -4
  839. package/dist/kolibri/index-1766e6f4.js +0 -5
  840. package/dist/kolibri/index-4fb06bbb.js +0 -4
  841. package/dist/kolibri/index-4fb06bbb.js.map +0 -1
  842. package/dist/kolibri/open-47cb3e2a.js +0 -4
  843. package/dist/kolibri/rows-92682fe5.js +0 -4
  844. package/dist/kolibri/show-82afe4f8.js +0 -4
  845. package/dist/kolibri/spell-check-5b365d45.js +0 -4
  846. package/dist/kolibri/suggestions-7e70d4e3.js +0 -4
  847. package/dist/kolibri/table-selection-eaee72ee.js +0 -4
  848. package/dist/kolibri/tooltip-align-de415afb.js +0 -4
  849. package/dist/kolibri/validation-c4177384.js +0 -4
  850. package/dist/kolibri/validation-db4e7b56.js +0 -4
  851. /package/dist/kolibri/{Alert-ea5205e8.js.map → Alert-146e4bbf.js.map} +0 -0
  852. /package/dist/kolibri/{Collapsible-40f90188.js.map → Collapsible-ce96a6f4.js.map} +0 -0
  853. /package/dist/kolibri/{FormFieldMsg-ac98caad.js.map → FormFieldMsg-c923f0ec.js.map} +0 -0
  854. /package/dist/kolibri/{InternalUnderlinedBadgeText-4b7bd697.js.map → InternalUnderlinedBadgeText-0bee9998.js.map} +0 -0
  855. /package/dist/kolibri/{access-and-short-key-a34a0af0.js.map → access-and-short-key-360ff997.js.map} +0 -0
  856. /package/dist/kolibri/{align-bc8d98ac.js.map → align-ef25bf72.js.map} +0 -0
  857. /package/dist/kolibri/{app-globals-f4ebdb75.js.map → app-globals-e679e588.js.map} +0 -0
  858. /package/dist/kolibri/{associated.controller-3dab1e00.js.map → associated.controller-7e8760a4.js.map} +0 -0
  859. /package/dist/kolibri/{badge-text-c7f39390.js.map → badge-text-920f8e25.js.map} +0 -0
  860. /package/dist/kolibri/{color-a464afb7.js.map → color-0c64809c.js.map} +0 -0
  861. /package/dist/kolibri/{controller-87dfc9ee.js.map → controller-08b97a5b.js.map} +0 -0
  862. /package/dist/kolibri/{controller-4fa871d2.js.map → controller-17a2fd4e.js.map} +0 -0
  863. /package/dist/kolibri/{controller-e97b79b7.js.map → controller-9a8498ba.js.map} +0 -0
  864. /package/dist/kolibri/{controller-8ace9659.js.map → controller-ea3c27ba.js.map} +0 -0
  865. /package/dist/kolibri/{controller-cfa11279.js.map → controller-f2dc1020.js.map} +0 -0
  866. /package/dist/kolibri/{controller-icon-811adcf4.js.map → controller-icon-faf40010.js.map} +0 -0
  867. /package/dist/kolibri/{custom-class-6eaba98d.js.map → custom-class-aa04d105.js.map} +0 -0
  868. /package/dist/kolibri/{debounce-112fa67e.js.map → debounce-87469330.js.map} +0 -0
  869. /package/dist/kolibri/{dev.utils-3a332b59.js.map → dev.utils-7d7ddeeb.js.map} +0 -0
  870. /package/dist/kolibri/{devtools-62562887.js.map → devtools-77a1d588.js.map} +0 -0
  871. /package/dist/kolibri/{disabled-f923601e.js.map → disabled-3bfa3898.js.map} +0 -0
  872. /package/dist/kolibri/{has-closer-a7dc359b.js.map → has-closer-c90da2b1.js.map} +0 -0
  873. /package/dist/kolibri/{hide-label-2b46168f.js.map → hide-label-6f1ea82b.js.map} +0 -0
  874. /package/dist/kolibri/{href-823c69d8.js.map → href-e07672da.js.map} +0 -0
  875. /package/dist/kolibri/{i18n-820d85c7.js.map → i18n-b4507b80.js.map} +0 -0
  876. /package/dist/kolibri/{icons-d29928c3.js.map → icons-26be7462.js.map} +0 -0
  877. /package/dist/kolibri/{image-source-bd7ca7b4.js.map → image-source-44a71276.js.map} +0 -0
  878. /package/dist/kolibri/{label-51d66c9d.js.map → label-2d7e2d68.js.map} +0 -0
  879. /package/dist/kolibri/{open-47cb3e2a.js.map → open-ae55f20a.js.map} +0 -0
  880. /package/dist/kolibri/{rows-92682fe5.js.map → rows-87b2a0e8.js.map} +0 -0
  881. /package/dist/kolibri/{show-82afe4f8.js.map → show-03f9068a.js.map} +0 -0
  882. /package/dist/kolibri/{spell-check-5b365d45.js.map → spell-check-0db58373.js.map} +0 -0
  883. /package/dist/kolibri/{suggestions-7e70d4e3.js.map → suggestions-68834329.js.map} +0 -0
  884. /package/dist/kolibri/{table-selection-eaee72ee.js.map → table-selection-e9061dc2.js.map} +0 -0
  885. /package/dist/kolibri/{tooltip-align-de415afb.js.map → tooltip-align-6c3169e7.js.map} +0 -0
  886. /package/dist/kolibri/{unique-nav-labels-917eec2b.js.map → unique-nav-labels-ff53a6d0.js.map} +0 -0
  887. /package/dist/kolibri/{validation-db4e7b56.js.map → validation-0a3825a7.js.map} +0 -0
  888. /package/dist/kolibri/{validation-c4177384.js.map → validation-a88d38d8.js.map} +0 -0
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-2999bd56.js"),componentNames=require("./component-names-2c750b1b.js"),defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n .badge-text-hint {\n background-color: lightgray;\n color: black;\n }\n}\n@layer kol-component {\n .kol-tooltip-wc {\n display: contents;\n contain: layout;\n }\n .kol-tooltip-wc .tooltip-floating {\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n /* Shared between content and arrow */\n .kol-tooltip-wc .tooltip-area {\n background-color: #fff;\n color: #000;\n }\n .kol-tooltip-wc .tooltip-arrow {\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip-wc .tooltip-content {\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n :host {\n display: inline-block;\n }\n :is(a, button) {\n align-items: baseline;\n display: inline-flex;\n place-items: center;\n text-align: left;\n text-decoration-line: none;\n }\n :is(a, button) .kol-span-wc .span-label {\n text-decoration-line: underline;\n }\n a:is(:focus, :hover):not([aria-disabled]) .kol-span-wc .span-label,\n button:is(:focus, :hover):not([disabled]) .kol-span-wc .span-label {\n text-decoration-thickness: 0.2em;\n }\n .skip {\n left: calc(-99999rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n z-index: 9999999;\n line-height: 1;\n }\n .skip:focus {\n background-color: #fff;\n left: unset;\n padding: 1em;\n position: unset;\n }\n .kol-icon.external-link-icon {\n display: inline-flex;\n margin-left: calc(8rem / var(--kolibri-root-font-size, 16));\n }\n}",KolButtonLinkDefaultStyle0=defaultStyleCss,KolButtonLink=class{constructor(n){index.registerInstance(this,n),this.catchRef=n=>{this.buttonWcRef=n},this._accessKey=void 0,this._ariaControls=void 0,this._ariaDescription=void 0,this._ariaExpanded=void 0,this._ariaSelected=void 0,this._disabled=!1,this._hideLabel=!1,this._icons=void 0,this._id=void 0,this._label=void 0,this._name=void 0,this._on=void 0,this._role=void 0,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._type="button",this._value=void 0}async getValue(){return this._value}async focus(){await this.kolFocus()}async kolFocus(){var n;await(null===(n=this.buttonWcRef)||void 0===n?void 0:n.kolFocus())}render(){return index.h(index.Host,{key:"74a1c493bcd94ecbdcf72abeca56d9cbbd6aaf93",class:"kol-button-link"},index.h(componentNames.KolButtonWcTag,{key:"ff6fcef159e59705877a277c40937bf8f5784987",ref:this.catchRef,_accessKey:this._accessKey,_ariaControls:this._ariaControls,_ariaDescription:this._ariaDescription,_ariaExpanded:this._ariaExpanded,_ariaSelected:this._ariaSelected,_disabled:this._disabled,_icons:this._icons,_hideLabel:this._hideLabel,_id:this._id,_label:this._label,_name:this._name,_on:this._on,_role:"link",_shortKey:this._shortKey,_syncValueBySelector:this._syncValueBySelector,_tabIndex:this._tabIndex,_tooltipAlign:this._tooltipAlign,_type:this._type,_value:this._value},index.h("slot",{key:"6960e83e90aa20785140c453576200e26d152d56",name:"expert",slot:"expert"})))}static get delegatesFocus(){return!0}};KolButtonLink.style={default:KolButtonLinkDefaultStyle0},exports.kol_button_link=KolButtonLink;
4
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-4cec6984.js"),componentNames=require("./component-names-2c750b1b.js"),defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n color: black;\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%; /* 100% needed for custom width from outside */\n margin: 0;\n padding: 0;\n border: none;\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-component {\n .kol-tooltip-wc {\n display: contents;\n contain: layout;\n }\n .kol-tooltip-wc .tooltip-floating {\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n max-width: 90vw;\n max-height: 90vh;\n visibility: hidden;\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n }\n /* Shared between content and arrow */\n .kol-tooltip-wc .tooltip-area {\n color: #000;\n background-color: #fff;\n }\n .kol-tooltip-wc .tooltip-arrow {\n transform: rotate(45deg);\n position: absolute;\n z-index: 999;\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip-wc .tooltip-content {\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n :host {\n display: inline-block;\n }\n :is(a, button) {\n display: inline-flex;\n align-items: baseline;\n place-items: center;\n text-align: left;\n text-decoration-line: none;\n }\n :is(a, button) .kol-span-wc .span-label {\n text-decoration-line: underline;\n }\n a:is(:focus, :hover):not([aria-disabled]) .kol-span-wc .span-label,\n button:is(:focus, :hover):not([disabled]) .kol-span-wc .span-label {\n text-decoration-thickness: 0.2em;\n }\n .skip {\n position: absolute;\n left: calc(-99999rem / var(--kolibri-root-font-size, 16));\n z-index: 9999999;\n line-height: 1;\n }\n .skip:focus {\n background-color: #fff;\n position: unset;\n left: unset;\n padding: 1em;\n }\n .kol-icon.external-link-icon {\n display: inline-flex;\n margin-left: calc(8rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n button {\n min-height: unset;\n }\n}",KolButtonLinkDefaultStyle0=defaultStyleCss,KolButtonLink=class{constructor(n){index.registerInstance(this,n),this.catchRef=n=>{this.buttonWcRef=n},this._accessKey=void 0,this._ariaControls=void 0,this._ariaDescription=void 0,this._ariaExpanded=void 0,this._ariaSelected=void 0,this._disabled=!1,this._hideLabel=!1,this._icons=void 0,this._id=void 0,this._label=void 0,this._name=void 0,this._on=void 0,this._role=void 0,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._type="button",this._value=void 0}async getValue(){return this._value}async focus(){await this.kolFocus()}async kolFocus(){var n;await(null===(n=this.buttonWcRef)||void 0===n?void 0:n.kolFocus())}render(){return index.h(index.Host,{key:"74a1c493bcd94ecbdcf72abeca56d9cbbd6aaf93",class:"kol-button-link"},index.h(componentNames.KolButtonWcTag,{key:"9bcabede025937492ce8082a3ceb14184352d5b0",ref:this.catchRef,_accessKey:this._accessKey,_ariaControls:this._ariaControls,_ariaDescription:this._ariaDescription,_ariaExpanded:this._ariaExpanded,_ariaSelected:this._ariaSelected,_disabled:this._disabled,_icons:this._icons,_hideLabel:this._hideLabel,_id:this._id,_label:this._label,_name:this._name,_on:this._on,_shortKey:this._shortKey,_syncValueBySelector:this._syncValueBySelector,_tabIndex:this._tabIndex,_tooltipAlign:this._tooltipAlign,_type:this._type,_value:this._value},index.h("slot",{key:"091e5f56f9184bbee891e6e12430d3aafe3690de",name:"expert",slot:"expert"})))}static get delegatesFocus(){return!0}};KolButtonLink.style={default:KolButtonLinkDefaultStyle0},exports.kol_button_link=KolButtonLink;
@@ -1 +1 @@
1
- {"file":"kol-button-link.entry.cjs.js","mappings":";;;;;;;;;;AAAA,MAAM,eAAe,GAAG,06MAA06M,CAAC;AACn8M,mCAAe,eAAe;;MC8BjB,aAAa;;;QAGR,aAAQ,GAAG,CAAC,GAA4B;YACxD,IAAI,CAAC,WAAW,GAAG,GAAG,CAAC;SACvB,CAAC;;;;;;yBAyFmC,KAAK;0BAOJ,KAAK;;;;;;;;;;6BAmDW,KAAK;qBAKf,QAAQ;;;IAjJ7C,MAAM,QAAQ;QACpB,OAAO,IAAI,CAAC,MAAM,CAAC;KACnB;IAMM,MAAM,KAAK;QACjB,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;KACtB;IAMM,MAAM,QAAQ;;QACpB,OAAM,MAAA,IAAI,CAAC,WAAW,0CAAE,QAAQ,EAAE,CAAA,CAAC;KACnC;IAEM,MAAM;QACZ,QACCA,QAACC,UAAI,qDAAC,KAAK,EAAC,iBAAiB,IAC5BD,QAACE,6BAAc,qDACd,GAAG,EAAE,IAAI,CAAC,QAAQ,EAClB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EACvC,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,KAAK,EAAC,MAAM,EACZ,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,oBAAoB,EAAE,IAAI,CAAC,oBAAoB,EAC/C,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,MAAM,EAAE,IAAI,CAAC,MAAM,IAEnBF,mEAAM,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,GAAQ,CACzB,CACX,EACN;KACF;;;;;;;;;","names":["h","Host","KolButtonWcTag"],"sources":["src/components/button-link/style.scss?tag=kol-button-link&mode=default&encapsulation=shadow","src/components/button-link/shadow.tsx"],"sourcesContent":["@use '../style' as *;\n@use '../link' as *;\n","import type {\n\tAccessKeyPropType,\n\tAlternativeButtonLinkRolePropType,\n\tAriaDescriptionPropType,\n\tButtonCallbacksPropType,\n\tButtonLinkProps,\n\tButtonTypePropType,\n\tFocusableElement,\n\tIconsPropType,\n\tIdPropType,\n\tLabelWithExpertSlotPropType,\n\tNamePropType,\n\tShortKeyPropType,\n\tStencilUnknown,\n\tStringified,\n\tSyncValueBySelectorPropType,\n\tTooltipAlignPropType,\n} from '../../schema';\nimport type { JSX } from '@stencil/core';\nimport { Component, h, Host, Method, Prop } from '@stencil/core';\nimport { KolButtonWcTag } from '../../core/component-names';\n\n@Component({\n\ttag: 'kol-button-link',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: {\n\t\tdelegatesFocus: true,\n\t},\n})\nexport class KolButtonLink implements ButtonLinkProps, FocusableElement {\n\tprivate buttonWcRef?: HTMLKolButtonWcElement;\n\n\tprivate readonly catchRef = (ref?: HTMLKolButtonWcElement) => {\n\t\tthis.buttonWcRef = ref;\n\t};\n\n\t/**\n\t * Returns the current value.\n\t */\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async getValue(): Promise<Stringified<StencilUnknown> | undefined> {\n\t\treturn this._value;\n\t}\n\n\t/**\n\t * @deprecated Use kolFocus instead.\n\t */\n\t@Method()\n\tpublic async focus() {\n\t\tawait this.kolFocus();\n\t}\n\n\t/**\n\t * Focuses the button element.\n\t */\n\t@Method()\n\tpublic async kolFocus() {\n\t\tawait this.buttonWcRef?.kolFocus();\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-button-link\">\n\t\t\t\t<KolButtonWcTag\n\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\t_accessKey={this._accessKey}\n\t\t\t\t\t_ariaControls={this._ariaControls}\n\t\t\t\t\t_ariaDescription={this._ariaDescription}\n\t\t\t\t\t_ariaExpanded={this._ariaExpanded}\n\t\t\t\t\t_ariaSelected={this._ariaSelected}\n\t\t\t\t\t_disabled={this._disabled}\n\t\t\t\t\t_icons={this._icons}\n\t\t\t\t\t_hideLabel={this._hideLabel}\n\t\t\t\t\t_id={this._id}\n\t\t\t\t\t_label={this._label}\n\t\t\t\t\t_name={this._name}\n\t\t\t\t\t_on={this._on}\n\t\t\t\t\t_role=\"link\"\n\t\t\t\t\t_shortKey={this._shortKey}\n\t\t\t\t\t_syncValueBySelector={this._syncValueBySelector}\n\t\t\t\t\t_tabIndex={this._tabIndex}\n\t\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t\t_type={this._type}\n\t\t\t\t\t_value={this._value}\n\t\t\t\t>\n\t\t\t\t\t<slot name=\"expert\" slot=\"expert\"></slot>\n\t\t\t\t</KolButtonWcTag>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines which key combination can be used to trigger or focus the interactive element of the component.\n\t */\n\t@Prop() public _accessKey?: AccessKeyPropType;\n\n\t/**\n\t * Defines which elements are controlled by this component. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls)\n\t */\n\t@Prop() public _ariaControls?: string;\n\n\t/**\n\t * Defines the value for the aria-description attribute.\n\t */\n\t@Prop() public _ariaDescription?: AriaDescriptionPropType;\n\n\t/**\n\t * Defines whether the interactive element of the component expanded something. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)\n\t * @TODO: Change type back to `AriaExpandedPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _ariaExpanded?: boolean;\n\n\t/**\n\t * Defines whether the interactive element of the component is selected (e.g. role=tab). (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected)\n\t * @TODO: Change type back to `AriaSelectedPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _ariaSelected?: boolean;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t * @TODO: Change type back to `DisabledPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Hides the caption by default and displays the caption text with a tooltip when the\n\t * interactive element is focused or the mouse is over it.\n\t * @TODO: Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hideLabel?: boolean = false;\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: IconsPropType;\n\n\t/**\n\t * Defines the internal ID of the primary component element.\n\t */\n\t@Prop() public _id?: IdPropType;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label!: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Defines the technical name of an input field.\n\t */\n\t@Prop() public _name?: NamePropType;\n\n\t/**\n\t * Gibt die EventCallback-Funktionen für die Button-Events an.\n\t */\n\t@Prop() public _on?: ButtonCallbacksPropType<StencilUnknown>;\n\n\t/**\n\t * Defines the role of the components primary element.\n\t */\n\t@Prop() public _role?: AlternativeButtonLinkRolePropType;\n\n\t/**\n\t * Adds a visual short key hint to the component.\n\t */\n\t@Prop() public _shortKey?: ShortKeyPropType;\n\n\t/**\n\t * Selector for synchronizing the value with another input element.\n\t * @internal\n\t */\n\t@Prop() public _syncValueBySelector?: SyncValueBySelectorPropType;\n\n\t/**\n\t * Defines which tab-index the primary element of the component has. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)\n\t */\n\t@Prop() public _tabIndex?: number;\n\n\t/**\n\t * Defines where to show the Tooltip preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _tooltipAlign?: TooltipAlignPropType = 'top';\n\n\t/**\n\t * Defines either the type of the component or of the components interactive element.\n\t */\n\t@Prop() public _type?: ButtonTypePropType = 'button';\n\n\t/**\n\t * Defines the value that the button emits on click.\n\t */\n\t@Prop() public _value?: Stringified<StencilUnknown>;\n}\n"],"version":3}
1
+ {"file":"kol-button-link.entry.cjs.js","mappings":";;;;;;;;;;AAAA,MAAM,eAAe,GAAG,i7MAAi7M,CAAC;AAC18M,mCAAe,eAAe;;MC8BjB,aAAa;;;QAGR,aAAQ,GAAG,CAAC,GAA4B;YACxD,IAAI,CAAC,WAAW,GAAG,GAAG,CAAC;SACvB,CAAC;;;;;;yBAwFmC,KAAK;0BAOJ,KAAK;;;;;;;;;;6BAqDW,KAAK;qBAKf,QAAQ;;;IAlJ7C,MAAM,QAAQ;QACpB,OAAO,IAAI,CAAC,MAAM,CAAC;KACnB;IAMM,MAAM,KAAK;QACjB,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;KACtB;IAMM,MAAM,QAAQ;;QACpB,OAAM,MAAA,IAAI,CAAC,WAAW,0CAAE,QAAQ,EAAE,CAAA,CAAC;KACnC;IAEM,MAAM;QACZ,QACCA,QAACC,UAAI,qDAAC,KAAK,EAAC,iBAAiB,IAC5BD,QAACE,6BAAc,qDACd,GAAG,EAAE,IAAI,CAAC,QAAQ,EAClB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EACvC,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,oBAAoB,EAAE,IAAI,CAAC,oBAAoB,EAC/C,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,MAAM,EAAE,IAAI,CAAC,MAAM,IAEnBF,mEAAM,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,GAAQ,CACzB,CACX,EACN;KACF;;;;;;;;;","names":["h","Host","KolButtonWcTag"],"sources":["src/components/button-link/style.scss?tag=kol-button-link&mode=default&encapsulation=shadow","src/components/button-link/shadow.tsx"],"sourcesContent":["@use '../style' as *;\n@use '../link' as *;\n\n@layer kol-component {\n\tbutton {\n\t\tmin-height: unset; // Inline links may have the height of the flowing text and do not necessarily have to be 44px high.\n\t}\n}\n","import type {\n\tAccessKeyPropType,\n\tAlternativeButtonLinkRolePropType,\n\tAriaDescriptionPropType,\n\tButtonCallbacksPropType,\n\tButtonLinkProps,\n\tButtonTypePropType,\n\tFocusableElement,\n\tIconsPropType,\n\tIdPropType,\n\tLabelWithExpertSlotPropType,\n\tNamePropType,\n\tShortKeyPropType,\n\tStencilUnknown,\n\tStringified,\n\tSyncValueBySelectorPropType,\n\tTooltipAlignPropType,\n} from '../../schema';\nimport type { JSX } from '@stencil/core';\nimport { Component, h, Host, Method, Prop } from '@stencil/core';\nimport { KolButtonWcTag } from '../../core/component-names';\n\n@Component({\n\ttag: 'kol-button-link',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: {\n\t\tdelegatesFocus: true,\n\t},\n})\nexport class KolButtonLink implements ButtonLinkProps, FocusableElement {\n\tprivate buttonWcRef?: HTMLKolButtonWcElement;\n\n\tprivate readonly catchRef = (ref?: HTMLKolButtonWcElement) => {\n\t\tthis.buttonWcRef = ref;\n\t};\n\n\t/**\n\t * Returns the current value.\n\t */\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async getValue(): Promise<Stringified<StencilUnknown> | undefined> {\n\t\treturn this._value;\n\t}\n\n\t/**\n\t * @deprecated Use kolFocus instead.\n\t */\n\t@Method()\n\tpublic async focus() {\n\t\tawait this.kolFocus();\n\t}\n\n\t/**\n\t * Focuses the button element.\n\t */\n\t@Method()\n\tpublic async kolFocus() {\n\t\tawait this.buttonWcRef?.kolFocus();\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-button-link\">\n\t\t\t\t<KolButtonWcTag\n\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\t_accessKey={this._accessKey}\n\t\t\t\t\t_ariaControls={this._ariaControls}\n\t\t\t\t\t_ariaDescription={this._ariaDescription}\n\t\t\t\t\t_ariaExpanded={this._ariaExpanded}\n\t\t\t\t\t_ariaSelected={this._ariaSelected}\n\t\t\t\t\t_disabled={this._disabled}\n\t\t\t\t\t_icons={this._icons}\n\t\t\t\t\t_hideLabel={this._hideLabel}\n\t\t\t\t\t_id={this._id}\n\t\t\t\t\t_label={this._label}\n\t\t\t\t\t_name={this._name}\n\t\t\t\t\t_on={this._on}\n\t\t\t\t\t_shortKey={this._shortKey}\n\t\t\t\t\t_syncValueBySelector={this._syncValueBySelector}\n\t\t\t\t\t_tabIndex={this._tabIndex}\n\t\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t\t_type={this._type}\n\t\t\t\t\t_value={this._value}\n\t\t\t\t>\n\t\t\t\t\t<slot name=\"expert\" slot=\"expert\"></slot>\n\t\t\t\t</KolButtonWcTag>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines which key combination can be used to trigger or focus the interactive element of the component.\n\t */\n\t@Prop() public _accessKey?: AccessKeyPropType;\n\n\t/**\n\t * Defines which elements are controlled by this component. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls)\n\t */\n\t@Prop() public _ariaControls?: string;\n\n\t/**\n\t * Defines the value for the aria-description attribute.\n\t */\n\t@Prop() public _ariaDescription?: AriaDescriptionPropType;\n\n\t/**\n\t * Defines whether the interactive element of the component expanded something. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)\n\t * @TODO: Change type back to `AriaExpandedPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _ariaExpanded?: boolean;\n\n\t/**\n\t * Defines whether the interactive element of the component is selected (e.g. role=tab). (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected)\n\t * @TODO: Change type back to `AriaSelectedPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _ariaSelected?: boolean;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t * @TODO: Change type back to `DisabledPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Hides the caption by default and displays the caption text with a tooltip when the\n\t * interactive element is focused or the mouse is over it.\n\t * @TODO: Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hideLabel?: boolean = false;\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: IconsPropType;\n\n\t/**\n\t * Defines the internal ID of the primary component element.\n\t */\n\t@Prop() public _id?: IdPropType;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label!: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Defines the technical name of an input field.\n\t */\n\t@Prop() public _name?: NamePropType;\n\n\t/**\n\t * Gibt die EventCallback-Funktionen für die Button-Events an.\n\t */\n\t@Prop() public _on?: ButtonCallbacksPropType<StencilUnknown>;\n\n\t/**\n\t * Defines the role of the components primary element.\n\t *\n\t * @deprecated We prefer the semantic role of the HTML element and do not allow for customization. We will remove this prop in the future.\n\t */\n\t@Prop() public _role?: AlternativeButtonLinkRolePropType;\n\n\t/**\n\t * Adds a visual short key hint to the component.\n\t */\n\t@Prop() public _shortKey?: ShortKeyPropType;\n\n\t/**\n\t * Selector for synchronizing the value with another input element.\n\t * @internal\n\t */\n\t@Prop() public _syncValueBySelector?: SyncValueBySelectorPropType;\n\n\t/**\n\t * Defines which tab-index the primary element of the component has. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)\n\t */\n\t@Prop() public _tabIndex?: number;\n\n\t/**\n\t * Defines where to show the Tooltip preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _tooltipAlign?: TooltipAlignPropType = 'top';\n\n\t/**\n\t * Defines either the type of the component or of the components interactive element.\n\t */\n\t@Prop() public _type?: ButtonTypePropType = 'button';\n\n\t/**\n\t * Defines the value that the button emits on click.\n\t */\n\t@Prop() public _value?: Stringified<StencilUnknown>;\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index$1=require("./index-2999bd56.js"),index=require("./index-4d023d25.js"),events=require("./events-221fcb43.js"),dev_utils=require("./dev.utils-5242a5d1.js"),controller=require("./controller-5f8b2d27.js"),associated_controller=require("./associated.controller-52a935b6.js"),componentNames=require("./component-names-2c750b1b.js"),accessAndShortKey=require("./access-and-short-key-5bfd764e.js"),buttonVariant=require("./button-variant-88579d18.js"),customClass=require("./custom-class-0e90f691.js"),disabled=require("./disabled-a4caeaf0.js"),hideLabel=require("./hide-label-c4e4da8c.js"),icons=require("./icons-f339f0f3.js"),label=require("./label-32668ef6.js"),tooltipAlign=require("./tooltip-align-cf8829c6.js");require("./align-033dd3ec.js");const validateAriaControls=(t,e)=>{index.watchString(t,"_ariaControls",e)},validateAriaSelected=(t,e)=>{index.watchBoolean(t,"_ariaSelected",e)},validateButtonCallbacks=(t,e)=>{index.watchValidator(t,"_on",(t=>index.isObject(t)),new Set(["ButtonCallbacksPropType {Events.onClick, Events.onMouseDown}"]),e)},buttonTypePropTypeOptions=["button","reset","submit"],validateButtonType=(t,e)=>{index.watchValidator(t,"_type",(t=>"string"==typeof t&&buttonTypePropTypeOptions.includes(t)),new Set([`KoliBriButtonType {${buttonTypePropTypeOptions.join(", ")}`]),e)},KolButtonWc=class{async kolFocus(){var t;null===(t=this.buttonRef)||void 0===t||t.focus()}render(){var t,e;const a=index.showExpertSlot(this.state._label),i=Boolean(null===(e=null===(t=this.state._ariaDescription)||void 0===t?void 0:t.trim())||void 0===e?void 0:e.length);return index$1.h(index$1.Host,{key:"d45ad337e0a56f359cf274d2955bd75841647804",class:"kol-button-wc"},index$1.h("button",Object.assign({key:"3b926e8d0bb625b36119a8f8ba1865530473c097",ref:this.catchRef,accessKey:this.state._accessKey||void 0,"aria-controls":this.state._ariaControls,"aria-describedby":i?this.internalDescriptionById:void 0,"aria-expanded":index.mapBoolean2String(this.state._ariaExpanded),"aria-haspopup":this._ariaHasPopup,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,"aria-selected":index.mapStringOrBoolean2String(this.state._ariaSelected),class:{button:!0,disabled:!0===this.state._disabled,[this.state._variant]:"custom"!==this.state._variant,[this.state._customClass]:"custom"===this.state._variant&&"string"==typeof this.state._customClass&&this.state._customClass.length>0,"hide-label":!0===this.state._hideLabel},disabled:this.state._disabled,id:this.state._id,name:this.state._name},this.state._on,{onClick:this.onClick,role:this.state._role,tabIndex:this.state._tabIndex,type:this.state._type}),index$1.h(componentNames.KolSpanWcTag,{key:"54be590b87352dcf4580c08184927326a87eed4c",class:"button-inner",_badgeText:this.state._accessKey||this.state._shortKey,_icons:this.state._icons,_hideLabel:this.state._hideLabel,_label:a?"":this.state._label},index$1.h("slot",{key:"b6cc8540a5012bbe70b41b971e462fb143f3c23d",name:"expert",slot:"expert"}))),index$1.h(componentNames.KolTooltipWcTag,{key:"64fe65b5784df3ed17a49ef8cbfbade9f1f59369","aria-hidden":"true",hidden:a||!this.state._hideLabel,_badgeText:this.state._accessKey||this.state._shortKey,_align:this.state._tooltipAlign,_label:"string"==typeof this.state._label?this.state._label:""}),i&&index$1.h("span",{key:"15bf98431ffac9f6739639277b1b3b8ba9477304",class:"visually-hidden",id:this.internalDescriptionById},this.state._ariaDescription))}constructor(t){index$1.registerInstance(this,t),this.internalDescriptionById=dev_utils.nonce(),this.catchRef=t=>{this.buttonRef=t},this.onClick=t=>{var e,a;"submit"===this.state._type?controller.propagateSubmitEventToForm({form:this.host,ref:this.buttonRef}):"reset"===this.state._type?controller.propagateResetEventToForm({form:this.host,ref:this.buttonRef}):(events.stopPropagation(t),events.tryToDispatchKoliBriEvent("click",this.host,this.state._value),this.controller.setFormAssociatedValue(this.state._value),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onClick)&&(index.setEventTarget(t,this.buttonRef),null===(a=this.state._on)||void 0===a||a.onClick(t,this.state._value)))},this._accessKey=void 0,this._ariaControls=void 0,this._ariaDescription=void 0,this._ariaExpanded=void 0,this._ariaHasPopup=void 0,this._ariaSelected=void 0,this._customClass=void 0,this._disabled=!1,this._hideLabel=!1,this._icons=void 0,this._id=void 0,this._label=void 0,this._name=void 0,this._on=void 0,this._role=void 0,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._type="button",this._value=void 0,this._variant="normal",this.state={_icons:{},_label:"",_on:{},_type:"button",_variant:"normal"},this.controller=new associated_controller.AssociatedInputController(this,"button",this.host)}validateAccessKey(t){accessAndShortKey.validateAccessKey(this,t),accessAndShortKey.validateAccessAndShortKey(t,this._shortKey)}validateAriaControls(t){validateAriaControls(this,t)}validateAriaDescription(t){buttonVariant.validateAriaDescription(this,t)}validateAriaExpanded(t){buttonVariant.validateAriaExpanded(this,t)}validateAriaSelected(t){validateAriaSelected(this,t)}validateCustomClass(t){customClass.validateCustomClass(this,t)}validateDisabled(t){disabled.validateDisabled(this,t)}validateHideLabel(t){hideLabel.validateHideLabel(this,t)}validateIcons(t){icons.validateIcons(this,t)}validateId(t){index.watchString(this,"_id",t)}validateLabel(t){label.validateLabelWithExpertSlot(this,t,{required:!0})}validateName(t){this.controller.validateName(t)}validateOn(t){validateButtonCallbacks(this,t)}validateRole(t){buttonVariant.validateAlternativeButtonLinkRole(this,t)}validateShortKey(t){accessAndShortKey.validateShortKey(this,t),accessAndShortKey.validateAccessAndShortKey(this._accessKey,t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){accessAndShortKey.validateTabIndex(this,t)}validateTooltipAlign(t){tooltipAlign.validateTooltipAlign(this,t)}validateType(t){validateButtonType(this,t)}validateValue(t){index.setState(this,"_value",t),this.controller.setFormAssociatedValue(this.state._value)}validateVariant(t){buttonVariant.validateButtonVariant(this,t)}componentWillLoad(){this.validateAccessKey(this._accessKey),this.validateAriaControls(this._ariaControls),this.validateAriaDescription(this._ariaDescription),this.validateAriaExpanded(this._ariaExpanded),this.validateAriaSelected(this._ariaSelected),this.validateCustomClass(this._customClass),this.validateDisabled(this._disabled),this.validateHideLabel(this._hideLabel),this.validateIcons(this._icons),this.validateId(this._id),this.validateLabel(this._label),this.validateName(this._name),this.validateOn(this._on),this.validateRole(this._role),this.validateShortKey(this._shortKey),this.validateSyncValueBySelector(this._syncValueBySelector),this.validateTabIndex(this._tabIndex),this.validateTooltipAlign(this._tooltipAlign),this.validateType(this._type),this.validateValue(this._value),this.validateVariant(this._variant),accessAndShortKey.validateAccessAndShortKey(this._accessKey,this._shortKey)}get host(){return index$1.getElement(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_ariaControls:["validateAriaControls"],_ariaDescription:["validateAriaDescription"],_ariaExpanded:["validateAriaExpanded"],_ariaSelected:["validateAriaSelected"],_customClass:["validateCustomClass"],_disabled:["validateDisabled"],_hideLabel:["validateHideLabel"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_name:["validateName"],_on:["validateOn"],_role:["validateRole"],_shortKey:["validateShortKey"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_tooltipAlign:["validateTooltipAlign"],_type:["validateType"],_value:["validateValue"],_variant:["validateVariant"]}}};exports.kol_button_wc=KolButtonWc;
4
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index$1=require("./index-4cec6984.js"),index=require("./index-4974b34f.js"),events=require("./events-221fcb43.js"),dev_utils=require("./dev.utils-1101f05f.js"),controller=require("./controller-70c9d7c2.js"),associated_controller=require("./associated.controller-7bf7ebae.js"),componentNames=require("./component-names-2c750b1b.js"),accessAndShortKey=require("./access-and-short-key-18fca6a6.js"),buttonVariant=require("./button-variant-6f472994.js"),customClass=require("./custom-class-7d2088ba.js"),disabled=require("./disabled-279af650.js"),hideLabel=require("./hide-label-8179f9f6.js"),icons=require("./icons-8b64c1ab.js"),label=require("./label-d59f00da.js"),tooltipAlign=require("./tooltip-align-ee316e05.js");require("./align-5570f44b.js");const validateAriaControls=(t,e)=>{index.watchString(t,"_ariaControls",e)},validateAriaSelected=(t,e)=>{index.watchBoolean(t,"_ariaSelected",e)},validateButtonCallbacks=(t,e)=>{index.watchValidator(t,"_on",t=>index.isObject(t),new Set(["ButtonCallbacksPropType {Events.onClick, Events.onMouseDown}"]),e)},buttonTypePropTypeOptions=["button","reset","submit"],validateButtonType=(t,e)=>{index.watchValidator(t,"_type",t=>"string"==typeof t&&buttonTypePropTypeOptions.includes(t),new Set([`KoliBriButtonType {${buttonTypePropTypeOptions.join(", ")}`]),e)},KolButtonWc=class{async kolFocus(){var t;null===(t=this.buttonRef)||void 0===t||t.focus()}render(){var t,e;const a=index.showExpertSlot(this.state._label),i=Boolean(null===(e=null===(t=this.state._ariaDescription)||void 0===t?void 0:t.trim())||void 0===e?void 0:e.length);return index$1.h(index$1.Host,{key:"d45ad337e0a56f359cf274d2955bd75841647804",class:"kol-button-wc"},index$1.h("button",Object.assign({key:"3b926e8d0bb625b36119a8f8ba1865530473c097",ref:this.catchRef,accessKey:this.state._accessKey||void 0,"aria-controls":this.state._ariaControls,"aria-describedby":i?this.internalDescriptionById:void 0,"aria-expanded":index.mapBoolean2String(this.state._ariaExpanded),"aria-haspopup":this._ariaHasPopup,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,"aria-selected":index.mapStringOrBoolean2String(this.state._ariaSelected),class:{button:!0,disabled:!0===this.state._disabled,[this.state._variant]:"custom"!==this.state._variant,[this.state._customClass]:"custom"===this.state._variant&&"string"==typeof this.state._customClass&&this.state._customClass.length>0,"hide-label":!0===this.state._hideLabel},disabled:this.state._disabled,id:this.state._id,name:this.state._name},this.state._on,{onClick:this.onClick,role:this.state._role,tabIndex:this.state._tabIndex,type:this.state._type}),index$1.h(componentNames.KolSpanWcTag,{key:"54be590b87352dcf4580c08184927326a87eed4c",class:"button-inner",_badgeText:this.state._accessKey||this.state._shortKey,_icons:this.state._icons,_hideLabel:this.state._hideLabel,_label:a?"":this.state._label},index$1.h("slot",{key:"b6cc8540a5012bbe70b41b971e462fb143f3c23d",name:"expert",slot:"expert"}))),index$1.h(componentNames.KolTooltipWcTag,{key:"64fe65b5784df3ed17a49ef8cbfbade9f1f59369","aria-hidden":"true",hidden:a||!this.state._hideLabel,_badgeText:this.state._accessKey||this.state._shortKey,_align:this.state._tooltipAlign,_label:"string"==typeof this.state._label?this.state._label:""}),i&&index$1.h("span",{key:"15bf98431ffac9f6739639277b1b3b8ba9477304",class:"visually-hidden",id:this.internalDescriptionById},this.state._ariaDescription))}constructor(t){index$1.registerInstance(this,t),this.internalDescriptionById=dev_utils.nonce(),this.catchRef=t=>{this.buttonRef=t},this.onClick=t=>{var e,a;"submit"===this.state._type?controller.propagateSubmitEventToForm({form:this.host,ref:this.buttonRef}):"reset"===this.state._type?controller.propagateResetEventToForm({form:this.host,ref:this.buttonRef}):(events.stopPropagation(t),events.tryToDispatchKoliBriEvent("click",this.host,this.state._value),this.controller.setFormAssociatedValue(this.state._value),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onClick)&&(index.setEventTarget(t,this.buttonRef),null===(a=this.state._on)||void 0===a||a.onClick(t,this.state._value)))},this._accessKey=void 0,this._ariaControls=void 0,this._ariaDescription=void 0,this._ariaExpanded=void 0,this._ariaHasPopup=void 0,this._ariaSelected=void 0,this._customClass=void 0,this._disabled=!1,this._hideLabel=!1,this._icons=void 0,this._id=void 0,this._label=void 0,this._name=void 0,this._on=void 0,this._role=void 0,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._type="button",this._value=void 0,this._variant="normal",this.state={_icons:{},_label:"",_on:{},_type:"button",_variant:"normal"},this.controller=new associated_controller.AssociatedInputController(this,"button",this.host)}validateAccessKey(t){accessAndShortKey.validateAccessKey(this,t),accessAndShortKey.validateAccessAndShortKey(t,this._shortKey)}validateAriaControls(t){validateAriaControls(this,t)}validateAriaDescription(t){buttonVariant.validateAriaDescription(this,t)}validateAriaExpanded(t){buttonVariant.validateAriaExpanded(this,t)}validateAriaSelected(t){validateAriaSelected(this,t)}validateCustomClass(t){customClass.validateCustomClass(this,t)}validateDisabled(t){disabled.validateDisabled(this,t)}validateHideLabel(t){hideLabel.validateHideLabel(this,t)}validateIcons(t){icons.validateIcons(this,t)}validateId(t){index.watchString(this,"_id",t)}validateLabel(t){label.validateLabelWithExpertSlot(this,t,{required:!0})}validateName(t){this.controller.validateName(t)}validateOn(t){validateButtonCallbacks(this,t)}validateRole(t){buttonVariant.validateAlternativeButtonLinkRole(this,t)}validateShortKey(t){accessAndShortKey.validateShortKey(this,t),accessAndShortKey.validateAccessAndShortKey(this._accessKey,t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){accessAndShortKey.validateTabIndex(this,t)}validateTooltipAlign(t){tooltipAlign.validateTooltipAlign(this,t)}validateType(t){validateButtonType(this,t)}validateValue(t){index.setState(this,"_value",t),this.controller.setFormAssociatedValue(this.state._value)}validateVariant(t){buttonVariant.validateButtonVariant(this,t)}componentWillLoad(){this.validateAccessKey(this._accessKey),this.validateAriaControls(this._ariaControls),this.validateAriaDescription(this._ariaDescription),this.validateAriaExpanded(this._ariaExpanded),this.validateAriaSelected(this._ariaSelected),this.validateCustomClass(this._customClass),this.validateDisabled(this._disabled),this.validateHideLabel(this._hideLabel),this.validateIcons(this._icons),this.validateId(this._id),this.validateLabel(this._label),this.validateName(this._name),this.validateOn(this._on),this.validateRole(this._role),this.validateShortKey(this._shortKey),this.validateSyncValueBySelector(this._syncValueBySelector),this.validateTabIndex(this._tabIndex),this.validateTooltipAlign(this._tooltipAlign),this.validateType(this._type),this.validateValue(this._value),this.validateVariant(this._variant),accessAndShortKey.validateAccessAndShortKey(this._accessKey,this._shortKey)}get host(){return index$1.getElement(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_ariaControls:["validateAriaControls"],_ariaDescription:["validateAriaDescription"],_ariaExpanded:["validateAriaExpanded"],_ariaSelected:["validateAriaSelected"],_customClass:["validateCustomClass"],_disabled:["validateDisabled"],_hideLabel:["validateHideLabel"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_name:["validateName"],_on:["validateOn"],_role:["validateRole"],_shortKey:["validateShortKey"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_tooltipAlign:["validateTooltipAlign"],_type:["validateType"],_value:["validateValue"],_variant:["validateVariant"]}}};exports.kol_button_wc=KolButtonWc;
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-2999bd56.js"),componentNames=require("./component-names-2c750b1b.js"),defaultStyleCss="@charset \"UTF-8\";\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n .badge-text-hint {\n background-color: lightgray;\n color: black;\n }\n}\n@layer kol-component {\n .kol-tooltip-wc {\n display: contents;\n contain: layout;\n }\n .kol-tooltip-wc .tooltip-floating {\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n /* Shared between content and arrow */\n .kol-tooltip-wc .tooltip-area {\n background-color: #fff;\n color: #000;\n }\n .kol-tooltip-wc .tooltip-arrow {\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip-wc .tooltip-content {\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n :host {\n display: inline-block;\n }\n :is(a, button) {\n display: inline-flex;\n place-items: center;\n text-align: center;\n text-decoration-line: none;\n }\n :is(a, button)::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: \"​\";\n }\n /* TODO: Why we need this? */\n :is(a, button) > .kol-span-wc {\n margin: auto;\n width: 100%;\n }\n}",KolButtonDefaultStyle0=defaultStyleCss,KolButton=class{constructor(n){index.registerInstance(this,n),this.catchRef=n=>{this.buttonWcRef=n},this._accessKey=void 0,this._ariaControls=void 0,this._ariaDescription=void 0,this._ariaExpanded=void 0,this._ariaSelected=void 0,this._customClass=void 0,this._disabled=!1,this._hideLabel=!1,this._icons=void 0,this._id=void 0,this._label=void 0,this._name=void 0,this._on=void 0,this._role=void 0,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._type="button",this._value=void 0,this._variant="normal"}async getValue(){return this._value}async focus(){await this.kolFocus()}async kolFocus(){var n;await(null===(n=this.buttonWcRef)||void 0===n?void 0:n.kolFocus())}render(){return index.h(index.Host,{key:"70caa89f836bf0fe9f7179a15279fad3139de552",class:"kol-button"},index.h(componentNames.KolButtonWcTag,{key:"1eec930020ffa9cab5e21fbef31eb64d6d9908d9",ref:this.catchRef,class:{button:!0},_accessKey:this._accessKey,_ariaControls:this._ariaControls,_ariaDescription:this._ariaDescription,_ariaExpanded:this._ariaExpanded,_ariaSelected:this._ariaSelected,_customClass:this._customClass,_disabled:this._disabled,_hideLabel:this._hideLabel,_icons:this._icons,_id:this._id,_label:this._label,_name:this._name,_on:this._on,_role:this._role,_shortKey:this._shortKey,_syncValueBySelector:this._syncValueBySelector,_tabIndex:this._tabIndex,_tooltipAlign:this._tooltipAlign,_type:this._type,_value:this._value,_variant:this._variant},index.h("slot",{key:"2a577a11be5ef2ab1f7d47ddab92686e7825392d",name:"expert",slot:"expert"})))}static get delegatesFocus(){return!0}};KolButton.style={default:KolButtonDefaultStyle0},exports.kol_button=KolButton;
4
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-4cec6984.js"),componentNames=require("./component-names-2c750b1b.js"),defaultStyleCss="@charset \"UTF-8\";\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n color: black;\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%; /* 100% needed for custom width from outside */\n margin: 0;\n padding: 0;\n border: none;\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-component {\n .kol-tooltip-wc {\n display: contents;\n contain: layout;\n }\n .kol-tooltip-wc .tooltip-floating {\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n max-width: 90vw;\n max-height: 90vh;\n visibility: hidden;\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n }\n /* Shared between content and arrow */\n .kol-tooltip-wc .tooltip-area {\n color: #000;\n background-color: #fff;\n }\n .kol-tooltip-wc .tooltip-arrow {\n transform: rotate(45deg);\n position: absolute;\n z-index: 999;\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip-wc .tooltip-content {\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n :host {\n display: inline-block;\n }\n :is(a, button) {\n display: inline-flex;\n place-items: center;\n text-align: center;\n text-decoration-line: none;\n }\n :is(a, button)::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: \"​\";\n }\n /* TODO: Why we need this? */\n :is(a, button) > .kol-span-wc {\n width: 100%;\n margin: auto;\n }\n}",KolButtonDefaultStyle0=defaultStyleCss,KolButton=class{constructor(n){index.registerInstance(this,n),this.catchRef=n=>{this.buttonWcRef=n},this._accessKey=void 0,this._ariaControls=void 0,this._ariaDescription=void 0,this._ariaExpanded=void 0,this._ariaSelected=void 0,this._customClass=void 0,this._disabled=!1,this._hideLabel=!1,this._icons=void 0,this._id=void 0,this._label=void 0,this._name=void 0,this._on=void 0,this._role=void 0,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._type="button",this._value=void 0,this._variant="normal"}async getValue(){return this._value}async focus(){await this.kolFocus()}async kolFocus(){var n;await(null===(n=this.buttonWcRef)||void 0===n?void 0:n.kolFocus())}render(){return index.h(index.Host,{key:"70caa89f836bf0fe9f7179a15279fad3139de552",class:"kol-button"},index.h(componentNames.KolButtonWcTag,{key:"09f7494fff2ddc9597267d28ff87fa66607d9637",ref:this.catchRef,class:{button:!0},_accessKey:this._accessKey,_ariaControls:this._ariaControls,_ariaDescription:this._ariaDescription,_ariaExpanded:this._ariaExpanded,_ariaSelected:this._ariaSelected,_customClass:this._customClass,_disabled:this._disabled,_hideLabel:this._hideLabel,_icons:this._icons,_id:this._id,_label:this._label,_name:this._name,_on:this._on,_shortKey:this._shortKey,_syncValueBySelector:this._syncValueBySelector,_tabIndex:this._tabIndex,_tooltipAlign:this._tooltipAlign,_type:this._type,_value:this._value,_variant:this._variant},index.h("slot",{key:"6010a867b4000c38212d0bbcdc978fcdff3f58c2",name:"expert",slot:"expert"})))}static get delegatesFocus(){return!0}};KolButton.style={default:KolButtonDefaultStyle0},exports.kol_button=KolButton;
@@ -1 +1 @@
1
- {"file":"kol-button.entry.cjs.js","mappings":";;;;;;;;;;AAAA,MAAM,eAAe,GAAG,sgMAAsgM,CAAC;AAC/hM,+BAAe,eAAe;;MC8BjB,SAAS;;;QAGJ,aAAQ,GAAG,CAAC,GAA4B;YACxD,IAAI,CAAC,WAAW,GAAG,GAAG,CAAC;SACvB,CAAC;;;;;;;yBAgGmC,KAAK;0BAOJ,KAAK;;;;;;;;;;6BAmDW,KAAK;qBAKf,QAAQ;;wBAUF,QAAQ;;IAlKnD,MAAM,QAAQ;QACpB,OAAO,IAAI,CAAC,MAAM,CAAC;KACnB;IAMM,MAAM,KAAK;QACjB,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;KACtB;IAMM,MAAM,QAAQ;;QACpB,OAAM,MAAA,IAAI,CAAC,WAAW,0CAAE,QAAQ,EAAE,CAAA,CAAC;KACnC;IAEM,MAAM;QACZ,QACCA,QAACC,UAAI,qDAAC,KAAK,EAAC,YAAY,IACvBD,QAACE,6BAAc,qDACd,GAAG,EAAE,IAAI,CAAC,QAAQ,EAClB,KAAK,EAAE;gBACN,MAAM,EAAE,IAAI;aACZ,EACD,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EACvC,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,YAAY,EAAE,IAAI,CAAC,YAAY,EAC/B,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,oBAAoB,EAAE,IAAI,CAAC,oBAAoB,EAC/C,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAEvBF,mEAAM,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,GAAQ,CACzB,CACX,EACN;KACF;;;;;;;;;","names":["h","Host","KolButtonWcTag"],"sources":["src/components/button/style.scss?tag=kol-button&mode=default&encapsulation=shadow","src/components/button/shadow.tsx"],"sourcesContent":["@use '../style' as *;\n@use '../button' as *;\n","import type {\n\tAccessKeyPropType,\n\tAlternativeButtonLinkRolePropType,\n\tAriaDescriptionPropType,\n\tButtonCallbacksPropType,\n\tButtonProps,\n\tButtonTypePropType,\n\tButtonVariantPropType,\n\tCustomClassPropType,\n\tFocusableElement,\n\tIconsPropType,\n\tLabelWithExpertSlotPropType,\n\tShortKeyPropType,\n\tStencilUnknown,\n\tStringified,\n\tSyncValueBySelectorPropType,\n\tTooltipAlignPropType,\n} from '../../schema';\nimport type { JSX } from '@stencil/core';\nimport { Component, h, Host, Method, Prop } from '@stencil/core';\nimport { KolButtonWcTag } from '../../core/component-names';\n\n@Component({\n\ttag: 'kol-button',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: {\n\t\tdelegatesFocus: true,\n\t},\n})\nexport class KolButton implements ButtonProps, FocusableElement {\n\tprivate buttonWcRef?: HTMLKolButtonWcElement;\n\n\tprivate readonly catchRef = (ref?: HTMLKolButtonWcElement) => {\n\t\tthis.buttonWcRef = ref;\n\t};\n\n\t/**\n\t * Returns the current value.\n\t */\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async getValue(): Promise<Stringified<StencilUnknown> | undefined> {\n\t\treturn this._value;\n\t}\n\n\t/**\n\t * @deprecated Use kolFocus instead.\n\t */\n\t@Method()\n\tpublic async focus() {\n\t\tawait this.kolFocus();\n\t}\n\n\t/**\n\t * Programmatically focuses the button.\n\t */\n\t@Method()\n\tpublic async kolFocus() {\n\t\tawait this.buttonWcRef?.kolFocus();\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-button\">\n\t\t\t\t<KolButtonWcTag\n\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\tclass={{\n\t\t\t\t\t\tbutton: true,\n\t\t\t\t\t}}\n\t\t\t\t\t_accessKey={this._accessKey}\n\t\t\t\t\t_ariaControls={this._ariaControls}\n\t\t\t\t\t_ariaDescription={this._ariaDescription}\n\t\t\t\t\t_ariaExpanded={this._ariaExpanded}\n\t\t\t\t\t_ariaSelected={this._ariaSelected}\n\t\t\t\t\t_customClass={this._customClass}\n\t\t\t\t\t_disabled={this._disabled}\n\t\t\t\t\t_hideLabel={this._hideLabel}\n\t\t\t\t\t_icons={this._icons}\n\t\t\t\t\t_id={this._id}\n\t\t\t\t\t_label={this._label}\n\t\t\t\t\t_name={this._name}\n\t\t\t\t\t_on={this._on}\n\t\t\t\t\t_role={this._role}\n\t\t\t\t\t_shortKey={this._shortKey}\n\t\t\t\t\t_syncValueBySelector={this._syncValueBySelector}\n\t\t\t\t\t_tabIndex={this._tabIndex}\n\t\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t\t_type={this._type}\n\t\t\t\t\t_value={this._value}\n\t\t\t\t\t_variant={this._variant}\n\t\t\t\t>\n\t\t\t\t\t<slot name=\"expert\" slot=\"expert\"></slot>\n\t\t\t\t</KolButtonWcTag>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines which key combination can be used to trigger or focus the interactive element of the component.\n\t */\n\t@Prop() public _accessKey?: AccessKeyPropType;\n\n\t/**\n\t * Defines which elements are controlled by this component. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls)\n\t */\n\t@Prop() public _ariaControls?: string;\n\n\t/**\n\t * Defines the value for the aria-description attribute.\n\t */\n\t@Prop() public _ariaDescription?: AriaDescriptionPropType;\n\n\t/**\n\t * Defines whether the interactive element of the component expanded something. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)\n\t */\n\t@Prop() public _ariaExpanded?: boolean;\n\n\t/**\n\t * Defines whether the interactive element of the component is selected (e.g. role=tab). (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected)\n\t */\n\t@Prop() public _ariaSelected?: boolean;\n\n\t/**\n\t * Defines the custom class attribute if _variant=\"custom\" is set.\n\t */\n\t@Prop() public _customClass?: CustomClassPropType;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Hides the caption by default and displays the caption text with a tooltip when the\n\t * interactive element is focused or the mouse is over it.\n\t * @TODO: Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hideLabel?: boolean = false;\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: IconsPropType;\n\n\t/**\n\t * Defines the internal ID of the primary component element.\n\t */\n\t@Prop() public _id?: string;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label!: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Defines the technical name of an input field.\n\t */\n\t@Prop() public _name?: string;\n\n\t/**\n\t * Defines the callback functions for button events.\n\t */\n\t@Prop() public _on?: ButtonCallbacksPropType<StencilUnknown>;\n\n\t/**\n\t * Defines the role of the components primary element.\n\t */\n\t@Prop() public _role?: AlternativeButtonLinkRolePropType;\n\n\t/**\n\t * Adds a visual short key hint to the component.\n\t */\n\t@Prop() public _shortKey?: ShortKeyPropType;\n\n\t/**\n\t * Selector for synchronizing the value with another input element.\n\t * @internal\n\t */\n\t@Prop() public _syncValueBySelector?: SyncValueBySelectorPropType;\n\n\t/**\n\t * Defines which tab-index the primary element of the component has. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)\n\t */\n\t@Prop() public _tabIndex?: number;\n\n\t/**\n\t * Defines where to show the Tooltip preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _tooltipAlign?: TooltipAlignPropType = 'top';\n\n\t/**\n\t * Defines either the type of the component or of the components interactive element.\n\t */\n\t@Prop() public _type?: ButtonTypePropType = 'button';\n\n\t/**\n\t * Defines the value that the button emits on click.\n\t */\n\t@Prop() public _value?: Stringified<StencilUnknown>;\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: ButtonVariantPropType = 'normal';\n}\n"],"version":3}
1
+ {"file":"kol-button.entry.cjs.js","mappings":";;;;;;;;;;AAAA,MAAM,eAAe,GAAG,y8LAAy8L,CAAC;AACl+L,+BAAe,eAAe;;MC8BjB,SAAS;;;QAGJ,aAAQ,GAAG,CAAC,GAA4B;YACxD,IAAI,CAAC,WAAW,GAAG,GAAG,CAAC;SACvB,CAAC;;;;;;;yBA+FmC,KAAK;0BAOJ,KAAK;;;;;;;;;;6BAqDW,KAAK;qBAKf,QAAQ;;wBAUF,QAAQ;;IAnKnD,MAAM,QAAQ;QACpB,OAAO,IAAI,CAAC,MAAM,CAAC;KACnB;IAMM,MAAM,KAAK;QACjB,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;KACtB;IAMM,MAAM,QAAQ;;QACpB,OAAM,MAAA,IAAI,CAAC,WAAW,0CAAE,QAAQ,EAAE,CAAA,CAAC;KACnC;IAEM,MAAM;QACZ,QACCA,QAACC,UAAI,qDAAC,KAAK,EAAC,YAAY,IACvBD,QAACE,6BAAc,qDACd,GAAG,EAAE,IAAI,CAAC,QAAQ,EAClB,KAAK,EAAE;gBACN,MAAM,EAAE,IAAI;aACZ,EACD,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EACvC,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,YAAY,EAAE,IAAI,CAAC,YAAY,EAC/B,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,oBAAoB,EAAE,IAAI,CAAC,oBAAoB,EAC/C,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAEvBF,mEAAM,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,GAAQ,CACzB,CACX,EACN;KACF;;;;;;;;;","names":["h","Host","KolButtonWcTag"],"sources":["src/components/button/style.scss?tag=kol-button&mode=default&encapsulation=shadow","src/components/button/shadow.tsx"],"sourcesContent":["@use '../style' as *;\n@use '../button' as *;\n","import type {\n\tAccessKeyPropType,\n\tAlternativeButtonLinkRolePropType,\n\tAriaDescriptionPropType,\n\tButtonCallbacksPropType,\n\tButtonProps,\n\tButtonTypePropType,\n\tButtonVariantPropType,\n\tCustomClassPropType,\n\tFocusableElement,\n\tIconsPropType,\n\tLabelWithExpertSlotPropType,\n\tShortKeyPropType,\n\tStencilUnknown,\n\tStringified,\n\tSyncValueBySelectorPropType,\n\tTooltipAlignPropType,\n} from '../../schema';\nimport type { JSX } from '@stencil/core';\nimport { Component, h, Host, Method, Prop } from '@stencil/core';\nimport { KolButtonWcTag } from '../../core/component-names';\n\n@Component({\n\ttag: 'kol-button',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: {\n\t\tdelegatesFocus: true,\n\t},\n})\nexport class KolButton implements ButtonProps, FocusableElement {\n\tprivate buttonWcRef?: HTMLKolButtonWcElement;\n\n\tprivate readonly catchRef = (ref?: HTMLKolButtonWcElement) => {\n\t\tthis.buttonWcRef = ref;\n\t};\n\n\t/**\n\t * Returns the current value.\n\t */\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async getValue(): Promise<Stringified<StencilUnknown> | undefined> {\n\t\treturn this._value;\n\t}\n\n\t/**\n\t * @deprecated Use kolFocus instead.\n\t */\n\t@Method()\n\tpublic async focus() {\n\t\tawait this.kolFocus();\n\t}\n\n\t/**\n\t * Programmatically focuses the button.\n\t */\n\t@Method()\n\tpublic async kolFocus() {\n\t\tawait this.buttonWcRef?.kolFocus();\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-button\">\n\t\t\t\t<KolButtonWcTag\n\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\tclass={{\n\t\t\t\t\t\tbutton: true,\n\t\t\t\t\t}}\n\t\t\t\t\t_accessKey={this._accessKey}\n\t\t\t\t\t_ariaControls={this._ariaControls}\n\t\t\t\t\t_ariaDescription={this._ariaDescription}\n\t\t\t\t\t_ariaExpanded={this._ariaExpanded}\n\t\t\t\t\t_ariaSelected={this._ariaSelected}\n\t\t\t\t\t_customClass={this._customClass}\n\t\t\t\t\t_disabled={this._disabled}\n\t\t\t\t\t_hideLabel={this._hideLabel}\n\t\t\t\t\t_icons={this._icons}\n\t\t\t\t\t_id={this._id}\n\t\t\t\t\t_label={this._label}\n\t\t\t\t\t_name={this._name}\n\t\t\t\t\t_on={this._on}\n\t\t\t\t\t_shortKey={this._shortKey}\n\t\t\t\t\t_syncValueBySelector={this._syncValueBySelector}\n\t\t\t\t\t_tabIndex={this._tabIndex}\n\t\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t\t_type={this._type}\n\t\t\t\t\t_value={this._value}\n\t\t\t\t\t_variant={this._variant}\n\t\t\t\t>\n\t\t\t\t\t<slot name=\"expert\" slot=\"expert\"></slot>\n\t\t\t\t</KolButtonWcTag>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines which key combination can be used to trigger or focus the interactive element of the component.\n\t */\n\t@Prop() public _accessKey?: AccessKeyPropType;\n\n\t/**\n\t * Defines which elements are controlled by this component. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls)\n\t */\n\t@Prop() public _ariaControls?: string;\n\n\t/**\n\t * Defines the value for the aria-description attribute.\n\t */\n\t@Prop() public _ariaDescription?: AriaDescriptionPropType;\n\n\t/**\n\t * Defines whether the interactive element of the component expanded something. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)\n\t */\n\t@Prop() public _ariaExpanded?: boolean;\n\n\t/**\n\t * Defines whether the interactive element of the component is selected (e.g. role=tab). (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected)\n\t */\n\t@Prop() public _ariaSelected?: boolean;\n\n\t/**\n\t * Defines the custom class attribute if _variant=\"custom\" is set.\n\t */\n\t@Prop() public _customClass?: CustomClassPropType;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Hides the caption by default and displays the caption text with a tooltip when the\n\t * interactive element is focused or the mouse is over it.\n\t * @TODO: Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hideLabel?: boolean = false;\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: IconsPropType;\n\n\t/**\n\t * Defines the internal ID of the primary component element.\n\t */\n\t@Prop() public _id?: string;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label!: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Defines the technical name of an input field.\n\t */\n\t@Prop() public _name?: string;\n\n\t/**\n\t * Defines the callback functions for button events.\n\t */\n\t@Prop() public _on?: ButtonCallbacksPropType<StencilUnknown>;\n\n\t/**\n\t * Defines the role of the components primary element.\n\t *\n\t * @deprecated We prefer the semantic role of the HTML element and do not allow for customization. We will remove this prop in the future.\n\t */\n\t@Prop() public _role?: AlternativeButtonLinkRolePropType;\n\n\t/**\n\t * Adds a visual short key hint to the component.\n\t */\n\t@Prop() public _shortKey?: ShortKeyPropType;\n\n\t/**\n\t * Selector for synchronizing the value with another input element.\n\t * @internal\n\t */\n\t@Prop() public _syncValueBySelector?: SyncValueBySelectorPropType;\n\n\t/**\n\t * Defines which tab-index the primary element of the component has. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)\n\t */\n\t@Prop() public _tabIndex?: number;\n\n\t/**\n\t * Defines where to show the Tooltip preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _tooltipAlign?: TooltipAlignPropType = 'top';\n\n\t/**\n\t * Defines either the type of the component or of the components interactive element.\n\t */\n\t@Prop() public _type?: ButtonTypePropType = 'button';\n\n\t/**\n\t * Defines the value that the button emits on click.\n\t */\n\t@Prop() public _value?: Stringified<StencilUnknown>;\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: ButtonVariantPropType = 'normal';\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-2999bd56.js"),index$1=require("./index-4d023d25.js"),i18n=require("./i18n-fb7587bc.js"),dev_utils=require("./dev.utils-5242a5d1.js"),validation=require("./validation-5256cf18.js"),componentNames=require("./component-names-2c750b1b.js"),hasCloser=require("./has-closer-418d6eb6.js"),label=require("./label-32668ef6.js");require("./i18n-1c001171.js");const defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n .badge-text-hint {\n background-color: lightgray;\n color: black;\n }\n}\n@layer kol-component {\n .kol-tooltip-wc {\n display: contents;\n contain: layout;\n }\n .kol-tooltip-wc .tooltip-floating {\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n /* Shared between content and arrow */\n .kol-tooltip-wc .tooltip-area {\n background-color: #fff;\n color: #000;\n }\n .kol-tooltip-wc .tooltip-arrow {\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip-wc .tooltip-content {\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n :host > div.card {\n height: 100%;\n position: relative;\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n .close {\n position: absolute;\n top: 0;\n right: 0;\n }\n}",KolCardDefaultStyle0=defaultStyleCss,KolCard=class{constructor(n){index.registerInstance(this,n),this.nonce=dev_utils.nonce(),this.close=()=>{var n;void 0!==(null===(n=this._on)||void 0===n?void 0:n.onClose)&&this._on.onClose(new Event("Close"))},this.on={onClick:this.close},this.validateOnValue=n=>"object"==typeof n&&null!==n&&"function"==typeof n.onClose,this._on=void 0,this._hasCloser=!1,this._label=void 0,this._level=1,this.state={_label:""}}render(){return index.h(index.Host,{key:"ba9c33136d395bf985180d4b5286a86deb0e795e",class:"kol-card"},index.h("div",{key:"35ec2b86170c04be8cb8cba3517d3b802a47d9c9","aria-labelledby":this.nonce,class:"card",role:"group"},index.h(componentNames.KolHeadingWcTag,{key:"7b35c6013fb17aa62e37879049351d7191330b41",class:"header",id:this.nonce,_label:this.state._label,_level:this.state._level}),index.h("div",{key:"bc99bd0c8331a53d82195d116f941c39e0526dd4",class:"content"},index.h("slot",{key:"3f8fa8413d8c99ca9c2508bde5455ce84fae57d3"})),this.state._hasCloser&&index.h(componentNames.KolButtonWcTag,{key:"437fa135d2fde68894381fffe0723998dcdc9195",class:"close",_hideLabel:!0,_icons:{left:{icon:"codicon codicon-close"}},_label:i18n.translate("kol-close"),_on:this.on,_tooltipAlign:"left"})))}validateOn(n){this.validateOnValue(n)&&index$1.setState(this,"_on",{onClose:n.onClose})}validateHasCloser(n){hasCloser.validateHasCloser(this,n)}validateLabel(n){label.validateLabel(this,n,{required:!0})}validateLevel(n){validation.watchHeadingLevel(this,n)}componentWillLoad(){this.validateHasCloser(this._hasCloser),this.validateLabel(this._label),this.validateLevel(this._level),this.validateOn(this._on)}static get watchers(){return{_on:["validateOn"],_hasCloser:["validateHasCloser"],_label:["validateLabel"],_level:["validateLevel"]}}};KolCard.style={default:KolCardDefaultStyle0},exports.kol_card=KolCard;
4
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-4cec6984.js"),index$1=require("./index-4974b34f.js"),i18n=require("./i18n-0d2737f4.js"),dev_utils=require("./dev.utils-1101f05f.js"),validation=require("./validation-cb2634f6.js"),componentNames=require("./component-names-2c750b1b.js"),hasCloser=require("./has-closer-2942fb46.js"),label=require("./label-d59f00da.js");require("./i18n-1c001171.js");const defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n color: black;\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%; /* 100% needed for custom width from outside */\n margin: 0;\n padding: 0;\n border: none;\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-component {\n .kol-tooltip-wc {\n display: contents;\n contain: layout;\n }\n .kol-tooltip-wc .tooltip-floating {\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n max-width: 90vw;\n max-height: 90vh;\n visibility: hidden;\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n }\n /* Shared between content and arrow */\n .kol-tooltip-wc .tooltip-area {\n color: #000;\n background-color: #fff;\n }\n .kol-tooltip-wc .tooltip-arrow {\n transform: rotate(45deg);\n position: absolute;\n z-index: 999;\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip-wc .tooltip-content {\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n :host > div.card {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n position: relative;\n height: 100%;\n }\n .close {\n position: absolute;\n top: 0;\n right: 0;\n }\n}",KolCardDefaultStyle0=defaultStyleCss,KolCard=class{constructor(n){index.registerInstance(this,n),this.nonce=dev_utils.nonce(),this.close=()=>{var n;void 0!==(null===(n=this._on)||void 0===n?void 0:n.onClose)&&this._on.onClose(new Event("Close"))},this.on={onClick:this.close},this.validateOnValue=n=>"object"==typeof n&&null!==n&&"function"==typeof n.onClose,this._on=void 0,this._hasCloser=!1,this._label=void 0,this._level=1,this.state={_label:""}}render(){return index.h(index.Host,{key:"ba9c33136d395bf985180d4b5286a86deb0e795e",class:"kol-card"},index.h("div",{key:"35ec2b86170c04be8cb8cba3517d3b802a47d9c9","aria-labelledby":this.nonce,class:"card",role:"group"},index.h(componentNames.KolHeadingWcTag,{key:"7b35c6013fb17aa62e37879049351d7191330b41",class:"header",id:this.nonce,_label:this.state._label,_level:this.state._level}),index.h("div",{key:"bc99bd0c8331a53d82195d116f941c39e0526dd4",class:"content"},index.h("slot",{key:"3f8fa8413d8c99ca9c2508bde5455ce84fae57d3"})),this.state._hasCloser&&index.h(componentNames.KolButtonWcTag,{key:"437fa135d2fde68894381fffe0723998dcdc9195",class:"close",_hideLabel:!0,_icons:{left:{icon:"codicon codicon-close"}},_label:i18n.translate("kol-close"),_on:this.on,_tooltipAlign:"left"})))}validateOn(n){this.validateOnValue(n)&&index$1.setState(this,"_on",{onClose:n.onClose})}validateHasCloser(n){hasCloser.validateHasCloser(this,n)}validateLabel(n){label.validateLabel(this,n,{required:!0})}validateLevel(n){validation.watchHeadingLevel(this,n)}componentWillLoad(){this.validateHasCloser(this._hasCloser),this.validateLabel(this._label),this.validateLevel(this._level),this.validateOn(this._on)}static get watchers(){return{_on:["validateOn"],_hasCloser:["validateHasCloser"],_label:["validateLabel"],_level:["validateLevel"]}}};KolCard.style={default:KolCardDefaultStyle0},exports.kol_card=KolCard;
@@ -1 +1 @@
1
- {"file":"kol-card.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;AAAA,MAAM,eAAe,GAAG,s0LAAs0L,CAAC;AAC/1L,6BAAe,eAAe;;MCmBjB,OAAO;;;QACF,UAAK,GAAGA,eAAK,EAAE,CAAC;QAChB,UAAK,GAAG;;YACxB,IAAI,CAAA,MAAA,IAAI,CAAC,GAAG,0CAAE,OAAO,MAAK,SAAS,EAAE;gBACpC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;aACrC;SACD,CAAC;QAEe,OAAE,GAAG;YACrB,OAAO,EAAE,IAAI,CAAC,KAAK;SACnB,CAAC;QA2DM,oBAAe,GAAG,CAAC,KAAc,KACxC,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,OAAQ,KAAmC,CAAC,OAAO,KAAK,UAAU,CAAC;;0BAjB7E,KAAK;;sBAUJ,CAAC;qBAEJ;YACnC,MAAM,EAAE,EAAE;SACV;;IAvDM,MAAM;QACZ,QACCC,QAACC,UAAI,qDAAC,KAAK,EAAC,UAAU,IAMrBD,qFAAsB,IAAI,CAAC,KAAK,EAAE,KAAK,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,IAC1DA,QAACE,8BAAe,qDAAC,KAAK,EAAC,QAAQ,EAAC,EAAE,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,GAAI,EACxGF,kEAAK,KAAK,EAAC,SAAS,IACnBA,oEAAQ,CACH,EACL,IAAI,CAAC,KAAK,CAAC,UAAU,KACrBA,QAACG,6BAAc,qDACd,KAAK,EAAC,OAAO,EACb,UAAU,QACV,MAAM,EAAE;gBACP,IAAI,EAAE;oBACL,IAAI,EAAE,uBAAuB;iBAC7B;aACD,EACD,MAAM,EAAEC,cAAS,CAAC,WAAW,CAAC,EAC9B,GAAG,EAAE,IAAI,CAAC,EAAE,EACZ,aAAa,EAAC,MAAM,GACnB,CACF,CACI,CACA,EACN;KACF;IA+BM,UAAU,CAAC,KAAiC;QAClD,IAAI,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE;YAChCC,gBAAQ,CAA4B,IAAI,EAAE,KAAK,EAAE;gBAChD,OAAO,EAAG,KAAoC,CAAC,OAAO;aACtD,CAAC,CAAC;SACH;KACD;IAGM,iBAAiB,CAAC,KAAyB;QACjDC,2BAAiB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;KAC/B;IAGM,aAAa,CAAC,KAAqB;QACzCC,mBAAa,CAAC,IAAI,EAAE,KAAK,EAAE;YAC1B,QAAQ,EAAE,IAAI;SACd,CAAC,CAAC;KACH;IAGM,aAAa,CAAC,KAAoB;QACxCC,4BAAiB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;KAC/B;IAEM,iBAAiB;QACvB,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACxC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAC1B;;;;;;;;;;;;;;","names":["nonce","h","Host","KolHeadingWcTag","KolButtonWcTag","translate","setState","validateHasCloser","validateLabel","watchHeadingLevel"],"sources":["src/components/card/style.scss?tag=kol-card&mode=default&encapsulation=shadow","src/components/card/shadow.tsx"],"sourcesContent":["@use '../@shared/mixins' as *;\n@use '../style' as *;\n@use '../tooltip/style.scss' as *;\n\n@layer kol-component {\n\t:host > div.card {\n\t\theight: 100%;\n\t\tposition: relative;\n\t\t/* Visible with forced colors */\n\t\toutline: transparent solid to-rem(1);\n\t}\n\n\t.close {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tright: 0;\n\t}\n}\n","import { Component, h, Host, Prop, State, Watch } from '@stencil/core';\nimport type { CardAPI, CardStates, HasCloserPropType, HeadingLevel, KoliBriAlertEventCallbacks, KoliBriCardEventCallbacks, LabelPropType } from '../../schema';\nimport { setState, validateHasCloser, validateLabel } from '../../schema';\n\nimport { translate } from '../../i18n';\nimport { nonce } from '../../utils/dev.utils';\nimport { watchHeadingLevel } from '../heading/validation';\n\nimport type { JSX } from '@stencil/core';\nimport { KolButtonWcTag, KolHeadingWcTag } from '../../core/component-names';\n/**\n * @slot - Ermöglicht das Einfügen beliebigen HTML's in den Inhaltsbereich der Card.\n */\n@Component({\n\ttag: 'kol-card',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolCard implements CardAPI {\n\tprivate readonly nonce = nonce();\n\tprivate readonly close = () => {\n\t\tif (this._on?.onClose !== undefined) {\n\t\t\tthis._on.onClose(new Event('Close'));\n\t\t}\n\t};\n\n\tprivate readonly on = {\n\t\tonClick: this.close,\n\t};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-card\">\n\t\t\t\t{/*\n\t\t\t\t\tUsing a <div> with role=\"group\" instead of <section> prevents assistive technologies\n\t\t\t\t\tfrom turning each card with a heading into a landmark region. This avoids cluttering\n\t\t\t\t\tpage navigation when many cards are present.\n\t\t\t\t*/}\n\t\t\t\t<div aria-labelledby={this.nonce} class=\"card\" role=\"group\">\n\t\t\t\t\t<KolHeadingWcTag class=\"header\" id={this.nonce} _label={this.state._label} _level={this.state._level} />\n\t\t\t\t\t<div class=\"content\">\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t\t{this.state._hasCloser && (\n\t\t\t\t\t\t<KolButtonWcTag\n\t\t\t\t\t\t\tclass=\"close\"\n\t\t\t\t\t\t\t_hideLabel\n\t\t\t\t\t\t\t_icons={{\n\t\t\t\t\t\t\t\tleft: {\n\t\t\t\t\t\t\t\t\ticon: 'codicon codicon-close',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t_label={translate('kol-close')}\n\t\t\t\t\t\t\t_on={this.on}\n\t\t\t\t\t\t\t_tooltipAlign=\"left\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the event callback functions for the component.\n\t */\n\t@Prop() public _on?: KoliBriCardEventCallbacks;\n\n\t/**\n\t * Defines whether the element can be closed.\n\t * @TODO: Change type back to `HasCloserPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hasCloser?: boolean = false;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label!: LabelPropType;\n\n\t/**\n\t * Defines which H-level from 1-6 the heading has. 0 specifies no heading and is shown as bold text.\n\t */\n\t@Prop() public _level?: HeadingLevel = 1;\n\n\t@State() public state: CardStates = {\n\t\t_label: '', // ⚠ required\n\t};\n\n\tprivate validateOnValue = (value: unknown): boolean =>\n\t\ttypeof value === 'object' && value !== null && typeof (value as KoliBriCardEventCallbacks).onClose === 'function';\n\n\t@Watch('_on')\n\tpublic validateOn(value?: KoliBriCardEventCallbacks): void {\n\t\tif (this.validateOnValue(value)) {\n\t\t\tsetState<KoliBriCardEventCallbacks>(this, '_on', {\n\t\t\t\tonClose: (value as KoliBriAlertEventCallbacks).onClose,\n\t\t\t});\n\t\t}\n\t}\n\n\t@Watch('_hasCloser')\n\tpublic validateHasCloser(value?: HasCloserPropType): void {\n\t\tvalidateHasCloser(this, value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelPropType): void {\n\t\tvalidateLabel(this, value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_level')\n\tpublic validateLevel(value?: HeadingLevel): void {\n\t\twatchHeadingLevel(this, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateHasCloser(this._hasCloser);\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateLevel(this._level);\n\t\tthis.validateOn(this._on);\n\t}\n}\n"],"version":3}
1
+ {"file":"kol-card.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;AAAA,MAAM,eAAe,GAAG,ywLAAywL,CAAC;AAClyL,6BAAe,eAAe;;MCmBjB,OAAO;;;QACF,UAAK,GAAGA,eAAK,EAAE,CAAC;QAChB,UAAK,GAAG;;YACxB,IAAI,CAAA,MAAA,IAAI,CAAC,GAAG,0CAAE,OAAO,MAAK,SAAS,EAAE;gBACpC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;aACrC;SACD,CAAC;QAEe,OAAE,GAAG;YACrB,OAAO,EAAE,IAAI,CAAC,KAAK;SACnB,CAAC;QA2DM,oBAAe,GAAG,CAAC,KAAc,KACxC,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,OAAQ,KAAmC,CAAC,OAAO,KAAK,UAAU,CAAC;;0BAjB7E,KAAK;;sBAUJ,CAAC;qBAEJ;YACnC,MAAM,EAAE,EAAE;SACV;;IAvDM,MAAM;QACZ,QACCC,QAACC,UAAI,qDAAC,KAAK,EAAC,UAAU,IAMrBD,qFAAsB,IAAI,CAAC,KAAK,EAAE,KAAK,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,IAC1DA,QAACE,8BAAe,qDAAC,KAAK,EAAC,QAAQ,EAAC,EAAE,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,GAAI,EACxGF,kEAAK,KAAK,EAAC,SAAS,IACnBA,oEAAQ,CACH,EACL,IAAI,CAAC,KAAK,CAAC,UAAU,KACrBA,QAACG,6BAAc,qDACd,KAAK,EAAC,OAAO,EACb,UAAU,QACV,MAAM,EAAE;gBACP,IAAI,EAAE;oBACL,IAAI,EAAE,uBAAuB;iBAC7B;aACD,EACD,MAAM,EAAEC,cAAS,CAAC,WAAW,CAAC,EAC9B,GAAG,EAAE,IAAI,CAAC,EAAE,EACZ,aAAa,EAAC,MAAM,GACnB,CACF,CACI,CACA,EACN;KACF;IA+BM,UAAU,CAAC,KAAiC;QAClD,IAAI,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE;YAChCC,gBAAQ,CAA4B,IAAI,EAAE,KAAK,EAAE;gBAChD,OAAO,EAAG,KAAoC,CAAC,OAAO;aACtD,CAAC,CAAC;SACH;KACD;IAGM,iBAAiB,CAAC,KAAyB;QACjDC,2BAAiB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;KAC/B;IAGM,aAAa,CAAC,KAAqB;QACzCC,mBAAa,CAAC,IAAI,EAAE,KAAK,EAAE;YAC1B,QAAQ,EAAE,IAAI;SACd,CAAC,CAAC;KACH;IAGM,aAAa,CAAC,KAAoB;QACxCC,4BAAiB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;KAC/B;IAEM,iBAAiB;QACvB,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACxC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAC1B;;;;;;;;;;;;;;","names":["nonce","h","Host","KolHeadingWcTag","KolButtonWcTag","translate","setState","validateHasCloser","validateLabel","watchHeadingLevel"],"sources":["src/components/card/style.scss?tag=kol-card&mode=default&encapsulation=shadow","src/components/card/shadow.tsx"],"sourcesContent":["@use '../@shared/mixins' as *;\n@use '../style' as *;\n@use '../tooltip/style.scss' as *;\n\n@layer kol-component {\n\t:host > div.card {\n\t\t/* Visible with forced colors */\n\t\toutline: transparent solid to-rem(1);\n\t\tposition: relative;\n\t\theight: 100%;\n\t}\n\n\t.close {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tright: 0;\n\t}\n}\n","import { Component, h, Host, Prop, State, Watch } from '@stencil/core';\nimport type { CardAPI, CardStates, HasCloserPropType, HeadingLevel, KoliBriAlertEventCallbacks, KoliBriCardEventCallbacks, LabelPropType } from '../../schema';\nimport { setState, validateHasCloser, validateLabel } from '../../schema';\n\nimport { translate } from '../../i18n';\nimport { nonce } from '../../utils/dev.utils';\nimport { watchHeadingLevel } from '../heading/validation';\n\nimport type { JSX } from '@stencil/core';\nimport { KolButtonWcTag, KolHeadingWcTag } from '../../core/component-names';\n/**\n * @slot - Ermöglicht das Einfügen beliebigen HTML's in den Inhaltsbereich der Card.\n */\n@Component({\n\ttag: 'kol-card',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolCard implements CardAPI {\n\tprivate readonly nonce = nonce();\n\tprivate readonly close = () => {\n\t\tif (this._on?.onClose !== undefined) {\n\t\t\tthis._on.onClose(new Event('Close'));\n\t\t}\n\t};\n\n\tprivate readonly on = {\n\t\tonClick: this.close,\n\t};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-card\">\n\t\t\t\t{/*\n\t\t\t\t\tUsing a <div> with role=\"group\" instead of <section> prevents assistive technologies\n\t\t\t\t\tfrom turning each card with a heading into a landmark region. This avoids cluttering\n\t\t\t\t\tpage navigation when many cards are present.\n\t\t\t\t*/}\n\t\t\t\t<div aria-labelledby={this.nonce} class=\"card\" role=\"group\">\n\t\t\t\t\t<KolHeadingWcTag class=\"header\" id={this.nonce} _label={this.state._label} _level={this.state._level} />\n\t\t\t\t\t<div class=\"content\">\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t\t{this.state._hasCloser && (\n\t\t\t\t\t\t<KolButtonWcTag\n\t\t\t\t\t\t\tclass=\"close\"\n\t\t\t\t\t\t\t_hideLabel\n\t\t\t\t\t\t\t_icons={{\n\t\t\t\t\t\t\t\tleft: {\n\t\t\t\t\t\t\t\t\ticon: 'codicon codicon-close',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t_label={translate('kol-close')}\n\t\t\t\t\t\t\t_on={this.on}\n\t\t\t\t\t\t\t_tooltipAlign=\"left\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the event callback functions for the component.\n\t */\n\t@Prop() public _on?: KoliBriCardEventCallbacks;\n\n\t/**\n\t * Defines whether the element can be closed.\n\t * @TODO: Change type back to `HasCloserPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hasCloser?: boolean = false;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label!: LabelPropType;\n\n\t/**\n\t * Defines which H-level from 1-6 the heading has. 0 specifies no heading and is shown as bold text.\n\t */\n\t@Prop() public _level?: HeadingLevel = 1;\n\n\t@State() public state: CardStates = {\n\t\t_label: '', // ⚠ required\n\t};\n\n\tprivate validateOnValue = (value: unknown): boolean =>\n\t\ttypeof value === 'object' && value !== null && typeof (value as KoliBriCardEventCallbacks).onClose === 'function';\n\n\t@Watch('_on')\n\tpublic validateOn(value?: KoliBriCardEventCallbacks): void {\n\t\tif (this.validateOnValue(value)) {\n\t\t\tsetState<KoliBriCardEventCallbacks>(this, '_on', {\n\t\t\t\tonClose: (value as KoliBriAlertEventCallbacks).onClose,\n\t\t\t});\n\t\t}\n\t}\n\n\t@Watch('_hasCloser')\n\tpublic validateHasCloser(value?: HasCloserPropType): void {\n\t\tvalidateHasCloser(this, value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelPropType): void {\n\t\tvalidateLabel(this, value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_level')\n\tpublic validateLevel(value?: HeadingLevel): void {\n\t\twatchHeadingLevel(this, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateHasCloser(this._hasCloser);\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateLevel(this._level);\n\t\tthis.validateOn(this._on);\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index$1=require("./index-2999bd56.js"),index=require("./index-4d023d25.js"),clsx=require("./clsx-dd4d6dd1.js"),componentNames=require("./component-names-2c750b1b.js"),i18n=require("./i18n-fb7587bc.js"),dev_utils=require("./dev.utils-5242a5d1.js"),events=require("./events-221fcb43.js"),controller=require("./controller-b58f6250.js"),InternalUnderlinedBadgeText=require("./InternalUnderlinedBadgeText-e27319f9.js"),controllerIcon=require("./controller-icon-bc9c25ac.js"),suggestions=require("./suggestions-7567310b.js");require("./i18n-1c001171.js"),require("./associated.controller-52a935b6.js"),require("./access-and-short-key-5bfd764e.js"),require("./hide-label-c4e4da8c.js"),require("./label-32668ef6.js"),require("./tooltip-align-cf8829c6.js"),require("./align-033dd3ec.js"),require("./icons-f339f0f3.js");class ComboboxController extends controllerIcon.InputIconController{constructor(e,t,n){super(e,t,n),this.component=e}validatePlaceholder(e){index.watchString(this.component,"_placeholder",e)}validateRequired(e){index.watchBoolean(this.component,"_required",e)}validateSuggestions(e){suggestions.validateSuggestions(this.component,e)}validateValue(e){index.watchString(this.component,"_value",e)}componentWillLoad(){super.componentWillLoad(),this.validatePlaceholder(this.component._placeholder),this.validateRequired(this.component._required),this.validateSuggestions(this.component._suggestions),this.validateValue(this.component._value)}}const defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n .badge-text-hint {\n background-color: lightgray;\n color: black;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n .kol-tooltip-wc {\n display: contents;\n contain: layout;\n }\n .kol-tooltip-wc .tooltip-floating {\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n /* Shared between content and arrow */\n .kol-tooltip-wc .tooltip-area {\n background-color: #fff;\n color: #000;\n }\n .kol-tooltip-wc .tooltip-arrow {\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip-wc .tooltip-content {\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .required label > span::after,\n .required legend > span::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n input,\n textarea {\n cursor: text;\n }\n input[type=checkbox],\n input[type=color],\n input[type=file],\n input[type=radio],\n input[type=range],\n label,\n option,\n select {\n cursor: pointer;\n }\n /* input[type='checkbox'], */\n /* input[type='radio'], */\n /* input[type='range'], */\n input[type=color],\n input[type=date],\n input[type=datetime-local],\n input[type=email],\n input[type=file],\n input[type=month],\n input[type=number],\n input[type=password],\n input[type=search],\n input[type=tel],\n input[type=text],\n input[type=time],\n input[type=url],\n input[type=week],\n option,\n select,\n textarea {\n background-color: transparent;\n width: 100%;\n }\n /* needed hack for vertical alignment */\n input[type=file] {\n padding: calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 10) 0.5em;\n }\n /* needed hack for vertical alignment */\n select[multiple] option {\n padding: calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 2) 0.5em;\n }\n}\n@layer kol-component {\n .kol-alert-wc {\n display: grid;\n }\n .kol-alert-wc .heading {\n display: flex;\n place-items: center;\n }\n .kol-alert-wc .heading > div {\n flex-grow: 1;\n }\n .close {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-input {\n display: grid;\n }\n .kol-input .input-slot {\n flex-grow: 1;\n }\n input:focus,\n option:focus,\n select:focus,\n textarea:focus {\n outline: 0;\n }\n .input {\n align-items: center;\n background-color: white;\n cursor: pointer;\n display: flex;\n }\n button:not([role=link]) {\n min-height: auto;\n }\n .input > .kol-icon {\n display: grid;\n place-items: center;\n }\n .kol-input.required .input-tooltip .span-label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n .combobox {\n position: relative;\n }\n .combobox--disabled, .combobox--disabled * {\n cursor: not-allowed !important;\n }\n .combobox--disabled {\n opacity: 0.5;\n outline: none;\n }\n .combobox__group {\n display: inline-flex;\n align-items: center;\n cursor: pointer;\n }\n .combobox__input {\n flex-grow: 1;\n }\n .combobox__icon {\n align-items: center;\n cursor: pointer;\n display: flex;\n width: var(--a11y-min-size);\n }\n .combobox__listbox {\n display: block;\n position: absolute;\n list-style-type: none;\n margin: 0;\n padding: 0;\n overflow-y: auto;\n overflow-x: hidden;\n z-index: 2;\n background-color: white;\n max-height: calc(250rem / var(--kolibri-root-font-size, 16));\n }\n .combobox__item {\n cursor: pointer;\n }\n .combobox__listbox--cursor-hidden .combobox__item {\n cursor: none !important;\n }\n}",KolComboboxDefaultStyle0=defaultStyleCss,KolCombobox=class{async getValue(){return this.state._value}async kolFocus(){var e;null===(e=this.refInput)||void 0===e||e.focus()}selectOption(e){var t;this.controller.onFacade.onInput(new CustomEvent("input",{bubbles:!0,detail:{name:this.state._name,value:e}}),!0,e),this.controller.onFacade.onChange(new CustomEvent("change",{bubbles:!0,detail:{name:this.state._name,value:e}}),e),this.controller.setFormAssociatedValue(e),this.state._value=e,this._value=e,null===(t=this.refInput)||void 0===t||t.focus()}onInput(e){const t=e.target;this.state._value=t.value,this._value=t.value,this.controller.onFacade.onInput(e),this.setFilteredSuggestionsByQuery(t.value),this._focusedOptionIndex=-1}handleKeyDownDropdown(e){1===e.key.length&&/[a-z0-9]/i.test(e.key)&&(this._isOpen=!0,this.focusSuggestionStartingWith(e.key))}setFilteredSuggestionsByQuery(e){""===e.trim()?this._filteredSuggestions=[...this._suggestions]:(this._filteredSuggestions=Array.isArray(this._suggestions)?this._suggestions.filter((t=>t.toLowerCase().includes(e.toLowerCase()))):this._filteredSuggestions,this._isOpen=!!(this._filteredSuggestions&&this._filteredSuggestions.length>0))}moveFocus(e){if(!this._filteredSuggestions)return;let t=this._focusedOptionIndex+e;t>=this._filteredSuggestions.length&&(t=0),t<0&&(t=this._filteredSuggestions.length-1),this.focusOption(t)}focusOption(e){if(this._focusedOptionIndex=e,this.refSuggestions){const t=this.refSuggestions[e];null==t||t.focus()}}focusSuggestionStartingWith(e){const t=e.toLowerCase(),n=Array.isArray(this._filteredSuggestions)&&this._filteredSuggestions.length>0&&this._filteredSuggestions.findIndex((e=>e.toLowerCase().startsWith(t)));"number"==typeof n&&this.focusOption(n)}render(){const e=index.showExpertSlot(this.state._label),{ariaDescribedBy:t}=controller.getRenderStates(this.state);return index$1.h(index$1.Host,{key:"539582153b25b549cdbda73a0e48ab7cdd4a191a",class:"kol-combobox"},index$1.h("div",{key:"1d2e85257cbcb73f9524b36bc0fe60acee7b0a93",class:clsx.clsx("combobox",this.state._disabled&&"combobox--disabled")},index$1.h(componentNames.KolInputTag,{key:"ed68373d5ce2dc77ac17f1c2e1c7bef1fe70d668",_accessKey:this.state._accessKey,_alert:this.showAsAlert(),_disabled:this.state._disabled,_hideError:this.state._hideError,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_icons:this.state._icons,_id:this.state._id,_label:this.state._label,_msg:this.state._msg,_required:this.state._required,_shortKey:this.state._shortKey,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched,onClick:()=>{var e;return null===(e=this.refInput)||void 0===e?void 0:e.focus()},role:"presentation"},index$1.h("span",{key:"bbd2040c0f50b8c5c8e59f8591932d6dc739c7c1",slot:"label"},e?index$1.h("slot",{name:"expert"}):"string"==typeof this.state._accessKey||"string"==typeof this.state._shortKey?index$1.h(index$1.Fragment,null,index$1.h(InternalUnderlinedBadgeText.InternalUnderlinedBadgeText,{badgeText:index.buildBadgeTextString(this.state._accessKey,this.state._shortKey),label:this.state._label})," ",index$1.h("kbd",{class:"badge-text-hint","aria-hidden":"true"},index.buildBadgeTextString(this.state._accessKey,this.state._shortKey))):index$1.h("span",null,this.state._label)),index$1.h("div",{key:"5cba627e6fc743cc491b0489de20d1ca35ee1381",slot:"input"},index$1.h("div",{key:"4fe1a68b244c8baae0ff5bd7a287e1a7e2887b78",class:"combobox__group"},index$1.h("input",Object.assign({key:"0ce26e7dba3167c103b215dd882913acc328a0fe",ref:this.catchRef,class:"combobox__input",type:"text",role:"combobox","aria-autocomplete":"both","aria-expanded":this._isOpen?"true":"false","aria-controls":"listbox",value:this.state._value,accessKey:this.state._accessKey,"aria-describedby":t.length>0?t.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,"aria-labelledby":this.state._id,"aria-activedescendant":this._isOpen&&this._focusedOptionIndex>=0?`option-${this._focusedOptionIndex}`:void 0,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",disabled:this.state._disabled,id:this.state._id,name:this.state._name,required:this.state._required},this.controller.onFacade,{onFocus:e=>{this.controller.onFacade.onFocus(e),this.inputHasFocus=!0},onBlur:e=>{this.controller.onFacade.onBlur(e),this.inputHasFocus=!1},onChange:this.onChange.bind(this),onInput:this.onInput.bind(this),placeholder:this.state._placeholder})),index$1.h("button",{key:"0a49f06cdf6ab615f1be992fd174d2213443f14f",tabindex:"-1",class:"combobox__icon",onClick:this.toggleListbox.bind(this),disabled:this.state._disabled},index$1.h(componentNames.KolIconTag,{key:"c310753705cabbb6b54617ea10622dbabaf6d72e",_icons:"codicon codicon-triangle-down",_label:i18n.translate("kol-dropdown")}))),this._isOpen&&!(!0===this.state._disabled)&&index$1.h("ul",{key:"bbb7108ae00af3f80567c03696012b7404fa4744",role:"listbox",class:clsx.clsx("combobox__listbox",this.blockSuggestionMouseOver&&"combobox__listbox--cursor-hidden"),onKeyDown:this.handleKeyDownDropdown.bind(this)},Array.isArray(this._filteredSuggestions)&&this._filteredSuggestions.length>0&&this._filteredSuggestions.map(((e,t)=>index$1.h("li",{id:`option-${t}`,key:`-${t}`,ref:e=>{e&&(this.refSuggestions[t]=e)},"data-index":t,tabIndex:-1,role:"option","aria-selected":this.state._value===e?"true":void 0,onClick:()=>{this.selectOption(e),this.toggleListbox(),this._isOpen=!1,this._hasOpened=!1},onMouseOver:()=>{this.blockSuggestionMouseOver||this.focusOption(t)},onFocus:()=>{this.focusOption(t)},class:"combobox__item",onKeyDown:t=>{"Enter"!==t.key&&"NumpadEnter"!==t.key||(this.selectOption(e),this.toggleListbox(),t.preventDefault())}},e))))))))}handleKeyDown(e){var t,n;const i=(t,n)=>{var i;e.preventDefault(),void 0!==t&&(this._isOpen=t,t||null===(i=this.refInput)||void 0===i||i.focus()),null==n||n()};switch(e.key){case"Down":case"ArrowDown":this.blockSuggestionMouseOver=!0,i(!0,(()=>this.moveFocus(1)));break;case"Up":case"ArrowUp":this.blockSuggestionMouseOver=!0,i(!0,(()=>this.moveFocus(-1)));break;case"Tab":this._isOpen&&(this._isOpen=!1,null===(t=this.refInput)||void 0===t||t.focus());break;case"Esc":case"Escape":this._hasOpened=!1,this._isOpen=!1,e.preventDefault(),null===(n=this.refInput)||void 0===n||n.focus();break;case"NumpadEnter":case"Enter":this._isOpen&&this._focusedOptionIndex>=0?(this._filteredSuggestions&&this.selectOption(this._filteredSuggestions[this._focusedOptionIndex]),this._isOpen=!1,this._hasOpened=!1):this.toggleListbox(),e.preventDefault();break;case"Home":this.blockSuggestionMouseOver=!0,i(void 0,(()=>{this._isOpen&&this.focusOption(0)}));break;case"End":this.blockSuggestionMouseOver=!0,i(void 0,(()=>{this._isOpen&&this.focusOption(this._filteredSuggestions?this._filteredSuggestions.length-1:0)}));break;case"PageUp":this.blockSuggestionMouseOver=!0,i(void 0,(()=>this._isOpen&&this.moveFocus(-10)));break;case"PageDown":this.blockSuggestionMouseOver=!0,i(void 0,(()=>this._isOpen&&this.moveFocus(10)))}}handleWindowClick(e){void 0===this.host||this.host.contains(e.target)||(this._isOpen=!1)}constructor(e){index$1.registerInstance(this,e),this.refSuggestions=[],this._focusedOptionIndex=-1,this.toggleListbox=()=>{var e;if(!0===this.state._disabled)this._isOpen=!1;else if(null===(e=this.refInput)||void 0===e||e.focus(),!this._hasOpened&&Array.isArray(this._filteredSuggestions)&&this._filteredSuggestions.length>0){this._isOpen=!0,this._hasOpened=!0;const e=this._filteredSuggestions.findIndex((e=>e===this.state._value));this._focusedOptionIndex=e>=0?e:-1,this.focusOption(this._focusedOptionIndex)}},this.catchRef=e=>{this.refInput=e},this.blockSuggestionMouseOver=!1,this._isOpen=!1,this._filteredSuggestions=void 0,this._accessKey=void 0,this._placeholder=void 0,this._alert=void 0,this._disabled=!1,this._hideError=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._id=void 0,this._label=void 0,this._msg=void 0,this._name=void 0,this._on=void 0,this._suggestions=void 0,this._required=!1,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this.state={_hasValue:!1,_hideError:!1,_id:`id-${dev_utils.nonce()}`,_label:"",_suggestions:[],_value:""},this._hasOpened=!1,this.inputHasFocus=!1,this.controller=new ComboboxController(this,"combobox",this.host),this.onInput=this.onInput.bind(this)}showAsAlert(){return void 0===this.state._alert?Boolean(this.state._touched)&&!this.inputHasFocus:this.state._alert}validatePlaceholder(e){this.controller.validatePlaceholder(e)}validateAccessKey(e){this.controller.validateAccessKey(e)}validateAlert(e){this.controller.validateAlert(e)}validateDisabled(e){this.controller.validateDisabled(e)}validateHideError(e){this.controller.validateHideError(e)}validateHideLabel(e){this.controller.validateHideLabel(e)}validateHint(e){this.controller.validateHint(e)}validateIcons(e){this.controller.validateIcons(e)}validateId(e){this.controller.validateId(e)}validateLabel(e){this.controller.validateLabel(e)}validateMsg(e){this.controller.validateMsg(e)}validateName(e){this.controller.validateName(e)}validateOn(e){this.controller.validateOn(e)}validateShortKey(e){this.controller.validateShortKey(e)}validateSuggestions(e){this.controller.validateSuggestions(e),this._filteredSuggestions=e}validateRequired(e){this.controller.validateRequired(e)}validateSyncValueBySelector(e){this.controller.validateSyncValueBySelector(e)}validateTabIndex(e){this.controller.validateTabIndex(e)}validateTouched(e){this.controller.validateTouched(e)}validateValue(e){this.controller.validateValue(e),this.controller.setFormAssociatedValue(e)}componentWillLoad(){this.refSuggestions=[],this._touched=!0===this._touched,this.controller.componentWillLoad(),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener((e=>this.state._hasValue=!!e)),this._filteredSuggestions=this.state._suggestions}handleMouseEvent(){this.blockSuggestionMouseOver=!1}handleFocusOut(){setTimeout((()=>{var e;(null===(e=this.host)||void 0===e?void 0:e.contains(document.activeElement))||this.onBlur()}),0)}handleWindowBlur(){this.onBlur()}onBlur(){var e;this._hasOpened=!1,this._isOpen&&(this._isOpen=!this._isOpen,null===(e=this.refInput)||void 0===e||e.focus())}onChange(e){var t;events.tryToDispatchKoliBriEvent("change",this.host,this.state._value),this.controller.setFormAssociatedValue(this.state._value),"function"!=typeof(null===(t=this.state._on)||void 0===t?void 0:t.onChange)||this._isOpen||this.state._on.onChange(e,this.state._value)}static get delegatesFocus(){return!0}get host(){return index$1.getElement(this)}static get watchers(){return{_placeholder:["validatePlaceholder"],_accessKey:["validateAccessKey"],_alert:["validateAlert"],_disabled:["validateDisabled"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_msg:["validateMsg"],_name:["validateName"],_on:["validateOn"],_shortKey:["validateShortKey"],_suggestions:["validateSuggestions"],_required:["validateRequired"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};KolCombobox.style={default:KolComboboxDefaultStyle0},exports.kol_combobox=KolCombobox;
4
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index$1=require("./index-4cec6984.js"),index=require("./index-4974b34f.js"),clsx=require("./clsx-dd4d6dd1.js"),componentNames=require("./component-names-2c750b1b.js"),i18n=require("./i18n-0d2737f4.js"),dev_utils=require("./dev.utils-1101f05f.js"),events=require("./events-221fcb43.js"),controller=require("./controller-fd34b4a7.js"),InternalUnderlinedBadgeText=require("./InternalUnderlinedBadgeText-2077b207.js"),controllerIcon=require("./controller-icon-4142a807.js"),suggestions=require("./suggestions-938f9775.js");require("./i18n-1c001171.js"),require("./associated.controller-7bf7ebae.js"),require("./access-and-short-key-18fca6a6.js"),require("./hide-label-8179f9f6.js"),require("./label-d59f00da.js"),require("./tooltip-align-ee316e05.js"),require("./align-5570f44b.js"),require("./icons-8b64c1ab.js");class ComboboxController extends controllerIcon.InputIconController{constructor(e,t,n){super(e,t,n),this.component=e}validatePlaceholder(e){index.watchString(this.component,"_placeholder",e)}validateRequired(e){index.watchBoolean(this.component,"_required",e)}validateSuggestions(e){suggestions.validateSuggestions(this.component,e)}validateValue(e){index.watchString(this.component,"_value",e)}componentWillLoad(){super.componentWillLoad(),this.validatePlaceholder(this.component._placeholder),this.validateRequired(this.component._required),this.validateSuggestions(this.component._suggestions),this.validateValue(this.component._value)}}const defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));\n color: black;\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%; /* 100% needed for custom width from outside */\n margin: 0;\n padding: 0;\n border: none;\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n .kol-tooltip-wc {\n display: contents;\n contain: layout;\n }\n .kol-tooltip-wc .tooltip-floating {\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n max-width: 90vw;\n max-height: 90vh;\n visibility: hidden;\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n }\n /* Shared between content and arrow */\n .kol-tooltip-wc .tooltip-area {\n color: #000;\n background-color: #fff;\n }\n .kol-tooltip-wc .tooltip-arrow {\n transform: rotate(45deg);\n position: absolute;\n z-index: 999;\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip-wc .tooltip-content {\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .required label > span::after,\n .required legend > span::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n input,\n textarea {\n cursor: text;\n }\n input[type=checkbox],\n input[type=color],\n input[type=file],\n input[type=radio],\n input[type=range],\n label,\n option,\n select {\n cursor: pointer;\n }\n /* input[type='checkbox'], */\n /* input[type='radio'], */\n /* input[type='range'], */\n input[type=color],\n input[type=date],\n input[type=datetime-local],\n input[type=email],\n input[type=file],\n input[type=month],\n input[type=number],\n input[type=password],\n input[type=search],\n input[type=tel],\n input[type=text],\n input[type=time],\n input[type=url],\n input[type=week],\n option,\n select,\n textarea {\n background-color: transparent;\n width: 100%;\n }\n /* needed hack for vertical alignment */\n input[type=file] {\n padding: calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 10) 0.5em;\n }\n /* needed hack for vertical alignment */\n select[multiple] option {\n padding: calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 2) 0.5em;\n }\n}\n@layer kol-component {\n .kol-alert-wc {\n display: grid;\n }\n .kol-alert-wc .heading {\n display: flex;\n place-items: center;\n }\n .kol-alert-wc .heading > div {\n flex-grow: 1;\n }\n .close {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n .kol-input {\n display: grid;\n }\n .kol-input .input-slot {\n flex-grow: 1;\n }\n input:focus,\n option:focus,\n select:focus,\n textarea:focus {\n outline: 0;\n }\n .input {\n background-color: white;\n display: flex;\n align-items: center;\n cursor: pointer;\n }\n button:not([role=link]) {\n min-height: auto;\n }\n .input > .kol-icon {\n display: grid;\n place-items: center;\n }\n .kol-input.required .input-tooltip .span-label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n .combobox {\n position: relative;\n }\n .combobox--disabled, .combobox--disabled * {\n cursor: not-allowed !important;\n }\n .combobox--disabled {\n opacity: 0.5;\n outline: none;\n }\n .combobox__group {\n display: inline-flex;\n align-items: center;\n cursor: pointer;\n }\n .combobox__input {\n flex-grow: 1;\n }\n .combobox__icon {\n display: flex;\n width: var(--a11y-min-size);\n align-items: center;\n cursor: pointer;\n }\n .combobox__listbox {\n background-color: white;\n display: block;\n position: absolute;\n z-index: 2;\n max-height: calc(250rem / var(--kolibri-root-font-size, 16));\n margin: 0;\n padding: 0;\n overflow-x: hidden;\n overflow-y: auto;\n list-style-type: none;\n }\n .combobox__item {\n cursor: pointer;\n }\n .combobox__listbox--cursor-hidden .combobox__item {\n cursor: none !important;\n }\n}",KolComboboxDefaultStyle0=defaultStyleCss,KolCombobox=class{async getValue(){return this.state._value}async kolFocus(){var e;null===(e=this.refInput)||void 0===e||e.focus()}selectOption(e){var t;this.controller.onFacade.onInput(new CustomEvent("input",{bubbles:!0,detail:{name:this.state._name,value:e}}),!0,e),this.controller.onFacade.onChange(new CustomEvent("change",{bubbles:!0,detail:{name:this.state._name,value:e}}),e),this.controller.setFormAssociatedValue(e),this.state._value=e,this._value=e,null===(t=this.refInput)||void 0===t||t.focus()}onInput(e){const t=e.target;this.state._value=t.value,this._value=t.value,this.controller.onFacade.onInput(e),this.setFilteredSuggestionsByQuery(t.value),this._focusedOptionIndex=-1}handleKeyDownDropdown(e){1===e.key.length&&/[a-z0-9]/i.test(e.key)&&(this._isOpen=!0,this.focusSuggestionStartingWith(e.key))}setFilteredSuggestionsByQuery(e){""===e.trim()?this._filteredSuggestions=[...this._suggestions]:(this._filteredSuggestions=Array.isArray(this._suggestions)?this._suggestions.filter(t=>t.toLowerCase().includes(e.toLowerCase())):this._filteredSuggestions,this._isOpen=!!(this._filteredSuggestions&&this._filteredSuggestions.length>0))}moveFocus(e){if(!this._filteredSuggestions)return;let t=this._focusedOptionIndex+e;t>=this._filteredSuggestions.length&&(t=0),t<0&&(t=this._filteredSuggestions.length-1),this.focusOption(t)}focusOption(e){if(this._focusedOptionIndex=e,this.refSuggestions){const t=this.refSuggestions[e];null==t||t.focus()}}focusSuggestionStartingWith(e){const t=e.toLowerCase(),n=Array.isArray(this._filteredSuggestions)&&this._filteredSuggestions.length>0&&this._filteredSuggestions.findIndex(e=>e.toLowerCase().startsWith(t));"number"==typeof n&&this.focusOption(n)}render(){const e=index.showExpertSlot(this.state._label),{ariaDescribedBy:t}=controller.getRenderStates(this.state);return index$1.h(index$1.Host,{key:"539582153b25b549cdbda73a0e48ab7cdd4a191a",class:"kol-combobox"},index$1.h("div",{key:"1d2e85257cbcb73f9524b36bc0fe60acee7b0a93",class:clsx.clsx("combobox",this.state._disabled&&"combobox--disabled")},index$1.h(componentNames.KolInputTag,{key:"ed68373d5ce2dc77ac17f1c2e1c7bef1fe70d668",_accessKey:this.state._accessKey,_alert:this.showAsAlert(),_disabled:this.state._disabled,_hideError:this.state._hideError,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_icons:this.state._icons,_id:this.state._id,_label:this.state._label,_msg:this.state._msg,_required:this.state._required,_shortKey:this.state._shortKey,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched,onClick:()=>{var e;return null===(e=this.refInput)||void 0===e?void 0:e.focus()},role:"presentation"},index$1.h("span",{key:"bbd2040c0f50b8c5c8e59f8591932d6dc739c7c1",slot:"label"},e?index$1.h("slot",{name:"expert"}):"string"==typeof this.state._accessKey||"string"==typeof this.state._shortKey?index$1.h(index$1.Fragment,null,index$1.h(InternalUnderlinedBadgeText.InternalUnderlinedBadgeText,{badgeText:index.buildBadgeTextString(this.state._accessKey,this.state._shortKey),label:this.state._label})," ",index$1.h("kbd",{class:"badge-text-hint","aria-hidden":"true"},index.buildBadgeTextString(this.state._accessKey,this.state._shortKey))):index$1.h("span",null,this.state._label)),index$1.h("div",{key:"5cba627e6fc743cc491b0489de20d1ca35ee1381",slot:"input"},index$1.h("div",{key:"4fe1a68b244c8baae0ff5bd7a287e1a7e2887b78",class:"combobox__group"},index$1.h("input",Object.assign({key:"0ce26e7dba3167c103b215dd882913acc328a0fe",ref:this.catchRef,class:"combobox__input",type:"text",role:"combobox","aria-autocomplete":"both","aria-expanded":this._isOpen?"true":"false","aria-controls":"listbox",value:this.state._value,accessKey:this.state._accessKey,"aria-describedby":t.length>0?t.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,"aria-labelledby":this.state._id,"aria-activedescendant":this._isOpen&&this._focusedOptionIndex>=0?`option-${this._focusedOptionIndex}`:void 0,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",disabled:this.state._disabled,id:this.state._id,name:this.state._name,required:this.state._required},this.controller.onFacade,{onFocus:e=>{this.controller.onFacade.onFocus(e),this.inputHasFocus=!0},onBlur:e=>{this.controller.onFacade.onBlur(e),this.inputHasFocus=!1},onChange:this.onChange.bind(this),onInput:this.onInput.bind(this),placeholder:this.state._placeholder})),index$1.h("button",{key:"0a49f06cdf6ab615f1be992fd174d2213443f14f",tabindex:"-1",class:"combobox__icon",onClick:this.toggleListbox.bind(this),disabled:this.state._disabled},index$1.h(componentNames.KolIconTag,{key:"c310753705cabbb6b54617ea10622dbabaf6d72e",_icons:"codicon codicon-triangle-down",_label:i18n.translate("kol-dropdown")}))),this._isOpen&&!(!0===this.state._disabled)&&index$1.h("ul",{key:"bbb7108ae00af3f80567c03696012b7404fa4744",role:"listbox",class:clsx.clsx("combobox__listbox",this.blockSuggestionMouseOver&&"combobox__listbox--cursor-hidden"),onKeyDown:this.handleKeyDownDropdown.bind(this)},Array.isArray(this._filteredSuggestions)&&this._filteredSuggestions.length>0&&this._filteredSuggestions.map((e,t)=>index$1.h("li",{id:`option-${t}`,key:`-${t}`,ref:e=>{e&&(this.refSuggestions[t]=e)},"data-index":t,tabIndex:-1,role:"option","aria-selected":this.state._value===e?"true":void 0,onClick:()=>{this.selectOption(e),this.toggleListbox(),this._isOpen=!1,this._hasOpened=!1},onMouseOver:()=>{this.blockSuggestionMouseOver||this.focusOption(t)},onFocus:()=>{this.focusOption(t)},class:"combobox__item",onKeyDown:t=>{"Enter"!==t.key&&"NumpadEnter"!==t.key||(this.selectOption(e),this.toggleListbox(),t.preventDefault())}},e)))))))}handleKeyDown(e){var t,n;const i=(t,n)=>{var i;e.preventDefault(),void 0!==t&&(this._isOpen=t,t||null===(i=this.refInput)||void 0===i||i.focus()),null==n||n()};switch(e.key){case"Down":case"ArrowDown":this.blockSuggestionMouseOver=!0,i(!0,()=>this.moveFocus(1));break;case"Up":case"ArrowUp":this.blockSuggestionMouseOver=!0,i(!0,()=>this.moveFocus(-1));break;case"Tab":this._isOpen&&(this._isOpen=!1,null===(t=this.refInput)||void 0===t||t.focus());break;case"Esc":case"Escape":this._hasOpened=!1,this._isOpen=!1,e.preventDefault(),null===(n=this.refInput)||void 0===n||n.focus();break;case"NumpadEnter":case"Enter":this._isOpen&&this._focusedOptionIndex>=0?(this._filteredSuggestions&&this.selectOption(this._filteredSuggestions[this._focusedOptionIndex]),this._isOpen=!1,this._hasOpened=!1):this.toggleListbox(),e.preventDefault();break;case"Home":this.blockSuggestionMouseOver=!0,i(void 0,()=>{this._isOpen&&this.focusOption(0)});break;case"End":this.blockSuggestionMouseOver=!0,i(void 0,()=>{this._isOpen&&this.focusOption(this._filteredSuggestions?this._filteredSuggestions.length-1:0)});break;case"PageUp":this.blockSuggestionMouseOver=!0,i(void 0,()=>this._isOpen&&this.moveFocus(-10));break;case"PageDown":this.blockSuggestionMouseOver=!0,i(void 0,()=>this._isOpen&&this.moveFocus(10))}}handleWindowClick(e){void 0===this.host||this.host.contains(e.target)||(this._isOpen=!1)}constructor(e){index$1.registerInstance(this,e),this.refSuggestions=[],this._focusedOptionIndex=-1,this.toggleListbox=()=>{var e;if(!0===this.state._disabled)this._isOpen=!1;else if(null===(e=this.refInput)||void 0===e||e.focus(),!this._hasOpened&&Array.isArray(this._filteredSuggestions)&&this._filteredSuggestions.length>0){this._isOpen=!0,this._hasOpened=!0;const e=this._filteredSuggestions.findIndex(e=>e===this.state._value);this._focusedOptionIndex=e>=0?e:-1,this.focusOption(this._focusedOptionIndex)}},this.catchRef=e=>{this.refInput=e},this.blockSuggestionMouseOver=!1,this._isOpen=!1,this._filteredSuggestions=void 0,this._accessKey=void 0,this._placeholder=void 0,this._alert=void 0,this._disabled=!1,this._hideError=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._id=void 0,this._label=void 0,this._msg=void 0,this._name=void 0,this._on=void 0,this._suggestions=void 0,this._required=!1,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this.state={_hasValue:!1,_hideError:!1,_id:`id-${dev_utils.nonce()}`,_label:"",_suggestions:[],_value:""},this._hasOpened=!1,this.inputHasFocus=!1,this.controller=new ComboboxController(this,"combobox",this.host),this.onInput=this.onInput.bind(this)}showAsAlert(){return void 0===this.state._alert?Boolean(this.state._touched)&&!this.inputHasFocus:this.state._alert}validatePlaceholder(e){this.controller.validatePlaceholder(e)}validateAccessKey(e){this.controller.validateAccessKey(e)}validateAlert(e){this.controller.validateAlert(e)}validateDisabled(e){this.controller.validateDisabled(e)}validateHideError(e){this.controller.validateHideError(e)}validateHideLabel(e){this.controller.validateHideLabel(e)}validateHint(e){this.controller.validateHint(e)}validateIcons(e){this.controller.validateIcons(e)}validateId(e){this.controller.validateId(e)}validateLabel(e){this.controller.validateLabel(e)}validateMsg(e){this.controller.validateMsg(e)}validateName(e){this.controller.validateName(e)}validateOn(e){this.controller.validateOn(e)}validateShortKey(e){this.controller.validateShortKey(e)}validateSuggestions(e){this.controller.validateSuggestions(e),this._filteredSuggestions=e}validateRequired(e){this.controller.validateRequired(e)}validateSyncValueBySelector(e){this.controller.validateSyncValueBySelector(e)}validateTabIndex(e){this.controller.validateTabIndex(e)}validateTouched(e){this.controller.validateTouched(e)}validateValue(e){this.controller.validateValue(e),this.controller.setFormAssociatedValue(e)}componentWillLoad(){this.refSuggestions=[],this._touched=!0===this._touched,this.controller.componentWillLoad(),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener(e=>this.state._hasValue=!!e),this._filteredSuggestions=this.state._suggestions}handleMouseEvent(){this.blockSuggestionMouseOver=!1}handleFocusOut(){setTimeout(()=>{var e;(null===(e=this.host)||void 0===e?void 0:e.contains(document.activeElement))||this.onBlur()},0)}handleWindowBlur(){this.onBlur()}onBlur(){var e;this._hasOpened=!1,this._isOpen&&(this._isOpen=!this._isOpen,null===(e=this.refInput)||void 0===e||e.focus())}onChange(e){var t;events.tryToDispatchKoliBriEvent("change",this.host,this.state._value),this.controller.setFormAssociatedValue(this.state._value),"function"!=typeof(null===(t=this.state._on)||void 0===t?void 0:t.onChange)||this._isOpen||this.state._on.onChange(e,this.state._value)}static get delegatesFocus(){return!0}get host(){return index$1.getElement(this)}static get watchers(){return{_placeholder:["validatePlaceholder"],_accessKey:["validateAccessKey"],_alert:["validateAlert"],_disabled:["validateDisabled"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_msg:["validateMsg"],_name:["validateName"],_on:["validateOn"],_shortKey:["validateShortKey"],_suggestions:["validateSuggestions"],_required:["validateRequired"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};KolCombobox.style={default:KolComboboxDefaultStyle0},exports.kol_combobox=KolCombobox;