@public-ui/components 4.3.0-rc.6 → 4.3.0-rc.8

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 (755) hide show
  1. package/assets/kolicons/kolicons.eot +0 -0
  2. package/assets/kolicons/kolicons.ttf +0 -0
  3. package/assets/kolicons/kolicons.woff +0 -0
  4. package/assets/kolicons/kolicons.woff2 +0 -0
  5. package/assets/kolicons/style.css +6 -6
  6. package/custom-elements.json +33 -23
  7. package/dist/cjs/{Alert-Bv-BrwWN.js → Alert-DaJBbnJz.js} +7 -7
  8. package/dist/cjs/Alert-DaJBbnJz.js.map +1 -0
  9. package/dist/cjs/{Collapsible-N888YIaY.js → Collapsible-A7UN8xYs.js} +5 -5
  10. package/dist/cjs/{Collapsible-N888YIaY.js.map → Collapsible-A7UN8xYs.js.map} +1 -1
  11. package/dist/cjs/{CustomSuggestionsOptionsGroup-Ce_KdNHi.js → CustomSuggestionsOptionsGroup-B3zKmcfZ.js} +3 -3
  12. package/dist/cjs/{CustomSuggestionsOptionsGroup-Ce_KdNHi.js.map → CustomSuggestionsOptionsGroup-B3zKmcfZ.js.map} +1 -1
  13. package/dist/cjs/{FieldControlStateWrapper-Dlk1fdof.js → FieldControlStateWrapper-Blru_T0E.js} +7 -7
  14. package/dist/cjs/{FieldControlStateWrapper-Dlk1fdof.js.map → FieldControlStateWrapper-Blru_T0E.js.map} +1 -1
  15. package/dist/cjs/{FormFieldStateWrapper-DG4emSy6.js → FormFieldStateWrapper-DZhEbBYb.js} +7 -7
  16. package/dist/cjs/{FormFieldStateWrapper-DG4emSy6.js.map → FormFieldStateWrapper-DZhEbBYb.js.map} +1 -1
  17. package/dist/cjs/{Heading-CW1KAWWX.js → Heading-CtLCdnno.js} +3 -3
  18. package/dist/cjs/{Heading-CW1KAWWX.js.map → Heading-CtLCdnno.js.map} +1 -1
  19. package/dist/cjs/{Input-Cmz65bTo.js → Input-CTIvgASH.js} +5 -5
  20. package/dist/cjs/{Input-Cmz65bTo.js.map → Input-CTIvgASH.js.map} +1 -1
  21. package/dist/cjs/{InputStateWrapper-IceSl4Va.js → InputStateWrapper-D-fmIPN-.js} +6 -6
  22. package/dist/cjs/{InputStateWrapper-IceSl4Va.js.map → InputStateWrapper-D-fmIPN-.js.map} +1 -1
  23. package/dist/cjs/{app-globals-Ca-u9rrU.js → app-globals-hKB4iA5u.js} +4 -4
  24. package/dist/cjs/{app-globals-Ca-u9rrU.js.map → app-globals-hKB4iA5u.js.map} +1 -1
  25. package/dist/cjs/{component-Ds_ZSFId.js → component-D2hfqi2r.js} +4 -4
  26. package/dist/cjs/{component-Ds_ZSFId.js.map → component-D2hfqi2r.js.map} +1 -1
  27. package/dist/cjs/{component-lcKfLD3W.js → component-DzuSWpVF.js} +3 -3
  28. package/dist/cjs/{component-lcKfLD3W.js.map → component-DzuSWpVF.js.map} +1 -1
  29. package/dist/cjs/{component-D2XqZH09.js → component-GSsStkDl.js} +4 -4
  30. package/dist/cjs/{component-D2XqZH09.js.map → component-GSsStkDl.js.map} +1 -1
  31. package/dist/cjs/{component-MHZzZs8b.js → component-XgOEs159.js} +3 -3
  32. package/dist/cjs/{component-MHZzZs8b.js.map → component-XgOEs159.js.map} +1 -1
  33. package/dist/cjs/contrast-BaY16D1Q.js.map +1 -1
  34. package/dist/cjs/{controller-CplkzBYs.js → controller-BRUHGsKj.js} +3 -3
  35. package/dist/cjs/{controller-CplkzBYs.js.map → controller-BRUHGsKj.js.map} +1 -1
  36. package/dist/cjs/{controller-C1na4nXZ.js → controller-BdPPNnZm.js} +3 -3
  37. package/dist/cjs/{controller-C1na4nXZ.js.map → controller-BdPPNnZm.js.map} +1 -1
  38. package/dist/cjs/{controller-_MCMA-7O.js → controller-DI9a-feu.js} +3 -3
  39. package/dist/cjs/{controller-_MCMA-7O.js.map → controller-DI9a-feu.js.map} +1 -1
  40. package/dist/cjs/{controller-icon-BrREvyH1.js → controller-icon-Ds2Cvph9.js} +6 -6
  41. package/dist/cjs/{controller-icon-BrREvyH1.js.map → controller-icon-Ds2Cvph9.js.map} +1 -1
  42. package/dist/cjs/{dev.utils-BqG9VVIl.js → dev.utils-C5bWjmuw.js} +3 -3
  43. package/dist/cjs/{dev.utils-BqG9VVIl.js.map → dev.utils-C5bWjmuw.js.map} +1 -1
  44. package/dist/cjs/{devtools-CRdIaIkv.js → devtools-CpVKpbEG.js} +4 -4
  45. package/dist/cjs/{devtools-CRdIaIkv.js.map → devtools-CpVKpbEG.js.map} +1 -1
  46. package/dist/cjs/{index-uy6c1C7T.js → index-PpdE67jR.js} +3 -3
  47. package/dist/cjs/{index-uy6c1C7T.js.map → index-PpdE67jR.js.map} +1 -1
  48. package/dist/cjs/kol-abbr.cjs.entry.js +2 -2
  49. package/dist/cjs/kol-abbr.entry.cjs.js.map +1 -1
  50. package/dist/cjs/kol-accordion.cjs.entry.js +5 -5
  51. package/dist/cjs/kol-accordion.entry.cjs.js.map +1 -1
  52. package/dist/cjs/kol-alert-wc.cjs.entry.js +4 -4
  53. package/dist/cjs/kol-alert.cjs.entry.js +2 -2
  54. package/dist/cjs/kol-alert.entry.cjs.js.map +1 -1
  55. package/dist/cjs/kol-avatar.cjs.entry.js +2 -2
  56. package/dist/cjs/kol-avatar.entry.cjs.js.map +1 -1
  57. package/dist/cjs/kol-badge.cjs.entry.js +7 -7
  58. package/dist/cjs/kol-badge.entry.cjs.js.map +1 -1
  59. package/dist/cjs/kol-breadcrumb.cjs.entry.js +3 -3
  60. package/dist/cjs/kol-breadcrumb.entry.cjs.js.map +1 -1
  61. package/dist/cjs/kol-button-link.cjs.entry.js +2 -2
  62. package/dist/cjs/kol-button-link.entry.cjs.js.map +1 -1
  63. package/dist/cjs/kol-button-wc.cjs.entry.js +4 -4
  64. package/dist/cjs/kol-button.cjs.entry.js +3 -3
  65. package/dist/cjs/kol-button.entry.cjs.js.map +1 -1
  66. package/dist/cjs/kol-card-wc.cjs.entry.js +6 -6
  67. package/dist/cjs/kol-card.cjs.entry.js +2 -2
  68. package/dist/cjs/kol-card.entry.cjs.js.map +1 -1
  69. package/dist/cjs/kol-click-button.cjs.entry.js +2 -2
  70. package/dist/cjs/kol-combobox.cjs.entry.js +13 -13
  71. package/dist/cjs/kol-combobox.entry.cjs.js.map +1 -1
  72. package/dist/cjs/kol-details.cjs.entry.js +5 -5
  73. package/dist/cjs/kol-details.entry.cjs.js.map +1 -1
  74. package/dist/cjs/kol-dialog-wc.cjs.entry.js +2 -2
  75. package/dist/cjs/kol-dialog.cjs.entry.js +2 -2
  76. package/dist/cjs/kol-dialog.entry.cjs.js.map +1 -1
  77. package/dist/cjs/kol-drawer.cjs.entry.js +3 -3
  78. package/dist/cjs/kol-drawer.entry.cjs.js.map +1 -1
  79. package/dist/cjs/kol-form.cjs.entry.js +5 -5
  80. package/dist/cjs/kol-form.entry.cjs.js.map +1 -1
  81. package/dist/cjs/kol-heading.cjs.entry.js +3 -3
  82. package/dist/cjs/kol-heading.entry.cjs.js.map +1 -1
  83. package/dist/cjs/kol-icon.cjs.entry.js +3 -3
  84. package/dist/cjs/kol-image.cjs.entry.js +2 -2
  85. package/dist/cjs/kol-image.entry.cjs.js.map +1 -1
  86. package/dist/cjs/kol-input-checkbox.cjs.entry.js +13 -13
  87. package/dist/cjs/kol-input-checkbox.entry.cjs.js.map +1 -1
  88. package/dist/cjs/kol-input-color.cjs.entry.js +12 -12
  89. package/dist/cjs/kol-input-color.entry.cjs.js.map +1 -1
  90. package/dist/cjs/kol-input-date.cjs.entry.js +13 -13
  91. package/dist/cjs/kol-input-date.entry.cjs.js.map +1 -1
  92. package/dist/cjs/kol-input-email.cjs.entry.js +15 -15
  93. package/dist/cjs/kol-input-email.entry.cjs.js.map +1 -1
  94. package/dist/cjs/kol-input-file.cjs.entry.js +12 -12
  95. package/dist/cjs/kol-input-file.entry.cjs.js.map +1 -1
  96. package/dist/cjs/kol-input-number.cjs.entry.js +13 -13
  97. package/dist/cjs/kol-input-number.entry.cjs.js.map +1 -1
  98. package/dist/cjs/kol-input-password.cjs.entry.js +14 -14
  99. package/dist/cjs/kol-input-password.entry.cjs.js.map +1 -1
  100. package/dist/cjs/kol-input-radio.cjs.entry.js +13 -13
  101. package/dist/cjs/kol-input-radio.entry.cjs.js.map +1 -1
  102. package/dist/cjs/kol-input-range.cjs.entry.js +13 -13
  103. package/dist/cjs/kol-input-range.entry.cjs.js.map +1 -1
  104. package/dist/cjs/kol-input-text.cjs.entry.js +15 -15
  105. package/dist/cjs/kol-input-text.entry.cjs.js.map +1 -1
  106. package/dist/cjs/kol-kolibri.cjs.entry.js +2 -2
  107. package/dist/cjs/kol-kolibri.entry.cjs.js.map +1 -1
  108. package/dist/cjs/kol-link-button.cjs.entry.js +2 -2
  109. package/dist/cjs/kol-link-button.entry.cjs.js.map +1 -1
  110. package/dist/cjs/kol-link-wc.cjs.entry.js +4 -4
  111. package/dist/cjs/kol-link.cjs.entry.js +3 -3
  112. package/dist/cjs/kol-link.entry.cjs.js.map +1 -1
  113. package/dist/cjs/kol-meter.cjs.entry.js +2 -2
  114. package/dist/cjs/kol-meter.entry.cjs.js.map +1 -1
  115. package/dist/cjs/kol-modal.cjs.entry.js +2 -2
  116. package/dist/cjs/kol-modal.entry.cjs.js.map +1 -1
  117. package/dist/cjs/kol-nav.cjs.entry.js +3 -3
  118. package/dist/cjs/kol-nav.entry.cjs.js.map +1 -1
  119. package/dist/cjs/kol-pagination-wc.cjs.entry.js +2 -2
  120. package/dist/cjs/kol-pagination.cjs.entry.js +2 -2
  121. package/dist/cjs/kol-pagination.entry.cjs.js.map +1 -1
  122. package/dist/cjs/kol-popover-button-wc.cjs.entry.js +2 -2
  123. package/dist/cjs/kol-popover-button.cjs.entry.js +2 -2
  124. package/dist/cjs/kol-popover-button.entry.cjs.js.map +1 -1
  125. package/dist/cjs/kol-progress.cjs.entry.js +2 -2
  126. package/dist/cjs/kol-progress.entry.cjs.js.map +1 -1
  127. package/dist/cjs/kol-quote.cjs.entry.js +2 -2
  128. package/dist/cjs/kol-quote.entry.cjs.js.map +1 -1
  129. package/dist/cjs/kol-select-wc.cjs.entry.js +12 -12
  130. package/dist/cjs/kol-select-wc.entry.cjs.js.map +1 -1
  131. package/dist/cjs/kol-select.cjs.entry.js +3 -3
  132. package/dist/cjs/kol-select.entry.cjs.js.map +1 -1
  133. package/dist/cjs/kol-single-select.cjs.entry.js +19 -20
  134. package/dist/cjs/kol-single-select.entry.cjs.js.map +1 -1
  135. package/dist/cjs/kol-skeleton.cjs.entry.js +2 -2
  136. package/dist/cjs/kol-skip-nav.cjs.entry.js +2 -2
  137. package/dist/cjs/kol-skip-nav.entry.cjs.js.map +1 -1
  138. package/dist/cjs/kol-spin.cjs.entry.js +2 -2
  139. package/dist/cjs/kol-spin.entry.cjs.js.map +1 -1
  140. package/dist/cjs/kol-split-button.cjs.entry.js +2 -2
  141. package/dist/cjs/kol-split-button.entry.cjs.js.map +1 -1
  142. package/dist/cjs/kol-table-settings-wc.cjs.entry.js +1 -1
  143. package/dist/cjs/kol-table-stateful.cjs.entry.js +2 -2
  144. package/dist/cjs/kol-table-stateful.entry.cjs.js.map +1 -1
  145. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +5 -5
  146. package/dist/cjs/kol-table-stateless.cjs.entry.js +2 -2
  147. package/dist/cjs/kol-table-stateless.entry.cjs.js.map +1 -1
  148. package/dist/cjs/kol-tabs.cjs.entry.js +2 -2
  149. package/dist/cjs/kol-tabs.entry.cjs.js.map +1 -1
  150. package/dist/cjs/kol-textarea.cjs.entry.js +11 -11
  151. package/dist/cjs/kol-textarea.entry.cjs.js.map +1 -1
  152. package/dist/cjs/kol-toast-container.cjs.entry.js +7 -7
  153. package/dist/cjs/kol-toast-container.entry.cjs.js.map +1 -1
  154. package/dist/cjs/kol-toolbar.cjs.entry.js +2 -2
  155. package/dist/cjs/kol-toolbar.entry.cjs.js.map +1 -1
  156. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +4 -4
  157. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +3 -3
  158. package/dist/cjs/kol-tree-item.cjs.entry.js +2 -2
  159. package/dist/cjs/kol-tree-item.entry.cjs.js.map +1 -1
  160. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  161. package/dist/cjs/kol-tree.cjs.entry.js +2 -2
  162. package/dist/cjs/kol-tree.entry.cjs.js.map +1 -1
  163. package/dist/cjs/kol-version.cjs.entry.js +2 -2
  164. package/dist/cjs/kol-version.entry.cjs.js.map +1 -1
  165. package/dist/cjs/kolibri.cjs.js +2 -2
  166. package/dist/cjs/loader.cjs.js +2 -2
  167. package/dist/cjs/test-component.cjs.entry.js +1 -1
  168. package/dist/collection/components/abbr/style.css +8 -5
  169. package/dist/collection/components/accordion/style.css +8 -5
  170. package/dist/collection/components/alert/style.css +19 -10
  171. package/dist/collection/components/avatar/style.css +6 -3
  172. package/dist/collection/components/badge/shadow.js +2 -2
  173. package/dist/collection/components/badge/shadow.js.map +1 -1
  174. package/dist/collection/components/badge/style.css +8 -5
  175. package/dist/collection/components/breadcrumb/style.css +8 -5
  176. package/dist/collection/components/button/shadow.js +1 -1
  177. package/dist/collection/components/button/shadow.js.map +1 -1
  178. package/dist/collection/components/button/style.css +8 -5
  179. package/dist/collection/components/button-link/style.css +8 -5
  180. package/dist/collection/components/card/style.css +8 -5
  181. package/dist/collection/components/combobox/style.css +19 -10
  182. package/dist/collection/components/details/style.css +8 -5
  183. package/dist/collection/components/dialog/style.css +8 -5
  184. package/dist/collection/components/drawer/style.css +8 -5
  185. package/dist/collection/components/form/style.css +19 -10
  186. package/dist/collection/components/heading/component.js +1 -1
  187. package/dist/collection/components/heading/component.js.map +1 -1
  188. package/dist/collection/components/heading/style.css +6 -3
  189. package/dist/collection/components/icon/style.css +2 -2
  190. package/dist/collection/components/image/style.css +6 -3
  191. package/dist/collection/components/input-checkbox/shadow.js +1 -1
  192. package/dist/collection/components/input-checkbox/shadow.js.map +1 -1
  193. package/dist/collection/components/input-checkbox/style.css +19 -10
  194. package/dist/collection/components/input-color/style.css +19 -10
  195. package/dist/collection/components/input-date/shadow.js +1 -1
  196. package/dist/collection/components/input-date/shadow.js.map +1 -1
  197. package/dist/collection/components/input-date/style.css +19 -10
  198. package/dist/collection/components/input-email/shadow.js +1 -1
  199. package/dist/collection/components/input-email/shadow.js.map +1 -1
  200. package/dist/collection/components/input-email/style.css +19 -10
  201. package/dist/collection/components/input-file/style.css +19 -10
  202. package/dist/collection/components/input-number/shadow.js +1 -1
  203. package/dist/collection/components/input-number/shadow.js.map +1 -1
  204. package/dist/collection/components/input-number/style.css +19 -10
  205. package/dist/collection/components/input-password/shadow.js +1 -1
  206. package/dist/collection/components/input-password/shadow.js.map +1 -1
  207. package/dist/collection/components/input-password/style.css +19 -10
  208. package/dist/collection/components/input-radio/shadow.js +1 -1
  209. package/dist/collection/components/input-radio/shadow.js.map +1 -1
  210. package/dist/collection/components/input-radio/style.css +19 -10
  211. package/dist/collection/components/input-range/shadow.js +1 -1
  212. package/dist/collection/components/input-range/shadow.js.map +1 -1
  213. package/dist/collection/components/input-range/style.css +19 -10
  214. package/dist/collection/components/input-text/shadow.js +1 -1
  215. package/dist/collection/components/input-text/shadow.js.map +1 -1
  216. package/dist/collection/components/input-text/style.css +19 -10
  217. package/dist/collection/components/kolibri/style.css +6 -3
  218. package/dist/collection/components/link/shadow.js +1 -1
  219. package/dist/collection/components/link/shadow.js.map +1 -1
  220. package/dist/collection/components/link/style.css +8 -5
  221. package/dist/collection/components/link-button/style.css +8 -5
  222. package/dist/collection/components/meter/style.css +6 -3
  223. package/dist/collection/components/modal/style.css +8 -5
  224. package/dist/collection/components/nav/style.css +8 -5
  225. package/dist/collection/components/pagination/style.css +19 -10
  226. package/dist/collection/components/popover-button/style.css +8 -5
  227. package/dist/collection/components/progress/style.css +6 -3
  228. package/dist/collection/components/quote/style.css +6 -3
  229. package/dist/collection/components/select/component.js +2 -2
  230. package/dist/collection/components/select/component.js.map +1 -1
  231. package/dist/collection/components/select/shadow.js +1 -1
  232. package/dist/collection/components/select/shadow.js.map +1 -1
  233. package/dist/collection/components/select/style.css +19 -10
  234. package/dist/collection/components/single-select/shadow.js +5 -6
  235. package/dist/collection/components/single-select/shadow.js.map +1 -1
  236. package/dist/collection/components/single-select/style.css +19 -10
  237. package/dist/collection/components/skip-nav/style.css +8 -5
  238. package/dist/collection/components/spin/style.css +6 -3
  239. package/dist/collection/components/split-button/style.css +8 -5
  240. package/dist/collection/components/table-stateful/style.css +30 -15
  241. package/dist/collection/components/table-stateless/style.css +19 -10
  242. package/dist/collection/components/tabs/style.css +8 -5
  243. package/dist/collection/components/textarea/shadow.js +1 -1
  244. package/dist/collection/components/textarea/shadow.js.map +1 -1
  245. package/dist/collection/components/textarea/style.css +19 -10
  246. package/dist/collection/components/toaster/style.css +19 -10
  247. package/dist/collection/components/toolbar/style.css +8 -5
  248. package/dist/collection/components/tree/style.css +6 -3
  249. package/dist/collection/components/tree-item/style.css +8 -5
  250. package/dist/collection/components/version/style.css +6 -3
  251. package/dist/collection/functional-components/Alert/Alert.js +2 -2
  252. package/dist/collection/functional-components/Alert/Alert.js.map +1 -1
  253. package/dist/collection/schema/utils/contrast.js.map +1 -1
  254. package/dist/components/Alert.js +2 -2
  255. package/dist/components/Alert.js.map +1 -1
  256. package/dist/components/contrast.js.map +1 -1
  257. package/dist/components/kol-abbr.js +1 -1
  258. package/dist/components/kol-abbr.js.map +1 -1
  259. package/dist/components/kol-accordion.js +1 -1
  260. package/dist/components/kol-accordion.js.map +1 -1
  261. package/dist/components/kol-alert.js +1 -1
  262. package/dist/components/kol-alert.js.map +1 -1
  263. package/dist/components/kol-avatar.js +1 -1
  264. package/dist/components/kol-avatar.js.map +1 -1
  265. package/dist/components/kol-badge.js +3 -3
  266. package/dist/components/kol-badge.js.map +1 -1
  267. package/dist/components/kol-breadcrumb.js +1 -1
  268. package/dist/components/kol-breadcrumb.js.map +1 -1
  269. package/dist/components/kol-button-link.js +1 -1
  270. package/dist/components/kol-button-link.js.map +1 -1
  271. package/dist/components/kol-button.js +2 -2
  272. package/dist/components/kol-button.js.map +1 -1
  273. package/dist/components/kol-card.js +1 -1
  274. package/dist/components/kol-card.js.map +1 -1
  275. package/dist/components/kol-combobox.js +1 -1
  276. package/dist/components/kol-combobox.js.map +1 -1
  277. package/dist/components/kol-details.js +1 -1
  278. package/dist/components/kol-details.js.map +1 -1
  279. package/dist/components/kol-dialog.js +1 -1
  280. package/dist/components/kol-dialog.js.map +1 -1
  281. package/dist/components/kol-drawer.js +1 -1
  282. package/dist/components/kol-drawer.js.map +1 -1
  283. package/dist/components/kol-form.js +1 -1
  284. package/dist/components/kol-form.js.map +1 -1
  285. package/dist/components/kol-heading.js +2 -2
  286. package/dist/components/kol-heading.js.map +1 -1
  287. package/dist/components/kol-icon.js +1 -1
  288. package/dist/components/kol-image.js +1 -1
  289. package/dist/components/kol-image.js.map +1 -1
  290. package/dist/components/kol-input-checkbox.js +2 -2
  291. package/dist/components/kol-input-checkbox.js.map +1 -1
  292. package/dist/components/kol-input-color.js +1 -1
  293. package/dist/components/kol-input-color.js.map +1 -1
  294. package/dist/components/kol-input-date.js +2 -2
  295. package/dist/components/kol-input-date.js.map +1 -1
  296. package/dist/components/kol-input-email.js +2 -2
  297. package/dist/components/kol-input-email.js.map +1 -1
  298. package/dist/components/kol-input-file.js +1 -1
  299. package/dist/components/kol-input-file.js.map +1 -1
  300. package/dist/components/kol-input-number.js +2 -2
  301. package/dist/components/kol-input-number.js.map +1 -1
  302. package/dist/components/kol-input-password.js +2 -2
  303. package/dist/components/kol-input-password.js.map +1 -1
  304. package/dist/components/kol-input-radio.js +2 -2
  305. package/dist/components/kol-input-radio.js.map +1 -1
  306. package/dist/components/kol-input-range.js +2 -2
  307. package/dist/components/kol-input-range.js.map +1 -1
  308. package/dist/components/kol-input-text.js +2 -2
  309. package/dist/components/kol-input-text.js.map +1 -1
  310. package/dist/components/kol-kolibri.js +1 -1
  311. package/dist/components/kol-kolibri.js.map +1 -1
  312. package/dist/components/kol-link-button.js +1 -1
  313. package/dist/components/kol-link-button.js.map +1 -1
  314. package/dist/components/kol-link.js +2 -2
  315. package/dist/components/kol-link.js.map +1 -1
  316. package/dist/components/kol-meter.js +1 -1
  317. package/dist/components/kol-meter.js.map +1 -1
  318. package/dist/components/kol-modal.js +1 -1
  319. package/dist/components/kol-modal.js.map +1 -1
  320. package/dist/components/kol-nav.js +1 -1
  321. package/dist/components/kol-nav.js.map +1 -1
  322. package/dist/components/kol-pagination.js +1 -1
  323. package/dist/components/kol-pagination.js.map +1 -1
  324. package/dist/components/kol-popover-button.js +1 -1
  325. package/dist/components/kol-popover-button.js.map +1 -1
  326. package/dist/components/kol-progress.js +1 -1
  327. package/dist/components/kol-progress.js.map +1 -1
  328. package/dist/components/kol-quote.js +1 -1
  329. package/dist/components/kol-quote.js.map +1 -1
  330. package/dist/components/kol-select-wc.js +2 -2
  331. package/dist/components/kol-select-wc.js.map +1 -1
  332. package/dist/components/kol-select.js +2 -2
  333. package/dist/components/kol-select.js.map +1 -1
  334. package/dist/components/kol-single-select.js +6 -7
  335. package/dist/components/kol-single-select.js.map +1 -1
  336. package/dist/components/kol-skip-nav.js +1 -1
  337. package/dist/components/kol-skip-nav.js.map +1 -1
  338. package/dist/components/kol-spin.js +1 -1
  339. package/dist/components/kol-spin.js.map +1 -1
  340. package/dist/components/kol-split-button.js +1 -1
  341. package/dist/components/kol-split-button.js.map +1 -1
  342. package/dist/components/kol-table-stateful.js +1 -1
  343. package/dist/components/kol-table-stateful.js.map +1 -1
  344. package/dist/components/kol-table-stateless.js +1 -1
  345. package/dist/components/kol-table-stateless.js.map +1 -1
  346. package/dist/components/kol-tabs.js +1 -1
  347. package/dist/components/kol-tabs.js.map +1 -1
  348. package/dist/components/kol-textarea.js +2 -2
  349. package/dist/components/kol-textarea.js.map +1 -1
  350. package/dist/components/kol-toast-container.js +1 -1
  351. package/dist/components/kol-toast-container.js.map +1 -1
  352. package/dist/components/kol-toolbar.js +1 -1
  353. package/dist/components/kol-toolbar.js.map +1 -1
  354. package/dist/components/kol-tree-item.js +1 -1
  355. package/dist/components/kol-tree-item.js.map +1 -1
  356. package/dist/components/kol-tree.js +1 -1
  357. package/dist/components/kol-tree.js.map +1 -1
  358. package/dist/components/kol-version.js +1 -1
  359. package/dist/components/kol-version.js.map +1 -1
  360. package/dist/esm/{Alert-CVh_XwxH.js → Alert-DaPXnitr.js} +7 -7
  361. package/dist/esm/Alert-DaPXnitr.js.map +1 -0
  362. package/dist/esm/{Collapsible-Cy_Z7SX6.js → Collapsible-DF7peDBr.js} +5 -5
  363. package/dist/{kolibri/Collapsible-Cy_Z7SX6.js.map → esm/Collapsible-DF7peDBr.js.map} +1 -1
  364. package/dist/esm/{CustomSuggestionsOptionsGroup-2QjXZ-dA.js → CustomSuggestionsOptionsGroup-Cq1zSfAU.js} +3 -3
  365. package/dist/{kolibri/CustomSuggestionsOptionsGroup-2QjXZ-dA.js.map → esm/CustomSuggestionsOptionsGroup-Cq1zSfAU.js.map} +1 -1
  366. package/dist/esm/{FieldControlStateWrapper-BY46U1nq.js → FieldControlStateWrapper-BJhTtIF3.js} +7 -7
  367. package/dist/esm/{FieldControlStateWrapper-BY46U1nq.js.map → FieldControlStateWrapper-BJhTtIF3.js.map} +1 -1
  368. package/dist/esm/{FormFieldStateWrapper-DFV1TBk5.js → FormFieldStateWrapper-BogeRuh6.js} +7 -7
  369. package/dist/esm/{FormFieldStateWrapper-DFV1TBk5.js.map → FormFieldStateWrapper-BogeRuh6.js.map} +1 -1
  370. package/dist/esm/{Heading-BKIw2hie.js → Heading-Fmn2Xnfo.js} +3 -3
  371. package/dist/{kolibri/Heading-BKIw2hie.js.map → esm/Heading-Fmn2Xnfo.js.map} +1 -1
  372. package/dist/esm/{Input-B4nV0JRw.js → Input-My07QUjz.js} +5 -5
  373. package/dist/{kolibri/Input-B4nV0JRw.js.map → esm/Input-My07QUjz.js.map} +1 -1
  374. package/dist/esm/{InputStateWrapper-Cjv8q51E.js → InputStateWrapper-BkBD8al2.js} +6 -6
  375. package/dist/esm/{InputStateWrapper-Cjv8q51E.js.map → InputStateWrapper-BkBD8al2.js.map} +1 -1
  376. package/dist/esm/{app-globals-DBooI_-E.js → app-globals-BSt2bjJi.js} +4 -4
  377. package/dist/esm/{app-globals-DBooI_-E.js.map → app-globals-BSt2bjJi.js.map} +1 -1
  378. package/dist/esm/{component-DzpPAOzx.js → component-BXaOK6YH.js} +3 -3
  379. package/dist/esm/{component-DzpPAOzx.js.map → component-BXaOK6YH.js.map} +1 -1
  380. package/dist/esm/{component-8mzKPFWl.js → component-DBqyeAbt.js} +4 -4
  381. package/dist/esm/{component-8mzKPFWl.js.map → component-DBqyeAbt.js.map} +1 -1
  382. package/dist/esm/{component-BG44r5Mq.js → component-DDkRuod7.js} +4 -4
  383. package/dist/{kolibri/component-BG44r5Mq.js.map → esm/component-DDkRuod7.js.map} +1 -1
  384. package/dist/esm/{component-CCQEFb4H.js → component-lILf7M8Y.js} +3 -3
  385. package/dist/esm/{component-CCQEFb4H.js.map → component-lILf7M8Y.js.map} +1 -1
  386. package/dist/esm/contrast-CnVYN_kl.js.map +1 -1
  387. package/dist/esm/{controller-CE9LAI82.js → controller-B-aPh-rK.js} +3 -3
  388. package/dist/esm/{controller-CE9LAI82.js.map → controller-B-aPh-rK.js.map} +1 -1
  389. package/dist/esm/{controller-iY_1YW2P.js → controller-BKG2L8_f.js} +3 -3
  390. package/dist/esm/{controller-iY_1YW2P.js.map → controller-BKG2L8_f.js.map} +1 -1
  391. package/dist/esm/{controller-BCZEcGnd.js → controller-i4DAkaDb.js} +3 -3
  392. package/dist/{kolibri/controller-BCZEcGnd.js.map → esm/controller-i4DAkaDb.js.map} +1 -1
  393. package/dist/esm/{controller-icon-CQmlbwLY.js → controller-icon-lAqXvi57.js} +6 -6
  394. package/dist/{kolibri/controller-icon-CQmlbwLY.js.map → esm/controller-icon-lAqXvi57.js.map} +1 -1
  395. package/dist/esm/{dev.utils-BXf9h7MR.js → dev.utils-4OwwrWYD.js} +3 -3
  396. package/dist/esm/{dev.utils-BXf9h7MR.js.map → dev.utils-4OwwrWYD.js.map} +1 -1
  397. package/dist/esm/{devtools-DhAP1aCO.js → devtools-DQZUKzkH.js} +4 -4
  398. package/dist/esm/{devtools-DhAP1aCO.js.map → devtools-DQZUKzkH.js.map} +1 -1
  399. package/dist/esm/{index-C5dCp7IP.js → index-wGO77oPq.js} +3 -3
  400. package/dist/{kolibri/index-C5dCp7IP.js.map → esm/index-wGO77oPq.js.map} +1 -1
  401. package/dist/esm/kol-abbr.entry.js +2 -2
  402. package/dist/esm/kol-abbr.entry.js.map +1 -1
  403. package/dist/esm/kol-accordion.entry.js +5 -5
  404. package/dist/esm/kol-accordion.entry.js.map +1 -1
  405. package/dist/esm/kol-alert-wc.entry.js +4 -4
  406. package/dist/esm/kol-alert.entry.js +2 -2
  407. package/dist/esm/kol-alert.entry.js.map +1 -1
  408. package/dist/esm/kol-avatar.entry.js +2 -2
  409. package/dist/esm/kol-avatar.entry.js.map +1 -1
  410. package/dist/esm/kol-badge.entry.js +7 -7
  411. package/dist/esm/kol-badge.entry.js.map +1 -1
  412. package/dist/esm/kol-breadcrumb.entry.js +3 -3
  413. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  414. package/dist/esm/kol-button-link.entry.js +2 -2
  415. package/dist/esm/kol-button-link.entry.js.map +1 -1
  416. package/dist/esm/kol-button-wc.entry.js +4 -4
  417. package/dist/esm/kol-button.entry.js +3 -3
  418. package/dist/esm/kol-button.entry.js.map +1 -1
  419. package/dist/esm/kol-card-wc.entry.js +6 -6
  420. package/dist/esm/kol-card.entry.js +2 -2
  421. package/dist/esm/kol-card.entry.js.map +1 -1
  422. package/dist/esm/kol-click-button.entry.js +2 -2
  423. package/dist/esm/kol-combobox.entry.js +13 -13
  424. package/dist/esm/kol-combobox.entry.js.map +1 -1
  425. package/dist/esm/kol-details.entry.js +5 -5
  426. package/dist/esm/kol-details.entry.js.map +1 -1
  427. package/dist/esm/kol-dialog-wc.entry.js +2 -2
  428. package/dist/esm/kol-dialog.entry.js +2 -2
  429. package/dist/esm/kol-dialog.entry.js.map +1 -1
  430. package/dist/esm/kol-drawer.entry.js +3 -3
  431. package/dist/esm/kol-drawer.entry.js.map +1 -1
  432. package/dist/esm/kol-form.entry.js +5 -5
  433. package/dist/esm/kol-form.entry.js.map +1 -1
  434. package/dist/esm/kol-heading.entry.js +3 -3
  435. package/dist/esm/kol-heading.entry.js.map +1 -1
  436. package/dist/esm/kol-icon.entry.js +3 -3
  437. package/dist/esm/kol-image.entry.js +2 -2
  438. package/dist/esm/kol-image.entry.js.map +1 -1
  439. package/dist/esm/kol-input-checkbox.entry.js +13 -13
  440. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  441. package/dist/esm/kol-input-color.entry.js +12 -12
  442. package/dist/esm/kol-input-color.entry.js.map +1 -1
  443. package/dist/esm/kol-input-date.entry.js +13 -13
  444. package/dist/esm/kol-input-date.entry.js.map +1 -1
  445. package/dist/esm/kol-input-email.entry.js +15 -15
  446. package/dist/esm/kol-input-email.entry.js.map +1 -1
  447. package/dist/esm/kol-input-file.entry.js +12 -12
  448. package/dist/esm/kol-input-file.entry.js.map +1 -1
  449. package/dist/esm/kol-input-number.entry.js +13 -13
  450. package/dist/esm/kol-input-number.entry.js.map +1 -1
  451. package/dist/esm/kol-input-password.entry.js +14 -14
  452. package/dist/esm/kol-input-password.entry.js.map +1 -1
  453. package/dist/esm/kol-input-radio.entry.js +13 -13
  454. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  455. package/dist/esm/kol-input-range.entry.js +13 -13
  456. package/dist/esm/kol-input-range.entry.js.map +1 -1
  457. package/dist/esm/kol-input-text.entry.js +15 -15
  458. package/dist/esm/kol-input-text.entry.js.map +1 -1
  459. package/dist/esm/kol-kolibri.entry.js +2 -2
  460. package/dist/esm/kol-kolibri.entry.js.map +1 -1
  461. package/dist/esm/kol-link-button.entry.js +2 -2
  462. package/dist/esm/kol-link-button.entry.js.map +1 -1
  463. package/dist/esm/kol-link-wc.entry.js +4 -4
  464. package/dist/esm/kol-link.entry.js +3 -3
  465. package/dist/esm/kol-link.entry.js.map +1 -1
  466. package/dist/esm/kol-meter.entry.js +2 -2
  467. package/dist/esm/kol-meter.entry.js.map +1 -1
  468. package/dist/esm/kol-modal.entry.js +2 -2
  469. package/dist/esm/kol-modal.entry.js.map +1 -1
  470. package/dist/esm/kol-nav.entry.js +3 -3
  471. package/dist/esm/kol-nav.entry.js.map +1 -1
  472. package/dist/esm/kol-pagination-wc.entry.js +2 -2
  473. package/dist/esm/kol-pagination.entry.js +2 -2
  474. package/dist/esm/kol-pagination.entry.js.map +1 -1
  475. package/dist/esm/kol-popover-button-wc.entry.js +2 -2
  476. package/dist/esm/kol-popover-button.entry.js +2 -2
  477. package/dist/esm/kol-popover-button.entry.js.map +1 -1
  478. package/dist/esm/kol-progress.entry.js +2 -2
  479. package/dist/esm/kol-progress.entry.js.map +1 -1
  480. package/dist/esm/kol-quote.entry.js +2 -2
  481. package/dist/esm/kol-quote.entry.js.map +1 -1
  482. package/dist/esm/kol-select-wc.entry.js +12 -12
  483. package/dist/esm/kol-select-wc.entry.js.map +1 -1
  484. package/dist/esm/kol-select.entry.js +3 -3
  485. package/dist/esm/kol-select.entry.js.map +1 -1
  486. package/dist/esm/kol-single-select.entry.js +19 -20
  487. package/dist/esm/kol-single-select.entry.js.map +1 -1
  488. package/dist/esm/kol-skeleton.entry.js +2 -2
  489. package/dist/esm/kol-skip-nav.entry.js +2 -2
  490. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  491. package/dist/esm/kol-spin.entry.js +2 -2
  492. package/dist/esm/kol-spin.entry.js.map +1 -1
  493. package/dist/esm/kol-split-button.entry.js +2 -2
  494. package/dist/esm/kol-split-button.entry.js.map +1 -1
  495. package/dist/esm/kol-table-settings-wc.entry.js +1 -1
  496. package/dist/esm/kol-table-stateful.entry.js +2 -2
  497. package/dist/esm/kol-table-stateful.entry.js.map +1 -1
  498. package/dist/esm/kol-table-stateless-wc.entry.js +5 -5
  499. package/dist/esm/kol-table-stateless.entry.js +2 -2
  500. package/dist/esm/kol-table-stateless.entry.js.map +1 -1
  501. package/dist/esm/kol-tabs.entry.js +2 -2
  502. package/dist/esm/kol-tabs.entry.js.map +1 -1
  503. package/dist/esm/kol-textarea.entry.js +11 -11
  504. package/dist/esm/kol-textarea.entry.js.map +1 -1
  505. package/dist/esm/kol-toast-container.entry.js +7 -7
  506. package/dist/esm/kol-toast-container.entry.js.map +1 -1
  507. package/dist/esm/kol-toolbar.entry.js +2 -2
  508. package/dist/esm/kol-toolbar.entry.js.map +1 -1
  509. package/dist/esm/kol-tooltip-wc.entry.js +4 -4
  510. package/dist/esm/kol-tree-item-wc.entry.js +3 -3
  511. package/dist/esm/kol-tree-item.entry.js +2 -2
  512. package/dist/esm/kol-tree-item.entry.js.map +1 -1
  513. package/dist/esm/kol-tree-wc.entry.js +1 -1
  514. package/dist/esm/kol-tree.entry.js +2 -2
  515. package/dist/esm/kol-tree.entry.js.map +1 -1
  516. package/dist/esm/kol-version.entry.js +2 -2
  517. package/dist/esm/kol-version.entry.js.map +1 -1
  518. package/dist/esm/kolibri.js +3 -3
  519. package/dist/esm/loader.js +3 -3
  520. package/dist/esm/test-component.entry.js +1 -1
  521. package/dist/kolibri/Alert-DaPXnitr.js +5 -0
  522. package/dist/kolibri/Alert-DaPXnitr.js.map +1 -0
  523. package/dist/kolibri/Collapsible-DF7peDBr.js +5 -0
  524. package/dist/{esm/Collapsible-Cy_Z7SX6.js.map → kolibri/Collapsible-DF7peDBr.js.map} +1 -1
  525. package/dist/kolibri/{CustomSuggestionsOptionsGroup-2QjXZ-dA.js → CustomSuggestionsOptionsGroup-Cq1zSfAU.js} +2 -2
  526. package/dist/{esm/CustomSuggestionsOptionsGroup-2QjXZ-dA.js.map → kolibri/CustomSuggestionsOptionsGroup-Cq1zSfAU.js.map} +1 -1
  527. package/dist/kolibri/FieldControlStateWrapper-BJhTtIF3.js +5 -0
  528. package/dist/kolibri/{FieldControlStateWrapper-BY46U1nq.js.map → FieldControlStateWrapper-BJhTtIF3.js.map} +1 -1
  529. package/dist/kolibri/{FormFieldStateWrapper-DFV1TBk5.js → FormFieldStateWrapper-BogeRuh6.js} +2 -2
  530. package/dist/kolibri/{FormFieldStateWrapper-DFV1TBk5.js.map → FormFieldStateWrapper-BogeRuh6.js.map} +1 -1
  531. package/dist/kolibri/{Heading-BKIw2hie.js → Heading-Fmn2Xnfo.js} +2 -2
  532. package/dist/{esm/Heading-BKIw2hie.js.map → kolibri/Heading-Fmn2Xnfo.js.map} +1 -1
  533. package/dist/kolibri/Input-My07QUjz.js +5 -0
  534. package/dist/{esm/Input-B4nV0JRw.js.map → kolibri/Input-My07QUjz.js.map} +1 -1
  535. package/dist/kolibri/InputStateWrapper-BkBD8al2.js +5 -0
  536. package/dist/kolibri/{InputStateWrapper-Cjv8q51E.js.map → InputStateWrapper-BkBD8al2.js.map} +1 -1
  537. package/dist/kolibri/{app-globals-DBooI_-E.js → app-globals-BSt2bjJi.js} +2 -2
  538. package/dist/kolibri/{app-globals-DBooI_-E.js.map → app-globals-BSt2bjJi.js.map} +1 -1
  539. package/dist/kolibri/{component-DzpPAOzx.js → component-BXaOK6YH.js} +2 -2
  540. package/dist/kolibri/{component-DzpPAOzx.js.map → component-BXaOK6YH.js.map} +1 -1
  541. package/dist/kolibri/{component-8mzKPFWl.js → component-DBqyeAbt.js} +2 -2
  542. package/dist/kolibri/{component-8mzKPFWl.js.map → component-DBqyeAbt.js.map} +1 -1
  543. package/dist/kolibri/{component-BG44r5Mq.js → component-DDkRuod7.js} +2 -2
  544. package/dist/{esm/component-BG44r5Mq.js.map → kolibri/component-DDkRuod7.js.map} +1 -1
  545. package/dist/kolibri/component-lILf7M8Y.js +5 -0
  546. package/dist/kolibri/{component-CCQEFb4H.js.map → component-lILf7M8Y.js.map} +1 -1
  547. package/dist/kolibri/contrast-CnVYN_kl.js.map +1 -1
  548. package/dist/kolibri/{controller-CE9LAI82.js → controller-B-aPh-rK.js} +2 -2
  549. package/dist/kolibri/{controller-CE9LAI82.js.map → controller-B-aPh-rK.js.map} +1 -1
  550. package/dist/kolibri/{controller-iY_1YW2P.js → controller-BKG2L8_f.js} +2 -2
  551. package/dist/kolibri/{controller-iY_1YW2P.js.map → controller-BKG2L8_f.js.map} +1 -1
  552. package/dist/kolibri/controller-i4DAkaDb.js +5 -0
  553. package/dist/{esm/controller-BCZEcGnd.js.map → kolibri/controller-i4DAkaDb.js.map} +1 -1
  554. package/dist/kolibri/{controller-icon-CQmlbwLY.js → controller-icon-lAqXvi57.js} +2 -2
  555. package/dist/{esm/controller-icon-CQmlbwLY.js.map → kolibri/controller-icon-lAqXvi57.js.map} +1 -1
  556. package/dist/kolibri/{dev.utils-BXf9h7MR.js → dev.utils-4OwwrWYD.js} +2 -2
  557. package/dist/kolibri/{dev.utils-BXf9h7MR.js.map → dev.utils-4OwwrWYD.js.map} +1 -1
  558. package/dist/kolibri/{devtools-DhAP1aCO.js → devtools-DQZUKzkH.js} +2 -2
  559. package/dist/kolibri/{devtools-DhAP1aCO.js.map → devtools-DQZUKzkH.js.map} +1 -1
  560. package/dist/kolibri/{index-C5dCp7IP.js → index-wGO77oPq.js} +2 -2
  561. package/dist/{esm/index-C5dCp7IP.js.map → kolibri/index-wGO77oPq.js.map} +1 -1
  562. package/dist/kolibri/kol-abbr.entry.esm.js.map +1 -1
  563. package/dist/kolibri/kol-abbr.entry.js +1 -1
  564. package/dist/kolibri/kol-abbr.entry.js.map +1 -1
  565. package/dist/kolibri/kol-accordion.entry.esm.js.map +1 -1
  566. package/dist/kolibri/kol-accordion.entry.js +1 -1
  567. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  568. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  569. package/dist/kolibri/kol-alert.entry.esm.js.map +1 -1
  570. package/dist/kolibri/kol-alert.entry.js +1 -1
  571. package/dist/kolibri/kol-alert.entry.js.map +1 -1
  572. package/dist/kolibri/kol-avatar.entry.esm.js.map +1 -1
  573. package/dist/kolibri/kol-avatar.entry.js +1 -1
  574. package/dist/kolibri/kol-avatar.entry.js.map +1 -1
  575. package/dist/kolibri/kol-badge.entry.esm.js.map +1 -1
  576. package/dist/kolibri/kol-badge.entry.js +1 -1
  577. package/dist/kolibri/kol-badge.entry.js.map +1 -1
  578. package/dist/kolibri/kol-breadcrumb.entry.esm.js.map +1 -1
  579. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  580. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  581. package/dist/kolibri/kol-button-link.entry.esm.js.map +1 -1
  582. package/dist/kolibri/kol-button-link.entry.js +1 -1
  583. package/dist/kolibri/kol-button-link.entry.js.map +1 -1
  584. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  585. package/dist/kolibri/kol-button.entry.esm.js.map +1 -1
  586. package/dist/kolibri/kol-button.entry.js +1 -1
  587. package/dist/kolibri/kol-button.entry.js.map +1 -1
  588. package/dist/kolibri/kol-card-wc.entry.js +1 -1
  589. package/dist/kolibri/kol-card.entry.esm.js.map +1 -1
  590. package/dist/kolibri/kol-card.entry.js +1 -1
  591. package/dist/kolibri/kol-card.entry.js.map +1 -1
  592. package/dist/kolibri/kol-click-button.entry.js +1 -1
  593. package/dist/kolibri/kol-combobox.entry.esm.js.map +1 -1
  594. package/dist/kolibri/kol-combobox.entry.js +1 -1
  595. package/dist/kolibri/kol-combobox.entry.js.map +1 -1
  596. package/dist/kolibri/kol-details.entry.esm.js.map +1 -1
  597. package/dist/kolibri/kol-details.entry.js +1 -1
  598. package/dist/kolibri/kol-details.entry.js.map +1 -1
  599. package/dist/kolibri/kol-dialog-wc.entry.js +1 -1
  600. package/dist/kolibri/kol-dialog.entry.esm.js.map +1 -1
  601. package/dist/kolibri/kol-dialog.entry.js +1 -1
  602. package/dist/kolibri/kol-dialog.entry.js.map +1 -1
  603. package/dist/kolibri/kol-drawer.entry.esm.js.map +1 -1
  604. package/dist/kolibri/kol-drawer.entry.js +1 -1
  605. package/dist/kolibri/kol-drawer.entry.js.map +1 -1
  606. package/dist/kolibri/kol-form.entry.esm.js.map +1 -1
  607. package/dist/kolibri/kol-form.entry.js +1 -1
  608. package/dist/kolibri/kol-form.entry.js.map +1 -1
  609. package/dist/kolibri/kol-heading.entry.esm.js.map +1 -1
  610. package/dist/kolibri/kol-heading.entry.js +1 -1
  611. package/dist/kolibri/kol-heading.entry.js.map +1 -1
  612. package/dist/kolibri/kol-icon.entry.js +1 -1
  613. package/dist/kolibri/kol-image.entry.esm.js.map +1 -1
  614. package/dist/kolibri/kol-image.entry.js +1 -1
  615. package/dist/kolibri/kol-image.entry.js.map +1 -1
  616. package/dist/kolibri/kol-input-checkbox.entry.esm.js.map +1 -1
  617. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  618. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  619. package/dist/kolibri/kol-input-color.entry.esm.js.map +1 -1
  620. package/dist/kolibri/kol-input-color.entry.js +1 -1
  621. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  622. package/dist/kolibri/kol-input-date.entry.esm.js.map +1 -1
  623. package/dist/kolibri/kol-input-date.entry.js +1 -1
  624. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  625. package/dist/kolibri/kol-input-email.entry.esm.js.map +1 -1
  626. package/dist/kolibri/kol-input-email.entry.js +1 -1
  627. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  628. package/dist/kolibri/kol-input-file.entry.esm.js.map +1 -1
  629. package/dist/kolibri/kol-input-file.entry.js +1 -1
  630. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  631. package/dist/kolibri/kol-input-number.entry.esm.js.map +1 -1
  632. package/dist/kolibri/kol-input-number.entry.js +1 -1
  633. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  634. package/dist/kolibri/kol-input-password.entry.esm.js.map +1 -1
  635. package/dist/kolibri/kol-input-password.entry.js +1 -1
  636. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  637. package/dist/kolibri/kol-input-radio.entry.esm.js.map +1 -1
  638. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  639. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  640. package/dist/kolibri/kol-input-range.entry.esm.js.map +1 -1
  641. package/dist/kolibri/kol-input-range.entry.js +1 -1
  642. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  643. package/dist/kolibri/kol-input-text.entry.esm.js.map +1 -1
  644. package/dist/kolibri/kol-input-text.entry.js +1 -1
  645. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  646. package/dist/kolibri/kol-kolibri.entry.esm.js.map +1 -1
  647. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  648. package/dist/kolibri/kol-kolibri.entry.js.map +1 -1
  649. package/dist/kolibri/kol-link-button.entry.esm.js.map +1 -1
  650. package/dist/kolibri/kol-link-button.entry.js +1 -1
  651. package/dist/kolibri/kol-link-button.entry.js.map +1 -1
  652. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  653. package/dist/kolibri/kol-link.entry.esm.js.map +1 -1
  654. package/dist/kolibri/kol-link.entry.js +1 -1
  655. package/dist/kolibri/kol-link.entry.js.map +1 -1
  656. package/dist/kolibri/kol-meter.entry.esm.js.map +1 -1
  657. package/dist/kolibri/kol-meter.entry.js +1 -1
  658. package/dist/kolibri/kol-meter.entry.js.map +1 -1
  659. package/dist/kolibri/kol-modal.entry.esm.js.map +1 -1
  660. package/dist/kolibri/kol-modal.entry.js +1 -1
  661. package/dist/kolibri/kol-modal.entry.js.map +1 -1
  662. package/dist/kolibri/kol-nav.entry.esm.js.map +1 -1
  663. package/dist/kolibri/kol-nav.entry.js +1 -1
  664. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  665. package/dist/kolibri/kol-pagination-wc.entry.js +1 -1
  666. package/dist/kolibri/kol-pagination.entry.esm.js.map +1 -1
  667. package/dist/kolibri/kol-pagination.entry.js +1 -1
  668. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  669. package/dist/kolibri/kol-popover-button-wc.entry.js +1 -1
  670. package/dist/kolibri/kol-popover-button.entry.esm.js.map +1 -1
  671. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  672. package/dist/kolibri/kol-popover-button.entry.js.map +1 -1
  673. package/dist/kolibri/kol-progress.entry.esm.js.map +1 -1
  674. package/dist/kolibri/kol-progress.entry.js +1 -1
  675. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  676. package/dist/kolibri/kol-quote.entry.esm.js.map +1 -1
  677. package/dist/kolibri/kol-quote.entry.js +1 -1
  678. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  679. package/dist/kolibri/kol-select-wc.entry.esm.js.map +1 -1
  680. package/dist/kolibri/kol-select-wc.entry.js +1 -1
  681. package/dist/kolibri/kol-select.entry.esm.js.map +1 -1
  682. package/dist/kolibri/kol-select.entry.js +1 -1
  683. package/dist/kolibri/kol-select.entry.js.map +1 -1
  684. package/dist/kolibri/kol-single-select.entry.esm.js.map +1 -1
  685. package/dist/kolibri/kol-single-select.entry.js +1 -1
  686. package/dist/kolibri/kol-single-select.entry.js.map +1 -1
  687. package/dist/kolibri/kol-skeleton.entry.js +1 -1
  688. package/dist/kolibri/kol-skip-nav.entry.esm.js.map +1 -1
  689. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  690. package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
  691. package/dist/kolibri/kol-spin.entry.esm.js.map +1 -1
  692. package/dist/kolibri/kol-spin.entry.js +1 -1
  693. package/dist/kolibri/kol-spin.entry.js.map +1 -1
  694. package/dist/kolibri/kol-split-button.entry.esm.js.map +1 -1
  695. package/dist/kolibri/kol-split-button.entry.js +1 -1
  696. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  697. package/dist/kolibri/kol-table-settings-wc.entry.js +1 -1
  698. package/dist/kolibri/kol-table-stateful.entry.esm.js.map +1 -1
  699. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  700. package/dist/kolibri/kol-table-stateful.entry.js.map +1 -1
  701. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  702. package/dist/kolibri/kol-table-stateless.entry.esm.js.map +1 -1
  703. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  704. package/dist/kolibri/kol-table-stateless.entry.js.map +1 -1
  705. package/dist/kolibri/kol-tabs.entry.esm.js.map +1 -1
  706. package/dist/kolibri/kol-tabs.entry.js +1 -1
  707. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  708. package/dist/kolibri/kol-textarea.entry.esm.js.map +1 -1
  709. package/dist/kolibri/kol-textarea.entry.js +1 -1
  710. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  711. package/dist/kolibri/kol-toast-container.entry.esm.js.map +1 -1
  712. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  713. package/dist/kolibri/kol-toast-container.entry.js.map +1 -1
  714. package/dist/kolibri/kol-toolbar.entry.esm.js.map +1 -1
  715. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  716. package/dist/kolibri/kol-toolbar.entry.js.map +1 -1
  717. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  718. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  719. package/dist/kolibri/kol-tree-item.entry.esm.js.map +1 -1
  720. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  721. package/dist/kolibri/kol-tree-item.entry.js.map +1 -1
  722. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  723. package/dist/kolibri/kol-tree.entry.esm.js.map +1 -1
  724. package/dist/kolibri/kol-tree.entry.js +1 -1
  725. package/dist/kolibri/kol-tree.entry.js.map +1 -1
  726. package/dist/kolibri/kol-version.entry.esm.js.map +1 -1
  727. package/dist/kolibri/kol-version.entry.js +1 -1
  728. package/dist/kolibri/kol-version.entry.js.map +1 -1
  729. package/dist/kolibri/kolibri.esm.js +1 -1
  730. package/dist/kolibri/test-component.entry.js +1 -1
  731. package/dist/types/schema/utils/contrast.d.ts +1 -1
  732. package/doc/badge.md +7 -0
  733. package/doc/button.md +3 -3
  734. package/doc/heading.md +3 -3
  735. package/doc/input-checkbox.md +3 -3
  736. package/doc/input-date.md +3 -3
  737. package/doc/input-email.md +3 -3
  738. package/doc/input-number.md +3 -3
  739. package/doc/input-password.md +3 -3
  740. package/doc/input-radio.md +3 -3
  741. package/doc/input-range.md +3 -3
  742. package/doc/input-text.md +3 -3
  743. package/doc/link.md +7 -0
  744. package/doc/select.md +3 -3
  745. package/package.json +6 -6
  746. package/dist/cjs/Alert-Bv-BrwWN.js.map +0 -1
  747. package/dist/esm/Alert-CVh_XwxH.js.map +0 -1
  748. package/dist/kolibri/Alert-CVh_XwxH.js +0 -5
  749. package/dist/kolibri/Alert-CVh_XwxH.js.map +0 -1
  750. package/dist/kolibri/Collapsible-Cy_Z7SX6.js +0 -5
  751. package/dist/kolibri/FieldControlStateWrapper-BY46U1nq.js +0 -5
  752. package/dist/kolibri/Input-B4nV0JRw.js +0 -5
  753. package/dist/kolibri/InputStateWrapper-Cjv8q51E.js +0 -5
  754. package/dist/kolibri/component-CCQEFb4H.js +0 -5
  755. package/dist/kolibri/controller-BCZEcGnd.js +0 -5
