@public-ui/components 1.7.0-rc.12 → 1.7.0-rc.13

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 (519) hide show
  1. package/custom-elements.json +86 -2
  2. package/dist/cjs/{a11y.tipps-aae4870e.js → a11y.tipps-e6363d33.js} +1 -1
  3. package/dist/cjs/{a11y.tipps-aae4870e.js.map → a11y.tipps-e6363d33.js.map} +1 -1
  4. package/dist/cjs/align-87240319.js +4 -0
  5. package/dist/cjs/{align-6a95e8a0.js.map → align-87240319.js.map} +1 -1
  6. package/dist/cjs/{alignment-b42f2c4f.js → alignment-ad6a785d.js} +1 -1
  7. package/dist/cjs/{alignment-b42f2c4f.js.map → alignment-ad6a785d.js.map} +1 -1
  8. package/dist/cjs/{app-globals-fc6aa705.js → app-globals-ad6b5f49.js} +1 -1
  9. package/dist/cjs/{app-globals-fc6aa705.js.map → app-globals-ad6b5f49.js.map} +1 -1
  10. package/dist/cjs/{aria-current-70919a0e.js → aria-current-12a1ec9d.js} +1 -1
  11. package/dist/cjs/{aria-current-70919a0e.js.map → aria-current-12a1ec9d.js.map} +1 -1
  12. package/dist/cjs/{associated.controller-4a7edff1.js → associated.controller-b11a31b0.js} +1 -1
  13. package/dist/cjs/{associated.controller-4a7edff1.js.map → associated.controller-b11a31b0.js.map} +1 -1
  14. package/dist/cjs/{color-9dc4bfee.js → color-5e6c2ad5.js} +1 -1
  15. package/dist/cjs/{color-9dc4bfee.js.map → color-5e6c2ad5.js.map} +1 -1
  16. package/dist/cjs/{controller-75be07a0.js → controller-1bc5791a.js} +1 -1
  17. package/dist/cjs/{controller-75be07a0.js.map → controller-1bc5791a.js.map} +1 -1
  18. package/dist/cjs/controller-3492126d.js +4 -0
  19. package/dist/cjs/controller-3492126d.js.map +1 -0
  20. package/dist/cjs/controller-60867e49.js +4 -0
  21. package/dist/cjs/controller-60867e49.js.map +1 -0
  22. package/dist/cjs/controller-7232329c.js +4 -0
  23. package/dist/cjs/controller-7232329c.js.map +1 -0
  24. package/dist/cjs/controller-icon-d9be7156.js +4 -0
  25. package/dist/cjs/{controller-icon-fa69ce94.js.map → controller-icon-d9be7156.js.map} +1 -1
  26. package/dist/cjs/{custom-class-bb4c3580.js → custom-class-1c68b716.js} +1 -1
  27. package/dist/cjs/{custom-class-bb4c3580.js.map → custom-class-1c68b716.js.map} +1 -1
  28. package/dist/cjs/{dev.utils-ef5f3c7f.js → dev.utils-758c7a7c.js} +1 -1
  29. package/dist/cjs/{dev.utils-ef5f3c7f.js.map → dev.utils-758c7a7c.js.map} +1 -1
  30. package/dist/cjs/{devtools-b60b0dcf.js → devtools-a71f2b60.js} +1 -1
  31. package/dist/cjs/{devtools-b60b0dcf.js.map → devtools-a71f2b60.js.map} +1 -1
  32. package/dist/cjs/has-closer-cbf7df9a.js +4 -0
  33. package/dist/cjs/{has-closer-8bcb332a.js.map → has-closer-cbf7df9a.js.map} +1 -1
  34. package/dist/cjs/{controller-0df313a0.js → hide-error-d5a25827.js} +1 -1
  35. package/dist/cjs/hide-error-d5a25827.js.map +1 -0
  36. package/dist/cjs/hide-label-7a3d0993.js +4 -0
  37. package/dist/cjs/{hide-label-b528ecb8.js.map → hide-label-7a3d0993.js.map} +1 -1
  38. package/dist/cjs/{i18n-8b1b4a0b.js → i18n-5a440a87.js} +1 -1
  39. package/dist/cjs/{i18n-8b1b4a0b.js.map → i18n-5a440a87.js.map} +1 -1
  40. package/dist/cjs/{icon-619fb141.js → icon-4e9fb453.js} +1 -1
  41. package/dist/cjs/{icon-619fb141.js.map → icon-4e9fb453.js.map} +1 -1
  42. package/dist/cjs/image-source-e3f79fe7.js +4 -0
  43. package/dist/cjs/{image-source-b97d64d4.js.map → image-source-e3f79fe7.js.map} +1 -1
  44. package/dist/cjs/index.cjs.js +1 -1
  45. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  46. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  47. package/dist/cjs/kol-alert-wc_3.cjs.entry.js +1 -1
  48. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  49. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  50. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  51. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  52. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  53. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  54. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  55. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  56. package/dist/cjs/kol-input-adapter-leanup.cjs.entry.js +1 -1
  57. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  58. package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
  59. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  60. package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
  61. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  62. package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
  63. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  64. package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
  65. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  66. package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
  67. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  68. package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
  69. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
  71. package/dist/cjs/kol-input-radio-group.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  73. package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
  74. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  75. package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
  76. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  77. package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
  78. package/dist/cjs/kol-input.cjs.entry.js +1 -1
  79. package/dist/cjs/kol-input.cjs.entry.js.map +1 -1
  80. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  81. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  82. package/dist/cjs/kol-link-group.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  84. package/dist/cjs/kol-logo.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  86. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  87. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  88. package/dist/cjs/kol-popover.cjs.entry.js +1 -1
  89. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  90. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  91. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
  93. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  94. package/dist/cjs/kol-span-wc_2.cjs.entry.js +1 -1
  95. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  96. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  97. package/dist/cjs/kol-symbol.cjs.entry.js +1 -1
  98. package/dist/cjs/kol-table.cjs.entry.js +1 -1
  99. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  100. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  102. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  103. package/dist/cjs/kol-toast.cjs.entry.js +1 -1
  104. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  105. package/dist/cjs/kolibri.cjs.js +1 -1
  106. package/dist/cjs/{label-d8f427f0.js → label-e669bbca.js} +1 -1
  107. package/dist/cjs/{label-d8f427f0.js.map → label-e669bbca.js.map} +1 -1
  108. package/dist/cjs/loader.cjs.js +1 -1
  109. package/dist/cjs/open-2879dec7.js +4 -0
  110. package/dist/cjs/{open-0aa84650.js.map → open-2879dec7.js.map} +1 -1
  111. package/dist/cjs/{prop.validators-01fe0d91.js → prop.validators-39edb5c0.js} +1 -1
  112. package/dist/cjs/{prop.validators-01fe0d91.js.map → prop.validators-39edb5c0.js.map} +1 -1
  113. package/dist/cjs/rows-2d47c5ab.js +4 -0
  114. package/dist/cjs/{rows-d243c649.js.map → rows-2d47c5ab.js.map} +1 -1
  115. package/dist/cjs/show-ebcd65e3.js +4 -0
  116. package/dist/cjs/{show-a7eaf4fe.js.map → show-ebcd65e3.js.map} +1 -1
  117. package/dist/cjs/suggestions-d542ba8c.js +4 -0
  118. package/dist/cjs/{suggestions-eca15c43.js.map → suggestions-d542ba8c.js.map} +1 -1
  119. package/dist/cjs/{tab-index-8c0e8faf.js → tab-index-eabf98a8.js} +1 -1
  120. package/dist/cjs/{tab-index-8c0e8faf.js.map → tab-index-eabf98a8.js.map} +1 -1
  121. package/dist/cjs/tooltip-align-e4c65102.js +4 -0
  122. package/dist/cjs/{tooltip-align-aac86537.js.map → tooltip-align-e4c65102.js.map} +1 -1
  123. package/dist/cjs/{validation-cb3c3f69.js → validation-54532296.js} +1 -1
  124. package/dist/cjs/{validation-cb3c3f69.js.map → validation-54532296.js.map} +1 -1
  125. package/dist/cjs/validation-6cdade68.js +4 -0
  126. package/dist/cjs/{validation-6fd8240f.js.map → validation-6cdade68.js.map} +1 -1
  127. package/dist/components/component13.js +1 -1
  128. package/dist/components/component13.js.map +1 -1
  129. package/dist/components/component14.js +1 -1
  130. package/dist/components/component14.js.map +1 -1
  131. package/dist/components/component16.js +1 -1
  132. package/dist/components/component16.js.map +1 -1
  133. package/dist/components/controller-icon.js +1 -1
  134. package/dist/components/controller.js +1 -1
  135. package/dist/components/controller.js.map +1 -1
  136. package/dist/components/controller2.js +1 -1
  137. package/dist/components/controller2.js.map +1 -1
  138. package/dist/components/controller3.js +1 -1
  139. package/dist/components/controller3.js.map +1 -1
  140. package/dist/components/hide-error.js +4 -0
  141. package/dist/components/hide-error.js.map +1 -0
  142. package/dist/components/kol-input-checkbox.js +1 -1
  143. package/dist/components/kol-input-checkbox.js.map +1 -1
  144. package/dist/components/kol-input-color.js +1 -1
  145. package/dist/components/kol-input-color.js.map +1 -1
  146. package/dist/components/kol-input-date.js +1 -1
  147. package/dist/components/kol-input-date.js.map +1 -1
  148. package/dist/components/kol-input-email.js +1 -1
  149. package/dist/components/kol-input-email.js.map +1 -1
  150. package/dist/components/kol-input-file.js +1 -1
  151. package/dist/components/kol-input-file.js.map +1 -1
  152. package/dist/components/kol-input-number.js +1 -1
  153. package/dist/components/kol-input-number.js.map +1 -1
  154. package/dist/components/kol-input-password.js +1 -1
  155. package/dist/components/kol-input-password.js.map +1 -1
  156. package/dist/components/kol-input-range.js +1 -1
  157. package/dist/components/kol-input-range.js.map +1 -1
  158. package/dist/components/kol-input-text.js +1 -1
  159. package/dist/components/kol-input-text.js.map +1 -1
  160. package/dist/components/kol-textarea.js +1 -1
  161. package/dist/components/kol-textarea.js.map +1 -1
  162. package/dist/components/prop.validators.js +1 -1
  163. package/dist/components/prop.validators.js.map +1 -1
  164. package/dist/esm/{a11y.tipps-0d3ed913.js → a11y.tipps-a762de67.js} +1 -1
  165. package/dist/esm/{a11y.tipps-0d3ed913.js.map → a11y.tipps-a762de67.js.map} +1 -1
  166. package/dist/esm/{align-785ca44d.js → align-c607f8b8.js} +1 -1
  167. package/dist/esm/{align-785ca44d.js.map → align-c607f8b8.js.map} +1 -1
  168. package/dist/esm/{alignment-28ceaf43.js → alignment-17830483.js} +1 -1
  169. package/dist/esm/{alignment-28ceaf43.js.map → alignment-17830483.js.map} +1 -1
  170. package/dist/esm/{app-globals-97cb9510.js → app-globals-9b8e788b.js} +1 -1
  171. package/dist/esm/{app-globals-97cb9510.js.map → app-globals-9b8e788b.js.map} +1 -1
  172. package/dist/esm/{aria-current-703362c7.js → aria-current-43ddf090.js} +1 -1
  173. package/dist/esm/{aria-current-703362c7.js.map → aria-current-43ddf090.js.map} +1 -1
  174. package/dist/esm/{associated.controller-75873162.js → associated.controller-1c434851.js} +1 -1
  175. package/dist/esm/{associated.controller-75873162.js.map → associated.controller-1c434851.js.map} +1 -1
  176. package/dist/esm/{color-5320e91b.js → color-17311985.js} +1 -1
  177. package/dist/esm/{color-5320e91b.js.map → color-17311985.js.map} +1 -1
  178. package/dist/esm/{controller-196f5a1e.js → controller-633c9c70.js} +1 -1
  179. package/dist/esm/{controller-196f5a1e.js.map → controller-633c9c70.js.map} +1 -1
  180. package/dist/esm/controller-7fe5bd61.js +4 -0
  181. package/dist/esm/controller-7fe5bd61.js.map +1 -0
  182. package/dist/esm/controller-c59b1620.js +4 -0
  183. package/dist/esm/controller-c59b1620.js.map +1 -0
  184. package/dist/esm/controller-df5bb065.js +4 -0
  185. package/dist/esm/controller-df5bb065.js.map +1 -0
  186. package/dist/esm/{controller-icon-7214349a.js → controller-icon-6b7cd7a9.js} +1 -1
  187. package/dist/esm/{controller-icon-7214349a.js.map → controller-icon-6b7cd7a9.js.map} +1 -1
  188. package/dist/esm/{custom-class-bf680db5.js → custom-class-a6ec1ec1.js} +1 -1
  189. package/dist/esm/{custom-class-bf680db5.js.map → custom-class-a6ec1ec1.js.map} +1 -1
  190. package/dist/esm/{dev.utils-37a56c65.js → dev.utils-a3622dee.js} +1 -1
  191. package/dist/esm/{dev.utils-37a56c65.js.map → dev.utils-a3622dee.js.map} +1 -1
  192. package/dist/esm/{devtools-a1fcd326.js → devtools-f2da2eb9.js} +1 -1
  193. package/dist/esm/{devtools-a1fcd326.js.map → devtools-f2da2eb9.js.map} +1 -1
  194. package/dist/esm/{has-closer-20d3da0d.js → has-closer-5a9a536a.js} +1 -1
  195. package/dist/esm/{has-closer-20d3da0d.js.map → has-closer-5a9a536a.js.map} +1 -1
  196. package/dist/esm/{controller-dbc286bf.js → hide-error-b281fd9e.js} +1 -1
  197. package/dist/esm/hide-error-b281fd9e.js.map +1 -0
  198. package/dist/esm/{hide-label-f9cf3116.js → hide-label-59a26d29.js} +1 -1
  199. package/dist/esm/{hide-label-f9cf3116.js.map → hide-label-59a26d29.js.map} +1 -1
  200. package/dist/esm/{i18n-2f614e85.js → i18n-8cbc1706.js} +1 -1
  201. package/dist/esm/{i18n-2f614e85.js.map → i18n-8cbc1706.js.map} +1 -1
  202. package/dist/esm/{icon-408cf5cb.js → icon-0b0a0629.js} +1 -1
  203. package/dist/esm/{icon-408cf5cb.js.map → icon-0b0a0629.js.map} +1 -1
  204. package/dist/esm/{image-source-7b802b8c.js → image-source-a77aeccd.js} +1 -1
  205. package/dist/esm/{image-source-7b802b8c.js.map → image-source-a77aeccd.js.map} +1 -1
  206. package/dist/esm/index.js +1 -1
  207. package/dist/esm/kol-abbr.entry.js +1 -1
  208. package/dist/esm/kol-accordion.entry.js +1 -1
  209. package/dist/esm/kol-alert-wc_3.entry.js +1 -1
  210. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  211. package/dist/esm/kol-badge.entry.js +1 -1
  212. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  213. package/dist/esm/kol-card.entry.js +1 -1
  214. package/dist/esm/kol-details.entry.js +1 -1
  215. package/dist/esm/kol-form.entry.js +1 -1
  216. package/dist/esm/kol-icon.entry.js +1 -1
  217. package/dist/esm/kol-image.entry.js +1 -1
  218. package/dist/esm/kol-input-adapter-leanup.entry.js +1 -1
  219. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  220. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  221. package/dist/esm/kol-input-color.entry.js +1 -1
  222. package/dist/esm/kol-input-color.entry.js.map +1 -1
  223. package/dist/esm/kol-input-date.entry.js +1 -1
  224. package/dist/esm/kol-input-date.entry.js.map +1 -1
  225. package/dist/esm/kol-input-email.entry.js +1 -1
  226. package/dist/esm/kol-input-email.entry.js.map +1 -1
  227. package/dist/esm/kol-input-file.entry.js +1 -1
  228. package/dist/esm/kol-input-file.entry.js.map +1 -1
  229. package/dist/esm/kol-input-number.entry.js +1 -1
  230. package/dist/esm/kol-input-number.entry.js.map +1 -1
  231. package/dist/esm/kol-input-password.entry.js +1 -1
  232. package/dist/esm/kol-input-password.entry.js.map +1 -1
  233. package/dist/esm/kol-input-radio-group.entry.js +1 -1
  234. package/dist/esm/kol-input-radio.entry.js +1 -1
  235. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  236. package/dist/esm/kol-input-range.entry.js +1 -1
  237. package/dist/esm/kol-input-range.entry.js.map +1 -1
  238. package/dist/esm/kol-input-text.entry.js +1 -1
  239. package/dist/esm/kol-input-text.entry.js.map +1 -1
  240. package/dist/esm/kol-input.entry.js +1 -1
  241. package/dist/esm/kol-input.entry.js.map +1 -1
  242. package/dist/esm/kol-kolibri.entry.js +1 -1
  243. package/dist/esm/kol-link-button.entry.js +1 -1
  244. package/dist/esm/kol-link-group.entry.js +1 -1
  245. package/dist/esm/kol-link-wc.entry.js +1 -1
  246. package/dist/esm/kol-logo.entry.js +1 -1
  247. package/dist/esm/kol-modal.entry.js +1 -1
  248. package/dist/esm/kol-nav.entry.js +1 -1
  249. package/dist/esm/kol-pagination.entry.js +1 -1
  250. package/dist/esm/kol-popover.entry.js +1 -1
  251. package/dist/esm/kol-progress.entry.js +1 -1
  252. package/dist/esm/kol-quote.entry.js +1 -1
  253. package/dist/esm/kol-select.entry.js +1 -1
  254. package/dist/esm/kol-select.entry.js.map +1 -1
  255. package/dist/esm/kol-skip-nav.entry.js +1 -1
  256. package/dist/esm/kol-span-wc_2.entry.js +1 -1
  257. package/dist/esm/kol-spin.entry.js +1 -1
  258. package/dist/esm/kol-split-button.entry.js +1 -1
  259. package/dist/esm/kol-symbol.entry.js +1 -1
  260. package/dist/esm/kol-table.entry.js +1 -1
  261. package/dist/esm/kol-tabs.entry.js +1 -1
  262. package/dist/esm/kol-textarea.entry.js +1 -1
  263. package/dist/esm/kol-textarea.entry.js.map +1 -1
  264. package/dist/esm/kol-toast-container.entry.js +1 -1
  265. package/dist/esm/kol-toast.entry.js +1 -1
  266. package/dist/esm/kol-version.entry.js +1 -1
  267. package/dist/esm/kolibri.js +1 -1
  268. package/dist/esm/{label-53eb6307.js → label-9b9b703d.js} +1 -1
  269. package/dist/esm/{label-53eb6307.js.map → label-9b9b703d.js.map} +1 -1
  270. package/dist/esm/loader.js +1 -1
  271. package/dist/esm/{open-f914b5b0.js → open-e56c98fc.js} +1 -1
  272. package/dist/esm/{open-f914b5b0.js.map → open-e56c98fc.js.map} +1 -1
  273. package/dist/esm/{prop.validators-6e24c054.js → prop.validators-761de71b.js} +1 -1
  274. package/dist/esm/{prop.validators-6e24c054.js.map → prop.validators-761de71b.js.map} +1 -1
  275. package/dist/esm/{rows-74675c48.js → rows-d290d492.js} +1 -1
  276. package/dist/esm/{rows-74675c48.js.map → rows-d290d492.js.map} +1 -1
  277. package/dist/esm/{show-9fce2f11.js → show-77b7321a.js} +1 -1
  278. package/dist/esm/{show-9fce2f11.js.map → show-77b7321a.js.map} +1 -1
  279. package/dist/esm/{suggestions-98252177.js → suggestions-715eaf21.js} +1 -1
  280. package/dist/esm/{suggestions-98252177.js.map → suggestions-715eaf21.js.map} +1 -1
  281. package/dist/esm/{tab-index-138ee7b6.js → tab-index-ce0ee8db.js} +1 -1
  282. package/dist/esm/{tab-index-138ee7b6.js.map → tab-index-ce0ee8db.js.map} +1 -1
  283. package/dist/esm/tooltip-align-4eae0989.js +4 -0
  284. package/dist/esm/{tooltip-align-193a5309.js.map → tooltip-align-4eae0989.js.map} +1 -1
  285. package/dist/esm/validation-1f72f65c.js +4 -0
  286. package/dist/esm/{validation-7b9a0bdb.js.map → validation-1f72f65c.js.map} +1 -1
  287. package/dist/esm/{validation-e42a25f8.js → validation-bd9dad37.js} +1 -1
  288. package/dist/esm/{validation-e42a25f8.js.map → validation-bd9dad37.js.map} +1 -1
  289. package/dist/kolibri/{a11y.tipps-0d3ed913.js → a11y.tipps-a762de67.js} +1 -1
  290. package/dist/kolibri/align-c607f8b8.js +4 -0
  291. package/dist/kolibri/{alignment-28ceaf43.js → alignment-17830483.js} +1 -1
  292. package/dist/kolibri/app-globals-9b8e788b.js +4 -0
  293. package/dist/kolibri/{aria-current-703362c7.js → aria-current-43ddf090.js} +1 -1
  294. package/dist/kolibri/{associated.controller-75873162.js → associated.controller-1c434851.js} +1 -1
  295. package/dist/kolibri/{color-5320e91b.js → color-17311985.js} +1 -1
  296. package/dist/kolibri/{controller-196f5a1e.js → controller-633c9c70.js} +1 -1
  297. package/dist/kolibri/controller-7fe5bd61.js +4 -0
  298. package/dist/kolibri/controller-7fe5bd61.js.map +1 -0
  299. package/dist/kolibri/controller-c59b1620.js +4 -0
  300. package/dist/kolibri/controller-c59b1620.js.map +1 -0
  301. package/dist/kolibri/controller-df5bb065.js +4 -0
  302. package/dist/kolibri/controller-df5bb065.js.map +1 -0
  303. package/dist/kolibri/controller-icon-6b7cd7a9.js +4 -0
  304. package/dist/kolibri/{custom-class-bf680db5.js → custom-class-a6ec1ec1.js} +1 -1
  305. package/dist/kolibri/{dev.utils-37a56c65.js → dev.utils-a3622dee.js} +1 -1
  306. package/dist/kolibri/{dev.utils-37a56c65.js.map → dev.utils-a3622dee.js.map} +1 -1
  307. package/dist/kolibri/devtools-f2da2eb9.js +4 -0
  308. package/dist/kolibri/{devtools-a1fcd326.js.map → devtools-f2da2eb9.js.map} +1 -1
  309. package/dist/kolibri/has-closer-5a9a536a.js +4 -0
  310. package/dist/kolibri/hide-error-b281fd9e.js +4 -0
  311. package/dist/kolibri/hide-error-b281fd9e.js.map +1 -0
  312. package/dist/kolibri/hide-label-59a26d29.js +4 -0
  313. package/dist/kolibri/{i18n-2f614e85.js → i18n-8cbc1706.js} +1 -1
  314. package/dist/kolibri/{icon-408cf5cb.js → icon-0b0a0629.js} +1 -1
  315. package/dist/kolibri/image-source-a77aeccd.js +4 -0
  316. package/dist/kolibri/index.esm.js +1 -1
  317. package/dist/kolibri/kol-abbr.entry.js +1 -1
  318. package/dist/kolibri/kol-accordion.entry.js +1 -1
  319. package/dist/kolibri/kol-alert-wc_3.entry.js +1 -1
  320. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  321. package/dist/kolibri/kol-avatar-wc.entry.js.map +1 -1
  322. package/dist/kolibri/kol-badge.entry.js +1 -1
  323. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  324. package/dist/kolibri/kol-card.entry.js +1 -1
  325. package/dist/kolibri/kol-details.entry.js +1 -1
  326. package/dist/kolibri/kol-form.entry.js +1 -1
  327. package/dist/kolibri/kol-icon.entry.js +1 -1
  328. package/dist/kolibri/kol-image.entry.js +1 -1
  329. package/dist/kolibri/kol-input-adapter-leanup.entry.js +1 -1
  330. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  331. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  332. package/dist/kolibri/kol-input-color.entry.js +1 -1
  333. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  334. package/dist/kolibri/kol-input-date.entry.js +1 -1
  335. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  336. package/dist/kolibri/kol-input-email.entry.js +1 -1
  337. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  338. package/dist/kolibri/kol-input-file.entry.js +1 -1
  339. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  340. package/dist/kolibri/kol-input-number.entry.js +1 -1
  341. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  342. package/dist/kolibri/kol-input-password.entry.js +1 -1
  343. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  344. package/dist/kolibri/kol-input-radio-group.entry.js +1 -1
  345. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  346. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  347. package/dist/kolibri/kol-input-range.entry.js +1 -1
  348. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  349. package/dist/kolibri/kol-input-text.entry.js +1 -1
  350. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  351. package/dist/kolibri/kol-input.entry.js +1 -1
  352. package/dist/kolibri/kol-input.entry.js.map +1 -1
  353. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  354. package/dist/kolibri/kol-kolibri.entry.js.map +1 -1
  355. package/dist/kolibri/kol-link-button.entry.js +1 -1
  356. package/dist/kolibri/kol-link-group.entry.js +1 -1
  357. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  358. package/dist/kolibri/kol-logo.entry.js +1 -1
  359. package/dist/kolibri/kol-modal.entry.js +1 -1
  360. package/dist/kolibri/kol-nav.entry.js +1 -1
  361. package/dist/kolibri/kol-pagination.entry.js +1 -1
  362. package/dist/kolibri/kol-popover.entry.js +1 -1
  363. package/dist/kolibri/kol-progress.entry.js +1 -1
  364. package/dist/kolibri/kol-quote.entry.js +1 -1
  365. package/dist/kolibri/kol-select.entry.js +1 -1
  366. package/dist/kolibri/kol-select.entry.js.map +1 -1
  367. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  368. package/dist/kolibri/kol-span-wc_2.entry.js +1 -1
  369. package/dist/kolibri/kol-spin.entry.js +1 -1
  370. package/dist/kolibri/kol-split-button.entry.js +1 -1
  371. package/dist/kolibri/kol-symbol.entry.js +1 -1
  372. package/dist/kolibri/kol-symbol.entry.js.map +1 -1
  373. package/dist/kolibri/kol-table.entry.js +1 -1
  374. package/dist/kolibri/kol-tabs.entry.js +1 -1
  375. package/dist/kolibri/kol-textarea.entry.js +1 -1
  376. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  377. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  378. package/dist/kolibri/kol-toast.entry.js +1 -1
  379. package/dist/kolibri/kol-version.entry.js +1 -1
  380. package/dist/kolibri/kolibri.esm.js +1 -1
  381. package/dist/kolibri/kolibri.esm.js.map +1 -1
  382. package/dist/kolibri/{label-53eb6307.js → label-9b9b703d.js} +1 -1
  383. package/dist/kolibri/open-e56c98fc.js +4 -0
  384. package/dist/kolibri/{prop.validators-6e24c054.js → prop.validators-761de71b.js} +1 -1
  385. package/dist/kolibri/rows-d290d492.js +4 -0
  386. package/dist/kolibri/show-77b7321a.js +4 -0
  387. package/dist/kolibri/{suggestions-98252177.js → suggestions-715eaf21.js} +1 -1
  388. package/dist/kolibri/{tab-index-138ee7b6.js → tab-index-ce0ee8db.js} +1 -1
  389. package/dist/kolibri/tooltip-align-4eae0989.js +4 -0
  390. package/dist/kolibri/validation-1f72f65c.js +4 -0
  391. package/dist/kolibri/{validation-e42a25f8.js → validation-bd9dad37.js} +1 -1
  392. package/dist/types/components/input/component.d.ts +1 -0
  393. package/dist/types/components/input/types.d.ts +2 -1
  394. package/dist/types/components/input-checkbox/component.d.ts +7 -3
  395. package/dist/types/components/input-checkbox/controller.d.ts +4 -2
  396. package/dist/types/components/input-checkbox/types.d.ts +13 -7
  397. package/dist/types/components/input-color/component.d.ts +3 -0
  398. package/dist/types/components/input-color/controller.d.ts +2 -0
  399. package/dist/types/components/input-color/types.d.ts +3 -2
  400. package/dist/types/components/input-date/component.d.ts +3 -0
  401. package/dist/types/components/input-date/controller.d.ts +2 -0
  402. package/dist/types/components/input-date/types.d.ts +3 -2
  403. package/dist/types/components/input-email/component.d.ts +3 -0
  404. package/dist/types/components/input-email/controller.d.ts +2 -0
  405. package/dist/types/components/input-email/types.d.ts +3 -2
  406. package/dist/types/components/input-file/component.d.ts +3 -0
  407. package/dist/types/components/input-file/controller.d.ts +2 -0
  408. package/dist/types/components/input-file/types.d.ts +3 -2
  409. package/dist/types/components/input-number/component.d.ts +3 -0
  410. package/dist/types/components/input-number/controller.d.ts +2 -0
  411. package/dist/types/components/input-number/types.d.ts +3 -2
  412. package/dist/types/components/input-password/component.d.ts +3 -0
  413. package/dist/types/components/input-password/controller.d.ts +2 -0
  414. package/dist/types/components/input-password/types.d.ts +3 -2
  415. package/dist/types/components/input-radio/component.d.ts +3 -0
  416. package/dist/types/components/input-radio/controller.d.ts +2 -0
  417. package/dist/types/components/input-radio/types.d.ts +3 -2
  418. package/dist/types/components/input-range/component.d.ts +3 -0
  419. package/dist/types/components/input-range/controller.d.ts +2 -0
  420. package/dist/types/components/input-range/types.d.ts +3 -2
  421. package/dist/types/components/input-text/component.d.ts +3 -0
  422. package/dist/types/components/input-text/controller.d.ts +2 -0
  423. package/dist/types/components/input-text/types.d.ts +3 -2
  424. package/dist/types/components/select/component.d.ts +3 -0
  425. package/dist/types/components/select/controller.d.ts +2 -0
  426. package/dist/types/components/select/types.d.ts +3 -2
  427. package/dist/types/components/textarea/component.d.ts +3 -0
  428. package/dist/types/components/textarea/controller.d.ts +2 -0
  429. package/dist/types/components/textarea/types.d.ts +3 -2
  430. package/dist/types/components.d.ts +134 -4
  431. package/dist/types/types/props/hide-error.d.ts +7 -0
  432. package/doc/input-checkbox.md +23 -22
  433. package/doc/input-color.md +1 -0
  434. package/doc/input-date.md +1 -0
  435. package/doc/input-email.md +1 -0
  436. package/doc/input-file.md +1 -0
  437. package/doc/input-number.md +1 -0
  438. package/doc/input-password.md +1 -0
  439. package/doc/input-radio.md +1 -0
  440. package/doc/input-range.md +1 -0
  441. package/doc/input-text.md +1 -0
  442. package/doc/select.md +1 -0
  443. package/doc/textarea.md +1 -0
  444. package/package.json +1 -1
  445. package/vscode-custom-data.json +48 -0
  446. package/dist/cjs/align-6a95e8a0.js +0 -4
  447. package/dist/cjs/controller-0df313a0.js.map +0 -1
  448. package/dist/cjs/controller-b578904f.js +0 -4
  449. package/dist/cjs/controller-b578904f.js.map +0 -1
  450. package/dist/cjs/controller-cfcf4167.js +0 -4
  451. package/dist/cjs/controller-cfcf4167.js.map +0 -1
  452. package/dist/cjs/controller-dd87d12f.js +0 -4
  453. package/dist/cjs/controller-dd87d12f.js.map +0 -1
  454. package/dist/cjs/controller-icon-fa69ce94.js +0 -4
  455. package/dist/cjs/has-closer-8bcb332a.js +0 -4
  456. package/dist/cjs/hide-label-b528ecb8.js +0 -4
  457. package/dist/cjs/image-source-b97d64d4.js +0 -4
  458. package/dist/cjs/open-0aa84650.js +0 -4
  459. package/dist/cjs/rows-d243c649.js +0 -4
  460. package/dist/cjs/show-a7eaf4fe.js +0 -4
  461. package/dist/cjs/suggestions-eca15c43.js +0 -4
  462. package/dist/cjs/tooltip-align-aac86537.js +0 -4
  463. package/dist/cjs/validation-6fd8240f.js +0 -4
  464. package/dist/components/controller4.js +0 -4
  465. package/dist/components/controller4.js.map +0 -1
  466. package/dist/esm/controller-752e8540.js +0 -4
  467. package/dist/esm/controller-752e8540.js.map +0 -1
  468. package/dist/esm/controller-d7deaefd.js +0 -4
  469. package/dist/esm/controller-d7deaefd.js.map +0 -1
  470. package/dist/esm/controller-dbc286bf.js.map +0 -1
  471. package/dist/esm/controller-dcdcc383.js +0 -4
  472. package/dist/esm/controller-dcdcc383.js.map +0 -1
  473. package/dist/esm/tooltip-align-193a5309.js +0 -4
  474. package/dist/esm/validation-7b9a0bdb.js +0 -4
  475. package/dist/kolibri/align-785ca44d.js +0 -4
  476. package/dist/kolibri/app-globals-97cb9510.js +0 -4
  477. package/dist/kolibri/controller-752e8540.js +0 -4
  478. package/dist/kolibri/controller-752e8540.js.map +0 -1
  479. package/dist/kolibri/controller-d7deaefd.js +0 -4
  480. package/dist/kolibri/controller-d7deaefd.js.map +0 -1
  481. package/dist/kolibri/controller-dbc286bf.js +0 -4
  482. package/dist/kolibri/controller-dbc286bf.js.map +0 -1
  483. package/dist/kolibri/controller-dcdcc383.js +0 -4
  484. package/dist/kolibri/controller-dcdcc383.js.map +0 -1
  485. package/dist/kolibri/controller-icon-7214349a.js +0 -4
  486. package/dist/kolibri/devtools-a1fcd326.js +0 -4
  487. package/dist/kolibri/has-closer-20d3da0d.js +0 -4
  488. package/dist/kolibri/hide-label-f9cf3116.js +0 -4
  489. package/dist/kolibri/image-source-7b802b8c.js +0 -4
  490. package/dist/kolibri/open-f914b5b0.js +0 -4
  491. package/dist/kolibri/rows-74675c48.js +0 -4
  492. package/dist/kolibri/show-9fce2f11.js +0 -4
  493. package/dist/kolibri/tooltip-align-193a5309.js +0 -4
  494. package/dist/kolibri/validation-7b9a0bdb.js +0 -4
  495. /package/dist/kolibri/{a11y.tipps-0d3ed913.js.map → a11y.tipps-a762de67.js.map} +0 -0
  496. /package/dist/kolibri/{align-785ca44d.js.map → align-c607f8b8.js.map} +0 -0
  497. /package/dist/kolibri/{alignment-28ceaf43.js.map → alignment-17830483.js.map} +0 -0
  498. /package/dist/kolibri/{app-globals-97cb9510.js.map → app-globals-9b8e788b.js.map} +0 -0
  499. /package/dist/kolibri/{aria-current-703362c7.js.map → aria-current-43ddf090.js.map} +0 -0
  500. /package/dist/kolibri/{associated.controller-75873162.js.map → associated.controller-1c434851.js.map} +0 -0
  501. /package/dist/kolibri/{color-5320e91b.js.map → color-17311985.js.map} +0 -0
  502. /package/dist/kolibri/{controller-196f5a1e.js.map → controller-633c9c70.js.map} +0 -0
  503. /package/dist/kolibri/{controller-icon-7214349a.js.map → controller-icon-6b7cd7a9.js.map} +0 -0
  504. /package/dist/kolibri/{custom-class-bf680db5.js.map → custom-class-a6ec1ec1.js.map} +0 -0
  505. /package/dist/kolibri/{has-closer-20d3da0d.js.map → has-closer-5a9a536a.js.map} +0 -0
  506. /package/dist/kolibri/{hide-label-f9cf3116.js.map → hide-label-59a26d29.js.map} +0 -0
  507. /package/dist/kolibri/{i18n-2f614e85.js.map → i18n-8cbc1706.js.map} +0 -0
  508. /package/dist/kolibri/{icon-408cf5cb.js.map → icon-0b0a0629.js.map} +0 -0
  509. /package/dist/kolibri/{image-source-7b802b8c.js.map → image-source-a77aeccd.js.map} +0 -0
  510. /package/dist/kolibri/{label-53eb6307.js.map → label-9b9b703d.js.map} +0 -0
  511. /package/dist/kolibri/{open-f914b5b0.js.map → open-e56c98fc.js.map} +0 -0
  512. /package/dist/kolibri/{prop.validators-6e24c054.js.map → prop.validators-761de71b.js.map} +0 -0
  513. /package/dist/kolibri/{rows-74675c48.js.map → rows-d290d492.js.map} +0 -0
  514. /package/dist/kolibri/{show-9fce2f11.js.map → show-77b7321a.js.map} +0 -0
  515. /package/dist/kolibri/{suggestions-98252177.js.map → suggestions-715eaf21.js.map} +0 -0
  516. /package/dist/kolibri/{tab-index-138ee7b6.js.map → tab-index-ce0ee8db.js.map} +0 -0
  517. /package/dist/kolibri/{tooltip-align-193a5309.js.map → tooltip-align-4eae0989.js.map} +0 -0
  518. /package/dist/kolibri/{validation-7b9a0bdb.js.map → validation-1f72f65c.js.map} +0 -0
  519. /package/dist/kolibri/{validation-e42a25f8.js.map → validation-bd9dad37.js.map} +0 -0
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.7.0-rc.12",
2
+ "version": "1.7.0-rc.13",
3
3
  "tags": [
4
4
  {
5
5
  "name": "kol-abbr",
@@ -1016,6 +1016,13 @@
1016
1016
  "description": "Defines the error message text.",
1017
1017
  "required": false
1018
1018
  },
1019
+ {
1020
+ "name": "_hide-error",
1021
+ "type": "boolean | undefined",
1022
+ "description": "Hides the error message but leaves it in the DOM for the input's aria-describedby.",
1023
+ "defaultValue": "false",
1024
+ "required": false
1025
+ },
1019
1026
  {
1020
1027
  "name": "_hide-label",
1021
1028
  "type": "boolean | undefined",
@@ -1031,7 +1038,7 @@
1031
1038
  },
1032
1039
  {
1033
1040
  "name": "_icon",
1034
- "type": "string | undefined | { checked: string; indeterminate?: string | undefined; unchecked?: string | undefined; } & { checked?: string | undefined; indeterminate: string; unchecked?: string | undefined; } & { checked?: string | undefined; indeterminate?: string | undefined; unchecked: string; }",
1041
+ "type": "string | undefined | { checked: string; indeterminate?: string | undefined; unchecked?: string | undefined; } | { checked?: string | undefined; indeterminate: string; unchecked?: string | undefined; } | { checked?: string | undefined; indeterminate?: string | undefined; unchecked: string; }",
1035
1042
  "description": "Defines the icon classnames (e.g. `_icon=\"fa-solid fa-user\"`).",
1036
1043
  "required": false
1037
1044
  },
@@ -1151,6 +1158,13 @@
1151
1158
  "description": "Defines the error message text.",
1152
1159
  "required": false
1153
1160
  },
