@public-ui/components 2.2.15-rc.0 → 2.2.15-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (888) hide show
  1. package/custom-elements.json +15 -15
  2. package/dist/cjs/{Alert-3a359428.js → Alert-1315f082.js} +1 -1
  3. package/dist/cjs/{Alert-3a359428.js.map → Alert-1315f082.js.map} +1 -1
  4. package/dist/cjs/{Collapsible-98f58705.js → Collapsible-f02af310.js} +1 -1
  5. package/dist/cjs/{Collapsible-98f58705.js.map → Collapsible-f02af310.js.map} +1 -1
  6. package/dist/cjs/FormFieldMsg-4deaead3.js +4 -0
  7. package/dist/cjs/{FormFieldMsg-b2f580b4.js.map → FormFieldMsg-4deaead3.js.map} +1 -1
  8. package/dist/cjs/{InternalUnderlinedBadgeText-e27319f9.js → InternalUnderlinedBadgeText-2077b207.js} +1 -1
  9. package/dist/cjs/{InternalUnderlinedBadgeText-e27319f9.js.map → InternalUnderlinedBadgeText-2077b207.js.map} +1 -1
  10. package/dist/cjs/{access-and-short-key-5bfd764e.js → access-and-short-key-18fca6a6.js} +1 -1
  11. package/dist/cjs/{access-and-short-key-5bfd764e.js.map → access-and-short-key-18fca6a6.js.map} +1 -1
  12. package/dist/cjs/align-5570f44b.js +4 -0
  13. package/dist/cjs/{align-033dd3ec.js.map → align-5570f44b.js.map} +1 -1
  14. package/dist/cjs/align-floating-elements-3592f6e5.js +4 -0
  15. package/dist/cjs/align-floating-elements-3592f6e5.js.map +1 -0
  16. package/dist/cjs/app-globals-be674536.js +4 -0
  17. package/dist/cjs/{app-globals-7bef0af1.js.map → app-globals-be674536.js.map} +1 -1
  18. package/dist/cjs/ariaCurrentService-53afa476.js +1 -1
  19. package/dist/cjs/associated.controller-7bf7ebae.js +4 -0
  20. package/dist/cjs/{associated.controller-52a935b6.js.map → associated.controller-7bf7ebae.js.map} +1 -1
  21. package/dist/cjs/{badge-text-8dec676c.js → badge-text-d8267257.js} +1 -1
  22. package/dist/cjs/{badge-text-8dec676c.js.map → badge-text-d8267257.js.map} +1 -1
  23. package/dist/cjs/button-variant-6f472994.js +4 -0
  24. package/dist/cjs/button-variant-6f472994.js.map +1 -0
  25. package/dist/cjs/color-33704603.js +4 -0
  26. package/dist/cjs/{color-162ea61e.js.map → color-33704603.js.map} +1 -1
  27. package/dist/cjs/controller-66c9b9d7.js +4 -0
  28. package/dist/cjs/{controller-5bb59938.js.map → controller-66c9b9d7.js.map} +1 -1
  29. package/dist/cjs/{controller-5f8b2d27.js → controller-70c9d7c2.js} +1 -1
  30. package/dist/cjs/{controller-5f8b2d27.js.map → controller-70c9d7c2.js.map} +1 -1
  31. package/dist/cjs/controller-a6b357c8.js +4 -0
  32. package/dist/cjs/{controller-87180834.js.map → controller-a6b357c8.js.map} +1 -1
  33. package/dist/cjs/controller-f76e8bae.js +4 -0
  34. package/dist/cjs/{controller-e781902d.js.map → controller-f76e8bae.js.map} +1 -1
  35. package/dist/cjs/controller-fd34b4a7.js +4 -0
  36. package/dist/cjs/{controller-b58f6250.js.map → controller-fd34b4a7.js.map} +1 -1
  37. package/dist/cjs/{controller-icon-bc9c25ac.js → controller-icon-4142a807.js} +1 -1
  38. package/dist/cjs/{controller-icon-bc9c25ac.js.map → controller-icon-4142a807.js.map} +1 -1
  39. package/dist/cjs/{custom-class-0e90f691.js → custom-class-7d2088ba.js} +1 -1
  40. package/dist/cjs/{custom-class-0e90f691.js.map → custom-class-7d2088ba.js.map} +1 -1
  41. package/dist/cjs/{debounce-7857c4b4.js → debounce-2d8b0d58.js} +1 -1
  42. package/dist/cjs/{debounce-7857c4b4.js.map → debounce-2d8b0d58.js.map} +1 -1
  43. package/dist/cjs/{dev.utils-5242a5d1.js → dev.utils-1101f05f.js} +1 -1
  44. package/dist/cjs/{dev.utils-5242a5d1.js.map → dev.utils-1101f05f.js.map} +1 -1
  45. package/dist/cjs/devtools-30b932f6.js +4 -0
  46. package/dist/cjs/{devtools-849b79d3.js.map → devtools-30b932f6.js.map} +1 -1
  47. package/dist/cjs/{disabled-a4caeaf0.js → disabled-279af650.js} +1 -1
  48. package/dist/cjs/{disabled-a4caeaf0.js.map → disabled-279af650.js.map} +1 -1
  49. package/dist/cjs/{has-closer-418d6eb6.js → has-closer-2942fb46.js} +1 -1
  50. package/dist/cjs/{has-closer-418d6eb6.js.map → has-closer-2942fb46.js.map} +1 -1
  51. package/dist/cjs/hide-label-8179f9f6.js +4 -0
  52. package/dist/cjs/{hide-label-c4e4da8c.js.map → hide-label-8179f9f6.js.map} +1 -1
  53. package/dist/cjs/{href-a57999b2.js → href-6df10f9d.js} +1 -1
  54. package/dist/cjs/{href-a57999b2.js.map → href-6df10f9d.js.map} +1 -1
  55. package/dist/cjs/{i18n-fb7587bc.js → i18n-0d2737f4.js} +1 -1
  56. package/dist/cjs/{i18n-fb7587bc.js.map → i18n-0d2737f4.js.map} +1 -1
  57. package/dist/cjs/i18n-1c001171.js +1 -1
  58. package/dist/cjs/icons-8b64c1ab.js +4 -0
  59. package/dist/cjs/{icons-f339f0f3.js.map → icons-8b64c1ab.js.map} +1 -1
  60. package/dist/cjs/{image-source-92ea226a.js → image-source-23d371c3.js} +1 -1
  61. package/dist/cjs/{image-source-92ea226a.js.map → image-source-23d371c3.js.map} +1 -1
  62. package/dist/cjs/index-4974b34f.js +4 -0
  63. package/dist/cjs/index-4974b34f.js.map +1 -0
  64. package/dist/cjs/index-4cec6984.js +4 -0
  65. package/dist/cjs/{index-2999bd56.js.map → index-4cec6984.js.map} +1 -1
  66. package/dist/cjs/index.cjs.js +1 -1
  67. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  68. package/dist/cjs/kol-abbr.cjs.entry.js.map +1 -1
  69. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-accordion.cjs.entry.js.map +1 -1
  71. package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  73. package/dist/cjs/kol-alert.cjs.entry.js.map +1 -1
  74. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  75. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-avatar.cjs.entry.js.map +1 -1
  77. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  78. package/dist/cjs/kol-badge.cjs.entry.js.map +1 -1
  79. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  80. package/dist/cjs/kol-breadcrumb.cjs.entry.js.map +1 -1
  81. package/dist/cjs/kol-button-group-wc.cjs.entry.js +1 -1
  82. package/dist/cjs/kol-button-group.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-button-group.cjs.entry.js.map +1 -1
  84. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-button-link.cjs.entry.js.map +1 -1
  86. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  87. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  88. package/dist/cjs/kol-button.cjs.entry.js.map +1 -1
  89. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  90. package/dist/cjs/kol-card.cjs.entry.js.map +1 -1
  91. package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-combobox.cjs.entry.js.map +1 -1
  93. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  94. package/dist/cjs/kol-details.cjs.entry.js.map +1 -1
  95. package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
  96. package/dist/cjs/kol-drawer.cjs.entry.js.map +1 -1
  97. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  98. package/dist/cjs/kol-form.cjs.entry.js.map +1 -1
  99. package/dist/cjs/kol-heading-wc.cjs.entry.js +1 -1
  100. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-heading.cjs.entry.js.map +1 -1
  102. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  103. package/dist/cjs/kol-icon.cjs.entry.js.map +1 -1
  104. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  105. package/dist/cjs/kol-image.cjs.entry.js.map +1 -1
  106. package/dist/cjs/kol-indented-text-wc.cjs.entry.js +1 -1
  107. package/dist/cjs/kol-indented-text.cjs.entry.js +1 -1
  108. package/dist/cjs/kol-indented-text.cjs.entry.js.map +1 -1
  109. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  110. package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
  111. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  112. package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
  113. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  114. package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
  115. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  116. package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
  117. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  118. package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
  119. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  120. package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
  121. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  122. package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
  123. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  124. package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
  125. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  126. package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
  127. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  128. package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
  129. package/dist/cjs/kol-input.cjs.entry.js +1 -1
  130. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  131. package/dist/cjs/kol-kolibri.cjs.entry.js.map +1 -1
  132. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  133. package/dist/cjs/kol-link-button.cjs.entry.js.map +1 -1
  134. package/dist/cjs/kol-link-group.cjs.entry.js +1 -1
  135. package/dist/cjs/kol-link-group.cjs.entry.js.map +1 -1
  136. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  137. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  138. package/dist/cjs/kol-link.cjs.entry.js.map +1 -1
  139. package/dist/cjs/kol-logo.cjs.entry.js +1 -1
  140. package/dist/cjs/kol-logo.cjs.entry.js.map +1 -1
  141. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  142. package/dist/cjs/kol-modal.cjs.entry.js.map +1 -1
  143. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  144. package/dist/cjs/kol-nav.cjs.entry.js.map +1 -1
  145. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  146. package/dist/cjs/kol-pagination.cjs.entry.js.map +1 -1
  147. package/dist/cjs/kol-popover-button.cjs.entry.js +1 -1
  148. package/dist/cjs/kol-popover-button.cjs.entry.js.map +1 -1
  149. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  150. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  151. package/dist/cjs/kol-progress.cjs.entry.js.map +1 -1
  152. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  153. package/dist/cjs/kol-quote.cjs.entry.js.map +1 -1
  154. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  155. package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
  156. package/dist/cjs/kol-single-select.cjs.entry.js +1 -1
  157. package/dist/cjs/kol-single-select.cjs.entry.js.map +1 -1
  158. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  159. package/dist/cjs/kol-skip-nav.cjs.entry.js.map +1 -1
  160. package/dist/cjs/kol-span-wc.cjs.entry.js +1 -1
  161. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  162. package/dist/cjs/kol-spin.cjs.entry.js.map +1 -1
  163. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  164. package/dist/cjs/kol-split-button.cjs.entry.js.map +1 -1
  165. package/dist/cjs/kol-symbol.cjs.entry.js +1 -1
  166. package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
  167. package/dist/cjs/kol-table-stateful.cjs.entry.js.map +1 -1
  168. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
  169. package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
  170. package/dist/cjs/kol-table-stateless.cjs.entry.js.map +1 -1
  171. package/dist/cjs/kol-table.cjs.entry.js +1 -1
  172. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  173. package/dist/cjs/kol-tabs.cjs.entry.js.map +1 -1
  174. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  175. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  176. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  177. package/dist/cjs/kol-toast-container.cjs.entry.js.map +1 -1
  178. package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
  179. package/dist/cjs/kol-toolbar.cjs.entry.js.map +1 -1
  180. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  181. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
  182. package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
  183. package/dist/cjs/kol-tree-item.cjs.entry.js.map +1 -1
  184. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  185. package/dist/cjs/kol-tree.cjs.entry.js +1 -1
  186. package/dist/cjs/kol-tree.cjs.entry.js.map +1 -1
  187. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  188. package/dist/cjs/kol-version.cjs.entry.js.map +1 -1
  189. package/dist/cjs/kolibri.cjs.js +1 -1
  190. package/dist/cjs/{label-32668ef6.js → label-d59f00da.js} +1 -1
  191. package/dist/cjs/{label-32668ef6.js.map → label-d59f00da.js.map} +1 -1
  192. package/dist/cjs/loader.cjs.js +1 -1
  193. package/dist/cjs/{open-0bd660ad.js → open-8fd22de9.js} +1 -1
  194. package/dist/cjs/{open-0bd660ad.js.map → open-8fd22de9.js.map} +1 -1
  195. package/dist/cjs/{rows-945eef57.js → rows-6c52bd09.js} +1 -1
  196. package/dist/cjs/{rows-945eef57.js.map → rows-6c52bd09.js.map} +1 -1
  197. package/dist/cjs/show-a03afc44.js +4 -0
  198. package/dist/cjs/{show-7c9e5406.js.map → show-a03afc44.js.map} +1 -1
  199. package/dist/cjs/spell-check-36878731.js +4 -0
  200. package/dist/cjs/{spell-check-2d7ed9c3.js.map → spell-check-36878731.js.map} +1 -1
  201. package/dist/cjs/suggestions-938f9775.js +4 -0
  202. package/dist/cjs/{suggestions-7567310b.js.map → suggestions-938f9775.js.map} +1 -1
  203. package/dist/cjs/table-selection-95681775.js +4 -0
  204. package/dist/cjs/{table-selection-106f5d36.js.map → table-selection-95681775.js.map} +1 -1
  205. package/dist/cjs/test-component.cjs.entry.js +1 -1
  206. package/dist/cjs/tooltip-align-ee316e05.js +4 -0
  207. package/dist/cjs/{tooltip-align-cf8829c6.js.map → tooltip-align-ee316e05.js.map} +1 -1
  208. package/dist/cjs/{unique-nav-labels-b8a16446.js → unique-nav-labels-55c761cb.js} +1 -1
  209. package/dist/cjs/{unique-nav-labels-b8a16446.js.map → unique-nav-labels-55c761cb.js.map} +1 -1
  210. package/dist/cjs/validation-57ce93c5.js +4 -0
  211. package/dist/cjs/{validation-4fab29ff.js.map → validation-57ce93c5.js.map} +1 -1
  212. package/dist/cjs/validation-cb2634f6.js +4 -0
  213. package/dist/cjs/{validation-5256cf18.js.map → validation-cb2634f6.js.map} +1 -1
  214. package/dist/components/Alert.js +1 -1
  215. package/dist/components/FormFieldMsg.js +1 -1
  216. package/dist/components/align-floating-elements.js +1 -1
  217. package/dist/components/align-floating-elements.js.map +1 -1
  218. package/dist/components/align.js +1 -1
  219. package/dist/components/ariaCurrentService.js +1 -1
  220. package/dist/components/associated.controller.js +1 -1
  221. package/dist/components/button-variant.js +1 -1
  222. package/dist/components/button-variant.js.map +1 -1
  223. package/dist/components/color.js +1 -1
  224. package/dist/components/controller.js +1 -1
  225. package/dist/components/controller2.js +1 -1
  226. package/dist/components/controller3.js +1 -1
  227. package/dist/components/controller4.js +1 -1
  228. package/dist/components/controller5.js +1 -1
  229. package/dist/components/devtools.js +1 -1
  230. package/dist/components/i18n.js +1 -1
  231. package/dist/components/icons.js +1 -1
  232. package/dist/components/index.js +1 -1
  233. package/dist/components/index2.js +1 -1
  234. package/dist/components/index2.js.map +1 -1
  235. package/dist/components/kol-abbr.js +1 -1
  236. package/dist/components/kol-abbr.js.map +1 -1
  237. package/dist/components/kol-accordion.js +1 -1
  238. package/dist/components/kol-accordion.js.map +1 -1
  239. package/dist/components/kol-alert-wc.js +1 -1
  240. package/dist/components/kol-alert.js +1 -1
  241. package/dist/components/kol-alert.js.map +1 -1
  242. package/dist/components/kol-avatar-wc.js +1 -1
  243. package/dist/components/kol-avatar.js +1 -1
  244. package/dist/components/kol-avatar.js.map +1 -1
  245. package/dist/components/kol-badge.js +1 -1
  246. package/dist/components/kol-badge.js.map +1 -1
  247. package/dist/components/kol-breadcrumb.js +1 -1
  248. package/dist/components/kol-breadcrumb.js.map +1 -1
  249. package/dist/components/kol-button-group-wc.js +1 -1
  250. package/dist/components/kol-button-group.js +1 -1
  251. package/dist/components/kol-button-group.js.map +1 -1
  252. package/dist/components/kol-button-link.js +1 -1
  253. package/dist/components/kol-button-link.js.map +1 -1
  254. package/dist/components/kol-button-wc.js +1 -1
  255. package/dist/components/kol-button.js +1 -1
  256. package/dist/components/kol-button.js.map +1 -1
  257. package/dist/components/kol-card.js +1 -1
  258. package/dist/components/kol-card.js.map +1 -1
  259. package/dist/components/kol-combobox.js +1 -1
  260. package/dist/components/kol-combobox.js.map +1 -1
  261. package/dist/components/kol-details.js +1 -1
  262. package/dist/components/kol-details.js.map +1 -1
  263. package/dist/components/kol-drawer.js +1 -1
  264. package/dist/components/kol-drawer.js.map +1 -1
  265. package/dist/components/kol-form.js +1 -1
  266. package/dist/components/kol-form.js.map +1 -1
  267. package/dist/components/kol-heading-wc.js +1 -1
  268. package/dist/components/kol-heading.js +1 -1
  269. package/dist/components/kol-heading.js.map +1 -1
  270. package/dist/components/kol-icon.js +1 -1
  271. package/dist/components/kol-icon.js.map +1 -1
  272. package/dist/components/kol-image.js +1 -1
  273. package/dist/components/kol-image.js.map +1 -1
  274. package/dist/components/kol-indented-text-wc.js +1 -1
  275. package/dist/components/kol-indented-text.js +1 -1
  276. package/dist/components/kol-indented-text.js.map +1 -1
  277. package/dist/components/kol-input-checkbox.js +1 -1
  278. package/dist/components/kol-input-checkbox.js.map +1 -1
  279. package/dist/components/kol-input-color.js +1 -1
  280. package/dist/components/kol-input-color.js.map +1 -1
  281. package/dist/components/kol-input-date.js +1 -1
  282. package/dist/components/kol-input-date.js.map +1 -1
  283. package/dist/components/kol-input-email.js +1 -1
  284. package/dist/components/kol-input-email.js.map +1 -1
  285. package/dist/components/kol-input-file.js +1 -1
  286. package/dist/components/kol-input-file.js.map +1 -1
  287. package/dist/components/kol-input-number.js +1 -1
  288. package/dist/components/kol-input-number.js.map +1 -1
  289. package/dist/components/kol-input-password.js +1 -1
  290. package/dist/components/kol-input-password.js.map +1 -1
  291. package/dist/components/kol-input-radio.js +1 -1
  292. package/dist/components/kol-input-radio.js.map +1 -1
  293. package/dist/components/kol-input-range.js +1 -1
  294. package/dist/components/kol-input-range.js.map +1 -1
  295. package/dist/components/kol-input-text.js +1 -1
  296. package/dist/components/kol-input-text.js.map +1 -1
  297. package/dist/components/kol-input.js +1 -1
  298. package/dist/components/kol-kolibri.js +1 -1
  299. package/dist/components/kol-kolibri.js.map +1 -1
  300. package/dist/components/kol-link-button.js +1 -1
  301. package/dist/components/kol-link-button.js.map +1 -1
  302. package/dist/components/kol-link-group.js +1 -1
  303. package/dist/components/kol-link-group.js.map +1 -1
  304. package/dist/components/kol-link-wc.js +1 -1
  305. package/dist/components/kol-link.js +1 -1
  306. package/dist/components/kol-link.js.map +1 -1
  307. package/dist/components/kol-logo.js +1 -1
  308. package/dist/components/kol-logo.js.map +1 -1
  309. package/dist/components/kol-modal.js +1 -1
  310. package/dist/components/kol-modal.js.map +1 -1
  311. package/dist/components/kol-nav.js +1 -1
  312. package/dist/components/kol-nav.js.map +1 -1
  313. package/dist/components/kol-pagination.js +1 -1
  314. package/dist/components/kol-pagination.js.map +1 -1
  315. package/dist/components/kol-popover-button.js +1 -1
  316. package/dist/components/kol-popover-button.js.map +1 -1
  317. package/dist/components/kol-popover-wc.js +1 -1
  318. package/dist/components/kol-progress.js +1 -1
  319. package/dist/components/kol-progress.js.map +1 -1
  320. package/dist/components/kol-quote.js +1 -1
  321. package/dist/components/kol-quote.js.map +1 -1
  322. package/dist/components/kol-select.js +1 -1
  323. package/dist/components/kol-select.js.map +1 -1
  324. package/dist/components/kol-single-select.js +1 -1
  325. package/dist/components/kol-single-select.js.map +1 -1
  326. package/dist/components/kol-skip-nav.js +1 -1
  327. package/dist/components/kol-skip-nav.js.map +1 -1
  328. package/dist/components/kol-span-wc.js +1 -1
  329. package/dist/components/kol-spin.js +1 -1
  330. package/dist/components/kol-spin.js.map +1 -1
  331. package/dist/components/kol-split-button.js +1 -1
  332. package/dist/components/kol-split-button.js.map +1 -1
  333. package/dist/components/kol-symbol.js +1 -1
  334. package/dist/components/kol-table-stateful.js +1 -1
  335. package/dist/components/kol-table-stateful.js.map +1 -1
  336. package/dist/components/kol-table-stateless-wc.js +1 -1
  337. package/dist/components/kol-table-stateless.js +1 -1
  338. package/dist/components/kol-table-stateless.js.map +1 -1
  339. package/dist/components/kol-table.js +1 -1
  340. package/dist/components/kol-tabs.js +1 -1
  341. package/dist/components/kol-tabs.js.map +1 -1
  342. package/dist/components/kol-textarea.js +1 -1
  343. package/dist/components/kol-textarea.js.map +1 -1
  344. package/dist/components/kol-toast-container.js +1 -1
  345. package/dist/components/kol-toast-container.js.map +1 -1
  346. package/dist/components/kol-toolbar.js +1 -1
  347. package/dist/components/kol-toolbar.js.map +1 -1
  348. package/dist/components/kol-tooltip-wc.js +1 -1
  349. package/dist/components/kol-tree-item-wc.js +1 -1
  350. package/dist/components/kol-tree-item.js +1 -1
  351. package/dist/components/kol-tree-item.js.map +1 -1
  352. package/dist/components/kol-tree-wc.js +1 -1
  353. package/dist/components/kol-tree.js +1 -1
  354. package/dist/components/kol-tree.js.map +1 -1
  355. package/dist/components/kol-version.js +1 -1
  356. package/dist/components/kol-version.js.map +1 -1
  357. package/dist/components/label.js +1 -1
  358. package/dist/components/suggestions.js +1 -1
  359. package/dist/components/table-selection.js +1 -1
  360. package/dist/components/validation.js +1 -1
  361. package/dist/components/validation2.js +1 -1
  362. package/dist/esm/{Alert-ea5205e8.js → Alert-146e4bbf.js} +1 -1
  363. package/dist/esm/{Alert-ea5205e8.js.map → Alert-146e4bbf.js.map} +1 -1
  364. package/dist/esm/{Collapsible-40f90188.js → Collapsible-ce96a6f4.js} +1 -1
  365. package/dist/esm/{Collapsible-40f90188.js.map → Collapsible-ce96a6f4.js.map} +1 -1
  366. package/dist/esm/FormFieldMsg-c923f0ec.js +4 -0
  367. package/dist/esm/{FormFieldMsg-ac98caad.js.map → FormFieldMsg-c923f0ec.js.map} +1 -1
  368. package/dist/esm/{InternalUnderlinedBadgeText-4b7bd697.js → InternalUnderlinedBadgeText-0bee9998.js} +1 -1
  369. package/dist/esm/{InternalUnderlinedBadgeText-4b7bd697.js.map → InternalUnderlinedBadgeText-0bee9998.js.map} +1 -1
  370. package/dist/esm/{access-and-short-key-a34a0af0.js → access-and-short-key-360ff997.js} +1 -1
  371. package/dist/esm/{access-and-short-key-a34a0af0.js.map → access-and-short-key-360ff997.js.map} +1 -1
  372. package/dist/esm/align-ef25bf72.js +4 -0
  373. package/dist/esm/{align-bc8d98ac.js.map → align-ef25bf72.js.map} +1 -1
  374. package/dist/esm/align-floating-elements-4d750669.js +4 -0
  375. package/dist/esm/align-floating-elements-4d750669.js.map +1 -0
  376. package/dist/esm/app-globals-e679e588.js +4 -0
  377. package/dist/esm/{app-globals-f4ebdb75.js.map → app-globals-e679e588.js.map} +1 -1
  378. package/dist/esm/ariaCurrentService-6fe36ebc.js +1 -1
  379. package/dist/esm/associated.controller-7e8760a4.js +4 -0
  380. package/dist/esm/{associated.controller-3dab1e00.js.map → associated.controller-7e8760a4.js.map} +1 -1
  381. package/dist/esm/{badge-text-c7f39390.js → badge-text-920f8e25.js} +1 -1
  382. package/dist/esm/{badge-text-c7f39390.js.map → badge-text-920f8e25.js.map} +1 -1
  383. package/dist/esm/button-variant-f3bae820.js +4 -0
  384. package/dist/esm/button-variant-f3bae820.js.map +1 -0
  385. package/dist/esm/color-0c64809c.js +4 -0
  386. package/dist/esm/{color-a464afb7.js.map → color-0c64809c.js.map} +1 -1
  387. package/dist/esm/{controller-87dfc9ee.js → controller-08b97a5b.js} +1 -1
  388. package/dist/esm/{controller-87dfc9ee.js.map → controller-08b97a5b.js.map} +1 -1
  389. package/dist/esm/controller-17a2fd4e.js +4 -0
  390. package/dist/esm/{controller-4fa871d2.js.map → controller-17a2fd4e.js.map} +1 -1
  391. package/dist/esm/controller-9a8498ba.js +4 -0
  392. package/dist/esm/{controller-e97b79b7.js.map → controller-9a8498ba.js.map} +1 -1
  393. package/dist/esm/controller-ea3c27ba.js +4 -0
  394. package/dist/esm/{controller-8ace9659.js.map → controller-ea3c27ba.js.map} +1 -1
  395. package/dist/esm/controller-f2dc1020.js +4 -0
  396. package/dist/esm/{controller-cfa11279.js.map → controller-f2dc1020.js.map} +1 -1
  397. package/dist/esm/{controller-icon-811adcf4.js → controller-icon-faf40010.js} +1 -1
  398. package/dist/esm/{controller-icon-811adcf4.js.map → controller-icon-faf40010.js.map} +1 -1
  399. package/dist/esm/{custom-class-6eaba98d.js → custom-class-aa04d105.js} +1 -1
  400. package/dist/esm/{custom-class-6eaba98d.js.map → custom-class-aa04d105.js.map} +1 -1
  401. package/dist/esm/{debounce-112fa67e.js → debounce-87469330.js} +1 -1
  402. package/dist/esm/{debounce-112fa67e.js.map → debounce-87469330.js.map} +1 -1
  403. package/dist/esm/{dev.utils-3a332b59.js → dev.utils-7d7ddeeb.js} +1 -1
  404. package/dist/esm/{dev.utils-3a332b59.js.map → dev.utils-7d7ddeeb.js.map} +1 -1
  405. package/dist/esm/devtools-77a1d588.js +4 -0
  406. package/dist/esm/{devtools-62562887.js.map → devtools-77a1d588.js.map} +1 -1
  407. package/dist/esm/disabled-3bfa3898.js +4 -0
  408. package/dist/esm/{disabled-f923601e.js.map → disabled-3bfa3898.js.map} +1 -1
  409. package/dist/esm/{has-closer-a7dc359b.js → has-closer-c90da2b1.js} +1 -1
  410. package/dist/esm/{has-closer-a7dc359b.js.map → has-closer-c90da2b1.js.map} +1 -1
  411. package/dist/esm/{hide-label-2b46168f.js → hide-label-6f1ea82b.js} +1 -1
  412. package/dist/esm/{hide-label-2b46168f.js.map → hide-label-6f1ea82b.js.map} +1 -1
  413. package/dist/esm/{href-823c69d8.js → href-e07672da.js} +1 -1
  414. package/dist/esm/{href-823c69d8.js.map → href-e07672da.js.map} +1 -1
  415. package/dist/esm/i18n-b14e6088.js +1 -1
  416. package/dist/esm/{i18n-820d85c7.js → i18n-b4507b80.js} +1 -1
  417. package/dist/esm/{i18n-820d85c7.js.map → i18n-b4507b80.js.map} +1 -1
  418. package/dist/esm/icons-26be7462.js +4 -0
  419. package/dist/esm/{icons-d29928c3.js.map → icons-26be7462.js.map} +1 -1
  420. package/dist/esm/{image-source-bd7ca7b4.js → image-source-44a71276.js} +1 -1
  421. package/dist/esm/{image-source-bd7ca7b4.js.map → image-source-44a71276.js.map} +1 -1
  422. package/dist/esm/index-3bfee590.js +4 -0
  423. package/dist/esm/{index-1766e6f4.js.map → index-3bfee590.js.map} +1 -1
  424. package/dist/esm/index-50898179.js +4 -0
  425. package/dist/esm/index-50898179.js.map +1 -0
  426. package/dist/esm/index.js +1 -1
  427. package/dist/esm/kol-abbr.entry.js +1 -1
  428. package/dist/esm/kol-abbr.entry.js.map +1 -1
  429. package/dist/esm/kol-accordion.entry.js +1 -1
  430. package/dist/esm/kol-accordion.entry.js.map +1 -1
  431. package/dist/esm/kol-alert-wc.entry.js +1 -1
  432. package/dist/esm/kol-alert.entry.js +1 -1
  433. package/dist/esm/kol-alert.entry.js.map +1 -1
  434. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  435. package/dist/esm/kol-avatar.entry.js +1 -1
  436. package/dist/esm/kol-avatar.entry.js.map +1 -1
  437. package/dist/esm/kol-badge.entry.js +1 -1
  438. package/dist/esm/kol-badge.entry.js.map +1 -1
  439. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  440. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  441. package/dist/esm/kol-button-group-wc.entry.js +1 -1
  442. package/dist/esm/kol-button-group.entry.js +1 -1
  443. package/dist/esm/kol-button-group.entry.js.map +1 -1
  444. package/dist/esm/kol-button-link.entry.js +1 -1
  445. package/dist/esm/kol-button-link.entry.js.map +1 -1
  446. package/dist/esm/kol-button-wc.entry.js +1 -1
  447. package/dist/esm/kol-button.entry.js +1 -1
  448. package/dist/esm/kol-button.entry.js.map +1 -1
  449. package/dist/esm/kol-card.entry.js +1 -1
  450. package/dist/esm/kol-card.entry.js.map +1 -1
  451. package/dist/esm/kol-combobox.entry.js +1 -1
  452. package/dist/esm/kol-combobox.entry.js.map +1 -1
  453. package/dist/esm/kol-details.entry.js +1 -1
  454. package/dist/esm/kol-details.entry.js.map +1 -1
  455. package/dist/esm/kol-drawer.entry.js +1 -1
  456. package/dist/esm/kol-drawer.entry.js.map +1 -1
  457. package/dist/esm/kol-form.entry.js +1 -1
  458. package/dist/esm/kol-form.entry.js.map +1 -1
  459. package/dist/esm/kol-heading-wc.entry.js +1 -1
  460. package/dist/esm/kol-heading.entry.js +1 -1
  461. package/dist/esm/kol-heading.entry.js.map +1 -1
  462. package/dist/esm/kol-icon.entry.js +1 -1
  463. package/dist/esm/kol-icon.entry.js.map +1 -1
  464. package/dist/esm/kol-image.entry.js +1 -1
  465. package/dist/esm/kol-image.entry.js.map +1 -1
  466. package/dist/esm/kol-indented-text-wc.entry.js +1 -1
  467. package/dist/esm/kol-indented-text.entry.js +1 -1
  468. package/dist/esm/kol-indented-text.entry.js.map +1 -1
  469. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  470. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  471. package/dist/esm/kol-input-color.entry.js +1 -1
  472. package/dist/esm/kol-input-color.entry.js.map +1 -1
  473. package/dist/esm/kol-input-date.entry.js +1 -1
  474. package/dist/esm/kol-input-date.entry.js.map +1 -1
  475. package/dist/esm/kol-input-email.entry.js +1 -1
  476. package/dist/esm/kol-input-email.entry.js.map +1 -1
  477. package/dist/esm/kol-input-file.entry.js +1 -1
  478. package/dist/esm/kol-input-file.entry.js.map +1 -1
  479. package/dist/esm/kol-input-number.entry.js +1 -1
  480. package/dist/esm/kol-input-number.entry.js.map +1 -1
  481. package/dist/esm/kol-input-password.entry.js +1 -1
  482. package/dist/esm/kol-input-password.entry.js.map +1 -1
  483. package/dist/esm/kol-input-radio.entry.js +1 -1
  484. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  485. package/dist/esm/kol-input-range.entry.js +1 -1
  486. package/dist/esm/kol-input-range.entry.js.map +1 -1
  487. package/dist/esm/kol-input-text.entry.js +1 -1
  488. package/dist/esm/kol-input-text.entry.js.map +1 -1
  489. package/dist/esm/kol-input.entry.js +1 -1
  490. package/dist/esm/kol-kolibri.entry.js +1 -1
  491. package/dist/esm/kol-kolibri.entry.js.map +1 -1
  492. package/dist/esm/kol-link-button.entry.js +1 -1
  493. package/dist/esm/kol-link-button.entry.js.map +1 -1
  494. package/dist/esm/kol-link-group.entry.js +1 -1
  495. package/dist/esm/kol-link-group.entry.js.map +1 -1
  496. package/dist/esm/kol-link-wc.entry.js +1 -1
  497. package/dist/esm/kol-link.entry.js +1 -1
  498. package/dist/esm/kol-link.entry.js.map +1 -1
  499. package/dist/esm/kol-logo.entry.js +1 -1
  500. package/dist/esm/kol-logo.entry.js.map +1 -1
  501. package/dist/esm/kol-modal.entry.js +1 -1
  502. package/dist/esm/kol-modal.entry.js.map +1 -1
  503. package/dist/esm/kol-nav.entry.js +1 -1
  504. package/dist/esm/kol-nav.entry.js.map +1 -1
  505. package/dist/esm/kol-pagination.entry.js +1 -1
  506. package/dist/esm/kol-pagination.entry.js.map +1 -1
  507. package/dist/esm/kol-popover-button.entry.js +1 -1
  508. package/dist/esm/kol-popover-button.entry.js.map +1 -1
  509. package/dist/esm/kol-popover-wc.entry.js +1 -1
  510. package/dist/esm/kol-progress.entry.js +1 -1
  511. package/dist/esm/kol-progress.entry.js.map +1 -1
  512. package/dist/esm/kol-quote.entry.js +1 -1
  513. package/dist/esm/kol-quote.entry.js.map +1 -1
  514. package/dist/esm/kol-select.entry.js +1 -1
  515. package/dist/esm/kol-select.entry.js.map +1 -1
  516. package/dist/esm/kol-single-select.entry.js +1 -1
  517. package/dist/esm/kol-single-select.entry.js.map +1 -1
  518. package/dist/esm/kol-skip-nav.entry.js +1 -1
  519. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  520. package/dist/esm/kol-span-wc.entry.js +1 -1
  521. package/dist/esm/kol-spin.entry.js +1 -1
  522. package/dist/esm/kol-spin.entry.js.map +1 -1
  523. package/dist/esm/kol-split-button.entry.js +1 -1
  524. package/dist/esm/kol-split-button.entry.js.map +1 -1
  525. package/dist/esm/kol-symbol.entry.js +1 -1
  526. package/dist/esm/kol-table-stateful.entry.js +1 -1
  527. package/dist/esm/kol-table-stateful.entry.js.map +1 -1
  528. package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
  529. package/dist/esm/kol-table-stateless.entry.js +1 -1
  530. package/dist/esm/kol-table-stateless.entry.js.map +1 -1
  531. package/dist/esm/kol-table.entry.js +1 -1
  532. package/dist/esm/kol-tabs.entry.js +1 -1
  533. package/dist/esm/kol-tabs.entry.js.map +1 -1
  534. package/dist/esm/kol-textarea.entry.js +1 -1
  535. package/dist/esm/kol-textarea.entry.js.map +1 -1
  536. package/dist/esm/kol-toast-container.entry.js +1 -1
  537. package/dist/esm/kol-toast-container.entry.js.map +1 -1
  538. package/dist/esm/kol-toolbar.entry.js +1 -1
  539. package/dist/esm/kol-toolbar.entry.js.map +1 -1
  540. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  541. package/dist/esm/kol-tree-item-wc.entry.js +1 -1
  542. package/dist/esm/kol-tree-item.entry.js +1 -1
  543. package/dist/esm/kol-tree-item.entry.js.map +1 -1
  544. package/dist/esm/kol-tree-wc.entry.js +1 -1
  545. package/dist/esm/kol-tree.entry.js +1 -1
  546. package/dist/esm/kol-tree.entry.js.map +1 -1
  547. package/dist/esm/kol-version.entry.js +1 -1
  548. package/dist/esm/kol-version.entry.js.map +1 -1
  549. package/dist/esm/kolibri.js +1 -1
  550. package/dist/esm/{label-51d66c9d.js → label-2d7e2d68.js} +1 -1
  551. package/dist/esm/{label-51d66c9d.js.map → label-2d7e2d68.js.map} +1 -1
  552. package/dist/esm/loader.js +1 -1
  553. package/dist/esm/{open-47cb3e2a.js → open-ae55f20a.js} +1 -1
  554. package/dist/esm/{open-47cb3e2a.js.map → open-ae55f20a.js.map} +1 -1
  555. package/dist/esm/{rows-92682fe5.js → rows-87b2a0e8.js} +1 -1
  556. package/dist/esm/{rows-92682fe5.js.map → rows-87b2a0e8.js.map} +1 -1
  557. package/dist/esm/{show-82afe4f8.js → show-03f9068a.js} +1 -1
  558. package/dist/esm/{show-82afe4f8.js.map → show-03f9068a.js.map} +1 -1
  559. package/dist/esm/{spell-check-5b365d45.js → spell-check-0db58373.js} +1 -1
  560. package/dist/esm/{spell-check-5b365d45.js.map → spell-check-0db58373.js.map} +1 -1
  561. package/dist/esm/suggestions-68834329.js +4 -0
  562. package/dist/esm/{suggestions-7e70d4e3.js.map → suggestions-68834329.js.map} +1 -1
  563. package/dist/esm/table-selection-e9061dc2.js +4 -0
  564. package/dist/esm/{table-selection-eaee72ee.js.map → table-selection-e9061dc2.js.map} +1 -1
  565. package/dist/esm/test-component.entry.js +1 -1
  566. package/dist/esm/tooltip-align-6c3169e7.js +4 -0
  567. package/dist/esm/{tooltip-align-de415afb.js.map → tooltip-align-6c3169e7.js.map} +1 -1
  568. package/dist/esm/{unique-nav-labels-917eec2b.js → unique-nav-labels-ff53a6d0.js} +1 -1
  569. package/dist/esm/{unique-nav-labels-917eec2b.js.map → unique-nav-labels-ff53a6d0.js.map} +1 -1
  570. package/dist/esm/validation-0a3825a7.js +4 -0
  571. package/dist/esm/{validation-db4e7b56.js.map → validation-0a3825a7.js.map} +1 -1
  572. package/dist/esm/validation-a88d38d8.js +4 -0
  573. package/dist/esm/{validation-c4177384.js.map → validation-a88d38d8.js.map} +1 -1
  574. package/dist/kolibri/{Alert-ea5205e8.js → Alert-146e4bbf.js} +1 -1
  575. package/dist/kolibri/{Collapsible-40f90188.js → Collapsible-ce96a6f4.js} +1 -1
  576. package/dist/kolibri/FormFieldMsg-c923f0ec.js +4 -0
  577. package/dist/kolibri/{InternalUnderlinedBadgeText-4b7bd697.js → InternalUnderlinedBadgeText-0bee9998.js} +1 -1
  578. package/dist/kolibri/{access-and-short-key-a34a0af0.js → access-and-short-key-360ff997.js} +1 -1
  579. package/dist/kolibri/align-ef25bf72.js +4 -0
  580. package/dist/kolibri/align-floating-elements-4d750669.js +4 -0
  581. package/dist/kolibri/align-floating-elements-4d750669.js.map +1 -0
  582. package/dist/kolibri/app-globals-e679e588.js +4 -0
  583. package/dist/kolibri/ariaCurrentService-6fe36ebc.js +1 -1
  584. package/dist/kolibri/associated.controller-7e8760a4.js +4 -0
  585. package/dist/kolibri/badge-text-920f8e25.js +4 -0
  586. package/dist/kolibri/button-variant-f3bae820.js +4 -0
  587. package/dist/kolibri/button-variant-f3bae820.js.map +1 -0
  588. package/dist/kolibri/color-0c64809c.js +4 -0
  589. package/dist/kolibri/controller-08b97a5b.js +4 -0
  590. package/dist/kolibri/controller-17a2fd4e.js +4 -0
  591. package/dist/kolibri/controller-9a8498ba.js +4 -0
  592. package/dist/kolibri/controller-ea3c27ba.js +4 -0
  593. package/dist/kolibri/controller-f2dc1020.js +4 -0
  594. package/dist/kolibri/{controller-icon-811adcf4.js → controller-icon-faf40010.js} +1 -1
  595. package/dist/kolibri/custom-class-aa04d105.js +4 -0
  596. package/dist/kolibri/{debounce-112fa67e.js → debounce-87469330.js} +1 -1
  597. package/dist/kolibri/{dev.utils-3a332b59.js → dev.utils-7d7ddeeb.js} +1 -1
  598. package/dist/kolibri/devtools-77a1d588.js +4 -0
  599. package/dist/kolibri/disabled-3bfa3898.js +4 -0
  600. package/dist/kolibri/has-closer-c90da2b1.js +4 -0
  601. package/dist/kolibri/hide-label-6f1ea82b.js +4 -0
  602. package/dist/kolibri/href-e07672da.js +4 -0
  603. package/dist/kolibri/i18n-b14e6088.js +1 -1
  604. package/dist/kolibri/{i18n-820d85c7.js → i18n-b4507b80.js} +1 -1
  605. package/dist/kolibri/icons-26be7462.js +4 -0
  606. package/dist/kolibri/image-source-44a71276.js +4 -0
  607. package/dist/kolibri/index-3bfee590.js +5 -0
  608. package/dist/kolibri/{index-1766e6f4.js.map → index-3bfee590.js.map} +1 -1
  609. package/dist/kolibri/index-50898179.js +4 -0
  610. package/dist/kolibri/index-50898179.js.map +1 -0
  611. package/dist/kolibri/index.esm.js +1 -1
  612. package/dist/kolibri/kol-abbr.entry.js +1 -1
  613. package/dist/kolibri/kol-abbr.entry.js.map +1 -1
  614. package/dist/kolibri/kol-accordion.entry.js +1 -1
  615. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  616. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  617. package/dist/kolibri/kol-alert.entry.js +1 -1
  618. package/dist/kolibri/kol-alert.entry.js.map +1 -1
  619. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  620. package/dist/kolibri/kol-avatar.entry.js +1 -1
  621. package/dist/kolibri/kol-avatar.entry.js.map +1 -1
  622. package/dist/kolibri/kol-badge.entry.js +1 -1
  623. package/dist/kolibri/kol-badge.entry.js.map +1 -1
  624. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  625. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  626. package/dist/kolibri/kol-button-group-wc.entry.js +1 -1
  627. package/dist/kolibri/kol-button-group.entry.js +1 -1
  628. package/dist/kolibri/kol-button-group.entry.js.map +1 -1
  629. package/dist/kolibri/kol-button-link.entry.js +1 -1
  630. package/dist/kolibri/kol-button-link.entry.js.map +1 -1
  631. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  632. package/dist/kolibri/kol-button.entry.js +1 -1
  633. package/dist/kolibri/kol-button.entry.js.map +1 -1
  634. package/dist/kolibri/kol-card.entry.js +1 -1
  635. package/dist/kolibri/kol-card.entry.js.map +1 -1
  636. package/dist/kolibri/kol-combobox.entry.js +1 -1
  637. package/dist/kolibri/kol-combobox.entry.js.map +1 -1
  638. package/dist/kolibri/kol-details.entry.js +1 -1
  639. package/dist/kolibri/kol-details.entry.js.map +1 -1
  640. package/dist/kolibri/kol-drawer.entry.js +1 -1
  641. package/dist/kolibri/kol-drawer.entry.js.map +1 -1
  642. package/dist/kolibri/kol-form.entry.js +1 -1
  643. package/dist/kolibri/kol-form.entry.js.map +1 -1
  644. package/dist/kolibri/kol-heading-wc.entry.js +1 -1
  645. package/dist/kolibri/kol-heading.entry.js +1 -1
  646. package/dist/kolibri/kol-heading.entry.js.map +1 -1
  647. package/dist/kolibri/kol-icon.entry.js +1 -1
  648. package/dist/kolibri/kol-icon.entry.js.map +1 -1
  649. package/dist/kolibri/kol-image.entry.js +1 -1
  650. package/dist/kolibri/kol-image.entry.js.map +1 -1
  651. package/dist/kolibri/kol-indented-text-wc.entry.js +1 -1
  652. package/dist/kolibri/kol-indented-text.entry.js +1 -1
  653. package/dist/kolibri/kol-indented-text.entry.js.map +1 -1
  654. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  655. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  656. package/dist/kolibri/kol-input-color.entry.js +1 -1
  657. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  658. package/dist/kolibri/kol-input-date.entry.js +1 -1
  659. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  660. package/dist/kolibri/kol-input-email.entry.js +1 -1
  661. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  662. package/dist/kolibri/kol-input-file.entry.js +1 -1
  663. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  664. package/dist/kolibri/kol-input-number.entry.js +1 -1
  665. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  666. package/dist/kolibri/kol-input-password.entry.js +1 -1
  667. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  668. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  669. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  670. package/dist/kolibri/kol-input-range.entry.js +1 -1
  671. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  672. package/dist/kolibri/kol-input-text.entry.js +1 -1
  673. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  674. package/dist/kolibri/kol-input.entry.js +1 -1
  675. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  676. package/dist/kolibri/kol-kolibri.entry.js.map +1 -1
  677. package/dist/kolibri/kol-link-button.entry.js +1 -1
  678. package/dist/kolibri/kol-link-button.entry.js.map +1 -1
  679. package/dist/kolibri/kol-link-group.entry.js +1 -1
  680. package/dist/kolibri/kol-link-group.entry.js.map +1 -1
  681. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  682. package/dist/kolibri/kol-link.entry.js +1 -1
  683. package/dist/kolibri/kol-link.entry.js.map +1 -1
  684. package/dist/kolibri/kol-logo.entry.js +1 -1
  685. package/dist/kolibri/kol-logo.entry.js.map +1 -1
  686. package/dist/kolibri/kol-modal.entry.js +1 -1
  687. package/dist/kolibri/kol-modal.entry.js.map +1 -1
  688. package/dist/kolibri/kol-nav.entry.js +1 -1
  689. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  690. package/dist/kolibri/kol-pagination.entry.js +1 -1
  691. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  692. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  693. package/dist/kolibri/kol-popover-button.entry.js.map +1 -1
  694. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  695. package/dist/kolibri/kol-progress.entry.js +1 -1
  696. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  697. package/dist/kolibri/kol-quote.entry.js +1 -1
  698. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  699. package/dist/kolibri/kol-select.entry.js +1 -1
  700. package/dist/kolibri/kol-select.entry.js.map +1 -1
  701. package/dist/kolibri/kol-single-select.entry.js +1 -1
  702. package/dist/kolibri/kol-single-select.entry.js.map +1 -1
  703. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  704. package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
  705. package/dist/kolibri/kol-span-wc.entry.js +1 -1
  706. package/dist/kolibri/kol-spin.entry.js +1 -1
  707. package/dist/kolibri/kol-spin.entry.js.map +1 -1
  708. package/dist/kolibri/kol-split-button.entry.js +1 -1
  709. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  710. package/dist/kolibri/kol-symbol.entry.js +1 -1
  711. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  712. package/dist/kolibri/kol-table-stateful.entry.js.map +1 -1
  713. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  714. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  715. package/dist/kolibri/kol-table-stateless.entry.js.map +1 -1
  716. package/dist/kolibri/kol-table.entry.js +1 -1
  717. package/dist/kolibri/kol-tabs.entry.js +1 -1
  718. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  719. package/dist/kolibri/kol-textarea.entry.js +1 -1
  720. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  721. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  722. package/dist/kolibri/kol-toast-container.entry.js.map +1 -1
  723. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  724. package/dist/kolibri/kol-toolbar.entry.js.map +1 -1
  725. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  726. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  727. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  728. package/dist/kolibri/kol-tree-item.entry.js.map +1 -1
  729. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  730. package/dist/kolibri/kol-tree.entry.js +1 -1
  731. package/dist/kolibri/kol-tree.entry.js.map +1 -1
  732. package/dist/kolibri/kol-version.entry.js +1 -1
  733. package/dist/kolibri/kol-version.entry.js.map +1 -1
  734. package/dist/kolibri/kolibri.esm.js +1 -1
  735. package/dist/kolibri/{label-51d66c9d.js → label-2d7e2d68.js} +1 -1
  736. package/dist/kolibri/open-ae55f20a.js +4 -0
  737. package/dist/kolibri/rows-87b2a0e8.js +4 -0
  738. package/dist/kolibri/show-03f9068a.js +4 -0
  739. package/dist/kolibri/spell-check-0db58373.js +4 -0
  740. package/dist/kolibri/suggestions-68834329.js +4 -0
  741. package/dist/kolibri/table-selection-e9061dc2.js +4 -0
  742. package/dist/kolibri/test-component.entry.js +1 -1
  743. package/dist/kolibri/tooltip-align-6c3169e7.js +4 -0
  744. package/dist/kolibri/{unique-nav-labels-917eec2b.js → unique-nav-labels-ff53a6d0.js} +1 -1
  745. package/dist/kolibri/validation-0a3825a7.js +4 -0
  746. package/dist/kolibri/validation-a88d38d8.js +4 -0
  747. package/dist/types/components/single-select/shadow.d.ts +1 -0
  748. package/dist/types/components.d.ts +12 -0
  749. package/dist/types/schema/props/alternative-button-link-role.d.ts +1 -1
  750. package/doc/badge.md +6 -6
  751. package/doc/button-link.md +21 -21
  752. package/doc/button.md +23 -23
  753. package/doc/input-color.md +23 -23
  754. package/doc/input-date.md +29 -29
  755. package/doc/input-email.md +30 -30
  756. package/doc/input-file.md +24 -24
  757. package/doc/input-number.md +29 -29
  758. package/doc/input-password.md +29 -29
  759. package/doc/input-text.md +31 -31
  760. package/doc/link-button.md +20 -20
  761. package/doc/link.md +18 -18
  762. package/doc/popover-button.md +22 -22
  763. package/doc/split-button.md +19 -19
  764. package/package.json +6 -6
  765. package/vscode-custom-data.json +0 -84
  766. package/dist/cjs/FormFieldMsg-b2f580b4.js +0 -4
  767. package/dist/cjs/align-033dd3ec.js +0 -4
  768. package/dist/cjs/align-floating-elements-fd0cbb89.js +0 -4
  769. package/dist/cjs/align-floating-elements-fd0cbb89.js.map +0 -1
  770. package/dist/cjs/app-globals-7bef0af1.js +0 -4
  771. package/dist/cjs/associated.controller-52a935b6.js +0 -4
  772. package/dist/cjs/button-variant-88579d18.js +0 -4
  773. package/dist/cjs/button-variant-88579d18.js.map +0 -1
  774. package/dist/cjs/color-162ea61e.js +0 -4
  775. package/dist/cjs/controller-5bb59938.js +0 -4
  776. package/dist/cjs/controller-87180834.js +0 -4
  777. package/dist/cjs/controller-b58f6250.js +0 -4
  778. package/dist/cjs/controller-e781902d.js +0 -4
  779. package/dist/cjs/devtools-849b79d3.js +0 -4
  780. package/dist/cjs/hide-label-c4e4da8c.js +0 -4
  781. package/dist/cjs/icons-f339f0f3.js +0 -4
  782. package/dist/cjs/index-2999bd56.js +0 -4
  783. package/dist/cjs/index-4d023d25.js +0 -4
  784. package/dist/cjs/index-4d023d25.js.map +0 -1
  785. package/dist/cjs/show-7c9e5406.js +0 -4
  786. package/dist/cjs/spell-check-2d7ed9c3.js +0 -4
  787. package/dist/cjs/suggestions-7567310b.js +0 -4
  788. package/dist/cjs/table-selection-106f5d36.js +0 -4
  789. package/dist/cjs/tooltip-align-cf8829c6.js +0 -4
  790. package/dist/cjs/validation-4fab29ff.js +0 -4
  791. package/dist/cjs/validation-5256cf18.js +0 -4
  792. package/dist/esm/FormFieldMsg-ac98caad.js +0 -4
  793. package/dist/esm/align-bc8d98ac.js +0 -4
  794. package/dist/esm/align-floating-elements-f88f945f.js +0 -4
  795. package/dist/esm/align-floating-elements-f88f945f.js.map +0 -1
  796. package/dist/esm/app-globals-f4ebdb75.js +0 -4
  797. package/dist/esm/associated.controller-3dab1e00.js +0 -4
  798. package/dist/esm/button-variant-fe0f7f45.js +0 -4
  799. package/dist/esm/button-variant-fe0f7f45.js.map +0 -1
  800. package/dist/esm/color-a464afb7.js +0 -4
  801. package/dist/esm/controller-4fa871d2.js +0 -4
  802. package/dist/esm/controller-8ace9659.js +0 -4
  803. package/dist/esm/controller-cfa11279.js +0 -4
  804. package/dist/esm/controller-e97b79b7.js +0 -4
  805. package/dist/esm/devtools-62562887.js +0 -4
  806. package/dist/esm/disabled-f923601e.js +0 -4
  807. package/dist/esm/icons-d29928c3.js +0 -4
  808. package/dist/esm/index-1766e6f4.js +0 -4
  809. package/dist/esm/index-4fb06bbb.js +0 -4
  810. package/dist/esm/index-4fb06bbb.js.map +0 -1
  811. package/dist/esm/suggestions-7e70d4e3.js +0 -4
  812. package/dist/esm/table-selection-eaee72ee.js +0 -4
  813. package/dist/esm/tooltip-align-de415afb.js +0 -4
  814. package/dist/esm/validation-c4177384.js +0 -4
  815. package/dist/esm/validation-db4e7b56.js +0 -4
  816. package/dist/kolibri/FormFieldMsg-ac98caad.js +0 -4
  817. package/dist/kolibri/align-bc8d98ac.js +0 -4
  818. package/dist/kolibri/align-floating-elements-f88f945f.js +0 -4
  819. package/dist/kolibri/align-floating-elements-f88f945f.js.map +0 -1
  820. package/dist/kolibri/app-globals-f4ebdb75.js +0 -4
  821. package/dist/kolibri/associated.controller-3dab1e00.js +0 -4
  822. package/dist/kolibri/badge-text-c7f39390.js +0 -4
  823. package/dist/kolibri/button-variant-fe0f7f45.js +0 -4
  824. package/dist/kolibri/button-variant-fe0f7f45.js.map +0 -1
  825. package/dist/kolibri/color-a464afb7.js +0 -4
  826. package/dist/kolibri/controller-4fa871d2.js +0 -4
  827. package/dist/kolibri/controller-87dfc9ee.js +0 -4
  828. package/dist/kolibri/controller-8ace9659.js +0 -4
  829. package/dist/kolibri/controller-cfa11279.js +0 -4
  830. package/dist/kolibri/controller-e97b79b7.js +0 -4
  831. package/dist/kolibri/custom-class-6eaba98d.js +0 -4
  832. package/dist/kolibri/devtools-62562887.js +0 -4
  833. package/dist/kolibri/disabled-f923601e.js +0 -4
  834. package/dist/kolibri/has-closer-a7dc359b.js +0 -4
  835. package/dist/kolibri/hide-label-2b46168f.js +0 -4
  836. package/dist/kolibri/href-823c69d8.js +0 -4
  837. package/dist/kolibri/icons-d29928c3.js +0 -4
  838. package/dist/kolibri/image-source-bd7ca7b4.js +0 -4
  839. package/dist/kolibri/index-1766e6f4.js +0 -5
  840. package/dist/kolibri/index-4fb06bbb.js +0 -4
  841. package/dist/kolibri/index-4fb06bbb.js.map +0 -1
  842. package/dist/kolibri/open-47cb3e2a.js +0 -4
  843. package/dist/kolibri/rows-92682fe5.js +0 -4
  844. package/dist/kolibri/show-82afe4f8.js +0 -4
  845. package/dist/kolibri/spell-check-5b365d45.js +0 -4
  846. package/dist/kolibri/suggestions-7e70d4e3.js +0 -4
  847. package/dist/kolibri/table-selection-eaee72ee.js +0 -4
  848. package/dist/kolibri/tooltip-align-de415afb.js +0 -4
  849. package/dist/kolibri/validation-c4177384.js +0 -4
  850. package/dist/kolibri/validation-db4e7b56.js +0 -4
  851. /package/dist/kolibri/{Alert-ea5205e8.js.map → Alert-146e4bbf.js.map} +0 -0
  852. /package/dist/kolibri/{Collapsible-40f90188.js.map → Collapsible-ce96a6f4.js.map} +0 -0
  853. /package/dist/kolibri/{FormFieldMsg-ac98caad.js.map → FormFieldMsg-c923f0ec.js.map} +0 -0
  854. /package/dist/kolibri/{InternalUnderlinedBadgeText-4b7bd697.js.map → InternalUnderlinedBadgeText-0bee9998.js.map} +0 -0
  855. /package/dist/kolibri/{access-and-short-key-a34a0af0.js.map → access-and-short-key-360ff997.js.map} +0 -0
  856. /package/dist/kolibri/{align-bc8d98ac.js.map → align-ef25bf72.js.map} +0 -0
  857. /package/dist/kolibri/{app-globals-f4ebdb75.js.map → app-globals-e679e588.js.map} +0 -0
  858. /package/dist/kolibri/{associated.controller-3dab1e00.js.map → associated.controller-7e8760a4.js.map} +0 -0
  859. /package/dist/kolibri/{badge-text-c7f39390.js.map → badge-text-920f8e25.js.map} +0 -0
  860. /package/dist/kolibri/{color-a464afb7.js.map → color-0c64809c.js.map} +0 -0
  861. /package/dist/kolibri/{controller-87dfc9ee.js.map → controller-08b97a5b.js.map} +0 -0
  862. /package/dist/kolibri/{controller-4fa871d2.js.map → controller-17a2fd4e.js.map} +0 -0
  863. /package/dist/kolibri/{controller-e97b79b7.js.map → controller-9a8498ba.js.map} +0 -0
  864. /package/dist/kolibri/{controller-8ace9659.js.map → controller-ea3c27ba.js.map} +0 -0
  865. /package/dist/kolibri/{controller-cfa11279.js.map → controller-f2dc1020.js.map} +0 -0
  866. /package/dist/kolibri/{controller-icon-811adcf4.js.map → controller-icon-faf40010.js.map} +0 -0
  867. /package/dist/kolibri/{custom-class-6eaba98d.js.map → custom-class-aa04d105.js.map} +0 -0
  868. /package/dist/kolibri/{debounce-112fa67e.js.map → debounce-87469330.js.map} +0 -0
  869. /package/dist/kolibri/{dev.utils-3a332b59.js.map → dev.utils-7d7ddeeb.js.map} +0 -0
  870. /package/dist/kolibri/{devtools-62562887.js.map → devtools-77a1d588.js.map} +0 -0
  871. /package/dist/kolibri/{disabled-f923601e.js.map → disabled-3bfa3898.js.map} +0 -0
  872. /package/dist/kolibri/{has-closer-a7dc359b.js.map → has-closer-c90da2b1.js.map} +0 -0
  873. /package/dist/kolibri/{hide-label-2b46168f.js.map → hide-label-6f1ea82b.js.map} +0 -0
  874. /package/dist/kolibri/{href-823c69d8.js.map → href-e07672da.js.map} +0 -0
  875. /package/dist/kolibri/{i18n-820d85c7.js.map → i18n-b4507b80.js.map} +0 -0
  876. /package/dist/kolibri/{icons-d29928c3.js.map → icons-26be7462.js.map} +0 -0
  877. /package/dist/kolibri/{image-source-bd7ca7b4.js.map → image-source-44a71276.js.map} +0 -0
  878. /package/dist/kolibri/{label-51d66c9d.js.map → label-2d7e2d68.js.map} +0 -0
  879. /package/dist/kolibri/{open-47cb3e2a.js.map → open-ae55f20a.js.map} +0 -0
  880. /package/dist/kolibri/{rows-92682fe5.js.map → rows-87b2a0e8.js.map} +0 -0
  881. /package/dist/kolibri/{show-82afe4f8.js.map → show-03f9068a.js.map} +0 -0
  882. /package/dist/kolibri/{spell-check-5b365d45.js.map → spell-check-0db58373.js.map} +0 -0
  883. /package/dist/kolibri/{suggestions-7e70d4e3.js.map → suggestions-68834329.js.map} +0 -0
  884. /package/dist/kolibri/{table-selection-eaee72ee.js.map → table-selection-e9061dc2.js.map} +0 -0
  885. /package/dist/kolibri/{tooltip-align-de415afb.js.map → tooltip-align-6c3169e7.js.map} +0 -0
  886. /package/dist/kolibri/{unique-nav-labels-917eec2b.js.map → unique-nav-labels-ff53a6d0.js.map} +0 -0
  887. /package/dist/kolibri/{validation-db4e7b56.js.map → validation-0a3825a7.js.map} +0 -0
  888. /package/dist/kolibri/{validation-c4177384.js.map → validation-a88d38d8.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"names":["defaultStyleCss","KolAlertDefaultStyle0","KolAlert","_level","render","h","Host","key","class","KolAlertWcTag","_alert","this","_hasCloser","_label","_on","_type","_variant"],"sources":["src/components/alert/style.scss?tag=kol-alert&mode=default&encapsulation=shadow","src/components/alert/shadow.tsx"],"sourcesContent":["@use '../style' as *;\n@use '../@shared/kol-alert-mixin' as *;\n\n@include kol-alert-styles;\n","import type { AlertProps, AlertStates, AlertType, AlertVariant, HeadingLevel, KoliBriAlertEventCallbacks, LabelPropType } from '../../schema';\nimport type { JSX } from '@stencil/core';\nimport { Component, h, Host, Prop, State } from '@stencil/core';\nimport { KolAlertWcTag } from '../../core/component-names';\n\n/**\n * @slot - Der Inhalt der Meldung.\n */\n@Component({\n\ttag: 'kol-alert',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolAlert implements AlertProps {\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-alert\">\n\t\t\t\t<KolAlertWcTag\n\t\t\t\t\t_alert={this._alert}\n\t\t\t\t\t_hasCloser={this._hasCloser}\n\t\t\t\t\t_label={this._label}\n\t\t\t\t\t_level={this._level}\n\t\t\t\t\t_on={this._on}\n\t\t\t\t\t_type={this._type}\n\t\t\t\t\t_variant={this._variant}\n\t\t\t\t>\n\t\t\t\t\t<slot />\n\t\t\t\t</KolAlertWcTag>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines whether the screen-readers should read out the notification.\n\t */\n\t@Prop() public _alert?: boolean = false;\n\n\t/**\n\t * Defines whether the element can be closed.\n\t * @TODO: Change type back to `HasCloserPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hasCloser?: boolean = false;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label?: LabelPropType;\n\n\t/**\n\t * Defines which H-level from 1-6 the heading has. 0 specifies no heading and is shown as bold text.\n\t */\n\t@Prop() public _level?: HeadingLevel = 1;\n\n\t/**\n\t * Gibt die EventCallback-Function für das Schließen des Alerts an.\n\t */\n\t@Prop() public _on?: KoliBriAlertEventCallbacks;\n\n\t/**\n\t * Defines either the type of the component or of the components interactive element.\n\t */\n\t@Prop() public _type?: AlertType = 'default';\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: AlertVariant = 'msg';\n\n\t@State() public state: AlertStates = {\n\t\t_level: 1,\n\t};\n}\n"],"mappings":";;;wGAAA,MAAMA,EAAkB,+7LACxB,MAAAC,EAAeD,E,MCcFE,EAAQ,M,qCAsBc,M,gBAMI,M,kCAUC,E,8BAUJ,U,cAKM,M,WAEJ,CACpCC,OAAQ,E,CAvDF,MAAAC,GACN,OACCC,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAM,aACXH,EAACI,EAAa,CAAAF,IAAA,2CACbG,OAAQC,KAAKD,OACbE,WAAYD,KAAKC,WACjBC,OAAQF,KAAKE,OACbV,OAAQQ,KAAKR,OACbW,IAAKH,KAAKG,IACVC,MAAOJ,KAAKI,MACZC,SAAUL,KAAKK,UAEfX,EAAA,QAAAE,IAAA,8C","ignoreList":[]}
