@public-ui/components 2.0.0 → 2.0.2

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 (848) hide show
  1. package/custom-elements.json +2 -9
  2. package/dist/cjs/{InternalUnderlinedAccessKey-13d98585.js → InternalUnderlinedAccessKey-6642b2c7.js} +1 -1
  3. package/dist/cjs/{InternalUnderlinedAccessKey-13d98585.js.map → InternalUnderlinedAccessKey-6642b2c7.js.map} +1 -1
  4. package/dist/cjs/{a11y.tipps-3cff218a.js → a11y.tipps-bde4c917.js} +1 -1
  5. package/dist/cjs/{a11y.tipps-3cff218a.js.map → a11y.tipps-bde4c917.js.map} +1 -1
  6. package/dist/cjs/access-key-0cc8c925.js +4 -0
  7. package/dist/cjs/access-key-0cc8c925.js.map +1 -0
  8. package/dist/cjs/{align-floating-elements-dca98687.js → align-floating-elements-656b8edb.js} +1 -1
  9. package/dist/cjs/align-floating-elements-656b8edb.js.map +1 -0
  10. package/dist/cjs/{alignment-516753a3.js → alignment-ed625336.js} +1 -1
  11. package/dist/cjs/alignment-ed625336.js.map +1 -0
  12. package/dist/cjs/alternative-button-link-role-d4424d08.js +4 -0
  13. package/dist/cjs/alternative-button-link-role-d4424d08.js.map +1 -0
  14. package/dist/cjs/app-globals-0b0132d3.js +4 -0
  15. package/dist/cjs/app-globals-0b0132d3.js.map +1 -0
  16. package/dist/cjs/{associated.controller-66de4b43.js → associated.controller-b24b75d0.js} +1 -1
  17. package/dist/cjs/associated.controller-b24b75d0.js.map +1 -0
  18. package/dist/cjs/{color-1cc0d5df.js → color-7a4690e4.js} +1 -1
  19. package/dist/cjs/{color-1cc0d5df.js.map → color-7a4690e4.js.map} +1 -1
  20. package/dist/cjs/{controller-7f8062fe.js → controller-0ccb739c.js} +1 -1
  21. package/dist/cjs/{controller-7f8062fe.js.map → controller-0ccb739c.js.map} +1 -1
  22. package/dist/cjs/{controller-d5f2264d.js → controller-2d5e8b0b.js} +1 -1
  23. package/dist/cjs/controller-2d5e8b0b.js.map +1 -0
  24. package/dist/cjs/{controller-b237a488.js → controller-3c7a8401.js} +1 -1
  25. package/dist/cjs/controller-3c7a8401.js.map +1 -0
  26. package/dist/cjs/{controller-bff44c4c.js → controller-924d172b.js} +1 -1
  27. package/dist/cjs/controller-924d172b.js.map +1 -0
  28. package/dist/cjs/{controller-c32a52d6.js → controller-e36ad432.js} +1 -1
  29. package/dist/cjs/controller-e36ad432.js.map +1 -0
  30. package/dist/cjs/{controller-icon-7021badf.js → controller-icon-71e37377.js} +1 -1
  31. package/dist/cjs/controller-icon-71e37377.js.map +1 -0
  32. package/dist/cjs/custom-class-00d4c432.js +4 -0
  33. package/dist/cjs/custom-class-00d4c432.js.map +1 -0
  34. package/dist/cjs/dev.utils-a6b6f115.js +4 -0
  35. package/dist/cjs/dev.utils-a6b6f115.js.map +1 -0
  36. package/dist/cjs/devtools-5d316ec1.js +4 -0
  37. package/dist/cjs/devtools-5d316ec1.js.map +1 -0
  38. package/dist/cjs/has-closer-135c8b18.js +4 -0
  39. package/dist/cjs/has-closer-135c8b18.js.map +1 -0
  40. package/dist/cjs/hide-label-869c662f.js +4 -0
  41. package/dist/cjs/hide-label-869c662f.js.map +1 -0
  42. package/dist/cjs/{i18n-b7ec2d1b.js → i18n-3094a3c4.js} +1 -1
  43. package/dist/cjs/{i18n-b7ec2d1b.js.map → i18n-3094a3c4.js.map} +1 -1
  44. package/dist/cjs/{icons-20f8bfb5.js → icons-cd5e767b.js} +1 -1
  45. package/dist/cjs/icons-cd5e767b.js.map +1 -0
  46. package/dist/cjs/image-source-4b6e0c0e.js +4 -0
  47. package/dist/cjs/image-source-4b6e0c0e.js.map +1 -0
  48. package/dist/cjs/index-3145a30d.js +4 -0
  49. package/dist/cjs/index-3145a30d.js.map +1 -0
  50. package/dist/cjs/index-e779e8b0.js +4 -0
  51. package/dist/cjs/index-e779e8b0.js.map +1 -0
  52. package/dist/cjs/index.cjs.js +1 -1
  53. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  54. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  55. package/dist/cjs/kol-alert-wc_2.cjs.entry.js +1 -1
  56. package/dist/cjs/kol-alert-wc_2.cjs.entry.js.map +1 -1
  57. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  58. package/dist/cjs/kol-alert.cjs.entry.js.map +1 -1
  59. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  60. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  61. package/dist/cjs/kol-avatar.cjs.entry.js.map +1 -1
  62. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  63. package/dist/cjs/kol-badge.cjs.entry.js.map +1 -1
  64. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  65. package/dist/cjs/kol-button-group-wc.cjs.entry.js +1 -1
  66. package/dist/cjs/kol-button-group.cjs.entry.js +1 -1
  67. package/dist/cjs/kol-button-link-text-switch.cjs.entry.js +1 -1
  68. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  69. package/dist/cjs/kol-button-wc_2.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-button-wc_2.cjs.entry.js.map +1 -1
  71. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  73. package/dist/cjs/kol-card.cjs.entry.js.map +1 -1
  74. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  75. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  77. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  78. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  79. package/dist/cjs/kol-image.cjs.entry.js.map +1 -1
  80. package/dist/cjs/kol-indented-text.cjs.entry.js +1 -1
  81. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  82. package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
  83. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  84. package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
  85. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  86. package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
  87. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  88. package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
  89. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  90. package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
  91. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
  93. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  94. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  95. package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
  96. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  97. package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
  98. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  99. package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
  100. package/dist/cjs/kol-input.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  102. package/dist/cjs/kol-kolibri.cjs.entry.js.map +1 -1
  103. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  104. package/dist/cjs/kol-link-group.cjs.entry.js +1 -1
  105. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  106. package/dist/cjs/kol-link-wc.cjs.entry.js.map +1 -1
  107. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  108. package/dist/cjs/kol-logo.cjs.entry.js +1 -1
  109. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  110. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  111. package/dist/cjs/kol-nav.cjs.entry.js.map +1 -1
  112. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  113. package/dist/cjs/kol-pagination.cjs.entry.js.map +1 -1
  114. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  115. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  116. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  117. package/dist/cjs/kol-quote.cjs.entry.js.map +1 -1
  118. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  119. package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
  120. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  121. package/dist/cjs/kol-span-wc.cjs.entry.js +1 -1
  122. package/dist/cjs/kol-span.cjs.entry.js +1 -1
  123. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  124. package/dist/cjs/kol-spin.cjs.entry.js.map +1 -1
  125. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  126. package/dist/cjs/kol-symbol.cjs.entry.js +1 -1
  127. package/dist/cjs/kol-table.cjs.entry.js +1 -1
  128. package/dist/cjs/kol-table.cjs.entry.js.map +1 -1
  129. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  130. package/dist/cjs/kol-tabs.cjs.entry.js.map +1 -1
  131. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  132. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  133. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  134. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  135. package/dist/cjs/kolibri.cjs.js +1 -1
  136. package/dist/cjs/kolibri.cjs.js.map +1 -1
  137. package/dist/cjs/{label-de5ebf4b.js → label-a5fa1288.js} +1 -1
  138. package/dist/cjs/label-a5fa1288.js.map +1 -0
  139. package/dist/cjs/loader.cjs.js +1 -1
  140. package/dist/cjs/open-ca19e687.js +4 -0
  141. package/dist/cjs/open-ca19e687.js.map +1 -0
  142. package/dist/cjs/{prop.validators-5f352bbf.js → prop.validators-03eee51d.js} +1 -1
  143. package/dist/cjs/prop.validators-03eee51d.js.map +1 -0
  144. package/dist/cjs/rows-7e3a7f8b.js +4 -0
  145. package/dist/cjs/rows-7e3a7f8b.js.map +1 -0
  146. package/dist/cjs/show-48f559f5.js +4 -0
  147. package/dist/cjs/show-48f559f5.js.map +1 -0
  148. package/dist/cjs/suggestions-2d56c664.js +4 -0
  149. package/dist/cjs/suggestions-2d56c664.js.map +1 -0
  150. package/dist/cjs/{tab-index-1cc9cecb.js → tab-index-3943c150.js} +1 -1
  151. package/dist/cjs/tab-index-3943c150.js.map +1 -0
  152. package/dist/cjs/{tooltip-align-d0446059.js → tooltip-align-d904bd68.js} +1 -1
  153. package/dist/cjs/tooltip-align-d904bd68.js.map +1 -0
  154. package/dist/cjs/{validation-90a278d7.js → validation-a0c362ef.js} +1 -1
  155. package/dist/cjs/validation-a0c362ef.js.map +1 -0
  156. package/dist/cjs/{validation-26535d0c.js → validation-c3b2105a.js} +1 -1
  157. package/dist/cjs/validation-c3b2105a.js.map +1 -0
  158. package/dist/components/align-floating-elements.js +1 -1
  159. package/dist/components/align-floating-elements.js.map +1 -1
  160. package/dist/components/color.js +1 -1
  161. package/dist/components/color.js.map +1 -1
  162. package/dist/components/component13.js +1 -1
  163. package/dist/components/component14.js +1 -1
  164. package/dist/components/component14.js.map +1 -1
  165. package/dist/components/component15.js +1 -1
  166. package/dist/components/component15.js.map +1 -1
  167. package/dist/components/component2.js +1 -1
  168. package/dist/components/component2.js.map +1 -1
  169. package/dist/components/component3.js +1 -1
  170. package/dist/components/component3.js.map +1 -1
  171. package/dist/components/component4.js.map +1 -1
  172. package/dist/components/component5.js +1 -1
  173. package/dist/components/component5.js.map +1 -1
  174. package/dist/components/component6.js +1 -1
  175. package/dist/components/component6.js.map +1 -1
  176. package/dist/components/component8.js +1 -1
  177. package/dist/components/component8.js.map +1 -1
  178. package/dist/components/component9.js +1 -1
  179. package/dist/components/component9.js.map +1 -1
  180. package/dist/components/controller-icon.js +1 -1
  181. package/dist/components/controller-icon.js.map +1 -1
  182. package/dist/components/controller.js +1 -1
  183. package/dist/components/controller.js.map +1 -1
  184. package/dist/components/controller2.js +1 -1
  185. package/dist/components/controller2.js.map +1 -1
  186. package/dist/components/controller3.js.map +1 -1
  187. package/dist/components/controller4.js +1 -1
  188. package/dist/components/controller4.js.map +1 -1
  189. package/dist/components/devtools.js +1 -1
  190. package/dist/components/devtools.js.map +1 -1
  191. package/dist/components/has-closer.js +1 -1
  192. package/dist/components/has-closer.js.map +1 -1
  193. package/dist/components/i18n.js +1 -1
  194. package/dist/components/i18n.js.map +1 -1
  195. package/dist/components/image-source.js.map +1 -1
  196. package/dist/components/index.js +1 -1
  197. package/dist/components/index.js.map +1 -1
  198. package/dist/components/kol-accordion.js +1 -1
  199. package/dist/components/kol-avatar.js +1 -1
  200. package/dist/components/kol-avatar.js.map +1 -1
  201. package/dist/components/kol-breadcrumb.js +1 -1
  202. package/dist/components/kol-button-link.js +1 -1
  203. package/dist/components/kol-card.js +1 -1
  204. package/dist/components/kol-card.js.map +1 -1
  205. package/dist/components/kol-details.js +1 -1
  206. package/dist/components/kol-form.js +1 -1
  207. package/dist/components/kol-image.js.map +1 -1
  208. package/dist/components/kol-input-checkbox.js +1 -1
  209. package/dist/components/kol-input-checkbox.js.map +1 -1
  210. package/dist/components/kol-input-color.js +1 -1
  211. package/dist/components/kol-input-color.js.map +1 -1
  212. package/dist/components/kol-input-date.js +1 -1
  213. package/dist/components/kol-input-date.js.map +1 -1
  214. package/dist/components/kol-input-email.js +1 -1
  215. package/dist/components/kol-input-email.js.map +1 -1
  216. package/dist/components/kol-input-file.js +1 -1
  217. package/dist/components/kol-input-file.js.map +1 -1
  218. package/dist/components/kol-input-number.js +1 -1
  219. package/dist/components/kol-input-number.js.map +1 -1
  220. package/dist/components/kol-input-password.js +1 -1
  221. package/dist/components/kol-input-radio.js +1 -1
  222. package/dist/components/kol-input-radio.js.map +1 -1
  223. package/dist/components/kol-input-range.js +1 -1
  224. package/dist/components/kol-input-range.js.map +1 -1
  225. package/dist/components/kol-input-text.js +1 -1
  226. package/dist/components/kol-input-text.js.map +1 -1
  227. package/dist/components/kol-kolibri.js +1 -1
  228. package/dist/components/kol-kolibri.js.map +1 -1
  229. package/dist/components/kol-link-button.js +1 -1
  230. package/dist/components/kol-logo.js +1 -1
  231. package/dist/components/kol-modal.js +1 -1
  232. package/dist/components/kol-nav.js +1 -1
  233. package/dist/components/kol-nav.js.map +1 -1
  234. package/dist/components/kol-progress.js +1 -1
  235. package/dist/components/kol-quote.js +1 -1
  236. package/dist/components/kol-quote.js.map +1 -1
  237. package/dist/components/kol-spin.js.map +1 -1
  238. package/dist/components/kol-table.js +1 -1
  239. package/dist/components/kol-table.js.map +1 -1
  240. package/dist/components/kol-tabs.js +1 -1
  241. package/dist/components/kol-tabs.js.map +1 -1
  242. package/dist/components/kol-textarea.js +1 -1
  243. package/dist/components/kol-textarea.js.map +1 -1
  244. package/dist/components/label.js.map +1 -1
  245. package/dist/components/open.js +1 -1
  246. package/dist/components/open.js.map +1 -1
  247. package/dist/components/prop.validators.js +1 -1
  248. package/dist/components/prop.validators.js.map +1 -1
  249. package/dist/components/rows.js +1 -1
  250. package/dist/components/rows.js.map +1 -1
  251. package/dist/components/shadow.js +1 -1
  252. package/dist/components/shadow.js.map +1 -1
  253. package/dist/components/shadow2.js +1 -1
  254. package/dist/components/shadow3.js +1 -1
  255. package/dist/components/show.js +1 -1
  256. package/dist/components/show.js.map +1 -1
  257. package/dist/components/suggestions.js +1 -1
  258. package/dist/components/suggestions.js.map +1 -1
  259. package/dist/components/tab-index.js +1 -1
  260. package/dist/components/tab-index.js.map +1 -1
  261. package/dist/components/tooltip-align.js.map +1 -1
  262. package/dist/components/validation.js +1 -1
  263. package/dist/components/validation.js.map +1 -1
  264. package/dist/esm/{InternalUnderlinedAccessKey-2c5af489.js → InternalUnderlinedAccessKey-3d146073.js} +1 -1
  265. package/dist/esm/{InternalUnderlinedAccessKey-2c5af489.js.map → InternalUnderlinedAccessKey-3d146073.js.map} +1 -1
  266. package/dist/esm/{a11y.tipps-e9cad37c.js → a11y.tipps-f14bff66.js} +1 -1
  267. package/dist/esm/{a11y.tipps-e9cad37c.js.map → a11y.tipps-f14bff66.js.map} +1 -1
  268. package/dist/esm/access-key-d9d3ed1b.js +4 -0
  269. package/dist/esm/access-key-d9d3ed1b.js.map +1 -0
  270. package/dist/esm/{align-floating-elements-cadb5c5b.js → align-floating-elements-e1edfaae.js} +1 -1
  271. package/dist/esm/align-floating-elements-e1edfaae.js.map +1 -0
  272. package/dist/esm/{alignment-2f00e22b.js → alignment-3d2d9391.js} +1 -1
  273. package/dist/esm/alignment-3d2d9391.js.map +1 -0
  274. package/dist/esm/alternative-button-link-role-30b77bb6.js +4 -0
  275. package/dist/esm/alternative-button-link-role-30b77bb6.js.map +1 -0
  276. package/dist/esm/app-globals-b8186895.js +4 -0
  277. package/dist/esm/app-globals-b8186895.js.map +1 -0
  278. package/dist/esm/{associated.controller-4725864a.js → associated.controller-e642039e.js} +1 -1
  279. package/dist/esm/associated.controller-e642039e.js.map +1 -0
  280. package/dist/esm/{color-4fd77675.js → color-d4c99af3.js} +1 -1
  281. package/dist/esm/{color-4fd77675.js.map → color-d4c99af3.js.map} +1 -1
  282. package/dist/esm/{controller-bca2b59f.js → controller-3577ccfd.js} +1 -1
  283. package/dist/esm/controller-3577ccfd.js.map +1 -0
  284. package/dist/esm/{controller-24fd3c96.js → controller-7d1c3e92.js} +1 -1
  285. package/dist/esm/controller-7d1c3e92.js.map +1 -0
  286. package/dist/esm/{controller-8eba0306.js → controller-8698d9f4.js} +1 -1
  287. package/dist/esm/controller-8698d9f4.js.map +1 -0
  288. package/dist/esm/{controller-b59b53b5.js → controller-9df5563d.js} +1 -1
  289. package/dist/esm/controller-9df5563d.js.map +1 -0
  290. package/dist/esm/{controller-15b86c4c.js → controller-b2e189a7.js} +1 -1
  291. package/dist/esm/{controller-15b86c4c.js.map → controller-b2e189a7.js.map} +1 -1
  292. package/dist/esm/{controller-icon-745779e5.js → controller-icon-508a2cb1.js} +1 -1
  293. package/dist/esm/controller-icon-508a2cb1.js.map +1 -0
  294. package/dist/esm/custom-class-6cd3b804.js +4 -0
  295. package/dist/esm/custom-class-6cd3b804.js.map +1 -0
  296. package/dist/esm/dev.utils-889226ab.js +4 -0
  297. package/dist/esm/dev.utils-889226ab.js.map +1 -0
  298. package/dist/esm/devtools-cc168b70.js +4 -0
  299. package/dist/esm/devtools-cc168b70.js.map +1 -0
  300. package/dist/esm/{has-closer-4da7b42f.js → has-closer-0601d93e.js} +1 -1
  301. package/dist/esm/has-closer-0601d93e.js.map +1 -0
  302. package/dist/esm/{hide-label-aca36293.js → hide-label-6593df3f.js} +1 -1
  303. package/dist/esm/hide-label-6593df3f.js.map +1 -0
  304. package/dist/esm/{i18n-e1b2767a.js → i18n-9a4c8edc.js} +1 -1
  305. package/dist/esm/{i18n-e1b2767a.js.map → i18n-9a4c8edc.js.map} +1 -1
  306. package/dist/esm/{icons-6e5f46e1.js → icons-44b68720.js} +1 -1
  307. package/dist/esm/icons-44b68720.js.map +1 -0
  308. package/dist/esm/{image-source-9e600678.js → image-source-4b04e9f2.js} +1 -1
  309. package/dist/esm/image-source-4b04e9f2.js.map +1 -0
  310. package/dist/{cjs/index-bb49d83a.js → esm/index-12eec578.js} +1 -1
  311. package/dist/esm/index-12eec578.js.map +1 -0
  312. package/dist/esm/index-5dfe6d77.js +4 -0
  313. package/dist/esm/index-5dfe6d77.js.map +1 -0
  314. package/dist/esm/index.js +1 -1
  315. package/dist/esm/kol-abbr.entry.js +1 -1
  316. package/dist/esm/kol-accordion.entry.js +1 -1
  317. package/dist/esm/kol-alert-wc_2.entry.js +1 -1
  318. package/dist/esm/kol-alert-wc_2.entry.js.map +1 -1
  319. package/dist/esm/kol-alert.entry.js +1 -1
  320. package/dist/esm/kol-alert.entry.js.map +1 -1
  321. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  322. package/dist/esm/kol-avatar.entry.js +1 -1
  323. package/dist/esm/kol-avatar.entry.js.map +1 -1
  324. package/dist/esm/kol-badge.entry.js +1 -1
  325. package/dist/esm/kol-badge.entry.js.map +1 -1
  326. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  327. package/dist/esm/kol-button-group-wc.entry.js +1 -1
  328. package/dist/esm/kol-button-group.entry.js +1 -1
  329. package/dist/esm/kol-button-link-text-switch.entry.js +1 -1
  330. package/dist/esm/kol-button-link.entry.js +1 -1
  331. package/dist/esm/kol-button-wc_2.entry.js +1 -1
  332. package/dist/esm/kol-button-wc_2.entry.js.map +1 -1
  333. package/dist/esm/kol-button.entry.js +1 -1
  334. package/dist/esm/kol-card.entry.js +1 -1
  335. package/dist/esm/kol-card.entry.js.map +1 -1
  336. package/dist/esm/kol-details.entry.js +1 -1
  337. package/dist/esm/kol-form.entry.js +1 -1
  338. package/dist/esm/kol-heading.entry.js +1 -1
  339. package/dist/esm/kol-icon.entry.js +1 -1
  340. package/dist/esm/kol-image.entry.js +1 -1
  341. package/dist/esm/kol-image.entry.js.map +1 -1
  342. package/dist/esm/kol-indented-text.entry.js +1 -1
  343. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  344. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  345. package/dist/esm/kol-input-color.entry.js +1 -1
  346. package/dist/esm/kol-input-color.entry.js.map +1 -1
  347. package/dist/esm/kol-input-date.entry.js +1 -1
  348. package/dist/esm/kol-input-date.entry.js.map +1 -1
  349. package/dist/esm/kol-input-email.entry.js +1 -1
  350. package/dist/esm/kol-input-email.entry.js.map +1 -1
  351. package/dist/esm/kol-input-file.entry.js +1 -1
  352. package/dist/esm/kol-input-file.entry.js.map +1 -1
  353. package/dist/esm/kol-input-number.entry.js +1 -1
  354. package/dist/esm/kol-input-number.entry.js.map +1 -1
  355. package/dist/esm/kol-input-password.entry.js +1 -1
  356. package/dist/esm/kol-input-radio.entry.js +1 -1
  357. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  358. package/dist/esm/kol-input-range.entry.js +1 -1
  359. package/dist/esm/kol-input-range.entry.js.map +1 -1
  360. package/dist/esm/kol-input-text.entry.js +1 -1
  361. package/dist/esm/kol-input-text.entry.js.map +1 -1
  362. package/dist/esm/kol-input.entry.js +1 -1
  363. package/dist/esm/kol-kolibri.entry.js +1 -1
  364. package/dist/esm/kol-kolibri.entry.js.map +1 -1
  365. package/dist/esm/kol-link-button.entry.js +1 -1
  366. package/dist/esm/kol-link-group.entry.js +1 -1
  367. package/dist/esm/kol-link-wc.entry.js +1 -1
  368. package/dist/esm/kol-link-wc.entry.js.map +1 -1
  369. package/dist/esm/kol-link.entry.js +1 -1
  370. package/dist/esm/kol-logo.entry.js +1 -1
  371. package/dist/esm/kol-modal.entry.js +1 -1
  372. package/dist/esm/kol-nav.entry.js +1 -1
  373. package/dist/esm/kol-nav.entry.js.map +1 -1
  374. package/dist/esm/kol-pagination.entry.js +1 -1
  375. package/dist/esm/kol-pagination.entry.js.map +1 -1
  376. package/dist/esm/kol-popover-wc.entry.js +1 -1
  377. package/dist/esm/kol-progress.entry.js +1 -1
  378. package/dist/esm/kol-quote.entry.js +1 -1
  379. package/dist/esm/kol-quote.entry.js.map +1 -1
  380. package/dist/esm/kol-select.entry.js +1 -1
  381. package/dist/esm/kol-select.entry.js.map +1 -1
  382. package/dist/esm/kol-skip-nav.entry.js +1 -1
  383. package/dist/esm/kol-span-wc.entry.js +1 -1
  384. package/dist/esm/kol-span.entry.js +1 -1
  385. package/dist/esm/kol-spin.entry.js +1 -1
  386. package/dist/esm/kol-spin.entry.js.map +1 -1
  387. package/dist/esm/kol-split-button.entry.js +1 -1
  388. package/dist/esm/kol-symbol.entry.js +1 -1
  389. package/dist/esm/kol-table.entry.js +1 -1
  390. package/dist/esm/kol-table.entry.js.map +1 -1
  391. package/dist/esm/kol-tabs.entry.js +1 -1
  392. package/dist/esm/kol-tabs.entry.js.map +1 -1
  393. package/dist/esm/kol-textarea.entry.js +1 -1
  394. package/dist/esm/kol-textarea.entry.js.map +1 -1
  395. package/dist/esm/kol-toast-container.entry.js +1 -1
  396. package/dist/esm/kol-version.entry.js +1 -1
  397. package/dist/esm/kolibri.js +1 -1
  398. package/dist/esm/kolibri.js.map +1 -1
  399. package/dist/esm/{label-32f655e1.js → label-8258848f.js} +1 -1
  400. package/dist/esm/label-8258848f.js.map +1 -0
  401. package/dist/esm/loader.js +1 -1
  402. package/dist/esm/{open-4fee4c52.js → open-329b7907.js} +1 -1
  403. package/dist/esm/open-329b7907.js.map +1 -0
  404. package/dist/esm/prop.validators-c12923a5.js +4 -0
  405. package/dist/esm/prop.validators-c12923a5.js.map +1 -0
  406. package/dist/esm/{rows-32475866.js → rows-14d6fb92.js} +1 -1
  407. package/dist/esm/rows-14d6fb92.js.map +1 -0
  408. package/dist/esm/{show-0ced7b04.js → show-9a06c90e.js} +1 -1
  409. package/dist/esm/show-9a06c90e.js.map +1 -0
  410. package/dist/esm/{suggestions-4347211e.js → suggestions-dc12a293.js} +1 -1
  411. package/dist/esm/suggestions-dc12a293.js.map +1 -0
  412. package/dist/esm/{tab-index-555bc0fc.js → tab-index-9e8a3c00.js} +1 -1
  413. package/dist/esm/tab-index-9e8a3c00.js.map +1 -0
  414. package/dist/esm/{tooltip-align-9f02b487.js → tooltip-align-a3d27a89.js} +1 -1
  415. package/dist/esm/tooltip-align-a3d27a89.js.map +1 -0
  416. package/dist/esm/validation-17e52787.js +4 -0
  417. package/dist/esm/validation-17e52787.js.map +1 -0
  418. package/dist/esm/{validation-54b01567.js → validation-3c0b31d7.js} +1 -1
  419. package/dist/esm/validation-3c0b31d7.js.map +1 -0
  420. package/dist/kolibri/{InternalUnderlinedAccessKey-2c5af489.js → InternalUnderlinedAccessKey-3d146073.js} +1 -1
  421. package/dist/kolibri/{a11y.tipps-e9cad37c.js → a11y.tipps-f14bff66.js} +1 -1
  422. package/dist/kolibri/access-key-d9d3ed1b.js +4 -0
  423. package/dist/kolibri/access-key-d9d3ed1b.js.map +1 -0
  424. package/dist/kolibri/{align-floating-elements-cadb5c5b.js → align-floating-elements-e1edfaae.js} +1 -1
  425. package/dist/kolibri/{align-floating-elements-cadb5c5b.js.map → align-floating-elements-e1edfaae.js.map} +1 -1
  426. package/dist/kolibri/alignment-3d2d9391.js +4 -0
  427. package/dist/kolibri/alignment-3d2d9391.js.map +1 -0
  428. package/dist/kolibri/alternative-button-link-role-30b77bb6.js +4 -0
  429. package/dist/kolibri/alternative-button-link-role-30b77bb6.js.map +1 -0
  430. package/dist/kolibri/app-globals-b8186895.js +4 -0
  431. package/dist/kolibri/app-globals-b8186895.js.map +1 -0
  432. package/dist/kolibri/{associated.controller-4725864a.js → associated.controller-e642039e.js} +1 -1
  433. package/dist/kolibri/associated.controller-e642039e.js.map +1 -0
  434. package/dist/kolibri/{color-4fd77675.js → color-d4c99af3.js} +1 -1
  435. package/dist/kolibri/{color-4fd77675.js.map → color-d4c99af3.js.map} +1 -1
  436. package/dist/kolibri/{controller-bca2b59f.js → controller-3577ccfd.js} +1 -1
  437. package/dist/kolibri/controller-3577ccfd.js.map +1 -0
  438. package/dist/kolibri/controller-7d1c3e92.js +4 -0
  439. package/dist/kolibri/controller-7d1c3e92.js.map +1 -0
  440. package/dist/kolibri/{controller-8eba0306.js → controller-8698d9f4.js} +1 -1
  441. package/dist/kolibri/controller-8698d9f4.js.map +1 -0
  442. package/dist/kolibri/{controller-b59b53b5.js → controller-9df5563d.js} +1 -1
  443. package/dist/kolibri/controller-9df5563d.js.map +1 -0
  444. package/dist/kolibri/{controller-15b86c4c.js → controller-b2e189a7.js} +1 -1
  445. package/dist/kolibri/controller-icon-508a2cb1.js +4 -0
  446. package/dist/kolibri/controller-icon-508a2cb1.js.map +1 -0
  447. package/dist/kolibri/custom-class-6cd3b804.js +4 -0
  448. package/dist/kolibri/custom-class-6cd3b804.js.map +1 -0
  449. package/dist/kolibri/dev.utils-889226ab.js +4 -0
  450. package/dist/kolibri/dev.utils-889226ab.js.map +1 -0
  451. package/dist/kolibri/devtools-cc168b70.js +4 -0
  452. package/dist/kolibri/devtools-cc168b70.js.map +1 -0
  453. package/dist/kolibri/has-closer-0601d93e.js +4 -0
  454. package/dist/kolibri/has-closer-0601d93e.js.map +1 -0
  455. package/dist/kolibri/hide-label-6593df3f.js +4 -0
  456. package/dist/kolibri/hide-label-6593df3f.js.map +1 -0
  457. package/dist/kolibri/{i18n-e1b2767a.js → i18n-9a4c8edc.js} +1 -1
  458. package/dist/kolibri/{i18n-e1b2767a.js.map → i18n-9a4c8edc.js.map} +1 -1
  459. package/dist/kolibri/icons-44b68720.js +4 -0
  460. package/dist/kolibri/icons-44b68720.js.map +1 -0
  461. package/dist/kolibri/image-source-4b04e9f2.js +4 -0
  462. package/dist/kolibri/image-source-4b04e9f2.js.map +1 -0
  463. package/dist/kolibri/index-12eec578.js +4 -0
  464. package/dist/kolibri/index-12eec578.js.map +1 -0
  465. package/dist/kolibri/index-5dfe6d77.js +5 -0
  466. package/dist/kolibri/index-5dfe6d77.js.map +1 -0
  467. package/dist/kolibri/index.esm.js +1 -1
  468. package/dist/kolibri/kol-abbr.entry.js +1 -1
  469. package/dist/kolibri/kol-accordion.entry.js +1 -1
  470. package/dist/kolibri/kol-alert-wc_2.entry.js +1 -1
  471. package/dist/kolibri/kol-alert-wc_2.entry.js.map +1 -1
  472. package/dist/kolibri/kol-alert.entry.js +1 -1
  473. package/dist/kolibri/kol-alert.entry.js.map +1 -1
  474. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  475. package/dist/kolibri/kol-avatar.entry.js +1 -1
  476. package/dist/kolibri/kol-avatar.entry.js.map +1 -1
  477. package/dist/kolibri/kol-badge.entry.js +1 -1
  478. package/dist/kolibri/kol-badge.entry.js.map +1 -1
  479. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  480. package/dist/kolibri/kol-button-group-wc.entry.js +1 -1
  481. package/dist/kolibri/kol-button-group.entry.js +1 -1
  482. package/dist/kolibri/kol-button-link-text-switch.entry.js +1 -1
  483. package/dist/kolibri/kol-button-link.entry.js +1 -1
  484. package/dist/kolibri/kol-button-wc_2.entry.js +1 -1
  485. package/dist/kolibri/kol-button-wc_2.entry.js.map +1 -1
  486. package/dist/kolibri/kol-button.entry.js +1 -1
  487. package/dist/kolibri/kol-card.entry.js +1 -1
  488. package/dist/kolibri/kol-card.entry.js.map +1 -1
  489. package/dist/kolibri/kol-details.entry.js +1 -1
  490. package/dist/kolibri/kol-form.entry.js +1 -1
  491. package/dist/kolibri/kol-heading.entry.js +1 -1
  492. package/dist/kolibri/kol-icon.entry.js +1 -1
  493. package/dist/kolibri/kol-image.entry.js +1 -1
  494. package/dist/kolibri/kol-image.entry.js.map +1 -1
  495. package/dist/kolibri/kol-indented-text.entry.js +1 -1
  496. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  497. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  498. package/dist/kolibri/kol-input-color.entry.js +1 -1
  499. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  500. package/dist/kolibri/kol-input-date.entry.js +1 -1
  501. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  502. package/dist/kolibri/kol-input-email.entry.js +1 -1
  503. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  504. package/dist/kolibri/kol-input-file.entry.js +1 -1
  505. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  506. package/dist/kolibri/kol-input-number.entry.js +1 -1
  507. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  508. package/dist/kolibri/kol-input-password.entry.js +1 -1
  509. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  510. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  511. package/dist/kolibri/kol-input-range.entry.js +1 -1
  512. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  513. package/dist/kolibri/kol-input-text.entry.js +1 -1
  514. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  515. package/dist/kolibri/kol-input.entry.js +1 -1
  516. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  517. package/dist/kolibri/kol-kolibri.entry.js.map +1 -1
  518. package/dist/kolibri/kol-link-button.entry.js +1 -1
  519. package/dist/kolibri/kol-link-group.entry.js +1 -1
  520. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  521. package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
  522. package/dist/kolibri/kol-link.entry.js +1 -1
  523. package/dist/kolibri/kol-logo.entry.js +1 -1
  524. package/dist/kolibri/kol-modal.entry.js +1 -1
  525. package/dist/kolibri/kol-nav.entry.js +1 -1
  526. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  527. package/dist/kolibri/kol-pagination.entry.js +1 -1
  528. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  529. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  530. package/dist/kolibri/kol-progress.entry.js +1 -1
  531. package/dist/kolibri/kol-quote.entry.js +1 -1
  532. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  533. package/dist/kolibri/kol-select.entry.js +1 -1
  534. package/dist/kolibri/kol-select.entry.js.map +1 -1
  535. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  536. package/dist/kolibri/kol-span-wc.entry.js +1 -1
  537. package/dist/kolibri/kol-span.entry.js +1 -1
  538. package/dist/kolibri/kol-spin.entry.js +1 -1
  539. package/dist/kolibri/kol-spin.entry.js.map +1 -1
  540. package/dist/kolibri/kol-split-button.entry.js +1 -1
  541. package/dist/kolibri/kol-symbol.entry.js +1 -1
  542. package/dist/kolibri/kol-symbol.entry.js.map +1 -1
  543. package/dist/kolibri/kol-table.entry.js +1 -1
  544. package/dist/kolibri/kol-table.entry.js.map +1 -1
  545. package/dist/kolibri/kol-tabs.entry.js +1 -1
  546. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  547. package/dist/kolibri/kol-textarea.entry.js +1 -1
  548. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  549. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  550. package/dist/kolibri/kol-version.entry.js +1 -1
  551. package/dist/kolibri/kolibri.esm.js +1 -1
  552. package/dist/kolibri/kolibri.esm.js.map +1 -1
  553. package/dist/kolibri/label-8258848f.js +4 -0
  554. package/dist/kolibri/label-8258848f.js.map +1 -0
  555. package/dist/kolibri/open-329b7907.js +4 -0
  556. package/dist/kolibri/open-329b7907.js.map +1 -0
  557. package/dist/kolibri/prop.validators-c12923a5.js +4 -0
  558. package/dist/kolibri/prop.validators-c12923a5.js.map +1 -0
  559. package/dist/kolibri/rows-14d6fb92.js +4 -0
  560. package/dist/kolibri/rows-14d6fb92.js.map +1 -0
  561. package/dist/kolibri/show-9a06c90e.js +4 -0
  562. package/dist/kolibri/show-9a06c90e.js.map +1 -0
  563. package/dist/kolibri/suggestions-dc12a293.js +4 -0
  564. package/dist/kolibri/suggestions-dc12a293.js.map +1 -0
  565. package/dist/kolibri/{tab-index-555bc0fc.js → tab-index-9e8a3c00.js} +1 -1
  566. package/dist/kolibri/tab-index-9e8a3c00.js.map +1 -0
  567. package/dist/kolibri/tooltip-align-a3d27a89.js +4 -0
  568. package/dist/kolibri/tooltip-align-a3d27a89.js.map +1 -0
  569. package/dist/kolibri/validation-17e52787.js +4 -0
  570. package/dist/kolibri/validation-17e52787.js.map +1 -0
  571. package/dist/kolibri/{validation-54b01567.js → validation-3c0b31d7.js} +1 -1
  572. package/dist/kolibri/validation-3c0b31d7.js.map +1 -0
  573. package/dist/types/components/@deprecated/input/controller-icon.d.ts +1 -1
  574. package/dist/types/components/@deprecated/input/controller.d.ts +1 -1
  575. package/dist/types/components/@deprecated/input/types-icon.d.ts +1 -1
  576. package/dist/types/components/@deprecated/input/types.d.ts +1 -1
  577. package/dist/types/components/@else/all/component.d.ts +1 -1
  578. package/dist/types/components/abbr/types.d.ts +1 -1
  579. package/dist/types/components/accordion/types.d.ts +1 -1
  580. package/dist/types/components/alert/types.d.ts +1 -1
  581. package/dist/types/components/avatar/types.d.ts +1 -1
  582. package/dist/types/components/badge/types.d.ts +1 -1
  583. package/dist/types/components/breadcrumb/types.d.ts +1 -1
  584. package/dist/types/components/button/types.d.ts +1 -1
  585. package/dist/types/components/button-group/types.d.ts +1 -1
  586. package/dist/types/components/button-link/types.d.ts +1 -1
  587. package/dist/types/components/button-link-text-switch/types.d.ts +1 -1
  588. package/dist/types/components/card/types.d.ts +1 -1
  589. package/dist/types/components/details/types.d.ts +1 -1
  590. package/dist/types/components/form/types.d.ts +1 -1
  591. package/dist/types/components/heading/types.d.ts +1 -1
  592. package/dist/types/components/heading/validation.d.ts +1 -1
  593. package/dist/types/components/icon/types.d.ts +1 -1
  594. package/dist/types/components/image/types.d.ts +1 -1
  595. package/dist/types/components/indented-text/types.d.ts +1 -1
  596. package/dist/types/components/input/types.d.ts +1 -1
  597. package/dist/types/components/input-adapter-leanup/associated.controller.d.ts +1 -1
  598. package/dist/types/components/input-adapter-leanup/controller.d.ts +1 -1
  599. package/dist/types/components/input-adapter-leanup/types.d.ts +1 -1
  600. package/dist/types/components/input-checkbox/controller.d.ts +1 -1
  601. package/dist/types/components/input-checkbox/types.d.ts +1 -1
  602. package/dist/types/components/input-color/controller.d.ts +1 -1
  603. package/dist/types/components/input-color/types.d.ts +1 -1
  604. package/dist/types/components/input-date/controller.d.ts +1 -1
  605. package/dist/types/components/input-date/types.d.ts +1 -1
  606. package/dist/types/components/input-email/controller.d.ts +1 -1
  607. package/dist/types/components/input-email/types.d.ts +1 -1
  608. package/dist/types/components/input-file/controller.d.ts +1 -1
  609. package/dist/types/components/input-file/types.d.ts +1 -1
  610. package/dist/types/components/input-number/controller.d.ts +1 -1
  611. package/dist/types/components/input-number/types.d.ts +1 -1
  612. package/dist/types/components/input-password/controller.d.ts +1 -1
  613. package/dist/types/components/input-password/types.d.ts +1 -1
  614. package/dist/types/components/input-radio/controller.d.ts +1 -1
  615. package/dist/types/components/input-radio/types.d.ts +1 -1
  616. package/dist/types/components/input-range/component.d.ts +4 -1
  617. package/dist/types/components/input-range/controller.d.ts +1 -1
  618. package/dist/types/components/input-range/types.d.ts +1 -1
  619. package/dist/types/components/input-text/controller.d.ts +1 -1
  620. package/dist/types/components/input-text/types.d.ts +1 -1
  621. package/dist/types/components/kolibri/component.d.ts +0 -5
  622. package/dist/types/components/kolibri/types.d.ts +1 -3
  623. package/dist/types/components/link/types.d.ts +1 -1
  624. package/dist/types/components/link-button/types.d.ts +1 -1
  625. package/dist/types/components/link-group/types.d.ts +1 -1
  626. package/dist/types/components/logo/types.d.ts +1 -1
  627. package/dist/types/components/modal/types.d.ts +1 -1
  628. package/dist/types/components/nav/types.d.ts +1 -1
  629. package/dist/types/components/nav/validation.d.ts +1 -1
  630. package/dist/types/components/pagination/types.d.ts +1 -1
  631. package/dist/types/components/popover/types.d.ts +1 -1
  632. package/dist/types/components/progress/types.d.ts +1 -1
  633. package/dist/types/components/quote/types.d.ts +1 -1
  634. package/dist/types/components/select/controller.d.ts +1 -1
  635. package/dist/types/components/select/types.d.ts +1 -1
  636. package/dist/types/components/skip-nav/types.d.ts +1 -1
  637. package/dist/types/components/span/types.d.ts +1 -1
  638. package/dist/types/components/spin/types.d.ts +1 -1
  639. package/dist/types/components/split-button/types.d.ts +1 -1
  640. package/dist/types/components/symbol/types.d.ts +1 -1
  641. package/dist/types/components/table/types.d.ts +1 -1
  642. package/dist/types/components/tabs/types.d.ts +1 -1
  643. package/dist/types/components/textarea/controller.d.ts +1 -1
  644. package/dist/types/components/textarea/types.d.ts +1 -1
  645. package/dist/types/components/toaster/types.d.ts +1 -1
  646. package/dist/types/components/tooltip/types.d.ts +1 -1
  647. package/dist/types/components/version/types.d.ts +1 -1
  648. package/dist/types/components.d.ts +2 -10
  649. package/dist/types/core/declare.d.ts +1 -1
  650. package/dist/types/core/i18n.d.ts +1 -1
  651. package/dist/types/core/index.d.ts +1 -1
  652. package/dist/types/i18n.d.ts +1 -1
  653. package/dist/types/types/button-link-text.d.ts +1 -1
  654. package/dist/types/types/props/access-key.d.ts +1 -1
  655. package/dist/types/types/props/adjust-height.d.ts +1 -1
  656. package/dist/types/types/props/alert.d.ts +1 -1
  657. package/dist/types/types/props/align.d.ts +1 -1
  658. package/dist/types/types/props/alternative-button-link-role.d.ts +1 -1
  659. package/dist/types/types/props/aria-controls.d.ts +1 -1
  660. package/dist/types/types/props/aria-current-value.d.ts +1 -1
  661. package/dist/types/types/props/aria-expanded.d.ts +1 -1
  662. package/dist/types/types/props/aria-selected.d.ts +1 -1
  663. package/dist/types/types/props/button-callbacks.d.ts +1 -1
  664. package/dist/types/types/props/button-type.d.ts +1 -1
  665. package/dist/types/types/props/button-variant.d.ts +1 -1
  666. package/dist/types/types/props/checked.d.ts +1 -1
  667. package/dist/types/types/props/collapsible.d.ts +1 -1
  668. package/dist/types/types/props/color.d.ts +1 -1
  669. package/dist/types/types/props/custom-class.d.ts +1 -1
  670. package/dist/types/types/props/disabled.d.ts +1 -1
  671. package/dist/types/types/props/download.d.ts +1 -1
  672. package/dist/types/types/props/has-closer.d.ts +1 -1
  673. package/dist/types/types/props/has-compact-button.d.ts +1 -1
  674. package/dist/types/types/props/has-counter.d.ts +1 -1
  675. package/dist/types/types/props/heading-variant.d.ts +1 -1
  676. package/dist/types/types/props/hide-error.d.ts +1 -1
  677. package/dist/types/types/props/hide-label.d.ts +1 -1
  678. package/dist/types/types/props/href.d.ts +1 -1
  679. package/dist/types/types/props/icons.d.ts +1 -1
  680. package/dist/types/types/props/id.d.ts +1 -1
  681. package/dist/types/types/props/image-source.d.ts +1 -1
  682. package/dist/types/types/props/indeterminate.d.ts +1 -1
  683. package/dist/types/types/props/label.d.ts +1 -1
  684. package/dist/types/types/props/link-on-callbacks.d.ts +1 -1
  685. package/dist/types/types/props/link-target.d.ts +1 -1
  686. package/dist/types/types/props/max.d.ts +1 -1
  687. package/dist/types/types/props/multiple.d.ts +1 -1
  688. package/dist/types/types/props/name.d.ts +1 -1
  689. package/dist/types/types/props/open.d.ts +1 -1
  690. package/dist/types/types/props/options.d.ts +1 -1
  691. package/dist/types/types/props/read-only.d.ts +1 -1
  692. package/dist/types/types/props/required.d.ts +1 -1
  693. package/dist/types/types/props/rows.d.ts +1 -1
  694. package/dist/types/types/props/show.d.ts +1 -1
  695. package/dist/types/types/props/suggestions.d.ts +1 -1
  696. package/dist/types/types/props/tooltip-align.d.ts +1 -1
  697. package/dist/types/types/props/touched.d.ts +1 -1
  698. package/dist/types/types/props/variant/spin.d.ts +1 -1
  699. package/dist/types/utils/dev.utils.d.ts +2 -3
  700. package/dist/types/utils/prop.validators.d.ts +3 -3
  701. package/dist/types/utils/validators/alignment.d.ts +1 -1
  702. package/dist/types/utils/validators/loading.d.ts +1 -1
  703. package/dist/types/utils/validators/tab-index.d.ts +1 -1
  704. package/doc/badge.md +17 -0
  705. package/doc/input-color.md +2 -1
  706. package/doc/kolibri.md +5 -11
  707. package/doc/toaster.md +6 -0
  708. package/package.json +1 -1
  709. package/vscode-custom-data.json +1 -5
  710. package/dist/cjs/access-key-3f7e20a4.js +0 -4
  711. package/dist/cjs/access-key-3f7e20a4.js.map +0 -1
  712. package/dist/cjs/align-floating-elements-dca98687.js.map +0 -1
  713. package/dist/cjs/alignment-516753a3.js.map +0 -1
  714. package/dist/cjs/alternative-button-link-role-e640cd3e.js +0 -4
  715. package/dist/cjs/alternative-button-link-role-e640cd3e.js.map +0 -1
  716. package/dist/cjs/app-globals-c1bdbf21.js +0 -4
  717. package/dist/cjs/app-globals-c1bdbf21.js.map +0 -1
  718. package/dist/cjs/associated.controller-66de4b43.js.map +0 -1
  719. package/dist/cjs/controller-b237a488.js.map +0 -1
  720. package/dist/cjs/controller-bff44c4c.js.map +0 -1
  721. package/dist/cjs/controller-c32a52d6.js.map +0 -1
  722. package/dist/cjs/controller-d5f2264d.js.map +0 -1
  723. package/dist/cjs/controller-icon-7021badf.js.map +0 -1
  724. package/dist/cjs/custom-class-f6c69910.js +0 -4
  725. package/dist/cjs/custom-class-f6c69910.js.map +0 -1
  726. package/dist/cjs/dev.utils-dd53475e.js +0 -4
  727. package/dist/cjs/dev.utils-dd53475e.js.map +0 -1
  728. package/dist/cjs/devtools-5b98bd4e.js +0 -4
  729. package/dist/cjs/devtools-5b98bd4e.js.map +0 -1
  730. package/dist/cjs/has-closer-884ff2c9.js +0 -4
  731. package/dist/cjs/has-closer-884ff2c9.js.map +0 -1
  732. package/dist/cjs/hide-label-c4baa68a.js +0 -4
  733. package/dist/cjs/hide-label-c4baa68a.js.map +0 -1
  734. package/dist/cjs/icons-20f8bfb5.js.map +0 -1
  735. package/dist/cjs/image-source-0601c693.js +0 -4
  736. package/dist/cjs/image-source-0601c693.js.map +0 -1
  737. package/dist/cjs/index-a2400b65.js +0 -5
  738. package/dist/cjs/index-a2400b65.js.map +0 -1
  739. package/dist/cjs/index-bb49d83a.js.map +0 -1
  740. package/dist/cjs/label-de5ebf4b.js.map +0 -1
  741. package/dist/cjs/open-4a152c75.js +0 -4
  742. package/dist/cjs/open-4a152c75.js.map +0 -1
  743. package/dist/cjs/prop.validators-5f352bbf.js.map +0 -1
  744. package/dist/cjs/rows-4798c8ee.js +0 -4
  745. package/dist/cjs/rows-4798c8ee.js.map +0 -1
  746. package/dist/cjs/show-705b299e.js +0 -4
  747. package/dist/cjs/show-705b299e.js.map +0 -1
  748. package/dist/cjs/suggestions-54b14d40.js +0 -4
  749. package/dist/cjs/suggestions-54b14d40.js.map +0 -1
  750. package/dist/cjs/tab-index-1cc9cecb.js.map +0 -1
  751. package/dist/cjs/tooltip-align-d0446059.js.map +0 -1
  752. package/dist/cjs/validation-26535d0c.js.map +0 -1
  753. package/dist/cjs/validation-90a278d7.js.map +0 -1
  754. package/dist/esm/access-key-1625dd20.js +0 -4
  755. package/dist/esm/access-key-1625dd20.js.map +0 -1
  756. package/dist/esm/align-floating-elements-cadb5c5b.js.map +0 -1
  757. package/dist/esm/alignment-2f00e22b.js.map +0 -1
  758. package/dist/esm/alternative-button-link-role-f981a27b.js +0 -4
  759. package/dist/esm/alternative-button-link-role-f981a27b.js.map +0 -1
  760. package/dist/esm/app-globals-b23d4e7b.js +0 -4
  761. package/dist/esm/app-globals-b23d4e7b.js.map +0 -1
  762. package/dist/esm/associated.controller-4725864a.js.map +0 -1
  763. package/dist/esm/controller-24fd3c96.js.map +0 -1
  764. package/dist/esm/controller-8eba0306.js.map +0 -1
  765. package/dist/esm/controller-b59b53b5.js.map +0 -1
  766. package/dist/esm/controller-bca2b59f.js.map +0 -1
  767. package/dist/esm/controller-icon-745779e5.js.map +0 -1
  768. package/dist/esm/custom-class-f42c69f8.js +0 -4
  769. package/dist/esm/custom-class-f42c69f8.js.map +0 -1
  770. package/dist/esm/dev.utils-61c61d76.js +0 -4
  771. package/dist/esm/dev.utils-61c61d76.js.map +0 -1
  772. package/dist/esm/devtools-2ad36829.js +0 -4
  773. package/dist/esm/devtools-2ad36829.js.map +0 -1
  774. package/dist/esm/has-closer-4da7b42f.js.map +0 -1
  775. package/dist/esm/hide-label-aca36293.js.map +0 -1
  776. package/dist/esm/icons-6e5f46e1.js.map +0 -1
  777. package/dist/esm/image-source-9e600678.js.map +0 -1
  778. package/dist/esm/index-c1312005.js +0 -4
  779. package/dist/esm/index-c1312005.js.map +0 -1
  780. package/dist/esm/index-e9d20d00.js +0 -5
  781. package/dist/esm/index-e9d20d00.js.map +0 -1
  782. package/dist/esm/label-32f655e1.js.map +0 -1
  783. package/dist/esm/open-4fee4c52.js.map +0 -1
  784. package/dist/esm/prop.validators-2e3fde52.js +0 -4
  785. package/dist/esm/prop.validators-2e3fde52.js.map +0 -1
  786. package/dist/esm/rows-32475866.js.map +0 -1
  787. package/dist/esm/show-0ced7b04.js.map +0 -1
  788. package/dist/esm/suggestions-4347211e.js.map +0 -1
  789. package/dist/esm/tab-index-555bc0fc.js.map +0 -1
  790. package/dist/esm/tooltip-align-9f02b487.js.map +0 -1
  791. package/dist/esm/validation-54b01567.js.map +0 -1
  792. package/dist/esm/validation-b86b914b.js +0 -4
  793. package/dist/esm/validation-b86b914b.js.map +0 -1
  794. package/dist/kolibri/access-key-1625dd20.js +0 -4
  795. package/dist/kolibri/access-key-1625dd20.js.map +0 -1
  796. package/dist/kolibri/alignment-2f00e22b.js +0 -4
  797. package/dist/kolibri/alignment-2f00e22b.js.map +0 -1
  798. package/dist/kolibri/alternative-button-link-role-f981a27b.js +0 -4
  799. package/dist/kolibri/alternative-button-link-role-f981a27b.js.map +0 -1
  800. package/dist/kolibri/app-globals-b23d4e7b.js +0 -4
  801. package/dist/kolibri/app-globals-b23d4e7b.js.map +0 -1
  802. package/dist/kolibri/associated.controller-4725864a.js.map +0 -1
  803. package/dist/kolibri/controller-24fd3c96.js +0 -4
  804. package/dist/kolibri/controller-24fd3c96.js.map +0 -1
  805. package/dist/kolibri/controller-8eba0306.js.map +0 -1
  806. package/dist/kolibri/controller-b59b53b5.js.map +0 -1
  807. package/dist/kolibri/controller-bca2b59f.js.map +0 -1
  808. package/dist/kolibri/controller-icon-745779e5.js +0 -4
  809. package/dist/kolibri/controller-icon-745779e5.js.map +0 -1
  810. package/dist/kolibri/custom-class-f42c69f8.js +0 -4
  811. package/dist/kolibri/custom-class-f42c69f8.js.map +0 -1
  812. package/dist/kolibri/dev.utils-61c61d76.js +0 -4
  813. package/dist/kolibri/dev.utils-61c61d76.js.map +0 -1
  814. package/dist/kolibri/devtools-2ad36829.js +0 -4
  815. package/dist/kolibri/devtools-2ad36829.js.map +0 -1
  816. package/dist/kolibri/has-closer-4da7b42f.js +0 -4
  817. package/dist/kolibri/has-closer-4da7b42f.js.map +0 -1
  818. package/dist/kolibri/hide-label-aca36293.js +0 -4
  819. package/dist/kolibri/hide-label-aca36293.js.map +0 -1
  820. package/dist/kolibri/icons-6e5f46e1.js +0 -4
  821. package/dist/kolibri/icons-6e5f46e1.js.map +0 -1
  822. package/dist/kolibri/image-source-9e600678.js +0 -4
  823. package/dist/kolibri/image-source-9e600678.js.map +0 -1
  824. package/dist/kolibri/index-c1312005.js +0 -4
  825. package/dist/kolibri/index-c1312005.js.map +0 -1
  826. package/dist/kolibri/index-e9d20d00.js +0 -5
  827. package/dist/kolibri/index-e9d20d00.js.map +0 -1
  828. package/dist/kolibri/label-32f655e1.js +0 -4
  829. package/dist/kolibri/label-32f655e1.js.map +0 -1
  830. package/dist/kolibri/open-4fee4c52.js +0 -4
  831. package/dist/kolibri/open-4fee4c52.js.map +0 -1
  832. package/dist/kolibri/prop.validators-2e3fde52.js +0 -4
  833. package/dist/kolibri/prop.validators-2e3fde52.js.map +0 -1
  834. package/dist/kolibri/rows-32475866.js +0 -4
  835. package/dist/kolibri/rows-32475866.js.map +0 -1
  836. package/dist/kolibri/show-0ced7b04.js +0 -4
  837. package/dist/kolibri/show-0ced7b04.js.map +0 -1
  838. package/dist/kolibri/suggestions-4347211e.js +0 -4
  839. package/dist/kolibri/suggestions-4347211e.js.map +0 -1
  840. package/dist/kolibri/tab-index-555bc0fc.js.map +0 -1
  841. package/dist/kolibri/tooltip-align-9f02b487.js +0 -4
  842. package/dist/kolibri/tooltip-align-9f02b487.js.map +0 -1
  843. package/dist/kolibri/validation-54b01567.js.map +0 -1
  844. package/dist/kolibri/validation-b86b914b.js +0 -4
  845. package/dist/kolibri/validation-b86b914b.js.map +0 -1
  846. /package/dist/kolibri/{InternalUnderlinedAccessKey-2c5af489.js.map → InternalUnderlinedAccessKey-3d146073.js.map} +0 -0
  847. /package/dist/kolibri/{a11y.tipps-e9cad37c.js.map → a11y.tipps-f14bff66.js.map} +0 -0
  848. /package/dist/kolibri/{controller-15b86c4c.js.map → controller-b2e189a7.js.map} +0 -0
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-a2400b65.js"),i18n=require("./i18n-b7ec2d1b.js"),hasCloser=require("./has-closer-884ff2c9.js"),label=require("./label-de5ebf4b.js"),dev_utils=require("./dev.utils-dd53475e.js"),prop_validators=require("./prop.validators-5f352bbf.js"),validation=require("./validation-90a278d7.js");require("./index-bb49d83a.js"),require("./a11y.tipps-3cff218a.js"),require("./reuse-a4c8450e.js");const alertTypeOptions=["default","info","success","warning","error"],alertVariantOptions=["card","msg"],Icon=e=>index.h("kol-icon",{class:"heading-icon",_label:"string"==typeof e.label&&e.label.length>0?"":e.ariaLabel,_icons:e.icon}),AlertIcon=e=>{switch(e.type){case"error":return index.h(Icon,{ariaLabel:i18n.translate("kol-error"),icon:"codicon codicon-error",label:e.label});case"info":return index.h(Icon,{ariaLabel:i18n.translate("kol-info"),icon:"codicon codicon-info",label:e.label});case"warning":return index.h(Icon,{ariaLabel:i18n.translate("kol-warning"),icon:"codicon codicon-warning",label:e.label});case"success":return index.h(Icon,{ariaLabel:i18n.translate("kol-success"),icon:"codicon codicon-pass",label:e.label});default:return index.h(Icon,{ariaLabel:i18n.translate("kol-message"),icon:"codicon codicon-comment",label:e.label})}},KolAlertWc=class{constructor(e){index.registerInstance(this,e),this.close=()=>{var e;void 0!==(null===(e=this._on)||void 0===e?void 0:e.onClose)&&this._on.onClose(new Event("Close"))},this.on={onClick:this.close},this.validateOnValue=e=>"object"==typeof e&&null!==e&&"function"==typeof e.onClose,this._alert=!1,this._hasCloser=!1,this._label=void 0,this._level=1,this._on=void 0,this._type="default",this._variant="msg",this.state={_level:1}}render(){var e;if(this.state._alert){try{dev_utils.Log.debug(["Navigator should vibrate ...",navigator.vibrate([100,75,100,75,100])])}catch(e){dev_utils.Log.debug("Navigator does not support vibration.")}setTimeout((()=>{this.validateAlert(!1)}),1e4)}return index.h(index.Host,{class:{alert:!0,[this.state._type]:!0,[this.state._variant]:!0,hasCloser:!!this.state._hasCloser},role:this.state._alert?"alert":void 0},index.h("div",{class:"heading"},index.h(AlertIcon,{label:this.state._label,type:this.state._type}),index.h("div",{class:"heading-content"},"string"==typeof this.state._label&&(null===(e=this.state._label)||void 0===e?void 0:e.length)>0&&index.h("kol-heading-wc",{_label:this.state._label,_level:this.state._level}),"msg"===this._variant&&index.h("div",{class:"content"},index.h("slot",null))),this.state._hasCloser&&index.h("kol-button-wc",{class:"close",_hideLabel:!0,_icons:{left:{icon:"codicon codicon-close"}},_label:i18n.translate("kol-close"),_on:this.on,_tooltipAlign:"left"})),"card"===this._variant&&index.h("div",{class:"content"},index.h("slot",null)))}validateAlert(e){prop_validators.watchBoolean(this,"_alert",e)}validateHasCloser(e){hasCloser.validateHasCloser(this,e)}validateLabel(e){label.validateLabel(this,e)}validateLevel(e){validation.watchHeadingLevel(this,e)}validateOn(e){this.validateOnValue(e)&&prop_validators.setState(this,"_on",{onClose:e.onClose})}validateType(e){prop_validators.watchValidator(this,"_type",(e=>"string"==typeof e&&alertTypeOptions.includes(e)),new Set(`String {${alertTypeOptions.join(", ")}`),e)}validateVariant(e){prop_validators.watchValidator(this,"_variant",(e=>"string"==typeof e&&alertVariantOptions.includes(e)),new Set(`AlertVariant {${alertVariantOptions.join(", ")}`),e)}componentWillLoad(){this.validateAlert(this._alert),this.validateHasCloser(this._hasCloser),this.validateLabel(this._label),this.validateLevel(this._level),this.validateOn(this._on),this.validateType(this._type),this.validateVariant(this._variant)}static get watchers(){return{_alert:["validateAlert"],_hasCloser:["validateHasCloser"],_label:["validateLabel"],_level:["validateLevel"],_on:["validateOn"],_type:["validateType"],_variant:["validateVariant"]}}},headingVariantPropTypeOptions=["h1","h2","h3","h4","h5","h6","strong"],validateHeadingVariant=(e,a)=>{prop_validators.watchValidator(e,"_variant",(e=>"string"==typeof e&&headingVariantPropTypeOptions.includes(e)),new Set([`KoliBriHeadingVariant {${headingVariantPropTypeOptions.join(", ")}`]),a)},KolHeadingWc=class{constructor(e){index.registerInstance(this,e),this.renderHeadline=(e,a)=>{const t="number"==typeof a&&a>0&&a<=6?`h${a}`:"strong",i=this._variant||t;return index.h(t,{class:{headline:!0,[`headline-${i}`]:!0}},e,index.h("slot",{name:"expert"}))},this.renderSecondaryHeadline=(e,a)=>{switch(a){case 1:return index.h("span",{class:"secondary-headline"},e);case 2:return index.h("h2",{class:"secondary-headline"},e);case 3:return index.h("h3",{class:"secondary-headline"},e);case 4:return index.h("h4",{class:"secondary-headline"},e);case 5:return index.h("h5",{class:"secondary-headline"},e);case 6:return index.h("h6",{class:"secondary-headline"},e);default:return index.h("strong",{class:"secondary-headline"},e)}},this._label=void 0,this._level=1,this._secondaryHeadline=void 0,this._variant=void 0,this.state={_label:"",_level:1}}validateLabel(e){label.validateLabelWithExpertSlot(this,e)}validateLevel(e){validation.watchHeadingLevel(this,e)}validateSecondaryHeadline(e){prop_validators.watchString(this,"_secondaryHeadline",e)}validateVariant(e){validateHeadingVariant(this,e)}componentWillLoad(){this.validateLabel(this._label),this.validateLevel(this._level),this.validateSecondaryHeadline(this._secondaryHeadline),this.validateVariant(this._variant)}render(){return index.h(index.Host,null,"string"==typeof this.state._secondaryHeadline&&this.state._secondaryHeadline.length>0?index.h("hgroup",null,this.renderHeadline(this.state._label,this.state._level),this.state._secondaryHeadline&&this.renderSecondaryHeadline(this.state._secondaryHeadline,this.state._level+1)):this.renderHeadline(this.state._label,this.state._level))}static get watchers(){return{_label:["validateLabel"],_level:["validateLevel"],_secondaryHeadline:["validateSecondaryHeadline"],_variant:["validateVariant"]}}};exports.kol_alert_wc=KolAlertWc,exports.kol_heading_wc=KolHeadingWc;
4
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-3145a30d.js"),i18n=require("./i18n-3094a3c4.js"),hasCloser=require("./has-closer-135c8b18.js"),label=require("./label-a5fa1288.js"),dev_utils=require("./dev.utils-a6b6f115.js"),prop_validators=require("./prop.validators-03eee51d.js"),validation=require("./validation-a0c362ef.js");require("./index-e779e8b0.js"),require("./a11y.tipps-bde4c917.js"),require("./reuse-a4c8450e.js");const alertTypeOptions=["default","info","success","warning","error"],alertVariantOptions=["card","msg"],Icon=e=>index.h("kol-icon",{class:"heading-icon",_label:"string"==typeof e.label&&e.label.length>0?"":e.ariaLabel,_icons:e.icon}),AlertIcon=e=>{switch(e.type){case"error":return index.h(Icon,{ariaLabel:i18n.translate("kol-error"),icon:"codicon codicon-error",label:e.label});case"info":return index.h(Icon,{ariaLabel:i18n.translate("kol-info"),icon:"codicon codicon-info",label:e.label});case"warning":return index.h(Icon,{ariaLabel:i18n.translate("kol-warning"),icon:"codicon codicon-warning",label:e.label});case"success":return index.h(Icon,{ariaLabel:i18n.translate("kol-success"),icon:"codicon codicon-pass",label:e.label});default:return index.h(Icon,{ariaLabel:i18n.translate("kol-message"),icon:"codicon codicon-comment",label:e.label})}},KolAlertWc=class{constructor(e){index.registerInstance(this,e),this.close=()=>{var e;void 0!==(null===(e=this._on)||void 0===e?void 0:e.onClose)&&this._on.onClose(new Event("Close"))},this.on={onClick:this.close},this.validateOnValue=e=>"object"==typeof e&&null!==e&&"function"==typeof e.onClose,this._alert=!1,this._hasCloser=!1,this._label=void 0,this._level=1,this._on=void 0,this._type="default",this._variant="msg",this.state={_level:1}}render(){var e;if(this.state._alert){try{dev_utils.Log.debug(["Navigator should vibrate ...",navigator.vibrate([100,75,100,75,100])])}catch(e){dev_utils.Log.debug("Navigator does not support vibration.")}setTimeout((()=>{this.validateAlert(!1)}),1e4)}return index.h(index.Host,{class:{alert:!0,[this.state._type]:!0,[this.state._variant]:!0,hasCloser:!!this.state._hasCloser},role:this.state._alert?"alert":void 0},index.h("div",{class:"heading"},index.h(AlertIcon,{label:this.state._label,type:this.state._type}),index.h("div",{class:"heading-content"},"string"==typeof this.state._label&&(null===(e=this.state._label)||void 0===e?void 0:e.length)>0&&index.h("kol-heading-wc",{_label:this.state._label,_level:this.state._level}),"msg"===this._variant&&index.h("div",{class:"content"},index.h("slot",null))),this.state._hasCloser&&index.h("kol-button-wc",{class:"close",_hideLabel:!0,_icons:{left:{icon:"codicon codicon-close"}},_label:i18n.translate("kol-close"),_on:this.on,_tooltipAlign:"left"})),"card"===this._variant&&index.h("div",{class:"content"},index.h("slot",null)))}validateAlert(e){prop_validators.watchBoolean(this,"_alert",e)}validateHasCloser(e){hasCloser.validateHasCloser(this,e)}validateLabel(e){label.validateLabel(this,e)}validateLevel(e){validation.watchHeadingLevel(this,e)}validateOn(e){this.validateOnValue(e)&&prop_validators.setState(this,"_on",{onClose:e.onClose})}validateType(e){prop_validators.watchValidator(this,"_type",(e=>"string"==typeof e&&alertTypeOptions.includes(e)),new Set(`String {${alertTypeOptions.join(", ")}`),e)}validateVariant(e){prop_validators.watchValidator(this,"_variant",(e=>"string"==typeof e&&alertVariantOptions.includes(e)),new Set(`AlertVariant {${alertVariantOptions.join(", ")}`),e)}componentWillLoad(){this.validateAlert(this._alert),this.validateHasCloser(this._hasCloser),this.validateLabel(this._label),this.validateLevel(this._level),this.validateOn(this._on),this.validateType(this._type),this.validateVariant(this._variant)}static get watchers(){return{_alert:["validateAlert"],_hasCloser:["validateHasCloser"],_label:["validateLabel"],_level:["validateLevel"],_on:["validateOn"],_type:["validateType"],_variant:["validateVariant"]}}},headingVariantPropTypeOptions=["h1","h2","h3","h4","h5","h6","strong"],validateHeadingVariant=(e,a)=>{prop_validators.watchValidator(e,"_variant",(e=>"string"==typeof e&&headingVariantPropTypeOptions.includes(e)),new Set([`KoliBriHeadingVariant {${headingVariantPropTypeOptions.join(", ")}`]),a)},KolHeadingWc=class{constructor(e){index.registerInstance(this,e),this.renderHeadline=(e,a)=>{const t="number"==typeof a&&a>0&&a<=6?`h${a}`:"strong",i=this._variant||t;return index.h(t,{class:{headline:!0,[`headline-${i}`]:!0}},e,index.h("slot",{name:"expert"}))},this.renderSecondaryHeadline=(e,a)=>{switch(a){case 1:return index.h("span",{class:"secondary-headline"},e);case 2:return index.h("h2",{class:"secondary-headline"},e);case 3:return index.h("h3",{class:"secondary-headline"},e);case 4:return index.h("h4",{class:"secondary-headline"},e);case 5:return index.h("h5",{class:"secondary-headline"},e);case 6:return index.h("h6",{class:"secondary-headline"},e);default:return index.h("strong",{class:"secondary-headline"},e)}},this._label=void 0,this._level=1,this._secondaryHeadline=void 0,this._variant=void 0,this.state={_label:"",_level:1}}validateLabel(e){label.validateLabelWithExpertSlot(this,e)}validateLevel(e){validation.watchHeadingLevel(this,e)}validateSecondaryHeadline(e){prop_validators.watchString(this,"_secondaryHeadline",e)}validateVariant(e){validateHeadingVariant(this,e)}componentWillLoad(){this.validateLabel(this._label),this.validateLevel(this._level),this.validateSecondaryHeadline(this._secondaryHeadline),this.validateVariant(this._variant)}render(){return index.h(index.Host,null,"string"==typeof this.state._secondaryHeadline&&this.state._secondaryHeadline.length>0?index.h("hgroup",null,this.renderHeadline(this.state._label,this.state._level),this.state._secondaryHeadline&&this.renderSecondaryHeadline(this.state._secondaryHeadline,this.state._level+1)):this.renderHeadline(this.state._label,this.state._level))}static get watchers(){return{_label:["validateLabel"],_level:["validateLevel"],_secondaryHeadline:["validateSecondaryHeadline"],_variant:["validateVariant"]}}};exports.kol_alert_wc=KolAlertWc,exports.kol_heading_wc=KolHeadingWc;
@@ -1 +1 @@
1
- {"file":"kol-alert-wc.kol-heading-wc.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;AAQO,MAAM,gBAAgB,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,CAAU,CAAC;AAGrF,MAAM,mBAAmB,GAAG,CAAC,MAAM,EAAE,KAAK,CAAU;;ACA3D,MAAM,IAAI,GAAG,CAAC,KAA0D;IACvE,OAAOA,sBAAU,KAAK,EAAC,cAAc,EAAC,MAAM,EAAE,OAAO,KAAK,CAAC,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,CAAC,IAAI,GAAI,CAAC;AACxJ,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,KAA2C;IAC7D,QAAQ,KAAK,CAAC,IAAI;QACjB,KAAK,OAAO;YACX,OAAOA,QAAC,IAAI,IAAC,SAAS,EAAEC,cAAS,CAAC,WAAW,CAAC,EAAE,IAAI,EAAC,uBAAuB,EAAC,KAAK,EAAE,KAAK,CAAC,KAAK,GAAI,CAAC;QACrG,KAAK,MAAM;YACV,OAAOD,QAAC,IAAI,IAAC,SAAS,EAAEC,cAAS,CAAC,UAAU,C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C,KAAc;QAC9CI,2BAAW,CAAC,IAAI,EAAE,oBAAoB,EAAE,KAAK,CAAC,CAAC;KAC/C;IAGM,eAAe,CAAC,KAA8B;QACpD,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;KACpC;IAEM,iBAAiB;QACvB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;QACxD,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;KACpC;IAuCM,MAAM;QACZ,QACCX,QAACG,UAAI,QACH,OAAO,IAAI,CAAC,KAAK,CAAC,kBAAkB,KAAK,QAAQ,IAAI,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC,MAAM,GAAG,CAAC,IAC7FH,wBACE,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EACzD,IAAI,CAAC,KAAK,CAAC,kBAAkB,IAAI,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,KAAK,CAAC,kBAAkB,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAC5G,KAET,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CACzD,CACK,EACN;KACF;;;;;;;;;;;;","names":["h","translate","Log","Host","watchBoolean","validateHasCloser","validateLabel","watchHeadingLevel","setState","watchValidator","validateLabelWithExpertSlot","watchString"],"sources":["src/components/alert/types.ts","src/components/alert/component.tsx","src/types/props/heading-variant.ts","src/components/heading/component.tsx"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { EventCallback } from '../../types/callbacks';\nimport { HeadingLevel } from '../../types/heading-level';\nimport { PropAlert } from '../../types/props/alert';\nimport { PropHasCloser } from '../../types/props/has-closer';\nimport { PropLabel } from '../../types/props/label';\n\nexport const alertTypeOptions = ['default', 'info', 'success', 'warning', 'error'] as const;\nexport type AlertType = (typeof alertTypeOptions)[number];\n\nexport const alertVariantOptions = ['card', 'msg'] as const;\nexport type AlertVariant = (typeof alertVariantOptions)[number];\n\nexport type KoliBriAlertEventCallbacks = {\n\tonClose?: EventCallback<Event>;\n};\n\ntype RequiredAlertProps = NonNullable<unknown>;\ntype OptionalAlertProps = {\n\tlevel: HeadingLevel;\n\ton: KoliBriAlertEventCallbacks;\n\ttype: AlertType;\n\tvariant: AlertVariant;\n} & PropLabel &\n\tPropAlert &\n\tPropHasCloser;\n\ntype RequiredAlertStates = RequiredAlertProps;\ntype OptionalAlertStates = OptionalAlertProps;\n\nexport type Props = Generic.Element.Members<RequiredAlertProps, OptionalAlertProps>;\nexport type States = Generic.Element.Members<RequiredAlertStates, OptionalAlertStates>;\nexport type API = Generic.Element.ComponentApi<RequiredAlertProps, OptionalAlertProps, RequiredAlertStates, OptionalAlertStates>;\n","import { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { translate } from '../../i18n';\nimport { HeadingLevel } from '../../types/heading-level';\nimport { HasCloserPropType, validateHasCloser } from '../../types/props/has-closer';\nimport { LabelPropType, validateLabel } from '../../types/props/label';\nimport { Log } from '../../utils/dev.utils';\nimport { setState, watchBoolean, watchValidator } from '../../utils/prop.validators';\nimport { watchHeadingLevel } from '../heading/validation';\nimport { AlertType, alertTypeOptions, AlertVariant, alertVariantOptions, API, KoliBriAlertEventCallbacks, States } from './types';\n\nconst Icon = (props: { ariaLabel: string; icon: string; label?: string }) => {\n\treturn <kol-icon class=\"heading-icon\" _label={typeof props.label === 'string' && props.label.length > 0 ? '' : props.ariaLabel} _icons={props.icon} />;\n};\n\nconst AlertIcon = (props: { label?: string; type?: AlertType }) => {\n\tswitch (props.type) {\n\t\tcase 'error':\n\t\t\treturn <Icon ariaLabel={translate('kol-error')} icon=\"codicon codicon-error\" label={props.label} />;\n\t\tcase 'info':\n\t\t\treturn <Icon ariaLabel={translate('kol-info')} icon=\"codicon codicon-info\" label={props.label} />;\n\t\tcase 'warning':\n\t\t\treturn <Icon ariaLabel={translate('kol-warning')} icon=\"codicon codicon-warning\" label={props.label} />;\n\t\tcase 'success':\n\t\t\treturn <Icon ariaLabel={translate('kol-success')} icon=\"codicon codicon-pass\" label={props.label} />;\n\t\tdefault:\n\t\t\treturn <Icon ariaLabel={translate('kol-message')} icon=\"codicon codicon-comment\" label={props.label} />;\n\t}\n};\n\n/**\n * @slot - Der Inhalt der Meldung.\n */\n@Component({\n\ttag: 'kol-alert-wc',\n\tshadow: false,\n})\nexport class KolAlertWc implements API {\n\tprivate readonly close = () => {\n\t\tif (this._on?.onClose !== undefined) {\n\t\t\tthis._on.onClose(new Event('Close'));\n\t\t}\n\t};\n\n\tprivate readonly on = {\n\t\tonClick: this.close,\n\t};\n\n\tpublic render(): JSX.Element {\n\t\tif (this.state._alert) {\n\t\t\t/**\n\t\t\t * - https://developer.mozilla.org/de/docs/Web/API/Navigator/vibrate\n\t\t\t * - https://googlechrome.github.io/samples/vibration/\n\t\t\t */\n\t\t\ttry {\n\t\t\t\tLog.debug(['Navigator should vibrate ...', navigator.vibrate([100, 75, 100, 75, 100])]);\n\t\t\t} catch (e) {\n\t\t\t\tLog.debug('Navigator does not support vibration.');\n\t\t\t}\n\n\t\t\tsetTimeout(() => {\n\t\t\t\tthis.validateAlert(false);\n\t\t\t}, 10000);\n\t\t}\n\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={{\n\t\t\t\t\talert: true,\n\t\t\t\t\t[this.state._type as string]: true,\n\t\t\t\t\t[this.state._variant as string]: true,\n\t\t\t\t\thasCloser: !!this.state._hasCloser,\n\t\t\t\t}}\n\t\t\t\trole={this.state._alert ? 'alert' : undefined}\n\t\t\t>\n\t\t\t\t<div class=\"heading\">\n\t\t\t\t\t<AlertIcon label={this.state._label} type={this.state._type} />\n\t\t\t\t\t<div class=\"heading-content\">\n\t\t\t\t\t\t{typeof this.state._label === 'string' && this.state._label?.length > 0 && (\n\t\t\t\t\t\t\t<kol-heading-wc _label={this.state._label} _level={this.state._level}></kol-heading-wc>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{this._variant === 'msg' && (\n\t\t\t\t\t\t\t<div class=\"content\">\n\t\t\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t\t{this.state._hasCloser && (\n\t\t\t\t\t\t<kol-button-wc\n\t\t\t\t\t\t\tclass=\"close\"\n\t\t\t\t\t\t\t_hideLabel\n\t\t\t\t\t\t\t_icons={{\n\t\t\t\t\t\t\t\tleft: {\n\t\t\t\t\t\t\t\t\ticon: 'codicon codicon-close',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t_label={translate('kol-close')}\n\t\t\t\t\t\t\t_on={this.on}\n\t\t\t\t\t\t\t_tooltipAlign=\"left\"\n\t\t\t\t\t\t></kol-button-wc>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t\t{this._variant === 'card' && (\n\t\t\t\t\t<div class=\"content\">\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t)}\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: States = {\n\t\t_level: 1,\n\t};\n\n\t@Watch('_alert')\n\tpublic validateAlert(value?: boolean): void {\n\t\twatchBoolean(this, '_alert', value);\n\t}\n\n\t@Watch('_hasCloser')\n\tpublic validateHasCloser(value?: HasCloserPropType): void {\n\t\tvalidateHasCloser(this, value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelPropType): void {\n\t\tvalidateLabel(this, value);\n\t}\n\n\t@Watch('_level')\n\tpublic validateLevel(value?: HeadingLevel): void {\n\t\twatchHeadingLevel(this, value);\n\t}\n\n\tprivate validateOnValue = (value: unknown): boolean =>\n\t\ttypeof value === 'object' && value !== null && typeof (value as KoliBriAlertEventCallbacks).onClose === 'function';\n\n\t@Watch('_on')\n\tpublic validateOn(value?: KoliBriAlertEventCallbacks): void {\n\t\tif (this.validateOnValue(value)) {\n\t\t\tsetState<KoliBriAlertEventCallbacks>(\n\t\t\t\tthis,\n\t\t\t\t'_on',\n\t\t\t\t{\n\t\t\t\t\tonClose: (value as KoliBriAlertEventCallbacks).onClose,\n\t\t\t\t}\n\t\t\t\t// {\n\t\t\t\t// \tafterPatch: (value: unknown) => {\n\t\t\t\t// \t\tthis._hasCloser = this.validateOnValue(value);\n\t\t\t\t// \t},\n\t\t\t\t// }\n\t\t\t);\n\t\t\t// } else {\n\t\t\t// \tsetState<KoliBriAlertEventCallbacks>(this, '_on', null, {\n\t\t\t// \t\tafterPatch: (value: unknown) => {\n\t\t\t// \t\t\tthis._hasCloser = this.validateOnValue(value);\n\t\t\t// \t\t},\n\t\t\t// \t});\n\t\t}\n\t}\n\n\t@Watch('_type')\n\tpublic validateType(value?: AlertType): void {\n\t\twatchValidator(\n\t\t\tthis,\n\t\t\t'_type',\n\t\t\t(value?) => typeof value === 'string' && alertTypeOptions.includes(value),\n\t\t\tnew Set(`String {${alertTypeOptions.join(', ')}`),\n\t\t\tvalue\n\t\t);\n\t}\n\n\t@Watch('_variant')\n\tpublic validateVariant(value?: AlertVariant): void {\n\t\twatchValidator(\n\t\t\tthis,\n\t\t\t'_variant',\n\t\t\t(value?) => typeof value === 'string' && alertVariantOptions.includes(value),\n\t\t\tnew Set(`AlertVariant {${alertVariantOptions.join(', ')}`),\n\t\t\tvalue\n\t\t);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateAlert(this._alert);\n\t\tthis.validateHasCloser(this._hasCloser);\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateLevel(this._level);\n\t\tthis.validateOn(this._on);\n\t\tthis.validateType(this._type);\n\t\tthis.validateVariant(this._variant);\n\t}\n}\n","/* types */\nimport { Generic } from '@a11y-ui/core';\nimport { watchValidator } from '../../utils/prop.validators';\n\nconst headingVariantPropTypeOptions = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'strong'] as const;\nexport type HeadingVariantPropType = (typeof headingVariantPropTypeOptions)[number];\n\n/**\n * Defines which variant should be used for presentation.\n */\nexport type PropHeadingVariant = {\n\tvariant: HeadingVariantPropType;\n};\n\n/* validator */\nexport const validateHeadingVariant = (component: Generic.Element.Component, value?: HeadingVariantPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t`_variant`,\n\t\t(value) => typeof value === 'string' && headingVariantPropTypeOptions.includes(value),\n\t\tnew Set([`KoliBriHeadingVariant {${headingVariantPropTypeOptions.join(', ')}`]),\n\t\tvalue\n\t);\n};\n","import { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { HeadingLevel } from '../../types/heading-level';\nimport { LabelWithExpertSlotPropType, validateLabelWithExpertSlot } from '../../types/props/label';\nimport { watchString } from '../../utils/prop.validators';\nimport { API, States } from './types';\nimport { watchHeadingLevel } from './validation';\nimport { HeadingVariantPropType, validateHeadingVariant } from '../../types/props/heading-variant';\n\n/**\n * @slot - Inhalt der Überschrift.\n */\n@Component({\n\ttag: 'kol-heading-wc',\n\tshadow: false,\n})\nexport class KolHeadingWc implements API {\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 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 * Setzt den Text einer weiteren Überschrift, einen Level kleiner, unter der Ersten.\n\t */\n\t@Prop() public _secondaryHeadline?: string;\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: HeadingVariantPropType;\n\n\t@State() public state: States = {\n\t\t_label: '', // ⚠ required\n\t\t_level: 1,\n\t};\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelWithExpertSlotPropType): void {\n\t\tvalidateLabelWithExpertSlot(this, value);\n\t}\n\n\t@Watch('_level')\n\tpublic validateLevel(value?: HeadingLevel): void {\n\t\twatchHeadingLevel(this, value);\n\t}\n\n\t@Watch('_secondaryHeadline')\n\tpublic validateSecondaryHeadline(value?: string): void {\n\t\twatchString(this, '_secondaryHeadline', value);\n\t}\n\n\t@Watch('_variant')\n\tpublic validateVariant(value?: HeadingVariantPropType): void {\n\t\tvalidateHeadingVariant(this, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateLevel(this._level);\n\t\tthis.validateSecondaryHeadline(this._secondaryHeadline);\n\t\tthis.validateVariant(this._variant);\n\t}\n\n\tprivate readonly renderHeadline = (headline: LabelWithExpertSlotPropType, level?: number): JSX.Element => {\n\t\tconst validHeadline = typeof level === 'number' && level > 0 && level <= 6;\n\t\tconst HeadlineTag = validHeadline ? `h${level}` : 'strong';\n\t\tconst variant = this._variant || HeadlineTag;\n\n\t\treturn (\n\t\t\t<HeadlineTag\n\t\t\t\tclass={{\n\t\t\t\t\theadline: true,\n\t\t\t\t\t[`headline-${variant}`]: true,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{headline}\n\t\t\t\t<slot name=\"expert\" />\n\t\t\t</HeadlineTag>\n\t\t);\n\t};\n\n\tprivate readonly renderSecondaryHeadline = (headline: string, level?: number): JSX.Element => {\n\t\tswitch (level) {\n\t\t\tcase 1: // if the headline is only strong\n\t\t\t\treturn <span class=\"secondary-headline\">{headline}</span>;\n\t\t\tcase 2: // if the headline is h1\n\t\t\t\treturn <h2 class=\"secondary-headline\">{headline}</h2>;\n\t\t\tcase 3: // if the headline is h2\n\t\t\t\treturn <h3 class=\"secondary-headline\">{headline}</h3>;\n\t\t\tcase 4: // if the headline is h3\n\t\t\t\treturn <h4 class=\"secondary-headline\">{headline}</h4>;\n\t\t\tcase 5: // if the headline is h4\n\t\t\t\treturn <h5 class=\"secondary-headline\">{headline}</h5>;\n\t\t\tcase 6: // if the headline is h5\n\t\t\t\treturn <h6 class=\"secondary-headline\">{headline}</h6>;\n\t\t\tdefault: // if the headline is h6\n\t\t\t\treturn <strong class=\"secondary-headline\">{headline}</strong>;\n\t\t}\n\t};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t{typeof this.state._secondaryHeadline === 'string' && this.state._secondaryHeadline.length > 0 ? (\n\t\t\t\t\t<hgroup>\n\t\t\t\t\t\t{this.renderHeadline(this.state._label, this.state._level)}\n\t\t\t\t\t\t{this.state._secondaryHeadline && this.renderSecondaryHeadline(this.state._secondaryHeadline, this.state._level + 1)}\n\t\t\t\t\t</hgroup>\n\t\t\t\t) : (\n\t\t\t\t\tthis.renderHeadline(this.state._label, this.state._level)\n\t\t\t\t)}\n\t\t\t</Host>\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eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;KACpC;IAuCM,MAAM;QACZ,QACCX,QAACG,UAAI,QACH,OAAO,IAAI,CAAC,KAAK,CAAC,kBAAkB,KAAK,QAAQ,IAAI,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC,MAAM,GAAG,CAAC,IAC7FH,wBACE,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EACzD,IAAI,CAAC,KAAK,CAAC,kBAAkB,IAAI,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,KAAK,CAAC,kBAAkB,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAC5G,KAET,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CACzD,CACK,EACN;KACF;;;;;;;;;;;;","names":["h","translate","Log","Host","watchBoolean","validateHasCloser","validateLabel","watchHeadingLevel","setState","watchValidator","validateLabelWithExpertSlot","watchString"],"sources":["src/components/alert/types.ts","src/components/alert/component.tsx","src/types/props/heading-variant.ts","src/components/heading/component.tsx"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { EventCallback } from '../../types/callbacks';\nimport { HeadingLevel } from '../../types/heading-level';\nimport { PropAlert } from '../../types/props/alert';\nimport { PropHasCloser } from '../../types/props/has-closer';\nimport { PropLabel } from '../../types/props/label';\n\nexport const alertTypeOptions = ['default', 'info', 'success', 'warning', 'error'] as const;\nexport type AlertType = (typeof alertTypeOptions)[number];\n\nexport const alertVariantOptions = ['card', 'msg'] as const;\nexport type AlertVariant = (typeof alertVariantOptions)[number];\n\nexport type KoliBriAlertEventCallbacks = {\n\tonClose?: EventCallback<Event>;\n};\n\ntype RequiredAlertProps = NonNullable<unknown>;\ntype OptionalAlertProps = {\n\tlevel: HeadingLevel;\n\ton: KoliBriAlertEventCallbacks;\n\ttype: AlertType;\n\tvariant: AlertVariant;\n} & PropLabel &\n\tPropAlert &\n\tPropHasCloser;\n\ntype RequiredAlertStates = RequiredAlertProps;\ntype OptionalAlertStates = OptionalAlertProps;\n\nexport type Props = Generic.Element.Members<RequiredAlertProps, OptionalAlertProps>;\nexport type States = Generic.Element.Members<RequiredAlertStates, OptionalAlertStates>;\nexport type API = Generic.Element.ComponentApi<RequiredAlertProps, OptionalAlertProps, RequiredAlertStates, OptionalAlertStates>;\n","import { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { translate } from '../../i18n';\nimport { HeadingLevel } from '../../types/heading-level';\nimport { HasCloserPropType, validateHasCloser } from '../../types/props/has-closer';\nimport { LabelPropType, validateLabel } from '../../types/props/label';\nimport { Log } from '../../utils/dev.utils';\nimport { setState, watchBoolean, watchValidator } from '../../utils/prop.validators';\nimport { watchHeadingLevel } from '../heading/validation';\nimport { AlertType, alertTypeOptions, AlertVariant, alertVariantOptions, API, KoliBriAlertEventCallbacks, States } from './types';\n\nconst Icon = (props: { ariaLabel: string; icon: string; label?: string }) => {\n\treturn <kol-icon class=\"heading-icon\" _label={typeof props.label === 'string' && props.label.length > 0 ? '' : props.ariaLabel} _icons={props.icon} />;\n};\n\nconst AlertIcon = (props: { label?: string; type?: AlertType }) => {\n\tswitch (props.type) {\n\t\tcase 'error':\n\t\t\treturn <Icon ariaLabel={translate('kol-error')} icon=\"codicon codicon-error\" label={props.label} />;\n\t\tcase 'info':\n\t\t\treturn <Icon ariaLabel={translate('kol-info')} icon=\"codicon codicon-info\" label={props.label} />;\n\t\tcase 'warning':\n\t\t\treturn <Icon ariaLabel={translate('kol-warning')} icon=\"codicon codicon-warning\" label={props.label} />;\n\t\tcase 'success':\n\t\t\treturn <Icon ariaLabel={translate('kol-success')} icon=\"codicon codicon-pass\" label={props.label} />;\n\t\tdefault:\n\t\t\treturn <Icon ariaLabel={translate('kol-message')} icon=\"codicon codicon-comment\" label={props.label} />;\n\t}\n};\n\n/**\n * @slot - Der Inhalt der Meldung.\n */\n@Component({\n\ttag: 'kol-alert-wc',\n\tshadow: false,\n})\nexport class KolAlertWc implements API {\n\tprivate readonly close = () => {\n\t\tif (this._on?.onClose !== undefined) {\n\t\t\tthis._on.onClose(new Event('Close'));\n\t\t}\n\t};\n\n\tprivate readonly on = {\n\t\tonClick: this.close,\n\t};\n\n\tpublic render(): JSX.Element {\n\t\tif (this.state._alert) {\n\t\t\t/**\n\t\t\t * - https://developer.mozilla.org/de/docs/Web/API/Navigator/vibrate\n\t\t\t * - https://googlechrome.github.io/samples/vibration/\n\t\t\t */\n\t\t\ttry {\n\t\t\t\tLog.debug(['Navigator should vibrate ...', navigator.vibrate([100, 75, 100, 75, 100])]);\n\t\t\t} catch (e) {\n\t\t\t\tLog.debug('Navigator does not support vibration.');\n\t\t\t}\n\n\t\t\tsetTimeout(() => {\n\t\t\t\tthis.validateAlert(false);\n\t\t\t}, 10000);\n\t\t}\n\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={{\n\t\t\t\t\talert: true,\n\t\t\t\t\t[this.state._type as string]: true,\n\t\t\t\t\t[this.state._variant as string]: true,\n\t\t\t\t\thasCloser: !!this.state._hasCloser,\n\t\t\t\t}}\n\t\t\t\trole={this.state._alert ? 'alert' : undefined}\n\t\t\t>\n\t\t\t\t<div class=\"heading\">\n\t\t\t\t\t<AlertIcon label={this.state._label} type={this.state._type} />\n\t\t\t\t\t<div class=\"heading-content\">\n\t\t\t\t\t\t{typeof this.state._label === 'string' && this.state._label?.length > 0 && (\n\t\t\t\t\t\t\t<kol-heading-wc _label={this.state._label} _level={this.state._level}></kol-heading-wc>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{this._variant === 'msg' && (\n\t\t\t\t\t\t\t<div class=\"content\">\n\t\t\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t\t{this.state._hasCloser && (\n\t\t\t\t\t\t<kol-button-wc\n\t\t\t\t\t\t\tclass=\"close\"\n\t\t\t\t\t\t\t_hideLabel\n\t\t\t\t\t\t\t_icons={{\n\t\t\t\t\t\t\t\tleft: {\n\t\t\t\t\t\t\t\t\ticon: 'codicon codicon-close',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t_label={translate('kol-close')}\n\t\t\t\t\t\t\t_on={this.on}\n\t\t\t\t\t\t\t_tooltipAlign=\"left\"\n\t\t\t\t\t\t></kol-button-wc>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t\t{this._variant === 'card' && (\n\t\t\t\t\t<div class=\"content\">\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t)}\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: States = {\n\t\t_level: 1,\n\t};\n\n\t@Watch('_alert')\n\tpublic validateAlert(value?: boolean): void {\n\t\twatchBoolean(this, '_alert', value);\n\t}\n\n\t@Watch('_hasCloser')\n\tpublic validateHasCloser(value?: HasCloserPropType): void {\n\t\tvalidateHasCloser(this, value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelPropType): void {\n\t\tvalidateLabel(this, value);\n\t}\n\n\t@Watch('_level')\n\tpublic validateLevel(value?: HeadingLevel): void {\n\t\twatchHeadingLevel(this, value);\n\t}\n\n\tprivate validateOnValue = (value: unknown): boolean =>\n\t\ttypeof value === 'object' && value !== null && typeof (value as KoliBriAlertEventCallbacks).onClose === 'function';\n\n\t@Watch('_on')\n\tpublic validateOn(value?: KoliBriAlertEventCallbacks): void {\n\t\tif (this.validateOnValue(value)) {\n\t\t\tsetState<KoliBriAlertEventCallbacks>(\n\t\t\t\tthis,\n\t\t\t\t'_on',\n\t\t\t\t{\n\t\t\t\t\tonClose: (value as KoliBriAlertEventCallbacks).onClose,\n\t\t\t\t}\n\t\t\t\t// {\n\t\t\t\t// \tafterPatch: (value: unknown) => {\n\t\t\t\t// \t\tthis._hasCloser = this.validateOnValue(value);\n\t\t\t\t// \t},\n\t\t\t\t// }\n\t\t\t);\n\t\t\t// } else {\n\t\t\t// \tsetState<KoliBriAlertEventCallbacks>(this, '_on', null, {\n\t\t\t// \t\tafterPatch: (value: unknown) => {\n\t\t\t// \t\t\tthis._hasCloser = this.validateOnValue(value);\n\t\t\t// \t\t},\n\t\t\t// \t});\n\t\t}\n\t}\n\n\t@Watch('_type')\n\tpublic validateType(value?: AlertType): void {\n\t\twatchValidator(\n\t\t\tthis,\n\t\t\t'_type',\n\t\t\t(value?) => typeof value === 'string' && alertTypeOptions.includes(value),\n\t\t\tnew Set(`String {${alertTypeOptions.join(', ')}`),\n\t\t\tvalue\n\t\t);\n\t}\n\n\t@Watch('_variant')\n\tpublic validateVariant(value?: AlertVariant): void {\n\t\twatchValidator(\n\t\t\tthis,\n\t\t\t'_variant',\n\t\t\t(value?) => typeof value === 'string' && alertVariantOptions.includes(value),\n\t\t\tnew Set(`AlertVariant {${alertVariantOptions.join(', ')}`),\n\t\t\tvalue\n\t\t);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateAlert(this._alert);\n\t\tthis.validateHasCloser(this._hasCloser);\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateLevel(this._level);\n\t\tthis.validateOn(this._on);\n\t\tthis.validateType(this._type);\n\t\tthis.validateVariant(this._variant);\n\t}\n}\n","/* types */\nimport type { Generic } from 'adopted-style-sheets';\nimport { watchValidator } from '../../utils/prop.validators';\n\nconst headingVariantPropTypeOptions = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'strong'] as const;\nexport type HeadingVariantPropType = (typeof headingVariantPropTypeOptions)[number];\n\n/**\n * Defines which variant should be used for presentation.\n */\nexport type PropHeadingVariant = {\n\tvariant: HeadingVariantPropType;\n};\n\n/* validator */\nexport const validateHeadingVariant = (component: Generic.Element.Component, value?: HeadingVariantPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t`_variant`,\n\t\t(value) => typeof value === 'string' && headingVariantPropTypeOptions.includes(value),\n\t\tnew Set([`KoliBriHeadingVariant {${headingVariantPropTypeOptions.join(', ')}`]),\n\t\tvalue\n\t);\n};\n","import { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { HeadingLevel } from '../../types/heading-level';\nimport { LabelWithExpertSlotPropType, validateLabelWithExpertSlot } from '../../types/props/label';\nimport { watchString } from '../../utils/prop.validators';\nimport { API, States } from './types';\nimport { watchHeadingLevel } from './validation';\nimport { HeadingVariantPropType, validateHeadingVariant } from '../../types/props/heading-variant';\n\n/**\n * @slot - Inhalt der Überschrift.\n */\n@Component({\n\ttag: 'kol-heading-wc',\n\tshadow: false,\n})\nexport class KolHeadingWc implements API {\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 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 * Setzt den Text einer weiteren Überschrift, einen Level kleiner, unter der Ersten.\n\t */\n\t@Prop() public _secondaryHeadline?: string;\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: HeadingVariantPropType;\n\n\t@State() public state: States = {\n\t\t_label: '', // ⚠ required\n\t\t_level: 1,\n\t};\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelWithExpertSlotPropType): void {\n\t\tvalidateLabelWithExpertSlot(this, value);\n\t}\n\n\t@Watch('_level')\n\tpublic validateLevel(value?: HeadingLevel): void {\n\t\twatchHeadingLevel(this, value);\n\t}\n\n\t@Watch('_secondaryHeadline')\n\tpublic validateSecondaryHeadline(value?: string): void {\n\t\twatchString(this, '_secondaryHeadline', value);\n\t}\n\n\t@Watch('_variant')\n\tpublic validateVariant(value?: HeadingVariantPropType): void {\n\t\tvalidateHeadingVariant(this, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateLevel(this._level);\n\t\tthis.validateSecondaryHeadline(this._secondaryHeadline);\n\t\tthis.validateVariant(this._variant);\n\t}\n\n\tprivate readonly renderHeadline = (headline: LabelWithExpertSlotPropType, level?: number): JSX.Element => {\n\t\tconst validHeadline = typeof level === 'number' && level > 0 && level <= 6;\n\t\tconst HeadlineTag = validHeadline ? `h${level}` : 'strong';\n\t\tconst variant = this._variant || HeadlineTag;\n\n\t\treturn (\n\t\t\t<HeadlineTag\n\t\t\t\tclass={{\n\t\t\t\t\theadline: true,\n\t\t\t\t\t[`headline-${variant}`]: true,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{headline}\n\t\t\t\t<slot name=\"expert\" />\n\t\t\t</HeadlineTag>\n\t\t);\n\t};\n\n\tprivate readonly renderSecondaryHeadline = (headline: string, level?: number): JSX.Element => {\n\t\tswitch (level) {\n\t\t\tcase 1: // if the headline is only strong\n\t\t\t\treturn <span class=\"secondary-headline\">{headline}</span>;\n\t\t\tcase 2: // if the headline is h1\n\t\t\t\treturn <h2 class=\"secondary-headline\">{headline}</h2>;\n\t\t\tcase 3: // if the headline is h2\n\t\t\t\treturn <h3 class=\"secondary-headline\">{headline}</h3>;\n\t\t\tcase 4: // if the headline is h3\n\t\t\t\treturn <h4 class=\"secondary-headline\">{headline}</h4>;\n\t\t\tcase 5: // if the headline is h4\n\t\t\t\treturn <h5 class=\"secondary-headline\">{headline}</h5>;\n\t\t\tcase 6: // if the headline is h5\n\t\t\t\treturn <h6 class=\"secondary-headline\">{headline}</h6>;\n\t\t\tdefault: // if the headline is h6\n\t\t\t\treturn <strong class=\"secondary-headline\">{headline}</strong>;\n\t\t}\n\t};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t{typeof this.state._secondaryHeadline === 'string' && this.state._secondaryHeadline.length > 0 ? (\n\t\t\t\t\t<hgroup>\n\t\t\t\t\t\t{this.renderHeadline(this.state._label, this.state._level)}\n\t\t\t\t\t\t{this.state._secondaryHeadline && this.renderSecondaryHeadline(this.state._secondaryHeadline, this.state._level + 1)}\n\t\t\t\t\t</hgroup>\n\t\t\t\t) : (\n\t\t\t\t\tthis.renderHeadline(this.state._label, this.state._level)\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-a2400b65.js"),defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * No element should be used without a background and font color whose contrast ratio has\n\t\t * not been checked. By initially setting the background color to white and the font color\n\t\t * to black, the contrast ratio is ensured and explicit adjustment is forced.\n\t\t */\n\t\tbackground-color: white;\n\t\tcolor: black;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\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\tclip: rect(0 0 0 0);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tposition: absolute;\n\twhite-space: nowrap;\n\twidth: 1px;\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n\n\t/*\n\t * Ensure elements with hidden attribute to be actually not visible\n\t * @see https://meowni.ca/hidden.is.a.lie.html\n\t */\n\t[hidden] {\n\t\tdisplay: none !important;\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\t:host {\n\t\tdisplay: block;\n\t}\n}\n\n@layer kol-component {\n\tkol-alert-wc {\n\t\tdisplay: grid;\n\t}\n\n\tkol-alert-wc .heading {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\tkol-alert-wc .heading > div {\n\t\tflex-grow: 1;\n\t}\n}\n",KolAlert=class{constructor(t){index.registerInstance(this,t),this._alert=!1,this._hasCloser=!1,this._label=void 0,this._level=1,this._on=void 0,this._type="default",this._variant="msg",this.state={_level:1}}render(){return index.h(index.Host,null,index.h("kol-alert-wc",{_alert:this._alert,_hasCloser:this._hasCloser,_label:this._label,_level:this._level,_on:this._on,_type:this._type,_variant:this._variant},index.h("slot",null)))}};KolAlert.style={default:defaultStyleCss},exports.kol_alert=KolAlert;
4
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-3145a30d.js"),defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * No element should be used without a background and font color whose contrast ratio has\n\t\t * not been checked. By initially setting the background color to white and the font color\n\t\t * to black, the contrast ratio is ensured and explicit adjustment is forced.\n\t\t */\n\t\tbackground-color: white;\n\t\tcolor: black;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\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\tclip: rect(0 0 0 0);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tposition: absolute;\n\twhite-space: nowrap;\n\twidth: 1px;\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n\n\t/*\n\t * Ensure elements with hidden attribute to be actually not visible\n\t * @see https://meowni.ca/hidden.is.a.lie.html\n\t */\n\t[hidden] {\n\t\tdisplay: none !important;\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\t:host {\n\t\tdisplay: block;\n\t}\n}\n\n@layer kol-component {\n\tkol-alert-wc {\n\t\tdisplay: grid;\n\t}\n\n\tkol-alert-wc .heading {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\tkol-alert-wc .heading > div {\n\t\tflex-grow: 1;\n\t}\n\n\t.close {\n\t\toutline: transparent solid 1px; /* Visible with forced colors */\n\t}\n}\n",KolAlert=class{constructor(t){index.registerInstance(this,t),this._alert=!1,this._hasCloser=!1,this._label=void 0,this._level=1,this._on=void 0,this._type="default",this._variant="msg",this.state={_level:1}}render(){return index.h(index.Host,null,index.h("kol-alert-wc",{_alert:this._alert,_hasCloser:this._hasCloser,_label:this._label,_level:this._level,_on:this._on,_type:this._type,_variant:this._variant},index.h("slot",null)))}};KolAlert.style={default:defaultStyleCss},exports.kol_alert=KolAlert;
@@ -1 +1 @@
1
- {"file":"kol-alert.entry.cjs.js","mappings":";;;;;;;;;AAAA,MAAM,eAAe,GAAG,+2HAA+2H;;MCgB13H,QAAQ;;;sBAsBc,KAAK;0BAMD,KAAK;;sBAUJ,CAAC;;qBAUL,SAAS;wBAKH,KAAK;qBAEd;YAC/B,MAAM,EAAE,CAAC;SACT;;IAxDM,MAAM;QACZ,QACCA,QAACC,UAAI,QACJD,0BACC,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAEvBA,qBAAQ,CACM,CACT,EACN;KACF;;;;;;;;","names":["h","Host"],"sources":["src/components/alert/style.css?tag=kol-alert&mode=default&encapsulation=shadow","src/components/alert/shadow.tsx"],"sourcesContent":["@import url(../style.css);\n@import url(../host-display-block.css);\n@layer kol-component {\n\tkol-alert-wc {\n\t\tdisplay: grid;\n\t}\n\n\tkol-alert-wc .heading {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\tkol-alert-wc .heading > div {\n\t\tflex-grow: 1;\n\t}\n}\n","import { Component, h, Host, JSX, Prop, State } from '@stencil/core';\n\nimport { HeadingLevel } from '../../types/heading-level';\nimport { LabelPropType } from '../../types/props/label';\nimport { AlertType, AlertVariant, KoliBriAlertEventCallbacks, Props, States } from './types';\n\n/**\n * @slot - Der Inhalt der Meldung.\n */\n@Component({\n\ttag: 'kol-alert',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolAlert implements Props {\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<kol-alert-wc\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</kol-alert-wc>\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: States = {\n\t\t_level: 1,\n\t};\n}\n"],"version":3}
1
+ {"file":"kol-alert.entry.cjs.js","mappings":";;;;;;;;;AAAA,MAAM,eAAe,GAAG,w8HAAw8H;;MCgBn9H,QAAQ;;;sBAsBc,KAAK;0BAMD,KAAK;;sBAUJ,CAAC;;qBAUL,SAAS;wBAKH,KAAK;qBAEd;YAC/B,MAAM,EAAE,CAAC;SACT;;IAxDM,MAAM;QACZ,QACCA,QAACC,UAAI,QACJD,0BACC,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAEvBA,qBAAQ,CACM,CACT,EACN;KACF;;;;;;;;","names":["h","Host"],"sources":["src/components/alert/style.css?tag=kol-alert&mode=default&encapsulation=shadow","src/components/alert/shadow.tsx"],"sourcesContent":["@import url(../style.css);\n@import url(../host-display-block.css);\n@layer kol-component {\n\tkol-alert-wc {\n\t\tdisplay: grid;\n\t}\n\n\tkol-alert-wc .heading {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\tkol-alert-wc .heading > div {\n\t\tflex-grow: 1;\n\t}\n\n\t.close {\n\t\toutline: transparent solid 1px; /* Visible with forced colors */\n\t}\n}\n","import { Component, h, Host, JSX, Prop, State } from '@stencil/core';\n\nimport { HeadingLevel } from '../../types/heading-level';\nimport { LabelPropType } from '../../types/props/label';\nimport { AlertType, AlertVariant, KoliBriAlertEventCallbacks, Props, States } from './types';\n\n/**\n * @slot - Der Inhalt der Meldung.\n */\n@Component({\n\ttag: 'kol-alert',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolAlert implements Props {\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<kol-alert-wc\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</kol-alert-wc>\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: States = {\n\t\t_level: 1,\n\t};\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-a2400b65.js"),i18n=require("./i18n-b7ec2d1b.js"),imageSource=require("./image-source-0601c693.js"),label=require("./label-de5ebf4b.js");require("./index-bb49d83a.js"),require("./dev.utils-dd53475e.js"),require("./reuse-a4c8450e.js"),require("./a11y.tipps-3cff218a.js"),require("./prop.validators-5f352bbf.js");const formatNameAsInitial=e=>0===e.length?"":e[0].toUpperCase(),formatLabelAsInitials=e=>{const a=e.split(/\s+/),t=a.at(0),i=a.at(-1);return a.length>=2&&t&&i?`${formatNameAsInitial(t)}${formatNameAsInitial(i)}`:formatNameAsInitial(e)},KolAvatarWc=class{constructor(e){index.registerInstance(this,e),this._src=void 0,this._label=void 0,this.state={_src:"",_label:""}}render(){return index.h(index.Host,null,index.h("div",{"aria-label":i18n.translate("kol-avatar-alt",{placeholders:{name:this.state._label}}),class:"container",role:"img"},this.state._src?index.h("img",{alt:"","aria-hidden":"true",class:"image",src:this.state._src}):index.h("span",{"aria-hidden":"true",class:"initials"},formatLabelAsInitials(this.state._label.trim()))))}validateSrc(e){imageSource.validateImageSource(this,e)}validateLabel(e){label.validateLabel(this,e)}componentWillLoad(){this.validateSrc(this._src),this.validateLabel(this._label)}static get watchers(){return{_src:["validateSrc"],_label:["validateLabel"]}}};exports.kol_avatar_wc=KolAvatarWc;
4
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-3145a30d.js"),i18n=require("./i18n-3094a3c4.js"),imageSource=require("./image-source-4b6e0c0e.js"),label=require("./label-a5fa1288.js");require("./index-e779e8b0.js"),require("./dev.utils-a6b6f115.js"),require("./reuse-a4c8450e.js"),require("./a11y.tipps-bde4c917.js"),require("./prop.validators-03eee51d.js");const formatNameAsInitial=e=>0===e.length?"":e[0].toUpperCase(),formatLabelAsInitials=e=>{const a=e.split(/\s+/),t=a.at(0),i=a.at(-1);return a.length>=2&&t&&i?`${formatNameAsInitial(t)}${formatNameAsInitial(i)}`:formatNameAsInitial(e)},KolAvatarWc=class{constructor(e){index.registerInstance(this,e),this._src=void 0,this._label=void 0,this.state={_src:"",_label:""}}render(){return index.h(index.Host,null,index.h("div",{"aria-label":i18n.translate("kol-avatar-alt",{placeholders:{name:this.state._label}}),class:"container",role:"img"},this.state._src?index.h("img",{alt:"","aria-hidden":"true",class:"image",src:this.state._src}):index.h("span",{"aria-hidden":"true",class:"initials"},formatLabelAsInitials(this.state._label.trim()))))}validateSrc(e){imageSource.validateImageSource(this,e)}validateLabel(e){label.validateLabel(this,e)}componentWillLoad(){this.validateSrc(this._src),this.validateLabel(this._label)}static get watchers(){return{_src:["validateSrc"],_label:["validateLabel"]}}};exports.kol_avatar_wc=KolAvatarWc;
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-a2400b65.js"),defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * No element should be used without a background and font color whose contrast ratio has\n\t\t * not been checked. By initially setting the background color to white and the font color\n\t\t * to black, the contrast ratio is ensured and explicit adjustment is forced.\n\t\t */\n\t\tbackground-color: white;\n\t\tcolor: black;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\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\tclip: rect(0 0 0 0);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tposition: absolute;\n\twhite-space: nowrap;\n\twidth: 1px;\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n\n\t/*\n\t * Ensure elements with hidden attribute to be actually not visible\n\t * @see https://meowni.ca/hidden.is.a.lie.html\n\t */\n\t[hidden] {\n\t\tdisplay: none !important;\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\t:host {\n\t\tdisplay: block;\n\t}\n}\n\n@layer kol-component {\n\t.container {\n\t\tborder-radius: 50%;\n\t\toverflow: hidden;\n\t\t/*theme?*/\n\t\twidth: 100px;\n\t\theight: 100px;\n\t}\n\n\t.image {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t}\n\n\t.initials {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\t/*theme?*/\n\t\tbackground: #d3d3d3;\n\t\tfont-size: 2rem;\n\t}\n}\n",KolAvatar=class{constructor(t){index.registerInstance(this,t),this._src=void 0,this._label=void 0}render(){return index.h(index.Host,null,index.h("kol-avatar-wc",{_src:this._src,_label:this._label}))}};KolAvatar.style={default:defaultStyleCss},exports.kol_avatar=KolAvatar;
4
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-3145a30d.js"),defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * No element should be used without a background and font color whose contrast ratio has\n\t\t * not been checked. By initially setting the background color to white and the font color\n\t\t * to black, the contrast ratio is ensured and explicit adjustment is forced.\n\t\t */\n\t\tbackground-color: white;\n\t\tcolor: black;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\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\tclip: rect(0 0 0 0);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tposition: absolute;\n\twhite-space: nowrap;\n\twidth: 1px;\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n\n\t/*\n\t * Ensure elements with hidden attribute to be actually not visible\n\t * @see https://meowni.ca/hidden.is.a.lie.html\n\t */\n\t[hidden] {\n\t\tdisplay: none !important;\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\t:host {\n\t\tdisplay: block;\n\t}\n}\n\n@layer kol-component {\n\t.container {\n\t\tborder-radius: 50%;\n\t\toverflow: hidden;\n\t\toutline: transparent solid 1px; /* Visible with forced colors */\n\t\t/*theme?*/\n\t\twidth: 100px;\n\t\theight: 100px;\n\t}\n\n\t.image {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t}\n\n\t.initials {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\t/*theme?*/\n\t\tbackground: #d3d3d3;\n\t\tfont-size: 2rem;\n\t}\n}\n",KolAvatar=class{constructor(t){index.registerInstance(this,t),this._src=void 0,this._label=void 0}render(){return index.h(index.Host,null,index.h("kol-avatar-wc",{_src:this._src,_label:this._label}))}};KolAvatar.style={default:defaultStyleCss},exports.kol_avatar=KolAvatar;
@@ -1 +1 @@
1
- {"file":"kol-avatar.entry.cjs.js","mappings":";;;;;;;;;AAAA,MAAM,eAAe,GAAG,ojIAAojI;;MCW/jI,SAAS;;;;;;IACd,MAAM;QACZ,QACCA,QAACC,UAAI,QACJD,2BAAe,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,GAAkB,CAC/D,EACN;KACF;;;;;;;;","names":["h","Host"],"sources":["src/components/avatar/style.css?tag=kol-avatar&mode=default&encapsulation=shadow","src/components/avatar/shadow.tsx"],"sourcesContent":["@import url(../style.css);\n@import url(../host-display-block.css);\n@layer kol-component {\n\t.container {\n\t\tborder-radius: 50%;\n\t\toverflow: hidden;\n\t\t/*theme?*/\n\t\twidth: 100px;\n\t\theight: 100px;\n\t}\n\n\t.image {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t}\n\n\t.initials {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\t/*theme?*/\n\t\tbackground: #d3d3d3;\n\t\tfont-size: 2rem;\n\t}\n}\n","import { Component, h, Host, JSX, Prop } from '@stencil/core';\n\nimport { Props } from './types';\n\n@Component({\n\ttag: 'kol-avatar',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolAvatar implements Props {\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<kol-avatar-wc _src={this._src} _label={this._label}></kol-avatar-wc>\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"],"version":3}
1
+ {"file":"kol-avatar.entry.cjs.js","mappings":";;;;;;;;;AAAA,MAAM,eAAe,GAAG,2nIAA2nI;;MCWtoI,SAAS;;;;;;IACd,MAAM;QACZ,QACCA,QAACC,UAAI,QACJD,2BAAe,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,GAAkB,CAC/D,EACN;KACF;;;;;;;;","names":["h","Host"],"sources":["src/components/avatar/style.css?tag=kol-avatar&mode=default&encapsulation=shadow","src/components/avatar/shadow.tsx"],"sourcesContent":["@import url(../style.css);\n@import url(../host-display-block.css);\n@layer kol-component {\n\t.container {\n\t\tborder-radius: 50%;\n\t\toverflow: hidden;\n\t\toutline: transparent solid 1px; /* Visible with forced colors */\n\t\t/*theme?*/\n\t\twidth: 100px;\n\t\theight: 100px;\n\t}\n\n\t.image {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t}\n\n\t.initials {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\t/*theme?*/\n\t\tbackground: #d3d3d3;\n\t\tfont-size: 2rem;\n\t}\n}\n","import { Component, h, Host, JSX, Prop } from '@stencil/core';\n\nimport { Props } from './types';\n\n@Component({\n\ttag: 'kol-avatar',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolAvatar implements Props {\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<kol-avatar-wc _src={this._src} _label={this._label}></kol-avatar-wc>\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"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-a2400b65.js"),color=require("./color-1cc0d5df.js"),a11y_tipps=require("./a11y.tipps-3cff218a.js"),dev_utils=require("./dev.utils-dd53475e.js"),prop_validators=require("./prop.validators-5f352bbf.js");require("./reuse-a4c8450e.js");const defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * No element should be used without a background and font color whose contrast ratio has\n\t\t * not been checked. By initially setting the background color to white and the font color\n\t\t * to black, the contrast ratio is ensured and explicit adjustment is forced.\n\t\t */\n\t\tbackground-color: white;\n\t\tcolor: black;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\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\tclip: rect(0 0 0 0);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tposition: absolute;\n\twhite-space: nowrap;\n\twidth: 1px;\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n\n\t/*\n\t * Ensure elements with hidden attribute to be actually not visible\n\t * @see https://meowni.ca/hidden.is.a.lie.html\n\t */\n\t[hidden] {\n\t\tdisplay: none !important;\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\t:host > span {\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";a11y_tipps.featureHint("[KolBadge] Optimierung des _color-Properties (rgba, rgb, hex usw.).");const KolBadge=class{constructor(t){index.registerInstance(this,t),this.bgColorStr="#000",this.colorStr="#fff",this.id=dev_utils.nonce(),this.handleColorChange=t=>{const n=color.handleColorChange(t);this.bgColorStr=n.backgroundColor,this.colorStr=n.foregroundColor},this._color="#000",this._icons=void 0,this._label=void 0,this._smartButton=void 0,this.state={_color:{backgroundColor:"#000",foregroundColor:"#fff"}}}renderSmartButton(t){return index.h("kol-button-wc",{_ariaControls:this.id,_customClass:t._customClass,_disabled:t._disabled,_hideLabel:!0,_icons:t._icons,_id:t._id,_label:t._label,_on:t._on,_tooltipAlign:t._tooltipAlign,_variant:t._variant})}render(){const t="object"==typeof this.state._smartButton&&null!==this.state._smartButton;return index.h(index.Host,null,index.h("span",{class:{"smart-button":"object"==typeof this.state._smartButton&&null!==this.state._smartButton},style:{backgroundColor:this.bgColorStr,color:this.colorStr}},index.h("kol-span-wc",{id:t?this.id:void 0,_allowMarkdown:!0,_icons:this._icons,_label:this._label}),t&&this.renderSmartButton(this.state._smartButton)))}validateColor(t){color.validateColor(this,t,{defaultValue:"#000",hooks:{beforePatch:this.handleColorChange}})}validateSmartButton(t){prop_validators.objectObjectHandler(t,(()=>{try{t=prop_validators.parseJson(t)}catch(t){}prop_validators.setState(this,"_smartButton",t)}))}componentWillLoad(){this.validateColor(this._color),this.validateSmartButton(this._smartButton)}static get watchers(){return{_color:["validateColor"],_smartButton:["validateSmartButton"]}}};KolBadge.style={default:defaultStyleCss},exports.kol_badge=KolBadge;
4
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-3145a30d.js"),color=require("./color-7a4690e4.js"),a11y_tipps=require("./a11y.tipps-bde4c917.js"),dev_utils=require("./dev.utils-a6b6f115.js"),prop_validators=require("./prop.validators-03eee51d.js");require("./reuse-a4c8450e.js");const defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * No element should be used without a background and font color whose contrast ratio has\n\t\t * not been checked. By initially setting the background color to white and the font color\n\t\t * to black, the contrast ratio is ensured and explicit adjustment is forced.\n\t\t */\n\t\tbackground-color: white;\n\t\tcolor: black;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\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\tclip: rect(0 0 0 0);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tposition: absolute;\n\twhite-space: nowrap;\n\twidth: 1px;\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n\n\t/*\n\t * Ensure elements with hidden attribute to be actually not visible\n\t * @see https://meowni.ca/hidden.is.a.lie.html\n\t */\n\t[hidden] {\n\t\tdisplay: none !important;\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\t:host > span {\n\t\tdisplay: inline-flex;\n\t\tplace-items: center;\n\t\toutline: transparent solid 1px; /* Visible with forced colors */\n\t}\n\n\t:host > span > kol-button-wc button {\n\t\tcolor: inherit;\n\t}\n}\n";a11y_tipps.featureHint("[KolBadge] Optimierung des _color-Properties (rgba, rgb, hex usw.).");const KolBadge=class{constructor(t){index.registerInstance(this,t),this.bgColorStr="#000",this.colorStr="#fff",this.id=dev_utils.nonce(),this.handleColorChange=t=>{const n=color.handleColorChange(t);this.bgColorStr=n.backgroundColor,this.colorStr=n.foregroundColor},this._color="#000",this._icons=void 0,this._label=void 0,this._smartButton=void 0,this.state={_color:{backgroundColor:"#000",foregroundColor:"#fff"}}}renderSmartButton(t){return index.h("kol-button-wc",{_ariaControls:this.id,_customClass:t._customClass,_disabled:t._disabled,_hideLabel:!0,_icons:t._icons,_id:t._id,_label:t._label,_on:t._on,_tooltipAlign:t._tooltipAlign,_variant:t._variant})}render(){const t="object"==typeof this.state._smartButton&&null!==this.state._smartButton;return index.h(index.Host,null,index.h("span",{class:{"smart-button":"object"==typeof this.state._smartButton&&null!==this.state._smartButton},style:{backgroundColor:this.bgColorStr,color:this.colorStr}},index.h("kol-span-wc",{id:t?this.id:void 0,_allowMarkdown:!0,_icons:this._icons,_label:this._label}),t&&this.renderSmartButton(this.state._smartButton)))}validateColor(t){color.validateColor(this,t,{defaultValue:"#000",hooks:{beforePatch:this.handleColorChange}})}validateSmartButton(t){prop_validators.objectObjectHandler(t,(()=>{try{t=prop_validators.parseJson(t)}catch(t){}prop_validators.setState(this,"_smartButton",t)}))}componentWillLoad(){this.validateColor(this._color),this.validateSmartButton(this._smartButton)}static get watchers(){return{_color:["validateColor"],_smartButton:["validateSmartButton"]}}};KolBadge.style={default:defaultStyleCss},exports.kol_badge=KolBadge;
@@ -1 +1 @@
1
- {"file":"kol-badge.entry.cjs.js","mappings":";;;;;;;;;;;;;;AAAA,MAAM,eAAe,GAAG,wwHAAwwH;;ACYhyHA,sBAAW,CAAC,qEAAqE,CAAC,CAAC;MAStE,QAAQ;;;QACZ,eAAU,GAAG,MAAM,CAAC;QACpB,aAAQ,GAAG,MAAM,CAAC;QACT,OAAE,GAAGC,eAAK,EAAE,CAAC;QAkEtB,sBAAiB,GAAG,CAAC,KAAc;YAC1C,MAAM,SAAS,GAAGC,uBAAiB,CAAC,KAAK,CAAC,CAAC;YAC3C,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC,eAAe,CAAC;YAC5C,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC,eAAyB,CAAC;SACpD,CAAC;sBA5B+C,MAAM;;;;qBAiBvB;YAC/B,MAAM,EAAE;gBACP,eAAe,EAAE,MAAM;gBACvB,eAAe,EAAE,MAAM;aACvB;SACD;;IA9DO,iBAAiB,CAAC,KAAkB;QAC3C,QACCC,2BACC,aAAa,EAAE,IAAI,CAAC,EAAE,EACtB,YAAY,EAAE,KAAK,CAAC,YAAY,EAChC,SAAS,EAAE,KAAK,CAAC,SAAS,EAC1B,UAAU,EAAE,IAAI,EAChB,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,GAAG,EAAE,KAAK,CAAC,GAA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C,CAAC;SACtC,CAAC,CAAC;KACH;IAEM,iBAAiB;QACvB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;KAC5C;;;;;;;;;;;;","names":["featureHint","nonce","handleColorChange","h","Host","validateColor","objectObjectHandler","parseJson","setState"],"sources":["src/components/badge/style.css?tag=kol-badge&mode=default&encapsulation=shadow","src/components/badge/component.tsx"],"sourcesContent":["@import url(../style.css);\n@layer kol-component {\n\t:host > span {\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 { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { Stringified } from '../../types/common';\nimport { KoliBriIconsProp } from '../../types/icons';\nimport { handleColorChange, PropColor, validateColor } from '../../types/props/color';\nimport { LabelPropType } from '../../types/props/label';\nimport { featureHint } from '../../utils/a11y.tipps';\nimport { nonce } from '../../utils/dev.utils';\nimport { objectObjectHandler, parseJson, setState } from '../../utils/prop.validators';\nimport { ButtonProps } from '../button/types';\nimport { API, States } from './types';\n\nfeatureHint(`[KolBadge] Optimierung des _color-Properties (rgba, rgb, hex usw.).`);\n\n@Component({\n\ttag: 'kol-badge',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolBadge implements API {\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<kol-button-wc\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></kol-button-wc>\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>\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<kol-span-wc id={hasSmartButton ? this.id : undefined} _allowMarkdown _icons={this._icons} _label={this._label}></kol-span-wc>\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: States = {\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"],"version":3}
1
+ {"file":"kol-badge.entry.cjs.js","mappings":";;;;;;;;;;;;;;AAAA,MAAM,eAAe,GAAG,+0HAA+0H;;ACYv2HA,sBAAW,CAAC,qEAAqE,CAAC,CAAC;MAStE,QAAQ;;;QACZ,eAAU,GAAG,MAAM,CAAC;QACpB,aAAQ,GAAG,MAAM,CAAC;QACT,OAAE,GAAGC,eAAK,EAAE,CAAC;QAkEtB,sBAAiB,GAAG,CAAC,KAAc;YAC1C,MAAM,SAAS,GAAGC,uBAAiB,CAAC,KAAK,CAAC,CAAC;YAC3C,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC,eAAe,CAAC;YAC5C,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC,eAAyB,CAAC;SACpD,CAAC;sBA5B+C,MAAM;;;;qBAiBvB;YAC/B,MAAM,EAAE;gBACP,eAAe,EAAE,MAAM;gBACvB,eAAe,EAAE,MAAM;aACvB;SACD;;IA9DO,iBAAiB,CAAC,KAAkB;QAC3C,QACCC,2BACC,aAAa,EAAE,IAAI,CAAC,EAAE,EACtB,YAAY,EAAE,KAAK,CAAC,YAAY,EAChC,SAAS,EAAE,KAAK,CAAC,SAAS,EAC1B,UAAU,EAAE,IAAI,EAChB,MAA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aAEX;YACDC,wBAAQ,CAAC,IAAI,EAAE,cAAc,EAAE,KAAK,CAAC,CAAC;SACtC,CAAC,CAAC;KACH;IAEM,iBAAiB;QACvB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;KAC5C;;;;;;;;;;;;","names":["featureHint","nonce","handleColorChange","h","Host","validateColor","objectObjectHandler","parseJson","setState"],"sources":["src/components/badge/style.css?tag=kol-badge&mode=default&encapsulation=shadow","src/components/badge/component.tsx"],"sourcesContent":["@import url(../style.css);\n@layer kol-component {\n\t:host > span {\n\t\tdisplay: inline-flex;\n\t\tplace-items: center;\n\t\toutline: transparent solid 1px; /* Visible with forced colors */\n\t}\n\n\t:host > span > kol-button-wc button {\n\t\tcolor: inherit;\n\t}\n}\n","import { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { Stringified } from '../../types/common';\nimport { KoliBriIconsProp } from '../../types/icons';\nimport { handleColorChange, PropColor, validateColor } from '../../types/props/color';\nimport { LabelPropType } from '../../types/props/label';\nimport { featureHint } from '../../utils/a11y.tipps';\nimport { nonce } from '../../utils/dev.utils';\nimport { objectObjectHandler, parseJson, setState } from '../../utils/prop.validators';\nimport { ButtonProps } from '../button/types';\nimport { API, States } from './types';\n\nfeatureHint(`[KolBadge] Optimierung des _color-Properties (rgba, rgb, hex usw.).`);\n\n@Component({\n\ttag: 'kol-badge',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolBadge implements API {\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<kol-button-wc\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></kol-button-wc>\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>\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<kol-span-wc id={hasSmartButton ? this.id : undefined} _allowMarkdown _icons={this._icons} _label={this._label}></kol-span-wc>\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: States = {\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"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-a2400b65.js"),label=require("./label-de5ebf4b.js"),a11y_tipps=require("./a11y.tipps-3cff218a.js"),uniqueNavLabels=require("./unique-nav-labels-363e1d71.js"),validation=require("./validation-26535d0c.js");require("./prop.validators-5f352bbf.js"),require("./dev.utils-dd53475e.js"),require("./reuse-a4c8450e.js");const defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * No element should be used without a background and font color whose contrast ratio has\n\t\t * not been checked. By initially setting the background color to white and the font color\n\t\t * to black, the contrast ratio is ensured and explicit adjustment is forced.\n\t\t */\n\t\tbackground-color: white;\n\t\tcolor: black;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\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\tclip: rect(0 0 0 0);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tposition: absolute;\n\twhite-space: nowrap;\n\twidth: 1px;\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n\n\t/*\n\t * Ensure elements with hidden attribute to be actually not visible\n\t * @see https://meowni.ca/hidden.is.a.lie.html\n\t */\n\t[hidden] {\n\t\tdisplay: none !important;\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\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\tkol-icon::part(separator) {\n\t\tfont-weight: 900;\n\t\tfont-size: 0.7em;\n\t}\n\n\tkol-icon::part(separator):before {\n\t\tcontent: '\\f054';\n\t\tfont-family: 'Font Awesome 6 Free';\n\t}\n}\n",KolBreadcrumb=class{constructor(t){index.registerInstance(this,t),this.renderLink=(t,n)=>{const e=this.state._links.length-1;return index.h("li",{key:n},0!==n&&index.h("kol-icon",{_label:"",_icons:"codicon codicon-chevron-right"}),n===e?index.h("span",null,t._hideLabel?index.h("kol-icon",{_label:t._label,_icons:"string"==typeof t._icons?t._icons:"codicon codicon-symbol-event"}):index.h(index.Fragment,null,t._label)):index.h("kol-link",Object.assign({},t)))},this._label=void 0,this._links=void 0,this.state={_label:"…",_links:[]}}render(){return index.h(index.Host,null,index.h("nav",{"aria-label":this.state._label},index.h("ul",null,0===this.state._links.length&&index.h("li",null,index.h("kol-icon",{_label:"",_icons:"codicon codicon-home"}),"…"),this.state._links.map(this.renderLink))))}validateLabel(t,n,e=!1){e||uniqueNavLabels.removeNavLabel(this.state._label),label.validateLabel(this,t),a11y_tipps.a11yHintLabelingLandmarks(t),uniqueNavLabels.addNavLabel(this.state._label)}validateLinks(t){validation.watchNavLinks("KolBreadcrumb",this,t)}componentWillLoad(){this.validateLabel(this._label,void 0,!0),this.validateLinks(this._links)}disconnectedCallback(){uniqueNavLabels.removeNavLabel(this.state._label)}static get watchers(){return{_label:["validateLabel"],_links:["validateLinks"]}}};KolBreadcrumb.style={default:defaultStyleCss},exports.kol_breadcrumb=KolBreadcrumb;
4
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-3145a30d.js"),label=require("./label-a5fa1288.js"),a11y_tipps=require("./a11y.tipps-bde4c917.js"),uniqueNavLabels=require("./unique-nav-labels-363e1d71.js"),validation=require("./validation-c3b2105a.js");require("./prop.validators-03eee51d.js"),require("./dev.utils-a6b6f115.js"),require("./reuse-a4c8450e.js");const defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * No element should be used without a background and font color whose contrast ratio has\n\t\t * not been checked. By initially setting the background color to white and the font color\n\t\t * to black, the contrast ratio is ensured and explicit adjustment is forced.\n\t\t */\n\t\tbackground-color: white;\n\t\tcolor: black;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\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\tclip: rect(0 0 0 0);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tposition: absolute;\n\twhite-space: nowrap;\n\twidth: 1px;\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n\n\t/*\n\t * Ensure elements with hidden attribute to be actually not visible\n\t * @see https://meowni.ca/hidden.is.a.lie.html\n\t */\n\t[hidden] {\n\t\tdisplay: none !important;\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\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\tkol-icon::part(separator) {\n\t\tfont-weight: 900;\n\t\tfont-size: 0.7em;\n\t}\n\n\tkol-icon::part(separator):before {\n\t\tcontent: '\\f054';\n\t\tfont-family: 'Font Awesome 6 Free';\n\t}\n}\n",KolBreadcrumb=class{constructor(t){index.registerInstance(this,t),this.renderLink=(t,n)=>{const e=this.state._links.length-1;return index.h("li",{key:n},0!==n&&index.h("kol-icon",{_label:"",_icons:"codicon codicon-chevron-right"}),n===e?index.h("span",null,t._hideLabel?index.h("kol-icon",{_label:t._label,_icons:"string"==typeof t._icons?t._icons:"codicon codicon-symbol-event"}):index.h(index.Fragment,null,t._label)):index.h("kol-link",Object.assign({},t)))},this._label=void 0,this._links=void 0,this.state={_label:"…",_links:[]}}render(){return index.h(index.Host,null,index.h("nav",{"aria-label":this.state._label},index.h("ul",null,0===this.state._links.length&&index.h("li",null,index.h("kol-icon",{_label:"",_icons:"codicon codicon-home"}),"…"),this.state._links.map(this.renderLink))))}validateLabel(t,n,e=!1){e||uniqueNavLabels.removeNavLabel(this.state._label),label.validateLabel(this,t),a11y_tipps.a11yHintLabelingLandmarks(t),uniqueNavLabels.addNavLabel(this.state._label)}validateLinks(t){validation.watchNavLinks("KolBreadcrumb",this,t)}componentWillLoad(){this.validateLabel(this._label,void 0,!0),this.validateLinks(this._links)}disconnectedCallback(){uniqueNavLabels.removeNavLabel(this.state._label)}static get watchers(){return{_label:["validateLabel"],_links:["validateLinks"]}}};KolBreadcrumb.style={default:defaultStyleCss},exports.kol_breadcrumb=KolBreadcrumb;
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-a2400b65.js"),KolButtonGroupWc=class{constructor(e){index.registerInstance(this,e),this.state={}}render(){return index.h(index.Host,null,index.h("slot",null))}};exports.kol_button_group_wc=KolButtonGroupWc;
4
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-3145a30d.js"),KolButtonGroupWc=class{constructor(e){index.registerInstance(this,e),this.state={}}render(){return index.h(index.Host,null,index.h("slot",null))}};exports.kol_button_group_wc=KolButtonGroupWc;
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-a2400b65.js"),defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * No element should be used without a background and font color whose contrast ratio has\n\t\t * not been checked. By initially setting the background color to white and the font color\n\t\t * to black, the contrast ratio is ensured and explicit adjustment is forced.\n\t\t */\n\t\tbackground-color: white;\n\t\tcolor: black;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\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\tclip: rect(0 0 0 0);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tposition: absolute;\n\twhite-space: nowrap;\n\twidth: 1px;\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n\n\t/*\n\t * Ensure elements with hidden attribute to be actually not visible\n\t * @see https://meowni.ca/hidden.is.a.lie.html\n\t */\n\t[hidden] {\n\t\tdisplay: none !important;\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\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",KolButtonGroup=class{constructor(t){index.registerInstance(this,t)}render(){return index.h(index.Host,null,index.h("kol-button-group-wc",null,index.h("slot",null)))}};KolButtonGroup.style={default:defaultStyleCss},exports.kol_button_group=KolButtonGroup;
4
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-3145a30d.js"),defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * No element should be used without a background and font color whose contrast ratio has\n\t\t * not been checked. By initially setting the background color to white and the font color\n\t\t * to black, the contrast ratio is ensured and explicit adjustment is forced.\n\t\t */\n\t\tbackground-color: white;\n\t\tcolor: black;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\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\tclip: rect(0 0 0 0);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tposition: absolute;\n\twhite-space: nowrap;\n\twidth: 1px;\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n\n\t/*\n\t * Ensure elements with hidden attribute to be actually not visible\n\t * @see https://meowni.ca/hidden.is.a.lie.html\n\t */\n\t[hidden] {\n\t\tdisplay: none !important;\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\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",KolButtonGroup=class{constructor(t){index.registerInstance(this,t)}render(){return index.h(index.Host,null,index.h("kol-button-group-wc",null,index.h("slot",null)))}};KolButtonGroup.style={default:defaultStyleCss},exports.kol_button_group=KolButtonGroup;
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-a2400b65.js"),KolButtonLinkTextSwitch=class{constructor(t){index.registerInstance(this,t),this.button=t=>index.h("kol-button-wc",Object.assign({},t)),this.link=t=>index.h("kol-link-wc",Object.assign({_label:t._href},t)),this.text=t=>index.h("kol-span-wc",Object.assign({},t)),this._link=void 0}render(){return index.h(index.Host,null,this.renderContent())}renderContent(){if(this._link._on){const t=this._link;return this.button(t)}if(this._link._href){const t=this._link;return this.link(t)}{const t=this._link;return this.text(t)}}};exports.kol_button_link_text_switch=KolButtonLinkTextSwitch;
4
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-3145a30d.js"),KolButtonLinkTextSwitch=class{constructor(t){index.registerInstance(this,t),this.button=t=>index.h("kol-button-wc",Object.assign({},t)),this.link=t=>index.h("kol-link-wc",Object.assign({_label:t._href},t)),this.text=t=>index.h("kol-span-wc",Object.assign({},t)),this._link=void 0}render(){return index.h(index.Host,null,this.renderContent())}renderContent(){if(this._link._on){const t=this._link;return this.button(t)}if(this._link._href){const t=this._link;return this.link(t)}{const t=this._link;return this.text(t)}}};exports.kol_button_link_text_switch=KolButtonLinkTextSwitch;
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-a2400b65.js"),reuse=require("./reuse-a4c8450e.js"),defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * No element should be used without a background and font color whose contrast ratio has\n\t\t * not been checked. By initially setting the background color to white and the font color\n\t\t * to black, the contrast ratio is ensured and explicit adjustment is forced.\n\t\t */\n\t\tbackground-color: white;\n\t\tcolor: black;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\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\tclip: rect(0 0 0 0);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tposition: absolute;\n\twhite-space: nowrap;\n\twidth: 1px;\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n\n\t/*\n\t * Ensure elements with hidden attribute to be actually not visible\n\t * @see https://meowni.ca/hidden.is.a.lie.html\n\t */\n\t[hidden] {\n\t\tdisplay: none !important;\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\t:host {\n\t\tdisplay: inline-block;\n\t}\n\n\t:is(a, button) {\n\t\talign-items: baseline;\n\t\tdisplay: inline-flex;\n\t\tplace-items: center;\n\t\ttext-align: left;\n\t\ttext-decoration-line: underline;\n\t}\n\n\t:is(a, button):is(:focus, :hover) {\n\t\ttext-decoration-thickness: 0.2em;\n\t}\n\n\t.hidden {\n\t\tdisplay: none;\n\t\tvisibility: hidden;\n\t}\n\n\t.skip {\n\t\tleft: -99999px;\n\t\toverflow: hidden;\n\t\tposition: absolute;\n\t\tz-index: 9999999;\n\t\tline-height: 1em;\n\t}\n\n\t.skip:focus {\n\t\tbackground-color: #fff;\n\t\tleft: unset;\n\t\tpadding: 1em;\n\t\tposition: unset;\n\t}\n\n\tkol-icon.external-link-icon {\n\t\tdisplay: inline-flex;\n\t}\n}\n\n",KolButtonLink=class{constructor(t){index.registerInstance(this,t),this.catchRef=t=>{reuse.propagateFocus(this.host,t)},this._accessKey=void 0,this._ariaControls=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._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._type="button",this._value=void 0}async getValue(){return this._value}render(){return index.h(index.Host,null,index.h("kol-button-wc",{ref:this.catchRef,_accessKey:this._accessKey,_ariaControls:this._ariaControls,_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",_syncValueBySelector:this._syncValueBySelector,_tabIndex:this._tabIndex,_tooltipAlign:this._tooltipAlign,_type:this._type,_value:this._value},index.h("slot",{name:"expert",slot:"expert"})))}get host(){return index.getElement(this)}};KolButtonLink.style={default:defaultStyleCss},exports.kol_button_link=KolButtonLink;
4
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-3145a30d.js"),reuse=require("./reuse-a4c8450e.js"),defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * No element should be used without a background and font color whose contrast ratio has\n\t\t * not been checked. By initially setting the background color to white and the font color\n\t\t * to black, the contrast ratio is ensured and explicit adjustment is forced.\n\t\t */\n\t\tbackground-color: white;\n\t\tcolor: black;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\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\tclip: rect(0 0 0 0);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tposition: absolute;\n\twhite-space: nowrap;\n\twidth: 1px;\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n\n\t/*\n\t * Ensure elements with hidden attribute to be actually not visible\n\t * @see https://meowni.ca/hidden.is.a.lie.html\n\t */\n\t[hidden] {\n\t\tdisplay: none !important;\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\t:host {\n\t\tdisplay: inline-block;\n\t}\n\n\t:is(a, button) {\n\t\talign-items: baseline;\n\t\tdisplay: inline-flex;\n\t\tplace-items: center;\n\t\ttext-align: left;\n\t\ttext-decoration-line: underline;\n\t}\n\n\t:is(a, button):is(:focus, :hover) {\n\t\ttext-decoration-thickness: 0.2em;\n\t}\n\n\t.hidden {\n\t\tdisplay: none;\n\t\tvisibility: hidden;\n\t}\n\n\t.skip {\n\t\tleft: -99999px;\n\t\toverflow: hidden;\n\t\tposition: absolute;\n\t\tz-index: 9999999;\n\t\tline-height: 1em;\n\t}\n\n\t.skip:focus {\n\t\tbackground-color: #fff;\n\t\tleft: unset;\n\t\tpadding: 1em;\n\t\tposition: unset;\n\t}\n\n\tkol-icon.external-link-icon {\n\t\tdisplay: inline-flex;\n\t}\n}\n\n",KolButtonLink=class{constructor(t){index.registerInstance(this,t),this.catchRef=t=>{reuse.propagateFocus(this.host,t)},this._accessKey=void 0,this._ariaControls=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._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._type="button",this._value=void 0}async getValue(){return this._value}render(){return index.h(index.Host,null,index.h("kol-button-wc",{ref:this.catchRef,_accessKey:this._accessKey,_ariaControls:this._ariaControls,_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",_syncValueBySelector:this._syncValueBySelector,_tabIndex:this._tabIndex,_tooltipAlign:this._tooltipAlign,_type:this._type,_value:this._value},index.h("slot",{name:"expert",slot:"expert"})))}get host(){return index.getElement(this)}};KolButtonLink.style={default:defaultStyleCss},exports.kol_button_link=KolButtonLink;
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-a2400b65.js"),alternativeButtonLinkRole=require("./alternative-button-link-role-e640cd3e.js"),prop_validators=require("./prop.validators-5f352bbf.js"),customClass=require("./custom-class-f6c69910.js"),hideLabel=require("./hide-label-c4baa68a.js"),icons=require("./icons-20f8bfb5.js"),label=require("./label-de5ebf4b.js"),tooltipAlign=require("./tooltip-align-d0446059.js"),a11y_tipps=require("./a11y.tipps-3cff218a.js"),events=require("./events-e348a615.js"),reuse=require("./reuse-a4c8450e.js"),tabIndex=require("./tab-index-1cc9cecb.js"),controller=require("./controller-7f8062fe.js"),associated_controller=require("./associated.controller-66de4b43.js"),accessKey=require("./access-key-3f7e20a4.js"),alignFloatingElements=require("./align-floating-elements-dca98687.js"),alignment=require("./alignment-516753a3.js"),dev_utils=require("./dev.utils-dd53475e.js"),validateAriaControls=(t,e)=>{prop_validators.watchString(t,"_ariaControls",e)},validateAriaExpanded=(t,e)=>{prop_validators.watchBoolean(t,"_ariaExpanded",e)},validateButtonCallbacks=(t,e)=>{prop_validators.watchValidator(t,"_on",(t=>"object"==typeof t&&null!==t),new Set(["ButtonCallbacksPropType {Events.onClick, Events.onMouseDown}"]),e)},buttonTypePropTypeOptions=["button","reset","submit"],validateButtonType=(t,e)=>{prop_validators.watchValidator(t,"_type",(t=>"string"==typeof t&&buttonTypePropTypeOptions.includes(t)),new Set([`KoliBriButtonType {${buttonTypePropTypeOptions.join(", ")}`]),e)},buttonVariantPropTypeOptions=["primary","secondary","normal","tertiary","danger","ghost","custom"],validateButtonVariant=(t,e)=>{prop_validators.watchValidator(t,"_variant",(t=>"string"==typeof t&&buttonVariantPropTypeOptions.includes(t)),new Set([`KoliBriButtonVariant {${buttonVariantPropTypeOptions.join(", ")}`]),e,{defaultValue:"normal"})},validateDisabled=(t,e)=>{prop_validators.watchBoolean(t,"_disabled",e)},validateAriaSelected=(t,e)=>{prop_validators.watchBoolean(t,"_ariaSelected",e)},KolButtonWc=class{render(){const t=reuse.showExpertSlot(this.state._label);return index.h(index.Host,null,index.h("button",Object.assign({ref:this.catchRef,accessKey:this.state._accessKey||void 0,"aria-controls":this.state._ariaControls,"aria-expanded":prop_validators.mapBoolean2String(this.state._ariaExpanded),"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,"aria-selected":prop_validators.mapStringOrBoolean2String(this.state._ariaSelected),class:{button:!0,[this.state._variant]:"custom"!==this.state._variant,[this.state._customClass]:"custom"===this.state._variant&&"string"==typeof this.state._customClass&&this.state._customClass.length>0,"icon-only":!0===this.state._hideLabel,"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}),index.h("kol-span-wc",{class:"button-inner",_accessKey:this.state._accessKey,_icons:this.state._icons,_hideLabel:this.state._hideLabel,_label:t?"":this.state._label},index.h("slot",{name:"expert",slot:"expert"}))),index.h("kol-tooltip-wc",{"aria-hidden":"true",hidden:t||!this.state._hideLabel,_accessKey:this._accessKey,_align:this.state._tooltipAlign,_label:"string"==typeof this.state._label?this.state._label:""}))}constructor(t){index.registerInstance(this,t),this.catchRef=t=>{this.ref=t,reuse.propagateFocus(this.host,this.ref)},this.onClick=t=>{var e,i;"submit"===this.state._type?controller.propagateSubmitEventToForm({form:this.host,ref:this.ref}):"reset"===this.state._type?controller.propagateResetEventToForm({form:this.host,ref:this.ref}):(events.stopPropagation(t),events.tryToDispatchKoliBriEvent("click",this.host,this.state._value),this.controller.setFormAssociatedValue(this.state._value),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onClick)&&(prop_validators.setEventTarget(t,this.ref),null===(i=this.state._on)||void 0===i||i.onClick(t,this.state._value)))},this._accessKey=void 0,this._ariaControls=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._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 associated_controller.AssociatedInputController(this,"button",this.host)}validateAccessKey(t){accessKey.validateAccessKey(this,t)}validateAriaControls(t){validateAriaControls(this,t)}validateAriaExpanded(t){validateAriaExpanded(this,t)}validateAriaSelected(t){validateAriaSelected(this,t)}validateCustomClass(t){customClass.validateCustomClass(this,t)}validateDisabled(t){validateDisabled(this,t),!0===t&&a11y_tipps.a11yHintDisabled()}validateHideLabel(t){hideLabel.validateHideLabel(this,t)}validateIcons(t){icons.validateIcons(this,t)}validateId(t){prop_validators.watchString(this,"_id",t)}validateLabel(t){label.validateLabelWithExpertSlot(this,t)}validateName(t){this.controller.validateName(t)}validateOn(t){validateButtonCallbacks(this,t)}validateRole(t){alternativeButtonLinkRole.validateAlternativeButtonLinkRole(this,t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){tabIndex.validateTabIndex(this,t)}validateTooltipAlign(t){tooltipAlign.validateTooltipAlign(this,t)}validateType(t){validateButtonType(this,t)}validateValue(t){prop_validators.setState(this,"_value",t),this.controller.setFormAssociatedValue(this.state._value)}validateVariant(t){validateButtonVariant(this,t)}componentWillLoad(){this.validateAccessKey(this._accessKey),this.validateAriaControls(this._ariaControls),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.validateSyncValueBySelector(this._syncValueBySelector),this.validateTabIndex(this._tabIndex),this.validateTooltipAlign(this._tooltipAlign),this.validateType(this._type),this.validateValue(this._value),this.validateVariant(this._variant)}get host(){return index.getElement(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_ariaControls:["validateAriaControls"],_ariaExpanded:["validateAriaExpanded"],_ariaSelected:["validateAriaSelected"],_customClass:["validateCustomClass"],_disabled:["validateDisabled"],_hideLabel:["validateHideLabel"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_name:["validateName"],_on:["validateOn"],_role:["validateRole"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_tooltipAlign:["validateTooltipAlign"],_type:["validateType"],_value:["validateValue"],_variant:["validateVariant"]}}},validateId=(t,e)=>{prop_validators.watchString(t,"_id",e)},VISIBLE_OVERLAYS=new Set;function showOverlay(t){VISIBLE_OVERLAYS.forEach((t=>{t.style.setProperty("z-index","999")})),VISIBLE_OVERLAYS.add(t),t.style.setProperty("z-index","1000")}function hideOverlay(t){if(VISIBLE_OVERLAYS.delete(t),VISIBLE_OVERLAYS.size>0){const t=Array.from(VISIBLE_OVERLAYS).pop();t&&t.style.setProperty("z-index","1000")}}const styleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * No element should be used without a background and font color whose contrast ratio has\n\t\t * not been checked. By initially setting the background color to white and the font color\n\t\t * to black, the contrast ratio is ensured and explicit adjustment is forced.\n\t\t */\n\t\tbackground-color: white;\n\t\tcolor: black;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\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\tclip: rect(0 0 0 0);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tposition: absolute;\n\twhite-space: nowrap;\n\twidth: 1px;\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n\n\t/*\n\t * Ensure elements with hidden attribute to be actually not visible\n\t * @see https://meowni.ca/hidden.is.a.lie.html\n\t */\n\t[hidden] {\n\t\tdisplay: none !important;\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\tkol-tooltip-wc {\n\t\tdisplay: contents;\n\t}\n\n\tkol-tooltip-wc .tooltip-floating {\n\t\tanimation-duration: 0.5s;\n\t\tanimation-iteration-count: 1;\n\t\tanimation-name: fadeInOpacity;\n\t\tanimation-timing-function: ease-in;\n\t\tbox-sizing: border-box;\n\t\tdisplay: none;\n\t\tposition: absolute;\n\t\tvisibility: hidden;\n\t\t/* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tmax-width: 90vw;\n\t\tmax-height: 90vh;\n\t\twidth: var(--kol-tooltip-width); /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n\t}\n\n\t/* Shared between content and arrow */\n\tkol-tooltip-wc .tooltip-area {\n\t\tbackground-color: #fff;\n\t\tcolor: #000;\n\t}\n\n\tkol-tooltip-wc .tooltip-arrow {\n\t\theight: 10px;\n\t\tposition: absolute;\n\t\ttransform: rotate(45deg);\n\t\twidth: 10px;\n\t\tz-index: 999;\n\t}\n\n\tkol-tooltip-wc .tooltip-content {\n\t\tposition: relative;\n\t\tz-index: 1000;\n\t}\n\n\t@keyframes fadeInOpacity {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n}\n",KolTooltip=class{constructor(t){index.registerInstance(this,t),this.showTooltip=()=>{if(this.previousSibling&&this.tooltipElement){showOverlay(this.tooltipElement),this.tooltipElement.style.setProperty("display","block"),dev_utils.getDocument().addEventListener("keyup",this.hideTooltipByEscape);const t=this.previousSibling,e=this.tooltipElement;this.cleanupAutoPositioning=alignFloatingElements.autoUpdate(t,e,(()=>{this.alignTooltip()}))}},this.hideTooltip=()=>{this.tooltipElement&&(hideOverlay(this.tooltipElement),this.tooltipElement.style.setProperty("display","none"),this.tooltipElement.style.setProperty("visibility","hidden"),this.cleanupAutoPositioning&&(this.cleanupAutoPositioning(),this.cleanupAutoPositioning=void 0)),dev_utils.getDocument().removeEventListener("keyup",this.hideTooltipByEscape)},this.hideTooltipByEscape=t=>{"Escape"===t.key&&this.hideTooltip()},this.addListeners=t=>{t.addEventListener("mouseover",this.incrementOverFocusCount),t.addEventListener("focus",this.incrementOverFocusCount),t.addEventListener("focusin",this.incrementOverFocusCount),t.addEventListener("mouseout",this.decrementOverFocusCount),t.addEventListener("blur",this.decrementOverFocusCount),t.addEventListener("focusout",this.decrementOverFocusCount)},this.removeListeners=t=>{t.removeEventListener("mouseover",this.incrementOverFocusCount),t.removeEventListener("focus",this.incrementOverFocusCount),t.removeEventListener("focusin",this.incrementOverFocusCount),t.removeEventListener("mouseout",this.decrementOverFocusCount),t.removeEventListener("blur",this.decrementOverFocusCount),t.addEventListener("focusout",this.decrementOverFocusCount)},this.resyncListeners=(t,e,i=!1)=>{t&&this.removeListeners(t),e&&(i&&(this.previousSibling=e),this.addListeners(e))},this.catchTooltipElement=t=>{this.tooltipElement=t},this.catchArrowElement=t=>{this.arrowElement=t},this.overFocusCount=0,this.incrementOverFocusCount=()=>{this.overFocusCount++,this.showOrHideTooltip()},this.decrementOverFocusCount=()=>{this.overFocusCount--,this.showOrHideTooltip()},this.showOrHideTooltip=()=>{clearTimeout(this.overFocusTimeout),this.overFocusTimeout=setTimeout((()=>{clearTimeout(this.overFocusTimeout),this.overFocusCount>0?this.showTooltip():this.hideTooltip()}),250)},this._accessKey=void 0,this._align="top",this._id=void 0,this._label=void 0,this.state={_align:"top",_id:dev_utils.nonce(),_label:"…"}}async alignTooltip(){this.tooltipElement&&this.previousSibling&&await alignFloatingElements.alignFloatingElements({align:this._align,referenceElement:this.previousSibling,arrowElement:this.arrowElement,floatingElement:this.tooltipElement})}render(){return index.h(index.Host,null,""!==this.state._label&&index.h("div",{class:"tooltip-floating",ref:this.catchTooltipElement},index.h("div",{class:"tooltip-area tooltip-arrow",ref:this.catchArrowElement}),index.h("kol-span-wc",{class:"tooltip-area tooltip-content",id:this.state._id,_accessKey:this._accessKey,_label:this.state._label})))}validateAccessKey(t){accessKey.validateAccessKey(this,t)}validateAlign(t){alignment.validateAlign(this,t)}validateId(t){validateId(this,t)}validateLabel(t){label.validateLabel(this,t)}componentWillLoad(){this.validateAccessKey(this._accessKey),this.validateAlign(this._align),this.validateId(this._id),this.validateLabel(this._label)}handleEventListeners(){var t;this.resyncListeners(this.previousSibling,null===(t=this.host)||void 0===t?void 0:t.previousElementSibling,!0),this.resyncListeners(this.tooltipElement,this.tooltipElement)}connectedCallback(){var t;this.previousSibling=null===(t=this.host)||void 0===t?void 0:t.previousElementSibling,this.handleEventListeners()}componentDidRender(){this.handleEventListeners()}disconnectedCallback(){this.previousSibling&&(this.removeListeners(this.previousSibling),this.previousSibling=void 0),this.tooltipElement&&this.removeListeners(this.tooltipElement),this.cleanupAutoPositioning&&this.cleanupAutoPositioning()}get host(){return index.getElement(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_align:["validateAlign"],_id:["validateId"],_label:["validateLabel"]}}};KolTooltip.style=styleCss,exports.kol_button_wc=KolButtonWc,exports.kol_tooltip_wc=KolTooltip;
4
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-3145a30d.js"),alternativeButtonLinkRole=require("./alternative-button-link-role-d4424d08.js"),prop_validators=require("./prop.validators-03eee51d.js"),customClass=require("./custom-class-00d4c432.js"),hideLabel=require("./hide-label-869c662f.js"),icons=require("./icons-cd5e767b.js"),label=require("./label-a5fa1288.js"),tooltipAlign=require("./tooltip-align-d904bd68.js"),a11y_tipps=require("./a11y.tipps-bde4c917.js"),events=require("./events-e348a615.js"),reuse=require("./reuse-a4c8450e.js"),tabIndex=require("./tab-index-3943c150.js"),controller=require("./controller-0ccb739c.js"),associated_controller=require("./associated.controller-b24b75d0.js"),accessKey=require("./access-key-0cc8c925.js"),alignFloatingElements=require("./align-floating-elements-656b8edb.js"),alignment=require("./alignment-ed625336.js"),dev_utils=require("./dev.utils-a6b6f115.js"),validateAriaControls=(t,e)=>{prop_validators.watchString(t,"_ariaControls",e)},validateAriaExpanded=(t,e)=>{prop_validators.watchBoolean(t,"_ariaExpanded",e)},validateButtonCallbacks=(t,e)=>{prop_validators.watchValidator(t,"_on",(t=>"object"==typeof t&&null!==t),new Set(["ButtonCallbacksPropType {Events.onClick, Events.onMouseDown}"]),e)},buttonTypePropTypeOptions=["button","reset","submit"],validateButtonType=(t,e)=>{prop_validators.watchValidator(t,"_type",(t=>"string"==typeof t&&buttonTypePropTypeOptions.includes(t)),new Set([`KoliBriButtonType {${buttonTypePropTypeOptions.join(", ")}`]),e)},buttonVariantPropTypeOptions=["primary","secondary","normal","tertiary","danger","ghost","custom"],validateButtonVariant=(t,e)=>{prop_validators.watchValidator(t,"_variant",(t=>"string"==typeof t&&buttonVariantPropTypeOptions.includes(t)),new Set([`KoliBriButtonVariant {${buttonVariantPropTypeOptions.join(", ")}`]),e,{defaultValue:"normal"})},validateDisabled=(t,e)=>{prop_validators.watchBoolean(t,"_disabled",e)},validateAriaSelected=(t,e)=>{prop_validators.watchBoolean(t,"_ariaSelected",e)},KolButtonWc=class{render(){const t=reuse.showExpertSlot(this.state._label);return index.h(index.Host,null,index.h("button",Object.assign({ref:this.catchRef,accessKey:this.state._accessKey||void 0,"aria-controls":this.state._ariaControls,"aria-expanded":prop_validators.mapBoolean2String(this.state._ariaExpanded),"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,"aria-selected":prop_validators.mapStringOrBoolean2String(this.state._ariaSelected),class:{button:!0,[this.state._variant]:"custom"!==this.state._variant,[this.state._customClass]:"custom"===this.state._variant&&"string"==typeof this.state._customClass&&this.state._customClass.length>0,"icon-only":!0===this.state._hideLabel,"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}),index.h("kol-span-wc",{class:"button-inner",_accessKey:this.state._accessKey,_icons:this.state._icons,_hideLabel:this.state._hideLabel,_label:t?"":this.state._label},index.h("slot",{name:"expert",slot:"expert"}))),index.h("kol-tooltip-wc",{"aria-hidden":"true",hidden:t||!this.state._hideLabel,_accessKey:this._accessKey,_align:this.state._tooltipAlign,_label:"string"==typeof this.state._label?this.state._label:""}))}constructor(t){index.registerInstance(this,t),this.catchRef=t=>{this.ref=t,reuse.propagateFocus(this.host,this.ref)},this.onClick=t=>{var e,i;"submit"===this.state._type?controller.propagateSubmitEventToForm({form:this.host,ref:this.ref}):"reset"===this.state._type?controller.propagateResetEventToForm({form:this.host,ref:this.ref}):(events.stopPropagation(t),events.tryToDispatchKoliBriEvent("click",this.host,this.state._value),this.controller.setFormAssociatedValue(this.state._value),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onClick)&&(prop_validators.setEventTarget(t,this.ref),null===(i=this.state._on)||void 0===i||i.onClick(t,this.state._value)))},this._accessKey=void 0,this._ariaControls=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._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 associated_controller.AssociatedInputController(this,"button",this.host)}validateAccessKey(t){accessKey.validateAccessKey(this,t)}validateAriaControls(t){validateAriaControls(this,t)}validateAriaExpanded(t){validateAriaExpanded(this,t)}validateAriaSelected(t){validateAriaSelected(this,t)}validateCustomClass(t){customClass.validateCustomClass(this,t)}validateDisabled(t){validateDisabled(this,t),!0===t&&a11y_tipps.a11yHintDisabled()}validateHideLabel(t){hideLabel.validateHideLabel(this,t)}validateIcons(t){icons.validateIcons(this,t)}validateId(t){prop_validators.watchString(this,"_id",t)}validateLabel(t){label.validateLabelWithExpertSlot(this,t)}validateName(t){this.controller.validateName(t)}validateOn(t){validateButtonCallbacks(this,t)}validateRole(t){alternativeButtonLinkRole.validateAlternativeButtonLinkRole(this,t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){tabIndex.validateTabIndex(this,t)}validateTooltipAlign(t){tooltipAlign.validateTooltipAlign(this,t)}validateType(t){validateButtonType(this,t)}validateValue(t){prop_validators.setState(this,"_value",t),this.controller.setFormAssociatedValue(this.state._value)}validateVariant(t){validateButtonVariant(this,t)}componentWillLoad(){this.validateAccessKey(this._accessKey),this.validateAriaControls(this._ariaControls),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.validateSyncValueBySelector(this._syncValueBySelector),this.validateTabIndex(this._tabIndex),this.validateTooltipAlign(this._tooltipAlign),this.validateType(this._type),this.validateValue(this._value),this.validateVariant(this._variant)}get host(){return index.getElement(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_ariaControls:["validateAriaControls"],_ariaExpanded:["validateAriaExpanded"],_ariaSelected:["validateAriaSelected"],_customClass:["validateCustomClass"],_disabled:["validateDisabled"],_hideLabel:["validateHideLabel"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_name:["validateName"],_on:["validateOn"],_role:["validateRole"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_tooltipAlign:["validateTooltipAlign"],_type:["validateType"],_value:["validateValue"],_variant:["validateVariant"]}}},validateId=(t,e)=>{prop_validators.watchString(t,"_id",e)},VISIBLE_OVERLAYS=new Set;function showOverlay(t){VISIBLE_OVERLAYS.forEach((t=>{t.style.setProperty("z-index","999")})),VISIBLE_OVERLAYS.add(t),t.style.setProperty("z-index","1000")}function hideOverlay(t){if(VISIBLE_OVERLAYS.delete(t),VISIBLE_OVERLAYS.size>0){const t=Array.from(VISIBLE_OVERLAYS).pop();t&&t.style.setProperty("z-index","1000")}}const styleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * No element should be used without a background and font color whose contrast ratio has\n\t\t * not been checked. By initially setting the background color to white and the font color\n\t\t * to black, the contrast ratio is ensured and explicit adjustment is forced.\n\t\t */\n\t\tbackground-color: white;\n\t\tcolor: black;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\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\tclip: rect(0 0 0 0);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tposition: absolute;\n\twhite-space: nowrap;\n\twidth: 1px;\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n\n\t/*\n\t * Ensure elements with hidden attribute to be actually not visible\n\t * @see https://meowni.ca/hidden.is.a.lie.html\n\t */\n\t[hidden] {\n\t\tdisplay: none !important;\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\tkol-tooltip-wc {\n\t\tdisplay: contents;\n\t}\n\n\tkol-tooltip-wc .tooltip-floating {\n\t\tanimation-duration: 0.5s;\n\t\tanimation-iteration-count: 1;\n\t\tanimation-name: fadeInOpacity;\n\t\tanimation-timing-function: ease-in;\n\t\tbox-sizing: border-box;\n\t\tdisplay: none;\n\t\tposition: fixed;\n\t\tvisibility: hidden;\n\t\t/* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tmax-width: 90vw;\n\t\tmax-height: 90vh;\n\t\twidth: var(--kol-tooltip-width); /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n\t}\n\n\t/* Shared between content and arrow */\n\tkol-tooltip-wc .tooltip-area {\n\t\tbackground-color: #fff;\n\t\tcolor: #000;\n\t}\n\n\tkol-tooltip-wc .tooltip-arrow {\n\t\theight: 10px;\n\t\tposition: fixed;\n\t\ttransform: rotate(45deg);\n\t\twidth: 10px;\n\t\tz-index: 999;\n\t}\n\n\tkol-tooltip-wc .tooltip-content {\n\t\tposition: relative;\n\t\tz-index: 1000;\n\t}\n\n\t@keyframes fadeInOpacity {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n}\n",KolTooltip=class{constructor(t){index.registerInstance(this,t),this.showTooltip=()=>{if(this.previousSibling&&this.tooltipElement){showOverlay(this.tooltipElement),this.tooltipElement.style.setProperty("display","block"),dev_utils.getDocument().addEventListener("keyup",this.hideTooltipByEscape);const t=this.previousSibling,e=this.tooltipElement;this.cleanupAutoPositioning=alignFloatingElements.autoUpdate(t,e,(()=>{this.alignTooltip()}))}},this.hideTooltip=()=>{this.tooltipElement&&(hideOverlay(this.tooltipElement),this.tooltipElement.style.setProperty("display","none"),this.tooltipElement.style.setProperty("visibility","hidden"),this.cleanupAutoPositioning&&(this.cleanupAutoPositioning(),this.cleanupAutoPositioning=void 0)),dev_utils.getDocument().removeEventListener("keyup",this.hideTooltipByEscape)},this.hideTooltipByEscape=t=>{"Escape"===t.key&&this.hideTooltip()},this.addListeners=t=>{t.addEventListener("mouseover",this.incrementOverFocusCount),t.addEventListener("focus",this.incrementOverFocusCount),t.addEventListener("focusin",this.incrementOverFocusCount),t.addEventListener("mouseout",this.decrementOverFocusCount),t.addEventListener("blur",this.decrementOverFocusCount),t.addEventListener("focusout",this.decrementOverFocusCount)},this.removeListeners=t=>{t.removeEventListener("mouseover",this.incrementOverFocusCount),t.removeEventListener("focus",this.incrementOverFocusCount),t.removeEventListener("focusin",this.incrementOverFocusCount),t.removeEventListener("mouseout",this.decrementOverFocusCount),t.removeEventListener("blur",this.decrementOverFocusCount),t.addEventListener("focusout",this.decrementOverFocusCount)},this.resyncListeners=(t,e,i=!1)=>{t&&this.removeListeners(t),e&&(i&&(this.previousSibling=e),this.addListeners(e))},this.catchTooltipElement=t=>{this.tooltipElement=t},this.catchArrowElement=t=>{this.arrowElement=t},this.overFocusCount=0,this.incrementOverFocusCount=()=>{this.overFocusCount++,this.showOrHideTooltip()},this.decrementOverFocusCount=()=>{this.overFocusCount--,this.showOrHideTooltip()},this.showOrHideTooltip=()=>{clearTimeout(this.overFocusTimeout),this.overFocusTimeout=setTimeout((()=>{clearTimeout(this.overFocusTimeout),this.overFocusCount>0?this.showTooltip():this.hideTooltip()}),250)},this._accessKey=void 0,this._align="top",this._id=void 0,this._label=void 0,this.state={_align:"top",_id:dev_utils.nonce(),_label:"…"}}async alignTooltip(){this.tooltipElement&&this.previousSibling&&await alignFloatingElements.alignFloatingElements({align:this._align,referenceElement:this.previousSibling,arrowElement:this.arrowElement,floatingElement:this.tooltipElement})}render(){return index.h(index.Host,null,""!==this.state._label&&index.h("div",{class:"tooltip-floating",ref:this.catchTooltipElement},index.h("div",{class:"tooltip-area tooltip-arrow",ref:this.catchArrowElement}),index.h("kol-span-wc",{class:"tooltip-area tooltip-content",id:this.state._id,_accessKey:this._accessKey,_label:this.state._label})))}validateAccessKey(t){accessKey.validateAccessKey(this,t)}validateAlign(t){alignment.validateAlign(this,t)}validateId(t){validateId(this,t)}validateLabel(t){label.validateLabel(this,t)}componentWillLoad(){this.validateAccessKey(this._accessKey),this.validateAlign(this._align),this.validateId(this._id),this.validateLabel(this._label)}handleEventListeners(){var t;this.resyncListeners(this.previousSibling,null===(t=this.host)||void 0===t?void 0:t.previousElementSibling,!0),this.resyncListeners(this.tooltipElement,this.tooltipElement)}connectedCallback(){var t;this.previousSibling=null===(t=this.host)||void 0===t?void 0:t.previousElementSibling,this.handleEventListeners()}componentDidRender(){this.handleEventListeners()}disconnectedCallback(){this.previousSibling&&(this.removeListeners(this.previousSibling),this.previousSibling=void 0),this.tooltipElement&&this.removeListeners(this.tooltipElement),this.cleanupAutoPositioning&&this.cleanupAutoPositioning()}get host(){return index.getElement(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_align:["validateAlign"],_id:["validateId"],_label:["validateLabel"]}}};KolTooltip.style=styleCss,exports.kol_button_wc=KolButtonWc,exports.kol_tooltip_wc=KolTooltip;