@public-ui/components 2.2.7 → 2.2.8-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 (831) hide show
  1. package/custom-elements.json +10 -4
  2. package/dist/cjs/{Alert-6c8f8876.js → Alert-837fb723.js} +1 -1
  3. package/dist/cjs/{Alert-6c8f8876.js.map → Alert-837fb723.js.map} +1 -1
  4. package/dist/cjs/{Collapsible-5b710aa8.js → Collapsible-3b23852c.js} +1 -1
  5. package/dist/cjs/{Collapsible-5b710aa8.js.map → Collapsible-3b23852c.js.map} +1 -1
  6. package/dist/cjs/{FormFieldMsg-97d1588a.js → FormFieldMsg-4ae0ce9e.js} +1 -1
  7. package/dist/cjs/{FormFieldMsg-97d1588a.js.map → FormFieldMsg-4ae0ce9e.js.map} +1 -1
  8. package/dist/cjs/{InternalUnderlinedBadgeText-d2eced00.js → InternalUnderlinedBadgeText-f4cee9b8.js} +1 -1
  9. package/dist/cjs/{InternalUnderlinedBadgeText-d2eced00.js.map → InternalUnderlinedBadgeText-f4cee9b8.js.map} +1 -1
  10. package/dist/cjs/{access-and-short-key-12a097ab.js → access-and-short-key-4ee0c067.js} +1 -1
  11. package/dist/cjs/{access-and-short-key-12a097ab.js.map → access-and-short-key-4ee0c067.js.map} +1 -1
  12. package/dist/cjs/{align-b9732b91.js → align-3fa838b5.js} +1 -1
  13. package/dist/cjs/{align-b9732b91.js.map → align-3fa838b5.js.map} +1 -1
  14. package/dist/cjs/{app-globals-9ae80448.js → app-globals-06011419.js} +1 -1
  15. package/dist/cjs/{app-globals-9ae80448.js.map → app-globals-06011419.js.map} +1 -1
  16. package/dist/cjs/{aria-expanded-3376c72e.js → aria-expanded-7d8d2aca.js} +1 -1
  17. package/dist/cjs/{aria-expanded-3376c72e.js.map → aria-expanded-7d8d2aca.js.map} +1 -1
  18. package/dist/cjs/{associated.controller-5e3fde43.js → associated.controller-8d2d4650.js} +1 -1
  19. package/dist/cjs/{associated.controller-5e3fde43.js.map → associated.controller-8d2d4650.js.map} +1 -1
  20. package/dist/cjs/badge-text-8d3864bd.js +4 -0
  21. package/dist/cjs/{badge-text-3a33a84b.js.map → badge-text-8d3864bd.js.map} +1 -1
  22. package/dist/cjs/{color-2c30c52b.js → color-1a036a49.js} +1 -1
  23. package/dist/cjs/{color-2c30c52b.js.map → color-1a036a49.js.map} +1 -1
  24. package/dist/cjs/{controller-0fbcf11a.js → controller-4c62765f.js} +1 -1
  25. package/dist/cjs/{controller-0fbcf11a.js.map → controller-4c62765f.js.map} +1 -1
  26. package/dist/cjs/{controller-1f1105de.js → controller-563984db.js} +1 -1
  27. package/dist/cjs/{controller-1f1105de.js.map → controller-563984db.js.map} +1 -1
  28. package/dist/cjs/controller-91763b20.js +4 -0
  29. package/dist/cjs/{controller-8c83cf6d.js.map → controller-91763b20.js.map} +1 -1
  30. package/dist/cjs/{controller-6bc73748.js → controller-d91f5077.js} +1 -1
  31. package/dist/cjs/{controller-6bc73748.js.map → controller-d91f5077.js.map} +1 -1
  32. package/dist/cjs/{controller-3df689d7.js → controller-ee67ec39.js} +1 -1
  33. package/dist/cjs/{controller-3df689d7.js.map → controller-ee67ec39.js.map} +1 -1
  34. package/dist/cjs/controller-icon-b978babc.js +4 -0
  35. package/dist/cjs/controller-icon-b978babc.js.map +1 -0
  36. package/dist/cjs/custom-class-8f276ee3.js +4 -0
  37. package/dist/cjs/{custom-class-3a1c18f3.js.map → custom-class-8f276ee3.js.map} +1 -1
  38. package/dist/cjs/{dev.utils-93cbf127.js → dev.utils-965ca145.js} +1 -1
  39. package/dist/cjs/{dev.utils-93cbf127.js.map → dev.utils-965ca145.js.map} +1 -1
  40. package/dist/cjs/{devtools-81d9bff6.js → devtools-e65af4e9.js} +1 -1
  41. package/dist/cjs/{devtools-81d9bff6.js.map → devtools-e65af4e9.js.map} +1 -1
  42. package/dist/cjs/disabled-d424f708.js +4 -0
  43. package/dist/cjs/{disabled-5a2e250c.js.map → disabled-d424f708.js.map} +1 -1
  44. package/dist/cjs/{events-e094ddcb.js → events-275a2a5e.js} +1 -1
  45. package/dist/cjs/{events-e094ddcb.js.map → events-275a2a5e.js.map} +1 -1
  46. package/dist/cjs/has-closer-d1310212.js +4 -0
  47. package/dist/cjs/{has-closer-9b3c14a7.js.map → has-closer-d1310212.js.map} +1 -1
  48. package/dist/cjs/has-counter-878e61ea.js +4 -0
  49. package/dist/cjs/{has-counter-7318f6f4.js.map → has-counter-878e61ea.js.map} +1 -1
  50. package/dist/cjs/hide-label-cfe594e0.js +4 -0
  51. package/dist/cjs/{hide-label-b0063224.js.map → hide-label-cfe594e0.js.map} +1 -1
  52. package/dist/cjs/href-51cfc659.js +4 -0
  53. package/dist/cjs/{href-2485cb51.js.map → href-51cfc659.js.map} +1 -1
  54. package/dist/cjs/{icons-310a07cc.js → icons-f0f3f9c5.js} +1 -1
  55. package/dist/cjs/icons-f0f3f9c5.js.map +1 -0
  56. package/dist/cjs/image-source-74bc2874.js +4 -0
  57. package/dist/cjs/{image-source-27335383.js.map → image-source-74bc2874.js.map} +1 -1
  58. package/dist/cjs/index-d1d7d466.js +4 -0
  59. package/dist/cjs/index-d1d7d466.js.map +1 -0
  60. package/dist/cjs/index.cjs.js +1 -1
  61. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  62. package/dist/cjs/kol-abbr.cjs.entry.js.map +1 -1
  63. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  64. package/dist/cjs/kol-accordion.cjs.entry.js.map +1 -1
  65. package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
  66. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  67. package/dist/cjs/kol-alert.cjs.entry.js.map +1 -1
  68. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  69. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-avatar.cjs.entry.js.map +1 -1
  71. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-badge.cjs.entry.js.map +1 -1
  73. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  74. package/dist/cjs/kol-breadcrumb.cjs.entry.js.map +1 -1
  75. package/dist/cjs/kol-button-group-wc.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-button-group.cjs.entry.js +1 -1
  77. package/dist/cjs/kol-button-group.cjs.entry.js.map +1 -1
  78. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  79. package/dist/cjs/kol-button-link.cjs.entry.js.map +1 -1
  80. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  81. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  82. package/dist/cjs/kol-button.cjs.entry.js.map +1 -1
  83. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  84. package/dist/cjs/kol-card.cjs.entry.js.map +1 -1
  85. package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
  86. package/dist/cjs/kol-combobox.cjs.entry.js.map +1 -1
  87. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  88. package/dist/cjs/kol-details.cjs.entry.js.map +1 -1
  89. package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
  90. package/dist/cjs/kol-drawer.cjs.entry.js.map +1 -1
  91. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-form.cjs.entry.js.map +1 -1
  93. package/dist/cjs/kol-heading-wc.cjs.entry.js +1 -1
  94. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  95. package/dist/cjs/kol-heading.cjs.entry.js.map +1 -1
  96. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  97. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  98. package/dist/cjs/kol-image.cjs.entry.js.map +1 -1
  99. package/dist/cjs/kol-indented-text-wc.cjs.entry.js +1 -1
  100. package/dist/cjs/kol-indented-text.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-indented-text.cjs.entry.js.map +1 -1
  102. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  103. package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
  104. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  105. package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
  106. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  107. package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
  108. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  109. package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
  110. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  111. package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
  112. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  113. package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
  114. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  115. package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
  116. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  117. package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
  118. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  119. package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
  120. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  121. package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
  122. package/dist/cjs/kol-input.cjs.entry.js +1 -1
  123. package/dist/cjs/kol-input.cjs.entry.js.map +1 -1
  124. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  125. package/dist/cjs/kol-kolibri.cjs.entry.js.map +1 -1
  126. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  127. package/dist/cjs/kol-link-button.cjs.entry.js.map +1 -1
  128. package/dist/cjs/kol-link-group.cjs.entry.js +1 -1
  129. package/dist/cjs/kol-link-group.cjs.entry.js.map +1 -1
  130. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  131. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  132. package/dist/cjs/kol-link.cjs.entry.js.map +1 -1
  133. package/dist/cjs/kol-logo.cjs.entry.js +1 -1
  134. package/dist/cjs/kol-logo.cjs.entry.js.map +1 -1
  135. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  136. package/dist/cjs/kol-modal.cjs.entry.js.map +1 -1
  137. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  138. package/dist/cjs/kol-nav.cjs.entry.js.map +1 -1
  139. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  140. package/dist/cjs/kol-pagination.cjs.entry.js.map +1 -1
  141. package/dist/cjs/kol-popover-button.cjs.entry.js +1 -1
  142. package/dist/cjs/kol-popover-button.cjs.entry.js.map +1 -1
  143. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  144. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  145. package/dist/cjs/kol-progress.cjs.entry.js.map +1 -1
  146. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  147. package/dist/cjs/kol-quote.cjs.entry.js.map +1 -1
  148. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  149. package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
  150. package/dist/cjs/kol-single-select.cjs.entry.js +1 -1
  151. package/dist/cjs/kol-single-select.cjs.entry.js.map +1 -1
  152. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  153. package/dist/cjs/kol-skip-nav.cjs.entry.js.map +1 -1
  154. package/dist/cjs/kol-span-wc.cjs.entry.js +1 -1
  155. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  156. package/dist/cjs/kol-spin.cjs.entry.js.map +1 -1
  157. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  158. package/dist/cjs/kol-split-button.cjs.entry.js.map +1 -1
  159. package/dist/cjs/kol-symbol.cjs.entry.js +1 -1
  160. package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
  161. package/dist/cjs/kol-table-stateful.cjs.entry.js.map +1 -1
  162. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
  163. package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
  164. package/dist/cjs/kol-table-stateless.cjs.entry.js.map +1 -1
  165. package/dist/cjs/kol-table.cjs.entry.js +1 -1
  166. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  167. package/dist/cjs/kol-tabs.cjs.entry.js.map +1 -1
  168. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  169. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  170. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  171. package/dist/cjs/kol-toast-container.cjs.entry.js.map +1 -1
  172. package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
  173. package/dist/cjs/kol-toolbar.cjs.entry.js.map +1 -1
  174. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  175. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
  176. package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
  177. package/dist/cjs/kol-tree-item.cjs.entry.js.map +1 -1
  178. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  179. package/dist/cjs/kol-tree.cjs.entry.js +1 -1
  180. package/dist/cjs/kol-tree.cjs.entry.js.map +1 -1
  181. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  182. package/dist/cjs/kol-version.cjs.entry.js.map +1 -1
  183. package/dist/cjs/kolibri.cjs.js +1 -1
  184. package/dist/cjs/{label-b8654499.js → label-477be19d.js} +1 -1
  185. package/dist/cjs/{label-b8654499.js.map → label-477be19d.js.map} +1 -1
  186. package/dist/cjs/loader.cjs.js +1 -1
  187. package/dist/cjs/open-ef7b4602.js +4 -0
  188. package/dist/cjs/{open-5c1af49f.js.map → open-ef7b4602.js.map} +1 -1
  189. package/dist/cjs/{prop.validators-96dfedce.js → prop.validators-888c8338.js} +1 -1
  190. package/dist/cjs/prop.validators-888c8338.js.map +1 -0
  191. package/dist/cjs/rows-4d4438c2.js +4 -0
  192. package/dist/cjs/{rows-782313b6.js.map → rows-4d4438c2.js.map} +1 -1
  193. package/dist/cjs/show-ebdc6e78.js +4 -0
  194. package/dist/cjs/{show-5b2be58e.js.map → show-ebdc6e78.js.map} +1 -1
  195. package/dist/cjs/spell-check-beb27264.js +4 -0
  196. package/dist/cjs/{spell-check-5c5eee25.js.map → spell-check-beb27264.js.map} +1 -1
  197. package/dist/cjs/{suggestions-cd0a843d.js → suggestions-0e186f46.js} +1 -1
  198. package/dist/cjs/{suggestions-cd0a843d.js.map → suggestions-0e186f46.js.map} +1 -1
  199. package/dist/cjs/test-component.cjs.entry.js +1 -1
  200. package/dist/cjs/tooltip-align-c6cf9049.js +4 -0
  201. package/dist/cjs/{tooltip-align-3b9a6bde.js.map → tooltip-align-c6cf9049.js.map} +1 -1
  202. package/dist/cjs/{validation-fbc2d426.js → validation-244ee97f.js} +1 -1
  203. package/dist/cjs/{validation-fbc2d426.js.map → validation-244ee97f.js.map} +1 -1
  204. package/dist/cjs/{validation-7ea25fa6.js → validation-cd978d87.js} +1 -1
  205. package/dist/cjs/{validation-7ea25fa6.js.map → validation-cd978d87.js.map} +1 -1
  206. package/dist/components/controller-icon.js +1 -1
  207. package/dist/components/controller-icon.js.map +1 -1
  208. package/dist/components/controller2.js +1 -1
  209. package/dist/components/controller2.js.map +1 -1
  210. package/dist/components/controller3.js +1 -1
  211. package/dist/components/controller3.js.map +1 -1
  212. package/dist/components/devtools.js +1 -1
  213. package/dist/components/events2.js +1 -1
  214. package/dist/components/icons.js +1 -1
  215. package/dist/components/icons.js.map +1 -1
  216. package/dist/components/kol-abbr.js +1 -1
  217. package/dist/components/kol-abbr.js.map +1 -1
  218. package/dist/components/kol-accordion.js +1 -1
  219. package/dist/components/kol-accordion.js.map +1 -1
  220. package/dist/components/kol-alert.js +1 -1
  221. package/dist/components/kol-alert.js.map +1 -1
  222. package/dist/components/kol-avatar.js +1 -1
  223. package/dist/components/kol-avatar.js.map +1 -1
  224. package/dist/components/kol-badge.js +1 -1
  225. package/dist/components/kol-badge.js.map +1 -1
  226. package/dist/components/kol-breadcrumb.js +1 -1
  227. package/dist/components/kol-breadcrumb.js.map +1 -1
  228. package/dist/components/kol-button-group.js +1 -1
  229. package/dist/components/kol-button-group.js.map +1 -1
  230. package/dist/components/kol-button-link.js +1 -1
  231. package/dist/components/kol-button-link.js.map +1 -1
  232. package/dist/components/kol-button.js +1 -1
  233. package/dist/components/kol-button.js.map +1 -1
  234. package/dist/components/kol-card.js +1 -1
  235. package/dist/components/kol-card.js.map +1 -1
  236. package/dist/components/kol-combobox.js +1 -1
  237. package/dist/components/kol-combobox.js.map +1 -1
  238. package/dist/components/kol-details.js +1 -1
  239. package/dist/components/kol-details.js.map +1 -1
  240. package/dist/components/kol-drawer.js +1 -1
  241. package/dist/components/kol-drawer.js.map +1 -1
  242. package/dist/components/kol-form.js +1 -1
  243. package/dist/components/kol-form.js.map +1 -1
  244. package/dist/components/kol-heading.js +1 -1
  245. package/dist/components/kol-heading.js.map +1 -1
  246. package/dist/components/kol-image.js +1 -1
  247. package/dist/components/kol-image.js.map +1 -1
  248. package/dist/components/kol-indented-text.js +1 -1
  249. package/dist/components/kol-indented-text.js.map +1 -1
  250. package/dist/components/kol-input-checkbox.js +1 -1
  251. package/dist/components/kol-input-checkbox.js.map +1 -1
  252. package/dist/components/kol-input-color.js +1 -1
  253. package/dist/components/kol-input-color.js.map +1 -1
  254. package/dist/components/kol-input-date.js +1 -1
  255. package/dist/components/kol-input-date.js.map +1 -1
  256. package/dist/components/kol-input-email.js +1 -1
  257. package/dist/components/kol-input-email.js.map +1 -1
  258. package/dist/components/kol-input-file.js +1 -1
  259. package/dist/components/kol-input-file.js.map +1 -1
  260. package/dist/components/kol-input-number.js +1 -1
  261. package/dist/components/kol-input-number.js.map +1 -1
  262. package/dist/components/kol-input-password.js +1 -1
  263. package/dist/components/kol-input-password.js.map +1 -1
  264. package/dist/components/kol-input-radio.js +1 -1
  265. package/dist/components/kol-input-radio.js.map +1 -1
  266. package/dist/components/kol-input-range.js +1 -1
  267. package/dist/components/kol-input-range.js.map +1 -1
  268. package/dist/components/kol-input-text.js +1 -1
  269. package/dist/components/kol-input-text.js.map +1 -1
  270. package/dist/components/kol-input.js.map +1 -1
  271. package/dist/components/kol-kolibri.js +1 -1
  272. package/dist/components/kol-kolibri.js.map +1 -1
  273. package/dist/components/kol-link-button.js +1 -1
  274. package/dist/components/kol-link-button.js.map +1 -1
  275. package/dist/components/kol-link-group.js +1 -1
  276. package/dist/components/kol-link-group.js.map +1 -1
  277. package/dist/components/kol-link.js +1 -1
  278. package/dist/components/kol-link.js.map +1 -1
  279. package/dist/components/kol-logo.js +1 -1
  280. package/dist/components/kol-logo.js.map +1 -1
  281. package/dist/components/kol-modal.js +1 -1
  282. package/dist/components/kol-modal.js.map +1 -1
  283. package/dist/components/kol-nav.js +1 -1
  284. package/dist/components/kol-nav.js.map +1 -1
  285. package/dist/components/kol-pagination.js +1 -1
  286. package/dist/components/kol-pagination.js.map +1 -1
  287. package/dist/components/kol-popover-button.js +1 -1
  288. package/dist/components/kol-popover-button.js.map +1 -1
  289. package/dist/components/kol-progress.js +1 -1
  290. package/dist/components/kol-progress.js.map +1 -1
  291. package/dist/components/kol-quote.js +1 -1
  292. package/dist/components/kol-quote.js.map +1 -1
  293. package/dist/components/kol-select.js +1 -1
  294. package/dist/components/kol-select.js.map +1 -1
  295. package/dist/components/kol-single-select.js +1 -1
  296. package/dist/components/kol-single-select.js.map +1 -1
  297. package/dist/components/kol-skip-nav.js +1 -1
  298. package/dist/components/kol-skip-nav.js.map +1 -1
  299. package/dist/components/kol-spin.js +1 -1
  300. package/dist/components/kol-spin.js.map +1 -1
  301. package/dist/components/kol-split-button.js +1 -1
  302. package/dist/components/kol-split-button.js.map +1 -1
  303. package/dist/components/kol-table-stateful.js +1 -1
  304. package/dist/components/kol-table-stateful.js.map +1 -1
  305. package/dist/components/kol-table-stateless-wc.js +1 -1
  306. package/dist/components/kol-table-stateless.js +1 -1
  307. package/dist/components/kol-table-stateless.js.map +1 -1
  308. package/dist/components/kol-tabs.js +1 -1
  309. package/dist/components/kol-tabs.js.map +1 -1
  310. package/dist/components/kol-textarea.js +1 -1
  311. package/dist/components/kol-textarea.js.map +1 -1
  312. package/dist/components/kol-toast-container.js +1 -1
  313. package/dist/components/kol-toast-container.js.map +1 -1
  314. package/dist/components/kol-toolbar.js +1 -1
  315. package/dist/components/kol-toolbar.js.map +1 -1
  316. package/dist/components/kol-tree-item.js +1 -1
  317. package/dist/components/kol-tree-item.js.map +1 -1
  318. package/dist/components/kol-tree.js +1 -1
  319. package/dist/components/kol-tree.js.map +1 -1
  320. package/dist/components/kol-version.js +1 -1
  321. package/dist/components/kol-version.js.map +1 -1
  322. package/dist/components/prop.validators.js +1 -1
  323. package/dist/components/prop.validators.js.map +1 -1
  324. package/dist/esm/{Alert-d4721006.js → Alert-46ff7f17.js} +1 -1
  325. package/dist/esm/{Alert-d4721006.js.map → Alert-46ff7f17.js.map} +1 -1
  326. package/dist/esm/{Collapsible-4909d664.js → Collapsible-ea88bac8.js} +1 -1
  327. package/dist/esm/{Collapsible-4909d664.js.map → Collapsible-ea88bac8.js.map} +1 -1
  328. package/dist/esm/{FormFieldMsg-a2fe9117.js → FormFieldMsg-eb73e011.js} +1 -1
  329. package/dist/esm/{FormFieldMsg-a2fe9117.js.map → FormFieldMsg-eb73e011.js.map} +1 -1
  330. package/dist/esm/{InternalUnderlinedBadgeText-3bbff7b1.js → InternalUnderlinedBadgeText-99e9a3e0.js} +1 -1
  331. package/dist/esm/{InternalUnderlinedBadgeText-3bbff7b1.js.map → InternalUnderlinedBadgeText-99e9a3e0.js.map} +1 -1
  332. package/dist/esm/{access-and-short-key-9cca88b8.js → access-and-short-key-e094398d.js} +1 -1
  333. package/dist/esm/{access-and-short-key-9cca88b8.js.map → access-and-short-key-e094398d.js.map} +1 -1
  334. package/dist/esm/{align-82100bda.js → align-878fb132.js} +1 -1
  335. package/dist/esm/{align-82100bda.js.map → align-878fb132.js.map} +1 -1
  336. package/dist/esm/{app-globals-a0b042f8.js → app-globals-afcff899.js} +1 -1
  337. package/dist/esm/{app-globals-a0b042f8.js.map → app-globals-afcff899.js.map} +1 -1
  338. package/dist/esm/{aria-expanded-ec1ec6df.js → aria-expanded-9f877821.js} +1 -1
  339. package/dist/esm/{aria-expanded-ec1ec6df.js.map → aria-expanded-9f877821.js.map} +1 -1
  340. package/dist/esm/{associated.controller-52d302aa.js → associated.controller-5bee50ee.js} +1 -1
  341. package/dist/esm/{associated.controller-52d302aa.js.map → associated.controller-5bee50ee.js.map} +1 -1
  342. package/dist/esm/{badge-text-16dedc1b.js → badge-text-65c680b2.js} +1 -1
  343. package/dist/esm/{badge-text-16dedc1b.js.map → badge-text-65c680b2.js.map} +1 -1
  344. package/dist/esm/{color-62f7b76a.js → color-4da01fff.js} +1 -1
  345. package/dist/esm/{color-62f7b76a.js.map → color-4da01fff.js.map} +1 -1
  346. package/dist/esm/{controller-8eb39b13.js → controller-1a0e05c9.js} +1 -1
  347. package/dist/esm/{controller-8eb39b13.js.map → controller-1a0e05c9.js.map} +1 -1
  348. package/dist/esm/controller-4a9a50f2.js +4 -0
  349. package/dist/esm/controller-4a9a50f2.js.map +1 -0
  350. package/dist/esm/{controller-07000871.js → controller-96d99a72.js} +1 -1
  351. package/dist/esm/{controller-07000871.js.map → controller-96d99a72.js.map} +1 -1
  352. package/dist/esm/{controller-a2550e7a.js → controller-a3c1b90d.js} +1 -1
  353. package/dist/esm/{controller-a2550e7a.js.map → controller-a3c1b90d.js.map} +1 -1
  354. package/dist/esm/{controller-9c6419a9.js → controller-afbd59b5.js} +1 -1
  355. package/dist/esm/{controller-9c6419a9.js.map → controller-afbd59b5.js.map} +1 -1
  356. package/dist/esm/controller-icon-f9b7e1f9.js +4 -0
  357. package/dist/esm/controller-icon-f9b7e1f9.js.map +1 -0
  358. package/dist/esm/custom-class-cedc9f43.js +4 -0
  359. package/dist/esm/{custom-class-ac49545a.js.map → custom-class-cedc9f43.js.map} +1 -1
  360. package/dist/esm/{dev.utils-25c26045.js → dev.utils-0f820a3c.js} +1 -1
  361. package/dist/esm/{dev.utils-25c26045.js.map → dev.utils-0f820a3c.js.map} +1 -1
  362. package/dist/esm/{devtools-d8aa445c.js → devtools-34110f59.js} +1 -1
  363. package/dist/esm/{devtools-d8aa445c.js.map → devtools-34110f59.js.map} +1 -1
  364. package/dist/esm/disabled-e9084205.js +4 -0
  365. package/dist/esm/{disabled-dad7478c.js.map → disabled-e9084205.js.map} +1 -1
  366. package/dist/esm/{events-8ec9ecc6.js → events-5b899bd2.js} +1 -1
  367. package/dist/esm/{events-8ec9ecc6.js.map → events-5b899bd2.js.map} +1 -1
  368. package/dist/esm/{has-closer-a4e62c58.js → has-closer-abdab7af.js} +1 -1
  369. package/dist/esm/{has-closer-a4e62c58.js.map → has-closer-abdab7af.js.map} +1 -1
  370. package/dist/esm/{has-counter-a43c36ef.js → has-counter-23a7a06b.js} +1 -1
  371. package/dist/esm/{has-counter-a43c36ef.js.map → has-counter-23a7a06b.js.map} +1 -1
  372. package/dist/esm/{hide-label-429a15ea.js → hide-label-8c202307.js} +1 -1
  373. package/dist/esm/{hide-label-429a15ea.js.map → hide-label-8c202307.js.map} +1 -1
  374. package/dist/esm/{href-d8ec67f8.js → href-cec41fcd.js} +1 -1
  375. package/dist/esm/{href-d8ec67f8.js.map → href-cec41fcd.js.map} +1 -1
  376. package/dist/esm/{icons-e1a5023e.js → icons-c857b77d.js} +1 -1
  377. package/dist/esm/icons-c857b77d.js.map +1 -0
  378. package/dist/esm/{image-source-320efd4f.js → image-source-90db908f.js} +1 -1
  379. package/dist/esm/{image-source-320efd4f.js.map → image-source-90db908f.js.map} +1 -1
  380. package/dist/esm/index-1fb6ee3e.js +4 -0
  381. package/dist/esm/index-1fb6ee3e.js.map +1 -0
  382. package/dist/esm/index.js +1 -1
  383. package/dist/esm/kol-abbr.entry.js +1 -1
  384. package/dist/esm/kol-abbr.entry.js.map +1 -1
  385. package/dist/esm/kol-accordion.entry.js +1 -1
  386. package/dist/esm/kol-accordion.entry.js.map +1 -1
  387. package/dist/esm/kol-alert-wc.entry.js +1 -1
  388. package/dist/esm/kol-alert.entry.js +1 -1
  389. package/dist/esm/kol-alert.entry.js.map +1 -1
  390. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  391. package/dist/esm/kol-avatar.entry.js +1 -1
  392. package/dist/esm/kol-avatar.entry.js.map +1 -1
  393. package/dist/esm/kol-badge.entry.js +1 -1
  394. package/dist/esm/kol-badge.entry.js.map +1 -1
  395. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  396. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  397. package/dist/esm/kol-button-group-wc.entry.js +1 -1
  398. package/dist/esm/kol-button-group.entry.js +1 -1
  399. package/dist/esm/kol-button-group.entry.js.map +1 -1
  400. package/dist/esm/kol-button-link.entry.js +1 -1
  401. package/dist/esm/kol-button-link.entry.js.map +1 -1
  402. package/dist/esm/kol-button-wc.entry.js +1 -1
  403. package/dist/esm/kol-button.entry.js +1 -1
  404. package/dist/esm/kol-button.entry.js.map +1 -1
  405. package/dist/esm/kol-card.entry.js +1 -1
  406. package/dist/esm/kol-card.entry.js.map +1 -1
  407. package/dist/esm/kol-combobox.entry.js +1 -1
  408. package/dist/esm/kol-combobox.entry.js.map +1 -1
  409. package/dist/esm/kol-details.entry.js +1 -1
  410. package/dist/esm/kol-details.entry.js.map +1 -1
  411. package/dist/esm/kol-drawer.entry.js +1 -1
  412. package/dist/esm/kol-drawer.entry.js.map +1 -1
  413. package/dist/esm/kol-form.entry.js +1 -1
  414. package/dist/esm/kol-form.entry.js.map +1 -1
  415. package/dist/esm/kol-heading-wc.entry.js +1 -1
  416. package/dist/esm/kol-heading.entry.js +1 -1
  417. package/dist/esm/kol-heading.entry.js.map +1 -1
  418. package/dist/esm/kol-icon.entry.js +1 -1
  419. package/dist/esm/kol-image.entry.js +1 -1
  420. package/dist/esm/kol-image.entry.js.map +1 -1
  421. package/dist/esm/kol-indented-text-wc.entry.js +1 -1
  422. package/dist/esm/kol-indented-text.entry.js +1 -1
  423. package/dist/esm/kol-indented-text.entry.js.map +1 -1
  424. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  425. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  426. package/dist/esm/kol-input-color.entry.js +1 -1
  427. package/dist/esm/kol-input-color.entry.js.map +1 -1
  428. package/dist/esm/kol-input-date.entry.js +1 -1
  429. package/dist/esm/kol-input-date.entry.js.map +1 -1
  430. package/dist/esm/kol-input-email.entry.js +1 -1
  431. package/dist/esm/kol-input-email.entry.js.map +1 -1
  432. package/dist/esm/kol-input-file.entry.js +1 -1
  433. package/dist/esm/kol-input-file.entry.js.map +1 -1
  434. package/dist/esm/kol-input-number.entry.js +1 -1
  435. package/dist/esm/kol-input-number.entry.js.map +1 -1
  436. package/dist/esm/kol-input-password.entry.js +1 -1
  437. package/dist/esm/kol-input-password.entry.js.map +1 -1
  438. package/dist/esm/kol-input-radio.entry.js +1 -1
  439. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  440. package/dist/esm/kol-input-range.entry.js +1 -1
  441. package/dist/esm/kol-input-range.entry.js.map +1 -1
  442. package/dist/esm/kol-input-text.entry.js +1 -1
  443. package/dist/esm/kol-input-text.entry.js.map +1 -1
  444. package/dist/esm/kol-input.entry.js +1 -1
  445. package/dist/esm/kol-input.entry.js.map +1 -1
  446. package/dist/esm/kol-kolibri.entry.js +1 -1
  447. package/dist/esm/kol-kolibri.entry.js.map +1 -1
  448. package/dist/esm/kol-link-button.entry.js +1 -1
  449. package/dist/esm/kol-link-button.entry.js.map +1 -1
  450. package/dist/esm/kol-link-group.entry.js +1 -1
  451. package/dist/esm/kol-link-group.entry.js.map +1 -1
  452. package/dist/esm/kol-link-wc.entry.js +1 -1
  453. package/dist/esm/kol-link.entry.js +1 -1
  454. package/dist/esm/kol-link.entry.js.map +1 -1
  455. package/dist/esm/kol-logo.entry.js +1 -1
  456. package/dist/esm/kol-logo.entry.js.map +1 -1
  457. package/dist/esm/kol-modal.entry.js +1 -1
  458. package/dist/esm/kol-modal.entry.js.map +1 -1
  459. package/dist/esm/kol-nav.entry.js +1 -1
  460. package/dist/esm/kol-nav.entry.js.map +1 -1
  461. package/dist/esm/kol-pagination.entry.js +1 -1
  462. package/dist/esm/kol-pagination.entry.js.map +1 -1
  463. package/dist/esm/kol-popover-button.entry.js +1 -1
  464. package/dist/esm/kol-popover-button.entry.js.map +1 -1
  465. package/dist/esm/kol-popover-wc.entry.js +1 -1
  466. package/dist/esm/kol-progress.entry.js +1 -1
  467. package/dist/esm/kol-progress.entry.js.map +1 -1
  468. package/dist/esm/kol-quote.entry.js +1 -1
  469. package/dist/esm/kol-quote.entry.js.map +1 -1
  470. package/dist/esm/kol-select.entry.js +1 -1
  471. package/dist/esm/kol-select.entry.js.map +1 -1
  472. package/dist/esm/kol-single-select.entry.js +1 -1
  473. package/dist/esm/kol-single-select.entry.js.map +1 -1
  474. package/dist/esm/kol-skip-nav.entry.js +1 -1
  475. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  476. package/dist/esm/kol-span-wc.entry.js +1 -1
  477. package/dist/esm/kol-spin.entry.js +1 -1
  478. package/dist/esm/kol-spin.entry.js.map +1 -1
  479. package/dist/esm/kol-split-button.entry.js +1 -1
  480. package/dist/esm/kol-split-button.entry.js.map +1 -1
  481. package/dist/esm/kol-symbol.entry.js +1 -1
  482. package/dist/esm/kol-table-stateful.entry.js +1 -1
  483. package/dist/esm/kol-table-stateful.entry.js.map +1 -1
  484. package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
  485. package/dist/esm/kol-table-stateless.entry.js +1 -1
  486. package/dist/esm/kol-table-stateless.entry.js.map +1 -1
  487. package/dist/esm/kol-table.entry.js +1 -1
  488. package/dist/esm/kol-tabs.entry.js +1 -1
  489. package/dist/esm/kol-tabs.entry.js.map +1 -1
  490. package/dist/esm/kol-textarea.entry.js +1 -1
  491. package/dist/esm/kol-textarea.entry.js.map +1 -1
  492. package/dist/esm/kol-toast-container.entry.js +1 -1
  493. package/dist/esm/kol-toast-container.entry.js.map +1 -1
  494. package/dist/esm/kol-toolbar.entry.js +1 -1
  495. package/dist/esm/kol-toolbar.entry.js.map +1 -1
  496. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  497. package/dist/esm/kol-tree-item-wc.entry.js +1 -1
  498. package/dist/esm/kol-tree-item.entry.js +1 -1
  499. package/dist/esm/kol-tree-item.entry.js.map +1 -1
  500. package/dist/esm/kol-tree-wc.entry.js +1 -1
  501. package/dist/esm/kol-tree.entry.js +1 -1
  502. package/dist/esm/kol-tree.entry.js.map +1 -1
  503. package/dist/esm/kol-version.entry.js +1 -1
  504. package/dist/esm/kol-version.entry.js.map +1 -1
  505. package/dist/esm/kolibri.js +1 -1
  506. package/dist/esm/{label-d0315384.js → label-e8ec0e3a.js} +1 -1
  507. package/dist/esm/{label-d0315384.js.map → label-e8ec0e3a.js.map} +1 -1
  508. package/dist/esm/loader.js +1 -1
  509. package/dist/esm/{open-20d08415.js → open-7e16be6b.js} +1 -1
  510. package/dist/esm/{open-20d08415.js.map → open-7e16be6b.js.map} +1 -1
  511. package/dist/esm/prop.validators-64749272.js +4 -0
  512. package/dist/esm/prop.validators-64749272.js.map +1 -0
  513. package/dist/esm/{rows-26af6558.js → rows-3e585d8f.js} +1 -1
  514. package/dist/esm/{rows-26af6558.js.map → rows-3e585d8f.js.map} +1 -1
  515. package/dist/esm/{show-484b637e.js → show-6d1c1b72.js} +1 -1
  516. package/dist/esm/{show-484b637e.js.map → show-6d1c1b72.js.map} +1 -1
  517. package/dist/esm/spell-check-cb87a985.js +4 -0
  518. package/dist/esm/{spell-check-60fa0b9f.js.map → spell-check-cb87a985.js.map} +1 -1
  519. package/dist/esm/{suggestions-f139f5ec.js → suggestions-b6fd51c8.js} +1 -1
  520. package/dist/esm/{suggestions-f139f5ec.js.map → suggestions-b6fd51c8.js.map} +1 -1
  521. package/dist/esm/test-component.entry.js +1 -1
  522. package/dist/esm/{tooltip-align-3e629203.js → tooltip-align-5902aa96.js} +1 -1
  523. package/dist/esm/{tooltip-align-3e629203.js.map → tooltip-align-5902aa96.js.map} +1 -1
  524. package/dist/esm/{validation-14b61e5a.js → validation-3745ed01.js} +1 -1
  525. package/dist/esm/{validation-14b61e5a.js.map → validation-3745ed01.js.map} +1 -1
  526. package/dist/esm/{validation-0c197148.js → validation-3ba0e439.js} +1 -1
  527. package/dist/esm/{validation-0c197148.js.map → validation-3ba0e439.js.map} +1 -1
  528. package/dist/kolibri/{Alert-d4721006.js → Alert-46ff7f17.js} +1 -1
  529. package/dist/kolibri/Collapsible-ea88bac8.js +4 -0
  530. package/dist/kolibri/{FormFieldMsg-a2fe9117.js → FormFieldMsg-eb73e011.js} +1 -1
  531. package/dist/kolibri/InternalUnderlinedBadgeText-99e9a3e0.js +4 -0
  532. package/dist/kolibri/access-and-short-key-e094398d.js +4 -0
  533. package/dist/kolibri/align-878fb132.js +4 -0
  534. package/dist/kolibri/app-globals-afcff899.js +4 -0
  535. package/dist/kolibri/aria-expanded-9f877821.js +4 -0
  536. package/dist/kolibri/{associated.controller-52d302aa.js → associated.controller-5bee50ee.js} +1 -1
  537. package/dist/kolibri/badge-text-65c680b2.js +4 -0
  538. package/dist/kolibri/{color-62f7b76a.js → color-4da01fff.js} +1 -1
  539. package/dist/kolibri/{controller-8eb39b13.js → controller-1a0e05c9.js} +1 -1
  540. package/dist/kolibri/controller-4a9a50f2.js +4 -0
  541. package/dist/kolibri/controller-4a9a50f2.js.map +1 -0
  542. package/dist/kolibri/{controller-07000871.js → controller-96d99a72.js} +1 -1
  543. package/dist/kolibri/{controller-a2550e7a.js → controller-a3c1b90d.js} +1 -1
  544. package/dist/kolibri/{controller-9c6419a9.js → controller-afbd59b5.js} +1 -1
  545. package/dist/kolibri/controller-icon-f9b7e1f9.js +4 -0
  546. package/dist/kolibri/controller-icon-f9b7e1f9.js.map +1 -0
  547. package/dist/kolibri/custom-class-cedc9f43.js +4 -0
  548. package/dist/kolibri/{dev.utils-25c26045.js → dev.utils-0f820a3c.js} +1 -1
  549. package/dist/kolibri/{devtools-d8aa445c.js → devtools-34110f59.js} +1 -1
  550. package/dist/kolibri/{disabled-dad7478c.js → disabled-e9084205.js} +1 -1
  551. package/dist/kolibri/{events-8ec9ecc6.js → events-5b899bd2.js} +1 -1
  552. package/dist/kolibri/has-closer-abdab7af.js +4 -0
  553. package/dist/kolibri/has-counter-23a7a06b.js +4 -0
  554. package/dist/kolibri/hide-label-8c202307.js +4 -0
  555. package/dist/kolibri/href-cec41fcd.js +4 -0
  556. package/dist/kolibri/icons-c857b77d.js +4 -0
  557. package/dist/kolibri/icons-c857b77d.js.map +1 -0
  558. package/dist/kolibri/image-source-90db908f.js +4 -0
  559. package/dist/kolibri/{index-583b6f8b.js → index-1fb6ee3e.js} +2 -2
  560. package/dist/kolibri/index-1fb6ee3e.js.map +1 -0
  561. package/dist/kolibri/index.esm.js +1 -1
  562. package/dist/kolibri/kol-abbr.entry.js +1 -1
  563. package/dist/kolibri/kol-abbr.entry.js.map +1 -1
  564. package/dist/kolibri/kol-accordion.entry.js +1 -1
  565. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  566. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  567. package/dist/kolibri/kol-alert.entry.js +1 -1
  568. package/dist/kolibri/kol-alert.entry.js.map +1 -1
  569. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  570. package/dist/kolibri/kol-avatar.entry.js +1 -1
  571. package/dist/kolibri/kol-avatar.entry.js.map +1 -1
  572. package/dist/kolibri/kol-badge.entry.js +1 -1
  573. package/dist/kolibri/kol-badge.entry.js.map +1 -1
  574. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  575. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  576. package/dist/kolibri/kol-button-group-wc.entry.js +1 -1
  577. package/dist/kolibri/kol-button-group.entry.js +1 -1
  578. package/dist/kolibri/kol-button-group.entry.js.map +1 -1
  579. package/dist/kolibri/kol-button-link.entry.js +1 -1
  580. package/dist/kolibri/kol-button-link.entry.js.map +1 -1
  581. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  582. package/dist/kolibri/kol-button.entry.js +1 -1
  583. package/dist/kolibri/kol-button.entry.js.map +1 -1
  584. package/dist/kolibri/kol-card.entry.js +1 -1
  585. package/dist/kolibri/kol-card.entry.js.map +1 -1
  586. package/dist/kolibri/kol-combobox.entry.js +1 -1
  587. package/dist/kolibri/kol-combobox.entry.js.map +1 -1
  588. package/dist/kolibri/kol-details.entry.js +1 -1
  589. package/dist/kolibri/kol-details.entry.js.map +1 -1
  590. package/dist/kolibri/kol-drawer.entry.js +1 -1
  591. package/dist/kolibri/kol-drawer.entry.js.map +1 -1
  592. package/dist/kolibri/kol-form.entry.js +1 -1
  593. package/dist/kolibri/kol-form.entry.js.map +1 -1
  594. package/dist/kolibri/kol-heading-wc.entry.js +1 -1
  595. package/dist/kolibri/kol-heading.entry.js +1 -1
  596. package/dist/kolibri/kol-heading.entry.js.map +1 -1
  597. package/dist/kolibri/kol-icon.entry.js +1 -1
  598. package/dist/kolibri/kol-image.entry.js +1 -1
  599. package/dist/kolibri/kol-image.entry.js.map +1 -1
  600. package/dist/kolibri/kol-indented-text-wc.entry.js +1 -1
  601. package/dist/kolibri/kol-indented-text.entry.js +1 -1
  602. package/dist/kolibri/kol-indented-text.entry.js.map +1 -1
  603. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  604. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  605. package/dist/kolibri/kol-input-color.entry.js +1 -1
  606. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  607. package/dist/kolibri/kol-input-date.entry.js +1 -1
  608. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  609. package/dist/kolibri/kol-input-email.entry.js +1 -1
  610. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  611. package/dist/kolibri/kol-input-file.entry.js +1 -1
  612. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  613. package/dist/kolibri/kol-input-number.entry.js +1 -1
  614. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  615. package/dist/kolibri/kol-input-password.entry.js +1 -1
  616. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  617. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  618. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  619. package/dist/kolibri/kol-input-range.entry.js +1 -1
  620. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  621. package/dist/kolibri/kol-input-text.entry.js +1 -1
  622. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  623. package/dist/kolibri/kol-input.entry.js +1 -1
  624. package/dist/kolibri/kol-input.entry.js.map +1 -1
  625. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  626. package/dist/kolibri/kol-kolibri.entry.js.map +1 -1
  627. package/dist/kolibri/kol-link-button.entry.js +1 -1
  628. package/dist/kolibri/kol-link-button.entry.js.map +1 -1
  629. package/dist/kolibri/kol-link-group.entry.js +1 -1
  630. package/dist/kolibri/kol-link-group.entry.js.map +1 -1
  631. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  632. package/dist/kolibri/kol-link.entry.js +1 -1
  633. package/dist/kolibri/kol-link.entry.js.map +1 -1
  634. package/dist/kolibri/kol-logo.entry.js +1 -1
  635. package/dist/kolibri/kol-logo.entry.js.map +1 -1
  636. package/dist/kolibri/kol-modal.entry.js +1 -1
  637. package/dist/kolibri/kol-modal.entry.js.map +1 -1
  638. package/dist/kolibri/kol-nav.entry.js +1 -1
  639. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  640. package/dist/kolibri/kol-pagination.entry.js +1 -1
  641. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  642. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  643. package/dist/kolibri/kol-popover-button.entry.js.map +1 -1
  644. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  645. package/dist/kolibri/kol-progress.entry.js +1 -1
  646. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  647. package/dist/kolibri/kol-quote.entry.js +1 -1
  648. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  649. package/dist/kolibri/kol-select.entry.js +1 -1
  650. package/dist/kolibri/kol-select.entry.js.map +1 -1
  651. package/dist/kolibri/kol-single-select.entry.js +1 -1
  652. package/dist/kolibri/kol-single-select.entry.js.map +1 -1
  653. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  654. package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
  655. package/dist/kolibri/kol-span-wc.entry.js +1 -1
  656. package/dist/kolibri/kol-spin.entry.js +1 -1
  657. package/dist/kolibri/kol-spin.entry.js.map +1 -1
  658. package/dist/kolibri/kol-split-button.entry.js +1 -1
  659. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  660. package/dist/kolibri/kol-symbol.entry.js +1 -1
  661. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  662. package/dist/kolibri/kol-table-stateful.entry.js.map +1 -1
  663. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  664. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  665. package/dist/kolibri/kol-table-stateless.entry.js.map +1 -1
  666. package/dist/kolibri/kol-table.entry.js +1 -1
  667. package/dist/kolibri/kol-tabs.entry.js +1 -1
  668. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  669. package/dist/kolibri/kol-textarea.entry.js +1 -1
  670. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  671. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  672. package/dist/kolibri/kol-toast-container.entry.js.map +1 -1
  673. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  674. package/dist/kolibri/kol-toolbar.entry.js.map +1 -1
  675. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  676. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  677. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  678. package/dist/kolibri/kol-tree-item.entry.js.map +1 -1
  679. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  680. package/dist/kolibri/kol-tree.entry.js +1 -1
  681. package/dist/kolibri/kol-tree.entry.js.map +1 -1
  682. package/dist/kolibri/kol-version.entry.js +1 -1
  683. package/dist/kolibri/kol-version.entry.js.map +1 -1
  684. package/dist/kolibri/kolibri.esm.js +1 -1
  685. package/dist/kolibri/kolibri.esm.js.map +1 -1
  686. package/dist/kolibri/label-e8ec0e3a.js +4 -0
  687. package/dist/kolibri/open-7e16be6b.js +4 -0
  688. package/dist/kolibri/prop.validators-64749272.js +4 -0
  689. package/dist/kolibri/prop.validators-64749272.js.map +1 -0
  690. package/dist/kolibri/rows-3e585d8f.js +4 -0
  691. package/dist/kolibri/show-6d1c1b72.js +4 -0
  692. package/dist/kolibri/spell-check-cb87a985.js +4 -0
  693. package/dist/kolibri/{suggestions-f139f5ec.js → suggestions-b6fd51c8.js} +1 -1
  694. package/dist/kolibri/test-component.entry.js +1 -1
  695. package/dist/kolibri/tooltip-align-5902aa96.js +4 -0
  696. package/dist/kolibri/validation-3745ed01.js +4 -0
  697. package/dist/kolibri/{validation-0c197148.js → validation-3ba0e439.js} +1 -1
  698. package/dist/types/components/@deprecated/input/controller-icon.d.ts +2 -2
  699. package/dist/types/components/@deprecated/input/types-icon.d.ts +2 -4
  700. package/dist/types/components/combobox/shadow.d.ts +3 -3
  701. package/dist/types/components/input/component.d.ts +1 -1
  702. package/dist/types/components/input/types.d.ts +2 -3
  703. package/dist/types/components/input-color/shadow.d.ts +3 -3
  704. package/dist/types/components/input-date/shadow.d.ts +3 -3
  705. package/dist/types/components/input-email/shadow.d.ts +3 -3
  706. package/dist/types/components/input-file/shadow.d.ts +3 -3
  707. package/dist/types/components/input-number/shadow.d.ts +3 -3
  708. package/dist/types/components/input-password/shadow.d.ts +3 -3
  709. package/dist/types/components/input-radio/controller.d.ts +1 -1
  710. package/dist/types/components/input-range/shadow.d.ts +3 -3
  711. package/dist/types/components/input-text/shadow.d.ts +3 -3
  712. package/dist/types/components/select/shadow.d.ts +4 -4
  713. package/dist/types/components/single-select/shadow.d.ts +3 -3
  714. package/dist/types/components/textarea/shadow.d.ts +3 -3
  715. package/dist/types/components.d.ts +28 -28
  716. package/dist/types/schema/components/combobox.d.ts +4 -6
  717. package/dist/types/schema/components/input-color.d.ts +4 -6
  718. package/dist/types/schema/components/input-date.d.ts +2 -3
  719. package/dist/types/schema/components/input-email.d.ts +4 -6
  720. package/dist/types/schema/components/input-file.d.ts +4 -6
  721. package/dist/types/schema/components/input-number.d.ts +2 -3
  722. package/dist/types/schema/components/input-password.d.ts +5 -7
  723. package/dist/types/schema/components/input-range.d.ts +4 -6
  724. package/dist/types/schema/components/input-text.d.ts +4 -6
  725. package/dist/types/schema/components/input.d.ts +2 -3
  726. package/dist/types/schema/components/select.d.ts +5 -7
  727. package/dist/types/schema/components/single-select.d.ts +4 -6
  728. package/dist/types/schema/components/textarea.d.ts +4 -6
  729. package/dist/types/schema/props/icons.d.ts +5 -1
  730. package/dist/types/schema/types/icons.d.ts +4 -0
  731. package/dist/types/schema/types/input/control/number.d.ts +3 -4
  732. package/dist/types/schema/utils/prop.validators.d.ts +0 -2
  733. package/doc/select.md +26 -24
  734. package/doc/textarea.md +1 -1
  735. package/package.json +1 -1
  736. package/vscode-custom-data.json +5 -1
  737. package/dist/cjs/badge-text-3a33a84b.js +0 -4
  738. package/dist/cjs/controller-8c83cf6d.js +0 -4
  739. package/dist/cjs/controller-icon-4caf2636.js +0 -4
  740. package/dist/cjs/controller-icon-4caf2636.js.map +0 -1
  741. package/dist/cjs/custom-class-3a1c18f3.js +0 -4
  742. package/dist/cjs/disabled-5a2e250c.js +0 -4
  743. package/dist/cjs/has-closer-9b3c14a7.js +0 -4
  744. package/dist/cjs/has-counter-7318f6f4.js +0 -4
  745. package/dist/cjs/hide-label-b0063224.js +0 -4
  746. package/dist/cjs/href-2485cb51.js +0 -4
  747. package/dist/cjs/icons-310a07cc.js.map +0 -1
  748. package/dist/cjs/image-source-27335383.js +0 -4
  749. package/dist/cjs/index-bcdf0467.js +0 -4
  750. package/dist/cjs/index-bcdf0467.js.map +0 -1
  751. package/dist/cjs/open-5c1af49f.js +0 -4
  752. package/dist/cjs/prop.validators-96dfedce.js.map +0 -1
  753. package/dist/cjs/rows-782313b6.js +0 -4
  754. package/dist/cjs/show-5b2be58e.js +0 -4
  755. package/dist/cjs/spell-check-5c5eee25.js +0 -4
  756. package/dist/cjs/tooltip-align-3b9a6bde.js +0 -4
  757. package/dist/esm/controller-964599c0.js +0 -4
  758. package/dist/esm/controller-964599c0.js.map +0 -1
  759. package/dist/esm/controller-icon-e363322f.js +0 -4
  760. package/dist/esm/controller-icon-e363322f.js.map +0 -1
  761. package/dist/esm/custom-class-ac49545a.js +0 -4
  762. package/dist/esm/disabled-dad7478c.js +0 -4
  763. package/dist/esm/icons-e1a5023e.js.map +0 -1
  764. package/dist/esm/index-583b6f8b.js +0 -4
  765. package/dist/esm/index-583b6f8b.js.map +0 -1
  766. package/dist/esm/prop.validators-9feb1d92.js +0 -4
  767. package/dist/esm/prop.validators-9feb1d92.js.map +0 -1
  768. package/dist/esm/spell-check-60fa0b9f.js +0 -4
  769. package/dist/kolibri/Collapsible-4909d664.js +0 -4
  770. package/dist/kolibri/InternalUnderlinedBadgeText-3bbff7b1.js +0 -4
  771. package/dist/kolibri/access-and-short-key-9cca88b8.js +0 -4
  772. package/dist/kolibri/align-82100bda.js +0 -4
  773. package/dist/kolibri/app-globals-a0b042f8.js +0 -4
  774. package/dist/kolibri/aria-expanded-ec1ec6df.js +0 -4
  775. package/dist/kolibri/badge-text-16dedc1b.js +0 -4
  776. package/dist/kolibri/controller-964599c0.js +0 -4
  777. package/dist/kolibri/controller-964599c0.js.map +0 -1
  778. package/dist/kolibri/controller-icon-e363322f.js +0 -4
  779. package/dist/kolibri/controller-icon-e363322f.js.map +0 -1
  780. package/dist/kolibri/custom-class-ac49545a.js +0 -4
  781. package/dist/kolibri/has-closer-a4e62c58.js +0 -4
  782. package/dist/kolibri/has-counter-a43c36ef.js +0 -4
  783. package/dist/kolibri/hide-label-429a15ea.js +0 -4
  784. package/dist/kolibri/href-d8ec67f8.js +0 -4
  785. package/dist/kolibri/icons-e1a5023e.js +0 -4
  786. package/dist/kolibri/icons-e1a5023e.js.map +0 -1
  787. package/dist/kolibri/image-source-320efd4f.js +0 -4
  788. package/dist/kolibri/index-583b6f8b.js.map +0 -1
  789. package/dist/kolibri/label-d0315384.js +0 -4
  790. package/dist/kolibri/open-20d08415.js +0 -4
  791. package/dist/kolibri/prop.validators-9feb1d92.js +0 -4
  792. package/dist/kolibri/prop.validators-9feb1d92.js.map +0 -1
  793. package/dist/kolibri/rows-26af6558.js +0 -4
  794. package/dist/kolibri/show-484b637e.js +0 -4
  795. package/dist/kolibri/spell-check-60fa0b9f.js +0 -4
  796. package/dist/kolibri/tooltip-align-3e629203.js +0 -4
  797. package/dist/kolibri/validation-14b61e5a.js +0 -4
  798. /package/dist/kolibri/{Alert-d4721006.js.map → Alert-46ff7f17.js.map} +0 -0
  799. /package/dist/kolibri/{Collapsible-4909d664.js.map → Collapsible-ea88bac8.js.map} +0 -0
  800. /package/dist/kolibri/{FormFieldMsg-a2fe9117.js.map → FormFieldMsg-eb73e011.js.map} +0 -0
  801. /package/dist/kolibri/{InternalUnderlinedBadgeText-3bbff7b1.js.map → InternalUnderlinedBadgeText-99e9a3e0.js.map} +0 -0
  802. /package/dist/kolibri/{access-and-short-key-9cca88b8.js.map → access-and-short-key-e094398d.js.map} +0 -0
  803. /package/dist/kolibri/{align-82100bda.js.map → align-878fb132.js.map} +0 -0
  804. /package/dist/kolibri/{app-globals-a0b042f8.js.map → app-globals-afcff899.js.map} +0 -0
  805. /package/dist/kolibri/{aria-expanded-ec1ec6df.js.map → aria-expanded-9f877821.js.map} +0 -0
  806. /package/dist/kolibri/{associated.controller-52d302aa.js.map → associated.controller-5bee50ee.js.map} +0 -0
  807. /package/dist/kolibri/{badge-text-16dedc1b.js.map → badge-text-65c680b2.js.map} +0 -0
  808. /package/dist/kolibri/{color-62f7b76a.js.map → color-4da01fff.js.map} +0 -0
  809. /package/dist/kolibri/{controller-8eb39b13.js.map → controller-1a0e05c9.js.map} +0 -0
  810. /package/dist/kolibri/{controller-07000871.js.map → controller-96d99a72.js.map} +0 -0
  811. /package/dist/kolibri/{controller-a2550e7a.js.map → controller-a3c1b90d.js.map} +0 -0
  812. /package/dist/kolibri/{controller-9c6419a9.js.map → controller-afbd59b5.js.map} +0 -0
  813. /package/dist/kolibri/{custom-class-ac49545a.js.map → custom-class-cedc9f43.js.map} +0 -0
  814. /package/dist/kolibri/{dev.utils-25c26045.js.map → dev.utils-0f820a3c.js.map} +0 -0
  815. /package/dist/kolibri/{devtools-d8aa445c.js.map → devtools-34110f59.js.map} +0 -0
  816. /package/dist/kolibri/{disabled-dad7478c.js.map → disabled-e9084205.js.map} +0 -0
  817. /package/dist/kolibri/{events-8ec9ecc6.js.map → events-5b899bd2.js.map} +0 -0
  818. /package/dist/kolibri/{has-closer-a4e62c58.js.map → has-closer-abdab7af.js.map} +0 -0
  819. /package/dist/kolibri/{has-counter-a43c36ef.js.map → has-counter-23a7a06b.js.map} +0 -0
  820. /package/dist/kolibri/{hide-label-429a15ea.js.map → hide-label-8c202307.js.map} +0 -0
  821. /package/dist/kolibri/{href-d8ec67f8.js.map → href-cec41fcd.js.map} +0 -0
  822. /package/dist/kolibri/{image-source-320efd4f.js.map → image-source-90db908f.js.map} +0 -0
  823. /package/dist/kolibri/{label-d0315384.js.map → label-e8ec0e3a.js.map} +0 -0
  824. /package/dist/kolibri/{open-20d08415.js.map → open-7e16be6b.js.map} +0 -0
  825. /package/dist/kolibri/{rows-26af6558.js.map → rows-3e585d8f.js.map} +0 -0
  826. /package/dist/kolibri/{show-484b637e.js.map → show-6d1c1b72.js.map} +0 -0
  827. /package/dist/kolibri/{spell-check-60fa0b9f.js.map → spell-check-cb87a985.js.map} +0 -0
  828. /package/dist/kolibri/{suggestions-f139f5ec.js.map → suggestions-b6fd51c8.js.map} +0 -0
  829. /package/dist/kolibri/{tooltip-align-3e629203.js.map → tooltip-align-5902aa96.js.map} +0 -0
  830. /package/dist/kolibri/{validation-14b61e5a.js.map → validation-3745ed01.js.map} +0 -0
  831. /package/dist/kolibri/{validation-0c197148.js.map → validation-3ba0e439.js.map} +0 -0
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as e,F as t,H as n,r as i,g as a}from"./index-583b6f8b.js";import{n as o}from"./dev.utils-25c26045.js";import{t as s,s as l}from"./events-29e84d75.js";import{g as r}from"./controller-8eb39b13.js";import{I as d}from"./InternalUnderlinedBadgeText-3bbff7b1.js";import{I as h}from"./controller-icon-e363322f.js";import{f as c,v as p}from"./controller-964599c0.js";import{v as u}from"./rows-26af6558.js";import{b as f,g as m}from"./prop.validators-9feb1d92.js";import{l as b}from"./component-names-6ca7e863.js";import{p as v}from"./controller-a2550e7a.js";import{s as y,b as k}from"./reuse-32931294.js";import"./dev.utils-fab45cbc.js";import"./associated.controller-52d302aa.js";import"./access-and-short-key-9cca88b8.js";import"./hide-label-429a15ea.js";import"./label-d0315384.js";import"./common-0f1f2276.js";import"./tooltip-align-3e629203.js";import"./align-82100bda.js";import"./icons-e1a5023e.js";import"./index-da3e0c00.js";class g extends h{constructor(t,e,n){super(t,e,n),this.keyOptionMap=new Map,this.getOptionByKey=t=>this.keyOptionMap.get(t),this.isValueInOptions=(t,e)=>void 0!==e.find((e=>"string"==typeof e.value?e.value===t:!!Array.isArray(e.options)&&this.isValueInOptions(t,e.options))),this.filterValuesInOptions=(t,e)=>t.filter((t=>void 0!==this.isValueInOptions(t,e))),this.afterPatchOptions=(t,e,n,i)=>{"_value"===i&&this.setFormAssociatedValue(t)},this.beforePatchOptions=(t,e)=>{const n=e.has("_options")?e.get("_options"):this.component.state._options;if(Array.isArray(n)&&n.length>0){this.keyOptionMap.clear(),c(this.keyOptionMap,n);const t=e.has("_value")?e.get("_value"):this.component.state._value,i=this.filterValuesInOptions(Array.isArray(t)&&t.length>0?t:[],n);!1===this.component._multiple&&0===i.length?e.set("_value",[n[0].value]):Array.isArray(t)&&i.length<t.length&&e.set("_value",i)}},this.component=t}validateOptions(t){p(this.component,t,{hooks:{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions}})}validateMultiple(t){f(this.component,"_multiple",t,{hooks:{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions}})}validateRequired(t){f(this.component,"_required",t)}validateRows(t){u(this.component,t)}validateValue(t){m(this.component,"_value",(()=>!0),t,void 0,{hooks:{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions}})}componentWillLoad(){super.componentWillLoad(),this.validateOptions(this.component._options),this.validateMultiple(this.component._multiple),this.validateRequired(this.component._required),this.validateRows(this.component._rows),this.validateValue(this.component._value)}}const w="@charset \"UTF-8\";\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip-wc {\n display: contents;\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 box-sizing: border-box;\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/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\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 * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\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 * Word spacing is required for all texts.\n */\n word-spacing: inherit;\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}\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 clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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 /*\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}\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 select,\n select[multiple] option,\n textarea {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\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 .input {\n background-color: white;\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:not([type=checkbox], [type=radio]),\n select:not([multiple], [size]) {\n height: 2.75em;\n }\n input:focus,\n option:focus,\n select:focus,\n textarea:focus {\n outline: 0;\n }\n .input {\n display: flex;\n align-items: center;\n }\n .input > .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n .kol-input.required .input-tooltip .span-label::after {\n content: \"*\";\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 :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n :host option:checked::before {\n content: \"✓ \";\n }\n}",_=w,x=(t,e)=>Array.isArray(t)&&t.includes(e),z=class{async getValue(){return this.state._value}async focus(){await this.kolFocus()}async kolFocus(){var t;null===(t=this.selectRef)||void 0===t||t.focus()}renderOptgroup(t,n){var i;return e("optgroup",{disabled:t.disabled,label:t.label},null===(i=t.options)||void 0===i?void 0:i.map(((t,i)=>{const a=`${n}-${i}`;return Array.isArray(t.options)?this.renderOptgroup(t,a):e("option",{disabled:t.disabled,key:a,selected:x(this.state._value,t.value),value:a},t.label)})))}render(){const{ariaDescribedBy:i}=r(this.state),a=y(this.state._label);return e(n,{key:"64a682a632f24ec9a460b341bed4529bdc2e746d",class:{"kol-select":!0,"has-value":this.state._hasValue}},e(b,{key:"eff73acf0cff40e13948789ac742621349945b3a",class:{"hide-label":!!this.state._hideLabel,select:!0},_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 t;return null===(t=this.selectRef)||void 0===t?void 0:t.focus()},role:"presentation"},e("span",{key:"34b79e0e0094fe567ad68482a5b5d8d85cecfbde",slot:"label"},a?e("slot",{name:"expert"}):"string"==typeof this.state._accessKey||"string"==typeof this.state._shortKey?e(t,null,e(d,{badgeText:k(this.state._accessKey,this.state._shortKey),label:this.state._label})," ",e("span",{class:"access-key-hint","aria-hidden":"true"},k(this.state._accessKey,this.state._shortKey))):e("span",null,this.state._label)),e("div",{key:"f855ce52b847a7b262f93a1d082895b8693d2a30",slot:"input"},e("form",{key:"a307829d347a203afc65e8095f83becd0252aa8b",onSubmit:t=>{t.preventDefault(),v({form:this.host,ref:this.selectRef})}},e("input",{key:"cb27d7541322d7e78e89251b39ff435dd35603ff",type:"submit",hidden:!0}),e("select",Object.assign({key:"3a90c5534b2bffcbfdc272c610ab95286119ee5a",ref:this.catchRef,title:"",accessKey:this.state._accessKey,"aria-describedby":i.length>0?i.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,autoCapitalize:"off",autoCorrect:"off",disabled:this.state._disabled,id:this.state._id,multiple:this.state._multiple,name:this.state._name,required:this.state._required,size:this.state._rows},this.controller.onFacade,{onInput:this.onInput.bind(this),onChange:this.onChange.bind(this),onFocus:t=>{this.controller.onFacade.onFocus(t),this.inputHasFocus=!0},onBlur:t=>{this.controller.onFacade.onBlur(t),this.inputHasFocus=!1}}),this.state._options.map(((t,n)=>{const i=`-${n}`;return Array.isArray(t.options)?this.renderOptgroup(t,i):e("option",{disabled:t.disabled,key:i,selected:x(this.state._value,t.value),value:i},t.label)})))))))}constructor(t){i(this,t),this.catchRef=t=>{this.selectRef=t},this._accessKey=void 0,this._alert=void 0,this._disabled=!1,this._error=void 0,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._multiple=!1,this._name=void 0,this._on=void 0,this._options=void 0,this._required=!1,this._shortKey=void 0,this._rows=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-${o()}`,_label:"",_multiple:!1,_options:[],_value:[]},this.inputHasFocus=!1,this.controller=new g(this,"select",this.host)}showAsAlert(){return void 0===this.state._alert?Boolean(this.state._touched)&&!this.inputHasFocus:this.state._alert}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAlert(t){this.controller.validateAlert(t)}validateDisabled(t){this.controller.validateDisabled(t)}validateError(t){this.controller.validateError(t)}validateHideError(t){this.controller.validateHideError(t)}validateHideLabel(t){this.controller.validateHideLabel(t)}validateHint(t){this.controller.validateHint(t)}validateIcons(t){this.controller.validateIcons(t)}validateId(t){this.controller.validateId(t)}validateLabel(t){this.controller.validateLabel(t)}validateMsg(t){this.controller.validateMsg(t)}validateMultiple(t){this.controller.validateMultiple(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validateOptions(t){this.controller.validateOptions(t)}validateRequired(t){this.controller.validateRequired(t)}validateRows(t){this.controller.validateRows(t)}validateShortKey(t){this.controller.validateShortKey(t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){this.controller.validateTabIndex(t)}validateTouched(t){this.controller.validateTouched(t)}validateValue(t){this.controller.validateValue(t)}componentWillLoad(){this._touched=!0===this._touched,this.controller.componentWillLoad(),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener((t=>this.state._hasValue=!!t))}onInput(t){var e,n,i;this._value=Array.from((null===(e=this.selectRef)||void 0===e?void 0:e.options)||[]).filter((t=>!0===t.selected)).map((t=>{var e;return null===(e=this.controller.getOptionByKey(t.value))||void 0===e?void 0:e.value})),s("input",this.host,this._value),null===(i=null===(n=this.state._on)||void 0===n?void 0:n.onInput)||void 0===i||i.call(n,t,this._value)}onChange(t){var e,n;l(t),s("change",this.host,this._value),this.controller.setFormAssociatedValue(this._value),null===(n=null===(e=this.state._on)||void 0===e?void 0:e.onChange)||void 0===n||n.call(e,t,this._value)}get host(){return a(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_disabled:["validateDisabled"],_error:["validateError"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_msg:["validateMsg"],_multiple:["validateMultiple"],_name:["validateName"],_on:["validateOn"],_options:["validateOptions"],_required:["validateRequired"],_rows:["validateRows"],_shortKey:["validateShortKey"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};z.style={default:_};export{z as kol_select};
4
+ import{h as e,F as t,H as n,r as i,g as a}from"./index-1fb6ee3e.js";import{l as o}from"./component-names-6ca7e863.js";import{n as s}from"./dev.utils-0f820a3c.js";import{t as l,s as r}from"./events-29e84d75.js";import{p as d}from"./controller-a3c1b90d.js";import{g as h}from"./controller-1a0e05c9.js";import{I as c}from"./InternalUnderlinedBadgeText-99e9a3e0.js";import{I as p}from"./controller-icon-f9b7e1f9.js";import{f as u,v as f}from"./controller-4a9a50f2.js";import{v as b}from"./rows-3e585d8f.js";import{b as m,g as v}from"./prop.validators-64749272.js";import{s as y,b as g}from"./reuse-32931294.js";import"./dev.utils-fab45cbc.js";import"./associated.controller-5bee50ee.js";import"./access-and-short-key-e094398d.js";import"./hide-label-8c202307.js";import"./label-e8ec0e3a.js";import"./common-0f1f2276.js";import"./tooltip-align-5902aa96.js";import"./align-878fb132.js";import"./icons-c857b77d.js";import"./index-da3e0c00.js";class k extends p{constructor(e,t,n){super(e,t,n),this.keyOptionMap=new Map,this.getOptionByKey=e=>this.keyOptionMap.get(e),this.isValueInOptions=(e,t)=>void 0!==t.find((t=>"string"==typeof t.value?t.value===e:!!Array.isArray(t.options)&&this.isValueInOptions(e,t.options))),this.filterValuesInOptions=(e,t)=>e.filter((e=>void 0!==this.isValueInOptions(e,t))),this.afterPatchOptions=(e,t,n,i)=>{"_value"===i&&this.setFormAssociatedValue(e)},this.beforePatchOptions=(e,t)=>{const n=t.has("_options")?t.get("_options"):this.component.state._options;if(Array.isArray(n)&&n.length>0){this.keyOptionMap.clear(),u(this.keyOptionMap,n);const e=t.has("_value")?t.get("_value"):this.component.state._value,i=this.filterValuesInOptions(Array.isArray(e)&&e.length>0?e:[],n);!1===this.component._multiple&&0===i.length?t.set("_value",[n[0].value]):Array.isArray(e)&&i.length<e.length&&t.set("_value",i)}},this.component=e}validateOptions(e){f(this.component,e,{hooks:{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions}})}validateMultiple(e){m(this.component,"_multiple",e,{hooks:{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions}})}validateRequired(e){m(this.component,"_required",e)}validateRows(e){b(this.component,e)}validateValue(e){v(this.component,"_value",(()=>!0),e,void 0,{hooks:{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions}})}componentWillLoad(){super.componentWillLoad(),this.validateOptions(this.component._options),this.validateMultiple(this.component._multiple),this.validateRequired(this.component._required),this.validateRows(this.component._rows),this.validateValue(this.component._value)}}const w="@charset \"UTF-8\";\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\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 * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\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 * Word spacing is required for all texts.\n */\n word-spacing: inherit;\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}\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 clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n .kol-tooltip-wc {\n display: contents;\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 box-sizing: border-box;\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 font-size: calc(16rem / var(--kolibri-root-font-size, 16));\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 overflow: hidden;\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 option:checked::before {\n content: \"✓ \";\n }\n}",_=w,x=(e,t)=>Array.isArray(e)&&e.includes(t),z=class{async getValue(){return this.state._value}async focus(){await this.kolFocus()}async kolFocus(){var e;null===(e=this.selectRef)||void 0===e||e.focus()}renderOptgroup(t,n){var i;return e("optgroup",{disabled:t.disabled,label:t.label},null===(i=t.options)||void 0===i?void 0:i.map(((t,i)=>{const a=`${n}-${i}`;return Array.isArray(t.options)?this.renderOptgroup(t,a):e("option",{disabled:t.disabled,key:a,selected:x(this.state._value,t.value),value:a},t.label)})))}render(){const{ariaDescribedBy:i}=h(this.state),a=y(this.state._label);return e(n,{key:"7bb492332be80be000956f1bf41b52899c728ca5",class:{"kol-select":!0,"has-value":this.state._hasValue}},e(o,{key:"b66fca1f0855a92d56986491975dee6922e8fb27",class:{"hide-label":!!this.state._hideLabel,select:!0},_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.selectRef)||void 0===e?void 0:e.focus()},role:"presentation"},e("span",{key:"b30ed343e39c6cb52ba2b45c985a9c09cce0776e",slot:"label"},a?e("slot",{name:"expert"}):"string"==typeof this.state._accessKey||"string"==typeof this.state._shortKey?e(t,null,e(c,{badgeText:g(this.state._accessKey,this.state._shortKey),label:this.state._label})," ",e("span",{class:"badge-text-hint","aria-hidden":"true"},g(this.state._accessKey,this.state._shortKey))):e("span",null,this.state._label)),e("div",{key:"07cb61e5927c945ac0ef3285c8f7b8522e7d67b0",slot:"input"},e("form",{key:"5f808e9a56cc66ce7f6bbf44921851eaee225d47",onSubmit:e=>{e.preventDefault(),d({form:this.host,ref:this.selectRef})}},e("input",{key:"853cb5de54e7337fd13a844b4a541063164fa9bf",type:"submit",hidden:!0}),e("select",Object.assign({key:"e5ca87a564dc30134987f4f544b630ce6238a8d2",ref:this.catchRef,title:"",accessKey:this.state._accessKey,"aria-describedby":i.length>0?i.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,autoCapitalize:"off",autoCorrect:"off",disabled:this.state._disabled,id:this.state._id,multiple:this.state._multiple,name:this.state._name,required:this.state._required,size:this.state._rows},this.controller.onFacade,{onInput:this.onInput.bind(this),onChange:this.onChange.bind(this),onFocus:e=>{this.controller.onFacade.onFocus(e),this.inputHasFocus=!0},onBlur:e=>{this.controller.onFacade.onBlur(e),this.inputHasFocus=!1}}),this.state._options.map(((t,n)=>{const i=`-${n}`;return Array.isArray(t.options)?this.renderOptgroup(t,i):e("option",{disabled:t.disabled,"aria-hidden":t.disabled?"true":void 0,key:i,selected:x(this.state._value,t.value),value:i},t.label)})))))))}constructor(e){i(this,e),this.catchRef=e=>{this.selectRef=e},this._accessKey=void 0,this._alert=void 0,this._disabled=!1,this._error=void 0,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._multiple=!1,this._name=void 0,this._on=void 0,this._options=void 0,this._required=!1,this._shortKey=void 0,this._rows=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-${s()}`,_label:"",_multiple:!1,_options:[],_value:[]},this.inputHasFocus=!1,this.controller=new k(this,"select",this.host)}showAsAlert(){return void 0===this.state._alert?Boolean(this.state._touched)&&!this.inputHasFocus:this.state._alert}validateAccessKey(e){this.controller.validateAccessKey(e)}validateAlert(e){this.controller.validateAlert(e)}validateDisabled(e){this.controller.validateDisabled(e)}validateError(e){this.controller.validateError(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)}validateMultiple(e){this.controller.validateMultiple(e)}validateName(e){this.controller.validateName(e)}validateOn(e){this.controller.validateOn(e)}validateOptions(e){this.controller.validateOptions(e)}validateRequired(e){this.controller.validateRequired(e)}validateRows(e){this.controller.validateRows(e)}validateShortKey(e){this.controller.validateShortKey(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)}componentWillLoad(){this._touched=!0===this._touched,this.controller.componentWillLoad(),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener((e=>this.state._hasValue=!!e))}onInput(e){var t,n,i;this._value=Array.from((null===(t=this.selectRef)||void 0===t?void 0:t.options)||[]).filter((e=>!0===e.selected)).map((e=>{var t;return null===(t=this.controller.getOptionByKey(e.value))||void 0===t?void 0:t.value})),l("input",this.host,this._value),null===(i=null===(n=this.state._on)||void 0===n?void 0:n.onInput)||void 0===i||i.call(n,e,this._value)}onChange(e){var t,n;r(e),l("change",this.host,this._value),this.controller.setFormAssociatedValue(this._value),null===(n=null===(t=this.state._on)||void 0===t?void 0:t.onChange)||void 0===n||n.call(t,e,this._value)}get host(){return a(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_disabled:["validateDisabled"],_error:["validateError"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_msg:["validateMsg"],_multiple:["validateMultiple"],_name:["validateName"],_on:["validateOn"],_options:["validateOptions"],_required:["validateRequired"],_rows:["validateRows"],_shortKey:["validateShortKey"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};z.style={default:_};export{z as kol_select};
@@ -1 +1 @@
1
- {"version":3,"names":["SelectController","InputIconController","constructor","component","name","host","super","this","keyOptionMap","Map","getOptionByKey","key","get","isValueInOptions","value","options","find","option","Array","isArray","undefined","filterValuesInOptions","values","filter","afterPatchOptions","_state","_component","setFormAssociatedValue","beforePatchOptions","_value","nextState","has","state","_options","length","clear","fillKeyOptionMap","selected","_multiple","set","validateOptions","validateOptionsWithOptgroup","hooks","afterPatch","beforePatch","validateMultiple","watchBoolean","validateRequired","validateRows","validateValue","watchJsonArrayString","componentWillLoad","_required","_rows","defaultStyleCss","KolSelectDefaultStyle0","isSelected","valueList","optionValue","includes","KolSelect","getValue","focus","kolFocus","_a","selectRef","renderOptgroup","optgroup","preKey","h","disabled","label","map","index","render","ariaDescribedBy","getRenderStates","hasExpertSlot","showExpertSlot","_label","Host","class","_hasValue","KolInputTag","_hideLabel","select","_accessKey","_alert","showAsAlert","_disabled","_hideError","_hint","_icons","_id","_msg","_shortKey","_tooltipAlign","_touched","onClick","role","slot","Fragment","InternalUnderlinedBadgeText","badgeText","buildBadgeTextString","onSubmit","event","preventDefault","propagateSubmitEventToForm","form","ref","type","hidden","Object","assign","catchRef","title","accessKey","join","autoCapitalize","autoCorrect","id","multiple","_name","required","size","controller","onFacade","onInput","bind","onChange","onFocus","inputHasFocus","onBlur","hostRef","nonce","Boolean","validateAccessKey","validateAlert","validateDisabled","validateError","validateHideError","validateHideLabel","validateHint","validateIcons","validateId","validateLabel","validateMsg","validateName","validateOn","validateShortKey","validateSyncValueBySelector","validateTabIndex","validateTouched","addValueChangeListener","v","from","tryToDispatchKoliBriEvent","_c","_b","_on","call","stopPropagation"],"sources":["src/components/select/controller.ts","src/components/select/style.scss?tag=kol-select&mode=default&encapsulation=shadow","src/components/select/shadow.tsx"],"sourcesContent":["import type {\n\tOptgroup,\n\tOption,\n\tOptionsWithOptgroupPropType,\n\tRowsPropType,\n\tSelectOption,\n\tSelectProps,\n\tSelectWatches,\n\tStringified,\n\tW3CInputValue,\n} from '../../schema';\nimport { validateOptionsWithOptgroup, validateRows, watchBoolean, watchJsonArrayString } from '../../schema';\n\nimport { InputIconController } from '../@deprecated/input/controller-icon';\nimport { fillKeyOptionMap } from '../input-radio/controller';\n\nimport type { Generic } from 'adopted-style-sheets';\nexport class SelectController extends InputIconController implements SelectWatches {\n\tprotected readonly component: Generic.Element.Component & SelectProps;\n\tprivate readonly keyOptionMap = new Map<string, Option<W3CInputValue>>();\n\n\tpublic constructor(component: Generic.Element.Component & SelectProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic readonly getOptionByKey = (key: string): Option<W3CInputValue> | undefined => this.keyOptionMap.get(key);\n\n\tprivate readonly isValueInOptions = (value: string, options: SelectOption<W3CInputValue>[]): boolean => {\n\t\treturn (\n\t\t\toptions.find((option) =>\n\t\t\t\ttypeof (option as Option<W3CInputValue>).value === 'string'\n\t\t\t\t\t? (option as Option<W3CInputValue>).value === value\n\t\t\t\t\t: Array.isArray((option as Optgroup<string>).options)\n\t\t\t\t\t\t? this.isValueInOptions(value, (option as Optgroup<string>).options)\n\t\t\t\t\t\t: false,\n\t\t\t) !== undefined\n\t\t);\n\t};\n\n\tprivate readonly filterValuesInOptions = (values: string[], options: SelectOption<W3CInputValue>[]): string[] => {\n\t\treturn values.filter((value) => this.isValueInOptions(value, options) !== undefined);\n\t};\n\n\tprotected readonly afterPatchOptions = (value: unknown, _state: Record<string, unknown>, _component: Generic.Element.Component, key: string): void => {\n\t\tif (key === '_value') {\n\t\t\tthis.setFormAssociatedValue(value as string);\n\t\t}\n\t};\n\n\tprivate readonly beforePatchOptions = (_value: unknown, nextState: Map<string, unknown>): void => {\n\t\tconst options = nextState.has('_options') ? nextState.get('_options') : this.component.state._options;\n\t\tif (Array.isArray(options) && options.length > 0) {\n\t\t\tthis.keyOptionMap.clear();\n\t\t\tfillKeyOptionMap(this.keyOptionMap, options as SelectOption<W3CInputValue>[]);\n\t\t\tconst value = nextState.has('_value') ? nextState.get('_value') : this.component.state._value;\n\t\t\tconst selected = this.filterValuesInOptions(\n\t\t\t\tArray.isArray(value) && value.length > 0 ? (value as string[]) : [],\n\t\t\t\toptions as SelectOption<W3CInputValue>[],\n\t\t\t);\n\t\t\tif (this.component._multiple === false && selected.length === 0) {\n\t\t\t\tnextState.set('_value', [\n\t\t\t\t\t(\n\t\t\t\t\t\toptions[0] as {\n\t\t\t\t\t\t\tvalue: string;\n\t\t\t\t\t\t}\n\t\t\t\t\t).value,\n\t\t\t\t]);\n\t\t\t} else if (Array.isArray(value) && selected.length < value.length) {\n\t\t\t\tnextState.set('_value', selected);\n\t\t\t}\n\t\t}\n\t};\n\n\tpublic validateOptions(value?: OptionsWithOptgroupPropType): void {\n\t\tvalidateOptionsWithOptgroup(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: this.afterPatchOptions,\n\t\t\t\tbeforePatch: this.beforePatchOptions,\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic validateMultiple(value?: boolean): void {\n\t\twatchBoolean(this.component, '_multiple', value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: this.afterPatchOptions,\n\t\t\t\tbeforePatch: this.beforePatchOptions,\n\t\t\t},\n\t\t});\n\t\t// if (value === true) {\n\t\t// \tdevHint(\n\t\t// \t\t'[KolSelect] Currently, multiple selection is not yet supported. We are working on implementing it to be functional, as there are some gaps in the browser standard.'\n\t\t// \t);\n\t\t// \tdevHint('[KolSelect] For multiple selections, the list length (size) should also be set.');\n\t\t// }\n\t}\n\n\tpublic validateRequired(value?: boolean): void {\n\t\twatchBoolean(this.component, '_required', value);\n\t}\n\n\tpublic validateRows(value?: RowsPropType) {\n\t\tvalidateRows(this.component, value);\n\t}\n\n\tpublic validateValue(value?: Stringified<W3CInputValue[]>): void {\n\t\twatchJsonArrayString(this.component, '_value', () => true, value, undefined, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: this.afterPatchOptions,\n\t\t\t\tbeforePatch: this.beforePatchOptions,\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateOptions(this.component._options);\n\t\tthis.validateMultiple(this.component._multiple);\n\t\tthis.validateRequired(this.component._required);\n\t\tthis.validateRows(this.component._rows);\n\t\tthis.validateValue(this.component._value);\n\t}\n}\n","@use '../@shared/mixins' as *;\n@use '../@shared/kol-alert-mixin' as *;\n@use '../style' as *;\n@use '../input-line' as *;\n\n@include kol-alert-styles;\n\n@layer kol-component {\n\t:host {\n\t\tfont-size: rem(16);\n\n\t\toption:checked::before {\n\t\t\tcontent: '✓ ';\n\t\t}\n\t}\n}\n","import type {\n\tFocusableElement,\n\tHideErrorPropType,\n\tIdPropType,\n\tInputTypeOnDefault,\n\tKoliBriHorizontalIcons,\n\tLabelWithExpertSlotPropType,\n\tMsgPropType,\n\tNamePropType,\n\tOptgroup,\n\tOption,\n\tOptionsWithOptgroupPropType,\n\tRowsPropType,\n\tSelectAPI,\n\tSelectOption,\n\tSelectStates,\n\tShortKeyPropType,\n\tStringified,\n\tSyncValueBySelectorPropType,\n\tTooltipAlignPropType,\n\tW3CInputValue,\n} from '../../schema';\nimport { buildBadgeTextString, showExpertSlot } from '../../schema';\nimport type { JSX } from '@stencil/core';\nimport { Component, Element, Fragment, h, Host, Method, Prop, State, Watch } from '@stencil/core';\n\nimport { nonce } from '../../utils/dev.utils';\nimport { stopPropagation, tryToDispatchKoliBriEvent } from '../../utils/events';\nimport { getRenderStates } from '../input/controller';\nimport { InternalUnderlinedBadgeText } from '../span/InternalUnderlinedBadgeText';\nimport { SelectController } from './controller';\nimport { KolInputTag } from '../../core/component-names';\nimport { propagateSubmitEventToForm } from '../form/controller';\n\nconst isSelected = (valueList: unknown[] | null, optionValue: unknown): boolean => {\n\treturn Array.isArray(valueList) && valueList.includes(optionValue);\n};\n\n/**\n * @slot - Die Beschriftung des Eingabefeldes.\n */\n@Component({\n\ttag: 'kol-select',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolSelect implements SelectAPI, FocusableElement {\n\t@Element() private readonly host?: HTMLKolSelectElement;\n\tprivate selectRef?: HTMLSelectElement;\n\n\tprivate readonly catchRef = (ref?: HTMLSelectElement) => {\n\t\tthis.selectRef = ref;\n\t};\n\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async getValue(): Promise<Stringified<W3CInputValue[]> | undefined> {\n\t\treturn this.state._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@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async kolFocus() {\n\t\tthis.selectRef?.focus();\n\t}\n\n\tprivate renderOptgroup(optgroup: Optgroup<string>, preKey: string): JSX.Element {\n\t\treturn (\n\t\t\t<optgroup disabled={optgroup.disabled} label={optgroup.label}>\n\t\t\t\t{optgroup.options?.map((option: SelectOption<W3CInputValue>, index: number) => {\n\t\t\t\t\tconst key = `${preKey}-${index}`;\n\t\t\t\t\tif (Array.isArray((option as Optgroup<string>).options)) {\n\t\t\t\t\t\treturn this.renderOptgroup(option as Optgroup<string>, key);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<option\n\t\t\t\t\t\t\t\tdisabled={option.disabled}\n\t\t\t\t\t\t\t\tkey={key}\n\t\t\t\t\t\t\t\t// label={option.label}\n\t\t\t\t\t\t\t\tselected={isSelected(this.state._value, (option as Option<W3CInputValue>).value)}\n\t\t\t\t\t\t\t\tvalue={key}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{option.label}\n\t\t\t\t\t\t\t</option>\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t})}\n\t\t\t</optgroup>\n\t\t);\n\t}\n\n\tpublic render(): JSX.Element {\n\t\tconst { ariaDescribedBy } = getRenderStates(this.state);\n\t\tconst hasExpertSlot = showExpertSlot(this.state._label);\n\n\t\treturn (\n\t\t\t<Host class={{ 'kol-select': true, 'has-value': this.state._hasValue }}>\n\t\t\t\t<KolInputTag\n\t\t\t\t\tclass={{\n\t\t\t\t\t\t'hide-label': !!this.state._hideLabel,\n\t\t\t\t\t\tselect: true,\n\t\t\t\t\t}}\n\t\t\t\t\t_accessKey={this.state._accessKey}\n\t\t\t\t\t_alert={this.showAsAlert()}\n\t\t\t\t\t_disabled={this.state._disabled}\n\t\t\t\t\t_hideError={this.state._hideError}\n\t\t\t\t\t_hideLabel={this.state._hideLabel}\n\t\t\t\t\t_hint={this.state._hint}\n\t\t\t\t\t_icons={this.state._icons}\n\t\t\t\t\t_id={this.state._id}\n\t\t\t\t\t_label={this.state._label}\n\t\t\t\t\t_msg={this.state._msg}\n\t\t\t\t\t_required={this.state._required}\n\t\t\t\t\t_shortKey={this.state._shortKey}\n\t\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t\t_touched={this.state._touched}\n\t\t\t\t\tonClick={() => this.selectRef?.focus()}\n\t\t\t\t\trole={`presentation` /* Avoid element being read as 'clickable' in NVDA */}\n\t\t\t\t>\n\t\t\t\t\t<span slot=\"label\">\n\t\t\t\t\t\t{hasExpertSlot ? (\n\t\t\t\t\t\t\t<slot name=\"expert\"></slot>\n\t\t\t\t\t\t) : typeof this.state._accessKey === 'string' || typeof this.state._shortKey === 'string' ? (\n\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t<InternalUnderlinedBadgeText badgeText={buildBadgeTextString(this.state._accessKey, this.state._shortKey)} label={this.state._label} />{' '}\n\t\t\t\t\t\t\t\t<span class=\"access-key-hint\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t\t\t{buildBadgeTextString(this.state._accessKey, this.state._shortKey)}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<span>{this.state._label}</span>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</span>\n\t\t\t\t\t<div slot=\"input\">\n\t\t\t\t\t\t<form\n\t\t\t\t\t\t\tonSubmit={(event) => {\n\t\t\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t\t\tpropagateSubmitEventToForm({\n\t\t\t\t\t\t\t\t\tform: this.host,\n\t\t\t\t\t\t\t\t\tref: this.selectRef,\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<input type=\"submit\" hidden />\n\t\t\t\t\t\t\t<select\n\t\t\t\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\t\t\t\ttitle=\"\"\n\t\t\t\t\t\t\t\taccessKey={this.state._accessKey}\n\t\t\t\t\t\t\t\taria-describedby={ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined}\n\t\t\t\t\t\t\t\taria-label={this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined}\n\t\t\t\t\t\t\t\tautoCapitalize=\"off\"\n\t\t\t\t\t\t\t\tautoCorrect=\"off\"\n\t\t\t\t\t\t\t\tdisabled={this.state._disabled}\n\t\t\t\t\t\t\t\tid={this.state._id}\n\t\t\t\t\t\t\t\tmultiple={this.state._multiple}\n\t\t\t\t\t\t\t\tname={this.state._name}\n\t\t\t\t\t\t\t\trequired={this.state._required}\n\t\t\t\t\t\t\t\tsize={this.state._rows}\n\t\t\t\t\t\t\t\t{...this.controller.onFacade}\n\t\t\t\t\t\t\t\tonInput={this.onInput.bind(this)}\n\t\t\t\t\t\t\t\tonChange={this.onChange.bind(this)}\n\t\t\t\t\t\t\t\tonFocus={(event) => {\n\t\t\t\t\t\t\t\t\tthis.controller.onFacade.onFocus(event);\n\t\t\t\t\t\t\t\t\tthis.inputHasFocus = true;\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\tonBlur={(event) => {\n\t\t\t\t\t\t\t\t\tthis.controller.onFacade.onBlur(event);\n\t\t\t\t\t\t\t\t\tthis.inputHasFocus = false;\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\t{this.state._options.map((option, index) => {\n\t\t\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t\t\t * Damit der Value einer Option ein beliebigen Typ haben kann\n\t\t\t\t\t\t\t\t\t * muss man auf HTML-Ebene den Value auf einen String-Wert\n\t\t\t\t\t\t\t\t\t * mappen. Das tun wir mittels der Map.\n\t\t\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\t\t\tconst key = `-${index}`;\n\t\t\t\t\t\t\t\t\tif (Array.isArray((option as unknown as Optgroup<string>).options)) {\n\t\t\t\t\t\t\t\t\t\treturn this.renderOptgroup(option as unknown as Optgroup<string>, key);\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t<option\n\t\t\t\t\t\t\t\t\t\t\t\tdisabled={option.disabled}\n\t\t\t\t\t\t\t\t\t\t\t\tkey={key}\n\t\t\t\t\t\t\t\t\t\t\t\t// label={option.label}\n\t\t\t\t\t\t\t\t\t\t\t\tselected={isSelected(this.state._value, (option as unknown as Option<W3CInputValue>).value)}\n\t\t\t\t\t\t\t\t\t\t\t\tvalue={key}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t{option.label}\n\t\t\t\t\t\t\t\t\t\t\t</option>\n\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t</KolInputTag>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate readonly controller: SelectController;\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?: string;\n\n\t/**\n\t * Defines whether the screen-readers should read out the notification.\n\t * @deprecated Will be removed in v3. Use automatic behaviour instead.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _alert?: 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 * Defines the error message text.\n\t * @deprecated Will be removed in v3. Use `msg` instead.\n\t */\n\t@Prop() public _error?: string;\n\n\t/**\n\t * Hides the error message but leaves it in the DOM for the input's aria-describedby.\n\t * @TODO: Change type back to `HideErrorPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _hideError?: 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 hint text.\n\t */\n\t@Prop() public _hint?: string = '';\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: Stringified<KoliBriHorizontalIcons>;\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 properties for a message rendered as Alert component.\n\t */\n\t@Prop() public _msg?: Stringified<MsgPropType>;\n\n\t/**\n\t * Makes the input accept multiple inputs.\n\t * @TODO: Change type back to `MultiplePropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _multiple?: boolean = false;\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 das Input-Event an.\n\t */\n\t@Prop() public _on?: InputTypeOnDefault;\n\n\t/**\n\t * Options the user can choose from, also supporting Optgroup.\n\t */\n\t@Prop() public _options?: OptionsWithOptgroupPropType;\n\n\t/**\n\t * Makes the input element required.\n\t * @TODO: Change type back to `RequiredPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _required?: boolean = false;\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 * Defines how many rows of options should be visible at the same time.\n\t */\n\t@Prop() public _rows?: RowsPropType;\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 * Shows if the input was touched by a user.\n\t * @TODO: Change type back to `TouchedPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _touched?: boolean = false;\n\n\t/**\n\t * Defines the value of the input.\n\t */\n\t@Prop({ mutable: true }) public _value?: Stringified<W3CInputValue[]>;\n\n\t@State() public state: SelectStates = {\n\t\t_hasValue: false,\n\t\t_hideError: false,\n\t\t_id: `id-${nonce()}`,\n\t\t_label: '', // ⚠ required\n\t\t_multiple: false,\n\t\t_options: [],\n\t\t_value: [],\n\t};\n\n\t@State() private inputHasFocus = false;\n\n\tpublic constructor() {\n\t\tthis.controller = new SelectController(this, 'select', this.host);\n\t}\n\n\tprivate showAsAlert(): boolean {\n\t\tif (this.state._alert === undefined) {\n\t\t\treturn Boolean(this.state._touched) && !this.inputHasFocus;\n\t\t}\n\t\treturn this.state._alert;\n\t}\n\n\t@Watch('_accessKey')\n\tpublic validateAccessKey(value?: string): void {\n\t\tthis.controller.validateAccessKey(value);\n\t}\n\n\t@Watch('_alert')\n\tpublic validateAlert(value?: boolean): void {\n\t\tthis.controller.validateAlert(value);\n\t}\n\n\t@Watch('_disabled')\n\tpublic validateDisabled(value?: boolean): void {\n\t\tthis.controller.validateDisabled(value);\n\t}\n\n\t@Watch('_error')\n\tpublic validateError(value?: string): void {\n\t\tthis.controller.validateError(value);\n\t}\n\n\t@Watch('_hideError')\n\tpublic validateHideError(value?: HideErrorPropType): void {\n\t\tthis.controller.validateHideError(value);\n\t}\n\n\t@Watch('_hideLabel')\n\tpublic validateHideLabel(value?: boolean): void {\n\t\tthis.controller.validateHideLabel(value);\n\t}\n\n\t@Watch('_hint')\n\tpublic validateHint(value?: string): void {\n\t\tthis.controller.validateHint(value);\n\t}\n\n\t@Watch('_icons')\n\tpublic validateIcons(value?: Stringified<KoliBriHorizontalIcons>): void {\n\t\tthis.controller.validateIcons(value);\n\t}\n\n\t@Watch('_id')\n\tpublic validateId(value?: string): void {\n\t\tthis.controller.validateId(value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelWithExpertSlotPropType): void {\n\t\tthis.controller.validateLabel(value);\n\t}\n\n\t@Watch('_msg')\n\tpublic validateMsg(value?: Stringified<MsgPropType>): void {\n\t\tthis.controller.validateMsg(value);\n\t}\n\n\t@Watch('_multiple')\n\tpublic validateMultiple(value?: boolean): void {\n\t\tthis.controller.validateMultiple(value);\n\t}\n\n\t@Watch('_name')\n\tpublic validateName(value?: string): void {\n\t\tthis.controller.validateName(value);\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(value?: InputTypeOnDefault): void {\n\t\tthis.controller.validateOn(value);\n\t}\n\n\t@Watch('_options')\n\tpublic validateOptions(value?: OptionsWithOptgroupPropType): void {\n\t\tthis.controller.validateOptions(value);\n\t}\n\n\t@Watch('_required')\n\tpublic validateRequired(value?: boolean): void {\n\t\tthis.controller.validateRequired(value);\n\t}\n\n\t@Watch('_rows')\n\tpublic validateRows(value?: RowsPropType): void {\n\t\tthis.controller.validateRows(value);\n\t}\n\n\t@Watch('_shortKey')\n\tpublic validateShortKey(value?: ShortKeyPropType): void {\n\t\tthis.controller.validateShortKey(value);\n\t}\n\n\t@Watch('_syncValueBySelector')\n\tpublic validateSyncValueBySelector(value?: SyncValueBySelectorPropType): void {\n\t\tthis.controller.validateSyncValueBySelector(value);\n\t}\n\n\t@Watch('_tabIndex')\n\tpublic validateTabIndex(value?: number): void {\n\t\tthis.controller.validateTabIndex(value);\n\t}\n\n\t@Watch('_touched')\n\tpublic validateTouched(value?: boolean): void {\n\t\tthis.controller.validateTouched(value);\n\t}\n\n\t@Watch('_value')\n\tpublic validateValue(value?: Stringified<W3CInputValue[]>): void {\n\t\tthis.controller.validateValue(value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis._touched = this._touched === true;\n\t\tthis.controller.componentWillLoad();\n\n\t\tthis.state._hasValue = !!this.state._value;\n\t\tthis.controller.addValueChangeListener((v) => (this.state._hasValue = !!v));\n\t}\n\n\tprivate onInput(event: Event): void {\n\t\tthis._value = Array.from(this.selectRef?.options || [])\n\t\t\t.filter((option) => option.selected === true)\n\t\t\t.map((option) => this.controller.getOptionByKey(option.value)?.value as string);\n\n\t\t// Event handling\n\t\ttryToDispatchKoliBriEvent('input', this.host, this._value);\n\n\t\t// Callback\n\t\tthis.state._on?.onInput?.(event, this._value);\n\t}\n\n\tprivate onChange(event: Event): void {\n\t\t// Event handling\n\t\tstopPropagation(event);\n\t\ttryToDispatchKoliBriEvent('change', this.host, this._value);\n\n\t\t// Static form handling\n\t\tthis.controller.setFormAssociatedValue(this._value as unknown as string);\n\n\t\t// Callback\n\t\tthis.state._on?.onChange?.(event, this._value);\n\t}\n}\n"],"mappings":";;;86BAiBaA,UAAyBC,EAIrC,WAAAC,CAAmBC,EAAoDC,EAAcC,GACpFC,MAAMH,EAAWC,EAAMC,GAHPE,KAAAC,aAAe,IAAIC,IAOpBF,KAAAG,eAAkBC,GAAmDJ,KAAKC,aAAaI,IAAID,GAE1FJ,KAAAM,iBAAmB,CAACC,EAAeC,IAElDA,EAAQC,MAAMC,UACLA,EAAiCH,QAAU,SAC/CG,EAAiCH,QAAUA,EAC5CI,MAAMC,QAASF,EAA4BF,SAC1CR,K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AAStJ,KAAKF,KAAME,KAAKsB,SAGnDiI,GAAAC,EAAAxJ,KAAKyB,MAAMgI,OAAG,MAAAD,SAAA,SAAAA,EAAE/B,WAAO,MAAA8B,SAAA,SAAAA,EAAAG,KAAAF,EAAGrD,EAAOnG,KAAKsB,O,CAG/B,QAAAqG,CAASxB,G,QAEhBwD,EAAgBxD,GAChBmD,EAA0B,SAAUtJ,KAAKF,KAAME,KAAKsB,QAGpDtB,KAAKuH,WAAWnG,uBAAuBpB,KAAKsB,SAG5CkI,GAAA/F,EAAAzD,KAAKyB,MAAMgI,OAAG,MAAAhG,SAAA,SAAAA,EAAEkE,YAAQ,MAAA6B,SAAA,SAAAA,EAAAE,KAAAjG,EAAG0C,EAAOnG,KAAKsB,O","ignoreList":[]}
1
+ {"version":3,"names":["SelectController","InputIconController","constructor","component","name","host","super","this","keyOptionMap","Map","getOptionByKey","key","get","isValueInOptions","value","options","find","option","Array","isArray","undefined","filterValuesInOptions","values","filter","afterPatchOptions","_state","_component","setFormAssociatedValue","beforePatchOptions","_value","nextState","has","state","_options","length","clear","fillKeyOptionMap","selected","_multiple","set","validateOptions","validateOptionsWithOptgroup","hooks","afterPatch","beforePatch","validateMultiple","watchBoolean","validateRequired","validateRows","validateValue","watchJsonArrayString","componentWillLoad","_required","_rows","defaultStyleCss","KolSelectDefaultStyle0","isSelected","valueList","optionValue","includes","KolSelect","getValue","focus","kolFocus","_a","selectRef","renderOptgroup","optgroup","preKey","h","disabled","label","map","index","render","ariaDescribedBy","getRenderStates","hasExpertSlot","showExpertSlot","_label","Host","class","_hasValue","KolInputTag","_hideLabel","select","_accessKey","_alert","showAsAlert","_disabled","_hideError","_hint","_icons","_id","_msg","_shortKey","_tooltipAlign","_touched","onClick","role","slot","Fragment","InternalUnderlinedBadgeText","badgeText","buildBadgeTextString","onSubmit","event","preventDefault","propagateSubmitEventToForm","form","ref","type","hidden","Object","assign","catchRef","title","accessKey","join","autoCapitalize","autoCorrect","id","multiple","_name","required","size","controller","onFacade","onInput","bind","onChange","onFocus","inputHasFocus","onBlur","hostRef","nonce","Boolean","validateAccessKey","validateAlert","validateDisabled","validateError","validateHideError","validateHideLabel","validateHint","validateIcons","validateId","validateLabel","validateMsg","validateName","validateOn","validateShortKey","validateSyncValueBySelector","validateTabIndex","validateTouched","addValueChangeListener","v","from","tryToDispatchKoliBriEvent","_c","_b","_on","call","stopPropagation"],"sources":["src/components/select/controller.ts","src/components/select/style.scss?tag=kol-select&mode=default&encapsulation=shadow","src/components/select/shadow.tsx"],"sourcesContent":["import type {\n\tOptgroup,\n\tOption,\n\tOptionsWithOptgroupPropType,\n\tRowsPropType,\n\tSelectOption,\n\tSelectProps,\n\tSelectWatches,\n\tStringified,\n\tW3CInputValue,\n} from '../../schema';\nimport { validateOptionsWithOptgroup, validateRows, watchBoolean, watchJsonArrayString } from '../../schema';\n\nimport { InputIconController } from '../@deprecated/input/controller-icon';\nimport { fillKeyOptionMap } from '../input-radio/controller';\n\nimport type { Generic } from 'adopted-style-sheets';\nexport class SelectController extends InputIconController implements SelectWatches {\n\tprotected readonly component: Generic.Element.Component & SelectProps;\n\tprivate readonly keyOptionMap = new Map<string, Option<W3CInputValue>>();\n\n\tpublic constructor(component: Generic.Element.Component & SelectProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic readonly getOptionByKey = (key: string): Option<W3CInputValue> | undefined => this.keyOptionMap.get(key);\n\n\tprivate readonly isValueInOptions = (value: string, options: SelectOption<W3CInputValue>[]): boolean => {\n\t\treturn (\n\t\t\toptions.find((option) =>\n\t\t\t\ttypeof (option as Option<W3CInputValue>).value === 'string'\n\t\t\t\t\t? (option as Option<W3CInputValue>).value === value\n\t\t\t\t\t: Array.isArray((option as Optgroup<string>).options)\n\t\t\t\t\t\t? this.isValueInOptions(value, (option as Optgroup<string>).options)\n\t\t\t\t\t\t: false,\n\t\t\t) !== undefined\n\t\t);\n\t};\n\n\tprivate readonly filterValuesInOptions = (values: string[], options: SelectOption<W3CInputValue>[]): string[] => {\n\t\treturn values.filter((value) => this.isValueInOptions(value, options) !== undefined);\n\t};\n\n\tprotected readonly afterPatchOptions = (value: unknown, _state: Record<string, unknown>, _component: Generic.Element.Component, key: string): void => {\n\t\tif (key === '_value') {\n\t\t\tthis.setFormAssociatedValue(value as string);\n\t\t}\n\t};\n\n\tprivate readonly beforePatchOptions = (_value: unknown, nextState: Map<string, unknown>): void => {\n\t\tconst options = nextState.has('_options') ? nextState.get('_options') : this.component.state._options;\n\t\tif (Array.isArray(options) && options.length > 0) {\n\t\t\tthis.keyOptionMap.clear();\n\t\t\tfillKeyOptionMap(this.keyOptionMap, options as SelectOption<W3CInputValue>[]);\n\t\t\tconst value = nextState.has('_value') ? nextState.get('_value') : this.component.state._value;\n\t\t\tconst selected = this.filterValuesInOptions(\n\t\t\t\tArray.isArray(value) && value.length > 0 ? (value as string[]) : [],\n\t\t\t\toptions as SelectOption<W3CInputValue>[],\n\t\t\t);\n\t\t\tif (this.component._multiple === false && selected.length === 0) {\n\t\t\t\tnextState.set('_value', [\n\t\t\t\t\t(\n\t\t\t\t\t\toptions[0] as {\n\t\t\t\t\t\t\tvalue: string;\n\t\t\t\t\t\t}\n\t\t\t\t\t).value,\n\t\t\t\t]);\n\t\t\t} else if (Array.isArray(value) && selected.length < value.length) {\n\t\t\t\tnextState.set('_value', selected);\n\t\t\t}\n\t\t}\n\t};\n\n\tpublic validateOptions(value?: OptionsWithOptgroupPropType): void {\n\t\tvalidateOptionsWithOptgroup(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: this.afterPatchOptions,\n\t\t\t\tbeforePatch: this.beforePatchOptions,\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic validateMultiple(value?: boolean): void {\n\t\twatchBoolean(this.component, '_multiple', value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: this.afterPatchOptions,\n\t\t\t\tbeforePatch: this.beforePatchOptions,\n\t\t\t},\n\t\t});\n\t\t// if (value === true) {\n\t\t// \tdevHint(\n\t\t// \t\t'[KolSelect] Currently, multiple selection is not yet supported. We are working on implementing it to be functional, as there are some gaps in the browser standard.'\n\t\t// \t);\n\t\t// \tdevHint('[KolSelect] For multiple selections, the list length (size) should also be set.');\n\t\t// }\n\t}\n\n\tpublic validateRequired(value?: boolean): void {\n\t\twatchBoolean(this.component, '_required', value);\n\t}\n\n\tpublic validateRows(value?: RowsPropType) {\n\t\tvalidateRows(this.component, value);\n\t}\n\n\tpublic validateValue(value?: Stringified<W3CInputValue[]>): void {\n\t\twatchJsonArrayString(this.component, '_value', () => true, value, undefined, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: this.afterPatchOptions,\n\t\t\t\tbeforePatch: this.beforePatchOptions,\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateOptions(this.component._options);\n\t\tthis.validateMultiple(this.component._multiple);\n\t\tthis.validateRequired(this.component._required);\n\t\tthis.validateRows(this.component._rows);\n\t\tthis.validateValue(this.component._value);\n\t}\n}\n","@use '../style' as *;\n@use '../input-line' as *;\n\n@layer kol-component {\n\toption:checked::before {\n\t\tcontent: '✓ ';\n\t}\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, Element, Fragment, h, Host, Method, Prop, State, Watch } from '@stencil/core';\nimport type {\n\tFocusableElement,\n\tHideErrorPropType,\n\tIconsHorizontalPropType,\n\tIdPropType,\n\tInputTypeOnDefault,\n\tLabelWithExpertSlotPropType,\n\tMsgPropType,\n\tNamePropType,\n\tOptgroup,\n\tOption,\n\tOptionsWithOptgroupPropType,\n\tRowsPropType,\n\tSelectAPI,\n\tSelectOption,\n\tSelectStates,\n\tShortKeyPropType,\n\tStringified,\n\tSyncValueBySelectorPropType,\n\tTooltipAlignPropType,\n\tW3CInputValue,\n} from '../../schema';\nimport { buildBadgeTextString, showExpertSlot } from '../../schema';\n\nimport { KolInputTag } from '../../core/component-names';\nimport { nonce } from '../../utils/dev.utils';\nimport { stopPropagation, tryToDispatchKoliBriEvent } from '../../utils/events';\nimport { propagateSubmitEventToForm } from '../form/controller';\nimport { getRenderStates } from '../input/controller';\nimport { InternalUnderlinedBadgeText } from '../span/InternalUnderlinedBadgeText';\nimport { SelectController } from './controller';\n\nconst isSelected = (valueList: unknown[] | null, optionValue: unknown): boolean => {\n\treturn Array.isArray(valueList) && valueList.includes(optionValue);\n};\n\n/**\n * @slot - Die Beschriftung des Eingabefeldes.\n */\n@Component({\n\ttag: 'kol-select',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolSelect implements SelectAPI, FocusableElement {\n\t@Element() private readonly host?: HTMLKolSelectElement;\n\tprivate selectRef?: HTMLSelectElement;\n\n\tprivate readonly catchRef = (ref?: HTMLSelectElement) => {\n\t\tthis.selectRef = ref;\n\t};\n\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async getValue(): Promise<Stringified<W3CInputValue[]> | undefined> {\n\t\treturn this.state._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@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async kolFocus() {\n\t\tthis.selectRef?.focus();\n\t}\n\n\tprivate renderOptgroup(optgroup: Optgroup<string>, preKey: string): JSX.Element {\n\t\treturn (\n\t\t\t<optgroup disabled={optgroup.disabled} label={optgroup.label}>\n\t\t\t\t{optgroup.options?.map((option: SelectOption<W3CInputValue>, index: number) => {\n\t\t\t\t\tconst key = `${preKey}-${index}`;\n\t\t\t\t\tif (Array.isArray((option as Optgroup<string>).options)) {\n\t\t\t\t\t\treturn this.renderOptgroup(option as Optgroup<string>, key);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<option\n\t\t\t\t\t\t\t\tdisabled={option.disabled}\n\t\t\t\t\t\t\t\tkey={key}\n\t\t\t\t\t\t\t\t// label={option.label}\n\t\t\t\t\t\t\t\tselected={isSelected(this.state._value, (option as Option<W3CInputValue>).value)}\n\t\t\t\t\t\t\t\tvalue={key}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{option.label}\n\t\t\t\t\t\t\t</option>\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t})}\n\t\t\t</optgroup>\n\t\t);\n\t}\n\n\tpublic render(): JSX.Element {\n\t\tconst { ariaDescribedBy } = getRenderStates(this.state);\n\t\tconst hasExpertSlot = showExpertSlot(this.state._label);\n\n\t\treturn (\n\t\t\t<Host class={{ 'kol-select': true, 'has-value': this.state._hasValue }}>\n\t\t\t\t<KolInputTag\n\t\t\t\t\tclass={{\n\t\t\t\t\t\t'hide-label': !!this.state._hideLabel,\n\t\t\t\t\t\tselect: true,\n\t\t\t\t\t}}\n\t\t\t\t\t_accessKey={this.state._accessKey}\n\t\t\t\t\t_alert={this.showAsAlert()}\n\t\t\t\t\t_disabled={this.state._disabled}\n\t\t\t\t\t_hideError={this.state._hideError}\n\t\t\t\t\t_hideLabel={this.state._hideLabel}\n\t\t\t\t\t_hint={this.state._hint}\n\t\t\t\t\t_icons={this.state._icons}\n\t\t\t\t\t_id={this.state._id}\n\t\t\t\t\t_label={this.state._label}\n\t\t\t\t\t_msg={this.state._msg}\n\t\t\t\t\t_required={this.state._required}\n\t\t\t\t\t_shortKey={this.state._shortKey}\n\t\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t\t_touched={this.state._touched}\n\t\t\t\t\tonClick={() => this.selectRef?.focus()}\n\t\t\t\t\trole={`presentation` /* Avoid element being read as 'clickable' in NVDA */}\n\t\t\t\t>\n\t\t\t\t\t<span slot=\"label\">\n\t\t\t\t\t\t{hasExpertSlot ? (\n\t\t\t\t\t\t\t<slot name=\"expert\"></slot>\n\t\t\t\t\t\t) : typeof this.state._accessKey === 'string' || typeof this.state._shortKey === 'string' ? (\n\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t<InternalUnderlinedBadgeText badgeText={buildBadgeTextString(this.state._accessKey, this.state._shortKey)} label={this.state._label} />{' '}\n\t\t\t\t\t\t\t\t<span class=\"badge-text-hint\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t\t\t{buildBadgeTextString(this.state._accessKey, this.state._shortKey)}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<span>{this.state._label}</span>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</span>\n\t\t\t\t\t<div slot=\"input\">\n\t\t\t\t\t\t<form\n\t\t\t\t\t\t\tonSubmit={(event) => {\n\t\t\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t\t\tpropagateSubmitEventToForm({\n\t\t\t\t\t\t\t\t\tform: this.host,\n\t\t\t\t\t\t\t\t\tref: this.selectRef,\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<input type=\"submit\" hidden />\n\t\t\t\t\t\t\t<select\n\t\t\t\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\t\t\t\ttitle=\"\"\n\t\t\t\t\t\t\t\taccessKey={this.state._accessKey}\n\t\t\t\t\t\t\t\taria-describedby={ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined}\n\t\t\t\t\t\t\t\taria-label={this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined}\n\t\t\t\t\t\t\t\tautoCapitalize=\"off\"\n\t\t\t\t\t\t\t\tautoCorrect=\"off\"\n\t\t\t\t\t\t\t\tdisabled={this.state._disabled}\n\t\t\t\t\t\t\t\tid={this.state._id}\n\t\t\t\t\t\t\t\tmultiple={this.state._multiple}\n\t\t\t\t\t\t\t\tname={this.state._name}\n\t\t\t\t\t\t\t\trequired={this.state._required}\n\t\t\t\t\t\t\t\tsize={this.state._rows}\n\t\t\t\t\t\t\t\t{...this.controller.onFacade}\n\t\t\t\t\t\t\t\tonInput={this.onInput.bind(this)}\n\t\t\t\t\t\t\t\tonChange={this.onChange.bind(this)}\n\t\t\t\t\t\t\t\tonFocus={(event) => {\n\t\t\t\t\t\t\t\t\tthis.controller.onFacade.onFocus(event);\n\t\t\t\t\t\t\t\t\tthis.inputHasFocus = true;\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\tonBlur={(event) => {\n\t\t\t\t\t\t\t\t\tthis.controller.onFacade.onBlur(event);\n\t\t\t\t\t\t\t\t\tthis.inputHasFocus = false;\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\t{this.state._options.map((option, index) => {\n\t\t\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t\t\t * Damit der Value einer Option ein beliebigen Typ haben kann\n\t\t\t\t\t\t\t\t\t * muss man auf HTML-Ebene den Value auf einen String-Wert\n\t\t\t\t\t\t\t\t\t * mappen. Das tun wir mittels der Map.\n\t\t\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\t\t\tconst key = `-${index}`;\n\t\t\t\t\t\t\t\t\tif (Array.isArray((option as unknown as Optgroup<string>).options)) {\n\t\t\t\t\t\t\t\t\t\treturn this.renderOptgroup(option as unknown as Optgroup<string>, key);\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t<option\n\t\t\t\t\t\t\t\t\t\t\t\tdisabled={option.disabled}\n\t\t\t\t\t\t\t\t\t\t\t\taria-hidden={option.disabled ? 'true' : undefined}\n\t\t\t\t\t\t\t\t\t\t\t\tkey={key}\n\t\t\t\t\t\t\t\t\t\t\t\t// label={option.label}\n\t\t\t\t\t\t\t\t\t\t\t\tselected={isSelected(this.state._value, (option as unknown as Option<W3CInputValue>).value)}\n\t\t\t\t\t\t\t\t\t\t\t\tvalue={key}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t{option.label}\n\t\t\t\t\t\t\t\t\t\t\t</option>\n\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t</KolInputTag>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate readonly controller: SelectController;\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?: string;\n\n\t/**\n\t * Defines whether the screen-readers should read out the notification.\n\t * @deprecated Will be removed in v3. Use automatic behaviour instead.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _alert?: 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 * Defines the error message text.\n\t * @deprecated Will be removed in v3. Use `msg` instead.\n\t */\n\t@Prop() public _error?: string;\n\n\t/**\n\t * Hides the error message but leaves it in the DOM for the input's aria-describedby.\n\t * @TODO: Change type back to `HideErrorPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _hideError?: 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 hint text.\n\t */\n\t@Prop() public _hint?: string = '';\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: IconsHorizontalPropType;\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 properties for a message rendered as Alert component.\n\t */\n\t@Prop() public _msg?: Stringified<MsgPropType>;\n\n\t/**\n\t * Makes the input accept multiple inputs.\n\t * @TODO: Change type back to `MultiplePropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _multiple?: boolean = false;\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 das Input-Event an.\n\t */\n\t@Prop() public _on?: InputTypeOnDefault;\n\n\t/**\n\t * Options the user can choose from, also supporting Optgroup.\n\t */\n\t@Prop() public _options!: OptionsWithOptgroupPropType;\n\n\t/**\n\t * Makes the input element required.\n\t * @TODO: Change type back to `RequiredPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _required?: boolean = false;\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 * Defines how many rows of options should be visible at the same time.\n\t */\n\t@Prop() public _rows?: RowsPropType;\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 * Shows if the input was touched by a user.\n\t * @TODO: Change type back to `TouchedPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _touched?: boolean = false;\n\n\t/**\n\t * Defines the value of the input.\n\t */\n\t@Prop({ mutable: true }) public _value?: Stringified<W3CInputValue[]>;\n\n\t@State() public state: SelectStates = {\n\t\t_hasValue: false,\n\t\t_hideError: false,\n\t\t_id: `id-${nonce()}`,\n\t\t_label: '', // ⚠ required\n\t\t_multiple: false,\n\t\t_options: [],\n\t\t_value: [],\n\t};\n\n\t@State() private inputHasFocus = false;\n\n\tpublic constructor() {\n\t\tthis.controller = new SelectController(this, 'select', this.host);\n\t}\n\n\tprivate showAsAlert(): boolean {\n\t\tif (this.state._alert === undefined) {\n\t\t\treturn Boolean(this.state._touched) && !this.inputHasFocus;\n\t\t}\n\t\treturn this.state._alert;\n\t}\n\n\t@Watch('_accessKey')\n\tpublic validateAccessKey(value?: string): void {\n\t\tthis.controller.validateAccessKey(value);\n\t}\n\n\t@Watch('_alert')\n\tpublic validateAlert(value?: boolean): void {\n\t\tthis.controller.validateAlert(value);\n\t}\n\n\t@Watch('_disabled')\n\tpublic validateDisabled(value?: boolean): void {\n\t\tthis.controller.validateDisabled(value);\n\t}\n\n\t@Watch('_error')\n\tpublic validateError(value?: string): void {\n\t\tthis.controller.validateError(value);\n\t}\n\n\t@Watch('_hideError')\n\tpublic validateHideError(value?: HideErrorPropType): void {\n\t\tthis.controller.validateHideError(value);\n\t}\n\n\t@Watch('_hideLabel')\n\tpublic validateHideLabel(value?: boolean): void {\n\t\tthis.controller.validateHideLabel(value);\n\t}\n\n\t@Watch('_hint')\n\tpublic validateHint(value?: string): void {\n\t\tthis.controller.validateHint(value);\n\t}\n\n\t@Watch('_icons')\n\tpublic validateIcons(value?: IconsHorizontalPropType): void {\n\t\tthis.controller.validateIcons(value);\n\t}\n\n\t@Watch('_id')\n\tpublic validateId(value?: string): void {\n\t\tthis.controller.validateId(value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelWithExpertSlotPropType): void {\n\t\tthis.controller.validateLabel(value);\n\t}\n\n\t@Watch('_msg')\n\tpublic validateMsg(value?: Stringified<MsgPropType>): void {\n\t\tthis.controller.validateMsg(value);\n\t}\n\n\t@Watch('_multiple')\n\tpublic validateMultiple(value?: boolean): void {\n\t\tthis.controller.validateMultiple(value);\n\t}\n\n\t@Watch('_name')\n\tpublic validateName(value?: string): void {\n\t\tthis.controller.validateName(value);\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(value?: InputTypeOnDefault): void {\n\t\tthis.controller.validateOn(value);\n\t}\n\n\t@Watch('_options')\n\tpublic validateOptions(value?: OptionsWithOptgroupPropType): void {\n\t\tthis.controller.validateOptions(value);\n\t}\n\n\t@Watch('_required')\n\tpublic validateRequired(value?: boolean): void {\n\t\tthis.controller.validateRequired(value);\n\t}\n\n\t@Watch('_rows')\n\tpublic validateRows(value?: RowsPropType): void {\n\t\tthis.controller.validateRows(value);\n\t}\n\n\t@Watch('_shortKey')\n\tpublic validateShortKey(value?: ShortKeyPropType): void {\n\t\tthis.controller.validateShortKey(value);\n\t}\n\n\t@Watch('_syncValueBySelector')\n\tpublic validateSyncValueBySelector(value?: SyncValueBySelectorPropType): void {\n\t\tthis.controller.validateSyncValueBySelector(value);\n\t}\n\n\t@Watch('_tabIndex')\n\tpublic validateTabIndex(value?: number): void {\n\t\tthis.controller.validateTabIndex(value);\n\t}\n\n\t@Watch('_touched')\n\tpublic validateTouched(value?: boolean): void {\n\t\tthis.controller.validateTouched(value);\n\t}\n\n\t@Watch('_value')\n\tpublic validateValue(value?: Stringified<W3CInputValue[]>): void {\n\t\tthis.controller.validateValue(value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis._touched = this._touched === true;\n\t\tthis.controller.componentWillLoad();\n\n\t\tthis.state._hasValue = !!this.state._value;\n\t\tthis.controller.addValueChangeListener((v) => (this.state._hasValue = !!v));\n\t}\n\n\tprivate onInput(event: Event): void {\n\t\tthis._value = Array.from(this.selectRef?.options || [])\n\t\t\t.filter((option) => option.selected === true)\n\t\t\t.map((option) => this.controller.getOptionByKey(option.value)?.value as string);\n\n\t\t// Event handling\n\t\ttryToDispatchKoliBriEvent('input', this.host, this._value);\n\n\t\t// Callback\n\t\tthis.state._on?.onInput?.(event, this._value);\n\t}\n\n\tprivate onChange(event: Event): void {\n\t\t// Event handling\n\t\tstopPropagation(event);\n\t\ttryToDispatchKoliBriEvent('change', this.host, this._value);\n\n\t\t// Static form handling\n\t\tthis.controller.setFormAssociatedValue(this._value as unknown as string);\n\n\t\t// Callback\n\t\tthis.state._on?.onChange?.(event, this._value);\n\t}\n}\n"],"mappings":";;;86BAiBaA,UAAyBC,EAIrC,WAAAC,CAAmBC,EAAoDC,EAAcC,GACpFC,MAAMH,EAAWC,EAAMC,GAHPE,KAAAC,aAAe,IAAIC,IAOpBF,KAAAG,eAAkBC,GAAmDJ,KAAKC,aAAaI,IAAID,GAE1FJ,KAAAM,iBAAmB,CAACC,EAAeC,IAElDA,EAAQC,MAAMC,UACLA,EAAiCH,QAAU,SAC/CG,EAAiCH,QAAUA,EAC5CI,MAAMC,QAASF,EAA4BF,SAC1CR,KAAKM,iBAAiBC,EAAQG,EAA4BF,SAC1D,UACCK,UAISb,KAAAc,sBAAwB,CAACC,EAAkBP,IACpDO,EAAOC,QAAQT,GAAUP,KAAKM,iBAAiBC,EAAOC,KAAaK,YAGxDb,KAAAiB,kBAAoB,CAACV,EAAgBW,EAAiCC,EAAuCf,KAC/H,GAAIA,IAAQ,SAAU,CACrBJ,KAAKoB,uBAAuBb,E,GAIbP,KAAAqB,mBAAqB,CAACC,EAAiBC,KACvD,MAAMf,EAAUe,EAAUC,IAAI,YAAcD,EAAUlB,IAAI,YAAcL,KAAKJ,UAAU6B,MAAMC,SAC7F,GAAIf,MAAMC,QAAQJ,IAAYA,EAAQmB,OAAS,EAAG,CACjD3B,KAAKC,aAAa2B,QAClBC,EAAiB7B,KAAKC,aAAcO,GACpC,MAAMD,EAAQgB,EAAUC,IAAI,UAAYD,EAAUlB,IAAI,UAAYL,KAAKJ,UAAU6B,MAAMH,OACvF,MAAMQ,EAAW9B,KAAKc,sBACrBH,MAAMC,QAAQL,IAAUA,EAAMoB,OAAS,EAAKpB,EAAq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P,KAAKuH,WAAW2B,gBAAgB3I,E,CAI1B,aAAAmC,CAAcnC,GACpBP,KAAKuH,WAAW7E,cAAcnC,E,CAGxB,iBAAAqC,GACN5C,KAAK0F,SAAW1F,KAAK0F,WAAa,KAClC1F,KAAKuH,WAAW3E,oBAEhB5C,KAAKyB,MAAMkD,YAAc3E,KAAKyB,MAAMH,OACpCtB,KAAKuH,WAAW4B,wBAAwBC,GAAOpJ,KAAKyB,MAAMkD,YAAcyE,G,CAGjE,OAAA3B,CAAQtB,G,UACfnG,KAAKsB,OAASX,MAAM0I,OAAK5F,EAAAzD,KAAK0D,aAAS,MAAAD,SAAA,SAAAA,EAAEjD,UAAW,IAClDQ,QAAQN,GAAWA,EAAOoB,WAAa,OACvCmC,KAAKvD,IAAM,IAAA+C,EAAK,OAAAA,EAAAzD,KAAKuH,WAAWpH,eAAeO,EAAOH,UAAM,MAAAkD,SAAA,SAAAA,EAAElD,KAAe,IAG/E+I,EAA0B,QAAStJ,KAAKF,KAAME,KAAKsB,SAGnDiI,GAAAC,EAAAxJ,KAAKyB,MAAMgI,OAAG,MAAAD,SAAA,SAAAA,EAAE/B,WAAO,MAAA8B,SAAA,SAAAA,EAAAG,KAAAF,EAAGrD,EAAOnG,KAAKsB,O,CAG/B,QAAAqG,CAASxB,G,QAEhBwD,EAAgBxD,GAChBmD,EAA0B,SAAUtJ,KAAKF,KAAME,KAAKsB,QAGpDtB,KAAKuH,WAAWnG,uBAAuBpB,KAAKsB,SAG5CkI,GAAA/F,EAAAzD,KAAKyB,MAAMgI,OAAG,MAAAhG,SAAA,SAAAA,EAAEkE,YAAQ,MAAA6B,SAAA,SAAAA,EAAAE,KAAAjG,EAAG0C,EAAOnG,KAAKsB,O","ignoreList":[]}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as t,F as e,H as i,r as n,g as s}from"./index-583b6f8b.js";import{n as o}from"./dev.utils-25c26045.js";import{s as a,t as l}from"./events-29e84d75.js";import{I as r}from"./controller-icon-e363322f.js";import{f as h,b as d}from"./controller-964599c0.js";import{b as c,w as u,i as p}from"./prop.validators-9feb1d92.js";import{l as f,g as b}from"./component-names-6ca7e863.js";import{I as m}from"./InternalUnderlinedBadgeText-3bbff7b1.js";import{g as v}from"./controller-8eb39b13.js";import{t as y}from"./i18n-5fe08f1c.js";import{c as g}from"./clsx-09a06a12.js";import{s as k,b as w}from"./reuse-32931294.js";import"./dev.utils-fab45cbc.js";import"./icons-e1a5023e.js";import"./common-0f1f2276.js";import"./label-d0315384.js";import"./index-da3e0c00.js";import"./associated.controller-52d302aa.js";import"./access-and-short-key-9cca88b8.js";import"./hide-label-429a15ea.js";import"./tooltip-align-3e629203.js";import"./align-82100bda.js";import"./i18n-7ea9f137.js";class _ extends r{constructor(t,e,i){super(t,e,i),this.keyOptionMap=new Map,this.afterPatchOptions=(t,e,i,n)=>{"_value"===n&&this.setFormAssociatedValue(t)},this.beforePatchOptions=(t,e)=>{const i=e.has("_options")?e.get("_options"):this.component.state._options;Array.isArray(i)&&i.length>0&&(this.keyOptionMap.clear(),h(this.keyOptionMap,i))},this.component=t}validateOptions(t){d(this.component,t,{hooks:{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions}})}validateRequired(t){c(this.component,"_required",t)}validateValue(t){u(this.component,"_value",(t=>void 0!==t),new Set(["KoliBriUnknown"]),t)}validatePlaceholder(t){p(this.component,"_placeholder",t)}validateHideClearButton(t){c(this.component,"_hideClearButton",t)}componentWillLoad(){super.componentWillLoad(),this.validateOptions(this.component._options),this.validateRequired(this.component._required),this.validateValue(this.component._value),this.validatePlaceholder(this.component._placeholder),this.validateHideClearButton(this.component._hideClearButton)}}const x="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\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 * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\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 * Word spacing is required for all texts.\n */\n word-spacing: inherit;\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}\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 clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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 /*\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}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip-wc {\n display: contents;\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 box-sizing: border-box;\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 select,\n select[multiple] option,\n textarea {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\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 .input {\n background-color: white;\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:not([type=checkbox], [type=radio]),\n select:not([multiple], [size]) {\n height: 2.75em;\n }\n input:focus,\n option:focus,\n select:focus,\n textarea:focus {\n outline: 0;\n }\n .input {\n display: flex;\n align-items: center;\n }\n .input > .kol-icon {\n display: grid;\n height: var(--a11y-min-size);\n place-items: center;\n }\n .kol-input.required .input-tooltip .span-label::after {\n content: \"*\";\n }\n}\n@layer kol-component {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .single-select {\n position: relative;\n }\n .single-select.disabled, .single-select.disabled * {\n cursor: not-allowed !important;\n }\n .single-select__group {\n display: inline-flex;\n align-items: center;\n }\n .single-select__input {\n flex-grow: 1;\n }\n .single-select__button {\n height: var(--a11y-min-size);\n width: var(--a11y-min-size);\n }\n .single-select__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 .single-select__item.highlighted {\n background-color: #f0f0f0;\n }\n .single-select__listbox--cursor-hidden .single-select__item {\n cursor: none !important;\n }\n .single-select__no-results-message {\n cursor: default;\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: calc(50rem / var(--kolibri-root-font-size, 16));\n }\n}",z=x,j=class{async getValue(){return this.state._value}async kolFocus(){var t;null===(t=this.refInput)||void 0===t||t.focus()}onBlur(){var t;Array.isArray(this.state._options)&&this.state._options.length>0&&!this.state._options.some((t=>t.label===this._inputValue))&&(this._inputValue=null===(t=this.state._options.find((t=>t.value===this.state._value)))||void 0===t?void 0:t.label,this._filteredOptions=[...this.state._options]),this._isOpen=!1}clearSelection(){if(!this.state._disabled){const t="";this._focusedOptionIndex=-1,this.state._value=t,this._inputValue=t,this._filteredOptions=[...this.state._options],this.controller.onFacade.onInput(new CustomEvent("input",{bubbles:!0,detail:{name:this.state._name,value:t}}),!0,t),this.controller.onFacade.onChange(new CustomEvent("change",{bubbles:!0,detail:{name:this.state._name,value:t}}),t)}}selectOption(t){this.state._value=t.value,this._inputValue=t.label,this.controller.onFacade.onInput(new CustomEvent("input",{bubbles:!0,detail:{name:this.state._name,value:t.value}}),!1,t.value),this.controller.onFacade.onChange(new CustomEvent("change",{bubbles:!0,detail:{name:this.state._name,value:t.value}}),t.value),this._filteredOptions=[...this.state._options],this.controller.setFormAssociatedValue(this.state._value)}onInput(t){const e=t.target;this._inputValue=e.value,this._isOpen=!0,this.setFilteredOptionsByQuery(e.value),this._focusedOptionIndex=-1}handleKeyDownDropdown(t){1===t.key.length&&/[a-z0-9]/i.test(t.key)&&(t.preventDefault(),this._isOpen=!0,this.focusSuggestionStartingWith(t.key))}setFilteredOptionsByQuery(t){""===(null==t?void 0:t.trim())?this._filteredOptions=[...this.state._options]:Array.isArray(this.state._options)&&this.state._options.length>0&&t.length>0&&(this._filteredOptions=this.state._options.filter((e=>{var i,n;return null===(n=null===(i=e.label)||void 0===i?void 0:i.toLowerCase())||void 0===n?void 0:n.includes(null==t?void 0:t.toLowerCase())})))}moveFocus(t){if(!this._filteredOptions)return;let e=this._focusedOptionIndex+t;e>=this._filteredOptions.length&&(e=0),e<0&&(e=this._filteredOptions.length-1),this._focusedOptionIndex=e,this.focusOption(this._focusedOptionIndex)}focusOption(t){if(this.refOptions){const e=this.refOptions[t];null==e||e.focus()}}focusSuggestionStartingWith(t){const e=t.toLowerCase(),i=Array.isArray(this._filteredOptions)&&this._filteredOptions.findIndex((t=>t.label.toLowerCase().startsWith(e)));"number"==typeof i&&(this._focusedOptionIndex=i,this.focusOption(i))}render(){const n=k(this.state._label),{ariaDescribedBy:s}=v(this.state);return t(i,{key:"614d7f980087bb405882e2b013b03222c90acf33",class:"kol-single-select"},t("div",{key:"660826eebe22950c87d2c0f751e04a118650f750",class:`single-select ${!0===this.state._disabled?"disabled":""} `},t(f,{key:"da350721d7435ce274df54ce7151bad3c633889e",_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,role:"presentation"},t("span",{key:"3408038013691dcb2d63d0a5b7d301f16b21130c",slot:"label"},n?t("slot",{name:"expert"}):"string"==typeof this.state._accessKey||"string"==typeof this.state._shortKey?t(e,null,t(m,{badgeText:w(this.state._accessKey||this.state._shortKey),label:this.state._label})," ",t("span",{class:"access-key-hint","aria-hidden":"true"},w(this.state._accessKey||this.state._shortKey))):t("span",null,this.state._label)),t("div",{key:"2ce6b43e7ce49133720481feca9499d87755af65",slot:"input"},t("div",{key:"24fa3b80f60e293ccd57a76fb03c907a7954cb40",class:"single-select__group"},t("input",Object.assign({key:"07d9d6606cbd2096c486bcf8480f54738c40ddc5",ref:this.catchRef,class:"single-select__input",type:"text","aria-autocomplete":"both","aria-controls":"listbox",value:this._inputValue,accessKey:this.state._accessKey,"aria-describedby":s.length>0?s.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,"aria-activedescendant":this._isOpen&&this._focusedOptionIndex>=0?`option-${this._focusedOptionIndex}`:void 0,autoCapitalize:"off",autoCorrect:"off",disabled:this.state._disabled,name:this.state._name,required:this.state._required},this.controller.onFacade,{onInput:this.onInput.bind(this),onChange:this.onChange.bind(this),onClick:this.toggleListbox.bind(this),onFocus:t=>{this.controller.onFacade.onFocus(t),this.inputHasFocus=!0},onBlur:t=>{this.controller.onFacade.onBlur(t),this.inputHasFocus=!1},placeholder:this.state._placeholder})),this._inputValue&&!this.state._hideClearButton&&t(b,{key:"665a8854a2e5962c3c813c6ac61d7cd440fe6254",_icons:"codicon codicon-close",_label:y("kol-delete-selection"),onClick:()=>{var t;this.clearSelection(),null===(t=this.refInput)||void 0===t||t.focus()},class:"single-select__delete"}),t("button",{key:"ce78bafc2b82fb47e988b4cde571f246b74d292c",tabindex:"-1",class:"single-select__button",onClick:this.toggleListbox.bind(this),disabled:this.state._disabled},t(b,{key:"8dcf348ec430db455b42d4de9eb08413a7340df8",_icons:"codicon codicon-triangle-down",_label:y("kol-dropdown")}))),this._isOpen&&!(!0===this.state._disabled)&&t("ul",{key:"7c1c94fbb82ffc53015248987a088b32dd83f14f",role:"listbox",class:g("single-select__listbox",this.blockSuggestionMouseOver&&"single-select__listbox--cursor-hidden"),onKeyDown:this.handleKeyDownDropdown.bind(this)},Array.isArray(this._filteredOptions)&&this._filteredOptions.length>0?this._filteredOptions.map(((e,i)=>t("li",{id:`option-${i}`,key:`-${i}`,ref:t=>{t&&(this.refOptions[i]=t)},tabIndex:-1,role:"option","aria-selected":this.state._value===e.value?"true":void 0,onClick:t=>{var i;this.selectOption(e),null===(i=this.refInput)||void 0===i||i.focus(),this.toggleListbox(t)},onMouseOver:()=>{this.blockSuggestionMouseOver||(this._focusedOptionIndex=i,this.focusOption(i))},onFocus:()=>{this._focusedOptionIndex=i,this.focusOption(i)},class:"single-select__item",onKeyDown:t=>{var i;"Enter"!==t.key&&"NumpadEnter"!==t.key||(this.selectOption(e),null===(i=this.refInput)||void 0===i||i.focus(),this.toggleListbox(t),t.preventDefault())}},t("input",{class:"visually-hidden",type:"radio",name:"options",id:`option-radio-${i}`,value:e.value,checked:this.state._value===e.value||i===this._focusedOptionIndex}),t("label",{htmlFor:`option-radio-${i}`,class:"radio-label"},e.label)))):t("li",{class:"single-select__no-results-message"},y("kol-no-results-message")," "))))))}handleFocusOut(){setTimeout((()=>{var t;(null===(t=this.host)||void 0===t?void 0:t.contains(document.activeElement))||this.onBlur()}),0)}handleWindowBlur(){this.onBlur()}handleKeyDown(t){var e,i;const n=(e,i)=>{var n;t.preventDefault(),void 0!==e&&(this._isOpen=e,e||null===(n=this.refInput)||void 0===n||n.focus()),null==i||i()};switch(t.key){case"Down":case"ArrowDown":this.blockSuggestionMouseOver=!0,n(!0,(()=>this.moveFocus(1)));break;case"Up":case"ArrowUp":this.blockSuggestionMouseOver=!0,n(!0,(()=>this.moveFocus(-1)));break;case"Tab":this._isOpen&&(this._isOpen=!this._isOpen,null===(e=this.refInput)||void 0===e||e.focus());break;case"Esc":case"Escape":n(!1);break;case" ":this._isOpen?Array.isArray(this._filteredOptions)&&this._filteredOptions.length>0&&(this.selectOption(this._filteredOptions[this._focusedOptionIndex]),null===(i=this.refInput)||void 0===i||i.focus(),n(!1)):this.toggleListbox(t);break;case"NumpadEnter":case"Enter":this.toggleListbox(t);break;case"Home":this.blockSuggestionMouseOver=!0,n(void 0,(()=>{this._isOpen&&(this._focusedOptionIndex=0,this.focusOption(this._focusedOptionIndex))}));break;case"End":this.blockSuggestionMouseOver=!0,n(void 0,(()=>{this._isOpen&&(this._focusedOptionIndex=this._filteredOptions?this._filteredOptions.length-1:0,this.focusOption(this._focusedOptionIndex))}));break;case"PageUp":this.blockSuggestionMouseOver=!0,n(void 0,(()=>this._isOpen&&this.moveFocus(-10)));break;case"PageDown":this.blockSuggestionMouseOver=!0,n(void 0,(()=>this._isOpen&&this.moveFocus(10)))}}constructor(t){n(this,t),this.refOptions=[],this.catchRef=t=>{this.refInput=t},this.toggleListbox=t=>{var e;if(null==t||t.preventDefault(),!this.state._disabled&&(this._isOpen=!this._isOpen,this._isOpen)){null===(e=this.refInput)||void 0===e||e.focus();const t=Array.isArray(this._filteredOptions)?this._filteredOptions.findIndex((t=>t.label===this._inputValue)):-1,i=this.refOptions[t];null==i||i.scrollIntoView({block:"nearest"}),this.focusOption(this._focusedOptionIndex)}},this._focusedOptionIndex=-1,this._isOpen=!1,this._filteredOptions=[],this._inputValue="",this.blockSuggestionMouseOver=!1,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._options=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._hideClearButton=!1,this.state={_hideError:!1,_id:`id-${o()}`,_label:"",_options:[],_value:"",_hideClearButton:!1},this.inputHasFocus=!1,this.controller=new _(this,"single-select",this.host)}showAsAlert(){return void 0===this.state._alert?Boolean(this.state._touched)&&!this.inputHasFocus:this.state._alert}validatePlaceholder(t){this.controller.validatePlaceholder(t)}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAlert(t){this.controller.validateAlert(t)}validateDisabled(t){this.controller.validateDisabled(t)}validateHideError(t){this.controller.validateHideError(t)}validateHideLabel(t){this.controller.validateHideLabel(t)}validateHint(t){this.controller.validateHint(t)}validateIcons(t){this.controller.validateIcons(t)}validateId(t){this.controller.validateId(t)}validateLabel(t){this.controller.validateLabel(t)}validateMsg(t){this.controller.validateMsg(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validateOptions(t){this.controller.validateOptions(t),this._filteredOptions=t,this.updateInputValue(this._value)}validateRequired(t){this.controller.validateRequired(t)}validateShortKey(t){this.controller.validateShortKey(t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){this.controller.validateTabIndex(t)}validateTouched(t){this.controller.validateTouched(t)}validateValue(t){this.controller.validateValue(t),this.oldValue=t,this.updateInputValue(t)}validateHideClearButton(t){this.controller.validateHideClearButton(t)}handleMouseEvent(){this.blockSuggestionMouseOver=!1}updateInputValue(t){if(Array.isArray(this._options)){const e=this._options.find((e=>e.value===t));this._inputValue=e?String(e.label):""}}componentWillLoad(){this.refOptions=[],this._touched=!0===this._touched,this.controller.componentWillLoad(),this.oldValue=this._value,this._filteredOptions=this._options,this.updateInputValue(this._value)}onChange(t){var e,i,n,s;this.oldValue!==(null===(e=this.refInput)||void 0===e?void 0:e.value)&&(this.oldValue=null===(i=this.refInput)||void 0===i?void 0:i.value),a(t),l("change",this.host,this._value),"function"!=typeof(null===(n=this.state._on)||void 0===n?void 0:n.onChange)||this._isOpen||this.state._on.onChange(t,this._value&&this.oldValue!==(null===(s=this.refInput)||void 0===s?void 0:s.value))}static get delegatesFocus(){return!0}get host(){return s(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"],_options:["validateOptions"],_required:["validateRequired"],_shortKey:["validateShortKey"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"],"_hideClearButton ":["validateHideClearButton"]}}};j.style={default:z};export{j as kol_single_select};
4
+ import{h as e,F as t,H as i,r as n,g as s}from"./index-1fb6ee3e.js";import{c as o}from"./clsx-09a06a12.js";import{l as a,g as l}from"./component-names-6ca7e863.js";import{t as r}from"./i18n-5fe08f1c.js";import{n as h}from"./dev.utils-0f820a3c.js";import{s as d,t as c}from"./events-29e84d75.js";import{g as u}from"./controller-1a0e05c9.js";import{I as p}from"./InternalUnderlinedBadgeText-99e9a3e0.js";import{I as f}from"./controller-icon-f9b7e1f9.js";import{f as b,b as m}from"./controller-4a9a50f2.js";import{b as v,w as y,i as g}from"./prop.validators-64749272.js";import{s as k,b as w}from"./reuse-32931294.js";import"./i18n-7ea9f137.js";import"./dev.utils-fab45cbc.js";import"./associated.controller-5bee50ee.js";import"./access-and-short-key-e094398d.js";import"./hide-label-8c202307.js";import"./label-e8ec0e3a.js";import"./common-0f1f2276.js";import"./tooltip-align-5902aa96.js";import"./align-878fb132.js";import"./icons-c857b77d.js";import"./index-da3e0c00.js";class _ extends f{constructor(e,t,i){super(e,t,i),this.keyOptionMap=new Map,this.afterPatchOptions=(e,t,i,n)=>{"_value"===n&&this.setFormAssociatedValue(e)},this.beforePatchOptions=(e,t)=>{const i=t.has("_options")?t.get("_options"):this.component.state._options;Array.isArray(i)&&i.length>0&&(this.keyOptionMap.clear(),b(this.keyOptionMap,i))},this.component=e}validateOptions(e){m(this.component,e,{hooks:{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions}})}validateRequired(e){v(this.component,"_required",e)}validateValue(e){y(this.component,"_value",(e=>void 0!==e),new Set(["KoliBriUnknown"]),e)}validatePlaceholder(e){g(this.component,"_placeholder",e)}validateHideClearButton(e){v(this.component,"_hideClearButton",e)}componentWillLoad(){super.componentWillLoad(),this.validateOptions(this.component._options),this.validateRequired(this.component._required),this.validateValue(this.component._value),this.validatePlaceholder(this.component._placeholder),this.validateHideClearButton(this.component._hideClearButton)}}const x="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\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 * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\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 * Word spacing is required for all texts.\n */\n word-spacing: inherit;\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}\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 clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: calc(1rem / var(--kolibri-root-font-size, 16));\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: calc(1rem / var(--kolibri-root-font-size, 16));\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}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n .kol-tooltip-wc {\n display: contents;\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 box-sizing: border-box;\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 font-size: calc(16rem / var(--kolibri-root-font-size, 16));\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 overflow: hidden;\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 .single-select {\n position: relative;\n }\n .single-select.disabled, .single-select.disabled * {\n cursor: not-allowed !important;\n }\n .single-select__group {\n display: inline-flex;\n align-items: center;\n }\n .single-select__input {\n flex-grow: 1;\n }\n .single-select__button {\n height: auto;\n width: var(--a11y-min-size);\n }\n .single-select__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 .single-select__item.highlighted {\n background-color: #f0f0f0;\n }\n .single-select__listbox--cursor-hidden .single-select__item {\n cursor: none !important;\n }\n .single-select__no-results-message {\n cursor: default;\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: calc(50rem / var(--kolibri-root-font-size, 16));\n }\n}",z=x,j=class{async getValue(){return this.state._value}async kolFocus(){var e;null===(e=this.refInput)||void 0===e||e.focus()}onBlur(){var e;Array.isArray(this.state._options)&&this.state._options.length>0&&!this.state._options.some((e=>e.label===this._inputValue))&&(this._inputValue=null===(e=this.state._options.find((e=>e.value===this.state._value)))||void 0===e?void 0:e.label,this._filteredOptions=[...this.state._options]),this._isOpen=!1}clearSelection(){if(!this.state._disabled){const e="";this._focusedOptionIndex=-1,this.state._value=e,this._inputValue=e,this._filteredOptions=[...this.state._options],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)}}selectOption(e){this.state._value=e.value,this._inputValue=e.label,this.controller.onFacade.onInput(new CustomEvent("input",{bubbles:!0,detail:{name:this.state._name,value:e.value}}),!1,e.value),this.controller.onFacade.onChange(new CustomEvent("change",{bubbles:!0,detail:{name:this.state._name,value:e.value}}),e.value),this._filteredOptions=[...this.state._options],this.controller.setFormAssociatedValue(this.state._value)}onInput(e){const t=e.target;this._inputValue=t.value,this._isOpen=!0,this.setFilteredOptionsByQuery(t.value),this._focusedOptionIndex=-1}handleKeyDownDropdown(e){1===e.key.length&&/[a-z0-9]/i.test(e.key)&&(e.preventDefault(),this._isOpen=!0,this.focusSuggestionStartingWith(e.key))}setFilteredOptionsByQuery(e){""===(null==e?void 0:e.trim())?this._filteredOptions=[...this.state._options]:Array.isArray(this.state._options)&&this.state._options.length>0&&e.length>0&&(this._filteredOptions=this.state._options.filter((t=>{var i,n;return null===(n=null===(i=t.label)||void 0===i?void 0:i.toLowerCase())||void 0===n?void 0:n.includes(null==e?void 0:e.toLowerCase())})))}moveFocus(e){if(!this._filteredOptions)return;let t=this._focusedOptionIndex+e;t>=this._filteredOptions.length&&(t=0),t<0&&(t=this._filteredOptions.length-1),this._focusedOptionIndex=t,this.focusOption(this._focusedOptionIndex)}focusOption(e){if(this.refOptions){const t=this.refOptions[e];null==t||t.focus()}}focusSuggestionStartingWith(e){const t=e.toLowerCase(),i=Array.isArray(this._filteredOptions)&&this._filteredOptions.findIndex((e=>e.label.toLowerCase().startsWith(t)));"number"==typeof i&&(this._focusedOptionIndex=i,this.focusOption(i))}render(){const n=k(this.state._label),{ariaDescribedBy:s}=u(this.state);return e(i,{key:"c16b15abce522dbf9e8fe7fbe83c76e91e66c0da",class:"kol-single-select"},e("div",{key:"e885aedb21b761dfac8c13c39a93607198069024",class:`single-select ${!0===this.state._disabled?"disabled":""} `},e(a,{key:"dc8756189d7da027f63dba36b273789701dfcde5",_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,role:"presentation"},e("span",{key:"ba8a16c77bacdb484d94ba76533d496d54d9d07d",slot:"label"},n?e("slot",{name:"expert"}):"string"==typeof this.state._accessKey||"string"==typeof this.state._shortKey?e(t,null,e(p,{badgeText:w(this.state._accessKey||this.state._shortKey),label:this.state._label})," ",e("span",{class:"badge-text-hint","aria-hidden":"true"},w(this.state._accessKey||this.state._shortKey))):e("span",null,this.state._label)),e("div",{key:"68c252ea5dd083e46bb4ca5ef6de35887eb4e5fa",slot:"input"},e("div",{key:"58c09e10de6865e27fafd21f91d794afa655f901",class:"single-select__group"},e("input",Object.assign({key:"8fcfb48aa4e7a7cde5bccf55899bf8817518e19a",ref:this.catchRef,class:"single-select__input",type:"text","aria-autocomplete":"both","aria-controls":"listbox",value:this._inputValue,accessKey:this.state._accessKey,"aria-describedby":s.length>0?s.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,"aria-activedescendant":this._isOpen&&this._focusedOptionIndex>=0?`option-${this._focusedOptionIndex}`:void 0,autoCapitalize:"off",autoCorrect:"off",disabled:this.state._disabled,name:this.state._name,required:this.state._required},this.controller.onFacade,{onInput:this.onInput.bind(this),onChange:this.onChange.bind(this),onClick:this.toggleListbox.bind(this),onFocus:e=>{this.controller.onFacade.onFocus(e),this.inputHasFocus=!0},onBlur:e=>{this.controller.onFacade.onBlur(e),this.inputHasFocus=!1},placeholder:this.state._placeholder})),this._inputValue&&!this.state._hideClearButton&&e(l,{key:"fc92990d158414ae4941a06b4923c56bdc64024a",_icons:"codicon codicon-close",_label:r("kol-delete-selection"),onClick:()=>{var e;this.clearSelection(),null===(e=this.refInput)||void 0===e||e.focus()},class:"single-select__delete"}),e("button",{key:"9232df1e36900d29b415dfaf1cc6ffe6f694e968",tabindex:"-1",class:"single-select__button",onClick:this.toggleListbox.bind(this),disabled:this.state._disabled},e(l,{key:"58d589c37ed39b3c28cfb0526af00d48e5e8b407",_icons:"codicon codicon-triangle-down",_label:r("kol-dropdown")}))),this._isOpen&&!(!0===this.state._disabled)&&e("ul",{key:"6187a9e55efff714d82a90565ecf54407d1d90c8",role:"listbox",class:o("single-select__listbox",this.blockSuggestionMouseOver&&"single-select__listbox--cursor-hidden"),onKeyDown:this.handleKeyDownDropdown.bind(this)},Array.isArray(this._filteredOptions)&&this._filteredOptions.length>0?this._filteredOptions.map(((t,i)=>e("li",{id:`option-${i}`,key:`-${i}`,ref:e=>{e&&(this.refOptions[i]=e)},tabIndex:-1,role:"option","aria-selected":this.state._value===t.value?"true":void 0,onClick:e=>{var i;this.selectOption(t),null===(i=this.refInput)||void 0===i||i.focus(),this.toggleListbox(e)},onMouseOver:()=>{this.blockSuggestionMouseOver||(this._focusedOptionIndex=i,this.focusOption(i))},onFocus:()=>{this._focusedOptionIndex=i,this.focusOption(i)},class:"single-select__item",onKeyDown:e=>{var i;"Enter"!==e.key&&"NumpadEnter"!==e.key||(this.selectOption(t),null===(i=this.refInput)||void 0===i||i.focus(),this.toggleListbox(e),e.preventDefault())}},e("input",{class:"visually-hidden",type:"radio",name:"options",id:`option-radio-${i}`,value:t.value,checked:this.state._value===t.value||i===this._focusedOptionIndex}),e("label",{htmlFor:`option-radio-${i}`,class:"radio-label"},t.label)))):e("li",{class:"single-select__no-results-message"},r("kol-no-results-message")," "))))))}handleFocusOut(){setTimeout((()=>{var e;(null===(e=this.host)||void 0===e?void 0:e.contains(document.activeElement))||this.onBlur()}),0)}handleWindowBlur(){this.onBlur()}handleKeyDown(e){var t,i;const n=(t,i)=>{var n;e.preventDefault(),void 0!==t&&(this._isOpen=t,t||null===(n=this.refInput)||void 0===n||n.focus()),null==i||i()};switch(e.key){case"Down":case"ArrowDown":this.blockSuggestionMouseOver=!0,n(!0,(()=>this.moveFocus(1)));break;case"Up":case"ArrowUp":this.blockSuggestionMouseOver=!0,n(!0,(()=>this.moveFocus(-1)));break;case"Tab":this._isOpen&&(this._isOpen=!this._isOpen,null===(t=this.refInput)||void 0===t||t.focus());break;case"Esc":case"Escape":n(!1);break;case" ":this._isOpen?Array.isArray(this._filteredOptions)&&this._filteredOptions.length>0&&(this.selectOption(this._filteredOptions[this._focusedOptionIndex]),null===(i=this.refInput)||void 0===i||i.focus(),n(!1)):this.toggleListbox(e);break;case"NumpadEnter":case"Enter":this.toggleListbox(e);break;case"Home":this.blockSuggestionMouseOver=!0,n(void 0,(()=>{this._isOpen&&(this._focusedOptionIndex=0,this.focusOption(this._focusedOptionIndex))}));break;case"End":this.blockSuggestionMouseOver=!0,n(void 0,(()=>{this._isOpen&&(this._focusedOptionIndex=this._filteredOptions?this._filteredOptions.length-1:0,this.focusOption(this._focusedOptionIndex))}));break;case"PageUp":this.blockSuggestionMouseOver=!0,n(void 0,(()=>this._isOpen&&this.moveFocus(-10)));break;case"PageDown":this.blockSuggestionMouseOver=!0,n(void 0,(()=>this._isOpen&&this.moveFocus(10)))}}constructor(e){n(this,e),this.refOptions=[],this.catchRef=e=>{this.refInput=e},this.toggleListbox=e=>{var t;if(null==e||e.preventDefault(),!this.state._disabled&&(this._isOpen=!this._isOpen,this._isOpen)){null===(t=this.refInput)||void 0===t||t.focus();const e=Array.isArray(this._filteredOptions)?this._filteredOptions.findIndex((e=>e.label===this._inputValue)):-1,i=this.refOptions[e];null==i||i.scrollIntoView({block:"nearest"}),this.focusOption(this._focusedOptionIndex)}},this._focusedOptionIndex=-1,this._isOpen=!1,this._filteredOptions=[],this._inputValue="",this.blockSuggestionMouseOver=!1,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._options=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._hideClearButton=!1,this.state={_hideError:!1,_id:`id-${h()}`,_label:"",_options:[],_value:"",_hideClearButton:!1},this.inputHasFocus=!1,this.controller=new _(this,"single-select",this.host)}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)}validateOptions(e){this.controller.validateOptions(e),this._filteredOptions=e,this.updateInputValue(this._value)}validateRequired(e){this.controller.validateRequired(e)}validateShortKey(e){this.controller.validateShortKey(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.oldValue=e,this.updateInputValue(e)}validateHideClearButton(e){this.controller.validateHideClearButton(e)}handleMouseEvent(){this.blockSuggestionMouseOver=!1}updateInputValue(e){if(Array.isArray(this._options)){const t=this._options.find((t=>t.value===e));this._inputValue=t?String(t.label):""}}componentWillLoad(){this.refOptions=[],this._touched=!0===this._touched,this.controller.componentWillLoad(),this.oldValue=this._value,this._filteredOptions=this._options,this.updateInputValue(this._value)}onChange(e){var t,i,n,o;this.oldValue!==(null===(t=this.refInput)||void 0===t?void 0:t.value)&&(this.oldValue=null===(i=this.refInput)||void 0===i?void 0:i.value),d(e),c("change",this.host,this._value),"function"!=typeof(null===(n=this.state._on)||void 0===n?void 0:n.onChange)||this._isOpen||this.state._on.onChange(e,this._value&&this.oldValue!==(null===(o=this.refInput)||void 0===o?void 0:o.value))}static get delegatesFocus(){return!0}get host(){return s(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"],_options:["validateOptions"],_required:["validateRequired"],_shortKey:["validateShortKey"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"],"_hideClearButton ":["validateHideClearButton"]}}};j.style={default:z};export{j as kol_single_select};