@public-ui/components 2.0.0-rc.5 → 2.0.0-rc.6

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 (567) hide show
  1. package/custom-elements.json +9 -9
  2. package/dist/cjs/InternalUnderlinedAccessKey-2c4875d5.js +4 -0
  3. package/dist/cjs/InternalUnderlinedAccessKey-2c4875d5.js.map +1 -0
  4. package/dist/cjs/{a11y.tipps-77b0a8d4.js → a11y.tipps-91e6a303.js} +1 -1
  5. package/dist/cjs/{a11y.tipps-77b0a8d4.js.map → a11y.tipps-91e6a303.js.map} +1 -1
  6. package/dist/cjs/access-key-5fe7eedb.js +4 -0
  7. package/dist/cjs/{access-key-2ceab9f7.js.map → access-key-5fe7eedb.js.map} +1 -1
  8. package/dist/cjs/alignment-86e87aca.js +4 -0
  9. package/dist/cjs/alignment-86e87aca.js.map +1 -0
  10. package/dist/cjs/alternative-button-link-role-d99da0f8.js +4 -0
  11. package/dist/cjs/{alternative-button-link-role-c58c7827.js.map → alternative-button-link-role-d99da0f8.js.map} +1 -1
  12. package/dist/cjs/{app-globals-ca64d372.js → app-globals-ac58ae8f.js} +1 -1
  13. package/dist/cjs/{app-globals-ca64d372.js.map → app-globals-ac58ae8f.js.map} +1 -1
  14. package/dist/cjs/{associated.controller-85751e83.js → associated.controller-2d107864.js} +1 -1
  15. package/dist/cjs/{associated.controller-85751e83.js.map → associated.controller-2d107864.js.map} +1 -1
  16. package/dist/cjs/{color-e02665e5.js → color-03e36edf.js} +1 -1
  17. package/dist/cjs/{color-e02665e5.js.map → color-03e36edf.js.map} +1 -1
  18. package/dist/cjs/controller-120e1333.js +4 -0
  19. package/dist/cjs/controller-120e1333.js.map +1 -0
  20. package/dist/cjs/{controller-6d68afbb.js → controller-19b94b08.js} +1 -1
  21. package/dist/cjs/{controller-6d68afbb.js.map → controller-19b94b08.js.map} +1 -1
  22. package/dist/cjs/{controller-9741c9b8.js → controller-56885ef0.js} +1 -1
  23. package/dist/cjs/{controller-9741c9b8.js.map → controller-56885ef0.js.map} +1 -1
  24. package/dist/cjs/controller-c15b473b.js +4 -0
  25. package/dist/cjs/controller-c15b473b.js.map +1 -0
  26. package/dist/cjs/{controller-9200ad99.js → controller-ee271465.js} +1 -1
  27. package/dist/cjs/{controller-9200ad99.js.map → controller-ee271465.js.map} +1 -1
  28. package/dist/cjs/{controller-icon-0d2e0d52.js → controller-icon-f7b60716.js} +1 -1
  29. package/dist/cjs/{controller-icon-0d2e0d52.js.map → controller-icon-f7b60716.js.map} +1 -1
  30. package/dist/cjs/custom-class-ed101b87.js +4 -0
  31. package/dist/cjs/{custom-class-f9abd989.js.map → custom-class-ed101b87.js.map} +1 -1
  32. package/dist/cjs/{dev.utils-a85de35e.js → dev.utils-5f0c3b7d.js} +1 -1
  33. package/dist/cjs/{dev.utils-a85de35e.js.map → dev.utils-5f0c3b7d.js.map} +1 -1
  34. package/dist/cjs/{devtools-64a64a83.js → devtools-26e86ead.js} +1 -1
  35. package/dist/cjs/{devtools-64a64a83.js.map → devtools-26e86ead.js.map} +1 -1
  36. package/dist/cjs/has-closer-0140b049.js +4 -0
  37. package/dist/cjs/{has-closer-2fabbe8f.js.map → has-closer-0140b049.js.map} +1 -1
  38. package/dist/cjs/hide-label-72171d2b.js +4 -0
  39. package/dist/cjs/{hide-label-e41f7adc.js.map → hide-label-72171d2b.js.map} +1 -1
  40. package/dist/cjs/{i18n-150d7426.js → i18n-42767646.js} +1 -1
  41. package/dist/cjs/{i18n-150d7426.js.map → i18n-42767646.js.map} +1 -1
  42. package/dist/cjs/{icons-2820d463.js → icons-6be116f2.js} +1 -1
  43. package/dist/cjs/{icons-2820d463.js.map → icons-6be116f2.js.map} +1 -1
  44. package/dist/cjs/image-source-f283f0ea.js +4 -0
  45. package/dist/cjs/{image-source-b26f9674.js.map → image-source-f283f0ea.js.map} +1 -1
  46. package/dist/cjs/{index-272b32ae.js → index-d12ab3a8.js} +1 -1
  47. package/dist/cjs/{index-272b32ae.js.map → index-d12ab3a8.js.map} +1 -1
  48. package/dist/cjs/index.cjs.js +1 -1
  49. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  50. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  51. package/dist/cjs/kol-alert-wc_2.cjs.entry.js +1 -1
  52. package/dist/cjs/kol-alert-wc_2.cjs.entry.js.map +1 -1
  53. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  54. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  55. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  56. package/dist/cjs/kol-breadcrumb.cjs.entry.js.map +1 -1
  57. package/dist/cjs/kol-button-wc_2.cjs.entry.js +1 -1
  58. package/dist/cjs/kol-button-wc_2.cjs.entry.js.map +1 -1
  59. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  60. package/dist/cjs/kol-button.cjs.entry.js.map +1 -1
  61. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  62. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  63. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  64. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  65. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  66. package/dist/cjs/kol-image.cjs.entry.js.map +1 -1
  67. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  68. package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
  69. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
  71. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
  73. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  74. package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
  75. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
  77. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  78. package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
  79. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  80. package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
  81. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  82. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
  84. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
  86. package/dist/cjs/kol-input.cjs.entry.js +1 -1
  87. package/dist/cjs/kol-input.cjs.entry.js.map +1 -1
  88. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  89. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  90. package/dist/cjs/kol-link-button.cjs.entry.js.map +1 -1
  91. package/dist/cjs/kol-link-group.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  93. package/dist/cjs/kol-link-wc.cjs.entry.js.map +1 -1
  94. package/dist/cjs/kol-logo.cjs.entry.js +1 -1
  95. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  96. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  97. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  98. package/dist/cjs/kol-popover.cjs.entry.js +1 -1
  99. package/dist/cjs/kol-popover.cjs.entry.js.map +1 -1
  100. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  102. package/dist/cjs/kol-quote.cjs.entry.js.map +1 -1
  103. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  104. package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
  105. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  106. package/dist/cjs/kol-span-wc.cjs.entry.js +1 -1
  107. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  108. package/dist/cjs/kol-spin.cjs.entry.js.map +1 -1
  109. package/dist/cjs/kol-symbol.cjs.entry.js +1 -1
  110. package/dist/cjs/kol-table.cjs.entry.js +1 -1
  111. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  112. package/dist/cjs/kol-tabs.cjs.entry.js.map +1 -1
  113. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  114. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  115. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  116. package/dist/cjs/kol-toast-container.cjs.entry.js.map +1 -1
  117. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  118. package/dist/cjs/kolibri.cjs.js +1 -1
  119. package/dist/cjs/{label-315ec543.js → label-f1bb026a.js} +1 -1
  120. package/dist/cjs/{label-315ec543.js.map → label-f1bb026a.js.map} +1 -1
  121. package/dist/cjs/loader.cjs.js +1 -1
  122. package/dist/cjs/open-b82318b2.js +4 -0
  123. package/dist/cjs/{open-7e8c43ab.js.map → open-b82318b2.js.map} +1 -1
  124. package/dist/cjs/{prop.validators-c86b27ff.js → prop.validators-d0c36c3f.js} +1 -1
  125. package/dist/cjs/{prop.validators-c86b27ff.js.map → prop.validators-d0c36c3f.js.map} +1 -1
  126. package/dist/cjs/rows-3afa56f3.js +4 -0
  127. package/dist/cjs/{rows-301f03c8.js.map → rows-3afa56f3.js.map} +1 -1
  128. package/dist/cjs/show-9104c9b1.js +4 -0
  129. package/dist/cjs/{show-fbb0fc54.js.map → show-9104c9b1.js.map} +1 -1
  130. package/dist/cjs/{suggestions-d77f8620.js → suggestions-f2df9189.js} +1 -1
  131. package/dist/cjs/{suggestions-d77f8620.js.map → suggestions-f2df9189.js.map} +1 -1
  132. package/dist/cjs/{tab-index-e35454b7.js → tab-index-bcdca21e.js} +1 -1
  133. package/dist/cjs/{tab-index-e35454b7.js.map → tab-index-bcdca21e.js.map} +1 -1
  134. package/dist/cjs/{tooltip-align-b8dcb0c3.js → tooltip-align-0e5ab85b.js} +1 -1
  135. package/dist/cjs/{tooltip-align-b8dcb0c3.js.map → tooltip-align-0e5ab85b.js.map} +1 -1
  136. package/dist/cjs/{validation-e42178df.js → validation-5e914a29.js} +1 -1
  137. package/dist/cjs/{validation-e42178df.js.map → validation-5e914a29.js.map} +1 -1
  138. package/dist/cjs/validation-c699f0e1.js +4 -0
  139. package/dist/cjs/validation-c699f0e1.js.map +1 -0
  140. package/dist/components/component13.js.map +1 -1
  141. package/dist/components/component15.js +1 -1
  142. package/dist/components/component15.js.map +1 -1
  143. package/dist/components/component2.js +1 -1
  144. package/dist/components/component2.js.map +1 -1
  145. package/dist/components/component3.js +1 -1
  146. package/dist/components/component4.js +1 -1
  147. package/dist/components/component4.js.map +1 -1
  148. package/dist/components/component5.js +1 -1
  149. package/dist/components/component5.js.map +1 -1
  150. package/dist/components/component6.js +1 -1
  151. package/dist/components/component6.js.map +1 -1
  152. package/dist/components/component9.js +1 -1
  153. package/dist/components/component9.js.map +1 -1
  154. package/dist/components/controller2.js +1 -1
  155. package/dist/components/controller2.js.map +1 -1
  156. package/dist/components/controller3.js +1 -1
  157. package/dist/components/controller3.js.map +1 -1
  158. package/dist/components/floating-ui.dom.esm.js +4 -0
  159. package/dist/components/floating-ui.dom.esm.js.map +1 -0
  160. package/dist/components/kol-breadcrumb.js.map +1 -1
  161. package/dist/components/kol-image.js +1 -1
  162. package/dist/components/kol-image.js.map +1 -1
  163. package/dist/components/kol-input-checkbox.js +1 -1
  164. package/dist/components/kol-input-checkbox.js.map +1 -1
  165. package/dist/components/kol-input-color.js +1 -1
  166. package/dist/components/kol-input-color.js.map +1 -1
  167. package/dist/components/kol-input-date.js +1 -1
  168. package/dist/components/kol-input-date.js.map +1 -1
  169. package/dist/components/kol-input-email.js +1 -1
  170. package/dist/components/kol-input-email.js.map +1 -1
  171. package/dist/components/kol-input-file.js +1 -1
  172. package/dist/components/kol-input-file.js.map +1 -1
  173. package/dist/components/kol-input-number.js +1 -1
  174. package/dist/components/kol-input-number.js.map +1 -1
  175. package/dist/components/kol-input-password.js +1 -1
  176. package/dist/components/kol-input-password.js.map +1 -1
  177. package/dist/components/kol-input-range.js +1 -1
  178. package/dist/components/kol-input-range.js.map +1 -1
  179. package/dist/components/kol-input-text.js +1 -1
  180. package/dist/components/kol-input-text.js.map +1 -1
  181. package/dist/components/kol-link-button.js +1 -1
  182. package/dist/components/kol-link-button.js.map +1 -1
  183. package/dist/components/kol-popover.js +1 -1
  184. package/dist/components/kol-quote.js +1 -1
  185. package/dist/components/kol-quote.js.map +1 -1
  186. package/dist/components/kol-spin.js +1 -1
  187. package/dist/components/kol-spin.js.map +1 -1
  188. package/dist/components/kol-tabs.js +1 -1
  189. package/dist/components/kol-textarea.js +1 -1
  190. package/dist/components/kol-textarea.js.map +1 -1
  191. package/dist/components/kol-toast-container.js.map +1 -1
  192. package/dist/components/prop.validators.js +1 -1
  193. package/dist/components/prop.validators.js.map +1 -1
  194. package/dist/components/shadow3.js +1 -1
  195. package/dist/components/shadow3.js.map +1 -1
  196. package/dist/components/tooltip-align.js +1 -1
  197. package/dist/esm/InternalUnderlinedAccessKey-f593c389.js +4 -0
  198. package/dist/esm/InternalUnderlinedAccessKey-f593c389.js.map +1 -0
  199. package/dist/esm/{a11y.tipps-ba8ae150.js → a11y.tipps-06cd7c77.js} +1 -1
  200. package/dist/esm/{a11y.tipps-ba8ae150.js.map → a11y.tipps-06cd7c77.js.map} +1 -1
  201. package/dist/esm/access-key-d58c03d6.js +4 -0
  202. package/dist/esm/{access-key-292dd663.js.map → access-key-d58c03d6.js.map} +1 -1
  203. package/dist/esm/alignment-de1c6559.js +4 -0
  204. package/dist/esm/alignment-de1c6559.js.map +1 -0
  205. package/dist/esm/alternative-button-link-role-8db83e93.js +4 -0
  206. package/dist/esm/{alternative-button-link-role-b421e482.js.map → alternative-button-link-role-8db83e93.js.map} +1 -1
  207. package/dist/esm/{app-globals-68db9e00.js → app-globals-77b2422c.js} +1 -1
  208. package/dist/esm/{app-globals-68db9e00.js.map → app-globals-77b2422c.js.map} +1 -1
  209. package/dist/esm/{associated.controller-687b47db.js → associated.controller-1124284d.js} +1 -1
  210. package/dist/esm/{associated.controller-687b47db.js.map → associated.controller-1124284d.js.map} +1 -1
  211. package/dist/esm/{color-8ca70766.js → color-84b42735.js} +1 -1
  212. package/dist/esm/{color-8ca70766.js.map → color-84b42735.js.map} +1 -1
  213. package/dist/esm/{controller-f653144a.js → controller-5a0cb886.js} +1 -1
  214. package/dist/esm/{controller-f653144a.js.map → controller-5a0cb886.js.map} +1 -1
  215. package/dist/esm/{controller-873fca4f.js → controller-6a175634.js} +1 -1
  216. package/dist/esm/{controller-873fca4f.js.map → controller-6a175634.js.map} +1 -1
  217. package/dist/esm/{controller-a0c1c4ea.js → controller-7e5c82c1.js} +1 -1
  218. package/dist/esm/{controller-a0c1c4ea.js.map → controller-7e5c82c1.js.map} +1 -1
  219. package/dist/esm/controller-98501396.js +4 -0
  220. package/dist/esm/controller-98501396.js.map +1 -0
  221. package/dist/esm/controller-f38fc4fc.js +4 -0
  222. package/dist/esm/controller-f38fc4fc.js.map +1 -0
  223. package/dist/esm/{controller-icon-92fc87b9.js → controller-icon-ffe0af69.js} +1 -1
  224. package/dist/esm/{controller-icon-92fc87b9.js.map → controller-icon-ffe0af69.js.map} +1 -1
  225. package/dist/esm/custom-class-6ba43df0.js +4 -0
  226. package/dist/esm/{custom-class-ea9a981b.js.map → custom-class-6ba43df0.js.map} +1 -1
  227. package/dist/esm/{dev.utils-a31cf0e4.js → dev.utils-075f4e7b.js} +1 -1
  228. package/dist/esm/{dev.utils-a31cf0e4.js.map → dev.utils-075f4e7b.js.map} +1 -1
  229. package/dist/esm/{devtools-f3838564.js → devtools-d3472315.js} +1 -1
  230. package/dist/esm/{devtools-f3838564.js.map → devtools-d3472315.js.map} +1 -1
  231. package/dist/esm/{has-closer-f31506e6.js → has-closer-d28fec0f.js} +1 -1
  232. package/dist/esm/{has-closer-f31506e6.js.map → has-closer-d28fec0f.js.map} +1 -1
  233. package/dist/esm/{hide-label-eb1f7b60.js → hide-label-3381f0cc.js} +1 -1
  234. package/dist/esm/{hide-label-eb1f7b60.js.map → hide-label-3381f0cc.js.map} +1 -1
  235. package/dist/esm/{i18n-9f9f551f.js → i18n-8ec5b30e.js} +1 -1
  236. package/dist/esm/{i18n-9f9f551f.js.map → i18n-8ec5b30e.js.map} +1 -1
  237. package/dist/esm/{icons-4c438164.js → icons-062ba29d.js} +1 -1
  238. package/dist/esm/{icons-4c438164.js.map → icons-062ba29d.js.map} +1 -1
  239. package/dist/esm/{image-source-d36f06a0.js → image-source-ceb96521.js} +1 -1
  240. package/dist/esm/{image-source-d36f06a0.js.map → image-source-ceb96521.js.map} +1 -1
  241. package/dist/esm/{index-f8836493.js → index-b79e4012.js} +1 -1
  242. package/dist/esm/{index-f8836493.js.map → index-b79e4012.js.map} +1 -1
  243. package/dist/esm/index.js +1 -1
  244. package/dist/esm/kol-abbr.entry.js +1 -1
  245. package/dist/esm/kol-accordion.entry.js +1 -1
  246. package/dist/esm/kol-alert-wc_2.entry.js +1 -1
  247. package/dist/esm/kol-alert-wc_2.entry.js.map +1 -1
  248. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  249. package/dist/esm/kol-badge.entry.js +1 -1
  250. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  251. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  252. package/dist/esm/kol-button-wc_2.entry.js +1 -1
  253. package/dist/esm/kol-button-wc_2.entry.js.map +1 -1
  254. package/dist/esm/kol-button.entry.js +1 -1
  255. package/dist/esm/kol-button.entry.js.map +1 -1
  256. package/dist/esm/kol-card.entry.js +1 -1
  257. package/dist/esm/kol-details.entry.js +1 -1
  258. package/dist/esm/kol-form.entry.js +1 -1
  259. package/dist/esm/kol-icon.entry.js +1 -1
  260. package/dist/esm/kol-image.entry.js +1 -1
  261. package/dist/esm/kol-image.entry.js.map +1 -1
  262. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  263. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  264. package/dist/esm/kol-input-color.entry.js +1 -1
  265. package/dist/esm/kol-input-color.entry.js.map +1 -1
  266. package/dist/esm/kol-input-date.entry.js +1 -1
  267. package/dist/esm/kol-input-date.entry.js.map +1 -1
  268. package/dist/esm/kol-input-email.entry.js +1 -1
  269. package/dist/esm/kol-input-email.entry.js.map +1 -1
  270. package/dist/esm/kol-input-file.entry.js +1 -1
  271. package/dist/esm/kol-input-file.entry.js.map +1 -1
  272. package/dist/esm/kol-input-number.entry.js +1 -1
  273. package/dist/esm/kol-input-number.entry.js.map +1 -1
  274. package/dist/esm/kol-input-password.entry.js +1 -1
  275. package/dist/esm/kol-input-password.entry.js.map +1 -1
  276. package/dist/esm/kol-input-radio.entry.js +1 -1
  277. package/dist/esm/kol-input-range.entry.js +1 -1
  278. package/dist/esm/kol-input-range.entry.js.map +1 -1
  279. package/dist/esm/kol-input-text.entry.js +1 -1
  280. package/dist/esm/kol-input-text.entry.js.map +1 -1
  281. package/dist/esm/kol-input.entry.js +1 -1
  282. package/dist/esm/kol-input.entry.js.map +1 -1
  283. package/dist/esm/kol-kolibri.entry.js +1 -1
  284. package/dist/esm/kol-link-button.entry.js +1 -1
  285. package/dist/esm/kol-link-button.entry.js.map +1 -1
  286. package/dist/esm/kol-link-group.entry.js +1 -1
  287. package/dist/esm/kol-link-wc.entry.js +1 -1
  288. package/dist/esm/kol-link-wc.entry.js.map +1 -1
  289. package/dist/esm/kol-logo.entry.js +1 -1
  290. package/dist/esm/kol-modal.entry.js +1 -1
  291. package/dist/esm/kol-nav.entry.js +1 -1
  292. package/dist/esm/kol-pagination.entry.js +1 -1
  293. package/dist/esm/kol-popover.entry.js +1 -1
  294. package/dist/esm/kol-popover.entry.js.map +1 -1
  295. package/dist/esm/kol-progress.entry.js +1 -1
  296. package/dist/esm/kol-quote.entry.js +1 -1
  297. package/dist/esm/kol-quote.entry.js.map +1 -1
  298. package/dist/esm/kol-select.entry.js +1 -1
  299. package/dist/esm/kol-select.entry.js.map +1 -1
  300. package/dist/esm/kol-skip-nav.entry.js +1 -1
  301. package/dist/esm/kol-span-wc.entry.js +1 -1
  302. package/dist/esm/kol-spin.entry.js +1 -1
  303. package/dist/esm/kol-spin.entry.js.map +1 -1
  304. package/dist/esm/kol-symbol.entry.js +1 -1
  305. package/dist/esm/kol-table.entry.js +1 -1
  306. package/dist/esm/kol-tabs.entry.js +1 -1
  307. package/dist/esm/kol-tabs.entry.js.map +1 -1
  308. package/dist/esm/kol-textarea.entry.js +1 -1
  309. package/dist/esm/kol-textarea.entry.js.map +1 -1
  310. package/dist/esm/kol-toast-container.entry.js +1 -1
  311. package/dist/esm/kol-toast-container.entry.js.map +1 -1
  312. package/dist/esm/kol-version.entry.js +1 -1
  313. package/dist/esm/kolibri.js +1 -1
  314. package/dist/esm/{label-3e545772.js → label-5c173d60.js} +1 -1
  315. package/dist/esm/{label-3e545772.js.map → label-5c173d60.js.map} +1 -1
  316. package/dist/esm/loader.js +1 -1
  317. package/dist/esm/{open-1e2010f2.js → open-47384c18.js} +1 -1
  318. package/dist/esm/{open-1e2010f2.js.map → open-47384c18.js.map} +1 -1
  319. package/dist/esm/{prop.validators-6cc65427.js → prop.validators-3d53ddab.js} +1 -1
  320. package/dist/esm/{prop.validators-6cc65427.js.map → prop.validators-3d53ddab.js.map} +1 -1
  321. package/dist/esm/{rows-7108779c.js → rows-1eebe49e.js} +1 -1
  322. package/dist/esm/{rows-7108779c.js.map → rows-1eebe49e.js.map} +1 -1
  323. package/dist/esm/{show-469f0d1b.js → show-3e682c46.js} +1 -1
  324. package/dist/esm/{show-469f0d1b.js.map → show-3e682c46.js.map} +1 -1
  325. package/dist/esm/{suggestions-25890d93.js → suggestions-04f64716.js} +1 -1
  326. package/dist/esm/{suggestions-25890d93.js.map → suggestions-04f64716.js.map} +1 -1
  327. package/dist/esm/{tab-index-8864ef5e.js → tab-index-d2d0d9db.js} +1 -1
  328. package/dist/esm/{tab-index-8864ef5e.js.map → tab-index-d2d0d9db.js.map} +1 -1
  329. package/dist/esm/{tooltip-align-82ca015a.js → tooltip-align-c09e55cd.js} +1 -1
  330. package/dist/esm/{tooltip-align-82ca015a.js.map → tooltip-align-c09e55cd.js.map} +1 -1
  331. package/dist/esm/validation-68e14b6f.js +4 -0
  332. package/dist/esm/{validation-a3a1a09e.js.map → validation-68e14b6f.js.map} +1 -1
  333. package/dist/esm/validation-c57e7be5.js +4 -0
  334. package/dist/esm/validation-c57e7be5.js.map +1 -0
  335. package/dist/kolibri/InternalUnderlinedAccessKey-f593c389.js +4 -0
  336. package/dist/kolibri/InternalUnderlinedAccessKey-f593c389.js.map +1 -0
  337. package/dist/kolibri/{a11y.tipps-ba8ae150.js → a11y.tipps-06cd7c77.js} +1 -1
  338. package/dist/kolibri/access-key-d58c03d6.js +4 -0
  339. package/dist/kolibri/alignment-de1c6559.js +4 -0
  340. package/dist/kolibri/alignment-de1c6559.js.map +1 -0
  341. package/dist/kolibri/alternative-button-link-role-8db83e93.js +4 -0
  342. package/dist/kolibri/app-globals-77b2422c.js +4 -0
  343. package/dist/kolibri/{associated.controller-687b47db.js → associated.controller-1124284d.js} +1 -1
  344. package/dist/kolibri/{color-8ca70766.js → color-84b42735.js} +1 -1
  345. package/dist/kolibri/{controller-f653144a.js → controller-5a0cb886.js} +1 -1
  346. package/dist/kolibri/controller-6a175634.js +4 -0
  347. package/dist/kolibri/{controller-a0c1c4ea.js → controller-7e5c82c1.js} +1 -1
  348. package/dist/kolibri/controller-98501396.js +4 -0
  349. package/dist/kolibri/controller-98501396.js.map +1 -0
  350. package/dist/kolibri/controller-f38fc4fc.js +4 -0
  351. package/dist/kolibri/controller-f38fc4fc.js.map +1 -0
  352. package/dist/kolibri/controller-icon-ffe0af69.js +4 -0
  353. package/dist/kolibri/custom-class-6ba43df0.js +4 -0
  354. package/dist/kolibri/{dev.utils-a31cf0e4.js → dev.utils-075f4e7b.js} +1 -1
  355. package/dist/kolibri/{dev.utils-a31cf0e4.js.map → dev.utils-075f4e7b.js.map} +1 -1
  356. package/dist/kolibri/{devtools-f3838564.js → devtools-d3472315.js} +1 -1
  357. package/dist/kolibri/has-closer-d28fec0f.js +4 -0
  358. package/dist/kolibri/{has-closer-f31506e6.js.map → has-closer-d28fec0f.js.map} +1 -1
  359. package/dist/kolibri/hide-label-3381f0cc.js +4 -0
  360. package/dist/kolibri/{i18n-9f9f551f.js → i18n-8ec5b30e.js} +1 -1
  361. package/dist/kolibri/icons-062ba29d.js +4 -0
  362. package/dist/kolibri/image-source-ceb96521.js +4 -0
  363. package/dist/kolibri/{index-f8836493.js → index-b79e4012.js} +1 -1
  364. package/dist/kolibri/index.esm.js +1 -1
  365. package/dist/kolibri/kol-abbr.entry.js +1 -1
  366. package/dist/kolibri/kol-accordion.entry.js +1 -1
  367. package/dist/kolibri/kol-alert-wc_2.entry.js +1 -1
  368. package/dist/kolibri/kol-alert-wc_2.entry.js.map +1 -1
  369. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  370. package/dist/kolibri/kol-badge.entry.js +1 -1
  371. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  372. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  373. package/dist/kolibri/kol-button-wc_2.entry.js +1 -1
  374. package/dist/kolibri/kol-button-wc_2.entry.js.map +1 -1
  375. package/dist/kolibri/kol-button.entry.js +1 -1
  376. package/dist/kolibri/kol-button.entry.js.map +1 -1
  377. package/dist/kolibri/kol-card.entry.js +1 -1
  378. package/dist/kolibri/kol-details.entry.js +1 -1
  379. package/dist/kolibri/kol-form.entry.js +1 -1
  380. package/dist/kolibri/kol-icon.entry.js +1 -1
  381. package/dist/kolibri/kol-image.entry.js +1 -1
  382. package/dist/kolibri/kol-image.entry.js.map +1 -1
  383. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  384. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  385. package/dist/kolibri/kol-input-color.entry.js +1 -1
  386. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  387. package/dist/kolibri/kol-input-date.entry.js +1 -1
  388. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  389. package/dist/kolibri/kol-input-email.entry.js +1 -1
  390. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  391. package/dist/kolibri/kol-input-file.entry.js +1 -1
  392. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  393. package/dist/kolibri/kol-input-number.entry.js +1 -1
  394. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  395. package/dist/kolibri/kol-input-password.entry.js +1 -1
  396. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  397. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  398. package/dist/kolibri/kol-input-range.entry.js +1 -1
  399. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  400. package/dist/kolibri/kol-input-text.entry.js +1 -1
  401. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  402. package/dist/kolibri/kol-input.entry.js +1 -1
  403. package/dist/kolibri/kol-input.entry.js.map +1 -1
  404. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  405. package/dist/kolibri/kol-link-button.entry.js +1 -1
  406. package/dist/kolibri/kol-link-button.entry.js.map +1 -1
  407. package/dist/kolibri/kol-link-group.entry.js +1 -1
  408. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  409. package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
  410. package/dist/kolibri/kol-logo.entry.js +1 -1
  411. package/dist/kolibri/kol-modal.entry.js +1 -1
  412. package/dist/kolibri/kol-nav.entry.js +1 -1
  413. package/dist/kolibri/kol-pagination.entry.js +1 -1
  414. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  415. package/dist/kolibri/kol-popover.entry.js +1 -1
  416. package/dist/kolibri/kol-popover.entry.js.map +1 -1
  417. package/dist/kolibri/kol-progress.entry.js +1 -1
  418. package/dist/kolibri/kol-quote.entry.js +1 -1
  419. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  420. package/dist/kolibri/kol-select.entry.js +1 -1
  421. package/dist/kolibri/kol-select.entry.js.map +1 -1
  422. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  423. package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
  424. package/dist/kolibri/kol-span-wc.entry.js +1 -1
  425. package/dist/kolibri/kol-spin.entry.js +1 -1
  426. package/dist/kolibri/kol-spin.entry.js.map +1 -1
  427. package/dist/kolibri/kol-symbol.entry.js +1 -1
  428. package/dist/kolibri/kol-table.entry.js +1 -1
  429. package/dist/kolibri/kol-tabs.entry.js +1 -1
  430. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  431. package/dist/kolibri/kol-textarea.entry.js +1 -1
  432. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  433. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  434. package/dist/kolibri/kol-toast-container.entry.js.map +1 -1
  435. package/dist/kolibri/kol-version.entry.js +1 -1
  436. package/dist/kolibri/kolibri.esm.js +1 -1
  437. package/dist/kolibri/{label-3e545772.js → label-5c173d60.js} +1 -1
  438. package/dist/kolibri/open-47384c18.js +4 -0
  439. package/dist/kolibri/{prop.validators-6cc65427.js → prop.validators-3d53ddab.js} +1 -1
  440. package/dist/kolibri/rows-1eebe49e.js +4 -0
  441. package/dist/kolibri/show-3e682c46.js +4 -0
  442. package/dist/kolibri/{suggestions-25890d93.js → suggestions-04f64716.js} +1 -1
  443. package/dist/kolibri/tab-index-d2d0d9db.js +4 -0
  444. package/dist/kolibri/{tab-index-8864ef5e.js.map → tab-index-d2d0d9db.js.map} +1 -1
  445. package/dist/kolibri/tooltip-align-c09e55cd.js +4 -0
  446. package/dist/kolibri/validation-68e14b6f.js +4 -0
  447. package/dist/kolibri/validation-c57e7be5.js +4 -0
  448. package/dist/kolibri/validation-c57e7be5.js.map +1 -0
  449. package/dist/types/components/alert/types.d.ts +4 -2
  450. package/dist/types/components/heading/validation.d.ts +2 -1
  451. package/dist/types/components/input-checkbox/types.d.ts +2 -1
  452. package/dist/types/components/input-date/controller.d.ts +2 -2
  453. package/dist/types/components/quote/types.d.ts +2 -1
  454. package/dist/types/components/textarea/types.d.ts +2 -1
  455. package/dist/types/types/heading-level.d.ts +2 -1
  456. package/dist/types/types/input/control/number.d.ts +2 -2
  457. package/dist/types/types/input/control/text.d.ts +2 -1
  458. package/dist/types/types/input/types.d.ts +2 -1
  459. package/dist/types/types/orientation.d.ts +2 -1
  460. package/dist/types/types/props/align.d.ts +5 -2
  461. package/dist/types/types/props/aria-current.d.ts +3 -1
  462. package/dist/types/types/props/button-type.d.ts +3 -1
  463. package/dist/types/types/props/button-variant.d.ts +3 -1
  464. package/dist/types/types/props/variant/spin.d.ts +3 -1
  465. package/dist/types/utils/validators/loading.d.ts +3 -1
  466. package/doc/badge.md +6 -6
  467. package/doc/input-color.md +21 -21
  468. package/doc/input-date.md +27 -27
  469. package/doc/input-email.md +28 -28
  470. package/doc/input-file.md +22 -22
  471. package/doc/input-number.md +27 -27
  472. package/doc/input-password.md +26 -26
  473. package/doc/input-text.md +28 -28
  474. package/package.json +1 -1
  475. package/vscode-custom-data.json +216 -8
  476. package/dist/cjs/InternalUnderlinedAccessKey-a8e55e80.js +0 -4
  477. package/dist/cjs/InternalUnderlinedAccessKey-a8e55e80.js.map +0 -1
  478. package/dist/cjs/access-key-2ceab9f7.js +0 -4
  479. package/dist/cjs/align-c72f5bb5.js +0 -4
  480. package/dist/cjs/align-c72f5bb5.js.map +0 -1
  481. package/dist/cjs/alignment-c3d11ef0.js +0 -4
  482. package/dist/cjs/alignment-c3d11ef0.js.map +0 -1
  483. package/dist/cjs/alternative-button-link-role-c58c7827.js +0 -4
  484. package/dist/cjs/controller-d31f4e8f.js +0 -4
  485. package/dist/cjs/controller-d31f4e8f.js.map +0 -1
  486. package/dist/cjs/controller-d8470b88.js +0 -4
  487. package/dist/cjs/controller-d8470b88.js.map +0 -1
  488. package/dist/cjs/custom-class-f9abd989.js +0 -4
  489. package/dist/cjs/has-closer-2fabbe8f.js +0 -4
  490. package/dist/cjs/hide-label-e41f7adc.js +0 -4
  491. package/dist/cjs/image-source-b26f9674.js +0 -4
  492. package/dist/cjs/open-7e8c43ab.js +0 -4
  493. package/dist/cjs/rows-301f03c8.js +0 -4
  494. package/dist/cjs/show-fbb0fc54.js +0 -4
  495. package/dist/cjs/validation-47df0e0a.js +0 -4
  496. package/dist/cjs/validation-47df0e0a.js.map +0 -1
  497. package/dist/components/align.js +0 -4
  498. package/dist/components/align.js.map +0 -1
  499. package/dist/esm/InternalUnderlinedAccessKey-c3bc8e32.js +0 -4
  500. package/dist/esm/InternalUnderlinedAccessKey-c3bc8e32.js.map +0 -1
  501. package/dist/esm/access-key-292dd663.js +0 -4
  502. package/dist/esm/align-1b092d1b.js +0 -4
  503. package/dist/esm/align-1b092d1b.js.map +0 -1
  504. package/dist/esm/alignment-529db740.js +0 -4
  505. package/dist/esm/alignment-529db740.js.map +0 -1
  506. package/dist/esm/alternative-button-link-role-b421e482.js +0 -4
  507. package/dist/esm/controller-3ea61e88.js +0 -4
  508. package/dist/esm/controller-3ea61e88.js.map +0 -1
  509. package/dist/esm/controller-43306562.js +0 -4
  510. package/dist/esm/controller-43306562.js.map +0 -1
  511. package/dist/esm/custom-class-ea9a981b.js +0 -4
  512. package/dist/esm/validation-3eb722ca.js +0 -4
  513. package/dist/esm/validation-3eb722ca.js.map +0 -1
  514. package/dist/esm/validation-a3a1a09e.js +0 -4
  515. package/dist/kolibri/InternalUnderlinedAccessKey-c3bc8e32.js +0 -4
  516. package/dist/kolibri/InternalUnderlinedAccessKey-c3bc8e32.js.map +0 -1
  517. package/dist/kolibri/access-key-292dd663.js +0 -4
  518. package/dist/kolibri/align-1b092d1b.js +0 -4
  519. package/dist/kolibri/align-1b092d1b.js.map +0 -1
  520. package/dist/kolibri/alignment-529db740.js +0 -4
  521. package/dist/kolibri/alignment-529db740.js.map +0 -1
  522. package/dist/kolibri/alternative-button-link-role-b421e482.js +0 -4
  523. package/dist/kolibri/app-globals-68db9e00.js +0 -4
  524. package/dist/kolibri/controller-3ea61e88.js +0 -4
  525. package/dist/kolibri/controller-3ea61e88.js.map +0 -1
  526. package/dist/kolibri/controller-43306562.js +0 -4
  527. package/dist/kolibri/controller-43306562.js.map +0 -1
  528. package/dist/kolibri/controller-873fca4f.js +0 -4
  529. package/dist/kolibri/controller-icon-92fc87b9.js +0 -4
  530. package/dist/kolibri/custom-class-ea9a981b.js +0 -4
  531. package/dist/kolibri/has-closer-f31506e6.js +0 -4
  532. package/dist/kolibri/hide-label-eb1f7b60.js +0 -4
  533. package/dist/kolibri/icons-4c438164.js +0 -4
  534. package/dist/kolibri/image-source-d36f06a0.js +0 -4
  535. package/dist/kolibri/open-1e2010f2.js +0 -4
  536. package/dist/kolibri/rows-7108779c.js +0 -4
  537. package/dist/kolibri/show-469f0d1b.js +0 -4
  538. package/dist/kolibri/tab-index-8864ef5e.js +0 -4
  539. package/dist/kolibri/tooltip-align-82ca015a.js +0 -4
  540. package/dist/kolibri/validation-3eb722ca.js +0 -4
  541. package/dist/kolibri/validation-3eb722ca.js.map +0 -1
  542. package/dist/kolibri/validation-a3a1a09e.js +0 -4
  543. /package/dist/kolibri/{a11y.tipps-ba8ae150.js.map → a11y.tipps-06cd7c77.js.map} +0 -0
  544. /package/dist/kolibri/{access-key-292dd663.js.map → access-key-d58c03d6.js.map} +0 -0
  545. /package/dist/kolibri/{alternative-button-link-role-b421e482.js.map → alternative-button-link-role-8db83e93.js.map} +0 -0
  546. /package/dist/kolibri/{app-globals-68db9e00.js.map → app-globals-77b2422c.js.map} +0 -0
  547. /package/dist/kolibri/{associated.controller-687b47db.js.map → associated.controller-1124284d.js.map} +0 -0
  548. /package/dist/kolibri/{color-8ca70766.js.map → color-84b42735.js.map} +0 -0
  549. /package/dist/kolibri/{controller-f653144a.js.map → controller-5a0cb886.js.map} +0 -0
  550. /package/dist/kolibri/{controller-873fca4f.js.map → controller-6a175634.js.map} +0 -0
  551. /package/dist/kolibri/{controller-a0c1c4ea.js.map → controller-7e5c82c1.js.map} +0 -0
  552. /package/dist/kolibri/{controller-icon-92fc87b9.js.map → controller-icon-ffe0af69.js.map} +0 -0
  553. /package/dist/kolibri/{custom-class-ea9a981b.js.map → custom-class-6ba43df0.js.map} +0 -0
  554. /package/dist/kolibri/{devtools-f3838564.js.map → devtools-d3472315.js.map} +0 -0
  555. /package/dist/kolibri/{hide-label-eb1f7b60.js.map → hide-label-3381f0cc.js.map} +0 -0
  556. /package/dist/kolibri/{i18n-9f9f551f.js.map → i18n-8ec5b30e.js.map} +0 -0
  557. /package/dist/kolibri/{icons-4c438164.js.map → icons-062ba29d.js.map} +0 -0
  558. /package/dist/kolibri/{image-source-d36f06a0.js.map → image-source-ceb96521.js.map} +0 -0
  559. /package/dist/kolibri/{index-f8836493.js.map → index-b79e4012.js.map} +0 -0
  560. /package/dist/kolibri/{label-3e545772.js.map → label-5c173d60.js.map} +0 -0
  561. /package/dist/kolibri/{open-1e2010f2.js.map → open-47384c18.js.map} +0 -0
  562. /package/dist/kolibri/{prop.validators-6cc65427.js.map → prop.validators-3d53ddab.js.map} +0 -0
  563. /package/dist/kolibri/{rows-7108779c.js.map → rows-1eebe49e.js.map} +0 -0
  564. /package/dist/kolibri/{show-469f0d1b.js.map → show-3e682c46.js.map} +0 -0
  565. /package/dist/kolibri/{suggestions-25890d93.js.map → suggestions-04f64716.js.map} +0 -0
  566. /package/dist/kolibri/{tooltip-align-82ca015a.js.map → tooltip-align-c09e55cd.js.map} +0 -0
  567. /package/dist/kolibri/{validation-a3a1a09e.js.map → validation-68e14b6f.js.map} +0 -0
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{e as watchNumber}from"./prop.validators-6cc65427.js";const validateRows=(a,o)=>{watchNumber(a,"_rows",o,{min:1})};export{validateRows as v};
4
+ import{e as watchNumber}from"./prop.validators-3d53ddab.js";const validateRows=(a,o)=>{watchNumber(a,"_rows",o,{min:1})};export{validateRows as v};
@@ -1 +1 @@
1
- {"file":"rows-7108779c.js","mappings":";;;;;MAea,YAAY,GAAG,CAAC,SAAoC,EAAE,KAAoB;EACtF,WAAW,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;AACpD;;;;","names":[],"sources":["src/types/props/rows.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { watchNumber } from '../../utils/prop.validators';\n\n/* types */\nexport type RowsPropType = number;\n\n/**\n * Number of rows of the input element that should be visible at the same time.\n */\nexport type PropRows = {\n\trows: RowsPropType;\n};\n\n/* validator */\nexport const validateRows = (component: Generic.Element.Component, value?: RowsPropType): void => {\n\twatchNumber(component, `_rows`, value, { min: 1 });\n};\n"],"version":3}
1
+ {"file":"rows-1eebe49e.js","mappings":";;;;;MAea,YAAY,GAAG,CAAC,SAAoC,EAAE,KAAoB;EACtF,WAAW,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;AACpD;;;;","names":[],"sources":["src/types/props/rows.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { watchNumber } from '../../utils/prop.validators';\n\n/* types */\nexport type RowsPropType = number;\n\n/**\n * Number of rows of the input element that should be visible at the same time.\n */\nexport type PropRows = {\n\trows: RowsPropType;\n};\n\n/* validator */\nexport const validateRows = (component: Generic.Element.Component, value?: RowsPropType): void => {\n\twatchNumber(component, `_rows`, value, { min: 1 });\n};\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{a as watchBoolean}from"./prop.validators-6cc65427.js";const validateShow=(a,o,t)=>{watchBoolean(a,"_show",o,t)};export{validateShow as v};
4
+ import{a as watchBoolean}from"./prop.validators-3d53ddab.js";const validateShow=(a,o,t)=>{watchBoolean(a,"_show",o,t)};export{validateShow as v};
@@ -1 +1 @@
1
- {"file":"show-469f0d1b.js","mappings":";;;;;MAea,YAAY,GAAG,CAAC,SAAoC,EAAE,KAAoB,EAAE,KAA2B;EACnH,YAAY,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;AAChD;;;;","names":[],"sources":["src/types/props/show.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { watchBoolean, WatchBooleanOptions } from '../../utils/prop.validators';\n\n/* types */\nexport type ShowPropType = boolean;\n\n/**\n * Makes the element show up.\n */\nexport type PropShow = {\n\tshow: ShowPropType;\n};\n\n/* validator */\nexport const validateShow = (component: Generic.Element.Component, value?: ShowPropType, hooks?: WatchBooleanOptions): void => {\n\twatchBoolean(component, '_show', value, hooks);\n};\n"],"version":3}
1
+ {"file":"show-3e682c46.js","mappings":";;;;;MAea,YAAY,GAAG,CAAC,SAAoC,EAAE,KAAoB,EAAE,KAA2B;EACnH,YAAY,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;AAChD;;;;","names":[],"sources":["src/types/props/show.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { watchBoolean, WatchBooleanOptions } from '../../utils/prop.validators';\n\n/* types */\nexport type ShowPropType = boolean;\n\n/**\n * Makes the element show up.\n */\nexport type PropShow = {\n\tshow: ShowPropType;\n};\n\n/* validator */\nexport const validateShow = (component: Generic.Element.Component, value?: ShowPropType, hooks?: WatchBooleanOptions): void => {\n\twatchBoolean(component, '_show', value, hooks);\n};\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{c as watchJsonArrayString}from"./prop.validators-6cc65427.js";import{a as a11yHint}from"./a11y.tipps-ba8ae150.js";const validateSuggestions=(s,t)=>{watchJsonArrayString(s,"_suggestions",(s=>"string"==typeof s||"number"==typeof s),t,void 0,{hooks:{afterPatch:s=>{Array.isArray(s)&&s.length&&a11yHint("Property suggestions: Options have accessibility issues in how browsers implemented them and should not be used for now.")}}})};export{validateSuggestions as v};
4
+ import{c as watchJsonArrayString}from"./prop.validators-3d53ddab.js";import{a as a11yHint}from"./a11y.tipps-06cd7c77.js";const validateSuggestions=(s,t)=>{watchJsonArrayString(s,"_suggestions",(s=>"string"==typeof s||"number"==typeof s),t,void 0,{hooks:{afterPatch:s=>{Array.isArray(s)&&s.length&&a11yHint("Property suggestions: Options have accessibility issues in how browsers implemented them and should not be used for now.")}}})};export{validateSuggestions as v};
@@ -1 +1 @@
1
- {"file":"suggestions-25890d93.js","mappings":";;;;;;MAkBa,mBAAmB,GAAG,CAAC,SAAoC,EAAE,KAA2B;EACpG,oBAAoB,CAAC,SAAS,EAAE,cAAc,EAAE,CAAC,IAAmB,KAAK,OAAO,IAAI,KAAK,QAAQ,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE;IAChJ,KAAK,EAAE;MACN,UAAU,EAAE,CAAC,KAAc;QAC1B,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,EAAE;UACzC,QAAQ,CAAC,0HAA0H,CAAC,CAAC;SACrI;OACD;KACD;GACD,CAAC,CAAC;AACJ;;;;","names":[],"sources":["src/types/props/suggestions.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { watchJsonArrayString } from '../../utils/prop.validators';\nimport { Stringified } from '../common';\nimport { W3CInputValue } from '../w3c';\nimport { a11yHint } from '../../utils/a11y.tipps';\n\n/* types */\nexport type SuggestionsPropType = Stringified<W3CInputValue[]>;\n\n/**\n * Suggestions to provide for an input.\n */\nexport type PropSuggestions = {\n\tsuggestions: SuggestionsPropType;\n};\n\n/* validator */\nexport const validateSuggestions = (component: Generic.Element.Component, value?: SuggestionsPropType): void => {\n\twatchJsonArrayString(component, '_suggestions', (item: W3CInputValue) => typeof item === 'string' || typeof item === 'number', value, undefined, {\n\t\thooks: {\n\t\t\tafterPatch: (value: unknown) => {\n\t\t\t\tif (Array.isArray(value) && value.length) {\n\t\t\t\t\ta11yHint('Property suggestions: Options have accessibility issues in how browsers implemented them and should not be used for now.');\n\t\t\t\t}\n\t\t\t},\n\t\t},\n\t});\n};\n"],"version":3}
1
+ {"file":"suggestions-04f64716.js","mappings":";;;;;;MAkBa,mBAAmB,GAAG,CAAC,SAAoC,EAAE,KAA2B;EACpG,oBAAoB,CAAC,SAAS,EAAE,cAAc,EAAE,CAAC,IAAmB,KAAK,OAAO,IAAI,KAAK,QAAQ,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE;IAChJ,KAAK,EAAE;MACN,UAAU,EAAE,CAAC,KAAc;QAC1B,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,EAAE;UACzC,QAAQ,CAAC,0HAA0H,CAAC,CAAC;SACrI;OACD;KACD;GACD,CAAC,CAAC;AACJ;;;;","names":[],"sources":["src/types/props/suggestions.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { watchJsonArrayString } from '../../utils/prop.validators';\nimport { Stringified } from '../common';\nimport { W3CInputValue } from '../w3c';\nimport { a11yHint } from '../../utils/a11y.tipps';\n\n/* types */\nexport type SuggestionsPropType = Stringified<W3CInputValue[]>;\n\n/**\n * Suggestions to provide for an input.\n */\nexport type PropSuggestions = {\n\tsuggestions: SuggestionsPropType;\n};\n\n/* validator */\nexport const validateSuggestions = (component: Generic.Element.Component, value?: SuggestionsPropType): void => {\n\twatchJsonArrayString(component, '_suggestions', (item: W3CInputValue) => typeof item === 'string' || typeof item === 'number', value, undefined, {\n\t\thooks: {\n\t\t\tafterPatch: (value: unknown) => {\n\t\t\t\tif (Array.isArray(value) && value.length) {\n\t\t\t\t\ta11yHint('Property suggestions: Options have accessibility issues in how browsers implemented them and should not be used for now.');\n\t\t\t\t}\n\t\t\t},\n\t\t},\n\t});\n};\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{a as a11yHint}from"./a11y.tipps-ba8ae150.js";import{e as watchNumber}from"./prop.validators-6cc65427.js";const options={hooks:{afterPatch:a=>{-1!==a&&0!==a&&a11yHint("Don’t Use Tabindex Greater than 0: https://adrianroselli.com/2014/11/dont-use-tabindex-greater-than-0.html")}}},validateTabIndex=(a,t)=>{watchNumber(a,"_tabIndex",t,options)};export{validateTabIndex as v};
4
+ import{a as a11yHint}from"./a11y.tipps-06cd7c77.js";import{e as watchNumber}from"./prop.validators-3d53ddab.js";const options={hooks:{afterPatch:a=>{-1!==a&&0!==a&&a11yHint("Don’t Use Tabindex Greater than 0: https://adrianroselli.com/2014/11/dont-use-tabindex-greater-than-0.html")}}},validateTabIndex=(a,t)=>{watchNumber(a,"_tabIndex",t,options)};export{validateTabIndex as v};
@@ -1 +1 @@
1
- {"file":"tab-index-8864ef5e.js","mappings":";;;;;;AAUA,MAAM,OAAO,GAAuB;EACnC,KAAK,EAAE;IACN,UAAU,EAAE,CAAC,KAAK;MACjB,IAAI,KAAK,KAAK,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC,EAAE;QAChC,QAAQ,CAAC,4GAA4G,CAAC,CAAC;OACvH;KACD;GACD;CACD,CAAC;MAKW,gBAAgB,GAAG,CAAC,SAAoC,EAAE,KAAc;EACpF,WAAW,CAAC,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;AACrD;;;;","names":[],"sources":["src/utils/validators/tab-index.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { a11yHint } from '../a11y.tipps';\nimport { watchNumber, WatchNumberOptions } from '../prop.validators';\n\n/**\n * Accessibility hints\n * - https://adrianroselli.com/2014/11/dont-use-tabindex-greater-than-0.html\n */\n\nconst options: WatchNumberOptions = {\n\thooks: {\n\t\tafterPatch: (value) => {\n\t\t\tif (value !== -1 && value !== 0) {\n\t\t\t\ta11yHint(`Don’t Use Tabindex Greater than 0: https://adrianroselli.com/2014/11/dont-use-tabindex-greater-than-0.html`);\n\t\t\t}\n\t\t},\n\t},\n};\n\n/**\n * Diese Methode validiert das Property und setzt den State, wenn es valide ist.\n */\nexport const validateTabIndex = (component: Generic.Element.Component, value?: number): void => {\n\twatchNumber(component, '_tabIndex', value, options);\n};\n"],"version":3}
1
+ {"file":"tab-index-d2d0d9db.js","mappings":";;;;;;AAUA,MAAM,OAAO,GAAuB;EACnC,KAAK,EAAE;IACN,UAAU,EAAE,CAAC,KAAK;MACjB,IAAI,KAAK,KAAK,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC,EAAE;QAChC,QAAQ,CAAC,4GAA4G,CAAC,CAAC;OACvH;KACD;GACD;CACD,CAAC;MAKW,gBAAgB,GAAG,CAAC,SAAoC,EAAE,KAAc;EACpF,WAAW,CAAC,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;AACrD;;;;","names":[],"sources":["src/utils/validators/tab-index.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { a11yHint } from '../a11y.tipps';\nimport { watchNumber, WatchNumberOptions } from '../prop.validators';\n\n/**\n * Accessibility hints\n * - https://adrianroselli.com/2014/11/dont-use-tabindex-greater-than-0.html\n */\n\nconst options: WatchNumberOptions = {\n\thooks: {\n\t\tafterPatch: (value) => {\n\t\t\tif (value !== -1 && value !== 0) {\n\t\t\t\ta11yHint(`Don’t Use Tabindex Greater than 0: https://adrianroselli.com/2014/11/dont-use-tabindex-greater-than-0.html`);\n\t\t\t}\n\t\t},\n\t},\n};\n\n/**\n * Diese Methode validiert das Property und setzt den State, wenn es valide ist.\n */\nexport const validateTabIndex = (component: Generic.Element.Component, value?: number): void => {\n\twatchNumber(component, '_tabIndex', value, options);\n};\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{v as validateAlignment}from"./alignment-529db740.js";const validateTooltipAlign=(i,t)=>{validateAlignment(i,"_tooltipAlign",t)};export{validateTooltipAlign as v};
4
+ import{v as validateAlignment}from"./alignment-de1c6559.js";const validateTooltipAlign=(i,t)=>{validateAlignment(i,"_tooltipAlign",t)};export{validateTooltipAlign as v};
@@ -1 +1 @@
1
- {"file":"tooltip-align-82ca015a.js","mappings":";;;;;MAgBa,oBAAoB,GAAG,CAAC,SAAoC,EAAE,KAA4B;EACtG,iBAAiB,CAAC,SAAS,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC;AACtD;;;;","names":[],"sources":["src/types/props/tooltip-align.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { validateAlignment } from '../../utils/validators/alignment';\nimport { AlignPropType } from './align';\n\n/* types */\nexport type TooltipAlignPropType = AlignPropType;\n\n/**\n * Defines where to show the Tooltip preferably: top, right, bottom or left.\n */\nexport type PropTooltipAlign = {\n\ttooltipAlign: TooltipAlignPropType;\n};\n\n/* validator */\nexport const validateTooltipAlign = (component: Generic.Element.Component, value?: TooltipAlignPropType): void => {\n\tvalidateAlignment(component, '_tooltipAlign', value);\n};\n"],"version":3}
1
+ {"file":"tooltip-align-c09e55cd.js","mappings":";;;;;MAgBa,oBAAoB,GAAG,CAAC,SAAoC,EAAE,KAA4B;EACtG,iBAAiB,CAAC,SAAS,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC;AACtD;;;;","names":[],"sources":["src/types/props/tooltip-align.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { validateAlignment } from '../../utils/validators/alignment';\nimport { AlignPropType } from './align';\n\n/* types */\nexport type TooltipAlignPropType = AlignPropType;\n\n/**\n * Defines where to show the Tooltip preferably: top, right, bottom or left.\n */\nexport type PropTooltipAlign = {\n\ttooltipAlign: TooltipAlignPropType;\n};\n\n/* validator */\nexport const validateTooltipAlign = (component: Generic.Element.Component, value?: TooltipAlignPropType): void => {\n\tvalidateAlignment(component, '_tooltipAlign', value);\n};\n"],"version":3}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{c as uiUxHintMillerscheZahl}from"./a11y.tipps-06cd7c77.js";import{c as watchJsonArrayString}from"./prop.validators-3d53ddab.js";const watchNavLinks=(t,a,s)=>{watchJsonArrayString(a,"_links",(t=>"object"==typeof t&&("string"==typeof t._href||"string"==typeof t._label)),s),uiUxHintMillerscheZahl(t,a.state._links.length)};export{watchNavLinks as w};
@@ -1 +1 @@
1
- {"file":"validation-a3a1a09e.js","mappings":";;;;;;MAUa,aAAa,GAAG,CAC5B,SAAiB,EACjB,SAIC,EACD,KAAsC;EAEtC,oBAAoB,CACnB,SAAS,EACT,QAAQ,EACR,CAAC,IAAI,KAAK,OAAO,IAAI,KAAK,QAAQ,KAAK,OAAQ,IAAiB,CAAC,KAAK,KAAK,QAAQ,IAAI,OAAQ,IAAkB,CAAC,MAAM,KAAK,QAAQ,CAAC,EACtI,KAAK,CACL,CAAC;EACF,sBAAsB,CAAC,SAAS,EAAE,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AAClE;;;;","names":[],"sources":["src/components/nav/validation.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { Stringified } from '../../types/common';\nimport { HrefProp } from '../../types/props/href';\nimport { LabelProp } from '../../types/props/label';\nimport { uiUxHintMillerscheZahl } from '../../utils/a11y.tipps';\nimport { watchJsonArrayString } from '../../utils/prop.validators';\n\ntype HrefOrLabelProp = HrefProp | LabelProp;\n\nexport const watchNavLinks = (\n\tclassName: string,\n\tcomponent: Generic.Element.Component & {\n\t\tstate: {\n\t\t\t_links: HrefOrLabelProp[];\n\t\t};\n\t},\n\tvalue?: Stringified<HrefOrLabelProp[]>\n): void => {\n\twatchJsonArrayString(\n\t\tcomponent,\n\t\t'_links',\n\t\t(link) => typeof link === 'object' && (typeof (link as HrefProp)._href === 'string' || typeof (link as LabelProp)._label === 'string'),\n\t\tvalue\n\t);\n\tuiUxHintMillerscheZahl(className, component.state._links.length);\n};\n"],"version":3}
1
+ {"file":"validation-68e14b6f.js","mappings":";;;;;;MAUa,aAAa,GAAG,CAC5B,SAAiB,EACjB,SAIC,EACD,KAAsC;EAEtC,oBAAoB,CACnB,SAAS,EACT,QAAQ,EACR,CAAC,IAAI,KAAK,OAAO,IAAI,KAAK,QAAQ,KAAK,OAAQ,IAAiB,CAAC,KAAK,KAAK,QAAQ,IAAI,OAAQ,IAAkB,CAAC,MAAM,KAAK,QAAQ,CAAC,EACtI,KAAK,CACL,CAAC;EACF,sBAAsB,CAAC,SAAS,EAAE,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AAClE;;;;","names":[],"sources":["src/components/nav/validation.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { Stringified } from '../../types/common';\nimport { HrefProp } from '../../types/props/href';\nimport { LabelProp } from '../../types/props/label';\nimport { uiUxHintMillerscheZahl } from '../../utils/a11y.tipps';\nimport { watchJsonArrayString } from '../../utils/prop.validators';\n\ntype HrefOrLabelProp = HrefProp | LabelProp;\n\nexport const watchNavLinks = (\n\tclassName: string,\n\tcomponent: Generic.Element.Component & {\n\t\tstate: {\n\t\t\t_links: HrefOrLabelProp[];\n\t\t};\n\t},\n\tvalue?: Stringified<HrefOrLabelProp[]>\n): void => {\n\twatchJsonArrayString(\n\t\tcomponent,\n\t\t'_links',\n\t\t(link) => typeof link === 'object' && (typeof (link as HrefProp)._href === 'string' || typeof (link as LabelProp)._label === 'string'),\n\t\tvalue\n\t);\n\tuiUxHintMillerscheZahl(className, component.state._links.length);\n};\n"],"version":3}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{w as watchValidator}from"./prop.validators-3d53ddab.js";const headingLevelOptions=[0,1,2,3,4,5,6],watchHeadingLevel=(e,a)=>{watchValidator(e,"_level",(e=>"number"==typeof e&&headingLevelOptions.includes(e)),new Set([`Number {${headingLevelOptions.join(", ")}`]),a,{defaultValue:1,required:!0})};export{watchHeadingLevel as w};
@@ -0,0 +1 @@
1
+ {"file":"validation-c57e7be5.js","mappings":";;;;;AAAO,MAAM,mBAAmB,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAU;;MCKpD,iBAAiB,GAAG,CAAC,SAAoC,EAAE,KAAoB;EAC3F,cAAc,CACb,SAAS,EACT,QAAQ,EACR,CAAC,KAAoB;IACpB,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,mBAAmB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;GACxE,EACD,IAAI,GAAG,CAAC,CAAC,WAAW,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EACtD,KAAK,EACL;IAEC,YAAY,EAAE,CAAC;IACf,QAAQ,EAAE,IAAI;GACd,CACD,CAAC;AACH;;;;","names":[],"sources":["src/types/heading-level.ts","src/components/heading/validation.ts"],"sourcesContent":["export const headingLevelOptions = [0, 1, 2, 3, 4, 5, 6] as const;\nexport type HeadingLevel = (typeof headingLevelOptions)[number];\n","import { Generic } from '@a11y-ui/core';\n\nimport { watchValidator } from '../../utils/prop.validators';\nimport { HeadingLevel, headingLevelOptions } from '../../types/heading-level';\n\nexport const watchHeadingLevel = (component: Generic.Element.Component, value?: HeadingLevel): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t'_level',\n\t\t(value?: HeadingLevel): boolean => {\n\t\t\treturn typeof value === 'number' && headingLevelOptions.includes(value);\n\t\t},\n\t\tnew Set([`Number {${headingLevelOptions.join(', ')}`]),\n\t\tvalue,\n\t\t{\n\t\t\t// TODO: options not in the validator\n\t\t\tdefaultValue: 1,\n\t\t\trequired: true,\n\t\t}\n\t);\n};\n"],"version":3}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{h as l,F as e}from"./index-9c30809b.js";const n=({accessKey:n,label:t})=>{let[s,...o]=t.split(n);return 0===o.length&&(n=n.toUpperCase(),[s,...o]=t.split(n)),0===o.length&&(n=n.toLowerCase(),[s,...o]=t.split(n)),l(e,null,s,o.length?l(e,null,l("u",null,n),o.join(n)):null)};export{n as I};
@@ -0,0 +1 @@
1
+ {"version":3,"names":["InternalUnderlinedAccessKey","accessKey","label","first","rest","split","length","toUpperCase","toLowerCase","h","Fragment","join"],"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"],"mappings":";;;qDAMaA,EAA8B,EAAGC,YAAWC,YAExD,IAAKC,KAAUC,GAAQF,EAAMG,MAAMJ,GACnC,GAAIG,EAAKE,SAAW,EAAG,CACtBL,EAAYA,EAAUM,eACrBJ,KAAUC,GAAQF,EAAMG,MAAMJ,E,CAEhC,GAAIG,EAAKE,SAAW,EAAG,CACtBL,EAAYA,EAAUO,eACrBL,KAAUC,GAAQF,EAAMG,MAAMJ,E,CAEhC,OACCQ,EAAAC,EAAA,KACEP,EACAC,EAAKE,OACLG,EAAAC,EAAA,KACCD,EAAA,SAAIR,GACHG,EAAKO,KAAKV,IAET,KACF,S"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{L as e}from"./dev.utils-a31cf0e4.js";const i=new Set,n=(n,r)=>{(!1===i.has(n)||(null==r?void 0:r.force))&&(i.add(n),e.debug([n].concat((null==r?void 0:r.details)||[]),{classifier:"✋ a11y",overwriteStyle:"; background-color: #09f"}))},o=new Set,r=(n,i)=>{(!1===o.has(n)||(null==i?void 0:i.force))&&(o.add(n),e.debug([n].concat((null==i?void 0:i.details)||[]),{classifier:"💻 dev",overwriteStyle:"; background-color: #f09"}))},t=(n,i)=>{(!1===o.has(n)||(null==i?void 0:i.force))&&(o.add(n),e.warn([n].concat((null==i?void 0:i.details)||[]),{classifier:"💻 dev",overwriteStyle:"; background-color: #f09"}))},s=new Set,l=(n,i=!1,r)=>{(!1===s.has(n)||(null==r?void 0:r.force))&&(s.add(n),n+=!0===i?" ✅":"",e.debug([n].concat((null==r?void 0:r.details)||[]),{classifier:"🌟 feature",overwriteStyle:"; background-color: #309"}))};r("Wir freuen uns über jedes Feedback, Kommentare, Screenshots oder Demo-Links von einer auf KoliBri-basierenden Anwendung (kolibri@itzbund.de). Vielen Dank!");const a=new Set,d=(n,i)=>{(!1===a.has(n)||(null==i?void 0:i.force))&&(a.add(n),e.debug([n].concat((null==i?void 0:i.details)||[]),{classifier:"📑 ui/ux",overwriteStyle:"; background-color: #060;"}))},c=()=>{n('"Disabled" schränkt die Zugänglichkeit und Sichtbarkeit ein. Wir empfehlen aus Sicht der Barrierefreiheit readonly- statt disabled-Attribut zu verwenden.\n- https://uxdesign.cc/is-it-ok-to-grey-out-disabled-buttons-8afa74a0fae')},u=e=>{"string"==typeof e&&""!==e||n("Manche Strukturelemente, wie bspw. der nav-Tag, können mehrfach in einer Webseite verwendet werden. Damit die gleichnamigen Strukturelemente voneinander unterschieden werden können, ist es erforderlich ein Aria-Label zu setzen.\n- https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Navigation_Role#accessibility_concerns")},v=(e,n=8)=>{n>7&&d(`[${e}] Innerhalb von Navigationsstrukturen wird empfohlen nicht mehr als 7 Menüpunkte zu verwenden.\n\nLinks:\n- https://de.ryte.com/wiki/Millersche_Zahl\n- https://de.wikipedia.org/wiki/Millersche_Zahl`)};export{n as a,u as b,v as c,r as d,c as e,l as f,t as g,d as u};
4
+ import{L as e}from"./dev.utils-075f4e7b.js";const i=new Set,n=(n,r)=>{(!1===i.has(n)||(null==r?void 0:r.force))&&(i.add(n),e.debug([n].concat((null==r?void 0:r.details)||[]),{classifier:"✋ a11y",overwriteStyle:"; background-color: #09f"}))},o=new Set,r=(n,i)=>{(!1===o.has(n)||(null==i?void 0:i.force))&&(o.add(n),e.debug([n].concat((null==i?void 0:i.details)||[]),{classifier:"💻 dev",overwriteStyle:"; background-color: #f09"}))},t=(n,i)=>{(!1===o.has(n)||(null==i?void 0:i.force))&&(o.add(n),e.warn([n].concat((null==i?void 0:i.details)||[]),{classifier:"💻 dev",overwriteStyle:"; background-color: #f09"}))},s=new Set,l=(n,i=!1,r)=>{(!1===s.has(n)||(null==r?void 0:r.force))&&(s.add(n),n+=!0===i?" ✅":"",e.debug([n].concat((null==r?void 0:r.details)||[]),{classifier:"🌟 feature",overwriteStyle:"; background-color: #309"}))};r("Wir freuen uns über jedes Feedback, Kommentare, Screenshots oder Demo-Links von einer auf KoliBri-basierenden Anwendung (kolibri@itzbund.de). Vielen Dank!");const a=new Set,d=(n,i)=>{(!1===a.has(n)||(null==i?void 0:i.force))&&(a.add(n),e.debug([n].concat((null==i?void 0:i.details)||[]),{classifier:"📑 ui/ux",overwriteStyle:"; background-color: #060;"}))},c=()=>{n('"Disabled" schränkt die Zugänglichkeit und Sichtbarkeit ein. Wir empfehlen aus Sicht der Barrierefreiheit readonly- statt disabled-Attribut zu verwenden.\n- https://uxdesign.cc/is-it-ok-to-grey-out-disabled-buttons-8afa74a0fae')},u=e=>{"string"==typeof e&&""!==e||n("Manche Strukturelemente, wie bspw. der nav-Tag, können mehrfach in einer Webseite verwendet werden. Damit die gleichnamigen Strukturelemente voneinander unterschieden werden können, ist es erforderlich ein Aria-Label zu setzen.\n- https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Navigation_Role#accessibility_concerns")},v=(e,n=8)=>{n>7&&d(`[${e}] Innerhalb von Navigationsstrukturen wird empfohlen nicht mehr als 7 Menüpunkte zu verwenden.\n\nLinks:\n- https://de.ryte.com/wiki/Millersche_Zahl\n- https://de.wikipedia.org/wiki/Millersche_Zahl`)};export{n as a,u as b,v as c,r as d,c as e,l as f,t as g,d as u};
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{d as s}from"./prop.validators-3d53ddab.js";const a=(a,o)=>{s(a,"_accessKey",o)};export{a as v};
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{w as t}from"./prop.validators-3d53ddab.js";const o=["left","right"],s=["top","bottom"],a=[...o,...s],n=(t,a)=>{e(t,"_align",a)},e=(o,e,s)=>{t(o,e,(t=>"string"==typeof t&&a.includes(t)),new Set(a),s,{defaultValue:"top"})};export{n as a,e as v};
@@ -0,0 +1 @@
1
+ {"version":3,"names":["horizontalAlignOptions","verticalAlignOptions","alignPropTypeOptions","validateAlign","component","value","validateAlignment","propName","watchValidator","includes","Set","defaultValue"],"sources":["src/types/props/align.ts","src/utils/validators/alignment.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { validateAlignment } from '../../utils/validators/alignment';\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","import { Generic } from '@a11y-ui/core';\n\nimport { AlignPropType, alignPropTypeOptions } from '../../types/props/align';\nimport { watchValidator } from '../prop.validators';\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"],"mappings":";;;kDAKA,MAAMA,EAAyB,CAAC,OAAQ,SAExC,MAAMC,EAAuB,CAAC,MAAO,UAE9B,MAAMC,EAAuB,IAAIF,KAA2BC,G,MAWtDE,EAAgB,CAACC,EAAsCC,KACnEC,EAAkBF,EAAW,SAAUC,EAAM,E,MChBjCC,EAAoB,CAACF,EAAsCG,EAAkBF,KACzFG,EAAeJ,EAAWG,GAAWF,UAAiBA,IAAU,UAAYH,EAAqBO,SAASJ,IAAQ,IAAIK,IAAIR,GAAuBG,EAAO,CACvJM,aAAc,OACb,S"}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{d as o}from"./prop.validators-3d53ddab.js";const r=(r,a)=>{o(r,"_role",a)};export{r as v};
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{a as o}from"./index-9c30809b.js";import{r as t}from"./index-b79e4012.js";import{L as s,s as e,g as a}from"./dev.utils-075f4e7b.js";import{p as i}from"./reuse-b3566e4c.js";const r=async()=>{o((o=>{try{o.shadowRoot instanceof ShadowRoot&&e(o,a(o))}catch(o){}return"default"})),await t([],[]),import("./devtools-d3472315.js").then((o=>{"object"==typeof o&&null!==o&&"function"==typeof o.initialize&&o.initialize()})).catch((o=>{s.error(o)})),i&&import("./index-a098db81.js")},f=r;export{f as g};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{d as t}from"./prop.validators-6cc65427.js";import{d as e,g as i}from"./a11y.tipps-ba8ae150.js";import{d as s}from"./dev.utils-a31cf0e4.js";const o=(e,o,i)=>{t(e,"_name",o,i)},a=s();class n{constructor(t,o,i){var s,r;if(this.setFormAssociatedValue=t=>{var o;const i=null===(o=this.formAssociated)||void 0===o?void 0:o.getAttribute("name");null!==i&&""!==i||e(` The form field (${this.name}) 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.name=o,a){switch(null===(s=this.host)||void 0===s||s.querySelectorAll("input,select,textarea").forEach((t=>{var e;null===(e=this.host)||void 0===e||e.removeChild(t)})),this.name){case"button":this.formAssociated=document.createElement("button");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===(r=this.host)||void 0===r||r.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,o){if(a)try{if("boolean"!=typeof(o="object"==typeof o&&null!==o?JSON.stringify(o):o)&&"number"!=typeof o&&"string"!=typeof o)throw new Error("Invalid value type: "+typeof o);null==e||e.setAttribute(t,`${o}`)}catch(o){null==e||e.removeAttribute(t)}}tryToStringifyValue(t){try{return"object"==typeof t&&null!==t?JSON.stringify(t).toString():null==t?null:t.toString()}catch(t){return i(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,o){if(o)if("select"===this.name)o.querySelectorAll("option").forEach((t=>{o.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",""),o.appendChild(t)}}));else"string"==typeof e?(o.setAttribute("value",e),o.value=e):(o.removeAttribute("value"),o.value="")}validateName(t){o(this.component,t,{hooks:{afterPatch:()=>{this.setAttribute("name",this.formAssociated,this.component.state._name)}}}),void 0===t&&e("Ein Name am Eingabefeldern oder Schalter ist nicht zwingend erforderlich, kann aber für die Autocomplete-Funktion und für das statische Versenden des Eingabefeldes relevant sein.")}validateSyncValueBySelector(t){if(a&&"string"==typeof t){const e=document.querySelector(t);e&&(this.syncToOwnInput=e)}}componentWillLoad(){this.validateName(this.component._name),this.validateSyncValueBySelector(this.component._syncValueBySelector)}}export{n as A};
4
+ import{d as t}from"./prop.validators-3d53ddab.js";import{d as e,g as i}from"./a11y.tipps-06cd7c77.js";import{d as s}from"./dev.utils-075f4e7b.js";const o=(e,o,i)=>{t(e,"_name",o,i)},n=s();class a{constructor(t,o,i){var s,a;if(this.setFormAssociatedValue=t=>{var o;const i=null===(o=this.formAssociated)||void 0===o?void 0:o.getAttribute("name");null!==i&&""!==i||e(` The form field (${this.name}) 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.name=o,n){switch(null===(s=this.host)||void 0===s||s.querySelectorAll("input,select,textarea").forEach((t=>{var e;null===(e=this.host)||void 0===e||e.removeChild(t)})),this.name){case"button":this.formAssociated=document.createElement("button");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,o){if(n)try{if("boolean"!=typeof(o="object"==typeof o&&null!==o?JSON.stringify(o):o)&&"number"!=typeof o&&"string"!=typeof o)throw new Error("Invalid value type: "+typeof o);null==e||e.setAttribute(t,`${o}`)}catch(o){null==e||e.removeAttribute(t)}}tryToStringifyValue(t){try{return"object"==typeof t&&null!==t?JSON.stringify(t).toString():null==t?null:t.toString()}catch(t){return i(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,o){if(o)if("select"===this.name)o.querySelectorAll("option").forEach((t=>{o.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",""),o.appendChild(t)}}));else"string"==typeof e?(o.setAttribute("value",e),o.value=e):(o.removeAttribute("value"),o.value="")}validateName(t){o(this.component,t,{hooks:{afterPatch:()=>{this.setAttribute("name",this.formAssociated,this.component.state._name)}}}),void 0===t&&e("Ein Name am Eingabefeldern oder Schalter ist nicht zwingend erforderlich, kann aber für die Autocomplete-Funktion und für das statische Versenden des Eingabefeldes relevant sein.")}validateSyncValueBySelector(t){if(n&&"string"==typeof t){const e=document.querySelector(t);e&&(this.syncToOwnInput=e)}}componentWillLoad(){this.validateName(this.component._name),this.validateSyncValueBySelector(this.component._syncValueBySelector)}}export{a as A};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as e,b as r,w as a}from"./prop.validators-6cc65427.js";import{a as t}from"./a11y.tipps-ba8ae150.js";var n={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]},l=i,o={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function i(e){var r,a,t=[],l=1;if("string"==typeof e)if(e=e.toLowerCase(),n[e])t=n[e].slice(),a="rgb";else if("transparent"===e)l=0,a="rgb",t=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var i=e.slice(1);l=1,(g=i.length)<=4?(t=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],4===g&&(l=parseInt(i[3]+i[3],16)/255)):(t=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],8===g&&(l=parseInt(i[6]+i[7],16)/255)),t[0]||(t[0]=0),t[1]||(t[1]=0),t[2]||(t[2]=0),a="rgb"}else if(r=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var s=r[1],u="rgb"===s;a=i=s.replace(/a$/,"");var g="cmyk"===i?4:"gray"===i?1:3;t=r[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(e,r){if(/%$/.test(e))return r===g?parseFloat(e)/100:"rgb"===i?255*parseFloat(e)/100:parseFloat(e);if("h"===i[r]){if(/deg$/.test(e))return parseFloat(e);if(void 0!==o[e])return o[e]}return parseFloat(e)})),s===i&&t.push(1),l=u||void 0===t[g]?1:t[g],t=t.slice(0,g)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(t=e.match(/([0-9]+)/g).map((function(e){return parseFloat(e)})),a=e.match(/([a-z])/gi).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(t=[e[0],e[1],e[2]],a="rgb",l=4===e.length?e[3]:1):e instanceof Object&&(null!=e.r||null!=e.red||null!=e.R?(a="rgb",t=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(a="hsl",t=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),l=e.a||e.alpha||e.opacity||1,null!=e.opacity&&(l/=100)):(a="rgb",t=[e>>>16,(65280&e)>>>8,255&e]);return{space:a,values:t,alpha:l}}var s=function(e){var r;Array.isArray(e)&&e.raw&&(e=String.raw.apply(null,arguments));var a=l(e);if(!a.space)return[];var o=[0,0,0],t="h"===a.space[0]?[360,100,100]:[255,255,255];return(r=Array(3))[0]=Math.min(Math.max(a.values[0],o[0]),t[0]),r[1]=Math.min(Math.max(a.values[1],o[1]),t[1]),r[2]=Math.min(Math.max(a.values[2],o[2]),t[2]),"h"===a.space[0]&&(r=u(r)),r.push(Math.min(Math.max(a.alpha,0),1)),r};function u(e){var r,a,o,t,n,l=e[0]/360,i=e[1]/100,s=e[2]/100,u=0;if(0===i)return[n=255*s,n,n];for(r=2*s-(a=s<.5?s*(1+i):s+i-s*i),t=[0,0,0];u<3;)(o=l+1/3*-(u-1))<0?o++:o>1&&o--,n=6*o<1?r+6*(a-r)*o:2*o<1?a:3*o<2?r+(a-r)*(2/3-o)*6:r,t[u++]=255*n;return t}const g=(e,r,a)=>(299*e+587*r+114*a)/1e3>=128?-1:1,f=(a,o,t,n=1)=>{const l=[Math.max(Math.min(Math.round(o[0]+n*Math.max(1,o[0]/100)),255),0),Math.max(Math.min(Math.round(o[1]+n*Math.max(1,o[1]/100)),255),0),Math.max(Math.min(Math.round(o[2]+n*Math.max(1,o[2]/100)),255),0)],i=r(e.hex(`rgba(${a.join(",")},1)`),e.hex(`rgba(${l.join(",")},1)`)),s=l[0]+l[1]+l[2];return 0===s||765===s||i>t?{background:a,foreground:l,contrast:i}:f(a,l,t,n)},d=new Map,c=(e,r,a,o=1)=>{if(d.has(e))return d.get(e);const t=f(e,r,a,o);return d.set(e,t),t},p=(r,a=7)=>{let o=[0,0,0,1],t=[255,255,255,1];"string"==typeof r?(o=s(r),t=o):"object"==typeof r&&null!==r&&"string"==typeof r.background&&"string"==typeof r.foreground&&(o=s(r.background),t="string"==typeof r.foreground?s(r.foreground):o);const n=g(o[0],o[1],o[2]),l=c([o[0],o[1],o[2]],[t[0],t[1],t[2]],a,n);return t=[...l.foreground,1],{background:e.hex(`rgba(${o.join(",")})`),foreground:e.hex(`rgba(${t.join(",")})`),contrast:l.contrast}},h=/^#((\d|[a-f]){8}|(\d|[a-f]){6}|(\d|[a-f]){3,4})$/i;function y(e){return h.test(e)}function b(e){if(e.startsWith("{"))try{const r=JSON.parse(e);if(m(r))return{type:"ColorPair",value:r}}catch(e){return{type:null,value:null}}return{type:null,value:null}}function v(e){if(e)if("string"==typeof e){if(y(e))return{type:"string",valid:!0,value:e};{const r=b(e);if(r.value)return{type:r.type,valid:!0,value:r.value}}}else{const r=e;if(m(r))return{type:"ColorPair",valid:!0,value:r}}return{type:null,valid:!1,value:""}}function m(e){return!("object"!=typeof e||!e||"string"!=typeof e.backgroundColor||!("string"==typeof e.foregroundColor||e.foregroundColor&&"string"==typeof e.foregroundColor.primary&&"string"==typeof e.foregroundColor.secondary&&"string"==typeof e.foregroundColor.neutral))}function k(e){const r=v(e);switch(r.type){case null:return!1;case"string":case"ColorPair":return r.valid}}const w=(e,r,o)=>{a(e,"_color",k,new Set(["rgb in hex","ColorPair"]),r,o)},M=e=>{var r;let a;const o=v(e);switch(o.type){case"string":a=p(o.value);break;case"ColorPair":{const e=o.value;let t="";"string"==typeof e.foregroundColor?t=e.foregroundColor:(null===(r=e.foregroundColor)||void 0===r?void 0:r.primary)&&(t=e.foregroundColor.primary),t&&"string"==typeof t||(t="#fff"),a=p({background:e.backgroundColor,foreground:t});break}case null:console.warn(`_color was empty or invalid (${JSON.stringify(e)})`),a=p({background:"#000",foreground:"#000"})}return a.contrast<7&&t(`[KolBadge] The contrast of ${a.contrast} (≥7, AAA) is to low, between the color pair ${a.background} and ${a.foreground}.`),{backgroundColor:a.background,foregroundColor:a.foreground}};export{s as c,M as h,w as v};
4
+ import{r as e,b as r,w as a}from"./prop.validators-3d53ddab.js";import{a as t}from"./a11y.tipps-06cd7c77.js";var n={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]},l=i,o={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function i(e){var r,a,t=[],l=1;if("string"==typeof e)if(e=e.toLowerCase(),n[e])t=n[e].slice(),a="rgb";else if("transparent"===e)l=0,a="rgb",t=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var i=e.slice(1);l=1,(g=i.length)<=4?(t=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],4===g&&(l=parseInt(i[3]+i[3],16)/255)):(t=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],8===g&&(l=parseInt(i[6]+i[7],16)/255)),t[0]||(t[0]=0),t[1]||(t[1]=0),t[2]||(t[2]=0),a="rgb"}else if(r=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var s=r[1],u="rgb"===s;a=i=s.replace(/a$/,"");var g="cmyk"===i?4:"gray"===i?1:3;t=r[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(e,r){if(/%$/.test(e))return r===g?parseFloat(e)/100:"rgb"===i?255*parseFloat(e)/100:parseFloat(e);if("h"===i[r]){if(/deg$/.test(e))return parseFloat(e);if(void 0!==o[e])return o[e]}return parseFloat(e)})),s===i&&t.push(1),l=u||void 0===t[g]?1:t[g],t=t.slice(0,g)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(t=e.match(/([0-9]+)/g).map((function(e){return parseFloat(e)})),a=e.match(/([a-z])/gi).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(t=[e[0],e[1],e[2]],a="rgb",l=4===e.length?e[3]:1):e instanceof Object&&(null!=e.r||null!=e.red||null!=e.R?(a="rgb",t=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(a="hsl",t=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),l=e.a||e.alpha||e.opacity||1,null!=e.opacity&&(l/=100)):(a="rgb",t=[e>>>16,(65280&e)>>>8,255&e]);return{space:a,values:t,alpha:l}}var s=function(e){var r;Array.isArray(e)&&e.raw&&(e=String.raw.apply(null,arguments));var a=l(e);if(!a.space)return[];var o=[0,0,0],t="h"===a.space[0]?[360,100,100]:[255,255,255];return(r=Array(3))[0]=Math.min(Math.max(a.values[0],o[0]),t[0]),r[1]=Math.min(Math.max(a.values[1],o[1]),t[1]),r[2]=Math.min(Math.max(a.values[2],o[2]),t[2]),"h"===a.space[0]&&(r=u(r)),r.push(Math.min(Math.max(a.alpha,0),1)),r};function u(e){var r,a,o,t,n,l=e[0]/360,i=e[1]/100,s=e[2]/100,u=0;if(0===i)return[n=255*s,n,n];for(r=2*s-(a=s<.5?s*(1+i):s+i-s*i),t=[0,0,0];u<3;)(o=l+1/3*-(u-1))<0?o++:o>1&&o--,n=6*o<1?r+6*(a-r)*o:2*o<1?a:3*o<2?r+(a-r)*(2/3-o)*6:r,t[u++]=255*n;return t}const g=(e,r,a)=>(299*e+587*r+114*a)/1e3>=128?-1:1,d=(a,o,t,n=1)=>{const l=[Math.max(Math.min(Math.round(o[0]+n*Math.max(1,o[0]/100)),255),0),Math.max(Math.min(Math.round(o[1]+n*Math.max(1,o[1]/100)),255),0),Math.max(Math.min(Math.round(o[2]+n*Math.max(1,o[2]/100)),255),0)],i=r(e.hex(`rgba(${a.join(",")},1)`),e.hex(`rgba(${l.join(",")},1)`)),s=l[0]+l[1]+l[2];return 0===s||765===s||i>t?{background:a,foreground:l,contrast:i}:d(a,l,t,n)},f=new Map,c=(e,r,a,o=1)=>{if(f.has(e))return f.get(e);const t=d(e,r,a,o);return f.set(e,t),t},p=(r,a=7)=>{let o=[0,0,0,1],t=[255,255,255,1];"string"==typeof r?(o=s(r),t=o):"object"==typeof r&&null!==r&&"string"==typeof r.background&&"string"==typeof r.foreground&&(o=s(r.background),t="string"==typeof r.foreground?s(r.foreground):o);const n=g(o[0],o[1],o[2]),l=c([o[0],o[1],o[2]],[t[0],t[1],t[2]],a,n);return t=[...l.foreground,1],{background:e.hex(`rgba(${o.join(",")})`),foreground:e.hex(`rgba(${t.join(",")})`),contrast:l.contrast}},h=/^#((\d|[a-f]){8}|(\d|[a-f]){6}|(\d|[a-f]){3,4})$/i;function y(e){return h.test(e)}function b(e){if(e.startsWith("{"))try{const r=JSON.parse(e);if(m(r))return{type:"ColorPair",value:r}}catch(e){return{type:null,value:null}}return{type:null,value:null}}function v(e){if(e)if("string"==typeof e){if(y(e))return{type:"string",valid:!0,value:e};{const r=b(e);if(r.value)return{type:r.type,valid:!0,value:r.value}}}else{const r=e;if(m(r))return{type:"ColorPair",valid:!0,value:r}}return{type:null,valid:!1,value:""}}function m(e){return!("object"!=typeof e||!e||"string"!=typeof e.backgroundColor||!("string"==typeof e.foregroundColor||e.foregroundColor&&"string"==typeof e.foregroundColor.primary&&"string"==typeof e.foregroundColor.secondary&&"string"==typeof e.foregroundColor.neutral))}function k(e){const r=v(e);switch(r.type){case null:return!1;case"string":case"ColorPair":return r.valid}}const w=(e,r,o)=>{a(e,"_color",k,new Set(["rgb in hex","ColorPair"]),r,o)},M=e=>{var r;let a;const o=v(e);switch(o.type){case"string":a=p(o.value);break;case"ColorPair":{const e=o.value;let t="";"string"==typeof e.foregroundColor?t=e.foregroundColor:(null===(r=e.foregroundColor)||void 0===r?void 0:r.primary)&&(t=e.foregroundColor.primary),t&&"string"==typeof t||(t="#fff"),a=p({background:e.backgroundColor,foreground:t});break}case null:console.warn(`_color was empty or invalid (${JSON.stringify(e)})`),a=p({background:"#000",foreground:"#000"})}return a.contrast<7&&t(`[KolBadge] The contrast of ${a.contrast} (≥7, AAA) is to low, between the color pair ${a.background} and ${a.foreground}.`),{backgroundColor:a.background,foregroundColor:a.foreground}};export{s as c,M as h,w as v};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{a as t,w as s,e,d as i}from"./prop.validators-6cc65427.js";import{v as a}from"./controller-873fca4f.js";import{a as h}from"./a11y.tipps-ba8ae150.js";import{I as o}from"./controller-icon-92fc87b9.js";const r=(e,o)=>{t(e,"_hasCounter",o)};class n extends o{constructor(t,e,o){super(t,e,o),this.component=t}validateAutoComplete(t){s(this.component,"_autoComplete",(t=>"string"==typeof t&&("on"===t||"off"===t)),new Set(["on | off"]),t)}validateHasCounter(t){r(this.component,t)}validateHideError(t){a(this.component,t,{hooks:{afterPatch:()=>{this.component.state._hideError&&h("Property hide-error for inputs: Only use when the error message is shown outside of the input component.")}}})}validateMaxLength(t){e(this.component,"_maxLength",t,{min:0})}validatePattern(t){i(this.component,"_pattern",t)}validatePlaceholder(t){i(this.component,"_placeholder",t)}validateReadOnly(e){t(this.component,"_readOnly",e)}validateRequired(e){t(this.component,"_required",e)}validateValue(t){i(this.component,"_value",t),this.setFormAssociatedValue(this.component.state._value)}componentWillLoad(){super.componentWillLoad(),this.validateAutoComplete(this.component._autoComplete),this.validateHasCounter(this.component._hasCounter),this.validateHideError(this.component._hideError),this.validateMaxLength(this.component._maxLength),this.validatePattern(this.component._pattern),this.validatePlaceholder(this.component._placeholder),this.validateReadOnly(this.component._readOnly),this.validateRequired(this.component._required),this.validateValue(this.component._value)}onBlur(t){this.component.state=Object.assign(Object.assign({},this.component.state),{_placeholder:this.placeholderCache}),this.placeholderCache=void 0,super.onBlur(t)}onFocus(t){this.placeholderCache=this.component.state._placeholder,this.component.state=Object.assign(Object.assign({},this.component.state),{_placeholder:void 0}),super.onFocus(t)}}export{n as I,r as v};
4
+ import{a as t,w as s,e,d as i}from"./prop.validators-3d53ddab.js";import{v as a}from"./controller-6a175634.js";import{a as h}from"./a11y.tipps-06cd7c77.js";import{I as o}from"./controller-icon-ffe0af69.js";const r=(e,o)=>{t(e,"_hasCounter",o)};class n extends o{constructor(t,e,o){super(t,e,o),this.component=t}validateAutoComplete(t){s(this.component,"_autoComplete",(t=>"string"==typeof t&&("on"===t||"off"===t)),new Set(["on | off"]),t)}validateHasCounter(t){r(this.component,t)}validateHideError(t){a(this.component,t,{hooks:{afterPatch:()=>{this.component.state._hideError&&h("Property hide-error for inputs: Only use when the error message is shown outside of the input component.")}}})}validateMaxLength(t){e(this.component,"_maxLength",t,{min:0})}validatePattern(t){i(this.component,"_pattern",t)}validatePlaceholder(t){i(this.component,"_placeholder",t)}validateReadOnly(e){t(this.component,"_readOnly",e)}validateRequired(e){t(this.component,"_required",e)}validateValue(t){i(this.component,"_value",t),this.setFormAssociatedValue(this.component.state._value)}componentWillLoad(){super.componentWillLoad(),this.validateAutoComplete(this.component._autoComplete),this.validateHasCounter(this.component._hasCounter),this.validateHideError(this.component._hideError),this.validateMaxLength(this.component._maxLength),this.validatePattern(this.component._pattern),this.validatePlaceholder(this.component._placeholder),this.validateReadOnly(this.component._readOnly),this.validateRequired(this.component._required),this.validateValue(this.component._value)}onBlur(t){this.component.state=Object.assign(Object.assign({},this.component.state),{_placeholder:this.placeholderCache}),this.placeholderCache=void 0,super.onBlur(t)}onFocus(t){this.placeholderCache=this.component.state._placeholder,this.component.state=Object.assign(Object.assign({},this.component.state),{_placeholder:void 0}),super.onFocus(t)}}export{n as I,r as v};
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{a as t,d as i,s,o as e,p as h}from"./prop.validators-3d53ddab.js";import{v as a}from"./hide-label-3381f0cc.js";import{a as o}from"./label-5c173d60.js";import{e as r,a as n,d}from"./a11y.tipps-06cd7c77.js";import{s as l,t as c}from"./events-2bb1065b.js";import{v as f}from"./tab-index-d2d0d9db.js";import{A as u}from"./associated.controller-1124284d.js";const v=t=>{const o="string"==typeof t._error&&t._error.length>0&&!0===t._touched,e="string"==typeof t._hint&&t._hint.length>0,n=[];return!0===o&&n.push(`${t._id}-error`),!0===e&&n.push(`${t._id}-hint`),{hasError:o,hasHint:e,ariaDescribedBy:n}},p=(o,e,n)=>{t(o,"_hideError",e,n)},b=(o,e)=>{t(o,"_adjustHeight",e)},m=(o,e)=>{t(o,"_touched",e)};class y extends u{constructor(t,o,e){super(t,o,e),this.component=t}validateAlert(o){t(this.component,"_alert",o)}validateTouched(t){m(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateAlert(this.component._alert),this.validateTouched(this.component._touched)}}class g extends y{constructor(t,o,e){super(t,o,e),this.valueChangeListeners=[],this.onFacade={onBlur:this.onBlur.bind(this),onChange:this.onChange.bind(this),onClick:this.onClick.bind(this),onFocus:this.onFocus.bind(this)},this.component=t}validateAccessKey(t){i(this.component,"_accessKey",t)}validateAdjustHeight(t){b(this.component,t)}validateDisabled(o){t(this.component,"_disabled",o),!0===o&&r()}validateError(t){i(this.component,"_error",t)}validateHideLabel(t){a(this.component,t,{hooks:{afterPatch:()=>{this.component.state._hideLabel&&n("Property hide-label for inputs: Only use for exceptions like search inputs that are clearly identifiable by their context.")}}})}validateHint(t){i(this.component,"_hint",t)}validateId(t){i(this.component,"_id",t,{hooks:{afterPatch:()=>{this.setAttribute("id",this.formAssociated,this.component.state._id)}},minLength:1}),""!==t&&void 0!==t||d("Eine eindeutige ID an den Eingabefeldern ist nicht zwingend erforderlich, könnte aber für die E2E-Tests relevant sein.")}validateLabel(t){o(this.component,t)}validateOn(t){"object"==typeof t&&s(this.component,"_on",t)}validateSmartButton(t){e(t,(()=>{try{t=h(t)}catch(t){}s(this.component,"_smartButton",t)}))}validateTabIndex(t){f(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateAccessKey(this.component._accessKey),this.validateAdjustHeight(this.component._adjustHeight),this.validateError(this.component._error),this.validateDisabled(this.component._disabled),this.validateHideLabel(this.component._hideLabel),this.validateHint(this.component._hint),this.validateId(this.component._id),this.validateLabel(this.component._label),this.validateSmartButton(this.component._smartButton),this.validateOn(this.component._on),this.validateTabIndex(this.component._tabIndex)}onBlur(t){var o;this.component._alert=!0,this.component._touched=!0,l(t),c("blur",this.host),"function"==typeof(null===(o=this.component._on)||void 0===o?void 0:o.onBlur)&&this.component._on.onBlur(t)}onChange(t){var o;const e=t.target.value;l(t),c("change",this.host,e),this.setFormAssociatedValue(e),"function"==typeof(null===(o=this.component._on)||void 0===o?void 0:o.onChange)&&this.component._on.onChange(t,e),this.valueChangeListeners.forEach((t=>t(e)))}onClick(t){var o;l(t),c("click",this.host),"function"==typeof(null===(o=this.component._on)||void 0===o?void 0:o.onClick)&&this.component._on.onClick(t)}onFocus(t){var o;this.component._alert=!0,l(t),c("focus",this.host),"function"==typeof(null===(o=this.component._on)||void 0===o?void 0:o.onFocus)&&this.component._on.onFocus(t)}setValue(t,o){var e;this.setFormAssociatedValue(o),"function"==typeof(null===(e=this.component._on)||void 0===e?void 0:e.onChange)&&this.component._on.onChange(t,o)}addValueChangeListener(t){this.valueChangeListeners.push(t)}}export{g as I,v as g,p as v};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{d as e}from"./a11y.tipps-ba8ae150.js";import{d as t}from"./dev.utils-a31cf0e4.js";import{f as o,K as n}from"./prop.validators-6cc65427.js";const i=o=>{for(t()&&(e("↓ Search form element start."),console.log(o));o instanceof HTMLElement&&"FORM"!==o.tagName&&"KOL-FORM"!==o.tagName;){try{o=o.parentElement instanceof HTMLElement?o.parentElement:o.parentNode instanceof ShadowRoot?o.parentNode.host:null}catch(e){}t()&&(console.log(o),e("↑ Search form element finished."))}return o},s=(e={})=>{var t,a;const s=i(e.form);if(s instanceof HTMLElement){const e=new Event("reset",{bubbles:!0,cancelable:!0});if("FORM"===s.tagName)o(e,s),s.dispatchEvent(e);else if("KOL-FORM"===s.tagName){o(e,n.querySelector("form",s));const i=s;"function"==typeof(null===(t=i._on)||void 0===t?void 0:t.onReset)&&(null===(a=i._on)||void 0===a||a.onReset(e))}}},f=(e={})=>{var t,a;const s=i(e.form);if(s instanceof HTMLElement){const e=new SubmitEvent("submit",{bubbles:!0,cancelable:!0,submitter:s});if("FORM"===s.tagName)o(e,s),s.dispatchEvent(e),s.submit();else if("KOL-FORM"===s.tagName){o(e,n.querySelector("form",s));const i=s;"function"==typeof(null===(t=i._on)||void 0===t?void 0:t.onSubmit)&&(null===(a=i._on)||void 0===a||a.onSubmit(e))}}};export{s as a,f as p};
4
+ import{d as e}from"./a11y.tipps-06cd7c77.js";import{d as t}from"./dev.utils-075f4e7b.js";import{f as o,K as n}from"./prop.validators-3d53ddab.js";const i=o=>{for(t()&&(e("↓ Search form element start."),console.log(o));o instanceof HTMLElement&&"FORM"!==o.tagName&&"KOL-FORM"!==o.tagName;){try{o=o.parentElement instanceof HTMLElement?o.parentElement:o.parentNode instanceof ShadowRoot?o.parentNode.host:null}catch(e){}t()&&(console.log(o),e("↑ Search form element finished."))}return o},s=(e={})=>{var t,a;const s=i(e.form);if(s instanceof HTMLElement){const e=new Event("reset",{bubbles:!0,cancelable:!0});if("FORM"===s.tagName)o(e,s),s.dispatchEvent(e);else if("KOL-FORM"===s.tagName){o(e,n.querySelector("form",s));const i=s;"function"==typeof(null===(t=i._on)||void 0===t?void 0:t.onReset)&&(null===(a=i._on)||void 0===a||a.onReset(e))}}},f=(e={})=>{var t,a;const s=i(e.form);if(s instanceof HTMLElement){const e=new SubmitEvent("submit",{bubbles:!0,cancelable:!0,submitter:s});if("FORM"===s.tagName)o(e,s),s.dispatchEvent(e),s.submit();else if("KOL-FORM"===s.tagName){o(e,n.querySelector("form",s));const i=s;"function"==typeof(null===(t=i._on)||void 0===t?void 0:t.onSubmit)&&(null===(a=i._on)||void 0===a||a.onSubmit(e))}}};export{s as a,f as p};
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{I as t,v as e}from"./controller-6a175634.js";import{c as s,a as i,w as o,m as r,s as a}from"./prop.validators-3d53ddab.js";import{h as n,c as h}from"./label-5c173d60.js";import{a as l}from"./a11y.tipps-06cd7c77.js";import{S as f}from"./reuse-b3566e4c.js";const c=["horizontal","vertical"],u=e=>{if("object"==typeof e&&null!==e){if("string"==typeof e.label&&e.label.length>0)return e.disabled=!0===e.disabled,e.label=`${e.label}`.trim(),!1===n(e.label,3)&&!1===h(e.label)&&l(`Ein abweichendes Aria-Label (${e.label}) ist nicht barrierefrei. Ein abweichendes Aria-Label sollte aus mindestens drei lesbaren Zeichen bestehen.`),!Array.isArray(e.options)||void 0===e.options.find((e=>!1===u(e)));if("number"==typeof e.label)return!0}return!1},p=(e,t,o={})=>{s(e,"_options",(e=>"object"==typeof e&&null!==e&&"string"==typeof e.label&&e.label.length>0),t,void 0,o)},d=(e,t,o={})=>{s(e,"_options",u,t,void 0,o)},m=(e,t)=>{i(e,"_required",t)},b=(e,t,o="")=>{t.forEach(((t,i)=>{const s=`${o}-${i}`;"object"==typeof t&&null!==t&&"string"==typeof t.label&&t.label.length>0&&(Array.isArray(t.options)?b(e,t.options,s):e.set(s,t))}))};class y extends t{constructor(e,t,o){super(e,t,o),this.component=e}validateHideError(t){e(this.component,t,{hooks:{afterPatch:()=>{this.component.state._hideError&&l("Property hide-error for inputs: Only use when the error message is shown outside of the input component.")}}})}validateRequired(e){m(this.component,e)}componentWillLoad(){super.componentWillLoad(),this.validateRequired(this.component._required)}}class v extends y{constructor(e,t,o){super(e,t,o),this.keyOptionMap=new Map,this.getOptionByKey=e=>this.keyOptionMap.get(e),this.isValueInOptions=(e,t)=>void 0!==t.find((t=>t.value===e)),this.beforePatchOptions=(e,t)=>{const o=t.has("_options")?t.get("_options"):this.component.state._options;if(Array.isArray(o)&&o.length>0){this.keyOptionMap.clear(),b(this.keyOptionMap,o);const e=t.has("_value")?t.get("_value"):this.component.state._value;if(!1===this.isValueInOptions(e,o)){const e=o[0].value;t.set("_value",e),this.onStateChange()}}},this.component=e}validateOrientation(e){o(this.component,"_orientation",(e=>"string"==typeof e&&c.includes(e)),new Set([`Orientation {${c.join(", ")}`]),e,{defaultValue:"vertical"})}validateOptions(e){p(this.component,e,{hooks:{beforePatch:this.beforePatchOptions}})}validateValue(e){e=r(e),e=Array.isArray(e)?e[0]:e,a(this.component,"_value",e,{beforePatch:this.beforePatchOptions}),this.setFormAssociatedValue(this.component._value)}componentWillLoad(e){super.componentWillLoad(),this.onStateChange=()=>{if("function"==typeof e){const t=setTimeout((()=>{clearTimeout(t),e(f)}))}},this.validateOrientation(this.component._orientation),this.validateOptions(this.component._options),this.validateHideError(this.component._hideError),this.validateValue(this.component._value)}}export{y as I,v as a,b as f,d as v};
@@ -0,0 +1 @@
1
+ {"version":3,"names":["orientationOptions","validateInputSelectOptions","option","label","length","disabled","trim","hasEnoughReadableChars","containsOnlyNumbers","a11yHint","Array","isArray","options","find","item","undefined","validateOptions","component","value","watchJsonArrayString","validateOptionsWithOptgroup","validateRequired","watchBoolean","fillKeyOptionMap","keyOptionMap","preKey","forEach","index","key","set","InputCheckboxRadioController","InputController","constructor","name","host","super","this","validateHideError","hooks","afterPatch","state","_hideError","componentWillLoad","_required","InputRadioController","Map","getOptionByKey","get","isValueInOptions","beforePatchOptions","_value","nextState","has","_options","clear","newValue","onStateChange","validateOrientation","watchValidator","includes","Set","join","defaultValue","beforePatch","validateValue","mapString2Unknown","setState","setFormAssociatedValue","onChange","timeout","setTimeout","clearTimeout","STATE_CHANGE_EVENT","_orientation"],"sources":["src/types/orientation.ts","src/utils/validators/options.ts","src/types/props/options.ts","src/types/props/required.ts","src/components/input-radio/controller.ts"],"sourcesContent":["export const orientationOptions = ['horizontal', 'vertical'] as const;\nexport type Orientation = (typeof orientationOptions)[number];\n","import { Optgroup, SelectOption } from '../../types/input/types';\nimport { containsOnlyNumbers, hasEnoughReadableChars } from '../../types/props/label';\nimport { a11yHint } from '../a11y.tipps';\n\nexport const validateInputSelectOptions = <T>(option: SelectOption<T>): boolean => {\n\tif (typeof option === 'object' && option !== null) {\n\t\tif (typeof option.label === 'string' && option.label.length > 0) {\n\t\t\toption.disabled = option.disabled === true;\n\t\t\toption.label = `${option.label}`.trim();\n\t\t\tif (hasEnoughReadableChars(option.label, 3) === false && containsOnlyNumbers(option.label) === false) {\n\t\t\t\ta11yHint(\n\t\t\t\t\t`Ein abweichendes Aria-Label (${option.label}) ist nicht barrierefrei. Ein abweichendes Aria-Label sollte aus mindestens drei lesbaren Zeichen bestehen.`\n\t\t\t\t);\n\t\t\t}\n\t\t\tif (Array.isArray((option as Optgroup<T>).options)) {\n\t\t\t\treturn (\n\t\t\t\t\t(option as Optgroup<T>).options.find((item) => {\n\t\t\t\t\t\treturn validateInputSelectOptions(item) === false;\n\t\t\t\t\t}) === undefined\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn true;\n\t\t} else if (typeof option.label === 'number') {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n};\n","import { Generic } from '@a11y-ui/core';\n\nimport { watchJsonArrayString, WatchOptions } from '../../utils/prop.validators';\nimport { validateInputSelectOptions } from '../../utils/validators/options';\nimport { Stringified } from '../common';\nimport { Optgroup, Option } from '../input/types';\nimport { W3CInputValue } from '../w3c';\n\n/* types */\n\nexport type OptionsPropType = Stringified<Option<W3CInputValue>[]>;\nexport type OptionsWithOptgroupPropType = Stringified<(Option<W3CInputValue> | Optgroup<W3CInputValue>)[]>;\n\n/**\n * Options the user can choose from.\n */\nexport type PropOptions = {\n\toptions: OptionsPropType;\n};\n\n/**\n * Options the user can choose from, also supporting Optgroup.\n */\nexport type PropOptionsWithOptgroup = {\n\toptions: OptionsWithOptgroupPropType;\n};\n\n/* validators */\n\nexport const validateOptions = (component: Generic.Element.Component, value: OptionsPropType | undefined, options: WatchOptions = {}): void => {\n\twatchJsonArrayString(\n\t\tcomponent,\n\t\t'_options',\n\t\t(item: Option<W3CInputValue>) => typeof item === 'object' && item !== null && typeof item.label === 'string' && item.label.length > 0,\n\t\tvalue,\n\t\tundefined,\n\t\toptions\n\t);\n};\n\nexport const validateOptionsWithOptgroup = (\n\tcomponent: Generic.Element.Component,\n\tvalue: OptionsWithOptgroupPropType | undefined,\n\toptions: WatchOptions = {}\n) => {\n\twatchJsonArrayString(component, '_options', validateInputSelectOptions, value, undefined, options);\n};\n","import { Generic } from '@a11y-ui/core';\n\nimport { watchBoolean } from '../../utils/prop.validators';\n\n/* types */\ntype RequiredPropType = boolean;\n\n/**\n * Makes the input element required.\n */\nexport type PropRequired = {\n\trequired: RequiredPropType;\n};\n\n/* validator */\nexport const validateRequired = (component: Generic.Element.Component, value?: RequiredPropType): void => {\n\twatchBoolean(component, '_required', value);\n};\n","import { Generic } from '@a11y-ui/core';\n\nimport { Stringified } from '../../types/common';\nimport { Optgroup, Option, SelectOption } from '../../types/input/types';\nimport { Orientation, orientationOptions } from '../../types/orientation';\nimport { HideErrorPropType, validateHideError } from '../../types/props/hide-error';\nimport { PropLabelWithExpertSlot } from '../../types/props/label';\nimport { OptionsPropType, validateOptions } from '../../types/props/options';\nimport { validateRequired } from '../../types/props/required';\nimport { StencilUnknown } from '../../types/unknown';\nimport { W3CInputValue } from '../../types/w3c';\nimport { a11yHint } from '../../utils/a11y.tipps';\nimport { mapString2Unknown, setState, watchValidator } from '../../utils/prop.validators';\nimport { STATE_CHANGE_EVENT } from '../../utils/validator';\nimport { InputController } from '../@deprecated/input/controller';\nimport { Props, Watches } from './types';\n\nexport const fillKeyOptionMap = <T>(keyOptionMap: Map<string, Option<T>>, options: SelectOption<T>[], preKey = ''): void => {\n\toptions.forEach((option, index) => {\n\t\tconst key = `${preKey}-${index}`;\n\t\tif (typeof option === 'object' && option !== null && typeof option.label === 'string' && option.label.length > 0) {\n\t\t\tif (Array.isArray((option as Optgroup<T>).options)) {\n\t\t\t\tfillKeyOptionMap(keyOptionMap, (option as Optgroup<T>).options, key);\n\t\t\t} else {\n\t\t\t\tkeyOptionMap.set(key, option as Option<T>);\n\t\t\t}\n\t\t}\n\t});\n};\n\ntype RequiredProps = NonNullable<unknown>;\ntype OptionalProps = {\n\trequired: boolean;\n} & PropLabelWithExpertSlot;\ntype InputCheckboxRadioProps = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype InputCheckboxRadioWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\nexport class InputCheckboxRadioController extends InputController implements InputCheckboxRadioWatches {\n\tprotected readonly component: Generic.Element.Component & InputCheckboxRadioProps;\n\n\tpublic constructor(component: Generic.Element.Component & InputCheckboxRadioProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateHideError(value?: HideErrorPropType): void {\n\t\tvalidateHideError(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: () => {\n\t\t\t\t\tif (this.component.state._hideError) {\n\t\t\t\t\t\ta11yHint('Property hide-error for inputs: Only use when the error message is shown outside of the input component.');\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic validateRequired(value?: boolean): void {\n\t\tvalidateRequired(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateRequired(this.component._required);\n\t}\n}\n\nexport class InputRadioController extends InputCheckboxRadioController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props;\n\tprivate onStateChange!: () => void;\n\tprivate readonly keyOptionMap = new Map<string, Option<W3CInputValue>>();\n\n\tpublic constructor(component: Generic.Element.Component & Props, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic readonly getOptionByKey = (key: string): Option<W3CInputValue> | undefined => this.keyOptionMap.get(key);\n\n\tprivate readonly isValueInOptions = (value: unknown, options: Option<W3CInputValue>[]): boolean => {\n\t\treturn options.find((option) => option.value === value) !== undefined;\n\t};\n\n\tprotected readonly beforePatchOptions = (_value: unknown, nextState: Map<string, unknown>): void => {\n\t\tconst options = nextState.has('_options') ? nextState.get('_options') : this.component.state._options;\n\t\tif (Array.isArray(options) && options.length > 0) {\n\t\t\tthis.keyOptionMap.clear();\n\t\t\tfillKeyOptionMap(this.keyOptionMap, options as SelectOption<W3CInputValue>[]);\n\t\t\tconst value = nextState.has('_value') ? nextState.get('_value') : this.component.state._value;\n\t\t\tif (this.isValueInOptions(value, options as Option<W3CInputValue>[]) === false) {\n\t\t\t\tconst newValue = (\n\t\t\t\t\toptions[0] as {\n\t\t\t\t\t\tvalue: string;\n\t\t\t\t\t}\n\t\t\t\t).value;\n\t\t\t\tnextState.set('_value', newValue);\n\t\t\t\tthis.onStateChange();\n\t\t\t}\n\t\t}\n\t};\n\n\tpublic validateOrientation(value?: Orientation): void {\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_orientation',\n\t\t\t(value): boolean => typeof value === 'string' && orientationOptions.includes(value),\n\t\t\tnew Set([`Orientation {${orientationOptions.join(', ')}`]),\n\t\t\tvalue,\n\t\t\t{\n\t\t\t\tdefaultValue: 'vertical',\n\t\t\t}\n\t\t);\n\t}\n\n\tpublic validateOptions(value?: OptionsPropType): void {\n\t\tvalidateOptions(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tbeforePatch: this.beforePatchOptions,\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic validateValue(value?: Stringified<StencilUnknown>): void {\n\t\tvalue = mapString2Unknown(value);\n\t\tvalue = Array.isArray(value) ? (value[0] as StencilUnknown) : value;\n\t\tsetState(this.component, '_value', value, {\n\t\t\tbeforePatch: this.beforePatchOptions,\n\t\t});\n\t\tthis.setFormAssociatedValue(this.component._value as string);\n\t}\n\n\tpublic componentWillLoad(onChange?: (event: Event) => void): void {\n\t\tsuper.componentWillLoad();\n\n\t\tthis.onStateChange = () => {\n\t\t\tif (typeof onChange === 'function') {\n\t\t\t\tconst timeout = setTimeout(() => {\n\t\t\t\t\tclearTimeout(timeout);\n\t\t\t\t\tonChange(STATE_CHANGE_EVENT);\n\t\t\t\t});\n\t\t\t}\n\t\t};\n\n\t\tthis.validateOrientation(this.component._orientation);\n\t\tthis.validateOptions(this.component._options);\n\t\tthis.validateHideError(this.component._hideError);\n\t\tthis.validateValue(this.component._value);\n\t}\n}\n"],"mappings":";;;sQAAO,MAAMA,EAAqB,CAAC,aAAc,YCI1C,MAAMC,EAAiCC,IAC7C,UAAWA,IAAW,UAAYA,IAAW,KAAM,CAClD,UAAWA,EAAOC,QAAU,UAAYD,EAAOC,MAAMC,OAAS,EAAG,CAChEF,EAAOG,SAAWH,EAAOG,WAAa,KACtCH,EAAOC,MAAQ,GAAGD,EAAOC,QAAQG,OACjC,GAAIC,EAAuBL,EAAOC,MAAO,KAAO,OAASK,EAAoBN,EAAOC,SAAW,MAAO,CACrGM,EACC,gCAAgCP,EAAOC,mH,CAGzC,GAAIO,MAAMC,QAAST,EAAuBU,SAAU,CACnD,OACEV,EAAuBU,QAAQC,MAAMC,GAC9Bb,EAA2Ba,KAAU,UACtCC,S,CAGT,OAAO,I,MACD,UAAWb,EAAOC,QAAU,SAAU,CAC5C,OAAO,I,EAGT,OAAO,KAAK,ECGN,MAAMa,EAAkB,CAACC,EAAsCC,EAAoCN,EAAwB,MACjIO,EACCF,EACA,YACCH,UAAuCA,IAAS,UAAYA,IAAS,aAAeA,EAAKX,QAAU,UAAYW,EAAKX,MAAMC,OAAS,GACpIc,EACAH,UACAH,EACA,E,MAGWQ,EAA8B,CAC1CH,EACAC,EACAN,EAAwB,MAExBO,EAAqBF,EAAW,WAAYhB,EAA4BiB,EAAOH,UAAWH,EAAQ,EC9B5F,MAAMS,EAAmB,CAACJ,EAAsCC,KACtEI,EAAaL,EAAW,YAAaC,EAAM,E,MCC/BK,EAAmB,CAAIC,EAAsCZ,EAA4Ba,EAAS,MAC9Gb,EAAQc,SAAQ,CAACxB,EAAQyB,KACxB,MAAMC,EAAM,GAAGH,KAAUE,IACzB,UAAWzB,IAAW,UAAYA,IAAW,aAAeA,EAAOC,QAAU,UAAYD,EAAOC,MAAMC,OAAS,EAAG,CACjH,GAAIM,MAAMC,QAAST,EAAuBU,SAAU,CACnDW,EAAiBC,EAAetB,EAAuBU,QAASgB,E,KAC1D,CACNJ,EAAaK,IAAID,EAAK1B,E,KAGvB,E,MAUU4B,UAAqCC,EAGjD,WAAAC,CAAmBf,EAAgEgB,EAAcC,GAChGC,MAAMlB,EAAWgB,EAAMC,GACvBE,KAAKnB,UAAYA,C,CAGX,iBAAAoB,CAAkBnB,GACxBmB,EAAkBD,KAAKnB,UAAWC,EAAO,CACxCoB,MAAO,CACNC,WAAY,KACX,GAAIH,KAAKnB,UAAUuB,MAAMC,WAAY,CACpChC,EAAS,2G,MAOP,gBAAAY,CAAiBH,GACvBG,EAAiBe,KAAKnB,UAAWC,E,CAG3B,iBAAAwB,GACNP,MAAMO,oBACNN,KAAKf,iBAAiBe,KAAKnB,UAAU0B,U,QAI1BC,UAA6Bd,EAKzC,WAAAE,CAAmBf,EAA8CgB,EAAcC,GAC9EC,MAAMlB,EAAWgB,EAAMC,GAHPE,KAAAZ,aAAe,IAAIqB,IAOpBT,KAAAU,eAAkBlB,GAAmDQ,KAAKZ,aAAauB,IAAInB,GAE1FQ,KAAAY,iBAAmB,CAAC9B,EAAgBN,IAC7CA,EAAQC,MAAMX,GAAWA,EAAOgB,QAAUA,MAAWH,UAG1CqB,KAAAa,mBAAqB,CAACC,EAAiBC,KACzD,MAAMvC,EAAUuC,EAAUC,IAAI,YAAcD,EAAUJ,IAAI,YAAcX,KAAKnB,UAAUuB,MAAMa,SAC7F,GAAI3C,MAAMC,QAAQC,IAAYA,EAAQR,OAAS,EAAG,CACjDgC,KAAKZ,aAAa8B,QAClB/B,EAAiBa,KAAKZ,aAAcZ,GACpC,MAAMM,EAAQiC,EAAUC,IAAI,UAAYD,EAAUJ,IAAI,UAAYX,KAAKnB,UAAUuB,MAAMU,OACvF,GAAId,KAAKY,iBAAiB9B,EAAON,KAAwC,MAAO,CAC/E,MAAM2C,EACL3C,EAAQ,GAGPM,MACFiC,EAAUtB,IAAI,SAAU0B,GACxBnB,KAAKoB,e,IAtBPpB,KAAKnB,UAAYA,C,CA2BX,mBAAAwC,CAAoBvC,GAC1BwC,EACCtB,KAAKnB,UACL,gBACCC,UAA0BA,IAAU,UAAYlB,EAAmB2D,SAASzC,IAC7E,IAAI0C,IAAI,CAAC,gBAAgB5D,EAAmB6D,KAAK,UACjD3C,EACA,CACC4C,aAAc,Y,CAKV,eAAA9C,CAAgBE,GACtBF,EAAgBoB,KAAKnB,UAAWC,EAAO,CACtCoB,MAAO,CACNyB,YAAa3B,KAAKa,qB,CAKd,aAAAe,CAAc9C,GACpBA,EAAQ+C,EAAkB/C,GAC1BA,EAAQR,MAAMC,QAAQO,GAAUA,EAAM,GAAwBA,EAC9DgD,EAAS9B,KAAKnB,UAAW,SAAUC,EAAO,CACzC6C,YAAa3B,KAAKa,qBAEnBb,KAAK+B,uBAAuB/B,KAAKnB,UAAUiC,O,CAGrC,iBAAAR,CAAkB0B,GACxBjC,MAAMO,oBAENN,KAAKoB,cAAgB,KACpB,UAAWY,IAAa,WAAY,CACnC,MAAMC,EAAUC,YAAW,KAC1BC,aAAaF,GACbD,EAASI,EAAmB,G,GAK/BpC,KAAKqB,oBAAoBrB,KAAKnB,UAAUwD,cACxCrC,KAAKpB,gBAAgBoB,KAAKnB,UAAUoC,UACpCjB,KAAKC,kBAAkBD,KAAKnB,UAAUwB,YACtCL,KAAK4B,cAAc5B,KAAKnB,UAAUiC,O"}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{v as s,I as t}from"./controller-5a0cb886.js";import{v as o}from"./controller-6a175634.js";import{v as e}from"./suggestions-04f64716.js";import{a as r}from"./a11y.tipps-06cd7c77.js";import{w as i}from"./prop.validators-3d53ddab.js";const a=["text","search","url","tel"];class h extends t{constructor(t,o,e){super(t,o,e),this.component=t}validateHideError(t){o(this.component,t,{hooks:{afterPatch:()=>{this.component.state._hideError&&r("Property hide-error for inputs: Only use when the error message is shown outside of the input component.")}}})}validateSuggestions(t){e(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateSuggestions(this.component._suggestions)}}class n extends h{constructor(t,o,e){super(t,o,e),this.hasError=!1,this.component=t}validateType(t){i(this.component,"_type",(t=>"string"==typeof t&&a.includes(t)),new Set([`String {${a.join(", ")}`]),t)}validateHasCounter(t){s(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateHideError(this.component._hideError),this.validateType(this.component._type),this.validateHasCounter(this.component._hasCounter)}}export{h as I,n as a};
@@ -0,0 +1 @@
1
+ {"version":3,"names":["inputTextTypeOptions","InputTextEmailController","InputPasswordController","constructor","component","name","host","super","this","validateHideError","value","hooks","afterPatch","state","_hideError","a11yHint","validateSuggestions","componentWillLoad","_suggestions","InputTextController","hasError","validateType","watchValidator","includes","Set","join","validateHasCounter","_type","_hasCounter"],"sources":["src/types/input/control/text.ts","src/components/input-text/controller.ts"],"sourcesContent":["export const inputTextTypeOptions = ['text', 'search', 'url', 'tel'] as const;\nexport type InputTextType = (typeof inputTextTypeOptions)[number];\n","import { Generic } from '@a11y-ui/core';\nimport { InputTextType, inputTextTypeOptions } from '../../types/input/control/text';\nimport { validateHasCounter } from '../../types/props/has-counter';\nimport { HideErrorPropType, validateHideError } from '../../types/props/hide-error';\nimport { PropLabelWithExpertSlot } from '../../types/props/label';\nimport { PropSuggestions, SuggestionsPropType, validateSuggestions } from '../../types/props/suggestions';\nimport { a11yHint } from '../../utils/a11y.tipps';\nimport { watchValidator } from '../../utils/prop.validators';\nimport { InputPasswordController } from '../input-password/controller';\nimport { Props as InputTextProps, Watches as InputTextWatches } from './types';\n\ntype RequiredProps = NonNullable<unknown>;\ntype OptionalProps = {\n\tid: string;\n} & PropLabelWithExpertSlot &\n\tPropSuggestions;\ntype InputTextEmailProps = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype InputTextEmailWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\nexport class InputTextEmailController extends InputPasswordController implements InputTextEmailWatches {\n\tprotected readonly component: Generic.Element.Component & InputTextEmailProps;\n\n\tpublic constructor(component: Generic.Element.Component & InputTextEmailProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateHideError(value?: HideErrorPropType): void {\n\t\tvalidateHideError(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: () => {\n\t\t\t\t\tif (this.component.state._hideError) {\n\t\t\t\t\t\ta11yHint('Property hide-error for inputs: Only use when the error message is shown outside of the input component.');\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic validateSuggestions(value?: SuggestionsPropType): void {\n\t\tvalidateSuggestions(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateSuggestions(this.component._suggestions);\n\t}\n}\n\nexport class InputTextController extends InputTextEmailController implements InputTextWatches {\n\tprotected readonly component: Generic.Element.Component & InputTextProps;\n\n\tpublic hasError = false;\n\n\tpublic constructor(component: Generic.Element.Component & InputTextProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateType(value?: InputTextType): void {\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_type',\n\t\t\t(value): boolean => typeof value === 'string' && inputTextTypeOptions.includes(value),\n\t\t\tnew Set([`String {${inputTextTypeOptions.join(', ')}`]),\n\t\t\tvalue\n\t\t);\n\t}\n\n\tpublic validateHasCounter(value?: boolean): void {\n\t\tvalidateHasCounter(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateHideError(this.component._hideError);\n\t\tthis.validateType(this.component._type);\n\t\tthis.validateHasCounter(this.component._hasCounter);\n\t}\n}\n"],"mappings":";;;8OAAO,MAAMA,EAAuB,CAAC,OAAQ,SAAU,MAAO,O,MCmBjDC,UAAiCC,EAG7C,WAAAC,CAAmBC,EAA4DC,EAAcC,GAC5FC,MAAMH,EAAWC,EAAMC,GACvBE,KAAKJ,UAAYA,C,CAGX,iBAAAK,CAAkBC,GACxBD,EAAkBD,KAAKJ,UAAWM,EAAO,CACxCC,MAAO,CACNC,WAAY,KACX,GAAIJ,KAAKJ,UAAUS,MAAMC,WAAY,CACpCC,EAAS,2G,MAOP,mBAAAC,CAAoBN,GAC1BM,EAAoBR,KAAKJ,UAAWM,E,CAG9B,iBAAAO,GACNV,MAAMU,oBACNT,KAAKQ,oBAAoBR,KAAKJ,UAAUc,a,QAI7BC,UAA4BlB,EAKxC,WAAAE,CAAmBC,EAAuDC,EAAcC,GACvFC,MAAMH,EAAWC,EAAMC,GAHjBE,KAAAY,SAAW,MAIjBZ,KAAKJ,UAAYA,C,CAGX,YAAAiB,CAAaX,GACnBY,EACCd,KAAKJ,UACL,SACCM,UAA0BA,IAAU,UAAYV,EAAqBuB,SAASb,IAC/E,IAAIc,IAAI,CAAC,WAAWxB,EAAqByB,KAAK,UAC9Cf,E,CAIK,kBAAAgB,CAAmBhB,GACzBgB,EAAmBlB,KAAKJ,UAAWM,E,CAG7B,iBAAAO,GACNV,MAAMU,oBACNT,KAAKC,kBAAkBD,KAAKJ,UAAUU,YACtCN,KAAKa,aAAab,KAAKJ,UAAUuB,OACjCnB,KAAKkB,mBAAmBlB,KAAKJ,UAAUwB,Y"}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{i as o}from"./icons-062ba29d.js";import{o as s,p as t,w as i}from"./prop.validators-3d53ddab.js";import{i as r}from"./reuse-b3566e4c.js";import{I as e}from"./controller-6a175634.js";const a=(o,t)=>{const s=o;"object"==typeof s&&null!==s&&(r(s.right,1)&&(s.right={icon:s.right}),r(s.left,1)&&(s.left={icon:s.left}),t.set("_icons",s))};class c extends e{constructor(o,t,s){super(o,t,s),this.component=o}validateIcon(o){this.validateIcons(o)}validateIcons(e){s(e,(()=>{try{e=t(e)}catch(o){}i(this.component,"_icons",(t=>"object"==typeof t&&null!==t&&(r(t.left,1)||o(t.left)||r(t.right,1)||o(t.right))),new Set(["KoliBriHorizontalIcon"]),e,{hooks:{beforePatch:a},required:!0})}))}componentWillLoad(){super.componentWillLoad(),this.validateIcons(this.component._icons||this.component._icon)}}export{c as I};
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{d as a}from"./prop.validators-3d53ddab.js";const d=(d,o)=>{a(d,"_customClass",o,{defaultValue:void 0})};export{d as v};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{p as e}from"./reuse-b3566e4c.js";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return o()}},n.exports),n.exports}function o(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var i=n((function(e){!function(t,o){e.exports?e.exports=o():t.log=o()}(t,(function(){var e=function(){},t="undefined",o=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"];function l(e,t){var o=e[t];if("function"==typeof o.bind)return o.bind(e);try{return Function.prototype.bind.call(o,e)}catch(t){return function(){return Function.prototype.apply.apply(o,[e,arguments])}}}function i(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function s(n){return"debug"===n&&(n="log"),typeof console!==t&&("trace"===n&&o?i:void 0!==console[n]?l(console,n):void 0!==console.log?l(console,"log"):e)}function r(t,o){for(var l=0;l<n.length;l++){var i=n[l];this[i]=l<t?e:this.methodFactory(i,t,o)}this.log=this.debug}function a(e,o,n){return function(){typeof console!==t&&(r.call(this,o,n),this[e].apply(this,arguments))}}function c(e,t,o){return s(e)||a.apply(this,arguments)}function d(e,o,l){var i,s=this;o=null==o?"WARN":o;var a="loglevel";function d(e){var o=(n[e]||"silent").toUpperCase();if(typeof window!==t&&a){try{return void(window.localStorage[a]=o)}catch(e){}try{window.document.cookie=encodeURIComponent(a)+"="+o+";"}catch(e){}}}function h(){var e;if(typeof window!==t&&a){try{e=window.localStorage[a]}catch(e){}if(typeof e===t)try{var o=window.document.cookie,n=o.indexOf(encodeURIComponent(a)+"=");-1!==n&&(e=/^([^;]+)/.exec(o.slice(n))[1])}catch(e){}return void 0===s.levels[e]&&(e=void 0),e}}"string"==typeof e?a+=":"+e:"symbol"==typeof e&&(a=void 0),s.name=e,s.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},s.methodFactory=l||c,s.getLevel=function(){return i},s.setLevel=function(o,n){if("string"==typeof o&&void 0!==s.levels[o.toUpperCase()]&&(o=s.levels[o.toUpperCase()]),!("number"==typeof o&&o>=0&&o<=s.levels.SILENT))throw"log.setLevel() called with invalid level: "+o;if(i=o,!1!==n&&d(o),r.call(s,o,e),typeof console===t&&o<s.levels.SILENT)return"No console available for logging"},s.setDefaultLevel=function(e){o=e,h()||s.setLevel(e,!1)},s.resetLevel=function(){s.setLevel(o,!1),function(){if(typeof window!==t&&a){try{return void window.localStorage.removeItem(a)}catch(e){}try{window.document.cookie=encodeURIComponent(a)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}()},s.enableAll=function(e){s.setLevel(s.levels.TRACE,e)},s.disableAll=function(e){s.setLevel(s.levels.SILENT,e)};var f=h();null==f&&(f=o),s.setLevel(f,!1)}var h=new d,f={};h.getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=f[e];return t||(t=f[e]=new d(e,h.getLevel(),h.methodFactory)),t};var u=typeof window!==t?window.log:void 0;return h.noConflict=function(){return typeof window!==t&&window.log===h&&(window.log=u),h},h.getLoggers=function(){return f},h.default=h,h}))}));const l="object"==typeof window?window:"object"==typeof global?global:"object"==typeof self?self:{};let s=!0,r=!1;const c=/^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/,f=e=>"string"==typeof e&&c.test(e),a=e=>{if(!1===f(e))throw new Error(`[Theming] The theme identifier "${"string"==typeof e?e:""}" (Type: ${typeof e}) is not valid. Please use only follow this pattern: /^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/`)},u=(e,t,o)=>{a(e),!0===s&&!1===r&&(r=!0,i.warn(`[Theming] The theme process is locked. This means that the theme "${e}" should not be patched.\n\nimport { register } from '@a11y-ui/core';\nimport { defineCustomElements } from '...';\nimport { THEME } from '...';\n\nregister(THEME, defineCustomElements)\n\t.then(() => {\n\t\tconst htmlDivElement: HTMLElement | null = document.querySelector<HTMLElement>('#my-app');\n if (htmlDivElement instanceof HTMLElement) {\n const root = createRoot(htmlDivElement);\n root.render(<App />);\n }\n })\n .catch(console.warn);`)),"object"==typeof l.A11yUi&&null!==l.A11yUi||(l.A11yUi={}),"object"!=typeof l.A11yUi||null===l.A11yUi||"object"==typeof l.A11yUi.Themes&&null!==l.A11yUi.Themes||(l.A11yUi.Themes={}),"object"!=typeof l.A11yUi||null===l.A11yUi||"object"!=typeof l.A11yUi.Themes||null===l.A11yUi.Themes||"object"==typeof l.A11yUi.Themes[e]&&null!==l.A11yUi.Themes[e]||(l.A11yUi.Themes[e]={}),"object"==typeof l.A11yUi&&null!==l.A11yUi&&"object"==typeof l.A11yUi.Themes&&null!==l.A11yUi.Themes&&"object"==typeof l.A11yUi.Themes[e]&&null!==l.A11yUi.Themes[e]&&(l.A11yUi.Themes[e][t]=o)},d=(e,t)=>(a(e),"object"==typeof t&&null!==t&&Object.getOwnPropertyNames(t).forEach((o=>{const n=t[o];"string"==typeof n&&n.length>0&&u(e,o,n)})),e),h=e=>{if(e instanceof HTMLElement){if("string"==typeof e.dataset.theme)return e;{let t=e.parentNode;for(;t instanceof ShadowRoot;)t=t.host;return h(t)}}return null},y=(e={})=>"false"!==e.themeEncroachCss&&"true"!==e.themeReset&&{mode:"after"===e.themeEncroachCssMode||"before"===e.themeEncroachCssMode?e.themeEncroachCssMode:"before"},p=()=>"object"==typeof l.A11yUi&&null!==l.A11yUi&&"object"==typeof l.A11yUi.Theme&&null!==l.A11yUi.Theme&&"boolean"==typeof l.A11yUi.Theme.cache&&"object"==typeof l.A11yUi.Theme.encroachCss&&null!==typeof l.A11yUi.Theme.encroachCss&&"string"==typeof l.A11yUi.Theme.encroachCss.mode&&"string"==typeof l.A11yUi.Theme.name,m=e=>{if(p())return l.A11yUi.Theme;{const t={cache:!0,encroachCss:y(),loglevel:"silent",name:null},o=h(e);return o instanceof HTMLElement&&(t.cache="false"!==o.dataset.themeCache,t.encroachCss=y(o.dataset),t.loglevel="debug"===o.dataset.themeLoglevel?o.dataset.themeLoglevel:"silent",t.name=o.dataset.theme||null),t}},w=(e,t)=>({cache:!1!==t.cache,detect:"auto"===t.detect?"auto":"fixed",encroachCss:!1!==t.encroachCss&&("object"!=typeof t.encroachCss||null==t.encroachCss||"after"!==t.encroachCss.mode&&"before"!==t.encroachCss.mode?{mode:"before"}:t.encroachCss),loglevel:"debug"===t.loglevel?t.loglevel:"silent",name:"string"==typeof t.name?t.name:e}),b=(e,t)=>{!1!==p()||0!=("object"==typeof l.A11yUi&&null!==l.A11yUi)&&0!=("object"==typeof l.A11yUi.Theme&&null!==l.A11yUi.Theme)&&"default"===l.A11yUi.Theme.name||"object"==typeof t&&null!==t&&("fixed"===(t=w(e,t)).detect?(null===t.name&&"string"==typeof e&&(t.name=e),e===t.name&&("object"==typeof l.A11yUi&&null!==l.A11yUi||(l.A11yUi={}),l.A11yUi.Theme=t,i.info(`[Theming] Theme "${e}" was set as default theme.`))):i.warn("[Theming] The presetting of theme options is only relevant by using 'fixed' detection mode."))};let g=!1;const v=(e,t,o={})=>{!1===g&&(g=!0,s=!1),"function"==typeof e?e=new Set([e]):Array.isArray(e)&&(e=new Set(e)),e instanceof Set&&e.forEach((e=>{"function"==typeof e&&1===e.length?b(e(d),{cache:o.theme?.cache,detect:o.theme?.detect,encroachCss:o.theme?.encroachCss,name:o.theme?.name}):i.error("[Theming] Es wurde versucht eine nicht kompatibles Theme zu laden.")})),s=!0,"function"==typeof t?t=new Set([t]):Array.isArray(t)&&(t=new Set(t));const n=[];return t.forEach((e=>n.push(e()))),Promise.all(n)},T=new Map,E=[],M=new Set,S=new Map,j=/--[^;]+/g,L=/:/;"object"==typeof l.A11yUi&&null!==l.A11yUi||(l.A11yUi={CSS_STYLE_CACHE:S,HYDRATED_HISTORY:E,STYLING_TASK_QUEUE:T});const A=(e,t)=>{let o=t.match(j);if(Array.isArray(o)){o=o.filter((e=>L.test(e)));const t=document.createElement("style");t.innerHTML=`.${e} {${o.join(";")}}`,document.querySelector("head")?.appendChild(t)}M.add(e)},H=(e,t)=>"object"==typeof l.A11yUi&&null!==l.A11yUi&&"object"==typeof l.A11yUi.Themes&&null!==l.A11yUi.Themes&&"object"==typeof l.A11yUi.Themes[e]&&null!==l.A11yUi.Themes[e]&&"string"==typeof l.A11yUi.Themes[e][t]?l.A11yUi.Themes[e][t].replace(/\r?\n/g,""):"",D=e=>{for(const t of Array.from(e.childNodes)){if(!(t instanceof HTMLStyleElement&&"STYLE"===t.tagName))break;e.removeChild(t)}},R=(e,t)=>{try{const o=[];t.forEach((e=>{const t=new CSSStyleSheet;t.replaceSync(e),o.push(t)})),e.adoptedStyleSheets=o}catch(o){t.reverse().forEach((t=>{const o=document.createElement("style");o.innerHTML=t,e.insertBefore(o,e.firstChild)}))}},C=(e,t,o)=>{if(!1!==o){const n=[...Array.from(e.childNodes).filter((e=>e instanceof HTMLStyleElement&&"STYLE"===e.tagName))];let l;try{l=[...Array.from(e.adoptedStyleSheets)]}catch(e){l=[]}"before"===o?.mode?(n.reverse().forEach((e=>t.unshift(e.innerHTML))),l.reverse().forEach((e=>t.unshift(Array.from(e.cssRules).map((e=>e.cssText)).join(""))))):"after"===o?.mode&&(n.forEach((e=>t.push(e.innerHTML))),l.forEach((e=>t.push(Array.from(e.cssRules).map((e=>e.cssText)).join("")))))}},O=(e,t,o)=>{const n=t.name||"default";let l;try{if(null===e.shadowRoot)throw new Error("ShadowRoot is null");l=e.shadowRoot}catch(t){l=e}if(S.get(n)?.has(e.tagName))x(e,l,S.get(n)?.get(e.tagName),o);else{const i=H(n,"PROPERTIES"),s=H(n,"GLOBAL"),r=H(n,e.tagName);!1===M.has(n)&&A(n,s);const a=[i,s,r];C(l,a,t.encroachCss),"debug"===t.loglevel&&console.log(e.tagName,a),!0===t.cache&&(!1===S.has(n)&&S.set(n,new Map),S.get(n)?.set(e.tagName,a)),x(e,l,a,o)}},x=(e,t,o,n)=>{D(t),R(t,o),e.style.display=n},k=e=>{"debug"===e.loglevel&&E.push({timestamp:Date.now(),numberOfTasks:T.size})},I=(e,t)=>{T.set(e,{styleDisplay:e.style.display?`${e.style.display}`:null,themeDetails:t})},$=(e,t)=>{I(e,t),k(t)},z=e=>{T.delete(e)},Y=(e,t)=>{z(e),k(t)},_=e=>{const t=setTimeout((()=>{if(clearTimeout(t),T.has(e)&&e.classList.contains("hydrated")){const{styleDisplay:t,themeDetails:o}=T.get(e);O(e,o,t),Y(e,o)}else _(e)}),25)},K=e=>{for(const t of e)if(T.has(t.target)&&t.target.classList.contains("hydrated")){const{styleDisplay:e,themeDetails:o}=T.get(t.target);O(t.target,o,e),Y(t.target,o)}},N={attributes:!0,attributeFilter:["class"],childList:!1,subtree:!1};let B;try{B=new MutationObserver(K)}catch(e){B=null}const U=(e,t)=>{$(e,t),B?B.observe(e,N):_(e),e.style.display="none"};class F{constructor(){this.lockedElements=new Map,this.modalStack=new Map}lockElement(e){const t=e.getAttribute("tabindex");(e instanceof HTMLAnchorElement||e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||"string"==typeof t||void 0!==e.dataset.kolModal)&&("string"==typeof t?this.lockedElements.set(e,{tabIndex:t}):this.lockedElements.set(e,{}),e.setAttribute("tabindex","-1"),e.setAttribute("aria-hidden","true"),e.style.userSelect="none")}unlockElement(e,t){"string"==typeof e.tabIndex?t.setAttribute("tabindex",e.tabIndex):t.removeAttribute("tabindex"),t.removeAttribute("aria-hidden"),t.style.userSelect="unset",this.lockedElements.delete(t)}unlockLockedElements(e){e.forEach(this.unlockElement.bind(this))}lockFocus(e,t){try{if(e!==t&&(e instanceof HTMLElement||e instanceof ShadowRoot)){e instanceof HTMLElement&&(this.lockElement(e),this.lockFocus(e.shadowRoot,t));for(let o=0;o<e.children.length;o++)this.lockFocus(e.children[o],t)}}catch(e){}}renderModalIfExists(e){if(e instanceof HTMLElement){this.lockedElements.has(e)&&this.unlockElement(this.lockedElements.get(e),e);const t=setTimeout((()=>{clearTimeout(t),e.focus()}),500)}if(this.unlockLockedElements(this.lockedElements),this.modalStack.size>0){const e=Array.from(this.modalStack.keys()),t=e[e.length-1];this.modalStack.forEach(((e,o)=>{o.style.display=t===o?"inline":"none"})),J().body.style.maxHeight="100vh",J().body.style.overflow="hidden",this.lockFocus(J().body,t)}else J().body.style.maxHeight="unset",J().body.style.overflow="unset"}openModal(e,t){e instanceof HTMLElement==!1?oe.warn("[KolModalService] Die DOM-Referenz des Modals ist nicht valide."):(this.modalStack.set(e,{activeElement:t}),this.renderModalIfExists())}closeModal(e){var t;if(e instanceof HTMLElement==!1)oe.warn("[KolModalService] Die DOM-Referenz des Modals ist nicht valide.");else{const o=null===(t=this.modalStack.get(e))||void 0===t?void 0:t.activeElement;this.modalStack.delete(e),this.renderModalIfExists(o)}}}let W=null,P=null;const q=e=>{e instanceof Window?(W=e,W.document instanceof Document?P=e.document:console.warn("The given Window has no valid Document.")):console.warn("The given Window is not valid.")},G=()=>W||"undefined"==typeof window?null:window,J=()=>P||void 0===G().document?null:G().document;let Q=null,V=null,X=null,Z=null;const ee=()=>!0===V,te=()=>!0===X,ne=()=>!0===Z;class oe{static mapToArray(e){return Array.isArray(e)?e:[e]}static handleClassifier(e){return"string"==typeof e&&e.length>0?`${oe.shield.label} | ${e}`:oe.shield.label}static getShield(e){return[oe.handleClassifier(null==e?void 0:e.classifier),`${oe.shield.style};${(null==e?void 0:e.overwriteStyle)||""}`]}static debug(e,t){(V||!0===(null==t?void 0:t.forceLog))&&console.debug(...oe.getShield(t),...oe.mapToArray(e))}static info(e,t){(V||!0===(null==t?void 0:t.forceLog))&&console.info(...oe.getShield(t),...oe.mapToArray(e))}static trace(e,t){(V||!0===(null==t?void 0:t.forceLog))&&console.trace(...oe.getShield(t),...oe.mapToArray(e))}static warn(e,t){(V||!0===(null==t?void 0:t.forceLog))&&console.warn(...oe.getShield(t),...oe.mapToArray(e))}static error(e,t){(V||!0===(null==t?void 0:t.forceLog))&&console.error(...oe.getShield(t),...oe.mapToArray(e))}static throw(e,t){if(V||!0===(null==t?void 0:t.forceLog))throw new Error(...oe.getShield(t),...oe.mapToArray(e))}}oe.shield={label:"%cKoliBri",style:"color: white; background: #666; font-weight: bold; padding: .25em .5em; border-radius: 3px; border: 1px solid #000"};const ie=()=>{if(null===V&&null===X&&null===Z){const e=J().querySelector('meta[name="kolibri"]');e&&e.hasAttribute("content")&&(Q=e.getAttribute("content"),"string"==typeof Q&&(V=Q.includes("dev-mode=true"),X=Q.includes("experimental-mode=true"),Z=Q.includes("color-contrast-analysis=true")))}else console.warn("You can only initialize DEV_MODE and COLOR_CONTRAST_ANALYSIS once.")};let le=null;const se=()=>le||{},re=()=>{if(null===le){le=G().KoliBri||{};const e=new F;Object.defineProperty(le,"Modal",{get:function(){return e}}),ie(),oe.debug("\n\t,--. ,--. ,--. ,--. ,-----. ,--.\n\t| .' / ,---. | | `--' | |) /_ ,--.--. `--'\n\t| . ' | .-. | | | ,--. | .-. \\ | .--' ,--.\n\t| |\\ \\ | '-' | | | | | | '--' / | | | |\n\t`--' `--´ `---´ `--' `--' `------´ `--' `--'\n\t🚹 The accessible HTML-Standard | 👉 https://public-ui.github.io | 2.0.0-rc.5\n\t\t",{forceLog:!0})}else console.warn("You can only initialize KoliBri once.")},ce=()=>{void 0===G().KoliBri&&Object.defineProperty(window,"KoliBri",{get:function(){return le}}),!0!==se().adviceShown&&(Object.defineProperty(le,"adviceShown",{get:function(){return!0}}),oe.debug("\nYou are using the KoliBri component library. If you have any suggestions for improvement or find a problem, please contact us:\n\nTicket: https://github.com/public-ui/kolibri/issues/new/choose (for privacy reasons, please use email)\nEmail: kolibri@itzbund.de\n"))};let fe=()=>Math.floor(16777215*Math.random()).toString(16);"test"===e&&(fe=()=>"nonce");export{le as K,oe as L,l as S,u as a,J as b,q as c,te as d,se as e,n as f,m as g,ee as h,re as i,ce as j,ne as k,fe as n,d as p,v as r,U as s};
4
+ import{p as e}from"./reuse-b3566e4c.js";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return o()}},n.exports),n.exports}function o(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var i=n((function(e){!function(t,o){e.exports?e.exports=o():t.log=o()}(t,(function(){var e=function(){},t="undefined",o=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"];function l(e,t){var o=e[t];if("function"==typeof o.bind)return o.bind(e);try{return Function.prototype.bind.call(o,e)}catch(t){return function(){return Function.prototype.apply.apply(o,[e,arguments])}}}function i(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function s(n){return"debug"===n&&(n="log"),typeof console!==t&&("trace"===n&&o?i:void 0!==console[n]?l(console,n):void 0!==console.log?l(console,"log"):e)}function r(t,o){for(var l=0;l<n.length;l++){var i=n[l];this[i]=l<t?e:this.methodFactory(i,t,o)}this.log=this.debug}function a(e,o,n){return function(){typeof console!==t&&(r.call(this,o,n),this[e].apply(this,arguments))}}function c(e,t,o){return s(e)||a.apply(this,arguments)}function d(e,o,l){var i,s=this;o=null==o?"WARN":o;var a="loglevel";function d(e){var o=(n[e]||"silent").toUpperCase();if(typeof window!==t&&a){try{return void(window.localStorage[a]=o)}catch(e){}try{window.document.cookie=encodeURIComponent(a)+"="+o+";"}catch(e){}}}function h(){var e;if(typeof window!==t&&a){try{e=window.localStorage[a]}catch(e){}if(typeof e===t)try{var o=window.document.cookie,n=o.indexOf(encodeURIComponent(a)+"=");-1!==n&&(e=/^([^;]+)/.exec(o.slice(n))[1])}catch(e){}return void 0===s.levels[e]&&(e=void 0),e}}"string"==typeof e?a+=":"+e:"symbol"==typeof e&&(a=void 0),s.name=e,s.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},s.methodFactory=l||c,s.getLevel=function(){return i},s.setLevel=function(o,n){if("string"==typeof o&&void 0!==s.levels[o.toUpperCase()]&&(o=s.levels[o.toUpperCase()]),!("number"==typeof o&&o>=0&&o<=s.levels.SILENT))throw"log.setLevel() called with invalid level: "+o;if(i=o,!1!==n&&d(o),r.call(s,o,e),typeof console===t&&o<s.levels.SILENT)return"No console available for logging"},s.setDefaultLevel=function(e){o=e,h()||s.setLevel(e,!1)},s.resetLevel=function(){s.setLevel(o,!1),function(){if(typeof window!==t&&a){try{return void window.localStorage.removeItem(a)}catch(e){}try{window.document.cookie=encodeURIComponent(a)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}()},s.enableAll=function(e){s.setLevel(s.levels.TRACE,e)},s.disableAll=function(e){s.setLevel(s.levels.SILENT,e)};var f=h();null==f&&(f=o),s.setLevel(f,!1)}var h=new d,f={};h.getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=f[e];return t||(t=f[e]=new d(e,h.getLevel(),h.methodFactory)),t};var u=typeof window!==t?window.log:void 0;return h.noConflict=function(){return typeof window!==t&&window.log===h&&(window.log=u),h},h.getLoggers=function(){return f},h.default=h,h}))}));const l="object"==typeof window?window:"object"==typeof global?global:"object"==typeof self?self:{};let s=!0,r=!1;const c=/^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/,f=e=>"string"==typeof e&&c.test(e),a=e=>{if(!1===f(e))throw new Error(`[Theming] The theme identifier "${"string"==typeof e?e:""}" (Type: ${typeof e}) is not valid. Please use only follow this pattern: /^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/`)},u=(e,t,o)=>{a(e),!0===s&&!1===r&&(r=!0,i.warn(`[Theming] The theme process is locked. This means that the theme "${e}" should not be patched.\n\nimport { register } from '@a11y-ui/core';\nimport { defineCustomElements } from '...';\nimport { THEME } from '...';\n\nregister(THEME, defineCustomElements)\n\t.then(() => {\n\t\tconst htmlDivElement: HTMLElement | null = document.querySelector<HTMLElement>('#my-app');\n if (htmlDivElement instanceof HTMLElement) {\n const root = createRoot(htmlDivElement);\n root.render(<App />);\n }\n })\n .catch(console.warn);`)),"object"==typeof l.A11yUi&&null!==l.A11yUi||(l.A11yUi={}),"object"!=typeof l.A11yUi||null===l.A11yUi||"object"==typeof l.A11yUi.Themes&&null!==l.A11yUi.Themes||(l.A11yUi.Themes={}),"object"!=typeof l.A11yUi||null===l.A11yUi||"object"!=typeof l.A11yUi.Themes||null===l.A11yUi.Themes||"object"==typeof l.A11yUi.Themes[e]&&null!==l.A11yUi.Themes[e]||(l.A11yUi.Themes[e]={}),"object"==typeof l.A11yUi&&null!==l.A11yUi&&"object"==typeof l.A11yUi.Themes&&null!==l.A11yUi.Themes&&"object"==typeof l.A11yUi.Themes[e]&&null!==l.A11yUi.Themes[e]&&(l.A11yUi.Themes[e][t]=o)},d=(e,t)=>(a(e),"object"==typeof t&&null!==t&&Object.getOwnPropertyNames(t).forEach((o=>{const n=t[o];"string"==typeof n&&n.length>0&&u(e,o,n)})),e),h=e=>{if(e instanceof HTMLElement){if("string"==typeof e.dataset.theme)return e;{let t=e.parentNode;for(;t instanceof ShadowRoot;)t=t.host;return h(t)}}return null},y=(e={})=>"false"!==e.themeEncroachCss&&"true"!==e.themeReset&&{mode:"after"===e.themeEncroachCssMode||"before"===e.themeEncroachCssMode?e.themeEncroachCssMode:"before"},p=()=>"object"==typeof l.A11yUi&&null!==l.A11yUi&&"object"==typeof l.A11yUi.Theme&&null!==l.A11yUi.Theme&&"boolean"==typeof l.A11yUi.Theme.cache&&"object"==typeof l.A11yUi.Theme.encroachCss&&null!==typeof l.A11yUi.Theme.encroachCss&&"string"==typeof l.A11yUi.Theme.encroachCss.mode&&"string"==typeof l.A11yUi.Theme.name,m=e=>{if(p())return l.A11yUi.Theme;{const t={cache:!0,encroachCss:y(),loglevel:"silent",name:null},o=h(e);return o instanceof HTMLElement&&(t.cache="false"!==o.dataset.themeCache,t.encroachCss=y(o.dataset),t.loglevel="debug"===o.dataset.themeLoglevel?o.dataset.themeLoglevel:"silent",t.name=o.dataset.theme||null),t}},w=(e,t)=>({cache:!1!==t.cache,detect:"auto"===t.detect?"auto":"fixed",encroachCss:!1!==t.encroachCss&&("object"!=typeof t.encroachCss||null==t.encroachCss||"after"!==t.encroachCss.mode&&"before"!==t.encroachCss.mode?{mode:"before"}:t.encroachCss),loglevel:"debug"===t.loglevel?t.loglevel:"silent",name:"string"==typeof t.name?t.name:e}),b=(e,t)=>{!1!==p()||0!=("object"==typeof l.A11yUi&&null!==l.A11yUi)&&0!=("object"==typeof l.A11yUi.Theme&&null!==l.A11yUi.Theme)&&"default"===l.A11yUi.Theme.name||"object"==typeof t&&null!==t&&("fixed"===(t=w(e,t)).detect?(null===t.name&&"string"==typeof e&&(t.name=e),e===t.name&&("object"==typeof l.A11yUi&&null!==l.A11yUi||(l.A11yUi={}),l.A11yUi.Theme=t,i.info(`[Theming] Theme "${e}" was set as default theme.`))):i.warn("[Theming] The presetting of theme options is only relevant by using 'fixed' detection mode."))};let g=!1;const v=(e,t,o={})=>{!1===g&&(g=!0,s=!1),"function"==typeof e?e=new Set([e]):Array.isArray(e)&&(e=new Set(e)),e instanceof Set&&e.forEach((e=>{"function"==typeof e&&1===e.length?b(e(d),{cache:o.theme?.cache,detect:o.theme?.detect,encroachCss:o.theme?.encroachCss,name:o.theme?.name}):i.error("[Theming] Es wurde versucht eine nicht kompatibles Theme zu laden.")})),s=!0,"function"==typeof t?t=new Set([t]):Array.isArray(t)&&(t=new Set(t));const n=[];return t.forEach((e=>n.push(e()))),Promise.all(n)},T=new Map,E=[],M=new Set,S=new Map,j=/--[^;]+/g,L=/:/;"object"==typeof l.A11yUi&&null!==l.A11yUi||(l.A11yUi={CSS_STYLE_CACHE:S,HYDRATED_HISTORY:E,STYLING_TASK_QUEUE:T});const A=(e,t)=>{let o=t.match(j);if(Array.isArray(o)){o=o.filter((e=>L.test(e)));const t=document.createElement("style");t.innerHTML=`.${e} {${o.join(";")}}`,document.querySelector("head")?.appendChild(t)}M.add(e)},H=(e,t)=>"object"==typeof l.A11yUi&&null!==l.A11yUi&&"object"==typeof l.A11yUi.Themes&&null!==l.A11yUi.Themes&&"object"==typeof l.A11yUi.Themes[e]&&null!==l.A11yUi.Themes[e]&&"string"==typeof l.A11yUi.Themes[e][t]?l.A11yUi.Themes[e][t].replace(/\r?\n/g,""):"",D=e=>{for(const t of Array.from(e.childNodes)){if(!(t instanceof HTMLStyleElement&&"STYLE"===t.tagName))break;e.removeChild(t)}},R=(e,t)=>{try{const o=[];t.forEach((e=>{const t=new CSSStyleSheet;t.replaceSync(e),o.push(t)})),e.adoptedStyleSheets=o}catch(o){t.reverse().forEach((t=>{const o=document.createElement("style");o.innerHTML=t,e.insertBefore(o,e.firstChild)}))}},C=(e,t,o)=>{if(!1!==o){const n=[...Array.from(e.childNodes).filter((e=>e instanceof HTMLStyleElement&&"STYLE"===e.tagName))];let l;try{l=[...Array.from(e.adoptedStyleSheets)]}catch(e){l=[]}"before"===o?.mode?(n.reverse().forEach((e=>t.unshift(e.innerHTML))),l.reverse().forEach((e=>t.unshift(Array.from(e.cssRules).map((e=>e.cssText)).join(""))))):"after"===o?.mode&&(n.forEach((e=>t.push(e.innerHTML))),l.forEach((e=>t.push(Array.from(e.cssRules).map((e=>e.cssText)).join("")))))}},O=(e,t,o)=>{const n=t.name||"default";let l;try{if(null===e.shadowRoot)throw new Error("ShadowRoot is null");l=e.shadowRoot}catch(t){l=e}if(S.get(n)?.has(e.tagName))x(e,l,S.get(n)?.get(e.tagName),o);else{const i=H(n,"PROPERTIES"),s=H(n,"GLOBAL"),r=H(n,e.tagName);!1===M.has(n)&&A(n,s);const a=[i,s,r];C(l,a,t.encroachCss),"debug"===t.loglevel&&console.log(e.tagName,a),!0===t.cache&&(!1===S.has(n)&&S.set(n,new Map),S.get(n)?.set(e.tagName,a)),x(e,l,a,o)}},x=(e,t,o,n)=>{D(t),R(t,o),e.style.display=n},k=e=>{"debug"===e.loglevel&&E.push({timestamp:Date.now(),numberOfTasks:T.size})},I=(e,t)=>{T.set(e,{styleDisplay:e.style.display?`${e.style.display}`:null,themeDetails:t})},$=(e,t)=>{I(e,t),k(t)},z=e=>{T.delete(e)},Y=(e,t)=>{z(e),k(t)},_=e=>{const t=setTimeout((()=>{if(clearTimeout(t),T.has(e)&&e.classList.contains("hydrated")){const{styleDisplay:t,themeDetails:o}=T.get(e);O(e,o,t),Y(e,o)}else _(e)}),25)},K=e=>{for(const t of e)if(T.has(t.target)&&t.target.classList.contains("hydrated")){const{styleDisplay:e,themeDetails:o}=T.get(t.target);O(t.target,o,e),Y(t.target,o)}},N={attributes:!0,attributeFilter:["class"],childList:!1,subtree:!1};let B;try{B=new MutationObserver(K)}catch(e){B=null}const U=(e,t)=>{$(e,t),B?B.observe(e,N):_(e),e.style.display="none"};class F{constructor(){this.lockedElements=new Map,this.modalStack=new Map}lockElement(e){const t=e.getAttribute("tabindex");(e instanceof HTMLAnchorElement||e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||"string"==typeof t||void 0!==e.dataset.kolModal)&&("string"==typeof t?this.lockedElements.set(e,{tabIndex:t}):this.lockedElements.set(e,{}),e.setAttribute("tabindex","-1"),e.setAttribute("aria-hidden","true"),e.style.userSelect="none")}unlockElement(e,t){"string"==typeof e.tabIndex?t.setAttribute("tabindex",e.tabIndex):t.removeAttribute("tabindex"),t.removeAttribute("aria-hidden"),t.style.userSelect="unset",this.lockedElements.delete(t)}unlockLockedElements(e){e.forEach(this.unlockElement.bind(this))}lockFocus(e,t){try{if(e!==t&&(e instanceof HTMLElement||e instanceof ShadowRoot)){e instanceof HTMLElement&&(this.lockElement(e),this.lockFocus(e.shadowRoot,t));for(let o=0;o<e.children.length;o++)this.lockFocus(e.children[o],t)}}catch(e){}}renderModalIfExists(e){if(e instanceof HTMLElement){this.lockedElements.has(e)&&this.unlockElement(this.lockedElements.get(e),e);const t=setTimeout((()=>{clearTimeout(t),e.focus()}),500)}if(this.unlockLockedElements(this.lockedElements),this.modalStack.size>0){const e=Array.from(this.modalStack.keys()),t=e[e.length-1];this.modalStack.forEach(((e,o)=>{o.style.display=t===o?"inline":"none"})),J().body.style.maxHeight="100vh",J().body.style.overflow="hidden",this.lockFocus(J().body,t)}else J().body.style.maxHeight="unset",J().body.style.overflow="unset"}openModal(e,t){e instanceof HTMLElement==!1?oe.warn("[KolModalService] Die DOM-Referenz des Modals ist nicht valide."):(this.modalStack.set(e,{activeElement:t}),this.renderModalIfExists())}closeModal(e){var t;if(e instanceof HTMLElement==!1)oe.warn("[KolModalService] Die DOM-Referenz des Modals ist nicht valide.");else{const o=null===(t=this.modalStack.get(e))||void 0===t?void 0:t.activeElement;this.modalStack.delete(e),this.renderModalIfExists(o)}}}let W=null,P=null;const q=e=>{e instanceof Window?(W=e,W.document instanceof Document?P=e.document:console.warn("The given Window has no valid Document.")):console.warn("The given Window is not valid.")},G=()=>W||"undefined"==typeof window?null:window,J=()=>P||void 0===G().document?null:G().document;let Q=null,V=null,X=null,Z=null;const ee=()=>!0===V,te=()=>!0===X,ne=()=>!0===Z;class oe{static mapToArray(e){return Array.isArray(e)?e:[e]}static handleClassifier(e){return"string"==typeof e&&e.length>0?`${oe.shield.label} | ${e}`:oe.shield.label}static getShield(e){return[oe.handleClassifier(null==e?void 0:e.classifier),`${oe.shield.style};${(null==e?void 0:e.overwriteStyle)||""}`]}static debug(e,t){(V||!0===(null==t?void 0:t.forceLog))&&console.debug(...oe.getShield(t),...oe.mapToArray(e))}static info(e,t){(V||!0===(null==t?void 0:t.forceLog))&&console.info(...oe.getShield(t),...oe.mapToArray(e))}static trace(e,t){(V||!0===(null==t?void 0:t.forceLog))&&console.trace(...oe.getShield(t),...oe.mapToArray(e))}static warn(e,t){(V||!0===(null==t?void 0:t.forceLog))&&console.warn(...oe.getShield(t),...oe.mapToArray(e))}static error(e,t){(V||!0===(null==t?void 0:t.forceLog))&&console.error(...oe.getShield(t),...oe.mapToArray(e))}static throw(e,t){if(V||!0===(null==t?void 0:t.forceLog))throw new Error(...oe.getShield(t),...oe.mapToArray(e))}}oe.shield={label:"%cKoliBri",style:"color: white; background: #666; font-weight: bold; padding: .25em .5em; border-radius: 3px; border: 1px solid #000"};const ie=()=>{if(null===V&&null===X&&null===Z){const e=J().querySelector('meta[name="kolibri"]');e&&e.hasAttribute("content")&&(Q=e.getAttribute("content"),"string"==typeof Q&&(V=Q.includes("dev-mode=true"),X=Q.includes("experimental-mode=true"),Z=Q.includes("color-contrast-analysis=true")))}else console.warn("You can only initialize DEV_MODE and COLOR_CONTRAST_ANALYSIS once.")};let le=null;const se=()=>le||{},re=()=>{if(null===le){le=G().KoliBri||{};const e=new F;Object.defineProperty(le,"Modal",{get:function(){return e}}),ie(),oe.debug("\n\t,--. ,--. ,--. ,--. ,-----. ,--.\n\t| .' / ,---. | | `--' | |) /_ ,--.--. `--'\n\t| . ' | .-. | | | ,--. | .-. \\ | .--' ,--.\n\t| |\\ \\ | '-' | | | | | | '--' / | | | |\n\t`--' `--´ `---´ `--' `--' `------´ `--' `--'\n\t🚹 The accessible HTML-Standard | 👉 https://public-ui.github.io | 2.0.0-rc.6\n\t\t",{forceLog:!0})}else console.warn("You can only initialize KoliBri once.")},ce=()=>{void 0===G().KoliBri&&Object.defineProperty(window,"KoliBri",{get:function(){return le}}),!0!==se().adviceShown&&(Object.defineProperty(le,"adviceShown",{get:function(){return!0}}),oe.debug("\nYou are using the KoliBri component library. If you have any suggestions for improvement or find a problem, please contact us:\n\nTicket: https://github.com/public-ui/kolibri/issues/new/choose (for privacy reasons, please use email)\nEmail: kolibri@itzbund.de\n"))};let fe=()=>Math.floor(16777215*Math.random()).toString(16);"test"===e&&(fe=()=>"nonce");export{le as K,oe as L,l as S,u as a,J as b,q as c,te as d,se as e,n as f,m as g,ee as h,re as i,ce as j,ne as k,fe as n,d as p,v as r,U as s};