@public-ui/components 2.0.10 → 2.0.11

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 (371) hide show
  1. package/custom-elements.json +2 -2
  2. package/dist/cjs/{align-floating-elements-c34541f3.js → align-floating-elements-907f2fa3.js} +1 -1
  3. package/dist/cjs/{align-floating-elements-c34541f3.js.map → align-floating-elements-907f2fa3.js.map} +1 -1
  4. package/dist/cjs/{app-globals-f28351b3.js → app-globals-b5a56d87.js} +1 -1
  5. package/dist/cjs/{app-globals-f28351b3.js.map → app-globals-b5a56d87.js.map} +1 -1
  6. package/dist/cjs/{associated.controller-28e845cc.js → associated.controller-44964fd5.js} +1 -1
  7. package/dist/cjs/{associated.controller-28e845cc.js.map → associated.controller-44964fd5.js.map} +1 -1
  8. package/dist/cjs/{controller-d32be5e7.js → controller-0f81c0af.js} +1 -1
  9. package/dist/cjs/{controller-d32be5e7.js.map → controller-0f81c0af.js.map} +1 -1
  10. package/dist/cjs/controller-454910c1.js +4 -0
  11. package/dist/cjs/{controller-77b3e421.js.map → controller-454910c1.js.map} +1 -1
  12. package/dist/cjs/{controller-e9291e36.js → controller-77b081c6.js} +1 -1
  13. package/dist/cjs/{controller-e9291e36.js.map → controller-77b081c6.js.map} +1 -1
  14. package/dist/cjs/{controller-69278b68.js → controller-c78578f1.js} +1 -1
  15. package/dist/cjs/{controller-69278b68.js.map → controller-c78578f1.js.map} +1 -1
  16. package/dist/cjs/controller-ccfa3732.js +4 -0
  17. package/dist/cjs/controller-ccfa3732.js.map +1 -0
  18. package/dist/cjs/{controller-icon-d5ce4793.js → controller-icon-f31387fd.js} +1 -1
  19. package/dist/cjs/{controller-icon-d5ce4793.js.map → controller-icon-f31387fd.js.map} +1 -1
  20. package/dist/cjs/{dev.utils-487b14ca.js → dev.utils-18748d0d.js} +1 -1
  21. package/dist/cjs/{dev.utils-487b14ca.js.map → dev.utils-18748d0d.js.map} +1 -1
  22. package/dist/cjs/{devtools-13f5ce1f.js → devtools-f5b7dc5c.js} +1 -1
  23. package/dist/cjs/{devtools-13f5ce1f.js.map → devtools-f5b7dc5c.js.map} +1 -1
  24. package/dist/cjs/events-221fcb43.js.map +1 -1
  25. package/dist/cjs/{i18n-9f4d1694.js → i18n-7971042d.js} +1 -1
  26. package/dist/cjs/{i18n-9f4d1694.js.map → i18n-7971042d.js.map} +1 -1
  27. package/dist/cjs/{index-cb2ce614.js → index-6a8528c2.js} +1 -1
  28. package/dist/cjs/{index-cb2ce614.js.map → index-6a8528c2.js.map} +1 -1
  29. package/dist/cjs/{index-8b65ad54.js → index-d33b9844.js} +1 -1
  30. package/dist/cjs/{index-8b65ad54.js.map → index-d33b9844.js.map} +1 -1
  31. package/dist/cjs/index.cjs.js +1 -1
  32. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  33. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  34. package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
  35. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  36. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  37. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  38. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  39. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  40. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  41. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  42. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  43. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  44. package/dist/cjs/kol-heading-wc.cjs.entry.js +1 -1
  45. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  46. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  47. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  48. package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
  49. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  50. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  51. package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
  52. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  53. package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
  54. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  55. package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
  56. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  57. package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
  58. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  59. package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
  60. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  61. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  62. package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
  63. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  64. package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
  65. package/dist/cjs/kol-input.cjs.entry.js +1 -1
  66. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  67. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  68. package/dist/cjs/kol-link-group.cjs.entry.js +1 -1
  69. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  71. package/dist/cjs/kol-logo.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  73. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  74. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  75. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  77. package/dist/cjs/kol-progress.cjs.entry.js.map +1 -1
  78. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  79. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  80. package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
  81. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  82. package/dist/cjs/kol-span-wc.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  84. package/dist/cjs/kol-symbol.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-table.cjs.entry.js +1 -1
  86. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  87. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  88. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  89. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  90. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  91. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  93. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  94. package/dist/cjs/kolibri.cjs.js +1 -1
  95. package/dist/cjs/loader.cjs.js +1 -1
  96. package/dist/cjs/{toaster-281b2ba3.js → toaster-62a35c5f.js} +1 -1
  97. package/dist/cjs/{toaster-281b2ba3.js.map → toaster-62a35c5f.js.map} +1 -1
  98. package/dist/cjs/{toaster-71aaee9a.js → toaster-693061df.js} +1 -1
  99. package/dist/cjs/{toaster-71aaee9a.js.map → toaster-693061df.js.map} +1 -1
  100. package/dist/cjs/validation-a25ab901.js +4 -0
  101. package/dist/cjs/{validation-fd93c1f5.js.map → validation-a25ab901.js.map} +1 -1
  102. package/dist/cjs/{validation-dd7406a2.js → validation-cc617690.js} +1 -1
  103. package/dist/cjs/{validation-dd7406a2.js.map → validation-cc617690.js.map} +1 -1
  104. package/dist/components/controller2.js +1 -1
  105. package/dist/components/controller2.js.map +1 -1
  106. package/dist/components/events.js.map +1 -1
  107. package/dist/components/index2.js +1 -1
  108. package/dist/components/index2.js.map +1 -1
  109. package/dist/components/kol-input-checkbox.js +1 -1
  110. package/dist/components/kol-input-checkbox.js.map +1 -1
  111. package/dist/components/kol-input-date.js +1 -1
  112. package/dist/components/kol-input-date.js.map +1 -1
  113. package/dist/components/kol-input-email.js +1 -1
  114. package/dist/components/kol-input-email.js.map +1 -1
  115. package/dist/components/kol-input-file.js +1 -1
  116. package/dist/components/kol-input-file.js.map +1 -1
  117. package/dist/components/kol-input-number.js +1 -1
  118. package/dist/components/kol-input-number.js.map +1 -1
  119. package/dist/components/kol-input-password.js +1 -1
  120. package/dist/components/kol-input-password.js.map +1 -1
  121. package/dist/components/kol-input-range.js +1 -1
  122. package/dist/components/kol-input-range.js.map +1 -1
  123. package/dist/components/kol-input-text.js +1 -1
  124. package/dist/components/kol-input-text.js.map +1 -1
  125. package/dist/components/kol-progress.js +1 -1
  126. package/dist/components/kol-progress.js.map +1 -1
  127. package/dist/components/kol-select.js +1 -1
  128. package/dist/components/kol-select.js.map +1 -1
  129. package/dist/components/kol-textarea.js +1 -1
  130. package/dist/components/kol-textarea.js.map +1 -1
  131. package/dist/esm/{align-floating-elements-8fb7f6b0.js → align-floating-elements-a21bf44f.js} +1 -1
  132. package/dist/esm/{align-floating-elements-8fb7f6b0.js.map → align-floating-elements-a21bf44f.js.map} +1 -1
  133. package/dist/esm/{app-globals-c60fa356.js → app-globals-98388dee.js} +1 -1
  134. package/dist/esm/{app-globals-c60fa356.js.map → app-globals-98388dee.js.map} +1 -1
  135. package/dist/esm/{associated.controller-fa74caf7.js → associated.controller-c5369a0d.js} +1 -1
  136. package/dist/esm/{associated.controller-fa74caf7.js.map → associated.controller-c5369a0d.js.map} +1 -1
  137. package/dist/esm/controller-12bf050b.js +4 -0
  138. package/dist/esm/controller-12bf050b.js.map +1 -0
  139. package/dist/esm/{controller-a4e8cbd2.js → controller-19587a5f.js} +1 -1
  140. package/dist/esm/{controller-a4e8cbd2.js.map → controller-19587a5f.js.map} +1 -1
  141. package/dist/esm/{controller-a64ca69a.js → controller-64de63fb.js} +1 -1
  142. package/dist/esm/{controller-a64ca69a.js.map → controller-64de63fb.js.map} +1 -1
  143. package/dist/esm/{controller-860dc9e8.js → controller-b7d35f53.js} +1 -1
  144. package/dist/esm/{controller-860dc9e8.js.map → controller-b7d35f53.js.map} +1 -1
  145. package/dist/esm/{controller-d605890e.js → controller-c23290a9.js} +1 -1
  146. package/dist/esm/{controller-d605890e.js.map → controller-c23290a9.js.map} +1 -1
  147. package/dist/esm/{controller-icon-421820a1.js → controller-icon-c3bf90f3.js} +1 -1
  148. package/dist/esm/{controller-icon-421820a1.js.map → controller-icon-c3bf90f3.js.map} +1 -1
  149. package/dist/esm/{dev.utils-e81fbe6f.js → dev.utils-6d9b92c3.js} +1 -1
  150. package/dist/esm/{dev.utils-e81fbe6f.js.map → dev.utils-6d9b92c3.js.map} +1 -1
  151. package/dist/esm/{devtools-a322f324.js → devtools-d4cd0545.js} +1 -1
  152. package/dist/esm/{devtools-a322f324.js.map → devtools-d4cd0545.js.map} +1 -1
  153. package/dist/esm/events-29e84d75.js.map +1 -1
  154. package/dist/esm/{i18n-3bac791b.js → i18n-1e6a70ea.js} +1 -1
  155. package/dist/esm/{i18n-3bac791b.js.map → i18n-1e6a70ea.js.map} +1 -1
  156. package/dist/esm/{index-0489af72.js → index-fbc0a5be.js} +1 -1
  157. package/dist/esm/{index-0489af72.js.map → index-fbc0a5be.js.map} +1 -1
  158. package/dist/{kolibri/index-34632da4.js → esm/index-fff5a4e2.js} +1 -1
  159. package/dist/esm/{index-34632da4.js.map → index-fff5a4e2.js.map} +1 -1
  160. package/dist/esm/index.js +1 -1
  161. package/dist/esm/kol-abbr.entry.js +1 -1
  162. package/dist/esm/kol-accordion.entry.js +1 -1
  163. package/dist/esm/kol-alert-wc.entry.js +1 -1
  164. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  165. package/dist/esm/kol-badge.entry.js +1 -1
  166. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  167. package/dist/esm/kol-button-link.entry.js +1 -1
  168. package/dist/esm/kol-button-wc.entry.js +1 -1
  169. package/dist/esm/kol-button.entry.js +1 -1
  170. package/dist/esm/kol-card.entry.js +1 -1
  171. package/dist/esm/kol-details.entry.js +1 -1
  172. package/dist/esm/kol-form.entry.js +1 -1
  173. package/dist/esm/kol-heading-wc.entry.js +1 -1
  174. package/dist/esm/kol-icon.entry.js +1 -1
  175. package/dist/esm/kol-image.entry.js +1 -1
  176. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  177. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  178. package/dist/esm/kol-input-color.entry.js +1 -1
  179. package/dist/esm/kol-input-date.entry.js +1 -1
  180. package/dist/esm/kol-input-date.entry.js.map +1 -1
  181. package/dist/esm/kol-input-email.entry.js +1 -1
  182. package/dist/esm/kol-input-email.entry.js.map +1 -1
  183. package/dist/esm/kol-input-file.entry.js +1 -1
  184. package/dist/esm/kol-input-file.entry.js.map +1 -1
  185. package/dist/esm/kol-input-number.entry.js +1 -1
  186. package/dist/esm/kol-input-number.entry.js.map +1 -1
  187. package/dist/esm/kol-input-password.entry.js +1 -1
  188. package/dist/esm/kol-input-password.entry.js.map +1 -1
  189. package/dist/esm/kol-input-radio.entry.js +1 -1
  190. package/dist/esm/kol-input-range.entry.js +1 -1
  191. package/dist/esm/kol-input-range.entry.js.map +1 -1
  192. package/dist/esm/kol-input-text.entry.js +1 -1
  193. package/dist/esm/kol-input-text.entry.js.map +1 -1
  194. package/dist/esm/kol-input.entry.js +1 -1
  195. package/dist/esm/kol-kolibri.entry.js +1 -1
  196. package/dist/esm/kol-link-button.entry.js +1 -1
  197. package/dist/esm/kol-link-group.entry.js +1 -1
  198. package/dist/esm/kol-link-wc.entry.js +1 -1
  199. package/dist/esm/kol-link.entry.js +1 -1
  200. package/dist/esm/kol-logo.entry.js +1 -1
  201. package/dist/esm/kol-modal.entry.js +1 -1
  202. package/dist/esm/kol-nav.entry.js +1 -1
  203. package/dist/esm/kol-pagination.entry.js +1 -1
  204. package/dist/esm/kol-popover-wc.entry.js +1 -1
  205. package/dist/esm/kol-progress.entry.js +1 -1
  206. package/dist/esm/kol-progress.entry.js.map +1 -1
  207. package/dist/esm/kol-quote.entry.js +1 -1
  208. package/dist/esm/kol-select.entry.js +1 -1
  209. package/dist/esm/kol-select.entry.js.map +1 -1
  210. package/dist/esm/kol-skip-nav.entry.js +1 -1
  211. package/dist/esm/kol-span-wc.entry.js +1 -1
  212. package/dist/esm/kol-spin.entry.js +1 -1
  213. package/dist/esm/kol-symbol.entry.js +1 -1
  214. package/dist/esm/kol-table.entry.js +1 -1
  215. package/dist/esm/kol-tabs.entry.js +1 -1
  216. package/dist/esm/kol-textarea.entry.js +1 -1
  217. package/dist/esm/kol-textarea.entry.js.map +1 -1
  218. package/dist/esm/kol-toast-container.entry.js +1 -1
  219. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  220. package/dist/esm/kol-tree-item-wc.entry.js +1 -1
  221. package/dist/esm/kol-tree-wc.entry.js +1 -1
  222. package/dist/esm/kol-version.entry.js +1 -1
  223. package/dist/esm/kolibri.js +1 -1
  224. package/dist/esm/loader.js +1 -1
  225. package/dist/esm/{toaster-120588aa.js → toaster-1e7f1deb.js} +1 -1
  226. package/dist/esm/{toaster-120588aa.js.map → toaster-1e7f1deb.js.map} +1 -1
  227. package/dist/esm/{toaster-daca2296.js → toaster-98560ca8.js} +1 -1
  228. package/dist/esm/{toaster-daca2296.js.map → toaster-98560ca8.js.map} +1 -1
  229. package/dist/esm/{validation-40bdb90f.js → validation-ed139130.js} +1 -1
  230. package/dist/esm/{validation-40bdb90f.js.map → validation-ed139130.js.map} +1 -1
  231. package/dist/esm/{validation-7e615a5b.js → validation-ffb20598.js} +1 -1
  232. package/dist/esm/{validation-7e615a5b.js.map → validation-ffb20598.js.map} +1 -1
  233. package/dist/kolibri/{align-floating-elements-8fb7f6b0.js → align-floating-elements-a21bf44f.js} +1 -1
  234. package/dist/kolibri/app-globals-98388dee.js +4 -0
  235. package/dist/kolibri/{app-globals-c60fa356.js.map → app-globals-98388dee.js.map} +1 -1
  236. package/dist/kolibri/{associated.controller-fa74caf7.js → associated.controller-c5369a0d.js} +1 -1
  237. package/dist/kolibri/controller-12bf050b.js +4 -0
  238. package/dist/kolibri/controller-12bf050b.js.map +1 -0
  239. package/dist/kolibri/{controller-a4e8cbd2.js → controller-19587a5f.js} +1 -1
  240. package/dist/kolibri/{controller-a64ca69a.js → controller-64de63fb.js} +1 -1
  241. package/dist/kolibri/{controller-860dc9e8.js → controller-b7d35f53.js} +1 -1
  242. package/dist/kolibri/{controller-d605890e.js → controller-c23290a9.js} +1 -1
  243. package/dist/kolibri/controller-icon-c3bf90f3.js +4 -0
  244. package/dist/kolibri/{dev.utils-e81fbe6f.js → dev.utils-6d9b92c3.js} +1 -1
  245. package/dist/kolibri/{devtools-a322f324.js → devtools-d4cd0545.js} +1 -1
  246. package/dist/kolibri/events-29e84d75.js.map +1 -1
  247. package/dist/kolibri/{i18n-3bac791b.js → i18n-1e6a70ea.js} +1 -1
  248. package/dist/kolibri/{index-0489af72.js → index-fbc0a5be.js} +1 -1
  249. package/dist/kolibri/{index-0489af72.js.map → index-fbc0a5be.js.map} +1 -1
  250. package/dist/{esm/index-34632da4.js → kolibri/index-fff5a4e2.js} +1 -1
  251. package/dist/kolibri/index.esm.js +1 -1
  252. package/dist/kolibri/kol-abbr.entry.js +1 -1
  253. package/dist/kolibri/kol-accordion.entry.js +1 -1
  254. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  255. package/dist/kolibri/kol-alert-wc.entry.js.map +1 -1
  256. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  257. package/dist/kolibri/kol-badge.entry.js +1 -1
  258. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  259. package/dist/kolibri/kol-button-link.entry.js +1 -1
  260. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  261. package/dist/kolibri/kol-button.entry.js +1 -1
  262. package/dist/kolibri/kol-card.entry.js +1 -1
  263. package/dist/kolibri/kol-details.entry.js +1 -1
  264. package/dist/kolibri/kol-form.entry.js +1 -1
  265. package/dist/kolibri/kol-heading-wc.entry.js +1 -1
  266. package/dist/kolibri/kol-icon.entry.js +1 -1
  267. package/dist/kolibri/kol-image.entry.js +1 -1
  268. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  269. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  270. package/dist/kolibri/kol-input-color.entry.js +1 -1
  271. package/dist/kolibri/kol-input-date.entry.js +1 -1
  272. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  273. package/dist/kolibri/kol-input-email.entry.js +1 -1
  274. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  275. package/dist/kolibri/kol-input-file.entry.js +1 -1
  276. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  277. package/dist/kolibri/kol-input-number.entry.js +1 -1
  278. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  279. package/dist/kolibri/kol-input-password.entry.js +1 -1
  280. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  281. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  282. package/dist/kolibri/kol-input-range.entry.js +1 -1
  283. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  284. package/dist/kolibri/kol-input-text.entry.js +1 -1
  285. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  286. package/dist/kolibri/kol-input.entry.js +1 -1
  287. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  288. package/dist/kolibri/kol-kolibri.entry.js.map +1 -1
  289. package/dist/kolibri/kol-link-button.entry.js +1 -1
  290. package/dist/kolibri/kol-link-group.entry.js +1 -1
  291. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  292. package/dist/kolibri/kol-link.entry.js +1 -1
  293. package/dist/kolibri/kol-logo.entry.js +1 -1
  294. package/dist/kolibri/kol-modal.entry.js +1 -1
  295. package/dist/kolibri/kol-nav.entry.js +1 -1
  296. package/dist/kolibri/kol-pagination.entry.js +1 -1
  297. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  298. package/dist/kolibri/kol-progress.entry.js +1 -1
  299. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  300. package/dist/kolibri/kol-quote.entry.js +1 -1
  301. package/dist/kolibri/kol-select.entry.js +1 -1
  302. package/dist/kolibri/kol-select.entry.js.map +1 -1
  303. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  304. package/dist/kolibri/kol-span-wc.entry.js +1 -1
  305. package/dist/kolibri/kol-spin.entry.js +1 -1
  306. package/dist/kolibri/kol-symbol.entry.js +1 -1
  307. package/dist/kolibri/kol-table.entry.js +1 -1
  308. package/dist/kolibri/kol-tabs.entry.js +1 -1
  309. package/dist/kolibri/kol-textarea.entry.js +1 -1
  310. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  311. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  312. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  313. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  314. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  315. package/dist/kolibri/kol-version.entry.js +1 -1
  316. package/dist/kolibri/kolibri.esm.js +1 -1
  317. package/dist/kolibri/toaster-1e7f1deb.js +4 -0
  318. package/dist/kolibri/{toaster-daca2296.js → toaster-98560ca8.js} +1 -1
  319. package/dist/kolibri/{validation-40bdb90f.js → validation-ed139130.js} +1 -1
  320. package/dist/kolibri/{validation-7e615a5b.js → validation-ffb20598.js} +1 -1
  321. package/dist/types/components/@deprecated/input/controller.d.ts +2 -0
  322. package/dist/types/components/button/test/html.mock.d.ts +1 -5
  323. package/dist/types/components/details/test/html.mock.d.ts +1 -3
  324. package/dist/types/components/input-email/component.d.ts +1 -0
  325. package/dist/types/components/input-file/component.d.ts +1 -0
  326. package/dist/types/components/input-password/component.d.ts +1 -0
  327. package/dist/types/components/input-text/component.d.ts +2 -2
  328. package/dist/types/utils/events.d.ts +1 -1
  329. package/doc/input-checkbox.md +1 -1
  330. package/doc/input-color.md +1 -1
  331. package/doc/input-date.md +1 -1
  332. package/doc/input-email.md +1 -1
  333. package/doc/input-file.md +1 -1
  334. package/doc/input-number.md +1 -1
  335. package/doc/input-password.md +1 -1
  336. package/doc/input-radio.md +1 -1
  337. package/doc/input-range.md +1 -1
  338. package/doc/input-text.md +1 -1
  339. package/doc/progress.md +7 -7
  340. package/doc/select.md +1 -1
  341. package/doc/table.md +2 -7
  342. package/doc/textarea.md +1 -1
  343. package/doc/toaster.md +2 -2
  344. package/package.json +1 -1
  345. package/vscode-custom-data.json +0 -6
  346. package/dist/cjs/controller-1332def9.js +0 -4
  347. package/dist/cjs/controller-1332def9.js.map +0 -1
  348. package/dist/cjs/controller-77b3e421.js +0 -4
  349. package/dist/cjs/validation-fd93c1f5.js +0 -4
  350. package/dist/esm/controller-19ccfc94.js +0 -4
  351. package/dist/esm/controller-19ccfc94.js.map +0 -1
  352. package/dist/kolibri/app-globals-c60fa356.js +0 -4
  353. package/dist/kolibri/controller-19ccfc94.js +0 -4
  354. package/dist/kolibri/controller-19ccfc94.js.map +0 -1
  355. package/dist/kolibri/controller-icon-421820a1.js +0 -4
  356. package/dist/kolibri/toaster-120588aa.js +0 -4
  357. /package/dist/kolibri/{align-floating-elements-8fb7f6b0.js.map → align-floating-elements-a21bf44f.js.map} +0 -0
  358. /package/dist/kolibri/{associated.controller-fa74caf7.js.map → associated.controller-c5369a0d.js.map} +0 -0
  359. /package/dist/kolibri/{controller-a4e8cbd2.js.map → controller-19587a5f.js.map} +0 -0
  360. /package/dist/kolibri/{controller-a64ca69a.js.map → controller-64de63fb.js.map} +0 -0
  361. /package/dist/kolibri/{controller-860dc9e8.js.map → controller-b7d35f53.js.map} +0 -0
  362. /package/dist/kolibri/{controller-d605890e.js.map → controller-c23290a9.js.map} +0 -0
  363. /package/dist/kolibri/{controller-icon-421820a1.js.map → controller-icon-c3bf90f3.js.map} +0 -0
  364. /package/dist/kolibri/{dev.utils-e81fbe6f.js.map → dev.utils-6d9b92c3.js.map} +0 -0
  365. /package/dist/kolibri/{devtools-a322f324.js.map → devtools-d4cd0545.js.map} +0 -0
  366. /package/dist/kolibri/{i18n-3bac791b.js.map → i18n-1e6a70ea.js.map} +0 -0
  367. /package/dist/kolibri/{index-34632da4.js.map → index-fff5a4e2.js.map} +0 -0
  368. /package/dist/kolibri/{toaster-120588aa.js.map → toaster-1e7f1deb.js.map} +0 -0
  369. /package/dist/kolibri/{toaster-daca2296.js.map → toaster-98560ca8.js.map} +0 -0
  370. /package/dist/kolibri/{validation-40bdb90f.js.map → validation-ed139130.js.map} +0 -0
  371. /package/dist/kolibri/{validation-7e615a5b.js.map → validation-ffb20598.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-0489af72.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,c=Math.max,i=Math.round,r=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 c(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 y(t){return"x"===t?"y":"x"}function h(t){return"y"===t?"height":"width"}function x(t){return["top","bottom"].includes(m(t))?"y":"x"}function g(t){return y(x(t))}function w(t,e,n){void 0===n&&(n=!1);const o=p(t),i=g(t),r=h(i);let l="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[r]>e.floating[r]&&(l=O(l)),[l,O(l)]}function v(t){const e=O(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 R(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 O(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){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function F(t,e,n){let{reference:o,floating:i}=t;const r=x(e),l=g(e),c=h(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 y;switch(s){case"top":y={x:f,y:o.y-i.height};break;case"bottom":y={x:f,y:o.y+o.height};break;case"right":y={x:o.x+o.width,y:u};break;case"left":y={x:o.x-i.width,y:u};break;default:y={x:o.x,y:o.y}}switch(p(e)){case"start":y[l]-=d*(n&&a?-1:1);break;case"end":y[l]+=d*(n&&a?-1:1)}return y}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={},p=0;for(let n=0;n<c.length;n++){const{name:r,fn:h}=c[n],{x:g,y:y,data:x,reset:w}=await h({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],...x}},w&&p<=50&&(p++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(a=!0===w.rects?await l.getElementRects({reference:t,floating:e,strategy:i}):w.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:p=0}=d(e,t),h=S(p),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})),x="floating"===u?{...l.floating,x:o,y:i}:l.reference,w=await(null==r.getOffsetParent?void 0:r.getOffsetParent(c.floating)),v=await(null==r.isElement?void 0:r.isElement(w))&&await(null==r.getScale?void 0:r.getScale(w))||{x:1,y:1},b=D(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:w,strategy:s}):x);return{top:(y.top-b.top+h.top)/v.y,bottom:(b.bottom-y.bottom+h.bottom)/v.y,left:(y.left-b.left+h.left)/v.x,right:(b.right-y.right+h.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 y=S(m),x={x:n,y:o},w=g(i),v=h(w),b=await l.getDimensions(f),R="y"===w,T=R?"top":"left",A=R?"bottom":"right",L=R?"clientHeight":"clientWidth",E=r.reference[v]+r.reference[w]-x[w]-r.floating[v],D=x[w]-r.reference[w],O=await(null==l.getOffsetParent?void 0:l.getOffsetParent(f));let C=O?O[L]:0;C&&await(null==l.isElement?void 0:l.isElement(O))||(C=c.floating[L]||r.floating[v]);const H=E/2-D/2,P=C/2-b[v]/2-1,F=s(y[T],P),k=s(y[A],P),B=F,W=C-b[v]-k,_=C/2-b[v]/2+H,$=u(B,_,W),z=!a.arrow&&null!=p(i)&&_!==$&&r.reference[v]/2-(_<B?F:k)-b[v]/2<0,M=z?_<B?_-B:_-W:0;return{[w]:x[w]+M,data:{[w]:$,centerOffset:_-$-M,...z&&{alignmentOffset:M}},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,...x}=d(t,e),v=void 0!==h||g===o?C(h||null,y,g):g,b=await $(e,x),R=(null==(n=c.autoPlacement)?void 0:n.index)||0,T=v[R];if(null==T)return{};const A=w(T,l,await(null==a.isRTL?void 0:a.isRTL(f.floating)));if(s!==T)return{reset:{placement:v[0]}};const L=[b[m(T)],b[A[0]],b[A[1]]],E=[...(null==(i=c.autoPlacement)?void 0:i.overflows)||[],{placement:T,overflows:L}],D=v[R+1];if(D)return{data:{index:R+1,overflows:E},reset:{placement:D}};const O=E.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])),S=O.filter((t=>t[2].slice(0,p(t[0])?2:3).every((t=>t<=0)))),H=(null==(r=S[0])?void 0:r[0])||O[0][0];return H!==s?{data:{index:R+1,overflows:E},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:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...x}=d(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const b=m(i),T=m(c)===c,A=await(null==s.isRTL?void 0:s.isRTL(a.floating)),L=p||(T||!y?[O(c)]:v(c));p||"none"===g||L.push(...R(c,y,g,A));const E=[c,...L],D=await $(e,x),S=[];let C=(null==(o=r.flip)?void 0:o.overflows)||[];if(f&&S.push(D[b]),u){const t=w(i,l,A);S.push(D[t[0]],D[t[1]])}if(C=[...C,{placement:i,overflows:S}],!S.every((t=>t<=0))){var H,P;const t=((null==(H=r.flip)?void 0:H.index)||0)+1,e=E[t];if(e)return{data:{index:t,overflows:C},reset:{placement:e}};let n=null==(P=C.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:P.placement;if(!n)switch(h){case"bestFit":{var F;const t=null==(F=C.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:F[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 L(t){const e=s(...t.map((t=>t.left))),n=s(...t.map((t=>t.top)));return{x:e,y:n,width:c(...t.map((t=>t.right)))-e,height:c(...t.map((t=>t.bottom)))-n}}function j(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(L(t))))}const I=function(t){return void 0===t&&(t={}),{name:"inline",options:t,async fn(e){const{placement:n,elements:o,rects:i,platform:r,strategy:l}=e,{padding:a=2,x:f,y:u}=d(t,e),p=Array.from(await(null==r.getClientRects?void 0:r.getClientRects(o.reference))||[]),h=j(p),g=D(L(p)),y=S(a);const w=await r.getElementRects({reference:{getBoundingClientRect:function(){if(2===h.length&&h[0].left>h[1].right&&null!=f&&null!=u)return h.find((t=>f>t.left-y.left&&f<t.right+y.right&&u>t.top-y.top&&u<t.bottom+y.bottom))||g;if(h.length>=2){if("y"===x(n)){const t=h[0],e=h[h.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=c(...h.map((t=>t.right))),o=s(...h.map((t=>t.left))),i=h.filter((n=>t?n.left===o:n.right===e)),r=i[0].top,l=i[i.length-1].bottom;return{top:r,bottom:l,left:o,right:e,width:e-o,height:l-r,x:o,y:r}}return g}},floating:o.floating,strategy:l});return i.reference.x!==w.reference.x||i.reference.y!==w.reference.y||i.reference.width!==w.reference.width||i.reference.height!==w.reference.height?{reset:{rects:w}}:{}}}};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"===x(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:0,crossAxis:0,alignmentAxis:null,...u};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=x(m(i)),h=y(p);let g=a[h],w=a[p];if(r){const t="y"===h?"bottom":"right";g=u(g+f["y"===h?"top":"left"],g,g-f[t])}if(l){const t="y"===p?"bottom":"right";w=u(w+f["y"===p?"top":"left"],w,w-f[t])}const v=c.fn({...e,[h]:g,[p]:w});return{...v,data:{x:v.x-n,y:v.y-o}}}}},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=x(i),p=y(u);let h=f[p],g=f[u];const w=d(c,e),v="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};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;h<e?h=e:h>n&&(h=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);g<n?g=n:g>o&&(g=o)}return{[p]:h,[u]:g}}}},X=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:i,elements:r}=e,{apply:l=(()=>{}),...a}=d(t,e),f=await $(e,a),u=m(n),h=p(n),g="y"===x(n),{width:y,height:w}=o.floating;let v,b;"top"===u||"bottom"===u?(v=u,b=h===(await(null==i.isRTL?void 0:i.isRTL(r.floating))?"start":"end")?"left":"right"):(b=u,v="end"===h?"top":"bottom");const R=w-f[v],T=y-f[b],A=!e.middlewareData.shift;let L=R,E=T;if(g){const t=y-f.left-f.right;E=h||A?s(T,t):t}else{const t=w-f.top-f.bottom;L=h||A?s(R,t):t}if(A&&!h){const t=c(f.left,0),e=c(f.right,0),n=c(f.top,0),o=c(f.bottom,0);g?E=y-2*(0!==t||0!==e?t+e:c(f.left,f.right)):L=w-2*(0!==n||0!==o?n+o:c(f.top,f.bottom))}await l({...e,availableWidth:E,availableHeight:L});const D=await i.getDimensions(r.floating);return y!==D.width||w!==D.height?{reset:{rects:!0}}:{}}}};function Y(t){return J(t)?(t.nodeName||"").toLowerCase():"#document"}function _(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function G(t){var e;return null==(e=(J(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function J(t){return t instanceof Node||t instanceof _(t).Node}function K(t){return t instanceof Element||t instanceof _(t).Element}function Q(t){return t instanceof HTMLElement||t instanceof _(t).HTMLElement}function U(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof _(t).ShadowRoot)}function Z(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 tt(t){return["table","td","th"].includes(Y(t))}function nt(t){const e=ot(),n=ct(t);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function et(t){let e=rt(t);for(;Q(e)&&!st(e);){if(nt(e))return e;e=rt(e)}return null}function ot(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function st(t){return["html","body","#document"].includes(Y(t))}function ct(t){return _(t).getComputedStyle(t)}function it(t){return K(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function rt(t){if("html"===Y(t))return t;const e=t.assignedSlot||t.parentNode||U(t)&&t.host||G(t);return U(e)?e.host:e}function lt(t){const e=rt(t);return st(e)?t.ownerDocument?t.ownerDocument.body:t.body:Q(e)&&Z(e)?e:lt(e)}function at(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=lt(t),r=i===(null==(o=t.ownerDocument)?void 0:o.body),l=_(i);return r?e.concat(l,l.visualViewport||[],Z(i)?i:[],l.frameElement&&n?at(l.frameElement):[]):e.concat(i,at(i,[],n))}function ft(t){const e=ct(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=Q(t),l=r?t.offsetWidth:n,c=r?t.offsetHeight:o,s=i(n)!==l||i(o)!==c;return s&&(n=l,o=c),{width:n,height:o,$:s}}function ut(t){return K(t)?t:t.contextElement}function dt(t){const e=ut(t);if(!Q(e))return l(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:c}=ft(e);let s=(c?i(n.width):n.width)/o,a=(c?i(n.height):n.height)/r;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const mt=l(0);function pt(t){const e=_(t);return ot()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:mt}function yt(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==_(t))&&e}function ht(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),r=ut(t);let c=l(1);e&&(o?K(o)&&(c=dt(o)):c=dt(t));const s=yt(r,n,o)?pt(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=_(r),e=o&&K(o)?_(o):o;let n=t,i=n.frameElement;for(;i&&o&&e!==n;){const t=dt(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=_(i),i=n.frameElement}}return D({width:u,height:d,x:a,y:f})}const xt=[":popover-open",":modal"];function gt(t){return xt.some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function wt(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r="fixed"===i,c=G(o),s=!!e&&gt(e.floating);if(o===c||s&&r)return n;let a={scrollLeft:0,scrollTop:0},f=l(1);const u=l(0),d=Q(o);if((d||!d&&!r)&&(("body"!==Y(o)||Z(c))&&(a=it(o)),Q(o))){const t=ht(o);f=dt(o),u.x=t.x+o.clientLeft,u.y=t.y+o.clientTop}return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-a.scrollLeft*f.x+u.x,y:n.y*f.y-a.scrollTop*f.y+u.y}}function vt(t){return Array.from(t.getClientRects())}function bt(t){return ht(G(t)).left+it(t).scrollLeft}function At(t){const e=G(t),n=it(t),o=t.ownerDocument.body,i=c(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=c(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+bt(t);const s=-n.scrollTop;return"rtl"===ct(o).direction&&(l+=c(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:l,y:s}}function Rt(t,e){const n=_(t),o=G(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=ot();(!t||t&&"fixed"===e)&&(c=i.offsetLeft,s=i.offsetTop)}return{width:r,height:l,x:c,y:s}}function Ot(t,e){const n=ht(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=Q(t)?dt(t):l(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:i*r.x,y:o*r.y}}function kt(t,e,n){let o;if("viewport"===e)o=Rt(t,n);else if("document"===e)o=At(G(t));else if(K(e))o=Ot(e,n);else{const n=pt(t);o={...e,x:e.x-n.x,y:e.y-n.y}}return D(o)}function St(t,e){const n=rt(t);return!(n===e||!K(n)||st(n))&&("fixed"===ct(n).position||St(n,e))}function Dt(t,e){const n=e.get(t);if(n)return n;let o=at(t,[],!1).filter((t=>K(t)&&"body"!==Y(t))),i=null;const r="fixed"===ct(t).position;let l=r?rt(t):t;for(;K(l)&&!st(l);){const e=ct(l),n=nt(l);n||"fixed"!==e.position||(i=null);(r?!n&&!i:!n&&"static"===e.position&&!!i&&["absolute","fixed"].includes(i.position)||Z(l)&&!n&&St(t,l))?o=o.filter((t=>t!==l)):i=e,l=rt(l)}return e.set(t,o),o}function Ft(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[..."clippingAncestors"===n?Dt(e,this._c):[].concat(n),o],l=r[0],a=r.reduce(((t,n)=>{const o=kt(e,n,i);return t.top=c(o.top,t.top),t.right=s(o.right,t.right),t.bottom=s(o.bottom,t.bottom),t.left=c(o.left,t.left),t}),kt(e,l,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Pt(t){const{width:e,height:n}=ft(t);return{width:e,height:n}}function $t(t,e,n){const o=Q(e),i=G(e),r="fixed"===n,c=ht(t,!0,r,e);let s={scrollLeft:0,scrollTop:0};const a=l(0);if(o||!o&&!r)if(("body"!==Y(e)||Z(i))&&(s=it(e)),o){const t=ht(e,!0,r,e);a.x=t.x+e.clientLeft,a.y=t.y+e.clientTop}else i&&(a.x=bt(i));return{x:c.left+s.scrollLeft-a.x,y:c.top+s.scrollTop-a.y,width:c.width,height:c.height}}function Tt(t,e){return Q(t)&&"fixed"!==ct(t).position?e?e(t):t.offsetParent:null}function Ct(t,e){const n=_(t);if(!Q(t)||gt(t))return n;let o=Tt(t,e);for(;o&&tt(o)&&"static"===ct(o).position;)o=Tt(o,e);return o&&("html"===Y(o)||"body"===Y(o)&&"static"===ct(o).position&&!nt(o))?n:o||et(t)||n}const Et=async function(t){const e=this.getOffsetParent||Ct,n=this.getDimensions;return{reference:$t(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,...await n(t.floating)}}};function zt(t){return"rtl"===ct(t).direction}const Bt={convertOffsetParentRelativeRectToViewportRelativeRect:wt,getDocumentElement:G,getClippingRect:Ft,getOffsetParent:Ct,getElementRects:Et,getClientRects:vt,getDimensions:Pt,getScale:dt,isElement:K,isRTL:zt};function Ht(t,e){let n,o=null;const i=G(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{left:d,top:m,width:p,height:h}=t.getBoundingClientRect();if(f||e(),!p||!h)return;const g={rootMargin:-r(m)+"px "+-r(i.clientWidth-(d+p))+"px "+-r(i.clientHeight-(m+h))+"px "+-r(d)+"px",threshold:c(0,s(1,u))||1};let y=!0;function x(t){const e=t[0].intersectionRatio;if(e!==u){if(!y)return a();e?a(!1,e):n=setTimeout((()=>{a(!1,1e-7)}),100)}y=!1}try{o=new IntersectionObserver(x,{...g,root:i.ownerDocument})}catch(t){o=new IntersectionObserver(x,g)}o.observe(t)}(!0),l}function Mt(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=ut(t),f=i||r?[...a?at(a):[],...at(e)]:[];f.forEach((t=>{i&&t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n)}));const u=a&&c?Ht(a,n):null;let d,m=-1,p=null;l&&(p=new ResizeObserver((t=>{let[o]=t;o&&o.target===a&&p&&(p.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var t;null==(t=p)||t.observe(e)}))),n()})),a&&!s&&p.observe(a),p.observe(e));let h=s?ht(t):null;return s&&function e(){const o=ht(t);!h||o.x===h.x&&o.y===h.y&&o.width===h.width&&o.height===h.height||n();h=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=p)||t.disconnect(),p=null,s&&cancelAnimationFrame(d)}}const Lt=W,jt=z,It=T,Nt=(t,e,n)=>{const o=new Map,i={platform:Bt,...n},r={...i.platform,_c:o};return P(t,e,{...i,platform:r})},qt=async({floatingElement:e,referenceElement:n,arrowElement:o,align:i="top"})=>{var r,l,c;if("test"!==t){const t=[q(null!==(r=null==o?void 0:o.offsetHeight)&&void 0!==r?r:10),jt(),Lt()];o&&t.push(It({element:o}));const{x:s,y:a,middlewareData:f,placement:u}=await Nt(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{qt as a,Mt as b};
