@public-ui/components 2.0.15 → 2.1.0

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 (1216) hide show
  1. package/custom-elements.json +1 -1
  2. package/dist/cjs/access-key-29c8f473.js +4 -0
  3. package/dist/cjs/access-key-29c8f473.js.map +1 -0
  4. package/dist/cjs/align-716634b6.js +4 -0
  5. package/dist/cjs/align-716634b6.js.map +1 -0
  6. package/dist/cjs/{align-floating-elements-a4f32471.js → align-floating-elements-bc6be189.js} +1 -1
  7. package/dist/cjs/{align-floating-elements-a4f32471.js.map → align-floating-elements-bc6be189.js.map} +1 -1
  8. package/dist/cjs/alternative-button-link-role-91c25ec3.js +4 -0
  9. package/dist/cjs/alternative-button-link-role-91c25ec3.js.map +1 -0
  10. package/dist/cjs/app-globals-4f5190d8.js +4 -0
  11. package/dist/cjs/app-globals-4f5190d8.js.map +1 -0
  12. package/dist/cjs/associated.controller-3ba641a8.js +4 -0
  13. package/dist/cjs/associated.controller-3ba641a8.js.map +1 -0
  14. package/dist/cjs/color-ed9292d8.js +4 -0
  15. package/dist/cjs/color-ed9292d8.js.map +1 -0
  16. package/dist/cjs/controller-3b2e3d4d.js +4 -0
  17. package/dist/cjs/controller-3b2e3d4d.js.map +1 -0
  18. package/dist/cjs/controller-411155c7.js +4 -0
  19. package/dist/cjs/controller-411155c7.js.map +1 -0
  20. package/dist/cjs/controller-4d211a58.js +4 -0
  21. package/dist/cjs/controller-4d211a58.js.map +1 -0
  22. package/dist/cjs/controller-95705083.js +4 -0
  23. package/dist/cjs/controller-95705083.js.map +1 -0
  24. package/dist/cjs/controller-98af2f0b.js +4 -0
  25. package/dist/cjs/controller-98af2f0b.js.map +1 -0
  26. package/dist/cjs/controller-icon-dea18467.js +4 -0
  27. package/dist/cjs/controller-icon-dea18467.js.map +1 -0
  28. package/dist/cjs/custom-class-8298d456.js +4 -0
  29. package/dist/cjs/custom-class-8298d456.js.map +1 -0
  30. package/dist/cjs/dev.utils-3e595d38.js +4 -0
  31. package/dist/cjs/dev.utils-3e595d38.js.map +1 -0
  32. package/dist/cjs/dev.utils-b48ac291.js +4 -0
  33. package/dist/cjs/dev.utils-b48ac291.js.map +1 -0
  34. package/dist/cjs/devtools-d68258e5.js +4 -0
  35. package/dist/cjs/devtools-d68258e5.js.map +1 -0
  36. package/dist/cjs/disabled-67c674b5.js +4 -0
  37. package/dist/cjs/disabled-67c674b5.js.map +1 -0
  38. package/dist/cjs/form-field-msg-2e2600d7.js.map +1 -1
  39. package/dist/cjs/has-closer-ff878289.js +4 -0
  40. package/dist/cjs/has-closer-ff878289.js.map +1 -0
  41. package/dist/cjs/hide-label-5d971414.js +4 -0
  42. package/dist/cjs/hide-label-5d971414.js.map +1 -0
  43. package/dist/cjs/href-add3090a.js +4 -0
  44. package/dist/cjs/href-add3090a.js.map +1 -0
  45. package/dist/cjs/{i18n-db3c5520.js → i18n-4f73c04e.js} +1 -1
  46. package/dist/cjs/{i18n-db3c5520.js.map → i18n-4f73c04e.js.map} +1 -1
  47. package/dist/cjs/icons-1c0ab99c.js +4 -0
  48. package/dist/cjs/icons-1c0ab99c.js.map +1 -0
  49. package/dist/cjs/image-source-83159d74.js +4 -0
  50. package/dist/cjs/image-source-83159d74.js.map +1 -0
  51. package/dist/cjs/index-8d8858f3.js +4 -0
  52. package/dist/cjs/index-8d8858f3.js.map +1 -0
  53. package/dist/cjs/{index-443b07fc.js → index-b30289da.js} +1 -1
  54. package/dist/cjs/{index-443b07fc.js.map → index-b30289da.js.map} +1 -1
  55. package/dist/cjs/index.cjs.js +1 -1
  56. package/dist/cjs/index.cjs.js.map +1 -1
  57. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  58. package/dist/cjs/kol-abbr.cjs.entry.js.map +1 -1
  59. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  60. package/dist/cjs/kol-accordion.cjs.entry.js.map +1 -1
  61. package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
  62. package/dist/cjs/kol-alert-wc.cjs.entry.js.map +1 -1
  63. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  64. package/dist/cjs/kol-alert.cjs.entry.js.map +1 -1
  65. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  66. package/dist/cjs/kol-avatar-wc.cjs.entry.js.map +1 -1
  67. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  68. package/dist/cjs/kol-avatar.cjs.entry.js.map +1 -1
  69. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-badge.cjs.entry.js.map +1 -1
  71. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-breadcrumb.cjs.entry.js.map +1 -1
  73. package/dist/cjs/kol-button-group-wc.cjs.entry.js +1 -1
  74. package/dist/cjs/kol-button-group-wc.cjs.entry.js.map +1 -1
  75. package/dist/cjs/kol-button-group.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-button-group.cjs.entry.js.map +1 -1
  77. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  78. package/dist/cjs/kol-button-link.cjs.entry.js.map +1 -1
  79. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  80. package/dist/cjs/kol-button-wc.cjs.entry.js.map +1 -1
  81. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  82. package/dist/cjs/kol-button.cjs.entry.js.map +1 -1
  83. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  84. package/dist/cjs/kol-card.cjs.entry.js.map +1 -1
  85. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  86. package/dist/cjs/kol-details.cjs.entry.js.map +1 -1
  87. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  88. package/dist/cjs/kol-form.cjs.entry.js.map +1 -1
  89. package/dist/cjs/kol-heading-wc.cjs.entry.js +1 -1
  90. package/dist/cjs/kol-heading-wc.cjs.entry.js.map +1 -1
  91. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-heading.cjs.entry.js.map +1 -1
  93. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  94. package/dist/cjs/kol-icon.cjs.entry.js.map +1 -1
  95. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  96. package/dist/cjs/kol-image.cjs.entry.js.map +1 -1
  97. package/dist/cjs/kol-indented-text.cjs.entry.js +1 -1
  98. package/dist/cjs/kol-indented-text.cjs.entry.js.map +1 -1
  99. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  100. package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
  101. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  102. package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
  103. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  104. package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
  105. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  106. package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
  107. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  108. package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
  109. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  110. package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
  111. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  112. package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
  113. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  114. package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
  115. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  116. package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
  117. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  118. package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
  119. package/dist/cjs/kol-input.cjs.entry.js +1 -1
  120. package/dist/cjs/kol-input.cjs.entry.js.map +1 -1
  121. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  122. package/dist/cjs/kol-kolibri.cjs.entry.js.map +1 -1
  123. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  124. package/dist/cjs/kol-link-button.cjs.entry.js.map +1 -1
  125. package/dist/cjs/kol-link-group.cjs.entry.js +1 -1
  126. package/dist/cjs/kol-link-group.cjs.entry.js.map +1 -1
  127. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  128. package/dist/cjs/kol-link-wc.cjs.entry.js.map +1 -1
  129. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  130. package/dist/cjs/kol-link.cjs.entry.js.map +1 -1
  131. package/dist/cjs/kol-logo.cjs.entry.js +1 -1
  132. package/dist/cjs/kol-logo.cjs.entry.js.map +1 -1
  133. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  134. package/dist/cjs/kol-modal.cjs.entry.js.map +1 -1
  135. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  136. package/dist/cjs/kol-nav.cjs.entry.js.map +1 -1
  137. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  138. package/dist/cjs/kol-pagination.cjs.entry.js.map +1 -1
  139. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  140. package/dist/cjs/kol-popover-wc.cjs.entry.js.map +1 -1
  141. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  142. package/dist/cjs/kol-progress.cjs.entry.js.map +1 -1
  143. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  144. package/dist/cjs/kol-quote.cjs.entry.js.map +1 -1
  145. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  146. package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
  147. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  148. package/dist/cjs/kol-skip-nav.cjs.entry.js.map +1 -1
  149. package/dist/cjs/kol-span-wc.cjs.entry.js +1 -1
  150. package/dist/cjs/kol-span-wc.cjs.entry.js.map +1 -1
  151. package/dist/cjs/kol-span.cjs.entry.js +1 -1
  152. package/dist/cjs/kol-span.cjs.entry.js.map +1 -1
  153. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  154. package/dist/cjs/kol-spin.cjs.entry.js.map +1 -1
  155. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  156. package/dist/cjs/kol-split-button.cjs.entry.js.map +1 -1
  157. package/dist/cjs/kol-symbol.cjs.entry.js +1 -1
  158. package/dist/cjs/kol-symbol.cjs.entry.js.map +1 -1
  159. package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
  160. package/dist/cjs/kol-table-stateful.cjs.entry.js.map +1 -1
  161. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
  162. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js.map +1 -1
  163. package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
  164. package/dist/cjs/kol-table-stateless.cjs.entry.js.map +1 -1
  165. package/dist/cjs/kol-table.cjs.entry.js +1 -1
  166. package/dist/cjs/kol-table.cjs.entry.js.map +1 -1
  167. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  168. package/dist/cjs/kol-tabs.cjs.entry.js.map +1 -1
  169. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  170. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  171. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  172. package/dist/cjs/kol-toast-container.cjs.entry.js.map +1 -1
  173. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  174. package/dist/cjs/kol-tooltip-wc.cjs.entry.js.map +1 -1
  175. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
  176. package/dist/cjs/kol-tree-item-wc.cjs.entry.js.map +1 -1
  177. package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
  178. package/dist/cjs/kol-tree-item.cjs.entry.js.map +1 -1
  179. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  180. package/dist/cjs/kol-tree-wc.cjs.entry.js.map +1 -1
  181. package/dist/cjs/kol-tree.cjs.entry.js +1 -1
  182. package/dist/cjs/kol-tree.cjs.entry.js.map +1 -1
  183. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  184. package/dist/cjs/kol-version.cjs.entry.js.map +1 -1
  185. package/dist/cjs/kolibri.cjs.js +1 -1
  186. package/dist/cjs/kolibri.cjs.js.map +1 -1
  187. package/dist/cjs/label-23abf417.js +4 -0
  188. package/dist/cjs/label-23abf417.js.map +1 -0
  189. package/dist/cjs/loader.cjs.js +1 -1
  190. package/dist/cjs/loader.cjs.js.map +1 -1
  191. package/dist/cjs/open-a2cab99b.js +4 -0
  192. package/dist/cjs/open-a2cab99b.js.map +1 -0
  193. package/dist/cjs/prop.validators-5eb93968.js +4 -0
  194. package/dist/cjs/prop.validators-5eb93968.js.map +1 -0
  195. package/dist/cjs/reuse-daa2baf3.js +4 -0
  196. package/dist/cjs/reuse-daa2baf3.js.map +1 -0
  197. package/dist/cjs/rows-d2f243a5.js +4 -0
  198. package/dist/cjs/rows-d2f243a5.js.map +1 -0
  199. package/dist/cjs/show-8898a23d.js +4 -0
  200. package/dist/cjs/show-8898a23d.js.map +1 -0
  201. package/dist/cjs/suggestions-8bd45259.js +4 -0
  202. package/dist/cjs/suggestions-8bd45259.js.map +1 -0
  203. package/dist/cjs/tab-index-0e013513.js +4 -0
  204. package/dist/cjs/tab-index-0e013513.js.map +1 -0
  205. package/dist/cjs/table-data-foot-5fe6c5bf.js +4 -0
  206. package/dist/cjs/table-data-foot-5fe6c5bf.js.map +1 -0
  207. package/dist/cjs/table-render-function-7d9ebadc.js.map +1 -1
  208. package/dist/cjs/{toaster-7cd54f74.js → toaster-143bd150.js} +1 -1
  209. package/dist/cjs/{toaster-7cd54f74.js.map → toaster-143bd150.js.map} +1 -1
  210. package/dist/cjs/{toaster-e899a47f.js → toaster-de2cd2c8.js} +1 -1
  211. package/dist/cjs/{toaster-e899a47f.js.map → toaster-de2cd2c8.js.map} +1 -1
  212. package/dist/cjs/tooltip-align-b968ab9c.js +4 -0
  213. package/dist/cjs/tooltip-align-b968ab9c.js.map +1 -0
  214. package/dist/cjs/validation-3cdd4d53.js +4 -0
  215. package/dist/cjs/validation-3cdd4d53.js.map +1 -0
  216. package/dist/cjs/validation-80c0b59f.js +4 -0
  217. package/dist/cjs/validation-80c0b59f.js.map +1 -0
  218. package/dist/components/access-key.js +4 -0
  219. package/dist/components/access-key.js.map +1 -0
  220. package/dist/components/align-floating-elements.js +1 -1
  221. package/dist/components/align-floating-elements.js.map +1 -1
  222. package/dist/components/align.js +4 -0
  223. package/dist/components/align.js.map +1 -0
  224. package/dist/components/alternative-button-link-role.js +4 -0
  225. package/dist/components/alternative-button-link-role.js.map +1 -0
  226. package/dist/components/associated.controller.js +1 -1
  227. package/dist/components/associated.controller.js.map +1 -1
  228. package/dist/components/color.js +4 -0
  229. package/dist/components/color.js.map +1 -0
  230. package/dist/components/controller-icon.js +1 -1
  231. package/dist/components/controller-icon.js.map +1 -1
  232. package/dist/components/controller.js +1 -1
  233. package/dist/components/controller.js.map +1 -1
  234. package/dist/components/controller2.js +1 -1
  235. package/dist/components/controller2.js.map +1 -1
  236. package/dist/components/controller3.js +1 -1
  237. package/dist/components/controller3.js.map +1 -1
  238. package/dist/components/controller4.js +1 -1
  239. package/dist/components/controller4.js.map +1 -1
  240. package/dist/components/controller5.js +1 -1
  241. package/dist/components/controller5.js.map +1 -1
  242. package/dist/components/custom-class.js +4 -0
  243. package/dist/components/custom-class.js.map +1 -0
  244. package/dist/components/dev.utils.js +1 -1
  245. package/dist/components/dev.utils.js.map +1 -1
  246. package/dist/components/dev.utils2.js +4 -0
  247. package/dist/components/dev.utils2.js.map +1 -0
  248. package/dist/components/devtools.js +1 -1
  249. package/dist/components/devtools.js.map +1 -1
  250. package/dist/components/disabled.js +4 -0
  251. package/dist/components/disabled.js.map +1 -0
  252. package/dist/components/form-field-msg.js.map +1 -1
  253. package/dist/components/has-closer.js +4 -0
  254. package/dist/components/has-closer.js.map +1 -0
  255. package/dist/components/hide-label.js +4 -0
  256. package/dist/components/hide-label.js.map +1 -0
  257. package/dist/components/href.js +4 -0
  258. package/dist/components/href.js.map +1 -0
  259. package/dist/components/i18n2.js +1 -1
  260. package/dist/components/i18n2.js.map +1 -1
  261. package/dist/components/icons.js +4 -0
  262. package/dist/components/icons.js.map +1 -0
  263. package/dist/components/image-source.js +4 -0
  264. package/dist/components/image-source.js.map +1 -0
  265. package/dist/components/index.js +1 -1
  266. package/dist/components/index.js.map +1 -1
  267. package/dist/components/index2.js +1 -1
  268. package/dist/components/index2.js.map +1 -1
  269. package/dist/components/kol-abbr.js +1 -1
  270. package/dist/components/kol-abbr.js.map +1 -1
  271. package/dist/components/kol-accordion.js +1 -1
  272. package/dist/components/kol-accordion.js.map +1 -1
  273. package/dist/components/kol-alert-wc.js +1 -1
  274. package/dist/components/kol-alert-wc.js.map +1 -1
  275. package/dist/components/kol-alert.js +1 -1
  276. package/dist/components/kol-alert.js.map +1 -1
  277. package/dist/components/kol-avatar-wc.js +1 -1
  278. package/dist/components/kol-avatar-wc.js.map +1 -1
  279. package/dist/components/kol-avatar.js +1 -1
  280. package/dist/components/kol-avatar.js.map +1 -1
  281. package/dist/components/kol-badge.js +1 -1
  282. package/dist/components/kol-badge.js.map +1 -1
  283. package/dist/components/kol-breadcrumb.js +1 -1
  284. package/dist/components/kol-breadcrumb.js.map +1 -1
  285. package/dist/components/kol-button-group-wc.js +1 -1
  286. package/dist/components/kol-button-group-wc.js.map +1 -1
  287. package/dist/components/kol-button-group.js +1 -1
  288. package/dist/components/kol-button-group.js.map +1 -1
  289. package/dist/components/kol-button-link.js +1 -1
  290. package/dist/components/kol-button-link.js.map +1 -1
  291. package/dist/components/kol-button-wc.js +1 -1
  292. package/dist/components/kol-button-wc.js.map +1 -1
  293. package/dist/components/kol-button.js +1 -1
  294. package/dist/components/kol-button.js.map +1 -1
  295. package/dist/components/kol-card.js +1 -1
  296. package/dist/components/kol-card.js.map +1 -1
  297. package/dist/components/kol-details.js +1 -1
  298. package/dist/components/kol-details.js.map +1 -1
  299. package/dist/components/kol-form.js +1 -1
  300. package/dist/components/kol-form.js.map +1 -1
  301. package/dist/components/kol-heading-wc.js +1 -1
  302. package/dist/components/kol-heading-wc.js.map +1 -1
  303. package/dist/components/kol-heading.js +1 -1
  304. package/dist/components/kol-heading.js.map +1 -1
  305. package/dist/components/kol-icon.js +1 -1
  306. package/dist/components/kol-icon.js.map +1 -1
  307. package/dist/components/kol-image.js +1 -1
  308. package/dist/components/kol-image.js.map +1 -1
  309. package/dist/components/kol-indented-text.js +1 -1
  310. package/dist/components/kol-indented-text.js.map +1 -1
  311. package/dist/components/kol-input-checkbox.js +1 -1
  312. package/dist/components/kol-input-checkbox.js.map +1 -1
  313. package/dist/components/kol-input-color.js +1 -1
  314. package/dist/components/kol-input-color.js.map +1 -1
  315. package/dist/components/kol-input-date.js +1 -1
  316. package/dist/components/kol-input-date.js.map +1 -1
  317. package/dist/components/kol-input-email.js +1 -1
  318. package/dist/components/kol-input-email.js.map +1 -1
  319. package/dist/components/kol-input-file.js +1 -1
  320. package/dist/components/kol-input-file.js.map +1 -1
  321. package/dist/components/kol-input-number.js +1 -1
  322. package/dist/components/kol-input-number.js.map +1 -1
  323. package/dist/components/kol-input-password.js +1 -1
  324. package/dist/components/kol-input-password.js.map +1 -1
  325. package/dist/components/kol-input-radio.js +1 -1
  326. package/dist/components/kol-input-radio.js.map +1 -1
  327. package/dist/components/kol-input-range.js +1 -1
  328. package/dist/components/kol-input-range.js.map +1 -1
  329. package/dist/components/kol-input-text.js +1 -1
  330. package/dist/components/kol-input-text.js.map +1 -1
  331. package/dist/components/kol-input.js +1 -1
  332. package/dist/components/kol-input.js.map +1 -1
  333. package/dist/components/kol-kolibri.js +1 -1
  334. package/dist/components/kol-kolibri.js.map +1 -1
  335. package/dist/components/kol-link-button.js +1 -1
  336. package/dist/components/kol-link-button.js.map +1 -1
  337. package/dist/components/kol-link-group.js +1 -1
  338. package/dist/components/kol-link-group.js.map +1 -1
  339. package/dist/components/kol-link-wc.js +1 -1
  340. package/dist/components/kol-link-wc.js.map +1 -1
  341. package/dist/components/kol-link.js +1 -1
  342. package/dist/components/kol-link.js.map +1 -1
  343. package/dist/components/kol-logo.js +1 -1
  344. package/dist/components/kol-logo.js.map +1 -1
  345. package/dist/components/kol-modal.js +1 -1
  346. package/dist/components/kol-modal.js.map +1 -1
  347. package/dist/components/kol-nav.js +1 -1
  348. package/dist/components/kol-nav.js.map +1 -1
  349. package/dist/components/kol-pagination.js +1 -1
  350. package/dist/components/kol-pagination.js.map +1 -1
  351. package/dist/components/kol-popover-wc.js +1 -1
  352. package/dist/components/kol-popover-wc.js.map +1 -1
  353. package/dist/components/kol-progress.js +1 -1
  354. package/dist/components/kol-progress.js.map +1 -1
  355. package/dist/components/kol-quote.js +1 -1
  356. package/dist/components/kol-quote.js.map +1 -1
  357. package/dist/components/kol-select.js +1 -1
  358. package/dist/components/kol-select.js.map +1 -1
  359. package/dist/components/kol-skip-nav.js +1 -1
  360. package/dist/components/kol-skip-nav.js.map +1 -1
  361. package/dist/components/kol-span-wc.js +1 -1
  362. package/dist/components/kol-span-wc.js.map +1 -1
  363. package/dist/components/kol-span.js +1 -1
  364. package/dist/components/kol-span.js.map +1 -1
  365. package/dist/components/kol-spin.js +1 -1
  366. package/dist/components/kol-spin.js.map +1 -1
  367. package/dist/components/kol-split-button.js +1 -1
  368. package/dist/components/kol-split-button.js.map +1 -1
  369. package/dist/components/kol-symbol.js +1 -1
  370. package/dist/components/kol-symbol.js.map +1 -1
  371. package/dist/components/kol-table-stateful.js +1 -1
  372. package/dist/components/kol-table-stateful.js.map +1 -1
  373. package/dist/components/kol-table-stateless-wc.js +1 -1
  374. package/dist/components/kol-table-stateless-wc.js.map +1 -1
  375. package/dist/components/kol-table-stateless.js +1 -1
  376. package/dist/components/kol-table-stateless.js.map +1 -1
  377. package/dist/components/kol-table.js +1 -1
  378. package/dist/components/kol-table.js.map +1 -1
  379. package/dist/components/kol-tabs.js +1 -1
  380. package/dist/components/kol-tabs.js.map +1 -1
  381. package/dist/components/kol-textarea.js +1 -1
  382. package/dist/components/kol-textarea.js.map +1 -1
  383. package/dist/components/kol-toast-container.js +1 -1
  384. package/dist/components/kol-toast-container.js.map +1 -1
  385. package/dist/components/kol-tooltip-wc.js +1 -1
  386. package/dist/components/kol-tooltip-wc.js.map +1 -1
  387. package/dist/components/kol-tree-item-wc.js +1 -1
  388. package/dist/components/kol-tree-item-wc.js.map +1 -1
  389. package/dist/components/kol-tree-item.js +1 -1
  390. package/dist/components/kol-tree-item.js.map +1 -1
  391. package/dist/components/kol-tree-wc.js +1 -1
  392. package/dist/components/kol-tree-wc.js.map +1 -1
  393. package/dist/components/kol-tree.js +1 -1
  394. package/dist/components/kol-tree.js.map +1 -1
  395. package/dist/components/kol-version.js +1 -1
  396. package/dist/components/kol-version.js.map +1 -1
  397. package/dist/components/label.js +4 -0
  398. package/dist/components/label.js.map +1 -0
  399. package/dist/components/open.js +4 -0
  400. package/dist/components/open.js.map +1 -0
  401. package/dist/components/prop.validators.js +4 -0
  402. package/dist/components/prop.validators.js.map +1 -0
  403. package/dist/components/reuse.js +4 -0
  404. package/dist/components/reuse.js.map +1 -0
  405. package/dist/components/rows.js +4 -0
  406. package/dist/components/rows.js.map +1 -0
  407. package/dist/components/show.js +4 -0
  408. package/dist/components/show.js.map +1 -0
  409. package/dist/components/suggestions.js +4 -0
  410. package/dist/components/suggestions.js.map +1 -0
  411. package/dist/components/tab-index.js +4 -0
  412. package/dist/components/tab-index.js.map +1 -0
  413. package/dist/components/table-data-foot.js +4 -0
  414. package/dist/components/table-data-foot.js.map +1 -0
  415. package/dist/components/table-render-function.js.map +1 -1
  416. package/dist/components/tooltip-align.js +4 -0
  417. package/dist/components/tooltip-align.js.map +1 -0
  418. package/dist/components/validation.js +1 -1
  419. package/dist/components/validation.js.map +1 -1
  420. package/dist/components/validation2.js +1 -1
  421. package/dist/components/validation2.js.map +1 -1
  422. package/dist/declare.d.ts +22 -0
  423. package/dist/esm/access-key-04ca8172.js +4 -0
  424. package/dist/esm/access-key-04ca8172.js.map +1 -0
  425. package/dist/esm/align-fc528dec.js +4 -0
  426. package/dist/esm/align-fc528dec.js.map +1 -0
  427. package/dist/esm/{align-floating-elements-f7d913f4.js → align-floating-elements-0cd5dc51.js} +1 -1
  428. package/dist/esm/{align-floating-elements-f7d913f4.js.map → align-floating-elements-0cd5dc51.js.map} +1 -1
  429. package/dist/esm/alternative-button-link-role-97826181.js +4 -0
  430. package/dist/esm/alternative-button-link-role-97826181.js.map +1 -0
  431. package/dist/esm/app-globals-d78b8e64.js +4 -0
  432. package/dist/esm/app-globals-d78b8e64.js.map +1 -0
  433. package/dist/esm/associated.controller-b0ff2f30.js +4 -0
  434. package/dist/esm/associated.controller-b0ff2f30.js.map +1 -0
  435. package/dist/esm/color-5129ba78.js +4 -0
  436. package/dist/esm/color-5129ba78.js.map +1 -0
  437. package/dist/esm/controller-04329990.js +4 -0
  438. package/dist/esm/controller-04329990.js.map +1 -0
  439. package/dist/esm/controller-3340473e.js +4 -0
  440. package/dist/esm/controller-3340473e.js.map +1 -0
  441. package/dist/esm/controller-423fae71.js +4 -0
  442. package/dist/esm/controller-423fae71.js.map +1 -0
  443. package/dist/esm/controller-942cc80a.js +4 -0
  444. package/dist/esm/controller-942cc80a.js.map +1 -0
  445. package/dist/esm/controller-af9c691f.js +4 -0
  446. package/dist/esm/controller-af9c691f.js.map +1 -0
  447. package/dist/esm/controller-icon-b040c27e.js +4 -0
  448. package/dist/esm/controller-icon-b040c27e.js.map +1 -0
  449. package/dist/esm/custom-class-f88bc94b.js +4 -0
  450. package/dist/esm/custom-class-f88bc94b.js.map +1 -0
  451. package/dist/esm/dev.utils-1ca991a2.js +4 -0
  452. package/dist/esm/dev.utils-1ca991a2.js.map +1 -0
  453. package/dist/esm/dev.utils-37559a2c.js +4 -0
  454. package/dist/esm/dev.utils-37559a2c.js.map +1 -0
  455. package/dist/esm/devtools-a2ed4171.js +4 -0
  456. package/dist/esm/devtools-a2ed4171.js.map +1 -0
  457. package/dist/esm/disabled-fbc49ac0.js +4 -0
  458. package/dist/esm/disabled-fbc49ac0.js.map +1 -0
  459. package/dist/esm/form-field-msg-244f6083.js.map +1 -1
  460. package/dist/esm/has-closer-f9cf9bc4.js +4 -0
  461. package/dist/esm/has-closer-f9cf9bc4.js.map +1 -0
  462. package/dist/esm/hide-label-c461d8fe.js +4 -0
  463. package/dist/esm/hide-label-c461d8fe.js.map +1 -0
  464. package/dist/esm/href-7d17954a.js +4 -0
  465. package/dist/esm/href-7d17954a.js.map +1 -0
  466. package/dist/esm/{i18n-7bf2bd6f.js → i18n-37baa421.js} +1 -1
  467. package/dist/esm/{i18n-7bf2bd6f.js.map → i18n-37baa421.js.map} +1 -1
  468. package/dist/esm/icons-d2e01be4.js +4 -0
  469. package/dist/esm/icons-d2e01be4.js.map +1 -0
  470. package/dist/esm/image-source-36b5abe9.js +4 -0
  471. package/dist/esm/image-source-36b5abe9.js.map +1 -0
  472. package/dist/esm/index-4a3076fc.js +4 -0
  473. package/dist/esm/index-4a3076fc.js.map +1 -0
  474. package/dist/{kolibri/index-e9e31210.js → esm/index-a55b574c.js} +1 -1
  475. package/dist/esm/{index-e9e31210.js.map → index-a55b574c.js.map} +1 -1
  476. package/dist/esm/index.js +1 -1
  477. package/dist/esm/index.js.map +1 -1
  478. package/dist/esm/kol-abbr.entry.js +1 -1
  479. package/dist/esm/kol-abbr.entry.js.map +1 -1
  480. package/dist/esm/kol-accordion.entry.js +1 -1
  481. package/dist/esm/kol-accordion.entry.js.map +1 -1
  482. package/dist/esm/kol-alert-wc.entry.js +1 -1
  483. package/dist/esm/kol-alert-wc.entry.js.map +1 -1
  484. package/dist/esm/kol-alert.entry.js +1 -1
  485. package/dist/esm/kol-alert.entry.js.map +1 -1
  486. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  487. package/dist/esm/kol-avatar-wc.entry.js.map +1 -1
  488. package/dist/esm/kol-avatar.entry.js +1 -1
  489. package/dist/esm/kol-avatar.entry.js.map +1 -1
  490. package/dist/esm/kol-badge.entry.js +1 -1
  491. package/dist/esm/kol-badge.entry.js.map +1 -1
  492. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  493. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  494. package/dist/esm/kol-button-group-wc.entry.js +1 -1
  495. package/dist/esm/kol-button-group-wc.entry.js.map +1 -1
  496. package/dist/esm/kol-button-group.entry.js +1 -1
  497. package/dist/esm/kol-button-group.entry.js.map +1 -1
  498. package/dist/esm/kol-button-link.entry.js +1 -1
  499. package/dist/esm/kol-button-link.entry.js.map +1 -1
  500. package/dist/esm/kol-button-wc.entry.js +1 -1
  501. package/dist/esm/kol-button-wc.entry.js.map +1 -1
  502. package/dist/esm/kol-button.entry.js +1 -1
  503. package/dist/esm/kol-button.entry.js.map +1 -1
  504. package/dist/esm/kol-card.entry.js +1 -1
  505. package/dist/esm/kol-card.entry.js.map +1 -1
  506. package/dist/esm/kol-details.entry.js +1 -1
  507. package/dist/esm/kol-details.entry.js.map +1 -1
  508. package/dist/esm/kol-form.entry.js +1 -1
  509. package/dist/esm/kol-form.entry.js.map +1 -1
  510. package/dist/esm/kol-heading-wc.entry.js +1 -1
  511. package/dist/esm/kol-heading-wc.entry.js.map +1 -1
  512. package/dist/esm/kol-heading.entry.js +1 -1
  513. package/dist/esm/kol-heading.entry.js.map +1 -1
  514. package/dist/esm/kol-icon.entry.js +1 -1
  515. package/dist/esm/kol-icon.entry.js.map +1 -1
  516. package/dist/esm/kol-image.entry.js +1 -1
  517. package/dist/esm/kol-image.entry.js.map +1 -1
  518. package/dist/esm/kol-indented-text.entry.js +1 -1
  519. package/dist/esm/kol-indented-text.entry.js.map +1 -1
  520. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  521. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  522. package/dist/esm/kol-input-color.entry.js +1 -1
  523. package/dist/esm/kol-input-color.entry.js.map +1 -1
  524. package/dist/esm/kol-input-date.entry.js +1 -1
  525. package/dist/esm/kol-input-date.entry.js.map +1 -1
  526. package/dist/esm/kol-input-email.entry.js +1 -1
  527. package/dist/esm/kol-input-email.entry.js.map +1 -1
  528. package/dist/esm/kol-input-file.entry.js +1 -1
  529. package/dist/esm/kol-input-file.entry.js.map +1 -1
  530. package/dist/esm/kol-input-number.entry.js +1 -1
  531. package/dist/esm/kol-input-number.entry.js.map +1 -1
  532. package/dist/esm/kol-input-password.entry.js +1 -1
  533. package/dist/esm/kol-input-password.entry.js.map +1 -1
  534. package/dist/esm/kol-input-radio.entry.js +1 -1
  535. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  536. package/dist/esm/kol-input-range.entry.js +1 -1
  537. package/dist/esm/kol-input-range.entry.js.map +1 -1
  538. package/dist/esm/kol-input-text.entry.js +1 -1
  539. package/dist/esm/kol-input-text.entry.js.map +1 -1
  540. package/dist/esm/kol-input.entry.js +1 -1
  541. package/dist/esm/kol-input.entry.js.map +1 -1
  542. package/dist/esm/kol-kolibri.entry.js +1 -1
  543. package/dist/esm/kol-kolibri.entry.js.map +1 -1
  544. package/dist/esm/kol-link-button.entry.js +1 -1
  545. package/dist/esm/kol-link-button.entry.js.map +1 -1
  546. package/dist/esm/kol-link-group.entry.js +1 -1
  547. package/dist/esm/kol-link-group.entry.js.map +1 -1
  548. package/dist/esm/kol-link-wc.entry.js +1 -1
  549. package/dist/esm/kol-link-wc.entry.js.map +1 -1
  550. package/dist/esm/kol-link.entry.js +1 -1
  551. package/dist/esm/kol-link.entry.js.map +1 -1
  552. package/dist/esm/kol-logo.entry.js +1 -1
  553. package/dist/esm/kol-logo.entry.js.map +1 -1
  554. package/dist/esm/kol-modal.entry.js +1 -1
  555. package/dist/esm/kol-modal.entry.js.map +1 -1
  556. package/dist/esm/kol-nav.entry.js +1 -1
  557. package/dist/esm/kol-nav.entry.js.map +1 -1
  558. package/dist/esm/kol-pagination.entry.js +1 -1
  559. package/dist/esm/kol-pagination.entry.js.map +1 -1
  560. package/dist/esm/kol-popover-wc.entry.js +1 -1
  561. package/dist/esm/kol-popover-wc.entry.js.map +1 -1
  562. package/dist/esm/kol-progress.entry.js +1 -1
  563. package/dist/esm/kol-progress.entry.js.map +1 -1
  564. package/dist/esm/kol-quote.entry.js +1 -1
  565. package/dist/esm/kol-quote.entry.js.map +1 -1
  566. package/dist/esm/kol-select.entry.js +1 -1
  567. package/dist/esm/kol-select.entry.js.map +1 -1
  568. package/dist/esm/kol-skip-nav.entry.js +1 -1
  569. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  570. package/dist/esm/kol-span-wc.entry.js +1 -1
  571. package/dist/esm/kol-span-wc.entry.js.map +1 -1
  572. package/dist/esm/kol-span.entry.js +1 -1
  573. package/dist/esm/kol-span.entry.js.map +1 -1
  574. package/dist/esm/kol-spin.entry.js +1 -1
  575. package/dist/esm/kol-spin.entry.js.map +1 -1
  576. package/dist/esm/kol-split-button.entry.js +1 -1
  577. package/dist/esm/kol-split-button.entry.js.map +1 -1
  578. package/dist/esm/kol-symbol.entry.js +1 -1
  579. package/dist/esm/kol-symbol.entry.js.map +1 -1
  580. package/dist/esm/kol-table-stateful.entry.js +1 -1
  581. package/dist/esm/kol-table-stateful.entry.js.map +1 -1
  582. package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
  583. package/dist/esm/kol-table-stateless-wc.entry.js.map +1 -1
  584. package/dist/esm/kol-table-stateless.entry.js +1 -1
  585. package/dist/esm/kol-table-stateless.entry.js.map +1 -1
  586. package/dist/esm/kol-table.entry.js +1 -1
  587. package/dist/esm/kol-table.entry.js.map +1 -1
  588. package/dist/esm/kol-tabs.entry.js +1 -1
  589. package/dist/esm/kol-tabs.entry.js.map +1 -1
  590. package/dist/esm/kol-textarea.entry.js +1 -1
  591. package/dist/esm/kol-textarea.entry.js.map +1 -1
  592. package/dist/esm/kol-toast-container.entry.js +1 -1
  593. package/dist/esm/kol-toast-container.entry.js.map +1 -1
  594. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  595. package/dist/esm/kol-tooltip-wc.entry.js.map +1 -1
  596. package/dist/esm/kol-tree-item-wc.entry.js +1 -1
  597. package/dist/esm/kol-tree-item-wc.entry.js.map +1 -1
  598. package/dist/esm/kol-tree-item.entry.js +1 -1
  599. package/dist/esm/kol-tree-item.entry.js.map +1 -1
  600. package/dist/esm/kol-tree-wc.entry.js +1 -1
  601. package/dist/esm/kol-tree-wc.entry.js.map +1 -1
  602. package/dist/esm/kol-tree.entry.js +1 -1
  603. package/dist/esm/kol-tree.entry.js.map +1 -1
  604. package/dist/esm/kol-version.entry.js +1 -1
  605. package/dist/esm/kol-version.entry.js.map +1 -1
  606. package/dist/esm/kolibri.js +1 -1
  607. package/dist/esm/kolibri.js.map +1 -1
  608. package/dist/esm/label-e56ffdc6.js +4 -0
  609. package/dist/esm/label-e56ffdc6.js.map +1 -0
  610. package/dist/esm/loader.js +1 -1
  611. package/dist/esm/loader.js.map +1 -1
  612. package/dist/esm/open-deacfbd7.js +4 -0
  613. package/dist/esm/open-deacfbd7.js.map +1 -0
  614. package/dist/esm/prop.validators-29d576d2.js +4 -0
  615. package/dist/esm/prop.validators-29d576d2.js.map +1 -0
  616. package/dist/esm/reuse-b66836de.js +4 -0
  617. package/dist/esm/reuse-b66836de.js.map +1 -0
  618. package/dist/esm/rows-005ad248.js +4 -0
  619. package/dist/esm/rows-005ad248.js.map +1 -0
  620. package/dist/esm/show-34226103.js +4 -0
  621. package/dist/esm/show-34226103.js.map +1 -0
  622. package/dist/esm/suggestions-d97a6ab9.js +4 -0
  623. package/dist/esm/suggestions-d97a6ab9.js.map +1 -0
  624. package/dist/esm/tab-index-2cbc1ad1.js +4 -0
  625. package/dist/esm/tab-index-2cbc1ad1.js.map +1 -0
  626. package/dist/esm/table-data-foot-ed56b062.js +4 -0
  627. package/dist/esm/table-data-foot-ed56b062.js.map +1 -0
  628. package/dist/esm/table-render-function-835a18a0.js.map +1 -1
  629. package/dist/esm/{toaster-12097d83.js → toaster-18d16ce1.js} +1 -1
  630. package/dist/esm/{toaster-12097d83.js.map → toaster-18d16ce1.js.map} +1 -1
  631. package/dist/esm/{toaster-4eb33f18.js → toaster-b6d0fa6b.js} +1 -1
  632. package/dist/esm/{toaster-4eb33f18.js.map → toaster-b6d0fa6b.js.map} +1 -1
  633. package/dist/esm/tooltip-align-c13a7aa7.js +4 -0
  634. package/dist/esm/tooltip-align-c13a7aa7.js.map +1 -0
  635. package/dist/esm/validation-561836d9.js +4 -0
  636. package/dist/esm/validation-561836d9.js.map +1 -0
  637. package/dist/esm/validation-c2d11c8c.js +4 -0
  638. package/dist/esm/validation-c2d11c8c.js.map +1 -0
  639. package/dist/kolibri/access-key-04ca8172.js +4 -0
  640. package/dist/kolibri/access-key-04ca8172.js.map +1 -0
  641. package/dist/kolibri/align-fc528dec.js +4 -0
  642. package/dist/kolibri/align-fc528dec.js.map +1 -0
  643. package/dist/kolibri/{align-floating-elements-f7d913f4.js → align-floating-elements-0cd5dc51.js} +1 -1
  644. package/dist/kolibri/{align-floating-elements-f7d913f4.js.map → align-floating-elements-0cd5dc51.js.map} +1 -1
  645. package/dist/kolibri/alternative-button-link-role-97826181.js +4 -0
  646. package/dist/kolibri/alternative-button-link-role-97826181.js.map +1 -0
  647. package/dist/kolibri/app-globals-d78b8e64.js +4 -0
  648. package/dist/kolibri/app-globals-d78b8e64.js.map +1 -0
  649. package/dist/kolibri/associated.controller-b0ff2f30.js +4 -0
  650. package/dist/kolibri/associated.controller-b0ff2f30.js.map +1 -0
  651. package/dist/kolibri/color-5129ba78.js +4 -0
  652. package/dist/kolibri/color-5129ba78.js.map +1 -0
  653. package/dist/kolibri/controller-04329990.js +4 -0
  654. package/dist/{esm/controller-09ce054b.js.map → kolibri/controller-04329990.js.map} +1 -1
  655. package/dist/kolibri/controller-3340473e.js +4 -0
  656. package/dist/kolibri/controller-3340473e.js.map +1 -0
  657. package/dist/kolibri/controller-423fae71.js +4 -0
  658. package/dist/kolibri/controller-423fae71.js.map +1 -0
  659. package/dist/kolibri/controller-942cc80a.js +4 -0
  660. package/dist/kolibri/controller-942cc80a.js.map +1 -0
  661. package/dist/kolibri/controller-af9c691f.js +4 -0
  662. package/dist/kolibri/controller-af9c691f.js.map +1 -0
  663. package/dist/kolibri/controller-icon-b040c27e.js +4 -0
  664. package/dist/kolibri/controller-icon-b040c27e.js.map +1 -0
  665. package/dist/kolibri/custom-class-f88bc94b.js +4 -0
  666. package/dist/kolibri/custom-class-f88bc94b.js.map +1 -0
  667. package/dist/kolibri/dev.utils-1ca991a2.js +4 -0
  668. package/dist/kolibri/dev.utils-1ca991a2.js.map +1 -0
  669. package/dist/kolibri/dev.utils-37559a2c.js +4 -0
  670. package/dist/kolibri/dev.utils-37559a2c.js.map +1 -0
  671. package/dist/kolibri/devtools-a2ed4171.js +4 -0
  672. package/dist/kolibri/devtools-a2ed4171.js.map +1 -0
  673. package/dist/kolibri/disabled-fbc49ac0.js +4 -0
  674. package/dist/kolibri/disabled-fbc49ac0.js.map +1 -0
  675. package/dist/kolibri/form-field-msg-244f6083.js.map +1 -1
  676. package/dist/kolibri/has-closer-f9cf9bc4.js +4 -0
  677. package/dist/kolibri/has-closer-f9cf9bc4.js.map +1 -0
  678. package/dist/kolibri/hide-label-c461d8fe.js +4 -0
  679. package/dist/kolibri/hide-label-c461d8fe.js.map +1 -0
  680. package/dist/kolibri/href-7d17954a.js +4 -0
  681. package/dist/kolibri/href-7d17954a.js.map +1 -0
  682. package/dist/kolibri/{i18n-7bf2bd6f.js → i18n-37baa421.js} +1 -1
  683. package/dist/kolibri/{i18n-7bf2bd6f.js.map → i18n-37baa421.js.map} +1 -1
  684. package/dist/kolibri/icons-d2e01be4.js +4 -0
  685. package/dist/kolibri/icons-d2e01be4.js.map +1 -0
  686. package/dist/kolibri/image-source-36b5abe9.js +4 -0
  687. package/dist/kolibri/image-source-36b5abe9.js.map +1 -0
  688. package/dist/kolibri/index-4a3076fc.js +4 -0
  689. package/dist/kolibri/index-4a3076fc.js.map +1 -0
  690. package/dist/{esm/index-e9e31210.js → kolibri/index-a55b574c.js} +1 -1
  691. package/dist/kolibri/index.esm.js +1 -1
  692. package/dist/kolibri/index.esm.js.map +1 -1
  693. package/dist/kolibri/kol-abbr.entry.js +1 -1
  694. package/dist/kolibri/kol-abbr.entry.js.map +1 -1
  695. package/dist/kolibri/kol-accordion.entry.js +1 -1
  696. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  697. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  698. package/dist/kolibri/kol-alert-wc.entry.js.map +1 -1
  699. package/dist/kolibri/kol-alert.entry.js +1 -1
  700. package/dist/kolibri/kol-alert.entry.js.map +1 -1
  701. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  702. package/dist/kolibri/kol-avatar-wc.entry.js.map +1 -1
  703. package/dist/kolibri/kol-avatar.entry.js +1 -1
  704. package/dist/kolibri/kol-avatar.entry.js.map +1 -1
  705. package/dist/kolibri/kol-badge.entry.js +1 -1
  706. package/dist/kolibri/kol-badge.entry.js.map +1 -1
  707. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  708. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  709. package/dist/kolibri/kol-button-group-wc.entry.js +1 -1
  710. package/dist/kolibri/kol-button-group-wc.entry.js.map +1 -1
  711. package/dist/kolibri/kol-button-group.entry.js +1 -1
  712. package/dist/kolibri/kol-button-group.entry.js.map +1 -1
  713. package/dist/kolibri/kol-button-link.entry.js +1 -1
  714. package/dist/kolibri/kol-button-link.entry.js.map +1 -1
  715. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  716. package/dist/kolibri/kol-button-wc.entry.js.map +1 -1
  717. package/dist/kolibri/kol-button.entry.js +1 -1
  718. package/dist/kolibri/kol-button.entry.js.map +1 -1
  719. package/dist/kolibri/kol-card.entry.js +1 -1
  720. package/dist/kolibri/kol-card.entry.js.map +1 -1
  721. package/dist/kolibri/kol-details.entry.js +1 -1
  722. package/dist/kolibri/kol-details.entry.js.map +1 -1
  723. package/dist/kolibri/kol-form.entry.js +1 -1
  724. package/dist/kolibri/kol-form.entry.js.map +1 -1
  725. package/dist/kolibri/kol-heading-wc.entry.js +1 -1
  726. package/dist/kolibri/kol-heading-wc.entry.js.map +1 -1
  727. package/dist/kolibri/kol-heading.entry.js +1 -1
  728. package/dist/kolibri/kol-heading.entry.js.map +1 -1
  729. package/dist/kolibri/kol-icon.entry.js +1 -1
  730. package/dist/kolibri/kol-icon.entry.js.map +1 -1
  731. package/dist/kolibri/kol-image.entry.js +1 -1
  732. package/dist/kolibri/kol-image.entry.js.map +1 -1
  733. package/dist/kolibri/kol-indented-text.entry.js +1 -1
  734. package/dist/kolibri/kol-indented-text.entry.js.map +1 -1
  735. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  736. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  737. package/dist/kolibri/kol-input-color.entry.js +1 -1
  738. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  739. package/dist/kolibri/kol-input-date.entry.js +1 -1
  740. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  741. package/dist/kolibri/kol-input-email.entry.js +1 -1
  742. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  743. package/dist/kolibri/kol-input-file.entry.js +1 -1
  744. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  745. package/dist/kolibri/kol-input-number.entry.js +1 -1
  746. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  747. package/dist/kolibri/kol-input-password.entry.js +1 -1
  748. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  749. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  750. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  751. package/dist/kolibri/kol-input-range.entry.js +1 -1
  752. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  753. package/dist/kolibri/kol-input-text.entry.js +1 -1
  754. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  755. package/dist/kolibri/kol-input.entry.js +1 -1
  756. package/dist/kolibri/kol-input.entry.js.map +1 -1
  757. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  758. package/dist/kolibri/kol-kolibri.entry.js.map +1 -1
  759. package/dist/kolibri/kol-link-button.entry.js +1 -1
  760. package/dist/kolibri/kol-link-button.entry.js.map +1 -1
  761. package/dist/kolibri/kol-link-group.entry.js +1 -1
  762. package/dist/kolibri/kol-link-group.entry.js.map +1 -1
  763. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  764. package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
  765. package/dist/kolibri/kol-link.entry.js +1 -1
  766. package/dist/kolibri/kol-link.entry.js.map +1 -1
  767. package/dist/kolibri/kol-logo.entry.js +1 -1
  768. package/dist/kolibri/kol-logo.entry.js.map +1 -1
  769. package/dist/kolibri/kol-modal.entry.js +1 -1
  770. package/dist/kolibri/kol-modal.entry.js.map +1 -1
  771. package/dist/kolibri/kol-nav.entry.js +1 -1
  772. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  773. package/dist/kolibri/kol-pagination.entry.js +1 -1
  774. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  775. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  776. package/dist/kolibri/kol-popover-wc.entry.js.map +1 -1
  777. package/dist/kolibri/kol-progress.entry.js +1 -1
  778. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  779. package/dist/kolibri/kol-quote.entry.js +1 -1
  780. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  781. package/dist/kolibri/kol-select.entry.js +1 -1
  782. package/dist/kolibri/kol-select.entry.js.map +1 -1
  783. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  784. package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
  785. package/dist/kolibri/kol-span-wc.entry.js +1 -1
  786. package/dist/kolibri/kol-span-wc.entry.js.map +1 -1
  787. package/dist/kolibri/kol-span.entry.js +1 -1
  788. package/dist/kolibri/kol-span.entry.js.map +1 -1
  789. package/dist/kolibri/kol-spin.entry.js +1 -1
  790. package/dist/kolibri/kol-spin.entry.js.map +1 -1
  791. package/dist/kolibri/kol-split-button.entry.js +1 -1
  792. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  793. package/dist/kolibri/kol-symbol.entry.js +1 -1
  794. package/dist/kolibri/kol-symbol.entry.js.map +1 -1
  795. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  796. package/dist/kolibri/kol-table-stateful.entry.js.map +1 -1
  797. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  798. package/dist/kolibri/kol-table-stateless-wc.entry.js.map +1 -1
  799. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  800. package/dist/kolibri/kol-table-stateless.entry.js.map +1 -1
  801. package/dist/kolibri/kol-table.entry.js +1 -1
  802. package/dist/kolibri/kol-table.entry.js.map +1 -1
  803. package/dist/kolibri/kol-tabs.entry.js +1 -1
  804. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  805. package/dist/kolibri/kol-textarea.entry.js +1 -1
  806. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  807. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  808. package/dist/kolibri/kol-toast-container.entry.js.map +1 -1
  809. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  810. package/dist/kolibri/kol-tooltip-wc.entry.js.map +1 -1
  811. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  812. package/dist/kolibri/kol-tree-item-wc.entry.js.map +1 -1
  813. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  814. package/dist/kolibri/kol-tree-item.entry.js.map +1 -1
  815. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  816. package/dist/kolibri/kol-tree-wc.entry.js.map +1 -1
  817. package/dist/kolibri/kol-tree.entry.js +1 -1
  818. package/dist/kolibri/kol-tree.entry.js.map +1 -1
  819. package/dist/kolibri/kol-version.entry.js +1 -1
  820. package/dist/kolibri/kol-version.entry.js.map +1 -1
  821. package/dist/kolibri/kolibri.esm.js +1 -1
  822. package/dist/kolibri/kolibri.esm.js.map +1 -1
  823. package/dist/kolibri/label-e56ffdc6.js +4 -0
  824. package/dist/kolibri/label-e56ffdc6.js.map +1 -0
  825. package/dist/kolibri/open-deacfbd7.js +4 -0
  826. package/dist/kolibri/open-deacfbd7.js.map +1 -0
  827. package/dist/kolibri/prop.validators-29d576d2.js +4 -0
  828. package/dist/kolibri/prop.validators-29d576d2.js.map +1 -0
  829. package/dist/kolibri/reuse-b66836de.js +4 -0
  830. package/dist/kolibri/reuse-b66836de.js.map +1 -0
  831. package/dist/kolibri/rows-005ad248.js +4 -0
  832. package/dist/kolibri/rows-005ad248.js.map +1 -0
  833. package/dist/kolibri/show-34226103.js +4 -0
  834. package/dist/kolibri/show-34226103.js.map +1 -0
  835. package/dist/kolibri/suggestions-d97a6ab9.js +4 -0
  836. package/dist/kolibri/suggestions-d97a6ab9.js.map +1 -0
  837. package/dist/kolibri/tab-index-2cbc1ad1.js +4 -0
  838. package/dist/kolibri/tab-index-2cbc1ad1.js.map +1 -0
  839. package/dist/kolibri/table-data-foot-ed56b062.js +4 -0
  840. package/dist/kolibri/table-data-foot-ed56b062.js.map +1 -0
  841. package/dist/kolibri/table-render-function-835a18a0.js.map +1 -1
  842. package/dist/kolibri/{toaster-12097d83.js → toaster-18d16ce1.js} +1 -1
  843. package/dist/kolibri/toaster-18d16ce1.js.map +1 -0
  844. package/dist/kolibri/{toaster-4eb33f18.js → toaster-b6d0fa6b.js} +1 -1
  845. package/dist/kolibri/tooltip-align-c13a7aa7.js +4 -0
  846. package/dist/kolibri/tooltip-align-c13a7aa7.js.map +1 -0
  847. package/dist/kolibri/validation-561836d9.js +4 -0
  848. package/dist/kolibri/validation-561836d9.js.map +1 -0
  849. package/dist/kolibri/validation-c2d11c8c.js +4 -0
  850. package/dist/kolibri/validation-c2d11c8c.js.map +1 -0
  851. package/dist/types/components/@deprecated/input/controller-icon.d.ts +1 -1
  852. package/dist/types/components/@deprecated/input/controller.d.ts +1 -1
  853. package/dist/types/components/@deprecated/input/types-icon.d.ts +1 -1
  854. package/dist/types/components/@deprecated/input/types.d.ts +1 -1
  855. package/dist/types/components/@shared/form-field-msg.d.ts +1 -1
  856. package/dist/types/components/abbr/component.d.ts +1 -1
  857. package/dist/types/components/abbr/test/html.mock.d.ts +1 -1
  858. package/dist/types/components/accordion/component.d.ts +1 -1
  859. package/dist/types/components/accordion/test/html.mock.d.ts +1 -1
  860. package/dist/types/components/alert/component.d.ts +1 -1
  861. package/dist/types/components/alert/shadow.d.ts +1 -1
  862. package/dist/types/components/alert/test/html.mock.d.ts +1 -1
  863. package/dist/types/components/avatar/component.d.ts +1 -1
  864. package/dist/types/components/avatar/shadow.d.ts +1 -1
  865. package/dist/types/components/avatar/test/html.mock.d.ts +1 -1
  866. package/dist/types/components/badge/component.d.ts +1 -1
  867. package/dist/types/components/badge/test/html.mock.d.ts +1 -1
  868. package/dist/types/components/breadcrumb/component.d.ts +1 -1
  869. package/dist/types/components/breadcrumb/test/html.mock.d.ts +1 -1
  870. package/dist/types/components/button/component.d.ts +1 -1
  871. package/dist/types/components/button/shadow.d.ts +1 -1
  872. package/dist/types/components/button/test/html.mock.d.ts +1 -1
  873. package/dist/types/components/button-group/component.d.ts +1 -1
  874. package/dist/types/components/button-group/shadow.d.ts +1 -1
  875. package/dist/types/components/button-link/component.d.ts +1 -1
  876. package/dist/types/components/button-link/test/html.mock.d.ts +1 -1
  877. package/dist/types/components/card/component.d.ts +1 -1
  878. package/dist/types/components/card/test/html.mock.d.ts +1 -1
  879. package/dist/types/components/details/component.d.ts +2 -2
  880. package/dist/types/components/details/test/html.mock.d.ts +1 -1
  881. package/dist/types/components/form/component.d.ts +1 -1
  882. package/dist/types/components/form/test/html.mock.d.ts +1 -1
  883. package/dist/types/components/heading/component.d.ts +1 -1
  884. package/dist/types/components/heading/shadow.d.ts +1 -1
  885. package/dist/types/components/heading/test/html.mock.d.ts +1 -1
  886. package/dist/types/components/heading/validation.d.ts +1 -1
  887. package/dist/types/components/icon/component.d.ts +1 -1
  888. package/dist/types/components/icon/test/html.mock.d.ts +1 -1
  889. package/dist/types/components/image/shadow.d.ts +1 -1
  890. package/dist/types/components/image/test/html.mock.d.ts +1 -1
  891. package/dist/types/components/indented-text/component.d.ts +1 -1
  892. package/dist/types/components/indented-text/test/html.mock.d.ts +1 -1
  893. package/dist/types/components/input/component.d.ts +2 -2
  894. package/dist/types/components/input/controller.d.ts +1 -1
  895. package/dist/types/components/input/test/html.mock.d.ts +1 -1
  896. package/dist/types/components/input/types.d.ts +1 -1
  897. package/dist/types/components/input-adapter-leanup/associated.controller.d.ts +1 -1
  898. package/dist/types/components/input-checkbox/component.d.ts +1 -1
  899. package/dist/types/components/input-checkbox/controller.d.ts +1 -1
  900. package/dist/types/components/input-checkbox/test/html.mock.d.ts +1 -1
  901. package/dist/types/components/input-color/component.d.ts +1 -1
  902. package/dist/types/components/input-color/controller.d.ts +1 -1
  903. package/dist/types/components/input-color/test/html.mock.d.ts +1 -1
  904. package/dist/types/components/input-date/component.d.ts +2 -2
  905. package/dist/types/components/input-date/controller.d.ts +1 -1
  906. package/dist/types/components/input-date/test/html.mock.d.ts +1 -1
  907. package/dist/types/components/input-email/component.d.ts +1 -1
  908. package/dist/types/components/input-email/controller.d.ts +1 -1
  909. package/dist/types/components/input-email/test/html.mock.d.ts +1 -1
  910. package/dist/types/components/input-file/component.d.ts +1 -1
  911. package/dist/types/components/input-file/controller.d.ts +1 -1
  912. package/dist/types/components/input-file/test/html.mock.d.ts +1 -1
  913. package/dist/types/components/input-number/component.d.ts +1 -1
  914. package/dist/types/components/input-number/controller.d.ts +1 -1
  915. package/dist/types/components/input-number/test/html.mock.d.ts +1 -1
  916. package/dist/types/components/input-password/component.d.ts +1 -1
  917. package/dist/types/components/input-password/controller.d.ts +1 -1
  918. package/dist/types/components/input-password/test/html.mock.d.ts +1 -1
  919. package/dist/types/components/input-radio/component.d.ts +1 -1
  920. package/dist/types/components/input-radio/controller.d.ts +1 -1
  921. package/dist/types/components/input-radio/test/html.mock.d.ts +1 -1
  922. package/dist/types/components/input-range/component.d.ts +1 -1
  923. package/dist/types/components/input-range/controller.d.ts +1 -1
  924. package/dist/types/components/input-range/test/html.mock.d.ts +1 -1
  925. package/dist/types/components/input-text/component.d.ts +1 -1
  926. package/dist/types/components/input-text/controller.d.ts +1 -1
  927. package/dist/types/components/input-text/test/html.mock.d.ts +1 -1
  928. package/dist/types/components/kolibri/component.d.ts +1 -1
  929. package/dist/types/components/link/component.d.ts +1 -1
  930. package/dist/types/components/link/shadow.d.ts +1 -1
  931. package/dist/types/components/link/test/html.mock.d.ts +1 -1
  932. package/dist/types/components/link-button/component.d.ts +1 -1
  933. package/dist/types/components/link-group/component.d.ts +1 -1
  934. package/dist/types/components/modal/component.d.ts +1 -1
  935. package/dist/types/components/nav/component.d.ts +1 -1
  936. package/dist/types/components/nav/validation.d.ts +1 -1
  937. package/dist/types/components/pagination/component.d.ts +1 -1
  938. package/dist/types/components/popover/component.d.ts +1 -1
  939. package/dist/types/components/popover/test/html.mock.d.ts +1 -1
  940. package/dist/types/components/progress/component.d.ts +1 -1
  941. package/dist/types/components/quote/shadow.d.ts +1 -1
  942. package/dist/types/components/quote/test/html.mock.d.ts +1 -1
  943. package/dist/types/components/select/component.d.ts +1 -1
  944. package/dist/types/components/select/controller.d.ts +1 -1
  945. package/dist/types/components/skip-nav/component.d.ts +1 -1
  946. package/dist/types/components/span/component.d.ts +1 -1
  947. package/dist/types/components/span/shadow.d.ts +1 -1
  948. package/dist/types/components/span/test/html.mock.d.ts +1 -1
  949. package/dist/types/components/spin/component.d.ts +1 -1
  950. package/dist/types/components/spin/test/html.mock.d.ts +1 -1
  951. package/dist/types/components/split-button/component.d.ts +1 -1
  952. package/dist/types/components/symbol/component.d.ts +1 -1
  953. package/dist/types/components/symbol/test/html.mock.d.ts +1 -1
  954. package/dist/types/components/table/component.d.ts +1 -1
  955. package/dist/types/components/table-stateful/component.d.ts +1 -1
  956. package/dist/types/components/table-stateless/component.d.ts +1 -1
  957. package/dist/types/components/table-stateless/shadow.d.ts +1 -1
  958. package/dist/types/components/tabs/component.d.ts +1 -1
  959. package/dist/types/components/textarea/component.d.ts +1 -1
  960. package/dist/types/components/textarea/controller.d.ts +1 -1
  961. package/dist/types/components/toaster/InternalToast.d.ts +1 -1
  962. package/dist/types/components/toaster/component.d.ts +1 -1
  963. package/dist/types/components/toaster/toaster.d.ts +1 -1
  964. package/dist/types/components/tooltip/component.d.ts +1 -1
  965. package/dist/types/components/tooltip/test/html.mock.d.ts +1 -1
  966. package/dist/types/components/tree/component.d.ts +1 -1
  967. package/dist/types/components/tree/shadow.d.ts +1 -1
  968. package/dist/types/components/tree-item/component.d.ts +1 -1
  969. package/dist/types/components/tree-item/shadow.d.ts +1 -1
  970. package/dist/types/components/version/component.d.ts +1 -1
  971. package/dist/types/components/version/test/html.mock.d.ts +1 -1
  972. package/dist/types/components.d.ts +2 -2
  973. package/dist/types/index.d.ts +3 -3
  974. package/dist/types/schema/components/abbr.d.ts +10 -0
  975. package/dist/types/schema/components/accordion.d.ts +18 -0
  976. package/dist/types/schema/components/alert.d.ts +23 -0
  977. package/dist/types/schema/components/avatar.d.ts +10 -0
  978. package/dist/types/schema/components/badge.d.ts +23 -0
  979. package/dist/types/schema/components/breadcrumb.d.ts +17 -0
  980. package/dist/types/schema/components/button-group.d.ts +9 -0
  981. package/dist/types/schema/components/button-link.d.ts +8 -0
  982. package/dist/types/schema/components/button.d.ts +15 -0
  983. package/dist/types/schema/components/card.d.ts +17 -0
  984. package/dist/types/schema/components/details.d.ts +16 -0
  985. package/dist/types/schema/components/form.d.ts +19 -0
  986. package/dist/types/schema/components/heading.d.ts +17 -0
  987. package/dist/types/schema/components/icon.d.ts +12 -0
  988. package/dist/types/schema/components/image.d.ts +21 -0
  989. package/dist/types/schema/components/indented-text.d.ts +9 -0
  990. package/dist/types/schema/components/index.d.ts +1 -0
  991. package/dist/types/schema/components/input-checkbox.d.ts +53 -0
  992. package/dist/types/schema/components/input-color.d.ts +37 -0
  993. package/dist/types/schema/components/input-date.d.ts +34 -0
  994. package/dist/types/schema/components/input-email.d.ts +44 -0
  995. package/dist/types/schema/components/input-file.d.ts +34 -0
  996. package/dist/types/schema/components/input-number.d.ts +33 -0
  997. package/dist/types/schema/components/input-password.d.ts +43 -0
  998. package/dist/types/schema/components/input-radio.d.ts +31 -0
  999. package/dist/types/schema/components/input-range.d.ts +39 -0
  1000. package/dist/types/schema/components/input-text.d.ts +46 -0
  1001. package/dist/types/schema/components/input.d.ts +16 -0
  1002. package/dist/types/schema/components/kolibri.d.ts +21 -0
  1003. package/dist/types/schema/components/link-button.d.ts +7 -0
  1004. package/dist/types/schema/components/link-group.d.ts +22 -0
  1005. package/dist/types/schema/components/link.d.ts +14 -0
  1006. package/dist/types/schema/components/modal.d.ts +20 -0
  1007. package/dist/types/schema/components/nav.d.ts +19 -0
  1008. package/dist/types/schema/components/pagination.d.ts +41 -0
  1009. package/dist/types/schema/components/popover.d.ts +12 -0
  1010. package/dist/types/schema/components/progress.d.ts +22 -0
  1011. package/dist/types/schema/components/quote.d.ts +19 -0
  1012. package/dist/types/schema/components/select.d.ts +33 -0
  1013. package/dist/types/schema/components/skip-nav.d.ts +16 -0
  1014. package/dist/types/schema/components/span.d.ts +22 -0
  1015. package/dist/types/schema/components/spin.d.ts +10 -0
  1016. package/dist/types/schema/components/split-button.d.ts +13 -0
  1017. package/dist/types/schema/components/symbol.d.ts +12 -0
  1018. package/dist/types/schema/components/table.d.ts +56 -0
  1019. package/dist/types/schema/components/tableStateless.d.ts +20 -0
  1020. package/dist/types/schema/components/tabs.d.ts +35 -0
  1021. package/dist/types/schema/components/textarea.d.ts +40 -0
  1022. package/dist/types/schema/components/toaster.d.ts +33 -0
  1023. package/dist/types/schema/components/tooltip.d.ts +10 -0
  1024. package/dist/types/schema/components/tree-item.d.ts +12 -0
  1025. package/dist/types/schema/components/tree.d.ts +10 -0
  1026. package/dist/types/schema/components/version.d.ts +10 -0
  1027. package/dist/types/schema/enums/events.d.ts +20 -0
  1028. package/dist/types/schema/enums/index.d.ts +1 -0
  1029. package/dist/types/schema/i18n-keys.d.ts +27 -0
  1030. package/dist/types/schema/index.d.ts +7 -0
  1031. package/dist/types/schema/props/access-key.d.ts +6 -0
  1032. package/dist/types/schema/props/active.d.ts +7 -0
  1033. package/dist/types/schema/props/adjust-height.d.ts +6 -0
  1034. package/dist/types/schema/props/alert.d.ts +6 -0
  1035. package/dist/types/schema/props/align.d.ts +12 -0
  1036. package/dist/types/schema/props/alternative-button-link-role.d.ts +6 -0
  1037. package/dist/types/schema/props/aria-controls.d.ts +7 -0
  1038. package/dist/types/schema/props/aria-current-value.d.ts +8 -0
  1039. package/dist/types/schema/props/aria-expanded.d.ts +7 -0
  1040. package/dist/types/schema/props/aria-selected.d.ts +7 -0
  1041. package/dist/types/schema/props/button-callbacks.d.ts +12 -0
  1042. package/dist/types/schema/props/button-type.d.ts +8 -0
  1043. package/dist/types/schema/props/button-variant.d.ts +8 -0
  1044. package/dist/types/schema/props/checked.d.ts +6 -0
  1045. package/dist/types/schema/props/collapsible.d.ts +6 -0
  1046. package/dist/types/schema/props/color.d.ts +16 -0
  1047. package/dist/types/schema/props/custom-class.d.ts +6 -0
  1048. package/dist/types/schema/props/disabled.d.ts +6 -0
  1049. package/dist/types/schema/props/download.d.ts +6 -0
  1050. package/dist/types/schema/props/error-list.d.ts +9 -0
  1051. package/dist/types/schema/props/has-closer.d.ts +6 -0
  1052. package/dist/types/schema/props/has-compact-button.d.ts +7 -0
  1053. package/dist/types/schema/props/has-counter.d.ts +6 -0
  1054. package/dist/types/schema/props/has-icons-when-expanded.d.ts +6 -0
  1055. package/dist/types/schema/props/heading-variant.d.ts +8 -0
  1056. package/dist/types/schema/props/hide-error.d.ts +7 -0
  1057. package/dist/types/schema/props/hide-label.d.ts +7 -0
  1058. package/dist/types/schema/props/href.d.ts +8 -0
  1059. package/dist/types/schema/props/icons.d.ts +11 -0
  1060. package/dist/types/schema/props/id.d.ts +6 -0
  1061. package/dist/types/schema/props/image-source.d.ts +7 -0
  1062. package/dist/types/schema/props/indeterminate.d.ts +6 -0
  1063. package/dist/types/schema/props/index.d.ts +1 -0
  1064. package/dist/types/schema/props/label.d.ts +17 -0
  1065. package/dist/types/schema/props/link-on-callbacks.d.ts +10 -0
  1066. package/dist/types/schema/props/link-target.d.ts +6 -0
  1067. package/dist/types/schema/props/loading.d.ts +5 -0
  1068. package/dist/types/schema/props/max.d.ts +8 -0
  1069. package/dist/types/schema/props/msg.d.ts +9 -0
  1070. package/dist/types/schema/props/multiple.d.ts +6 -0
  1071. package/dist/types/schema/props/name.d.ts +7 -0
  1072. package/dist/types/schema/props/open.d.ts +7 -0
  1073. package/dist/types/schema/props/options.d.ts +14 -0
  1074. package/dist/types/schema/props/pagination-position.d.ts +8 -0
  1075. package/dist/types/schema/props/read-only.d.ts +6 -0
  1076. package/dist/types/schema/props/required.d.ts +7 -0
  1077. package/dist/types/schema/props/rows.d.ts +6 -0
  1078. package/dist/types/schema/props/show.d.ts +7 -0
  1079. package/dist/types/schema/props/suggestions.d.ts +8 -0
  1080. package/dist/types/schema/props/sync-value-by-selector.d.ts +4 -0
  1081. package/dist/types/schema/props/table-callbacks.d.ts +15 -0
  1082. package/dist/types/schema/props/table-data-foot.d.ts +8 -0
  1083. package/dist/types/schema/props/table-data.d.ts +8 -0
  1084. package/dist/types/schema/props/table-header-cells.d.ts +11 -0
  1085. package/dist/types/schema/props/tooltip-align.d.ts +7 -0
  1086. package/dist/types/schema/props/touched.d.ts +6 -0
  1087. package/dist/types/schema/props/variant/spin.d.ts +8 -0
  1088. package/dist/types/schema/tag-names.d.ts +54 -0
  1089. package/dist/types/schema/types/button-link-text.d.ts +23 -0
  1090. package/dist/types/schema/types/callbacks.d.ts +5 -0
  1091. package/dist/types/schema/types/common.d.ts +1 -0
  1092. package/dist/types/schema/types/icons.d.ts +19 -0
  1093. package/dist/types/schema/types/index.d.ts +1 -0
  1094. package/dist/types/schema/types/input/control/number.d.ts +27 -0
  1095. package/dist/types/schema/types/input/control/text.d.ts +2 -0
  1096. package/dist/types/schema/types/input/iso8601.d.ts +14 -0
  1097. package/dist/types/schema/types/input/types.d.ts +32 -0
  1098. package/dist/types/schema/types/modal.d.ts +3 -0
  1099. package/dist/types/schema/types/orientation.d.ts +2 -0
  1100. package/dist/types/schema/types/progress.d.ts +5 -0
  1101. package/dist/types/schema/types/table.d.ts +17 -0
  1102. package/dist/types/schema/types/unknown.d.ts +1 -0
  1103. package/dist/types/schema/types/w3c.d.ts +1 -0
  1104. package/dist/types/schema/utils/a11y.tipps.d.ts +13 -0
  1105. package/dist/types/schema/utils/contrast/color-rgba.d.ts +1 -0
  1106. package/dist/types/schema/utils/contrast/contrast.d.ts +13 -0
  1107. package/dist/types/schema/utils/contrast/index.d.ts +1 -0
  1108. package/dist/types/schema/utils/contrast/rgba-convert.d.ts +1 -0
  1109. package/dist/types/schema/utils/dev.utils.d.ts +29 -0
  1110. package/dist/types/schema/utils/index.d.ts +1 -0
  1111. package/dist/types/schema/utils/prop.validators.d.ts +63 -0
  1112. package/dist/types/schema/utils/reuse.d.ts +7 -0
  1113. package/dist/types/schema/validators/alignment.d.ts +3 -0
  1114. package/dist/types/schema/validators/common.d.ts +4 -0
  1115. package/dist/types/schema/validators/index.d.ts +1 -0
  1116. package/dist/types/schema/validators/options.d.ts +2 -0
  1117. package/dist/types/schema/validators/tab-index.d.ts +2 -0
  1118. package/dist/types/schema/validators/window.d.ts +0 -0
  1119. package/dist/types/utils/align-floating-elements.d.ts +1 -1
  1120. package/doc/input-checkbox.md +1 -1
  1121. package/doc/input-color.md +1 -1
  1122. package/doc/input-date.md +1 -1
  1123. package/doc/input-email.md +1 -1
  1124. package/doc/input-file.md +1 -1
  1125. package/doc/input-number.md +1 -1
  1126. package/doc/input-password.md +1 -1
  1127. package/doc/input-radio.md +1 -1
  1128. package/doc/input-range.md +1 -1
  1129. package/doc/input-text.md +1 -1
  1130. package/doc/select.md +1 -1
  1131. package/doc/tabs.md +1 -1
  1132. package/doc/textarea.md +1 -1
  1133. package/doc/toaster.md +1 -1
  1134. package/package.json +1 -1
  1135. package/dist/cjs/app-globals-08227ea9.js +0 -4
  1136. package/dist/cjs/app-globals-08227ea9.js.map +0 -1
  1137. package/dist/cjs/associated.controller-0defb8ca.js +0 -4
  1138. package/dist/cjs/associated.controller-0defb8ca.js.map +0 -1
  1139. package/dist/cjs/controller-2a04b820.js +0 -4
  1140. package/dist/cjs/controller-2a04b820.js.map +0 -1
  1141. package/dist/cjs/controller-5d8d3f88.js +0 -4
  1142. package/dist/cjs/controller-5d8d3f88.js.map +0 -1
  1143. package/dist/cjs/controller-69d0b6e3.js +0 -4
  1144. package/dist/cjs/controller-69d0b6e3.js.map +0 -1
  1145. package/dist/cjs/controller-cb2152bf.js +0 -4
  1146. package/dist/cjs/controller-cb2152bf.js.map +0 -1
  1147. package/dist/cjs/controller-dc7f3a60.js +0 -4
  1148. package/dist/cjs/controller-dc7f3a60.js.map +0 -1
  1149. package/dist/cjs/controller-icon-e9a7c0dd.js +0 -4
  1150. package/dist/cjs/controller-icon-e9a7c0dd.js.map +0 -1
  1151. package/dist/cjs/dev.utils-1e67d391.js +0 -4
  1152. package/dist/cjs/dev.utils-1e67d391.js.map +0 -1
  1153. package/dist/cjs/devtools-23724a90.js +0 -4
  1154. package/dist/cjs/devtools-23724a90.js.map +0 -1
  1155. package/dist/cjs/index-26a11fc3.js +0 -4
  1156. package/dist/cjs/index-26a11fc3.js.map +0 -1
  1157. package/dist/cjs/validation-89c93141.js +0 -4
  1158. package/dist/cjs/validation-89c93141.js.map +0 -1
  1159. package/dist/cjs/validation-db50789a.js +0 -4
  1160. package/dist/cjs/validation-db50789a.js.map +0 -1
  1161. package/dist/components/index3.js +0 -4
  1162. package/dist/components/index3.js.map +0 -1
  1163. package/dist/esm/app-globals-a87698fc.js +0 -4
  1164. package/dist/esm/app-globals-a87698fc.js.map +0 -1
  1165. package/dist/esm/associated.controller-47f177a8.js +0 -4
  1166. package/dist/esm/associated.controller-47f177a8.js.map +0 -1
  1167. package/dist/esm/controller-06b047bd.js +0 -4
  1168. package/dist/esm/controller-06b047bd.js.map +0 -1
  1169. package/dist/esm/controller-09ce054b.js +0 -4
  1170. package/dist/esm/controller-5207185b.js +0 -4
  1171. package/dist/esm/controller-5207185b.js.map +0 -1
  1172. package/dist/esm/controller-603b7d2b.js +0 -4
  1173. package/dist/esm/controller-603b7d2b.js.map +0 -1
  1174. package/dist/esm/controller-9c8cf4ce.js +0 -4
  1175. package/dist/esm/controller-9c8cf4ce.js.map +0 -1
  1176. package/dist/esm/controller-icon-23f9943c.js +0 -4
  1177. package/dist/esm/controller-icon-23f9943c.js.map +0 -1
  1178. package/dist/esm/dev.utils-ba0ad340.js +0 -4
  1179. package/dist/esm/dev.utils-ba0ad340.js.map +0 -1
  1180. package/dist/esm/devtools-8b54d55c.js +0 -4
  1181. package/dist/esm/devtools-8b54d55c.js.map +0 -1
  1182. package/dist/esm/index-44da6e7f.js +0 -4
  1183. package/dist/esm/index-44da6e7f.js.map +0 -1
  1184. package/dist/esm/validation-61bf6538.js +0 -4
  1185. package/dist/esm/validation-61bf6538.js.map +0 -1
  1186. package/dist/esm/validation-daa38230.js +0 -4
  1187. package/dist/esm/validation-daa38230.js.map +0 -1
  1188. package/dist/kolibri/app-globals-a87698fc.js +0 -4
  1189. package/dist/kolibri/app-globals-a87698fc.js.map +0 -1
  1190. package/dist/kolibri/associated.controller-47f177a8.js +0 -4
  1191. package/dist/kolibri/associated.controller-47f177a8.js.map +0 -1
  1192. package/dist/kolibri/controller-06b047bd.js +0 -4
  1193. package/dist/kolibri/controller-06b047bd.js.map +0 -1
  1194. package/dist/kolibri/controller-09ce054b.js +0 -4
  1195. package/dist/kolibri/controller-09ce054b.js.map +0 -1
  1196. package/dist/kolibri/controller-5207185b.js +0 -4
  1197. package/dist/kolibri/controller-5207185b.js.map +0 -1
  1198. package/dist/kolibri/controller-603b7d2b.js +0 -4
  1199. package/dist/kolibri/controller-603b7d2b.js.map +0 -1
  1200. package/dist/kolibri/controller-9c8cf4ce.js +0 -4
  1201. package/dist/kolibri/controller-9c8cf4ce.js.map +0 -1
  1202. package/dist/kolibri/controller-icon-23f9943c.js +0 -4
  1203. package/dist/kolibri/controller-icon-23f9943c.js.map +0 -1
  1204. package/dist/kolibri/dev.utils-ba0ad340.js +0 -4
  1205. package/dist/kolibri/dev.utils-ba0ad340.js.map +0 -1
  1206. package/dist/kolibri/devtools-8b54d55c.js +0 -4
  1207. package/dist/kolibri/devtools-8b54d55c.js.map +0 -1
  1208. package/dist/kolibri/index-44da6e7f.js +0 -4
  1209. package/dist/kolibri/index-44da6e7f.js.map +0 -1
  1210. package/dist/kolibri/toaster-12097d83.js.map +0 -1
  1211. package/dist/kolibri/validation-61bf6538.js +0 -4
  1212. package/dist/kolibri/validation-61bf6538.js.map +0 -1
  1213. package/dist/kolibri/validation-daa38230.js +0 -4
  1214. package/dist/kolibri/validation-daa38230.js.map +0 -1
  1215. /package/dist/kolibri/{index-e9e31210.js.map → index-a55b574c.js.map} +0 -0
  1216. /package/dist/kolibri/{toaster-4eb33f18.js.map → toaster-b6d0fa6b.js.map} +0 -0
