@public-ui/components 2.1.7-rc.2 → 2.1.8-rc.0

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 (723) hide show
  1. package/custom-elements.json +44 -14
  2. package/dist/cjs/{InternalUnderlinedAccessKey-3951c769.js → InternalUnderlinedAccessKey-0d7f5c6f.js} +1 -1
  3. package/dist/cjs/{InternalUnderlinedAccessKey-3951c769.js.map → InternalUnderlinedAccessKey-0d7f5c6f.js.map} +1 -1
  4. package/dist/cjs/access-key-dda2764c.js +4 -0
  5. package/dist/cjs/{access-key-12589f9b.js.map → access-key-dda2764c.js.map} +1 -1
  6. package/dist/cjs/{align-cf181773.js → align-83af4905.js} +1 -1
  7. package/dist/cjs/{align-cf181773.js.map → align-83af4905.js.map} +1 -1
  8. package/dist/cjs/align-floating-elements-fa02822a.js +4 -0
  9. package/dist/cjs/align-floating-elements-fa02822a.js.map +1 -0
  10. package/dist/cjs/app-globals-8a924e59.js +4 -0
  11. package/dist/cjs/app-globals-8a924e59.js.map +1 -0
  12. package/dist/cjs/aria-expanded-9cc5b0f8.js +4 -0
  13. package/dist/cjs/aria-expanded-9cc5b0f8.js.map +1 -0
  14. package/dist/cjs/{associated.controller-17a88d17.js → associated.controller-6ef4fe6e.js} +1 -1
  15. package/dist/cjs/{associated.controller-17a88d17.js.map → associated.controller-6ef4fe6e.js.map} +1 -1
  16. package/dist/cjs/{color-e9f9368d.js → color-cd543319.js} +1 -1
  17. package/dist/cjs/{color-e9f9368d.js.map → color-cd543319.js.map} +1 -1
  18. package/dist/cjs/component-names-4a2d0b57.js +4 -0
  19. package/dist/cjs/component-names-4a2d0b57.js.map +1 -0
  20. package/dist/cjs/{controller-e2f6b61c.js → controller-117b4d51.js} +1 -1
  21. package/dist/cjs/{controller-e2f6b61c.js.map → controller-117b4d51.js.map} +1 -1
  22. package/dist/cjs/{controller-42b3f8a1.js → controller-1840e05f.js} +1 -1
  23. package/dist/cjs/{controller-42b3f8a1.js.map → controller-1840e05f.js.map} +1 -1
  24. package/dist/cjs/controller-7a54a71e.js +4 -0
  25. package/dist/cjs/controller-7a54a71e.js.map +1 -0
  26. package/dist/cjs/{controller-bd9f9fcd.js → controller-abfeee06.js} +1 -1
  27. package/dist/cjs/{controller-bd9f9fcd.js.map → controller-abfeee06.js.map} +1 -1
  28. package/dist/cjs/{controller-f984e45f.js → controller-fa7804d6.js} +1 -1
  29. package/dist/cjs/controller-fa7804d6.js.map +1 -0
  30. package/dist/cjs/{controller-icon-885a15b3.js → controller-icon-a817b9b8.js} +1 -1
  31. package/dist/cjs/{controller-icon-885a15b3.js.map → controller-icon-a817b9b8.js.map} +1 -1
  32. package/dist/cjs/custom-class-691f9ea4.js +4 -0
  33. package/dist/cjs/{custom-class-5a76b8cc.js.map → custom-class-691f9ea4.js.map} +1 -1
  34. package/dist/cjs/{dev.utils-edbe192a.js → dev.utils-0390f767.js} +1 -1
  35. package/dist/cjs/{dev.utils-edbe192a.js.map → dev.utils-0390f767.js.map} +1 -1
  36. package/dist/cjs/{devtools-a43c79b4.js → devtools-d86cb62f.js} +1 -1
  37. package/dist/cjs/{devtools-a43c79b4.js.map → devtools-d86cb62f.js.map} +1 -1
  38. package/dist/cjs/disabled-523f7adc.js +4 -0
  39. package/dist/cjs/{disabled-4f7a7b7e.js.map → disabled-523f7adc.js.map} +1 -1
  40. package/dist/cjs/events-a9d909db.js +4 -0
  41. package/dist/cjs/events-a9d909db.js.map +1 -0
  42. package/dist/cjs/{form-field-msg-eb812022.js → form-field-msg-e2ee9067.js} +1 -1
  43. package/dist/cjs/{form-field-msg-eb812022.js.map → form-field-msg-e2ee9067.js.map} +1 -1
  44. package/dist/cjs/has-closer-143268e8.js +4 -0
  45. package/dist/cjs/{has-closer-354720e1.js.map → has-closer-143268e8.js.map} +1 -1
  46. package/dist/cjs/has-counter-d8a31282.js +4 -0
  47. package/dist/cjs/has-counter-d8a31282.js.map +1 -0
  48. package/dist/cjs/hide-label-82890fe7.js +4 -0
  49. package/dist/cjs/{hide-label-7e4f3ef4.js.map → hide-label-82890fe7.js.map} +1 -1
  50. package/dist/cjs/href-a32df224.js +4 -0
  51. package/dist/cjs/{href-87a51631.js.map → href-a32df224.js.map} +1 -1
  52. package/dist/cjs/i18n-737701e2.js +4 -0
  53. package/dist/cjs/i18n-737701e2.js.map +1 -0
  54. package/dist/cjs/{i18n-c8be9482.js → i18n-b46c3c64.js} +1 -1
  55. package/dist/cjs/{i18n-c8be9482.js.map → i18n-b46c3c64.js.map} +1 -1
  56. package/dist/cjs/{icons-3f3e0089.js → icons-dc98cea7.js} +1 -1
  57. package/dist/cjs/{icons-3f3e0089.js.map → icons-dc98cea7.js.map} +1 -1
  58. package/dist/cjs/image-source-c6b8c632.js +4 -0
  59. package/dist/cjs/{image-source-7ee44fb4.js.map → image-source-c6b8c632.js.map} +1 -1
  60. package/dist/cjs/index-277fc2a7.js +4 -0
  61. package/dist/cjs/index-277fc2a7.js.map +1 -0
  62. package/dist/cjs/index-6912b26b.js +4 -0
  63. package/dist/cjs/index-6912b26b.js.map +1 -0
  64. package/dist/cjs/index.cjs.js +1 -1
  65. package/dist/cjs/index.cjs.js.map +1 -1
  66. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  67. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  68. package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
  69. package/dist/cjs/kol-alert-wc.cjs.entry.js.map +1 -1
  70. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  71. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  73. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  74. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  75. package/dist/cjs/kol-button-group-wc.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-button-group.cjs.entry.js +1 -1
  77. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  78. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  79. package/dist/cjs/kol-button-wc.cjs.entry.js.map +1 -1
  80. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  81. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  82. package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  84. package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  86. package/dist/cjs/kol-heading-wc.cjs.entry.js +1 -1
  87. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  88. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  89. package/dist/cjs/kol-icon.cjs.entry.js.map +1 -1
  90. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  91. package/dist/cjs/kol-indented-text-wc.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-indented-text.cjs.entry.js +1 -1
  93. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  94. package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
  95. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  96. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  97. package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
  98. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  99. package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
  100. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  102. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  103. package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
  104. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  105. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  106. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  107. package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
  108. package/dist/cjs/kol-input.cjs.entry.js +1 -1
  109. package/dist/cjs/kol-input.cjs.entry.js.map +1 -1
  110. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  111. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  112. package/dist/cjs/kol-link-group.cjs.entry.js +1 -1
  113. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  114. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  115. package/dist/cjs/kol-logo.cjs.entry.js +1 -1
  116. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  117. package/dist/cjs/kol-modal.cjs.entry.js.map +1 -1
  118. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  119. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  120. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  121. package/dist/cjs/kol-popover-wc.cjs.entry.js.map +1 -1
  122. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  123. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  124. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  125. package/dist/cjs/kol-single-select.cjs.entry.js +1 -1
  126. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  127. package/dist/cjs/kol-span-wc.cjs.entry.js +1 -1
  128. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  129. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  130. package/dist/cjs/kol-split-button.cjs.entry.js.map +1 -1
  131. package/dist/cjs/kol-symbol.cjs.entry.js +1 -1
  132. package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
  133. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
  134. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js.map +1 -1
  135. package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
  136. package/dist/cjs/kol-table.cjs.entry.js +1 -1
  137. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  138. package/dist/cjs/kol-tabs.cjs.entry.js.map +1 -1
  139. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  140. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  141. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  142. package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
  143. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  144. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
  145. package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
  146. package/dist/cjs/kol-tree-item.cjs.entry.js.map +1 -1
  147. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  148. package/dist/cjs/kol-tree.cjs.entry.js +1 -1
  149. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  150. package/dist/cjs/kolibri.cjs.js +1 -1
  151. package/dist/cjs/kolibri.cjs.js.map +1 -1
  152. package/dist/cjs/{label-5ba50d8b.js → label-5e56f4a8.js} +1 -1
  153. package/dist/cjs/{label-5ba50d8b.js.map → label-5e56f4a8.js.map} +1 -1
  154. package/dist/cjs/loader.cjs.js +1 -1
  155. package/dist/cjs/open-10ca3d4d.js +4 -0
  156. package/dist/cjs/{open-f0d79417.js.map → open-10ca3d4d.js.map} +1 -1
  157. package/dist/cjs/{prop.validators-37113ad1.js → prop.validators-9c1f1dbd.js} +1 -1
  158. package/dist/cjs/prop.validators-9c1f1dbd.js.map +1 -0
  159. package/dist/cjs/rows-df280396.js +4 -0
  160. package/dist/cjs/{rows-4c48715e.js.map → rows-df280396.js.map} +1 -1
  161. package/dist/cjs/show-3a46ec81.js +4 -0
  162. package/dist/cjs/{show-b03b7745.js.map → show-3a46ec81.js.map} +1 -1
  163. package/dist/cjs/{suggestions-3dbb61f0.js → suggestions-5e3cc93f.js} +1 -1
  164. package/dist/cjs/{suggestions-3dbb61f0.js.map → suggestions-5e3cc93f.js.map} +1 -1
  165. package/dist/cjs/{tab-index-621163bf.js → tab-index-a50181fc.js} +1 -1
  166. package/dist/cjs/{tab-index-621163bf.js.map → tab-index-a50181fc.js.map} +1 -1
  167. package/dist/cjs/tooltip-align-8c5c5618.js +4 -0
  168. package/dist/cjs/{tooltip-align-18f90f3f.js.map → tooltip-align-8c5c5618.js.map} +1 -1
  169. package/dist/cjs/{validation-c5bb8a53.js → validation-7f19befc.js} +1 -1
  170. package/dist/cjs/{validation-c5bb8a53.js.map → validation-7f19befc.js.map} +1 -1
  171. package/dist/cjs/{validation-ccf9173b.js → validation-b853d0e9.js} +1 -1
  172. package/dist/cjs/{validation-ccf9173b.js.map → validation-b853d0e9.js.map} +1 -1
  173. package/dist/components/align-floating-elements.js +1 -1
  174. package/dist/components/align-floating-elements.js.map +1 -1
  175. package/dist/components/aria-expanded.js +1 -1
  176. package/dist/components/aria-expanded.js.map +1 -1
  177. package/dist/components/color.js +1 -1
  178. package/dist/components/component-names.js +1 -1
  179. package/dist/components/component-names.js.map +1 -1
  180. package/dist/components/controller-icon.js +1 -1
  181. package/dist/components/controller2.js +1 -1
  182. package/dist/components/controller4.js +1 -1
  183. package/dist/components/controller4.js.map +1 -1
  184. package/dist/components/controller5.js +1 -1
  185. package/dist/components/controller5.js.map +1 -1
  186. package/dist/components/devtools.js +1 -1
  187. package/dist/components/events2.js +1 -1
  188. package/dist/components/events2.js.map +1 -1
  189. package/dist/components/has-counter.js +4 -0
  190. package/dist/components/has-counter.js.map +1 -0
  191. package/dist/components/i18n.js +1 -1
  192. package/dist/components/i18n.js.map +1 -1
  193. package/dist/components/icons.js +1 -1
  194. package/dist/components/index.js +1 -1
  195. package/dist/components/index.js.map +1 -1
  196. package/dist/components/kol-alert-wc.js +1 -1
  197. package/dist/components/kol-alert-wc.js.map +1 -1
  198. package/dist/components/kol-badge.js +1 -1
  199. package/dist/components/kol-breadcrumb.js +1 -1
  200. package/dist/components/kol-button-wc.js +1 -1
  201. package/dist/components/kol-button-wc.js.map +1 -1
  202. package/dist/components/kol-combobox.js +1 -1
  203. package/dist/components/kol-icon.js +1 -1
  204. package/dist/components/kol-icon.js.map +1 -1
  205. package/dist/components/kol-indented-text-wc.js +1 -1
  206. package/dist/components/kol-input-checkbox.js +1 -1
  207. package/dist/components/kol-input-checkbox.js.map +1 -1
  208. package/dist/components/kol-input-date.js +1 -1
  209. package/dist/components/kol-input-date.js.map +1 -1
  210. package/dist/components/kol-input-password.js +1 -1
  211. package/dist/components/kol-input-password.js.map +1 -1
  212. package/dist/components/kol-input.js +1 -1
  213. package/dist/components/kol-input.js.map +1 -1
  214. package/dist/components/kol-modal.js +1 -1
  215. package/dist/components/kol-modal.js.map +1 -1
  216. package/dist/components/kol-nav.js +1 -1
  217. package/dist/components/kol-popover-wc.js +1 -1
  218. package/dist/components/kol-popover-wc.js.map +1 -1
  219. package/dist/components/kol-progress.js +1 -1
  220. package/dist/components/kol-quote.js +1 -1
  221. package/dist/components/kol-select.js +1 -1
  222. package/dist/components/kol-single-select.js +1 -1
  223. package/dist/components/kol-skip-nav.js +1 -1
  224. package/dist/components/kol-span-wc.js +1 -1
  225. package/dist/components/kol-spin.js +1 -1
  226. package/dist/components/kol-split-button.js +1 -1
  227. package/dist/components/kol-split-button.js.map +1 -1
  228. package/dist/components/kol-symbol.js +1 -1
  229. package/dist/components/kol-table-stateful.js +1 -1
  230. package/dist/components/kol-table-stateless-wc.js +1 -1
  231. package/dist/components/kol-table-stateless-wc.js.map +1 -1
  232. package/dist/components/kol-table-stateless.js +1 -1
  233. package/dist/components/kol-table.js +1 -1
  234. package/dist/components/kol-tabs.js +1 -1
  235. package/dist/components/kol-tabs.js.map +1 -1
  236. package/dist/components/kol-textarea.js +1 -1
  237. package/dist/components/kol-textarea.js.map +1 -1
  238. package/dist/components/kol-toast-container.js +1 -1
  239. package/dist/components/kol-toolbar.js +1 -1
  240. package/dist/components/kol-tooltip-wc.js +1 -1
  241. package/dist/components/kol-tree-item-wc.js +1 -1
  242. package/dist/components/kol-tree-item.js +1 -1
  243. package/dist/components/kol-tree-item.js.map +1 -1
  244. package/dist/components/kol-tree-wc.js +1 -1
  245. package/dist/components/kol-tree.js +1 -1
  246. package/dist/components/kol-version.js +1 -1
  247. package/dist/components/prop.validators.js +1 -1
  248. package/dist/components/prop.validators.js.map +1 -1
  249. package/dist/esm/{InternalUnderlinedAccessKey-308bff0a.js → InternalUnderlinedAccessKey-b2266b5a.js} +1 -1
  250. package/dist/esm/{InternalUnderlinedAccessKey-308bff0a.js.map → InternalUnderlinedAccessKey-b2266b5a.js.map} +1 -1
  251. package/dist/esm/{access-key-6ced3097.js → access-key-729d2115.js} +1 -1
  252. package/dist/esm/{access-key-6ced3097.js.map → access-key-729d2115.js.map} +1 -1
  253. package/dist/esm/{align-89a65800.js → align-78bab7b5.js} +1 -1
  254. package/dist/esm/{align-89a65800.js.map → align-78bab7b5.js.map} +1 -1
  255. package/dist/esm/align-floating-elements-8dfecb37.js +4 -0
  256. package/dist/esm/align-floating-elements-8dfecb37.js.map +1 -0
  257. package/dist/esm/app-globals-4f2c8e7b.js +4 -0
  258. package/dist/esm/app-globals-4f2c8e7b.js.map +1 -0
  259. package/dist/esm/aria-expanded-259cbe01.js +4 -0
  260. package/dist/esm/aria-expanded-259cbe01.js.map +1 -0
  261. package/dist/esm/{associated.controller-8e2d43be.js → associated.controller-15cdd804.js} +1 -1
  262. package/dist/esm/{associated.controller-8e2d43be.js.map → associated.controller-15cdd804.js.map} +1 -1
  263. package/dist/esm/{color-52b1b536.js → color-b8652714.js} +1 -1
  264. package/dist/esm/{color-52b1b536.js.map → color-b8652714.js.map} +1 -1
  265. package/dist/esm/{component-names-3e0158fe.js → component-names-0a8a1a6c.js} +1 -1
  266. package/dist/esm/component-names-0a8a1a6c.js.map +1 -0
  267. package/dist/esm/controller-0ab676b5.js +4 -0
  268. package/dist/esm/controller-0ab676b5.js.map +1 -0
  269. package/dist/esm/{controller-ad9f8f69.js → controller-2a4348e1.js} +1 -1
  270. package/dist/esm/{controller-ad9f8f69.js.map → controller-2a4348e1.js.map} +1 -1
  271. package/dist/esm/controller-8c35edf1.js +4 -0
  272. package/dist/esm/controller-8c35edf1.js.map +1 -0
  273. package/dist/esm/{controller-ec76e4bf.js → controller-ec60cfa6.js} +1 -1
  274. package/dist/esm/{controller-ec76e4bf.js.map → controller-ec60cfa6.js.map} +1 -1
  275. package/dist/esm/{controller-056d0f3b.js → controller-fe5a6b8d.js} +1 -1
  276. package/dist/esm/{controller-056d0f3b.js.map → controller-fe5a6b8d.js.map} +1 -1
  277. package/dist/esm/{controller-icon-e155a2b1.js → controller-icon-78e12429.js} +1 -1
  278. package/dist/esm/{controller-icon-e155a2b1.js.map → controller-icon-78e12429.js.map} +1 -1
  279. package/dist/esm/custom-class-1b4696e3.js +4 -0
  280. package/dist/esm/{custom-class-2d443ea5.js.map → custom-class-1b4696e3.js.map} +1 -1
  281. package/dist/esm/{dev.utils-cb789c3d.js → dev.utils-44ef1bde.js} +1 -1
  282. package/dist/esm/{dev.utils-cb789c3d.js.map → dev.utils-44ef1bde.js.map} +1 -1
  283. package/dist/esm/{devtools-a88bc2ec.js → devtools-417fc238.js} +1 -1
  284. package/dist/esm/{devtools-a88bc2ec.js.map → devtools-417fc238.js.map} +1 -1
  285. package/dist/esm/{disabled-d5b4a883.js → disabled-60f09b20.js} +1 -1
  286. package/dist/esm/{disabled-d5b4a883.js.map → disabled-60f09b20.js.map} +1 -1
  287. package/dist/esm/{events-9570402d.js → events-476662bc.js} +1 -1
  288. package/dist/esm/events-476662bc.js.map +1 -0
  289. package/dist/esm/{form-field-msg-2e39a9f7.js → form-field-msg-22e08734.js} +1 -1
  290. package/dist/esm/{form-field-msg-2e39a9f7.js.map → form-field-msg-22e08734.js.map} +1 -1
  291. package/dist/esm/{has-closer-67035624.js → has-closer-f40b362c.js} +1 -1
  292. package/dist/esm/{has-closer-67035624.js.map → has-closer-f40b362c.js.map} +1 -1
  293. package/dist/esm/has-counter-798e2301.js +4 -0
  294. package/dist/esm/has-counter-798e2301.js.map +1 -0
  295. package/dist/esm/{hide-label-6424f890.js → hide-label-1d403517.js} +1 -1
  296. package/dist/esm/{hide-label-6424f890.js.map → hide-label-1d403517.js.map} +1 -1
  297. package/dist/esm/{href-e8c05473.js → href-5e305ce2.js} +1 -1
  298. package/dist/esm/{href-e8c05473.js.map → href-5e305ce2.js.map} +1 -1
  299. package/dist/esm/i18n-7ea9f137.js +4 -0
  300. package/dist/esm/i18n-7ea9f137.js.map +1 -0
  301. package/dist/esm/i18n-8640d789.js +4 -0
  302. package/dist/esm/{i18n-80da5843.js.map → i18n-8640d789.js.map} +1 -1
  303. package/dist/esm/{icons-bd60f3a5.js → icons-b0b05e20.js} +1 -1
  304. package/dist/esm/{icons-bd60f3a5.js.map → icons-b0b05e20.js.map} +1 -1
  305. package/dist/esm/{image-source-c68f09bf.js → image-source-87526275.js} +1 -1
  306. package/dist/esm/{image-source-c68f09bf.js.map → image-source-87526275.js.map} +1 -1
  307. package/dist/esm/index-5728f164.js +4 -0
  308. package/dist/esm/index-5728f164.js.map +1 -0
  309. package/dist/esm/index-cf24d1fe.js +4 -0
  310. package/dist/esm/index-cf24d1fe.js.map +1 -0
  311. package/dist/esm/index.js +1 -1
  312. package/dist/esm/index.js.map +1 -1
  313. package/dist/esm/kol-abbr.entry.js +1 -1
  314. package/dist/esm/kol-accordion.entry.js +1 -1
  315. package/dist/esm/kol-alert-wc.entry.js +1 -1
  316. package/dist/esm/kol-alert-wc.entry.js.map +1 -1
  317. package/dist/esm/kol-alert.entry.js +1 -1
  318. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  319. package/dist/esm/kol-avatar.entry.js +1 -1
  320. package/dist/esm/kol-badge.entry.js +1 -1
  321. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  322. package/dist/esm/kol-button-group-wc.entry.js +1 -1
  323. package/dist/esm/kol-button-group.entry.js +1 -1
  324. package/dist/esm/kol-button-link.entry.js +1 -1
  325. package/dist/esm/kol-button-wc.entry.js +1 -1
  326. package/dist/esm/kol-button-wc.entry.js.map +1 -1
  327. package/dist/esm/kol-button.entry.js +1 -1
  328. package/dist/esm/kol-card.entry.js +1 -1
  329. package/dist/esm/kol-combobox.entry.js +1 -1
  330. package/dist/esm/kol-details.entry.js +1 -1
  331. package/dist/esm/kol-drawer.entry.js +1 -1
  332. package/dist/esm/kol-form.entry.js +1 -1
  333. package/dist/esm/kol-heading-wc.entry.js +1 -1
  334. package/dist/esm/kol-heading.entry.js +1 -1
  335. package/dist/esm/kol-icon.entry.js +1 -1
  336. package/dist/esm/kol-icon.entry.js.map +1 -1
  337. package/dist/esm/kol-image.entry.js +1 -1
  338. package/dist/esm/kol-indented-text-wc.entry.js +1 -1
  339. package/dist/esm/kol-indented-text.entry.js +1 -1
  340. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  341. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  342. package/dist/esm/kol-input-color.entry.js +1 -1
  343. package/dist/esm/kol-input-date.entry.js +1 -1
  344. package/dist/esm/kol-input-date.entry.js.map +1 -1
  345. package/dist/esm/kol-input-email.entry.js +1 -1
  346. package/dist/esm/kol-input-email.entry.js.map +1 -1
  347. package/dist/esm/kol-input-file.entry.js +1 -1
  348. package/dist/esm/kol-input-number.entry.js +1 -1
  349. package/dist/esm/kol-input-password.entry.js +1 -1
  350. package/dist/esm/kol-input-password.entry.js.map +1 -1
  351. package/dist/esm/kol-input-radio.entry.js +1 -1
  352. package/dist/esm/kol-input-range.entry.js +1 -1
  353. package/dist/esm/kol-input-text.entry.js +1 -1
  354. package/dist/esm/kol-input-text.entry.js.map +1 -1
  355. package/dist/esm/kol-input.entry.js +1 -1
  356. package/dist/esm/kol-input.entry.js.map +1 -1
  357. package/dist/esm/kol-kolibri.entry.js +1 -1
  358. package/dist/esm/kol-link-button.entry.js +1 -1
  359. package/dist/esm/kol-link-group.entry.js +1 -1
  360. package/dist/esm/kol-link-wc.entry.js +1 -1
  361. package/dist/esm/kol-link.entry.js +1 -1
  362. package/dist/esm/kol-logo.entry.js +1 -1
  363. package/dist/esm/kol-modal.entry.js +1 -1
  364. package/dist/esm/kol-modal.entry.js.map +1 -1
  365. package/dist/esm/kol-nav.entry.js +1 -1
  366. package/dist/esm/kol-pagination.entry.js +1 -1
  367. package/dist/esm/kol-popover-wc.entry.js +1 -1
  368. package/dist/esm/kol-popover-wc.entry.js.map +1 -1
  369. package/dist/esm/kol-progress.entry.js +1 -1
  370. package/dist/esm/kol-quote.entry.js +1 -1
  371. package/dist/esm/kol-select.entry.js +1 -1
  372. package/dist/esm/kol-single-select.entry.js +1 -1
  373. package/dist/esm/kol-skip-nav.entry.js +1 -1
  374. package/dist/esm/kol-span-wc.entry.js +1 -1
  375. package/dist/esm/kol-spin.entry.js +1 -1
  376. package/dist/esm/kol-split-button.entry.js +1 -1
  377. package/dist/esm/kol-split-button.entry.js.map +1 -1
  378. package/dist/esm/kol-symbol.entry.js +1 -1
  379. package/dist/esm/kol-table-stateful.entry.js +1 -1
  380. package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
  381. package/dist/esm/kol-table-stateless-wc.entry.js.map +1 -1
  382. package/dist/esm/kol-table-stateless.entry.js +1 -1
  383. package/dist/esm/kol-table.entry.js +1 -1
  384. package/dist/esm/kol-tabs.entry.js +1 -1
  385. package/dist/esm/kol-tabs.entry.js.map +1 -1
  386. package/dist/esm/kol-textarea.entry.js +1 -1
  387. package/dist/esm/kol-textarea.entry.js.map +1 -1
  388. package/dist/esm/kol-toast-container.entry.js +1 -1
  389. package/dist/esm/kol-toolbar.entry.js +1 -1
  390. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  391. package/dist/esm/kol-tree-item-wc.entry.js +1 -1
  392. package/dist/esm/kol-tree-item.entry.js +1 -1
  393. package/dist/esm/kol-tree-item.entry.js.map +1 -1
  394. package/dist/esm/kol-tree-wc.entry.js +1 -1
  395. package/dist/esm/kol-tree.entry.js +1 -1
  396. package/dist/esm/kol-version.entry.js +1 -1
  397. package/dist/esm/kolibri.js +1 -1
  398. package/dist/esm/kolibri.js.map +1 -1
  399. package/dist/esm/{label-37acddfe.js → label-084ed1e7.js} +1 -1
  400. package/dist/esm/{label-37acddfe.js.map → label-084ed1e7.js.map} +1 -1
  401. package/dist/esm/loader.js +1 -1
  402. package/dist/esm/{open-8e6f0bcd.js → open-7d2c57bd.js} +1 -1
  403. package/dist/esm/{open-8e6f0bcd.js.map → open-7d2c57bd.js.map} +1 -1
  404. package/dist/esm/prop.validators-5a58fa40.js +4 -0
  405. package/dist/esm/prop.validators-5a58fa40.js.map +1 -0
  406. package/dist/esm/{rows-9afeef27.js → rows-c1ee8752.js} +1 -1
  407. package/dist/esm/{rows-9afeef27.js.map → rows-c1ee8752.js.map} +1 -1
  408. package/dist/esm/show-430cafc2.js +4 -0
  409. package/dist/esm/{show-d234ff64.js.map → show-430cafc2.js.map} +1 -1
  410. package/dist/esm/{suggestions-1d994338.js → suggestions-2f34bad6.js} +1 -1
  411. package/dist/esm/{suggestions-1d994338.js.map → suggestions-2f34bad6.js.map} +1 -1
  412. package/dist/esm/{tab-index-a117f598.js → tab-index-86f3bbae.js} +1 -1
  413. package/dist/esm/{tab-index-a117f598.js.map → tab-index-86f3bbae.js.map} +1 -1
  414. package/dist/esm/{tooltip-align-b217e9d0.js → tooltip-align-e140b328.js} +1 -1
  415. package/dist/esm/{tooltip-align-b217e9d0.js.map → tooltip-align-e140b328.js.map} +1 -1
  416. package/dist/esm/{validation-80318b2c.js → validation-2329d751.js} +1 -1
  417. package/dist/esm/{validation-80318b2c.js.map → validation-2329d751.js.map} +1 -1
  418. package/dist/esm/{validation-381a4169.js → validation-d958b624.js} +1 -1
  419. package/dist/esm/{validation-381a4169.js.map → validation-d958b624.js.map} +1 -1
  420. package/dist/kolibri/{InternalUnderlinedAccessKey-308bff0a.js → InternalUnderlinedAccessKey-b2266b5a.js} +1 -1
  421. package/dist/kolibri/access-key-729d2115.js +4 -0
  422. package/dist/kolibri/align-78bab7b5.js +4 -0
  423. package/dist/kolibri/align-floating-elements-8dfecb37.js +4 -0
  424. package/dist/kolibri/align-floating-elements-8dfecb37.js.map +1 -0
  425. package/dist/kolibri/app-globals-4f2c8e7b.js +4 -0
  426. package/dist/kolibri/aria-expanded-259cbe01.js +4 -0
  427. package/dist/kolibri/aria-expanded-259cbe01.js.map +1 -0
  428. package/dist/kolibri/{associated.controller-8e2d43be.js → associated.controller-15cdd804.js} +1 -1
  429. package/dist/kolibri/{color-52b1b536.js → color-b8652714.js} +1 -1
  430. package/dist/kolibri/{component-names-3e0158fe.js → component-names-0a8a1a6c.js} +1 -1
  431. package/dist/kolibri/{component-names-3e0158fe.js.map → component-names-0a8a1a6c.js.map} +1 -1
  432. package/dist/kolibri/controller-0ab676b5.js +4 -0
  433. package/dist/kolibri/controller-0ab676b5.js.map +1 -0
  434. package/dist/kolibri/controller-2a4348e1.js +4 -0
  435. package/dist/kolibri/controller-8c35edf1.js +4 -0
  436. package/dist/kolibri/controller-8c35edf1.js.map +1 -0
  437. package/dist/kolibri/{controller-ec76e4bf.js → controller-ec60cfa6.js} +1 -1
  438. package/dist/kolibri/{controller-056d0f3b.js → controller-fe5a6b8d.js} +1 -1
  439. package/dist/kolibri/{controller-icon-e155a2b1.js → controller-icon-78e12429.js} +1 -1
  440. package/dist/kolibri/custom-class-1b4696e3.js +4 -0
  441. package/dist/kolibri/{dev.utils-cb789c3d.js → dev.utils-44ef1bde.js} +1 -1
  442. package/dist/kolibri/{devtools-a88bc2ec.js → devtools-417fc238.js} +1 -1
  443. package/dist/kolibri/{disabled-d5b4a883.js → disabled-60f09b20.js} +1 -1
  444. package/dist/kolibri/{events-9570402d.js → events-476662bc.js} +1 -1
  445. package/dist/kolibri/{events-9570402d.js.map → events-476662bc.js.map} +1 -1
  446. package/dist/kolibri/form-field-msg-22e08734.js +4 -0
  447. package/dist/kolibri/has-closer-f40b362c.js +4 -0
  448. package/dist/kolibri/has-counter-798e2301.js +4 -0
  449. package/dist/kolibri/has-counter-798e2301.js.map +1 -0
  450. package/dist/kolibri/hide-label-1d403517.js +4 -0
  451. package/dist/kolibri/href-5e305ce2.js +4 -0
  452. package/dist/kolibri/i18n-7ea9f137.js +4 -0
  453. package/dist/kolibri/i18n-7ea9f137.js.map +1 -0
  454. package/dist/kolibri/i18n-8640d789.js +4 -0
  455. package/dist/kolibri/{icons-bd60f3a5.js → icons-b0b05e20.js} +1 -1
  456. package/dist/kolibri/image-source-87526275.js +4 -0
  457. package/dist/kolibri/index-5728f164.js +4 -0
  458. package/dist/kolibri/index-5728f164.js.map +1 -0
  459. package/dist/kolibri/index-cf24d1fe.js +5 -0
  460. package/dist/kolibri/index-cf24d1fe.js.map +1 -0
  461. package/dist/kolibri/index.esm.js +1 -1
  462. package/dist/kolibri/index.esm.js.map +1 -1
  463. package/dist/kolibri/kol-abbr.entry.js +1 -1
  464. package/dist/kolibri/kol-accordion.entry.js +1 -1
  465. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  466. package/dist/kolibri/kol-alert-wc.entry.js.map +1 -1
  467. package/dist/kolibri/kol-alert.entry.js +1 -1
  468. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  469. package/dist/kolibri/kol-avatar.entry.js +1 -1
  470. package/dist/kolibri/kol-badge.entry.js +1 -1
  471. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  472. package/dist/kolibri/kol-button-group-wc.entry.js +1 -1
  473. package/dist/kolibri/kol-button-group.entry.js +1 -1
  474. package/dist/kolibri/kol-button-link.entry.js +1 -1
  475. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  476. package/dist/kolibri/kol-button-wc.entry.js.map +1 -1
  477. package/dist/kolibri/kol-button.entry.js +1 -1
  478. package/dist/kolibri/kol-card.entry.js +1 -1
  479. package/dist/kolibri/kol-combobox.entry.js +1 -1
  480. package/dist/kolibri/kol-details.entry.js +1 -1
  481. package/dist/kolibri/kol-drawer.entry.js +1 -1
  482. package/dist/kolibri/kol-form.entry.js +1 -1
  483. package/dist/kolibri/kol-heading-wc.entry.js +1 -1
  484. package/dist/kolibri/kol-heading.entry.js +1 -1
  485. package/dist/kolibri/kol-icon.entry.js +1 -1
  486. package/dist/kolibri/kol-icon.entry.js.map +1 -1
  487. package/dist/kolibri/kol-image.entry.js +1 -1
  488. package/dist/kolibri/kol-indented-text-wc.entry.js +1 -1
  489. package/dist/kolibri/kol-indented-text.entry.js +1 -1
  490. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  491. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  492. package/dist/kolibri/kol-input-color.entry.js +1 -1
  493. package/dist/kolibri/kol-input-date.entry.js +1 -1
  494. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  495. package/dist/kolibri/kol-input-email.entry.js +1 -1
  496. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  497. package/dist/kolibri/kol-input-file.entry.js +1 -1
  498. package/dist/kolibri/kol-input-number.entry.js +1 -1
  499. package/dist/kolibri/kol-input-password.entry.js +1 -1
  500. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  501. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  502. package/dist/kolibri/kol-input-range.entry.js +1 -1
  503. package/dist/kolibri/kol-input-text.entry.js +1 -1
  504. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  505. package/dist/kolibri/kol-input.entry.js +1 -1
  506. package/dist/kolibri/kol-input.entry.js.map +1 -1
  507. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  508. package/dist/kolibri/kol-link-button.entry.js +1 -1
  509. package/dist/kolibri/kol-link-group.entry.js +1 -1
  510. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  511. package/dist/kolibri/kol-link.entry.js +1 -1
  512. package/dist/kolibri/kol-logo.entry.js +1 -1
  513. package/dist/kolibri/kol-modal.entry.js +1 -1
  514. package/dist/kolibri/kol-modal.entry.js.map +1 -1
  515. package/dist/kolibri/kol-nav.entry.js +1 -1
  516. package/dist/kolibri/kol-pagination.entry.js +1 -1
  517. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  518. package/dist/kolibri/kol-popover-wc.entry.js.map +1 -1
  519. package/dist/kolibri/kol-progress.entry.js +1 -1
  520. package/dist/kolibri/kol-quote.entry.js +1 -1
  521. package/dist/kolibri/kol-select.entry.js +1 -1
  522. package/dist/kolibri/kol-single-select.entry.js +1 -1
  523. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  524. package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
  525. package/dist/kolibri/kol-span-wc.entry.js +1 -1
  526. package/dist/kolibri/kol-spin.entry.js +1 -1
  527. package/dist/kolibri/kol-split-button.entry.js +1 -1
  528. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  529. package/dist/kolibri/kol-symbol.entry.js +1 -1
  530. package/dist/kolibri/kol-symbol.entry.js.map +1 -1
  531. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  532. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  533. package/dist/kolibri/kol-table-stateless-wc.entry.js.map +1 -1
  534. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  535. package/dist/kolibri/kol-table.entry.js +1 -1
  536. package/dist/kolibri/kol-tabs.entry.js +1 -1
  537. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  538. package/dist/kolibri/kol-textarea.entry.js +1 -1
  539. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  540. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  541. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  542. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  543. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  544. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  545. package/dist/kolibri/kol-tree-item.entry.js.map +1 -1
  546. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  547. package/dist/kolibri/kol-tree.entry.js +1 -1
  548. package/dist/kolibri/kol-version.entry.js +1 -1
  549. package/dist/kolibri/kolibri.esm.js +1 -1
  550. package/dist/kolibri/kolibri.esm.js.map +1 -1
  551. package/dist/kolibri/{label-37acddfe.js → label-084ed1e7.js} +1 -1
  552. package/dist/kolibri/open-7d2c57bd.js +4 -0
  553. package/dist/kolibri/{prop.validators-f89d26b4.js → prop.validators-5a58fa40.js} +1 -1
  554. package/dist/kolibri/rows-c1ee8752.js +4 -0
  555. package/dist/kolibri/show-430cafc2.js +4 -0
  556. package/dist/kolibri/{suggestions-1d994338.js → suggestions-2f34bad6.js} +1 -1
  557. package/dist/kolibri/tab-index-86f3bbae.js +4 -0
  558. package/dist/kolibri/{tab-index-a117f598.js.map → tab-index-86f3bbae.js.map} +1 -1
  559. package/dist/kolibri/tooltip-align-e140b328.js +4 -0
  560. package/dist/kolibri/validation-2329d751.js +4 -0
  561. package/dist/kolibri/validation-d958b624.js +4 -0
  562. package/dist/types/components/input-checkbox/controller.d.ts +2 -1
  563. package/dist/types/components/input-checkbox/shadow.d.ts +3 -1
  564. package/dist/types/components/input-date/controller.d.ts +1 -1
  565. package/dist/types/components/input-password/controller.d.ts +1 -0
  566. package/dist/types/components/input-text/controller.d.ts +0 -1
  567. package/dist/types/components/modal/shadow.d.ts +4 -2
  568. package/dist/types/components/modal/test/html.mock.d.ts +2 -1
  569. package/dist/types/components/popover/component.d.ts +3 -1
  570. package/dist/types/components/split-button/shadow.d.ts +2 -5
  571. package/dist/types/components/table-stateless/component.d.ts +2 -0
  572. package/dist/types/components/tabs/shadow.d.ts +13 -1
  573. package/dist/types/components.d.ts +47 -6
  574. package/dist/types/index.d.ts +3 -4
  575. package/dist/types/schema/components/input-checkbox.d.ts +3 -3
  576. package/dist/types/schema/components/popover.d.ts +3 -3
  577. package/dist/types/schema/components/tabs.d.ts +3 -3
  578. package/dist/types/schema/enums/events.d.ts +2 -1
  579. package/dist/types/schema/enums/index.d.ts +1 -1
  580. package/dist/types/schema/enums/keyboard.d.ts +8 -0
  581. package/dist/types/schema/index.d.ts +1 -1
  582. package/dist/types/schema/props/alternative-button-link-role.d.ts +3 -1
  583. package/dist/types/schema/props/has-counter.d.ts +2 -1
  584. package/dist/types/schema/props/index.d.ts +1 -1
  585. package/dist/types/schema/props/label-align.d.ts +8 -0
  586. package/dist/types/schema/props/popover-callbacks.d.ts +10 -0
  587. package/dist/types/schema/props/tab-behavior.d.ts +8 -0
  588. package/dist/types/schema/utils/prop.validators.d.ts +5 -5
  589. package/dist/types/schema/utils/reuse.d.ts +1 -1
  590. package/doc/badge.md +6 -6
  591. package/doc/input-checkbox.md +1 -0
  592. package/doc/input-color.md +22 -22
  593. package/doc/input-date.md +28 -28
  594. package/doc/input-email.md +29 -29
  595. package/doc/input-file.md +23 -23
  596. package/doc/input-number.md +28 -28
  597. package/doc/input-password.md +28 -28
  598. package/doc/input-text.md +29 -29
  599. package/doc/modal.md +56 -45
  600. package/doc/popover.md +5 -4
  601. package/doc/split-button.md +13 -0
  602. package/doc/table.md +1 -1
  603. package/doc/tabs.md +2 -1
  604. package/package.json +4 -1
  605. package/vscode-custom-data.json +98 -2
  606. package/dist/cjs/access-key-12589f9b.js +0 -4
  607. package/dist/cjs/align-floating-elements-e55859b9.js +0 -4
  608. package/dist/cjs/align-floating-elements-e55859b9.js.map +0 -1
  609. package/dist/cjs/app-globals-13285c37.js +0 -4
  610. package/dist/cjs/app-globals-13285c37.js.map +0 -1
  611. package/dist/cjs/aria-expanded-be98ced6.js +0 -4
  612. package/dist/cjs/aria-expanded-be98ced6.js.map +0 -1
  613. package/dist/cjs/component-names-f704607d.js +0 -4
  614. package/dist/cjs/component-names-f704607d.js.map +0 -1
  615. package/dist/cjs/controller-cbd26426.js +0 -4
  616. package/dist/cjs/controller-cbd26426.js.map +0 -1
  617. package/dist/cjs/controller-f984e45f.js.map +0 -1
  618. package/dist/cjs/custom-class-5a76b8cc.js +0 -4
  619. package/dist/cjs/disabled-4f7a7b7e.js +0 -4
  620. package/dist/cjs/events-a0477b5a.js +0 -4
  621. package/dist/cjs/events-a0477b5a.js.map +0 -1
  622. package/dist/cjs/has-closer-354720e1.js +0 -4
  623. package/dist/cjs/hide-label-7e4f3ef4.js +0 -4
  624. package/dist/cjs/href-87a51631.js +0 -4
  625. package/dist/cjs/i18n-41ebfcca.js +0 -4
  626. package/dist/cjs/i18n-41ebfcca.js.map +0 -1
  627. package/dist/cjs/image-source-7ee44fb4.js +0 -4
  628. package/dist/cjs/index-1285d2d1.js +0 -4
  629. package/dist/cjs/index-1285d2d1.js.map +0 -1
  630. package/dist/cjs/index-afb88da6.js +0 -4
  631. package/dist/cjs/index-afb88da6.js.map +0 -1
  632. package/dist/cjs/open-f0d79417.js +0 -4
  633. package/dist/cjs/prop.validators-37113ad1.js.map +0 -1
  634. package/dist/cjs/rows-4c48715e.js +0 -4
  635. package/dist/cjs/show-b03b7745.js +0 -4
  636. package/dist/cjs/tooltip-align-18f90f3f.js +0 -4
  637. package/dist/esm/align-floating-elements-42e5ff04.js +0 -4
  638. package/dist/esm/align-floating-elements-42e5ff04.js.map +0 -1
  639. package/dist/esm/app-globals-ca7441bd.js +0 -4
  640. package/dist/esm/app-globals-ca7441bd.js.map +0 -1
  641. package/dist/esm/aria-expanded-e75617bf.js +0 -4
  642. package/dist/esm/aria-expanded-e75617bf.js.map +0 -1
  643. package/dist/esm/component-names-3e0158fe.js.map +0 -1
  644. package/dist/esm/controller-3cb3d1e6.js +0 -4
  645. package/dist/esm/controller-3cb3d1e6.js.map +0 -1
  646. package/dist/esm/controller-4bd39719.js +0 -4
  647. package/dist/esm/controller-4bd39719.js.map +0 -1
  648. package/dist/esm/custom-class-2d443ea5.js +0 -4
  649. package/dist/esm/events-9570402d.js.map +0 -1
  650. package/dist/esm/i18n-80da5843.js +0 -4
  651. package/dist/esm/i18n-ece780dd.js +0 -4
  652. package/dist/esm/i18n-ece780dd.js.map +0 -1
  653. package/dist/esm/index-bd96e8df.js +0 -4
  654. package/dist/esm/index-bd96e8df.js.map +0 -1
  655. package/dist/esm/index-db4aa6e4.js +0 -4
  656. package/dist/esm/index-db4aa6e4.js.map +0 -1
  657. package/dist/esm/prop.validators-f89d26b4.js +0 -4
  658. package/dist/esm/prop.validators-f89d26b4.js.map +0 -1
  659. package/dist/esm/show-d234ff64.js +0 -4
  660. package/dist/kolibri/access-key-6ced3097.js +0 -4
  661. package/dist/kolibri/align-89a65800.js +0 -4
  662. package/dist/kolibri/align-floating-elements-42e5ff04.js +0 -4
  663. package/dist/kolibri/align-floating-elements-42e5ff04.js.map +0 -1
  664. package/dist/kolibri/app-globals-ca7441bd.js +0 -4
  665. package/dist/kolibri/aria-expanded-e75617bf.js +0 -4
  666. package/dist/kolibri/aria-expanded-e75617bf.js.map +0 -1
  667. package/dist/kolibri/controller-3cb3d1e6.js +0 -4
  668. package/dist/kolibri/controller-3cb3d1e6.js.map +0 -1
  669. package/dist/kolibri/controller-4bd39719.js +0 -4
  670. package/dist/kolibri/controller-4bd39719.js.map +0 -1
  671. package/dist/kolibri/controller-ad9f8f69.js +0 -4
  672. package/dist/kolibri/custom-class-2d443ea5.js +0 -4
  673. package/dist/kolibri/form-field-msg-2e39a9f7.js +0 -4
  674. package/dist/kolibri/has-closer-67035624.js +0 -4
  675. package/dist/kolibri/hide-label-6424f890.js +0 -4
  676. package/dist/kolibri/href-e8c05473.js +0 -4
  677. package/dist/kolibri/i18n-80da5843.js +0 -4
  678. package/dist/kolibri/i18n-ece780dd.js +0 -4
  679. package/dist/kolibri/i18n-ece780dd.js.map +0 -1
  680. package/dist/kolibri/image-source-c68f09bf.js +0 -4
  681. package/dist/kolibri/index-bd96e8df.js +0 -5
  682. package/dist/kolibri/index-bd96e8df.js.map +0 -1
  683. package/dist/kolibri/index-db4aa6e4.js +0 -4
  684. package/dist/kolibri/index-db4aa6e4.js.map +0 -1
  685. package/dist/kolibri/open-8e6f0bcd.js +0 -4
  686. package/dist/kolibri/rows-9afeef27.js +0 -4
  687. package/dist/kolibri/show-d234ff64.js +0 -4
  688. package/dist/kolibri/tab-index-a117f598.js +0 -4
  689. package/dist/kolibri/tooltip-align-b217e9d0.js +0 -4
  690. package/dist/kolibri/validation-381a4169.js +0 -4
  691. package/dist/kolibri/validation-80318b2c.js +0 -4
  692. package/dist/types/components/modal/service.d.ts +0 -11
  693. /package/dist/kolibri/{InternalUnderlinedAccessKey-308bff0a.js.map → InternalUnderlinedAccessKey-b2266b5a.js.map} +0 -0
  694. /package/dist/kolibri/{access-key-6ced3097.js.map → access-key-729d2115.js.map} +0 -0
  695. /package/dist/kolibri/{align-89a65800.js.map → align-78bab7b5.js.map} +0 -0
  696. /package/dist/kolibri/{app-globals-ca7441bd.js.map → app-globals-4f2c8e7b.js.map} +0 -0
  697. /package/dist/kolibri/{associated.controller-8e2d43be.js.map → associated.controller-15cdd804.js.map} +0 -0
  698. /package/dist/kolibri/{color-52b1b536.js.map → color-b8652714.js.map} +0 -0
  699. /package/dist/kolibri/{controller-ad9f8f69.js.map → controller-2a4348e1.js.map} +0 -0
  700. /package/dist/kolibri/{controller-ec76e4bf.js.map → controller-ec60cfa6.js.map} +0 -0
  701. /package/dist/kolibri/{controller-056d0f3b.js.map → controller-fe5a6b8d.js.map} +0 -0
  702. /package/dist/kolibri/{controller-icon-e155a2b1.js.map → controller-icon-78e12429.js.map} +0 -0
  703. /package/dist/kolibri/{custom-class-2d443ea5.js.map → custom-class-1b4696e3.js.map} +0 -0
  704. /package/dist/kolibri/{dev.utils-cb789c3d.js.map → dev.utils-44ef1bde.js.map} +0 -0
  705. /package/dist/kolibri/{devtools-a88bc2ec.js.map → devtools-417fc238.js.map} +0 -0
  706. /package/dist/kolibri/{disabled-d5b4a883.js.map → disabled-60f09b20.js.map} +0 -0
  707. /package/dist/kolibri/{form-field-msg-2e39a9f7.js.map → form-field-msg-22e08734.js.map} +0 -0
  708. /package/dist/kolibri/{has-closer-67035624.js.map → has-closer-f40b362c.js.map} +0 -0
  709. /package/dist/kolibri/{hide-label-6424f890.js.map → hide-label-1d403517.js.map} +0 -0
  710. /package/dist/kolibri/{href-e8c05473.js.map → href-5e305ce2.js.map} +0 -0
  711. /package/dist/kolibri/{i18n-80da5843.js.map → i18n-8640d789.js.map} +0 -0
  712. /package/dist/kolibri/{icons-bd60f3a5.js.map → icons-b0b05e20.js.map} +0 -0
  713. /package/dist/kolibri/{image-source-c68f09bf.js.map → image-source-87526275.js.map} +0 -0
  714. /package/dist/kolibri/{label-37acddfe.js.map → label-084ed1e7.js.map} +0 -0
  715. /package/dist/kolibri/{open-8e6f0bcd.js.map → open-7d2c57bd.js.map} +0 -0
  716. /package/dist/kolibri/{prop.validators-f89d26b4.js.map → prop.validators-5a58fa40.js.map} +0 -0
  717. /package/dist/kolibri/{rows-9afeef27.js.map → rows-c1ee8752.js.map} +0 -0
  718. /package/dist/kolibri/{show-d234ff64.js.map → show-430cafc2.js.map} +0 -0
  719. /package/dist/kolibri/{suggestions-1d994338.js.map → suggestions-2f34bad6.js.map} +0 -0
  720. /package/dist/kolibri/{tooltip-align-b217e9d0.js.map → tooltip-align-e140b328.js.map} +0 -0
  721. /package/dist/kolibri/{validation-80318b2c.js.map → validation-2329d751.js.map} +0 -0
  722. /package/dist/kolibri/{validation-381a4169.js.map → validation-d958b624.js.map} +0 -0
  723. /package/dist/{declare.d.ts → types/declare.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{I as InputController}from"./controller-ec76e4bf.js";import{a as a11yHint,g as watchJsonArrayString,b as watchBoolean,w as watchValidator,m as mapString2Unknown,s as setState}from"./prop.validators-f89d26b4.js";import{b as hasEnoughReadableChars,c as containsOnlyNumbers}from"./label-37acddfe.js";const validateInputSelectOptions=t=>{if("object"==typeof t&&null!==t){if("string"==typeof t.label&&t.label.length>0)return t.disabled=!0===t.disabled,t.label=`${t.label}`.trim(),!1===hasEnoughReadableChars(t.label,3)&&!1===containsOnlyNumbers(t.label)&&a11yHint(`A differing Aria-Label (${t.label}) is not accessible. A differing Aria-Label should consist of at least three readable characters.`),!Array.isArray(t.options)||void 0===t.options.find((t=>!1===validateInputSelectOptions(t)));if("number"==typeof t.label)return!0}return!1},validateOptions=(t,e,o={})=>{watchJsonArrayString(t,"_options",(t=>"object"==typeof t&&null!==t&&"string"==typeof t.label&&t.label.length>0),e,void 0,o)},validateOptionsWithOptgroup=(t,e,o={})=>{watchJsonArrayString(t,"_options",validateInputSelectOptions,e,void 0,o)},validateRequired=(t,e)=>{watchBoolean(t,"_required",e)},orientationOptions=["horizontal","vertical"],fillKeyOptionMap=(t,e,o="")=>{e.forEach(((e,a)=>{const i=`${o}-${a}`;"object"==typeof e&&null!==e&&"string"==typeof e.label&&e.label.length>0&&(Array.isArray(e.options)?fillKeyOptionMap(t,e.options,i):t.set(i,e))}))};class InputCheckboxRadioController extends InputController{constructor(t,e,o){super(t,e,o),this.component=t}validateRequired(t){validateRequired(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateRequired(this.component._required)}}class InputRadioController extends InputCheckboxRadioController{constructor(t,e,o){super(t,e,o),this.keyOptionMap=new Map,this.getOptionByKey=t=>this.keyOptionMap.get(t),this.afterPatchOptions=(t,e,o,a)=>{"_value"===a&&this.setFormAssociatedValue(t)},this.beforePatchOptions=(t,e)=>{const o=e.has("_options")?e.get("_options"):this.component.state._options;Array.isArray(o)&&o.length>0&&(this.keyOptionMap.clear(),fillKeyOptionMap(this.keyOptionMap,o))},this.component=t}validateOrientation(t){watchValidator(this.component,"_orientation",(t=>"string"==typeof t&&orientationOptions.includes(t)),new Set([`Orientation {${orientationOptions.join(", ")}`]),t,{defaultValue:"vertical"})}validateOptions(t){validateOptions(this.component,t,{hooks:{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions}})}validateValue(t){t=mapString2Unknown(t),t=Array.isArray(t)?t[0]:t,setState(this.component,"_value",t,{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions})}componentWillLoad(){super.componentWillLoad(),this.validateOrientation(this.component._orientation),this.validateOptions(this.component._options),this.validateValue(this.component._value)}}export{InputCheckboxRadioController as I,InputRadioController as a,validateOptions as b,fillKeyOptionMap as f,validateOptionsWithOptgroup as v};
4
+ import{I as InputController}from"./controller-ec60cfa6.js";import{a as a11yHint,g as watchJsonArrayString,b as watchBoolean,w as watchValidator,m as mapString2Unknown,s as setState}from"./prop.validators-5a58fa40.js";import{b as hasEnoughReadableChars,c as containsOnlyNumbers}from"./label-084ed1e7.js";const validateInputSelectOptions=t=>{if("object"==typeof t&&null!==t){if("string"==typeof t.label&&t.label.length>0)return t.disabled=!0===t.disabled,t.label=`${t.label}`.trim(),!1===hasEnoughReadableChars(t.label,3)&&!1===containsOnlyNumbers(t.label)&&a11yHint(`A differing Aria-Label (${t.label}) is not accessible. A differing Aria-Label should consist of at least three readable characters.`),!Array.isArray(t.options)||void 0===t.options.find((t=>!1===validateInputSelectOptions(t)));if("number"==typeof t.label)return!0}return!1},validateOptions=(t,e,o={})=>{watchJsonArrayString(t,"_options",(t=>"object"==typeof t&&null!==t&&"string"==typeof t.label&&t.label.length>0),e,void 0,o)},validateOptionsWithOptgroup=(t,e,o={})=>{watchJsonArrayString(t,"_options",validateInputSelectOptions,e,void 0,o)},validateRequired=(t,e)=>{watchBoolean(t,"_required",e)},orientationOptions=["horizontal","vertical"],fillKeyOptionMap=(t,e,o="")=>{e.forEach(((e,a)=>{const i=`${o}-${a}`;"object"==typeof e&&null!==e&&"string"==typeof e.label&&e.label.length>0&&(Array.isArray(e.options)?fillKeyOptionMap(t,e.options,i):t.set(i,e))}))};class InputCheckboxRadioController extends InputController{constructor(t,e,o){super(t,e,o),this.component=t}validateRequired(t){validateRequired(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateRequired(this.component._required)}}class InputRadioController extends InputCheckboxRadioController{constructor(t,e,o){super(t,e,o),this.keyOptionMap=new Map,this.getOptionByKey=t=>this.keyOptionMap.get(t),this.afterPatchOptions=(t,e,o,a)=>{"_value"===a&&this.setFormAssociatedValue(t)},this.beforePatchOptions=(t,e)=>{const o=e.has("_options")?e.get("_options"):this.component.state._options;Array.isArray(o)&&o.length>0&&(this.keyOptionMap.clear(),fillKeyOptionMap(this.keyOptionMap,o))},this.component=t}validateOrientation(t){watchValidator(this.component,"_orientation",(t=>"string"==typeof t&&orientationOptions.includes(t)),new Set([`Orientation {${orientationOptions.join(", ")}`]),t,{defaultValue:"vertical"})}validateOptions(t){validateOptions(this.component,t,{hooks:{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions}})}validateValue(t){t=mapString2Unknown(t),t=Array.isArray(t)?t[0]:t,setState(this.component,"_value",t,{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions})}componentWillLoad(){super.componentWillLoad(),this.validateOrientation(this.component._orientation),this.validateOptions(this.component._options),this.validateValue(this.component._value)}}export{InputCheckboxRadioController as I,InputRadioController as a,validateOptions as b,fillKeyOptionMap as f,validateOptionsWithOptgroup as v};
@@ -1 +1 @@
1
- {"file":"controller-056d0f3b.js","mappings":";;;;;;;AAIO,MAAM,0BAA0B,GAAG,CAAI,MAAuB;IACpE,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,IAAI,EAAE;QAClD,IAAI,OAAO,MAAM,CAAC,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;YAChE,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,KAAK,IAAI,CAAC;YAC3C,MAAM,CAAC,KAAK,GAAG,GAAG,MAAM,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,CAAC;YACxC,IAAI,sBAAsB,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,KAAK,IAAI,mBAAmB,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,KAAK,EAAE;gBACrG,QAAQ,CAAC,2BAA2B,MAAM,CAAC,KAAK,mGAAmG,CAAC,CAAC;aACrJ;YACD,IAAI,KAAK,CAAC,OAAO,CAAE,MAAsB,CAAC,OAAO,CAAC,EAAE;gBACnD,QACE,MAAsB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI;oBACzC,OAAO,0BAA0B,CAAC,IAA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AE,IAAI,CAAC,kBAAkB;SACpC,CAAC,CAAC;KACH;IAEM,iBAAiB;QACvB,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;QACtD,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QAC9C,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;KAC1C;;;;;","names":[],"sources":["src/schema/validators/options.ts","src/schema/props/options.ts","src/schema/props/required.ts","src/schema/types/orientation.ts","src/components/input-radio/controller.ts"],"sourcesContent":["import { containsOnlyNumbers, hasEnoughReadableChars } from '../props';\nimport { a11yHint } from '../utils';\n\nimport type { Optgroup, SelectOption } from '../types';\nexport const validateInputSelectOptions = <T>(option: SelectOption<T>): boolean => {\n\tif (typeof option === 'object' && option !== null) {\n\t\tif (typeof option.label === 'string' && option.label.length > 0) {\n\t\t\toption.disabled = option.disabled === true;\n\t\t\toption.label = `${option.label}`.trim();\n\t\t\tif (hasEnoughReadableChars(option.label, 3) === false && containsOnlyNumbers(option.label) === false) {\n\t\t\t\ta11yHint(`A differing Aria-Label (${option.label}) is not accessible. A differing Aria-Label should consist of at least three readable characters.`);\n\t\t\t}\n\t\t\tif (Array.isArray((option as Optgroup<T>).options)) {\n\t\t\t\treturn (\n\t\t\t\t\t(option as Optgroup<T>).options.find((item) => {\n\t\t\t\t\t\treturn validateInputSelectOptions(item) === false;\n\t\t\t\t\t}) === undefined\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn true;\n\t\t} else if (typeof option.label === 'number') {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { RadioOption, Optgroup, Option, StencilUnknown } from '../types';\nimport type { Stringified } from '../types/common';\nimport type { WatchOptions } from '../utils';\nimport { watchJsonArrayString } from '../utils';\nimport { validateInputSelectOptions } from '../validators';\n\n/* types */\n\nexport type OptionsPropType = Stringified<Option<StencilUnknown>[]>;\nexport type OptionsWithOptgroupPropType = Stringified<(Option<StencilUnknown> | Optgroup<StencilUnknown>)[]>;\nexport type RadioOptionsPropType = Stringified<RadioOption<StencilUnknown>[]>;\n\n/**\n * Options the user can choose from.\n */\nexport type PropOptions = {\n\toptions: OptionsPropType;\n};\n\nexport type PropRadioOptions = {\n\toptions: RadioOptionsPropType;\n};\n\n/**\n * Options the user can choose from, also supporting Optgroup.\n */\nexport type PropOptionsWithOptgroup = {\n\toptions: OptionsWithOptgroupPropType;\n};\n\n/* validators */\n\nexport const validateOptions = (component: Generic.Element.Component, value: OptionsPropType | undefined, options: WatchOptions = {}): void => {\n\twatchJsonArrayString(\n\t\tcomponent,\n\t\t'_options',\n\t\t(item: Option<StencilUnknown>) => typeof item === 'object' && item !== null && typeof item.label === 'string' && item.label.length > 0,\n\t\tvalue,\n\t\tundefined,\n\t\toptions,\n\t);\n};\n\nexport const validateOptionsWithOptgroup = (\n\tcomponent: Generic.Element.Component,\n\tvalue: OptionsWithOptgroupPropType | undefined,\n\toptions: WatchOptions = {},\n) => {\n\twatchJsonArrayString(component, '_options', validateInputSelectOptions, value, undefined, options);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { watchBoolean } from '../utils';\n\n/* types */\ntype RequiredPropType = boolean;\n\n/**\n * Makes the input element required.\n */\nexport type PropRequired = {\n\trequired: RequiredPropType;\n};\n\n/* validator */\nexport const validateRequired = (component: Generic.Element.Component, value?: RequiredPropType): void => {\n\twatchBoolean(component, '_required', value);\n};\n","export const orientationOptions = ['horizontal', 'vertical'] as const;\nexport type Orientation = (typeof orientationOptions)[number];\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type {\n\tInputRadioProps,\n\tInputRadioWatches,\n\tOptgroup,\n\tRadioOption,\n\tOptionsPropType,\n\tOrientation,\n\tPropLabelWithExpertSlot,\n\tSelectOption,\n\tStencilUnknown,\n\tStringified,\n\tW3CInputValue,\n} from '../../schema';\nimport { mapString2Unknown, orientationOptions, setState, validateOptions, validateRequired, watchValidator } from '../../schema';\n\nimport { InputController } from '../@deprecated/input/controller';\n\nexport const fillKeyOptionMap = <T>(keyOptionMap: Map<string, RadioOption<T>>, options: SelectOption<T>[], preKey = ''): void => {\n\toptions.forEach((option, index) => {\n\t\tconst key = `${preKey}-${index}`;\n\t\tif (typeof option === 'object' && option !== null && typeof option.label === 'string' && option.label.length > 0) {\n\t\t\tif (Array.isArray((option as Optgroup<T>).options)) {\n\t\t\t\tfillKeyOptionMap(keyOptionMap, (option as Optgroup<T>).options, key);\n\t\t\t} else {\n\t\t\t\tkeyOptionMap.set(key, option as RadioOption<T>);\n\t\t\t}\n\t\t}\n\t});\n};\n\ntype RequiredProps = PropLabelWithExpertSlot;\ntype OptionalProps = {\n\trequired: boolean;\n};\ntype InputCheckboxRadioProps = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype InputCheckboxRadioWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\nexport class InputCheckboxRadioController extends InputController implements InputCheckboxRadioWatches {\n\tprotected readonly component: Generic.Element.Component & InputCheckboxRadioProps;\n\n\tpublic constructor(component: Generic.Element.Component & InputCheckboxRadioProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateRequired(value?: boolean): void {\n\t\tvalidateRequired(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateRequired(this.component._required);\n\t}\n}\n\nexport class InputRadioController extends InputCheckboxRadioController implements InputRadioWatches {\n\tprotected readonly component: Generic.Element.Component & InputRadioProps;\n\tprivate readonly keyOptionMap = new Map<string, RadioOption<W3CInputValue>>();\n\n\tpublic constructor(component: Generic.Element.Component & InputRadioProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic readonly getOptionByKey = (key: string): RadioOption<W3CInputValue> | undefined => this.keyOptionMap.get(key);\n\n\tprotected readonly afterPatchOptions = (value: unknown, _state: Record<string, unknown>, _component: Generic.Element.Component, key: string): void => {\n\t\tif (key === '_value') {\n\t\t\tthis.setFormAssociatedValue(value as string);\n\t\t}\n\t};\n\n\tpublic validateOrientation(value?: Orientation): void {\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_orientation',\n\t\t\t(value): boolean => typeof value === 'string' && orientationOptions.includes(value),\n\t\t\tnew Set([`Orientation {${orientationOptions.join(', ')}`]),\n\t\t\tvalue,\n\t\t\t{\n\t\t\t\tdefaultValue: 'vertical',\n\t\t\t},\n\t\t);\n\t}\n\n\tprotected readonly beforePatchOptions = (_value: unknown, nextState: Map<string, unknown>): void => {\n\t\tconst options = nextState.has('_options') ? nextState.get('_options') : this.component.state._options;\n\t\tif (Array.isArray(options) && options.length > 0) {\n\t\t\tthis.keyOptionMap.clear();\n\t\t\tfillKeyOptionMap(this.keyOptionMap, options as SelectOption<W3CInputValue>[]);\n\t\t}\n\t};\n\n\tpublic validateOptions(value?: OptionsPropType): void {\n\t\tvalidateOptions(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: this.afterPatchOptions,\n\t\t\t\tbeforePatch: this.beforePatchOptions,\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic validateValue(value?: Stringified<StencilUnknown>): void {\n\t\tvalue = mapString2Unknown(value);\n\t\tvalue = Array.isArray(value) ? (value[0] as StencilUnknown) : value;\n\t\tsetState(this.component, '_value', value, {\n\t\t\tafterPatch: this.afterPatchOptions,\n\t\t\tbeforePatch: this.beforePatchOptions,\n\t\t});\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateOrientation(this.component._orientation);\n\t\tthis.validateOptions(this.component._options);\n\t\tthis.validateValue(this.component._value);\n\t}\n}\n"],"version":3}
1
+ {"file":"controller-fe5a6b8d.js","mappings":";;;;;;;AA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AAO,KAAK,KAAK,QAAQ,IAAI,kBAAkB,CAAC,QAAQ,CAAC,KAAK,CAAC,EACnF,IAAI,GAAG,CAAC,CAAC,gBAAgB,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EAC1D,KAAK,EACL;YACC,YAAY,EAAE,UAAU;SACxB,CACD,CAAC;KACF;IAUM,eAAe,CAAC,KAAuB;QAC7C,eAAe,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE;YACtC,KAAK,EAAE;gBACN,UAAU,EAAE,IAAI,CAAC,iBAAiB;gBAClC,WAAW,EAAE,IAAI,CAAC,kBAAkB;aACpC;SACD,CAAC,CAAC;KACH;IAEM,aAAa,CAAC,KAAmC;QACvD,KAAK,GAAG,iBAAiB,CAAC,KAAK,CAAC,CAAC;QACjC,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,GAAI,KAAK,CAAC,CAAC,CAAoB,GAAG,KAAK,CAAC;QACpE,QAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE;YACzC,UAAU,EAAE,IAAI,CAAC,iBAAiB;YAClC,WAAW,EAAE,IAAI,CAAC,kBAAkB;SACpC,CAAC,CAAC;KACH;IAEM,iBAAiB;QACvB,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;QACtD,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QAC9C,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;KAC1C;;;;;","names":[],"sources":["src/schema/validators/options.ts","src/schema/props/options.ts","src/schema/props/required.ts","src/schema/types/orientation.ts","src/components/input-radio/controller.ts"],"sourcesContent":["import { containsOnlyNumbers, hasEnoughReadableChars } from '../props';\nimport { a11yHint } from '../utils';\n\nimport type { Optgroup, SelectOption } from '../types';\nexport const validateInputSelectOptions = <T>(option: SelectOption<T>): boolean => {\n\tif (typeof option === 'object' && option !== null) {\n\t\tif (typeof option.label === 'string' && option.label.length > 0) {\n\t\t\toption.disabled = option.disabled === true;\n\t\t\toption.label = `${option.label}`.trim();\n\t\t\tif (hasEnoughReadableChars(option.label, 3) === false && containsOnlyNumbers(option.label) === false) {\n\t\t\t\ta11yHint(`A differing Aria-Label (${option.label}) is not accessible. A differing Aria-Label should consist of at least three readable characters.`);\n\t\t\t}\n\t\t\tif (Array.isArray((option as Optgroup<T>).options)) {\n\t\t\t\treturn (\n\t\t\t\t\t(option as Optgroup<T>).options.find((item) => {\n\t\t\t\t\t\treturn validateInputSelectOptions(item) === false;\n\t\t\t\t\t}) === undefined\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn true;\n\t\t} else if (typeof option.label === 'number') {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { RadioOption, Optgroup, Option, StencilUnknown } from '../types';\nimport type { Stringified } from '../types/common';\nimport type { WatchOptions } from '../utils';\nimport { watchJsonArrayString } from '../utils';\nimport { validateInputSelectOptions } from '../validators';\n\n/* types */\n\nexport type OptionsPropType = Stringified<Option<StencilUnknown>[]>;\nexport type OptionsWithOptgroupPropType = Stringified<(Option<StencilUnknown> | Optgroup<StencilUnknown>)[]>;\nexport type RadioOptionsPropType = Stringified<RadioOption<StencilUnknown>[]>;\n\n/**\n * Options the user can choose from.\n */\nexport type PropOptions = {\n\toptions: OptionsPropType;\n};\n\nexport type PropRadioOptions = {\n\toptions: RadioOptionsPropType;\n};\n\n/**\n * Options the user can choose from, also supporting Optgroup.\n */\nexport type PropOptionsWithOptgroup = {\n\toptions: OptionsWithOptgroupPropType;\n};\n\n/* validators */\n\nexport const validateOptions = (component: Generic.Element.Component, value: OptionsPropType | undefined, options: WatchOptions = {}): void => {\n\twatchJsonArrayString(\n\t\tcomponent,\n\t\t'_options',\n\t\t(item: Option<StencilUnknown>) => typeof item === 'object' && item !== null && typeof item.label === 'string' && item.label.length > 0,\n\t\tvalue,\n\t\tundefined,\n\t\toptions,\n\t);\n};\n\nexport const validateOptionsWithOptgroup = (\n\tcomponent: Generic.Element.Component,\n\tvalue: OptionsWithOptgroupPropType | undefined,\n\toptions: WatchOptions = {},\n) => {\n\twatchJsonArrayString(component, '_options', validateInputSelectOptions, value, undefined, options);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { watchBoolean } from '../utils';\n\n/* types */\ntype RequiredPropType = boolean;\n\n/**\n * Makes the input element required.\n */\nexport type PropRequired = {\n\trequired: RequiredPropType;\n};\n\n/* validator */\nexport const validateRequired = (component: Generic.Element.Component, value?: RequiredPropType): void => {\n\twatchBoolean(component, '_required', value);\n};\n","export const orientationOptions = ['horizontal', 'vertical'] as const;\nexport type Orientation = (typeof orientationOptions)[number];\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type {\n\tInputRadioProps,\n\tInputRadioWatches,\n\tOptgroup,\n\tRadioOption,\n\tOptionsPropType,\n\tOrientation,\n\tPropLabelWithExpertSlot,\n\tSelectOption,\n\tStencilUnknown,\n\tStringified,\n\tW3CInputValue,\n} from '../../schema';\nimport { mapString2Unknown, orientationOptions, setState, validateOptions, validateRequired, watchValidator } from '../../schema';\n\nimport { InputController } from '../@deprecated/input/controller';\n\nexport const fillKeyOptionMap = <T>(keyOptionMap: Map<string, RadioOption<T>>, options: SelectOption<T>[], preKey = ''): void => {\n\toptions.forEach((option, index) => {\n\t\tconst key = `${preKey}-${index}`;\n\t\tif (typeof option === 'object' && option !== null && typeof option.label === 'string' && option.label.length > 0) {\n\t\t\tif (Array.isArray((option as Optgroup<T>).options)) {\n\t\t\t\tfillKeyOptionMap(keyOptionMap, (option as Optgroup<T>).options, key);\n\t\t\t} else {\n\t\t\t\tkeyOptionMap.set(key, option as RadioOption<T>);\n\t\t\t}\n\t\t}\n\t});\n};\n\ntype RequiredProps = PropLabelWithExpertSlot;\ntype OptionalProps = {\n\trequired: boolean;\n};\ntype InputCheckboxRadioProps = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype InputCheckboxRadioWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\nexport class InputCheckboxRadioController extends InputController implements InputCheckboxRadioWatches {\n\tprotected readonly component: Generic.Element.Component & InputCheckboxRadioProps;\n\n\tpublic constructor(component: Generic.Element.Component & InputCheckboxRadioProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateRequired(value?: boolean): void {\n\t\tvalidateRequired(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateRequired(this.component._required);\n\t}\n}\n\nexport class InputRadioController extends InputCheckboxRadioController implements InputRadioWatches {\n\tprotected readonly component: Generic.Element.Component & InputRadioProps;\n\tprivate readonly keyOptionMap = new Map<string, RadioOption<W3CInputValue>>();\n\n\tpublic constructor(component: Generic.Element.Component & InputRadioProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic readonly getOptionByKey = (key: string): RadioOption<W3CInputValue> | undefined => this.keyOptionMap.get(key);\n\n\tprotected readonly afterPatchOptions = (value: unknown, _state: Record<string, unknown>, _component: Generic.Element.Component, key: string): void => {\n\t\tif (key === '_value') {\n\t\t\tthis.setFormAssociatedValue(value as string);\n\t\t}\n\t};\n\n\tpublic validateOrientation(value?: Orientation): void {\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_orientation',\n\t\t\t(value): boolean => typeof value === 'string' && orientationOptions.includes(value),\n\t\t\tnew Set([`Orientation {${orientationOptions.join(', ')}`]),\n\t\t\tvalue,\n\t\t\t{\n\t\t\t\tdefaultValue: 'vertical',\n\t\t\t},\n\t\t);\n\t}\n\n\tprotected readonly beforePatchOptions = (_value: unknown, nextState: Map<string, unknown>): void => {\n\t\tconst options = nextState.has('_options') ? nextState.get('_options') : this.component.state._options;\n\t\tif (Array.isArray(options) && options.length > 0) {\n\t\t\tthis.keyOptionMap.clear();\n\t\t\tfillKeyOptionMap(this.keyOptionMap, options as SelectOption<W3CInputValue>[]);\n\t\t}\n\t};\n\n\tpublic validateOptions(value?: OptionsPropType): void {\n\t\tvalidateOptions(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: this.afterPatchOptions,\n\t\t\t\tbeforePatch: this.beforePatchOptions,\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic validateValue(value?: Stringified<StencilUnknown>): void {\n\t\tvalue = mapString2Unknown(value);\n\t\tvalue = Array.isArray(value) ? (value[0] as StencilUnknown) : value;\n\t\tsetState(this.component, '_value', value, {\n\t\t\tafterPatch: this.afterPatchOptions,\n\t\t\tbeforePatch: this.beforePatchOptions,\n\t\t});\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateOrientation(this.component._orientation);\n\t\tthis.validateOptions(this.component._options);\n\t\tthis.validateValue(this.component._value);\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{I as InputController}from"./controller-ec76e4bf.js";import{i as isIcon}from"./icons-bd60f3a5.js";import{o as objectObjectHandler,p as parseJson,w as watchValidator}from"./prop.validators-f89d26b4.js";import{i as isString}from"./common-54bf85ba.js";const beforePatchIcons=(o,t)=>{const n=o;"object"==typeof n&&null!==n&&(isString(n.right,1)&&(n.right={icon:n.right}),isString(n.left,1)&&(n.left={icon:n.left}),t.set("_icons",n))};class InputIconController extends InputController{constructor(o,t,n){super(o,t,n),this.component=o}validateIcon(o){this.validateIcons(o)}validateIcons(o){objectObjectHandler(o,(()=>{try{o=parseJson(o)}catch(o){}watchValidator(this.component,"_icons",(o=>"object"==typeof o&&null!==o&&(isString(o.left,1)||isIcon(o.left)||isString(o.right,1)||isIcon(o.right))),new Set(["KoliBriHorizontalIcon"]),o,{hooks:{beforePatch:beforePatchIcons},required:!0})}))}componentWillLoad(){super.componentWillLoad(),this.validateIcons(this.component._icons||this.component._icon)}}export{InputIconController as I};
4
+ import{I as InputController}from"./controller-ec60cfa6.js";import{i as isIcon}from"./icons-b0b05e20.js";import{o as objectObjectHandler,p as parseJson,w as watchValidator}from"./prop.validators-5a58fa40.js";import{i as isString}from"./common-54bf85ba.js";const beforePatchIcons=(o,t)=>{const n=o;"object"==typeof n&&null!==n&&(isString(n.right,1)&&(n.right={icon:n.right}),isString(n.left,1)&&(n.left={icon:n.left}),t.set("_icons",n))};class InputIconController extends InputController{constructor(o,t,n){super(o,t,n),this.component=o}validateIcon(o){this.validateIcons(o)}validateIcons(o){objectObjectHandler(o,(()=>{try{o=parseJson(o)}catch(o){}watchValidator(this.component,"_icons",(o=>"object"==typeof o&&null!==o&&(isString(o.left,1)||isIcon(o.left)||isString(o.right,1)||isIcon(o.right))),new Set(["KoliBriHorizontalIcon"]),o,{hooks:{beforePatch:beforePatchIcons},required:!0})}))}componentWillLoad(){super.componentWillLoad(),this.validateIcons(this.component._icons||this.component._icon)}}export{InputIconController as I};
@@ -1 +1 @@
1
- {"file":"controller-icon-e155a2b1.js","mappings":";;;;;;;;AASA,MAAM,gBAAgB,GAAG,CAAC,KAAc,EAAE,SAA+B;IACxE,MAAM,KAAK,GAAG,KAA+B,CAAC;IAC9C,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE;QAChD,IAAI,QAAQ,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE;YAC7B,KAAK,CAAC,KAAK,GAAG,EAAE,IAAI,EAAE,KAAK,CAAC,KAAe,EAAE,CAAC;SAC9C;QACD,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE;YAC5B,KAAK,CAAC,IAAI,GAAG,EAAE,IAAI,EAAE,KAAK,CAAC,IAAc,EAAE,CA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ecated/input/controller-icon.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport type { KoliBriHorizontalIcons, Stringified } from '../../../schema';\nimport { isIcon, isString, objectObjectHandler, parseJson, watchValidator } from '../../../schema';\n\nimport { InputController } from './controller';\n\nimport type { Props, Watches } from './types-icon';\n\nconst beforePatchIcons = (value: unknown, nextState: Map<string, unknown>): void => {\n\tconst icons = value as KoliBriHorizontalIcons;\n\tif (typeof icons === 'object' && icons !== null) {\n\t\tif (isString(icons.right, 1)) {\n\t\t\ticons.right = { icon: icons.right as string };\n\t\t}\n\t\tif (isString(icons.left, 1)) {\n\t\t\ticons.left = { icon: icons.left as string };\n\t\t}\n\t\tnextState.set('_icons', icons);\n\t}\n};\n\nexport class InputIconController extends InputController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props;\n\n\tpublic constructor(component: Generic.Element.Component & Props, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateIcon(value?: Stringified<KoliBriHorizontalIcons>): void {\n\t\tthis.validateIcons(value);\n\t}\n\n\tpublic validateIcons(value?: Stringified<KoliBriHorizontalIcons>): void {\n\t\tobjectObjectHandler(value, () => {\n\t\t\ttry {\n\t\t\t\tvalue = parseJson<KoliBriHorizontalIcons>(value as string);\n\t\t\t\t// eslint-disable-next-line no-empty\n\t\t\t} catch (e) {\n\t\t\t\t// value behält den ursprünglichen Wert\n\t\t\t}\n\t\t\twatchValidator(\n\t\t\t\tthis.component,\n\t\t\t\t'_icons',\n\t\t\t\t(value): boolean => {\n\t\t\t\t\treturn (\n\t\t\t\t\t\ttypeof value === 'object' && value !== null && (isString(value.left, 1) || isIcon(value.left) || isString(value.right, 1) || isIcon(value.right))\n\t\t\t\t\t);\n\t\t\t\t},\n\t\t\t\tnew Set(['KoliBriHorizontalIcon']),\n\t\t\t\tvalue,\n\t\t\t\t{\n\t\t\t\t\thooks: {\n\t\t\t\t\t\tbeforePatch: beforePatchIcons,\n\t\t\t\t\t},\n\t\t\t\t\trequired: true,\n\t\t\t\t},\n\t\t\t);\n\t\t});\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateIcons(this.component._icons || this.component._icon);\n\t}\n}\n"],"version":3}
1
+ {"file":"controller-icon-78e12429.js","mappings":";;;;;;;;AASA,MAAM,gBAAgB,GAAG,CAAC,KAAc,EAAE,SAA+B;IACxE,MAAM,KAAK,GAAG,KAA+B,CAAC;IAC9C,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE;QAChD,IAAI,QAAQ,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE;YAC7B,KAAK,CAAC,KAAK,GAAG,EAAE,IAAI,EAAE,KAAK,CAAC,KAAe,EAAE,CAAC;SAC9C;QACD,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE;YAC5B,KAAK,CAAC,IAAI,GAAG,EAAE,IAAI,EAAE,KAAK,CAAC,IAAc,EAAE,CAAC;SAC5C;QACD,SAAS,CAAC,GAAG,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;KAC/B;AACF,CAAC,CAAC;MAEW,mBAAoB,SAAQ,eAAe;IAGvD,YAAmB,SAA4C,EAAE,IAAY,EAAE,IAAkB;QAChG,KAAK,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;KAC3B;IAEM,YAAY,CAAC,KAA2C;QAC9D,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;KAC1B;IAEM,aAAa,CAAC,KAA2C;QAC/D,mBAAmB,CAAC,KAAK,EAAE;YAC1B,IAAI;gBACH,KAAK,GAAG,SAAS,CAAyB,KAAe,CAAC,CAAC;aAE3D;YAAC,OAAO,CAAC,EAAE;aAEX;YACD,cAAc,CACb,IAAI,CAAC,SAAS,EACd,QAAQ,EACR,CAAC,KAAK;gBACL,QACC,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,KAAK,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAChJ;aACF,EACD,IAAI,GAAG,CAAC,CAAC,uBAAuB,CAAC,CAAC,EAClC,KAAK,EACL;gBACC,KAAK,EAAE;oBACN,WAAW,EAAE,gBAAgB;iBAC7B;gBACD,QAAQ,EAAE,IAAI;aACd,CACD,CAAC;SACF,CAAC,CAAC;KACH;IAEM,iBAAiB;QACvB,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;KAClE;;;;;","names":[],"sources":["src/components/@deprecated/input/controller-icon.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport type { KoliBriHorizontalIcons, Stringified } from '../../../schema';\nimport { isIcon, isString, objectObjectHandler, parseJson, watchValidator } from '../../../schema';\n\nimport { InputController } from './controller';\n\nimport type { Props, Watches } from './types-icon';\n\nconst beforePatchIcons = (value: unknown, nextState: Map<string, unknown>): void => {\n\tconst icons = value as KoliBriHorizontalIcons;\n\tif (typeof icons === 'object' && icons !== null) {\n\t\tif (isString(icons.right, 1)) {\n\t\t\ticons.right = { icon: icons.right as string };\n\t\t}\n\t\tif (isString(icons.left, 1)) {\n\t\t\ticons.left = { icon: icons.left as string };\n\t\t}\n\t\tnextState.set('_icons', icons);\n\t}\n};\n\nexport class InputIconController extends InputController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props;\n\n\tpublic constructor(component: Generic.Element.Component & Props, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateIcon(value?: Stringified<KoliBriHorizontalIcons>): void {\n\t\tthis.validateIcons(value);\n\t}\n\n\tpublic validateIcons(value?: Stringified<KoliBriHorizontalIcons>): void {\n\t\tobjectObjectHandler(value, () => {\n\t\t\ttry {\n\t\t\t\tvalue = parseJson<KoliBriHorizontalIcons>(value as string);\n\t\t\t\t// eslint-disable-next-line no-empty\n\t\t\t} catch (e) {\n\t\t\t\t// value behält den ursprünglichen Wert\n\t\t\t}\n\t\t\twatchValidator(\n\t\t\t\tthis.component,\n\t\t\t\t'_icons',\n\t\t\t\t(value): boolean => {\n\t\t\t\t\treturn (\n\t\t\t\t\t\ttypeof value === 'object' && value !== null && (isString(value.left, 1) || isIcon(value.left) || isString(value.right, 1) || isIcon(value.right))\n\t\t\t\t\t);\n\t\t\t\t},\n\t\t\t\tnew Set(['KoliBriHorizontalIcon']),\n\t\t\t\tvalue,\n\t\t\t\t{\n\t\t\t\t\thooks: {\n\t\t\t\t\t\tbeforePatch: beforePatchIcons,\n\t\t\t\t\t},\n\t\t\t\t\trequired: true,\n\t\t\t\t},\n\t\t\t);\n\t\t});\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateIcons(this.component._icons || this.component._icon);\n\t}\n}\n"],"version":3}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{i as watchString}from"./prop.validators-5a58fa40.js";const validateCustomClass=(a,s)=>{watchString(a,"_customClass",s,{defaultValue:void 0})};export{validateCustomClass as v};
@@ -1 +1 @@
1
- {"file":"custom-class-2d443ea5.js","mappings":";;;;;MAea,mBAAmB,GAAG,CAAC,SAAoC,EAAE,KAA2B;IACpG,WAAW,CAAC,SAAS,EAAE,cAAc,EAAE,KAAK,EAAE;QAC7C,YAAY,EAAE,SAAS;KACvB,CAAC,CAAC;AACJ;;;;","names":[],"sources":["src/schema/props/custom-class.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchString } from '../utils';\n\n/* types */\nexport type CustomClassPropType = string;\n\n/**\n * Defines the custom class attribute.\n */\nexport type PropCustomClass = {\n\tcustomClass: CustomClassPropType;\n};\n\n/* validator */\nexport const validateCustomClass = (component: Generic.Element.Component, value?: CustomClassPropType): void => {\n\twatchString(component, '_customClass', value, {\n\t\tdefaultValue: undefined,\n\t});\n};\n"],"version":3}
1
+ {"file":"custom-class-1b4696e3.js","mappings":";;;;;MAea,mBAAmB,GAAG,CAAC,SAAoC,EAAE,KAA2B;IACpG,WAAW,CAAC,SAAS,EAAE,cAAc,EAAE,KAAK,EAAE;QAC7C,YAAY,EAAE,SAAS;KACvB,CAAC,CAAC;AACJ;;;;","names":[],"sources":["src/schema/props/custom-class.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchString } from '../utils';\n\n/* types */\nexport type CustomClassPropType = string;\n\n/**\n * Defines the custom class attribute.\n */\nexport type PropCustomClass = {\n\tcustomClass: CustomClassPropType;\n};\n\n/* validator */\nexport const validateCustomClass = (component: Generic.Element.Component, value?: CustomClassPropType): void => {\n\twatchString(component, '_customClass', value, {\n\t\tdefaultValue: undefined,\n\t});\n};\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{E as Env}from"./index-bd96e8df.js";import{p as processEnv}from"./reuse-523ba2ac.js";import{L as Log,g as getDocument,s as setDevMode,b as setExperimentalMode,c as setColorContrastAnalysis,d as getWindow}from"./dev.utils-fab45cbc.js";const initMeta=()=>{const e=getDocument().querySelector('meta[name="kolibri"]');if(e&&e.hasAttribute("content")){const t=e.getAttribute("content");"string"==typeof t&&(setDevMode(t.includes("dev-mode=true")),setExperimentalMode(t.includes("experimental-mode=true")),setColorContrastAnalysis(t.includes("color-contrast-analysis=true")))}},getKoliBri=()=>{let e=getWindow().KoliBri;return void 0===e&&(e={},Object.defineProperty(getWindow(),"KoliBri",{value:e,writable:!1})),e},initKoliBri=()=>{initMeta(),Log.debug(`\n,--. ,--. ,--. ,--. ,-----. ,--.\n| .' / ,---. | | \`--' | |) /_ ,--.--. \`--'\n| . ' | .-. | | | ,--. | .-. \\ | .--' ,--.\n| |\\ \\ | '-' | | | | | | '--' / | | | |\n\`--' \`--´ \`---´ \`--' \`--' \`------´ \`--' \`--'\n🚹 The accessible HTML-Standard | 👉 https://public-ui.github.io | ${Env.kolibriVersion}\n\t`,{forceLog:!0})},renderDevAdvice=()=>{!0!==getKoliBri().adviceShown&&(Object.defineProperty(getKoliBri(),"adviceShown",{get:function(){return!0}}),Log.debug("\nYou are using the KoliBri component library. If you have any suggestions for improvement or find a problem, please contact us:\n\nTicket: https://github.com/public-ui/kolibri/issues/new/choose (for privacy reasons, please use email)\nEmail: kolibri@itzbund.de\n"))};let nonce=()=>Math.floor(16777215*Math.random()).toString(16);"test"===processEnv&&(nonce=()=>"nonce");export{initKoliBri as i,nonce as n,renderDevAdvice as r};
4
+ import{E as Env}from"./index-cf24d1fe.js";import{p as processEnv}from"./reuse-523ba2ac.js";import{L as Log,g as getDocument,s as setDevMode,b as setExperimentalMode,c as setColorContrastAnalysis,d as getWindow}from"./dev.utils-fab45cbc.js";const initMeta=()=>{const e=getDocument().querySelector('meta[name="kolibri"]');if(e&&e.hasAttribute("content")){const t=e.getAttribute("content");"string"==typeof t&&(setDevMode(t.includes("dev-mode=true")),setExperimentalMode(t.includes("experimental-mode=true")),setColorContrastAnalysis(t.includes("color-contrast-analysis=true")))}},getKoliBri=()=>{let e=getWindow().KoliBri;return void 0===e&&(e={},Object.defineProperty(getWindow(),"KoliBri",{value:e,writable:!1})),e},initKoliBri=()=>{initMeta(),Log.debug(`\n,--. ,--. ,--. ,--. ,-----. ,--.\n| .' / ,---. | | \`--' | |) /_ ,--.--. \`--'\n| . ' | .-. | | | ,--. | .-. \\ | .--' ,--.\n| |\\ \\ | '-' | | | | | | '--' / | | | |\n\`--' \`--´ \`---´ \`--' \`--' \`------´ \`--' \`--'\n🚹 The accessible HTML-Standard | 👉 https://public-ui.github.io | ${Env.kolibriVersion}\n\t`,{forceLog:!0})},renderDevAdvice=()=>{!0!==getKoliBri().adviceShown&&(Object.defineProperty(getKoliBri(),"adviceShown",{get:function(){return!0}}),Log.debug("\nYou are using the KoliBri component library. If you have any suggestions for improvement or find a problem, please contact us:\n\nTicket: https://github.com/public-ui/kolibri/issues/new/choose (for privacy reasons, please use email)\nEmail: kolibri@itzbund.de\n"))};let nonce=()=>Math.floor(16777215*Math.random()).toString(16);"test"===processEnv&&(nonce=()=>"nonce");export{initKoliBri as i,nonce as n,renderDevAdvice as r};
@@ -1 +1 @@
1
- {"file":"dev.utils-cb789c3d.js","mappings":";;;;;;;AAKA,MAAM,QAAQ,GAAG;IAChB,MAAM,IAAI,GAAG,WAAW,EAAE,CAAC,aAAa,CAAC,sBAAsB,CAAC,CAAC;IACjE,IAAI,IAAI,IAAI,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE;QACzC,MAAM,OAAO,GAAG,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;QAC7C,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;YAChC,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC;YAC9C,mBAAmB,CAAC,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC,CAAC;YAChE,wBAAwB,CAAC,OAAO,CAAC,QAAQ,CAAC,8BAA8B,CAAC,CAAC,CAAC;SAC3E;KACD;AACF,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG;IAClB,IAAI,OAAO,GAAG,SAAS,EAAE,CAAC,OAAO,CAAC;IAClC,IAAI,OAAO,KAAK,SAAS,EAAE;QAC1B,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,CAAC,cAAc,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE;YAC7C,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,KAAK;SACf,CAAC,CAAC;KACH;IACD,OAAO,OAAO,CAAC;AAChB,CAAC,CAAC;MAIW,WAAW,GAAG;IAC1B,QAAQ,EAAE,CAAC;IACX,GAAG,CAAC,KAAK,CACR;;;;;;qEAMmE,GAAG,CAAC,cAAc;EACrF,EACA;QACC,QAAQ,EAAE,IAAI;KACd,CACD,CAAC;AACH,EAAE;MAEW,eAAe,GAAG;IAC9B,IAAI,UAAU,EAAE,CAAC,WAAW,KAAK,IAAI,EAAE;QACtC,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,EAAE,aAAa,EAAE;YAClD,GAAG,EAAE;gBACJ,OAAO,IAAI,CAAC;aACZ;SACD,CAAC,CAAC;QACH,GAAG,CAAC,KAAK,CACR;;;;;CAKF,CACE,CAAC;KACF;AACF,EAAE;IAEE,KAAK,GAAG,MAAc,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,QAAQ,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE;AAE5E,IAAI,UAAU,KAAK,MAAM,EAAE;IAC1B,KAAK,GAAG,MAAc,OAAO,CAAC;AAC/B;;;;","names":[],"sources":["src/utils/dev.utils.ts"],"sourcesContent":["import { Log, getDocument, processEnv, setColorContrastAnalysis, setDevMode, setExperimentalMode } from '../schema';\n\nimport { getWindow } from '../schema';\nimport { Env } from '@stencil/core';\n\nconst initMeta = (): void => {\n\tconst meta = getDocument().querySelector('meta[name=\"kolibri\"]');\n\tif (meta && meta.hasAttribute('content')) {\n\t\tconst content = meta.getAttribute('content');\n\t\tif (typeof content === 'string') {\n\t\t\tsetDevMode(content.includes('dev-mode=true'));\n\t\t\tsetExperimentalMode(content.includes('experimental-mode=true'));\n\t\t\tsetColorContrastAnalysis(content.includes('color-contrast-analysis=true'));\n\t\t}\n\t}\n};\n\nconst getKoliBri = (): Record<string, unknown> => {\n\tlet kolibri = getWindow().KoliBri;\n\tif (kolibri === undefined) {\n\t\tkolibri = {};\n\t\tObject.defineProperty(getWindow(), 'KoliBri', {\n\t\t\tvalue: kolibri,\n\t\t\twritable: false,\n\t\t});\n\t}\n\treturn kolibri;\n};\n\nexport { getKoliBri };\n\nexport const initKoliBri = (): void => {\n\tinitMeta();\n\tLog.debug(\n\t\t`\n,--. ,--. ,--. ,--. ,-----. ,--.\n| .' / ,---. | | \\`--' | |) /_ ,--.--. \\`--'\n| . ' | .-. | | | ,--. | .-. \\\\ | .--' ,--.\n| |\\\\ \\\\ | '-' | | | | | | '--' / | | | |\n\\`--' \\`--´ \\`---´ \\`--' \\`--' \\`------´ \\`--' \\`--'\n🚹 The accessible HTML-Standard | 👉 https://public-ui.github.io | ${Env.kolibriVersion}\n\t`,\n\t\t{\n\t\t\tforceLog: true,\n\t\t},\n\t);\n};\n\nexport const renderDevAdvice = (): void => {\n\tif (getKoliBri().adviceShown !== true) {\n\t\tObject.defineProperty(getKoliBri(), 'adviceShown', {\n\t\t\tget: function () {\n\t\t\t\treturn true;\n\t\t\t},\n\t\t});\n\t\tLog.debug(\n\t\t\t`\nYou are using the KoliBri component library. If you have any suggestions for improvement or find a problem, please contact us:\n\nTicket: https://github.com/public-ui/kolibri/issues/new/choose (for privacy reasons, please use email)\nEmail: kolibri@itzbund.de\n`,\n\t\t);\n\t}\n};\n\nlet nonce = (): string => Math.floor(Math.random() * 16777215).toString(16);\n\nif (processEnv === 'test') {\n\tnonce = (): string => 'nonce';\n}\n\nexport { nonce };\n"],"version":3}
1
+ {"file":"dev.utils-44ef1bde.js","mappings":";;;;;;;AAKA,MAAM,QAAQ,GAAG;IAChB,MAAM,IAAI,GAAG,WAAW,EAAE,CAAC,aAAa,CAAC,sBAAsB,CAAC,CAAC;IACjE,IAAI,IAAI,IAAI,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE;QACzC,MAAM,OAAO,GAAG,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;QAC7C,IAAI,OAAO,OAAO,KAAK,Q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ils.ts"],"sourcesContent":["import { Log, getDocument, processEnv, setColorContrastAnalysis, setDevMode, setExperimentalMode } from '../schema';\n\nimport { getWindow } from '../schema';\nimport { Env } from '@stencil/core';\n\nconst initMeta = (): void => {\n\tconst meta = getDocument().querySelector('meta[name=\"kolibri\"]');\n\tif (meta && meta.hasAttribute('content')) {\n\t\tconst content = meta.getAttribute('content');\n\t\tif (typeof content === 'string') {\n\t\t\tsetDevMode(content.includes('dev-mode=true'));\n\t\t\tsetExperimentalMode(content.includes('experimental-mode=true'));\n\t\t\tsetColorContrastAnalysis(content.includes('color-contrast-analysis=true'));\n\t\t}\n\t}\n};\n\nconst getKoliBri = (): Record<string, unknown> => {\n\tlet kolibri = getWindow().KoliBri;\n\tif (kolibri === undefined) {\n\t\tkolibri = {};\n\t\tObject.defineProperty(getWindow(), 'KoliBri', {\n\t\t\tvalue: kolibri,\n\t\t\twritable: false,\n\t\t});\n\t}\n\treturn kolibri;\n};\n\nexport { getKoliBri };\n\nexport const initKoliBri = (): void => {\n\tinitMeta();\n\tLog.debug(\n\t\t`\n,--. ,--. ,--. ,--. ,-----. ,--.\n| .' / ,---. | | \\`--' | |) /_ ,--.--. \\`--'\n| . ' | .-. | | | ,--. | .-. \\\\ | .--' ,--.\n| |\\\\ \\\\ | '-' | | | | | | '--' / | | | |\n\\`--' \\`--´ \\`---´ \\`--' \\`--' \\`------´ \\`--' \\`--'\n🚹 The accessible HTML-Standard | 👉 https://public-ui.github.io | ${Env.kolibriVersion}\n\t`,\n\t\t{\n\t\t\tforceLog: true,\n\t\t},\n\t);\n};\n\nexport const renderDevAdvice = (): void => {\n\tif (getKoliBri().adviceShown !== true) {\n\t\tObject.defineProperty(getKoliBri(), 'adviceShown', {\n\t\t\tget: function () {\n\t\t\t\treturn true;\n\t\t\t},\n\t\t});\n\t\tLog.debug(\n\t\t\t`\nYou are using the KoliBri component library. If you have any suggestions for improvement or find a problem, please contact us:\n\nTicket: https://github.com/public-ui/kolibri/issues/new/choose (for privacy reasons, please use email)\nEmail: kolibri@itzbund.de\n`,\n\t\t);\n\t}\n};\n\nlet nonce = (): string => Math.floor(Math.random() * 16777215).toString(16);\n\nif (processEnv === 'test') {\n\tnonce = (): string => 'nonce';\n}\n\nexport { nonce };\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{i as initKoliBri,r as renderDevAdvice}from"./dev.utils-cb789c3d.js";import{e as getDevMode,g as getDocument,L as Log,a as getExperimentalMode,f as getColorContrastAnalysis,d as getWindow}from"./dev.utils-fab45cbc.js";import{z as koliBriA11yColorContrast,v as koliBriQuerySelector,A as koliBriQuerySelectorAll,B as koliBriQuerySelectorColors,C as KoliBriUtils,p as parseJson,D as stringifyJson}from"./prop.validators-f89d26b4.js";import"./index-bd96e8df.js";import"./reuse-523ba2ac.js";import"./index-db4aa6e4.js";const getKoliBri=()=>{let e=getWindow().KoliBri;return void 0===e&&(e={},Object.defineProperty(getWindow(),"KoliBri",{value:e,writable:!1})),e};function prototypeKoliBri(e,t){try{Object.defineProperty(getKoliBri(),e,{get:function(){return t}})}catch(t){Log.debug(`KoliBri property ${e} is already bind.`)}}const metaModeLog=(e,t)=>Log.debug(`${e} ${t?"":"not "}activated`),initialize=()=>{if(initKoliBri(),getDevMode()){renderDevAdvice(),prototypeKoliBri("a11yColorContrast",koliBriA11yColorContrast),prototypeKoliBri("querySelector",koliBriQuerySelector),prototypeKoliBri("querySelectorAll",koliBriQuerySelectorAll),prototypeKoliBri("querySelectorColors",koliBriQuerySelectorColors),prototypeKoliBri("utils",(function(){return KoliBriUtils})),prototypeKoliBri("parseJson",parseJson),prototypeKoliBri("stringifyJson",stringifyJson);const e=getDocument().body,t=getDocument().createElement("svg");if(t.setAttribute("aria-label","KoliBri-DevTools"),t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.setAttribute("role","toolbar"),t.setAttribute("style","position: fixed;color: black;font-size: 200%;bottom: 0.25rem;right: 0.25rem;"),t.innerHTML='<svg\n xmlns="http://www.w3.org/2000/svg"\n width="50"\n height="50"\n viewBox="0 0 600 600"\n>\n <path d="M353 322L213 304V434L353 322Z" fill="#047" />\n <path d="M209 564V304L149 434L209 564Z" fill="#047" />\n <path d="M357 316L417 250L361 210L275 244L357 316Z" fill="#047" />\n <path d="M353 318L35 36L213 300L353 318Z" fill="#047" />\n <path d="M329 218L237 92L250 222L272 241L329 218Z" fill="#047" />\n <path d="M391 286L565 272L421 252L391 286Z" fill="#047" />\n</svg>',getDocument().body.appendChild(t),metaModeLog("Development mode",getDevMode()),metaModeLog("Experimental mode",getExperimentalMode()),metaModeLog("Color contrast analysis",getColorContrastAnalysis()),getColorContrastAnalysis()){const t=setTimeout((()=>{clearTimeout(t),setInterval((()=>{KoliBriUtils.queryHtmlElementColors(getDocument().createElement("div"),koliBriA11yColorContrast(e),!1,!1)}),1e4)}),2500)}}};export{initialize};
4
+ import{i as initKoliBri,r as renderDevAdvice}from"./dev.utils-44ef1bde.js";import{e as getDevMode,g as getDocument,L as Log,a as getExperimentalMode,f as getColorContrastAnalysis,d as getWindow}from"./dev.utils-fab45cbc.js";import{z as koliBriA11yColorContrast,v as koliBriQuerySelector,A as koliBriQuerySelectorAll,B as koliBriQuerySelectorColors,C as KoliBriUtils,p as parseJson,D as stringifyJson}from"./prop.validators-5a58fa40.js";import"./index-cf24d1fe.js";import"./reuse-523ba2ac.js";import"./index-5728f164.js";const getKoliBri=()=>{let e=getWindow().KoliBri;return void 0===e&&(e={},Object.defineProperty(getWindow(),"KoliBri",{value:e,writable:!1})),e};function prototypeKoliBri(e,t){try{Object.defineProperty(getKoliBri(),e,{get:function(){return t}})}catch(t){Log.debug(`KoliBri property ${e} is already bind.`)}}const metaModeLog=(e,t)=>Log.debug(`${e} ${t?"":"not "}activated`),initialize=()=>{if(initKoliBri(),getDevMode()){renderDevAdvice(),prototypeKoliBri("a11yColorContrast",koliBriA11yColorContrast),prototypeKoliBri("querySelector",koliBriQuerySelector),prototypeKoliBri("querySelectorAll",koliBriQuerySelectorAll),prototypeKoliBri("querySelectorColors",koliBriQuerySelectorColors),prototypeKoliBri("utils",(function(){return KoliBriUtils})),prototypeKoliBri("parseJson",parseJson),prototypeKoliBri("stringifyJson",stringifyJson);const e=getDocument().body,t=getDocument().createElement("svg");if(t.setAttribute("aria-label","KoliBri-DevTools"),t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.setAttribute("role","toolbar"),t.setAttribute("style","position: fixed;color: black;font-size: 200%;bottom: 0.25rem;right: 0.25rem;"),t.innerHTML='<svg\n xmlns="http://www.w3.org/2000/svg"\n width="50"\n height="50"\n viewBox="0 0 600 600"\n>\n <path d="M353 322L213 304V434L353 322Z" fill="#047" />\n <path d="M209 564V304L149 434L209 564Z" fill="#047" />\n <path d="M357 316L417 250L361 210L275 244L357 316Z" fill="#047" />\n <path d="M353 318L35 36L213 300L353 318Z" fill="#047" />\n <path d="M329 218L237 92L250 222L272 241L329 218Z" fill="#047" />\n <path d="M391 286L565 272L421 252L391 286Z" fill="#047" />\n</svg>',getDocument().body.appendChild(t),metaModeLog("Development mode",getDevMode()),metaModeLog("Experimental mode",getExperimentalMode()),metaModeLog("Color contrast analysis",getColorContrastAnalysis()),getColorContrastAnalysis()){const t=setTimeout((()=>{clearTimeout(t),setInterval((()=>{KoliBriUtils.queryHtmlElementColors(getDocument().createElement("div"),koliBriA11yColorContrast(e),!1,!1)}),1e4)}),2500)}}};export{initialize};
@@ -1 +1 @@
1
- {"file":"devtools-a88bc2ec.js","mappings":";;;;;;;;;;AAiBA,MAAM,UAAU,GAAG;IAClB,IAAI,OAAO,GAAG,SAAS,EAAE,CAAC,OAAO,CAAC;IAClC,IAAI,OAAO,KAAK,SAAS,EAAE;QAC1B,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,CAAC,cAAc,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE;YAC7C,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,KAAK;SACf,CAAC,CAAC;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GAAG,CAAC,YAAY,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;QACpC,GAAG,CAAC,YAAY,CAAC,OAAO,EAAE,8EAA8E,CAAC,CAAC;QAC1G,GAAG,CAAC,SAAS,GAAG;;;;;;;;;;;;OAYX,CAAC;QAEN,WAAW,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QAEpC,WAAW,CAAC,kBAAkB,EAAE,UAAU,EAAE,CAAC,CAAC;QAC9C,WAAW,CAAC,mBAAmB,EAAE,mBAAmB,EAAE,CAAC,CAAC;QACxD,WAAW,CAAC,yBAAyB,EAAE,wBAAwB,EAAE,CAAC,CAAC;QAEnE,IAAI,wBAAwB,EAAE,EAAE;YAC/B,MAAM,OAAO,GAAG,UAAU,CAAC;gBAC1B,YAAY,CAAC,OAAO,CAAC,CAAC;gBACtB,WAAW,CAAC;oBACX,YAAY,CAAC,sBAAsB,CAAC,WAAW,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,wBAAwB,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;iBACtH,EAAE,KAAK,CAAC,CAAC;aACV,EAAE,IAAI,CAAC,CAAC;SACT;KAmBD;AACF;;;;","names":[],"sources":["src/global/devtools.ts"],"sourcesContent":["import {\n\tgetColorContrastAnalysis,\n\tgetDevMode,\n\tgetDocument,\n\tgetExperimentalMode,\n\tgetWindow,\n\tkoliBriA11yColorContrast,\n\tkoliBriQuerySelector,\n\tkoliBriQuerySelectorAll,\n\tkoliBriQuerySelectorColors,\n\tKoliBriUtils,\n\tLog,\n\tparseJson,\n\tstringifyJson,\n} from '../schema';\nimport { initKoliBri, renderDevAdvice } from '../utils/dev.utils';\n\nconst getKoliBri = (): Record<string, unknown> => {\n\tlet kolibri = getWindow().KoliBri;\n\tif (kolibri === undefined) {\n\t\tkolibri = {};\n\t\tObject.defineProperty(getWindow(), 'KoliBri', {\n\t\t\tvalue: kolibri,\n\t\t\twritable: false,\n\t\t});\n\t}\n\treturn kolibri;\n};\n\nfunction prototypeKoliBri<T>(name: string, cb: T) {\n\ttry {\n\t\tObject.defineProperty(getKoliBri(), name, {\n\t\t\tget: function () {\n\t\t\t\treturn cb;\n\t\t\t},\n\t\t});\n\t} catch (e) {\n\t\tLog.debug(`KoliBri property ${name} is already bind.`);\n\t}\n}\n\nconst metaModeLog = (name: string, active: boolean) => Log.debug(`${name} ${active ? '' : 'not '}activated`);\n\nexport const initialize = (): void => {\n\tinitKoliBri();\n\tif (getDevMode()) {\n\t\trenderDevAdvice();\n\n\t\tprototypeKoliBri('a11yColorContrast', koliBriA11yColorContrast);\n\t\tprototypeKoliBri('querySelector', koliBriQuerySelector);\n\t\tprototypeKoliBri('querySelectorAll', koliBriQuerySelectorAll);\n\t\tprototypeKoliBri('querySelectorColors', koliBriQuerySelectorColors);\n\t\tprototypeKoliBri('utils', function () {\n\t\t\treturn KoliBriUtils;\n\t\t});\n\t\tprototypeKoliBri('parseJson', parseJson);\n\t\tprototypeKoliBri('stringifyJson', stringifyJson);\n\n\t\tconst body = getDocument().body;\n\n\t\tconst div = getDocument().createElement('svg');\n\t\tdiv.setAttribute('aria-label', 'KoliBri-DevTools');\n\t\tdiv.setAttribute('xmlns', 'http://www.w3.org/2000/svg');\n\t\tdiv.setAttribute('role', 'toolbar');\n\t\tdiv.setAttribute('style', 'position: fixed;color: black;font-size: 200%;bottom: 0.25rem;right: 0.25rem;');\n\t\tdiv.innerHTML = `<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"50\"\n height=\"50\"\n viewBox=\"0 0 600 600\"\n>\n <path d=\"M353 322L213 304V434L353 322Z\" fill=\"#047\" />\n <path d=\"M209 564V304L149 434L209 564Z\" fill=\"#047\" />\n <path d=\"M357 316L417 250L361 210L275 244L357 316Z\" fill=\"#047\" />\n <path d=\"M353 318L35 36L213 300L353 318Z\" fill=\"#047\" />\n <path d=\"M329 218L237 92L250 222L272 241L329 218Z\" fill=\"#047\" />\n <path d=\"M391 286L565 272L421 252L391 286Z\" fill=\"#047\" />\n</svg>`;\n\n\t\tgetDocument().body.appendChild(div);\n\n\t\tmetaModeLog('Development mode', getDevMode());\n\t\tmetaModeLog('Experimental mode', getExperimentalMode());\n\t\tmetaModeLog('Color contrast analysis', getColorContrastAnalysis());\n\n\t\tif (getColorContrastAnalysis()) {\n\t\t\tconst timeout = setTimeout(() => {\n\t\t\t\tclearTimeout(timeout);\n\t\t\t\tsetInterval(() => {\n\t\t\t\t\tKoliBriUtils.queryHtmlElementColors(getDocument().createElement('div'), koliBriA11yColorContrast(body), false, false);\n\t\t\t\t}, 10000);\n\t\t\t}, 2500);\n\t\t}\n\n\t\t// setTimeout(() => {\n\t\t// const kolButton = koliBriQuerySelector<HTMLButtonElement>(document, '[_label=\"Aktion ausführen\"]');\n\t\t// if (kolButton) {\n\t\t// const button = koliBriQuerySelector<HTMLButtonElement>(kolButton?.shadowRoot as ShadowRoot, 'button');\n\t\t// if (button) {\n\t\t// kolButton.style.backgroundColor = '#988';\n\t\t// button.style.backgroundColor = 'inherit';\n\t\t// button.style.color = '#988';\n\t\t// const kolButtonColors = koliBriQuerySelectorColors('[_label=\"Aktion ausführen\"]');\n\t\t// console.log(\n\t\t// koliBriQuerySelectorColors('button', {\n\t\t// ...kolButtonColors,\n\t\t// })\n\t\t// );\n\t\t// }\n\t\t// }\n\t\t// }, 2500);\n\t}\n};\n"],"version":3}
1
+ {"file":"devtools-417fc238.js","mappings":";;;;;;;;;;AAiBA,MAAM,UAAU,GAAG;IAClB,IAAI,OAAO,GAAG,SAAS,EAAE,CAAC,OAAO,CAAC;IAClC,IAAI,OAAO,KAAK,SAAS,EAAE;QAC1B,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,CAAC,cAAc,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE;YAC7C,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,KAAK;SACf,CAAC,CAAC;KACH;IACD,OAAO,OAAO,CAAC;AAChB,CAAC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AS,CAAC,CAAC;QACpC,GAAG,CAAC,YAAY,CAAC,OAAO,EAAE,8EAA8E,CAAC,CAAC;QAC1G,GAAG,CAAC,SAAS,GAAG;;;;;;;;;;;;OAYX,CAAC;QAEN,WAAW,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QAEpC,WAAW,CAAC,kBAAkB,EAAE,UAAU,EAAE,CAAC,CAAC;QAC9C,WAAW,CAAC,mBAAmB,EAAE,mBAAmB,EAAE,CAAC,CAAC;QACxD,WAAW,CAAC,yBAAyB,EAAE,wBAAwB,EAAE,CAAC,CAAC;QAEnE,IAAI,wBAAwB,EAAE,EAAE;YAC/B,MAAM,OAAO,GAAG,UAAU,CAAC;gBAC1B,YAAY,CAAC,OAAO,CAAC,CAAC;gBACtB,WAAW,CAAC;oBACX,YAAY,CAAC,sBAAsB,CAAC,WAAW,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,wBAAwB,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;iBACtH,EAAE,KAAK,CAAC,CAAC;aACV,EAAE,IAAI,CAAC,CAAC;SACT;KAmBD;AACF;;;;","names":[],"sources":["src/global/devtools.ts"],"sourcesContent":["import {\n\tgetColorContrastAnalysis,\n\tgetDevMode,\n\tgetDocument,\n\tgetExperimentalMode,\n\tgetWindow,\n\tkoliBriA11yColorContrast,\n\tkoliBriQuerySelector,\n\tkoliBriQuerySelectorAll,\n\tkoliBriQuerySelectorColors,\n\tKoliBriUtils,\n\tLog,\n\tparseJson,\n\tstringifyJson,\n} from '../schema';\nimport { initKoliBri, renderDevAdvice } from '../utils/dev.utils';\n\nconst getKoliBri = (): Record<string, unknown> => {\n\tlet kolibri = getWindow().KoliBri;\n\tif (kolibri === undefined) {\n\t\tkolibri = {};\n\t\tObject.defineProperty(getWindow(), 'KoliBri', {\n\t\t\tvalue: kolibri,\n\t\t\twritable: false,\n\t\t});\n\t}\n\treturn kolibri;\n};\n\nfunction prototypeKoliBri<T>(name: string, cb: T) {\n\ttry {\n\t\tObject.defineProperty(getKoliBri(), name, {\n\t\t\tget: function () {\n\t\t\t\treturn cb;\n\t\t\t},\n\t\t});\n\t} catch (e) {\n\t\tLog.debug(`KoliBri property ${name} is already bind.`);\n\t}\n}\n\nconst metaModeLog = (name: string, active: boolean) => Log.debug(`${name} ${active ? '' : 'not '}activated`);\n\nexport const initialize = (): void => {\n\tinitKoliBri();\n\tif (getDevMode()) {\n\t\trenderDevAdvice();\n\n\t\tprototypeKoliBri('a11yColorContrast', koliBriA11yColorContrast);\n\t\tprototypeKoliBri('querySelector', koliBriQuerySelector);\n\t\tprototypeKoliBri('querySelectorAll', koliBriQuerySelectorAll);\n\t\tprototypeKoliBri('querySelectorColors', koliBriQuerySelectorColors);\n\t\tprototypeKoliBri('utils', function () {\n\t\t\treturn KoliBriUtils;\n\t\t});\n\t\tprototypeKoliBri('parseJson', parseJson);\n\t\tprototypeKoliBri('stringifyJson', stringifyJson);\n\n\t\tconst body = getDocument().body;\n\n\t\tconst div = getDocument().createElement('svg');\n\t\tdiv.setAttribute('aria-label', 'KoliBri-DevTools');\n\t\tdiv.setAttribute('xmlns', 'http://www.w3.org/2000/svg');\n\t\tdiv.setAttribute('role', 'toolbar');\n\t\tdiv.setAttribute('style', 'position: fixed;color: black;font-size: 200%;bottom: 0.25rem;right: 0.25rem;');\n\t\tdiv.innerHTML = `<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"50\"\n height=\"50\"\n viewBox=\"0 0 600 600\"\n>\n <path d=\"M353 322L213 304V434L353 322Z\" fill=\"#047\" />\n <path d=\"M209 564V304L149 434L209 564Z\" fill=\"#047\" />\n <path d=\"M357 316L417 250L361 210L275 244L357 316Z\" fill=\"#047\" />\n <path d=\"M353 318L35 36L213 300L353 318Z\" fill=\"#047\" />\n <path d=\"M329 218L237 92L250 222L272 241L329 218Z\" fill=\"#047\" />\n <path d=\"M391 286L565 272L421 252L391 286Z\" fill=\"#047\" />\n</svg>`;\n\n\t\tgetDocument().body.appendChild(div);\n\n\t\tmetaModeLog('Development mode', getDevMode());\n\t\tmetaModeLog('Experimental mode', getExperimentalMode());\n\t\tmetaModeLog('Color contrast analysis', getColorContrastAnalysis());\n\n\t\tif (getColorContrastAnalysis()) {\n\t\t\tconst timeout = setTimeout(() => {\n\t\t\t\tclearTimeout(timeout);\n\t\t\t\tsetInterval(() => {\n\t\t\t\t\tKoliBriUtils.queryHtmlElementColors(getDocument().createElement('div'), koliBriA11yColorContrast(body), false, false);\n\t\t\t\t}, 10000);\n\t\t\t}, 2500);\n\t\t}\n\n\t\t// setTimeout(() => {\n\t\t// const kolButton = koliBriQuerySelector<HTMLButtonElement>(document, '[_label=\"Aktion ausführen\"]');\n\t\t// if (kolButton) {\n\t\t// const button = koliBriQuerySelector<HTMLButtonElement>(kolButton?.shadowRoot as ShadowRoot, 'button');\n\t\t// if (button) {\n\t\t// kolButton.style.backgroundColor = '#988';\n\t\t// button.style.backgroundColor = 'inherit';\n\t\t// button.style.color = '#988';\n\t\t// const kolButtonColors = koliBriQuerySelectorColors('[_label=\"Aktion ausführen\"]');\n\t\t// console.log(\n\t\t// koliBriQuerySelectorColors('button', {\n\t\t// ...kolButtonColors,\n\t\t// })\n\t\t// );\n\t\t// }\n\t\t// }\n\t\t// }, 2500);\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 watchBoolean,c as a11yHintDisabled}from"./prop.validators-f89d26b4.js";const validateDisabled=(a,o)=>{watchBoolean(a,"_disabled",o,{hooks:{afterPatch:a=>{!0===a&&a11yHintDisabled()}}})};export{validateDisabled as v};
4
+ import{b as watchBoolean,c as a11yHintDisabled}from"./prop.validators-5a58fa40.js";const validateDisabled=(a,o)=>{watchBoolean(a,"_disabled",o,{hooks:{afterPatch:a=>{!0===a&&a11yHintDisabled()}}})};export{validateDisabled as v};
@@ -1 +1 @@
1
- {"file":"disabled-d5b4a883.js","mappings":";;;;;MAea,gBAAgB,GAAG,CAAC,SAAoC,EAAE,KAAwB;IAC9F,YAAY,CAAC,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE;QAC3C,KAAK,EAAE;YACN,UAAU,EAAE,CAAC,KAAK;gBACjB,IAAI,KAAK,KAAK,IAAI,EAAE;oBACnB,gBAAgB,EAAE,CAAC;iBACnB;aACD;SACD;KACD,CAAC,CAAC;AACJ;;;;","names":[],"sources":["src/schema/props/disabled.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { a11yHintDisabled, watchBoolean } from '../utils';\n\n/* types */\nexport type DisabledPropType = boolean;\n\n/**\n * Makes the element not focusable and ignore all events.\n */\nexport type PropDisabled = {\n\tdisabled: DisabledPropType;\n};\n\n/* validator */\nexport const validateDisabled = (component: Generic.Element.Component, value?: DisabledPropType): void => {\n\twatchBoolean(component, '_disabled', value, {\n\t\thooks: {\n\t\t\tafterPatch: (value) => {\n\t\t\t\tif (value === true) {\n\t\t\t\t\ta11yHintDisabled();\n\t\t\t\t}\n\t\t\t},\n\t\t},\n\t});\n};\n"],"version":3}
1
+ {"file":"disabled-60f09b20.js","mappings":";;;;;MAea,gBAAgB,GAAG,CAAC,SAAoC,EAAE,KAAwB;IAC9F,YAAY,CAAC,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE;QAC3C,KAAK,EAAE;YACN,UAAU,EAAE,CAAC,KAAK;gBACjB,IAAI,KAAK,KAAK,IAAI,EAAE;oBACnB,gBAAgB,EAAE,CAAC;iBACnB;aACD;SACD;KACD,CAAC,CAAC;AACJ;;;;","names":[],"sources":["src/schema/props/disabled.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { a11yHintDisabled, watchBoolean } from '../utils';\n\n/* types */\nexport type DisabledPropType = boolean;\n\n/**\n * Makes the element not focusable and ignore all events.\n */\nexport type PropDisabled = {\n\tdisabled: DisabledPropType;\n};\n\n/* validator */\nexport const validateDisabled = (component: Generic.Element.Component, value?: DisabledPropType): void => {\n\twatchBoolean(component, '_disabled', value, {\n\t\thooks: {\n\t\t\tafterPatch: (value) => {\n\t\t\t\tif (value === true) {\n\t\t\t\t\ta11yHintDisabled();\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{w as watchValidator,t as emptyStringByArrayHandler,o as objectObjectHandler,p as parseJson,s as setState}from"./prop.validators-f89d26b4.js";import{b as isObject}from"./common-54bf85ba.js";const validateTableCallbacks=(e,a)=>{watchValidator(e,"_on",(e=>"object"==typeof e&&null!==e),new Set(["TableCallbacksPropType {Events.onSort, Events.onSelectionChange}"]),a)},validateTableStatefulCallbacks=(e,a)=>{watchValidator(e,"_on",(e=>"object"==typeof e&&null!==e),new Set(["TableStatefulCallbacksPropType {Events.onSelectionChange}"]),a)},validateTableData=(e,a,t)=>{emptyStringByArrayHandler(a,(()=>{objectObjectHandler(a,(()=>{void 0===a&&(a=[]);try{a=parseJson(a)}catch(e){}Array.isArray(a)&&a.every((e=>"object"==typeof e&&null!==e))&&setState(e,"_data",a,t)}))}))},validateTableDataFoot=(e,a,t)=>{emptyStringByArrayHandler(a,(()=>{objectObjectHandler(a,(()=>{void 0===a&&(a=[]);try{a=parseJson(a)}catch(e){}Array.isArray(a)&&a.every((e=>"object"==typeof e&&null!==e))&&setState(e,"_dataFoot",a,t)}))}))},validateTableSelection=(e,a)=>{(e=>e&&isObject(e)&&"function"==typeof e.label&&(!e.selectedKeys||Array.isArray(e.selectedKeys)))("string"==typeof a?(()=>{try{return parseJson(a)}catch(e){return}})():a)&&setState(e,"_selection",a)};var Events;!function(e){e.onBlur="onBlur",e.onChange="onChange",e.onClick="onClick",e.onDblClick="onDblClick",e.onFocus="onFocus",e.onInput="onInput",e.onKeyDown="onKeyDown",e.onKeyPress="onKeyPress",e.onKeyUp="onKeyUp",e.onMouseDown="onMouseDown",e.onMouseMove="onMouseMove",e.onMouseOut="onMouseOut",e.onMouseOver="onMouseOver",e.onMouseUp="onMouseUp",e.onReset="onReset",e.onSelect="onSelect",e.onSort="onSort",e.onSelectionChange="onSelectionChange",e.onSubmit="onSubmit"}(Events||(Events={}));export{Events as E,validateTableDataFoot as a,validateTableSelection as b,validateTableStatefulCallbacks as c,validateTableCallbacks as d,validateTableData as v};
4
+ import{w as watchValidator,t as emptyStringByArrayHandler,o as objectObjectHandler,p as parseJson,s as setState}from"./prop.validators-5a58fa40.js";import{b as isObject}from"./common-54bf85ba.js";const validateTableCallbacks=(e,a)=>{watchValidator(e,"_on",(e=>"object"==typeof e&&null!==e),new Set(["TableCallbacksPropType {Events.onSort, Events.onSelectionChange}"]),a)},validateTableStatefulCallbacks=(e,a)=>{watchValidator(e,"_on",(e=>"object"==typeof e&&null!==e),new Set(["TableStatefulCallbacksPropType {Events.onSelectionChange}"]),a)},validateTableData=(e,a,o)=>{emptyStringByArrayHandler(a,(()=>{objectObjectHandler(a,(()=>{void 0===a&&(a=[]);try{a=parseJson(a)}catch(e){}Array.isArray(a)&&a.every((e=>"object"==typeof e&&null!==e))&&setState(e,"_data",a,o)}))}))},validateTableDataFoot=(e,a,o)=>{emptyStringByArrayHandler(a,(()=>{objectObjectHandler(a,(()=>{void 0===a&&(a=[]);try{a=parseJson(a)}catch(e){}Array.isArray(a)&&a.every((e=>"object"==typeof e&&null!==e))&&setState(e,"_dataFoot",a,o)}))}))},validateTableSelection=(e,a)=>{(e=>e&&isObject(e)&&"function"==typeof e.label&&(!e.selectedKeys||Array.isArray(e.selectedKeys)))("string"==typeof a?(()=>{try{return parseJson(a)}catch(e){return}})():a)&&setState(e,"_selection",a)};var Events;!function(e){e.onBlur="onBlur",e.onChange="onChange",e.onClick="onClick",e.onDblClick="onDblClick",e.onFocus="onFocus",e.onInput="onInput",e.onKeyDown="onKeyDown",e.onKeyPress="onKeyPress",e.onKeyUp="onKeyUp",e.onMouseDown="onMouseDown",e.onMouseMove="onMouseMove",e.onMouseOut="onMouseOut",e.onMouseOver="onMouseOver",e.onMouseUp="onMouseUp",e.onReset="onReset",e.onSelect="onSelect",e.onSort="onSort",e.onSelectionChange="onSelectionChange",e.onSubmit="onSubmit",e.onClose="onClose"}(Events||(Events={}));export{Events as E,validateTableDataFoot as a,validateTableSelection as b,validateTableStatefulCallbacks as c,validateTableCallbacks as d,validateTableData as v};
@@ -0,0 +1 @@
1
+ {"file":"events-476662bc.js","mappings":";;;;;;MAmCa,sBAAsB,GAAG,CAAC,SAAoC,EAAE,KAA8B;IAC1G,cAAc,CACb,SAAS,EACT,KAAK,EACL,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EACtD,IAAI,GAAG,CAAC,CAAC,kEAAkE,CAAC,CAAC,EAC7E,KAAK,CACL,CAAC;AACH,EAAE;MAEW,8BAA8B,GAAG,CAAC,SAAoC,EAAE,KAAsC;IAC1H,cAAc,CACb,SAAS,EACT,KAAK,EACL,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EACtD,IAAI,GAAG,CAAC,CAAC,2DAA2D,CAAC,CAAC,EACtE,KAAK,CACL,CAAC;AACH;;MCpCa,iBAAiB,GAAG,CAAC,SAAoC,EAAE,KAAyB,EAAE,aAA6B;IAC/H,yBAAyB,CAAC,KAAK,EAAE;QAChC,mBAAmB,CAAC,KAAK,EAAE;YAC1B,IAAI,OAAO,KAAK,KAAK,WAAW,EAAE;gBACjC,KAAK,GAAG,EAAE,CAAC;aACX;YACD,IAAI;gBACH,KAAK,GAAG,SAAS,CAAyB,KAAK,CAAC,CAAC;aAEjD;YAAC,OAAO,CAAC,EAAE;aAEX;YACD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,IAA0B,KAAK,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KA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,GAAG,KAAK,CAAC;IAC/E,IAAI,cAAc,CAAC,WAAW,CAAC,EAAE;QAChC,QAAQ,CAAC,SAAS,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC;KACzC;AACF;;ICjCY;AAAZ,WAAY,MAAM;IACjB,2BAAiB,CAAA;IACjB,+BAAqB,CAAA;IACrB,6BAAmB,CAAA;IACnB,mCAAyB,CAAA;IACzB,6BAAmB,CAAA;IACnB,6BAAmB,CAAA;IACnB,iCAAuB,CAAA;IACvB,mCAAyB,CAAA;IACzB,6BAAmB,CAAA;IACnB,qCAA2B,CAAA;IAC3B,qCAA2B,CAAA;IAC3B,mCAAyB,CAAA;IACzB,qCAA2B,CAAA;IAC3B,iCAAuB,CAAA;IACvB,6BAAmB,CAAA;IACnB,+BAAqB,CAAA;IACrB,2BAAiB,CAAA;IACjB,iDAAuC,CAAA;IACvC,+BAAqB,CAAA;IACrB,6BAAmB,CAAA;AACpB,CAAC,EArBW,MAAM,KAAN,MAAM;;;;","names":[],"sources":["src/schema/props/table-callbacks.ts","src/schema/props/table-data.ts","src/schema/props/table-data-foot.ts","src/schema/props/table-selection.ts","src/schema/enums/events.ts"],"sourcesContent":["import type { Events } from '../enums';\nimport type { EventValueOrEventCallback } from '../types/callbacks';\nimport { watchValidator } from '../utils';\n\nimport type { Generic } from 'adopted-style-sheets';\nimport type { KoliBriSortDirection, KoliBriTableDataType } from '../types';\n\n/* types */\nexport type SortEventPayload = {\n\tkey: string;\n\tcurrentSortDirection: KoliBriSortDirection;\n};\n\nexport type SelectionChangeEventPayload = string[] | string;\nexport type StatefulSelectionChangeEventPayload = KoliBriTableDataType[] | KoliBriTableDataType | null;\n\nexport type TableCallbacksPropType = {\n\t[Events.onSort]?: EventValueOrEventCallback<MouseEvent, SortEventPayload>;\n\t[Events.onSelectionChange]?: EventValueOrEventCallback<Event, SelectionChangeEventPayload>;\n};\nexport type TableStatefulCallbacksPropType = {\n\t[Events.onSelectionChange]?: EventValueOrEventCallback<Event, StatefulSelectionChangeEventPayload>;\n};\n/**\n * Defines the callback functions for table events.\n */\nexport type PropTableCallbacks = {\n\ton: TableCallbacksPropType;\n};\n\nexport type StatefulPropTableCallbacks = {\n\ton: TableStatefulCallbacksPropType;\n};\n\n/* validator */\nexport const validateTableCallbacks = (component: Generic.Element.Component, value?: TableCallbacksPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t`_on`,\n\t\t(value) => typeof value === 'object' && value !== null,\n\t\tnew Set(['TableCallbacksPropType {Events.onSort, Events.onSelectionChange}']),\n\t\tvalue,\n\t);\n};\n\nexport const validateTableStatefulCallbacks = (component: Generic.Element.Component, value?: TableStatefulCallbacksPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t`_on`,\n\t\t(value) => typeof value === 'object' && value !== null,\n\t\tnew Set(['TableStatefulCallbacksPropType {Events.onSelectionChange}']),\n\t\tvalue,\n\t);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { SetStateHooks } from '../utils';\nimport { emptyStringByArrayHandler, objectObjectHandler, parseJson, setState } from '../utils';\nimport type { KoliBriTableDataType, Stringified } from '../types';\n\n/* types */\nexport type TableDataPropType = Stringified<KoliBriTableDataType[]>;\n\n/**\n * Defines the primary table data.\n */\nexport type PropTableData = {\n\tdata: TableDataPropType;\n};\n\n/* validator */\nexport const validateTableData = (component: Generic.Element.Component, value?: TableDataPropType, setStateHooks?: SetStateHooks): void => {\n\temptyStringByArrayHandler(value, () => {\n\t\tobjectObjectHandler(value, () => {\n\t\t\tif (typeof value === 'undefined') {\n\t\t\t\tvalue = [];\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tvalue = parseJson<KoliBriTableDataType[]>(value);\n\t\t\t\t// eslint-disable-next-line no-empty\n\t\t\t} catch (e) {\n\t\t\t\t// value keeps the original data\n\t\t\t}\n\t\t\tif (Array.isArray(value) && value.every((data: KoliBriTableDataType) => typeof data === 'object' && data !== null)) {\n\t\t\t\tsetState(component, '_data', value, setStateHooks);\n\t\t\t}\n\t\t});\n\t});\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { SetStateHooks } from '../utils';\nimport { emptyStringByArrayHandler, objectObjectHandler, parseJson, setState } from '../utils';\nimport type { KoliBriTableDataType, Stringified } from '../types';\n\n/* types */\nexport type TableDataFootPropType = Stringified<KoliBriTableDataType[]>;\n\n/**\n * Defines the data for the table footer.\n */\nexport type PropTableDataFoot = {\n\tdataFoot: TableDataFootPropType;\n};\n\n/* validator */\nexport const validateTableDataFoot = (component: Generic.Element.Component, value?: TableDataFootPropType, setStateHooks?: SetStateHooks): void => {\n\temptyStringByArrayHandler(value, () => {\n\t\tobjectObjectHandler(value, () => {\n\t\t\tif (typeof value === 'undefined') {\n\t\t\t\tvalue = [];\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tvalue = parseJson<KoliBriTableDataType[]>(value);\n\t\t\t\t// eslint-disable-next-line no-empty\n\t\t\t} catch (e) {\n\t\t\t\t// value keeps the original data\n\t\t\t}\n\t\t\tif (Array.isArray(value) && value.every((data: KoliBriTableDataType) => typeof data === 'object' && data !== null)) {\n\t\t\t\tsetState(component, '_dataFoot', value, setStateHooks);\n\t\t\t}\n\t\t});\n\t});\n};\n","import type { Generic } from 'adopted-style-sheets';\nimport type { KoliBriTableSelection, Stringified } from '../types';\nimport { parseJson, setState } from '../utils';\nimport { isObject } from '../validators';\n\n/* types */\nexport type TableSelectionPropType = Stringified<KoliBriTableSelection>;\n\n/**\n * Defines how rows can be selected and the current selection.\n */\nexport type PropTableSelection = {\n\tselection: TableSelectionPropType;\n};\n\n/* validator */\nexport const validateTableSelection = (component: Generic.Element.Component, value?: TableSelectionPropType): void => {\n\tconst parseSerializedValue = () => {\n\t\ttry {\n\t\t\treturn parseJson<KoliBriTableSelection>(value);\n\t\t} catch (e) {\n\t\t\treturn undefined;\n\t\t}\n\t};\n\n\tconst validateObject = (value?: KoliBriTableSelection) => {\n\t\treturn value && isObject(value) && typeof value.label === 'function' && (!value.selectedKeys || Array.isArray(value.selectedKeys));\n\t};\n\n\tconst objectValue = typeof value === 'string' ? parseSerializedValue() : value;\n\tif (validateObject(objectValue)) {\n\t\tsetState(component, '_selection', value);\n\t}\n};\n","export enum Events {\n\tonBlur = 'onBlur',\n\tonChange = 'onChange',\n\tonClick = 'onClick',\n\tonDblClick = 'onDblClick',\n\tonFocus = 'onFocus',\n\tonInput = 'onInput',\n\tonKeyDown = 'onKeyDown',\n\tonKeyPress = 'onKeyPress',\n\tonKeyUp = 'onKeyUp',\n\tonMouseDown = 'onMouseDown',\n\tonMouseMove = 'onMouseMove',\n\tonMouseOut = 'onMouseOut',\n\tonMouseOver = 'onMouseOver',\n\tonMouseUp = 'onMouseUp',\n\tonReset = 'onReset',\n\tonSelect = 'onSelect',\n\tonSort = 'onSort',\n\tonSelectionChange = 'onSelectionChange',\n\tonSubmit = 'onSubmit',\n\tonClose = 'onClose',\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h}from"./index-bd96e8df.js";import{d as KolAlertWcTag}from"./component-names-3e0158fe.js";const FormFieldMsg=({_alert:r,_msg:e,_hideError:o,_id:i})=>h(KolAlertWcTag,Object.assign({"aria-hidden":"true",id:`${i}-error`,_alert:r,_type:"error",class:{error:!0,"visually-hidden":!0===o}},e),(null==e?void 0:e._description)||void 0);export{FormFieldMsg as F};
4
+ import{h}from"./index-cf24d1fe.js";import{d as KolAlertWcTag}from"./component-names-0a8a1a6c.js";const FormFieldMsg=({_alert:r,_msg:e,_hideError:o,_id:i})=>h(KolAlertWcTag,Object.assign({"aria-hidden":"true",id:`${i}-error`,_alert:r,_type:"error",class:{error:!0,"visually-hidden":!0===o}},e),(null==e?void 0:e._description)||void 0);export{FormFieldMsg as F};
@@ -1 +1 @@
1
- {"file":"form-field-msg-2e39a9f7.js","mappings":";;;;;;MAYa,YAAY,GAA2C,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,MACrG,EAAC,aAAa,iCAOD,MAAM,EAClB,EAAE,EAAE,GAAG,GAAG,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,KAAK,EAAC,OAAO,EACb,KAAK,EAAE;QACN,KAAK,EAAE,IAAI;QACX,iBAAiB,EAAE,UAAU,KAAK,IAAI;KACtC,IACG,IAAI,GAEP,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,YAAY,KAAI,SAAS,CACjB;;;;","names":[],"sources":["src/components/@shared/form-field-msg.tsx"],"sourcesContent":["import type { AlertPropType, HideErrorPropType, IdPropType, MsgPropType } from '../../schema';\nimport type { FunctionalComponent } from '@stencil/core';\nimport { h } from '@stencil/core';\nimport { KolAlertWcTag } from '../../core/component-names';\n\ntype FormFieldMsgProps = {\n\t_alert?: AlertPropType;\n\t_msg?: MsgPropType;\n\t_hideError?: HideErrorPropType;\n\t_id: IdPropType;\n};\n\nexport const FormFieldMsg: FunctionalComponent<FormFieldMsgProps> = ({ _alert, _msg, _hideError, _id }) => (\n\t<KolAlertWcTag\n\t\t/**\n\t\t * This message is read out by screen readers if the input field\n\t\t * refers to the message using the <code>aria-describedby</code>\n\t\t * attribute. It also does this if <code>aria-hidden=true</code>\n\t\t * is set.\n\t\t */\n\t\taria-hidden=\"true\"\n\t\tid={`${_id}-error`}\n\t\t_alert={_alert}\n\t\t_type=\"error\"\n\t\tclass={{\n\t\t\terror: true,\n\t\t\t'visually-hidden': _hideError === true,\n\t\t}}\n\t\t{..._msg}\n\t>\n\t\t{_msg?._description || undefined}\n\t</KolAlertWcTag>\n);\n"],"version":3}
1
+ {"file":"form-field-msg-22e08734.js","mappings":";;;;;;MAYa,YAAY,GAA2C,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,MACrG,EAAC,aAAa,iCAOD,MAAM,EAClB,EAAE,EAAE,GAAG,GAAG,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,KAAK,EAAC,OAAO,EACb,KAAK,EAAE;QACN,KAAK,EAAE,IAAI;QACX,iBAAiB,EAAE,UAAU,KAAK,IAAI;KACtC,IACG,IAAI,GAEP,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,YAAY,KAAI,SAAS,CACjB;;;;","names":[],"sources":["src/components/@shared/form-field-msg.tsx"],"sourcesContent":["import type { AlertPropType, HideErrorPropType, IdPropType, MsgPropType } from '../../schema';\nimport type { FunctionalComponent } from '@stencil/core';\nimport { h } from '@stencil/core';\nimport { KolAlertWcTag } from '../../core/component-names';\n\ntype FormFieldMsgProps = {\n\t_alert?: AlertPropType;\n\t_msg?: MsgPropType;\n\t_hideError?: HideErrorPropType;\n\t_id: IdPropType;\n};\n\nexport const FormFieldMsg: FunctionalComponent<FormFieldMsgProps> = ({ _alert, _msg, _hideError, _id }) => (\n\t<KolAlertWcTag\n\t\t/**\n\t\t * This message is read out by screen readers if the input field\n\t\t * refers to the message using the <code>aria-describedby</code>\n\t\t * attribute. It also does this if <code>aria-hidden=true</code>\n\t\t * is set.\n\t\t */\n\t\taria-hidden=\"true\"\n\t\tid={`${_id}-error`}\n\t\t_alert={_alert}\n\t\t_type=\"error\"\n\t\tclass={{\n\t\t\terror: true,\n\t\t\t'visually-hidden': _hideError === true,\n\t\t}}\n\t\t{..._msg}\n\t>\n\t\t{_msg?._description || undefined}\n\t</KolAlertWcTag>\n);\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{b as watchBoolean}from"./prop.validators-f89d26b4.js";const validateHasCloser=(a,o)=>{watchBoolean(a,"_hasCloser",o)};export{validateHasCloser as v};
4
+ import{b as watchBoolean}from"./prop.validators-5a58fa40.js";const validateHasCloser=(a,o)=>{watchBoolean(a,"_hasCloser",o)};export{validateHasCloser as v};
@@ -1 +1 @@
1
- {"file":"has-closer-67035624.js","mappings":";;;;;MAea,iBAAiB,GAAG,CAAC,SAAoC,EAAE,KAAyB;IAChG,YAAY,CAAC,SAAS,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC;AAC9C;;;;","names":[],"sources":["src/schema/props/has-closer.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchBoolean } from '../utils';\n\n/* types */\nexport type HasCloserPropType = boolean;\n\n/**\n * Defines whether the element can be closed.\n */\nexport type PropHasCloser = {\n\thasCloser: HasCloserPropType;\n};\n\n/* validator */\nexport const validateHasCloser = (component: Generic.Element.Component, value?: HasCloserPropType): void => {\n\twatchBoolean(component, '_hasCloser', value);\n};\n"],"version":3}
1
+ {"file":"has-closer-f40b362c.js","mappings":";;;;;MAea,iBAAiB,GAAG,CAAC,SAAoC,EAAE,KAAyB;IAChG,YAAY,CAAC,SAAS,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC;AAC9C;;;;","names":[],"sources":["src/schema/props/has-closer.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchBoolean } from '../utils';\n\n/* types */\nexport type HasCloserPropType = boolean;\n\n/**\n * Defines whether the element can be closed.\n */\nexport type PropHasCloser = {\n\thasCloser: HasCloserPropType;\n};\n\n/* validator */\nexport const validateHasCloser = (component: Generic.Element.Component, value?: HasCloserPropType): void => {\n\twatchBoolean(component, '_hasCloser', value);\n};\n"],"version":3}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{b as watchBoolean}from"./prop.validators-5a58fa40.js";const validateHasCounter=(a,o,t)=>{watchBoolean(a,"_hasCounter",o,t)};export{validateHasCounter as v};
@@ -0,0 +1 @@
1
+ {"file":"has-counter-798e2301.js","mappings":";;;;;MAgBa,kBAAkB,GAAG,CAAC,SAAoC,EAAE,KAA0B,EAAE,OAA6B;IACjI,YAAY,CAAC,SAAS,EAAE,aAAa,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;AACxD;;;;","names":[],"sources":["src/schema/props/has-counter.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchBooleanOptions } from '../utils';\nimport { watchBoolean } from '../utils';\n\n/* types */\nexport type HasCounterPropType = boolean;\n\n/**\n * Shows the character count on the lower border of the input.\n */\nexport type PropHasCounter = {\n\thasCounter: HasCounterPropType;\n};\n\n/* validator */\nexport const validateHasCounter = (component: Generic.Element.Component, value?: HasCounterPropType, options?: WatchBooleanOptions): void => {\n\twatchBoolean(component, '_hasCounter', value, options);\n};\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{b as watchBoolean}from"./prop.validators-f89d26b4.js";const validateHideLabel=(a,e,o={})=>{watchBoolean(a,"_hideLabel",e,o)};export{validateHideLabel as v};
4
+ import{b as watchBoolean}from"./prop.validators-5a58fa40.js";const validateHideLabel=(a,e,o={})=>{watchBoolean(a,"_hideLabel",e,o)};export{validateHideLabel as v};
@@ -1 +1 @@
1
- {"file":"hide-label-6424f890.js","mappings":";;;;;MAgBa,iBAAiB,GAAG,CAAC,SAAoC,EAAE,KAAyB,EAAE,UAA+B,EAAE;IACnI,YAAY,CAAC,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;AACvD;;;;","names":[],"sources":["src/schema/props/hide-label.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchBooleanOptions } from '../utils';\nimport { watchBoolean } from '../utils';\n\n/* types */\nexport type HideLabelPropType = boolean;\n\n/**\n * Tells the element to hide the label.\n */\nexport type PropHideLabel = {\n\thideLabel: HideLabelPropType;\n};\n\n/* validator */\nexport const validateHideLabel = (component: Generic.Element.Component, value?: HideLabelPropType, options: WatchBooleanOptions = {}): void => {\n\twatchBoolean(component, '_hideLabel', value, options);\n};\n"],"version":3}
1
+ {"file":"hide-label-1d403517.js","mappings":";;;;;MAgBa,iBAAiB,GAAG,CAAC,SAAoC,EAAE,KAAyB,EAAE,UAA+B,EAAE;IACnI,YAAY,CAAC,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;AACvD;;;;","names":[],"sources":["src/schema/props/hide-label.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchBooleanOptions } from '../utils';\nimport { watchBoolean } from '../utils';\n\n/* types */\nexport type HideLabelPropType = boolean;\n\n/**\n * Tells the element to hide the label.\n */\nexport type PropHideLabel = {\n\thideLabel: HideLabelPropType;\n};\n\n/* validator */\nexport const validateHideLabel = (component: Generic.Element.Component, value?: HideLabelPropType, options: WatchBooleanOptions = {}): void => {\n\twatchBoolean(component, '_hideLabel', value, options);\n};\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{i as watchString}from"./prop.validators-f89d26b4.js";const validateHref=(a,r,t={})=>{watchString(a,"_href",r,t)};export{validateHref as v};
4
+ import{i as watchString}from"./prop.validators-5a58fa40.js";const validateHref=(a,r,t={})=>{watchString(a,"_href",r,t)};export{validateHref as v};
@@ -1 +1 @@
1
- {"file":"href-e8c05473.js","mappings":";;;;;MAkBa,YAAY,GAAG,CAAC,SAAoC,EAAE,KAAoB,EAAE,UAA8B,EAAE;IACxH,WAAW,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;AACjD;;;;","names":[],"sources":["src/schema/props/href.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchStringOptions } from '../utils';\nimport { watchString } from '../utils';\n\n/* types */\nexport type HrefPropType = string;\n\n/**\n * This property is used for a link from a reference to the target URL.\n */\nexport type PropHref = {\n\thref: HrefPropType;\n};\n\nexport type HrefProp = Generic.Element.Members<PropHref, unknown>;\n\n/* validator */\nexport const validateHref = (component: Generic.Element.Component, value?: HrefPropType, options: WatchStringOptions = {}): void => {\n\twatchString(component, '_href', value, options);\n};\n"],"version":3}
1
+ {"file":"href-5e305ce2.js","mappings":";;;;;MAkBa,YAAY,GAAG,CAAC,SAAoC,EAAE,KAAoB,EAAE,UAA8B,EAAE;IACxH,WAAW,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;AACjD;;;;","names":[],"sources":["src/schema/props/href.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchStringOptions } from '../utils';\nimport { watchString } from '../utils';\n\n/* types */\nexport type HrefPropType = string;\n\n/**\n * This property is used for a link from a reference to the target URL.\n */\nexport type PropHref = {\n\thref: HrefPropType;\n};\n\nexport type HrefProp = Generic.Element.Members<PropHref, unknown>;\n\n/* validator */\nexport const validateHref = (component: Generic.Element.Component, value?: HrefPropType, options: WatchStringOptions = {}): void => {\n\twatchString(component, '_href', value, options);\n};\n"],"version":3}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ const locale_de={error:"Fehler",warning:"Warnung",info:"Hinweis",success:"Erfolg",message:"Nachricht",close:"Schließen","form-description":"Formular-Felder, die mit einem Sternchen (*) gekennzeichnet sind, sind Pflichtangaben.",of:"von",characters:"Zeichen",new:"Neu","no-entries":"Es sind keine Einträge vorhanden.","change-order":"Sortierung von {{colLabel}} ändern","action-running":"Aktion wird ausgeführt...","action-done":"Aktion abgeschlossen",pagination:"Paginierung","page-first":"Direkt zur ersten Seite","page-back":"Eine Seite zurück","page-next":"Eine Seite weiter","page-last":"Direkt zur letzten Seite","entries-per-site":"Einträge pro Seite",page:"Seite","page-current":"Seite {{page}}","page-selected":"Seite {{page}} ist ausgewählt","page-per-site":"{{entries}} Einträge pro Seite","nav-maximize":"Navigation maximieren","nav-minimize":"Navigation minimieren","logo-description":"Logo {{orgShort}}. Bundesadler mit Flaggenstab und Schriftzug {{orgLong}}","open-link-in-tab":"Öffnet in neuem Tab.","kolibri-logo":"Logo von KoliBri","table-pagination-label":"Paginierung für die Tabelle {{label}}","avatar-alt":"Avatar von {{name}}","split-button-dropdown-label-open":"Optionen anzeigen","split-button-dropdown-label-close":"Optionen schließen","toast-close-all":"Alle schließen","error-list":"Fehlerliste","error-list-message":"Bitte korrigieren Sie folgende Fehler:",version:"Versionsnummer","table-visible-range":"Einträge {{start}} bis {{end}} von {{total}}","table-selection-all":"Alle auswählen","table-selection-none":"Alle abwählen","table-selection-indeterminate":"Alle auswählen bei teilweiser Auswahl",dropdown:"Auswahlliste","nav-label-open":"Untermenü zu {{label}} öffnen","nav-label-close":"Untermenü zu {{label}} schließen","close-alert":"Benachrichtigung schließen","show-password":"einblenden","hide-password":"ausblenden","no-results-message":"Keine Ergebnisse gefunden.","delete-selection":"Auswahl entfernen"},locale_en={error:"Error",warning:"Warning",info:"Note",success:"Success",message:"Message",close:"Close","form-description":"Form fields marked with an asterisk (*) are mandatory.",of:"of",characters:"characters",new:"New","no-entries":"No entries available.","change-order":"Change order of {{colLabel}}","action-running":"Action is running...","action-done":"Action done",pagination:"Pagination","page-first":"Directly to the first page","page-back":"One page back","page-next":"One page further","page-last":"Directly to the last page","entries-per-site":"Entries per page",page:"Page","page-current":"Page {{page}}","page-selected":"Page {{page}} is selected","page-per-site":"{{entries}} entries per page","nav-maximize":"Maximize navigation","nav-minimize":"Minimize navigation","logo-description":"Logo {{orgShort}}. Federal eagle with flag staff and lettering {{orgLong}}","open-link-in-tab":"Opens in new tab.","kolibri-logo":"KoliBri logo","table-pagination-label":"Pagination for table {{label}}","avatar-alt":"Avatar of {{name}}","split-button-dropdown-label-open":"Show options","split-button-dropdown-label-close":"Hide options","toast-close-all":"Close all","error-list":"Error list","error-list-message":"Please correct the following errors",version:"Version number","table-visible-range":"Entries {{start}} to {{end}} of {{total}}","table-selection-all":"Select all","table-selection-none":"Deselect all","table-selection-indeterminate":"Select all with partial selection",dropdown:"Dropdown","nav-label-open":"Submenu for {{label}} open","nav-label-close":"Submenu for {{label}} close","close-alert":"Close notification","show-password":"Show","hide-password":"Hide","no-results-message":"No results found.","delete-selection":"Delete selection"},mapLocaleKeys=e=>Object.keys(e).reduce(((n,a)=>(n[`kol-${a}`]=e[a],n)),{}),TRANSLATIONS=new Set([e=>e("en",mapLocaleKeys(locale_en)),e=>e("de",mapLocaleKeys(locale_de))]),replaceAll=function(e,n,a){return e.split(n).join(a)};class I18nService{constructor(e){this.resourceMap=new Map,this.language=null!=e?e:"de"}addTranslations(e){Array.isArray(e)?e=new Set(e):"function"==typeof e&&(e=new Set([e])),void 0!==e&&e.forEach((e=>e(((e,n)=>{let a=this.resourceMap.get(e);return a||(a=new Map,this.resourceMap.set(e,a)),Object.entries(n).forEach((([e,n])=>{n&&a.set(e,n)})),e}))))}setLanguage(e){this.language=e}translate(e,n){var a;let i=null===(a=this.resourceMap.get(this.language))||void 0===a?void 0:a.get(e);return i?(null==n?void 0:n.placeholders)&&Object.entries(n.placeholders).forEach((([e,n])=>{i=replaceAll(i,`{{${e}}}`,n)})):i=e,i}}let i18n;const getI18nInstance=()=>i18n,initializeI18n=(e,n=TRANSLATIONS)=>(i18n=new I18nService(e),i18n.addTranslations(n),i18n);export{getI18nInstance as g,initializeI18n as i};
@@ -0,0 +1 @@
1
+ {"file":"i18n-7ea9f137.js","mappings":";;;AAAA,kBAAe;IACd,KAAK,EAAE,QAAQ;IACf,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,QAAQ;IACjB,OAAO,EAAE,WAAW;IACpB,KAAK,EAAE,WAAW;IAClB,kBAAkB,EAAE,wFAAwF;IAC5G,EAAE,EAAE,KAAK;IACT,UAAU,EAAE,SAAS;IACrB,GAAG,EAAE,KAAK;IACV,YAAY,EAAE,mCAAmC;IACjD,cAAc,EAAE,oCAAoC;IACpD,gBAAgB,EAAE,2BAA2B;IAC7C,aAAa,EAAE,sBAAsB;IACrC,UAAU,EAAE,aAAa;IACzB,YAAY,EAAE,yBAAyB;IACvC,WAAW,EAAE,mBAAmB;IAChC,WAAW,EAAE,mBAAmB;IAChC,WAAW,EAAE,0BAA0B;IACvC,kBAAk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,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;qBACpB;iBACD,CAAC,CAAC;gBACH,OAAO,CAAC,CAAC;aACT,CAAC,CACF,CAAC;SACF;KACD;IAMM,WAAW,CAAC,GAAkC;QACpD,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC;KACpB;IAQM,SAAS,CAAC,GAAW,EAAE,OAA6B;;QAC1D,IAAI,MAAM,GAAG,MAAA,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,0CAAE,GAAG,CAAC,GAAG,CAAC,CAAC;QAC3D,IAAI,MAAM,EAAE;YACX,IAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY,EAAE;gBAC1B,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;oBACnD,MAAM,GAAG,UAAU,CAAC,MAAO,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;iBAC5C,CAAC,CAAC;aACH;SACD;aAAM;YACN,MAAM,GAAG,GAAG,CAAC;SACb;QACD,OAAO,MAAM,CAAC;KACd;CACD;AAED,IAAI,IAAiB,CAAC;MAET,eAAe,GAAG;IAC9B,OAAO,IAAI,CAAC;AACb,EAAE;MAEW,cAAc,GAAG,CAC7B,GAAkC,EAClC,eAGoF,YAAY;IAEhG,IAAI,GAAG,IAAI,WAAW,CAAC,GAAG,CAAC,CAAC;IAC5B,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC;IACnC,OAAO,IAAI,CAAC;AACb;;;;","names":[],"sources":["src/locales/de.ts","src/locales/en.ts","src/core/i18n.ts"],"sourcesContent":["export default {\n\terror: 'Fehler',\n\twarning: 'Warnung',\n\tinfo: 'Hinweis',\n\tsuccess: 'Erfolg',\n\tmessage: 'Nachricht',\n\tclose: 'Schließen',\n\t'form-description': 'Formular-Felder, die mit einem Sternchen (*) gekennzeichnet sind, sind Pflichtangaben.',\n\tof: 'von',\n\tcharacters: 'Zeichen',\n\tnew: 'Neu',\n\t'no-entries': 'Es sind keine Einträge vorhanden.',\n\t'change-order': 'Sortierung von {{colLabel}} ändern',\n\t'action-running': 'Aktion wird ausgeführt...',\n\t'action-done': 'Aktion abgeschlossen',\n\tpagination: 'Paginierung',\n\t'page-first': 'Direkt zur ersten Seite',\n\t'page-back': 'Eine Seite zurück',\n\t'page-next': 'Eine Seite weiter',\n\t'page-last': 'Direkt zur letzten Seite',\n\t'entries-per-site': 'Einträge pro Seite',\n\tpage: 'Seite',\n\t'page-current': 'Seite {{page}}',\n\t'page-selected': 'Seite {{page}} ist ausgewählt',\n\t'page-per-site': '{{entries}} Einträge pro Seite',\n\t'nav-maximize': 'Navigation maximieren',\n\t'nav-minimize': 'Navigation minimieren',\n\t'logo-description': 'Logo {{orgShort}}. Bundesadler mit Flaggenstab und Schriftzug {{orgLong}}',\n\t'open-link-in-tab': 'Öffnet in neuem Tab.',\n\t'kolibri-logo': 'Logo von KoliBri',\n\t'table-pagination-label': 'Paginierung für die Tabelle {{label}}',\n\t'avatar-alt': 'Avatar von {{name}}',\n\t'split-button-dropdown-label-open': 'Optionen anzeigen',\n\t'split-button-dropdown-label-close': 'Optionen schließen',\n\t'toast-close-all': 'Alle schließen',\n\t'error-list': 'Fehlerliste',\n\t'error-list-message': 'Bitte korrigieren Sie folgende Fehler:',\n\tversion: 'Versionsnummer',\n\t'table-visible-range': 'Einträge {{start}} bis {{end}} von {{total}}',\n\t'table-selection-all': 'Alle auswählen',\n\t'table-selection-none': 'Alle abwählen',\n\t'table-selection-indeterminate': 'Alle auswählen bei teilweiser Auswahl',\n\tdropdown: 'Auswahlliste',\n\t'nav-label-open': 'Untermenü zu {{label}} öffnen',\n\t'nav-label-close': 'Untermenü zu {{label}} schließen',\n\t'close-alert': 'Benachrichtigung schließen',\n\t'show-password': 'einblenden',\n\t'hide-password': 'ausblenden',\n\t'no-results-message': 'Keine Ergebnisse gefunden.',\n\t'delete-selection': 'Auswahl entfernen',\n};\n","export default {\n\terror: 'Error',\n\twarning: 'Warning',\n\tinfo: 'Note',\n\tsuccess: 'Success',\n\tmessage: 'Message',\n\tclose: 'Close',\n\t'form-description': 'Form fields marked with an asterisk (*) are mandatory.',\n\tof: 'of',\n\tcharacters: 'characters',\n\tnew: 'New',\n\t'no-entries': 'No entries available.',\n\t'change-order': 'Change order of {{colLabel}}',\n\t'action-running': 'Action is running...',\n\t'action-done': 'Action done',\n\tpagination: 'Pagination',\n\t'page-first': 'Directly to the first page',\n\t'page-back': 'One page back',\n\t'page-next': 'One page further',\n\t'page-last': 'Directly to the last page',\n\t'entries-per-site': 'Entries per page',\n\tpage: 'Page',\n\t'page-current': 'Page {{page}}',\n\t'page-selected': 'Page {{page}} is selected',\n\t'page-per-site': '{{entries}} entries per page',\n\t'nav-maximize': 'Maximize navigation',\n\t'nav-minimize': 'Minimize navigation',\n\t'logo-description': 'Logo {{orgShort}}. Federal eagle with flag staff and lettering {{orgLong}}',\n\t'open-link-in-tab': 'Opens in new tab.',\n\t'kolibri-logo': 'KoliBri logo',\n\t'table-pagination-label': 'Pagination for table {{label}}',\n\t'avatar-alt': 'Avatar of {{name}}',\n\t'split-button-dropdown-label-open': 'Show options',\n\t'split-button-dropdown-label-close': 'Hide options',\n\t'toast-close-all': 'Close all',\n\t'error-list': 'Error list',\n\t'error-list-message': 'Please correct the following errors',\n\tversion: 'Version number',\n\t'table-visible-range': 'Entries {{start}} to {{end}} of {{total}}',\n\t'table-selection-all': 'Select all',\n\t'table-selection-none': 'Deselect all',\n\t'table-selection-indeterminate': 'Select all with partial selection',\n\tdropdown: 'Dropdown',\n\t'nav-label-open': 'Submenu for {{label}} open',\n\t'nav-label-close': 'Submenu for {{label}} close',\n\t'close-alert': 'Close notification',\n\t'show-password': 'Show',\n\t'hide-password': 'Hide',\n\t'no-results-message': 'No results found.',\n\t'delete-selection': 'Delete selection',\n};\n","import type { Generic } from 'adopted-style-sheets';\nimport locale_de from '../locales/de';\nimport locale_en from '../locales/en';\n\nexport type ResourcePrefix = 'Kol';\nexport type ComponentKeys = keyof typeof locale_de;\n\nconst mapLocaleKeys = (locale: { [K in ComponentKeys]: string }) =>\n\t(Object.keys(locale) as ComponentKeys[]).reduce((a, c) => ((a[`${'kol'}-${c}`] = locale[c]), a), {} as Generic.I18n.Map<ResourcePrefix, ComponentKeys>);\n\nconst TRANSLATIONS = new Set<Generic.I18n.RegisterPatch<Generic.I18n.Locale.ISO_639_1, ResourcePrefix, ComponentKeys>>([\n\t(t: (language: 'en', translationMap: Generic.I18n.Map<ResourcePrefix, ComponentKeys>) => Generic.I18n.Locale.ISO_639_1) => t('en', mapLocaleKeys(locale_en)),\n\t(t: (language: 'de', translationMap: Generic.I18n.Map<ResourcePrefix, ComponentKeys>) => Generic.I18n.Locale.ISO_639_1) => t('de', mapLocaleKeys(locale_de)),\n]);\n\ninterface ITranslationOptions {\n\t/**\n\t * Placeholders to insert into the text. Replacing {{key}} with the specified value if the \"key\".\n\t */\n\tplaceholders?: { [K: string]: string };\n}\n\n// String.replaceAll should be used but is only available with ECMAScript 2021.\nconst replaceAll = function (text: string, search: string, replacement: string) {\n\treturn text.split(search).join(replacement);\n};\n\ntype Resources = Map<string, string>;\n\nexport class I18nService {\n\tprivate resourceMap = new Map<Generic.I18n.Locale.ISO_639_1, Resources>();\n\tlanguage: Generic.I18n.Locale.ISO_639_1;\n\n\tpublic constructor(initialLanguage?: Generic.I18n.Locale.ISO_639_1) {\n\t\tthis.language = initialLanguage ?? 'de';\n\t}\n\n\t/**\n\t * Adds a resource bundle for the specified language.\n\t * @param lng the language the bundle is for\n\t * @param translationMap the translations of the given language\n\t */\n\tpublic addTranslations(\n\t\ttranslations?:\n\t\t\t| Generic.I18n.RegisterPatch<Generic.I18n.Locale.ISO_639_1, string, string>\n\t\t\t| Generic.I18n.RegisterPatch<Generic.I18n.Locale.ISO_639_1, string, string>[]\n\t\t\t| Set<Generic.I18n.RegisterPatch<Generic.I18n.Locale.ISO_639_1, string, string>>,\n\t) {\n\t\tif (Array.isArray(translations)) {\n\t\t\ttranslations = new Set(translations);\n\t\t} else if (typeof translations === 'function') {\n\t\t\ttranslations = new Set([translations]);\n\t\t}\n\n\t\tif (translations !== undefined) {\n\t\t\ttranslations.forEach((t) =>\n\t\t\t\tt((l, t) => {\n\t\t\t\t\tlet resources = this.resourceMap.get(l);\n\t\t\t\t\tif (!resources) {\n\t\t\t\t\t\tresources = new Map<string, string>();\n\t\t\t\t\t\tthis.resourceMap.set(l, resources);\n\t\t\t\t\t}\n\n\t\t\t\t\tObject.entries(t).forEach(([k, v]) => {\n\t\t\t\t\t\tif (v) {\n\t\t\t\t\t\t\tresources.set(k, v);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\treturn l;\n\t\t\t\t}),\n\t\t\t);\n\t\t}\n\t}\n\n\t/**\n\t * Set the current language.\n\t * @param lng the language the bundle is for\n\t */\n\tpublic setLanguage(lng: Generic.I18n.Locale.ISO_639_1) {\n\t\tthis.language = lng;\n\t}\n\n\t/**\n\t * Determines a human-readable translated text for the given resource key.\n\t * @param key the resource key\n\t * @param options optional translation parameters\n\t * @returns the translated text\n\t */\n\tpublic translate(key: string, options?: ITranslationOptions) {\n\t\tlet result = this.resourceMap.get(this.language)?.get(key);\n\t\tif (result) {\n\t\t\tif (options?.placeholders) {\n\t\t\t\tObject.entries(options.placeholders).forEach(([k, v]) => {\n\t\t\t\t\tresult = replaceAll(result!, `{{${k}}}`, v);\n\t\t\t\t});\n\t\t\t}\n\t\t} else {\n\t\t\tresult = key;\n\t\t}\n\t\treturn result;\n\t}\n}\n\nlet i18n: I18nService;\n\nexport const getI18nInstance = () => {\n\treturn i18n;\n};\n\nexport const initializeI18n = (\n\tlng: Generic.I18n.Locale.ISO_639_1,\n\ttranslations:\n\t\t| Generic.I18n.RegisterPatch<Generic.I18n.Locale.ISO_639_1, string, string>\n\t\t| Generic.I18n.RegisterPatch<Generic.I18n.Locale.ISO_639_1, string, string>[]\n\t\t| Set<Generic.I18n.RegisterPatch<Generic.I18n.Locale.ISO_639_1, string, string>> = TRANSLATIONS,\n) => {\n\ti18n = new I18nService(lng);\n\ti18n.addTranslations(translations);\n\treturn i18n;\n};\n"],"version":3}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{g as getI18nInstance,i as initializeI18n}from"./i18n-7ea9f137.js";import{p as processEnv}from"./reuse-523ba2ac.js";let translate=(t,a)=>{var e;return(null!==(e=getI18nInstance())&&void 0!==e?e:initializeI18n("de")).translate(t,a)};"test"===processEnv&&(translate=t=>t);export{translate as t};
@@ -1 +1 @@
1
- {"file":"i18n-80da5843.js","mappings":";;;;;;IAWW,SAAS,GAAG,CAAC,GAAmB,EAAE,OAAiB;;IAC7D,MAAM,IAAI,GAAG,MAAA,eAAe,EAAE,mCAAI,cAAc,CAAC,IAAI,CAAC,CAAC;IACvD,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;AACrC,EAAE;AAEF,IAAI,UAAU,KAAK,MAAM,EAAE;IAC1B,SAAS,GAAG,CAAC,GAAG,KAAa,GAAG,CAAC;AAClC;;;;","names":[],"sources":["src/i18n.ts"],"sourcesContent":["import type { ComponentKeys, ResourcePrefix } from './core/i18n';\nimport { getI18nInstance, initializeI18n } from './core/i18n';\nimport { processEnv } from './schema';\n\ntype Options = {\n\tcount?: number;\n\tplaceholders?: { [K: string]: string };\n};\n\nexport type TranslationKey = `${Lowercase<ResourcePrefix>}-${Lowercase<ComponentKeys>}`;\n\nexport let translate = (key: TranslationKey, options?: Options) => {\n\tconst i18n = getI18nInstance() ?? initializeI18n('de');\n\treturn i18n.translate(key, options);\n};\n\nif (processEnv === 'test') {\n\ttranslate = (key): string => key;\n}\n"],"version":3}
1
+ {"file":"i18n-8640d789.js","mappings":";;;;;;IAWW,SAAS,GAAG,CAAC,GAAmB,EAAE,OAAiB;;IAC7D,MAAM,IAAI,GAAG,MAAA,eAAe,EAAE,mCAAI,cAAc,CAAC,IAAI,CAAC,CAAC;IACvD,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;AACrC,EAAE;AAEF,IAAI,UAAU,KAAK,MAAM,EAAE;IAC1B,SAAS,GAAG,CAAC,GAAG,KAAa,GAAG,CAAC;AAClC;;;;","names":[],"sources":["src/i18n.ts"],"sourcesContent":["import type { ComponentKeys, ResourcePrefix } from './core/i18n';\nimport { getI18nInstance, initializeI18n } from './core/i18n';\nimport { processEnv } from './schema';\n\ntype Options = {\n\tcount?: number;\n\tplaceholders?: { [K: string]: string };\n};\n\nexport type TranslationKey = `${Lowercase<ResourcePrefix>}-${Lowercase<ComponentKeys>}`;\n\nexport let translate = (key: TranslationKey, options?: Options) => {\n\tconst i18n = getI18nInstance() ?? initializeI18n('de');\n\treturn i18n.translate(key, options);\n};\n\nif (processEnv === 'test') {\n\ttranslate = (key): string => key;\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{o as objectObjectHandler,p as parseJson,w as watchValidator}from"./prop.validators-f89d26b4.js";import{i as isString,a as isStyle,b as isObject}from"./common-54bf85ba.js";const mapCustomIcon=(t,o,i)=>{isObject(i)?t[o]=i:isString(i,1)&&(t[o]={icon:i})},mapIconProp2State=t=>{let o={};return isString(t,1)?o={left:{icon:t}}:"object"==typeof t&&null!==t&&(mapCustomIcon(o,"top",t.top),mapCustomIcon(o,"right",t.right),mapCustomIcon(o,"bottom",t.bottom),mapCustomIcon(o,"left",t.left)),o},beforePatchIcon=t=>{var o,i,e;if(null===(o=t.nextState)||void 0===o?void 0:o.has("_icons")){const o=null===(i=t.nextState)||void 0===i?void 0:i.get("_icons");null===(e=t.nextState)||void 0===e||e.set("_icons",mapIconProp2State(o))}},isIcon=t=>"object"==typeof t&&null!==t&&(void 0===t.style||isStyle(t.style))&&(void 0===t.label||isString(t.label))&&isString(t.icon,1),validateIcons=(t,o,i={})=>{objectObjectHandler(o,(()=>{var e;try{o=parseJson(o)}catch(t){}watchValidator(t,"_icons",(t=>{const o="object"==typeof t&&null!==t&&0===Object.keys(t).length;return null===t||o||isString(t,1)||"object"==typeof t&&null!==t&&(isString(t.left,1)||isIcon(t.left)||isString(t.right,1)||isIcon(t.right)||isString(t.top,1)||isIcon(t.top)||isString(t.bottom,1)||isIcon(t.bottom))}),new Set(["KoliBriIcon"]),o,Object.assign(Object.assign({},i),{defaultValue:{},hooks:{afterPatch:null===(e=i.hooks)||void 0===e?void 0:e.afterPatch,beforePatch:(t,o,e,n)=>{var s,a;"function"==typeof(null===(s=i.hooks)||void 0===s?void 0:s.beforePatch)&&(null===(a=i.hooks)||void 0===a||a.beforePatch(t,o,e,n)),beforePatchIcon(e)}}}))}))};export{isIcon as i,validateIcons as v};
4
+ import{o as objectObjectHandler,p as parseJson,w as watchValidator}from"./prop.validators-5a58fa40.js";import{i as isString,a as isStyle,b as isObject}from"./common-54bf85ba.js";const mapCustomIcon=(t,o,i)=>{isObject(i)?t[o]=i:isString(i,1)&&(t[o]={icon:i})},mapIconProp2State=t=>{let o={};return isString(t,1)?o={left:{icon:t}}:"object"==typeof t&&null!==t&&(mapCustomIcon(o,"top",t.top),mapCustomIcon(o,"right",t.right),mapCustomIcon(o,"bottom",t.bottom),mapCustomIcon(o,"left",t.left)),o},beforePatchIcon=t=>{var o,i,e;if(null===(o=t.nextState)||void 0===o?void 0:o.has("_icons")){const o=null===(i=t.nextState)||void 0===i?void 0:i.get("_icons");null===(e=t.nextState)||void 0===e||e.set("_icons",mapIconProp2State(o))}},isIcon=t=>"object"==typeof t&&null!==t&&(void 0===t.style||isStyle(t.style))&&(void 0===t.label||isString(t.label))&&isString(t.icon,1),validateIcons=(t,o,i={})=>{objectObjectHandler(o,(()=>{var e;try{o=parseJson(o)}catch(t){}watchValidator(t,"_icons",(t=>{const o="object"==typeof t&&null!==t&&0===Object.keys(t).length;return null===t||o||isString(t,1)||"object"==typeof t&&null!==t&&(isString(t.left,1)||isIcon(t.left)||isString(t.right,1)||isIcon(t.right)||isString(t.top,1)||isIcon(t.top)||isString(t.bottom,1)||isIcon(t.bottom))}),new Set(["KoliBriIcon"]),o,Object.assign(Object.assign({},i),{defaultValue:{},hooks:{afterPatch:null===(e=i.hooks)||void 0===e?void 0:e.afterPatch,beforePatch:(t,o,e,n)=>{var s,a;"function"==typeof(null===(s=i.hooks)||void 0===s?void 0:s.beforePatch)&&(null===(a=i.hooks)||void 0===a||a.beforePatch(t,o,e,n)),beforePatchIcon(e)}}}))}))};export{isIcon as i,validateIcons as v};
@@ -1 +1 @@
1
- {"file":"icons-bd60f3a5.js","mappings":";;;;;;AAsBA,MAAM,aAAa,GAAG,CAAC,KAAwB,EAAE,SAAwB,EAAE,IAA2C;IACrH,IAAI,QAAQ,CAAC,IAAI,CAAC,EAAE;QACnB,KAAK,CAAC,SAAS,CAAC,GAAG,IAAyB,CAAC;KAC7C;SAAM,IAAI,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE;QAC7B,KAAK,CAAC,SAAS,CAAC,GAAG;YAClB,IAAI,EAAE,IAAwB;SAC9B,CAAC;KACF;AACF,CAAC,CAAC;AAEK,MAAM,iBAAiB,GAAG,CAAC,IAAsB;IACvD,IAAI,KAAK,GAAsB,EAAE,CAAC;IAClC,IAAI,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE;QACtB,KAAK,GAAG;YACP,IAAI,EAAE;gBACL,IAAI,EAAE,IAAwB;aAC9B;SACD,CAAC;KACF;SAAM,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE;QACrD,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;QACtC,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QAC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AC,CAAC;YAC1G,QACC,KAAK,KAAK,IAAI;gBACd,kBAAkB;gBAClB,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC;iBACjB,OAAO,KAAK,KAAK,QAAQ;oBACzB,KAAK,KAAK,IAAI;qBACb,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;wBACvB,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC;wBAClB,QAAQ,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC;wBACxB,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC;wBACnB,QAAQ,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC;wBACtB,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC;wBACjB,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;wBACzB,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EACvB;SACF,EACD,IAAI,GAAG,CAAC,CAAC,aAAa,CAAC,CAAC,EACxB,KAAK,kCAED,OAAO,KACV,YAAY,EAAE,EAAE,EAChB,KAAK,EAAE;gBACN,UAAU,EAAE,MAAA,OAAO,CAAC,KAAK,0CAAE,UAAU;gBACrC,WAAW,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG;;oBACjD,IAAI,QAAO,MAAA,OAAO,CAAC,KAAK,0CAAE,WAAW,CAAA,KAAK,UAAU,EAAE;wBACrD,MAAA,OAAO,CAAC,KAAK,0CAAE,WAAW,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC;qBACjE;oBACD,eAAe,CAAC,SAAS,CAAC,CAAC;iBAC3B;aACD,IAEF,CAAC;KACF,CAAC,CAAC;AACJ;;;;","names":[],"sources":["src/schema/props/icons.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport type { AnyIconFontClass, KoliBriCustomIcon, KoliBriIconsProp, KoliBriIconsState } from '../types';\nimport type { Stringified } from '../types/common';\nimport type { WatchOptions } from '../utils';\nimport { objectObjectHandler, parseJson, watchValidator } from '../utils';\nimport { isObject, isString, isStyle } from '../validators';\n\nimport type { AlignPropType } from './align';\n\n/* types */\nexport type IconsPropType = Stringified<KoliBriIconsProp>;\n\n/**\n * Defines the icon classnames.\n */\nexport type PropIcons = {\n\ticons: IconsPropType;\n};\n\n/* validator */\n\nconst mapCustomIcon = (state: KoliBriIconsState, alignment: AlignPropType, icon?: AnyIconFontClass | KoliBriCustomIcon) => {\n\tif (isObject(icon)) {\n\t\tstate[alignment] = icon as KoliBriCustomIcon;\n\t} else if (isString(icon, 1)) {\n\t\tstate[alignment] = {\n\t\t\ticon: icon as AnyIconFontClass,\n\t\t};\n\t}\n};\n\nexport const mapIconProp2State = (icon: KoliBriIconsProp): KoliBriIconsState => {\n\tlet state: KoliBriIconsState = {};\n\tif (isString(icon, 1)) {\n\t\tstate = {\n\t\t\tleft: {\n\t\t\t\ticon: icon as AnyIconFontClass,\n\t\t\t},\n\t\t};\n\t} else if (typeof icon === 'object' && icon !== null) {\n\t\tmapCustomIcon(state, 'top', icon.top);\n\t\tmapCustomIcon(state, 'right', icon.right);\n\t\tmapCustomIcon(state, 'bottom', icon.bottom);\n\t\tmapCustomIcon(state, 'left', icon.left);\n\t}\n\treturn state;\n};\n\nconst beforePatchIcon = (component: Generic.Element.Component): void => {\n\tif (component.nextState?.has('_icons')) {\n\t\tconst icons = component.nextState?.get('_icons') as KoliBriIconsProp;\n\t\tcomponent.nextState?.set('_icons', mapIconProp2State(icons));\n\t}\n};\n\nexport const isIcon = (value?: unknown): boolean =>\n\ttypeof value === 'object' &&\n\tvalue !== null &&\n\t(typeof (value as KoliBriCustomIcon).style === 'undefined' || isStyle((value as KoliBriCustomIcon).style)) &&\n\t(typeof (value as KoliBriCustomIcon).label === 'undefined' || isString((value as KoliBriCustomIcon).label)) &&\n\tisString((value as KoliBriCustomIcon).icon, 1);\n\nexport const validateIcons = (component: Generic.Element.Component, value?: IconsPropType, options: WatchOptions = {}): void => {\n\tobjectObjectHandler(value, () => {\n\t\ttry {\n\t\t\tvalue = parseJson<KoliBriIconsProp>(value as string);\n\t\t} catch (e) {\n\t\t\t// value behält den ursprünglichen Wert\n\t\t}\n\t\twatchValidator(\n\t\t\tcomponent,\n\t\t\t'_icons',\n\t\t\t(value): boolean => {\n\t\t\t\tconst valueIsEmptyObject = typeof value === 'object' && value !== null && Object.keys(value).length === 0;\n\t\t\t\treturn (\n\t\t\t\t\tvalue === null ||\n\t\t\t\t\tvalueIsEmptyObject ||\n\t\t\t\t\tisString(value, 1) ||\n\t\t\t\t\t(typeof value === 'object' &&\n\t\t\t\t\t\tvalue !== null &&\n\t\t\t\t\t\t(isString(value.left, 1) ||\n\t\t\t\t\t\t\tisIcon(value.left) ||\n\t\t\t\t\t\t\tisString(value.right, 1) ||\n\t\t\t\t\t\t\tisIcon(value.right) ||\n\t\t\t\t\t\t\tisString(value.top, 1) ||\n\t\t\t\t\t\t\tisIcon(value.top) ||\n\t\t\t\t\t\t\tisString(value.bottom, 1) ||\n\t\t\t\t\t\t\tisIcon(value.bottom)))\n\t\t\t\t);\n\t\t\t},\n\t\t\tnew Set(['KoliBriIcon']),\n\t\t\tvalue,\n\t\t\t{\n\t\t\t\t...options,\n\t\t\t\tdefaultValue: {},\n\t\t\t\thooks: {\n\t\t\t\t\tafterPatch: options.hooks?.afterPatch,\n\t\t\t\t\tbeforePatch: (nextValue, nextState, component, key) => {\n\t\t\t\t\t\tif (typeof options.hooks?.beforePatch === 'function') {\n\t\t\t\t\t\t\toptions.hooks?.beforePatch(nextValue, nextState, component, key);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbeforePatchIcon(component);\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t);\n\t});\n};\n"],"version":3}
1
+ {"file":"icons-b0b05e20.js","mappings":";;;;;;AAsBA,MAAM,aAAa,GAAG,CAAC,KAAwB,EAAE,SAAwB,EAAE,IAA2C;IAC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AC,CAAC,CAAC,EACvB;SACF,EACD,IAAI,GAAG,CAAC,CAAC,aAAa,CAAC,CAAC,EACxB,KAAK,kCAED,OAAO,KACV,YAAY,EAAE,EAAE,EAChB,KAAK,EAAE;gBACN,UAAU,EAAE,MAAA,OAAO,CAAC,KAAK,0CAAE,UAAU;gBACrC,WAAW,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG;;oBACjD,IAAI,QAAO,MAAA,OAAO,CAAC,KAAK,0CAAE,WAAW,CAAA,KAAK,UAAU,EAAE;wBACrD,MAAA,OAAO,CAAC,KAAK,0CAAE,WAAW,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC;qBACjE;oBACD,eAAe,CAAC,SAAS,CAAC,CAAC;iBAC3B;aACD,IAEF,CAAC;KACF,CAAC,CAAC;AACJ;;;;","names":[],"sources":["src/schema/props/icons.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport type { AnyIconFontClass, KoliBriCustomIcon, KoliBriIconsProp, KoliBriIconsState } from '../types';\nimport type { Stringified } from '../types/common';\nimport type { WatchOptions } from '../utils';\nimport { objectObjectHandler, parseJson, watchValidator } from '../utils';\nimport { isObject, isString, isStyle } from '../validators';\n\nimport type { AlignPropType } from './align';\n\n/* types */\nexport type IconsPropType = Stringified<KoliBriIconsProp>;\n\n/**\n * Defines the icon classnames.\n */\nexport type PropIcons = {\n\ticons: IconsPropType;\n};\n\n/* validator */\n\nconst mapCustomIcon = (state: KoliBriIconsState, alignment: AlignPropType, icon?: AnyIconFontClass | KoliBriCustomIcon) => {\n\tif (isObject(icon)) {\n\t\tstate[alignment] = icon as KoliBriCustomIcon;\n\t} else if (isString(icon, 1)) {\n\t\tstate[alignment] = {\n\t\t\ticon: icon as AnyIconFontClass,\n\t\t};\n\t}\n};\n\nexport const mapIconProp2State = (icon: KoliBriIconsProp): KoliBriIconsState => {\n\tlet state: KoliBriIconsState = {};\n\tif (isString(icon, 1)) {\n\t\tstate = {\n\t\t\tleft: {\n\t\t\t\ticon: icon as AnyIconFontClass,\n\t\t\t},\n\t\t};\n\t} else if (typeof icon === 'object' && icon !== null) {\n\t\tmapCustomIcon(state, 'top', icon.top);\n\t\tmapCustomIcon(state, 'right', icon.right);\n\t\tmapCustomIcon(state, 'bottom', icon.bottom);\n\t\tmapCustomIcon(state, 'left', icon.left);\n\t}\n\treturn state;\n};\n\nconst beforePatchIcon = (component: Generic.Element.Component): void => {\n\tif (component.nextState?.has('_icons')) {\n\t\tconst icons = component.nextState?.get('_icons') as KoliBriIconsProp;\n\t\tcomponent.nextState?.set('_icons', mapIconProp2State(icons));\n\t}\n};\n\nexport const isIcon = (value?: unknown): boolean =>\n\ttypeof value === 'object' &&\n\tvalue !== null &&\n\t(typeof (value as KoliBriCustomIcon).style === 'undefined' || isStyle((value as KoliBriCustomIcon).style)) &&\n\t(typeof (value as KoliBriCustomIcon).label === 'undefined' || isString((value as KoliBriCustomIcon).label)) &&\n\tisString((value as KoliBriCustomIcon).icon, 1);\n\nexport const validateIcons = (component: Generic.Element.Component, value?: IconsPropType, options: WatchOptions = {}): void => {\n\tobjectObjectHandler(value, () => {\n\t\ttry {\n\t\t\tvalue = parseJson<KoliBriIconsProp>(value as string);\n\t\t} catch (e) {\n\t\t\t// value behält den ursprünglichen Wert\n\t\t}\n\t\twatchValidator(\n\t\t\tcomponent,\n\t\t\t'_icons',\n\t\t\t(value): boolean => {\n\t\t\t\tconst valueIsEmptyObject = typeof value === 'object' && value !== null && Object.keys(value).length === 0;\n\t\t\t\treturn (\n\t\t\t\t\tvalue === null ||\n\t\t\t\t\tvalueIsEmptyObject ||\n\t\t\t\t\tisString(value, 1) ||\n\t\t\t\t\t(typeof value === 'object' &&\n\t\t\t\t\t\tvalue !== null &&\n\t\t\t\t\t\t(isString(value.left, 1) ||\n\t\t\t\t\t\t\tisIcon(value.left) ||\n\t\t\t\t\t\t\tisString(value.right, 1) ||\n\t\t\t\t\t\t\tisIcon(value.right) ||\n\t\t\t\t\t\t\tisString(value.top, 1) ||\n\t\t\t\t\t\t\tisIcon(value.top) ||\n\t\t\t\t\t\t\tisString(value.bottom, 1) ||\n\t\t\t\t\t\t\tisIcon(value.bottom)))\n\t\t\t\t);\n\t\t\t},\n\t\t\tnew Set(['KoliBriIcon']),\n\t\t\tvalue,\n\t\t\t{\n\t\t\t\t...options,\n\t\t\t\tdefaultValue: {},\n\t\t\t\thooks: {\n\t\t\t\t\tafterPatch: options.hooks?.afterPatch,\n\t\t\t\t\tbeforePatch: (nextValue, nextState, component, key) => {\n\t\t\t\t\t\tif (typeof options.hooks?.beforePatch === 'function') {\n\t\t\t\t\t\t\toptions.hooks?.beforePatch(nextValue, nextState, component, key);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbeforePatchIcon(component);\n\t\t\t\t\t},\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{i as watchString}from"./prop.validators-f89d26b4.js";const validateImageSource=(a,r,t)=>{watchString(a,"_src",r,t)};export{validateImageSource as v};
4
+ import{i as watchString}from"./prop.validators-5a58fa40.js";const validateImageSource=(a,r,t)=>{watchString(a,"_src",r,t)};export{validateImageSource as v};
@@ -1 +1 @@
1
- {"file":"image-source-c68f09bf.js","mappings":";;;;;MAgBa,mBAAmB,GAAG,CAAC,SAAoC,EAAE,KAA2B,EAAE,OAA4B;IAClI,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;AAChD;;;;","names":[],"sources":["src/schema/props/image-source.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchStringOptions } from '../utils';\nimport { watchString } from '../utils';\n\n/* types */\nexport type ImageSourcePropType = string;\n\n/**\n * Sets the image `src` attribute to the given string.\n */\nexport type PropImageSource = {\n\tsrc: ImageSourcePropType;\n};\n\n/* validator */\nexport const validateImageSource = (component: Generic.Element.Component, value?: ImageSourcePropType, options?: WatchStringOptions): void => {\n\twatchString(component, '_src', value, options);\n};\n"],"version":3}
1
+ {"file":"image-source-87526275.js","mappings":";;;;;MAgBa,mBAAmB,GAAG,CAAC,SAAoC,EAAE,KAA2B,EAAE,OAA4B;IAClI,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;AAChD;;;;","names":[],"sources":["src/schema/props/image-source.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchStringOptions } from '../utils';\nimport { watchString } from '../utils';\n\n/* types */\nexport type ImageSourcePropType = string;\n\n/**\n * Sets the image `src` attribute to the given string.\n */\nexport type PropImageSource = {\n\tsrc: ImageSourcePropType;\n};\n\n/* validator */\nexport const validateImageSource = (component: Generic.Element.Component, value?: ImageSourcePropType, options?: WatchStringOptions): void => {\n\twatchString(component, '_src', value, options);\n};\n"],"version":3}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},loglevel={exports:{}};!function(e){var t,o;t=commonjsGlobal,o=function(){var e=function(){},t="undefined",o=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],s={},r=null;function l(e,t){var o=e[t];if("function"==typeof o.bind)return o.bind(e);try{return Function.prototype.bind.call(o,e)}catch(t){return function(){return Function.prototype.apply.apply(o,[e,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function i(){for(var o=this.getLevel(),s=0;s<n.length;s++){var r=n[s];this[r]=s<o?e:this.methodFactory(r,o,this.name)}if(this.log=this.debug,typeof console===t&&o<this.levels.SILENT)return"No console available for logging"}function c(e){return function(){typeof console!==t&&(i.call(this),this[e].apply(this,arguments))}}function T(n,s,r){return function(n){return"debug"===n&&(n="log"),typeof console!==t&&("trace"===n&&o?a:void 0!==console[n]?l(console,n):void 0!==console.log?l(console,"log"):e)}(n)||c.apply(this,arguments)}function h(e,o){var l,a,c,h=this,y="loglevel";function m(){var e;if(typeof window!==t&&y){try{e=window.localStorage[y]}catch(e){}if(typeof e===t)try{var o=window.document.cookie,n=encodeURIComponent(y),s=o.indexOf(n+"=");-1!==s&&(e=/^([^;]+)/.exec(o.slice(s+n.length+1))[1])}catch(e){}return void 0===h.levels[e]&&(e=void 0),e}}function f(e){var t=e;if("string"==typeof t&&void 0!==h.levels[t.toUpperCase()]&&(t=h.levels[t.toUpperCase()]),"number"==typeof t&&t>=0&&t<=h.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?y+=":"+e:"symbol"==typeof e&&(y=void 0),h.name=e,h.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},h.methodFactory=o||T,h.getLevel=function(){return null!=c?c:null!=a?a:l},h.setLevel=function(e,o){return c=f(e),!1!==o&&function(e){var o=(n[e]||"silent").toUpperCase();if(typeof window!==t&&y){try{return void(window.localStorage[y]=o)}catch(e){}try{window.document.cookie=encodeURIComponent(y)+"="+o+";"}catch(e){}}}(c),i.call(h)},h.setDefaultLevel=function(e){a=f(e),m()||h.setLevel(e,!1)},h.resetLevel=function(){c=null,function(){if(typeof window!==t&&y){try{window.localStorage.removeItem(y)}catch(e){}try{window.document.cookie=encodeURIComponent(y)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),i.call(h)},h.enableAll=function(e){h.setLevel(h.levels.TRACE,e)},h.disableAll=function(e){h.setLevel(h.levels.SILENT,e)},h.rebuild=function(){if(r!==h&&(l=f(r.getLevel())),i.call(h),r===h)for(var e in s)s[e].rebuild()},l=f(r?r.getLevel():"WARN");var d=m();null!=d&&(c=f(d)),i.call(h)}(r=new h).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=s[e];return t||(t=s[e]=new h(e,r.methodFactory)),t};var y=typeof window!==t?window.log:void 0;return r.noConflict=function(){return typeof window!==t&&window.log===r&&(window.log=y),r},r.getLoggers=function(){return s},r.default=r,r},e.exports?e.exports=o():t.log=o()}(loglevel);const log=loglevel.exports,createTranslation=(e,t)=>o=>o(e,t),createTheme=(e,t)=>o=>o(e,t,{append:!1}),STORE={};let lockThemePatching=!0,warrentyWarning=!1;const THEME_NAME_PATTERN=/^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/,isThemeNameValid=e=>"string"==typeof e&&THEME_NAME_PATTERN.test(e),validateThemeName=e=>{if(!1===isThemeNameValid(e))throw new Error(`[Theming] The theme identifier "${"string"==typeof e?e:""}" (Type: ${typeof e}) is not valid. Please use only follow this pattern: /^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/`)},patchThemeTag=(e,t,o,n)=>setThemeTag(e,t,o,n),setThemeTag=(e,t,o,n)=>{(n=n??{}).append=n.append??!1,validateThemeName(e),!0===lockThemePatching&&!1===warrentyWarning&&(warrentyWarning=!0,log.warn(`[Theming] The theme process is locked. This means that the theme "${e}" should not be patched.\n\n\timport { register } from 'adopted-style-sheets';\n\timport { defineCustomElements } from '...';\n\timport { THEME } from '...';\n\n\tregister(THEME, defineCustomElements)\n\t.then(() => {\n\t\t// run your app or website\n\t})\n\t.catch(console.warn);`)),"object"==typeof STORE.A11yUi&&null!==STORE.A11yUi||(STORE.A11yUi={}),"object"!=typeof STORE.A11yUi||null===STORE.A11yUi||"object"==typeof STORE.A11yUi.Themes&&null!==STORE.A11yUi.Themes||(STORE.A11yUi.Themes={}),"object"!=typeof STORE.A11yUi||null===STORE.A11yUi||"object"!=typeof STORE.A11yUi.Themes||null===STORE.A11yUi.Themes||"object"==typeof STORE.A11yUi.Themes[e]&&null!==STORE.A11yUi.Themes[e]||(STORE.A11yUi.Themes[e]={}),"object"==typeof STORE.A11yUi&&null!==STORE.A11yUi&&"object"==typeof STORE.A11yUi.Themes&&null!==STORE.A11yUi.Themes&&"object"==typeof STORE.A11yUi.Themes[e]&&null!==STORE.A11yUi.Themes[e]&&(n.append&&"string"==typeof STORE.A11yUi.Themes[e][t]?STORE.A11yUi.Themes[e][t]+=o:STORE.A11yUi.Themes[e][t]=o)},patchTheme=(e,t,o,n)=>setTheme(e,t,o,n),setTheme=(e,t,o,n)=>{if(validateThemeName(e),"object"==typeof t&&null!==t){Object.getOwnPropertyNames(t).forEach((s=>{const r=t[s],l=s.toLowerCase(),a="function"!=typeof n?.transformTagName||["GLOBAL","PROPERTIES"].includes(s)?s:n.transformTagName(l);"string"==typeof r&&r.length>0&&setThemeTag(e,a.toUpperCase(),r,o)}))}return e},getThemeNode=e=>{if(e instanceof HTMLElement){if("string"==typeof e.dataset.theme)return e;{let t=e.parentNode;for(;t instanceof ShadowRoot;)t=t.host;return getThemeNode(t)}}return null},getEncroachCss=(e={})=>"false"!==e.themeEncroachCss&&"true"!==e.themeReset&&{mode:"after"===e.themeEncroachCssMode||"before"===e.themeEncroachCssMode?e.themeEncroachCssMode:"before"},isTheCurrentThemeConfigValid=()=>"object"==typeof STORE.A11yUi&&null!==STORE.A11yUi&&"object"==typeof STORE.A11yUi.Theme&&null!==STORE.A11yUi.Theme&&"boolean"==typeof STORE.A11yUi.Theme.cache&&"object"==typeof STORE.A11yUi.Theme.encroachCss&&null!==STORE.A11yUi.Theme.encroachCss&&"string"==typeof STORE.A11yUi.Theme.encroachCss.mode&&"string"==typeof STORE.A11yUi.Theme.name,isTheCurrentThemeNotDefault=()=>!1==("object"==typeof STORE.A11yUi&&null!==STORE.A11yUi)||!1==("object"==typeof STORE.A11yUi.Theme&&null!==STORE.A11yUi.Theme)||"default"!==STORE.A11yUi.Theme.name,getThemeDetails=e=>{if(isTheCurrentThemeConfigValid())return STORE.A11yUi.Theme;{const t={cache:!0,encroachCss:getEncroachCss(),loglevel:"silent",name:null},o=getThemeNode(e);return o instanceof HTMLElement&&(t.cache="false"!==o.dataset.themeCache,t.encroachCss=getEncroachCss(o.dataset),t.loglevel="debug"===o.dataset.themeLoglevel?o.dataset.themeLoglevel:"silent",t.name=o.dataset.theme||null),t}},getThemeOptionDefaults=(e,t)=>({cache:!1!==t.cache,detect:"auto"===t.detect?"auto":"fixed",encroachCss:!1!==t.encroachCss&&("object"!=typeof t.encroachCss||null==t.encroachCss||"after"!==t.encroachCss.mode&&"before"!==t.encroachCss.mode?{mode:"before"}:t.encroachCss),loglevel:"debug"===t.loglevel?t.loglevel:"silent",name:"string"==typeof t.name?t.name:e}),setConfigureTheme=(e,t)=>{!1===isTheCurrentThemeConfigValid()&&isTheCurrentThemeNotDefault()&&"object"==typeof t&&null!==t&&("fixed"===(t=getThemeOptionDefaults(e,t)).detect?(null===t.name&&"string"==typeof e&&(t.name=e),e===t.name&&("object"==typeof STORE.A11yUi&&null!==STORE.A11yUi||(STORE.A11yUi={}),STORE.A11yUi.Theme=t,log.info(`[Theming] Theme "${e}" was set as default theme.`))):log.warn("[Theming] The presetting of theme options is only relevant by using 'fixed' detection mode."))};let registered=!1;const register=(e,t,o={})=>{!1===registered&&(registered=!0,lockThemePatching=!1),"function"==typeof e?e=new Set([e]):Array.isArray(e)&&(e=new Set(e)),e instanceof Set&&e.forEach((e=>{"function"==typeof e&&1===e.length?setConfigureTheme(e(((e,t,n)=>setTheme(e,t,n,o))),{cache:o.theme?.cache,detect:o.theme?.detect,encroachCss:o.theme?.encroachCss,name:o.theme?.name}):log.error("[Theming] Es wurde versucht eine nicht kompatibles Theme zu laden.")})),lockThemePatching=!0,"function"==typeof t?t=new Set([t]):Array.isArray(t)&&(t=new Set(t));const n=[];return t.forEach((e=>{const t=e();t instanceof Promise&&n.push(t)})),Promise.all(n)},STYLING_TASK_QUEUE=new Map,HYDRATED_HISTORY=[],CSS_PROPERTIES_REGISTERED=new Set,CSS_STYLE_CACHE=new Map,REGEX_CSS_PROPERTIES=/--[^;]+/g,REGEX_SPLIT_CSS_PROPERTY=/:/;"object"==typeof STORE.A11yUi&&null!==STORE.A11yUi||(STORE.A11yUi={CSS_STYLE_CACHE:CSS_STYLE_CACHE,HYDRATED_HISTORY:HYDRATED_HISTORY,STYLING_TASK_QUEUE:STYLING_TASK_QUEUE});const extractProperties=(e,t)=>{let o=t.match(REGEX_CSS_PROPERTIES);if(Array.isArray(o)){o=o.filter((e=>REGEX_SPLIT_CSS_PROPERTY.test(e)));const t=document.createElement("style");t.innerHTML=`.${e} {${o.join(";")}}`,document.querySelector("head")?.appendChild(t)}CSS_PROPERTIES_REGISTERED.add(e)},getCssStyle=(e,t)=>"object"==typeof STORE.A11yUi&&null!==STORE.A11yUi&&"object"==typeof STORE.A11yUi.Themes&&null!==STORE.A11yUi.Themes&&"object"==typeof STORE.A11yUi.Themes[e]&&null!==STORE.A11yUi.Themes[e]&&"string"==typeof STORE.A11yUi.Themes[e][t]?STORE.A11yUi.Themes[e][t].replace(/\r?\n/g,""):"",removeStyle=e=>{for(const t of Array.from(e.childNodes)){if(!(t instanceof HTMLStyleElement&&"STYLE"===t.tagName))break;e.removeChild(t)}},patchStyle=(e,t)=>{try{const o=[];t.forEach((e=>{const t=new CSSStyleSheet;t.replaceSync(e),o.push(t)})),e.adoptedStyleSheets=o}catch(o){t.reverse().forEach((t=>{const o=document.createElement("style");o.innerHTML=t,e.insertBefore(o,e.firstChild)}))}},encroachStyles=(e,t,o)=>{if(!1!==o){const n=[...Array.from(e.childNodes).filter((e=>e instanceof HTMLStyleElement&&"STYLE"===e.tagName))];let s;try{s=[...Array.from(e.adoptedStyleSheets)]}catch(e){s=[]}"before"===o?.mode?(n.reverse().forEach((e=>t.unshift(e.innerHTML))),s.reverse().forEach((e=>t.unshift(Array.from(e.cssRules).map((e=>e.cssText)).join(""))))):"after"===o?.mode&&(n.forEach((e=>t.push(e.innerHTML))),s.forEach((e=>t.push(Array.from(e.cssRules).map((e=>e.cssText)).join("")))))}},setThemeStyleAfterHydrated=(e,t,o)=>{const n=t.name||"default";let s;try{if(null===e.shadowRoot)throw new Error("ShadowRoot is null");s=e.shadowRoot}catch(t){s=e}if(CSS_STYLE_CACHE.get(n)?.has(e.tagName))switchStyle(e,s,CSS_STYLE_CACHE.get(n)?.get(e.tagName),o);else{const r=getCssStyle(n,"PROPERTIES"),l=getCssStyle(n,"GLOBAL"),a=getCssStyle(n,e.tagName);!1===CSS_PROPERTIES_REGISTERED.has(n)&&extractProperties(n,l);const i=[r,l,a];encroachStyles(s,i,t.encroachCss),"debug"===t.loglevel&&console.log(e.tagName,i),!0===t.cache&&(!1===CSS_STYLE_CACHE.has(n)&&CSS_STYLE_CACHE.set(n,new Map),CSS_STYLE_CACHE.get(n)?.set(e.tagName,i)),switchStyle(e,s,i,o)}},switchStyle=(e,t,o,n)=>{removeStyle(t),patchStyle(t,o),e.style.display=n},logHydratedHistory=e=>{"debug"===e.loglevel&&HYDRATED_HISTORY.push({timestamp:Date.now(),numberOfTasks:STYLING_TASK_QUEUE.size})},pushToDoTask=(e,t)=>{STYLING_TASK_QUEUE.set(e,{styleDisplay:e.style.display?`${e.style.display}`:null,themeDetails:t})},loggedPushToDoTask=(e,t)=>{pushToDoTask(e,t),logHydratedHistory(t)},deleteDoneTask=e=>{STYLING_TASK_QUEUE.delete(e)},loggedDeleteDoneTask=(e,t)=>{deleteDoneTask(e),logHydratedHistory(t)},waitForHydrated=e=>{const t=setTimeout((()=>{if(clearTimeout(t),STYLING_TASK_QUEUE.has(e)&&e.classList.contains("hydrated")){const{styleDisplay:t,themeDetails:o}=STYLING_TASK_QUEUE.get(e);setThemeStyleAfterHydrated(e,o,t),loggedDeleteDoneTask(e,o)}else waitForHydrated(e)}),25)},observerCallback=e=>{for(const t of e)if(STYLING_TASK_QUEUE.has(t.target)&&t.target.classList.contains("hydrated")){const{styleDisplay:e,themeDetails:o}=STYLING_TASK_QUEUE.get(t.target);setThemeStyleAfterHydrated(t.target,o,e),loggedDeleteDoneTask(t.target,o)}},observerOptions={attributes:!0,attributeFilter:["class"],childList:!1,subtree:!1};let observer;try{observer=new MutationObserver(observerCallback)}catch(e){observer=null}const setThemeStyle=(e,t)=>{loggedPushToDoTask(e,t),observer?observer.observe(e,observerOptions):waitForHydrated(e),e.style.display="none"};class Theme{constructor(e,t,o){this.createTheme=(e,t)=>createTheme(e,t),this.createTranslation=(e,t)=>createTranslation(e,t),this.Prefix=e,this.Key=Object.getOwnPropertyNames(t),this.Tag=Object.getOwnPropertyNames(o)}}export{Theme as T,getCssStyle as a,patchThemeTag as b,getThemeDetails as g,patchTheme as p,register as r,setThemeStyle as s};