@public-ui/components 2.0.0-rc.0 → 2.0.0-rc.2

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 (537) hide show
  1. package/custom-elements.json +34 -27
  2. package/dist/cjs/{a11y.tipps-417b66df.js → a11y.tipps-286e2184.js} +1 -1
  3. package/dist/cjs/{a11y.tipps-417b66df.js.map → a11y.tipps-286e2184.js.map} +1 -1
  4. package/dist/cjs/{align-c8de133d.js → align-38fe7d4a.js} +1 -1
  5. package/dist/cjs/{align-c8de133d.js.map → align-38fe7d4a.js.map} +1 -1
  6. package/dist/cjs/{alignment-932ba637.js → alignment-05ab4f60.js} +1 -1
  7. package/dist/cjs/{alignment-932ba637.js.map → alignment-05ab4f60.js.map} +1 -1
  8. package/dist/cjs/alternative-button-link-role-e29e79ed.js +4 -0
  9. package/dist/cjs/{alternative-button-link-role-76fc0537.js.map → alternative-button-link-role-e29e79ed.js.map} +1 -1
  10. package/dist/cjs/{app-globals-d1b411c4.js → app-globals-70ba97cd.js} +1 -1
  11. package/dist/cjs/{app-globals-d1b411c4.js.map → app-globals-70ba97cd.js.map} +1 -1
  12. package/dist/cjs/{associated.controller-0729954e.js → associated.controller-1273e17d.js} +1 -1
  13. package/dist/cjs/{associated.controller-0729954e.js.map → associated.controller-1273e17d.js.map} +1 -1
  14. package/dist/cjs/{color-71d1c910.js → color-885864c9.js} +1 -1
  15. package/dist/cjs/{color-71d1c910.js.map → color-885864c9.js.map} +1 -1
  16. package/dist/cjs/{controller-93e44df5.js → controller-6607a35d.js} +1 -1
  17. package/dist/cjs/{controller-93e44df5.js.map → controller-6607a35d.js.map} +1 -1
  18. package/dist/cjs/{controller-f4272866.js → controller-7156433c.js} +1 -1
  19. package/dist/cjs/{controller-f4272866.js.map → controller-7156433c.js.map} +1 -1
  20. package/dist/cjs/{controller-2fb82656.js → controller-95e49b07.js} +1 -1
  21. package/dist/cjs/{controller-2fb82656.js.map → controller-95e49b07.js.map} +1 -1
  22. package/dist/cjs/{controller-da2eaa2f.js → controller-f472b120.js} +1 -1
  23. package/dist/cjs/{controller-da2eaa2f.js.map → controller-f472b120.js.map} +1 -1
  24. package/dist/cjs/{controller-f05f47fe.js → controller-ff3d2189.js} +1 -1
  25. package/dist/cjs/{controller-f05f47fe.js.map → controller-ff3d2189.js.map} +1 -1
  26. package/dist/cjs/{controller-icon-3ace6f32.js → controller-icon-1add536b.js} +1 -1
  27. package/dist/cjs/{controller-icon-3ace6f32.js.map → controller-icon-1add536b.js.map} +1 -1
  28. package/dist/cjs/{custom-class-8ad48dce.js → custom-class-d0dc1465.js} +1 -1
  29. package/dist/cjs/{custom-class-8ad48dce.js.map → custom-class-d0dc1465.js.map} +1 -1
  30. package/dist/cjs/{dev.utils-1fb4135a.js → dev.utils-6caf7368.js} +1 -1
  31. package/dist/cjs/{dev.utils-1fb4135a.js.map → dev.utils-6caf7368.js.map} +1 -1
  32. package/dist/cjs/{devtools-8a3aba37.js → devtools-dd717900.js} +1 -1
  33. package/dist/cjs/{devtools-8a3aba37.js.map → devtools-dd717900.js.map} +1 -1
  34. package/dist/cjs/has-closer-309ad54b.js +4 -0
  35. package/dist/cjs/{has-closer-3f258cb1.js.map → has-closer-309ad54b.js.map} +1 -1
  36. package/dist/cjs/hide-label-37731a74.js +4 -0
  37. package/dist/cjs/{hide-label-a1359f24.js.map → hide-label-37731a74.js.map} +1 -1
  38. package/dist/cjs/i18n-d033fd25.js +4 -0
  39. package/dist/cjs/i18n-d033fd25.js.map +1 -0
  40. package/dist/cjs/{icons-ef0868ed.js → icons-8afa4b8a.js} +1 -1
  41. package/dist/cjs/{icons-ef0868ed.js.map → icons-8afa4b8a.js.map} +1 -1
  42. package/dist/cjs/image-source-299d8eab.js +4 -0
  43. package/dist/cjs/{image-source-30ac0359.js.map → image-source-299d8eab.js.map} +1 -1
  44. package/dist/cjs/index-8f2f5b90.js +4 -0
  45. package/dist/cjs/index-8f2f5b90.js.map +1 -0
  46. package/dist/cjs/index-e9e81c6a.js +5 -0
  47. package/dist/cjs/index-e9e81c6a.js.map +1 -0
  48. package/dist/cjs/index.cjs.js +1 -1
  49. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  50. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  51. package/dist/cjs/kol-alert-wc_3.cjs.entry.js +1 -1
  52. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  53. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  54. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  55. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  56. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  57. package/dist/cjs/kol-button-group-wc.cjs.entry.js +1 -1
  58. package/dist/cjs/kol-button-group.cjs.entry.js +1 -1
  59. package/dist/cjs/kol-button-link-text-switch.cjs.entry.js +1 -1
  60. package/dist/cjs/kol-button-link-text-switch.cjs.entry.js.map +1 -1
  61. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  62. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  63. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  64. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  65. package/dist/cjs/kol-details.cjs.entry.js.map +1 -1
  66. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  67. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  68. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  69. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-indented-text.cjs.entry.js +1 -1
  71. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
  73. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  74. package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
  75. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
  77. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  78. package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
  79. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  80. package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
  81. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  82. package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
  83. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  84. package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
  85. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  86. package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
  87. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  88. package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
  89. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  90. package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
  91. package/dist/cjs/kol-input.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  93. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  94. package/dist/cjs/kol-link-group.cjs.entry.js +1 -1
  95. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  96. package/dist/cjs/kol-link-wc.cjs.entry.js.map +1 -1
  97. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  98. package/dist/cjs/kol-link.cjs.entry.js.map +1 -1
  99. package/dist/cjs/kol-logo.cjs.entry.js +1 -1
  100. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  102. package/dist/cjs/kol-nav.cjs.entry.js.map +1 -1
  103. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  104. package/dist/cjs/kol-popover.cjs.entry.js +1 -1
  105. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  106. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  107. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  108. package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
  109. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  110. package/dist/cjs/kol-span-wc_2.cjs.entry.js +1 -1
  111. package/dist/cjs/kol-span.cjs.entry.js +1 -1
  112. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  113. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  114. package/dist/cjs/kol-symbol.cjs.entry.js +1 -1
  115. package/dist/cjs/kol-table.cjs.entry.js +1 -1
  116. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  117. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  118. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  119. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  120. package/dist/cjs/kol-toast.cjs.entry.js +1 -1
  121. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  122. package/dist/cjs/kolibri.cjs.js +1 -1
  123. package/dist/cjs/kolibri.cjs.js.map +1 -1
  124. package/dist/cjs/{label-f59591d3.js → label-6a66b6c1.js} +1 -1
  125. package/dist/cjs/{label-f59591d3.js.map → label-6a66b6c1.js.map} +1 -1
  126. package/dist/cjs/loader.cjs.js +1 -1
  127. package/dist/cjs/open-c63a5e3f.js +4 -0
  128. package/dist/cjs/{open-1c4dcfb7.js.map → open-c63a5e3f.js.map} +1 -1
  129. package/dist/cjs/{prop.validators-40b03d45.js → prop.validators-074b54c5.js} +1 -1
  130. package/dist/cjs/{prop.validators-40b03d45.js.map → prop.validators-074b54c5.js.map} +1 -1
  131. package/dist/cjs/rows-1e373b35.js +4 -0
  132. package/dist/cjs/{rows-49957d39.js.map → rows-1e373b35.js.map} +1 -1
  133. package/dist/cjs/show-98976820.js +4 -0
  134. package/dist/cjs/{show-2a7af4da.js.map → show-98976820.js.map} +1 -1
  135. package/dist/cjs/{suggestions-ac1779ec.js → suggestions-6959d65d.js} +1 -1
  136. package/dist/cjs/{suggestions-ac1779ec.js.map → suggestions-6959d65d.js.map} +1 -1
  137. package/dist/cjs/{tab-index-62a72b67.js → tab-index-ad2bed16.js} +1 -1
  138. package/dist/cjs/{tab-index-62a72b67.js.map → tab-index-ad2bed16.js.map} +1 -1
  139. package/dist/cjs/{tooltip-align-f7332f5b.js → tooltip-align-4f53863a.js} +1 -1
  140. package/dist/cjs/{tooltip-align-f7332f5b.js.map → tooltip-align-4f53863a.js.map} +1 -1
  141. package/dist/cjs/{validation-c48f88d5.js → validation-90762185.js} +1 -1
  142. package/dist/cjs/{validation-c48f88d5.js.map → validation-90762185.js.map} +1 -1
  143. package/dist/cjs/{validation-d8756daa.js → validation-bd015251.js} +1 -1
  144. package/dist/cjs/{validation-d8756daa.js.map → validation-bd015251.js.map} +1 -1
  145. package/dist/components/color.js +1 -1
  146. package/dist/components/component11.js +1 -1
  147. package/dist/components/component11.js.map +1 -1
  148. package/dist/components/component15.js.map +1 -1
  149. package/dist/components/component2.js +1 -1
  150. package/dist/components/component9.js.map +1 -1
  151. package/dist/components/i18n.js +1 -1
  152. package/dist/components/i18n.js.map +1 -1
  153. package/dist/components/kol-details.js +1 -1
  154. package/dist/components/kol-details.js.map +1 -1
  155. package/dist/components/kol-input-checkbox.js.map +1 -1
  156. package/dist/components/kol-input-color.js.map +1 -1
  157. package/dist/components/kol-input-date.js.map +1 -1
  158. package/dist/components/kol-input-email.js.map +1 -1
  159. package/dist/components/kol-input-file.js.map +1 -1
  160. package/dist/components/kol-input-number.js.map +1 -1
  161. package/dist/components/kol-input-password.js.map +1 -1
  162. package/dist/components/kol-input-radio.js.map +1 -1
  163. package/dist/components/kol-input-range.js.map +1 -1
  164. package/dist/components/kol-input-text.js.map +1 -1
  165. package/dist/components/kol-nav.js +1 -1
  166. package/dist/components/kol-nav.js.map +1 -1
  167. package/dist/components/kol-textarea.js.map +1 -1
  168. package/dist/components/prop.validators.js +1 -1
  169. package/dist/components/prop.validators.js.map +1 -1
  170. package/dist/components/shadow2.js.map +1 -1
  171. package/dist/esm/{a11y.tipps-7143f6fd.js → a11y.tipps-348ca42a.js} +1 -1
  172. package/dist/esm/{a11y.tipps-7143f6fd.js.map → a11y.tipps-348ca42a.js.map} +1 -1
  173. package/dist/esm/{align-be0d4128.js → align-11b69892.js} +1 -1
  174. package/dist/esm/{align-be0d4128.js.map → align-11b69892.js.map} +1 -1
  175. package/dist/esm/{alignment-480cdfba.js → alignment-1bffdb6e.js} +1 -1
  176. package/dist/esm/{alignment-480cdfba.js.map → alignment-1bffdb6e.js.map} +1 -1
  177. package/dist/esm/alternative-button-link-role-1ace1f6f.js +4 -0
  178. package/dist/esm/{alternative-button-link-role-5e1ea5eb.js.map → alternative-button-link-role-1ace1f6f.js.map} +1 -1
  179. package/dist/esm/{app-globals-7a11b8ee.js → app-globals-d408fcae.js} +1 -1
  180. package/dist/esm/{app-globals-7a11b8ee.js.map → app-globals-d408fcae.js.map} +1 -1
  181. package/dist/esm/{associated.controller-d70c8be1.js → associated.controller-a395cef5.js} +1 -1
  182. package/dist/esm/{associated.controller-d70c8be1.js.map → associated.controller-a395cef5.js.map} +1 -1
  183. package/dist/esm/{color-048551d8.js → color-a3271610.js} +1 -1
  184. package/dist/esm/{color-048551d8.js.map → color-a3271610.js.map} +1 -1
  185. package/dist/esm/{controller-757cd887.js → controller-2743a0d8.js} +1 -1
  186. package/dist/esm/{controller-757cd887.js.map → controller-2743a0d8.js.map} +1 -1
  187. package/dist/esm/{controller-8bf7eac9.js → controller-417ec2ab.js} +1 -1
  188. package/dist/esm/{controller-8bf7eac9.js.map → controller-417ec2ab.js.map} +1 -1
  189. package/dist/esm/{controller-313148a2.js → controller-46e6bd0b.js} +1 -1
  190. package/dist/esm/{controller-313148a2.js.map → controller-46e6bd0b.js.map} +1 -1
  191. package/dist/esm/{controller-f1d4f4d4.js → controller-64f30149.js} +1 -1
  192. package/dist/esm/{controller-f1d4f4d4.js.map → controller-64f30149.js.map} +1 -1
  193. package/dist/esm/{controller-d5d0c61a.js → controller-a1e48719.js} +1 -1
  194. package/dist/esm/{controller-d5d0c61a.js.map → controller-a1e48719.js.map} +1 -1
  195. package/dist/esm/{controller-icon-d4a91832.js → controller-icon-c621ff81.js} +1 -1
  196. package/dist/esm/{controller-icon-d4a91832.js.map → controller-icon-c621ff81.js.map} +1 -1
  197. package/dist/esm/{custom-class-6b0cb37f.js → custom-class-87071d99.js} +1 -1
  198. package/dist/esm/{custom-class-6b0cb37f.js.map → custom-class-87071d99.js.map} +1 -1
  199. package/dist/esm/{dev.utils-b5b1c70d.js → dev.utils-9b878520.js} +1 -1
  200. package/dist/esm/{dev.utils-b5b1c70d.js.map → dev.utils-9b878520.js.map} +1 -1
  201. package/dist/esm/{devtools-188764ec.js → devtools-fa2d0662.js} +1 -1
  202. package/dist/esm/{devtools-188764ec.js.map → devtools-fa2d0662.js.map} +1 -1
  203. package/dist/esm/{has-closer-20ad2566.js → has-closer-f3547f42.js} +1 -1
  204. package/dist/esm/{has-closer-20ad2566.js.map → has-closer-f3547f42.js.map} +1 -1
  205. package/dist/esm/{hide-label-27292184.js → hide-label-ff12ad0b.js} +1 -1
  206. package/dist/esm/{hide-label-27292184.js.map → hide-label-ff12ad0b.js.map} +1 -1
  207. package/dist/esm/i18n-9c7e636f.js +4 -0
  208. package/dist/esm/i18n-9c7e636f.js.map +1 -0
  209. package/dist/esm/{icons-b6a6d907.js → icons-da3b61ae.js} +1 -1
  210. package/dist/esm/{icons-b6a6d907.js.map → icons-da3b61ae.js.map} +1 -1
  211. package/dist/esm/{image-source-fa985240.js → image-source-5494399d.js} +1 -1
  212. package/dist/esm/{image-source-fa985240.js.map → image-source-5494399d.js.map} +1 -1
  213. package/dist/{cjs/index-55ab202d.js → esm/index-5d267931.js} +1 -1
  214. package/dist/esm/index-5d267931.js.map +1 -0
  215. package/dist/esm/index-d0c806ea.js +5 -0
  216. package/dist/esm/index-d0c806ea.js.map +1 -0
  217. package/dist/esm/index.js +1 -1
  218. package/dist/esm/kol-abbr.entry.js +1 -1
  219. package/dist/esm/kol-accordion.entry.js +1 -1
  220. package/dist/esm/kol-alert-wc_3.entry.js +1 -1
  221. package/dist/esm/kol-alert.entry.js +1 -1
  222. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  223. package/dist/esm/kol-avatar.entry.js +1 -1
  224. package/dist/esm/kol-badge.entry.js +1 -1
  225. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  226. package/dist/esm/kol-button-group-wc.entry.js +1 -1
  227. package/dist/esm/kol-button-group.entry.js +1 -1
  228. package/dist/esm/kol-button-link-text-switch.entry.js +1 -1
  229. package/dist/esm/kol-button-link-text-switch.entry.js.map +1 -1
  230. package/dist/esm/kol-button-link.entry.js +1 -1
  231. package/dist/esm/kol-button.entry.js +1 -1
  232. package/dist/esm/kol-card.entry.js +1 -1
  233. package/dist/esm/kol-details.entry.js +1 -1
  234. package/dist/esm/kol-details.entry.js.map +1 -1
  235. package/dist/esm/kol-form.entry.js +1 -1
  236. package/dist/esm/kol-heading.entry.js +1 -1
  237. package/dist/esm/kol-icon.entry.js +1 -1
  238. package/dist/esm/kol-image.entry.js +1 -1
  239. package/dist/esm/kol-indented-text.entry.js +1 -1
  240. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  241. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  242. package/dist/esm/kol-input-color.entry.js +1 -1
  243. package/dist/esm/kol-input-color.entry.js.map +1 -1
  244. package/dist/esm/kol-input-date.entry.js +1 -1
  245. package/dist/esm/kol-input-date.entry.js.map +1 -1
  246. package/dist/esm/kol-input-email.entry.js +1 -1
  247. package/dist/esm/kol-input-email.entry.js.map +1 -1
  248. package/dist/esm/kol-input-file.entry.js +1 -1
  249. package/dist/esm/kol-input-file.entry.js.map +1 -1
  250. package/dist/esm/kol-input-number.entry.js +1 -1
  251. package/dist/esm/kol-input-number.entry.js.map +1 -1
  252. package/dist/esm/kol-input-password.entry.js +1 -1
  253. package/dist/esm/kol-input-password.entry.js.map +1 -1
  254. package/dist/esm/kol-input-radio.entry.js +1 -1
  255. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  256. package/dist/esm/kol-input-range.entry.js +1 -1
  257. package/dist/esm/kol-input-range.entry.js.map +1 -1
  258. package/dist/esm/kol-input-text.entry.js +1 -1
  259. package/dist/esm/kol-input-text.entry.js.map +1 -1
  260. package/dist/esm/kol-input.entry.js +1 -1
  261. package/dist/esm/kol-kolibri.entry.js +1 -1
  262. package/dist/esm/kol-link-button.entry.js +1 -1
  263. package/dist/esm/kol-link-group.entry.js +1 -1
  264. package/dist/esm/kol-link-wc.entry.js +1 -1
  265. package/dist/esm/kol-link-wc.entry.js.map +1 -1
  266. package/dist/esm/kol-link.entry.js +1 -1
  267. package/dist/esm/kol-link.entry.js.map +1 -1
  268. package/dist/esm/kol-logo.entry.js +1 -1
  269. package/dist/esm/kol-modal.entry.js +1 -1
  270. package/dist/esm/kol-nav.entry.js +1 -1
  271. package/dist/esm/kol-nav.entry.js.map +1 -1
  272. package/dist/esm/kol-pagination.entry.js +1 -1
  273. package/dist/esm/kol-popover.entry.js +1 -1
  274. package/dist/esm/kol-progress.entry.js +1 -1
  275. package/dist/esm/kol-quote.entry.js +1 -1
  276. package/dist/esm/kol-select.entry.js +1 -1
  277. package/dist/esm/kol-select.entry.js.map +1 -1
  278. package/dist/esm/kol-skip-nav.entry.js +1 -1
  279. package/dist/esm/kol-span-wc_2.entry.js +1 -1
  280. package/dist/esm/kol-span.entry.js +1 -1
  281. package/dist/esm/kol-spin.entry.js +1 -1
  282. package/dist/esm/kol-split-button.entry.js +1 -1
  283. package/dist/esm/kol-symbol.entry.js +1 -1
  284. package/dist/esm/kol-table.entry.js +1 -1
  285. package/dist/esm/kol-tabs.entry.js +1 -1
  286. package/dist/esm/kol-textarea.entry.js +1 -1
  287. package/dist/esm/kol-textarea.entry.js.map +1 -1
  288. package/dist/esm/kol-toast-container.entry.js +1 -1
  289. package/dist/esm/kol-toast.entry.js +1 -1
  290. package/dist/esm/kol-version.entry.js +1 -1
  291. package/dist/esm/kolibri.js +1 -1
  292. package/dist/esm/kolibri.js.map +1 -1
  293. package/dist/esm/{label-84d4c0b2.js → label-c130b72e.js} +1 -1
  294. package/dist/esm/{label-84d4c0b2.js.map → label-c130b72e.js.map} +1 -1
  295. package/dist/esm/loader.js +1 -1
  296. package/dist/esm/{open-978d23f7.js → open-fac63e17.js} +1 -1
  297. package/dist/esm/{open-978d23f7.js.map → open-fac63e17.js.map} +1 -1
  298. package/dist/esm/{prop.validators-fa5eb5c5.js → prop.validators-e40c3380.js} +1 -1
  299. package/dist/esm/{prop.validators-fa5eb5c5.js.map → prop.validators-e40c3380.js.map} +1 -1
  300. package/dist/esm/{rows-9e354f5e.js → rows-f8671a72.js} +1 -1
  301. package/dist/esm/{rows-9e354f5e.js.map → rows-f8671a72.js.map} +1 -1
  302. package/dist/esm/{show-eeff7c91.js → show-40a56e1f.js} +1 -1
  303. package/dist/esm/{show-eeff7c91.js.map → show-40a56e1f.js.map} +1 -1
  304. package/dist/esm/{suggestions-7c5183fe.js → suggestions-871adfaf.js} +1 -1
  305. package/dist/esm/{suggestions-7c5183fe.js.map → suggestions-871adfaf.js.map} +1 -1
  306. package/dist/esm/{tab-index-3ce2c695.js → tab-index-9c6b6a46.js} +1 -1
  307. package/dist/esm/{tab-index-3ce2c695.js.map → tab-index-9c6b6a46.js.map} +1 -1
  308. package/dist/esm/{tooltip-align-0d2f0b3d.js → tooltip-align-88b82267.js} +1 -1
  309. package/dist/esm/{tooltip-align-0d2f0b3d.js.map → tooltip-align-88b82267.js.map} +1 -1
  310. package/dist/esm/{validation-a54b3e91.js → validation-36d55135.js} +1 -1
  311. package/dist/esm/{validation-a54b3e91.js.map → validation-36d55135.js.map} +1 -1
  312. package/dist/esm/validation-3a52d0f0.js +4 -0
  313. package/dist/esm/{validation-97376ad0.js.map → validation-3a52d0f0.js.map} +1 -1
  314. package/dist/kolibri/{a11y.tipps-7143f6fd.js → a11y.tipps-348ca42a.js} +1 -1
  315. package/dist/kolibri/align-11b69892.js +4 -0
  316. package/dist/kolibri/alignment-1bffdb6e.js +4 -0
  317. package/dist/kolibri/alternative-button-link-role-1ace1f6f.js +4 -0
  318. package/dist/kolibri/app-globals-d408fcae.js +4 -0
  319. package/dist/kolibri/{associated.controller-d70c8be1.js → associated.controller-a395cef5.js} +1 -1
  320. package/dist/kolibri/{color-048551d8.js → color-a3271610.js} +1 -1
  321. package/dist/kolibri/{controller-757cd887.js → controller-2743a0d8.js} +1 -1
  322. package/dist/kolibri/{controller-8bf7eac9.js → controller-417ec2ab.js} +1 -1
  323. package/dist/kolibri/{controller-313148a2.js → controller-46e6bd0b.js} +1 -1
  324. package/dist/kolibri/{controller-f1d4f4d4.js → controller-64f30149.js} +1 -1
  325. package/dist/kolibri/{controller-d5d0c61a.js → controller-a1e48719.js} +1 -1
  326. package/dist/kolibri/controller-icon-c621ff81.js +4 -0
  327. package/dist/kolibri/{custom-class-6b0cb37f.js → custom-class-87071d99.js} +1 -1
  328. package/dist/kolibri/{dev.utils-b5b1c70d.js → dev.utils-9b878520.js} +1 -1
  329. package/dist/kolibri/{dev.utils-b5b1c70d.js.map → dev.utils-9b878520.js.map} +1 -1
  330. package/dist/kolibri/{devtools-188764ec.js → devtools-fa2d0662.js} +1 -1
  331. package/dist/kolibri/has-closer-f3547f42.js +4 -0
  332. package/dist/kolibri/{has-closer-20ad2566.js.map → has-closer-f3547f42.js.map} +1 -1
  333. package/dist/kolibri/hide-label-ff12ad0b.js +4 -0
  334. package/dist/kolibri/i18n-9c7e636f.js +4 -0
  335. package/dist/kolibri/i18n-9c7e636f.js.map +1 -0
  336. package/dist/kolibri/{icons-b6a6d907.js → icons-da3b61ae.js} +1 -1
  337. package/dist/kolibri/image-source-5494399d.js +4 -0
  338. package/dist/kolibri/index-5d267931.js +4 -0
  339. package/dist/kolibri/index-5d267931.js.map +1 -0
  340. package/dist/kolibri/index-d0c806ea.js +5 -0
  341. package/dist/kolibri/index-d0c806ea.js.map +1 -0
  342. package/dist/kolibri/index.esm.js +1 -1
  343. package/dist/kolibri/kol-abbr.entry.js +1 -1
  344. package/dist/kolibri/kol-abbr.entry.js.map +1 -1
  345. package/dist/kolibri/kol-accordion.entry.js +1 -1
  346. package/dist/kolibri/kol-alert-wc_3.entry.js +1 -1
  347. package/dist/kolibri/kol-alert.entry.js +1 -1
  348. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  349. package/dist/kolibri/kol-avatar.entry.js +1 -1
  350. package/dist/kolibri/kol-badge.entry.js +1 -1
  351. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  352. package/dist/kolibri/kol-button-group-wc.entry.js +1 -1
  353. package/dist/kolibri/kol-button-group.entry.js +1 -1
  354. package/dist/kolibri/kol-button-link-text-switch.entry.js +1 -1
  355. package/dist/kolibri/kol-button-link-text-switch.entry.js.map +1 -1
  356. package/dist/kolibri/kol-button-link.entry.js +1 -1
  357. package/dist/kolibri/kol-button.entry.js +1 -1
  358. package/dist/kolibri/kol-card.entry.js +1 -1
  359. package/dist/kolibri/kol-details.entry.js +1 -1
  360. package/dist/kolibri/kol-details.entry.js.map +1 -1
  361. package/dist/kolibri/kol-form.entry.js +1 -1
  362. package/dist/kolibri/kol-heading.entry.js +1 -1
  363. package/dist/kolibri/kol-icon.entry.js +1 -1
  364. package/dist/kolibri/kol-image.entry.js +1 -1
  365. package/dist/kolibri/kol-indented-text.entry.js +1 -1
  366. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  367. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  368. package/dist/kolibri/kol-input-color.entry.js +1 -1
  369. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  370. package/dist/kolibri/kol-input-date.entry.js +1 -1
  371. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  372. package/dist/kolibri/kol-input-email.entry.js +1 -1
  373. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  374. package/dist/kolibri/kol-input-file.entry.js +1 -1
  375. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  376. package/dist/kolibri/kol-input-number.entry.js +1 -1
  377. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  378. package/dist/kolibri/kol-input-password.entry.js +1 -1
  379. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  380. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  381. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  382. package/dist/kolibri/kol-input-range.entry.js +1 -1
  383. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  384. package/dist/kolibri/kol-input-text.entry.js +1 -1
  385. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  386. package/dist/kolibri/kol-input.entry.js +1 -1
  387. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  388. package/dist/kolibri/kol-link-button.entry.js +1 -1
  389. package/dist/kolibri/kol-link-group.entry.js +1 -1
  390. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  391. package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
  392. package/dist/kolibri/kol-link.entry.js +1 -1
  393. package/dist/kolibri/kol-link.entry.js.map +1 -1
  394. package/dist/kolibri/kol-logo.entry.js +1 -1
  395. package/dist/kolibri/kol-modal.entry.js +1 -1
  396. package/dist/kolibri/kol-nav.entry.js +1 -1
  397. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  398. package/dist/kolibri/kol-pagination.entry.js +1 -1
  399. package/dist/kolibri/kol-popover.entry.js +1 -1
  400. package/dist/kolibri/kol-progress.entry.js +1 -1
  401. package/dist/kolibri/kol-quote.entry.js +1 -1
  402. package/dist/kolibri/kol-select.entry.js +1 -1
  403. package/dist/kolibri/kol-select.entry.js.map +1 -1
  404. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  405. package/dist/kolibri/kol-span-wc_2.entry.js +1 -1
  406. package/dist/kolibri/kol-span.entry.js +1 -1
  407. package/dist/kolibri/kol-spin.entry.js +1 -1
  408. package/dist/kolibri/kol-split-button.entry.js +1 -1
  409. package/dist/kolibri/kol-symbol.entry.js +1 -1
  410. package/dist/kolibri/kol-table.entry.js +1 -1
  411. package/dist/kolibri/kol-tabs.entry.js +1 -1
  412. package/dist/kolibri/kol-textarea.entry.js +1 -1
  413. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  414. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  415. package/dist/kolibri/kol-toast.entry.js +1 -1
  416. package/dist/kolibri/kol-version.entry.js +1 -1
  417. package/dist/kolibri/kolibri.esm.js +1 -1
  418. package/dist/kolibri/kolibri.esm.js.map +1 -1
  419. package/dist/kolibri/{label-84d4c0b2.js → label-c130b72e.js} +1 -1
  420. package/dist/kolibri/open-fac63e17.js +4 -0
  421. package/dist/kolibri/{prop.validators-fa5eb5c5.js → prop.validators-e40c3380.js} +1 -1
  422. package/dist/kolibri/rows-f8671a72.js +4 -0
  423. package/dist/kolibri/show-40a56e1f.js +4 -0
  424. package/dist/kolibri/{suggestions-7c5183fe.js → suggestions-871adfaf.js} +1 -1
  425. package/dist/kolibri/tab-index-9c6b6a46.js +4 -0
  426. package/dist/kolibri/{tab-index-3ce2c695.js.map → tab-index-9c6b6a46.js.map} +1 -1
  427. package/dist/kolibri/tooltip-align-88b82267.js +4 -0
  428. package/dist/kolibri/validation-36d55135.js +4 -0
  429. package/dist/kolibri/validation-3a52d0f0.js +4 -0
  430. package/dist/types/components/input-checkbox/component.d.ts +1 -1
  431. package/dist/types/components/input-color/component.d.ts +1 -1
  432. package/dist/types/components/input-date/component.d.ts +1 -1
  433. package/dist/types/components/input-email/component.d.ts +1 -1
  434. package/dist/types/components/input-file/component.d.ts +1 -1
  435. package/dist/types/components/input-number/component.d.ts +1 -1
  436. package/dist/types/components/input-password/component.d.ts +1 -1
  437. package/dist/types/components/input-radio/component.d.ts +1 -1
  438. package/dist/types/components/input-range/component.d.ts +1 -1
  439. package/dist/types/components/input-text/component.d.ts +1 -1
  440. package/dist/types/components/link/component.d.ts +1 -1
  441. package/dist/types/components/link/shadow.d.ts +1 -1
  442. package/dist/types/components/link/types.d.ts +2 -2
  443. package/dist/types/components/nav/component.d.ts +2 -0
  444. package/dist/types/components/nav/types.d.ts +3 -2
  445. package/dist/types/components/select/component.d.ts +1 -1
  446. package/dist/types/components/textarea/component.d.ts +1 -1
  447. package/dist/types/components.d.ts +36 -28
  448. package/dist/types/i18n.d.ts +1 -1
  449. package/dist/types/locales/de.d.ts +2 -0
  450. package/dist/types/locales/en.d.ts +2 -0
  451. package/dist/types/stencil-public-runtime.d.ts +19 -0
  452. package/dist/types/types/props/has-compact-button.d.ts +7 -0
  453. package/doc/button.md +2 -0
  454. package/doc/input-checkbox.md +22 -22
  455. package/doc/input-color.md +21 -21
  456. package/doc/input-date.md +27 -27
  457. package/doc/input-email.md +29 -29
  458. package/doc/input-file.md +22 -22
  459. package/doc/input-number.md +27 -27
  460. package/doc/input-password.md +26 -26
  461. package/doc/input-radio.md +20 -20
  462. package/doc/input-range.md +23 -23
  463. package/doc/input-text.md +28 -28
  464. package/doc/link.md +14 -14
  465. package/doc/nav.md +4 -0
  466. package/doc/select.md +22 -22
  467. package/doc/textarea.md +25 -25
  468. package/package.json +1 -1
  469. package/vscode-custom-data.json +4 -0
  470. package/dist/cjs/alternative-button-link-role-76fc0537.js +0 -4
  471. package/dist/cjs/has-closer-3f258cb1.js +0 -4
  472. package/dist/cjs/hide-label-a1359f24.js +0 -4
  473. package/dist/cjs/i18n-8316536d.js +0 -4
  474. package/dist/cjs/i18n-8316536d.js.map +0 -1
  475. package/dist/cjs/image-source-30ac0359.js +0 -4
  476. package/dist/cjs/index-2feae351.js +0 -5
  477. package/dist/cjs/index-2feae351.js.map +0 -1
  478. package/dist/cjs/index-55ab202d.js.map +0 -1
  479. package/dist/cjs/open-1c4dcfb7.js +0 -4
  480. package/dist/cjs/rows-49957d39.js +0 -4
  481. package/dist/cjs/show-2a7af4da.js +0 -4
  482. package/dist/esm/alternative-button-link-role-5e1ea5eb.js +0 -4
  483. package/dist/esm/i18n-94ea09e2.js +0 -4
  484. package/dist/esm/i18n-94ea09e2.js.map +0 -1
  485. package/dist/esm/index-536799d5.js +0 -5
  486. package/dist/esm/index-536799d5.js.map +0 -1
  487. package/dist/esm/index-93da6c3d.js +0 -4
  488. package/dist/esm/index-93da6c3d.js.map +0 -1
  489. package/dist/esm/validation-97376ad0.js +0 -4
  490. package/dist/kolibri/align-be0d4128.js +0 -4
  491. package/dist/kolibri/alignment-480cdfba.js +0 -4
  492. package/dist/kolibri/alternative-button-link-role-5e1ea5eb.js +0 -4
  493. package/dist/kolibri/app-globals-7a11b8ee.js +0 -4
  494. package/dist/kolibri/controller-icon-d4a91832.js +0 -4
  495. package/dist/kolibri/has-closer-20ad2566.js +0 -4
  496. package/dist/kolibri/hide-label-27292184.js +0 -4
  497. package/dist/kolibri/i18n-94ea09e2.js +0 -4
  498. package/dist/kolibri/i18n-94ea09e2.js.map +0 -1
  499. package/dist/kolibri/image-source-fa985240.js +0 -4
  500. package/dist/kolibri/index-536799d5.js +0 -5
  501. package/dist/kolibri/index-536799d5.js.map +0 -1
  502. package/dist/kolibri/index-93da6c3d.js +0 -4
  503. package/dist/kolibri/index-93da6c3d.js.map +0 -1
  504. package/dist/kolibri/open-978d23f7.js +0 -4
  505. package/dist/kolibri/rows-9e354f5e.js +0 -4
  506. package/dist/kolibri/show-eeff7c91.js +0 -4
  507. package/dist/kolibri/tab-index-3ce2c695.js +0 -4
  508. package/dist/kolibri/tooltip-align-0d2f0b3d.js +0 -4
  509. package/dist/kolibri/validation-97376ad0.js +0 -4
  510. package/dist/kolibri/validation-a54b3e91.js +0 -4
  511. /package/dist/kolibri/{a11y.tipps-7143f6fd.js.map → a11y.tipps-348ca42a.js.map} +0 -0
  512. /package/dist/kolibri/{align-be0d4128.js.map → align-11b69892.js.map} +0 -0
  513. /package/dist/kolibri/{alignment-480cdfba.js.map → alignment-1bffdb6e.js.map} +0 -0
  514. /package/dist/kolibri/{alternative-button-link-role-5e1ea5eb.js.map → alternative-button-link-role-1ace1f6f.js.map} +0 -0
  515. /package/dist/kolibri/{app-globals-7a11b8ee.js.map → app-globals-d408fcae.js.map} +0 -0
  516. /package/dist/kolibri/{associated.controller-d70c8be1.js.map → associated.controller-a395cef5.js.map} +0 -0
  517. /package/dist/kolibri/{color-048551d8.js.map → color-a3271610.js.map} +0 -0
  518. /package/dist/kolibri/{controller-757cd887.js.map → controller-2743a0d8.js.map} +0 -0
  519. /package/dist/kolibri/{controller-8bf7eac9.js.map → controller-417ec2ab.js.map} +0 -0
  520. /package/dist/kolibri/{controller-313148a2.js.map → controller-46e6bd0b.js.map} +0 -0
  521. /package/dist/kolibri/{controller-f1d4f4d4.js.map → controller-64f30149.js.map} +0 -0
  522. /package/dist/kolibri/{controller-d5d0c61a.js.map → controller-a1e48719.js.map} +0 -0
  523. /package/dist/kolibri/{controller-icon-d4a91832.js.map → controller-icon-c621ff81.js.map} +0 -0
  524. /package/dist/kolibri/{custom-class-6b0cb37f.js.map → custom-class-87071d99.js.map} +0 -0
  525. /package/dist/kolibri/{devtools-188764ec.js.map → devtools-fa2d0662.js.map} +0 -0
  526. /package/dist/kolibri/{hide-label-27292184.js.map → hide-label-ff12ad0b.js.map} +0 -0
  527. /package/dist/kolibri/{icons-b6a6d907.js.map → icons-da3b61ae.js.map} +0 -0
  528. /package/dist/kolibri/{image-source-fa985240.js.map → image-source-5494399d.js.map} +0 -0
  529. /package/dist/kolibri/{label-84d4c0b2.js.map → label-c130b72e.js.map} +0 -0
  530. /package/dist/kolibri/{open-978d23f7.js.map → open-fac63e17.js.map} +0 -0
  531. /package/dist/kolibri/{prop.validators-fa5eb5c5.js.map → prop.validators-e40c3380.js.map} +0 -0
  532. /package/dist/kolibri/{rows-9e354f5e.js.map → rows-f8671a72.js.map} +0 -0
  533. /package/dist/kolibri/{show-eeff7c91.js.map → show-40a56e1f.js.map} +0 -0
  534. /package/dist/kolibri/{suggestions-7c5183fe.js.map → suggestions-871adfaf.js.map} +0 -0
  535. /package/dist/kolibri/{tooltip-align-0d2f0b3d.js.map → tooltip-align-88b82267.js.map} +0 -0
  536. /package/dist/kolibri/{validation-a54b3e91.js.map → validation-36d55135.js.map} +0 -0
  537. /package/dist/kolibri/{validation-97376ad0.js.map → validation-3a52d0f0.js.map} +0 -0
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as registerInstance,h,H as Host}from"./index-536799d5.js";import{v as validateLabel}from"./label-84d4c0b2.js";import{e as watchNumber,d as watchString,w as watchValidator}from"./prop.validators-fa5eb5c5.js";import"./a11y.tipps-7143f6fd.js";import"./dev.utils-b5b1c70d.js";import"./reuse-b3566e4c.js";var KoliBriProgressVariantEnum;!function(t){t.bar="bar",t.cycle="cycle",t["cycle-value-label"]="cycle-value-label",t["cycle-label-value"]="cycle-label-value"}(KoliBriProgressVariantEnum||(KoliBriProgressVariantEnum={}));const defaultStyleCss=":host{--a11y-min-size:44px;font-size:inherit}*{font-family:Verdana;hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role='button'],button:not([role='link']),kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}:host{max-width:100%}*{box-sizing:border-box}kol-span-wc{display:grid;place-items:center}kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}button,input,option,select,textarea{font-family:inherit}.icon-only>kol-span-wc>span>span{display:none}progress{display:block;height:0;overflow:hidden;width:0}.bar .border{fill:transparent;stroke:black}.bar .background{fill:lightgray;stroke:white}.bar .progress{fill:#0075ff;stroke:transparent;transition:250ms ease-in-out 50ms}.cycle .background{fill:transparent;stroke:lightgray}.cycle .border{fill:transparent;stroke:black}.cycle .whitespace{fill:transparent;stroke:white}.cycle .progress{fill:transparent;stroke:#0075ff;transform-origin:50% 50%;transform:rotate(-90deg);transition:250ms ease-in-out 50ms}@media (prefers-reduced-motion){.progress{transition-duration:0s;transition-delay:0s}}",VALID_VARIANTS=Object.keys(KoliBriProgressVariantEnum),createProgressSVG=t=>{let e="43%",r=t._label?"57%":"50%";switch(t._variant){case"cycle-value-label":t._label&&(e="57%",r="43%");case"cycle":case"cycle-label-value":return h("svg",{class:"cycle",width:"100",viewBox:"0 0 120 120",xmlns:"http://www.w3.org/2000/svg"},h("circle",{class:"background",cx:"60",cy:"60",r:"54.5",fill:"currentColor",stroke:"currentColor","stroke-width":"8"}),h("circle",{class:"whitespace",cx:"60",cy:"60",r:"59",fill:"currentColor",stroke:"currentColor","stroke-width":"3"}),h("circle",{class:"border",cx:"60",cy:"60",r:"59",fill:"currentColor",stroke:"currentColor","stroke-width":"1"}),h("circle",{class:"whitespace",cx:"60",cy:"60",r:"51",fill:"currentColor",stroke:"currentColor","stroke-width":"1"}),h("circle",{class:"border",cx:"60",cy:"60",r:"50",fill:"currentColor",stroke:"currentColor","stroke-width":"1"}),h("circle",{class:"progress",fill:"currentColor",stroke:"currentColor","stroke-linecap":"round","stroke-dasharray":`${Math.round(t._value/t._max*342)}px 342px`,"stroke-width":"6",cx:"60",cy:"60",r:"54.5"}),t._label&&h("text",{"aria-hidden":"true",x:"50%",y:e,"text-anchor":"middle",fill:"currentColor"},t._label),h("text",{"aria-hidden":"true",x:"50%",y:r,"text-anchor":"middle",fill:"currentColor"},t._value,t._unit));default:return h("div",{class:"bar"},t._label&&h("div",null,t._label),h("div",{style:{display:"flex",gap:"0.3em"}},h("svg",{width:"100",viewBox:"0 0 102 8",xmlns:"http://www.w3.org/2000/svg"},h("rect",{class:"background",x:"1",y:"1",height:"10",rx:"5",fill:"currentColor",stroke:"currentColor","stroke-width":"3",width:"100"}),h("rect",{class:"progress",x:"2.5",y:"2.5",height:"7",rx:"3.5",fill:"currentColor",stroke:"currentColor","stroke-width":"3",width:t._value/t._max*95}),h("rect",{class:"border",x:"1",y:"1",height:"10",rx:"5",fill:"currentColor",stroke:"currentColor","stroke-width":"1",width:"100"})),h("text",{"aria-hidden":"true","text-anchor":"middle","dominant-baseline":"central",fill:"currentColor"},t._value,t._unit)))}},KolProcess=class{constructor(t){registerInstance(this,t),this._label=void 0,this._max=void 0,this._unit="%",this._value=void 0,this._variant=void 0,this.state={_max:100,_unit:"%",_value:0,_variant:"bar",_liveValue:0}}render(){return h(Host,null,createProgressSVG(this.state),h("progress",{"aria-busy":this.state._value<this.state._max?"true":"false",max:this.state._max,value:this.state._value}),h("span",{"aria-live":"polite","aria-relevant":"removals text",hidden:!0},this.state._liveValue," von ",this.state._max," ",this.state._unit))}validateLabel(t){validateLabel(this,t)}validateMax(t){"number"!=typeof t&&(t=100),watchNumber(this,"_max",t,{required:!0})}validateUnit(t){watchString(this,"_unit",t)}validateValue(t){"number"!=typeof t&&(t=0),watchNumber(this,"_value",t,{required:!0})}validateVariant(t){watchValidator(this,"_variant",(t=>"string"==typeof t&&VALID_VARIANTS.includes(t)),new Set(VALID_VARIANTS),t)}componentWillLoad(){this.validateLabel(this._label),this.validateMax(this._max),this.validateUnit(this._unit),this.validateValue(this._value),this.validateVariant(this._variant),this.interval=setInterval((()=>{this.state._liveValue!==this.state._value&&(this.state=Object.assign(Object.assign({},this.state),{_liveValue:this.state._value}))}),5e3)}disconnectedCallback(){clearInterval(this.interval)}static get watchers(){return{_label:["validateLabel"],_max:["validateMax"],_unit:["validateUnit"],_value:["validateValue"],_variant:["validateVariant"]}}};KolProcess.style={default:defaultStyleCss};export{KolProcess as kol_progress};
4
+ import{r as registerInstance,h,H as Host}from"./index-d0c806ea.js";import{v as validateLabel}from"./label-c130b72e.js";import{e as watchNumber,d as watchString,w as watchValidator}from"./prop.validators-e40c3380.js";import"./a11y.tipps-348ca42a.js";import"./dev.utils-9b878520.js";import"./reuse-b3566e4c.js";var KoliBriProgressVariantEnum;!function(t){t.bar="bar",t.cycle="cycle",t["cycle-value-label"]="cycle-value-label",t["cycle-label-value"]="cycle-label-value"}(KoliBriProgressVariantEnum||(KoliBriProgressVariantEnum={}));const defaultStyleCss=":host{--a11y-min-size:44px;font-size:inherit}*{font-family:Verdana;hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role='button'],button:not([role='link']),kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}:host{max-width:100%}*{box-sizing:border-box}kol-span-wc{display:grid;place-items:center}kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}button,input,option,select,textarea{font-family:inherit}.icon-only>kol-span-wc>span>span{display:none}progress{display:block;height:0;overflow:hidden;width:0}.bar .border{fill:transparent;stroke:black}.bar .background{fill:lightgray;stroke:white}.bar .progress{fill:#0075ff;stroke:transparent;transition:250ms ease-in-out 50ms}.cycle .background{fill:transparent;stroke:lightgray}.cycle .border{fill:transparent;stroke:black}.cycle .whitespace{fill:transparent;stroke:white}.cycle .progress{fill:transparent;stroke:#0075ff;transform-origin:50% 50%;transform:rotate(-90deg);transition:250ms ease-in-out 50ms}@media (prefers-reduced-motion){.progress{transition-duration:0s;transition-delay:0s}}",VALID_VARIANTS=Object.keys(KoliBriProgressVariantEnum),createProgressSVG=t=>{let e="43%",r=t._label?"57%":"50%";switch(t._variant){case"cycle-value-label":t._label&&(e="57%",r="43%");case"cycle":case"cycle-label-value":return h("svg",{class:"cycle",width:"100",viewBox:"0 0 120 120",xmlns:"http://www.w3.org/2000/svg"},h("circle",{class:"background",cx:"60",cy:"60",r:"54.5",fill:"currentColor",stroke:"currentColor","stroke-width":"8"}),h("circle",{class:"whitespace",cx:"60",cy:"60",r:"59",fill:"currentColor",stroke:"currentColor","stroke-width":"3"}),h("circle",{class:"border",cx:"60",cy:"60",r:"59",fill:"currentColor",stroke:"currentColor","stroke-width":"1"}),h("circle",{class:"whitespace",cx:"60",cy:"60",r:"51",fill:"currentColor",stroke:"currentColor","stroke-width":"1"}),h("circle",{class:"border",cx:"60",cy:"60",r:"50",fill:"currentColor",stroke:"currentColor","stroke-width":"1"}),h("circle",{class:"progress",fill:"currentColor",stroke:"currentColor","stroke-linecap":"round","stroke-dasharray":`${Math.round(t._value/t._max*342)}px 342px`,"stroke-width":"6",cx:"60",cy:"60",r:"54.5"}),t._label&&h("text",{"aria-hidden":"true",x:"50%",y:e,"text-anchor":"middle",fill:"currentColor"},t._label),h("text",{"aria-hidden":"true",x:"50%",y:r,"text-anchor":"middle",fill:"currentColor"},t._value,t._unit));default:return h("div",{class:"bar"},t._label&&h("div",null,t._label),h("div",{style:{display:"flex",gap:"0.3em"}},h("svg",{width:"100",viewBox:"0 0 102 8",xmlns:"http://www.w3.org/2000/svg"},h("rect",{class:"background",x:"1",y:"1",height:"10",rx:"5",fill:"currentColor",stroke:"currentColor","stroke-width":"3",width:"100"}),h("rect",{class:"progress",x:"2.5",y:"2.5",height:"7",rx:"3.5",fill:"currentColor",stroke:"currentColor","stroke-width":"3",width:t._value/t._max*95}),h("rect",{class:"border",x:"1",y:"1",height:"10",rx:"5",fill:"currentColor",stroke:"currentColor","stroke-width":"1",width:"100"})),h("text",{"aria-hidden":"true","text-anchor":"middle","dominant-baseline":"central",fill:"currentColor"},t._value,t._unit)))}},KolProcess=class{constructor(t){registerInstance(this,t),this._label=void 0,this._max=void 0,this._unit="%",this._value=void 0,this._variant=void 0,this.state={_max:100,_unit:"%",_value:0,_variant:"bar",_liveValue:0}}render(){return h(Host,null,createProgressSVG(this.state),h("progress",{"aria-busy":this.state._value<this.state._max?"true":"false",max:this.state._max,value:this.state._value}),h("span",{"aria-live":"polite","aria-relevant":"removals text",hidden:!0},this.state._liveValue," von ",this.state._max," ",this.state._unit))}validateLabel(t){validateLabel(this,t)}validateMax(t){"number"!=typeof t&&(t=100),watchNumber(this,"_max",t,{required:!0})}validateUnit(t){watchString(this,"_unit",t)}validateValue(t){"number"!=typeof t&&(t=0),watchNumber(this,"_value",t,{required:!0})}validateVariant(t){watchValidator(this,"_variant",(t=>"string"==typeof t&&VALID_VARIANTS.includes(t)),new Set(VALID_VARIANTS),t)}componentWillLoad(){this.validateLabel(this._label),this.validateMax(this._max),this.validateUnit(this._unit),this.validateValue(this._value),this.validateVariant(this._variant),this.interval=setInterval((()=>{this.state._liveValue!==this.state._value&&(this.state=Object.assign(Object.assign({},this.state),{_liveValue:this.state._value}))}),5e3)}disconnectedCallback(){clearInterval(this.interval)}static get watchers(){return{_label:["validateLabel"],_max:["validateMax"],_unit:["validateUnit"],_value:["validateValue"],_variant:["validateVariant"]}}};KolProcess.style={default:defaultStyleCss};export{KolProcess as kol_progress};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as registerInstance,h,H as Host}from"./index-536799d5.js";import{v as validateLabel}from"./label-84d4c0b2.js";import{d as watchString,w as watchValidator}from"./prop.validators-fa5eb5c5.js";import{s as showExpertSlot}from"./reuse-b3566e4c.js";import"./a11y.tipps-7143f6fd.js";import"./dev.utils-b5b1c70d.js";const defaultStyleCss=":host{--a11y-min-size:44px;font-size:inherit}*{font-family:Verdana;hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role='button'],button:not([role='link']),kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}:host{max-width:100%}*{box-sizing:border-box}kol-span-wc{display:grid;place-items:center}kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}button,input,option,select,textarea{font-family:inherit}.icon-only>kol-span-wc>span>span{display:none}cite,figure,q+figcaption{display:inline;margin:0;padding:0}blockquote:before{content:open-quote}blockquote::after{content:close-quote}cite:before{content:'—'}.block cite:before{padding-right:0.5em}.inline cite:before{padding:0.5em}",KolQuote=class{constructor(t){registerInstance(this,t),this._label=void 0,this._href=void 0,this._quote=void 0,this._variant="inline",this.state={_href:"…",_quote:"…",_variant:"inline"}}validateLabel(t){validateLabel(this,t)}validateHref(t){watchString(this,"_href",t,{required:!0})}validateQuote(t){watchString(this,"_quote",t,{required:!0})}validateVariant(t){watchValidator(this,"_variant",(t=>"block"===t||"inline"===t),new Set(["block","inline"]),t)}componentWillLoad(){this.validateHref(this._href),this.validateLabel(this._label),this.validateQuote(this._quote),this.validateVariant(this._variant)}render(){const t=showExpertSlot(this.state._quote);return h(Host,null,h("figure",{class:{[this.state._variant]:!0}},"block"===this.state._variant?h("blockquote",{cite:this.state._href},this.state._quote,h("span",{"aria-hidden":t?void 0:"true",hidden:!t},h("slot",{name:"expert"}))):h("q",{cite:this.state._href},this.state._quote,h("span",{"aria-hidden":t?void 0:"true",hidden:!t},h("slot",{name:"expert"}))),"string"==typeof this.state._label&&this.state._label.length>0&&h("figcaption",null,h("cite",null,h("kol-link",{_href:this.state._href,_label:this.state._label,_target:"_blank"})))))}static get watchers(){return{_label:["validateLabel"],_href:["validateHref"],_quote:["validateQuote"],_variant:["validateVariant"]}}};KolQuote.style={default:defaultStyleCss};export{KolQuote as kol_quote};
4
+ import{r as registerInstance,h,H as Host}from"./index-d0c806ea.js";import{v as validateLabel}from"./label-c130b72e.js";import{d as watchString,w as watchValidator}from"./prop.validators-e40c3380.js";import{s as showExpertSlot}from"./reuse-b3566e4c.js";import"./a11y.tipps-348ca42a.js";import"./dev.utils-9b878520.js";const defaultStyleCss=":host{--a11y-min-size:44px;font-size:inherit}*{font-family:Verdana;hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role='button'],button:not([role='link']),kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}:host{max-width:100%}*{box-sizing:border-box}kol-span-wc{display:grid;place-items:center}kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}button,input,option,select,textarea{font-family:inherit}.icon-only>kol-span-wc>span>span{display:none}cite,figure,q+figcaption{display:inline;margin:0;padding:0}blockquote:before{content:open-quote}blockquote::after{content:close-quote}cite:before{content:'—'}.block cite:before{padding-right:0.5em}.inline cite:before{padding:0.5em}",KolQuote=class{constructor(t){registerInstance(this,t),this._label=void 0,this._href=void 0,this._quote=void 0,this._variant="inline",this.state={_href:"…",_quote:"…",_variant:"inline"}}validateLabel(t){validateLabel(this,t)}validateHref(t){watchString(this,"_href",t,{required:!0})}validateQuote(t){watchString(this,"_quote",t,{required:!0})}validateVariant(t){watchValidator(this,"_variant",(t=>"block"===t||"inline"===t),new Set(["block","inline"]),t)}componentWillLoad(){this.validateHref(this._href),this.validateLabel(this._label),this.validateQuote(this._quote),this.validateVariant(this._variant)}render(){const t=showExpertSlot(this.state._quote);return h(Host,null,h("figure",{class:{[this.state._variant]:!0}},"block"===this.state._variant?h("blockquote",{cite:this.state._href},this.state._quote,h("span",{"aria-hidden":t?void 0:"true",hidden:!t},h("slot",{name:"expert"}))):h("q",{cite:this.state._href},this.state._quote,h("span",{"aria-hidden":t?void 0:"true",hidden:!t},h("slot",{name:"expert"}))),"string"==typeof this.state._label&&this.state._label.length>0&&h("figcaption",null,h("cite",null,h("kol-link",{_href:this.state._href,_label:this.state._label,_target:"_blank"})))))}static get watchers(){return{_label:["validateLabel"],_href:["validateHref"],_quote:["validateQuote"],_variant:["validateVariant"]}}};KolQuote.style={default:defaultStyleCss};export{KolQuote as kol_quote};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h,H as Host,r as registerInstance,g as getElement}from"./index-536799d5.js";import{n as nonce}from"./dev.utils-b5b1c70d.js";import{s as stopPropagation,t as tryToDispatchKoliBriEvent}from"./events-2bb1065b.js";import{S as STATE_CHANGE_EVENT,a as propagateFocus,s as showExpertSlot}from"./reuse-b3566e4c.js";import{v as validateHideError,g as getRenderStates}from"./controller-757cd887.js";import{f as fillKeyOptionMap,v as validateOptionsWithOptgroup}from"./controller-f1d4f4d4.js";import{v as validateRows}from"./rows-9e354f5e.js";import{a as a11yHint}from"./a11y.tipps-7143f6fd.js";import{a as watchBoolean,c as watchJsonArrayString}from"./prop.validators-fa5eb5c5.js";import{I as InputIconController}from"./controller-icon-d4a91832.js";import"./hide-label-27292184.js";import"./label-84d4c0b2.js";import"./tab-index-3ce2c695.js";import"./associated.controller-d70c8be1.js";import"./icons-b6a6d907.js";class SelectController extends InputIconController{constructor(t,e,i){super(t,e,i),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.beforePatchOptions=(t,e)=>{const i=e.has("_options")?e.get("_options"):this.component.state._options;if(Array.isArray(i)&&i.length>0){this.keyOptionMap.clear(),fillKeyOptionMap(this.keyOptionMap,i);const t=e.has("_value")?e.get("_value"):this.component.state._value,a=this.filterValuesInOptions(Array.isArray(t)&&t.length>0?t:[],i);!1===this.component._multiple&&0===a.length?(e.set("_value",[i[0].value]),this.onStateChange()):Array.isArray(t)&&a.length<t.length&&(e.set("_value",a),this.onStateChange())}},this.component=t}validateHideError(t){validateHideError(this.component,t,{hooks:{afterPatch:()=>{this.component.state._hideError&&a11yHint("Property hide-error for inputs: Only use when the error message is shown outside of the input component.")}}})}validateOptions(t){validateOptionsWithOptgroup(this.component,t,{hooks:{beforePatch:this.beforePatchOptions}})}validateMultiple(t){watchBoolean(this.component,"_multiple",t,{hooks:{beforePatch:this.beforePatchOptions}})}validateRequired(t){watchBoolean(this.component,"_required",t)}validateRows(t){validateRows(this.component,t)}validateValue(t){watchJsonArrayString(this.component,"_value",(()=>!0),t,void 0,{hooks:{beforePatch:this.beforePatchOptions}}),this.setFormAssociatedValue(this.component._value)}componentWillLoad(t){super.componentWillLoad(),this.onStateChange=()=>{if("function"==typeof t){const e=setTimeout((()=>{clearTimeout(e),t(STATE_CHANGE_EVENT)}))}},this.validateHideError(this.component._hideError),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 defaultStyleCss=":host{--a11y-min-size:44px;font-size:inherit}*{font-family:Verdana;hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role='button'],button:not([role='link']),kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}:host{max-width:100%}*{box-sizing:border-box}kol-span-wc{display:grid;place-items:center}kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}button,input,option,select,textarea{font-family:inherit}.icon-only>kol-span-wc>span>span{display:none}.required label>span::after,.required legend>span::after{content:'*'}:host{display:block}input,textarea{cursor:text}input[type='checkbox'],input[type='color'],input[type='file'],input[type='radio'],input[type='range'],label,option,select{cursor:pointer}input[type='color'],input[type='date'],input[type='datetime-local'],input[type='email'],input[type='file'],input[type='month'],input[type='number'],input[type='password'],input[type='search'],input[type='tel'],input[type='text'],input[type='time'],input[type='url'],input[type='week'],select,select[multiple] option,textarea{font-size:1rem;width:100%}input[type='file']{padding:calc((var(--a11y-min-size) - 1rem) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - 1rem) / 2) 0.5em}kol-input.disabled :is(button,input,label,option,select,textarea){cursor:not-allowed;opacity:0.5}kol-input{display:grid}kol-input .input-slot{flex-grow:1}input:not([type='checkbox'],[type='radio']),select:not([multiple],[size]){height:2.75em}input:focus,option:focus,select:focus,textarea:focus{outline:0}.input{display:flex;align-items:center}.input>kol-icon{display:grid;height:var(--a11y-min-size);place-items:center}kol-input.required .input-tooltip .span-label::after{content:'*'}.error.hidden{display:none}",isSelected=(t,e)=>Array.isArray(t)&&t.includes(e),KolSelect=class{renderOptgroup(t,e){var i;return h("optgroup",{disabled:t.disabled,label:t.label},null===(i=t.options)||void 0===i?void 0:i.map(((t,i)=>{const a=`${e}-${i}`;return Array.isArray(t.options)?this.renderOptgroup(t,a):h("option",{disabled:t.disabled,key:a,selected:isSelected(this.state._value,t.value),value:a},t.label)})))}render(){const{ariaDescribedBy:t}=getRenderStates(this.state),e=showExpertSlot(this.state._label);return h(Host,{class:{"has-value":this.state._hasValue}},h("kol-input",{class:{"hide-label":!!this.state._hideLabel,select:!0},_disabled:this.state._disabled,_error:this.state._error,_hideError:this.state._hideError,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_icons:this.state._icons,_id:this.state._id,_label:this.state._label,_required:this.state._required,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched,onClick:()=>{var t;return null===(t=this.ref)||void 0===t?void 0:t.focus()}},h("span",{slot:"label"},e?h("slot",{name:"expert"}):this.state._label),h("div",{slot:"input"},h("select",{ref:this.catchRef,title:"",accessKey:this.state._accessKey,"aria-describedby":t.length>0?t.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,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,spellcheck:"false",onClick:this.controller.onFacade.onClick,onBlur:this.controller.onFacade.onBlur,onFocus:this.controller.onFacade.onFocus,onChange:this.onChange},this.state._options.map(((t,e)=>{const i=`-${e}`;return Array.isArray(t.options)?this.renderOptgroup(t,i):h("option",{disabled:t.disabled,key:i,selected:isSelected(this.state._value,t.value),value:i},t.label)}))))))}constructor(t){registerInstance(this,t),this.catchRef=t=>{this.ref=t,propagateFocus(this.host,this.ref)},this.onChange=t=>{var e,i;this._value=Array.from((null===(e=this.ref)||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})),stopPropagation(t),tryToDispatchKoliBriEvent("change",this.host,this._value),this.controller.setFormAssociatedValue(this._value),"function"==typeof(null===(i=this.state._on)||void 0===i?void 0:i.onChange)&&this.state._on.onChange(t,this._value)},this._accessKey=void 0,this._alert=!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._multiple=!1,this._name=void 0,this._on=void 0,this._options=void 0,this._required=!1,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-${nonce()}`,_label:"",_multiple:!1,_options:[],_value:[]},this.controller=new SelectController(this,"select",this.host)}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)}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)}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._alert=!0===this._alert,this._touched=!0===this._touched,this.controller.componentWillLoad(this.onChange),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener((t=>this.state._hasValue=!!t))}get host(){return getElement(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"],_multiple:["validateMultiple"],_name:["validateName"],_on:["validateOn"],_options:["validateOptions"],_required:["validateRequired"],_rows:["validateRows"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};KolSelect.style={default:defaultStyleCss};export{KolSelect as kol_select};
4
+ import{h,H as Host,r as registerInstance,g as getElement}from"./index-d0c806ea.js";import{n as nonce}from"./dev.utils-9b878520.js";import{s as stopPropagation,t as tryToDispatchKoliBriEvent}from"./events-2bb1065b.js";import{S as STATE_CHANGE_EVENT,a as propagateFocus,s as showExpertSlot}from"./reuse-b3566e4c.js";import{v as validateHideError,g as getRenderStates}from"./controller-2743a0d8.js";import{f as fillKeyOptionMap,v as validateOptionsWithOptgroup}from"./controller-64f30149.js";import{v as validateRows}from"./rows-f8671a72.js";import{a as a11yHint}from"./a11y.tipps-348ca42a.js";import{a as watchBoolean,c as watchJsonArrayString}from"./prop.validators-e40c3380.js";import{I as InputIconController}from"./controller-icon-c621ff81.js";import"./hide-label-ff12ad0b.js";import"./label-c130b72e.js";import"./tab-index-9c6b6a46.js";import"./associated.controller-a395cef5.js";import"./icons-da3b61ae.js";class SelectController extends InputIconController{constructor(t,e,i){super(t,e,i),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.beforePatchOptions=(t,e)=>{const i=e.has("_options")?e.get("_options"):this.component.state._options;if(Array.isArray(i)&&i.length>0){this.keyOptionMap.clear(),fillKeyOptionMap(this.keyOptionMap,i);const t=e.has("_value")?e.get("_value"):this.component.state._value,a=this.filterValuesInOptions(Array.isArray(t)&&t.length>0?t:[],i);!1===this.component._multiple&&0===a.length?(e.set("_value",[i[0].value]),this.onStateChange()):Array.isArray(t)&&a.length<t.length&&(e.set("_value",a),this.onStateChange())}},this.component=t}validateHideError(t){validateHideError(this.component,t,{hooks:{afterPatch:()=>{this.component.state._hideError&&a11yHint("Property hide-error for inputs: Only use when the error message is shown outside of the input component.")}}})}validateOptions(t){validateOptionsWithOptgroup(this.component,t,{hooks:{beforePatch:this.beforePatchOptions}})}validateMultiple(t){watchBoolean(this.component,"_multiple",t,{hooks:{beforePatch:this.beforePatchOptions}})}validateRequired(t){watchBoolean(this.component,"_required",t)}validateRows(t){validateRows(this.component,t)}validateValue(t){watchJsonArrayString(this.component,"_value",(()=>!0),t,void 0,{hooks:{beforePatch:this.beforePatchOptions}}),this.setFormAssociatedValue(this.component._value)}componentWillLoad(t){super.componentWillLoad(),this.onStateChange=()=>{if("function"==typeof t){const e=setTimeout((()=>{clearTimeout(e),t(STATE_CHANGE_EVENT)}))}},this.validateHideError(this.component._hideError),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 defaultStyleCss=":host{--a11y-min-size:44px;font-size:inherit}*{font-family:Verdana;hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role='button'],button:not([role='link']),kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}:host{max-width:100%}*{box-sizing:border-box}kol-span-wc{display:grid;place-items:center}kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}button,input,option,select,textarea{font-family:inherit}.icon-only>kol-span-wc>span>span{display:none}.required label>span::after,.required legend>span::after{content:'*'}:host{display:block}input,textarea{cursor:text}input[type='checkbox'],input[type='color'],input[type='file'],input[type='radio'],input[type='range'],label,option,select{cursor:pointer}input[type='color'],input[type='date'],input[type='datetime-local'],input[type='email'],input[type='file'],input[type='month'],input[type='number'],input[type='password'],input[type='search'],input[type='tel'],input[type='text'],input[type='time'],input[type='url'],input[type='week'],select,select[multiple] option,textarea{font-size:1rem;width:100%}input[type='file']{padding:calc((var(--a11y-min-size) - 1rem) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - 1rem) / 2) 0.5em}kol-input.disabled :is(button,input,label,option,select,textarea){cursor:not-allowed;opacity:0.5}kol-input{display:grid}kol-input .input-slot{flex-grow:1}input:not([type='checkbox'],[type='radio']),select:not([multiple],[size]){height:2.75em}input:focus,option:focus,select:focus,textarea:focus{outline:0}.input{display:flex;align-items:center}.input>kol-icon{display:grid;height:var(--a11y-min-size);place-items:center}kol-input.required .input-tooltip .span-label::after{content:'*'}.error.hidden{display:none}",isSelected=(t,e)=>Array.isArray(t)&&t.includes(e),KolSelect=class{renderOptgroup(t,e){var i;return h("optgroup",{disabled:t.disabled,label:t.label},null===(i=t.options)||void 0===i?void 0:i.map(((t,i)=>{const a=`${e}-${i}`;return Array.isArray(t.options)?this.renderOptgroup(t,a):h("option",{disabled:t.disabled,key:a,selected:isSelected(this.state._value,t.value),value:a},t.label)})))}render(){const{ariaDescribedBy:t}=getRenderStates(this.state),e=showExpertSlot(this.state._label);return h(Host,{class:{"has-value":this.state._hasValue}},h("kol-input",{class:{"hide-label":!!this.state._hideLabel,select:!0},_disabled:this.state._disabled,_error:this.state._error,_hideError:this.state._hideError,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_icons:this.state._icons,_id:this.state._id,_label:this.state._label,_required:this.state._required,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched,onClick:()=>{var t;return null===(t=this.ref)||void 0===t?void 0:t.focus()}},h("span",{slot:"label"},e?h("slot",{name:"expert"}):this.state._label),h("div",{slot:"input"},h("select",{ref:this.catchRef,title:"",accessKey:this.state._accessKey,"aria-describedby":t.length>0?t.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,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,spellcheck:"false",onClick:this.controller.onFacade.onClick,onBlur:this.controller.onFacade.onBlur,onFocus:this.controller.onFacade.onFocus,onChange:this.onChange},this.state._options.map(((t,e)=>{const i=`-${e}`;return Array.isArray(t.options)?this.renderOptgroup(t,i):h("option",{disabled:t.disabled,key:i,selected:isSelected(this.state._value,t.value),value:i},t.label)}))))))}constructor(t){registerInstance(this,t),this.catchRef=t=>{this.ref=t,propagateFocus(this.host,this.ref)},this.onChange=t=>{var e,i;this._value=Array.from((null===(e=this.ref)||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})),stopPropagation(t),tryToDispatchKoliBriEvent("change",this.host,this._value),this.controller.setFormAssociatedValue(this._value),"function"==typeof(null===(i=this.state._on)||void 0===i?void 0:i.onChange)&&this.state._on.onChange(t,this._value)},this._accessKey=void 0,this._alert=!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._multiple=!1,this._name=void 0,this._on=void 0,this._options=void 0,this._required=!1,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-${nonce()}`,_label:"",_multiple:!1,_options:[],_value:[]},this.controller=new SelectController(this,"select",this.host)}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)}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)}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._alert=!0===this._alert,this._touched=!0===this._touched,this.controller.componentWillLoad(this.onChange),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener((t=>this.state._hasValue=!!t))}get host(){return getElement(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"],_multiple:["validateMultiple"],_name:["validateName"],_on:["validateOn"],_options:["validateOptions"],_required:["validateRequired"],_rows:["validateRows"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};KolSelect.style={default:defaultStyleCss};export{KolSelect as kol_select};
@@ -1 +1 @@
1
- {"file":"kol-select.entry.js","mappings":";;;;;;;;;;;;;;;;;;;MAea,gBAAiB,SAAQ,mBAAmB;EAKxD,YAAmB,SAA4C,EAAE,IAAY,EAAE,IAAkB;IAChG,KAAK,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IAHb,iBAAY,GAAG,IAAI,GAAG,EAAiC,CAAC;IAOzD,mBAAc,GAAG,CAAC,GAAW,KAAwC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAE/F,qBAAgB,GAAG,CAAC,KAAa,EAAE,OAAsC;MACzF,QACC,OAAO,CAA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Y,CAAC,KAAoB;IACvC,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;GACpC;EAGM,2BAA2B,CAAC,KAAmC;IACrE,IAAI,CAAC,UAAU,CAAC,2BAA2B,CAAC,KAAK,CAAC,CAAC;GACnD;EAGM,gBAAgB,CAAC,KAAc;IACrC,IAAI,CAAC,UAAU,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;GACxC;EAGM,eAAe,CAAC,KAAe;IACrC,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;GACvC;EAGM,aAAa,CAAC,KAAoC;IACxD,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;GACrC;EAEM,iBAAiB;IACvB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC;IACnC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC;IACvC,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAEjD,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;IAC3C,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;GAC5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/select/controller.ts","src/components/select/style.css?tag=kol-select&mode=default&encapsulation=shadow","src/components/select/component.tsx"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { Stringified } from '../../types/common';\nimport { Optgroup, Option, SelectOption } from '../../types/input/types';\nimport { HideErrorPropType, validateHideError } from '../../types/props/hide-error';\nimport { OptionsWithOptgroupPropType, validateOptionsWithOptgroup } from '../../types/props/options';\nimport { RowsPropType, validateRows } from '../../types/props/rows';\nimport { W3CInputValue } from '../../types/w3c';\nimport { a11yHint } from '../../utils/a11y.tipps';\nimport { watchBoolean, watchJsonArrayString } from '../../utils/prop.validators';\nimport { STATE_CHANGE_EVENT } from '../../utils/validator';\nimport { InputIconController } from '../@deprecated/input/controller-icon';\nimport { fillKeyOptionMap } from '../input-radio/controller';\nimport { Props, Watches } from './types';\n\nexport class SelectController extends InputIconController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props;\n\tprivate onStateChange!: () => void;\n\tprivate readonly keyOptionMap = new Map<string, Option<W3CInputValue>>();\n\n\tpublic constructor(component: Generic.Element.Component & Props, 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? this.isValueInOptions(value, (option as Optgroup<string>).options)\n\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\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\tthis.onStateChange();\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\tthis.onStateChange();\n\t\t\t}\n\t\t}\n\t};\n\n\tpublic validateHideError(value?: HideErrorPropType): void {\n\t\tvalidateHideError(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: () => {\n\t\t\t\t\tif (this.component.state._hideError) {\n\t\t\t\t\t\ta11yHint('Property hide-error for inputs: Only use when the error message is shown outside of the input component.');\n\t\t\t\t\t}\n\t\t\t\t},\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\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\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] Aktuell wird die Mehrfachauswahl noch nicht unterstützt. Wir sind dran die Mehrfachauswahl funktionsfähig zu implementieren, da der Browser-Standard hier ein paar Lücken hat.'\n\t\t// \t);\n\t\t// \tdevHint('[KolSelect] Bei der Mehrfachauswahl sollte zusätzlich auch die Listenlänge (size) gesetzt werden.');\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\tbeforePatch: this.beforePatchOptions,\n\t\t\t},\n\t\t});\n\t\tthis.setFormAssociatedValue(this.component._value as string);\n\t}\n\n\tpublic componentWillLoad(onChange?: (event: Event) => void): void {\n\t\tsuper.componentWillLoad();\n\n\t\tthis.onStateChange = () => {\n\t\t\tif (typeof onChange === 'function') {\n\t\t\t\tconst timeout = setTimeout(() => {\n\t\t\t\t\tclearTimeout(timeout);\n\t\t\t\t\tonChange(STATE_CHANGE_EVENT);\n\t\t\t\t});\n\t\t\t}\n\t\t};\n\n\t\tthis.validateHideError(this.component._hideError);\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","@import url(../input-line.css);\n.error.hidden {\n\tdisplay: none;\n}\n","import { Component, Element, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { Stringified } from '../../types/common';\nimport { KoliBriHorizontalIcons } from '../../types/icons';\nimport { InputTypeOnDefault, Optgroup, Option, SelectOption } from '../../types/input/types';\nimport { HideErrorPropType } from '../../types/props/hide-error';\nimport { IdPropType } from '../../types/props/id';\nimport { LabelWithExpertSlotPropType } from '../../types/props/label';\nimport { NamePropType } from '../../types/props/name';\nimport { OptionsWithOptgroupPropType } from '../../types/props/options';\nimport { RowsPropType } from '../../types/props/rows';\nimport { SyncValueBySelectorPropType } from '../../types/props/sync-value-by-selector';\nimport { TooltipAlignPropType } from '../../types/props/tooltip-align';\nimport { W3CInputValue } from '../../types/w3c';\nimport { nonce } from '../../utils/dev.utils';\nimport { stopPropagation, tryToDispatchKoliBriEvent } from '../../utils/events';\nimport { propagateFocus, showExpertSlot } from '../../utils/reuse';\nimport { getRenderStates } from '../input/controller';\nimport { SelectController } from './controller';\nimport { API, States } from './types';\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.css',\n\t},\n\tshadow: true,\n})\nexport class KolSelect implements API {\n\t@Element() private readonly host?: HTMLKolSelectElement;\n\tprivate ref?: HTMLSelectElement;\n\n\tprivate readonly catchRef = (ref?: HTMLSelectElement) => {\n\t\tthis.ref = ref;\n\t\tpropagateFocus(this.host, this.ref);\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={{ 'has-value': this.state._hasValue }}>\n\t\t\t\t<kol-input\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_disabled={this.state._disabled}\n\t\t\t\t\t_error={this.state._error}\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_required={this.state._required}\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.ref?.focus()}\n\t\t\t\t>\n\t\t\t\t\t<span slot=\"label\">{hasExpertSlot ? <slot name=\"expert\"></slot> : this.state._label}</span>\n\t\t\t\t\t<div slot=\"input\">\n\t\t\t\t\t\t<select\n\t\t\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\t\t\ttitle=\"\"\n\t\t\t\t\t\t\taccessKey={this.state._accessKey}\n\t\t\t\t\t\t\taria-describedby={ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined}\n\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\tautoCapitalize=\"off\"\n\t\t\t\t\t\t\tautoCorrect=\"off\"\n\t\t\t\t\t\t\tdisabled={this.state._disabled}\n\t\t\t\t\t\t\tid={this.state._id}\n\t\t\t\t\t\t\tmultiple={this.state._multiple}\n\t\t\t\t\t\t\tname={this.state._name}\n\t\t\t\t\t\t\trequired={this.state._required}\n\t\t\t\t\t\t\tsize={this.state._rows}\n\t\t\t\t\t\t\tspellcheck=\"false\"\n\t\t\t\t\t\t\t{...{\n\t\t\t\t\t\t\t\tonClick: this.controller.onFacade.onClick,\n\t\t\t\t\t\t\t\tonBlur: this.controller.onFacade.onBlur,\n\t\t\t\t\t\t\t\tonFocus: this.controller.onFacade.onFocus,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\tonChange={this.onChange}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{this.state._options.map((option, index) => {\n\t\t\t\t\t\t\t\t/**\n\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 * muss man auf HTML-Ebene den Value auf einen String-Wert\n\t\t\t\t\t\t\t\t * mappen. Das tun wir mittels der Map.\n\t\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\t\tconst key = `-${index}`;\n\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\treturn this.renderOptgroup(option as unknown as Optgroup<string>, key);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t<option\n\t\t\t\t\t\t\t\t\t\t\tdisabled={option.disabled}\n\t\t\t\t\t\t\t\t\t\t\tkey={key}\n\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\tselected={isSelected(this.state._value, (option as unknown as Option<W3CInputValue>).value)}\n\t\t\t\t\t\t\t\t\t\t\tvalue={key}\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t{option.label}\n\t\t\t\t\t\t\t\t\t\t</option>\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})}\n\t\t\t\t\t\t</select>\n\t\t\t\t\t</div>\n\t\t\t\t</kol-input>\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 */\n\t@Prop({ mutable: true, reflect: true }) public _alert?: boolean = true;\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 */\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 * 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 * 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: States = {\n\t\t_hasValue: false,\n\t\t_hideError: false,\n\t\t_id: `id-${nonce()}`, // ⚠ required\n\t\t_label: '', // ⚠ required\n\t\t_multiple: false,\n\t\t_options: [],\n\t\t_value: [],\n\t};\n\n\tpublic constructor() {\n\t\tthis.controller = new SelectController(this, 'select', this.host);\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('_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('_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._alert = this._alert === true;\n\t\tthis._touched = this._touched === true;\n\t\tthis.controller.componentWillLoad(this.onChange);\n\n\t\tthis.state._hasValue = !!this.state._value;\n\t\tthis.controller.addValueChangeListener((v) => (this.state._hasValue = !!v));\n\t}\n\n\tprivate onChange = (event: Event): void => {\n\t\tthis._value = Array.from(this.ref?.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\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\tif (typeof this.state._on?.onChange === 'function') {\n\t\t\tthis.state._on.onChange(event, this._value);\n\t\t}\n\t};\n}\n"],"version":3}
1
+ {"file":"kol-select.entry.js","mappings":";;;;;;;;;;;;;;;;;;;MAea,gBAAiB,SAAQ,mBAAmB;EAKxD,YAAmB,SAA4C,EAAE,IAAY,EAAE,IAAkB;IAChG,KAAK,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IAHb,iBAAY,GAAG,IAAI,GAAG,EAAiC,CAAC;IAOzD,mBAAc,GAAG,CAAC,GAAW,KAAwC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAE/F,qBAAgB,GAAG,CAAC,KAAa,EAAE,OAAsC;MACzF,QACC,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,KACnB,OAAQ,MAAgC,CAAC,KAAK,KAAK,QAAQ;UACvD,MAAgC,CAAC,KAAK,KAAK,KAAK;UACjD,KAAK,CAAC,OAAO,CAAE,MAA2B,CAAC,OAAO,CAAC;YACnD,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAG,MAA2B,CAAC,OAAO,CAAC;YAClE,KAAK,CACR,KAAK,SAAS,EACd;KACF,CAAC;IAEe,0BAAqB,GAA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IACrC,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;GACvC;EAGM,aAAa,CAAC,KAAoC;IACxD,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;GACrC;EAEM,iBAAiB;IACvB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC;IACnC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC;IACvC,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAEjD,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;IAC3C,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;GAC5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/select/controller.ts","src/components/select/style.css?tag=kol-select&mode=default&encapsulation=shadow","src/components/select/component.tsx"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { Stringified } from '../../types/common';\nimport { Optgroup, Option, SelectOption } from '../../types/input/types';\nimport { HideErrorPropType, validateHideError } from '../../types/props/hide-error';\nimport { OptionsWithOptgroupPropType, validateOptionsWithOptgroup } from '../../types/props/options';\nimport { RowsPropType, validateRows } from '../../types/props/rows';\nimport { W3CInputValue } from '../../types/w3c';\nimport { a11yHint } from '../../utils/a11y.tipps';\nimport { watchBoolean, watchJsonArrayString } from '../../utils/prop.validators';\nimport { STATE_CHANGE_EVENT } from '../../utils/validator';\nimport { InputIconController } from '../@deprecated/input/controller-icon';\nimport { fillKeyOptionMap } from '../input-radio/controller';\nimport { Props, Watches } from './types';\n\nexport class SelectController extends InputIconController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props;\n\tprivate onStateChange!: () => void;\n\tprivate readonly keyOptionMap = new Map<string, Option<W3CInputValue>>();\n\n\tpublic constructor(component: Generic.Element.Component & Props, 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? this.isValueInOptions(value, (option as Optgroup<string>).options)\n\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\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\tthis.onStateChange();\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\tthis.onStateChange();\n\t\t\t}\n\t\t}\n\t};\n\n\tpublic validateHideError(value?: HideErrorPropType): void {\n\t\tvalidateHideError(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: () => {\n\t\t\t\t\tif (this.component.state._hideError) {\n\t\t\t\t\t\ta11yHint('Property hide-error for inputs: Only use when the error message is shown outside of the input component.');\n\t\t\t\t\t}\n\t\t\t\t},\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\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\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] Aktuell wird die Mehrfachauswahl noch nicht unterstützt. Wir sind dran die Mehrfachauswahl funktionsfähig zu implementieren, da der Browser-Standard hier ein paar Lücken hat.'\n\t\t// \t);\n\t\t// \tdevHint('[KolSelect] Bei der Mehrfachauswahl sollte zusätzlich auch die Listenlänge (size) gesetzt werden.');\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\tbeforePatch: this.beforePatchOptions,\n\t\t\t},\n\t\t});\n\t\tthis.setFormAssociatedValue(this.component._value as string);\n\t}\n\n\tpublic componentWillLoad(onChange?: (event: Event) => void): void {\n\t\tsuper.componentWillLoad();\n\n\t\tthis.onStateChange = () => {\n\t\t\tif (typeof onChange === 'function') {\n\t\t\t\tconst timeout = setTimeout(() => {\n\t\t\t\t\tclearTimeout(timeout);\n\t\t\t\t\tonChange(STATE_CHANGE_EVENT);\n\t\t\t\t});\n\t\t\t}\n\t\t};\n\n\t\tthis.validateHideError(this.component._hideError);\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","@import url(../input-line.css);\n.error.hidden {\n\tdisplay: none;\n}\n","import { Component, Element, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { Stringified } from '../../types/common';\nimport { KoliBriHorizontalIcons } from '../../types/icons';\nimport { InputTypeOnDefault, Optgroup, Option, SelectOption } from '../../types/input/types';\nimport { HideErrorPropType } from '../../types/props/hide-error';\nimport { IdPropType } from '../../types/props/id';\nimport { LabelWithExpertSlotPropType } from '../../types/props/label';\nimport { NamePropType } from '../../types/props/name';\nimport { OptionsWithOptgroupPropType } from '../../types/props/options';\nimport { RowsPropType } from '../../types/props/rows';\nimport { SyncValueBySelectorPropType } from '../../types/props/sync-value-by-selector';\nimport { TooltipAlignPropType } from '../../types/props/tooltip-align';\nimport { W3CInputValue } from '../../types/w3c';\nimport { nonce } from '../../utils/dev.utils';\nimport { stopPropagation, tryToDispatchKoliBriEvent } from '../../utils/events';\nimport { propagateFocus, showExpertSlot } from '../../utils/reuse';\nimport { getRenderStates } from '../input/controller';\nimport { SelectController } from './controller';\nimport { API, States } from './types';\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.css',\n\t},\n\tshadow: true,\n})\nexport class KolSelect implements API {\n\t@Element() private readonly host?: HTMLKolSelectElement;\n\tprivate ref?: HTMLSelectElement;\n\n\tprivate readonly catchRef = (ref?: HTMLSelectElement) => {\n\t\tthis.ref = ref;\n\t\tpropagateFocus(this.host, this.ref);\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={{ 'has-value': this.state._hasValue }}>\n\t\t\t\t<kol-input\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_disabled={this.state._disabled}\n\t\t\t\t\t_error={this.state._error}\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_required={this.state._required}\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.ref?.focus()}\n\t\t\t\t>\n\t\t\t\t\t<span slot=\"label\">{hasExpertSlot ? <slot name=\"expert\"></slot> : this.state._label}</span>\n\t\t\t\t\t<div slot=\"input\">\n\t\t\t\t\t\t<select\n\t\t\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\t\t\ttitle=\"\"\n\t\t\t\t\t\t\taccessKey={this.state._accessKey}\n\t\t\t\t\t\t\taria-describedby={ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined}\n\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\tautoCapitalize=\"off\"\n\t\t\t\t\t\t\tautoCorrect=\"off\"\n\t\t\t\t\t\t\tdisabled={this.state._disabled}\n\t\t\t\t\t\t\tid={this.state._id}\n\t\t\t\t\t\t\tmultiple={this.state._multiple}\n\t\t\t\t\t\t\tname={this.state._name}\n\t\t\t\t\t\t\trequired={this.state._required}\n\t\t\t\t\t\t\tsize={this.state._rows}\n\t\t\t\t\t\t\tspellcheck=\"false\"\n\t\t\t\t\t\t\t{...{\n\t\t\t\t\t\t\t\tonClick: this.controller.onFacade.onClick,\n\t\t\t\t\t\t\t\tonBlur: this.controller.onFacade.onBlur,\n\t\t\t\t\t\t\t\tonFocus: this.controller.onFacade.onFocus,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\tonChange={this.onChange}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{this.state._options.map((option, index) => {\n\t\t\t\t\t\t\t\t/**\n\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 * muss man auf HTML-Ebene den Value auf einen String-Wert\n\t\t\t\t\t\t\t\t * mappen. Das tun wir mittels der Map.\n\t\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\t\tconst key = `-${index}`;\n\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\treturn this.renderOptgroup(option as unknown as Optgroup<string>, key);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t<option\n\t\t\t\t\t\t\t\t\t\t\tdisabled={option.disabled}\n\t\t\t\t\t\t\t\t\t\t\tkey={key}\n\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\tselected={isSelected(this.state._value, (option as unknown as Option<W3CInputValue>).value)}\n\t\t\t\t\t\t\t\t\t\t\tvalue={key}\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t{option.label}\n\t\t\t\t\t\t\t\t\t\t</option>\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})}\n\t\t\t\t\t\t</select>\n\t\t\t\t\t</div>\n\t\t\t\t</kol-input>\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 */\n\t@Prop({ mutable: true, reflect: true }) public _alert?: boolean = true;\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 */\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 * 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 * 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: States = {\n\t\t_hasValue: false,\n\t\t_hideError: false,\n\t\t_id: `id-${nonce()}`, // ⚠ required\n\t\t_label: '', // ⚠ required\n\t\t_multiple: false,\n\t\t_options: [],\n\t\t_value: [],\n\t};\n\n\tpublic constructor() {\n\t\tthis.controller = new SelectController(this, 'select', this.host);\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('_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('_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._alert = this._alert === true;\n\t\tthis._touched = this._touched === true;\n\t\tthis.controller.componentWillLoad(this.onChange);\n\n\t\tthis.state._hasValue = !!this.state._value;\n\t\tthis.controller.addValueChangeListener((v) => (this.state._hasValue = !!v));\n\t}\n\n\tprivate onChange = (event: Event): void => {\n\t\tthis._value = Array.from(this.ref?.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\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\tif (typeof this.state._on?.onChange === 'function') {\n\t\t\tthis.state._on.onChange(event, this._value);\n\t\t}\n\t};\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as registerInstance,h}from"./index-536799d5.js";import{v as validateLabel}from"./label-84d4c0b2.js";import{r as removeNavLabel,a as addNavLabel}from"./unique-nav-labels-c6750f60.js";import{w as watchNavLinks}from"./validation-97376ad0.js";import"./a11y.tipps-7143f6fd.js";import"./dev.utils-b5b1c70d.js";import"./reuse-b3566e4c.js";import"./prop.validators-fa5eb5c5.js";const defaultStyleCss=":host{--a11y-min-size:44px;font-size:inherit}*{font-family:Verdana;hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role='button'],button:not([role='link']),kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}:host{max-width:100%}*{box-sizing:border-box}kol-span-wc{display:grid;place-items:center}kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}button,input,option,select,textarea{font-family:inherit}.icon-only>kol-span-wc>span>span{display:none}ul{display:grid;list-style:none;place-items:center}ul li{height:0}kol-link-wc a{left:-99999px;overflow:hidden;position:absolute;z-index:9999999;line-height:1em}kol-link-wc a:focus{background-color:#fff;left:unset;position:unset}",KolSkipNav=class{constructor(t){registerInstance(this,t),this._label=void 0,this._links=void 0,this.state={_label:"…",_links:[]}}render(){return h("nav",{"aria-label":this.state._label},h("ul",null,this.state._links.map(((t,a)=>h("li",{key:a},h("kol-link-wc",Object.assign({},t)))))))}validateLabel(t,a,e=!1){e||removeNavLabel(this.state._label),validateLabel(this,t),addNavLabel(this.state._label)}validateLinks(t){watchNavLinks("KolSkipNav",this,t)}componentWillLoad(){this.validateLabel(this._label,void 0,!0),this.validateLinks(this._links)}disconnectedCallback(){removeNavLabel(this.state._label)}static get watchers(){return{_label:["validateLabel"],_links:["validateLinks"]}}};KolSkipNav.style={default:defaultStyleCss};export{KolSkipNav as kol_skip_nav};
4
+ import{r as registerInstance,h}from"./index-d0c806ea.js";import{v as validateLabel}from"./label-c130b72e.js";import{r as removeNavLabel,a as addNavLabel}from"./unique-nav-labels-c6750f60.js";import{w as watchNavLinks}from"./validation-3a52d0f0.js";import"./a11y.tipps-348ca42a.js";import"./dev.utils-9b878520.js";import"./reuse-b3566e4c.js";import"./prop.validators-e40c3380.js";const defaultStyleCss=":host{--a11y-min-size:44px;font-size:inherit}*{font-family:Verdana;hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role='button'],button:not([role='link']),kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}:host{max-width:100%}*{box-sizing:border-box}kol-span-wc{display:grid;place-items:center}kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}button,input,option,select,textarea{font-family:inherit}.icon-only>kol-span-wc>span>span{display:none}ul{display:grid;list-style:none;place-items:center}ul li{height:0}kol-link-wc a{left:-99999px;overflow:hidden;position:absolute;z-index:9999999;line-height:1em}kol-link-wc a:focus{background-color:#fff;left:unset;position:unset}",KolSkipNav=class{constructor(a){registerInstance(this,a),this._label=void 0,this._links=void 0,this.state={_label:"…",_links:[]}}render(){return h("nav",{"aria-label":this.state._label},h("ul",null,this.state._links.map(((a,t)=>h("li",{key:t},h("kol-link-wc",Object.assign({},a)))))))}validateLabel(a,t,e=!1){e||removeNavLabel(this.state._label),validateLabel(this,a),addNavLabel(this.state._label)}validateLinks(a){watchNavLinks("KolSkipNav",this,a)}componentWillLoad(){this.validateLabel(this._label,void 0,!0),this.validateLinks(this._links)}disconnectedCallback(){removeNavLabel(this.state._label)}static get watchers(){return{_label:["validateLabel"],_links:["validateLinks"]}}};KolSkipNav.style={default:defaultStyleCss};export{KolSkipNav as kol_skip_nav};