@@ -0,0 +1,5 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{a as o}from"./tslib.es6-QNbPBOk5.js";import{h as s}from"./index-wGO77oPq.js";import{b as i}from"./bem-registry-Coj2Hlbo.js";import{c as e}from"./clsx-COFh-Vc8.js";const n=i.forBlock("kol-icon");const r=n();const a=n("icon");const t=i=>{var{class:n,icons:t,label:c}=i,l=o(i,["class","icons","label"]);const m=(c===null||c===void 0?void 0:c.length)>0;return s("i",Object.assign({},l,{"aria-hidden":m?undefined:"true","aria-label":m?c:undefined,class:e(r,a,t,n),role:m?"img":"presentation"}))};export{t as I};
5
+ //# sourceMappingURL=component-lILf7M8Y.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"component-CCQEFb4H.js","sources":["src/internal/functional-components/icon/component.tsx"],"sourcesContent":["import type { FunctionalComponent as FC } from '@stencil/core';\nimport { h } from '@stencil/core';\n\nimport { bem } from '../../../schema/bem-registry';\nimport clsx from '../../../utils/clsx';\nimport type { FunctionalComponentProps } from '../generic-types';\nimport type { IconApi } from './api';\n\nconst iconBem = bem.forBlock('kol-icon');\nconst BEM_CLASS_ICON = iconBem();\nconst BEM_CLASS_ICON__ICON = iconBem('icon');\n\nexport const IconFC: FC<FunctionalComponentProps<IconApi>> = ({ class: classNames, icons, label, ...htmlAttributes }) => {\n\t// label should be trimmed by normalization in controller\n\tconst hasAriaLabel = label?.length > 0;\n\treturn (\n\t\t<i\n\t\t\t{...htmlAttributes}\n\t\t\t/**\n\t\t\t * Die Auszeichnung `aria-hidden` ist eigentlich nicht erforderlich, da die aktuellen\n\t\t\t * Screenreader, wie NVDA und JAWS, es auch ohne `aria-hidden` nicht vorlesen.\n\t\t\t *\n\t\t\t * Referenz: https://www.w3.org/TR/wai-aria/states_and_properties#aria-hidden\n\t\t\t */\n\t\t\taria-hidden={hasAriaLabel ? undefined : 'true'}\n\t\t\taria-label={hasAriaLabel ? label : undefined}\n\t\t\tclass={clsx(BEM_CLASS_ICON, BEM_CLASS_ICON__ICON, icons, classNames)}\n\t\t\trole={hasAriaLabel ? 'img' : 'presentation'}\n\t\t/>\n\t);\n};\n"],"names":[],"mappings":";;;;;;;;AAQA,MAAM,OAAO,GAAG,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC;AACxC,MAAM,cAAc,GAAG,OAAO,EAAE;AAChC,MAAM,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAAC;AAE/B,MAAA,MAAM,GAA0C,CAAC,EAAsD,KAAI;IAA1D,IAAA,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAA,GAAA,EAAqB,EAAhB,cAAc,GAApD,MAAA,CAAA,EAAA,EAAA,CAAA,OAAA,EAAA,OAAA,EAAA,OAAA,CAAsD,CAAF;IAEjH,MAAM,YAAY,GAAG,CAAA,KAAK,KAAL,IAAA,IAAA,KAAK,KAAL,MAAA,GAAA,MAAA,GAAA,KAAK,CAAE,MAAM,IAAG,CAAC;AACtC,IAAA,QACC,yBACK,cAAc,EAAA,EAAA,aAAA,EAOL,YAAY,GAAG,SAAS,GAAG,MAAM,EAAA,YAAA,EAClC,YAAY,GAAG,KAAK,GAAG,SAAS,EAC5C,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,oBAAoB,EAAE,KAAK,EAAE,UAAU,CAAC,EACpE,IAAI,EAAE,YAAY,GAAG,KAAK,GAAG,cAAc,EAC1C,CAAA,CAAA;AAEJ;;;;"}
1
+ {"version":3,"file":"component-lILf7M8Y.js","sources":["src/internal/functional-components/icon/component.tsx"],"sourcesContent":["import type { FunctionalComponent as FC } from '@stencil/core';\nimport { h } from '@stencil/core';\n\nimport { bem } from '../../../schema/bem-registry';\nimport clsx from '../../../utils/clsx';\nimport type { FunctionalComponentProps } from '../generic-types';\nimport type { IconApi } from './api';\n\nconst iconBem = bem.forBlock('kol-icon');\nconst BEM_CLASS_ICON = iconBem();\nconst BEM_CLASS_ICON__ICON = iconBem('icon');\n\nexport const IconFC: FC<FunctionalComponentProps<IconApi>> = ({ class: classNames, icons, label, ...htmlAttributes }) => {\n\t// label should be trimmed by normalization in controller\n\tconst hasAriaLabel = label?.length > 0;\n\treturn (\n\t\t<i\n\t\t\t{...htmlAttributes}\n\t\t\t/**\n\t\t\t * Die Auszeichnung `aria-hidden` ist eigentlich nicht erforderlich, da die aktuellen\n\t\t\t * Screenreader, wie NVDA und JAWS, es auch ohne `aria-hidden` nicht vorlesen.\n\t\t\t *\n\t\t\t * Referenz: https://www.w3.org/TR/wai-aria/states_and_properties#aria-hidden\n\t\t\t */\n\t\t\taria-hidden={hasAriaLabel ? undefined : 'true'}\n\t\t\taria-label={hasAriaLabel ? label : undefined}\n\t\t\tclass={clsx(BEM_CLASS_ICON, BEM_CLASS_ICON__ICON, icons, classNames)}\n\t\t\trole={hasAriaLabel ? 'img' : 'presentation'}\n\t\t/>\n\t);\n};\n"],"names":[],"mappings":";;;;;;;;AAQA,MAAM,OAAO,GAAG,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC;AACxC,MAAM,cAAc,GAAG,OAAO,EAAE;AAChC,MAAM,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAAC;AAE/B,MAAA,MAAM,GAA0C,CAAC,EAAsD,KAAI;IAA1D,IAAA,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAA,GAAA,EAAqB,EAAhB,cAAc,GAApD,MAAA,CAAA,EAAA,EAAA,CAAA,OAAA,EAAA,OAAA,EAAA,OAAA,CAAsD,CAAF;IAEjH,MAAM,YAAY,GAAG,CAAA,KAAK,KAAL,IAAA,IAAA,KAAK,KAAL,MAAA,GAAA,MAAA,GAAA,KAAK,CAAE,MAAM,IAAG,CAAC;AACtC,IAAA,QACC,yBACK,cAAc,EAAA,EAAA,aAAA,EAOL,YAAY,GAAG,SAAS,GAAG,MAAM,EAAA,YAAA,EAClC,YAAY,GAAG,KAAK,GAAG,SAAS,EAC5C,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,oBAAoB,EAAE,KAAK,EAAE,UAAU,CAAC,EACpE,IAAI,EAAE,YAAY,GAAG,KAAK,GAAG,cAAc,EAC1C,CAAA,CAAA;AAEJ;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"contrast-CnVYN_kl.js","sources":["../../node_modules/.pnpm/color-rgba@2.4.0/node_modules/color-rgba/index.mjs","src/schema/utils/contrast.ts"],"sourcesContent":["/** @module color-rgba */\r\nimport parse from 'color-parse'\r\nimport rgb from 'color-space/rgb.js'\r\nimport hsl from 'color-space/hsl.js'\r\n\r\nexport default function rgba (color) {\r\n\t// template literals\r\n\tif (Array.isArray(color) && color.raw) color = String.raw(...arguments)\r\n\r\n\tvar values, i, l\r\n\r\n\t//attempt to parse non-array arguments\r\n\tvar parsed = parse(color)\r\n\r\n\tif (!parsed.space) return []\r\n\r\n\tconst min = parsed.space[0] === 'h' ? hsl.min : rgb.min\r\n\tconst max = parsed.space[0] === 'h' ? hsl.max : rgb.max\r\n\r\n\tvalues = Array(3)\r\n\tvalues[0] = Math.min(Math.max(parsed.values[0], min[0]), max[0])\r\n\tvalues[1] = Math.min(Math.max(parsed.values[1], min[1]), max[1])\r\n\tvalues[2] = Math.min(Math.max(parsed.values[2], min[2]), max[2])\r\n\r\n\tif (parsed.space[0] === 'h') {\r\n\t\tvalues = hsl.rgb(values)\r\n\t}\r\n\r\n\tvalues.push(Math.min(Math.max(parsed.alpha, 0), 1))\r\n\r\n\treturn values\r\n}\r\n","import type { RGB } from 'color-convert/conversions';\nimport { hex } from 'wcag-contrast';\n\nimport rgba from 'color-rgba';\nimport rgbaConvert from 'rgba-convert';\n\ntype RGBA = [number, number, number, number];\n\n// const calcColor = (color: RGBA, diff: number): RGBA => [\n// Math.max(Math.min(Math.round(color[0] + (color[0] / 100 + 1) * diff), 255), 0),\n// Math.max(Math.min(Math.round(color[1] + (color[1] / 100 + 1) * diff), 255), 0),\n// Math.max(Math.min(Math.round(color[2] + (color[2] / 100 + 1) * diff), 255), 0),\n// color[3],\n// ];\n\n// const relativeLuminanceFormel = (c: number): number => {\n// if (c <= 0.03928) {\n// return c / 12.92;\n// } else {\n// return ((c + 0.055) / 1.055) ** 2.4;\n// }\n// };\n// // https://www.w3.org/TR/WCAG20/#contrast-ratiodef\n// const relativeLuminance = (r: number, g: number, b: number): number => {\n// return (\n// 0.2126 * relativeLuminanceFormel(r) + 0.7152 * relativeLuminanceFormel(g) + 0.0722 * relativeLuminanceFormel(b)\n// );\n// };\n\n// https://css-tricks.com/snippets/javascript/random-hex-color/\n// const randomColor = () => Math.floor(Math.random() * 16777215).toString(16);\n\n// https://24ways.org/2010/calculating-color-contrast/\nexport const getContrastYIQ = (r: number, g: number, b: number): number => {\n\tconst yiq = (r * 299 + g * 587 + b * 114) / 1000;\n\treturn yiq >= 128 ? -1 : 1;\n};\n\ntype ColorPair<T> = {\n\tbackground: T;\n\tforeground: T;\n};\n\nexport type ColorContrast<T> = ColorPair<T> & {\n\tcontrast: number;\n};\n\nexport const calcColorContrast = (baseColor: RGB, contrastColor: RGB, ratio: number, dir = 1): ColorContrast<RGB> => {\n\tconst color: RGB = [\n\t\tMath.max(Math.min(Math.round(contrastColor[0] + dir * Math.max(1, contrastColor[0] / 100)), 255), 0),\n\t\tMath.max(Math.min(Math.round(contrastColor[1] + dir * Math.max(1, contrastColor[1] / 100)), 255), 0),\n\t\tMath.max(Math.min(Math.round(contrastColor[2] + dir * Math.max(1, contrastColor[2] / 100)), 255), 0),\n\t];\n\tconst contrast = hex(rgbaConvert.hex(`rgba(${baseColor.join(',')},1)`), rgbaConvert.hex(`rgba(${color.join(',')},1)`));\n\tconst summe = color[0] + color[1] + color[2];\n\tif (summe === 0 || summe === 765 || contrast > ratio) {\n\t\treturn {\n\t\t\tbackground: baseColor,\n\t\t\tforeground: color,\n\t\t\tcontrast,\n\t\t};\n\t} else {\n\t\treturn calcColorContrast(baseColor, color, ratio, dir);\n\t}\n};\n\nconst cache: Map<unknown, ColorContrast<RGB>> = new Map();\n\nexport const getColorContrast = (baseColor: RGB, contrastColor: RGB, ratio: number, dir = 1): ColorContrast<RGB> => {\n\tif (cache.has(baseColor)) {\n\t\treturn cache.get(baseColor) as ColorContrast<RGB>;\n\t}\n\tconst color = calcColorContrast(baseColor, contrastColor, ratio, dir);\n\tcache.set(baseColor, color);\n\treturn color;\n};\n\nexport const createContrastColorPair = (color: string | ColorPair<string>, contrastRatio = 7): ColorContrast<string> => {\n\tlet baseColor: RGBA = [0, 0, 0, 1];\n\tlet contrastColor: RGBA = [255, 255, 255, 1];\n\tif (typeof color === 'string') {\n\t\tbaseColor = rgba(color);\n\t\tcontrastColor = baseColor;\n\t} else if (typeof color === 'object' && color !== null && typeof color.background === 'string' && typeof color.foreground === 'string') {\n\t\tbaseColor = rgba(color.background);\n\t\tif (typeof color.foreground === 'string') {\n\t\t\tcontrastColor = rgba(color.foreground);\n\t\t} else {\n\t\t\tcontrastColor = baseColor;\n\t\t}\n\t}\n\tconst yiq = getContrastYIQ(baseColor[0], baseColor[1], baseColor[2]);\n\tconst colorContrast = getColorContrast(\n\t\t[baseColor[0], baseColor[1], baseColor[2]],\n\t\t[contrastColor[0], contrastColor[1], contrastColor[2]],\n\t\tcontrastRatio,\n\t\tyiq,\n\t);\n\tcontrastColor = [...colorContrast.foreground, 1];\n\n\treturn {\n\t\tbackground: rgbaConvert.hex(`rgba(${baseColor.join(',')})`),\n\t\tforeground: rgbaConvert.hex(`rgba(${contrastColor.join(',')})`),\n\t\tcontrast: colorContrast.contrast,\n\t};\n};\n"],"names":["hex","rgbaConvert"],"mappings":";;;;;AAAA;AAIA;AACe,SAAS,IAAI,EAAE,KAAK,EAAE;AACrC;AACA,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,GAAG,EAAE,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,GAAG,SAAS,EAAC;AACxE;AACA,CAAI,IAAC,MAAM,CAAM;AACjB;AACA;AACA,CAAC,IAAI,MAAM,GAAG,KAAK,CAAC,KAAK,EAAC;AAC1B;AACA,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE;AAC7B;AACA,CAAC,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,IAAG;AACxD,CAAC,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,IAAG;AACxD;AACA,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC,EAAC;AAClB,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,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AAC,KAAK,CAAC,UAAU,CAAC;;aAChC;YACN,aAAa,GAAG,SAAS;;;AAG3B,IAAA,MAAM,GAAG,GAAG,cAAc,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;AACpE,IAAA,MAAM,aAAa,GAAG,gBAAgB,CACrC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,EAC1C,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,EACtD,aAAa,EACb,GAAG,CACH;IACD,aAAa,GAAG,CAAC,GAAG,aAAa,CAAC,UAAU,EAAE,CAAC,CAAC;IAEhD,OAAO;AACN,QAAA,UAAU,EAAEA,MAAW,CAAC,GAAG,CAAC,CAAA,KAAA,EAAQ,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;AAC3D,QAAA,UAAU,EAAEA,MAAW,CAAC,GAAG,CAAC,CAAA,KAAA,EAAQ,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;QAC/D,QAAQ,EAAE,aAAa,CAAC,QAAQ;KAChC;AACF;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"contrast-CnVYN_kl.js","sources":["../../node_modules/.pnpm/color-rgba@2.4.0/node_modules/color-rgba/index.mjs","src/schema/utils/contrast.ts"],"sourcesContent":["/** @module color-rgba */\r\nimport parse from 'color-parse'\r\nimport rgb from 'color-space/rgb.js'\r\nimport hsl from 'color-space/hsl.js'\r\n\r\nexport default function rgba (color) {\r\n\t// template literals\r\n\tif (Array.isArray(color) && color.raw) color = String.raw(...arguments)\r\n\r\n\tvar values, i, l\r\n\r\n\t//attempt to parse non-array arguments\r\n\tvar parsed = parse(color)\r\n\r\n\tif (!parsed.space) return []\r\n\r\n\tconst min = parsed.space[0] === 'h' ? hsl.min : rgb.min\r\n\tconst max = parsed.space[0] === 'h' ? hsl.max : rgb.max\r\n\r\n\tvalues = Array(3)\r\n\tvalues[0] = Math.min(Math.max(parsed.values[0], min[0]), max[0])\r\n\tvalues[1] = Math.min(Math.max(parsed.values[1], min[1]), max[1])\r\n\tvalues[2] = Math.min(Math.max(parsed.values[2], min[2]), max[2])\r\n\r\n\tif (parsed.space[0] === 'h') {\r\n\t\tvalues = hsl.rgb(values)\r\n\t}\r\n\r\n\tvalues.push(Math.min(Math.max(parsed.alpha, 0), 1))\r\n\r\n\treturn values\r\n}\r\n","import type { RGB } from 'color-convert';\nimport { hex } from 'wcag-contrast';\n\nimport rgba from 'color-rgba';\nimport rgbaConvert from 'rgba-convert';\n\ntype RGBA = [number, number, number, number];\n\n// const calcColor = (color: RGBA, diff: number): RGBA => [\n// Math.max(Math.min(Math.round(color[0] + (color[0] / 100 + 1) * diff), 255), 0),\n// Math.max(Math.min(Math.round(color[1] + (color[1] / 100 + 1) * diff), 255), 0),\n// Math.max(Math.min(Math.round(color[2] + (color[2] / 100 + 1) * diff), 255), 0),\n// color[3],\n// ];\n\n// const relativeLuminanceFormel = (c: number): number => {\n// if (c <= 0.03928) {\n// return c / 12.92;\n// } else {\n// return ((c + 0.055) / 1.055) ** 2.4;\n// }\n// };\n// // https://www.w3.org/TR/WCAG20/#contrast-ratiodef\n// const relativeLuminance = (r: number, g: number, b: number): number => {\n// return (\n// 0.2126 * relativeLuminanceFormel(r) + 0.7152 * relativeLuminanceFormel(g) + 0.0722 * relativeLuminanceFormel(b)\n// );\n// };\n\n// https://css-tricks.com/snippets/javascript/random-hex-color/\n// const randomColor = () => Math.floor(Math.random() * 16777215).toString(16);\n\n// https://24ways.org/2010/calculating-color-contrast/\nexport const getContrastYIQ = (r: number, g: number, b: number): number => {\n\tconst yiq = (r * 299 + g * 587 + b * 114) / 1000;\n\treturn yiq >= 128 ? -1 : 1;\n};\n\ntype ColorPair<T> = {\n\tbackground: T;\n\tforeground: T;\n};\n\nexport type ColorContrast<T> = ColorPair<T> & {\n\tcontrast: number;\n};\n\nexport const calcColorContrast = (baseColor: RGB, contrastColor: RGB, ratio: number, dir = 1): ColorContrast<RGB> => {\n\tconst color: RGB = [\n\t\tMath.max(Math.min(Math.round(contrastColor[0] + dir * Math.max(1, contrastColor[0] / 100)), 255), 0),\n\t\tMath.max(Math.min(Math.round(contrastColor[1] + dir * Math.max(1, contrastColor[1] / 100)), 255), 0),\n\t\tMath.max(Math.min(Math.round(contrastColor[2] + dir * Math.max(1, contrastColor[2] / 100)), 255), 0),\n\t];\n\tconst contrast = hex(rgbaConvert.hex(`rgba(${baseColor.join(',')},1)`), rgbaConvert.hex(`rgba(${color.join(',')},1)`));\n\tconst summe = color[0] + color[1] + color[2];\n\tif (summe === 0 || summe === 765 || contrast > ratio) {\n\t\treturn {\n\t\t\tbackground: baseColor,\n\t\t\tforeground: color,\n\t\t\tcontrast,\n\t\t};\n\t} else {\n\t\treturn calcColorContrast(baseColor, color, ratio, dir);\n\t}\n};\n\nconst cache: Map<unknown, ColorContrast<RGB>> = new Map();\n\nexport const getColorContrast = (baseColor: RGB, contrastColor: RGB, ratio: number, dir = 1): ColorContrast<RGB> => {\n\tif (cache.has(baseColor)) {\n\t\treturn cache.get(baseColor) as ColorContrast<RGB>;\n\t}\n\tconst color = calcColorContrast(baseColor, contrastColor, ratio, dir);\n\tcache.set(baseColor, color);\n\treturn color;\n};\n\nexport const createContrastColorPair = (color: string | ColorPair<string>, contrastRatio = 7): ColorContrast<string> => {\n\tlet baseColor: RGBA = [0, 0, 0, 1];\n\tlet contrastColor: RGBA = [255, 255, 255, 1];\n\tif (typeof color === 'string') {\n\t\tbaseColor = rgba(color);\n\t\tcontrastColor = baseColor;\n\t} else if (typeof color === 'object' && color !== null && typeof color.background === 'string' && typeof color.foreground === 'string') {\n\t\tbaseColor = rgba(color.background);\n\t\tif (typeof color.foreground === 'string') {\n\t\t\tcontrastColor = rgba(color.foreground);\n\t\t} else {\n\t\t\tcontrastColor = baseColor;\n\t\t}\n\t}\n\tconst yiq = getContrastYIQ(baseColor[0], baseColor[1], baseColor[2]);\n\tconst colorContrast = getColorContrast(\n\t\t[baseColor[0], baseColor[1], baseColor[2]],\n\t\t[contrastColor[0], contrastColor[1], contrastColor[2]],\n\t\tcontrastRatio,\n\t\tyiq,\n\t);\n\tcontrastColor = [...colorContrast.foreground, 1];\n\n\treturn {\n\t\tbackground: rgbaConvert.hex(`rgba(${baseColor.join(',')})`),\n\t\tforeground: rgbaConvert.hex(`rgba(${contrastColor.join(',')})`),\n\t\tcontrast: colorContrast.contrast,\n\t};\n};\n"],"names":["hex","rgbaConvert"],"mappings":";;;;;AAAA;AAIA;AACe,SAAS,IAAI,EAAE,KAAK,EAAE;AACrC;AACA,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,GAAG,EAAE,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,GAAG,SAAS,EAAC;AACxE;AACA,CAAI,IAAC,MAAM,CAAM;AACjB;AACA;AACA,CAAC,IAAI,MAAM,GAAG,KAAK,CAAC,KAAK,EAAC;AAC1B;AACA,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE;AAC7B;AACA,CAAC,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,IAAG;AACxD,CAAC,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,IAAG;AACxD;AACA,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC,EAAC;AAClB,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC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CAAC,UAAU,CAAC;;aAChC;YACN,aAAa,GAAG,SAAS;;;AAG3B,IAAA,MAAM,GAAG,GAAG,cAAc,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;AACpE,IAAA,MAAM,aAAa,GAAG,gBAAgB,CACrC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,EAC1C,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,EACtD,aAAa,EACb,GAAG,CACH;IACD,aAAa,GAAG,CAAC,GAAG,aAAa,CAAC,UAAU,EAAE,CAAC,CAAC;IAEhD,OAAO;AACN,QAAA,UAAU,EAAEA,MAAW,CAAC,GAAG,CAAC,CAAA,KAAA,EAAQ,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;AAC3D,QAAA,UAAU,EAAEA,MAAW,CAAC,GAAG,CAAC,CAAA,KAAA,EAAQ,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;QAC/D,QAAQ,EAAE,aAAa,CAAC,QAAQ;KAChC;AACF;;;;","x_google_ignoreList":[0]}
@@ -1,5 +1,5 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{g as t,e as i}from"./common-D5l8QiaY.js";import{v as s}from"./auto-complete-Bnrpv_sN.js";import{a,v as e,b as o}from"./counter-dom-updater-DbyoBkbs.js";import{v as h}from"./placeholder-BBA3H0w5.js";import{v as r}from"./read-only-CR_961Fh.js";import{v as l}from"./required-DSzN5_9V.js";import{v as m}from"./variant-class-name-DFWOlDkF.js";import{I as v}from"./controller-icon-CQmlbwLY.js";const d=(i,s,a={})=>{t(i,"_pattern",s,a)};const n=(t,s,a)=>{i(t,"_visibilityToggle",s,a)};class p extends v{constructor(t,i,s){super(t,i,s);this.component=t}validateAutoComplete(t){s(this.component,t)}validateHasCounter(t){a(this.component,t)}validateMaxLengthBehavior(t){e(this.component,t)}validateMaxLength(t){o(this.component,t)}validatePattern(t){d(this.component,t)}validatePlaceholder(t){h(this.component,t)}validateReadOnly(t){r(this.component,t)}validateRequired(t){l(this.component,t)}validateValue(i){t(this.component,"_value",i);this.setFormAssociatedValue(this.component.state._value)}validateVariant(t){m(this.component,t)}validateVisibilityToggle(t){n(this.component,t)}componentWillLoad(){super.componentWillLoad();this.validateAutoComplete(this.component._autoComplete);this.validateHasCounter(this.component._hasCounter);this.validateMaxLengthBehavior(this.component._maxLengthBehavior);this.validateMaxLength(this.component._maxLength);this.validatePattern(this.component._pattern);this.validatePlaceholder(this.component._placeholder);this.validateReadOnly(this.component._readOnly);this.validateRequired(this.component._required);this.validateValue(this.component._value);this.validateVariant(this.component._variant);this.validateVisibilityToggle(this.component._visibilityToggle)}}export{p as I};
5
- //# sourceMappingURL=controller-CE9LAI82.js.map
4
+ import{g as t,e as i}from"./common-D5l8QiaY.js";import{v as s}from"./auto-complete-Bnrpv_sN.js";import{a,v as e,b as o}from"./counter-dom-updater-DbyoBkbs.js";import{v as h}from"./placeholder-BBA3H0w5.js";import{v as r}from"./read-only-CR_961Fh.js";import{v as l}from"./required-DSzN5_9V.js";import{v as m}from"./variant-class-name-DFWOlDkF.js";import{I as v}from"./controller-icon-lAqXvi57.js";const d=(i,s,a={})=>{t(i,"_pattern",s,a)};const n=(t,s,a)=>{i(t,"_visibilityToggle",s,a)};class p extends v{constructor(t,i,s){super(t,i,s);this.component=t}validateAutoComplete(t){s(this.component,t)}validateHasCounter(t){a(this.component,t)}validateMaxLengthBehavior(t){e(this.component,t)}validateMaxLength(t){o(this.component,t)}validatePattern(t){d(this.component,t)}validatePlaceholder(t){h(this.component,t)}validateReadOnly(t){r(this.component,t)}validateRequired(t){l(this.component,t)}validateValue(i){t(this.component,"_value",i);this.setFormAssociatedValue(this.component.state._value)}validateVariant(t){m(this.component,t)}validateVisibilityToggle(t){n(this.component,t)}componentWillLoad(){super.componentWillLoad();this.validateAutoComplete(this.component._autoComplete);this.validateHasCounter(this.component._hasCounter);this.validateMaxLengthBehavior(this.component._maxLengthBehavior);this.validateMaxLength(this.component._maxLength);this.validatePattern(this.component._pattern);this.validatePlaceholder(this.component._placeholder);this.validateReadOnly(this.component._readOnly);this.validateRequired(this.component._required);this.validateValue(this.component._value);this.validateVariant(this.component._variant);this.validateVisibilityToggle(this.component._visibilityToggle)}}export{p as I};
5
+ //# sourceMappingURL=controller-B-aPh-rK.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"controller-CE9LAI82.js","sources":["src/schema/props/pattern.ts","src/schema/props/visibility-toggle.ts","src/components/input-password/controller.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\nimport type { WatchStringOptions } from '../utils';\nimport { watchString } from '../utils';\n\nexport type PatternPropType = string;\n\n/**\n * Defines a validation pattern for the input field.\n */\nexport type PropPattern = {\n\tpattern: PatternPropType;\n};\n\nexport const validatePattern = (component: Generic.Element.Component, value?: PatternPropType, options: WatchStringOptions = {}): void => {\n\twatchString(component, '_pattern', value, options);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchBooleanOptions } from '../utils';\nimport { watchBoolean } from '../utils';\n\n/* types */\nexport type VisibilityTogglePropType = boolean;\n\n/**\n * Activates the show password button.\n */\nexport type PropVisibilityToggle = {\n\tvisibilityToggle: VisibilityTogglePropType;\n};\n\n/* validator */\nexport const validateVisibilityToggle = (component: Generic.Element.Component, value?: VisibilityTogglePropType, hooks?: WatchBooleanOptions): void => {\n\twatchBoolean(component, '_visibilityToggle', value, hooks);\n};\n","import type {\n\tAutoCompletePropType,\n\tHasCounterPropType,\n\tInputPasswordProps,\n\tInputPasswordWatches,\n\tMaxLengthBehaviorPropType,\n\tPlaceholderPropType,\n\tReadOnlyPropType,\n\tRequiredPropType,\n\tVariantClassNamePropType,\n} from '../../schema';\nimport {\n\tvalidateHasCounter,\n\tvalidateMaxLength,\n\tvalidatePattern,\n\tvalidatePlaceholder,\n\tvalidateReadOnly,\n\tvalidateRequired,\n\tvalidateVariantClassName,\n\twatchString,\n} from '../../schema';\nimport { validateAutoComplete } from '../../schema/props/auto-complete';\nimport { validateMaxLengthBehavior } from '../../schema/props/max-length-behavior';\nimport { validateVisibilityToggle, type VisibilityTogglePropType } from '../../schema/props/visibility-toggle';\n\nimport { InputIconController } from '../@deprecated/input/controller-icon';\n\nimport type { Generic } from 'adopted-style-sheets';\n\nexport class InputPasswordController extends InputIconController implements InputPasswordWatches {\n\tprotected readonly component: Generic.Element.Component & InputPasswordProps;\n\n\tpublic constructor(component: Generic.Element.Component & InputPasswordProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateAutoComplete(value?: AutoCompletePropType): void {\n\t\tvalidateAutoComplete(this.component, value);\n\t}\n\n\tpublic validateHasCounter(value?: HasCounterPropType): void {\n\t\tvalidateHasCounter(this.component, value);\n\t}\n\n\tpublic validateMaxLengthBehavior(value?: MaxLengthBehaviorPropType): void {\n\t\tvalidateMaxLengthBehavior(this.component, value);\n\t}\n\n\tpublic validateMaxLength(value?: number): void {\n\t\tvalidateMaxLength(this.component, value);\n\t}\n\n\tpublic validatePattern(value?: string): void {\n\t\tvalidatePattern(this.component, value);\n\t}\n\n\tpublic validatePlaceholder(value?: PlaceholderPropType): void {\n\t\tvalidatePlaceholder(this.component, value);\n\t}\n\n\tpublic validateReadOnly(value?: ReadOnlyPropType): void {\n\t\tvalidateReadOnly(this.component, value);\n\t}\n\n\tpublic validateRequired(value?: RequiredPropType): void {\n\t\tvalidateRequired(this.component, value);\n\t}\n\n\tpublic validateValue(value?: string): void {\n\t\twatchString(this.component, '_value', value);\n\t\tthis.setFormAssociatedValue(this.component.state._value as string);\n\t}\n\n\tpublic validateVariant(value?: VariantClassNamePropType): void {\n\t\tvalidateVariantClassName(this.component, value);\n\t}\n\n\tpublic validateVisibilityToggle(value?: VisibilityTogglePropType): void {\n\t\tvalidateVisibilityToggle(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateAutoComplete(this.component._autoComplete);\n\t\tthis.validateHasCounter(this.component._hasCounter);\n\t\tthis.validateMaxLengthBehavior(this.component._maxLengthBehavior);\n\t\tthis.validateMaxLength(this.component._maxLength);\n\t\tthis.validatePattern(this.component._pattern);\n\t\tthis.validatePlaceholder(this.component._placeholder);\n\t\tthis.validateReadOnly(this.component._readOnly);\n\t\tthis.validateRequired(this.component._required);\n\t\tthis.validateValue(this.component._value);\n\t\tthis.validateVariant(this.component._variant);\n\t\tthis.validateVisibilityToggle(this.component._visibilityToggle);\n\t}\n}\n"],"names":[],"mappings":";;;;;;;;;;;;AAaO,MAAM,eAAe,GAAG,CAAC,SAAoC,EAAE,KAAuB,EAAE,OAAA,GAA8B,EAAE,KAAU;IACxI,WAAW,CAAC,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,CAAC;AACnD,CAAC;;ACCM,MAAM,wBAAwB,GAAG,CAAC,SAAoC,EAAE,KAAgC,EAAE,KAA2B,KAAU;IACrJ,YAAY,CAAC,SAAS,EAAE,mBAAmB,EAAE,KAAK,EAAE,KAAK,CAAC;AAC3D,CAAC;;ACWK,MAAO,uBAAwB,SAAQ,mBAAmB,CAAA;AAG/D,IAAA,WAAA,CAAmB,SAAyD,EAAE,IAAY,EAAE,IAAkB,EAAA;AAC7G,QAAA,KAAK,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC;AAC5B,QAAA,IAAI,CAAC,SAAS,GAAG,SAAS;;AAGpB,IAAA,oBAAoB,CAAC,KAA4B,EAAA;AACvD,QAAA,oBAAoB,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC;;AAGrC,IAAA,kBAAkB,CAAC,KAA0B,EAAA;AACnD,QAAA,kBAAkB,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AAS,CAAC,WAAW,CAAC;QACnD,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC,SAAS,CAAC,kBAAkB,CAAC;QACjE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC;QACjD,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC;QAC7C,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC;QACrD,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC;QAC/C,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC;QAC/C,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;QACzC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC;QAC7C,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC;;AAEhE;;;;"}
1
+ {"version":3,"file":"controller-B-aPh-rK.js","sources":["src/schema/props/pattern.ts","src/schema/props/visibility-toggle.ts","src/components/input-password/controller.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\nimport type { WatchStringOptions } from '../utils';\nimport { watchString } from '../utils';\n\nexport type PatternPropType = string;\n\n/**\n * Defines a validation pattern for the input field.\n */\nexport type PropPattern = {\n\tpattern: PatternPropType;\n};\n\nexport const validatePattern = (component: Generic.Element.Component, value?: PatternPropType, options: WatchStringOptions = {}): void => {\n\twatchString(component, '_pattern', value, options);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchBooleanOptions } from '../utils';\nimport { watchBoolean } from '../utils';\n\n/* types */\nexport type VisibilityTogglePropType = boolean;\n\n/**\n * Activates the show password button.\n */\nexport type PropVisibilityToggle = {\n\tvisibilityToggle: VisibilityTogglePropType;\n};\n\n/* validator */\nexport const validateVisibilityToggle = (component: Generic.Element.Component, value?: VisibilityTogglePropType, hooks?: WatchBooleanOptions): void => {\n\twatchBoolean(component, '_visibilityToggle', value, hooks);\n};\n","import type {\n\tAutoCompletePropType,\n\tHasCounterPropType,\n\tInputPasswordProps,\n\tInputPasswordWatches,\n\tMaxLengthBehaviorPropType,\n\tPlaceholderPropType,\n\tReadOnlyPropType,\n\tRequiredPropType,\n\tVariantClassNamePropType,\n} from '../../schema';\nimport {\n\tvalidateHasCounter,\n\tvalidateMaxLength,\n\tvalidatePattern,\n\tvalidatePlaceholder,\n\tvalidateReadOnly,\n\tvalidateRequired,\n\tvalidateVariantClassName,\n\twatchString,\n} from '../../schema';\nimport { validateAutoComplete } from '../../schema/props/auto-complete';\nimport { validateMaxLengthBehavior } from '../../schema/props/max-length-behavior';\nimport { validateVisibilityToggle, type VisibilityTogglePropType } from '../../schema/props/visibility-toggle';\n\nimport { InputIconController } from '../@deprecated/input/controller-icon';\n\nimport type { Generic } from 'adopted-style-sheets';\n\nexport class InputPasswordController extends InputIconController implements InputPasswordWatches {\n\tprotected readonly component: Generic.Element.Component & InputPasswordProps;\n\n\tpublic constructor(component: Generic.Element.Component & InputPasswordProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateAutoComplete(value?: AutoCompletePropType): void {\n\t\tvalidateAutoComplete(this.component, value);\n\t}\n\n\tpublic validateHasCounter(value?: HasCounterPropType): void {\n\t\tvalidateHasCounter(this.component, value);\n\t}\n\n\tpublic validateMaxLengthBehavior(value?: MaxLengthBehaviorPropType): void {\n\t\tvalidateMaxLengthBehavior(this.component, value);\n\t}\n\n\tpublic validateMaxLength(value?: number): void {\n\t\tvalidateMaxLength(this.component, value);\n\t}\n\n\tpublic validatePattern(value?: string): void {\n\t\tvalidatePattern(this.component, value);\n\t}\n\n\tpublic validatePlaceholder(value?: PlaceholderPropType): void {\n\t\tvalidatePlaceholder(this.component, value);\n\t}\n\n\tpublic validateReadOnly(value?: ReadOnlyPropType): void {\n\t\tvalidateReadOnly(this.component, value);\n\t}\n\n\tpublic validateRequired(value?: RequiredPropType): void {\n\t\tvalidateRequired(this.component, value);\n\t}\n\n\tpublic validateValue(value?: string): void {\n\t\twatchString(this.component, '_value', value);\n\t\tthis.setFormAssociatedValue(this.component.state._value as string);\n\t}\n\n\tpublic validateVariant(value?: VariantClassNamePropType): void {\n\t\tvalidateVariantClassName(this.component, value);\n\t}\n\n\tpublic validateVisibilityToggle(value?: VisibilityTogglePropType): void {\n\t\tvalidateVisibilityToggle(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateAutoComplete(this.component._autoComplete);\n\t\tthis.validateHasCounter(this.component._hasCounter);\n\t\tthis.validateMaxLengthBehavior(this.component._maxLengthBehavior);\n\t\tthis.validateMaxLength(this.component._maxLength);\n\t\tthis.validatePattern(this.component._pattern);\n\t\tthis.validatePlaceholder(this.component._placeholder);\n\t\tthis.validateReadOnly(this.component._readOnly);\n\t\tthis.validateRequired(this.component._required);\n\t\tthis.validateValue(this.component._value);\n\t\tthis.validateVariant(this.component._variant);\n\t\tthis.validateVisibilityToggle(this.component._visibilityToggle);\n\t}\n}\n"],"names":[],"mappings":";;;;;;;;;;;;AAaO,MAAM,eAAe,GAAG,CAAC,SAAoC,EAAE,KAAuB,EAAE,OAAA,GAA8B,EAAE,KAAU;IACxI,WAAW,CAAC,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,CAAC;AACnD,CAAC;;ACCM,MAAM,wBAAwB,GAAG,CAAC,SAAoC,EAAE,KAAgC,EAAE,KAA2B,KAAU;IACrJ,YAAY,CAAC,SAAS,EAAE,mBAAmB,EAAE,KAAK,EAAE,KAAK,CAAC;AAC3D,CAAC;;ACWK,MAAO,uBAAwB,SAAQ,mBAAmB,CAAA;AAG/D,IAAA,WAAA,CAAmB,SAAyD,EAAE,IAAY,EAAE,IAAkB,EAAA;AAC7G,QAAA,K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AwB,CAAC,KAAgC,EAAA;AAC/D,QAAA,wBAAwB,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC;;IAGzC,iBAAiB,GAAA;QACvB,KAAK,CAAC,iBAAiB,EAAE;QACzB,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC;QACvD,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;QACnD,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC,SAAS,CAAC,kBAAkB,CAAC;QACjE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC;QACjD,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC;QAC7C,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC;QACrD,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC;QAC/C,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC;QAC/C,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;QACzC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC;QAC7C,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC;;AAEhE;;;;"}
@@ -1,5 +1,5 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{b as s}from"./common-D5l8QiaY.js";import{v as t}from"./spell-check-CoGXExpz.js";import{v as e}from"./suggestions-Bqlc1vUw.js";import{I as o}from"./controller-CE9LAI82.js";const i=["text","search","url","tel"];const r=s=>typeof s==="string"&&i.includes(s);const a=(t,e)=>{s(t,"_type",r,new Set(i),e)};class l extends o{constructor(s,t,e){super(s,t,e);this.component=s}validateSuggestions(s){e(this.component,s)}componentWillLoad(){super.componentWillLoad();this.validateSuggestions(this.component._suggestions)}}class c extends l{constructor(s,t,e){super(s,t,e);this.hasError=false;this.component=s}validateSpellCheck(s){t(this.component,s)}validateType(s){a(this.component,s)}componentWillLoad(){super.componentWillLoad();this.validateSpellCheck(this.component._spellCheck);this.validateType(this.component._type)}}export{l as I,c as a};
5
- //# sourceMappingURL=controller-iY_1YW2P.js.map
4
+ import{b as s}from"./common-D5l8QiaY.js";import{v as t}from"./spell-check-CoGXExpz.js";import{v as e}from"./suggestions-Bqlc1vUw.js";import{I as o}from"./controller-B-aPh-rK.js";const i=["text","search","url","tel"];const r=s=>typeof s==="string"&&i.includes(s);const a=(t,e)=>{s(t,"_type",r,new Set(i),e)};class l extends o{constructor(s,t,e){super(s,t,e);this.component=s}validateSuggestions(s){e(this.component,s)}componentWillLoad(){super.componentWillLoad();this.validateSuggestions(this.component._suggestions)}}class c extends l{constructor(s,t,e){super(s,t,e);this.hasError=false;this.component=s}validateSpellCheck(s){t(this.component,s)}validateType(s){a(this.component,s)}componentWillLoad(){super.componentWillLoad();this.validateSpellCheck(this.component._spellCheck);this.validateType(this.component._type)}}export{l as I,c as a};
5
+ //# sourceMappingURL=controller-BKG2L8_f.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"controller-iY_1YW2P.js","sources":["src/schema/props/type-input-text.ts","src/components/input-text/controller.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchValidator } from '../utils';\n\nexport const inputTextTypeOptions = ['text', 'search', 'url', 'tel'] as const;\nexport type InputTextTypePropType = (typeof inputTextTypeOptions)[number];\n\n/**\n * Defines the type of the input-text component.\n */\nexport type PropTypeInputText = {\n\ttype: InputTextTypePropType;\n};\n\nconst isInputTextTypePropType = (value: unknown): value is InputTextTypePropType => {\n\treturn typeof value === 'string' && inputTextTypeOptions.includes(value as InputTextTypePropType);\n};\n\nexport const validateTypeInputText = (component: Generic.Element.Component, value?: InputTextTypePropType): void => {\n\twatchValidator(component, '_type', isInputTextTypePropType, new Set(inputTextTypeOptions), value);\n};\n","import type {\n\tInputTextProps,\n\tInputTextTypePropType,\n\tInputTextWatches,\n\tPropLabelWithExpertSlot,\n\tPropSuggestions,\n\tSpellCheckPropType,\n\tSuggestionsPropType,\n} from '../../schema';\nimport { validateSpellCheck, validateSuggestions, validateTypeInputText } from '../../schema';\n\nimport { InputPasswordController } from '../input-password/controller';\n\nimport type { Generic } from 'adopted-style-sheets';\n\ntype RequiredProps = PropLabelWithExpertSlot;\ntype OptionalProps = PropSuggestions;\ntype InputTextEmailProps = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype InputTextEmailWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\nexport class InputTextEmailController extends InputPasswordController implements InputTextEmailWatches {\n\tprotected readonly component: Generic.Element.Component & InputTextEmailProps;\n\n\tpublic constructor(component: Generic.Element.Component & InputTextEmailProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateSuggestions(value?: SuggestionsPropType): void {\n\t\tvalidateSuggestions(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateSuggestions(this.component._suggestions);\n\t}\n}\n\nexport class InputTextController extends InputTextEmailController implements InputTextWatches {\n\tprotected readonly component: Generic.Element.Component & InputTextProps;\n\n\tpublic hasError = false;\n\n\tpublic constructor(component: Generic.Element.Component & InputTextProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateSpellCheck(value?: SpellCheckPropType): void {\n\t\tvalidateSpellCheck(this.component, value);\n\t}\n\n\tpublic validateType(value?: InputTextTypePropType): void {\n\t\tvalidateTypeInputText(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateSpellCheck(this.component._spellCheck);\n\t\tthis.validateType(this.component._type);\n\t}\n}\n"],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,CAAC;;AAGnC,IAAA,YAAY,CAAC,KAA6B,EAAA;AAChD,QAAA,qBAAqB,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC;;IAGtC,iBAAiB,GAAA;QACvB,KAAK,CAAC,iBAAiB,EAAE;QACzB,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;QACnD,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;;AAExC;;;;"}
1
+ {"version":3,"file":"controller-BKG2L8_f.js","sources":["src/schema/props/type-input-text.ts","src/components/input-text/controller.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchValidator } from '../utils';\n\nexport const inputTextTypeOptions = ['text', 'search', 'url', 'tel'] as const;\nexport type InputTextTypePropType = (typeof inputTextTypeOptions)[number];\n\n/**\n * Defines the type of the input-text component.\n */\nexport type PropTypeInputText = {\n\ttype: InputTextTypePropType;\n};\n\nconst isInputTextTypePropType = (value: unknown): value is InputTextTypePropType => {\n\treturn typeof value === 'string' && inputTextTypeOptions.includes(value as InputTextTypePropType);\n};\n\nexport const validateTypeInputText = (component: Generic.Element.Component, value?: InputTextTypePropType): void => {\n\twatchValidator(component, '_type', isInputTextTypePropType, new Set(inputTextTypeOptions), value);\n};\n","import type {\n\tInputTextProps,\n\tInputTextTypePropType,\n\tInputTextWatches,\n\tPropLabelWithExpertSlot,\n\tPropSuggestions,\n\tSpellCheckPropType,\n\tSuggestionsPropType,\n} from '../../schema';\nimport { validateSpellCheck, validateSuggestions, validateTypeInputText } from '../../schema';\n\nimport { InputPasswordController } from '../input-password/controller';\n\nimport type { Generic } from 'adopted-style-sheets';\n\ntype RequiredProps = PropLabelWithExpertSlot;\ntype OptionalProps = PropSuggestions;\ntype InputTextEmailProps = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype InputTextEmailWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\nexport class InputTextEmailController extends InputPasswordController implements InputTextEmailWatches {\n\tprotected readonly component: Generic.Element.Component & InputTextEmailProps;\n\n\tpublic constructor(component: Generic.Element.Component & InputTextEmailProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateSuggestions(value?: SuggestionsPropType): void {\n\t\tvalidateSuggestions(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateSuggestions(this.component._suggestions);\n\t}\n}\n\nexport class InputTextController extends InputTextEmailController implements InputTextWatches {\n\tprotected readonly component: Generic.Element.Component & InputTextProps;\n\n\tpublic hasError = false;\n\n\tpublic constructor(component: Generic.Element.Component & InputTextProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateSpellCheck(value?: SpellCheckPropType): void {\n\t\tvalidateSpellCheck(this.component, value);\n\t}\n\n\tpublic validateType(value?: InputTextTypePropType): void {\n\t\tvalidateTypeInputText(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateSpellCheck(this.component._spellCheck);\n\t\tthis.validateType(this.component._type);\n\t}\n}\n"],"names":[],"mappings":";;;;;;;;AAIO,MAAM,oBAAoB,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,CAAU;AAU7E,MAAM,uBAAuB,GAAG,CAAC,KAAc,KAAoC;IAClF,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,oBAAoB,CAAC,QAAQ,CAAC,KAA8B,CAAC;AAClG,CAAC;AAEM,MAAM,qBAAqB,GAAG,CAAC,SAAoC,EAAE,KAA6B,KAAU;AAClH,IAAA,cAAc,CAAC,SAAS,EAAE,OAAO,EAAE,uBAAuB,EAAE,IAAI,GAAG,CAAC,oBAAoB,CAAC,EAAE,KAAK,CAAC;AAClG,CAAC;;ACAK,MAAO,wBAAyB,SAAQ,uBAAuB,C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9V.js";import{v as a}from"./orientation-BOSiSKDw.js";import{I as n}from"./FormFieldStateWrapper-BogeRuh6.js";const f=e=>{if(typeof e==="object"&&e!==null){if(typeof e.label==="string"&&e.label.length>0){e.disabled=e.disabled===true;e.label=`${e.label}`.trim();if(i(e.label,3)===false&&r(e.label)===false){t(`A differing Aria-Label (${e.label}) is inaccessible. A differing Aria-Label should consist of at least three readable characters.`)}if(Array.isArray(e.options)){return e.options.find((t=>f(t)===false))===undefined}return true}else if(typeof e.label==="number"){return true}}return false};const l=(t,s,i={})=>{e(t,"_options",(t=>typeof t==="object"&&t!==null&&typeof t.label==="string"&&t.label.length>0),s,undefined,i)};const h=(t,s,i={})=>{e(t,"_options",f,s,undefined,i)};const c=(t,e,s="")=>{e.forEach(((e,i)=>{const r=`${s}-${i}`;if(typeof e==="object"&&e!==null&&typeof e.label==="string"&&e.label.length>0){if(Array.isArray(e.options)){c(t,e.options,r)}else{t.set(r,e)}}}))};class u extends n{constructor(t,e,s){super(t,e,s);this.component=t}validateRequired(t){o(this.component,t)}componentWillLoad(){super.componentWillLoad();this.validateRequired(this.component._required)}}class p extends u{constructor(t,e,s){super(t,e,s);this.keyOptionMap=new Map;this.getOptionByKey=t=>this.keyOptionMap.get(t);this.afterPatchOptions=(t,e,s,i)=>{if(i==="_value"){this.setFormAssociatedValue(t)}};this.beforePatchOptions=(t,e)=>{const s=e.has("_options")?e.get("_options"):this.component.state._options;if(Array.isArray(s)&&s.length>0){this.keyOptionMap.clear();const t=s.map((t=>{var e;if(typeof t==="object"&&t!==null&&typeof t.label==="string"){return Object.assign(Object.assign({},t),{value:(e=t.value)!==null&&e!==void 0?e:t.label})}return t}));c(this.keyOptionMap,t)}};this.component=t}validateOrientation(t){a(this.component,t,"vertical")}validateOptions(t){l(this.component,t,{hooks:{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions}})}validateValue(t){t=Array.isArray(t)?t[0]:t;s(this.component,"_value",t,{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions})}componentWillLoad(){super.componentWillLoad();this.validateOrientation(this.component._orientation);this.validateOptions(this.component._options);this.validateValue(this.component._value)}}export{u as I,p as a,l as b,c as f,h as v};
5
+ //# sourceMappingURL=controller-i4DAkaDb.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"controller-BCZEcGnd.js","sources":["src/schema/validators/options.ts","src/schema/props/options.ts","src/components/input-radio/controller.ts"],"sourcesContent":["import { containsOnlyNumbers, hasEnoughReadableChars } from '../props';\nimport { a11yHint } from '../utils';\n\nimport type { Optgroup, SelectOption } from '../types';\nexport const validateInputSelectOptions = <T>(option: SelectOption<T>): boolean => {\n\tif (typeof option === 'object' && option !== null) {\n\t\tif (typeof option.label === 'string' && option.label.length > 0) {\n\t\t\toption.disabled = option.disabled === true;\n\t\t\toption.label = `${option.label}`.trim();\n\t\t\tif (hasEnoughReadableChars(option.label, 3) === false && containsOnlyNumbers(option.label) === false) {\n\t\t\t\ta11yHint(`A differing Aria-Label (${option.label}) is inaccessible. A differing Aria-Label should consist of at least three readable characters.`);\n\t\t\t}\n\t\t\tif (Array.isArray((option as Optgroup<T>).options)) {\n\t\t\t\treturn (\n\t\t\t\t\t(option as Optgroup<T>).options.find((item) => {\n\t\t\t\t\t\treturn validateInputSelectOptions(item) === false;\n\t\t\t\t\t}) === undefined\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn true;\n\t\t} else if (typeof option.label === 'number') {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { Optgroup, Option, RadioOption, StencilUnknown } from '../types';\nimport type { Stringified } from '../types/common';\nimport type { WatchOptions } from '../utils';\nimport { watchJsonArrayString } from '../utils';\nimport { validateInputSelectOptions } from '../validators';\n\n/* types */\n\nexport type OptionsPropType = Stringified<Option<StencilUnknown>[]>;\nexport type OptionsWithOptgroupPropType = Stringified<(Option<StencilUnknown> | Optgroup<StencilUnknown>)[]>;\nexport type RadioOptionsPropType = Stringified<RadioOption<StencilUnknown>[]>;\n\n/**\n * Options the user can choose from.\n */\nexport type PropOptions = {\n\toptions: OptionsPropType;\n};\n\nexport type PropRadioOptions = {\n\toptions: RadioOptionsPropType;\n};\n\n/**\n * Options the user can choose from.\n */\nexport type PropOptionsWithOptgroup = {\n\toptions: OptionsWithOptgroupPropType;\n};\n\n/* validators */\n\nexport const validateOptions = (component: Generic.Element.Component, value: OptionsPropType | undefined, options: WatchOptions = {}): void => {\n\twatchJsonArrayString(\n\t\tcomponent,\n\t\t'_options',\n\t\t(item: Option<StencilUnknown>) => typeof item === 'object' && item !== null && typeof item.label === 'string' && item.label.length > 0,\n\t\tvalue,\n\t\tundefined,\n\t\toptions,\n\t);\n};\n\nexport const validateOptionsWithOptgroup = (\n\tcomponent: Generic.Element.Component,\n\tvalue: OptionsWithOptgroupPropType | undefined,\n\toptions: WatchOptions = {},\n) => {\n\twatchJsonArrayString(component, '_options', validateInputSelectOptions, value, undefined, options);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type {\n\tInputRadioProps,\n\tInputRadioWatches,\n\tOptgroup,\n\tOptionsPropType,\n\tPropLabelWithExpertSlot,\n\tRadioOption,\n\tRequiredPropType,\n\tSelectOption,\n\tStencilUnknown,\n} from '../../schema';\nimport { setState, validateOptions, validateRequired } from '../../schema';\n\nimport type { OrientationPropType } from '../../schema/props/orientation';\nimport { validateOrientation } from '../../schema/props/orientation';\nimport { InputController } from '../@deprecated/input/controller';\n\nexport const fillKeyOptionMap = <T>(keyOptionMap: Map<string, RadioOption<T>>, options: SelectOption<T>[], preKey = ''): void => {\n\toptions.forEach((option, index) => {\n\t\tconst key = `${preKey}-${index}`;\n\t\tif (typeof option === 'object' && option !== null && typeof option.label === 'string' && option.label.length > 0) {\n\t\t\tif (Array.isArray((option as Optgroup<T>).options)) {\n\t\t\t\tfillKeyOptionMap(keyOptionMap, (option as Optgroup<T>).options, key);\n\t\t\t} else {\n\t\t\t\tkeyOptionMap.set(key, option as RadioOption<T>);\n\t\t\t}\n\t\t}\n\t});\n};\n\ntype RequiredProps = PropLabelWithExpertSlot;\ntype OptionalProps = {\n\trequired: boolean;\n};\ntype InputCheckboxRadioProps = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype InputCheckboxRadioWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\nexport class InputCheckboxRadioController extends InputController implements InputCheckboxRadioWatches {\n\tprotected readonly component: Generic.Element.Component & InputCheckboxRadioProps;\n\n\tpublic constructor(component: Generic.Element.Component & InputCheckboxRadioProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateRequired(value?: RequiredPropType): void {\n\t\tvalidateRequired(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateRequired(this.component._required);\n\t}\n}\n\nexport class InputRadioController extends InputCheckboxRadioController implements InputRadioWatches {\n\tprotected readonly component: Generic.Element.Component & InputRadioProps;\n\tprivate readonly keyOptionMap = new Map<string, RadioOption<StencilUnknown>>();\n\n\tpublic constructor(component: Generic.Element.Component & InputRadioProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic readonly getOptionByKey = (key: string): RadioOption<StencilUnknown> | undefined => this.keyOptionMap.get(key);\n\n\tprotected readonly afterPatchOptions = (value: unknown, _state: Record<string, unknown>, _component: Generic.Element.Component, key: string): void => {\n\t\tif (key === '_value') {\n\t\t\tthis.setFormAssociatedValue(value as string);\n\t\t}\n\t};\n\n\tpublic validateOrientation(value?: OrientationPropType): void {\n\t\tvalidateOrientation(this.component, value, 'vertical');\n\t}\n\n\tprotected readonly beforePatchOptions = (_value: unknown, nextState: Map<string, unknown>): void => {\n\t\tconst options = nextState.has('_options') ? nextState.get('_options') : this.component.state._options;\n\t\tif (Array.isArray(options) && options.length > 0) {\n\t\t\tthis.keyOptionMap.clear();\n\n\t\t\tconst normalizedOptions = options.map((option: RadioOption<StencilUnknown> | string) => {\n\t\t\t\tif (typeof option === 'object' && option !== null && typeof option.label === 'string') {\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...option,\n\t\t\t\t\t\tvalue: option.value ?? option.label,\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\treturn option;\n\t\t\t});\n\n\t\t\tfillKeyOptionMap(this.keyOptionMap, normalizedOptions as SelectOption<StencilUnknown>[]);\n\t\t}\n\t};\n\n\tpublic validateOptions(value?: OptionsPropType): void {\n\t\tvalidateOptions(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: this.afterPatchOptions,\n\t\t\t\tbeforePatch: this.beforePatchOptions,\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic validateValue(value?: StencilUnknown): void {\n\t\tvalue = Array.isArray(value) ? (value[0] as StencilUnknown) : value;\n\t\tsetState(this.component, '_value', value, {\n\t\t\tafterPatch: this.afterPatchOptions,\n\t\t\tbeforePatch: this.beforePatchOptions,\n\t\t});\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateOrientation(this.component._orientation);\n\t\tthis.validateOptions(this.component._options);\n\t\tthis.validateValue(this.component._value);\n\t}\n}\n"],"names":[],"mappings":";;;;;;;;;AAIO,MAAM,0BAA0B,GAAG,CAAI,MAAuB,KAAa;IACjF,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,IAAI,EAAE;AAClD,QAAA,IAAI,OAAO,MAAM,CAAC,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;YAChE,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,KAAK,IAAI;YAC1C,MAAM,CAAC,KAAK,GAAG,CAAG,EAAA,MAAM,CAAC,KAAK,CAAE,CAAA,CAAC,IAAI,EAAE;YACvC,IAAI,sBAAsB,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,K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AAC,SAAS,EAAE,KAAK,EAAE,UAAU,CAAC;;AAsBhD,IAAA,eAAe,CAAC,KAAuB,EAAA;AAC7C,QAAA,eAAe,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE;AACtC,YAAA,KAAK,EAAE;gBACN,UAAU,EAAE,IAAI,CAAC,iBAAiB;gBAClC,WAAW,EAAE,IAAI,CAAC,kBAAkB;AACpC,aAAA;AACD,SAAA,CAAC;;AAGI,IAAA,aAAa,CAAC,KAAsB,EAAA;AAC1C,QAAA,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,GAAI,KAAK,CAAC,CAAC,CAAoB,GAAG,KAAK;QACnE,QAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE;YACzC,UAAU,EAAE,IAAI,CAAC,iBAAiB;YAClC,WAAW,EAAE,IAAI,CAAC,kBAAkB;AACpC,SAAA,CAAC;;IAGI,iBAAiB,GAAA;QACvB,KAAK,CAAC,iBAAiB,EAAE;QACzB,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC;QACrD,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC;QAC7C,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;;AAE1C;;;;"}
1
+ {"version":3,"file":"controller-i4DAkaDb.js","sources":["src/schema/validators/options.ts","src/schema/props/options.ts","src/components/input-radio/controller.ts"],"sourcesContent":["import { containsOnlyNumbers, hasEnoughReadableChars } from '../props';\nimport { a11yHint } from '../utils';\n\nimport type { Optgroup, SelectOption } from '../types';\nexport const validateInputSelectOptions = <T>(option: SelectOption<T>): boolean => {\n\tif (typeof option === 'object' && option !== null) {\n\t\tif (typeof option.label === 'string' && option.label.length > 0) {\n\t\t\toption.disabled = option.disabled === true;\n\t\t\toption.label = `${option.label}`.trim();\n\t\t\tif (hasEnoughReadableChars(option.label, 3) === false && containsOnlyNumbers(option.label) === false) {\n\t\t\t\ta11yHint(`A differing Aria-Label (${option.label}) is inaccessible. A differing Aria-Label should consist of at least three readable characters.`);\n\t\t\t}\n\t\t\tif (Array.isArray((option as Optgroup<T>).options)) {\n\t\t\t\treturn (\n\t\t\t\t\t(option as Optgroup<T>).options.find((item) => {\n\t\t\t\t\t\treturn validateInputSelectOptions(item) === false;\n\t\t\t\t\t}) === undefined\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn true;\n\t\t} else if (typeof option.label === 'number') {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { Optgroup, Option, RadioOption, StencilUnknown } from '../types';\nimport type { Stringified } from '../types/common';\nimport type { WatchOptions } from '../utils';\nimport { watchJsonArrayString } from '../utils';\nimport { validateInputSelectOptions } from '../validators';\n\n/* types */\n\nexport type OptionsPropType = Stringified<Option<StencilUnknown>[]>;\nexport type OptionsWithOptgroupPropType = Stringified<(Option<StencilUnknown> | Optgroup<StencilUnknown>)[]>;\nexport type RadioOptionsPropType = Stringified<RadioOption<StencilUnknown>[]>;\n\n/**\n * Options the user can choose from.\n */\nexport type PropOptions = {\n\toptions: OptionsPropType;\n};\n\nexport type PropRadioOptions = {\n\toptions: RadioOptionsPropType;\n};\n\n/**\n * Options the user can choose from.\n */\nexport type PropOptionsWithOptgroup = {\n\toptions: OptionsWithOptgroupPropType;\n};\n\n/* validators */\n\nexport const validateOptions = (component: Generic.Element.Component, value: OptionsPropType | undefined, options: WatchOptions = {}): void => {\n\twatchJsonArrayString(\n\t\tcomponent,\n\t\t'_options',\n\t\t(item: Option<StencilUnknown>) => typeof item === 'object' && item !== null && typeof item.label === 'string' && item.label.length > 0,\n\t\tvalue,\n\t\tundefined,\n\t\toptions,\n\t);\n};\n\nexport const validateOptionsWithOptgroup = (\n\tcomponent: Generic.Element.Component,\n\tvalue: OptionsWithOptgroupPropType | undefined,\n\toptions: WatchOptions = {},\n) => {\n\twatchJsonArrayString(component, '_options', validateInputSelectOptions, value, undefined, options);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type {\n\tInputRadioProps,\n\tInputRadioWatches,\n\tOptgroup,\n\tOptionsPropType,\n\tPropLabelWithExpertSlot,\n\tRadioOption,\n\tRequiredPropType,\n\tSelectOption,\n\tStencilUnknown,\n} from '../../schema';\nimport { setState, validateOptions, validateRequired } from '../../schema';\n\nimport type { OrientationPropType } from '../../schema/props/orientation';\nimport { validateOrientation } from '../../schema/props/orientation';\nimport { InputController } from '../@deprecated/input/controller';\n\nexport const fillKeyOptionMap = <T>(keyOptionMap: Map<string, RadioOption<T>>, options: SelectOption<T>[], preKey = ''): void => {\n\toptions.forEach((option, index) => {\n\t\tconst key = `${preKey}-${index}`;\n\t\tif (typeof option === 'object' && option !== null && typeof option.label === 'string' && option.label.length > 0) {\n\t\t\tif (Array.isArray((option as Optgroup<T>).options)) {\n\t\t\t\tfillKeyOptionMap(keyOptionMap, (option as Optgroup<T>).options, key);\n\t\t\t} else {\n\t\t\t\tkeyOptionMap.set(key, option as RadioOption<T>);\n\t\t\t}\n\t\t}\n\t});\n};\n\ntype RequiredProps = PropLabelWithExpertSlot;\ntype OptionalProps = {\n\trequired: boolean;\n};\ntype InputCheckboxRadioProps = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype InputCheckboxRadioWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\nexport class InputCheckboxRadioController extends InputController implements InputCheckboxRadioWatches {\n\tprotected readonly component: Generic.Element.Component & InputCheckboxRadioProps;\n\n\tpublic constructor(component: Generic.Element.Component & InputCheckboxRadioProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateRequired(value?: RequiredPropType): void {\n\t\tvalidateRequired(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateRequired(this.component._required);\n\t}\n}\n\nexport class InputRadioController extends InputCheckboxRadioController implements InputRadioWatches {\n\tprotected readonly component: Generic.Element.Component & InputRadioProps;\n\tprivate readonly keyOptionMap = new Map<string, RadioOption<StencilUnknown>>();\n\n\tpublic constructor(component: Generic.Element.Component & InputRadioProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic readonly getOptionByKey = (key: string): RadioOption<StencilUnknown> | undefined => this.keyOptionMap.get(key);\n\n\tprotected readonly afterPatchOptions = (value: unknown, _state: Record<string, unknown>, _component: Generic.Element.Component, key: string): void => {\n\t\tif (key === '_value') {\n\t\t\tthis.setFormAssociatedValue(value as string);\n\t\t}\n\t};\n\n\tpublic validateOrientation(value?: OrientationPropType): void {\n\t\tvalidateOrientation(this.component, value, 'vertical');\n\t}\n\n\tprotected readonly beforePatchOptions = (_value: unknown, nextState: Map<string, unknown>): void => {\n\t\tconst options = nextState.has('_options') ? nextState.get('_options') : this.component.state._options;\n\t\tif (Array.isArray(options) && options.length > 0) {\n\t\t\tthis.keyOptionMap.clear();\n\n\t\t\tconst normalizedOptions = options.map((option: RadioOption<StencilUnknown> | string) => {\n\t\t\t\tif (typeof option === 'object' && option !== null && typeof option.label === 'string') {\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...option,\n\t\t\t\t\t\tvalue: option.value ?? option.label,\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\treturn option;\n\t\t\t});\n\n\t\t\tfillKeyOptionMap(this.keyOptionMap, normalizedOptions as SelectOption<StencilUnknown>[]);\n\t\t}\n\t};\n\n\tpublic validateOptions(value?: OptionsPropType): void {\n\t\tvalidateOptions(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: this.afterPatchOptions,\n\t\t\t\tbeforePatch: this.beforePatchOptions,\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic validateValue(value?: StencilUnknown): void {\n\t\tvalue = Array.isArray(value) ? (value[0] as StencilUnknown) : value;\n\t\tsetState(this.component, '_value', value, {\n\t\t\tafterPatch: this.afterPatchOptions,\n\t\t\tbeforePatch: this.beforePatchOptions,\n\t\t});\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateOrientation(this.component._orientation);\n\t\tthis.validateOptions(this.component._options);\n\t\tthis.validateValue(this.component._value);\n\t}\n}\n"],"names":[],"mappings":";;;;;;;;;AAIO,MAAM,0BAA0B,GAAG,CAAI,MAAuB,KAAa;IACjF,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,IAAI,EAAE;AAClD,QAAA,IAAI,OAAO,MAAM,CAAC,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;YAChE,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,KAAK,IAAI;YAC1C,MAAM,CAAC,KAAK,GAAG,CAAG,EAAA,MAAM,CAAC,KAAK,CAAE,CAAA,CAAC,IAAI,EAAE;YACvC,IAAI,sBAAsB,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,KAAK,IAAI,mBAAmB,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,KAAK,EAAE;AACrG,gBAAA,QAAQ,CAAC,CAA2B,wBAAA,EAAA,MAAM,CAAC,KAAK,CAAA,+FAAA,CAAiG,CAAC;;YAEnJ,IAAI,KAAK,CAAC,OAAO,CAAE,MAAsB,CAAC,OAAO,CAAC,EAAE;gBACnD,QACE,MAAsB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,KAAI;AAC7C,oBAAA,OAAO,0BAA0B,CAAC,IAAI,CAAC,KAAK,KAAK;AAClD,iBAAC,CAAC,KAAK,SAAS;;AAGlB,YAAA,OAAO,IAAI;;AACL,aAAA,IAAI,OAAO,MAAM,CAAC,KAAK,KAAK,QAAQ,EAAE;AAC5C,YAAA,OAAO,IAAI;;;AAGb,IAAA,OAAO,KAAK;AACb,CAAC;;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I,CAAC,kBAAkB;AACpC,SAAA,CAAC;;IAGI,iBAAiB,GAAA;QACvB,KAAK,CAAC,iBAAiB,EAAE;QACzB,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC;QACrD,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC;QAC7C,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;;AAE1C;;;;"}
@@ -1,5 +1,5 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as n}from"./index-C5dCp7IP.js";import{a as t}from"./tslib.es6-QNbPBOk5.js";import{I as o}from"./component-CCQEFb4H.js";import{b as s}from"./component-names-Dy77vq43.js";import{b as e}from"./common-D5l8QiaY.js";import{g as i,i as r,I as a}from"./FormFieldStateWrapper-DFV1TBk5.js";import{c}from"./clsx-COFh-Vc8.js";import{i as l}from"./component-BG44r5Mq.js";import{i as d}from"./_Uint8Array-kJHDjtoP.js";import{v as m}from"./icons-BX75HD_Y.js";const u=o=>{const{label:e,icons:i,hideLabel:r,disabled:a,onClick:c}=o,l=t(o,["label","icons","hideLabel","disabled","onClick"]);return n(s,Object.assign({_label:e,_disabled:a,_icons:i,_hideLabel:r,_on:{onClick:c}},l))};const b=s=>{const{componentName:e="button",label:i,icon:r,onClick:a}=s,c=t(s,["componentName","label","icon","onClick"]);const l=e==="button"?u:o;return n(l,Object.assign({label:i||"",hideLabel:true,icons:`${r}`,onClick:a},c))};const p=(o,s)=>{var{position:e="start",class:i}=o,r=t(o,["position","class"]);const a=`kol-input-container__adornment`;const l=`${a}--${e}`;return n("div",Object.assign({class:c(a,l,i)},r),s)};function f(n){if(!n){return false}return Array.isArray(n)?n.length>0:Boolean(n)}const h=(o,s)=>{var{class:e}=o,i=t(o,["class"]);return n("div",Object.assign({class:c("kol-input-container__container",e)},i),s)};const j=(o,s)=>{const{class:e,startAdornment:a,endAdornment:l,disabled:d,msg:m,touched:u,containerProps:b,startAdornmentProps:j,endAdornmentProps:_}=o,k=t(o,["class","startAdornment","endAdornment","disabled","msg","touched","containerProps","startAdornmentProps","endAdornmentProps"]);const v={["kol-input-container--disabled"]:d,[`kol-input-container--${i(m)}`]:r(m,u)};const A=Object.assign({class:c("kol-input-container",v,e)},k);if(!f(a)&&!f(l)){return n("div",Object.assign({},A),n(h,Object.assign({},b),s))}return n("div",Object.assign({},A),n(p,Object.assign({},j,{position:"start"}),a),n(h,Object.assign({},b),s),n(p,Object.assign({},_,{position:"end"}),l))};function _(n){let t=undefined;let o;if("_icons"in n){t=n._icons}if("_smartButton"in n){o=n._smartButton}return{icons:t,smartButton:o,disabled:n._disabled,msg:n._msg,touched:n._touched}}const k=({state:t,startAdornment:s,endAdornment:e},i)=>{var r,a;const{icons:c,smartButton:m,disabled:u,msg:p,touched:f}=_(t);let h=c===null||c===void 0?void 0:c.left;if(l(h)){h={icon:h}}let k=c===null||c===void 0?void 0:c.right;if(l(k)){k={icon:k}}const v=[];const A=[];if(s){if(Array.isArray(s)){v.push(...s)}else{v.push(s)}}if(h){if(d(h)){v.push(n(o,{class:"kol-input-container__icon",icons:h.icon,label:(r=h.label)!==null&&r!==void 0?r:"",style:h.style}))}else{v.push(n(o,{class:"kol-input-container__icon",icons:h,label:""}))}}if(d(m)){A.push(n(b,Object.assign({componentName:"button",class:"kol-input-container__smart-button"},m,{hideLabel:true,disabled:u})))}if(k){if(d(k)){A.push(n(o,{class:"kol-input-container__icon",icons:k.icon,label:(a=k.label)!==null&&a!==void 0?a:"",style:k.style}))}else{A.push(n(o,{class:"kol-input-container__icon",icons:k,label:""}))}}if(e){if(Array.isArray(e)){A.push(...e)}else{A.push(e)}}return n(j,{disabled:u,msg:p,touched:f,startAdornment:v,endAdornment:A},i)};class v extends a{constructor(n,t,o){super(n,t,o);this.numberStringRegex=/^\d+(\.\d+)?$/;this.parseToNumber=n=>{if(typeof n==="number"){return isNaN(n)?null:n}if(this.isNumberString(n)){return parseFloat(n)}return null};this.validateNumber=(n,t)=>e(this.component,n,(n=>n===undefined||n===null||typeof n==="number"||typeof n==="string"&&this.numberStringRegex.test(n)),new Set(["number","NumberString"]),t,{hooks:{beforePatch:(t,o)=>{if(o===null||o===void 0?void 0:o.has(n)){o===null||o===void 0?void 0:o.set(n,this.parseToNumber(t))}}}});this.component=n}validateIcons(n){m(this.component,n)}isNumberString(n){return typeof n==="string"&&this.numberStringRegex.test(n)}componentWillLoad(){super.componentWillLoad();this.validateIcons(this.component._icons)}}export{v as I,b as K,k as a};
5
- //# sourceMappingURL=controller-icon-CQmlbwLY.js.map
4
+ import{h as n}from"./index-wGO77oPq.js";import{a as t}from"./tslib.es6-QNbPBOk5.js";import{I as o}from"./component-lILf7M8Y.js";import{b as s}from"./component-names-Dy77vq43.js";import{b as e}from"./common-D5l8QiaY.js";import{g as i,i as r,I as a}from"./FormFieldStateWrapper-BogeRuh6.js";import{c}from"./clsx-COFh-Vc8.js";import{i as l}from"./component-DDkRuod7.js";import{i as d}from"./_Uint8Array-kJHDjtoP.js";import{v as m}from"./icons-BX75HD_Y.js";const u=o=>{const{label:e,icons:i,hideLabel:r,disabled:a,onClick:c}=o,l=t(o,["label","icons","hideLabel","disabled","onClick"]);return n(s,Object.assign({_label:e,_disabled:a,_icons:i,_hideLabel:r,_on:{onClick:c}},l))};const b=s=>{const{componentName:e="button",label:i,icon:r,onClick:a}=s,c=t(s,["componentName","label","icon","onClick"]);const l=e==="button"?u:o;return n(l,Object.assign({label:i||"",hideLabel:true,icons:`${r}`,onClick:a},c))};const p=(o,s)=>{var{position:e="start",class:i}=o,r=t(o,["position","class"]);const a=`kol-input-container__adornment`;const l=`${a}--${e}`;return n("div",Object.assign({class:c(a,l,i)},r),s)};function f(n){if(!n){return false}return Array.isArray(n)?n.length>0:Boolean(n)}const h=(o,s)=>{var{class:e}=o,i=t(o,["class"]);return n("div",Object.assign({class:c("kol-input-container__container",e)},i),s)};const j=(o,s)=>{const{class:e,startAdornment:a,endAdornment:l,disabled:d,msg:m,touched:u,containerProps:b,startAdornmentProps:j,endAdornmentProps:_}=o,k=t(o,["class","startAdornment","endAdornment","disabled","msg","touched","containerProps","startAdornmentProps","endAdornmentProps"]);const v={["kol-input-container--disabled"]:d,[`kol-input-container--${i(m)}`]:r(m,u)};const A=Object.assign({class:c("kol-input-container",v,e)},k);if(!f(a)&&!f(l)){return n("div",Object.assign({},A),n(h,Object.assign({},b),s))}return n("div",Object.assign({},A),n(p,Object.assign({},j,{position:"start"}),a),n(h,Object.assign({},b),s),n(p,Object.assign({},_,{position:"end"}),l))};function _(n){let t=undefined;let o;if("_icons"in n){t=n._icons}if("_smartButton"in n){o=n._smartButton}return{icons:t,smartButton:o,disabled:n._disabled,msg:n._msg,touched:n._touched}}const k=({state:t,startAdornment:s,endAdornment:e},i)=>{var r,a;const{icons:c,smartButton:m,disabled:u,msg:p,touched:f}=_(t);let h=c===null||c===void 0?void 0:c.left;if(l(h)){h={icon:h}}let k=c===null||c===void 0?void 0:c.right;if(l(k)){k={icon:k}}const v=[];const A=[];if(s){if(Array.isArray(s)){v.push(...s)}else{v.push(s)}}if(h){if(d(h)){v.push(n(o,{class:"kol-input-container__icon",icons:h.icon,label:(r=h.label)!==null&&r!==void 0?r:"",style:h.style}))}else{v.push(n(o,{class:"kol-input-container__icon",icons:h,label:""}))}}if(d(m)){A.push(n(b,Object.assign({componentName:"button",class:"kol-input-container__smart-button"},m,{hideLabel:true,disabled:u})))}if(k){if(d(k)){A.push(n(o,{class:"kol-input-container__icon",icons:k.icon,label:(a=k.label)!==null&&a!==void 0?a:"",style:k.style}))}else{A.push(n(o,{class:"kol-input-container__icon",icons:k,label:""}))}}if(e){if(Array.isArray(e)){A.push(...e)}else{A.push(e)}}return n(j,{disabled:u,msg:p,touched:f,startAdornment:v,endAdornment:A},i)};class v extends a{constructor(n,t,o){super(n,t,o);this.numberStringRegex=/^\d+(\.\d+)?$/;this.parseToNumber=n=>{if(typeof n==="number"){return isNaN(n)?null:n}if(this.isNumberString(n)){return parseFloat(n)}return null};this.validateNumber=(n,t)=>e(this.component,n,(n=>n===undefined||n===null||typeof n==="number"||typeof n==="string"&&this.numberStringRegex.test(n)),new Set(["number","NumberString"]),t,{hooks:{beforePatch:(t,o)=>{if(o===null||o===void 0?void 0:o.has(n)){o===null||o===void 0?void 0:o.set(n,this.parseToNumber(t))}}}});this.component=n}validateIcons(n){m(this.component,n)}isNumberString(n){return typeof n==="string"&&this.numberStringRegex.test(n)}componentWillLoad(){super.componentWillLoad();this.validateIcons(this.component._icons)}}export{v as I,b as K,k as a};
5
+ //# sourceMappingURL=controller-icon-lAqXvi57.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"controller-icon-CQmlbwLY.js","sources":["src/functional-components/Button/Button.tsx","src/functional-components/IconButton/IconButton.tsx","src/functional-components/InputAdornment/InputAdornment.tsx","src/functional-components/InputContainer/InputContainer.tsx","src/functional-component-wrappers/InputContainerStateWrapper/InputContainerStateWrapper.tsx","src/components/@deprecated/input/controller-icon.ts"],"sourcesContent":["import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport { KolButtonWcTag } from '../../core/component-names';\nimport type { OptionalButtonProps, RequiredButtonProps } from '../../schema';\n\nexport type ButtonProps = Partial<RequiredButtonProps & OptionalButtonProps> & {\n\tlabel: string;\n\tclass?: string;\n\tonClick?: (event: MouseEvent) => void;\n};\n\nconst KolButtonFc: FC<ButtonProps> = (props) => {\n\tconst { label, icons, hideLabel, disabled, onClick, ...other } = props;\n\n\treturn <KolButtonWcTag _label={label} _disabled={disabled} _icons={icons} _hideLabel={hideLabel} _on={{ onClick }} {...other} />;\n};\n\nexport default KolButtonFc;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport { IconFC } from '../../internal/functional-components/icon/component';\nimport type { VariantClassNamePropType } from '../../schema';\nimport KolButtonFc, { type ButtonProps } from '../Button';\n\ntype IconType = {\n\tcomponentName: 'icon';\n\ticon?: string;\n\tclass?: string;\n\tlabel?: string;\n\tstyle?: { [key: string]: string };\n\tonClick?: (event: MouseEvent) => void;\n};\n\ntype ButtonType = Partial<Omit<ButtonProps, 'icons'>> & {\n\tcomponentName: 'button';\n\ticon?: string;\n\tlabel?: string;\n\tclass?: string;\n\tbuttonVariant?: VariantClassNamePropType;\n\n\tonClick?: (event: MouseEvent) => void;\n};\n\nexport type IconButtonProps = IconType | ButtonType;\n\n/**\n * `KolIconButtonFc` is a functional component that renders either a Button or an Icon based on the provided props.\n *\n * Depending on the value of the `componentName` prop, either a Button (`KolButtonFc`) or an Icon (`IconFC`) is rendered.\n * Both components support optional `icon` props for displaying an icon and an optional `onClick` handler for user interactions.\n *\n * This component combines the flexibility of rendering either a button with an optional label or a simple icon, while ensuring that unnecessary props for the selected element are not passed.\n *\n * Supported props:\n * - `componentName`: Specifies whether a 'button' or 'icon' should be rendered. Default is 'button'.\n * - `label`: An optional label, which is only shown for Buttons.\n * - `icon`: The Codicon or other font classname used for the icon display.\n * - `class`: Optional CSS class for additional styling customization.\n * - `buttonVariant`: Variant for the button component.\n * - `onClick`: Optional click handler for user interactions.\n *\n * Example usage:\n * ```tsx\n * <KolIconButtonFc componentName=\"button\" label=\"Submit\" icon=\"kolicon-check\" onClick={handleClick} />\n * <KolIconButtonFc componentName=\"icon\" icon=\"alert\" onClick={handleClick} />\n * ```\n *\n * @param {IconButtonProps} props - The properties that customize the component, including the selection of the component type (Button or Icon) and other specific attributes.\n * @returns {JSX.Element} - The rendered JSX element (Button or Icon).\n */\nconst KolIconButtonFc: FC<IconButtonProps> = (props) => {\n\tconst { componentName = 'button', label, icon, onClick, ...other } = props;\n\tconst Component = componentName === 'button' ? KolButtonFc : IconFC;\n\n\treturn <Component label={label || ''} hideLabel icons={`${icon}`} onClick={onClick} {...other} />;\n};\n\nexport default KolIconButtonFc;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport clsx from '../../utils/clsx';\n\nexport type InputAdornmentProps = JSXBase.HTMLAttributes<HTMLDivElement> & {\n\tposition?: 'start' | 'end';\n};\n\nconst InputAdornment: FC<InputAdornmentProps> = ({ position = 'start', class: className, ...other }, children) => {\n\tconst rootClassName = `kol-input-container__adornment`;\n\tconst positionClassName = `${rootClassName}--${position}`;\n\n\treturn (\n\t\t<div class={clsx(rootClassName, positionClassName, className)} {...other}>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nexport default InputAdornment;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { JSXBase, VNode } from '@stencil/core/internal';\nimport { getMsgType, isMsgDefinedAndInputTouched, type MsgPropType, type Stringified } from '../../schema';\nimport clsx from '../../utils/clsx';\nimport InputAdornment from '../InputAdornment';\n\ntype InputAdornmentType = VNode | VNode[] | null;\n\nexport type InputContainerProps = JSXBase.HTMLAttributes & {\n\tstartAdornment?: InputAdornmentType;\n\tendAdornment?: InputAdornmentType;\n\tdisabled?: boolean;\n\tmsg?: Stringified<MsgPropType>;\n\ttouched?: boolean;\n\n\tcontainerProps?: JSXBase.HTMLAttributes<HTMLDivElement>;\n\tstartAdornmentProps?: JSXBase.HTMLAttributes<HTMLDivElement>;\n\tendAdornmentProps?: JSXBase.HTMLAttributes<HTMLDivElement>;\n};\n\nfunction hasItems(items?: InputAdornmentType): boolean {\n\tif (!items) {\n\t\treturn false;\n\t}\n\n\treturn Array.isArray(items) ? items.length > 0 : Boolean(items);\n}\n\nconst Container: FC<JSXBase.HTMLAttributes<HTMLDivElement>> = ({ class: className, ...other }, children) => {\n\treturn (\n\t\t<div class={clsx('kol-input-container__container', className)} {...other}>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nconst KolInputContainerFc: FC<InputContainerProps> = (props, children) => {\n\tconst { class: classNames, startAdornment, endAdornment, disabled, msg, touched, containerProps, startAdornmentProps, endAdornmentProps, ...other } = props;\n\tconst stateCssClasses = {\n\t\t['kol-input-container--disabled']: disabled,\n\t\t[`kol-input-container--${getMsgType(msg)}`]: isMsgDefinedAndInputTouched(msg, touched),\n\t};\n\n\tconst baseProps: JSXBase.HTMLAttributes<HTMLDivElement> = {\n\t\tclass: clsx('kol-input-container', stateCssClasses, classNames),\n\t\t...other,\n\t};\n\n\tif (!hasItems(startAdornment) && !hasItems(endAdornment)) {\n\t\treturn (\n\t\t\t<div {...baseProps}>\n\t\t\t\t<Container {...containerProps}>{children}</Container>\n\t\t\t</div>\n\t\t);\n\t}\n\n\treturn (\n\t\t<div {...baseProps}>\n\t\t\t<InputAdornment {...startAdornmentProps} position=\"start\">\n\t\t\t\t{startAdornment}\n\t\t\t</InputAdornment>\n\t\t\t<Container {...containerProps}>{children}</Container>\n\t\t\t<InputAdornment {...endAdornmentProps} position=\"end\">\n\t\t\t\t{endAdornment}\n\t\t\t</InputAdornment>\n\t\t</div>\n\t);\n};\n\nexport default KolInputContainerFc;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport {\n\ttype IconOrIconClass,\n\ttype InputColorStates,\n\ttype InputEmailStates,\n\ttype InputFileStates,\n\ttype InputNumberStates,\n\ttype InputPasswordStates,\n\ttype InputRangeStates,\n\ttype InputTextStates,\n\ttype InternalButtonProps,\n\ttype KoliBriHorizontalIcons,\n\ttype MsgPropType,\n\ttype SelectStates,\n\ttype Stringified,\n\ttype TextareaStates,\n} from '../../schema';\n\nimport { isObject, isString } from 'lodash-es';\nimport KolIconButtonFc from '../../functional-components/IconButton';\nimport KolInputContainerFc, { type InputContainerProps } from '../../functional-components/InputContainer';\nimport { IconFC } from '../../internal/functional-components/icon/component';\n\ntype InputState =\n\t| TextareaStates\n\t| SelectStates\n\t| InputTextStates\n\t| InputEmailStates\n\t| InputPasswordStates\n\t| InputNumberStates\n\t| InputColorStates\n\t| InputFileStates\n\t| InputRangeStates;\n\nexport type InputContainerStateWrapperProps = Partial<InputContainerProps> & {\n\tstate: InputState;\n};\n\nfunction getInputContainerProps(state: InputState): {\n\ticons?: KoliBriHorizontalIcons;\n\tsmartButton?: InternalButtonProps;\n\tdisabled?: boolean;\n\tmsg?: Stringified<MsgPropType>;\n\ttouched?: boolean;\n} {\n\tlet icons: KoliBriHorizontalIcons | undefined = undefined;\n\tlet smartButton: InternalButtonProps | undefined;\n\n\tif ('_icons' in state) {\n\t\ticons = state._icons;\n\t}\n\n\tif ('_smartButton' in state) {\n\t\tsmartButton = state._smartButton;\n\t}\n\n\treturn {\n\t\ticons,\n\t\tsmartButton,\n\t\tdisabled: state._disabled,\n\t\tmsg: state._msg,\n\t\ttouched: state._touched,\n\t};\n}\n\nconst InputContainerStateWrapperFc: FC<InputContainerStateWrapperProps> = (\n\t{ state, startAdornment: defaultStartAdornment, endAdornment: defaultEndAdornment },\n\tchildren,\n) => {\n\tconst { icons, smartButton, disabled, msg, touched } = getInputContainerProps(state);\n\n\tlet leftIconProps: IconOrIconClass | undefined = icons?.left;\n\tif (isString(leftIconProps)) {\n\t\tleftIconProps = { icon: leftIconProps };\n\t}\n\n\tlet rightIconProps: IconOrIconClass | undefined = icons?.right;\n\tif (isString(rightIconProps)) {\n\t\trightIconProps = { icon: rightIconProps };\n\t}\n\n\tconst startAdornment = [];\n\tconst endAdornment = [];\n\n\tif (defaultStartAdornment) {\n\t\tif (Array.isArray(defaultStartAdornment)) {\n\t\t\tstartAdornment.push(...defaultStartAdornment);\n\t\t} else {\n\t\t\tstartAdornment.push(defaultStartAdornment);\n\t\t}\n\t}\n\n\tif (leftIconProps) {\n\t\tif (isObject(leftIconProps)) {\n\t\t\tstartAdornment.push(\n\t\t\t\t<IconFC class=\"kol-input-container__icon\" icons={leftIconProps.icon} label={leftIconProps.label ?? ''} style={leftIconProps.style} />,\n\t\t\t);\n\t\t} else {\n\t\t\tstartAdornment.push(<IconFC class=\"kol-input-container__icon\" icons={leftIconProps} label=\"\" />);\n\t\t}\n\t}\n\n\tif (isObject(smartButton)) {\n\t\tendAdornment.push(\n\t\t\t<KolIconButtonFc componentName=\"button\" class=\"kol-input-container__smart-button\" {...smartButton} hideLabel={true} disabled={disabled} />,\n\t\t);\n\t}\n\n\tif (rightIconProps) {\n\t\tif (isObject(rightIconProps)) {\n\t\t\tendAdornment.push(\n\t\t\t\t<IconFC class=\"kol-input-container__icon\" icons={rightIconProps.icon} label={rightIconProps.label ?? ''} style={rightIconProps.style} />,\n\t\t\t);\n\t\t} else {\n\t\t\tendAdornment.push(<IconFC class=\"kol-input-container__icon\" icons={rightIconProps} label=\"\" />);\n\t\t}\n\t}\n\n\tif (defaultEndAdornment) {\n\t\tif (Array.isArray(defaultEndAdornment)) {\n\t\t\tendAdornment.push(...defaultEndAdornment);\n\t\t} else {\n\t\t\tendAdornment.push(defaultEndAdornment);\n\t\t}\n\t}\n\n\treturn (\n\t\t<KolInputContainerFc disabled={disabled} msg={msg} touched={touched} startAdornment={startAdornment} endAdornment={endAdornment}>\n\t\t\t{children}\n\t\t</KolInputContainerFc>\n\t);\n};\n\nexport default InputContainerStateWrapperFc;\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { IconsHorizontalPropType, NumberString } from '../../../schema';\nimport { validateIcons, watchValidator } from '../../../schema';\n\nimport { InputController } from './controller';\n\nimport type { Props, Watches } from './types-icon';\n\nexport class InputIconController extends InputController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props;\n\tprivate readonly numberStringRegex = /^\\d+(\\.\\d+)?$/; // https://regex101.com/r/mET6Tx/1\n\n\tpublic constructor(component: Generic.Element.Component & Props, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateIcons(value?: IconsHorizontalPropType): void {\n\t\tvalidateIcons(this.component, value);\n\t}\n\n\tpublic isNumberString(value: unknown): value is NumberString {\n\t\treturn typeof value === 'string' && this.numberStringRegex.test(value);\n\t}\n\n\tprotected readonly parseToNumber = (value?: number | NumberString | null): number | null => {\n\t\tif (typeof value === 'number') {\n\t\t\treturn isNaN(value) ? null : value;\n\t\t}\n\t\tif (this.isNumberString(value)) {\n\t\t\treturn parseFloat(value);\n\t\t}\n\t\treturn null;\n\t};\n\n\tprotected readonly validateNumber = (propName: string, value?: number | NumberString | null) => {\n\t\treturn watchValidator(\n\t\t\tthis.component,\n\t\t\tpropName,\n\t\t\t(value): boolean =>\n\t\t\t\tvalue === undefined || value === null || typeof value === 'number' || (typeof value === 'string' && this.numberStringRegex.test(value)),\n\t\t\tnew Set(['number', 'NumberString']),\n\t\t\tvalue,\n\t\t\t{\n\t\t\t\thooks: {\n\t\t\t\t\tbeforePatch: (value: unknown, nextState) => {\n\t\t\t\t\t\tif (nextState?.has(propName)) {\n\t\t\t\t\t\t\tnextState?.set(propName, this.parseToNumber(value as number | NumberString | null));\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t);\n\t};\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateIcons(this.component._icons);\n\t}\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAUA,MAAM,WAAW,GAAoB,CAAC,KAAK,KAAI;AAC9C,IAAA,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAe,GAAA,KAAK,EAAf,KAAK,GAAA,MAAA,CAAK,KAAK,EAAhE,CAAA,OAAA,EAAA,OAAA,EAAA,WAAA,EAAA,UAAA,EAAA,SAAA,CAAwD,CAAQ;AAEtE,IAAA,OAAO,CAAA,CAAC,cAAc,EAAA,MAAA,CAAA,MAAA,CAAA,EAAC,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,EAAE,EAAE,OAAO,EAAE,EAAA,EAAM,KAAK,CAAA,CAAI;AACjI,CAAC;;ACqCD,MAAM,eAAe,GAAwB,CAAC,KAAK,KAAI;AACtD,IAAA,MAAM,EAAE,aAAa,GAAG,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAe,GAAA,KAAK,EAA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,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;;AAE1C;;;;"}
1
+ {"version":3,"file":"controller-icon-lAqXvi57.js","sources":["src/functional-components/Button/Button.tsx","src/functional-components/IconButton/IconButton.tsx","src/functional-components/InputAdornment/InputAdornment.tsx","src/functional-components/InputContainer/InputContainer.tsx","src/functional-component-wrappers/InputContainerStateWrapper/InputContainerStateWrapper.tsx","src/components/@deprecated/input/controller-icon.ts"],"sourcesContent":["import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport { KolButtonWcTag } from '../../core/component-names';\nimport type { OptionalButtonProps, RequiredButtonProps } from '../../schema';\n\nexport type ButtonProps = Partial<RequiredButtonProps & OptionalButtonProps> & {\n\tlabel: string;\n\tclass?: string;\n\tonClick?: (event: MouseEvent) => void;\n};\n\nconst KolButtonFc: FC<ButtonProps> = (props) => {\n\tconst { label, icons, hideLabel, disabled, onClick, ...other } = props;\n\n\treturn <KolButtonWcTag _label={label} _disabled={disabled} _icons={icons} _hideLabel={hideLabel} _on={{ onClick }} {...other} />;\n};\n\nexport default KolButtonFc;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport { IconFC } from '../../internal/functional-components/icon/component';\nimport type { VariantClassNamePropType } from '../../schema';\nimport KolButtonFc, { type ButtonProps } from '../Button';\n\ntype IconType = {\n\tcomponentName: 'icon';\n\ticon?: string;\n\tclass?: string;\n\tlabel?: string;\n\tstyle?: { [key: string]: string };\n\tonClick?: (event: MouseEvent) => void;\n};\n\ntype ButtonType = Partial<Omit<ButtonProps, 'icons'>> & {\n\tcomponentName: 'button';\n\ticon?: string;\n\tlabel?: string;\n\tclass?: string;\n\tbuttonVariant?: VariantClassNamePropType;\n\n\tonClick?: (event: MouseEvent) => void;\n};\n\nexport type IconButtonProps = IconType | ButtonType;\n\n/**\n * `KolIconButtonFc` is a functional component that renders either a Button or an Icon based on the provided props.\n *\n * Depending on the value of the `componentName` prop, either a Button (`KolButtonFc`) or an Icon (`IconFC`) is rendered.\n * Both components support optional `icon` props for displaying an icon and an optional `onClick` handler for user interactions.\n *\n * This component combines the flexibility of rendering either a button with an optional label or a simple icon, while ensuring that unnecessary props for the selected element are not passed.\n *\n * Supported props:\n * - `componentName`: Specifies whether a 'button' or 'icon' should be rendered. Default is 'button'.\n * - `label`: An optional label, which is only shown for Buttons.\n * - `icon`: The Codicon or other font classname used for the icon display.\n * - `class`: Optional CSS class for additional styling customization.\n * - `buttonVariant`: Variant for the button component.\n * - `onClick`: Optional click handler for user interactions.\n *\n * Example usage:\n * ```tsx\n * <KolIconButtonFc componentName=\"button\" label=\"Submit\" icon=\"kolicon-check\" onClick={handleClick} />\n * <KolIconButtonFc componentName=\"icon\" icon=\"alert\" onClick={handleClick} />\n * ```\n *\n * @param {IconButtonProps} props - The properties that customize the component, including the selection of the component type (Button or Icon) and other specific attributes.\n * @returns {JSX.Element} - The rendered JSX element (Button or Icon).\n */\nconst KolIconButtonFc: FC<IconButtonProps> = (props) => {\n\tconst { componentName = 'button', label, icon, onClick, ...other } = props;\n\tconst Component = componentName === 'button' ? KolButtonFc : IconFC;\n\n\treturn <Component label={label || ''} hideLabel icons={`${icon}`} onClick={onClick} {...other} />;\n};\n\nexport default KolIconButtonFc;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport clsx from '../../utils/clsx';\n\nexport type InputAdornmentProps = JSXBase.HTMLAttributes<HTMLDivElement> & {\n\tposition?: 'start' | 'end';\n};\n\nconst InputAdornment: FC<InputAdornmentProps> = ({ position = 'start', class: className, ...other }, children) => {\n\tconst rootClassName = `kol-input-container__adornment`;\n\tconst positionClassName = `${rootClassName}--${position}`;\n\n\treturn (\n\t\t<div class={clsx(rootClassName, positionClassName, className)} {...other}>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nexport default InputAdornment;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { JSXBase, VNode } from '@stencil/core/internal';\nimport { getMsgType, isMsgDefinedAndInputTouched, type MsgPropType, type Stringified } from '../../schema';\nimport clsx from '../../utils/clsx';\nimport InputAdornment from '../InputAdornment';\n\ntype InputAdornmentType = VNode | VNode[] | null;\n\nexport type InputContainerProps = JSXBase.HTMLAttributes & {\n\tstartAdornment?: InputAdornmentType;\n\tendAdornment?: InputAdornmentType;\n\tdisabled?: boolean;\n\tmsg?: Stringified<MsgPropType>;\n\ttouched?: boolean;\n\n\tcontainerProps?: JSXBase.HTMLAttributes<HTMLDivElement>;\n\tstartAdornmentProps?: JSXBase.HTMLAttributes<HTMLDivElement>;\n\tendAdornmentProps?: JSXBase.HTMLAttributes<HTMLDivElement>;\n};\n\nfunction hasItems(items?: InputAdornmentType): boolean {\n\tif (!items) {\n\t\treturn false;\n\t}\n\n\treturn Array.isArray(items) ? items.length > 0 : Boolean(items);\n}\n\nconst Container: FC<JSXBase.HTMLAttributes<HTMLDivElement>> = ({ class: className, ...other }, children) => {\n\treturn (\n\t\t<div class={clsx('kol-input-container__container', className)} {...other}>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nconst KolInputContainerFc: FC<InputContainerProps> = (props, children) => {\n\tconst { class: classNames, startAdornment, endAdornment, disabled, msg, touched, containerProps, startAdornmentProps, endAdornmentProps, ...other } = props;\n\tconst stateCssClasses = {\n\t\t['kol-input-container--disabled']: disabled,\n\t\t[`kol-input-container--${getMsgType(msg)}`]: isMsgDefinedAndInputTouched(msg, touched),\n\t};\n\n\tconst baseProps: JSXBase.HTMLAttributes<HTMLDivElement> = {\n\t\tclass: clsx('kol-input-container', stateCssClasses, classNames),\n\t\t...other,\n\t};\n\n\tif (!hasItems(startAdornment) && !hasItems(endAdornment)) {\n\t\treturn (\n\t\t\t<div {...baseProps}>\n\t\t\t\t<Container {...containerProps}>{children}</Container>\n\t\t\t</div>\n\t\t);\n\t}\n\n\treturn (\n\t\t<div {...baseProps}>\n\t\t\t<InputAdornment {...startAdornmentProps} position=\"start\">\n\t\t\t\t{startAdornment}\n\t\t\t</InputAdornment>\n\t\t\t<Container {...containerProps}>{children}</Container>\n\t\t\t<InputAdornment {...endAdornmentProps} position=\"end\">\n\t\t\t\t{endAdornment}\n\t\t\t</InputAdornment>\n\t\t</div>\n\t);\n};\n\nexport default KolInputContainerFc;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport {\n\ttype IconOrIconClass,\n\ttype InputColorStates,\n\ttype InputEmailStates,\n\ttype InputFileStates,\n\ttype InputNumberStates,\n\ttype InputPasswordStates,\n\ttype InputRangeStates,\n\ttype InputTextStates,\n\ttype InternalButtonProps,\n\ttype KoliBriHorizontalIcons,\n\ttype MsgPropType,\n\ttype SelectStates,\n\ttype Stringified,\n\ttype TextareaStates,\n} from '../../schema';\n\nimport { isObject, isString } from 'lodash-es';\nimport KolIconButtonFc from '../../functional-components/IconButton';\nimport KolInputContainerFc, { type InputContainerProps } from '../../functional-components/InputContainer';\nimport { IconFC } from '../../internal/functional-components/icon/component';\n\ntype InputState =\n\t| TextareaStates\n\t| SelectStates\n\t| InputTextStates\n\t| InputEmailStates\n\t| InputPasswordStates\n\t| InputNumberStates\n\t| InputColorStates\n\t| InputFileStates\n\t| InputRangeStates;\n\nexport type InputContainerStateWrapperProps = Partial<InputContainerProps> & {\n\tstate: InputState;\n};\n\nfunction getInputContainerProps(state: InputState): {\n\ticons?: KoliBriHorizontalIcons;\n\tsmartButton?: InternalButtonProps;\n\tdisabled?: boolean;\n\tmsg?: Stringified<MsgPropType>;\n\ttouched?: boolean;\n} {\n\tlet icons: KoliBriHorizontalIcons | undefined = undefined;\n\tlet smartButton: InternalButtonProps | undefined;\n\n\tif ('_icons' in state) {\n\t\ticons = state._icons;\n\t}\n\n\tif ('_smartButton' in state) {\n\t\tsmartButton = state._smartButton;\n\t}\n\n\treturn {\n\t\ticons,\n\t\tsmartButton,\n\t\tdisabled: state._disabled,\n\t\tmsg: state._msg,\n\t\ttouched: state._touched,\n\t};\n}\n\nconst InputContainerStateWrapperFc: FC<InputContainerStateWrapperProps> = (\n\t{ state, startAdornment: defaultStartAdornment, endAdornment: defaultEndAdornment },\n\tchildren,\n) => {\n\tconst { icons, smartButton, disabled, msg, touched } = getInputContainerProps(state);\n\n\tlet leftIconProps: IconOrIconClass | undefined = icons?.left;\n\tif (isString(leftIconProps)) {\n\t\tleftIconProps = { icon: leftIconProps };\n\t}\n\n\tlet rightIconProps: IconOrIconClass | undefined = icons?.right;\n\tif (isString(rightIconProps)) {\n\t\trightIconProps = { icon: rightIconProps };\n\t}\n\n\tconst startAdornment = [];\n\tconst endAdornment = [];\n\n\tif (defaultStartAdornment) {\n\t\tif (Array.isArray(defaultStartAdornment)) {\n\t\t\tstartAdornment.push(...defaultStartAdornment);\n\t\t} else {\n\t\t\tstartAdornment.push(defaultStartAdornment);\n\t\t}\n\t}\n\n\tif (leftIconProps) {\n\t\tif (isObject(leftIconProps)) {\n\t\t\tstartAdornment.push(\n\t\t\t\t<IconFC class=\"kol-input-container__icon\" icons={leftIconProps.icon} label={leftIconProps.label ?? ''} style={leftIconProps.style} />,\n\t\t\t);\n\t\t} else {\n\t\t\tstartAdornment.push(<IconFC class=\"kol-input-container__icon\" icons={leftIconProps} label=\"\" />);\n\t\t}\n\t}\n\n\tif (isObject(smartButton)) {\n\t\tendAdornment.push(\n\t\t\t<KolIconButtonFc componentName=\"button\" class=\"kol-input-container__smart-button\" {...smartButton} hideLabel={true} disabled={disabled} />,\n\t\t);\n\t}\n\n\tif (rightIconProps) {\n\t\tif (isObject(rightIconProps)) {\n\t\t\tendAdornment.push(\n\t\t\t\t<IconFC class=\"kol-input-container__icon\" icons={rightIconProps.icon} label={rightIconProps.label ?? ''} style={rightIconProps.style} />,\n\t\t\t);\n\t\t} else {\n\t\t\tendAdornment.push(<IconFC class=\"kol-input-container__icon\" icons={rightIconProps} label=\"\" />);\n\t\t}\n\t}\n\n\tif (defaultEndAdornment) {\n\t\tif (Array.isArray(defaultEndAdornment)) {\n\t\t\tendAdornment.push(...defaultEndAdornment);\n\t\t} else {\n\t\t\tendAdornment.push(defaultEndAdornment);\n\t\t}\n\t}\n\n\treturn (\n\t\t<KolInputContainerFc disabled={disabled} msg={msg} touched={touched} startAdornment={startAdornment} endAdornment={endAdornment}>\n\t\t\t{children}\n\t\t</KolInputContainerFc>\n\t);\n};\n\nexport default InputContainerStateWrapperFc;\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { IconsHorizontalPropType, NumberString } from '../../../schema';\nimport { validateIcons, watchValidator } from '../../../schema';\n\nimport { InputController } from './controller';\n\nimport type { Props, Watches } from './types-icon';\n\nexport class InputIconController extends InputController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props;\n\tprivate readonly numberStringRegex = /^\\d+(\\.\\d+)?$/; // https://regex101.com/r/mET6Tx/1\n\n\tpublic constructor(component: Generic.Element.Component & Props, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateIcons(value?: IconsHorizontalPropType): void {\n\t\tvalidateIcons(this.component, value);\n\t}\n\n\tpublic isNumberString(value: unknown): value is NumberString {\n\t\treturn typeof value === 'string' && this.numberStringRegex.test(value);\n\t}\n\n\tprotected readonly parseToNumber = (value?: number | NumberString | null): number | null => {\n\t\tif (typeof value === 'number') {\n\t\t\treturn isNaN(value) ? null : value;\n\t\t}\n\t\tif (this.isNumberString(value)) {\n\t\t\treturn parseFloat(value);\n\t\t}\n\t\treturn null;\n\t};\n\n\tprotected readonly validateNumber = (propName: string, value?: number | NumberString | null) => {\n\t\treturn watchValidator(\n\t\t\tthis.component,\n\t\t\tpropName,\n\t\t\t(value): boolean =>\n\t\t\t\tvalue === undefined || value === null || typeof value === 'number' || (typeof value === 'string' && this.numberStringRegex.test(value)),\n\t\t\tnew Set(['number', 'NumberString']),\n\t\t\tvalue,\n\t\t\t{\n\t\t\t\thooks: {\n\t\t\t\t\tbeforePatch: (value: unknown, nextState) => {\n\t\t\t\t\t\tif (nextState?.has(propName)) {\n\t\t\t\t\t\t\tnextState?.set(propName, this.parseToNumber(value as number | NumberString | null));\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t);\n\t};\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateIcons(this.component._icons);\n\t}\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAUA,MAAM,WAAW,GAAoB,CAAC,KAAK,KAAI;AAC9C,IAAA,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAe,GAAA,KAAK,EAAf,KAAK,GAAA,MAAA,CAAK,KAAK,EAAhE,CAAA,OAAA,EAAA,OAAA,EAAA,WAAA,EAAA,UAAA,EAAA,SAAA,CAAwD,CAAQ;AAEtE,IAAA,OAAO,CAAA,CAAC,cAAc,EAAA,MAAA,CAAA,MAAA,CAAA,EAAC,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,EAAE,EAAE,OAAO,EAAE,EAAA,EAAM,KAAK,CAAA,CAAI;AACjI,CAAC;;ACqCD,MAAM,eAAe,GAAwB,CAAC,KAAK,KAAI;AACtD,IAAA,MAAM,EAAE,aAAa,GAAG,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAe,GAAA,KAAK,EAAf,KAAK,GAAA,MAAA,CAAK,KAAK,EAApE,CAAA,eAAA,EAAA,OAAA,EAAA,MAAA,EAAA,SAAA,CAA4D,CAAQ;AAC1E,IAAA,MAAM,SAAS,GAAG,aAAa,KAAK,QAAQ,GAAG,WAAW,GAAG,MAAM;AAEnE,IAAA,OAAO,CAAA,CAAC,SAAS,EAAC,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAE,KAAK,IAAI,EAAE,EAAE,SAAS,EAAA,IAAA,EAAC,KAAK,EAAE,CAAA,EAAG,IAAI,CAAE,CAAA,EAAE,OAAO,EAAE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iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EACxI,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC,EACnC,KAAK,EACL;AACC,gBAAA,KAAK,EAAE;AACN,oBAAA,WAAW,EAAE,CAAC,KAAc,EAAE,SAAS,KAAI;wBAC1C,IAAI,SAAS,KAAT,IAAA,IAAA,SAAS,KAAT,MAAA,GAAA,MAAA,GAAA,SAAS,CAAE,GAAG,CAAC,QAAQ,CAAC,EAAE;AAC7B,4BAAA,SAAS,aAAT,SAAS,KAAA,MAAA,GAAA,MAAA,GAAT,SAAS,CAAE,GAAG,CAAC,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,KAAqC,CAAC,CAAC;;qBAEpF;AACD,iBAAA;AACD,aAAA,CACD;AACF,SAAC;AAvCA,QAAA,IAAI,CAAC,SAAS,GAAG,SAAS;;AAGpB,IAAA,aAAa,CAAC,KAA+B,EAAA;AACnD,QAAA,aAAa,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC;;AAG9B,IAAA,cAAc,CAAC,KAAc,EAAA;AACnC,QAAA,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;;IAiChE,iBAAiB,GAAA;QACvB,KAAK,CAAC,iBAAiB,EAAE;QACzB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;;AAE1C;;;;"}
@@ -1,5 +1,5 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{L as n,z as t,A as e,B as o,C as i,D as s}from"./common-D5l8QiaY.js";import{E as r}from"./index-C5dCp7IP.js";const a=()=>{try{const n=t();if(!n||typeof n.querySelector!=="function"){return}const i=n.querySelector('meta[name="kolibri"]');if(i&&i.hasAttribute("content")){const n=i.getAttribute("content");if(typeof n==="string"){e(n.includes("experimental-mode=true"));o(n.includes("color-contrast-analysis=true"))}}}catch(n){}};const c=()=>{let n=i().KoliBri;if(n===undefined){n={};Object.defineProperty(i(),"KoliBri",{value:n,writable:false})}return n};const u=()=>{a();n.debug(`\n,--. ,--. ,--. ,--. ,-----. ,--.\n| .' / ,---. | | \`--' | |) /_ ,--.--. \`--'\n| . ' | .-. | | | ,--. | .-. \\ | .--' ,--.\n| |\\ \\ | '-' | | | | | | '--' / | | | |\n\`--' \`--´ \`---´ \`--' \`--' \`------´ \`--' \`--'\n🚹 The accessible HTML-Standard | 👉 https://public-ui.github.io | ${r.kolibriVersion}\n\t`,{forceLog:true})};const l=()=>{if(c().adviceShown!==true){Object.defineProperty(c(),"adviceShown",{get:function(){return true}});n.debug(`\nYou are using the KoliBri component library. If you have any suggestions for improvement or find a problem, please contact us:\n\nTicket: https://github.com/public-ui/kolibri/issues/new/choose (for privacy reasons, please use email)\nEmail: kolibri@itzbund.de\n`)}};let f=()=>Math.floor(Math.random()*16777215).toString(16);if(s()){f=()=>"nonce"}const m=n=>`${n}-${f()}`;const p=(n,t)=>{const e=n.lastIndexOf("-");if(e===-1)return`${n}-${t}`;const o=n.slice(e+1);const i=o==="nonce"||/^[0-9a-f]+$/.test(o);return i?`${n.slice(0,e)}-${t}-${o}`:`${n}-${t}`};export{p as a,m as c,u as i,f as n,l as r};
5
- //# sourceMappingURL=dev.utils-BXf9h7MR.js.map
4
+ import{L as n,z as t,A as e,B as o,C as i,D as s}from"./common-D5l8QiaY.js";import{E as r}from"./index-wGO77oPq.js";const a=()=>{try{const n=t();if(!n||typeof n.querySelector!=="function"){return}const i=n.querySelector('meta[name="kolibri"]');if(i&&i.hasAttribute("content")){const n=i.getAttribute("content");if(typeof n==="string"){e(n.includes("experimental-mode=true"));o(n.includes("color-contrast-analysis=true"))}}}catch(n){}};const c=()=>{let n=i().KoliBri;if(n===undefined){n={};Object.defineProperty(i(),"KoliBri",{value:n,writable:false})}return n};const u=()=>{a();n.debug(`\n,--. ,--. ,--. ,--. ,-----. ,--.\n| .' / ,---. | | \`--' | |) /_ ,--.--. \`--'\n| . ' | .-. | | | ,--. | .-. \\ | .--' ,--.\n| |\\ \\ | '-' | | | | | | '--' / | | | |\n\`--' \`--´ \`---´ \`--' \`--' \`------´ \`--' \`--'\n🚹 The accessible HTML-Standard | 👉 https://public-ui.github.io | ${r.kolibriVersion}\n\t`,{forceLog:true})};const l=()=>{if(c().adviceShown!==true){Object.defineProperty(c(),"adviceShown",{get:function(){return true}});n.debug(`\nYou are using the KoliBri component library. If you have any suggestions for improvement or find a problem, please contact us:\n\nTicket: https://github.com/public-ui/kolibri/issues/new/choose (for privacy reasons, please use email)\nEmail: kolibri@itzbund.de\n`)}};let f=()=>Math.floor(Math.random()*16777215).toString(16);if(s()){f=()=>"nonce"}const m=n=>`${n}-${f()}`;const p=(n,t)=>{const e=n.lastIndexOf("-");if(e===-1)return`${n}-${t}`;const o=n.slice(e+1);const i=o==="nonce"||/^[0-9a-f]+$/.test(o);return i?`${n.slice(0,e)}-${t}-${o}`:`${n}-${t}`};export{p as a,m as c,u as i,f as n,l as r};
5
+ //# sourceMappingURL=dev.utils-4OwwrWYD.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dev.utils-BXf9h7MR.js","sources":["src/utils/dev.utils.ts"],"sourcesContent":["import { Log, getDocument, isTestMode, setColorContrastAnalysis, setExperimentalMode } from '../schema';\n\nimport { Env } from '@stencil/core';\nimport { getWindow } from '../schema';\n\nconst initMeta = (): void => {\n\ttry {\n\t\tconst document = getDocument();\n\t\tif (!document || typeof document.querySelector !== 'function') {\n\t\t\treturn; // Skip meta initialization if document is not available\n\t\t}\n\n\t\tconst meta = document.querySelector('meta[name=\"kolibri\"]');\n\t\tif (meta && meta.hasAttribute('content')) {\n\t\t\tconst content = meta.getAttribute('content');\n\t\t\tif (typeof content === 'string') {\n\t\t\t\tsetExperimentalMode(content.includes('experimental-mode=true'));\n\t\t\t\tsetColorContrastAnalysis(content.includes('color-contrast-analysis=true'));\n\t\t\t}\n\t\t}\n\t} catch {\n\t\t// Ignore meta initialization errors in test/SSR environments\n\t}\n};\n\nconst getKoliBri = (): Record<string, unknown> => {\n\tlet kolibri = getWindow().KoliBri;\n\tif (kolibri === undefined) {\n\t\tkolibri = {};\n\t\tObject.defineProperty(getWindow(), 'KoliBri', {\n\t\t\tvalue: kolibri,\n\t\t\twritable: false,\n\t\t});\n\t}\n\treturn kolibri;\n};\n\nexport { getKoliBri };\n\nexport const initKoliBri = (): void => {\n\tinitMeta();\n\tLog.debug(\n\t\t`\n,--. ,--. ,--. ,--. ,-----. ,--.\n| .' / ,---. | | \\`--' | |) /_ ,--.--. \\`--'\n| . ' | .-. | | | ,--. | .-. \\\\ | .--' ,--.\n| |\\\\ \\\\ | '-' | | | | | | '--' / | | | |\n\\`--' \\`--´ \\`---´ \\`--' \\`--' \\`------´ \\`--' \\`--'\n🚹 The accessible HTML-Standard | 👉 https://public-ui.github.io | ${Env.kolibriVersion}\n\t`,\n\t\t{\n\t\t\tforceLog: true,\n\t\t},\n\t);\n};\n\nexport const renderDevAdvice = (): void => {\n\tif (getKoliBri().adviceShown !== true) {\n\t\tObject.defineProperty(getKoliBri(), 'adviceShown', {\n\t\t\tget: function () {\n\t\t\t\treturn true;\n\t\t\t},\n\t\t});\n\t\tLog.debug(\n\t\t\t`\nYou are using the KoliBri component library. If you have any suggestions for improvement or find a problem, please contact us:\n\nTicket: https://github.com/public-ui/kolibri/issues/new/choose (for privacy reasons, please use email)\nEmail: kolibri@itzbund.de\n`,\n\t\t);\n\t}\n};\n\nlet nonce = (): string => Math.floor(Math.random() * 16777215).toString(16);\n\nif (isTestMode()) {\n\tnonce = (): string => 'nonce';\n}\n\nexport { nonce };\n\nexport const createUniqueId = (prefix: string): string => `${prefix}-${nonce()}`;\n\nexport const createRelatedUniqueId = (baseId: string, suffix: string): string => {\n\tconst separatorIndex = baseId.lastIndexOf('-');\n\tif (separatorIndex === -1) return `${baseId}-${suffix}`;\n\tconst lastSegment = baseId.slice(separatorIndex + 1);\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":["src/utils/dev.utils.ts"],"sourcesContent":["import { Log, getDocument, isTestMode, setColorContrastAnalysis, setExperimentalMode } from '../schema';\n\nimport { Env } from '@stencil/core';\nimport { getWindow } from '../schema';\n\nconst initMeta = (): void => {\n\ttry {\n\t\tconst document = getDocument();\n\t\tif (!document || typeof document.querySelector !== 'function') {\n\t\t\treturn; // Skip meta initialization if document is not available\n\t\t}\n\n\t\tconst meta = document.querySelector('meta[name=\"kolibri\"]');\n\t\tif (meta && meta.hasAttribute('content')) {\n\t\t\tconst content = meta.getAttribute('content');\n\t\t\tif (typeof content === 'string') {\n\t\t\t\tsetExperimentalMode(content.includes('experimental-mode=true'));\n\t\t\t\tsetColorContrastAnalysis(content.includes('color-contrast-analysis=true'));\n\t\t\t}\n\t\t}\n\t} catch {\n\t\t// Ignore meta initialization errors in test/SSR environments\n\t}\n};\n\nconst getKoliBri = (): Record<string, unknown> => {\n\tlet kolibri = getWindow().KoliBri;\n\tif (kolibri === undefined) {\n\t\tkolibri = {};\n\t\tObject.defineProperty(getWindow(), 'KoliBri', {\n\t\t\tvalue: kolibri,\n\t\t\twritable: false,\n\t\t});\n\t}\n\treturn kolibri;\n};\n\nexport { getKoliBri };\n\nexport const initKoliBri = (): void => {\n\tinitMeta();\n\tLog.debug(\n\t\t`\n,--. ,--. ,--. ,--. ,-----. ,--.\n| .' / ,---. | | \\`--' | |) /_ ,--.--. \\`--'\n| . ' | .-. | | | ,--. | .-. \\\\ | .--' ,--.\n| |\\\\ \\\\ | '-' | | | | | | '--' / | | | |\n\\`--' \\`--´ \\`---´ \\`--' \\`--' \\`------´ \\`--' \\`--'\n🚹 The accessible HTML-Standard | 👉 https://public-ui.github.io | ${Env.kolibriVersion}\n\t`,\n\t\t{\n\t\t\tforceLog: true,\n\t\t},\n\t);\n};\n\nexport const renderDevAdvice = (): void => {\n\tif (getKoliBri().adviceShown !== true) {\n\t\tObject.defineProperty(getKoliBri(), 'adviceShown', {\n\t\t\tget: function () {\n\t\t\t\treturn true;\n\t\t\t},\n\t\t});\n\t\tLog.debug(\n\t\t\t`\nYou are using the KoliBri component library. If you have any suggestions for improvement or find a problem, please contact us:\n\nTicket: https://github.com/public-ui/kolibri/issues/new/choose (for privacy reasons, please use email)\nEmail: kolibri@itzbund.de\n`,\n\t\t);\n\t}\n};\n\nlet nonce = (): string => Math.floor(Math.random() * 16777215).toString(16);\n\nif (isTestMode()) {\n\tnonce = (): string => 'nonce';\n}\n\nexport { nonce };\n\nexport const createUniqueId = (prefix: string): string => `${prefix}-${nonce()}`;\n\nexport const createRelatedUniqueId = (baseId: string, suffix: string): string => {\n\tconst separatorIndex = baseId.lastIndexOf('-');\n\tif (separatorIndex === -1) return `${baseId}-${suffix}`;\n\tconst lastSegment = baseId.slice(separatorIndex + 1);\n\tconst isNonce = lastSegment === 'nonce' || /^[0-9a-f]+$/.test(lastSegment);\n\treturn isNonce ? `${baseId.slice(0, separatorIndex)}-${suffix}-${lastSegment}` : `${baseId}-${suffix}`;\n};\n"],"names":[],"mappings":";;;;;;AAKA,MAAM,QAAQ,GAAG,MAAW;AAC3B,IAAA,IAAI;AACH,QAAA,MAAM,QAAQ,GAAG,WAAW,EAAE;QAC9B,IAAI,CAAC,QAAQ,IAAI,OAAO,QAAQ,CAAC,aAAa,KAAK,UAAU,EAAE;YAC9D;;QAGD,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,sBAAsB,CAAC;QAC3D,IAAI,IAAI,IAAI,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE;YACzC,MAAM,OAAO,GAAG,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC;AAC5C,YAAA,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;gBAChC,mBAAmB,CAAC,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC;gBAC/D,wBAAwB,CAAC,OAAO,CAAC,QAAQ,CAAC,8BAA8B,CAAC,CAAC;;;;IAG3E,OAAA,EAAA,EAAM;;AAGT,CAAC;AA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E;AAAE,QAAA,OAAO,CAAG,EAAA,MAAM,CAAI,CAAA,EAAA,MAAM,EAAE;IACvD,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,cAAc,GAAG,CAAC,CAAC;AACpD,IAAA,MAAM,OAAO,GAAG,WAAW,KAAK,OAAO,IAAI,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC;IAC1E,OAAO,OAAO,GAAG,CAAA,EAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,cAAc,CAAC,IAAI,MAAM,CAAA,CAAA,EAAI,WAAW,CAAA,CAAE,GAAG,CAAA,EAAG,MAAM,CAAA,CAAA,EAAI,MAAM,CAAA,CAAE;AACvG;;;;"}
@@ -1,5 +1,5 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{W as t,L as o,z as i,C as e,Y as n,Q as l,Z as s,_ as a,$ as r,p as c,a0 as f,J as d,a1 as p}from"./common-D5l8QiaY.js";import{i as u,r as m}from"./dev.utils-BXf9h7MR.js";import"./index-C5dCp7IP.js";const v=()=>{let t=e().KoliBri;if(t===undefined){t={};Object.defineProperty(e(),"KoliBri",{value:t,writable:false})}return t};function L(t,i){try{Object.defineProperty(v(),t,{get:function(){return i}})}catch(i){o.debug(`KoliBri property ${t} is already bind.`)}}const h=(t,i)=>o.debug(`${t} ${i?"":"not "}activated`);const y=()=>{u();if(t()){m();L("a11yColorContrast",n);L("querySelector",l);L("querySelectorAll",s);L("querySelectorColors",a);L("utils",(function(){return r}));L("parseJson",c);L("stringifyJson",f);h("Development mode",t());h("Experimental mode",d());h("Color contrast analysis",p());setTimeout((()=>{try{const t=i();const o=t===null||t===void 0?void 0:t.body;if(t&&o&&typeof t.createElement==="function"){const i=t.createElement("svg");i.setAttribute("aria-label","KoliBri-DevTools");i.setAttribute("xmlns","http://www.w3.org/2000/svg");i.setAttribute("role","toolbar");i.setAttribute("style","position: fixed;color: black;font-size: 200%;bottom: 0.25rem;right: 0.25rem;");i.innerHTML=`<svg\n xmlns="http://www.w3.org/2000/svg"\n width="50"\n height="50"\n viewBox="0 0 600 600"\n>\n <path d="M353 322L213 304V434L353 322Z" fill="#047" />\n <path d="M209 564V304L149 434L209 564Z" fill="#047" />\n <path d="M357 316L417 250L361 210L275 244L357 316Z" fill="#047" />\n <path d="M353 318L35 36L213 300L353 318Z" fill="#047" />\n <path d="M329 218L237 92L250 222L272 241L329 218Z" fill="#047" />\n <path d="M391 286L565 272L421 252L391 286Z" fill="#047" />\n</svg>`;o.appendChild(i)}}catch(t){o.debug(["Could not initialize DevTools UI (likely in SSR/test environment):",t])}}),100);if(p()){const t=setTimeout((()=>{clearTimeout(t);try{const t=i();const o=t===null||t===void 0?void 0:t.body;if(t&&o&&typeof t.createElement==="function"){setInterval((()=>{r.queryHtmlElementColors(t.createElement("div"),n(o),false,false)}),1e4)}}catch(t){o.debug(["Could not initialize color contrast analysis:",t])}}),2500)}}};export{y as initialize};
5
- //# sourceMappingURL=devtools-DhAP1aCO.js.map
4
+ import{W as t,L as o,z as i,C as e,Y as n,Q as l,Z as s,_ as a,$ as r,p as c,a0 as f,J as d,a1 as u}from"./common-D5l8QiaY.js";import{i as p,r as m}from"./dev.utils-4OwwrWYD.js";import"./index-wGO77oPq.js";const v=()=>{let t=e().KoliBri;if(t===undefined){t={};Object.defineProperty(e(),"KoliBri",{value:t,writable:false})}return t};function L(t,i){try{Object.defineProperty(v(),t,{get:function(){return i}})}catch(i){o.debug(`KoliBri property ${t} is already bind.`)}}const y=(t,i)=>o.debug(`${t} ${i?"":"not "}activated`);const h=()=>{p();if(t()){m();L("a11yColorContrast",n);L("querySelector",l);L("querySelectorAll",s);L("querySelectorColors",a);L("utils",(function(){return r}));L("parseJson",c);L("stringifyJson",f);y("Development mode",t());y("Experimental mode",d());y("Color contrast analysis",u());setTimeout((()=>{try{const t=i();const o=t===null||t===void 0?void 0:t.body;if(t&&o&&typeof t.createElement==="function"){const i=t.createElement("svg");i.setAttribute("aria-label","KoliBri-DevTools");i.setAttribute("xmlns","http://www.w3.org/2000/svg");i.setAttribute("role","toolbar");i.setAttribute("style","position: fixed;color: black;font-size: 200%;bottom: 0.25rem;right: 0.25rem;");i.innerHTML=`<svg\n xmlns="http://www.w3.org/2000/svg"\n width="50"\n height="50"\n viewBox="0 0 600 600"\n>\n <path d="M353 322L213 304V434L353 322Z" fill="#047" />\n <path d="M209 564V304L149 434L209 564Z" fill="#047" />\n <path d="M357 316L417 250L361 210L275 244L357 316Z" fill="#047" />\n <path d="M353 318L35 36L213 300L353 318Z" fill="#047" />\n <path d="M329 218L237 92L250 222L272 241L329 218Z" fill="#047" />\n <path d="M391 286L565 272L421 252L391 286Z" fill="#047" />\n</svg>`;o.appendChild(i)}}catch(t){o.debug(["Could not initialize DevTools UI (likely in SSR/test environment):",t])}}),100);if(u()){const t=setTimeout((()=>{clearTimeout(t);try{const t=i();const o=t===null||t===void 0?void 0:t.body;if(t&&o&&typeof t.createElement==="function"){setInterval((()=>{r.queryHtmlElementColors(t.createElement("div"),n(o),false,false)}),1e4)}}catch(t){o.debug(["Could not initialize color contrast analysis:",t])}}),2500)}}};export{h as initialize};
5
+ //# sourceMappingURL=devtools-DQZUKzkH.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"devtools-DhAP1aCO.js","sources":["src/global/devtools.ts"],"sourcesContent":["import {\n\tgetColorContrastAnalysis,\n\tgetDocument,\n\tgetExperimentalMode,\n\tgetWindow,\n\tisDevMode,\n\tkoliBriA11yColorContrast,\n\tkoliBriQuerySelector,\n\tkoliBriQuerySelectorAll,\n\tkoliBriQuerySelectorColors,\n\tKoliBriUtils,\n\tLog,\n\tparseJson,\n\tstringifyJson,\n} from '../schema';\nimport { initKoliBri, renderDevAdvice } from '../utils/dev.utils';\n\nconst getKoliBri = (): Record<string, unknown> => {\n\tlet kolibri = getWindow().KoliBri;\n\tif (kolibri === undefined) {\n\t\tkolibri = {};\n\t\tObject.defineProperty(getWindow(), 'KoliBri', {\n\t\t\tvalue: kolibri,\n\t\t\twritable: false,\n\t\t});\n\t}\n\treturn kolibri;\n};\n\nfunction prototypeKoliBri<T>(name: string, cb: T) {\n\ttry {\n\t\tObject.defineProperty(getKoliBri(), name, {\n\t\t\tget: function () {\n\t\t\t\treturn cb;\n\t\t\t},\n\t\t});\n\t} catch {\n\t\tLog.debug(`KoliBri property ${name} is already bind.`);\n\t}\n}\n\nconst metaModeLog = (name: string, active: boolean) => Log.debug(`${name} ${active ? '' : 'not '}activated`);\n\nexport const initialize = (): void => {\n\tinitKoliBri();\n\tif (isDevMode()) {\n\t\trenderDevAdvice();\n\n\t\tprototypeKoliBri('a11yColorContrast', koliBriA11yColorContrast);\n\t\tprototypeKoliBri('querySelector', koliBriQuerySelector);\n\t\tprototypeKoliBri('querySelectorAll', koliBriQuerySelectorAll);\n\t\tprototypeKoliBri('querySelectorColors', koliBriQuerySelectorColors);\n\t\tprototypeKoliBri('utils', function () {\n\t\t\treturn KoliBriUtils;\n\t\t});\n\t\tprototypeKoliBri('parseJson', parseJson);\n\t\tprototypeKoliBri('stringifyJson', stringifyJson);\n\n\t\tmetaModeLog('Development mode', isDevMode());\n\t\tmetaModeLog('Experimental mode', getExperimentalMode());\n\t\tmetaModeLog('Color contrast analysis', getColorContrastAnalysis());\n\n\t\t// Delay DOM manipulation to ensure document is ready\n\t\tsetTimeout(() => {\n\t\t\ttry {\n\t\t\t\tconst document = getDocument();\n\t\t\t\tconst body = document?.body;\n\n\t\t\t\t// Only proceed if we have a valid document and body\n\t\t\t\tif (document && body && typeof document.createElement === 'function') {\n\t\t\t\t\tconst div = document.createElement('svg');\n\t\t\t\t\tdiv.setAttribute('aria-label', 'KoliBri-DevTools');\n\t\t\t\t\tdiv.setAttribute('xmlns', 'http://www.w3.org/2000/svg');\n\t\t\t\t\tdiv.setAttribute('role', 'toolbar');\n\t\t\t\t\tdiv.setAttribute('style', 'position: fixed;color: black;font-size: 200%;bottom: 0.25rem;right: 0.25rem;');\n\t\t\t\t\tdiv.innerHTML = `<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"50\"\n height=\"50\"\n viewBox=\"0 0 600 600\"\n>\n <path d=\"M353 322L213 304V434L353 322Z\" fill=\"#047\" />\n <path d=\"M209 564V304L149 434L209 564Z\" fill=\"#047\" />\n <path d=\"M357 316L417 250L361 210L275 244L357 316Z\" fill=\"#047\" />\n <path d=\"M353 318L35 36L213 300L353 318Z\" fill=\"#047\" />\n <path d=\"M329 218L237 92L250 222L272 241L329 218Z\" fill=\"#047\" />\n <path d=\"M391 286L565 272L421 252L391 286Z\" fill=\"#047\" />\n</svg>`;\n\n\t\t\t\t\tbody.appendChild(div);\n\t\t\t\t}\n\t\t\t} catch (error) {\n\t\t\t\tLog.debug(['Could not initialize DevTools UI (likely in SSR/test environment):', error]);\n\t\t\t}\n\t\t}, 100);\n\n\t\tif (getColorContrastAnalysis()) {\n\t\t\tconst timeout = setTimeout(() => {\n\t\t\t\tclearTimeout(timeout);\n\t\t\t\ttry {\n\t\t\t\t\tconst document = getDocument();\n\t\t\t\t\tconst body = document?.body;\n\t\t\t\t\tif (document && body && typeof document.createElement === 'function') {\n\t\t\t\t\t\tsetInterval(() => {\n\t\t\t\t\t\t\tKoliBriUtils.queryHtmlElementColors(document.createElement('div'), koliBriA11yColorContrast(body), false, false);\n\t\t\t\t\t\t}, 10000);\n\t\t\t\t\t}\n\t\t\t\t} catch (error) {\n\t\t\t\t\tLog.debug(['Could not initialize color contrast analysis:', error]);\n\t\t\t\t}\n\t\t\t}, 2500);\n\t\t}\n\n\t\t// setTimeout(() => {\n\t\t// const kolButton = koliBriQuerySelector<HTMLButtonElement>(document, '[_label=\"Aktion ausführen\"]');\n\t\t// if (kolButton) {\n\t\t// const button = koliBriQuerySelector<HTMLButtonElement>(kolButton?.shadowRoot as ShadowRoot, 'button');\n\t\t// if (button) {\n\t\t// kolButton.style.backgroundColor = '#988';\n\t\t// button.style.backgroundColor = 'inherit';\n\t\t// button.style.color = '#988';\n\t\t// const kolButtonColors = koliBriQuerySelectorColors('[_label=\"Aktion ausführen\"]');\n\t\t// console.log(\n\t\t// koliBriQuerySelectorColors('button', {\n\t\t// ...kolButtonColors,\n\t\t// })\n\t\t// );\n\t\t// }\n\t\t// }\n\t\t// }, 2500);\n\t}\n};\n"],"names":[],"mappings":";;;;;;;AAiBA,MAAM,UAAU,GAAG,MAA8B;AAChD,IAAA,IAAI,OAAO,GAAG,SAAS,EAAE,CAAC,OAAO;AACjC,IAAA,IAAI,OAAO,KAAK,SAAS,EAAE;QAC1B,OAAO,GAAG,EAAE;AACZ,QAAA,MAAM,CAAC,cAAc,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE;AAC7C,YAAA,KAAK,EAAE,OAAO;AACd,YAAA,QAAQ,EAAE,KAAK;AACf,SAAA,CAAC;;AAEH,IAAA,OAAO,OAAO;AACf,CAAC;AAED,SAAS,gBAAgB,CAAI,IAAY,EAAE,EAAK,EAAA;AAC/C,IAAA,IAAI;AACH,QAAA,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE;AACzC,YAAA,GAAG,EAAE,YAAA;AACJ,gBAAA,OAAO,EAAE;aACT;AACD,SAAA,CAAC;;IACD,OAAA,EAAA,EAAM;AACP,QAAA,GAAG,CAAC,KAAK,CAAC,oBAAoB,IAAI,CAAA,iBAAA,CAAmB,CAAC;;AAExD;AAEA,MAAM,WAAW,GAAG,CAAC,IAAY,EAAE,MAAe,KAAK,GAAG,CAAC,KAAK,CAAC,CAAG,EAAA,IAAI,CAAI,CAAA,EAAA,MAAM,GAAG,EAAE,GAAG,MAAM,CAAW,SAAA,CAAA,CAAC;AAErG,MAAM,UAAU,GAAG,MAAW;AACpC,IAAA,WAAW,EAAE;IACb,IAAI,SAAS,EAAE,EAAE;AAChB,QAAA,eAAe,EAAE;AAEjB,QAAA,gBAAgB,CAAC,mBAAmB,EAAE,wBAAwB,CAAC;AAC/D,QAAA,gBAAgB,CAAC,eAAe,EAAE,oBAAoB,CAAC;AACv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E,EAAE,KAAK,CAAC,CAAC;;SAEzF,EAAE,GAAG,CAAC;QAEP,IAAI,wBAAwB,EAAE,EAAE;AAC/B,YAAA,MAAM,OAAO,GAAG,UAAU,CAAC,MAAK;gBAC/B,YAAY,CAAC,OAAO,CAAC;AACrB,gBAAA,IAAI;AACH,oBAAA,MAAM,QAAQ,GAAG,WAAW,EAAE;oBAC9B,MAAM,IAAI,GAAG,QAAQ,KAAA,IAAA,IAAR,QAAQ,KAAR,MAAA,GAAA,MAAA,GAAA,QAAQ,CAAE,IAAI;oBAC3B,IAAI,QAAQ,IAAI,IAAI,IAAI,OAAO,QAAQ,CAAC,aAAa,KAAK,UAAU,EAAE;wBACrE,WAAW,CAAC,MAAK;AAChB,4BAAA,YAAY,CAAC,sBAAsB,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,wBAAwB,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC;yBAChH,EAAE,KAAK,CAAC;;;gBAET,OAAO,KAAK,EAAE;oBACf,GAAG,CAAC,KAAK,CAAC,CAAC,+CAA+C,EAAE,KAAK,CAAC,CAAC;;aAEpE,EAAE,IAAI,CAAC;;;AAqBX;;;;"}
1
+ {"version":3,"file":"devtools-DQZUKzkH.js","sources":["src/global/devtools.ts"],"sourcesContent":["import {\n\tgetColorContrastAnalysis,\n\tgetDocument,\n\tgetExperimentalMode,\n\tgetWindow,\n\tisDevMode,\n\tkoliBriA11yColorContrast,\n\tkoliBriQuerySelector,\n\tkoliBriQuerySelectorAll,\n\tkoliBriQuerySelectorColors,\n\tKoliBriUtils,\n\tLog,\n\tparseJson,\n\tstringifyJson,\n} from '../schema';\nimport { initKoliBri, renderDevAdvice } from '../utils/dev.utils';\n\nconst getKoliBri = (): Record<string, unknown> => {\n\tlet kolibri = getWindow().KoliBri;\n\tif (kolibri === undefined) {\n\t\tkolibri = {};\n\t\tObject.defineProperty(getWindow(), 'KoliBri', {\n\t\t\tvalue: kolibri,\n\t\t\twritable: false,\n\t\t});\n\t}\n\treturn kolibri;\n};\n\nfunction prototypeKoliBri<T>(name: string, cb: T) {\n\ttry {\n\t\tObject.defineProperty(getKoliBri(), name, {\n\t\t\tget: function () {\n\t\t\t\treturn cb;\n\t\t\t},\n\t\t});\n\t} catch {\n\t\tLog.debug(`KoliBri property ${name} is already bind.`);\n\t}\n}\n\nconst metaModeLog = (name: string, active: boolean) => Log.debug(`${name} ${active ? '' : 'not '}activated`);\n\nexport const initialize = (): void => {\n\tinitKoliBri();\n\tif (isDevMode()) {\n\t\trenderDevAdvice();\n\n\t\tprototypeKoliBri('a11yColorContrast', koliBriA11yColorContrast);\n\t\tprototypeKoliBri('querySelector', koliBriQuerySelector);\n\t\tprototypeKoliBri('querySelectorAll', koliBriQuerySelectorAll);\n\t\tprototypeKoliBri('querySelectorColors', koliBriQuerySelectorColors);\n\t\tprototypeKoliBri('utils', function () {\n\t\t\treturn KoliBriUtils;\n\t\t});\n\t\tprototypeKoliBri('parseJson', parseJson);\n\t\tprototypeKoliBri('stringifyJson', stringifyJson);\n\n\t\tmetaModeLog('Development mode', isDevMode());\n\t\tmetaModeLog('Experimental mode', getExperimentalMode());\n\t\tmetaModeLog('Color contrast analysis', getColorContrastAnalysis());\n\n\t\t// Delay DOM manipulation to ensure document is ready\n\t\tsetTimeout(() => {\n\t\t\ttry {\n\t\t\t\tconst document = getDocument();\n\t\t\t\tconst body = document?.body;\n\n\t\t\t\t// Only proceed if we have a valid document and body\n\t\t\t\tif (document && body && typeof document.createElement === 'function') {\n\t\t\t\t\tconst div = document.createElement('svg');\n\t\t\t\t\tdiv.setAttribute('aria-label', 'KoliBri-DevTools');\n\t\t\t\t\tdiv.setAttribute('xmlns', 'http://www.w3.org/2000/svg');\n\t\t\t\t\tdiv.setAttribute('role', 'toolbar');\n\t\t\t\t\tdiv.setAttribute('style', 'position: fixed;color: black;font-size: 200%;bottom: 0.25rem;right: 0.25rem;');\n\t\t\t\t\tdiv.innerHTML = `<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"50\"\n height=\"50\"\n viewBox=\"0 0 600 600\"\n>\n <path d=\"M353 322L213 304V434L353 322Z\" fill=\"#047\" />\n <path d=\"M209 564V304L149 434L209 564Z\" fill=\"#047\" />\n <path d=\"M357 316L417 250L361 210L275 244L357 316Z\" fill=\"#047\" />\n <path d=\"M353 318L35 36L213 300L353 318Z\" fill=\"#047\" />\n <path d=\"M329 218L237 92L250 222L272 241L329 218Z\" fill=\"#047\" />\n <path d=\"M391 286L565 272L421 252L391 286Z\" fill=\"#047\" />\n</svg>`;\n\n\t\t\t\t\tbody.appendChild(div);\n\t\t\t\t}\n\t\t\t} catch (error) {\n\t\t\t\tLog.debug(['Could not initialize DevTools UI (likely in SSR/test environment):', error]);\n\t\t\t}\n\t\t}, 100);\n\n\t\tif (getColorContrastAnalysis()) {\n\t\t\tconst timeout = setTimeout(() => {\n\t\t\t\tclearTimeout(timeout);\n\t\t\t\ttry {\n\t\t\t\t\tconst document = getDocument();\n\t\t\t\t\tconst body = document?.body;\n\t\t\t\t\tif (document && body && typeof document.createElement === 'function') {\n\t\t\t\t\t\tsetInterval(() => {\n\t\t\t\t\t\t\tKoliBriUtils.queryHtmlElementColors(document.createElement('div'), koliBriA11yColorContrast(body), false, false);\n\t\t\t\t\t\t}, 10000);\n\t\t\t\t\t}\n\t\t\t\t} catch (error) {\n\t\t\t\t\tLog.debug(['Could not initialize color contrast analysis:', error]);\n\t\t\t\t}\n\t\t\t}, 2500);\n\t\t}\n\n\t\t// setTimeout(() => {\n\t\t// const kolButton = koliBriQuerySelector<HTMLButtonElement>(document, '[_label=\"Aktion ausführen\"]');\n\t\t// if (kolButton) {\n\t\t// const button = koliBriQuerySelector<HTMLButtonElement>(kolButton?.shadowRoot as ShadowRoot, 'button');\n\t\t// if (button) {\n\t\t// kolButton.style.backgroundColor = '#988';\n\t\t// button.style.backgroundColor = 'inherit';\n\t\t// button.style.color = '#988';\n\t\t// const kolButtonColors = koliBriQuerySelectorColors('[_label=\"Aktion ausführen\"]');\n\t\t// console.log(\n\t\t// koliBriQuerySelectorColors('button', {\n\t\t// ...kolButtonColors,\n\t\t// })\n\t\t// );\n\t\t// }\n\t\t// }\n\t\t// }, 2500);\n\t}\n};\n"],"names":[],"mappings":";;;;;;;AAiBA,MAAM,UAAU,GAAG,MAA8B;AAChD,IAAA,IAAI,OAAO,GAAG,SAAS,EAAE,CAAC,OAAO;AACjC,IAAA,IAAI,OAAO,KAAK,SAAS,EAAE;QAC1B,OAAO,GAAG,EAAE;AACZ,QAAA,MAAM,CAAC,cAAc,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE;AAC7C,YAAA,KAAK,EAAE,OAAO;AACd,YAAA,QAAQ,EAAE,KAAK;AACf,SAAA,CAAC;;AAEH,IAAA,OAAO,OAAO;AACf,CAAC;AAED,SAAS,gBAAgB,CAAI,IAAY,EAAE,EAAK,EAAA;AAC/C,IAAA,IAAI;AACH,QAAA,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE;AACzC,YAAA,GAAG,EAAE,YAAA;AACJ,gBAAA,OAAO,EAAE;aACT;AACD,SAAA,CAAC;;IACD,OAAA,EAAA,EAAM;AACP,QAAA,GAAG,CAAC,KAAK,CAAC,oBAAoB,IAAI,CAAA,iBAAA,CAAmB,CAAC;;AAExD;AAEA,MAAM,WAAW,GAAG,CAAC,IAAY,EAAE,MAAe,KAAK,GAAG,CAAC,KAAK,CAAC,CAAG,EAAA,IAAI,CAAI,CAAA,EAAA,MAAM,GAAG,EAAE,GAAG,MAAM,CAAW,SAAA,CAAA,CAAC;AAErG,MAAM,UAAU,GAAG,MAAW;AACpC,IAAA,WAAW,EAAE;IACb,IAAI,SAAS,EAAE,EAAE;AAChB,QAAA,eAAe,EAAE;AAEjB,QAAA,gBAAgB,CAAC,mBAAmB,EAAE,wBAAwB,CAAC;AAC/D,QAAA,gBAAgB,CAAC,eAAe,EAAE,oBAAoB,CAAC;AACvD,QAAA,gB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AK,CAAC,CAAC;;SAEzF,EAAE,GAAG,CAAC;QAEP,IAAI,wBAAwB,EAAE,EAAE;AAC/B,YAAA,MAAM,OAAO,GAAG,UAAU,CAAC,MAAK;gBAC/B,YAAY,CAAC,OAAO,CAAC;AACrB,gBAAA,IAAI;AACH,oBAAA,MAAM,QAAQ,GAAG,WAAW,EAAE;oBAC9B,MAAM,IAAI,GAAG,QAAQ,KAAA,IAAA,IAAR,QAAQ,KAAR,MAAA,GAAA,MAAA,GAAA,QAAQ,CAAE,IAAI;oBAC3B,IAAI,QAAQ,IAAI,IAAI,IAAI,OAAO,QAAQ,CAAC,aAAa,KAAK,UAAU,EAAE;wBACrE,WAAW,CAAC,MAAK;AAChB,4BAAA,YAAY,CAAC,sBAAsB,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,wBAAwB,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC;yBAChH,EAAE,KAAK,CAAC;;;gBAET,OAAO,KAAK,EAAE;oBACf,GAAG,CAAC,KAAK,CAAC,CAAC,+CAA+C,EAAE,KAAK,CAAC,CAAC;;aAEpE,EAAE,IAAI,CAAC;;;AAqBX;;;;"}
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import"./common-D5l8QiaY.js";const e="kolibri";const t={hydratedSelectorName:"hydrated",lazyLoad:true,propChangeCallback:true,slotRelocation:true,state:true,updatable:true};const n={kolibriVersion:"4.3.0-rc.6"};var r=Object.defineProperty;var i=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:true})};var l="http://www.w3.org/2000/svg";var s="http://www.w3.org/1999/xhtml";var o=(e=>{e["Undefined"]="undefined";e["Null"]="null";e["String"]="string";e["Number"]="number";e["SpecialNumber"]="number";e["Boolean"]="boolean";e["BigInt"]="bigint";return e})(o||{});var f=(e=>{e["Array"]="array";e["Date"]="date";e["Map"]="map";e["Object"]="object";e["RegularExpression"]="regexp";e["Set"]="set";e["Channel"]="channel";e["Symbol"]="symbol";return e})(f||{});var a="type";var c="value";var u="serialized:";var v=(e,t)=>{var n;const r=t.t;const i=Object.entries((n=r.i)!=null?n:{});i.map((([n,[r]])=>{if(r&31||r&32){const r=e[n];const i=d(Object.getPrototypeOf(e),n)||Object.getOwnPropertyDescriptor(e,n);if(i){Object.defineProperty(e,n,{get(){return i.get.call(this)},set(e){i.set.call(this,e)},configurable:true,enumerable:true})}e[n]=t.l.has(n)?t.l.get(n):r}}))};function d(e,t){while(e){const n=Object.getOwnPropertyDescriptor(e,t);if(n==null?void 0:n.get)return n;e=Object.getPrototypeOf(e)}return void 0}var p=e=>{if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var h=(e,n)=>{if(!n)return;e.__stencil__getHostRef=()=>n;n.o=e;if(n.t.u&512&&t.state){v(e,n)}};var $=(e,t)=>{const n={u:0,$hostElement$:e,t,l:new Map,v:new Map};{n.p=new Promise((e=>n.h=e))}{n.$=new Promise((e=>n.m=e));e["s-p"]=[];e["s-rc"]=[]}{n.S=[]}const r=n;e.__stencil__getHostRef=()=>r;return r};var m=(e,t)=>t in e;var y=(e,t)=>(0,console.error)(e,t);var b=new Map;var w=(e,t,n)=>{const r=e.j.replace(/-/g,"_");const i=e.O;if(!i){return void 0}const l=b.get(i);if(l){return l[r]}
4
+ import"./common-D5l8QiaY.js";const e="kolibri";const t={hydratedSelectorName:"hydrated",lazyLoad:true,propChangeCallback:true,slotRelocation:true,state:true,updatable:true};const n={kolibriVersion:"4.3.0-rc.8"};var r=Object.defineProperty;var i=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:true})};var l="http://www.w3.org/2000/svg";var s="http://www.w3.org/1999/xhtml";var o=(e=>{e["Undefined"]="undefined";e["Null"]="null";e["String"]="string";e["Number"]="number";e["SpecialNumber"]="number";e["Boolean"]="boolean";e["BigInt"]="bigint";return e})(o||{});var f=(e=>{e["Array"]="array";e["Date"]="date";e["Map"]="map";e["Object"]="object";e["RegularExpression"]="regexp";e["Set"]="set";e["Channel"]="channel";e["Symbol"]="symbol";return e})(f||{});var a="type";var c="value";var u="serialized:";var v=(e,t)=>{var n;const r=t.t;const i=Object.entries((n=r.i)!=null?n:{});i.map((([n,[r]])=>{if(r&31||r&32){const r=e[n];const i=d(Object.getPrototypeOf(e),n)||Object.getOwnPropertyDescriptor(e,n);if(i){Object.defineProperty(e,n,{get(){return i.get.call(this)},set(e){i.set.call(this,e)},configurable:true,enumerable:true})}e[n]=t.l.has(n)?t.l.get(n):r}}))};function d(e,t){while(e){const n=Object.getOwnPropertyDescriptor(e,t);if(n==null?void 0:n.get)return n;e=Object.getPrototypeOf(e)}return void 0}var p=e=>{if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var h=(e,n)=>{if(!n)return;e.__stencil__getHostRef=()=>n;n.o=e;if(n.t.u&512&&t.state){v(e,n)}};var $=(e,t)=>{const n={u:0,$hostElement$:e,t,l:new Map,v:new Map};{n.p=new Promise((e=>n.h=e))}{n.$=new Promise((e=>n.m=e));e["s-p"]=[];e["s-rc"]=[]}{n.S=[]}const r=n;e.__stencil__getHostRef=()=>r;return r};var m=(e,t)=>t in e;var y=(e,t)=>(0,console.error)(e,t);var b=new Map;var w=(e,t,n)=>{const r=e.j.replace(/-/g,"_");const i=e.O;if(!i){return void 0}const l=b.get(i);if(l){return l[r]}
5
5
  /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${i}.entry.js${""}`).then((e=>{{b.set(i,e)}return e[r]}),(e=>{y(e,t.$hostElement$)}))};var g=new Map;var S=[];var j="r";var O="o";var k="s";var x="t";var E="c";var N="s-id";var C="sty-id";var I="c-id";var M="{visibility:hidden}.hydrated{visibility:inherit}";var R="slot-fb{display:contents}slot-fb[hidden]{display:none}";var L="http://www.w3.org/1999/xlink";var P=typeof window!=="undefined"?window:{};var T={u:0,k:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)};var U=(()=>{var e;let t=false;try{(e=P.document)==null?void 0:e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=true}}))}catch(e){}return t})();var A=e=>Promise.resolve(e);var D=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var F=D?(()=>!!P.document&&Object.getOwnPropertyDescriptor(P.document.adoptedStyleSheets,"length").writable)():false;var V=e=>A().then(e);var B=e=>{e=typeof e;return e==="object"||e==="function"};function W(e){var t,n,r;return(r=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?r:void 0}var z=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");var _=class e{static fromLocalValue(t){const n=t[a];const r=c in t?t[c]:void 0;switch(n){case"string":return r;case"boolean":return r;case"bigint":return BigInt(r);case"undefined":return void 0;case"null":return null;case"number":if(r==="NaN")return NaN;if(r==="-0")return-0;if(r==="Infinity")return Infinity;if(r==="-Infinity")return-Infinity;return r;case"array":return r.map((t=>e.fromLocalValue(t)));case"date":return new Date(r);case"map":const t=new Map;for(const[n,i]of r){const r=typeof n==="object"&&n!==null?e.fromLocalValue(n):n;const l=e.fromLocalValue(i);t.set(r,l)}return t;case"object":const i={};for(const[t,n]of r){i[t]=e.fromLocalValue(n)}return i;case"regexp":const{pattern:l,flags:s}=r;return new RegExp(l,s);case"set":const o=new Set;for(const t of r){o.add(e.fromLocalValue(t))}return o;case"symbol":return Symbol(r);default:throw new Error(`Unsupported type: ${n}`)}}static fromLocalValueArray(t){return t.map((t=>e.fromLocalValue(t)))}static isLocalValueObject(e){if(typeof e!=="object"||e===null){return false}if(!e.hasOwnProperty(a)){return false}const t=e[a];const n=Object.values({...o,...f}).includes(t);if(!n){return false}if(t!=="null"&&t!=="undefined"){return e.hasOwnProperty(c)}return true}};var H={};i(H,{err:()=>q,map:()=>G,ok:()=>Y,unwrap:()=>J,unwrapErr:()=>Q});var Y=e=>({isOk:true,isErr:false,value:e});var q=e=>({isOk:false,isErr:true,value:e});function G(e,t){if(e.isOk){const n=t(e.value);if(n instanceof Promise){return n.then((e=>Y(e)))}else{return Y(n)}}if(e.isErr){const t=e.value;return q(t)}throw"should never get here"}var J=e=>{if(e.isOk){return e.value}else{throw e.value}};var Q=e=>{if(e.isErr){return e.value}else{throw e.value}};function K(e){if(typeof e!=="string"||!e.startsWith(u)){return e}return _.fromLocalValue(JSON.parse(atob(e.slice(u.length))))}function X(e){return void 0}var Z;function ee(e){var t;const n=this.attachShadow({mode:"open"});if(Z===void 0)Z=(t=X())!=null?t:null;if(Z){if(F){n.adoptedStyleSheets.push(Z)}else{n.adoptedStyleSheets=[...n.adoptedStyleSheets,Z]}}}var te=e=>{const t=ae(e,"childNodes");if(e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"){re(t,e.tagName).forEach((e=>{if(e.nodeType===1&&e.tagName==="SLOT-FB"){if(ie(e,oe(e),false).length){e.hidden=true}else{e.hidden=false}}}))}let n=0;for(n=0;n<t.length;n++){const e=t[n];if(e.nodeType===1&&ae(e,"childNodes").length){te(e)}}};var ne=e=>{const t=[];for(let n=0;n<e.length;n++){const r=e[n]["s-nr"]||void 0;if(r&&r.isConnected){t.push(r)}}return t};function re(e,t,n){let r=0;let i=[];let l;for(;r<e.length;r++){l=e[r];if(l["s-sr"]&&(!t||l["s-hn"]===t)&&n===void 0){i.push(l)}i=[...i,...re(l.childNodes,t,n)]}return i}var ie=(e,t,n=true)=>{const r=[];if(n&&e["s-sr"]||!e["s-sr"])r.push(e);let i=e;while(i=i.nextSibling){if(oe(i)===t&&(n||!i["s-sr"]))r.push(i)}return r};var le=(e,t)=>{if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};var se=(e,t,n,r)=>{if(e["s-ol"]&&e["s-ol"].isConnected){return}const i=document.createTextNode("");i["s-nr"]=e;if(!t["s-cr"]||!t["s-cr"].parentNode)return;const l=t["s-cr"].parentNode;const s=ae(l,"appendChild");if(typeof r!=="undefined"){i["s-oo"]=r;const e=ae(l,"childNodes");const t=[i];e.forEach((e=>{if(e["s-nr"])t.push(e)}));t.sort(((e,t)=>{if(!e["s-oo"]||e["s-oo"]<(t["s-oo"]||0))return-1;else if(!t["s-oo"]||t["s-oo"]<e["s-oo"])return 1;return 0}));t.forEach((e=>s.call(l,e)))}else{s.call(l,i)}e["s-ol"]=i;e["s-sh"]=t["s-hn"]};var oe=e=>typeof e["s-sn"]==="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function fe(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;const t=t=>function(e){const n=[];const r=this["s-sn"];if(e==null?void 0:e.flatten){console.error(`\n Flattening is not supported for Stencil non-shadow slots.\n You can use \`.childNodes\` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n `)}const i=this["s-cr"].parentElement;const l=i.__childNodes?i.childNodes:ne(i.childNodes);l.forEach((e=>{if(r===oe(e)){n.push(e)}}));if(t){return n.filter((e=>e.nodeType===1))}return n}.bind(e);e.assignedElements=t(true);e.assignedNodes=t(false)}function ae(e,t){if("__"+t in e){const n=e["__"+t];if(typeof n!=="function")return n;return n.bind(e)}else{if(typeof e[t]!=="function")return e[t];return e[t].bind(e)}}var ce=(e,t="")=>{{return()=>{}}};var ue=(e,t)=>{{return()=>{}}};var ve=new WeakMap;var de=(e,t,n)=>{let r=g.get(e);if(D&&n){r=r||new CSSStyleSheet;if(typeof r==="string"){r=t}else{r.replaceSync(t)}}else{r=t}g.set(e,r)};var pe=(e,t,n)=>{var r;const i=$e(t,n);const l=g.get(i);if(!P.document){return i}e=e.nodeType===11?e:P.document;if(l){if(typeof l==="string"){e=e.head||e;let n=ve.get(e);let s;if(!n){ve.set(e,n=new Set)}if(!n.has(i)){if(e.host&&(s=e.querySelector(`[${C}="${i}"]`))){s.innerHTML=l}else{s=P.document.createElement("style");s.innerHTML=l;const n=(r=T.N)!=null?r:W(P.document);if(n!=null){s.setAttribute("nonce",n)}if(!(t.u&1)){if(e.nodeName==="HEAD"){const t=e.querySelectorAll("link[rel=preconnect]");const n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,(n==null?void 0:n.parentNode)===e?n:null)}else if("host"in e){if(D){const t=new CSSStyleSheet;t.replaceSync(l);if(F){e.adoptedStyleSheets.unshift(t)}else{e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}}else{const t=e.querySelector("style");if(t){t.innerHTML=l+t.innerHTML}else{e.prepend(s)}}}else{e.append(s)}}if(t.u&1){e.insertBefore(s,null)}}if(t.u&4){s.innerHTML+=R}if(n){n.add(i)}}}else if(!e.adoptedStyleSheets.includes(l)){if(F){e.adoptedStyleSheets.push(l)}else{e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]}}}return i};var he=e=>{const t=e.t;const n=e.$hostElement$;const r=t.u;const i=ce("attachStyles",t.j);const l=pe(n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.C);if(r&10){n["s-sc"]=l;n.classList.add(l+"-h")}i()};var $e=(e,t)=>"sc-"+(t&&e.u&32?e.j+"-"+t:e.j);var me=e=>e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{");var ye=()=>{if(!P.document){return}const e=P.document.querySelectorAll(`[${C}]`);let t=0;for(;t<e.length;t++){de(e[t].getAttribute(C),me(e[t].innerHTML),true)}};var be=(e,t,...n)=>{let r=null;let i=null;let l=null;let s=false;let o=false;const f=[];const a=t=>{for(let n=0;n<t.length;n++){r=t[n];if(Array.isArray(r)){a(r)}else if(r!=null&&typeof r!=="boolean"){if(s=typeof e!=="function"&&!B(r)){r=String(r)}if(s&&o){f[f.length-1].I+=r}else{f.push(s?we(null,r):r)}o=s}}};a(n);if(t){if(t.key){i=t.key}if(t.name){l=t.name}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,f,je)}const c=we(e,null);c.M=t;if(f.length>0){c.R=f}{c.L=i}{c.P=l}return c};var we=(e,t)=>{const n={u:0,T:e,I:t,U:null,R:null};{n.M=null}{n.L=null}{n.P=null}return n};var ge={};var Se=e=>e&&e.T===ge;var je={forEach:(e,t)=>e.map(Oe).forEach(t),map:(e,t)=>e.map(Oe).map(t).map(ke)};var Oe=e=>({vattrs:e.M,vchildren:e.R,vkey:e.L,vname:e.P,vtag:e.T,vtext:e.I});var ke=e=>{if(typeof e.vtag==="function"){const t={...e.vattrs};if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return be(e.vtag,t,...e.vchildren||[])}const t=we(e.vtag,e.vtext);t.M=e.vattrs;t.R=e.vchildren;t.L=e.vkey;t.P=e.vname;return t};var xe=(e,t,n,r)=>{var i,l;const s=ce("hydrateClient",t);const o=e.shadowRoot;const f=[];const a=[];const c=[];const u=o?[]:null;const v=we(t,null);v.U=e;if(P.document&&(!T.A||!T.A.size)){Ne(P.document.body,T.A=new Map)}e[N]=n;e.removeAttribute(N);r.D=Ee(v,f,a,u,e,e,n,c);let d=0;const h=f.length;let $;for(d;d<h;d++){$=f[d];const n=$.F+"."+$.V;const r=T.A.get(n);const l=$.U;if(!o){l["s-hn"]=t.toUpperCase();if($.T==="slot"){l["s-cr"]=e["s-cr"]}}else if(((i=$.T)==null?void 0:i.toString().includes("-"))&&$.T!=="slot-fb"&&!$.U.shadowRoot){const t=p($.U);if(t){const n=$e(t.t,$.U.getAttribute("s-mode"));const r=P.document.querySelector(`style[sty-id="${n}"]`);if(r){e.shadowRoot.append(r.cloneNode(true))}}}if($.T==="slot"){$.P=$.U["s-sn"]||$.U["name"]||null;if($.R){$.u|=2;if(!$.U.childNodes.length){$.R.forEach((e=>{$.U.appendChild(e.U)}))}}else{$.u|=1}}if(r&&r.isConnected){if(r.parentElement.shadowRoot&&r["s-en"]===""){r.parentNode.insertBefore(l,r.nextSibling)}r.parentNode.removeChild(r);if(!o){l["s-oo"]=parseInt($.V)}}if(r&&!r["s-id"]){T.A.delete(n)}}const m=[];const y=c.length;let b=0;let w;let g;let S;let j;for(b;b<y;b++){w=c[b];if(!w||!w.length)continue;S=w.length;g=0;for(g;g<S;g++){j=w[g];if(!m[j.hostId]){m[j.hostId]=T.A.get(j.hostId)}if(!m[j.hostId])continue;const e=m[j.hostId];if(e.shadowRoot&&j.node.parentElement!==e){e.appendChild(j.node)}if(!e.shadowRoot||!o){if(!j.slot["s-cr"]){j.slot["s-cr"]=e["s-cr"];if(!j.slot["s-cr"]&&e.shadowRoot){j.slot["s-cr"]=e}else{j.slot["s-cr"]=(e.__childNodes||e.childNodes)[0]}}se(j.node,j.slot,false,j.node["s-oo"]);if(((l=j.node.parentElement)==null?void 0:l.shadowRoot)&&j.node["getAttribute"]&&j.node.getAttribute("slot")){j.node.removeAttribute("slot")}}}}if(o){let t=0;const n=u.length;if(n){for(t;t<n;t++){const e=u[t];if(e){o.appendChild(e)}}Array.from(e.childNodes).forEach((e=>{if(typeof e["s-en"]!=="string"&&typeof e["s-sn"]!=="string"){if(e.nodeType===1&&e.slot&&e.hidden){e.removeAttribute("hidden")}else if(e.nodeType===8&&!e.nodeValue||e.nodeType===3&&!e.wholeText.trim()){e.parentNode.removeChild(e)}}}))}}r.$hostElement$=e;s()};var Ee=(e,t,n,r,i,l,s,o=[])=>{let f;let a;let c;let u;if(l.nodeType===1){f=l.getAttribute(I);if(f){a=f.split(".");if(a[0]===s||a[0]==="0"){c=Ce({u:0,F:a[0],V:a[1],B:a[2],W:a[3],T:l.tagName.toLowerCase(),U:l,M:{class:l.className||""}});t.push(c);l.removeAttribute(I);if(!e.R){e.R=[]}const i=c.U.getAttribute("s-sn");if(typeof i==="string"){if(c.T==="slot-fb"){Ie(i,a[2],c,l,e,t,n,r,o)}c.U["s-sn"]=i;c.U.removeAttribute("s-sn")}if(c.W!==void 0){e.R[c.W]=c}e=c;if(r&&c.B==="0"){r[c.W]=c.U}}}if(l.shadowRoot){for(u=l.shadowRoot.childNodes.length-1;u>=0;u--){Ee(e,t,n,r,i,l.shadowRoot.childNodes[u],s,o)}}const v=l.__childNodes||l.childNodes;for(u=v.length-1;u>=0;u--){Ee(e,t,n,r,i,v[u],s,o)}}else if(l.nodeType===8){a=l.nodeValue.split(".");if(a[1]===s||a[1]==="0"){f=a[0];c=Ce({F:a[1],V:a[2],B:a[3],W:a[4]||"0",U:l,M:null,R:null,L:null,P:null,T:null,I:null});if(f===x){c.U=Re(l,3);if(c.U&&c.U.nodeType===3){c.I=c.U.textContent;t.push(c);l.remove();if(s===c.F){if(!e.R){e.R=[]}e.R[c.W]=c}if(r&&c.B==="0"){r[c.W]=c.U}}}else if(f===E){c.U=Re(l,8);if(c.U&&c.U.nodeType===8){t.push(c);l.remove()}}else if(c.F===s){if(f===k){const i=l["s-sn"]=a[5]||"";Ie(i,a[2],c,l,e,t,n,r,o)}else if(f===j){if(r){l.remove()}else{i["s-cr"]=l;l["s-cn"]=true}}}}}else if(e&&e.T==="style"){const t=we(null,l.textContent);t.U=l;t.W="0";e.R=[t]}else{if(l.nodeType===3&&!l.wholeText.trim()&&!l["s-nr"]){l.remove()}}return e};var Ne=(e,t)=>{if(e.nodeType===1){const n=e[N]||e.getAttribute(N);if(n){t.set(n,e)}let r=0;if(e.shadowRoot){for(;r<e.shadowRoot.childNodes.length;r++){Ne(e.shadowRoot.childNodes[r],t)}}const i=e.__childNodes||e.childNodes;for(r=0;r<i.length;r++){Ne(i[r],t)}}else if(e.nodeType===8){const n=e.nodeValue.split(".");if(n[0]===O){t.set(n[1]+"."+n[2],e);e.nodeValue="";e["s-en"]=n[3]}}};var Ce=e=>{const t={u:0,F:null,V:null,B:null,W:"0",U:null,M:null,R:null,L:null,P:null,T:null,I:null};return{...t,...e}};function Ie(e,t,n,r,i,l,s,o,f){r["s-sr"]=true;n.P=e||null;n.T="slot";const a=(i==null?void 0:i.U)?i.U["s-id"]||i.U.getAttribute("s-id"):"";if(o&&P.document){const l=n.U=P.document.createElement(n.T);if(n.P){n.U.setAttribute("name",e)}if(i.U.shadowRoot&&a&&a!==n.F){ae(i.U,"insertBefore")(l,ae(i.U,"children")[0])}else{ae(ae(r,"parentNode"),"insertBefore")(l,r)}Me(f,t,e,r,n.F);r.remove();if(n.B==="0"){o[n.W]=n.U}}else{const l=n.U;const s=a&&a!==n.F&&i.U.shadowRoot;Me(f,t,e,r,s?a:n.F);fe(r);if(s){i.U.insertBefore(l,i.U.children[0])}}l.push(n);s.push(n);if(!i.R){i.R=[]}i.R[n.W]=n}var Me=(e,t,n,r,i)=>{var l,s;let o=r.nextSibling;e[t]=e[t]||[];if(!o||((l=o.nodeValue)==null?void 0:l.startsWith(k+".")))return;do{if(o&&((o["getAttribute"]&&o.getAttribute("slot")||o["s-sn"])===n||n===""&&!o["s-sn"]&&(!o["getAttribute"]||!o.getAttribute("slot"))&&(o.nodeType===8||o.nodeType===3))){o["s-sn"]=n;e[t].push({slot:r,node:o,hostId:i})}o=o==null?void 0:o.nextSibling}while(o&&!((s=o.nodeValue)==null?void 0:s.startsWith(k+".")))};var Re=(e,t)=>{let n=e;do{n=n.nextSibling}while(n&&(n.nodeType!==t||!n.nodeValue));return n};var Le=e=>{const t=z(e);return new RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${t}))(${t}\\b)`,"g")};Le("::slotted");Le(":host");Le(":host-context");var Pe=e=>S.map((t=>t(e))).find((e=>!!e));var Te=e=>S.push(e);var Ue=(e,t,n)=>{if(typeof e==="string"&&e.startsWith(u)){e=K(e);return e}if(e!=null&&!B(e)){if(t&4){{return e==="false"?false:e===""||!!e}}if(t&2){return typeof e==="string"?parseFloat(e):typeof e==="number"?e:NaN}if(t&1){return String(e)}return e}return e};var Ae=e=>{var t;return(t=p(e))==null?void 0:t.$hostElement$};var De=(e,t,n)=>{const r=Ae(e);return{emit:e=>Fe(r,t,{bubbles:true,composed:true,cancelable:true,detail:e})}};var Fe=(e,t,n)=>{const r=T.ce(t,n);e.dispatchEvent(r);return r};var Ve=(e,t,n,r,i,l,s)=>{if(n===r){return}let o=m(e,t);let f=t.toLowerCase();if(t==="class"){const t=e.classList;const i=We(n);let l=We(r);if((e["s-si"]||e["s-sc"])&&s){const n=e["s-sc"]||e["s-si"];l.push(n);i.forEach((e=>{if(e.startsWith(n))l.push(e)}));l=[...new Set(l)].filter((e=>e));t.add(...l)}else{t.remove(...i.filter((e=>e&&!l.includes(e))));t.add(...l.filter((e=>e&&!i.includes(e))))}}else if(t==="style"){{for(const t in n){if(!r||r[t]==null){if(t.includes("-")){e.style.removeProperty(t)}else{e.style[t]=""}}}}for(const t in r){if(!n||r[t]!==n[t]){if(t.includes("-")){e.style.setProperty(t,r[t])}else{e.style[t]=r[t]}}}}else if(t==="key");else if(t==="ref"){if(r){r(e)}}else if(!o&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(m(P,f)){t=f.slice(2)}else{t=f[2]+t.slice(3)}if(n||r){const i=t.endsWith(ze);t=t.replace(_e,"");if(n){T.rel(e,t,n,i)}if(r){T.ael(e,t,r,i)}}}else{const s=B(r);if((o||s&&r!==null)&&!i){try{if(!e.tagName.includes("-")){const i=r==null?"":r;if(t==="list"){o=false}else if(n==null||e[t]!=i){if(typeof e.__lookupSetter__(t)==="function"){e[t]=i}else{e.setAttribute(t,i)}}}else if(e[t]!==r){e[t]=r}}catch(e){}}let a=false;{if(f!==(f=f.replace(/^xlink\:?/,""))){t=f;a=true}}if(r==null||r===false){if(r!==false||e.getAttribute(t)===""){if(a){e.removeAttributeNS(L,t)}else{e.removeAttribute(t)}}}else if((!o||l&4||i)&&!s&&e.nodeType===1){r=r===true?"":r;if(a){e.setAttributeNS(L,t,r)}else{e.setAttribute(t,r)}}}};var Be=/\s/;var We=e=>{if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(Be)};var ze="Capture";var _e=new RegExp(ze+"$");var He=(e,t,n,r)=>{const i=t.U.nodeType===11&&t.U.host?t.U.host:t.U;const l=e&&e.M||{};const s=t.M||{};{for(const e of Ye(Object.keys(l))){if(!(e in s)){Ve(i,e,l[e],void 0,n,t.u,r)}}}for(const e of Ye(Object.keys(s))){Ve(i,e,l[e],s[e],n,t.u,r)}};function Ye(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var qe;var Ge;var Je=false;var Qe=false;var Ke=false;var Xe=false;var Ze=(e,n,r)=>{var i;const o=n.R[r];let f=0;let a;let c;let u;if(!Je){Ke=true;if(o.T==="slot"){o.u|=o.R?2:1}}if(o.I!==null){a=o.U=P.document.createTextNode(o.I)}else if(o.u&1){a=o.U=P.document.createTextNode("");{He(null,o,Xe)}}else{if(!Xe){Xe=o.T==="svg"}if(!P.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.")}a=o.U=P.document.createElementNS(Xe?l:s,!Je&&t.slotRelocation&&o.u&2?"slot-fb":o.T);if(Xe&&o.T==="foreignObject"){Xe=false}{He(null,o,Xe)}if(o.R){for(f=0;f<o.R.length;++f){c=Ze(e,o,f);if(c){a.appendChild(c)}}}{if(o.T==="svg"){Xe=false}else if(a.tagName==="foreignObject"){Xe=true}}}a["s-hn"]=Ge;{if(o.u&(2|1)){a["s-sr"]=true;a["s-cr"]=qe;a["s-sn"]=o.P||"";a["s-rf"]=(i=o.M)==null?void 0:i.ref;fe(a);u=e&&e.R&&e.R[r];if(u&&u.T===o.T&&e.U){{et(e.U,false)}}}}return a};var et=(e,t)=>{T.u|=1;const n=Array.from(e.__childNodes||e.childNodes);for(let e=n.length-1;e>=0;e--){const r=n[e];if(r["s-hn"]!==Ge&&r["s-ol"]){ct(lt(r).parentNode,r,lt(r));r["s-ol"].remove();r["s-ol"]=void 0;r["s-sh"]=void 0;Ke=true}if(t){et(r,t)}}T.u&=-2};var tt=(e,t,n,r,i,l)=>{let s=e["s-cr"]&&e["s-cr"].parentNode||e;let o;if(s.shadowRoot&&s.tagName===Ge){s=s.shadowRoot}for(;i<=l;++i){if(r[i]){o=Ze(null,n,i);if(o){r[i].U=o;ct(s,o,lt(t))}}}};var nt=(e,t,n)=>{for(let r=t;r<=n;++r){const t=e[r];if(t){const e=t.U;at(t);if(e){{Qe=true;if(e["s-ol"]){e["s-ol"].remove()}else{et(e,true)}}e.remove()}}}};var rt=(e,t,n,r,i=false)=>{let l=0;let s=0;let o=0;let f=0;let a=t.length-1;let c=t[0];let u=t[a];let v=r.length-1;let d=r[0];let p=r[v];let h;let $;while(l<=a&&s<=v){if(c==null){c=t[++l]}else if(u==null){u=t[--a]}else if(d==null){d=r[++s]}else if(p==null){p=r[--v]}else if(it(c,d,i)){st(c,d,i);c=t[++l];d=r[++s]}else if(it(u,p,i)){st(u,p,i);u=t[--a];p=r[--v]}else if(it(c,p,i)){if(c.T==="slot"||p.T==="slot"){et(c.U.parentNode,false)}st(c,p,i);ct(e,c.U,u.U.nextSibling);c=t[++l];p=r[--v]}else if(it(u,d,i)){if(c.T==="slot"||p.T==="slot"){et(u.U.parentNode,false)}st(u,d,i);ct(e,u.U,c.U);u=t[--a];d=r[++s]}else{o=-1;{for(f=l;f<=a;++f){if(t[f]&&t[f].L!==null&&t[f].L===d.L){o=f;break}}}if(o>=0){$=t[o];if($.T!==d.T){h=Ze(t&&t[s],n,o)}else{st($,d,i);t[o]=void 0;h=$.U}d=r[++s]}else{h=Ze(t&&t[s],n,s);d=r[++s]}if(h){{ct(lt(c.U).parentNode,h,lt(c.U))}}}}if(l>a){tt(e,r[v+1]==null?null:r[v+1].U,n,r,s,v)}else if(s>v){nt(t,l,a)}};var it=(e,t,n=false)=>{if(e.T===t.T){if(e.T==="slot"){return e.P===t.P}if(!n){return e.L===t.L}if(n&&!e.L&&t.L){e.L=t.L}return true}return false};var lt=e=>e&&e["s-ol"]||e;var st=(e,n,r=false)=>{const i=n.U=e.U;const l=e.R;const s=n.R;const o=n.T;const f=n.I;let a;if(f===null){{Xe=o==="svg"?true:o==="foreignObject"?false:Xe}{He(e,n,Xe,r)}if(l!==null&&s!==null){rt(i,l,n,s,r)}else if(s!==null){if(e.I!==null){i.textContent=""}tt(i,null,n,s,0,s.length-1)}else if(!r&&t.updatable&&l!==null){nt(l,0,l.length-1)}else if(r&&t.updatable&&l!==null&&s===null){n.R=l}if(Xe&&o==="svg"){Xe=false}}else if(a=i["s-cr"]){a.parentNode.textContent=f}else if(e.I!==f){i.data=f}};var ot=[];var ft=e=>{let t;let n;let r;const i=e.__childNodes||e.childNodes;for(const e of i){if(e["s-sr"]&&(t=e["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const i=e["s-sn"];for(r=n.length-1;r>=0;r--){t=n[r];if(!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==e["s-hn"]&&true){if(le(t,i)){let n=ot.find((e=>e._===t));Qe=true;t["s-sn"]=t["s-sn"]||i;if(n){n._["s-sh"]=e["s-hn"];n.H=e}else{t["s-sh"]=e["s-hn"];ot.push({H:e,_:t})}if(t["s-sr"]){ot.map((e=>{if(le(e._,t["s-sn"])){n=ot.find((e=>e._===t));if(n&&!e.H){e.H=n.H}}}))}}else if(!ot.some((e=>e._===t))){ot.push({_:t})}}}}if(e.nodeType===1){ft(e)}}};var at=e=>{{e.M&&e.M.ref&&e.M.ref(null);e.R&&e.R.map(at)}};var ct=(e,t,n)=>{{return e==null?void 0:e.insertBefore(t,n)}};var ut=(e,t,n=false)=>{var r,i,l,s;const o=e.$hostElement$;const f=e.t;const a=e.D||we(null,null);const c=Se(t);const u=c?t:be(null,null,t);Ge=o.tagName;if(f.Y){u.M=u.M||{};f.Y.forEach((([e,t])=>{{u.M[t]=o[e]}}))}if(n&&u.M){for(const e of Object.keys(u.M)){if(o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){u.M[e]=o[e]}}}u.T=null;u.u|=4;e.D=u;u.U=a.U=o.shadowRoot||o;Je=!!(f.u&1)&&!(f.u&128);{qe=o["s-cr"];Qe=false}st(a,u,n);{T.u|=1;if(Ke){ft(u.U);for(const e of ot){const t=e._;if(!t["s-ol"]&&P.document){const e=P.document.createTextNode("");e["s-nr"]=t;ct(t.parentNode,t["s-ol"]=e,t)}}for(const e of ot){const t=e._;const o=e.H;if(o){const e=o.parentNode;let n=o.nextSibling;{let l=(r=t["s-ol"])==null?void 0:r.previousSibling;while(l){let r=(i=l["s-nr"])!=null?i:null;if(r&&r["s-sn"]===t["s-sn"]&&e===(r.__parentNode||r.parentNode)){r=r.nextSibling;while(r===t||(r==null?void 0:r["s-sr"])){r=r==null?void 0:r.nextSibling}if(!r||!r["s-nr"]){n=r;break}}l=l.previousSibling}}const s=t.__parentNode||t.parentNode;const f=t.__nextSibling||t.nextSibling;if(!n&&e!==s||f!==n){if(t!==n){if(!t["s-hn"]&&t["s-ol"]){t["s-hn"]=t["s-ol"].parentNode.nodeName}ct(e,t,n);if(t.nodeType===1&&t.tagName!=="SLOT-FB"){t.hidden=(l=t["s-ih"])!=null?l:false}}}t&&typeof o["s-rf"]==="function"&&o["s-rf"](o)}else{if(t.nodeType===1){if(n){t["s-ih"]=(s=t.hidden)!=null?s:false}t.hidden=true}}}}if(Qe){te(u.U)}T.u&=-2;ot.length=0}qe=void 0};var vt=(e,t)=>{if(t&&!e.q&&t["s-p"]){const n=t["s-p"].push(new Promise((r=>e.q=()=>{t["s-p"].splice(n-1,1);r()})))}};var dt=(e,t)=>{if(e.u&4){e.u|=512;return}vt(e,e.G);const n=()=>pt(e,t);if(t){queueMicrotask((()=>{n()}));return}return n()};var pt=(e,t)=>{const n=e.$hostElement$;const r=ce("scheduleUpdate",e.t.j);const i=e.o;if(!i){throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`)}let l;if(t){{{e.u|=256;if(e.J){e.J.map((([e,t])=>gt(i,e,t,n)));e.J=void 0}}if(e.S.length){e.S.forEach((e=>e(n)))}}l=gt(i,"componentWillLoad",void 0,n)}else{l=gt(i,"componentWillUpdate",void 0,n)}l=ht(l,(()=>gt(i,"componentWillRender",void 0,n)));r();return ht(l,(()=>mt(e,i,t)))};var ht=(e,t)=>$t(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var $t=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var mt=async(e,t,n)=>{var r;const i=e.$hostElement$;const l=ce("update",e.t.j);const s=i["s-rc"];if(n){he(e)}const o=ce("render",e.t.j);{yt(e,t,i,n)}if(s){s.map((e=>e()));i["s-rc"]=void 0}o();l();{const t=(r=i["s-p"])!=null?r:[];const n=()=>bt(e);if(t.length===0){n()}else{Promise.all(t).then(n);e.u|=4;t.length=0}}};var yt=(e,t,n,r)=>{try{t=t.render&&t.render();{e.u|=2}{{{ut(e,t,r)}}}}catch(t){y(t,e.$hostElement$)}return null};var bt=e=>{const t=e.t.j;const n=e.$hostElement$;const r=ce("postUpdate",t);const i=e.o;const l=e.G;gt(i,"componentDidRender",void 0,n);if(!(e.u&64)){e.u|=64;{St(n)}gt(i,"componentDidLoad",void 0,n);r();{e.m(n);if(!l){wt()}}}else{gt(i,"componentDidUpdate",void 0,n);r()}{e.h(n)}{if(e.q){e.q();e.q=void 0}if(e.u&512){V((()=>dt(e,false)))}e.u&=-517}};var wt=t=>{var n;V((()=>Fe(P,"appload",{detail:{namespace:e}})));{if((n=T.A)==null?void 0:n.size){T.A.clear()}}};var gt=(e,t,n,r)=>{if(e&&e[t]){try{return e[t](n)}catch(e){y(e,r)}}return void 0};var St=e=>{var n;return e.classList.add((n=t.hydratedSelectorName)!=null?n:"hydrated")};var jt=(e,t)=>p(e).l.get(t);var Ot=(e,t,n,r)=>{const i=p(e);if(!i){return}if(!i){throw new Error(`Couldn't find host element for "${r.j}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`)}const l=i.$hostElement$;const s=i.l.get(t);const o=i.u;const f=i.o;n=Ue(n,r.i[t][0]);const a=Number.isNaN(s)&&Number.isNaN(n);const c=n!==s&&!a;if((!(o&8)||s===void 0)&&c){i.l.set(t,n);if(f){if(r.K&&o&128){const e=r.K[t];if(e){e.map((e=>{try{f[e](n,s,t)}catch(e){y(e,l)}}))}}if((o&(2|16))===2){if(f.componentShouldUpdate){if(f.componentShouldUpdate(n,s,t)===false){return}}dt(i,false)}}}};var kt=(e,n,r)=>{var i,l;const s=e.prototype;if(n.i||t.propChangeCallback){{if(e.watchers&&!n.K){n.K=e.watchers}if(e.deserializers&&!n.X){n.X=e.deserializers}if(e.serializers&&!n.Z){n.Z=e.serializers}}const o=Object.entries((i=n.i)!=null?i:{});o.map((([e,[t]])=>{if(t&31||r&2&&t&32){const{get:i,set:l}=Object.getOwnPropertyDescriptor(s,e)||{};if(i)n.i[e][0]|=2048;if(l)n.i[e][0]|=4096;if(r&1||!i){Object.defineProperty(s,e,{get(){{if((n.i[e][0]&2048)===0){return jt(this,e)}const t=p(this);const r=t?t.o:s;if(!r)return;return r[e]}},configurable:true,enumerable:true})}Object.defineProperty(s,e,{set(i){const s=p(this);if(!s){return}if(l){const r=t&32?this[e]:s.$hostElement$[e];if(typeof r==="undefined"&&s.l.get(e)){i=s.l.get(e)}l.apply(this,[Ue(i,t)]);i=t&32?this[e]:s.$hostElement$[e];Ot(this,e,i,n);return}{if((r&1)===0||(n.i[e][0]&4096)===0){Ot(this,e,i,n);if(r&1&&!s.o){s.S.push((()=>{if(n.i[e][0]&4096&&s.o[e]!==s.l.get(e)){s.o[e]=i}}))}return}const l=()=>{const r=s.o[e];if(!s.l.get(e)&&r){s.l.set(e,r)}s.o[e]=Ue(i,t);Ot(this,e,s.o[e],n)};if(s.o){l()}else{s.S.push((()=>{l()}))}}}})}else if(r&1&&t&64){Object.defineProperty(s,e,{value(...t){var n;const r=p(this);return(n=r==null?void 0:r.p)==null?void 0:n.then((()=>{var n;return(n=r.o)==null?void 0:n[e](...t)}))}})}}));if(r&1){const r=new Map;s.attributeChangedCallback=function(e,i,l){T.jmp((()=>{var f;const a=r.get(e);const c=p(this);if(this.hasOwnProperty(a)&&t.lazyLoad){l=this[a];delete this[a]}if(s.hasOwnProperty(a)&&typeof this[a]==="number"&&this[a]==l){return}else if(a==null){const t=c==null?void 0:c.u;if(c&&t&&!(t&8)&&t&128&&l!==i){const t=c.o;const r=(f=n.K)==null?void 0:f[e];r==null?void 0:r.forEach((n=>{if(t[n]!=null){t[n].call(t,l,i,e)}}))}return}const u=o.find((([e])=>e===a));if(u&&u[1][0]&4){l=l===null||l==="false"?false:true}const v=Object.getOwnPropertyDescriptor(s,a);if(l!=this[a]&&(!v.get||!!v.set)){this[a]=l}}))};e.observedAttributes=Array.from(new Set([...Object.keys((l=n.K)!=null?l:{}),...o.filter((([e,t])=>t[0]&31)).map((([e,t])=>{var i;const l=t[1]||e;r.set(l,e);if(t[0]&512){(i=n.Y)==null?void 0:i.push([e,l])}return l}))]))}}return e};var xt=async(e,t,n,r)=>{let i;if((t.u&32)===0){t.u|=32;const r=n.O;if(r){const r=w(n,t);if(r&&"then"in r){const e=ue();i=await r;e()}else{i=r}if(!i){throw new Error(`Constructor for "${n.j}#${t.C}" was not found`)}if(!i.isProxied){{n.K=i.watchers;n.Z=i.serializers;n.X=i.deserializers}kt(i,n,2);i.isProxied=true}const l=ce("createInstance",n.j);{t.u|=8}try{new i(t)}catch(t){y(t,e)}{t.u&=-9}{t.u|=128}l();Et(t.o,e)}else{i=e.constructor;const n=e.localName;customElements.whenDefined(n).then((()=>t.u|=128))}if(i&&i.style){let r;if(typeof i.style==="string"){r=i.style}else if(typeof i.style!=="string"){t.C=Pe(e);if(t.C){r=i.style[t.C]}}const l=$e(n,t.C);if(!g.has(l)){const e=ce("registerStyles",n.j);de(l,r,!!(n.u&1));e()}}}const l=t.G;const s=()=>dt(t,true);if(l&&l["s-rc"]){l["s-rc"].push(s)}else{s()}};var Et=(e,t)=>{{gt(e,"connectedCallback",void 0,t)}};var Nt=e=>{if((T.u&1)===0){const t=p(e);if(!t){return}const n=t.t;const r=ce("connectedCallback",n.j);if(!(t.u&1)){t.u|=1;let r;{r=e.getAttribute(N);if(r){if(n.u&1){const t=pe(e.shadowRoot,n,e.getAttribute("s-mode"));e.classList.remove(t+"-h",t+"-s")}xe(e,n.j,r,t)}}if(!r){if(n.u&(4|8)){Ct(e)}}{let n=e;while(n=n.parentNode||n.host){if(n.nodeType===1&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){vt(t,t.G=n);break}}}if(n.i){Object.entries(n.i).map((([t,[n]])=>{if(n&31&&t in e&&e[t]!==Object.prototype[t]){const n=e[t];delete e[t];e[t]=n}}))}{xt(e,t,n)}}else{Pt(e,t,n.ee);if(t==null?void 0:t.o){Et(t.o,e)}else if(t==null?void 0:t.$){t.$.then((()=>Et(t.o,e)))}}r()}};var Ct=e=>{if(!P.document){return}const t=e["s-cr"]=P.document.createComment("");t["s-cn"]=true;ct(e,t,e.firstChild)};var It=(e,t)=>{{gt(e,"disconnectedCallback",void 0,t||e)}};var Mt=async e=>{if((T.u&1)===0){const t=p(e);{if(t==null?void 0:t.te){t.te.map((e=>e()));t.te=void 0}}if(t==null?void 0:t.o){It(t.o,e)}else if(t==null?void 0:t.$){t.$.then((()=>It(t.o,e)))}}if(ve.has(e)){ve.delete(e)}if(e.shadowRoot&&ve.has(e.shadowRoot)){ve.delete(e.shadowRoot)}};var Rt=(e,t={})=>{var n;if(!P.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}const r=ce();const i=[];const l=t.exclude||[];const s=P.customElements;const o=P.document.head;const f=o.querySelector("meta[charset]");const a=P.document.createElement("style");const c=[];let u;let v=true;Object.assign(T,t);T.k=new URL(t.resourcesUrl||"./",P.document.baseURI).href;{T.u|=2}{ye()}let d=false;e.map((e=>{e[1].map((n=>{var r,o,f;const a={u:n[0],j:n[1],i:n[2],ee:n[3]};if(a.u&4){d=true}{a.i=n[2]}{a.ee=n[3]}{a.Y=[]}{a.K=(r=n[4])!=null?r:{};a.Z=(o=n[5])!=null?o:{};a.X=(f=n[6])!=null?f:{}}const h=t.transformTagName?t.transformTagName(a.j):a.j;const m=class extends HTMLElement{constructor(e){super(e);this.hasRegisteredEventListeners=false;e=this;$(e,a);if(a.u&1){{if(!e.shadowRoot){ee.call(e,a)}else{if(e.shadowRoot.mode!=="open"){throw new Error(`Unable to re-use existing shadow root for ${a.j}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}}}}connectedCallback(){const e=p(this);if(!e){return}if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true;Pt(this,e,a.ee)}if(u){clearTimeout(u);u=null}if(v){c.push(this)}else{T.jmp((()=>Nt(this)))}}disconnectedCallback(){T.jmp((()=>Mt(this)));T.raf((()=>{var e;const t=p(this);if(!t){return}const n=c.findIndex((e=>e===this));if(n>-1){c.splice(n,1)}if(((e=t==null?void 0:t.D)==null?void 0:e.U)instanceof Node&&!t.D.U.isConnected){delete t.D.U}}))}componentOnReady(){var e;return(e=p(this))==null?void 0:e.$}};a.O=e[0];if(!l.includes(h)&&!s.get(h)){i.push(h);s.define(h,kt(m,a,1))}}))}));if(i.length>0){if(d){a.textContent+=R}{a.textContent+=i.sort()+M}if(a.innerHTML.length){a.setAttribute("data-styles","");const e=(n=T.N)!=null?n:W(P.document);if(e!=null){a.setAttribute("nonce",e)}o.insertBefore(a,f?f.nextSibling:o.firstChild)}}v=false;if(c.length){c.map((e=>e.connectedCallback()))}else{{T.jmp((()=>u=setTimeout(wt,30)))}}r()};var Lt=(e,t)=>t;var Pt=(e,t,n,r)=>{if(n&&P.document){n.map((([n,r,i])=>{const l=Ut(P.document,e,n);const s=Tt(t,i);const o=At(n);T.ael(l,r,s,o);(t.te=t.te||[]).push((()=>T.rel(l,r,s,o)))}))}};var Tt=(e,t)=>n=>{var r;try{{if(e.u&256){(r=e.o)==null?void 0:r[t](n)}else{(e.J=e.J||[]).push([t,n])}}}catch(t){y(t,e.$hostElement$)}};var Ut=(e,t,n)=>{if(n&8){return P}return t};var At=e=>U?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0;var Dt=e=>T.N=e;export{n as E,Lt as F,ge as H,Te as a,Rt as b,De as c,Ae as g,be as h,A as p,h as r,Dt as s};
6
- //# sourceMappingURL=index-C5dCp7IP.js.map
6
+ //# sourceMappingURL=index-wGO77oPq.js.map