@public-ui/components 2.1.4-alpha.1 → 2.1.4

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 (467) hide show
  1. package/custom-elements.json +216 -32
  2. package/dist/cjs/{InternalUnderlinedAccessKey-9908abb2.js → InternalUnderlinedAccessKey-03d810c0.js} +1 -1
  3. package/dist/cjs/{InternalUnderlinedAccessKey-9908abb2.js.map → InternalUnderlinedAccessKey-03d810c0.js.map} +1 -1
  4. package/dist/cjs/{app-globals-22aa54ed.js → app-globals-8ec1aa7e.js} +1 -1
  5. package/dist/cjs/{app-globals-22aa54ed.js.map → app-globals-8ec1aa7e.js.map} +1 -1
  6. package/dist/cjs/{dev.utils-cf2db529.js → dev.utils-ea52f01d.js} +1 -1
  7. package/dist/cjs/{dev.utils-cf2db529.js.map → dev.utils-ea52f01d.js.map} +1 -1
  8. package/dist/cjs/{devtools-05c27e74.js → devtools-23786135.js} +1 -1
  9. package/dist/cjs/{devtools-05c27e74.js.map → devtools-23786135.js.map} +1 -1
  10. package/dist/cjs/{form-field-msg-74092e71.js → form-field-msg-72f38184.js} +1 -1
  11. package/dist/cjs/{form-field-msg-74092e71.js.map → form-field-msg-72f38184.js.map} +1 -1
  12. package/dist/cjs/index-1069403a.js +4 -0
  13. package/dist/cjs/index-1069403a.js.map +1 -0
  14. package/dist/cjs/index.cjs.js.map +1 -1
  15. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  16. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  17. package/dist/cjs/kol-accordion.cjs.entry.js.map +1 -1
  18. package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
  19. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  20. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  21. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  22. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  23. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  24. package/dist/cjs/kol-button-group-wc.cjs.entry.js +1 -1
  25. package/dist/cjs/kol-button-group.cjs.entry.js +1 -1
  26. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  27. package/dist/cjs/kol-button-link.cjs.entry.js.map +1 -1
  28. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  29. package/dist/cjs/kol-button-wc.cjs.entry.js.map +1 -1
  30. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  31. package/dist/cjs/kol-button.cjs.entry.js.map +1 -1
  32. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  33. package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
  34. package/dist/cjs/kol-combobox.cjs.entry.js.map +1 -1
  35. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  36. package/dist/cjs/kol-details.cjs.entry.js.map +1 -1
  37. package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
  38. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  39. package/dist/cjs/kol-heading-wc.cjs.entry.js +1 -1
  40. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  41. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  42. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  43. package/dist/cjs/kol-indented-text.cjs.entry.js +1 -1
  44. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  45. package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
  46. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  47. package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
  48. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  49. package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
  50. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  51. package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
  52. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  53. package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
  54. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  55. package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
  56. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  57. package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
  58. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  59. package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
  60. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  61. package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
  62. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  63. package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
  64. package/dist/cjs/kol-input.cjs.entry.js +1 -1
  65. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  66. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  67. package/dist/cjs/kol-link-button.cjs.entry.js.map +1 -1
  68. package/dist/cjs/kol-link-group.cjs.entry.js +1 -1
  69. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-link-wc.cjs.entry.js.map +1 -1
  71. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-link.cjs.entry.js.map +1 -1
  73. package/dist/cjs/kol-logo.cjs.entry.js +1 -1
  74. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  75. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  77. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  78. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  79. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  80. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  81. package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
  82. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-span-wc.cjs.entry.js +1 -1
  84. package/dist/cjs/kol-span.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  86. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  87. package/dist/cjs/kol-symbol.cjs.entry.js +1 -1
  88. package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
  89. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
  90. package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
  91. package/dist/cjs/kol-table.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  93. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  94. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  95. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  96. package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
  97. package/dist/cjs/kol-toolbar.cjs.entry.js.map +1 -1
  98. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  99. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
  100. package/dist/cjs/kol-tree-item-wc.cjs.entry.js.map +1 -1
  101. package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
  102. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  103. package/dist/cjs/kol-tree.cjs.entry.js +1 -1
  104. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  105. package/dist/cjs/kolibri.cjs.js +1 -1
  106. package/dist/cjs/loader.cjs.js +1 -1
  107. package/dist/components/events2.js +1 -1
  108. package/dist/components/icons.js +1 -1
  109. package/dist/components/index.js.map +1 -1
  110. package/dist/components/kol-accordion.js +1 -1
  111. package/dist/components/kol-accordion.js.map +1 -1
  112. package/dist/components/kol-button-link.js +1 -1
  113. package/dist/components/kol-button-link.js.map +1 -1
  114. package/dist/components/kol-button-wc.js +1 -1
  115. package/dist/components/kol-button-wc.js.map +1 -1
  116. package/dist/components/kol-button.js +1 -1
  117. package/dist/components/kol-button.js.map +1 -1
  118. package/dist/components/kol-combobox.js +1 -1
  119. package/dist/components/kol-combobox.js.map +1 -1
  120. package/dist/components/kol-details.js +1 -1
  121. package/dist/components/kol-details.js.map +1 -1
  122. package/dist/components/kol-input-checkbox.js +1 -1
  123. package/dist/components/kol-input-checkbox.js.map +1 -1
  124. package/dist/components/kol-input-color.js +1 -1
  125. package/dist/components/kol-input-color.js.map +1 -1
  126. package/dist/components/kol-input-date.js +1 -1
  127. package/dist/components/kol-input-date.js.map +1 -1
  128. package/dist/components/kol-input-email.js +1 -1
  129. package/dist/components/kol-input-email.js.map +1 -1
  130. package/dist/components/kol-input-file.js +1 -1
  131. package/dist/components/kol-input-file.js.map +1 -1
  132. package/dist/components/kol-input-number.js +1 -1
  133. package/dist/components/kol-input-number.js.map +1 -1
  134. package/dist/components/kol-input-password.js +1 -1
  135. package/dist/components/kol-input-password.js.map +1 -1
  136. package/dist/components/kol-input-radio.js +1 -1
  137. package/dist/components/kol-input-radio.js.map +1 -1
  138. package/dist/components/kol-input-range.js +1 -1
  139. package/dist/components/kol-input-range.js.map +1 -1
  140. package/dist/components/kol-input-text.js +1 -1
  141. package/dist/components/kol-input-text.js.map +1 -1
  142. package/dist/components/kol-link-button.js +1 -1
  143. package/dist/components/kol-link-button.js.map +1 -1
  144. package/dist/components/kol-link-wc.js +1 -1
  145. package/dist/components/kol-link-wc.js.map +1 -1
  146. package/dist/components/kol-link.js +1 -1
  147. package/dist/components/kol-link.js.map +1 -1
  148. package/dist/components/kol-select.js +1 -1
  149. package/dist/components/kol-select.js.map +1 -1
  150. package/dist/components/kol-textarea.js +1 -1
  151. package/dist/components/kol-textarea.js.map +1 -1
  152. package/dist/components/kol-toolbar.js +1 -1
  153. package/dist/components/kol-toolbar.js.map +1 -1
  154. package/dist/components/kol-tree-item-wc.js +1 -1
  155. package/dist/components/kol-tree-item-wc.js.map +1 -1
  156. package/dist/components/reuse.js +1 -1
  157. package/dist/esm/{InternalUnderlinedAccessKey-fd8927df.js → InternalUnderlinedAccessKey-4607eee7.js} +1 -1
  158. package/dist/esm/{InternalUnderlinedAccessKey-fd8927df.js.map → InternalUnderlinedAccessKey-4607eee7.js.map} +1 -1
  159. package/dist/esm/{align-floating-elements-9f85ac8b.js → align-floating-elements-e596c0fa.js} +1 -1
  160. package/dist/esm/{align-floating-elements-9f85ac8b.js.map → align-floating-elements-e596c0fa.js.map} +1 -1
  161. package/dist/esm/{app-globals-94e8e6c8.js → app-globals-703ac18d.js} +1 -1
  162. package/dist/esm/{app-globals-94e8e6c8.js.map → app-globals-703ac18d.js.map} +1 -1
  163. package/dist/esm/{controller-cc7e4e3f.js → controller-13997e91.js} +1 -1
  164. package/dist/esm/{controller-cc7e4e3f.js.map → controller-13997e91.js.map} +1 -1
  165. package/dist/esm/{controller-cbe5ff75.js → controller-618eff75.js} +1 -1
  166. package/dist/esm/{controller-cbe5ff75.js.map → controller-618eff75.js.map} +1 -1
  167. package/dist/esm/{controller-icon-b6046f95.js → controller-icon-1fda7e70.js} +1 -1
  168. package/dist/esm/{controller-icon-b6046f95.js.map → controller-icon-1fda7e70.js.map} +1 -1
  169. package/dist/esm/{dev.utils-a14ff412.js → dev.utils-d751d0cd.js} +1 -1
  170. package/dist/esm/{dev.utils-a14ff412.js.map → dev.utils-d751d0cd.js.map} +1 -1
  171. package/dist/esm/{devtools-38b004b8.js → devtools-6b1e2c90.js} +1 -1
  172. package/dist/esm/{devtools-38b004b8.js.map → devtools-6b1e2c90.js.map} +1 -1
  173. package/dist/esm/{events-ba948f16.js → events-2b67c17a.js} +1 -1
  174. package/dist/esm/{events-ba948f16.js.map → events-2b67c17a.js.map} +1 -1
  175. package/dist/esm/{form-field-msg-c7c48d5a.js → form-field-msg-60b6ca7c.js} +1 -1
  176. package/dist/esm/{form-field-msg-c7c48d5a.js.map → form-field-msg-60b6ca7c.js.map} +1 -1
  177. package/dist/esm/{i18n-112381e9.js → i18n-2cbb513e.js} +1 -1
  178. package/dist/esm/{i18n-112381e9.js.map → i18n-2cbb513e.js.map} +1 -1
  179. package/dist/esm/{icons-e32ba753.js → icons-05788852.js} +1 -1
  180. package/dist/esm/{icons-e32ba753.js.map → icons-05788852.js.map} +1 -1
  181. package/dist/esm/index-b5e5a1b4.js +4 -0
  182. package/dist/esm/index-b5e5a1b4.js.map +1 -0
  183. package/dist/esm/index.js.map +1 -1
  184. package/dist/esm/kol-abbr.entry.js +1 -1
  185. package/dist/esm/kol-accordion.entry.js +1 -1
  186. package/dist/esm/kol-accordion.entry.js.map +1 -1
  187. package/dist/esm/kol-alert-wc.entry.js +1 -1
  188. package/dist/esm/kol-alert.entry.js +1 -1
  189. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  190. package/dist/esm/kol-avatar.entry.js +1 -1
  191. package/dist/esm/kol-badge.entry.js +1 -1
  192. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  193. package/dist/esm/kol-button-group-wc.entry.js +1 -1
  194. package/dist/esm/kol-button-group.entry.js +1 -1
  195. package/dist/esm/kol-button-link.entry.js +1 -1
  196. package/dist/esm/kol-button-link.entry.js.map +1 -1
  197. package/dist/esm/kol-button-wc.entry.js +1 -1
  198. package/dist/esm/kol-button-wc.entry.js.map +1 -1
  199. package/dist/esm/kol-button.entry.js +1 -1
  200. package/dist/esm/kol-button.entry.js.map +1 -1
  201. package/dist/esm/kol-card.entry.js +1 -1
  202. package/dist/esm/kol-combobox.entry.js +1 -1
  203. package/dist/esm/kol-combobox.entry.js.map +1 -1
  204. package/dist/esm/kol-details.entry.js +1 -1
  205. package/dist/esm/kol-details.entry.js.map +1 -1
  206. package/dist/esm/kol-drawer.entry.js +1 -1
  207. package/dist/esm/kol-form.entry.js +1 -1
  208. package/dist/esm/kol-heading-wc.entry.js +1 -1
  209. package/dist/esm/kol-heading.entry.js +1 -1
  210. package/dist/esm/kol-icon.entry.js +1 -1
  211. package/dist/esm/kol-image.entry.js +1 -1
  212. package/dist/esm/kol-indented-text.entry.js +1 -1
  213. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  214. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  215. package/dist/esm/kol-input-color.entry.js +1 -1
  216. package/dist/esm/kol-input-color.entry.js.map +1 -1
  217. package/dist/esm/kol-input-date.entry.js +1 -1
  218. package/dist/esm/kol-input-date.entry.js.map +1 -1
  219. package/dist/esm/kol-input-email.entry.js +1 -1
  220. package/dist/esm/kol-input-email.entry.js.map +1 -1
  221. package/dist/esm/kol-input-file.entry.js +1 -1
  222. package/dist/esm/kol-input-file.entry.js.map +1 -1
  223. package/dist/esm/kol-input-number.entry.js +1 -1
  224. package/dist/esm/kol-input-number.entry.js.map +1 -1
  225. package/dist/esm/kol-input-password.entry.js +1 -1
  226. package/dist/esm/kol-input-password.entry.js.map +1 -1
  227. package/dist/esm/kol-input-radio.entry.js +1 -1
  228. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  229. package/dist/esm/kol-input-range.entry.js +1 -1
  230. package/dist/esm/kol-input-range.entry.js.map +1 -1
  231. package/dist/esm/kol-input-text.entry.js +1 -1
  232. package/dist/esm/kol-input-text.entry.js.map +1 -1
  233. package/dist/esm/kol-input.entry.js +1 -1
  234. package/dist/esm/kol-kolibri.entry.js +1 -1
  235. package/dist/esm/kol-link-button.entry.js +1 -1
  236. package/dist/esm/kol-link-button.entry.js.map +1 -1
  237. package/dist/esm/kol-link-group.entry.js +1 -1
  238. package/dist/esm/kol-link-wc.entry.js +1 -1
  239. package/dist/esm/kol-link-wc.entry.js.map +1 -1
  240. package/dist/esm/kol-link.entry.js +1 -1
  241. package/dist/esm/kol-link.entry.js.map +1 -1
  242. package/dist/esm/kol-logo.entry.js +1 -1
  243. package/dist/esm/kol-modal.entry.js +1 -1
  244. package/dist/esm/kol-nav.entry.js +1 -1
  245. package/dist/esm/kol-pagination.entry.js +1 -1
  246. package/dist/esm/kol-popover-wc.entry.js +1 -1
  247. package/dist/esm/kol-progress.entry.js +1 -1
  248. package/dist/esm/kol-quote.entry.js +1 -1
  249. package/dist/esm/kol-select.entry.js +1 -1
  250. package/dist/esm/kol-select.entry.js.map +1 -1
  251. package/dist/esm/kol-skip-nav.entry.js +1 -1
  252. package/dist/esm/kol-span-wc.entry.js +1 -1
  253. package/dist/esm/kol-span.entry.js +1 -1
  254. package/dist/esm/kol-spin.entry.js +1 -1
  255. package/dist/esm/kol-split-button.entry.js +1 -1
  256. package/dist/esm/kol-symbol.entry.js +1 -1
  257. package/dist/esm/kol-table-stateful.entry.js +1 -1
  258. package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
  259. package/dist/esm/kol-table-stateless.entry.js +1 -1
  260. package/dist/esm/kol-table.entry.js +1 -1
  261. package/dist/esm/kol-tabs.entry.js +1 -1
  262. package/dist/esm/kol-textarea.entry.js +1 -1
  263. package/dist/esm/kol-textarea.entry.js.map +1 -1
  264. package/dist/esm/kol-toast-container.entry.js +1 -1
  265. package/dist/esm/kol-toolbar.entry.js +1 -1
  266. package/dist/esm/kol-toolbar.entry.js.map +1 -1
  267. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  268. package/dist/esm/kol-tree-item-wc.entry.js +1 -1
  269. package/dist/esm/kol-tree-item-wc.entry.js.map +1 -1
  270. package/dist/esm/kol-tree-item.entry.js +1 -1
  271. package/dist/esm/kol-tree-wc.entry.js +1 -1
  272. package/dist/esm/kol-tree.entry.js +1 -1
  273. package/dist/esm/kol-version.entry.js +1 -1
  274. package/dist/esm/kolibri.js +1 -1
  275. package/dist/esm/loader.js +1 -1
  276. package/dist/esm/{reuse-b66836de.js → reuse-108ee8f5.js} +1 -1
  277. package/dist/esm/{reuse-b66836de.js.map → reuse-108ee8f5.js.map} +1 -1
  278. package/dist/kolibri/InternalUnderlinedAccessKey-4607eee7.js +4 -0
  279. package/dist/kolibri/{align-floating-elements-9f85ac8b.js → align-floating-elements-e596c0fa.js} +1 -1
  280. package/dist/kolibri/{app-globals-94e8e6c8.js → app-globals-703ac18d.js} +1 -1
  281. package/dist/kolibri/{controller-cc7e4e3f.js → controller-13997e91.js} +1 -1
  282. package/dist/kolibri/{controller-cbe5ff75.js → controller-618eff75.js} +1 -1
  283. package/dist/kolibri/{controller-icon-b6046f95.js → controller-icon-1fda7e70.js} +1 -1
  284. package/dist/kolibri/{dev.utils-a14ff412.js → dev.utils-d751d0cd.js} +1 -1
  285. package/dist/kolibri/{devtools-38b004b8.js → devtools-6b1e2c90.js} +1 -1
  286. package/dist/kolibri/{events-ba948f16.js → events-2b67c17a.js} +1 -1
  287. package/dist/kolibri/{form-field-msg-c7c48d5a.js → form-field-msg-60b6ca7c.js} +1 -1
  288. package/dist/kolibri/i18n-2cbb513e.js +4 -0
  289. package/dist/kolibri/{icons-e32ba753.js → icons-05788852.js} +1 -1
  290. package/dist/kolibri/index-b5e5a1b4.js +5 -0
  291. package/dist/kolibri/index-b5e5a1b4.js.map +1 -0
  292. package/dist/kolibri/index.esm.js.map +1 -1
  293. package/dist/kolibri/kol-abbr.entry.js +1 -1
  294. package/dist/kolibri/kol-accordion.entry.js +1 -1
  295. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  296. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  297. package/dist/kolibri/kol-alert.entry.js +1 -1
  298. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  299. package/dist/kolibri/kol-avatar.entry.js +1 -1
  300. package/dist/kolibri/kol-badge.entry.js +1 -1
  301. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  302. package/dist/kolibri/kol-button-group-wc.entry.js +1 -1
  303. package/dist/kolibri/kol-button-group.entry.js +1 -1
  304. package/dist/kolibri/kol-button-link.entry.js +1 -1
  305. package/dist/kolibri/kol-button-link.entry.js.map +1 -1
  306. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  307. package/dist/kolibri/kol-button-wc.entry.js.map +1 -1
  308. package/dist/kolibri/kol-button.entry.js +1 -1
  309. package/dist/kolibri/kol-button.entry.js.map +1 -1
  310. package/dist/kolibri/kol-card.entry.js +1 -1
  311. package/dist/kolibri/kol-combobox.entry.js +1 -1
  312. package/dist/kolibri/kol-combobox.entry.js.map +1 -1
  313. package/dist/kolibri/kol-details.entry.js +1 -1
  314. package/dist/kolibri/kol-details.entry.js.map +1 -1
  315. package/dist/kolibri/kol-drawer.entry.js +1 -1
  316. package/dist/kolibri/kol-form.entry.js +1 -1
  317. package/dist/kolibri/kol-heading-wc.entry.js +1 -1
  318. package/dist/kolibri/kol-heading.entry.js +1 -1
  319. package/dist/kolibri/kol-icon.entry.js +1 -1
  320. package/dist/kolibri/kol-image.entry.js +1 -1
  321. package/dist/kolibri/kol-indented-text.entry.js +1 -1
  322. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  323. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  324. package/dist/kolibri/kol-input-color.entry.js +1 -1
  325. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  326. package/dist/kolibri/kol-input-date.entry.js +1 -1
  327. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  328. package/dist/kolibri/kol-input-email.entry.js +1 -1
  329. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  330. package/dist/kolibri/kol-input-file.entry.js +1 -1
  331. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  332. package/dist/kolibri/kol-input-number.entry.js +1 -1
  333. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  334. package/dist/kolibri/kol-input-password.entry.js +1 -1
  335. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  336. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  337. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  338. package/dist/kolibri/kol-input-range.entry.js +1 -1
  339. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  340. package/dist/kolibri/kol-input-text.entry.js +1 -1
  341. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  342. package/dist/kolibri/kol-input.entry.js +1 -1
  343. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  344. package/dist/kolibri/kol-link-button.entry.js +1 -1
  345. package/dist/kolibri/kol-link-button.entry.js.map +1 -1
  346. package/dist/kolibri/kol-link-group.entry.js +1 -1
  347. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  348. package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
  349. package/dist/kolibri/kol-link.entry.js +1 -1
  350. package/dist/kolibri/kol-link.entry.js.map +1 -1
  351. package/dist/kolibri/kol-logo.entry.js +1 -1
  352. package/dist/kolibri/kol-modal.entry.js +1 -1
  353. package/dist/kolibri/kol-nav.entry.js +1 -1
  354. package/dist/kolibri/kol-pagination.entry.js +1 -1
  355. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  356. package/dist/kolibri/kol-progress.entry.js +1 -1
  357. package/dist/kolibri/kol-quote.entry.js +1 -1
  358. package/dist/kolibri/kol-select.entry.js +1 -1
  359. package/dist/kolibri/kol-select.entry.js.map +1 -1
  360. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  361. package/dist/kolibri/kol-span-wc.entry.js +1 -1
  362. package/dist/kolibri/kol-span.entry.js +1 -1
  363. package/dist/kolibri/kol-spin.entry.js +1 -1
  364. package/dist/kolibri/kol-split-button.entry.js +1 -1
  365. package/dist/kolibri/kol-symbol.entry.js +1 -1
  366. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  367. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  368. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  369. package/dist/kolibri/kol-table.entry.js +1 -1
  370. package/dist/kolibri/kol-tabs.entry.js +1 -1
  371. package/dist/kolibri/kol-textarea.entry.js +1 -1
  372. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  373. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  374. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  375. package/dist/kolibri/kol-toolbar.entry.js.map +1 -1
  376. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  377. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  378. package/dist/kolibri/kol-tree-item-wc.entry.js.map +1 -1
  379. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  380. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  381. package/dist/kolibri/kol-tree.entry.js +1 -1
  382. package/dist/kolibri/kol-version.entry.js +1 -1
  383. package/dist/kolibri/kolibri.esm.js +1 -1
  384. package/dist/kolibri/kolibri.esm.js.map +1 -1
  385. package/dist/kolibri/{reuse-b66836de.js → reuse-108ee8f5.js} +1 -1
  386. package/dist/types/components/accordion/shadow.d.ts +5 -3
  387. package/dist/types/components/button/component.d.ts +4 -3
  388. package/dist/types/components/button/shadow.d.ts +5 -3
  389. package/dist/types/components/button-link/shadow.d.ts +5 -3
  390. package/dist/types/components/combobox/shadow.d.ts +1 -0
  391. package/dist/types/components/details/shadow.d.ts +4 -3
  392. package/dist/types/components/input-checkbox/shadow.d.ts +5 -1
  393. package/dist/types/components/input-color/shadow.d.ts +5 -3
  394. package/dist/types/components/input-date/shadow.d.ts +5 -3
  395. package/dist/types/components/input-email/shadow.d.ts +5 -3
  396. package/dist/types/components/input-file/shadow.d.ts +5 -3
  397. package/dist/types/components/input-number/shadow.d.ts +5 -3
  398. package/dist/types/components/input-password/shadow.d.ts +6 -4
  399. package/dist/types/components/input-radio/shadow.d.ts +5 -3
  400. package/dist/types/components/input-range/shadow.d.ts +4 -2
  401. package/dist/types/components/input-text/shadow.d.ts +5 -3
  402. package/dist/types/components/link/component.d.ts +4 -4
  403. package/dist/types/components/link/shadow.d.ts +5 -3
  404. package/dist/types/components/link-button/shadow.d.ts +5 -3
  405. package/dist/types/components/select/shadow.d.ts +5 -3
  406. package/dist/types/components/textarea/shadow.d.ts +5 -3
  407. package/dist/types/components.d.ts +92 -0
  408. package/dist/types/index.d.ts +1 -1
  409. package/dist/types/schema/index.d.ts +1 -0
  410. package/dist/types/schema/interfaces/FocusableElement.d.ts +3 -0
  411. package/dist/types/schema/interfaces/index.d.ts +1 -0
  412. package/doc/accordion.md +25 -0
  413. package/doc/alert.md +2 -0
  414. package/doc/avatar.md +2 -0
  415. package/doc/button-link.md +20 -0
  416. package/doc/button.md +20 -0
  417. package/doc/combobox.md +2 -0
  418. package/doc/details.md +25 -0
  419. package/doc/drawer.md +2 -0
  420. package/doc/image.md +2 -0
  421. package/doc/input-checkbox.md +20 -0
  422. package/doc/input-color.md +20 -0
  423. package/doc/input-date.md +22 -0
  424. package/doc/input-email.md +20 -0
  425. package/doc/input-file.md +22 -0
  426. package/doc/input-number.md +20 -0
  427. package/doc/input-password.md +20 -0
  428. package/doc/input-radio.md +22 -0
  429. package/doc/input-range.md +22 -0
  430. package/doc/input-text.md +22 -0
  431. package/doc/link-button.md +23 -0
  432. package/doc/link.md +23 -0
  433. package/doc/modal.md +5 -1
  434. package/doc/nav.md +2 -0
  435. package/doc/select.md +22 -0
  436. package/doc/spin.md +2 -0
  437. package/doc/table-stateful.md +2 -0
  438. package/doc/table-stateless.md +2 -0
  439. package/doc/table.md +2 -0
  440. package/doc/tabs.md +2 -0
  441. package/doc/textarea.md +20 -0
  442. package/doc/toaster.md +2 -0
  443. package/doc/tooltip.md +2 -0
  444. package/doc/tree.md +2 -0
  445. package/package.json +1 -1
  446. package/vscode-custom-data.json +27 -27
  447. package/dist/cjs/index-5cf289dd.js +0 -4
  448. package/dist/cjs/index-5cf289dd.js.map +0 -1
  449. package/dist/esm/index-b2c61df0.js +0 -4
  450. package/dist/esm/index-b2c61df0.js.map +0 -1
  451. package/dist/kolibri/InternalUnderlinedAccessKey-fd8927df.js +0 -4
  452. package/dist/kolibri/i18n-112381e9.js +0 -4
  453. package/dist/kolibri/index-b2c61df0.js +0 -5
  454. package/dist/kolibri/index-b2c61df0.js.map +0 -1
  455. /package/dist/kolibri/{InternalUnderlinedAccessKey-fd8927df.js.map → InternalUnderlinedAccessKey-4607eee7.js.map} +0 -0
  456. /package/dist/kolibri/{align-floating-elements-9f85ac8b.js.map → align-floating-elements-e596c0fa.js.map} +0 -0
  457. /package/dist/kolibri/{app-globals-94e8e6c8.js.map → app-globals-703ac18d.js.map} +0 -0
  458. /package/dist/kolibri/{controller-cc7e4e3f.js.map → controller-13997e91.js.map} +0 -0
  459. /package/dist/kolibri/{controller-cbe5ff75.js.map → controller-618eff75.js.map} +0 -0
  460. /package/dist/kolibri/{controller-icon-b6046f95.js.map → controller-icon-1fda7e70.js.map} +0 -0
  461. /package/dist/kolibri/{dev.utils-a14ff412.js.map → dev.utils-d751d0cd.js.map} +0 -0
  462. /package/dist/kolibri/{devtools-38b004b8.js.map → devtools-6b1e2c90.js.map} +0 -0
  463. /package/dist/kolibri/{events-ba948f16.js.map → events-2b67c17a.js.map} +0 -0
  464. /package/dist/kolibri/{form-field-msg-c7c48d5a.js.map → form-field-msg-60b6ca7c.js.map} +0 -0
  465. /package/dist/kolibri/{i18n-112381e9.js.map → i18n-2cbb513e.js.map} +0 -0
  466. /package/dist/kolibri/{icons-e32ba753.js.map → icons-05788852.js.map} +0 -0
  467. /package/dist/kolibri/{reuse-b66836de.js.map → reuse-108ee8f5.js.map} +0 -0
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{s as se,j}from"./index-db4aa6e4.js";import{a as setMode}from"./index-b2c61df0.js";import{L as Log}from"./dev.utils-1ca991a2.js";setMode((o=>{try{o.shadowRoot instanceof ShadowRoot&&se(o,j(o))}catch(o){}return"default"})),import("./devtools-38b004b8.js").then((o=>{"object"==typeof o&&null!==o&&"function"==typeof o.initialize&&o.initialize()})).catch((o=>{Log.error(o)}));const globalFn=()=>{},appGlobalScript=globalFn,globalScripts=appGlobalScript;export{globalScripts as g};
4
+ import{s as se,j}from"./index-db4aa6e4.js";import{a as setMode}from"./index-b5e5a1b4.js";import{L as Log}from"./dev.utils-1ca991a2.js";setMode((o=>{try{o.shadowRoot instanceof ShadowRoot&&se(o,j(o))}catch(o){}return"default"})),import("./devtools-6b1e2c90.js").then((o=>{"object"==typeof o&&null!==o&&"function"==typeof o.initialize&&o.initialize()})).catch((o=>{Log.error(o)}));const globalFn=()=>{},appGlobalScript=globalFn,globalScripts=appGlobalScript;export{globalScripts as g};
@@ -1 +1 @@
1
- {"file":"app-globals-94e8e6c8.js","mappings":";;;;;;;AAKA,OAAO,CAAC,CAAC,GAAG;IACX,IAAI;QACH,IAAI,GAAG,CAAC,UAAU,YAAY,UAAU,EAAE;YACzCA,EAAa,CAAC,GAAG,EAAEC,CAAe,CAAC,GAAG,CAAC,CAAC,CAAC;SACzC;KACD;IAAC,OAAO,KAAK,EAAE;KAMf;IACD,OAAO,SAAS,CAAC;AAClB,CAAC,CAAC,CAAC;AAEH,OAAO,wBAAY,CAAC;KAClB,IAAI,CAAC,CAAC,QAAQ;IACd,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,KAAK,IAAI,IAAI,OAAO,QAAQ,CAAC,UAAU,KAAK,UAAU,EAAE;QACnG,QAAQ,CAAC,UAAU,EAAE,CAAC;KACtB;AACF,CAAC,CAAC;KACD,KAAK,CAAC,CAAC,KAAK;IACZ,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC;;;;AC3BQ,MAAC,aAAa,GAAG;;;;","names":["setThemeStyle","getThemeDetails"],"sources":["src/global/script.ts","@stencil/core/internal/app-globals"],"sourcesContent":["import { getThemeDetails, setThemeStyle } from 'adopted-style-sheets';\n\nimport { Log } from '../schema';\nimport { setMode } from '@stencil/core';\n\nsetMode((elm) => {\n\ttry {\n\t\tif (elm.shadowRoot instanceof ShadowRoot) {\n\t\t\tsetThemeStyle(elm, getThemeDetails(elm));\n\t\t}\n\t} catch (error) {\n\t\t/**\n\t\t * Try is needed for SSR.\n\t\t * - no HTMLElement is available\n\t\t * - no ShadowRoot is available\n\t\t */\n\t}\n\treturn 'default';\n});\n\nimport('./devtools')\n\t.then((devTools) => {\n\t\tif (typeof devTools === 'object' && devTools !== null && typeof devTools.initialize === 'function') {\n\t\t\tdevTools.initialize();\n\t\t}\n\t})\n\t.catch((error) => {\n\t\tLog.error(error);\n\t});\n","import appGlobalScript from '/home/runner/work/kolibri/kolibri/packages/components/src/global/script.ts';\nexport const globalScripts = appGlobalScript;\n"],"version":3}
1
+ {"file":"app-globals-703ac18d.js","mappings":";;;;;;;AAKA,OAAO,CAAC,CAAC,GAAG;IACX,IAAI;QACH,IAAI,GAAG,CAAC,UAAU,YAAY,UAAU,EAAE;YACzCA,EAAa,CAAC,GAAG,EAAEC,CAAe,CAAC,GAAG,CAAC,CAAC,CAAC;SACzC;KACD;IAAC,OAAO,KAAK,EAAE;KAMf;IACD,OAAO,SAAS,CAAC;AAClB,CAAC,CAAC,CAAC;AAEH,OAAO,wBAAY,CAAC;KAClB,IAAI,CAAC,CAAC,QAAQ;IACd,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,KAAK,IAAI,IAAI,OAAO,QAAQ,CAAC,UAAU,KAAK,UAAU,EAAE;QACnG,QAAQ,CAAC,UAAU,EAAE,CAAC;KACtB;AACF,CAAC,CAAC;KACD,KAAK,CAAC,CAAC,KAAK;IACZ,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC;;;;AC3BQ,MAAC,aAAa,GAAG;;;;","names":["setThemeStyle","getThemeDetails"],"sources":["src/global/script.ts","@stencil/core/internal/app-globals"],"sourcesContent":["import { getThemeDetails, setThemeStyle } from 'adopted-style-sheets';\n\nimport { Log } from '../schema';\nimport { setMode } from '@stencil/core';\n\nsetMode((elm) => {\n\ttry {\n\t\tif (elm.shadowRoot instanceof ShadowRoot) {\n\t\t\tsetThemeStyle(elm, getThemeDetails(elm));\n\t\t}\n\t} catch (error) {\n\t\t/**\n\t\t * Try is needed for SSR.\n\t\t * - no HTMLElement is available\n\t\t * - no ShadowRoot is available\n\t\t */\n\t}\n\treturn 'default';\n});\n\nimport('./devtools')\n\t.then((devTools) => {\n\t\tif (typeof devTools === 'object' && devTools !== null && typeof devTools.initialize === 'function') {\n\t\t\tdevTools.initialize();\n\t\t}\n\t})\n\t.catch((error) => {\n\t\tLog.error(error);\n\t});\n","import appGlobalScript from '/home/runner/work/kolibri/kolibri/packages/components/src/global/script.ts';\nexport const globalScripts = appGlobalScript;\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{v as validateHasCounter,I as InputPasswordController}from"./controller-cbe5ff75.js";import{w as watchValidator}from"./prop.validators-db70e3c4.js";import{v as validateSuggestions}from"./suggestions-bca6edb5.js";const inputTextTypeOptions=["text","search","url","tel"];class InputTextEmailController extends InputPasswordController{constructor(t,o,e){super(t,o,e),this.component=t}validateSuggestions(t){validateSuggestions(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateSuggestions(this.component._suggestions)}}class InputTextController extends InputTextEmailController{constructor(t,o,e){super(t,o,e),this.hasError=!1,this.component=t}validateType(t){watchValidator(this.component,"_type",(t=>"string"==typeof t&&inputTextTypeOptions.includes(t)),new Set([`String {${inputTextTypeOptions.join(", ")}`]),t)}validateHasCounter(t){validateHasCounter(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateType(this.component._type),this.validateHasCounter(this.component._hasCounter)}}export{InputTextEmailController as I,InputTextController as a};
4
+ import{v as validateHasCounter,I as InputPasswordController}from"./controller-618eff75.js";import{w as watchValidator}from"./prop.validators-db70e3c4.js";import{v as validateSuggestions}from"./suggestions-bca6edb5.js";const inputTextTypeOptions=["text","search","url","tel"];class InputTextEmailController extends InputPasswordController{constructor(t,o,e){super(t,o,e),this.component=t}validateSuggestions(t){validateSuggestions(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateSuggestions(this.component._suggestions)}}class InputTextController extends InputTextEmailController{constructor(t,o,e){super(t,o,e),this.hasError=!1,this.component=t}validateType(t){watchValidator(this.component,"_type",(t=>"string"==typeof t&&inputTextTypeOptions.includes(t)),new Set([`String {${inputTextTypeOptions.join(", ")}`]),t)}validateHasCounter(t){validateHasCounter(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateType(this.component._type),this.validateHasCounter(this.component._hasCounter)}}export{InputTextEmailController as I,InputTextController as a};
@@ -1 +1 @@
1
- {"file":"controller-cc7e4e3f.js","mappings":";;;;;;;AAAO,MAAM,oBAAoB,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,CAAU;;MCahE,wBAAyB,SAAQ,uBAAuB;IAGpE,YAAmB,SAA0D,EAAE,IAAY,EAAE,IAAkB;QAC9G,KAAK,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;KAC3B;IAEM,mBAAmB,CAAC,KAA2B;QACrD,mBAAmB,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;KAC3C;IAEM,iBAAiB;QACvB,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;KACtD;CACD;MAEY,mBAAoB,SAAQ,wBAAwB;IAKhE,YAAmB,SAAqD,EAAE,IAAY,EAAE,IAAkB;QACzG,KAAK,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAHvB,aAAQ,GAAG,KAAK,CAAC;QAIvB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;KAC3B;IAEM,YAAY,CAAC,KAAqB;QACxC,cAAc,CACb,IAAI,CAAC,SAAS,EACd,OAAO,EACP,CAAC,KAAK,KAAc,OAAO,KAAK,KAAK,QAAQ,IAAI,oBAAoB,CAAC,QAAQ,CAAC,KAAK,CAAC,EACrF,IAAI,GAAG,CAAC,CAAC,WAAW,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EACvD,KAAK,CACL,CAAC;KACF;IAEM,kBAAkB,CAAC,KAAe;QACxC,kBAAkB,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;KAC1C;IAEM,iBAAiB;QACvB,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACxC,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;KACpD;;;;;","names":[],"sources":["src/schema/types/input/control/text.ts","src/components/input-text/controller.ts"],"sourcesContent":["export const inputTextTypeOptions = ['text', 'search', 'url', 'tel'] as const;\nexport type InputTextType = (typeof inputTextTypeOptions)[number];\n","import type { InputTextProps, InputTextType, InputTextWatches, PropLabelWithExpertSlot, PropSuggestions, SuggestionsPropType } from '../../schema';\nimport { inputTextTypeOptions, validateHasCounter, validateSuggestions, watchValidator } from '../../schema';\n\nimport { InputPasswordController } from '../input-password/controller';\n\nimport type { Generic } from 'adopted-style-sheets';\ntype RequiredProps = PropLabelWithExpertSlot;\ntype OptionalProps = {\n\tid: string;\n} & PropSuggestions;\ntype InputTextEmailProps = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype InputTextEmailWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\nexport class InputTextEmailController extends InputPasswordController implements InputTextEmailWatches {\n\tprotected readonly component: Generic.Element.Component & InputTextEmailProps;\n\n\tpublic constructor(component: Generic.Element.Component & InputTextEmailProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateSuggestions(value?: SuggestionsPropType): void {\n\t\tvalidateSuggestions(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateSuggestions(this.component._suggestions);\n\t}\n}\n\nexport class InputTextController extends InputTextEmailController implements InputTextWatches {\n\tprotected readonly component: Generic.Element.Component & InputTextProps;\n\n\tpublic hasError = false;\n\n\tpublic constructor(component: Generic.Element.Component & InputTextProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateType(value?: InputTextType): void {\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_type',\n\t\t\t(value): boolean => typeof value === 'string' && inputTextTypeOptions.includes(value),\n\t\t\tnew Set([`String {${inputTextTypeOptions.join(', ')}`]),\n\t\t\tvalue,\n\t\t);\n\t}\n\n\tpublic validateHasCounter(value?: boolean): void {\n\t\tvalidateHasCounter(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateType(this.component._type);\n\t\tthis.validateHasCounter(this.component._hasCounter);\n\t}\n}\n"],"version":3}
1
+ {"file":"controller-13997e91.js","mappings":";;;;;;;AAAO,MAAM,oBAAoB,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,CAAU;;MCahE,wBAAyB,SAAQ,uBAAuB;IAGpE,YAAmB,SAA0D,EAAE,IAAY,EAAE,IAAkB;QAC9G,KAAK,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;KAC3B;IAEM,mBAAmB,CAAC,KAA2B;QACrD,mBAAmB,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;KAC3C;IAEM,iBAAiB;QACvB,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;KACtD;CACD;MAEY,mBAAoB,SAAQ,wBAAwB;IAKhE,YAAmB,SAAqD,EAAE,IAAY,EAAE,IAAkB;QACzG,KAAK,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAHvB,aAAQ,GAAG,KAAK,CAAC;QAIvB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;KAC3B;IAEM,YAAY,CAAC,KAAqB;QACxC,cAAc,CACb,IAAI,CAAC,SAAS,EACd,OAAO,EACP,CAAC,KAAK,KAAc,OAAO,KAAK,KAAK,QAAQ,IAAI,oBAAoB,CAAC,QAAQ,CAAC,KAAK,CAAC,EACrF,IAAI,GAAG,CAAC,CAAC,WAAW,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EACvD,KAAK,CACL,CAAC;KACF;IAEM,kBAAkB,CAAC,KAAe;QACxC,kBAAkB,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;KAC1C;IAEM,iBAAiB;QACvB,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACxC,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;KACpD;;;;;","names":[],"sources":["src/schema/types/input/control/text.ts","src/components/input-text/controller.ts"],"sourcesContent":["export const inputTextTypeOptions = ['text', 'search', 'url', 'tel'] as const;\nexport type InputTextType = (typeof inputTextTypeOptions)[number];\n","import type { InputTextProps, InputTextType, InputTextWatches, PropLabelWithExpertSlot, PropSuggestions, SuggestionsPropType } from '../../schema';\nimport { inputTextTypeOptions, validateHasCounter, validateSuggestions, watchValidator } from '../../schema';\n\nimport { InputPasswordController } from '../input-password/controller';\n\nimport type { Generic } from 'adopted-style-sheets';\ntype RequiredProps = PropLabelWithExpertSlot;\ntype OptionalProps = {\n\tid: string;\n} & PropSuggestions;\ntype InputTextEmailProps = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype InputTextEmailWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\nexport class InputTextEmailController extends InputPasswordController implements InputTextEmailWatches {\n\tprotected readonly component: Generic.Element.Component & InputTextEmailProps;\n\n\tpublic constructor(component: Generic.Element.Component & InputTextEmailProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateSuggestions(value?: SuggestionsPropType): void {\n\t\tvalidateSuggestions(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateSuggestions(this.component._suggestions);\n\t}\n}\n\nexport class InputTextController extends InputTextEmailController implements InputTextWatches {\n\tprotected readonly component: Generic.Element.Component & InputTextProps;\n\n\tpublic hasError = false;\n\n\tpublic constructor(component: Generic.Element.Component & InputTextProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateType(value?: InputTextType): void {\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_type',\n\t\t\t(value): boolean => typeof value === 'string' && inputTextTypeOptions.includes(value),\n\t\t\tnew Set([`String {${inputTextTypeOptions.join(', ')}`]),\n\t\t\tvalue,\n\t\t);\n\t}\n\n\tpublic validateHasCounter(value?: boolean): void {\n\t\tvalidateHasCounter(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateType(this.component._type);\n\t\tthis.validateHasCounter(this.component._hasCounter);\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,w as watchValidator,k as watchNumber,i as watchString}from"./prop.validators-db70e3c4.js";import{I as InputIconController}from"./controller-icon-b6046f95.js";const validateHasCounter=(t,a)=>{watchBoolean(t,"_hasCounter",a)},PasswordVariantPropTypeOptions=["default","visibility-toggle"],validatePasswordVariant=(t,a)=>{watchValidator(t,"_variant",(t=>"string"==typeof t&&PasswordVariantPropTypeOptions.includes(t)),new Set(PasswordVariantPropTypeOptions),a)};class InputPasswordController extends InputIconController{constructor(t,a,e){super(t,a,e),this.component=t}validateAutoComplete(t){watchValidator(this.component,"_autoComplete",(t=>"string"==typeof t&&("on"===t||"off"===t)),new Set(["on | off"]),t)}validateHasCounter(t){validateHasCounter(this.component,t)}validateVariant(t){validatePasswordVariant(this.component,t)}validateMaxLength(t){watchNumber(this.component,"_maxLength",t,{min:0})}validatePattern(t){watchString(this.component,"_pattern",t)}validatePlaceholder(t){watchString(this.component,"_placeholder",t)}validateReadOnly(t){watchBoolean(this.component,"_readOnly",t)}validateRequired(t){watchBoolean(this.component,"_required",t)}validateValue(t){watchString(this.component,"_value",t),this.setFormAssociatedValue(this.component.state._value)}componentWillLoad(){super.componentWillLoad(),this.validateAutoComplete(this.component._autoComplete),this.validateHasCounter(this.component._hasCounter),this.validateMaxLength(this.component._maxLength),this.validatePattern(this.component._pattern),this.validatePlaceholder(this.component._placeholder),this.validateReadOnly(this.component._readOnly),this.validateRequired(this.component._required),this.validateValue(this.component._value),this.validateVariant(this.component._variant)}}export{InputPasswordController as I,validateHasCounter as v};
4
+ import{b as watchBoolean,w as watchValidator,k as watchNumber,i as watchString}from"./prop.validators-db70e3c4.js";import{I as InputIconController}from"./controller-icon-1fda7e70.js";const validateHasCounter=(t,a)=>{watchBoolean(t,"_hasCounter",a)},PasswordVariantPropTypeOptions=["default","visibility-toggle"],validatePasswordVariant=(t,a)=>{watchValidator(t,"_variant",(t=>"string"==typeof t&&PasswordVariantPropTypeOptions.includes(t)),new Set(PasswordVariantPropTypeOptions),a)};class InputPasswordController extends InputIconController{constructor(t,a,e){super(t,a,e),this.component=t}validateAutoComplete(t){watchValidator(this.component,"_autoComplete",(t=>"string"==typeof t&&("on"===t||"off"===t)),new Set(["on | off"]),t)}validateHasCounter(t){validateHasCounter(this.component,t)}validateVariant(t){validatePasswordVariant(this.component,t)}validateMaxLength(t){watchNumber(this.component,"_maxLength",t,{min:0})}validatePattern(t){watchString(this.component,"_pattern",t)}validatePlaceholder(t){watchString(this.component,"_placeholder",t)}validateReadOnly(t){watchBoolean(this.component,"_readOnly",t)}validateRequired(t){watchBoolean(this.component,"_required",t)}validateValue(t){watchString(this.component,"_value",t),this.setFormAssociatedValue(this.component.state._value)}componentWillLoad(){super.componentWillLoad(),this.validateAutoComplete(this.component._autoComplete),this.validateHasCounter(this.component._hasCounter),this.validateMaxLength(this.component._maxLength),this.validatePattern(this.component._pattern),this.validatePlaceholder(this.component._placeholder),this.validateReadOnly(this.component._readOnly),this.validateRequired(this.component._required),this.validateValue(this.component._value),this.validateVariant(this.component._variant)}}export{InputPasswordController as I,validateHasCounter as v};
@@ -1 +1 @@
1
- {"file":"controller-cbe5ff75.js","mappings":";;;;;;MAea,kBAAkB,GAAG,CAAC,SAAoC,EAAE,KAA0B;IAClG,YAAY,CAAC,SAAS,EAAE,aAAa,EAAE,KAAK,CAAC,CAAC;AAC/C;;ACbA,MAAM,8BAA8B,GAAG,CAAC,SAAS,EAAE,mBAAmB,CAAU,CAAC;AAW1E,MAAM,uBAAuB,GAAG,CAAC,SAAoC,EAAE,KAA+B;IAC5G,cAAc,CACb,SAAS,EACT,UAAU,EACV,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,8BAA8B,CAAC,QAAQ,CAAC,KAAK,CAAC,EACtF,IAAI,GAAG,CAAC,8BAA8B,CAAC,EACvC,KAAK,CACL,CAAC;AACH,CAAC;;MChBY,uBAAwB,SAAQ,mBAAmB;IAG/D,YAAmB,SAAyD,EAAE,IAAY,EAAE,IAAkB;QAC7G,KAAK,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;KAC3B;IAEM,oBAAoB,CAAC,KAAsB;QACjD,cAAc,CACb,IAAI,CAAC,SAAS,EACd,eAAe,EACf,CAAC,KAAK,KAAc,OAAO,KAAK,KAAK,QAAQ,KAAK,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,KAAK,CAAC,EACpF,IAAI,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,EACrB,KAAK,CACL,CAAC;KACF;IAEM,kBAAkB,CAAC,KAAe;QACxC,kBAAkB,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;KAC1C;IAEM,eA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SAAS,CAAC,YAAY,CAAC,CAAC;QACtD,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;QAChD,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;QAChD,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC1C,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;KAC9C;;;;;","names":[],"sources":["src/schema/props/has-counter.ts","src/schema/props/variant/password-variant.ts","src/components/input-password/controller.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\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): void => {\n\twatchBoolean(component, '_hasCounter', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { watchValidator } from '../../utils/prop.validators';\n\nconst PasswordVariantPropTypeOptions = ['default', 'visibility-toggle'] as const;\nexport type PasswordVariantPropType = (typeof PasswordVariantPropTypeOptions)[number];\n\n/**\n * Defines the different variants for displaying the password input.\n */\nexport type PropPasswordVariant = {\n\tvariant: PasswordVariantPropType;\n};\n\n/* validator */\nexport const validatePasswordVariant = (component: Generic.Element.Component, value?: PasswordVariantPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t'_variant',\n\t\t(value) => typeof value === 'string' && PasswordVariantPropTypeOptions.includes(value),\n\t\tnew Set(PasswordVariantPropTypeOptions),\n\t\tvalue,\n\t);\n};\n","import type { InputPasswordProps, InputPasswordWatches, InputTypeOnOff } from '../../schema';\nimport { validateHasCounter, watchBoolean, watchNumber, watchString, watchValidator } from '../../schema';\nimport { PasswordVariantPropType, validatePasswordVariant } from '../../schema/props/variant/password-variant';\n\nimport { InputIconController } from '../@deprecated/input/controller-icon';\n\nimport type { Generic } from 'adopted-style-sheets';\nexport class InputPasswordController extends InputIconController implements InputPasswordWatches {\n\tprotected readonly component: Generic.Element.Component & InputPasswordProps;\n\n\tpublic constructor(component: Generic.Element.Component & InputPasswordProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateAutoComplete(value?: InputTypeOnOff): void {\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_autoComplete',\n\t\t\t(value): boolean => typeof value === 'string' && (value === 'on' || value === 'off'),\n\t\t\tnew Set(['on | off']),\n\t\t\tvalue,\n\t\t);\n\t}\n\n\tpublic validateHasCounter(value?: boolean): void {\n\t\tvalidateHasCounter(this.component, value);\n\t}\n\n\tpublic validateVariant(value?: PasswordVariantPropType): void {\n\t\tvalidatePasswordVariant(this.component, value);\n\t}\n\n\tpublic validateMaxLength(value?: number): void {\n\t\twatchNumber(this.component, '_maxLength', value, {\n\t\t\tmin: 0,\n\t\t});\n\t}\n\n\tpublic validatePattern(value?: string): void {\n\t\twatchString(this.component, '_pattern', value);\n\t}\n\n\tpublic validatePlaceholder(value?: string): void {\n\t\twatchString(this.component, '_placeholder', value);\n\t}\n\n\tpublic validateReadOnly(value?: boolean): void {\n\t\twatchBoolean(this.component, '_readOnly', value);\n\t}\n\n\tpublic validateRequired(value?: boolean): void {\n\t\twatchBoolean(this.component, '_required', value);\n\t}\n\n\tpublic validateValue(value?: string): void {\n\t\twatchString(this.component, '_value', value);\n\t\tthis.setFormAssociatedValue(this.component.state._value as string);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateAutoComplete(this.component._autoComplete);\n\t\tthis.validateHasCounter(this.component._hasCounter);\n\t\tthis.validateMaxLength(this.component._maxLength);\n\t\tthis.validatePattern(this.component._pattern);\n\t\tthis.validatePlaceholder(this.component._placeholder);\n\t\tthis.validateReadOnly(this.component._readOnly);\n\t\tthis.validateRequired(this.component._required);\n\t\tthis.validateValue(this.component._value);\n\t\tthis.validateVariant(this.component._variant);\n\t}\n}\n"],"version":3}
1
+ {"file":"controller-618eff75.js","mappings":";;;;;;MAea,kBAAkB,GAAG,CAAC,SAAoC,EAAE,KAA0B;IAClG,YAAY,CAAC,SAAS,EAAE,aAAa,EAAE,KAAK,CAAC,CAAC;AAC/C;;ACbA,MAAM,8BAA8B,GAAG,CAAC,SAAS,EAAE,mBAAmB,CAAU,CAAC;AAW1E,MAAM,uBAAuB,GAAG,CAAC,SAAoC,EAAE,KAA+B;IAC5G,cAAc,CACb,SAAS,EACT,UAAU,EACV,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,8BAA8B,CAAC,QAAQ,CAAC,KAAK,CAAC,EACtF,IAAI,GAAG,CAAC,8BAA8B,CAAC,EACvC,KAAK,CACL,CAAC;AACH,CAAC;;MChBY,uBAAwB,SAAQ,mBAAmB;IAG/D,YAAmB,SAAyD,EAAE,IAAY,EAAE,IAAkB;QAC7G,KAAK,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;KAC3B;IAEM,oBAAoB,CAAC,KAAsB;QACjD,cAAc,CACb,IAAI,CAAC,SAAS,EACd,eAAe,EACf,CAAC,KAAK,KAAc,OAAO,KAAK,KAAK,QAAQ,KAAK,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,KAAK,CAAC,EACpF,IAAI,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,EACrB,KAAK,CACL,CAAC;KACF;IAEM,kBAAkB,CAAC,KAAe;QACxC,kBAAkB,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;KAC1C;IAEM,eAAe,CAAC,KAA+B;QACrD,uBAAuB,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;KAC/C;IA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AS,CAAC,CAAC;QAChD,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;QAChD,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC1C,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;KAC9C;;;;;","names":[],"sources":["src/schema/props/has-counter.ts","src/schema/props/variant/password-variant.ts","src/components/input-password/controller.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\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): void => {\n\twatchBoolean(component, '_hasCounter', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { watchValidator } from '../../utils/prop.validators';\n\nconst PasswordVariantPropTypeOptions = ['default', 'visibility-toggle'] as const;\nexport type PasswordVariantPropType = (typeof PasswordVariantPropTypeOptions)[number];\n\n/**\n * Defines the different variants for displaying the password input.\n */\nexport type PropPasswordVariant = {\n\tvariant: PasswordVariantPropType;\n};\n\n/* validator */\nexport const validatePasswordVariant = (component: Generic.Element.Component, value?: PasswordVariantPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t'_variant',\n\t\t(value) => typeof value === 'string' && PasswordVariantPropTypeOptions.includes(value),\n\t\tnew Set(PasswordVariantPropTypeOptions),\n\t\tvalue,\n\t);\n};\n","import type { InputPasswordProps, InputPasswordWatches, InputTypeOnOff } from '../../schema';\nimport { validateHasCounter, watchBoolean, watchNumber, watchString, watchValidator } from '../../schema';\nimport { PasswordVariantPropType, validatePasswordVariant } from '../../schema/props/variant/password-variant';\n\nimport { InputIconController } from '../@deprecated/input/controller-icon';\n\nimport type { Generic } from 'adopted-style-sheets';\nexport class InputPasswordController extends InputIconController implements InputPasswordWatches {\n\tprotected readonly component: Generic.Element.Component & InputPasswordProps;\n\n\tpublic constructor(component: Generic.Element.Component & InputPasswordProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateAutoComplete(value?: InputTypeOnOff): void {\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_autoComplete',\n\t\t\t(value): boolean => typeof value === 'string' && (value === 'on' || value === 'off'),\n\t\t\tnew Set(['on | off']),\n\t\t\tvalue,\n\t\t);\n\t}\n\n\tpublic validateHasCounter(value?: boolean): void {\n\t\tvalidateHasCounter(this.component, value);\n\t}\n\n\tpublic validateVariant(value?: PasswordVariantPropType): void {\n\t\tvalidatePasswordVariant(this.component, value);\n\t}\n\n\tpublic validateMaxLength(value?: number): void {\n\t\twatchNumber(this.component, '_maxLength', value, {\n\t\t\tmin: 0,\n\t\t});\n\t}\n\n\tpublic validatePattern(value?: string): void {\n\t\twatchString(this.component, '_pattern', value);\n\t}\n\n\tpublic validatePlaceholder(value?: string): void {\n\t\twatchString(this.component, '_placeholder', value);\n\t}\n\n\tpublic validateReadOnly(value?: boolean): void {\n\t\twatchBoolean(this.component, '_readOnly', value);\n\t}\n\n\tpublic validateRequired(value?: boolean): void {\n\t\twatchBoolean(this.component, '_required', value);\n\t}\n\n\tpublic validateValue(value?: string): void {\n\t\twatchString(this.component, '_value', value);\n\t\tthis.setFormAssociatedValue(this.component.state._value as string);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateAutoComplete(this.component._autoComplete);\n\t\tthis.validateHasCounter(this.component._hasCounter);\n\t\tthis.validateMaxLength(this.component._maxLength);\n\t\tthis.validatePattern(this.component._pattern);\n\t\tthis.validatePlaceholder(this.component._placeholder);\n\t\tthis.validateReadOnly(this.component._readOnly);\n\t\tthis.validateRequired(this.component._required);\n\t\tthis.validateValue(this.component._value);\n\t\tthis.validateVariant(this.component._variant);\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{I as InputController}from"./controller-fd9ca791.js";import{i as isIcon}from"./icons-e32ba753.js";import{o as objectObjectHandler,p as parseJson,w as watchValidator}from"./prop.validators-db70e3c4.js";import{i as isString}from"./reuse-b66836de.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-fd9ca791.js";import{i as isIcon}from"./icons-05788852.js";import{o as objectObjectHandler,p as parseJson,w as watchValidator}from"./prop.validators-db70e3c4.js";import{i as isString}from"./reuse-108ee8f5.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-b6046f95.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}
1
+ {"file":"controller-icon-1fda7e70.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,I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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}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{E as Env}from"./index-b2c61df0.js";import{p as processEnv}from"./reuse-b66836de.js";import{L as Log,g as getDocument,s as setDevMode,b as setExperimentalMode,c as setColorContrastAnalysis,d as getWindow}from"./dev.utils-1ca991a2.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-b5e5a1b4.js";import{p as processEnv}from"./reuse-108ee8f5.js";import{L as Log,g as getDocument,s as setDevMode,b as setExperimentalMode,c as setColorContrastAnalysis,d as getWindow}from"./dev.utils-1ca991a2.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-a14ff412.js","mappings":";;;;;;;AAKA,MAAM,QAAQ,GAAG;IAChB,MAAM,IAAI,GAAG,WAAW,EAAE,CAAC,aAAa,CAAC,sBAAsB,CAAC,CAAC;IACjE,IAAI,IAAI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,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-d751d0cd.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,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-a14ff412.js";import{e as getDevMode,g as getDocument,L as Log,a as getExperimentalMode,f as getColorContrastAnalysis,d as getWindow}from"./dev.utils-1ca991a2.js";import{z as KoliBriUtils,A as koliBriA11yColorContrast,v as koliBriQuerySelector,B as koliBriQuerySelectorAll,C as koliBriQuerySelectorColors,p as parseJson,D as stringifyJson}from"./prop.validators-db70e3c4.js";import"./index-b2c61df0.js";import"./reuse-b66836de.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-d751d0cd.js";import{e as getDevMode,g as getDocument,L as Log,a as getExperimentalMode,f as getColorContrastAnalysis,d as getWindow}from"./dev.utils-1ca991a2.js";import{z as KoliBriUtils,A as koliBriA11yColorContrast,v as koliBriQuerySelector,B as koliBriQuerySelectorAll,C as koliBriQuerySelectorColors,p as parseJson,D as stringifyJson}from"./prop.validators-db70e3c4.js";import"./index-b5e5a1b4.js";import"./reuse-108ee8f5.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};
@@ -1 +1 @@
1
- {"file":"devtools-38b004b8.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,CAAC;AAEF,SAAS,gBAAgB,CAAI,IAAY,EAAE,EAAK;IAC/C,IAAI;QACH,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE;YACzC,GAAG,EAAE;gBACJ,OAAO,EAAE,CAAC;aACV;SACD,CAAC,CAAC;KACH;IAAC,OAAO,CAAC,EAAE;QACX,GAAG,CAAC,KAAK,CAAC,oBAAoB,IAAI,mBAAmB,CAAC,CAAC;KACvD;AACF,CAAC;AAED,MAAM,WAAW,GAAG,CAAC,IAAY,EAAE,MAAe,KAAK,GAAG,CAAC,KAAK,CAAC,GAAG,IAAI,IAAI,MAAM,GAAG,EAAE,GAAG,MAAM,WAAW,CAAC,CAAC;MAEhG,UAAU,GAAG;IACzB,WAAW,EAAE,CAAC;IACd,IAAI,UAAU,EAAE,EAAE;QACjB,eAAe,EAAE,CAAC;QAElB,gBAAgB,CAAC,mBAAmB,EAAE,wB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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-6b1e2c90.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,CAAC;AAEF,SAAS,gBAAgB,CAAI,IAAY,EAAE,EAAK;IAC/C,IAAI;QACH,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE;YACzC,GAAG,EAAE;gBACJ,OAAO,EAAE,CAAC;aACV;SACD,CAAC,CAAC;KACH;IAAC,OAAO,CAAC,EAAE;QACX,GAAG,CAAC,KAAK,CAAC,oBAAoB,IAAI,mBAAmB,CAAC,CAAC;KACvD;AACF,CAAC;AAED,MAAM,WAAW,GAAG,CAAC,IAAY,EAAE,MAAe,KAAK,GAAG,CAAC,KAAK,CAAC,GAAG,IAAI,IAAI,MAAM,GAAG,EAAE,GAAG,MAAM,WAAW,CAAC,CAAC;MAEhG,UAAU,GAAG;IACzB,WAAW,EAAE,CAAC;IACd,IAAI,UAAU,EAAE,EAAE;QACjB,eAAe,EAAE,CAAC;QAElB,gBAAgB,CAAC,mBAAmB,EAAE,wBAAwB,CAAC,CAAC;QAChE,gBAAgB,CA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AC,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{w as watchValidator,t as emptyStringByArrayHandler,o as objectObjectHandler,p as parseJson,s as setState}from"./prop.validators-db70e3c4.js";import{c as isObject}from"./reuse-b66836de.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-db70e3c4.js";import{b as isObject}from"./reuse-108ee8f5.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};
@@ -1 +1 @@
1
- {"file":"events-ba948f16.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,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,GAAG,oBAAoB,EAAE,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;AACtB,CAAC,EApBW,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[];\nexport type StatefulSelectionChangeEventPayload = KoliBriTableDataType[];\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}\n"],"version":3}
1
+ {"file":"events-2b67c17a.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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,QAAQ,CAAC,KAAK,CAAC,IAAI,OAAO,KAAK,CAAC,KAAK,KAAK,UAAU,KAAK,CAAC,KAAK,CAAC,YAAY,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;KACnI,CAAC;IAEF,MAAM,WAAW,GAAG,OAAO,KAAK,KAAK,QAAQ,GAAG,oBAAoB,EAAE,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;AACtB,CAAC,EApBW,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[];\nexport type StatefulSelectionChangeEventPayload = KoliBriTableDataType[];\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}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h}from"./index-b2c61df0.js";import{d as KolAlertWcTag}from"./component-names-068dc2ae.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-b5e5a1b4.js";import{d as KolAlertWcTag}from"./component-names-068dc2ae.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-c7c48d5a.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-60b6ca7c.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{g as getI18nInstance,i as initializeI18n}from"./i18n-66b52d13.js";import{p as processEnv}from"./reuse-b66836de.js";let translate=(t,e)=>{var n;return(null!==(n=getI18nInstance())&&void 0!==n?n:initializeI18n("de")).translate(t,e)};"test"===processEnv&&(translate=t=>t);export{translate as t};
4
+ import{g as getI18nInstance,i as initializeI18n}from"./i18n-66b52d13.js";import{p as processEnv}from"./reuse-108ee8f5.js";let translate=(t,e)=>{var n;return(null!==(n=getI18nInstance())&&void 0!==n?n:initializeI18n("de")).translate(t,e)};"test"===processEnv&&(translate=t=>t);export{translate as t};
@@ -1 +1 @@
1
- {"file":"i18n-112381e9.js","mappings":";;;;;;IASW,SAAS,GAAG,CAAC,GAA+D,EAAE,OAAiB;;IACzG,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 let translate = (key: `${Lowercase<ResourcePrefix>}-${Lowercase<ComponentKeys>}`, 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-2cbb513e.js","mappings":";;;;;;IASW,SAAS,GAAG,CAAC,GAA+D,EAAE,OAAiB;;IACzG,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 let translate = (key: `${Lowercase<ResourcePrefix>}-${Lowercase<ComponentKeys>}`, 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-db70e3c4.js";import{i as isString,b as isStyle,c as isObject}from"./reuse-b66836de.js";const mapCustomIcon=(t,o,e)=>{isObject(e)?t[o]=e:isString(e,1)&&(t[o]={icon:e})},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,e,i;if(null===(o=t.nextState)||void 0===o?void 0:o.has("_icons")){const o=null===(e=t.nextState)||void 0===e?void 0:e.get("_icons");null===(i=t.nextState)||void 0===i||i.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,e={})=>{objectObjectHandler(o,(()=>{var i;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({},e),{defaultValue:{},hooks:{afterPatch:null===(i=e.hooks)||void 0===i?void 0:i.afterPatch,beforePatch:(t,o,i,n)=>{var s,a;"function"==typeof(null===(s=e.hooks)||void 0===s?void 0:s.beforePatch)&&(null===(a=e.hooks)||void 0===a||a.beforePatch(t,o,i,n)),beforePatchIcon(i)}}}))}))};export{isIcon as i,validateIcons as v};
4
+ import{o as objectObjectHandler,p as parseJson,w as watchValidator}from"./prop.validators-db70e3c4.js";import{i as isString,a as isStyle,b as isObject}from"./reuse-108ee8f5.js";const mapCustomIcon=(t,o,e)=>{isObject(e)?t[o]=e:isString(e,1)&&(t[o]={icon:e})},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,e,i;if(null===(o=t.nextState)||void 0===o?void 0:o.has("_icons")){const o=null===(e=t.nextState)||void 0===e?void 0:e.get("_icons");null===(i=t.nextState)||void 0===i||i.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,e={})=>{objectObjectHandler(o,(()=>{var i;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({},e),{defaultValue:{},hooks:{afterPatch:null===(i=e.hooks)||void 0===i?void 0:i.afterPatch,beforePatch:(t,o,i,n)=>{var s,a;"function"==typeof(null===(s=e.hooks)||void 0===s?void 0:s.beforePatch)&&(null===(a=e.hooks)||void 0===a||a.beforePatch(t,o,i,n)),beforePatchIcon(i)}}}))}))};export{isIcon as i,validateIcons as v};
@@ -1 +1 @@
1
- {"file":"icons-e32ba753.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;QAC1C,aAAa,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QAC5C,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;KACxC;IACD,OAAO,KAAK,CAAC;AACd,CAAC,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,SAAoC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AAC,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-05788852.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;K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,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}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ const NAMESPACE="kolibri",BUILD={allRenderFn:!0,appendChildSlotFix:!1,asyncLoading:!0,asyncQueue:!1,attachStyles:!0,cloneNodeFix:!1,cmpDidLoad:!0,cmpDidRender:!0,cmpDidUnload:!1,cmpDidUpdate:!1,cmpShouldUpdate:!1,cmpWillLoad:!0,cmpWillRender:!0,cmpWillUpdate:!1,connectedCallback:!0,constructableCSS:!0,cssAnnotations:!0,devTools:!1,disconnectedCallback:!0,element:!1,event:!1,experimentalScopedSlotChanges:!1,experimentalSlotFixes:!1,formAssociated:!1,hasRenderFn:!0,hostListener:!0,hostListenerTarget:!0,hostListenerTargetBody:!1,hostListenerTargetDocument:!1,hostListenerTargetParent:!1,hostListenerTargetWindow:!0,hotModuleReplacement:!1,hydrateClientSide:!0,hydrateServerSide:!1,hydratedAttribute:!1,hydratedClass:!0,hydratedSelectorName:"hydrated",initializeNextTick:!1,invisiblePrehydration:!0,isDebug:!1,isDev:!1,isTesting:!1,lazyLoad:!0,lifecycle:!0,lifecycleDOMEvents:!1,member:!0,method:!0,mode:!0,observeAttribute:!0,profile:!1,prop:!0,propBoolean:!0,propMutable:!0,propNumber:!0,propString:!0,reflect:!0,scoped:!1,scopedSlotTextContentFix:!1,scriptDataOpts:!1,shadowDelegatesFocus:!1,shadowDom:!0,slot:!0,slotChildNodesFix:!1,slotRelocation:!0,state:!0,style:!0,svg:!0,taskQueue:!1,transformTagName:!0,updatable:!0,vdomAttribute:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomPropOrAttr:!0,vdomRef:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,vdomXlink:!0,watchCallback:!0},Env={kolibriVersion:"2.1.4"};var __defProp=Object.defineProperty,__export=(e,t)=>{for(var o in t)__defProp(e,o,{get:t[o],enumerable:!0})},EMPTY_OBJ={},SVG_NS="http://www.w3.org/2000/svg",HTML_NS="http://www.w3.org/1999/xhtml",isDef=e=>null!=e,isComplexType=e=>"object"===(e=typeof e)||"function"===e;function queryNonceMetaTagContent(e){var t,o,n;return null!=(n=null==(o=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:o.getAttribute("content"))?n:void 0}var result_exports={};__export(result_exports,{err:()=>err,map:()=>map,ok:()=>ok,unwrap:()=>unwrap,unwrapErr:()=>unwrapErr});var ok=e=>({isOk:!0,isErr:!1,value:e}),err=e=>({isOk:!1,isErr:!0,value:e});function map(e,t){if(e.isOk){const o=t(e.value);return o instanceof Promise?o.then((e=>ok(e))):ok(o)}if(e.isErr){const t=e.value;return err(t)}throw"should never get here"}var scopeId,contentRef,hostTagName,unwrap=e=>{if(e.isOk)return e.value;throw e.value},unwrapErr=e=>{if(e.isErr)return e.value;throw e.value},createTime=(e,t="")=>()=>{},uniqueTime=(e,t)=>()=>{},CONTENT_REF_ID="r",ORG_LOCATION_ID="o",SLOT_NODE_ID="s",TEXT_NODE_ID="t",HYDRATE_ID="s-id",HYDRATED_STYLE_ID="sty-id",HYDRATE_CHILD_ID="c-id",HYDRATED_CSS="{visibility:hidden}.hydrated{visibility:inherit}",SLOT_FB_CSS="slot-fb{display:contents}slot-fb[hidden]{display:none}",XLINK_NS="http://www.w3.org/1999/xlink",h=(e,t,...o)=>{let n=null,r=null,s=null,l=!1,a=!1;const i=[],c=t=>{for(let o=0;o<t.length;o++)n=t[o],Array.isArray(n)?c(n):null!=n&&"boolean"!=typeof n&&((l="function"!=typeof e&&!isComplexType(n))&&(n=String(n)),l&&a?i[i.length-1].$text$+=n:i.push(l?newVNode(null,n):n),a=l)};if(c(o),t){t.key&&(r=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,i,vdomFnUtils);const $=newVNode(e,null);return $.$attrs$=t,i.length>0&&($.$children$=i),$.$key$=r,$.$name$=s,$},newVNode=(e,t)=>{const o={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null};return o},Host={},isHost=e=>e&&e.$tag$===Host,vdomFnUtils={forEach:(e,t)=>e.map(convertToPublic).forEach(t),map:(e,t)=>e.map(convertToPublic).map(t).map(convertToPrivate)},convertToPublic=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),convertToPrivate=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),h(e.vtag,t,...e.vchildren||[])}const t=newVNode(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},initializeClientHydrate=(e,t,o,n)=>{const r=createTime("hydrateClient",t),s=e.shadowRoot,l=[],a=s?[]:null,i=n.$vnode$=newVNode(t,null);plt.$orgLocNodes$||initializeDocumentHydrate(doc.body,plt.$orgLocNodes$=new Map),e[HYDRATE_ID]=o,e.removeAttribute(HYDRATE_ID),clientHydrate(i,l,[],a,e,e,o),l.map((e=>{const o=e.$hostId$+"."+e.$nodeId$,n=plt.$orgLocNodes$.get(o),r=e.$elm$;n&&supportsShadow&&""===n["s-en"]&&n.parentNode.insertBefore(r,n.nextSibling),s||(r["s-hn"]=t,n&&(r["s-ol"]=n,r["s-ol"]["s-nr"]=r)),plt.$orgLocNodes$.delete(o)})),s&&a.map((e=>{e&&s.appendChild(e)})),r()},clientHydrate=(e,t,o,n,r,s,l)=>{let a,i,c,$;if(1===s.nodeType){for(a=s.getAttribute(HYDRATE_CHILD_ID),a&&(i=a.split("."),i[0]!==l&&"0"!==i[0]||(c={$flags$:0,$hostId$:i[0],$nodeId$:i[1],$depth$:i[2],$index$:i[3],$tag$:s.tagName.toLowerCase(),$elm$:s,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},t.push(c),s.removeAttribute(HYDRATE_CHILD_ID),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c,e=c,n&&"0"===c.$depth$&&(n[c.$index$]=c.$elm$))),$=s.childNodes.length-1;$>=0;$--)clientHydrate(e,t,o,n,r,s.childNodes[$],l);if(s.shadowRoot)for($=s.shadowRoot.childNodes.length-1;$>=0;$--)clientHydrate(e,t,o,n,r,s.shadowRoot.childNodes[$],l)}else if(8===s.nodeType)i=s.nodeValue.split("."),i[1]!==l&&"0"!==i[1]||(a=i[0],c={$flags$:0,$hostId$:i[1],$nodeId$:i[2],$depth$:i[3],$index$:i[4],$elm$:s,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},a===TEXT_NODE_ID?(c.$elm$=s.nextSibling,c.$elm$&&3===c.$elm$.nodeType&&(c.$text$=c.$elm$.textContent,t.push(c),s.remove(),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c,n&&"0"===c.$depth$&&(n[c.$index$]=c.$elm$))):c.$hostId$===l&&(a===SLOT_NODE_ID?(c.$tag$="slot",i[5]?s["s-sn"]=c.$name$=i[5]:s["s-sn"]="",s["s-sr"]=!0,n&&(c.$elm$=doc.createElement(c.$tag$),c.$name$&&c.$elm$.setAttribute("name",c.$name$),s.parentNode.insertBefore(c.$elm$,s),s.remove(),"0"===c.$depth$&&(n[c.$index$]=c.$elm$)),o.push(c),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c):a===CONTENT_REF_ID&&(n?s.remove():(r["s-cr"]=s,s["s-cn"]=!0))));else if(e&&"style"===e.$tag$){const t=newVNode(null,s.textContent);t.$elm$=s,t.$index$="0",e.$children$=[t]}},initializeDocumentHydrate=(e,t)=>{if(1===e.nodeType){let o=0;for(;o<e.childNodes.length;o++)initializeDocumentHydrate(e.childNodes[o],t);if(e.shadowRoot)for(o=0;o<e.shadowRoot.childNodes.length;o++)initializeDocumentHydrate(e.shadowRoot.childNodes[o],t)}else if(8===e.nodeType){const o=e.nodeValue.split(".");o[0]===ORG_LOCATION_ID&&(t.set(o[1]+"."+o[2],e),e.nodeValue="",e["s-en"]=o[3])}},computeMode=e=>modeResolutionChain.map((t=>t(e))).find((e=>!!e)),setMode=e=>modeResolutionChain.push(e),parsePropertyValue=(e,t)=>null==e||isComplexType(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?String(e):e,getElement=e=>getHostRef(e).$hostElement$,emitEvent=(e,t,o)=>{const n=plt.ce(t,o);return e.dispatchEvent(n),n},rootAppliedStyles=new WeakMap,registerStyle=(e,t,o)=>{let n=styles.get(e);supportsConstructableStylesheets&&o?(n=n||new CSSStyleSheet,"string"==typeof n?n=t:n.replaceSync(t)):n=t,styles.set(e,n)},addStyle=(e,t,o)=>{var n;const r=getScopeId(t,o),s=styles.get(r);if(e=11===e.nodeType?e:doc,s)if("string"==typeof s){e=e.head||e;let o,l=rootAppliedStyles.get(e);if(l||rootAppliedStyles.set(e,l=new Set),!l.has(r)){if(e.host&&(o=e.querySelector(`[${HYDRATED_STYLE_ID}="${r}"]`)))o.innerHTML=s;else{o=doc.createElement("style"),o.innerHTML=s;const t=null!=(n=plt.$nonce$)?n:queryNonceMetaTagContent(doc);null!=t&&o.setAttribute("nonce",t),e.insertBefore(o,e.querySelector("link"))}4&t.$flags$&&(o.innerHTML+=SLOT_FB_CSS),l&&l.add(r)}}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]);return r},attachStyles=e=>{const t=e.$cmpMeta$,o=e.$hostElement$,n=t.$flags$,r=createTime("attachStyles",t.$tagName$),s=addStyle(o.shadowRoot?o.shadowRoot:o.getRootNode(),t,e.$modeName$);10&n&&(o["s-sc"]=s,o.classList.add(s+"-h")),r()},getScopeId=(e,t)=>"sc-"+(t&&32&e.$flags$?e.$tagName$+"-"+t:e.$tagName$),convertScopedToShadow=e=>e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),setAccessor=(e,t,o,n,r,s)=>{if(o!==n){let l=isMemberInElement(e,t),a=t.toLowerCase();if("class"===t){const t=e.classList,r=parseClassList(o),s=parseClassList(n);t.remove(...r.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!r.includes(e))))}else if("style"===t){for(const t in o)n&&null!=n[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in n)o&&n[t]===o[t]||(t.includes("-")?e.style.setProperty(t,n[t]):e.style[t]=n[t])}else if("key"===t);else if("ref"===t)n&&n(e);else if(l||"o"!==t[0]||"n"!==t[1]){const i=isComplexType(n);if((l||i&&null!==n)&&!r)try{if(e.tagName.includes("-"))e[t]=n;else{const r=null==n?"":n;"list"===t?l=!1:null!=o&&e[t]==r||(e[t]=r)}}catch(e){}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),null==n||!1===n?!1===n&&""!==e.getAttribute(t)||(c?e.removeAttributeNS(XLINK_NS,t):e.removeAttribute(t)):(!l||4&s||r)&&!i&&(n=!0===n?"":n,c?e.setAttributeNS(XLINK_NS,t,n):e.setAttribute(t,n))}else if(t="-"===t[2]?t.slice(3):isMemberInElement(win,a)?a.slice(2):a[2]+t.slice(3),o||n){const r=t.endsWith(CAPTURE_EVENT_SUFFIX);t=t.replace(CAPTURE_EVENT_REGEX,""),o&&plt.rel(e,t,o,r),n&&plt.ael(e,t,n,r)}}},parseClassListRegex=/\s/,parseClassList=e=>e?e.split(parseClassListRegex):[],CAPTURE_EVENT_SUFFIX="Capture",CAPTURE_EVENT_REGEX=new RegExp(CAPTURE_EVENT_SUFFIX+"$"),updateElement=(e,t,o)=>{const n=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,r=e&&e.$attrs$||EMPTY_OBJ,s=t.$attrs$||EMPTY_OBJ;for(const e of sortedAttrNames(Object.keys(r)))e in s||setAccessor(n,e,r[e],void 0,o,t.$flags$);for(const e of sortedAttrNames(Object.keys(s)))setAccessor(n,e,r[e],s[e],o,t.$flags$)};function sortedAttrNames(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var useNativeShadowDom=!1,checkSlotFallbackVisibility=!1,checkSlotRelocate=!1,isSvgMode=!1,createElm=(e,t,o,n)=>{var r;const s=t.$children$[o];let l,a,i,c=0;if(useNativeShadowDom||(checkSlotRelocate=!0,"slot"===s.$tag$&&(scopeId&&n.classList.add(scopeId+"-s"),s.$flags$|=s.$children$?2:1)),null!==s.$text$)l=s.$elm$=doc.createTextNode(s.$text$);else if(1&s.$flags$)l=s.$elm$=doc.createTextNode("");else{if(isSvgMode||(isSvgMode="svg"===s.$tag$),l=s.$elm$=doc.createElementNS(isSvgMode?SVG_NS:HTML_NS,2&s.$flags$?"slot-fb":s.$tag$),isSvgMode&&"foreignObject"===s.$tag$&&(isSvgMode=!1),updateElement(null,s,isSvgMode),isDef(scopeId)&&l["s-si"]!==scopeId&&l.classList.add(l["s-si"]=scopeId),s.$children$)for(c=0;c<s.$children$.length;++c)a=createElm(e,s,c,l),a&&l.appendChild(a);"svg"===s.$tag$?isSvgMode=!1:"foreignObject"===l.tagName&&(isSvgMode=!0)}return l["s-hn"]=hostTagName,3&s.$flags$&&(l["s-sr"]=!0,l["s-cr"]=contentRef,l["s-sn"]=s.$name$||"",l["s-rf"]=null==(r=s.$attrs$)?void 0:r.ref,i=e&&e.$children$&&e.$children$[o],i&&i.$tag$===s.$tag$&&e.$elm$&&putBackInOriginalLocation(e.$elm$,!1)),l},putBackInOriginalLocation=(e,t)=>{plt.$flags$|=1;const o=Array.from(e.childNodes);if(e["s-sr"]&&BUILD.experimentalSlotFixes){let t=e;for(;t=t.nextSibling;)t&&t["s-sn"]===e["s-sn"]&&t["s-sh"]===hostTagName&&o.push(t)}for(let e=o.length-1;e>=0;e--){const n=o[e];n["s-hn"]!==hostTagName&&n["s-ol"]&&(insertBefore(parentReferenceNode(n),n,referenceNode(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,checkSlotRelocate=!0),t&&putBackInOriginalLocation(n,t)}plt.$flags$&=-2},addVnodes=(e,t,o,n,r,s)=>{let l,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===hostTagName&&(a=a.shadowRoot);r<=s;++r)n[r]&&(l=createElm(null,o,r,e),l&&(n[r].$elm$=l,insertBefore(a,l,referenceNode(t))))},removeVnodes=(e,t,o)=>{for(let n=t;n<=o;++n){const t=e[n];if(t){const e=t.$elm$;nullifyVNodeRefs(t),e&&(checkSlotFallbackVisibility=!0,e["s-ol"]?e["s-ol"].remove():putBackInOriginalLocation(e,!0),e.remove())}}},updateChildren=(e,t,o,n,r=!1)=>{let s,l,a=0,i=0,c=0,$=0,d=t.length-1,p=t[0],m=t[d],u=n.length-1,h=n[0],f=n[u];for(;a<=d&&i<=u;)if(null==p)p=t[++a];else if(null==m)m=t[--d];else if(null==h)h=n[++i];else if(null==f)f=n[--u];else if(isSameVnode(p,h,r))patch(p,h,r),p=t[++a],h=n[++i];else if(isSameVnode(m,f,r))patch(m,f,r),m=t[--d],f=n[--u];else if(isSameVnode(p,f,r))"slot"!==p.$tag$&&"slot"!==f.$tag$||putBackInOriginalLocation(p.$elm$.parentNode,!1),patch(p,f,r),insertBefore(e,p.$elm$,m.$elm$.nextSibling),p=t[++a],f=n[--u];else if(isSameVnode(m,h,r))"slot"!==p.$tag$&&"slot"!==f.$tag$||putBackInOriginalLocation(m.$elm$.parentNode,!1),patch(m,h,r),insertBefore(e,m.$elm$,p.$elm$),m=t[--d],h=n[++i];else{for(c=-1,$=a;$<=d;++$)if(t[$]&&null!==t[$].$key$&&t[$].$key$===h.$key$){c=$;break}c>=0?(l=t[c],l.$tag$!==h.$tag$?s=createElm(t&&t[i],o,c,e):(patch(l,h,r),t[c]=void 0,s=l.$elm$),h=n[++i]):(s=createElm(t&&t[i],o,i,e),h=n[++i]),s&&insertBefore(parentReferenceNode(p.$elm$),s,referenceNode(p.$elm$))}a>d?addVnodes(e,null==n[u+1]?null:n[u+1].$elm$,o,n,i,u):i>u&&removeVnodes(t,a,d)},isSameVnode=(e,t,o=!1)=>e.$tag$===t.$tag$&&("slot"===e.$tag$?e.$name$===t.$name$:!!o||e.$key$===t.$key$),referenceNode=e=>e&&e["s-ol"]||e,parentReferenceNode=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,patch=(e,t,o=!1)=>{const n=t.$elm$=e.$elm$,r=e.$children$,s=t.$children$,l=t.$tag$,a=t.$text$;let i;null===a?(isSvgMode="svg"===l||"foreignObject"!==l&&isSvgMode,("slot"!==l||useNativeShadowDom)&&updateElement(e,t,isSvgMode),null!==r&&null!==s?updateChildren(n,r,t,s,o):null!==s?(null!==e.$text$&&(n.textContent=""),addVnodes(n,null,t,s,0,s.length-1)):null!==r&&removeVnodes(r,0,r.length-1),isSvgMode&&"svg"===l&&(isSvgMode=!1)):(i=n["s-cr"])?i.parentNode.textContent=a:e.$text$!==a&&(n.data=a)},updateFallbackSlotVisibility=e=>{const t=e.childNodes;for(const e of t)if(1===e.nodeType){if(e["s-sr"]){const o=e["s-sn"];e.hidden=!1;for(const n of t)if(n!==e)if(n["s-hn"]!==e["s-hn"]||""!==o){if(1===n.nodeType&&(o===n.getAttribute("slot")||o===n["s-sn"])||3===n.nodeType&&o===n["s-sn"]){e.hidden=!0;break}}else if(1===n.nodeType||3===n.nodeType&&""!==n.textContent.trim()){e.hidden=!0;break}}updateFallbackSlotVisibility(e)}},relocateNodes=[],markSlotContentForRelocation=e=>{let t,o,n;for(const r of e.childNodes){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){o=t.parentNode.childNodes;const e=r["s-sn"];for(n=o.length-1;n>=0;n--)if(t=o[n],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==r["s-hn"]&&!BUILD.experimentalSlotFixes)if(isNodeLocatedInSlot(t,e)){let o=relocateNodes.find((e=>e.$nodeToRelocate$===t));checkSlotFallbackVisibility=!0,t["s-sn"]=t["s-sn"]||e,o?(o.$nodeToRelocate$["s-sh"]=r["s-hn"],o.$slotRefNode$=r):(t["s-sh"]=r["s-hn"],relocateNodes.push({$slotRefNode$:r,$nodeToRelocate$:t})),t["s-sr"]&&relocateNodes.map((e=>{isNodeLocatedInSlot(e.$nodeToRelocate$,t["s-sn"])&&(o=relocateNodes.find((e=>e.$nodeToRelocate$===t)),o&&!e.$slotRefNode$&&(e.$slotRefNode$=o.$slotRefNode$))}))}else relocateNodes.some((e=>e.$nodeToRelocate$===t))||relocateNodes.push({$nodeToRelocate$:t})}1===r.nodeType&&markSlotContentForRelocation(r)}},isNodeLocatedInSlot=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,nullifyVNodeRefs=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(nullifyVNodeRefs)},insertBefore=(e,t,o)=>null==e?void 0:e.insertBefore(t,o),renderVdom=(e,t,o=!1)=>{var n,r,s,l;const a=e.$hostElement$,i=e.$cmpMeta$,c=e.$vnode$||newVNode(null,null),$=isHost(t)?t:h(null,null,t);if(hostTagName=a.tagName,i.$attrsToReflect$&&($.$attrs$=$.$attrs$||{},i.$attrsToReflect$.map((([e,t])=>$.$attrs$[t]=a[e]))),o&&$.$attrs$)for(const e of Object.keys($.$attrs$))a.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&($.$attrs$[e]=a[e]);if($.$tag$=null,$.$flags$|=4,e.$vnode$=$,$.$elm$=c.$elm$=a.shadowRoot||a,scopeId=a["s-sc"],useNativeShadowDom=!!(1&i.$flags$),contentRef=a["s-cr"],checkSlotFallbackVisibility=!1,patch(c,$,o),plt.$flags$|=1,checkSlotRelocate){markSlotContentForRelocation($.$elm$);for(const e of relocateNodes){const t=e.$nodeToRelocate$;if(!t["s-ol"]){const e=doc.createTextNode("");e["s-nr"]=t,insertBefore(t.parentNode,t["s-ol"]=e,t)}}for(const e of relocateNodes){const t=e.$nodeToRelocate$,a=e.$slotRefNode$;if(a){const e=a.parentNode;let o=a.nextSibling;{let s=null==(n=t["s-ol"])?void 0:n.previousSibling;for(;s;){let n=null!=(r=s["s-nr"])?r:null;if(n&&n["s-sn"]===t["s-sn"]&&e===n.parentNode){for(n=n.nextSibling;n===t||(null==n?void 0:n["s-sr"]);)n=null==n?void 0:n.nextSibling;if(!n||!n["s-nr"]){o=n;break}}s=s.previousSibling}}(!o&&e!==t.parentNode||t.nextSibling!==o)&&t!==o&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),insertBefore(e,t,o),1===t.nodeType&&(t.hidden=null!=(s=t["s-ih"])&&s)),t&&"function"==typeof a["s-rf"]&&a["s-rf"](t)}else 1===t.nodeType&&(o&&(t["s-ih"]=null!=(l=t.hidden)&&l),t.hidden=!0)}}checkSlotFallbackVisibility&&updateFallbackSlotVisibility($.$elm$),plt.$flags$&=-2,relocateNodes.length=0,contentRef=void 0},attachToAncestor=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.$onRenderResolve$=t)))},scheduleUpdate=(e,t)=>{if(4&e.$flags$)return void(e.$flags$|=512);attachToAncestor(e,e.$ancestorComponent$);return dispatchHooks(e,t)},dispatchHooks=(e,t)=>{const o=e.$hostElement$,n=createTime("scheduleUpdate",e.$cmpMeta$.$tagName$),r=e.$lazyInstance$;if(!r)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid KoliBri runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let s;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map((([e,t])=>safeCall(r,e,t))),e.$queuedListeners$=void 0),s=safeCall(r,"componentWillLoad")),s=enqueue(s,(()=>safeCall(r,"componentWillRender"))),n(),enqueue(s,(()=>updateComponent(e,r,t)))},enqueue=(e,t)=>isPromisey(e)?e.then(t):t(),isPromisey=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,updateComponent=async(e,t,o)=>{var n;const r=e.$hostElement$,s=createTime("update",e.$cmpMeta$.$tagName$),l=r["s-rc"];o&&attachStyles(e);const a=createTime("render",e.$cmpMeta$.$tagName$);callRender(e,t,r,o),l&&(l.map((e=>e())),r["s-rc"]=void 0),a(),s();{const t=null!=(n=r["s-p"])?n:[],o=()=>postUpdateComponent(e);0===t.length?o():(Promise.all(t).then(o),e.$flags$|=4,t.length=0)}},callRender=(e,t,o,n)=>{try{t=t.render(),e.$flags$|=2,renderVdom(e,t,n)}catch(t){consoleError(t,e.$hostElement$)}return null},postUpdateComponent=e=>{const t=e.$cmpMeta$.$tagName$,o=e.$hostElement$,n=createTime("postUpdate",t),r=e.$lazyInstance$,s=e.$ancestorComponent$;safeCall(r,"componentDidRender"),64&e.$flags$?n():(e.$flags$|=64,addHydratedFlag(o),safeCall(r,"componentDidLoad"),n(),e.$onReadyResolve$(o),s||appDidLoad()),e.$onInstanceResolve$(o),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&nextTick((()=>scheduleUpdate(e,!1))),e.$flags$&=-517},appDidLoad=e=>{addHydratedFlag(doc.documentElement),nextTick((()=>emitEvent(win,"appload",{detail:{namespace:"kolibri"}})))},safeCall=(e,t,o)=>{if(e&&e[t])try{return e[t](o)}catch(e){consoleError(e)}},addHydratedFlag=e=>{var t;return e.classList.add(null!=(t=BUILD.hydratedSelectorName)?t:"hydrated")},getValue=(e,t)=>getHostRef(e).$instanceValues$.get(t),setValue=(e,t,o,n)=>{const r=getHostRef(e);if(!r)throw new Error(`Couldn't find host element for "${n.$tagName$}" as it is unknown to this KoliBri runtime. This usually happens when integrating a 3rd party KoliBri component with another KoliBri component or application. Please reach out to the maintainers of the 3rd party KoliBri component or report this on the KoliBri Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const s=r.$hostElement$,l=r.$instanceValues$.get(t),a=r.$flags$,i=r.$lazyInstance$;o=parsePropertyValue(o,n.$members$[t][0]);const c=Number.isNaN(l)&&Number.isNaN(o);if((!(8&a)||void 0===l)&&(o!==l&&!c)&&(r.$instanceValues$.set(t,o),i)){if(n.$watchers$&&128&a){const e=n.$watchers$[t];e&&e.map((e=>{try{i[e](o,l,t)}catch(e){consoleError(e,s)}}))}2==(18&a)&&scheduleUpdate(r,!1)}},proxyComponent=(e,t,o)=>{var n;const r=e.prototype;if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const s=Object.entries(t.$members$);if(s.map((([e,[n]])=>{31&n||2&o&&32&n?Object.defineProperty(r,e,{get(){return getValue(this,e)},set(o){setValue(this,e,o,t)},configurable:!0,enumerable:!0}):1&o&&64&n&&Object.defineProperty(r,e,{value(...t){var o;const n=getHostRef(this);return null==(o=null==n?void 0:n.$onInstancePromise$)?void 0:o.then((()=>{var o;return null==(o=n.$lazyInstance$)?void 0:o[e](...t)}))}})})),1&o){const o=new Map;r.attributeChangedCallback=function(e,n,s){plt.jmp((()=>{var l;const a=o.get(e);if(this.hasOwnProperty(a))s=this[a],delete this[a];else{if(r.hasOwnProperty(a)&&"number"==typeof this[a]&&this[a]==s)return;if(null==a){const o=getHostRef(this),r=null==o?void 0:o.$flags$;if(r&&!(8&r)&&128&r&&s!==n){const r=o.$lazyInstance$,a=null==(l=t.$watchers$)?void 0:l[e];null==a||a.forEach((t=>{null!=r[t]&&r[t].call(r,s,n,e)}))}return}}this[a]=(null!==s||"boolean"!=typeof this[a])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(n=t.$watchers$)?n:{}),...s.filter((([e,t])=>15&t[0])).map((([e,n])=>{var r;const s=n[1]||e;return o.set(s,e),512&n[0]&&(null==(r=t.$attrsToReflect$)||r.push([e,s])),s}))]))}}return e},initializeComponent=async(e,t,o,n)=>{let r;if(!(32&t.$flags$)){t.$flags$|=32;if(o.$lazyBundleId$){const e=loadModule(o);if(e&&"then"in e){const t=uniqueTime();r=await e,t()}else r=e;if(!r)throw new Error(`Constructor for "${o.$tagName$}#${t.$modeName$}" was not found`);r.isProxied||(o.$watchers$=r.watchers,proxyComponent(r,o,2),r.isProxied=!0);const n=createTime("createInstance",o.$tagName$);t.$flags$|=8;try{new r(t)}catch(e){consoleError(e)}t.$flags$&=-9,t.$flags$|=128,n(),fireConnectedCallback(t.$lazyInstance$)}else{r=e.constructor;const o=e.localName;customElements.whenDefined(o).then((()=>t.$flags$|=128))}if(r&&r.style){let n=r.style;"string"!=typeof n&&(t.$modeName$=computeMode(e),t.$modeName$&&(n=n[t.$modeName$]));const s=getScopeId(o,t.$modeName$);if(!styles.has(s)){const e=createTime("registerStyles",o.$tagName$);registerStyle(s,n,!!(1&o.$flags$)),e()}}}const s=t.$ancestorComponent$,l=()=>scheduleUpdate(t,!0);s&&s["s-rc"]?s["s-rc"].push(l):l()},fireConnectedCallback=e=>{safeCall(e,"connectedCallback")},connectedCallback=e=>{if(!(1&plt.$flags$)){const t=getHostRef(e),o=t.$cmpMeta$,n=createTime("connectedCallback",o.$tagName$);if(1&t.$flags$)addHostEventListeners(e,t,o.$listeners$),(null==t?void 0:t.$lazyInstance$)?fireConnectedCallback(t.$lazyInstance$):(null==t?void 0:t.$onReadyPromise$)&&t.$onReadyPromise$.then((()=>fireConnectedCallback(t.$lazyInstance$)));else{let n;if(t.$flags$|=1,n=e.getAttribute(HYDRATE_ID),n){if(1&o.$flags$){const t=addStyle(e.shadowRoot,o,e.getAttribute("s-mode"));e.classList.remove(t+"-h",t+"-s")}initializeClientHydrate(e,o.$tagName$,n,t)}n||12&o.$flags$&&setContentReference(e);{let o=e;for(;o=o.parentNode||o.host;)if(1===o.nodeType&&o.hasAttribute("s-id")&&o["s-p"]||o["s-p"]){attachToAncestor(t,t.$ancestorComponent$=o);break}}o.$members$&&Object.entries(o.$members$).map((([t,[o]])=>{if(31&o&&e.hasOwnProperty(t)){const o=e[t];delete e[t],e[t]=o}})),initializeComponent(e,t,o)}n()}},setContentReference=e=>{const t=e["s-cr"]=doc.createComment("");t["s-cn"]=!0,insertBefore(e,t,e.firstChild)},disconnectInstance=e=>{safeCall(e,"disconnectedCallback")},disconnectedCallback=async e=>{if(!(1&plt.$flags$)){const t=getHostRef(e);t.$rmListeners$&&(t.$rmListeners$.map((e=>e())),t.$rmListeners$=void 0),(null==t?void 0:t.$lazyInstance$)?disconnectInstance(t.$lazyInstance$):(null==t?void 0:t.$onReadyPromise$)&&t.$onReadyPromise$.then((()=>disconnectInstance(t.$lazyInstance$)))}},bootstrapLazy=(e,t={})=>{var o;const n=createTime(),r=[],s=t.exclude||[],l=win.customElements,a=doc.head,i=a.querySelector("meta[charset]"),c=doc.createElement("style"),$=[],d=doc.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);let p,m=!0,u=0;for(Object.assign(plt,t),plt.$resourcesUrl$=new URL(t.resourcesUrl||"./",doc.baseURI).href,plt.$flags$|=2;u<d.length;u++)registerStyle(d[u].getAttribute(HYDRATED_STYLE_ID),convertScopedToShadow(d[u].innerHTML),!0);let h=!1;if(e.map((e=>{e[1].map((o=>{var n;const a={$flags$:o[0],$tagName$:o[1],$members$:o[2],$listeners$:o[3]};4&a.$flags$&&(h=!0),a.$members$=o[2],a.$listeners$=o[3],a.$attrsToReflect$=[],a.$watchers$=null!=(n=o[4])?n:{};const i=t.transformTagName?t.transformTagName(a.$tagName$):a.$tagName$,c=class extends HTMLElement{constructor(e){super(e),registerHost(e=this,a),1&a.$flags$&&e.attachShadow({mode:"open"})}connectedCallback(){p&&(clearTimeout(p),p=null),m?$.push(this):plt.jmp((()=>connectedCallback(this)))}disconnectedCallback(){plt.jmp((()=>disconnectedCallback(this)))}componentOnReady(){return getHostRef(this).$onReadyPromise$}};a.$lazyBundleId$=e[0],s.includes(i)||l.get(i)||(r.push(i),l.define(i,proxyComponent(c,a,1)))}))})),r.length>0&&(h&&(c.textContent+=SLOT_FB_CSS),c.textContent+=r+HYDRATED_CSS,c.innerHTML.length)){c.setAttribute("data-styles","");const e=null!=(o=plt.$nonce$)?o:queryNonceMetaTagContent(doc);null!=e&&c.setAttribute("nonce",e),a.insertBefore(c,i?i.nextSibling:a.firstChild)}m=!1,$.length?$.map((e=>e.connectedCallback())):plt.jmp((()=>p=setTimeout(appDidLoad,30))),n()},Fragment=(e,t)=>t,addHostEventListeners=(e,t,o,n)=>{o&&o.map((([o,n,r])=>{const s=getHostListenerTarget(e,o),l=hostListenerProxy(t,r),a=hostListenerOpts(o);plt.ael(s,n,l,a),(t.$rmListeners$=t.$rmListeners$||[]).push((()=>plt.rel(s,n,l,a)))}))},hostListenerProxy=(e,t)=>o=>{var n;try{256&e.$flags$?null==(n=e.$lazyInstance$)||n[t](o):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,o])}catch(e){consoleError(e)}},getHostListenerTarget=(e,t)=>8&t?win:e,hostListenerOpts=e=>supportsListenerOptions?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e),setNonce=e=>plt.$nonce$=e,hostRefs=new WeakMap,getHostRef=e=>hostRefs.get(e),registerInstance=(e,t)=>hostRefs.set(t.$lazyInstance$=e,t),registerHost=(e,t)=>{const o={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return o.$onInstancePromise$=new Promise((e=>o.$onInstanceResolve$=e)),o.$onReadyPromise$=new Promise((e=>o.$onReadyResolve$=e)),e["s-p"]=[],e["s-rc"]=[],addHostEventListeners(e,o,t.$listeners$),hostRefs.set(e,o)},isMemberInElement=(e,t)=>t in e,consoleError=(e,t)=>(0,console.error)(e,t),cmpModules=new Map,loadModule=(e,t,o)=>{const n=e.$tagName$.replace(/-/g,"_"),r=e.$lazyBundleId$;if(!r)return;const s=cmpModules.get(r);if(s)return s[n];if(!o||!BUILD.hotModuleReplacement){const e=e=>(cmpModules.set(r,e),e[n]);switch(r){case"kol-abbr":return import("./kol-abbr.entry.js").then(e,consoleError);case"kol-accordion":return import("./kol-accordion.entry.js").then(e,consoleError);case"kol-alert":return import("./kol-alert.entry.js").then(e,consoleError);case"kol-avatar":return import("./kol-avatar.entry.js").then(e,consoleError);case"kol-badge":return import("./kol-badge.entry.js").then(e,consoleError);case"kol-breadcrumb":return import("./kol-breadcrumb.entry.js").then(e,consoleError);case"kol-button":return import("./kol-button.entry.js").then(e,consoleError);case"kol-button-group":return import("./kol-button-group.entry.js").then(e,consoleError);case"kol-button-link":return import("./kol-button-link.entry.js").then(e,consoleError);case"kol-card":return import("./kol-card.entry.js").then(e,consoleError);case"kol-details":return import("./kol-details.entry.js").then(e,consoleError);case"kol-drawer":return import("./kol-drawer.entry.js").then(e,consoleError);case"kol-form":return import("./kol-form.entry.js").then(e,consoleError);case"kol-heading":return import("./kol-heading.entry.js").then(e,consoleError);case"kol-icon":return import("./kol-icon.entry.js").then(e,consoleError);case"kol-image":return import("./kol-image.entry.js").then(e,consoleError);case"kol-indented-text":return import("./kol-indented-text.entry.js").then(e,consoleError);case"kol-input-checkbox":return import("./kol-input-checkbox.entry.js").then(e,consoleError);case"kol-input-color":return import("./kol-input-color.entry.js").then(e,consoleError);case"kol-input-date":return import("./kol-input-date.entry.js").then(e,consoleError);case"kol-input-email":return import("./kol-input-email.entry.js").then(e,consoleError);case"kol-input-file":return import("./kol-input-file.entry.js").then(e,consoleError);case"kol-input-number":return import("./kol-input-number.entry.js").then(e,consoleError);case"kol-input-password":return import("./kol-input-password.entry.js").then(e,consoleError);case"kol-input-radio":return import("./kol-input-radio.entry.js").then(e,consoleError);case"kol-input-text":return import("./kol-input-text.entry.js").then(e,consoleError);case"kol-kolibri":return import("./kol-kolibri.entry.js").then(e,consoleError);case"kol-link":return import("./kol-link.entry.js").then(e,consoleError);case"kol-link-button":return import("./kol-link-button.entry.js").then(e,consoleError);case"kol-link-group":return import("./kol-link-group.entry.js").then(e,consoleError);case"kol-logo":return import("./kol-logo.entry.js").then(e,consoleError);case"kol-modal":return import("./kol-modal.entry.js").then(e,consoleError);case"kol-nav":return import("./kol-nav.entry.js").then(e,consoleError);case"kol-pagination":return import("./kol-pagination.entry.js").then(e,consoleError);case"kol-progress":return import("./kol-progress.entry.js").then(e,consoleError);case"kol-quote":return import("./kol-quote.entry.js").then(e,consoleError);case"kol-select":return import("./kol-select.entry.js").then(e,consoleError);case"kol-skip-nav":return import("./kol-skip-nav.entry.js").then(e,consoleError);case"kol-spin":return import("./kol-spin.entry.js").then(e,consoleError);case"kol-split-button":return import("./kol-split-button.entry.js").then(e,consoleError);case"kol-symbol":return import("./kol-symbol.entry.js").then(e,consoleError);case"kol-table":return import("./kol-table.entry.js").then(e,consoleError);case"kol-table-stateless":return import("./kol-table-stateless.entry.js").then(e,consoleError);case"kol-table-stateful":return import("./kol-table-stateful.entry.js").then(e,consoleError);case"kol-tabs":return import("./kol-tabs.entry.js").then(e,consoleError);case"kol-toolbar":return import("./kol-toolbar.entry.js").then(e,consoleError);case"kol-textarea":return import("./kol-textarea.entry.js").then(e,consoleError);case"kol-toast-container":return import("./kol-toast-container.entry.js").then(e,consoleError);case"kol-tree":return import("./kol-tree.entry.js").then(e,consoleError);case"kol-tree-item":return import("./kol-tree-item.entry.js").then(e,consoleError);case"kol-version":return import("./kol-version.entry.js").then(e,consoleError);case"kol-alert-wc":return import("./kol-alert-wc.entry.js").then(e,consoleError);case"kol-avatar-wc":return import("./kol-avatar-wc.entry.js").then(e,consoleError);case"kol-button-group-wc":return import("./kol-button-group-wc.entry.js").then(e,consoleError);case"kol-button-wc":return import("./kol-button-wc.entry.js").then(e,consoleError);case"kol-combobox":return import("./kol-combobox.entry.js").then(e,consoleError);case"kol-heading-wc":return import("./kol-heading-wc.entry.js").then(e,consoleError);case"kol-input":return import("./kol-input.entry.js").then(e,consoleError);case"kol-input-range":return import("./kol-input-range.entry.js").then(e,consoleError);case"kol-link-wc":return import("./kol-link-wc.entry.js").then(e,consoleError);case"kol-popover-wc":return import("./kol-popover-wc.entry.js").then(e,consoleError);case"kol-span":return import("./kol-span.entry.js").then(e,consoleError);case"kol-span-wc":return import("./kol-span-wc.entry.js").then(e,consoleError);case"kol-table-stateless-wc":return import("./kol-table-stateless-wc.entry.js").then(e,consoleError);case"kol-tooltip-wc":return import("./kol-tooltip-wc.entry.js").then(e,consoleError);case"kol-tree-item-wc":return import("./kol-tree-item-wc.entry.js").then(e,consoleError);case"kol-tree-wc":return import("./kol-tree-wc.entry.js").then(e,consoleError)}}return import(`./${r}.entry.js`).then((e=>(cmpModules.set(r,e),e[n])),consoleError)},styles=new Map,modeResolutionChain=[],win="undefined"!=typeof window?window:{},doc=win.document||{head:{}},plt={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,o,n)=>e.addEventListener(t,o,n),rel:(e,t,o,n)=>e.removeEventListener(t,o,n),ce:(e,t)=>new CustomEvent(e,t)},supportsShadow=!0,supportsListenerOptions=(()=>{let e=!1;try{doc.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch(e){}return e})(),promiseResolve=e=>Promise.resolve(e),supportsConstructableStylesheets=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),nextTick=e=>promiseResolve().then(e);export{Env as E,Fragment as F,Host as H,setMode as a,bootstrapLazy as b,getElement as g,h,promiseResolve as p,registerInstance as r,setNonce as s};