@public-ui/components 4.1.3 → 4.1.4-rc.1

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 (708) 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 +12 -10
  7. package/dist/cjs/{Alert-CKKLYGqx.js → Alert-Cz8hF1Zp.js} +1 -1
  8. package/dist/cjs/{Alert-CKKLYGqx.js.map → Alert-Cz8hF1Zp.js.map} +1 -1
  9. package/dist/cjs/{Collapsible-DSvCmqFl.js → Collapsible-ntgaXnYl.js} +1 -1
  10. package/dist/cjs/{Collapsible-DSvCmqFl.js.map → Collapsible-ntgaXnYl.js.map} +1 -1
  11. package/dist/cjs/{CustomSuggestionsOptionsGroup-B9Zwh9Oc.js → CustomSuggestionsOptionsGroup-CeNOKGiP.js} +1 -1
  12. package/dist/cjs/{CustomSuggestionsOptionsGroup-B9Zwh9Oc.js.map → CustomSuggestionsOptionsGroup-CeNOKGiP.js.map} +1 -1
  13. package/dist/cjs/{FieldControlStateWrapper-BnvW4xjf.js → FieldControlStateWrapper-24WCI7Wu.js} +1 -1
  14. package/dist/cjs/{FieldControlStateWrapper-BnvW4xjf.js.map → FieldControlStateWrapper-24WCI7Wu.js.map} +1 -1
  15. package/dist/cjs/{FormFieldStateWrapper-02bKzB9b.js → FormFieldStateWrapper-CHj8xCox.js} +1 -1
  16. package/dist/cjs/{FormFieldStateWrapper-02bKzB9b.js.map → FormFieldStateWrapper-CHj8xCox.js.map} +1 -1
  17. package/dist/cjs/{Heading-KuyrNAWM.js → Heading-ZeA7jYKQ.js} +1 -1
  18. package/dist/cjs/{Heading-KuyrNAWM.js.map → Heading-ZeA7jYKQ.js.map} +1 -1
  19. package/dist/cjs/{Input-Dsivn3oW.js → Input-DEfyGC4b.js} +1 -1
  20. package/dist/cjs/{Input-Dsivn3oW.js.map → Input-DEfyGC4b.js.map} +1 -1
  21. package/dist/cjs/{InputStateWrapper-BOEgGnfY.js → InputStateWrapper-D7ky_stK.js} +1 -1
  22. package/dist/cjs/{InputStateWrapper-BOEgGnfY.js.map → InputStateWrapper-D7ky_stK.js.map} +1 -1
  23. package/dist/cjs/{app-globals-DXbgzFKT.js → app-globals-C4K7-73F.js} +1 -1
  24. package/dist/cjs/{app-globals-DXbgzFKT.js.map → app-globals-C4K7-73F.js.map} +1 -1
  25. package/dist/cjs/component-6sHxfcnM.js +4 -0
  26. package/dist/cjs/{component-vVFDYe2s.js.map → component-6sHxfcnM.js.map} +1 -1
  27. package/dist/cjs/{component-C3oxe5kE.js → component-DeoFooWq.js} +1 -1
  28. package/dist/cjs/{component-C3oxe5kE.js.map → component-DeoFooWq.js.map} +1 -1
  29. package/dist/cjs/{component-cUozPgXd.js → component-HM8p2KEJ.js} +1 -1
  30. package/dist/cjs/{component-cUozPgXd.js.map → component-HM8p2KEJ.js.map} +1 -1
  31. package/dist/cjs/{controller-D5e1COvL.js → controller-BSG6IOzZ.js} +1 -1
  32. package/dist/cjs/{controller-D5e1COvL.js.map → controller-BSG6IOzZ.js.map} +1 -1
  33. package/dist/cjs/{controller-Cn_BXfiK.js → controller-Cif3yYuW.js} +1 -1
  34. package/dist/cjs/{controller-Cn_BXfiK.js.map → controller-Cif3yYuW.js.map} +1 -1
  35. package/dist/cjs/{controller-CV5bY7gk.js → controller-X0jJMcJW.js} +1 -1
  36. package/dist/cjs/{controller-CV5bY7gk.js.map → controller-X0jJMcJW.js.map} +1 -1
  37. package/dist/cjs/{controller-icon-CfAKmiMf.js → controller-icon-Cam_5Fs2.js} +1 -1
  38. package/dist/cjs/{controller-icon-CfAKmiMf.js.map → controller-icon-Cam_5Fs2.js.map} +1 -1
  39. package/dist/cjs/{controller-CjT6F2SA.js → controller-uIa6no_S.js} +1 -1
  40. package/dist/cjs/{controller-CjT6F2SA.js.map → controller-uIa6no_S.js.map} +1 -1
  41. package/dist/cjs/{dev.utils-BoUTGNyr.js → dev.utils-BaspkCBu.js} +1 -1
  42. package/dist/cjs/{dev.utils-BoUTGNyr.js.map → dev.utils-BaspkCBu.js.map} +1 -1
  43. package/dist/cjs/{devtools-nqp1ItfA.js → devtools-B80EAfxR.js} +1 -1
  44. package/dist/cjs/{devtools-nqp1ItfA.js.map → devtools-B80EAfxR.js.map} +1 -1
  45. package/dist/cjs/index-BTV_8HQr.js +4 -0
  46. package/dist/cjs/index-BTV_8HQr.js.map +1 -0
  47. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  48. package/dist/cjs/kol-abbr.entry.cjs.js.map +1 -1
  49. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  50. package/dist/cjs/kol-accordion.entry.cjs.js.map +1 -1
  51. package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
  52. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  53. package/dist/cjs/kol-alert.entry.cjs.js.map +1 -1
  54. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  55. package/dist/cjs/kol-avatar.entry.cjs.js.map +1 -1
  56. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  57. package/dist/cjs/kol-badge.entry.cjs.js.map +1 -1
  58. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  59. package/dist/cjs/kol-breadcrumb.entry.cjs.js.map +1 -1
  60. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  61. package/dist/cjs/kol-button-link.entry.cjs.js.map +1 -1
  62. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  63. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  64. package/dist/cjs/kol-button.entry.cjs.js.map +1 -1
  65. package/dist/cjs/kol-card-wc.cjs.entry.js +1 -1
  66. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  67. package/dist/cjs/kol-card.entry.cjs.js.map +1 -1
  68. package/dist/cjs/kol-click-button.cjs.entry.js +1 -1
  69. package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-combobox.entry.cjs.js.map +1 -1
  71. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-details.entry.cjs.js.map +1 -1
  73. package/dist/cjs/kol-dialog-wc.cjs.entry.js +1 -1
  74. package/dist/cjs/kol-dialog.cjs.entry.js +1 -1
  75. package/dist/cjs/kol-dialog.entry.cjs.js.map +1 -1
  76. package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
  77. package/dist/cjs/kol-drawer.entry.cjs.js.map +1 -1
  78. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  79. package/dist/cjs/kol-form.entry.cjs.js.map +1 -1
  80. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  81. package/dist/cjs/kol-heading.entry.cjs.js.map +1 -1
  82. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  84. package/dist/cjs/kol-image.entry.cjs.js.map +1 -1
  85. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  86. package/dist/cjs/kol-input-checkbox.entry.cjs.js.map +1 -1
  87. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  88. package/dist/cjs/kol-input-color.entry.cjs.js.map +1 -1
  89. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  90. package/dist/cjs/kol-input-date.entry.cjs.js.map +1 -1
  91. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-input-email.entry.cjs.js.map +1 -1
  93. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  94. package/dist/cjs/kol-input-file.entry.cjs.js.map +1 -1
  95. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  96. package/dist/cjs/kol-input-number.entry.cjs.js.map +1 -1
  97. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  98. package/dist/cjs/kol-input-password.entry.cjs.js.map +1 -1
  99. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  100. package/dist/cjs/kol-input-radio.entry.cjs.js.map +1 -1
  101. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  102. package/dist/cjs/kol-input-range.entry.cjs.js.map +1 -1
  103. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  104. package/dist/cjs/kol-input-text.entry.cjs.js.map +1 -1
  105. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  106. package/dist/cjs/kol-kolibri.entry.cjs.js.map +1 -1
  107. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  108. package/dist/cjs/kol-link-button.entry.cjs.js.map +1 -1
  109. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  110. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  111. package/dist/cjs/kol-link.entry.cjs.js.map +1 -1
  112. package/dist/cjs/kol-meter.cjs.entry.js +1 -1
  113. package/dist/cjs/kol-meter.entry.cjs.js.map +1 -1
  114. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  115. package/dist/cjs/kol-modal.entry.cjs.js.map +1 -1
  116. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  117. package/dist/cjs/kol-nav.entry.cjs.js.map +1 -1
  118. package/dist/cjs/kol-pagination-wc.cjs.entry.js +1 -1
  119. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  120. package/dist/cjs/kol-pagination.entry.cjs.js.map +1 -1
  121. package/dist/cjs/kol-popover-button-wc.cjs.entry.js +1 -1
  122. package/dist/cjs/kol-popover-button.cjs.entry.js +1 -1
  123. package/dist/cjs/kol-popover-button.entry.cjs.js.map +1 -1
  124. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  125. package/dist/cjs/kol-progress.entry.cjs.js.map +1 -1
  126. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  127. package/dist/cjs/kol-quote.entry.cjs.js.map +1 -1
  128. package/dist/cjs/kol-select-wc.cjs.entry.js +1 -1
  129. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  130. package/dist/cjs/kol-select.entry.cjs.js.map +1 -1
  131. package/dist/cjs/kol-single-select.cjs.entry.js +1 -1
  132. package/dist/cjs/kol-single-select.entry.cjs.js.map +1 -1
  133. package/dist/cjs/kol-skeleton.cjs.entry.js +1 -1
  134. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  135. package/dist/cjs/kol-skip-nav.entry.cjs.js.map +1 -1
  136. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  137. package/dist/cjs/kol-spin.entry.cjs.js.map +1 -1
  138. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  139. package/dist/cjs/kol-split-button.entry.cjs.js.map +1 -1
  140. package/dist/cjs/kol-table-settings-wc.cjs.entry.js +1 -1
  141. package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
  142. package/dist/cjs/kol-table-stateful.entry.cjs.js.map +1 -1
  143. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
  144. package/dist/cjs/kol-table-stateless-wc.entry.cjs.js.map +1 -1
  145. package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
  146. package/dist/cjs/kol-table-stateless.entry.cjs.js.map +1 -1
  147. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  148. package/dist/cjs/kol-tabs.entry.cjs.js.map +1 -1
  149. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  150. package/dist/cjs/kol-textarea.entry.cjs.js.map +1 -1
  151. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  152. package/dist/cjs/kol-toast-container.entry.cjs.js.map +1 -1
  153. package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
  154. package/dist/cjs/kol-toolbar.entry.cjs.js.map +1 -1
  155. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  156. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
  157. package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
  158. package/dist/cjs/kol-tree-item.entry.cjs.js.map +1 -1
  159. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  160. package/dist/cjs/kol-tree.cjs.entry.js +1 -1
  161. package/dist/cjs/kol-tree.entry.cjs.js.map +1 -1
  162. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  163. package/dist/cjs/kol-version.entry.cjs.js.map +1 -1
  164. package/dist/cjs/kolibri.cjs.js +1 -1
  165. package/dist/cjs/loader.cjs.js +1 -1
  166. package/dist/cjs/test-component.cjs.entry.js +1 -1
  167. package/dist/cjs/value-number-clamped-L3sRZ5Mt.js +4 -0
  168. package/dist/cjs/value-number-clamped-L3sRZ5Mt.js.map +1 -0
  169. package/dist/components/kol-abbr.js +1 -1
  170. package/dist/components/kol-abbr.js.map +1 -1
  171. package/dist/components/kol-accordion.js +1 -1
  172. package/dist/components/kol-accordion.js.map +1 -1
  173. package/dist/components/kol-alert.js +1 -1
  174. package/dist/components/kol-alert.js.map +1 -1
  175. package/dist/components/kol-avatar.js +1 -1
  176. package/dist/components/kol-avatar.js.map +1 -1
  177. package/dist/components/kol-badge.js +1 -1
  178. package/dist/components/kol-badge.js.map +1 -1
  179. package/dist/components/kol-breadcrumb.js +1 -1
  180. package/dist/components/kol-breadcrumb.js.map +1 -1
  181. package/dist/components/kol-button-link.js +1 -1
  182. package/dist/components/kol-button-link.js.map +1 -1
  183. package/dist/components/kol-button.js +1 -1
  184. package/dist/components/kol-button.js.map +1 -1
  185. package/dist/components/kol-card.js +1 -1
  186. package/dist/components/kol-card.js.map +1 -1
  187. package/dist/components/kol-combobox.js +1 -1
  188. package/dist/components/kol-combobox.js.map +1 -1
  189. package/dist/components/kol-details.js +1 -1
  190. package/dist/components/kol-details.js.map +1 -1
  191. package/dist/components/kol-dialog.js +1 -1
  192. package/dist/components/kol-dialog.js.map +1 -1
  193. package/dist/components/kol-drawer.js +1 -1
  194. package/dist/components/kol-drawer.js.map +1 -1
  195. package/dist/components/kol-form.js +1 -1
  196. package/dist/components/kol-form.js.map +1 -1
  197. package/dist/components/kol-heading.js +1 -1
  198. package/dist/components/kol-heading.js.map +1 -1
  199. package/dist/components/kol-icon.js +1 -1
  200. package/dist/components/kol-image.js +1 -1
  201. package/dist/components/kol-image.js.map +1 -1
  202. package/dist/components/kol-input-checkbox.js +1 -1
  203. package/dist/components/kol-input-checkbox.js.map +1 -1
  204. package/dist/components/kol-input-color.js +1 -1
  205. package/dist/components/kol-input-color.js.map +1 -1
  206. package/dist/components/kol-input-date.js +1 -1
  207. package/dist/components/kol-input-date.js.map +1 -1
  208. package/dist/components/kol-input-email.js +1 -1
  209. package/dist/components/kol-input-email.js.map +1 -1
  210. package/dist/components/kol-input-file.js +1 -1
  211. package/dist/components/kol-input-file.js.map +1 -1
  212. package/dist/components/kol-input-number.js +1 -1
  213. package/dist/components/kol-input-number.js.map +1 -1
  214. package/dist/components/kol-input-password.js +1 -1
  215. package/dist/components/kol-input-password.js.map +1 -1
  216. package/dist/components/kol-input-radio.js +1 -1
  217. package/dist/components/kol-input-radio.js.map +1 -1
  218. package/dist/components/kol-input-range.js +1 -1
  219. package/dist/components/kol-input-range.js.map +1 -1
  220. package/dist/components/kol-input-text.js +1 -1
  221. package/dist/components/kol-input-text.js.map +1 -1
  222. package/dist/components/kol-kolibri.js +1 -1
  223. package/dist/components/kol-kolibri.js.map +1 -1
  224. package/dist/components/kol-link-button.js +1 -1
  225. package/dist/components/kol-link-button.js.map +1 -1
  226. package/dist/components/kol-link.js +1 -1
  227. package/dist/components/kol-link.js.map +1 -1
  228. package/dist/components/kol-meter.js +1 -1
  229. package/dist/components/kol-meter.js.map +1 -1
  230. package/dist/components/kol-modal.js +1 -1
  231. package/dist/components/kol-modal.js.map +1 -1
  232. package/dist/components/kol-nav.js +1 -1
  233. package/dist/components/kol-nav.js.map +1 -1
  234. package/dist/components/kol-pagination.js +1 -1
  235. package/dist/components/kol-pagination.js.map +1 -1
  236. package/dist/components/kol-popover-button.js +1 -1
  237. package/dist/components/kol-popover-button.js.map +1 -1
  238. package/dist/components/kol-progress.js +1 -1
  239. package/dist/components/kol-progress.js.map +1 -1
  240. package/dist/components/kol-quote.js +1 -1
  241. package/dist/components/kol-quote.js.map +1 -1
  242. package/dist/components/kol-select.js +1 -1
  243. package/dist/components/kol-select.js.map +1 -1
  244. package/dist/components/kol-single-select.js +1 -1
  245. package/dist/components/kol-single-select.js.map +1 -1
  246. package/dist/components/kol-skip-nav.js +1 -1
  247. package/dist/components/kol-skip-nav.js.map +1 -1
  248. package/dist/components/kol-spin.js +1 -1
  249. package/dist/components/kol-spin.js.map +1 -1
  250. package/dist/components/kol-split-button.js +1 -1
  251. package/dist/components/kol-split-button.js.map +1 -1
  252. package/dist/components/kol-table-stateful.js +1 -1
  253. package/dist/components/kol-table-stateful.js.map +1 -1
  254. package/dist/components/kol-table-stateless-wc.js +1 -1
  255. package/dist/components/kol-table-stateless-wc.js.map +1 -1
  256. package/dist/components/kol-table-stateless.js +1 -1
  257. package/dist/components/kol-table-stateless.js.map +1 -1
  258. package/dist/components/kol-tabs.js +1 -1
  259. package/dist/components/kol-tabs.js.map +1 -1
  260. package/dist/components/kol-textarea.js +1 -1
  261. package/dist/components/kol-textarea.js.map +1 -1
  262. package/dist/components/kol-toast-container.js +1 -1
  263. package/dist/components/kol-toast-container.js.map +1 -1
  264. package/dist/components/kol-toolbar.js +1 -1
  265. package/dist/components/kol-toolbar.js.map +1 -1
  266. package/dist/components/kol-tree-item.js +1 -1
  267. package/dist/components/kol-tree-item.js.map +1 -1
  268. package/dist/components/kol-tree.js +1 -1
  269. package/dist/components/kol-tree.js.map +1 -1
  270. package/dist/components/kol-version.js +1 -1
  271. package/dist/components/kol-version.js.map +1 -1
  272. package/dist/components/value-number-clamped.js +4 -0
  273. package/dist/components/value-number-clamped.js.map +1 -0
  274. package/dist/esm/{Alert-Cz3oclef.js → Alert-CNbBKPGN.js} +1 -1
  275. package/dist/esm/{Alert-Cz3oclef.js.map → Alert-CNbBKPGN.js.map} +1 -1
  276. package/dist/esm/{Collapsible-Dud93VK6.js → Collapsible-BPzPZuCM.js} +1 -1
  277. package/dist/esm/{Collapsible-Dud93VK6.js.map → Collapsible-BPzPZuCM.js.map} +1 -1
  278. package/dist/esm/{CustomSuggestionsOptionsGroup-DChluZ38.js → CustomSuggestionsOptionsGroup-B1gvir2y.js} +1 -1
  279. package/dist/{kolibri/CustomSuggestionsOptionsGroup-DChluZ38.js.map → esm/CustomSuggestionsOptionsGroup-B1gvir2y.js.map} +1 -1
  280. package/dist/esm/{FieldControlStateWrapper--n2Qrl3k.js → FieldControlStateWrapper-DbW1YqmM.js} +1 -1
  281. package/dist/{kolibri/FieldControlStateWrapper--n2Qrl3k.js.map → esm/FieldControlStateWrapper-DbW1YqmM.js.map} +1 -1
  282. package/dist/esm/{FormFieldStateWrapper-BVrH-o65.js → FormFieldStateWrapper-CWC_T2V6.js} +1 -1
  283. package/dist/{kolibri/FormFieldStateWrapper-BVrH-o65.js.map → esm/FormFieldStateWrapper-CWC_T2V6.js.map} +1 -1
  284. package/dist/esm/{Heading-D23yWoVT.js → Heading-BrSxbA87.js} +1 -1
  285. package/dist/{kolibri/Heading-D23yWoVT.js.map → esm/Heading-BrSxbA87.js.map} +1 -1
  286. package/dist/esm/Input-ClFdRiF1.js +4 -0
  287. package/dist/{kolibri/Input-DJW_wGXE.js.map → esm/Input-ClFdRiF1.js.map} +1 -1
  288. package/dist/esm/{InputStateWrapper-C1ruP5X2.js → InputStateWrapper-BKS2iOfy.js} +1 -1
  289. package/dist/esm/{InputStateWrapper-C1ruP5X2.js.map → InputStateWrapper-BKS2iOfy.js.map} +1 -1
  290. package/dist/esm/{app-globals-BR-uY4cv.js → app-globals-C6Irh5ZH.js} +1 -1
  291. package/dist/esm/{app-globals-BR-uY4cv.js.map → app-globals-C6Irh5ZH.js.map} +1 -1
  292. package/dist/esm/{component-sn_z4L8i.js → component-Bn_ahKfK.js} +1 -1
  293. package/dist/esm/{component-sn_z4L8i.js.map → component-Bn_ahKfK.js.map} +1 -1
  294. package/dist/esm/component-OtHwqg1I.js +4 -0
  295. package/dist/esm/{component-_Y75jltB.js.map → component-OtHwqg1I.js.map} +1 -1
  296. package/dist/esm/{component-uWorUZss.js → component-sZ20spQ6.js} +1 -1
  297. package/dist/esm/{component-uWorUZss.js.map → component-sZ20spQ6.js.map} +1 -1
  298. package/dist/esm/{controller-D8VbW1PO.js → controller-Bq5rujy2.js} +1 -1
  299. package/dist/esm/{controller-D8VbW1PO.js.map → controller-Bq5rujy2.js.map} +1 -1
  300. package/dist/esm/{controller-BhIDd4zH.js → controller-Cf3CGZT-.js} +1 -1
  301. package/dist/esm/{controller-BhIDd4zH.js.map → controller-Cf3CGZT-.js.map} +1 -1
  302. package/dist/esm/{controller-CaEPKcFQ.js → controller-CqJX1McJ.js} +1 -1
  303. package/dist/{kolibri/controller-CaEPKcFQ.js.map → esm/controller-CqJX1McJ.js.map} +1 -1
  304. package/dist/esm/{controller-QShPjHaQ.js → controller-DBUYvuDB.js} +1 -1
  305. package/dist/{kolibri/controller-QShPjHaQ.js.map → esm/controller-DBUYvuDB.js.map} +1 -1
  306. package/dist/esm/{controller-BSBX_tuT.js → controller-Gobc7mv-.js} +1 -1
  307. package/dist/esm/{controller-BSBX_tuT.js.map → controller-Gobc7mv-.js.map} +1 -1
  308. package/dist/esm/{controller-icon-aCgHTEpC.js → controller-icon-CcvojG6N.js} +1 -1
  309. package/dist/esm/{controller-icon-aCgHTEpC.js.map → controller-icon-CcvojG6N.js.map} +1 -1
  310. package/dist/esm/{dev.utils-BKmnA1fy.js → dev.utils-UUgQWQxj.js} +1 -1
  311. package/dist/esm/{dev.utils-BKmnA1fy.js.map → dev.utils-UUgQWQxj.js.map} +1 -1
  312. package/dist/esm/{devtools-DBrT-ILi.js → devtools-CpN8MIei.js} +1 -1
  313. package/dist/{kolibri/devtools-DBrT-ILi.js.map → esm/devtools-CpN8MIei.js.map} +1 -1
  314. package/dist/esm/index-Bc-dkuUs.js +4 -0
  315. package/dist/esm/index-Bc-dkuUs.js.map +1 -0
  316. package/dist/esm/kol-abbr.entry.js +1 -1
  317. package/dist/esm/kol-abbr.entry.js.map +1 -1
  318. package/dist/esm/kol-accordion.entry.js +1 -1
  319. package/dist/esm/kol-accordion.entry.js.map +1 -1
  320. package/dist/esm/kol-alert-wc.entry.js +1 -1
  321. package/dist/esm/kol-alert.entry.js +1 -1
  322. package/dist/esm/kol-alert.entry.js.map +1 -1
  323. package/dist/esm/kol-avatar.entry.js +1 -1
  324. package/dist/esm/kol-avatar.entry.js.map +1 -1
  325. package/dist/esm/kol-badge.entry.js +1 -1
  326. package/dist/esm/kol-badge.entry.js.map +1 -1
  327. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  328. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  329. package/dist/esm/kol-button-link.entry.js +1 -1
  330. package/dist/esm/kol-button-link.entry.js.map +1 -1
  331. package/dist/esm/kol-button-wc.entry.js +1 -1
  332. package/dist/esm/kol-button.entry.js +1 -1
  333. package/dist/esm/kol-button.entry.js.map +1 -1
  334. package/dist/esm/kol-card-wc.entry.js +1 -1
  335. package/dist/esm/kol-card.entry.js +1 -1
  336. package/dist/esm/kol-card.entry.js.map +1 -1
  337. package/dist/esm/kol-click-button.entry.js +1 -1
  338. package/dist/esm/kol-combobox.entry.js +1 -1
  339. package/dist/esm/kol-combobox.entry.js.map +1 -1
  340. package/dist/esm/kol-details.entry.js +1 -1
  341. package/dist/esm/kol-details.entry.js.map +1 -1
  342. package/dist/esm/kol-dialog-wc.entry.js +1 -1
  343. package/dist/esm/kol-dialog.entry.js +1 -1
  344. package/dist/esm/kol-dialog.entry.js.map +1 -1
  345. package/dist/esm/kol-drawer.entry.js +1 -1
  346. package/dist/esm/kol-drawer.entry.js.map +1 -1
  347. package/dist/esm/kol-form.entry.js +1 -1
  348. package/dist/esm/kol-form.entry.js.map +1 -1
  349. package/dist/esm/kol-heading.entry.js +1 -1
  350. package/dist/esm/kol-heading.entry.js.map +1 -1
  351. package/dist/esm/kol-icon.entry.js +1 -1
  352. package/dist/esm/kol-image.entry.js +1 -1
  353. package/dist/esm/kol-image.entry.js.map +1 -1
  354. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  355. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  356. package/dist/esm/kol-input-color.entry.js +1 -1
  357. package/dist/esm/kol-input-color.entry.js.map +1 -1
  358. package/dist/esm/kol-input-date.entry.js +1 -1
  359. package/dist/esm/kol-input-date.entry.js.map +1 -1
  360. package/dist/esm/kol-input-email.entry.js +1 -1
  361. package/dist/esm/kol-input-email.entry.js.map +1 -1
  362. package/dist/esm/kol-input-file.entry.js +1 -1
  363. package/dist/esm/kol-input-file.entry.js.map +1 -1
  364. package/dist/esm/kol-input-number.entry.js +1 -1
  365. package/dist/esm/kol-input-number.entry.js.map +1 -1
  366. package/dist/esm/kol-input-password.entry.js +1 -1
  367. package/dist/esm/kol-input-password.entry.js.map +1 -1
  368. package/dist/esm/kol-input-radio.entry.js +1 -1
  369. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  370. package/dist/esm/kol-input-range.entry.js +1 -1
  371. package/dist/esm/kol-input-range.entry.js.map +1 -1
  372. package/dist/esm/kol-input-text.entry.js +1 -1
  373. package/dist/esm/kol-input-text.entry.js.map +1 -1
  374. package/dist/esm/kol-kolibri.entry.js +1 -1
  375. package/dist/esm/kol-kolibri.entry.js.map +1 -1
  376. package/dist/esm/kol-link-button.entry.js +1 -1
  377. package/dist/esm/kol-link-button.entry.js.map +1 -1
  378. package/dist/esm/kol-link-wc.entry.js +1 -1
  379. package/dist/esm/kol-link.entry.js +1 -1
  380. package/dist/esm/kol-link.entry.js.map +1 -1
  381. package/dist/esm/kol-meter.entry.js +1 -1
  382. package/dist/esm/kol-meter.entry.js.map +1 -1
  383. package/dist/esm/kol-modal.entry.js +1 -1
  384. package/dist/esm/kol-modal.entry.js.map +1 -1
  385. package/dist/esm/kol-nav.entry.js +1 -1
  386. package/dist/esm/kol-nav.entry.js.map +1 -1
  387. package/dist/esm/kol-pagination-wc.entry.js +1 -1
  388. package/dist/esm/kol-pagination.entry.js +1 -1
  389. package/dist/esm/kol-pagination.entry.js.map +1 -1
  390. package/dist/esm/kol-popover-button-wc.entry.js +1 -1
  391. package/dist/esm/kol-popover-button.entry.js +1 -1
  392. package/dist/esm/kol-popover-button.entry.js.map +1 -1
  393. package/dist/esm/kol-progress.entry.js +1 -1
  394. package/dist/esm/kol-progress.entry.js.map +1 -1
  395. package/dist/esm/kol-quote.entry.js +1 -1
  396. package/dist/esm/kol-quote.entry.js.map +1 -1
  397. package/dist/esm/kol-select-wc.entry.js +1 -1
  398. package/dist/esm/kol-select.entry.js +1 -1
  399. package/dist/esm/kol-select.entry.js.map +1 -1
  400. package/dist/esm/kol-single-select.entry.js +1 -1
  401. package/dist/esm/kol-single-select.entry.js.map +1 -1
  402. package/dist/esm/kol-skeleton.entry.js +1 -1
  403. package/dist/esm/kol-skip-nav.entry.js +1 -1
  404. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  405. package/dist/esm/kol-spin.entry.js +1 -1
  406. package/dist/esm/kol-spin.entry.js.map +1 -1
  407. package/dist/esm/kol-split-button.entry.js +1 -1
  408. package/dist/esm/kol-split-button.entry.js.map +1 -1
  409. package/dist/esm/kol-table-settings-wc.entry.js +1 -1
  410. package/dist/esm/kol-table-stateful.entry.js +1 -1
  411. package/dist/esm/kol-table-stateful.entry.js.map +1 -1
  412. package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
  413. package/dist/esm/kol-table-stateless-wc.entry.js.map +1 -1
  414. package/dist/esm/kol-table-stateless.entry.js +1 -1
  415. package/dist/esm/kol-table-stateless.entry.js.map +1 -1
  416. package/dist/esm/kol-tabs.entry.js +1 -1
  417. package/dist/esm/kol-tabs.entry.js.map +1 -1
  418. package/dist/esm/kol-textarea.entry.js +1 -1
  419. package/dist/esm/kol-textarea.entry.js.map +1 -1
  420. package/dist/esm/kol-toast-container.entry.js +1 -1
  421. package/dist/esm/kol-toast-container.entry.js.map +1 -1
  422. package/dist/esm/kol-toolbar.entry.js +1 -1
  423. package/dist/esm/kol-toolbar.entry.js.map +1 -1
  424. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  425. package/dist/esm/kol-tree-item-wc.entry.js +1 -1
  426. package/dist/esm/kol-tree-item.entry.js +1 -1
  427. package/dist/esm/kol-tree-item.entry.js.map +1 -1
  428. package/dist/esm/kol-tree-wc.entry.js +1 -1
  429. package/dist/esm/kol-tree.entry.js +1 -1
  430. package/dist/esm/kol-tree.entry.js.map +1 -1
  431. package/dist/esm/kol-version.entry.js +1 -1
  432. package/dist/esm/kol-version.entry.js.map +1 -1
  433. package/dist/esm/kolibri.js +1 -1
  434. package/dist/esm/{label-BEOW9ltS.js → label-DK7sT-k5.js} +1 -1
  435. package/dist/esm/{label-BEOW9ltS.js.map → label-DK7sT-k5.js.map} +1 -1
  436. package/dist/esm/{level-Bwrb_jzT.js → level-C9aFQZkd.js} +1 -1
  437. package/dist/esm/{level-Bwrb_jzT.js.map → level-C9aFQZkd.js.map} +1 -1
  438. package/dist/esm/loader.js +1 -1
  439. package/dist/esm/{normalizers-DnkJhVYZ.js → normalizers-C14RETgU.js} +1 -1
  440. package/dist/{kolibri/normalizers-DnkJhVYZ.js.map → esm/normalizers-C14RETgU.js.map} +1 -1
  441. package/dist/esm/{src-D1LGDerl.js → src-5egLLGof.js} +1 -1
  442. package/dist/esm/{src-D1LGDerl.js.map → src-5egLLGof.js.map} +1 -1
  443. package/dist/esm/test-component.entry.js +1 -1
  444. package/dist/esm/{validation-BytKl095.js → validation-CH4ZrnXs.js} +1 -1
  445. package/dist/esm/{validation-BytKl095.js.map → validation-CH4ZrnXs.js.map} +1 -1
  446. package/dist/esm/value-number-clamped-_HbNn448.js +4 -0
  447. package/dist/esm/value-number-clamped-_HbNn448.js.map +1 -0
  448. package/dist/esm/{variant-quote-CHD0qMkY.js → variant-quote-DI6q8gPw.js} +1 -1
  449. package/dist/esm/{variant-quote-CHD0qMkY.js.map → variant-quote-DI6q8gPw.js.map} +1 -1
  450. package/dist/kolibri/{Alert-Cz3oclef.js → Alert-CNbBKPGN.js} +1 -1
  451. package/dist/kolibri/{Alert-Cz3oclef.js.map → Alert-CNbBKPGN.js.map} +1 -1
  452. package/dist/kolibri/{Collapsible-Dud93VK6.js → Collapsible-BPzPZuCM.js} +1 -1
  453. package/dist/kolibri/{Collapsible-Dud93VK6.js.map → Collapsible-BPzPZuCM.js.map} +1 -1
  454. package/dist/kolibri/{CustomSuggestionsOptionsGroup-DChluZ38.js → CustomSuggestionsOptionsGroup-B1gvir2y.js} +1 -1
  455. package/dist/{esm/CustomSuggestionsOptionsGroup-DChluZ38.js.map → kolibri/CustomSuggestionsOptionsGroup-B1gvir2y.js.map} +1 -1
  456. package/dist/kolibri/FieldControlStateWrapper-DbW1YqmM.js +4 -0
  457. package/dist/{esm/FieldControlStateWrapper--n2Qrl3k.js.map → kolibri/FieldControlStateWrapper-DbW1YqmM.js.map} +1 -1
  458. package/dist/kolibri/FormFieldStateWrapper-CWC_T2V6.js +4 -0
  459. package/dist/{esm/FormFieldStateWrapper-BVrH-o65.js.map → kolibri/FormFieldStateWrapper-CWC_T2V6.js.map} +1 -1
  460. package/dist/kolibri/{Heading-D23yWoVT.js → Heading-BrSxbA87.js} +1 -1
  461. package/dist/{esm/Heading-D23yWoVT.js.map → kolibri/Heading-BrSxbA87.js.map} +1 -1
  462. package/dist/kolibri/{Input-DJW_wGXE.js → Input-ClFdRiF1.js} +1 -1
  463. package/dist/{esm/Input-DJW_wGXE.js.map → kolibri/Input-ClFdRiF1.js.map} +1 -1
  464. package/dist/kolibri/InputStateWrapper-BKS2iOfy.js +4 -0
  465. package/dist/kolibri/{InputStateWrapper-C1ruP5X2.js.map → InputStateWrapper-BKS2iOfy.js.map} +1 -1
  466. package/dist/kolibri/app-globals-C6Irh5ZH.js +4 -0
  467. package/dist/kolibri/{app-globals-BR-uY4cv.js.map → app-globals-C6Irh5ZH.js.map} +1 -1
  468. package/dist/kolibri/{component-sn_z4L8i.js → component-Bn_ahKfK.js} +1 -1
  469. package/dist/kolibri/{component-sn_z4L8i.js.map → component-Bn_ahKfK.js.map} +1 -1
  470. package/dist/kolibri/component-OtHwqg1I.js +4 -0
  471. package/dist/kolibri/{component-_Y75jltB.js.map → component-OtHwqg1I.js.map} +1 -1
  472. package/dist/kolibri/component-sZ20spQ6.js +4 -0
  473. package/dist/kolibri/{component-uWorUZss.js.map → component-sZ20spQ6.js.map} +1 -1
  474. package/dist/kolibri/controller-Bq5rujy2.js +4 -0
  475. package/dist/kolibri/{controller-D8VbW1PO.js.map → controller-Bq5rujy2.js.map} +1 -1
  476. package/dist/kolibri/{controller-BhIDd4zH.js → controller-Cf3CGZT-.js} +1 -1
  477. package/dist/kolibri/{controller-BhIDd4zH.js.map → controller-Cf3CGZT-.js.map} +1 -1
  478. package/dist/kolibri/{controller-CaEPKcFQ.js → controller-CqJX1McJ.js} +1 -1
  479. package/dist/{esm/controller-CaEPKcFQ.js.map → kolibri/controller-CqJX1McJ.js.map} +1 -1
  480. package/dist/kolibri/{controller-QShPjHaQ.js → controller-DBUYvuDB.js} +1 -1
  481. package/dist/{esm/controller-QShPjHaQ.js.map → kolibri/controller-DBUYvuDB.js.map} +1 -1
  482. package/dist/kolibri/{controller-BSBX_tuT.js → controller-Gobc7mv-.js} +1 -1
  483. package/dist/kolibri/{controller-BSBX_tuT.js.map → controller-Gobc7mv-.js.map} +1 -1
  484. package/dist/kolibri/controller-icon-CcvojG6N.js +4 -0
  485. package/dist/kolibri/{controller-icon-aCgHTEpC.js.map → controller-icon-CcvojG6N.js.map} +1 -1
  486. package/dist/kolibri/{dev.utils-BKmnA1fy.js → dev.utils-UUgQWQxj.js} +1 -1
  487. package/dist/kolibri/{dev.utils-BKmnA1fy.js.map → dev.utils-UUgQWQxj.js.map} +1 -1
  488. package/dist/kolibri/{devtools-DBrT-ILi.js → devtools-CpN8MIei.js} +1 -1
  489. package/dist/{esm/devtools-DBrT-ILi.js.map → kolibri/devtools-CpN8MIei.js.map} +1 -1
  490. package/dist/kolibri/{index-B7tv7olz.js → index-Bc-dkuUs.js} +1 -1
  491. package/dist/kolibri/index-Bc-dkuUs.js.map +1 -0
  492. package/dist/kolibri/kol-abbr.entry.esm.js.map +1 -1
  493. package/dist/kolibri/kol-abbr.entry.js +1 -1
  494. package/dist/kolibri/kol-abbr.entry.js.map +1 -1
  495. package/dist/kolibri/kol-accordion.entry.esm.js.map +1 -1
  496. package/dist/kolibri/kol-accordion.entry.js +1 -1
  497. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  498. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  499. package/dist/kolibri/kol-alert.entry.esm.js.map +1 -1
  500. package/dist/kolibri/kol-alert.entry.js +1 -1
  501. package/dist/kolibri/kol-alert.entry.js.map +1 -1
  502. package/dist/kolibri/kol-avatar.entry.esm.js.map +1 -1
  503. package/dist/kolibri/kol-avatar.entry.js +1 -1
  504. package/dist/kolibri/kol-avatar.entry.js.map +1 -1
  505. package/dist/kolibri/kol-badge.entry.esm.js.map +1 -1
  506. package/dist/kolibri/kol-badge.entry.js +1 -1
  507. package/dist/kolibri/kol-badge.entry.js.map +1 -1
  508. package/dist/kolibri/kol-breadcrumb.entry.esm.js.map +1 -1
  509. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  510. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  511. package/dist/kolibri/kol-button-link.entry.esm.js.map +1 -1
  512. package/dist/kolibri/kol-button-link.entry.js +1 -1
  513. package/dist/kolibri/kol-button-link.entry.js.map +1 -1
  514. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  515. package/dist/kolibri/kol-button.entry.esm.js.map +1 -1
  516. package/dist/kolibri/kol-button.entry.js +1 -1
  517. package/dist/kolibri/kol-button.entry.js.map +1 -1
  518. package/dist/kolibri/kol-card-wc.entry.js +1 -1
  519. package/dist/kolibri/kol-card.entry.esm.js.map +1 -1
  520. package/dist/kolibri/kol-card.entry.js +1 -1
  521. package/dist/kolibri/kol-card.entry.js.map +1 -1
  522. package/dist/kolibri/kol-click-button.entry.js +1 -1
  523. package/dist/kolibri/kol-combobox.entry.esm.js.map +1 -1
  524. package/dist/kolibri/kol-combobox.entry.js +1 -1
  525. package/dist/kolibri/kol-combobox.entry.js.map +1 -1
  526. package/dist/kolibri/kol-details.entry.esm.js.map +1 -1
  527. package/dist/kolibri/kol-details.entry.js +1 -1
  528. package/dist/kolibri/kol-details.entry.js.map +1 -1
  529. package/dist/kolibri/kol-dialog-wc.entry.js +1 -1
  530. package/dist/kolibri/kol-dialog.entry.esm.js.map +1 -1
  531. package/dist/kolibri/kol-dialog.entry.js +1 -1
  532. package/dist/kolibri/kol-dialog.entry.js.map +1 -1
  533. package/dist/kolibri/kol-drawer.entry.esm.js.map +1 -1
  534. package/dist/kolibri/kol-drawer.entry.js +1 -1
  535. package/dist/kolibri/kol-drawer.entry.js.map +1 -1
  536. package/dist/kolibri/kol-form.entry.esm.js.map +1 -1
  537. package/dist/kolibri/kol-form.entry.js +1 -1
  538. package/dist/kolibri/kol-form.entry.js.map +1 -1
  539. package/dist/kolibri/kol-heading.entry.esm.js.map +1 -1
  540. package/dist/kolibri/kol-heading.entry.js +1 -1
  541. package/dist/kolibri/kol-heading.entry.js.map +1 -1
  542. package/dist/kolibri/kol-icon.entry.js +1 -1
  543. package/dist/kolibri/kol-image.entry.esm.js.map +1 -1
  544. package/dist/kolibri/kol-image.entry.js +1 -1
  545. package/dist/kolibri/kol-image.entry.js.map +1 -1
  546. package/dist/kolibri/kol-input-checkbox.entry.esm.js.map +1 -1
  547. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  548. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  549. package/dist/kolibri/kol-input-color.entry.esm.js.map +1 -1
  550. package/dist/kolibri/kol-input-color.entry.js +1 -1
  551. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  552. package/dist/kolibri/kol-input-date.entry.esm.js.map +1 -1
  553. package/dist/kolibri/kol-input-date.entry.js +1 -1
  554. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  555. package/dist/kolibri/kol-input-email.entry.esm.js.map +1 -1
  556. package/dist/kolibri/kol-input-email.entry.js +1 -1
  557. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  558. package/dist/kolibri/kol-input-file.entry.esm.js.map +1 -1
  559. package/dist/kolibri/kol-input-file.entry.js +1 -1
  560. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  561. package/dist/kolibri/kol-input-number.entry.esm.js.map +1 -1
  562. package/dist/kolibri/kol-input-number.entry.js +1 -1
  563. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  564. package/dist/kolibri/kol-input-password.entry.esm.js.map +1 -1
  565. package/dist/kolibri/kol-input-password.entry.js +1 -1
  566. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  567. package/dist/kolibri/kol-input-radio.entry.esm.js.map +1 -1
  568. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  569. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  570. package/dist/kolibri/kol-input-range.entry.esm.js.map +1 -1
  571. package/dist/kolibri/kol-input-range.entry.js +1 -1
  572. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  573. package/dist/kolibri/kol-input-text.entry.esm.js.map +1 -1
  574. package/dist/kolibri/kol-input-text.entry.js +1 -1
  575. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  576. package/dist/kolibri/kol-kolibri.entry.esm.js.map +1 -1
  577. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  578. package/dist/kolibri/kol-kolibri.entry.js.map +1 -1
  579. package/dist/kolibri/kol-link-button.entry.esm.js.map +1 -1
  580. package/dist/kolibri/kol-link-button.entry.js +1 -1
  581. package/dist/kolibri/kol-link-button.entry.js.map +1 -1
  582. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  583. package/dist/kolibri/kol-link.entry.esm.js.map +1 -1
  584. package/dist/kolibri/kol-link.entry.js +1 -1
  585. package/dist/kolibri/kol-link.entry.js.map +1 -1
  586. package/dist/kolibri/kol-meter.entry.esm.js.map +1 -1
  587. package/dist/kolibri/kol-meter.entry.js +1 -1
  588. package/dist/kolibri/kol-meter.entry.js.map +1 -1
  589. package/dist/kolibri/kol-modal.entry.esm.js.map +1 -1
  590. package/dist/kolibri/kol-modal.entry.js +1 -1
  591. package/dist/kolibri/kol-modal.entry.js.map +1 -1
  592. package/dist/kolibri/kol-nav.entry.esm.js.map +1 -1
  593. package/dist/kolibri/kol-nav.entry.js +1 -1
  594. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  595. package/dist/kolibri/kol-pagination-wc.entry.js +1 -1
  596. package/dist/kolibri/kol-pagination.entry.esm.js.map +1 -1
  597. package/dist/kolibri/kol-pagination.entry.js +1 -1
  598. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  599. package/dist/kolibri/kol-popover-button-wc.entry.js +1 -1
  600. package/dist/kolibri/kol-popover-button.entry.esm.js.map +1 -1
  601. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  602. package/dist/kolibri/kol-popover-button.entry.js.map +1 -1
  603. package/dist/kolibri/kol-progress.entry.esm.js.map +1 -1
  604. package/dist/kolibri/kol-progress.entry.js +1 -1
  605. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  606. package/dist/kolibri/kol-quote.entry.esm.js.map +1 -1
  607. package/dist/kolibri/kol-quote.entry.js +1 -1
  608. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  609. package/dist/kolibri/kol-select-wc.entry.js +1 -1
  610. package/dist/kolibri/kol-select.entry.esm.js.map +1 -1
  611. package/dist/kolibri/kol-select.entry.js +1 -1
  612. package/dist/kolibri/kol-select.entry.js.map +1 -1
  613. package/dist/kolibri/kol-single-select.entry.esm.js.map +1 -1
  614. package/dist/kolibri/kol-single-select.entry.js +1 -1
  615. package/dist/kolibri/kol-single-select.entry.js.map +1 -1
  616. package/dist/kolibri/kol-skeleton.entry.js +1 -1
  617. package/dist/kolibri/kol-skip-nav.entry.esm.js.map +1 -1
  618. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  619. package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
  620. package/dist/kolibri/kol-spin.entry.esm.js.map +1 -1
  621. package/dist/kolibri/kol-spin.entry.js +1 -1
  622. package/dist/kolibri/kol-spin.entry.js.map +1 -1
  623. package/dist/kolibri/kol-split-button.entry.esm.js.map +1 -1
  624. package/dist/kolibri/kol-split-button.entry.js +1 -1
  625. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  626. package/dist/kolibri/kol-table-settings-wc.entry.js +1 -1
  627. package/dist/kolibri/kol-table-stateful.entry.esm.js.map +1 -1
  628. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  629. package/dist/kolibri/kol-table-stateful.entry.js.map +1 -1
  630. package/dist/kolibri/kol-table-stateless-wc.entry.esm.js.map +1 -1
  631. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  632. package/dist/kolibri/kol-table-stateless-wc.entry.js.map +1 -1
  633. package/dist/kolibri/kol-table-stateless.entry.esm.js.map +1 -1
  634. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  635. package/dist/kolibri/kol-table-stateless.entry.js.map +1 -1
  636. package/dist/kolibri/kol-tabs.entry.esm.js.map +1 -1
  637. package/dist/kolibri/kol-tabs.entry.js +1 -1
  638. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  639. package/dist/kolibri/kol-textarea.entry.esm.js.map +1 -1
  640. package/dist/kolibri/kol-textarea.entry.js +1 -1
  641. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  642. package/dist/kolibri/kol-toast-container.entry.esm.js.map +1 -1
  643. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  644. package/dist/kolibri/kol-toast-container.entry.js.map +1 -1
  645. package/dist/kolibri/kol-toolbar.entry.esm.js.map +1 -1
  646. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  647. package/dist/kolibri/kol-toolbar.entry.js.map +1 -1
  648. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  649. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  650. package/dist/kolibri/kol-tree-item.entry.esm.js.map +1 -1
  651. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  652. package/dist/kolibri/kol-tree-item.entry.js.map +1 -1
  653. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  654. package/dist/kolibri/kol-tree.entry.esm.js.map +1 -1
  655. package/dist/kolibri/kol-tree.entry.js +1 -1
  656. package/dist/kolibri/kol-tree.entry.js.map +1 -1
  657. package/dist/kolibri/kol-version.entry.esm.js.map +1 -1
  658. package/dist/kolibri/kol-version.entry.js +1 -1
  659. package/dist/kolibri/kol-version.entry.js.map +1 -1
  660. package/dist/kolibri/kolibri.esm.js +1 -1
  661. package/dist/kolibri/{label-BEOW9ltS.js → label-DK7sT-k5.js} +1 -1
  662. package/dist/kolibri/{label-BEOW9ltS.js.map → label-DK7sT-k5.js.map} +1 -1
  663. package/dist/kolibri/{level-Bwrb_jzT.js → level-C9aFQZkd.js} +1 -1
  664. package/dist/kolibri/{level-Bwrb_jzT.js.map → level-C9aFQZkd.js.map} +1 -1
  665. package/dist/kolibri/{normalizers-DnkJhVYZ.js → normalizers-C14RETgU.js} +1 -1
  666. package/dist/{esm/normalizers-DnkJhVYZ.js.map → kolibri/normalizers-C14RETgU.js.map} +1 -1
  667. package/dist/kolibri/src-5egLLGof.js +4 -0
  668. package/dist/kolibri/{src-D1LGDerl.js.map → src-5egLLGof.js.map} +1 -1
  669. package/dist/kolibri/test-component.entry.js +1 -1
  670. package/dist/kolibri/validation-CH4ZrnXs.js +4 -0
  671. package/dist/kolibri/{validation-BytKl095.js.map → validation-CH4ZrnXs.js.map} +1 -1
  672. package/dist/kolibri/value-number-clamped-_HbNn448.js +4 -0
  673. package/dist/kolibri/value-number-clamped-_HbNn448.js.map +1 -0
  674. package/dist/kolibri/variant-quote-DI6q8gPw.js +4 -0
  675. package/dist/kolibri/{variant-quote-CHD0qMkY.js.map → variant-quote-DI6q8gPw.js.map} +1 -1
  676. package/dist/types/components/meter/component.d.ts +1 -1
  677. package/dist/types/components/table-stateless/component.d.ts +1 -0
  678. package/dist/types/components.d.ts +20 -16
  679. package/doc/meter.md +11 -11
  680. package/package.json +9 -9
  681. package/vscode-custom-data.json +7 -7
  682. package/dist/cjs/component-vVFDYe2s.js +0 -4
  683. package/dist/cjs/index-BiQK_MbU.js +0 -4
  684. package/dist/cjs/index-BiQK_MbU.js.map +0 -1
  685. package/dist/cjs/unit--BgFwr6T.js +0 -4
  686. package/dist/cjs/unit--BgFwr6T.js.map +0 -1
  687. package/dist/components/unit.js +0 -4
  688. package/dist/components/unit.js.map +0 -1
  689. package/dist/esm/Input-DJW_wGXE.js +0 -4
  690. package/dist/esm/component-_Y75jltB.js +0 -4
  691. package/dist/esm/index-B7tv7olz.js +0 -4
  692. package/dist/esm/index-B7tv7olz.js.map +0 -1
  693. package/dist/esm/unit-eRQuaHYy.js +0 -4
  694. package/dist/esm/unit-eRQuaHYy.js.map +0 -1
  695. package/dist/kolibri/FieldControlStateWrapper--n2Qrl3k.js +0 -4
  696. package/dist/kolibri/FormFieldStateWrapper-BVrH-o65.js +0 -4
  697. package/dist/kolibri/InputStateWrapper-C1ruP5X2.js +0 -4
  698. package/dist/kolibri/app-globals-BR-uY4cv.js +0 -4
  699. package/dist/kolibri/component-_Y75jltB.js +0 -4
  700. package/dist/kolibri/component-uWorUZss.js +0 -4
  701. package/dist/kolibri/controller-D8VbW1PO.js +0 -4
  702. package/dist/kolibri/controller-icon-aCgHTEpC.js +0 -4
  703. package/dist/kolibri/index-B7tv7olz.js.map +0 -1
  704. package/dist/kolibri/src-D1LGDerl.js +0 -4
  705. package/dist/kolibri/unit-eRQuaHYy.js +0 -4
  706. package/dist/kolibri/unit-eRQuaHYy.js.map +0 -1
  707. package/dist/kolibri/validation-BytKl095.js +0 -4
  708. package/dist/kolibri/variant-quote-CHD0qMkY.js +0 -4
