@public-ui/components 4.1.1-rc.2 → 4.1.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 (442) 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 +1 -7
  7. package/dist/cjs/{Alert-C3hMI3oh.js → Alert-DUKI4F6t.js} +1 -1
  8. package/dist/cjs/{Alert-C3hMI3oh.js.map → Alert-DUKI4F6t.js.map} +1 -1
  9. package/dist/cjs/{Collapsible-BuDTPOMO.js → Collapsible-C1TrB3xP.js} +1 -1
  10. package/dist/cjs/{Collapsible-BuDTPOMO.js.map → Collapsible-C1TrB3xP.js.map} +1 -1
  11. package/dist/cjs/{CustomSuggestionsOptionsGroup-DBavM4MR.js → CustomSuggestionsOptionsGroup-DjEJ7D2u.js} +1 -1
  12. package/dist/cjs/{CustomSuggestionsOptionsGroup-DBavM4MR.js.map → CustomSuggestionsOptionsGroup-DjEJ7D2u.js.map} +1 -1
  13. package/dist/cjs/{FieldControlStateWrapper-DUh-vPos.js → FieldControlStateWrapper-2yGvk_YF.js} +1 -1
  14. package/dist/cjs/{FieldControlStateWrapper-DUh-vPos.js.map → FieldControlStateWrapper-2yGvk_YF.js.map} +1 -1
  15. package/dist/cjs/{FormFieldStateWrapper-DiKfF9vY.js → FormFieldStateWrapper-QklB-18_.js} +1 -1
  16. package/dist/cjs/{FormFieldStateWrapper-DiKfF9vY.js.map → FormFieldStateWrapper-QklB-18_.js.map} +1 -1
  17. package/dist/cjs/{Heading-g4x-f4VX.js → Heading-BaoT3MhF.js} +1 -1
  18. package/dist/cjs/{Heading-g4x-f4VX.js.map → Heading-BaoT3MhF.js.map} +1 -1
  19. package/dist/cjs/Icon-Cjo0FQnO.js +4 -0
  20. package/dist/cjs/{Icon-xQM_BPGN.js.map → Icon-Cjo0FQnO.js.map} +1 -1
  21. package/dist/cjs/{Input-PNxPL0-E.js → Input-gpYaP5oW.js} +1 -1
  22. package/dist/cjs/{Input-PNxPL0-E.js.map → Input-gpYaP5oW.js.map} +1 -1
  23. package/dist/cjs/{InputStateWrapper-DVaoUrs_.js → InputStateWrapper-C1FQ_lUw.js} +1 -1
  24. package/dist/cjs/{InputStateWrapper-DVaoUrs_.js.map → InputStateWrapper-C1FQ_lUw.js.map} +1 -1
  25. package/dist/cjs/{InternalUnderlinedBadgeText-C63kz_7k.js → InternalUnderlinedBadgeText-BR019eHx.js} +1 -1
  26. package/dist/cjs/{InternalUnderlinedBadgeText-C63kz_7k.js.map → InternalUnderlinedBadgeText-BR019eHx.js.map} +1 -1
  27. package/dist/cjs/{Span-DbRr6xgU.js → Span-C0FLp1D0.js} +1 -1
  28. package/dist/cjs/{Span-DbRr6xgU.js.map → Span-C0FLp1D0.js.map} +1 -1
  29. package/dist/cjs/{app-globals-DBFGa66N.js → app-globals-XxcUX9f4.js} +1 -1
  30. package/dist/cjs/{app-globals-DBFGa66N.js.map → app-globals-XxcUX9f4.js.map} +1 -1
  31. package/dist/cjs/base-controller-p-KkQpDk.js +4 -0
  32. package/dist/cjs/base-controller-p-KkQpDk.js.map +1 -0
  33. package/dist/cjs/controller-BbvzgdxH.js +4 -0
  34. package/dist/cjs/{controller-B7FTgo5S.js.map → controller-BbvzgdxH.js.map} +1 -1
  35. package/dist/cjs/{controller-BUoe5mSY.js → controller-DcGa3hI1.js} +1 -1
  36. package/dist/cjs/{controller-BUoe5mSY.js.map → controller-DcGa3hI1.js.map} +1 -1
  37. package/dist/cjs/controller-FnKBpfim.js +4 -0
  38. package/dist/cjs/controller-FnKBpfim.js.map +1 -0
  39. package/dist/cjs/{controller-B2k6zItW.js → controller-Qxz2zfsf.js} +1 -1
  40. package/dist/cjs/{controller-B2k6zItW.js.map → controller-Qxz2zfsf.js.map} +1 -1
  41. package/dist/cjs/{controller-icon-Bye_-lO8.js → controller-icon-Bp_gYQ45.js} +1 -1
  42. package/dist/cjs/{controller-icon-Bye_-lO8.js.map → controller-icon-Bp_gYQ45.js.map} +1 -1
  43. package/dist/cjs/{dev.utils-JTxdbgzS.js → dev.utils-MxjJBX5i.js} +1 -1
  44. package/dist/cjs/{dev.utils-JTxdbgzS.js.map → dev.utils-MxjJBX5i.js.map} +1 -1
  45. package/dist/cjs/{devtools-vHnumVA-.js → devtools-CCJeclGe.js} +1 -1
  46. package/dist/cjs/{devtools-vHnumVA-.js.map → devtools-CCJeclGe.js.map} +1 -1
  47. package/dist/cjs/index-Do5QHQux.js +4 -0
  48. package/dist/cjs/index-Do5QHQux.js.map +1 -0
  49. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  50. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  51. package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
  52. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  53. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  54. package/dist/cjs/kol-avatar.entry.cjs.js.map +1 -1
  55. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  56. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  57. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  58. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  59. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  60. package/dist/cjs/kol-card-wc.cjs.entry.js +1 -1
  61. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  62. package/dist/cjs/kol-click-button.cjs.entry.js +1 -1
  63. package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
  64. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  65. package/dist/cjs/kol-dialog-wc.cjs.entry.js +1 -1
  66. package/dist/cjs/kol-dialog.cjs.entry.js +1 -1
  67. package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
  68. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  69. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  71. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-image.entry.cjs.js.map +1 -1
  73. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  74. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  75. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  77. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  78. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  79. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  80. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  81. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  82. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  84. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  86. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  87. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  88. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  89. package/dist/cjs/kol-pagination-wc.cjs.entry.js +1 -1
  90. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  91. package/dist/cjs/kol-popover-button-wc.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-popover-button.cjs.entry.js +1 -1
  93. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  94. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  95. package/dist/cjs/kol-progress.entry.cjs.js.map +1 -1
  96. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  97. package/dist/cjs/kol-quote.entry.cjs.js.map +1 -1
  98. package/dist/cjs/kol-select-wc.cjs.entry.js +1 -1
  99. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  100. package/dist/cjs/kol-single-select.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-skeleton.cjs.entry.js +1 -1
  102. package/dist/cjs/kol-skeleton.entry.cjs.js.map +1 -1
  103. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  104. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  105. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  106. package/dist/cjs/kol-table-settings-wc.cjs.entry.js +1 -1
  107. package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
  108. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
  109. package/dist/cjs/kol-table-stateless-wc.entry.cjs.js.map +1 -1
  110. package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
  111. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  112. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  113. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  114. package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
  115. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  116. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
  117. package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
  118. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  119. package/dist/cjs/kol-tree.cjs.entry.js +1 -1
  120. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  121. package/dist/cjs/kolibri.cjs.js +1 -1
  122. package/dist/cjs/label-CuEScldc.js +4 -0
  123. package/dist/cjs/{label-paexHNB6.js.map → label-CuEScldc.js.map} +1 -1
  124. package/dist/cjs/loader.cjs.js +1 -1
  125. package/dist/cjs/src-B6RsOTtm.js +4 -0
  126. package/dist/cjs/{src-BTSBdFm2.js.map → src-B6RsOTtm.js.map} +1 -1
  127. package/dist/cjs/test-component.cjs.entry.js +1 -1
  128. package/dist/components/base-controller.js +1 -1
  129. package/dist/components/base-controller.js.map +1 -1
  130. package/dist/components/controller2.js +1 -1
  131. package/dist/components/controller2.js.map +1 -1
  132. package/dist/components/kol-avatar.js +1 -1
  133. package/dist/components/kol-avatar.js.map +1 -1
  134. package/dist/components/kol-icon.js +1 -1
  135. package/dist/components/kol-image.js +1 -1
  136. package/dist/components/kol-image.js.map +1 -1
  137. package/dist/components/kol-progress.js +1 -1
  138. package/dist/components/kol-progress.js.map +1 -1
  139. package/dist/components/kol-quote.js +1 -1
  140. package/dist/components/kol-quote.js.map +1 -1
  141. package/dist/components/kol-skeleton.js +1 -1
  142. package/dist/components/kol-skeleton.js.map +1 -1
  143. package/dist/components/kol-table-stateless-wc.js +1 -1
  144. package/dist/components/kol-table-stateless-wc.js.map +1 -1
  145. package/dist/esm/{Alert-DJWeD9Xz.js → Alert-w2MT71aB.js} +1 -1
  146. package/dist/{kolibri/Alert-DJWeD9Xz.js.map → esm/Alert-w2MT71aB.js.map} +1 -1
  147. package/dist/esm/{Collapsible-C6YbGDhK.js → Collapsible-rF3-jm6_.js} +1 -1
  148. package/dist/esm/{Collapsible-C6YbGDhK.js.map → Collapsible-rF3-jm6_.js.map} +1 -1
  149. package/dist/esm/{CustomSuggestionsOptionsGroup-BBiujBa7.js → CustomSuggestionsOptionsGroup-BiV1SLtM.js} +1 -1
  150. package/dist/{kolibri/CustomSuggestionsOptionsGroup-BBiujBa7.js.map → esm/CustomSuggestionsOptionsGroup-BiV1SLtM.js.map} +1 -1
  151. package/dist/esm/{FieldControlStateWrapper-D0fzj9Oy.js → FieldControlStateWrapper-Il3HD6ji.js} +1 -1
  152. package/dist/esm/{FieldControlStateWrapper-D0fzj9Oy.js.map → FieldControlStateWrapper-Il3HD6ji.js.map} +1 -1
  153. package/dist/esm/{FormFieldStateWrapper-BFyiN9EY.js → FormFieldStateWrapper--EBKaIYU.js} +1 -1
  154. package/dist/{kolibri/FormFieldStateWrapper-BFyiN9EY.js.map → esm/FormFieldStateWrapper--EBKaIYU.js.map} +1 -1
  155. package/dist/esm/{Heading-Cp72eQOw.js → Heading-B9rTijzp.js} +1 -1
  156. package/dist/esm/{Heading-Cp72eQOw.js.map → Heading-B9rTijzp.js.map} +1 -1
  157. package/dist/esm/{Icon-BI9iw7pD.js → Icon-BYiB0b6v.js} +1 -1
  158. package/dist/esm/{Icon-BI9iw7pD.js.map → Icon-BYiB0b6v.js.map} +1 -1
  159. package/dist/esm/{Input-DXQUCRHF.js → Input-N-fWHtGJ.js} +1 -1
  160. package/dist/esm/{Input-DXQUCRHF.js.map → Input-N-fWHtGJ.js.map} +1 -1
  161. package/dist/esm/{InputStateWrapper-D7DYAs_8.js → InputStateWrapper-CCJNqzRI.js} +1 -1
  162. package/dist/{kolibri/InputStateWrapper-D7DYAs_8.js.map → esm/InputStateWrapper-CCJNqzRI.js.map} +1 -1
  163. package/dist/esm/{InternalUnderlinedBadgeText-DLXbDpmD.js → InternalUnderlinedBadgeText-t86A5_XQ.js} +1 -1
  164. package/dist/{kolibri/InternalUnderlinedBadgeText-DLXbDpmD.js.map → esm/InternalUnderlinedBadgeText-t86A5_XQ.js.map} +1 -1
  165. package/dist/esm/{Span-BXTwASbu.js → Span-ePfPZY-7.js} +1 -1
  166. package/dist/{kolibri/Span-BXTwASbu.js.map → esm/Span-ePfPZY-7.js.map} +1 -1
  167. package/dist/esm/{app-globals-BOEnxU7e.js → app-globals-BQmkJtVQ.js} +1 -1
  168. package/dist/esm/{app-globals-BOEnxU7e.js.map → app-globals-BQmkJtVQ.js.map} +1 -1
  169. package/dist/esm/base-controller-Bkp0Z9l1.js +4 -0
  170. package/dist/esm/base-controller-Bkp0Z9l1.js.map +1 -0
  171. package/dist/esm/controller-BbvDlOS4.js +4 -0
  172. package/dist/esm/controller-BbvDlOS4.js.map +1 -0
  173. package/dist/esm/{controller-vTikIczD.js → controller-INr--hn-.js} +1 -1
  174. package/dist/esm/{controller-vTikIczD.js.map → controller-INr--hn-.js.map} +1 -1
  175. package/dist/esm/controller-icon-By1Ikt1k.js +4 -0
  176. package/dist/esm/{controller-icon-DKRqmDU2.js.map → controller-icon-By1Ikt1k.js.map} +1 -1
  177. package/dist/esm/{controller-D61Uz9xi.js → controller-llnTh4a9.js} +1 -1
  178. package/dist/esm/{controller-D61Uz9xi.js.map → controller-llnTh4a9.js.map} +1 -1
  179. package/dist/esm/{controller-BaXjr15p.js → controller-nyINduH8.js} +1 -1
  180. package/dist/esm/{controller-BaXjr15p.js.map → controller-nyINduH8.js.map} +1 -1
  181. package/dist/esm/{dev.utils-DEjbEXtH.js → dev.utils-DEA-azs5.js} +1 -1
  182. package/dist/esm/{dev.utils-DEjbEXtH.js.map → dev.utils-DEA-azs5.js.map} +1 -1
  183. package/dist/esm/{devtools-CeSDfGe0.js → devtools-CAaKKqia.js} +1 -1
  184. package/dist/{kolibri/devtools-CeSDfGe0.js.map → esm/devtools-CAaKKqia.js.map} +1 -1
  185. package/dist/esm/index-CkrSoIPD.js +4 -0
  186. package/dist/esm/index-CkrSoIPD.js.map +1 -0
  187. package/dist/esm/kol-abbr.entry.js +1 -1
  188. package/dist/esm/kol-accordion.entry.js +1 -1
  189. package/dist/esm/kol-alert-wc.entry.js +1 -1
  190. package/dist/esm/kol-alert.entry.js +1 -1
  191. package/dist/esm/kol-avatar.entry.js +1 -1
  192. package/dist/esm/kol-avatar.entry.js.map +1 -1
  193. package/dist/esm/kol-badge.entry.js +1 -1
  194. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  195. package/dist/esm/kol-button-link.entry.js +1 -1
  196. package/dist/esm/kol-button-wc.entry.js +1 -1
  197. package/dist/esm/kol-button.entry.js +1 -1
  198. package/dist/esm/kol-card-wc.entry.js +1 -1
  199. package/dist/esm/kol-card.entry.js +1 -1
  200. package/dist/esm/kol-click-button.entry.js +1 -1
  201. package/dist/esm/kol-combobox.entry.js +1 -1
  202. package/dist/esm/kol-details.entry.js +1 -1
  203. package/dist/esm/kol-dialog-wc.entry.js +1 -1
  204. package/dist/esm/kol-dialog.entry.js +1 -1
  205. package/dist/esm/kol-drawer.entry.js +1 -1
  206. package/dist/esm/kol-form.entry.js +1 -1
  207. package/dist/esm/kol-heading.entry.js +1 -1
  208. package/dist/esm/kol-icon.entry.js +1 -1
  209. package/dist/esm/kol-image.entry.js +1 -1
  210. package/dist/esm/kol-image.entry.js.map +1 -1
  211. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  212. package/dist/esm/kol-input-color.entry.js +1 -1
  213. package/dist/esm/kol-input-date.entry.js +1 -1
  214. package/dist/esm/kol-input-email.entry.js +1 -1
  215. package/dist/esm/kol-input-file.entry.js +1 -1
  216. package/dist/esm/kol-input-number.entry.js +1 -1
  217. package/dist/esm/kol-input-password.entry.js +1 -1
  218. package/dist/esm/kol-input-radio.entry.js +1 -1
  219. package/dist/esm/kol-input-range.entry.js +1 -1
  220. package/dist/esm/kol-input-text.entry.js +1 -1
  221. package/dist/esm/kol-kolibri.entry.js +1 -1
  222. package/dist/esm/kol-link-button.entry.js +1 -1
  223. package/dist/esm/kol-link-wc.entry.js +1 -1
  224. package/dist/esm/kol-link.entry.js +1 -1
  225. package/dist/esm/kol-modal.entry.js +1 -1
  226. package/dist/esm/kol-nav.entry.js +1 -1
  227. package/dist/esm/kol-pagination-wc.entry.js +1 -1
  228. package/dist/esm/kol-pagination.entry.js +1 -1
  229. package/dist/esm/kol-popover-button-wc.entry.js +1 -1
  230. package/dist/esm/kol-popover-button.entry.js +1 -1
  231. package/dist/esm/kol-popover-wc.entry.js +1 -1
  232. package/dist/esm/kol-progress.entry.js +1 -1
  233. package/dist/esm/kol-progress.entry.js.map +1 -1
  234. package/dist/esm/kol-quote.entry.js +1 -1
  235. package/dist/esm/kol-quote.entry.js.map +1 -1
  236. package/dist/esm/kol-select-wc.entry.js +1 -1
  237. package/dist/esm/kol-select.entry.js +1 -1
  238. package/dist/esm/kol-single-select.entry.js +1 -1
  239. package/dist/esm/kol-skeleton.entry.js +1 -1
  240. package/dist/esm/kol-skeleton.entry.js.map +1 -1
  241. package/dist/esm/kol-skip-nav.entry.js +1 -1
  242. package/dist/esm/kol-spin.entry.js +1 -1
  243. package/dist/esm/kol-split-button.entry.js +1 -1
  244. package/dist/esm/kol-table-settings-wc.entry.js +1 -1
  245. package/dist/esm/kol-table-stateful.entry.js +1 -1
  246. package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
  247. package/dist/esm/kol-table-stateless-wc.entry.js.map +1 -1
  248. package/dist/esm/kol-table-stateless.entry.js +1 -1
  249. package/dist/esm/kol-tabs.entry.js +1 -1
  250. package/dist/esm/kol-textarea.entry.js +1 -1
  251. package/dist/esm/kol-toast-container.entry.js +1 -1
  252. package/dist/esm/kol-toolbar.entry.js +1 -1
  253. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  254. package/dist/esm/kol-tree-item-wc.entry.js +1 -1
  255. package/dist/esm/kol-tree-item.entry.js +1 -1
  256. package/dist/esm/kol-tree-wc.entry.js +1 -1
  257. package/dist/esm/kol-tree.entry.js +1 -1
  258. package/dist/esm/kol-version.entry.js +1 -1
  259. package/dist/esm/kolibri.js +1 -1
  260. package/dist/esm/label-BWcVeIOr.js +4 -0
  261. package/dist/esm/{label-DVazFQSR.js.map → label-BWcVeIOr.js.map} +1 -1
  262. package/dist/esm/loader.js +1 -1
  263. package/dist/esm/{src-CcGoBQSj.js → src-9cntFd6X.js} +1 -1
  264. package/dist/esm/{src-CcGoBQSj.js.map → src-9cntFd6X.js.map} +1 -1
  265. package/dist/esm/test-component.entry.js +1 -1
  266. package/dist/kolibri/{Alert-DJWeD9Xz.js → Alert-w2MT71aB.js} +1 -1
  267. package/dist/{esm/Alert-DJWeD9Xz.js.map → kolibri/Alert-w2MT71aB.js.map} +1 -1
  268. package/dist/kolibri/{Collapsible-C6YbGDhK.js → Collapsible-rF3-jm6_.js} +1 -1
  269. package/dist/kolibri/{Collapsible-C6YbGDhK.js.map → Collapsible-rF3-jm6_.js.map} +1 -1
  270. package/dist/kolibri/{CustomSuggestionsOptionsGroup-BBiujBa7.js → CustomSuggestionsOptionsGroup-BiV1SLtM.js} +1 -1
  271. package/dist/{esm/CustomSuggestionsOptionsGroup-BBiujBa7.js.map → kolibri/CustomSuggestionsOptionsGroup-BiV1SLtM.js.map} +1 -1
  272. package/dist/kolibri/FieldControlStateWrapper-Il3HD6ji.js +4 -0
  273. package/dist/kolibri/{FieldControlStateWrapper-D0fzj9Oy.js.map → FieldControlStateWrapper-Il3HD6ji.js.map} +1 -1
  274. package/dist/kolibri/FormFieldStateWrapper--EBKaIYU.js +4 -0
  275. package/dist/{esm/FormFieldStateWrapper-BFyiN9EY.js.map → kolibri/FormFieldStateWrapper--EBKaIYU.js.map} +1 -1
  276. package/dist/kolibri/Heading-B9rTijzp.js +4 -0
  277. package/dist/kolibri/{Heading-Cp72eQOw.js.map → Heading-B9rTijzp.js.map} +1 -1
  278. package/dist/kolibri/{Icon-BI9iw7pD.js → Icon-BYiB0b6v.js} +1 -1
  279. package/dist/kolibri/{Icon-BI9iw7pD.js.map → Icon-BYiB0b6v.js.map} +1 -1
  280. package/dist/kolibri/Input-N-fWHtGJ.js +4 -0
  281. package/dist/kolibri/{Input-DXQUCRHF.js.map → Input-N-fWHtGJ.js.map} +1 -1
  282. package/dist/kolibri/{InputStateWrapper-D7DYAs_8.js → InputStateWrapper-CCJNqzRI.js} +1 -1
  283. package/dist/{esm/InputStateWrapper-D7DYAs_8.js.map → kolibri/InputStateWrapper-CCJNqzRI.js.map} +1 -1
  284. package/dist/kolibri/{InternalUnderlinedBadgeText-DLXbDpmD.js → InternalUnderlinedBadgeText-t86A5_XQ.js} +1 -1
  285. package/dist/{esm/InternalUnderlinedBadgeText-DLXbDpmD.js.map → kolibri/InternalUnderlinedBadgeText-t86A5_XQ.js.map} +1 -1
  286. package/dist/kolibri/{Span-BXTwASbu.js → Span-ePfPZY-7.js} +1 -1
  287. package/dist/{esm/Span-BXTwASbu.js.map → kolibri/Span-ePfPZY-7.js.map} +1 -1
  288. package/dist/kolibri/app-globals-BQmkJtVQ.js +4 -0
  289. package/dist/kolibri/{app-globals-BOEnxU7e.js.map → app-globals-BQmkJtVQ.js.map} +1 -1
  290. package/dist/kolibri/base-controller-Bkp0Z9l1.js +4 -0
  291. package/dist/kolibri/base-controller-Bkp0Z9l1.js.map +1 -0
  292. package/dist/kolibri/controller-BbvDlOS4.js +4 -0
  293. package/dist/kolibri/controller-BbvDlOS4.js.map +1 -0
  294. package/dist/kolibri/{controller-vTikIczD.js → controller-INr--hn-.js} +1 -1
  295. package/dist/kolibri/{controller-vTikIczD.js.map → controller-INr--hn-.js.map} +1 -1
  296. package/dist/kolibri/controller-icon-By1Ikt1k.js +4 -0
  297. package/dist/kolibri/{controller-icon-DKRqmDU2.js.map → controller-icon-By1Ikt1k.js.map} +1 -1
  298. package/dist/kolibri/{controller-D61Uz9xi.js → controller-llnTh4a9.js} +1 -1
  299. package/dist/kolibri/{controller-D61Uz9xi.js.map → controller-llnTh4a9.js.map} +1 -1
  300. package/dist/kolibri/{controller-BaXjr15p.js → controller-nyINduH8.js} +1 -1
  301. package/dist/kolibri/{controller-BaXjr15p.js.map → controller-nyINduH8.js.map} +1 -1
  302. package/dist/kolibri/{dev.utils-DEjbEXtH.js → dev.utils-DEA-azs5.js} +1 -1
  303. package/dist/kolibri/{dev.utils-DEjbEXtH.js.map → dev.utils-DEA-azs5.js.map} +1 -1
  304. package/dist/kolibri/{devtools-CeSDfGe0.js → devtools-CAaKKqia.js} +1 -1
  305. package/dist/{esm/devtools-CeSDfGe0.js.map → kolibri/devtools-CAaKKqia.js.map} +1 -1
  306. package/dist/kolibri/{index-CHdBQ7XR.js → index-CkrSoIPD.js} +1 -1
  307. package/dist/kolibri/index-CkrSoIPD.js.map +1 -0
  308. package/dist/kolibri/kol-abbr.entry.js +1 -1
  309. package/dist/kolibri/kol-accordion.entry.js +1 -1
  310. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  311. package/dist/kolibri/kol-alert.entry.js +1 -1
  312. package/dist/kolibri/kol-avatar.entry.esm.js.map +1 -1
  313. package/dist/kolibri/kol-avatar.entry.js +1 -1
  314. package/dist/kolibri/kol-avatar.entry.js.map +1 -1
  315. package/dist/kolibri/kol-badge.entry.js +1 -1
  316. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  317. package/dist/kolibri/kol-button-link.entry.js +1 -1
  318. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  319. package/dist/kolibri/kol-button.entry.js +1 -1
  320. package/dist/kolibri/kol-card-wc.entry.js +1 -1
  321. package/dist/kolibri/kol-card.entry.js +1 -1
  322. package/dist/kolibri/kol-click-button.entry.js +1 -1
  323. package/dist/kolibri/kol-combobox.entry.js +1 -1
  324. package/dist/kolibri/kol-details.entry.js +1 -1
  325. package/dist/kolibri/kol-dialog-wc.entry.js +1 -1
  326. package/dist/kolibri/kol-dialog.entry.js +1 -1
  327. package/dist/kolibri/kol-drawer.entry.js +1 -1
  328. package/dist/kolibri/kol-form.entry.js +1 -1
  329. package/dist/kolibri/kol-heading.entry.js +1 -1
  330. package/dist/kolibri/kol-icon.entry.js +1 -1
  331. package/dist/kolibri/kol-image.entry.esm.js.map +1 -1
  332. package/dist/kolibri/kol-image.entry.js +1 -1
  333. package/dist/kolibri/kol-image.entry.js.map +1 -1
  334. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  335. package/dist/kolibri/kol-input-color.entry.js +1 -1
  336. package/dist/kolibri/kol-input-date.entry.js +1 -1
  337. package/dist/kolibri/kol-input-email.entry.js +1 -1
  338. package/dist/kolibri/kol-input-file.entry.js +1 -1
  339. package/dist/kolibri/kol-input-number.entry.js +1 -1
  340. package/dist/kolibri/kol-input-password.entry.js +1 -1
  341. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  342. package/dist/kolibri/kol-input-range.entry.js +1 -1
  343. package/dist/kolibri/kol-input-text.entry.js +1 -1
  344. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  345. package/dist/kolibri/kol-link-button.entry.js +1 -1
  346. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  347. package/dist/kolibri/kol-link.entry.js +1 -1
  348. package/dist/kolibri/kol-modal.entry.js +1 -1
  349. package/dist/kolibri/kol-nav.entry.js +1 -1
  350. package/dist/kolibri/kol-pagination-wc.entry.js +1 -1
  351. package/dist/kolibri/kol-pagination.entry.js +1 -1
  352. package/dist/kolibri/kol-popover-button-wc.entry.js +1 -1
  353. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  354. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  355. package/dist/kolibri/kol-progress.entry.esm.js.map +1 -1
  356. package/dist/kolibri/kol-progress.entry.js +1 -1
  357. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  358. package/dist/kolibri/kol-quote.entry.esm.js.map +1 -1
  359. package/dist/kolibri/kol-quote.entry.js +1 -1
  360. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  361. package/dist/kolibri/kol-select-wc.entry.js +1 -1
  362. package/dist/kolibri/kol-select.entry.js +1 -1
  363. package/dist/kolibri/kol-single-select.entry.js +1 -1
  364. package/dist/kolibri/kol-skeleton.entry.esm.js.map +1 -1
  365. package/dist/kolibri/kol-skeleton.entry.js +1 -1
  366. package/dist/kolibri/kol-skeleton.entry.js.map +1 -1
  367. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  368. package/dist/kolibri/kol-spin.entry.js +1 -1
  369. package/dist/kolibri/kol-split-button.entry.js +1 -1
  370. package/dist/kolibri/kol-table-settings-wc.entry.js +1 -1
  371. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  372. package/dist/kolibri/kol-table-stateless-wc.entry.esm.js.map +1 -1
  373. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  374. package/dist/kolibri/kol-table-stateless-wc.entry.js.map +1 -1
  375. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  376. package/dist/kolibri/kol-tabs.entry.js +1 -1
  377. package/dist/kolibri/kol-textarea.entry.js +1 -1
  378. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  379. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  380. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  381. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  382. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  383. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  384. package/dist/kolibri/kol-tree.entry.js +1 -1
  385. package/dist/kolibri/kol-version.entry.js +1 -1
  386. package/dist/kolibri/kolibri.esm.js +1 -1
  387. package/dist/kolibri/label-BWcVeIOr.js +4 -0
  388. package/dist/kolibri/{label-DVazFQSR.js.map → label-BWcVeIOr.js.map} +1 -1
  389. package/dist/kolibri/src-9cntFd6X.js +4 -0
  390. package/dist/kolibri/{src-CcGoBQSj.js.map → src-9cntFd6X.js.map} +1 -1
  391. package/dist/kolibri/test-component.entry.js +1 -1
  392. package/dist/types/components/_skeleton/web-components/skeleton/component.d.ts +1 -3
  393. package/dist/types/components/progress/component.d.ts +0 -3
  394. package/dist/types/components/table-stateless/component.d.ts +5 -0
  395. package/dist/types/components.d.ts +0 -8
  396. package/dist/types/internal/functional-components/avatar/api.d.ts +4 -2
  397. package/dist/types/internal/functional-components/avatar/controller.d.ts +0 -1
  398. package/dist/types/internal/functional-components/base-controller.d.ts +5 -2
  399. package/dist/types/internal/functional-components/click-button/controller.d.ts +0 -1
  400. package/dist/types/internal/functional-components/image/controller.d.ts +0 -1
  401. package/dist/types/internal/functional-components/progress/api.d.ts +2 -3
  402. package/dist/types/internal/functional-components/progress/controller.d.ts +0 -1
  403. package/dist/types/internal/functional-components/quote/controller.d.ts +0 -1
  404. package/dist/types/internal/functional-components/skeleton/api.d.ts +7 -4
  405. package/dist/types/internal/functional-components/skeleton/controller.d.ts +0 -2
  406. package/dist/types/internal/props/helpers/factory.d.ts +2 -2
  407. package/dist/types/internal/props/index.d.ts +1 -1
  408. package/doc/skeleton.md +3 -4
  409. package/package.json +5 -5
  410. package/vscode-custom-data.json +0 -4
  411. package/dist/cjs/Icon-xQM_BPGN.js +0 -4
  412. package/dist/cjs/base-controller-DH3vQNQ9.js +0 -4
  413. package/dist/cjs/base-controller-DH3vQNQ9.js.map +0 -1
  414. package/dist/cjs/controller-B7FTgo5S.js +0 -4
  415. package/dist/cjs/controller-DbjuLf_n.js +0 -4
  416. package/dist/cjs/controller-DbjuLf_n.js.map +0 -1
  417. package/dist/cjs/index-0zHTL6Wf.js +0 -4
  418. package/dist/cjs/index-0zHTL6Wf.js.map +0 -1
  419. package/dist/cjs/label-paexHNB6.js +0 -4
  420. package/dist/cjs/src-BTSBdFm2.js +0 -4
  421. package/dist/esm/base-controller-DXBNrrLx.js +0 -4
  422. package/dist/esm/base-controller-DXBNrrLx.js.map +0 -1
  423. package/dist/esm/controller-CseHvmhJ.js +0 -4
  424. package/dist/esm/controller-CseHvmhJ.js.map +0 -1
  425. package/dist/esm/controller-icon-DKRqmDU2.js +0 -4
  426. package/dist/esm/index-CHdBQ7XR.js +0 -4
  427. package/dist/esm/index-CHdBQ7XR.js.map +0 -1
  428. package/dist/esm/label-DVazFQSR.js +0 -4
  429. package/dist/kolibri/FieldControlStateWrapper-D0fzj9Oy.js +0 -4
  430. package/dist/kolibri/FormFieldStateWrapper-BFyiN9EY.js +0 -4
  431. package/dist/kolibri/Heading-Cp72eQOw.js +0 -4
  432. package/dist/kolibri/Input-DXQUCRHF.js +0 -4
  433. package/dist/kolibri/app-globals-BOEnxU7e.js +0 -4
  434. package/dist/kolibri/base-controller-DXBNrrLx.js +0 -4
  435. package/dist/kolibri/base-controller-DXBNrrLx.js.map +0 -1
  436. package/dist/kolibri/controller-CseHvmhJ.js +0 -4
  437. package/dist/kolibri/controller-CseHvmhJ.js.map +0 -1
  438. package/dist/kolibri/controller-icon-DKRqmDU2.js +0 -4
  439. package/dist/kolibri/index-CHdBQ7XR.js.map +0 -1
  440. package/dist/kolibri/label-DVazFQSR.js +0 -4
  441. package/dist/kolibri/src-CcGoBQSj.js +0 -4
  442. package/dist/types/internal/props/initials.d.ts +0 -3
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var index=require("./index-0zHTL6Wf.js"),componentNames=require("./component-names-BcQqUL7D.js");require("./common-BDQKBMeS.js");var label=require("./label-CU8lZiLE.js");const defaultStyleCss="/*\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 .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}",KolAbbr=class{constructor(n){index.registerInstance(this,n),this.state={_label:""}}render(){return index.h(index.Host,{key:"7f764ad6e259ac460dcd1f133da2ef8ad41b74b7",class:"kol-abbr"},index.h("abbr",{key:"3f49be16f6bbbd0d2cbd953319f6b23a8766a241",tabIndex:this.state._label?0:void 0},index.h("slot",{key:"81175d6ce9217f34e4faaa6aa08597e63f07389e"})),this.state._label?index.h(componentNames.KolTooltipWcTag,{"aria-hidden":"true",_label:this.state._label}):null)}validateLabel(n){label.validateLabel(this,n)}componentWillLoad(){this.validateLabel(this._label)}static get watchers(){return{_label:["validateLabel"]}}};KolAbbr.style={default:defaultStyleCss},exports.kol_abbr=KolAbbr;
4
+ "use strict";var index=require("./index-Do5QHQux.js"),componentNames=require("./component-names-BcQqUL7D.js");require("./common-BDQKBMeS.js");var label=require("./label-CU8lZiLE.js");const defaultStyleCss="/*\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 .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}",KolAbbr=class{constructor(n){index.registerInstance(this,n),this.state={_label:""}}render(){return index.h(index.Host,{key:"7f764ad6e259ac460dcd1f133da2ef8ad41b74b7",class:"kol-abbr"},index.h("abbr",{key:"3f49be16f6bbbd0d2cbd953319f6b23a8766a241",tabIndex:this.state._label?0:void 0},index.h("slot",{key:"81175d6ce9217f34e4faaa6aa08597e63f07389e"})),this.state._label?index.h(componentNames.KolTooltipWcTag,{"aria-hidden":"true",_label:this.state._label}):null)}validateLabel(n){label.validateLabel(this,n)}componentWillLoad(){this.validateLabel(this._label)}static get watchers(){return{_label:["validateLabel"]}}};KolAbbr.style={default:defaultStyleCss},exports.kol_abbr=KolAbbr;
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var index=require("./index-0zHTL6Wf.js"),Collapsible=require("./Collapsible-BuDTPOMO.js"),common=require("./common-BDQKBMeS.js"),disabled=require("./disabled-BFciea5y.js"),label=require("./label-CU8lZiLE.js"),open=require("./open-C44zbmgu.js"),dev_utils=require("./dev.utils-JTxdbgzS.js"),events=require("./events-Cd8febUV.js"),validation=require("./validation-30k-K_lm.js");require("./tslib.es6-7DbU_BSw.js"),require("./component-names-BcQqUL7D.js"),require("./clsx-Bm_HQUnh.js"),require("./Heading-g4x-f4VX.js");const validateAccordionCallbacks=(n,e)=>{common.watchValidator(n,"_on",n=>"object"==typeof n&&null!==n,new Set(["AccordionCallbacksPropType {Events.onClick}"]),e)},defaultStyleCss="/*\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-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}";common.featureHint("[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"),common.featureHint("[KolAccordion] Tab-Sperre des Inhalts im geschlossenen Zustand.");const KolAccordion=class{constructor(n){index.registerInstance(this,n),this.nonce=dev_utils.nonce(),this.catchRef=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&&events.dispatchDomEvent(this.host,events.KolEvent.click,!0===this._open)})},this._disabled=!1,this._level=0,this._open=!1,this.state={_label:"",_level:0,_on:{}}}async focus(){var n;return Promise.resolve(null===(n=this.buttonWcRef)||void 0===n?void 0:n.focus())}render(){const{_open:n,_label:e,_disabled:t,_level:i}=this.state,o="kol-accordion",l={id:this.nonce,label:e,open:n,disabled:t,level:i,onClick:this.handleOnClick,class:o,HeadingProps:{class:`${o}__heading`},HeadingButtonProps:{ref:this.catchRef,class:`${o}__heading-button`},ContentProps:{class:`${o}__content`,wrapperClass:`${o}__wrapper`,animationClass:`${o}__wrapper-animation`}};return index.h(Collapsible.KolCollapsibleFc,Object.assign({key:"033717b5a67b6f63ebea447be031a9c234339e43"},l),index.h("slot",{key:"08b68dbec91743fdfabdee75a07a451713951dc6"}))}validateDisabled(n){disabled.validateDisabled(this,n)}validateLabel(n){label.validateLabel(this,n,{required:!0})}validateLevel(n){validation.watchHeadingLevel(this,n)}validateOn(n){validateAccordionCallbacks(this,n)}validateOpen(n){open.validateOpen(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 index.getElement(this)}static get watchers(){return{_disabled:["validateDisabled"],_label:["validateLabel"],_level:["validateLevel"],_on:["validateOn"],_open:["validateOpen"]}}};KolAccordion.style={default:defaultStyleCss},exports.kol_accordion=KolAccordion;
4
+ "use strict";var index=require("./index-Do5QHQux.js"),Collapsible=require("./Collapsible-C1TrB3xP.js"),common=require("./common-BDQKBMeS.js"),disabled=require("./disabled-BFciea5y.js"),label=require("./label-CU8lZiLE.js"),open=require("./open-C44zbmgu.js"),dev_utils=require("./dev.utils-MxjJBX5i.js"),events=require("./events-Cd8febUV.js"),validation=require("./validation-30k-K_lm.js");require("./tslib.es6-7DbU_BSw.js"),require("./component-names-BcQqUL7D.js"),require("./clsx-Bm_HQUnh.js"),require("./Heading-BaoT3MhF.js");const validateAccordionCallbacks=(n,e)=>{common.watchValidator(n,"_on",n=>"object"==typeof n&&null!==n,new Set(["AccordionCallbacksPropType {Events.onClick}"]),e)},defaultStyleCss="/*\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-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}";common.featureHint("[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"),common.featureHint("[KolAccordion] Tab-Sperre des Inhalts im geschlossenen Zustand.");const KolAccordion=class{constructor(n){index.registerInstance(this,n),this.nonce=dev_utils.nonce(),this.catchRef=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&&events.dispatchDomEvent(this.host,events.KolEvent.click,!0===this._open)})},this._disabled=!1,this._level=0,this._open=!1,this.state={_label:"",_level:0,_on:{}}}async focus(){var n;return Promise.resolve(null===(n=this.buttonWcRef)||void 0===n?void 0:n.focus())}render(){const{_open:n,_label:e,_disabled:t,_level:i}=this.state,o="kol-accordion",l={id:this.nonce,label:e,open:n,disabled:t,level:i,onClick:this.handleOnClick,class:o,HeadingProps:{class:`${o}__heading`},HeadingButtonProps:{ref:this.catchRef,class:`${o}__heading-button`},ContentProps:{class:`${o}__content`,wrapperClass:`${o}__wrapper`,animationClass:`${o}__wrapper-animation`}};return index.h(Collapsible.KolCollapsibleFc,Object.assign({key:"033717b5a67b6f63ebea447be031a9c234339e43"},l),index.h("slot",{key:"08b68dbec91743fdfabdee75a07a451713951dc6"}))}validateDisabled(n){disabled.validateDisabled(this,n)}validateLabel(n){label.validateLabel(this,n,{required:!0})}validateLevel(n){validation.watchHeadingLevel(this,n)}validateOn(n){validateAccordionCallbacks(this,n)}validateOpen(n){open.validateOpen(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 index.getElement(this)}static get watchers(){return{_disabled:["validateDisabled"],_label:["validateLabel"],_level:["validateLevel"],_on:["validateOn"],_open:["validateOpen"]}}};KolAccordion.style={default:defaultStyleCss},exports.kol_accordion=KolAccordion;
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var index=require("./index-0zHTL6Wf.js"),Alert=require("./Alert-C3hMI3oh.js"),common=require("./common-BDQKBMeS.js"),hasCloser=require("./has-closer-Cy9ZSkdi.js"),label=require("./label-CU8lZiLE.js"),events=require("./events-Cd8febUV.js"),validation=require("./validation-30k-K_lm.js");require("./tslib.es6-7DbU_BSw.js"),require("./clsx-Bm_HQUnh.js"),require("./component-names-BcQqUL7D.js"),require("./i18n-BWA16k5X.js"),require("./i18n-yHKQt1gl.js"),require("./bem-registry-Nu8Olg0G.js"),require("./browser-BO94X5VC.js"),require("./Heading-g4x-f4VX.js");const alertTypeOptions=["default","info","success","warning","error"],isAlertTypePropType=e=>"string"==typeof e&&alertTypeOptions.includes(e),validateAlertType=(e,t)=>{common.watchValidator(e,"_type",isAlertTypePropType,new Set(alertTypeOptions),t)},alertVariantOptions=["card","msg"],isAlertVariantPropType=e=>"string"==typeof e&&alertVariantOptions.includes(e),validateAlertVariant=(e,t)=>{common.watchValidator(e,"_variant",isAlertVariantPropType,new Set(alertVariantOptions),t)},KolAlertWc=class{constructor(e){index.registerInstance(this,e),this.close=()=>{var e,t;null===(t=null===(e=this._on)||void 0===e?void 0:e.onClose)||void 0===t||t.call(e,new Event("Close")),this.host&&events.dispatchDomEvent(this.host,events.KolEvent.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=e=>"object"==typeof e&&null!==e&&"function"==typeof e.onClose}render(){const{_alert:e,_hasCloser:t,_label:a,_level:l,_type:i,_variant:s}=this.state,r={alert:e,hasCloser:t,label:a,level:l,type:i,variant:s,onCloserClick:this.close,onAlertTimeout:this.handleAlertTimeout};return index.h(Alert.KolAlertFc,Object.assign({key:"5db3514131f644ab76a9bddc438cdf0af412e6e8"},r),index.h("slot",{key:"61ef793542ae680a090596e44fcb98b9f4e55708"}))}validateAlert(e){common.watchBoolean(this,"_alert",e)}validateHasCloser(e){hasCloser.validateHasCloser(this,e)}validateLabel(e){label.validateLabel(this,e)}validateLevel(e){validation.watchHeadingLevel(this,e)}validateOn(e){this.validateOnValue(e)&&common.setState(this,"_on",{onClose:e.onClose})}validateType(e){validateAlertType(this,e)}validateVariant(e){validateAlertVariant(this,e)}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 index.getElement(this)}static get watchers(){return{_alert:["validateAlert"],_hasCloser:["validateHasCloser"],_label:["validateLabel"],_level:["validateLevel"],_on:["validateOn"],_type:["validateType"],_variant:["validateVariant"]}}};exports.kol_alert_wc=KolAlertWc;
4
+ "use strict";var index=require("./index-Do5QHQux.js"),Alert=require("./Alert-DUKI4F6t.js"),common=require("./common-BDQKBMeS.js"),hasCloser=require("./has-closer-Cy9ZSkdi.js"),label=require("./label-CU8lZiLE.js"),events=require("./events-Cd8febUV.js"),validation=require("./validation-30k-K_lm.js");require("./tslib.es6-7DbU_BSw.js"),require("./clsx-Bm_HQUnh.js"),require("./component-names-BcQqUL7D.js"),require("./i18n-BWA16k5X.js"),require("./i18n-yHKQt1gl.js"),require("./bem-registry-Nu8Olg0G.js"),require("./browser-BO94X5VC.js"),require("./Heading-BaoT3MhF.js");const alertTypeOptions=["default","info","success","warning","error"],isAlertTypePropType=e=>"string"==typeof e&&alertTypeOptions.includes(e),validateAlertType=(e,t)=>{common.watchValidator(e,"_type",isAlertTypePropType,new Set(alertTypeOptions),t)},alertVariantOptions=["card","msg"],isAlertVariantPropType=e=>"string"==typeof e&&alertVariantOptions.includes(e),validateAlertVariant=(e,t)=>{common.watchValidator(e,"_variant",isAlertVariantPropType,new Set(alertVariantOptions),t)},KolAlertWc=class{constructor(e){index.registerInstance(this,e),this.close=()=>{var e,t;null===(t=null===(e=this._on)||void 0===e?void 0:e.onClose)||void 0===t||t.call(e,new Event("Close")),this.host&&events.dispatchDomEvent(this.host,events.KolEvent.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=e=>"object"==typeof e&&null!==e&&"function"==typeof e.onClose}render(){const{_alert:e,_hasCloser:t,_label:a,_level:l,_type:i,_variant:s}=this.state,r={alert:e,hasCloser:t,label:a,level:l,type:i,variant:s,onCloserClick:this.close,onAlertTimeout:this.handleAlertTimeout};return index.h(Alert.KolAlertFc,Object.assign({key:"5db3514131f644ab76a9bddc438cdf0af412e6e8"},r),index.h("slot",{key:"61ef793542ae680a090596e44fcb98b9f4e55708"}))}validateAlert(e){common.watchBoolean(this,"_alert",e)}validateHasCloser(e){hasCloser.validateHasCloser(this,e)}validateLabel(e){label.validateLabel(this,e)}validateLevel(e){validation.watchHeadingLevel(this,e)}validateOn(e){this.validateOnValue(e)&&common.setState(this,"_on",{onClose:e.onClose})}validateType(e){validateAlertType(this,e)}validateVariant(e){validateAlertVariant(this,e)}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 index.getElement(this)}static get watchers(){return{_alert:["validateAlert"],_hasCloser:["validateHasCloser"],_label:["validateLabel"],_level:["validateLevel"],_on:["validateOn"],_type:["validateType"],_variant:["validateVariant"]}}};exports.kol_alert_wc=KolAlertWc;
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var index=require("./index-0zHTL6Wf.js"),componentNames=require("./component-names-BcQqUL7D.js");require("./common-BDQKBMeS.js");const defaultStyleCss="@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@layer kol-component {\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 :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}",KolAlert=class{constructor(n){index.registerInstance(this,n),this._alert=!1,this._hasCloser=!1,this._level=0,this._type="default",this._variant="msg",this.state={_level:0}}render(){return index.h(componentNames.KolAlertWcTag,{key:"bf51c76e2d6568eea0d1a0c3047da6987aa249d8",_alert:this._alert,_hasCloser:this._hasCloser,_label:this._label,_level:this._level,_on:this._on,_type:this._type,_variant:this._variant},index.h("slot",{key:"b754666af76f0fcbb15ffeaa4d11b2f61d93abc4"}))}};KolAlert.style={default:defaultStyleCss},exports.kol_alert=KolAlert;
4
+ "use strict";var index=require("./index-Do5QHQux.js"),componentNames=require("./component-names-BcQqUL7D.js");require("./common-BDQKBMeS.js");const defaultStyleCss="@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@layer kol-component {\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 :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}",KolAlert=class{constructor(n){index.registerInstance(this,n),this._alert=!1,this._hasCloser=!1,this._level=0,this._type="default",this._variant="msg",this.state={_level:0}}render(){return index.h(componentNames.KolAlertWcTag,{key:"bf51c76e2d6568eea0d1a0c3047da6987aa249d8",_alert:this._alert,_hasCloser:this._hasCloser,_label:this._label,_level:this._level,_on:this._on,_type:this._type,_variant:this._variant},index.h("slot",{key:"b754666af76f0fcbb15ffeaa4d11b2f61d93abc4"}))}};KolAlert.style={default:defaultStyleCss},exports.kol_alert=KolAlert;
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var index=require("./index-0zHTL6Wf.js"),i18n=require("./i18n-BWA16k5X.js"),bemRegistry=require("./bem-registry-Nu8Olg0G.js");require("./common-BDQKBMeS.js");var contrast=require("./contrast-BrMSnIRe.js"),baseController=require("./base-controller-DH3vQNQ9.js"),label=require("./label-paexHNB6.js"),src=require("./src-BTSBdFm2.js");require("./i18n-yHKQt1gl.js"),require("./browser-BO94X5VC.js");const BEM_BLOCK_AVATAR="kol-avatar",BEM_CLASS_AVATAR__IMAGE=bemRegistry.bem("kol-avatar","image"),BEM_CLASS_AVATAR__INITIALS=bemRegistry.bem("kol-avatar","initials"),AvatarFC=n=>{const{color:e,initials:t,label:o,src:r}=n;return index.h("div",{"aria-label":i18n.translate("kol-avatar-alt",{placeholders:{name:o}}),class:"kol-avatar",role:"img",style:{backgroundColor:e.backgroundColor,color:e.foregroundColor}},r?index.h("img",{alt:"","aria-hidden":"true",class:BEM_CLASS_AVATAR__IMAGE,src:r}):index.h("span",{"aria-hidden":"true",class:BEM_CLASS_AVATAR__INITIALS},t))},HEX_REGEX=/^#((\d|[a-f]){8}|(\d|[a-f]){6}|(\d|[a-f]){3,4})$/i;function isHexString(n){return HEX_REGEX.test(n)}function normalizer(n){if("string"==typeof n&&isHexString(n)){const e=contrast.createContrastColorPair(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&&isHexString(e.backgroundColor)&&isHexString(e.foregroundColor)){const n=contrast.createContrastColorPair({background:e.backgroundColor,foreground:e.foregroundColor});return{backgroundColor:n.background,foregroundColor:n.foreground}}}throw new Error(`Invalid color ${n}`)}function validator(n){return isHexString(n.foregroundColor)&&isHexString(n.backgroundColor)}const colorProp=baseController.createPropDefinition(normalizer,validator),formatNameAsInitial=n=>0===n.length?"":n[0].toUpperCase(),normalizeInitials=n=>{if("string"!=typeof n)throw new Error(`Invalid initials value: ${JSON.stringify(n)}`);const e=n.trim().split(/\s+/),t=e[0],o=e[e.length-1];return e.length>=2&&t&&o?`${formatNameAsInitial(t)}${formatNameAsInitial(o)}`:formatNameAsInitial(n)},initialsProp=baseController.createPropDefinition(normalizeInitials,n=>n.length>0);class AvatarController extends baseController.BaseController{constructor(n){super(n,{color:{backgroundColor:"#d3d3d3",foregroundColor:"#3f3f3f"},label:"",src:""})}componentWillLoad(n){const{color:e,label:t,src:o}=n;this.watchColor(e),this.watchLabel(t),this.watchSrc(o)}watchColor(n){colorProp.apply(n,n=>{this.setProp("color",n)})}watchLabel(n){label.labelProp.apply(n,n=>{this.setProp("label",n)}),initialsProp.apply(n,n=>{this.setState("initials",n)})}watchSrc(n){src.srcProp.apply(n,n=>{this.setProp("src",n)})}}const defaultStyleCss="/* 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}",KolAvatar=class{constructor(n){index.registerInstance(this,n),this.ctrl=new AvatarController(this),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(){const{color:n,label:e,src:t}=this.ctrl.getProps(),{initials:o}=this;return index.h(index.Host,{key:"356e548cb9a73c0fd50b71c01fc8862d08240a96"},index.h(AvatarFC,{key:"c69025eb44ed63b2fd4e5f1e8cd2bace9aa055ac",color:n,label:e,src:t,initials:o}))}static get watchers(){return{_color:["watchColor"],_label:["watchLabel"],_src:["watchSrc"]}}};KolAvatar.style={default:defaultStyleCss},exports.kol_avatar=KolAvatar;
4
+ "use strict";var index=require("./index-Do5QHQux.js"),i18n=require("./i18n-BWA16k5X.js"),bemRegistry=require("./bem-registry-Nu8Olg0G.js");require("./common-BDQKBMeS.js");var contrast=require("./contrast-BrMSnIRe.js"),baseController=require("./base-controller-p-KkQpDk.js"),label=require("./label-CuEScldc.js"),src=require("./src-B6RsOTtm.js");require("./i18n-yHKQt1gl.js"),require("./browser-BO94X5VC.js");const BEM_BLOCK_AVATAR="kol-avatar",BEM_CLASS_AVATAR__IMAGE=bemRegistry.bem("kol-avatar","image"),BEM_CLASS_AVATAR__INITIALS=bemRegistry.bem("kol-avatar","initials"),AvatarFC=n=>{const{color:e,initials:t,label:o,src:r}=n;return index.h("div",{"aria-label":i18n.translate("kol-avatar-alt",{placeholders:{name:o}}),class:"kol-avatar",role:"img",style:{backgroundColor:e.backgroundColor,color:e.foregroundColor}},r?index.h("img",{alt:"","aria-hidden":"true",class:BEM_CLASS_AVATAR__IMAGE,src:r}):index.h("span",{"aria-hidden":"true",class:BEM_CLASS_AVATAR__INITIALS},t))},HEX_REGEX=/^#((\d|[a-f]){8}|(\d|[a-f]){6}|(\d|[a-f]){3,4})$/i;function isHexString(n){return HEX_REGEX.test(n)}function normalizer(n){if("string"==typeof n&&isHexString(n)){const e=contrast.createContrastColorPair(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&&isHexString(e.backgroundColor)&&isHexString(e.foregroundColor)){const n=contrast.createContrastColorPair({background:e.backgroundColor,foreground:e.foregroundColor});return{backgroundColor:n.background,foregroundColor:n.foreground}}}throw new Error(`Invalid color ${n}`)}function validator(n){return isHexString(n.foregroundColor)&&isHexString(n.backgroundColor)}const colorProp=baseController.createPropDefinition(normalizer,validator),formatNameAsInitial=n=>0===n.length?"":n[0].toUpperCase(),normalizeInitials=n=>{const e=n.trim().split(/\s+/),t=e[0],o=e[e.length-1];return e.length>=2&&t&&o?`${formatNameAsInitial(t)}${formatNameAsInitial(o)}`:formatNameAsInitial(n)};class AvatarController extends baseController.BaseController{componentWillLoad(n){const{color:e,label:t,src:o}=n;this.watchColor(e),this.watchLabel(t),this.watchSrc(o)}watchColor(n){colorProp.apply(n,n=>{this.setProp("color",n)},{backgroundColor:"#d3d3d3",foregroundColor:"#3f3f3f"})}watchLabel(n){label.labelProp.apply(n,n=>{this.setProp("label",n),this.setState("initials",normalizeInitials(n))},"")}watchSrc(n){src.srcProp.apply(n,n=>{this.setProp("src",n)},"")}}const defaultStyleCss="/* 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}",KolAvatar=class{constructor(n){index.registerInstance(this,n),this.ctrl=new AvatarController(this),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(){const{color:n,label:e,src:t}=this.ctrl.getProps(),{initials:o}=this;return index.h(index.Host,{key:"356e548cb9a73c0fd50b71c01fc8862d08240a96"},index.h(AvatarFC,{key:"c69025eb44ed63b2fd4e5f1e8cd2bace9aa055ac",color:n,label:e,src:t,initials:o}))}static get watchers(){return{_color:["watchColor"],_label:["watchLabel"],_src:["watchSrc"]}}};KolAvatar.style={default:defaultStyleCss},exports.kol_avatar=KolAvatar;
@@ -1 +1 @@
1
- {"version":3,"file":"kol-avatar.entry.cjs.js","sources":["src/internal/functional-components/avatar/component.tsx","src/internal/props/color.ts","src/internal/props/initials.ts","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 { 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 type { ColorPair } from '../../schema';\nimport { createContrastColorPair } from '../../schema';\nimport { createPropDefinition, type Prop } from './helpers/factory';\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>(normalizer, validator);\n","import type { SimpleProp } from './helpers/factory';\nimport { createPropDefinition } from './helpers/factory';\n\nconst formatNameAsInitial = (name: string): string => {\n\tif (name.length === 0) {\n\t\treturn '';\n\t}\n\n\treturn name[0].toUpperCase();\n};\n\nconst normalizeInitials = (value: unknown): string => {\n\tif (typeof value !== 'string') {\n\t\tthrow new Error(`Invalid initials value: ${JSON.stringify(value)}`);\n\t}\n\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 type InitialsProp = SimpleProp<'initials', string>;\nexport const initialsProp = createPropDefinition<InitialsProp>(normalizeInitials, (v) => v.length > 0);\n","import type { ColorPair } from '../../../schema';\nimport { colorProp, initialsProp, labelProp, srcProp } from '../../props';\nimport { BaseController } from '../base-controller';\nimport type { ControllerInterface, ResolvedInputProps } from '../generic-types';\nimport type { AvatarApi } from './api';\n\nexport class AvatarController extends BaseController<AvatarApi> implements ControllerInterface<AvatarApi> {\n\tpublic constructor(states: AvatarApi['States']) {\n\t\tsuper(states, {\n\t\t\tcolor: { backgroundColor: '#d3d3d3', foregroundColor: '#3f3f3f' },\n\t\t\tlabel: '',\n\t\t\tsrc: '',\n\t\t});\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.setProp('color', v);\n\t\t});\n\t}\n\n\tpublic watchLabel(value?: string): void {\n\t\tlabelProp.apply(value, (v) => {\n\t\t\tthis.setProp('label', v);\n\t\t});\n\t\tinitialsProp.apply(value, (v) => {\n\t\t\tthis.setState('initials', v);\n\t\t});\n\t}\n\n\tpublic watchSrc(value?: string): void {\n\t\tsrcProp.apply(value, (v) => {\n\t\t\tthis.setProp('src', v);\n\t\t});\n\t}\n}\n","@use '../@shared/mixins' as *;\n@use '../../styles/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 type { WebComponentInterface } from '../../internal/functional-components/generic-types';\nimport type { ColorPair } from '../../schema';\n\n@Component({\n\ttag: 'kol-avatar',\n\tshadow: true,\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n})\nexport class KolAvatar implements WebComponentInterface<AvatarApi> {\n\tprivate readonly ctrl = new AvatarController(this);\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\tconst { color, label, src } = this.ctrl.getProps();\n\t\tconst { initials } = this;\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<AvatarFC color={color} label={label} src={src} initials={initials} />\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"names":["bem","h","translate","createContrastColorPair","createPropDefinition","BaseController","labelProp","srcProp","Host"],"mappings":";;;;;;;;;;;;;;;;AAQA,MAAM,gBAAgB,GAAG,YAAY;AACrC,MAAM,uBAAuB,GAAGA,eAAG,CAAC,gBAAgB,EAAE,OAAO,CAAC;AAC9D,MAAM,0BAA0B,GAAGA,eAAG,CAAC,gBAAgB,EAAE,UAAU,CAAC;AAE7D,MAAM,QAAQ,GAA4C,CAAC,KAAK,KAAI;IAC1E,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,KAAK;AAE7C,IAAA,QACCC,OACa,CAAA,KAAA,EAAA,EAAA,YAAA,EAAAC,cAAS,CAAC,gBAAgB,EAAE,EAAE,YAAY,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,EAC1E,KAAK,EAAC,YAAY,EAClB,IAAI,EAAC,KAAK,EACV,KAAK,EAAE;YACN,eAAe,EAAE,KAAK,CAAC,eAAe;YACtC,KAAK,EAAE,KAAK,CAAC,eAAe;SAC5B,EAAA,EAEA,GAAG,IACHD,iBAAK,GAAG,EAAC,EAAE,EAAA,aAAA,EAAa,MAAM,EAAC,KAAK,EAAE,uBAAuB,EAAE,GAAG,EAAE,GAAG,EAAA,CAAI,KAE3EA,iCAAkB,MAAM,EAAC,KAAK,EAAE,0BAA0B,EACxD,EAAA,QAAQ,CACH,CACP,CACI;AAER,CAAC;;AC9BD,MAAM,SAAS,GAAG,mDAAmD;AACrE,SAAS,WAAW,CAAC,KAAa,EAAA;AACjC,IAAA,OAAO,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC;AAC7B;AAEA,SAAS,UAAU,CAAC,KAAc,EAAA;IACjC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,WAAW,CAAC,KAAK,CAAC,EAAE;AACpD,QAAA,MAAM,MAAM,GAAGE,gCAAuB,CAAC,KAAK,CAAC;QAC7C,OAAO;YACN,eAAe,EAAE,MAAM,CAAC,UAAU;YAClC,eAAe,EAAE,MAAM,CAAC,UAAU;SAClC;;AACK,SAAA,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,EAAE;QAC9C,MAAM,SAAS,GAAG,KAAkB;AACpC,QAAA,IACC,OAAO,SAAS,CAAC,eAAe,KAAK,QAAQ;AAC7C,YAAA,OAAO,SAAS,CAAC,eAAe,KAAK,QAAQ;AAC7C,YAAA,WAAW,CAAC,SAAS,CAAC,eAAe,CAAC;AACtC,YAAA,WAAW,CAAC,SAAS,CAAC,eAAe,CAAC,EACrC;YACD,MAAM,MAAM,GAAGA,gCAAuB,CAAC;gBACtC,UAAU,EAAE,SAAS,CAAC,eAAe;gBACrC,UAAU,EAAE,SAAS,CAAC,eAAe;AACrC,aAAA,CAAC;YACF,OAAO;gBACN,eAAe,EAAE,MAAM,CAAC,UAAU;gBAClC,eAAe,EAAE,MAAM,CAAC,UAAU;aAClC;;;AAGH,IAAA,MAAM,IAAI,KAAK,CAAC,iBAAiB,KAAe,CAAA,CAAE,CAAC;AACpD;AAEA,SAAS,SAAS,CAAC,KAAgB,EAAA;AAClC,IAAA,OAAO,WAAW,CAAC,KAAK,CAAC,eAAe,CAAC,IAAI,WAAW,CAAC,KAAK,CAAC,eAAe,CAAC;AAChF;AAGO,MAAM,SAAS,GAAGC,mCAAoB,CAAY,UAAU,EAAE,SAAS,CAAC;;ACvC/E,MAAM,mBAAmB,GAAG,CAAC,IAAY,KAAY;AACpD,IAAA,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;AACtB,QAAA,OAAO,EAAE;;AAGV,IAAA,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE;AAC7B,CAAC;AAED,MAAM,iBAAiB,GAAG,CAAC,KAAc,KAAY;AACpD,IAAA,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;AAC9B,QAAA,MAAM,IAAI,KAAK,CAAC,CAAA,wBAAA,EAA2B,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAE,CAAA,CAAC;;IAGpE,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC;AACvC,IAAA,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC;IACtB,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;IAGpC,IAAI,KAAK,CAAC,MAAM,IAAI,CAAC,IAAI,KAAK,IAAI,IAAI,EAAE;QACvC,OAAO,CAAA,EAAG,mBAAmB,CAAC,KAAK,CAAC,CAAG,EAAA,mBAAmB,CAAC,IAAI,CAAC,CAAA,CAAE;;AAGnE,IAAA,OAAO,mBAAmB,CAAC,KAAK,CAAC;AAClC,CAAC;AAGM,MAAM,YAAY,GAAGA,mCAAoB,CAAe,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;;ACvBhG,MAAO,gBAAiB,SAAQC,6BAAyB,CAAA;AAC9D,IAAA,WAAA,CAAmB,MAA2B,EAAA;QAC7C,KAAK,CAAC,MAAM,EAAE;YACb,KAAK,EAAE,EAAE,eAAe,EAAE,SAAS,EAAE,eAAe,EAAE,SAAS,EAAE;AACjE,YAAA,KAAK,EAAE,EAAE;AACT,YAAA,GAAG,EAAE,EAAE;AACP,SAAA,CAAC;;AAGI,IAAA,iBAAiB,CAAC,KAAoC,EAAA;QAC5D,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,KAAK;AACnC,QAAA,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;AACtB,QAAA,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;AACtB,QAAA,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC;;AAGZ,IAAA,UAAU,CAAC,KAA0B,EAAA;QAC3C,SAAS,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,KAAI;AAC5B,YAAA,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;AACzB,SAAC,CAAC;;AAGI,IAAA,UAAU,CAAC,KAAc,EAAA;QAC/BC,eAAS,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,KAAI;AAC5B,YAAA,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;AACzB,SAAC,CAAC;QACF,YAAY,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,KAAI;AAC/B,YAAA,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC;AAC7B,SAAC,CAAC;;AAGI,IAAA,QAAQ,CAAC,KAAc,EAAA;QAC7BC,WAAO,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,KAAI;AAC1B,YAAA,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;AACvB,SAAC,CAAC;;AAEH;;AC1CD,MAAM,eAAe,GAAG,23LAA23L;;MCet4L,SAAS,GAAA,MAAA;AAPtB,IAAA,WAAA,CAAA,OAAA,EAAA;;QAQkB,IAAA,CAAA,IAAI,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC;AAoC3C,QAAA,IAAQ,CAAA,QAAA,GAAW,EAAE;AAmB5B;AA9CO,IAAA,UAAU,CAAC,KAA0B,EAAA;AAC3C,QAAA,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;;AAUrB,IAAA,UAAU,CAAC,KAAc,EAAA;AAC/B,QAAA,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;;AAUrB,IAAA,QAAQ,CAAC,KAAc,EAAA;AAC7B,QAAA,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;;IAMnB,iBAAiB,GAAA;AACvB,QAAA,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC;YAC3B,KAAK,EAAE,IAAI,CAAC,MAAM;YAClB,KAAK,EAAE,IAAI,CAAC,MAAM;YAClB,GAAG,EAAE,IAAI,CAAC,IAAI;AACd,SAAA,CAAC;;IAGI,MAAM,GAAA;AACZ,QAAA,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;AAClD,QAAA,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI;AACzB,QAAA,QACCN,QAACO,UAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EACJP,OAAC,CAAA,QAAQ,qDAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAI,CAAA,CAChE;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"kol-avatar.entry.cjs.js","sources":["src/internal/functional-components/avatar/component.tsx","src/internal/props/color.ts","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 { 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 type { ColorPair } from '../../schema';\nimport { createContrastColorPair } from '../../schema';\nimport { createPropDefinition, type Prop } from './helpers/factory';\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>(normalizer, validator);\n","import type { ColorPair } from '../../../schema';\nimport { colorProp, labelProp, srcProp } from '../../props';\nimport { BaseController } from '../base-controller';\nimport type { ControllerInterface, ResolvedInputProps } from '../generic-types';\nimport type { AvatarApi } 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 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(\n\t\t\tvalue,\n\t\t\t(v) => {\n\t\t\t\tthis.setProp('color', v);\n\t\t\t},\n\t\t\t{\n\t\t\t\tbackgroundColor: '#d3d3d3',\n\t\t\t\tforegroundColor: '#3f3f3f',\n\t\t\t},\n\t\t);\n\t}\n\n\tpublic watchLabel(value?: string): void {\n\t\tlabelProp.apply(\n\t\t\tvalue,\n\t\t\t(v) => {\n\t\t\t\tthis.setProp('label', v);\n\t\t\t\tthis.setState('initials', normalizeInitials(v));\n\t\t\t},\n\t\t\t'',\n\t\t);\n\t}\n\n\tpublic watchSrc(value?: string): void {\n\t\tsrcProp.apply(\n\t\t\tvalue,\n\t\t\t(v) => {\n\t\t\t\tthis.setProp('src', v);\n\t\t\t},\n\t\t\t'',\n\t\t);\n\t}\n}\n","@use '../@shared/mixins' as *;\n@use '../../styles/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 type { WebComponentInterface } from '../../internal/functional-components/generic-types';\nimport type { ColorPair } from '../../schema';\n\n@Component({\n\ttag: 'kol-avatar',\n\tshadow: true,\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n})\nexport class KolAvatar implements WebComponentInterface<AvatarApi> {\n\tprivate readonly ctrl = new AvatarController(this);\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\tconst { color, label, src } = this.ctrl.getProps();\n\t\tconst { initials } = this;\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<AvatarFC color={color} label={label} src={src} initials={initials} />\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"names":["bem","h","translate","createContrastColorPair","createPropDefinition","BaseController","labelProp","srcProp","Host"],"mappings":";;;;;;;;;;;;;;;;AAQA,MAAM,gBAAgB,GAAG,YAAY;AACrC,MAAM,uBAAuB,GAAGA,eAAG,CAAC,gBAAgB,EAAE,OAAO,CAAC;AAC9D,MAAM,0BAA0B,GAAGA,eAAG,CAAC,gBAAgB,EAAE,UAAU,CAAC;AAE7D,MAAM,QAAQ,GAA4C,CAAC,KAAK,KAAI;IAC1E,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,KAAK;AAE7C,IAAA,QACCC,OACa,CAAA,KAAA,EAAA,EAAA,YAAA,EAAAC,cAAS,CAAC,gBAAgB,EAAE,EAAE,YAAY,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,EAC1E,KAAK,EAAC,YAAY,EAClB,IAAI,EAAC,KAAK,EACV,KAAK,EAAE;YACN,eAAe,EAAE,KAAK,CAAC,eAAe;YACtC,KAAK,EAAE,KAAK,CAAC,eAAe;SAC5B,EAAA,EAEA,GAAG,IACHD,iBAAK,GAAG,EAAC,EAAE,EAAA,aAAA,EAAa,MAAM,EAAC,KAAK,EAAE,uBAAuB,EAAE,GAAG,EAAE,GAAG,EAAA,CAAI,KAE3EA,iCAAkB,MAAM,EAAC,KAAK,EAAE,0BAA0B,EACxD,EAAA,QAAQ,CACH,CACP,CACI;AAER,CAAC;;AC9BD,MAAM,SAAS,GAAG,mDAAmD;AACrE,SAAS,WAAW,CAAC,KAAa,EAAA;AACjC,IAAA,OAAO,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC;AAC7B;AAEA,SAAS,UAAU,CAAC,KAAc,EAAA;IACjC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,WAAW,CAAC,KAAK,CAAC,EAAE;AACpD,QAAA,MAAM,MAAM,GAAGE,gCAAuB,CAAC,KAAK,CAAC;QAC7C,OAAO;YACN,eAAe,EAAE,MAAM,CAAC,UAAU;YAClC,eAAe,EAAE,MAAM,CAAC,UAAU;SAClC;;AACK,SAAA,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,EAAE;QAC9C,MAAM,SAAS,GAAG,KAAkB;AACpC,QAAA,IACC,OAAO,SAAS,CAAC,eAAe,KAAK,QAAQ;AAC7C,YAAA,OAAO,SAAS,CAAC,eAAe,KAAK,QAAQ;AAC7C,YAAA,WAAW,CAAC,SAAS,CAAC,eAAe,CAAC;AACtC,YAAA,WAAW,CAAC,SAAS,CAAC,eAAe,CAAC,EACrC;YACD,MAAM,MAAM,GAAGA,gCAAuB,CAAC;gBACtC,UAAU,EAAE,SAAS,CAAC,eAAe;gBACrC,UAAU,EAAE,SAAS,CAAC,eAAe;AACrC,aAAA,CAAC;YACF,OAAO;gBACN,eAAe,EAAE,MAAM,CAAC,UAAU;gBAClC,eAAe,EAAE,MAAM,CAAC,UAAU;aAClC;;;AAGH,IAAA,MAAM,IAAI,KAAK,CAAC,iBAAiB,KAAe,CAAA,CAAE,CAAC;AACpD;AAEA,SAAS,SAAS,CAAC,KAAgB,EAAA;AAClC,IAAA,OAAO,WAAW,CAAC,KAAK,CAAC,eAAe,CAAC,IAAI,WAAW,CAAC,KAAK,CAAC,eAAe,CAAC;AAChF;AAGO,MAAM,SAAS,GAAGC,mCAAoB,CAAY,UAAU,EAAE,SAAS,CAAC;;AC/B/E,MAAM,mBAAmB,GAAG,CAAC,IAAY,KAAY;AACpD,IAAA,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;AACtB,QAAA,OAAO,EAAE;;AAGV,IAAA,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE;AAC7B,CAAC;AASD,MAAM,iBAAiB,GAAG,CAAC,KAAa,KAAY;IACnD,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC;AACvC,IAAA,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC;IACtB,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;IAGpC,IAAI,KAAK,CAAC,MAAM,IAAI,CAAC,IAAI,KAAK,IAAI,IAAI,EAAE;QACvC,OAAO,CAAA,EAAG,mBAAmB,CAAC,KAAK,CAAC,CAAG,EAAA,mBAAmB,CAAC,IAAI,CAAC,CAAA,CAAE;;AAGnE,IAAA,OAAO,mBAAmB,CAAC,KAAK,CAAC;AAClC,CAAC;AAEK,MAAO,gBAAiB,SAAQC,6BAAyB,CAAA;AACvD,IAAA,iBAAiB,CAAC,KAAoC,EAAA;QAC5D,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,KAAK;AACnC,QAAA,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;AACtB,QAAA,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;AACtB,QAAA,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC;;AAGZ,IAAA,UAAU,CAAC,KAA0B,EAAA;QAC3C,SAAS,CAAC,KAAK,CACd,KAAK,EACL,CAAC,CAAC,KAAI;AACL,YAAA,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;AACzB,SAAC,EACD;AACC,YAAA,eAAe,EAAE,SAAS;AAC1B,YAAA,eAAe,EAAE,SAAS;AAC1B,SAAA,CACD;;AAGK,IAAA,UAAU,CAAC,KAAc,EAAA;QAC/BC,eAAS,CAAC,KAAK,CACd,KAAK,EACL,CAAC,CAAC,KAAI;AACL,YAAA,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;YACxB,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC;SAC/C,EACD,EAAE,CACF;;AAGK,IAAA,QAAQ,CAAC,KAAc,EAAA;QAC7BC,WAAO,CAAC,KAAK,CACZ,KAAK,EACL,CAAC,CAAC,KAAI;AACL,YAAA,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;SACtB,EACD,EAAE,CACF;;AAEF;;AChFD,MAAM,eAAe,GAAG,23LAA23L;;MCet4L,SAAS,GAAA,MAAA;AAPtB,IAAA,WAAA,CAAA,OAAA,EAAA;;QAQkB,IAAA,CAAA,IAAI,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC;AAoC3C,QAAA,IAAQ,CAAA,QAAA,GAAW,EAAE;AAmB5B;AA9CO,IAAA,UAAU,CAAC,KAA0B,EAAA;AAC3C,QAAA,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;;AAUrB,IAAA,UAAU,CAAC,KAAc,EAAA;AAC/B,QAAA,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;;AAUrB,IAAA,QAAQ,CAAC,KAAc,EAAA;AAC7B,QAAA,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;;IAMnB,iBAAiB,GAAA;AACvB,QAAA,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC;YAC3B,KAAK,EAAE,IAAI,CAAC,MAAM;YAClB,KAAK,EAAE,IAAI,CAAC,MAAM;YAClB,GAAG,EAAE,IAAI,CAAC,IAAI;AACd,SAAA,CAAC;;IAGI,MAAM,GAAA;AACZ,QAAA,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;AAClD,QAAA,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI;AACzB,QAAA,QACCN,QAACO,UAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EACJP,OAAC,CAAA,QAAQ,qDAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAI,CAAA,CAChE;;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var index=require("./index-0zHTL6Wf.js");require("./Alert-C3hMI3oh.js");var componentNames=require("./component-names-BcQqUL7D.js"),clsx=require("./clsx-Bm_HQUnh.js"),common=require("./common-BDQKBMeS.js"),color=require("./color-Dl58nZfm.js"),icons=require("./icons-CJGhlHRm.js");require("./i18n-BWA16k5X.js");var Span=require("./Span-DbRr6xgU.js"),dev_utils=require("./dev.utils-JTxdbgzS.js");require("./tslib.es6-7DbU_BSw.js"),require("./bem-registry-Nu8Olg0G.js"),require("./browser-BO94X5VC.js"),require("./Heading-g4x-f4VX.js"),require("./contrast-BrMSnIRe.js"),require("./i18n-yHKQt1gl.js"),require("./Icon-xQM_BPGN.js"),require("./InternalUnderlinedBadgeText-C63kz_7k.js"),require("./isObject-DMA85Fq4.js"),require("./markdown-DROYq1-V.js");const defaultStyleCss="/* 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 .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-badge {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n display: inline-flex;\n place-items: center;\n }\n .kol-badge .kol-badge__smart-button .button {\n color: inherit;\n }\n}";common.featureHint("[KolBadge] Optimierung des _color-Properties (rgba, rgb, hex usw.).");const KolBadge=class{constructor(n){index.registerInstance(this,n),this.bgColorStr="#000",this.colorStr="#fff",this.id=dev_utils.nonce(),this.catchSmartButtonRef=n=>{this.smartButtonRef=n},this._color="#000",this.state={_color:{backgroundColor:"#000",foregroundColor:"#fff"},_icons:{}},this.handleColorChange=n=>{const e=color.handleColorChange(n);this.bgColorStr=e.backgroundColor,this.colorStr=e.foregroundColor}}renderSmartButton(n){return index.h(componentNames.KolButtonWcTag,{ref:this.catchSmartButtonRef,class:"kol-badge__smart-button",_ariaControls:this.id,_ariaDescription:n._ariaDescription,_variant:n._variant,_customClass:n._customClass,_disabled:n._disabled,_hideLabel:!0,_icons:n._icons,_id:n._id,_label:n._label,_on:n._on,_tooltipAlign:n._tooltipAlign})}async focus(){var n;return Promise.resolve(null===(n=this.smartButtonRef)||void 0===n?void 0:n.focus())}render(){const n="object"==typeof this.state._smartButton&&null!==this.state._smartButton;return index.h("span",{key:"52d5943769be151313c36cf4e733e287c17b2d1c",class:clsx.clsx("kol-badge",{"kol-badge--has-smart-button":"object"==typeof this.state._smartButton&&null!==this.state._smartButton}),style:{backgroundColor:this.bgColorStr,color:this.colorStr}},index.h(Span.KolSpanFc,{key:"0d12965762f74d81a8ad94fa2e155a762960ec8d",class:"kol-badge__label",id:n?this.id:void 0,allowMarkdown:!0,icons:this.state._icons,label:this._label}),n&&this.renderSmartButton(this.state._smartButton))}validateIcons(n){icons.validateIcons(this,n)}validateColor(n){color.validateColor(this,n,{defaultValue:"#000",hooks:{beforePatch:this.handleColorChange}})}validateSmartButton(n){common.objectObjectHandler(n,()=>{try{n=common.parseJson(n)}catch(n){}common.setState(this,"_smartButton",n)})}componentWillLoad(){this.validateIcons(this._icons),this.validateColor(this._color),this.validateSmartButton(this._smartButton)}static get watchers(){return{_icons:["validateIcons"],_color:["validateColor"],_smartButton:["validateSmartButton"]}}};KolBadge.style={default:defaultStyleCss},exports.kol_badge=KolBadge;
4
+ "use strict";var index=require("./index-Do5QHQux.js");require("./Alert-DUKI4F6t.js");var componentNames=require("./component-names-BcQqUL7D.js"),clsx=require("./clsx-Bm_HQUnh.js"),common=require("./common-BDQKBMeS.js"),color=require("./color-Dl58nZfm.js"),icons=require("./icons-CJGhlHRm.js");require("./i18n-BWA16k5X.js");var Span=require("./Span-C0FLp1D0.js"),dev_utils=require("./dev.utils-MxjJBX5i.js");require("./tslib.es6-7DbU_BSw.js"),require("./bem-registry-Nu8Olg0G.js"),require("./browser-BO94X5VC.js"),require("./Heading-BaoT3MhF.js"),require("./contrast-BrMSnIRe.js"),require("./i18n-yHKQt1gl.js"),require("./Icon-Cjo0FQnO.js"),require("./InternalUnderlinedBadgeText-BR019eHx.js"),require("./isObject-DMA85Fq4.js"),require("./markdown-DROYq1-V.js");const defaultStyleCss="/* 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 .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-badge {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n display: inline-flex;\n place-items: center;\n }\n .kol-badge .kol-badge__smart-button .button {\n color: inherit;\n }\n}";common.featureHint("[KolBadge] Optimierung des _color-Properties (rgba, rgb, hex usw.).");const KolBadge=class{constructor(n){index.registerInstance(this,n),this.bgColorStr="#000",this.colorStr="#fff",this.id=dev_utils.nonce(),this.catchSmartButtonRef=n=>{this.smartButtonRef=n},this._color="#000",this.state={_color:{backgroundColor:"#000",foregroundColor:"#fff"},_icons:{}},this.handleColorChange=n=>{const e=color.handleColorChange(n);this.bgColorStr=e.backgroundColor,this.colorStr=e.foregroundColor}}renderSmartButton(n){return index.h(componentNames.KolButtonWcTag,{ref:this.catchSmartButtonRef,class:"kol-badge__smart-button",_ariaControls:this.id,_ariaDescription:n._ariaDescription,_variant:n._variant,_customClass:n._customClass,_disabled:n._disabled,_hideLabel:!0,_icons:n._icons,_id:n._id,_label:n._label,_on:n._on,_tooltipAlign:n._tooltipAlign})}async focus(){var n;return Promise.resolve(null===(n=this.smartButtonRef)||void 0===n?void 0:n.focus())}render(){const n="object"==typeof this.state._smartButton&&null!==this.state._smartButton;return index.h("span",{key:"52d5943769be151313c36cf4e733e287c17b2d1c",class:clsx.clsx("kol-badge",{"kol-badge--has-smart-button":"object"==typeof this.state._smartButton&&null!==this.state._smartButton}),style:{backgroundColor:this.bgColorStr,color:this.colorStr}},index.h(Span.KolSpanFc,{key:"0d12965762f74d81a8ad94fa2e155a762960ec8d",class:"kol-badge__label",id:n?this.id:void 0,allowMarkdown:!0,icons:this.state._icons,label:this._label}),n&&this.renderSmartButton(this.state._smartButton))}validateIcons(n){icons.validateIcons(this,n)}validateColor(n){color.validateColor(this,n,{defaultValue:"#000",hooks:{beforePatch:this.handleColorChange}})}validateSmartButton(n){common.objectObjectHandler(n,()=>{try{n=common.parseJson(n)}catch(n){}common.setState(this,"_smartButton",n)})}componentWillLoad(){this.validateIcons(this._icons),this.validateColor(this._color),this.validateSmartButton(this._smartButton)}static get watchers(){return{_icons:["validateIcons"],_color:["validateColor"],_smartButton:["validateSmartButton"]}}};KolBadge.style={default:defaultStyleCss},exports.kol_badge=KolBadge;
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var index=require("./index-0zHTL6Wf.js"),common=require("./common-BDQKBMeS.js"),label=require("./label-CU8lZiLE.js"),uniqueNavLabels=require("./unique-nav-labels-B1wmg8bZ.js"),validation=require("./validation-BLh3pJu9.js"),componentNames=require("./component-names-BcQqUL7D.js");const defaultStyleCss="/*\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 .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 {\n display: inline-block;\n }\n .kol-link {\n display: inline-flex;\n max-width: fit-content;\n align-items: baseline;\n place-items: center;\n text-align: left;\n text-decoration-line: none;\n }\n .kol-link--standalone {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n align-items: stretch;\n }\n .kol-link--standalone .kol-link__text {\n display: inline-flex;\n flex: 1 1 100%;\n place-items: center;\n }\n .kol-link .kol-span__label {\n text-decoration-line: underline;\n }\n .kol-link:focus:not([aria-disabled], [disabled]) .kol-span__label, .kol-link:hover:not([aria-disabled], [disabled]) .kol-span__label {\n text-decoration-thickness: 0.2em;\n }\n .kol-link__icon {\n display: inline-flex;\n margin-left: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-breadcrumb__list, .kol-breadcrumb__list-element {\n display: flex;\n margin: 0;\n padding: 0;\n gap: 0.5em;\n flex-wrap: wrap;\n place-items: center;\n list-style: none;\n }\n .kol-breadcrumb__list-element:first-child:last-child {\n min-height: var(--a11y-min-size);\n }\n}",KolBreadcrumb=class{constructor(n){index.registerInstance(this,n),this.renderLink=(n,e)=>{const t=this.state._links.length-1;return index.h("li",{class:"kol-breadcrumb__list-element",key:e},e===t?index.h("span",{class:"kol-breadcrumb__list-element-span","aria-current":"page"},n._hideLabel?index.h(componentNames.KolIconTag,{class:"kol-breadcrumb__icon",_label:n._label,_icons:"string"==typeof n._icons?n._icons:"kolicon-link"}):index.h(index.Fragment,null,n._label)):index.h(componentNames.KolLinkWcTag,Object.assign({class:"kol-breadcrumb__link",_inline:!1},n)),e!==t&&index.h(componentNames.KolIconTag,{class:"kol-breadcrumb__separator",_label:"",_icons:"kolicon-chevron-right"}))},this.state={_label:"",_links:[]}}render(){return index.h("nav",{key:"d086ccf1b9fccd3c2d9afe55f56a285e58f451f5",class:"kol-breadcrumb","aria-label":this.state._label},index.h("ul",{key:"ea55b4eed94749a422d06e470f3f09b75e0a7978",class:"kol-breadcrumb__list"},0===this.state._links.length&&index.h("li",{key:"e601d2603ba034b4b0d553138f1d4e762fc372e8"},index.h(componentNames.KolIconTag,{key:"d73b5a1132e30ed8692f3aafe1321acd57232b64",class:"kol-breadcrumb_icon",_label:"",_icons:"kolicon-house"}),"…"),this.state._links.map(this.renderLink)))}validateLabel(n,e,t=!1){t||uniqueNavLabels.removeNavLabel(this.state._label),label.validateLabel(this,n,{required:!0}),common.a11yHintLabelingLandmarks(n),uniqueNavLabels.addNavLabel(this.state._label)}validateLinks(n){validation.watchNavLinks("KolBreadcrumb",this,n)}componentWillLoad(){this.validateLabel(this._label,void 0,!0),this.validateLinks(this._links)}disconnectedCallback(){uniqueNavLabels.removeNavLabel(this.state._label)}static get watchers(){return{_label:["validateLabel"],_links:["validateLinks"]}}};KolBreadcrumb.style={default:defaultStyleCss},exports.kol_breadcrumb=KolBreadcrumb;
4
+ "use strict";var index=require("./index-Do5QHQux.js"),common=require("./common-BDQKBMeS.js"),label=require("./label-CU8lZiLE.js"),uniqueNavLabels=require("./unique-nav-labels-B1wmg8bZ.js"),validation=require("./validation-BLh3pJu9.js"),componentNames=require("./component-names-BcQqUL7D.js");const defaultStyleCss="/*\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 .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 {\n display: inline-block;\n }\n .kol-link {\n display: inline-flex;\n max-width: fit-content;\n align-items: baseline;\n place-items: center;\n text-align: left;\n text-decoration-line: none;\n }\n .kol-link--standalone {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n align-items: stretch;\n }\n .kol-link--standalone .kol-link__text {\n display: inline-flex;\n flex: 1 1 100%;\n place-items: center;\n }\n .kol-link .kol-span__label {\n text-decoration-line: underline;\n }\n .kol-link:focus:not([aria-disabled], [disabled]) .kol-span__label, .kol-link:hover:not([aria-disabled], [disabled]) .kol-span__label {\n text-decoration-thickness: 0.2em;\n }\n .kol-link__icon {\n display: inline-flex;\n margin-left: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-breadcrumb__list, .kol-breadcrumb__list-element {\n display: flex;\n margin: 0;\n padding: 0;\n gap: 0.5em;\n flex-wrap: wrap;\n place-items: center;\n list-style: none;\n }\n .kol-breadcrumb__list-element:first-child:last-child {\n min-height: var(--a11y-min-size);\n }\n}",KolBreadcrumb=class{constructor(n){index.registerInstance(this,n),this.renderLink=(n,e)=>{const t=this.state._links.length-1;return index.h("li",{class:"kol-breadcrumb__list-element",key:e},e===t?index.h("span",{class:"kol-breadcrumb__list-element-span","aria-current":"page"},n._hideLabel?index.h(componentNames.KolIconTag,{class:"kol-breadcrumb__icon",_label:n._label,_icons:"string"==typeof n._icons?n._icons:"kolicon-link"}):index.h(index.Fragment,null,n._label)):index.h(componentNames.KolLinkWcTag,Object.assign({class:"kol-breadcrumb__link",_inline:!1},n)),e!==t&&index.h(componentNames.KolIconTag,{class:"kol-breadcrumb__separator",_label:"",_icons:"kolicon-chevron-right"}))},this.state={_label:"",_links:[]}}render(){return index.h("nav",{key:"d086ccf1b9fccd3c2d9afe55f56a285e58f451f5",class:"kol-breadcrumb","aria-label":this.state._label},index.h("ul",{key:"ea55b4eed94749a422d06e470f3f09b75e0a7978",class:"kol-breadcrumb__list"},0===this.state._links.length&&index.h("li",{key:"e601d2603ba034b4b0d553138f1d4e762fc372e8"},index.h(componentNames.KolIconTag,{key:"d73b5a1132e30ed8692f3aafe1321acd57232b64",class:"kol-breadcrumb_icon",_label:"",_icons:"kolicon-house"}),"…"),this.state._links.map(this.renderLink)))}validateLabel(n,e,t=!1){t||uniqueNavLabels.removeNavLabel(this.state._label),label.validateLabel(this,n,{required:!0}),common.a11yHintLabelingLandmarks(n),uniqueNavLabels.addNavLabel(this.state._label)}validateLinks(n){validation.watchNavLinks("KolBreadcrumb",this,n)}componentWillLoad(){this.validateLabel(this._label,void 0,!0),this.validateLinks(this._links)}disconnectedCallback(){uniqueNavLabels.removeNavLabel(this.state._label)}static get watchers(){return{_label:["validateLabel"],_links:["validateLinks"]}}};KolBreadcrumb.style={default:defaultStyleCss},exports.kol_breadcrumb=KolBreadcrumb;
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var index=require("./index-0zHTL6Wf.js"),componentNames=require("./component-names-BcQqUL7D.js");require("./common-BDQKBMeS.js");const defaultStyleCss="/* 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 .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 {\n display: inline-block;\n }\n .kol-button {\n display: inline-flex;\n max-width: fit-content;\n align-items: baseline;\n place-items: center;\n text-align: left;\n text-decoration-line: none;\n }\n .kol-button--standalone {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n align-items: stretch;\n }\n .kol-button--standalone .kol-button__text {\n display: inline-flex;\n flex: 1 1 100%;\n place-items: center;\n }\n .kol-button .kol-span__label {\n text-decoration-line: underline;\n }\n .kol-button:focus:not([aria-disabled], [disabled]) .kol-span__label, .kol-button:hover:not([aria-disabled], [disabled]) .kol-span__label {\n text-decoration-thickness: 0.2em;\n }\n .kol-button__icon {\n display: inline-flex;\n margin-left: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-button--inline {\n min-width: unset;\n min-height: unset;\n }\n}",KolButtonLink=class{constructor(n){index.registerInstance(this,n),this.catchRef=n=>{this.buttonWcRef=n},this._disabled=!1,this._hideLabel=!1,this._inline=!0,this._tooltipAlign="top",this._type="button"}async getValue(){return this._value}async focus(){var n;return Promise.resolve(null===(n=this.buttonWcRef)||void 0===n?void 0:n.focus())}render(){return index.h(componentNames.KolButtonWcTag,{key:"a2c848b3dd301fc345b257e472025d598241fd3e",ref:this.catchRef,_accessKey:this._accessKey,_ariaControls:this._ariaControls,_ariaDescription:this._ariaDescription,_ariaExpanded:this._ariaExpanded,_ariaSelected:this._ariaSelected,_disabled:this._disabled,_hideLabel:this._hideLabel,_icons:this._icons,_inline:this._inline,_label:this._label,_name:this._name,_on:this._on,_shortKey:this._shortKey,_syncValueBySelector:this._syncValueBySelector,_tooltipAlign:this._tooltipAlign,_type:this._type,_value:this._value,_variant:this._variant},index.h("slot",{key:"35770be517dc2b461efec7c21b1811d6edf3ab91",name:"expert",slot:"expert"}))}};KolButtonLink.style={default:defaultStyleCss},exports.kol_button_link=KolButtonLink;
4
+ "use strict";var index=require("./index-Do5QHQux.js"),componentNames=require("./component-names-BcQqUL7D.js");require("./common-BDQKBMeS.js");const defaultStyleCss="/* 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 .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 {\n display: inline-block;\n }\n .kol-button {\n display: inline-flex;\n max-width: fit-content;\n align-items: baseline;\n place-items: center;\n text-align: left;\n text-decoration-line: none;\n }\n .kol-button--standalone {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n align-items: stretch;\n }\n .kol-button--standalone .kol-button__text {\n display: inline-flex;\n flex: 1 1 100%;\n place-items: center;\n }\n .kol-button .kol-span__label {\n text-decoration-line: underline;\n }\n .kol-button:focus:not([aria-disabled], [disabled]) .kol-span__label, .kol-button:hover:not([aria-disabled], [disabled]) .kol-span__label {\n text-decoration-thickness: 0.2em;\n }\n .kol-button__icon {\n display: inline-flex;\n margin-left: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-button--inline {\n min-width: unset;\n min-height: unset;\n }\n}",KolButtonLink=class{constructor(n){index.registerInstance(this,n),this.catchRef=n=>{this.buttonWcRef=n},this._disabled=!1,this._hideLabel=!1,this._inline=!0,this._tooltipAlign="top",this._type="button"}async getValue(){return this._value}async focus(){var n;return Promise.resolve(null===(n=this.buttonWcRef)||void 0===n?void 0:n.focus())}render(){return index.h(componentNames.KolButtonWcTag,{key:"a2c848b3dd301fc345b257e472025d598241fd3e",ref:this.catchRef,_accessKey:this._accessKey,_ariaControls:this._ariaControls,_ariaDescription:this._ariaDescription,_ariaExpanded:this._ariaExpanded,_ariaSelected:this._ariaSelected,_disabled:this._disabled,_hideLabel:this._hideLabel,_icons:this._icons,_inline:this._inline,_label:this._label,_name:this._name,_on:this._on,_shortKey:this._shortKey,_syncValueBySelector:this._syncValueBySelector,_tooltipAlign:this._tooltipAlign,_type:this._type,_value:this._value,_variant:this._variant},index.h("slot",{key:"35770be517dc2b461efec7c21b1811d6edf3ab91",name:"expert",slot:"expert"}))}};KolButtonLink.style={default:defaultStyleCss},exports.kol_button_link=KolButtonLink;
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var index=require("./index-0zHTL6Wf.js"),common=require("./common-BDQKBMeS.js"),InternalUnderlinedBadgeText=require("./InternalUnderlinedBadgeText-C63kz_7k.js"),accessAndShortKey=require("./access-and-short-key-XpSuCO1I.js"),variantClassName=require("./variant-class-name-CjNwUTWt.js"),customClass=require("./custom-class-CG4qS8b7.js"),disabled=require("./disabled-BFciea5y.js"),hideLabel=require("./hide-label-D8BIVO2W.js"),icons=require("./icons-CJGhlHRm.js"),inline=require("./inline-r6pzdXAo.js"),label=require("./label-CU8lZiLE.js"),tooltipAlign=require("./tooltip-align-B0_O2h2C.js"),componentNames=require("./component-names-BcQqUL7D.js");require("./Alert-C3hMI3oh.js");var clsx=require("./clsx-Bm_HQUnh.js");require("./i18n-BWA16k5X.js");var Span=require("./Span-DbRr6xgU.js"),events=require("./events-Cd8febUV.js"),controller=require("./controller-LcBll4Xf.js"),associated_controller=require("./associated.controller-Dww_bmMK.js");require("./isObject-DMA85Fq4.js"),require("./align-DvUkg_hj.js"),require("./tslib.es6-7DbU_BSw.js"),require("./bem-registry-Nu8Olg0G.js"),require("./browser-BO94X5VC.js"),require("./Heading-g4x-f4VX.js"),require("./i18n-yHKQt1gl.js"),require("./Icon-xQM_BPGN.js"),require("./markdown-DROYq1-V.js"),require("./bootstrap-DHJIRxFp.js");const validateAriaSelected=(t,e)=>{common.watchBoolean(t,"_ariaSelected",e)},validateButtonCallbacks=(t,e)=>{common.watchValidator(t,"_on",t=>"object"==typeof t&&null!==t,new Set(["ButtonCallbacksPropType {Events.onClick, Events.onMouseDown}"]),e)},buttonTypePropTypeOptions=["button","reset","submit"],validateButtonType=(t,e)=>{common.watchValidator(t,"_type",t=>"string"==typeof t&&buttonTypePropTypeOptions.includes(t),new Set([`KoliBriButtonType {${buttonTypePropTypeOptions.join(", ")}`]),e)},KolButtonWc=class{async focus(){return new Promise(t=>{requestAnimationFrame(()=>{var e;null===(e=this.buttonRef)||void 0===e||e.focus(),t()})})}render(){var t;const e=InternalUnderlinedBadgeText.showExpertSlot(this.state._label),a=null===(t=this.state._ariaDescription)||void 0===t?void 0:t.trim(),i=this.state._accessKey||this.state._shortKey,s=!0===this.state._disabled,l=!0===this.state._hideLabel;return index.h(index.Host,{key:"dc1eca07ca0f70563e0429c255badd7a8ea1c54a"},index.h("button",{key:"774f57db93456404aeda52dc23e0a99ac57a87c7",ref:t=>this.buttonRef=t,accessKey:this.state._accessKey,"aria-controls":this.state._ariaControls,"aria-description":a||void 0,"aria-expanded":common.mapBoolean2String(this.state._ariaExpanded),"aria-haspopup":this._ariaHasPopup,"aria-keyshortcuts":this.state._shortKey,"aria-label":l&&"string"==typeof this.state._label?this.state._label:void 0,"aria-selected":common.mapStringOrBoolean2String(this.state._ariaSelected),class:clsx.clsx("kol-button",{"kol-button--disabled":s,[`kol-button--${this.state._variant}`]:"custom"!==this.state._variant,"kol-button--inline":!0===this.state._inline,"kol-button--standalone":!1===this.state._inline,"kol-button--hide-label":l,[this.state._customClass]:"custom"===this.state._variant&&"string"==typeof this.state._customClass&&this.state._customClass.length>0}),disabled:s,id:this.state._id,name:this.state._name,onClick:this.onClick,onMouseDown:this.onMouseDown,role:this.state._role,tabIndex:this.state._tabIndex,type:this.state._type},index.h(Span.KolSpanFc,{key:"207058ad84e5fcb90b17a1aa959224144d6478a6",class:"kol-button__text",badgeText:i,icons:this.state._icons,hideLabel:l,label:e?"":this.state._label},index.h("slot",{key:"f3378730b77da226579b8a11d87672644f9c8bcc",name:"expert",slot:"expert"}))),l&&index.h(componentNames.KolTooltipWcTag,{key:"aae9c27630d3c669f531e2ec794f106721db61a0",ref:t=>this.tooltipRef=t,"aria-hidden":"true",hidden:e,class:"kol-button__tooltip",_badgeText:i,_align:this.state._tooltipAlign,_label:"string"==typeof this.state._label?this.state._label:""}))}constructor(t){index.registerInstance(this,t),this.hideTooltip=()=>{var t;null===(t=this.tooltipRef)||void 0===t||t.hideTooltip()},this.onClick=t=>{var e,a;this.state._hideLabel&&this.hideTooltip(),"submit"===this.state._type?controller.propagateSubmitEventToForm({form:this.host}):"reset"===this.state._type?controller.propagateResetEventToForm({form:this.host}):(this.controller.setFormAssociatedValue(this.state._value),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onClick)&&(common.setEventTarget(t,this.buttonRef),null===(a=this.state._on)||void 0===a||a.onClick(t,this.state._value))),this.host&&events.dispatchDomEvent(this.host,events.KolEvent.click,this.state._value)},this.onMouseDown=t=>{var e,a,i;null===(i=null===(a=null===(e=this.state)||void 0===e?void 0:e._on)||void 0===a?void 0:a.onMouseDown)||void 0===i||i.call(a,t),this.host&&events.dispatchDomEvent(this.host,events.KolEvent.mousedown)},this._disabled=!1,this._hideLabel=!1,this._inline=!1,this._tooltipAlign="top",this._type="button",this.state={_icons:{},_label:"",_on:{},_type:"button",_variant:"normal"},this.controller=new associated_controller.AssociatedInputController(this,"button",this.host)}validateAccessKey(t){accessAndShortKey.validateAccessKey(this,t),accessAndShortKey.validateAccessAndShortKey(t,this._shortKey)}validateAriaControls(t){variantClassName.validateAriaControls(this,t)}validateAriaDescription(t){variantClassName.validateAriaDescription(this,t)}validateAriaExpanded(t){variantClassName.validateAriaExpanded(this,t)}validateAriaSelected(t){validateAriaSelected(this,t)}validateCustomClass(t){customClass.validateCustomClass(this,t)}validateDisabled(t){disabled.validateDisabled(this,t)}validateHideLabel(t){hideLabel.validateHideLabel(this,t)}validateIcons(t){icons.validateIcons(this,t)}validateId(t){common.watchString(this,"_id",t)}validateInline(t){inline.validateInline(this,t,{defaultValue:!1})}validateLabel(t){label.validateLabelWithExpertSlot(this,t,{required:!0})}validateName(t){this.controller.validateName(t)}validateOn(t){validateButtonCallbacks(this,t)}validateRole(t){variantClassName.validateAlternativeButtonLinkRole(this,t)}validateShortKey(t){accessAndShortKey.validateShortKey(this,t),accessAndShortKey.validateAccessAndShortKey(this._accessKey,t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){accessAndShortKey.validateTabIndex(this,t)}validateTooltipAlign(t){tooltipAlign.validateTooltipAlign(this,t)}validateType(t){validateButtonType(this,t)}validateValue(t){common.setState(this,"_value",t),this.controller.setFormAssociatedValue(this.state._value)}validateVariant(t){variantClassName.validateVariantClassName(this,t)}componentWillLoad(){this.validateAccessKey(this._accessKey),this.validateAriaControls(this._ariaControls),this.validateAriaDescription(this._ariaDescription),this.validateAriaExpanded(this._ariaExpanded),this.validateAriaSelected(this._ariaSelected),this.validateCustomClass(this._customClass),this.validateDisabled(this._disabled),this.validateHideLabel(this._hideLabel),this.validateIcons(this._icons),this.validateId(this._id),this.validateInline(this._inline),this.validateLabel(this._label),this.validateName(this._name),this.validateOn(this._on),this.validateRole(this._role),this.validateShortKey(this._shortKey),this.validateSyncValueBySelector(this._syncValueBySelector),this.validateTabIndex(this._tabIndex),this.validateTooltipAlign(this._tooltipAlign),this.validateType(this._type),this.validateValue(this._value),this.validateVariant(this._variant),accessAndShortKey.validateAccessAndShortKey(this._accessKey,this._shortKey)}get host(){return index.getElement(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_ariaControls:["validateAriaControls"],_ariaDescription:["validateAriaDescription"],_ariaExpanded:["validateAriaExpanded"],_ariaSelected:["validateAriaSelected"],_customClass:["validateCustomClass"],_disabled:["validateDisabled"],_hideLabel:["validateHideLabel"],_icons:["validateIcons"],_id:["validateId"],_inline:["validateInline"],_label:["validateLabel"],_name:["validateName"],_on:["validateOn"],_role:["validateRole"],_shortKey:["validateShortKey"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_tooltipAlign:["validateTooltipAlign"],_type:["validateType"],_value:["validateValue"],_variant:["validateVariant"]}}};exports.kol_button_wc=KolButtonWc;
4
+ "use strict";var index=require("./index-Do5QHQux.js"),common=require("./common-BDQKBMeS.js"),InternalUnderlinedBadgeText=require("./InternalUnderlinedBadgeText-BR019eHx.js"),accessAndShortKey=require("./access-and-short-key-XpSuCO1I.js"),variantClassName=require("./variant-class-name-CjNwUTWt.js"),customClass=require("./custom-class-CG4qS8b7.js"),disabled=require("./disabled-BFciea5y.js"),hideLabel=require("./hide-label-D8BIVO2W.js"),icons=require("./icons-CJGhlHRm.js"),inline=require("./inline-r6pzdXAo.js"),label=require("./label-CU8lZiLE.js"),tooltipAlign=require("./tooltip-align-B0_O2h2C.js"),componentNames=require("./component-names-BcQqUL7D.js");require("./Alert-DUKI4F6t.js");var clsx=require("./clsx-Bm_HQUnh.js");require("./i18n-BWA16k5X.js");var Span=require("./Span-C0FLp1D0.js"),events=require("./events-Cd8febUV.js"),controller=require("./controller-LcBll4Xf.js"),associated_controller=require("./associated.controller-Dww_bmMK.js");require("./isObject-DMA85Fq4.js"),require("./align-DvUkg_hj.js"),require("./tslib.es6-7DbU_BSw.js"),require("./bem-registry-Nu8Olg0G.js"),require("./browser-BO94X5VC.js"),require("./Heading-BaoT3MhF.js"),require("./i18n-yHKQt1gl.js"),require("./Icon-Cjo0FQnO.js"),require("./markdown-DROYq1-V.js"),require("./bootstrap-DHJIRxFp.js");const validateAriaSelected=(t,e)=>{common.watchBoolean(t,"_ariaSelected",e)},validateButtonCallbacks=(t,e)=>{common.watchValidator(t,"_on",t=>"object"==typeof t&&null!==t,new Set(["ButtonCallbacksPropType {Events.onClick, Events.onMouseDown}"]),e)},buttonTypePropTypeOptions=["button","reset","submit"],validateButtonType=(t,e)=>{common.watchValidator(t,"_type",t=>"string"==typeof t&&buttonTypePropTypeOptions.includes(t),new Set([`KoliBriButtonType {${buttonTypePropTypeOptions.join(", ")}`]),e)},KolButtonWc=class{async focus(){return new Promise(t=>{requestAnimationFrame(()=>{var e;null===(e=this.buttonRef)||void 0===e||e.focus(),t()})})}render(){var t;const e=InternalUnderlinedBadgeText.showExpertSlot(this.state._label),a=null===(t=this.state._ariaDescription)||void 0===t?void 0:t.trim(),i=this.state._accessKey||this.state._shortKey,s=!0===this.state._disabled,l=!0===this.state._hideLabel;return index.h(index.Host,{key:"dc1eca07ca0f70563e0429c255badd7a8ea1c54a"},index.h("button",{key:"774f57db93456404aeda52dc23e0a99ac57a87c7",ref:t=>this.buttonRef=t,accessKey:this.state._accessKey,"aria-controls":this.state._ariaControls,"aria-description":a||void 0,"aria-expanded":common.mapBoolean2String(this.state._ariaExpanded),"aria-haspopup":this._ariaHasPopup,"aria-keyshortcuts":this.state._shortKey,"aria-label":l&&"string"==typeof this.state._label?this.state._label:void 0,"aria-selected":common.mapStringOrBoolean2String(this.state._ariaSelected),class:clsx.clsx("kol-button",{"kol-button--disabled":s,[`kol-button--${this.state._variant}`]:"custom"!==this.state._variant,"kol-button--inline":!0===this.state._inline,"kol-button--standalone":!1===this.state._inline,"kol-button--hide-label":l,[this.state._customClass]:"custom"===this.state._variant&&"string"==typeof this.state._customClass&&this.state._customClass.length>0}),disabled:s,id:this.state._id,name:this.state._name,onClick:this.onClick,onMouseDown:this.onMouseDown,role:this.state._role,tabIndex:this.state._tabIndex,type:this.state._type},index.h(Span.KolSpanFc,{key:"207058ad84e5fcb90b17a1aa959224144d6478a6",class:"kol-button__text",badgeText:i,icons:this.state._icons,hideLabel:l,label:e?"":this.state._label},index.h("slot",{key:"f3378730b77da226579b8a11d87672644f9c8bcc",name:"expert",slot:"expert"}))),l&&index.h(componentNames.KolTooltipWcTag,{key:"aae9c27630d3c669f531e2ec794f106721db61a0",ref:t=>this.tooltipRef=t,"aria-hidden":"true",hidden:e,class:"kol-button__tooltip",_badgeText:i,_align:this.state._tooltipAlign,_label:"string"==typeof this.state._label?this.state._label:""}))}constructor(t){index.registerInstance(this,t),this.hideTooltip=()=>{var t;null===(t=this.tooltipRef)||void 0===t||t.hideTooltip()},this.onClick=t=>{var e,a;this.state._hideLabel&&this.hideTooltip(),"submit"===this.state._type?controller.propagateSubmitEventToForm({form:this.host}):"reset"===this.state._type?controller.propagateResetEventToForm({form:this.host}):(this.controller.setFormAssociatedValue(this.state._value),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onClick)&&(common.setEventTarget(t,this.buttonRef),null===(a=this.state._on)||void 0===a||a.onClick(t,this.state._value))),this.host&&events.dispatchDomEvent(this.host,events.KolEvent.click,this.state._value)},this.onMouseDown=t=>{var e,a,i;null===(i=null===(a=null===(e=this.state)||void 0===e?void 0:e._on)||void 0===a?void 0:a.onMouseDown)||void 0===i||i.call(a,t),this.host&&events.dispatchDomEvent(this.host,events.KolEvent.mousedown)},this._disabled=!1,this._hideLabel=!1,this._inline=!1,this._tooltipAlign="top",this._type="button",this.state={_icons:{},_label:"",_on:{},_type:"button",_variant:"normal"},this.controller=new associated_controller.AssociatedInputController(this,"button",this.host)}validateAccessKey(t){accessAndShortKey.validateAccessKey(this,t),accessAndShortKey.validateAccessAndShortKey(t,this._shortKey)}validateAriaControls(t){variantClassName.validateAriaControls(this,t)}validateAriaDescription(t){variantClassName.validateAriaDescription(this,t)}validateAriaExpanded(t){variantClassName.validateAriaExpanded(this,t)}validateAriaSelected(t){validateAriaSelected(this,t)}validateCustomClass(t){customClass.validateCustomClass(this,t)}validateDisabled(t){disabled.validateDisabled(this,t)}validateHideLabel(t){hideLabel.validateHideLabel(this,t)}validateIcons(t){icons.validateIcons(this,t)}validateId(t){common.watchString(this,"_id",t)}validateInline(t){inline.validateInline(this,t,{defaultValue:!1})}validateLabel(t){label.validateLabelWithExpertSlot(this,t,{required:!0})}validateName(t){this.controller.validateName(t)}validateOn(t){validateButtonCallbacks(this,t)}validateRole(t){variantClassName.validateAlternativeButtonLinkRole(this,t)}validateShortKey(t){accessAndShortKey.validateShortKey(this,t),accessAndShortKey.validateAccessAndShortKey(this._accessKey,t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){accessAndShortKey.validateTabIndex(this,t)}validateTooltipAlign(t){tooltipAlign.validateTooltipAlign(this,t)}validateType(t){validateButtonType(this,t)}validateValue(t){common.setState(this,"_value",t),this.controller.setFormAssociatedValue(this.state._value)}validateVariant(t){variantClassName.validateVariantClassName(this,t)}componentWillLoad(){this.validateAccessKey(this._accessKey),this.validateAriaControls(this._ariaControls),this.validateAriaDescription(this._ariaDescription),this.validateAriaExpanded(this._ariaExpanded),this.validateAriaSelected(this._ariaSelected),this.validateCustomClass(this._customClass),this.validateDisabled(this._disabled),this.validateHideLabel(this._hideLabel),this.validateIcons(this._icons),this.validateId(this._id),this.validateInline(this._inline),this.validateLabel(this._label),this.validateName(this._name),this.validateOn(this._on),this.validateRole(this._role),this.validateShortKey(this._shortKey),this.validateSyncValueBySelector(this._syncValueBySelector),this.validateTabIndex(this._tabIndex),this.validateTooltipAlign(this._tooltipAlign),this.validateType(this._type),this.validateValue(this._value),this.validateVariant(this._variant),accessAndShortKey.validateAccessAndShortKey(this._accessKey,this._shortKey)}get host(){return index.getElement(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_ariaControls:["validateAriaControls"],_ariaDescription:["validateAriaDescription"],_ariaExpanded:["validateAriaExpanded"],_ariaSelected:["validateAriaSelected"],_customClass:["validateCustomClass"],_disabled:["validateDisabled"],_hideLabel:["validateHideLabel"],_icons:["validateIcons"],_id:["validateId"],_inline:["validateInline"],_label:["validateLabel"],_name:["validateName"],_on:["validateOn"],_role:["validateRole"],_shortKey:["validateShortKey"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_tooltipAlign:["validateTooltipAlign"],_type:["validateType"],_value:["validateValue"],_variant:["validateVariant"]}}};exports.kol_button_wc=KolButtonWc;
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var index=require("./index-0zHTL6Wf.js"),componentNames=require("./component-names-BcQqUL7D.js");require("./common-BDQKBMeS.js");const defaultStyleCss="@charset \"UTF-8\";\n/* 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 .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 {\n display: inline-block;\n }\n .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-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: \"​\";\n }\n .kol-button__text {\n flex: 1 0 100%;\n }\n}",KolButton=class{constructor(n){index.registerInstance(this,n),this.catchRef=n=>{this.buttonWcRef=n},this._disabled=!1,this._hideLabel=!1,this._inline=!1,this._tooltipAlign="top",this._type="button",this._variant="normal"}async getValue(){return this._value}async focus(){var n;return Promise.resolve(null===(n=this.buttonWcRef)||void 0===n?void 0:n.focus())}render(){return index.h(componentNames.KolButtonWcTag,{key:"fe6afdaca4a57dc2e7a3e49944231c30cfafe1e4",ref:this.catchRef,_accessKey:this._accessKey,_ariaControls:this._ariaControls,_ariaDescription:this._ariaDescription,_ariaExpanded:this._ariaExpanded,_ariaSelected:this._ariaSelected,_customClass:this._customClass,_disabled:this._disabled,_hideLabel:this._hideLabel,_icons:this._icons,_inline:this._inline,_label:this._label,_name:this._name,_on:this._on,_shortKey:this._shortKey,_syncValueBySelector:this._syncValueBySelector,_tooltipAlign:this._tooltipAlign,_type:this._type,_value:this._value,_variant:this._variant},index.h("slot",{key:"375996d22e09b3068d52eff2d3f833c08732b069",name:"expert",slot:"expert"}))}};KolButton.style={default:defaultStyleCss},exports.kol_button=KolButton;
4
+ "use strict";var index=require("./index-Do5QHQux.js"),componentNames=require("./component-names-BcQqUL7D.js");require("./common-BDQKBMeS.js");const defaultStyleCss="@charset \"UTF-8\";\n/* 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 .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 {\n display: inline-block;\n }\n .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-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: \"​\";\n }\n .kol-button__text {\n flex: 1 0 100%;\n }\n}",KolButton=class{constructor(n){index.registerInstance(this,n),this.catchRef=n=>{this.buttonWcRef=n},this._disabled=!1,this._hideLabel=!1,this._inline=!1,this._tooltipAlign="top",this._type="button",this._variant="normal"}async getValue(){return this._value}async focus(){var n;return Promise.resolve(null===(n=this.buttonWcRef)||void 0===n?void 0:n.focus())}render(){return index.h(componentNames.KolButtonWcTag,{key:"fe6afdaca4a57dc2e7a3e49944231c30cfafe1e4",ref:this.catchRef,_accessKey:this._accessKey,_ariaControls:this._ariaControls,_ariaDescription:this._ariaDescription,_ariaExpanded:this._ariaExpanded,_ariaSelected:this._ariaSelected,_customClass:this._customClass,_disabled:this._disabled,_hideLabel:this._hideLabel,_icons:this._icons,_inline:this._inline,_label:this._label,_name:this._name,_on:this._on,_shortKey:this._shortKey,_syncValueBySelector:this._syncValueBySelector,_tooltipAlign:this._tooltipAlign,_type:this._type,_value:this._value,_variant:this._variant},index.h("slot",{key:"375996d22e09b3068d52eff2d3f833c08732b069",name:"expert",slot:"expert"}))}};KolButton.style={default:defaultStyleCss},exports.kol_button=KolButton;
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var index=require("./index-0zHTL6Wf.js"),common=require("./common-BDQKBMeS.js"),hasCloser=require("./has-closer-Cy9ZSkdi.js"),label=require("./label-CU8lZiLE.js"),i18n=require("./i18n-BWA16k5X.js"),validation=require("./validation-30k-K_lm.js"),componentNames=require("./component-names-BcQqUL7D.js");require("./Alert-C3hMI3oh.js");var Heading=require("./Heading-g4x-f4VX.js");require("./markdown-DROYq1-V.js");var dev_utils=require("./dev.utils-JTxdbgzS.js"),events=require("./events-Cd8febUV.js");require("./i18n-yHKQt1gl.js"),require("./tslib.es6-7DbU_BSw.js"),require("./clsx-Bm_HQUnh.js"),require("./bem-registry-Nu8Olg0G.js"),require("./browser-BO94X5VC.js");const KolCardWc=class{constructor(e){index.registerInstance(this,e),this.nonce=dev_utils.nonce(),this.translateClose=i18n.translate("kol-close"),this.close=()=>{var e;void 0!==(null===(e=this._on)||void 0===e?void 0:e.onClose)&&this._on.onClose(new Event("Close")),this.host&&events.dispatchDomEvent(this.host,events.KolEvent.close)},this.on={onClick:this.close},this._hasCloser=!1,this._level=0,this.state={_label:""},this.validateOnValue=e=>"object"==typeof e&&null!==e&&"function"==typeof e.onClose}render(){return index.h(index.Host,{key:"674a6314014c048aa08444b0a2b5968889b766dc"},index.h("div",{key:"222ede676ce0fbefd43a8bfea23c1916f5df1969","aria-labelledby":this.nonce,class:"kol-card",role:"group"},index.h(Heading.KolHeadingFc,{key:"75332c1ff5ddb4b4d033cc119b4bde91d65c9623",class:"kol-card__header",id:this.nonce,level:this.state._level},this.state._label),index.h("div",{key:"3e2b7ec0db3781392fae154c9e68546ec5dbc5fa",class:"kol-card__content"},index.h("slot",{key:"7a6516db0b5fe8afb25c84278ba7e036ad05f124"})),this.state._hasCloser&&index.h(componentNames.KolButtonWcTag,{key:"d24b492cbeff9ee1ffb49281e014f44d9075f694",class:"kol-card__close-button kol-close-button","data-testid":"card-close-button",_hideLabel:!0,_icons:{left:{icon:"kolicon-cross"}},_label:this.translateClose,_on:this.on,_tooltipAlign:"left"})))}validateOn(e){this.validateOnValue(e)&&common.setState(this,"_on",{onClose:e.onClose})}validateHasCloser(e){hasCloser.validateHasCloser(this,e)}validateLabel(e){label.validateLabel(this,e,{required:!0})}validateLevel(e){validation.watchHeadingLevel(this,e)}componentWillLoad(){this.validateHasCloser(this._hasCloser),this.validateLabel(this._label),this.validateLevel(this._level),this.validateOn(this._on)}get host(){return index.getElement(this)}static get watchers(){return{_on:["validateOn"],_hasCloser:["validateHasCloser"],_label:["validateLabel"],_level:["validateLevel"]}}};exports.kol_card_wc=KolCardWc;
4
+ "use strict";var index=require("./index-Do5QHQux.js"),common=require("./common-BDQKBMeS.js"),hasCloser=require("./has-closer-Cy9ZSkdi.js"),label=require("./label-CU8lZiLE.js"),i18n=require("./i18n-BWA16k5X.js"),validation=require("./validation-30k-K_lm.js"),componentNames=require("./component-names-BcQqUL7D.js");require("./Alert-DUKI4F6t.js");var Heading=require("./Heading-BaoT3MhF.js");require("./markdown-DROYq1-V.js");var dev_utils=require("./dev.utils-MxjJBX5i.js"),events=require("./events-Cd8febUV.js");require("./i18n-yHKQt1gl.js"),require("./tslib.es6-7DbU_BSw.js"),require("./clsx-Bm_HQUnh.js"),require("./bem-registry-Nu8Olg0G.js"),require("./browser-BO94X5VC.js");const KolCardWc=class{constructor(e){index.registerInstance(this,e),this.nonce=dev_utils.nonce(),this.translateClose=i18n.translate("kol-close"),this.close=()=>{var e;void 0!==(null===(e=this._on)||void 0===e?void 0:e.onClose)&&this._on.onClose(new Event("Close")),this.host&&events.dispatchDomEvent(this.host,events.KolEvent.close)},this.on={onClick:this.close},this._hasCloser=!1,this._level=0,this.state={_label:""},this.validateOnValue=e=>"object"==typeof e&&null!==e&&"function"==typeof e.onClose}render(){return index.h(index.Host,{key:"674a6314014c048aa08444b0a2b5968889b766dc"},index.h("div",{key:"222ede676ce0fbefd43a8bfea23c1916f5df1969","aria-labelledby":this.nonce,class:"kol-card",role:"group"},index.h(Heading.KolHeadingFc,{key:"75332c1ff5ddb4b4d033cc119b4bde91d65c9623",class:"kol-card__header",id:this.nonce,level:this.state._level},this.state._label),index.h("div",{key:"3e2b7ec0db3781392fae154c9e68546ec5dbc5fa",class:"kol-card__content"},index.h("slot",{key:"7a6516db0b5fe8afb25c84278ba7e036ad05f124"})),this.state._hasCloser&&index.h(componentNames.KolButtonWcTag,{key:"d24b492cbeff9ee1ffb49281e014f44d9075f694",class:"kol-card__close-button kol-close-button","data-testid":"card-close-button",_hideLabel:!0,_icons:{left:{icon:"kolicon-cross"}},_label:this.translateClose,_on:this.on,_tooltipAlign:"left"})))}validateOn(e){this.validateOnValue(e)&&common.setState(this,"_on",{onClose:e.onClose})}validateHasCloser(e){hasCloser.validateHasCloser(this,e)}validateLabel(e){label.validateLabel(this,e,{required:!0})}validateLevel(e){validation.watchHeadingLevel(this,e)}componentWillLoad(){this.validateHasCloser(this._hasCloser),this.validateLabel(this._label),this.validateLevel(this._level),this.validateOn(this._on)}get host(){return index.getElement(this)}static get watchers(){return{_on:["validateOn"],_hasCloser:["validateHasCloser"],_label:["validateLabel"],_level:["validateLevel"]}}};exports.kol_card_wc=KolCardWc;