1161
+ {
1162
+ "name": "_hide-error",
1163
+ "type": "boolean | undefined",
1164
+ "description": "Hides the error message but leaves it in the DOM for the input's aria-describedby.",
1165
+ "defaultValue": "false",
1166
+ "required": false
1167
+ },
1154
1168
  {
1155
1169
  "name": "_hide-label",
1156
1170
  "type": "boolean | undefined",
@@ -1279,6 +1293,13 @@
1279
1293
  "description": "Defines the error message text.",
1280
1294
  "required": false
1281
1295
  },
1296
+ {
1297
+ "name": "_hide-error",
1298
+ "type": "boolean | undefined",
1299
+ "description": "Hides the error message but leaves it in the DOM for the input's aria-describedby.",
1300
+ "defaultValue": "false",
1301
+ "required": false
1302
+ },
1282
1303
  {
1283
1304
  "name": "_hide-label",
1284
1305
  "type": "boolean | undefined",
@@ -1450,6 +1471,13 @@
1450
1471
  "description": "Shows the character count on the lower border of the input.",
1451
1472
  "required": false
1452
1473
  },
1474
+ {
1475
+ "name": "_hide-error",
1476
+ "type": "boolean | undefined",
1477
+ "description": "Hides the error message but leaves it in the DOM for the input's aria-describedby.",
1478
+ "defaultValue": "false",
1479
+ "required": false
1480
+ },
1453
1481
  {
1454
1482
  "name": "_hide-label",
1455
1483
  "type": "boolean | undefined",
@@ -1620,6 +1648,13 @@
1620
1648
  "description": "Defines the error message text.",
1621
1649
  "required": false
1622
1650
  },