@@ -1 +1 @@
1
- {"version":3,"file":"kol-abbr.entry.esm.js","sources":["src/components/abbr/style.scss?tag=kol-abbr&mode=default&encapsulation=shadow","src/components/abbr/shadow.tsx"],"sourcesContent":["@use '../@shared/global' as *;\n@use '../@shared/abbr.mixin' as *;\n@use '../tooltip/style.scss' as *;\n\n@layer kol-component {\n\t@include kol-abbr-styles();\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, h, Host, Prop, State, Watch } from '@stencil/core';\nimport { BaseWebComponent } from '../../internal/functional-components/base-web-component';\nimport { TooltipFC } from '../../internal/functional-components/tooltip/component';\nimport { TooltipController } from '../../internal/functional-components/tooltip/controller';\nimport type { AbbrAPI, AbbrStates, LabelPropType } from '../../schema';\nimport { validateLabel } from '../../schema';\n\n/**\n * The **Abbr** component implements the HTML tag `abbr` with an accessible tooltip.\n * The tooltip for the description is displayed and read aloud when the **Abbr** component is focused or hovered.\n *\n * @slot - The abbreviation (short form).\n */\n@Component({\n\ttag: 'kol-abbr',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolAbbr implements AbbrAPI {\n\tprivate abbrRef?: HTMLElement;\n\n\tprivate readonly tooltipCtrl = new TooltipController(BaseWebComponent.stateLess);\n\n\tprivate readonly setAbbrRef = (ref?: HTMLElement) => {\n\t\tthis.abbrRef = ref;\n\t};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-abbr\">\n\t\t\t\t{/* eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex */}\n\t\t\t\t<abbr ref={this.setAbbrRef} tabIndex={this.state._label ? 0 : undefined}>\n\t\t\t\t\t<slot />\n\t\t\t\t</abbr>\n\t\t\t\t{this.state._label ? (\n\t\t\t\t\t<TooltipFC\n\t\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\t\tlabel={typeof this.state._label === 'string' ? this.state._label : ''}\n\t\t\t\t\t\tbadgeText={''}\n\t\t\t\t\t\tid={this.tooltipCtrl.getRenderProp('id')}\n\t\t\t\t\t\trefFloating={this.tooltipCtrl.setTooltipElementRef}\n\t\t\t\t\t/>\n\t\t\t\t) : null}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label?: LabelPropType;\n\n\t@State() public state: AbbrStates = {\n\t\t_label: '',\n\t};\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelPropType): void {\n\t\tvalidateLabel(this, value);\n\t\tthis.tooltipCtrl.watchLabel(value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateLabel(this._label);\n\t\tthis.tooltipCtrl.componentWillLoad({\n\t\t\tlabel: typeof this._label === 'string' ? this._label : '',\n\t\t});\n\t}\n\n\tpublic componentDidRender(): void {\n\t\tif (this.abbrRef) {\n\t\t\tthis.tooltipCtrl.syncListeners(undefined, this.abbrRef, true);\n\t\t}\n\t}\n\n\tpublic disconnectedCallback(): void {\n\t\tthis.tooltipCtrl.destroy();\n\t}\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAM,eAAe,GAAG,88SAA88S;;MCqBz9S,OAAO,GAAA,MAAA;AAPpB,IAAA,WAAA,CAAA,OAAA,EAAA;;QAUkB,IAAW,CAAA,WAAA,GAAG,IAAI,iBAAiB,CAAC,gBAAgB,CAAC,SAAS,CAAC;AAE/D,QAAA,IAAA,CAAA,UAAU,GAAG,CAAC,GAAiB,KAAI;AACnD,YAAA,IAAI,CAAC,OAAO,GAAG,GAAG;AACnB,SAAC;QA2Be,IAAA,CAAA,KAAK,GAAe;AACnC,YAAA,MAAM,EAAE,EAAE;SACV;AAwBD;IAnDO,MAAM,GAAA;AACZ,QAAA,QACC,CAAC,CAAA,IAAI,EAAC,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EA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CAAC,WAAW,CAAC,OAAO,EAAE;;;;;;;;;;;;"}
1
+ {"version":3,"file":"kol-abbr.entry.esm.js","sources":["src/components/abbr/style.scss?tag=kol-abbr&mode=default&encapsulation=shadow","src/components/abbr/shadow.tsx"],"sourcesContent":["@use '../@shared/global' as *;\n@use '../@shared/abbr.mixin' as *;\n@use '../tooltip/style.scss' as *;\n\n@layer kol-component {\n\t@include kol-abbr-styles();\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, h, Host, Prop, State, Watch } from '@stencil/core';\nimport { BaseWebComponent } from '../../internal/functional-components/base-web-component';\nimport { TooltipFC } from '../../internal/functional-components/tooltip/component';\nimport { TooltipController } from '../../internal/functional-components/tooltip/controller';\nimport type { AbbrAPI, AbbrStates, LabelPropType } from '../../schema';\nimport { validateLabel } from '../../schema';\n\n/**\n * The **Abbr** component implements the HTML tag `abbr` with an accessible tooltip.\n * The tooltip for the description is displayed and read aloud when the **Abbr** component is focused or hovered.\n *\n * @slot - The abbreviation (short form).\n */\n@Component({\n\ttag: 'kol-abbr',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolAbbr implements AbbrAPI {\n\tprivate abbrRef?: HTMLElement;\n\n\tprivate readonly tooltipCtrl = new TooltipController(BaseWebComponent.stateLess);\n\n\tprivate readonly setAbbrRef = (ref?: HTMLElement) => {\n\t\tthis.abbrRef = ref;\n\t};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-abbr\">\n\t\t\t\t{/* eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex */}\n\t\t\t\t<abbr ref={this.setAbbrRef} tabIndex={this.state._label ? 0 : undefined}>\n\t\t\t\t\t<slot />\n\t\t\t\t</abbr>\n\t\t\t\t{this.state._label ? (\n\t\t\t\t\t<TooltipFC\n\t\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\t\tlabel={typeof this.state._label === 'string' ? this.state._label : ''}\n\t\t\t\t\t\tbadgeText={''}\n\t\t\t\t\t\tid={this.tooltipCtrl.getRenderProp('id')}\n\t\t\t\t\t\trefFloating={this.tooltipCtrl.setTooltipElementRef}\n\t\t\t\t\t/>\n\t\t\t\t) : null}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label?: LabelPropType;\n\n\t@State() public state: AbbrStates = {\n\t\t_label: '',\n\t};\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelPropType): void {\n\t\tvalidateLabel(this, value);\n\t\tthis.tooltipCtrl.watchLabel(value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateLabel(this._label);\n\t\tthis.tooltipCtrl.componentWillLoad({\n\t\t\tlabel: typeof this._label === 'string' ? this._label : '',\n\t\t});\n\t}\n\n\tpublic componentDidRender(): void {\n\t\tif (this.abbrRef) {\n\t\t\tthis.tooltipCtrl.syncListeners(undefined, this.abbrRef, true);\n\t\t}\n\t}\n\n\tpublic disconnectedCallback(): void {\n\t\tthis.tooltipCtrl.destroy();\n\t}\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAM,eAAe,GAAG,27SAA27S;;MCqBt8S,OAAO,GAAA,MAAA;AAPpB,IAAA,WAAA,CAAA,OAAA,EAAA;;QAUkB,IAAW,CAAA,WAAA,GAAG,IAAI,iBAAiB,CAAC,gBAAgB,CAAC,SAAS,CAAC;AAE/D,QAAA,IAAA,CAAA,UAAU,GAAG,CAAC,GAAiB,KAAI;AACnD,YAAA,IAAI,CAAC,OAAO,GAAG,GAAG;AACnB,SAAC;QA2Be,IAAA,CAAA,KAAK,GAAe;AACnC,YAAA,MAAM,EAAE,EAAE;SACV;AAwBD;IAnDO,MAAM,GAAA;AACZ,QAAA,QACC,CAAC,CAAA,IAAI,EAAC,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,UAAU,EAAA,EAErB,C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,EAAE;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as n,h as e,H as o}from"./index-B7tv7olz.js";import{B as t}from"./variant-quote-CHD0qMkY.js";import{T as i}from"./component-uWorUZss.js";import{T as l}from"./controller-BhIDd4zH.js";import"./common-BqV6Zb30.js";import{v as a}from"./label-vxVEH2gH.js";import"./normalizers-DnkJhVYZ.js";import"./_Uint8Array-kJHDjtoP.js";import"./isArray-CcrBs4JM.js";import"./component-sn_z4L8i.js";import"./tslib.es6-CxX45GIN.js";import"./bem-registry-Bux_TllX.js";import"./clsx-COFh-Vc8.js";import"./component-_Y75jltB.js";import"./align-floating-elements-58sFZOrL.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./align-D3Z54kEL.js";import"./label-BEOW9ltS.js";import"./base-controller-CXhqh4cR.js";const r='/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type=\'checkbox\'], [type=\'radio\'], [type=\'range\']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don\'t want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n .hastooltip {\n z-index: 900 !important;\n }\n}\n@font-face {\n font-family: "kolicons";\n src: url("kolicons.eot?t=1776785727439"); /* IE9*/\n src: url("kolicons.eot?t=1776785727439#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1776785727439") format("woff2"), url("kolicons.woff?t=1776785727439") format("woff"), url("kolicons.ttf?t=1776785727439") format("truetype"), url("kolicons.svg?t=1776785727439#kolicons") format("svg"); /* iOS 4.1- */\n}\n@layer kol-component {\n [class^=kolicon-], [class*=" kolicon-"] {\n font-family: "kolicons";\n font-style: normal;\n font-weight: 400;\n line-height: 1em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .kolicon-alert-error::before {\n content: "\\ea01";\n }\n .kolicon-alert-info::before {\n content: "\\ea02";\n }\n .kolicon-alert-success::before {\n content: "\\ea03";\n }\n .kolicon-alert-warning::before {\n content: "\\ea04";\n }\n .kolicon-check::before {\n content: "\\ea05";\n }\n .kolicon-chevron-double-left::before {\n content: "\\ea06";\n }\n .kolicon-chevron-double-right::before {\n content: "\\ea07";\n }\n .kolicon-chevron-down::before {\n content: "\\ea08";\n }\n .kolicon-chevron-left::before {\n content: "\\ea09";\n }\n .kolicon-chevron-right::before {\n content: "\\ea0a";\n }\n .kolicon-chevron-up::before {\n content: "\\ea0b";\n }\n .kolicon-cogwheel::before {\n content: "\\ea0c";\n }\n .kolicon-cross::before {\n content: "\\ea0d";\n }\n .kolicon-eye-closed::before {\n content: "\\ea0e";\n }\n .kolicon-eye::before {\n content: "\\ea0f";\n }\n .kolicon-house::before {\n content: "\\ea10";\n }\n .kolicon-kolibri::before {\n content: "\\ea11";\n }\n .kolicon-link-external::before {\n content: "\\ea12";\n }\n .kolicon-link::before {\n content: "\\ea13";\n }\n .kolicon-minus::before {\n content: "\\ea14";\n }\n .kolicon-plus::before {\n content: "\\ea15";\n }\n .kolicon-settings::before {\n content: "\\ea16";\n }\n .kolicon-sort-asc::before {\n content: "\\ea17";\n }\n .kolicon-sort-desc::before {\n content: "\\ea18";\n }\n .kolicon-sort-neutral::before {\n content: "\\ea19";\n }\n .kolicon-up::before {\n content: "\\ea1a";\n }\n .kolicon-version::before {\n content: "\\ea1b";\n }\n}\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n :host > abbr {\n text-decoration: underline dashed;\n cursor: help;\n }\n}',s=class{constructor(e){n(this,e),this.tooltipCtrl=new l(t.stateLess),this.setAbbrRef=n=>{this.abbrRef=n},this.state={_label:""}}render(){return e(o,{key:"66308e6f7d25035e13c19ef9dcf4a5cc8537fd17",class:"kol-abbr"},e("abbr",{key:"d0ac0653d3d2ffb37ddeab647f300686c48a261a",ref:this.setAbbrRef,tabIndex:this.state._label?0:void 0},e("slot",{key:"1f95fbdf8e79653e8179b28dc1f5dced4a8f172a"})),this.state._label?e(i,{"aria-hidden":"true",label:"string"==typeof this.state._label?this.state._label:"",badgeText:"",id:this.tooltipCtrl.getRenderProp("id"),refFloating:this.tooltipCtrl.setTooltipElementRef}):null)}validateLabel(n){a(this,n),this.tooltipCtrl.watchLabel(n)}componentWillLoad(){this.validateLabel(this._label),this.tooltipCtrl.componentWillLoad({label:"string"==typeof this._label?this._label:""})}componentDidRender(){this.abbrRef&&this.tooltipCtrl.syncListeners(void 0,this.abbrRef,!0)}disconnectedCallback(){this.tooltipCtrl.destroy()}static get watchers(){return{_label:["validateLabel"]}}};s.style={default:r};export{s as kol_abbr};
4
+ import{r as n,h as e,H as o}from"./index-Bc-dkuUs.js";import{B as t}from"./variant-quote-DI6q8gPw.js";import{T as i}from"./component-sZ20spQ6.js";import{T as l}from"./controller-Cf3CGZT-.js";import"./common-BqV6Zb30.js";import{v as a}from"./label-vxVEH2gH.js";import"./normalizers-C14RETgU.js";import"./_Uint8Array-kJHDjtoP.js";import"./isArray-CcrBs4JM.js";import"./component-Bn_ahKfK.js";import"./tslib.es6-CxX45GIN.js";import"./bem-registry-Bux_TllX.js";import"./clsx-COFh-Vc8.js";import"./component-OtHwqg1I.js";import"./align-floating-elements-58sFZOrL.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./align-D3Z54kEL.js";import"./label-DK7sT-k5.js";import"./base-controller-CXhqh4cR.js";const r='/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type=\'checkbox\'], [type=\'radio\'], [type=\'range\']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don\'t want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n .hastooltip {\n z-index: 900 !important;\n }\n}\n@font-face {\n font-family: "kolicons";\n src: url("kolicons.eot?t=1777029041506"); /* IE9*/\n src: url("kolicons.eot?t=1777029041506#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1777029041506") format("woff2"), url("kolicons.woff?t=1777029041506") format("woff"), url("kolicons.ttf?t=1777029041506") format("truetype"), url("kolicons.svg?t=1777029041506#kolicons") format("svg"); /* iOS 4.1- */\n}\n@layer kol-component {\n [class^=kolicon-], [class*=" kolicon-"] {\n font-family: "kolicons";\n font-style: normal;\n font-weight: 400;\n line-height: 1em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .kolicon-alert-error::before {\n content: "\\ea01";\n }\n .kolicon-alert-info::before {\n content: "\\ea02";\n }\n .kolicon-alert-success::before {\n content: "\\ea03";\n }\n .kolicon-alert-warning::before {\n content: "\\ea04";\n }\n .kolicon-check::before {\n content: "\\ea05";\n }\n .kolicon-chevron-double-left::before {\n content: "\\ea06";\n }\n .kolicon-chevron-double-right::before {\n content: "\\ea07";\n }\n .kolicon-chevron-down::before {\n content: "\\ea08";\n }\n .kolicon-chevron-left::before {\n content: "\\ea09";\n }\n .kolicon-chevron-right::before {\n content: "\\ea0a";\n }\n .kolicon-chevron-up::before {\n content: "\\ea0b";\n }\n .kolicon-cogwheel::before {\n content: "\\ea0c";\n }\n .kolicon-cross::before {\n content: "\\ea0d";\n }\n .kolicon-eye-closed::before {\n content: "\\ea0e";\n }\n .kolicon-eye::before {\n content: "\\ea0f";\n }\n .kolicon-house::before {\n content: "\\ea10";\n }\n .kolicon-kolibri::before {\n content: "\\ea11";\n }\n .kolicon-link-external::before {\n content: "\\ea12";\n }\n .kolicon-link::before {\n content: "\\ea13";\n }\n .kolicon-minus::before {\n content: "\\ea14";\n }\n .kolicon-plus::before {\n content: "\\ea15";\n }\n .kolicon-settings::before {\n content: "\\ea16";\n }\n .kolicon-sort-asc::before {\n content: "\\ea17";\n }\n .kolicon-sort-desc::before {\n content: "\\ea18";\n }\n .kolicon-sort-neutral::before {\n content: "\\ea19";\n }\n .kolicon-up::before {\n content: "\\ea1a";\n }\n .kolicon-version::before {\n content: "\\ea1b";\n }\n}\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n :host > abbr {\n text-decoration: underline dashed;\n cursor: help;\n }\n}',s=class{constructor(e){n(this,e),this.tooltipCtrl=new l(t.stateLess),this.setAbbrRef=n=>{this.abbrRef=n},this.state={_label:""}}render(){return e(o,{key:"66308e6f7d25035e13c19ef9dcf4a5cc8537fd17",class:"kol-abbr"},e("abbr",{key:"d0ac0653d3d2ffb37ddeab647f300686c48a261a",ref:this.setAbbrRef,tabIndex:this.state._label?0:void 0},e("slot",{key:"1f95fbdf8e79653e8179b28dc1f5dced4a8f172a"})),this.state._label?e(i,{"aria-hidden":"true",label:"string"==typeof this.state._label?this.state._label:"",badgeText:"",id:this.tooltipCtrl.getRenderProp("id"),refFloating:this.tooltipCtrl.setTooltipElementRef}):null)}validateLabel(n){a(this,n),this.tooltipCtrl.watchLabel(n)}componentWillLoad(){this.validateLabel(this._label),this.tooltipCtrl.componentWillLoad({label:"string"==typeof this._label?this._label:""})}componentDidRender(){this.abbrRef&&this.tooltipCtrl.syncListeners(void 0,this.abbrRef,!0)}disconnectedCallback(){this.tooltipCtrl.destroy()}static get watchers(){return{_label:["validateLabel"]}}};s.style={default:r};export{s as kol_abbr};
@@ -1 +1 @@
1
- {"version":3,"names":["registerInstance","h","Host","BaseWebComponent","TooltipFC","TooltipController","validateLabel","defaultStyleCss","KolAbbr","constructor","hostRef","this","tooltipCtrl","stateLess","setAbbrRef","ref","abbrRef","state","_label","render","key","class","tabIndex","undefined","label","badgeText","id","getRenderProp","refFloating","setTooltipElementRef","value","watchLabel","componentWillLoad","componentDidRender","syncListeners","disconnectedCallback","destroy","watchers","style","default"],"sources":["0"],"mappings":";;;YAGcA,OAAkBC,OAAQC,MAAY,kCACtCC,MAAwB,0CACxBC,MAAiB,sCACjBC,MAAyB,iCAChC,mCACOC,MAAqB,4BAC5B,kCACA,kCACA,8BACA,gCACA,gCACA,mCACA,2BACA,gCACA,8CACA,4CACA,4BACA,4BACA,gCAEP,MAAMC,EAAkB,o4SAExB,MAAMC,EAAU,MACZ,WAAAC,CAAYC,GACRV,EAAiBW,KAAMD,GACvBC,KAAKC,YAAc,IAAIP,EAAkBF,EAAiBU,WAC1DF,KAAKG,WAAcC,IACfJ,KAAKK,QAAUD,CAAG,EAEtBJ,KAAKM,MAAQ,CACTC,OAAQ,GAEhB,CACA,MAAAC,GACI,OAAQlB,EAAEC,EAAM,CAAEkB,IAAK,2CAA4CC,MAAO,YAAcpB,EAAE,OAAQ,CAAEmB,IAAK,2CAA4CL,IAAKJ,KAAKG,WAAYQ,SAAUX,KAAKM,MAAMC,OAAS,EAAIK,WAAatB,EAAE,OAAQ,CAAEmB,IAAK,8CAAgDT,KAAKM,MAAMC,OAAUjB,EAAEG,EAAW,CAAE,cAAe,OAAQoB,aAAcb,KAAKM,MAAMC,SAAW,SAAWP,KAAKM,MAAMC,OAAS,GAAIO,UAAW,GAAIC,GAAIf,KAAKC,YAAYe,cAAc,MAAOC,YAAajB,KAAKC,YAAYiB,uBAA2B,KACnhB,CACA,aAAAvB,CAAcwB,GACVxB,EAAcK,KAAMmB,GACpBnB,KAAKC,YAAYmB,WAAWD,EAChC,CACA,iBAAAE,GACIrB,KAAKL,cAAcK,KAAKO,QACxBP,KAAKC,YAAYoB,kBAAkB,CAC/BR,aAAcb,KAAKO,SAAW,SAAWP,KAAKO,OAAS,IAE/D,CACA,kBAAAe,GACI,GAAItB,KAAKK,QAAS,CACdL,KAAKC,YAAYsB,cAAcX,UAAWZ,KAAKK,QAAS,KAC5D,CACJ,CACA,oBAAAmB,GACIxB,KAAKC,YAAYwB,SACrB,CACA,mBAAWC,GAAa,MAAO,CAC3BnB,OAAU,CAAC,iBACZ,GAEPV,EAAQ8B,MAAQ,CACZC,QAAShC,UAGJC","ignoreList":[]}
1
+ {"version":3,"names":["registerInstance","h","Host","BaseWebComponent","TooltipFC","TooltipController","validateLabel","defaultStyleCss","KolAbbr","constructor","hostRef","this","tooltipCtrl","stateLess","setAbbrRef","ref","abbrRef","state","_label","render","key","class","tabIndex","undefined","label","badgeText","id","getRenderProp","refFloating","setTooltipElementRef","value","watchLabel","componentWillLoad","componentDidRender","syncListeners","disconnectedCallback","destroy","watchers","style","default"],"sources":["0"],"mappings":";;;YAGcA,OAAkBC,OAAQC,MAAY,kCACtCC,MAAwB,0CACxBC,MAAiB,sCACjBC,MAAyB,iCAChC,mCACOC,MAAqB,4BAC5B,kCACA,kCACA,8BACA,gCACA,gCACA,mCACA,2BACA,gCACA,8CACA,4CACA,4BACA,4BACA,gCAEP,MAAMC,EAAkB,i3SAExB,MAAMC,EAAU,MACZ,WAAAC,CAAYC,GACRV,EAAiBW,KAAMD,GACvBC,KAAKC,YAAc,IAAIP,EAAkBF,EAAiBU,WAC1DF,KAAKG,WAAcC,IACfJ,KAAKK,QAAUD,CAAG,EAEtBJ,KAAKM,MAAQ,CACTC,OAAQ,GAEhB,CACA,MAAAC,GACI,OAAQlB,EAAEC,EAAM,CAAEkB,IAAK,2CAA4CC,MAAO,YAAcpB,EAAE,OAAQ,CAAEmB,IAAK,2CAA4CL,IAAKJ,KAAKG,WAAYQ,SAAUX,KAAKM,MAAMC,OAAS,EAAIK,WAAatB,EAAE,OAAQ,CAAEmB,IAAK,8CAAgDT,KAAKM,MAAMC,OAAUjB,EAAEG,EAAW,CAAE,cAAe,OAAQoB,aAAcb,KAAKM,MAAMC,SAAW,SAAWP,KAAKM,MAAMC,OAAS,GAAIO,UAAW,GAAIC,GAAIf,KAAKC,YAAYe,cAAc,MAAOC,YAAajB,KAAKC,YAAYiB,uBAA2B,KACnhB,CACA,aAAAvB,CAAcwB,GACVxB,EAAcK,KAAMmB,GACpBnB,KAAKC,YAAYmB,WAAWD,EAChC,CACA,iBAAAE,GACIrB,KAAKL,cAAcK,KAAKO,QACxBP,KAAKC,YAAYoB,kBAAkB,CAC/BR,aAAcb,KAAKO,SAAW,SAAWP,KAAKO,OAAS,IAE/D,CACA,kBAAAe,GACI,GAAItB,KAAKK,QAAS,CACdL,KAAKC,YAAYsB,cAAcX,UAAWZ,KAAKK,QAAS,KAC5D,CACJ,CACA,oBAAAmB,GACIxB,KAAKC,YAAYwB,SACrB,CACA,mBAAWC,GAAa,MAAO,CAC3BnB,OAAU,CAAC,iBACZ,GAEPV,EAAQ8B,MAAQ,CACZC,QAAShC,UAGJC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"kol-accordion.entry.esm.js","sources":["src/schema/props/accordion-callbacks.ts","src/components/accordion/style.scss?tag=kol-accordion&mode=default&encapsulation=shadow","src/components/accordion/shadow.tsx"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\nimport type { Callback } from '../enums';\nimport type { EventValueOrEventCallback } from '../types/callbacks';\nimport { watchValidator } from '../utils';\n\n/* types */\nexport type AccordionCallbacksPropType<T> = {\n\t[Callback.onClick]?: EventValueOrEventCallback<MouseEvent, T>;\n};\n\n/**\n * Defines the callback functions for accordion events.\n */\nexport type PropAccordionCallbacks<T> = {\n\ton: AccordionCallbacksPropType<T>;\n};\n\n/* validator */\nexport const validateAccordionCallbacks = (component: Generic.Element.Component, value?: AccordionCallbacksPropType<boolean>): void => {\n\twatchValidator(component, `_on`, (value) => typeof value === 'object' && value !== null, new Set(['AccordionCallbacksPropType {Events.onClick}']), value);\n};\n","@use '../@shared/global' as *;\n@use '../host-display-block' as *;\n@use '../@shared/collapsible.mixin' as *;\n@use '../@shared/icon.mixin' as *;\n\n@layer kol-component {\n\t@include kol-icon-styles();\n}\n","// https://codepen.io/mbxtr/pen/OJPOYg?html-preprocessor=haml\nimport type { JSX } from '@stencil/core';\nimport { Component, Element, h, Method, Prop, State, Watch } from '@stencil/core';\nimport KolCollapsibleFc, { type CollapsibleProps } from '../../functional-components/Collapsible';\nimport type {\n\tAccordionAPI,\n\tAccordionCallbacksPropType,\n\tAccordionStates,\n\tDisabledPropType,\n\tFocusableElement,\n\tHeadingLevel,\n\tLabelPropType,\n\tOpenPropType,\n} from '../../schema';\nimport { featureHint, validateAccordionCallbacks, validateDisabled, validateLabel, validateOpen } from '../../schema';\nimport { nonce } from '../../utils/dev.utils';\nimport { delegateClick, setClick } from '../../utils/element-click';\nimport { delegateFocus, setFocus } from '../../utils/element-focus';\nimport { dispatchDomEvent, KolEvent } from '../../utils/events';\nimport { watchHeadingLevel } from '../heading/validation';\n\nfeatureHint(`[KolAccordion] Anfrage nach einer KolAccordionGroup bei dem immer nur ein Accordion geöffnet ist.\n\n- onClick auf der KolAccordion anwenden\n- Click-Event prüft den _open-Status der Accordions\n- Logik Öffnet und Schließt entsprechend`);\nfeatureHint(`[KolAccordion] Tab-Sperre des Inhalts im geschlossenen Zustand.`);\n\n/**\n * The **Accordion** component is a collapsible menu. Clicking the header area — consisting of an icon and a heading — expands the content to reveal additional information. It is an interactive navigation element designed to present extensive content in a space-saving manner.\n *\n * Accordions are used whenever content associated with a thematic heading needs to be shown or hidden. They allow more detailed information for a heading than would normally be practical, leaving it to the users to decide whether to view that information.\n *\n * @slot - Allows arbitrary HTML to be inserted into the content area of the accordion.\n */\n@Component({\n\ttag: 'kol-accordion',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolAccordion implements AccordionAPI, FocusableElement {\n\t@Element() private readonly host?: HTMLKolAccordionElement;\n\n\tprivate readonly nonce = nonce();\n\tprivate buttonWcRef?: HTMLKolButtonWcElement;\n\n\tprivate readonly setButtonWcRef = (ref?: HTMLKolButtonWcElement) => {\n\t\tthis.buttonWcRef = ref;\n\t};\n\n\t/**\n\t * Sets focus on the internal element.\n\t */\n\t@Method()\n\tpublic async focus(): Promise<void> {\n\t\treturn delegateFocus(this.host!, () => setFocus(this.buttonWcRef!));\n\t}\n\n\t/**\n\t * Triggers a click on the trigger button of the first section.\n\t */\n\t@Method()\n\tpublic async click(): Promise<void> {\n\t\treturn delegateClick(this.host!, async () => setClick(this.buttonWcRef!));\n\t}\n\n\tprivate handleOnClick = (event: MouseEvent) => {\n\t\tthis._open = !this._open;\n\n\t\t/**\n\t\t * Der Timeout wird benötigt, damit das Event\n\t\t * vom Button- auf das Accordion-Event wechselt.\n\t\t * So ist es dem Anwendenden möglich das _open-\n\t\t * Attribute abzufragen.\n\t\t */\n\t\tsetTimeout(() => {\n\t\t\tthis.state._on?.onClick?.(event, this._open === true);\n\t\t\tif (this.host) {\n\t\t\t\tdispatchDomEvent(this.host, KolEvent.click, this._open === true);\n\t\t\t}\n\t\t});\n\t};\n\n\tpublic render(): JSX.Element {\n\t\tconst { _open, _label, _disabled, _level } = this.state;\n\t\tconst rootClass = 'kol-accordion';\n\n\t\tconst props: CollapsibleProps = {\n\t\t\tid: this.nonce,\n\t\t\tlabel: _label,\n\t\t\topen: _open,\n\t\t\tdisabled: _disabled,\n\t\t\tlevel: _level,\n\t\t\tonClick: this.handleOnClick,\n\t\t\tclass: rootClass,\n\t\t\tHeadingProps: { class: `${rootClass}__heading` },\n\t\t\tHeadingButtonProps: {\n\t\t\t\tref: this.setButtonWcRef,\n\t\t\t\tclass: `${rootClass}__heading-button`,\n\t\t\t},\n\t\t\tContentProps: {\n\t\t\t\tclass: `${rootClass}__content`,\n\t\t\t\twrapperClass: `${rootClass}__wrapper`,\n\t\t\t\tanimationClass: `${rootClass}__wrapper-animation`,\n\t\t\t},\n\t\t};\n\n\t\treturn (\n\t\t\t<KolCollapsibleFc {...props}>\n\t\t\t\t<slot />\n\t\t\t</KolCollapsibleFc>\n\t\t);\n\t}\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label!: string;\n\n\t/**\n\t * Defines which H-level from 1-6 the heading has. 0 specifies no heading and is shown as bold text.\n\t */\n\t@Prop() public _level?: HeadingLevel = 0;\n\n\t/**\n\t * Gibt die EventCallback-Funktionen an.\n\t */\n\t@Prop() public _on?: AccordionCallbacksPropType<boolean>;\n\n\t/**\n\t * Opens/expands the element when truthy, closes/collapses when falsy.\n\t * @TODO: Change type back to `OpenPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _open?: boolean = false;\n\n\t@State() public state: AccordionStates = {\n\t\t_label: '', // ⚠ required\n\t\t_level: 0,\n\t\t_on: {},\n\t};\n\n\t@Watch('_disabled')\n\tpublic validateDisabled(value?: DisabledPropType): void {\n\t\tvalidateDisabled(this, value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelPropType): void {\n\t\tvalidateLabel(this, value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_level')\n\tpublic validateLevel(value?: HeadingLevel): void {\n\t\twatchHeadingLevel(this, value);\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(on?: AccordionCallbacksPropType<boolean>): void {\n\t\tvalidateAccordionCallbacks(this, on);\n\t}\n\n\t@Watch('_open')\n\tpublic validateOpen(value?: OpenPropType): void {\n\t\tvalidateOpen(this, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateDisabled(this._disabled);\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateLevel(this._level);\n\t\tthis.validateOn(this._on);\n\t\tthis.validateOpen(this._open);\n\t}\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAkBO,MAAM,0BAA0B,GAAG,CAAC,SAAoC,EAAE,KAA2C,KAAU;AACrI,IAAA,cAAc,CAAC,SAAS,EAAE,CAAA,GAAA,CAAK,EAAE,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE,IAAI,GAAG,CAAC,CAAC,6CAA6C,CAAC,CAAC,EAAE,KAAK,CAAC;AAC1J,CAAC;;ACpBD,MAAM,eAAe,GAAG,6lTAA6lT;;ACqBrnT,WAAW,CAAC,CAAA;;;;AAI6B,wCAAA,CA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/C,QAAA,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC;;AAIvB,IAAA,aAAa,CAAC,KAAqB,EAAA;AACzC,QAAA,aAAa,CAAC,IAAI,EAAE,KAAK,EAAE;AAC1B,YAAA,QAAQ,EAAE,IAAI;AACd,SAAA,CAAC;;AAII,IAAA,aAAa,CAAC,KAAoB,EAAA;AACxC,QAAA,iBAAiB,CAAC,IAAI,EAAE,KAAK,CAAC;;AAIxB,IAAA,UAAU,CAAC,EAAwC,EAAA;AACzD,QAAA,0BAA0B,CAAC,IAAI,EAAE,EAAE,CAAC;;AAI9B,IAAA,YAAY,CAAC,KAAoB,EAAA;AACvC,QAAA,YAAY,CAAC,IAAI,EAAE,KAAK,CAAC;;IAGnB,iBAAiB,GAAA;AACvB,QAAA,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC;AACrC,QAAA,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC;AAC/B,QAAA,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC;AAC/B,QAAA,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC;AACzB,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"kol-accordion.entry.esm.js","sources":["src/schema/props/accordion-callbacks.ts","src/components/accordion/style.scss?tag=kol-accordion&mode=default&encapsulation=shadow","src/components/accordion/shadow.tsx"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\nimport type { Callback } from '../enums';\nimport type { EventValueOrEventCallback } from '../types/callbacks';\nimport { watchValidator } from '../utils';\n\n/* types */\nexport type AccordionCallbacksPropType<T> = {\n\t[Callback.onClick]?: EventValueOrEventCallback<MouseEvent, T>;\n};\n\n/**\n * Defines the callback functions for accordion events.\n */\nexport type PropAccordionCallbacks<T> = {\n\ton: AccordionCallbacksPropType<T>;\n};\n\n/* validator */\nexport const validateAccordionCallbacks = (component: Generic.Element.Component, value?: AccordionCallbacksPropType<boolean>): void => {\n\twatchValidator(component, `_on`, (value) => typeof value === 'object' && value !== null, new Set(['AccordionCallbacksPropType {Events.onClick}']), value);\n};\n","@use '../@shared/global' as *;\n@use '../host-display-block' as *;\n@use '../@shared/collapsible.mixin' as *;\n@use '../@shared/icon.mixin' as *;\n\n@layer kol-component {\n\t@include kol-icon-styles();\n}\n","// https://codepen.io/mbxtr/pen/OJPOYg?html-preprocessor=haml\nimport type { JSX } from '@stencil/core';\nimport { Component, Element, h, Method, Prop, State, Watch } from '@stencil/core';\nimport KolCollapsibleFc, { type CollapsibleProps } from '../../functional-components/Collapsible';\nimport type {\n\tAccordionAPI,\n\tAccordionCallbacksPropType,\n\tAccordionStates,\n\tDisabledPropType,\n\tFocusableElement,\n\tHeadingLevel,\n\tLabelPropType,\n\tOpenPropType,\n} from '../../schema';\nimport { featureHint, validateAccordionCallbacks, validateDisabled, validateLabel, validateOpen } from '../../schema';\nimport { nonce } from '../../utils/dev.utils';\nimport { delegateClick, setClick } from '../../utils/element-click';\nimport { delegateFocus, setFocus } from '../../utils/element-focus';\nimport { dispatchDomEvent, KolEvent } from '../../utils/events';\nimport { watchHeadingLevel } from '../heading/validation';\n\nfeatureHint(`[KolAccordion] Anfrage nach einer KolAccordionGroup bei dem immer nur ein Accordion geöffnet ist.\n\n- onClick auf der KolAccordion anwenden\n- Click-Event prüft den _open-Status der Accordions\n- Logik Öffnet und Schließt entsprechend`);\nfeatureHint(`[KolAccordion] Tab-Sperre des Inhalts im geschlossenen Zustand.`);\n\n/**\n * The **Accordion** component is a collapsible menu. Clicking the header area — consisting of an icon and a heading — expands the content to reveal additional information. It is an interactive navigation element designed to present extensive content in a space-saving manner.\n *\n * Accordions are used whenever content associated with a thematic heading needs to be shown or hidden. They allow more detailed information for a heading than would normally be practical, leaving it to the users to decide whether to view that information.\n *\n * @slot - Allows arbitrary HTML to be inserted into the content area of the accordion.\n */\n@Component({\n\ttag: 'kol-accordion',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolAccordion implements AccordionAPI, FocusableElement {\n\t@Element() private readonly host?: HTMLKolAccordionElement;\n\n\tprivate readonly nonce = nonce();\n\tprivate buttonWcRef?: HTMLKolButtonWcElement;\n\n\tprivate readonly setButtonWcRef = (ref?: HTMLKolButtonWcElement) => {\n\t\tthis.buttonWcRef = ref;\n\t};\n\n\t/**\n\t * Sets focus on the internal element.\n\t */\n\t@Method()\n\tpublic async focus(): Promise<void> {\n\t\treturn delegateFocus(this.host!, () => setFocus(this.buttonWcRef!));\n\t}\n\n\t/**\n\t * Triggers a click on the trigger button of the first section.\n\t */\n\t@Method()\n\tpublic async click(): Promise<void> {\n\t\treturn delegateClick(this.host!, async () => setClick(this.buttonWcRef!));\n\t}\n\n\tprivate handleOnClick = (event: MouseEvent) => {\n\t\tthis._open = !this._open;\n\n\t\t/**\n\t\t * Der Timeout wird benötigt, damit das Event\n\t\t * vom Button- auf das Accordion-Event wechselt.\n\t\t * So ist es dem Anwendenden möglich das _open-\n\t\t * Attribute abzufragen.\n\t\t */\n\t\tsetTimeout(() => {\n\t\t\tthis.state._on?.onClick?.(event, this._open === true);\n\t\t\tif (this.host) {\n\t\t\t\tdispatchDomEvent(this.host, KolEvent.click, this._open === true);\n\t\t\t}\n\t\t});\n\t};\n\n\tpublic render(): JSX.Element {\n\t\tconst { _open, _label, _disabled, _level } = this.state;\n\t\tconst rootClass = 'kol-accordion';\n\n\t\tconst props: CollapsibleProps = {\n\t\t\tid: this.nonce,\n\t\t\tlabel: _label,\n\t\t\topen: _open,\n\t\t\tdisabled: _disabled,\n\t\t\tlevel: _level,\n\t\t\tonClick: this.handleOnClick,\n\t\t\tclass: rootClass,\n\t\t\tHeadingProps: { class: `${rootClass}__heading` },\n\t\t\tHeadingButtonProps: {\n\t\t\t\tref: this.setButtonWcRef,\n\t\t\t\tclass: `${rootClass}__heading-button`,\n\t\t\t},\n\t\t\tContentProps: {\n\t\t\t\tclass: `${rootClass}__content`,\n\t\t\t\twrapperClass: `${rootClass}__wrapper`,\n\t\t\t\tanimationClass: `${rootClass}__wrapper-animation`,\n\t\t\t},\n\t\t};\n\n\t\treturn (\n\t\t\t<KolCollapsibleFc {...props}>\n\t\t\t\t<slot />\n\t\t\t</KolCollapsibleFc>\n\t\t);\n\t}\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label!: string;\n\n\t/**\n\t * Defines which H-level from 1-6 the heading has. 0 specifies no heading and is shown as bold text.\n\t */\n\t@Prop() public _level?: HeadingLevel = 0;\n\n\t/**\n\t * Gibt die EventCallback-Funktionen an.\n\t */\n\t@Prop() public _on?: AccordionCallbacksPropType<boolean>;\n\n\t/**\n\t * Opens/expands the element when truthy, closes/collapses when falsy.\n\t * @TODO: Change type back to `OpenPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _open?: boolean = false;\n\n\t@State() public state: AccordionStates = {\n\t\t_label: '', // ⚠ required\n\t\t_level: 0,\n\t\t_on: {},\n\t};\n\n\t@Watch('_disabled')\n\tpublic validateDisabled(value?: DisabledPropType): void {\n\t\tvalidateDisabled(this, value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelPropType): void {\n\t\tvalidateLabel(this, value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_level')\n\tpublic validateLevel(value?: HeadingLevel): void {\n\t\twatchHeadingLevel(this, value);\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(on?: AccordionCallbacksPropType<boolean>): void {\n\t\tvalidateAccordionCallbacks(this, on);\n\t}\n\n\t@Watch('_open')\n\tpublic validateOpen(value?: OpenPropType): void {\n\t\tvalidateOpen(this, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateDisabled(this._disabled);\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateLevel(this._level);\n\t\tthis.validateOn(this._on);\n\t\tthis.validateOpen(this._open);\n\t}\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAkBO,MAAM,0BAA0B,GAAG,CAAC,SAAoC,EAAE,KAA2C,KAAU;AACrI,IAAA,cAAc,CAAC,SAAS,EAAE,CAAA,GAAA,CAAK,EAAE,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE,IAAI,GAAG,CAAC,CAAC,6CAA6C,CAAC,CAAC,EAAE,KAAK,CAAC;AAC1J,CAAC;;ACpBD,MAAM,eAAe,GAAG,0kTAA0kT;;ACqBlmT,WAAW,CAAC,CAAA;;;;AAI6B,wCAAA,CAAA,CAAC;AAC1C,WAAW,CAAC,CAAiE,+DAAA,CAAA,CAAC;MAgBjE,YAAY,GAAA,MAAA;AAPzB,IAAA,WAAA,CAAA,OAAA,EAAA;;AAUkB,QAAA,IAAK,CAAA,KAAA,GAAG,KAAK,EAAE;AAGf,QAAA,IAAA,CAAA,cAAc,GAAG,CAAC,GAA4B,KAAI;AAClE,YAAA,IAAI,CAAC,WAAW,GAAG,GAAG;AACvB,SAAC;AAkBO,QAAA,IAAA,CAAA,aAAa,GAAG,CAAC,KAAiB,KAAI;AAC7C,YAAA,IAAI,CAAC,KAAK,GAAG,CAAC,IAAI,CAAC,KAAK;YAQxB,UAAU,CAAC,MAAK;;gBACf,CAAA,EAAA,GAAA,MAAA,IAAI,CAAC,KAAK,CAAC,GAAG,MAAE,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAA,OAAO,MAAG,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAA,IAAA,CAAA,EAAA,EAAA,KAAK,EAAE,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC;AACrD,gBAAA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,GAAG,CAAC;AACzB,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC;;;;;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as n,h as e,g as t}from"./index-B7tv7olz.js";import{K as o}from"./Collapsible-Dud93VK6.js";import{b as i,c as l}from"./common-BqV6Zb30.js";import{v as a}from"./disabled-BBn2JEzf.js";import{v as s}from"./label-vxVEH2gH.js";import{v as r}from"./open-BMZVrISI.js";import{n as c}from"./dev.utils-BKmnA1fy.js";import{d,s as h}from"./element-click-BTxuJDNT.js";import{d as p,s as m}from"./element-focus-BKUtVrWY.js";import{d as f,K as b}from"./events-DHTi_wtD.js";import{w as u}from"./validation-BytKl095.js";import"./tslib.es6-CxX45GIN.js";import"./component-names-Dy77vq43.js";import"./clsx-COFh-Vc8.js";import"./Heading-D23yWoVT.js";import"./level-Bwrb_jzT.js";import"./normalizers-DnkJhVYZ.js";import"./_Uint8Array-kJHDjtoP.js";import"./isArray-CcrBs4JM.js";const k=(n,e)=>{i(n,"_on",n=>"object"==typeof n&&null!==n,new Set(["AccordionCallbacksPropType {Events.onClick}"]),e)},g='/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type=\'checkbox\'], [type=\'radio\'], [type=\'range\']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don\'t want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n .hastooltip {\n z-index: 900 !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n/* For animation technique see https://css-tricks.com/css-grid-can-do-auto-height-transitions/ */\n@layer kol-component {\n @media (prefers-reduced-motion) {\n .collapsible__wrapper-animation, .collapsible__wrapper {\n transition: none !important;\n }\n }\n .collapsible {\n /* @see https://github.com/public-ui/kolibri/issues/5952 */\n }\n @media print {\n :not(.collapsible--open) .collapsible__wrapper-animation {\n display: none;\n }\n }\n .collapsible__wrapper {\n /* Forces the element into its own GPU compositing layer (via 3D transform). Helps prevent rendering/layout bugs (e.g. #7511) and may improve animation performance. */\n transform: translateZ(0);\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n grid-template-rows: 0fr;\n transition: grid-template-rows 0.3s;\n }\n .collapsible__wrapper-animation {\n opacity: 0;\n transform: scaleY(0);\n transform-origin: top;\n min-height: 0;\n /* This property is important to keep in sync with the visual transition (template-rows). Without it interactive elements within the accordion would stay focusable. */\n visibility: hidden;\n transition: transform 0.3s, opacity 0.3s, visibility 0.3s;\n }\n .collapsible--open .collapsible__wrapper {\n grid-template-rows: 1fr;\n }\n .collapsible--open .collapsible__wrapper-animation {\n opacity: 1;\n transform: scaleY(1);\n visibility: visible;\n }\n .collapsible {\n /*\n * Inside a button, the caption text is always centered.\n * So we have to align the text to the left.\n */\n }\n .collapsible__heading-button button .kol-span {\n align-items: flex-start;\n }\n .collapsible--open:focus-within {\n position: relative;\n z-index: 100;\n }\n}\n@font-face {\n font-family: "kolicons";\n src: url("kolicons.eot?t=1776785727439"); /* IE9*/\n src: url("kolicons.eot?t=1776785727439#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1776785727439") format("woff2"), url("kolicons.woff?t=1776785727439") format("woff"), url("kolicons.ttf?t=1776785727439") format("truetype"), url("kolicons.svg?t=1776785727439#kolicons") format("svg"); /* iOS 4.1- */\n}\n@layer kol-component {\n [class^=kolicon-], [class*=" kolicon-"] {\n font-family: "kolicons";\n font-style: normal;\n font-weight: 400;\n line-height: 1em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .kolicon-alert-error::before {\n content: "\\ea01";\n }\n .kolicon-alert-info::before {\n content: "\\ea02";\n }\n .kolicon-alert-success::before {\n content: "\\ea03";\n }\n .kolicon-alert-warning::before {\n content: "\\ea04";\n }\n .kolicon-check::before {\n content: "\\ea05";\n }\n .kolicon-chevron-double-left::before {\n content: "\\ea06";\n }\n .kolicon-chevron-double-right::before {\n content: "\\ea07";\n }\n .kolicon-chevron-down::before {\n content: "\\ea08";\n }\n .kolicon-chevron-left::before {\n content: "\\ea09";\n }\n .kolicon-chevron-right::before {\n content: "\\ea0a";\n }\n .kolicon-chevron-up::before {\n content: "\\ea0b";\n }\n .kolicon-cogwheel::before {\n content: "\\ea0c";\n }\n .kolicon-cross::before {\n content: "\\ea0d";\n }\n .kolicon-eye-closed::before {\n content: "\\ea0e";\n }\n .kolicon-eye::before {\n content: "\\ea0f";\n }\n .kolicon-house::before {\n content: "\\ea10";\n }\n .kolicon-kolibri::before {\n content: "\\ea11";\n }\n .kolicon-link-external::before {\n content: "\\ea12";\n }\n .kolicon-link::before {\n content: "\\ea13";\n }\n .kolicon-minus::before {\n content: "\\ea14";\n }\n .kolicon-plus::before {\n content: "\\ea15";\n }\n .kolicon-settings::before {\n content: "\\ea16";\n }\n .kolicon-sort-asc::before {\n content: "\\ea17";\n }\n .kolicon-sort-desc::before {\n content: "\\ea18";\n }\n .kolicon-sort-neutral::before {\n content: "\\ea19";\n }\n .kolicon-up::before {\n content: "\\ea1a";\n }\n .kolicon-version::before {\n content: "\\ea1b";\n }\n}\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n}';l("[KolAccordion] Anfrage nach einer KolAccordionGroup bei dem immer nur ein Accordion geöffnet ist.\n\n- onClick auf der KolAccordion anwenden\n- Click-Event prüft den _open-Status der Accordions\n- Logik Öffnet und Schließt entsprechend"),l("[KolAccordion] Tab-Sperre des Inhalts im geschlossenen Zustand.");const y=class{constructor(e){n(this,e),this.nonce=c(),this.setButtonWcRef=n=>{this.buttonWcRef=n},this.handleOnClick=n=>{this._open=!this._open,setTimeout(()=>{var e,t;null===(t=null===(e=this.state._on)||void 0===e?void 0:e.onClick)||void 0===t||t.call(e,n,!0===this._open),this.host&&f(this.host,b.click,!0===this._open)})},this._disabled=!1,this._level=0,this._open=!1,this.state={_label:"",_level:0,_on:{}}}async focus(){return p(this.host,()=>m(this.buttonWcRef))}async click(){return d(this.host,async()=>h(this.buttonWcRef))}render(){const{_open:n,_label:t,_disabled:i,_level:l}=this.state,a="kol-accordion",s={id:this.nonce,label:t,open:n,disabled:i,level:l,onClick:this.handleOnClick,class:a,HeadingProps:{class:`${a}__heading`},HeadingButtonProps:{ref:this.setButtonWcRef,class:`${a}__heading-button`},ContentProps:{class:`${a}__content`,wrapperClass:`${a}__wrapper`,animationClass:`${a}__wrapper-animation`}};return e(o,Object.assign({key:"93edb8c6b3a39cfd468028a47214725a77ac6f67"},s),e("slot",{key:"1ac556846b4eeb89f9d61e4158160212f9170b25"}))}validateDisabled(n){a(this,n)}validateLabel(n){s(this,n,{required:!0})}validateLevel(n){u(this,n)}validateOn(n){k(this,n)}validateOpen(n){r(this,n)}componentWillLoad(){this.validateDisabled(this._disabled),this.validateLabel(this._label),this.validateLevel(this._level),this.validateOn(this._on),this.validateOpen(this._open)}get host(){return t(this)}static get watchers(){return{_disabled:["validateDisabled"],_label:["validateLabel"],_level:["validateLevel"],_on:["validateOn"],_open:["validateOpen"]}}};y.style={default:g};export{y as kol_accordion};
4
+ import{r as n,h as e,g as t}from"./index-Bc-dkuUs.js";import{K as o}from"./Collapsible-BPzPZuCM.js";import{b as i,c as l}from"./common-BqV6Zb30.js";import{v as a}from"./disabled-BBn2JEzf.js";import{v as s}from"./label-vxVEH2gH.js";import{v as r}from"./open-BMZVrISI.js";import{n as c}from"./dev.utils-UUgQWQxj.js";import{d,s as h}from"./element-click-BTxuJDNT.js";import{d as p,s as m}from"./element-focus-BKUtVrWY.js";import{d as f,K as b}from"./events-DHTi_wtD.js";import{w as u}from"./validation-CH4ZrnXs.js";import"./tslib.es6-CxX45GIN.js";import"./component-names-Dy77vq43.js";import"./clsx-COFh-Vc8.js";import"./Heading-BrSxbA87.js";import"./level-C9aFQZkd.js";import"./normalizers-C14RETgU.js";import"./_Uint8Array-kJHDjtoP.js";import"./isArray-CcrBs4JM.js";const k=(n,e)=>{i(n,"_on",n=>"object"==typeof n&&null!==n,new Set(["AccordionCallbacksPropType {Events.onClick}"]),e)},g='/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type=\'checkbox\'], [type=\'radio\'], [type=\'range\']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don\'t want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n .hastooltip {\n z-index: 900 !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n/* For animation technique see https://css-tricks.com/css-grid-can-do-auto-height-transitions/ */\n@layer kol-component {\n @media (prefers-reduced-motion) {\n .collapsible__wrapper-animation, .collapsible__wrapper {\n transition: none !important;\n }\n }\n .collapsible {\n /* @see https://github.com/public-ui/kolibri/issues/5952 */\n }\n @media print {\n :not(.collapsible--open) .collapsible__wrapper-animation {\n display: none;\n }\n }\n .collapsible__wrapper {\n /* Forces the element into its own GPU compositing layer (via 3D transform). Helps prevent rendering/layout bugs (e.g. #7511) and may improve animation performance. */\n transform: translateZ(0);\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n grid-template-rows: 0fr;\n transition: grid-template-rows 0.3s;\n }\n .collapsible__wrapper-animation {\n opacity: 0;\n transform: scaleY(0);\n transform-origin: top;\n min-height: 0;\n /* This property is important to keep in sync with the visual transition (template-rows). Without it interactive elements within the accordion would stay focusable. */\n visibility: hidden;\n transition: transform 0.3s, opacity 0.3s, visibility 0.3s;\n }\n .collapsible--open .collapsible__wrapper {\n grid-template-rows: 1fr;\n }\n .collapsible--open .collapsible__wrapper-animation {\n opacity: 1;\n transform: scaleY(1);\n visibility: visible;\n }\n .collapsible {\n /*\n * Inside a button, the caption text is always centered.\n * So we have to align the text to the left.\n */\n }\n .collapsible__heading-button button .kol-span {\n align-items: flex-start;\n }\n .collapsible--open:focus-within {\n position: relative;\n z-index: 100;\n }\n}\n@font-face {\n font-family: "kolicons";\n src: url("kolicons.eot?t=1777029041506"); /* IE9*/\n src: url("kolicons.eot?t=1777029041506#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1777029041506") format("woff2"), url("kolicons.woff?t=1777029041506") format("woff"), url("kolicons.ttf?t=1777029041506") format("truetype"), url("kolicons.svg?t=1777029041506#kolicons") format("svg"); /* iOS 4.1- */\n}\n@layer kol-component {\n [class^=kolicon-], [class*=" kolicon-"] {\n font-family: "kolicons";\n font-style: normal;\n font-weight: 400;\n line-height: 1em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .kolicon-alert-error::before {\n content: "\\ea01";\n }\n .kolicon-alert-info::before {\n content: "\\ea02";\n }\n .kolicon-alert-success::before {\n content: "\\ea03";\n }\n .kolicon-alert-warning::before {\n content: "\\ea04";\n }\n .kolicon-check::before {\n content: "\\ea05";\n }\n .kolicon-chevron-double-left::before {\n content: "\\ea06";\n }\n .kolicon-chevron-double-right::before {\n content: "\\ea07";\n }\n .kolicon-chevron-down::before {\n content: "\\ea08";\n }\n .kolicon-chevron-left::before {\n content: "\\ea09";\n }\n .kolicon-chevron-right::before {\n content: "\\ea0a";\n }\n .kolicon-chevron-up::before {\n content: "\\ea0b";\n }\n .kolicon-cogwheel::before {\n content: "\\ea0c";\n }\n .kolicon-cross::before {\n content: "\\ea0d";\n }\n .kolicon-eye-closed::before {\n content: "\\ea0e";\n }\n .kolicon-eye::before {\n content: "\\ea0f";\n }\n .kolicon-house::before {\n content: "\\ea10";\n }\n .kolicon-kolibri::before {\n content: "\\ea11";\n }\n .kolicon-link-external::before {\n content: "\\ea12";\n }\n .kolicon-link::before {\n content: "\\ea13";\n }\n .kolicon-minus::before {\n content: "\\ea14";\n }\n .kolicon-plus::before {\n content: "\\ea15";\n }\n .kolicon-settings::before {\n content: "\\ea16";\n }\n .kolicon-sort-asc::before {\n content: "\\ea17";\n }\n .kolicon-sort-desc::before {\n content: "\\ea18";\n }\n .kolicon-sort-neutral::before {\n content: "\\ea19";\n }\n .kolicon-up::before {\n content: "\\ea1a";\n }\n .kolicon-version::before {\n content: "\\ea1b";\n }\n}\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n}';l("[KolAccordion] Anfrage nach einer KolAccordionGroup bei dem immer nur ein Accordion geöffnet ist.\n\n- onClick auf der KolAccordion anwenden\n- Click-Event prüft den _open-Status der Accordions\n- Logik Öffnet und Schließt entsprechend"),l("[KolAccordion] Tab-Sperre des Inhalts im geschlossenen Zustand.");const y=class{constructor(e){n(this,e),this.nonce=c(),this.setButtonWcRef=n=>{this.buttonWcRef=n},this.handleOnClick=n=>{this._open=!this._open,setTimeout(()=>{var e,t;null===(t=null===(e=this.state._on)||void 0===e?void 0:e.onClick)||void 0===t||t.call(e,n,!0===this._open),this.host&&f(this.host,b.click,!0===this._open)})},this._disabled=!1,this._level=0,this._open=!1,this.state={_label:"",_level:0,_on:{}}}async focus(){return p(this.host,()=>m(this.buttonWcRef))}async click(){return d(this.host,async()=>h(this.buttonWcRef))}render(){const{_open:n,_label:t,_disabled:i,_level:l}=this.state,a="kol-accordion",s={id:this.nonce,label:t,open:n,disabled:i,level:l,onClick:this.handleOnClick,class:a,HeadingProps:{class:`${a}__heading`},HeadingButtonProps:{ref:this.setButtonWcRef,class:`${a}__heading-button`},ContentProps:{class:`${a}__content`,wrapperClass:`${a}__wrapper`,animationClass:`${a}__wrapper-animation`}};return e(o,Object.assign({key:"93edb8c6b3a39cfd468028a47214725a77ac6f67"},s),e("slot",{key:"1ac556846b4eeb89f9d61e4158160212f9170b25"}))}validateDisabled(n){a(this,n)}validateLabel(n){s(this,n,{required:!0})}validateLevel(n){u(this,n)}validateOn(n){k(this,n)}validateOpen(n){r(this,n)}componentWillLoad(){this.validateDisabled(this._disabled),this.validateLabel(this._label),this.validateLevel(this._level),this.validateOn(this._on),this.validateOpen(this._open)}get host(){return t(this)}static get watchers(){return{_disabled:["validateDisabled"],_label:["validateLabel"],_level:["validateLevel"],_on:["validateOn"],_open:["validateOpen"]}}};y.style={default:g};export{y as kol_accordion};
@@ -1 +1 @@
1
- {"version":3,"names":["registerInstance","h","getElement","KolCollapsibleFc","watchValidator","featureHint","validateDisabled","validateLabel","validateOpen","nonce","delegateClick","setClick","delegateFocus","setFocus","dispatchDomEvent","KolEvent","watchHeadingLevel","validateAccordionCallbacks","component","value","Set","defaultStyleCss","KolAccordion","constructor","hostRef","this","setButtonWcRef","ref","buttonWcRef","handleOnClick","event","_open","setTimeout","_a","_b","state","_on","onClick","call","host","click","_disabled","_level","_label","focus","async","render","rootClass","props","id","label","open","disabled","level","class","HeadingProps","HeadingButtonProps","ContentProps","wrapperClass","animationClass","Object","assign","key","required","validateLevel","validateOn","on","componentWillLoad","watchers","style","default"],"sources":["0"],"mappings":";;;YAGcA,OAAkBC,OAAQC,MAAkB,kCAC5CC,MAAwB,wCACxBC,OAAqBC,MAAmB,mCACxCC,MAAwB,qCACxBC,MAAqB,kCACrBC,MAAoB,iCACpBC,MAAa,iCACbC,OAAoBC,MAAgB,0CACpCC,OAAoBC,MAAgB,0CACpCC,OAAuBC,MAAgB,mCACvCC,MAAyB,iCAChC,gCACA,sCACA,2BACA,8BACA,4BACA,kCACA,kCACA,wBAEP,MAAMC,EAA6B,CAACC,EAAWC,KAC3Cf,EAAec,EAAW,OAAQC,UAAiBA,IAAU,UAAYA,IAAU,MAAM,IAAIC,IAAI,CAAC,gDAAiDD,EAAM,EAG7J,MAAME,EAAkB,mhTAExBhB,EAAY,+OAKZA,EAAY,mEACZ,MAAMiB,EAAe,MACjB,WAAAC,CAAYC,GACRxB,EAAiByB,KAAMD,GACvBC,KAAKhB,MAAQA,IACbgB,KAAKC,eAAkBC,IACnBF,KAAKG,YAAcD,CAAG,EAE1BF,KAAKI,cAAiBC,IAClBL,KAAKM,OAASN,KAAKM,MACnBC,YAAW,KACP,IAAIC,EAAIC,GACPA,GAAMD,EAAKR,KAAKU,MAAMC,OAAS,MAAQH,SAAY,OAAS,EAAIA,EAAGI,WAAa,MAAQH,SAAY,OAAS,EAAIA,EAAGI,KAAKL,EAAIH,EAAOL,KAAKM,QAAU,MACpJ,GAAIN,KAAKc,KAAM,CACXzB,EAAiBW,KAAKc,KAAMxB,EAASyB,MAAOf,KAAKM,QAAU,KAC/D,IACF,EAENN,KAAKgB,UAAY,MACjBhB,KAAKiB,OAAS,EACdjB,KAAKM,MAAQ,MACbN,KAAKU,MAAQ,CACTQ,OAAQ,GACRD,OAAQ,EACRN,IAAK,CAAC,EAEd,CACA,WAAMQ,GACF,OAAOhC,EAAca,KAAKc,MAAM,IAAM1B,EAASY,KAAKG,cACxD,CACA,WAAMY,GACF,OAAO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MAAQ,CACjBC,QAASjD,UAGJC","ignoreList":[]}
1
+ {"version":3,"names":["registerInstance","h","getElement","KolCollapsibleFc","watchValidator","featureHint","validateDisabled","validateLabel","validateOpen","nonce","delegateClick","setClick","delegateFocus","setFocus","dispatchDomEvent","KolEvent","watchHeadingLevel","validateAccordionCallbacks","component","value","Set","defaultStyleCss","KolAccordion","constructor","hostRef","this","setButtonWcRef","ref","buttonWcRef","handleOnClick","event","_open","setTimeout","_a","_b","state","_on","onClick","call","host","click","_disabled","_level","_label","focus","async","render","rootClass","props","id","label","open","disabled","level","class","HeadingProps","HeadingButtonProps","ContentProps","wrapperClass","animationClass","Object","assign","key","required","validateLevel","validateOn","on","componentWillLoad","watchers","style","default"],"sources":["0"],"mappings":";;;YAGcA,OAAkBC,OAAQC,MAAkB,kCAC5CC,MAAwB,wCACxBC,OAAqBC,MAAmB,mCACxCC,MAAwB,qCACxBC,MAAqB,kCACrBC,MAAoB,iCACpBC,MAAa,iCACbC,OAAoBC,MAAgB,0CACpCC,OAAoBC,MAAgB,0CACpCC,OAAuBC,MAAgB,mCACvCC,MAAyB,iCAChC,gCACA,sCACA,2BACA,8BACA,4BACA,kCACA,kCACA,wBAEP,MAAMC,EAA6B,CAACC,EAAWC,KAC3Cf,EAAec,EAAW,OAAQC,UAAiBA,IAAU,UAAYA,IAAU,MAAM,IAAIC,IAAI,CAAC,gDAAiDD,EAAM,EAG7J,MAAME,EAAkB,ggTAExBhB,EAAY,+OAKZA,EAAY,mEACZ,MAAMiB,EAAe,MACjB,WAAAC,CAAYC,GACRxB,EAAiByB,KAAMD,GACvBC,KAAKhB,MAAQA,IACbgB,KAAKC,eAAkBC,IACnBF,KAAKG,YAAcD,CAAG,EAE1BF,KAAKI,cAAiBC,IAClBL,KAAKM,OAASN,KAAKM,MACnBC,YAAW,KACP,IAAIC,EAAIC,GACPA,GAAMD,EAAKR,KAAKU,MAAMC,OAAS,MAAQH,SAAY,OAAS,EAAIA,EAAGI,WAAa,MAAQH,SA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KAAMN,EACvB,CACA,iBAAAgD,GACI1C,KAAKnB,iBAAiBmB,KAAKgB,WAC3BhB,KAAKlB,cAAckB,KAAKkB,QACxBlB,KAAKuC,cAAcvC,KAAKiB,QACxBjB,KAAKwC,WAAWxC,KAAKW,KACrBX,KAAKjB,aAAaiB,KAAKM,MAC3B,CACA,QAAIQ,GAAS,OAAOrC,EAAWuB,KAAO,CACtC,mBAAW2C,GAAa,MAAO,CAC3B3B,UAAa,CAAC,oBACdE,OAAU,CAAC,iBACXD,OAAU,CAAC,iBACXN,IAAO,CAAC,cACRL,MAAS,CAAC,gBACX,GAEPT,EAAa+C,MAAQ,CACjBC,QAASjD,UAGJC","ignoreList":[]}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as t,h as s,g as e}from"./index-B7tv7olz.js";import{K as i}from"./Alert-Cz3oclef.js";import{b as a,e as o,s as l}from"./common-BqV6Zb30.js";import{v as r}from"./has-closer-CfUBQHmY.js";import{v as n}from"./label-vxVEH2gH.js";import{d as h,K as c}from"./events-DHTi_wtD.js";import{w as d}from"./validation-BytKl095.js";import"./tslib.es6-CxX45GIN.js";import"./clsx-COFh-Vc8.js";import"./component-names-Dy77vq43.js";import"./i18n-BVaUp6qp.js";import"./i18n-B2d_exHc.js";import"./bem-registry-Bux_TllX.js";import"./component-_Y75jltB.js";import"./Heading-D23yWoVT.js";import"./level-Bwrb_jzT.js";import"./normalizers-DnkJhVYZ.js";import"./_Uint8Array-kJHDjtoP.js";import"./isArray-CcrBs4JM.js";const m=["default","info","success","warning","error"],v=t=>"string"==typeof t&&m.includes(t),p=(t,e)=>{a(t,"_type",v,new Set(m),e)},f=["card","msg"],_=t=>"string"==typeof t&&f.includes(t),j=(t,e)=>{a(t,"_variant",_,new Set(f),e)},b=class{constructor(e){t(this,e),this.close=()=>{var t,e;null===(e=null===(t=this._on)||void 0===t?void 0:t.onClose)||void 0===e||e.call(t,new Event("Close")),this.host&&h(this.host,c.close)},this.handleAlertTimeout=()=>{this.validateAlert(!1)},this._alert=!1,this._hasCloser=!1,this._level=0,this._type="default",this._variant="msg",this.state={_level:0},this.validateOnValue=t=>"object"==typeof t&&null!==t&&"function"==typeof t.onClose}render(){const{_alert:t,_hasCloser:e,_label:a,_level:l,_type:o,_variant:r}=this.state,n={alert:t,hasCloser:e,label:a,level:l,type:o,variant:r,onCloserClick:this.close,onAlertTimeout:this.handleAlertTimeout};return s(i,Object.assign({key:"ab90b52cbda1d61514c3acd292d0bd6d91f0c9d5"},n),s("slot",{key:"6a7e2a89cfabde71c1140d4cf5de28e99bc09ef4"}))}validateAlert(t){o(this,"_alert",t)}validateHasCloser(t){r(this,t)}validateLabel(t){n(this,t)}validateLevel(t){d(this,t)}validateOn(t){this.validateOnValue(t)&&l(this,"_on",{onClose:t.onClose})}validateType(t){p(this,t)}validateVariant(t){j(this,t)}componentWillLoad(){this.validateAlert(this._alert),this.validateHasCloser(this._hasCloser),this.validateLabel(this._label),this.validateLevel(this._level),this.validateOn(this._on),this.validateType(this._type),this.validateVariant(this._variant)}get host(){return e(this)}static get watchers(){return{_alert:["validateAlert"],_hasCloser:["validateHasCloser"],_label:["validateLabel"],_level:["validateLevel"],_on:["validateOn"],_type:["validateType"],_variant:["validateVariant"]}}};export{b as kol_alert_wc};
4
+ import{r as t,h as s,g as e}from"./index-Bc-dkuUs.js";import{K as i}from"./Alert-CNbBKPGN.js";import{b as a,e as o,s as r}from"./common-BqV6Zb30.js";import{v as l}from"./has-closer-CfUBQHmY.js";import{v as n}from"./label-vxVEH2gH.js";import{d as h,K as c}from"./events-DHTi_wtD.js";import{w as d}from"./validation-CH4ZrnXs.js";import"./tslib.es6-CxX45GIN.js";import"./clsx-COFh-Vc8.js";import"./component-names-Dy77vq43.js";import"./i18n-BVaUp6qp.js";import"./i18n-B2d_exHc.js";import"./bem-registry-Bux_TllX.js";import"./component-OtHwqg1I.js";import"./Heading-BrSxbA87.js";import"./level-C9aFQZkd.js";import"./normalizers-C14RETgU.js";import"./_Uint8Array-kJHDjtoP.js";import"./isArray-CcrBs4JM.js";const m=["default","info","success","warning","error"],v=t=>"string"==typeof t&&m.includes(t),p=(t,e)=>{a(t,"_type",v,new Set(m),e)},f=["card","msg"],_=t=>"string"==typeof t&&f.includes(t),j=(t,e)=>{a(t,"_variant",_,new Set(f),e)},b=class{constructor(e){t(this,e),this.close=()=>{var t,e;null===(e=null===(t=this._on)||void 0===t?void 0:t.onClose)||void 0===e||e.call(t,new Event("Close")),this.host&&h(this.host,c.close)},this.handleAlertTimeout=()=>{this.validateAlert(!1)},this._alert=!1,this._hasCloser=!1,this._level=0,this._type="default",this._variant="msg",this.state={_level:0},this.validateOnValue=t=>"object"==typeof t&&null!==t&&"function"==typeof t.onClose}render(){const{_alert:t,_hasCloser:e,_label:a,_level:l,_type:r,_variant:o}=this.state,n={alert:t,hasCloser:e,label:a,level:l,type:r,variant:o,onCloserClick:this.close,onAlertTimeout:this.handleAlertTimeout};return s(i,Object.assign({key:"ab90b52cbda1d61514c3acd292d0bd6d91f0c9d5"},n),s("slot",{key:"6a7e2a89cfabde71c1140d4cf5de28e99bc09ef4"}))}validateAlert(t){o(this,"_alert",t)}validateHasCloser(t){l(this,t)}validateLabel(t){n(this,t)}validateLevel(t){d(this,t)}validateOn(t){this.validateOnValue(t)&&r(this,"_on",{onClose:t.onClose})}validateType(t){p(this,t)}validateVariant(t){j(this,t)}componentWillLoad(){this.validateAlert(this._alert),this.validateHasCloser(this._hasCloser),this.validateLabel(this._label),this.validateLevel(this._level),this.validateOn(this._on),this.validateType(this._type),this.validateVariant(this._variant)}get host(){return e(this)}static get watchers(){return{_alert:["validateAlert"],_hasCloser:["validateHasCloser"],_label:["validateLabel"],_level:["validateLevel"],_on:["validateOn"],_type:["validateType"],_variant:["validateVariant"]}}};export{b as kol_alert_wc};
@@ -1 +1 @@
1
- {"version":3,"file":"kol-alert.entry.esm.js","sources":["src/components/alert/style.scss?tag=kol-alert&mode=default&encapsulation=shadow","src/components/alert/shadow.tsx"],"sourcesContent":["@use '../@shared/global' as *;\n@use '../@shared/alert.mixin' as *;\n\n@layer kol-component {\n\t@include kol-alert;\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, h, Prop, State } from '@stencil/core';\nimport { KolAlertWcTag } from '../../core/component-names';\nimport type { AlertProps, AlertStates, AlertTypePropType, AlertVariantPropType, HeadingLevel, KoliBriAlertEventCallbacks, LabelPropType } from '../../schema';\n\n/**\n * The **Alert** component provides visual feedback to users. It consists of a color-coded container, a heading, content text, and an icon. The icon used and the color scheme depend on the `_type` of the alert.\n *\n * @slot - The content of the notification.\n */\n@Component({\n\ttag: 'kol-alert',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolAlert implements AlertProps {\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<KolAlertWcTag\n\t\t\t\t_alert={this._alert}\n\t\t\t\t_hasCloser={this._hasCloser}\n\t\t\t\t_label={this._label}\n\t\t\t\t_level={this._level}\n\t\t\t\t_on={this._on}\n\t\t\t\t_type={this._type}\n\t\t\t\t_variant={this._variant}\n\t\t\t>\n\t\t\t\t<slot />\n\t\t\t</KolAlertWcTag>\n\t\t);\n\t}\n\n\t/**\n\t * Defines whether the screen-readers should read out the notification.\n\t */\n\t@Prop() public _alert?: boolean = false;\n\n\t/**\n\t * Defines whether the element can be closed.\n\t * @TODO: Change type back to `HasCloserPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hasCloser?: boolean = false;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label?: LabelPropType;\n\n\t/**\n\t * Defines which H-level from 1-6 the heading has. 0 specifies no heading and is shown as bold text.\n\t */\n\t@Prop() public _level?: HeadingLevel = 0;\n\n\t/**\n\t * Gibt die EventCallback-Function für das Schließen des Alerts an.\n\t */\n\t@Prop() public _on?: KoliBriAlertEventCallbacks;\n\n\t/**\n\t * Defines either the type of the component or of the components interactive element.\n\t */\n\t@Prop() public _type?: AlertTypePropType = 'default';\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: AlertVariantPropType = 'msg';\n\n\t@State() public state: AlertStates = {\n\t\t_level: 0,\n\t};\n}\n"],"names":[],"mappings":";;;;;;;AAAA,MAAM,eAAe,GAAG,o4UAAo4U;;MCiB/4U,QAAQ,GAAA,MAAA;AAPrB,IAAA,WAAA,CAAA,OAAA,EAAA;;AA2BgB,QAAA,IAAM,CAAA,MAAA,GAAa,KAAK;AAMxB,QAAA,IAAU,CAAA,UAAA,GAAa,KAAK;AAU5B,QAAA,IAAM,CAAA,MAAA,GAAkB,CAAC;AAUzB,QAAA,IAAK,CAAA,KAAA,GAAuB,SAAS;AAKrC,QAAA,IAAQ,CAAA,QAAA,GAA0B,KAAK;QAEtC,IAAA,CAAA,KAAK,GAAgB;AACpC,YAAA,MAAM,EAAE,CAAC;SACT;AACD;IAvDO,MAAM,GAAA;AACZ,QAAA,QACC,EAAC,aAAa,EAAA,EAAA,GAAA,EAAA,0CAAA,EACb,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAA,EAEvB,CAAQ,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACO;;;;;;;;;"}
1
+ {"version":3,"file":"kol-alert.entry.esm.js","sources":["src/components/alert/style.scss?tag=kol-alert&mode=default&encapsulation=shadow","src/components/alert/shadow.tsx"],"sourcesContent":["@use '../@shared/global' as *;\n@use '../@shared/alert.mixin' as *;\n\n@layer kol-component {\n\t@include kol-alert;\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, h, Prop, State } from '@stencil/core';\nimport { KolAlertWcTag } from '../../core/component-names';\nimport type { AlertProps, AlertStates, AlertTypePropType, AlertVariantPropType, HeadingLevel, KoliBriAlertEventCallbacks, LabelPropType } from '../../schema';\n\n/**\n * The **Alert** component provides visual feedback to users. It consists of a color-coded container, a heading, content text, and an icon. The icon used and the color scheme depend on the `_type` of the alert.\n *\n * @slot - The content of the notification.\n */\n@Component({\n\ttag: 'kol-alert',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolAlert implements AlertProps {\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<KolAlertWcTag\n\t\t\t\t_alert={this._alert}\n\t\t\t\t_hasCloser={this._hasCloser}\n\t\t\t\t_label={this._label}\n\t\t\t\t_level={this._level}\n\t\t\t\t_on={this._on}\n\t\t\t\t_type={this._type}\n\t\t\t\t_variant={this._variant}\n\t\t\t>\n\t\t\t\t<slot />\n\t\t\t</KolAlertWcTag>\n\t\t);\n\t}\n\n\t/**\n\t * Defines whether the screen-readers should read out the notification.\n\t */\n\t@Prop() public _alert?: boolean = false;\n\n\t/**\n\t * Defines whether the element can be closed.\n\t * @TODO: Change type back to `HasCloserPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hasCloser?: boolean = false;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label?: LabelPropType;\n\n\t/**\n\t * Defines which H-level from 1-6 the heading has. 0 specifies no heading and is shown as bold text.\n\t */\n\t@Prop() public _level?: HeadingLevel = 0;\n\n\t/**\n\t * Gibt die EventCallback-Function für das Schließen des Alerts an.\n\t */\n\t@Prop() public _on?: KoliBriAlertEventCallbacks;\n\n\t/**\n\t * Defines either the type of the component or of the components interactive element.\n\t */\n\t@Prop() public _type?: AlertTypePropType = 'default';\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: AlertVariantPropType = 'msg';\n\n\t@State() public state: AlertStates = {\n\t\t_level: 0,\n\t};\n}\n"],"names":[],"mappings":";;;;;;;AAAA,MAAM,eAAe,GAAG,i3UAAi3U;;MCiB53U,QAAQ,GAAA,MAAA;AAPrB,IAAA,WAAA,CAAA,OAAA,EAAA;;AA2BgB,QAAA,IAAM,CAAA,MAAA,GAAa,KAAK;AAMxB,QAAA,IAAU,CAAA,UAAA,GAAa,KAAK;AAU5B,QAAA,IAAM,CAAA,MAAA,GAAkB,CAAC;AAUzB,QAAA,IAAK,CAAA,KAAA,GAAuB,SAAS;AAKrC,QAAA,IAAQ,CAAA,QAAA,GAA0B,KAAK;QAEtC,IAAA,CAAA,KAAK,GAAgB;AACpC,YAAA,MAAM,EAAE,CAAC;SACT;AACD;IAvDO,MAAM,GAAA;AACZ,QAAA,QACC,EAAC,aAAa,EAAA,EAAA,GAAA,EAAA,0CAAA,EACb,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAA,EAEvB,CAAQ,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACO;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as n,h as e}from"./index-B7tv7olz.js";import{a as o}from"./component-names-Dy77vq43.js";import"./common-BqV6Zb30.js";const t='@charset "UTF-8";\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type=\'checkbox\'], [type=\'radio\'], [type=\'range\']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don\'t want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n .hastooltip {\n z-index: 900 !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@font-face {\n font-family: "kolicons";\n src: url("kolicons.eot?t=1776785727439"); /* IE9*/\n src: url("kolicons.eot?t=1776785727439#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1776785727439") format("woff2"), url("kolicons.woff?t=1776785727439") format("woff"), url("kolicons.ttf?t=1776785727439") format("truetype"), url("kolicons.svg?t=1776785727439#kolicons") format("svg"); /* iOS 4.1- */\n}\n@layer kol-component {\n [class^=kolicon-], [class*=" kolicon-"] {\n font-family: "kolicons";\n font-style: normal;\n font-weight: 400;\n line-height: 1em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .kolicon-alert-error::before {\n content: "\\ea01";\n }\n .kolicon-alert-info::before {\n content: "\\ea02";\n }\n .kolicon-alert-success::before {\n content: "\\ea03";\n }\n .kolicon-alert-warning::before {\n content: "\\ea04";\n }\n .kolicon-check::before {\n content: "\\ea05";\n }\n .kolicon-chevron-double-left::before {\n content: "\\ea06";\n }\n .kolicon-chevron-double-right::before {\n content: "\\ea07";\n }\n .kolicon-chevron-down::before {\n content: "\\ea08";\n }\n .kolicon-chevron-left::before {\n content: "\\ea09";\n }\n .kolicon-chevron-right::before {\n content: "\\ea0a";\n }\n .kolicon-chevron-up::before {\n content: "\\ea0b";\n }\n .kolicon-cogwheel::before {\n content: "\\ea0c";\n }\n .kolicon-cross::before {\n content: "\\ea0d";\n }\n .kolicon-eye-closed::before {\n content: "\\ea0e";\n }\n .kolicon-eye::before {\n content: "\\ea0f";\n }\n .kolicon-house::before {\n content: "\\ea10";\n }\n .kolicon-kolibri::before {\n content: "\\ea11";\n }\n .kolicon-link-external::before {\n content: "\\ea12";\n }\n .kolicon-link::before {\n content: "\\ea13";\n }\n .kolicon-minus::before {\n content: "\\ea14";\n }\n .kolicon-plus::before {\n content: "\\ea15";\n }\n .kolicon-settings::before {\n content: "\\ea16";\n }\n .kolicon-sort-asc::before {\n content: "\\ea17";\n }\n .kolicon-sort-desc::before {\n content: "\\ea18";\n }\n .kolicon-sort-neutral::before {\n content: "\\ea19";\n }\n .kolicon-up::before {\n content: "\\ea1a";\n }\n .kolicon-version::before {\n content: "\\ea1b";\n }\n}\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-alert .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-alert :host {\n display: inline-block;\n }\n .kol-alert .kol-button {\n display: flex;\n min-height: var(--a11y-min-size);\n font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n text-decoration-line: none;\n }\n .kol-alert .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: "​";\n }\n .kol-alert .kol-button__text {\n flex: 1 0 100%;\n }\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n display: flex;\n place-items: center;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n }\n}',i=class{constructor(e){n(this,e),this._alert=!1,this._hasCloser=!1,this._level=0,this._type="default",this._variant="msg",this.state={_level:0}}render(){return e(o,{key:"721b696fb334639b5996187b75774aa357e7131c",_alert:this._alert,_hasCloser:this._hasCloser,_label:this._label,_level:this._level,_on:this._on,_type:this._type,_variant:this._variant},e("slot",{key:"49b4a02832d1ce95880243eaeb88bab7211f8137"}))}};i.style={default:t};export{i as kol_alert};
4
+ import{r as n,h as e}from"./index-Bc-dkuUs.js";import{a as o}from"./component-names-Dy77vq43.js";import"./common-BqV6Zb30.js";const t='@charset "UTF-8";\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type=\'checkbox\'], [type=\'radio\'], [type=\'range\']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don\'t want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n .hastooltip {\n z-index: 900 !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@font-face {\n font-family: "kolicons";\n src: url("kolicons.eot?t=1777029041506"); /* IE9*/\n src: url("kolicons.eot?t=1777029041506#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1777029041506") format("woff2"), url("kolicons.woff?t=1777029041506") format("woff"), url("kolicons.ttf?t=1777029041506") format("truetype"), url("kolicons.svg?t=1777029041506#kolicons") format("svg"); /* iOS 4.1- */\n}\n@layer kol-component {\n [class^=kolicon-], [class*=" kolicon-"] {\n font-family: "kolicons";\n font-style: normal;\n font-weight: 400;\n line-height: 1em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .kolicon-alert-error::before {\n content: "\\ea01";\n }\n .kolicon-alert-info::before {\n content: "\\ea02";\n }\n .kolicon-alert-success::before {\n content: "\\ea03";\n }\n .kolicon-alert-warning::before {\n content: "\\ea04";\n }\n .kolicon-check::before {\n content: "\\ea05";\n }\n .kolicon-chevron-double-left::before {\n content: "\\ea06";\n }\n .kolicon-chevron-double-right::before {\n content: "\\ea07";\n }\n .kolicon-chevron-down::before {\n content: "\\ea08";\n }\n .kolicon-chevron-left::before {\n content: "\\ea09";\n }\n .kolicon-chevron-right::before {\n content: "\\ea0a";\n }\n .kolicon-chevron-up::before {\n content: "\\ea0b";\n }\n .kolicon-cogwheel::before {\n content: "\\ea0c";\n }\n .kolicon-cross::before {\n content: "\\ea0d";\n }\n .kolicon-eye-closed::before {\n content: "\\ea0e";\n }\n .kolicon-eye::before {\n content: "\\ea0f";\n }\n .kolicon-house::before {\n content: "\\ea10";\n }\n .kolicon-kolibri::before {\n content: "\\ea11";\n }\n .kolicon-link-external::before {\n content: "\\ea12";\n }\n .kolicon-link::before {\n content: "\\ea13";\n }\n .kolicon-minus::before {\n content: "\\ea14";\n }\n .kolicon-plus::before {\n content: "\\ea15";\n }\n .kolicon-settings::before {\n content: "\\ea16";\n }\n .kolicon-sort-asc::before {\n content: "\\ea17";\n }\n .kolicon-sort-desc::before {\n content: "\\ea18";\n }\n .kolicon-sort-neutral::before {\n content: "\\ea19";\n }\n .kolicon-up::before {\n content: "\\ea1a";\n }\n .kolicon-version::before {\n content: "\\ea1b";\n }\n}\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-alert .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-alert :host {\n display: inline-block;\n }\n .kol-alert .kol-button {\n display: flex;\n min-height: var(--a11y-min-size);\n font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n text-decoration-line: none;\n }\n .kol-alert .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: "​";\n }\n .kol-alert .kol-button__text {\n flex: 1 0 100%;\n }\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n display: flex;\n place-items: center;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n }\n}',i=class{constructor(e){n(this,e),this._alert=!1,this._hasCloser=!1,this._level=0,this._type="default",this._variant="msg",this.state={_level:0}}render(){return e(o,{key:"721b696fb334639b5996187b75774aa357e7131c",_alert:this._alert,_hasCloser:this._hasCloser,_label:this._label,_level:this._level,_on:this._on,_type:this._type,_variant:this._variant},e("slot",{key:"49b4a02832d1ce95880243eaeb88bab7211f8137"}))}};i.style={default:t};export{i as kol_alert};
@@ -1 +1 @@
1
- {"version":3,"names":["registerInstance","h","KolAlertWcTag","defaultStyleCss","KolAlert","constructor","hostRef","this","_alert","_hasCloser","_level","_type","_variant","state","render","key","_label","_on","style","default"],"sources":["0"],"mappings":";;;YAGcA,OAAkBC,MAAS,kCAC3BC,MAAqB,sCAC5B,uBAEP,MAAMC,EAAkB,szUAExB,MAAMC,EAAW,MACb,WAAAC,CAAYC,GACRN,EAAiBO,KAAMD,GACvBC,KAAKC,OAAS,MACdD,KAAKE,WAAa,MAClBF,KAAKG,OAAS,EACdH,KAAKI,MAAQ,UACbJ,KAAKK,SAAW,MAChBL,KAAKM,MAAQ,CACTH,OAAQ,EAEhB,CACA,MAAAI,GACI,OAAQb,EAAEC,EAAe,CAAEa,IAAK,2CAA4CP,OAAQD,KAAKC,OAAQC,WAAYF,KAAKE,WAAYO,OAAQT,KAAKS,OAAQN,OAAQH,KAAKG,OAAQO,IAAKV,KAAKU,IAAKN,MAAOJ,KAAKI,MAAOC,SAAUL,KAAKK,UAAYX,EAAE,OAAQ,CAAEc,IAAK,6CAC1P,GAEJX,EAASc,MAAQ,CACbC,QAAShB,UAGJC","ignoreList":[]}
1
+ {"version":3,"names":["registerInstance","h","KolAlertWcTag","defaultStyleCss","KolAlert","constructor","hostRef","this","_alert","_hasCloser","_level","_type","_variant","state","render","key","_label","_on","style","default"],"sources":["0"],"mappings":";;;YAGcA,OAAkBC,MAAS,kCAC3BC,MAAqB,sCAC5B,uBAEP,MAAMC,EAAkB,myUAExB,MAAMC,EAAW,MACb,WAAAC,CAAYC,GACRN,EAAiBO,KAAMD,GACvBC,KAAKC,OAAS,MACdD,KAAKE,WAAa,MAClBF,KAAKG,OAAS,EACdH,KAAKI,MAAQ,UACbJ,KAAKK,SAAW,MAChBL,KAAKM,MAAQ,CACTH,OAAQ,EAEhB,CACA,MAAAI,GACI,OAAQb,EAAEC,EAAe,CAAEa,IAAK,2CAA4CP,OAAQD,KAAKC,OAAQC,WAAYF,KAAKE,WAAYO,OAAQT,KAAKS,OAAQN,OAAQH,KAAKG,OAAQO,IAAKV,KAAKU,IAAKN,MAAOJ,KAAKI,MAAOC,SAAUL,KAAKK,UAAYX,EAAE,OAAQ,CAAEc,IAAK,6CAC1P,GAEJX,EAASc,MAAQ,CACbC,QAAShB,UAGJC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"kol-avatar.entry.esm.js","sources":["src/internal/props/color.ts","src/internal/functional-components/avatar/component.tsx","src/internal/functional-components/avatar/api.tsx","src/internal/functional-components/avatar/controller.ts","src/components/avatar/style.scss?tag=kol-avatar&mode=default&encapsulation=shadow","src/components/avatar/component.tsx"],"sourcesContent":["import type { ColorPair } from '../../schema';\nimport { createContrastColorPair } from '../../schema';\nimport { createPropDefinition, type Prop } from './helpers/factory';\n\n/**\n * Color prop for foreground/background color pairs\n *\n * Description:\n * Defines a color pair consisting of a foreground (text) and background color. Both colors\n * must be provided as valid hex values. The component automatically calculates contrast-safe\n * color pairs to ensure readability.\n *\n * Usage (according to WCAG 2.1):\n * - Single hex value: color=\"#003366\" (background; foreground is auto-calculated for contrast)\n * - Color pair object: color={ backgroundColor: \"#003366\", foregroundColor: \"#ffffff\" }\n * - All color combinations must meet WCAG contrast requirements:\n * - Normal text: minimum contrast ratio 4.5:1 (WCAG 1.4.3 Contrast Minimum, Level AA)\n * - Large text (≥18pt or ≥14pt bold): minimum contrast ratio 3:1\n * - Enhanced: minimum contrast ratio 7:1 for normal text (WCAG 1.4.6 Contrast Enhanced, Level AAA)\n * - Non-text elements (icons, borders) require a minimum contrast ratio of 3:1 (WCAG 1.4.11 Non-text Contrast)\n * - Color must not be the only means of conveying information (WCAG 1.4.1 Use of Color)\n *\n * @see https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html\n * @see https://www.w3.org/WAI/WCAG21/Understanding/contrast-enhanced.html\n * @see https://www.w3.org/WAI/WCAG21/Understanding/non-text-contrast.html\n * @see https://www.w3.org/WAI/WCAG21/Understanding/use-of-color.html\n */\nconst HEX_REGEX = /^#((\\d|[a-f]){8}|(\\d|[a-f]){6}|(\\d|[a-f]){3,4})$/i;\nfunction isHexString(value: string): boolean {\n\treturn HEX_REGEX.test(value);\n}\n\nfunction normalizer(value: unknown): ColorPair {\n\tif (typeof value === 'string' && isHexString(value)) {\n\t\tconst colors = createContrastColorPair(value);\n\t\treturn {\n\t\t\tbackgroundColor: colors.background,\n\t\t\tforegroundColor: colors.foreground,\n\t\t};\n\t} else if (typeof value === 'object' && value) {\n\t\tconst colorPair = value as ColorPair;\n\t\tif (\n\t\t\ttypeof colorPair.backgroundColor === 'string' &&\n\t\t\ttypeof colorPair.foregroundColor === 'string' &&\n\t\t\tisHexString(colorPair.backgroundColor) &&\n\t\t\tisHexString(colorPair.foregroundColor)\n\t\t) {\n\t\t\tconst colors = createContrastColorPair({\n\t\t\t\tbackground: colorPair.backgroundColor,\n\t\t\t\tforeground: colorPair.foregroundColor,\n\t\t\t});\n\t\t\treturn {\n\t\t\t\tbackgroundColor: colors.background,\n\t\t\t\tforegroundColor: colors.foreground,\n\t\t\t};\n\t\t}\n\t}\n\tthrow new Error(`Invalid color ${value as string}`);\n}\n\nfunction validator(value: ColorPair) {\n\treturn isHexString(value.foregroundColor) && isHexString(value.backgroundColor);\n}\n\nexport type ColorProp = Prop<'color', ColorPair | string, ColorPair>;\nexport const colorProp = createPropDefinition<ColorProp>(\n\t'color',\n\t{\n\t\tbackgroundColor: '#d3d3d3',\n\t\tforegroundColor: '#3f3f3f',\n\t},\n\tnormalizer,\n\tvalidator,\n);\n","import type { FunctionalComponent as FC } from '@stencil/core';\nimport { h } from '@stencil/core';\n\nimport { translate } from '../../../i18n';\nimport { bem } from '../../../schema/bem-registry';\nimport type { FunctionalComponentProps } from '../generic-types';\nimport type { AvatarApi } from './api';\n\nconst BEM_BLOCK_AVATAR = 'kol-avatar';\nconst BEM_CLASS_AVATAR__IMAGE = bem(BEM_BLOCK_AVATAR, 'image');\nconst BEM_CLASS_AVATAR__INITIALS = bem(BEM_BLOCK_AVATAR, 'initials');\n\nexport const AvatarFC: FC<FunctionalComponentProps<AvatarApi>> = (props) => {\n\tconst { color, initials, label, src } = props;\n\n\treturn (\n\t\t<div\n\t\t\taria-label={translate('kol-avatar-alt', { placeholders: { name: label } })}\n\t\t\tclass=\"kol-avatar\"\n\t\t\trole=\"img\"\n\t\t\tstyle={{\n\t\t\t\tbackgroundColor: color.backgroundColor,\n\t\t\t\tcolor: color.foregroundColor,\n\t\t\t}}\n\t\t>\n\t\t\t{src ? (\n\t\t\t\t<img alt=\"\" aria-hidden=\"true\" class={BEM_CLASS_AVATAR__IMAGE} src={src} />\n\t\t\t) : (\n\t\t\t\t<span aria-hidden=\"true\" class={BEM_CLASS_AVATAR__INITIALS}>\n\t\t\t\t\t{initials}\n\t\t\t\t</span>\n\t\t\t)}\n\t\t</div>\n\t);\n};\n","import { colorProp, labelProp, srcProp } from '../../props';\nimport type { ApiFromConfig, PropsConfigShape } from '../generic-types';\n\nexport const avatarPropsConfig = {\n\toptional: [colorProp, srcProp],\n\trequired: [labelProp],\n} as const satisfies PropsConfigShape;\n\nexport type AvatarApi = ApiFromConfig<typeof avatarPropsConfig, { States: { initials: string } }>;\n","import type { ColorPair } from '../../../schema';\nimport { colorProp, labelProp, srcProp } from '../../props';\nimport { BaseController } from '../base-controller';\nimport type { ControllerInterface, ResolvedInputProps, StateAccess } from '../generic-types';\nimport type { AvatarApi } from './api';\nimport { avatarPropsConfig } from './api';\n\n/**\n * Formats a single name as an initial by taking the first character and converting it to uppercase.\n * @param name The name to format as an initial\n * @returns The uppercase first character, or empty string if name is empty\n */\nconst formatNameAsInitial = (name: string): string => {\n\tif (name.length === 0) {\n\t\treturn '';\n\t}\n\n\treturn name[0].toUpperCase();\n};\n\n/**\n * Normalizes the initials from a full name or label.\n * If the name contains multiple words, returns the first letters of the first and last words.\n * Otherwise, returns the first letter of the entire input.\n * @param value The input value to normalize as initials\n * @returns The normalized initials string\n */\nconst normalizeInitials = (value: string): string => {\n\tconst names = value.trim().split(/\\s+/); // split by any whitespace characters\n\tconst first = names[0];\n\tconst last = names[names.length - 1];\n\n\t// names might consist of only one word\n\tif (names.length >= 2 && first && last) {\n\t\treturn `${formatNameAsInitial(first)}${formatNameAsInitial(last)}`;\n\t}\n\n\treturn formatNameAsInitial(value);\n};\n\nexport class AvatarController extends BaseController<AvatarApi> implements ControllerInterface<AvatarApi> {\n\tpublic constructor(stateAccess: StateAccess<AvatarApi>) {\n\t\tsuper(stateAccess, avatarPropsConfig);\n\t}\n\n\tpublic componentWillLoad(props: ResolvedInputProps<AvatarApi>): void {\n\t\tconst { color, label, src } = props;\n\t\tthis.watchColor(color);\n\t\tthis.watchLabel(label);\n\t\tthis.watchSrc(src);\n\t}\n\n\tpublic watchColor(value?: string | ColorPair): void {\n\t\tcolorProp.apply(value, (v) => {\n\t\t\tthis.setRenderProp('color', v);\n\t\t});\n\t}\n\n\tpublic watchLabel(value?: string): void {\n\t\tlabelProp.apply(value, (v) => {\n\t\t\tthis.setRenderProp('label', v);\n\t\t\tthis.setState('initials', normalizeInitials(v));\n\t\t});\n\t}\n\n\tpublic watchSrc(value?: string): void {\n\t\tsrcProp.apply(value, (v) => {\n\t\t\tthis.setRenderProp('src', v);\n\t\t});\n\t}\n}\n","@use '../@shared/mixins' as *;\n@use '../@shared/global' as *;\n@use '../host-display-block' as *;\n\n@layer kol-component {\n\t.kol-avatar,\n\t.kol-avatar__image,\n\t.kol-avatar__initials {\n\t\tborder-radius: 50%;\n\t}\n\n\t.kol-avatar {\n\t\t/* Visible with forced colors */\n\t\toutline: transparent solid to-rem(1);\n\n\t\tdisplay: flex;\n\t\twidth: to-rem(100);\n\t\theight: to-rem(100);\n\n\t\t&__initials {\n\t\t\tbackground-color: inherit;\n\t\t\tmargin: auto;\n\n\t\t\tfont-size: to-rem(40);\n\t\t}\n\t}\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, h, Host, Prop, State, Watch } from '@stencil/core';\nimport type { AvatarApi } from '../../internal/functional-components/avatar/api';\nimport { AvatarFC } from '../../internal/functional-components/avatar/component';\nimport { AvatarController } from '../../internal/functional-components/avatar/controller';\nimport { BaseWebComponent } from '../../internal/functional-components/base-web-component';\nimport type { WebComponentInterface } from '../../internal/functional-components/generic-types';\nimport type { ColorPair } from '../../schema';\n\n/**\n * The **Avatar** component displays either a small image of the user or their initials if no image is available.\n */\n@Component({\n\ttag: 'kol-avatar',\n\tshadow: true,\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n})\nexport class KolAvatar extends BaseWebComponent<AvatarApi> implements WebComponentInterface<AvatarApi> {\n\tprivate readonly ctrl = new AvatarController(this.stateAccess);\n\n\t/**\n\t * Defines the backgroundColor and foregroundColor.\n\t */\n\t@Prop()\n\tpublic _color?: string | ColorPair;\n\n\t@Watch('_color')\n\tpublic watchColor(value?: string | ColorPair): void {\n\t\tthis.ctrl.watchColor(value);\n\t}\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop()\n\tpublic _label!: string;\n\n\t@Watch('_label')\n\tpublic watchLabel(value?: string): void {\n\t\tthis.ctrl.watchLabel(value);\n\t}\n\n\t/**\n\t * Sets the image `src` attribute to the given string.\n\t */\n\t@Prop()\n\tpublic _src?: string;\n\n\t@Watch('_src')\n\tpublic watchSrc(value?: string): void {\n\t\tthis.ctrl.watchSrc(value);\n\t}\n\n\t@State()\n\tpublic initials: string = '';\n\n\tpublic componentWillLoad(): void {\n\t\tthis.ctrl.componentWillLoad({\n\t\t\tcolor: this._color,\n\t\t\tlabel: this._label,\n\t\t\tsrc: this._src,\n\t\t});\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<AvatarFC\n\t\t\t\t\tcolor={this.ctrl.getRenderProp('color')}\n\t\t\t\t\tlabel={this.ctrl.getRenderProp('label')}\n\t\t\t\t\tsrc={this.ctrl.getRenderProp('src')}\n\t\t\t\t\tinitials={this.initials}\n\t\t\t\t/>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AA2BA,MAAM,SAA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AC,EACnC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACtB,CAAA,CACI;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"kol-avatar.entry.esm.js","sources":["src/internal/props/color.ts","src/internal/functional-components/avatar/component.tsx","src/internal/functional-components/avatar/api.tsx","src/internal/functional-components/avatar/controller.ts","src/components/avatar/style.scss?tag=kol-avatar&mode=default&encapsulation=shadow","src/components/avatar/component.tsx"],"sourcesContent":["import type { ColorPair } from '../../schema';\nimport { createContrastColorPair } from '../../schema';\nimport { createPropDefinition, type Prop } from './helpers/factory';\n\n/**\n * Color prop for foreground/background color pairs\n *\n * Description:\n * Defines a color pair consisting of a foreground (text) and background color. Both colors\n * must be provided as valid hex values. The component automatically calculates contrast-safe\n * color pairs to ensure readability.\n *\n * Usage (according to WCAG 2.1):\n * - Single hex value: color=\"#003366\" (background; foreground is auto-calculated for contrast)\n * - Color pair object: color={ backgroundColor: \"#003366\", foregroundColor: \"#ffffff\" }\n * - All color combinations must meet WCAG contrast requirements:\n * - Normal text: minimum contrast ratio 4.5:1 (WCAG 1.4.3 Contrast Minimum, Level AA)\n * - Large text (≥18pt or ≥14pt bold): minimum contrast ratio 3:1\n * - Enhanced: minimum contrast ratio 7:1 for normal text (WCAG 1.4.6 Contrast Enhanced, Level AAA)\n * - Non-text elements (icons, borders) require a minimum contrast ratio of 3:1 (WCAG 1.4.11 Non-text Contrast)\n * - Color must not be the only means of conveying information (WCAG 1.4.1 Use of Color)\n *\n * @see https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html\n * @see https://www.w3.org/WAI/WCAG21/Understanding/contrast-enhanced.html\n * @see https://www.w3.org/WAI/WCAG21/Understanding/non-text-contrast.html\n * @see https://www.w3.org/WAI/WCAG21/Understanding/use-of-color.html\n */\nconst HEX_REGEX = /^#((\\d|[a-f]){8}|(\\d|[a-f]){6}|(\\d|[a-f]){3,4})$/i;\nfunction isHexString(value: string): boolean {\n\treturn HEX_REGEX.test(value);\n}\n\nfunction normalizer(value: unknown): ColorPair {\n\tif (typeof value === 'string' && isHexString(value)) {\n\t\tconst colors = createContrastColorPair(value);\n\t\treturn {\n\t\t\tbackgroundColor: colors.background,\n\t\t\tforegroundColor: colors.foreground,\n\t\t};\n\t} else if (typeof value === 'object' && value) {\n\t\tconst colorPair = value as ColorPair;\n\t\tif (\n\t\t\ttypeof colorPair.backgroundColor === 'string' &&\n\t\t\ttypeof colorPair.foregroundColor === 'string' &&\n\t\t\tisHexString(colorPair.backgroundColor) &&\n\t\t\tisHexString(colorPair.foregroundColor)\n\t\t) {\n\t\t\tconst colors = createContrastColorPair({\n\t\t\t\tbackground: colorPair.backgroundColor,\n\t\t\t\tforeground: colorPair.foregroundColor,\n\t\t\t});\n\t\t\treturn {\n\t\t\t\tbackgroundColor: colors.background,\n\t\t\t\tforegroundColor: colors.foreground,\n\t\t\t};\n\t\t}\n\t}\n\tthrow new Error(`Invalid color ${value as string}`);\n}\n\nfunction validator(value: ColorPair) {\n\treturn isHexString(value.foregroundColor) && isHexString(value.backgroundColor);\n}\n\nexport type ColorProp = Prop<'color', ColorPair | string, ColorPair>;\nexport const colorProp = createPropDefinition<ColorProp>(\n\t'color',\n\t{\n\t\tbackgroundColor: '#d3d3d3',\n\t\tforegroundColor: '#3f3f3f',\n\t},\n\tnormalizer,\n\tvalidator,\n);\n","import type { FunctionalComponent as FC } from '@stencil/core';\nimport { h } from '@stencil/core';\n\nimport { translate } from '../../../i18n';\nimport { bem } from '../../../schema/bem-registry';\nimport type { FunctionalComponentProps } from '../generic-types';\nimport type { AvatarApi } from './api';\n\nconst BEM_BLOCK_AVATAR = 'kol-avatar';\nconst BEM_CLASS_AVATAR__IMAGE = bem(BEM_BLOCK_AVATAR, 'image');\nconst BEM_CLASS_AVATAR__INITIALS = bem(BEM_BLOCK_AVATAR, 'initials');\n\nexport const AvatarFC: FC<FunctionalComponentProps<AvatarApi>> = (props) => {\n\tconst { color, initials, label, src } = props;\n\n\treturn (\n\t\t<div\n\t\t\taria-label={translate('kol-avatar-alt', { placeholders: { name: label } })}\n\t\t\tclass=\"kol-avatar\"\n\t\t\trole=\"img\"\n\t\t\tstyle={{\n\t\t\t\tbackgroundColor: color.backgroundColor,\n\t\t\t\tcolor: color.foregroundColor,\n\t\t\t}}\n\t\t>\n\t\t\t{src ? (\n\t\t\t\t<img alt=\"\" aria-hidden=\"true\" class={BEM_CLASS_AVATAR__IMAGE} src={src} />\n\t\t\t) : (\n\t\t\t\t<span aria-hidden=\"true\" class={BEM_CLASS_AVATAR__INITIALS}>\n\t\t\t\t\t{initials}\n\t\t\t\t</span>\n\t\t\t)}\n\t\t</div>\n\t);\n};\n","import { colorProp, labelProp, srcProp } from '../../props';\nimport type { ApiFromConfig, PropsConfigShape } from '../generic-types';\n\nexport const avatarPropsConfig = {\n\toptional: [colorProp, srcProp],\n\trequired: [labelProp],\n} as const satisfies PropsConfigShape;\n\nexport type AvatarApi = ApiFromConfig<typeof avatarPropsConfig, { States: { initials: string } }>;\n","import type { ColorPair } from '../../../schema';\nimport { colorProp, labelProp, srcProp } from '../../props';\nimport { BaseController } from '../base-controller';\nimport type { ControllerInterface, ResolvedInputProps, StateAccess } from '../generic-types';\nimport type { AvatarApi } from './api';\nimport { avatarPropsConfig } from './api';\n\n/**\n * Formats a single name as an initial by taking the first character and converting it to uppercase.\n * @param name The name to format as an initial\n * @returns The uppercase first character, or empty string if name is empty\n */\nconst formatNameAsInitial = (name: string): string => {\n\tif (name.length === 0) {\n\t\treturn '';\n\t}\n\n\treturn name[0].toUpperCase();\n};\n\n/**\n * Normalizes the initials from a full name or label.\n * If the name contains multiple words, returns the first letters of the first and last words.\n * Otherwise, returns the first letter of the entire input.\n * @param value The input value to normalize as initials\n * @returns The normalized initials string\n */\nconst normalizeInitials = (value: string): string => {\n\tconst names = value.trim().split(/\\s+/); // split by any whitespace characters\n\tconst first = names[0];\n\tconst last = names[names.length - 1];\n\n\t// names might consist of only one word\n\tif (names.length >= 2 && first && last) {\n\t\treturn `${formatNameAsInitial(first)}${formatNameAsInitial(last)}`;\n\t}\n\n\treturn formatNameAsInitial(value);\n};\n\nexport class AvatarController extends BaseController<AvatarApi> implements ControllerInterface<AvatarApi> {\n\tpublic constructor(stateAccess: StateAccess<AvatarApi>) {\n\t\tsuper(stateAccess, avatarPropsConfig);\n\t}\n\n\tpublic componentWillLoad(props: ResolvedInputProps<AvatarApi>): void {\n\t\tconst { color, label, src } = props;\n\t\tthis.watchColor(color);\n\t\tthis.watchLabel(label);\n\t\tthis.watchSrc(src);\n\t}\n\n\tpublic watchColor(value?: string | ColorPair): void {\n\t\tcolorProp.apply(value, (v) => {\n\t\t\tthis.setRenderProp('color', v);\n\t\t});\n\t}\n\n\tpublic watchLabel(value?: string): void {\n\t\tlabelProp.apply(value, (v) => {\n\t\t\tthis.setRenderProp('label', v);\n\t\t\tthis.setState('initials', normalizeInitials(v));\n\t\t});\n\t}\n\n\tpublic watchSrc(value?: string): void {\n\t\tsrcProp.apply(value, (v) => {\n\t\t\tthis.setRenderProp('src', v);\n\t\t});\n\t}\n}\n","@use '../@shared/mixins' as *;\n@use '../@shared/global' as *;\n@use '../host-display-block' as *;\n\n@layer kol-component {\n\t.kol-avatar,\n\t.kol-avatar__image,\n\t.kol-avatar__initials {\n\t\tborder-radius: 50%;\n\t}\n\n\t.kol-avatar {\n\t\t/* Visible with forced colors */\n\t\toutline: transparent solid to-rem(1);\n\n\t\tdisplay: flex;\n\t\twidth: to-rem(100);\n\t\theight: to-rem(100);\n\n\t\t&__initials {\n\t\t\tbackground-color: inherit;\n\t\t\tmargin: auto;\n\n\t\t\tfont-size: to-rem(40);\n\t\t}\n\t}\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, h, Host, Prop, State, Watch } from '@stencil/core';\nimport type { AvatarApi } from '../../internal/functional-components/avatar/api';\nimport { AvatarFC } from '../../internal/functional-components/avatar/component';\nimport { AvatarController } from '../../internal/functional-components/avatar/controller';\nimport { BaseWebComponent } from '../../internal/functional-components/base-web-component';\nimport type { WebComponentInterface } from '../../internal/functional-components/generic-types';\nimport type { ColorPair } from '../../schema';\n\n/**\n * The **Avatar** component displays either a small image of the user or their initials if no image is available.\n */\n@Component({\n\ttag: 'kol-avatar',\n\tshadow: true,\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n})\nexport class KolAvatar extends BaseWebComponent<AvatarApi> implements WebComponentInterface<AvatarApi> {\n\tprivate readonly ctrl = new AvatarController(this.stateAccess);\n\n\t/**\n\t * Defines the backgroundColor and foregroundColor.\n\t */\n\t@Prop()\n\tpublic _color?: string | ColorPair;\n\n\t@Watch('_color')\n\tpublic watchColor(value?: string | ColorPair): void {\n\t\tthis.ctrl.watchColor(value);\n\t}\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop()\n\tpublic _label!: string;\n\n\t@Watch('_label')\n\tpublic watchLabel(value?: string): void {\n\t\tthis.ctrl.watchLabel(value);\n\t}\n\n\t/**\n\t * Sets the image `src` attribute to the given string.\n\t */\n\t@Prop()\n\tpublic _src?: string;\n\n\t@Watch('_src')\n\tpublic watchSrc(value?: string): void {\n\t\tthis.ctrl.watchSrc(value);\n\t}\n\n\t@State()\n\tpublic initials: string = '';\n\n\tpublic componentWillLoad(): void {\n\t\tthis.ctrl.componentWillLoad({\n\t\t\tcolor: this._color,\n\t\t\tlabel: this._label,\n\t\t\tsrc: this._src,\n\t\t});\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<AvatarFC\n\t\t\t\t\tcolor={this.ctrl.getRenderProp('color')}\n\t\t\t\t\tlabel={this.ctrl.getRenderProp('label')}\n\t\t\t\t\tsrc={this.ctrl.getRenderProp('src')}\n\t\t\t\t\tinitials={this.initials}\n\t\t\t\t/>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AA2BA,MAAM,SAAS,GAAG,mDAAmD;AACrE,S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,IAAI,CAAC,QAAQ,EACtB,CAAA,CACI;;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as n,r as e,H as t}from"./index-B7tv7olz.js";import{t as o}from"./i18n-BVaUp6qp.js";import{b as i}from"./bem-registry-Bux_TllX.js";import"./common-BqV6Zb30.js";import{c as r}from"./normalizers-DnkJhVYZ.js";import{c as a}from"./contrast-DK7TU5NR.js";import{l}from"./label-BEOW9ltS.js";import{B as s}from"./variant-quote-CHD0qMkY.js";import{s as c}from"./src-D1LGDerl.js";import{B as d}from"./base-controller-CXhqh4cR.js";import"./i18n-B2d_exHc.js";import"./_Uint8Array-kJHDjtoP.js";import"./isArray-CcrBs4JM.js";const h=/^#((\d|[a-f]){8}|(\d|[a-f]){6}|(\d|[a-f]){3,4})$/i;function m(n){return h.test(n)}function p(n){if("string"==typeof n&&m(n)){const e=a(n);return{backgroundColor:e.background,foregroundColor:e.foreground}}if("object"==typeof n&&n){const e=n;if("string"==typeof e.backgroundColor&&"string"==typeof e.foregroundColor&&m(e.backgroundColor)&&m(e.foregroundColor)){const n=a({background:e.backgroundColor,foreground:e.foregroundColor});return{backgroundColor:n.background,foregroundColor:n.foreground}}}throw new Error(`Invalid color ${n}`)}function f(n){return m(n.foregroundColor)&&m(n.backgroundColor)}const u=r("color",{backgroundColor:"#d3d3d3",foregroundColor:"#3f3f3f"},p,f),b="kol-avatar",g=i(b,"image"),k=i(b,"initials"),y=e=>{const{color:t,initials:r,label:i,src:a}=e;return n("div",{"aria-label":o("kol-avatar-alt",{placeholders:{name:i}}),class:"kol-avatar",role:"img",style:{backgroundColor:t.backgroundColor,color:t.foregroundColor}},a?n("img",{alt:"","aria-hidden":"true",class:g,src:a}):n("span",{"aria-hidden":"true",class:k},r))},w={optional:[u,c],required:[l]},v=n=>0===n.length?"":n[0].toUpperCase(),x=n=>{const e=n.trim().split(/\s+/),t=e[0],o=e[e.length-1];return e.length>=2&&t&&o?`${v(t)}${v(o)}`:v(n)};class z extends d{constructor(n){super(n,w)}componentWillLoad(n){const{color:e,label:t,src:o}=n;this.watchColor(e),this.watchLabel(t),this.watchSrc(o)}watchColor(n){u.apply(n,n=>{this.setRenderProp("color",n)})}watchLabel(n){l.apply(n,n=>{this.setRenderProp("label",n),this.setState("initials",x(n))})}watchSrc(n){c.apply(n,n=>{this.setRenderProp("src",n)})}}const _="/* forward the rem function */\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n .hastooltip {\n z-index: 900 !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n .kol-avatar,\n .kol-avatar__image,\n .kol-avatar__initials {\n border-radius: 50%;\n }\n .kol-avatar {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n display: flex;\n width: calc(100 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(100 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-avatar__initials {\n background-color: inherit;\n margin: auto;\n font-size: calc(40 * 1rem / var(--kolibri-root-font-size, 16));\n }\n}",j=class extends s{constructor(n){super(),e(this,n),this.ctrl=new z(this.stateAccess),this.initials=""}watchColor(n){this.ctrl.watchColor(n)}watchLabel(n){this.ctrl.watchLabel(n)}watchSrc(n){this.ctrl.watchSrc(n)}componentWillLoad(){this.ctrl.componentWillLoad({color:this._color,label:this._label,src:this._src})}render(){return n(t,{key:"293a0f642334d4058d3b129b69d7de334bb43866"},n(y,{key:"96c92705c57c43050b666513dfc65829a7be5047",color:this.ctrl.getRenderProp("color"),label:this.ctrl.getRenderProp("label"),src:this.ctrl.getRenderProp("src"),initials:this.initials}))}static get watchers(){return{_color:["watchColor"],_label:["watchLabel"],_src:["watchSrc"]}}};j.style={default:_};export{j as kol_avatar};
4
+ import{h as n,r as e,H as t}from"./index-Bc-dkuUs.js";import{t as o}from"./i18n-BVaUp6qp.js";import{b as i}from"./bem-registry-Bux_TllX.js";import"./common-BqV6Zb30.js";import{c as r}from"./normalizers-C14RETgU.js";import{c as a}from"./contrast-DK7TU5NR.js";import{l}from"./label-DK7sT-k5.js";import{B as s}from"./variant-quote-DI6q8gPw.js";import{s as c}from"./src-5egLLGof.js";import{B as d}from"./base-controller-CXhqh4cR.js";import"./i18n-B2d_exHc.js";import"./_Uint8Array-kJHDjtoP.js";import"./isArray-CcrBs4JM.js";const h=/^#((\d|[a-f]){8}|(\d|[a-f]){6}|(\d|[a-f]){3,4})$/i;function m(n){return h.test(n)}function f(n){if("string"==typeof n&&m(n)){const e=a(n);return{backgroundColor:e.background,foregroundColor:e.foreground}}if("object"==typeof n&&n){const e=n;if("string"==typeof e.backgroundColor&&"string"==typeof e.foregroundColor&&m(e.backgroundColor)&&m(e.foregroundColor)){const n=a({background:e.backgroundColor,foreground:e.foregroundColor});return{backgroundColor:n.background,foregroundColor:n.foreground}}}throw new Error(`Invalid color ${n}`)}function p(n){return m(n.foregroundColor)&&m(n.backgroundColor)}const u=r("color",{backgroundColor:"#d3d3d3",foregroundColor:"#3f3f3f"},f,p),b="kol-avatar",g=i(b,"image"),k=i(b,"initials"),y=e=>{const{color:t,initials:r,label:i,src:a}=e;return n("div",{"aria-label":o("kol-avatar-alt",{placeholders:{name:i}}),class:"kol-avatar",role:"img",style:{backgroundColor:t.backgroundColor,color:t.foregroundColor}},a?n("img",{alt:"","aria-hidden":"true",class:g,src:a}):n("span",{"aria-hidden":"true",class:k},r))},w={optional:[u,c],required:[l]},v=n=>0===n.length?"":n[0].toUpperCase(),x=n=>{const e=n.trim().split(/\s+/),t=e[0],o=e[e.length-1];return e.length>=2&&t&&o?`${v(t)}${v(o)}`:v(n)};class z extends d{constructor(n){super(n,w)}componentWillLoad(n){const{color:e,label:t,src:o}=n;this.watchColor(e),this.watchLabel(t),this.watchSrc(o)}watchColor(n){u.apply(n,n=>{this.setRenderProp("color",n)})}watchLabel(n){l.apply(n,n=>{this.setRenderProp("label",n),this.setState("initials",x(n))})}watchSrc(n){c.apply(n,n=>{this.setRenderProp("src",n)})}}const _="/* forward the rem function */\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n .hastooltip {\n z-index: 900 !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n .kol-avatar,\n .kol-avatar__image,\n .kol-avatar__initials {\n border-radius: 50%;\n }\n .kol-avatar {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n display: flex;\n width: calc(100 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(100 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-avatar__initials {\n background-color: inherit;\n margin: auto;\n font-size: calc(40 * 1rem / var(--kolibri-root-font-size, 16));\n }\n}",j=class extends s{constructor(n){super(),e(this,n),this.ctrl=new z(this.stateAccess),this.initials=""}watchColor(n){this.ctrl.watchColor(n)}watchLabel(n){this.ctrl.watchLabel(n)}watchSrc(n){this.ctrl.watchSrc(n)}componentWillLoad(){this.ctrl.componentWillLoad({color:this._color,label:this._label,src:this._src})}render(){return n(t,{key:"293a0f642334d4058d3b129b69d7de334bb43866"},n(y,{key:"96c92705c57c43050b666513dfc65829a7be5047",color:this.ctrl.getRenderProp("color"),label:this.ctrl.getRenderProp("label"),src:this.ctrl.getRenderProp("src"),initials:this.initials}))}static get watchers(){return{_color:["watchColor"],_label:["watchLabel"],_src:["watchSrc"]}}};j.style={default:_};export{j as kol_avatar};
@@ -1 +1 @@
1
- {"version":3,"names":["h","registerInstance","Host","translate","bem","createPropDefinition","createContrastColorPair","labelProp","BaseWebComponent","srcProp","BaseController","HEX_REGEX","isHexString","value","test","normalizer","colors","backgroundColor","background","foregroundColor","foreground","colorPair","Error","validator","colorProp","BEM_BLOCK_AVATAR","BEM_CLASS_AVATAR__IMAGE","BEM_CLASS_AVATAR__INITIALS","AvatarFC","props","color","initials","label","src","placeholders","name","class","role","style","alt","avatarPropsConfig","optional","required","formatNameAsInitial","length","toUpperCase","normalizeInitials","names","trim","split","first","last","AvatarController","constructor","stateAccess","super","componentWillLoad","this","watchColor","watchLabel","watchSrc","apply","v","setRenderProp","setState","defaultStyleCss","KolAvatar","hostRef","ctrl","_color","_label","_src","render","key","getRenderProp","watchers","default"],"sources":["0"],"mappings":";;;YAGSA,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C,CAAYc,GACRZ,QACAtD,EAAiBwD,KAAMU,GACvBV,KAAKW,KAAO,IAAIhB,EAAiBK,KAAKH,aACtCG,KAAK1B,SAAW,EACpB,CACA,UAAA2B,CAAW7C,GACP4C,KAAKW,KAAKV,WAAW7C,EACzB,CACA,UAAA8C,CAAW9C,GACP4C,KAAKW,KAAKT,WAAW9C,EACzB,CACA,QAAA+C,CAAS/C,GACL4C,KAAKW,KAAKR,SAAS/C,EACvB,CACA,iBAAA2C,GACIC,KAAKW,KAAKZ,kBAAkB,CACxB1B,MAAO2B,KAAKY,OACZrC,MAAOyB,KAAKa,OACZrC,IAAKwB,KAAKc,MAElB,CACA,MAAAC,GACI,OAAQxE,EAAEE,EAAM,CAAEuE,IAAK,4CAA8CzE,EAAE4B,EAAU,CAAE6C,IAAK,2CAA4C3C,MAAO2B,KAAKW,KAAKM,cAAc,SAAU1C,MAAOyB,KAAKW,KAAKM,cAAc,SAAUzC,IAAKwB,KAAKW,KAAKM,cAAc,OAAQ3C,SAAU0B,KAAK1B,WAC9Q,CACA,mBAAW4C,GAAa,MAAO,CAC3BN,OAAU,CAAC,cACXC,OAAU,CAAC,cACXC,KAAQ,CAAC,YACV,GAEPL,EAAU5B,MAAQ,CACdsC,QAASX,UAGJC","ignoreList":[]}
1
+ {"version":3,"names":["h","registerInstance","Host","translate","bem","createPropDefinition","createContrastColorPair","labelProp","BaseWebComponent","srcProp","BaseController","HEX_REGEX","isHexString","value","test","normalizer","colors","backgroundColor","background","foregroundColor","foreground","colorPair","Error","validator","colorProp","BEM_BLOCK_AVATAR","BEM_CLASS_AVATAR__IMAGE","BEM_CLASS_AVATAR__INITIALS","AvatarFC","props","color","initials","label","src","placeholders","name","class","role","style","alt","avatarPropsConfig","optional","required","formatNameAsInitial","length","toUpperCase","normalizeInitials","names","trim","split","first","last","AvatarController","constructor","stateAccess","super","componentWillLoad","this","watchColor","watchLabel","watchSrc","apply","v","setRenderProp","setState","defaultStyleCss","KolAvatar","hostRef","ctrl","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,MAAMG,EAAkB,y2LAExB,MAAMC,EAAY,cAAc1D,EAC5B,WAAA6C,CAAYc,GACRZ,QACAtD,EAAiBwD,KAAMU,GACvBV,KAAKW,KAAO,IAAIhB,EAAiBK,KAAKH,aACtCG,KAAK1B,SAAW,EACpB,CACA,UAAA2B,CAAW7C,GACP4C,KAAKW,KAAKV,WAAW7C,EACzB,CACA,UAAA8C,CAAW9C,GACP4C,KAAKW,KAAKT,WAAW9C,EACzB,CACA,QAAA+C,CAAS/C,GACL4C,KAAKW,KAAKR,SAAS/C,EACvB,CACA,iBAAA2C,GACIC,KAAKW,KAAKZ,kBAAkB,CACxB1B,MAAO2B,KAAKY,OACZrC,MAAOyB,KAAKa,OACZrC,IAAKwB,KAAKc,MAElB,CACA,MAAAC,GACI,OAAQxE,EAAEE,EAAM,CAAEuE,IAAK,4CAA8CzE,EAAE4B,EAAU,CAAE6C,IAAK,2CAA4C3C,MAAO2B,KAAKW,KAAKM,cAAc,SAAU1C,MAAOyB,KAAKW,KAAKM,cAAc,SAAUzC,IAAKwB,KAAKW,KAAKM,cAAc,OAAQ3C,SAAU0B,KAAK1B,WAC9Q,CACA,mBAAW4C,GAAa,MAAO,CAC3BN,OAAU,CAAC,cACXC,OAAU,CAAC,cACXC,KAAQ,CAAC,YACV,GAEPL,EAAU5B,MAAQ,CACdsC,QAASX,UAGJC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"kol-badge.entry.esm.js","sources":["src/components/badge/style.scss?tag=kol-badge&mode=default&encapsulation=shadow","src/components/badge/shadow.tsx"],"sourcesContent":["@use '../@shared/mixins' as *;\n@use '../@shared/global' as *;\n@use '../tooltip/style.scss' as *;\n@use '../@shared/icon.mixin' as *;\n\n@layer kol-component {\n\t@include kol-icon-styles();\n\t.kol-badge {\n\t\t/* Visible with forced colors */\n\t\toutline: transparent solid to-rem(1);\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: space-between;\n\n\t\t.kol-badge__smart-button {\n\t\t\t.button {\n\t\t\t\tcolor: inherit;\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, h, Method, Prop, State, Watch } from '@stencil/core';\nimport { SpanFC } from '../../internal/functional-components/span/component';\nimport type { BadgeAPI, BadgeStates, FocusableElement, InternalButtonProps, KoliBriIconsProp, LabelPropType, PropColor, Stringified } from '../../schema';\nimport { featureHint, handleColorChange, objectObjectHandler, parseJson, setState, validateColor, validateIcons } from '../../schema';\n\nimport { nonce } from '../../utils/dev.utils';\n\nimport type { JSX } from '@stencil/core';\nimport { KolButtonWcTag } from '../../core/component-names';\nimport clsx from '../../utils/clsx';\nimport { delegateFocus, setFocus } from '../../utils/element-focus';\nfeatureHint(`[KolBadge] Optimierung des _color-Properties (rgba, rgb, hex usw.).`);\n\n/**\n * The **Badge** component allows you to visually highlight specific information.\n * In addition to specifying the background color and automatically calculating the text color, it also supports adding an icon and/or a different font style.\n */\n@Component({\n\ttag: 'kol-badge',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolBadge implements BadgeAPI, FocusableElement {\n\t@Element() private readonly host?: HTMLKolBadgeElement;\n\tprivate bgColorStr = '#000';\n\tprivate colorStr = '#fff';\n\tprivate readonly id = nonce();\n\tprivate smartButtonRef?: HTMLKolButtonWcElement;\n\n\tprivate readonly setSmartButtonRef = (ref?: HTMLKolButtonWcElement) => {\n\t\tthis.smartButtonRef = ref;\n\t};\n\n\tprivate renderSmartButton(props: InternalButtonProps): JSX.Element {\n\t\treturn (\n\t\t\t<KolButtonWcTag\n\t\t\t\tref={this.setSmartButtonRef}\n\t\t\t\tclass=\"kol-badge__smart-button\"\n\t\t\t\t_ariaControls={this.id}\n\t\t\t\t_ariaDescription={props._ariaDescription}\n\t\t\t\t_variant={props._variant}\n\t\t\t\t_customClass={props._customClass}\n\t\t\t\t_disabled={props._disabled}\n\t\t\t\t_hideLabel={true}\n\t\t\t\t_icons={props._icons}\n\t\t\t\t_id={props._id}\n\t\t\t\t_label={props._label}\n\t\t\t\t_on={props._on}\n\t\t\t\t_tooltipAlign={props._tooltipAlign}\n\t\t\t/>\n\t\t);\n\t}\n\n\t/**\n\t * Sets focus on the internal element.\n\t */\n\t@Method()\n\tpublic async focus(): Promise<void> {\n\t\treturn delegateFocus(this.host!, () => setFocus(this.smartButtonRef!));\n\t}\n\n\tpublic render(): JSX.Element {\n\t\tconst hasSmartButton = typeof this.state._smartButton === 'object' && this.state._smartButton !== null;\n\n\t\treturn (\n\t\t\t<span\n\t\t\t\tclass={clsx('kol-badge', {\n\t\t\t\t\t'kol-badge--has-smart-button': typeof this.state._smartButton === 'object' && this.state._smartButton !== null,\n\t\t\t\t})}\n\t\t\t\tstyle={{\n\t\t\t\t\tbackgroundColor: this.bgColorStr,\n\t\t\t\t\tcolor: this.colorStr,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<SpanFC class=\"kol-badge__label\" id={hasSmartButton ? this.id : undefined} allowMarkdown icons={this.state._icons} label={this._label} />\n\t\t\t\t{hasSmartButton && this.renderSmartButton(this.state._smartButton as InternalButtonProps)}\n\t\t\t</span>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the backgroundColor and foregroundColor.\n\t */\n\t@Prop() public _color?: Stringified<PropColor> = '#000';\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: Stringified<KoliBriIconsProp>;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label!: LabelPropType;\n\n\t/**\n\t * Allows to add a button with an arbitrary action within the element (_hide-label only).\n\t */\n\t@Prop() public _smartButton?: Stringified<InternalButtonProps>;\n\n\t@State() public state: BadgeStates = {\n\t\t_color: {\n\t\t\tbackgroundColor: '#000',\n\t\t\tforegroundColor: '#fff',\n\t\t},\n\t\t_icons: {},\n\t};\n\n\tprivate handleColorChange = (value: unknown) => {\n\t\tconst colorPair = handleColorChange(value);\n\t\tthis.bgColorStr = colorPair.backgroundColor;\n\t\tthis.colorStr = colorPair.foregroundColor;\n\t};\n\n\t@Watch('_icons')\n\tpublic validateIcons(value?: KoliBriIconsProp): void {\n\t\tvalidateIcons(this, value);\n\t}\n\n\t@Watch('_color')\n\tpublic validateColor(value?: Stringified<PropColor>): void {\n\t\tvalidateColor(this, value, {\n\t\t\tdefaultValue: '#000',\n\t\t\thooks: {\n\t\t\t\tbeforePatch: this.handleColorChange,\n\t\t\t},\n\t\t});\n\t}\n\n\t@Watch('_smartButton')\n\tpublic validateSmartButton(value?: InternalButtonProps | string): void {\n\t\tobjectObjectHandler(value, () => {\n\t\t\ttry {\n\t\t\t\tvalue = parseJson<InternalButtonProps>(value as string);\n\t\t\t} catch {\n\t\t\t\t// value behält den ursprünglichen Wert\n\t\t\t}\n\t\t\tsetState(this, '_smartButton', value);\n\t\t});\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateIcons(this._icons);\n\t\tthis.validateColor(this._color);\n\t\tthis.validateSmartButton(this._smartButton);\n\t}\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,MAAM,eAAe,GAAG,8zTAA8zT;;ACWt1T,WAAW,CAAC,CAAqE,mEAAA,CAAA,CAAC;MAarE,QAAQ,GAAA,MAAA;AAPrB,IAAA,WAAA,CAAA,OAAA,EAAA;;AASS,QAAA,IAAU,CAAA,UAAA,GAAG,MAAM;AACnB,QAAA,IAAQ,CAAA,QAAA,GAAG,MAAM;AACR,QAAA,IAAE,CAAA,EAAA,GAAG,KAAK,EAAE;AAGZ,QAAA,IAAA,CAAA,iBAAiB,GAAG,CAAC,GAA4B,KAAI;AACrE,YAAA,IAAI,CAAC,cAAc,GAAG,GAAG;AAC1B,SAAC;AAoDc,QAAA,IAAM,CAAA,MAAA,GAA4B,MAAM;QAiBvC,IAAA,CAAA,KAAK,GAAgB;AACpC,YAAA,MAAM,EAAE;AACP,gBAAA,eAAe,EAAE,MAAM;AAC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C,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC;AAC/B,QAAA,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC;AAC/B,QAAA,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"kol-badge.entry.esm.js","sources":["src/components/badge/style.scss?tag=kol-badge&mode=default&encapsulation=shadow","src/components/badge/shadow.tsx"],"sourcesContent":["@use '../@shared/mixins' as *;\n@use '../@shared/global' as *;\n@use '../tooltip/style.scss' as *;\n@use '../@shared/icon.mixin' as *;\n\n@layer kol-component {\n\t@include kol-icon-styles();\n\t.kol-badge {\n\t\t/* Visible with forced colors */\n\t\toutline: transparent solid to-rem(1);\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: space-between;\n\n\t\t.kol-badge__smart-button {\n\t\t\t.button {\n\t\t\t\tcolor: inherit;\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, h, Method, Prop, State, Watch } from '@stencil/core';\nimport { SpanFC } from '../../internal/functional-components/span/component';\nimport type { BadgeAPI, BadgeStates, FocusableElement, InternalButtonProps, KoliBriIconsProp, LabelPropType, PropColor, Stringified } from '../../schema';\nimport { featureHint, handleColorChange, objectObjectHandler, parseJson, setState, validateColor, validateIcons } from '../../schema';\n\nimport { nonce } from '../../utils/dev.utils';\n\nimport type { JSX } from '@stencil/core';\nimport { KolButtonWcTag } from '../../core/component-names';\nimport clsx from '../../utils/clsx';\nimport { delegateFocus, setFocus } from '../../utils/element-focus';\nfeatureHint(`[KolBadge] Optimierung des _color-Properties (rgba, rgb, hex usw.).`);\n\n/**\n * The **Badge** component allows you to visually highlight specific information.\n * In addition to specifying the background color and automatically calculating the text color, it also supports adding an icon and/or a different font style.\n */\n@Component({\n\ttag: 'kol-badge',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolBadge implements BadgeAPI, FocusableElement {\n\t@Element() private readonly host?: HTMLKolBadgeElement;\n\tprivate bgColorStr = '#000';\n\tprivate colorStr = '#fff';\n\tprivate readonly id = nonce();\n\tprivate smartButtonRef?: HTMLKolButtonWcElement;\n\n\tprivate readonly setSmartButtonRef = (ref?: HTMLKolButtonWcElement) => {\n\t\tthis.smartButtonRef = ref;\n\t};\n\n\tprivate renderSmartButton(props: InternalButtonProps): JSX.Element {\n\t\treturn (\n\t\t\t<KolButtonWcTag\n\t\t\t\tref={this.setSmartButtonRef}\n\t\t\t\tclass=\"kol-badge__smart-button\"\n\t\t\t\t_ariaControls={this.id}\n\t\t\t\t_ariaDescription={props._ariaDescription}\n\t\t\t\t_variant={props._variant}\n\t\t\t\t_customClass={props._customClass}\n\t\t\t\t_disabled={props._disabled}\n\t\t\t\t_hideLabel={true}\n\t\t\t\t_icons={props._icons}\n\t\t\t\t_id={props._id}\n\t\t\t\t_label={props._label}\n\t\t\t\t_on={props._on}\n\t\t\t\t_tooltipAlign={props._tooltipAlign}\n\t\t\t/>\n\t\t);\n\t}\n\n\t/**\n\t * Sets focus on the internal element.\n\t */\n\t@Method()\n\tpublic async focus(): Promise<void> {\n\t\treturn delegateFocus(this.host!, () => setFocus(this.smartButtonRef!));\n\t}\n\n\tpublic render(): JSX.Element {\n\t\tconst hasSmartButton = typeof this.state._smartButton === 'object' && this.state._smartButton !== null;\n\n\t\treturn (\n\t\t\t<span\n\t\t\t\tclass={clsx('kol-badge', {\n\t\t\t\t\t'kol-badge--has-smart-button': typeof this.state._smartButton === 'object' && this.state._smartButton !== null,\n\t\t\t\t})}\n\t\t\t\tstyle={{\n\t\t\t\t\tbackgroundColor: this.bgColorStr,\n\t\t\t\t\tcolor: this.colorStr,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<SpanFC class=\"kol-badge__label\" id={hasSmartButton ? this.id : undefined} allowMarkdown icons={this.state._icons} label={this._label} />\n\t\t\t\t{hasSmartButton && this.renderSmartButton(this.state._smartButton as InternalButtonProps)}\n\t\t\t</span>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the backgroundColor and foregroundColor.\n\t */\n\t@Prop() public _color?: Stringified<PropColor> = '#000';\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: Stringified<KoliBriIconsProp>;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label!: LabelPropType;\n\n\t/**\n\t * Allows to add a button with an arbitrary action within the element (_hide-label only).\n\t */\n\t@Prop() public _smartButton?: Stringified<InternalButtonProps>;\n\n\t@State() public state: BadgeStates = {\n\t\t_color: {\n\t\t\tbackgroundColor: '#000',\n\t\t\tforegroundColor: '#fff',\n\t\t},\n\t\t_icons: {},\n\t};\n\n\tprivate handleColorChange = (value: unknown) => {\n\t\tconst colorPair = handleColorChange(value);\n\t\tthis.bgColorStr = colorPair.backgroundColor;\n\t\tthis.colorStr = colorPair.foregroundColor;\n\t};\n\n\t@Watch('_icons')\n\tpublic validateIcons(value?: KoliBriIconsProp): void {\n\t\tvalidateIcons(this, value);\n\t}\n\n\t@Watch('_color')\n\tpublic validateColor(value?: Stringified<PropColor>): void {\n\t\tvalidateColor(this, value, {\n\t\t\tdefaultValue: '#000',\n\t\t\thooks: {\n\t\t\t\tbeforePatch: this.handleColorChange,\n\t\t\t},\n\t\t});\n\t}\n\n\t@Watch('_smartButton')\n\tpublic validateSmartButton(value?: InternalButtonProps | string): void {\n\t\tobjectObjectHandler(value, () => {\n\t\t\ttry {\n\t\t\t\tvalue = parseJson<InternalButtonProps>(value as string);\n\t\t\t} catch {\n\t\t\t\t// value behält den ursprünglichen Wert\n\t\t\t}\n\t\t\tsetState(this, '_smartButton', value);\n\t\t});\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateIcons(this._icons);\n\t\tthis.validateColor(this._color);\n\t\tthis.validateSmartButton(this._smartButton);\n\t}\n}\n"],"names":[],"mappings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