@public-ui/components 1.6.0-rc.20 → 1.6.0-rc.22

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 (555) hide show
  1. package/custom-elements.json +54 -12
  2. package/dist/cjs/{a11y.tipps-f2c86041.js → a11y.tipps-29f0cafa.js} +1 -1
  3. package/dist/cjs/{a11y.tipps-f2c86041.js.map → a11y.tipps-29f0cafa.js.map} +1 -1
  4. package/dist/cjs/{align-c3270bc0.js → align-e1ae85d7.js} +1 -1
  5. package/dist/cjs/{align-c3270bc0.js.map → align-e1ae85d7.js.map} +1 -1
  6. package/dist/cjs/{app-globals-c7605dca.js → app-globals-195a2a91.js} +1 -1
  7. package/dist/cjs/{app-globals-c7605dca.js.map → app-globals-195a2a91.js.map} +1 -1
  8. package/dist/cjs/{aria-current-50bde9bc.js → aria-current-23e7f209.js} +1 -1
  9. package/dist/cjs/{aria-current-50bde9bc.js.map → aria-current-23e7f209.js.map} +1 -1
  10. package/dist/cjs/aria-selected-373eb055.js +4 -0
  11. package/dist/cjs/{aria-selected-02d3b668.js.map → aria-selected-373eb055.js.map} +1 -1
  12. package/dist/cjs/associated.controller-97ca9eca.js +4 -0
  13. package/dist/cjs/associated.controller-97ca9eca.js.map +1 -0
  14. package/dist/cjs/button-link-e2d7ef9a.js +4 -0
  15. package/dist/cjs/button-link-e2d7ef9a.js.map +1 -0
  16. package/dist/cjs/{color-89f83c82.js → color-d577ac0a.js} +1 -1
  17. package/dist/cjs/{color-89f83c82.js.map → color-d577ac0a.js.map} +1 -1
  18. package/dist/cjs/controller-1b143ed7.js +4 -0
  19. package/dist/cjs/{controller-3427a8e1.js.map → controller-1b143ed7.js.map} +1 -1
  20. package/dist/cjs/{controller-b3c817f5.js → controller-2cec3621.js} +1 -1
  21. package/dist/cjs/controller-2cec3621.js.map +1 -0
  22. package/dist/cjs/{controller-6992eabb.js → controller-97320bd7.js} +1 -1
  23. package/dist/cjs/{controller-6992eabb.js.map → controller-97320bd7.js.map} +1 -1
  24. package/dist/cjs/{controller-bf63d02e.js → controller-b8229ca6.js} +1 -1
  25. package/dist/cjs/{controller-bf63d02e.js.map → controller-b8229ca6.js.map} +1 -1
  26. package/dist/cjs/{controller-3b75004e.js → controller-ba73b764.js} +1 -1
  27. package/dist/cjs/{controller-3b75004e.js.map → controller-ba73b764.js.map} +1 -1
  28. package/dist/cjs/controller-f7d39413.js +4 -0
  29. package/dist/cjs/controller-f7d39413.js.map +1 -0
  30. package/dist/cjs/{controller-icon-a1e0a463.js → controller-icon-c41c5270.js} +1 -1
  31. package/dist/cjs/{controller-icon-a1e0a463.js.map → controller-icon-c41c5270.js.map} +1 -1
  32. package/dist/cjs/{dev.utils-b325e147.js → dev.utils-321ffc6a.js} +1 -1
  33. package/dist/cjs/{dev.utils-b325e147.js.map → dev.utils-321ffc6a.js.map} +1 -1
  34. package/dist/cjs/{devtools-2efdefde.js → devtools-76c34bd7.js} +1 -1
  35. package/dist/cjs/{devtools-2efdefde.js.map → devtools-76c34bd7.js.map} +1 -1
  36. package/dist/cjs/{disabled-fed44db6.js → disabled-b7ede754.js} +1 -1
  37. package/dist/cjs/{disabled-fed44db6.js.map → disabled-b7ede754.js.map} +1 -1
  38. package/dist/cjs/has-closer-2ae25325.js +4 -0
  39. package/dist/cjs/has-closer-2ae25325.js.map +1 -0
  40. package/dist/cjs/hide-label-6f7141bf.js +4 -0
  41. package/dist/cjs/{hide-label-f1994213.js.map → hide-label-6f7141bf.js.map} +1 -1
  42. package/dist/cjs/i18n-0cf2b0b5.js +4 -0
  43. package/dist/cjs/{i18n-25b8027d.js.map → i18n-0cf2b0b5.js.map} +1 -1
  44. package/dist/cjs/{icon-a386b551.js → icon-3aeefaaa.js} +1 -1
  45. package/dist/cjs/{icon-a386b551.js.map → icon-3aeefaaa.js.map} +1 -1
  46. package/dist/cjs/image-source-21f4dce9.js +4 -0
  47. package/dist/cjs/{image-source-1de9289e.js.map → image-source-21f4dce9.js.map} +1 -1
  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_2.cjs.entry.js +1 -1
  52. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  53. package/dist/cjs/kol-avatar-wc.cjs.entry.js.map +1 -1
  54. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  55. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  56. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  57. package/dist/cjs/kol-button-link.cjs.entry.js.map +1 -1
  58. package/dist/cjs/kol-button-wc_2.cjs.entry.js +1 -1
  59. package/dist/cjs/kol-button-wc_2.cjs.entry.js.map +1 -1
  60. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  61. package/dist/cjs/kol-button.cjs.entry.js.map +1 -1
  62. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  63. package/dist/cjs/kol-card.cjs.entry.js.map +1 -1
  64. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  65. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  66. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  67. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  68. package/dist/cjs/kol-input-adapter-leanup.cjs.entry.js +1 -1
  69. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  71. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  73. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  74. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  75. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-input-radio-group.cjs.entry.js +1 -1
  77. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  78. package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
  79. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  80. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  81. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  82. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-link-group.cjs.entry.js +1 -1
  84. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-logo.cjs.entry.js +1 -1
  86. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  87. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  88. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  89. package/dist/cjs/kol-popover.cjs.entry.js +1 -1
  90. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  91. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  93. package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
  94. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  95. package/dist/cjs/kol-span-wc.cjs.entry.js +1 -1
  96. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  97. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  98. package/dist/cjs/kol-split-button.cjs.entry.js.map +1 -1
  99. package/dist/cjs/kol-symbol.cjs.entry.js +1 -1
  100. package/dist/cjs/kol-table.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  102. package/dist/cjs/kol-tabs.cjs.entry.js.map +1 -1
  103. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  104. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  105. package/dist/cjs/kol-toast.cjs.entry.js +1 -1
  106. package/dist/cjs/kol-tooltip.cjs.entry.js +1 -1
  107. package/dist/cjs/kol-tooltip.cjs.entry.js.map +1 -1
  108. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  109. package/dist/cjs/kolibri.cjs.js +1 -1
  110. package/dist/cjs/{label-d3f4eaaa.js → label-3298a541.js} +1 -1
  111. package/dist/cjs/{label-d3f4eaaa.js.map → label-3298a541.js.map} +1 -1
  112. package/dist/cjs/loader.cjs.js +1 -1
  113. package/dist/cjs/{prop.validators-f5e03a86.js → prop.validators-e30f7e43.js} +1 -1
  114. package/dist/cjs/prop.validators-e30f7e43.js.map +1 -0
  115. package/dist/cjs/rows-aaaf2861.js +4 -0
  116. package/dist/cjs/{rows-fd1985a2.js.map → rows-aaaf2861.js.map} +1 -1
  117. package/dist/cjs/show-ccaf9fcc.js +4 -0
  118. package/dist/cjs/{show-73709d10.js.map → show-ccaf9fcc.js.map} +1 -1
  119. package/dist/cjs/suggestions-cb2c4edc.js +4 -0
  120. package/dist/cjs/{suggestions-4b038d0d.js.map → suggestions-cb2c4edc.js.map} +1 -1
  121. package/dist/cjs/{tab-index-a78da43d.js → tab-index-b47a42c0.js} +1 -1
  122. package/dist/cjs/{tab-index-a78da43d.js.map → tab-index-b47a42c0.js.map} +1 -1
  123. package/dist/cjs/validation-91444c75.js +4 -0
  124. package/dist/cjs/{validation-64ec3814.js.map → validation-91444c75.js.map} +1 -1
  125. package/dist/cjs/{validation-65a3018b.js → validation-9a52f85a.js} +1 -1
  126. package/dist/cjs/{validation-65a3018b.js.map → validation-9a52f85a.js.map} +1 -1
  127. package/dist/components/component.js +1 -1
  128. package/dist/components/component.js.map +1 -1
  129. package/dist/components/component14.js +1 -1
  130. package/dist/components/component14.js.map +1 -1
  131. package/dist/components/component15.js +1 -1
  132. package/dist/components/component16.js +1 -1
  133. package/dist/components/component16.js.map +1 -1
  134. package/dist/components/component2.js +1 -1
  135. package/dist/components/component4.js +1 -1
  136. package/dist/components/component5.js +1 -1
  137. package/dist/components/component5.js.map +1 -1
  138. package/dist/components/component6.js +1 -1
  139. package/dist/components/component6.js.map +1 -1
  140. package/dist/components/component7.js +1 -1
  141. package/dist/components/component7.js.map +1 -1
  142. package/dist/components/component9.js +1 -1
  143. package/dist/components/controller.js +1 -1
  144. package/dist/components/controller.js.map +1 -1
  145. package/dist/components/controller2.js.map +1 -1
  146. package/dist/components/controller4.js +1 -1
  147. package/dist/components/devtools.js +1 -1
  148. package/dist/components/has-closer.js +4 -0
  149. package/dist/components/has-closer.js.map +1 -0
  150. package/dist/components/i18n.js +1 -1
  151. package/dist/components/i18n.js.map +1 -1
  152. package/dist/components/image-source.js +4 -0
  153. package/dist/components/image-source.js.map +1 -0
  154. package/dist/components/kol-avatar.js +1 -1
  155. package/dist/components/kol-avatar.js.map +1 -1
  156. package/dist/components/kol-breadcrumb.js +1 -1
  157. package/dist/components/kol-button-link.js +1 -1
  158. package/dist/components/kol-button-link.js.map +1 -1
  159. package/dist/components/kol-button.js +1 -1
  160. package/dist/components/kol-card.js +1 -1
  161. package/dist/components/kol-card.js.map +1 -1
  162. package/dist/components/kol-form.js +1 -1
  163. package/dist/components/kol-image.js +1 -1
  164. package/dist/components/kol-image.js.map +1 -1
  165. package/dist/components/kol-input-adapter-leanup.js +1 -1
  166. package/dist/components/kol-input-checkbox.js +1 -1
  167. package/dist/components/kol-input-color.js +1 -1
  168. package/dist/components/kol-input-date.js +1 -1
  169. package/dist/components/kol-input-email.js +1 -1
  170. package/dist/components/kol-input-file.js +1 -1
  171. package/dist/components/kol-input-number.js +1 -1
  172. package/dist/components/kol-input-password.js +1 -1
  173. package/dist/components/kol-input-range.js +1 -1
  174. package/dist/components/kol-input-text.js +1 -1
  175. package/dist/components/kol-link-button.js +1 -1
  176. package/dist/components/kol-link-group.js +1 -1
  177. package/dist/components/kol-link.js +1 -1
  178. package/dist/components/kol-modal.js +1 -1
  179. package/dist/components/kol-nav.js +1 -1
  180. package/dist/components/kol-popover.js +1 -1
  181. package/dist/components/kol-progress.js +1 -1
  182. package/dist/components/kol-quote.js +1 -1
  183. package/dist/components/kol-split-button.js +1 -1
  184. package/dist/components/kol-split-button.js.map +1 -1
  185. package/dist/components/kol-symbol.js +1 -1
  186. package/dist/components/kol-table.js +1 -1
  187. package/dist/components/kol-tabs.js.map +1 -1
  188. package/dist/components/kol-textarea.js +1 -1
  189. package/dist/components/kol-textarea.js.map +1 -1
  190. package/dist/components/kol-toast.js +1 -1
  191. package/dist/components/kol-toast.js.map +1 -1
  192. package/dist/components/prop.validators.js +1 -1
  193. package/dist/components/prop.validators.js.map +1 -1
  194. package/dist/components/shadow2.js +1 -1
  195. package/dist/components/shadow2.js.map +1 -1
  196. package/dist/components/shadow3.js +1 -1
  197. package/dist/components/shadow3.js.map +1 -1
  198. package/dist/components/tab-index.js +1 -1
  199. package/dist/esm/{a11y.tipps-49a594cd.js → a11y.tipps-821939d5.js} +1 -1
  200. package/dist/esm/{a11y.tipps-49a594cd.js.map → a11y.tipps-821939d5.js.map} +1 -1
  201. package/dist/esm/{align-e2a13b3a.js → align-e9fb20f3.js} +1 -1
  202. package/dist/esm/{align-e2a13b3a.js.map → align-e9fb20f3.js.map} +1 -1
  203. package/dist/esm/app-globals-850b7823.js +4 -0
  204. package/dist/esm/{app-globals-00a31555.js.map → app-globals-850b7823.js.map} +1 -1
  205. package/dist/esm/{aria-current-d47c249a.js → aria-current-37a9a3f1.js} +1 -1
  206. package/dist/esm/{aria-current-d47c249a.js.map → aria-current-37a9a3f1.js.map} +1 -1
  207. package/dist/esm/{aria-selected-84f327a8.js → aria-selected-0386e515.js} +1 -1
  208. package/dist/esm/{aria-selected-84f327a8.js.map → aria-selected-0386e515.js.map} +1 -1
  209. package/dist/esm/associated.controller-3e40ba0b.js +4 -0
  210. package/dist/esm/associated.controller-3e40ba0b.js.map +1 -0
  211. package/dist/esm/{button-link-ec735ae4.js → button-link-6120340d.js} +1 -1
  212. package/dist/esm/button-link-6120340d.js.map +1 -0
  213. package/dist/esm/{color-856020a7.js → color-f4345d8c.js} +1 -1
  214. package/dist/esm/{color-856020a7.js.map → color-f4345d8c.js.map} +1 -1
  215. package/dist/esm/{controller-83496a69.js → controller-3a980b61.js} +1 -1
  216. package/dist/esm/{controller-83496a69.js.map → controller-3a980b61.js.map} +1 -1
  217. package/dist/esm/{controller-2fac18fe.js → controller-68f2cdb6.js} +1 -1
  218. package/dist/esm/{controller-2fac18fe.js.map → controller-68f2cdb6.js.map} +1 -1
  219. package/dist/esm/controller-6f322c76.js +4 -0
  220. package/dist/esm/controller-6f322c76.js.map +1 -0
  221. package/dist/esm/{controller-961f177e.js → controller-a49613e3.js} +1 -1
  222. package/dist/esm/{controller-961f177e.js.map → controller-a49613e3.js.map} +1 -1
  223. package/dist/esm/{controller-075502c7.js → controller-b764d8af.js} +1 -1
  224. package/dist/esm/controller-b764d8af.js.map +1 -0
  225. package/dist/esm/{controller-40a0026f.js → controller-efa536a1.js} +1 -1
  226. package/dist/esm/{controller-40a0026f.js.map → controller-efa536a1.js.map} +1 -1
  227. package/dist/esm/{controller-icon-9c32ee0e.js → controller-icon-3babfd57.js} +1 -1
  228. package/dist/esm/{controller-icon-9c32ee0e.js.map → controller-icon-3babfd57.js.map} +1 -1
  229. package/dist/esm/{dev.utils-21cabf82.js → dev.utils-a47b8ff2.js} +1 -1
  230. package/dist/esm/{dev.utils-21cabf82.js.map → dev.utils-a47b8ff2.js.map} +1 -1
  231. package/dist/esm/{devtools-920eaf32.js → devtools-5e004f63.js} +1 -1
  232. package/dist/esm/{devtools-920eaf32.js.map → devtools-5e004f63.js.map} +1 -1
  233. package/dist/esm/{disabled-5ebf1c54.js → disabled-5ede917f.js} +1 -1
  234. package/dist/esm/{disabled-5ebf1c54.js.map → disabled-5ede917f.js.map} +1 -1
  235. package/dist/esm/{has-closer-92997664.js → has-closer-86755c14.js} +1 -1
  236. package/dist/esm/has-closer-86755c14.js.map +1 -0
  237. package/dist/esm/{hide-label-52f16a0e.js → hide-label-718f4d6f.js} +1 -1
  238. package/dist/esm/{hide-label-52f16a0e.js.map → hide-label-718f4d6f.js.map} +1 -1
  239. package/dist/esm/i18n-f8299375.js +4 -0
  240. package/dist/esm/{i18n-263eac14.js.map → i18n-f8299375.js.map} +1 -1
  241. package/dist/esm/{icon-1a0c1115.js → icon-01c8c999.js} +1 -1
  242. package/dist/esm/{icon-1a0c1115.js.map → icon-01c8c999.js.map} +1 -1
  243. package/dist/esm/{image-source-16e365db.js → image-source-d19a1378.js} +1 -1
  244. package/dist/esm/{image-source-16e365db.js.map → image-source-d19a1378.js.map} +1 -1
  245. package/dist/esm/index.js +1 -1
  246. package/dist/esm/kol-abbr.entry.js +1 -1
  247. package/dist/esm/kol-accordion.entry.js +1 -1
  248. package/dist/esm/kol-alert-wc_2.entry.js +1 -1
  249. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  250. package/dist/esm/kol-avatar-wc.entry.js.map +1 -1
  251. package/dist/esm/kol-badge.entry.js +1 -1
  252. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  253. package/dist/esm/kol-button-link.entry.js +1 -1
  254. package/dist/esm/kol-button-link.entry.js.map +1 -1
  255. package/dist/esm/kol-button-wc_2.entry.js +1 -1
  256. package/dist/esm/kol-button-wc_2.entry.js.map +1 -1
  257. package/dist/esm/kol-button.entry.js +1 -1
  258. package/dist/esm/kol-button.entry.js.map +1 -1
  259. package/dist/esm/kol-card.entry.js +1 -1
  260. package/dist/esm/kol-card.entry.js.map +1 -1
  261. package/dist/esm/kol-details.entry.js +1 -1
  262. package/dist/esm/kol-form.entry.js +1 -1
  263. package/dist/esm/kol-icon.entry.js +1 -1
  264. package/dist/esm/kol-image.entry.js +1 -1
  265. package/dist/esm/kol-input-adapter-leanup.entry.js +1 -1
  266. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  267. package/dist/esm/kol-input-color.entry.js +1 -1
  268. package/dist/esm/kol-input-date.entry.js +1 -1
  269. package/dist/esm/kol-input-email.entry.js +1 -1
  270. package/dist/esm/kol-input-file.entry.js +1 -1
  271. package/dist/esm/kol-input-number.entry.js +1 -1
  272. package/dist/esm/kol-input-password.entry.js +1 -1
  273. package/dist/esm/kol-input-radio-group.entry.js +1 -1
  274. package/dist/esm/kol-input-radio.entry.js +1 -1
  275. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  276. package/dist/esm/kol-input-range.entry.js +1 -1
  277. package/dist/esm/kol-input-text.entry.js +1 -1
  278. package/dist/esm/kol-kolibri.entry.js +1 -1
  279. package/dist/esm/kol-link-button.entry.js +1 -1
  280. package/dist/esm/kol-link-group.entry.js +1 -1
  281. package/dist/esm/kol-link-wc.entry.js +1 -1
  282. package/dist/esm/kol-logo.entry.js +1 -1
  283. package/dist/esm/kol-modal.entry.js +1 -1
  284. package/dist/esm/kol-nav.entry.js +1 -1
  285. package/dist/esm/kol-pagination.entry.js +1 -1
  286. package/dist/esm/kol-popover.entry.js +1 -1
  287. package/dist/esm/kol-progress.entry.js +1 -1
  288. package/dist/esm/kol-quote.entry.js +1 -1
  289. package/dist/esm/kol-select.entry.js +1 -1
  290. package/dist/esm/kol-select.entry.js.map +1 -1
  291. package/dist/esm/kol-skip-nav.entry.js +1 -1
  292. package/dist/esm/kol-span-wc.entry.js +1 -1
  293. package/dist/esm/kol-spin.entry.js +1 -1
  294. package/dist/esm/kol-split-button.entry.js +1 -1
  295. package/dist/esm/kol-split-button.entry.js.map +1 -1
  296. package/dist/esm/kol-symbol.entry.js +1 -1
  297. package/dist/esm/kol-table.entry.js +1 -1
  298. package/dist/esm/kol-tabs.entry.js +1 -1
  299. package/dist/esm/kol-tabs.entry.js.map +1 -1
  300. package/dist/esm/kol-textarea.entry.js +1 -1
  301. package/dist/esm/kol-textarea.entry.js.map +1 -1
  302. package/dist/esm/kol-toast.entry.js +1 -1
  303. package/dist/esm/kol-tooltip.entry.js +1 -1
  304. package/dist/esm/kol-tooltip.entry.js.map +1 -1
  305. package/dist/esm/kol-version.entry.js +1 -1
  306. package/dist/esm/kolibri.js +1 -1
  307. package/dist/esm/{label-78ab78c2.js → label-7743754d.js} +1 -1
  308. package/dist/esm/{label-78ab78c2.js.map → label-7743754d.js.map} +1 -1
  309. package/dist/esm/loader.js +1 -1
  310. package/dist/esm/{prop.validators-2d07ec24.js → prop.validators-6a2ec81f.js} +1 -1
  311. package/dist/esm/prop.validators-6a2ec81f.js.map +1 -0
  312. package/dist/esm/{rows-97254602.js → rows-ee52c8a7.js} +1 -1
  313. package/dist/esm/{rows-97254602.js.map → rows-ee52c8a7.js.map} +1 -1
  314. package/dist/esm/{show-2d014a9e.js → show-ca4f53ef.js} +1 -1
  315. package/dist/esm/{show-2d014a9e.js.map → show-ca4f53ef.js.map} +1 -1
  316. package/dist/esm/{suggestions-21f5a2d2.js → suggestions-c770bce0.js} +1 -1
  317. package/dist/esm/{suggestions-21f5a2d2.js.map → suggestions-c770bce0.js.map} +1 -1
  318. package/dist/esm/{tab-index-68b5c2de.js → tab-index-cbaa8f9d.js} +1 -1
  319. package/dist/esm/{tab-index-68b5c2de.js.map → tab-index-cbaa8f9d.js.map} +1 -1
  320. package/dist/esm/validation-a02a4280.js +4 -0
  321. package/dist/esm/{validation-205f5848.js.map → validation-a02a4280.js.map} +1 -1
  322. package/dist/esm/{validation-4d262227.js → validation-e0ef3555.js} +1 -1
  323. package/dist/esm/{validation-4d262227.js.map → validation-e0ef3555.js.map} +1 -1
  324. package/dist/kolibri/{a11y.tipps-49a594cd.js → a11y.tipps-821939d5.js} +1 -1
  325. package/dist/kolibri/{align-e2a13b3a.js → align-e9fb20f3.js} +1 -1
  326. package/dist/kolibri/app-globals-850b7823.js +4 -0
  327. package/dist/kolibri/{aria-current-d47c249a.js → aria-current-37a9a3f1.js} +1 -1
  328. package/dist/kolibri/aria-selected-0386e515.js +4 -0
  329. package/dist/kolibri/associated.controller-3e40ba0b.js +4 -0
  330. package/dist/kolibri/associated.controller-3e40ba0b.js.map +1 -0
  331. package/dist/kolibri/button-link-6120340d.js +4 -0
  332. package/dist/kolibri/button-link-6120340d.js.map +1 -0
  333. package/dist/kolibri/{color-856020a7.js → color-f4345d8c.js} +1 -1
  334. package/dist/kolibri/{controller-83496a69.js → controller-3a980b61.js} +1 -1
  335. package/dist/kolibri/{controller-2fac18fe.js → controller-68f2cdb6.js} +1 -1
  336. package/dist/kolibri/controller-6f322c76.js +4 -0
  337. package/dist/kolibri/controller-6f322c76.js.map +1 -0
  338. package/dist/kolibri/{controller-961f177e.js → controller-a49613e3.js} +1 -1
  339. package/dist/kolibri/{controller-075502c7.js → controller-b764d8af.js} +1 -1
  340. package/dist/kolibri/controller-b764d8af.js.map +1 -0
  341. package/dist/kolibri/{controller-40a0026f.js → controller-efa536a1.js} +1 -1
  342. package/dist/kolibri/{controller-icon-9c32ee0e.js → controller-icon-3babfd57.js} +1 -1
  343. package/dist/kolibri/{dev.utils-21cabf82.js → dev.utils-a47b8ff2.js} +1 -1
  344. package/dist/kolibri/{dev.utils-21cabf82.js.map → dev.utils-a47b8ff2.js.map} +1 -1
  345. package/dist/kolibri/{devtools-920eaf32.js → devtools-5e004f63.js} +1 -1
  346. package/dist/kolibri/{disabled-5ebf1c54.js → disabled-5ede917f.js} +1 -1
  347. package/dist/kolibri/has-closer-86755c14.js +4 -0
  348. package/dist/kolibri/has-closer-86755c14.js.map +1 -0
  349. package/dist/kolibri/hide-label-718f4d6f.js +4 -0
  350. package/dist/kolibri/i18n-f8299375.js +4 -0
  351. package/dist/kolibri/i18n-f8299375.js.map +1 -0
  352. package/dist/kolibri/{icon-1a0c1115.js → icon-01c8c999.js} +1 -1
  353. package/dist/kolibri/image-source-d19a1378.js +4 -0
  354. package/dist/kolibri/index.esm.js +1 -1
  355. package/dist/kolibri/kol-abbr.entry.js +1 -1
  356. package/dist/kolibri/kol-accordion.entry.js +1 -1
  357. package/dist/kolibri/kol-alert-wc_2.entry.js +1 -1
  358. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  359. package/dist/kolibri/kol-avatar-wc.entry.js.map +1 -1
  360. package/dist/kolibri/kol-badge.entry.js +1 -1
  361. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  362. package/dist/kolibri/kol-button-link.entry.js +1 -1
  363. package/dist/kolibri/kol-button-link.entry.js.map +1 -1
  364. package/dist/kolibri/kol-button-wc_2.entry.js +1 -1
  365. package/dist/kolibri/kol-button-wc_2.entry.js.map +1 -1
  366. package/dist/kolibri/kol-button.entry.js +1 -1
  367. package/dist/kolibri/kol-button.entry.js.map +1 -1
  368. package/dist/kolibri/kol-card.entry.js +1 -1
  369. package/dist/kolibri/kol-card.entry.js.map +1 -1
  370. package/dist/kolibri/kol-details.entry.js +1 -1
  371. package/dist/kolibri/kol-form.entry.js +1 -1
  372. package/dist/kolibri/kol-icon.entry.js +1 -1
  373. package/dist/kolibri/kol-image.entry.js +1 -1
  374. package/dist/kolibri/kol-input-adapter-leanup.entry.js +1 -1
  375. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  376. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  377. package/dist/kolibri/kol-input-color.entry.js +1 -1
  378. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  379. package/dist/kolibri/kol-input-date.entry.js +1 -1
  380. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  381. package/dist/kolibri/kol-input-email.entry.js +1 -1
  382. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  383. package/dist/kolibri/kol-input-file.entry.js +1 -1
  384. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  385. package/dist/kolibri/kol-input-number.entry.js +1 -1
  386. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  387. package/dist/kolibri/kol-input-password.entry.js +1 -1
  388. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  389. package/dist/kolibri/kol-input-radio-group.entry.js +1 -1
  390. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  391. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  392. package/dist/kolibri/kol-input-range.entry.js +1 -1
  393. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  394. package/dist/kolibri/kol-input-text.entry.js +1 -1
  395. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  396. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  397. package/dist/kolibri/kol-link-button.entry.js +1 -1
  398. package/dist/kolibri/kol-link-group.entry.js +1 -1
  399. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  400. package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
  401. package/dist/kolibri/kol-logo.entry.js +1 -1
  402. package/dist/kolibri/kol-modal.entry.js +1 -1
  403. package/dist/kolibri/kol-nav.entry.js +1 -1
  404. package/dist/kolibri/kol-pagination.entry.js +1 -1
  405. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  406. package/dist/kolibri/kol-popover.entry.js +1 -1
  407. package/dist/kolibri/kol-progress.entry.js +1 -1
  408. package/dist/kolibri/kol-quote.entry.js +1 -1
  409. package/dist/kolibri/kol-select.entry.js +1 -1
  410. package/dist/kolibri/kol-select.entry.js.map +1 -1
  411. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  412. package/dist/kolibri/kol-span-wc.entry.js +1 -1
  413. package/dist/kolibri/kol-span-wc.entry.js.map +1 -1
  414. package/dist/kolibri/kol-spin.entry.js +1 -1
  415. package/dist/kolibri/kol-split-button.entry.js +1 -1
  416. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  417. package/dist/kolibri/kol-symbol.entry.js +1 -1
  418. package/dist/kolibri/kol-table.entry.js +1 -1
  419. package/dist/kolibri/kol-tabs.entry.js +1 -1
  420. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  421. package/dist/kolibri/kol-textarea.entry.js +1 -1
  422. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  423. package/dist/kolibri/kol-toast.entry.js +1 -1
  424. package/dist/kolibri/kol-tooltip.entry.js +1 -1
  425. package/dist/kolibri/kol-tooltip.entry.js.map +1 -1
  426. package/dist/kolibri/kol-version.entry.js +1 -1
  427. package/dist/kolibri/kolibri.esm.js +1 -1
  428. package/dist/kolibri/kolibri.esm.js.map +1 -1
  429. package/dist/kolibri/{label-78ab78c2.js → label-7743754d.js} +1 -1
  430. package/dist/kolibri/{prop.validators-2d07ec24.js → prop.validators-6a2ec81f.js} +1 -1
  431. package/dist/kolibri/prop.validators-6a2ec81f.js.map +1 -0
  432. package/dist/kolibri/rows-ee52c8a7.js +4 -0
  433. package/dist/kolibri/show-ca4f53ef.js +4 -0
  434. package/dist/kolibri/{suggestions-21f5a2d2.js → suggestions-c770bce0.js} +1 -1
  435. package/dist/kolibri/{tab-index-68b5c2de.js → tab-index-cbaa8f9d.js} +1 -1
  436. package/dist/kolibri/validation-a02a4280.js +4 -0
  437. package/dist/kolibri/validation-e0ef3555.js +4 -0
  438. package/dist/types/components/@deprecated/input/controller.d.ts +0 -1
  439. package/dist/types/components/@deprecated/input/types.d.ts +1 -2
  440. package/dist/types/components/button/component.d.ts +11 -4
  441. package/dist/types/components/button/shadow.d.ts +5 -2
  442. package/dist/types/components/button-link/component.d.ts +5 -2
  443. package/dist/types/components/card/component.d.ts +9 -1
  444. package/dist/types/components/card/types.d.ts +7 -1
  445. package/dist/types/components/input/types.d.ts +1 -1
  446. package/dist/types/components/input-adapter-leanup/associated.controller.d.ts +26 -0
  447. package/dist/types/components/input-adapter-leanup/controller.d.ts +2 -11
  448. package/dist/types/components/input-adapter-leanup/types.d.ts +0 -1
  449. package/dist/types/components/input-radio/component.d.ts +2 -1
  450. package/dist/types/components/input-radio/controller.d.ts +2 -1
  451. package/dist/types/components/split-button/component.d.ts +5 -2
  452. package/dist/types/components/textarea/component.d.ts +1 -1
  453. package/dist/types/components/tooltip/component.d.ts +3 -2
  454. package/dist/types/components/tooltip/types.d.ts +3 -4
  455. package/dist/types/components.d.ts +90 -20
  456. package/dist/types/types/button-link-text.d.ts +2 -1
  457. package/dist/types/types/button-link.d.ts +11 -10
  458. package/dist/types/types/props/has-closer.d.ts +2 -1
  459. package/dist/types/types/props/id.d.ts +6 -0
  460. package/dist/types/types/props/name.d.ts +8 -0
  461. package/dist/types/utils/events.d.ts +2 -1
  462. package/dist/types/utils/prop.validators.d.ts +2 -1
  463. package/doc/avatar.md +1 -7
  464. package/doc/badge.md +8 -8
  465. package/doc/button-link.md +21 -20
  466. package/doc/button.md +24 -23
  467. package/doc/card.md +15 -7
  468. package/doc/image.md +0 -13
  469. package/doc/input-color.md +21 -21
  470. package/doc/input-date.md +27 -27
  471. package/doc/input-email.md +29 -29
  472. package/doc/input-file.md +21 -21
  473. package/doc/input-number.md +28 -28
  474. package/doc/input-password.md +26 -26
  475. package/doc/input-text.md +29 -29
  476. package/doc/split-button.md +2 -1
  477. package/doc/tooltip.md +1 -1
  478. package/jest-test-results.json +1 -1
  479. package/package.json +1 -1
  480. package/vscode-custom-data.json +29 -1
  481. package/dist/cjs/aria-selected-02d3b668.js +0 -4
  482. package/dist/cjs/button-link-71178f84.js +0 -4
  483. package/dist/cjs/button-link-71178f84.js.map +0 -1
  484. package/dist/cjs/controller-3427a8e1.js +0 -4
  485. package/dist/cjs/controller-b3c817f5.js.map +0 -1
  486. package/dist/cjs/controller-dd3ad311.js +0 -4
  487. package/dist/cjs/controller-dd3ad311.js.map +0 -1
  488. package/dist/cjs/events-b49161e2.js +0 -4
  489. package/dist/cjs/events-b49161e2.js.map +0 -1
  490. package/dist/cjs/has-closer-59b85ff2.js +0 -4
  491. package/dist/cjs/has-closer-59b85ff2.js.map +0 -1
  492. package/dist/cjs/hide-label-f1994213.js +0 -4
  493. package/dist/cjs/i18n-25b8027d.js +0 -4
  494. package/dist/cjs/image-source-1de9289e.js +0 -4
  495. package/dist/cjs/prop.validators-f5e03a86.js.map +0 -1
  496. package/dist/cjs/rows-fd1985a2.js +0 -4
  497. package/dist/cjs/show-73709d10.js +0 -4
  498. package/dist/cjs/suggestions-4b038d0d.js +0 -4
  499. package/dist/cjs/validation-64ec3814.js +0 -4
  500. package/dist/components/shadow4.js +0 -4
  501. package/dist/components/shadow4.js.map +0 -1
  502. package/dist/esm/app-globals-00a31555.js +0 -4
  503. package/dist/esm/button-link-ec735ae4.js.map +0 -1
  504. package/dist/esm/controller-075502c7.js.map +0 -1
  505. package/dist/esm/controller-11107d10.js +0 -4
  506. package/dist/esm/controller-11107d10.js.map +0 -1
  507. package/dist/esm/events-3762d15f.js +0 -4
  508. package/dist/esm/events-3762d15f.js.map +0 -1
  509. package/dist/esm/has-closer-92997664.js.map +0 -1
  510. package/dist/esm/i18n-263eac14.js +0 -4
  511. package/dist/esm/prop.validators-2d07ec24.js.map +0 -1
  512. package/dist/esm/validation-205f5848.js +0 -4
  513. package/dist/kolibri/app-globals-00a31555.js +0 -4
  514. package/dist/kolibri/aria-selected-84f327a8.js +0 -4
  515. package/dist/kolibri/button-link-ec735ae4.js +0 -4
  516. package/dist/kolibri/button-link-ec735ae4.js.map +0 -1
  517. package/dist/kolibri/controller-075502c7.js.map +0 -1
  518. package/dist/kolibri/controller-11107d10.js +0 -4
  519. package/dist/kolibri/controller-11107d10.js.map +0 -1
  520. package/dist/kolibri/events-3762d15f.js +0 -4
  521. package/dist/kolibri/events-3762d15f.js.map +0 -1
  522. package/dist/kolibri/has-closer-92997664.js +0 -4
  523. package/dist/kolibri/has-closer-92997664.js.map +0 -1
  524. package/dist/kolibri/hide-label-52f16a0e.js +0 -4
  525. package/dist/kolibri/i18n-263eac14.js +0 -4
  526. package/dist/kolibri/i18n-263eac14.js.map +0 -1
  527. package/dist/kolibri/image-source-16e365db.js +0 -4
  528. package/dist/kolibri/prop.validators-2d07ec24.js.map +0 -1
  529. package/dist/kolibri/rows-97254602.js +0 -4
  530. package/dist/kolibri/show-2d014a9e.js +0 -4
  531. package/dist/kolibri/validation-205f5848.js +0 -4
  532. package/dist/kolibri/validation-4d262227.js +0 -4
  533. /package/dist/kolibri/{a11y.tipps-49a594cd.js.map → a11y.tipps-821939d5.js.map} +0 -0
  534. /package/dist/kolibri/{align-e2a13b3a.js.map → align-e9fb20f3.js.map} +0 -0
  535. /package/dist/kolibri/{app-globals-00a31555.js.map → app-globals-850b7823.js.map} +0 -0
  536. /package/dist/kolibri/{aria-current-d47c249a.js.map → aria-current-37a9a3f1.js.map} +0 -0
  537. /package/dist/kolibri/{aria-selected-84f327a8.js.map → aria-selected-0386e515.js.map} +0 -0
  538. /package/dist/kolibri/{color-856020a7.js.map → color-f4345d8c.js.map} +0 -0
  539. /package/dist/kolibri/{controller-83496a69.js.map → controller-3a980b61.js.map} +0 -0
  540. /package/dist/kolibri/{controller-2fac18fe.js.map → controller-68f2cdb6.js.map} +0 -0
  541. /package/dist/kolibri/{controller-961f177e.js.map → controller-a49613e3.js.map} +0 -0
  542. /package/dist/kolibri/{controller-40a0026f.js.map → controller-efa536a1.js.map} +0 -0
  543. /package/dist/kolibri/{controller-icon-9c32ee0e.js.map → controller-icon-3babfd57.js.map} +0 -0
  544. /package/dist/kolibri/{devtools-920eaf32.js.map → devtools-5e004f63.js.map} +0 -0
  545. /package/dist/kolibri/{disabled-5ebf1c54.js.map → disabled-5ede917f.js.map} +0 -0
  546. /package/dist/kolibri/{hide-label-52f16a0e.js.map → hide-label-718f4d6f.js.map} +0 -0
  547. /package/dist/kolibri/{icon-1a0c1115.js.map → icon-01c8c999.js.map} +0 -0
  548. /package/dist/kolibri/{image-source-16e365db.js.map → image-source-d19a1378.js.map} +0 -0
  549. /package/dist/kolibri/{label-78ab78c2.js.map → label-7743754d.js.map} +0 -0
  550. /package/dist/kolibri/{rows-97254602.js.map → rows-ee52c8a7.js.map} +0 -0
  551. /package/dist/kolibri/{show-2d014a9e.js.map → show-ca4f53ef.js.map} +0 -0
  552. /package/dist/kolibri/{suggestions-21f5a2d2.js.map → suggestions-c770bce0.js.map} +0 -0
  553. /package/dist/kolibri/{tab-index-68b5c2de.js.map → tab-index-cbaa8f9d.js.map} +0 -0
  554. /package/dist/kolibri/{validation-205f5848.js.map → validation-a02a4280.js.map} +0 -0
  555. /package/dist/kolibri/{validation-4d262227.js.map → validation-e0ef3555.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"names":["TextareaController","InputController","constructor","component","name","host","super","this","afterSyncCharCounter","_value","length","state","_currentLength","validateHasCounter","value","watchBoolean","hooks","afterPatch","validateMaxLength","watchNumber","min","validatePlaceholder","watchString","validateReadOnly","validateResize","watchValidator","Set","validateRequired","validateRows","validateValue","setFormAssociatedValue","componentWillLoad","_hasCounter","_maxLength","_placeholder","_readOnly","_resize","_required","_rows","defaultStyleCss","increaseTextareaHeight","el","style","overflow","currentRows","rows","rowHeight","clientHeight","nextRows","Math","round","scrollHeight","KolTextarea","render","ariaDescribedBy","getRenderStates","hasExpertSlot","_label","h","Host","class","_hasValue","textarea","_hideLabel","_alert","_disabled","_error","_hint","_id","_touched","onClick","_a","ref","focus","slot","Object","assign","catchRef","title","accessKey","_accessKey","join","undefined","autoCapitalize","autoCorrect","disabled","id","maxlength","_name","readOnly","required","placeholder","spellcheck","controller","onFacade","onKeyUp","onChange","resize","hidden","_align","_tooltipAlign","hostRef","propagateFocus","event","HTMLTextAreaElement","setState","_adjustHeight","nonce","validateAccessKey","validateAdjustHeight","validateAlert","validateDisabled","validateError","validateHideLabel","validateHint","validateId","validateLabel","validateName","validateOn","validateSyncValueBySelector","validateTabIndex","validateTouched","addValueChangeListener","v"],"sources":["src/components/textarea/controller.ts","src/components/textarea/style.css?tag=kol-textarea&mode=default&encapsulation=shadow","src/components/textarea/component.tsx"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { RowsPropType, validateRows } from '../../types/props/rows';\nimport { watchBoolean, watchNumber, watchString, watchValidator } from '../../utils/prop.validators';\nimport { InputController } from '../@deprecated/input/controller';\nimport { CSSResize, Props, Watches } from './types';\n\nexport class TextareaController extends InputController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props;\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\tprivate afterSyncCharCounter = () => {\n\t\tif (typeof this.component._value === 'string' && this.component._value.length > 0) {\n\t\t\tthis.component.state._currentLength = this.component._value.length;\n\t\t}\n\t};\n\n\tpublic validateHasCounter(value?: boolean): void {\n\t\twatchBoolean(this.component, '_hasCounter', value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: this.afterSyncCharCounter,\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic validateMaxLength(value?: number): void {\n\t\twatchNumber(this.component, '_maxLength', value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: this.afterSyncCharCounter,\n\t\t\t},\n\t\t\tmin: 0,\n\t\t});\n\t}\n\n\tpublic validatePlaceholder(value?: string): void {\n\t\twatchString(this.component, '_placeholder', value);\n\t}\n\n\tpublic validateReadOnly(value?: boolean): void {\n\t\twatchBoolean(this.component, '_readOnly', value);\n\t}\n\n\tpublic validateResize(value?: CSSResize): void {\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_resize',\n\t\t\t(value) => typeof value === 'string' && (value === 'both' || value === 'horizontal' || value === 'none' || value === 'vertical'),\n\t\t\tnew Set('String {both, horizontal, vertical, none}'),\n\t\t\tvalue\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): void {\n\t\tvalidateRows(this.component, value);\n\t}\n\n\tpublic validateValue(value?: string): void {\n\t\twatchString(this.component, '_value', value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: this.afterSyncCharCounter,\n\t\t\t},\n\t\t});\n\t\tthis.setFormAssociatedValue(this.component._value as string);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateHasCounter(this.component._hasCounter);\n\t\tthis.validateMaxLength(this.component._maxLength);\n\t\tthis.validatePlaceholder(this.component._placeholder);\n\t\tthis.validateReadOnly(this.component._readOnly);\n\t\tthis.validateResize(this.component._resize);\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","import { Component, Element, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { InputTypeOnDefault } from '../../types/input/types';\nimport { Align } from '../../types/props/align';\nimport { LabelWithExpertSlotPropType } from '../../types/props/label';\nimport { RowsPropType } from '../../types/props/rows';\nimport { nonce } from '../../utils/dev.utils';\nimport { setState } from '../../utils/prop.validators';\nimport { propagateFocus } from '../../utils/reuse';\nimport { getRenderStates } from '../input/controller';\nimport { TextareaController } from './controller';\nimport { ComponentApi, CSSResize, States } from './types';\n\n/**\n * https://stackoverflow.com/questions/17772260/textarea-auto-height\n */\nconst increaseTextareaHeight = (el: HTMLTextAreaElement): number => {\n\tel.style.overflow = 'hidden'; // verhindert, dass ein Scrollbalken kurz angezeigt wird\n\tconst currentRows = el.rows;\n\tconst rowHeight = el.clientHeight / currentRows;\n\tel.rows = 1;\n\tconst nextRows = Math.round(el.scrollHeight / rowHeight);\n\tel.rows = currentRows;\n\treturn nextRows;\n};\n\n/**\n * @slot - Die Beschriftung des Eingabefeldes.\n */\n@Component({\n\ttag: 'kol-textarea',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolTextarea implements ComponentApi {\n\t@Element() private readonly host?: HTMLKolTextareaElement;\n\tprivate ref?: HTMLTextAreaElement;\n\n\tprivate readonly catchRef = (ref?: HTMLTextAreaElement) => {\n\t\tthis.ref = ref;\n\t\tpropagateFocus(this.host, this.ref);\n\t};\n\n\tpublic render(): JSX.Element {\n\t\tconst { ariaDescribedBy } = getRenderStates(this.state);\n\t\tconst hasExpertSlot = this.state._label === false; // _label=\"\" or _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={{ textarea: true, 'hide-label': !!this.state._hideLabel, 'has-counter': !!this.state._hasCounter }}\n\t\t\t\t\t_alert={this.state._alert}\n\t\t\t\t\t_currentLength={this.state._currentLength}\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_hasCounter={this.state._hasCounter}\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_id={this.state._id}\n\t\t\t\t\t_maxLength={this.state._maxLength}\n\t\t\t\t\t_readOnly={this.state._readOnly}\n\t\t\t\t\t_required={this.state._required}\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{/* TODO: der folgende Slot ohne Name muss später entfernt werden */}\n\t\t\t\t\t<span slot=\"label\">{hasExpertSlot ? <slot></slot> : this.state._label}</span>\n\t\t\t\t\t<div slot=\"input\">\n\t\t\t\t\t\t<textarea\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-labelledby={`${this.state._id}-label`}\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\tmaxlength={this.state._maxLength}\n\t\t\t\t\t\t\tname={this.state._name}\n\t\t\t\t\t\t\treadOnly={this.state._readOnly}\n\t\t\t\t\t\t\trequired={this.state._required}\n\t\t\t\t\t\t\trows={this.state._rows}\n\t\t\t\t\t\t\tplaceholder={this.state._placeholder}\n\t\t\t\t\t\t\tspellcheck=\"false\"\n\t\t\t\t\t\t\t{...this.controller.onFacade}\n\t\t\t\t\t\t\tonKeyUp={this.onChange}\n\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\tresize: this.state._resize,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\tvalue={this.state._value}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<kol-tooltip\n\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t * Dieses Aria-Hidden verhindert das doppelte Vorlesen des Labels,\n\t\t\t\t\t\t\t * verhindert aber nicht das Aria-Labelledby vorgelesen wird.\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\t\t\thidden={hasExpertSlot || !this.state._hideLabel}\n\t\t\t\t\t\t\t_align={this._tooltipAlign}\n\t\t\t\t\t\t\t_id={`${this.state._id}-tooltip`}\n\t\t\t\t\t\t\t_label={typeof this.state._label === 'string' ? this.state._label : ''}\n\t\t\t\t\t\t></kol-tooltip>\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: TextareaController;\n\n\t/**\n\t * Gibt an, mit welcher Tastenkombination man das interaktive Element der Komponente auslösen oder fokussieren kann.\n\t */\n\t@Prop() public _accessKey?: string;\n\n\t/**\n\t * Passt die Höhe des Eingabefeldes automatisch an den Füllstand an.\n\t */\n\t@Prop() public _adjustHeight?: boolean = false;\n\n\t/**\n\t * Gibt an, ob der Screenreader die Meldung aktiv vorlesen soll.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _alert?: boolean = true;\n\n\t/**\n\t * Deaktiviert das interaktive Element in der Komponente und erlaubt keine Interaktion mehr damit.\n\t */\n\t@Prop() public _disabled?: boolean;\n\n\t/**\n\t * Gibt den Text für eine Fehlermeldung an.\n\t */\n\t@Prop() public _error?: string;\n\n\t/**\n\t * Aktiviert den Zeichenanzahlzähler am unteren Rand des Eingabefeldes.\n\t */\n\t@Prop() public _hasCounter?: boolean;\n\n\t/**\n\t * Blendet die Beschriftung (Label) aus und zeigt sie stattdessen mittels eines Tooltips an.\n\t */\n\t@Prop() public _hideLabel?: boolean;\n\n\t/**\n\t * Gibt den Hinweistext an.\n\t */\n\t@Prop() public _hint?: string = '';\n\n\t/**\n\t * Gibt die interne ID des primären Elements in der Komponente an.\n\t */\n\t@Prop() public _id?: string;\n\n\t/**\n\t * Setzt die sichtbare oder semantische Beschriftung der Komponente (z.B. Aria-Label, Label, Headline, Caption, Summary usw.).\n\t */\n\t@Prop() public _label!: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Gibt an, wie viele Zeichen maximal eingegeben werden können.\n\t */\n\t@Prop() public _maxLength?: number;\n\n\t/**\n\t * Gibt den technischen Namen des Eingabefeldes an.\n\t */\n\t@Prop() public _name?: string;\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 * Gibt den Platzhalter des Eingabefeldes an, wenn es leer ist.\n\t */\n\t@Prop() public _placeholder?: string;\n\n\t/**\n\t * Setzt das Eingabefeld in den schreibgeschützten Modus.\n\t */\n\t@Prop() public _readOnly?: boolean;\n\n\t/**\n\t * Gibt an, ob die Größe des Eingabefeldes von Nutzer:innen geändert werden kann. (https://developer.mozilla.org/de/docs/Web/CSS/resize)\n\t */\n\t@Prop() public _resize?: CSSResize = 'vertical';\n\n\t/**\n\t * Macht das Eingabeelement zu einem Pflichtfeld.\n\t */\n\t@Prop() public _required?: boolean;\n\n\t/**\n\t * Defines how many rows of text should be visible at the same time.\n\t */\n\t@Prop({ mutable: true, reflect: false }) 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?: string;\n\n\t/**\n\t * Gibt an, welchen Tab-Index das primäre Element in der Komponente hat. (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 * Gibt an, ob der Tooltip bevorzugt entweder oben, rechts, unten oder links angezeigt werden soll.\n\t */\n\t@Prop() public _tooltipAlign?: Align = 'top';\n\n\t/**\n\t * Gibt an, ob dieses Eingabefeld von Nutzer:innen einmal besucht/berührt wurde.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _touched?: boolean = false;\n\n\t/**\n\t * Gibt den Wert des Eingabefeldes an.\n\t */\n\t@Prop() public _value?: string;\n\n\t@State() public state: States = {\n\t\t_adjustHeight: false,\n\t\t_currentLength: 0,\n\t\t_hasValue: false,\n\t\t_id: `id-${nonce()}`, // ⚠ required\n\t\t_label: false, // ⚠ required\n\t\t_resize: 'vertical',\n\t};\n\n\tpublic constructor() {\n\t\tthis.controller = new TextareaController(this, 'textarea', 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('_adjustHeight')\n\tpublic validateAdjustHeight(value?: boolean): void {\n\t\tthis.controller.validateAdjustHeight(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('_hasCounter')\n\tpublic validateHasCounter(value?: boolean): void {\n\t\tthis.controller.validateHasCounter(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('_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('_maxLength')\n\tpublic validateMaxLength(value?: number): void {\n\t\tthis.controller.validateMaxLength(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('_placeholder')\n\tpublic validatePlaceholder(value?: string): void {\n\t\tthis.controller.validatePlaceholder(value);\n\t}\n\n\t@Watch('_readOnly')\n\tpublic validateReadOnly(value?: boolean): void {\n\t\tthis.controller.validateReadOnly(value);\n\t}\n\n\t@Watch('_resize')\n\tpublic validateResize(value?: CSSResize): void {\n\t\tthis.controller.validateResize(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?: string): 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?: string): 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();\n\n\t\tthis.state._hasValue = !!this.state._value;\n\t\tthis.controller.addValueChangeListener((v) => (this.state._hasValue = !!v));\n\t}\n\n\tprivate readonly onChange = (event: Event) => {\n\t\tif (this.ref instanceof HTMLTextAreaElement) {\n\t\t\tsetState(this, '_currentLength', this.ref.value.length);\n\t\t\tif (this.state._adjustHeight) {\n\t\t\t\tthis._rows = increaseTextareaHeight(this.ref);\n\t\t\t}\n\t\t}\n\t\tif (typeof this.controller.onFacade.onChange === 'function') {\n\t\t\tthis.controller.onFacade.onChange(event);\n\t\t}\n\t};\n}\n"],"mappings":";;;sdAOaA,UAA2BC,EAGvC,WAAAC,CAAmBC,EAA8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BP,KAAKsF,WAAWlE,iBAAiBb,E,CAI3B,YAAAc,CAAad,GACnBP,KAAKsF,WAAWjE,aAAad,E,CAIvB,2BAAAyG,CAA4BzG,GAClCP,KAAKsF,WAAW0B,4BAA4BzG,E,CAItC,gBAAA0G,CAAiB1G,GACvBP,KAAKsF,WAAW2B,iBAAiB1G,E,CAI3B,eAAA2G,CAAgB3G,GACtBP,KAAKsF,WAAW4B,gBAAgB3G,E,CAI1B,aAAAe,CAAcf,GACpBP,KAAKsF,WAAWhE,cAAcf,E,CAGxB,iBAAAiB,GACNxB,KAAKyD,OAASzD,KAAKyD,SAAW,KAC9BzD,KAAK8D,SAAW9D,KAAK8D,WAAa,KAClC9D,KAAKsF,WAAW9D,oBAEhBxB,KAAKI,MAAMkD,YAActD,KAAKI,MAAMF,OACpCF,KAAKsF,WAAW6B,wBAAwBC,GAAOpH,KAAKI,MAAMkD,YAAc8D,G"}
1
+ {"version":3,"names":["TextareaController","InputController","constructor","component","name","host","super","this","afterSyncCharCounter","_value","length","state","_currentLength","validateHasCounter","value","watchBoolean","hooks","afterPatch","validateMaxLength","watchNumber","min","validatePlaceholder","watchString","validateReadOnly","validateResize","watchValidator","Set","validateRequired","validateRows","validateValue","setFormAssociatedValue","componentWillLoad","_hasCounter","_maxLength","_placeholder","_readOnly","_resize","_required","_rows","defaultStyleCss","increaseTextareaHeight","el","style","overflow","currentRows","rows","rowHeight","clientHeight","nextRows","Math","round","scrollHeight","KolTextarea","render","ariaDescribedBy","getRenderStates","hasExpertSlot","_label","h","Host","class","_hasValue","textarea","_hideLabel","_alert","_disabled","_error","_hint","_id","_touched","onClick","_a","ref","focus","slot","Object","assign","catchRef","title","accessKey","_accessKey","join","undefined","autoCapitalize","autoCorrect","disabled","id","maxlength","_name","readOnly","required","placeholder","spellcheck","controller","onFacade","onKeyUp","resize","hidden","_align","_tooltipAlign","hostRef","propagateFocus","HTMLTextAreaElement","setState","_adjustHeight","nonce","validateAccessKey","validateAdjustHeight","validateAlert","validateDisabled","validateError","validateHideLabel","validateHint","validateId","validateLabel","validateName","validateOn","validateSyncValueBySelector","validateTabIndex","validateTouched","addValueChangeListener","v"],"sources":["src/components/textarea/controller.ts","src/components/textarea/style.css?tag=kol-textarea&mode=default&encapsulation=shadow","src/components/textarea/component.tsx"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { RowsPropType, validateRows } from '../../types/props/rows';\nimport { watchBoolean, watchNumber, watchString, watchValidator } from '../../utils/prop.validators';\nimport { InputController } from '../@deprecated/input/controller';\nimport { CSSResize, Props, Watches } from './types';\n\nexport class TextareaController extends InputController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props;\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\tprivate afterSyncCharCounter = () => {\n\t\tif (typeof this.component._value === 'string' && this.component._value.length > 0) {\n\t\t\tthis.component.state._currentLength = this.component._value.length;\n\t\t}\n\t};\n\n\tpublic validateHasCounter(value?: boolean): void {\n\t\twatchBoolean(this.component, '_hasCounter', value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: this.afterSyncCharCounter,\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic validateMaxLength(value?: number): void {\n\t\twatchNumber(this.component, '_maxLength', value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: this.afterSyncCharCounter,\n\t\t\t},\n\t\t\tmin: 0,\n\t\t});\n\t}\n\n\tpublic validatePlaceholder(value?: string): void {\n\t\twatchString(this.component, '_placeholder', value);\n\t}\n\n\tpublic validateReadOnly(value?: boolean): void {\n\t\twatchBoolean(this.component, '_readOnly', value);\n\t}\n\n\tpublic validateResize(value?: CSSResize): void {\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_resize',\n\t\t\t(value) => typeof value === 'string' && (value === 'both' || value === 'horizontal' || value === 'none' || value === 'vertical'),\n\t\t\tnew Set('String {both, horizontal, vertical, none}'),\n\t\t\tvalue\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): void {\n\t\tvalidateRows(this.component, value);\n\t}\n\n\tpublic validateValue(value?: string): void {\n\t\twatchString(this.component, '_value', value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: this.afterSyncCharCounter,\n\t\t\t},\n\t\t});\n\t\tthis.setFormAssociatedValue(this.component._value as string);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateHasCounter(this.component._hasCounter);\n\t\tthis.validateMaxLength(this.component._maxLength);\n\t\tthis.validatePlaceholder(this.component._placeholder);\n\t\tthis.validateReadOnly(this.component._readOnly);\n\t\tthis.validateResize(this.component._resize);\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","import { Component, Element, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { InputTypeOnDefault } from '../../types/input/types';\nimport { Align } from '../../types/props/align';\nimport { LabelWithExpertSlotPropType } from '../../types/props/label';\nimport { RowsPropType } from '../../types/props/rows';\nimport { nonce } from '../../utils/dev.utils';\nimport { setState } from '../../utils/prop.validators';\nimport { propagateFocus } from '../../utils/reuse';\nimport { getRenderStates } from '../input/controller';\nimport { TextareaController } from './controller';\nimport { ComponentApi, CSSResize, States } from './types';\n\n/**\n * https://stackoverflow.com/questions/17772260/textarea-auto-height\n */\nconst increaseTextareaHeight = (el: HTMLTextAreaElement): number => {\n\tel.style.overflow = 'hidden'; // verhindert, dass ein Scrollbalken kurz angezeigt wird\n\tconst currentRows = el.rows;\n\tconst rowHeight = el.clientHeight / currentRows;\n\tel.rows = 1;\n\tconst nextRows = Math.round(el.scrollHeight / rowHeight);\n\tel.rows = currentRows;\n\treturn nextRows;\n};\n\n/**\n * @slot - Die Beschriftung des Eingabefeldes.\n */\n@Component({\n\ttag: 'kol-textarea',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolTextarea implements ComponentApi {\n\t@Element() private readonly host?: HTMLKolTextareaElement;\n\tprivate ref?: HTMLTextAreaElement;\n\n\tprivate readonly catchRef = (ref?: HTMLTextAreaElement) => {\n\t\tthis.ref = ref;\n\t\tpropagateFocus(this.host, this.ref);\n\t};\n\n\tpublic render(): JSX.Element {\n\t\tconst { ariaDescribedBy } = getRenderStates(this.state);\n\t\tconst hasExpertSlot = this.state._label === false; // _label=\"\" or _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={{ textarea: true, 'hide-label': !!this.state._hideLabel, 'has-counter': !!this.state._hasCounter }}\n\t\t\t\t\t_alert={this.state._alert}\n\t\t\t\t\t_currentLength={this.state._currentLength}\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_hasCounter={this.state._hasCounter}\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_id={this.state._id}\n\t\t\t\t\t_maxLength={this.state._maxLength}\n\t\t\t\t\t_readOnly={this.state._readOnly}\n\t\t\t\t\t_required={this.state._required}\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{/* TODO: der folgende Slot ohne Name muss später entfernt werden */}\n\t\t\t\t\t<span slot=\"label\">{hasExpertSlot ? <slot></slot> : this.state._label}</span>\n\t\t\t\t\t<div slot=\"input\">\n\t\t\t\t\t\t<textarea\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-labelledby={`${this.state._id}-label`}\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\tmaxlength={this.state._maxLength}\n\t\t\t\t\t\t\tname={this.state._name}\n\t\t\t\t\t\t\treadOnly={this.state._readOnly}\n\t\t\t\t\t\t\trequired={this.state._required}\n\t\t\t\t\t\t\trows={this.state._rows}\n\t\t\t\t\t\t\tplaceholder={this.state._placeholder}\n\t\t\t\t\t\t\tspellcheck=\"false\"\n\t\t\t\t\t\t\t{...this.controller.onFacade}\n\t\t\t\t\t\t\tonKeyUp={this.onKeyUp}\n\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\tresize: this.state._resize,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\tvalue={this.state._value}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<kol-tooltip\n\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t * Dieses Aria-Hidden verhindert das doppelte Vorlesen des Labels,\n\t\t\t\t\t\t\t * verhindert aber nicht das Aria-Labelledby vorgelesen wird.\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\t\t\thidden={hasExpertSlot || !this.state._hideLabel}\n\t\t\t\t\t\t\t_align={this._tooltipAlign}\n\t\t\t\t\t\t\t_id={`${this.state._id}-tooltip`}\n\t\t\t\t\t\t\t_label={typeof this.state._label === 'string' ? this.state._label : ''}\n\t\t\t\t\t\t></kol-tooltip>\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: TextareaController;\n\n\t/**\n\t * Gibt an, mit welcher Tastenkombination man das interaktive Element der Komponente auslösen oder fokussieren kann.\n\t */\n\t@Prop() public _accessKey?: string;\n\n\t/**\n\t * Passt die Höhe des Eingabefeldes automatisch an den Füllstand an.\n\t */\n\t@Prop() public _adjustHeight?: boolean = false;\n\n\t/**\n\t * Gibt an, ob der Screenreader die Meldung aktiv vorlesen soll.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _alert?: boolean = true;\n\n\t/**\n\t * Deaktiviert das interaktive Element in der Komponente und erlaubt keine Interaktion mehr damit.\n\t */\n\t@Prop() public _disabled?: boolean;\n\n\t/**\n\t * Gibt den Text für eine Fehlermeldung an.\n\t */\n\t@Prop() public _error?: string;\n\n\t/**\n\t * Aktiviert den Zeichenanzahlzähler am unteren Rand des Eingabefeldes.\n\t */\n\t@Prop() public _hasCounter?: boolean;\n\n\t/**\n\t * Blendet die Beschriftung (Label) aus und zeigt sie stattdessen mittels eines Tooltips an.\n\t */\n\t@Prop() public _hideLabel?: boolean;\n\n\t/**\n\t * Gibt den Hinweistext an.\n\t */\n\t@Prop() public _hint?: string = '';\n\n\t/**\n\t * Gibt die interne ID des primären Elements in der Komponente an.\n\t */\n\t@Prop() public _id?: string;\n\n\t/**\n\t * Setzt die sichtbare oder semantische Beschriftung der Komponente (z.B. Aria-Label, Label, Headline, Caption, Summary usw.).\n\t */\n\t@Prop() public _label!: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Gibt an, wie viele Zeichen maximal eingegeben werden können.\n\t */\n\t@Prop() public _maxLength?: number;\n\n\t/**\n\t * Gibt den technischen Namen des Eingabefeldes an.\n\t */\n\t@Prop() public _name?: string;\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 * Gibt den Platzhalter des Eingabefeldes an, wenn es leer ist.\n\t */\n\t@Prop() public _placeholder?: string;\n\n\t/**\n\t * Setzt das Eingabefeld in den schreibgeschützten Modus.\n\t */\n\t@Prop() public _readOnly?: boolean;\n\n\t/**\n\t * Gibt an, ob die Größe des Eingabefeldes von Nutzer:innen geändert werden kann. (https://developer.mozilla.org/de/docs/Web/CSS/resize)\n\t */\n\t@Prop() public _resize?: CSSResize = 'vertical';\n\n\t/**\n\t * Macht das Eingabeelement zu einem Pflichtfeld.\n\t */\n\t@Prop() public _required?: boolean;\n\n\t/**\n\t * Defines how many rows of text should be visible at the same time.\n\t */\n\t@Prop({ mutable: true, reflect: false }) 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?: string;\n\n\t/**\n\t * Gibt an, welchen Tab-Index das primäre Element in der Komponente hat. (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 * Gibt an, ob der Tooltip bevorzugt entweder oben, rechts, unten oder links angezeigt werden soll.\n\t */\n\t@Prop() public _tooltipAlign?: Align = 'top';\n\n\t/**\n\t * Gibt an, ob dieses Eingabefeld von Nutzer:innen einmal besucht/berührt wurde.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _touched?: boolean = false;\n\n\t/**\n\t * Gibt den Wert des Eingabefeldes an.\n\t */\n\t@Prop() public _value?: string;\n\n\t@State() public state: States = {\n\t\t_adjustHeight: false,\n\t\t_currentLength: 0,\n\t\t_hasValue: false,\n\t\t_id: `id-${nonce()}`, // ⚠ required\n\t\t_label: false, // ⚠ required\n\t\t_resize: 'vertical',\n\t};\n\n\tpublic constructor() {\n\t\tthis.controller = new TextareaController(this, 'textarea', 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('_adjustHeight')\n\tpublic validateAdjustHeight(value?: boolean): void {\n\t\tthis.controller.validateAdjustHeight(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('_hasCounter')\n\tpublic validateHasCounter(value?: boolean): void {\n\t\tthis.controller.validateHasCounter(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('_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('_maxLength')\n\tpublic validateMaxLength(value?: number): void {\n\t\tthis.controller.validateMaxLength(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('_placeholder')\n\tpublic validatePlaceholder(value?: string): void {\n\t\tthis.controller.validatePlaceholder(value);\n\t}\n\n\t@Watch('_readOnly')\n\tpublic validateReadOnly(value?: boolean): void {\n\t\tthis.controller.validateReadOnly(value);\n\t}\n\n\t@Watch('_resize')\n\tpublic validateResize(value?: CSSResize): void {\n\t\tthis.controller.validateResize(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?: string): 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?: string): 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();\n\n\t\tthis.state._hasValue = !!this.state._value;\n\t\tthis.controller.addValueChangeListener((v) => (this.state._hasValue = !!v));\n\t}\n\n\tprivate readonly onKeyUp = () => {\n\t\tif (this.ref instanceof HTMLTextAreaElement) {\n\t\t\tsetState(this, '_currentLength', this.ref.value.length);\n\t\t\tif (this.state._adjustHeight) {\n\t\t\t\tthis._rows = increaseTextareaHeight(this.ref);\n\t\t\t}\n\t\t}\n\t};\n}\n"],"mappings":";;;qeAOaA,UAA2BC,EAGvC,WAAAC,CAAmBC,EAA8CC,EAAcC,GAC9EC,MAAMH,EAAWC,EAAMC,GAIhBE,KAAAC,qBAAuB,KAC9B,UAAWD,KAAKJ,UAAUM,SAAW,UAAYF,KAAKJ,UAAUM,OAAOC,OAAS,EAAG,CAClFH,KAAKJ,UAAUQ,MAAMC,eAAiBL,KAAKJ,UAAUM,OAAOC,M,GAL7DH,KAAKJ,UAAYA,C,CASX,kBAAAU,CAAmBC,GACzBC,EAAaR,KAAKJ,UAAW,cAAeW,EAAO,CAClDE,MAAO,CACNC,WAAYV,KAAKC,uB,CAKb,iBAAAU,CAAkBJ,GACxBK,EAAYZ,KAAKJ,UAAW,aAAcW,EAAO,CAChDE,MAAO,CACNC,WAAYV,KAAKC,sBAElBY,IAAK,G,CAIA,mBAAAC,CAAoBP,GAC1BQ,EAAYf,KAAKJ,UAAW,eAAgBW,E,CAGtC,gBAAAS,CAAiBT,GACvBC,EAAaR,KAAKJ,UAAW,YAAaW,E,CAGpC,cAAAU,CAAeV,GACrBW,EACClB,KAAKJ,UACL,WACC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B,aAAalG,E,CAIvB,UAAAmG,CAAWnG,GACjBP,KAAKsF,WAAWoB,WAAWnG,E,CAIrB,aAAAoG,CAAcpG,GACpBP,KAAKsF,WAAWqB,cAAcpG,E,CAIxB,iBAAAI,CAAkBJ,GACxBP,KAAKsF,WAAW3E,kBAAkBJ,E,CAI5B,YAAAqG,CAAarG,GACnBP,KAAKsF,WAAWsB,aAAarG,E,CAIvB,UAAAsG,CAAWtG,GACjBP,KAAKsF,WAAWuB,WAAWtG,E,CAIrB,mBAAAO,CAAoBP,GAC1BP,KAAKsF,WAAWxE,oBAAoBP,E,CAI9B,gBAAAS,CAAiBT,GACvBP,KAAKsF,WAAWtE,iBAAiBT,E,CAI3B,cAAAU,CAAeV,GACrBP,KAAKsF,WAAWrE,eAAeV,E,CAIzB,gBAAAa,CAAiBb,GACvBP,KAAKsF,WAAWlE,iBAAiBb,E,CAI3B,YAAAc,CAAad,GACnBP,KAAKsF,WAAWjE,aAAad,E,CAIvB,2BAAAuG,CAA4BvG,GAClCP,KAAKsF,WAAWwB,4BAA4BvG,E,CAItC,gBAAAwG,CAAiBxG,GACvBP,KAAKsF,WAAWyB,iBAAiBxG,E,CAI3B,eAAAyG,CAAgBzG,GACtBP,KAAKsF,WAAW0B,gBAAgBzG,E,CAI1B,aAAAe,CAAcf,GACpBP,KAAKsF,WAAWhE,cAAcf,E,CAGxB,iBAAAiB,GACNxB,KAAKyD,OAASzD,KAAKyD,SAAW,KAC9BzD,KAAK8D,SAAW9D,KAAK8D,WAAa,KAClC9D,KAAKsF,WAAW9D,oBAEhBxB,KAAKI,MAAMkD,YAActD,KAAKI,MAAMF,OACpCF,KAAKsF,WAAW2B,wBAAwBC,GAAOlH,KAAKI,MAAMkD,YAAc4D,G"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as t,h as i,H as s}from"./index-2c046ff1.js";import{v as e}from"./has-closer-92997664.js";import{v as a}from"./label-78ab78c2.js";import{v as o}from"./show-2d014a9e.js";import{a as h,s as n,e as r,w as l}from"./prop.validators-2d07ec24.js";import{w as d}from"./validation-4d262227.js";import"./a11y.tipps-49a594cd.js";import"./dev.utils-21cabf82.js";import"./reuse-c2156413.js";import"./index-37b5cbcf.js";const p=":host{--a11y-min-size:44px;font-size:inherit}*{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}:host{display:block}:host>div{background-color:#fff;height:0;left:0;position:fixed;top:0;width:100%;z-index:200}:host>div>kol-alert{display:block;margin:auto;max-width:750px}:host>div>kol-button-wc{display:block;margin:auto;position:relative;top:0;width:1em}",c=class{constructor(i){t(this,i),this.handleShowAndDuration=()=>{!0===this.state._show&&"number"==typeof this.state._showDuration&&this.state._showDuration>=0&&(clearTimeout(this.durationTimeout),this.durationTimeout=setTimeout((()=>{this.close()}),this.state._showDuration))},this.close=()=>{var t;this._show=!1,this.state=Object.assign(Object.assign({},this.state),{_show:!1}),void 0!==(null===(t=this._on)||void 0===t?void 0:t.onClose)&&this._on.onClose(new Event("Close"))},this.on={onClose:this.close},this._alert=!0,this._hasCloser=!1,this._heading="",this._label=void 0,this._level=1,this._on=void 0,this._show=!0,this._showDuration=1e4,this._type="default",this.state={_alert:!0,_level:1,_show:!0}}validateAlert(t){h(this,"_alert",t)}validateHasCloser(t){e(this,t)}validateHeading(t){this.validateLabel(t)}validateLabel(t){a(this,t)}validateLevel(t){d(this,t)}validateOn(t){"object"!=typeof t||"function"!=typeof(null==t?void 0:t.onClose)&&!0!==t.onClose||n(this,"_on",{onClose:t.onClose})}validateShow(t){o(this,t,{hooks:{afterPatch:this.handleShowAndDuration}})}validateShowDuration(t){r(this,"_showDuration",t,{hooks:{afterPatch:this.handleShowAndDuration}})}validateType(t){l(this,"_type",(t=>"string"==typeof t&&("default"===t||"error"===t||"info"===t||"success"===t||"warning"===t)),new Set("String {success, info, warning, error}"),t)}componentWillLoad(){this.validateAlert(this._alert),this.validateHasCloser(this._hasCloser),this.validateLabel(this._label||this._heading),this.validateLevel(this._level),this.validateOn(this._on),this.validateShow(this._show),this.validateShowDuration(this._showDuration),this.validateType(this._type)}render(){return i(s,null,this.state._show&&i("div",null,i("kol-alert",{_alert:this.state._alert,_label:this.state._label,_level:this.state._level,_hasCloser:this.state._hasCloser,_type:this.state._type,_variant:"card",_on:this.on},i("slot",null))))}static get watchers(){return{_alert:["validateAlert"],_hasCloser:["validateHasCloser"],_heading:["validateHeading"],_label:["validateLabel"],_level:["validateLevel"],_on:["validateOn"],_show:["validateShow"],_showDuration:["validateShowDuration"],_type:["validateType"]}}};c.style={default:p};export{c as kol_toast};
4
+ import{r as t,h as i,H as e}from"./index-2c046ff1.js";import{v as s}from"./has-closer-86755c14.js";import{v as a}from"./label-7743754d.js";import{v as o}from"./show-ca4f53ef.js";import{a as h,s as n,e as r,w as l}from"./prop.validators-6a2ec81f.js";import{w as d}from"./validation-e0ef3555.js";import"./a11y.tipps-821939d5.js";import"./dev.utils-a47b8ff2.js";import"./reuse-c2156413.js";import"./index-37b5cbcf.js";const p=":host{--a11y-min-size:44px;font-size:inherit}*{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}:host{display:block}:host>div{background-color:#fff;height:0;left:0;position:fixed;top:0;width:100%;z-index:200}:host>div>kol-alert{display:block;margin:auto;max-width:750px}:host>div>kol-button-wc{display:block;margin:auto;position:relative;top:0;width:1em}",c=class{constructor(i){t(this,i),this.handleShowAndDuration=()=>{!0===this.state._show&&"number"==typeof this.state._showDuration&&this.state._showDuration>=0&&(clearTimeout(this.durationTimeout),this.durationTimeout=setTimeout((()=>{this.close()}),this.state._showDuration))},this.close=()=>{var t;this._show=!1,this.state=Object.assign(Object.assign({},this.state),{_show:!1}),void 0!==(null===(t=this._on)||void 0===t?void 0:t.onClose)&&this._on.onClose(new Event("Close"))},this.on={onClose:this.close},this._alert=!0,this._hasCloser=!1,this._heading="",this._label=void 0,this._level=1,this._on=void 0,this._show=!0,this._showDuration=1e4,this._type="default",this.state={_alert:!0,_level:1,_show:!0}}validateAlert(t){h(this,"_alert",t)}validateHasCloser(t){s(this,t)}validateHeading(t){this.validateLabel(t)}validateLabel(t){a(this,t)}validateLevel(t){d(this,t)}validateOn(t){"object"!=typeof t||"function"!=typeof(null==t?void 0:t.onClose)&&!0!==t.onClose||n(this,"_on",{onClose:t.onClose})}validateShow(t){o(this,t,{hooks:{afterPatch:this.handleShowAndDuration}})}validateShowDuration(t){r(this,"_showDuration",t,{hooks:{afterPatch:this.handleShowAndDuration}})}validateType(t){l(this,"_type",(t=>"string"==typeof t&&("default"===t||"error"===t||"info"===t||"success"===t||"warning"===t)),new Set("String {success, info, warning, error}"),t)}componentWillLoad(){this.validateAlert(this._alert),this.validateHasCloser(this._hasCloser),this.validateLabel(this._label||this._heading),this.validateLevel(this._level),this.validateOn(this._on),this.validateShow(this._show),this.validateShowDuration(this._showDuration),this.validateType(this._type)}render(){return i(e,null,this.state._show&&i("div",null,i("kol-alert",{_alert:this.state._alert,_label:this.state._label,_level:this.state._level,_hasCloser:this.state._hasCloser,_type:this.state._type,_variant:"card",_on:this.on},i("slot",null))))}static get watchers(){return{_alert:["validateAlert"],_hasCloser:["validateHasCloser"],_heading:["validateHeading"],_label:["validateLabel"],_level:["validateLevel"],_on:["validateOn"],_show:["validateShow"],_showDuration:["validateShowDuration"],_type:["validateType"]}}};c.style={default:p};export{c as kol_toast};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as i,h as t,H as s}from"./index-2c046ff1.js";import{c as o,b as e,o as a,f as n,s as h,a as l}from"./floating-ui.dom.esm-26e61da8.js";import{w as r}from"./button-link-ec735ae4.js";import{v as d}from"./label-78ab78c2.js";import{g as p,n as c}from"./dev.utils-21cabf82.js";import{d as f}from"./prop.validators-2d07ec24.js";import{p as m}from"./reuse-c2156413.js";import"./a11y.tipps-49a594cd.js";import"./index-37b5cbcf.js";const u=new Set;function b(t){u.forEach((t=>{t.style.setProperty("z-index","999")})),u.add(t),t.style.setProperty("z-index","1000")}function v(t){if(u.delete(t),u.size>0){const t=Array.from(u).pop();t&&t.style.setProperty("z-index","1000")}}const x=":host{--a11y-min-size:44px;font-size:inherit}*{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}kol-tooltip #floating{animation-duration:0.5s;animation-iteration-count:1;animation-name:fadeInOpacity;animation-timing-function:ease-in;box-sizing:border-box;display:none;position:absolute;visibility:hidden;width:max-content;top:0;left:0}kol-tooltip #arrow{height:10px;position:absolute;transform:rotate(45deg);width:10px;z-index:999}kol-tooltip .area{background-color:#fff;color:#000}kol-tooltip kol-span-wc{position:relative;z-index:1000}@keyframes fadeInOpacity{0%{opacity:0}100%{opacity:1}}",y=class{constructor(t){i(this,t),this.alignTooltip=()=>{var t;if("test"!==m&&this.previousSibling&&this.tooltipElement){const i=this.previousSibling,e=this.tooltipElement,s=this.arrowElement,r=[a(null!==(t=null==s?void 0:s.offsetHeight)&&void 0!==t?t:10),n(),h()];s&&r.push(l({element:s})),o(i,e,{placement:this.state._align,middleware:r}).then((({x:t,y:i,middlewareData:o,placement:n})=>{var l,r;Object.assign(e.style,{left:`${t}px`,top:`${i}px`,visibility:"visible"}),s&&((null===(l=o.arrow)||void 0===l?void 0:l.x)?Object.assign(s.style,{left:`${o.arrow.x}px`,top:"bottom"===n?-s.offsetHeight/2+"px":"",bottom:"top"===n?-s.offsetHeight/2+"px":""}):(null===(r=o.arrow)||void 0===r?void 0:r.y)&&Object.assign(s.style,{left:"right"===n?-s.offsetWidth/2+"px":"",right:"left"===n?-s.offsetWidth/2+"px":"",top:`${o.arrow.y}px`}))}))}},this.showTooltip=()=>{if(this.previousSibling&&this.tooltipElement){b(this.tooltipElement),this.tooltipElement.style.setProperty("display","block"),p().body.addEventListener("keyup",this.hideTooltipByEscape);const t=this.previousSibling,i=this.tooltipElement;this.cleanupAutoPositioning=e(t,i,this.alignTooltip)}},this.hideTooltip=()=>{this.tooltipElement&&(v(this.tooltipElement),this.tooltipElement.style.setProperty("display","none"),this.tooltipElement.style.setProperty("visibility","hidden"),this.cleanupAutoPositioning&&(this.cleanupAutoPositioning(),this.cleanupAutoPositioning=void 0))},this.hideTooltipByEscape=t=>{"Escape"===t.key&&(p().body.removeEventListener("keyup",this.hideTooltipByEscape),this.hideTooltip())},this.addListeners=t=>{t.addEventListener("mouseover",this.incrementOverFocusCount),t.addEventListener("focus",this.incrementOverFocusCount),t.addEventListener("mouseout",this.decrementOverFocusCount),t.addEventListener("blur",this.decrementOverFocusCount)},this.removeListeners=t=>{t.removeEventListener("mouseover",this.incrementOverFocusCount),t.removeEventListener("focus",this.incrementOverFocusCount),t.removeEventListener("mouseout",this.decrementOverFocusCount),t.removeEventListener("blur",this.decrementOverFocusCount)},this.resyncListeners=t=>{this.removeListeners(t),this.addListeners(t)},this.catchHostElement=t=>{t&&(this.previousSibling=t.previousElementSibling,this.previousSibling&&this.resyncListeners(this.previousSibling))},this.catchTooltipElement=t=>{this.tooltipElement=t,this.tooltipElement&&this.resyncListeners(this.tooltipElement)},this.catchArrowElement=t=>{this.arrowElement=t},this.overFocusCount=0,this.incrementOverFocusCount=()=>{this.overFocusCount++,this.showOrHideTooltip()},this.decrementOverFocusCount=()=>{this.overFocusCount--,this.showOrHideTooltip()},this.showOrHideTooltip=()=>{clearTimeout(this.overFocusTimeout),this.overFocusTimeout=setTimeout((()=>{clearTimeout(this.overFocusTimeout),this.overFocusCount>0?this.showTooltip():this.hideTooltip()}),250)},this._align="top",this._id=void 0,this._label=void 0,this.state={_align:"top",_id:c(),_label:"…"}}render(){return t(s,{ref:this.catchHostElement},""!==this.state._label&&t("div",{id:"floating",ref:this.catchTooltipElement},t("div",{class:"area",id:"arrow",ref:this.catchArrowElement}),t("kol-span-wc",{class:"area",id:this.state._id,_label:this.state._label})))}validateAlign(t){r(this,"_align",t)}validateId(t){f(this,"_id",t)}validateLabel(t){d(this,t)}componentWillLoad(){this.validateAlign(this._align),this.validateId(this._id),this.validateLabel(this._label)}disconnectedCallback(){this.previousSibling&&this.removeListeners(this.previousSibling),this.tooltipElement&&this.removeListeners(this.tooltipElement),this.cleanupAutoPositioning&&this.cleanupAutoPositioning()}static get watchers(){return{_align:["validateAlign"],_id:["validateId"],_label:["validateLabel"]}}};y.style=x;export{y as kol_tooltip};
4
+ import{r as i,h as t,H as s}from"./index-2c046ff1.js";import{c as o,b as e,o as n,f as a,s as h,a as l}from"./floating-ui.dom.esm-26e61da8.js";import{w as r}from"./button-link-6120340d.js";import{d as p}from"./prop.validators-6a2ec81f.js";import{v as d}from"./label-7743754d.js";import{g as c,n as f}from"./dev.utils-a47b8ff2.js";import{p as m}from"./reuse-c2156413.js";import"./a11y.tipps-821939d5.js";import"./index-37b5cbcf.js";const u=(t,i)=>{p(t,"_id",i)},b=new Set;function v(t){b.forEach((t=>{t.style.setProperty("z-index","999")})),b.add(t),t.style.setProperty("z-index","1000")}function x(t){if(b.delete(t),b.size>0){const t=Array.from(b).pop();t&&t.style.setProperty("z-index","1000")}}const y=":host{--a11y-min-size:44px;font-size:inherit}*{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}kol-tooltip .tooltip-floating{animation-duration:0.5s;animation-iteration-count:1;animation-name:fadeInOpacity;animation-timing-function:ease-in;box-sizing:border-box;display:none;position:absolute;visibility:hidden;width:max-content;top:0;left:0}kol-tooltip .tooltip-area{background-color:#fff;color:#000}kol-tooltip .tooltip-arrow{height:10px;position:absolute;transform:rotate(45deg);width:10px;z-index:999}kol-tooltip .tooltip-content{position:relative;z-index:1000}@keyframes fadeInOpacity{0%{opacity:0}100%{opacity:1}}",g=class{constructor(t){i(this,t),this.alignTooltip=()=>{var t;if("test"!==m&&this.previousSibling&&this.tooltipElement){const i=this.previousSibling,e=this.tooltipElement,s=this.arrowElement,r=[n(null!==(t=null==s?void 0:s.offsetHeight)&&void 0!==t?t:10),a(),h()];s&&r.push(l({element:s})),o(i,e,{placement:this.state._align,middleware:r}).then((({x:t,y:i,middlewareData:o,placement:n})=>{var l,r;Object.assign(e.style,{left:`${t}px`,top:`${i}px`,visibility:"visible"}),s&&((null===(l=o.arrow)||void 0===l?void 0:l.x)?Object.assign(s.style,{left:`${o.arrow.x}px`,top:"bottom"===n?-s.offsetHeight/2+"px":"",bottom:"top"===n?-s.offsetHeight/2+"px":""}):(null===(r=o.arrow)||void 0===r?void 0:r.y)&&Object.assign(s.style,{left:"right"===n?-s.offsetWidth/2+"px":"",right:"left"===n?-s.offsetWidth/2+"px":"",top:`${o.arrow.y}px`}))}))}},this.showTooltip=()=>{if(this.previousSibling&&this.tooltipElement){v(this.tooltipElement),this.tooltipElement.style.setProperty("display","block"),c().body.addEventListener("keyup",this.hideTooltipByEscape);const t=this.previousSibling,i=this.tooltipElement;this.cleanupAutoPositioning=e(t,i,this.alignTooltip)}},this.hideTooltip=()=>{this.tooltipElement&&(x(this.tooltipElement),this.tooltipElement.style.setProperty("display","none"),this.tooltipElement.style.setProperty("visibility","hidden"),this.cleanupAutoPositioning&&(this.cleanupAutoPositioning(),this.cleanupAutoPositioning=void 0))},this.hideTooltipByEscape=t=>{"Escape"===t.key&&(c().body.removeEventListener("keyup",this.hideTooltipByEscape),this.hideTooltip())},this.addListeners=t=>{t.addEventListener("mouseover",this.incrementOverFocusCount),t.addEventListener("focus",this.incrementOverFocusCount),t.addEventListener("mouseout",this.decrementOverFocusCount),t.addEventListener("blur",this.decrementOverFocusCount)},this.removeListeners=t=>{t.removeEventListener("mouseover",this.incrementOverFocusCount),t.removeEventListener("focus",this.incrementOverFocusCount),t.removeEventListener("mouseout",this.decrementOverFocusCount),t.removeEventListener("blur",this.decrementOverFocusCount)},this.resyncListeners=t=>{this.removeListeners(t),this.addListeners(t)},this.catchHostElement=t=>{t&&(this.previousSibling=t.previousElementSibling,this.previousSibling&&this.resyncListeners(this.previousSibling))},this.catchTooltipElement=t=>{this.tooltipElement=t,this.tooltipElement&&this.resyncListeners(this.tooltipElement)},this.catchArrowElement=t=>{this.arrowElement=t},this.overFocusCount=0,this.incrementOverFocusCount=()=>{this.overFocusCount++,this.showOrHideTooltip()},this.decrementOverFocusCount=()=>{this.overFocusCount--,this.showOrHideTooltip()},this.showOrHideTooltip=()=>{clearTimeout(this.overFocusTimeout),this.overFocusTimeout=setTimeout((()=>{clearTimeout(this.overFocusTimeout),this.overFocusCount>0?this.showTooltip():this.hideTooltip()}),250)},this._align="top",this._id=void 0,this._label=void 0,this.state={_align:"top",_id:f(),_label:"…"}}render(){return t(s,{ref:this.catchHostElement},""!==this.state._label&&t("div",{class:"tooltip-floating",ref:this.catchTooltipElement},t("div",{class:"tooltip-area tooltip-arrow",ref:this.catchArrowElement}),t("kol-span-wc",{class:"tooltip-area tooltip-content",id:this.state._id,_label:this.state._label})))}validateAlign(t){r(this,"_align",t)}validateId(t){u(this,t)}validateLabel(t){d(this,t)}componentWillLoad(){this.validateAlign(this._align),this.validateId(this._id),this.validateLabel(this._label)}disconnectedCallback(){this.previousSibling&&this.removeListeners(this.previousSibling),this.tooltipElement&&this.removeListeners(this.tooltipElement),this.cleanupAutoPositioning&&this.cleanupAutoPositioning()}static get watchers(){return{_align:["validateAlign"],_id:["validateId"],_label:["validateLabel"]}}};g.style=y;export{g as kol_tooltip};
@@ -1 +1 @@
1
- {"version":3,"names":["VISIBLE_OVERLAYS","Set","showOverlay","overlay","forEach","visibleOverlay","style","setProperty","add","hideOverlay","delete","size","last","Array","from","pop","styleCss","KolTooltip","this","alignTooltip","processEnv","previousSibling","tooltipElement","target","tooltipEl","arrowEl","arrowElement","middleware","offset","_a","offsetHeight","flip","shift","push","arrow","element","computePosition","placement","state","_align","then","x","y","middlewareData","Object","assign","left","top","visibility","bottom","_b","offsetWidth","right","showTooltip","getDocument","body","addEventListener","hideTooltipByEscape","cleanupAutoPositioning","autoUpdate","hideTooltip","undefined","event","key","removeEventListener","addListeners","el","incrementOverFocusCount","decrementOverFocusCount","removeListeners","resyncListeners","catchHostElement","previousElementSibling","catchTooltipElement","catchArrowElement","overFocusCount","showOrHideTooltip","clearTimeout","overFocusTimeout","setTimeout","_id","nonce","_label","render","h","Host","ref","id","class","validateAlign","value","watchTooltipAlignment","validateId","watchString","validateLabel","componentWillLoad","disconnectedCallback"],"sources":["src/utils/overlay.ts","src/components/tooltip/style.css?tag=kol-tooltip","src/components/tooltip/component.tsx"],"sourcesContent":["/**\n * This file contains the functions used to manage the visible overlays.\n */\n\n/**\n * This set contains all the visible overlays.\n */\nconst VISIBLE_OVERLAYS: Set<HTMLElement> = new Set();\n\n/**\n * This function is used to add an overlay to the visible overlay list.\n * All overlays in the list will have a z-index of 999, except the last\n * one, which will have a z-index of 1000.\n *\n * @param overlay Get the overlay element reference\n */\nexport function showOverlay(overlay: HTMLElement): void {\n\tVISIBLE_OVERLAYS.forEach((visibleOverlay) => {\n\t\tvisibleOverlay.style.setProperty('z-index', '999');\n\t});\n\tVISIBLE_OVERLAYS.add(overlay);\n\toverlay.style.setProperty('z-index', '1000');\n}\n\n/**\n * This function is used to remove an overlay from the visible overlay list.\n * All overlays in the list will have a z-index of 999, except the last\n * one, which will have a z-index of 1000.\n *\n * @param overlay Get the overlay element reference\n */\nexport function hideOverlay(overlay: HTMLElement): void {\n\tVISIBLE_OVERLAYS.delete(overlay);\n\tif (VISIBLE_OVERLAYS.size > 0) {\n\t\tconst last = Array.from(VISIBLE_OVERLAYS).pop();\n\t\tif (last) {\n\t\t\tlast.style.setProperty('z-index', '1000');\n\t\t}\n\t}\n}\n","@import url(../style.css);\nkol-tooltip #floating {\n\tanimation-duration: 0.5s;\n\tanimation-iteration-count: 1;\n\tanimation-name: fadeInOpacity;\n\tanimation-timing-function: ease-in;\n\tbox-sizing: border-box;\n\tdisplay: none;\n\tposition: absolute;\n\tvisibility: hidden;\n\t/* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n\twidth: max-content;\n\ttop: 0;\n\tleft: 0;\n}\nkol-tooltip #arrow {\n\theight: 10px;\n\tposition: absolute;\n\ttransform: rotate(45deg);\n\twidth: 10px;\n\tz-index: 999;\n}\nkol-tooltip .area {\n\tbackground-color: #fff;\n\tcolor: #000;\n}\nkol-tooltip kol-span-wc {\n\tposition: relative;\n\tz-index: 1000;\n}\n@keyframes fadeInOpacity {\n\t0% {\n\t\topacity: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t}\n}\n","import { arrow, autoUpdate, computePosition, flip, offset, shift } from '@floating-ui/dom';\nimport { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { watchTooltipAlignment } from '../../types/button-link';\nimport { Align } from '../../types/props/align';\nimport { LabelPropType, validateLabel } from '../../types/props/label';\nimport { getDocument, nonce } from '../../utils/dev.utils';\nimport { hideOverlay, showOverlay } from '../../utils/overlay';\nimport { watchString } from '../../utils/prop.validators';\nimport { processEnv } from '../../utils/reuse';\nimport { KoliBriTooltipAPI, KoliBriTooltipStates } from './types';\n\n@Component({\n\ttag: 'kol-tooltip',\n\tstyleUrl: './style.css',\n\tshadow: false,\n})\nexport class KolTooltip implements KoliBriTooltipAPI {\n\tprivate previousSibling?: HTMLElement | null;\n\tprivate tooltipElement?: HTMLDivElement;\n\tprivate arrowElement?: HTMLDivElement;\n\tprivate cleanupAutoPositioning?: () => void;\n\n\tprivate alignTooltip = (): void => {\n\t\tif (processEnv !== 'test' && this.previousSibling /* SSR instanceof HTMLElement */ && this.tooltipElement /* SSR instanceof HTMLElement */) {\n\t\t\tconst target = this.previousSibling;\n\t\t\tconst tooltipEl = this.tooltipElement;\n\t\t\tconst arrowEl = this.arrowElement;\n\n\t\t\tconst middleware = [offset(arrowEl?.offsetHeight ?? 10), flip(), shift()];\n\t\t\tif (arrowEl) {\n\t\t\t\tmiddleware.push(arrow({ element: arrowEl }));\n\t\t\t}\n\n\t\t\tvoid computePosition(target, tooltipEl, {\n\t\t\t\tplacement: this.state._align,\n\t\t\t\tmiddleware: middleware,\n\t\t\t}).then(({ x, y, middlewareData, placement }) => {\n\t\t\t\tObject.assign(tooltipEl.style, {\n\t\t\t\t\tleft: `${x}px`,\n\t\t\t\t\ttop: `${y}px`,\n\t\t\t\t\tvisibility: 'visible',\n\t\t\t\t});\n\n\t\t\t\tif (arrowEl) {\n\t\t\t\t\tif (middlewareData.arrow?.x) {\n\t\t\t\t\t\tObject.assign(arrowEl.style, {\n\t\t\t\t\t\t\tleft: `${middlewareData.arrow.x}px`,\n\t\t\t\t\t\t\ttop: placement === 'bottom' ? `${-arrowEl.offsetHeight / 2}px` : '',\n\t\t\t\t\t\t\tbottom: placement === 'top' ? `${-arrowEl.offsetHeight / 2}px` : '',\n\t\t\t\t\t\t});\n\t\t\t\t\t} else if (middlewareData.arrow?.y) {\n\t\t\t\t\t\tObject.assign(arrowEl.style, {\n\t\t\t\t\t\t\tleft: placement === 'right' ? `${-arrowEl.offsetWidth / 2}px` : '',\n\t\t\t\t\t\t\tright: placement === 'left' ? `${-arrowEl.offsetWidth / 2}px` : '',\n\t\t\t\t\t\t\ttop: `${middlewareData.arrow.y}px`,\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t};\n\n\tprivate showTooltip = (): void => {\n\t\tif (this.previousSibling && this.tooltipElement /* SSR instanceof HTMLElement */) {\n\t\t\tshowOverlay(this.tooltipElement);\n\t\t\tthis.tooltipElement.style.setProperty('display', 'block');\n\t\t\tgetDocument().body.addEventListener('keyup', this.hideTooltipByEscape);\n\n\t\t\tconst target = this.previousSibling;\n\t\t\tconst tooltipEl = this.tooltipElement;\n\t\t\tthis.cleanupAutoPositioning = autoUpdate(target, tooltipEl, this.alignTooltip);\n\t\t}\n\t};\n\n\tprivate hideTooltip = (): void => {\n\t\tif (this.tooltipElement /* SSR instanceof HTMLElement */) {\n\t\t\thideOverlay(this.tooltipElement);\n\t\t\tthis.tooltipElement.style.setProperty('display', 'none');\n\t\t\tthis.tooltipElement.style.setProperty('visibility', 'hidden');\n\t\t\tif (this.cleanupAutoPositioning) {\n\t\t\t\tthis.cleanupAutoPositioning();\n\t\t\t\tthis.cleanupAutoPositioning = undefined;\n\t\t\t}\n\t\t}\n\t};\n\n\tprivate hideTooltipByEscape = (event: KeyboardEvent): void => {\n\t\tif (event.key === 'Escape') {\n\t\t\tgetDocument().body.removeEventListener('keyup', this.hideTooltipByEscape);\n\t\t\tthis.hideTooltip();\n\t\t}\n\t};\n\n\tprivate addListeners = (el: Element): void => {\n\t\tel.addEventListener('mouseover', this.incrementOverFocusCount);\n\t\tel.addEventListener('focus', this.incrementOverFocusCount);\n\t\tel.addEventListener('mouseout', this.decrementOverFocusCount);\n\t\tel.addEventListener('blur', this.decrementOverFocusCount);\n\t};\n\n\tprivate removeListeners = (el: Element): void => {\n\t\tel.removeEventListener('mouseover', this.incrementOverFocusCount);\n\t\tel.removeEventListener('focus', this.incrementOverFocusCount);\n\t\tel.removeEventListener('mouseout', this.decrementOverFocusCount);\n\t\tel.removeEventListener('blur', this.decrementOverFocusCount);\n\t};\n\n\tprivate resyncListeners = (el: Element): void => {\n\t\tthis.removeListeners(el);\n\t\tthis.addListeners(el);\n\t};\n\n\tprivate catchHostElement = (el: HTMLElement | null): void => {\n\t\tif (el /* SSR instanceof HTMLElement */) {\n\t\t\tthis.previousSibling = el.previousElementSibling as HTMLElement | null;\n\t\t\tif (this.previousSibling /* SSR instanceof HTMLElement */) {\n\t\t\t\tthis.resyncListeners(this.previousSibling);\n\t\t\t}\n\t\t}\n\t};\n\n\tprivate catchTooltipElement = (el?: HTMLDivElement): void => {\n\t\tthis.tooltipElement = el;\n\t\tif (this.tooltipElement /* SSR instanceof HTMLElement */) {\n\t\t\tthis.resyncListeners(this.tooltipElement);\n\t\t}\n\t};\n\tprivate catchArrowElement = (element?: HTMLDivElement): void => {\n\t\tthis.arrowElement = element;\n\t};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host ref={this.catchHostElement}>\n\t\t\t\t{this.state._label !== '' && (\n\t\t\t\t\t<div id=\"floating\" ref={this.catchTooltipElement}>\n\t\t\t\t\t\t<div class=\"area\" id=\"arrow\" ref={this.catchArrowElement} />\n\t\t\t\t\t\t<kol-span-wc class=\"area\" id={this.state._id} _label={this.state._label}></kol-span-wc>\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Setzt die Ausrichtung des Tooltips in Relation zum Elternelement.\n\t */\n\t@Prop() public _align?: Align = 'top';\n\n\t/**\n\t * Gibt die interne ID des primären Elements in der Komponente an.\n\t */\n\t@Prop() public _id!: string;\n\n\t/**\n\t * Setzt die sichtbare oder semantische Beschriftung der Komponente (z.B. Aria-Label, Label, Headline, Caption, Summary usw.).\n\t */\n\t@Prop() public _label!: LabelPropType;\n\n\t@State() public state: KoliBriTooltipStates = {\n\t\t_align: 'top',\n\t\t_id: nonce(),\n\t\t_label: '…', // ⚠ required\n\t};\n\n\t@Watch('_align')\n\tpublic validateAlign(value?: Align): void {\n\t\twatchTooltipAlignment(this, '_align', value);\n\t}\n\n\t@Watch('_id')\n\tpublic validateId(value?: string): void {\n\t\twatchString(this, '_id', value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelPropType): void {\n\t\tvalidateLabel(this, value);\n\t}\n\n\tprivate overFocusCount = 0;\n\tprivate overFocusTimeout?: ReturnType<typeof setTimeout>;\n\n\tprivate incrementOverFocusCount = (): void => {\n\t\tthis.overFocusCount++;\n\t\tthis.showOrHideTooltip();\n\t};\n\n\tprivate decrementOverFocusCount = (): void => {\n\t\tthis.overFocusCount--;\n\t\tthis.showOrHideTooltip();\n\t};\n\n\tprivate showOrHideTooltip = (): void => {\n\t\tclearTimeout(this.overFocusTimeout);\n\t\tthis.overFocusTimeout = setTimeout(() => {\n\t\t\tclearTimeout(this.overFocusTimeout);\n\t\t\tif (this.overFocusCount > 0) {\n\t\t\t\tthis.showTooltip();\n\t\t\t} else {\n\t\t\t\tthis.hideTooltip();\n\t\t\t}\n\t\t}, 250);\n\t};\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateAlign(this._align);\n\t\tthis.validateId(this._id);\n\t\tthis.validateLabel(this._label);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (componentDidLoad)\n\t */\n\tpublic disconnectedCallback(): void {\n\t\tif (this.previousSibling /* SSR instanceof HTMLElement */) {\n\t\t\tthis.removeListeners(this.previousSibling);\n\t\t}\n\t\tif (this.tooltipElement /* SSR instanceof HTMLElement */) {\n\t\t\tthis.removeListeners(this.tooltipElement);\n\t\t}\n\t\tif (this.cleanupAutoPositioning) {\n\t\t\tthis.cleanupAutoPositioning();\n\t\t}\n\t}\n}\n"],"mappings":";;;+aAOA,MAAMA,EAAqC,IAAIC,I,SAS/BC,EAAYC,GAC3BH,EAAiBI,SAASC,IACzBA,EAAeC,MAAMC,YAAY,UAAW,MAAM,IAEnDP,EAAiBQ,IAAIL,GACrBA,EAAQG,MAAMC,YAAY,UAAW,OACtC,C,SASgBE,EAAYN,GAC3BH,EAAiBU,OAAOP,GACxB,GAAIH,EAAiBW,KAAO,EAAG,CAC9B,MAAMC,EAAOC,MAAMC,KAAKd,GAAkBe,MAC1C,GAAIH,EAAM,CACTA,EAAKN,MAAMC,YAAY,UAAW,O,EAGrC,CCvCA,MAAMS,EAAW,sqC,MCiBJC,EAAU,M,yBAMdC,KAAAC,aAAe,K,MACtB,GAAIC,IAAe,QAAUF,KAAKG,iBAAoDH,KAAKI,eAAiD,CAC3I,MAAMC,EAASL,KAAKG,gBACpB,MAAMG,EAAYN,KAAKI,eACvB,MAAMG,EAAUP,KAAKQ,aAErB,MAAMC,EAAa,CAACC,GAAOC,EAAAJ,IAAO,MAAPA,SAAO,SAAPA,EAASK,gBAAY,MAAAD,SAAA,EAAAA,EAAI,IAAKE,IAAQC,KACjE,GAAIP,EAAS,CACZE,EAAWM,KAAKC,EAAM,CAAEC,QAASV,I,MAG7BW,EAAgBb,EAAQC,EAAW,CACvCa,UAAWnB,KAAKoB,MAAMC,OACtBZ,WAAYA,IACVa,MAAK,EAAGC,IAAGC,IAAGC,iBAAgBN,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0C,a,IAEJ,IAAI,E,YAvDwB,M,oDAYc,CAC7CrB,OAAQ,MACRyC,IAAKC,IACLC,OAAQ,I,CA/BF,MAAAC,GACN,OACCC,EAACC,EAAI,CAACC,IAAKpE,KAAKqD,kBACdrD,KAAKoB,MAAM4C,SAAW,IACtBE,EAAA,OAAKG,GAAG,WAAWD,IAAKpE,KAAKuD,qBAC5BW,EAAA,OAAKI,MAAM,OAAOD,GAAG,QAAQD,IAAKpE,KAAKwD,oBACvCU,EAAA,eAAaI,MAAM,OAAOD,GAAIrE,KAAKoB,MAAM0C,IAAKE,OAAQhE,KAAKoB,MAAM4C,U,CA6B/D,aAAAO,CAAcC,GACpBC,EAAsBzE,KAAM,SAAUwE,E,CAIhC,UAAAE,CAAWF,GACjBG,EAAY3E,KAAM,MAAOwE,E,CAInB,aAAAI,CAAcJ,GACpBI,EAAc5E,KAAMwE,E,CA4Bd,iBAAAK,GACN7E,KAAKuE,cAAcvE,KAAKqB,QACxBrB,KAAK0E,WAAW1E,KAAK8D,KACrB9D,KAAK4E,cAAc5E,KAAKgE,O,CAMlB,oBAAAc,GACN,GAAI9E,KAAKG,gBAAkD,CAC1DH,KAAKmD,gBAAgBnD,KAAKG,gB,CAE3B,GAAIH,KAAKI,eAAiD,CACzDJ,KAAKmD,gBAAgBnD,KAAKI,e,CAE3B,GAAIJ,KAAKwC,uBAAwB,CAChCxC,KAAKwC,wB"}
1
+ {"version":3,"names":["validateId","component","value","watchString","VISIBLE_OVERLAYS","Set","showOverlay","overlay","forEach","visibleOverlay","style","setProperty","add","hideOverlay","delete","size","last","Array","from","pop","styleCss","KolTooltip","this","alignTooltip","processEnv","previousSibling","tooltipElement","target","tooltipEl","arrowEl","arrowElement","middleware","offset","_a","offsetHeight","flip","shift","push","arrow","element","computePosition","placement","state","_align","then","x","y","middlewareData","Object","assign","left","top","visibility","bottom","_b","offsetWidth","right","showTooltip","getDocument","body","addEventListener","hideTooltipByEscape","cleanupAutoPositioning","autoUpdate","hideTooltip","undefined","event","key","removeEventListener","addListeners","el","incrementOverFocusCount","decrementOverFocusCount","removeListeners","resyncListeners","catchHostElement","previousElementSibling","catchTooltipElement","catchArrowElement","overFocusCount","showOrHideTooltip","clearTimeout","overFocusTimeout","setTimeout","_id","nonce","_label","render","h","Host","ref","class","id","validateAlign","watchTooltipAlignment","validateLabel","componentWillLoad","disconnectedCallback"],"sources":["src/types/props/id.ts","src/utils/overlay.ts","src/components/tooltip/style.css?tag=kol-tooltip","src/components/tooltip/component.tsx"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { watchString } from '../../utils/prop.validators';\n\nexport type IdPropType = string;\n\nexport type PropId = {\n\tid: IdPropType;\n};\n\nexport const validateId = (component: Generic.Element.Component, value?: IdPropType): void => {\n\twatchString(component, '_id', value);\n};\n","/**\n * This file contains the functions used to manage the visible overlays.\n */\n\n/**\n * This set contains all the visible overlays.\n */\nconst VISIBLE_OVERLAYS: Set<HTMLElement> = new Set();\n\n/**\n * This function is used to add an overlay to the visible overlay list.\n * All overlays in the list will have a z-index of 999, except the last\n * one, which will have a z-index of 1000.\n *\n * @param overlay Get the overlay element reference\n */\nexport function showOverlay(overlay: HTMLElement): void {\n\tVISIBLE_OVERLAYS.forEach((visibleOverlay) => {\n\t\tvisibleOverlay.style.setProperty('z-index', '999');\n\t});\n\tVISIBLE_OVERLAYS.add(overlay);\n\toverlay.style.setProperty('z-index', '1000');\n}\n\n/**\n * This function is used to remove an overlay from the visible overlay list.\n * All overlays in the list will have a z-index of 999, except the last\n * one, which will have a z-index of 1000.\n *\n * @param overlay Get the overlay element reference\n */\nexport function hideOverlay(overlay: HTMLElement): void {\n\tVISIBLE_OVERLAYS.delete(overlay);\n\tif (VISIBLE_OVERLAYS.size > 0) {\n\t\tconst last = Array.from(VISIBLE_OVERLAYS).pop();\n\t\tif (last) {\n\t\t\tlast.style.setProperty('z-index', '1000');\n\t\t}\n\t}\n}\n","@import url(../style.css);\nkol-tooltip .tooltip-floating {\n\tanimation-duration: 0.5s;\n\tanimation-iteration-count: 1;\n\tanimation-name: fadeInOpacity;\n\tanimation-timing-function: ease-in;\n\tbox-sizing: border-box;\n\tdisplay: none;\n\tposition: absolute;\n\tvisibility: hidden;\n\t/* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n\twidth: max-content;\n\ttop: 0;\n\tleft: 0;\n}\n/* Shared between content and arrow */\nkol-tooltip .tooltip-area {\n\tbackground-color: #fff;\n\tcolor: #000;\n}\nkol-tooltip .tooltip-arrow {\n\theight: 10px;\n\tposition: absolute;\n\ttransform: rotate(45deg);\n\twidth: 10px;\n\tz-index: 999;\n}\nkol-tooltip .tooltip-content {\n\tposition: relative;\n\tz-index: 1000;\n}\n@keyframes fadeInOpacity {\n\t0% {\n\t\topacity: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t}\n}\n","import { arrow, autoUpdate, computePosition, flip, offset, shift } from '@floating-ui/dom';\nimport { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { watchTooltipAlignment } from '../../types/button-link';\nimport { Align } from '../../types/props/align';\nimport { IdPropType, validateId } from '../../types/props/id';\nimport { LabelPropType, validateLabel } from '../../types/props/label';\nimport { getDocument, nonce } from '../../utils/dev.utils';\nimport { hideOverlay, showOverlay } from '../../utils/overlay';\nimport { processEnv } from '../../utils/reuse';\nimport { KoliBriTooltipAPI, KoliBriTooltipStates } from './types';\n\n@Component({\n\ttag: 'kol-tooltip',\n\tstyleUrl: './style.css',\n\tshadow: false,\n})\nexport class KolTooltip implements KoliBriTooltipAPI {\n\tprivate previousSibling?: HTMLElement | null;\n\tprivate tooltipElement?: HTMLDivElement;\n\tprivate arrowElement?: HTMLDivElement;\n\tprivate cleanupAutoPositioning?: () => void;\n\n\tprivate alignTooltip = (): void => {\n\t\tif (processEnv !== 'test' && this.previousSibling /* SSR instanceof HTMLElement */ && this.tooltipElement /* SSR instanceof HTMLElement */) {\n\t\t\tconst target = this.previousSibling;\n\t\t\tconst tooltipEl = this.tooltipElement;\n\t\t\tconst arrowEl = this.arrowElement;\n\n\t\t\tconst middleware = [offset(arrowEl?.offsetHeight ?? 10), flip(), shift()];\n\t\t\tif (arrowEl) {\n\t\t\t\tmiddleware.push(arrow({ element: arrowEl }));\n\t\t\t}\n\n\t\t\tvoid computePosition(target, tooltipEl, {\n\t\t\t\tplacement: this.state._align,\n\t\t\t\tmiddleware: middleware,\n\t\t\t}).then(({ x, y, middlewareData, placement }) => {\n\t\t\t\tObject.assign(tooltipEl.style, {\n\t\t\t\t\tleft: `${x}px`,\n\t\t\t\t\ttop: `${y}px`,\n\t\t\t\t\tvisibility: 'visible',\n\t\t\t\t});\n\n\t\t\t\tif (arrowEl) {\n\t\t\t\t\tif (middlewareData.arrow?.x) {\n\t\t\t\t\t\tObject.assign(arrowEl.style, {\n\t\t\t\t\t\t\tleft: `${middlewareData.arrow.x}px`,\n\t\t\t\t\t\t\ttop: placement === 'bottom' ? `${-arrowEl.offsetHeight / 2}px` : '',\n\t\t\t\t\t\t\tbottom: placement === 'top' ? `${-arrowEl.offsetHeight / 2}px` : '',\n\t\t\t\t\t\t});\n\t\t\t\t\t} else if (middlewareData.arrow?.y) {\n\t\t\t\t\t\tObject.assign(arrowEl.style, {\n\t\t\t\t\t\t\tleft: placement === 'right' ? `${-arrowEl.offsetWidth / 2}px` : '',\n\t\t\t\t\t\t\tright: placement === 'left' ? `${-arrowEl.offsetWidth / 2}px` : '',\n\t\t\t\t\t\t\ttop: `${middlewareData.arrow.y}px`,\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t};\n\n\tprivate showTooltip = (): void => {\n\t\tif (this.previousSibling && this.tooltipElement /* SSR instanceof HTMLElement */) {\n\t\t\tshowOverlay(this.tooltipElement);\n\t\t\tthis.tooltipElement.style.setProperty('display', 'block');\n\t\t\tgetDocument().body.addEventListener('keyup', this.hideTooltipByEscape);\n\n\t\t\tconst target = this.previousSibling;\n\t\t\tconst tooltipEl = this.tooltipElement;\n\t\t\tthis.cleanupAutoPositioning = autoUpdate(target, tooltipEl, this.alignTooltip);\n\t\t}\n\t};\n\n\tprivate hideTooltip = (): void => {\n\t\tif (this.tooltipElement /* SSR instanceof HTMLElement */) {\n\t\t\thideOverlay(this.tooltipElement);\n\t\t\tthis.tooltipElement.style.setProperty('display', 'none');\n\t\t\tthis.tooltipElement.style.setProperty('visibility', 'hidden');\n\t\t\tif (this.cleanupAutoPositioning) {\n\t\t\t\tthis.cleanupAutoPositioning();\n\t\t\t\tthis.cleanupAutoPositioning = undefined;\n\t\t\t}\n\t\t}\n\t};\n\n\tprivate hideTooltipByEscape = (event: KeyboardEvent): void => {\n\t\tif (event.key === 'Escape') {\n\t\t\tgetDocument().body.removeEventListener('keyup', this.hideTooltipByEscape);\n\t\t\tthis.hideTooltip();\n\t\t}\n\t};\n\n\tprivate addListeners = (el: Element): void => {\n\t\tel.addEventListener('mouseover', this.incrementOverFocusCount);\n\t\tel.addEventListener('focus', this.incrementOverFocusCount);\n\t\tel.addEventListener('mouseout', this.decrementOverFocusCount);\n\t\tel.addEventListener('blur', this.decrementOverFocusCount);\n\t};\n\n\tprivate removeListeners = (el: Element): void => {\n\t\tel.removeEventListener('mouseover', this.incrementOverFocusCount);\n\t\tel.removeEventListener('focus', this.incrementOverFocusCount);\n\t\tel.removeEventListener('mouseout', this.decrementOverFocusCount);\n\t\tel.removeEventListener('blur', this.decrementOverFocusCount);\n\t};\n\n\tprivate resyncListeners = (el: Element): void => {\n\t\tthis.removeListeners(el);\n\t\tthis.addListeners(el);\n\t};\n\n\tprivate catchHostElement = (el: HTMLElement | null): void => {\n\t\tif (el /* SSR instanceof HTMLElement */) {\n\t\t\tthis.previousSibling = el.previousElementSibling as HTMLElement | null;\n\t\t\tif (this.previousSibling /* SSR instanceof HTMLElement */) {\n\t\t\t\tthis.resyncListeners(this.previousSibling);\n\t\t\t}\n\t\t}\n\t};\n\n\tprivate catchTooltipElement = (el?: HTMLDivElement): void => {\n\t\tthis.tooltipElement = el;\n\t\tif (this.tooltipElement /* SSR instanceof HTMLElement */) {\n\t\t\tthis.resyncListeners(this.tooltipElement);\n\t\t}\n\t};\n\tprivate catchArrowElement = (element?: HTMLDivElement): void => {\n\t\tthis.arrowElement = element;\n\t};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host ref={this.catchHostElement}>\n\t\t\t\t{this.state._label !== '' && (\n\t\t\t\t\t<div class=\"tooltip-floating\" ref={this.catchTooltipElement}>\n\t\t\t\t\t\t<div class=\"tooltip-area tooltip-arrow\" ref={this.catchArrowElement} />\n\t\t\t\t\t\t<kol-span-wc class=\"tooltip-area tooltip-content\" id={this.state._id} _label={this.state._label}></kol-span-wc>\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Setzt die Ausrichtung des Tooltips in Relation zum Elternelement.\n\t */\n\t@Prop() public _align?: Align = 'top';\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 * Setzt die sichtbare oder semantische Beschriftung der Komponente (z.B. Aria-Label, Label, Headline, Caption, Summary usw.).\n\t */\n\t@Prop() public _label!: LabelPropType;\n\n\t@State() public state: KoliBriTooltipStates = {\n\t\t_align: 'top',\n\t\t_id: nonce(),\n\t\t_label: '…', // ⚠ required\n\t};\n\n\t@Watch('_align')\n\tpublic validateAlign(value?: Align): void {\n\t\twatchTooltipAlignment(this, '_align', value);\n\t}\n\n\t@Watch('_id')\n\tpublic validateId(value?: IdPropType): void {\n\t\tvalidateId(this, value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelPropType): void {\n\t\tvalidateLabel(this, value);\n\t}\n\n\tprivate overFocusCount = 0;\n\tprivate overFocusTimeout?: ReturnType<typeof setTimeout>;\n\n\tprivate incrementOverFocusCount = (): void => {\n\t\tthis.overFocusCount++;\n\t\tthis.showOrHideTooltip();\n\t};\n\n\tprivate decrementOverFocusCount = (): void => {\n\t\tthis.overFocusCount--;\n\t\tthis.showOrHideTooltip();\n\t};\n\n\tprivate showOrHideTooltip = (): void => {\n\t\tclearTimeout(this.overFocusTimeout);\n\t\tthis.overFocusTimeout = setTimeout(() => {\n\t\t\tclearTimeout(this.overFocusTimeout);\n\t\t\tif (this.overFocusCount > 0) {\n\t\t\t\tthis.showTooltip();\n\t\t\t} else {\n\t\t\t\tthis.hideTooltip();\n\t\t\t}\n\t\t}, 250);\n\t};\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateAlign(this._align);\n\t\tthis.validateId(this._id);\n\t\tthis.validateLabel(this._label);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (componentDidLoad)\n\t */\n\tpublic disconnectedCallback(): void {\n\t\tif (this.previousSibling /* SSR instanceof HTMLElement */) {\n\t\t\tthis.removeListeners(this.previousSibling);\n\t\t}\n\t\tif (this.tooltipElement /* SSR instanceof HTMLElement */) {\n\t\t\tthis.removeListeners(this.tooltipElement);\n\t\t}\n\t\tif (this.cleanupAutoPositioning) {\n\t\t\tthis.cleanupAutoPositioning();\n\t\t}\n\t}\n}\n"],"mappings":";;;+aAUO,MAAMA,EAAa,CAACC,EAAsCC,KAChEC,EAAYF,EAAW,MAAOC,EAAM,ECJrC,MAAME,EAAqC,IAAIC,I,SAS/BC,EAAYC,GAC3BH,EAAiBI,SAASC,IACzBA,EAAeC,MAAMC,YAAY,UAAW,MAAM,IAEnDP,EAAiBQ,IAAIL,GACrBA,EAAQG,MAAMC,YAAY,UAAW,OACtC,C,SASgBE,EAAYN,GAC3BH,EAAiBU,OAAOP,GACxB,GAAIH,EAAiBW,KAAO,EAAG,CAC9B,MAAMC,EAAOC,MAAMC,KAAKd,GAAkBe,MAC1C,GAAIH,EAAM,CACTA,EAAKN,MAAMC,YAAY,UAAW,O,EAGrC,CCvCA,MAAMS,EAAW,msC,MCiBJC,EAAU,M,yBAMdC,KAAAC,aAAe,K,MACtB,GAAIC,IAAe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e,CAE3B,GAAIJ,KAAKwC,uBAAwB,CAChCxC,KAAKwC,wB"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as i,h as t}from"./index-2c046ff1.js";import{v as e}from"./label-78ab78c2.js";import"./a11y.tipps-49a594cd.js";import"./dev.utils-21cabf82.js";import"./reuse-c2156413.js";import"./prop.validators-2d07ec24.js";import"./index-37b5cbcf.js";var n;!function(e){e.Violett="#5f316e",e.Dunkelrot="#780f2d",e.Rot="#c0003c",e.Orange="#cd5038",e.Hellorange="#f7bb3d",e.Gelb="#f9e03a",e["Hellgrün"]="#c1ca31",e.Oliv="#597c39",e["Dunkelgrün"]="#005c45",e["Grün"]="#00854a",e["Türkis"]="#00818b",e.Hellblau="#80cdec",e.Blau="#0077b6",e.Petrol="#007194",e.Dunkelblau="#004b76",e.Dunkelgrau="#576164",e.Hellgrau="#bec5c9"}(n||(n={}));const o=":host{--a11y-min-size:44px;font-size:inherit}*{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}",a=class{constructor(e){i(this,e),this._label=void 0,this._version=void 0,this.state={_label:"0.0.0-alpha.0"}}render(){return t("kol-badge",{_color:n.Hellgrau,_icon:"codicon codicon-versions",_label:`v${this.state._label}`})}validateLabel(t){e(this,t)}validateVersion(e){this.validateLabel(e)}componentWillLoad(){this.validateLabel(this._label||this._version)}static get watchers(){return{_label:["validateLabel"],_version:["validateVersion"]}}};a.style={default:o};export{a as kol_version};
4
+ import{r as i,h as t}from"./index-2c046ff1.js";import{v as e}from"./label-7743754d.js";import"./a11y.tipps-821939d5.js";import"./dev.utils-a47b8ff2.js";import"./reuse-c2156413.js";import"./prop.validators-6a2ec81f.js";import"./index-37b5cbcf.js";var n;!function(e){e.Violett="#5f316e",e.Dunkelrot="#780f2d",e.Rot="#c0003c",e.Orange="#cd5038",e.Hellorange="#f7bb3d",e.Gelb="#f9e03a",e["Hellgrün"]="#c1ca31",e.Oliv="#597c39",e["Dunkelgrün"]="#005c45",e["Grün"]="#00854a",e["Türkis"]="#00818b",e.Hellblau="#80cdec",e.Blau="#0077b6",e.Petrol="#007194",e.Dunkelblau="#004b76",e.Dunkelgrau="#576164",e.Hellgrau="#bec5c9"}(n||(n={}));const o=":host{--a11y-min-size:44px;font-size:inherit}*{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}",a=class{constructor(e){i(this,e),this._label=void 0,this._version=void 0,this.state={_label:"0.0.0-alpha.0"}}render(){return t("kol-badge",{_color:n.Hellgrau,_icon:"codicon codicon-versions",_label:`v${this.state._label}`})}validateLabel(t){e(this,t)}validateVersion(e){this.validateLabel(e)}componentWillLoad(){this.validateLabel(this._label||this._version)}static get watchers(){return{_label:["validateLabel"],_version:["validateVersion"]}}};a.style={default:o};export{a as kol_version};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{p as e,b as a}from"./index-2c046ff1.js";export{s as setNonce}from"./index-2c046ff1.js";import{g as _}from"./app-globals-00a31555.js";import"./index-d8ac1088.js";import"./index-37b5cbcf.js";import"./dev.utils-21cabf82.js";import"./reuse-c2156413.js";const l=()=>{const a=import.meta.url,_={};return""!==a&&(_.resourcesUrl=new URL(".",a).href),e(_)};l().then((e=>(_(),a(JSON.parse('[["kol-span-wc",[[4,"kol-span-wc",{"_hideLabel":[4,"_hide-label"],"_icon":[1],"_iconOnly":[4,"_icon-only"],"_label":[8],"state":[32]}]]],["kol-table",[[33,"kol-table",{"_caption":[1],"_data":[1],"_dataFoot":[1,"_data-foot"],"_headers":[1],"_label":[1],"_minWidth":[1,"_min-width"],"_pagination":[8],"state":[32]}]]],["kol-input-adapter-leanup",[[1,"kol-input-adapter-leanup"]]],["kol-input-radio-group",[[1,"kol-input-radio-group",{"_accessKey":[1,"_access-key"],"_alert":[4],"_disabled":[4],"_error":[1],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_id":[1],"_label":[8],"_list":[1],"_name":[1],"_on":[16],"_orientation":[1],"_required":[4],"_tabIndex":[2,"_tab-index"],"_touched":[4],"_value":[8]}]]],["kol-input-checkbox",[[33,"kol-input-checkbox",{"_accessKey":[1,"_access-key"],"_alert":[1540],"_checked":[1540],"_disabled":[4],"_error":[1],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icon":[1],"_id":[1],"_indeterminate":[1540],"_label":[8],"_name":[1],"_on":[16],"_required":[4],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_type":[1],"_value":[8],"_variant":[1],"state":[32]}]]],["kol-input-color",[[33,"kol-input-color",{"_accessKey":[1,"_access-key"],"_alert":[1540],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_error":[1],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icon":[1],"_id":[1],"_label":[8],"_list":[1],"_name":[1],"_on":[16],"_smartButton":[1,"_smart-button"],"_suggestions":[1],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1],"state":[32]}]]],["kol-input-date",[[33,"kol-input-date",{"_accessKey":[1,"_access-key"],"_alert":[1540],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_error":[1],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icon":[1],"_id":[1],"_label":[8],"_list":[1],"_max":[1],"_min":[1],"_name":[1],"_on":[16],"_readOnly":[4,"_read-only"],"_required":[4],"_smartButton":[1,"_smart-button"],"_suggestions":[1],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_step":[2],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_type":[1],"_value":[1025],"state":[32]}]]],["kol-input-email",[[33,"kol-input-email",{"_accessKey":[1,"_access-key"],"_alert":[1540],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_error":[1],"_hasCounter":[4,"_has-counter"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icon":[1],"_id":[1],"_label":[8],"_list":[1],"_maxLength":[2,"_max-length"],"_multiple":[4],"_name":[1],"_on":[16],"_pattern":[1],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_required":[4],"_size":[2],"_smartButton":[1,"_smart-button"],"_suggestions":[1],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1],"state":[32]}]]],["kol-input-file",[[33,"kol-input-file",{"_accept":[1],"_accessKey":[1,"_access-key"],"_alert":[1540],"_disabled":[4],"_error":[1],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icon":[1],"_id":[1],"_label":[8],"_multiple":[4],"_name":[1],"_on":[16],"_required":[4],"_smartButton":[1,"_smart-button"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1],"state":[32]}]]],["kol-input-number",[[33,"kol-input-number",{"_accessKey":[1,"_access-key"],"_alert":[1540],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_error":[1],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icon":[1],"_id":[1],"_label":[8],"_list":[1],"_max":[8],"_min":[8],"_name":[1],"_on":[16],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_required":[4],"_smartButton":[1,"_smart-button"],"_suggestions":[1],"_step":[2],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_type":[1],"_value":[1032],"state":[32]}]]],["kol-input-password",[[33,"kol-input-password",{"_accessKey":[1,"_access-key"],"_alert":[1540],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_error":[1],"_hasCounter":[4,"_has-counter"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icon":[1],"_id":[1],"_label":[8],"_maxLength":[2,"_max-length"],"_name":[1],"_on":[16],"_pattern":[1],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_required":[4],"_size":[2],"_smartButton":[1,"_smart-button"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1],"state":[32]}]]],["kol-input-range",[[33,"kol-input-range",{"_accessKey":[1,"_access-key"],"_alert":[1540],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_error":[1],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icon":[1],"_id":[1],"_label":[8],"_list":[1],"_max":[2],"_min":[2],"_name":[1],"_on":[16],"_step":[2],"_suggestions":[1],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[2],"state":[32]}]]],["kol-input-text",[[33,"kol-input-text",{"_accessKey":[1,"_access-key"],"_alert":[1540],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_error":[1],"_hasCounter":[4,"_has-counter"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icon":[1],"_id":[1],"_label":[8],"_list":[1],"_maxLength":[2,"_max-length"],"_name":[1],"_on":[16],"_pattern":[1],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_required":[4],"_size":[2],"_suggestions":[1],"_smartButton":[1,"_smart-button"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_type":[1],"_value":[1025],"state":[32]}]]],["kol-textarea",[[33,"kol-textarea",{"_accessKey":[1,"_access-key"],"_adjustHeight":[4,"_adjust-height"],"_alert":[1540],"_disabled":[4],"_error":[1],"_hasCounter":[4,"_has-counter"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_id":[1],"_label":[8],"_maxLength":[2,"_max-length"],"_name":[1],"_on":[16],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_resize":[1],"_required":[4],"_rows":[1026],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1],"state":[32]}]]],["kol-nav",[[33,"kol-nav",{"_ariaCurrentValue":[8,"_aria-current-value"],"_ariaLabel":[1,"_aria-label"],"_collapsible":[4],"_compact":[4],"_hasCompactButton":[4,"_has-compact-button"],"_hideLabel":[4,"_hide-label"],"_label":[1],"_links":[1],"_orientation":[1],"_variant":[1],"state":[32]}]]],["kol-toast",[[33,"kol-toast",{"_alert":[4],"_hasCloser":[4,"_has-closer"],"_heading":[1],"_label":[1],"_level":[2],"_on":[16],"_show":[1540],"_showDuration":[2,"_show-duration"],"_type":[1],"state":[32]}]]],["kol-link-group",[[33,"kol-link-group",{"_ariaLabel":[1,"_aria-label"],"_listStyleType":[1,"_list-style-type"],"_heading":[1],"_label":[1],"_level":[2],"_links":[1],"_ordered":[4],"_orientation":[1],"state":[32]}]]],["kol-accordion",[[33,"kol-accordion",{"_heading":[1],"_label":[1],"_level":[2],"_on":[16],"_open":[1540],"state":[32]}]]],["kol-breadcrumb",[[33,"kol-breadcrumb",{"_ariaLabel":[1,"_aria-label"],"_label":[1],"_links":[1],"state":[32]}]]],["kol-quote",[[33,"kol-quote",{"_caption":[1],"_label":[1],"_href":[1],"_quote":[1],"_variant":[1],"state":[32]}]]],["kol-tabs",[[33,"kol-tabs",{"_align":[1],"_ariaLabel":[1,"_aria-label"],"_label":[1],"_on":[16],"_selected":[1538],"_tabs":[1],"_tabsAlign":[1,"_tabs-align"],"state":[32]}]]],["kol-version",[[33,"kol-version",{"_label":[1],"_version":[1],"state":[32]}]]],["kol-button-link",[[33,"kol-button-link",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaCurrent":[8,"_aria-current"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaLabel":[1025,"_aria-label"],"_ariaSelected":[4,"_aria-selected"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icon":[1],"_iconOnly":[4,"_icon-only"],"_id":[1],"_label":[8],"_on":[16],"_role":[1],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[16]}]]],["kol-link-button",[[33,"kol-link-button",{"_ariaControls":[1,"_aria-controls"],"_ariaCurrent":[8,"_aria-current"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaLabel":[1,"_aria-label"],"_ariaSelected":[4,"_aria-selected"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_download":[8],"_hideLabel":[4,"_hide-label"],"_href":[1],"_icon":[1],"_iconOnly":[4,"_icon-only"],"_label":[8],"_listenAriaCurrent":[8,"_listen-aria-current"],"_on":[16],"_role":[1],"_tabIndex":[2,"_tab-index"],"_target":[1],"_targetDescription":[1,"_target-description"],"_tooltipAlign":[1,"_tooltip-align"],"_variant":[1]}]]],["kol-skip-nav",[[33,"kol-skip-nav",{"_ariaLabel":[1,"_aria-label"],"_label":[1],"_links":[1],"state":[32]}]]],["kol-split-button",[[33,"kol-split-button",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaCurrent":[8,"_aria-current"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaLabel":[1025,"_aria-label"],"_ariaSelected":[4,"_aria-selected"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icon":[1],"_iconOnly":[4,"_icon-only"],"_label":[1],"_on":[16],"_role":[1],"_showDropdown":[1540,"_show-dropdown"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[16],"_variant":[1],"state":[32]}]]],["kol-abbr",[[33,"kol-abbr",{"_label":[1],"_tooltipAlign":[1,"_tooltip-align"],"_title":[1],"state":[32]}]]],["kol-avatar-wc",[[0,"kol-avatar-wc",{"_src":[1],"_label":[1],"state":[32]}]]],["kol-avatar",[[33,"kol-avatar",{"_src":[1],"_label":[1]}]]],["kol-details",[[33,"kol-details",{"_label":[1],"_open":[1540],"_summary":[1],"state":[32]}]]],["kol-span",[[33,"kol-span",{"_hideLabel":[4,"_hide-label"],"_icon":[1],"_iconOnly":[4,"_icon-only"],"_label":[8]}]]],["kol-button-group",[[33,"kol-button-group"]]],["kol-card",[[33,"kol-card",{"_hasFooter":[4,"_has-footer"],"_heading":[1],"_headline":[1],"_label":[1],"_level":[2],"state":[32]}]]],["kol-indented-text",[[33,"kol-indented-text",{"state":[32]}]]],["kol-form",[[1,"kol-form",{"_on":[16],"_requiredText":[8,"_required-text"],"state":[32]}]]],["kol-heading",[[33,"kol-heading",{"_label":[8],"_level":[2],"_secondaryHeadline":[1,"_secondary-headline"]}]]],["kol-icon",[[33,"kol-icon",{"_ariaLabel":[1,"_aria-label"],"_icon":[1],"_label":[1],"_part":[1],"state":[32]}]]],["kol-icon-font-awesome",[[0,"kol-icon-font-awesome",{"_ariaLabel":[1,"_aria-label"],"_icon":[1],"_prefix":[1],"_part":[1]}]]],["kol-icon-icofont",[[0,"kol-icon-icofont",{"_ariaLabel":[1,"_aria-label"],"_icon":[1],"_part":[1]}]]],["kol-kolibri",[[33,"kol-kolibri",{"_animate":[4],"_color":[1],"_labeled":[4],"state":[32]}]]],["kol-logo",[[33,"kol-logo",{"_abbr":[1],"_org":[1],"state":[32]}]]],["kol-modal",[[33,"kol-modal",{"_activeElement":[1040],"_ariaLabel":[1,"_aria-label"],"_label":[1],"_on":[16],"_width":[1],"state":[32]}]]],["kol-popover",[[4,"kol-popover",{"_align":[1],"_show":[1540],"state":[32]}]]],["kol-progress",[[33,"kol-progress",{"_label":[1],"_max":[2],"_type":[1],"_unit":[1],"_value":[2],"_variant":[1],"state":[32]}]]],["kol-spin",[[33,"kol-spin",{"_show":[4],"_variant":[1],"state":[32]}]]],["kol-symbol",[[0,"kol-symbol",{"_ariaLabel":[1,"_aria-label"],"_label":[1],"_symbol":[1],"state":[32]}]]],["kol-tooltip",[[0,"kol-tooltip",{"_align":[1],"_id":[1],"_label":[1],"state":[32]}]]],["kol-button-wc_2",[[4,"kol-heading-wc",{"_label":[8],"_level":[2],"_secondaryHeadline":[1,"_secondary-headline"],"state":[32]}],[4,"kol-button-wc",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaCurrent":[8,"_aria-current"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaLabel":[1,"_aria-label"],"_ariaSelected":[4,"_aria-selected"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icon":[1],"_iconAlign":[1,"_icon-align"],"_iconOnly":[4,"_icon-only"],"_id":[1],"_label":[8],"_on":[16],"_role":[1],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[16],"_variant":[1],"state":[32]}]]],["kol-alert-wc_2",[[4,"kol-input",{"_alert":[4],"_currentLength":[2,"_current-length"],"_disabled":[4],"_error":[1],"_hasCounter":[4,"_has-counter"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icon":[16],"_id":[1],"_maxLength":[2,"_max-length"],"_readOnly":[4,"_read-only"],"_renderNoLabel":[4,"_render-no-label"],"_required":[4],"_slotName":[1,"_slot-name"],"_suggestions":[1],"_smartButton":[1,"_smart-button"],"_touched":[4]}],[4,"kol-alert-wc",{"_alert":[4],"_hasCloser":[4,"_has-closer"],"_label":[1],"_level":[2],"_on":[16],"_type":[1],"_variant":[1],"state":[32]}]]],["kol-pagination",[[33,"kol-pagination",{"_boundaryCount":[2,"_boundary-count"],"_customClass":[1,"_custom-class"],"_hasButtons":[8,"_has-buttons"],"_page":[2],"_pageSize":[1026,"_page-size"],"_pageSizeOptions":[1,"_page-size-options"],"_on":[16],"_siblingCount":[2,"_sibling-count"],"_tooltipAlign":[1,"_tooltip-align"],"_total":[2],"_variant":[1],"state":[32]}]]],["kol-input-radio",[[33,"kol-input-radio",{"_accessKey":[1,"_access-key"],"_alert":[1540],"_disabled":[4],"_error":[1],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_id":[1],"_label":[8],"_list":[1],"_name":[1],"_on":[16],"_options":[1],"_orientation":[1],"_required":[4],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[8],"state":[32]}]]],["kol-button-link-text-switch",[[0,"kol-button-link-text-switch",{"_link":[16]}]]],["kol-badge",[[33,"kol-badge",{"_color":[1],"_hideLabel":[4,"_hide-label"],"_icon":[1],"_iconOnly":[4,"_icon-only"],"_label":[1],"_smartButton":[1,"_smart-button"],"state":[32]}]]],["kol-select",[[33,"kol-select",{"_accessKey":[1,"_access-key"],"_alert":[1540],"_disabled":[4],"_error":[1],"_height":[1],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icon":[1],"_id":[1],"_label":[8],"_list":[1],"_multiple":[4],"_name":[1],"_on":[16],"_options":[1],"_required":[4],"_rows":[2],"_size":[2],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1025],"state":[32]}]]],["kol-button-group-wc",[[4,"kol-button-group-wc",{"state":[32]}]]],["kol-image",[[33,"kol-image",{"_alt":[1],"_loading":[1],"_sizes":[1],"_src":[1],"_srcset":[1],"state":[32]}]]],["kol-button",[[33,"kol-button",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaCurrent":[8,"_aria-current"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaLabel":[1,"_aria-label"],"_ariaSelected":[4,"_aria-selected"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icon":[1],"_iconAlign":[1,"_icon-align"],"_iconOnly":[4,"_icon-only"],"_id":[1],"_label":[8],"_on":[16],"_role":[1],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[16],"_variant":[1]}]]],["kol-link-wc",[[4,"kol-link-wc",{"_ariaControls":[1,"_aria-controls"],"_ariaCurrent":[8,"_aria-current"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaLabel":[1,"_aria-label"],"_ariaSelected":[4,"_aria-selected"],"_disabled":[4],"_download":[8],"_hideLabel":[4,"_hide-label"],"_href":[1],"_icon":[1],"_iconAlign":[1,"_icon-align"],"_iconOnly":[4,"_icon-only"],"_label":[8],"_listenAriaCurrent":[8,"_listen-aria-current"],"_on":[16],"_role":[1],"_selector":[1],"_stealth":[4],"_tabIndex":[2,"_tab-index"],"_target":[1],"_targetDescription":[1,"_target-description"],"_tooltipAlign":[1,"_tooltip-align"],"_useCase":[1,"_use-case"],"state":[32]}]]],["kol-link",[[33,"kol-link",{"_ariaControls":[1,"_aria-controls"],"_ariaCurrent":[8,"_aria-current"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaLabel":[1,"_aria-label"],"_ariaSelected":[4,"_aria-selected"],"_disabled":[4],"_download":[8],"_hideLabel":[4,"_hide-label"],"_href":[1],"_icon":[1],"_iconAlign":[1,"_icon-align"],"_iconOnly":[4,"_icon-only"],"_label":[8],"_listenAriaCurrent":[8,"_listen-aria-current"],"_on":[16],"_role":[1],"_selector":[1],"_stealth":[4],"_tabIndex":[2,"_tab-index"],"_target":[1],"_targetDescription":[1,"_target-description"],"_tooltipAlign":[1,"_tooltip-align"],"_useCase":[1,"_use-case"]}]]],["kol-alert",[[33,"kol-alert",{"_alert":[4],"_hasCloser":[4,"_has-closer"],"_heading":[1],"_label":[1],"_level":[2],"_on":[16],"_type":[1],"_variant":[1],"state":[32]}]]]]'),e))));
4
+ import{p as e,b as a}from"./index-2c046ff1.js";export{s as setNonce}from"./index-2c046ff1.js";import{g as _}from"./app-globals-850b7823.js";import"./index-d8ac1088.js";import"./index-37b5cbcf.js";import"./dev.utils-a47b8ff2.js";import"./reuse-c2156413.js";const l=()=>{const a=import.meta.url,_={};return""!==a&&(_.resourcesUrl=new URL(".",a).href),e(_)};l().then((e=>(_(),a(JSON.parse('[["kol-table",[[33,"kol-table",{"_caption":[1],"_data":[1],"_dataFoot":[1,"_data-foot"],"_headers":[1],"_label":[1],"_minWidth":[1,"_min-width"],"_pagination":[8],"state":[32]}]]],["kol-input-adapter-leanup",[[1,"kol-input-adapter-leanup"]]],["kol-input-radio-group",[[1,"kol-input-radio-group",{"_accessKey":[1,"_access-key"],"_alert":[4],"_disabled":[4],"_error":[1],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_id":[1],"_label":[8],"_list":[1],"_name":[1],"_on":[16],"_orientation":[1],"_required":[4],"_tabIndex":[2,"_tab-index"],"_touched":[4],"_value":[8]}]]],["kol-input-checkbox",[[33,"kol-input-checkbox",{"_accessKey":[1,"_access-key"],"_alert":[1540],"_checked":[1540],"_disabled":[4],"_error":[1],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icon":[1],"_id":[1],"_indeterminate":[1540],"_label":[8],"_name":[1],"_on":[16],"_required":[4],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_type":[1],"_value":[8],"_variant":[1],"state":[32]}]]],["kol-input-color",[[33,"kol-input-color",{"_accessKey":[1,"_access-key"],"_alert":[1540],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_error":[1],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icon":[1],"_id":[1],"_label":[8],"_list":[1],"_name":[1],"_on":[16],"_smartButton":[1,"_smart-button"],"_suggestions":[1],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1],"state":[32]}]]],["kol-input-date",[[33,"kol-input-date",{"_accessKey":[1,"_access-key"],"_alert":[1540],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_error":[1],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icon":[1],"_id":[1],"_label":[8],"_list":[1],"_max":[1],"_min":[1],"_name":[1],"_on":[16],"_readOnly":[4,"_read-only"],"_required":[4],"_smartButton":[1,"_smart-button"],"_suggestions":[1],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_step":[2],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_type":[1],"_value":[1025],"state":[32]}]]],["kol-input-email",[[33,"kol-input-email",{"_accessKey":[1,"_access-key"],"_alert":[1540],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_error":[1],"_hasCounter":[4,"_has-counter"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icon":[1],"_id":[1],"_label":[8],"_list":[1],"_maxLength":[2,"_max-length"],"_multiple":[4],"_name":[1],"_on":[16],"_pattern":[1],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_required":[4],"_size":[2],"_smartButton":[1,"_smart-button"],"_suggestions":[1],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1],"state":[32]}]]],["kol-input-file",[[33,"kol-input-file",{"_accept":[1],"_accessKey":[1,"_access-key"],"_alert":[1540],"_disabled":[4],"_error":[1],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icon":[1],"_id":[1],"_label":[8],"_multiple":[4],"_name":[1],"_on":[16],"_required":[4],"_smartButton":[1,"_smart-button"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1],"state":[32]}]]],["kol-input-number",[[33,"kol-input-number",{"_accessKey":[1,"_access-key"],"_alert":[1540],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_error":[1],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icon":[1],"_id":[1],"_label":[8],"_list":[1],"_max":[8],"_min":[8],"_name":[1],"_on":[16],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_required":[4],"_smartButton":[1,"_smart-button"],"_suggestions":[1],"_step":[2],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_type":[1],"_value":[1032],"state":[32]}]]],["kol-input-password",[[33,"kol-input-password",{"_accessKey":[1,"_access-key"],"_alert":[1540],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_error":[1],"_hasCounter":[4,"_has-counter"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icon":[1],"_id":[1],"_label":[8],"_maxLength":[2,"_max-length"],"_name":[1],"_on":[16],"_pattern":[1],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_required":[4],"_size":[2],"_smartButton":[1,"_smart-button"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1],"state":[32]}]]],["kol-input-range",[[33,"kol-input-range",{"_accessKey":[1,"_access-key"],"_alert":[1540],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_error":[1],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icon":[1],"_id":[1],"_label":[8],"_list":[1],"_max":[2],"_min":[2],"_name":[1],"_on":[16],"_step":[2],"_suggestions":[1],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[2],"state":[32]}]]],["kol-input-text",[[33,"kol-input-text",{"_accessKey":[1,"_access-key"],"_alert":[1540],"_autoComplete":[1,"_auto-complete"],"_disabled":[4],"_error":[1],"_hasCounter":[4,"_has-counter"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icon":[1],"_id":[1],"_label":[8],"_list":[1],"_maxLength":[2,"_max-length"],"_name":[1],"_on":[16],"_pattern":[1],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_required":[4],"_size":[2],"_suggestions":[1],"_smartButton":[1,"_smart-button"],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_type":[1],"_value":[1025],"state":[32]}]]],["kol-textarea",[[33,"kol-textarea",{"_accessKey":[1,"_access-key"],"_adjustHeight":[4,"_adjust-height"],"_alert":[1540],"_disabled":[4],"_error":[1],"_hasCounter":[4,"_has-counter"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_id":[1],"_label":[8],"_maxLength":[2,"_max-length"],"_name":[1],"_on":[16],"_placeholder":[1],"_readOnly":[4,"_read-only"],"_resize":[1],"_required":[4],"_rows":[1026],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1],"state":[32]}]]],["kol-nav",[[33,"kol-nav",{"_ariaCurrentValue":[8,"_aria-current-value"],"_ariaLabel":[1,"_aria-label"],"_collapsible":[4],"_compact":[4],"_hasCompactButton":[4,"_has-compact-button"],"_hideLabel":[4,"_hide-label"],"_label":[1],"_links":[1],"_orientation":[1],"_variant":[1],"state":[32]}]]],["kol-toast",[[33,"kol-toast",{"_alert":[4],"_hasCloser":[4,"_has-closer"],"_heading":[1],"_label":[1],"_level":[2],"_on":[16],"_show":[1540],"_showDuration":[2,"_show-duration"],"_type":[1],"state":[32]}]]],["kol-link-group",[[33,"kol-link-group",{"_ariaLabel":[1,"_aria-label"],"_listStyleType":[1,"_list-style-type"],"_heading":[1],"_label":[1],"_level":[2],"_links":[1],"_ordered":[4],"_orientation":[1],"state":[32]}]]],["kol-accordion",[[33,"kol-accordion",{"_heading":[1],"_label":[1],"_level":[2],"_on":[16],"_open":[1540],"state":[32]}]]],["kol-breadcrumb",[[33,"kol-breadcrumb",{"_ariaLabel":[1,"_aria-label"],"_label":[1],"_links":[1],"state":[32]}]]],["kol-card",[[33,"kol-card",{"_on":[16],"_hasCloser":[4,"_has-closer"],"_hasFooter":[4,"_has-footer"],"_heading":[1],"_headline":[1],"_label":[1],"_level":[2],"state":[32]}]]],["kol-quote",[[33,"kol-quote",{"_caption":[1],"_label":[1],"_href":[1],"_quote":[1],"_variant":[1],"state":[32]}]]],["kol-tabs",[[33,"kol-tabs",{"_align":[1],"_ariaLabel":[1,"_aria-label"],"_label":[1],"_on":[16],"_selected":[1538],"_tabs":[1],"_tabsAlign":[1,"_tabs-align"],"state":[32]}]]],["kol-version",[[33,"kol-version",{"_label":[1],"_version":[1],"state":[32]}]]],["kol-button-link",[[33,"kol-button-link",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaCurrent":[8,"_aria-current"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaLabel":[1025,"_aria-label"],"_ariaSelected":[4,"_aria-selected"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icon":[1],"_iconOnly":[4,"_icon-only"],"_id":[1],"_label":[8],"_name":[1],"_on":[16],"_role":[1],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[8]}]]],["kol-link-button",[[33,"kol-link-button",{"_ariaControls":[1,"_aria-controls"],"_ariaCurrent":[8,"_aria-current"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaLabel":[1,"_aria-label"],"_ariaSelected":[4,"_aria-selected"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_download":[8],"_hideLabel":[4,"_hide-label"],"_href":[1],"_icon":[1],"_iconOnly":[4,"_icon-only"],"_label":[8],"_listenAriaCurrent":[8,"_listen-aria-current"],"_on":[16],"_role":[1],"_tabIndex":[2,"_tab-index"],"_target":[1],"_targetDescription":[1,"_target-description"],"_tooltipAlign":[1,"_tooltip-align"],"_variant":[1]}]]],["kol-skip-nav",[[33,"kol-skip-nav",{"_ariaLabel":[1,"_aria-label"],"_label":[1],"_links":[1],"state":[32]}]]],["kol-split-button",[[33,"kol-split-button",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaCurrent":[8,"_aria-current"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaLabel":[1025,"_aria-label"],"_ariaSelected":[4,"_aria-selected"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icon":[1],"_iconOnly":[4,"_icon-only"],"_label":[1],"_name":[1],"_on":[16],"_role":[1],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_showDropdown":[1540,"_show-dropdown"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[8],"_variant":[1],"state":[32]}]]],["kol-abbr",[[33,"kol-abbr",{"_label":[1],"_tooltipAlign":[1,"_tooltip-align"],"_title":[1],"state":[32]}]]],["kol-details",[[33,"kol-details",{"_label":[1],"_open":[1540],"_summary":[1],"state":[32]}]]],["kol-span",[[33,"kol-span",{"_hideLabel":[4,"_hide-label"],"_icon":[1],"_iconOnly":[4,"_icon-only"],"_label":[8]}]]],["kol-avatar",[[33,"kol-avatar",{"_src":[1],"_label":[1]}]]],["kol-button-group",[[33,"kol-button-group"]]],["kol-indented-text",[[33,"kol-indented-text",{"state":[32]}]]],["kol-form",[[1,"kol-form",{"_on":[16],"_requiredText":[8,"_required-text"],"state":[32]}]]],["kol-heading",[[33,"kol-heading",{"_label":[8],"_level":[2],"_secondaryHeadline":[1,"_secondary-headline"]}]]],["kol-icon",[[33,"kol-icon",{"_ariaLabel":[1,"_aria-label"],"_icon":[1],"_label":[1],"_part":[1],"state":[32]}]]],["kol-icon-font-awesome",[[0,"kol-icon-font-awesome",{"_ariaLabel":[1,"_aria-label"],"_icon":[1],"_prefix":[1],"_part":[1]}]]],["kol-icon-icofont",[[0,"kol-icon-icofont",{"_ariaLabel":[1,"_aria-label"],"_icon":[1],"_part":[1]}]]],["kol-image",[[33,"kol-image",{"_alt":[1],"_loading":[1],"_sizes":[1],"_src":[1],"_srcset":[1],"state":[32]}]]],["kol-kolibri",[[33,"kol-kolibri",{"_animate":[4],"_color":[1],"_labeled":[4],"state":[32]}]]],["kol-logo",[[33,"kol-logo",{"_abbr":[1],"_org":[1],"state":[32]}]]],["kol-modal",[[33,"kol-modal",{"_activeElement":[1040],"_ariaLabel":[1,"_aria-label"],"_label":[1],"_on":[16],"_width":[1],"state":[32]}]]],["kol-popover",[[4,"kol-popover",{"_align":[1],"_show":[1540],"state":[32]}]]],["kol-progress",[[33,"kol-progress",{"_label":[1],"_max":[2],"_type":[1],"_unit":[1],"_value":[2],"_variant":[1],"state":[32]}]]],["kol-spin",[[33,"kol-spin",{"_show":[4],"_variant":[1],"state":[32]}]]],["kol-symbol",[[0,"kol-symbol",{"_ariaLabel":[1,"_aria-label"],"_label":[1],"_symbol":[1],"state":[32]}]]],["kol-span-wc",[[4,"kol-span-wc",{"_hideLabel":[4,"_hide-label"],"_icon":[1],"_iconOnly":[4,"_icon-only"],"_label":[8],"state":[32]}]]],["kol-tooltip",[[0,"kol-tooltip",{"_align":[1],"_id":[1],"_label":[1],"state":[32]}]]],["kol-button-wc_2",[[4,"kol-heading-wc",{"_label":[8],"_level":[2],"_secondaryHeadline":[1,"_secondary-headline"],"state":[32]}],[4,"kol-button-wc",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaCurrent":[8,"_aria-current"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaLabel":[1,"_aria-label"],"_ariaSelected":[4,"_aria-selected"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icon":[1],"_iconAlign":[1,"_icon-align"],"_iconOnly":[4,"_icon-only"],"_id":[1],"_label":[8],"_name":[1],"_on":[16],"_role":[1],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[8],"_variant":[1],"state":[32]}]]],["kol-pagination",[[33,"kol-pagination",{"_boundaryCount":[2,"_boundary-count"],"_customClass":[1,"_custom-class"],"_hasButtons":[8,"_has-buttons"],"_page":[2],"_pageSize":[1026,"_page-size"],"_pageSizeOptions":[1,"_page-size-options"],"_on":[16],"_siblingCount":[2,"_sibling-count"],"_tooltipAlign":[1,"_tooltip-align"],"_total":[2],"_variant":[1],"state":[32]}]]],["kol-input-radio",[[33,"kol-input-radio",{"_accessKey":[1,"_access-key"],"_alert":[1540],"_disabled":[4],"_error":[1],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_id":[1],"_label":[8],"_list":[1],"_name":[1],"_on":[16],"_options":[1],"_orientation":[1],"_required":[4],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[8],"state":[32]}]]],["kol-button-link-text-switch",[[0,"kol-button-link-text-switch",{"_link":[16]}]]],["kol-badge",[[33,"kol-badge",{"_color":[1],"_hideLabel":[4,"_hide-label"],"_icon":[1],"_iconOnly":[4,"_icon-only"],"_label":[1],"_smartButton":[1,"_smart-button"],"state":[32]}]]],["kol-avatar-wc",[[0,"kol-avatar-wc",{"_src":[1],"_label":[1],"state":[32]}]]],["kol-select",[[33,"kol-select",{"_accessKey":[1,"_access-key"],"_alert":[1540],"_disabled":[4],"_error":[1],"_height":[1],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icon":[1],"_id":[1],"_label":[8],"_list":[1],"_multiple":[4],"_name":[1],"_on":[16],"_options":[1],"_required":[4],"_rows":[2],"_size":[2],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_touched":[1540],"_value":[1025],"state":[32]}]]],["kol-button-group-wc",[[4,"kol-button-group-wc",{"state":[32]}]]],["kol-button",[[33,"kol-button",{"_accessKey":[1,"_access-key"],"_ariaControls":[1,"_aria-controls"],"_ariaCurrent":[8,"_aria-current"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaLabel":[1,"_aria-label"],"_ariaSelected":[4,"_aria-selected"],"_customClass":[1,"_custom-class"],"_disabled":[4],"_hideLabel":[4,"_hide-label"],"_icon":[1],"_iconAlign":[1,"_icon-align"],"_iconOnly":[4,"_icon-only"],"_id":[1],"_label":[8],"_name":[1],"_on":[16],"_role":[1],"_syncValueBySelector":[1,"_sync-value-by-selector"],"_tabIndex":[2,"_tab-index"],"_tooltipAlign":[1,"_tooltip-align"],"_type":[1],"_value":[8],"_variant":[1]}]]],["kol-link-wc",[[4,"kol-link-wc",{"_ariaControls":[1,"_aria-controls"],"_ariaCurrent":[8,"_aria-current"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaLabel":[1,"_aria-label"],"_ariaSelected":[4,"_aria-selected"],"_disabled":[4],"_download":[8],"_hideLabel":[4,"_hide-label"],"_href":[1],"_icon":[1],"_iconAlign":[1,"_icon-align"],"_iconOnly":[4,"_icon-only"],"_label":[8],"_listenAriaCurrent":[8,"_listen-aria-current"],"_on":[16],"_role":[1],"_selector":[1],"_stealth":[4],"_tabIndex":[2,"_tab-index"],"_target":[1],"_targetDescription":[1,"_target-description"],"_tooltipAlign":[1,"_tooltip-align"],"_useCase":[1,"_use-case"],"state":[32]}]]],["kol-link",[[33,"kol-link",{"_ariaControls":[1,"_aria-controls"],"_ariaCurrent":[8,"_aria-current"],"_ariaExpanded":[4,"_aria-expanded"],"_ariaLabel":[1,"_aria-label"],"_ariaSelected":[4,"_aria-selected"],"_disabled":[4],"_download":[8],"_hideLabel":[4,"_hide-label"],"_href":[1],"_icon":[1],"_iconAlign":[1,"_icon-align"],"_iconOnly":[4,"_icon-only"],"_label":[8],"_listenAriaCurrent":[8,"_listen-aria-current"],"_on":[16],"_role":[1],"_selector":[1],"_stealth":[4],"_tabIndex":[2,"_tab-index"],"_target":[1],"_targetDescription":[1,"_target-description"],"_tooltipAlign":[1,"_tooltip-align"],"_useCase":[1,"_use-case"]}]]],["kol-alert",[[33,"kol-alert",{"_alert":[4],"_hasCloser":[4,"_has-closer"],"_heading":[1],"_label":[1],"_level":[2],"_on":[16],"_type":[1],"_variant":[1],"state":[32]}]]],["kol-alert-wc_2",[[4,"kol-input",{"_alert":[4],"_currentLength":[2,"_current-length"],"_disabled":[4],"_error":[1],"_hasCounter":[4,"_has-counter"],"_hideLabel":[4,"_hide-label"],"_hint":[1],"_icon":[16],"_id":[1],"_maxLength":[2,"_max-length"],"_readOnly":[4,"_read-only"],"_renderNoLabel":[4,"_render-no-label"],"_required":[4],"_slotName":[1,"_slot-name"],"_suggestions":[1],"_smartButton":[1,"_smart-button"],"_touched":[4]}],[4,"kol-alert-wc",{"_alert":[4],"_hasCloser":[4,"_has-closer"],"_label":[1],"_level":[2],"_on":[16],"_type":[1],"_variant":[1],"state":[32]}]]]]'),e))));
@@ -1 +1 @@
1
- {"version":3,"names":["patchBrowser","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","globalScripts","bootstrapLazy","JSON","parse"],"sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.0.2 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, doc, promiseResolve, H } from '@stencil/core';\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = BUILD.scriptDataOpts\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n if (importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n return promiseResolve(opts);\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":";;;gQAKA,MAAMA,EAAe,KAyBjB,MAAMC,cAAyBC,IAC/B,MAAMC,EAAqE,GAC3E,GAAIF,IAAe,GAAI,CACnBE,EAAKC,aAAe,IAAIC,IAAI,IAAKJ,GAAYK,IACrD,CACI,OAAOC,EAAeJ,EAAK,EC/B/BH,IAAeQ,MAAKC,IAClBC,IACA,OAAOC,EAAcC,KAAAC,MAAA,4igBAAuCJ,EAAA"}
1
+ {"version":3,"names":["patchBrowser","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","globalScripts","bootstrapLazy","JSON","parse"],"sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.0.2 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, doc, promiseResolve, H } from '@stencil/core';\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = BUILD.scriptDataOpts\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n if (importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n return promiseResolve(opts);\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":";;;gQAKA,MAAMA,EAAe,KAyBjB,MAAMC,cAAyBC,IAC/B,MAAMC,EAAqE,GAC3E,GAAIF,IAAe,GAAI,CACnBE,EAAKC,aAAe,IAAIC,IAAI,IAAKJ,GAAYK,IACrD,CACI,OAAOC,EAAeJ,EAAK,EC/B/BH,IAAeQ,MAAKC,IAClBC,IACA,OAAOC,EAAcC,KAAAC,MAAA,s1gBAAuCJ,EAAA"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{a as t,u as e}from"./a11y.tipps-49a594cd.js";import{w as o}from"./prop.validators-2d07ec24.js";const a=/[a-zA-Z0-9äöüÄÖÜß]/g,s=/^\d+$/;function n(t){var e;return"string"==typeof t&&(null===(e=t.match(a))||void 0===e?void 0:e.length)||0}function r(t,e=1){return n(t)>=e}function i(t){return s.test(t)}function l(o){var a;return{hooks:{afterPatch:(a,n,s,l)=>{var c,f;"function"==typeof(null===(c=o.hooks)||void 0===c?void 0:c.afterPatch)&&(null===(f=o.hooks)||void 0===f||f.afterPatch(a,n,s,l)),"string"==typeof a&&!1===r(a,3)&&!1===i(a)&&t(`The heading or label ("${a}") is not accessible. A label should consist of at least three readable characters.`),"string"==typeof a&&a.length>80&&e("A heading or label should not be longer than 80 characters.")},beforePatch:null===(a=o.hooks)||void 0===a?void 0:a.beforePatch}}}const f=new Set(["string"]),c=(t,e,a={})=>{o(t,"_label",(t=>"string"==typeof t),f,e,l(a))},d=new Set(["string","false"]),u=(t,e,a={})=>{""!==e&&"false"!==e||(e=!1),o(t,"_label",(t=>!1===t||"string"==typeof t),d,e,l(a))};export{u as a,i as c,r as h,c as v};
4
+ import{a as t,u as e}from"./a11y.tipps-821939d5.js";import{w as o}from"./prop.validators-6a2ec81f.js";const a=/[a-zA-Z0-9äöüÄÖÜß]/g,s=/^\d+$/;function n(t){var e;return"string"==typeof t&&(null===(e=t.match(a))||void 0===e?void 0:e.length)||0}function r(t,e=1){return n(t)>=e}function i(t){return s.test(t)}function l(o){var a;return{hooks:{afterPatch:(a,n,s,l)=>{var c,f;"function"==typeof(null===(c=o.hooks)||void 0===c?void 0:c.afterPatch)&&(null===(f=o.hooks)||void 0===f||f.afterPatch(a,n,s,l)),"string"==typeof a&&!1===r(a,3)&&!1===i(a)&&t(`The heading or label ("${a}") is not accessible. A label should consist of at least three readable characters.`),"string"==typeof a&&a.length>80&&e("A heading or label should not be longer than 80 characters.")},beforePatch:null===(a=o.hooks)||void 0===a?void 0:a.beforePatch}}}const f=new Set(["string"]),c=(t,e,a={})=>{o(t,"_label",(t=>"string"==typeof t),f,e,l(a))},d=new Set(["string","false"]),u=(t,e,a={})=>{""!==e&&"false"!==e||(e=!1),o(t,"_label",(t=>!1===t||"string"==typeof t),d,e,l(a))};export{u as a,i as c,r as h,c as v};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{d as t}from"./a11y.tipps-49a594cd.js";import{L as e,g as r,a as n,b as i}from"./dev.utils-21cabf82.js";import{p as o,a as s}from"./index-37b5cbcf.js";const a=(t,e)=>{e.forEach((e=>{!1===t.has(e)&&t.add(e)}))},u=(t,e=document)=>{if(e instanceof Document||e instanceof HTMLElement||e instanceof ShadowRoot){const r=new Set;a(r,e.querySelectorAll(t));const n=e.querySelectorAll('[class*="hydrated"]');for(let e=0;e<n.length;e++){const o=n[e].shadowRoot;a(r,u(t,"object"==typeof o&&null!==o?o:n[e]))}return Array.from(r)}throw new Error("The parameter document for the method querySelectorAll is not type of Document, HTMLElement or ShadowRoot.")},c=(t,e=document)=>{if(e instanceof Document||e instanceof HTMLElement||e instanceof ShadowRoot){let r=e.querySelector(t);if(null===r){const n=e.querySelectorAll('[class*="hydrated"]');for(let e=0;e<n.length;e++){const o=n[e].shadowRoot;if(r=c(t,"object"==typeof o&&null!==o?o:n[e]),null!==r)break}}return r}throw new Error("The parameter document for the method querySelector is not type of Document, HTMLElement or ShadowRoot.")};var f=b,l=b,d=y,h=m,v=w,p=g;function b(t){var e=S(t);return 3==e.length?e.concat(255):(e[3]=Math.round(e[3]),e)}function y(t){var e=S(t);return{r:e[0],g:e[1],b:e[2],a:3==e.length?255:Math.round(e[3])}}function m(t){var e=S(t);return 3==e.length&&e.push(255),255==e[3]?"rgb("+e[0]+", "+e[1]+", "+e[2]+")":0==e[3]?"rgba("+e[0]+", "+e[1]+", "+e[2]+", 0)":"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+String(e[3]/255).substr(1)+")"}function w(t){3==(e=S(t)).length&&e.push(255);var e,r=255==e[3],n=E(e[0]),o=E(e[1]),s=E(e[2]),i=N(n,o,s,e=E(Math.round(e[3])));return r?i?"#"+n.charAt(0)+o.charAt(0)+s.charAt(0):"#"+n+o+s:i?"#"+n.charAt(0)+o.charAt(0)+s.charAt(0)+e.charAt(0):"#"+n+o+s+e}function g(t){var e=S(t);return 3==e.length?e.push(255):e[3]=Math.round(e[3]),(e[3]<<24>>>0|e[0]<<16|e[1]<<8|e[2])>>>0}function S(t){return"string"==typeof t?M(t=t.toLowerCase())||_(t)||j(t)||k(t)||D(t)||[0,0,0,255]:x(t)||T(t)||$(t)||[0,0,0,255]}function E(t){var e=t.toString(16);return 1==e.length?"0"+e:e}function N(t,e,r,n){var o=["ff","00","11","22","33","44","55","66","77","88","99","aa","bb","cc","dd","ee"];return-1!=o.indexOf(t)&&-1!=o.indexOf(e)&&-1!=o.indexOf(r)&&-1!=o.indexOf(n)}function M(t){return"red"==t?[255,0,0]:"green"==t?[0,255,0]:"blue"==t?[0,0,255]:"black"==t?[0,0,0]:"white"==t?[255,255,255]:"cyan"==t?[0,255,255]:"gray"==t||"grey"==t?[128,128,128]:"magenta"==t||"pink"==t?[255,0,255]:"yellow"==t?[255,255,0]:void 0}function O(t){return 1==t.length?parseInt(t+t,16):parseInt(t,16)}function _(t){var e=t.replace(/^#/,""),r=e.length;if(3==r||4==r){var n=O(e[0]),o=O(e[1]),s=O(e[2]),i=3==r?255:O(e[3]);if(isNaN(n)||isNaN(o)||isNaN(s)||isNaN(i))return;return[n,o,s,i]}}function j(t){var e=t.replace(/^#/,""),r=e.length;if(6==r||8==r){var n=O(e.slice(0,2)),o=O(e.slice(2,4)),s=O(e.slice(4,6)),i=6==r?255:O(e.slice(6,8));if(isNaN(n)||isNaN(o)||isNaN(s)||isNaN(i))return;return[n,o,s,i]}}function A(t,e){return"number"!=typeof t||!0===e&&Math.floor(t)!==t?-1:t>=0&&t<=255?t:-1}function x(t){if("[object Object]"===Object.prototype.toString.call(t)&&Object.getPrototypeOf(t)===Object.getPrototypeOf({})){var e=A(null!=t.r?t.r:null!=t.red?t.red:0,!0),r=A(null!=t.g?t.g:null!=t.green?t.green:0,!0),n=A(null!=t.b?t.b:null!=t.blue?t.blue:0,!0),o=A(null!=t.a?t.a:null!=t.alpha?t.alpha:255,!0);if(-1!=e&&-1!=r&&-1!=n&&-1!=o)return[e,r,n,o]}}function T(t){if(Array.isArray(t)&&(3==t.length||4==t.length)){var e=A(t[0],!0),r=A(t[1],!0),n=A(t[2],!0),o=A(null!=t[3]?t[3]:255,!0);if(-1!=e&&-1!=r&&-1!=n&&-1!=o)return[e,r,n,o]}}function $(t){if("number"==typeof t&&Math.floor(t)==t&&t<=4294967295&&t>=0)return[t>>16&255,t>>8&255,255&t,t>>24&255]}function k(t){if("rgb("==t.substr(0,4)){var e=(t=t.match(/^rgb\(([^)]+)\)/)[1]).split(/ *, */).map(Number),r=A(e[0],!0),n=A(e[1],!0),o=A(e[2],!0);if(-1!=r&&-1!=n&&-1!=o)return[r,n,o,255]}}function D(t){if("rgba("==t.substr(0,5)){var e=(t=t.match(/^rgba\(([^)]+)\)/)[1]).split(/ *, */).map(Number),r=A(e[0],!0),n=A(e[1],!0),o=A(e[2],!0),s=A(255*e[3]);if(-1!=r&&-1!=n&&-1!=o&&-1!=s)return[r,n,o,s]}}function P(t){return"function"==typeof t}function C(t){const e=t((t=>{Error.call(t),t.stack=(new Error).stack}));return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}f.arr=l,f.obj=d,f.css=h,f.hex=v,f.num=p;const H=C((t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map(((t,e)=>`${e+1}) ${t.toString()}`)).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e}));function L(t,e){if(t){const r=t.indexOf(e);0<=r&&t.splice(r,1)}}class J{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const t of e)t.remove(this);else e.remove(this);const{initialTeardown:r}=this;if(P(r))try{r()}catch(e){t=e instanceof H?e.errors:[e]}const{_finalizers:n}=this;if(n){this._finalizers=null;for(const e of n)try{U(e)}catch(e){t=null!=t?t:[],e instanceof H?t=[...t,...e.errors]:t.push(e)}}if(t)throw new H(t)}}add(t){var e;if(t&&t!==this)if(this.closed)U(t);else{if(t instanceof J){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(t)}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;e===t?this._parentage=null:Array.isArray(e)&&L(e,t)}remove(t){const{_finalizers:e}=this;e&&L(e,t),t instanceof J&&t._removeParent(this)}}J.EMPTY=(()=>{const t=new J;return t.closed=!0,t})();const z=J.EMPTY;function I(t){return t instanceof J||t&&"closed"in t&&P(t.remove)&&P(t.add)&&P(t.unsubscribe)}function U(t){P(t)?t():t.unsubscribe()}const F={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},q={setTimeout(t,e,...r){const{delegate:n}=q;return(null==n?void 0:n.setTimeout)?n.setTimeout(t,e,...r):setTimeout(t,e,...r)},clearTimeout(t){const{delegate:e}=q;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function B(t){q.setTimeout((()=>{const{onUnhandledError:e}=F;if(!e)throw t;e(t)}))}function R(){}const W=G("C",void 0,void 0);function K(t){return G("E",void 0,t)}function Y(t){return G("N",t,void 0)}function G(t,e,r){return{kind:t,value:e,error:r}}function Q(t){t()}class V extends J{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,I(t)&&t.add(this)):this.destination=ot}static create(t,e,r){return new et(t,e,r)}next(t){this.isStopped?it(Y(t),this):this._next(t)}error(t){this.isStopped?it(K(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?it(W,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const X=Function.prototype.bind;function Z(t,e){return X.call(t,e)}class tt{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(t){rt(t)}}error(t){const{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(t){rt(t)}else rt(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(t){rt(t)}}}class et extends V{constructor(t,e,r){let n;if(super(),P(t)||!t)n={next:null!=t?t:void 0,error:null!=e?e:void 0,complete:null!=r?r:void 0};else{let e;this&&F.useDeprecatedNextContext?(e=Object.create(t),e.unsubscribe=()=>this.unsubscribe(),n={next:t.next&&Z(t.next,e),error:t.error&&Z(t.error,e),complete:t.complete&&Z(t.complete,e)}):n=t}this.destination=new tt(n)}}function rt(t){B(t)}function nt(t){throw t}function it(t,e){const{onStoppedNotification:r}=F;r&&q.setTimeout((()=>r(t,e)))}const ot={closed:!0,next:R,error:nt,complete:R},st="function"==typeof Symbol&&Symbol.observable||"@@observable";function at(t){return t}function ut(t){return 0===t.length?at:1===t.length?t[0]:function(e){return t.reduce(((t,e)=>e(t)),e)}}class ct{constructor(t){t&&(this._subscribe=t)}lift(t){const e=new ct;return e.source=this,e.operator=t,e}subscribe(t,e,r){const n=dt(t)?t:new et(t,e,r);return Q((()=>{const{operator:t,source:e}=this;n.add(t?t.call(n,e):e?this._subscribe(n):this._trySubscribe(n))})),n}_trySubscribe(t){try{return this._subscribe(t)}catch(e){t.error(e)}}forEach(t,e){return new(e=ft(e))(((e,r)=>{const n=new et({next:e=>{try{t(e)}catch(t){r(t),n.unsubscribe()}},error:r,complete:e});this.subscribe(n)}))}_subscribe(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)}[st](){return this}pipe(...t){return ut(t)(this)}toPromise(t){return new(t=ft(t))(((t,e)=>{let r;this.subscribe((t=>r=t),(t=>e(t)),(()=>t(r)))}))}}function ft(t){var e;return null!==(e=null!=t?t:F.Promise)&&void 0!==e?e:Promise}function lt(t){return t&&P(t.next)&&P(t.error)&&P(t.complete)}function dt(t){return t&&t instanceof V||lt(t)&&I(t)}ct.create=t=>new ct(t);const ht=C((t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}));class vt extends ct{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const e=new pt(this,this);return e.operator=t,e}_throwIfClosed(){if(this.closed)throw new ht}next(t){Q((()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const e of this.currentObservers)e.next(t)}}))}error(t){Q((()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:e}=this;for(;e.length;)e.shift().error(t)}}))}complete(){Q((()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}}))}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:e,isStopped:r,observers:n}=this;return e||r?z:(this.currentObservers=null,n.push(t),new J((()=>{this.currentObservers=null,L(n,t)})))}_checkFinalizedStatuses(t){const{hasError:e,thrownError:r,isStopped:n}=this;e?t.error(r):n&&t.complete()}asObservable(){const t=new ct;return t.source=this,t}}vt.create=(t,e)=>new pt(t,e);class pt extends vt{constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,t)}error(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,t)}complete(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)}_subscribe(t){var e,r;return null!==(r=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==r?r:z}}var bt=.2126,yt=.7152,mt=.0722,wt=1/12.92;function gt(t){return Math.pow((t+.055)/1.055,2.4)}function St(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,o=e<=.03928?e*wt:gt(e),s=r<=.03928?r*wt:gt(r),i=n<=.03928?n*wt:gt(n);return o*bt+s*yt+i*mt}function Et(t){var e=255;8===(t=t.replace(/^#/,"")).length&&(e=parseInt(t.slice(6,8),16),t=t.substring(0,6)),4===t.length&&(e=parseInt(t.slice(3,4).repeat(2),16),t=t.substring(0,3)),3===t.length&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]);var r=parseInt(t,16);return[r>>16,r>>8&255,255&r,e]}function Nt(t,e){return(Math.max(t,e)+.05)/(Math.min(t,e)+.05)}function Mt(t,e){return Nt(St(t),St(e))}function Ot(t,e){return Mt(Et(t),Et(e))}function _t(t){return t>=7?"AAA":t>=4.5?"AA":t>=3?"AA Large":"Fail"}const jt=/\[object Object\]/,At=(t,e)=>{"string"==typeof t&&jt.test(t)||e()},xt=(t,e)=>{"string"==typeof t&&""===t||e()},Tt=(t,r)=>{i()&&(e.debug([t,r]),e.debug("↑ We propagate the (submit) event to this target.")),Object.defineProperty(t,"target",{value:r,writable:!1})},$t=t=>{var e,r,n;null===(e=t.nextHooks)||void 0===e||e.forEach(((e,r)=>{var n;const o=e.get("beforePatch");"function"==typeof o&&o(null===(n=t.nextState)||void 0===n?void 0:n.get(r),t.nextState,t,r)})),(null===(r=t.nextState)||void 0===r?void 0:r.size)>0&&(t.state=Object.assign(Object.assign({},t.state),Object.fromEntries(t.nextState)),delete t.nextState,null===(n=t.nextHooks)||void 0===n||n.forEach(((e,r)=>{const n=e.get("afterPatch");"function"==typeof n&&n(t.state[r],t.state,t,r)}))),delete t.nextHooks},kt=(t,e,r,n={})=>{var o,s;if(void 0===t.nextHooks&&(t.nextHooks=new Map),void 0===t.nextState&&(t.nextState=new Map),t.nextState.get(e)!==r){t.nextHooks.get(e)instanceof Map==!1&&t.nextHooks.set(e,new Map),"function"==typeof n.afterPatch&&(null===(o=t.nextHooks.get(e))||void 0===o||o.set("afterPatch",n.afterPatch)),"function"==typeof n.beforePatch&&(null===(s=t.nextHooks.get(e))||void 0===s||s.set("beforePatch",n.beforePatch)),t.nextState.set(e,r),$t(t)}},Dt=(e,r,n,o)=>{t(`[${e.constructor.name}] Der Property-Wert (${n}) für '${r}' ist nicht valide. Folgende Werte sind erlaubt: ${Array.from(o).join(", ")}`)};function Pt(t,e,r,n,o,s={}){r(o)?kt(t,e,o,s.hooks):null!=o||s.required?(s.required||n.add(null),Dt(t,e,o,n)):kt(t,e,s.defaultValue,s.hooks)}const Ct=(t,e,r,n)=>{Pt(t,e,(t=>"boolean"==typeof t),new Set(["Boolean {true, false}"]),r,n)},Ht=(t,e,r,n={})=>{const o="number"==typeof n.minLength?null==n?void 0:n.minLength:0;Pt(t,e,(t=>"string"==typeof t&&t.length>=o&&(void 0===(null==n?void 0:n.maxLength)||t.length<=n.maxLength)),new Set(["String"]),r,n)},Lt=(t,e,r,n)=>{Pt(t,e,(t=>"number"==typeof t&&(void 0===(null==n?void 0:n.min)||"number"==typeof(null==n?void 0:n.min)&&t>=n.min)&&(void 0===(null==n?void 0:n.max)||"number"==typeof(null==n?void 0:n.max)&&t<=n.max)),new Set(["Number"]),r,n)},Jt=(t,r,n,o,s=(t=>t==t),i={})=>{xt(o,(()=>{At(o,(()=>{void 0===o&&(o=[]);try{try{o=Rt(o)}catch(t){}if(Array.isArray(o)){const c=o.find((t=>!n(t)));void 0===c&&s(o)?kt(t,r,o,i.hooks):At(c,(()=>{throw e.debug(c),new Error("↑ Das Schema für das Property (_options) ist nicht valide. Der Wert wird nicht geändert.")}))}else At(o,(()=>{throw e.debug(o),new Error("↑ Das Schema für das Property (_options) ist nicht valide. Der Wert wird nicht geändert.")}))}catch(t){e.debug(t)}}))}))},zt=/^(true|false)$/,It=/^-?(0|[1-9]\d*)$/,Ut=/^-?(0.|[1-9]\d*.)\d*[1-9]$/,Ft=e=>{const r=typeof e,n=`${e}`;if("string"==typeof e)if(zt.test(e))e="true"===e;else if(It.test(e))e=parseInt(e);else if(Ut.test(e))e=parseFloat(e);else if(Bt.test(e))try{e=Rt(e)}catch(t){}return r!==typeof e&&t(`You have used a stringified property value (${n} to ${JSON.stringify(e)}) which type switched from ${r} to ${typeof e}!`),e},qt=t=>{try{return JSON.stringify(t).replace(/"/g,"'")}catch(r){throw e.warn(["stringifyJson",t]),e.error("↑ Das JSON konnte nicht in einen String umgewandelt werden. Es wird ein stringifizierbares JSON erwartet."),new Error}},Bt=/^[{[]/,Rt=t=>{if("string"==typeof t)try{return JSON.parse(t)}catch(r){if(Bt.test(t))try{return JSON.parse(t.replace(/'/g,'"'))}catch(r){e.warn(["parseJson",t]),e.error("↑ Der JSON-String konnte nicht geparsed werden. Achten Sie darauf, dass einfache Anführungszeichen im Text maskiert werden (&#8216;).")}}throw new Error},Wt=t=>"boolean"==typeof t?!0===t?"true":"false":void 0,Kt=t=>"string"==typeof t?t:Wt(t),Yt=(t,e)=>c(t,e||r()),Gt=(t,e)=>u(t,e||r());let Qt=null;const Vt=()=>(Qt=Qt||{backgroundColor:"#00000000",color:"#00000000",domNode:r().body,level:"Fail",score:1},Qt),Xt=/(\d+, ){3}0\)/,Zt=(t,r=Vt())=>{const n=getComputedStyle(t),o=Xt.test(n.backgroundColor)?r.backgroundColor:f.hex(n.backgroundColor),s=Xt.test(n.color)?r.color:f.hex(n.color),i=Ot(o,s),c={backgroundColor:o,color:s,domNode:t,level:_t(i),score:i};return i<4.5&&e.error(["Color-Contrast-Error",{backgroundColor:c.backgroundColor,color:c.color,level:c.level,score:c.score},c.domNode]),c},te=(t,e=Vt())=>{e.domNode instanceof HTMLElement&&(e=Zt(e.domNode,e));const r=e.domNode.querySelector(t);if(null===r){const r=e.domNode.querySelectorAll('[class="hydrated"]');for(let n=0;n<r.length&&(e.domNode=r[n],null===(e=te(t,e)).domNode);n++);return e}return Zt(r,e)},ee=(e,r=window)=>{e instanceof HTMLElement?(r.scrollTo({behavior:"smooth",top:e.getBoundingClientRect().top+n().pageYOffset-50}),e.focus()):t("Das HTMLElement ist nicht valide, zu dem gescrollt werden soll.")},re=(e,r)=>{if((e instanceof Document||e instanceof HTMLElement||e instanceof ShadowRoot)&&"string"==typeof r){t("Bei der Methode querySelectorAll wurden die Parameter document, selector in selector, document getauscht, da der Parameter selector nicht, allerdings der Parameter document optional sein kann.");const n=`${r}`;r=e,e=n}if("string"==typeof e){const n=Yt(e,r);n instanceof HTMLElement?ee(n):t(`Es konnte kein HTMLElement mit dem Selector (${e}) gefunden werden, zu dem gescrollt werden soll.`)}else t("Der Selector ist nicht valide, zu dem gescrollt werden soll.")};class ne{static queryHtmlElementColors(t,r,n=!1,o=!0){let s=null;if(!0===n||!1===ne.executionLock)if(!1===n&&(ne.cache.clear(),ne.cache.set(r.domNode,r),ne.executionLock=!0,!0===o&&e.debug("[KoliBriUtils] Color contrast analysis started...")),t===r.domNode)s=r;else{const e=new Set;if(r.domNode.shadowRoot){const t=r.domNode.shadowRoot.children;for(let r=0;r<t.length;r++)e.add(t[r])}const n=r.domNode;if("function"==typeof n.assignedNodes){const t=n.assignedNodes();for(let r=0;r<t.length;r++)t[r]instanceof HTMLElement&&e.add(t[r])}const o=r.domNode.children;for(let t=0;t<o.length;t++)e.add(o[t]);const i=Array.from(e);for(let e=0;e<i.length;e++){let n=ne.cache.get(i[e]);void 0===n&&(n=Zt(i[e],r)),ne.cache.set(i[e],n);const o=ne.queryHtmlElementColors(t,n,!0,!1);if(null!==o){s=o;break}}}else e.debug("[KoliBriUtils] Call aborted because a color contrast analysis is currently being executed.");return!1===n&&(!0===o&&e.debug(`[KoliBriUtils] Color contrast analysis finished (${ne.cache.size} DOM elements are analysed).`),ne.executionLock=!1,ne.cache.clear()),s}}ne.executionLock=!1,ne.cache=new Map;const ie=new vt;class oe{}oe.ariaCurrentSubject=ie,oe.patchTheme=o,oe.patchThemeTag=s,oe.querySelector=Yt,oe.querySelectorAll=Gt,oe.scrollByHTMLElement=ee,oe.scrollBySelector=re,oe.stringifyJson=qt;export{oe as K,Ct as a,Ot as b,Jt as c,Ht as d,Lt as e,Tt as f,xt as g,ie as h,Wt as i,re as j,Yt as k,Kt as l,Ft as m,ne as n,At as o,Rt as p,Zt as q,f as r,kt as s,Gt as t,te as u,qt as v,Pt as w};
4
+ import{d as t}from"./a11y.tipps-821939d5.js";import{L as e,g as r,a as n,b as i}from"./dev.utils-a47b8ff2.js";import{p as o,a as s}from"./index-37b5cbcf.js";const a=(t,e)=>{e.forEach((e=>{!1===t.has(e)&&t.add(e)}))},u=(t,e=document)=>{if(e instanceof Document||e instanceof HTMLElement||e instanceof ShadowRoot){const r=new Set;a(r,e.querySelectorAll(t));const n=e.querySelectorAll('[class*="hydrated"]');for(let e=0;e<n.length;e++){const o=n[e].shadowRoot;a(r,u(t,"object"==typeof o&&null!==o?o:n[e]))}return Array.from(r)}throw new Error("The parameter document for the method querySelectorAll is not type of Document, HTMLElement or ShadowRoot.")},c=(t,e=document)=>{if(e instanceof Document||e instanceof HTMLElement||e instanceof ShadowRoot){let r=e.querySelector(t);if(null===r){const n=e.querySelectorAll('[class*="hydrated"]');for(let e=0;e<n.length;e++){const o=n[e].shadowRoot;if(r=c(t,"object"==typeof o&&null!==o?o:n[e]),null!==r)break}}return r}throw new Error("The parameter document for the method querySelector is not type of Document, HTMLElement or ShadowRoot.")};var f=b,l=b,d=y,h=m,v=w,p=g;function b(t){var e=S(t);return 3==e.length?e.concat(255):(e[3]=Math.round(e[3]),e)}function y(t){var e=S(t);return{r:e[0],g:e[1],b:e[2],a:3==e.length?255:Math.round(e[3])}}function m(t){var e=S(t);return 3==e.length&&e.push(255),255==e[3]?"rgb("+e[0]+", "+e[1]+", "+e[2]+")":0==e[3]?"rgba("+e[0]+", "+e[1]+", "+e[2]+", 0)":"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+String(e[3]/255).substr(1)+")"}function w(t){3==(e=S(t)).length&&e.push(255);var e,r=255==e[3],n=E(e[0]),o=E(e[1]),s=E(e[2]),i=N(n,o,s,e=E(Math.round(e[3])));return r?i?"#"+n.charAt(0)+o.charAt(0)+s.charAt(0):"#"+n+o+s:i?"#"+n.charAt(0)+o.charAt(0)+s.charAt(0)+e.charAt(0):"#"+n+o+s+e}function g(t){var e=S(t);return 3==e.length?e.push(255):e[3]=Math.round(e[3]),(e[3]<<24>>>0|e[0]<<16|e[1]<<8|e[2])>>>0}function S(t){return"string"==typeof t?M(t=t.toLowerCase())||_(t)||j(t)||k(t)||D(t)||[0,0,0,255]:x(t)||T(t)||$(t)||[0,0,0,255]}function E(t){var e=t.toString(16);return 1==e.length?"0"+e:e}function N(t,e,r,n){var o=["ff","00","11","22","33","44","55","66","77","88","99","aa","bb","cc","dd","ee"];return-1!=o.indexOf(t)&&-1!=o.indexOf(e)&&-1!=o.indexOf(r)&&-1!=o.indexOf(n)}function M(t){return"red"==t?[255,0,0]:"green"==t?[0,255,0]:"blue"==t?[0,0,255]:"black"==t?[0,0,0]:"white"==t?[255,255,255]:"cyan"==t?[0,255,255]:"gray"==t||"grey"==t?[128,128,128]:"magenta"==t||"pink"==t?[255,0,255]:"yellow"==t?[255,255,0]:void 0}function O(t){return 1==t.length?parseInt(t+t,16):parseInt(t,16)}function _(t){var e=t.replace(/^#/,""),r=e.length;if(3==r||4==r){var n=O(e[0]),o=O(e[1]),s=O(e[2]),i=3==r?255:O(e[3]);if(isNaN(n)||isNaN(o)||isNaN(s)||isNaN(i))return;return[n,o,s,i]}}function j(t){var e=t.replace(/^#/,""),r=e.length;if(6==r||8==r){var n=O(e.slice(0,2)),o=O(e.slice(2,4)),s=O(e.slice(4,6)),i=6==r?255:O(e.slice(6,8));if(isNaN(n)||isNaN(o)||isNaN(s)||isNaN(i))return;return[n,o,s,i]}}function A(t,e){return"number"!=typeof t||!0===e&&Math.floor(t)!==t?-1:t>=0&&t<=255?t:-1}function x(t){if("[object Object]"===Object.prototype.toString.call(t)&&Object.getPrototypeOf(t)===Object.getPrototypeOf({})){var e=A(null!=t.r?t.r:null!=t.red?t.red:0,!0),r=A(null!=t.g?t.g:null!=t.green?t.green:0,!0),n=A(null!=t.b?t.b:null!=t.blue?t.blue:0,!0),o=A(null!=t.a?t.a:null!=t.alpha?t.alpha:255,!0);if(-1!=e&&-1!=r&&-1!=n&&-1!=o)return[e,r,n,o]}}function T(t){if(Array.isArray(t)&&(3==t.length||4==t.length)){var e=A(t[0],!0),r=A(t[1],!0),n=A(t[2],!0),o=A(null!=t[3]?t[3]:255,!0);if(-1!=e&&-1!=r&&-1!=n&&-1!=o)return[e,r,n,o]}}function $(t){if("number"==typeof t&&Math.floor(t)==t&&t<=4294967295&&t>=0)return[t>>16&255,t>>8&255,255&t,t>>24&255]}function k(t){if("rgb("==t.substr(0,4)){var e=(t=t.match(/^rgb\(([^)]+)\)/)[1]).split(/ *, */).map(Number),r=A(e[0],!0),n=A(e[1],!0),o=A(e[2],!0);if(-1!=r&&-1!=n&&-1!=o)return[r,n,o,255]}}function D(t){if("rgba("==t.substr(0,5)){var e=(t=t.match(/^rgba\(([^)]+)\)/)[1]).split(/ *, */).map(Number),r=A(e[0],!0),n=A(e[1],!0),o=A(e[2],!0),s=A(255*e[3]);if(-1!=r&&-1!=n&&-1!=o&&-1!=s)return[r,n,o,s]}}function P(t){return"function"==typeof t}function C(t){const e=t((t=>{Error.call(t),t.stack=(new Error).stack}));return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}f.arr=l,f.obj=d,f.css=h,f.hex=v,f.num=p;const H=C((t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map(((t,e)=>`${e+1}) ${t.toString()}`)).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e}));function L(t,e){if(t){const r=t.indexOf(e);0<=r&&t.splice(r,1)}}class J{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const t of e)t.remove(this);else e.remove(this);const{initialTeardown:r}=this;if(P(r))try{r()}catch(e){t=e instanceof H?e.errors:[e]}const{_finalizers:n}=this;if(n){this._finalizers=null;for(const e of n)try{U(e)}catch(e){t=null!=t?t:[],e instanceof H?t=[...t,...e.errors]:t.push(e)}}if(t)throw new H(t)}}add(t){var e;if(t&&t!==this)if(this.closed)U(t);else{if(t instanceof J){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(t)}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;e===t?this._parentage=null:Array.isArray(e)&&L(e,t)}remove(t){const{_finalizers:e}=this;e&&L(e,t),t instanceof J&&t._removeParent(this)}}J.EMPTY=(()=>{const t=new J;return t.closed=!0,t})();const z=J.EMPTY;function I(t){return t instanceof J||t&&"closed"in t&&P(t.remove)&&P(t.add)&&P(t.unsubscribe)}function U(t){P(t)?t():t.unsubscribe()}const F={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},q={setTimeout(t,e,...r){const{delegate:n}=q;return(null==n?void 0:n.setTimeout)?n.setTimeout(t,e,...r):setTimeout(t,e,...r)},clearTimeout(t){const{delegate:e}=q;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function B(t){q.setTimeout((()=>{const{onUnhandledError:e}=F;if(!e)throw t;e(t)}))}function R(){}const W=G("C",void 0,void 0);function K(t){return G("E",void 0,t)}function Y(t){return G("N",t,void 0)}function G(t,e,r){return{kind:t,value:e,error:r}}function Q(t){t()}class V extends J{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,I(t)&&t.add(this)):this.destination=ot}static create(t,e,r){return new et(t,e,r)}next(t){this.isStopped?it(Y(t),this):this._next(t)}error(t){this.isStopped?it(K(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?it(W,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const X=Function.prototype.bind;function Z(t,e){return X.call(t,e)}class tt{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(t){rt(t)}}error(t){const{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(t){rt(t)}else rt(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(t){rt(t)}}}class et extends V{constructor(t,e,r){let n;if(super(),P(t)||!t)n={next:null!=t?t:void 0,error:null!=e?e:void 0,complete:null!=r?r:void 0};else{let e;this&&F.useDeprecatedNextContext?(e=Object.create(t),e.unsubscribe=()=>this.unsubscribe(),n={next:t.next&&Z(t.next,e),error:t.error&&Z(t.error,e),complete:t.complete&&Z(t.complete,e)}):n=t}this.destination=new tt(n)}}function rt(t){B(t)}function nt(t){throw t}function it(t,e){const{onStoppedNotification:r}=F;r&&q.setTimeout((()=>r(t,e)))}const ot={closed:!0,next:R,error:nt,complete:R},st="function"==typeof Symbol&&Symbol.observable||"@@observable";function at(t){return t}function ut(t){return 0===t.length?at:1===t.length?t[0]:function(e){return t.reduce(((t,e)=>e(t)),e)}}class ct{constructor(t){t&&(this._subscribe=t)}lift(t){const e=new ct;return e.source=this,e.operator=t,e}subscribe(t,e,r){const n=dt(t)?t:new et(t,e,r);return Q((()=>{const{operator:t,source:e}=this;n.add(t?t.call(n,e):e?this._subscribe(n):this._trySubscribe(n))})),n}_trySubscribe(t){try{return this._subscribe(t)}catch(e){t.error(e)}}forEach(t,e){return new(e=ft(e))(((e,r)=>{const n=new et({next:e=>{try{t(e)}catch(t){r(t),n.unsubscribe()}},error:r,complete:e});this.subscribe(n)}))}_subscribe(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)}[st](){return this}pipe(...t){return ut(t)(this)}toPromise(t){return new(t=ft(t))(((t,e)=>{let r;this.subscribe((t=>r=t),(t=>e(t)),(()=>t(r)))}))}}function ft(t){var e;return null!==(e=null!=t?t:F.Promise)&&void 0!==e?e:Promise}function lt(t){return t&&P(t.next)&&P(t.error)&&P(t.complete)}function dt(t){return t&&t instanceof V||lt(t)&&I(t)}ct.create=t=>new ct(t);const ht=C((t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}));class vt extends ct{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const e=new pt(this,this);return e.operator=t,e}_throwIfClosed(){if(this.closed)throw new ht}next(t){Q((()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const e of this.currentObservers)e.next(t)}}))}error(t){Q((()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:e}=this;for(;e.length;)e.shift().error(t)}}))}complete(){Q((()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}}))}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:e,isStopped:r,observers:n}=this;return e||r?z:(this.currentObservers=null,n.push(t),new J((()=>{this.currentObservers=null,L(n,t)})))}_checkFinalizedStatuses(t){const{hasError:e,thrownError:r,isStopped:n}=this;e?t.error(r):n&&t.complete()}asObservable(){const t=new ct;return t.source=this,t}}vt.create=(t,e)=>new pt(t,e);class pt extends vt{constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,t)}error(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,t)}complete(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)}_subscribe(t){var e,r;return null!==(r=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==r?r:z}}var bt=.2126,yt=.7152,mt=.0722,wt=1/12.92;function gt(t){return Math.pow((t+.055)/1.055,2.4)}function St(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,o=e<=.03928?e*wt:gt(e),s=r<=.03928?r*wt:gt(r),i=n<=.03928?n*wt:gt(n);return o*bt+s*yt+i*mt}function Et(t){var e=255;8===(t=t.replace(/^#/,"")).length&&(e=parseInt(t.slice(6,8),16),t=t.substring(0,6)),4===t.length&&(e=parseInt(t.slice(3,4).repeat(2),16),t=t.substring(0,3)),3===t.length&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]);var r=parseInt(t,16);return[r>>16,r>>8&255,255&r,e]}function Nt(t,e){return(Math.max(t,e)+.05)/(Math.min(t,e)+.05)}function Mt(t,e){return Nt(St(t),St(e))}function Ot(t,e){return Mt(Et(t),Et(e))}function _t(t){return t>=7?"AAA":t>=4.5?"AA":t>=3?"AA Large":"Fail"}const jt=/\[object Object\]/,At=(t,e)=>{"string"==typeof t&&jt.test(t)||e()},xt=(t,e)=>{"string"==typeof t&&""===t||e()},Tt=(t,r)=>{i()&&(e.debug([t,r]),e.debug("↑ We propagate the (submit) event to this target.")),Object.defineProperty(t,"target",{value:r,writable:!1})},$t=t=>{var e,r,n;null===(e=t.nextHooks)||void 0===e||e.forEach(((e,r)=>{var n;const o=e.get("beforePatch");"function"==typeof o&&o(null===(n=t.nextState)||void 0===n?void 0:n.get(r),t.nextState,t,r)})),(null===(r=t.nextState)||void 0===r?void 0:r.size)>0&&(t.state=Object.assign(Object.assign({},t.state),Object.fromEntries(t.nextState)),delete t.nextState,null===(n=t.nextHooks)||void 0===n||n.forEach(((e,r)=>{const n=e.get("afterPatch");"function"==typeof n&&n(t.state[r],t.state,t,r)}))),delete t.nextHooks},kt=(t,e,r,n={})=>{var o,s;if(void 0===t.nextHooks&&(t.nextHooks=new Map),void 0===t.nextState&&(t.nextState=new Map),t.nextState.get(e)!==r){t.nextHooks.get(e)instanceof Map==!1&&t.nextHooks.set(e,new Map),"function"==typeof n.afterPatch&&(null===(o=t.nextHooks.get(e))||void 0===o||o.set("afterPatch",n.afterPatch)),"function"==typeof n.beforePatch&&(null===(s=t.nextHooks.get(e))||void 0===s||s.set("beforePatch",n.beforePatch)),t.nextState.set(e,r),$t(t)}},Dt=(e,r,n,o)=>{t(`[${e.constructor.name}] Der Property-Wert (${n}) für '${r}' ist nicht valide. Folgende Werte sind erlaubt: ${Array.from(o).join(", ")}`)};function Pt(t,e,r,n,o,s={}){r(o)?kt(t,e,o,s.hooks):null!=o||s.required?(s.required||n.add(null),Dt(t,e,o,n)):kt(t,e,s.defaultValue,s.hooks)}const Ct=(t,e,r,n)=>{Pt(t,e,(t=>"boolean"==typeof t),new Set(["Boolean {true, false}"]),r,n)},Ht=(t,e,r,n={})=>{const o="number"==typeof n.minLength?null==n?void 0:n.minLength:0;Pt(t,e,(t=>"string"==typeof t&&t.length>=o&&(void 0===(null==n?void 0:n.maxLength)||t.length<=n.maxLength)),new Set(["String"]),r,n)},Lt=(t,e,r,n)=>{Pt(t,e,(t=>"number"==typeof t&&(void 0===(null==n?void 0:n.min)||"number"==typeof(null==n?void 0:n.min)&&t>=n.min)&&(void 0===(null==n?void 0:n.max)||"number"==typeof(null==n?void 0:n.max)&&t<=n.max)),new Set(["Number"]),r,n)},Jt=(t,r,n,o,s=(t=>t==t),i={})=>{xt(o,(()=>{At(o,(()=>{void 0===o&&(o=[]);try{try{o=Rt(o)}catch(t){}if(Array.isArray(o)){const c=o.find((t=>!n(t)));void 0===c&&s(o)?kt(t,r,o,i.hooks):At(c,(()=>{throw e.debug(c),new Error("↑ Das Schema für das Property (_options) ist nicht valide. Der Wert wird nicht geändert.")}))}else At(o,(()=>{throw e.debug(o),new Error("↑ Das Schema für das Property (_options) ist nicht valide. Der Wert wird nicht geändert.")}))}catch(t){e.debug(t)}}))}))},zt=/^(true|false)$/,It=/^-?(0|[1-9]\d*)$/,Ut=/^-?(0.|[1-9]\d*.)\d*[1-9]$/,Ft=e=>{const r=typeof e,n=`${e}`;if("string"==typeof e)if(zt.test(e))e="true"===e;else if(It.test(e))e=parseInt(e);else if(Ut.test(e))e=parseFloat(e);else if(Bt.test(e))try{e=Rt(e)}catch(t){}return r!==typeof e&&t(`You have used a stringified property value (${n} to ${JSON.stringify(e)}) which type switched from ${r} to ${typeof e}!`),e},qt=t=>{try{return JSON.stringify(t).replace(/"/g,"'")}catch(r){throw e.warn(["stringifyJson",t]),e.error("↑ Das JSON konnte nicht in einen String umgewandelt werden. Es wird ein stringifizierbares JSON erwartet."),new Error}},Bt=/^[{[]/,Rt=t=>{if("string"==typeof t)try{return JSON.parse(t)}catch(r){if(Bt.test(t))try{return JSON.parse(t.replace(/'/g,'"'))}catch(r){e.warn(["parseJson",t]),e.error("↑ Der JSON-String konnte nicht geparsed werden. Achten Sie darauf, dass einfache Anführungszeichen im Text maskiert werden (&#8216;).")}}throw new Error},Wt=t=>"boolean"==typeof t?!0===t?"true":"false":void 0,Kt=t=>"string"==typeof t?t:Wt(t),Yt=(t,e)=>c(t,e||r()),Gt=(t,e)=>u(t,e||r());let Qt=null;const Vt=()=>(Qt=Qt||{backgroundColor:"#00000000",color:"#00000000",domNode:r().body,level:"Fail",score:1},Qt),Xt=/(\d+, ){3}0\)/,Zt=(t,r=Vt())=>{const n=getComputedStyle(t),o=Xt.test(n.backgroundColor)?r.backgroundColor:f.hex(n.backgroundColor),s=Xt.test(n.color)?r.color:f.hex(n.color),i=Ot(o,s),c={backgroundColor:o,color:s,domNode:t,level:_t(i),score:i};return i<4.5&&e.error(["Color-Contrast-Error",{backgroundColor:c.backgroundColor,color:c.color,level:c.level,score:c.score},c.domNode]),c},te=(t,e=Vt())=>{e.domNode instanceof HTMLElement&&(e=Zt(e.domNode,e));const r=e.domNode.querySelector(t);if(null===r){const r=e.domNode.querySelectorAll('[class="hydrated"]');for(let n=0;n<r.length&&(e.domNode=r[n],null===(e=te(t,e)).domNode);n++);return e}return Zt(r,e)},ee=(e,r=window)=>{e instanceof HTMLElement?(r.scrollTo({behavior:"smooth",top:e.getBoundingClientRect().top+n().pageYOffset-50}),e.focus()):t("Das HTMLElement ist nicht valide, zu dem gescrollt werden soll.")},re=(e,r)=>{if((e instanceof Document||e instanceof HTMLElement||e instanceof ShadowRoot)&&"string"==typeof r){t("Bei der Methode querySelectorAll wurden die Parameter document, selector in selector, document getauscht, da der Parameter selector nicht, allerdings der Parameter document optional sein kann.");const n=`${r}`;r=e,e=n}if("string"==typeof e){const n=Yt(e,r);n instanceof HTMLElement?ee(n):t(`Es konnte kein HTMLElement mit dem Selector (${e}) gefunden werden, zu dem gescrollt werden soll.`)}else t("Der Selector ist nicht valide, zu dem gescrollt werden soll.")};class ne{static queryHtmlElementColors(t,r,n=!1,o=!0){let s=null;if(!0===n||!1===ne.executionLock)if(!1===n&&(ne.cache.clear(),ne.cache.set(r.domNode,r),ne.executionLock=!0,!0===o&&e.debug("[KoliBriUtils] Color contrast analysis started...")),t===r.domNode)s=r;else{const e=new Set;if(r.domNode.shadowRoot){const t=r.domNode.shadowRoot.children;for(let r=0;r<t.length;r++)e.add(t[r])}const n=r.domNode;if("function"==typeof n.assignedNodes){const t=n.assignedNodes();for(let r=0;r<t.length;r++)t[r]instanceof HTMLElement&&e.add(t[r])}const o=r.domNode.children;for(let t=0;t<o.length;t++)e.add(o[t]);const i=Array.from(e);for(let e=0;e<i.length;e++){let n=ne.cache.get(i[e]);void 0===n&&(n=Zt(i[e],r)),ne.cache.set(i[e],n);const o=ne.queryHtmlElementColors(t,n,!0,!1);if(null!==o){s=o;break}}}else e.debug("[KoliBriUtils] Call aborted because a color contrast analysis is currently being executed.");return!1===n&&(!0===o&&e.debug(`[KoliBriUtils] Color contrast analysis finished (${ne.cache.size} DOM elements are analysed).`),ne.executionLock=!1,ne.cache.clear()),s}}ne.executionLock=!1,ne.cache=new Map;const ie=new vt;class oe{}oe.ariaCurrentSubject=ie,oe.patchTheme=o,oe.patchThemeTag=s,oe.querySelector=Yt,oe.querySelectorAll=Gt,oe.scrollByHTMLElement=ee,oe.scrollBySelector=re,oe.stringifyJson=qt;export{oe as K,Ct as a,Ot as b,Jt as c,Ht as d,Lt as e,Tt as f,xt as g,ie as h,Wt as i,re as j,Yt as k,Kt as l,Ft as m,ne as n,At as o,Rt as p,Zt as q,f as r,kt as s,Gt as t,te as u,qt as v,Pt as w};