1
+ {"version":3,"names":["defaultStyleCss","KolAlertDefaultStyle0","KolAlert","_level","render","h","Host","key","class","KolAlertWcTag","_alert","this","_hasCloser","_label","_on","_type","_variant"],"sources":["src/components/alert/style.scss?tag=kol-alert&mode=default&encapsulation=shadow","src/components/alert/shadow.tsx"],"sourcesContent":["@use '../style' as *;\n@use '../@shared/kol-alert-mixin' as *;\n\n@include kol-alert-styles;\n","import type { AlertProps, AlertStates, AlertType, AlertVariant, HeadingLevel, KoliBriAlertEventCallbacks, LabelPropType } from '../../schema';\nimport type { JSX } from '@stencil/core';\nimport { Component, h, Host, Prop, State } from '@stencil/core';\nimport { KolAlertWcTag } from '../../core/component-names';\n\n/**\n * @slot - Der Inhalt der Meldung.\n */\n@Component({\n\ttag: 'kol-alert',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolAlert implements AlertProps {\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-alert\">\n\t\t\t\t<KolAlertWcTag\n\t\t\t\t\t_alert={this._alert}\n\t\t\t\t\t_hasCloser={this._hasCloser}\n\t\t\t\t\t_label={this._label}\n\t\t\t\t\t_level={this._level}\n\t\t\t\t\t_on={this._on}\n\t\t\t\t\t_type={this._type}\n\t\t\t\t\t_variant={this._variant}\n\t\t\t\t>\n\t\t\t\t\t<slot />\n\t\t\t\t</KolAlertWcTag>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines whether the screen-readers should read out the notification.\n\t */\n\t@Prop() public _alert?: boolean = false;\n\n\t/**\n\t * Defines whether the element can be closed.\n\t * @TODO: Change type back to `HasCloserPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hasCloser?: boolean = false;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label?: LabelPropType;\n\n\t/**\n\t * Defines which H-level from 1-6 the heading has. 0 specifies no heading and is shown as bold text.\n\t */\n\t@Prop() public _level?: HeadingLevel = 1;\n\n\t/**\n\t * Gibt die EventCallback-Function für das Schließen des Alerts an.\n\t */\n\t@Prop() public _on?: KoliBriAlertEventCallbacks;\n\n\t/**\n\t * Defines either the type of the component or of the components interactive element.\n\t */\n\t@Prop() public _type?: AlertType = 'default';\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: AlertVariant = 'msg';\n\n\t@State() public state: AlertStates = {\n\t\t_level: 1,\n\t};\n}\n"],"mappings":";;;wGAAA,MAAMA,EAAkB,k4LACxB,MAAAC,EAAeD,E,MCcFE,EAAQ,M,qCAsBc,M,gBAMI,M,kCAUC,E,8BAUJ,U,cAKM,M,WAEJ,CACpCC,OAAQ,E,CAvDF,MAAAC,GACN,OACCC,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAM,aACXH,EAACI,EAAa,CAAAF,IAAA,2CACbG,OAAQC,KAAKD,OACbE,WAAYD,KAAKC,WACjBC,OAAQF,KAAKE,OACbV,OAAQQ,KAAKR,OACbW,IAAKH,KAAKG,IACVC,MAAOJ,KAAKI,MACZC,SAAUL,KAAKK,UAEfX,EAAA,QAAAE,IAAA,8C","ignoreList":[]}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as a,h as t,H as s}from"./index-1766e6f4.js";import"./index-4fb06bbb.js";import{t as e}from"./i18n-820d85c7.js";import{v as i}from"./image-source-bd7ca7b4.js";import{v as r}from"./label-51d66c9d.js";import"./i18n-b14e6088.js";const c=a=>0===a.length?"":a[0].toUpperCase(),n=a=>{const t=a.split(/\s+/),s=t[0],e=t[t.length-1];return t.length>=2&&s&&e?`${c(s)}${c(e)}`:c(a)},l=class{constructor(t){a(this,t),this._src=void 0,this._label=void 0,this.state={_src:"",_label:""}}render(){return t(s,{key:"b45a03c214f69fa12120c1ab077cbdda68af4d03",class:"kol-avatar-wc"},t("div",{key:"11c5ec00e290a3e045ec6d355bd9afd9b65cb396","aria-label":e("kol-avatar-alt",{placeholders:{name:this.state._label}}),class:"container",role:"img"},this.state._src?t("img",{alt:"","aria-hidden":"true",class:"image",src:this.state._src}):t("span",{"aria-hidden":"true",class:"initials"},n(this.state._label.trim()))))}validateSrc(a){i(this,a)}validateLabel(a){r(this,a,{required:!0})}componentWillLoad(){this.validateSrc(this._src),this.validateLabel(this._label)}static get watchers(){return{_src:["validateSrc"],_label:["validateLabel"]}}};export{l as kol_avatar_wc};
4
+ import{r as a,h as t,H as e}from"./index-3bfee590.js";import"./index-50898179.js";import{t as s}from"./i18n-b4507b80.js";import{v as i}from"./image-source-44a71276.js";import{v as r}from"./label-2d7e2d68.js";import"./i18n-b14e6088.js";const c=a=>0===a.length?"":a[0].toUpperCase(),n=a=>{const t=a.split(/\s+/),e=t[0],s=t[t.length-1];return t.length>=2&&e&&s?`${c(e)}${c(s)}`:c(a)},l=class{constructor(t){a(this,t),this._src=void 0,this._label=void 0,this.state={_src:"",_label:""}}render(){return t(e,{key:"b45a03c214f69fa12120c1ab077cbdda68af4d03",class:"kol-avatar-wc"},t("div",{key:"11c5ec00e290a3e045ec6d355bd9afd9b65cb396","aria-label":s("kol-avatar-alt",{placeholders:{name:this.state._label}}),class:"container",role:"img"},this.state._src?t("img",{alt:"","aria-hidden":"true",class:"image",src:this.state._src}):t("span",{"aria-hidden":"true",class:"initials"},n(this.state._label.trim()))))}validateSrc(a){i(this,a)}validateLabel(a){r(this,a,{required:!0})}componentWillLoad(){this.validateSrc(this._src),this.validateLabel(this._label)}static get watchers(){return{_src:["validateSrc"],_label:["validateLabel"]}}};export{l as kol_avatar_wc};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as n,h as e,H as t}from"./index-1766e6f4.js";import{e as i}from"./component-names-4cb1c62b.js";const o="/*\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(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\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 * {\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 rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: 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 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: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip: rect(0 0 0 0);\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 border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 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}\n@layer kol-global {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\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 }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\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 cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n .badge-text-hint {\n background-color: lightgray;\n color: black;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n .container,\n .image,\n .initials {\n border-radius: 50%;\n }\n .image,\n .initials {\n width: 100%;\n height: 100%;\n }\n .container {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n width: calc(100rem / var(--kolibri-root-font-size, 16));\n height: calc(100rem / var(--kolibri-root-font-size, 16));\n }\n .initials {\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: #d3d3d3;\n font-size: calc(40rem / var(--kolibri-root-font-size, 16));\n }\n}",a=o,r=class{constructor(e){n(this,e),this._src=void 0,this._label=void 0}render(){return e(t,{key:"177cf2f61660902db5c1680e3e10fc7f3c567695",class:"kol-avatar"},e(i,{key:"9103d11ec31279584865dd3acf92a9ef0d04ca61",_src:this._src,_label:this._label}))}};r.style={default:a};export{r as kol_avatar};
4
+ import{r as n,h as e,H as t}from"./index-3bfee590.js";import{e as i}from"./component-names-4cb1c62b.js";const o="/*\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(44rem / var(--kolibri-root-font-size, 16));\n color: black;\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\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 * {\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 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 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: absolute;\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%; /* 100% needed for custom width from outside */\n margin: 0;\n padding: 0;\n border: none;\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}\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(16rem / 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 /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\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-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n .container,\n .image,\n .initials {\n border-radius: 50%;\n }\n .image,\n .initials {\n width: 100%;\n height: 100%;\n }\n .container {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n width: calc(100rem / var(--kolibri-root-font-size, 16));\n height: calc(100rem / var(--kolibri-root-font-size, 16));\n }\n .initials {\n background-color: #d3d3d3;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: calc(40rem / var(--kolibri-root-font-size, 16));\n }\n}",a=o,r=class{constructor(e){n(this,e),this._src=void 0,this._label=void 0}render(){return e(t,{key:"177cf2f61660902db5c1680e3e10fc7f3c567695",class:"kol-avatar"},e(i,{key:"9103d11ec31279584865dd3acf92a9ef0d04ca61",_src:this._src,_label:this._label}))}};r.style={default:a};export{r as kol_avatar};
@@ -1 +1 @@
1
- {"version":3,"names":["defaultStyleCss","KolAvatarDefaultStyle0","KolAvatar","render","h","Host","key","class","KolAvatarWcTag","_src","this","_label"],"sources":["src/components/avatar/style.scss?tag=kol-avatar&mode=default&encapsulation=shadow","src/components/avatar/shadow.tsx"],"sourcesContent":["@use '../@shared/mixins' as *;\n@use '../style' as *;\n@use '../host-display-block' as *;\n\n@layer kol-component {\n\t.container,\n\t.image,\n\t.initials {\n\t\tborder-radius: 50%;\n\t}\n\n\t.image,\n\t.initials {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t}\n\n\t.container {\n\t\t/* Visible with forced colors */\n\t\toutline: transparent solid to-rem(1);\n\t\twidth: to-rem(100);\n\t\theight: to-rem(100);\n\t}\n\n\t.initials {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tbackground-color: #d3d3d3;\n\t\tfont-size: to-rem(40);\n\t}\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, h, Host, Prop } from '@stencil/core';\n\nimport type { AvatarProps } from '../../schema';\nimport { KolAvatarWcTag } from '../../core/component-names';\n\n@Component({\n\ttag: 'kol-avatar',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolAvatar implements AvatarProps {\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-avatar\">\n\t\t\t\t<KolAvatarWcTag _src={this._src} _label={this._label}></KolAvatarWcTag>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Sets the image `src` attribute to the given string.\n\t */\n\t@Prop() public _src?: string;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label!: string;\n}\n"],"mappings":";;;wGAAA,MAAMA,EAAkB,kiKACxB,MAAAC,EAAeD,E,MCYFE,EAAS,M,mEACd,MAAAC,GACN,OACCC,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAM,cACXH,EAACI,EAAc,CAAAF,IAAA,2CAACG,KAAMC,KAAKD,KAAME,OAAQD,KAAKC,S","ignoreList":[]}
1
+ {"version":3,"names":["defaultStyleCss","KolAvatarDefaultStyle0","KolAvatar","render","h","Host","key","class","KolAvatarWcTag","_src","this","_label"],"sources":["src/components/avatar/style.scss?tag=kol-avatar&mode=default&encapsulation=shadow","src/components/avatar/shadow.tsx"],"sourcesContent":["@use '../@shared/mixins' as *;\n@use '../style' as *;\n@use '../host-display-block' as *;\n\n@layer kol-component {\n\t.container,\n\t.image,\n\t.initials {\n\t\tborder-radius: 50%;\n\t}\n\n\t.image,\n\t.initials {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t}\n\n\t.container {\n\t\t/* Visible with forced colors */\n\t\toutline: transparent solid to-rem(1);\n\t\twidth: to-rem(100);\n\t\theight: to-rem(100);\n\t}\n\n\t.initials {\n\t\tbackground-color: #d3d3d3;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\n\t\tfont-size: to-rem(40);\n\t}\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, h, Host, Prop } from '@stencil/core';\n\nimport type { AvatarProps } from '../../schema';\nimport { KolAvatarWcTag } from '../../core/component-names';\n\n@Component({\n\ttag: 'kol-avatar',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolAvatar implements AvatarProps {\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-avatar\">\n\t\t\t\t<KolAvatarWcTag _src={this._src} _label={this._label}></KolAvatarWcTag>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Sets the image `src` attribute to the given string.\n\t */\n\t@Prop() public _src?: string;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label!: string;\n}\n"],"mappings":";;;wGAAA,MAAMA,EAAkB,q+JACxB,MAAAC,EAAeD,E,MCYFE,EAAS,M,mEACd,MAAAC,GACN,OACCC,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAM,cACXH,EAACI,EAAc,CAAAF,IAAA,2CAACG,KAAMC,KAAKD,KAAME,OAAQD,KAAKC,S","ignoreList":[]}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as n,h as t,H as e}from"./index-1766e6f4.js";import{h as o,o as i,l as a,m as s}from"./index-4fb06bbb.js";import{f as l,c as r}from"./component-names-4cb1c62b.js";import{n as d}from"./dev.utils-3a332b59.js";import{h as c,v as h}from"./color-a464afb7.js";const p="/*\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(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\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 * {\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 rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: 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 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: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip: rect(0 0 0 0);\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 border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 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}\n@layer kol-global {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\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 }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\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 cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n .badge-text-hint {\n background-color: lightgray;\n color: black;\n }\n}\n@layer kol-component {\n .kol-tooltip-wc {\n display: contents;\n contain: layout;\n }\n .kol-tooltip-wc .tooltip-floating {\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n /* Shared between content and arrow */\n .kol-tooltip-wc .tooltip-area {\n background-color: #fff;\n color: #000;\n }\n .kol-tooltip-wc .tooltip-arrow {\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip-wc .tooltip-content {\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n :host > span {\n display: inline-flex;\n place-items: center;\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n :host > span > .kol-button-wc button {\n color: inherit;\n }\n}",u=p;o("[KolBadge] Optimierung des _color-Properties (rgba, rgb, hex usw.).");const b=class{constructor(t){n(this,t),this.bgColorStr="#000",this.colorStr="#fff",this.id=d(),this.handleColorChange=n=>{const t=c(n);this.bgColorStr=t.backgroundColor,this.colorStr=t.foregroundColor},this._color="#000",this._icons=void 0,this._label=void 0,this._smartButton=void 0,this.state={_color:{backgroundColor:"#000",foregroundColor:"#fff"}}}renderSmartButton(n){return t(r,{_ariaControls:this.id,_customClass:n._customClass,_disabled:n._disabled,_hideLabel:!0,_icons:n._icons,_id:n._id,_label:n._label,_on:n._on,_tooltipAlign:n._tooltipAlign,_variant:n._variant})}render(){const n="object"==typeof this.state._smartButton&&null!==this.state._smartButton;return t(e,{key:"e18cef57a5d00c73f9040d17f16e53a22bb21c2d",class:"kol-badge"},t("span",{key:"6375f9d2c8c8863165d6e0dce77ad89f708275b5",class:{"smart-button":"object"==typeof this.state._smartButton&&null!==this.state._smartButton},style:{backgroundColor:this.bgColorStr,color:this.colorStr}},t(l,{key:"a74d942a94c5bbeb002bbd42a5d45a9e75c704e8",id:n?this.id:void 0,_allowMarkdown:!0,_icons:this._icons,_label:this._label}),n&&this.renderSmartButton(this.state._smartButton)))}validateColor(n){h(this,n,{defaultValue:"#000",hooks:{beforePatch:this.handleColorChange}})}validateSmartButton(n){i(n,(()=>{try{n=a(n)}catch(n){}s(this,"_smartButton",n)}))}componentWillLoad(){this.validateColor(this._color),this.validateSmartButton(this._smartButton)}static get watchers(){return{_color:["validateColor"],_smartButton:["validateSmartButton"]}}};b.style={default:u};export{b as kol_badge};
4
+ import{r as n,h as t,H as e}from"./index-3bfee590.js";import{h as o,o as i,l as a,m as s}from"./index-50898179.js";import{f as l,c as r}from"./component-names-4cb1c62b.js";import{n as d}from"./dev.utils-7d7ddeeb.js";import{h as c,v as h}from"./color-0c64809c.js";const p="/*\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(44rem / var(--kolibri-root-font-size, 16));\n color: black;\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\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 * {\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 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 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: absolute;\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%; /* 100% needed for custom width from outside */\n margin: 0;\n padding: 0;\n border: none;\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}\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(16rem / 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 /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\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-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-component {\n .kol-tooltip-wc {\n display: contents;\n contain: layout;\n }\n .kol-tooltip-wc .tooltip-floating {\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);\n max-width: 90vw;\n max-height: 90vh;\n visibility: hidden;\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n }\n /* Shared between content and arrow */\n .kol-tooltip-wc .tooltip-area {\n color: #000;\n background-color: #fff;\n }\n .kol-tooltip-wc .tooltip-arrow {\n transform: rotate(45deg);\n position: absolute;\n z-index: 999;\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip-wc .tooltip-content {\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n :host > span {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n display: inline-flex;\n place-items: center;\n }\n :host > span > .kol-button-wc button {\n color: inherit;\n }\n}",u=p;o("[KolBadge] Optimierung des _color-Properties (rgba, rgb, hex usw.).");const b=class{constructor(t){n(this,t),this.bgColorStr="#000",this.colorStr="#fff",this.id=d(),this.handleColorChange=n=>{const t=c(n);this.bgColorStr=t.backgroundColor,this.colorStr=t.foregroundColor},this._color="#000",this._icons=void 0,this._label=void 0,this._smartButton=void 0,this.state={_color:{backgroundColor:"#000",foregroundColor:"#fff"}}}renderSmartButton(n){return t(r,{_ariaControls:this.id,_customClass:n._customClass,_disabled:n._disabled,_hideLabel:!0,_icons:n._icons,_id:n._id,_label:n._label,_on:n._on,_tooltipAlign:n._tooltipAlign,_variant:n._variant})}render(){const n="object"==typeof this.state._smartButton&&null!==this.state._smartButton;return t(e,{key:"e18cef57a5d00c73f9040d17f16e53a22bb21c2d",class:"kol-badge"},t("span",{key:"6375f9d2c8c8863165d6e0dce77ad89f708275b5",class:{"smart-button":"object"==typeof this.state._smartButton&&null!==this.state._smartButton},style:{backgroundColor:this.bgColorStr,color:this.colorStr}},t(l,{key:"a74d942a94c5bbeb002bbd42a5d45a9e75c704e8",id:n?this.id:void 0,_allowMarkdown:!0,_icons:this._icons,_label:this._label}),n&&this.renderSmartButton(this.state._smartButton)))}validateColor(n){h(this,n,{defaultValue:"#000",hooks:{beforePatch:this.handleColorChange}})}validateSmartButton(n){i(n,()=>{try{n=a(n)}catch(n){}s(this,"_smartButton",n)})}componentWillLoad(){this.validateColor(this._color),this.validateSmartButton(this._smartButton)}static get watchers(){return{_color:["validateColor"],_smartButton:["validateSmartButton"]}}};b.style={default:u};export{b as kol_badge};
@@ -1 +1 @@
1
- {"version":3,"names":["defaultStyleCss","KolBadgeDefaultStyle0","featureHint","KolBadge","this","bgColorStr","colorStr","id","nonce","handleColorChange","value","colorPair","backgroundColor","foregroundColor","_color","renderSmartButton","props","h","KolButtonWcTag","_ariaControls","_customClass","_disabled","_hideLabel","_icons","_id","_label","_on","_tooltipAlign","_variant","render","hasSmartButton","state","_smartButton","Host","key","class","style","color","KolSpanWcTag","undefined","_allowMarkdown","validateColor","defaultValue","hooks","beforePatch","validateSmartButton","objectObjectHandler","parseJson","e","setState","componentWillLoad"],"sources":["src/components/badge/style.scss?tag=kol-badge&mode=default&encapsulation=shadow","src/components/badge/shadow.tsx"],"sourcesContent":["@use '../@shared/mixins' as *;\n@use '../style' as *;\n@use '../tooltip/style.scss' as *;\n\n@layer kol-component {\n\t:host > span {\n\t\tdisplay: inline-flex;\n\t\tplace-items: center;\n\t\t/* Visible with forced colors */\n\t\toutline: transparent solid to-rem(1);\n\t}\n\n\t:host > span > .kol-button-wc button {\n\t\tcolor: inherit;\n\t}\n}\n","import type { BadgeAPI, BadgeStates, ButtonProps, KoliBriIconsProp, LabelPropType, PropColor, Stringified } from '../../schema';\nimport { featureHint, handleColorChange, objectObjectHandler, parseJson, setState, validateColor } from '../../schema';\nimport { Component, h, Host, Prop, State, Watch } from '@stencil/core';\nimport { KolSpanWcTag } from '../../core/component-names';\n\nimport { nonce } from '../../utils/dev.utils';\n\nimport type { JSX } from '@stencil/core';\nimport { KolButtonWcTag } from '../../core/component-names';\nfeatureHint(`[KolBadge] Optimierung des _color-Properties (rgba, rgb, hex usw.).`);\n\n@Component({\n\ttag: 'kol-badge',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolBadge implements BadgeAPI {\n\tprivate bgColorStr = '#000';\n\tprivate colorStr = '#fff';\n\tprivate readonly id = nonce();\n\n\tprivate renderSmartButton(props: ButtonProps): JSX.Element {\n\t\treturn (\n\t\t\t<KolButtonWcTag\n\t\t\t\t_ariaControls={this.id}\n\t\t\t\t_customClass={props._customClass}\n\t\t\t\t_disabled={props._disabled}\n\t\t\t\t_hideLabel={true}\n\t\t\t\t_icons={props._icons}\n\t\t\t\t_id={props._id}\n\t\t\t\t_label={props._label}\n\t\t\t\t_on={props._on}\n\t\t\t\t_tooltipAlign={props._tooltipAlign}\n\t\t\t\t_variant={props._variant}\n\t\t\t></KolButtonWcTag>\n\t\t);\n\t}\n\n\tpublic render(): JSX.Element {\n\t\tconst hasSmartButton = typeof this.state._smartButton === 'object' && this.state._smartButton !== null;\n\t\treturn (\n\t\t\t<Host class=\"kol-badge\">\n\t\t\t\t<span\n\t\t\t\t\tclass={{\n\t\t\t\t\t\t'smart-button': typeof this.state._smartButton === 'object' && this.state._smartButton !== null,\n\t\t\t\t\t}}\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tbackgroundColor: this.bgColorStr,\n\t\t\t\t\t\tcolor: this.colorStr,\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<KolSpanWcTag id={hasSmartButton ? this.id : undefined} _allowMarkdown _icons={this._icons} _label={this._label}></KolSpanWcTag>\n\t\t\t\t\t{hasSmartButton && this.renderSmartButton(this.state._smartButton as ButtonProps)}\n\t\t\t\t</span>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the backgroundColor and foregroundColor.\n\t */\n\t@Prop() public _color?: Stringified<PropColor> = '#000';\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: Stringified<KoliBriIconsProp>;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label!: LabelPropType;\n\n\t/**\n\t * Allows to add a button with an arbitrary action within the element (_hide-label only).\n\t */\n\t@Prop() public _smartButton?: Stringified<ButtonProps>;\n\n\t@State() public state: BadgeStates = {\n\t\t_color: {\n\t\t\tbackgroundColor: '#000',\n\t\t\tforegroundColor: '#fff',\n\t\t},\n\t};\n\n\tprivate handleColorChange = (value: unknown) => {\n\t\tconst colorPair = handleColorChange(value);\n\t\tthis.bgColorStr = colorPair.backgroundColor;\n\t\tthis.colorStr = colorPair.foregroundColor as string;\n\t};\n\n\t@Watch('_color')\n\tpublic validateColor(value?: Stringified<PropColor>): void {\n\t\tvalidateColor(this, value, {\n\t\t\tdefaultValue: '#000',\n\t\t\thooks: {\n\t\t\t\tbeforePatch: this.handleColorChange,\n\t\t\t},\n\t\t});\n\t}\n\n\t@Watch('_smartButton')\n\tpublic validateSmartButton(value?: ButtonProps | string): void {\n\t\tobjectObjectHandler(value, () => {\n\t\t\ttry {\n\t\t\t\tvalue = parseJson<ButtonProps>(value as string);\n\t\t\t\t// eslint-disable-next-line no-empty\n\t\t\t} catch (e) {\n\t\t\t\t// value behält den ursprünglichen Wert\n\t\t\t}\n\t\t\tsetState(this, '_smartButton', value);\n\t\t});\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateColor(this._color);\n\t\tthis.validateSmartButton(this._smartButton);\n\t}\n}\n"],"mappings":";;;uQAAA,MAAMA,EAAkB,00LACxB,MAAAC,EAAeD,ECQfE,EAAY,uE,MASCC,EAAQ,M,yBACZC,KAAAC,WAAa,OACbD,KAAAE,SAAW,OACFF,KAAAG,GAAKC,IAkEdJ,KAAAK,kBAAqBC,IAC5B,MAAMC,EAAYF,EAAkBC,GACpCN,KAAKC,WAAaM,EAAUC,gBAC5BR,KAAKE,SAAWK,EAAUE,eAAyB,E,YA3BH,O,mFAiBZ,CACpCC,OAAQ,CACPF,gBAAiB,OACjBC,gBAAiB,Q,CA5DX,iBAAAE,CAAkBC,GACzB,OACCC,EAACC,EAAc,CACdC,cAAef,KAAKG,GACpBa,aAAcJ,EAAMI,aACpBC,UAAWL,EAAMK,UACjBC,WAAY,KACZC,OAAQP,EAAMO,OACdC,IAAKR,EAAMQ,IACXC,OAAQT,EAAMS,OACdC,IAAKV,EAAMU,IACXC,cAAeX,EAAMW,cACrBC,SAAUZ,EAAMY,U,CAKZ,MAAAC,GACN,MAAMC,SAAwB1B,KAAK2B,MAAMC,eAAiB,UAAY5B,KAAK2B,MAAMC,eAAiB,KAClG,OACCf,EAACgB,EAAI,CAAAC,IAAA,2CAACC,MAAM,aACXlB,EAAA,QAAAiB,IAAA,2CACCC,MAAO,CACN,sBAAuB/B,KAAK2B,MAAMC,eAAiB,UAAY5B,KAAK2B,MAAMC,eAAiB,MAE5FI,MAAO,CACNxB,gBAAiBR,KAAKC,WACtBgC,MAAOjC,KAAKE,WAGbW,EAACqB,EAAY,CAAAJ,IAAA,2CAAC3B,GAAIuB,EAAiB1B,KAAKG,GAAKgC,UAAWC,eAAc,KAACjB,OAAQnB,KAAKmB,OAAQE,OAAQrB,KAAKqB,SACxGK,GAAkB1B,KAAKW,kBAAkBX,KAAK2B,MAAMC,e,CAwClD,aAAAS,CAAc/B,GACpB+B,EAAcrC,KAAMM,EAAO,CAC1BgC,aAAc,OACdC,MAAO,CACNC,YAAaxC,KAAKK,oB,CAMd,mBAAAoC,CAAoBnC,GAC1BoC,EAAoBpC,GAAO,KAC1B,IACCA,EAAQqC,EAAuBrC,E,CAE9B,MAAOsC,G,CAGTC,EAAS7C,KAAM,eAAgBM,EAAM,G,CAIhC,iBAAAwC,GACN9C,KAAKqC,cAAcrC,KAAKU,QACxBV,KAAKyC,oBAAoBzC,KAAK4B,a","ignoreList":[]}
1
+ {"version":3,"names":["defaultStyleCss","KolBadgeDefaultStyle0","featureHint","KolBadge","this","bgColorStr","colorStr","id","nonce","handleColorChange","value","colorPair","backgroundColor","foregroundColor","_color","renderSmartButton","props","h","KolButtonWcTag","_ariaControls","_customClass","_disabled","_hideLabel","_icons","_id","_label","_on","_tooltipAlign","_variant","render","hasSmartButton","state","_smartButton","Host","key","class","style","color","KolSpanWcTag","undefined","_allowMarkdown","validateColor","defaultValue","hooks","beforePatch","validateSmartButton","objectObjectHandler","parseJson","e","setState","componentWillLoad"],"sources":["src/components/badge/style.scss?tag=kol-badge&mode=default&encapsulation=shadow","src/components/badge/shadow.tsx"],"sourcesContent":["@use '../@shared/mixins' as *;\n@use '../style' as *;\n@use '../tooltip/style.scss' as *;\n\n@layer kol-component {\n\t:host > span {\n\t\t/* Visible with forced colors */\n\t\toutline: transparent solid to-rem(1);\n\t\tdisplay: inline-flex;\n\t\tplace-items: center;\n\t}\n\n\t:host > span > .kol-button-wc button {\n\t\tcolor: inherit;\n\t}\n}\n","import type { BadgeAPI, BadgeStates, ButtonProps, KoliBriIconsProp, LabelPropType, PropColor, Stringified } from '../../schema';\nimport { featureHint, handleColorChange, objectObjectHandler, parseJson, setState, validateColor } from '../../schema';\nimport { Component, h, Host, Prop, State, Watch } from '@stencil/core';\nimport { KolSpanWcTag } from '../../core/component-names';\n\nimport { nonce } from '../../utils/dev.utils';\n\nimport type { JSX } from '@stencil/core';\nimport { KolButtonWcTag } from '../../core/component-names';\nfeatureHint(`[KolBadge] Optimierung des _color-Properties (rgba, rgb, hex usw.).`);\n\n@Component({\n\ttag: 'kol-badge',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolBadge implements BadgeAPI {\n\tprivate bgColorStr = '#000';\n\tprivate colorStr = '#fff';\n\tprivate readonly id = nonce();\n\n\tprivate renderSmartButton(props: ButtonProps): JSX.Element {\n\t\treturn (\n\t\t\t<KolButtonWcTag\n\t\t\t\t_ariaControls={this.id}\n\t\t\t\t_customClass={props._customClass}\n\t\t\t\t_disabled={props._disabled}\n\t\t\t\t_hideLabel={true}\n\t\t\t\t_icons={props._icons}\n\t\t\t\t_id={props._id}\n\t\t\t\t_label={props._label}\n\t\t\t\t_on={props._on}\n\t\t\t\t_tooltipAlign={props._tooltipAlign}\n\t\t\t\t_variant={props._variant}\n\t\t\t></KolButtonWcTag>\n\t\t);\n\t}\n\n\tpublic render(): JSX.Element {\n\t\tconst hasSmartButton = typeof this.state._smartButton === 'object' && this.state._smartButton !== null;\n\t\treturn (\n\t\t\t<Host class=\"kol-badge\">\n\t\t\t\t<span\n\t\t\t\t\tclass={{\n\t\t\t\t\t\t'smart-button': typeof this.state._smartButton === 'object' && this.state._smartButton !== null,\n\t\t\t\t\t}}\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tbackgroundColor: this.bgColorStr,\n\t\t\t\t\t\tcolor: this.colorStr,\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<KolSpanWcTag id={hasSmartButton ? this.id : undefined} _allowMarkdown _icons={this._icons} _label={this._label}></KolSpanWcTag>\n\t\t\t\t\t{hasSmartButton && this.renderSmartButton(this.state._smartButton as ButtonProps)}\n\t\t\t\t</span>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the backgroundColor and foregroundColor.\n\t */\n\t@Prop() public _color?: Stringified<PropColor> = '#000';\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: Stringified<KoliBriIconsProp>;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label!: LabelPropType;\n\n\t/**\n\t * Allows to add a button with an arbitrary action within the element (_hide-label only).\n\t */\n\t@Prop() public _smartButton?: Stringified<ButtonProps>;\n\n\t@State() public state: BadgeStates = {\n\t\t_color: {\n\t\t\tbackgroundColor: '#000',\n\t\t\tforegroundColor: '#fff',\n\t\t},\n\t};\n\n\tprivate handleColorChange = (value: unknown) => {\n\t\tconst colorPair = handleColorChange(value);\n\t\tthis.bgColorStr = colorPair.backgroundColor;\n\t\tthis.colorStr = colorPair.foregroundColor as string;\n\t};\n\n\t@Watch('_color')\n\tpublic validateColor(value?: Stringified<PropColor>): void {\n\t\tvalidateColor(this, value, {\n\t\t\tdefaultValue: '#000',\n\t\t\thooks: {\n\t\t\t\tbeforePatch: this.handleColorChange,\n\t\t\t},\n\t\t});\n\t}\n\n\t@Watch('_smartButton')\n\tpublic validateSmartButton(value?: ButtonProps | string): void {\n\t\tobjectObjectHandler(value, () => {\n\t\t\ttry {\n\t\t\t\tvalue = parseJson<ButtonProps>(value as string);\n\t\t\t\t// eslint-disable-next-line no-empty\n\t\t\t} catch (e) {\n\t\t\t\t// value behält den ursprünglichen Wert\n\t\t\t}\n\t\t\tsetState(this, '_smartButton', value);\n\t\t});\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateColor(this._color);\n\t\tthis.validateSmartButton(this._smartButton);\n\t}\n}\n"],"mappings":";;;uQAAA,MAAMA,EAAkB,6wLACxB,MAAAC,EAAeD,ECQfE,EAAY,uE,MASCC,EAAQ,M,yBACZC,KAAAC,WAAa,OACbD,KAAAE,SAAW,OACFF,KAAAG,GAAKC,IAkEdJ,KAAAK,kBAAqBC,IAC5B,MAAMC,EAAYF,EAAkBC,GACpCN,KAAKC,WAAaM,EAAUC,gBAC5BR,KAAKE,SAAWK,EAAUE,eAAyB,E,YA3BH,O,mFAiBZ,CACpCC,OAAQ,CACPF,gBAAiB,OACjBC,gBAAiB,Q,CA5DX,iBAAAE,CAAkBC,GACzB,OACCC,EAACC,EAAc,CACdC,cAAef,KAAKG,GACpBa,aAAcJ,EAAMI,aACpBC,UAAWL,EAAMK,UACjBC,WAAY,KACZC,OAAQP,EAAMO,OACdC,IAAKR,EAAMQ,IACXC,OAAQT,EAAMS,OACdC,IAAKV,EAAMU,IACXC,cAAeX,EAAMW,cACrBC,SAAUZ,EAAMY,U,CAKZ,MAAAC,GACN,MAAMC,SAAwB1B,KAAK2B,MAAMC,eAAiB,UAAY5B,KAAK2B,MAAMC,eAAiB,KAClG,OACCf,EAACgB,EAAI,CAAAC,IAAA,2CAACC,MAAM,aACXlB,EAAA,QAAAiB,IAAA,2CACCC,MAAO,CACN,sBAAuB/B,KAAK2B,MAAMC,eAAiB,UAAY5B,KAAK2B,MAAMC,eAAiB,MAE5FI,MAAO,CACNxB,gBAAiBR,KAAKC,WACtBgC,MAAOjC,KAAKE,WAGbW,EAACqB,EAAY,CAAAJ,IAAA,2CAAC3B,GAAIuB,EAAiB1B,KAAKG,GAAKgC,UAAWC,eAAc,KAACjB,OAAQnB,KAAKmB,OAAQE,OAAQrB,KAAKqB,SACxGK,GAAkB1B,KAAKW,kBAAkBX,KAAK2B,MAAMC,e,CAwClD,aAAAS,CAAc/B,GACpB+B,EAAcrC,KAAMM,EAAO,CAC1BgC,aAAc,OACdC,MAAO,CACNC,YAAaxC,KAAKK,oB,CAMd,mBAAAoC,CAAoBnC,GAC1BoC,EAAoBpC,GAAO,KAC1B,IACCA,EAAQqC,EAAuBrC,E,CAE9B,MAAOsC,G,CAGTC,EAAS7C,KAAM,eAAgBM,EAAM,G,CAIhC,iBAAAwC,GACN9C,KAAKqC,cAAcrC,KAAKU,QACxBV,KAAKyC,oBAAoBzC,KAAK4B,a","ignoreList":[]}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as n,h as e,F as t,H as i}from"./index-1766e6f4.js";import{t as o}from"./index-4fb06bbb.js";import{r as a,a as s}from"./unique-nav-labels-917eec2b.js";import{w as l}from"./validation-db4e7b56.js";import{g as r,h as d}from"./component-names-4cb1c62b.js";import{v as c}from"./label-51d66c9d.js";const h="/*\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(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\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 * {\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 rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: 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 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: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip: rect(0 0 0 0);\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 border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 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}\n@layer kol-global {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\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 }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\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 cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n .badge-text-hint {\n background-color: lightgray;\n color: black;\n }\n}\n@layer kol-component {\n li,\n ul {\n margin: 0;\n padding: 0;\n list-style: none;\n display: flex;\n gap: 0.5em;\n flex-wrap: wrap;\n place-items: center;\n }\n .kol-icon::part(separator) {\n font-weight: 900;\n font-size: 0.7em;\n }\n .kol-icon::part(separator):before {\n content: \"\\f054\";\n font-family: \"Font Awesome 6 Free\";\n }\n}",b=h,f=class{constructor(i){n(this,i),this.renderLink=(n,i)=>{const a=this.state._links.length-1;return e("li",{key:i},0!==i&&e(r,{_label:"",_icons:"codicon codicon-chevron-right"}),i===a?e("span",null,n._hideLabel?e(r,{_label:n._label,_icons:"string"==typeof n._icons?n._icons:"codicon codicon-symbol-event"}):e(t,null,n._label)):e(d,Object.assign({},n)))},this._label=void 0,this._links=void 0,this.state={_label:"",_links:[]}}render(){return e(i,{key:"329c1062de3097aac33fd6ddbafd65f4df37a375",class:"kol-breadcrumb"},e("nav",{key:"dfd7dc319fdac349fd221ce266364c8e3bc6d7ab","aria-label":this.state._label},e("ul",{key:"4503b6418e33303a4763de3d1f97a5279d4fae37"},0===this.state._links.length&&e("li",{key:"6f0cddb0ad668f37c302b85f783a4a427608cf71"},e(r,{key:"9672fa3ed1ad96eef3e98b53d89840fbb121de40",_label:"",_icons:"codicon codicon-home"}),"…"),this.state._links.map(this.renderLink))))}validateLabel(n,e,t=!1){t||a(this.state._label),c(this,n,{required:!0}),o(n),s(this.state._label)}validateLinks(n){l("KolBreadcrumb",this,n)}componentWillLoad(){this.validateLabel(this._label,void 0,!0),this.validateLinks(this._links)}disconnectedCallback(){a(this.state._label)}static get watchers(){return{_label:["validateLabel"],_links:["validateLinks"]}}};f.style={default:b};export{f as kol_breadcrumb};
4
+ import{r as n,h as e,F as t,H as i}from"./index-3bfee590.js";import{t as a}from"./index-50898179.js";import{r as o,a as s}from"./unique-nav-labels-ff53a6d0.js";import{w as l}from"./validation-0a3825a7.js";import{g as r,h as d}from"./component-names-4cb1c62b.js";import{v as c}from"./label-2d7e2d68.js";const h="/*\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(44rem / var(--kolibri-root-font-size, 16));\n color: black;\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\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 * {\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 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 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: absolute;\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%; /* 100% needed for custom width from outside */\n margin: 0;\n padding: 0;\n border: none;\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}\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(16rem / 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 /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\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-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-component {\n li,\n ul {\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-icon::part(separator) {\n font-size: 0.7em;\n font-weight: 900;\n }\n .kol-icon::part(separator):before {\n content: \"\\f054\";\n font-family: \"Font Awesome 6 Free\";\n }\n}",b=h,f=class{constructor(i){n(this,i),this.renderLink=(n,i)=>{const a=this.state._links.length-1;return e("li",{key:i},0!==i&&e(r,{_label:"",_icons:"codicon codicon-chevron-right"}),i===a?e("span",null,n._hideLabel?e(r,{_label:n._label,_icons:"string"==typeof n._icons?n._icons:"codicon codicon-symbol-event"}):e(t,null,n._label)):e(d,Object.assign({},n)))},this._label=void 0,this._links=void 0,this.state={_label:"",_links:[]}}render(){return e(i,{key:"329c1062de3097aac33fd6ddbafd65f4df37a375",class:"kol-breadcrumb"},e("nav",{key:"dfd7dc319fdac349fd221ce266364c8e3bc6d7ab","aria-label":this.state._label},e("ul",{key:"4503b6418e33303a4763de3d1f97a5279d4fae37"},0===this.state._links.length&&e("li",{key:"6f0cddb0ad668f37c302b85f783a4a427608cf71"},e(r,{key:"9672fa3ed1ad96eef3e98b53d89840fbb121de40",_label:"",_icons:"codicon codicon-home"}),"…"),this.state._links.map(this.renderLink))))}validateLabel(n,e,t=!1){t||o(this.state._label),c(this,n,{required:!0}),a(n),s(this.state._label)}validateLinks(n){l("KolBreadcrumb",this,n)}componentWillLoad(){this.validateLabel(this._label,void 0,!0),this.validateLinks(this._links)}disconnectedCallback(){o(this.state._label)}static get watchers(){return{_label:["validateLabel"],_links:["validateLinks"]}}};f.style={default:b};export{f as kol_breadcrumb};
@@ -1 +1 @@
1
- {"version":3,"names":["defaultStyleCss","KolBreadcrumbDefaultStyle0","KolBreadcrumb","this","renderLink","link","index","lastIndex","state","_links","length","h","key","KolIconTag","_label","_icons","_hideLabel","Fragment","KolLinkTag","Object","assign","render","Host","class","map","validateLabel","value","_oldValue","initial","removeNavLabel","required","a11yHintLabelingLandmarks","addNavLabel","validateLinks","watchNavLinks","componentWillLoad","undefined","disconnectedCallback"],"sources":["src/components/breadcrumb/style.scss?tag=kol-breadcrumb&mode=default&encapsulation=shadow","src/components/breadcrumb/shadow.tsx"],"sourcesContent":["@use '../style' as *;\n\n@layer kol-component {\n\tli,\n\tul {\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\tlist-style: none;\n\t\tdisplay: flex;\n\t\tgap: 0.5em;\n\t\tflex-wrap: wrap;\n\t\tplace-items: center;\n\t}\n\n\t.kol-icon::part(separator) {\n\t\tfont-weight: 900;\n\t\tfont-size: 0.7em;\n\t}\n\n\t.kol-icon::part(separator):before {\n\t\tcontent: '\\f054';\n\t\tfont-family: 'Font Awesome 6 Free';\n\t}\n}\n","import type { BreadcrumbAPI, BreadcrumbLinkProps, BreadcrumbStates, LabelPropType, LinkProps, Stringified } from '../../schema';\nimport { a11yHintLabelingLandmarks, validateLabel } from '../../schema';\nimport { Component, Fragment, h, Host, Prop, State, Watch } from '@stencil/core';\n\nimport { addNavLabel, removeNavLabel } from '../../utils/unique-nav-labels';\nimport { watchNavLinks } from '../nav/validation';\n\nimport type { JSX } from '@stencil/core';\nimport { KolIconTag, KolLinkTag } from '../../core/component-names';\n\n@Component({\n\ttag: 'kol-breadcrumb',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolBreadcrumb implements BreadcrumbAPI {\n\tprivate readonly renderLink = (link: BreadcrumbLinkProps, index: number): JSX.Element => {\n\t\tconst lastIndex = this.state._links.length - 1;\n\t\treturn (\n\t\t\t<li key={index}>\n\t\t\t\t{index !== 0 && <KolIconTag _label=\"\" _icons=\"codicon codicon-chevron-right\" />}\n\t\t\t\t{index === lastIndex ? (\n\t\t\t\t\t<span>\n\t\t\t\t\t\t{link._hideLabel ? (\n\t\t\t\t\t\t\t<KolIconTag _label={link._label} _icons={typeof link._icons === 'string' ? link._icons : 'codicon codicon-symbol-event'} />\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<>{link._label}</>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</span>\n\t\t\t\t) : (\n\t\t\t\t\t<KolLinkTag {...link}></KolLinkTag>\n\t\t\t\t)}\n\t\t\t</li>\n\t\t);\n\t};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-breadcrumb\">\n\t\t\t\t<nav aria-label={this.state._label}>\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t{this.state._links.length === 0 && (\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<KolIconTag _label=\"\" _icons=\"codicon codicon-home\" />…\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{this.state._links.map(this.renderLink)}\n\t\t\t\t\t</ul>\n\t\t\t\t</nav>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label!: LabelPropType;\n\n\t/**\n\t * Defines the list of links combined with their labels to render.\n\t */\n\t@Prop() public _links!: Stringified<BreadcrumbLinkProps[]>;\n\n\t@State() public state: BreadcrumbStates = {\n\t\t_label: '', // ⚠ required\n\t\t_links: [],\n\t};\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelPropType, _oldValue?: LabelPropType, initial = false): void {\n\t\tif (!initial) {\n\t\t\tremoveNavLabel(this.state._label); // remove the current\n\t\t}\n\t\tvalidateLabel(this, value, {\n\t\t\trequired: true,\n\t\t});\n\t\ta11yHintLabelingLandmarks(value);\n\t\taddNavLabel(this.state._label); // add the state instead of prop, because the prop could be invalid and not set as new label\n\t}\n\n\t@Watch('_links')\n\tpublic validateLinks(value?: Stringified<LinkProps[]>): void {\n\t\twatchNavLinks('KolBreadcrumb', this, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateLabel(this._label, undefined, true);\n\t\tthis.validateLinks(this._links);\n\t}\n\n\tpublic disconnectedCallback(): void {\n\t\tremoveNavLabel(this.state._label);\n\t}\n}\n"],"mappings":";;;8SAAA,MAAMA,EAAkB,kvJACxB,MAAAC,EAAeD,E,MCgBFE,EAAa,M,yBACRC,KAAAC,WAAa,CAACC,EAA2BC,KACzD,MAAMC,EAAYJ,KAAKK,MAAMC,OAAOC,OAAS,EAC7C,OACCC,EAAA,MAAIC,IAAKN,GACPA,IAAU,GAAKK,EAACE,EAAU,CAACC,OAAO,GAAGC,OAAO,kCAC5CT,IAAUC,EACVI,EAAA,YACEN,EAAKW,WACLL,EAACE,EAAU,CAACC,OAAQT,EAAKS,OAAQC,cAAeV,EAAKU,SAAW,SAAWV,EAAKU,OAAS,iCAEzFJ,EAAAM,EAAA,KAAGZ,EAAKS,SAIVH,EAACO,EAAUC,OAAAC,OAAA,GAAKf,IAEb,E,uDA+BmC,CACzCS,OAAQ,GACRL,OAAQ,G,CA7BF,MAAAY,GACN,OACCV,EAACW,EAAI,CAAAV,IAAA,2CAACW,MAAM,kBACXZ,EAAA,OAAAC,IAAA,wDAAiBT,KAAKK,MAAMM,QAC3BH,EAAA,MAAAC,IAAA,4CACET,KAAKK,MAAMC,OAAOC,SAAW,GAC7BC,EAAA,MAAAC,IAAA,4CACCD,EAACE,EAAU,CAAAD,IAAA,2CAACE,OAAO,GAAGC,OAAO,yBAAyB,KAGvDZ,KAAKK,MAAMC,OAAOe,IAAIrB,KAAKC,c,CAuB1B,aAAAqB,CAAcC,EAAuBC,EAA2BC,EAAU,OAChF,IAAKA,EAAS,CACbC,EAAe1B,KAAKK,MAAMM,O,CAE3BW,EAActB,KAAMuB,EAAO,CAC1BI,SAAU,OAEXC,EAA0BL,GAC1BM,EAAY7B,KAAKK,MAAMM,O,CAIjB,aAAAmB,CAAcP,GACpBQ,EAAc,gBAAiB/B,KAAMuB,E,CAG/B,iBAAAS,GACNhC,KAAKsB,cAActB,KAAKW,OAAQsB,UAAW,MAC3CjC,KAAK8B,cAAc9B,KAAKM,O,CAGlB,oBAAA4B,GACNR,EAAe1B,KAAKK,MAAMM,O","ignoreList":[]}
1
+ {"version":3,"names":["defaultStyleCss","KolBreadcrumbDefaultStyle0","KolBreadcrumb","this","renderLink","link","index","lastIndex","state","_links","length","h","key","KolIconTag","_label","_icons","_hideLabel","Fragment","KolLinkTag","Object","assign","render","Host","class","map","validateLabel","value","_oldValue","initial","removeNavLabel","required","a11yHintLabelingLandmarks","addNavLabel","validateLinks","watchNavLinks","componentWillLoad","undefined","disconnectedCallback"],"sources":["src/components/breadcrumb/style.scss?tag=kol-breadcrumb&mode=default&encapsulation=shadow","src/components/breadcrumb/shadow.tsx"],"sourcesContent":["@use '../style' as *;\n\n@layer kol-component {\n\tli,\n\tul {\n\t\tdisplay: flex;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\tgap: 0.5em;\n\t\tflex-wrap: wrap;\n\t\tplace-items: center;\n\t\tlist-style: none;\n\t}\n\n\t.kol-icon::part(separator) {\n\t\tfont-size: 0.7em;\n\t\tfont-weight: 900;\n\t}\n\n\t.kol-icon::part(separator):before {\n\t\tcontent: '\\f054';\n\t\tfont-family: 'Font Awesome 6 Free';\n\t}\n}\n","import type { BreadcrumbAPI, BreadcrumbLinkProps, BreadcrumbStates, LabelPropType, LinkProps, Stringified } from '../../schema';\nimport { a11yHintLabelingLandmarks, validateLabel } from '../../schema';\nimport { Component, Fragment, h, Host, Prop, State, Watch } from '@stencil/core';\n\nimport { addNavLabel, removeNavLabel } from '../../utils/unique-nav-labels';\nimport { watchNavLinks } from '../nav/validation';\n\nimport type { JSX } from '@stencil/core';\nimport { KolIconTag, KolLinkTag } from '../../core/component-names';\n\n@Component({\n\ttag: 'kol-breadcrumb',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolBreadcrumb implements BreadcrumbAPI {\n\tprivate readonly renderLink = (link: BreadcrumbLinkProps, index: number): JSX.Element => {\n\t\tconst lastIndex = this.state._links.length - 1;\n\t\treturn (\n\t\t\t<li key={index}>\n\t\t\t\t{index !== 0 && <KolIconTag _label=\"\" _icons=\"codicon codicon-chevron-right\" />}\n\t\t\t\t{index === lastIndex ? (\n\t\t\t\t\t<span>\n\t\t\t\t\t\t{link._hideLabel ? (\n\t\t\t\t\t\t\t<KolIconTag _label={link._label} _icons={typeof link._icons === 'string' ? link._icons : 'codicon codicon-symbol-event'} />\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<>{link._label}</>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</span>\n\t\t\t\t) : (\n\t\t\t\t\t<KolLinkTag {...link}></KolLinkTag>\n\t\t\t\t)}\n\t\t\t</li>\n\t\t);\n\t};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-breadcrumb\">\n\t\t\t\t<nav aria-label={this.state._label}>\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t{this.state._links.length === 0 && (\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<KolIconTag _label=\"\" _icons=\"codicon codicon-home\" />…\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{this.state._links.map(this.renderLink)}\n\t\t\t\t\t</ul>\n\t\t\t\t</nav>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label!: LabelPropType;\n\n\t/**\n\t * Defines the list of links combined with their labels to render.\n\t */\n\t@Prop() public _links!: Stringified<BreadcrumbLinkProps[]>;\n\n\t@State() public state: BreadcrumbStates = {\n\t\t_label: '', // ⚠ required\n\t\t_links: [],\n\t};\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelPropType, _oldValue?: LabelPropType, initial = false): void {\n\t\tif (!initial) {\n\t\t\tremoveNavLabel(this.state._label); // remove the current\n\t\t}\n\t\tvalidateLabel(this, value, {\n\t\t\trequired: true,\n\t\t});\n\t\ta11yHintLabelingLandmarks(value);\n\t\taddNavLabel(this.state._label); // add the state instead of prop, because the prop could be invalid and not set as new label\n\t}\n\n\t@Watch('_links')\n\tpublic validateLinks(value?: Stringified<LinkProps[]>): void {\n\t\twatchNavLinks('KolBreadcrumb', this, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateLabel(this._label, undefined, true);\n\t\tthis.validateLinks(this._links);\n\t}\n\n\tpublic disconnectedCallback(): void {\n\t\tremoveNavLabel(this.state._label);\n\t}\n}\n"],"mappings":";;;8SAAA,MAAMA,EAAkB,qrJACxB,MAAAC,EAAeD,E,MCgBFE,EAAa,M,yBACRC,KAAAC,WAAa,CAACC,EAA2BC,KACzD,MAAMC,EAAYJ,KAAKK,MAAMC,OAAOC,OAAS,EAC7C,OACCC,EAAA,MAAIC,IAAKN,GACPA,IAAU,GAAKK,EAACE,EAAU,CAACC,OAAO,GAAGC,OAAO,kCAC5CT,IAAUC,EACVI,EAAA,YACEN,EAAKW,WACLL,EAACE,EAAU,CAACC,OAAQT,EAAKS,OAAQC,cAAeV,EAAKU,SAAW,SAAWV,EAAKU,OAAS,iCAEzFJ,EAAAM,EAAA,KAAGZ,EAAKS,SAIVH,EAACO,EAAUC,OAAAC,OAAA,GAAKf,IAEb,E,uDA+BmC,CACzCS,OAAQ,GACRL,OAAQ,G,CA7BF,MAAAY,GACN,OACCV,EAACW,EAAI,CAAAV,IAAA,2CAACW,MAAM,kBACXZ,EAAA,OAAAC,IAAA,wDAAiBT,KAAKK,MAAMM,QAC3BH,EAAA,MAAAC,IAAA,4CACET,KAAKK,MAAMC,OAAOC,SAAW,GAC7BC,EAAA,MAAAC,IAAA,4CACCD,EAACE,EAAU,CAAAD,IAAA,2CAACE,OAAO,GAAGC,OAAO,yBAAyB,KAGvDZ,KAAKK,MAAMC,OAAOe,IAAIrB,KAAKC,c,CAuB1B,aAAAqB,CAAcC,EAAuBC,EAA2BC,EAAU,OAChF,IAAKA,EAAS,CACbC,EAAe1B,KAAKK,MAAMM,O,CAE3BW,EAActB,KAAMuB,EAAO,CAC1BI,SAAU,OAEXC,EAA0BL,GAC1BM,EAAY7B,KAAKK,MAAMM,O,CAIjB,aAAAmB,CAAcP,GACpBQ,EAAc,gBAAiB/B,KAAMuB,E,CAG/B,iBAAAS,GACNhC,KAAKsB,cAActB,KAAKW,OAAQsB,UAAW,MAC3CjC,KAAK8B,cAAc9B,KAAKM,O,CAGlB,oBAAA4B,GACNR,EAAe1B,KAAKK,MAAMM,O","ignoreList":[]}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as e,h as o,H as s}from"./index-1766e6f4.js";const t=class{constructor(s){e(this,s),this.state={}}render(){return o(s,{key:"c6f45fc1a9b73541e97f8bd14481c053df9d22b8",class:"kol-button-group-wc"},o("slot",{key:"e6e47348a642909c61fe042ab15e9cb8eb29adee"}))}};export{t as kol_button_group_wc};
4
+ import{r as e,h as o,H as s}from"./index-3bfee590.js";const t=class{constructor(s){e(this,s),this.state={}}render(){return o(s,{key:"c6f45fc1a9b73541e97f8bd14481c053df9d22b8",class:"kol-button-group-wc"},o("slot",{key:"e6e47348a642909c61fe042ab15e9cb8eb29adee"}))}};export{t as kol_button_group_wc};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as n,h as e,H as t}from"./index-1766e6f4.js";import{i}from"./component-names-4cb1c62b.js";const o="/*\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(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\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 * {\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 rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: 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 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: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip: rect(0 0 0 0);\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 border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 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}\n@layer kol-global {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\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 }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\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 cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n .badge-text-hint {\n background-color: lightgray;\n color: black;\n }\n}\n@layer kol-component {\n :host > .kol-button-group-wc {\n display: flex;\n flex-wrap: wrap;\n }\n}",a=o,s=class{constructor(e){n(this,e)}render(){return e(t,{key:"5d9e4a2275cb34811dabead3a0fc42feaded6fad",class:"kol-button-group"},e(i,{key:"b87c020718ba902dc4c4ef4aa9dc0ca3eff65021"},e("slot",{key:"e1d613b3027f4fcbe054d5f751c73eddd68cfcdf"})))}};s.style={default:a};export{s as kol_button_group};
4
+ import{r as n,h as e,H as t}from"./index-3bfee590.js";import{i}from"./component-names-4cb1c62b.js";const o="/*\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(44rem / var(--kolibri-root-font-size, 16));\n color: black;\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\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 * {\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 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 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: absolute;\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%; /* 100% needed for custom width from outside */\n margin: 0;\n padding: 0;\n border: none;\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}\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(16rem / 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 /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\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-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-component {\n :host > .kol-button-group-wc {\n display: flex;\n flex-wrap: wrap;\n }\n}",a=o,s=class{constructor(e){n(this,e)}render(){return e(t,{key:"5d9e4a2275cb34811dabead3a0fc42feaded6fad",class:"kol-button-group"},e(i,{key:"b87c020718ba902dc4c4ef4aa9dc0ca3eff65021"},e("slot",{key:"e1d613b3027f4fcbe054d5f751c73eddd68cfcdf"})))}};s.style={default:a};export{s as kol_button_group};
@@ -1 +1 @@
1
- {"version":3,"names":["defaultStyleCss","KolButtonGroupDefaultStyle0","KolButtonGroup","render","h","Host","key","class","KolButtonGroupWcTag"],"sources":["src/components/button-group/style.scss?tag=kol-button-group&mode=default&encapsulation=shadow","src/components/button-group/shadow.tsx"],"sourcesContent":["@use '../style' as *;\n\n@layer kol-component {\n\t:host > .kol-button-group-wc {\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\t}\n}\n","import type { ButtonGroupProps } from '../../schema';\nimport type { JSX } from '@stencil/core';\nimport { Component, h, Host } from '@stencil/core';\nimport { KolButtonGroupWcTag } from '../../core/component-names';\n\n@Component({\n\ttag: 'kol-button-group',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolButtonGroup implements ButtonGroupProps {\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-button-group\">\n\t\t\t\t<KolButtonGroupWcTag>\n\t\t\t\t\t<slot />\n\t\t\t\t</KolButtonGroupWcTag>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"mappings":";;;mGAAA,MAAMA,EAAkB,89IACxB,MAAAC,EAAeD,E,MCWFE,EAAc,M,yBACnB,MAAAC,GACN,OACCC,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAM,oBACXH,EAACI,EAAmB,CAAAF,IAAA,4CACnBF,EAAA,QAAAE,IAAA,8C","ignoreList":[]}
1
+ {"version":3,"names":["defaultStyleCss","KolButtonGroupDefaultStyle0","KolButtonGroup","render","h","Host","key","class","KolButtonGroupWcTag"],"sources":["src/components/button-group/style.scss?tag=kol-button-group&mode=default&encapsulation=shadow","src/components/button-group/shadow.tsx"],"sourcesContent":["@use '../style' as *;\n\n@layer kol-component {\n\t:host > .kol-button-group-wc {\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\t}\n}\n","import type { ButtonGroupProps } from '../../schema';\nimport type { JSX } from '@stencil/core';\nimport { Component, h, Host } from '@stencil/core';\nimport { KolButtonGroupWcTag } from '../../core/component-names';\n\n@Component({\n\ttag: 'kol-button-group',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolButtonGroup implements ButtonGroupProps {\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-button-group\">\n\t\t\t\t<KolButtonGroupWcTag>\n\t\t\t\t\t<slot />\n\t\t\t\t</KolButtonGroupWcTag>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"mappings":";;;mGAAA,MAAMA,EAAkB,i6IACxB,MAAAC,EAAeD,E,MCWFE,EAAc,M,yBACnB,MAAAC,GACN,OACCC,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAM,oBACXH,EAACI,EAAmB,CAAAF,IAAA,4CACnBF,EAAA,QAAAE,IAAA,8C","ignoreList":[]}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as n,h as e,H as t}from"./index-1766e6f4.js";import{c as i}from"./component-names-4cb1c62b.js";const o="/*\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(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\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 * {\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 rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: 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 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: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip: rect(0 0 0 0);\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 border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 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}\n@layer kol-global {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\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 }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\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 cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n .badge-text-hint {\n background-color: lightgray;\n color: black;\n }\n}\n@layer kol-component {\n .kol-tooltip-wc {\n display: contents;\n contain: layout;\n }\n .kol-tooltip-wc .tooltip-floating {\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n /* Shared between content and arrow */\n .kol-tooltip-wc .tooltip-area {\n background-color: #fff;\n color: #000;\n }\n .kol-tooltip-wc .tooltip-arrow {\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip-wc .tooltip-content {\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\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 :is(a, button) {\n align-items: baseline;\n display: inline-flex;\n place-items: center;\n text-align: left;\n text-decoration-line: none;\n }\n :is(a, button) .kol-span-wc .span-label {\n text-decoration-line: underline;\n }\n a:is(:focus, :hover):not([aria-disabled]) .kol-span-wc .span-label,\n button:is(:focus, :hover):not([disabled]) .kol-span-wc .span-label {\n text-decoration-thickness: 0.2em;\n }\n .skip {\n left: calc(-99999rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n z-index: 9999999;\n line-height: 1;\n }\n .skip:focus {\n background-color: #fff;\n left: unset;\n padding: 1em;\n position: unset;\n }\n .kol-icon.external-link-icon {\n display: inline-flex;\n margin-left: calc(8rem / var(--kolibri-root-font-size, 16));\n }\n}",a=o,s=class{constructor(e){n(this,e),this.catchRef=n=>{this.buttonWcRef=n},this._accessKey=void 0,this._ariaControls=void 0,this._ariaDescription=void 0,this._ariaExpanded=void 0,this._ariaSelected=void 0,this._disabled=!1,this._hideLabel=!1,this._icons=void 0,this._id=void 0,this._label=void 0,this._name=void 0,this._on=void 0,this._role=void 0,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._type="button",this._value=void 0}async getValue(){return this._value}async focus(){await this.kolFocus()}async kolFocus(){var n;await(null===(n=this.buttonWcRef)||void 0===n?void 0:n.kolFocus())}render(){return e(t,{key:"74a1c493bcd94ecbdcf72abeca56d9cbbd6aaf93",class:"kol-button-link"},e(i,{key:"ff6fcef159e59705877a277c40937bf8f5784987",ref:this.catchRef,_accessKey:this._accessKey,_ariaControls:this._ariaControls,_ariaDescription:this._ariaDescription,_ariaExpanded:this._ariaExpanded,_ariaSelected:this._ariaSelected,_disabled:this._disabled,_icons:this._icons,_hideLabel:this._hideLabel,_id:this._id,_label:this._label,_name:this._name,_on:this._on,_role:"link",_shortKey:this._shortKey,_syncValueBySelector:this._syncValueBySelector,_tabIndex:this._tabIndex,_tooltipAlign:this._tooltipAlign,_type:this._type,_value:this._value},e("slot",{key:"6960e83e90aa20785140c453576200e26d152d56",name:"expert",slot:"expert"})))}static get delegatesFocus(){return!0}};s.style={default:a};export{s as kol_button_link};
4
+ import{r as n,h as e,H as t}from"./index-3bfee590.js";import{c as i}from"./component-names-4cb1c62b.js";const o="/*\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(44rem / var(--kolibri-root-font-size, 16));\n color: black;\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\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 * {\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 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 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: absolute;\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%; /* 100% needed for custom width from outside */\n margin: 0;\n padding: 0;\n border: none;\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}\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(16rem / 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 /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\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-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-component {\n .kol-tooltip-wc {\n display: contents;\n contain: layout;\n }\n .kol-tooltip-wc .tooltip-floating {\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);\n max-width: 90vw;\n max-height: 90vh;\n visibility: hidden;\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n }\n /* Shared between content and arrow */\n .kol-tooltip-wc .tooltip-area {\n color: #000;\n background-color: #fff;\n }\n .kol-tooltip-wc .tooltip-arrow {\n transform: rotate(45deg);\n position: absolute;\n z-index: 999;\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip-wc .tooltip-content {\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\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 :is(a, button) {\n display: inline-flex;\n align-items: baseline;\n place-items: center;\n text-align: left;\n text-decoration-line: none;\n }\n :is(a, button) .kol-span-wc .span-label {\n text-decoration-line: underline;\n }\n a:is(:focus, :hover):not([aria-disabled]) .kol-span-wc .span-label,\n button:is(:focus, :hover):not([disabled]) .kol-span-wc .span-label {\n text-decoration-thickness: 0.2em;\n }\n .skip {\n position: absolute;\n left: calc(-99999rem / var(--kolibri-root-font-size, 16));\n z-index: 9999999;\n line-height: 1;\n }\n .skip:focus {\n background-color: #fff;\n position: unset;\n left: unset;\n padding: 1em;\n }\n .kol-icon.external-link-icon {\n display: inline-flex;\n margin-left: calc(8rem / var(--kolibri-root-font-size, 16));\n }\n}\n@layer kol-component {\n button {\n min-height: unset;\n }\n}",a=o,s=class{constructor(e){n(this,e),this.catchRef=n=>{this.buttonWcRef=n},this._accessKey=void 0,this._ariaControls=void 0,this._ariaDescription=void 0,this._ariaExpanded=void 0,this._ariaSelected=void 0,this._disabled=!1,this._hideLabel=!1,this._icons=void 0,this._id=void 0,this._label=void 0,this._name=void 0,this._on=void 0,this._role=void 0,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._type="button",this._value=void 0}async getValue(){return this._value}async focus(){await this.kolFocus()}async kolFocus(){var n;await(null===(n=this.buttonWcRef)||void 0===n?void 0:n.kolFocus())}render(){return e(t,{key:"74a1c493bcd94ecbdcf72abeca56d9cbbd6aaf93",class:"kol-button-link"},e(i,{key:"9bcabede025937492ce8082a3ceb14184352d5b0",ref:this.catchRef,_accessKey:this._accessKey,_ariaControls:this._ariaControls,_ariaDescription:this._ariaDescription,_ariaExpanded:this._ariaExpanded,_ariaSelected:this._ariaSelected,_disabled:this._disabled,_icons:this._icons,_hideLabel:this._hideLabel,_id:this._id,_label:this._label,_name:this._name,_on:this._on,_shortKey:this._shortKey,_syncValueBySelector:this._syncValueBySelector,_tabIndex:this._tabIndex,_tooltipAlign:this._tooltipAlign,_type:this._type,_value:this._value},e("slot",{key:"091e5f56f9184bbee891e6e12430d3aafe3690de",name:"expert",slot:"expert"})))}static get delegatesFocus(){return!0}};s.style={default:a};export{s as kol_button_link};
@@ -1 +1 @@
1
- {"version":3,"names":["defaultStyleCss","KolButtonLinkDefaultStyle0","KolButtonLink","this","catchRef","ref","buttonWcRef","getValue","_value","focus","kolFocus","_a","render","h","Host","key","class","KolButtonWcTag","_accessKey","_ariaControls","_ariaDescription","_ariaExpanded","_ariaSelected","_disabled","_icons","_hideLabel","_id","_label","_name","_on","_role","_shortKey","_syncValueBySelector","_tabIndex","_tooltipAlign","_type","name","slot"],"sources":["src/components/button-link/style.scss?tag=kol-button-link&mode=default&encapsulation=shadow","src/components/button-link/shadow.tsx"],"sourcesContent":["@use '../style' as *;\n@use '../link' as *;\n","import type {\n\tAccessKeyPropType,\n\tAlternativeButtonLinkRolePropType,\n\tAriaDescriptionPropType,\n\tButtonCallbacksPropType,\n\tButtonLinkProps,\n\tButtonTypePropType,\n\tFocusableElement,\n\tIconsPropType,\n\tIdPropType,\n\tLabelWithExpertSlotPropType,\n\tNamePropType,\n\tShortKeyPropType,\n\tStencilUnknown,\n\tStringified,\n\tSyncValueBySelectorPropType,\n\tTooltipAlignPropType,\n} from '../../schema';\nimport type { JSX } from '@stencil/core';\nimport { Component, h, Host, Method, Prop } from '@stencil/core';\nimport { KolButtonWcTag } from '../../core/component-names';\n\n@Component({\n\ttag: 'kol-button-link',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: {\n\t\tdelegatesFocus: true,\n\t},\n})\nexport class KolButtonLink implements ButtonLinkProps, FocusableElement {\n\tprivate buttonWcRef?: HTMLKolButtonWcElement;\n\n\tprivate readonly catchRef = (ref?: HTMLKolButtonWcElement) => {\n\t\tthis.buttonWcRef = ref;\n\t};\n\n\t/**\n\t * Returns the current value.\n\t */\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async getValue(): Promise<Stringified<StencilUnknown> | undefined> {\n\t\treturn this._value;\n\t}\n\n\t/**\n\t * @deprecated Use kolFocus instead.\n\t */\n\t@Method()\n\tpublic async focus() {\n\t\tawait this.kolFocus();\n\t}\n\n\t/**\n\t * Focuses the button element.\n\t */\n\t@Method()\n\tpublic async kolFocus() {\n\t\tawait this.buttonWcRef?.kolFocus();\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-button-link\">\n\t\t\t\t<KolButtonWcTag\n\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\t_accessKey={this._accessKey}\n\t\t\t\t\t_ariaControls={this._ariaControls}\n\t\t\t\t\t_ariaDescription={this._ariaDescription}\n\t\t\t\t\t_ariaExpanded={this._ariaExpanded}\n\t\t\t\t\t_ariaSelected={this._ariaSelected}\n\t\t\t\t\t_disabled={this._disabled}\n\t\t\t\t\t_icons={this._icons}\n\t\t\t\t\t_hideLabel={this._hideLabel}\n\t\t\t\t\t_id={this._id}\n\t\t\t\t\t_label={this._label}\n\t\t\t\t\t_name={this._name}\n\t\t\t\t\t_on={this._on}\n\t\t\t\t\t_role=\"link\"\n\t\t\t\t\t_shortKey={this._shortKey}\n\t\t\t\t\t_syncValueBySelector={this._syncValueBySelector}\n\t\t\t\t\t_tabIndex={this._tabIndex}\n\t\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t\t_type={this._type}\n\t\t\t\t\t_value={this._value}\n\t\t\t\t>\n\t\t\t\t\t<slot name=\"expert\" slot=\"expert\"></slot>\n\t\t\t\t</KolButtonWcTag>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines which key combination can be used to trigger or focus the interactive element of the component.\n\t */\n\t@Prop() public _accessKey?: AccessKeyPropType;\n\n\t/**\n\t * Defines which elements are controlled by this component. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls)\n\t */\n\t@Prop() public _ariaControls?: string;\n\n\t/**\n\t * Defines the value for the aria-description attribute.\n\t */\n\t@Prop() public _ariaDescription?: AriaDescriptionPropType;\n\n\t/**\n\t * Defines whether the interactive element of the component expanded something. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)\n\t * @TODO: Change type back to `AriaExpandedPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _ariaExpanded?: boolean;\n\n\t/**\n\t * Defines whether the interactive element of the component is selected (e.g. role=tab). (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected)\n\t * @TODO: Change type back to `AriaSelectedPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _ariaSelected?: boolean;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t * @TODO: Change type back to `DisabledPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Hides the caption by default and displays the caption text with a tooltip when the\n\t * interactive element is focused or the mouse is over it.\n\t * @TODO: Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hideLabel?: boolean = false;\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: IconsPropType;\n\n\t/**\n\t * Defines the internal ID of the primary component element.\n\t */\n\t@Prop() public _id?: IdPropType;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label!: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Defines the technical name of an input field.\n\t */\n\t@Prop() public _name?: NamePropType;\n\n\t/**\n\t * Gibt die EventCallback-Funktionen für die Button-Events an.\n\t */\n\t@Prop() public _on?: ButtonCallbacksPropType<StencilUnknown>;\n\n\t/**\n\t * Defines the role of the components primary element.\n\t */\n\t@Prop() public _role?: AlternativeButtonLinkRolePropType;\n\n\t/**\n\t * Adds a visual short key hint to the component.\n\t */\n\t@Prop() public _shortKey?: ShortKeyPropType;\n\n\t/**\n\t * Selector for synchronizing the value with another input element.\n\t * @internal\n\t */\n\t@Prop() public _syncValueBySelector?: SyncValueBySelectorPropType;\n\n\t/**\n\t * Defines which tab-index the primary element of the component has. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)\n\t */\n\t@Prop() public _tabIndex?: number;\n\n\t/**\n\t * Defines where to show the Tooltip preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _tooltipAlign?: TooltipAlignPropType = 'top';\n\n\t/**\n\t * Defines either the type of the component or of the components interactive element.\n\t */\n\t@Prop() public _type?: ButtonTypePropType = 'button';\n\n\t/**\n\t * Defines the value that the button emits on click.\n\t */\n\t@Prop() public _value?: Stringified<StencilUnknown>;\n}\n"],"mappings":";;;wGAAA,MAAMA,EAAkB,26MACxB,MAAAC,EAAeD,E,MC8BFE,EAAa,M,yBAGRC,KAAAC,SAAYC,IAC5BF,KAAKG,YAAcD,CAAG,E,gKA0Fc,M,gBAOC,M,qOAmDgB,M,WAKV,S,sBAjJrC,cAAME,GACZ,OAAOJ,KAAKK,M,CAON,WAAMC,SACNN,KAAKO,U,CAOL,cAAMA,G,aACNC,EAAAR,KAAKG,eAAW,MAAAK,SAAA,SAAAA,EAAED,W,CAGlB,MAAAE,GACN,OACCC,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAM,mBACXH,EAACI,EAAc,CAAAF,IAAA,2CACdV,IAAKF,KAAKC,SACVc,WAAYf,KAAKe,WACjBC,cAAehB,KAAKgB,cACpBC,iBAAkBjB,KAAKiB,iBACvBC,cAAelB,KAAKkB,cACpBC,cAAenB,KAAKmB,cACpBC,UAAWpB,KAAKoB,UAChBC,OAAQrB,KAAKqB,OACbC,WAAYtB,KAAKsB,WACjBC,IAAKvB,KAAKuB,IACVC,OAAQxB,KAAKwB,OACbC,MAAOzB,KAAKyB,MACZC,IAAK1B,KAAK0B,IACVC,MAAM,OACNC,UAAW5B,KAAK4B,UAChBC,qBAAsB7B,KAAK6B,qBAC3BC,UAAW9B,KAAK8B,UAChBC,cAAe/B,KAAK+B,cACpBC,MAAOhC,KAAKgC,MACZ3B,OAAQL,KAAKK,QAEbK,EAAA,QAAAE,IAAA,2CAAMqB,KAAK,SAASC,KAAK,Y","ignoreList":[]}
1
+ {"version":3,"names":["defaultStyleCss","KolButtonLinkDefaultStyle0","KolButtonLink","this","catchRef","ref","buttonWcRef","getValue","_value","focus","kolFocus","_a","render","h","Host","key","class","KolButtonWcTag","_accessKey","_ariaControls","_ariaDescription","_ariaExpanded","_ariaSelected","_disabled","_icons","_hideLabel","_id","_label","_name","_on","_shortKey","_syncValueBySelector","_tabIndex","_tooltipAlign","_type","name","slot"],"sources":["src/components/button-link/style.scss?tag=kol-button-link&mode=default&encapsulation=shadow","src/components/button-link/shadow.tsx"],"sourcesContent":["@use '../style' as *;\n@use '../link' as *;\n\n@layer kol-component {\n\tbutton {\n\t\tmin-height: unset; // Inline links may have the height of the flowing text and do not necessarily have to be 44px high.\n\t}\n}\n","import type {\n\tAccessKeyPropType,\n\tAlternativeButtonLinkRolePropType,\n\tAriaDescriptionPropType,\n\tButtonCallbacksPropType,\n\tButtonLinkProps,\n\tButtonTypePropType,\n\tFocusableElement,\n\tIconsPropType,\n\tIdPropType,\n\tLabelWithExpertSlotPropType,\n\tNamePropType,\n\tShortKeyPropType,\n\tStencilUnknown,\n\tStringified,\n\tSyncValueBySelectorPropType,\n\tTooltipAlignPropType,\n} from '../../schema';\nimport type { JSX } from '@stencil/core';\nimport { Component, h, Host, Method, Prop } from '@stencil/core';\nimport { KolButtonWcTag } from '../../core/component-names';\n\n@Component({\n\ttag: 'kol-button-link',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: {\n\t\tdelegatesFocus: true,\n\t},\n})\nexport class KolButtonLink implements ButtonLinkProps, FocusableElement {\n\tprivate buttonWcRef?: HTMLKolButtonWcElement;\n\n\tprivate readonly catchRef = (ref?: HTMLKolButtonWcElement) => {\n\t\tthis.buttonWcRef = ref;\n\t};\n\n\t/**\n\t * Returns the current value.\n\t */\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async getValue(): Promise<Stringified<StencilUnknown> | undefined> {\n\t\treturn this._value;\n\t}\n\n\t/**\n\t * @deprecated Use kolFocus instead.\n\t */\n\t@Method()\n\tpublic async focus() {\n\t\tawait this.kolFocus();\n\t}\n\n\t/**\n\t * Focuses the button element.\n\t */\n\t@Method()\n\tpublic async kolFocus() {\n\t\tawait this.buttonWcRef?.kolFocus();\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-button-link\">\n\t\t\t\t<KolButtonWcTag\n\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\t_accessKey={this._accessKey}\n\t\t\t\t\t_ariaControls={this._ariaControls}\n\t\t\t\t\t_ariaDescription={this._ariaDescription}\n\t\t\t\t\t_ariaExpanded={this._ariaExpanded}\n\t\t\t\t\t_ariaSelected={this._ariaSelected}\n\t\t\t\t\t_disabled={this._disabled}\n\t\t\t\t\t_icons={this._icons}\n\t\t\t\t\t_hideLabel={this._hideLabel}\n\t\t\t\t\t_id={this._id}\n\t\t\t\t\t_label={this._label}\n\t\t\t\t\t_name={this._name}\n\t\t\t\t\t_on={this._on}\n\t\t\t\t\t_shortKey={this._shortKey}\n\t\t\t\t\t_syncValueBySelector={this._syncValueBySelector}\n\t\t\t\t\t_tabIndex={this._tabIndex}\n\t\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t\t_type={this._type}\n\t\t\t\t\t_value={this._value}\n\t\t\t\t>\n\t\t\t\t\t<slot name=\"expert\" slot=\"expert\"></slot>\n\t\t\t\t</KolButtonWcTag>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines which key combination can be used to trigger or focus the interactive element of the component.\n\t */\n\t@Prop() public _accessKey?: AccessKeyPropType;\n\n\t/**\n\t * Defines which elements are controlled by this component. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls)\n\t */\n\t@Prop() public _ariaControls?: string;\n\n\t/**\n\t * Defines the value for the aria-description attribute.\n\t */\n\t@Prop() public _ariaDescription?: AriaDescriptionPropType;\n\n\t/**\n\t * Defines whether the interactive element of the component expanded something. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)\n\t * @TODO: Change type back to `AriaExpandedPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _ariaExpanded?: boolean;\n\n\t/**\n\t * Defines whether the interactive element of the component is selected (e.g. role=tab). (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected)\n\t * @TODO: Change type back to `AriaSelectedPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _ariaSelected?: boolean;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t * @TODO: Change type back to `DisabledPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Hides the caption by default and displays the caption text with a tooltip when the\n\t * interactive element is focused or the mouse is over it.\n\t * @TODO: Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hideLabel?: boolean = false;\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: IconsPropType;\n\n\t/**\n\t * Defines the internal ID of the primary component element.\n\t */\n\t@Prop() public _id?: IdPropType;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label!: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Defines the technical name of an input field.\n\t */\n\t@Prop() public _name?: NamePropType;\n\n\t/**\n\t * Gibt die EventCallback-Funktionen für die Button-Events an.\n\t */\n\t@Prop() public _on?: ButtonCallbacksPropType<StencilUnknown>;\n\n\t/**\n\t * Defines the role of the components primary element.\n\t *\n\t * @deprecated We prefer the semantic role of the HTML element and do not allow for customization. We will remove this prop in the future.\n\t */\n\t@Prop() public _role?: AlternativeButtonLinkRolePropType;\n\n\t/**\n\t * Adds a visual short key hint to the component.\n\t */\n\t@Prop() public _shortKey?: ShortKeyPropType;\n\n\t/**\n\t * Selector for synchronizing the value with another input element.\n\t * @internal\n\t */\n\t@Prop() public _syncValueBySelector?: SyncValueBySelectorPropType;\n\n\t/**\n\t * Defines which tab-index the primary element of the component has. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)\n\t */\n\t@Prop() public _tabIndex?: number;\n\n\t/**\n\t * Defines where to show the Tooltip preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _tooltipAlign?: TooltipAlignPropType = 'top';\n\n\t/**\n\t * Defines either the type of the component or of the components interactive element.\n\t */\n\t@Prop() public _type?: ButtonTypePropType = 'button';\n\n\t/**\n\t * Defines the value that the button emits on click.\n\t */\n\t@Prop() public _value?: Stringified<StencilUnknown>;\n}\n"],"mappings":";;;wGAAA,MAAMA,EAAkB,k7MACxB,MAAAC,EAAeD,E,MC8BFE,EAAa,M,yBAGRC,KAAAC,SAAYC,IAC5BF,KAAKG,YAAcD,CAAG,E,gKAyFc,M,gBAOC,M,qOAqDgB,M,WAKV,S,sBAlJrC,cAAME,GACZ,OAAOJ,KAAKK,M,CAON,WAAMC,SACNN,KAAKO,U,CAOL,cAAMA,G,aACNC,EAAAR,KAAKG,eAAW,MAAAK,SAAA,SAAAA,EAAED,W,CAGlB,MAAAE,GACN,OACCC,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAM,mBACXH,EAACI,EAAc,CAAAF,IAAA,2CACdV,IAAKF,KAAKC,SACVc,WAAYf,KAAKe,WACjBC,cAAehB,KAAKgB,cACpBC,iBAAkBjB,KAAKiB,iBACvBC,cAAelB,KAAKkB,cACpBC,cAAenB,KAAKmB,cACpBC,UAAWpB,KAAKoB,UAChBC,OAAQrB,KAAKqB,OACbC,WAAYtB,KAAKsB,WACjBC,IAAKvB,KAAKuB,IACVC,OAAQxB,KAAKwB,OACbC,MAAOzB,KAAKyB,MACZC,IAAK1B,KAAK0B,IACVC,UAAW3B,KAAK2B,UAChBC,qBAAsB5B,KAAK4B,qBAC3BC,UAAW7B,KAAK6B,UAChBC,cAAe9B,KAAK8B,cACpBC,MAAO/B,KAAK+B,MACZ1B,OAAQL,KAAKK,QAEbK,EAAA,QAAAE,IAAA,2CAAMoB,KAAK,SAASC,KAAK,Y","ignoreList":[]}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as t,H as i,r as s,g as e}from"./index-1766e6f4.js";import{y as a,j as h,w as d,i as n,O as l,P as o,D as r,m as c,B as b}from"./index-4fb06bbb.js";import{s as f,t as v}from"./events-29e84d75.js";import{n as u}from"./dev.utils-3a332b59.js";import{p as m,a as p}from"./controller-87dfc9ee.js";import{A as _}from"./associated.controller-3dab1e00.js";import{a as y,f as j}from"./component-names-4cb1c62b.js";import{v as g,a as x,b as k,c as A}from"./access-and-short-key-a34a0af0.js";import{v as S,a as C,b as T,c as w}from"./button-variant-fe0f7f45.js";import{v as B}from"./custom-class-6eaba98d.js";import{v as I}from"./disabled-f923601e.js";import{v as K}from"./hide-label-2b46168f.js";import{v as D}from"./icons-d29928c3.js";import{a as L}from"./label-51d66c9d.js";import{v as V}from"./tooltip-align-de415afb.js";import"./align-bc8d98ac.js";const E=(t,i)=>{a(t,"_ariaControls",i)},O=(t,a)=>{h(t,"_ariaSelected",a)},H=(t,a)=>{d(t,"_on",(t=>n(t)),new Set(["ButtonCallbacksPropType {Events.onClick, Events.onMouseDown}"]),a)},N=["button","reset","submit"],P=(t,a)=>{d(t,"_type",(t=>"string"==typeof t&&N.includes(t)),new Set([`KoliBriButtonType {${N.join(", ")}`]),a)},R=class{async kolFocus(){var t;null===(t=this.buttonRef)||void 0===t||t.focus()}render(){var a,e;const s=b(this.state._label),d=Boolean(null===(e=null===(a=this.state._ariaDescription)||void 0===a?void 0:a.trim())||void 0===e?void 0:e.length);return t(i,{key:"d45ad337e0a56f359cf274d2955bd75841647804",class:"kol-button-wc"},t("button",Object.assign({key:"3b926e8d0bb625b36119a8f8ba1865530473c097",ref:this.catchRef,accessKey:this.state._accessKey||void 0,"aria-controls":this.state._ariaControls,"aria-describedby":d?this.internalDescriptionById:void 0,"aria-expanded":l(this.state._ariaExpanded),"aria-haspopup":this._ariaHasPopup,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,"aria-selected":o(this.state._ariaSelected),class:{button:!0,disabled:!0===this.state._disabled,[this.state._variant]:"custom"!==this.state._variant,[this.state._customClass]:"custom"===this.state._variant&&"string"==typeof this.state._customClass&&this.state._customClass.length>0,"hide-label":!0===this.state._hideLabel},disabled:this.state._disabled,id:this.state._id,name:this.state._name},this.state._on,{onClick:this.onClick,role:this.state._role,tabIndex:this.state._tabIndex,type:this.state._type}),t(j,{key:"54be590b87352dcf4580c08184927326a87eed4c",class:"button-inner",_badgeText:this.state._accessKey||this.state._shortKey,_icons:this.state._icons,_hideLabel:this.state._hideLabel,_label:s?"":this.state._label},t("slot",{key:"b6cc8540a5012bbe70b41b971e462fb143f3c23d",name:"expert",slot:"expert"}))),t(y,{key:"64fe65b5784df3ed17a49ef8cbfbade9f1f59369","aria-hidden":"true",hidden:s||!this.state._hideLabel,_badgeText:this.state._accessKey||this.state._shortKey,_align:this.state._tooltipAlign,_label:"string"==typeof this.state._label?this.state._label:""}),d&&t("span",{key:"15bf98431ffac9f6739639277b1b3b8ba9477304",class:"visually-hidden",id:this.internalDescriptionById},this.state._ariaDescription))}constructor(t){s(this,t),this.internalDescriptionById=u(),this.catchRef=t=>{this.buttonRef=t},this.onClick=t=>{var a,i;"submit"===this.state._type?m({form:this.host,ref:this.buttonRef}):"reset"===this.state._type?p({form:this.host,ref:this.buttonRef}):(f(t),v("click",this.host,this.state._value),this.controller.setFormAssociatedValue(this.state._value),"function"==typeof(null===(a=this.state._on)||void 0===a?void 0:a.onClick)&&(r(t,this.buttonRef),null===(i=this.state._on)||void 0===i||i.onClick(t,this.state._value)))},this._accessKey=void 0,this._ariaControls=void 0,this._ariaDescription=void 0,this._ariaExpanded=void 0,this._ariaHasPopup=void 0,this._ariaSelected=void 0,this._customClass=void 0,this._disabled=!1,this._hideLabel=!1,this._icons=void 0,this._id=void 0,this._label=void 0,this._name=void 0,this._on=void 0,this._role=void 0,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._type="button",this._value=void 0,this._variant="normal",this.state={_icons:{},_label:"",_on:{},_type:"button",_variant:"normal"},this.controller=new _(this,"button",this.host)}validateAccessKey(t){g(this,t),x(t,this._shortKey)}validateAriaControls(t){E(this,t)}validateAriaDescription(t){S(this,t)}validateAriaExpanded(t){C(this,t)}validateAriaSelected(t){O(this,t)}validateCustomClass(t){B(this,t)}validateDisabled(t){I(this,t)}validateHideLabel(t){K(this,t)}validateIcons(t){D(this,t)}validateId(t){a(this,"_id",t)}validateLabel(t){L(this,t,{required:!0})}validateName(t){this.controller.validateName(t)}validateOn(t){H(this,t)}validateRole(t){T(this,t)}validateShortKey(t){k(this,t),x(this._accessKey,t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){A(this,t)}validateTooltipAlign(t){V(this,t)}validateType(t){P(this,t)}validateValue(t){c(this,"_value",t),this.controller.setFormAssociatedValue(this.state._value)}validateVariant(t){w(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.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),x(this._accessKey,this._shortKey)}get host(){return e(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"],_label:["validateLabel"],_name:["validateName"],_on:["validateOn"],_role:["validateRole"],_shortKey:["validateShortKey"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_tooltipAlign:["validateTooltipAlign"],_type:["validateType"],_value:["validateValue"],_variant:["validateVariant"]}}};export{R as kol_button_wc};
4
+ import{h as t,H as i,r as s,g as e}from"./index-3bfee590.js";import{y as a,j as h,w as d,i as n,O as l,P as o,D as r,m as c,B as b}from"./index-50898179.js";import{s as f,t as v}from"./events-29e84d75.js";import{n as u}from"./dev.utils-7d7ddeeb.js";import{p as m,a as p}from"./controller-08b97a5b.js";import{A as _}from"./associated.controller-7e8760a4.js";import{a as y,f as j}from"./component-names-4cb1c62b.js";import{v as g,a as x,b as k,c as A}from"./access-and-short-key-360ff997.js";import{v as S,a as C,b as T,c as w}from"./button-variant-f3bae820.js";import{v as B}from"./custom-class-aa04d105.js";import{v as I}from"./disabled-3bfa3898.js";import{v as K}from"./hide-label-6f1ea82b.js";import{v as D}from"./icons-26be7462.js";import{a as L}from"./label-2d7e2d68.js";import{v as V}from"./tooltip-align-6c3169e7.js";import"./align-ef25bf72.js";const E=(t,i)=>{a(t,"_ariaControls",i)},O=(t,a)=>{h(t,"_ariaSelected",a)},H=(t,a)=>{d(t,"_on",t=>n(t),new Set(["ButtonCallbacksPropType {Events.onClick, Events.onMouseDown}"]),a)},N=["button","reset","submit"],P=(t,a)=>{d(t,"_type",t=>"string"==typeof t&&N.includes(t),new Set([`KoliBriButtonType {${N.join(", ")}`]),a)},R=class{async kolFocus(){var t;null===(t=this.buttonRef)||void 0===t||t.focus()}render(){var a,e;const s=b(this.state._label),d=Boolean(null===(e=null===(a=this.state._ariaDescription)||void 0===a?void 0:a.trim())||void 0===e?void 0:e.length);return t(i,{key:"d45ad337e0a56f359cf274d2955bd75841647804",class:"kol-button-wc"},t("button",Object.assign({key:"3b926e8d0bb625b36119a8f8ba1865530473c097",ref:this.catchRef,accessKey:this.state._accessKey||void 0,"aria-controls":this.state._ariaControls,"aria-describedby":d?this.internalDescriptionById:void 0,"aria-expanded":l(this.state._ariaExpanded),"aria-haspopup":this._ariaHasPopup,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,"aria-selected":o(this.state._ariaSelected),class:{button:!0,disabled:!0===this.state._disabled,[this.state._variant]:"custom"!==this.state._variant,[this.state._customClass]:"custom"===this.state._variant&&"string"==typeof this.state._customClass&&this.state._customClass.length>0,"hide-label":!0===this.state._hideLabel},disabled:this.state._disabled,id:this.state._id,name:this.state._name},this.state._on,{onClick:this.onClick,role:this.state._role,tabIndex:this.state._tabIndex,type:this.state._type}),t(j,{key:"54be590b87352dcf4580c08184927326a87eed4c",class:"button-inner",_badgeText:this.state._accessKey||this.state._shortKey,_icons:this.state._icons,_hideLabel:this.state._hideLabel,_label:s?"":this.state._label},t("slot",{key:"b6cc8540a5012bbe70b41b971e462fb143f3c23d",name:"expert",slot:"expert"}))),t(y,{key:"64fe65b5784df3ed17a49ef8cbfbade9f1f59369","aria-hidden":"true",hidden:s||!this.state._hideLabel,_badgeText:this.state._accessKey||this.state._shortKey,_align:this.state._tooltipAlign,_label:"string"==typeof this.state._label?this.state._label:""}),d&&t("span",{key:"15bf98431ffac9f6739639277b1b3b8ba9477304",class:"visually-hidden",id:this.internalDescriptionById},this.state._ariaDescription))}constructor(t){s(this,t),this.internalDescriptionById=u(),this.catchRef=t=>{this.buttonRef=t},this.onClick=t=>{var a,i;"submit"===this.state._type?m({form:this.host,ref:this.buttonRef}):"reset"===this.state._type?p({form:this.host,ref:this.buttonRef}):(f(t),v("click",this.host,this.state._value),this.controller.setFormAssociatedValue(this.state._value),"function"==typeof(null===(a=this.state._on)||void 0===a?void 0:a.onClick)&&(r(t,this.buttonRef),null===(i=this.state._on)||void 0===i||i.onClick(t,this.state._value)))},this._accessKey=void 0,this._ariaControls=void 0,this._ariaDescription=void 0,this._ariaExpanded=void 0,this._ariaHasPopup=void 0,this._ariaSelected=void 0,this._customClass=void 0,this._disabled=!1,this._hideLabel=!1,this._icons=void 0,this._id=void 0,this._label=void 0,this._name=void 0,this._on=void 0,this._role=void 0,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._type="button",this._value=void 0,this._variant="normal",this.state={_icons:{},_label:"",_on:{},_type:"button",_variant:"normal"},this.controller=new _(this,"button",this.host)}validateAccessKey(t){g(this,t),x(t,this._shortKey)}validateAriaControls(t){E(this,t)}validateAriaDescription(t){S(this,t)}validateAriaExpanded(t){C(this,t)}validateAriaSelected(t){O(this,t)}validateCustomClass(t){B(this,t)}validateDisabled(t){I(this,t)}validateHideLabel(t){K(this,t)}validateIcons(t){D(this,t)}validateId(t){a(this,"_id",t)}validateLabel(t){L(this,t,{required:!0})}validateName(t){this.controller.validateName(t)}validateOn(t){H(this,t)}validateRole(t){T(this,t)}validateShortKey(t){k(this,t),x(this._accessKey,t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){A(this,t)}validateTooltipAlign(t){V(this,t)}validateType(t){P(this,t)}validateValue(t){c(this,"_value",t),this.controller.setFormAssociatedValue(this.state._value)}validateVariant(t){w(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.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),x(this._accessKey,this._shortKey)}get host(){return e(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"],_label:["validateLabel"],_name:["validateName"],_on:["validateOn"],_role:["validateRole"],_shortKey:["validateShortKey"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_tooltipAlign:["validateTooltipAlign"],_type:["validateType"],_value:["validateValue"],_variant:["validateVariant"]}}};export{R as kol_button_wc};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as n,h as e,H as t}from"./index-1766e6f4.js";import{c as i}from"./component-names-4cb1c62b.js";const o="@charset \"UTF-8\";\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(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\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 * {\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 rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: 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 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: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip: rect(0 0 0 0);\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 border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 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}\n@layer kol-global {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\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 }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\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 cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n .badge-text-hint {\n background-color: lightgray;\n color: black;\n }\n}\n@layer kol-component {\n .kol-tooltip-wc {\n display: contents;\n contain: layout;\n }\n .kol-tooltip-wc .tooltip-floating {\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n /* Shared between content and arrow */\n .kol-tooltip-wc .tooltip-area {\n background-color: #fff;\n color: #000;\n }\n .kol-tooltip-wc .tooltip-arrow {\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip-wc .tooltip-content {\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\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 :is(a, button) {\n display: inline-flex;\n place-items: center;\n text-align: center;\n text-decoration-line: none;\n }\n :is(a, button)::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: \"​\";\n }\n /* TODO: Why we need this? */\n :is(a, button) > .kol-span-wc {\n margin: auto;\n width: 100%;\n }\n}",a=o,s=class{constructor(t){n(this,t),this.catchRef=n=>{this.buttonWcRef=n},this._accessKey=void 0,this._ariaControls=void 0,this._ariaDescription=void 0,this._ariaExpanded=void 0,this._ariaSelected=void 0,this._customClass=void 0,this._disabled=!1,this._hideLabel=!1,this._icons=void 0,this._id=void 0,this._label=void 0,this._name=void 0,this._on=void 0,this._role=void 0,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._type="button",this._value=void 0,this._variant="normal"}async getValue(){return this._value}async focus(){await this.kolFocus()}async kolFocus(){var n;await(null===(n=this.buttonWcRef)||void 0===n?void 0:n.kolFocus())}render(){return e(t,{key:"70caa89f836bf0fe9f7179a15279fad3139de552",class:"kol-button"},e(i,{key:"1eec930020ffa9cab5e21fbef31eb64d6d9908d9",ref:this.catchRef,class:{button:!0},_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,_id:this._id,_label:this._label,_name:this._name,_on:this._on,_role:this._role,_shortKey:this._shortKey,_syncValueBySelector:this._syncValueBySelector,_tabIndex:this._tabIndex,_tooltipAlign:this._tooltipAlign,_type:this._type,_value:this._value,_variant:this._variant},e("slot",{key:"2a577a11be5ef2ab1f7d47ddab92686e7825392d",name:"expert",slot:"expert"})))}static get delegatesFocus(){return!0}};s.style={default:a};export{s as kol_button};
4
+ import{r as n,h as e,H as t}from"./index-3bfee590.js";import{c as i}from"./component-names-4cb1c62b.js";const o="@charset \"UTF-8\";\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(44rem / var(--kolibri-root-font-size, 16));\n color: black;\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\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 * {\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 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 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: absolute;\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%; /* 100% needed for custom width from outside */\n margin: 0;\n padding: 0;\n border: none;\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}\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(16rem / 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 /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\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-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-component {\n .kol-tooltip-wc {\n display: contents;\n contain: layout;\n }\n .kol-tooltip-wc .tooltip-floating {\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);\n max-width: 90vw;\n max-height: 90vh;\n visibility: hidden;\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n }\n /* Shared between content and arrow */\n .kol-tooltip-wc .tooltip-area {\n color: #000;\n background-color: #fff;\n }\n .kol-tooltip-wc .tooltip-arrow {\n transform: rotate(45deg);\n position: absolute;\n z-index: 999;\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip-wc .tooltip-content {\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\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 :is(a, button) {\n display: inline-flex;\n place-items: center;\n text-align: center;\n text-decoration-line: none;\n }\n :is(a, button)::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: \"​\";\n }\n /* TODO: Why we need this? */\n :is(a, button) > .kol-span-wc {\n width: 100%;\n margin: auto;\n }\n}",a=o,s=class{constructor(t){n(this,t),this.catchRef=n=>{this.buttonWcRef=n},this._accessKey=void 0,this._ariaControls=void 0,this._ariaDescription=void 0,this._ariaExpanded=void 0,this._ariaSelected=void 0,this._customClass=void 0,this._disabled=!1,this._hideLabel=!1,this._icons=void 0,this._id=void 0,this._label=void 0,this._name=void 0,this._on=void 0,this._role=void 0,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._type="button",this._value=void 0,this._variant="normal"}async getValue(){return this._value}async focus(){await this.kolFocus()}async kolFocus(){var n;await(null===(n=this.buttonWcRef)||void 0===n?void 0:n.kolFocus())}render(){return e(t,{key:"70caa89f836bf0fe9f7179a15279fad3139de552",class:"kol-button"},e(i,{key:"09f7494fff2ddc9597267d28ff87fa66607d9637",ref:this.catchRef,class:{button:!0},_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,_id:this._id,_label:this._label,_name:this._name,_on:this._on,_shortKey:this._shortKey,_syncValueBySelector:this._syncValueBySelector,_tabIndex:this._tabIndex,_tooltipAlign:this._tooltipAlign,_type:this._type,_value:this._value,_variant:this._variant},e("slot",{key:"6010a867b4000c38212d0bbcdc978fcdff3f58c2",name:"expert",slot:"expert"})))}static get delegatesFocus(){return!0}};s.style={default:a};export{s as kol_button};
@@ -1 +1 @@
1
- {"version":3,"names":["defaultStyleCss","KolButtonDefaultStyle0","KolButton","this","catchRef","ref","buttonWcRef","getValue","_value","focus","kolFocus","_a","render","h","Host","key","class","KolButtonWcTag","button","_accessKey","_ariaControls","_ariaDescription","_ariaExpanded","_ariaSelected","_customClass","_disabled","_hideLabel","_icons","_id","_label","_name","_on","_role","_shortKey","_syncValueBySelector","_tabIndex","_tooltipAlign","_type","_variant","name","slot"],"sources":["src/components/button/style.scss?tag=kol-button&mode=default&encapsulation=shadow","src/components/button/shadow.tsx"],"sourcesContent":["@use '../style' as *;\n@use '../button' as *;\n","import type {\n\tAccessKeyPropType,\n\tAlternativeButtonLinkRolePropType,\n\tAriaDescriptionPropType,\n\tButtonCallbacksPropType,\n\tButtonProps,\n\tButtonTypePropType,\n\tButtonVariantPropType,\n\tCustomClassPropType,\n\tFocusableElement,\n\tIconsPropType,\n\tLabelWithExpertSlotPropType,\n\tShortKeyPropType,\n\tStencilUnknown,\n\tStringified,\n\tSyncValueBySelectorPropType,\n\tTooltipAlignPropType,\n} from '../../schema';\nimport type { JSX } from '@stencil/core';\nimport { Component, h, Host, Method, Prop } from '@stencil/core';\nimport { KolButtonWcTag } from '../../core/component-names';\n\n@Component({\n\ttag: 'kol-button',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: {\n\t\tdelegatesFocus: true,\n\t},\n})\nexport class KolButton implements ButtonProps, FocusableElement {\n\tprivate buttonWcRef?: HTMLKolButtonWcElement;\n\n\tprivate readonly catchRef = (ref?: HTMLKolButtonWcElement) => {\n\t\tthis.buttonWcRef = ref;\n\t};\n\n\t/**\n\t * Returns the current value.\n\t */\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async getValue(): Promise<Stringified<StencilUnknown> | undefined> {\n\t\treturn this._value;\n\t}\n\n\t/**\n\t * @deprecated Use kolFocus instead.\n\t */\n\t@Method()\n\tpublic async focus() {\n\t\tawait this.kolFocus();\n\t}\n\n\t/**\n\t * Programmatically focuses the button.\n\t */\n\t@Method()\n\tpublic async kolFocus() {\n\t\tawait this.buttonWcRef?.kolFocus();\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-button\">\n\t\t\t\t<KolButtonWcTag\n\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\tclass={{\n\t\t\t\t\t\tbutton: true,\n\t\t\t\t\t}}\n\t\t\t\t\t_accessKey={this._accessKey}\n\t\t\t\t\t_ariaControls={this._ariaControls}\n\t\t\t\t\t_ariaDescription={this._ariaDescription}\n\t\t\t\t\t_ariaExpanded={this._ariaExpanded}\n\t\t\t\t\t_ariaSelected={this._ariaSelected}\n\t\t\t\t\t_customClass={this._customClass}\n\t\t\t\t\t_disabled={this._disabled}\n\t\t\t\t\t_hideLabel={this._hideLabel}\n\t\t\t\t\t_icons={this._icons}\n\t\t\t\t\t_id={this._id}\n\t\t\t\t\t_label={this._label}\n\t\t\t\t\t_name={this._name}\n\t\t\t\t\t_on={this._on}\n\t\t\t\t\t_role={this._role}\n\t\t\t\t\t_shortKey={this._shortKey}\n\t\t\t\t\t_syncValueBySelector={this._syncValueBySelector}\n\t\t\t\t\t_tabIndex={this._tabIndex}\n\t\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t\t_type={this._type}\n\t\t\t\t\t_value={this._value}\n\t\t\t\t\t_variant={this._variant}\n\t\t\t\t>\n\t\t\t\t\t<slot name=\"expert\" slot=\"expert\"></slot>\n\t\t\t\t</KolButtonWcTag>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines which key combination can be used to trigger or focus the interactive element of the component.\n\t */\n\t@Prop() public _accessKey?: AccessKeyPropType;\n\n\t/**\n\t * Defines which elements are controlled by this component. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls)\n\t */\n\t@Prop() public _ariaControls?: string;\n\n\t/**\n\t * Defines the value for the aria-description attribute.\n\t */\n\t@Prop() public _ariaDescription?: AriaDescriptionPropType;\n\n\t/**\n\t * Defines whether the interactive element of the component expanded something. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)\n\t */\n\t@Prop() public _ariaExpanded?: boolean;\n\n\t/**\n\t * Defines whether the interactive element of the component is selected (e.g. role=tab). (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected)\n\t */\n\t@Prop() public _ariaSelected?: boolean;\n\n\t/**\n\t * Defines the custom class attribute if _variant=\"custom\" is set.\n\t */\n\t@Prop() public _customClass?: CustomClassPropType;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Hides the caption by default and displays the caption text with a tooltip when the\n\t * interactive element is focused or the mouse is over it.\n\t * @TODO: Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hideLabel?: boolean = false;\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: IconsPropType;\n\n\t/**\n\t * Defines the internal ID of the primary component element.\n\t */\n\t@Prop() public _id?: string;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label!: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Defines the technical name of an input field.\n\t */\n\t@Prop() public _name?: string;\n\n\t/**\n\t * Defines the callback functions for button events.\n\t */\n\t@Prop() public _on?: ButtonCallbacksPropType<StencilUnknown>;\n\n\t/**\n\t * Defines the role of the components primary element.\n\t */\n\t@Prop() public _role?: AlternativeButtonLinkRolePropType;\n\n\t/**\n\t * Adds a visual short key hint to the component.\n\t */\n\t@Prop() public _shortKey?: ShortKeyPropType;\n\n\t/**\n\t * Selector for synchronizing the value with another input element.\n\t * @internal\n\t */\n\t@Prop() public _syncValueBySelector?: SyncValueBySelectorPropType;\n\n\t/**\n\t * Defines which tab-index the primary element of the component has. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)\n\t */\n\t@Prop() public _tabIndex?: number;\n\n\t/**\n\t * Defines where to show the Tooltip preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _tooltipAlign?: TooltipAlignPropType = 'top';\n\n\t/**\n\t * Defines either the type of the component or of the components interactive element.\n\t */\n\t@Prop() public _type?: ButtonTypePropType = 'button';\n\n\t/**\n\t * Defines the value that the button emits on click.\n\t */\n\t@Prop() public _value?: Stringified<StencilUnknown>;\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: ButtonVariantPropType = 'normal';\n}\n"],"mappings":";;;wGAAA,MAAMA,EAAkB,ugMACxB,MAAAC,EAAeD,E,MC8BFE,EAAS,M,yBAGJC,KAAAC,SAAYC,IAC5BF,KAAKG,YAAcD,CAAG,E,4LAiGc,M,gBAOC,M,qOAmDgB,M,WAKV,S,oCAUM,Q,CAlK3C,cAAME,GACZ,OAAOJ,KAAKK,M,CAON,WAAMC,SACNN,KAAKO,U,CAOL,cAAMA,G,aACNC,EAAAR,KAAKG,eAAW,MAAAK,SAAA,SAAAA,EAAED,W,CAGlB,MAAAE,GACN,OACCC,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAM,cACXH,EAACI,EAAc,CAAAF,IAAA,2CACdV,IAAKF,KAAKC,SACVY,MAAO,CACNE,OAAQ,MAETC,WAAYhB,KAAKgB,WACjBC,cAAejB,KAAKiB,cACpBC,iBAAkBlB,KAAKkB,iBACvBC,cAAenB,KAAKmB,cACpBC,cAAepB,KAAKoB,cACpBC,aAAcrB,KAAKqB,aACnBC,UAAWtB,KAAKsB,UAChBC,WAAYvB,KAAKuB,WACjBC,OAAQxB,KAAKwB,OACbC,IAAKzB,KAAKyB,IACVC,OAAQ1B,KAAK0B,OACbC,MAAO3B,KAAK2B,MACZC,IAAK5B,KAAK4B,IACVC,MAAO7B,KAAK6B,MACZC,UAAW9B,KAAK8B,UAChBC,qBAAsB/B,KAAK+B,qBAC3BC,UAAWhC,KAAKgC,UAChBC,cAAejC,KAAKiC,cACpBC,MAAOlC,KAAKkC,MACZ7B,OAAQL,KAAKK,OACb8B,SAAUnC,KAAKmC,UAEfzB,EAAA,QAAAE,IAAA,2CAAMwB,KAAK,SAASC,KAAK,Y","ignoreList":[]}
1
+ {"version":3,"names":["defaultStyleCss","KolButtonDefaultStyle0","KolButton","this","catchRef","ref","buttonWcRef","getValue","_value","focus","kolFocus","_a","render","h","Host","key","class","KolButtonWcTag","button","_accessKey","_ariaControls","_ariaDescription","_ariaExpanded","_ariaSelected","_customClass","_disabled","_hideLabel","_icons","_id","_label","_name","_on","_shortKey","_syncValueBySelector","_tabIndex","_tooltipAlign","_type","_variant","name","slot"],"sources":["src/components/button/style.scss?tag=kol-button&mode=default&encapsulation=shadow","src/components/button/shadow.tsx"],"sourcesContent":["@use '../style' as *;\n@use '../button' as *;\n","import type {\n\tAccessKeyPropType,\n\tAlternativeButtonLinkRolePropType,\n\tAriaDescriptionPropType,\n\tButtonCallbacksPropType,\n\tButtonProps,\n\tButtonTypePropType,\n\tButtonVariantPropType,\n\tCustomClassPropType,\n\tFocusableElement,\n\tIconsPropType,\n\tLabelWithExpertSlotPropType,\n\tShortKeyPropType,\n\tStencilUnknown,\n\tStringified,\n\tSyncValueBySelectorPropType,\n\tTooltipAlignPropType,\n} from '../../schema';\nimport type { JSX } from '@stencil/core';\nimport { Component, h, Host, Method, Prop } from '@stencil/core';\nimport { KolButtonWcTag } from '../../core/component-names';\n\n@Component({\n\ttag: 'kol-button',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: {\n\t\tdelegatesFocus: true,\n\t},\n})\nexport class KolButton implements ButtonProps, FocusableElement {\n\tprivate buttonWcRef?: HTMLKolButtonWcElement;\n\n\tprivate readonly catchRef = (ref?: HTMLKolButtonWcElement) => {\n\t\tthis.buttonWcRef = ref;\n\t};\n\n\t/**\n\t * Returns the current value.\n\t */\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async getValue(): Promise<Stringified<StencilUnknown> | undefined> {\n\t\treturn this._value;\n\t}\n\n\t/**\n\t * @deprecated Use kolFocus instead.\n\t */\n\t@Method()\n\tpublic async focus() {\n\t\tawait this.kolFocus();\n\t}\n\n\t/**\n\t * Programmatically focuses the button.\n\t */\n\t@Method()\n\tpublic async kolFocus() {\n\t\tawait this.buttonWcRef?.kolFocus();\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-button\">\n\t\t\t\t<KolButtonWcTag\n\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\tclass={{\n\t\t\t\t\t\tbutton: true,\n\t\t\t\t\t}}\n\t\t\t\t\t_accessKey={this._accessKey}\n\t\t\t\t\t_ariaControls={this._ariaControls}\n\t\t\t\t\t_ariaDescription={this._ariaDescription}\n\t\t\t\t\t_ariaExpanded={this._ariaExpanded}\n\t\t\t\t\t_ariaSelected={this._ariaSelected}\n\t\t\t\t\t_customClass={this._customClass}\n\t\t\t\t\t_disabled={this._disabled}\n\t\t\t\t\t_hideLabel={this._hideLabel}\n\t\t\t\t\t_icons={this._icons}\n\t\t\t\t\t_id={this._id}\n\t\t\t\t\t_label={this._label}\n\t\t\t\t\t_name={this._name}\n\t\t\t\t\t_on={this._on}\n\t\t\t\t\t_shortKey={this._shortKey}\n\t\t\t\t\t_syncValueBySelector={this._syncValueBySelector}\n\t\t\t\t\t_tabIndex={this._tabIndex}\n\t\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t\t_type={this._type}\n\t\t\t\t\t_value={this._value}\n\t\t\t\t\t_variant={this._variant}\n\t\t\t\t>\n\t\t\t\t\t<slot name=\"expert\" slot=\"expert\"></slot>\n\t\t\t\t</KolButtonWcTag>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines which key combination can be used to trigger or focus the interactive element of the component.\n\t */\n\t@Prop() public _accessKey?: AccessKeyPropType;\n\n\t/**\n\t * Defines which elements are controlled by this component. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls)\n\t */\n\t@Prop() public _ariaControls?: string;\n\n\t/**\n\t * Defines the value for the aria-description attribute.\n\t */\n\t@Prop() public _ariaDescription?: AriaDescriptionPropType;\n\n\t/**\n\t * Defines whether the interactive element of the component expanded something. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)\n\t */\n\t@Prop() public _ariaExpanded?: boolean;\n\n\t/**\n\t * Defines whether the interactive element of the component is selected (e.g. role=tab). (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected)\n\t */\n\t@Prop() public _ariaSelected?: boolean;\n\n\t/**\n\t * Defines the custom class attribute if _variant=\"custom\" is set.\n\t */\n\t@Prop() public _customClass?: CustomClassPropType;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Hides the caption by default and displays the caption text with a tooltip when the\n\t * interactive element is focused or the mouse is over it.\n\t * @TODO: Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hideLabel?: boolean = false;\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: IconsPropType;\n\n\t/**\n\t * Defines the internal ID of the primary component element.\n\t */\n\t@Prop() public _id?: string;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label!: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Defines the technical name of an input field.\n\t */\n\t@Prop() public _name?: string;\n\n\t/**\n\t * Defines the callback functions for button events.\n\t */\n\t@Prop() public _on?: ButtonCallbacksPropType<StencilUnknown>;\n\n\t/**\n\t * Defines the role of the components primary element.\n\t *\n\t * @deprecated We prefer the semantic role of the HTML element and do not allow for customization. We will remove this prop in the future.\n\t */\n\t@Prop() public _role?: AlternativeButtonLinkRolePropType;\n\n\t/**\n\t * Adds a visual short key hint to the component.\n\t */\n\t@Prop() public _shortKey?: ShortKeyPropType;\n\n\t/**\n\t * Selector for synchronizing the value with another input element.\n\t * @internal\n\t */\n\t@Prop() public _syncValueBySelector?: SyncValueBySelectorPropType;\n\n\t/**\n\t * Defines which tab-index the primary element of the component has. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)\n\t */\n\t@Prop() public _tabIndex?: number;\n\n\t/**\n\t * Defines where to show the Tooltip preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _tooltipAlign?: TooltipAlignPropType = 'top';\n\n\t/**\n\t * Defines either the type of the component or of the components interactive element.\n\t */\n\t@Prop() public _type?: ButtonTypePropType = 'button';\n\n\t/**\n\t * Defines the value that the button emits on click.\n\t */\n\t@Prop() public _value?: Stringified<StencilUnknown>;\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: ButtonVariantPropType = 'normal';\n}\n"],"mappings":";;;wGAAA,MAAMA,EAAkB,08LACxB,MAAAC,EAAeD,E,MC8BFE,EAAS,M,yBAGJC,KAAAC,SAAYC,IAC5BF,KAAKG,YAAcD,CAAG,E,4LAgGc,M,gBAOC,M,qOAqDgB,M,WAKV,S,oCAUM,Q,CAnK3C,cAAME,GACZ,OAAOJ,KAAKK,M,CAON,WAAMC,SACNN,KAAKO,U,CAOL,cAAMA,G,aACNC,EAAAR,KAAKG,eAAW,MAAAK,SAAA,SAAAA,EAAED,W,CAGlB,MAAAE,GACN,OACCC,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAM,cACXH,EAACI,EAAc,CAAAF,IAAA,2CACdV,IAAKF,KAAKC,SACVY,MAAO,CACNE,OAAQ,MAETC,WAAYhB,KAAKgB,WACjBC,cAAejB,KAAKiB,cACpBC,iBAAkBlB,KAAKkB,iBACvBC,cAAenB,KAAKmB,cACpBC,cAAepB,KAAKoB,cACpBC,aAAcrB,KAAKqB,aACnBC,UAAWtB,KAAKsB,UAChBC,WAAYvB,KAAKuB,WACjBC,OAAQxB,KAAKwB,OACbC,IAAKzB,KAAKyB,IACVC,OAAQ1B,KAAK0B,OACbC,MAAO3B,KAAK2B,MACZC,IAAK5B,KAAK4B,IACVC,UAAW7B,KAAK6B,UAChBC,qBAAsB9B,KAAK8B,qBAC3BC,UAAW/B,KAAK+B,UAChBC,cAAehC,KAAKgC,cACpBC,MAAOjC,KAAKiC,MACZ5B,OAAQL,KAAKK,OACb6B,SAAUlC,KAAKkC,UAEfxB,EAAA,QAAAE,IAAA,2CAAMuB,KAAK,SAASC,KAAK,Y","ignoreList":[]}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as n,h as e,H as t}from"./index-1766e6f4.js";import{m as i}from"./index-4fb06bbb.js";import{t as o}from"./i18n-820d85c7.js";import{n as a}from"./dev.utils-3a332b59.js";import{w as s}from"./validation-c4177384.js";import{b as l,c as r}from"./component-names-4cb1c62b.js";import{v as d}from"./has-closer-a7dc359b.js";import{v as c}from"./label-51d66c9d.js";import"./i18n-b14e6088.js";const h="/*\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(44rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\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 * {\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 rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: 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 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: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip: rect(0 0 0 0);\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 border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 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}\n@layer kol-global {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\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 }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\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 cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n .badge-text-hint {\n background-color: lightgray;\n color: black;\n }\n}\n@layer kol-component {\n .kol-tooltip-wc {\n display: contents;\n contain: layout;\n }\n .kol-tooltip-wc .tooltip-floating {\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n display: none;\n position: fixed;\n visibility: hidden;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n max-width: 90vw;\n max-height: 90vh;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width);\n }\n /* Shared between content and arrow */\n .kol-tooltip-wc .tooltip-area {\n background-color: #fff;\n color: #000;\n }\n .kol-tooltip-wc .tooltip-arrow {\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n position: absolute;\n transform: rotate(45deg);\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n z-index: 999;\n }\n .kol-tooltip-wc .tooltip-content {\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n :host > div.card {\n height: 100%;\n position: relative;\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n }\n .close {\n position: absolute;\n top: 0;\n right: 0;\n }\n}",p=h,b=class{constructor(e){n(this,e),this.nonce=a(),this.close=()=>{var n;void 0!==(null===(n=this._on)||void 0===n?void 0:n.onClose)&&this._on.onClose(new Event("Close"))},this.on={onClick:this.close},this.validateOnValue=n=>"object"==typeof n&&null!==n&&"function"==typeof n.onClose,this._on=void 0,this._hasCloser=!1,this._label=void 0,this._level=1,this.state={_label:""}}render(){return e(t,{key:"ba9c33136d395bf985180d4b5286a86deb0e795e",class:"kol-card"},e("div",{key:"35ec2b86170c04be8cb8cba3517d3b802a47d9c9","aria-labelledby":this.nonce,class:"card",role:"group"},e(l,{key:"7b35c6013fb17aa62e37879049351d7191330b41",class:"header",id:this.nonce,_label:this.state._label,_level:this.state._level}),e("div",{key:"bc99bd0c8331a53d82195d116f941c39e0526dd4",class:"content"},e("slot",{key:"3f8fa8413d8c99ca9c2508bde5455ce84fae57d3"})),this.state._hasCloser&&e(r,{key:"437fa135d2fde68894381fffe0723998dcdc9195",class:"close",_hideLabel:!0,_icons:{left:{icon:"codicon codicon-close"}},_label:o("kol-close"),_on:this.on,_tooltipAlign:"left"})))}validateOn(n){this.validateOnValue(n)&&i(this,"_on",{onClose:n.onClose})}validateHasCloser(n){d(this,n)}validateLabel(n){c(this,n,{required:!0})}validateLevel(n){s(this,n)}componentWillLoad(){this.validateHasCloser(this._hasCloser),this.validateLabel(this._label),this.validateLevel(this._level),this.validateOn(this._on)}static get watchers(){return{_on:["validateOn"],_hasCloser:["validateHasCloser"],_label:["validateLabel"],_level:["validateLevel"]}}};b.style={default:p};export{b as kol_card};
4
+ import{r as n,h as e,H as t}from"./index-3bfee590.js";import{m as i}from"./index-50898179.js";import{t as o}from"./i18n-b4507b80.js";import{n as a}from"./dev.utils-7d7ddeeb.js";import{w as s}from"./validation-a88d38d8.js";import{b as l,c as r}from"./component-names-4cb1c62b.js";import{v as d}from"./has-closer-c90da2b1.js";import{v as c}from"./label-2d7e2d68.js";import"./i18n-b14e6088.js";const h="/*\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(44rem / var(--kolibri-root-font-size, 16));\n color: black;\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\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 * {\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 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 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: absolute;\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%; /* 100% needed for custom width from outside */\n margin: 0;\n padding: 0;\n border: none;\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}\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(16rem / 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 /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\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-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-component {\n .kol-tooltip-wc {\n display: contents;\n contain: layout;\n }\n .kol-tooltip-wc .tooltip-floating {\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);\n max-width: 90vw;\n max-height: 90vh;\n visibility: hidden;\n animation-duration: 0.25s;\n animation-iteration-count: 1;\n animation-name: fadeInOpacity;\n animation-timing-function: ease-in;\n }\n /* Shared between content and arrow */\n .kol-tooltip-wc .tooltip-area {\n color: #000;\n background-color: #fff;\n }\n .kol-tooltip-wc .tooltip-arrow {\n transform: rotate(45deg);\n position: absolute;\n z-index: 999;\n width: calc(10rem / var(--kolibri-root-font-size, 16));\n height: calc(10rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip-wc .tooltip-content {\n position: relative;\n z-index: 1000;\n }\n @keyframes fadeInOpacity {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n :host > div.card {\n /* Visible with forced colors */\n outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));\n position: relative;\n height: 100%;\n }\n .close {\n position: absolute;\n top: 0;\n right: 0;\n }\n}",p=h,b=class{constructor(e){n(this,e),this.nonce=a(),this.close=()=>{var n;void 0!==(null===(n=this._on)||void 0===n?void 0:n.onClose)&&this._on.onClose(new Event("Close"))},this.on={onClick:this.close},this.validateOnValue=n=>"object"==typeof n&&null!==n&&"function"==typeof n.onClose,this._on=void 0,this._hasCloser=!1,this._label=void 0,this._level=1,this.state={_label:""}}render(){return e(t,{key:"ba9c33136d395bf985180d4b5286a86deb0e795e",class:"kol-card"},e("div",{key:"35ec2b86170c04be8cb8cba3517d3b802a47d9c9","aria-labelledby":this.nonce,class:"card",role:"group"},e(l,{key:"7b35c6013fb17aa62e37879049351d7191330b41",class:"header",id:this.nonce,_label:this.state._label,_level:this.state._level}),e("div",{key:"bc99bd0c8331a53d82195d116f941c39e0526dd4",class:"content"},e("slot",{key:"3f8fa8413d8c99ca9c2508bde5455ce84fae57d3"})),this.state._hasCloser&&e(r,{key:"437fa135d2fde68894381fffe0723998dcdc9195",class:"close",_hideLabel:!0,_icons:{left:{icon:"codicon codicon-close"}},_label:o("kol-close"),_on:this.on,_tooltipAlign:"left"})))}validateOn(n){this.validateOnValue(n)&&i(this,"_on",{onClose:n.onClose})}validateHasCloser(n){d(this,n)}validateLabel(n){c(this,n,{required:!0})}validateLevel(n){s(this,n)}componentWillLoad(){this.validateHasCloser(this._hasCloser),this.validateLabel(this._label),this.validateLevel(this._level),this.validateOn(this._on)}static get watchers(){return{_on:["validateOn"],_hasCloser:["validateHasCloser"],_label:["validateLabel"],_level:["validateLevel"]}}};b.style={default:p};export{b as kol_card};