1651
+ {
1652
+ "name": "_hide-error",
1653
+ "type": "boolean | undefined",
1654
+ "description": "Hides the error message but leaves it in the DOM for the input's aria-describedby.",
1655
+ "defaultValue": "false",
1656
+ "required": false
1657
+ },
1623
1658
  {
1624
1659
  "name": "_hide-label",
1625
1660
  "type": "boolean | undefined",
@@ -1748,6 +1783,13 @@
1748
1783
  "description": "Defines the error message text.",
1749
1784
  "required": false
1750
1785
  },
1786
+ {
1787
+ "name": "_hide-error",
1788
+ "type": "boolean | undefined",
1789
+ "description": "Hides the error message but leaves it in the DOM for the input's aria-describedby.",
1790
+ "defaultValue": "false",
1791
+ "required": false
1792
+ },
1751
1793
  {
1752
1794
  "name": "_hide-label",
1753
1795
  "type": "boolean | undefined",
@@ -1925,6 +1967,13 @@
1925
1967
  "description": "Shows the character count on the lower border of the input.",
1926
1968
  "required": false
1927
1969
  },
1970
+ {
1971
+ "name": "_hide-error",
1972
+ "type": "boolean | undefined",
1973
+ "description": "Hides the error message but leaves it in the DOM for the input's aria-describedby.",
1974
+ "defaultValue": "false",
1975
+ "required": false
1976
+ },
1928
1977
  {
1929
1978
  "name": "_hide-label",
1930
1979
  "type": "boolean | undefined",
@@ -2071,6 +2120,13 @@
2071
2120
  "description": "Defines the error message text.",
2072
2121
  "required": false
2073
2122
  },
2123
+ {
2124
+ "name": "_hide-error",
2125
+ "type": "boolean | undefined",
2126
+ "description": "Hides the error message but leaves it in the DOM for the input's aria-describedby.",
2127
+ "defaultValue": "false",
2128
+ "required": false
2129
+ },
2074
2130
  {
2075
2131
  "name": "_hide-label",
2076
2132
  "type": "boolean | undefined",
@@ -2305,6 +2361,13 @@
2305
2361
  "description": "Defines the error message text.",
2306
2362
  "required": false
2307
2363
  },
2364
+ {
2365
+ "name": "_hide-error",
2366
+ "type": "boolean | undefined",
2367
+ "description": "Hides the error message but leaves it in the DOM for the input's aria-describedby.",
2368
+ "defaultValue": "false",
2369
+ "required": false
2370
+ },
2308
2371
  {
2309
2372
  "name": "_hide-label",
2310
2373
  "type": "boolean | undefined",
@@ -2451,6 +2514,13 @@
2451
2514
  "description": "Shows the character count on the lower border of the input.",
2452
2515
  "required": false
2453
2516
  },
2517
+ {
2518
+ "name": "_hide-error",
2519
+ "type": "boolean | undefined",
2520
+ "description": "Hides the error message but leaves it in the DOM for the input's aria-describedby.",
2521
+ "defaultValue": "false",
2522
+ "required": false
2523
+ },
2454
2524
  {
2455
2525
  "name": "_hide-label",
2456
2526
  "type": "boolean | undefined",
@@ -3339,6 +3409,13 @@
3339
3409
  "description": "Deprecated: Defines an individual height.",
3340
3410
  "required": false
3341
3411
  },
3412
+ {
3413
+ "name": "_hide-error",
3414
+ "type": "boolean | undefined",
3415
+ "description": "Hides the error message but leaves it in the DOM for the input's aria-describedby.",
3416
+ "defaultValue": "false",
3417
+ "required": false
3418
+ },
3342
3419
  {
3343
3420
  "name": "_hide-label",
3344
3421
  "type": "boolean | undefined",
@@ -3858,6 +3935,13 @@
3858
3935
  "description": "Shows the character count on the lower border of the input.",
3859
3936
  "required": false
3860
3937
  },
