@public-ui/components 2.2.13-e96ef5470424374dedf917332f6f3acb5da2240d.0 → 2.2.13-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (662) hide show
  1. package/custom-elements.json +1 -1
  2. package/dist/cjs/{Alert-a39198fb.js → Alert-41f3fdd9.js} +1 -1
  3. package/dist/cjs/{Alert-a39198fb.js.map → Alert-41f3fdd9.js.map} +1 -1
  4. package/dist/cjs/{Collapsible-878571c1.js → Collapsible-1d509428.js} +1 -1
  5. package/dist/cjs/{Collapsible-878571c1.js.map → Collapsible-1d509428.js.map} +1 -1
  6. package/dist/cjs/FormFieldMsg-fdf2b127.js +4 -0
  7. package/dist/cjs/{FormFieldMsg-8eba27b7.js.map → FormFieldMsg-fdf2b127.js.map} +1 -1
  8. package/dist/cjs/{InternalUnderlinedBadgeText-a2c83a55.js → InternalUnderlinedBadgeText-2e27d8d8.js} +1 -1
  9. package/dist/cjs/{InternalUnderlinedBadgeText-a2c83a55.js.map → InternalUnderlinedBadgeText-2e27d8d8.js.map} +1 -1
  10. package/dist/cjs/{app-globals-9ed9bc25.js → app-globals-588a3e89.js} +1 -1
  11. package/dist/cjs/{app-globals-9ed9bc25.js.map → app-globals-588a3e89.js.map} +1 -1
  12. package/dist/cjs/controller-5bb59938.js +4 -0
  13. package/dist/cjs/controller-5bb59938.js.map +1 -0
  14. package/dist/cjs/{controller-e30139f3.js → controller-739f29c2.js} +1 -1
  15. package/dist/cjs/{controller-e30139f3.js.map → controller-739f29c2.js.map} +1 -1
  16. package/dist/cjs/controller-a13c89b3.js +4 -0
  17. package/dist/cjs/controller-a13c89b3.js.map +1 -0
  18. package/dist/cjs/{controller-icon-f2b4f168.js → controller-icon-bc9c25ac.js} +1 -1
  19. package/dist/cjs/{controller-icon-f2b4f168.js.map → controller-icon-bc9c25ac.js.map} +1 -1
  20. package/dist/cjs/debounce-7857c4b4.js +4 -0
  21. package/dist/cjs/debounce-7857c4b4.js.map +1 -0
  22. package/dist/cjs/{dev.utils-3dfce688.js → dev.utils-1d9f0fd1.js} +1 -1
  23. package/dist/cjs/{dev.utils-3dfce688.js.map → dev.utils-1d9f0fd1.js.map} +1 -1
  24. package/dist/cjs/{devtools-75bba75a.js → devtools-06f0f72f.js} +1 -1
  25. package/dist/cjs/{devtools-75bba75a.js.map → devtools-06f0f72f.js.map} +1 -1
  26. package/dist/cjs/icons-f339f0f3.js +4 -0
  27. package/dist/cjs/icons-f339f0f3.js.map +1 -0
  28. package/dist/cjs/index-4d023d25.js.map +1 -1
  29. package/dist/cjs/index-e75ef0f1.js +4 -0
  30. package/dist/cjs/index-e75ef0f1.js.map +1 -0
  31. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  32. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  33. package/dist/cjs/kol-accordion.cjs.entry.js.map +1 -1
  34. package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
  35. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  36. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  37. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  38. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  39. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  40. package/dist/cjs/kol-button-group-wc.cjs.entry.js +1 -1
  41. package/dist/cjs/kol-button-group.cjs.entry.js +1 -1
  42. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  43. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  44. package/dist/cjs/kol-button-wc.cjs.entry.js.map +1 -1
  45. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  46. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  47. package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
  48. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  49. package/dist/cjs/kol-details.cjs.entry.js.map +1 -1
  50. package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
  51. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  52. package/dist/cjs/kol-heading-wc.cjs.entry.js +1 -1
  53. package/dist/cjs/kol-heading-wc.cjs.entry.js.map +1 -1
  54. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  55. package/dist/cjs/kol-heading.cjs.entry.js.map +1 -1
  56. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  57. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  58. package/dist/cjs/kol-indented-text-wc.cjs.entry.js +1 -1
  59. package/dist/cjs/kol-indented-text.cjs.entry.js +1 -1
  60. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  61. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  62. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  63. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  64. package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
  65. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  66. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  67. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  68. package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
  69. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  71. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
  73. package/dist/cjs/kol-input.cjs.entry.js +1 -1
  74. package/dist/cjs/kol-input.cjs.entry.js.map +1 -1
  75. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  77. package/dist/cjs/kol-link-group.cjs.entry.js +1 -1
  78. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  79. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  80. package/dist/cjs/kol-logo.cjs.entry.js +1 -1
  81. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  82. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-nav.cjs.entry.js.map +1 -1
  84. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-pagination.cjs.entry.js.map +1 -1
  86. package/dist/cjs/kol-popover-button.cjs.entry.js +1 -1
  87. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  88. package/dist/cjs/kol-popover-wc.cjs.entry.js.map +1 -1
  89. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  90. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  91. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-single-select.cjs.entry.js +1 -1
  93. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  94. package/dist/cjs/kol-span-wc.cjs.entry.js +1 -1
  95. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  96. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  97. package/dist/cjs/kol-symbol.cjs.entry.js +1 -1
  98. package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
  99. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
  100. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js.map +1 -1
  101. package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
  102. package/dist/cjs/kol-table.cjs.entry.js +1 -1
  103. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  104. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  105. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  106. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  107. package/dist/cjs/kol-toast-container.cjs.entry.js.map +1 -1
  108. package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
  109. package/dist/cjs/kol-toolbar.cjs.entry.js.map +1 -1
  110. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  111. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
  112. package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
  113. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  114. package/dist/cjs/kol-tree.cjs.entry.js +1 -1
  115. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  116. package/dist/cjs/kolibri.cjs.js +1 -1
  117. package/dist/cjs/loader.cjs.js +1 -1
  118. package/dist/cjs/table-selection-106f5d36.js +4 -0
  119. package/dist/cjs/table-selection-106f5d36.js.map +1 -0
  120. package/dist/cjs/test-component.cjs.entry.js +1 -1
  121. package/dist/components/access-and-short-key.js +1 -1
  122. package/dist/components/associated.controller.js +1 -1
  123. package/dist/components/badge-text.js +1 -1
  124. package/dist/components/button-variant.js +1 -1
  125. package/dist/components/color.js +1 -1
  126. package/dist/components/controller.js +1 -1
  127. package/dist/components/controller2.js +1 -1
  128. package/dist/components/controller3.js +1 -1
  129. package/dist/components/controller3.js.map +1 -1
  130. package/dist/components/controller5.js +1 -1
  131. package/dist/components/controller5.js.map +1 -1
  132. package/dist/components/custom-class.js +1 -1
  133. package/dist/components/debounce.js +4 -0
  134. package/dist/components/debounce.js.map +1 -0
  135. package/dist/components/devtools.js +1 -1
  136. package/dist/components/disabled.js +1 -1
  137. package/dist/components/has-closer.js +1 -1
  138. package/dist/components/hide-label.js +1 -1
  139. package/dist/components/href.js +1 -1
  140. package/dist/components/icons.js +1 -1
  141. package/dist/components/icons.js.map +1 -1
  142. package/dist/components/image-source.js +1 -1
  143. package/dist/components/index2.js +1 -1
  144. package/dist/components/index2.js.map +1 -1
  145. package/dist/components/kol-accordion.js +1 -1
  146. package/dist/components/kol-accordion.js.map +1 -1
  147. package/dist/components/kol-alert-wc.js +1 -1
  148. package/dist/components/kol-badge.js +1 -1
  149. package/dist/components/kol-breadcrumb.js +1 -1
  150. package/dist/components/kol-button-wc.js +1 -1
  151. package/dist/components/kol-button-wc.js.map +1 -1
  152. package/dist/components/kol-card.js +1 -1
  153. package/dist/components/kol-combobox.js +1 -1
  154. package/dist/components/kol-details.js +1 -1
  155. package/dist/components/kol-details.js.map +1 -1
  156. package/dist/components/kol-drawer.js +1 -1
  157. package/dist/components/kol-form.js +1 -1
  158. package/dist/components/kol-heading-wc.js +1 -1
  159. package/dist/components/kol-heading-wc.js.map +1 -1
  160. package/dist/components/kol-heading.js +1 -1
  161. package/dist/components/kol-heading.js.map +1 -1
  162. package/dist/components/kol-icon.js +1 -1
  163. package/dist/components/kol-image.js +1 -1
  164. package/dist/components/kol-indented-text-wc.js +1 -1
  165. package/dist/components/kol-input-checkbox.js +1 -1
  166. package/dist/components/kol-input-color.js +1 -1
  167. package/dist/components/kol-input-date.js +1 -1
  168. package/dist/components/kol-input-email.js +1 -1
  169. package/dist/components/kol-input-email.js.map +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-password.js.map +1 -1
  174. package/dist/components/kol-input-radio.js +1 -1
  175. package/dist/components/kol-input-range.js +1 -1
  176. package/dist/components/kol-input-text.js +1 -1
  177. package/dist/components/kol-input-text.js.map +1 -1
  178. package/dist/components/kol-input.js +1 -1
  179. package/dist/components/kol-input.js.map +1 -1
  180. package/dist/components/kol-kolibri.js +1 -1
  181. package/dist/components/kol-link-button.js +1 -1
  182. package/dist/components/kol-link-group.js +1 -1
  183. package/dist/components/kol-link-wc.js +1 -1
  184. package/dist/components/kol-link.js +1 -1
  185. package/dist/components/kol-logo.js +1 -1
  186. package/dist/components/kol-modal.js +1 -1
  187. package/dist/components/kol-nav.js +1 -1
  188. package/dist/components/kol-nav.js.map +1 -1
  189. package/dist/components/kol-pagination.js +1 -1
  190. package/dist/components/kol-pagination.js.map +1 -1
  191. package/dist/components/kol-popover-button.js +1 -1
  192. package/dist/components/kol-popover-wc.js +1 -1
  193. package/dist/components/kol-popover-wc.js.map +1 -1
  194. package/dist/components/kol-progress.js +1 -1
  195. package/dist/components/kol-quote.js +1 -1
  196. package/dist/components/kol-select.js +1 -1
  197. package/dist/components/kol-single-select.js +1 -1
  198. package/dist/components/kol-skip-nav.js +1 -1
  199. package/dist/components/kol-span-wc.js +1 -1
  200. package/dist/components/kol-spin.js +1 -1
  201. package/dist/components/kol-split-button.js +1 -1
  202. package/dist/components/kol-symbol.js +1 -1
  203. package/dist/components/kol-table-stateful.js +1 -1
  204. package/dist/components/kol-table-stateless-wc.js +1 -1
  205. package/dist/components/kol-table-stateless-wc.js.map +1 -1
  206. package/dist/components/kol-table-stateless.js +1 -1
  207. package/dist/components/kol-table.js +1 -1
  208. package/dist/components/kol-tabs.js +1 -1
  209. package/dist/components/kol-textarea.js +1 -1
  210. package/dist/components/kol-textarea.js.map +1 -1
  211. package/dist/components/kol-toast-container.js +1 -1
  212. package/dist/components/kol-toast-container.js.map +1 -1
  213. package/dist/components/kol-toolbar.js +1 -1
  214. package/dist/components/kol-toolbar.js.map +1 -1
  215. package/dist/components/kol-tooltip-wc.js +1 -1
  216. package/dist/components/kol-tree-item-wc.js +1 -1
  217. package/dist/components/kol-tree-item.js +1 -1
  218. package/dist/components/kol-tree-wc.js +1 -1
  219. package/dist/components/kol-tree.js +1 -1
  220. package/dist/components/kol-version.js +1 -1
  221. package/dist/components/open.js +1 -1
  222. package/dist/components/rows.js +1 -1
  223. package/dist/components/show.js +1 -1
  224. package/dist/components/spell-check.js +1 -1
  225. package/dist/components/suggestions.js +1 -1
  226. package/dist/components/table-selection.js +1 -1
  227. package/dist/components/table-selection.js.map +1 -1
  228. package/dist/components/validation2.js +1 -1
  229. package/dist/esm/{Alert-da327a46.js → Alert-01dd5f80.js} +1 -1
  230. package/dist/esm/{Alert-da327a46.js.map → Alert-01dd5f80.js.map} +1 -1
  231. package/dist/esm/{Collapsible-6e76487c.js → Collapsible-315f3877.js} +1 -1
  232. package/dist/esm/{Collapsible-6e76487c.js.map → Collapsible-315f3877.js.map} +1 -1
  233. package/dist/esm/{FormFieldMsg-69cd1b25.js → FormFieldMsg-7e4310fa.js} +1 -1
  234. package/dist/esm/{FormFieldMsg-69cd1b25.js.map → FormFieldMsg-7e4310fa.js.map} +1 -1
  235. package/dist/esm/{InternalUnderlinedBadgeText-710cafc3.js → InternalUnderlinedBadgeText-6898f2b3.js} +1 -1
  236. package/dist/esm/{InternalUnderlinedBadgeText-710cafc3.js.map → InternalUnderlinedBadgeText-6898f2b3.js.map} +1 -1
  237. package/dist/esm/{access-and-short-key-25e651f4.js → access-and-short-key-91c639af.js} +1 -1
  238. package/dist/esm/{access-and-short-key-25e651f4.js.map → access-and-short-key-91c639af.js.map} +1 -1
  239. package/dist/esm/{align-d80dfc19.js → align-be31be0d.js} +1 -1
  240. package/dist/esm/{align-d80dfc19.js.map → align-be31be0d.js.map} +1 -1
  241. package/dist/esm/{align-floating-elements-f5502865.js → align-floating-elements-3e1809c4.js} +1 -1
  242. package/dist/esm/{align-floating-elements-f5502865.js.map → align-floating-elements-3e1809c4.js.map} +1 -1
  243. package/dist/esm/{app-globals-9cbf2262.js → app-globals-cac2026a.js} +1 -1
  244. package/dist/esm/{app-globals-9cbf2262.js.map → app-globals-cac2026a.js.map} +1 -1
  245. package/dist/esm/{associated.controller-2ad4f930.js → associated.controller-8d1afc0c.js} +1 -1
  246. package/dist/esm/{associated.controller-2ad4f930.js.map → associated.controller-8d1afc0c.js.map} +1 -1
  247. package/dist/esm/badge-text-1ca461ea.js +4 -0
  248. package/dist/esm/{badge-text-4cf87dc1.js.map → badge-text-1ca461ea.js.map} +1 -1
  249. package/dist/esm/{button-variant-fa29de43.js → button-variant-78bbe695.js} +1 -1
  250. package/dist/esm/{button-variant-fa29de43.js.map → button-variant-78bbe695.js.map} +1 -1
  251. package/dist/esm/{color-9352cce1.js → color-a8821a60.js} +1 -1
  252. package/dist/esm/{color-9352cce1.js.map → color-a8821a60.js.map} +1 -1
  253. package/dist/esm/{controller-5c44e017.js → controller-136e6dc3.js} +1 -1
  254. package/dist/esm/{controller-5c44e017.js.map → controller-136e6dc3.js.map} +1 -1
  255. package/dist/esm/controller-6ce9698f.js +4 -0
  256. package/dist/esm/controller-6ce9698f.js.map +1 -0
  257. package/dist/esm/{controller-e284d179.js → controller-9b5c5672.js} +1 -1
  258. package/dist/esm/{controller-e284d179.js.map → controller-9b5c5672.js.map} +1 -1
  259. package/dist/esm/{controller-d9005336.js → controller-a44f67e1.js} +1 -1
  260. package/dist/esm/{controller-d9005336.js.map → controller-a44f67e1.js.map} +1 -1
  261. package/dist/esm/controller-f0a8cd72.js +4 -0
  262. package/dist/esm/controller-f0a8cd72.js.map +1 -0
  263. package/dist/esm/{controller-icon-22e2a4c6.js → controller-icon-87de6942.js} +1 -1
  264. package/dist/esm/{controller-icon-22e2a4c6.js.map → controller-icon-87de6942.js.map} +1 -1
  265. package/dist/esm/{custom-class-349f0572.js → custom-class-927da4c2.js} +1 -1
  266. package/dist/esm/{custom-class-349f0572.js.map → custom-class-927da4c2.js.map} +1 -1
  267. package/dist/esm/debounce-90c878d0.js +4 -0
  268. package/dist/esm/debounce-90c878d0.js.map +1 -0
  269. package/dist/esm/{dev.utils-90a9d96f.js → dev.utils-e3e07c15.js} +1 -1
  270. package/dist/esm/{dev.utils-90a9d96f.js.map → dev.utils-e3e07c15.js.map} +1 -1
  271. package/dist/esm/{devtools-afe07706.js → devtools-97cc9852.js} +1 -1
  272. package/dist/esm/{devtools-afe07706.js.map → devtools-97cc9852.js.map} +1 -1
  273. package/dist/esm/disabled-9966b1f0.js +4 -0
  274. package/dist/esm/{disabled-ad5b6199.js.map → disabled-9966b1f0.js.map} +1 -1
  275. package/dist/esm/{has-closer-229bd67f.js → has-closer-64270429.js} +1 -1
  276. package/dist/esm/{has-closer-229bd67f.js.map → has-closer-64270429.js.map} +1 -1
  277. package/dist/esm/hide-label-da89c332.js +4 -0
  278. package/dist/esm/{hide-label-e3ae2cf6.js.map → hide-label-da89c332.js.map} +1 -1
  279. package/dist/esm/href-d4bde881.js +4 -0
  280. package/dist/esm/{href-1819d882.js.map → href-d4bde881.js.map} +1 -1
  281. package/dist/esm/{i18n-0835cc3b.js → i18n-11c0b9eb.js} +1 -1
  282. package/dist/esm/{i18n-0835cc3b.js.map → i18n-11c0b9eb.js.map} +1 -1
  283. package/dist/esm/icons-be30e67a.js +4 -0
  284. package/dist/esm/icons-be30e67a.js.map +1 -0
  285. package/dist/esm/image-source-d479e44b.js +4 -0
  286. package/dist/esm/{image-source-aecd6893.js.map → image-source-d479e44b.js.map} +1 -1
  287. package/dist/esm/index-19f12ec9.js +4 -0
  288. package/dist/esm/index-19f12ec9.js.map +1 -0
  289. package/dist/esm/{index-e32279bc.js → index-bac313b4.js} +1 -1
  290. package/dist/esm/index-bac313b4.js.map +1 -0
  291. package/dist/esm/index.js +1 -1
  292. package/dist/esm/kol-abbr.entry.js +1 -1
  293. package/dist/esm/kol-accordion.entry.js +1 -1
  294. package/dist/esm/kol-accordion.entry.js.map +1 -1
  295. package/dist/esm/kol-alert-wc.entry.js +1 -1
  296. package/dist/esm/kol-alert.entry.js +1 -1
  297. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  298. package/dist/esm/kol-avatar.entry.js +1 -1
  299. package/dist/esm/kol-badge.entry.js +1 -1
  300. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  301. package/dist/esm/kol-button-group-wc.entry.js +1 -1
  302. package/dist/esm/kol-button-group.entry.js +1 -1
  303. package/dist/esm/kol-button-link.entry.js +1 -1
  304. package/dist/esm/kol-button-wc.entry.js +1 -1
  305. package/dist/esm/kol-button-wc.entry.js.map +1 -1
  306. package/dist/esm/kol-button.entry.js +1 -1
  307. package/dist/esm/kol-card.entry.js +1 -1
  308. package/dist/esm/kol-combobox.entry.js +1 -1
  309. package/dist/esm/kol-details.entry.js +1 -1
  310. package/dist/esm/kol-details.entry.js.map +1 -1
  311. package/dist/esm/kol-drawer.entry.js +1 -1
  312. package/dist/esm/kol-form.entry.js +1 -1
  313. package/dist/esm/kol-heading-wc.entry.js +1 -1
  314. package/dist/esm/kol-heading-wc.entry.js.map +1 -1
  315. package/dist/esm/kol-heading.entry.js +1 -1
  316. package/dist/esm/kol-heading.entry.js.map +1 -1
  317. package/dist/esm/kol-icon.entry.js +1 -1
  318. package/dist/esm/kol-image.entry.js +1 -1
  319. package/dist/esm/kol-indented-text-wc.entry.js +1 -1
  320. package/dist/esm/kol-indented-text.entry.js +1 -1
  321. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  322. package/dist/esm/kol-input-color.entry.js +1 -1
  323. package/dist/esm/kol-input-date.entry.js +1 -1
  324. package/dist/esm/kol-input-email.entry.js +1 -1
  325. package/dist/esm/kol-input-email.entry.js.map +1 -1
  326. package/dist/esm/kol-input-file.entry.js +1 -1
  327. package/dist/esm/kol-input-number.entry.js +1 -1
  328. package/dist/esm/kol-input-password.entry.js +1 -1
  329. package/dist/esm/kol-input-password.entry.js.map +1 -1
  330. package/dist/esm/kol-input-radio.entry.js +1 -1
  331. package/dist/esm/kol-input-range.entry.js +1 -1
  332. package/dist/esm/kol-input-text.entry.js +1 -1
  333. package/dist/esm/kol-input-text.entry.js.map +1 -1
  334. package/dist/esm/kol-input.entry.js +1 -1
  335. package/dist/esm/kol-input.entry.js.map +1 -1
  336. package/dist/esm/kol-kolibri.entry.js +1 -1
  337. package/dist/esm/kol-link-button.entry.js +1 -1
  338. package/dist/esm/kol-link-group.entry.js +1 -1
  339. package/dist/esm/kol-link-wc.entry.js +1 -1
  340. package/dist/esm/kol-link.entry.js +1 -1
  341. package/dist/esm/kol-logo.entry.js +1 -1
  342. package/dist/esm/kol-modal.entry.js +1 -1
  343. package/dist/esm/kol-nav.entry.js +1 -1
  344. package/dist/esm/kol-nav.entry.js.map +1 -1
  345. package/dist/esm/kol-pagination.entry.js +1 -1
  346. package/dist/esm/kol-pagination.entry.js.map +1 -1
  347. package/dist/esm/kol-popover-button.entry.js +1 -1
  348. package/dist/esm/kol-popover-wc.entry.js +1 -1
  349. package/dist/esm/kol-popover-wc.entry.js.map +1 -1
  350. package/dist/esm/kol-progress.entry.js +1 -1
  351. package/dist/esm/kol-quote.entry.js +1 -1
  352. package/dist/esm/kol-select.entry.js +1 -1
  353. package/dist/esm/kol-single-select.entry.js +1 -1
  354. package/dist/esm/kol-skip-nav.entry.js +1 -1
  355. package/dist/esm/kol-span-wc.entry.js +1 -1
  356. package/dist/esm/kol-spin.entry.js +1 -1
  357. package/dist/esm/kol-split-button.entry.js +1 -1
  358. package/dist/esm/kol-symbol.entry.js +1 -1
  359. package/dist/esm/kol-table-stateful.entry.js +1 -1
  360. package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
  361. package/dist/esm/kol-table-stateless-wc.entry.js.map +1 -1
  362. package/dist/esm/kol-table-stateless.entry.js +1 -1
  363. package/dist/esm/kol-table.entry.js +1 -1
  364. package/dist/esm/kol-tabs.entry.js +1 -1
  365. package/dist/esm/kol-textarea.entry.js +1 -1
  366. package/dist/esm/kol-textarea.entry.js.map +1 -1
  367. package/dist/esm/kol-toast-container.entry.js +1 -1
  368. package/dist/esm/kol-toast-container.entry.js.map +1 -1
  369. package/dist/esm/kol-toolbar.entry.js +1 -1
  370. package/dist/esm/kol-toolbar.entry.js.map +1 -1
  371. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  372. package/dist/esm/kol-tree-item-wc.entry.js +1 -1
  373. package/dist/esm/kol-tree-item.entry.js +1 -1
  374. package/dist/esm/kol-tree-wc.entry.js +1 -1
  375. package/dist/esm/kol-tree.entry.js +1 -1
  376. package/dist/esm/kol-version.entry.js +1 -1
  377. package/dist/esm/kolibri.js +1 -1
  378. package/dist/esm/{label-c2f427ab.js → label-c79c6289.js} +1 -1
  379. package/dist/esm/{label-c2f427ab.js.map → label-c79c6289.js.map} +1 -1
  380. package/dist/esm/loader.js +1 -1
  381. package/dist/esm/{open-8d886d18.js → open-be7c436f.js} +1 -1
  382. package/dist/esm/{open-8d886d18.js.map → open-be7c436f.js.map} +1 -1
  383. package/dist/esm/rows-4f235475.js +4 -0
  384. package/dist/esm/{rows-11065067.js.map → rows-4f235475.js.map} +1 -1
  385. package/dist/esm/show-5fbb1930.js +4 -0
  386. package/dist/esm/{show-37e6b447.js.map → show-5fbb1930.js.map} +1 -1
  387. package/dist/esm/{spell-check-99498ed1.js → spell-check-e6bd6453.js} +1 -1
  388. package/dist/esm/{spell-check-99498ed1.js.map → spell-check-e6bd6453.js.map} +1 -1
  389. package/dist/esm/{suggestions-3d93a5ce.js → suggestions-68844c85.js} +1 -1
  390. package/dist/esm/{suggestions-3d93a5ce.js.map → suggestions-68844c85.js.map} +1 -1
  391. package/dist/esm/table-selection-3aa020c8.js +4 -0
  392. package/dist/esm/table-selection-3aa020c8.js.map +1 -0
  393. package/dist/esm/test-component.entry.js +1 -1
  394. package/dist/esm/tooltip-align-d17bc994.js +4 -0
  395. package/dist/esm/{tooltip-align-86e888fb.js.map → tooltip-align-d17bc994.js.map} +1 -1
  396. package/dist/esm/unique-nav-labels-18107ff2.js +4 -0
  397. package/dist/esm/{unique-nav-labels-2ea6b853.js.map → unique-nav-labels-18107ff2.js.map} +1 -1
  398. package/dist/esm/{validation-c5900dbf.js → validation-18d1226d.js} +1 -1
  399. package/dist/esm/{validation-c5900dbf.js.map → validation-18d1226d.js.map} +1 -1
  400. package/dist/esm/validation-89efeeb9.js +4 -0
  401. package/dist/esm/{validation-8a691044.js.map → validation-89efeeb9.js.map} +1 -1
  402. package/dist/kolibri/{Alert-da327a46.js → Alert-01dd5f80.js} +1 -1
  403. package/dist/kolibri/{Collapsible-6e76487c.js → Collapsible-315f3877.js} +1 -1
  404. package/dist/kolibri/FormFieldMsg-7e4310fa.js +4 -0
  405. package/dist/kolibri/{InternalUnderlinedBadgeText-710cafc3.js → InternalUnderlinedBadgeText-6898f2b3.js} +1 -1
  406. package/dist/kolibri/access-and-short-key-91c639af.js +4 -0
  407. package/dist/kolibri/align-be31be0d.js +4 -0
  408. package/dist/kolibri/{align-floating-elements-f5502865.js → align-floating-elements-3e1809c4.js} +1 -1
  409. package/dist/kolibri/app-globals-cac2026a.js +4 -0
  410. package/dist/kolibri/{associated.controller-2ad4f930.js → associated.controller-8d1afc0c.js} +1 -1
  411. package/dist/kolibri/badge-text-1ca461ea.js +4 -0
  412. package/dist/kolibri/{button-variant-fa29de43.js → button-variant-78bbe695.js} +1 -1
  413. package/dist/kolibri/{color-9352cce1.js → color-a8821a60.js} +1 -1
  414. package/dist/kolibri/{controller-5c44e017.js → controller-136e6dc3.js} +1 -1
  415. package/dist/kolibri/controller-6ce9698f.js +4 -0
  416. package/dist/kolibri/controller-6ce9698f.js.map +1 -0
  417. package/dist/kolibri/{controller-e284d179.js → controller-9b5c5672.js} +1 -1
  418. package/dist/kolibri/controller-a44f67e1.js +4 -0
  419. package/dist/kolibri/{controller-d9005336.js.map → controller-a44f67e1.js.map} +1 -1
  420. package/dist/kolibri/controller-f0a8cd72.js +4 -0
  421. package/dist/kolibri/controller-f0a8cd72.js.map +1 -0
  422. package/dist/kolibri/{controller-icon-22e2a4c6.js → controller-icon-87de6942.js} +1 -1
  423. package/dist/kolibri/custom-class-927da4c2.js +4 -0
  424. package/dist/kolibri/debounce-90c878d0.js +4 -0
  425. package/dist/kolibri/debounce-90c878d0.js.map +1 -0
  426. package/dist/kolibri/{dev.utils-90a9d96f.js → dev.utils-e3e07c15.js} +1 -1
  427. package/dist/kolibri/{devtools-afe07706.js → devtools-97cc9852.js} +1 -1
  428. package/dist/kolibri/disabled-9966b1f0.js +4 -0
  429. package/dist/kolibri/has-closer-64270429.js +4 -0
  430. package/dist/kolibri/hide-label-da89c332.js +4 -0
  431. package/dist/kolibri/href-d4bde881.js +4 -0
  432. package/dist/kolibri/i18n-11c0b9eb.js +4 -0
  433. package/dist/kolibri/icons-be30e67a.js +4 -0
  434. package/dist/kolibri/icons-be30e67a.js.map +1 -0
  435. package/dist/kolibri/image-source-d479e44b.js +4 -0
  436. package/dist/kolibri/{index-d9d56ef4.js → index-19f12ec9.js} +2 -2
  437. package/dist/kolibri/index-19f12ec9.js.map +1 -0
  438. package/dist/kolibri/{index-e32279bc.js → index-bac313b4.js} +1 -1
  439. package/dist/kolibri/{index-e32279bc.js.map → index-bac313b4.js.map} +1 -1
  440. package/dist/kolibri/index.esm.js +1 -1
  441. package/dist/kolibri/kol-abbr.entry.js +1 -1
  442. package/dist/kolibri/kol-accordion.entry.js +1 -1
  443. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  444. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  445. package/dist/kolibri/kol-alert.entry.js +1 -1
  446. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  447. package/dist/kolibri/kol-avatar.entry.js +1 -1
  448. package/dist/kolibri/kol-badge.entry.js +1 -1
  449. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  450. package/dist/kolibri/kol-button-group-wc.entry.js +1 -1
  451. package/dist/kolibri/kol-button-group.entry.js +1 -1
  452. package/dist/kolibri/kol-button-link.entry.js +1 -1
  453. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  454. package/dist/kolibri/kol-button-wc.entry.js.map +1 -1
  455. package/dist/kolibri/kol-button.entry.js +1 -1
  456. package/dist/kolibri/kol-card.entry.js +1 -1
  457. package/dist/kolibri/kol-combobox.entry.js +1 -1
  458. package/dist/kolibri/kol-details.entry.js +1 -1
  459. package/dist/kolibri/kol-details.entry.js.map +1 -1
  460. package/dist/kolibri/kol-drawer.entry.js +1 -1
  461. package/dist/kolibri/kol-form.entry.js +1 -1
  462. package/dist/kolibri/kol-heading-wc.entry.js +1 -1
  463. package/dist/kolibri/kol-heading-wc.entry.js.map +1 -1
  464. package/dist/kolibri/kol-heading.entry.js +1 -1
  465. package/dist/kolibri/kol-heading.entry.js.map +1 -1
  466. package/dist/kolibri/kol-icon.entry.js +1 -1
  467. package/dist/kolibri/kol-image.entry.js +1 -1
  468. package/dist/kolibri/kol-indented-text-wc.entry.js +1 -1
  469. package/dist/kolibri/kol-indented-text.entry.js +1 -1
  470. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  471. package/dist/kolibri/kol-input-color.entry.js +1 -1
  472. package/dist/kolibri/kol-input-date.entry.js +1 -1
  473. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  474. package/dist/kolibri/kol-input-email.entry.js +1 -1
  475. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  476. package/dist/kolibri/kol-input-file.entry.js +1 -1
  477. package/dist/kolibri/kol-input-number.entry.js +1 -1
  478. package/dist/kolibri/kol-input-password.entry.js +1 -1
  479. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  480. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  481. package/dist/kolibri/kol-input-range.entry.js +1 -1
  482. package/dist/kolibri/kol-input-text.entry.js +1 -1
  483. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  484. package/dist/kolibri/kol-input.entry.js +1 -1
  485. package/dist/kolibri/kol-input.entry.js.map +1 -1
  486. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  487. package/dist/kolibri/kol-link-button.entry.js +1 -1
  488. package/dist/kolibri/kol-link-group.entry.js +1 -1
  489. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  490. package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
  491. package/dist/kolibri/kol-link.entry.js +1 -1
  492. package/dist/kolibri/kol-logo.entry.js +1 -1
  493. package/dist/kolibri/kol-modal.entry.js +1 -1
  494. package/dist/kolibri/kol-nav.entry.js +1 -1
  495. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  496. package/dist/kolibri/kol-pagination.entry.js +1 -1
  497. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  498. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  499. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  500. package/dist/kolibri/kol-popover-wc.entry.js.map +1 -1
  501. package/dist/kolibri/kol-progress.entry.js +1 -1
  502. package/dist/kolibri/kol-quote.entry.js +1 -1
  503. package/dist/kolibri/kol-select.entry.js +1 -1
  504. package/dist/kolibri/kol-single-select.entry.js +1 -1
  505. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  506. package/dist/kolibri/kol-span-wc.entry.js +1 -1
  507. package/dist/kolibri/kol-spin.entry.js +1 -1
  508. package/dist/kolibri/kol-split-button.entry.js +1 -1
  509. package/dist/kolibri/kol-symbol.entry.js +1 -1
  510. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  511. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  512. package/dist/kolibri/kol-table-stateless-wc.entry.js.map +1 -1
  513. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  514. package/dist/kolibri/kol-table.entry.js +1 -1
  515. package/dist/kolibri/kol-tabs.entry.js +1 -1
  516. package/dist/kolibri/kol-textarea.entry.js +1 -1
  517. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  518. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  519. package/dist/kolibri/kol-toast-container.entry.js.map +1 -1
  520. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  521. package/dist/kolibri/kol-toolbar.entry.js.map +1 -1
  522. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  523. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  524. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  525. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  526. package/dist/kolibri/kol-tree.entry.js +1 -1
  527. package/dist/kolibri/kol-version.entry.js +1 -1
  528. package/dist/kolibri/kolibri.esm.js +1 -1
  529. package/dist/kolibri/kolibri.esm.js.map +1 -1
  530. package/dist/kolibri/{label-c2f427ab.js → label-c79c6289.js} +1 -1
  531. package/dist/kolibri/open-be7c436f.js +4 -0
  532. package/dist/kolibri/rows-4f235475.js +4 -0
  533. package/dist/kolibri/show-5fbb1930.js +4 -0
  534. package/dist/kolibri/spell-check-e6bd6453.js +4 -0
  535. package/dist/kolibri/{suggestions-3d93a5ce.js → suggestions-68844c85.js} +1 -1
  536. package/dist/kolibri/table-selection-3aa020c8.js +4 -0
  537. package/dist/kolibri/table-selection-3aa020c8.js.map +1 -0
  538. package/dist/kolibri/test-component.entry.js +1 -1
  539. package/dist/kolibri/tooltip-align-d17bc994.js +4 -0
  540. package/dist/kolibri/{unique-nav-labels-2ea6b853.js → unique-nav-labels-18107ff2.js} +1 -1
  541. package/dist/kolibri/validation-18d1226d.js +4 -0
  542. package/dist/kolibri/validation-89efeeb9.js +4 -0
  543. package/dist/kolibri/{validation-8a691044.js.map → validation-89efeeb9.js.map} +1 -1
  544. package/dist/types/components/heading/component.d.ts +0 -1
  545. package/dist/types/components/input/component.d.ts +2 -1
  546. package/dist/types/components/input-password/controller.d.ts +1 -0
  547. package/dist/types/components/table-stateless/component.d.ts +1 -1
  548. package/dist/types/components/textarea/controller.d.ts +1 -0
  549. package/dist/types/components.d.ts +1 -0
  550. package/dist/types/schema/components/input-email.d.ts +2 -1
  551. package/dist/types/schema/components/input-password.d.ts +2 -1
  552. package/dist/types/schema/components/input-text.d.ts +2 -1
  553. package/dist/types/schema/components/textarea.d.ts +1 -0
  554. package/dist/types/schema/components/toaster.d.ts +1 -0
  555. package/dist/types/schema/types/aria.d.ts +4 -0
  556. package/dist/types/schema/types/index.d.ts +1 -1
  557. package/dist/types/schema/validators/common.d.ts +1 -1
  558. package/doc/toaster.md +3 -3
  559. package/package.json +5 -1
  560. package/postinstall.js +38 -0
  561. package/dist/cjs/FormFieldMsg-8eba27b7.js +0 -4
  562. package/dist/cjs/controller-63392fcc.js +0 -4
  563. package/dist/cjs/controller-63392fcc.js.map +0 -1
  564. package/dist/cjs/controller-ea284a25.js +0 -4
  565. package/dist/cjs/controller-ea284a25.js.map +0 -1
  566. package/dist/cjs/has-counter-4e1a4310.js +0 -4
  567. package/dist/cjs/has-counter-4e1a4310.js.map +0 -1
  568. package/dist/cjs/icons-bdb59a04.js +0 -4
  569. package/dist/cjs/icons-bdb59a04.js.map +0 -1
  570. package/dist/cjs/index-55bc61a8.js +0 -4
  571. package/dist/cjs/index-55bc61a8.js.map +0 -1
  572. package/dist/cjs/table-selection-15ab1cff.js +0 -4
  573. package/dist/cjs/table-selection-15ab1cff.js.map +0 -1
  574. package/dist/components/has-counter.js +0 -4
  575. package/dist/components/has-counter.js.map +0 -1
  576. package/dist/esm/badge-text-4cf87dc1.js +0 -4
  577. package/dist/esm/controller-cbb66178.js +0 -4
  578. package/dist/esm/controller-cbb66178.js.map +0 -1
  579. package/dist/esm/controller-d5636bab.js +0 -4
  580. package/dist/esm/controller-d5636bab.js.map +0 -1
  581. package/dist/esm/disabled-ad5b6199.js +0 -4
  582. package/dist/esm/has-counter-451a5ec0.js +0 -4
  583. package/dist/esm/has-counter-451a5ec0.js.map +0 -1
  584. package/dist/esm/hide-label-e3ae2cf6.js +0 -4
  585. package/dist/esm/href-1819d882.js +0 -4
  586. package/dist/esm/icons-e36b4959.js +0 -4
  587. package/dist/esm/icons-e36b4959.js.map +0 -1
  588. package/dist/esm/image-source-aecd6893.js +0 -4
  589. package/dist/esm/index-d9d56ef4.js +0 -4
  590. package/dist/esm/index-d9d56ef4.js.map +0 -1
  591. package/dist/esm/index-e32279bc.js.map +0 -1
  592. package/dist/esm/rows-11065067.js +0 -4
  593. package/dist/esm/show-37e6b447.js +0 -4
  594. package/dist/esm/table-selection-94fe9747.js +0 -4
  595. package/dist/esm/table-selection-94fe9747.js.map +0 -1
  596. package/dist/esm/tooltip-align-86e888fb.js +0 -4
  597. package/dist/esm/unique-nav-labels-2ea6b853.js +0 -4
  598. package/dist/esm/validation-8a691044.js +0 -4
  599. package/dist/kolibri/FormFieldMsg-69cd1b25.js +0 -4
  600. package/dist/kolibri/access-and-short-key-25e651f4.js +0 -4
  601. package/dist/kolibri/align-d80dfc19.js +0 -4
  602. package/dist/kolibri/app-globals-9cbf2262.js +0 -4
  603. package/dist/kolibri/badge-text-4cf87dc1.js +0 -4
  604. package/dist/kolibri/controller-cbb66178.js +0 -4
  605. package/dist/kolibri/controller-cbb66178.js.map +0 -1
  606. package/dist/kolibri/controller-d5636bab.js +0 -4
  607. package/dist/kolibri/controller-d5636bab.js.map +0 -1
  608. package/dist/kolibri/controller-d9005336.js +0 -4
  609. package/dist/kolibri/custom-class-349f0572.js +0 -4
  610. package/dist/kolibri/disabled-ad5b6199.js +0 -4
  611. package/dist/kolibri/has-closer-229bd67f.js +0 -4
  612. package/dist/kolibri/has-counter-451a5ec0.js +0 -4
  613. package/dist/kolibri/has-counter-451a5ec0.js.map +0 -1
  614. package/dist/kolibri/hide-label-e3ae2cf6.js +0 -4
  615. package/dist/kolibri/href-1819d882.js +0 -4
  616. package/dist/kolibri/i18n-0835cc3b.js +0 -4
  617. package/dist/kolibri/icons-e36b4959.js +0 -4
  618. package/dist/kolibri/icons-e36b4959.js.map +0 -1
  619. package/dist/kolibri/image-source-aecd6893.js +0 -4
  620. package/dist/kolibri/index-d9d56ef4.js.map +0 -1
  621. package/dist/kolibri/open-8d886d18.js +0 -4
  622. package/dist/kolibri/rows-11065067.js +0 -4
  623. package/dist/kolibri/show-37e6b447.js +0 -4
  624. package/dist/kolibri/spell-check-99498ed1.js +0 -4
  625. package/dist/kolibri/table-selection-94fe9747.js +0 -4
  626. package/dist/kolibri/table-selection-94fe9747.js.map +0 -1
  627. package/dist/kolibri/tooltip-align-86e888fb.js +0 -4
  628. package/dist/kolibri/validation-8a691044.js +0 -4
  629. package/dist/kolibri/validation-c5900dbf.js +0 -4
  630. /package/dist/kolibri/{Alert-da327a46.js.map → Alert-01dd5f80.js.map} +0 -0
  631. /package/dist/kolibri/{Collapsible-6e76487c.js.map → Collapsible-315f3877.js.map} +0 -0
  632. /package/dist/kolibri/{FormFieldMsg-69cd1b25.js.map → FormFieldMsg-7e4310fa.js.map} +0 -0
  633. /package/dist/kolibri/{InternalUnderlinedBadgeText-710cafc3.js.map → InternalUnderlinedBadgeText-6898f2b3.js.map} +0 -0
  634. /package/dist/kolibri/{access-and-short-key-25e651f4.js.map → access-and-short-key-91c639af.js.map} +0 -0
  635. /package/dist/kolibri/{align-d80dfc19.js.map → align-be31be0d.js.map} +0 -0
  636. /package/dist/kolibri/{align-floating-elements-f5502865.js.map → align-floating-elements-3e1809c4.js.map} +0 -0
  637. /package/dist/kolibri/{app-globals-9cbf2262.js.map → app-globals-cac2026a.js.map} +0 -0
  638. /package/dist/kolibri/{associated.controller-2ad4f930.js.map → associated.controller-8d1afc0c.js.map} +0 -0
  639. /package/dist/kolibri/{badge-text-4cf87dc1.js.map → badge-text-1ca461ea.js.map} +0 -0
  640. /package/dist/kolibri/{button-variant-fa29de43.js.map → button-variant-78bbe695.js.map} +0 -0
  641. /package/dist/kolibri/{color-9352cce1.js.map → color-a8821a60.js.map} +0 -0
  642. /package/dist/kolibri/{controller-5c44e017.js.map → controller-136e6dc3.js.map} +0 -0
  643. /package/dist/kolibri/{controller-e284d179.js.map → controller-9b5c5672.js.map} +0 -0
  644. /package/dist/kolibri/{controller-icon-22e2a4c6.js.map → controller-icon-87de6942.js.map} +0 -0
  645. /package/dist/kolibri/{custom-class-349f0572.js.map → custom-class-927da4c2.js.map} +0 -0
  646. /package/dist/kolibri/{dev.utils-90a9d96f.js.map → dev.utils-e3e07c15.js.map} +0 -0
  647. /package/dist/kolibri/{devtools-afe07706.js.map → devtools-97cc9852.js.map} +0 -0
  648. /package/dist/kolibri/{disabled-ad5b6199.js.map → disabled-9966b1f0.js.map} +0 -0
  649. /package/dist/kolibri/{has-closer-229bd67f.js.map → has-closer-64270429.js.map} +0 -0
  650. /package/dist/kolibri/{hide-label-e3ae2cf6.js.map → hide-label-da89c332.js.map} +0 -0
  651. /package/dist/kolibri/{href-1819d882.js.map → href-d4bde881.js.map} +0 -0
  652. /package/dist/kolibri/{i18n-0835cc3b.js.map → i18n-11c0b9eb.js.map} +0 -0
  653. /package/dist/kolibri/{image-source-aecd6893.js.map → image-source-d479e44b.js.map} +0 -0
  654. /package/dist/kolibri/{label-c2f427ab.js.map → label-c79c6289.js.map} +0 -0
  655. /package/dist/kolibri/{open-8d886d18.js.map → open-be7c436f.js.map} +0 -0
  656. /package/dist/kolibri/{rows-11065067.js.map → rows-4f235475.js.map} +0 -0
  657. /package/dist/kolibri/{show-37e6b447.js.map → show-5fbb1930.js.map} +0 -0
  658. /package/dist/kolibri/{spell-check-99498ed1.js.map → spell-check-e6bd6453.js.map} +0 -0
  659. /package/dist/kolibri/{suggestions-3d93a5ce.js.map → suggestions-68844c85.js.map} +0 -0
  660. /package/dist/kolibri/{tooltip-align-86e888fb.js.map → tooltip-align-d17bc994.js.map} +0 -0
  661. /package/dist/kolibri/{unique-nav-labels-2ea6b853.js.map → unique-nav-labels-18107ff2.js.map} +0 -0
  662. /package/dist/kolibri/{validation-c5900dbf.js.map → validation-18d1226d.js.map} +0 -0
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{p as t}from"./index-e32279bc.js";const n=["top","right","bottom","left"],e=["start","end"],o=n.reduce(((t,n)=>t.concat(n,n+"-"+e[0],n+"-"+e[1])),[]),s=Math.min,i=Math.max,r=Math.round,c=Math.floor,l=t=>({x:t,y:t}),f={left:"right",right:"left",bottom:"top",top:"bottom"},a={start:"end",end:"start"};function u(t,e,n){return i(t,s(e,n))}function d(t,e){return"function"==typeof t?t(e):t}function m(t){return t.split("-")[0]}function p(t){return t.split("-")[1]}function h(t){return"x"===t?"y":"x"}function y(t){return"y"===t?"height":"width"}function w(t){return["top","bottom"].includes(m(t))?"y":"x"}function g(t){return h(w(t))}function x(t,e,n){void 0===n&&(n=!1);const o=p(t),i=g(t),r=y(i);let l="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[r]>e.floating[r]&&(l=R(l)),[l,R(l)]}function v(t){const e=R(t);return[b(t),e,b(e)]}function b(t){return t.replace(/start|end/g,(t=>a[t]))}function A(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:l;default:return[]}}function O(t,e,n,o){const i=p(t);let r=A(m(t),"start"===n,o);return i&&(r=r.map((t=>t+"-"+i)),e&&(r=r.concat(r.map(b)))),r}function R(t){return t.replace(/left|right|bottom|top/g,(t=>f[t]))}function k(t){return{top:0,right:0,bottom:0,left:0,...t}}function S(t){return"number"!=typeof t?k(t):{top:t,right:t,bottom:t,left:t}}function D(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function F(t,e,n){let{reference:o,floating:i}=t;const r=w(e),l=g(e),c=y(l),s=m(e),a="y"===r,f=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,d=o[c]/2-i[c]/2;let h;switch(s){case"top":h={x:f,y:o.y-i.height};break;case"bottom":h={x:f,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:u};break;case"left":h={x:o.x-i.width,y:u};break;default:h={x:o.x,y:o.y}}switch(p(e)){case"start":h[l]-=d*(n&&a?-1:1);break;case"end":h[l]+=d*(n&&a?-1:1)}return h}const P=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:l}=n,c=r.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(e));let a=await l.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:u}=F(a,o,s),d=o,m={},h=0;for(let n=0;n<c.length;n++){const{name:r,fn:p}=c[n],{x:g,y:y,data:w,reset:x}=await p({x:f,y:u,initialPlacement:o,placement:d,strategy:i,middlewareData:m,rects:a,platform:l,elements:{reference:t,floating:e}});f=null!=g?g:f,u=null!=y?y:u,m={...m,[r]:{...m[r],...w}},x&&h<=50&&(h++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(a=!0===x.rects?await l.getElementRects({reference:t,floating:e,strategy:i}):x.rects),({x:f,y:u}=F(a,d,s))),n=-1)}return{x:f,y:u,placement:d,strategy:i,middlewareData:m}};async function $(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:r,rects:l,elements:c,strategy:s}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:m=!1,padding:h=0}=d(e,t),p=S(h),g=c[m?"floating"===u?"reference":"floating":u],y=D(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(g)))||n?g:g.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(c.floating)),boundary:a,rootBoundary:f,strategy:s})),w="floating"===u?{x:o,y:i,width:l.floating.width,height:l.floating.height}:l.reference,x=await(null==r.getOffsetParent?void 0:r.getOffsetParent(c.floating)),v=await(null==r.isElement?void 0:r.isElement(x))&&await(null==r.getScale?void 0:r.getScale(x))||{x:1,y:1},b=D(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:x,strategy:s}):w);return{top:(y.top-b.top+p.top)/v.y,bottom:(b.bottom-y.bottom+p.bottom)/v.y,left:(y.left-b.left+p.left)/v.x,right:(b.right-y.right+p.right)/v.x}}const T=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:r,platform:l,elements:c,middlewareData:a}=e,{element:f,padding:m=0}=d(t,e)||{};if(null==f)return{};const h=S(m),w={x:n,y:o},x=g(i),v=y(x),b=await l.getDimensions(f),R="y"===x,A=R?"top":"left",L=R?"bottom":"right",T=R?"clientHeight":"clientWidth",D=r.reference[v]+r.reference[x]-w[x]-r.floating[v],E=w[x]-r.reference[x],O=await(null==l.getOffsetParent?void 0:l.getOffsetParent(f));let C=O?O[T]:0;C&&await(null==l.isElement?void 0:l.isElement(O))||(C=c.floating[T]||r.floating[v]);const P=D/2-E/2,H=C/2-b[v]/2-1,F=s(h[A],H),B=s(h[L],H),W=F,k=C-b[v]-B,$=C/2-b[v]/2+P,G=u(W,$,k),z=!a.arrow&&null!=p(i)&&$!==G&&r.reference[v]/2-($<W?F:B)-b[v]/2<0,Q=z?$<W?$-W:$-k:0;return{[x]:w[x]+Q,data:{[x]:G,centerOffset:$-G-Q,...z&&{alignmentOffset:Q}},reset:z}}});function C(t,e,n){const o=t?[...n.filter((e=>p(e)===t)),...n.filter((e=>p(e)!==t))]:n.filter((t=>m(t)===t));return o.filter((n=>!t||(p(n)===t||!!e&&b(n)!==n)))}const E=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,i,r;const{rects:l,middlewareData:c,placement:s,platform:a,elements:f}=e,{crossAxis:u=!1,alignment:h,allowedPlacements:g=o,autoAlignment:y=!0,...w}=d(t,e),v=void 0!==h||g===o?C(h||null,y,g):g,b=await $(e,w),R=(null==(n=c.autoPlacement)?void 0:n.index)||0,A=v[R];if(null==A)return{};const L=x(A,l,await(null==a.isRTL?void 0:a.isRTL(f.floating)));if(s!==A)return{reset:{placement:v[0]}};const T=[b[m(A)],b[L[0]],b[L[1]]],D=[...(null==(i=c.autoPlacement)?void 0:i.overflows)||[],{placement:A,overflows:T}],E=v[R+1];if(E)return{data:{index:R+1,overflows:D},reset:{placement:E}};const O=D.map((t=>{const e=p(t.placement);return[t.placement,e&&u?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),P=O.filter((t=>t[2].slice(0,p(t[0])?2:3).every((t=>t<=0)))),H=(null==(r=P[0])?void 0:r[0])||O[0][0];return H!==s?{data:{index:R+1,overflows:D},reset:{placement:H}}:{}}}},z=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:l,initialPlacement:c,platform:s,elements:a}=e,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...b}=d(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const A=m(i),L=w(c),T=m(c)===c,D=await(null==s.isRTL?void 0:s.isRTL(a.floating)),E=h||(T||!y?[R(c)]:v(c)),C="none"!==g;!h&&C&&E.push(...O(c,y,g,D));const P=[c,...E],H=await $(e,b),S=[];let F=(null==(o=r.flip)?void 0:o.overflows)||[];if(f&&S.push(H[A]),u){const t=x(i,l,D);S.push(H[t[0]],H[t[1]])}if(F=[...F,{placement:i,overflows:S}],!S.every((t=>t<=0))){var B,W;const t=((null==(B=r.flip)?void 0:B.index)||0)+1,e=P[t];if(e){if(!("alignment"===u&&L!==w(e))||F.every((t=>t.overflows[0]>0&&w(t.placement)===L)))return{data:{index:t,overflows:F},reset:{placement:e}}}let n=null==(W=F.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:W.placement;if(!n)switch(p){case"bestFit":{var k;const t=null==(k=F.filter((t=>{if(C){const e=w(t.placement);return e===L||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:k[0];t&&(n=t);break}case"initialPlacement":n=c}if(i!==n)return{reset:{placement:n}}}return{}}}};function B(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function H(t){return n.some((e=>t[e]>=0))}const M=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...i}=d(t,e);switch(o){case"referenceHidden":{const t=B(await $(e,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:H(t)}}}case"escaped":{const t=B(await $(e,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:H(t)}}}default:return{}}}}};function j(t){const e=s(...t.map((t=>t.left))),n=s(...t.map((t=>t.top)));return{x:e,y:n,width:i(...t.map((t=>t.right)))-e,height:i(...t.map((t=>t.bottom)))-n}}function L(t){const e=t.slice().sort(((t,e)=>t.y-e.y)),n=[];let o=null;for(let t=0;t<e.length;t++){const i=e[t];!o||i.y-o.y>o.height/2?n.push([i]):n[n.length-1].push(i),o=i}return n.map((t=>D(j(t))))}const I=function(t){return void 0===t&&(t={}),{name:"inline",options:t,async fn(e){const{placement:n,elements:o,rects:r,platform:l,strategy:c}=e,{padding:a=2,x:f,y:u}=d(t,e),h=Array.from(await(null==l.getClientRects?void 0:l.getClientRects(o.reference))||[]),p=L(h),g=D(j(h)),y=S(a);const x=await l.getElementRects({reference:{getBoundingClientRect:function(){if(2===p.length&&p[0].left>p[1].right&&null!=f&&null!=u)return p.find((t=>f>t.left-y.left&&f<t.right+y.right&&u>t.top-y.top&&u<t.bottom+y.bottom))||g;if(p.length>=2){if("y"===w(n)){const t=p[0],e=p[p.length-1],o="top"===m(n),i=t.top,r=e.bottom,l=o?t.left:e.left,c=o?t.right:e.right;return{top:i,bottom:r,left:l,right:c,width:c-l,height:r-i,x:l,y:i}}const t="left"===m(n),e=i(...p.map((t=>t.right))),o=s(...p.map((t=>t.left))),r=p.filter((n=>t?n.left===o:n.right===e)),l=r[0].top,c=r[r.length-1].bottom;return{top:l,bottom:c,left:o,right:e,width:e-o,height:c-l,x:o,y:l}}return g}},floating:o.floating,strategy:c});return r.reference.x!==x.reference.x||r.reference.y!==x.reference.y||r.reference.width!==x.reference.width||r.reference.height!==x.reference.height?{reset:{rects:x}}:{}}}};async function N(t,e){const{placement:n,platform:o,elements:i}=t,r=await(null==o.isRTL?void 0:o.isRTL(i.floating)),l=m(n),c=p(n),s="y"===w(n),a=["left","top"].includes(l)?-1:1,f=r&&s?-1:1,u=d(e,t);let{mainAxis:h,crossAxis:g,alignmentAxis:y}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&"number"==typeof y&&(g="end"===c?-1*y:y),s?{x:g*f,y:h*a}:{x:h*a,y:g*f}}const q=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:l,middlewareData:c}=e,s=await N(e,t);return l===(null==(n=c.offset)?void 0:n.placement)&&null!=(o=c.arrow)&&o.alignmentOffset?{}:{x:i+s.x,y:r+s.y,data:{...s,placement:l}}}}},W=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:l=!1,limiter:c={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...s}=d(t,e),a={x:n,y:o},f=await $(e,s),p=w(m(i)),g=h(p);let y=a[g],x=a[p];if(r){const t="y"===g?"bottom":"right";y=u(y+f["y"===g?"top":"left"],y,y-f[t])}if(l){const t="y"===p?"bottom":"right";x=u(x+f["y"===p?"top":"left"],x,x-f[t])}const v=c.fn({...e,[g]:y,[p]:x});return{...v,data:{x:v.x-n,y:v.y-o,enabled:{[g]:r,[p]:l}}}}}},V=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:i,rects:r,middlewareData:l}=e,{offset:c=0,mainAxis:s=!0,crossAxis:a=!0}=d(t,e),f={x:n,y:o},u=w(i),p=h(u);let g=f[p],y=f[u];const x=d(c,e),v="number"==typeof x?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(s){const t="y"===p?"height":"width",e=r.reference[p]-r.floating[t]+v.mainAxis,n=r.reference[p]+r.reference[t]-v.mainAxis;g<e?g=e:g>n&&(g=n)}if(a){var b,R;const t="y"===p?"width":"height",e=["top","left"].includes(m(i)),n=r.reference[u]-r.floating[t]+(e&&(null==(b=l.offset)?void 0:b[u])||0)+(e?0:v.crossAxis),o=r.reference[u]+r.reference[t]+(e?0:(null==(R=l.offset)?void 0:R[u])||0)-(e?v.crossAxis:0);y<n?y=n:y>o&&(y=o)}return{[p]:g,[u]:y}}}},X=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:r,rects:l,platform:c,elements:a}=e,{apply:f=()=>{},...u}=d(t,e),h=await $(e,u),g=m(r),y=p(r),x="y"===w(r),{width:v,height:b}=l.floating;let R,A;"top"===g||"bottom"===g?(R=g,A=y===(await(null==c.isRTL?void 0:c.isRTL(a.floating))?"start":"end")?"left":"right"):(A=g,R="end"===y?"top":"bottom");const L=b-h.top-h.bottom,T=v-h.left-h.right,D=s(b-h[R],L),E=s(v-h[A],T),O=!e.middlewareData.shift;let C=D,P=E;if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(P=T),null!=(o=e.middlewareData.shift)&&o.enabled.y&&(C=L),O&&!y){const t=i(h.left,0),e=i(h.right,0),n=i(h.top,0),o=i(h.bottom,0);x?P=v-2*(0!==t||0!==e?t+e:i(h.left,h.right)):C=b-2*(0!==n||0!==o?n+o:i(h.top,h.bottom))}await f({...e,availableWidth:P,availableHeight:C});const H=await c.getDimensions(a.floating);return v!==H.width||b!==H.height?{reset:{rects:!0}}:{}}}};function Y(){return"undefined"!=typeof window}function _(t){return K(t)?(t.nodeName||"").toLowerCase():"#document"}function G(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function J(t){var e;return null==(e=(K(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function K(t){return!!Y()&&(t instanceof Node||t instanceof G(t).Node)}function Q(t){return!!Y()&&(t instanceof Element||t instanceof G(t).Element)}function U(t){return!!Y()&&(t instanceof HTMLElement||t instanceof G(t).HTMLElement)}function Z(t){return!(!Y()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof G(t).ShadowRoot)}function tt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=ct(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function nt(t){return["table","td","th"].includes(_(t))}function et(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function ot(t){const e=it(),n=Q(t)?ct(t):t;return["transform","translate","scale","rotate","perspective"].some((t=>!!n[t]&&"none"!==n[t]))||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function st(t){let e=ft(t);for(;U(e)&&!rt(e);){if(ot(e))return e;if(et(e))return null;e=ft(e)}return null}function it(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function rt(t){return["html","body","#document"].includes(_(t))}function ct(t){return G(t).getComputedStyle(t)}function lt(t){return Q(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ft(t){if("html"===_(t))return t;const e=t.assignedSlot||t.parentNode||Z(t)&&t.host||J(t);return Z(e)?e.host:e}function at(t){const e=ft(t);return rt(e)?t.ownerDocument?t.ownerDocument.body:t.body:U(e)&&tt(e)?e:at(e)}function ut(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=at(t),r=i===(null==(o=t.ownerDocument)?void 0:o.body),l=G(i);if(r){const t=dt(l);return e.concat(l,l.visualViewport||[],tt(i)?i:[],t&&n?ut(t):[])}return e.concat(i,ut(i,[],n))}function dt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function mt(t){const e=ct(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=U(t),l=i?t.offsetWidth:n,c=i?t.offsetHeight:o,s=r(n)!==l||r(o)!==c;return s&&(n=l,o=c),{width:n,height:o,$:s}}function pt(t){return Q(t)?t:t.contextElement}function ht(t){const e=pt(t);if(!U(e))return l(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:c}=mt(e);let s=(c?r(n.width):n.width)/o,a=(c?r(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const yt=l(0);function wt(t){const e=G(t);return it()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:yt}function gt(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==G(t))&&e}function xt(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),r=pt(t);let c=l(1);e&&(o?Q(o)&&(c=ht(o)):c=ht(t));const s=gt(r,n,o)?wt(r):l(0);let a=(i.left+s.x)/c.x,f=(i.top+s.y)/c.y,u=i.width/c.x,d=i.height/c.y;if(r){const t=G(r),e=o&&Q(o)?G(o):o;let n=t,i=dt(n);for(;i&&o&&e!==n;){const t=ht(i),e=i.getBoundingClientRect(),o=ct(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,l=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;a*=t.x,f*=t.y,u*=t.x,d*=t.y,a+=r,f+=l,n=G(i),i=dt(n)}}return D({width:u,height:d,x:a,y:f})}function vt(t,e){const n=lt(t).scrollLeft;return e?e.left+n:xt(J(t)).left+n}function bt(t,e,n){void 0===n&&(n=!1);const o=t.getBoundingClientRect();return{x:o.left+e.scrollLeft-(n?0:vt(t,o)),y:o.top+e.scrollTop}}function At(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r="fixed"===i,c=J(o),s=!!e&&et(e.floating);if(o===c||s&&r)return n;let a={scrollLeft:0,scrollTop:0},f=l(1);const u=l(0),d=U(o);if((d||!d&&!r)&&(("body"!==_(o)||tt(c))&&(a=lt(o)),U(o))){const t=xt(o);f=ht(o),u.x=t.x+o.clientLeft,u.y=t.y+o.clientTop}const m=!c||d||r?l(0):bt(c,a,!0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-a.scrollLeft*f.x+u.x+m.x,y:n.y*f.y-a.scrollTop*f.y+u.y+m.y}}function Ot(t){return Array.from(t.getClientRects())}function Rt(t){const e=J(t),n=lt(t),o=t.ownerDocument.body,r=i(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),l=i(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let c=-n.scrollLeft+vt(t);const s=-n.scrollTop;return"rtl"===ct(o).direction&&(c+=i(e.clientWidth,o.clientWidth)-r),{width:r,height:l,x:c,y:s}}function kt(t,e){const n=G(t),o=J(t),i=n.visualViewport;let r=o.clientWidth,l=o.clientHeight,c=0,s=0;if(i){r=i.width,l=i.height;const t=it();(!t||t&&"fixed"===e)&&(c=i.offsetLeft,s=i.offsetTop)}return{width:r,height:l,x:c,y:s}}function St(t,e){const n=xt(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=U(t)?ht(t):l(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:i*r.x,y:o*r.y}}function Dt(t,e,n){let o;if("viewport"===e)o=kt(t,n);else if("document"===e)o=Rt(J(t));else if(Q(e))o=St(e,n);else{const n=wt(t);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return D(o)}function Ft(t,e){const n=ft(t);return!(n===e||!Q(n)||rt(n))&&("fixed"===ct(n).position||Ft(n,e))}function Pt(t,e){const n=e.get(t);if(n)return n;let o=ut(t,[],!1).filter((t=>Q(t)&&"body"!==_(t))),i=null;const r="fixed"===ct(t).position;let l=r?ft(t):t;for(;Q(l)&&!rt(l);){const e=ct(l),n=ot(l);n||"fixed"!==e.position||(i=null);(r?!n&&!i:!n&&"static"===e.position&&!!i&&["absolute","fixed"].includes(i.position)||tt(l)&&!n&&Ft(t,l))?o=o.filter((t=>t!==l)):i=e,l=ft(l)}return e.set(t,o),o}function $t(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const l=[..."clippingAncestors"===n?et(e)?[]:Pt(e,this._c):[].concat(n),o],c=l[0],a=l.reduce(((t,n)=>{const o=Dt(e,n,r);return t.top=i(o.top,t.top),t.right=s(o.right,t.right),t.bottom=s(o.bottom,t.bottom),t.left=i(o.left,t.left),t}),Dt(e,c,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Tt(t){const{width:e,height:n}=mt(t);return{width:e,height:n}}function Ct(t,e,n){const o=U(e),i=J(e),r="fixed"===n,c=xt(t,!0,r,e);let s={scrollLeft:0,scrollTop:0};const a=l(0);function f(){a.x=vt(i)}if(o||!o&&!r)if(("body"!==_(e)||tt(i))&&(s=lt(e)),o){const t=xt(e,!0,r,e);a.x=t.x+e.clientLeft,a.y=t.y+e.clientTop}else i&&f();r&&!o&&i&&f();const u=!i||o||r?l(0):bt(i,s);return{x:c.left+s.scrollLeft-a.x-u.x,y:c.top+s.scrollTop-a.y-u.y,width:c.width,height:c.height}}function Et(t){return"static"===ct(t).position}function zt(t,e){if(!U(t)||"fixed"===ct(t).position)return null;if(e)return e(t);let n=t.offsetParent;return J(t)===n&&(n=n.ownerDocument.body),n}function Bt(t,e){const n=G(t);if(et(t))return n;if(!U(t)){let e=ft(t);for(;e&&!rt(e);){if(Q(e)&&!Et(e))return e;e=ft(e)}return n}let o=zt(t,e);for(;o&&nt(o)&&Et(o);)o=zt(o,e);return o&&rt(o)&&Et(o)&&!ot(o)?n:o||st(t)||n}const Ht=async function(t){const e=this.getOffsetParent||Bt,n=this.getDimensions,o=await n(t.floating);return{reference:Ct(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Mt(t){return"rtl"===ct(t).direction}const jt={convertOffsetParentRelativeRectToViewportRelativeRect:At,getDocumentElement:J,getClippingRect:$t,getOffsetParent:Bt,getElementRects:Ht,getClientRects:Ot,getDimensions:Tt,getScale:ht,isElement:Q,isRTL:Mt};function Lt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function It(t,e){let n,o=null;const r=J(t);function l(){var t;clearTimeout(n),null==(t=o)||t.disconnect(),o=null}return function a(f,u){void 0===f&&(f=!1),void 0===u&&(u=1),l();const d=t.getBoundingClientRect(),{left:m,top:h,width:p,height:g}=d;if(f||e(),!p||!g)return;const y={rootMargin:-c(h)+"px "+-c(r.clientWidth-(m+p))+"px "+-c(r.clientHeight-(h+g))+"px "+-c(m)+"px",threshold:i(0,s(1,u))||1};let w=!0;function x(e){const o=e[0].intersectionRatio;if(o!==u){if(!w)return a();o?a(!1,o):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==o||Lt(d,t.getBoundingClientRect())||a(),w=!1}try{o=new IntersectionObserver(x,{...y,root:r.ownerDocument})}catch(t){o=new IntersectionObserver(x,y)}o.observe(t)}(!0),l}function Nt(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:s=!1}=o,a=pt(t),f=i||r?[...a?ut(a):[],...ut(e)]:[];f.forEach((t=>{i&&t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n)}));const u=a&&c?It(a,n):null;let d,m=-1,h=null;l&&(h=new ResizeObserver((t=>{let[o]=t;o&&o.target===a&&h&&(h.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var t;null==(t=h)||t.observe(e)}))),n()})),a&&!s&&h.observe(a),h.observe(e));let p=s?xt(t):null;return s&&function e(){const o=xt(t);p&&!Lt(p,o)&&n();p=o,d=requestAnimationFrame(e)}(),n(),()=>{var t;f.forEach((t=>{i&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)})),null==u||u(),null==(t=h)||t.disconnect(),h=null,s&&cancelAnimationFrame(d)}}const qt=q,Wt=W,Vt=z,Xt=T,Yt=(t,e,n)=>{const o=new Map,i={platform:jt,...n},r={...i.platform,_c:o};return P(t,e,{...i,platform:r})},_t=async({floatingElement:e,referenceElement:n,arrowElement:o,align:i="top"})=>{var r,l,c;if("test"!==t){const t=[qt(null!==(r=null==o?void 0:o.offsetHeight)&&void 0!==r?r:10),Vt(),Wt()];o&&t.push(Xt({element:o}));const{x:s,y:a,middlewareData:f,placement:u}=await Yt(n,e,{placement:i,middleware:t,strategy:"fixed"});Object.assign(e.style,{left:`${s}px`,top:`${a}px`,visibility:"visible"}),o&&((null===(l=f.arrow)||void 0===l?void 0:l.x)?Object.assign(o.style,{left:`${f.arrow.x}px`,top:"bottom"===u?-o.offsetHeight/2+"px":"",bottom:"top"===u?-o.offsetHeight/2+"px":""}):(null===(c=f.arrow)||void 0===c?void 0:c.y)&&Object.assign(o.style,{left:"right"===u?-o.offsetWidth/2+"px":"",right:"left"===u?-o.offsetWidth/2+"px":"",top:`${f.arrow.y}px`}))}};export{_t as a,Nt as b};
4
+ import{p as t}from"./index-bac313b4.js";const n=["top","right","bottom","left"],e=["start","end"],o=n.reduce(((t,n)=>t.concat(n,n+"-"+e[0],n+"-"+e[1])),[]),s=Math.min,i=Math.max,r=Math.round,c=Math.floor,l=t=>({x:t,y:t}),a={left:"right",right:"left",bottom:"top",top:"bottom"},f={start:"end",end:"start"};function u(t,e,n){return i(t,s(e,n))}function d(t,e){return"function"==typeof t?t(e):t}function m(t){return t.split("-")[0]}function p(t){return t.split("-")[1]}function h(t){return"x"===t?"y":"x"}function y(t){return"y"===t?"height":"width"}function w(t){return["top","bottom"].includes(m(t))?"y":"x"}function g(t){return h(w(t))}function x(t,e,n){void 0===n&&(n=!1);const o=p(t),i=g(t),r=y(i);let l="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[r]>e.floating[r]&&(l=R(l)),[l,R(l)]}function v(t){const e=R(t);return[b(t),e,b(e)]}function b(t){return t.replace(/start|end/g,(t=>f[t]))}function A(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:l;default:return[]}}function O(t,e,n,o){const i=p(t);let r=A(m(t),"start"===n,o);return i&&(r=r.map((t=>t+"-"+i)),e&&(r=r.concat(r.map(b)))),r}function R(t){return t.replace(/left|right|bottom|top/g,(t=>a[t]))}function k(t){return{top:0,right:0,bottom:0,left:0,...t}}function S(t){return"number"!=typeof t?k(t):{top:t,right:t,bottom:t,left:t}}function D(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function F(t,e,n){let{reference:o,floating:i}=t;const r=w(e),l=g(e),c=y(l),s=m(e),a="y"===r,f=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,d=o[c]/2-i[c]/2;let h;switch(s){case"top":h={x:f,y:o.y-i.height};break;case"bottom":h={x:f,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:u};break;case"left":h={x:o.x-i.width,y:u};break;default:h={x:o.x,y:o.y}}switch(p(e)){case"start":h[l]-=d*(n&&a?-1:1);break;case"end":h[l]+=d*(n&&a?-1:1)}return h}const P=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:l}=n,c=r.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(e));let a=await l.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:u}=F(a,o,s),d=o,m={},h=0;for(let n=0;n<c.length;n++){const{name:r,fn:p}=c[n],{x:g,y:y,data:w,reset:x}=await p({x:f,y:u,initialPlacement:o,placement:d,strategy:i,middlewareData:m,rects:a,platform:l,elements:{reference:t,floating:e}});f=null!=g?g:f,u=null!=y?y:u,m={...m,[r]:{...m[r],...w}},x&&h<=50&&(h++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(a=!0===x.rects?await l.getElementRects({reference:t,floating:e,strategy:i}):x.rects),({x:f,y:u}=F(a,d,s))),n=-1)}return{x:f,y:u,placement:d,strategy:i,middlewareData:m}};async function $(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:r,rects:l,elements:c,strategy:s}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:m=!1,padding:h=0}=d(e,t),p=S(h),g=c[m?"floating"===u?"reference":"floating":u],y=D(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(g)))||n?g:g.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(c.floating)),boundary:a,rootBoundary:f,strategy:s})),w="floating"===u?{x:o,y:i,width:l.floating.width,height:l.floating.height}:l.reference,x=await(null==r.getOffsetParent?void 0:r.getOffsetParent(c.floating)),v=await(null==r.isElement?void 0:r.isElement(x))&&await(null==r.getScale?void 0:r.getScale(x))||{x:1,y:1},b=D(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:x,strategy:s}):w);return{top:(y.top-b.top+p.top)/v.y,bottom:(b.bottom-y.bottom+p.bottom)/v.y,left:(y.left-b.left+p.left)/v.x,right:(b.right-y.right+p.right)/v.x}}const T=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:r,platform:l,elements:c,middlewareData:a}=e,{element:f,padding:m=0}=d(t,e)||{};if(null==f)return{};const h=S(m),w={x:n,y:o},x=g(i),v=y(x),b=await l.getDimensions(f),R="y"===x,A=R?"top":"left",L=R?"bottom":"right",T=R?"clientHeight":"clientWidth",D=r.reference[v]+r.reference[x]-w[x]-r.floating[v],E=w[x]-r.reference[x],O=await(null==l.getOffsetParent?void 0:l.getOffsetParent(f));let C=O?O[T]:0;C&&await(null==l.isElement?void 0:l.isElement(O))||(C=c.floating[T]||r.floating[v]);const P=D/2-E/2,H=C/2-b[v]/2-1,F=s(h[A],H),B=s(h[L],H),W=F,k=C-b[v]-B,$=C/2-b[v]/2+P,G=u(W,$,k),z=!a.arrow&&null!=p(i)&&$!==G&&r.reference[v]/2-($<W?F:B)-b[v]/2<0,Q=z?$<W?$-W:$-k:0;return{[x]:w[x]+Q,data:{[x]:G,centerOffset:$-G-Q,...z&&{alignmentOffset:Q}},reset:z}}});function C(t,e,n){const o=t?[...n.filter((e=>p(e)===t)),...n.filter((e=>p(e)!==t))]:n.filter((t=>m(t)===t));return o.filter((n=>!t||(p(n)===t||!!e&&b(n)!==n)))}const E=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,i,r;const{rects:l,middlewareData:c,placement:s,platform:a,elements:f}=e,{crossAxis:u=!1,alignment:h,allowedPlacements:g=o,autoAlignment:y=!0,...w}=d(t,e),v=void 0!==h||g===o?C(h||null,y,g):g,b=await $(e,w),R=(null==(n=c.autoPlacement)?void 0:n.index)||0,A=v[R];if(null==A)return{};const L=x(A,l,await(null==a.isRTL?void 0:a.isRTL(f.floating)));if(s!==A)return{reset:{placement:v[0]}};const T=[b[m(A)],b[L[0]],b[L[1]]],D=[...(null==(i=c.autoPlacement)?void 0:i.overflows)||[],{placement:A,overflows:T}],E=v[R+1];if(E)return{data:{index:R+1,overflows:D},reset:{placement:E}};const O=D.map((t=>{const e=p(t.placement);return[t.placement,e&&u?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),P=O.filter((t=>t[2].slice(0,p(t[0])?2:3).every((t=>t<=0)))),H=(null==(r=P[0])?void 0:r[0])||O[0][0];return H!==s?{data:{index:R+1,overflows:D},reset:{placement:H}}:{}}}},z=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:l,initialPlacement:c,platform:s,elements:a}=e,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...b}=d(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const A=m(i),L=w(c),T=m(c)===c,D=await(null==s.isRTL?void 0:s.isRTL(a.floating)),E=h||(T||!y?[R(c)]:v(c)),C="none"!==g;!h&&C&&E.push(...O(c,y,g,D));const P=[c,...E],H=await $(e,b),S=[];let F=(null==(o=r.flip)?void 0:o.overflows)||[];if(f&&S.push(H[A]),u){const t=x(i,l,D);S.push(H[t[0]],H[t[1]])}if(F=[...F,{placement:i,overflows:S}],!S.every((t=>t<=0))){var B,W;const t=((null==(B=r.flip)?void 0:B.index)||0)+1,e=P[t];if(e){if(!("alignment"===u&&L!==w(e))||F.every((t=>t.overflows[0]>0&&w(t.placement)===L)))return{data:{index:t,overflows:F},reset:{placement:e}}}let n=null==(W=F.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:W.placement;if(!n)switch(p){case"bestFit":{var k;const t=null==(k=F.filter((t=>{if(C){const e=w(t.placement);return e===L||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:k[0];t&&(n=t);break}case"initialPlacement":n=c}if(i!==n)return{reset:{placement:n}}}return{}}}};function B(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function H(t){return n.some((e=>t[e]>=0))}const M=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...i}=d(t,e);switch(o){case"referenceHidden":{const t=B(await $(e,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:H(t)}}}case"escaped":{const t=B(await $(e,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:H(t)}}}default:return{}}}}};function j(t){const e=s(...t.map((t=>t.left))),n=s(...t.map((t=>t.top)));return{x:e,y:n,width:i(...t.map((t=>t.right)))-e,height:i(...t.map((t=>t.bottom)))-n}}function L(t){const e=t.slice().sort(((t,e)=>t.y-e.y)),n=[];let o=null;for(let t=0;t<e.length;t++){const i=e[t];!o||i.y-o.y>o.height/2?n.push([i]):n[n.length-1].push(i),o=i}return n.map((t=>D(j(t))))}const I=function(t){return void 0===t&&(t={}),{name:"inline",options:t,async fn(e){const{placement:n,elements:o,rects:r,platform:l,strategy:c}=e,{padding:a=2,x:f,y:u}=d(t,e),h=Array.from(await(null==l.getClientRects?void 0:l.getClientRects(o.reference))||[]),p=L(h),g=D(j(h)),y=S(a);const x=await l.getElementRects({reference:{getBoundingClientRect:function(){if(2===p.length&&p[0].left>p[1].right&&null!=f&&null!=u)return p.find((t=>f>t.left-y.left&&f<t.right+y.right&&u>t.top-y.top&&u<t.bottom+y.bottom))||g;if(p.length>=2){if("y"===w(n)){const t=p[0],e=p[p.length-1],o="top"===m(n),i=t.top,r=e.bottom,l=o?t.left:e.left,c=o?t.right:e.right;return{top:i,bottom:r,left:l,right:c,width:c-l,height:r-i,x:l,y:i}}const t="left"===m(n),e=i(...p.map((t=>t.right))),o=s(...p.map((t=>t.left))),r=p.filter((n=>t?n.left===o:n.right===e)),l=r[0].top,c=r[r.length-1].bottom;return{top:l,bottom:c,left:o,right:e,width:e-o,height:c-l,x:o,y:l}}return g}},floating:o.floating,strategy:c});return r.reference.x!==x.reference.x||r.reference.y!==x.reference.y||r.reference.width!==x.reference.width||r.reference.height!==x.reference.height?{reset:{rects:x}}:{}}}};async function N(t,e){const{placement:n,platform:o,elements:i}=t,r=await(null==o.isRTL?void 0:o.isRTL(i.floating)),l=m(n),c=p(n),s="y"===w(n),a=["left","top"].includes(l)?-1:1,f=r&&s?-1:1,u=d(e,t);let{mainAxis:h,crossAxis:g,alignmentAxis:y}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&"number"==typeof y&&(g="end"===c?-1*y:y),s?{x:g*f,y:h*a}:{x:h*a,y:g*f}}const q=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:l,middlewareData:c}=e,s=await N(e,t);return l===(null==(n=c.offset)?void 0:n.placement)&&null!=(o=c.arrow)&&o.alignmentOffset?{}:{x:i+s.x,y:r+s.y,data:{...s,placement:l}}}}},W=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:l=!1,limiter:c={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...s}=d(t,e),a={x:n,y:o},f=await $(e,s),p=w(m(i)),g=h(p);let y=a[g],x=a[p];if(r){const t="y"===g?"bottom":"right";y=u(y+f["y"===g?"top":"left"],y,y-f[t])}if(l){const t="y"===p?"bottom":"right";x=u(x+f["y"===p?"top":"left"],x,x-f[t])}const v=c.fn({...e,[g]:y,[p]:x});return{...v,data:{x:v.x-n,y:v.y-o,enabled:{[g]:r,[p]:l}}}}}},V=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:i,rects:r,middlewareData:l}=e,{offset:c=0,mainAxis:s=!0,crossAxis:a=!0}=d(t,e),f={x:n,y:o},u=w(i),p=h(u);let g=f[p],y=f[u];const x=d(c,e),v="number"==typeof x?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(s){const t="y"===p?"height":"width",e=r.reference[p]-r.floating[t]+v.mainAxis,n=r.reference[p]+r.reference[t]-v.mainAxis;g<e?g=e:g>n&&(g=n)}if(a){var b,R;const t="y"===p?"width":"height",e=["top","left"].includes(m(i)),n=r.reference[u]-r.floating[t]+(e&&(null==(b=l.offset)?void 0:b[u])||0)+(e?0:v.crossAxis),o=r.reference[u]+r.reference[t]+(e?0:(null==(R=l.offset)?void 0:R[u])||0)-(e?v.crossAxis:0);y<n?y=n:y>o&&(y=o)}return{[p]:g,[u]:y}}}},X=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:r,rects:l,platform:c,elements:a}=e,{apply:f=()=>{},...u}=d(t,e),h=await $(e,u),g=m(r),y=p(r),x="y"===w(r),{width:v,height:b}=l.floating;let R,A;"top"===g||"bottom"===g?(R=g,A=y===(await(null==c.isRTL?void 0:c.isRTL(a.floating))?"start":"end")?"left":"right"):(A=g,R="end"===y?"top":"bottom");const L=b-h.top-h.bottom,T=v-h.left-h.right,D=s(b-h[R],L),E=s(v-h[A],T),O=!e.middlewareData.shift;let C=D,P=E;if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(P=T),null!=(o=e.middlewareData.shift)&&o.enabled.y&&(C=L),O&&!y){const t=i(h.left,0),e=i(h.right,0),n=i(h.top,0),o=i(h.bottom,0);x?P=v-2*(0!==t||0!==e?t+e:i(h.left,h.right)):C=b-2*(0!==n||0!==o?n+o:i(h.top,h.bottom))}await f({...e,availableWidth:P,availableHeight:C});const H=await c.getDimensions(a.floating);return v!==H.width||b!==H.height?{reset:{rects:!0}}:{}}}};function Y(){return"undefined"!=typeof window}function _(t){return K(t)?(t.nodeName||"").toLowerCase():"#document"}function G(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function J(t){var e;return null==(e=(K(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function K(t){return!!Y()&&(t instanceof Node||t instanceof G(t).Node)}function Q(t){return!!Y()&&(t instanceof Element||t instanceof G(t).Element)}function U(t){return!!Y()&&(t instanceof HTMLElement||t instanceof G(t).HTMLElement)}function Z(t){return!(!Y()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof G(t).ShadowRoot)}function tt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=ct(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function nt(t){return["table","td","th"].includes(_(t))}function et(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function ot(t){const e=it(),n=Q(t)?ct(t):t;return["transform","translate","scale","rotate","perspective"].some((t=>!!n[t]&&"none"!==n[t]))||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function st(t){let e=at(t);for(;U(e)&&!rt(e);){if(ot(e))return e;if(et(e))return null;e=at(e)}return null}function it(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function rt(t){return["html","body","#document"].includes(_(t))}function ct(t){return G(t).getComputedStyle(t)}function lt(t){return Q(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function at(t){if("html"===_(t))return t;const e=t.assignedSlot||t.parentNode||Z(t)&&t.host||J(t);return Z(e)?e.host:e}function ft(t){const e=at(t);return rt(e)?t.ownerDocument?t.ownerDocument.body:t.body:U(e)&&tt(e)?e:ft(e)}function ut(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=ft(t),r=i===(null==(o=t.ownerDocument)?void 0:o.body),l=G(i);if(r){const t=dt(l);return e.concat(l,l.visualViewport||[],tt(i)?i:[],t&&n?ut(t):[])}return e.concat(i,ut(i,[],n))}function dt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function mt(t){const e=ct(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=U(t),l=i?t.offsetWidth:n,c=i?t.offsetHeight:o,s=r(n)!==l||r(o)!==c;return s&&(n=l,o=c),{width:n,height:o,$:s}}function pt(t){return Q(t)?t:t.contextElement}function ht(t){const e=pt(t);if(!U(e))return l(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:c}=mt(e);let s=(c?r(n.width):n.width)/o,a=(c?r(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const yt=l(0);function wt(t){const e=G(t);return it()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:yt}function gt(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==G(t))&&e}function xt(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),r=pt(t);let c=l(1);e&&(o?Q(o)&&(c=ht(o)):c=ht(t));const s=gt(r,n,o)?wt(r):l(0);let a=(i.left+s.x)/c.x,f=(i.top+s.y)/c.y,u=i.width/c.x,d=i.height/c.y;if(r){const t=G(r),e=o&&Q(o)?G(o):o;let n=t,i=dt(n);for(;i&&o&&e!==n;){const t=ht(i),e=i.getBoundingClientRect(),o=ct(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,l=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;a*=t.x,f*=t.y,u*=t.x,d*=t.y,a+=r,f+=l,n=G(i),i=dt(n)}}return D({width:u,height:d,x:a,y:f})}function vt(t,e){const n=lt(t).scrollLeft;return e?e.left+n:xt(J(t)).left+n}function bt(t,e,n){void 0===n&&(n=!1);const o=t.getBoundingClientRect();return{x:o.left+e.scrollLeft-(n?0:vt(t,o)),y:o.top+e.scrollTop}}function At(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r="fixed"===i,c=J(o),s=!!e&&et(e.floating);if(o===c||s&&r)return n;let a={scrollLeft:0,scrollTop:0},f=l(1);const u=l(0),d=U(o);if((d||!d&&!r)&&(("body"!==_(o)||tt(c))&&(a=lt(o)),U(o))){const t=xt(o);f=ht(o),u.x=t.x+o.clientLeft,u.y=t.y+o.clientTop}const m=!c||d||r?l(0):bt(c,a,!0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-a.scrollLeft*f.x+u.x+m.x,y:n.y*f.y-a.scrollTop*f.y+u.y+m.y}}function Ot(t){return Array.from(t.getClientRects())}function Rt(t){const e=J(t),n=lt(t),o=t.ownerDocument.body,r=i(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),l=i(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let c=-n.scrollLeft+vt(t);const s=-n.scrollTop;return"rtl"===ct(o).direction&&(c+=i(e.clientWidth,o.clientWidth)-r),{width:r,height:l,x:c,y:s}}function kt(t,e){const n=G(t),o=J(t),i=n.visualViewport;let r=o.clientWidth,l=o.clientHeight,c=0,s=0;if(i){r=i.width,l=i.height;const t=it();(!t||t&&"fixed"===e)&&(c=i.offsetLeft,s=i.offsetTop)}return{width:r,height:l,x:c,y:s}}function St(t,e){const n=xt(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=U(t)?ht(t):l(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:i*r.x,y:o*r.y}}function Dt(t,e,n){let o;if("viewport"===e)o=kt(t,n);else if("document"===e)o=Rt(J(t));else if(Q(e))o=St(e,n);else{const n=wt(t);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return D(o)}function Ft(t,e){const n=at(t);return!(n===e||!Q(n)||rt(n))&&("fixed"===ct(n).position||Ft(n,e))}function Pt(t,e){const n=e.get(t);if(n)return n;let o=ut(t,[],!1).filter((t=>Q(t)&&"body"!==_(t))),i=null;const r="fixed"===ct(t).position;let l=r?at(t):t;for(;Q(l)&&!rt(l);){const e=ct(l),n=ot(l);n||"fixed"!==e.position||(i=null);(r?!n&&!i:!n&&"static"===e.position&&!!i&&["absolute","fixed"].includes(i.position)||tt(l)&&!n&&Ft(t,l))?o=o.filter((t=>t!==l)):i=e,l=at(l)}return e.set(t,o),o}function $t(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const l=[..."clippingAncestors"===n?et(e)?[]:Pt(e,this._c):[].concat(n),o],c=l[0],a=l.reduce(((t,n)=>{const o=Dt(e,n,r);return t.top=i(o.top,t.top),t.right=s(o.right,t.right),t.bottom=s(o.bottom,t.bottom),t.left=i(o.left,t.left),t}),Dt(e,c,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Tt(t){const{width:e,height:n}=mt(t);return{width:e,height:n}}function Ct(t,e,n){const o=U(e),i=J(e),r="fixed"===n,c=xt(t,!0,r,e);let s={scrollLeft:0,scrollTop:0};const a=l(0);function f(){a.x=vt(i)}if(o||!o&&!r)if(("body"!==_(e)||tt(i))&&(s=lt(e)),o){const t=xt(e,!0,r,e);a.x=t.x+e.clientLeft,a.y=t.y+e.clientTop}else i&&f();r&&!o&&i&&f();const u=!i||o||r?l(0):bt(i,s);return{x:c.left+s.scrollLeft-a.x-u.x,y:c.top+s.scrollTop-a.y-u.y,width:c.width,height:c.height}}function Et(t){return"static"===ct(t).position}function zt(t,e){if(!U(t)||"fixed"===ct(t).position)return null;if(e)return e(t);let n=t.offsetParent;return J(t)===n&&(n=n.ownerDocument.body),n}function Bt(t,e){const n=G(t);if(et(t))return n;if(!U(t)){let e=at(t);for(;e&&!rt(e);){if(Q(e)&&!Et(e))return e;e=at(e)}return n}let o=zt(t,e);for(;o&&nt(o)&&Et(o);)o=zt(o,e);return o&&rt(o)&&Et(o)&&!ot(o)?n:o||st(t)||n}const Ht=async function(t){const e=this.getOffsetParent||Bt,n=this.getDimensions,o=await n(t.floating);return{reference:Ct(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Mt(t){return"rtl"===ct(t).direction}const jt={convertOffsetParentRelativeRectToViewportRelativeRect:At,getDocumentElement:J,getClippingRect:$t,getOffsetParent:Bt,getElementRects:Ht,getClientRects:Ot,getDimensions:Tt,getScale:ht,isElement:Q,isRTL:Mt};function Lt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function It(t,e){let n,o=null;const r=J(t);function l(){var t;clearTimeout(n),null==(t=o)||t.disconnect(),o=null}return function a(f,u){void 0===f&&(f=!1),void 0===u&&(u=1),l();const d=t.getBoundingClientRect(),{left:m,top:h,width:p,height:g}=d;if(f||e(),!p||!g)return;const y={rootMargin:-c(h)+"px "+-c(r.clientWidth-(m+p))+"px "+-c(r.clientHeight-(h+g))+"px "+-c(m)+"px",threshold:i(0,s(1,u))||1};let w=!0;function x(e){const o=e[0].intersectionRatio;if(o!==u){if(!w)return a();o?a(!1,o):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==o||Lt(d,t.getBoundingClientRect())||a(),w=!1}try{o=new IntersectionObserver(x,{...y,root:r.ownerDocument})}catch(t){o=new IntersectionObserver(x,y)}o.observe(t)}(!0),l}function Nt(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:s=!1}=o,a=pt(t),f=i||r?[...a?ut(a):[],...ut(e)]:[];f.forEach((t=>{i&&t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n)}));const u=a&&c?It(a,n):null;let d,m=-1,h=null;l&&(h=new ResizeObserver((t=>{let[o]=t;o&&o.target===a&&h&&(h.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var t;null==(t=h)||t.observe(e)}))),n()})),a&&!s&&h.observe(a),h.observe(e));let p=s?xt(t):null;return s&&function e(){const o=xt(t);p&&!Lt(p,o)&&n();p=o,d=requestAnimationFrame(e)}(),n(),()=>{var t;f.forEach((t=>{i&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)})),null==u||u(),null==(t=h)||t.disconnect(),h=null,s&&cancelAnimationFrame(d)}}const qt=q,Wt=W,Vt=z,Xt=T,Yt=(t,e,n)=>{const o=new Map,i={platform:jt,...n},r={...i.platform,_c:o};return P(t,e,{...i,platform:r})},_t=async({floatingElement:e,referenceElement:n,arrowElement:o,align:i="top"})=>{var r,l,c;if("test"!==t){const t=[qt(null!==(r=null==o?void 0:o.offsetHeight)&&void 0!==r?r:10),Vt(),Wt()];o&&t.push(Xt({element:o}));const{x:s,y:a,middlewareData:f,placement:u}=await Yt(n,e,{placement:i,middleware:t,strategy:"fixed"});Object.assign(e.style,{left:`${s}px`,top:`${a}px`,visibility:"visible"}),o&&((null===(l=f.arrow)||void 0===l?void 0:l.x)?Object.assign(o.style,{left:`${f.arrow.x}px`,top:"bottom"===u?-o.offsetHeight/2+"px":"",bottom:"top"===u?-o.offsetHeight/2+"px":""}):(null===(c=f.arrow)||void 0===c?void 0:c.y)&&Object.assign(o.style,{left:"right"===u?-o.offsetWidth/2+"px":"",right:"left"===u?-o.offsetWidth/2+"px":"",top:`${f.arrow.y}px`}))}};export{_t as a,Nt as b};
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{L as o,n as t,b as c}from"./index-bac313b4.js";import{a as e}from"./index-19f12ec9.js";e((o=>{try{o.shadowRoot instanceof ShadowRoot&&t(o,c(o))}catch(o){}return"default"})),import("./devtools-97cc9852.js").then((o=>{"object"==typeof o&&null!==o&&"function"==typeof o.initialize&&o.initialize()})).catch((t=>{o.error(t)}));const n=()=>{},s=n;export{s as g};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{x as t,E as e,C as i,F as s}from"./index-e32279bc.js";const o=(e,i,s)=>{t(e,"_name",i,s)},a=t=>"KOL-BUTTON"===t||"KOL-COMBOBOX"===t||"KOL-INPUT-CHECKBOX"===t||"KOL-INPUT-COLOR"===t||"KOL-INPUT-DATE"===t||"KOL-INPUT-EMAIL"===t||"KOL-INPUT-FILE"===t||"KOL-INPUT-NUMBER"===t||"KOL-INPUT-PASSWORD"===t||"KOL-INPUT-RADIO"===t||"KOL-INPUT-RANGE"===t||"KOL-INPUT-TEXT"===t||"KOL-SELECT"===t||"KOL-SINGLE-SELECT"===t||"KOL-TEXTAREA"===t;class n{constructor(t,s,o){var r,n,l;if(this.experimentalMode=e(),this.setFormAssociatedValue=t=>{var e;const s=null===(e=this.formAssociated)||void 0===e?void 0:e.getAttribute("name");null!==s&&""!==s||i(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);const o=this.tryToStringifyValue(t);this.syncValue(t,o,this.formAssociated),this.syncValue(t,o,this.syncToOwnInput)},this.component=t,this.host=this.findHostWithShadowRoot(o),this.type=s,this.experimentalMode&&a(null===(r=this.host)||void 0===r?void 0:r.tagName)&&t._name){switch(null===(n=this.host)||void 0===n||n.querySelectorAll("input,select,textarea").forEach((t=>{var e;null===(e=this.host)||void 0===e||e.removeChild(t)})),this.type){case"button":case"color":case"date":case"email":case"file":case"number":case"password":case"radio":case"range":case"text":this.formAssociated=document.createElement("input"),this.formAssociated.setAttribute("type",this.type);break;case"select":this.formAssociated=document.createElement("select"),this.formAssociated.setAttribute("multiple","");break;case"textarea":this.formAssociated=document.createElement("textarea");break;default:this.formAssociated=document.createElement("input"),this.formAssociated.setAttribute("type","hidden")}this.formAssociated.setAttribute("data-form-associated",""),this.formAssociated.setAttribute("hidden",""),null===(l=this.host)||void 0===l||l.appendChild(this.formAssociated)}}findHostWithShadowRoot(t){for(;null===(null==t?void 0:t.shadowRoot)&&t!==document.body;)(t=null==t?void 0:t.parentNode).host&&(t=t.host);return t}setAttribute(t,e,i){if(this.experimentalMode)try{if("boolean"!=typeof(i="object"==typeof i&&null!==i?JSON.stringify(i):i)&&"number"!=typeof i&&"string"!=typeof i)throw new Error("Invalid value type: "+typeof i);null==e||e.setAttribute(t,`${i}`)}catch(i){null==e||e.removeAttribute(t)}}tryToStringifyValue(t){try{return"object"==typeof t&&null!==t?JSON.stringify(t).toString():null==t?null:t.toString()}catch(t){return s(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,i){if(i)switch(this.type){case"file":i.files=t;break;case"select":i.querySelectorAll("option").forEach((t=>{i.removeChild(t)})),Array.isArray(t)&&t.forEach((t=>{const e=this.tryToStringifyValue(t);if("string"==typeof e){const t=document.createElement("option");t.setAttribute("value",e),t.setAttribute("selected",""),i.appendChild(t)}}));break;case"radio":"string"==typeof e&&(i.setAttribute("value",e),i.setAttribute("checked",""),i.value=e);break;default:"string"==typeof e?(i.setAttribute("value",e),i.value=e):(i.removeAttribute("value"),i.value="")}}validateName(t){o(this.component,t,{hooks:{afterPatch:()=>{this.setAttribute("name",this.formAssociated,this.component.state._name)}}}),void 0===t&&i("A name on input fields or switches is not strictly required, but it might be relevant for the autocomplete function and for the static submission of the input field.")}validateSyncValueBySelector(t){if(this.experimentalMode&&"string"==typeof t){const e=document.querySelector(t);e&&(this.syncToOwnInput=e)}}componentWillLoad(){this.validateName(this.component._name),this.validateSyncValueBySelector(this.component._syncValueBySelector)}}export{n as A};
4
+ import{y as t,E as e,C as i,F as s}from"./index-bac313b4.js";const o=(e,i,s)=>{t(e,"_name",i,s)},a=t=>"KOL-BUTTON"===t||"KOL-COMBOBOX"===t||"KOL-INPUT-CHECKBOX"===t||"KOL-INPUT-COLOR"===t||"KOL-INPUT-DATE"===t||"KOL-INPUT-EMAIL"===t||"KOL-INPUT-FILE"===t||"KOL-INPUT-NUMBER"===t||"KOL-INPUT-PASSWORD"===t||"KOL-INPUT-RADIO"===t||"KOL-INPUT-RANGE"===t||"KOL-INPUT-TEXT"===t||"KOL-SELECT"===t||"KOL-SINGLE-SELECT"===t||"KOL-TEXTAREA"===t;class n{constructor(t,s,o){var r,n,l;if(this.experimentalMode=e(),this.setFormAssociatedValue=t=>{var e;const s=null===(e=this.formAssociated)||void 0===e?void 0:e.getAttribute("name");null!==s&&""!==s||i(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);const o=this.tryToStringifyValue(t);this.syncValue(t,o,this.formAssociated),this.syncValue(t,o,this.syncToOwnInput)},this.component=t,this.host=this.findHostWithShadowRoot(o),this.type=s,this.experimentalMode&&a(null===(r=this.host)||void 0===r?void 0:r.tagName)&&t._name){switch(null===(n=this.host)||void 0===n||n.querySelectorAll("input,select,textarea").forEach((t=>{var e;null===(e=this.host)||void 0===e||e.removeChild(t)})),this.type){case"button":case"color":case"date":case"email":case"file":case"number":case"password":case"radio":case"range":case"text":this.formAssociated=document.createElement("input"),this.formAssociated.setAttribute("type",this.type);break;case"select":this.formAssociated=document.createElement("select"),this.formAssociated.setAttribute("multiple","");break;case"textarea":this.formAssociated=document.createElement("textarea");break;default:this.formAssociated=document.createElement("input"),this.formAssociated.setAttribute("type","hidden")}this.formAssociated.setAttribute("data-form-associated",""),this.formAssociated.setAttribute("hidden",""),null===(l=this.host)||void 0===l||l.appendChild(this.formAssociated)}}findHostWithShadowRoot(t){for(;null===(null==t?void 0:t.shadowRoot)&&t!==document.body;)(t=null==t?void 0:t.parentNode).host&&(t=t.host);return t}setAttribute(t,e,i){if(this.experimentalMode)try{if("boolean"!=typeof(i="object"==typeof i&&null!==i?JSON.stringify(i):i)&&"number"!=typeof i&&"string"!=typeof i)throw new Error("Invalid value type: "+typeof i);null==e||e.setAttribute(t,`${i}`)}catch(i){null==e||e.removeAttribute(t)}}tryToStringifyValue(t){try{return"object"==typeof t&&null!==t?JSON.stringify(t).toString():null==t?null:t.toString()}catch(t){return s(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,i){if(i)switch(this.type){case"file":i.files=t;break;case"select":i.querySelectorAll("option").forEach((t=>{i.removeChild(t)})),Array.isArray(t)&&t.forEach((t=>{const e=this.tryToStringifyValue(t);if("string"==typeof e){const t=document.createElement("option");t.setAttribute("value",e),t.setAttribute("selected",""),i.appendChild(t)}}));break;case"radio":"string"==typeof e&&(i.setAttribute("value",e),i.setAttribute("checked",""),i.value=e);break;default:"string"==typeof e?(i.setAttribute("value",e),i.value=e):(i.removeAttribute("value"),i.value="")}}validateName(t){o(this.component,t,{hooks:{afterPatch:()=>{this.setAttribute("name",this.formAssociated,this.component.state._name)}}}),void 0===t&&i("A name on input fields or switches is not strictly required, but it might be relevant for the autocomplete function and for the static submission of the input field.")}validateSyncValueBySelector(t){if(this.experimentalMode&&"string"==typeof t){const e=document.querySelector(t);e&&(this.syncToOwnInput=e)}}componentWillLoad(){this.validateName(this.component._name),this.validateSyncValueBySelector(this.component._syncValueBySelector)}}export{n as A};
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{y as a}from"./index-bac313b4.js";const e=(e,o)=>{a(e,"_badgeText",o)};export{e as v};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{w as t,x as a,i as n}from"./index-e32279bc.js";const o=["button","link","tab","treeitem"],e=(a,e)=>{t(a,"_role",(t=>"string"==typeof t&&o.includes(t)),new Set([`KoliBriAlternativeButtonLinkRole {${o.join(", ")}`]),e)},r=(t,e)=>{a(t,"_ariaDescription",e)},i=(t,a)=>{n(t,"_ariaExpanded",a)},s=["primary","secondary","normal","tertiary","danger","ghost","custom"],c=(a,e)=>{t(a,"_variant",(t=>"string"==typeof t&&s.includes(t)),new Set([`KoliBriButtonVariant {${s.join(", ")}`]),e,{defaultValue:"normal"})};export{i as a,e as b,c,r as v};
4
+ import{w as t,y as a,j as n}from"./index-bac313b4.js";const o=["button","link","tab","treeitem"],r=(a,e)=>{t(a,"_role",(t=>"string"==typeof t&&o.includes(t)),new Set([`KoliBriAlternativeButtonLinkRole {${o.join(", ")}`]),e)},e=(t,e)=>{a(t,"_ariaDescription",e)},i=(t,a)=>{n(t,"_ariaExpanded",a)},s=["primary","secondary","normal","tertiary","danger","ghost","custom"],c=(a,e)=>{t(a,"_variant",(t=>"string"==typeof t&&s.includes(t)),new Set([`KoliBriButtonVariant {${s.join(", ")}`]),e,{defaultValue:"normal"})};export{i as a,r as b,c,e as v};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as e,m as r,w as a,L as t,f as n}from"./index-e32279bc.js";var l={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},i=l,o=u,s={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function u(e){var r,a,o=[],t=1;if("string"==typeof e)if(e=e.toLowerCase(),i[e])o=i[e].slice(),a="rgb";else if("transparent"===e)t=0,a="rgb",o=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var n=e.slice(1);t=1,(g=n.length)<=4?(o=[parseInt(n[0]+n[0],16),parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16)],4===g&&(t=parseInt(n[3]+n[3],16)/255)):(o=[parseInt(n[0]+n[1],16),parseInt(n[2]+n[3],16),parseInt(n[4]+n[5],16)],8===g&&(t=parseInt(n[6]+n[7],16)/255)),o[0]||(o[0]=0),o[1]||(o[1]=0),o[2]||(o[2]=0),a="rgb"}else if(r=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var l=r[1],u="rgb"===l;a=n=l.replace(/a$/,"");var g="cmyk"===n?4:"gray"===n?1:3;o=r[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(e,r){if(/%$/.test(e))return r===g?parseFloat(e)/100:"rgb"===n?255*parseFloat(e)/100:parseFloat(e);if("h"===n[r]){if(/deg$/.test(e))return parseFloat(e);if(void 0!==s[e])return s[e]}return parseFloat(e)})),l===n&&o.push(1),t=u||void 0===o[g]?1:o[g],o=o.slice(0,g)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(o=e.match(/([0-9]+)/g).map((function(e){return parseFloat(e)})),a=e.match(/([a-z])/gi).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(o=[e[0],e[1],e[2]],a="rgb",t=4===e.length?e[3]:1):e instanceof Object&&(null!=e.r||null!=e.red||null!=e.R?(a="rgb",o=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(a="hsl",o=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),t=e.a||e.alpha||e.opacity||1,null!=e.opacity&&(t/=100)):(a="rgb",o=[e>>>16,(65280&e)>>>8,255&e]);return{space:a,values:o,alpha:t}}var g=o,f=function(e){var r;Array.isArray(e)&&e.raw&&(e=String.raw.apply(null,arguments));var a=g(e);if(!a.space)return[];var o=[0,0,0],t="h"===a.space[0]?[360,100,100]:[255,255,255];return(r=Array(3))[0]=Math.min(Math.max(a.values[0],o[0]),t[0]),r[1]=Math.min(Math.max(a.values[1],o[1]),t[1]),r[2]=Math.min(Math.max(a.values[2],o[2]),t[2]),"h"===a.space[0]&&(r=d(r)),r.push(Math.min(Math.max(a.alpha,0),1)),r};function d(e){var r,a,o,t,n,l=e[0]/360,i=e[1]/100,s=e[2]/100,u=0;if(0===i)return[n=255*s,n,n];for(r=2*s-(a=s<.5?s*(1+i):s+i-s*i),t=[0,0,0];u<3;)(o=l+1/3*-(u-1))<0?o++:o>1&&o--,n=6*o<1?r+6*(a-r)*o:2*o<1?a:3*o<2?r+(a-r)*(2/3-o)*6:r,t[u++]=255*n;return t}const c=(e,r,a)=>(299*e+587*r+114*a)/1e3>=128?-1:1,h=(a,o,t,n=1)=>{const l=[Math.max(Math.min(Math.round(o[0]+n*Math.max(1,o[0]/100)),255),0),Math.max(Math.min(Math.round(o[1]+n*Math.max(1,o[1]/100)),255),0),Math.max(Math.min(Math.round(o[2]+n*Math.max(1,o[2]/100)),255),0)],i=r(e.hex(`rgba(${a.join(",")},1)`),e.hex(`rgba(${l.join(",")},1)`)),s=l[0]+l[1]+l[2];return 0===s||765===s||i>t?{background:a,foreground:l,contrast:i}:h(a,l,t,n)},p=new Map,y=(e,r,a,o=1)=>{if(p.has(e))return p.get(e);const t=h(e,r,a,o);return p.set(e,t),t},b=(r,a=7)=>{let o=[0,0,0,1],t=[255,255,255,1];"string"==typeof r?(o=f(r),t=o):"object"==typeof r&&null!==r&&"string"==typeof r.background&&"string"==typeof r.foreground&&(o=f(r.background),t="string"==typeof r.foreground?f(r.foreground):o);const n=c(o[0],o[1],o[2]),l=y([o[0],o[1],o[2]],[t[0],t[1],t[2]],a,n);return t=[...l.foreground,1],{background:e.hex(`rgba(${o.join(",")})`),foreground:e.hex(`rgba(${t.join(",")})`),contrast:l.contrast}},v=/^#((\d|[a-f]){8}|(\d|[a-f]){6}|(\d|[a-f]){3,4})$/i;function m(e){return v.test(e)}function k(e){if(e.startsWith("{"))try{const r=JSON.parse(e);if(M(r))return{type:"ColorPair",value:r}}catch(e){return{type:null,value:null}}return{type:null,value:null}}function w(e){if(e)if("string"==typeof e){if(m(e))return{type:"string",valid:!0,value:e};{const r=k(e);if(r.value)return{type:r.type,valid:!0,value:r.value}}}else{const r=e;if(M(r))return{type:"ColorPair",valid:!0,value:r}}return{type:null,valid:!1,value:""}}function M(e){return!("object"!=typeof e||!e||"string"!=typeof e.backgroundColor||!("string"==typeof e.foregroundColor||e.foregroundColor&&"string"==typeof e.foregroundColor.primary&&"string"==typeof e.foregroundColor.secondary&&"string"==typeof e.foregroundColor.neutral))}function $(e){const r=w(e);switch(r.type){case null:return!1;case"string":case"ColorPair":return r.valid}}const q=(e,r,o)=>{a(e,"_color",$,new Set(["rgb in hex","ColorPair"]),r,o)},I=e=>{var r;let a;const o=w(e);switch(o.type){case"string":a=b(o.value);break;case"ColorPair":{const e=o.value;let t="";"string"==typeof e.foregroundColor?t=e.foregroundColor:(null===(r=e.foregroundColor)||void 0===r?void 0:r.primary)&&(t=e.foregroundColor.primary),t&&"string"==typeof t||(t="#fff"),a=b({background:e.backgroundColor,foreground:t});break}case null:t.warn(`_color was empty or invalid (${JSON.stringify(e)})`),a=b({background:"#000",foreground:"#000"})}return a.contrast<7&&n(`[KolBadge] The contrast of ${a.contrast} (≥7, AAA) is to low, between the color pair ${a.background} and ${a.foreground}.`),{backgroundColor:a.background,foregroundColor:a.foreground}};export{f as c,I as h,q as v};
4
+ import{r as e,q as r,w as a,L as t,f as n}from"./index-bac313b4.js";var l={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},i=l,o=u,s={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function u(e){var r,a,o=[],t=1;if("string"==typeof e)if(e=e.toLowerCase(),i[e])o=i[e].slice(),a="rgb";else if("transparent"===e)t=0,a="rgb",o=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var n=e.slice(1);t=1,(g=n.length)<=4?(o=[parseInt(n[0]+n[0],16),parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16)],4===g&&(t=parseInt(n[3]+n[3],16)/255)):(o=[parseInt(n[0]+n[1],16),parseInt(n[2]+n[3],16),parseInt(n[4]+n[5],16)],8===g&&(t=parseInt(n[6]+n[7],16)/255)),o[0]||(o[0]=0),o[1]||(o[1]=0),o[2]||(o[2]=0),a="rgb"}else if(r=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var l=r[1],u="rgb"===l;a=n=l.replace(/a$/,"");var g="cmyk"===n?4:"gray"===n?1:3;o=r[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(e,r){if(/%$/.test(e))return r===g?parseFloat(e)/100:"rgb"===n?255*parseFloat(e)/100:parseFloat(e);if("h"===n[r]){if(/deg$/.test(e))return parseFloat(e);if(void 0!==s[e])return s[e]}return parseFloat(e)})),l===n&&o.push(1),t=u||void 0===o[g]?1:o[g],o=o.slice(0,g)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(o=e.match(/([0-9]+)/g).map((function(e){return parseFloat(e)})),a=e.match(/([a-z])/gi).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(o=[e[0],e[1],e[2]],a="rgb",t=4===e.length?e[3]:1):e instanceof Object&&(null!=e.r||null!=e.red||null!=e.R?(a="rgb",o=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(a="hsl",o=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),t=e.a||e.alpha||e.opacity||1,null!=e.opacity&&(t/=100)):(a="rgb",o=[e>>>16,(65280&e)>>>8,255&e]);return{space:a,values:o,alpha:t}}var g=o,f=function(e){var r;Array.isArray(e)&&e.raw&&(e=String.raw.apply(null,arguments));var a=g(e);if(!a.space)return[];var o=[0,0,0],t="h"===a.space[0]?[360,100,100]:[255,255,255];return(r=Array(3))[0]=Math.min(Math.max(a.values[0],o[0]),t[0]),r[1]=Math.min(Math.max(a.values[1],o[1]),t[1]),r[2]=Math.min(Math.max(a.values[2],o[2]),t[2]),"h"===a.space[0]&&(r=d(r)),r.push(Math.min(Math.max(a.alpha,0),1)),r};function d(e){var r,a,o,t,n,l=e[0]/360,i=e[1]/100,s=e[2]/100,u=0;if(0===i)return[n=255*s,n,n];for(r=2*s-(a=s<.5?s*(1+i):s+i-s*i),t=[0,0,0];u<3;)(o=l+1/3*-(u-1))<0?o++:o>1&&o--,n=6*o<1?r+6*(a-r)*o:2*o<1?a:3*o<2?r+(a-r)*(2/3-o)*6:r,t[u++]=255*n;return t}const c=(e,r,a)=>(299*e+587*r+114*a)/1e3>=128?-1:1,h=(a,o,t,n=1)=>{const l=[Math.max(Math.min(Math.round(o[0]+n*Math.max(1,o[0]/100)),255),0),Math.max(Math.min(Math.round(o[1]+n*Math.max(1,o[1]/100)),255),0),Math.max(Math.min(Math.round(o[2]+n*Math.max(1,o[2]/100)),255),0)],i=r(e.hex(`rgba(${a.join(",")},1)`),e.hex(`rgba(${l.join(",")},1)`)),s=l[0]+l[1]+l[2];return 0===s||765===s||i>t?{background:a,foreground:l,contrast:i}:h(a,l,t,n)},p=new Map,y=(e,r,a,o=1)=>{if(p.has(e))return p.get(e);const t=h(e,r,a,o);return p.set(e,t),t},b=(r,a=7)=>{let o=[0,0,0,1],t=[255,255,255,1];"string"==typeof r?(o=f(r),t=o):"object"==typeof r&&null!==r&&"string"==typeof r.background&&"string"==typeof r.foreground&&(o=f(r.background),t="string"==typeof r.foreground?f(r.foreground):o);const n=c(o[0],o[1],o[2]),l=y([o[0],o[1],o[2]],[t[0],t[1],t[2]],a,n);return t=[...l.foreground,1],{background:e.hex(`rgba(${o.join(",")})`),foreground:e.hex(`rgba(${t.join(",")})`),contrast:l.contrast}},v=/^#((\d|[a-f]){8}|(\d|[a-f]){6}|(\d|[a-f]){3,4})$/i;function m(e){return v.test(e)}function k(e){if(e.startsWith("{"))try{const r=JSON.parse(e);if(M(r))return{type:"ColorPair",value:r}}catch(e){return{type:null,value:null}}return{type:null,value:null}}function w(e){if(e)if("string"==typeof e){if(m(e))return{type:"string",valid:!0,value:e};{const r=k(e);if(r.value)return{type:r.type,valid:!0,value:r.value}}}else{const r=e;if(M(r))return{type:"ColorPair",valid:!0,value:r}}return{type:null,valid:!1,value:""}}function M(e){return!("object"!=typeof e||!e||"string"!=typeof e.backgroundColor||!("string"==typeof e.foregroundColor||e.foregroundColor&&"string"==typeof e.foregroundColor.primary&&"string"==typeof e.foregroundColor.secondary&&"string"==typeof e.foregroundColor.neutral))}function $(e){const r=w(e);switch(r.type){case null:return!1;case"string":case"ColorPair":return r.valid}}const q=(e,r,o)=>{a(e,"_color",$,new Set(["rgb in hex","ColorPair"]),r,o)},I=e=>{var r;let a;const o=w(e);switch(o.type){case"string":a=b(o.value);break;case"ColorPair":{const e=o.value;let t="";"string"==typeof e.foregroundColor?t=e.foregroundColor:(null===(r=e.foregroundColor)||void 0===r?void 0:r.primary)&&(t=e.foregroundColor.primary),t&&"string"==typeof t||(t="#fff"),a=b({background:e.backgroundColor,foreground:t});break}case null:t.warn(`_color was empty or invalid (${JSON.stringify(e)})`),a=b({background:"#000",foreground:"#000"})}return a.contrast<7&&n(`[KolBadge] The contrast of ${a.contrast} (≥7, AAA) is to low, between the color pair ${a.background} and ${a.foreground}.`),{backgroundColor:a.background,foregroundColor:a.foreground}};export{f as c,I as h,q as v};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{I as e,a as o,E as t,C as n,L as i}from"./index-e32279bc.js";import{m as s}from"./component-names-4cb1c62b.js";const f=e=>{for(t()&&(n("↓ Search form element start."),i.debug(e));e instanceof HTMLElement&&"FORM"!==e.tagName&&e.tagName!==s.toUpperCase();){try{e=e.parentElement instanceof HTMLElement?e.parentElement:e.parentNode instanceof ShadowRoot?e.parentNode.host:null}catch(e){}t()&&(i.debug(e),n("↑ Search form element finished."))}return e},l=(t={})=>{var n,a;const i=f(t.form);if(i instanceof HTMLElement){const t=new Event("reset",{bubbles:!0,cancelable:!0});if("FORM"===i.tagName)e(t,i),i.dispatchEvent(t);else if(i.tagName===s.toUpperCase()){e(t,o.querySelector("form",i));const s=i;"function"==typeof(null===(n=s._on)||void 0===n?void 0:n.onReset)&&(null===(a=s._on)||void 0===a||a.onReset(t))}}},a=(a={})=>{const i=f(a.form);if(i instanceof HTMLElement){const a=new SubmitEvent("submit",{bubbles:!0,cancelable:!0,submitter:i});if("FORM"===i.tagName)t()&&!1===i.noValidate&&n("If you have not focusable or hidden form fields in your form, you should enable noValidate for your form.",{force:!0}),setTimeout((()=>{"function"==typeof i.requestSubmit?i.requestSubmit():(e(a,i),i.dispatchEvent(a))}));else if(i.tagName===s.toUpperCase()){e(a,o.querySelector("form",i));const t=i;setTimeout((()=>{var e,o;"function"==typeof(null===(e=t._on)||void 0===e?void 0:e.onSubmit)&&(null===(o=t._on)||void 0===o||o.onSubmit(a))}))}}};export{l as a,a as p};
4
+ import{I as e,a as o,E as t,C as n,L as i}from"./index-bac313b4.js";import{m as s}from"./component-names-4cb1c62b.js";const f=e=>{for(t()&&(n("↓ Search form element start."),i.debug(e));e instanceof HTMLElement&&"FORM"!==e.tagName&&e.tagName!==s.toUpperCase();){try{e=e.parentElement instanceof HTMLElement?e.parentElement:e.parentNode instanceof ShadowRoot?e.parentNode.host:null}catch(e){}t()&&(i.debug(e),n("↑ Search form element finished."))}return e},a=(t={})=>{var n,a;const i=f(t.form);if(i instanceof HTMLElement){const t=new Event("reset",{bubbles:!0,cancelable:!0});if("FORM"===i.tagName)e(t,i),i.dispatchEvent(t);else if(i.tagName===s.toUpperCase()){e(t,o.querySelector("form",i));const s=i;"function"==typeof(null===(n=s._on)||void 0===n?void 0:n.onReset)&&(null===(a=s._on)||void 0===a||a.onReset(t))}}},l=(a={})=>{const i=f(a.form);if(i instanceof HTMLElement){const a=new SubmitEvent("submit",{bubbles:!0,cancelable:!0,submitter:i});if("FORM"===i.tagName)t()&&!1===i.noValidate&&n("If you have not focusable or hidden form fields in your form, you should enable noValidate for your form.",{force:!0}),setTimeout((()=>{"function"==typeof i.requestSubmit?i.requestSubmit():(e(a,i),i.dispatchEvent(a))}));else if(i.tagName===s.toUpperCase()){e(a,o.querySelector("form",i));const t=i;setTimeout((()=>{var e,o;"function"==typeof(null===(e=t._on)||void 0===e?void 0:e.onSubmit)&&(null===(o=t._on)||void 0===o||o.onSubmit(a))}))}}};export{a,l as p};
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{w as t,D as i,y as s,j as e,m as a}from"./index-bac313b4.js";import{I as h}from"./controller-icon-87de6942.js";import{d as o,v as r}from"./debounce-90c878d0.js";const n=["default","visibility-toggle"],l=(e,o)=>{t(e,"_variant",(t=>"string"==typeof t&&n.includes(t)),new Set(n),o)};class d extends h{constructor(t,e,n){super(t,e,n),this.afterSyncCharCounter=()=>{"string"==typeof this.component._value&&this.component._value.length>0&&(this.component.state._currentLength=this.component._value.length,this.component.state._currentLengthDebounced=this.component._value.length)},this.updateCurrentLengthDebounced=o((t=>{a(this.component,"_currentLengthDebounced",t)}),500),this.component=t}validateAutoComplete(e){t(this.component,"_autoComplete",(t=>"string"==typeof t&&("on"===t||"off"===t)),new Set(["on | off"]),e)}validateHasCounter(t){r(this.component,t,{hooks:{afterPatch:this.afterSyncCharCounter}})}validateVariant(t){l(this.component,t)}validateMaxLength(t){i(this.component,"_maxLength",t,{hooks:{afterPatch:this.afterSyncCharCounter},min:0})}validatePattern(t){s(this.component,"_pattern",t)}validatePlaceholder(t){s(this.component,"_placeholder",t)}validateReadOnly(t){e(this.component,"_readOnly",t)}validateRequired(t){e(this.component,"_required",t)}validateValue(t){s(this.component,"_value",t,{hooks:{afterPatch:this.afterSyncCharCounter}}),this.setFormAssociatedValue(this.component.state._value)}componentWillLoad(){super.componentWillLoad(),this.validateAutoComplete(this.component._autoComplete),this.validateHasCounter(this.component._hasCounter),this.validateMaxLength(this.component._maxLength),this.validatePattern(this.component._pattern),this.validatePlaceholder(this.component._placeholder),this.validateReadOnly(this.component._readOnly),this.validateRequired(this.component._required),this.validateValue(this.component._value),this.validateVariant(this.component._variant)}}export{d as I};
@@ -0,0 +1 @@
1
+ {"version":3,"names":["PasswordVariantPropTypeOptions","validatePasswordVariant","component","value","watchValidator","includes","Set","InputPasswordController","InputIconController","constructor","name","host","super","this","afterSyncCharCounter","_value","length","state","_currentLength","_currentLengthDebounced","updateCurrentLengthDebounced","debounce","setState","validateAutoComplete","validateHasCounter","hooks","afterPatch","validateVariant","validateMaxLength","watchNumber","min","validatePattern","watchString","validatePlaceholder","validateReadOnly","watchBoolean","validateRequired","validateValue","setFormAssociatedValue","componentWillLoad","_autoComplete","_hasCounter","_maxLength","_pattern","_placeholder","_readOnly","_required","_variant"],"sources":["src/schema/props/variant/password-variant.ts","src/components/input-password/controller.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchValidator } from '../../utils/prop.validators';\n\nconst PasswordVariantPropTypeOptions = ['default', 'visibility-toggle'] as const;\nexport type PasswordVariantPropType = (typeof PasswordVariantPropTypeOptions)[number];\n\n/**\n * Defines the different variants for displaying the password input.\n */\nexport type PropPasswordVariant = {\n\tvariant: PasswordVariantPropType;\n};\n\n/* validator */\nexport const validatePasswordVariant = (component: Generic.Element.Component, value?: PasswordVariantPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t'_variant',\n\t\t(value) => typeof value === 'string' && PasswordVariantPropTypeOptions.includes(value),\n\t\tnew Set(PasswordVariantPropTypeOptions),\n\t\tvalue,\n\t);\n};\n","import type { InputPasswordProps, InputPasswordWatches, InputTypeOnOff } from '../../schema';\nimport { setState, validateHasCounter, watchBoolean, watchNumber, watchString, watchValidator } from '../../schema';\nimport type { PasswordVariantPropType } from '../../schema/props/variant/password-variant';\nimport { validatePasswordVariant } from '../../schema/props/variant/password-variant';\n\nimport { InputIconController } from '../@deprecated/input/controller-icon';\n\nimport type { Generic } from 'adopted-style-sheets';\nimport { debounce } from 'lodash-es';\n\nexport class InputPasswordController extends InputIconController implements InputPasswordWatches {\n\tprotected readonly component: Generic.Element.Component & InputPasswordProps;\n\n\tpublic constructor(component: Generic.Element.Component & InputPasswordProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tprotected 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\tthis.component.state._currentLengthDebounced = this.component._value.length;\n\t\t}\n\t};\n\n\tpublic validateAutoComplete(value?: InputTypeOnOff): void {\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_autoComplete',\n\t\t\t(value): boolean => typeof value === 'string' && (value === 'on' || value === 'off'),\n\t\t\tnew Set(['on | off']),\n\t\t\tvalue,\n\t\t);\n\t}\n\n\tpublic validateHasCounter(value?: boolean): void {\n\t\tvalidateHasCounter(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: this.afterSyncCharCounter,\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic validateVariant(value?: PasswordVariantPropType): void {\n\t\tvalidatePasswordVariant(this.component, value);\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 validatePattern(value?: string): void {\n\t\twatchString(this.component, '_pattern', value);\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 validateRequired(value?: boolean): void {\n\t\twatchBoolean(this.component, '_required', 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\n\t\tthis.setFormAssociatedValue(this.component.state._value as string);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateAutoComplete(this.component._autoComplete);\n\t\tthis.validateHasCounter(this.component._hasCounter);\n\t\tthis.validateMaxLength(this.component._maxLength);\n\t\tthis.validatePattern(this.component._pattern);\n\t\tthis.validatePlaceholder(this.component._placeholder);\n\t\tthis.validateReadOnly(this.component._readOnly);\n\t\tthis.validateRequired(this.component._required);\n\t\tthis.validateValue(this.component._value);\n\t\tthis.validateVariant(this.component._variant);\n\t}\n\n\tpublic readonly updateCurrentLengthDebounced = debounce((length: number) => {\n\t\tsetState(this.component, '_currentLengthDebounced', length);\n\t}, 500);\n}\n"],"mappings":";;;wKAIA,MAAMA,EAAiC,CAAC,UAAW,qBAW5C,MAAMC,EAA0B,CAACC,EAAsCC,KAC7EC,EACCF,EACA,YACCC,UAAiBA,IAAU,UAAYH,EAA+BK,SAASF,IAChF,IAAIG,IAAIN,GACRG,EACA,E,MCZWI,UAAgCC,EAG5C,WAAAC,CAAmBP,EAA2DQ,EAAcC,GAC3FC,MAAMV,EAAWQ,EAAMC,GAIdE,KAAAC,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BAAmBX,KAAKX,UAAUuC,aACvC5B,KAAKe,kBAAkBf,KAAKX,UAAUwC,YACtC7B,KAAKkB,gBAAgBlB,KAAKX,UAAUyC,UACpC9B,KAAKoB,oBAAoBpB,KAAKX,UAAU0C,cACxC/B,KAAKqB,iBAAiBrB,KAAKX,UAAU2C,WACrChC,KAAKuB,iBAAiBvB,KAAKX,UAAU4C,WACrCjC,KAAKwB,cAAcxB,KAAKX,UAAUa,QAClCF,KAAKc,gBAAgBd,KAAKX,UAAU6C,S","ignoreList":[]}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{w as s}from"./index-e32279bc.js";import{I as t}from"./controller-cbb66178.js";import{v as e}from"./spell-check-99498ed1.js";import{v as i}from"./suggestions-3d93a5ce.js";const o=["text","search","url","tel"];class r extends t{constructor(t,e,o){super(t,e,o),this.component=t}validateSuggestions(t){i(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateSuggestions(this.component._suggestions)}}class a extends r{constructor(t,e,o){super(t,e,o),this.hasError=!1,this.component=t}validateSpellCheck(t){e(this.component,t)}validateType(t){s(this.component,"_type",(t=>"string"==typeof t&&o.includes(t)),new Set([`String {${o.join(", ")}`]),t)}componentWillLoad(){super.componentWillLoad(),this.validateSpellCheck(this.component._spellCheck),this.validateType(this.component._type)}}export{r as I,a};
4
+ import{w as s}from"./index-bac313b4.js";import{I as t}from"./controller-6ce9698f.js";import{v as e}from"./spell-check-e6bd6453.js";import{v as i}from"./suggestions-68844c85.js";const o=["text","search","url","tel"];class r extends t{constructor(t,e,o){super(t,e,o),this.component=t}validateSuggestions(t){i(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateSuggestions(this.component._suggestions)}}class a extends r{constructor(t,e,o){super(t,e,o),this.hasError=!1,this.component=t}validateSpellCheck(t){e(this.component,t)}validateType(t){s(this.component,"_type",(t=>"string"==typeof t&&o.includes(t)),new Set([`String {${o.join(", ")}`]),t)}componentWillLoad(){super.componentWillLoad(),this.validateSpellCheck(this.component._spellCheck),this.validateType(this.component._type)}}export{r as I,a};
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{j as t,o as i,l as s,w as e,i as o,k as h,f as a,y as r,C as n,m as l}from"./index-bac313b4.js";import{s as d,t as c}from"./events-29e84d75.js";import{A as u}from"./associated.controller-8d1afc0c.js";import{v as f,a as v,b as p,c as y}from"./access-and-short-key-91c639af.js";import{v as m}from"./hide-label-da89c332.js";import{a as b}from"./label-c79c6289.js";import{v as g}from"./tooltip-align-d17bc994.js";const _=(o,e)=>{t(o,"_adjustHeight",e)},j=(o,e,n)=>{t(o,"_hideError",e,n)},k=(t,n)=>{i(n,(()=>{try{n=s(n)}catch(t){}e(t,"_msg",(t=>o(t)&&"string"==typeof(null==t?void 0:t._description)),new Set(["MsgPropType"]),n,{defaultValue:{_description:"",_type:"error"}})}))},x=(o,e)=>{t(o,"_touched",e)},A=t=>{var o,e;const n=Boolean("error"===(null===(o=t._msg)||void 0===o?void 0:o._type)&&t._msg._description&&(null===(e=t._msg._description)||void 0===e?void 0:e.length)>0)&&!0===t._touched,i="string"==typeof t._hint&&t._hint.length>0,s=[];return!0===n&&s.push(`${t._id}-error`),!0===i&&s.push(`${t._id}-hint`),{hasError:n,hasHint:i,ariaDescribedBy:s}};class B extends u{constructor(t,o,e){super(t,o,e),this.component=t}validateAlert(o){t(this.component,"_alert",o)}validateTouched(t){x(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateAlert(this.component._alert),this.validateTouched(this.component._touched)}}class C extends B{constructor(t,o,e){super(t,o,e),this.valueChangeListeners=[],this.onFacade={onBlur:this.onBlur.bind(this),onChange:this.onChange.bind(this),onClick:this.onClick.bind(this),onFocus:this.onFocus.bind(this),onInput:this.onInput.bind(this)},this.component=t}validateAccessKey(t){f(this.component,t),v(t,this.component._shortKey)}validateAdjustHeight(t){_(this.component,t)}validateDisabled(o){t(this.component,"_disabled",o),!0===o&&h()}validateTooltipAlign(t){g(this.component,t)}validateError(t){"string"==typeof t&&t.length>0?this.validateMsg({_description:t,_type:"error"}):this.validateMsg(void 0)}validateHideError(t){j(this.component,t,{hooks:{afterPatch:()=>{this.component.state._hideError&&a("Property hide-error for inputs: Only use when the error message is shown outside of the input component.")}}})}validateHideLabel(t){m(this.component,t,{hooks:{afterPatch:()=>{this.component.state._hideLabel&&a("Property hide-label for inputs: Only use for exceptions like search inputs that are clearly identifiable by their context.")}}})}validateHint(t){r(this.component,"_hint",t)}validateId(t){r(this.component,"_id",t,{minLength:1}),""!==t&&void 0!==t||n("A unique ID on the input fields is not strictly required, but it might be relevant for E2E tests.")}validateLabel(t){b(this.component,t,{required:!0})}validateMsg(t){k(this.component,t)}validateOn(t){"object"==typeof t&&l(this.component,"_on",t)}validateShortKey(t){p(this.component,t),v(this.component._accessKey,t)}validateSmartButton(t){i(t,(()=>{try{t=s(t)}catch(t){}l(this.component,"_smartButton",t)}))}validateTabIndex(t){y(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateAccessKey(this.component._accessKey),this.validateAdjustHeight(this.component._adjustHeight),this.validateError(this.component._error),this.component._msg&&this.validateMsg(this.component._msg),this.validateDisabled(this.component._disabled),this.validateHideError(this.component._hideError),this.validateHideLabel(this.component._hideLabel),this.validateHint(this.component._hint),this.validateId(this.component._id),this.validateLabel(this.component._label),this.validateShortKey(this.component._shortKey),this.validateSmartButton(this.component._smartButton),this.validateOn(this.component._on),this.validateTabIndex(this.component._tabIndex),v(this.component._accessKey,this.component._shortKey)}onBlur(t){var o;this.component._touched=!0,d(t),c("blur",this.host),"function"==typeof(null===(o=this.component._on)||void 0===o?void 0:o.onBlur)&&this.component._on.onBlur(t)}onChange(t,o){var e;o=null!=o?o:t.target.value,c("change",this.host,o),"function"==typeof(null===(e=this.component._on)||void 0===e?void 0:e.onChange)&&this.component._on.onChange(t,o),this.valueChangeListeners.forEach((t=>t(o)))}onInput(t,o=!0,e){var n;e=null!=e?e:t.target.value,d(t),c("input",this.host,e),o&&this.setFormAssociatedValue(e),"function"==typeof(null===(n=this.component._on)||void 0===n?void 0:n.onInput)&&this.component._on.onInput(t,e)}onClick(t){var o;d(t),c("click",this.host),"function"==typeof(null===(o=this.component._on)||void 0===o?void 0:o.onClick)&&this.component._on.onClick(t)}onFocus(t){var o;d(t),c("focus",this.host),"function"==typeof(null===(o=this.component._on)||void 0===o?void 0:o.onFocus)&&this.component._on.onFocus(t)}addValueChangeListener(t){this.valueChangeListeners.push(t)}}export{C as I,A as g};
@@ -1 +1 @@
1
- {"version":3,"names":["validateAdjustHeight","component","value","watchBoolean","validateHideError","options","validateMsg","objectObjectHandler","parseJson","e","watchValidator","isObject","_description","Set","defaultValue","_type","validateTouched","getRenderStates","state","isMessageValidError","Boolean","_a","_msg","_b","length","hasError","_touched","hasHint","_hint","ariaDescribedBy","push","_id","ControlledInputController","AssociatedInputController","constructor","name","host","super","this","validateAlert","componentWillLoad","_alert","InputController","valueChangeListeners","onFacade","onBlur","bind","onChange","onClick","onFocus","onInput","validateAccessKey","validateAccessAndShortKey","_shortKey","validateDisabled","a11yHintDisabled","validateTooltipAlign","validateError","undefined","hooks","afterPatch","_hideError","a11yHint","validateHideLabel","_hideLabel","validateHint","watchString","validateId","minLength","devHint","validateLabel","validateLabelWithExpertSlot","required","validateOn","setState","validateShortKey","_accessKey","validateSmartButton","validateTabIndex","_adjustHeight","_error","_disabled","_label","_smartButton","_on","_tabIndex","event","stopPropagation","tryToDispatchKoliBriEvent","target","forEach","listener","shouldSetFormAssociatedValue","setFormAssociatedValue","addValueChangeListener"],"sources":["src/schema/props/adjust-height.ts","src/schema/props/hide-error.ts","src/schema/props/msg.ts","src/schema/props/touched.ts","src/components/input/controller.ts","src/components/input-adapter-leanup/controller.ts","src/components/@deprecated/input/controller.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchBoolean } from '../utils';\n\n/* types */\nexport type AdjustHeightPropType = boolean;\n\n/**\n * Adjusts the height of the element to its content.\n */\nexport type PropAdjustHeight = {\n\tadjustHeight: AdjustHeightPropType;\n};\n\n/* validator */\nexport const validateAdjustHeight = (component: Generic.Element.Component, value?: AdjustHeightPropType): void => {\n\twatchBoolean(component, '_adjustHeight', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchBooleanOptions } from '../utils';\nimport { watchBoolean } from '../utils';\n\n/* types */\nexport type HideErrorPropType = boolean;\n\n/**\n * Hides the error message but leaves it in the DOM for the input's aria-describedby.\n */\nexport type PropHideError = {\n\thideError: HideErrorPropType;\n};\n\n/* validator */\nexport const validateHideError = (component: Generic.Element.Component, value?: HideErrorPropType, options?: WatchBooleanOptions): void => {\n\twatchBoolean(component, '_hideError', value, options);\n};\n","import type { Generic } from 'adopted-style-sheets';\nimport type { AlertProps } from '../components';\nimport type { Stringified } from '../types';\nimport { objectObjectHandler, parseJson, watchValidator } from '../utils';\nimport { isObject } from '../validators';\n\n/* types */\nexport type MsgPropType = AlertProps & {\n\t_description: string;\n};\n\n/**\n * Defines the properties for a message rendered as Alert component.\n */\nexport type PropMsg = {\n\tmsg: MsgPropType;\n};\n\n/* validator */\nexport const validateMsg = (component: Generic.Element.Component, value?: Stringified<MsgPropType>): void => {\n\tobjectObjectHandler(value, () => {\n\t\ttry {\n\t\t\tvalue = parseJson<MsgPropType>(value);\n\t\t\t// eslint-disable-next-line no-empty\n\t\t} catch (e) {\n\t\t\t// value keeps original value\n\t\t}\n\t\twatchValidator<MsgPropType>(\n\t\t\tcomponent,\n\t\t\t`_msg`,\n\t\t\t(value) => isObject(value) && typeof value?._description === 'string',\n\t\t\tnew Set(['MsgPropType']),\n\t\t\tvalue as MsgPropType,\n\t\t\t{\n\t\t\t\tdefaultValue: {\n\t\t\t\t\t_description: '',\n\t\t\t\t\t_type: 'error',\n\t\t\t\t},\n\t\t\t},\n\t\t);\n\t});\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { watchBoolean } from '../utils';\n\n/* types */\nexport type TouchedPropType = boolean;\n\n/**\n * Shows if the input was touched by a user.\n */\nexport type PropTouched = {\n\ttouched: TouchedPropType;\n};\n\n/* validator */\nexport const validateTouched = (component: Generic.Element.Component, value?: TouchedPropType): void => {\n\twatchBoolean(component, '_touched', value);\n};\n","import type { MsgPropType, TouchedPropType } from '../../schema';\n\n/**\n * Berechnet in Abhängigkeit des Component-State, wie die\n * aria-describedby-Attributs gesetzt werden sollen.\n *\n * @param state State der Component\n * @returns Render-States\n */\nexport const getRenderStates = (state: {\n\t_msg?: MsgPropType;\n\t_hint?: string;\n\t_id: string;\n\t_touched?: TouchedPropType;\n}): {\n\thasError: boolean;\n\thasHint: boolean;\n\tariaDescribedBy: string[];\n} => {\n\tconst isMessageValidError = Boolean(state._msg?._type === 'error' && state._msg._description && state._msg._description?.length > 0);\n\tconst hasError = isMessageValidError && state._touched === true;\n\tconst hasHint = typeof state._hint === 'string' && state._hint.length > 0;\n\n\tconst ariaDescribedBy: string[] = [];\n\tif (hasError === true) {\n\t\tariaDescribedBy.push(`${state._id}-error`);\n\t}\n\tif (hasHint === true) {\n\t\tariaDescribedBy.push(`${state._id}-hint`);\n\t}\n\treturn { hasError, hasHint, ariaDescribedBy };\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { validateTouched, watchBoolean } from '../../schema';\n\nimport { AssociatedInputController } from './associated.controller';\n\nimport type { Props, Watches } from './types';\nexport class ControlledInputController extends AssociatedInputController 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\tpublic validateAlert(value?: boolean): void {\n\t\twatchBoolean(this.component, '_alert', value);\n\t}\n\n\tpublic validateTouched(value?: boolean): void {\n\t\tvalidateTouched(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateAlert(this.component._alert);\n\t\tthis.validateTouched(this.component._touched);\n\t}\n}\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type {\n\tAccessKeyPropType,\n\tAdjustHeightPropType,\n\tButtonProps,\n\tHideErrorPropType,\n\tInputTypeOnDefault,\n\tLabelWithExpertSlotPropType,\n\tMsgPropType,\n\tShortKeyPropType,\n\tStencilUnknown,\n\tStringified,\n\tTooltipAlignPropType,\n} from '../../../schema';\nimport {\n\ta11yHint,\n\ta11yHintDisabled,\n\tdevHint,\n\tobjectObjectHandler,\n\tparseJson,\n\tsetState,\n\tvalidateAccessKey,\n\tvalidateAdjustHeight,\n\tvalidateHideError,\n\tvalidateHideLabel,\n\tvalidateLabelWithExpertSlot,\n\tvalidateMsg,\n\tvalidateTabIndex,\n\tvalidateTooltipAlign,\n\twatchBoolean,\n\twatchString,\n\tvalidateShortKey,\n} from '../../../schema';\n\nimport { stopPropagation, tryToDispatchKoliBriEvent } from '../../../utils/events';\nimport { ControlledInputController } from '../../input-adapter-leanup/controller';\n\nimport type { Props as AdapterProps } from '../../input-adapter-leanup/types';\nimport type { Props, Watches } from './types';\nimport { validateAccessAndShortKey } from '../../../schema/validators/access-and-short-key';\n\ntype ValueChangeListener = (value: StencilUnknown) => void;\n\nexport class InputController extends ControlledInputController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props & AdapterProps;\n\n\tprivate readonly valueChangeListeners: ValueChangeListener[] = [];\n\n\tpublic constructor(component: Generic.Element.Component & Props, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateAccessKey(value?: AccessKeyPropType): void {\n\t\tvalidateAccessKey(this.component, value);\n\t\tvalidateAccessAndShortKey(value, this.component._shortKey);\n\t}\n\n\tpublic validateAdjustHeight(value?: AdjustHeightPropType): void {\n\t\tvalidateAdjustHeight(this.component, value);\n\t}\n\n\tpublic validateDisabled(value?: boolean): void {\n\t\twatchBoolean(this.component, '_disabled', value);\n\t\tif (value === true) {\n\t\t\ta11yHintDisabled();\n\t\t}\n\t}\n\tpublic validateTooltipAlign(value?: TooltipAlignPropType): void {\n\t\tvalidateTooltipAlign(this.component, value);\n\t}\n\n\t/**\n\t * @deprecated\n\t */\n\tpublic validateError(value?: string): void {\n\t\tif (typeof value === 'string' && value.length > 0) {\n\t\t\tthis.validateMsg({\n\t\t\t\t_description: value,\n\t\t\t\t_type: 'error',\n\t\t\t});\n\t\t} else {\n\t\t\tthis.validateMsg(undefined);\n\t\t}\n\t}\n\n\tpublic validateHideError(value?: HideErrorPropType): void {\n\t\tvalidateHideError(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: () => {\n\t\t\t\t\tif (this.component.state._hideError) {\n\t\t\t\t\t\ta11yHint('Property hide-error for inputs: Only use when the error message is shown outside of the input component.');\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic validateHideLabel(value?: boolean): void {\n\t\tvalidateHideLabel(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: () => {\n\t\t\t\t\tif (this.component.state._hideLabel) {\n\t\t\t\t\t\ta11yHint('Property hide-label for inputs: Only use for exceptions like search inputs that are clearly identifiable by their context.');\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic validateHint(value?: string): void {\n\t\twatchString(this.component, '_hint', value);\n\t}\n\n\tpublic validateId(value?: string): void {\n\t\twatchString(this.component, '_id', value, { minLength: 1 });\n\t\tif (value === '' || typeof value === 'undefined') {\n\t\t\tdevHint(`A unique ID on the input fields is not strictly required, but it might be relevant for E2E tests.`);\n\t\t}\n\t}\n\n\tpublic validateLabel(value?: LabelWithExpertSlotPropType): void {\n\t\tvalidateLabelWithExpertSlot(this.component, value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\tpublic validateMsg(value?: Stringified<MsgPropType>): void {\n\t\tvalidateMsg(this.component, value);\n\t}\n\n\tpublic validateOn(value?: InputTypeOnDefault): void {\n\t\tif (typeof value === 'object') {\n\t\t\tsetState(this.component, '_on', value);\n\t\t}\n\t}\n\n\tpublic validateShortKey(value?: ShortKeyPropType): void {\n\t\tvalidateShortKey(this.component, value);\n\t\tvalidateAccessAndShortKey(this.component._accessKey, value);\n\t}\n\n\tpublic validateSmartButton(value?: ButtonProps | string): void {\n\t\tobjectObjectHandler(value, () => {\n\t\t\ttry {\n\t\t\t\tvalue = parseJson<ButtonProps>(value as string);\n\t\t\t\t// eslint-disable-next-line no-empty\n\t\t\t} catch (e) {\n\t\t\t\t// value behält den ursprünglichen Wert\n\t\t\t}\n\t\t\tsetState(this.component, '_smartButton', value);\n\t\t});\n\t}\n\n\tpublic validateTabIndex(value?: number): void {\n\t\tvalidateTabIndex(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateAccessKey(this.component._accessKey);\n\t\tthis.validateAdjustHeight(this.component._adjustHeight);\n\t\tthis.validateError(this.component._error);\n\t\t// _msg should only override _error if it is also defined.\n\t\tif (this.component._msg) {\n\t\t\tthis.validateMsg(this.component._msg);\n\t\t}\n\t\tthis.validateDisabled(this.component._disabled);\n\t\tthis.validateHideError(this.component._hideError);\n\t\tthis.validateHideLabel(this.component._hideLabel);\n\t\tthis.validateHint(this.component._hint);\n\t\tthis.validateId(this.component._id);\n\t\tthis.validateLabel(this.component._label);\n\t\tthis.validateShortKey(this.component._shortKey);\n\t\tthis.validateSmartButton(this.component._smartButton);\n\t\tthis.validateOn(this.component._on);\n\t\tthis.validateTabIndex(this.component._tabIndex);\n\t\tvalidateAccessAndShortKey(this.component._accessKey, this.component._shortKey);\n\t}\n\n\tprotected onBlur(event: Event): void {\n\t\tthis.component._touched = true;\n\n\t\t// Event handling\n\t\tstopPropagation(event);\n\t\ttryToDispatchKoliBriEvent('blur', this.host);\n\n\t\t// Callback\n\t\tif (typeof this.component._on?.onBlur === 'function') {\n\t\t\tthis.component._on.onBlur(event);\n\t\t}\n\t}\n\n\t/**\n\t * @param event - The original event object\n\t * @param value - Optional value. Taken from event if not defined.\n\t */\n\tprotected onChange(event: Event, value?: StencilUnknown): void {\n\t\tvalue = value ?? (event.target as HTMLInputElement).value;\n\n\t\t// Event handling\n\t\ttryToDispatchKoliBriEvent('change', this.host, value);\n\n\t\t// Callback\n\t\tif (typeof this.component._on?.onChange === 'function') {\n\t\t\t/**\n\t\t\t * TODO\n\t\t\t * Value-Handling muss für InputDate und InputNumber optimiert werden\n\t\t\t * - value\n\t\t\t * - valueAsNumber\n\t\t\t * - valueAsDate\n\t\t\t */\n\t\t\tthis.component._on.onChange(event, value);\n\t\t}\n\n\t\t/**\n\t\t * TODO: Was ist das?\n\t\t */\n\t\tthis.valueChangeListeners.forEach((listener) => listener(value));\n\t}\n\n\t/**\n\t * @param event - The original event object\n\t * @param shouldSetFormAssociatedValue - Set to false when setting form associated value is not desired.\n\t * @param value - Optional value. Taken from event if not defined.\n\t */\n\tprotected onInput(event: Event, shouldSetFormAssociatedValue = true, value?: StencilUnknown): void {\n\t\tvalue = value ?? (event.target as HTMLInputElement).value;\n\n\t\t// Event handling\n\t\tstopPropagation(event);\n\t\ttryToDispatchKoliBriEvent('input', this.host, value);\n\n\t\t// Static form handling\n\t\tif (shouldSetFormAssociatedValue) {\n\t\t\tthis.setFormAssociatedValue(value);\n\t\t}\n\n\t\t// Callback\n\t\tif (typeof this.component._on?.onInput === 'function') {\n\t\t\tthis.component._on.onInput(event, value);\n\t\t}\n\t}\n\n\tprotected onClick(event: Event): void {\n\t\t// Event handling\n\t\tstopPropagation(event);\n\t\ttryToDispatchKoliBriEvent('click', this.host);\n\n\t\t// Callback\n\t\tif (typeof this.component._on?.onClick === 'function') {\n\t\t\tthis.component._on.onClick(event);\n\t\t}\n\t}\n\n\tprotected onFocus(event: Event): void {\n\t\t// Event handling\n\t\tstopPropagation(event);\n\t\ttryToDispatchKoliBriEvent('focus', this.host);\n\n\t\t// Callback\n\t\tif (typeof this.component._on?.onFocus === 'function') {\n\t\t\tthis.component._on.onFocus(event);\n\t\t}\n\t}\n\n\tpublic addValueChangeListener(listener: ValueChangeListener) {\n\t\tthis.valueChangeListeners.push(listener);\n\t}\n\n\t/**\n\t * Hinweis: In der Subklasse 'InputPasswordController'\n\t * werden die Methoden onBlur und onFocus\n\t * überschrieben.\n\t * Es werden somit zunächst die Methoden der\n\t * Subklasse ausgeführt und danach die der\n\t * Oberklassen.\n\t */\n\tpublic readonly onFacade = {\n\t\tonBlur: this.onBlur.bind(this),\n\t\tonChange: this.onChange.bind(this),\n\t\tonClick: this.onClick.bind(this),\n\t\tonFocus: this.onFocus.bind(this),\n\t\tonInput: this.onInput.bind(this),\n\t};\n}\n"],"mappings":";;;2ZAeO,MAAMA,EAAuB,CAACC,EAAsCC,KAC1EC,EAAaF,EAAW,gBAAiBC,EAAM,ECAzC,MAAME,EAAoB,CAACH,EAAsCC,EAA2BG,KAClGF,EAAaF,EAAW,aAAcC,EAAOG,EAAQ,ECE/C,MAAMC,EAAc,CAACL,EAAsCC,KACjEK,EAAoBL,GAAO,KAC1B,IACCA,EAAQM,EAAuBN,E,CAE9B,MAAOO,G,CAGTC,EACCT,EACA,QACCC,GAAUS,EAAST,WAAiBA,IAAK,MAALA,SAAK,SAALA,EAAOU,gBAAiB,UAC7D,IAAIC,IAAI,CAAC,gBACTX,EACA,CACCY,aAAc,CACbF,aAAc,GACdG,MAAO,UAGT,GACA,ECzBI,MAAMC,EAAkB,CAACf,EAAsCC,KACrEC,EAAaF,EAAW,WAAYC,EAAM,E,MCP9Be,EAAmBC,I,QAU/B,MAAMC,EAAsBC,UAAQC,EAAAH,EAAMI,QAAI,MAAAD,SAAA,SAAAA,EAAEN,SAAU,SAAWG,EAAMI,KAAKV,gBAAgBW,EAAAL,EAAMI,KAAKV,gBAAY,MAAAW,SAAA,SAAAA,EAAEC,QAAS,GAClI,MAAMC,EAAWN,GAAuBD,EAAMQ,WAAa,KAC3D,MAAMC,SAAiBT,EAAMU,QAAU,UAAYV,EAAMU,MAAMJ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AAqB+C,SAASC,GAAaA,EAASzF,I,CAQhD,OAAAgD,CAAQoC,EAAcM,EAA+B,KAAM1F,G,MACpEA,EAAQA,IAAK,MAALA,SAAK,EAALA,EAAUoF,EAAMG,OAA4BvF,MAGpDqF,EAAgBD,GAChBE,EAA0B,QAASlD,KAAKF,KAAMlC,GAG9C,GAAI0F,EAA8B,CACjCtD,KAAKuD,uBAAuB3F,E,CAI7B,WAAWmB,EAAAiB,KAAKrC,UAAUmF,OAAG,MAAA/D,SAAA,SAAAA,EAAE6B,WAAY,WAAY,CACtDZ,KAAKrC,UAAUmF,IAAIlC,QAAQoC,EAAOpF,E,EAI1B,OAAA8C,CAAQsC,G,MAEjBC,EAAgBD,GAChBE,EAA0B,QAASlD,KAAKF,MAGxC,WAAWf,EAAAiB,KAAKrC,UAAUmF,OAAG,MAAA/D,SAAA,SAAAA,EAAE2B,WAAY,WAAY,CACtDV,KAAKrC,UAAUmF,IAAIpC,QAAQsC,E,EAInB,OAAArC,CAAQqC,G,MAEjBC,EAAgBD,GAChBE,EAA0B,QAASlD,KAAKF,MAGxC,WAAWf,EAAAiB,KAAKrC,UAAUmF,OAAG,MAAA/D,SAAA,SAAAA,EAAE4B,WAAY,WAAY,CACtDX,KAAKrC,UAAUmF,IAAInC,QAAQqC,E,EAItB,sBAAAQ,CAAuBH,GAC7BrD,KAAKK,qBAAqBb,KAAK6D,E","ignoreList":[]}
1
+ {"version":3,"names":["validateAdjustHeight","component","value","watchBoolean","validateHideError","options","validateMsg","objectObjectHandler","parseJson","e","watchValidator","isObject","_description","Set","defaultValue","_type","validateTouched","getRenderStates","state","isMessageValidError","Boolean","_a","_msg","_b","length","hasError","_touched","hasHint","_hint","ariaDescribedBy","push","_id","ControlledInputController","AssociatedInputController","constructor","name","host","super","this","validateAlert","componentWillLoad","_alert","InputController","valueChangeListeners","onFacade","onBlur","bind","onChange","onClick","onFocus","onInput","validateAccessKey","validateAccessAndShortKey","_shortKey","validateDisabled","a11yHintDisabled","validateTooltipAlign","validateError","undefined","hooks","afterPatch","_hideError","a11yHint","validateHideLabel","_hideLabel","validateHint","watchString","validateId","minLength","devHint","validateLabel","validateLabelWithExpertSlot","required","validateOn","setState","validateShortKey","_accessKey","validateSmartButton","validateTabIndex","_adjustHeight","_error","_disabled","_label","_smartButton","_on","_tabIndex","event","stopPropagation","tryToDispatchKoliBriEvent","target","forEach","listener","shouldSetFormAssociatedValue","setFormAssociatedValue","addValueChangeListener"],"sources":["src/schema/props/adjust-height.ts","src/schema/props/hide-error.ts","src/schema/props/msg.ts","src/schema/props/touched.ts","src/components/input/controller.ts","src/components/input-adapter-leanup/controller.ts","src/components/@deprecated/input/controller.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchBoolean } from '../utils';\n\n/* types */\nexport type AdjustHeightPropType = boolean;\n\n/**\n * Adjusts the height of the element to its content.\n */\nexport type PropAdjustHeight = {\n\tadjustHeight: AdjustHeightPropType;\n};\n\n/* validator */\nexport const validateAdjustHeight = (component: Generic.Element.Component, value?: AdjustHeightPropType): void => {\n\twatchBoolean(component, '_adjustHeight', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchBooleanOptions } from '../utils';\nimport { watchBoolean } from '../utils';\n\n/* types */\nexport type HideErrorPropType = boolean;\n\n/**\n * Hides the error message but leaves it in the DOM for the input's aria-describedby.\n */\nexport type PropHideError = {\n\thideError: HideErrorPropType;\n};\n\n/* validator */\nexport const validateHideError = (component: Generic.Element.Component, value?: HideErrorPropType, options?: WatchBooleanOptions): void => {\n\twatchBoolean(component, '_hideError', value, options);\n};\n","import type { Generic } from 'adopted-style-sheets';\nimport type { AlertProps } from '../components';\nimport type { Stringified } from '../types';\nimport { objectObjectHandler, parseJson, watchValidator } from '../utils';\nimport { isObject } from '../validators';\n\n/* types */\nexport type MsgPropType = AlertProps & {\n\t_description: string;\n};\n\n/**\n * Defines the properties for a message rendered as Alert component.\n */\nexport type PropMsg = {\n\tmsg: MsgPropType;\n};\n\n/* validator */\nexport const validateMsg = (component: Generic.Element.Component, value?: Stringified<MsgPropType>): void => {\n\tobjectObjectHandler(value, () => {\n\t\ttry {\n\t\t\tvalue = parseJson<MsgPropType>(value);\n\t\t\t// eslint-disable-next-line no-empty\n\t\t} catch (e) {\n\t\t\t// value keeps original value\n\t\t}\n\t\twatchValidator<MsgPropType>(\n\t\t\tcomponent,\n\t\t\t`_msg`,\n\t\t\t(value) => isObject(value) && typeof value?._description === 'string',\n\t\t\tnew Set(['MsgPropType']),\n\t\t\tvalue as MsgPropType,\n\t\t\t{\n\t\t\t\tdefaultValue: {\n\t\t\t\t\t_description: '',\n\t\t\t\t\t_type: 'error',\n\t\t\t\t},\n\t\t\t},\n\t\t);\n\t});\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { watchBoolean } from '../utils';\n\n/* types */\nexport type TouchedPropType = boolean;\n\n/**\n * Shows if the input was touched by a user.\n */\nexport type PropTouched = {\n\ttouched: TouchedPropType;\n};\n\n/* validator */\nexport const validateTouched = (component: Generic.Element.Component, value?: TouchedPropType): void => {\n\twatchBoolean(component, '_touched', value);\n};\n","import type { MsgPropType, TouchedPropType } from '../../schema';\n\n/**\n * Berechnet in Abhängigkeit des Component-State, wie die\n * aria-describedby-Attributs gesetzt werden sollen.\n *\n * @param state State der Component\n * @returns Render-States\n */\nexport const getRenderStates = (state: {\n\t_msg?: MsgPropType;\n\t_hint?: string;\n\t_id: string;\n\t_touched?: TouchedPropType;\n}): {\n\thasError: boolean;\n\thasHint: boolean;\n\tariaDescribedBy: string[];\n} => {\n\tconst isMessageValidError = Boolean(state._msg?._type === 'error' && state._msg._description && state._msg._description?.length > 0);\n\tconst hasError = isMessageValidError && state._touched === true;\n\tconst hasHint = typeof state._hint === 'string' && state._hint.length > 0;\n\n\tconst ariaDescribedBy: string[] = [];\n\tif (hasError === true) {\n\t\tariaDescribedBy.push(`${state._id}-error`);\n\t}\n\tif (hasHint === true) {\n\t\tariaDescribedBy.push(`${state._id}-hint`);\n\t}\n\treturn { hasError, hasHint, ariaDescribedBy };\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { validateTouched, watchBoolean } from '../../schema';\n\nimport { AssociatedInputController } from './associated.controller';\n\nimport type { Props, Watches } from './types';\nexport class ControlledInputController extends AssociatedInputController 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\tpublic validateAlert(value?: boolean): void {\n\t\twatchBoolean(this.component, '_alert', value);\n\t}\n\n\tpublic validateTouched(value?: boolean): void {\n\t\tvalidateTouched(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateAlert(this.component._alert);\n\t\tthis.validateTouched(this.component._touched);\n\t}\n}\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type {\n\tAccessKeyPropType,\n\tAdjustHeightPropType,\n\tButtonProps,\n\tHideErrorPropType,\n\tInputTypeOnDefault,\n\tLabelWithExpertSlotPropType,\n\tMsgPropType,\n\tShortKeyPropType,\n\tStencilUnknown,\n\tStringified,\n\tTooltipAlignPropType,\n} from '../../../schema';\nimport {\n\ta11yHint,\n\ta11yHintDisabled,\n\tdevHint,\n\tobjectObjectHandler,\n\tparseJson,\n\tsetState,\n\tvalidateAccessKey,\n\tvalidateAdjustHeight,\n\tvalidateHideError,\n\tvalidateHideLabel,\n\tvalidateLabelWithExpertSlot,\n\tvalidateMsg,\n\tvalidateTabIndex,\n\tvalidateTooltipAlign,\n\twatchBoolean,\n\twatchString,\n\tvalidateShortKey,\n} from '../../../schema';\n\nimport { stopPropagation, tryToDispatchKoliBriEvent } from '../../../utils/events';\nimport { ControlledInputController } from '../../input-adapter-leanup/controller';\n\nimport type { Props as AdapterProps } from '../../input-adapter-leanup/types';\nimport type { Props, Watches } from './types';\nimport { validateAccessAndShortKey } from '../../../schema/validators/access-and-short-key';\n\ntype ValueChangeListener = (value: StencilUnknown) => void;\n\nexport class InputController extends ControlledInputController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props & AdapterProps;\n\n\tprivate readonly valueChangeListeners: ValueChangeListener[] = [];\n\n\tpublic constructor(component: Generic.Element.Component & Props, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateAccessKey(value?: AccessKeyPropType): void {\n\t\tvalidateAccessKey(this.component, value);\n\t\tvalidateAccessAndShortKey(value, this.component._shortKey);\n\t}\n\n\tpublic validateAdjustHeight(value?: AdjustHeightPropType): void {\n\t\tvalidateAdjustHeight(this.component, value);\n\t}\n\n\tpublic validateDisabled(value?: boolean): void {\n\t\twatchBoolean(this.component, '_disabled', value);\n\t\tif (value === true) {\n\t\t\ta11yHintDisabled();\n\t\t}\n\t}\n\tpublic validateTooltipAlign(value?: TooltipAlignPropType): void {\n\t\tvalidateTooltipAlign(this.component, value);\n\t}\n\n\t/**\n\t * @deprecated\n\t */\n\tpublic validateError(value?: string): void {\n\t\tif (typeof value === 'string' && value.length > 0) {\n\t\t\tthis.validateMsg({\n\t\t\t\t_description: value,\n\t\t\t\t_type: 'error',\n\t\t\t});\n\t\t} else {\n\t\t\tthis.validateMsg(undefined);\n\t\t}\n\t}\n\n\tpublic validateHideError(value?: HideErrorPropType): void {\n\t\tvalidateHideError(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: () => {\n\t\t\t\t\tif (this.component.state._hideError) {\n\t\t\t\t\t\ta11yHint('Property hide-error for inputs: Only use when the error message is shown outside of the input component.');\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic validateHideLabel(value?: boolean): void {\n\t\tvalidateHideLabel(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: () => {\n\t\t\t\t\tif (this.component.state._hideLabel) {\n\t\t\t\t\t\ta11yHint('Property hide-label for inputs: Only use for exceptions like search inputs that are clearly identifiable by their context.');\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic validateHint(value?: string): void {\n\t\twatchString(this.component, '_hint', value);\n\t}\n\n\tpublic validateId(value?: string): void {\n\t\twatchString(this.component, '_id', value, { minLength: 1 });\n\t\tif (value === '' || typeof value === 'undefined') {\n\t\t\tdevHint(`A unique ID on the input fields is not strictly required, but it might be relevant for E2E tests.`);\n\t\t}\n\t}\n\n\tpublic validateLabel(value?: LabelWithExpertSlotPropType): void {\n\t\tvalidateLabelWithExpertSlot(this.component, value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\tpublic validateMsg(value?: Stringified<MsgPropType>): void {\n\t\tvalidateMsg(this.component, value);\n\t}\n\n\tpublic validateOn(value?: InputTypeOnDefault): void {\n\t\tif (typeof value === 'object') {\n\t\t\tsetState(this.component, '_on', value);\n\t\t}\n\t}\n\n\tpublic validateShortKey(value?: ShortKeyPropType): void {\n\t\tvalidateShortKey(this.component, value);\n\t\tvalidateAccessAndShortKey(this.component._accessKey, value);\n\t}\n\n\tpublic validateSmartButton(value?: ButtonProps | string): void {\n\t\tobjectObjectHandler(value, () => {\n\t\t\ttry {\n\t\t\t\tvalue = parseJson<ButtonProps>(value as string);\n\t\t\t\t// eslint-disable-next-line no-empty\n\t\t\t} catch (e) {\n\t\t\t\t// value behält den ursprünglichen Wert\n\t\t\t}\n\t\t\tsetState(this.component, '_smartButton', value);\n\t\t});\n\t}\n\n\tpublic validateTabIndex(value?: number): void {\n\t\tvalidateTabIndex(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateAccessKey(this.component._accessKey);\n\t\tthis.validateAdjustHeight(this.component._adjustHeight);\n\t\tthis.validateError(this.component._error);\n\t\t// _msg should only override _error if it is also defined.\n\t\tif (this.component._msg) {\n\t\t\tthis.validateMsg(this.component._msg);\n\t\t}\n\t\tthis.validateDisabled(this.component._disabled);\n\t\tthis.validateHideError(this.component._hideError);\n\t\tthis.validateHideLabel(this.component._hideLabel);\n\t\tthis.validateHint(this.component._hint);\n\t\tthis.validateId(this.component._id);\n\t\tthis.validateLabel(this.component._label);\n\t\tthis.validateShortKey(this.component._shortKey);\n\t\tthis.validateSmartButton(this.component._smartButton);\n\t\tthis.validateOn(this.component._on);\n\t\tthis.validateTabIndex(this.component._tabIndex);\n\t\tvalidateAccessAndShortKey(this.component._accessKey, this.component._shortKey);\n\t}\n\n\tprotected onBlur(event: Event): void {\n\t\tthis.component._touched = true;\n\n\t\t// Event handling\n\t\tstopPropagation(event);\n\t\ttryToDispatchKoliBriEvent('blur', this.host);\n\n\t\t// Callback\n\t\tif (typeof this.component._on?.onBlur === 'function') {\n\t\t\tthis.component._on.onBlur(event);\n\t\t}\n\t}\n\n\t/**\n\t * @param event - The original event object\n\t * @param value - Optional value. Taken from event if not defined.\n\t */\n\tprotected onChange(event: Event, value?: StencilUnknown): void {\n\t\tvalue = value ?? (event.target as HTMLInputElement).value;\n\n\t\t// Event handling\n\t\ttryToDispatchKoliBriEvent('change', this.host, value);\n\n\t\t// Callback\n\t\tif (typeof this.component._on?.onChange === 'function') {\n\t\t\t/**\n\t\t\t * TODO\n\t\t\t * Value-Handling muss für InputDate und InputNumber optimiert werden\n\t\t\t * - value\n\t\t\t * - valueAsNumber\n\t\t\t * - valueAsDate\n\t\t\t */\n\t\t\tthis.component._on.onChange(event, value);\n\t\t}\n\n\t\t/**\n\t\t * TODO: Was ist das?\n\t\t */\n\t\tthis.valueChangeListeners.forEach((listener) => listener(value));\n\t}\n\n\t/**\n\t * @param event - The original event object\n\t * @param shouldSetFormAssociatedValue - Set to false when setting form associated value is not desired.\n\t * @param value - Optional value. Taken from event if not defined.\n\t */\n\tprotected onInput(event: Event, shouldSetFormAssociatedValue = true, value?: StencilUnknown): void {\n\t\tvalue = value ?? (event.target as HTMLInputElement).value;\n\n\t\t// Event handling\n\t\tstopPropagation(event);\n\t\ttryToDispatchKoliBriEvent('input', this.host, value);\n\n\t\t// Static form handling\n\t\tif (shouldSetFormAssociatedValue) {\n\t\t\tthis.setFormAssociatedValue(value);\n\t\t}\n\n\t\t// Callback\n\t\tif (typeof this.component._on?.onInput === 'function') {\n\t\t\tthis.component._on.onInput(event, value);\n\t\t}\n\t}\n\n\tprotected onClick(event: Event): void {\n\t\t// Event handling\n\t\tstopPropagation(event);\n\t\ttryToDispatchKoliBriEvent('click', this.host);\n\n\t\t// Callback\n\t\tif (typeof this.component._on?.onClick === 'function') {\n\t\t\tthis.component._on.onClick(event);\n\t\t}\n\t}\n\n\tprotected onFocus(event: Event): void {\n\t\t// Event handling\n\t\tstopPropagation(event);\n\t\ttryToDispatchKoliBriEvent('focus', this.host);\n\n\t\t// Callback\n\t\tif (typeof this.component._on?.onFocus === 'function') {\n\t\t\tthis.component._on.onFocus(event);\n\t\t}\n\t}\n\n\tpublic addValueChangeListener(listener: ValueChangeListener) {\n\t\tthis.valueChangeListeners.push(listener);\n\t}\n\n\t/**\n\t * Hinweis: In der Subklasse 'InputPasswordController'\n\t * werden die Methoden onBlur und onFocus\n\t * überschrieben.\n\t * Es werden somit zunächst die Methoden der\n\t * Subklasse ausgeführt und danach die der\n\t * Oberklassen.\n\t */\n\tpublic readonly onFacade = {\n\t\tonBlur: this.onBlur.bind(this),\n\t\tonChange: this.onChange.bind(this),\n\t\tonClick: this.onClick.bind(this),\n\t\tonFocus: this.onFocus.bind(this),\n\t\tonInput: this.onInput.bind(this),\n\t};\n}\n"],"mappings":";;;gaAeO,MAAMA,EAAuB,CAACC,EAAsCC,KAC1EC,EAAaF,EAAW,gBAAiBC,EAAM,ECAzC,MAAME,EAAoB,CAACH,EAAsCC,EAA2BG,KAClGF,EAAaF,EAAW,aAAcC,EAAOG,EAAQ,ECE/C,MAAMC,EAAc,CAACL,EAAsCC,KACjEK,EAAoBL,GAAO,KAC1B,IACCA,EAAQM,EAAuBN,E,CAE9B,MAAOO,G,CAGTC,EACCT,EACA,QACCC,GA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/D,SAAA,SAAAA,EAAE4B,WAAY,WAAY,CACtDX,KAAKrC,UAAUmF,IAAInC,QAAQqC,E,EAItB,sBAAAQ,CAAuBH,GAC7BrD,KAAKK,qBAAqBb,KAAK6D,E","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{f as t,v as s,i as e,j as i,w as a,m as r}from"./index-bac313b4.js";import{I as o}from"./controller-a44f67e1.js";import{b as n,c as f}from"./label-c79c6289.js";const l=e=>{if("object"==typeof e&&null!==e){if("string"==typeof e.label&&e.label.length>0)return e.disabled=!0===e.disabled,e.label=`${e.label}`.trim(),!1===n(e.label,3)&&!1===f(e.label)&&t(`A differing Aria-Label (${e.label}) is not accessible. A differing Aria-Label should consist of at least three readable characters.`),!Array.isArray(e.options)||void 0===e.options.find((t=>!1===l(t)));if("number"==typeof e.label)return!0}return!1},h=(t,o,a={})=>{s(t,"_options",(t=>e(t)&&"string"==typeof t.label&&t.label.length>0),o,void 0,a)},c=(t,e,o={})=>{s(t,"_options",l,e,void 0,o)},u=(t,e)=>{i(t,"_required",e)},p=["horizontal","vertical"],d=(t,e,o="")=>{e.forEach(((e,a)=>{const i=`${o}-${a}`;"object"==typeof e&&null!==e&&"string"==typeof e.label&&e.label.length>0&&(Array.isArray(e.options)?d(t,e.options,i):t.set(i,e))}))};class b extends o{constructor(t,e,o){super(t,e,o),this.component=t}validateRequired(t){u(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateRequired(this.component._required)}}class y extends b{constructor(t,e,o){super(t,e,o),this.keyOptionMap=new Map,this.getOptionByKey=t=>this.keyOptionMap.get(t),this.afterPatchOptions=(t,e,o,a)=>{"_value"===a&&this.setFormAssociatedValue(t)},this.beforePatchOptions=(t,e)=>{const o=e.has("_options")?e.get("_options"):this.component.state._options;Array.isArray(o)&&o.length>0&&(this.keyOptionMap.clear(),d(this.keyOptionMap,o))},this.component=t}validateOrientation(t){a(this.component,"_orientation",(t=>"string"==typeof t&&p.includes(t)),new Set([`Orientation {${p.join(", ")}`]),t,{defaultValue:"vertical"})}validateOptions(t){h(this.component,t,{hooks:{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions}})}validateValue(t){t=Array.isArray(t)?t[0]:t,r(this.component,"_value",t,{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions})}componentWillLoad(){super.componentWillLoad(),this.validateOrientation(this.component._orientation),this.validateOptions(this.component._options),this.validateValue(this.component._value)}}export{b as I,y as a,h as b,d as f,c as v};
@@ -0,0 +1 @@
1
+ {"version":3,"names":["validateInputSelectOptions","option","label","length","disabled","trim","hasEnoughReadableChars","containsOnlyNumbers","a11yHint","Array","isArray","options","find","item","undefined","validateOptions","component","value","watchJsonArrayString","isObject","validateOptionsWithOptgroup","validateRequired","watchBoolean","orientationOptions","fillKeyOptionMap","keyOptionMap","preKey","forEach","index","key","set","InputCheckboxRadioController","InputController","constructor","name","host","super","this","componentWillLoad","_required","InputRadioController","Map","getOptionByKey","get","afterPatchOptions","_state","_component","setFormAssociatedValue","beforePatchOptions","_value","nextState","has","state","_options","clear","validateOrientation","watchValidator","includes","Set","join","defaultValue","hooks","afterPatch","beforePatch","validateValue","setState","_orientation"],"sources":["src/schema/validators/options.ts","src/schema/props/options.ts","src/schema/props/required.ts","src/schema/types/orientation.ts","src/components/input-radio/controller.ts"],"sourcesContent":["import { containsOnlyNumbers, hasEnoughReadableChars } from '../props';\nimport { a11yHint } from '../utils';\n\nimport type { Optgroup, SelectOption } from '../types';\nexport const validateInputSelectOptions = <T>(option: SelectOption<T>): boolean => {\n\tif (typeof option === 'object' && option !== null) {\n\t\tif (typeof option.label === 'string' && option.label.length > 0) {\n\t\t\toption.disabled = option.disabled === true;\n\t\t\toption.label = `${option.label}`.trim();\n\t\t\tif (hasEnoughReadableChars(option.label, 3) === false && containsOnlyNumbers(option.label) === false) {\n\t\t\t\ta11yHint(`A differing Aria-Label (${option.label}) is not accessible. A differing Aria-Label should consist of at least three readable characters.`);\n\t\t\t}\n\t\t\tif (Array.isArray((option as Optgroup<T>).options)) {\n\t\t\t\treturn (\n\t\t\t\t\t(option as Optgroup<T>).options.find((item) => {\n\t\t\t\t\t\treturn validateInputSelectOptions(item) === false;\n\t\t\t\t\t}) === undefined\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn true;\n\t\t} else if (typeof option.label === 'number') {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { RadioOption, Optgroup, Option, StencilUnknown } from '../types';\nimport type { Stringified } from '../types/common';\nimport type { WatchOptions } from '../utils';\nimport { watchJsonArrayString } from '../utils';\nimport { isObject, validateInputSelectOptions } from '../validators';\n\n/* types */\n\nexport type OptionsPropType = Stringified<Option<StencilUnknown>[]>;\nexport type OptionsWithOptgroupPropType = Stringified<(Option<StencilUnknown> | Optgroup<StencilUnknown>)[]>;\nexport type RadioOptionsPropType = Stringified<RadioOption<StencilUnknown>[]>;\n\n/**\n * Options the user can choose from.\n */\nexport type PropOptions = {\n\toptions: OptionsPropType;\n};\n\nexport type PropRadioOptions = {\n\toptions: RadioOptionsPropType;\n};\n\n/**\n * Options the user can choose from, also supporting Optgroup.\n */\nexport type PropOptionsWithOptgroup = {\n\toptions: OptionsWithOptgroupPropType;\n};\n\n/* validators */\n\nexport const validateOptions = (component: Generic.Element.Component, value: OptionsPropType | undefined, options: WatchOptions = {}): void => {\n\twatchJsonArrayString(\n\t\tcomponent,\n\t\t'_options',\n\t\t(item: Option<StencilUnknown>) => isObject(item) && typeof item.label === 'string' && item.label.length > 0,\n\t\tvalue,\n\t\tundefined,\n\t\toptions,\n\t);\n};\n\nexport const validateOptionsWithOptgroup = (\n\tcomponent: Generic.Element.Component,\n\tvalue: OptionsWithOptgroupPropType | undefined,\n\toptions: WatchOptions = {},\n) => {\n\twatchJsonArrayString(component, '_options', validateInputSelectOptions, value, undefined, options);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { watchBoolean } from '../utils';\n\n/* types */\ntype RequiredPropType = boolean;\n\n/**\n * Makes the input element required.\n */\nexport type PropRequired = {\n\trequired: RequiredPropType;\n};\n\n/* validator */\nexport const validateRequired = (component: Generic.Element.Component, value?: RequiredPropType): void => {\n\twatchBoolean(component, '_required', value);\n};\n","export const orientationOptions = ['horizontal', 'vertical'] as const;\nexport type Orientation = (typeof orientationOptions)[number];\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type {\n\tInputRadioProps,\n\tInputRadioWatches,\n\tOptgroup,\n\tOptionsPropType,\n\tOrientation,\n\tPropLabelWithExpertSlot,\n\tRadioOption,\n\tSelectOption,\n\tStencilUnknown,\n\tStringified,\n\tW3CInputValue,\n} from '../../schema';\nimport { orientationOptions, setState, validateOptions, validateRequired, watchValidator } from '../../schema';\n\nimport { InputController } from '../@deprecated/input/controller';\n\nexport const fillKeyOptionMap = <T>(keyOptionMap: Map<string, RadioOption<T>>, options: SelectOption<T>[], preKey = ''): void => {\n\toptions.forEach((option, index) => {\n\t\tconst key = `${preKey}-${index}`;\n\t\tif (typeof option === 'object' && option !== null && typeof option.label === 'string' && option.label.length > 0) {\n\t\t\tif (Array.isArray((option as Optgroup<T>).options)) {\n\t\t\t\tfillKeyOptionMap(keyOptionMap, (option as Optgroup<T>).options, key);\n\t\t\t} else {\n\t\t\t\tkeyOptionMap.set(key, option as RadioOption<T>);\n\t\t\t}\n\t\t}\n\t});\n};\n\ntype RequiredProps = PropLabelWithExpertSlot;\ntype OptionalProps = {\n\trequired: boolean;\n};\ntype InputCheckboxRadioProps = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype InputCheckboxRadioWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\nexport class InputCheckboxRadioController extends InputController implements InputCheckboxRadioWatches {\n\tprotected readonly component: Generic.Element.Component & InputCheckboxRadioProps;\n\n\tpublic constructor(component: Generic.Element.Component & InputCheckboxRadioProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateRequired(value?: boolean): void {\n\t\tvalidateRequired(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateRequired(this.component._required);\n\t}\n}\n\nexport class InputRadioController extends InputCheckboxRadioController implements InputRadioWatches {\n\tprotected readonly component: Generic.Element.Component & InputRadioProps;\n\tprivate readonly keyOptionMap = new Map<string, RadioOption<W3CInputValue>>();\n\n\tpublic constructor(component: Generic.Element.Component & InputRadioProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic readonly getOptionByKey = (key: string): RadioOption<W3CInputValue> | undefined => this.keyOptionMap.get(key);\n\n\tprotected readonly afterPatchOptions = (value: unknown, _state: Record<string, unknown>, _component: Generic.Element.Component, key: string): void => {\n\t\tif (key === '_value') {\n\t\t\tthis.setFormAssociatedValue(value as string);\n\t\t}\n\t};\n\n\tpublic validateOrientation(value?: Orientation): void {\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_orientation',\n\t\t\t(value): boolean => typeof value === 'string' && orientationOptions.includes(value),\n\t\t\tnew Set([`Orientation {${orientationOptions.join(', ')}`]),\n\t\t\tvalue,\n\t\t\t{\n\t\t\t\tdefaultValue: 'vertical',\n\t\t\t},\n\t\t);\n\t}\n\n\tprotected readonly beforePatchOptions = (_value: unknown, nextState: Map<string, unknown>): void => {\n\t\tconst options = nextState.has('_options') ? nextState.get('_options') : this.component.state._options;\n\t\tif (Array.isArray(options) && options.length > 0) {\n\t\t\tthis.keyOptionMap.clear();\n\t\t\tfillKeyOptionMap(this.keyOptionMap, options as SelectOption<W3CInputValue>[]);\n\t\t}\n\t};\n\n\tpublic validateOptions(value?: OptionsPropType): void {\n\t\tvalidateOptions(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: this.afterPatchOptions,\n\t\t\t\tbeforePatch: this.beforePatchOptions,\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic validateValue(value?: Stringified<StencilUnknown>): void {\n\t\tvalue = Array.isArray(value) ? (value[0] as StencilUnknown) : value;\n\t\tsetState(this.component, '_value', value, {\n\t\t\tafterPatch: this.afterPatchOptions,\n\t\t\tbeforePatch: this.beforePatchOptions,\n\t\t});\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateOrientation(this.component._orientation);\n\t\tthis.validateOptions(this.component._options);\n\t\tthis.validateValue(this.component._value);\n\t}\n}\n"],"mappings":";;;uKAIO,MAAMA,EAAiCC,IAC7C,UAAWA,IAAW,UAAYA,IAAW,KAAM,CAClD,UAAWA,EAAOC,QAAU,UAAYD,EAAOC,MAAMC,OAAS,EAAG,CAChEF,EAAOG,SAAWH,EAAOG,WAAa,KACtCH,EAAOC,MAAQ,GAAGD,EAAOC,QAAQG,OACjC,GAAIC,EAAuBL,EAAOC,MAAO,KAAO,OAASK,EAAoBN,EAAOC,SAAW,MAAO,CACrGM,EAAS,2BAA2BP,EAAOC,yG,CAE5C,GAAIO,MAAMC,QAAST,EAAuBU,SAAU,CACnD,OACEV,EAAuBU,QAAQC,MAAMC,GAC9Bb,EAA2Ba,KAAU,UACtCC,S,CAGT,OAAO,I,MACD,UAAWb,EAAOC,QAAU,SAAU,CAC5C,OAAO,I,EAGT,OAAO,KAAK,E,MCUAa,EAAkB,CAACC,EAAsCC,EAAoCN,EAAwB,MACjIO,EACCF,EACA,YACCH,GAAiCM,EAASN,WAAgBA,EAAKX,QAAU,UAAYW,EAAKX,MAAMC,OAAS,GAC1Gc,EACAH,UACAH,EACA,E,MAGWS,EAA8B,CAC1CJ,EACAC,EACAN,EAAwB,MAExBO,EAAqBF,EAAW,WAAYhB,EAA4BiB,EAAOH,UAAWH,EAAQ,ECnC5F,MAAMU,EAAmB,CAACL,EAAsCC,KACtEK,EAAaN,EAAW,YAAaC,EAAM,EChBrC,MAAMM,EAAqB,CAAC,aAAc,Y,MCmBpCC,EA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kC,SAASxC,IAC7E,IAAIyC,IAAI,CAAC,gBAAgBnC,EAAmBoC,KAAK,UACjD1C,EACA,CACC2C,aAAc,Y,CAaV,eAAA7C,CAAgBE,GACtBF,EAAgBsB,KAAKrB,UAAWC,EAAO,CACtC4C,MAAO,CACNC,WAAYzB,KAAKO,kBACjBmB,YAAa1B,KAAKW,qB,CAKd,aAAAgB,CAAc/C,GACpBA,EAAQR,MAAMC,QAAQO,GAAUA,EAAM,GAAwBA,EAC9DgD,EAAS5B,KAAKrB,UAAW,SAAUC,EAAO,CACzC6C,WAAYzB,KAAKO,kBACjBmB,YAAa1B,KAAKW,oB,CAIb,iBAAAV,GACNF,MAAME,oBACND,KAAKkB,oBAAoBlB,KAAKrB,UAAUkD,cACxC7B,KAAKtB,gBAAgBsB,KAAKrB,UAAUqC,UACpChB,KAAK2B,cAAc3B,KAAKrB,UAAUiC,O","ignoreList":[]}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import"./index-e32279bc.js";import{I as s}from"./controller-d9005336.js";import{v as o}from"./icons-e36b4959.js";class t extends s{constructor(o,s,t){super(o,s,t),this.component=o}validateIcons(s){o(this.component,s)}componentWillLoad(){super.componentWillLoad(),this.validateIcons(this.component._icons)}}export{t as I};
4
+ import"./index-bac313b4.js";import{I as s}from"./controller-a44f67e1.js";import{v as o}from"./icons-be30e67a.js";class t extends s{constructor(o,s,t){super(o,s,t),this.component=o}validateIcons(s){o(this.component,s)}componentWillLoad(){super.componentWillLoad(),this.validateIcons(this.component._icons)}}export{t as I};
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{y as s}from"./index-bac313b4.js";const a=(a,o)=>{s(a,"_customClass",o,{defaultValue:void 0})};export{a as v};
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{j as n}from"./index-bac313b4.js";const e=(t,r,e)=>{n(t,"_hasCounter",r,e)};var r="object"==typeof global&&global&&global.Object===Object&&global;const t=r;var u="object"==typeof self&&self&&self.Object===Object&&self,i=t||u||Function("return this")();const f=i;var o=f.Symbol;const a=o;var c=Object.prototype,v=c.hasOwnProperty,d=c.toString,l=a?a.toStringTag:void 0;function s(t){var n=v.call(t,l),r=t[l];try{t[l]=void 0;var e=!0}catch(t){}var o=d.call(t);return e&&(n?t[l]=r:delete t[l]),o}var b=Object.prototype,j=b.toString;function p(t){return j.call(t)}var y="[object Null]",m="[object Undefined]",h=a?a.toStringTag:void 0;function T(t){return null==t?void 0===t?m:y:h&&h in Object(t)?s(t):p(t)}function g(t){return null!=t&&"object"==typeof t}var x="[object Symbol]";function O(t){return"symbol"==typeof t||g(t)&&T(t)==x}var w=/\s/;function $(t){for(var n=t.length;n--&&w.test(t.charAt(n)););return n}var E=/^\s+/;function M(t){return t?t.slice(0,$(t)+1).replace(E,""):t}function C(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}var F=NaN,I=/^[-+]0x[0-9a-f]+$/i,N=/^0b[01]+$/i,S=/^0o[0-7]+$/i,U=parseInt;function W(t){if("number"==typeof t)return t;if(O(t))return F;if(C(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=C(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=M(t);var r=N.test(t);return r||S.test(t)?U(t.slice(2),r?2:8):I.test(t)?F:+t}var _=function(){return f.Date.now()};const k=_;var q="Expected a function",z=Math.max,A=Math.min;function B(t,n,r){var e,o,i,a,u,c,f=0,l=!1,v=!1,s=!0;if("function"!=typeof t)throw new TypeError(q);function b(n){var r=e,i=o;return e=o=void 0,f=n,a=t.apply(i,r)}function p(t){var r=t-c;return void 0===c||r>=n||r<0||v&&t-f>=i}function d(){var t=k();if(p(t))return y(t);u=setTimeout(d,function(t){var r=n-(t-c);return v?A(r,i-(t-f)):r}(t))}function y(t){return u=void 0,s&&e?b(t):(e=o=void 0,a)}function j(){var t=k(),r=p(t);if(e=arguments,o=this,c=t,r){if(void 0===u)return function(t){return f=t,u=setTimeout(d,n),l?b(t):a}(c);if(v)return clearTimeout(u),u=setTimeout(d,n),b(c)}return void 0===u&&(u=setTimeout(d,n)),a}return n=W(n)||0,C(r)&&(l=!!r.leading,i=(v="maxWait"in r)?z(W(r.maxWait)||0,n):i,s="trailing"in r?!!r.trailing:s),j.cancel=function(){void 0!==u&&clearTimeout(u),f=0,e=c=o=u=void 0},j.flush=function(){return void 0===u?a:y(k())},j}export{B as d,e as v};
@@ -0,0 +1 @@
1
+ {"version":3,"names":["validateHasCounter","component","value","options","watchBoolean","freeGlobal","global","Object","freeGlobal$1","freeSelf","self","root","Function","root$1","Symbol","Symbol$1","objectProto","prototype","hasOwnProperty","nativeObjectToString","toString","symToStringTag","toStringTag","undefined","getRawTag","isOwn","call","tag","unmasked","e","result","objectToString","nullTag","undefinedTag","baseGetTag","isObjectLike","symbolTag","isSymbol","reWhitespace","trimmedEndIndex","string","index","length","test","charAt","reTrimStart","baseTrim","slice","replace","isObject","type","NAN","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","parseInt","toNumber","other","valueOf","isBinary","now","Date","now$1","FUNC_ERROR_TEXT","nativeMax","Math","max","nativeMin","min","debounce","func","wait","lastArgs","lastThis","maxWait","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","TypeError","invokeFunc","time","args","thisArg","apply","leadingEdge","setTimeout","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","timeWaiting","shouldInvoke","trailingEdge","cancel","clearTimeout","flush","debounced","isInvoking","arguments","this"],"sources":["src/schema/props/has-counter.ts","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_trimmedEndIndex.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTrim.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toNumber.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/now.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/debounce.js"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchBooleanOptions } from '../utils';\nimport { watchBoolean } from '../utils';\n\n/* types */\nexport type HasCounterPropType = boolean;\n\n/**\n * Shows the character count on the lower border of the input.\n */\nexport type PropHasCounter = {\n\thasCounter: HasCounterPropType;\n};\n\n/* validator */\nexport const validateHasCounter = (component: Generic.Element.Component, value?: HasCounterPropType, options?: WatchBooleanOptions): void => {\n\twatchBoolean(component, '_hasCounter', value, options);\n};\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nexport default freeGlobal;\n","import freeGlobal from './_freeGlobal.js';\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nexport default root;\n","import root from './_root.js';\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nexport default Symbol;\n","import Symbol from './_Symbol.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nexport default getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nexport default objectToString;\n","import Symbol from './_Symbol.js';\nimport getRawTag from './_getRawTag.js';\nimport objectToString from './_objectToString.js';\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nexport default baseGetTag;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nexport default isObjectLike;\n","import baseGetTag from './_baseGetTag.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nexport default isSymbol;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nexport default trimmedEndIndex;\n","import trimmedEndIndex from './_trimmedEndIndex.js';\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nexport default baseTrim;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nexport default isObject;\n","import baseTrim from './_baseTrim.js';\nimport isObject from './isObject.js';\nimport isSymbol from './isSymbol.js';\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nexport default toNumber;\n","import root from './_root.js';\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nexport default now;\n","import isObject from './isObject.js';\nimport now from './now.js';\nimport toNumber from './toNumber.js';\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nexport default debounce;\n"],"mappings":";;;8CAgBaA,EAAqB,CAACC,EAAsCC,EAA4BC,KACpGC,EAAaH,EAAW,cAAeC,EAAOC,EAAQ,EChBvD,IAAIE,SAAoBC,QAAU,UAAYA,QAAUA,OAAOC,SAAWA,QAAUD,OAEpF,MAAAE,EAAeH,ECAf,IAAII,SAAkBC,MAAQ,UAAYA,MAAQA,KAAKH,SAAWA,QAAUG,KAG5E,IAA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IAAIhB,EAAOvB,IACPwC,EAAaN,EAAaX,GAE9BX,EAAW6B,UACX5B,EAAW6B,KACX1B,EAAeO,EAEf,GAAIiB,EAAY,CACd,GAAIzB,IAAYrD,UAAW,CACzB,OAAOiE,EAAYX,EAC3B,CACM,GAAIG,EAAQ,CAEVkB,aAAatB,GACbA,EAAUa,WAAWC,EAAclB,GACnC,OAAOW,EAAWN,EAC1B,CACA,CACI,GAAID,IAAYrD,UAAW,CACzBqD,EAAUa,WAAWC,EAAclB,EACzC,CACI,OAAO1C,CACX,CACEsE,EAAUH,OAASA,EACnBG,EAAUD,MAAQA,EAClB,OAAOC,CACT,Q","ignoreList":[]}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{L as e,g as t,s as n,c as i,d as o,p as s,e as a}from"./index-e32279bc.js";import{E as r}from"./index-d9d56ef4.js";const c=()=>{const e=t().querySelector('meta[name="kolibri"]');if(e&&e.hasAttribute("content")){const t=e.getAttribute("content");"string"==typeof t&&(n(t.includes("dev-mode=true")),i(t.includes("experimental-mode=true")),o(t.includes("color-contrast-analysis=true")))}},u=()=>{let e=a().KoliBri;return void 0===e&&(e={},Object.defineProperty(a(),"KoliBri",{value:e,writable:!1})),e},l=()=>{c(),e.debug(`\n,--. ,--. ,--. ,--. ,-----. ,--.\n| .' / ,---. | | \`--' | |) /_ ,--.--. \`--'\n| . ' | .-. | | | ,--. | .-. \\ | .--' ,--.\n| |\\ \\ | '-' | | | | | | '--' / | | | |\n\`--' \`--´ \`---´ \`--' \`--' \`------´ \`--' \`--'\n🚹 The accessible HTML-Standard | 👉 https://public-ui.github.io | ${r.kolibriVersion}\n\t`,{forceLog:!0})},f=()=>{!0!==u().adviceShown&&(Object.defineProperty(u(),"adviceShown",{get:function(){return!0}}),e.debug("\nYou are using the KoliBri component library. If you have any suggestions for improvement or find a problem, please contact us:\n\nTicket: https://github.com/public-ui/kolibri/issues/new/choose (for privacy reasons, please use email)\nEmail: kolibri@itzbund.de\n"))};let d=()=>Math.floor(16777215*Math.random()).toString(16);"test"===s&&(d=()=>"nonce");export{l as i,d as n,f as r};
4
+ import{L as e,g as t,s as n,c as i,d as o,p as s,e as a}from"./index-bac313b4.js";import{E as r}from"./index-19f12ec9.js";const c=()=>{const e=t().querySelector('meta[name="kolibri"]');if(e&&e.hasAttribute("content")){const t=e.getAttribute("content");"string"==typeof t&&(n(t.includes("dev-mode=true")),i(t.includes("experimental-mode=true")),o(t.includes("color-contrast-analysis=true")))}},u=()=>{let e=a().KoliBri;return void 0===e&&(e={},Object.defineProperty(a(),"KoliBri",{value:e,writable:!1})),e},l=()=>{c(),e.debug(`\n,--. ,--. ,--. ,--. ,-----. ,--.\n| .' / ,---. | | \`--' | |) /_ ,--.--. \`--'\n| . ' | .-. | | | ,--. | .-. \\ | .--' ,--.\n| |\\ \\ | '-' | | | | | | '--' / | | | |\n\`--' \`--´ \`---´ \`--' \`--' \`------´ \`--' \`--'\n🚹 The accessible HTML-Standard | 👉 https://public-ui.github.io | ${r.kolibriVersion}\n\t`,{forceLog:!0})},f=()=>{!0!==u().adviceShown&&(Object.defineProperty(u(),"adviceShown",{get:function(){return!0}}),e.debug("\nYou are using the KoliBri component library. If you have any suggestions for improvement or find a problem, please contact us:\n\nTicket: https://github.com/public-ui/kolibri/issues/new/choose (for privacy reasons, please use email)\nEmail: kolibri@itzbund.de\n"))};let b=()=>Math.floor(16777215*Math.random()).toString(16);"test"===s&&(b=()=>"nonce");export{l as i,b as n,f as r};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{R as t,g as e,L as o,E as s,T as i,U as l,N as a,W as n,X as r,Y as f,k as c,Z as d,e as L}from"./index-e32279bc.js";import{i as p,r as m}from"./dev.utils-90a9d96f.js";import"./index-d9d56ef4.js";const u=()=>{let t=L().KoliBri;return void 0===t&&(t={},Object.defineProperty(L(),"KoliBri",{value:t,writable:!1})),t};function h(t,e){try{Object.defineProperty(u(),t,{get:function(){return e}})}catch(e){o.debug(`KoliBri property ${t} is already bind.`)}}const v=(t,e)=>o.debug(`${t} ${e?"":"not "}activated`),g=()=>{if(p(),t()){m(),h("a11yColorContrast",l),h("querySelector",a),h("querySelectorAll",n),h("querySelectorColors",r),h("utils",(function(){return f})),h("parseJson",c),h("stringifyJson",d);const o=e().body,p=e().createElement("svg");if(p.setAttribute("aria-label","KoliBri-DevTools"),p.setAttribute("xmlns","http://www.w3.org/2000/svg"),p.setAttribute("role","toolbar"),p.setAttribute("style","position: fixed;color: black;font-size: 200%;bottom: 0.25rem;right: 0.25rem;"),p.innerHTML='<svg\n xmlns="http://www.w3.org/2000/svg"\n width="50"\n height="50"\n viewBox="0 0 600 600"\n>\n <path d="M353 322L213 304V434L353 322Z" fill="#047" />\n <path d="M209 564V304L149 434L209 564Z" fill="#047" />\n <path d="M357 316L417 250L361 210L275 244L357 316Z" fill="#047" />\n <path d="M353 318L35 36L213 300L353 318Z" fill="#047" />\n <path d="M329 218L237 92L250 222L272 241L329 218Z" fill="#047" />\n <path d="M391 286L565 272L421 252L391 286Z" fill="#047" />\n</svg>',e().body.appendChild(p),v("Development mode",t()),v("Experimental mode",s()),v("Color contrast analysis",i()),i()){const t=setTimeout((()=>{clearTimeout(t),setInterval((()=>{f.queryHtmlElementColors(e().createElement("div"),l(o),!1,!1)}),1e4)}),2500)}}};export{g as initialize};
4
+ import{R as t,g as e,L as o,E as s,T as l,U as i,N as a,W as n,X as r,Y as c,l as f,Z as d,e as L}from"./index-bac313b4.js";import{i as p,r as m}from"./dev.utils-e3e07c15.js";import"./index-19f12ec9.js";const u=()=>{let e=L().KoliBri;return void 0===e&&(e={},Object.defineProperty(L(),"KoliBri",{value:e,writable:!1})),e};function h(e,t){try{Object.defineProperty(u(),e,{get:function(){return t}})}catch(t){o.debug(`KoliBri property ${e} is already bind.`)}}const v=(e,t)=>o.debug(`${e} ${t?"":"not "}activated`),g=()=>{if(p(),t()){m(),h("a11yColorContrast",i),h("querySelector",a),h("querySelectorAll",n),h("querySelectorColors",r),h("utils",(function(){return c})),h("parseJson",f),h("stringifyJson",d);const o=e().body,p=e().createElement("svg");if(p.setAttribute("aria-label","KoliBri-DevTools"),p.setAttribute("xmlns","http://www.w3.org/2000/svg"),p.setAttribute("role","toolbar"),p.setAttribute("style","position: fixed;color: black;font-size: 200%;bottom: 0.25rem;right: 0.25rem;"),p.innerHTML='<svg\n xmlns="http://www.w3.org/2000/svg"\n width="50"\n height="50"\n viewBox="0 0 600 600"\n>\n <path d="M353 322L213 304V434L353 322Z" fill="#047" />\n <path d="M209 564V304L149 434L209 564Z" fill="#047" />\n <path d="M357 316L417 250L361 210L275 244L357 316Z" fill="#047" />\n <path d="M353 318L35 36L213 300L353 318Z" fill="#047" />\n <path d="M329 218L237 92L250 222L272 241L329 218Z" fill="#047" />\n <path d="M391 286L565 272L421 252L391 286Z" fill="#047" />\n</svg>',e().body.appendChild(p),v("Development mode",t()),v("Experimental mode",s()),v("Color contrast analysis",l()),l()){const t=setTimeout((()=>{clearTimeout(t),setInterval((()=>{c.queryHtmlElementColors(e().createElement("div"),i(o),!1,!1)}),1e4)}),2500)}}};export{g as initialize};
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{j as a,k as s}from"./index-bac313b4.js";const o=(o,t)=>{a(o,"_disabled",t,{hooks:{afterPatch:a=>{!0===a&&s()}}})};export{o as v};
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{j as s}from"./index-bac313b4.js";const o=(o,a)=>{s(o,"_hasCloser",a)};export{o as v};
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{j as a}from"./index-bac313b4.js";const e=(e,o,s={})=>{a(e,"_hideLabel",o,s)};export{e as v};