4
+ import{p as t}from"./index-fbc0a5be.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,c=Math.max,i=Math.round,r=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 c(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 y(t){return"x"===t?"y":"x"}function h(t){return"y"===t?"height":"width"}function x(t){return["top","bottom"].includes(m(t))?"y":"x"}function g(t){return y(x(t))}function w(t,e,n){void 0===n&&(n=!1);const o=p(t),i=g(t),r=h(i);let l="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[r]>e.floating[r]&&(l=O(l)),[l,O(l)]}function v(t){const e=O(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 R(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 O(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){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function F(t,e,n){let{reference:o,floating:i}=t;const r=x(e),l=g(e),c=h(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 y;switch(s){case"top":y={x:f,y:o.y-i.height};break;case"bottom":y={x:f,y:o.y+o.height};break;case"right":y={x:o.x+o.width,y:u};break;case"left":y={x:o.x-i.width,y:u};break;default:y={x:o.x,y:o.y}}switch(p(e)){case"start":y[l]-=d*(n&&a?-1:1);break;case"end":y[l]+=d*(n&&a?-1:1)}return y}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={},p=0;for(let n=0;n<c.length;n++){const{name:r,fn:h}=c[n],{x:g,y:y,data:x,reset:w}=await h({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],...x}},w&&p<=50&&(p++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(a=!0===w.rects?await l.getElementRects({reference:t,floating:e,strategy:i}):w.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:p=0}=d(e,t),h=S(p),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})),x="floating"===u?{...l.floating,x:o,y:i}:l.reference,w=await(null==r.getOffsetParent?void 0:r.getOffsetParent(c.floating)),v=await(null==r.isElement?void 0:r.isElement(w))&&await(null==r.getScale?void 0:r.getScale(w))||{x:1,y:1},b=D(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:w,strategy:s}):x);return{top:(y.top-b.top+h.top)/v.y,bottom:(b.bottom-y.bottom+h.bottom)/v.y,left:(y.left-b.left+h.left)/v.x,right:(b.right-y.right+h.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 y=S(m),x={x:n,y:o},w=g(i),v=h(w),b=await l.getDimensions(f),R="y"===w,T=R?"top":"left",A=R?"bottom":"right",L=R?"clientHeight":"clientWidth",E=r.reference[v]+r.reference[w]-x[w]-r.floating[v],D=x[w]-r.reference[w],O=await(null==l.getOffsetParent?void 0:l.getOffsetParent(f));let C=O?O[L]:0;C&&await(null==l.isElement?void 0:l.isElement(O))||(C=c.floating[L]||r.floating[v]);const H=E/2-D/2,P=C/2-b[v]/2-1,F=s(y[T],P),k=s(y[A],P),B=F,W=C-b[v]-k,_=C/2-b[v]/2+H,$=u(B,_,W),z=!a.arrow&&null!=p(i)&&_!==$&&r.reference[v]/2-(_<B?F:k)-b[v]/2<0,M=z?_<B?_-B:_-W:0;return{[w]:x[w]+M,data:{[w]:$,centerOffset:_-$-M,...z&&{alignmentOffset:M}},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,...x}=d(t,e),v=void 0!==h||g===o?C(h||null,y,g):g,b=await $(e,x),R=(null==(n=c.autoPlacement)?void 0:n.index)||0,T=v[R];if(null==T)return{};const A=w(T,l,await(null==a.isRTL?void 0:a.isRTL(f.floating)));if(s!==T)return{reset:{placement:v[0]}};const L=[b[m(T)],b[A[0]],b[A[1]]],E=[...(null==(i=c.autoPlacement)?void 0:i.overflows)||[],{placement:T,overflows:L}],D=v[R+1];if(D)return{data:{index:R+1,overflows:E},reset:{placement:D}};const O=E.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])),S=O.filter((t=>t[2].slice(0,p(t[0])?2:3).every((t=>t<=0)))),H=(null==(r=S[0])?void 0:r[0])||O[0][0];return H!==s?{data:{index:R+1,overflows:E},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:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...x}=d(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const b=m(i),T=m(c)===c,A=await(null==s.isRTL?void 0:s.isRTL(a.floating)),L=p||(T||!y?[O(c)]:v(c));p||"none"===g||L.push(...R(c,y,g,A));const E=[c,...L],D=await $(e,x),S=[];let C=(null==(o=r.flip)?void 0:o.overflows)||[];if(f&&S.push(D[b]),u){const t=w(i,l,A);S.push(D[t[0]],D[t[1]])}if(C=[...C,{placement:i,overflows:S}],!S.every((t=>t<=0))){var H,P;const t=((null==(H=r.flip)?void 0:H.index)||0)+1,e=E[t];if(e)return{data:{index:t,overflows:C},reset:{placement:e}};let n=null==(P=C.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:P.placement;if(!n)switch(h){case"bestFit":{var F;const t=null==(F=C.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:F[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 L(t){const e=s(...t.map((t=>t.left))),n=s(...t.map((t=>t.top)));return{x:e,y:n,width:c(...t.map((t=>t.right)))-e,height:c(...t.map((t=>t.bottom)))-n}}function j(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(L(t))))}const I=function(t){return void 0===t&&(t={}),{name:"inline",options:t,async fn(e){const{placement:n,elements:o,rects:i,platform:r,strategy:l}=e,{padding:a=2,x:f,y:u}=d(t,e),p=Array.from(await(null==r.getClientRects?void 0:r.getClientRects(o.reference))||[]),h=j(p),g=D(L(p)),y=S(a);const w=await r.getElementRects({reference:{getBoundingClientRect:function(){if(2===h.length&&h[0].left>h[1].right&&null!=f&&null!=u)return h.find((t=>f>t.left-y.left&&f<t.right+y.right&&u>t.top-y.top&&u<t.bottom+y.bottom))||g;if(h.length>=2){if("y"===x(n)){const t=h[0],e=h[h.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=c(...h.map((t=>t.right))),o=s(...h.map((t=>t.left))),i=h.filter((n=>t?n.left===o:n.right===e)),r=i[0].top,l=i[i.length-1].bottom;return{top:r,bottom:l,left:o,right:e,width:e-o,height:l-r,x:o,y:r}}return g}},floating:o.floating,strategy:l});return i.reference.x!==w.reference.x||i.reference.y!==w.reference.y||i.reference.width!==w.reference.width||i.reference.height!==w.reference.height?{reset:{rects:w}}:{}}}};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"===x(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:0,crossAxis:0,alignmentAxis:null,...u};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=x(m(i)),h=y(p);let g=a[h],w=a[p];if(r){const t="y"===h?"bottom":"right";g=u(g+f["y"===h?"top":"left"],g,g-f[t])}if(l){const t="y"===p?"bottom":"right";w=u(w+f["y"===p?"top":"left"],w,w-f[t])}const v=c.fn({...e,[h]:g,[p]:w});return{...v,data:{x:v.x-n,y:v.y-o}}}}},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=x(i),p=y(u);let h=f[p],g=f[u];const w=d(c,e),v="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};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;h<e?h=e:h>n&&(h=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);g<n?g=n:g>o&&(g=o)}return{[p]:h,[u]:g}}}},X=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:i,elements:r}=e,{apply:l=(()=>{}),...a}=d(t,e),f=await $(e,a),u=m(n),h=p(n),g="y"===x(n),{width:y,height:w}=o.floating;let v,b;"top"===u||"bottom"===u?(v=u,b=h===(await(null==i.isRTL?void 0:i.isRTL(r.floating))?"start":"end")?"left":"right"):(b=u,v="end"===h?"top":"bottom");const R=w-f[v],T=y-f[b],A=!e.middlewareData.shift;let L=R,E=T;if(g){const t=y-f.left-f.right;E=h||A?s(T,t):t}else{const t=w-f.top-f.bottom;L=h||A?s(R,t):t}if(A&&!h){const t=c(f.left,0),e=c(f.right,0),n=c(f.top,0),o=c(f.bottom,0);g?E=y-2*(0!==t||0!==e?t+e:c(f.left,f.right)):L=w-2*(0!==n||0!==o?n+o:c(f.top,f.bottom))}await l({...e,availableWidth:E,availableHeight:L});const D=await i.getDimensions(r.floating);return y!==D.width||w!==D.height?{reset:{rects:!0}}:{}}}};function Y(t){return J(t)?(t.nodeName||"").toLowerCase():"#document"}function _(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function G(t){var e;return null==(e=(J(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function J(t){return t instanceof Node||t instanceof _(t).Node}function K(t){return t instanceof Element||t instanceof _(t).Element}function Q(t){return t instanceof HTMLElement||t instanceof _(t).HTMLElement}function U(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof _(t).ShadowRoot)}function Z(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 tt(t){return["table","td","th"].includes(Y(t))}function nt(t){const e=ot(),n=ct(t);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function et(t){let e=rt(t);for(;Q(e)&&!st(e);){if(nt(e))return e;e=rt(e)}return null}function ot(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function st(t){return["html","body","#document"].includes(Y(t))}function ct(t){return _(t).getComputedStyle(t)}function it(t){return K(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function rt(t){if("html"===Y(t))return t;const e=t.assignedSlot||t.parentNode||U(t)&&t.host||G(t);return U(e)?e.host:e}function lt(t){const e=rt(t);return st(e)?t.ownerDocument?t.ownerDocument.body:t.body:Q(e)&&Z(e)?e:lt(e)}function at(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=lt(t),r=i===(null==(o=t.ownerDocument)?void 0:o.body),l=_(i);return r?e.concat(l,l.visualViewport||[],Z(i)?i:[],l.frameElement&&n?at(l.frameElement):[]):e.concat(i,at(i,[],n))}function ft(t){const e=ct(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=Q(t),l=r?t.offsetWidth:n,c=r?t.offsetHeight:o,s=i(n)!==l||i(o)!==c;return s&&(n=l,o=c),{width:n,height:o,$:s}}function ut(t){return K(t)?t:t.contextElement}function dt(t){const e=ut(t);if(!Q(e))return l(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:c}=ft(e);let s=(c?i(n.width):n.width)/o,a=(c?i(n.height):n.height)/r;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const mt=l(0);function pt(t){const e=_(t);return ot()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:mt}function yt(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==_(t))&&e}function ht(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),r=ut(t);let c=l(1);e&&(o?K(o)&&(c=dt(o)):c=dt(t));const s=yt(r,n,o)?pt(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=_(r),e=o&&K(o)?_(o):o;let n=t,i=n.frameElement;for(;i&&o&&e!==n;){const t=dt(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=_(i),i=n.frameElement}}return D({width:u,height:d,x:a,y:f})}const xt=[":popover-open",":modal"];function gt(t){return xt.some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function wt(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r="fixed"===i,c=G(o),s=!!e&&gt(e.floating);if(o===c||s&&r)return n;let a={scrollLeft:0,scrollTop:0},f=l(1);const u=l(0),d=Q(o);if((d||!d&&!r)&&(("body"!==Y(o)||Z(c))&&(a=it(o)),Q(o))){const t=ht(o);f=dt(o),u.x=t.x+o.clientLeft,u.y=t.y+o.clientTop}return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-a.scrollLeft*f.x+u.x,y:n.y*f.y-a.scrollTop*f.y+u.y}}function vt(t){return Array.from(t.getClientRects())}function bt(t){return ht(G(t)).left+it(t).scrollLeft}function At(t){const e=G(t),n=it(t),o=t.ownerDocument.body,i=c(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=c(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+bt(t);const s=-n.scrollTop;return"rtl"===ct(o).direction&&(l+=c(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:l,y:s}}function Rt(t,e){const n=_(t),o=G(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=ot();(!t||t&&"fixed"===e)&&(c=i.offsetLeft,s=i.offsetTop)}return{width:r,height:l,x:c,y:s}}function Ot(t,e){const n=ht(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=Q(t)?dt(t):l(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:i*r.x,y:o*r.y}}function kt(t,e,n){let o;if("viewport"===e)o=Rt(t,n);else if("document"===e)o=At(G(t));else if(K(e))o=Ot(e,n);else{const n=pt(t);o={...e,x:e.x-n.x,y:e.y-n.y}}return D(o)}function St(t,e){const n=rt(t);return!(n===e||!K(n)||st(n))&&("fixed"===ct(n).position||St(n,e))}function Dt(t,e){const n=e.get(t);if(n)return n;let o=at(t,[],!1).filter((t=>K(t)&&"body"!==Y(t))),i=null;const r="fixed"===ct(t).position;let l=r?rt(t):t;for(;K(l)&&!st(l);){const e=ct(l),n=nt(l);n||"fixed"!==e.position||(i=null);(r?!n&&!i:!n&&"static"===e.position&&!!i&&["absolute","fixed"].includes(i.position)||Z(l)&&!n&&St(t,l))?o=o.filter((t=>t!==l)):i=e,l=rt(l)}return e.set(t,o),o}function Ft(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[..."clippingAncestors"===n?Dt(e,this._c):[].concat(n),o],l=r[0],a=r.reduce(((t,n)=>{const o=kt(e,n,i);return t.top=c(o.top,t.top),t.right=s(o.right,t.right),t.bottom=s(o.bottom,t.bottom),t.left=c(o.left,t.left),t}),kt(e,l,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Pt(t){const{width:e,height:n}=ft(t);return{width:e,height:n}}function $t(t,e,n){const o=Q(e),i=G(e),r="fixed"===n,c=ht(t,!0,r,e);let s={scrollLeft:0,scrollTop:0};const a=l(0);if(o||!o&&!r)if(("body"!==Y(e)||Z(i))&&(s=it(e)),o){const t=ht(e,!0,r,e);a.x=t.x+e.clientLeft,a.y=t.y+e.clientTop}else i&&(a.x=bt(i));return{x:c.left+s.scrollLeft-a.x,y:c.top+s.scrollTop-a.y,width:c.width,height:c.height}}function Tt(t,e){return Q(t)&&"fixed"!==ct(t).position?e?e(t):t.offsetParent:null}function Ct(t,e){const n=_(t);if(!Q(t)||gt(t))return n;let o=Tt(t,e);for(;o&&tt(o)&&"static"===ct(o).position;)o=Tt(o,e);return o&&("html"===Y(o)||"body"===Y(o)&&"static"===ct(o).position&&!nt(o))?n:o||et(t)||n}const Et=async function(t){const e=this.getOffsetParent||Ct,n=this.getDimensions;return{reference:$t(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,...await n(t.floating)}}};function zt(t){return"rtl"===ct(t).direction}const Bt={convertOffsetParentRelativeRectToViewportRelativeRect:wt,getDocumentElement:G,getClippingRect:Ft,getOffsetParent:Ct,getElementRects:Et,getClientRects:vt,getDimensions:Pt,getScale:dt,isElement:K,isRTL:zt};function Ht(t,e){let n,o=null;const i=G(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{left:d,top:m,width:p,height:h}=t.getBoundingClientRect();if(f||e(),!p||!h)return;const g={rootMargin:-r(m)+"px "+-r(i.clientWidth-(d+p))+"px "+-r(i.clientHeight-(m+h))+"px "+-r(d)+"px",threshold:c(0,s(1,u))||1};let y=!0;function x(t){const e=t[0].intersectionRatio;if(e!==u){if(!y)return a();e?a(!1,e):n=setTimeout((()=>{a(!1,1e-7)}),100)}y=!1}try{o=new IntersectionObserver(x,{...g,root:i.ownerDocument})}catch(t){o=new IntersectionObserver(x,g)}o.observe(t)}(!0),l}function Mt(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=ut(t),f=i||r?[...a?at(a):[],...at(e)]:[];f.forEach((t=>{i&&t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n)}));const u=a&&c?Ht(a,n):null;let d,m=-1,p=null;l&&(p=new ResizeObserver((t=>{let[o]=t;o&&o.target===a&&p&&(p.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var t;null==(t=p)||t.observe(e)}))),n()})),a&&!s&&p.observe(a),p.observe(e));let h=s?ht(t):null;return s&&function e(){const o=ht(t);!h||o.x===h.x&&o.y===h.y&&o.width===h.width&&o.height===h.height||n();h=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=p)||t.disconnect(),p=null,s&&cancelAnimationFrame(d)}}const Lt=W,jt=z,It=T,Nt=(t,e,n)=>{const o=new Map,i={platform:Bt,...n},r={...i.platform,_c:o};return P(t,e,{...i,platform:r})},qt=async({floatingElement:e,referenceElement:n,arrowElement:o,align:i="top"})=>{var r,l,c;if("test"!==t){const t=[q(null!==(r=null==o?void 0:o.offsetHeight)&&void 0!==r?r:10),jt(),Lt()];o&&t.push(It({element:o}));const{x:s,y:a,middlewareData:f,placement:u}=await Nt(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{qt as a,Mt as b};
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{L as o,p as t,e,j as f}from"./index-fbc0a5be.js";import{a as s}from"./index-9ca46203.js";s((o=>{try{o.shadowRoot instanceof ShadowRoot&&e(o,f(o))}catch(o){}return"default"})),import("./devtools-d4cd0545.js").then((o=>{"object"==typeof o&&null!==o&&"function"==typeof o.initialize&&o.initialize()})).catch((t=>{o.error(t)})),t&&import("./index-fff5a4e2.js");const a=()=>{},i=a,n=i;export{n as g};
@@ -1 +1 @@
1
- {"version":3,"names":["setMode","elm","shadowRoot","ShadowRoot","setThemeStyle","getThemeDetails","error","import","then","devTools","initialize","catch","Log","processEnv","globalScripts","appGlobalScript"],"sources":["src/global/script.ts","@stencil/core/internal/app-globals"],"sourcesContent":["import { getThemeDetails, setThemeStyle } from 'adopted-style-sheets';\n\nimport { Log, processEnv } from '@public-ui/schema';\nimport { setMode } from '@stencil/core';\n\nsetMode((elm) => {\n\ttry {\n\t\tif (elm.shadowRoot instanceof ShadowRoot) {\n\t\t\tsetThemeStyle(elm, getThemeDetails(elm));\n\t\t}\n\t} catch (error) {\n\t\t/**\n\t\t * Try is needed for SSR.\n\t\t * - no HTMLElement is available\n\t\t * - no ShadowRoot is available\n\t\t */\n\t}\n\treturn 'default';\n});\n\nimport('./devtools')\n\t.then((devTools) => {\n\t\tif (typeof devTools === 'object' && devTools !== null && typeof devTools.initialize === 'function') {\n\t\t\tdevTools.initialize();\n\t\t}\n\t})\n\t.catch((error) => {\n\t\tLog.error(error);\n\t});\n\n/* Import scripts necessary for the development server, i.e. the /dev/*.html files. Only include in development environment. */\nif (processEnv) {\n\timport('../dev');\n}\n","import appGlobalScript from '/home/runner/work/kolibri/kolibri/packages/components/src/global/script.ts';\nexport const globalScripts = appGlobalScript;\n"],"mappings":";;;qGAKAA,GAASC,IACR,IACC,GAAIA,EAAIC,sBAAsBC,WAAY,CACzCC,EAAcH,EAAKI,EAAgBJ,G,EAEnC,MAAOK,G,CAOT,MAAO,SAAS,IAGjBC,OAAO,0BACLC,MAAMC,IACN,UAAWA,IAAa,UAAYA,IAAa,aAAeA,EAASC,aAAe,WAAY,CACnGD,EAASC,Y,KAGVC,OAAOL,IACPM,EAAIN,MAAMA,EAAM,IAIlB,GAAIO,EAAY,CACfN,OAAO,sBACR,C,yBChCY,MAACO,EAAgBC,S"}
1
+ {"version":3,"names":["setMode","elm","shadowRoot","ShadowRoot","setThemeStyle","getThemeDetails","error","import","then","devTools","initialize","catch","Log","processEnv","globalScripts","appGlobalScript"],"sources":["src/global/script.ts","@stencil/core/internal/app-globals"],"sourcesContent":["import { getThemeDetails, setThemeStyle } from 'adopted-style-sheets';\n\nimport { Log, processEnv } from '@public-ui/schema';\nimport { setMode } from '@stencil/core';\n\nsetMode((elm) => {\n\ttry {\n\t\tif (elm.shadowRoot instanceof ShadowRoot) {\n\t\t\tsetThemeStyle(elm, getThemeDetails(elm));\n\t\t}\n\t} catch (error) {\n\t\t/**\n\t\t * Try is needed for SSR.\n\t\t * - no HTMLElement is available\n\t\t * - no ShadowRoot is available\n\t\t */\n\t}\n\treturn 'default';\n});\n\nimport('./devtools')\n\t.then((devTools) => {\n\t\tif (typeof devTools === 'object' && devTools !== null && typeof devTools.initialize === 'function') {\n\t\t\tdevTools.initialize();\n\t\t}\n\t})\n\t.catch((error) => {\n\t\tLog.error(error);\n\t});\n\n/* Import scripts necessary for the development server, i.e. the /dev/*.html files. Only include in development environment. */\nif (processEnv) {\n\timport('../dev');\n}\n","import appGlobalScript from '/home/runner/work/kolibri/kolibri/packages/components/src/global/script.ts';\nexport const globalScripts = appGlobalScript;\n"],"mappings":";;;gGAKAA,GAASC,IACR,IACC,GAAIA,EAAIC,sBAAsBC,WAAY,CACzCC,EAAcH,EAAKI,EAAgBJ,G,EAEnC,MAAOK,G,CAOT,MAAO,SAAS,IAGjBC,OAAO,0BACLC,MAAMC,IACN,UAAWA,IAAa,UAAYA,IAAa,aAAeA,EAASC,aAAe,WAAY,CACnGD,EAASC,Y,KAGVC,OAAOL,IACPM,EAAIN,MAAMA,EAAM,IAIlB,GAAIO,EAAY,CACfN,OAAO,sBACR,C,yBChCY,MAACO,EAAgBC,S"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{Z as t,R as e,$ as i,a0 as s}from"./index-0489af72.js";const a=t=>"KOL-BUTTON"===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-TEXTAREA"===t;class o{constructor(s,i,o){var r,n,l;if(this.experimentalMode=t(),this.setFormAssociatedValue=t=>{var s;const i=null===(s=this.formAssociated)||void 0===s?void 0:s.getAttribute("name");null!==i&&""!==i||e(` 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=s,this.host=this.findHostWithShadowRoot(o),this.type=i,this.experimentalMode&&a(null===(r=this.host)||void 0===r?void 0:r.tagName)){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("aria-hidden","true"),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,s){if(this.experimentalMode)try{if("boolean"!=typeof(s="object"==typeof s&&null!==s?JSON.stringify(s):s)&&"number"!=typeof s&&"string"!=typeof s)throw new Error("Invalid value type: "+typeof s);null==e||e.setAttribute(t,`${s}`)}catch(s){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 i(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,s){if(s)switch(this.type){case"file":s.files=t;break;case"select":s.querySelectorAll("option").forEach((t=>{s.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",""),s.appendChild(t)}}));break;default:"string"==typeof e?(s.setAttribute("value",e),s.value=e):(s.removeAttribute("value"),s.value="")}}validateName(t){s(this.component,t,{hooks:{afterPatch:()=>{this.setAttribute("name",this.formAssociated,this.component.state._name)}}}),void 0===t&&e("Ein Name am Eingabefeldern oder Schalter ist nicht zwingend erforderlich, kann aber für die Autocomplete-Funktion und für das statische Versenden des Eingabefeldes relevant sein.")}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{o as A};
4
+ import{Z as t,R as e,$ as i,a0 as s}from"./index-fbc0a5be.js";const a=t=>"KOL-BUTTON"===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-TEXTAREA"===t;class o{constructor(s,i,o){var r,n,l;if(this.experimentalMode=t(),this.setFormAssociatedValue=t=>{var s;const i=null===(s=this.formAssociated)||void 0===s?void 0:s.getAttribute("name");null!==i&&""!==i||e(` 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=s,this.host=this.findHostWithShadowRoot(o),this.type=i,this.experimentalMode&&a(null===(r=this.host)||void 0===r?void 0:r.tagName)){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("aria-hidden","true"),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,s){if(this.experimentalMode)try{if("boolean"!=typeof(s="object"==typeof s&&null!==s?JSON.stringify(s):s)&&"number"!=typeof s&&"string"!=typeof s)throw new Error("Invalid value type: "+typeof s);null==e||e.setAttribute(t,`${s}`)}catch(s){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 i(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,s){if(s)switch(this.type){case"file":s.files=t;break;case"select":s.querySelectorAll("option").forEach((t=>{s.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",""),s.appendChild(t)}}));break;default:"string"==typeof e?(s.setAttribute("value",e),s.value=e):(s.removeAttribute("value"),s.value="")}}validateName(t){s(this.component,t,{hooks:{afterPatch:()=>{this.setAttribute("name",this.formAssociated,this.component.state._name)}}}),void 0===t&&e("Ein Name am Eingabefeldern oder Schalter ist nicht zwingend erforderlich, kann aber für die Autocomplete-Funktion und für das statische Versenden des Eingabefeldes relevant sein.")}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{o as A};
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{z as t,J as i,A as s,M as e,N as h,O as o,P as a,Q as n,R as r,S as d,T as l,k as c,q as u,r as f,U as v}from"./index-fbc0a5be.js";import{s as p,t as y}from"./events-29e84d75.js";import{A as b}from"./associated.controller-c5369a0d.js";const g=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 m extends b{constructor(t,o,e){super(t,o,e),this.component=t}validateAlert(o){t(this.component,"_alert",o)}validateTouched(t){i(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateAlert(this.component._alert),this.validateTouched(this.component._touched)}}class k extends m{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){s(this.component,"_accessKey",t)}validateAdjustHeight(t){e(this.component,t)}validateDisabled(o){t(this.component,"_disabled",o),!0===o&&h()}validateError(t){const o=t?{_description:t,_type:"error"}:void 0;this.validateMsg(o)}validateHideError(t){o(this.component,t,{hooks:{afterPatch:()=>{this.component.state._hideError&&n("Property hide-error for inputs: Only use when the error message is shown outside of the input component.")}}})}validateHideLabel(t){a(this.component,t,{hooks:{afterPatch:()=>{this.component.state._hideLabel&&n("Property hide-label for inputs: Only use for exceptions like search inputs that are clearly identifiable by their context.")}}})}validateHint(t){s(this.component,"_hint",t)}validateId(t){s(this.component,"_id",t,{hooks:{afterPatch:()=>{this.setAttribute("id",this.formAssociated,this.component.state._id)}},minLength:1}),""!==t&&void 0!==t||r("Eine eindeutige ID an den Eingabefeldern ist nicht zwingend erforderlich, könnte aber für die E2E-Tests relevant sein.")}validateLabel(t){d(this.component,t,{required:!0})}validateMsg(t){l(this.component,t)}validateOn(t){"object"==typeof t&&c(this.component,"_on",t)}validateSmartButton(t){u(t,(()=>{try{t=f(t)}catch(t){}c(this.component,"_smartButton",t)}))}validateTabIndex(t){v(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateAccessKey(this.component._accessKey),this.validateAdjustHeight(this.component._adjustHeight),this.validateError(this.component._error),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.validateSmartButton(this.component._smartButton),this.validateOn(this.component._on),this.validateTabIndex(this.component._tabIndex)}onBlur(t){var o;this.component._alert=!0,this.component._touched=!0,p(t),y("blur",this.host),"function"==typeof(null===(o=this.component._on)||void 0===o?void 0:o.onBlur)&&this.component._on.onBlur(t)}onChange(t){var o;const e=t.target.value;y("change",this.host,e),"function"==typeof(null===(o=this.component._on)||void 0===o?void 0:o.onChange)&&this.component._on.onChange(t,e),this.valueChangeListeners.forEach((t=>t(e)))}onInput(t,o=!0){var e;const n=t.target.value;p(t),y("input",this.host),o&&this.setFormAssociatedValue(n),"function"==typeof(null===(e=this.component._on)||void 0===e?void 0:e.onInput)&&this.component._on.onInput(t)}onClick(t){var o;p(t),y("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;this.component._alert=!0,p(t),y("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{k as I,g};
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getRenderStates","state","isMessageValidError","Boolean","_a","_msg","_type","_description","_b","length","hasError","_touched","hasHint","_hint","ariaDescribedBy","push","_id","ControlledInputController","AssociatedInputController","constructor","component","name","host","super","this","validateAlert","value","watchBoolean","validateTouched","componentWillLoad","_alert","InputController","valueChangeListeners","onFacade","onBlur","bind","onChange","onClick","onFocus","onInput","validateAccessKey","watchString","validateAdjustHeight","validateDisabled","a11yHintDisabled","validateError","message","undefined","validateMsg","validateHideError","hooks","afterPatch","_hideError","a11yHint","validateHideLabel","_hideLabel","validateHint","validateId","setAttribute","formAssociated","minLength","devHint","validateLabel","validateLabelWithExpertSlot","required","validateOn","setState","validateSmartButton","objectObjectHandler","parseJson","e","validateTabIndex","_accessKey","_adjustHeight","_error","_disabled","_label","_smartButton","_on","_tabIndex","event","stopPropagation","tryToDispatchKoliBriEvent","target","forEach","listener","shouldSetFormAssociatedValue","setFormAssociatedValue","addValueChangeListener"],"sources":["src/components/input/controller.ts","src/components/input-adapter-leanup/controller.ts","src/components/@deprecated/input/controller.ts"],"sourcesContent":["import type { MsgPropType, TouchedPropType } from '@public-ui/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 '@public-ui/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 { AdjustHeightPropType, ButtonProps, HideErrorPropType, InputTypeOnDefault, LabelWithExpertSlotPropType, MsgPropType } from '@public-ui/schema';\nimport {\n\ta11yHint,\n\ta11yHintDisabled,\n\tdevHint,\n\tobjectObjectHandler,\n\tparseJson,\n\tsetState,\n\tvalidateAdjustHeight,\n\tvalidateHideError,\n\tvalidateHideLabel,\n\tvalidateLabelWithExpertSlot,\n\tvalidateMsg,\n\tvalidateTabIndex,\n\twatchBoolean,\n\twatchString,\n} from '@public-ui/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';\n\ntype ValueChangeListener = (value: string) => 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?: string): void {\n\t\twatchString(this.component, '_accessKey', value);\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\n\t/**\n\t * @deprecated\n\t */\n\tpublic validateError(value?: string): void {\n\t\tconst message: MsgPropType | undefined = value\n\t\t\t? {\n\t\t\t\t\t_description: value,\n\t\t\t\t\t_type: 'error',\n\t\t\t\t}\n\t\t\t: undefined;\n\t\tthis.validateMsg(message);\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, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: () => {\n\t\t\t\t\tthis.setAttribute('id', this.formAssociated, this.component.state._id as string);\n\t\t\t\t},\n\t\t\t},\n\t\t\tminLength: 1,\n\t\t});\n\t\tif (value === '' || typeof value === 'undefined') {\n\t\t\tdevHint(`Eine eindeutige ID an den Eingabefeldern ist nicht zwingend erforderlich, könnte aber für die E2E-Tests relevant sein.`);\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?: 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 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\tthis.validateMsg(this.component._msg);\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.validateSmartButton(this.component._smartButton);\n\t\tthis.validateOn(this.component._on);\n\t\tthis.validateTabIndex(this.component._tabIndex);\n\t}\n\n\tprotected onBlur(event: Event): void {\n\t\tthis.component._alert = true;\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\tprotected onChange(event: Event): void {\n\t\tconst 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\tprotected onInput(event: Event, shouldSetFormAssociatedValue = true): void {\n\t\tconst value = (event.target as HTMLInputElement).value;\n\n\t\t// Event handling\n\t\tstopPropagation(event);\n\t\ttryToDispatchKoliBriEvent('input', this.host);\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);\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\tthis.component._alert = true;\n\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":";;;wPASaA,EAAmBC,I,QAU/B,MAAMC,EAAsBC,UAAQC,EAAAH,EAAMI,QAAI,MAAAD,SAAA,SAAAA,EAAEE,SAAU,SAAWL,EAAMI,KAAKE,gBAAgBC,EAAAP,EAAMI,KAAKE,gBAAY,MAAAC,SAAA,SAAAA,EAAEC,QAAS,GAClI,MAAMC,EAAWR,GAAuBD,EAAMU,WAAa,KAC3D,MAAMC,SAAiBX,EAAMY,QAAU,UAAYZ,EAAMY,MAAMJ,OAAS,EAExE,MAAMK,EAA4B,GAClC,GAAIJ,IAAa,KAAM,CACtBI,EAAgBC,KAAK,GAAGd,EAAMe,Y,CAE/B,GAAIJ,IAAY,KAAM,CACrBE,EAAgBC,KAAK,GAAGd,EAAMe,W,CAE/B,MAAO,CAAEN,WAAUE,UAASE,kBAAiB,E,MCvBjCG,UAAkCC,EAG9C,WAAAC,CAAmBC,EAA8CC,EAAcC,GAC9EC,MAAMH,EAAWC,EAAMC,GACvBE,KAAKJ,UAAYA,C,CAGX,aAAAK,CAAcC,GACpBC,EAAaH,KAAKJ,UAAW,SAAUM,E,CAGjC,eAAAE,CAAgBF,GACtBE,EAAgBJ,KAAKJ,UAAWM,E,CAG1B,iBAAAG,GACNN,MAAMM,oBACNL,KAAKC,cAAcD,KAAKJ,UAAUU,QAClCN,KAAKI,gBAAgBJ,KAAKJ,UAAUT,S,QCEzBoB,UAAwBd,EAKpC,WAAAE,CAAmBC,EAA8CC,EAAcC,GAC9EC,MAAMH,EAAWC,EAAMC,GAHPE,KAAAQ,qBAA8C,GA0N/CR,KAAAS,SAAW,CAC1BC,OAAQV,KAAKU,OAAOC,KAAKX,MACzBY,SAAUZ,KAAKY,SAASD,KAAKX,MAC7Ba,QAASb,KAAKa,QAAQF,KAAKX,MAC3Bc,QAASd,KAAKc,QAAQH,KAAKX,MAC3Be,QAASf,KAAKe,QAAQJ,KAAKX,OA3N3BA,KAAKJ,UAAYA,C,CAGX,iBAAAoB,CAAkBd,GACxBe,EAAYjB,KAAKJ,UAAW,aAAcM,E,CAGpC,oBAAAgB,CAAqBhB,GAC3BgB,EAAqBlB,KAAKJ,UAAWM,E,CAG/B,gBAAAiB,CAAiBjB,GACvBC,EAAaH,KAAKJ,UAAW,YAAaM,GAC1C,GAAIA,IAAU,KAAM,CACnBkB,G,EAOK,aAAAC,CAAcnB,GACpB,MAAMoB,EAAmCpB,EACtC,CACAnB,aAAcmB,EACdpB,MAAO,SAEPyC,UACHvB,KAAKwB,YAAYF,E,CAGX,iBAAAG,CAAkBvB,GACxBuB,EAAkBzB,KAAKJ,UAAWM,EAAO,CACxCwB,MAAO,CACNC,WAAY,KACX,GAAI3B,KAAKJ,UAAUnB,MAAMmD,WAAY,CACpCC,EAAS,2G,MAOP,iBAAAC,CAAkB5B,GACxB4B,EAAkB9B,KAAKJ,UAAWM,EAAO,CACxCwB,MAAO,CACNC,WAAY,KACX,GAAI3B,KAAKJ,UAAUnB,MAAMsD,WAAY,CACpCF,EAAS,6H,MAOP,YAAAG,CAAa9B,GACnBe,EAAYjB,KAAKJ,UAAW,QAASM,E,CAG/B,UAAA+B,CAAW/B,GACjBe,EAAYjB,KAAKJ,UAAW,MAAOM,EAAO,CACzCwB,MAAO,CACNC,WAAY,KACX3B,KAAKkC,aAAa,KAAMlC,KAAKmC,eAAgBnC,KAAKJ,UAAUnB,MAAMe,IAAc,GAGlF4C,UAAW,IAEZ,GAAIlC,IAAU,WAAaA,IAAU,YAAa,CACjDmC,EAAQ,yH,EAIH,aAAAC,CAAcpC,GACpBqC,EAA4BvC,KAAKJ,UAAWM,EAAO,CAClDsC,SAAU,M,CAIL,WAAAhB,CAAYtB,GAClBsB,EAAYxB,KAAKJ,UAAWM,E,CAGtB,UAAAuC,CAAWvC,GACjB,UAAWA,IAAU,SAAU,CAC9BwC,EAAS1C,KAAKJ,UAAW,MAAOM,E,EAI3B,mBAAAyC,CAAoBzC,GAC1B0C,EAAoB1C,GAAO,KAC1B,IACCA,EAAQ2C,EAAuB3C,E,CAE9B,MAAO4C,G,CAGTJ,EAAS1C,KAAKJ,UAAW,eAAgBM,EAAM,G,CAI1C,gBAAA6C,CAAiB7C,GACvB6C,EAAiB/C,KAAKJ,UAAWM,E,CAG3B,iBAAAG,GACNN,MAAMM,oBACNL,KAAKgB,kBAAkBhB,KAAKJ,UAAUoD,YACtChD,KAAKkB,qBAAqBlB,KAAKJ,UAAUqD,eACzCjD,KAAKqB,cAAcrB,KAAKJ,UAAUsD,QAClClD,KAAKwB,YAAYxB,KAAKJ,UAAUf,MAChCmB,KAAKmB,iBAAiBnB,KAAKJ,UAAUuD,WACrCnD,KAAKyB,kBAAkBzB,KAAKJ,UAAUgC,YACtC5B,KAAK8B,kBAAkB9B,KAAKJ,UAAUmC,YACtC/B,KAAKgC,aAAahC,KAAKJ,UAAUP,OACjCW,KAAKiC,WAAWjC,KAAKJ,UAAUJ,KAC/BQ,KAAKsC,cAActC,KAAKJ,UAAUwD,QAClCpD,KAAK2C,oBAAoB3C,KAAKJ,UAAUyD,cACxCrD,KAAKyC,WAAWzC,KAAKJ,UAAU0D,KAC/BtD,KAAK+C,iBAAiB/C,KAAKJ,UAAU2D,U,CAG5B,MAAA7C,CAAO8C,G,MAChBxD,KAAKJ,UAAUU,OAAS,KACxBN,KAAKJ,UAAUT,SAAW,KAG1BsE,EAAgBD,GAChBE,EAA0B,OAAQ1D,KAAKF,MAGvC,WAAWlB,EAAAoB,KAAKJ,UAAU0D,OAAG,MAAA1E,SAAA,SAAAA,EAAE8B,UAAW,WAAY,CACrDV,KAAKJ,UAAU0D,IAAI5C,OAAO8C,E,EAIlB,QAAA5C,CAAS4C,G,MAClB,MAAMtD,EAASsD,EAAMG,OAA4BzD,MAGjDwD,EAA0B,SAAU1D,KAAKF,KAAMI,GAG/C,WAAWtB,EAAAoB,KAAKJ,UAAU0D,OAAG,MAAA1E,SAAA,SAAAA,EAAEgC,YAAa,WAAY,CAQvDZ,KAAKJ,UAAU0D,IAAI1C,SAAS4C,EAAOtD,E,CAMpCF,KAAKQ,qBAAqBoD,SAASC,GAAaA,EAAS3D,I,CAGhD,OAAAa,CAAQyC,EAAcM,EAA+B,M,MAC9D,MAAM5D,EAASsD,EAAMG,OAA4BzD,MAGjDuD,EAAgBD,GAChBE,EAA0B,QAAS1D,KAAKF,MAGxC,GAAIgE,EAA8B,CACjC9D,KAAK+D,uBAAuB7D,E,CAI7B,WAAWtB,EAAAoB,KAAKJ,UAAU0D,OAAG,MAAA1E,SAAA,SAAAA,EAAEmC,WAAY,WAAY,CACtDf,KAAKJ,UAAU0D,IAAIvC,QAAQyC,E,EAInB,OAAA3C,CAAQ2C,G,MAEjBC,EAAgBD,GAChBE,EAA0B,QAAS1D,KAAKF,MAGxC,WAAWlB,EAAAoB,KAAKJ,UAAU0D,OAAG,MAAA1E,SAAA,SAAAA,EAAEiC,WAAY,WAAY,CACtDb,KAAKJ,UAAU0D,IAAIzC,QAAQ2C,E,EAInB,OAAA1C,CAAQ0C,G,MACjBxD,KAAKJ,UAAUU,OAAS,KAGxBmD,EAAgBD,GAChBE,EAA0B,QAAS1D,KAAKF,MAGxC,WAAWlB,EAAAoB,KAAKJ,UAAU0D,OAAG,MAAA1E,SAAA,SAAAA,EAAEkC,WAAY,WAAY,CACtDd,KAAKJ,UAAU0D,IAAIxC,QAAQ0C,E,EAItB,sBAAAQ,CAAuBH,GAC7B7D,KAAKQ,qBAAqBjB,KAAKsE,E"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{w as t,aa as s,a5 as e,A as i,z as a}from"./index-0489af72.js";import{I as h}from"./controller-icon-421820a1.js";class o extends h{constructor(t,e,o){super(t,e,o),this.component=t}validateAutoComplete(e){t(this.component,"_autoComplete",(t=>"string"==typeof t&&("on"===t||"off"===t)),new Set(["on | off"]),e)}validateHasCounter(t){s(this.component,t)}validateMaxLength(t){e(this.component,"_maxLength",t,{min:0})}validatePattern(t){i(this.component,"_pattern",t)}validatePlaceholder(t){i(this.component,"_placeholder",t)}validateReadOnly(t){a(this.component,"_readOnly",t)}validateRequired(t){a(this.component,"_required",t)}validateValue(t){i(this.component,"_value",t),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)}onBlur(t){this.component.state=Object.assign(Object.assign({},this.component.state),{_placeholder:this.placeholderCache}),this.placeholderCache=void 0,super.onBlur(t)}onFocus(t){this.placeholderCache=this.component.state._placeholder,this.component.state=Object.assign(Object.assign({},this.component.state),{_placeholder:void 0}),super.onFocus(t)}}export{o as I};
4
+ import{w as t,aa as e,a5 as s,A as i,z as a}from"./index-fbc0a5be.js";import{I as h}from"./controller-icon-c3bf90f3.js";class o extends h{constructor(t,e,o){super(t,e,o),this.component=t}validateAutoComplete(e){t(this.component,"_autoComplete",(t=>"string"==typeof t&&("on"===t||"off"===t)),new Set(["on | off"]),e)}validateHasCounter(t){e(this.component,t)}validateMaxLength(t){s(this.component,"_maxLength",t,{min:0})}validatePattern(t){i(this.component,"_pattern",t)}validatePlaceholder(t){i(this.component,"_placeholder",t)}validateReadOnly(t){a(this.component,"_readOnly",t)}validateRequired(t){a(this.component,"_required",t)}validateValue(t){i(this.component,"_value",t),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)}onBlur(t){this.component.state=Object.assign(Object.assign({},this.component.state),{_placeholder:this.placeholderCache}),this.placeholderCache=void 0,super.onBlur(t)}onFocus(t){this.placeholderCache=this.component.state._placeholder,this.component.state=Object.assign(Object.assign({},this.component.state),{_placeholder:void 0}),super.onFocus(t)}}export{o as I};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{a7 as e,K as o,Z as n,R as t}from"./index-0489af72.js";const f=e=>{for(n()&&(t("↓ Search form element start."),console.log(e));e instanceof HTMLElement&&"FORM"!==e.tagName&&"KOL-FORM"!==e.tagName;){try{e=e.parentElement instanceof HTMLElement?e.parentElement:e.parentNode instanceof ShadowRoot?e.parentNode.host:null}catch(e){}n()&&(console.log(e),t("↑ Search form element finished."))}return e},i=(t={})=>{var n,a;const s=f(t.form);if(s instanceof HTMLElement){const t=new Event("reset",{bubbles:!0,cancelable:!0});if("FORM"===s.tagName)e(t,s),s.dispatchEvent(t);else if("KOL-FORM"===s.tagName){e(t,o.querySelector("form",s));const i=s;"function"==typeof(null===(n=i._on)||void 0===n?void 0:n.onReset)&&(null===(a=i._on)||void 0===a||a.onReset(t))}}},s=(a={})=>{var s,i;const l=f(a.form);if(l instanceof HTMLElement){const a=new SubmitEvent("submit",{bubbles:!0,cancelable:!0,submitter:l});if("FORM"===l.tagName)e(a,l),l.dispatchEvent(a),n()&&!1===l.noValidate&&t("If you have not focusable or hidden form fields in your form, you should enable noValidate for your form.",{force:!0}),"function"==typeof l.requestSubmit&&l.requestSubmit();else if("KOL-FORM"===l.tagName){e(a,o.querySelector("form",l));const t=l;"function"==typeof(null===(s=t._on)||void 0===s?void 0:s.onSubmit)&&(null===(i=t._on)||void 0===i||i.onSubmit(a))}}};export{i as a,s as p};
4
+ import{a7 as e,K as o,Z as n,R as t}from"./index-fbc0a5be.js";const f=e=>{for(n()&&(t("↓ Search form element start."),console.log(e));e instanceof HTMLElement&&"FORM"!==e.tagName&&"KOL-FORM"!==e.tagName;){try{e=e.parentElement instanceof HTMLElement?e.parentElement:e.parentNode instanceof ShadowRoot?e.parentNode.host:null}catch(e){}n()&&(console.log(e),t("↑ Search form element finished."))}return e},i=(t={})=>{var n,a;const s=f(t.form);if(s instanceof HTMLElement){const t=new Event("reset",{bubbles:!0,cancelable:!0});if("FORM"===s.tagName)e(t,s),s.dispatchEvent(t);else if("KOL-FORM"===s.tagName){e(t,o.querySelector("form",s));const i=s;"function"==typeof(null===(n=i._on)||void 0===n?void 0:n.onReset)&&(null===(a=i._on)||void 0===a||a.onReset(t))}}},s=(a={})=>{var s,i;const l=f(a.form);if(l instanceof HTMLElement){const a=new SubmitEvent("submit",{bubbles:!0,cancelable:!0,submitter:l});if("FORM"===l.tagName)e(a,l),l.dispatchEvent(a),n()&&!1===l.noValidate&&t("If you have not focusable or hidden form fields in your form, you should enable noValidate for your form.",{force:!0}),"function"==typeof l.requestSubmit&&l.requestSubmit();else if("KOL-FORM"===l.tagName){e(a,o.querySelector("form",l));const t=l;"function"==typeof(null===(s=t._on)||void 0===s?void 0:s.onSubmit)&&(null===(i=t._on)||void 0===i||i.onSubmit(a))}}};export{i as a,s as p};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{w as s,a9 as t,aa as a,a2 as e}from"./index-0489af72.js";import{I as i}from"./controller-a4e8cbd2.js";class o extends i{constructor(t,o,s){super(t,o,s),this.component=t}validateSuggestions(t){e(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateSuggestions(this.component._suggestions)}}class r extends o{constructor(t,o,s){super(t,o,s),this.hasError=!1,this.component=t}validateType(o){s(this.component,"_type",(o=>"string"==typeof o&&t.includes(o)),new Set([`String {${t.join(", ")}`]),o)}validateHasCounter(t){a(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateType(this.component._type),this.validateHasCounter(this.component._hasCounter)}}export{o as I,r as a};
4
+ import{w as s,a9 as t,aa as a,a2 as e}from"./index-fbc0a5be.js";import{I as i}from"./controller-19587a5f.js";class o extends i{constructor(t,o,s){super(t,o,s),this.component=t}validateSuggestions(t){e(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateSuggestions(this.component._suggestions)}}class r extends o{constructor(t,o,s){super(t,o,s),this.hasError=!1,this.component=t}validateType(o){s(this.component,"_type",(o=>"string"==typeof o&&t.includes(o)),new Set([`String {${t.join(", ")}`]),o)}validateHasCounter(t){a(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateType(this.component._type),this.validateHasCounter(this.component._hasCounter)}}export{o as I,r as a};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{V as t,w as s,W as i,X as a,Y as e,k as o}from"./index-0489af72.js";import{I as r}from"./controller-19ccfc94.js";const h=(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)?h(t,e.options,i):t.set(i,e))}))};class n extends r{constructor(t,e,o){super(t,e,o),this.component=t}validateRequired(e){t(this.component,e)}componentWillLoad(){super.componentWillLoad(),this.validateRequired(this.component._required)}}class l extends n{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.component=t}validateOrientation(t){s(this.component,"_orientation",(t=>"string"==typeof t&&i.includes(t)),new Set([`Orientation {${i.join(", ")}`]),t,{defaultValue:"vertical"})}validateOptions(t){a(this.component,t,{hooks:{afterPatch:this.afterPatchOptions}})}validateValue(t){t=e(t),t=Array.isArray(t)?t[0]:t,o(this.component,"_value",t,{afterPatch:this.afterPatchOptions})}componentWillLoad(){super.componentWillLoad(),this.validateOrientation(this.component._orientation),this.validateOptions(this.component._options),this.validateValue(this.component._value)}}export{n as I,l as a,h as f};
4
+ import{V as t,w as s,W as i,X as a,Y as e,k as o}from"./index-fbc0a5be.js";import{I as r}from"./controller-12bf050b.js";const h=(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)?h(t,e.options,i):t.set(i,e))}))};class n extends r{constructor(t,e,o){super(t,e,o),this.component=t}validateRequired(e){t(this.component,e)}componentWillLoad(){super.componentWillLoad(),this.validateRequired(this.component._required)}}class l extends n{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.component=t}validateOrientation(t){s(this.component,"_orientation",(t=>"string"==typeof t&&i.includes(t)),new Set([`Orientation {${i.join(", ")}`]),t,{defaultValue:"vertical"})}validateOptions(t){a(this.component,t,{hooks:{afterPatch:this.afterPatchOptions}})}validateValue(t){t=e(t),t=Array.isArray(t)?t[0]:t,o(this.component,"_value",t,{afterPatch:this.afterPatchOptions})}componentWillLoad(){super.componentWillLoad(),this.validateOrientation(this.component._orientation),this.validateOptions(this.component._options),this.validateValue(this.component._value)}}export{n as I,l as a,h as f};
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{q as o,r as t,w as s,F as i,a3 as e}from"./index-fbc0a5be.js";import{I as c}from"./controller-12bf050b.js";const n=(o,t)=>{const e=o;"object"==typeof e&&null!==e&&(i(e.right,1)&&(e.right={icon:e.right}),i(e.left,1)&&(e.left={icon:e.left}),t.set("_icons",e))};class r extends c{constructor(o,t,e){super(o,t,e),this.component=o}validateIcon(o){this.validateIcons(o)}validateIcons(c){o(c,(()=>{try{c=t(c)}catch(o){}s(this.component,"_icons",(o=>"object"==typeof o&&null!==o&&(i(o.left,1)||e(o.left)||i(o.right,1)||e(o.right))),new Set(["KoliBriHorizontalIcon"]),c,{hooks:{beforePatch:n},required:!0})}))}componentWillLoad(){super.componentWillLoad(),this.validateIcons(this.component._icons||this.component._icon)}}export{r as I};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{p as e,L as t,g as n,s as i,b as o,c as s,d as a}from"./index-0489af72.js";const r=()=>{const e=n().querySelector('meta[name="kolibri"]');if(e&&e.hasAttribute("content")){const t=e.getAttribute("content");"string"==typeof t&&(i(t.includes("dev-mode=true")),o(t.includes("experimental-mode=true")),s(t.includes("color-contrast-analysis=true")))}},c=()=>{let e=a().KoliBri;return void 0===e&&(e={},Object.defineProperty(a(),"KoliBri",{value:e,writable:!1})),e},u=()=>{r(),t.debug("\n,--. ,--. ,--. ,--. ,-----. ,--.\n| .' / ,---. | | `--' | |) /_ ,--.--. `--'\n| . ' | .-. | | | ,--. | .-. \\ | .--' ,--.\n| |\\ \\ | '-' | | | | | | '--' / | | | |\n`--' `--´ `---´ `--' `--' `------´ `--' `--'\n🚹 The accessible HTML-Standard | 👉 https://public-ui.github.io | 2.0.8\n\t",{forceLog:!0})},l=()=>{!0!==c().adviceShown&&(Object.defineProperty(c(),"adviceShown",{get:function(){return!0}}),t.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 f=()=>Math.floor(16777215*Math.random()).toString(16);"test"===e&&(f=()=>"nonce");export{u as i,f as n,l as r};
4
+ import{p as e,L as t,g as n,s as i,b as o,c as s,d as a}from"./index-fbc0a5be.js";const r=()=>{const e=n().querySelector('meta[name="kolibri"]');if(e&&e.hasAttribute("content")){const t=e.getAttribute("content");"string"==typeof t&&(i(t.includes("dev-mode=true")),o(t.includes("experimental-mode=true")),s(t.includes("color-contrast-analysis=true")))}},c=()=>{let e=a().KoliBri;return void 0===e&&(e={},Object.defineProperty(a(),"KoliBri",{value:e,writable:!1})),e},u=()=>{r(),t.debug("\n,--. ,--. ,--. ,--. ,-----. ,--.\n| .' / ,---. | | `--' | |) /_ ,--.--. `--'\n| . ' | .-. | | | ,--. | .-. \\ | .--' ,--.\n| |\\ \\ | '-' | | | | | | '--' / | | | |\n`--' `--´ `---´ `--' `--' `------´ `--' `--'\n🚹 The accessible HTML-Standard | 👉 https://public-ui.github.io | 2.0.8\n\t",{forceLog:!0})},l=()=>{!0!==c().adviceShown&&(Object.defineProperty(c(),"adviceShown",{get:function(){return!0}}),t.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"===e&&(b=()=>"nonce");export{u as i,b as n,l as r};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{aQ as t,g as e,L as a,Z as o,aR as s,aS as l,aT as r,as as i,aU as n,aV as f,r as c,aW as d,d as L}from"./index-0489af72.js";import{i as p,r as m}from"./dev.utils-e81fbe6f.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){a.debug(`KoliBri property ${t} is already bind.`)}}const v=(t,e)=>a.debug(`${t} ${e?"":"not "}activated`),g=()=>{if(p(),t()){m(),h("a11yColorContrast",r),h("querySelector",i),h("querySelectorAll",n),h("querySelectorColors",f),h("utils",(function(){return l})),h("parseJson",c),h("stringifyJson",d);const a=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",o()),v("Color contrast analysis",s()),s()){const t=setTimeout((()=>{clearTimeout(t),setInterval((()=>{l.queryHtmlElementColors(e().createElement("div"),r(a),!1,!1)}),1e4)}),2500)}}};export{g as initialize};
4
+ import{aQ as t,g as e,L as a,Z as o,aR as s,aS as l,aT as r,as as i,aU as n,aV as c,r as f,aW as d,d as L}from"./index-fbc0a5be.js";import{i as p,r as m}from"./dev.utils-6d9b92c3.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){a.debug(`KoliBri property ${t} is already bind.`)}}const v=(t,e)=>a.debug(`${t} ${e?"":"not "}activated`),g=()=>{if(p(),t()){m(),h("a11yColorContrast",r),h("querySelector",i),h("querySelectorAll",n),h("querySelectorColors",c),h("utils",(function(){return l})),h("parseJson",f),h("stringifyJson",d);const a=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",o()),v("Color contrast analysis",s()),s()){const t=setTimeout((()=>{clearTimeout(t),setInterval((()=>{l.queryHtmlElementColors(e().createElement("div"),r(a),!1,!1)}),1e4)}),2500)}}};export{g as initialize};
@@ -1 +1 @@
1
- {"version":3,"names":["stopPropagation","event","stopImmediatePropagation","createKoliBriEvent","type","detail","CustomEvent","bubbles","cancelable","composed","dispatchKoliBriEvent","target","dispatch","dispatchEvent","tryToDispatchKoliBriEvent","preventDefaultAndStopPropagation","preventDefault"],"sources":["src/utils/events.ts"],"sourcesContent":["// TODO: Should be synchronized with enums/events.ts\ntype KoliBriEventType = 'blur' | 'change' | 'click' | 'focus' | 'toggle';\n\nexport function stopPropagation(event: Event): void {\n\tevent.stopImmediatePropagation();\n\tevent.stopPropagation();\n}\n\nfunction createKoliBriEvent<T>(type: KoliBriEventType, detail: T): CustomEvent {\n\tconst event = new CustomEvent(`kol-${type}`, {\n\t\tbubbles: true,\n\t\tcancelable: true,\n\t\tcomposed: true,\n\t\tdetail: detail,\n\t});\n\treturn event;\n}\n\nfunction dispatchKoliBriEvent<T>(target: EventTarget, type: KoliBriEventType, detail?: T): boolean {\n\tconst dispatch = target.dispatchEvent(createKoliBriEvent(type, detail));\n\treturn dispatch;\n}\n\nexport function tryToDispatchKoliBriEvent<T>(type: KoliBriEventType, target?: EventTarget, detail?: T): void {\n\ttarget && dispatchKoliBriEvent(target, type, detail);\n}\n\nexport function preventDefaultAndStopPropagation(event: Event) {\n\tevent.preventDefault();\n\tstopPropagation(event);\n}\n"],"mappings":";;;SAGgBA,EAAgBC,GAC/BA,EAAMC,2BACND,EAAMD,iBACP,CAEA,SAASG,EAAsBC,EAAwBC,GACtD,MAAMJ,EAAQ,IAAIK,YAAY,OAAOF,IAAQ,CAC5CG,QAAS,KACTC,WAAY,KACZC,SAAU,KACVJ,OAAQA,IAET,OAAOJ,CACR,CAEA,SAASS,EAAwBC,EAAqBP,EAAwBC,GAC7E,MAAMO,EAAWD,EAAOE,cAAcV,EAAmBC,EAAMC,IAC/D,OAAOO,CACR,C,SAEgBE,EAA6BV,EAAwBO,EAAsBN,GAC1FM,GAAUD,EAAqBC,EAAQP,EAAMC,EAC9C,C,SAEgBU,EAAiCd,GAChDA,EAAMe,iBACNhB,EAAgBC,EACjB,Q"}
1
+ {"version":3,"names":["stopPropagation","event","stopImmediatePropagation","createKoliBriEvent","type","detail","CustomEvent","bubbles","cancelable","composed","dispatchKoliBriEvent","target","dispatch","dispatchEvent","tryToDispatchKoliBriEvent","preventDefaultAndStopPropagation","preventDefault"],"sources":["src/utils/events.ts"],"sourcesContent":["// TODO: Should be synchronized with enums/events.ts\ntype KoliBriEventType = 'blur' | 'change' | 'click' | 'focus' | 'input' | 'toggle';\n\nexport function stopPropagation(event: Event): void {\n\tevent.stopImmediatePropagation();\n\tevent.stopPropagation();\n}\n\nfunction createKoliBriEvent<T>(type: KoliBriEventType, detail: T): CustomEvent {\n\tconst event = new CustomEvent(`kol-${type}`, {\n\t\tbubbles: true,\n\t\tcancelable: true,\n\t\tcomposed: true,\n\t\tdetail: detail,\n\t});\n\treturn event;\n}\n\nfunction dispatchKoliBriEvent<T>(target: EventTarget, type: KoliBriEventType, detail?: T): boolean {\n\tconst dispatch = target.dispatchEvent(createKoliBriEvent(type, detail));\n\treturn dispatch;\n}\n\nexport function tryToDispatchKoliBriEvent<T>(type: KoliBriEventType, target?: EventTarget, detail?: T): void {\n\ttarget && dispatchKoliBriEvent(target, type, detail);\n}\n\nexport function preventDefaultAndStopPropagation(event: Event) {\n\tevent.preventDefault();\n\tstopPropagation(event);\n}\n"],"mappings":";;;SAGgBA,EAAgBC,GAC/BA,EAAMC,2BACND,EAAMD,iBACP,CAEA,SAASG,EAAsBC,EAAwBC,GACtD,MAAMJ,EAAQ,IAAIK,YAAY,OAAOF,IAAQ,CAC5CG,QAAS,KACTC,WAAY,KACZC,SAAU,KACVJ,OAAQA,IAET,OAAOJ,CACR,CAEA,SAASS,EAAwBC,EAAqBP,EAAwBC,GAC7E,MAAMO,EAAWD,EAAOE,cAAcV,EAAmBC,EAAMC,IAC/D,OAAOO,CACR,C,SAEgBE,EAA6BV,EAAwBO,EAAsBN,GAC1FM,GAAUD,EAAqBC,EAAQP,EAAMC,EAC9C,C,SAEgBU,EAAiCd,GAChDA,EAAMe,iBACNhB,EAAgBC,EACjB,Q"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{p as e}from"./index-0489af72.js";import{g as i}from"./i18n-fddf0324.js";const n={error:"Fehler",warning:"Warnung",info:"Hinweis",success:"Erfolg",message:"Nachricht",close:"Schließen","form-description":"Formular-Felder, die mit einem Sternchen (*) gekennzeichnet sind, sind Pflichtangaben.",of:"von",characters:"Zeichen",new:"Neu","no-entries":"Es sind keine Einträge vorhanden.","change-order":"Sortierung von {{colLabel}} ändern","action-running":"Aktion wird ausgeführt...","action-done":"Aktion abgeschlossen",pagination:"Paginierung","page-first":"Direkt zur ersten Seite","page-back":"Eine Seite zurück","page-next":"Eine Seite weiter","page-last":"Direkt zur letzten Seite","entries-per-site":"Einträge pro Seite",page:"Seite","page-current":"Seite {{page}}","page-selected":"Seite {{page}} ist ausgewählt","page-per-site":"{{entries}} Einträge pro Seite","nav-maximize":"Navigation maximieren","nav-minimize":"Navigation minimieren","logo-description":"Logo {{orgShort}}. Bundesadler mit Flaggenstab und Schriftzug {{orgLong}}","open-link-in-tab":"Öffnet in neuem Tab.","kolibri-logo":"Logo von KoliBri","table-pagination-label":"Paginierung für die Tabelle {{label}}","avatar-alt":"Avatar von {{name}}","toast-close-all":"Alle schließen","error-list":"Fehlerliste","error-list-message":"Bitte korrigieren Sie folgende Fehler:",version:"Versionsnummer","table-visible-range":"Einträge {{start}} bis {{end}} von {{total}}"},a={error:"Error",warning:"Warning",info:"Note",success:"Success",message:"Message",close:"Close","form-description":"Form fields marked with an asterisk (*) are mandatory.",of:"of",characters:"characters",new:"New","no-entries":"No entries available.","change-order":"Change order of {{colLabel}}","action-running":"Action is running...","action-done":"Action done",pagination:"Pagination","page-first":"Directly to the first page","page-back":"One page back","page-next":"One page further","page-last":"Directly to the last page","entries-per-site":"Entries per page",page:"Page","page-current":"Page {{page}}","page-selected":"Page {{page}} is selected","page-per-site":"{{entries}} entries per page","nav-maximize":"Maximize navigation","nav-minimize":"Minimize navigation","logo-description":"Logo {{orgShort}}. Federal eagle with flag staff and lettering {{orgLong}}","open-link-in-tab":"Opens in new tab.","kolibri-logo":"KoliBri logo","table-pagination-label":"Pagination for table {{label}}","avatar-alt":"Avatar of {{name}}","toast-close-all":"Close all","error-list":"Error list","error-list-message":"Please correct the following errors",version:"Version number","table-visible-range":"Entries {{start}} to {{end}} of {{total}}"},r=e=>Object.keys(e).reduce(((i,n)=>(i[`kol-${n}`]=e[n],i)),{}),t=new Set([e=>e("en",r(a)),e=>e("de",r(n))]);let o=(e,n)=>{const a=i();let r=a.translate(e,n);return r===e&&(a.addTranslations(t),r=a.translate(e,n)),r};"test"===e&&(o=e=>e);export{o as t};
4
+ import{p as e}from"./index-fbc0a5be.js";import{g as i}from"./i18n-fddf0324.js";const n={error:"Fehler",warning:"Warnung",info:"Hinweis",success:"Erfolg",message:"Nachricht",close:"Schließen","form-description":"Formular-Felder, die mit einem Sternchen (*) gekennzeichnet sind, sind Pflichtangaben.",of:"von",characters:"Zeichen",new:"Neu","no-entries":"Es sind keine Einträge vorhanden.","change-order":"Sortierung von {{colLabel}} ändern","action-running":"Aktion wird ausgeführt...","action-done":"Aktion abgeschlossen",pagination:"Paginierung","page-first":"Direkt zur ersten Seite","page-back":"Eine Seite zurück","page-next":"Eine Seite weiter","page-last":"Direkt zur letzten Seite","entries-per-site":"Einträge pro Seite",page:"Seite","page-current":"Seite {{page}}","page-selected":"Seite {{page}} ist ausgewählt","page-per-site":"{{entries}} Einträge pro Seite","nav-maximize":"Navigation maximieren","nav-minimize":"Navigation minimieren","logo-description":"Logo {{orgShort}}. Bundesadler mit Flaggenstab und Schriftzug {{orgLong}}","open-link-in-tab":"Öffnet in neuem Tab.","kolibri-logo":"Logo von KoliBri","table-pagination-label":"Paginierung für die Tabelle {{label}}","avatar-alt":"Avatar von {{name}}","toast-close-all":"Alle schließen","error-list":"Fehlerliste","error-list-message":"Bitte korrigieren Sie folgende Fehler:",version:"Versionsnummer","table-visible-range":"Einträge {{start}} bis {{end}} von {{total}}"},a={error:"Error",warning:"Warning",info:"Note",success:"Success",message:"Message",close:"Close","form-description":"Form fields marked with an asterisk (*) are mandatory.",of:"of",characters:"characters",new:"New","no-entries":"No entries available.","change-order":"Change order of {{colLabel}}","action-running":"Action is running...","action-done":"Action done",pagination:"Pagination","page-first":"Directly to the first page","page-back":"One page back","page-next":"One page further","page-last":"Directly to the last page","entries-per-site":"Entries per page",page:"Page","page-current":"Page {{page}}","page-selected":"Page {{page}} is selected","page-per-site":"{{entries}} entries per page","nav-maximize":"Maximize navigation","nav-minimize":"Minimize navigation","logo-description":"Logo {{orgShort}}. Federal eagle with flag staff and lettering {{orgLong}}","open-link-in-tab":"Opens in new tab.","kolibri-logo":"KoliBri logo","table-pagination-label":"Pagination for table {{label}}","avatar-alt":"Avatar of {{name}}","toast-close-all":"Close all","error-list":"Error list","error-list-message":"Please correct the following errors",version:"Version number","table-visible-range":"Entries {{start}} to {{end}} of {{total}}"},r=e=>Object.keys(e).reduce(((i,n)=>(i[`kol-${n}`]=e[n],i)),{}),t=new Set([e=>e("en",r(a)),e=>e("de",r(n))]);let o=(e,n)=>{const a=i();let r=a.translate(e,n);return r===e&&(a.addTranslations(t),r=a.translate(e,n)),r};"test"===e&&(o=e=>e);export{o as t};