@@ -1 +1 @@
1
- {"file":"kol-button-wc.entry.cjs.js","mappings":";;;;;;;;;;;;;;MAwDa,WAAW;IAoChB,MAAM;QACZ,MAAM,aAAa,GAAGA,sBAAc,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAExD,QACCC,QAACC,UAAI,qDAAC,KAAK,EAAC,eAAe,IAC1BD,mFACC,GAAG,EAAE,IAAI,CAAC,QAAQ,EAClB,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,IAAI,SAAS,mBAC9B,IAAI,CAAC,KAAK,CAAC,aAAa,mBACxBE,yBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,gBAC9C,IAAI,CAAC,KAAK,CAAC,UAAU,IAAI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KolSpanWcTag","KolTooltipWcTag","propagateFocus","propagateSubmitEventToForm","propagateResetEventToForm","stopPropagation","tryToDispatchKoliBriEvent","setEventTarget","AssociatedInputController","validateAccessKey","validateAriaControls","validateAriaExpanded","validateAriaSelected","validateCustomClass","validateDisabled","validateHideLabel","validateIcons","watchString","validateLabelWithExpertSlot","validateButtonCallbacks","validateAlternativeButtonLinkRole","validateTabIndex","validateTooltipAlign","validateButtonType","setState","validateButtonVariant"],"sources":["src/components/button/component.tsx"],"sourcesContent":["import type {\n\tAccessKeyPropType,\n\tAlternativeButtonLinkRolePropType,\n\tButtonAPI,\n\tButtonCallbacksPropType,\n\tButtonStates,\n\tButtonTypePropType,\n\tButtonVariantPropType,\n\tCustomClassPropType,\n\tDisabledPropType,\n\tIconsPropType,\n\tLabelWithExpertSlotPropType,\n\tStencilUnknown,\n\tStringified,\n\tSyncValueBySelectorPropType,\n\tTooltipAlignPropType,\n} from '@public-ui/schema';\nimport {\n\tmapBoolean2String,\n\tmapStringOrBoolean2String,\n\tpropagateFocus,\n\tsetEventTarget,\n\tsetState,\n\tshowExpertSlot,\n\tvalidateAccessKey,\n\tvalidateAlternativeButtonLinkRole,\n\tvalidateAriaControls,\n\tvalidateAriaExpanded,\n\tvalidateAriaSelected,\n\tvalidateButtonCallbacks,\n\tvalidateButtonType,\n\tvalidateButtonVariant,\n\tvalidateCustomClass,\n\tvalidateDisabled,\n\tvalidateHideLabel,\n\tvalidateIcons,\n\tvalidateLabelWithExpertSlot,\n\tvalidateTabIndex,\n\tvalidateTooltipAlign,\n\twatchString,\n} from '@public-ui/schema';\nimport type { JSX } from '@stencil/core';\nimport { Component, Element, h, Host, Prop, State, Watch } from '@stencil/core';\n\nimport { stopPropagation, tryToDispatchKoliBriEvent } from '../../utils/events';\nimport { propagateResetEventToForm, propagateSubmitEventToForm } from '../form/controller';\nimport { AssociatedInputController } from '../input-adapter-leanup/associated.controller';\nimport { KolSpanWcTag, KolTooltipWcTag } from '../../core/component-names';\n\n/**\n * @internal\n */\n@Component({\n\ttag: 'kol-button-wc',\n\tshadow: false,\n})\nexport class KolButtonWc implements ButtonAPI {\n\t@Element() private readonly host?: HTMLKolButtonWcElement;\n\tprivate ref?: HTMLButtonElement;\n\n\tprivate readonly catchRef = (ref?: HTMLButtonElement) => {\n\t\tthis.ref = ref;\n\t\tpropagateFocus(this.host, this.ref);\n\t};\n\n\tprivate readonly onClick = (event: MouseEvent) => {\n\t\tif (this.state._type === 'submit') {\n\t\t\tpropagateSubmitEventToForm({\n\t\t\t\tform: this.host,\n\t\t\t\tref: this.ref,\n\t\t\t});\n\t\t} else if (this.state._type === 'reset') {\n\t\t\tpropagateResetEventToForm({\n\t\t\t\tform: this.host,\n\t\t\t\tref: this.ref,\n\t\t\t});\n\t\t} else {\n\t\t\t// Event handling\n\t\t\tstopPropagation(event);\n\t\t\ttryToDispatchKoliBriEvent('click', this.host, this.state._value);\n\n\t\t\t// TODO: Static form handling\n\t\t\tthis.controller.setFormAssociatedValue(this.state._value);\n\n\t\t\t// Callback\n\t\t\tif (typeof this.state._on?.onClick === 'function') {\n\t\t\t\tsetEventTarget(event, this.ref);\n\t\t\t\tthis.state._on?.onClick(event, this.state._value);\n\t\t\t}\n\t\t}\n\t};\n\n\tpublic render(): JSX.Element {\n\t\tconst hasExpertSlot = showExpertSlot(this.state._label);\n\n\t\treturn (\n\t\t\t<Host class=\"kol-button-wc\">\n\t\t\t\t<button\n\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\taccessKey={this.state._accessKey || undefined}\n\t\t\t\t\taria-controls={this.state._ariaControls}\n\t\t\t\t\taria-expanded={mapBoolean2String(this.state._ariaExpanded)}\n\t\t\t\t\taria-label={this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined}\n\t\t\t\t\taria-selected={mapStringOrBoolean2String(this.state._ariaSelected)}\n\t\t\t\t\tclass={{\n\t\t\t\t\t\tbutton: true,\n\t\t\t\t\t\tdisabled: this.state._disabled === true,\n\t\t\t\t\t\t[this.state._variant as string]: this.state._variant !== 'custom',\n\t\t\t\t\t\t[this.state._customClass as string]:\n\t\t\t\t\t\t\tthis.state._variant === 'custom' && typeof this.state._customClass === 'string' && this.state._customClass.length > 0,\n\t\t\t\t\t\t'hide-label': this.state._hideLabel === true,\n\t\t\t\t\t}}\n\t\t\t\t\tdisabled={this.state._disabled}\n\t\t\t\t\tid={this.state._id}\n\t\t\t\t\tname={this.state._name}\n\t\t\t\t\t{...this.state._on}\n\t\t\t\t\tonClick={this.onClick}\n\t\t\t\t\trole={this.state._role}\n\t\t\t\t\ttabIndex={this.state._tabIndex}\n\t\t\t\t\ttype={this.state._type}\n\t\t\t\t>\n\t\t\t\t\t<KolSpanWcTag\n\t\t\t\t\t\tclass=\"button-inner\"\n\t\t\t\t\t\t_accessKey={this.state._accessKey}\n\t\t\t\t\t\t_icons={this.state._icons}\n\t\t\t\t\t\t_hideLabel={this.state._hideLabel}\n\t\t\t\t\t\t_label={hasExpertSlot ? '' : this.state._label}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot name=\"expert\" slot=\"expert\"></slot>\n\t\t\t\t\t</KolSpanWcTag>\n\t\t\t\t</button>\n\t\t\t\t<KolTooltipWcTag\n\t\t\t\t\t/**\n\t\t\t\t\t * Dieses Aria-Hidden verhindert das doppelte Vorlesen des Labels,\n\t\t\t\t\t * verhindert aber nicht das Aria-Labelledby vorgelesen wird.\n\t\t\t\t\t */\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\thidden={hasExpertSlot || !this.state._hideLabel}\n\t\t\t\t\t_accessKey={this._accessKey}\n\t\t\t\t\t_align={this.state._tooltipAlign}\n\t\t\t\t\t_label={typeof this.state._label === 'string' ? this.state._label : ''}\n\t\t\t\t></KolTooltipWcTag>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate readonly controller: AssociatedInputController;\n\n\t/**\n\t * Defines the elements access key.\n\t */\n\t@Prop() public _accessKey?: AccessKeyPropType;\n\n\t/**\n\t * Defines which elements are controlled by this component. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls)\n\t */\n\t@Prop() public _ariaControls?: string;\n\n\t/**\n\t * Defines whether the interactive element of the component expanded something. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)\n\t */\n\t@Prop() public _ariaExpanded?: boolean;\n\n\t/**\n\t * Defines whether the interactive element of the component is selected (e.g. role=tab). (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected)\n\t */\n\t@Prop() public _ariaSelected?: boolean;\n\n\t/**\n\t * Defines the custom class attribute if _variant=\"custom\" is set.\n\t */\n\t@Prop() public _customClass?: CustomClassPropType;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Hides the caption by default and displays the caption text with a tooltip when the\n\t * interactive element is focused or the mouse is over it.\n\t * @TODO: Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hideLabel?: boolean = false;\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: IconsPropType;\n\n\t/**\n\t * Defines the internal ID of the primary component element.\n\t */\n\t@Prop() public _id?: string;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label!: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Defines the technical name of an input field.\n\t */\n\t@Prop() public _name?: string;\n\n\t/**\n\t * Defines the callback functions for button events.\n\t */\n\t@Prop() public _on?: ButtonCallbacksPropType<StencilUnknown>;\n\n\t/**\n\t * Defines the role of the components primary element.\n\t */\n\t@Prop() public _role?: AlternativeButtonLinkRolePropType;\n\n\t/**\n\t * Selector for synchronizing the value with another input element.\n\t * @internal\n\t */\n\t@Prop() public _syncValueBySelector?: SyncValueBySelectorPropType;\n\n\t/**\n\t * Defines which tab-index the primary element of the component has. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)\n\t */\n\t@Prop() public _tabIndex?: number;\n\n\t/**\n\t * Defines where to show the Tooltip preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _tooltipAlign?: TooltipAlignPropType = 'top';\n\n\t/**\n\t * Defines either the type of the component or of the components interactive element.\n\t */\n\t@Prop() public _type?: ButtonTypePropType = 'button';\n\n\t/**\n\t * Defines the value that the button emits on click.\n\t */\n\t@Prop() public _value?: Stringified<StencilUnknown>;\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: ButtonVariantPropType = 'normal';\n\n\t@State() public state: ButtonStates = {\n\t\t_icons: {},\n\t\t_label: '', // ⚠ required\n\t\t_on: {},\n\t\t_type: 'button',\n\t\t_variant: 'normal',\n\t};\n\n\tpublic constructor() {\n\t\tthis.controller = new AssociatedInputController(this, 'button', this.host);\n\t}\n\n\t@Watch('_accessKey')\n\tpublic validateAccessKey(value?: AccessKeyPropType): void {\n\t\tvalidateAccessKey(this, value);\n\t}\n\n\t@Watch('_ariaControls')\n\tpublic validateAriaControls(value?: string): void {\n\t\tvalidateAriaControls(this, value);\n\t}\n\n\t@Watch('_ariaExpanded')\n\tpublic validateAriaExpanded(value?: boolean): void {\n\t\tvalidateAriaExpanded(this, value);\n\t}\n\n\t@Watch('_ariaSelected')\n\tpublic validateAriaSelected(value?: boolean): void {\n\t\tvalidateAriaSelected(this, value);\n\t}\n\n\t@Watch('_customClass')\n\tpublic validateCustomClass(value?: CustomClassPropType): void {\n\t\tvalidateCustomClass(this, value);\n\t}\n\n\t@Watch('_disabled')\n\tpublic validateDisabled(value?: DisabledPropType): void {\n\t\tvalidateDisabled(this, value);\n\t}\n\n\t@Watch('_hideLabel')\n\tpublic validateHideLabel(value?: boolean): void {\n\t\tvalidateHideLabel(this, value);\n\t}\n\n\t@Watch('_icons')\n\tpublic validateIcons(value?: IconsPropType): void {\n\t\tvalidateIcons(this, value);\n\t}\n\n\t@Watch('_id')\n\tpublic validateId(value?: string): void {\n\t\twatchString(this, '_id', value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelWithExpertSlotPropType): void {\n\t\tvalidateLabelWithExpertSlot(this, value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_name')\n\tpublic validateName(value?: string): void {\n\t\tthis.controller.validateName(value);\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(value?: ButtonCallbacksPropType<StencilUnknown>): void {\n\t\tvalidateButtonCallbacks(this, value);\n\t}\n\n\t@Watch('_role')\n\tpublic validateRole(value?: AlternativeButtonLinkRolePropType): void {\n\t\tvalidateAlternativeButtonLinkRole(this, value);\n\t}\n\n\t@Watch('_syncValueBySelector')\n\tpublic validateSyncValueBySelector(value?: SyncValueBySelectorPropType): void {\n\t\tthis.controller.validateSyncValueBySelector(value);\n\t}\n\n\t@Watch('_tabIndex')\n\tpublic validateTabIndex(value?: number): void {\n\t\tvalidateTabIndex(this, value);\n\t}\n\n\t@Watch('_tooltipAlign')\n\tpublic validateTooltipAlign(value?: TooltipAlignPropType): void {\n\t\tvalidateTooltipAlign(this, value);\n\t}\n\n\t@Watch('_type')\n\tpublic validateType(value?: ButtonTypePropType): void {\n\t\tvalidateButtonType(this, value);\n\t}\n\n\t@Watch('_value')\n\tpublic validateValue(value?: Stringified<StencilUnknown>): void {\n\t\tsetState(this, '_value', value);\n\t\tthis.controller.setFormAssociatedValue(this.state._value);\n\t}\n\n\t@Watch('_variant')\n\tpublic validateVariant(value?: ButtonVariantPropType): void {\n\t\tvalidateButtonVariant(this, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateAccessKey(this._accessKey);\n\t\tthis.validateAriaControls(this._ariaControls);\n\t\tthis.validateAriaExpanded(this._ariaExpanded);\n\t\tthis.validateAriaSelected(this._ariaSelected);\n\t\tthis.validateCustomClass(this._customClass);\n\t\tthis.validateDisabled(this._disabled);\n\t\tthis.validateHideLabel(this._hideLabel);\n\t\tthis.validateIcons(this._icons);\n\t\tthis.validateId(this._id);\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateName(this._name);\n\t\tthis.validateOn(this._on);\n\t\tthis.validateRole(this._role);\n\t\tthis.validateSyncValueBySelector(this._syncValueBySelector);\n\t\tthis.validateTabIndex(this._tabIndex);\n\t\tthis.validateTooltipAlign(this._tooltipAlign);\n\t\tthis.validateType(this._type);\n\t\tthis.validateValue(this._value);\n\t\tthis.validateVariant(this._variant);\n\t}\n}\n"],"version":3}
1
+ {"file":"kol-button-wc.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBO,MAAM,oBAAoB,GAAG,CAAC,SAAoC,EAAE,KAA4B;IACtGA,2BAAW,CAAC,SAAS,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;;ACJM,MAAM,oBAAoB,GAAG,CAAC,SAAoC,EAAE,KAA4B;IACtGC,4BAAY,CAAC,SAAS,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;;ACHM,MAAM,oBAAoB,GAAG,CAAC,SAAoC,EAAE,KAAe;IACzFA,4BAAY,CAAC,SAAS,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;;ACEM,MAAM,uBAAuB,GAAG,CAAC,SAAoC,EAAE,KAA+C;IAC5HC,8BAAc,CACb,SAAS,EACT,KAAK,EACL,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EACtD,IAAI,GAAG,CAAC,CAAC,8DAA8D,CAAC,CAAC,EACzE,KAAK,CACL,CAAC;AACH,CAAC;;ACxBD,MAAM,yBAAyB,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAU,CAAC;AAWlE,MAAM,kBAAkB,GAAG,CAAC,SAAoC,EAAE,KAA0B;IAClGA,8BAAc,CACb,SAAS,EACT,OAAO,EACP,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Aa,CAAC,CAAC;QAC9C,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC9C,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC5C,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACtC,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACxC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1B,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC9B,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC9B,IAAI,CAAC,2BAA2B,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;QAC5D,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACtC,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC9C,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC9B,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;KACpC;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["watchString","watchBoolean","watchValidator","showExpertSlot","h","Host","mapBoolean2String","mapStringOrBoolean2String","KolSpanWcTag","KolTooltipWcTag","propagateFocus","propagateSubmitEventToForm","propagateResetEventToForm","stopPropagation","tryToDispatchKoliBriEvent","setEventTarget","AssociatedInputController","validateAccessKey","validateCustomClass","validateDisabled","validateHideLabel","validateIcons","validateLabelWithExpertSlot","validateAlternativeButtonLinkRole","validateTabIndex","validateTooltipAlign","setState"],"sources":["src/schema/props/aria-controls.ts","src/schema/props/aria-expanded.ts","src/schema/props/aria-selected.ts","src/schema/props/button-callbacks.ts","src/schema/props/button-type.ts","src/schema/props/button-variant.ts","src/components/button/component.tsx"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchString } from '../utils';\n\n/* types */\n/**\n * Defines which elements are being controlled. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls)\n * @deprecated\n */\ntype AriaControlsPropType = string;\n\n/**\n * @deprecated\n */\nexport type PropAriaControls = {\n\tariaControls: AriaControlsPropType;\n};\n\n/* validator */\nexport const validateAriaControls = (component: Generic.Element.Component, value?: AriaControlsPropType): void => {\n\twatchString(component, '_ariaControls', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { watchBoolean } from '../utils';\n\n/* types */\ntype AriaExpandedPropType = boolean;\n\n/**\n * Marks this element as open/expanded, or that the connected element (aria-controls/aria-owns) is open/expanded.\n * (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)\n * @deprecated\n */\nexport type PropAriaExpanded = {\n\tariaExpanded: AriaExpandedPropType;\n};\n\n/* validator */\nexport const validateAriaExpanded = (component: Generic.Element.Component, value?: AriaExpandedPropType): void => {\n\twatchBoolean(component, '_ariaExpanded', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { watchBoolean } from '../utils';\n\n/* types */\ntype AriaSelectedPropType = boolean;\n\n/**\n * Marks this element as selected.\n * (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected)\n */\nexport type PropAriaSelected = {\n\tariaSelected: AriaSelectedPropType;\n};\n\n/* validator */\nexport const validateAriaSelected = (component: Generic.Element.Component, value?: boolean): void => {\n\twatchBoolean(component, '_ariaSelected', value);\n};\n","import type { Events } from '../enums';\nimport type { EventCallback, EventValueOrEventCallback } from '../types/callbacks';\nimport type { StencilUnknown } from '../types/unknown';\nimport { watchValidator } from '../utils';\n\nimport type { Generic } from 'adopted-style-sheets';\n/* types */\nexport type ButtonCallbacksPropType<T> = {\n\t[Events.onClick]?: EventValueOrEventCallback<MouseEvent, T>;\n\t[Events.onMouseDown]?: EventCallback<MouseEvent>;\n};\n\n/**\n * Defines the callback functions for button events.\n */\nexport type PropButtonCallbacks<T> = {\n\ton: ButtonCallbacksPropType<T>;\n};\n\n/* validator */\nexport const validateButtonCallbacks = (component: Generic.Element.Component, value?: ButtonCallbacksPropType<StencilUnknown>): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t`_on`,\n\t\t(value) => typeof value === 'object' && value !== null,\n\t\tnew Set(['ButtonCallbacksPropType {Events.onClick, Events.onMouseDown}']),\n\t\tvalue,\n\t);\n};\n","/* types */\nimport type { Generic } from 'adopted-style-sheets';\nimport { watchValidator } from '../utils';\n\nconst buttonTypePropTypeOptions = ['button', 'reset', 'submit'] as const;\nexport type ButtonTypePropType = (typeof buttonTypePropTypeOptions)[number];\n\n/**\n * Defines either the type of the component or of the components interactive element.\n */\nexport type PropButtonType = {\n\ttype: ButtonTypePropType;\n};\n\n/* validator */\nexport const validateButtonType = (component: Generic.Element.Component, value?: ButtonTypePropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t`_type`,\n\t\t(value?) => typeof value === 'string' && buttonTypePropTypeOptions.includes(value),\n\t\tnew Set([`KoliBriButtonType {${buttonTypePropTypeOptions.join(', ')}`]),\n\t\tvalue,\n\t);\n};\n","/* types */\nimport type { Generic } from 'adopted-style-sheets';\nimport { watchValidator } from '../utils';\n\nconst buttonVariantPropTypeOptions = ['primary', 'secondary', 'normal', 'tertiary', 'danger', 'ghost', 'custom'] as const;\nexport type ButtonVariantPropType = (typeof buttonVariantPropTypeOptions)[number];\n\n/**\n * Defines which variant should be used for presentation.\n */\nexport type PropButtonVariant = {\n\tvariant: ButtonVariantPropType;\n};\n\n/* validator */\nexport const validateButtonVariant = (component: Generic.Element.Component, value?: ButtonVariantPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t`_variant`,\n\t\t(value) => typeof value === 'string' && buttonVariantPropTypeOptions.includes(value),\n\t\tnew Set([`KoliBriButtonVariant {${buttonVariantPropTypeOptions.join(', ')}`]),\n\t\tvalue,\n\t\t{\n\t\t\tdefaultValue: 'normal',\n\t\t},\n\t);\n};\n","import type {\n\tAccessKeyPropType,\n\tAlternativeButtonLinkRolePropType,\n\tButtonAPI,\n\tButtonCallbacksPropType,\n\tButtonStates,\n\tButtonTypePropType,\n\tButtonVariantPropType,\n\tCustomClassPropType,\n\tDisabledPropType,\n\tIconsPropType,\n\tLabelWithExpertSlotPropType,\n\tStencilUnknown,\n\tStringified,\n\tSyncValueBySelectorPropType,\n\tTooltipAlignPropType,\n} from '../../schema';\nimport {\n\tmapBoolean2String,\n\tmapStringOrBoolean2String,\n\tpropagateFocus,\n\tsetEventTarget,\n\tsetState,\n\tshowExpertSlot,\n\tvalidateAccessKey,\n\tvalidateAlternativeButtonLinkRole,\n\tvalidateAriaControls,\n\tvalidateAriaExpanded,\n\tvalidateAriaSelected,\n\tvalidateButtonCallbacks,\n\tvalidateButtonType,\n\tvalidateButtonVariant,\n\tvalidateCustomClass,\n\tvalidateDisabled,\n\tvalidateHideLabel,\n\tvalidateIcons,\n\tvalidateLabelWithExpertSlot,\n\tvalidateTabIndex,\n\tvalidateTooltipAlign,\n\twatchString,\n} from '../../schema';\nimport type { JSX } from '@stencil/core';\nimport { Component, Element, h, Host, Prop, State, Watch } from '@stencil/core';\n\nimport { stopPropagation, tryToDispatchKoliBriEvent } from '../../utils/events';\nimport { propagateResetEventToForm, propagateSubmitEventToForm } from '../form/controller';\nimport { AssociatedInputController } from '../input-adapter-leanup/associated.controller';\nimport { KolSpanWcTag, KolTooltipWcTag } from '../../core/component-names';\n\n/**\n * @internal\n */\n@Component({\n\ttag: 'kol-button-wc',\n\tshadow: false,\n})\nexport class KolButtonWc implements ButtonAPI {\n\t@Element() private readonly host?: HTMLKolButtonWcElement;\n\tprivate ref?: HTMLButtonElement;\n\n\tprivate readonly catchRef = (ref?: HTMLButtonElement) => {\n\t\tthis.ref = ref;\n\t\tpropagateFocus(this.host, this.ref);\n\t};\n\n\tprivate readonly onClick = (event: MouseEvent) => {\n\t\tif (this.state._type === 'submit') {\n\t\t\tpropagateSubmitEventToForm({\n\t\t\t\tform: this.host,\n\t\t\t\tref: this.ref,\n\t\t\t});\n\t\t} else if (this.state._type === 'reset') {\n\t\t\tpropagateResetEventToForm({\n\t\t\t\tform: this.host,\n\t\t\t\tref: this.ref,\n\t\t\t});\n\t\t} else {\n\t\t\t// Event handling\n\t\t\tstopPropagation(event);\n\t\t\ttryToDispatchKoliBriEvent('click', this.host, this.state._value);\n\n\t\t\t// TODO: Static form handling\n\t\t\tthis.controller.setFormAssociatedValue(this.state._value);\n\n\t\t\t// Callback\n\t\t\tif (typeof this.state._on?.onClick === 'function') {\n\t\t\t\tsetEventTarget(event, this.ref);\n\t\t\t\tthis.state._on?.onClick(event, this.state._value);\n\t\t\t}\n\t\t}\n\t};\n\n\tpublic render(): JSX.Element {\n\t\tconst hasExpertSlot = showExpertSlot(this.state._label);\n\n\t\treturn (\n\t\t\t<Host class=\"kol-button-wc\">\n\t\t\t\t<button\n\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\taccessKey={this.state._accessKey || undefined}\n\t\t\t\t\taria-controls={this.state._ariaControls}\n\t\t\t\t\taria-expanded={mapBoolean2String(this.state._ariaExpanded)}\n\t\t\t\t\taria-label={this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined}\n\t\t\t\t\taria-selected={mapStringOrBoolean2String(this.state._ariaSelected)}\n\t\t\t\t\tclass={{\n\t\t\t\t\t\tbutton: true,\n\t\t\t\t\t\tdisabled: this.state._disabled === true,\n\t\t\t\t\t\t[this.state._variant as string]: this.state._variant !== 'custom',\n\t\t\t\t\t\t[this.state._customClass as string]:\n\t\t\t\t\t\t\tthis.state._variant === 'custom' && typeof this.state._customClass === 'string' && this.state._customClass.length > 0,\n\t\t\t\t\t\t'hide-label': this.state._hideLabel === true,\n\t\t\t\t\t}}\n\t\t\t\t\tdisabled={this.state._disabled}\n\t\t\t\t\tid={this.state._id}\n\t\t\t\t\tname={this.state._name}\n\t\t\t\t\t{...this.state._on}\n\t\t\t\t\tonClick={this.onClick}\n\t\t\t\t\trole={this.state._role}\n\t\t\t\t\ttabIndex={this.state._tabIndex}\n\t\t\t\t\ttype={this.state._type}\n\t\t\t\t>\n\t\t\t\t\t<KolSpanWcTag\n\t\t\t\t\t\tclass=\"button-inner\"\n\t\t\t\t\t\t_accessKey={this.state._accessKey}\n\t\t\t\t\t\t_icons={this.state._icons}\n\t\t\t\t\t\t_hideLabel={this.state._hideLabel}\n\t\t\t\t\t\t_label={hasExpertSlot ? '' : this.state._label}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot name=\"expert\" slot=\"expert\"></slot>\n\t\t\t\t\t</KolSpanWcTag>\n\t\t\t\t</button>\n\t\t\t\t<KolTooltipWcTag\n\t\t\t\t\t/**\n\t\t\t\t\t * Dieses Aria-Hidden verhindert das doppelte Vorlesen des Labels,\n\t\t\t\t\t * verhindert aber nicht das Aria-Labelledby vorgelesen wird.\n\t\t\t\t\t */\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\thidden={hasExpertSlot || !this.state._hideLabel}\n\t\t\t\t\t_accessKey={this._accessKey}\n\t\t\t\t\t_align={this.state._tooltipAlign}\n\t\t\t\t\t_label={typeof this.state._label === 'string' ? this.state._label : ''}\n\t\t\t\t></KolTooltipWcTag>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate readonly controller: AssociatedInputController;\n\n\t/**\n\t * Defines the elements access key.\n\t */\n\t@Prop() public _accessKey?: AccessKeyPropType;\n\n\t/**\n\t * Defines which elements are controlled by this component. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls)\n\t */\n\t@Prop() public _ariaControls?: string;\n\n\t/**\n\t * Defines whether the interactive element of the component expanded something. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)\n\t */\n\t@Prop() public _ariaExpanded?: boolean;\n\n\t/**\n\t * Defines whether the interactive element of the component is selected (e.g. role=tab). (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected)\n\t */\n\t@Prop() public _ariaSelected?: boolean;\n\n\t/**\n\t * Defines the custom class attribute if _variant=\"custom\" is set.\n\t */\n\t@Prop() public _customClass?: CustomClassPropType;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Hides the caption by default and displays the caption text with a tooltip when the\n\t * interactive element is focused or the mouse is over it.\n\t * @TODO: Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hideLabel?: boolean = false;\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: IconsPropType;\n\n\t/**\n\t * Defines the internal ID of the primary component element.\n\t */\n\t@Prop() public _id?: string;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label!: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Defines the technical name of an input field.\n\t */\n\t@Prop() public _name?: string;\n\n\t/**\n\t * Defines the callback functions for button events.\n\t */\n\t@Prop() public _on?: ButtonCallbacksPropType<StencilUnknown>;\n\n\t/**\n\t * Defines the role of the components primary element.\n\t */\n\t@Prop() public _role?: AlternativeButtonLinkRolePropType;\n\n\t/**\n\t * Selector for synchronizing the value with another input element.\n\t * @internal\n\t */\n\t@Prop() public _syncValueBySelector?: SyncValueBySelectorPropType;\n\n\t/**\n\t * Defines which tab-index the primary element of the component has. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)\n\t */\n\t@Prop() public _tabIndex?: number;\n\n\t/**\n\t * Defines where to show the Tooltip preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _tooltipAlign?: TooltipAlignPropType = 'top';\n\n\t/**\n\t * Defines either the type of the component or of the components interactive element.\n\t */\n\t@Prop() public _type?: ButtonTypePropType = 'button';\n\n\t/**\n\t * Defines the value that the button emits on click.\n\t */\n\t@Prop() public _value?: Stringified<StencilUnknown>;\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: ButtonVariantPropType = 'normal';\n\n\t@State() public state: ButtonStates = {\n\t\t_icons: {},\n\t\t_label: '', // ⚠ required\n\t\t_on: {},\n\t\t_type: 'button',\n\t\t_variant: 'normal',\n\t};\n\n\tpublic constructor() {\n\t\tthis.controller = new AssociatedInputController(this, 'button', this.host);\n\t}\n\n\t@Watch('_accessKey')\n\tpublic validateAccessKey(value?: AccessKeyPropType): void {\n\t\tvalidateAccessKey(this, value);\n\t}\n\n\t@Watch('_ariaControls')\n\tpublic validateAriaControls(value?: string): void {\n\t\tvalidateAriaControls(this, value);\n\t}\n\n\t@Watch('_ariaExpanded')\n\tpublic validateAriaExpanded(value?: boolean): void {\n\t\tvalidateAriaExpanded(this, value);\n\t}\n\n\t@Watch('_ariaSelected')\n\tpublic validateAriaSelected(value?: boolean): void {\n\t\tvalidateAriaSelected(this, value);\n\t}\n\n\t@Watch('_customClass')\n\tpublic validateCustomClass(value?: CustomClassPropType): void {\n\t\tvalidateCustomClass(this, value);\n\t}\n\n\t@Watch('_disabled')\n\tpublic validateDisabled(value?: DisabledPropType): void {\n\t\tvalidateDisabled(this, value);\n\t}\n\n\t@Watch('_hideLabel')\n\tpublic validateHideLabel(value?: boolean): void {\n\t\tvalidateHideLabel(this, value);\n\t}\n\n\t@Watch('_icons')\n\tpublic validateIcons(value?: IconsPropType): void {\n\t\tvalidateIcons(this, value);\n\t}\n\n\t@Watch('_id')\n\tpublic validateId(value?: string): void {\n\t\twatchString(this, '_id', value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelWithExpertSlotPropType): void {\n\t\tvalidateLabelWithExpertSlot(this, value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_name')\n\tpublic validateName(value?: string): void {\n\t\tthis.controller.validateName(value);\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(value?: ButtonCallbacksPropType<StencilUnknown>): void {\n\t\tvalidateButtonCallbacks(this, value);\n\t}\n\n\t@Watch('_role')\n\tpublic validateRole(value?: AlternativeButtonLinkRolePropType): void {\n\t\tvalidateAlternativeButtonLinkRole(this, value);\n\t}\n\n\t@Watch('_syncValueBySelector')\n\tpublic validateSyncValueBySelector(value?: SyncValueBySelectorPropType): void {\n\t\tthis.controller.validateSyncValueBySelector(value);\n\t}\n\n\t@Watch('_tabIndex')\n\tpublic validateTabIndex(value?: number): void {\n\t\tvalidateTabIndex(this, value);\n\t}\n\n\t@Watch('_tooltipAlign')\n\tpublic validateTooltipAlign(value?: TooltipAlignPropType): void {\n\t\tvalidateTooltipAlign(this, value);\n\t}\n\n\t@Watch('_type')\n\tpublic validateType(value?: ButtonTypePropType): void {\n\t\tvalidateButtonType(this, value);\n\t}\n\n\t@Watch('_value')\n\tpublic validateValue(value?: Stringified<StencilUnknown>): void {\n\t\tsetState(this, '_value', value);\n\t\tthis.controller.setFormAssociatedValue(this.state._value);\n\t}\n\n\t@Watch('_variant')\n\tpublic validateVariant(value?: ButtonVariantPropType): void {\n\t\tvalidateButtonVariant(this, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateAccessKey(this._accessKey);\n\t\tthis.validateAriaControls(this._ariaControls);\n\t\tthis.validateAriaExpanded(this._ariaExpanded);\n\t\tthis.validateAriaSelected(this._ariaSelected);\n\t\tthis.validateCustomClass(this._customClass);\n\t\tthis.validateDisabled(this._disabled);\n\t\tthis.validateHideLabel(this._hideLabel);\n\t\tthis.validateIcons(this._icons);\n\t\tthis.validateId(this._id);\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateName(this._name);\n\t\tthis.validateOn(this._on);\n\t\tthis.validateRole(this._role);\n\t\tthis.validateSyncValueBySelector(this._syncValueBySelector);\n\t\tthis.validateTabIndex(this._tabIndex);\n\t\tthis.validateTooltipAlign(this._tooltipAlign);\n\t\tthis.validateType(this._type);\n\t\tthis.validateValue(this._value);\n\t\tthis.validateVariant(this._variant);\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-fb60429b.js"),index$1=require("./index-26a11fc3.js"),componentNames=require("./component-names-21d7915c.js"),defaultStyleCss="@charset \"UTF-8\";\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: 44px;\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of 44px.\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\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 clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .hidden {\n display: none;\n visibility: hidden;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n font-style: calc(16rem / var(--kolibri-root-font-size, 16));\n display: inline-block;\n }\n :is(a, button) {\n display: inline-flex;\n place-items: center;\n text-align: center;\n text-decoration-line: none;\n }\n :is(a, button)::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: \"​\";\n }\n /* TODO: Why we need this? */\n :is(a, button) > .kol-span-wc {\n margin: auto;\n width: 100%;\n }\n}",KolButtonDefaultStyle0=defaultStyleCss,KolButton=class{constructor(n){index.registerInstance(this,n),this.catchRef=n=>{index$1.propagateFocus(this.host,n)},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"}async getValue(){return this._value}render(){return index.h(index.Host,{key:"5dabc170509cbae4006effd638d1f6df14a980b8",class:"kol-button"},index.h(componentNames.KolButtonWcTag,{key:"8f77042817ac26209e77d4e7caa0f75f8b31f8ec",ref:this.catchRef,class:{button:!0,[this._variant]:"custom"!==this._variant,[this._customClass]:"custom"===this._variant&&"string"==typeof this._customClass&&this._customClass.length>0},_accessKey:this._accessKey,_ariaControls:this._ariaControls,_ariaExpanded:this._ariaExpanded,_ariaSelected:this._ariaSelected,_customClass:this._customClass,_disabled:this._disabled,_hideLabel:this._hideLabel,_icons:this._icons,_id:this._id,_label:this._label,_name:this._name,_on:this._on,_role:this._role,_syncValueBySelector:this._syncValueBySelector,_tabIndex:this._tabIndex,_tooltipAlign:this._tooltipAlign,_type:this._type,_value:this._value,_variant:this._variant},index.h("slot",{key:"743561c96a08d73b2624af46a3da8ee429ad6ae6",name:"expert",slot:"expert"})))}get host(){return index.getElement(this)}};KolButton.style={default:KolButtonDefaultStyle0},exports.kol_button=KolButton;
4
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-fb60429b.js"),componentNames=require("./component-names-21d7915c.js"),reuse=require("./reuse-daa2baf3.js"),defaultStyleCss="@charset \"UTF-8\";\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: 44px;\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of 44px.\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\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 clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .hidden {\n display: none;\n visibility: hidden;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n font-style: calc(16rem / var(--kolibri-root-font-size, 16));\n display: inline-block;\n }\n :is(a, button) {\n display: inline-flex;\n place-items: center;\n text-align: center;\n text-decoration-line: none;\n }\n :is(a, button)::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: \"​\";\n }\n /* TODO: Why we need this? */\n :is(a, button) > .kol-span-wc {\n margin: auto;\n width: 100%;\n }\n}",KolButtonDefaultStyle0=defaultStyleCss,KolButton=class{constructor(n){index.registerInstance(this,n),this.catchRef=n=>{reuse.propagateFocus(this.host,n)},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"}async getValue(){return this._value}render(){return index.h(index.Host,{key:"f25b58d924abdc5215b2ec354a57427bed43b001",class:"kol-button"},index.h(componentNames.KolButtonWcTag,{key:"e9afcf44b454f0a2c22bc1346fe583f697621efb",ref:this.catchRef,class:{button:!0,[this._variant]:"custom"!==this._variant,[this._customClass]:"custom"===this._variant&&"string"==typeof this._customClass&&this._customClass.length>0},_accessKey:this._accessKey,_ariaControls:this._ariaControls,_ariaExpanded:this._ariaExpanded,_ariaSelected:this._ariaSelected,_customClass:this._customClass,_disabled:this._disabled,_hideLabel:this._hideLabel,_icons:this._icons,_id:this._id,_label:this._label,_name:this._name,_on:this._on,_role:this._role,_syncValueBySelector:this._syncValueBySelector,_tabIndex:this._tabIndex,_tooltipAlign:this._tooltipAlign,_type:this._type,_value:this._value,_variant:this._variant},index.h("slot",{key:"5b515b5587a2c125450f6b11952ab776bbc41a62",name:"expert",slot:"expert"})))}get host(){return index.getElement(this)}};KolButton.style={default:KolButtonDefaultStyle0},exports.kol_button=KolButton;
@@ -1 +1 @@
1
- {"file":"kol-button.entry.cjs.js","mappings":";;;;;;;;;;;AAAA,MAAM,eAAe,GAAG,+jJAA+jJ,CAAC;AACxlJ,+BAAe,eAAe;;MC0BjB,SAAS;;;QAGJ,aAAQ,GAAG,CAAC,GAA4B;YACxDA,sBAAc,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;SAC/B,CAAC;;;;;;yBAwEmC,KAAK;0BAOJ,KAAK;;;;;;;;;6BA8CW,KAAK;qBAKf,QAAQ;;wBAUF,QAAQ;;IAxInD,MAAM,QAAQ;QACpB,OAAO,IAAI,CAAC,MAAM,CAAC;KACnB;IAEM,MAAM;QACZ,QACCC,QAACC,UAAI,qDAAC,KAAK,EAAC,YAAY,IACvBD,QAACE,6BAAc,qDACd,GAAG,EAAE,IAAI,CAAC,QAAQ,EAClB,KAAK,EAAE;gBACN,MAAM,EAAE,IAAI;gBACZ,CAAC,IAAI,CAAC,QAAkB,GAAG,IAAI,CAAC,QAAQ,KAAK,QAAQ;gBACrD,CAAC,IAAI,CAAC,YAAsB,GAAG,IAAI,CAAC,QAAQ,KAAK,QAAQ,IAAI,OAAO,IAAI,CAAC,YAAY,KAAK,QAAQ,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC;aAClI,EACD,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,YAAY,EAAE,IAAI,CAAC,YAAY,EAC/B,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,oBAAoB,EAAE,IAAI,CAAC,oBAAoB,EAC/C,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAEvBF,mEAAM,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,GAAQ,CACzB,CACX,EACN;KACF;;;;;;;;;","names":["propagateFocus","h","Host","KolButtonWcTag"],"sources":["src/components/button/style.scss?tag=kol-button&mode=default&encapsulation=shadow","src/components/button/shadow.tsx"],"sourcesContent":["@import '../button';\n","import type {\n\tAccessKeyPropType,\n\tAlternativeButtonLinkRolePropType,\n\tButtonCallbacksPropType,\n\tButtonProps,\n\tButtonTypePropType,\n\tButtonVariantPropType,\n\tCustomClassPropType,\n\tIconsPropType,\n\tLabelWithExpertSlotPropType,\n\tStencilUnknown,\n\tStringified,\n\tSyncValueBySelectorPropType,\n\tTooltipAlignPropType,\n} from '@public-ui/schema';\nimport { propagateFocus } from '@public-ui/schema';\nimport { Component, Element, h, Host, Method, Prop } from '@stencil/core';\nimport { KolButtonWcTag } from '../../core/component-names';\n\nimport type { JSX } from '@stencil/core';\n@Component({\n\ttag: 'kol-button',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolButton implements ButtonProps {\n\t@Element() private readonly host?: HTMLKolButtonElement;\n\n\tprivate readonly catchRef = (ref?: HTMLKolButtonWcElement) => {\n\t\tpropagateFocus(this.host, ref);\n\t};\n\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async getValue(): Promise<Stringified<StencilUnknown> | undefined> {\n\t\treturn this._value;\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-button\">\n\t\t\t\t<KolButtonWcTag\n\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\tclass={{\n\t\t\t\t\t\tbutton: true,\n\t\t\t\t\t\t[this._variant as string]: this._variant !== 'custom',\n\t\t\t\t\t\t[this._customClass as string]: this._variant === 'custom' && typeof this._customClass === 'string' && this._customClass.length > 0,\n\t\t\t\t\t}}\n\t\t\t\t\t_accessKey={this._accessKey}\n\t\t\t\t\t_ariaControls={this._ariaControls}\n\t\t\t\t\t_ariaExpanded={this._ariaExpanded}\n\t\t\t\t\t_ariaSelected={this._ariaSelected}\n\t\t\t\t\t_customClass={this._customClass}\n\t\t\t\t\t_disabled={this._disabled}\n\t\t\t\t\t_hideLabel={this._hideLabel}\n\t\t\t\t\t_icons={this._icons}\n\t\t\t\t\t_id={this._id}\n\t\t\t\t\t_label={this._label}\n\t\t\t\t\t_name={this._name}\n\t\t\t\t\t_on={this._on}\n\t\t\t\t\t_role={this._role}\n\t\t\t\t\t_syncValueBySelector={this._syncValueBySelector}\n\t\t\t\t\t_tabIndex={this._tabIndex}\n\t\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t\t_type={this._type}\n\t\t\t\t\t_value={this._value}\n\t\t\t\t\t_variant={this._variant}\n\t\t\t\t>\n\t\t\t\t\t<slot name=\"expert\" slot=\"expert\"></slot>\n\t\t\t\t</KolButtonWcTag>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the elements access key.\n\t */\n\t@Prop() public _accessKey?: AccessKeyPropType;\n\n\t/**\n\t * Defines which elements are controlled by this component. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls)\n\t */\n\t@Prop() public _ariaControls?: string;\n\n\t/**\n\t * Defines whether the interactive element of the component expanded something. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)\n\t */\n\t@Prop() public _ariaExpanded?: boolean;\n\n\t/**\n\t * Defines whether the interactive element of the component is selected (e.g. role=tab). (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected)\n\t */\n\t@Prop() public _ariaSelected?: boolean;\n\n\t/**\n\t * Defines the custom class attribute if _variant=\"custom\" is set.\n\t */\n\t@Prop() public _customClass?: CustomClassPropType;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Hides the caption by default and displays the caption text with a tooltip when the\n\t * interactive element is focused or the mouse is over it.\n\t * @TODO: Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hideLabel?: boolean = false;\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: IconsPropType;\n\n\t/**\n\t * Defines the internal ID of the primary component element.\n\t */\n\t@Prop() public _id?: string;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label!: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Defines the technical name of an input field.\n\t */\n\t@Prop() public _name?: string;\n\n\t/**\n\t * Defines the callback functions for button events.\n\t */\n\t@Prop() public _on?: ButtonCallbacksPropType<StencilUnknown>;\n\n\t/**\n\t * Defines the role of the components primary element.\n\t */\n\t@Prop() public _role?: AlternativeButtonLinkRolePropType;\n\n\t/**\n\t * Selector for synchronizing the value with another input element.\n\t * @internal\n\t */\n\t@Prop() public _syncValueBySelector?: SyncValueBySelectorPropType;\n\n\t/**\n\t * Defines which tab-index the primary element of the component has. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)\n\t */\n\t@Prop() public _tabIndex?: number;\n\n\t/**\n\t * Defines where to show the Tooltip preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _tooltipAlign?: TooltipAlignPropType = 'top';\n\n\t/**\n\t * Defines either the type of the component or of the components interactive element.\n\t */\n\t@Prop() public _type?: ButtonTypePropType = 'button';\n\n\t/**\n\t * Defines the value that the button emits on click.\n\t */\n\t@Prop() public _value?: Stringified<StencilUnknown>;\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: ButtonVariantPropType = 'normal';\n}\n"],"version":3}
1
+ {"file":"kol-button.entry.cjs.js","mappings":";;;;;;;;;;;AAAA,MAAM,eAAe,GAAG,+jJAA+jJ,CAAC;AACxlJ,+BAAe,eAAe;;MC0BjB,SAAS;;;QAGJ,aAAQ,GAAG,CAAC,GAA4B;YACxDA,oBAAc,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;SAC/B,CAAC;;;;;;yBAwEmC,KAAK;0BAOJ,KAAK;;;;;;;;;6BA8CW,KAAK;qBAKf,QAAQ;;wB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AAQ,CACzB,CACX,EACN;KACF;;;;;;;;;","names":["propagateFocus","h","Host","KolButtonWcTag"],"sources":["src/components/button/style.scss?tag=kol-button&mode=default&encapsulation=shadow","src/components/button/shadow.tsx"],"sourcesContent":["@import '../button';\n","import type {\n\tAccessKeyPropType,\n\tAlternativeButtonLinkRolePropType,\n\tButtonCallbacksPropType,\n\tButtonProps,\n\tButtonTypePropType,\n\tButtonVariantPropType,\n\tCustomClassPropType,\n\tIconsPropType,\n\tLabelWithExpertSlotPropType,\n\tStencilUnknown,\n\tStringified,\n\tSyncValueBySelectorPropType,\n\tTooltipAlignPropType,\n} from '../../schema';\nimport { propagateFocus } from '../../schema';\nimport { Component, Element, h, Host, Method, Prop } from '@stencil/core';\nimport { KolButtonWcTag } from '../../core/component-names';\n\nimport type { JSX } from '@stencil/core';\n@Component({\n\ttag: 'kol-button',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolButton implements ButtonProps {\n\t@Element() private readonly host?: HTMLKolButtonElement;\n\n\tprivate readonly catchRef = (ref?: HTMLKolButtonWcElement) => {\n\t\tpropagateFocus(this.host, ref);\n\t};\n\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async getValue(): Promise<Stringified<StencilUnknown> | undefined> {\n\t\treturn this._value;\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-button\">\n\t\t\t\t<KolButtonWcTag\n\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\tclass={{\n\t\t\t\t\t\tbutton: true,\n\t\t\t\t\t\t[this._variant as string]: this._variant !== 'custom',\n\t\t\t\t\t\t[this._customClass as string]: this._variant === 'custom' && typeof this._customClass === 'string' && this._customClass.length > 0,\n\t\t\t\t\t}}\n\t\t\t\t\t_accessKey={this._accessKey}\n\t\t\t\t\t_ariaControls={this._ariaControls}\n\t\t\t\t\t_ariaExpanded={this._ariaExpanded}\n\t\t\t\t\t_ariaSelected={this._ariaSelected}\n\t\t\t\t\t_customClass={this._customClass}\n\t\t\t\t\t_disabled={this._disabled}\n\t\t\t\t\t_hideLabel={this._hideLabel}\n\t\t\t\t\t_icons={this._icons}\n\t\t\t\t\t_id={this._id}\n\t\t\t\t\t_label={this._label}\n\t\t\t\t\t_name={this._name}\n\t\t\t\t\t_on={this._on}\n\t\t\t\t\t_role={this._role}\n\t\t\t\t\t_syncValueBySelector={this._syncValueBySelector}\n\t\t\t\t\t_tabIndex={this._tabIndex}\n\t\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t\t_type={this._type}\n\t\t\t\t\t_value={this._value}\n\t\t\t\t\t_variant={this._variant}\n\t\t\t\t>\n\t\t\t\t\t<slot name=\"expert\" slot=\"expert\"></slot>\n\t\t\t\t</KolButtonWcTag>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the elements access key.\n\t */\n\t@Prop() public _accessKey?: AccessKeyPropType;\n\n\t/**\n\t * Defines which elements are controlled by this component. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls)\n\t */\n\t@Prop() public _ariaControls?: string;\n\n\t/**\n\t * Defines whether the interactive element of the component expanded something. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)\n\t */\n\t@Prop() public _ariaExpanded?: boolean;\n\n\t/**\n\t * Defines whether the interactive element of the component is selected (e.g. role=tab). (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected)\n\t */\n\t@Prop() public _ariaSelected?: boolean;\n\n\t/**\n\t * Defines the custom class attribute if _variant=\"custom\" is set.\n\t */\n\t@Prop() public _customClass?: CustomClassPropType;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Hides the caption by default and displays the caption text with a tooltip when the\n\t * interactive element is focused or the mouse is over it.\n\t * @TODO: Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hideLabel?: boolean = false;\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: IconsPropType;\n\n\t/**\n\t * Defines the internal ID of the primary component element.\n\t */\n\t@Prop() public _id?: string;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label!: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Defines the technical name of an input field.\n\t */\n\t@Prop() public _name?: string;\n\n\t/**\n\t * Defines the callback functions for button events.\n\t */\n\t@Prop() public _on?: ButtonCallbacksPropType<StencilUnknown>;\n\n\t/**\n\t * Defines the role of the components primary element.\n\t */\n\t@Prop() public _role?: AlternativeButtonLinkRolePropType;\n\n\t/**\n\t * Selector for synchronizing the value with another input element.\n\t * @internal\n\t */\n\t@Prop() public _syncValueBySelector?: SyncValueBySelectorPropType;\n\n\t/**\n\t * Defines which tab-index the primary element of the component has. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)\n\t */\n\t@Prop() public _tabIndex?: number;\n\n\t/**\n\t * Defines where to show the Tooltip preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _tooltipAlign?: TooltipAlignPropType = 'top';\n\n\t/**\n\t * Defines either the type of the component or of the components interactive element.\n\t */\n\t@Prop() public _type?: ButtonTypePropType = 'button';\n\n\t/**\n\t * Defines the value that the button emits on click.\n\t */\n\t@Prop() public _value?: Stringified<StencilUnknown>;\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: ButtonVariantPropType = 'normal';\n}\n"],"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-fb60429b.js"),index$1=require("./index-26a11fc3.js"),i18n=require("./i18n-db3c5520.js"),validation=require("./validation-89c93141.js"),componentNames=require("./component-names-21d7915c.js");require("./i18n-ac90ee57.js");const defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: 44px;\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of 44px.\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\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 clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .hidden {\n display: none;\n visibility: hidden;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n :host > div.card {\n height: 100%;\n position: relative;\n /* Visible with forced colors */\n outline: transparent solid 1px;\n }\n .close {\n position: absolute;\n top: 0;\n right: 0;\n }\n}",KolCardDefaultStyle0=defaultStyleCss,KolCard=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._on=void 0,this._hasCloser=!1,this._label=void 0,this._level=1,this.state={_label:""}}render(){return index.h(index.Host,{key:"e403d95ac0c2dcb63f004dc274435d92b189cec0",class:"kol-card"},index.h("div",{key:"e95f4bae2c92745145847c3f6f7dcd991c83e234",class:"card"},index.h("div",{key:"314c85fa6d6c32f8204e330a8b29b2f91b790d16",class:"header"},index.h(componentNames.KolHeadingWcTag,{key:"d3f2ed37cf27695ef3645f298c62ff02d295674a",_label:this.state._label,_level:this.state._level})),index.h("div",{key:"7b54507a0e770ec6f5f70073680518e7a44dda0e",class:"content"},index.h("slot",{key:"e81a3e0d7764f284baa1a0ac464c173dad53bf61"})),this.state._hasCloser&&index.h(componentNames.KolButtonWcTag,{key:"443b14fe575f486f0e61a8dd717a0ccc78247938",class:"close",_hideLabel:!0,_icons:{left:{icon:"codicon codicon-close"}},_label:i18n.translate("kol-close"),_on:this.on,_tooltipAlign:"left"})))}validateOn(e){this.validateOnValue(e)&&index$1.setState(this,"_on",{onClose:e.onClose})}validateHasCloser(e){index$1.validateHasCloser(this,e)}validateLabel(e){index$1.validateLabel(this,e,{required:!0})}validateLevel(e){validation.watchHeadingLevel(this,e)}componentWillLoad(){this.validateHasCloser(this._hasCloser),this.validateLabel(this._label),this.validateLevel(this._level),this.validateOn(this._on)}static get watchers(){return{_on:["validateOn"],_hasCloser:["validateHasCloser"],_label:["validateLabel"],_level:["validateLevel"]}}};KolCard.style={default:KolCardDefaultStyle0},exports.kol_card=KolCard;
4
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-fb60429b.js"),i18n=require("./i18n-4f73c04e.js"),validation=require("./validation-80c0b59f.js"),componentNames=require("./component-names-21d7915c.js"),hasCloser=require("./has-closer-ff878289.js"),prop_validators=require("./prop.validators-5eb93968.js"),label=require("./label-23abf417.js");require("./i18n-ac90ee57.js"),require("./reuse-daa2baf3.js"),require("./index-8d8858f3.js"),require("./dev.utils-3e595d38.js");const defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: 44px;\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of 44px.\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\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 clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .hidden {\n display: none;\n visibility: hidden;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n :host > div.card {\n height: 100%;\n position: relative;\n /* Visible with forced colors */\n outline: transparent solid 1px;\n }\n .close {\n position: absolute;\n top: 0;\n right: 0;\n }\n}",KolCardDefaultStyle0=defaultStyleCss,KolCard=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._on=void 0,this._hasCloser=!1,this._label=void 0,this._level=1,this.state={_label:""}}render(){return index.h(index.Host,{key:"6a075e6c225c33dbfab5bbc6e78751eb1a2ee474",class:"kol-card"},index.h("div",{key:"a3aee1a0c51e4aadd5bab63252686a9adfa7cfb6",class:"card"},index.h("div",{key:"1f73f4e0302ba9bb5b7fb5e0cbc6b00e7a3abdde",class:"header"},index.h(componentNames.KolHeadingWcTag,{key:"0d077a8431e89744ed58c51d5e645f445e009169",_label:this.state._label,_level:this.state._level})),index.h("div",{key:"aef0ace6767b8978efd6a14967d51808660cdcad",class:"content"},index.h("slot",{key:"7fe022672f6e418364f63cb0a72dfbed09207c8e"})),this.state._hasCloser&&index.h(componentNames.KolButtonWcTag,{key:"ff59bb6a947d9d435f4c2a2cf968daa5064ec2d3",class:"close",_hideLabel:!0,_icons:{left:{icon:"codicon codicon-close"}},_label:i18n.translate("kol-close"),_on:this.on,_tooltipAlign:"left"})))}validateOn(e){this.validateOnValue(e)&&prop_validators.setState(this,"_on",{onClose:e.onClose})}validateHasCloser(e){hasCloser.validateHasCloser(this,e)}validateLabel(e){label.validateLabel(this,e,{required:!0})}validateLevel(e){validation.watchHeadingLevel(this,e)}componentWillLoad(){this.validateHasCloser(this._hasCloser),this.validateLabel(this._label),this.validateLevel(this._level),this.validateOn(this._on)}static get watchers(){return{_on:["validateOn"],_hasCloser:["validateHasCloser"],_label:["validateLabel"],_level:["validateLevel"]}}};KolCard.style={default:KolCardDefaultStyle0},exports.kol_card=KolCard;
@@ -1 +1 @@
1
- {"file":"kol-card.entry.cjs.js","mappings":";;;;;;;;;;;;;;AAAA,MAAM,eAAe,GAAG,m2IAAm2I,CAAC;AAC53I,6BAAe,eAAe;;MC0BjB,OAAO;;;QACF,UAAK,GAAG;;YACxB,IAAI,CAAA,MAAA,IAAI,CAAC,GAAG,0CAAE,OAAO,MAAK,SAAS,EAAE;gBACpC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;aACrC;SACD,CAAC;QAEe,OAAE,GAAG;YACrB,OAAO,EAAE,IAAI,CAAC,KAAK;SACnB,CAAC;QAwDM,oBAAe,GAAG,CAAC,KAAc,KACxC,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,OAAQ,KAAmC,CAAC,OAAO,KAAK,UAAU,CAAC;;0BAjB7E,KAAK;;sBAUJ,CAAC;qBAEJ;YACnC,MAAM,EAAE,EAAE;SACV;;IApDM,MAAM;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C,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAC1B;;;;;;;;;;;;;;","names":["h","Host","KolHeadingWcTag","KolButtonWcTag","translate","setState","validateHasCloser","validateLabel","watchHeadingLevel"],"sources":["src/components/card/style.scss?tag=kol-card&mode=default&encapsulation=shadow","src/components/card/component.tsx"],"sourcesContent":["@import '../@shared/mixins';\n@import '../style';\n\n@layer kol-component {\n\t:host {\n\t\tfont-size: rem(16);\n\t}\n\n\t:host > div.card {\n\t\theight: 100%;\n\t\tposition: relative;\n\t\t/* Visible with forced colors */\n\t\toutline: transparent solid 1px;\n\t}\n\n\t.close {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tright: 0;\n\t}\n}\n","import type {\n\tCardAPI,\n\tCardStates,\n\tHasCloserPropType,\n\tHeadingLevel,\n\tKoliBriAlertEventCallbacks,\n\tKoliBriCardEventCallbacks,\n\tLabelPropType,\n} from '@public-ui/schema';\nimport { setState, validateHasCloser, validateLabel } from '@public-ui/schema';\nimport { Component, h, Host, Prop, State, Watch } from '@stencil/core';\n\nimport { translate } from '../../i18n';\nimport { watchHeadingLevel } from '../heading/validation';\n\nimport type { JSX } from '@stencil/core';\nimport { KolButtonWcTag, KolHeadingWcTag } from '../../core/component-names';\n/**\n * @slot - Ermöglicht das Einfügen beliebigen HTML's in den Inhaltsbereich der Card.\n */\n@Component({\n\ttag: 'kol-card',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolCard implements CardAPI {\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\treturn (\n\t\t\t<Host class=\"kol-card\">\n\t\t\t\t<div class=\"card\">\n\t\t\t\t\t<div class=\"header\">\n\t\t\t\t\t\t<KolHeadingWcTag _label={this.state._label} _level={this.state._level}></KolHeadingWcTag>\n\t\t\t\t\t</div>\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\t{this.state._hasCloser && (\n\t\t\t\t\t\t<KolButtonWcTag\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></KolButtonWcTag>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the event callback functions for the component.\n\t */\n\t@Prop() public _on?: KoliBriCardEventCallbacks;\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@State() public state: CardStates = {\n\t\t_label: '', // ⚠ required\n\t};\n\n\tprivate validateOnValue = (value: unknown): boolean =>\n\t\ttypeof value === 'object' && value !== null && typeof (value as KoliBriCardEventCallbacks).onClose === 'function';\n\n\t@Watch('_on')\n\tpublic validateOn(value?: KoliBriCardEventCallbacks): void {\n\t\tif (this.validateOnValue(value)) {\n\t\t\tsetState<KoliBriCardEventCallbacks>(this, '_on', {\n\t\t\t\tonClose: (value as KoliBriAlertEventCallbacks).onClose,\n\t\t\t});\n\t\t}\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\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_level')\n\tpublic validateLevel(value?: HeadingLevel): void {\n\t\twatchHeadingLevel(this, value);\n\t}\n\n\tpublic componentWillLoad(): void {\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}\n}\n"],"version":3}
1
+ {"file":"kol-card.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;;AAAA,MAAM,eAAe,GAAG,m2IAAm2I,CAAC;AAC53I,6BAAe,eAAe;;MCkBjB,OAAO;;;QACF,UAAK,GAAG;;YACxB,IAAI,CAAA,MAAA,IAAI,CAAC,GAAG,0CAAE,OAAO,MAAK,SAAS,EAAE;gBACpC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;aACrC;SACD,CAAC;QAEe,OAAE,GAAG;YACrB,OAAO,EAAE,IAAI,CAAC,KAAK;SACnB,CAAC;QAwDM,oBAAe,GAAG,CAAC,KAAc,KACxC,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,OAAQ,KAAmC,CAAC,OAAO,KAAK,UAAU,CAAC;;0BAjB7E,KAAK;;sBAUJ,CAAC;qBAEJ;YACnC,MAAM,EAAE,EAAE;SACV;;IApDM,MAAM;QACZ,QACCA,QAACC,UAAI,qDAAC,KAAK,EAAC,UAAU,IACrBD,kEAAK,KAAK,EAAC,MAAM,IAChBA,kEAAK,KAAK,EAAC,QAAQ,IAClBA,QAACE,8BAAe,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host","KolHeadingWcTag","KolButtonWcTag","translate","setState","validateHasCloser","validateLabel","watchHeadingLevel"],"sources":["src/components/card/style.scss?tag=kol-card&mode=default&encapsulation=shadow","src/components/card/component.tsx"],"sourcesContent":["@import '../@shared/mixins';\n@import '../style';\n\n@layer kol-component {\n\t:host {\n\t\tfont-size: rem(16);\n\t}\n\n\t:host > div.card {\n\t\theight: 100%;\n\t\tposition: relative;\n\t\t/* Visible with forced colors */\n\t\toutline: transparent solid 1px;\n\t}\n\n\t.close {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tright: 0;\n\t}\n}\n","import type { CardAPI, CardStates, HasCloserPropType, HeadingLevel, KoliBriAlertEventCallbacks, KoliBriCardEventCallbacks, LabelPropType } from '../../schema';\nimport { setState, validateHasCloser, validateLabel } from '../../schema';\nimport { Component, h, Host, Prop, State, Watch } from '@stencil/core';\n\nimport { translate } from '../../i18n';\nimport { watchHeadingLevel } from '../heading/validation';\n\nimport type { JSX } from '@stencil/core';\nimport { KolButtonWcTag, KolHeadingWcTag } from '../../core/component-names';\n/**\n * @slot - Ermöglicht das Einfügen beliebigen HTML's in den Inhaltsbereich der Card.\n */\n@Component({\n\ttag: 'kol-card',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolCard implements CardAPI {\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\treturn (\n\t\t\t<Host class=\"kol-card\">\n\t\t\t\t<div class=\"card\">\n\t\t\t\t\t<div class=\"header\">\n\t\t\t\t\t\t<KolHeadingWcTag _label={this.state._label} _level={this.state._level}></KolHeadingWcTag>\n\t\t\t\t\t</div>\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\t{this.state._hasCloser && (\n\t\t\t\t\t\t<KolButtonWcTag\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></KolButtonWcTag>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the event callback functions for the component.\n\t */\n\t@Prop() public _on?: KoliBriCardEventCallbacks;\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@State() public state: CardStates = {\n\t\t_label: '', // ⚠ required\n\t};\n\n\tprivate validateOnValue = (value: unknown): boolean =>\n\t\ttypeof value === 'object' && value !== null && typeof (value as KoliBriCardEventCallbacks).onClose === 'function';\n\n\t@Watch('_on')\n\tpublic validateOn(value?: KoliBriCardEventCallbacks): void {\n\t\tif (this.validateOnValue(value)) {\n\t\t\tsetState<KoliBriCardEventCallbacks>(this, '_on', {\n\t\t\t\tonClose: (value as KoliBriAlertEventCallbacks).onClose,\n\t\t\t});\n\t\t}\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\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_level')\n\tpublic validateLevel(value?: HeadingLevel): void {\n\t\twatchHeadingLevel(this, value);\n\t}\n\n\tpublic componentWillLoad(): void {\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}\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-fb60429b.js"),index$1=require("./index-26a11fc3.js"),events=require("./events-221fcb43.js"),componentNames=require("./component-names-21d7915c.js");class DetailsAnimationController{constructor(e,n,t){this.detailsElement=e,this.summaryElement=n,this.contentElement=t,this.isClosing=!1,this.isExpanding=!1,this.summaryElement.addEventListener("click",this.handleSummaryClick.bind(this))}handleSummaryClick(e){e.preventDefault(),this.isClosing||!this.detailsElement.open?this.open():(this.isExpanding||this.detailsElement.open)&&this.collapse()}open(){this.detailsElement.open=!0,window.requestAnimationFrame(this.expand.bind(this))}expand(){this.isExpanding=!0,this.animateContentHeight("expand")}collapse(){this.isClosing=!0,this.animateContentHeight("collapse")}animateContentHeight(e){let n="expand"===e?0:this.contentElement.offsetHeight,t="expand"===e?this.contentElement.offsetHeight:0;this.animation&&(n=this.contentElement.offsetHeight,this.animation.cancel(),"expand"===e&&(t=this.contentElement.offsetHeight)),this.animation=this.contentElement.animate({height:[`${n}px`,`${t}px`]},{duration:matchMedia("(prefers-reduced-motion)").matches?0:250,easing:"ease-out"}),this.animation.addEventListener("finish",(()=>{this.onAnimationFinish()}),{once:!0}),this.animation.addEventListener("cancel",(()=>{"expand"===e?this.isExpanding=!1:this.isClosing=!1}),{once:!0})}onAnimationFinish(){this.detailsElement.open=this.isExpanding,this.animation=void 0,this.isClosing=!1,this.isExpanding=!1}}const defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: 44px;\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of 44px.\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\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 clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .hidden {\n display: none;\n visibility: hidden;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n details {\n display: grid;\n }\n details > summary {\n cursor: pointer;\n display: flex;\n place-items: center;\n }\n details > summary > span {\n border-bottom-color: grey;\n border-bottom-style: solid;\n }\n details > summary:focus > span,\n details > summary:hover > span,\n details[open] > summary > span {\n border-bottom-color: #000;\n }\n .content {\n overflow: hidden;\n }\n details > .kol-indented-text {\n margin: 0.25em 0 0 0.5em;\n }\n .icon.is-open::part(icon) {\n transform: rotate(90deg);\n }\n}",KolDetailsDefaultStyle0=defaultStyleCss,KolDetails=class{constructor(e){index.registerInstance(this,e),this.catchDetails=e=>{this.detailsElement=e},this.catchSummary=e=>{this.summaryElement=e,index$1.propagateFocus(this.host,this.summaryElement)},this.preventToggleIfDisabled=e=>{!0===this.state._disabled&&events.preventDefaultAndStopPropagation(e)},this.handleToggle=e=>{clearTimeout(this.toggleTimeout),this.toggleTimeout=setTimeout((()=>{var n,t,i,a;Boolean(null===(n=this.detailsElement)||void 0===n?void 0:n.open)!==this.state._open&&(this._open=Boolean(null===(t=this.detailsElement)||void 0===t?void 0:t.open),events.tryToDispatchKoliBriEvent("toggle",this.host,this._open),"function"==typeof(null===(i=this.state._on)||void 0===i?void 0:i.onToggle)&&(null===(a=this.state._on)||void 0===a||a.onToggle(e,this._open)))}),25)},this._disabled=!1,this._label=void 0,this._on=void 0,this._open=!1,this.state={_label:"",_on:{}}}render(){return index.h(index.Host,{key:"d10f3b77aece51c200586eb0aca3e36bcf93377f",class:"kol-details"},index.h("details",{key:"fc2a98dd9be0f58f2753f36cd4f9cac8f0b7f95a",ref:this.catchDetails,class:{disabled:!0===this.state._disabled,open:!0===this.state._open},onToggle:this.handleToggle},index.h("summary",{key:"630d6b7a277a32222dc0be5f6a1bf1ab0f4c4785",ref:this.catchSummary,"aria-disabled":this.state._disabled?"true":void 0,onClick:this.preventToggleIfDisabled,onKeyPress:this.preventToggleIfDisabled,tabIndex:this.state._disabled?-1:void 0},index.h(componentNames.KolIconTag,{key:"abb205a1bfa9cf5f971746b08fa5fb509cb817e3",_label:"",_icons:"codicon codicon-chevron-right",class:"icon "+(this.state._open?"is-open":"")}),index.h("span",{key:"b3c6bdd2a3e9846f834e66ad52165543c7e357e0"},this.state._label)),index.h("div",{key:"a35a8360a03f7d45faaa28eec581733c1f1f62b8","aria-hidden":!1===this.state._open?"true":void 0,class:"content",ref:e=>this.contentElement=e},index.h(componentNames.KolIndentedTextTag,{key:"82ff331139735fdcf8a696080e850b368070a592"},index.h("slot",{key:"44fcda833ae850381ad5ccd36bea739c69451755"})))))}validateDisabled(e){index$1.validateDisabled(this,e)}validateLabel(e){index$1.validateLabel(this,e,{required:!0})}validateOn(e){"object"==typeof e&&null!==e&&"function"==typeof e.onToggle&&index$1.setState(this,"_on",e)}validateOpen(e){index$1.validateOpen(this,e)}componentWillLoad(){this.validateDisabled(this._disabled),this.validateLabel(this._label),this.validateOn(this._on),this.validateOpen(this._open)}componentDidLoad(){if(this.detailsElement&&this.summaryElement&&this.contentElement){const e=new DetailsAnimationController(this.detailsElement,this.summaryElement,this.contentElement);this.state._open&&e.open()}}get host(){return index.getElement(this)}static get watchers(){return{_disabled:["validateDisabled"],_label:["validateLabel"],_on:["validateOn"],_open:["validateOpen"]}}};KolDetails.style={default:KolDetailsDefaultStyle0},exports.kol_details=KolDetails;
4
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-fb60429b.js"),events=require("./events-221fcb43.js"),componentNames=require("./component-names-21d7915c.js"),reuse=require("./reuse-daa2baf3.js"),disabled=require("./disabled-67c674b5.js"),label=require("./label-23abf417.js"),prop_validators=require("./prop.validators-5eb93968.js"),open=require("./open-a2cab99b.js");require("./index-8d8858f3.js"),require("./dev.utils-3e595d38.js");class DetailsAnimationController{constructor(e,n,t){this.detailsElement=e,this.summaryElement=n,this.contentElement=t,this.isClosing=!1,this.isExpanding=!1,this.summaryElement.addEventListener("click",this.handleSummaryClick.bind(this))}handleSummaryClick(e){e.preventDefault(),this.isClosing||!this.detailsElement.open?this.open():(this.isExpanding||this.detailsElement.open)&&this.collapse()}open(){this.detailsElement.open=!0,window.requestAnimationFrame(this.expand.bind(this))}expand(){this.isExpanding=!0,this.animateContentHeight("expand")}collapse(){this.isClosing=!0,this.animateContentHeight("collapse")}animateContentHeight(e){let n="expand"===e?0:this.contentElement.offsetHeight,t="expand"===e?this.contentElement.offsetHeight:0;this.animation&&(n=this.contentElement.offsetHeight,this.animation.cancel(),"expand"===e&&(t=this.contentElement.offsetHeight)),this.animation=this.contentElement.animate({height:[`${n}px`,`${t}px`]},{duration:matchMedia("(prefers-reduced-motion)").matches?0:250,easing:"ease-out"}),this.animation.addEventListener("finish",(()=>{this.onAnimationFinish()}),{once:!0}),this.animation.addEventListener("cancel",(()=>{"expand"===e?this.isExpanding=!1:this.isClosing=!1}),{once:!0})}onAnimationFinish(){this.detailsElement.open=this.isExpanding,this.animation=void 0,this.isClosing=!1,this.isExpanding=!1}}const defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: 44px;\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of 44px.\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\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 clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .hidden {\n display: none;\n visibility: hidden;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n details {\n display: grid;\n }\n details > summary {\n cursor: pointer;\n display: flex;\n place-items: center;\n }\n details > summary > span {\n border-bottom-color: grey;\n border-bottom-style: solid;\n }\n details > summary:focus > span,\n details > summary:hover > span,\n details[open] > summary > span {\n border-bottom-color: #000;\n }\n .content {\n overflow: hidden;\n }\n details > .kol-indented-text {\n margin: 0.25em 0 0 0.5em;\n }\n .icon.is-open::part(icon) {\n transform: rotate(90deg);\n }\n}",KolDetailsDefaultStyle0=defaultStyleCss,KolDetails=class{constructor(e){index.registerInstance(this,e),this.catchDetails=e=>{this.detailsElement=e},this.catchSummary=e=>{this.summaryElement=e,reuse.propagateFocus(this.host,this.summaryElement)},this.preventToggleIfDisabled=e=>{!0===this.state._disabled&&events.preventDefaultAndStopPropagation(e)},this.handleToggle=e=>{clearTimeout(this.toggleTimeout),this.toggleTimeout=setTimeout((()=>{var n,t,i,s;Boolean(null===(n=this.detailsElement)||void 0===n?void 0:n.open)!==this.state._open&&(this._open=Boolean(null===(t=this.detailsElement)||void 0===t?void 0:t.open),events.tryToDispatchKoliBriEvent("toggle",this.host,this._open),"function"==typeof(null===(i=this.state._on)||void 0===i?void 0:i.onToggle)&&(null===(s=this.state._on)||void 0===s||s.onToggle(e,this._open)))}),25)},this._disabled=!1,this._label=void 0,this._on=void 0,this._open=!1,this.state={_label:"",_on:{}}}render(){return index.h(index.Host,{key:"4ad8208280a549ec10c547b20ddb003e04e68f01",class:"kol-details"},index.h("details",{key:"229ce17a1772bed26309a249a4326152edbe4e6e",ref:this.catchDetails,class:{disabled:!0===this.state._disabled,open:!0===this.state._open},onToggle:this.handleToggle},index.h("summary",{key:"727bb07a088a3138ff4fc29ee6fe43bcf9543379",ref:this.catchSummary,"aria-disabled":this.state._disabled?"true":void 0,onClick:this.preventToggleIfDisabled,onKeyPress:this.preventToggleIfDisabled,tabIndex:this.state._disabled?-1:void 0},index.h(componentNames.KolIconTag,{key:"5ecf957e42408222a4fbd78c2a9974c6c6880bc9",_label:"",_icons:"codicon codicon-chevron-right",class:"icon "+(this.state._open?"is-open":"")}),index.h("span",{key:"2efa00fd37325648edd0c430db88a1d6f73d270c"},this.state._label)),index.h("div",{key:"1d527e8caeb3c9458ecde81c4c779c505ed19dc4","aria-hidden":!1===this.state._open?"true":void 0,class:"content",ref:e=>this.contentElement=e},index.h(componentNames.KolIndentedTextTag,{key:"6f57d85524db46b0a381e535b7e280ca92483ce7"},index.h("slot",{key:"518dd2d74ae80a0de06efcbd1097aa8e72de5db1"})))))}validateDisabled(e){disabled.validateDisabled(this,e)}validateLabel(e){label.validateLabel(this,e,{required:!0})}validateOn(e){"object"==typeof e&&null!==e&&"function"==typeof e.onToggle&&prop_validators.setState(this,"_on",e)}validateOpen(e){open.validateOpen(this,e)}componentWillLoad(){this.validateDisabled(this._disabled),this.validateLabel(this._label),this.validateOn(this._on),this.validateOpen(this._open)}componentDidLoad(){if(this.detailsElement&&this.summaryElement&&this.contentElement){const e=new DetailsAnimationController(this.detailsElement,this.summaryElement,this.contentElement);this.state._open&&e.open()}}get host(){return index.getElement(this)}static get watchers(){return{_disabled:["validateDisabled"],_label:["validateLabel"],_on:["validateOn"],_open:["validateOpen"]}}};KolDetails.style={default:KolDetailsDefaultStyle0},exports.kol_details=KolDetails;
@@ -1 +1 @@
1
- {"file":"kol-details.entry.cjs.js","mappings":";;;;;;;;;;;;MAEa,0BAA0B;IAKtC,YACS,cAAkC,EAClC,cAA2B,EAC3B,cAA2B;QAF3B,mBAAc,GAAd,cAAc,CAAoB;QAClC,mBAAc,GAAd,cAAc,CAAa;QAC3B,mBAAc,GAAd,cAAc,CAAa;QAN5B,cAAS,GAAG,KAAK,CAAC;QAClB,gBAAW,GAAG,KAAK,CAAC;QAO3B,IAAI,CAAC,cAAc,CAAC,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;KAClF;IAEO,kBAAkB,CAAC,KAAiB;QAC3C,KAAK,CAAC,cAAc,EAAE,CAAC;QAEvB,IAAI,IAAI,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE;YAChD,IAAI,CAAC,IAAI,EAAE,CAAC;SACZ;aAAM,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE;YACxD,IAAI,CAAC,QAAQ,EAAE,CAAC;SAChB;KACD;IAEM,IAAI;QACV,IAAI,CAAC,cAAc,CAAC,IAAI,GAAG,IAAI,CAAC;QAChC,MAAM,CAAC,qB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EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;YAC1H,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE;gBACrB,mBAAmB,CAAC,IAAI,EAAE,CAAC;aAC3B;SACD;KACD;;;;;;;;;;;;;;;","names":["propagateFocus","preventDefaultAndStopPropagation","tryToDispatchKoliBriEvent","h","Host","KolIconTag","KolIndentedTextTag","validateDisabled","validateLabel","setState","validateOpen"],"sources":["src/components/details/DetailsAnimationController.ts","src/components/details/style.scss?tag=kol-details&mode=default&encapsulation=shadow","src/components/details/component.tsx"],"sourcesContent":["/* Heavily inspired by: https://codepen.io/Mamboleoo/pen/QWEpLqm */\n\nexport class DetailsAnimationController {\n\tprivate animation?: Animation;\n\tprivate isClosing = false;\n\tprivate isExpanding = false;\n\n\tconstructor(\n\t\tprivate detailsElement: HTMLDetailsElement,\n\t\tprivate summaryElement: HTMLElement,\n\t\tprivate contentElement: HTMLElement,\n\t) {\n\t\tthis.summaryElement.addEventListener('click', this.handleSummaryClick.bind(this));\n\t}\n\n\tprivate handleSummaryClick(event: MouseEvent) {\n\t\tevent.preventDefault();\n\n\t\tif (this.isClosing || !this.detailsElement.open) {\n\t\t\tthis.open();\n\t\t} else if (this.isExpanding || this.detailsElement.open) {\n\t\t\tthis.collapse();\n\t\t}\n\t}\n\n\tpublic open() {\n\t\tthis.detailsElement.open = true;\n\t\twindow.requestAnimationFrame(this.expand.bind(this));\n\t}\n\n\tprivate expand() {\n\t\tthis.isExpanding = true;\n\t\tthis.animateContentHeight('expand');\n\t}\n\n\tprivate collapse() {\n\t\tthis.isClosing = true;\n\t\tthis.animateContentHeight('collapse');\n\t}\n\n\tprivate animateContentHeight(direction: 'expand' | 'collapse') {\n\t\tlet startHeight = direction === 'expand' ? 0 : this.contentElement.offsetHeight;\n\t\tlet endHeight = direction === 'expand' ? this.contentElement.offsetHeight : 0;\n\n\t\t/**\n\t\t * Override start and end height, when an animation is ongoing. During the animation, offsetHeight reflects the actual current height as it's being animated.\n\t\t * After canceling the animation, it reverts to the full height of the content container.\n\t\t */\n\t\tif (this.animation) {\n\t\t\tstartHeight = this.contentElement.offsetHeight;\n\t\t\tthis.animation.cancel();\n\t\t\tif (direction === 'expand') {\n\t\t\t\tendHeight = this.contentElement.offsetHeight;\n\t\t\t}\n\t\t}\n\n\t\tthis.animation = this.contentElement.animate(\n\t\t\t{\n\t\t\t\theight: [`${startHeight}px`, `${endHeight}px`],\n\t\t\t},\n\t\t\t{\n\t\t\t\tduration: matchMedia('(prefers-reduced-motion)').matches ? 0 : 250,\n\t\t\t\teasing: 'ease-out',\n\t\t\t},\n\t\t);\n\n\t\tthis.animation.addEventListener(\n\t\t\t'finish',\n\t\t\t() => {\n\t\t\t\tthis.onAnimationFinish();\n\t\t\t},\n\t\t\t{ once: true },\n\t\t);\n\t\tthis.animation.addEventListener(\n\t\t\t'cancel',\n\t\t\t() => {\n\t\t\t\tif (direction === 'expand') {\n\t\t\t\t\tthis.isExpanding = false;\n\t\t\t\t} else {\n\t\t\t\t\tthis.isClosing = false;\n\t\t\t\t}\n\t\t\t},\n\t\t\t{ once: true },\n\t\t);\n\t}\n\n\tprivate onAnimationFinish() {\n\t\tthis.detailsElement.open = this.isExpanding;\n\t\tthis.animation = undefined;\n\t\tthis.isClosing = false;\n\t\tthis.isExpanding = false;\n\t}\n}\n","@import '../@shared/mixins';\n@import '../style';\n@import '../host-display-block';\n\n@layer kol-component {\n\t:host {\n\t\tfont-size: rem(16);\n\t}\n\n\tdetails {\n\t\tdisplay: grid;\n\t}\n\n\tdetails > summary {\n\t\tcursor: pointer;\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\tdetails > summary > span {\n\t\tborder-bottom-color: grey;\n\t\tborder-bottom-style: solid;\n\t}\n\n\tdetails > summary:focus > span,\n\tdetails > summary:hover > span,\n\tdetails[open] > summary > span {\n\t\tborder-bottom-color: #000;\n\t}\n\n\t.content {\n\t\toverflow: hidden;\n\t}\n\n\tdetails > .kol-indented-text {\n\t\tmargin: 0.25em 0 0 0.5em;\n\t}\n\n\t.icon.is-open::part(icon) {\n\t\ttransform: rotate(90deg);\n\t}\n}\n","import type { DetailsAPI, DetailsStates, EventCallbacks, LabelPropType } from '@public-ui/schema';\nimport { propagateFocus, setState, validateLabel, validateOpen } from '@public-ui/schema';\nimport { Component, Element, Host, Prop, State, Watch, h } from '@stencil/core';\n\nimport { tryToDispatchKoliBriEvent } from '../../utils/events';\nimport { DetailsAnimationController } from './DetailsAnimationController';\n\nimport type { DisabledPropType } from '@public-ui/schema';\nimport { validateDisabled } from '@public-ui/schema';\nimport type { JSX } from '@stencil/core';\nimport { preventDefaultAndStopPropagation } from '../../utils/events';\nimport { KolIconTag, KolIndentedTextTag } from '../../core/component-names';\n\n/**\n * @slot - Der Inhalt, der in der Detailbeschreibung angezeigt wird.\n */\n@Component({\n\ttag: 'kol-details',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolDetails implements DetailsAPI {\n\t@Element() private readonly host?: HTMLKolDetailsElement;\n\tprivate detailsElement?: HTMLDetailsElement;\n\tprivate summaryElement?: HTMLElement;\n\tprivate contentElement?: HTMLElement;\n\n\tprivate readonly catchDetails = (ref?: HTMLElement) => {\n\t\tthis.detailsElement = ref as HTMLDetailsElement;\n\t};\n\n\tprivate readonly catchSummary = (ref?: HTMLElement) => {\n\t\tthis.summaryElement = ref;\n\t\tpropagateFocus(this.host, this.summaryElement);\n\t};\n\n\t/**\n\t * Handle disabled, because the toggle event is to late.\n\t */\n\tprivate readonly preventToggleIfDisabled = (event: Event) => {\n\t\tif (this.state._disabled === true) {\n\t\t\tpreventDefaultAndStopPropagation(event);\n\t\t}\n\t};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-details\">\n\t\t\t\t<details\n\t\t\t\t\tref={this.catchDetails}\n\t\t\t\t\tclass={{\n\t\t\t\t\t\tdisabled: this.state._disabled === true,\n\t\t\t\t\t\topen: this.state._open === true,\n\t\t\t\t\t}}\n\t\t\t\t\tonToggle={this.handleToggle}\n\t\t\t\t>\n\t\t\t\t\t{/* eslint-disable-next-line jsx-a11y/no-static-element-interactions */}\n\t\t\t\t\t<summary\n\t\t\t\t\t\tref={this.catchSummary}\n\t\t\t\t\t\taria-disabled={this.state._disabled ? 'true' : undefined}\n\t\t\t\t\t\tonClick={this.preventToggleIfDisabled}\n\t\t\t\t\t\tonKeyPress={this.preventToggleIfDisabled}\n\t\t\t\t\t\ttabIndex={this.state._disabled ? -1 : undefined}\n\t\t\t\t\t>\n\t\t\t\t\t\t<KolIconTag _label=\"\" _icons=\"codicon codicon-chevron-right\" class={`icon ${this.state._open ? 'is-open' : ''}`} />\n\t\t\t\t\t\t<span>{this.state._label}</span>\n\t\t\t\t\t</summary>\n\t\t\t\t\t<div aria-hidden={this.state._open === false ? 'true' : undefined} class=\"content\" ref={(element) => (this.contentElement = element)}>\n\t\t\t\t\t\t<KolIndentedTextTag>\n\t\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t</KolIndentedTextTag>\n\t\t\t\t\t</div>\n\t\t\t\t</details>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label!: LabelPropType;\n\n\t/**\n\t * Defines the callback functions for details.\n\t */\n\t@Prop() public _on?: EventCallbacks;\n\n\t/**\n\t * If set (to true) opens/expands the element, closes if not set (or set to false).\n\t * @TODO: Change type back to `OpenPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _open?: boolean = false;\n\n\t@State() public state: DetailsStates = {\n\t\t_label: '', // ⚠ required\n\t\t_on: {},\n\t};\n\n\t@Watch('_disabled')\n\tpublic validateDisabled(value?: DisabledPropType): void {\n\t\tvalidateDisabled(this, value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelPropType): void {\n\t\tvalidateLabel(this, value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(on?: EventCallbacks) {\n\t\tif (typeof on === 'object' && on !== null && typeof on.onToggle === 'function') {\n\t\t\tsetState<EventCallbacks>(this, '_on', on);\n\t\t}\n\t}\n\n\t@Watch('_open')\n\tpublic validateOpen(value?: boolean): void {\n\t\tvalidateOpen(this, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateDisabled(this._disabled);\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateOn(this._on);\n\t\tthis.validateOpen(this._open);\n\t}\n\n\tpublic componentDidLoad() {\n\t\tif (this.detailsElement && this.summaryElement && this.contentElement) {\n\t\t\tconst animationController = new DetailsAnimationController(this.detailsElement, this.summaryElement, this.contentElement);\n\t\t\tif (this.state._open) {\n\t\t\t\tanimationController.open();\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate toggleTimeout?: ReturnType<typeof setTimeout>;\n\n\tprivate handleToggle = (event: Event) => {\n\t\tclearTimeout(this.toggleTimeout);\n\t\tthis.toggleTimeout = setTimeout(() => {\n\t\t\tconst open = Boolean(this.detailsElement?.open);\n\t\t\tif (open !== this.state._open) {\n\t\t\t\t// Update state\n\t\t\t\tthis._open = Boolean(this.detailsElement?.open);\n\n\t\t\t\t// Event handling\n\t\t\t\ttryToDispatchKoliBriEvent('toggle', this.host, this._open);\n\n\t\t\t\t// Callback\n\t\t\t\tif (typeof this.state._on?.onToggle === 'function') {\n\t\t\t\t\tthis.state._on?.onToggle(event, this._open);\n\t\t\t\t}\n\t\t\t}\n\t\t}, 25);\n\t};\n}\n"],"version":3}
1
+ {"file":"kol-details.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;;;MAEa,0BAA0B;IAKtC,YACS,cAAkC,EAClC,cAA2B,EAC3B,cAA2B;QAF3B,mBAAc,GAAd,cAAc,CAAoB;QAClC,mBA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Q,KAAK,UAAU,EAAE;YAC/EC,wBAAQ,CAAiB,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;SAC1C;KACD;IAGM,YAAY,CAAC,KAAe;QAClCC,iBAAY,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;KAC1B;IAEM,iBAAiB;QACvB,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACtC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAC9B;IAEM,gBAAgB;QACtB,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,cAAc,EAAE;YACtE,MAAM,mBAAmB,GAAG,IAAI,0BAA0B,CAAC,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;YAC1H,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE;gBACrB,mBAAmB,CAAC,IAAI,EAAE,CAAC;aAC3B;SACD;KACD;;;;;;;;;;;;;;;","names":["propagateFocus","preventDefaultAndStopPropagation","tryToDispatchKoliBriEvent","h","Host","KolIconTag","KolIndentedTextTag","validateDisabled","validateLabel","setState","validateOpen"],"sources":["src/components/details/DetailsAnimationController.ts","src/components/details/style.scss?tag=kol-details&mode=default&encapsulation=shadow","src/components/details/component.tsx"],"sourcesContent":["/* Heavily inspired by: https://codepen.io/Mamboleoo/pen/QWEpLqm */\n\nexport class DetailsAnimationController {\n\tprivate animation?: Animation;\n\tprivate isClosing = false;\n\tprivate isExpanding = false;\n\n\tconstructor(\n\t\tprivate detailsElement: HTMLDetailsElement,\n\t\tprivate summaryElement: HTMLElement,\n\t\tprivate contentElement: HTMLElement,\n\t) {\n\t\tthis.summaryElement.addEventListener('click', this.handleSummaryClick.bind(this));\n\t}\n\n\tprivate handleSummaryClick(event: MouseEvent) {\n\t\tevent.preventDefault();\n\n\t\tif (this.isClosing || !this.detailsElement.open) {\n\t\t\tthis.open();\n\t\t} else if (this.isExpanding || this.detailsElement.open) {\n\t\t\tthis.collapse();\n\t\t}\n\t}\n\n\tpublic open() {\n\t\tthis.detailsElement.open = true;\n\t\twindow.requestAnimationFrame(this.expand.bind(this));\n\t}\n\n\tprivate expand() {\n\t\tthis.isExpanding = true;\n\t\tthis.animateContentHeight('expand');\n\t}\n\n\tprivate collapse() {\n\t\tthis.isClosing = true;\n\t\tthis.animateContentHeight('collapse');\n\t}\n\n\tprivate animateContentHeight(direction: 'expand' | 'collapse') {\n\t\tlet startHeight = direction === 'expand' ? 0 : this.contentElement.offsetHeight;\n\t\tlet endHeight = direction === 'expand' ? this.contentElement.offsetHeight : 0;\n\n\t\t/**\n\t\t * Override start and end height, when an animation is ongoing. During the animation, offsetHeight reflects the actual current height as it's being animated.\n\t\t * After canceling the animation, it reverts to the full height of the content container.\n\t\t */\n\t\tif (this.animation) {\n\t\t\tstartHeight = this.contentElement.offsetHeight;\n\t\t\tthis.animation.cancel();\n\t\t\tif (direction === 'expand') {\n\t\t\t\tendHeight = this.contentElement.offsetHeight;\n\t\t\t}\n\t\t}\n\n\t\tthis.animation = this.contentElement.animate(\n\t\t\t{\n\t\t\t\theight: [`${startHeight}px`, `${endHeight}px`],\n\t\t\t},\n\t\t\t{\n\t\t\t\tduration: matchMedia('(prefers-reduced-motion)').matches ? 0 : 250,\n\t\t\t\teasing: 'ease-out',\n\t\t\t},\n\t\t);\n\n\t\tthis.animation.addEventListener(\n\t\t\t'finish',\n\t\t\t() => {\n\t\t\t\tthis.onAnimationFinish();\n\t\t\t},\n\t\t\t{ once: true },\n\t\t);\n\t\tthis.animation.addEventListener(\n\t\t\t'cancel',\n\t\t\t() => {\n\t\t\t\tif (direction === 'expand') {\n\t\t\t\t\tthis.isExpanding = false;\n\t\t\t\t} else {\n\t\t\t\t\tthis.isClosing = false;\n\t\t\t\t}\n\t\t\t},\n\t\t\t{ once: true },\n\t\t);\n\t}\n\n\tprivate onAnimationFinish() {\n\t\tthis.detailsElement.open = this.isExpanding;\n\t\tthis.animation = undefined;\n\t\tthis.isClosing = false;\n\t\tthis.isExpanding = false;\n\t}\n}\n","@import '../@shared/mixins';\n@import '../style';\n@import '../host-display-block';\n\n@layer kol-component {\n\t:host {\n\t\tfont-size: rem(16);\n\t}\n\n\tdetails {\n\t\tdisplay: grid;\n\t}\n\n\tdetails > summary {\n\t\tcursor: pointer;\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\tdetails > summary > span {\n\t\tborder-bottom-color: grey;\n\t\tborder-bottom-style: solid;\n\t}\n\n\tdetails > summary:focus > span,\n\tdetails > summary:hover > span,\n\tdetails[open] > summary > span {\n\t\tborder-bottom-color: #000;\n\t}\n\n\t.content {\n\t\toverflow: hidden;\n\t}\n\n\tdetails > .kol-indented-text {\n\t\tmargin: 0.25em 0 0 0.5em;\n\t}\n\n\t.icon.is-open::part(icon) {\n\t\ttransform: rotate(90deg);\n\t}\n}\n","import type { DetailsAPI, DetailsStates, EventCallbacks, LabelPropType } from '../../schema';\nimport { propagateFocus, setState, validateLabel, validateOpen } from '../../schema';\nimport { Component, Element, Host, Prop, State, Watch, h } from '@stencil/core';\n\nimport { tryToDispatchKoliBriEvent } from '../../utils/events';\nimport { DetailsAnimationController } from './DetailsAnimationController';\n\nimport type { DisabledPropType } from '../../schema';\nimport { validateDisabled } from '../../schema';\nimport type { JSX } from '@stencil/core';\nimport { preventDefaultAndStopPropagation } from '../../utils/events';\nimport { KolIconTag, KolIndentedTextTag } from '../../core/component-names';\n\n/**\n * @slot - Der Inhalt, der in der Detailbeschreibung angezeigt wird.\n */\n@Component({\n\ttag: 'kol-details',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolDetails implements DetailsAPI {\n\t@Element() private readonly host?: HTMLKolDetailsElement;\n\tprivate detailsElement?: HTMLDetailsElement;\n\tprivate summaryElement?: HTMLElement;\n\tprivate contentElement?: HTMLElement;\n\n\tprivate readonly catchDetails = (ref?: HTMLElement) => {\n\t\tthis.detailsElement = ref as HTMLDetailsElement;\n\t};\n\n\tprivate readonly catchSummary = (ref?: HTMLElement) => {\n\t\tthis.summaryElement = ref;\n\t\tpropagateFocus(this.host, this.summaryElement);\n\t};\n\n\t/**\n\t * Handle disabled, because the toggle event is to late.\n\t */\n\tprivate readonly preventToggleIfDisabled = (event: Event) => {\n\t\tif (this.state._disabled === true) {\n\t\t\tpreventDefaultAndStopPropagation(event);\n\t\t}\n\t};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-details\">\n\t\t\t\t<details\n\t\t\t\t\tref={this.catchDetails}\n\t\t\t\t\tclass={{\n\t\t\t\t\t\tdisabled: this.state._disabled === true,\n\t\t\t\t\t\topen: this.state._open === true,\n\t\t\t\t\t}}\n\t\t\t\t\tonToggle={this.handleToggle}\n\t\t\t\t>\n\t\t\t\t\t{/* eslint-disable-next-line jsx-a11y/no-static-element-interactions */}\n\t\t\t\t\t<summary\n\t\t\t\t\t\tref={this.catchSummary}\n\t\t\t\t\t\taria-disabled={this.state._disabled ? 'true' : undefined}\n\t\t\t\t\t\tonClick={this.preventToggleIfDisabled}\n\t\t\t\t\t\tonKeyPress={this.preventToggleIfDisabled}\n\t\t\t\t\t\ttabIndex={this.state._disabled ? -1 : undefined}\n\t\t\t\t\t>\n\t\t\t\t\t\t<KolIconTag _label=\"\" _icons=\"codicon codicon-chevron-right\" class={`icon ${this.state._open ? 'is-open' : ''}`} />\n\t\t\t\t\t\t<span>{this.state._label}</span>\n\t\t\t\t\t</summary>\n\t\t\t\t\t<div aria-hidden={this.state._open === false ? 'true' : undefined} class=\"content\" ref={(element) => (this.contentElement = element)}>\n\t\t\t\t\t\t<KolIndentedTextTag>\n\t\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t</KolIndentedTextTag>\n\t\t\t\t\t</div>\n\t\t\t\t</details>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label!: LabelPropType;\n\n\t/**\n\t * Defines the callback functions for details.\n\t */\n\t@Prop() public _on?: EventCallbacks;\n\n\t/**\n\t * If set (to true) opens/expands the element, closes if not set (or set to false).\n\t * @TODO: Change type back to `OpenPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _open?: boolean = false;\n\n\t@State() public state: DetailsStates = {\n\t\t_label: '', // ⚠ required\n\t\t_on: {},\n\t};\n\n\t@Watch('_disabled')\n\tpublic validateDisabled(value?: DisabledPropType): void {\n\t\tvalidateDisabled(this, value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelPropType): void {\n\t\tvalidateLabel(this, value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(on?: EventCallbacks) {\n\t\tif (typeof on === 'object' && on !== null && typeof on.onToggle === 'function') {\n\t\t\tsetState<EventCallbacks>(this, '_on', on);\n\t\t}\n\t}\n\n\t@Watch('_open')\n\tpublic validateOpen(value?: boolean): void {\n\t\tvalidateOpen(this, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateDisabled(this._disabled);\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateOn(this._on);\n\t\tthis.validateOpen(this._open);\n\t}\n\n\tpublic componentDidLoad() {\n\t\tif (this.detailsElement && this.summaryElement && this.contentElement) {\n\t\t\tconst animationController = new DetailsAnimationController(this.detailsElement, this.summaryElement, this.contentElement);\n\t\t\tif (this.state._open) {\n\t\t\t\tanimationController.open();\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate toggleTimeout?: ReturnType<typeof setTimeout>;\n\n\tprivate handleToggle = (event: Event) => {\n\t\tclearTimeout(this.toggleTimeout);\n\t\tthis.toggleTimeout = setTimeout(() => {\n\t\t\tconst open = Boolean(this.detailsElement?.open);\n\t\t\tif (open !== this.state._open) {\n\t\t\t\t// Update state\n\t\t\t\tthis._open = Boolean(this.detailsElement?.open);\n\n\t\t\t\t// Event handling\n\t\t\t\ttryToDispatchKoliBriEvent('toggle', this.host, this._open);\n\n\t\t\t\t// Callback\n\t\t\t\tif (typeof this.state._on?.onToggle === 'function') {\n\t\t\t\t\tthis.state._on?.onToggle(event, this._open);\n\t\t\t\t}\n\t\t\t}\n\t\t}, 25);\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-fb60429b.js"),index$1=require("./index-26a11fc3.js"),i18n=require("./i18n-db3c5520.js"),componentNames=require("./component-names-21d7915c.js");require("./i18n-ac90ee57.js");const KolForm=class{constructor(e){index.registerInstance(this,e),this.onSubmit=e=>{var t,i;e.preventDefault(),e.stopPropagation(),"function"==typeof(null===(t=this.state._on)||void 0===t?void 0:t.onSubmit)&&(null===(i=this.state._on)||void 0===i||i.onSubmit(e))},this.onReset=e=>{var t,i;e.preventDefault(),e.stopPropagation(),"function"==typeof(null===(t=this.state._on)||void 0===t?void 0:t.onReset)&&(null===(i=this.state._on)||void 0===i||i.onReset(e))},this.handleLinkClick=e=>{var t;const i=null===(t=e.target)||void 0===t?void 0:t.href;if(i){const e=new URL(i),t=document.querySelector(e.hash);t&&"function"==typeof t.focus&&(t.scrollIntoView({behavior:"smooth"}),t.focus())}},this._on=void 0,this._requiredText=!0,this._errorList=void 0,this.state={}}render(){return index.h(index.Host,{key:"8200a5548128d69edd92b943223c8da7a94cab86",class:"kol-form"},this._errorList&&this._errorList.length>0&&index.h(componentNames.KolAlertTag,{key:"9a06342471329ce2f1d50b17b06227af2a94ee95",_type:"error"},i18n.translate("kol-error-list-message"),index.h("nav",{key:"b106a5122f460b3f431a6b3f9a067fa7835120d3","aria-label":i18n.translate("kol-error-list")},index.h("ul",{key:"6192d18193f85d4f1e2a277c4f6be1ed8208f4ac"},this._errorList.map(((e,t)=>index.h("li",{key:t},index.h(componentNames.KolLinkTag,{_href:e.selector,_label:e.message,_on:{onClick:this.handleLinkClick},ref:e=>{0===t&&(this.errorListElement=e)}}))))))),index.h("form",{key:"995e9a16ab130602237fecb0c35e9e95b27e929c",method:"post",onSubmit:this.onSubmit,onReset:this.onReset,autoComplete:"off",noValidate:!0},!0===this.state._requiredText?index.h("p",null,index.h(componentNames.KolIndentedTextTag,null,i18n.translate("kol-form-description"))):"string"==typeof this.state._requiredText&&this.state._requiredText.length>0?index.h("p",null,index.h(componentNames.KolIndentedTextTag,null,this.state._requiredText)):null,index.h("slot",{key:"f3b074738cd44195ab6d8960af0a0effee60ed10"})))}async focusErrorList(){return setTimeout((()=>{var e;this._errorList&&this._errorList.length>0&&(null===(e=this.errorListElement)||void 0===e||e.focus())}),300),Promise.resolve()}validateOn(e){"object"==typeof e&&null!==e&&(this.state=Object.assign(Object.assign({},this.state),{_on:e}))}validateRequiredText(e){"boolean"==typeof e?index$1.watchBoolean(this,"_requiredText",e):index$1.watchString(this,"_requiredText",e)}validateErrorList(e){index$1.validateErrorList(this,e)}componentWillLoad(){this.validateOn(this._on),this.validateRequiredText(this._requiredText),this.validateErrorList(this._errorList)}static get watchers(){return{_on:["validateOn"],_requiredText:["validateRequiredText"],_errorList:["validateErrorList"]}}};exports.kol_form=KolForm;
4
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-fb60429b.js"),i18n=require("./i18n-4f73c04e.js"),componentNames=require("./component-names-21d7915c.js"),prop_validators=require("./prop.validators-5eb93968.js");require("./i18n-ac90ee57.js"),require("./reuse-daa2baf3.js"),require("./index-8d8858f3.js"),require("./dev.utils-3e595d38.js");const validateErrorList=(e,t)=>{prop_validators.watchValidator(e,"errorList",(e=>"object"==typeof e),new Set(["Object"]),t)},KolForm=class{constructor(e){index.registerInstance(this,e),this.onSubmit=e=>{var t,i;e.preventDefault(),e.stopPropagation(),"function"==typeof(null===(t=this.state._on)||void 0===t?void 0:t.onSubmit)&&(null===(i=this.state._on)||void 0===i||i.onSubmit(e))},this.onReset=e=>{var t,i;e.preventDefault(),e.stopPropagation(),"function"==typeof(null===(t=this.state._on)||void 0===t?void 0:t.onReset)&&(null===(i=this.state._on)||void 0===i||i.onReset(e))},this.handleLinkClick=e=>{var t;const i=null===(t=e.target)||void 0===t?void 0:t.href;if(i){const e=new URL(i),t=document.querySelector(e.hash);t&&"function"==typeof t.focus&&(t.scrollIntoView({behavior:"smooth"}),t.focus())}},this._on=void 0,this._requiredText=!0,this._errorList=void 0,this.state={}}render(){return index.h(index.Host,{key:"c2f978944c0da89b0c1f721e48e62c20897c6e84",class:"kol-form"},this._errorList&&this._errorList.length>0&&index.h(componentNames.KolAlertTag,{key:"89cc664c87a2aa777ff084d447f16cebf36d33ae",_type:"error"},i18n.translate("kol-error-list-message"),index.h("nav",{key:"1720c956e40dd31ebbc4e97aef78f8e1f8c204ae","aria-label":i18n.translate("kol-error-list")},index.h("ul",{key:"f99ca1869fdc217c7ebca978c2f92bf1467e19a7"},this._errorList.map(((e,t)=>index.h("li",{key:t},index.h(componentNames.KolLinkTag,{_href:e.selector,_label:e.message,_on:{onClick:this.handleLinkClick},ref:e=>{0===t&&(this.errorListElement=e)}}))))))),index.h("form",{key:"9076849c5f027e66ca37da072ac15271b19ae464",method:"post",onSubmit:this.onSubmit,onReset:this.onReset,autoComplete:"off",noValidate:!0},!0===this.state._requiredText?index.h("p",null,index.h(componentNames.KolIndentedTextTag,null,i18n.translate("kol-form-description"))):"string"==typeof this.state._requiredText&&this.state._requiredText.length>0?index.h("p",null,index.h(componentNames.KolIndentedTextTag,null,this.state._requiredText)):null,index.h("slot",{key:"c94ae6cfb941c2a73196cb77361fb74bcaff9d0f"})))}async focusErrorList(){return setTimeout((()=>{var e;this._errorList&&this._errorList.length>0&&(null===(e=this.errorListElement)||void 0===e||e.focus())}),300),Promise.resolve()}validateOn(e){"object"==typeof e&&null!==e&&(this.state=Object.assign(Object.assign({},this.state),{_on:e}))}validateRequiredText(e){"boolean"==typeof e?prop_validators.watchBoolean(this,"_requiredText",e):prop_validators.watchString(this,"_requiredText",e)}validateErrorList(e){validateErrorList(this,e)}componentWillLoad(){this.validateOn(this._on),this.validateRequiredText(this._requiredText),this.validateErrorList(this._errorList)}static get watchers(){return{_on:["validateOn"],_requiredText:["validateRequiredText"],_errorList:["validateErrorList"]}}};exports.kol_form=KolForm;
@@ -1 +1 @@
1
- {"file":"kol-form.entry.cjs.js","mappings":";;;;;;;;;;;;;MAea,OAAO;;;QAIF,aAAQ,GAAG,CAAC,KAAY;;YACxC,KAAK,CAAC,cAAc,EAAE,CAAC;YACvB,KAAK,CAAC,eAAe,EAAE,CAAC;YACxB,IAAI,QAAO,MAAA,IAAI,CAAC,KAAK,CAAC,GAAG,0CAAE,QAAQ,CAAA,KAAK,UAAU,EAAE;gBACnD,MAAA,IAAI,CAAC,KAAK,CAAC,GAAG,0CAAE,QAAQ,CAAC,KAAoB,CAAC,CAAC;aAC/C;SACD,CAAC;QAEe,YAAO,GAAG,CAAC,KAAY;;YACvC,KAAK,CAAC,cAAc,EAAE,CAAC;YACvB,KAAK,CAAC,eAAe,EAAE,CAAC;YACxB,IAAI,QAAO,MAAA,IAAI,CAAC,KAAK,CAAC,GAAG,0CAAE,OAAO,CAAA,KAAK,UAAU,EAAE;gBAClD,MAAA,IAAI,CAAC,KAAK,CAAC,GAAG,0CAAE,OAAO,CAAC,KAAK,CAAC,CAAC;aAC/B;SACD,CAAC;QAEe,oBAAe,GAAG,CAAC,KAAY;;YAC/C,MAAM,IAAI,GAAG,MAAC,KAAK,CAAC,MAAwC,0CAAE,IAAI,CAAC;YACnE,IAAI,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,CAAC;QAC9C,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KACxC;;;;;;;;;;","names":["h","Host","KolAlertTag","translate","index","KolLinkTag","KolIndentedTextTag","watchBoolean","watchString","validateErrorList"],"sources":["src/components/form/component.tsx"],"sourcesContent":["import type { JSX } from '@stencil/core';\nimport { validateErrorList, watchBoolean, watchString } from '@public-ui/schema';\nimport { Component, h, Host, Prop, State, Watch, Method } from '@stencil/core';\n\nimport { translate } from '../../i18n';\n\nimport type { ErrorListPropType, FormAPI, FormStates, KoliBriFormCallbacks, Stringified } from '@public-ui/schema';\nimport { KolAlertTag, KolIndentedTextTag, KolLinkTag } from '../../core/component-names';\n/**\n * @slot - Inhalt der Form.\n */\n@Component({\n\ttag: 'kol-form',\n\tshadow: true,\n})\nexport class KolForm implements FormAPI {\n\terrorListElement?: HTMLElement;\n\n\t/* Hint: This method may not be used at all while events are handled in form/controller#propagateSubmitEventToForm */\n\tprivate readonly onSubmit = (event: Event) => {\n\t\tevent.preventDefault();\n\t\tevent.stopPropagation();\n\t\tif (typeof this.state._on?.onSubmit === 'function') {\n\t\t\tthis.state._on?.onSubmit(event as SubmitEvent);\n\t\t}\n\t};\n\n\tprivate readonly onReset = (event: Event) => {\n\t\tevent.preventDefault();\n\t\tevent.stopPropagation();\n\t\tif (typeof this.state._on?.onReset === 'function') {\n\t\t\tthis.state._on?.onReset(event);\n\t\t}\n\t};\n\n\tprivate readonly handleLinkClick = (event: Event) => {\n\t\tconst href = (event.target as HTMLAnchorElement | undefined)?.href;\n\t\tif (href) {\n\t\t\tconst hrefUrl = new URL(href);\n\n\t\t\tconst targetElement = document.querySelector<HTMLElement>(hrefUrl.hash);\n\t\t\tif (targetElement && typeof targetElement.focus === 'function') {\n\t\t\t\ttargetElement.scrollIntoView({ behavior: 'smooth' });\n\t\t\t\ttargetElement.focus();\n\t\t\t}\n\t\t}\n\t};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-form\">\n\t\t\t\t{this._errorList && this._errorList.length > 0 && (\n\t\t\t\t\t<KolAlertTag _type=\"error\">\n\t\t\t\t\t\t{translate('kol-error-list-message')}\n\t\t\t\t\t\t<nav aria-label={translate('kol-error-list')}>\n\t\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t\t{this._errorList.map((error, index) => (\n\t\t\t\t\t\t\t\t\t<li key={index}>\n\t\t\t\t\t\t\t\t\t\t<KolLinkTag\n\t\t\t\t\t\t\t\t\t\t\t_href={error.selector}\n\t\t\t\t\t\t\t\t\t\t\t_label={error.message}\n\t\t\t\t\t\t\t\t\t\t\t_on={{ onClick: this.handleLinkClick }}\n\t\t\t\t\t\t\t\t\t\t\tref={(el?: HTMLKolLinkElement) => {\n\t\t\t\t\t\t\t\t\t\t\t\tif (index === 0) this.errorListElement = el;\n\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t</nav>\n\t\t\t\t\t</KolAlertTag>\n\t\t\t\t)}\n\t\t\t\t<form method=\"post\" onSubmit={this.onSubmit} onReset={this.onReset} autoComplete=\"off\" noValidate>\n\t\t\t\t\t{this.state._requiredText === true ? (\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<KolIndentedTextTag>{translate('kol-form-description')}</KolIndentedTextTag>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t) : typeof this.state._requiredText === 'string' && this.state._requiredText.length > 0 ? (\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<KolIndentedTextTag>{this.state._requiredText}</KolIndentedTextTag>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t) : null}\n\t\t\t\t\t<slot />\n\t\t\t\t</form>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Method()\n\tasync focusErrorList(): Promise<void> {\n\t\tsetTimeout(() => {\n\t\t\tif (this._errorList && this._errorList.length > 0) {\n\t\t\t\tthis.errorListElement?.focus();\n\t\t\t}\n\t\t}, 300);\n\t\treturn Promise.resolve();\n\t}\n\n\t/**\n\t * Gibt die EventCallback-Funktionen für die Form-Events an.\n\t */\n\t@Prop() public _on?: KoliBriFormCallbacks;\n\n\t/**\n\t * Defines whether the mandatory-fields-hint should be shown. A string overrides the default text.\n\t */\n\t@Prop() public _requiredText?: Stringified<boolean> = true;\n\t/**\n\t * A list of error objects that each describe an issue encountered in the form.\n\t * Each error object contains a message and a selector for identifying the form element related to the error.\n\t */\n\t@Prop() public _errorList?: ErrorListPropType[];\n\n\t@State() public state: FormStates = {};\n\n\t@Watch('_on')\n\tpublic validateOn(value?: KoliBriFormCallbacks): void {\n\t\tif (typeof value === 'object' && value !== null) {\n\t\t\tthis.state = {\n\t\t\t\t...this.state,\n\t\t\t\t_on: value,\n\t\t\t};\n\t\t}\n\t}\n\n\t@Watch('_requiredText')\n\tpublic validateRequiredText(value?: Stringified<boolean>): void {\n\t\tif (typeof value === 'boolean') {\n\t\t\twatchBoolean(this, '_requiredText', value);\n\t\t} else {\n\t\t\twatchString(this, '_requiredText', value);\n\t\t}\n\t}\n\n\t@Watch('_errorList')\n\tpublic validateErrorList(value?: ErrorListPropType[]): void {\n\t\tvalidateErrorList(this, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateOn(this._on);\n\t\tthis.validateRequiredText(this._requiredText);\n\t\tthis.validateErrorList(this._errorList);\n\t}\n}\n"],"version":3}
1
+ {"file":"kol-form.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;AAcO,MAAM,iBAAiB,GAAG,CAAC,SAAoC,EAAE,KAA2B;IAClGA,8BAAc,CAAC,SAAS,EAAE,WAAW,EAAE,CAAC,KAAK,KAAc,OAAO,KAAK,KAAK,QAAQ,EAAE,IAAI,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;AACnH,CAAC;;MCDY,OA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AAC;aAC/B;SACD,EAAE,GAAG,CAAC,CAAC;QACR,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;KACzB;IAoBM,UAAU,CAAC,KAA4B;QAC7C,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE;YAChD,IAAI,CAAC,KAAK,mCACN,IAAI,CAAC,KAAK,KACb,GAAG,EAAE,KAAK,GACV,CAAC;SACF;KACD;IAGM,oBAAoB,CAAC,KAA4B;QACvD,IAAI,OAAO,KAAK,KAAK,SAAS,EAAE;YAC/BO,4BAAY,CAAC,IAAI,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC;SAC3C;aAAM;YACNC,2BAAW,CAAC,IAAI,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC;SAC1C;KACD;IAGM,iBAAiB,CAAC,KAA2B;QACnD,iBAAiB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;KAC/B;IAEM,iBAAiB;QACvB,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1B,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC9C,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KACxC;;;;;;;;;;","names":["watchValidator","h","Host","KolAlertTag","translate","index","KolLinkTag","KolIndentedTextTag","watchBoolean","watchString"],"sources":["src/schema/props/error-list.ts","src/components/form/component.tsx"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\nimport { watchValidator } from '../utils';\n\n/* types */\nexport type ErrorListPropType = {\n\tmessage: string;\n\tselector: string;\n};\n\nexport type PropErrorList = {\n\terrorList: ErrorListPropType[];\n};\n\n/* validator */\nexport const validateErrorList = (component: Generic.Element.Component, value?: ErrorListPropType[]): void => {\n\twatchValidator(component, 'errorList', (value): boolean => typeof value === 'object', new Set(['Object']), value);\n};\n","import type { JSX } from '@stencil/core';\nimport { validateErrorList, watchBoolean, watchString } from '../../schema';\nimport { Component, h, Host, Prop, State, Watch, Method } from '@stencil/core';\n\nimport { translate } from '../../i18n';\n\nimport type { ErrorListPropType, FormAPI, FormStates, KoliBriFormCallbacks, Stringified } from '../../schema';\nimport { KolAlertTag, KolIndentedTextTag, KolLinkTag } from '../../core/component-names';\n/**\n * @slot - Inhalt der Form.\n */\n@Component({\n\ttag: 'kol-form',\n\tshadow: true,\n})\nexport class KolForm implements FormAPI {\n\terrorListElement?: HTMLElement;\n\n\t/* Hint: This method may not be used at all while events are handled in form/controller#propagateSubmitEventToForm */\n\tprivate readonly onSubmit = (event: Event) => {\n\t\tevent.preventDefault();\n\t\tevent.stopPropagation();\n\t\tif (typeof this.state._on?.onSubmit === 'function') {\n\t\t\tthis.state._on?.onSubmit(event as SubmitEvent);\n\t\t}\n\t};\n\n\tprivate readonly onReset = (event: Event) => {\n\t\tevent.preventDefault();\n\t\tevent.stopPropagation();\n\t\tif (typeof this.state._on?.onReset === 'function') {\n\t\t\tthis.state._on?.onReset(event);\n\t\t}\n\t};\n\n\tprivate readonly handleLinkClick = (event: Event) => {\n\t\tconst href = (event.target as HTMLAnchorElement | undefined)?.href;\n\t\tif (href) {\n\t\t\tconst hrefUrl = new URL(href);\n\n\t\t\tconst targetElement = document.querySelector<HTMLElement>(hrefUrl.hash);\n\t\t\tif (targetElement && typeof targetElement.focus === 'function') {\n\t\t\t\ttargetElement.scrollIntoView({ behavior: 'smooth' });\n\t\t\t\ttargetElement.focus();\n\t\t\t}\n\t\t}\n\t};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-form\">\n\t\t\t\t{this._errorList && this._errorList.length > 0 && (\n\t\t\t\t\t<KolAlertTag _type=\"error\">\n\t\t\t\t\t\t{translate('kol-error-list-message')}\n\t\t\t\t\t\t<nav aria-label={translate('kol-error-list')}>\n\t\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t\t{this._errorList.map((error, index) => (\n\t\t\t\t\t\t\t\t\t<li key={index}>\n\t\t\t\t\t\t\t\t\t\t<KolLinkTag\n\t\t\t\t\t\t\t\t\t\t\t_href={error.selector}\n\t\t\t\t\t\t\t\t\t\t\t_label={error.message}\n\t\t\t\t\t\t\t\t\t\t\t_on={{ onClick: this.handleLinkClick }}\n\t\t\t\t\t\t\t\t\t\t\tref={(el?: HTMLKolLinkElement) => {\n\t\t\t\t\t\t\t\t\t\t\t\tif (index === 0) this.errorListElement = el;\n\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t</nav>\n\t\t\t\t\t</KolAlertTag>\n\t\t\t\t)}\n\t\t\t\t<form method=\"post\" onSubmit={this.onSubmit} onReset={this.onReset} autoComplete=\"off\" noValidate>\n\t\t\t\t\t{this.state._requiredText === true ? (\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<KolIndentedTextTag>{translate('kol-form-description')}</KolIndentedTextTag>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t) : typeof this.state._requiredText === 'string' && this.state._requiredText.length > 0 ? (\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<KolIndentedTextTag>{this.state._requiredText}</KolIndentedTextTag>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t) : null}\n\t\t\t\t\t<slot />\n\t\t\t\t</form>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Method()\n\tasync focusErrorList(): Promise<void> {\n\t\tsetTimeout(() => {\n\t\t\tif (this._errorList && this._errorList.length > 0) {\n\t\t\t\tthis.errorListElement?.focus();\n\t\t\t}\n\t\t}, 300);\n\t\treturn Promise.resolve();\n\t}\n\n\t/**\n\t * Gibt die EventCallback-Funktionen für die Form-Events an.\n\t */\n\t@Prop() public _on?: KoliBriFormCallbacks;\n\n\t/**\n\t * Defines whether the mandatory-fields-hint should be shown. A string overrides the default text.\n\t */\n\t@Prop() public _requiredText?: Stringified<boolean> = true;\n\t/**\n\t * A list of error objects that each describe an issue encountered in the form.\n\t * Each error object contains a message and a selector for identifying the form element related to the error.\n\t */\n\t@Prop() public _errorList?: ErrorListPropType[];\n\n\t@State() public state: FormStates = {};\n\n\t@Watch('_on')\n\tpublic validateOn(value?: KoliBriFormCallbacks): void {\n\t\tif (typeof value === 'object' && value !== null) {\n\t\t\tthis.state = {\n\t\t\t\t...this.state,\n\t\t\t\t_on: value,\n\t\t\t};\n\t\t}\n\t}\n\n\t@Watch('_requiredText')\n\tpublic validateRequiredText(value?: Stringified<boolean>): void {\n\t\tif (typeof value === 'boolean') {\n\t\t\twatchBoolean(this, '_requiredText', value);\n\t\t} else {\n\t\t\twatchString(this, '_requiredText', value);\n\t\t}\n\t}\n\n\t@Watch('_errorList')\n\tpublic validateErrorList(value?: ErrorListPropType[]): void {\n\t\tvalidateErrorList(this, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateOn(this._on);\n\t\tthis.validateRequiredText(this._requiredText);\n\t\tthis.validateErrorList(this._errorList);\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-fb60429b.js"),index$1=require("./index-26a11fc3.js"),validation=require("./validation-89c93141.js"),KolHeadingWc=class{constructor(e){index.registerInstance(this,e),this.renderHeadline=(e,a)=>{const i="number"==typeof a&&a>0&&a<=6?`h${a}`:"strong",t=this._variant||i;return index.h(i,{class:{headline:!0,[`headline-${t}`]:!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){index$1.validateLabelWithExpertSlot(this,e)}validateLevel(e){validation.watchHeadingLevel(this,e)}validateSecondaryHeadline(e){index$1.watchString(this,"_secondaryHeadline",e)}validateVariant(e){index$1.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,{key:"fff4e111e5278ca50a7b764714da2a80518be76e",class:"kol-heading-wc"},"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_heading_wc=KolHeadingWc;
4
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-fb60429b.js"),validation=require("./validation-80c0b59f.js"),prop_validators=require("./prop.validators-5eb93968.js"),label=require("./label-23abf417.js");require("./index-8d8858f3.js"),require("./dev.utils-3e595d38.js");const 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 i="number"==typeof a&&a>0&&a<=6?`h${a}`:"strong",t=this._variant||i;return index.h(i,{class:{headline:!0,[`headline-${t}`]:!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,{key:"0486dd8c673554b08b07640dace2e2a63d5e8d7a",class:"kol-heading-wc"},"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_heading_wc=KolHeadingWc;
@@ -1 +1 @@
1
- {"file":"kol-heading-wc.entry.cjs.js","mappings":";;;;;;;;;;;MAca,YAAY;;;QAqDP,mBAAc,GAAG,CAAC,QAAqC,EAAE,KAAc;YACvF,MAAM,aAAa,GAAG,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,GAAG,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;YAC3E,MAAM,WAAW,GAAG,aAAa,GAAG,IAAI,KAAK,EAAE,GAAG,QAAQ,CAAC;YAC3D,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,IAAI,WAAW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AC,KAA8B;QACpDC,8BAAsB,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,QACCJ,QAACK,UAAI,qDAAC,KAAK,EAAC,gBAAgB,IAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,kBAAkB,KAAK,QAAQ,IAAI,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC,MAAM,GAAG,CAAC,IAC7FL,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","validateLabelWithExpertSlot","watchHeadingLevel","watchString","validateHeadingVariant","Host"],"sources":["src/components/heading/component.tsx"],"sourcesContent":["import type { HeadingAPI, HeadingLevel, HeadingStates, HeadingVariantPropType, LabelWithExpertSlotPropType } from '@public-ui/schema';\nimport { validateHeadingVariant, validateLabelWithExpertSlot, watchString } from '@public-ui/schema';\nimport { Component, h, Host, Prop, State, Watch } from '@stencil/core';\n\nimport { watchHeadingLevel } from './validation';\n\nimport type { JSX } from '@stencil/core';\n/**\n * @slot - Inhalt der Überschrift.\n */\n@Component({\n\ttag: 'kol-heading-wc',\n\tshadow: false,\n})\nexport class KolHeadingWc implements HeadingAPI {\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: HeadingStates = {\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 class=\"kol-heading-wc\">\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
+ {"file":"kol-heading-wc.entry.cjs.js","mappings":";;;;;;;;;;;;;;AAIA,MAA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,GAAG,CAAC,IAC7FJ,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":["watchValidator","h","validateLabelWithExpertSlot","watchHeadingLevel","watchString","Host"],"sources":["src/schema/props/heading-variant.ts","src/components/heading/component.tsx"],"sourcesContent":["/* types */\nimport type { Generic } from 'adopted-style-sheets';\nimport { watchValidator } from '../utils';\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 type { HeadingAPI, HeadingLevel, HeadingStates, HeadingVariantPropType, LabelWithExpertSlotPropType } from '../../schema';\nimport { validateHeadingVariant, validateLabelWithExpertSlot, watchString } from '../../schema';\nimport { Component, h, Host, Prop, State, Watch } from '@stencil/core';\n\nimport { watchHeadingLevel } from './validation';\n\nimport type { JSX } from '@stencil/core';\n/**\n * @slot - Inhalt der Überschrift.\n */\n@Component({\n\ttag: 'kol-heading-wc',\n\tshadow: false,\n})\nexport class KolHeadingWc implements HeadingAPI {\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: HeadingStates = {\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 class=\"kol-heading-wc\">\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-fb60429b.js"),componentNames=require("./component-names-21d7915c.js"),defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: 44px;\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of 44px.\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\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 clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .hidden {\n display: none;\n visibility: hidden;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n}",KolHeadingDefaultStyle0=defaultStyleCss,KolHeading=class{constructor(n){index.registerInstance(this,n),this._label=void 0,this._level=void 0,this._secondaryHeadline=void 0,this._variant=void 0}render(){return index.h(componentNames.KolHeadingWcTag,{key:"a935fe7395f6e9365c57138b8a19d675b276af55",_label:this._label,_level:this._level,_secondaryHeadline:this._secondaryHeadline,_variant:this._variant,class:"kol-heading"},index.h("slot",{key:"7e766ce153b74e858efb7f986994296ffa82e474",name:"expert",slot:"expert"}))}};KolHeading.style={default:KolHeadingDefaultStyle0},exports.kol_heading=KolHeading;
4
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-fb60429b.js"),componentNames=require("./component-names-21d7915c.js"),defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: 44px;\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of 44px.\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\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 clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .hidden {\n display: none;\n visibility: hidden;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n}",KolHeadingDefaultStyle0=defaultStyleCss,KolHeading=class{constructor(n){index.registerInstance(this,n),this._label=void 0,this._level=void 0,this._secondaryHeadline=void 0,this._variant=void 0}render(){return index.h(componentNames.KolHeadingWcTag,{key:"d18d1a32f3a8872e62fe7d6c7d9743679bf013ad",_label:this._label,_level:this._level,_secondaryHeadline:this._secondaryHeadline,_variant:this._variant,class:"kol-heading"},index.h("slot",{key:"33dbca9444ebac88573e83027076aca06a2bcfd4",name:"expert",slot:"expert"}))}};KolHeading.style={default:KolHeadingDefaultStyle0},exports.kol_heading=KolHeading;
@@ -1 +1 @@
1
- {"file":"kol-heading.entry.cjs.js","mappings":";;;;;;;;;;AAAA,MAAM,eAAe,GAAG,0oIAA0oI,CAAC;AACnqI,gCAAe,eAAe;;MCcjB,UAAU;;;;;;;;IACf,MAAM;QACZ,QACCA,QAACC,8BAAe,qDAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,kBAAkB,EAAE,IAAI,CAAC,kBAAkB,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,KAAK,EAAC,aAAa,IACnJD,mEAAM,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,GAAG,CACnB,EACjB;KACF;;;;;;;;","names":["h","KolHeadingWcTag"],"sources":["src/components/heading/style.scss?tag=kol-heading&mode=default&encapsulation=shadow","src/components/heading/shadow.tsx"],"sourcesContent":["@import '../@shared/mixins';\n@import '../style';\n\n@layer kol-component {\n\t:host {\n\t\tfont-size: rem(16);\n\t}\n}\n","import type { HeadingLevel, HeadingProps, HeadingVariantPropType, LabelWithExpertSlotPropType } from '@public-ui/schema';\nimport type { JSX } from '@stencil/core';\nimport { Component, h, Prop } from '@stencil/core';\nimport { KolHeadingWcTag } from '../../core/component-names';\n\n/**\n * @slot headline - Content of the headline.\n */\n@Component({\n\ttag: 'kol-heading',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolHeading implements HeadingProps {\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<KolHeadingWcTag _label={this._label} _level={this._level} _secondaryHeadline={this._secondaryHeadline} _variant={this._variant} class=\"kol-heading\">\n\t\t\t\t<slot name=\"expert\" slot=\"expert\" />\n\t\t\t</KolHeadingWcTag>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). 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;\n\n\t/**\n\t * Defines the text of the secondary headline.\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"],"version":3}
1
+ {"file":"kol-heading.entry.cjs.js","mappings":";;;;;;;;;;AAAA,MAAM,eAAe,GAAG,0oIAA0oI,CAAC;AACnqI,gCAAe,eAAe;;MCcjB,UAAU;;;;;;;;IACf,MAAM;QACZ,QACCA,QAACC,8BAAe,qDAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,kBAAkB,EAAE,IAAI,CAAC,kBAAkB,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,KAAK,EAAC,aAAa,IACnJD,mEAAM,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,GAAG,CACnB,EACjB;KACF;;;;;;;;","names":["h","KolHeadingWcTag"],"sources":["src/components/heading/style.scss?tag=kol-heading&mode=default&encapsulation=shadow","src/components/heading/shadow.tsx"],"sourcesContent":["@import '../@shared/mixins';\n@import '../style';\n\n@layer kol-component {\n\t:host {\n\t\tfont-size: rem(16);\n\t}\n}\n","import type { HeadingLevel, HeadingProps, HeadingVariantPropType, LabelWithExpertSlotPropType } from '../../schema';\nimport type { JSX } from '@stencil/core';\nimport { Component, h, Prop } from '@stencil/core';\nimport { KolHeadingWcTag } from '../../core/component-names';\n\n/**\n * @slot headline - Content of the headline.\n */\n@Component({\n\ttag: 'kol-heading',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolHeading implements HeadingProps {\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<KolHeadingWcTag _label={this._label} _level={this._level} _secondaryHeadline={this._secondaryHeadline} _variant={this._variant} class=\"kol-heading\">\n\t\t\t\t<slot name=\"expert\" slot=\"expert\" />\n\t\t\t</KolHeadingWcTag>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). 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;\n\n\t/**\n\t * Defines the text of the secondary headline.\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"],"version":3}