@public-ui/components 2.1.8-rc.0 → 2.1.9-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (717) hide show
  1. package/custom-elements.json +1 -277
  2. package/dist/cjs/{InternalUnderlinedAccessKey-0d7f5c6f.js → InternalUnderlinedAccessKey-7cf3c136.js} +1 -1
  3. package/dist/cjs/{InternalUnderlinedAccessKey-0d7f5c6f.js.map → InternalUnderlinedAccessKey-7cf3c136.js.map} +1 -1
  4. package/dist/cjs/access-key-34e56e4c.js +4 -0
  5. package/dist/cjs/{access-key-dda2764c.js.map → access-key-34e56e4c.js.map} +1 -1
  6. package/dist/cjs/{align-83af4905.js → align-3c503831.js} +1 -1
  7. package/dist/cjs/{align-83af4905.js.map → align-3c503831.js.map} +1 -1
  8. package/dist/cjs/app-globals-8ded3cf0.js +4 -0
  9. package/dist/cjs/app-globals-8ded3cf0.js.map +1 -0
  10. package/dist/cjs/{aria-expanded-9cc5b0f8.js → aria-expanded-23b849c8.js} +1 -1
  11. package/dist/cjs/{aria-expanded-9cc5b0f8.js.map → aria-expanded-23b849c8.js.map} +1 -1
  12. package/dist/cjs/{associated.controller-6ef4fe6e.js → associated.controller-e7651bb3.js} +1 -1
  13. package/dist/cjs/{associated.controller-6ef4fe6e.js.map → associated.controller-e7651bb3.js.map} +1 -1
  14. package/dist/cjs/{color-cd543319.js → color-d5846b87.js} +1 -1
  15. package/dist/cjs/{color-cd543319.js.map → color-d5846b87.js.map} +1 -1
  16. package/dist/cjs/component-names-6dbd7fe4.js +4 -0
  17. package/dist/cjs/component-names-6dbd7fe4.js.map +1 -0
  18. package/dist/cjs/{controller-117b4d51.js → controller-2a716a90.js} +1 -1
  19. package/dist/cjs/{controller-117b4d51.js.map → controller-2a716a90.js.map} +1 -1
  20. package/dist/cjs/{controller-1840e05f.js → controller-2acd3570.js} +1 -1
  21. package/dist/cjs/{controller-1840e05f.js.map → controller-2acd3570.js.map} +1 -1
  22. package/dist/cjs/{controller-7a54a71e.js → controller-43f44829.js} +1 -1
  23. package/dist/cjs/{controller-7a54a71e.js.map → controller-43f44829.js.map} +1 -1
  24. package/dist/cjs/{controller-abfeee06.js → controller-b94161ed.js} +1 -1
  25. package/dist/cjs/{controller-abfeee06.js.map → controller-b94161ed.js.map} +1 -1
  26. package/dist/cjs/{controller-fa7804d6.js → controller-f053c10d.js} +1 -1
  27. package/dist/cjs/{controller-fa7804d6.js.map → controller-f053c10d.js.map} +1 -1
  28. package/dist/cjs/{controller-icon-a817b9b8.js → controller-icon-38bb0eaa.js} +1 -1
  29. package/dist/cjs/{controller-icon-a817b9b8.js.map → controller-icon-38bb0eaa.js.map} +1 -1
  30. package/dist/cjs/custom-class-3504ba89.js +4 -0
  31. package/dist/cjs/{custom-class-691f9ea4.js.map → custom-class-3504ba89.js.map} +1 -1
  32. package/dist/cjs/{dev.utils-0390f767.js → dev.utils-74a81f34.js} +1 -1
  33. package/dist/cjs/{dev.utils-0390f767.js.map → dev.utils-74a81f34.js.map} +1 -1
  34. package/dist/cjs/{devtools-d86cb62f.js → devtools-a547a791.js} +1 -1
  35. package/dist/cjs/{devtools-d86cb62f.js.map → devtools-a547a791.js.map} +1 -1
  36. package/dist/cjs/disabled-b52570d6.js +4 -0
  37. package/dist/cjs/{disabled-523f7adc.js.map → disabled-b52570d6.js.map} +1 -1
  38. package/dist/cjs/{events-a9d909db.js → events-d31764bd.js} +1 -1
  39. package/dist/cjs/{events-a9d909db.js.map → events-d31764bd.js.map} +1 -1
  40. package/dist/cjs/form-field-msg-8fbeff69.js +4 -0
  41. package/dist/cjs/{form-field-msg-e2ee9067.js.map → form-field-msg-8fbeff69.js.map} +1 -1
  42. package/dist/cjs/has-closer-ec9dd05f.js +4 -0
  43. package/dist/cjs/{has-closer-143268e8.js.map → has-closer-ec9dd05f.js.map} +1 -1
  44. package/dist/cjs/has-counter-df7be5b1.js +4 -0
  45. package/dist/cjs/{has-counter-d8a31282.js.map → has-counter-df7be5b1.js.map} +1 -1
  46. package/dist/cjs/hide-label-9c7c3e00.js +4 -0
  47. package/dist/cjs/{hide-label-82890fe7.js.map → hide-label-9c7c3e00.js.map} +1 -1
  48. package/dist/cjs/href-9981395d.js +4 -0
  49. package/dist/cjs/{href-a32df224.js.map → href-9981395d.js.map} +1 -1
  50. package/dist/cjs/{icons-dc98cea7.js → icons-a8d865aa.js} +1 -1
  51. package/dist/cjs/{icons-dc98cea7.js.map → icons-a8d865aa.js.map} +1 -1
  52. package/dist/cjs/image-source-59cf6672.js +4 -0
  53. package/dist/cjs/{image-source-c6b8c632.js.map → image-source-59cf6672.js.map} +1 -1
  54. package/dist/cjs/index-45dd33c3.js +4 -0
  55. package/dist/cjs/index-45dd33c3.js.map +1 -0
  56. package/dist/cjs/{index-277fc2a7.js → index-d523b878.js} +1 -1
  57. package/dist/cjs/{index-277fc2a7.js.map → index-d523b878.js.map} +1 -1
  58. package/dist/cjs/index.cjs.js +1 -1
  59. package/dist/cjs/index.cjs.js.map +1 -1
  60. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  61. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  62. package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
  63. package/dist/cjs/kol-alert-wc.cjs.entry.js.map +1 -1
  64. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  65. package/dist/cjs/kol-alert.cjs.entry.js.map +1 -1
  66. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  67. package/dist/cjs/kol-avatar-wc.cjs.entry.js.map +1 -1
  68. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  69. package/dist/cjs/kol-avatar.cjs.entry.js.map +1 -1
  70. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  71. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-button-group-wc.cjs.entry.js +1 -1
  73. package/dist/cjs/kol-button-group-wc.cjs.entry.js.map +1 -1
  74. package/dist/cjs/kol-button-group.cjs.entry.js +1 -1
  75. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  77. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  78. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  79. package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
  80. package/dist/cjs/kol-combobox.cjs.entry.js.map +1 -1
  81. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  82. package/dist/cjs/kol-details.cjs.entry.js.map +1 -1
  83. package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
  84. package/dist/cjs/kol-drawer.cjs.entry.js.map +1 -1
  85. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  86. package/dist/cjs/kol-form.cjs.entry.js.map +1 -1
  87. package/dist/cjs/kol-heading-wc.cjs.entry.js +1 -1
  88. package/dist/cjs/kol-heading-wc.cjs.entry.js.map +1 -1
  89. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  90. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  91. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-indented-text-wc.cjs.entry.js +1 -1
  93. package/dist/cjs/kol-indented-text-wc.cjs.entry.js.map +1 -1
  94. package/dist/cjs/kol-indented-text.cjs.entry.js +1 -1
  95. package/dist/cjs/kol-indented-text.cjs.entry.js.map +1 -1
  96. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  97. package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
  98. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  99. package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
  100. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
  102. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  103. package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
  104. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  105. package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
  106. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  107. package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
  108. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  109. package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
  110. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  111. package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
  112. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  113. package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
  114. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  115. package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
  116. package/dist/cjs/kol-input.cjs.entry.js +1 -1
  117. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  118. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  119. package/dist/cjs/kol-link-group.cjs.entry.js +1 -1
  120. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  121. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  122. package/dist/cjs/kol-logo.cjs.entry.js +1 -1
  123. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  124. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  125. package/dist/cjs/kol-nav.cjs.entry.js.map +1 -1
  126. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  127. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  128. package/dist/cjs/kol-popover-wc.cjs.entry.js.map +1 -1
  129. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  130. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  131. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  132. package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
  133. package/dist/cjs/kol-single-select.cjs.entry.js +1 -1
  134. package/dist/cjs/kol-single-select.cjs.entry.js.map +1 -1
  135. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  136. package/dist/cjs/kol-span-wc.cjs.entry.js +1 -1
  137. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  138. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  139. package/dist/cjs/kol-split-button.cjs.entry.js.map +1 -1
  140. package/dist/cjs/kol-symbol.cjs.entry.js +1 -1
  141. package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
  142. package/dist/cjs/kol-table-stateful.cjs.entry.js.map +1 -1
  143. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
  144. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js.map +1 -1
  145. package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
  146. package/dist/cjs/kol-table-stateless.cjs.entry.js.map +1 -1
  147. package/dist/cjs/kol-table.cjs.entry.js +1 -1
  148. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  149. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  150. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  151. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  152. package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
  153. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  154. package/dist/cjs/kol-tooltip-wc.cjs.entry.js.map +1 -1
  155. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
  156. package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
  157. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  158. package/dist/cjs/kol-tree-wc.cjs.entry.js.map +1 -1
  159. package/dist/cjs/kol-tree.cjs.entry.js +1 -1
  160. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  161. package/dist/cjs/kolibri.cjs.js +1 -1
  162. package/dist/cjs/{label-5e56f4a8.js → label-601352a4.js} +1 -1
  163. package/dist/cjs/{label-5e56f4a8.js.map → label-601352a4.js.map} +1 -1
  164. package/dist/cjs/loader.cjs.js +1 -1
  165. package/dist/cjs/open-589280df.js +4 -0
  166. package/dist/cjs/{open-10ca3d4d.js.map → open-589280df.js.map} +1 -1
  167. package/dist/cjs/{prop.validators-9c1f1dbd.js → prop.validators-68958b0a.js} +1 -1
  168. package/dist/cjs/prop.validators-68958b0a.js.map +1 -0
  169. package/dist/cjs/rows-f05a1422.js +4 -0
  170. package/dist/cjs/{rows-df280396.js.map → rows-f05a1422.js.map} +1 -1
  171. package/dist/cjs/show-a1694e78.js +4 -0
  172. package/dist/cjs/{show-3a46ec81.js.map → show-a1694e78.js.map} +1 -1
  173. package/dist/cjs/{suggestions-5e3cc93f.js → suggestions-ebc74ae9.js} +1 -1
  174. package/dist/cjs/{suggestions-5e3cc93f.js.map → suggestions-ebc74ae9.js.map} +1 -1
  175. package/dist/cjs/{tab-index-a50181fc.js → tab-index-74743c67.js} +1 -1
  176. package/dist/cjs/{tab-index-a50181fc.js.map → tab-index-74743c67.js.map} +1 -1
  177. package/dist/cjs/tooltip-align-fa4e1395.js +4 -0
  178. package/dist/cjs/{tooltip-align-8c5c5618.js.map → tooltip-align-fa4e1395.js.map} +1 -1
  179. package/dist/cjs/{validation-b853d0e9.js → validation-406b147b.js} +1 -1
  180. package/dist/cjs/{validation-b853d0e9.js.map → validation-406b147b.js.map} +1 -1
  181. package/dist/cjs/{validation-7f19befc.js → validation-eebfcfd4.js} +1 -1
  182. package/dist/cjs/{validation-7f19befc.js.map → validation-eebfcfd4.js.map} +1 -1
  183. package/dist/components/color.js +1 -1
  184. package/dist/components/component-names.js +1 -1
  185. package/dist/components/component-names.js.map +1 -1
  186. package/dist/components/controller-icon.js +1 -1
  187. package/dist/components/controller2.js +1 -1
  188. package/dist/components/devtools.js +1 -1
  189. package/dist/components/events2.js +1 -1
  190. package/dist/components/icons.js +1 -1
  191. package/dist/components/index.js +1 -1
  192. package/dist/components/index.js.map +1 -1
  193. package/dist/components/kol-alert-wc.js +1 -1
  194. package/dist/components/kol-alert-wc.js.map +1 -1
  195. package/dist/components/kol-alert.js +1 -1
  196. package/dist/components/kol-alert.js.map +1 -1
  197. package/dist/components/kol-avatar-wc.js +1 -1
  198. package/dist/components/kol-avatar-wc.js.map +1 -1
  199. package/dist/components/kol-avatar.js +1 -1
  200. package/dist/components/kol-avatar.js.map +1 -1
  201. package/dist/components/kol-badge.js +1 -1
  202. package/dist/components/kol-breadcrumb.js +1 -1
  203. package/dist/components/kol-button-group-wc.js +1 -1
  204. package/dist/components/kol-button-group-wc.js.map +1 -1
  205. package/dist/components/kol-combobox.js +1 -1
  206. package/dist/components/kol-combobox.js.map +1 -1
  207. package/dist/components/kol-details.js +1 -1
  208. package/dist/components/kol-details.js.map +1 -1
  209. package/dist/components/kol-drawer.js +1 -1
  210. package/dist/components/kol-drawer.js.map +1 -1
  211. package/dist/components/kol-form.js +1 -1
  212. package/dist/components/kol-form.js.map +1 -1
  213. package/dist/components/kol-heading-wc.js +1 -1
  214. package/dist/components/kol-heading-wc.js.map +1 -1
  215. package/dist/components/kol-heading.js +1 -1
  216. package/dist/components/kol-icon.js +1 -1
  217. package/dist/components/kol-image.js +1 -1
  218. package/dist/components/kol-indented-text-wc.js +1 -1
  219. package/dist/components/kol-indented-text-wc.js.map +1 -1
  220. package/dist/components/kol-indented-text.js +1 -1
  221. package/dist/components/kol-indented-text.js.map +1 -1
  222. package/dist/components/kol-input-checkbox.js +1 -1
  223. package/dist/components/kol-input-checkbox.js.map +1 -1
  224. package/dist/components/kol-input-color.js +1 -1
  225. package/dist/components/kol-input-color.js.map +1 -1
  226. package/dist/components/kol-input-date.js +1 -1
  227. package/dist/components/kol-input-date.js.map +1 -1
  228. package/dist/components/kol-input-email.js +1 -1
  229. package/dist/components/kol-input-email.js.map +1 -1
  230. package/dist/components/kol-input-file.js +1 -1
  231. package/dist/components/kol-input-file.js.map +1 -1
  232. package/dist/components/kol-input-number.js +1 -1
  233. package/dist/components/kol-input-number.js.map +1 -1
  234. package/dist/components/kol-input-password.js +1 -1
  235. package/dist/components/kol-input-password.js.map +1 -1
  236. package/dist/components/kol-input-radio.js +1 -1
  237. package/dist/components/kol-input-radio.js.map +1 -1
  238. package/dist/components/kol-input-range.js +1 -1
  239. package/dist/components/kol-input-range.js.map +1 -1
  240. package/dist/components/kol-input-text.js +1 -1
  241. package/dist/components/kol-input-text.js.map +1 -1
  242. package/dist/components/kol-input.js +1 -1
  243. package/dist/components/kol-kolibri.js +1 -1
  244. package/dist/components/kol-link-button.js +1 -1
  245. package/dist/components/kol-link-group.js +1 -1
  246. package/dist/components/kol-link-wc.js +1 -1
  247. package/dist/components/kol-link.js +1 -1
  248. package/dist/components/kol-logo.js +1 -1
  249. package/dist/components/kol-modal.js +1 -1
  250. package/dist/components/kol-nav.js +1 -1
  251. package/dist/components/kol-nav.js.map +1 -1
  252. package/dist/components/kol-pagination.js +1 -1
  253. package/dist/components/kol-popover-wc.js +1 -1
  254. package/dist/components/kol-popover-wc.js.map +1 -1
  255. package/dist/components/kol-progress.js +1 -1
  256. package/dist/components/kol-quote.js +1 -1
  257. package/dist/components/kol-select.js +1 -1
  258. package/dist/components/kol-select.js.map +1 -1
  259. package/dist/components/kol-single-select.js +1 -1
  260. package/dist/components/kol-single-select.js.map +1 -1
  261. package/dist/components/kol-skip-nav.js +1 -1
  262. package/dist/components/kol-span-wc.js +1 -1
  263. package/dist/components/kol-spin.js +1 -1
  264. package/dist/components/kol-split-button.js +1 -1
  265. package/dist/components/kol-split-button.js.map +1 -1
  266. package/dist/components/kol-symbol.js +1 -1
  267. package/dist/components/kol-table-stateful.js +1 -1
  268. package/dist/components/kol-table-stateful.js.map +1 -1
  269. package/dist/components/kol-table-stateless-wc.js +1 -1
  270. package/dist/components/kol-table-stateless-wc.js.map +1 -1
  271. package/dist/components/kol-table-stateless.js +1 -1
  272. package/dist/components/kol-table-stateless.js.map +1 -1
  273. package/dist/components/kol-table.js +1 -1
  274. package/dist/components/kol-tabs.js +1 -1
  275. package/dist/components/kol-textarea.js +1 -1
  276. package/dist/components/kol-textarea.js.map +1 -1
  277. package/dist/components/kol-toast-container.js +1 -1
  278. package/dist/components/kol-toolbar.js +1 -1
  279. package/dist/components/kol-tooltip-wc.js +1 -1
  280. package/dist/components/kol-tooltip-wc.js.map +1 -1
  281. package/dist/components/kol-tree-item-wc.js +1 -1
  282. package/dist/components/kol-tree-item.js +1 -1
  283. package/dist/components/kol-tree-wc.js +1 -1
  284. package/dist/components/kol-tree-wc.js.map +1 -1
  285. package/dist/components/kol-tree.js +1 -1
  286. package/dist/components/kol-version.js +1 -1
  287. package/dist/components/prop.validators.js +1 -1
  288. package/dist/components/prop.validators.js.map +1 -1
  289. package/dist/esm/{InternalUnderlinedAccessKey-b2266b5a.js → InternalUnderlinedAccessKey-47cbf33a.js} +1 -1
  290. package/dist/esm/{InternalUnderlinedAccessKey-b2266b5a.js.map → InternalUnderlinedAccessKey-47cbf33a.js.map} +1 -1
  291. package/dist/esm/{access-key-729d2115.js → access-key-34f992c3.js} +1 -1
  292. package/dist/esm/{access-key-729d2115.js.map → access-key-34f992c3.js.map} +1 -1
  293. package/dist/esm/{align-78bab7b5.js → align-51311afa.js} +1 -1
  294. package/dist/esm/{align-78bab7b5.js.map → align-51311afa.js.map} +1 -1
  295. package/dist/esm/app-globals-65b048d2.js +4 -0
  296. package/dist/esm/app-globals-65b048d2.js.map +1 -0
  297. package/dist/esm/{aria-expanded-259cbe01.js → aria-expanded-2a5c6c4e.js} +1 -1
  298. package/dist/esm/{aria-expanded-259cbe01.js.map → aria-expanded-2a5c6c4e.js.map} +1 -1
  299. package/dist/esm/{associated.controller-15cdd804.js → associated.controller-4715556c.js} +1 -1
  300. package/dist/esm/{associated.controller-15cdd804.js.map → associated.controller-4715556c.js.map} +1 -1
  301. package/dist/esm/{color-b8652714.js → color-44dcb59b.js} +1 -1
  302. package/dist/esm/{color-b8652714.js.map → color-44dcb59b.js.map} +1 -1
  303. package/dist/esm/{component-names-0a8a1a6c.js → component-names-7f2c991e.js} +1 -1
  304. package/dist/esm/component-names-7f2c991e.js.map +1 -0
  305. package/dist/esm/{controller-fe5a6b8d.js → controller-724a3665.js} +1 -1
  306. package/dist/esm/{controller-fe5a6b8d.js.map → controller-724a3665.js.map} +1 -1
  307. package/dist/esm/{controller-2a4348e1.js → controller-b58153a2.js} +1 -1
  308. package/dist/esm/{controller-2a4348e1.js.map → controller-b58153a2.js.map} +1 -1
  309. package/dist/esm/{controller-8c35edf1.js → controller-e14790bc.js} +1 -1
  310. package/dist/esm/{controller-8c35edf1.js.map → controller-e14790bc.js.map} +1 -1
  311. package/dist/esm/{controller-0ab676b5.js → controller-f4077180.js} +1 -1
  312. package/dist/esm/{controller-0ab676b5.js.map → controller-f4077180.js.map} +1 -1
  313. package/dist/esm/{controller-ec60cfa6.js → controller-f99ec155.js} +1 -1
  314. package/dist/esm/{controller-ec60cfa6.js.map → controller-f99ec155.js.map} +1 -1
  315. package/dist/esm/{controller-icon-78e12429.js → controller-icon-1320c05c.js} +1 -1
  316. package/dist/esm/{controller-icon-78e12429.js.map → controller-icon-1320c05c.js.map} +1 -1
  317. package/dist/esm/custom-class-918278a4.js +4 -0
  318. package/dist/esm/{custom-class-1b4696e3.js.map → custom-class-918278a4.js.map} +1 -1
  319. package/dist/esm/{dev.utils-44ef1bde.js → dev.utils-e45b01b6.js} +1 -1
  320. package/dist/esm/{dev.utils-44ef1bde.js.map → dev.utils-e45b01b6.js.map} +1 -1
  321. package/dist/esm/{devtools-417fc238.js → devtools-c156ff25.js} +1 -1
  322. package/dist/esm/{devtools-417fc238.js.map → devtools-c156ff25.js.map} +1 -1
  323. package/dist/esm/{disabled-60f09b20.js → disabled-0e948e69.js} +1 -1
  324. package/dist/esm/{disabled-60f09b20.js.map → disabled-0e948e69.js.map} +1 -1
  325. package/dist/esm/{events-476662bc.js → events-44f13b27.js} +1 -1
  326. package/dist/esm/{events-476662bc.js.map → events-44f13b27.js.map} +1 -1
  327. package/dist/esm/form-field-msg-56a34400.js +4 -0
  328. package/dist/esm/{form-field-msg-22e08734.js.map → form-field-msg-56a34400.js.map} +1 -1
  329. package/dist/esm/{has-closer-f40b362c.js → has-closer-1805c7a8.js} +1 -1
  330. package/dist/esm/{has-closer-f40b362c.js.map → has-closer-1805c7a8.js.map} +1 -1
  331. package/dist/esm/{has-counter-798e2301.js → has-counter-d51a01dd.js} +1 -1
  332. package/dist/esm/{has-counter-798e2301.js.map → has-counter-d51a01dd.js.map} +1 -1
  333. package/dist/esm/{hide-label-1d403517.js → hide-label-7d9e8ee6.js} +1 -1
  334. package/dist/esm/{hide-label-1d403517.js.map → hide-label-7d9e8ee6.js.map} +1 -1
  335. package/dist/esm/{href-5e305ce2.js → href-876b240a.js} +1 -1
  336. package/dist/esm/{href-5e305ce2.js.map → href-876b240a.js.map} +1 -1
  337. package/dist/esm/{icons-b0b05e20.js → icons-33fc85f1.js} +1 -1
  338. package/dist/esm/{icons-b0b05e20.js.map → icons-33fc85f1.js.map} +1 -1
  339. package/dist/esm/{image-source-87526275.js → image-source-7b92b206.js} +1 -1
  340. package/dist/esm/{image-source-87526275.js.map → image-source-7b92b206.js.map} +1 -1
  341. package/dist/esm/{index-cf24d1fe.js → index-d62ddd65.js} +1 -1
  342. package/dist/esm/{index-cf24d1fe.js.map → index-d62ddd65.js.map} +1 -1
  343. package/dist/esm/index-fcc5bd94.js +4 -0
  344. package/dist/esm/index-fcc5bd94.js.map +1 -0
  345. package/dist/esm/index.js +1 -1
  346. package/dist/esm/index.js.map +1 -1
  347. package/dist/esm/kol-abbr.entry.js +1 -1
  348. package/dist/esm/kol-accordion.entry.js +1 -1
  349. package/dist/esm/kol-alert-wc.entry.js +1 -1
  350. package/dist/esm/kol-alert-wc.entry.js.map +1 -1
  351. package/dist/esm/kol-alert.entry.js +1 -1
  352. package/dist/esm/kol-alert.entry.js.map +1 -1
  353. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  354. package/dist/esm/kol-avatar-wc.entry.js.map +1 -1
  355. package/dist/esm/kol-avatar.entry.js +1 -1
  356. package/dist/esm/kol-avatar.entry.js.map +1 -1
  357. package/dist/esm/kol-badge.entry.js +1 -1
  358. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  359. package/dist/esm/kol-button-group-wc.entry.js +1 -1
  360. package/dist/esm/kol-button-group-wc.entry.js.map +1 -1
  361. package/dist/esm/kol-button-group.entry.js +1 -1
  362. package/dist/esm/kol-button-link.entry.js +1 -1
  363. package/dist/esm/kol-button-wc.entry.js +1 -1
  364. package/dist/esm/kol-button.entry.js +1 -1
  365. package/dist/esm/kol-card.entry.js +1 -1
  366. package/dist/esm/kol-combobox.entry.js +1 -1
  367. package/dist/esm/kol-combobox.entry.js.map +1 -1
  368. package/dist/esm/kol-details.entry.js +1 -1
  369. package/dist/esm/kol-details.entry.js.map +1 -1
  370. package/dist/esm/kol-drawer.entry.js +1 -1
  371. package/dist/esm/kol-drawer.entry.js.map +1 -1
  372. package/dist/esm/kol-form.entry.js +1 -1
  373. package/dist/esm/kol-form.entry.js.map +1 -1
  374. package/dist/esm/kol-heading-wc.entry.js +1 -1
  375. package/dist/esm/kol-heading-wc.entry.js.map +1 -1
  376. package/dist/esm/kol-heading.entry.js +1 -1
  377. package/dist/esm/kol-icon.entry.js +1 -1
  378. package/dist/esm/kol-image.entry.js +1 -1
  379. package/dist/esm/kol-indented-text-wc.entry.js +1 -1
  380. package/dist/esm/kol-indented-text-wc.entry.js.map +1 -1
  381. package/dist/esm/kol-indented-text.entry.js +1 -1
  382. package/dist/esm/kol-indented-text.entry.js.map +1 -1
  383. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  384. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  385. package/dist/esm/kol-input-color.entry.js +1 -1
  386. package/dist/esm/kol-input-color.entry.js.map +1 -1
  387. package/dist/esm/kol-input-date.entry.js +1 -1
  388. package/dist/esm/kol-input-date.entry.js.map +1 -1
  389. package/dist/esm/kol-input-email.entry.js +1 -1
  390. package/dist/esm/kol-input-email.entry.js.map +1 -1
  391. package/dist/esm/kol-input-file.entry.js +1 -1
  392. package/dist/esm/kol-input-file.entry.js.map +1 -1
  393. package/dist/esm/kol-input-number.entry.js +1 -1
  394. package/dist/esm/kol-input-number.entry.js.map +1 -1
  395. package/dist/esm/kol-input-password.entry.js +1 -1
  396. package/dist/esm/kol-input-password.entry.js.map +1 -1
  397. package/dist/esm/kol-input-radio.entry.js +1 -1
  398. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  399. package/dist/esm/kol-input-range.entry.js +1 -1
  400. package/dist/esm/kol-input-range.entry.js.map +1 -1
  401. package/dist/esm/kol-input-text.entry.js +1 -1
  402. package/dist/esm/kol-input-text.entry.js.map +1 -1
  403. package/dist/esm/kol-input.entry.js +1 -1
  404. package/dist/esm/kol-kolibri.entry.js +1 -1
  405. package/dist/esm/kol-link-button.entry.js +1 -1
  406. package/dist/esm/kol-link-group.entry.js +1 -1
  407. package/dist/esm/kol-link-wc.entry.js +1 -1
  408. package/dist/esm/kol-link.entry.js +1 -1
  409. package/dist/esm/kol-logo.entry.js +1 -1
  410. package/dist/esm/kol-modal.entry.js +1 -1
  411. package/dist/esm/kol-nav.entry.js +1 -1
  412. package/dist/esm/kol-nav.entry.js.map +1 -1
  413. package/dist/esm/kol-pagination.entry.js +1 -1
  414. package/dist/esm/kol-popover-wc.entry.js +1 -1
  415. package/dist/esm/kol-popover-wc.entry.js.map +1 -1
  416. package/dist/esm/kol-progress.entry.js +1 -1
  417. package/dist/esm/kol-quote.entry.js +1 -1
  418. package/dist/esm/kol-select.entry.js +1 -1
  419. package/dist/esm/kol-select.entry.js.map +1 -1
  420. package/dist/esm/kol-single-select.entry.js +1 -1
  421. package/dist/esm/kol-single-select.entry.js.map +1 -1
  422. package/dist/esm/kol-skip-nav.entry.js +1 -1
  423. package/dist/esm/kol-span-wc.entry.js +1 -1
  424. package/dist/esm/kol-spin.entry.js +1 -1
  425. package/dist/esm/kol-split-button.entry.js +1 -1
  426. package/dist/esm/kol-split-button.entry.js.map +1 -1
  427. package/dist/esm/kol-symbol.entry.js +1 -1
  428. package/dist/esm/kol-table-stateful.entry.js +1 -1
  429. package/dist/esm/kol-table-stateful.entry.js.map +1 -1
  430. package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
  431. package/dist/esm/kol-table-stateless-wc.entry.js.map +1 -1
  432. package/dist/esm/kol-table-stateless.entry.js +1 -1
  433. package/dist/esm/kol-table-stateless.entry.js.map +1 -1
  434. package/dist/esm/kol-table.entry.js +1 -1
  435. package/dist/esm/kol-tabs.entry.js +1 -1
  436. package/dist/esm/kol-textarea.entry.js +1 -1
  437. package/dist/esm/kol-textarea.entry.js.map +1 -1
  438. package/dist/esm/kol-toast-container.entry.js +1 -1
  439. package/dist/esm/kol-toolbar.entry.js +1 -1
  440. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  441. package/dist/esm/kol-tooltip-wc.entry.js.map +1 -1
  442. package/dist/esm/kol-tree-item-wc.entry.js +1 -1
  443. package/dist/esm/kol-tree-item.entry.js +1 -1
  444. package/dist/esm/kol-tree-wc.entry.js +1 -1
  445. package/dist/esm/kol-tree-wc.entry.js.map +1 -1
  446. package/dist/esm/kol-tree.entry.js +1 -1
  447. package/dist/esm/kol-version.entry.js +1 -1
  448. package/dist/esm/kolibri.js +1 -1
  449. package/dist/esm/{label-084ed1e7.js → label-541a8424.js} +1 -1
  450. package/dist/esm/{label-084ed1e7.js.map → label-541a8424.js.map} +1 -1
  451. package/dist/esm/loader.js +1 -1
  452. package/dist/esm/{open-7d2c57bd.js → open-b0401165.js} +1 -1
  453. package/dist/esm/{open-7d2c57bd.js.map → open-b0401165.js.map} +1 -1
  454. package/dist/esm/prop.validators-543d0c7b.js +4 -0
  455. package/dist/esm/prop.validators-543d0c7b.js.map +1 -0
  456. package/dist/esm/{rows-c1ee8752.js → rows-2ccfdbdc.js} +1 -1
  457. package/dist/esm/{rows-c1ee8752.js.map → rows-2ccfdbdc.js.map} +1 -1
  458. package/dist/esm/show-4cb5cfd2.js +4 -0
  459. package/dist/esm/{show-430cafc2.js.map → show-4cb5cfd2.js.map} +1 -1
  460. package/dist/esm/{suggestions-2f34bad6.js → suggestions-4fedd765.js} +1 -1
  461. package/dist/esm/{suggestions-2f34bad6.js.map → suggestions-4fedd765.js.map} +1 -1
  462. package/dist/esm/{tab-index-86f3bbae.js → tab-index-aa2012d4.js} +1 -1
  463. package/dist/esm/{tab-index-86f3bbae.js.map → tab-index-aa2012d4.js.map} +1 -1
  464. package/dist/esm/tooltip-align-01afdf25.js +4 -0
  465. package/dist/esm/{tooltip-align-e140b328.js.map → tooltip-align-01afdf25.js.map} +1 -1
  466. package/dist/esm/{validation-d958b624.js → validation-25fb8bf6.js} +1 -1
  467. package/dist/esm/{validation-d958b624.js.map → validation-25fb8bf6.js.map} +1 -1
  468. package/dist/esm/{validation-2329d751.js → validation-2e99145a.js} +1 -1
  469. package/dist/esm/{validation-2329d751.js.map → validation-2e99145a.js.map} +1 -1
  470. package/dist/kolibri/{InternalUnderlinedAccessKey-b2266b5a.js → InternalUnderlinedAccessKey-47cbf33a.js} +1 -1
  471. package/dist/kolibri/access-key-34f992c3.js +4 -0
  472. package/dist/kolibri/align-51311afa.js +4 -0
  473. package/dist/kolibri/app-globals-65b048d2.js +4 -0
  474. package/dist/kolibri/aria-expanded-2a5c6c4e.js +4 -0
  475. package/dist/kolibri/{associated.controller-15cdd804.js → associated.controller-4715556c.js} +1 -1
  476. package/dist/kolibri/{color-b8652714.js → color-44dcb59b.js} +1 -1
  477. package/dist/kolibri/{component-names-0a8a1a6c.js → component-names-7f2c991e.js} +1 -1
  478. package/dist/kolibri/{component-names-0a8a1a6c.js.map → component-names-7f2c991e.js.map} +1 -1
  479. package/dist/kolibri/{controller-fe5a6b8d.js → controller-724a3665.js} +1 -1
  480. package/dist/kolibri/{controller-2a4348e1.js → controller-b58153a2.js} +1 -1
  481. package/dist/kolibri/{controller-8c35edf1.js → controller-e14790bc.js} +1 -1
  482. package/dist/kolibri/{controller-0ab676b5.js → controller-f4077180.js} +1 -1
  483. package/dist/kolibri/{controller-ec60cfa6.js → controller-f99ec155.js} +1 -1
  484. package/dist/kolibri/controller-icon-1320c05c.js +4 -0
  485. package/dist/kolibri/custom-class-918278a4.js +4 -0
  486. package/dist/kolibri/{dev.utils-44ef1bde.js → dev.utils-e45b01b6.js} +1 -1
  487. package/dist/kolibri/devtools-c156ff25.js +4 -0
  488. package/dist/kolibri/{disabled-60f09b20.js → disabled-0e948e69.js} +1 -1
  489. package/dist/kolibri/{events-476662bc.js → events-44f13b27.js} +1 -1
  490. package/dist/kolibri/form-field-msg-56a34400.js +4 -0
  491. package/dist/kolibri/has-closer-1805c7a8.js +4 -0
  492. package/dist/kolibri/has-counter-d51a01dd.js +4 -0
  493. package/dist/kolibri/hide-label-7d9e8ee6.js +4 -0
  494. package/dist/kolibri/href-876b240a.js +4 -0
  495. package/dist/kolibri/{icons-b0b05e20.js → icons-33fc85f1.js} +1 -1
  496. package/dist/kolibri/image-source-7b92b206.js +4 -0
  497. package/dist/kolibri/{index-cf24d1fe.js → index-d62ddd65.js} +1 -1
  498. package/dist/kolibri/{index-cf24d1fe.js.map → index-d62ddd65.js.map} +1 -1
  499. package/dist/kolibri/index-fcc5bd94.js +4 -0
  500. package/dist/kolibri/index-fcc5bd94.js.map +1 -0
  501. package/dist/kolibri/index.esm.js +1 -1
  502. package/dist/kolibri/index.esm.js.map +1 -1
  503. package/dist/kolibri/kol-abbr.entry.js +1 -1
  504. package/dist/kolibri/kol-accordion.entry.js +1 -1
  505. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  506. package/dist/kolibri/kol-alert-wc.entry.js.map +1 -1
  507. package/dist/kolibri/kol-alert.entry.js +1 -1
  508. package/dist/kolibri/kol-alert.entry.js.map +1 -1
  509. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  510. package/dist/kolibri/kol-avatar-wc.entry.js.map +1 -1
  511. package/dist/kolibri/kol-avatar.entry.js +1 -1
  512. package/dist/kolibri/kol-avatar.entry.js.map +1 -1
  513. package/dist/kolibri/kol-badge.entry.js +1 -1
  514. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  515. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  516. package/dist/kolibri/kol-button-group-wc.entry.js +1 -1
  517. package/dist/kolibri/kol-button-group-wc.entry.js.map +1 -1
  518. package/dist/kolibri/kol-button-group.entry.js +1 -1
  519. package/dist/kolibri/kol-button-link.entry.js +1 -1
  520. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  521. package/dist/kolibri/kol-button-wc.entry.js.map +1 -1
  522. package/dist/kolibri/kol-button.entry.js +1 -1
  523. package/dist/kolibri/kol-card.entry.js +1 -1
  524. package/dist/kolibri/kol-combobox.entry.js +1 -1
  525. package/dist/kolibri/kol-combobox.entry.js.map +1 -1
  526. package/dist/kolibri/kol-details.entry.js +1 -1
  527. package/dist/kolibri/kol-details.entry.js.map +1 -1
  528. package/dist/kolibri/kol-drawer.entry.js +1 -1
  529. package/dist/kolibri/kol-drawer.entry.js.map +1 -1
  530. package/dist/kolibri/kol-form.entry.js +1 -1
  531. package/dist/kolibri/kol-form.entry.js.map +1 -1
  532. package/dist/kolibri/kol-heading-wc.entry.js +1 -1
  533. package/dist/kolibri/kol-heading-wc.entry.js.map +1 -1
  534. package/dist/kolibri/kol-heading.entry.js +1 -1
  535. package/dist/kolibri/kol-icon.entry.js +1 -1
  536. package/dist/kolibri/kol-image.entry.js +1 -1
  537. package/dist/kolibri/kol-indented-text-wc.entry.js +1 -1
  538. package/dist/kolibri/kol-indented-text-wc.entry.js.map +1 -1
  539. package/dist/kolibri/kol-indented-text.entry.js +1 -1
  540. package/dist/kolibri/kol-indented-text.entry.js.map +1 -1
  541. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  542. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  543. package/dist/kolibri/kol-input-color.entry.js +1 -1
  544. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  545. package/dist/kolibri/kol-input-date.entry.js +1 -1
  546. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  547. package/dist/kolibri/kol-input-email.entry.js +1 -1
  548. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  549. package/dist/kolibri/kol-input-file.entry.js +1 -1
  550. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  551. package/dist/kolibri/kol-input-number.entry.js +1 -1
  552. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  553. package/dist/kolibri/kol-input-password.entry.js +1 -1
  554. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  555. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  556. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  557. package/dist/kolibri/kol-input-range.entry.js +1 -1
  558. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  559. package/dist/kolibri/kol-input-text.entry.js +1 -1
  560. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  561. package/dist/kolibri/kol-input.entry.js +1 -1
  562. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  563. package/dist/kolibri/kol-link-button.entry.js +1 -1
  564. package/dist/kolibri/kol-link-group.entry.js +1 -1
  565. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  566. package/dist/kolibri/kol-link.entry.js +1 -1
  567. package/dist/kolibri/kol-logo.entry.js +1 -1
  568. package/dist/kolibri/kol-modal.entry.js +1 -1
  569. package/dist/kolibri/kol-nav.entry.js +1 -1
  570. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  571. package/dist/kolibri/kol-pagination.entry.js +1 -1
  572. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  573. package/dist/kolibri/kol-popover-wc.entry.js.map +1 -1
  574. package/dist/kolibri/kol-progress.entry.js +1 -1
  575. package/dist/kolibri/kol-quote.entry.js +1 -1
  576. package/dist/kolibri/kol-select.entry.js +1 -1
  577. package/dist/kolibri/kol-select.entry.js.map +1 -1
  578. package/dist/kolibri/kol-single-select.entry.js +1 -1
  579. package/dist/kolibri/kol-single-select.entry.js.map +1 -1
  580. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  581. package/dist/kolibri/kol-span-wc.entry.js +1 -1
  582. package/dist/kolibri/kol-spin.entry.js +1 -1
  583. package/dist/kolibri/kol-split-button.entry.js +1 -1
  584. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  585. package/dist/kolibri/kol-symbol.entry.js +1 -1
  586. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  587. package/dist/kolibri/kol-table-stateful.entry.js.map +1 -1
  588. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  589. package/dist/kolibri/kol-table-stateless-wc.entry.js.map +1 -1
  590. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  591. package/dist/kolibri/kol-table-stateless.entry.js.map +1 -1
  592. package/dist/kolibri/kol-table.entry.js +1 -1
  593. package/dist/kolibri/kol-tabs.entry.js +1 -1
  594. package/dist/kolibri/kol-textarea.entry.js +1 -1
  595. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  596. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  597. package/dist/kolibri/kol-toast-container.entry.js.map +1 -1
  598. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  599. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  600. package/dist/kolibri/kol-tooltip-wc.entry.js.map +1 -1
  601. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  602. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  603. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  604. package/dist/kolibri/kol-tree-wc.entry.js.map +1 -1
  605. package/dist/kolibri/kol-tree.entry.js +1 -1
  606. package/dist/kolibri/kol-version.entry.js +1 -1
  607. package/dist/kolibri/kolibri.esm.js +1 -1
  608. package/dist/kolibri/{label-084ed1e7.js → label-541a8424.js} +1 -1
  609. package/dist/kolibri/open-b0401165.js +4 -0
  610. package/dist/kolibri/{prop.validators-5a58fa40.js → prop.validators-543d0c7b.js} +1 -1
  611. package/dist/kolibri/rows-2ccfdbdc.js +4 -0
  612. package/dist/kolibri/show-4cb5cfd2.js +4 -0
  613. package/dist/kolibri/{suggestions-2f34bad6.js → suggestions-4fedd765.js} +1 -1
  614. package/dist/kolibri/tab-index-aa2012d4.js +4 -0
  615. package/dist/kolibri/{tab-index-86f3bbae.js.map → tab-index-aa2012d4.js.map} +1 -1
  616. package/dist/kolibri/tooltip-align-01afdf25.js +4 -0
  617. package/dist/kolibri/validation-25fb8bf6.js +4 -0
  618. package/dist/kolibri/validation-2e99145a.js +4 -0
  619. package/dist/types/components/single-select/shadow.d.ts +1 -0
  620. package/dist/types/components/split-button/shadow.d.ts +1 -1
  621. package/dist/types/components/table-stateless/component.d.ts +1 -0
  622. package/dist/types/components.d.ts +36 -0
  623. package/doc/heading.md +5 -5
  624. package/doc/indented-text.md +2 -0
  625. package/doc/popover.md +1 -6
  626. package/doc/table-stateful.md +1 -0
  627. package/doc/table.md +1 -0
  628. package/doc/tooltip.md +1 -5
  629. package/package.json +2 -2
  630. package/vscode-custom-data.json +0 -255
  631. package/dist/cjs/access-key-dda2764c.js +0 -4
  632. package/dist/cjs/app-globals-8a924e59.js +0 -4
  633. package/dist/cjs/app-globals-8a924e59.js.map +0 -1
  634. package/dist/cjs/component-names-4a2d0b57.js +0 -4
  635. package/dist/cjs/component-names-4a2d0b57.js.map +0 -1
  636. package/dist/cjs/custom-class-691f9ea4.js +0 -4
  637. package/dist/cjs/disabled-523f7adc.js +0 -4
  638. package/dist/cjs/form-field-msg-e2ee9067.js +0 -4
  639. package/dist/cjs/has-closer-143268e8.js +0 -4
  640. package/dist/cjs/has-counter-d8a31282.js +0 -4
  641. package/dist/cjs/hide-label-82890fe7.js +0 -4
  642. package/dist/cjs/href-a32df224.js +0 -4
  643. package/dist/cjs/image-source-c6b8c632.js +0 -4
  644. package/dist/cjs/index-6912b26b.js +0 -4
  645. package/dist/cjs/index-6912b26b.js.map +0 -1
  646. package/dist/cjs/open-10ca3d4d.js +0 -4
  647. package/dist/cjs/prop.validators-9c1f1dbd.js.map +0 -1
  648. package/dist/cjs/rows-df280396.js +0 -4
  649. package/dist/cjs/show-3a46ec81.js +0 -4
  650. package/dist/cjs/tooltip-align-8c5c5618.js +0 -4
  651. package/dist/esm/app-globals-4f2c8e7b.js +0 -4
  652. package/dist/esm/app-globals-4f2c8e7b.js.map +0 -1
  653. package/dist/esm/component-names-0a8a1a6c.js.map +0 -1
  654. package/dist/esm/custom-class-1b4696e3.js +0 -4
  655. package/dist/esm/form-field-msg-22e08734.js +0 -4
  656. package/dist/esm/index-5728f164.js +0 -4
  657. package/dist/esm/index-5728f164.js.map +0 -1
  658. package/dist/esm/prop.validators-5a58fa40.js +0 -4
  659. package/dist/esm/prop.validators-5a58fa40.js.map +0 -1
  660. package/dist/esm/show-430cafc2.js +0 -4
  661. package/dist/esm/tooltip-align-e140b328.js +0 -4
  662. package/dist/kolibri/access-key-729d2115.js +0 -4
  663. package/dist/kolibri/align-78bab7b5.js +0 -4
  664. package/dist/kolibri/app-globals-4f2c8e7b.js +0 -4
  665. package/dist/kolibri/aria-expanded-259cbe01.js +0 -4
  666. package/dist/kolibri/controller-icon-78e12429.js +0 -4
  667. package/dist/kolibri/custom-class-1b4696e3.js +0 -4
  668. package/dist/kolibri/devtools-417fc238.js +0 -4
  669. package/dist/kolibri/form-field-msg-22e08734.js +0 -4
  670. package/dist/kolibri/has-closer-f40b362c.js +0 -4
  671. package/dist/kolibri/has-counter-798e2301.js +0 -4
  672. package/dist/kolibri/hide-label-1d403517.js +0 -4
  673. package/dist/kolibri/href-5e305ce2.js +0 -4
  674. package/dist/kolibri/image-source-87526275.js +0 -4
  675. package/dist/kolibri/index-5728f164.js +0 -4
  676. package/dist/kolibri/index-5728f164.js.map +0 -1
  677. package/dist/kolibri/open-7d2c57bd.js +0 -4
  678. package/dist/kolibri/rows-c1ee8752.js +0 -4
  679. package/dist/kolibri/show-430cafc2.js +0 -4
  680. package/dist/kolibri/tab-index-86f3bbae.js +0 -4
  681. package/dist/kolibri/tooltip-align-e140b328.js +0 -4
  682. package/dist/kolibri/validation-2329d751.js +0 -4
  683. package/dist/kolibri/validation-d958b624.js +0 -4
  684. /package/dist/kolibri/{InternalUnderlinedAccessKey-b2266b5a.js.map → InternalUnderlinedAccessKey-47cbf33a.js.map} +0 -0
  685. /package/dist/kolibri/{access-key-729d2115.js.map → access-key-34f992c3.js.map} +0 -0
  686. /package/dist/kolibri/{align-78bab7b5.js.map → align-51311afa.js.map} +0 -0
  687. /package/dist/kolibri/{app-globals-4f2c8e7b.js.map → app-globals-65b048d2.js.map} +0 -0
  688. /package/dist/kolibri/{aria-expanded-259cbe01.js.map → aria-expanded-2a5c6c4e.js.map} +0 -0
  689. /package/dist/kolibri/{associated.controller-15cdd804.js.map → associated.controller-4715556c.js.map} +0 -0
  690. /package/dist/kolibri/{color-b8652714.js.map → color-44dcb59b.js.map} +0 -0
  691. /package/dist/kolibri/{controller-fe5a6b8d.js.map → controller-724a3665.js.map} +0 -0
  692. /package/dist/kolibri/{controller-2a4348e1.js.map → controller-b58153a2.js.map} +0 -0
  693. /package/dist/kolibri/{controller-8c35edf1.js.map → controller-e14790bc.js.map} +0 -0
  694. /package/dist/kolibri/{controller-0ab676b5.js.map → controller-f4077180.js.map} +0 -0
  695. /package/dist/kolibri/{controller-ec60cfa6.js.map → controller-f99ec155.js.map} +0 -0
  696. /package/dist/kolibri/{controller-icon-78e12429.js.map → controller-icon-1320c05c.js.map} +0 -0
  697. /package/dist/kolibri/{custom-class-1b4696e3.js.map → custom-class-918278a4.js.map} +0 -0
  698. /package/dist/kolibri/{dev.utils-44ef1bde.js.map → dev.utils-e45b01b6.js.map} +0 -0
  699. /package/dist/kolibri/{devtools-417fc238.js.map → devtools-c156ff25.js.map} +0 -0
  700. /package/dist/kolibri/{disabled-60f09b20.js.map → disabled-0e948e69.js.map} +0 -0
  701. /package/dist/kolibri/{events-476662bc.js.map → events-44f13b27.js.map} +0 -0
  702. /package/dist/kolibri/{form-field-msg-22e08734.js.map → form-field-msg-56a34400.js.map} +0 -0
  703. /package/dist/kolibri/{has-closer-f40b362c.js.map → has-closer-1805c7a8.js.map} +0 -0
  704. /package/dist/kolibri/{has-counter-798e2301.js.map → has-counter-d51a01dd.js.map} +0 -0
  705. /package/dist/kolibri/{hide-label-1d403517.js.map → hide-label-7d9e8ee6.js.map} +0 -0
  706. /package/dist/kolibri/{href-5e305ce2.js.map → href-876b240a.js.map} +0 -0
  707. /package/dist/kolibri/{icons-b0b05e20.js.map → icons-33fc85f1.js.map} +0 -0
  708. /package/dist/kolibri/{image-source-87526275.js.map → image-source-7b92b206.js.map} +0 -0
  709. /package/dist/kolibri/{label-084ed1e7.js.map → label-541a8424.js.map} +0 -0
  710. /package/dist/kolibri/{open-7d2c57bd.js.map → open-b0401165.js.map} +0 -0
  711. /package/dist/kolibri/{prop.validators-5a58fa40.js.map → prop.validators-543d0c7b.js.map} +0 -0
  712. /package/dist/kolibri/{rows-c1ee8752.js.map → rows-2ccfdbdc.js.map} +0 -0
  713. /package/dist/kolibri/{show-430cafc2.js.map → show-4cb5cfd2.js.map} +0 -0
  714. /package/dist/kolibri/{suggestions-2f34bad6.js.map → suggestions-4fedd765.js.map} +0 -0
  715. /package/dist/kolibri/{tooltip-align-e140b328.js.map → tooltip-align-01afdf25.js.map} +0 -0
  716. /package/dist/kolibri/{validation-d958b624.js.map → validation-25fb8bf6.js.map} +0 -0
  717. /package/dist/kolibri/{validation-2329d751.js.map → validation-2e99145a.js.map} +0 -0
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.1.8-rc.0",
2
+ "version": "2.1.9-rc.0",
3
3
  "tags": [
4
4
  {
5
5
  "name": "kol-abbr",
@@ -141,63 +141,6 @@
141
141
  "cssProperties": [],
142
142
  "cssParts": []
143
143
  },
144
- {
145
- "name": "kol-alert-wc",
146
- "description": "Synonyme: Message\n\nDie **Alert**-Komponente gibt ein optisches Feedback an die Nutzer:innen. Sie besteht aus einem farblich gestalteten Container, einer Überschrift, einem Inhaltstext sowie einem Icon. Das verwendete Icon und die farbliche Gestaltung sind abhängig vom Typ `_type` des Alert.",
147
- "attributes": [
148
- {
149
- "name": "_alert",
150
- "type": "boolean | undefined",
151
- "description": "Defines whether the screen-readers should read out the notification.",
152
- "defaultValue": "false",
153
- "required": false
154
- },
155
- {
156
- "name": "_has-closer",
157
- "type": "boolean | undefined",
158
- "description": "Defines whether the element can be closed.",
159
- "defaultValue": "false",
160
- "required": false
161
- },
162
- {
163
- "name": "_label",
164
- "type": "string | undefined",
165
- "description": "Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).",
166
- "required": false
167
- },
168
- {
169
- "name": "_level",
170
- "type": "0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined",
171
- "description": "Defines which H-level from 1-6 the heading has. 0 specifies no heading and is shown as bold text.",
172
- "defaultValue": "1",
173
- "required": false
174
- },
175
- {
176
- "name": "_type",
177
- "type": "\"default\" | \"error\" | \"info\" | \"success\" | \"warning\" | undefined",
178
- "description": "Defines either the type of the component or of the components interactive element.",
179
- "defaultValue": "'default'",
180
- "required": false
181
- },
182
- {
183
- "name": "_variant",
184
- "type": "\"card\" | \"msg\" | undefined",
185
- "description": "Defines which variant should be used for presentation.",
186
- "defaultValue": "'msg'",
187
- "required": false
188
- }
189
- ],
190
- "events": [],
191
- "methods": [],
192
- "slots": [
193
- {
194
- "name": "",
195
- "description": "Der Inhalt der Meldung."
196
- }
197
- ],
198
- "cssProperties": [],
199
- "cssParts": []
200
- },
201
144
  {
202
145
  "name": "kol-avatar",
203
146
  "description": "Synonyme: Persona\n\nDie **Avatar**-Komponente zeigt entweder ein kleines Bild des Users oder dessen Initialen an, falls kein Bild vorhanden ist.",
@@ -221,29 +164,6 @@
221
164
  "cssProperties": [],
222
165
  "cssParts": []
223
166
  },
224
- {
225
- "name": "kol-avatar-wc",
226
- "description": "Synonyme: Persona\n\nDie **Avatar**-Komponente zeigt entweder ein kleines Bild des Users oder dessen Initialen an, falls kein Bild vorhanden ist.",
227
- "attributes": [
228
- {
229
- "name": "_label",
230
- "type": "string",
231
- "description": "Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).",
232
- "required": true
233
- },
234
- {
235
- "name": "_src",
236
- "type": "string | undefined",
237
- "description": "Sets the image `src` attribute to the given string.",
238
- "required": false
239
- }
240
- ],
241
- "events": [],
242
- "methods": [],
243
- "slots": [],
244
- "cssProperties": [],
245
- "cssParts": []
246
- },
247
167
  {
248
168
  "name": "kol-badge",
249
169
  "description": "Mit **Badges** können Sie bestimmte Informationen auf Ihrer Webseite optisch hervorheben.\nKoliBri bietet neben der Angabe der Hintergrundfarbe und automatischer Berechnung der Textfarbe auch die Möglichkeit, einem Badge ein Icon und/oder einen anderen Schriftschnitt mitzugeben.",
@@ -453,16 +373,6 @@
453
373
  "cssProperties": [],
454
374
  "cssParts": []
455
375
  },
456
- {
457
- "name": "kol-button-group-wc",
458
- "description": "**Buttons** dienen dazu, Nutzer:innen Auswahlmöglichkeiten für Aktionen anzuzeigen und diese in einer klaren Hierarchie anzuordnen. Sie helfen den Nutzer:innen, die wichtigsten Aktionen einer Seite oder innerhalb eines Applikation zu finden und ermöglichen es ihm, diese Aktionen auszuführen.\n\nDie **ButtonGroup**-Komponente fasst mehrere Buttons zu einer optischen und funktionalen Einheit zusammen.",
459
- "attributes": [],
460
- "events": [],
461
- "methods": [],
462
- "slots": [],
463
- "cssProperties": [],
464
- "cssParts": []
465
- },
466
376
  {
467
377
  "name": "kol-button-link",
468
378
  "description": "Der ButtonLink ist semantisch ein Button und hat das Design eines Links. Hierzu werden alle relevanten Properties der Button-Komponente übernommen und um die Design-bestimmenden Properties des Links erweitert.\n\nEinen Button kann man deaktivieren und daher gibt es bei einem ButtonLink das Property `_disabled`. Wie das optisch ausgestaltet wird, entscheidet die UX-Designer:in.\n\nStatt, wie bei einem Link, `_href` zu verwenden, wird bei einem ButtonLink das Property über den `Click-Callback` gesteuert. Hierzu wird das `_on`-Property verwendet.\n\nBei einem Link gibt es das Property `target`, welches ggf. den Link in einem neuen Fenster/Tab öffnet. Das Verhalten ist aktuell noch nicht umgesetzt.\n\nDa der Link, nicht wie der Button, in mehrere Varianten (`primary` oder `secondary` usw.) angeboten wird, stehen die Properties `_customClass` und `_variant` nicht zur Verfügung.",
@@ -930,47 +840,6 @@
930
840
  "cssProperties": [],
931
841
  "cssParts": []
932
842
  },
933
- {
934
- "name": "kol-heading-wc",
935
- "description": "Die **Heading**-Komponente kann überall dort verwendet werden, wo eine Überschrift angezeigt werden soll. Durch die Verwendung der unterschiedlichen Größen, lassen sich Inhalte klar strukturieren und Seiten wirkungsvoll und abwechslungsreich präsentieren. Sie trennt Styling von Semantik und ermöglicht Flexibilität.",
936
- "attributes": [
937
- {
938
- "name": "_label",
939
- "type": "string",
940
- "description": "Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.",
941
- "required": true
942
- },
943
- {
944
- "name": "_level",
945
- "type": "0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined",
946
- "description": "Defines which H-level from 1-6 the heading has. 0 specifies no heading and is shown as bold text.",
947
- "defaultValue": "1",
948
- "required": false
949
- },
950
- {
951
- "name": "_secondary-headline",
952
- "type": "string | undefined",
953
- "description": "Setzt den Text einer weiteren Überschrift, einen Level kleiner, unter der Ersten.",
954
- "required": false
955
- },
956
- {
957
- "name": "_variant",
958
- "type": "\"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\" | \"strong\" | undefined",
959
- "description": "Defines which variant should be used for presentation.",
960
- "required": false
961
- }
962
- ],
963
- "events": [],
964
- "methods": [],
965
- "slots": [
966
- {
967
- "name": "",
968
- "description": "Inhalt der Überschrift."
969
- }
970
- ],
971
- "cssProperties": [],
972
- "cssParts": []
973
- },
974
843
  {
975
844
  "name": "kol-icon",
976
845
  "description": "Mit Hilfe der **Icon**-Komponente können Icons aus eingebundenen Icon-Fonts an beliebigen Positionen dargestellt werden. Die Ausgabe des Icon kann über das Attribut **`_icon`** gesteuert werden und erfolgt durch das Attribut **`_label`** barrierefrei. Die Ausgabe erfolgt standardmäßig als _`inline`_-Element.\n\nAktuell werden die Icons von <kol-link _href=\"https://microsoft.github.io/vscode-codicons/dist/codicon.html\" _target=\"_blank\" _label=\"Codicons\"></kol-link> unterstützt.\n\n<kol-alert _heading=\"Hinweis\" _type=\"info\">Es ist wichtig, dass in der Rahmenseite (`index.html`) die CSS-Dateie(n) der Icon-Font(s) eingebunden ist/sind.</kol-alert>",
@@ -1056,21 +925,6 @@
1056
925
  "cssProperties": [],
1057
926
  "cssParts": []
1058
927
  },
1059
- {
1060
- "name": "kol-indented-text-wc",
1061
- "description": "Heben Sie einzelne Informationen auf Ihrer Webseite optisch mit der **IndentedText**-Komponente hervor. Die Komponente eignet sich nicht nur für besondere Abschnitte auf der Webseite, sondern auch beispielsweise für Zitate (für verlinkte Zitate kann auch die <kol-link _href=\"/docs/components/quote/\" _label=\"/docs/components/quote/\" _label=\"kol-quote-Komponente\"></kol-link> verwendet werden.).",
1062
- "attributes": [],
1063
- "events": [],
1064
- "methods": [],
1065
- "slots": [
1066
- {
1067
- "name": "",
1068
- "description": "Der Text."
1069
- }
1070
- ],
1071
- "cssProperties": [],
1072
- "cssParts": []
1073
- },
1074
928
  {
1075
929
  "name": "kol-input-checkbox",
1076
930
  "description": "Der Input-Typ **_Checkbox_** generiert eine rechteckige Box, die durch Anklicken aktiviert und wieder deaktiviert wird. In aktiviertem Zustand befindet sich ein farbiger Haken in der Box.",
@@ -3260,36 +3114,6 @@
3260
3114
  "cssProperties": [],
3261
3115
  "cssParts": []
3262
3116
  },
3263
- {
3264
- "name": "kol-popover-wc",
3265
- "description": "> <kol-badge _label=\"untested\"></kol-badge> Diese neue Komponente wird als ungetestet markiert, da der vollständige Barrierefreiheitstest noch aussteht. Der vollständige Test kann bei neuen Komponenten und Funktionalitäten auch erst nach einem abgeschlossenen Release erfolgen.\n\nDie **Popover**-Komponente stellt eine Möglichkeit dar zusätzliche Inhalte in ein temporäres Element zu setzen, das, ähnlich wie <kol-link _href=\"\" _label=\"Tooltip\"></kol-link>, um sein Triggerelement angeordnet ist.\nDas Triggerelement ist immer das im HTML vorangehende Element (previousSibling).\n\n<kol-alert _type=\"info\" _variant=\"card\">Die **Popover**-Komponente wird innerhalb von KoliBri verwendet und ist nicht dafür vorgesehen in der Anwendungsentwicklung verwendet zu werden.</kol-alert>",
3266
- "attributes": [
3267
- {
3268
- "name": "_align",
3269
- "type": "\"bottom\" | \"left\" | \"right\" | \"top\" | undefined",
3270
- "description": "Defines the alignment of the tooltip, popover or tabs in relation to the element.",
3271
- "defaultValue": "'top'",
3272
- "required": false
3273
- },
3274
- {
3275
- "name": "_show",
3276
- "type": "boolean | undefined",
3277
- "description": "Makes the element show up.",
3278
- "defaultValue": "false",
3279
- "required": false
3280
- }
3281
- ],
3282
- "events": [],
3283
- "methods": [],
3284
- "slots": [
3285
- {
3286
- "name": "",
3287
- "description": "Der Inhalt des Popover."
3288
- }
3289
- ],
3290
- "cssProperties": [],
3291
- "cssParts": []
3292
- },
3293
3117
  {
3294
3118
  "name": "kol-progress",
3295
3119
  "description": "Die **Progress**-Komponente erzeugt einen Fortschrittsbalken, über den eine optische Rückmeldung gegeben werden kann.",
@@ -4039,53 +3863,6 @@
4039
3863
  "cssProperties": [],
4040
3864
  "cssParts": []
4041
3865
  },
4042
- {
4043
- "name": "kol-table-stateless-wc",
4044
- "description": "Synonyme: Data Table, Details List, Data Grid\n\n<kol-alert _type=\"warning\" _variant=\"card\">\n <kol-badge _color=\"#476af5\" _label=\"Preview\"></kol-badge> Diese neue Komponente wird als ungetestet markiert, da die Barrierefreiheitstests noch ausstehen. Die verschiedenen Tests können aufgrund der Modularität bei neuen Komponenten und Funktionalitäten meist erst nach einem Release erfolgen. Wir empfehlen daher, die Komponente noch nicht in Produktion zu verwenden.\n</kol-alert>\n\nDie **TableStateless**-Komponente ist für die reine Darstellung der KoliBri-Tabelle verantwortlich. Für eine Tabellen-Komponente, die Sortierung und Paginierung mit den zur Verfügung gestellten Daten automatisch übernehmen kann, siehe [KolTableStateful](../table-stateful/readme.md).\n\nTableStateless bietet sich insbesondere bei größeren Datenmengen an, wenn es nicht praktikabel ist, die komplette Datenmenge zur Filterung und Sortierung in den Browser auszuliefern.",
4045
- "attributes": [
4046
- {
4047
- "name": "_data",
4048
- "type": "KoliBriTableDataType[] | string",
4049
- "description": "Defines the primary table data.",
4050
- "required": true
4051
- },
4052
- {
4053
- "name": "_data-foot",
4054
- "type": "KoliBriTableDataType[] | string | undefined",
4055
- "description": "Defines the data for the table footer.",
4056
- "required": false
4057
- },
4058
- {
4059
- "name": "_header-cells",
4060
- "type": "string | { horizontal?: KoliBriTableHeaderCell[][] | undefined; vertical?: KoliBriTableHeaderCell[][] | undefined; }",
4061
- "description": "Defines the horizontal and vertical table headers.",
4062
- "required": true
4063
- },
4064
- {
4065
- "name": "_label",
4066
- "type": "string",
4067
- "description": "Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).",
4068
- "required": true
4069
- },
4070
- {
4071
- "name": "_min-width",
4072
- "type": "string | undefined",
4073
- "description": "Defines the table min-width.",
4074
- "required": false
4075
- },
4076
- {
4077
- "name": "_selection",
4078
- "type": "string | undefined | ({ label: (row: KoliBriTableDataType) => string; keyPropertyName?: string | undefined; multiple?: boolean | undefined; selectedKeys?: string[] | undefined; })",
4079
- "description": "Defines how rows can be selected and the current selection.",
4080
- "required": false
4081
- }
4082
- ],
4083
- "events": [],
4084
- "methods": [],
4085
- "slots": [],
4086
- "cssProperties": [],
4087
- "cssParts": []
4088
- },
4089
3866
  {
4090
3867
  "name": "kol-tabs",
4091
3868
  "description": "Synonyme: Navigation, Nav\n\nDie **Tabs**-Komponente wird verwendet, um verwandte Inhalte auf derselben Seite zu organisieren und zwischen ihnen zu navigieren. Tabs sorgen dafür, dass große Inhaltsmengen für Nutzer:innen leichter organisiert werden können. Tabs sind in Registerkartenleisten angeordnet, die als Registerkartengruppen bezeichnet werden, wobei die Registerkartenbeschriftung den Nutzer:innen einen Hinweis darauf gibt, welcher Inhalt angezeigt wird, wenn die Registerkarte ausgewählt wird.",
@@ -4343,42 +4120,6 @@
4343
4120
  "cssProperties": [],
4344
4121
  "cssParts": []
4345
4122
  },
4346
- {
4347
- "name": "kol-tooltip-wc",
4348
- "description": "Synonyme: Inline Dialog, Popover\n\n<kol-alert _type=\"info\" _variant=\"card\">Die **Tooltip**-Komponente wird innerhalb von KoliBri verwendet und ist nicht dafür vorgesehen in der Anwendungsentwicklung verwendet zu werden. Denn der Tooltip ist nur dann wirklich barrierefrei, wenn von einem Referenzelement auf das Tooltip verwiesen wird.</kol-alert>\n\nDie **Tooltip**-Komponente implementiert das Gegenstück zum `Aria-Label`. Es ist also explizit nur dafür vorgesehen, dem/der Nutzer:in ohne Screenreader die Beschriftung eines Elementes anzuzeigen.\n\nEin geöffneter Tooltip lässt sich mit der `Escape`-Taste schließen, um ggf. überlagerte Seiteninformationen wieder sichtbar zu machen.\n\n**Hinweis:** Damit der Tooltip korrekt ausgerichtet wird, darf das Referenz-Element nicht `display: inline` haben.",
4349
- "attributes": [
4350
- {
4351
- "name": "_access-key",
4352
- "type": "string | undefined",
4353
- "description": "Defines the elements access key.",
4354
- "required": false
4355
- },
4356
- {
4357
- "name": "_align",
4358
- "type": "\"bottom\" | \"left\" | \"right\" | \"top\" | undefined",
4359
- "description": "Defines the alignment of the tooltip, popover or tabs in relation to the element.",
4360
- "defaultValue": "'top'",
4361
- "required": false
4362
- },
4363
- {
4364
- "name": "_id",
4365
- "type": "string | undefined",
4366
- "description": "Defines the internal ID of the primary component element.",
4367
- "required": false
4368
- },
4369
- {
4370
- "name": "_label",
4371
- "type": "string",
4372
- "description": "Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).",
4373
- "required": true
4374
- }
4375
- ],
4376
- "events": [],
4377
- "methods": [],
4378
- "slots": [],
4379
- "cssProperties": [],
4380
- "cssParts": []
4381
- },
4382
4123
  {
4383
4124
  "name": "kol-tree",
4384
4125
  "description": "Synonyme: List, Navigation\n\n<kol-alert _type=\"warning\" _variant=\"card\">\n <kol-badge _color=\"#476af5\" _label=\"Preview\"></kol-badge> Diese neue Komponente wird als ungetestet markiert, da die Barrierefreiheitstests noch ausstehen. Die verschiedenen Tests können aufgrund der Modularität bei neuen Komponenten und Funktionalitäten meist erst nach einem Release erfolgen. Wir empfehlen daher, die Komponente noch nicht in Produktion zu verwenden.\n</kol-alert>\n\nDie Komponente **Tree** stellt eine hierarchische Liste dar. Jedes Element in der Hierarchie kann Kindelemente haben, und Elemente, die Kinder haben, können erweitert oder reduziert werden, um die Kinder anzuzeigen oder zu verbergen.",
@@ -4508,23 +4249,6 @@
4508
4249
  "cssProperties": [],
4509
4250
  "cssParts": []
4510
4251
  },
4511
- {
4512
- "name": "kol-tree-wc",
4513
- "description": "Synonyme: List, Navigation\n\n<kol-alert _type=\"warning\" _variant=\"card\">\n <kol-badge _color=\"#476af5\" _label=\"Preview\"></kol-badge> Diese neue Komponente wird als ungetestet markiert, da die Barrierefreiheitstests noch ausstehen. Die verschiedenen Tests können aufgrund der Modularität bei neuen Komponenten und Funktionalitäten meist erst nach einem Release erfolgen. Wir empfehlen daher, die Komponente noch nicht in Produktion zu verwenden.\n</kol-alert>\n\nDie Komponente **Tree** stellt eine hierarchische Liste dar. Jedes Element in der Hierarchie kann Kindelemente haben, und Elemente, die Kinder haben, können erweitert oder reduziert werden, um die Kinder anzuzeigen oder zu verbergen.",
4514
- "attributes": [
4515
- {
4516
- "name": "_label",
4517
- "type": "string",
4518
- "description": "Defines the label of the tree.",
4519
- "required": true
4520
- }
4521
- ],
4522
- "events": [],
4523
- "methods": [],
4524
- "slots": [],
4525
- "cssProperties": [],
4526
- "cssParts": []
4527
- },
4528
4252
  {
4529
4253
  "name": "kol-version",
4530
4254
  "description": "Die **Version**-Komponente stellt kurze Inhalte auf einem farbigen Hintergrund dar. Die **Version**-Komponente ist mit der **Tag**-Komponente eng verwandt, bietet aber nur ein Attribut zur Konfiguration. Sie ist optimiert für die Angabe z.B. von Versionen einer Seite.",
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";const index=require("./index-277fc2a7.js"),InternalUnderlinedAccessKey=({accessKey:e,label:n})=>{let[l,...t]=n.split(e);return 0===t.length&&(e=e.toUpperCase(),[l,...t]=n.split(e)),0===t.length&&(e=e.toLowerCase(),[l,...t]=n.split(e)),index.h(index.Fragment,null,l,t.length?index.h(index.Fragment,null,index.h("u",null,e),t.join(e)):null)};exports.InternalUnderlinedAccessKey=InternalUnderlinedAccessKey;
4
+ "use strict";const index=require("./index-d523b878.js"),InternalUnderlinedAccessKey=({accessKey:e,label:n})=>{let[l,...t]=n.split(e);return 0===t.length&&(e=e.toUpperCase(),[l,...t]=n.split(e)),0===t.length&&(e=e.toLowerCase(),[l,...t]=n.split(e)),index.h(index.Fragment,null,l,t.length?index.h(index.Fragment,null,index.h("u",null,e),t.join(e)):null)};exports.InternalUnderlinedAccessKey=InternalUnderlinedAccessKey;
@@ -1 +1 @@
1
- {"file":"InternalUnderlinedAccessKey-0d7f5c6f.js","mappings":";;;;;;;MAMa,2BAA2B,GAAG,CAAC,EAAE,SAAS,EAAE,KAAK,EAAS;IAEtE,IAAI,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAC9C,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;QACtB,SAAS,GAAG,SAAS,CAAC,WAAW,EAAE,CAAC;QACpC,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;KAC1C;IACD,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;QACtB,SAAS,GAAG,SAAS,CAAC,WAAW,EAAE,CAAC;QACpC,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;KAC1C;IACD,QACCA;QACE,KAAK;QACL,IAAI,CAAC,MAAM,IACXA;YACCA,mBAAI,SAAS,CAAK;YACjB,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CACnB,IACA,IAAI,CACN,EACF;AACH;;;;","names":["h"],"sources":["src/components/span/InternalUnderlinedAccessKey.tsx"],"sourcesContent":["import { Fragment, h } from '@stencil/core';\n\ntype Props = {\n\taccessKey: string;\n\tlabel: string;\n};\nexport const InternalUnderlinedAccessKey = ({ accessKey, label }: Props) => {\n\t/* Prefer capitalization as defined in the access key, try uppercase/lowercase when there's no match. */\n\tlet [first, ...rest] = label.split(accessKey);\n\tif (rest.length === 0) {\n\t\taccessKey = accessKey.toUpperCase();\n\t\t[first, ...rest] = label.split(accessKey);\n\t}\n\tif (rest.length === 0) {\n\t\taccessKey = accessKey.toLowerCase();\n\t\t[first, ...rest] = label.split(accessKey);\n\t}\n\treturn (\n\t\t<>\n\t\t\t{first}\n\t\t\t{rest.length ? (\n\t\t\t\t<>\n\t\t\t\t\t<u>{accessKey}</u>\n\t\t\t\t\t{rest.join(accessKey)}\n\t\t\t\t</>\n\t\t\t) : null}\n\t\t</>\n\t);\n};\n"],"version":3}
1
+ {"file":"InternalUnderlinedAccessKey-7cf3c136.js","mappings":";;;;;;;MAMa,2BAA2B,GAAG,CAAC,EAAE,SAAS,EAAE,KAAK,EAAS;IAEtE,IAAI,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAC9C,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;QACtB,SAAS,GAAG,SAAS,CAAC,WAAW,EAAE,CAAC;QACpC,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;KAC1C;IACD,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;QACtB,SAAS,GAAG,SAAS,CAAC,WAAW,EAAE,CAAC;QACpC,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;KAC1C;IACD,QACCA;QACE,KAAK;QACL,IAAI,CAAC,MAAM,IACXA;YACCA,mBAAI,SAAS,CAAK;YACjB,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CACnB,IACA,IAAI,CACN,EACF;AACH;;;;","names":["h"],"sources":["src/components/span/InternalUnderlinedAccessKey.tsx"],"sourcesContent":["import { Fragment, h } from '@stencil/core';\n\ntype Props = {\n\taccessKey: string;\n\tlabel: string;\n};\nexport const InternalUnderlinedAccessKey = ({ accessKey, label }: Props) => {\n\t/* Prefer capitalization as defined in the access key, try uppercase/lowercase when there's no match. */\n\tlet [first, ...rest] = label.split(accessKey);\n\tif (rest.length === 0) {\n\t\taccessKey = accessKey.toUpperCase();\n\t\t[first, ...rest] = label.split(accessKey);\n\t}\n\tif (rest.length === 0) {\n\t\taccessKey = accessKey.toLowerCase();\n\t\t[first, ...rest] = label.split(accessKey);\n\t}\n\treturn (\n\t\t<>\n\t\t\t{first}\n\t\t\t{rest.length ? (\n\t\t\t\t<>\n\t\t\t\t\t<u>{accessKey}</u>\n\t\t\t\t\t{rest.join(accessKey)}\n\t\t\t\t</>\n\t\t\t) : null}\n\t\t</>\n\t);\n};\n"],"version":3}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ "use strict";const prop_validators=require("./prop.validators-68958b0a.js"),validateAccessKey=(s,a)=>{prop_validators.watchString(s,"_accessKey",a)};exports.validateAccessKey=validateAccessKey;
@@ -1 +1 @@
1
- {"file":"access-key-dda2764c.js","mappings":";;;;;;;MAea,iBAAiB,GAAG,CAAC,SAAoC,EAAE,KAAyB;IAChGA,2BAAW,CAAC,SAAS,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC;AAC7C;;;;","names":["watchString"],"sources":["src/schema/props/access-key.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\nimport { watchString } from '../utils';\n\n/* types */\nexport type AccessKeyPropType = string;\n\n/**\n * Defines the elements access key.\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/accesskey\n */\nexport type PropAccessKey = {\n\taccessKey: AccessKeyPropType;\n};\n\n/* validator */\nexport const validateAccessKey = (component: Generic.Element.Component, value?: AccessKeyPropType): void => {\n\twatchString(component, '_accessKey', value);\n};\n"],"version":3}
1
+ {"file":"access-key-34e56e4c.js","mappings":";;;;;;;MAea,iBAAiB,GAAG,CAAC,SAAoC,EAAE,KAAyB;IAChGA,2BAAW,CAAC,SAAS,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC;AAC7C;;;;","names":["watchString"],"sources":["src/schema/props/access-key.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\nimport { watchString } from '../utils';\n\n/* types */\nexport type AccessKeyPropType = string;\n\n/**\n * Defines the elements access key.\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/accesskey\n */\nexport type PropAccessKey = {\n\taccessKey: AccessKeyPropType;\n};\n\n/* validator */\nexport const validateAccessKey = (component: Generic.Element.Component, value?: AccessKeyPropType): void => {\n\twatchString(component, '_accessKey', value);\n};\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";const prop_validators=require("./prop.validators-9c1f1dbd.js"),validateAlignment=(i,t,l)=>{prop_validators.watchValidator(i,t,(i=>"string"==typeof i&&alignPropTypeOptions.includes(i)),new Set(alignPropTypeOptions),l,{defaultValue:"top"})},horizontalAlignOptions=["left","right"],verticalAlignOptions=["top","bottom"],alignPropTypeOptions=[...horizontalAlignOptions,...verticalAlignOptions],validateAlign=(i,t)=>{validateAlignment(i,"_align",t)};exports.validateAlign=validateAlign,exports.validateAlignment=validateAlignment;
4
+ "use strict";const prop_validators=require("./prop.validators-68958b0a.js"),validateAlignment=(i,t,a)=>{prop_validators.watchValidator(i,t,(i=>"string"==typeof i&&alignPropTypeOptions.includes(i)),new Set(alignPropTypeOptions),a,{defaultValue:"top"})},horizontalAlignOptions=["left","right"],verticalAlignOptions=["top","bottom"],alignPropTypeOptions=[...horizontalAlignOptions,...verticalAlignOptions],validateAlign=(i,t)=>{validateAlignment(i,"_align",t)};exports.validateAlign=validateAlign,exports.validateAlignment=validateAlignment;
@@ -1 +1 @@
1
- {"file":"align-83af4905.js","mappings":";;;;;;;MAMa,iBAAiB,GAAG,CAAC,SAAoC,EAAE,QAAgB,EAAE,KAAqB;IAC9GA,8BAAc,CAAC,SAAS,EAAE,QAAQ,EAAE,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,oBAAoB,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,IAAI,GAAG,CAAC,oBAAoB,CAAC,EAAE,KAAK,EAAE;QACvJ,YAAY,EAAE,KAAK;KACnB,CAAC,CAAC;AACJ;;ACLA,MAAM,sBAAsB,GAAG,CAAC,MAAM,EAAE,OAAO,CAAU,CAAC;AAE1D,MAAM,oBAAoB,GAAG,CAAC,KAAK,EAAE,QAAQ,CAAU,CAAC;AAEjD,MAAM,oBAAoB,GAAG,CAAC,GAAG,sBAAsB,EAAE,GAAG,oBAAoB,CAAU,CAAC;MAWrF,aAAa,GAAG,CAAC,SAAoC,EAAE,KAAqB;IACxF,iBAAiB,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;AAC/C;;;;;","names":["watchValidator"],"sources":["src/schema/validators/alignment.ts","src/schema/props/align.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport type { AlignPropType } from '../props';\nimport { alignPropTypeOptions } from '../props';\nimport { watchValidator } from '../utils';\n\nexport const validateAlignment = (component: Generic.Element.Component, propName: string, value?: AlignPropType): void => {\n\twatchValidator(component, propName, (value) => typeof value === 'string' && alignPropTypeOptions.includes(value), new Set(alignPropTypeOptions), value, {\n\t\tdefaultValue: 'top',\n\t});\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { validateAlignment } from '../validators';\n\n/* types */\nconst horizontalAlignOptions = ['left', 'right'] as const;\ntype HorizontalAlign = (typeof horizontalAlignOptions)[number];\nconst verticalAlignOptions = ['top', 'bottom'] as const;\ntype VerticalAlign = (typeof verticalAlignOptions)[number];\nexport const alignPropTypeOptions = [...horizontalAlignOptions, ...verticalAlignOptions] as const;\nexport type AlignPropType = HorizontalAlign | VerticalAlign;\n\n/**\n * Defines where to show the element preferably: top, right, bottom or left.\n */\nexport type PropAlign = {\n\talign: AlignPropType;\n};\n\n/* validator */\nexport const validateAlign = (component: Generic.Element.Component, value?: AlignPropType): void => {\n\tvalidateAlignment(component, '_align', value);\n};\n"],"version":3}
1
+ {"file":"align-3c503831.js","mappings":";;;;;;;MAMa,iBAAiB,GAAG,CAAC,SAAoC,EAAE,QAAgB,EAAE,KAAqB;IAC9GA,8BAAc,CAAC,SAAS,EAAE,QAAQ,EAAE,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,oBAAoB,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,IAAI,GAAG,CAAC,oBAAoB,CAAC,EAAE,KAAK,EAAE;QACvJ,YAAY,EAAE,KAAK;KACnB,CAAC,CAAC;AACJ;;ACLA,MAAM,sBAAsB,GAAG,CAAC,MAAM,EAAE,OAAO,CAAU,CAAC;AAE1D,MAAM,oBAAoB,GAAG,CAAC,KAAK,EAAE,QAAQ,CAAU,CAAC;AAEjD,MAAM,oBAAoB,GAAG,CAAC,GAAG,sBAAsB,EAAE,GAAG,oBAAoB,CAAU,CAAC;MAWrF,aAAa,GAAG,CAAC,SAAoC,EAAE,KAAqB;IACxF,iBAAiB,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;AAC/C;;;;;","names":["watchValidator"],"sources":["src/schema/validators/alignment.ts","src/schema/props/align.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport type { AlignPropType } from '../props';\nimport { alignPropTypeOptions } from '../props';\nimport { watchValidator } from '../utils';\n\nexport const validateAlignment = (component: Generic.Element.Component, propName: string, value?: AlignPropType): void => {\n\twatchValidator(component, propName, (value) => typeof value === 'string' && alignPropTypeOptions.includes(value), new Set(alignPropTypeOptions), value, {\n\t\tdefaultValue: 'top',\n\t});\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { validateAlignment } from '../validators';\n\n/* types */\nconst horizontalAlignOptions = ['left', 'right'] as const;\ntype HorizontalAlign = (typeof horizontalAlignOptions)[number];\nconst verticalAlignOptions = ['top', 'bottom'] as const;\ntype VerticalAlign = (typeof verticalAlignOptions)[number];\nexport const alignPropTypeOptions = [...horizontalAlignOptions, ...verticalAlignOptions] as const;\nexport type AlignPropType = HorizontalAlign | VerticalAlign;\n\n/**\n * Defines where to show the element preferably: top, right, bottom or left.\n */\nexport type PropAlign = {\n\talign: AlignPropType;\n};\n\n/* validator */\nexport const validateAlign = (component: Generic.Element.Component, value?: AlignPropType): void => {\n\tvalidateAlignment(component, '_align', value);\n};\n"],"version":3}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ "use strict";const index$1=require("./index-45dd33c3.js"),index=require("./index-d523b878.js"),dev_utils=require("./dev.utils-58fde089.js");index.setMode((e=>{try{e.shadowRoot instanceof ShadowRoot&&index$1.se(e,index$1.j(e))}catch(e){}return"default"})),Promise.resolve().then((function(){return require("./devtools-a547a791.js")})).then((e=>{"object"==typeof e&&null!==e&&"function"==typeof e.initialize&&e.initialize()})).catch((e=>{dev_utils.Log.error(e)}));const globalFn=()=>{},appGlobalScript=globalFn,globalScripts=appGlobalScript;exports.globalScripts=globalScripts;
@@ -0,0 +1 @@
1
+ {"file":"app-globals-8ded3cf0.js","mappings":";;;;;;;;;AAKAA,aAAO,CAAC,CAAC,GAAG;IACX,IAAI;QACH,IAAI,GAAG,CAAC,UAAU,YAAY,UAAU,EAAE;YACzCC,UAAa,CAAC,GAAG,EAAEC,SAAe,CAAC,GAAG,CAAC,CAAC,CAAC;SACzC;KACD;IAAC,OAAO,KAAK,EAAE;KAMf;IACD,OAAO,SAAS,CAAC;AAClB,CAAC,CAAC,CAAC;AAEH,oDAAO,wBAAY,KAAC;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;IACZC,aAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC;;;;AC3BQ,MAAC,aAAa,GAAG;;;;","names":["setMode","setThemeStyle","getThemeDetails","Log"],"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
- "use strict";const prop_validators=require("./prop.validators-9c1f1dbd.js"),alternativeButtonLinkRolePropTypeOptions=["button","link","tab","treeitem"],validateAlternativeButtonLinkRole=(t,a)=>{prop_validators.watchValidator(t,"_role",(t=>"string"==typeof t&&alternativeButtonLinkRolePropTypeOptions.includes(t)),new Set([`KoliBriAlternativeButtonLinkRole {${alternativeButtonLinkRolePropTypeOptions.join(", ")}`]),a)},validateAriaDescription=(t,a)=>{prop_validators.watchString(t,"_ariaDescription",a)},validateAriaExpanded=(t,a)=>{prop_validators.watchBoolean(t,"_ariaExpanded",a)};exports.validateAlternativeButtonLinkRole=validateAlternativeButtonLinkRole,exports.validateAriaDescription=validateAriaDescription,exports.validateAriaExpanded=validateAriaExpanded;
4
+ "use strict";const prop_validators=require("./prop.validators-68958b0a.js"),alternativeButtonLinkRolePropTypeOptions=["button","link","tab","treeitem"],validateAlternativeButtonLinkRole=(t,a)=>{prop_validators.watchValidator(t,"_role",(t=>"string"==typeof t&&alternativeButtonLinkRolePropTypeOptions.includes(t)),new Set([`KoliBriAlternativeButtonLinkRole {${alternativeButtonLinkRolePropTypeOptions.join(", ")}`]),a)},validateAriaDescription=(t,a)=>{prop_validators.watchString(t,"_ariaDescription",a)},validateAriaExpanded=(t,a)=>{prop_validators.watchBoolean(t,"_ariaExpanded",a)};exports.validateAlternativeButtonLinkRole=validateAlternativeButtonLinkRole,exports.validateAriaDescription=validateAriaDescription,exports.validateAriaExpanded=validateAriaExpanded;
@@ -1 +1 @@
1
- {"file":"aria-expanded-9cc5b0f8.js","mappings":";;;;;;;AAIA,MAAM,wCAAwC,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,CAAU,CAAC;MAWnF,iCAAiC,GAAG,CAAC,SAAoC,EAAE,KAAyC;IAChIA,8BAAc,CACb,SAAS,EACT,OAAO,EACP,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,wCAAwC,CAAC,QAAQ,CAAC,KAAK,CAAC,EAChG,IAAI,GAAG,CAAC,CAAC,qCAAqC,wCAAwC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EACrG,KAAK,CACL,CAAC;AACH;;MCTa,uBAAuB,GAAG,CAAC,SAAoC,EAAE,KAA+B;IAC5GC,2BAAW,CAAC,SAAS,EAAE,kBAAkB,EAAE,KAAK,CAAC,CAAC;AACnD;;MCAa,oBAAoB,GAAG,CAAC,SAAoC,EAAE,KAA4B;IACtGC,4BAAY,CAAC,SAAS,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC;AACjD;;;;;;","names":["watchValidator","watchString","watchBoolean"],"sources":["src/schema/props/alternative-button-link-role.ts","src/schema/props/aria-description.ts","src/schema/props/aria-expanded.ts"],"sourcesContent":["/* types */\nimport type { Generic } from 'adopted-style-sheets';\nimport { watchValidator } from '../utils';\n\nconst alternativeButtonLinkRolePropTypeOptions = ['button', 'link', 'tab', 'treeitem'] as const;\nexport type AlternativeButtonLinkRolePropType = (typeof alternativeButtonLinkRolePropTypeOptions)[number];\n\n/**\n * Defines the role of the components primary element.\n */\nexport type PropAlternativeButtonLinkRole = {\n\trole: AlternativeButtonLinkRolePropType;\n};\n\n/* validator */\nexport const validateAlternativeButtonLinkRole = (component: Generic.Element.Component, value?: AlternativeButtonLinkRolePropType) => {\n\twatchValidator(\n\t\tcomponent,\n\t\t`_role`,\n\t\t(value) => typeof value === 'string' && alternativeButtonLinkRolePropTypeOptions.includes(value),\n\t\tnew Set([`KoliBriAlternativeButtonLinkRole {${alternativeButtonLinkRolePropTypeOptions.join(', ')}`]),\n\t\tvalue,\n\t);\n};\n","import type { Generic } from 'adopted-style-sheets';\nimport { watchString } from '../utils';\n\n/* types */\nexport type AriaDescriptionPropType = string;\n\n/**\n * Defines the value for the aria-description attribute.\n */\nexport type PropAriaDescription = {\n\tariaDescription: AriaDescriptionPropType;\n};\n\n/* validator */\nexport const validateAriaDescription = (component: Generic.Element.Component, value?: AriaDescriptionPropType): void => {\n\twatchString(component, '_ariaDescription', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { watchBoolean } from '../utils';\n\n/* types */\nexport type AriaExpandedPropType = boolean;\n\n/**\n * Marks this element as open/expanded, or that the connected element (aria-controls/aria-owns) is open/expanded.\n * (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)\n */\nexport type PropAriaExpanded = {\n\tariaExpanded: AriaExpandedPropType;\n};\n\n/* validator */\nexport const validateAriaExpanded = (component: Generic.Element.Component, value?: AriaExpandedPropType): void => {\n\twatchBoolean(component, '_ariaExpanded', value);\n};\n"],"version":3}
1
+ {"file":"aria-expanded-23b849c8.js","mappings":";;;;;;;AAIA,MAAM,wCAAwC,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,CAAU,CAAC;MAWnF,iCAAiC,GAAG,CAAC,SAAoC,EAAE,KAAyC;IAChIA,8BAAc,CACb,SAAS,EACT,OAAO,EACP,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,wCAAwC,CAAC,QAAQ,CAAC,KAAK,CAAC,EAChG,IAAI,GAAG,CAAC,CAAC,qCAAqC,wCAAwC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EACrG,KAAK,CACL,CAAC;AACH;;MCTa,uBAAuB,GAAG,CAAC,SAAoC,EAAE,KAA+B;IAC5GC,2BAAW,CAAC,SAAS,EAAE,kBAAkB,EAAE,KAAK,CAAC,CAAC;AACnD;;MCAa,oBAAoB,GAAG,CAAC,SAAoC,EAAE,KAA4B;IACtGC,4BAAY,CAAC,SAAS,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC;AACjD;;;;;;","names":["watchValidator","watchString","watchBoolean"],"sources":["src/schema/props/alternative-button-link-role.ts","src/schema/props/aria-description.ts","src/schema/props/aria-expanded.ts"],"sourcesContent":["/* types */\nimport type { Generic } from 'adopted-style-sheets';\nimport { watchValidator } from '../utils';\n\nconst alternativeButtonLinkRolePropTypeOptions = ['button', 'link', 'tab', 'treeitem'] as const;\nexport type AlternativeButtonLinkRolePropType = (typeof alternativeButtonLinkRolePropTypeOptions)[number];\n\n/**\n * Defines the role of the components primary element.\n */\nexport type PropAlternativeButtonLinkRole = {\n\trole: AlternativeButtonLinkRolePropType;\n};\n\n/* validator */\nexport const validateAlternativeButtonLinkRole = (component: Generic.Element.Component, value?: AlternativeButtonLinkRolePropType) => {\n\twatchValidator(\n\t\tcomponent,\n\t\t`_role`,\n\t\t(value) => typeof value === 'string' && alternativeButtonLinkRolePropTypeOptions.includes(value),\n\t\tnew Set([`KoliBriAlternativeButtonLinkRole {${alternativeButtonLinkRolePropTypeOptions.join(', ')}`]),\n\t\tvalue,\n\t);\n};\n","import type { Generic } from 'adopted-style-sheets';\nimport { watchString } from '../utils';\n\n/* types */\nexport type AriaDescriptionPropType = string;\n\n/**\n * Defines the value for the aria-description attribute.\n */\nexport type PropAriaDescription = {\n\tariaDescription: AriaDescriptionPropType;\n};\n\n/* validator */\nexport const validateAriaDescription = (component: Generic.Element.Component, value?: AriaDescriptionPropType): void => {\n\twatchString(component, '_ariaDescription', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { watchBoolean } from '../utils';\n\n/* types */\nexport type AriaExpandedPropType = boolean;\n\n/**\n * Marks this element as open/expanded, or that the connected element (aria-controls/aria-owns) is open/expanded.\n * (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)\n */\nexport type PropAriaExpanded = {\n\tariaExpanded: AriaExpandedPropType;\n};\n\n/* validator */\nexport const validateAriaExpanded = (component: Generic.Element.Component, value?: AriaExpandedPropType): void => {\n\twatchBoolean(component, '_ariaExpanded', value);\n};\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";const dev_utils=require("./dev.utils-58fde089.js"),prop_validators=require("./prop.validators-9c1f1dbd.js"),validateName=(t,e,i)=>{prop_validators.watchString(t,"_name",e,i)},isAssociatedTagName=t=>"KOL-BUTTON"===t||"KOL-COMBOBOX"===t||"KOL-INPUT-CHECKBOX"===t||"KOL-INPUT-COLOR"===t||"KOL-INPUT-DATE"===t||"KOL-INPUT-EMAIL"===t||"KOL-INPUT-FILE"===t||"KOL-INPUT-NUMBER"===t||"KOL-INPUT-PASSWORD"===t||"KOL-INPUT-RADIO"===t||"KOL-INPUT-RANGE"===t||"KOL-INPUT-TEXT"===t||"KOL-SELECT"===t||"KOL-SINGLE-SELECT"===t||"KOL-TEXTAREA"===t;class AssociatedInputController{constructor(t,e,i){var s,o,a;if(this.experimentalMode=dev_utils.getExperimentalMode(),this.setFormAssociatedValue=t=>{var e;const i=null===(e=this.formAssociated)||void 0===e?void 0:e.getAttribute("name");null!==i&&""!==i||prop_validators.devHint(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);const s=this.tryToStringifyValue(t);this.syncValue(t,s,this.formAssociated),this.syncValue(t,s,this.syncToOwnInput)},this.component=t,this.host=this.findHostWithShadowRoot(i),this.type=e,this.experimentalMode&&isAssociatedTagName(null===(s=this.host)||void 0===s?void 0:s.tagName)&&t._name){switch(null===(o=this.host)||void 0===o||o.querySelectorAll("input,select,textarea").forEach((t=>{var e;null===(e=this.host)||void 0===e||e.removeChild(t)})),this.type){case"button":case"color":case"date":case"email":case"file":case"number":case"password":case"radio":case"range":case"text":this.formAssociated=document.createElement("input"),this.formAssociated.setAttribute("type",this.type);break;case"select":this.formAssociated=document.createElement("select"),this.formAssociated.setAttribute("multiple","");break;case"textarea":this.formAssociated=document.createElement("textarea");break;default:this.formAssociated=document.createElement("input"),this.formAssociated.setAttribute("type","hidden")}this.formAssociated.setAttribute("aria-hidden","true"),this.formAssociated.setAttribute("data-form-associated",""),this.formAssociated.setAttribute("hidden",""),null===(a=this.host)||void 0===a||a.appendChild(this.formAssociated)}}findHostWithShadowRoot(t){for(;null===(null==t?void 0:t.shadowRoot)&&t!==document.body;)(t=null==t?void 0:t.parentNode).host&&(t=t.host);return t}setAttribute(t,e,i){if(this.experimentalMode)try{if("boolean"!=typeof(i="object"==typeof i&&null!==i?JSON.stringify(i):i)&&"number"!=typeof i&&"string"!=typeof i)throw new Error("Invalid value type: "+typeof i);null==e||e.setAttribute(t,`${i}`)}catch(i){null==e||e.removeAttribute(t)}}tryToStringifyValue(t){try{return"object"==typeof t&&null!==t?JSON.stringify(t).toString():null==t?null:t.toString()}catch(t){return prop_validators.devWarning(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,i){if(i)switch(this.type){case"file":i.files=t;break;case"select":i.querySelectorAll("option").forEach((t=>{i.removeChild(t)})),Array.isArray(t)&&t.forEach((t=>{const e=this.tryToStringifyValue(t);if("string"==typeof e){const t=document.createElement("option");t.setAttribute("value",e),t.setAttribute("selected",""),i.appendChild(t)}}));break;case"radio":"string"==typeof e&&(i.setAttribute("value",e),i.setAttribute("checked",""),i.value=e);break;default:"string"==typeof e?(i.setAttribute("value",e),i.value=e):(i.removeAttribute("value"),i.value="")}}validateName(t){validateName(this.component,t,{hooks:{afterPatch:()=>{this.setAttribute("name",this.formAssociated,this.component.state._name)}}}),void 0===t&&prop_validators.devHint("A name on input fields or switches is not strictly required, but it might be relevant for the autocomplete function and for the static submission of the input field.")}validateSyncValueBySelector(t){if(this.experimentalMode&&"string"==typeof t){const e=document.querySelector(t);e&&(this.syncToOwnInput=e)}}componentWillLoad(){this.validateName(this.component._name),this.validateSyncValueBySelector(this.component._syncValueBySelector)}}exports.AssociatedInputController=AssociatedInputController;
4
+ "use strict";const dev_utils=require("./dev.utils-58fde089.js"),prop_validators=require("./prop.validators-68958b0a.js"),validateName=(t,e,i)=>{prop_validators.watchString(t,"_name",e,i)},isAssociatedTagName=t=>"KOL-BUTTON"===t||"KOL-COMBOBOX"===t||"KOL-INPUT-CHECKBOX"===t||"KOL-INPUT-COLOR"===t||"KOL-INPUT-DATE"===t||"KOL-INPUT-EMAIL"===t||"KOL-INPUT-FILE"===t||"KOL-INPUT-NUMBER"===t||"KOL-INPUT-PASSWORD"===t||"KOL-INPUT-RADIO"===t||"KOL-INPUT-RANGE"===t||"KOL-INPUT-TEXT"===t||"KOL-SELECT"===t||"KOL-SINGLE-SELECT"===t||"KOL-TEXTAREA"===t;class AssociatedInputController{constructor(t,e,i){var s,o,a;if(this.experimentalMode=dev_utils.getExperimentalMode(),this.setFormAssociatedValue=t=>{var e;const i=null===(e=this.formAssociated)||void 0===e?void 0:e.getAttribute("name");null!==i&&""!==i||prop_validators.devHint(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);const s=this.tryToStringifyValue(t);this.syncValue(t,s,this.formAssociated),this.syncValue(t,s,this.syncToOwnInput)},this.component=t,this.host=this.findHostWithShadowRoot(i),this.type=e,this.experimentalMode&&isAssociatedTagName(null===(s=this.host)||void 0===s?void 0:s.tagName)&&t._name){switch(null===(o=this.host)||void 0===o||o.querySelectorAll("input,select,textarea").forEach((t=>{var e;null===(e=this.host)||void 0===e||e.removeChild(t)})),this.type){case"button":case"color":case"date":case"email":case"file":case"number":case"password":case"radio":case"range":case"text":this.formAssociated=document.createElement("input"),this.formAssociated.setAttribute("type",this.type);break;case"select":this.formAssociated=document.createElement("select"),this.formAssociated.setAttribute("multiple","");break;case"textarea":this.formAssociated=document.createElement("textarea");break;default:this.formAssociated=document.createElement("input"),this.formAssociated.setAttribute("type","hidden")}this.formAssociated.setAttribute("aria-hidden","true"),this.formAssociated.setAttribute("data-form-associated",""),this.formAssociated.setAttribute("hidden",""),null===(a=this.host)||void 0===a||a.appendChild(this.formAssociated)}}findHostWithShadowRoot(t){for(;null===(null==t?void 0:t.shadowRoot)&&t!==document.body;)(t=null==t?void 0:t.parentNode).host&&(t=t.host);return t}setAttribute(t,e,i){if(this.experimentalMode)try{if("boolean"!=typeof(i="object"==typeof i&&null!==i?JSON.stringify(i):i)&&"number"!=typeof i&&"string"!=typeof i)throw new Error("Invalid value type: "+typeof i);null==e||e.setAttribute(t,`${i}`)}catch(i){null==e||e.removeAttribute(t)}}tryToStringifyValue(t){try{return"object"==typeof t&&null!==t?JSON.stringify(t).toString():null==t?null:t.toString()}catch(t){return prop_validators.devWarning(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,i){if(i)switch(this.type){case"file":i.files=t;break;case"select":i.querySelectorAll("option").forEach((t=>{i.removeChild(t)})),Array.isArray(t)&&t.forEach((t=>{const e=this.tryToStringifyValue(t);if("string"==typeof e){const t=document.createElement("option");t.setAttribute("value",e),t.setAttribute("selected",""),i.appendChild(t)}}));break;case"radio":"string"==typeof e&&(i.setAttribute("value",e),i.setAttribute("checked",""),i.value=e);break;default:"string"==typeof e?(i.setAttribute("value",e),i.value=e):(i.removeAttribute("value"),i.value="")}}validateName(t){validateName(this.component,t,{hooks:{afterPatch:()=>{this.setAttribute("name",this.formAssociated,this.component.state._name)}}}),void 0===t&&prop_validators.devHint("A name on input fields or switches is not strictly required, but it might be relevant for the autocomplete function and for the static submission of the input field.")}validateSyncValueBySelector(t){if(this.experimentalMode&&"string"==typeof t){const e=document.querySelector(t);e&&(this.syncToOwnInput=e)}}componentWillLoad(){this.validateName(this.component._name),this.validateSyncValueBySelector(this.component._syncValueBySelector)}}exports.AssociatedInputController=AssociatedInputController;
@@ -1 +1 @@
1
- {"file":"associated.controller-6ef4fe6e.js","mappings":";;;;;;;;AAgBO,MAAM,YAAY,GAAG,CAAC,SAAoC,EAAE,KAAoB,EAAE,OAA4B;IACpHA,2BAAW,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;AACjD,CAAC;;ACFD,MAAM,mBAAmB,GAAG,CAAC,IAAa,KACzC,IAAI,KAAK,YAAY;IACrB,IAAI,KAAK,cAAc;IACvB,IAAI,KAAK,oBAAoB;IAC7B,IAAI,KAAK,iBAAiB;IAC1B,IAAI,KAAK,gBAA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AI,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;KACtE;;;;;","names":["watchString","getExperimentalMode","devHint","devWarning"],"sources":["src/schema/props/name.ts","src/components/input-adapter-leanup/associated.controller.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchStringOptions } from '../utils';\nimport { watchString } from '../utils';\n\n/* types */\nexport type NamePropType = string;\n\n/**\n * Defines the technical name of an input field.\n */\nexport type PropName = {\n\tname: NamePropType;\n};\n\n/* validator */\nexport const validateName = (component: Generic.Element.Component, value?: NamePropType, options?: WatchStringOptions): void => {\n\twatchString(component, '_name', value, options);\n};\n","import type { NamePropType, PropSyncValueBySelector, StencilUnknown, SyncValueBySelectorPropType } from '../../schema';\nimport { devHint, devWarning, getExperimentalMode, validateName } from '../../schema';\n\nimport type { Generic } from 'adopted-style-sheets';\n\ntype RequiredProps = NonNullable<unknown>;\ntype OptionalProps = {\n\tname: string;\n} & PropSyncValueBySelector;\ntype Props = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype Watches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\ntype HTMLInputFileElement = HTMLInputElement & {\n\tfiles: FileList;\n};\n\nconst isAssociatedTagName = (name?: string): boolean =>\n\tname === 'KOL-BUTTON' ||\n\tname === 'KOL-COMBOBOX' ||\n\tname === 'KOL-INPUT-CHECKBOX' ||\n\tname === 'KOL-INPUT-COLOR' ||\n\tname === 'KOL-INPUT-DATE' ||\n\tname === 'KOL-INPUT-EMAIL' ||\n\tname === 'KOL-INPUT-FILE' ||\n\tname === 'KOL-INPUT-NUMBER' ||\n\tname === 'KOL-INPUT-PASSWORD' ||\n\tname === 'KOL-INPUT-RADIO' ||\n\tname === 'KOL-INPUT-RANGE' ||\n\tname === 'KOL-INPUT-TEXT' ||\n\tname === 'KOL-SELECT' ||\n\tname === 'KOL-SINGLE-SELECT' ||\n\tname === 'KOL-TEXTAREA';\n\nexport class AssociatedInputController implements Watches {\n\tprivate readonly experimentalMode = getExperimentalMode();\n\n\tprotected readonly component: Generic.Element.Component & Props;\n\tprotected readonly type: string;\n\tprotected readonly host?: HTMLElement;\n\n\tpublic readonly formAssociated?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\tpublic syncToOwnInput?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\n\tpublic constructor(component: Generic.Element.Component & Props, type: string, host?: HTMLElement) {\n\t\tthis.component = component;\n\t\tthis.host = this.findHostWithShadowRoot(host);\n\t\tthis.type = type;\n\n\t\tif (this.experimentalMode && isAssociatedTagName(this.host?.tagName) && component._name) {\n\t\t\tthis.host?.querySelectorAll('input,select,textarea').forEach((el) => {\n\t\t\t\tthis.host?.removeChild(el);\n\t\t\t});\n\t\t\tswitch (this.type) {\n\t\t\t\tcase 'button':\n\t\t\t\tcase 'color':\n\t\t\t\tcase 'date':\n\t\t\t\tcase 'email':\n\t\t\t\tcase 'file':\n\t\t\t\tcase 'number':\n\t\t\t\tcase 'password':\n\t\t\t\tcase 'radio':\n\t\t\t\tcase 'range':\n\t\t\t\tcase 'text':\n\t\t\t\t\tthis.formAssociated = document.createElement('input');\n\t\t\t\t\tthis.formAssociated.setAttribute('type', this.type);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'select':\n\t\t\t\t\tthis.formAssociated = document.createElement('select');\n\t\t\t\t\tthis.formAssociated.setAttribute('multiple', '');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'textarea':\n\t\t\t\t\tthis.formAssociated = document.createElement('textarea');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'checkbox': // Checkbox uses default case\n\t\t\t\tcase 'single-select': // SingleSelect uses default case\n\t\t\t\tcase 'combobox': // Combobox uses default case\n\t\t\t\tdefault:\n\t\t\t\t\tthis.formAssociated = document.createElement('input');\n\t\t\t\t\tthis.formAssociated.setAttribute('type', 'hidden');\n\t\t\t}\n\t\t\tthis.formAssociated.setAttribute('aria-hidden', 'true');\n\t\t\tthis.formAssociated.setAttribute('data-form-associated', '');\n\t\t\tthis.formAssociated.setAttribute('hidden', '');\n\t\t\tthis.host?.appendChild(this.formAssociated);\n\t\t}\n\t}\n\n\t/**\n\t * The associated elements must not reside within the ShadowRoot and must\n\t * reside as children in the host to be recognized by native forms.\n\t */\n\tprivate findHostWithShadowRoot(host?: HTMLElement): HTMLElement | undefined {\n\t\twhile (host?.shadowRoot === null && host !== document.body) {\n\t\t\thost = host?.parentNode as HTMLElement;\n\t\t\tif ((host as unknown as ShadowRoot).host) {\n\t\t\t\thost = (host as unknown as ShadowRoot).host as HTMLElement;\n\t\t\t}\n\t\t}\n\t\treturn host;\n\t}\n\n\tprotected setAttribute(qualifiedName: string, element?: HTMLElement, value?: string | number | boolean) {\n\t\tif (this.experimentalMode) {\n\t\t\ttry {\n\t\t\t\tvalue = typeof value === 'object' && value !== null ? JSON.stringify(value) : value;\n\t\t\t\tif (typeof value === 'boolean' || typeof value === 'number' || typeof value === 'string') {\n\t\t\t\t\telement?.setAttribute(qualifiedName, `${value as string}`);\n\t\t\t\t} else {\n\t\t\t\t\tthrow new Error(`Invalid value type: ${typeof value}`);\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\telement?.removeAttribute(qualifiedName);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * We need to stringify the value, for the setAttribute method.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttribute\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/attributes\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/attributes#value\n\t *\n\t * TODO: It is possible that the value are a cyclic object value. So we need a custom\n\t * JSON.stringify method from outside to convert it to string.\n\t */\n\tprivate tryToStringifyValue(value: StencilUnknown): string | null {\n\t\ttry {\n\t\t\treturn typeof value === 'object' && value !== null ? JSON.stringify(value).toString() : value === null || value === undefined ? null : value.toString();\n\t\t} catch (e) {\n\t\t\tdevWarning(`The form field raw value is not able to stringify! ${e as string}`);\n\t\t\treturn '';\n\t\t}\n\t}\n\n\t/**\n\t * We try to support native form-associated custom elements.\n\t *\n\t * @see https://github.com/public-ui/kolibri/discussions/2821\n\t */\n\tpublic readonly setFormAssociatedValue = (rawValue: StencilUnknown) => {\n\t\tconst name = this.formAssociated?.getAttribute('name');\n\t\tif (name === null || name === '') {\n\t\t\tdevHint(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);\n\t\t}\n\t\tconst strValue = this.tryToStringifyValue(rawValue);\n\t\tthis.syncValue(rawValue, strValue, this.formAssociated);\n\t\tthis.syncValue(rawValue, strValue, this.syncToOwnInput);\n\t};\n\n\tprivate syncValue(\n\t\trawValue: StencilUnknown,\n\t\tstrValue: string | null,\n\t\tassociatedElement?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement,\n\t) {\n\t\tif (associatedElement) {\n\t\t\tswitch (this.type) {\n\t\t\t\tcase 'file':\n\t\t\t\t\t(associatedElement as HTMLInputFileElement).files = rawValue as FileList;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'select':\n\t\t\t\t\t(associatedElement as HTMLSelectElement).querySelectorAll('option').forEach((el) => {\n\t\t\t\t\t\t(associatedElement as HTMLSelectElement).removeChild(el);\n\t\t\t\t\t});\n\t\t\t\t\tif (Array.isArray(rawValue)) {\n\t\t\t\t\t\trawValue.forEach((rawValueItem) => {\n\t\t\t\t\t\t\tconst strValueItem = this.tryToStringifyValue(rawValueItem as string);\n\t\t\t\t\t\t\tif (typeof strValueItem === 'string') {\n\t\t\t\t\t\t\t\tconst option = document.createElement('option');\n\t\t\t\t\t\t\t\toption.setAttribute('value', strValueItem);\n\t\t\t\t\t\t\t\toption.setAttribute('selected', '');\n\t\t\t\t\t\t\t\t(associatedElement as HTMLSelectElement).appendChild(option);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'radio':\n\t\t\t\t\tif (typeof strValue === 'string') {\n\t\t\t\t\t\tassociatedElement.setAttribute('value', strValue);\n\t\t\t\t\t\tassociatedElement.setAttribute('checked', '');\n\t\t\t\t\t\tassociatedElement.value = strValue;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif (typeof strValue === 'string') {\n\t\t\t\t\t\tassociatedElement.setAttribute('value', strValue);\n\t\t\t\t\t\tassociatedElement.value = strValue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tassociatedElement.removeAttribute('value');\n\t\t\t\t\t\tassociatedElement.value = '';\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic validateName(value?: NamePropType): void {\n\t\tvalidateName(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: () => {\n\t\t\t\t\tthis.setAttribute('name', this.formAssociated, this.component.state._name as string);\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t\tif (typeof value === 'undefined') {\n\t\t\tdevHint(\n\t\t\t\t`A name on input fields or switches is not strictly required, but it might be relevant for the autocomplete function and for the static submission of the input field.`,\n\t\t\t);\n\t\t}\n\t}\n\n\tpublic validateSyncValueBySelector(value?: SyncValueBySelectorPropType): void {\n\t\tif (this.experimentalMode && typeof value === 'string') {\n\t\t\tconst input = document.querySelector(value) as HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\t\t\tif (input /* SSR instanceof HTMLInputElement */) {\n\t\t\t\tthis.syncToOwnInput = input;\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateName(this.component._name);\n\t\tthis.validateSyncValueBySelector(this.component._syncValueBySelector);\n\t}\n}\n"],"version":3}
1
+ {"file":"associated.controller-e7651bb3.js","mappings":";;;;;;;;AAgBO,MAAM,YAAY,GAAG,CAAC,SAAoC,EAAE,KAAoB,EAAE,OAA4B;IACpHA,2BAAW,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;AACjD,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AI,CAAC,cAAc,GAAG,KAAK,CAAC;aAC5B;SACD;KACD;IAEM,iBAAiB;QACvB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACxC,IAAI,CAAC,2BAA2B,CAAC,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;KACtE;;;;;","names":["watchString","getExperimentalMode","devHint","devWarning"],"sources":["src/schema/props/name.ts","src/components/input-adapter-leanup/associated.controller.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchStringOptions } from '../utils';\nimport { watchString } from '../utils';\n\n/* types */\nexport type NamePropType = string;\n\n/**\n * Defines the technical name of an input field.\n */\nexport type PropName = {\n\tname: NamePropType;\n};\n\n/* validator */\nexport const validateName = (component: Generic.Element.Component, value?: NamePropType, options?: WatchStringOptions): void => {\n\twatchString(component, '_name', value, options);\n};\n","import type { NamePropType, PropSyncValueBySelector, StencilUnknown, SyncValueBySelectorPropType } from '../../schema';\nimport { devHint, devWarning, getExperimentalMode, validateName } from '../../schema';\n\nimport type { Generic } from 'adopted-style-sheets';\n\ntype RequiredProps = NonNullable<unknown>;\ntype OptionalProps = {\n\tname: string;\n} & PropSyncValueBySelector;\ntype Props = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype Watches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\ntype HTMLInputFileElement = HTMLInputElement & {\n\tfiles: FileList;\n};\n\nconst isAssociatedTagName = (name?: string): boolean =>\n\tname === 'KOL-BUTTON' ||\n\tname === 'KOL-COMBOBOX' ||\n\tname === 'KOL-INPUT-CHECKBOX' ||\n\tname === 'KOL-INPUT-COLOR' ||\n\tname === 'KOL-INPUT-DATE' ||\n\tname === 'KOL-INPUT-EMAIL' ||\n\tname === 'KOL-INPUT-FILE' ||\n\tname === 'KOL-INPUT-NUMBER' ||\n\tname === 'KOL-INPUT-PASSWORD' ||\n\tname === 'KOL-INPUT-RADIO' ||\n\tname === 'KOL-INPUT-RANGE' ||\n\tname === 'KOL-INPUT-TEXT' ||\n\tname === 'KOL-SELECT' ||\n\tname === 'KOL-SINGLE-SELECT' ||\n\tname === 'KOL-TEXTAREA';\n\nexport class AssociatedInputController implements Watches {\n\tprivate readonly experimentalMode = getExperimentalMode();\n\n\tprotected readonly component: Generic.Element.Component & Props;\n\tprotected readonly type: string;\n\tprotected readonly host?: HTMLElement;\n\n\tpublic readonly formAssociated?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\tpublic syncToOwnInput?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\n\tpublic constructor(component: Generic.Element.Component & Props, type: string, host?: HTMLElement) {\n\t\tthis.component = component;\n\t\tthis.host = this.findHostWithShadowRoot(host);\n\t\tthis.type = type;\n\n\t\tif (this.experimentalMode && isAssociatedTagName(this.host?.tagName) && component._name) {\n\t\t\tthis.host?.querySelectorAll('input,select,textarea').forEach((el) => {\n\t\t\t\tthis.host?.removeChild(el);\n\t\t\t});\n\t\t\tswitch (this.type) {\n\t\t\t\tcase 'button':\n\t\t\t\tcase 'color':\n\t\t\t\tcase 'date':\n\t\t\t\tcase 'email':\n\t\t\t\tcase 'file':\n\t\t\t\tcase 'number':\n\t\t\t\tcase 'password':\n\t\t\t\tcase 'radio':\n\t\t\t\tcase 'range':\n\t\t\t\tcase 'text':\n\t\t\t\t\tthis.formAssociated = document.createElement('input');\n\t\t\t\t\tthis.formAssociated.setAttribute('type', this.type);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'select':\n\t\t\t\t\tthis.formAssociated = document.createElement('select');\n\t\t\t\t\tthis.formAssociated.setAttribute('multiple', '');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'textarea':\n\t\t\t\t\tthis.formAssociated = document.createElement('textarea');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'checkbox': // Checkbox uses default case\n\t\t\t\tcase 'single-select': // SingleSelect uses default case\n\t\t\t\tcase 'combobox': // Combobox uses default case\n\t\t\t\tdefault:\n\t\t\t\t\tthis.formAssociated = document.createElement('input');\n\t\t\t\t\tthis.formAssociated.setAttribute('type', 'hidden');\n\t\t\t}\n\t\t\tthis.formAssociated.setAttribute('aria-hidden', 'true');\n\t\t\tthis.formAssociated.setAttribute('data-form-associated', '');\n\t\t\tthis.formAssociated.setAttribute('hidden', '');\n\t\t\tthis.host?.appendChild(this.formAssociated);\n\t\t}\n\t}\n\n\t/**\n\t * The associated elements must not reside within the ShadowRoot and must\n\t * reside as children in the host to be recognized by native forms.\n\t */\n\tprivate findHostWithShadowRoot(host?: HTMLElement): HTMLElement | undefined {\n\t\twhile (host?.shadowRoot === null && host !== document.body) {\n\t\t\thost = host?.parentNode as HTMLElement;\n\t\t\tif ((host as unknown as ShadowRoot).host) {\n\t\t\t\thost = (host as unknown as ShadowRoot).host as HTMLElement;\n\t\t\t}\n\t\t}\n\t\treturn host;\n\t}\n\n\tprotected setAttribute(qualifiedName: string, element?: HTMLElement, value?: string | number | boolean) {\n\t\tif (this.experimentalMode) {\n\t\t\ttry {\n\t\t\t\tvalue = typeof value === 'object' && value !== null ? JSON.stringify(value) : value;\n\t\t\t\tif (typeof value === 'boolean' || typeof value === 'number' || typeof value === 'string') {\n\t\t\t\t\telement?.setAttribute(qualifiedName, `${value as string}`);\n\t\t\t\t} else {\n\t\t\t\t\tthrow new Error(`Invalid value type: ${typeof value}`);\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\telement?.removeAttribute(qualifiedName);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * We need to stringify the value, for the setAttribute method.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttribute\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/attributes\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/attributes#value\n\t *\n\t * TODO: It is possible that the value are a cyclic object value. So we need a custom\n\t * JSON.stringify method from outside to convert it to string.\n\t */\n\tprivate tryToStringifyValue(value: StencilUnknown): string | null {\n\t\ttry {\n\t\t\treturn typeof value === 'object' && value !== null ? JSON.stringify(value).toString() : value === null || value === undefined ? null : value.toString();\n\t\t} catch (e) {\n\t\t\tdevWarning(`The form field raw value is not able to stringify! ${e as string}`);\n\t\t\treturn '';\n\t\t}\n\t}\n\n\t/**\n\t * We try to support native form-associated custom elements.\n\t *\n\t * @see https://github.com/public-ui/kolibri/discussions/2821\n\t */\n\tpublic readonly setFormAssociatedValue = (rawValue: StencilUnknown) => {\n\t\tconst name = this.formAssociated?.getAttribute('name');\n\t\tif (name === null || name === '') {\n\t\t\tdevHint(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);\n\t\t}\n\t\tconst strValue = this.tryToStringifyValue(rawValue);\n\t\tthis.syncValue(rawValue, strValue, this.formAssociated);\n\t\tthis.syncValue(rawValue, strValue, this.syncToOwnInput);\n\t};\n\n\tprivate syncValue(\n\t\trawValue: StencilUnknown,\n\t\tstrValue: string | null,\n\t\tassociatedElement?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement,\n\t) {\n\t\tif (associatedElement) {\n\t\t\tswitch (this.type) {\n\t\t\t\tcase 'file':\n\t\t\t\t\t(associatedElement as HTMLInputFileElement).files = rawValue as FileList;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'select':\n\t\t\t\t\t(associatedElement as HTMLSelectElement).querySelectorAll('option').forEach((el) => {\n\t\t\t\t\t\t(associatedElement as HTMLSelectElement).removeChild(el);\n\t\t\t\t\t});\n\t\t\t\t\tif (Array.isArray(rawValue)) {\n\t\t\t\t\t\trawValue.forEach((rawValueItem) => {\n\t\t\t\t\t\t\tconst strValueItem = this.tryToStringifyValue(rawValueItem as string);\n\t\t\t\t\t\t\tif (typeof strValueItem === 'string') {\n\t\t\t\t\t\t\t\tconst option = document.createElement('option');\n\t\t\t\t\t\t\t\toption.setAttribute('value', strValueItem);\n\t\t\t\t\t\t\t\toption.setAttribute('selected', '');\n\t\t\t\t\t\t\t\t(associatedElement as HTMLSelectElement).appendChild(option);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'radio':\n\t\t\t\t\tif (typeof strValue === 'string') {\n\t\t\t\t\t\tassociatedElement.setAttribute('value', strValue);\n\t\t\t\t\t\tassociatedElement.setAttribute('checked', '');\n\t\t\t\t\t\tassociatedElement.value = strValue;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif (typeof strValue === 'string') {\n\t\t\t\t\t\tassociatedElement.setAttribute('value', strValue);\n\t\t\t\t\t\tassociatedElement.value = strValue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tassociatedElement.removeAttribute('value');\n\t\t\t\t\t\tassociatedElement.value = '';\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic validateName(value?: NamePropType): void {\n\t\tvalidateName(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: () => {\n\t\t\t\t\tthis.setAttribute('name', this.formAssociated, this.component.state._name as string);\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t\tif (typeof value === 'undefined') {\n\t\t\tdevHint(\n\t\t\t\t`A name on input fields or switches is not strictly required, but it might be relevant for the autocomplete function and for the static submission of the input field.`,\n\t\t\t);\n\t\t}\n\t}\n\n\tpublic validateSyncValueBySelector(value?: SyncValueBySelectorPropType): void {\n\t\tif (this.experimentalMode && typeof value === 'string') {\n\t\t\tconst input = document.querySelector(value) as HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\t\t\tif (input /* SSR instanceof HTMLInputElement */) {\n\t\t\t\tthis.syncToOwnInput = input;\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateName(this.component._name);\n\t\tthis.validateSyncValueBySelector(this.component._syncValueBySelector);\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";const dev_utils=require("./dev.utils-58fde089.js"),prop_validators=require("./prop.validators-9c1f1dbd.js");var colorName={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},names=colorName,colorParse=parse$1,baseHues={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function parse$1(r){var e,a,o=[],t=1;if("string"==typeof r)if(r=r.toLowerCase(),names[r])o=names[r].slice(),a="rgb";else if("transparent"===r)t=0,a="rgb",o=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(r)){var l=r.slice(1);t=1,(s=l.length)<=4?(o=[parseInt(l[0]+l[0],16),parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16)],4===s&&(t=parseInt(l[3]+l[3],16)/255)):(o=[parseInt(l[0]+l[1],16),parseInt(l[2]+l[3],16),parseInt(l[4]+l[5],16)],8===s&&(t=parseInt(l[6]+l[7],16)/255)),o[0]||(o[0]=0),o[1]||(o[1]=0),o[2]||(o[2]=0),a="rgb"}else if(e=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(r)){var n=e[1],i="rgb"===n;a=l=n.replace(/a$/,"");var s="cmyk"===l?4:"gray"===l?1:3;o=e[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(r,e){if(/%$/.test(r))return e===s?parseFloat(r)/100:"rgb"===l?255*parseFloat(r)/100:parseFloat(r);if("h"===l[e]){if(/deg$/.test(r))return parseFloat(r);if(void 0!==baseHues[r])return baseHues[r]}return parseFloat(r)})),n===l&&o.push(1),t=i||void 0===o[s]?1:o[s],o=o.slice(0,s)}else r.length>10&&/[0-9](?:\s|\/)/.test(r)&&(o=r.match(/([0-9]+)/g).map((function(r){return parseFloat(r)})),a=r.match(/([a-z])/gi).join("").toLowerCase());else isNaN(r)?Array.isArray(r)||r.length?(o=[r[0],r[1],r[2]],a="rgb",t=4===r.length?r[3]:1):r instanceof Object&&(null!=r.r||null!=r.red||null!=r.R?(a="rgb",o=[r.r||r.red||r.R||0,r.g||r.green||r.G||0,r.b||r.blue||r.B||0]):(a="hsl",o=[r.h||r.hue||r.H||0,r.s||r.saturation||r.S||0,r.l||r.lightness||r.L||r.b||r.brightness]),t=r.a||r.alpha||r.opacity||1,null!=r.opacity&&(t/=100)):(a="rgb",o=[r>>>16,(65280&r)>>>8,255&r]);return{space:a,values:o,alpha:t}}var parse=colorParse,colorRgba=function(r){var e;Array.isArray(r)&&r.raw&&(r=String.raw.apply(null,arguments));var a=parse(r);if(!a.space)return[];var o=[0,0,0],t="h"===a.space[0]?[360,100,100]:[255,255,255];return(e=Array(3))[0]=Math.min(Math.max(a.values[0],o[0]),t[0]),e[1]=Math.min(Math.max(a.values[1],o[1]),t[1]),e[2]=Math.min(Math.max(a.values[2],o[2]),t[2]),"h"===a.space[0]&&(e=hsl2rgb(e)),e.push(Math.min(Math.max(a.alpha,0),1)),e};function hsl2rgb(r){var e,a,o,t,l,n=r[0]/360,i=r[1]/100,s=r[2]/100,u=0;if(0===i)return[l=255*s,l,l];for(e=2*s-(a=s<.5?s*(1+i):s+i-s*i),t=[0,0,0];u<3;)(o=n+1/3*-(u-1))<0?o++:o>1&&o--,l=6*o<1?e+6*(a-e)*o:2*o<1?a:3*o<2?e+(a-e)*(2/3-o)*6:e,t[u++]=255*l;return t}const colorRgba$1=colorRgba,getContrastYIQ=(r,e,a)=>(299*r+587*e+114*a)/1e3>=128?-1:1,calcColorContrast=(r,e,a,o=1)=>{const t=[Math.max(Math.min(Math.round(e[0]+o*Math.max(1,e[0]/100)),255),0),Math.max(Math.min(Math.round(e[1]+o*Math.max(1,e[1]/100)),255),0),Math.max(Math.min(Math.round(e[2]+o*Math.max(1,e[2]/100)),255),0)],l=prop_validators.s(prop_validators.rgba.hex(`rgba(${r.join(",")},1)`),prop_validators.rgba.hex(`rgba(${t.join(",")},1)`)),n=t[0]+t[1]+t[2];return 0===n||765===n||l>a?{background:r,foreground:t,contrast:l}:calcColorContrast(r,t,a,o)},cache=new Map,getColorContrast=(r,e,a,o=1)=>{if(cache.has(r))return cache.get(r);const t=calcColorContrast(r,e,a,o);return cache.set(r,t),t},createContrastColorPair=(r,e=7)=>{let a=[0,0,0,1],o=[255,255,255,1];"string"==typeof r?(a=colorRgba$1(r),o=a):"object"==typeof r&&null!==r&&"string"==typeof r.background&&"string"==typeof r.foreground&&(a=colorRgba$1(r.background),o="string"==typeof r.foreground?colorRgba$1(r.foreground):a);const t=getContrastYIQ(a[0],a[1],a[2]),l=getColorContrast([a[0],a[1],a[2]],[o[0],o[1],o[2]],e,t);return o=[...l.foreground,1],{background:prop_validators.rgba.hex(`rgba(${a.join(",")})`),foreground:prop_validators.rgba.hex(`rgba(${o.join(",")})`),contrast:l.contrast}},HEX_REGEX=/^#((\d|[a-f]){8}|(\d|[a-f]){6}|(\d|[a-f]){3,4})$/i;function isHexString(r){return HEX_REGEX.test(r)}function isColorObjectString(r){if(r.startsWith("{"))try{const e=JSON.parse(r);if(isValidColorPair(e))return{type:"ColorPair",value:e}}catch(r){return{type:null,value:null}}return{type:null,value:null}}function typeOfColor(r){if(r)if("string"==typeof r){if(isHexString(r))return{type:"string",valid:!0,value:r};{const e=isColorObjectString(r);if(e.value)return{type:e.type,valid:!0,value:e.value}}}else{const e=r;if(isValidColorPair(e))return{type:"ColorPair",valid:!0,value:e}}return{type:null,valid:!1,value:""}}function isValidColorPair(r){return!("object"!=typeof r||!r||"string"!=typeof r.backgroundColor||!("string"==typeof r.foregroundColor||r.foregroundColor&&"string"==typeof r.foregroundColor.primary&&"string"==typeof r.foregroundColor.secondary&&"string"==typeof r.foregroundColor.neutral))}function validatorFunction(r){const e=typeOfColor(r);switch(e.type){case null:return!1;case"string":case"ColorPair":return e.valid}}const validateColor=(r,e,a)=>{prop_validators.watchValidator(r,"_color",validatorFunction,new Set(["rgb in hex","ColorPair"]),e,a)},handleColorChange=r=>{var e;let a;const o=typeOfColor(r);switch(o.type){case"string":a=createContrastColorPair(o.value);break;case"ColorPair":{const r=o.value;let t="";"string"==typeof r.foregroundColor?t=r.foregroundColor:(null===(e=r.foregroundColor)||void 0===e?void 0:e.primary)&&(t=r.foregroundColor.primary),t&&"string"==typeof t||(t="#fff"),a=createContrastColorPair({background:r.backgroundColor,foreground:t});break}case null:dev_utils.Log.warn(`_color was empty or invalid (${JSON.stringify(r)})`,{forceLog:!0}),a=createContrastColorPair({background:"#000",foreground:"#000"})}return a.contrast<7&&prop_validators.a11yHint(`[KolBadge] The contrast of ${a.contrast} (≥7, AAA) is to low, between the color pair ${a.background} and ${a.foreground}.`),{backgroundColor:a.background,foregroundColor:a.foreground}};exports.colorRgba=colorRgba$1,exports.handleColorChange=handleColorChange,exports.validateColor=validateColor;
4
+ "use strict";const dev_utils=require("./dev.utils-58fde089.js"),prop_validators=require("./prop.validators-68958b0a.js");var colorName={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},names=colorName,colorParse=parse$1,baseHues={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function parse$1(r){var e,a,o=[],t=1;if("string"==typeof r)if(r=r.toLowerCase(),names[r])o=names[r].slice(),a="rgb";else if("transparent"===r)t=0,a="rgb",o=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(r)){var l=r.slice(1);t=1,(s=l.length)<=4?(o=[parseInt(l[0]+l[0],16),parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16)],4===s&&(t=parseInt(l[3]+l[3],16)/255)):(o=[parseInt(l[0]+l[1],16),parseInt(l[2]+l[3],16),parseInt(l[4]+l[5],16)],8===s&&(t=parseInt(l[6]+l[7],16)/255)),o[0]||(o[0]=0),o[1]||(o[1]=0),o[2]||(o[2]=0),a="rgb"}else if(e=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(r)){var n=e[1],i="rgb"===n;a=l=n.replace(/a$/,"");var s="cmyk"===l?4:"gray"===l?1:3;o=e[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(r,e){if(/%$/.test(r))return e===s?parseFloat(r)/100:"rgb"===l?255*parseFloat(r)/100:parseFloat(r);if("h"===l[e]){if(/deg$/.test(r))return parseFloat(r);if(void 0!==baseHues[r])return baseHues[r]}return parseFloat(r)})),n===l&&o.push(1),t=i||void 0===o[s]?1:o[s],o=o.slice(0,s)}else r.length>10&&/[0-9](?:\s|\/)/.test(r)&&(o=r.match(/([0-9]+)/g).map((function(r){return parseFloat(r)})),a=r.match(/([a-z])/gi).join("").toLowerCase());else isNaN(r)?Array.isArray(r)||r.length?(o=[r[0],r[1],r[2]],a="rgb",t=4===r.length?r[3]:1):r instanceof Object&&(null!=r.r||null!=r.red||null!=r.R?(a="rgb",o=[r.r||r.red||r.R||0,r.g||r.green||r.G||0,r.b||r.blue||r.B||0]):(a="hsl",o=[r.h||r.hue||r.H||0,r.s||r.saturation||r.S||0,r.l||r.lightness||r.L||r.b||r.brightness]),t=r.a||r.alpha||r.opacity||1,null!=r.opacity&&(t/=100)):(a="rgb",o=[r>>>16,(65280&r)>>>8,255&r]);return{space:a,values:o,alpha:t}}var parse=colorParse,colorRgba=function(r){var e;Array.isArray(r)&&r.raw&&(r=String.raw.apply(null,arguments));var a=parse(r);if(!a.space)return[];var o=[0,0,0],t="h"===a.space[0]?[360,100,100]:[255,255,255];return(e=Array(3))[0]=Math.min(Math.max(a.values[0],o[0]),t[0]),e[1]=Math.min(Math.max(a.values[1],o[1]),t[1]),e[2]=Math.min(Math.max(a.values[2],o[2]),t[2]),"h"===a.space[0]&&(e=hsl2rgb(e)),e.push(Math.min(Math.max(a.alpha,0),1)),e};function hsl2rgb(r){var e,a,o,t,l,n=r[0]/360,i=r[1]/100,s=r[2]/100,u=0;if(0===i)return[l=255*s,l,l];for(e=2*s-(a=s<.5?s*(1+i):s+i-s*i),t=[0,0,0];u<3;)(o=n+1/3*-(u-1))<0?o++:o>1&&o--,l=6*o<1?e+6*(a-e)*o:2*o<1?a:3*o<2?e+(a-e)*(2/3-o)*6:e,t[u++]=255*l;return t}const colorRgba$1=colorRgba,getContrastYIQ=(r,e,a)=>(299*r+587*e+114*a)/1e3>=128?-1:1,calcColorContrast=(r,e,a,o=1)=>{const t=[Math.max(Math.min(Math.round(e[0]+o*Math.max(1,e[0]/100)),255),0),Math.max(Math.min(Math.round(e[1]+o*Math.max(1,e[1]/100)),255),0),Math.max(Math.min(Math.round(e[2]+o*Math.max(1,e[2]/100)),255),0)],l=prop_validators.s(prop_validators.rgba.hex(`rgba(${r.join(",")},1)`),prop_validators.rgba.hex(`rgba(${t.join(",")},1)`)),n=t[0]+t[1]+t[2];return 0===n||765===n||l>a?{background:r,foreground:t,contrast:l}:calcColorContrast(r,t,a,o)},cache=new Map,getColorContrast=(r,e,a,o=1)=>{if(cache.has(r))return cache.get(r);const t=calcColorContrast(r,e,a,o);return cache.set(r,t),t},createContrastColorPair=(r,e=7)=>{let a=[0,0,0,1],o=[255,255,255,1];"string"==typeof r?(a=colorRgba$1(r),o=a):"object"==typeof r&&null!==r&&"string"==typeof r.background&&"string"==typeof r.foreground&&(a=colorRgba$1(r.background),o="string"==typeof r.foreground?colorRgba$1(r.foreground):a);const t=getContrastYIQ(a[0],a[1],a[2]),l=getColorContrast([a[0],a[1],a[2]],[o[0],o[1],o[2]],e,t);return o=[...l.foreground,1],{background:prop_validators.rgba.hex(`rgba(${a.join(",")})`),foreground:prop_validators.rgba.hex(`rgba(${o.join(",")})`),contrast:l.contrast}},HEX_REGEX=/^#((\d|[a-f]){8}|(\d|[a-f]){6}|(\d|[a-f]){3,4})$/i;function isHexString(r){return HEX_REGEX.test(r)}function isColorObjectString(r){if(r.startsWith("{"))try{const e=JSON.parse(r);if(isValidColorPair(e))return{type:"ColorPair",value:e}}catch(r){return{type:null,value:null}}return{type:null,value:null}}function typeOfColor(r){if(r)if("string"==typeof r){if(isHexString(r))return{type:"string",valid:!0,value:r};{const e=isColorObjectString(r);if(e.value)return{type:e.type,valid:!0,value:e.value}}}else{const e=r;if(isValidColorPair(e))return{type:"ColorPair",valid:!0,value:e}}return{type:null,valid:!1,value:""}}function isValidColorPair(r){return!("object"!=typeof r||!r||"string"!=typeof r.backgroundColor||!("string"==typeof r.foregroundColor||r.foregroundColor&&"string"==typeof r.foregroundColor.primary&&"string"==typeof r.foregroundColor.secondary&&"string"==typeof r.foregroundColor.neutral))}function validatorFunction(r){const e=typeOfColor(r);switch(e.type){case null:return!1;case"string":case"ColorPair":return e.valid}}const validateColor=(r,e,a)=>{prop_validators.watchValidator(r,"_color",validatorFunction,new Set(["rgb in hex","ColorPair"]),e,a)},handleColorChange=r=>{var e;let a;const o=typeOfColor(r);switch(o.type){case"string":a=createContrastColorPair(o.value);break;case"ColorPair":{const r=o.value;let t="";"string"==typeof r.foregroundColor?t=r.foregroundColor:(null===(e=r.foregroundColor)||void 0===e?void 0:e.primary)&&(t=r.foregroundColor.primary),t&&"string"==typeof t||(t="#fff"),a=createContrastColorPair({background:r.backgroundColor,foreground:t});break}case null:dev_utils.Log.warn(`_color was empty or invalid (${JSON.stringify(r)})`,{forceLog:!0}),a=createContrastColorPair({background:"#000",foreground:"#000"})}return a.contrast<7&&prop_validators.a11yHint(`[KolBadge] The contrast of ${a.contrast} (≥7, AAA) is to low, between the color pair ${a.background} and ${a.foreground}.`),{backgroundColor:a.background,foregroundColor:a.foreground}};exports.colorRgba=colorRgba$1,exports.handleColorChange=handleColorChange,exports.validateColor=validateColor;