3938
+ {
3939
+ "name": "_hide-error",
3940
+ "type": "boolean | undefined",
3941
+ "description": "Hides the error message but leaves it in the DOM for the input's aria-describedby.",
3942
+ "defaultValue": "false",
3943
+ "required": false
3944
+ },
3861
3945
  {
3862
3946
  "name": "_hide-label",
3863
3947
  "type": "boolean | undefined",
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";const dev_utils=require("./dev.utils-ef5f3c7f.js"),a11yCache=new Set,a11yHint=(e,i)=>{(!1===a11yCache.has(e)||(null==i?void 0:i.force))&&(a11yCache.add(e),dev_utils.Log.debug([e].concat((null==i?void 0:i.details)||[]),{classifier:"✋ a11y",overwriteStyle:"; background-color: #09f"}))},deprecatedCache=new Set,deprecatedHint=(e,i)=>{(!1===deprecatedCache.has(e)||(null==i?void 0:i.force))&&(deprecatedCache.add(e),dev_utils.Log.warn([e].concat((null==i?void 0:i.details)||[]),{classifier:"🔥 deprecated",overwriteStyle:"; background-color: #f00"}))},devCache=new Set,devHint=(e,i)=>{(!1===devCache.has(e)||(null==i?void 0:i.force))&&(devCache.add(e),dev_utils.Log.debug([e].concat((null==i?void 0:i.details)||[]),{classifier:"💻 dev",overwriteStyle:"; background-color: #f09"}))},devWarning=(e,i)=>{(!1===devCache.has(e)||(null==i?void 0:i.force))&&(devCache.add(e),dev_utils.Log.warn([e].concat((null==i?void 0:i.details)||[]),{classifier:"💻 dev",overwriteStyle:"; background-color: #f09"}))},featureCache=new Set,featureHint=(e,i=!1,n)=>{(!1===featureCache.has(e)||(null==n?void 0:n.force))&&(featureCache.add(e),e+=!0===i?" ✅":"",dev_utils.Log.debug([e].concat((null==n?void 0:n.details)||[]),{classifier:"🌟 feature",overwriteStyle:"; background-color: #309"}))};devHint("Wir freuen uns über jedes Feedback, Kommentare, Screenshots oder Demo-Links von einer auf KoliBri-basierenden Anwendung (kolibri@itzbund.de). Vielen Dank!");const uiUxCache=new Set,uiUxHint=(e,i)=>{(!1===uiUxCache.has(e)||(null==i?void 0:i.force))&&(uiUxCache.add(e),dev_utils.Log.debug([e].concat((null==i?void 0:i.details)||[]),{classifier:"📑 ui/ux",overwriteStyle:"; background-color: #060;"}))},a11yHintDisabled=()=>{a11yHint('"Disabled" schränkt die Zugänglichkeit und Sichtbarkeit ein. Wir empfehlen aus Sicht der Barrierefreiheit readonly- statt disabled-Attribut zu verwenden.\n- https://uxdesign.cc/is-it-ok-to-grey-out-disabled-buttons-8afa74a0fae')},a11yHintLabelingLandmarks=e=>{"string"==typeof e&&""!==e||a11yHint("Manche Strukturelemente, wie bspw. der nav-Tag, können mehrfach in einer Webseite verwendet werden. Damit die gleichnamigen Strukturelemente voneinander unterschieden werden können, ist es erforderlich ein Aria-Label zu setzen.\n- https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Navigation_Role#accessibility_concerns")},uiUxHintMillerscheZahl=(e,i=8)=>{i>7&&uiUxHint(`[${e}] Innerhalb von Navigationsstrukturen wird empfohlen nicht mehr als 7 Menüpunkte zu verwenden.\n\nLinks:\n- https://de.ryte.com/wiki/Millersche_Zahl\n- https://de.wikipedia.org/wiki/Millersche_Zahl`)};exports.a11yHint=a11yHint,exports.a11yHintDisabled=a11yHintDisabled,exports.a11yHintLabelingLandmarks=a11yHintLabelingLandmarks,exports.deprecatedHint=deprecatedHint,exports.devHint=devHint,exports.devWarning=devWarning,exports.featureHint=featureHint,exports.uiUxHint=uiUxHint,exports.uiUxHintMillerscheZahl=uiUxHintMillerscheZahl;
4
+ "use strict";const dev_utils=require("./dev.utils-758c7a7c.js"),a11yCache=new Set,a11yHint=(e,i)=>{(!1===a11yCache.has(e)||(null==i?void 0:i.force))&&(a11yCache.add(e),dev_utils.Log.debug([e].concat((null==i?void 0:i.details)||[]),{classifier:"✋ a11y",overwriteStyle:"; background-color: #09f"}))},deprecatedCache=new Set,deprecatedHint=(e,i)=>{(!1===deprecatedCache.has(e)||(null==i?void 0:i.force))&&(deprecatedCache.add(e),dev_utils.Log.warn([e].concat((null==i?void 0:i.details)||[]),{classifier:"🔥 deprecated",overwriteStyle:"; background-color: #f00"}))},devCache=new Set,devHint=(e,i)=>{(!1===devCache.has(e)||(null==i?void 0:i.force))&&(devCache.add(e),dev_utils.Log.debug([e].concat((null==i?void 0:i.details)||[]),{classifier:"💻 dev",overwriteStyle:"; background-color: #f09"}))},devWarning=(e,i)=>{(!1===devCache.has(e)||(null==i?void 0:i.force))&&(devCache.add(e),dev_utils.Log.warn([e].concat((null==i?void 0:i.details)||[]),{classifier:"💻 dev",overwriteStyle:"; background-color: #f09"}))},featureCache=new Set,featureHint=(e,i=!1,n)=>{(!1===featureCache.has(e)||(null==n?void 0:n.force))&&(featureCache.add(e),e+=!0===i?" ✅":"",dev_utils.Log.debug([e].concat((null==n?void 0:n.details)||[]),{classifier:"🌟 feature",overwriteStyle:"; background-color: #309"}))};devHint("Wir freuen uns über jedes Feedback, Kommentare, Screenshots oder Demo-Links von einer auf KoliBri-basierenden Anwendung (kolibri@itzbund.de). Vielen Dank!");const uiUxCache=new Set,uiUxHint=(e,i)=>{(!1===uiUxCache.has(e)||(null==i?void 0:i.force))&&(uiUxCache.add(e),dev_utils.Log.debug([e].concat((null==i?void 0:i.details)||[]),{classifier:"📑 ui/ux",overwriteStyle:"; background-color: #060;"}))},a11yHintDisabled=()=>{a11yHint('"Disabled" schränkt die Zugänglichkeit und Sichtbarkeit ein. Wir empfehlen aus Sicht der Barrierefreiheit readonly- statt disabled-Attribut zu verwenden.\n- https://uxdesign.cc/is-it-ok-to-grey-out-disabled-buttons-8afa74a0fae')},a11yHintLabelingLandmarks=e=>{"string"==typeof e&&""!==e||a11yHint("Manche Strukturelemente, wie bspw. der nav-Tag, können mehrfach in einer Webseite verwendet werden. Damit die gleichnamigen Strukturelemente voneinander unterschieden werden können, ist es erforderlich ein Aria-Label zu setzen.\n- https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Navigation_Role#accessibility_concerns")},uiUxHintMillerscheZahl=(e,i=8)=>{i>7&&uiUxHint(`[${e}] Innerhalb von Navigationsstrukturen wird empfohlen nicht mehr als 7 Menüpunkte zu verwenden.\n\nLinks:\n- https://de.ryte.com/wiki/Millersche_Zahl\n- https://de.wikipedia.org/wiki/Millersche_Zahl`)};exports.a11yHint=a11yHint,exports.a11yHintDisabled=a11yHintDisabled,exports.a11yHintLabelingLandmarks=a11yHintLabelingLandmarks,exports.deprecatedHint=deprecatedHint,exports.devHint=devHint,exports.devWarning=devWarning,exports.featureHint=featureHint,exports.uiUxHint=uiUxHint,exports.uiUxHintMillerscheZahl=uiUxHintMillerscheZahl;
@@ -1 +1 @@
1
- {"file":"a11y.tipps-aae4870e.js","mappings":";;;;;;;AAOA,MAAM,SAAS,GAAgB,IAAI,GAAG,EAAE,CAAC;MAC5B,QAAQ,GAAG,CAAC,GAAW,EAAE,OAAqB;EAC1D,IAAI,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,KAAK,IAAI,CAAC,EAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,CAAA,EAAE;IACrD,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACnBA,aAAG,CAAC,KAAK,CAAE,CAAC,GAAG,CAAe,CAAC,MAAM,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,KAAI,EAAE,CAAC,EAAE;MAC9D,UAAU,EAAE,QAAQ;MACpB,cAAc,EAAE,0BAA0B;KAC1C,CAAC,CAAC;GACH;AACF,EAAE;AAEF,MAAM,eAAe,GAAgB,IAAI,GAAG,EAAE,CAAC;MAClC,cAAc,GAAG,CAAC,GAAW,EAAE,OAAqB;EAChE,IAAI,e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KAC3C,CAAC,CAAC;GACH;AACF,EAAE;MAEW,gBAAgB,GAAG;EAC/B,QAAQ,CACP,oOAAoO,CACpO,CAAC;AACH,EAAE;MAEW,yBAAyB,GAAG,CAAC,KAAc;EACvD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,EAAE,EAAE;IAC9C,QAAQ,CACP,qVAAqV,CACrV,CAAC;GACF;AACF,EAAE;MAEW,sBAAsB,GAAG,CAAC,SAAiB,EAAE,MAAM,GAAG,CAAC;EACnE,IAAI,MAAM,GAAG,CAAC,EAAE;IACf,QAAQ,CACP,IAAI,SAAS;;;;gDAIgC,CAC7C,CAAC;GACF;AACF;;;;;;;;;;;;","names":["Log"],"sources":["src/utils/a11y.tipps.ts"],"sourcesContent":["import { Log } from './dev.utils';\n\ntype HintOptions = {\n\tdetails?: unknown[];\n\tforce?: boolean;\n};\n\nconst a11yCache: Set<string> = new Set();\nexport const a11yHint = (msg: string, options?: HintOptions): void => {\n\tif (a11yCache.has(msg) === false || !!options?.force) {\n\t\ta11yCache.add(msg);\n\t\tLog.debug(([msg] as unknown[]).concat(options?.details || []), {\n\t\t\tclassifier: `✋ a11y`,\n\t\t\toverwriteStyle: '; background-color: #09f',\n\t\t});\n\t}\n};\n\nconst deprecatedCache: Set<string> = new Set();\nexport const deprecatedHint = (msg: string, options?: HintOptions): void => {\n\tif (deprecatedCache.has(msg) === false || !!options?.force) {\n\t\tdeprecatedCache.add(msg);\n\t\tLog.warn(([msg] as unknown[]).concat(options?.details || []), {\n\t\t\tclassifier: `🔥 deprecated`,\n\t\t\toverwriteStyle: '; background-color: #f00',\n\t\t});\n\t}\n};\n\nconst devCache: Set<string> = new Set();\nexport const devHint = (msg: string, options?: HintOptions): void => {\n\tif (devCache.has(msg) === false || !!options?.force) {\n\t\tdevCache.add(msg);\n\t\tLog.debug(([msg] as unknown[]).concat(options?.details || []), {\n\t\t\tclassifier: `💻 dev`,\n\t\t\toverwriteStyle: '; background-color: #f09',\n\t\t});\n\t}\n};\nexport const devWarning = (msg: string, options?: HintOptions): void => {\n\tif (devCache.has(msg) === false || !!options?.force) {\n\t\tdevCache.add(msg);\n\t\tLog.warn(([msg] as unknown[]).concat(options?.details || []), {\n\t\t\tclassifier: `💻 dev`,\n\t\t\toverwriteStyle: '; background-color: #f09',\n\t\t});\n\t}\n};\n\nconst featureCache: Set<string> = new Set();\nexport const featureHint = (msg: string, done = false, options?: HintOptions): void => {\n\tif (featureCache.has(msg) === false || !!options?.force) {\n\t\tfeatureCache.add(msg);\n\t\tmsg += done === true ? ' ✅' : '';\n\t\tLog.debug(([msg] as unknown[]).concat(options?.details || []), {\n\t\t\tclassifier: `🌟 feature`,\n\t\t\toverwriteStyle: '; background-color: #309',\n\t\t});\n\t}\n};\ndevHint(\n\t`Wir freuen uns über jedes Feedback, Kommentare, Screenshots oder Demo-Links von einer auf KoliBri-basierenden Anwendung (kolibri@itzbund.de). Vielen Dank!`\n);\n\nconst uiUxCache: Set<string> = new Set();\nexport const uiUxHint = (msg: string, options?: HintOptions): void => {\n\tif (uiUxCache.has(msg) === false || !!options?.force) {\n\t\tuiUxCache.add(msg);\n\t\tLog.debug(([msg] as unknown[]).concat(options?.details || []), {\n\t\t\tclassifier: `📑 ui/ux`,\n\t\t\toverwriteStyle: '; background-color: #060;',\n\t\t});\n\t}\n};\n\nexport const a11yHintDisabled = (): void => {\n\ta11yHint(\n\t\t`\"Disabled\" schränkt die Zugänglichkeit und Sichtbarkeit ein. Wir empfehlen aus Sicht der Barrierefreiheit readonly- statt disabled-Attribut zu verwenden.\\n- https://uxdesign.cc/is-it-ok-to-grey-out-disabled-buttons-8afa74a0fae`\n\t);\n};\n\nexport const a11yHintLabelingLandmarks = (value: unknown): void => {\n\tif (typeof value !== 'string' || value === '') {\n\t\ta11yHint(\n\t\t\t`Manche Strukturelemente, wie bspw. der nav-Tag, können mehrfach in einer Webseite verwendet werden. Damit die gleichnamigen Strukturelemente voneinander unterschieden werden können, ist es erforderlich ein Aria-Label zu setzen.\\n- https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Navigation_Role#accessibility_concerns`\n\t\t);\n\t}\n};\n\nexport const uiUxHintMillerscheZahl = (className: string, length = 8): void => {\n\tif (length > 7) {\n\t\tuiUxHint(\n\t\t\t`[${className}] Innerhalb von Navigationsstrukturen wird empfohlen nicht mehr als 7 Menüpunkte zu verwenden.\n\nLinks:\n- https://de.ryte.com/wiki/Millersche_Zahl\n- https://de.wikipedia.org/wiki/Millersche_Zahl`\n\t\t);\n\t}\n};\n"],"version":3}
1
+ {"file":"a11y.tipps-e6363d33.js","mappings":";;;;;;;AAOA,MAAM,SAAS,GAAgB,IAAI,GAAG,EAAE,CAAC;MAC5B,QAAQ,GAAG,CAAC,GAAW,EAAE,OAAqB;EAC1D,IAAI,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,KAAK,IAAI,CAAC,EAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,CAAA,EAAE;IACrD,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACnBA,aAAG,CAAC,KAAK,CAAE,CAAC,GAAG,CAAe,CAAC,MAAM,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,KAAI,EAAE,CAAC,EAAE;MAC9D,UAAU,EAAE,QAAQ;MACpB,cAAc,EAAE,0BAA0B;KAC1C,CAAC,CAAC;GACH;AACF,EAAE;AAEF,MAAM,eAAe,GAAgB,IAAI,GAAG,EAAE,CAAC;MAClC,cAAc,GAAG,CAAC,GAAW,EAAE,OAAqB;EAChE,IAAI,eAAe,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,KAAK,IAAI,CAAC,EAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,CAAA,EAAE;IAC3D,eAAe,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACzBA,aAAG,CAAC,IAAI,CAAE,CAAC,GAAG,CAAe,CAAC,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qVAAqV,CACrV,CAAC;GACF;AACF,EAAE;MAEW,sBAAsB,GAAG,CAAC,SAAiB,EAAE,MAAM,GAAG,CAAC;EACnE,IAAI,MAAM,GAAG,CAAC,EAAE;IACf,QAAQ,CACP,IAAI,SAAS;;;;gDAIgC,CAC7C,CAAC;GACF;AACF;;;;;;;;;;;;","names":["Log"],"sources":["src/utils/a11y.tipps.ts"],"sourcesContent":["import { Log } from './dev.utils';\n\ntype HintOptions = {\n\tdetails?: unknown[];\n\tforce?: boolean;\n};\n\nconst a11yCache: Set<string> = new Set();\nexport const a11yHint = (msg: string, options?: HintOptions): void => {\n\tif (a11yCache.has(msg) === false || !!options?.force) {\n\t\ta11yCache.add(msg);\n\t\tLog.debug(([msg] as unknown[]).concat(options?.details || []), {\n\t\t\tclassifier: `✋ a11y`,\n\t\t\toverwriteStyle: '; background-color: #09f',\n\t\t});\n\t}\n};\n\nconst deprecatedCache: Set<string> = new Set();\nexport const deprecatedHint = (msg: string, options?: HintOptions): void => {\n\tif (deprecatedCache.has(msg) === false || !!options?.force) {\n\t\tdeprecatedCache.add(msg);\n\t\tLog.warn(([msg] as unknown[]).concat(options?.details || []), {\n\t\t\tclassifier: `🔥 deprecated`,\n\t\t\toverwriteStyle: '; background-color: #f00',\n\t\t});\n\t}\n};\n\nconst devCache: Set<string> = new Set();\nexport const devHint = (msg: string, options?: HintOptions): void => {\n\tif (devCache.has(msg) === false || !!options?.force) {\n\t\tdevCache.add(msg);\n\t\tLog.debug(([msg] as unknown[]).concat(options?.details || []), {\n\t\t\tclassifier: `💻 dev`,\n\t\t\toverwriteStyle: '; background-color: #f09',\n\t\t});\n\t}\n};\nexport const devWarning = (msg: string, options?: HintOptions): void => {\n\tif (devCache.has(msg) === false || !!options?.force) {\n\t\tdevCache.add(msg);\n\t\tLog.warn(([msg] as unknown[]).concat(options?.details || []), {\n\t\t\tclassifier: `💻 dev`,\n\t\t\toverwriteStyle: '; background-color: #f09',\n\t\t});\n\t}\n};\n\nconst featureCache: Set<string> = new Set();\nexport const featureHint = (msg: string, done = false, options?: HintOptions): void => {\n\tif (featureCache.has(msg) === false || !!options?.force) {\n\t\tfeatureCache.add(msg);\n\t\tmsg += done === true ? ' ✅' : '';\n\t\tLog.debug(([msg] as unknown[]).concat(options?.details || []), {\n\t\t\tclassifier: `🌟 feature`,\n\t\t\toverwriteStyle: '; background-color: #309',\n\t\t});\n\t}\n};\ndevHint(\n\t`Wir freuen uns über jedes Feedback, Kommentare, Screenshots oder Demo-Links von einer auf KoliBri-basierenden Anwendung (kolibri@itzbund.de). Vielen Dank!`\n);\n\nconst uiUxCache: Set<string> = new Set();\nexport const uiUxHint = (msg: string, options?: HintOptions): void => {\n\tif (uiUxCache.has(msg) === false || !!options?.force) {\n\t\tuiUxCache.add(msg);\n\t\tLog.debug(([msg] as unknown[]).concat(options?.details || []), {\n\t\t\tclassifier: `📑 ui/ux`,\n\t\t\toverwriteStyle: '; background-color: #060;',\n\t\t});\n\t}\n};\n\nexport const a11yHintDisabled = (): void => {\n\ta11yHint(\n\t\t`\"Disabled\" schränkt die Zugänglichkeit und Sichtbarkeit ein. Wir empfehlen aus Sicht der Barrierefreiheit readonly- statt disabled-Attribut zu verwenden.\\n- https://uxdesign.cc/is-it-ok-to-grey-out-disabled-buttons-8afa74a0fae`\n\t);\n};\n\nexport const a11yHintLabelingLandmarks = (value: unknown): void => {\n\tif (typeof value !== 'string' || value === '') {\n\t\ta11yHint(\n\t\t\t`Manche Strukturelemente, wie bspw. der nav-Tag, können mehrfach in einer Webseite verwendet werden. Damit die gleichnamigen Strukturelemente voneinander unterschieden werden können, ist es erforderlich ein Aria-Label zu setzen.\\n- https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Navigation_Role#accessibility_concerns`\n\t\t);\n\t}\n};\n\nexport const uiUxHintMillerscheZahl = (className: string, length = 8): void => {\n\tif (length > 7) {\n\t\tuiUxHint(\n\t\t\t`[${className}] Innerhalb von Navigationsstrukturen wird empfohlen nicht mehr als 7 Menüpunkte zu verwenden.\n\nLinks:\n- https://de.ryte.com/wiki/Millersche_Zahl\n- https://de.wikipedia.org/wiki/Millersche_Zahl`\n\t\t);\n\t}\n};\n"],"version":3}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ "use strict";const alignment=require("./alignment-ad6a785d.js"),validateAlign=(a,i)=>{alignment.validateAlignment(a,"_align",i)};exports.validateAlign=validateAlign;
@@ -1 +1 @@
1
- {"file":"align-6a95e8a0.js","mappings":";;;;;;;MAiBa,aAAa,GAAG,CAAC,SAAoC,EAAE,KAAqB;EACxFA,2BAAiB,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;AAC/C;;;;","names":["validateAlignment"],"sources":["src/types/props/align.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { validateAlignment } from '../../utils/validators/alignment';\n\n/* types */\ntype HorizontalAlign = 'left' | 'right';\ntype VerticalAlign = 'top' | 'bottom';\nexport type AlignPropType = HorizontalAlign | VerticalAlign;\n\n/**\n * Defines where to show the element preferably: top, right, bottom or left.\n */\nexport type PropAlign = {\n\talign: AlignPropType;\n};\n\n/* validator */\nexport const validateAlign = (component: Generic.Element.Component, value?: AlignPropType): void => {\n\tvalidateAlignment(component, '_align', value);\n};\n"],"version":3}
1
+ {"file":"align-87240319.js","mappings":";;;;;;;MAiBa,aAAa,GAAG,CAAC,SAAoC,EAAE,KAAqB;EACxFA,2BAAiB,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;AAC/C;;;;","names":["validateAlignment"],"sources":["src/types/props/align.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { validateAlignment } from '../../utils/validators/alignment';\n\n/* types */\ntype HorizontalAlign = 'left' | 'right';\ntype VerticalAlign = 'top' | 'bottom';\nexport type AlignPropType = HorizontalAlign | VerticalAlign;\n\n/**\n * Defines where to show the element preferably: top, right, bottom or left.\n */\nexport type PropAlign = {\n\talign: AlignPropType;\n};\n\n/* validator */\nexport const validateAlign = (component: Generic.Element.Component, value?: AlignPropType): void => {\n\tvalidateAlignment(component, '_align', value);\n};\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";const prop_validators=require("./prop.validators-01fe0d91.js"),AVAILABLE_HORIZONTAL_ALIGNMENT_VALUES=new Set(['"left", "right"']),AVAILABLE_VERTICAL_ALIGNMENT_VALUES=new Set(['"bottom", "top"']),AVAILABLE_ALIGNMENT_VALUES=new Set([...AVAILABLE_HORIZONTAL_ALIGNMENT_VALUES,...AVAILABLE_VERTICAL_ALIGNMENT_VALUES]),validateAlignment=(A,t,L)=>{prop_validators.watchValidator(A,t,(A=>"bottom"===A||"left"===A||"right"===A||"top"===A),AVAILABLE_ALIGNMENT_VALUES,L,{defaultValue:"top"})};exports.validateAlignment=validateAlignment;
4
+ "use strict";const prop_validators=require("./prop.validators-39edb5c0.js"),AVAILABLE_HORIZONTAL_ALIGNMENT_VALUES=new Set(['"left", "right"']),AVAILABLE_VERTICAL_ALIGNMENT_VALUES=new Set(['"bottom", "top"']),AVAILABLE_ALIGNMENT_VALUES=new Set([...AVAILABLE_HORIZONTAL_ALIGNMENT_VALUES,...AVAILABLE_VERTICAL_ALIGNMENT_VALUES]),validateAlignment=(A,t,L)=>{prop_validators.watchValidator(A,t,(A=>"bottom"===A||"left"===A||"right"===A||"top"===A),AVAILABLE_ALIGNMENT_VALUES,L,{defaultValue:"top"})};exports.validateAlignment=validateAlignment;
@@ -1 +1 @@
1
- {"file":"alignment-b42f2c4f.js","mappings":";;;;;;;AAKA,MAAM,qCAAqC,GAAG,IAAI,GAAG,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAK3E,MAAM,mCAAmC,GAAG,IAAI,GAAG,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAKzE,MAAM,0BAA0B,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,qCAAqC,EAAE,GAAG,mCAAmC,CAAC,CAAC,CAAC;MAClH,iBAAiB,GAAG,CAAC,SAAoC,EAAE,QAAgB,EAAE,KAAqB;EAC9GA,8BAAc,CACb,SAAS,EACT,QAAQ,EACR,CAAC,KAAK,KAAK,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,OAAO,IAAI,KAAK,KAAK,KAAK,EACzF,0BAA0B,EAC1B,KAAK,EACL,EAAE,YAAY,EAAE,KAAK,EAAE,CACvB,CAAC;AACH;;;;","names":["watchValidator"],"sources":["src/utils/validators/alignment.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { AlignPropType } from '../../types/props/align';\nimport { watchValidator } from '../prop.validators';\n\nconst AVAILABLE_HORIZONTAL_ALIGNMENT_VALUES = new Set(['\"left\", \"right\"']);\n// export const validateHorizontalAlignment = (component: Generic.Element.Component, propName: string, value?: HorizontalAlignment): void => {\n// \twatchValidator(component, propName, (value) => value === 'left' || value === 'right', AVAILABLE_HORIZONTAL_ALIGNMENT_VALUES, value);\n// };\n\nconst AVAILABLE_VERTICAL_ALIGNMENT_VALUES = new Set(['\"bottom\", \"top\"']);\n// export const validateVertivalAlignment = (component: Generic.Element.Component, propName: string, value?: VerticalAlignment): void => {\n// \twatchValidator(component, propName, (value) => value === 'top' || value === 'bottom', AVAILABLE_VERTICAL_ALIGNMENT_VALUES, value);\n// };\n\nconst AVAILABLE_ALIGNMENT_VALUES = new Set([...AVAILABLE_HORIZONTAL_ALIGNMENT_VALUES, ...AVAILABLE_VERTICAL_ALIGNMENT_VALUES]);\nexport const validateAlignment = (component: Generic.Element.Component, propName: string, value?: AlignPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\tpropName,\n\t\t(value) => value === 'bottom' || value === 'left' || value === 'right' || value === 'top',\n\t\tAVAILABLE_ALIGNMENT_VALUES,\n\t\tvalue,\n\t\t{ defaultValue: 'top' }\n\t);\n};\n"],"version":3}
1
+ {"file":"alignment-ad6a785d.js","mappings":";;;;;;;AAKA,MAAM,qCAAqC,GAAG,IAAI,GAAG,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAK3E,MAAM,mCAAmC,GAAG,IAAI,GAAG,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAKzE,MAAM,0BAA0B,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,qCAAqC,EAAE,GAAG,mCAAmC,CAAC,CAAC,CAAC;MAClH,iBAAiB,GAAG,CAAC,SAAoC,EAAE,QAAgB,EAAE,KAAqB;EAC9GA,8BAAc,CACb,SAAS,EACT,QAAQ,EACR,CAAC,KAAK,KAAK,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,OAAO,IAAI,KAAK,KAAK,KAAK,EACzF,0BAA0B,EAC1B,KAAK,EACL,EAAE,YAAY,EAAE,KAAK,EAAE,CACvB,CAAC;AACH;;;;","names":["watchValidator"],"sources":["src/utils/validators/alignment.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { AlignPropType } from '../../types/props/align';\nimport { watchValidator } from '../prop.validators';\n\nconst AVAILABLE_HORIZONTAL_ALIGNMENT_VALUES = new Set(['\"left\", \"right\"']);\n// export const validateHorizontalAlignment = (component: Generic.Element.Component, propName: string, value?: HorizontalAlignment): void => {\n// \twatchValidator(component, propName, (value) => value === 'left' || value === 'right', AVAILABLE_HORIZONTAL_ALIGNMENT_VALUES, value);\n// };\n\nconst AVAILABLE_VERTICAL_ALIGNMENT_VALUES = new Set(['\"bottom\", \"top\"']);\n// export const validateVertivalAlignment = (component: Generic.Element.Component, propName: string, value?: VerticalAlignment): void => {\n// \twatchValidator(component, propName, (value) => value === 'top' || value === 'bottom', AVAILABLE_VERTICAL_ALIGNMENT_VALUES, value);\n// };\n\nconst AVAILABLE_ALIGNMENT_VALUES = new Set([...AVAILABLE_HORIZONTAL_ALIGNMENT_VALUES, ...AVAILABLE_VERTICAL_ALIGNMENT_VALUES]);\nexport const validateAlignment = (component: Generic.Element.Component, propName: string, value?: AlignPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\tpropName,\n\t\t(value) => value === 'bottom' || value === 'left' || value === 'right' || value === 'top',\n\t\tAVAILABLE_ALIGNMENT_VALUES,\n\t\tvalue,\n\t\t{ defaultValue: 'top' }\n\t);\n};\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";const index$1=require("./index-330353f3.js"),index=require("./index-318ebe03.js"),dev_utils=require("./dev.utils-ef5f3c7f.js"),reuse=require("./reuse-d70546ae.js"),index$2=require("./index-21737b53.js"),appGlobalScript=async()=>{index$1.setMode((e=>(e.shadowRoot instanceof ShadowRoot&&index$2.setThemeStyle(e,index$2.getThemeDetails(e)),"default"))),await index.register([],[]),Promise.resolve().then((function(){return require("./devtools-b60b0dcf.js")})).then((e=>{"object"==typeof e&&null!==e&&"function"==typeof e.initialize&&e.initialize()})).catch((e=>{dev_utils.Log.error(e)})),reuse.processEnv&&Promise.resolve().then((function(){return require("./index-d94c6297.js")}))},globalScripts=appGlobalScript;exports.globalScripts=globalScripts;
4
+ "use strict";const index$1=require("./index-330353f3.js"),index=require("./index-318ebe03.js"),dev_utils=require("./dev.utils-758c7a7c.js"),reuse=require("./reuse-d70546ae.js"),index$2=require("./index-21737b53.js"),appGlobalScript=async()=>{index$1.setMode((e=>(e.shadowRoot instanceof ShadowRoot&&index$2.setThemeStyle(e,index$2.getThemeDetails(e)),"default"))),await index.register([],[]),Promise.resolve().then((function(){return require("./devtools-a71f2b60.js")})).then((e=>{"object"==typeof e&&null!==e&&"function"==typeof e.initialize&&e.initialize()})).catch((e=>{dev_utils.Log.error(e)})),reuse.processEnv&&Promise.resolve().then((function(){return require("./index-d94c6297.js")}))},globalScripts=appGlobalScript;exports.globalScripts=globalScripts;
@@ -1 +1 @@
1
- {"file":"app-globals-fc6aa705.js","mappings":";;;;;;;;;;;AAQA,wBAAe;EACdA,eAAO,CAAC,CAAC,GAAG;IACX,IAAI,GAAG,CAAC,UAAU,YAAY,UAAU,EAAE;MACzCC,qBAAa,CAAC,GAAG,EAAEC,uBAAe,CAAC,GAAG,CAAC,CAAC,CAAC;KACzC;IACD,OAAO,SAAS,CAAC;GACjB,CAAC,CAAC;EAEH,MAAMC,cAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;EAEvB,oDAAO,wBAAY,KAAC;KAClB,IAAI,CAAC,CAAC,QAAQ;IACd,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,KAAK,IAAI,IAAI,OAAO,QAAQ,CAAC,UAAU,KAAK,UAAU,EAAE;MACnG,QAAQ,CAAC,UAAU,EAAE,CAAC;KACtB;GACD,CAAC;KACD,KAAK,CAAC,CAAC,KAAK;IACZC,aAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;GACjB,CAAC,CAAC;EAGJ,IAAIC,gBAAU,EAAE;IACf,oDAAO,qBAAQ,KAAC,CAAC;GACjB;AACF,CAAC;;AC/BW,MAAC,aAAa,GAAG;;;;","names":["setMode","setThemeStyle","getThemeDetails","register","Log","processEnv"],"sources":["src/global/script.ts","@stencil/core/internal/app-globals"],"sourcesContent":["import { getThemeDetails, setThemeStyle } from '@a11y-ui/core';\nimport { setMode } from '@stencil/core';\n\nimport { register } from '../core';\nimport { Log } from '../utils/dev.utils';\nimport { processEnv } from '../utils/reuse';\n\n// ts-prune-ignore-next\nexport default async (): Promise<void> => {\n\tsetMode((elm) => {\n\t\tif (elm.shadowRoot instanceof ShadowRoot) {\n\t\t\tsetThemeStyle(elm, getThemeDetails(elm));\n\t\t}\n\t\treturn 'default';\n\t});\n\n\tawait register([], []);\n\n\timport('./devtools')\n\t\t.then((devTools) => {\n\t\t\tif (typeof devTools === 'object' && devTools !== null && typeof devTools.initialize === 'function') {\n\t\t\t\tdevTools.initialize();\n\t\t\t}\n\t\t})\n\t\t.catch((error) => {\n\t\t\tLog.error(error);\n\t\t});\n\n\t/* Import scripts necessary for the development server, i.e. the /dev/*.html files. Only include in development environment. */\n\tif (processEnv) {\n\t\timport('../dev');\n\t}\n};\n","import appGlobalScript from '/home/runner/work/kolibri/kolibri/packages/components/src/global/script.ts';\nexport const globalScripts = appGlobalScript;\n"],"version":3}
1
+ {"file":"app-globals-ad6b5f49.js","mappings":";;;;;;;;;;;AAQA,wBAAe;EACdA,eAAO,CAAC,CAAC,GAAG;IACX,IAAI,GAAG,CAAC,UAAU,YAAY,UAAU,EAAE;MACzCC,qBAAa,CAAC,GAAG,EAAEC,uBAAe,CAAC,GAAG,CAAC,CAAC,CAAC;KACzC;IACD,OAAO,SAAS,CAAC;GACjB,CAAC,CAAC;EAEH,MAAMC,cAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;EAEvB,oDAAO,wBAAY,KAAC;KAClB,IAAI,CAAC,CAAC,QAAQ;IACd,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,KAAK,IAAI,IAAI,OAAO,QAAQ,CAAC,UAAU,KAAK,UAAU,EAAE;MACnG,QAAQ,CAAC,UAAU,EAAE,CAAC;KACtB;GACD,CAAC;KACD,KAAK,CAAC,CAAC,KAAK;IACZC,aAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;GACjB,CAAC,CAAC;EAGJ,IAAIC,gBAAU,EAAE;IACf,oDAAO,qBAAQ,KAAC,CAAC;GACjB;AACF,CAAC;;AC/BW,MAAC,aAAa,GAAG;;;;","names":["setMode","setThemeStyle","getThemeDetails","register","Log","processEnv"],"sources":["src/global/script.ts","@stencil/core/internal/app-globals"],"sourcesContent":["import { getThemeDetails, setThemeStyle } from '@a11y-ui/core';\nimport { setMode } from '@stencil/core';\n\nimport { register } from '../core';\nimport { Log } from '../utils/dev.utils';\nimport { processEnv } from '../utils/reuse';\n\n// ts-prune-ignore-next\nexport default async (): Promise<void> => {\n\tsetMode((elm) => {\n\t\tif (elm.shadowRoot instanceof ShadowRoot) {\n\t\t\tsetThemeStyle(elm, getThemeDetails(elm));\n\t\t}\n\t\treturn 'default';\n\t});\n\n\tawait register([], []);\n\n\timport('./devtools')\n\t\t.then((devTools) => {\n\t\t\tif (typeof devTools === 'object' && devTools !== null && typeof devTools.initialize === 'function') {\n\t\t\t\tdevTools.initialize();\n\t\t\t}\n\t\t})\n\t\t.catch((error) => {\n\t\t\tLog.error(error);\n\t\t});\n\n\t/* Import scripts necessary for the development server, i.e. the /dev/*.html files. Only include in development environment. */\n\tif (processEnv) {\n\t\timport('../dev');\n\t}\n};\n","import appGlobalScript from '/home/runner/work/kolibri/kolibri/packages/components/src/global/script.ts';\nexport const globalScripts = appGlobalScript;\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";const prop_validators=require("./prop.validators-01fe0d91.js"),validateAlternativeButtonLinkRole=(t,a)=>{prop_validators.watchString(t,"_role",a)},validateAriaControls=(t,a)=>{prop_validators.watchString(t,"_ariaControls",a)},validate=(t,a,r)=>{prop_validators.watchValidator(t,a,(t=>"date"===t||"location"===t||"page"===t||"step"===t||"time"===t||!0===t||!1===t),new Set(["String {data, location, page, step, time}","boolean"]),r)},validateAriaCurrent=(t,a)=>{validate(t,"_ariaCurrent",a)},validateListenAriaCurrent=(t,a)=>{validate(t,"_listenAriaCurrent",a)};exports.validateAlternativeButtonLinkRole=validateAlternativeButtonLinkRole,exports.validateAriaControls=validateAriaControls,exports.validateAriaCurrent=validateAriaCurrent,exports.validateListenAriaCurrent=validateListenAriaCurrent;
4
+ "use strict";const prop_validators=require("./prop.validators-39edb5c0.js"),validateAlternativeButtonLinkRole=(t,a)=>{prop_validators.watchString(t,"_role",a)},validateAriaControls=(t,a)=>{prop_validators.watchString(t,"_ariaControls",a)},validate=(t,a,r)=>{prop_validators.watchValidator(t,a,(t=>"date"===t||"location"===t||"page"===t||"step"===t||"time"===t||!0===t||!1===t),new Set(["String {data, location, page, step, time}","boolean"]),r)},validateAriaCurrent=(t,a)=>{validate(t,"_ariaCurrent",a)},validateListenAriaCurrent=(t,a)=>{validate(t,"_listenAriaCurrent",a)};exports.validateAlternativeButtonLinkRole=validateAlternativeButtonLinkRole,exports.validateAriaControls=validateAriaControls,exports.validateAriaCurrent=validateAriaCurrent,exports.validateListenAriaCurrent=validateListenAriaCurrent;
@@ -1 +1 @@
1
- {"file":"aria-current-70919a0e.js","mappings":";;;;;;;MAca,iCAAiC,GAAG,CAAC,SAAoC,EAAE,KAAyC;EAChIA,2BAAW,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;AACxC;;MCGa,oBAAoB,GAAG,CAAC,SAAoC,EAAE,KAA4B;EACtGA,2BAAW,CAAC,SAAS,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC;AAChD;;ACKA,MAAM,QAAQ,GAAG,CAAC,SAAoC,EAAE,QAAgB,EAAE,KAA2B;EACpGC,8BAAc,CACb,SAAS,EACT,QAAQ,EACR,CAAC,KAAK,KAAK,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,UAAU,IAAI,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,KAAK,EACpJ,IAAI,GAAG,CAAC,CAAC,2CAA2C,EAAE,SAAS,CAAC,CAAC,EACjE,KAAK,CACL,CAAC;AACH,CAAC,CAAC;MACW,mBAAmB,GAAG,CAAC,SAAoC,EAAE,KAA2B;EACpG,QAAQ,CAAC,SAAS,EAAE,cAAc,EAAE,KAAK,CAAC,CAAC;AAC5C,EAAE;MACW,yBAAyB,GAAG,CAAC,SAAoC,EAAE,KAA2B;EAC1G,QAAQ,CAAC,SAAS,EAAE,oBAAoB,EAAE,KAAK,CAAC,CAAC;AAClD;;;;;;;","names":["watchString","watchValidator"],"sources":["src/types/props/alternative-button-link-role.ts","src/types/props/aria-controls.ts","src/types/props/aria-current.ts"],"sourcesContent":["/* types */\nimport { Generic } from '@a11y-ui/core';\nimport { watchString } from '../../utils/prop.validators';\n\nexport type AlternativeButtonLinkRolePropType = 'button' | 'link' | 'tab';\n\n/**\n * Defines the role of the components primary element.\n */\nexport type PropAlternativeButtonLinkRole = {\n\trole: AlternativeButtonLinkRolePropType;\n};\n\n/* validator */\nexport const validateAlternativeButtonLinkRole = (component: Generic.Element.Component, value?: AlternativeButtonLinkRolePropType) => {\n\twatchString(component, '_role', value);\n};\n","import { Generic } from '@a11y-ui/core';\n\nimport { watchString } from '../../utils/prop.validators';\n\n/* types */\n/**\n * Defines which elements are being controlled. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls)\n * @deprecated\n */\ntype AriaControlsPropType = string;\n\n/**\n * @deprecated\n */\nexport type PropAriaControls = {\n\tariaControls: AriaControlsPropType;\n};\n\n/* validator */\nexport const validateAriaControls = (component: Generic.Element.Component, value?: AriaControlsPropType): void => {\n\twatchString(component, '_ariaControls', value);\n};\n","import { Generic } from '@a11y-ui/core';\n\nimport { watchValidator } from '../../utils/prop.validators';\n\n/* types */\n/**\n * Marks the element as the selected in a group of related elements. Can be one of the following: `date` | `location` | `page` | `step` | `time` | `true`.\n * (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-current)\n */\nexport type AriaCurrentPropType = 'date' | 'location' | 'page' | 'step' | 'time' | boolean;\n\n/**\n * @deprecated use `PropListenAriaCurrent` instead\n */\nexport type PropAriaCurrent = {\n\t/**\n\t * @deprecated use `listenAriaCurrent` instead\n\t */\n\tariaCurrent: AriaCurrentPropType;\n};\n\nexport type PropListenAriaCurrent = {\n\tlistenAriaCurrent: AriaCurrentPropType;\n};\n\n/* validator */\nconst validate = (component: Generic.Element.Component, propName: string, value?: AriaCurrentPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\tpropName,\n\t\t(value) => value === 'date' || value === 'location' || value === 'page' || value === 'step' || value === 'time' || value === true || value === false,\n\t\tnew Set(['String {data, location, page, step, time}', 'boolean']),\n\t\tvalue\n\t);\n};\nexport const validateAriaCurrent = (component: Generic.Element.Component, value?: AriaCurrentPropType): void => {\n\tvalidate(component, '_ariaCurrent', value);\n};\nexport const validateListenAriaCurrent = (component: Generic.Element.Component, value?: AriaCurrentPropType): void => {\n\tvalidate(component, '_listenAriaCurrent', value);\n};\n"],"version":3}
1
+ {"file":"aria-current-12a1ec9d.js","mappings":";;;;;;;MAca,iCAAiC,GAAG,CAAC,SAAoC,EAAE,KAAyC;EAChIA,2BAAW,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;AACxC;;MCGa,oBAAoB,GAAG,CAAC,SAAoC,EAAE,KAA4B;EACtGA,2BAAW,CAAC,SAAS,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC;AAChD;;ACKA,MAAM,QAAQ,GAAG,CAAC,SAAoC,EAAE,QAAgB,EAAE,KAA2B;EACpGC,8BAAc,CACb,SAAS,EACT,QAAQ,EACR,CAAC,KAAK,KAAK,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,UAAU,IAAI,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,KAAK,EACpJ,IAAI,GAAG,CAAC,CAAC,2CAA2C,EAAE,SAAS,CAAC,CAAC,EACjE,KAAK,CACL,CAAC;AACH,CAAC,CAAC;MACW,mBAAmB,GAAG,CAAC,SAAoC,EAAE,KAA2B;EACpG,QAAQ,CAAC,SAAS,EAAE,cAAc,EAAE,KAAK,CAAC,CAAC;AAC5C,EAAE;MACW,yBAAyB,GAAG,CAAC,SAAoC,EAAE,KAA2B;EAC1G,QAAQ,CAAC,SAAS,EAAE,oBAAoB,EAAE,KAAK,CAAC,CAAC;AAClD;;;;;;;","names":["watchString","watchValidator"],"sources":["src/types/props/alternative-button-link-role.ts","src/types/props/aria-controls.ts","src/types/props/aria-current.ts"],"sourcesContent":["/* types */\nimport { Generic } from '@a11y-ui/core';\nimport { watchString } from '../../utils/prop.validators';\n\nexport type AlternativeButtonLinkRolePropType = 'button' | 'link' | 'tab';\n\n/**\n * Defines the role of the components primary element.\n */\nexport type PropAlternativeButtonLinkRole = {\n\trole: AlternativeButtonLinkRolePropType;\n};\n\n/* validator */\nexport const validateAlternativeButtonLinkRole = (component: Generic.Element.Component, value?: AlternativeButtonLinkRolePropType) => {\n\twatchString(component, '_role', value);\n};\n","import { Generic } from '@a11y-ui/core';\n\nimport { watchString } from '../../utils/prop.validators';\n\n/* types */\n/**\n * Defines which elements are being controlled. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls)\n * @deprecated\n */\ntype AriaControlsPropType = string;\n\n/**\n * @deprecated\n */\nexport type PropAriaControls = {\n\tariaControls: AriaControlsPropType;\n};\n\n/* validator */\nexport const validateAriaControls = (component: Generic.Element.Component, value?: AriaControlsPropType): void => {\n\twatchString(component, '_ariaControls', value);\n};\n","import { Generic } from '@a11y-ui/core';\n\nimport { watchValidator } from '../../utils/prop.validators';\n\n/* types */\n/**\n * Marks the element as the selected in a group of related elements. Can be one of the following: `date` | `location` | `page` | `step` | `time` | `true`.\n * (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-current)\n */\nexport type AriaCurrentPropType = 'date' | 'location' | 'page' | 'step' | 'time' | boolean;\n\n/**\n * @deprecated use `PropListenAriaCurrent` instead\n */\nexport type PropAriaCurrent = {\n\t/**\n\t * @deprecated use `listenAriaCurrent` instead\n\t */\n\tariaCurrent: AriaCurrentPropType;\n};\n\nexport type PropListenAriaCurrent = {\n\tlistenAriaCurrent: AriaCurrentPropType;\n};\n\n/* validator */\nconst validate = (component: Generic.Element.Component, propName: string, value?: AriaCurrentPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\tpropName,\n\t\t(value) => value === 'date' || value === 'location' || value === 'page' || value === 'step' || value === 'time' || value === true || value === false,\n\t\tnew Set(['String {data, location, page, step, time}', 'boolean']),\n\t\tvalue\n\t);\n};\nexport const validateAriaCurrent = (component: Generic.Element.Component, value?: AriaCurrentPropType): void => {\n\tvalidate(component, '_ariaCurrent', value);\n};\nexport const validateListenAriaCurrent = (component: Generic.Element.Component, value?: AriaCurrentPropType): void => {\n\tvalidate(component, '_listenAriaCurrent', value);\n};\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";const prop_validators=require("./prop.validators-01fe0d91.js"),a11y_tipps=require("./a11y.tipps-aae4870e.js"),dev_utils=require("./dev.utils-ef5f3c7f.js"),validateName=(t,e,i)=>{prop_validators.watchString(t,"_name",e,i)},EXPERIMENTAL_MODE=dev_utils.getExperimentalMode();class AssociatedInputController{constructor(t,e,i){var s,o;if(this.setFormAssociatedValue=t=>{var e;const i=null===(e=this.formAssociated)||void 0===e?void 0:e.getAttribute("name");null!==i&&""!==i||a11y_tipps.devHint(` 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=e,EXPERIMENTAL_MODE){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===(o=this.host)||void 0===o||o.appendChild(this.formAssociated)}}findHostWithShadowRoot(t){for(;null===(null==t?void 0:t.shadowRoot)&&t!==document.body;)(t=null==t?void 0:t.parentNode).host&&(t=t.host);return t}setAttribute(t,e,i){if(EXPERIMENTAL_MODE)try{if("boolean"!=typeof(i="object"==typeof i&&null!==i?JSON.stringify(i):i)&&"number"!=typeof i&&"string"!=typeof i)throw new Error("Invalid value type: "+typeof i);null==e||e.setAttribute(t,`${i}`)}catch(i){null==e||e.removeAttribute(t)}}tryToStringifyValue(t){try{return"object"==typeof t&&null!==t?JSON.stringify(t).toString():null==t?null:t.toString()}catch(t){return a11y_tipps.devWarning(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,i){if(i)if("select"===this.name)i.querySelectorAll("option").forEach((t=>{i.removeChild(t)})),Array.isArray(t)&&t.forEach((t=>{const e=this.tryToStringifyValue(t);if("string"==typeof e){const t=document.createElement("option");t.setAttribute("value",e),t.setAttribute("selected",""),i.appendChild(t)}}));else"string"==typeof e?(i.setAttribute("value",e),i.value=e):(i.removeAttribute("value"),i.value="")}validateName(t){validateName(this.component,t,{hooks:{afterPatch:()=>{this.setAttribute("name",this.formAssociated,this.component.state._name)}}}),void 0===t&&a11y_tipps.devHint("Ein Name am Eingabefeldern oder Schalter ist nicht zwingend erforderlich, kann aber für die Autocomplete-Funktion und für das statische Versenden des Eingabefeldes relevant sein.")}validateSyncValueBySelector(t){if(EXPERIMENTAL_MODE&&"string"==typeof t){const e=document.querySelector(t);e&&(this.syncToOwnInput=e)}}componentWillLoad(){this.validateName(this.component._name),this.validateSyncValueBySelector(this.component._syncValueBySelector)}}exports.AssociatedInputController=AssociatedInputController;
4
+ "use strict";const prop_validators=require("./prop.validators-39edb5c0.js"),a11y_tipps=require("./a11y.tipps-e6363d33.js"),dev_utils=require("./dev.utils-758c7a7c.js"),validateName=(t,e,i)=>{prop_validators.watchString(t,"_name",e,i)},EXPERIMENTAL_MODE=dev_utils.getExperimentalMode();class AssociatedInputController{constructor(t,e,i){var s,o;if(this.setFormAssociatedValue=t=>{var e;const i=null===(e=this.formAssociated)||void 0===e?void 0:e.getAttribute("name");null!==i&&""!==i||a11y_tipps.devHint(` 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=e,EXPERIMENTAL_MODE){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===(o=this.host)||void 0===o||o.appendChild(this.formAssociated)}}findHostWithShadowRoot(t){for(;null===(null==t?void 0:t.shadowRoot)&&t!==document.body;)(t=null==t?void 0:t.parentNode).host&&(t=t.host);return t}setAttribute(t,e,i){if(EXPERIMENTAL_MODE)try{if("boolean"!=typeof(i="object"==typeof i&&null!==i?JSON.stringify(i):i)&&"number"!=typeof i&&"string"!=typeof i)throw new Error("Invalid value type: "+typeof i);null==e||e.setAttribute(t,`${i}`)}catch(i){null==e||e.removeAttribute(t)}}tryToStringifyValue(t){try{return"object"==typeof t&&null!==t?JSON.stringify(t).toString():null==t?null:t.toString()}catch(t){return a11y_tipps.devWarning(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,i){if(i)if("select"===this.name)i.querySelectorAll("option").forEach((t=>{i.removeChild(t)})),Array.isArray(t)&&t.forEach((t=>{const e=this.tryToStringifyValue(t);if("string"==typeof e){const t=document.createElement("option");t.setAttribute("value",e),t.setAttribute("selected",""),i.appendChild(t)}}));else"string"==typeof e?(i.setAttribute("value",e),i.value=e):(i.removeAttribute("value"),i.value="")}validateName(t){validateName(this.component,t,{hooks:{afterPatch:()=>{this.setAttribute("name",this.formAssociated,this.component.state._name)}}}),void 0===t&&a11y_tipps.devHint("Ein Name am Eingabefeldern oder Schalter ist nicht zwingend erforderlich, kann aber für die Autocomplete-Funktion und für das statische Versenden des Eingabefeldes relevant sein.")}validateSyncValueBySelector(t){if(EXPERIMENTAL_MODE&&"string"==typeof t){const e=document.querySelector(t);e&&(this.syncToOwnInput=e)}}componentWillLoad(){this.validateName(this.component._name),this.validateSyncValueBySelector(this.component._syncValueBySelector)}}exports.AssociatedInputController=AssociatedInputController;
@@ -1 +1 @@
1
- {"file":"associated.controller-4a7edff1.js","mappings":";;;;;;;;;AAeO,MAAM,YAAY,GAAG,CAAC,SAAoC,EAAE,KAAoB,EAAE,OAA4B;EACpHA,2BAAW,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;AACjD,CAAC;;ACTD,MAAM,iBAAiB,GAAGC,6BAAmB,EAAE,CAAC;MASnC,yBAAyB;EAQrC,YAAmB,SAA4C,EAAE,IAAY,EAAE,IAAkB;;IAoFjF,2BAAsB,GAAG,CAAC,QAAwB;;MACjE,MAAM,IAAI,GAAG,MAAA,IAAI,CAAC,cAAc,0CAAE,YAAY,CAAC,MAAM,CAAC,CAAC;MACvD,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,EAAE,EAAE;QACjCC,kBAAO,CAAC,oBAAoB,IAAI,CAAC,IAAI,wFAAwF,CAAC,CAAC;OAC/H;MACD,MAAM,QAAQ,GAAG,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC;MACpD,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;MACxD,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;KACxD,CAAC;IA3FD,IAAI,CAAC,SA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,SAAS,EAAE,KAAK,EAAE;MACnC,KAAK,EAAE;QACN,UAAU,EAAE;UACX,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,KAAe,CAAC,CAAC;SACrF;OACD;KACD,CAAC,CAAC;IACH,IAAI,OAAO,KAAK,KAAK,WAAW,EAAE;MACjCD,kBAAO,CACN,oLAAoL,CACpL,CAAC;KACF;GACD;EAEM,2BAA2B,CAAC,KAAmC;IACrE,IAAI,iBAAiB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;MACnD,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAA+D,CAAC;MAC1G,IAAI,KAAK,EAAwC;QAChD,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;OAC5B;KACD;GACD;EAEM,iBAAiB;IACvB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACxC,IAAI,CAAC,2BAA2B,CAAC,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;GACtE;;;;;","names":["watchString","getExperimentalMode","devHint","devWarning"],"sources":["src/types/props/name.ts","src/components/input-adapter-leanup/associated.controller.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { watchString, WatchStringOptions } from '../../utils/prop.validators';\n\n/* types */\nexport type NamePropType = string;\n\n/**\n * Defines the technical name of an input field.\n */\nexport type PropName = {\n\tname: NamePropType;\n};\n\n/* validator */\nexport const validateName = (component: Generic.Element.Component, value?: NamePropType, options?: WatchStringOptions): void => {\n\twatchString(component, '_name', value, options);\n};\n","import { Generic } from '@a11y-ui/core';\n\nimport { NamePropType, validateName } from '../../types/props/name';\nimport { StencilUnknown } from '../../types/unknown';\nimport { devHint, devWarning } from '../../utils/a11y.tipps';\nimport { getExperimentalMode } from '../../utils/dev.utils';\nimport { PropSyncValueBySelector, SyncValueBySelectorPropType } from '../../types/props/sync-value-by-selector';\n\nconst EXPERIMENTAL_MODE = getExperimentalMode();\n\ntype RequiredProps = NonNullable<unknown>;\ntype OptionalProps = {\n\tname: string;\n} & PropSyncValueBySelector;\ntype Props = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype Watches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\nexport class AssociatedInputController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props;\n\tprotected readonly name: string;\n\tprotected readonly host?: HTMLElement;\n\n\tpublic readonly formAssociated?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\tpublic syncToOwnInput?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\n\tpublic constructor(component: Generic.Element.Component & Props, name: string, host?: HTMLElement) {\n\t\tthis.component = component;\n\t\tthis.host = this.findHostWithShadowRoot(host);\n\t\tthis.name = name;\n\n\t\tif (EXPERIMENTAL_MODE) {\n\t\t\tthis.host?.querySelectorAll('input,select,textarea').forEach((el) => {\n\t\t\t\tthis.host?.removeChild(el);\n\t\t\t});\n\t\t\tswitch (this.name) {\n\t\t\t\tcase 'button':\n\t\t\t\t\tthis.formAssociated = document.createElement('button');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'select':\n\t\t\t\t\tthis.formAssociated = document.createElement('select');\n\t\t\t\t\tthis.formAssociated.setAttribute('multiple', '');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'textarea':\n\t\t\t\t\tthis.formAssociated = document.createElement('textarea');\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tthis.formAssociated = document.createElement('input');\n\t\t\t\t\tthis.formAssociated.setAttribute('type', 'hidden');\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tthis.formAssociated.setAttribute('aria-hidden', 'true');\n\t\t\tthis.formAssociated.setAttribute('data-form-associated', '');\n\t\t\tthis.formAssociated.setAttribute('hidden', '');\n\t\t\tthis.host?.appendChild(this.formAssociated);\n\t\t}\n\t}\n\n\t/**\n\t * The associated elements must not reside within the ShadowRoot and must\n\t * reside as children in the host to be recognized by native forms.\n\t */\n\tprivate findHostWithShadowRoot(host?: HTMLElement): HTMLElement | undefined {\n\t\twhile (host?.shadowRoot === null && host !== document.body) {\n\t\t\thost = host?.parentNode as HTMLElement;\n\t\t\tif ((host as unknown as ShadowRoot).host) {\n\t\t\t\thost = (host as unknown as ShadowRoot).host as HTMLElement;\n\t\t\t}\n\t\t}\n\t\treturn host;\n\t}\n\n\tprotected setAttribute(qualifiedName: string, element?: HTMLElement, value?: string | number | boolean) {\n\t\tif (EXPERIMENTAL_MODE) {\n\t\t\ttry {\n\t\t\t\tvalue = typeof value === 'object' && value !== null ? JSON.stringify(value) : value;\n\t\t\t\tif (typeof value === 'boolean' || typeof value === 'number' || typeof value === 'string') {\n\t\t\t\t\telement?.setAttribute(qualifiedName, `${value as string}`);\n\t\t\t\t} else {\n\t\t\t\t\tthrow new Error(`Invalid value type: ${typeof value}`);\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\telement?.removeAttribute(qualifiedName);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * We need to stringify the value, for the setAttribute method.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttribute\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/attributes\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/attributes#value\n\t *\n\t * TODO: It is possible that the value are a cyclic object value. So we need a custom\n\t * JSON.stringify method from outside to convert it to string.\n\t */\n\tprivate tryToStringifyValue(value: StencilUnknown): string | null {\n\t\ttry {\n\t\t\treturn typeof value === 'object' && value !== null ? JSON.stringify(value).toString() : value === null || value === undefined ? null : value.toString();\n\t\t} catch (e) {\n\t\t\tdevWarning(`The form field raw value is not able to stringify! ${e as string}`);\n\t\t\treturn '';\n\t\t}\n\t}\n\n\t/**\n\t * We try to support native form-associated custom elements.\n\t *\n\t * @see https://github.com/public-ui/kolibri/discussions/2821\n\t */\n\tpublic readonly setFormAssociatedValue = (rawValue: StencilUnknown) => {\n\t\tconst name = this.formAssociated?.getAttribute('name');\n\t\tif (name === null || name === '') {\n\t\t\tdevHint(` The form field (${this.name}) must have a name attribute to be form-associated. Please define the _name attribute.`);\n\t\t}\n\t\tconst strValue = this.tryToStringifyValue(rawValue);\n\t\tthis.syncValue(rawValue, strValue, this.formAssociated);\n\t\tthis.syncValue(rawValue, strValue, this.syncToOwnInput);\n\t};\n\n\tprivate syncValue(\n\t\trawValue: StencilUnknown,\n\t\tstrValue: string | null,\n\t\tassociatedElement?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement\n\t) {\n\t\tif (associatedElement) {\n\t\t\tswitch (this.name) {\n\t\t\t\tcase 'select':\n\t\t\t\t\t(associatedElement as HTMLSelectElement).querySelectorAll('option').forEach((el) => {\n\t\t\t\t\t\t(associatedElement as HTMLSelectElement).removeChild(el);\n\t\t\t\t\t});\n\t\t\t\t\tif (Array.isArray(rawValue)) {\n\t\t\t\t\t\trawValue.forEach((rawValueItem) => {\n\t\t\t\t\t\t\tconst strValueItem = this.tryToStringifyValue(rawValueItem as string);\n\t\t\t\t\t\t\tif (typeof strValueItem === 'string') {\n\t\t\t\t\t\t\t\tconst option = document.createElement('option');\n\t\t\t\t\t\t\t\toption.setAttribute('value', strValueItem);\n\t\t\t\t\t\t\t\toption.setAttribute('selected', '');\n\t\t\t\t\t\t\t\t(associatedElement as HTMLSelectElement).appendChild(option);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif (typeof strValue === 'string') {\n\t\t\t\t\t\tassociatedElement.setAttribute('value', strValue);\n\t\t\t\t\t\tassociatedElement.value = strValue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tassociatedElement.removeAttribute('value');\n\t\t\t\t\t\tassociatedElement.value = '';\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic validateName(value?: NamePropType): void {\n\t\tvalidateName(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: () => {\n\t\t\t\t\tthis.setAttribute('name', this.formAssociated, this.component.state._name as string);\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t\tif (typeof value === 'undefined') {\n\t\t\tdevHint(\n\t\t\t\t`Ein Name am Eingabefeldern oder Schalter ist nicht zwingend erforderlich, kann aber für die Autocomplete-Funktion und für das statische Versenden des Eingabefeldes relevant sein.`\n\t\t\t);\n\t\t}\n\t}\n\n\tpublic validateSyncValueBySelector(value?: SyncValueBySelectorPropType): void {\n\t\tif (EXPERIMENTAL_MODE && typeof value === 'string') {\n\t\t\tconst input = document.querySelector(value) as HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\t\t\tif (input /* SSR instanceof HTMLInputElement */) {\n\t\t\t\tthis.syncToOwnInput = input;\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateName(this.component._name);\n\t\tthis.validateSyncValueBySelector(this.component._syncValueBySelector);\n\t}\n}\n"],"version":3}
1
+ {"file":"associated.controller-b11a31b0.js","mappings":";;;;;;;;;AAeO,MAAM,YAAY,GAAG,CAAC,SAAoC,EAAE,KAAoB,EAAE,OAA4B;EACpHA,2BAAW,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;AACjD,CAAC;;ACTD,MAAM,iBAAiB,GAAGC,6BAAmB,EAAE,CAAC;MASnC,yBAAyB;EAQrC,YAAmB,SAA4C,EAAE,IAAY,EAAE,IAAkB;;IAoFjF,2BAAsB,GAAG,CAAC,QAAwB;;MACjE,MAAM,IAAI,GAAG,MAAA,IAAI,CAAC,cAAc,0CAAE,YAAY,CAAC,MAAM,CAAC,CAAC;MACvD,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,EAAE,EAAE;QACjCC,kBAAO,CAAC,oBAAoB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AAO,QAAQ,KAAK,QAAQ,EAAE;YACjC,iBAAiB,CAAC,YAAY,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAClD,iBAAiB,CAAC,KAAK,GAAG,QAAQ,CAAC;WACnC;eAAM;YACN,iBAAiB,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;YAC3C,iBAAiB,CAAC,KAAK,GAAG,EAAE,CAAC;WAC7B;OACF;KACD;GACD;EAEM,YAAY,CAAC,KAAoB;IACvC,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE;MACnC,KAAK,EAAE;QACN,UAAU,EAAE;UACX,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,KAAe,CAAC,CAAC;SACrF;OACD;KACD,CAAC,CAAC;IACH,IAAI,OAAO,KAAK,KAAK,WAAW,EAAE;MACjCD,kBAAO,CACN,oLAAoL,CACpL,CAAC;KACF;GACD;EAEM,2BAA2B,CAAC,KAAmC;IACrE,IAAI,iBAAiB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;MACnD,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAA+D,CAAC;MAC1G,IAAI,KAAK,EAAwC;QAChD,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;OAC5B;KACD;GACD;EAEM,iBAAiB;IACvB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACxC,IAAI,CAAC,2BAA2B,CAAC,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;GACtE;;;;;","names":["watchString","getExperimentalMode","devHint","devWarning"],"sources":["src/types/props/name.ts","src/components/input-adapter-leanup/associated.controller.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { watchString, WatchStringOptions } from '../../utils/prop.validators';\n\n/* types */\nexport type NamePropType = string;\n\n/**\n * Defines the technical name of an input field.\n */\nexport type PropName = {\n\tname: NamePropType;\n};\n\n/* validator */\nexport const validateName = (component: Generic.Element.Component, value?: NamePropType, options?: WatchStringOptions): void => {\n\twatchString(component, '_name', value, options);\n};\n","import { Generic } from '@a11y-ui/core';\n\nimport { NamePropType, validateName } from '../../types/props/name';\nimport { StencilUnknown } from '../../types/unknown';\nimport { devHint, devWarning } from '../../utils/a11y.tipps';\nimport { getExperimentalMode } from '../../utils/dev.utils';\nimport { PropSyncValueBySelector, SyncValueBySelectorPropType } from '../../types/props/sync-value-by-selector';\n\nconst EXPERIMENTAL_MODE = getExperimentalMode();\n\ntype RequiredProps = NonNullable<unknown>;\ntype OptionalProps = {\n\tname: string;\n} & PropSyncValueBySelector;\ntype Props = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype Watches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\nexport class AssociatedInputController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props;\n\tprotected readonly name: string;\n\tprotected readonly host?: HTMLElement;\n\n\tpublic readonly formAssociated?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\tpublic syncToOwnInput?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\n\tpublic constructor(component: Generic.Element.Component & Props, name: string, host?: HTMLElement) {\n\t\tthis.component = component;\n\t\tthis.host = this.findHostWithShadowRoot(host);\n\t\tthis.name = name;\n\n\t\tif (EXPERIMENTAL_MODE) {\n\t\t\tthis.host?.querySelectorAll('input,select,textarea').forEach((el) => {\n\t\t\t\tthis.host?.removeChild(el);\n\t\t\t});\n\t\t\tswitch (this.name) {\n\t\t\t\tcase 'button':\n\t\t\t\t\tthis.formAssociated = document.createElement('button');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'select':\n\t\t\t\t\tthis.formAssociated = document.createElement('select');\n\t\t\t\t\tthis.formAssociated.setAttribute('multiple', '');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'textarea':\n\t\t\t\t\tthis.formAssociated = document.createElement('textarea');\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tthis.formAssociated = document.createElement('input');\n\t\t\t\t\tthis.formAssociated.setAttribute('type', 'hidden');\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tthis.formAssociated.setAttribute('aria-hidden', 'true');\n\t\t\tthis.formAssociated.setAttribute('data-form-associated', '');\n\t\t\tthis.formAssociated.setAttribute('hidden', '');\n\t\t\tthis.host?.appendChild(this.formAssociated);\n\t\t}\n\t}\n\n\t/**\n\t * The associated elements must not reside within the ShadowRoot and must\n\t * reside as children in the host to be recognized by native forms.\n\t */\n\tprivate findHostWithShadowRoot(host?: HTMLElement): HTMLElement | undefined {\n\t\twhile (host?.shadowRoot === null && host !== document.body) {\n\t\t\thost = host?.parentNode as HTMLElement;\n\t\t\tif ((host as unknown as ShadowRoot).host) {\n\t\t\t\thost = (host as unknown as ShadowRoot).host as HTMLElement;\n\t\t\t}\n\t\t}\n\t\treturn host;\n\t}\n\n\tprotected setAttribute(qualifiedName: string, element?: HTMLElement, value?: string | number | boolean) {\n\t\tif (EXPERIMENTAL_MODE) {\n\t\t\ttry {\n\t\t\t\tvalue = typeof value === 'object' && value !== null ? JSON.stringify(value) : value;\n\t\t\t\tif (typeof value === 'boolean' || typeof value === 'number' || typeof value === 'string') {\n\t\t\t\t\telement?.setAttribute(qualifiedName, `${value as string}`);\n\t\t\t\t} else {\n\t\t\t\t\tthrow new Error(`Invalid value type: ${typeof value}`);\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\telement?.removeAttribute(qualifiedName);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * We need to stringify the value, for the setAttribute method.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttribute\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/attributes\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/attributes#value\n\t *\n\t * TODO: It is possible that the value are a cyclic object value. So we need a custom\n\t * JSON.stringify method from outside to convert it to string.\n\t */\n\tprivate tryToStringifyValue(value: StencilUnknown): string | null {\n\t\ttry {\n\t\t\treturn typeof value === 'object' && value !== null ? JSON.stringify(value).toString() : value === null || value === undefined ? null : value.toString();\n\t\t} catch (e) {\n\t\t\tdevWarning(`The form field raw value is not able to stringify! ${e as string}`);\n\t\t\treturn '';\n\t\t}\n\t}\n\n\t/**\n\t * We try to support native form-associated custom elements.\n\t *\n\t * @see https://github.com/public-ui/kolibri/discussions/2821\n\t */\n\tpublic readonly setFormAssociatedValue = (rawValue: StencilUnknown) => {\n\t\tconst name = this.formAssociated?.getAttribute('name');\n\t\tif (name === null || name === '') {\n\t\t\tdevHint(` The form field (${this.name}) must have a name attribute to be form-associated. Please define the _name attribute.`);\n\t\t}\n\t\tconst strValue = this.tryToStringifyValue(rawValue);\n\t\tthis.syncValue(rawValue, strValue, this.formAssociated);\n\t\tthis.syncValue(rawValue, strValue, this.syncToOwnInput);\n\t};\n\n\tprivate syncValue(\n\t\trawValue: StencilUnknown,\n\t\tstrValue: string | null,\n\t\tassociatedElement?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement\n\t) {\n\t\tif (associatedElement) {\n\t\t\tswitch (this.name) {\n\t\t\t\tcase 'select':\n\t\t\t\t\t(associatedElement as HTMLSelectElement).querySelectorAll('option').forEach((el) => {\n\t\t\t\t\t\t(associatedElement as HTMLSelectElement).removeChild(el);\n\t\t\t\t\t});\n\t\t\t\t\tif (Array.isArray(rawValue)) {\n\t\t\t\t\t\trawValue.forEach((rawValueItem) => {\n\t\t\t\t\t\t\tconst strValueItem = this.tryToStringifyValue(rawValueItem as string);\n\t\t\t\t\t\t\tif (typeof strValueItem === 'string') {\n\t\t\t\t\t\t\t\tconst option = document.createElement('option');\n\t\t\t\t\t\t\t\toption.setAttribute('value', strValueItem);\n\t\t\t\t\t\t\t\toption.setAttribute('selected', '');\n\t\t\t\t\t\t\t\t(associatedElement as HTMLSelectElement).appendChild(option);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif (typeof strValue === 'string') {\n\t\t\t\t\t\tassociatedElement.setAttribute('value', strValue);\n\t\t\t\t\t\tassociatedElement.value = strValue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tassociatedElement.removeAttribute('value');\n\t\t\t\t\t\tassociatedElement.value = '';\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic validateName(value?: NamePropType): void {\n\t\tvalidateName(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: () => {\n\t\t\t\t\tthis.setAttribute('name', this.formAssociated, this.component.state._name as string);\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t\tif (typeof value === 'undefined') {\n\t\t\tdevHint(\n\t\t\t\t`Ein Name am Eingabefeldern oder Schalter ist nicht zwingend erforderlich, kann aber für die Autocomplete-Funktion und für das statische Versenden des Eingabefeldes relevant sein.`\n\t\t\t);\n\t\t}\n\t}\n\n\tpublic validateSyncValueBySelector(value?: SyncValueBySelectorPropType): void {\n\t\tif (EXPERIMENTAL_MODE && typeof value === 'string') {\n\t\t\tconst input = document.querySelector(value) as HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\t\t\tif (input /* SSR instanceof HTMLInputElement */) {\n\t\t\t\tthis.syncToOwnInput = input;\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateName(this.component._name);\n\t\tthis.validateSyncValueBySelector(this.component._syncValueBySelector);\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";const prop_validators=require("./prop.validators-01fe0d91.js"),a11y_tipps=require("./a11y.tipps-aae4870e.js");var colorName={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},colorParse=parse,baseHues={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function parse(r){var e,a,o=[],t=1;if("string"==typeof r)if(r=r.toLowerCase(),colorName[r])o=colorName[r].slice(),a="rgb";else if("transparent"===r)t=0,a="rgb",o=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(r)){var l=r.slice(1);t=1,(s=l.length)<=4?(o=[parseInt(l[0]+l[0],16),parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16)],4===s&&(t=parseInt(l[3]+l[3],16)/255)):(o=[parseInt(l[0]+l[1],16),parseInt(l[2]+l[3],16),parseInt(l[4]+l[5],16)],8===s&&(t=parseInt(l[6]+l[7],16)/255)),o[0]||(o[0]=0),o[1]||(o[1]=0),o[2]||(o[2]=0),a="rgb"}else if(e=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(r)){var n=e[1],i="rgb"===n;a=l=n.replace(/a$/,"");var s="cmyk"===l?4:"gray"===l?1:3;o=e[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(r,e){if(/%$/.test(r))return e===s?parseFloat(r)/100:"rgb"===l?255*parseFloat(r)/100:parseFloat(r);if("h"===l[e]){if(/deg$/.test(r))return parseFloat(r);if(void 0!==baseHues[r])return baseHues[r]}return parseFloat(r)})),n===l&&o.push(1),t=i||void 0===o[s]?1:o[s],o=o.slice(0,s)}else r.length>10&&/[0-9](?:\s|\/)/.test(r)&&(o=r.match(/([0-9]+)/g).map((function(r){return parseFloat(r)})),a=r.match(/([a-z])/gi).join("").toLowerCase());else isNaN(r)?Array.isArray(r)||r.length?(o=[r[0],r[1],r[2]],a="rgb",t=4===r.length?r[3]:1):r instanceof Object&&(null!=r.r||null!=r.red||null!=r.R?(a="rgb",o=[r.r||r.red||r.R||0,r.g||r.green||r.G||0,r.b||r.blue||r.B||0]):(a="hsl",o=[r.h||r.hue||r.H||0,r.s||r.saturation||r.S||0,r.l||r.lightness||r.L||r.b||r.brightness]),t=r.a||r.alpha||r.opacity||1,null!=r.opacity&&(t/=100)):(a="rgb",o=[r>>>16,(65280&r)>>>8,255&r]);return{space:a,values:o,alpha:t}}var colorRgba=function(r){var e;Array.isArray(r)&&r.raw&&(r=String.raw.apply(null,arguments));var a=colorParse(r);if(!a.space)return[];var o=[0,0,0],t="h"===a.space[0]?[360,100,100]:[255,255,255];return(e=Array(3))[0]=Math.min(Math.max(a.values[0],o[0]),t[0]),e[1]=Math.min(Math.max(a.values[1],o[1]),t[1]),e[2]=Math.min(Math.max(a.values[2],o[2]),t[2]),"h"===a.space[0]&&(e=hsl2rgb(e)),e.push(Math.min(Math.max(a.alpha,0),1)),e};function hsl2rgb(r){var e,a,o,t,l,n=r[0]/360,i=r[1]/100,s=r[2]/100,u=0;if(0===i)return[l=255*s,l,l];for(e=2*s-(a=s<.5?s*(1+i):s+i-s*i),t=[0,0,0];u<3;)(o=n+1/3*-(u-1))<0?o++:o>1&&o--,l=6*o<1?e+6*(a-e)*o:2*o<1?a:3*o<2?e+(a-e)*(2/3-o)*6:e,t[u++]=255*l;return t}const getContrastYIQ=(r,e,a)=>(299*r+587*e+114*a)/1e3>=128?-1:1,calcColorContrast=(r,e,a,o=1)=>{const t=[Math.max(Math.min(Math.round(e[0]+o*Math.max(1,e[0]/100)),255),0),Math.max(Math.min(Math.round(e[1]+o*Math.max(1,e[1]/100)),255),0),Math.max(Math.min(Math.round(e[2]+o*Math.max(1,e[2]/100)),255),0)],l=prop_validators.s(prop_validators.rgbaConvert.hex(`rgba(${r.join(",")},1)`),prop_validators.rgbaConvert.hex(`rgba(${t.join(",")},1)`)),n=t[0]+t[1]+t[2];return 0===n||765===n||l>a?{background:r,foreground:t,contrast:l}:calcColorContrast(r,t,a,o)},cache=new Map,getColorContrast=(r,e,a,o=1)=>{if(cache.has(r))return cache.get(r);const t=calcColorContrast(r,e,a,o);return cache.set(r,t),t},createContrastColorPair=(r,e=7)=>{let a=[0,0,0,1],o=[255,255,255,1];"string"==typeof r?(a=colorRgba(r),o=a):"object"==typeof r&&null!==r&&"string"==typeof r.background&&"string"==typeof r.foreground&&(a=colorRgba(r.background),o="string"==typeof r.foreground?colorRgba(r.foreground):a);const t=(l=a[0],n=a[1],i=a[2],(299*l+587*n+114*i)/1e3>=128?-1:1);var l,n,i;const s=getColorContrast([a[0],a[1],a[2]],[o[0],o[1],o[2]],e,t);return o=[...s.foreground,1],{background:prop_validators.rgbaConvert.hex(`rgba(${a.join(",")})`),foreground:prop_validators.rgbaConvert.hex(`rgba(${o.join(",")})`),contrast:s.contrast}},HEX_REGEX=/^#((\d|[a-f]){8}|(\d|[a-f]){6}|(\d|[a-f]){3,4})$/i;function isHexString(r){return HEX_REGEX.test(r)}function isColorObjectString(r){if(r.startsWith("{"))try{const e=JSON.parse(r);if(isValidColorPair(e))return{type:"ColorPair",value:e};if(isValidDeprecatedColorPair(e))return{type:"DeprecatedColorPair",value:e}}catch(r){return{type:null,value:null}}return{type:null,value:null}}function typeOfColor(r){if(r)if("string"==typeof r){if(isHexString(r))return{type:"string",valid:!0,value:r};{const e=isColorObjectString(r);if(e.value)return{type:e.type,valid:!0,value:e.value}}}else{const e=r;if(isValidColorPair(e))return{type:"ColorPair",valid:!0,value:e};const a=r;if(isValidDeprecatedColorPair(a))return{type:"DeprecatedColorPair",valid:!0,value:a}}return{type:null,valid:!1,value:""}}function isValidColorPair(r){return!("object"!=typeof r||!r||"string"!=typeof r.backgroundColor||!("string"==typeof r.foregroundColor||r.foregroundColor&&"string"==typeof r.foregroundColor.primary&&"string"==typeof r.foregroundColor.secondary&&"string"==typeof r.foregroundColor.neutral))}function isValidDeprecatedColorPair(r){return"object"==typeof r&&r&&"string"==typeof r.backgroundColor&&"string"==typeof r.color}function validatorFunction(r){const e=typeOfColor(r);switch(e.type){case null:return!1;case"string":case"ColorPair":case"DeprecatedColorPair":return e.valid}}const validateColor=(r,e,a)=>{prop_validators.watchValidator(r,"_color",validatorFunction,new Set(["rgb in hex","ColorPair"]),e,a)},handleColorChange=r=>{var e;let a;const o=typeOfColor(r);switch(o.type){case"string":a=createContrastColorPair(o.value);break;case"ColorPair":case"DeprecatedColorPair":{const r=o.value,t=o.value;let l="";t.color?l=t.color:"string"==typeof r.foregroundColor?l=r.foregroundColor:(null===(e=r.foregroundColor)||void 0===e?void 0:e.primary)&&(l=r.foregroundColor.primary),l&&"string"==typeof l||(l="#fff"),a=createContrastColorPair({background:r.backgroundColor,foreground:l});break}case null:console.warn(`_color was empty or invalid (${JSON.stringify(r)})`),a=createContrastColorPair({background:"#000",foreground:"#000"})}return a.contrast<7&&a11y_tipps.a11yHint(`[KolBadge] The contrast of ${a.contrast} (≥7, AAA) is to low, between the color pair ${a.background} and ${a.foreground}.`),{backgroundColor:a.background,foregroundColor:a.foreground}};exports.colorRgba=colorRgba,exports.handleColorChange=handleColorChange,exports.validateColor=validateColor;
4
+ "use strict";const prop_validators=require("./prop.validators-39edb5c0.js"),a11y_tipps=require("./a11y.tipps-e6363d33.js");var colorName={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},colorParse=parse,baseHues={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function parse(r){var e,a,o=[],t=1;if("string"==typeof r)if(r=r.toLowerCase(),colorName[r])o=colorName[r].slice(),a="rgb";else if("transparent"===r)t=0,a="rgb",o=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(r)){var l=r.slice(1);t=1,(s=l.length)<=4?(o=[parseInt(l[0]+l[0],16),parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16)],4===s&&(t=parseInt(l[3]+l[3],16)/255)):(o=[parseInt(l[0]+l[1],16),parseInt(l[2]+l[3],16),parseInt(l[4]+l[5],16)],8===s&&(t=parseInt(l[6]+l[7],16)/255)),o[0]||(o[0]=0),o[1]||(o[1]=0),o[2]||(o[2]=0),a="rgb"}else if(e=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(r)){var n=e[1],i="rgb"===n;a=l=n.replace(/a$/,"");var s="cmyk"===l?4:"gray"===l?1:3;o=e[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(r,e){if(/%$/.test(r))return e===s?parseFloat(r)/100:"rgb"===l?255*parseFloat(r)/100:parseFloat(r);if("h"===l[e]){if(/deg$/.test(r))return parseFloat(r);if(void 0!==baseHues[r])return baseHues[r]}return parseFloat(r)})),n===l&&o.push(1),t=i||void 0===o[s]?1:o[s],o=o.slice(0,s)}else r.length>10&&/[0-9](?:\s|\/)/.test(r)&&(o=r.match(/([0-9]+)/g).map((function(r){return parseFloat(r)})),a=r.match(/([a-z])/gi).join("").toLowerCase());else isNaN(r)?Array.isArray(r)||r.length?(o=[r[0],r[1],r[2]],a="rgb",t=4===r.length?r[3]:1):r instanceof Object&&(null!=r.r||null!=r.red||null!=r.R?(a="rgb",o=[r.r||r.red||r.R||0,r.g||r.green||r.G||0,r.b||r.blue||r.B||0]):(a="hsl",o=[r.h||r.hue||r.H||0,r.s||r.saturation||r.S||0,r.l||r.lightness||r.L||r.b||r.brightness]),t=r.a||r.alpha||r.opacity||1,null!=r.opacity&&(t/=100)):(a="rgb",o=[r>>>16,(65280&r)>>>8,255&r]);return{space:a,values:o,alpha:t}}var colorRgba=function(r){var e;Array.isArray(r)&&r.raw&&(r=String.raw.apply(null,arguments));var a=colorParse(r);if(!a.space)return[];var o=[0,0,0],t="h"===a.space[0]?[360,100,100]:[255,255,255];return(e=Array(3))[0]=Math.min(Math.max(a.values[0],o[0]),t[0]),e[1]=Math.min(Math.max(a.values[1],o[1]),t[1]),e[2]=Math.min(Math.max(a.values[2],o[2]),t[2]),"h"===a.space[0]&&(e=hsl2rgb(e)),e.push(Math.min(Math.max(a.alpha,0),1)),e};function hsl2rgb(r){var e,a,o,t,l,n=r[0]/360,i=r[1]/100,s=r[2]/100,u=0;if(0===i)return[l=255*s,l,l];for(e=2*s-(a=s<.5?s*(1+i):s+i-s*i),t=[0,0,0];u<3;)(o=n+1/3*-(u-1))<0?o++:o>1&&o--,l=6*o<1?e+6*(a-e)*o:2*o<1?a:3*o<2?e+(a-e)*(2/3-o)*6:e,t[u++]=255*l;return t}const getContrastYIQ=(r,e,a)=>(299*r+587*e+114*a)/1e3>=128?-1:1,calcColorContrast=(r,e,a,o=1)=>{const t=[Math.max(Math.min(Math.round(e[0]+o*Math.max(1,e[0]/100)),255),0),Math.max(Math.min(Math.round(e[1]+o*Math.max(1,e[1]/100)),255),0),Math.max(Math.min(Math.round(e[2]+o*Math.max(1,e[2]/100)),255),0)],l=prop_validators.s(prop_validators.rgbaConvert.hex(`rgba(${r.join(",")},1)`),prop_validators.rgbaConvert.hex(`rgba(${t.join(",")},1)`)),n=t[0]+t[1]+t[2];return 0===n||765===n||l>a?{background:r,foreground:t,contrast:l}:calcColorContrast(r,t,a,o)},cache=new Map,getColorContrast=(r,e,a,o=1)=>{if(cache.has(r))return cache.get(r);const t=calcColorContrast(r,e,a,o);return cache.set(r,t),t},createContrastColorPair=(r,e=7)=>{let a=[0,0,0,1],o=[255,255,255,1];"string"==typeof r?(a=colorRgba(r),o=a):"object"==typeof r&&null!==r&&"string"==typeof r.background&&"string"==typeof r.foreground&&(a=colorRgba(r.background),o="string"==typeof r.foreground?colorRgba(r.foreground):a);const t=(l=a[0],n=a[1],i=a[2],(299*l+587*n+114*i)/1e3>=128?-1:1);var l,n,i;const s=getColorContrast([a[0],a[1],a[2]],[o[0],o[1],o[2]],e,t);return o=[...s.foreground,1],{background:prop_validators.rgbaConvert.hex(`rgba(${a.join(",")})`),foreground:prop_validators.rgbaConvert.hex(`rgba(${o.join(",")})`),contrast:s.contrast}},HEX_REGEX=/^#((\d|[a-f]){8}|(\d|[a-f]){6}|(\d|[a-f]){3,4})$/i;function isHexString(r){return HEX_REGEX.test(r)}function isColorObjectString(r){if(r.startsWith("{"))try{const e=JSON.parse(r);if(isValidColorPair(e))return{type:"ColorPair",value:e};if(isValidDeprecatedColorPair(e))return{type:"DeprecatedColorPair",value:e}}catch(r){return{type:null,value:null}}return{type:null,value:null}}function typeOfColor(r){if(r)if("string"==typeof r){if(isHexString(r))return{type:"string",valid:!0,value:r};{const e=isColorObjectString(r);if(e.value)return{type:e.type,valid:!0,value:e.value}}}else{const e=r;if(isValidColorPair(e))return{type:"ColorPair",valid:!0,value:e};const a=r;if(isValidDeprecatedColorPair(a))return{type:"DeprecatedColorPair",valid:!0,value:a}}return{type:null,valid:!1,value:""}}function isValidColorPair(r){return!("object"!=typeof r||!r||"string"!=typeof r.backgroundColor||!("string"==typeof r.foregroundColor||r.foregroundColor&&"string"==typeof r.foregroundColor.primary&&"string"==typeof r.foregroundColor.secondary&&"string"==typeof r.foregroundColor.neutral))}function isValidDeprecatedColorPair(r){return"object"==typeof r&&r&&"string"==typeof r.backgroundColor&&"string"==typeof r.color}function validatorFunction(r){const e=typeOfColor(r);switch(e.type){case null:return!1;case"string":case"ColorPair":case"DeprecatedColorPair":return e.valid}}const validateColor=(r,e,a)=>{prop_validators.watchValidator(r,"_color",validatorFunction,new Set(["rgb in hex","ColorPair"]),e,a)},handleColorChange=r=>{var e;let a;const o=typeOfColor(r);switch(o.type){case"string":a=createContrastColorPair(o.value);break;case"ColorPair":case"DeprecatedColorPair":{const r=o.value,t=o.value;let l="";t.color?l=t.color:"string"==typeof r.foregroundColor?l=r.foregroundColor:(null===(e=r.foregroundColor)||void 0===e?void 0:e.primary)&&(l=r.foregroundColor.primary),l&&"string"==typeof l||(l="#fff"),a=createContrastColorPair({background:r.backgroundColor,foreground:l});break}case null:console.warn(`_color was empty or invalid (${JSON.stringify(r)})`),a=createContrastColorPair({background:"#000",foreground:"#000"})}return a.contrast<7&&a11y_tipps.a11yHint(`[KolBadge] The contrast of ${a.contrast} (≥7, AAA) is to low, between the color pair ${a.background} and ${a.foreground}.`),{backgroundColor:a.background,foregroundColor:a.foreground}};exports.colorRgba=colorRgba,exports.handleColorChange=handleColorChange,exports.validateColor=validateColor;