@public-ui/components 1.7.16 → 1.7.18

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 (897) hide show
  1. package/custom-elements.json +1 -1
  2. package/dist/cjs/{a11y.tipps-bd449d8f.js → a11y.tipps-8e2dba7e.js} +1 -1
  3. package/dist/cjs/{a11y.tipps-bd449d8f.js.map → a11y.tipps-8e2dba7e.js.map} +1 -1
  4. package/dist/cjs/align-2f308119.js +4 -0
  5. package/dist/cjs/{align-a8382c2d.js.map → align-2f308119.js.map} +1 -1
  6. package/dist/cjs/{alignment-3dc1be8a.js → alignment-451123c2.js} +1 -1
  7. package/dist/cjs/{alignment-3dc1be8a.js.map → alignment-451123c2.js.map} +1 -1
  8. package/dist/cjs/{app-globals-75e5e6b9.js → app-globals-88c39ca7.js} +1 -1
  9. package/dist/cjs/{app-globals-75e5e6b9.js.map → app-globals-88c39ca7.js.map} +1 -1
  10. package/dist/cjs/{aria-current-86dc3c8f.js → aria-current-2fafefa0.js} +1 -1
  11. package/dist/cjs/{aria-current-86dc3c8f.js.map → aria-current-2fafefa0.js.map} +1 -1
  12. package/dist/cjs/{associated.controller-e583ef2c.js → associated.controller-1fceaefc.js} +1 -1
  13. package/dist/cjs/{associated.controller-e583ef2c.js.map → associated.controller-1fceaefc.js.map} +1 -1
  14. package/dist/cjs/{color-cccb0f7f.js → color-e529bc6f.js} +1 -1
  15. package/dist/cjs/{color-cccb0f7f.js.map → color-e529bc6f.js.map} +1 -1
  16. package/dist/cjs/component-names-3621d6a8.js +4 -0
  17. package/dist/cjs/component-names-3621d6a8.js.map +1 -0
  18. package/dist/cjs/{controller-67bdfa63.js → controller-5512aeb9.js} +1 -1
  19. package/dist/cjs/{controller-67bdfa63.js.map → controller-5512aeb9.js.map} +1 -1
  20. package/dist/cjs/{controller-de595e53.js → controller-732592e1.js} +1 -1
  21. package/dist/cjs/{controller-de595e53.js.map → controller-732592e1.js.map} +1 -1
  22. package/dist/cjs/{controller-e7bf77b4.js → controller-75c8ee60.js} +1 -1
  23. package/dist/cjs/{controller-e7bf77b4.js.map → controller-75c8ee60.js.map} +1 -1
  24. package/dist/cjs/{controller-a44ea733.js → controller-c7743376.js} +1 -1
  25. package/dist/cjs/{controller-a44ea733.js.map → controller-c7743376.js.map} +1 -1
  26. package/dist/cjs/{controller-ad83264f.js → controller-d560de6e.js} +1 -1
  27. package/dist/cjs/{controller-ad83264f.js.map → controller-d560de6e.js.map} +1 -1
  28. package/dist/cjs/{controller-icon-5cfc9873.js → controller-icon-11d5fc2a.js} +1 -1
  29. package/dist/cjs/{controller-icon-5cfc9873.js.map → controller-icon-11d5fc2a.js.map} +1 -1
  30. package/dist/cjs/{custom-class-6151c106.js → custom-class-bfde6023.js} +1 -1
  31. package/dist/cjs/{custom-class-6151c106.js.map → custom-class-bfde6023.js.map} +1 -1
  32. package/dist/cjs/{dev.utils-8ff2366d.js → dev.utils-decde563.js} +1 -1
  33. package/dist/cjs/dev.utils-decde563.js.map +1 -0
  34. package/dist/cjs/{devtools-b76dac0a.js → devtools-7ada466b.js} +1 -1
  35. package/dist/cjs/{devtools-b76dac0a.js.map → devtools-7ada466b.js.map} +1 -1
  36. package/dist/cjs/form-field-msg-8043a6f2.js +4 -0
  37. package/dist/cjs/form-field-msg-8043a6f2.js.map +1 -0
  38. package/dist/cjs/has-closer-2303ffbb.js +4 -0
  39. package/dist/cjs/{has-closer-cd8d0ef8.js.map → has-closer-2303ffbb.js.map} +1 -1
  40. package/dist/cjs/hide-label-d08d5760.js +4 -0
  41. package/dist/cjs/{hide-label-f6851215.js.map → hide-label-d08d5760.js.map} +1 -1
  42. package/dist/cjs/{icons-f4634847.js → icons-9ebe09d0.js} +1 -1
  43. package/dist/cjs/{icons-f4634847.js.map → icons-9ebe09d0.js.map} +1 -1
  44. package/dist/cjs/image-source-896fb570.js +4 -0
  45. package/dist/cjs/{image-source-a9ea5150.js.map → image-source-896fb570.js.map} +1 -1
  46. package/dist/cjs/{index-8606e84d.js → index-67d1914c.js} +1 -1
  47. package/dist/cjs/index-67d1914c.js.map +1 -0
  48. package/dist/cjs/{index-4a49c733.js → index-b0f8ba96.js} +1 -1
  49. package/dist/cjs/{index-4a49c733.js.map → index-b0f8ba96.js.map} +1 -1
  50. package/dist/cjs/index.cjs.js +1 -1
  51. package/dist/cjs/index.cjs.js.map +1 -1
  52. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  53. package/dist/cjs/kol-abbr.cjs.entry.js.map +1 -1
  54. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  55. package/dist/cjs/kol-accordion.cjs.entry.js.map +1 -1
  56. package/dist/cjs/kol-alert-wc.cjs.entry.js +4 -0
  57. package/dist/cjs/kol-alert-wc.cjs.entry.js.map +1 -0
  58. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  59. package/dist/cjs/kol-alert.cjs.entry.js.map +1 -1
  60. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  61. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  62. package/dist/cjs/kol-avatar.cjs.entry.js.map +1 -1
  63. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  64. package/dist/cjs/kol-badge.cjs.entry.js.map +1 -1
  65. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  66. package/dist/cjs/kol-breadcrumb.cjs.entry.js.map +1 -1
  67. package/dist/cjs/kol-button-group-wc.cjs.entry.js +1 -1
  68. package/dist/cjs/kol-button-group.cjs.entry.js +1 -1
  69. package/dist/cjs/kol-button-group.cjs.entry.js.map +1 -1
  70. package/dist/cjs/kol-button-link-text-switch.cjs.entry.js +1 -1
  71. package/dist/cjs/kol-button-link-text-switch.cjs.entry.js.map +1 -1
  72. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  73. package/dist/cjs/kol-button-link.cjs.entry.js.map +1 -1
  74. package/dist/cjs/kol-button-wc.cjs.entry.js +4 -0
  75. package/dist/cjs/kol-button-wc.cjs.entry.js.map +1 -0
  76. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  77. package/dist/cjs/kol-button.cjs.entry.js.map +1 -1
  78. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  79. package/dist/cjs/kol-card.cjs.entry.js.map +1 -1
  80. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  81. package/dist/cjs/kol-details.cjs.entry.js.map +1 -1
  82. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-form.cjs.entry.js.map +1 -1
  84. package/dist/cjs/kol-heading-wc.cjs.entry.js +4 -0
  85. package/dist/cjs/kol-heading-wc.cjs.entry.js.map +1 -0
  86. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  87. package/dist/cjs/kol-heading.cjs.entry.js.map +1 -1
  88. package/dist/cjs/kol-icon-font-awesome.cjs.entry.js +1 -1
  89. package/dist/cjs/kol-icon-font-awesome.cjs.entry.js.map +1 -1
  90. package/dist/cjs/kol-icon-icofont.cjs.entry.js +1 -1
  91. package/dist/cjs/kol-icon-icofont.cjs.entry.js.map +1 -1
  92. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  93. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  94. package/dist/cjs/kol-indented-text.cjs.entry.js +1 -1
  95. package/dist/cjs/kol-input-adapter-leanup.cjs.entry.js +1 -1
  96. package/dist/cjs/kol-input-adapter-leanup.cjs.entry.js.map +1 -1
  97. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  98. package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
  99. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  100. package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
  101. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  102. package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
  103. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  104. package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
  105. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  106. package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
  107. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  108. package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
  109. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  110. package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
  111. package/dist/cjs/kol-input-radio-group.cjs.entry.js +1 -1
  112. package/dist/cjs/kol-input-radio-group.cjs.entry.js.map +1 -1
  113. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  114. package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
  115. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  116. package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
  117. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  118. package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
  119. package/dist/cjs/kol-input.cjs.entry.js +1 -1
  120. package/dist/cjs/kol-input.cjs.entry.js.map +1 -1
  121. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  122. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  123. package/dist/cjs/kol-link-button.cjs.entry.js.map +1 -1
  124. package/dist/cjs/kol-link-group.cjs.entry.js +1 -1
  125. package/dist/cjs/kol-link-group.cjs.entry.js.map +1 -1
  126. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  127. package/dist/cjs/kol-link-wc.cjs.entry.js.map +1 -1
  128. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  129. package/dist/cjs/kol-link.cjs.entry.js.map +1 -1
  130. package/dist/cjs/kol-logo.cjs.entry.js +1 -1
  131. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  132. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  133. package/dist/cjs/kol-nav.cjs.entry.js.map +1 -1
  134. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  135. package/dist/cjs/kol-pagination.cjs.entry.js.map +1 -1
  136. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  137. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  138. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  139. package/dist/cjs/kol-quote.cjs.entry.js.map +1 -1
  140. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  141. package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
  142. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  143. package/dist/cjs/kol-skip-nav.cjs.entry.js.map +1 -1
  144. package/dist/cjs/kol-span-wc.cjs.entry.js +4 -0
  145. package/dist/cjs/kol-span-wc.cjs.entry.js.map +1 -0
  146. package/dist/cjs/kol-span.cjs.entry.js +1 -1
  147. package/dist/cjs/kol-span.cjs.entry.js.map +1 -1
  148. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  149. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  150. package/dist/cjs/kol-split-button.cjs.entry.js.map +1 -1
  151. package/dist/cjs/kol-symbol.cjs.entry.js +1 -1
  152. package/dist/cjs/kol-table.cjs.entry.js +1 -1
  153. package/dist/cjs/kol-table.cjs.entry.js.map +1 -1
  154. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  155. package/dist/cjs/kol-tabs.cjs.entry.js.map +1 -1
  156. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  157. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  158. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  159. package/dist/cjs/kol-toast-container.cjs.entry.js.map +1 -1
  160. package/dist/cjs/kol-toast.cjs.entry.js +1 -1
  161. package/dist/cjs/kol-toast.cjs.entry.js.map +1 -1
  162. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +4 -0
  163. package/dist/cjs/kol-tooltip-wc.cjs.entry.js.map +1 -0
  164. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  165. package/dist/cjs/kol-version.cjs.entry.js.map +1 -1
  166. package/dist/cjs/kolibri.cjs.js +1 -1
  167. package/dist/cjs/{label-69b85954.js → label-1783a80e.js} +1 -1
  168. package/dist/cjs/{label-69b85954.js.map → label-1783a80e.js.map} +1 -1
  169. package/dist/cjs/loader.cjs.js +1 -1
  170. package/dist/cjs/open-ce0a6242.js +4 -0
  171. package/dist/cjs/{open-b73d464a.js.map → open-ce0a6242.js.map} +1 -1
  172. package/dist/cjs/{prop.validators-3b868b6c.js → prop.validators-b69cb339.js} +1 -1
  173. package/dist/cjs/{prop.validators-3b868b6c.js.map → prop.validators-b69cb339.js.map} +1 -1
  174. package/dist/cjs/rows-bfee4b36.js +4 -0
  175. package/dist/cjs/{rows-b9f39e03.js.map → rows-bfee4b36.js.map} +1 -1
  176. package/dist/cjs/show-e2e44d18.js +4 -0
  177. package/dist/cjs/{show-42935746.js.map → show-e2e44d18.js.map} +1 -1
  178. package/dist/cjs/{suggestions-dd01db02.js → suggestions-098bf277.js} +1 -1
  179. package/dist/cjs/{suggestions-dd01db02.js.map → suggestions-098bf277.js.map} +1 -1
  180. package/dist/cjs/{tab-index-f8d25f52.js → tab-index-37441efc.js} +1 -1
  181. package/dist/cjs/{tab-index-f8d25f52.js.map → tab-index-37441efc.js.map} +1 -1
  182. package/dist/cjs/toaster-48b73b90.js +4 -0
  183. package/dist/cjs/toaster-48b73b90.js.map +1 -0
  184. package/dist/cjs/toaster-6a4c31ad.js +4 -0
  185. package/dist/cjs/toaster-6a4c31ad.js.map +1 -0
  186. package/dist/cjs/{tooltip-align-4afe6430.js → tooltip-align-204c6676.js} +1 -1
  187. package/dist/cjs/{tooltip-align-4afe6430.js.map → tooltip-align-204c6676.js.map} +1 -1
  188. package/dist/cjs/{validation-f6dd44d4.js → validation-65320624.js} +1 -1
  189. package/dist/cjs/{validation-f6dd44d4.js.map → validation-65320624.js.map} +1 -1
  190. package/dist/cjs/{validation-3be135dd.js → validation-f1652b32.js} +1 -1
  191. package/dist/cjs/{validation-3be135dd.js.map → validation-f1652b32.js.map} +1 -1
  192. package/dist/components/a11y.tipps.js +4 -0
  193. package/dist/components/a11y.tipps.js.map +1 -0
  194. package/dist/components/align.js +1 -1
  195. package/dist/components/align.js.map +1 -1
  196. package/dist/components/alignment.js +4 -0
  197. package/dist/components/alignment.js.map +1 -0
  198. package/dist/components/aria-current.js +4 -0
  199. package/dist/components/aria-current.js.map +1 -0
  200. package/dist/components/associated.controller.js +4 -0
  201. package/dist/components/associated.controller.js.map +1 -0
  202. package/dist/components/color.js +1 -1
  203. package/dist/components/color.js.map +1 -1
  204. package/dist/components/component-names.js +4 -0
  205. package/dist/components/component-names.js.map +1 -0
  206. package/dist/components/controller-icon.js +1 -1
  207. package/dist/components/controller-icon.js.map +1 -1
  208. package/dist/components/controller.js +1 -1
  209. package/dist/components/controller.js.map +1 -1
  210. package/dist/components/controller2.js +1 -1
  211. package/dist/components/controller2.js.map +1 -1
  212. package/dist/components/controller3.js +1 -1
  213. package/dist/components/controller3.js.map +1 -1
  214. package/dist/components/controller4.js +1 -1
  215. package/dist/components/controller4.js.map +1 -1
  216. package/dist/components/controller5.js +4 -0
  217. package/dist/components/controller5.js.map +1 -0
  218. package/dist/components/custom-class.js +4 -0
  219. package/dist/components/custom-class.js.map +1 -0
  220. package/dist/components/dev.utils.js +4 -0
  221. package/dist/components/dev.utils.js.map +1 -0
  222. package/dist/components/devtools.js +1 -1
  223. package/dist/components/devtools.js.map +1 -1
  224. package/dist/components/floating-ui.dom.esm.js +4 -0
  225. package/dist/components/floating-ui.dom.esm.js.map +1 -0
  226. package/dist/components/form-field-msg.js +4 -0
  227. package/dist/components/form-field-msg.js.map +1 -0
  228. package/dist/components/has-closer.js +1 -1
  229. package/dist/components/hide-label.js +4 -0
  230. package/dist/components/hide-label.js.map +1 -0
  231. package/dist/components/i18n2.js +1 -1
  232. package/dist/components/icons.js +4 -0
  233. package/dist/components/icons.js.map +1 -0
  234. package/dist/components/index.js +1 -1
  235. package/dist/components/index.js.map +1 -1
  236. package/dist/components/kol-abbr.js +1 -1
  237. package/dist/components/kol-abbr.js.map +1 -1
  238. package/dist/components/kol-accordion.js +1 -1
  239. package/dist/components/kol-accordion.js.map +1 -1
  240. package/dist/components/kol-alert-wc.js +1 -1
  241. package/dist/components/kol-alert-wc.js.map +1 -1
  242. package/dist/components/kol-alert.js +1 -1
  243. package/dist/components/kol-alert.js.map +1 -1
  244. package/dist/components/kol-avatar-wc.js +1 -1
  245. package/dist/components/kol-avatar-wc.js.map +1 -1
  246. package/dist/components/kol-avatar.js +1 -1
  247. package/dist/components/kol-avatar.js.map +1 -1
  248. package/dist/components/kol-badge.js +1 -1
  249. package/dist/components/kol-badge.js.map +1 -1
  250. package/dist/components/kol-breadcrumb.js +1 -1
  251. package/dist/components/kol-breadcrumb.js.map +1 -1
  252. package/dist/components/kol-button-group-wc.js +1 -1
  253. package/dist/components/kol-button-group-wc.js.map +1 -1
  254. package/dist/components/kol-button-group.js +1 -1
  255. package/dist/components/kol-button-group.js.map +1 -1
  256. package/dist/components/kol-button-link-text-switch.js +1 -1
  257. package/dist/components/kol-button-link-text-switch.js.map +1 -1
  258. package/dist/components/kol-button-link.js +1 -1
  259. package/dist/components/kol-button-link.js.map +1 -1
  260. package/dist/components/kol-button-wc.js +1 -1
  261. package/dist/components/kol-button-wc.js.map +1 -1
  262. package/dist/components/kol-button.js +1 -1
  263. package/dist/components/kol-button.js.map +1 -1
  264. package/dist/components/kol-card.js +1 -1
  265. package/dist/components/kol-card.js.map +1 -1
  266. package/dist/components/kol-details.js +1 -1
  267. package/dist/components/kol-details.js.map +1 -1
  268. package/dist/components/kol-form.js +1 -1
  269. package/dist/components/kol-form.js.map +1 -1
  270. package/dist/components/kol-heading-wc.js +1 -1
  271. package/dist/components/kol-heading-wc.js.map +1 -1
  272. package/dist/components/kol-heading.js +1 -1
  273. package/dist/components/kol-heading.js.map +1 -1
  274. package/dist/components/kol-icon-font-awesome.js +1 -1
  275. package/dist/components/kol-icon-font-awesome.js.map +1 -1
  276. package/dist/components/kol-icon-icofont.js +1 -1
  277. package/dist/components/kol-icon-icofont.js.map +1 -1
  278. package/dist/components/kol-icon.js +1 -1
  279. package/dist/components/kol-icon.js.map +1 -1
  280. package/dist/components/kol-indented-text.js +1 -1
  281. package/dist/components/kol-indented-text.js.map +1 -1
  282. package/dist/components/kol-input-adapter-leanup.js +1 -1
  283. package/dist/components/kol-input-adapter-leanup.js.map +1 -1
  284. package/dist/components/kol-input-checkbox.js +1 -1
  285. package/dist/components/kol-input-checkbox.js.map +1 -1
  286. package/dist/components/kol-input-color.js +1 -1
  287. package/dist/components/kol-input-color.js.map +1 -1
  288. package/dist/components/kol-input-date.js +1 -1
  289. package/dist/components/kol-input-date.js.map +1 -1
  290. package/dist/components/kol-input-email.js +1 -1
  291. package/dist/components/kol-input-email.js.map +1 -1
  292. package/dist/components/kol-input-file.js +1 -1
  293. package/dist/components/kol-input-file.js.map +1 -1
  294. package/dist/components/kol-input-number.js +1 -1
  295. package/dist/components/kol-input-number.js.map +1 -1
  296. package/dist/components/kol-input-password.js +1 -1
  297. package/dist/components/kol-input-password.js.map +1 -1
  298. package/dist/components/kol-input-radio-group.js +1 -1
  299. package/dist/components/kol-input-radio-group.js.map +1 -1
  300. package/dist/components/kol-input-radio.js +1 -1
  301. package/dist/components/kol-input-radio.js.map +1 -1
  302. package/dist/components/kol-input-range.js +1 -1
  303. package/dist/components/kol-input-range.js.map +1 -1
  304. package/dist/components/kol-input-text.js +1 -1
  305. package/dist/components/kol-input-text.js.map +1 -1
  306. package/dist/components/kol-input.js +1 -1
  307. package/dist/components/kol-input.js.map +1 -1
  308. package/dist/components/kol-kolibri.js +1 -1
  309. package/dist/components/kol-kolibri.js.map +1 -1
  310. package/dist/components/kol-link-button.js +1 -1
  311. package/dist/components/kol-link-button.js.map +1 -1
  312. package/dist/components/kol-link-group.js +1 -1
  313. package/dist/components/kol-link-group.js.map +1 -1
  314. package/dist/components/kol-link-wc.js +1 -1
  315. package/dist/components/kol-link-wc.js.map +1 -1
  316. package/dist/components/kol-link.js +1 -1
  317. package/dist/components/kol-link.js.map +1 -1
  318. package/dist/components/kol-logo.js +1 -1
  319. package/dist/components/kol-logo.js.map +1 -1
  320. package/dist/components/kol-modal.js +1 -1
  321. package/dist/components/kol-modal.js.map +1 -1
  322. package/dist/components/kol-nav.js +1 -1
  323. package/dist/components/kol-nav.js.map +1 -1
  324. package/dist/components/kol-pagination.js +1 -1
  325. package/dist/components/kol-pagination.js.map +1 -1
  326. package/dist/components/kol-popover-wc.js +1 -1
  327. package/dist/components/kol-popover-wc.js.map +1 -1
  328. package/dist/components/kol-progress.js +1 -1
  329. package/dist/components/kol-quote.js +1 -1
  330. package/dist/components/kol-quote.js.map +1 -1
  331. package/dist/components/kol-select.js +1 -1
  332. package/dist/components/kol-select.js.map +1 -1
  333. package/dist/components/kol-skip-nav.js +1 -1
  334. package/dist/components/kol-skip-nav.js.map +1 -1
  335. package/dist/components/kol-span-wc.js +1 -1
  336. package/dist/components/kol-span-wc.js.map +1 -1
  337. package/dist/components/kol-span.js +1 -1
  338. package/dist/components/kol-span.js.map +1 -1
  339. package/dist/components/kol-split-button.js +1 -1
  340. package/dist/components/kol-split-button.js.map +1 -1
  341. package/dist/components/kol-table.js +1 -1
  342. package/dist/components/kol-table.js.map +1 -1
  343. package/dist/components/kol-tabs.js +1 -1
  344. package/dist/components/kol-tabs.js.map +1 -1
  345. package/dist/components/kol-textarea.js +1 -1
  346. package/dist/components/kol-textarea.js.map +1 -1
  347. package/dist/components/kol-toast-container.js +1 -1
  348. package/dist/components/kol-toast-container.js.map +1 -1
  349. package/dist/components/kol-toast.js +1 -1
  350. package/dist/components/kol-toast.js.map +1 -1
  351. package/dist/components/kol-tooltip-wc.js +1 -1
  352. package/dist/components/kol-tooltip-wc.js.map +1 -1
  353. package/dist/components/kol-version.js +1 -1
  354. package/dist/components/kol-version.js.map +1 -1
  355. package/dist/components/label.js +1 -1
  356. package/dist/components/label.js.map +1 -1
  357. package/dist/components/open.js +1 -1
  358. package/dist/components/prop.validators.js +1 -1
  359. package/dist/components/prop.validators.js.map +1 -1
  360. package/dist/components/reuse.js +4 -0
  361. package/dist/components/reuse.js.map +1 -0
  362. package/dist/components/rows.js +1 -1
  363. package/dist/components/show.js +1 -1
  364. package/dist/components/suggestions.js +1 -1
  365. package/dist/components/suggestions.js.map +1 -1
  366. package/dist/components/tab-index.js +1 -1
  367. package/dist/components/tab-index.js.map +1 -1
  368. package/dist/components/tooltip-align.js +1 -1
  369. package/dist/components/validation.js +1 -1
  370. package/dist/components/validation.js.map +1 -1
  371. package/dist/components/validation2.js +4 -0
  372. package/dist/components/validation2.js.map +1 -0
  373. package/dist/esm/{a11y.tipps-1cea6b3d.js → a11y.tipps-4958c1a5.js} +1 -1
  374. package/dist/esm/{a11y.tipps-1cea6b3d.js.map → a11y.tipps-4958c1a5.js.map} +1 -1
  375. package/dist/esm/{align-a007e3db.js → align-d7e22df2.js} +1 -1
  376. package/dist/esm/{align-a007e3db.js.map → align-d7e22df2.js.map} +1 -1
  377. package/dist/esm/{alignment-7cf13a42.js → alignment-a5283d44.js} +1 -1
  378. package/dist/esm/{alignment-7cf13a42.js.map → alignment-a5283d44.js.map} +1 -1
  379. package/dist/esm/app-globals-60a3cc97.js +4 -0
  380. package/dist/esm/{app-globals-33e2d739.js.map → app-globals-60a3cc97.js.map} +1 -1
  381. package/dist/esm/{aria-current-9675e9d1.js → aria-current-7302bccd.js} +1 -1
  382. package/dist/esm/{aria-current-9675e9d1.js.map → aria-current-7302bccd.js.map} +1 -1
  383. package/dist/esm/{associated.controller-c4487875.js → associated.controller-23bbb619.js} +1 -1
  384. package/dist/esm/{associated.controller-c4487875.js.map → associated.controller-23bbb619.js.map} +1 -1
  385. package/dist/esm/{color-0f13235a.js → color-f433be51.js} +1 -1
  386. package/dist/esm/{color-0f13235a.js.map → color-f433be51.js.map} +1 -1
  387. package/dist/esm/component-names-fed305c7.js +4 -0
  388. package/dist/esm/component-names-fed305c7.js.map +1 -0
  389. package/dist/esm/{controller-9b0595a1.js → controller-0620db4a.js} +1 -1
  390. package/dist/esm/{controller-9b0595a1.js.map → controller-0620db4a.js.map} +1 -1
  391. package/dist/esm/{controller-86b9d0e8.js → controller-279a9363.js} +1 -1
  392. package/dist/esm/{controller-86b9d0e8.js.map → controller-279a9363.js.map} +1 -1
  393. package/dist/esm/{controller-2e3afee2.js → controller-4831dcf4.js} +1 -1
  394. package/dist/esm/{controller-2e3afee2.js.map → controller-4831dcf4.js.map} +1 -1
  395. package/dist/esm/{controller-b6a485f1.js → controller-6c7b9f98.js} +1 -1
  396. package/dist/esm/{controller-b6a485f1.js.map → controller-6c7b9f98.js.map} +1 -1
  397. package/dist/esm/{controller-213a22e8.js → controller-c7c567e4.js} +1 -1
  398. package/dist/esm/{controller-213a22e8.js.map → controller-c7c567e4.js.map} +1 -1
  399. package/dist/esm/{controller-icon-90a5af99.js → controller-icon-40ddf7b5.js} +1 -1
  400. package/dist/esm/{controller-icon-90a5af99.js.map → controller-icon-40ddf7b5.js.map} +1 -1
  401. package/dist/esm/{custom-class-9470f26b.js → custom-class-4b2f8a23.js} +1 -1
  402. package/dist/esm/{custom-class-9470f26b.js.map → custom-class-4b2f8a23.js.map} +1 -1
  403. package/dist/esm/{dev.utils-8d5cefe9.js → dev.utils-c85f7f52.js} +1 -1
  404. package/dist/esm/dev.utils-c85f7f52.js.map +1 -0
  405. package/dist/esm/{devtools-8368d254.js → devtools-a7d12733.js} +1 -1
  406. package/dist/esm/{devtools-8368d254.js.map → devtools-a7d12733.js.map} +1 -1
  407. package/dist/esm/form-field-msg-85face25.js +4 -0
  408. package/dist/esm/form-field-msg-85face25.js.map +1 -0
  409. package/dist/esm/{has-closer-a9be38af.js → has-closer-2ef69f59.js} +1 -1
  410. package/dist/esm/{has-closer-a9be38af.js.map → has-closer-2ef69f59.js.map} +1 -1
  411. package/dist/esm/{hide-label-d39d4679.js → hide-label-b64d0d0f.js} +1 -1
  412. package/dist/esm/{hide-label-d39d4679.js.map → hide-label-b64d0d0f.js.map} +1 -1
  413. package/dist/esm/{icons-1e78352d.js → icons-a019293e.js} +1 -1
  414. package/dist/esm/{icons-1e78352d.js.map → icons-a019293e.js.map} +1 -1
  415. package/dist/esm/{image-source-20111f07.js → image-source-31578b35.js} +1 -1
  416. package/dist/esm/{image-source-20111f07.js.map → image-source-31578b35.js.map} +1 -1
  417. package/dist/esm/{index-c1d028ba.js → index-a051748e.js} +1 -1
  418. package/dist/esm/index-a051748e.js.map +1 -0
  419. package/dist/esm/{index-0e51998c.js → index-a42f8d80.js} +1 -1
  420. package/dist/esm/{index-0e51998c.js.map → index-a42f8d80.js.map} +1 -1
  421. package/dist/esm/index.js +1 -1
  422. package/dist/esm/index.js.map +1 -1
  423. package/dist/esm/kol-abbr.entry.js +1 -1
  424. package/dist/esm/kol-abbr.entry.js.map +1 -1
  425. package/dist/esm/kol-accordion.entry.js +1 -1
  426. package/dist/esm/kol-accordion.entry.js.map +1 -1
  427. package/dist/esm/kol-alert-wc.entry.js +4 -0
  428. package/dist/esm/kol-alert-wc.entry.js.map +1 -0
  429. package/dist/esm/kol-alert.entry.js +1 -1
  430. package/dist/esm/kol-alert.entry.js.map +1 -1
  431. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  432. package/dist/esm/kol-avatar.entry.js +1 -1
  433. package/dist/esm/kol-avatar.entry.js.map +1 -1
  434. package/dist/esm/kol-badge.entry.js +1 -1
  435. package/dist/esm/kol-badge.entry.js.map +1 -1
  436. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  437. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  438. package/dist/esm/kol-button-group-wc.entry.js +1 -1
  439. package/dist/esm/kol-button-group.entry.js +1 -1
  440. package/dist/esm/kol-button-group.entry.js.map +1 -1
  441. package/dist/esm/kol-button-link-text-switch.entry.js +1 -1
  442. package/dist/esm/kol-button-link-text-switch.entry.js.map +1 -1
  443. package/dist/esm/kol-button-link.entry.js +1 -1
  444. package/dist/esm/kol-button-link.entry.js.map +1 -1
  445. package/dist/esm/kol-button-wc.entry.js +4 -0
  446. package/dist/esm/kol-button-wc.entry.js.map +1 -0
  447. package/dist/esm/kol-button.entry.js +1 -1
  448. package/dist/esm/kol-button.entry.js.map +1 -1
  449. package/dist/esm/kol-card.entry.js +1 -1
  450. package/dist/esm/kol-card.entry.js.map +1 -1
  451. package/dist/esm/kol-details.entry.js +1 -1
  452. package/dist/esm/kol-details.entry.js.map +1 -1
  453. package/dist/esm/kol-form.entry.js +1 -1
  454. package/dist/esm/kol-form.entry.js.map +1 -1
  455. package/dist/esm/kol-heading-wc.entry.js +4 -0
  456. package/dist/esm/kol-heading-wc.entry.js.map +1 -0
  457. package/dist/esm/kol-heading.entry.js +1 -1
  458. package/dist/esm/kol-heading.entry.js.map +1 -1
  459. package/dist/esm/kol-icon-font-awesome.entry.js +1 -1
  460. package/dist/esm/kol-icon-font-awesome.entry.js.map +1 -1
  461. package/dist/esm/kol-icon-icofont.entry.js +1 -1
  462. package/dist/esm/kol-icon-icofont.entry.js.map +1 -1
  463. package/dist/esm/kol-icon.entry.js +1 -1
  464. package/dist/esm/kol-image.entry.js +1 -1
  465. package/dist/esm/kol-indented-text.entry.js +1 -1
  466. package/dist/esm/kol-input-adapter-leanup.entry.js +1 -1
  467. package/dist/esm/kol-input-adapter-leanup.entry.js.map +1 -1
  468. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  469. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  470. package/dist/esm/kol-input-color.entry.js +1 -1
  471. package/dist/esm/kol-input-color.entry.js.map +1 -1
  472. package/dist/esm/kol-input-date.entry.js +1 -1
  473. package/dist/esm/kol-input-date.entry.js.map +1 -1
  474. package/dist/esm/kol-input-email.entry.js +1 -1
  475. package/dist/esm/kol-input-email.entry.js.map +1 -1
  476. package/dist/esm/kol-input-file.entry.js +1 -1
  477. package/dist/esm/kol-input-file.entry.js.map +1 -1
  478. package/dist/esm/kol-input-number.entry.js +1 -1
  479. package/dist/esm/kol-input-number.entry.js.map +1 -1
  480. package/dist/esm/kol-input-password.entry.js +1 -1
  481. package/dist/esm/kol-input-password.entry.js.map +1 -1
  482. package/dist/esm/kol-input-radio-group.entry.js +1 -1
  483. package/dist/esm/kol-input-radio-group.entry.js.map +1 -1
  484. package/dist/esm/kol-input-radio.entry.js +1 -1
  485. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  486. package/dist/esm/kol-input-range.entry.js +1 -1
  487. package/dist/esm/kol-input-range.entry.js.map +1 -1
  488. package/dist/esm/kol-input-text.entry.js +1 -1
  489. package/dist/esm/kol-input-text.entry.js.map +1 -1
  490. package/dist/esm/kol-input.entry.js +1 -1
  491. package/dist/esm/kol-input.entry.js.map +1 -1
  492. package/dist/esm/kol-kolibri.entry.js +1 -1
  493. package/dist/esm/kol-link-button.entry.js +1 -1
  494. package/dist/esm/kol-link-button.entry.js.map +1 -1
  495. package/dist/esm/kol-link-group.entry.js +1 -1
  496. package/dist/esm/kol-link-group.entry.js.map +1 -1
  497. package/dist/esm/kol-link-wc.entry.js +1 -1
  498. package/dist/esm/kol-link-wc.entry.js.map +1 -1
  499. package/dist/esm/kol-link.entry.js +1 -1
  500. package/dist/esm/kol-link.entry.js.map +1 -1
  501. package/dist/esm/kol-logo.entry.js +1 -1
  502. package/dist/esm/kol-modal.entry.js +1 -1
  503. package/dist/esm/kol-nav.entry.js +1 -1
  504. package/dist/esm/kol-nav.entry.js.map +1 -1
  505. package/dist/esm/kol-pagination.entry.js +1 -1
  506. package/dist/esm/kol-pagination.entry.js.map +1 -1
  507. package/dist/esm/kol-popover-wc.entry.js +1 -1
  508. package/dist/esm/kol-progress.entry.js +1 -1
  509. package/dist/esm/kol-quote.entry.js +1 -1
  510. package/dist/esm/kol-quote.entry.js.map +1 -1
  511. package/dist/esm/kol-select.entry.js +1 -1
  512. package/dist/esm/kol-select.entry.js.map +1 -1
  513. package/dist/esm/kol-skip-nav.entry.js +1 -1
  514. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  515. package/dist/esm/kol-span-wc.entry.js +4 -0
  516. package/dist/esm/kol-span-wc.entry.js.map +1 -0
  517. package/dist/esm/kol-span.entry.js +1 -1
  518. package/dist/esm/kol-span.entry.js.map +1 -1
  519. package/dist/esm/kol-spin.entry.js +1 -1
  520. package/dist/esm/kol-split-button.entry.js +1 -1
  521. package/dist/esm/kol-split-button.entry.js.map +1 -1
  522. package/dist/esm/kol-symbol.entry.js +1 -1
  523. package/dist/esm/kol-table.entry.js +1 -1
  524. package/dist/esm/kol-table.entry.js.map +1 -1
  525. package/dist/esm/kol-tabs.entry.js +1 -1
  526. package/dist/esm/kol-tabs.entry.js.map +1 -1
  527. package/dist/esm/kol-textarea.entry.js +1 -1
  528. package/dist/esm/kol-textarea.entry.js.map +1 -1
  529. package/dist/esm/kol-toast-container.entry.js +1 -1
  530. package/dist/esm/kol-toast-container.entry.js.map +1 -1
  531. package/dist/esm/kol-toast.entry.js +1 -1
  532. package/dist/esm/kol-toast.entry.js.map +1 -1
  533. package/dist/esm/kol-tooltip-wc.entry.js +4 -0
  534. package/dist/esm/kol-tooltip-wc.entry.js.map +1 -0
  535. package/dist/esm/kol-version.entry.js +1 -1
  536. package/dist/esm/kol-version.entry.js.map +1 -1
  537. package/dist/esm/kolibri.js +1 -1
  538. package/dist/esm/{label-9ebba50f.js → label-cd38babf.js} +1 -1
  539. package/dist/esm/{label-9ebba50f.js.map → label-cd38babf.js.map} +1 -1
  540. package/dist/esm/loader.js +1 -1
  541. package/dist/esm/{open-156f7856.js → open-0667e658.js} +1 -1
  542. package/dist/esm/{open-156f7856.js.map → open-0667e658.js.map} +1 -1
  543. package/dist/esm/{prop.validators-8c5a4551.js → prop.validators-8eaea103.js} +1 -1
  544. package/dist/esm/{prop.validators-8c5a4551.js.map → prop.validators-8eaea103.js.map} +1 -1
  545. package/dist/esm/{rows-22867ad4.js → rows-0a63eafa.js} +1 -1
  546. package/dist/esm/{rows-22867ad4.js.map → rows-0a63eafa.js.map} +1 -1
  547. package/dist/esm/{show-8545ccae.js → show-af6f551a.js} +1 -1
  548. package/dist/esm/{show-8545ccae.js.map → show-af6f551a.js.map} +1 -1
  549. package/dist/esm/{suggestions-8938bb98.js → suggestions-dc8dd0d9.js} +1 -1
  550. package/dist/esm/{suggestions-8938bb98.js.map → suggestions-dc8dd0d9.js.map} +1 -1
  551. package/dist/esm/{tab-index-42e01244.js → tab-index-1f8ee56a.js} +1 -1
  552. package/dist/esm/{tab-index-42e01244.js.map → tab-index-1f8ee56a.js.map} +1 -1
  553. package/dist/esm/toaster-363ac349.js +4 -0
  554. package/dist/esm/toaster-363ac349.js.map +1 -0
  555. package/dist/esm/toaster-59df19c4.js +4 -0
  556. package/dist/{kolibri/toaster-832ff321.js.map → esm/toaster-59df19c4.js.map} +1 -1
  557. package/dist/esm/{tooltip-align-d0553e7f.js → tooltip-align-a487cd79.js} +1 -1
  558. package/dist/esm/{tooltip-align-d0553e7f.js.map → tooltip-align-a487cd79.js.map} +1 -1
  559. package/dist/esm/validation-82a640a1.js +4 -0
  560. package/dist/esm/{validation-697ec9e5.js.map → validation-82a640a1.js.map} +1 -1
  561. package/dist/esm/{validation-4822efd5.js → validation-9f2537b1.js} +1 -1
  562. package/dist/esm/{validation-4822efd5.js.map → validation-9f2537b1.js.map} +1 -1
  563. package/dist/kolibri/{a11y.tipps-1cea6b3d.js → a11y.tipps-4958c1a5.js} +1 -1
  564. package/dist/kolibri/align-d7e22df2.js +4 -0
  565. package/dist/kolibri/alignment-a5283d44.js +4 -0
  566. package/dist/kolibri/app-globals-60a3cc97.js +4 -0
  567. package/dist/kolibri/aria-current-7302bccd.js +4 -0
  568. package/dist/kolibri/{associated.controller-c4487875.js → associated.controller-23bbb619.js} +1 -1
  569. package/dist/kolibri/{color-0f13235a.js → color-f433be51.js} +1 -1
  570. package/dist/kolibri/component-names-fed305c7.js +4 -0
  571. package/dist/kolibri/component-names-fed305c7.js.map +1 -0
  572. package/dist/kolibri/{controller-9b0595a1.js → controller-0620db4a.js} +1 -1
  573. package/dist/kolibri/{controller-86b9d0e8.js → controller-279a9363.js} +1 -1
  574. package/dist/kolibri/{controller-2e3afee2.js → controller-4831dcf4.js} +1 -1
  575. package/dist/kolibri/{controller-b6a485f1.js → controller-6c7b9f98.js} +1 -1
  576. package/dist/kolibri/{controller-213a22e8.js → controller-c7c567e4.js} +1 -1
  577. package/dist/kolibri/controller-icon-40ddf7b5.js +4 -0
  578. package/dist/kolibri/{custom-class-9470f26b.js → custom-class-4b2f8a23.js} +1 -1
  579. package/dist/kolibri/{dev.utils-8d5cefe9.js → dev.utils-c85f7f52.js} +1 -1
  580. package/dist/kolibri/{dev.utils-8d5cefe9.js.map → dev.utils-c85f7f52.js.map} +1 -1
  581. package/dist/kolibri/{devtools-8368d254.js → devtools-a7d12733.js} +1 -1
  582. package/dist/kolibri/form-field-msg-85face25.js +4 -0
  583. package/dist/kolibri/form-field-msg-85face25.js.map +1 -0
  584. package/dist/kolibri/has-closer-2ef69f59.js +4 -0
  585. package/dist/kolibri/hide-label-b64d0d0f.js +4 -0
  586. package/dist/kolibri/icons-a019293e.js +4 -0
  587. package/dist/kolibri/{icons-1e78352d.js.map → icons-a019293e.js.map} +1 -1
  588. package/dist/kolibri/image-source-31578b35.js +4 -0
  589. package/dist/kolibri/{index-c1d028ba.js → index-a051748e.js} +1 -1
  590. package/dist/kolibri/index-a051748e.js.map +1 -0
  591. package/dist/kolibri/{index-0e51998c.js → index-a42f8d80.js} +1 -1
  592. package/dist/kolibri/index.esm.js +1 -1
  593. package/dist/kolibri/index.esm.js.map +1 -1
  594. package/dist/kolibri/kol-abbr.entry.js +1 -1
  595. package/dist/kolibri/kol-abbr.entry.js.map +1 -1
  596. package/dist/kolibri/kol-accordion.entry.js +1 -1
  597. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  598. package/dist/kolibri/kol-alert-wc.entry.js +4 -0
  599. package/dist/kolibri/kol-alert-wc.entry.js.map +1 -0
  600. package/dist/kolibri/kol-alert.entry.js +1 -1
  601. package/dist/kolibri/kol-alert.entry.js.map +1 -1
  602. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  603. package/dist/kolibri/kol-avatar.entry.js +1 -1
  604. package/dist/kolibri/kol-avatar.entry.js.map +1 -1
  605. package/dist/kolibri/kol-badge.entry.js +1 -1
  606. package/dist/kolibri/kol-badge.entry.js.map +1 -1
  607. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  608. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  609. package/dist/kolibri/kol-button-group-wc.entry.js +1 -1
  610. package/dist/kolibri/kol-button-group.entry.js +1 -1
  611. package/dist/kolibri/kol-button-group.entry.js.map +1 -1
  612. package/dist/kolibri/kol-button-link-text-switch.entry.js +1 -1
  613. package/dist/kolibri/kol-button-link-text-switch.entry.js.map +1 -1
  614. package/dist/kolibri/kol-button-link.entry.js +1 -1
  615. package/dist/kolibri/kol-button-link.entry.js.map +1 -1
  616. package/dist/kolibri/kol-button-wc.entry.js +4 -0
  617. package/dist/kolibri/kol-button-wc.entry.js.map +1 -0
  618. package/dist/kolibri/kol-button.entry.js +1 -1
  619. package/dist/kolibri/kol-button.entry.js.map +1 -1
  620. package/dist/kolibri/kol-card.entry.js +1 -1
  621. package/dist/kolibri/kol-card.entry.js.map +1 -1
  622. package/dist/kolibri/kol-details.entry.js +1 -1
  623. package/dist/kolibri/kol-details.entry.js.map +1 -1
  624. package/dist/kolibri/kol-form.entry.js +1 -1
  625. package/dist/kolibri/kol-form.entry.js.map +1 -1
  626. package/dist/kolibri/kol-heading-wc.entry.js +4 -0
  627. package/dist/kolibri/kol-heading-wc.entry.js.map +1 -0
  628. package/dist/kolibri/kol-heading.entry.js +1 -1
  629. package/dist/kolibri/kol-heading.entry.js.map +1 -1
  630. package/dist/kolibri/kol-icon-font-awesome.entry.js +1 -1
  631. package/dist/kolibri/kol-icon-font-awesome.entry.js.map +1 -1
  632. package/dist/kolibri/kol-icon-icofont.entry.js +1 -1
  633. package/dist/kolibri/kol-icon-icofont.entry.js.map +1 -1
  634. package/dist/kolibri/kol-icon.entry.js +1 -1
  635. package/dist/kolibri/kol-image.entry.js +1 -1
  636. package/dist/kolibri/kol-indented-text.entry.js +1 -1
  637. package/dist/kolibri/kol-input-adapter-leanup.entry.js +1 -1
  638. package/dist/kolibri/kol-input-adapter-leanup.entry.js.map +1 -1
  639. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  640. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  641. package/dist/kolibri/kol-input-color.entry.js +1 -1
  642. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  643. package/dist/kolibri/kol-input-date.entry.js +1 -1
  644. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  645. package/dist/kolibri/kol-input-email.entry.js +1 -1
  646. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  647. package/dist/kolibri/kol-input-file.entry.js +1 -1
  648. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  649. package/dist/kolibri/kol-input-number.entry.js +1 -1
  650. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  651. package/dist/kolibri/kol-input-password.entry.js +1 -1
  652. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  653. package/dist/kolibri/kol-input-radio-group.entry.js +1 -1
  654. package/dist/kolibri/kol-input-radio-group.entry.js.map +1 -1
  655. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  656. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  657. package/dist/kolibri/kol-input-range.entry.js +1 -1
  658. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  659. package/dist/kolibri/kol-input-text.entry.js +1 -1
  660. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  661. package/dist/kolibri/kol-input.entry.js +1 -1
  662. package/dist/kolibri/kol-input.entry.js.map +1 -1
  663. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  664. package/dist/kolibri/kol-link-button.entry.js +1 -1
  665. package/dist/kolibri/kol-link-button.entry.js.map +1 -1
  666. package/dist/kolibri/kol-link-group.entry.js +1 -1
  667. package/dist/kolibri/kol-link-group.entry.js.map +1 -1
  668. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  669. package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
  670. package/dist/kolibri/kol-link.entry.js +1 -1
  671. package/dist/kolibri/kol-link.entry.js.map +1 -1
  672. package/dist/kolibri/kol-logo.entry.js +1 -1
  673. package/dist/kolibri/kol-modal.entry.js +1 -1
  674. package/dist/kolibri/kol-nav.entry.js +1 -1
  675. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  676. package/dist/kolibri/kol-pagination.entry.js +1 -1
  677. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  678. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  679. package/dist/kolibri/kol-progress.entry.js +1 -1
  680. package/dist/kolibri/kol-quote.entry.js +1 -1
  681. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  682. package/dist/kolibri/kol-select.entry.js +1 -1
  683. package/dist/kolibri/kol-select.entry.js.map +1 -1
  684. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  685. package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
  686. package/dist/kolibri/kol-span-wc.entry.js +4 -0
  687. package/dist/kolibri/kol-span-wc.entry.js.map +1 -0
  688. package/dist/kolibri/kol-span.entry.js +1 -1
  689. package/dist/kolibri/kol-span.entry.js.map +1 -1
  690. package/dist/kolibri/kol-spin.entry.js +1 -1
  691. package/dist/kolibri/kol-split-button.entry.js +1 -1
  692. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  693. package/dist/kolibri/kol-symbol.entry.js +1 -1
  694. package/dist/kolibri/kol-table.entry.js +1 -1
  695. package/dist/kolibri/kol-table.entry.js.map +1 -1
  696. package/dist/kolibri/kol-tabs.entry.js +1 -1
  697. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  698. package/dist/kolibri/kol-textarea.entry.js +1 -1
  699. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  700. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  701. package/dist/kolibri/kol-toast-container.entry.js.map +1 -1
  702. package/dist/kolibri/kol-toast.entry.js +1 -1
  703. package/dist/kolibri/kol-toast.entry.js.map +1 -1
  704. package/dist/kolibri/kol-tooltip-wc.entry.js +4 -0
  705. package/dist/kolibri/kol-tooltip-wc.entry.js.map +1 -0
  706. package/dist/kolibri/kol-version.entry.js +1 -1
  707. package/dist/kolibri/kol-version.entry.js.map +1 -1
  708. package/dist/kolibri/kolibri.esm.js +1 -1
  709. package/dist/kolibri/kolibri.esm.js.map +1 -1
  710. package/dist/kolibri/{label-9ebba50f.js → label-cd38babf.js} +1 -1
  711. package/dist/kolibri/open-0667e658.js +4 -0
  712. package/dist/kolibri/{open-156f7856.js.map → open-0667e658.js.map} +1 -1
  713. package/dist/kolibri/{prop.validators-8c5a4551.js → prop.validators-8eaea103.js} +1 -1
  714. package/dist/kolibri/rows-0a63eafa.js +4 -0
  715. package/dist/kolibri/show-af6f551a.js +4 -0
  716. package/dist/kolibri/{show-8545ccae.js.map → show-af6f551a.js.map} +1 -1
  717. package/dist/kolibri/suggestions-dc8dd0d9.js +4 -0
  718. package/dist/kolibri/tab-index-1f8ee56a.js +4 -0
  719. package/dist/kolibri/toaster-363ac349.js +4 -0
  720. package/dist/kolibri/{toaster-9c6c5ae2.js.map → toaster-363ac349.js.map} +1 -1
  721. package/dist/kolibri/toaster-59df19c4.js +4 -0
  722. package/dist/kolibri/toaster-59df19c4.js.map +1 -0
  723. package/dist/kolibri/tooltip-align-a487cd79.js +4 -0
  724. package/dist/kolibri/validation-82a640a1.js +4 -0
  725. package/dist/kolibri/{validation-4822efd5.js → validation-9f2537b1.js} +1 -1
  726. package/dist/types/core/bootstrap.d.ts +4 -1
  727. package/dist/types/core/component-names.d.ts +64 -0
  728. package/doc/abbr.md +0 -15
  729. package/doc/accordion.md +0 -19
  730. package/doc/alert.md +0 -26
  731. package/doc/avatar.md +0 -13
  732. package/doc/badge.md +0 -24
  733. package/doc/breadcrumb.md +0 -21
  734. package/doc/button-group.md +0 -15
  735. package/doc/button-link.md +0 -17
  736. package/doc/button.md +0 -28
  737. package/doc/card.md +0 -19
  738. package/doc/details.md +0 -15
  739. package/doc/form.md +0 -29
  740. package/doc/heading.md +0 -21
  741. package/doc/icon-font-awesome.md +0 -13
  742. package/doc/icon-icofont.md +0 -13
  743. package/doc/icon.md +0 -29
  744. package/doc/indented-text.md +0 -15
  745. package/doc/input-adapter-leanup.md +0 -27
  746. package/doc/input-checkbox.md +0 -27
  747. package/doc/input-color.md +0 -25
  748. package/doc/input-date.md +0 -25
  749. package/doc/input-email.md +0 -25
  750. package/doc/input-file.md +0 -25
  751. package/doc/input-number.md +0 -25
  752. package/doc/input-password.md +0 -25
  753. package/doc/input-radio-group.md +0 -27
  754. package/doc/input-radio.md +0 -32
  755. package/doc/input-range.md +0 -25
  756. package/doc/input-text.md +0 -25
  757. package/doc/link-button.md +0 -18
  758. package/doc/link-group.md +0 -21
  759. package/doc/link.md +0 -31
  760. package/doc/nav.md +0 -28
  761. package/doc/pagination.md +0 -36
  762. package/doc/quote.md +0 -19
  763. package/doc/select.md +0 -30
  764. package/doc/skip-nav.md +0 -18
  765. package/doc/span.md +0 -14
  766. package/doc/split-button.md +0 -17
  767. package/doc/table.md +49 -34
  768. package/doc/tabs.md +0 -19
  769. package/doc/textarea.md +0 -25
  770. package/doc/toast.md +0 -21
  771. package/doc/toaster.md +0 -24
  772. package/doc/tooltip.md +0 -25
  773. package/doc/version.md +0 -19
  774. package/package.json +1 -1
  775. package/dist/cjs/align-a8382c2d.js +0 -4
  776. package/dist/cjs/dev.utils-8ff2366d.js.map +0 -1
  777. package/dist/cjs/form-field-msg-cee9a7a7.js +0 -4
  778. package/dist/cjs/form-field-msg-cee9a7a7.js.map +0 -1
  779. package/dist/cjs/has-closer-cd8d0ef8.js +0 -4
  780. package/dist/cjs/hide-label-f6851215.js +0 -4
  781. package/dist/cjs/image-source-a9ea5150.js +0 -4
  782. package/dist/cjs/index-8606e84d.js.map +0 -1
  783. package/dist/cjs/kol-alert-wc_3.cjs.entry.js +0 -4
  784. package/dist/cjs/kol-alert-wc_3.cjs.entry.js.map +0 -1
  785. package/dist/cjs/kol-span-wc_2.cjs.entry.js +0 -4
  786. package/dist/cjs/kol-span-wc_2.cjs.entry.js.map +0 -1
  787. package/dist/cjs/open-b73d464a.js +0 -4
  788. package/dist/cjs/rows-b9f39e03.js +0 -4
  789. package/dist/cjs/show-42935746.js +0 -4
  790. package/dist/cjs/toaster-ddf8c471.js +0 -4
  791. package/dist/cjs/toaster-ddf8c471.js.map +0 -1
  792. package/dist/cjs/toaster-fc0622bd.js +0 -4
  793. package/dist/cjs/toaster-fc0622bd.js.map +0 -1
  794. package/dist/components/component.js +0 -4
  795. package/dist/components/component.js.map +0 -1
  796. package/dist/components/component10.js +0 -4
  797. package/dist/components/component10.js.map +0 -1
  798. package/dist/components/component11.js +0 -4
  799. package/dist/components/component11.js.map +0 -1
  800. package/dist/components/component12.js +0 -4
  801. package/dist/components/component12.js.map +0 -1
  802. package/dist/components/component13.js +0 -4
  803. package/dist/components/component13.js.map +0 -1
  804. package/dist/components/component14.js +0 -4
  805. package/dist/components/component14.js.map +0 -1
  806. package/dist/components/component15.js +0 -4
  807. package/dist/components/component15.js.map +0 -1
  808. package/dist/components/component16.js +0 -4
  809. package/dist/components/component16.js.map +0 -1
  810. package/dist/components/component2.js +0 -4
  811. package/dist/components/component2.js.map +0 -1
  812. package/dist/components/component3.js +0 -4
  813. package/dist/components/component3.js.map +0 -1
  814. package/dist/components/component4.js +0 -4
  815. package/dist/components/component4.js.map +0 -1
  816. package/dist/components/component5.js +0 -4
  817. package/dist/components/component5.js.map +0 -1
  818. package/dist/components/component6.js +0 -4
  819. package/dist/components/component6.js.map +0 -1
  820. package/dist/components/component7.js +0 -4
  821. package/dist/components/component7.js.map +0 -1
  822. package/dist/components/component8.js +0 -4
  823. package/dist/components/component8.js.map +0 -1
  824. package/dist/components/component9.js +0 -4
  825. package/dist/components/component9.js.map +0 -1
  826. package/dist/components/shadow.js +0 -4
  827. package/dist/components/shadow.js.map +0 -1
  828. package/dist/components/shadow2.js +0 -4
  829. package/dist/components/shadow2.js.map +0 -1
  830. package/dist/components/shadow3.js +0 -4
  831. package/dist/components/shadow3.js.map +0 -1
  832. package/dist/esm/app-globals-33e2d739.js +0 -4
  833. package/dist/esm/dev.utils-8d5cefe9.js.map +0 -1
  834. package/dist/esm/form-field-msg-d2bbb1a6.js +0 -4
  835. package/dist/esm/form-field-msg-d2bbb1a6.js.map +0 -1
  836. package/dist/esm/index-c1d028ba.js.map +0 -1
  837. package/dist/esm/kol-alert-wc_3.entry.js +0 -4
  838. package/dist/esm/kol-alert-wc_3.entry.js.map +0 -1
  839. package/dist/esm/kol-span-wc_2.entry.js +0 -4
  840. package/dist/esm/kol-span-wc_2.entry.js.map +0 -1
  841. package/dist/esm/toaster-832ff321.js +0 -4
  842. package/dist/esm/toaster-832ff321.js.map +0 -1
  843. package/dist/esm/toaster-9c6c5ae2.js +0 -4
  844. package/dist/esm/toaster-9c6c5ae2.js.map +0 -1
  845. package/dist/esm/validation-697ec9e5.js +0 -4
  846. package/dist/kolibri/align-a007e3db.js +0 -4
  847. package/dist/kolibri/alignment-7cf13a42.js +0 -4
  848. package/dist/kolibri/app-globals-33e2d739.js +0 -4
  849. package/dist/kolibri/aria-current-9675e9d1.js +0 -4
  850. package/dist/kolibri/controller-icon-90a5af99.js +0 -4
  851. package/dist/kolibri/form-field-msg-d2bbb1a6.js +0 -4
  852. package/dist/kolibri/form-field-msg-d2bbb1a6.js.map +0 -1
  853. package/dist/kolibri/has-closer-a9be38af.js +0 -4
  854. package/dist/kolibri/hide-label-d39d4679.js +0 -4
  855. package/dist/kolibri/icons-1e78352d.js +0 -4
  856. package/dist/kolibri/image-source-20111f07.js +0 -4
  857. package/dist/kolibri/index-c1d028ba.js.map +0 -1
  858. package/dist/kolibri/kol-alert-wc_3.entry.js +0 -4
  859. package/dist/kolibri/kol-alert-wc_3.entry.js.map +0 -1
  860. package/dist/kolibri/kol-span-wc_2.entry.js +0 -4
  861. package/dist/kolibri/kol-span-wc_2.entry.js.map +0 -1
  862. package/dist/kolibri/open-156f7856.js +0 -4
  863. package/dist/kolibri/rows-22867ad4.js +0 -4
  864. package/dist/kolibri/show-8545ccae.js +0 -4
  865. package/dist/kolibri/suggestions-8938bb98.js +0 -4
  866. package/dist/kolibri/tab-index-42e01244.js +0 -4
  867. package/dist/kolibri/toaster-832ff321.js +0 -4
  868. package/dist/kolibri/toaster-9c6c5ae2.js +0 -4
  869. package/dist/kolibri/tooltip-align-d0553e7f.js +0 -4
  870. package/dist/kolibri/validation-697ec9e5.js +0 -4
  871. /package/dist/kolibri/{a11y.tipps-1cea6b3d.js.map → a11y.tipps-4958c1a5.js.map} +0 -0
  872. /package/dist/kolibri/{align-a007e3db.js.map → align-d7e22df2.js.map} +0 -0
  873. /package/dist/kolibri/{alignment-7cf13a42.js.map → alignment-a5283d44.js.map} +0 -0
  874. /package/dist/kolibri/{app-globals-33e2d739.js.map → app-globals-60a3cc97.js.map} +0 -0
  875. /package/dist/kolibri/{aria-current-9675e9d1.js.map → aria-current-7302bccd.js.map} +0 -0
  876. /package/dist/kolibri/{associated.controller-c4487875.js.map → associated.controller-23bbb619.js.map} +0 -0
  877. /package/dist/kolibri/{color-0f13235a.js.map → color-f433be51.js.map} +0 -0
  878. /package/dist/kolibri/{controller-9b0595a1.js.map → controller-0620db4a.js.map} +0 -0
  879. /package/dist/kolibri/{controller-86b9d0e8.js.map → controller-279a9363.js.map} +0 -0
  880. /package/dist/kolibri/{controller-2e3afee2.js.map → controller-4831dcf4.js.map} +0 -0
  881. /package/dist/kolibri/{controller-b6a485f1.js.map → controller-6c7b9f98.js.map} +0 -0
  882. /package/dist/kolibri/{controller-213a22e8.js.map → controller-c7c567e4.js.map} +0 -0
  883. /package/dist/kolibri/{controller-icon-90a5af99.js.map → controller-icon-40ddf7b5.js.map} +0 -0
  884. /package/dist/kolibri/{custom-class-9470f26b.js.map → custom-class-4b2f8a23.js.map} +0 -0
  885. /package/dist/kolibri/{devtools-8368d254.js.map → devtools-a7d12733.js.map} +0 -0
  886. /package/dist/kolibri/{has-closer-a9be38af.js.map → has-closer-2ef69f59.js.map} +0 -0
  887. /package/dist/kolibri/{hide-label-d39d4679.js.map → hide-label-b64d0d0f.js.map} +0 -0
  888. /package/dist/kolibri/{image-source-20111f07.js.map → image-source-31578b35.js.map} +0 -0
  889. /package/dist/kolibri/{index-0e51998c.js.map → index-a42f8d80.js.map} +0 -0
  890. /package/dist/kolibri/{label-9ebba50f.js.map → label-cd38babf.js.map} +0 -0
  891. /package/dist/kolibri/{prop.validators-8c5a4551.js.map → prop.validators-8eaea103.js.map} +0 -0
  892. /package/dist/kolibri/{rows-22867ad4.js.map → rows-0a63eafa.js.map} +0 -0
  893. /package/dist/kolibri/{suggestions-8938bb98.js.map → suggestions-dc8dd0d9.js.map} +0 -0
  894. /package/dist/kolibri/{tab-index-42e01244.js.map → tab-index-1f8ee56a.js.map} +0 -0
  895. /package/dist/kolibri/{tooltip-align-d0553e7f.js.map → tooltip-align-a487cd79.js.map} +0 -0
  896. /package/dist/kolibri/{validation-697ec9e5.js.map → validation-82a640a1.js.map} +0 -0
  897. /package/dist/kolibri/{validation-4822efd5.js.map → validation-9f2537b1.js.map} +0 -0
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ const isObject=t=>"object"==typeof t&&null!==t,isString=(t,e=0)=>"string"==typeof t&&t.length>=e,isStyle=t=>{if("object"!=typeof t||null===t)return isString(t,1);for(const e in t)if(!1===isString(e,1))return!1;return!0},STATE_CHANGE_EVENT=new Event("StateChange"),propagateFocus=(t,e)=>{isObject(t)&&t&&(t.focus=t=>null==e?void 0:e.focus(t))};let processEnv="development";try{processEnv="production"}catch(t){processEnv="production"}const handleSlotContent=(t,e,s)=>{if(t&&e&&"string"==typeof s){const o=t.querySelector(`[slot="${s}"]`);o&&e.appendChild(o)}},showExpertSlot=t=>""===t;export{STATE_CHANGE_EVENT as S,propagateFocus as a,isStyle as b,isObject as c,handleSlotContent as h,isString as i,processEnv as p,showExpertSlot as s};
@@ -0,0 +1 @@
1
+ {"file":"reuse.js","mappings":";;;MAAa,QAAQ,GAAG,CAAC,KAAc,KAAc,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,KAAK;MAEpF,QAAQ,GAAG,CAAC,KAAc,EAAE,SAAS,GAAG,CAAC,KAAc,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,IAAI,UAAU;MAE9G,OAAO,GAAG,CAAC,KAA8B;IACrD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE;QAChD,KAAK,MAAM,QAAQ,IAAI,KAAK,EAAE;YAC7B,IAAI,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC,KAAK,KAAK,EAAE;gBACpC,OAAO,KAAK,CAAC;aACb;SACD;KACD;SAAM;QACN,OAAO,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;KAC1B;IACD,OAAO,IAAI,CAAC;AACb,EAAE;MAKW,kBAAkB,GAAG,IAAI,KAAK,CAAC,aAAa;;MClB5C,cAAc,GAAG,CAA+C,IAAQ,EAAE,GAAO;IAC7F,IAAI,QAAQ,CAAC,IAAI,CAAC,IAAI,IAAI,EAAE;QAC3B,IAAI,CAAC,KAAK,GAAG,CAAC,GAAiB,KAAK,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,KAAK,CAAC,GAAG,CAAC,CAAC;KACpD;AACF,EAAE;IAIS,UAAU,GAAe,cAAc;AAClD,IAAI;IACH,UAAU,GAAG,YAAkC,CAAC;AACjD,CAAC;AAAC,OAAO,CAAC,EAAE;IACX,UAAU,GAAG,YAAY,CAAC;AAC3B,CAAC;MAMY,iBAAiB,GAAG,CAAC,OAAoB,EAAE,OAAoB,EAAE,QAAgB;IAC7F,IAAI,OAAO,IAAI,OAAO,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;QACvD,MAAM,OAAO,GAAG,OAAO,CAAC,aAAa,CAAC,UAAU,QAAQ,IAAI,CAAC,CAAC;QAC9D,IAAI,OAAO,EAAE;YACZ,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;SAC7B;KACD;AACF,EAAE;MAOW,cAAc,GAAG,CAAC,KAAc,KAAK,KAAK,KAAK;;;;","names":[],"sources":["src/utils/validator.ts","src/utils/reuse.ts"],"sourcesContent":["export const isObject = (value: unknown): boolean => typeof value === 'object' && value !== null;\n\nexport const isString = (value: unknown, minLength = 0): boolean => typeof value === 'string' && value.length >= minLength;\n\nexport const isStyle = (style?: Record<string, string>): boolean => {\n\tif (typeof style === 'object' && style !== null) {\n\t\tfor (const property in style) {\n\t\t\tif (isString(property, 1) === false) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t} else {\n\t\treturn isString(style, 1);\n\t}\n\treturn true;\n};\n\n/**\n * Fix event instance for state changes.\n */\nexport const STATE_CHANGE_EVENT = new Event('StateChange');\n","import { isObject } from './validator';\n\nexport const propagateFocus = <H extends HTMLElement, R extends HTMLElement>(host?: H, ref?: R) => {\n\tif (isObject(host) && host) {\n\t\thost.focus = (ops: FocusOptions) => ref?.focus(ops);\n\t}\n};\n\nconst PROCESS_ENVS = ['development', 'production', 'test'] as const;\ntype ProcessEnv = (typeof PROCESS_ENVS)[number];\nexport let processEnv: ProcessEnv = 'development';\ntry {\n\tprocessEnv = process.env.NODE_ENV as ProcessEnv;\n} catch (e) {\n\tprocessEnv = 'production';\n}\n\n/**\n * This function is used to handle the slot content by\n * moving a DOM element to a defined slot element.\n */\nexport const handleSlotContent = (hostRef: HTMLElement, slotRef: HTMLElement, slotName: string) => {\n\tif (hostRef && slotRef && typeof slotName === 'string') {\n\t\tconst content = hostRef.querySelector(`[slot=\"${slotName}\"]`);\n\t\tif (content) {\n\t\t\tslotRef.appendChild(content);\n\t\t}\n\t}\n};\n\n/**\n * This function is used to check if a label is an empty string.\n * @param label The label of the slot\n * @returns True if the label is an empty string\n */\nexport const showExpertSlot = (label: unknown) => label === '';\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{A as watchNumber}from"./prop.validators.js";const validateRows=(a,o)=>{watchNumber(a,"_rows",o,{min:1})};export{validateRows as v};
4
+ import{h as watchNumber}from"./prop.validators.js";const validateRows=(a,o)=>{watchNumber(a,"_rows",o,{min:1})};export{validateRows as v};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{c as watchBoolean}from"./prop.validators.js";const validateShow=(o,a,t)=>{watchBoolean(o,"_show",a,t)};export{validateShow as v};
4
+ import{a as watchBoolean}from"./prop.validators.js";const validateShow=(a,o,t)=>{watchBoolean(a,"_show",o,t)};export{validateShow as v};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{E as watchJsonArrayString,a as a11yHint}from"./prop.validators.js";const validateSuggestions=(s,t)=>{watchJsonArrayString(s,"_suggestions",(s=>"string"==typeof s||"number"==typeof s),t,void 0,{hooks:{afterPatch:s=>{Array.isArray(s)&&s.length&&a11yHint("Property suggestions: Options have accessibility issues in how browsers implemented them and should not be used for now.")}}})};export{validateSuggestions as v};
4
+ import{d as watchJsonArrayString}from"./prop.validators.js";import{a as a11yHint}from"./a11y.tipps.js";const validateSuggestions=(s,t)=>{watchJsonArrayString(s,"_suggestions",(s=>"string"==typeof s||"number"==typeof s),t,void 0,{hooks:{afterPatch:s=>{Array.isArray(s)&&s.length&&a11yHint("Property suggestions: Options have accessibility issues in how browsers implemented them and should not be used for now.")}}})};export{validateSuggestions as v};
@@ -1 +1 @@
1
- {"file":"suggestions.js","mappings":";;;;;MAkBa,mBAAmB,GAAG,CAAC,SAAoC,EAAE,KAA2B;IACpG,oBAAoB,CAAC,SAAS,EAAE,cAAc,EAAE,CAAC,IAAmB,KAAK,OAAO,IAAI,KAAK,QAAQ,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE;QAChJ,KAAK,EAAE;YACN,UAAU,EAAE,CAAC,KAAc;gBAC1B,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,EAAE;oBACzC,QAAQ,CAAC,0HAA0H,CAAC,CAAC;iBACrI;aACD;SACD;KACD,CAAC,CAAC;AACJ;;;;","names":[],"sources":["src/types/props/suggestions.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchJsonArrayString } from '../../utils/prop.validators';\nimport { Stringified } from '../common';\nimport { W3CInputValue } from '../w3c';\nimport { a11yHint } from '../../utils/a11y.tipps';\n\n/* types */\nexport type SuggestionsPropType = Stringified<W3CInputValue[]>;\n\n/**\n * Suggestions to provide for an input.\n */\nexport type PropSuggestions = {\n\tsuggestions: SuggestionsPropType;\n};\n\n/* validator */\nexport const validateSuggestions = (component: Generic.Element.Component, value?: SuggestionsPropType): void => {\n\twatchJsonArrayString(component, '_suggestions', (item: W3CInputValue) => typeof item === 'string' || typeof item === 'number', value, undefined, {\n\t\thooks: {\n\t\t\tafterPatch: (value: unknown) => {\n\t\t\t\tif (Array.isArray(value) && value.length) {\n\t\t\t\t\ta11yHint('Property suggestions: Options have accessibility issues in how browsers implemented them and should not be used for now.');\n\t\t\t\t}\n\t\t\t},\n\t\t},\n\t});\n};\n"],"version":3}
1
+ {"file":"suggestions.js","mappings":";;;;;;MAkBa,mBAAmB,GAAG,CAAC,SAAoC,EAAE,KAA2B;IACpG,oBAAoB,CAAC,SAAS,EAAE,cAAc,EAAE,CAAC,IAAmB,KAAK,OAAO,IAAI,KAAK,QAAQ,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE;QAChJ,KAAK,EAAE;YACN,UAAU,EAAE,CAAC,KAAc;gBAC1B,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,EAAE;oBACzC,QAAQ,CAAC,0HAA0H,CAAC,CAAC;iBACrI;aACD;SACD;KACD,CAAC,CAAC;AACJ;;;;","names":[],"sources":["src/types/props/suggestions.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchJsonArrayString } from '../../utils/prop.validators';\nimport { Stringified } from '../common';\nimport { W3CInputValue } from '../w3c';\nimport { a11yHint } from '../../utils/a11y.tipps';\n\n/* types */\nexport type SuggestionsPropType = Stringified<W3CInputValue[]>;\n\n/**\n * Suggestions to provide for an input.\n */\nexport type PropSuggestions = {\n\tsuggestions: SuggestionsPropType;\n};\n\n/* validator */\nexport const validateSuggestions = (component: Generic.Element.Component, value?: SuggestionsPropType): void => {\n\twatchJsonArrayString(component, '_suggestions', (item: W3CInputValue) => typeof item === 'string' || typeof item === 'number', value, undefined, {\n\t\thooks: {\n\t\t\tafterPatch: (value: unknown) => {\n\t\t\t\tif (Array.isArray(value) && value.length) {\n\t\t\t\t\ta11yHint('Property suggestions: Options have accessibility issues in how browsers implemented them and should not be used for now.');\n\t\t\t\t}\n\t\t\t},\n\t\t},\n\t});\n};\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{b as watchString,w as watchValidator,A as watchNumber,a as a11yHint}from"./prop.validators.js";const validateAlternativeButtonLinkRole=(a,t)=>{watchString(a,"_role",t)},validateAriaControls=(a,t)=>{watchString(a,"_ariaControls",t)},validate=(a,t,e)=>{watchValidator(a,t,(a=>"date"===a||"location"===a||"page"===a||"step"===a||"time"===a||!0===a||!1===a),new Set(["String {data, location, page, step, time}","boolean"]),e)},validateAriaCurrent=(a,t)=>{validate(a,"_ariaCurrent",t)},validateListenAriaCurrent=(a,t)=>{validate(a,"_listenAriaCurrent",t)},options={hooks:{afterPatch:a=>{-1!==a&&0!==a&&a11yHint("Don’t Use Tabindex Greater than 0: https://adrianroselli.com/2014/11/dont-use-tabindex-greater-than-0.html")}}},validateTabIndex=(a,t)=>{watchNumber(a,"_tabIndex",t,options)};export{validateAriaCurrent as a,validateAlternativeButtonLinkRole as b,validateTabIndex as c,validateListenAriaCurrent as d,validateAriaControls as v};
4
+ import{a as a11yHint}from"./a11y.tipps.js";import{h as watchNumber}from"./prop.validators.js";const options={hooks:{afterPatch:a=>{-1!==a&&0!==a&&a11yHint("Don’t Use Tabindex Greater than 0: https://adrianroselli.com/2014/11/dont-use-tabindex-greater-than-0.html")}}},validateTabIndex=(a,t)=>{watchNumber(a,"_tabIndex",t,options)};export{validateTabIndex as v};
@@ -1 +1 @@
1
- {"file":"tab-index.js","mappings":";;;;;MAca,iCAAiC,GAAG,CAAC,SAAoC,EAAE,KAAyC;IAChI,WAAW,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;AACxC;;MCGa,oBAAoB,GAAG,CAAC,SAAoC,EAAE,KAA4B;IACtG,WAAW,CAAC,SAAS,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC;AAChD;;ACKA,MAAM,QAAQ,GAAG,CAAC,SAAoC,EAAE,QAAgB,EAAE,KAA2B;IACpG,cAAc,CACb,SAAS,EACT,QAAQ,EACR,CAAC,KAAK,KAAK,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,UAAU,IAAI,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,KAAK,EACpJ,IAAI,GAAG,CAAC,CAAC,2CAA2C,EAAE,SAAS,CAAC,CAAC,EACjE,KAAK,CACL,CAAC;AACH,CAAC,CAAC;MACW,mBAAmB,GAAG,CAAC,SAAoC,EAAE,KAA2B;IACpG,QAAQ,CAAC,SAAS,EAAE,cAAc,EAAE,KAAK,CAAC,CAAC;AAC5C,EAAE;MACW,yBAAyB,GAAG,CAAC,SAAoC,EAAE,KAA2B;IAC1G,QAAQ,CAAC,SAAS,EAAE,oBAAoB,EAAE,KAAK,CAAC,CAAC;AAClD;;AC9BA,MAAM,OAAO,GAAuB;IACnC,KAAK,EAAE;QACN,UAAU,EAAE,CAAC,KAAK;YACjB,IAAI,KAAK,KAAK,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC,EAAE;gBAChC,QAAQ,CAAC,4GAA4G,CAAC,CAAC;aACvH;SACD;KACD;CACD,CAAC;MAKW,gBAAgB,GAAG,CAAC,SAAoC,EAAE,KAAc;IACpF,WAAW,CAAC,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;AACrD;;;;","names":[],"sources":["src/types/props/alternative-button-link-role.ts","src/types/props/aria-controls.ts","src/types/props/aria-current.ts","src/utils/validators/tab-index.ts"],"sourcesContent":["/* types */\nimport type { Generic } from 'adopted-style-sheets';\nimport { watchString } from '../../utils/prop.validators';\n\nexport type AlternativeButtonLinkRolePropType = 'button' | 'link' | 'tab';\n\n/**\n * Defines the role of the components primary element.\n */\nexport type PropAlternativeButtonLinkRole = {\n\trole: AlternativeButtonLinkRolePropType;\n};\n\n/* validator */\nexport const validateAlternativeButtonLinkRole = (component: Generic.Element.Component, value?: AlternativeButtonLinkRolePropType) => {\n\twatchString(component, '_role', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { watchString } from '../../utils/prop.validators';\n\n/* types */\n/**\n * Defines which elements are being controlled. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls)\n * @deprecated\n */\ntype AriaControlsPropType = string;\n\n/**\n * @deprecated\n */\nexport type PropAriaControls = {\n\tariaControls: AriaControlsPropType;\n};\n\n/* validator */\nexport const validateAriaControls = (component: Generic.Element.Component, value?: AriaControlsPropType): void => {\n\twatchString(component, '_ariaControls', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { watchValidator } from '../../utils/prop.validators';\n\n/* types */\n/**\n * Marks the element as the selected in a group of related elements. Can be one of the following: `date` | `location` | `page` | `step` | `time` | `true`.\n * (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-current)\n */\nexport type AriaCurrentPropType = 'date' | 'location' | 'page' | 'step' | 'time' | boolean;\n\n/**\n * @deprecated use `PropListenAriaCurrent` instead\n */\nexport type PropAriaCurrent = {\n\t/**\n\t * @deprecated use `listenAriaCurrent` instead\n\t */\n\tariaCurrent: AriaCurrentPropType;\n};\n\nexport type PropListenAriaCurrent = {\n\tlistenAriaCurrent: AriaCurrentPropType;\n};\n\n/* validator */\nconst validate = (component: Generic.Element.Component, propName: string, value?: AriaCurrentPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\tpropName,\n\t\t(value) => value === 'date' || value === 'location' || value === 'page' || value === 'step' || value === 'time' || value === true || value === false,\n\t\tnew Set(['String {data, location, page, step, time}', 'boolean']),\n\t\tvalue,\n\t);\n};\nexport const validateAriaCurrent = (component: Generic.Element.Component, value?: AriaCurrentPropType): void => {\n\tvalidate(component, '_ariaCurrent', value);\n};\nexport const validateListenAriaCurrent = (component: Generic.Element.Component, value?: AriaCurrentPropType): void => {\n\tvalidate(component, '_listenAriaCurrent', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { a11yHint } from '../a11y.tipps';\nimport { watchNumber, WatchNumberOptions } from '../prop.validators';\n\n/**\n * Accessibility hints\n * - https://adrianroselli.com/2014/11/dont-use-tabindex-greater-than-0.html\n */\n\nconst options: WatchNumberOptions = {\n\thooks: {\n\t\tafterPatch: (value) => {\n\t\t\tif (value !== -1 && value !== 0) {\n\t\t\t\ta11yHint(`Don’t Use Tabindex Greater than 0: https://adrianroselli.com/2014/11/dont-use-tabindex-greater-than-0.html`);\n\t\t\t}\n\t\t},\n\t},\n};\n\n/**\n * Diese Methode validiert das Property und setzt den State, wenn es valide ist.\n */\nexport const validateTabIndex = (component: Generic.Element.Component, value?: number): void => {\n\twatchNumber(component, '_tabIndex', value, options);\n};\n"],"version":3}
1
+ {"file":"tab-index.js","mappings":";;;;;;AAUA,MAAM,OAAO,GAAuB;IACnC,KAAK,EAAE;QACN,UAAU,EAAE,CAAC,KAAK;YACjB,IAAI,KAAK,KAAK,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC,EAAE;gBAChC,QAAQ,CAAC,4GAA4G,CAAC,CAAC;aACvH;SACD;KACD;CACD,CAAC;MAKW,gBAAgB,GAAG,CAAC,SAAoC,EAAE,KAAc;IACpF,WAAW,CAAC,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;AACrD;;;;","names":[],"sources":["src/utils/validators/tab-index.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { a11yHint } from '../a11y.tipps';\nimport { watchNumber, WatchNumberOptions } from '../prop.validators';\n\n/**\n * Accessibility hints\n * - https://adrianroselli.com/2014/11/dont-use-tabindex-greater-than-0.html\n */\n\nconst options: WatchNumberOptions = {\n\thooks: {\n\t\tafterPatch: (value) => {\n\t\t\tif (value !== -1 && value !== 0) {\n\t\t\t\ta11yHint(`Don’t Use Tabindex Greater than 0: https://adrianroselli.com/2014/11/dont-use-tabindex-greater-than-0.html`);\n\t\t\t}\n\t\t},\n\t},\n};\n\n/**\n * Diese Methode validiert das Property und setzt den State, wenn es valide ist.\n */\nexport const validateTabIndex = (component: Generic.Element.Component, value?: number): void => {\n\twatchNumber(component, '_tabIndex', value, options);\n};\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{v as validateAlignment}from"./align.js";const validateTooltipAlign=(i,l)=>{validateAlignment(i,"_tooltipAlign",l)};export{validateTooltipAlign as v};
4
+ import{v as validateAlignment}from"./alignment.js";const validateTooltipAlign=(i,t)=>{validateAlignment(i,"_tooltipAlign",t)};export{validateTooltipAlign as v};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{E as watchJsonArrayString,F as uiUxHintMillerscheZahl}from"./prop.validators.js";const watchNavLinks=(t,a,s)=>{watchJsonArrayString(a,"_links",(t=>"object"==typeof t&&("string"==typeof t._href||"string"==typeof t._label)),s),uiUxHintMillerscheZahl(t,a.state._links.length)};export{watchNavLinks as w};
4
+ import{w as watchValidator}from"./prop.validators.js";const watchHeadingLevel=(e,a)=>{watchValidator(e,"_level",(e=>"number"==typeof e&&0<=e&&e<=6),new Set(["Number {0, 1, 2, 3, 4, 5, 6}"]),a,{defaultValue:1,required:!0})};export{watchHeadingLevel as w};
@@ -1 +1 @@
1
- {"file":"validation.js","mappings":";;;;;MAUa,aAAa,GAAG,CAC5B,SAAiB,EACjB,SAIC,EACD,KAAsC;IAEtC,oBAAoB,CACnB,SAAS,EACT,QAAQ,EACR,CAAC,IAAI,KAAK,OAAO,IAAI,KAAK,QAAQ,KAAK,OAAQ,IAAiB,CAAC,KAAK,KAAK,QAAQ,IAAI,OAAQ,IAAkB,CAAC,MAAM,KAAK,QAAQ,CAAC,EACtI,KAAK,CACL,CAAC;IACF,sBAAsB,CAAC,SAAS,EAAE,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AAClE;;;;","names":[],"sources":["src/components/nav/validation.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { Stringified } from '../../types/common';\nimport { HrefProp } from '../../types/props/href';\nimport { LabelProp } from '../../types/props/label';\nimport { uiUxHintMillerscheZahl } from '../../utils/a11y.tipps';\nimport { watchJsonArrayString } from '../../utils/prop.validators';\n\ntype HrefOrLabelProp = HrefProp | LabelProp;\n\nexport const watchNavLinks = (\n\tclassName: string,\n\tcomponent: Generic.Element.Component & {\n\t\tstate: {\n\t\t\t_links: HrefOrLabelProp[];\n\t\t};\n\t},\n\tvalue?: Stringified<HrefOrLabelProp[]>,\n): void => {\n\twatchJsonArrayString(\n\t\tcomponent,\n\t\t'_links',\n\t\t(link) => typeof link === 'object' && (typeof (link as HrefProp)._href === 'string' || typeof (link as LabelProp)._label === 'string'),\n\t\tvalue,\n\t);\n\tuiUxHintMillerscheZahl(className, component.state._links.length);\n};\n"],"version":3}
1
+ {"file":"validation.js","mappings":";;;;;MAIa,iBAAiB,GAAG,CAAC,SAAoC,EAAE,KAAc;IACrF,cAAc,CACb,SAAS,EACT,QAAQ,EACR,CAAC,KAAK;QACL,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,IAAI,KAAK,IAAI,KAAK,IAAI,CAAC,CAAC;KAC7D,EACD,IAAI,GAAG,CAAC,CAAC,8BAA8B,CAAC,CAAC,EACzC,KAAK,EACL;QAEC,YAAY,EAAE,CAAC;QACf,QAAQ,EAAE,IAAI;KACd,CACD,CAAC;AACH;;;;","names":[],"sources":["src/components/heading/validation.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchValidator } from '../../utils/prop.validators';\n\nexport const watchHeadingLevel = (component: Generic.Element.Component, value?: number): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t'_level',\n\t\t(value): boolean => {\n\t\t\treturn typeof value === 'number' && 0 <= value && value <= 6;\n\t\t},\n\t\tnew Set(['Number {0, 1, 2, 3, 4, 5, 6}']),\n\t\tvalue,\n\t\t{\n\t\t\t// TODO: options not in the validator\n\t\t\tdefaultValue: 1,\n\t\t\trequired: true,\n\t\t},\n\t);\n};\n"],"version":3}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{c as uiUxHintMillerscheZahl}from"./a11y.tipps.js";import{d as watchJsonArrayString}from"./prop.validators.js";const watchNavLinks=(t,s,a)=>{watchJsonArrayString(s,"_links",(t=>"object"==typeof t&&("string"==typeof t._href||"string"==typeof t._label)),a),uiUxHintMillerscheZahl(t,s.state._links.length)};export{watchNavLinks as w};
@@ -0,0 +1 @@
1
+ {"file":"validation2.js","mappings":";;;;;;MAUa,aAAa,GAAG,CAC5B,SAAiB,EACjB,SAIC,EACD,KAAsC;IAEtC,oBAAoB,CACnB,SAAS,EACT,QAAQ,EACR,CAAC,IAAI,KAAK,OAAO,IAAI,KAAK,QAAQ,KAAK,OAAQ,IAAiB,CAAC,KAAK,KAAK,QAAQ,IAAI,OAAQ,IAAkB,CAAC,MAAM,KAAK,QAAQ,CAAC,EACtI,KAAK,CACL,CAAC;IACF,sBAAsB,CAAC,SAAS,EAAE,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AAClE;;;;","names":[],"sources":["src/components/nav/validation.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { Stringified } from '../../types/common';\nimport { HrefProp } from '../../types/props/href';\nimport { LabelProp } from '../../types/props/label';\nimport { uiUxHintMillerscheZahl } from '../../utils/a11y.tipps';\nimport { watchJsonArrayString } from '../../utils/prop.validators';\n\ntype HrefOrLabelProp = HrefProp | LabelProp;\n\nexport const watchNavLinks = (\n\tclassName: string,\n\tcomponent: Generic.Element.Component & {\n\t\tstate: {\n\t\t\t_links: HrefOrLabelProp[];\n\t\t};\n\t},\n\tvalue?: Stringified<HrefOrLabelProp[]>,\n): void => {\n\twatchJsonArrayString(\n\t\tcomponent,\n\t\t'_links',\n\t\t(link) => typeof link === 'object' && (typeof (link as HrefProp)._href === 'string' || typeof (link as LabelProp)._label === 'string'),\n\t\tvalue,\n\t);\n\tuiUxHintMillerscheZahl(className, component.state._links.length);\n};\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{L as Log}from"./dev.utils-8d5cefe9.js";const a11yCache=new Set,a11yHint=(e,i)=>{(!1===a11yCache.has(e)||(null==i?void 0:i.force))&&(a11yCache.add(e),Log.debug([e].concat((null==i?void 0:i.details)||[]),{classifier:"✋ a11y",forceLog:!!(null==i?void 0:i.force),overwriteStyle:"; background-color: #09f"}))},deprecatedCache=new Set,deprecatedHint=(e,i)=>{(!1===deprecatedCache.has(e)||(null==i?void 0:i.force))&&(deprecatedCache.add(e),Log.warn([e].concat((null==i?void 0:i.details)||[]),{classifier:"🔥 deprecated",forceLog:!!(null==i?void 0:i.force),overwriteStyle:"; background-color: #f00"}))},devCache=new Set,devHint=(e,i)=>{(!1===devCache.has(e)||(null==i?void 0:i.force))&&(devCache.add(e),Log.debug([e].concat((null==i?void 0:i.details)||[]),{classifier:"💻 dev",forceLog:!!(null==i?void 0:i.force),overwriteStyle:"; background-color: #f09"}))},devWarning=(e,i)=>{(!1===devCache.has(e)||(null==i?void 0:i.force))&&(devCache.add(e),Log.warn([e].concat((null==i?void 0:i.details)||[]),{classifier:"⚠️ dev",forceLog:!!(null==i?void 0:i.force),overwriteStyle:"; background-color: #f09"}))},featureCache=new Set,featureHint=(e,i=!1,a)=>{(!1===featureCache.has(e)||(null==a?void 0:a.force))&&(featureCache.add(e),e+=!0===i?" ✅":"",Log.debug([e].concat((null==a?void 0:a.details)||[]),{classifier:"🌟 feature",forceLog:!!(null==a?void 0:a.force),overwriteStyle:"; background-color: #309"}))};devHint("Wir freuen uns über jedes Feedback, Kommentare, Screenshots oder Demo-Links von einer auf KoliBri-basierenden Anwendung (kolibri@itzbund.de). Vielen Dank!");const uiUxCache=new Set,uiUxHint=(e,i)=>{(!1===uiUxCache.has(e)||(null==i?void 0:i.force))&&(uiUxCache.add(e),Log.debug([e].concat((null==i?void 0:i.details)||[]),{classifier:"📑 ui/ux",forceLog:!!(null==i?void 0:i.force),overwriteStyle:"; background-color: #060;"}))},a11yHintDisabled=()=>{a11yHint('"Disabled" schränkt die Zugänglichkeit und Sichtbarkeit ein. Wir empfehlen aus Sicht der Barrierefreiheit readonly- statt disabled-Attribut zu verwenden.\n- https://uxdesign.cc/is-it-ok-to-grey-out-disabled-buttons-8afa74a0fae')},a11yHintLabelingLandmarks=e=>{"string"==typeof e&&""!==e||a11yHint("Manche Strukturelemente, wie bspw. der nav-Tag, können mehrfach in einer Webseite verwendet werden. Damit die gleichnamigen Strukturelemente voneinander unterschieden werden können, ist es erforderlich ein Aria-Label zu setzen.\n- https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Navigation_Role#accessibility_concerns")},uiUxHintMillerscheZahl=(e,i=8)=>{i>7&&uiUxHint(`[${e}] Innerhalb von Navigationsstrukturen wird empfohlen nicht mehr als 7 Menüpunkte zu verwenden.\n\nLinks:\n- https://de.ryte.com/wiki/Millersche_Zahl\n- https://de.wikipedia.org/wiki/Millersche_Zahl`)};export{a11yHint as a,a11yHintLabelingLandmarks as b,uiUxHintMillerscheZahl as c,devHint as d,deprecatedHint as e,featureHint as f,a11yHintDisabled as g,devWarning as h,uiUxHint as u};
4
+ import{L as Log}from"./dev.utils-c85f7f52.js";const a11yCache=new Set,a11yHint=(e,i)=>{(!1===a11yCache.has(e)||(null==i?void 0:i.force))&&(a11yCache.add(e),Log.debug([e].concat((null==i?void 0:i.details)||[]),{classifier:"✋ a11y",forceLog:!!(null==i?void 0:i.force),overwriteStyle:"; background-color: #09f"}))},deprecatedCache=new Set,deprecatedHint=(e,i)=>{(!1===deprecatedCache.has(e)||(null==i?void 0:i.force))&&(deprecatedCache.add(e),Log.warn([e].concat((null==i?void 0:i.details)||[]),{classifier:"🔥 deprecated",forceLog:!!(null==i?void 0:i.force),overwriteStyle:"; background-color: #f00"}))},devCache=new Set,devHint=(e,i)=>{(!1===devCache.has(e)||(null==i?void 0:i.force))&&(devCache.add(e),Log.debug([e].concat((null==i?void 0:i.details)||[]),{classifier:"💻 dev",forceLog:!!(null==i?void 0:i.force),overwriteStyle:"; background-color: #f09"}))},devWarning=(e,i)=>{(!1===devCache.has(e)||(null==i?void 0:i.force))&&(devCache.add(e),Log.warn([e].concat((null==i?void 0:i.details)||[]),{classifier:"⚠️ dev",forceLog:!!(null==i?void 0:i.force),overwriteStyle:"; background-color: #f09"}))},featureCache=new Set,featureHint=(e,i=!1,a)=>{(!1===featureCache.has(e)||(null==a?void 0:a.force))&&(featureCache.add(e),e+=!0===i?" ✅":"",Log.debug([e].concat((null==a?void 0:a.details)||[]),{classifier:"🌟 feature",forceLog:!!(null==a?void 0:a.force),overwriteStyle:"; background-color: #309"}))};devHint("Wir freuen uns über jedes Feedback, Kommentare, Screenshots oder Demo-Links von einer auf KoliBri-basierenden Anwendung (kolibri@itzbund.de). Vielen Dank!");const uiUxCache=new Set,uiUxHint=(e,i)=>{(!1===uiUxCache.has(e)||(null==i?void 0:i.force))&&(uiUxCache.add(e),Log.debug([e].concat((null==i?void 0:i.details)||[]),{classifier:"📑 ui/ux",forceLog:!!(null==i?void 0:i.force),overwriteStyle:"; background-color: #060;"}))},a11yHintDisabled=()=>{a11yHint('"Disabled" schränkt die Zugänglichkeit und Sichtbarkeit ein. Wir empfehlen aus Sicht der Barrierefreiheit readonly- statt disabled-Attribut zu verwenden.\n- https://uxdesign.cc/is-it-ok-to-grey-out-disabled-buttons-8afa74a0fae')},a11yHintLabelingLandmarks=e=>{"string"==typeof e&&""!==e||a11yHint("Manche Strukturelemente, wie bspw. der nav-Tag, können mehrfach in einer Webseite verwendet werden. Damit die gleichnamigen Strukturelemente voneinander unterschieden werden können, ist es erforderlich ein Aria-Label zu setzen.\n- https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Navigation_Role#accessibility_concerns")},uiUxHintMillerscheZahl=(e,i=8)=>{i>7&&uiUxHint(`[${e}] Innerhalb von Navigationsstrukturen wird empfohlen nicht mehr als 7 Menüpunkte zu verwenden.\n\nLinks:\n- https://de.ryte.com/wiki/Millersche_Zahl\n- https://de.wikipedia.org/wiki/Millersche_Zahl`)};export{a11yHint as a,a11yHintLabelingLandmarks as b,uiUxHintMillerscheZahl as c,devHint as d,deprecatedHint as e,featureHint as f,a11yHintDisabled as g,devWarning as h,uiUxHint as u};
@@ -1 +1 @@
1
- {"file":"a11y.tipps-1cea6b3d.js","mappings":";;;;;AAOA,MAAM,SAAS,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O,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,EAAE,EAAE;QAC9C,QAAQ,CACP,qVAAqV,CACrV,CAAC;KACF;AACF,EAAE;MAEW,sBAAsB,GAAG,CAAC,SAAiB,EAAE,MAAM,GAAG,CAAC;IACnE,IAAI,MAAM,GAAG,CAAC,EAAE;QACf,QAAQ,CACP,IAAI,SAAS;;;;gDAIgC,CAC7C,CAAC;KACF;AACF;;;;","names":[],"sources":["src/utils/a11y.tipps.ts"],"sourcesContent":["import { Log } from './dev.utils';\n\ntype HintOptions = {\n\tdetails?: unknown[];\n\tforce?: boolean;\n};\n\nconst a11yCache: Set<string> = new Set();\nexport const a11yHint = (msg: string, options?: HintOptions): void => {\n\tif (a11yCache.has(msg) === false || !!options?.force) {\n\t\ta11yCache.add(msg);\n\t\tLog.debug(([msg] as unknown[]).concat(options?.details || []), {\n\t\t\tclassifier: `✋ a11y`,\n\t\t\tforceLog: !!options?.force,\n\t\t\toverwriteStyle: '; background-color: #09f',\n\t\t});\n\t}\n};\n\nconst deprecatedCache: Set<string> = new Set();\nexport const deprecatedHint = (msg: string, options?: HintOptions): void => {\n\tif (deprecatedCache.has(msg) === false || !!options?.force) {\n\t\tdeprecatedCache.add(msg);\n\t\tLog.warn(([msg] as unknown[]).concat(options?.details || []), {\n\t\t\tclassifier: `🔥 deprecated`,\n\t\t\tforceLog: !!options?.force,\n\t\t\toverwriteStyle: '; background-color: #f00',\n\t\t});\n\t}\n};\n\nconst devCache: Set<string> = new Set();\nexport const devHint = (msg: string, options?: HintOptions): void => {\n\tif (devCache.has(msg) === false || !!options?.force) {\n\t\tdevCache.add(msg);\n\t\tLog.debug(([msg] as unknown[]).concat(options?.details || []), {\n\t\t\tclassifier: `💻 dev`,\n\t\t\tforceLog: !!options?.force,\n\t\t\toverwriteStyle: '; background-color: #f09',\n\t\t});\n\t}\n};\nexport const devWarning = (msg: string, options?: HintOptions): void => {\n\tif (devCache.has(msg) === false || !!options?.force) {\n\t\tdevCache.add(msg);\n\t\tLog.warn(([msg] as unknown[]).concat(options?.details || []), {\n\t\t\tclassifier: `⚠️ dev`,\n\t\t\tforceLog: !!options?.force,\n\t\t\toverwriteStyle: '; background-color: #f09',\n\t\t});\n\t}\n};\n\nconst featureCache: Set<string> = new Set();\nexport const featureHint = (msg: string, done = false, options?: HintOptions): void => {\n\tif (featureCache.has(msg) === false || !!options?.force) {\n\t\tfeatureCache.add(msg);\n\t\tmsg += done === true ? ' ✅' : '';\n\t\tLog.debug(([msg] as unknown[]).concat(options?.details || []), {\n\t\t\tclassifier: `🌟 feature`,\n\t\t\tforceLog: !!options?.force,\n\t\t\toverwriteStyle: '; background-color: #309',\n\t\t});\n\t}\n};\ndevHint(\n\t`Wir freuen uns über jedes Feedback, Kommentare, Screenshots oder Demo-Links von einer auf KoliBri-basierenden Anwendung (kolibri@itzbund.de). Vielen Dank!`,\n);\n\nconst uiUxCache: Set<string> = new Set();\nexport const uiUxHint = (msg: string, options?: HintOptions): void => {\n\tif (uiUxCache.has(msg) === false || !!options?.force) {\n\t\tuiUxCache.add(msg);\n\t\tLog.debug(([msg] as unknown[]).concat(options?.details || []), {\n\t\t\tclassifier: `📑 ui/ux`,\n\t\t\tforceLog: !!options?.force,\n\t\t\toverwriteStyle: '; background-color: #060;',\n\t\t});\n\t}\n};\n\nexport const a11yHintDisabled = (): void => {\n\ta11yHint(\n\t\t`\"Disabled\" schränkt die Zugänglichkeit und Sichtbarkeit ein. Wir empfehlen aus Sicht der Barrierefreiheit readonly- statt disabled-Attribut zu verwenden.\\n- https://uxdesign.cc/is-it-ok-to-grey-out-disabled-buttons-8afa74a0fae`,\n\t);\n};\n\nexport const a11yHintLabelingLandmarks = (value: unknown): void => {\n\tif (typeof value !== 'string' || value === '') {\n\t\ta11yHint(\n\t\t\t`Manche Strukturelemente, wie bspw. der nav-Tag, können mehrfach in einer Webseite verwendet werden. Damit die gleichnamigen Strukturelemente voneinander unterschieden werden können, ist es erforderlich ein Aria-Label zu setzen.\\n- https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Navigation_Role#accessibility_concerns`,\n\t\t);\n\t}\n};\n\nexport const uiUxHintMillerscheZahl = (className: string, length = 8): void => {\n\tif (length > 7) {\n\t\tuiUxHint(\n\t\t\t`[${className}] Innerhalb von Navigationsstrukturen wird empfohlen nicht mehr als 7 Menüpunkte zu verwenden.\n\nLinks:\n- https://de.ryte.com/wiki/Millersche_Zahl\n- https://de.wikipedia.org/wiki/Millersche_Zahl`,\n\t\t);\n\t}\n};\n"],"version":3}
1
+ {"file":"a11y.tipps-4958c1a5.js","mappings":";;;;;AAOA,MAAM,SAAS,GAAgB,IAAI,GAAG,EAAE,CAAC;MAC5B,QAAQ,GAAG,CAAC,GAAW,EAAE,OAAqB;IAC1D,IAAI,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,KAAK,IAAI,CAAC,EAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,CAAA,EAAE;QACrD,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACnB,GAAG,CAAC,KAAK,CAAE,CAAC,GAAG,CAAe,CAAC,MAAM,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,KAAI,EAAE,CAAC,EAAE;YAC9D,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,CAAC,EAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,CAAA;YAC1B,cAAc,EAAE,0BAA0B;SAC1C,CAAC,CAAC;KACH;AACF,EAAE;AAEF,MAAM,eAAe,GAAgB,IAAI,GAAG,EAAE,CAAC;MAClC,cAAc,GAAG,CAAC,GAAW,EAAE,OAAqB;IAChE,IAAI,eAAe,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,KAAK,IAAI,CAAC,EAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,CAAA,EAAE;QAC3D,eAAe,CAAC,GAAG,CAAC,GAAG,CAA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AAC,GAAG,CAAe,CAAC,MAAM,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,KAAI,EAAE,CAAC,EAAE;YAC9D,UAAU,EAAE,UAAU;YACtB,QAAQ,EAAE,CAAC,EAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,CAAA;YAC1B,cAAc,EAAE,2BAA2B;SAC3C,CAAC,CAAC;KACH;AACF,EAAE;MAEW,gBAAgB,GAAG;IAC/B,QAAQ,CACP,oOAAoO,CACpO,CAAC;AACH,EAAE;MAEW,yBAAyB,GAAG,CAAC,KAAc;IACvD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,EAAE,EAAE;QAC9C,QAAQ,CACP,qVAAqV,CACrV,CAAC;KACF;AACF,EAAE;MAEW,sBAAsB,GAAG,CAAC,SAAiB,EAAE,MAAM,GAAG,CAAC;IACnE,IAAI,MAAM,GAAG,CAAC,EAAE;QACf,QAAQ,CACP,IAAI,SAAS;;;;gDAIgC,CAC7C,CAAC;KACF;AACF;;;;","names":[],"sources":["src/utils/a11y.tipps.ts"],"sourcesContent":["import { Log } from './dev.utils';\n\ntype HintOptions = {\n\tdetails?: unknown[];\n\tforce?: boolean;\n};\n\nconst a11yCache: Set<string> = new Set();\nexport const a11yHint = (msg: string, options?: HintOptions): void => {\n\tif (a11yCache.has(msg) === false || !!options?.force) {\n\t\ta11yCache.add(msg);\n\t\tLog.debug(([msg] as unknown[]).concat(options?.details || []), {\n\t\t\tclassifier: `✋ a11y`,\n\t\t\tforceLog: !!options?.force,\n\t\t\toverwriteStyle: '; background-color: #09f',\n\t\t});\n\t}\n};\n\nconst deprecatedCache: Set<string> = new Set();\nexport const deprecatedHint = (msg: string, options?: HintOptions): void => {\n\tif (deprecatedCache.has(msg) === false || !!options?.force) {\n\t\tdeprecatedCache.add(msg);\n\t\tLog.warn(([msg] as unknown[]).concat(options?.details || []), {\n\t\t\tclassifier: `🔥 deprecated`,\n\t\t\tforceLog: !!options?.force,\n\t\t\toverwriteStyle: '; background-color: #f00',\n\t\t});\n\t}\n};\n\nconst devCache: Set<string> = new Set();\nexport const devHint = (msg: string, options?: HintOptions): void => {\n\tif (devCache.has(msg) === false || !!options?.force) {\n\t\tdevCache.add(msg);\n\t\tLog.debug(([msg] as unknown[]).concat(options?.details || []), {\n\t\t\tclassifier: `💻 dev`,\n\t\t\tforceLog: !!options?.force,\n\t\t\toverwriteStyle: '; background-color: #f09',\n\t\t});\n\t}\n};\nexport const devWarning = (msg: string, options?: HintOptions): void => {\n\tif (devCache.has(msg) === false || !!options?.force) {\n\t\tdevCache.add(msg);\n\t\tLog.warn(([msg] as unknown[]).concat(options?.details || []), {\n\t\t\tclassifier: `⚠️ dev`,\n\t\t\tforceLog: !!options?.force,\n\t\t\toverwriteStyle: '; background-color: #f09',\n\t\t});\n\t}\n};\n\nconst featureCache: Set<string> = new Set();\nexport const featureHint = (msg: string, done = false, options?: HintOptions): void => {\n\tif (featureCache.has(msg) === false || !!options?.force) {\n\t\tfeatureCache.add(msg);\n\t\tmsg += done === true ? ' ✅' : '';\n\t\tLog.debug(([msg] as unknown[]).concat(options?.details || []), {\n\t\t\tclassifier: `🌟 feature`,\n\t\t\tforceLog: !!options?.force,\n\t\t\toverwriteStyle: '; background-color: #309',\n\t\t});\n\t}\n};\ndevHint(\n\t`Wir freuen uns über jedes Feedback, Kommentare, Screenshots oder Demo-Links von einer auf KoliBri-basierenden Anwendung (kolibri@itzbund.de). Vielen Dank!`,\n);\n\nconst uiUxCache: Set<string> = new Set();\nexport const uiUxHint = (msg: string, options?: HintOptions): void => {\n\tif (uiUxCache.has(msg) === false || !!options?.force) {\n\t\tuiUxCache.add(msg);\n\t\tLog.debug(([msg] as unknown[]).concat(options?.details || []), {\n\t\t\tclassifier: `📑 ui/ux`,\n\t\t\tforceLog: !!options?.force,\n\t\t\toverwriteStyle: '; background-color: #060;',\n\t\t});\n\t}\n};\n\nexport const a11yHintDisabled = (): void => {\n\ta11yHint(\n\t\t`\"Disabled\" schränkt die Zugänglichkeit und Sichtbarkeit ein. Wir empfehlen aus Sicht der Barrierefreiheit readonly- statt disabled-Attribut zu verwenden.\\n- https://uxdesign.cc/is-it-ok-to-grey-out-disabled-buttons-8afa74a0fae`,\n\t);\n};\n\nexport const a11yHintLabelingLandmarks = (value: unknown): void => {\n\tif (typeof value !== 'string' || value === '') {\n\t\ta11yHint(\n\t\t\t`Manche Strukturelemente, wie bspw. der nav-Tag, können mehrfach in einer Webseite verwendet werden. Damit die gleichnamigen Strukturelemente voneinander unterschieden werden können, ist es erforderlich ein Aria-Label zu setzen.\\n- https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Navigation_Role#accessibility_concerns`,\n\t\t);\n\t}\n};\n\nexport const uiUxHintMillerscheZahl = (className: string, length = 8): void => {\n\tif (length > 7) {\n\t\tuiUxHint(\n\t\t\t`[${className}] Innerhalb von Navigationsstrukturen wird empfohlen nicht mehr als 7 Menüpunkte zu verwenden.\n\nLinks:\n- https://de.ryte.com/wiki/Millersche_Zahl\n- https://de.wikipedia.org/wiki/Millersche_Zahl`,\n\t\t);\n\t}\n};\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{v as validateAlignment}from"./alignment-7cf13a42.js";const validateAlign=(a,i)=>{validateAlignment(a,"_align",i)};export{validateAlign as v};
4
+ import{v as validateAlignment}from"./alignment-a5283d44.js";const validateAlign=(a,i)=>{validateAlignment(a,"_align",i)};export{validateAlign as v};
@@ -1 +1 @@
1
- {"file":"align-a007e3db.js","mappings":";;;;;MAiBa,aAAa,GAAG,CAAC,SAAoC,EAAE,KAAqB;IACxF,iBAAiB,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;AAC/C;;;;","names":[],"sources":["src/types/props/align.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { validateAlignment } from '../../utils/validators/alignment';\n\n/* types */\ntype HorizontalAlign = 'left' | 'right';\ntype VerticalAlign = 'top' | 'bottom';\nexport type AlignPropType = HorizontalAlign | VerticalAlign;\n\n/**\n * Defines where to show the element preferably: top, right, bottom or left.\n */\nexport type PropAlign = {\n\talign: AlignPropType;\n};\n\n/* validator */\nexport const validateAlign = (component: Generic.Element.Component, value?: AlignPropType): void => {\n\tvalidateAlignment(component, '_align', value);\n};\n"],"version":3}
1
+ {"file":"align-d7e22df2.js","mappings":";;;;;MAiBa,aAAa,GAAG,CAAC,SAAoC,EAAE,KAAqB;IACxF,iBAAiB,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;AAC/C;;;;","names":[],"sources":["src/types/props/align.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { validateAlignment } from '../../utils/validators/alignment';\n\n/* types */\ntype HorizontalAlign = 'left' | 'right';\ntype VerticalAlign = 'top' | 'bottom';\nexport type AlignPropType = HorizontalAlign | VerticalAlign;\n\n/**\n * Defines where to show the element preferably: top, right, bottom or left.\n */\nexport type PropAlign = {\n\talign: AlignPropType;\n};\n\n/* validator */\nexport const validateAlign = (component: Generic.Element.Component, value?: AlignPropType): void => {\n\tvalidateAlignment(component, '_align', value);\n};\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{w as watchValidator}from"./prop.validators-8c5a4551.js";const AVAILABLE_HORIZONTAL_ALIGNMENT_VALUES=new Set(['"left", "right"']),AVAILABLE_VERTICAL_ALIGNMENT_VALUES=new Set(['"bottom", "top"']),AVAILABLE_ALIGNMENT_VALUES=new Set([...AVAILABLE_HORIZONTAL_ALIGNMENT_VALUES,...AVAILABLE_VERTICAL_ALIGNMENT_VALUES]),validateAlignment=(A,L,t)=>{watchValidator(A,L,(A=>"bottom"===A||"left"===A||"right"===A||"top"===A),AVAILABLE_ALIGNMENT_VALUES,t,{defaultValue:"top"})};export{validateAlignment as v};
4
+ import{w as watchValidator}from"./prop.validators-8eaea103.js";const AVAILABLE_HORIZONTAL_ALIGNMENT_VALUES=new Set(['"left", "right"']),AVAILABLE_VERTICAL_ALIGNMENT_VALUES=new Set(['"bottom", "top"']),AVAILABLE_ALIGNMENT_VALUES=new Set([...AVAILABLE_HORIZONTAL_ALIGNMENT_VALUES,...AVAILABLE_VERTICAL_ALIGNMENT_VALUES]),validateAlignment=(A,L,t)=>{watchValidator(A,L,(A=>"bottom"===A||"left"===A||"right"===A||"top"===A),AVAILABLE_ALIGNMENT_VALUES,t,{defaultValue:"top"})};export{validateAlignment as v};
@@ -1 +1 @@
1
- {"file":"alignment-7cf13a42.js","mappings":";;;;;AAKA,MAAM,qCAAqC,GAAG,IAAI,GAAG,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAK3E,MAAM,mCAAmC,GAAG,IAAI,GAAG,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAKzE,MAAM,0BAA0B,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,qCAAqC,EAAE,GAAG,mCAAmC,CAAC,CAAC,CAAC;MAClH,iBAAiB,GAAG,CAAC,SAAoC,EAAE,QAAgB,EAAE,KAAqB;IAC9G,cAAc,CACb,SAAS,EACT,QAAQ,EACR,CAAC,KAAK,KAAK,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,OAAO,IAAI,KAAK,KAAK,KAAK,EACzF,0BAA0B,EAC1B,KAAK,EACL,EAAE,YAAY,EAAE,KAAK,EAAE,CACvB,CAAC;AACH;;;;","names":[],"sources":["src/utils/validators/alignment.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { AlignPropType } from '../../types/props/align';\nimport { watchValidator } from '../prop.validators';\n\nconst AVAILABLE_HORIZONTAL_ALIGNMENT_VALUES = new Set(['\"left\", \"right\"']);\n// export const validateHorizontalAlignment = (component: Generic.Element.Component, propName: string, value?: HorizontalAlignment): void => {\n// \twatchValidator(component, propName, (value) => value === 'left' || value === 'right', AVAILABLE_HORIZONTAL_ALIGNMENT_VALUES, value);\n// };\n\nconst AVAILABLE_VERTICAL_ALIGNMENT_VALUES = new Set(['\"bottom\", \"top\"']);\n// export const validateVertivalAlignment = (component: Generic.Element.Component, propName: string, value?: VerticalAlignment): void => {\n// \twatchValidator(component, propName, (value) => value === 'top' || value === 'bottom', AVAILABLE_VERTICAL_ALIGNMENT_VALUES, value);\n// };\n\nconst AVAILABLE_ALIGNMENT_VALUES = new Set([...AVAILABLE_HORIZONTAL_ALIGNMENT_VALUES, ...AVAILABLE_VERTICAL_ALIGNMENT_VALUES]);\nexport const validateAlignment = (component: Generic.Element.Component, propName: string, value?: AlignPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\tpropName,\n\t\t(value) => value === 'bottom' || value === 'left' || value === 'right' || value === 'top',\n\t\tAVAILABLE_ALIGNMENT_VALUES,\n\t\tvalue,\n\t\t{ defaultValue: 'top' },\n\t);\n};\n"],"version":3}
1
+ {"file":"alignment-a5283d44.js","mappings":";;;;;AAKA,MAAM,qCAAqC,GAAG,IAAI,GAAG,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAK3E,MAAM,mCAAmC,GAAG,IAAI,GAAG,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAKzE,MAAM,0BAA0B,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,qCAAqC,EAAE,GAAG,mCAAmC,CAAC,CAAC,CAAC;MAClH,iBAAiB,GAAG,CAAC,SAAoC,EAAE,QAAgB,EAAE,KAAqB;IAC9G,cAAc,CACb,SAAS,EACT,QAAQ,EACR,CAAC,KAAK,KAAK,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,OAAO,IAAI,KAAK,KAAK,KAAK,EACzF,0BAA0B,EAC1B,KAAK,EACL,EAAE,YAAY,EAAE,KAAK,EAAE,CACvB,CAAC;AACH;;;;","names":[],"sources":["src/utils/validators/alignment.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { AlignPropType } from '../../types/props/align';\nimport { watchValidator } from '../prop.validators';\n\nconst AVAILABLE_HORIZONTAL_ALIGNMENT_VALUES = new Set(['\"left\", \"right\"']);\n// export const validateHorizontalAlignment = (component: Generic.Element.Component, propName: string, value?: HorizontalAlignment): void => {\n// \twatchValidator(component, propName, (value) => value === 'left' || value === 'right', AVAILABLE_HORIZONTAL_ALIGNMENT_VALUES, value);\n// };\n\nconst AVAILABLE_VERTICAL_ALIGNMENT_VALUES = new Set(['\"bottom\", \"top\"']);\n// export const validateVertivalAlignment = (component: Generic.Element.Component, propName: string, value?: VerticalAlignment): void => {\n// \twatchValidator(component, propName, (value) => value === 'top' || value === 'bottom', AVAILABLE_VERTICAL_ALIGNMENT_VALUES, value);\n// };\n\nconst AVAILABLE_ALIGNMENT_VALUES = new Set([...AVAILABLE_HORIZONTAL_ALIGNMENT_VALUES, ...AVAILABLE_VERTICAL_ALIGNMENT_VALUES]);\nexport const validateAlignment = (component: Generic.Element.Component, propName: string, value?: AlignPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\tpropName,\n\t\t(value) => value === 'bottom' || value === 'left' || value === 'right' || value === 'top',\n\t\tAVAILABLE_ALIGNMENT_VALUES,\n\t\tvalue,\n\t\t{ defaultValue: 'top' },\n\t);\n};\n"],"version":3}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{a as setMode}from"./index-a051748e.js";import{e as ee,j}from"./index-117bd1aa.js";import{L as Log}from"./dev.utils-c85f7f52.js";import{p as processEnv}from"./reuse-d79ab469.js";setMode((o=>(o.shadowRoot instanceof ShadowRoot&&ee(o,j(o)),"default"))),import("./devtools-a7d12733.js").then((o=>{"object"==typeof o&&null!==o&&"function"==typeof o.initialize&&o.initialize()})).catch((o=>{Log.error(o)})),processEnv&&import("./index-a42f8d80.js");const globalFn=()=>{},appGlobalScript=globalFn,globalScripts=appGlobalScript;export{globalScripts as g};
@@ -1 +1 @@
1
- {"file":"app-globals-33e2d739.js","mappings":";;;;;;;;AAKA,OAAO,CAAC,CAAC,GAAG;IACX,IAAI,GAAG,CAAC,UAAU,YAAY,UAAU,EAAE;QACzCA,EAAa,CAAC,GAAG,EAAEC,CAAe,CAAC,GAAG,CAAC,CAAC,CAAC;KACzC;IACD,OAAO,SAAS,CAAC;AAClB,CAAC,CAAC,CAAC;AAEH,OAAO,wBAAY,CAAC;KAClB,IAAI,CAAC,CAAC,QAAQ;IACd,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,KAAK,IAAI,IAAI,OAAO,QAAQ,CAAC,UAAU,KAAK,UAAU,EAAE;QACnG,QAAQ,CAAC,UAAU,EAAE,CAAC;KACtB;AACF,CAAC,CAAC;KACD,KAAK,CAAC,CAAC,KAAK;IACZ,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC;AAGJ,IAAI,UAAU,EAAE;IACf,OAAO,qBAAQ,CAAC,CAAC;AAClB,CAAC;;;;ACxBW,MAAC,aAAa,GAAG;;;;","names":["setThemeStyle","getThemeDetails"],"sources":["src/global/script.ts","@stencil/core/internal/app-globals"],"sourcesContent":["import { setMode } from '@stencil/core';\nimport { getThemeDetails, setThemeStyle } from 'adopted-style-sheets';\nimport { Log } from '../utils/dev.utils';\nimport { processEnv } from '../utils/reuse';\n\nsetMode((elm) => {\n\tif (elm.shadowRoot instanceof ShadowRoot) {\n\t\tsetThemeStyle(elm, getThemeDetails(elm));\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"],"version":3}
1
+ {"file":"app-globals-60a3cc97.js","mappings":";;;;;;;;AAKA,OAAO,CAAC,CAAC,GAAG;IACX,IAAI,GAAG,CAAC,UAAU,YAAY,UAAU,EAAE;QACzCA,EAAa,CAAC,GAAG,EAAEC,CAAe,CAAC,GAAG,CAAC,CAAC,CAAC;KACzC;IACD,OAAO,SAAS,CAAC;AAClB,CAAC,CAAC,CAAC;AAEH,OAAO,wBAAY,CAAC;KAClB,IAAI,CAAC,CAAC,QAAQ;IACd,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,KAAK,IAAI,IAAI,OAAO,QAAQ,CAAC,UAAU,KAAK,UAAU,EAAE;QACnG,QAAQ,CAAC,UAAU,EAAE,CAAC;KACtB;AACF,CAAC,CAAC;KACD,KAAK,CAAC,CAAC,KAAK;IACZ,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC;AAGJ,IAAI,UAAU,EAAE;IACf,OAAO,qBAAQ,CAAC,CAAC;AAClB,CAAC;;;;ACxBW,MAAC,aAAa,GAAG;;;;","names":["setThemeStyle","getThemeDetails"],"sources":["src/global/script.ts","@stencil/core/internal/app-globals"],"sourcesContent":["import { setMode } from '@stencil/core';\nimport { getThemeDetails, setThemeStyle } from 'adopted-style-sheets';\nimport { Log } from '../utils/dev.utils';\nimport { processEnv } from '../utils/reuse';\n\nsetMode((elm) => {\n\tif (elm.shadowRoot instanceof ShadowRoot) {\n\t\tsetThemeStyle(elm, getThemeDetails(elm));\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"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{d as watchString,w as watchValidator}from"./prop.validators-8c5a4551.js";const validateAlternativeButtonLinkRole=(a,t)=>{watchString(a,"_role",t)},validateAriaControls=(a,t)=>{watchString(a,"_ariaControls",t)},validate=(a,t,i)=>{watchValidator(a,t,(a=>"date"===a||"location"===a||"page"===a||"step"===a||"time"===a||!0===a||!1===a),new Set(["String {data, location, page, step, time}","boolean"]),i)},validateAriaCurrent=(a,t)=>{validate(a,"_ariaCurrent",t)},validateListenAriaCurrent=(a,t)=>{validate(a,"_listenAriaCurrent",t)};export{validateAriaCurrent as a,validateListenAriaCurrent as b,validateAlternativeButtonLinkRole as c,validateAriaControls as v};
4
+ import{d as watchString,w as watchValidator}from"./prop.validators-8eaea103.js";const validateAlternativeButtonLinkRole=(a,t)=>{watchString(a,"_role",t)},validateAriaControls=(a,t)=>{watchString(a,"_ariaControls",t)},validate=(a,t,e)=>{watchValidator(a,t,(a=>"date"===a||"location"===a||"page"===a||"step"===a||"time"===a||!0===a||!1===a),new Set(["String {data, location, page, step, time}","boolean"]),e)},validateAriaCurrent=(a,t)=>{validate(a,"_ariaCurrent",t)},validateListenAriaCurrent=(a,t)=>{validate(a,"_listenAriaCurrent",t)};export{validateAriaCurrent as a,validateAlternativeButtonLinkRole as b,validateListenAriaCurrent as c,validateAriaControls as v};
@@ -1 +1 @@
1
- {"file":"aria-current-9675e9d1.js","mappings":";;;;;MAca,iCAAiC,GAAG,CAAC,SAAoC,EAAE,KAAyC;IAChI,WAAW,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;AACxC;;MCGa,oBAAoB,GAAG,CAAC,SAAoC,EAAE,KAA4B;IACtG,WAAW,CAAC,SAAS,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC;AAChD;;ACKA,MAAM,QAAQ,GAAG,CAAC,SAAoC,EAAE,QAAgB,EAAE,KAA2B;IACpG,cAAc,CACb,SAAS,EACT,QAAQ,EACR,CAAC,KAAK,KAAK,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,UAAU,IAAI,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,KAAK,EACpJ,IAAI,GAAG,CAAC,CAAC,2CAA2C,EAAE,SAAS,CAAC,CAAC,EACjE,KAAK,CACL,CAAC;AACH,CAAC,CAAC;MACW,mBAAmB,GAAG,CAAC,SAAoC,EAAE,KAA2B;IACpG,QAAQ,CAAC,SAAS,EAAE,cAAc,EAAE,KAAK,CAAC,CAAC;AAC5C,EAAE;MACW,yBAAyB,GAAG,CAAC,SAAoC,EAAE,KAA2B;IAC1G,QAAQ,CAAC,SAAS,EAAE,oBAAoB,EAAE,KAAK,CAAC,CAAC;AAClD;;;;","names":[],"sources":["src/types/props/alternative-button-link-role.ts","src/types/props/aria-controls.ts","src/types/props/aria-current.ts"],"sourcesContent":["/* types */\nimport type { Generic } from 'adopted-style-sheets';\nimport { watchString } from '../../utils/prop.validators';\n\nexport type AlternativeButtonLinkRolePropType = 'button' | 'link' | 'tab';\n\n/**\n * Defines the role of the components primary element.\n */\nexport type PropAlternativeButtonLinkRole = {\n\trole: AlternativeButtonLinkRolePropType;\n};\n\n/* validator */\nexport const validateAlternativeButtonLinkRole = (component: Generic.Element.Component, value?: AlternativeButtonLinkRolePropType) => {\n\twatchString(component, '_role', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { watchString } from '../../utils/prop.validators';\n\n/* types */\n/**\n * Defines which elements are being controlled. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls)\n * @deprecated\n */\ntype AriaControlsPropType = string;\n\n/**\n * @deprecated\n */\nexport type PropAriaControls = {\n\tariaControls: AriaControlsPropType;\n};\n\n/* validator */\nexport const validateAriaControls = (component: Generic.Element.Component, value?: AriaControlsPropType): void => {\n\twatchString(component, '_ariaControls', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { watchValidator } from '../../utils/prop.validators';\n\n/* types */\n/**\n * Marks the element as the selected in a group of related elements. Can be one of the following: `date` | `location` | `page` | `step` | `time` | `true`.\n * (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-current)\n */\nexport type AriaCurrentPropType = 'date' | 'location' | 'page' | 'step' | 'time' | boolean;\n\n/**\n * @deprecated use `PropListenAriaCurrent` instead\n */\nexport type PropAriaCurrent = {\n\t/**\n\t * @deprecated use `listenAriaCurrent` instead\n\t */\n\tariaCurrent: AriaCurrentPropType;\n};\n\nexport type PropListenAriaCurrent = {\n\tlistenAriaCurrent: AriaCurrentPropType;\n};\n\n/* validator */\nconst validate = (component: Generic.Element.Component, propName: string, value?: AriaCurrentPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\tpropName,\n\t\t(value) => value === 'date' || value === 'location' || value === 'page' || value === 'step' || value === 'time' || value === true || value === false,\n\t\tnew Set(['String {data, location, page, step, time}', 'boolean']),\n\t\tvalue,\n\t);\n};\nexport const validateAriaCurrent = (component: Generic.Element.Component, value?: AriaCurrentPropType): void => {\n\tvalidate(component, '_ariaCurrent', value);\n};\nexport const validateListenAriaCurrent = (component: Generic.Element.Component, value?: AriaCurrentPropType): void => {\n\tvalidate(component, '_listenAriaCurrent', value);\n};\n"],"version":3}
1
+ {"file":"aria-current-7302bccd.js","mappings":";;;;;MAca,iCAAiC,GAAG,CAAC,SAAoC,EAAE,KAAyC;IAChI,WAAW,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;AACxC;;MCGa,oBAAoB,GAAG,CAAC,SAAoC,EAAE,KAA4B;IACtG,WAAW,CAAC,SAAS,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC;AAChD;;ACKA,MAAM,QAAQ,GAAG,CAAC,SAAoC,EAAE,QAAgB,EAAE,KAA2B;IACpG,cAAc,CACb,SAAS,EACT,QAAQ,EACR,CAAC,KAAK,KAAK,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,UAAU,IAAI,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,KAAK,EACpJ,IAAI,GAAG,CAAC,CAAC,2CAA2C,EAAE,SAAS,CAAC,CAAC,EACjE,KAAK,CACL,CAAC;AACH,CAAC,CAAC;MACW,mBAAmB,GAAG,CAAC,SAAoC,EAAE,KAA2B;IACpG,QAAQ,CAAC,SAAS,EAAE,cAAc,EAAE,KAAK,CAAC,CAAC;AAC5C,EAAE;MACW,yBAAyB,GAAG,CAAC,SAAoC,EAAE,KAA2B;IAC1G,QAAQ,CAAC,SAAS,EAAE,oBAAoB,EAAE,KAAK,CAAC,CAAC;AAClD;;;;","names":[],"sources":["src/types/props/alternative-button-link-role.ts","src/types/props/aria-controls.ts","src/types/props/aria-current.ts"],"sourcesContent":["/* types */\nimport type { Generic } from 'adopted-style-sheets';\nimport { watchString } from '../../utils/prop.validators';\n\nexport type AlternativeButtonLinkRolePropType = 'button' | 'link' | 'tab';\n\n/**\n * Defines the role of the components primary element.\n */\nexport type PropAlternativeButtonLinkRole = {\n\trole: AlternativeButtonLinkRolePropType;\n};\n\n/* validator */\nexport const validateAlternativeButtonLinkRole = (component: Generic.Element.Component, value?: AlternativeButtonLinkRolePropType) => {\n\twatchString(component, '_role', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { watchString } from '../../utils/prop.validators';\n\n/* types */\n/**\n * Defines which elements are being controlled. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls)\n * @deprecated\n */\ntype AriaControlsPropType = string;\n\n/**\n * @deprecated\n */\nexport type PropAriaControls = {\n\tariaControls: AriaControlsPropType;\n};\n\n/* validator */\nexport const validateAriaControls = (component: Generic.Element.Component, value?: AriaControlsPropType): void => {\n\twatchString(component, '_ariaControls', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { watchValidator } from '../../utils/prop.validators';\n\n/* types */\n/**\n * Marks the element as the selected in a group of related elements. Can be one of the following: `date` | `location` | `page` | `step` | `time` | `true`.\n * (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-current)\n */\nexport type AriaCurrentPropType = 'date' | 'location' | 'page' | 'step' | 'time' | boolean;\n\n/**\n * @deprecated use `PropListenAriaCurrent` instead\n */\nexport type PropAriaCurrent = {\n\t/**\n\t * @deprecated use `listenAriaCurrent` instead\n\t */\n\tariaCurrent: AriaCurrentPropType;\n};\n\nexport type PropListenAriaCurrent = {\n\tlistenAriaCurrent: AriaCurrentPropType;\n};\n\n/* validator */\nconst validate = (component: Generic.Element.Component, propName: string, value?: AriaCurrentPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\tpropName,\n\t\t(value) => value === 'date' || value === 'location' || value === 'page' || value === 'step' || value === 'time' || value === true || value === false,\n\t\tnew Set(['String {data, location, page, step, time}', 'boolean']),\n\t\tvalue,\n\t);\n};\nexport const validateAriaCurrent = (component: Generic.Element.Component, value?: AriaCurrentPropType): void => {\n\tvalidate(component, '_ariaCurrent', value);\n};\nexport const validateListenAriaCurrent = (component: Generic.Element.Component, value?: AriaCurrentPropType): void => {\n\tvalidate(component, '_listenAriaCurrent', value);\n};\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{d as watchString}from"./prop.validators-8c5a4551.js";import{d as devHint,h as devWarning}from"./a11y.tipps-1cea6b3d.js";import{a as getExperimentalMode}from"./dev.utils-8d5cefe9.js";const validateName=(t,e,i)=>{watchString(t,"_name",e,i)},isAssociatedTagName=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 AssociatedInputController{constructor(t,e,i){var s,o,a;if(this.experimentalMode=getExperimentalMode(),this.setFormAssociatedValue=t=>{var e;const i=null===(e=this.formAssociated)||void 0===e?void 0:e.getAttribute("name");null!==i&&""!==i||devHint(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);const s=this.tryToStringifyValue(t);this.syncValue(t,s,this.formAssociated),this.syncValue(t,s,this.syncToOwnInput)},this.component=t,this.host=this.findHostWithShadowRoot(i),this.type=e,this.experimentalMode&&isAssociatedTagName(null===(s=this.host)||void 0===s?void 0:s.tagName)){switch(null===(o=this.host)||void 0===o||o.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===(a=this.host)||void 0===a||a.appendChild(this.formAssociated)}}findHostWithShadowRoot(t){for(;null===(null==t?void 0:t.shadowRoot)&&t!==document.body;)(t=null==t?void 0:t.parentNode).host&&(t=t.host);return t}setAttribute(t,e,i){if(this.experimentalMode)try{if("boolean"!=typeof(i="object"==typeof i&&null!==i?JSON.stringify(i):i)&&"number"!=typeof i&&"string"!=typeof i)throw new Error("Invalid value type: "+typeof i);null==e||e.setAttribute(t,`${i}`)}catch(i){null==e||e.removeAttribute(t)}}tryToStringifyValue(t){try{return"object"==typeof t&&null!==t?JSON.stringify(t).toString():null==t?null:t.toString()}catch(t){return devWarning(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,i){if(i)switch(this.type){case"file":i.files=t;break;case"select":i.querySelectorAll("option").forEach((t=>{i.removeChild(t)})),Array.isArray(t)&&t.forEach((t=>{const e=this.tryToStringifyValue(t);if("string"==typeof e){const t=document.createElement("option");t.setAttribute("value",e),t.setAttribute("selected",""),i.appendChild(t)}}));break;default:"string"==typeof e?(i.setAttribute("value",e),i.value=e):(i.removeAttribute("value"),i.value="")}}validateName(t){validateName(this.component,t,{hooks:{afterPatch:()=>{this.setAttribute("name",this.formAssociated,this.component.state._name)}}}),void 0===t&&devHint("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{AssociatedInputController as A};
4
+ import{d as watchString}from"./prop.validators-8eaea103.js";import{d as devHint,h as devWarning}from"./a11y.tipps-4958c1a5.js";import{a as getExperimentalMode}from"./dev.utils-c85f7f52.js";const validateName=(t,e,i)=>{watchString(t,"_name",e,i)},isAssociatedTagName=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 AssociatedInputController{constructor(t,e,i){var s,a,o;if(this.experimentalMode=getExperimentalMode(),this.setFormAssociatedValue=t=>{var e;const i=null===(e=this.formAssociated)||void 0===e?void 0:e.getAttribute("name");null!==i&&""!==i||devHint(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);const s=this.tryToStringifyValue(t);this.syncValue(t,s,this.formAssociated),this.syncValue(t,s,this.syncToOwnInput)},this.component=t,this.host=this.findHostWithShadowRoot(i),this.type=e,this.experimentalMode&&isAssociatedTagName(null===(s=this.host)||void 0===s?void 0:s.tagName)){switch(null===(a=this.host)||void 0===a||a.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===(o=this.host)||void 0===o||o.appendChild(this.formAssociated)}}findHostWithShadowRoot(t){for(;null===(null==t?void 0:t.shadowRoot)&&t!==document.body;)(t=null==t?void 0:t.parentNode).host&&(t=t.host);return t}setAttribute(t,e,i){if(this.experimentalMode)try{if("boolean"!=typeof(i="object"==typeof i&&null!==i?JSON.stringify(i):i)&&"number"!=typeof i&&"string"!=typeof i)throw new Error("Invalid value type: "+typeof i);null==e||e.setAttribute(t,`${i}`)}catch(i){null==e||e.removeAttribute(t)}}tryToStringifyValue(t){try{return"object"==typeof t&&null!==t?JSON.stringify(t).toString():null==t?null:t.toString()}catch(t){return devWarning(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,i){if(i)switch(this.type){case"file":i.files=t;break;case"select":i.querySelectorAll("option").forEach((t=>{i.removeChild(t)})),Array.isArray(t)&&t.forEach((t=>{const e=this.tryToStringifyValue(t);if("string"==typeof e){const t=document.createElement("option");t.setAttribute("value",e),t.setAttribute("selected",""),i.appendChild(t)}}));break;default:"string"==typeof e?(i.setAttribute("value",e),i.value=e):(i.removeAttribute("value"),i.value="")}}validateName(t){validateName(this.component,t,{hooks:{afterPatch:()=>{this.setAttribute("name",this.formAssociated,this.component.state._name)}}}),void 0===t&&devHint("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{AssociatedInputController as A};
@@ -1 +1 @@
1
- {"file":"associated.controller-c4487875.js","mappings":";;;;;;;AAeO,MAAM,YAAY,GAAG,CAAC,SAAoC,EAAE,KAAoB,EAAE,OAA4B;IACpH,WAAW,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;AACjD,CAAC;;ACED,MAAM,mBAAmB,GAAG,CAAC,IAAa,KACzC,IAAI,KAAK,YAAY;IACrB,IAAI,KAAK,oBAAoB;IAC7B,IAAI,KAAK,iBAAiB;IAC1B,IAAI,KAAK,gBAAgB;IACzB,IAAI,KAAK,iBAAiB;IAC1B,IAAI,KAAK,gBAAgB;IACzB,IAAI,KAAK,kBAAkB;IAC3B,IAAI,KAAK,oBAAoB;IAC7B,IAAI,KAAK,iBAAiB;IAC1B,IAAI,KAAK,iBAAiB;IAC1B,IAAI,KAAK,gBAAgB;IACzB,IAAI,KAAK,YAAY;IACrB,IAAI,KAAK,cAAc,CAAC;MAEZ,yBAAyB;IAUrC,YAAmB,SAA4C,EAAE,IAAY,EAAE,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cAAc,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,KAAe,CAAC,CAAC;iBACrF;aACD;SACD,CAAC,CAAC;QACH,IAAI,OAAO,KAAK,KAAK,WAAW,EAAE;YACjC,OAAO,CACN,oLAAoL,CACpL,CAAC;SACF;KACD;IAEM,2BAA2B,CAAC,KAAmC;QACrE,IAAI,IAAI,CAAC,gBAAgB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YACvD,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAA+D,CAAC;YAC1G,IAAI,KAAK,EAAwC;gBAChD,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;aAC5B;SACD;KACD;IAEM,iBAAiB;QACvB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACxC,IAAI,CAAC,2BAA2B,CAAC,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;KACtE;;;;;","names":[],"sources":["src/types/props/name.ts","src/components/input-adapter-leanup/associated.controller.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchString, WatchStringOptions } from '../../utils/prop.validators';\n\n/* types */\nexport type NamePropType = string;\n\n/**\n * Defines the technical name of an input field.\n */\nexport type PropName = {\n\tname: NamePropType;\n};\n\n/* validator */\nexport const validateName = (component: Generic.Element.Component, value?: NamePropType, options?: WatchStringOptions): void => {\n\twatchString(component, '_name', value, options);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { NamePropType, validateName } from '../../types/props/name';\nimport { PropSyncValueBySelector, SyncValueBySelectorPropType } from '../../types/props/sync-value-by-selector';\nimport { StencilUnknown } from '../../types/unknown';\nimport { devHint, devWarning } from '../../utils/a11y.tipps';\nimport { getExperimentalMode } from '../../utils/dev.utils';\n\ntype RequiredProps = NonNullable<unknown>;\ntype OptionalProps = {\n\tname: string;\n} & PropSyncValueBySelector;\ntype Props = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype Watches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\ntype HTMLInputFileElement = HTMLInputElement & {\n\tfiles: FileList;\n};\n\nconst isAssociatedTagName = (name?: string): boolean =>\n\tname === 'KOL-BUTTON' ||\n\tname === 'KOL-INPUT-CHECKBOX' ||\n\tname === 'KOL-INPUT-COLOR' ||\n\tname === 'KOL-INPUT-DATE' ||\n\tname === 'KOL-INPUT-EMAIL' ||\n\tname === 'KOL-INPUT-FILE' ||\n\tname === 'KOL-INPUT-NUMBER' ||\n\tname === 'KOL-INPUT-PASSWORD' ||\n\tname === 'KOL-INPUT-RADIO' ||\n\tname === 'KOL-INPUT-RANGE' ||\n\tname === 'KOL-INPUT-TEXT' ||\n\tname === 'KOL-SELECT' ||\n\tname === 'KOL-TEXTAREA';\n\nexport class AssociatedInputController implements Watches {\n\tprivate readonly experimentalMode = getExperimentalMode();\n\n\tprotected readonly component: Generic.Element.Component & Props;\n\tprotected readonly type: string;\n\tprotected readonly host?: HTMLElement;\n\n\tpublic readonly formAssociated?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\tpublic syncToOwnInput?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\n\tpublic constructor(component: Generic.Element.Component & Props, type: string, host?: HTMLElement) {\n\t\tthis.component = component;\n\t\tthis.host = this.findHostWithShadowRoot(host);\n\t\tthis.type = type;\n\n\t\tif (this.experimentalMode && isAssociatedTagName(this.host?.tagName)) {\n\t\t\tthis.host?.querySelectorAll('input,select,textarea').forEach((el) => {\n\t\t\t\tthis.host?.removeChild(el);\n\t\t\t});\n\t\t\tswitch (this.type) {\n\t\t\t\tcase 'button':\n\t\t\t\tcase 'color':\n\t\t\t\tcase 'date':\n\t\t\t\tcase 'email':\n\t\t\t\tcase 'file':\n\t\t\t\tcase 'number':\n\t\t\t\tcase 'password':\n\t\t\t\tcase 'radio':\n\t\t\t\tcase 'range':\n\t\t\t\tcase 'text':\n\t\t\t\t\tthis.formAssociated = document.createElement('input');\n\t\t\t\t\tthis.formAssociated.setAttribute('type', this.type);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'select':\n\t\t\t\t\tthis.formAssociated = document.createElement('select');\n\t\t\t\t\tthis.formAssociated.setAttribute('multiple', '');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'textarea':\n\t\t\t\t\tthis.formAssociated = document.createElement('textarea');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'checkbox': // Checkbox use default case\n\t\t\t\tdefault:\n\t\t\t\t\tthis.formAssociated = document.createElement('input');\n\t\t\t\t\tthis.formAssociated.setAttribute('type', 'hidden');\n\t\t\t}\n\t\t\tthis.formAssociated.setAttribute('aria-hidden', 'true');\n\t\t\tthis.formAssociated.setAttribute('data-form-associated', '');\n\t\t\tthis.formAssociated.setAttribute('hidden', '');\n\t\t\tthis.host?.appendChild(this.formAssociated);\n\t\t}\n\t}\n\n\t/**\n\t * The associated elements must not reside within the ShadowRoot and must\n\t * reside as children in the host to be recognized by native forms.\n\t */\n\tprivate findHostWithShadowRoot(host?: HTMLElement): HTMLElement | undefined {\n\t\twhile (host?.shadowRoot === null && host !== document.body) {\n\t\t\thost = host?.parentNode as HTMLElement;\n\t\t\tif ((host as unknown as ShadowRoot).host) {\n\t\t\t\thost = (host as unknown as ShadowRoot).host as HTMLElement;\n\t\t\t}\n\t\t}\n\t\treturn host;\n\t}\n\n\tprotected setAttribute(qualifiedName: string, element?: HTMLElement, value?: string | number | boolean) {\n\t\tif (this.experimentalMode) {\n\t\t\ttry {\n\t\t\t\tvalue = typeof value === 'object' && value !== null ? JSON.stringify(value) : value;\n\t\t\t\tif (typeof value === 'boolean' || typeof value === 'number' || typeof value === 'string') {\n\t\t\t\t\telement?.setAttribute(qualifiedName, `${value as string}`);\n\t\t\t\t} else {\n\t\t\t\t\tthrow new Error(`Invalid value type: ${typeof value}`);\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\telement?.removeAttribute(qualifiedName);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * We need to stringify the value, for the setAttribute method.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttribute\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/attributes\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/attributes#value\n\t *\n\t * TODO: It is possible that the value are a cyclic object value. So we need a custom\n\t * JSON.stringify method from outside to convert it to string.\n\t */\n\tprivate tryToStringifyValue(value: StencilUnknown): string | null {\n\t\ttry {\n\t\t\treturn typeof value === 'object' && value !== null ? JSON.stringify(value).toString() : value === null || value === undefined ? null : value.toString();\n\t\t} catch (e) {\n\t\t\tdevWarning(`The form field raw value is not able to stringify! ${e as string}`);\n\t\t\treturn '';\n\t\t}\n\t}\n\n\t/**\n\t * We try to support native form-associated custom elements.\n\t *\n\t * @see https://github.com/public-ui/kolibri/discussions/2821\n\t */\n\tpublic readonly setFormAssociatedValue = (rawValue: StencilUnknown) => {\n\t\tconst name = this.formAssociated?.getAttribute('name');\n\t\tif (name === null || name === '') {\n\t\t\tdevHint(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);\n\t\t}\n\t\tconst strValue = this.tryToStringifyValue(rawValue);\n\t\tthis.syncValue(rawValue, strValue, this.formAssociated);\n\t\tthis.syncValue(rawValue, strValue, this.syncToOwnInput);\n\t};\n\n\tprivate syncValue(\n\t\trawValue: StencilUnknown,\n\t\tstrValue: string | null,\n\t\tassociatedElement?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement,\n\t) {\n\t\tif (associatedElement) {\n\t\t\tswitch (this.type) {\n\t\t\t\tcase 'file':\n\t\t\t\t\t(associatedElement as HTMLInputFileElement).files = rawValue as FileList;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'select':\n\t\t\t\t\t(associatedElement as HTMLSelectElement).querySelectorAll('option').forEach((el) => {\n\t\t\t\t\t\t(associatedElement as HTMLSelectElement).removeChild(el);\n\t\t\t\t\t});\n\t\t\t\t\tif (Array.isArray(rawValue)) {\n\t\t\t\t\t\trawValue.forEach((rawValueItem) => {\n\t\t\t\t\t\t\tconst strValueItem = this.tryToStringifyValue(rawValueItem as string);\n\t\t\t\t\t\t\tif (typeof strValueItem === 'string') {\n\t\t\t\t\t\t\t\tconst option = document.createElement('option');\n\t\t\t\t\t\t\t\toption.setAttribute('value', strValueItem);\n\t\t\t\t\t\t\t\toption.setAttribute('selected', '');\n\t\t\t\t\t\t\t\t(associatedElement as HTMLSelectElement).appendChild(option);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif (typeof strValue === 'string') {\n\t\t\t\t\t\tassociatedElement.setAttribute('value', strValue);\n\t\t\t\t\t\tassociatedElement.value = strValue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tassociatedElement.removeAttribute('value');\n\t\t\t\t\t\tassociatedElement.value = '';\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic validateName(value?: NamePropType): void {\n\t\tvalidateName(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: () => {\n\t\t\t\t\tthis.setAttribute('name', this.formAssociated, this.component.state._name as string);\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t\tif (typeof value === 'undefined') {\n\t\t\tdevHint(\n\t\t\t\t`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.`,\n\t\t\t);\n\t\t}\n\t}\n\n\tpublic validateSyncValueBySelector(value?: SyncValueBySelectorPropType): void {\n\t\tif (this.experimentalMode && typeof value === 'string') {\n\t\t\tconst input = document.querySelector(value) as HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\t\t\tif (input /* SSR instanceof HTMLInputElement */) {\n\t\t\t\tthis.syncToOwnInput = input;\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateName(this.component._name);\n\t\tthis.validateSyncValueBySelector(this.component._syncValueBySelector);\n\t}\n}\n"],"version":3}
1
+ {"file":"associated.controller-23bbb619.js","mappings":";;;;;;;AAeO,MAAM,YAAY,GAAG,CAAC,SAAoC,EAAE,KAAoB,EAAE,OAA4B;IACpH,WAAW,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;AACjD,CAAC;;ACED,MAAM,mBAAmB,GAAG,CAAC,IAAa,KACzC,IAAI,KAAK,YAAY;IACrB,IAAI,KAAK,oBAAoB;IAC7B,IAAI,KAAK,iBAAiB;IAC1B,IAAI,KAAK,gBAAgB;IACzB,IAAI,KAAK,iBAAiB;IAC1B,IAAI,KAAK,gBAAgB;IACzB,IAAI,KAAK,kBAAkB;IAC3B,IAAI,KAAK,oBAAoB;IAC7B,IAAI,KAAK,iBAAiB;IAC1B,IAAI,KAAK,iBAAiB;IAC1B,IAAI,KAAK,gBAAgB;IACzB,IAAI,KAAK,YAAY;IACrB,IAAI,KAAK,cAAc,CAAC;MAEZ,yBAAyB;IAUrC,YAAmB,SAA4C,EAAE,IAAY,EAAE,IAAkB;;QAThF,qBAAgB,GAAG,mBAAmB,EAAE,CAAC;QAuG1C,2BAAsB,GAAG,CAAC,QAAwB;;YACjE,MAAM,IAAI,GAAG,MAAA,IAAI,CAAC,cAAc,0CAAE,YAAY,CAAC,MAAM,CAAC,CAAC;YACvD,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,EAAE,EAAE;gBACjC,OAAO,CAAC,oBAAoB,IAAI,CAAC,IAAI,wFAAwF,CAAC,CAAC;aAC/H;YACD,MAAM,QAAQ,GAAG,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC;YACpD,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;YACxD,IA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AY,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACxC,IAAI,CAAC,2BAA2B,CAAC,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;KACtE;;;;;","names":[],"sources":["src/types/props/name.ts","src/components/input-adapter-leanup/associated.controller.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchString, WatchStringOptions } from '../../utils/prop.validators';\n\n/* types */\nexport type NamePropType = string;\n\n/**\n * Defines the technical name of an input field.\n */\nexport type PropName = {\n\tname: NamePropType;\n};\n\n/* validator */\nexport const validateName = (component: Generic.Element.Component, value?: NamePropType, options?: WatchStringOptions): void => {\n\twatchString(component, '_name', value, options);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { NamePropType, validateName } from '../../types/props/name';\nimport { PropSyncValueBySelector, SyncValueBySelectorPropType } from '../../types/props/sync-value-by-selector';\nimport { StencilUnknown } from '../../types/unknown';\nimport { devHint, devWarning } from '../../utils/a11y.tipps';\nimport { getExperimentalMode } from '../../utils/dev.utils';\n\ntype RequiredProps = NonNullable<unknown>;\ntype OptionalProps = {\n\tname: string;\n} & PropSyncValueBySelector;\ntype Props = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype Watches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\ntype HTMLInputFileElement = HTMLInputElement & {\n\tfiles: FileList;\n};\n\nconst isAssociatedTagName = (name?: string): boolean =>\n\tname === 'KOL-BUTTON' ||\n\tname === 'KOL-INPUT-CHECKBOX' ||\n\tname === 'KOL-INPUT-COLOR' ||\n\tname === 'KOL-INPUT-DATE' ||\n\tname === 'KOL-INPUT-EMAIL' ||\n\tname === 'KOL-INPUT-FILE' ||\n\tname === 'KOL-INPUT-NUMBER' ||\n\tname === 'KOL-INPUT-PASSWORD' ||\n\tname === 'KOL-INPUT-RADIO' ||\n\tname === 'KOL-INPUT-RANGE' ||\n\tname === 'KOL-INPUT-TEXT' ||\n\tname === 'KOL-SELECT' ||\n\tname === 'KOL-TEXTAREA';\n\nexport class AssociatedInputController implements Watches {\n\tprivate readonly experimentalMode = getExperimentalMode();\n\n\tprotected readonly component: Generic.Element.Component & Props;\n\tprotected readonly type: string;\n\tprotected readonly host?: HTMLElement;\n\n\tpublic readonly formAssociated?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\tpublic syncToOwnInput?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\n\tpublic constructor(component: Generic.Element.Component & Props, type: string, host?: HTMLElement) {\n\t\tthis.component = component;\n\t\tthis.host = this.findHostWithShadowRoot(host);\n\t\tthis.type = type;\n\n\t\tif (this.experimentalMode && isAssociatedTagName(this.host?.tagName)) {\n\t\t\tthis.host?.querySelectorAll('input,select,textarea').forEach((el) => {\n\t\t\t\tthis.host?.removeChild(el);\n\t\t\t});\n\t\t\tswitch (this.type) {\n\t\t\t\tcase 'button':\n\t\t\t\tcase 'color':\n\t\t\t\tcase 'date':\n\t\t\t\tcase 'email':\n\t\t\t\tcase 'file':\n\t\t\t\tcase 'number':\n\t\t\t\tcase 'password':\n\t\t\t\tcase 'radio':\n\t\t\t\tcase 'range':\n\t\t\t\tcase 'text':\n\t\t\t\t\tthis.formAssociated = document.createElement('input');\n\t\t\t\t\tthis.formAssociated.setAttribute('type', this.type);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'select':\n\t\t\t\t\tthis.formAssociated = document.createElement('select');\n\t\t\t\t\tthis.formAssociated.setAttribute('multiple', '');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'textarea':\n\t\t\t\t\tthis.formAssociated = document.createElement('textarea');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'checkbox': // Checkbox use default case\n\t\t\t\tdefault:\n\t\t\t\t\tthis.formAssociated = document.createElement('input');\n\t\t\t\t\tthis.formAssociated.setAttribute('type', 'hidden');\n\t\t\t}\n\t\t\tthis.formAssociated.setAttribute('aria-hidden', 'true');\n\t\t\tthis.formAssociated.setAttribute('data-form-associated', '');\n\t\t\tthis.formAssociated.setAttribute('hidden', '');\n\t\t\tthis.host?.appendChild(this.formAssociated);\n\t\t}\n\t}\n\n\t/**\n\t * The associated elements must not reside within the ShadowRoot and must\n\t * reside as children in the host to be recognized by native forms.\n\t */\n\tprivate findHostWithShadowRoot(host?: HTMLElement): HTMLElement | undefined {\n\t\twhile (host?.shadowRoot === null && host !== document.body) {\n\t\t\thost = host?.parentNode as HTMLElement;\n\t\t\tif ((host as unknown as ShadowRoot).host) {\n\t\t\t\thost = (host as unknown as ShadowRoot).host as HTMLElement;\n\t\t\t}\n\t\t}\n\t\treturn host;\n\t}\n\n\tprotected setAttribute(qualifiedName: string, element?: HTMLElement, value?: string | number | boolean) {\n\t\tif (this.experimentalMode) {\n\t\t\ttry {\n\t\t\t\tvalue = typeof value === 'object' && value !== null ? JSON.stringify(value) : value;\n\t\t\t\tif (typeof value === 'boolean' || typeof value === 'number' || typeof value === 'string') {\n\t\t\t\t\telement?.setAttribute(qualifiedName, `${value as string}`);\n\t\t\t\t} else {\n\t\t\t\t\tthrow new Error(`Invalid value type: ${typeof value}`);\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\telement?.removeAttribute(qualifiedName);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * We need to stringify the value, for the setAttribute method.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttribute\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/attributes\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/attributes#value\n\t *\n\t * TODO: It is possible that the value are a cyclic object value. So we need a custom\n\t * JSON.stringify method from outside to convert it to string.\n\t */\n\tprivate tryToStringifyValue(value: StencilUnknown): string | null {\n\t\ttry {\n\t\t\treturn typeof value === 'object' && value !== null ? JSON.stringify(value).toString() : value === null || value === undefined ? null : value.toString();\n\t\t} catch (e) {\n\t\t\tdevWarning(`The form field raw value is not able to stringify! ${e as string}`);\n\t\t\treturn '';\n\t\t}\n\t}\n\n\t/**\n\t * We try to support native form-associated custom elements.\n\t *\n\t * @see https://github.com/public-ui/kolibri/discussions/2821\n\t */\n\tpublic readonly setFormAssociatedValue = (rawValue: StencilUnknown) => {\n\t\tconst name = this.formAssociated?.getAttribute('name');\n\t\tif (name === null || name === '') {\n\t\t\tdevHint(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);\n\t\t}\n\t\tconst strValue = this.tryToStringifyValue(rawValue);\n\t\tthis.syncValue(rawValue, strValue, this.formAssociated);\n\t\tthis.syncValue(rawValue, strValue, this.syncToOwnInput);\n\t};\n\n\tprivate syncValue(\n\t\trawValue: StencilUnknown,\n\t\tstrValue: string | null,\n\t\tassociatedElement?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement,\n\t) {\n\t\tif (associatedElement) {\n\t\t\tswitch (this.type) {\n\t\t\t\tcase 'file':\n\t\t\t\t\t(associatedElement as HTMLInputFileElement).files = rawValue as FileList;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'select':\n\t\t\t\t\t(associatedElement as HTMLSelectElement).querySelectorAll('option').forEach((el) => {\n\t\t\t\t\t\t(associatedElement as HTMLSelectElement).removeChild(el);\n\t\t\t\t\t});\n\t\t\t\t\tif (Array.isArray(rawValue)) {\n\t\t\t\t\t\trawValue.forEach((rawValueItem) => {\n\t\t\t\t\t\t\tconst strValueItem = this.tryToStringifyValue(rawValueItem as string);\n\t\t\t\t\t\t\tif (typeof strValueItem === 'string') {\n\t\t\t\t\t\t\t\tconst option = document.createElement('option');\n\t\t\t\t\t\t\t\toption.setAttribute('value', strValueItem);\n\t\t\t\t\t\t\t\toption.setAttribute('selected', '');\n\t\t\t\t\t\t\t\t(associatedElement as HTMLSelectElement).appendChild(option);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif (typeof strValue === 'string') {\n\t\t\t\t\t\tassociatedElement.setAttribute('value', strValue);\n\t\t\t\t\t\tassociatedElement.value = strValue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tassociatedElement.removeAttribute('value');\n\t\t\t\t\t\tassociatedElement.value = '';\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic validateName(value?: NamePropType): void {\n\t\tvalidateName(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: () => {\n\t\t\t\t\tthis.setAttribute('name', this.formAssociated, this.component.state._name as string);\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t\tif (typeof value === 'undefined') {\n\t\t\tdevHint(\n\t\t\t\t`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.`,\n\t\t\t);\n\t\t}\n\t}\n\n\tpublic validateSyncValueBySelector(value?: SyncValueBySelectorPropType): void {\n\t\tif (this.experimentalMode && typeof value === 'string') {\n\t\t\tconst input = document.querySelector(value) as HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\t\t\tif (input /* SSR instanceof HTMLInputElement */) {\n\t\t\t\tthis.syncToOwnInput = input;\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateName(this.component._name);\n\t\tthis.validateSyncValueBySelector(this.component._syncValueBySelector);\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as rgbaConvert,b as s,w as watchValidator}from"./prop.validators-8c5a4551.js";import{a as a11yHint}from"./a11y.tipps-1cea6b3d.js";var colorName={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},names=colorName,colorParse=parse$1,baseHues={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function parse$1(r){var e,a,o=[],t=1;if("string"==typeof r)if(r=r.toLowerCase(),names[r])o=names[r].slice(),a="rgb";else if("transparent"===r)t=0,a="rgb",o=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(r)){var l=r.slice(1);t=1,(s=l.length)<=4?(o=[parseInt(l[0]+l[0],16),parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16)],4===s&&(t=parseInt(l[3]+l[3],16)/255)):(o=[parseInt(l[0]+l[1],16),parseInt(l[2]+l[3],16),parseInt(l[4]+l[5],16)],8===s&&(t=parseInt(l[6]+l[7],16)/255)),o[0]||(o[0]=0),o[1]||(o[1]=0),o[2]||(o[2]=0),a="rgb"}else if(e=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(r)){var n=e[1],i="rgb"===n;a=l=n.replace(/a$/,"");var s="cmyk"===l?4:"gray"===l?1:3;o=e[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(r,e){if(/%$/.test(r))return e===s?parseFloat(r)/100:"rgb"===l?255*parseFloat(r)/100:parseFloat(r);if("h"===l[e]){if(/deg$/.test(r))return parseFloat(r);if(void 0!==baseHues[r])return baseHues[r]}return parseFloat(r)})),n===l&&o.push(1),t=i||void 0===o[s]?1:o[s],o=o.slice(0,s)}else r.length>10&&/[0-9](?:\s|\/)/.test(r)&&(o=r.match(/([0-9]+)/g).map((function(r){return parseFloat(r)})),a=r.match(/([a-z])/gi).join("").toLowerCase());else isNaN(r)?Array.isArray(r)||r.length?(o=[r[0],r[1],r[2]],a="rgb",t=4===r.length?r[3]:1):r instanceof Object&&(null!=r.r||null!=r.red||null!=r.R?(a="rgb",o=[r.r||r.red||r.R||0,r.g||r.green||r.G||0,r.b||r.blue||r.B||0]):(a="hsl",o=[r.h||r.hue||r.H||0,r.s||r.saturation||r.S||0,r.l||r.lightness||r.L||r.b||r.brightness]),t=r.a||r.alpha||r.opacity||1,null!=r.opacity&&(t/=100)):(a="rgb",o=[r>>>16,(65280&r)>>>8,255&r]);return{space:a,values:o,alpha:t}}var parse=colorParse,colorRgba=function(r){var e;Array.isArray(r)&&r.raw&&(r=String.raw.apply(null,arguments));var a=parse(r);if(!a.space)return[];var o=[0,0,0],t="h"===a.space[0]?[360,100,100]:[255,255,255];return(e=Array(3))[0]=Math.min(Math.max(a.values[0],o[0]),t[0]),e[1]=Math.min(Math.max(a.values[1],o[1]),t[1]),e[2]=Math.min(Math.max(a.values[2],o[2]),t[2]),"h"===a.space[0]&&(e=hsl2rgb(e)),e.push(Math.min(Math.max(a.alpha,0),1)),e};function hsl2rgb(r){var e,a,o,t,l,n=r[0]/360,i=r[1]/100,s=r[2]/100,u=0;if(0===i)return[l=255*s,l,l];for(e=2*s-(a=s<.5?s*(1+i):s+i-s*i),t=[0,0,0];u<3;)(o=n+1/3*-(u-1))<0?o++:o>1&&o--,l=6*o<1?e+6*(a-e)*o:2*o<1?a:3*o<2?e+(a-e)*(2/3-o)*6:e,t[u++]=255*l;return t}const colorRgba$1=colorRgba,getContrastYIQ=(r,e,a)=>(299*r+587*e+114*a)/1e3>=128?-1:1,calcColorContrast=(r,e,a,o=1)=>{const t=[Math.max(Math.min(Math.round(e[0]+o*Math.max(1,e[0]/100)),255),0),Math.max(Math.min(Math.round(e[1]+o*Math.max(1,e[1]/100)),255),0),Math.max(Math.min(Math.round(e[2]+o*Math.max(1,e[2]/100)),255),0)],l=s(rgbaConvert.hex(`rgba(${r.join(",")},1)`),rgbaConvert.hex(`rgba(${t.join(",")},1)`)),n=t[0]+t[1]+t[2];return 0===n||765===n||l>a?{background:r,foreground:t,contrast:l}:calcColorContrast(r,t,a,o)},cache=new Map,getColorContrast=(r,e,a,o=1)=>{if(cache.has(r))return cache.get(r);const t=calcColorContrast(r,e,a,o);return cache.set(r,t),t},createContrastColorPair=(r,e=7)=>{let a=[0,0,0,1],o=[255,255,255,1];"string"==typeof r?(a=colorRgba$1(r),o=a):"object"==typeof r&&null!==r&&"string"==typeof r.background&&"string"==typeof r.foreground&&(a=colorRgba$1(r.background),o="string"==typeof r.foreground?colorRgba$1(r.foreground):a);const t=getContrastYIQ(a[0],a[1],a[2]),l=getColorContrast([a[0],a[1],a[2]],[o[0],o[1],o[2]],e,t);return o=[...l.foreground,1],{background:rgbaConvert.hex(`rgba(${a.join(",")})`),foreground:rgbaConvert.hex(`rgba(${o.join(",")})`),contrast:l.contrast}},HEX_REGEX=/^#((\d|[a-f]){8}|(\d|[a-f]){6}|(\d|[a-f]){3,4})$/i;function isHexString(r){return HEX_REGEX.test(r)}function isColorObjectString(r){if(r.startsWith("{"))try{const e=JSON.parse(r);if(isValidColorPair(e))return{type:"ColorPair",value:e};if(isValidDeprecatedColorPair(e))return{type:"DeprecatedColorPair",value:e}}catch(r){return{type:null,value:null}}return{type:null,value:null}}function typeOfColor(r){if(r)if("string"==typeof r){if(isHexString(r))return{type:"string",valid:!0,value:r};{const e=isColorObjectString(r);if(e.value)return{type:e.type,valid:!0,value:e.value}}}else{const e=r;if(isValidColorPair(e))return{type:"ColorPair",valid:!0,value:e};const a=r;if(isValidDeprecatedColorPair(a))return{type:"DeprecatedColorPair",valid:!0,value:a}}return{type:null,valid:!1,value:""}}function isValidColorPair(r){return!("object"!=typeof r||!r||"string"!=typeof r.backgroundColor||!("string"==typeof r.foregroundColor||r.foregroundColor&&"string"==typeof r.foregroundColor.primary&&"string"==typeof r.foregroundColor.secondary&&"string"==typeof r.foregroundColor.neutral))}function isValidDeprecatedColorPair(r){return"object"==typeof r&&r&&"string"==typeof r.backgroundColor&&"string"==typeof r.color}function validatorFunction(r){const e=typeOfColor(r);switch(e.type){case null:return!1;case"string":case"ColorPair":case"DeprecatedColorPair":return e.valid}}const validateColor=(r,e,a)=>{watchValidator(r,"_color",validatorFunction,new Set(["rgb in hex","ColorPair"]),e,a)},handleColorChange=r=>{var e;let a;const o=typeOfColor(r);switch(o.type){case"string":a=createContrastColorPair(o.value);break;case"ColorPair":case"DeprecatedColorPair":{const r=o.value,t=o.value;let l="";t.color?l=t.color:"string"==typeof r.foregroundColor?l=r.foregroundColor:(null===(e=r.foregroundColor)||void 0===e?void 0:e.primary)&&(l=r.foregroundColor.primary),l&&"string"==typeof l||(l="#fff"),a=createContrastColorPair({background:r.backgroundColor,foreground:l});break}case null:console.warn(`_color was empty or invalid (${JSON.stringify(r)})`),a=createContrastColorPair({background:"#000",foreground:"#000"})}return a.contrast<7&&a11yHint(`[KolBadge] The contrast of ${a.contrast} (≥7, AAA) is to low, between the color pair ${a.background} and ${a.foreground}.`),{backgroundColor:a.background,foregroundColor:a.foreground}};export{colorRgba$1 as c,handleColorChange as h,validateColor as v};
4
+ import{r as rgbaConvert,b as s,w as watchValidator}from"./prop.validators-8eaea103.js";import{a as a11yHint}from"./a11y.tipps-4958c1a5.js";var colorName={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},names=colorName,colorParse=parse$1,baseHues={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function parse$1(r){var e,a,o=[],t=1;if("string"==typeof r)if(r=r.toLowerCase(),names[r])o=names[r].slice(),a="rgb";else if("transparent"===r)t=0,a="rgb",o=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(r)){var l=r.slice(1);t=1,(s=l.length)<=4?(o=[parseInt(l[0]+l[0],16),parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16)],4===s&&(t=parseInt(l[3]+l[3],16)/255)):(o=[parseInt(l[0]+l[1],16),parseInt(l[2]+l[3],16),parseInt(l[4]+l[5],16)],8===s&&(t=parseInt(l[6]+l[7],16)/255)),o[0]||(o[0]=0),o[1]||(o[1]=0),o[2]||(o[2]=0),a="rgb"}else if(e=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(r)){var n=e[1],i="rgb"===n;a=l=n.replace(/a$/,"");var s="cmyk"===l?4:"gray"===l?1:3;o=e[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(r,e){if(/%$/.test(r))return e===s?parseFloat(r)/100:"rgb"===l?255*parseFloat(r)/100:parseFloat(r);if("h"===l[e]){if(/deg$/.test(r))return parseFloat(r);if(void 0!==baseHues[r])return baseHues[r]}return parseFloat(r)})),n===l&&o.push(1),t=i||void 0===o[s]?1:o[s],o=o.slice(0,s)}else r.length>10&&/[0-9](?:\s|\/)/.test(r)&&(o=r.match(/([0-9]+)/g).map((function(r){return parseFloat(r)})),a=r.match(/([a-z])/gi).join("").toLowerCase());else isNaN(r)?Array.isArray(r)||r.length?(o=[r[0],r[1],r[2]],a="rgb",t=4===r.length?r[3]:1):r instanceof Object&&(null!=r.r||null!=r.red||null!=r.R?(a="rgb",o=[r.r||r.red||r.R||0,r.g||r.green||r.G||0,r.b||r.blue||r.B||0]):(a="hsl",o=[r.h||r.hue||r.H||0,r.s||r.saturation||r.S||0,r.l||r.lightness||r.L||r.b||r.brightness]),t=r.a||r.alpha||r.opacity||1,null!=r.opacity&&(t/=100)):(a="rgb",o=[r>>>16,(65280&r)>>>8,255&r]);return{space:a,values:o,alpha:t}}var parse=colorParse,colorRgba=function(r){var e;Array.isArray(r)&&r.raw&&(r=String.raw.apply(null,arguments));var a=parse(r);if(!a.space)return[];var o=[0,0,0],t="h"===a.space[0]?[360,100,100]:[255,255,255];return(e=Array(3))[0]=Math.min(Math.max(a.values[0],o[0]),t[0]),e[1]=Math.min(Math.max(a.values[1],o[1]),t[1]),e[2]=Math.min(Math.max(a.values[2],o[2]),t[2]),"h"===a.space[0]&&(e=hsl2rgb(e)),e.push(Math.min(Math.max(a.alpha,0),1)),e};function hsl2rgb(r){var e,a,o,t,l,n=r[0]/360,i=r[1]/100,s=r[2]/100,u=0;if(0===i)return[l=255*s,l,l];for(e=2*s-(a=s<.5?s*(1+i):s+i-s*i),t=[0,0,0];u<3;)(o=n+1/3*-(u-1))<0?o++:o>1&&o--,l=6*o<1?e+6*(a-e)*o:2*o<1?a:3*o<2?e+(a-e)*(2/3-o)*6:e,t[u++]=255*l;return t}const colorRgba$1=colorRgba,getContrastYIQ=(r,e,a)=>(299*r+587*e+114*a)/1e3>=128?-1:1,calcColorContrast=(r,e,a,o=1)=>{const t=[Math.max(Math.min(Math.round(e[0]+o*Math.max(1,e[0]/100)),255),0),Math.max(Math.min(Math.round(e[1]+o*Math.max(1,e[1]/100)),255),0),Math.max(Math.min(Math.round(e[2]+o*Math.max(1,e[2]/100)),255),0)],l=s(rgbaConvert.hex(`rgba(${r.join(",")},1)`),rgbaConvert.hex(`rgba(${t.join(",")},1)`)),n=t[0]+t[1]+t[2];return 0===n||765===n||l>a?{background:r,foreground:t,contrast:l}:calcColorContrast(r,t,a,o)},cache=new Map,getColorContrast=(r,e,a,o=1)=>{if(cache.has(r))return cache.get(r);const t=calcColorContrast(r,e,a,o);return cache.set(r,t),t},createContrastColorPair=(r,e=7)=>{let a=[0,0,0,1],o=[255,255,255,1];"string"==typeof r?(a=colorRgba$1(r),o=a):"object"==typeof r&&null!==r&&"string"==typeof r.background&&"string"==typeof r.foreground&&(a=colorRgba$1(r.background),o="string"==typeof r.foreground?colorRgba$1(r.foreground):a);const t=getContrastYIQ(a[0],a[1],a[2]),l=getColorContrast([a[0],a[1],a[2]],[o[0],o[1],o[2]],e,t);return o=[...l.foreground,1],{background:rgbaConvert.hex(`rgba(${a.join(",")})`),foreground:rgbaConvert.hex(`rgba(${o.join(",")})`),contrast:l.contrast}},HEX_REGEX=/^#((\d|[a-f]){8}|(\d|[a-f]){6}|(\d|[a-f]){3,4})$/i;function isHexString(r){return HEX_REGEX.test(r)}function isColorObjectString(r){if(r.startsWith("{"))try{const e=JSON.parse(r);if(isValidColorPair(e))return{type:"ColorPair",value:e};if(isValidDeprecatedColorPair(e))return{type:"DeprecatedColorPair",value:e}}catch(r){return{type:null,value:null}}return{type:null,value:null}}function typeOfColor(r){if(r)if("string"==typeof r){if(isHexString(r))return{type:"string",valid:!0,value:r};{const e=isColorObjectString(r);if(e.value)return{type:e.type,valid:!0,value:e.value}}}else{const e=r;if(isValidColorPair(e))return{type:"ColorPair",valid:!0,value:e};const a=r;if(isValidDeprecatedColorPair(a))return{type:"DeprecatedColorPair",valid:!0,value:a}}return{type:null,valid:!1,value:""}}function isValidColorPair(r){return!("object"!=typeof r||!r||"string"!=typeof r.backgroundColor||!("string"==typeof r.foregroundColor||r.foregroundColor&&"string"==typeof r.foregroundColor.primary&&"string"==typeof r.foregroundColor.secondary&&"string"==typeof r.foregroundColor.neutral))}function isValidDeprecatedColorPair(r){return"object"==typeof r&&r&&"string"==typeof r.backgroundColor&&"string"==typeof r.color}function validatorFunction(r){const e=typeOfColor(r);switch(e.type){case null:return!1;case"string":case"ColorPair":case"DeprecatedColorPair":return e.valid}}const validateColor=(r,e,a)=>{watchValidator(r,"_color",validatorFunction,new Set(["rgb in hex","ColorPair"]),e,a)},handleColorChange=r=>{var e;let a;const o=typeOfColor(r);switch(o.type){case"string":a=createContrastColorPair(o.value);break;case"ColorPair":case"DeprecatedColorPair":{const r=o.value,t=o.value;let l="";t.color?l=t.color:"string"==typeof r.foregroundColor?l=r.foregroundColor:(null===(e=r.foregroundColor)||void 0===e?void 0:e.primary)&&(l=r.foregroundColor.primary),l&&"string"==typeof l||(l="#fff"),a=createContrastColorPair({background:r.backgroundColor,foreground:l});break}case null:console.warn(`_color was empty or invalid (${JSON.stringify(r)})`),a=createContrastColorPair({background:"#000",foreground:"#000"})}return a.contrast<7&&a11yHint(`[KolBadge] The contrast of ${a.contrast} (≥7, AAA) is to low, between the color pair ${a.background} and ${a.foreground}.`),{backgroundColor:a.background,foregroundColor:a.foreground}};export{colorRgba$1 as c,handleColorChange as h,validateColor as v};